!function(){var e={144:function(e,a){var t;!function(){"use strict";var l={}.hasOwnProperty;function o(){for(var e=[],a=0;a{if(e.dsx||e.dsy)return(e.dsx?e.dsx+"px ":"0 ")+(e.dsy?e.dsy+"px ":"0 ")+(e.dsb?e.dsb+"px ":"0 ")+"rgba(var(--aplo-fdsc), "+(e.dso?e.dso/100+")":"var(--aplo-fdso))")};return{"--aplo-filter-string":(void 0!==e.invert?`invert(${e.invert}%) `:"")+(void 0!==e.hue?`hue-rotate(${e.hue}deg) `:"")+(void 0!==e.saturate?`saturate(${e.saturate}%) `:"")+(void 0!==e.sepia?`sepia(${e.sepia}%) `:"")+(void 0!==e.blur?`blur(${e.blur}px) `:"")+(void 0!==e.grayscale?`grayscale(${e.grayscale}%) `:"")+(void 0!==e.brightness?`brightness(${e.brightness}%) `:"")+(void 0!==e.contrast?`contrast(${e.contrast}%) `:"")+(void 0!==e.opacity?`opacity(${e.opacity}%) `:"")+(a()?`drop-shadow(${a()})`:"")}}function b(e){const a=()=>{if(e.dsx||e.dsy)return(e.dsx?e.dsx+"px ":"0 ")+(e.dsy?e.dsy+"px ":"0 ")+(e.dsb?e.dsb+"px ":"0 ")+"rgba(var(--aplo-fdsc), "+(e.dso?e.dso/100+")":"var(--aplo-fdso))")};return{"--aplo-filter-hover-string":(void 0!==e.invert?`invert(${e.invert}%) `:"")+(void 0!==e.hue?`hue-rotate(${e.hue}deg) `:"")+(void 0!==e.saturate?`saturate(${e.saturate}%) `:"")+(void 0!==e.sepia?`sepia(${e.sepia}%) `:"")+(void 0!==e.blur?`blur(${e.blur}px) `:"")+(void 0!==e.grayscale?`grayscale(${e.grayscale}%) `:"")+(void 0!==e.brightness?`brightness(${e.brightness}%) `:"")+(void 0!==e.contrast?`contrast(${e.contrast}%) `:"")+(void 0!==e.opacity?`opacity(${e.opacity}%) `:"")+(a()?`drop-shadow(${a()})`:"")}}function y(e){return{"--aplo-transform-string":(e.rotate?`rotate(${e.rotate}deg) `:"")+(e.scale?`scale(${e.scale/100}) `:"")+(e.translateY?`translateY(${e.translateY}px) `:"")+(e.translateX?`translateX(${e.translateX}px) `:"")}}function E(e){return{"--aplo-transform-hover-string":(e.rotate?`rotate(${e.rotate}deg) `:"")+(e.scale?`scale(${e.scale/100}) `:"")+(e.translateY?`translateY(${e.translateY}px) `:"")+(e.translateX?`translateX(${e.translateX}px) `:"")}}function w(e,a){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const l=t?"":"aploshow",{aploeffect:r,aplotexture:n,aploshadow:s,aplocoveroverlay:i,aplopatterngroup:p,aplomask:u,backdropFilter:c,hasFilters:d,hasHoverFilters:v,galleryswitch:f,hasTransforms:m,hasHoverTransforms:g,haspullstyles:h,aploanimation:b}=a,y=o()(e,r?`aploanim ${r} ${l}`:"",n?`is-style-texture-${n}`:"",s?`is-style-aplo-shadow-${s}`:"",i?"is-style-aplo-coveroverlay":"",p?`is-style-aplo-pg-${p}`:"",u?`is-style-aplo-mask-${u}`:"",c?"aplo-bd-f":"",d>0?"aplo-has-filters":"",v>0?"aplo-has-hover-filters":"",f?"aplo-gs":"",m>0?"aplo-has-transforms":"",g>0?"aplo-has-hover-transforms":"",h>0?"aplo-has-pull-styles":"",b?"has-animation":"");return y}i("blocks.registerBlockType","aploeffects/group/add-attributes",(function(e,a){if(m.includes(a)){var t={};return t=n(t,e,{attributes:s(e.attributes,{aploeffect:{type:"string",default:""},aploeffectease:{type:"string",default:""},aploeffectduration:{type:"integer",default:""},aploeffectdelay:{type:"integer",default:""},aplotexture:{type:"string",default:""},aploshadow:{type:"string",default:""},aplomask:{type:"string",default:""},aplofilters:{type:Object,default:{}},aplofiltersHover:{type:Object,default:{}},aplotransforms:{type:Object,default:{}},aplotransformsHover:{type:Object,default:{}},hasFilters:{type:"integer",default:0},hasHoverFilters:{type:"integer",default:0},hasTransforms:{type:"integer",default:0},hasHoverTransforms:{type:"integer",default:0},aplohoverduration:{type:"integer",default:0},aplohoverease:{type:"string",default:""},aploposition:{type:"string",default:""},aplozindex:{type:"integer",default:0},aplomargintop:{type:"integer",default:void 0},aplomarginbottom:{type:"integer",default:void 0},aplomarginleft:{type:"integer",default:void 0},aplomarginright:{type:"integer",default:void 0},aplopositiontop:{type:"integer",default:0},aplopositionbottom:{type:"integer",default:0},aplopositionleft:{type:"integer",default:0},aplopositionright:{type:"integer",default:0},aploclip:{type:"integer",default:0},overflowhidden:{type:"boolean",default:!1},haspullstyles:{type:"integer",default:0}})}),"core/cover"===a&&(t=n(t,e,{attributes:s(e.attributes,{aplocoveroverlay:{type:"boolean",default:!1}})})),"core/group"!==a&&"core/column"!==a||(t=n(t,e,{attributes:s(e.attributes,{aplopatterngroup:{type:"string",default:""},backdropFilter:{type:"boolean",default:!1}})})),"core/gallery"===a&&(t=n(t,e,{attributes:s(e.attributes,{galleryswitch:{type:"boolean",default:!1}})})),t}return e})),i("editor.BlockEdit","aploeffects/group/add-inspector-controls",p((e=>t=>{const{attributes:{aploeffect:l},attributes:{aploeffectease:o},attributes:{aploeffectdelay:n},attributes:{aploeffectduration:s},attributes:{aplotexture:i},attributes:{aploshadow:p},attributes:{aplocoveroverlay:f},attributes:{aplopatterngroup:g},attributes:{aplomask:h},attributes:{aplofilters:b},attributes:{aplofiltersHover:y},attributes:{backdropFilter:E},attributes:{hasFilters:w},attributes:{hasHoverFilters:x},attributes:{galleryswitch:S},attributes:{aplotransforms:C},attributes:{aplotransformsHover:T},attributes:{hasTransforms:F},attributes:{hasHoverTransforms:H},attributes:{aplohoverduration:$},attributes:{aplohoverease:R},attributes:{aplozindex:k},attributes:{aplomargintop:O},attributes:{aplomarginbottom:B},attributes:{aplomarginleft:P},attributes:{aplomarginright:I},attributes:{aploclip:j},attributes:{overflowhidden:D},attributes:{haspullstyles:L},attributes:{aploanimation:N},setAttributes:z,name:X}=t;if(!1===m.includes(X))return(0,a.createElement)(e,t);function Y(e,t,l){return(0,a.createElement)(r.RangeControl,{value:void 0!==C?C[e]:void 0,onChange:function(a){void 0===a&&void 0===C||(void 0===a?void 0!==C&&void 0!==C[e]&&(z(1===F?{aplotransforms:void 0}:{aplotransforms:{...C,[e]:void 0}}),z({hasTransforms:F-1})):(void 0!==C&&void 0!==C[e]||z({hasTransforms:F+1}),z({aplotransforms:{...C,[e]:a}})))},min:t,max:l,step:1,allowReset:!0})}function A(e,t,l,o){return(0,a.createElement)(r.RangeControl,{value:void 0!==T?T[e]:void 0,onChange:function(a){void 0===a&&void 0===T||(void 0===a?void 0!==T&&void 0!==T[e]&&(z(1===H?{aplotransformsHover:void 0}:{aplotransformsHover:{...T,[e]:void 0}}),z({hasHoverTransforms:H-1})):(void 0!==T&&void 0!==T[e]||z({hasHoverTransforms:H+1}),z({aplotransformsHover:{...T,[e]:a}})))},min:t,max:l,step:1,allowReset:!0})}function G(e,t,l,o){return(0,a.createElement)(r.RangeControl,{value:void 0!==b?b[e]:void 0,onChange:function(a){void 0===a&&void 0===b||(void 0===a?void 0!==b&&void 0!==b[e]&&(z(1===w?{aplofilters:void 0}:{aplofilters:{...b,[e]:void 0}}),z({hasFilters:w-1})):(void 0!==b&&void 0!==b[e]||z({hasFilters:w+1}),z({aplofilters:{...b,[e]:a}})))},min:t,max:l,step:1,allowReset:!0})}function M(e,t,l,o){return(0,a.createElement)(r.RangeControl,{value:void 0!==y?y[e]:void 0,onChange:function(a){void 0===a&&void 0===y||(void 0===a?void 0!==y&&void 0!==y[e]&&(z(1===x?{aplofiltersHover:void 0}:{aplofiltersHover:{...y,[e]:void 0}}),z({hasHoverFilters:x-1})):(void 0!==y&&void 0!==y[e]||z({hasHoverFilters:x+1}),z({aplofiltersHover:{...y,[e]:a}})))},min:t,max:l,step:1,allowReset:!0})}function U(e,t,l,o,n){return(0,a.createElement)(r.RangeControl,{value:t,onChange:function(a){z(0!==a?{[e]:a}:{[e]:void 0}),void 0===t&&0!==a?z({haspullstyles:L+1}):void 0===t||void 0!==a&&0!==a||z({haspullstyles:L-1})},min:l,max:o,step:1,allowReset:!0,initialPosition:n})}return(0,a.createElement)(u,null,(0,a.createElement)(e,t),(0,a.createElement)(c,null,(0,a.createElement)(d,{title:__("Aplo Entrance Styles","aplo"),initialOpen:!1,className:"aploentrancestyles"},(0,a.createElement)(v,{label:__("Effect","aplo"),value:l,options:[{label:__("","aplo"),value:""},{label:__("Fade In","aplo"),value:"fadein"},{label:__("Fade Up","aplo"),value:"fadeup"},{label:__("Fade Down","aplo"),value:"fadedown"},{label:__("Scale In","aplo"),value:"scalein"},{label:__("Slide In Left","aplo"),value:"slideinleft"},{label:__("Slide In Right","aplo"),value:"slideinright"},{label:__("Bounce","aplo"),value:"bounce"},{label:__("Rotate In","aplo"),value:"rotatein"},{label:__("Flip In","aplo"),value:"flipin"},{label:__("Roll In Left","aplo"),value:"rollinleft"},{label:__("Roll In Right","aplo"),value:"rollinright"},{label:__("Blur In","aplo"),value:"blurin"},{label:__("Text Expand In","aplo"),value:"txtexpandin"},{label:__("Text Contract In","aplo"),value:"txtcontractin"},{label:__("Text Blur Expand In","aplo"),value:"txtblurexpandin"},{label:__("Text Blur Contract In","aplo"),value:"txtblurcontractin"}],onChange:e=>{z({aploeffect:e})}}),(0,a.createElement)(v,{label:__("Easing Function","aplo"),value:o,options:[{label:__("","aplo"),value:""},{label:__("ease (Slow-Fast-Slow)","aplo"),value:"ease"},{label:__("ease-in (Slow-Fast)","aplo"),value:"ease-in"},{label:__("ease-out (Fast-Slow)","aplo"),value:"ease-out"},{label:__("ease-in-out (Slow-Fast-Slow)","aplo"),value:"ease-in-out"}],onChange:e=>{z({aploeffectease:e})}}),(0,a.createElement)(r.RangeControl,{label:__("Duration","aplo"),value:s,onChange:e=>{z({aploeffectduration:e})},min:0,max:5e3,step:50,allowReset:!0}),(0,a.createElement)(r.RangeControl,{label:__("Delay","aplo"),value:n,onChange:e=>{z({aploeffectdelay:e})},min:0,max:5e3,step:50,allowReset:!0})),(0,a.createElement)(d,{title:__("Aplo Pull Styles","aplo"),initialOpen:!1,className:""},(0,a.createElement)("p",null,"Add negative margins and control the z-index."),(0,a.createElement)("h2",null,"Pull up"),U("aplomargintop",O,-500,0,0),(0,a.createElement)("h2",null,"Pull down"),U("aplomarginbottom",B,-500,0,0),(0,a.createElement)("h2",null,"Pull left"),U("aplomarginleft",P,-500,0,0),(0,a.createElement)("h2",null,"Pull right"),U("aplomarginright",I,-500,0,0)),(0,a.createElement)(d,{title:__("Aplo Transform Styles","aplo"),initialOpen:!1,className:"aplofilterstyles"},(0,a.createElement)(r.ToggleControl,{label:__("Hide overflow"),checked:D,onChange:e=>{z({overflowhidden:e})}}),(0,a.createElement)("p",null,__("Set the values and hover values for each transform.","aplo")),(0,a.createElement)("div",{class:"aploranges"},(0,a.createElement)("h2",null,__("Scale","aplo")),(0,a.createElement)("div",{class:"aplorange"},Y("scale",1,200),A("scale",1,200)),(0,a.createElement)("h2",null,__("Rotate","aplo")),(0,a.createElement)("div",{class:"aplorange"},Y("rotate",-180,180),A("rotate",-180,180)),(0,a.createElement)("h2",null,__("Move Horizontal","aplo")),(0,a.createElement)("div",{class:"aplorange"},Y("translateX",-200,200),A("translateX",-200,200)),(0,a.createElement)("h2",null,__("Move Vertical","aplo")),(0,a.createElement)("div",{class:"aplorange"},Y("translateY",-200,200),A("translateY",-200,200)))),(0,a.createElement)(d,{title:__("Aplo Filter Styles","aplo"),initialOpen:!1,className:"aplofilterstyles"},void 0!==E?(()=>{if(void 0!==E)return(0,a.createElement)(r.ToggleControl,{label:"Backdrop",checked:E,onChange:e=>{z({backdropFilter:e})}})})():"",void 0!==S?(()=>{if(void 0!==S)return(0,a.createElement)(r.ToggleControl,{label:__("Switch - when true the hover state gets applied to the images in the gallery that are not hovered over","aplo"),checked:S,onChange:e=>{z({galleryswitch:e})}})})():"",(0,a.createElement)("p",null,__("Set the values and hover values for each filter.","aplo")),(0,a.createElement)("div",{class:"aploranges"},(0,a.createElement)("h2",null,__("Blur","aplo")),(0,a.createElement)("div",{class:"aplorange"},G("blur",0,100),M("blur",0,100)),(0,a.createElement)("h2",null,__("Grayscale","aplo")),(0,a.createElement)("div",{class:"aplorange"},G("grayscale",0,100),M("grayscale",0,100)),(0,a.createElement)("h2",null,__("Sepia","aplo")),(0,a.createElement)("div",{class:"aplorange"},G("sepia",0,100),M("sepia",0,100)),(0,a.createElement)("h2",null,__("Hue","aplo")),(0,a.createElement)("div",{class:"aplorange"},G("hue",0,360),M("hue",0,360)),(0,a.createElement)("h2",null,__("Opacity","aplo")),(0,a.createElement)("div",{class:"aplorange"},G("opacity",0,100),M("opacity",0,100)),(0,a.createElement)("h2",null,__("Invert","aplo")),(0,a.createElement)("div",{class:"aplorange"},G("invert",0,100),M("invert",0,100)),(0,a.createElement)("h2",null,__("Brightness","aplo")),(0,a.createElement)("div",{class:"aplorange"},G("brightness",0,500),M("brightness",0,500)),(0,a.createElement)("h2",null,__("Contrast","aplo")),(0,a.createElement)("div",{class:"aplorange"},G("contrast",0,500),M("contrast",0,500)),(0,a.createElement)("h2",null,__("Saturate","aplo")),(0,a.createElement)("div",{class:"aplorange"},G("saturate",0,500),M("saturate",0,500)))),(0,a.createElement)(d,{title:__("Shadow Filter","aplo"),initialOpen:!1,className:"aplofilterstyles"},(0,a.createElement)("h2",null,__("Drop Shadow","aplo")),"X-offset:",G("dsx",-30,30),"Y-offset:",G("dsy",-30,30),"Blur:",G("dsb",0,30),"Opacity:",G("dso",0,100),(0,a.createElement)("h2",null,__("Drop Shadow Hover","aplo")),"X-offset:",M("dsx",-30,30),"Y-offset:",M("dsy",-30,30),"Blur:",M("dsb",0,30),"Opacity:",M("dso",0,100)),(0,a.createElement)(d,{title:__("Aplo General Styles","aplostyles"),initialOpen:!1,className:"aplogeneralstyles"},"undefined"!=typeof hdgDecorSelect?hdgDecorSelect():"",(()=>{if(void 0!==h)return(0,a.createElement)(v,{label:__("Mask","aplo"),value:h,options:[{label:__("","aplo"),value:""},{label:__("Point Right","aplo"),value:"pr"},{label:__("Point Left","aplo"),value:"pl"},{label:__("Point Left&Right","aplo"),value:"plr"},{label:__("Lean Right","aplo"),value:"sr"},{label:__("Lean Left","aplo"),value:"sl"},{label:__("Slope Up","aplo"),value:"su"},{label:__("Slope Down","aplo"),value:"sd"},{label:__("Slope Up Bottom","aplo"),value:"sub"},{label:__("Slope Down Bottom","aplo"),value:"sdb"},{label:__("Slope Up Top","aplo"),value:"sut"},{label:__("Slope Down Top","aplo"),value:"sdt"},{label:__("Pinch Left&Right","aplo"),value:"pilr"},{label:__("Pinch Top&Bottom","aplo"),value:"pitb"}],onChange:e=>{z({aplomask:e})}})})(),(0,a.createElement)(r.RangeControl,{label:__("Clip value","aplo"),value:j,onChange:e=>{z({aploclip:e})},min:1,max:50,step:1,allowReset:!0}),"undefined"!=typeof borderSelect?borderSelect():"",(()=>{if(void 0!==g)return(0,a.createElement)("p",null,"Select a color group for either the group or column blocks"),(0,a.createElement)(v,{label:__("Pattern Group","aplo"),value:g,options:[{label:__("","aplo"),value:""},{label:__("Theme","aplo"),value:"zero"},{label:__("Switch FG & BG","aplo"),value:"one"},{label:__("Primary BG","aplo"),value:"two"},{label:__("Tertiary BG","aplo"),value:"three"}],onChange:e=>{z({aplopatterngroup:e})}})})(),(0,a.createElement)(v,{label:__("Shadow","aplo"),value:p,options:[{label:__("","aplo"),value:""},{label:__("Small","aplo"),value:"small"},{label:__("Medium","aplo"),value:"med"},{label:__("Large","aplo"),value:"large"}],onChange:e=>{z({aploshadow:e})}}),(0,a.createElement)(v,{label:__("Background","aplo"),value:i,options:[{label:__("","aploeffects"),value:""},{label:__("Texture 1","aploeffects"),value:"one"},{label:__("Texture 2","aploeffects"),value:"two"},{label:__("Texture 3","aploeffects"),value:"three"},{label:__("Texture 4","aploeffects"),value:"four"},{label:__("Texture 5","aploeffects"),value:"five"},{label:__("Texture 6","aploeffects"),value:"six"},{label:__("Texture 7","aploeffects"),value:"seven"},{label:__("Texture 8","aploeffects"),value:"eight"},{label:__("Texture 9","aploeffects"),value:"nine"},{label:__("Texture 10","aploeffects"),value:"ten"}],onChange:e=>{z({aplotexture:e})}}),(0,a.createElement)("h2",null,__("Hover Transition Settings")),(0,a.createElement)("p",null,"Set the hover transitions if you do not want the default settings"),(0,a.createElement)(r.RangeControl,{label:__("Duration","aplo"),value:$,onChange:e=>{z({aplohoverduration:e})},min:0,max:5e3,step:50,allowReset:!0}),(0,a.createElement)(v,{label:__("Easing Function","aplo"),value:R,options:[{label:__("","aplo"),value:""},{label:__("ease (Slow-Fast-Slow)","aplo"),value:"ease"},{label:__("ease-in (Slow-Fast)","aplo"),value:"ease-in"},{label:__("ease-out (Fast-Slow)","aplo"),value:"ease-out"},{label:__("ease-in-out (Slow-Fast-Slow)","aplo"),value:"ease-in-out"}],onChange:e=>{z({aplohoverease:e})}}),(0,a.createElement)(r.RangeControl,{label:__("Z-index","aplo"),value:k,onChange:e=>{z({aplozindex:e})},min:-5,max:10,step:1,allowReset:!0}))))}),"withInspectorControl")),i("editor.BlockListBlock","aploeffects/group/add-editor-class",p((t=>l=>{const{attributes:{aploeffect:o},attributes:{aploeffectdelay:r},attributes:{aploeffectduration:n},attributes:{aplofilters:s},attributes:{aplofiltersHover:i},attributes:{backdropFilter:p},attributes:{hasFilters:c},attributes:{hasHoverFilters:d},attributes:{shadowInvert:v},attributes:{aplotransforms:f},attributes:{aplotransformsHover:x},attributes:{hasTransforms:S},attributes:{hasHoverTransforms:C},attributes:{aplohoverduration:T},className:F,name:H}=l;if(!1===m.includes(H))return(0,a.createElement)(t,l);const $=o&&n?{"--aplo-tedu":n+"ms"}:{},R=o&&r?{"--aplo-tede":r+"ms"}:{},k=c>0?h(s):"",O=d>0?b(i):"",B=S>0?y(f):"",P=C>0?E(x):"",I=T?{"--aplo-thdu":T+"ms"}:{},j=g(l.attributes);let D={...l.wrapperProps};return D.style={...D.style,...k,...O,...B,...P,...I,...$,...R,...j},D.style={...D.style},(0,a.createElement)(u,null,(0,a.createElement)(t,e({},l,{wrapperProps:D,className:w(F,l.attributes,!1)}))," ")}),"withClientIdClassName")),i("blocks.getSaveContent.extraProps","aploeffects/group/add-front-end-class",(function(e,a,t){if(!1===m.includes(a.name))return e;const{className:l}=e,{style:o}=e,{aploeffect:r}=t,{aploeffectdelay:s}=t,{aploeffectduration:i}=t,{aplofilters:p}=t,{aplofiltersHover:u}=t,{backdropFilter:c}=t,{hasFilters:d}=t,{hasHoverFilters:v}=t,{shadowInvert:f}=t,{hasTransforms:x}=t,{hasHoverTransforms:S}=t,{aplotransforms:C}=t,{aplotransformsHover:T}=t,{aplohoverduration:F}=t,H=r&&i?{"--aplo-tedu":i+"ms"}:{},$=r&&s?{"--aplo-tede":s+"ms"}:{},R=d>0?h(p):"",k=v>0?b(u):"",O=x>0?y(C):"",B=S>0?E(T):"",P=F?{"--aplo-thdu":F+"ms"}:{},I=g(t);return n({},e,{className:w(l,t,!0),style:{...o,...R,...k,...O,...B,...P,...H,...$,...I}})}))}()}();