%PDF- %PDF-
Direktori : /var/www/projetos/nossaradio.com.br/wp-content/plugins/otter-blocks/build/animation/ |
Current File : /var/www/projetos/nossaradio.com.br/wp-content/plugins/otter-blocks/build/animation/index.js |
!function(){var e={184:function(e,t){var o;!function(){"use strict";var l={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var a=typeof o;if("string"===a||"number"===a)e.push(o);else if(Array.isArray(o)){if(o.length){var r=n.apply(null,o);r&&e.push(r)}}else if("object"===a){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){e.push(o.toString());continue}for(var i in o)l.call(o,i)&&o[i]&&e.push(i)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(o=function(){return n}.apply(t,[]))||(e.exports=o)}()}},t={};function o(l){var n=t[l];if(void 0!==n)return n.exports;var a=t[l]={exports:{}};return e[l](a,a.exports,o),a.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var l in t)o.o(t,l)&&!o.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var l=t.getElementsByTagName("script");l.length&&(e=l[l.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e}(),function(){"use strict";var e=window.wp.element,t=window.wp.i18n,l=window.wp.blocks,n=window.wp.blockEditor,a=window.wp.components,r=window.wp.compose,i=window.wp.hooks;const c=[{label:(0,t.__)("None","otter-blocks"),value:"none"},{label:(0,t.__)("Back In Down","otter-blocks"),value:"backInDown"},{label:(0,t.__)("Back In Left","otter-blocks"),value:"backInLeft"},{label:(0,t.__)("Back In Right","otter-blocks"),value:"backInRight"},{label:(0,t.__)("Back In Up","otter-blocks"),value:"backInUp"},{label:(0,t.__)("Bounce","otter-blocks"),value:"bounce"},{label:(0,t.__)("Bounce In","otter-blocks"),value:"bounceIn"},{label:(0,t.__)("Bounce In Down","otter-blocks"),value:"bounceInDown"},{label:(0,t.__)("Bounce In Left","otter-blocks"),value:"bounceInLeft"},{label:(0,t.__)("Bounce In Right","otter-blocks"),value:"bounceInRight"},{label:(0,t.__)("Bounce In Up","otter-blocks"),value:"bounceInUp"},{label:(0,t.__)("Fade In","otter-blocks"),value:"fadeIn"},{label:(0,t.__)("Fade In Down","otter-blocks"),value:"fadeInDown"},{label:(0,t.__)("Fade In Down Big","otter-blocks"),value:"fadeInDownBig"},{label:(0,t.__)("Fade In Left","otter-blocks"),value:"fadeInLeft"},{label:(0,t.__)("Fade In Left Big","otter-blocks"),value:"fadeInLeftBig"},{label:(0,t.__)("Fade In Right","otter-blocks"),value:"fadeInRight"},{label:(0,t.__)("Fade In Right Big","otter-blocks"),value:"fadeInRightBig"},{label:(0,t.__)("Fade In Up","otter-blocks"),value:"fadeInUp"},{label:(0,t.__)("Fade In Top Left","otter-blocks"),value:"fadeInTopLeft"},{label:(0,t.__)("Fade In Top Right","otter-blocks"),value:"fadeInTopRight"},{label:(0,t.__)("Fade In Bottom Left","otter-blocks"),value:"fadeInBottomLeft"},{label:(0,t.__)("Fade In Bottom Right","otter-blocks"),value:"fadeInBottomRight"},{label:(0,t.__)("Flip","otter-blocks"),value:"flip"},{label:(0,t.__)("Flip In X","otter-blocks"),value:"flipInX"},{label:(0,t.__)("Flip In Y","otter-blocks"),value:"flipInY"},{label:(0,t.__)("Rotate In","otter-blocks"),value:"rotateIn"},{label:(0,t.__)("Rotate In Down Left","otter-blocks"),value:"rotateInDownLeft"},{label:(0,t.__)("Rotate In Down Right","otter-blocks"),value:"rotateInDownRight"},{label:(0,t.__)("Rotate In Up Left","otter-blocks"),value:"rotateInUpLeft"},{label:(0,t.__)("Rotate In Up Right","otter-blocks"),value:"rotateInUpRight"},{label:(0,t.__)("Slide In Down","otter-blocks"),value:"slideInDown"},{label:(0,t.__)("Slide In Left","otter-blocks"),value:"slideInLeft"},{label:(0,t.__)("Slide In Right","otter-blocks"),value:"slideInRight"},{label:(0,t.__)("Slide In Up","otter-blocks"),value:"slideInUp"},{label:(0,t.__)("Zoom In","otter-blocks"),value:"zoomIn"},{label:(0,t.__)("Zoom In Down","otter-blocks"),value:"zoomInDown"},{label:(0,t.__)("Zoom In Left","otter-blocks"),value:"zoomInLeft"},{label:(0,t.__)("Zoom In Right","otter-blocks"),value:"zoomInRight"},{label:(0,t.__)("Zoom In Up","otter-blocks"),value:"zoomInUp"},{label:(0,t.__)("Roll In","otter-blocks"),value:"rollIn"},{label:(0,t.__)("Light Speed In Right","otter-blocks"),value:"lightSpeedInRight"},{label:(0,t.__)("Light Speed In Left","otter-blocks"),value:"lightSpeedInLeft"},{label:(0,t.__)("Flash","otter-blocks"),value:"flash"},{label:(0,t.__)("Pulse","otter-blocks"),value:"pulse"},{label:(0,t.__)("Rubber Band","otter-blocks"),value:"rubberBand"},{label:(0,t.__)("Shake X","otter-blocks"),value:"shakeX"},{label:(0,t.__)("Shake Y","otter-blocks"),value:"shakeY"},{label:(0,t.__)("Head Shake","otter-blocks"),value:"headShake"},{label:(0,t.__)("Swing","otter-blocks"),value:"swing"},{label:(0,t.__)("TaDa","otter-blocks"),value:"tada"},{label:(0,t.__)("Wobble","otter-blocks"),value:"wobble"},{label:(0,t.__)("Jello","otter-blocks"),value:"jello"},{label:(0,t.__)("Heart Beat","otter-blocks"),value:"heartBeat"},{label:(0,t.__)("Hinge","otter-blocks"),value:"hinge"},{label:(0,t.__)("Jack In The Box","otter-blocks"),value:"jackInTheBox"}],s=[{label:(0,t.__)("Backing","otter-blocks"),value:"backInDown"},{label:(0,t.__)("Bouncing","otter-blocks"),value:"bounce"},{label:(0,t.__)("Fading","otter-blocks"),value:"fadeIn"},{label:(0,t.__)("Flipping","otter-blocks"),value:"flip"},{label:(0,t.__)("Rotating","otter-blocks"),value:"rotateIn"},{label:(0,t.__)("Sliding","otter-blocks"),value:"slideInDown"},{label:(0,t.__)("Zooming","otter-blocks"),value:"zoomIn"},{label:(0,t.__)("Rolling","otter-blocks"),value:"rollIn"},{label:(0,t.__)("Light Speed","otter-blocks"),value:"lightSpeedInRight"},{label:(0,t.__)("Other","otter-blocks"),value:"flash"}],u=["backOutDown","backOutLeft","backOutRight","backOutUp","bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","fadeOutTopLeft","fadeOutTopRight","fadeOutBottomRight","fadeOutBottomLeft","flipOutX","flipOutY","lightSpeedOutRight","lightSpeedOutLeft","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","slideOutDown","slideOutLeft","slideOutRight","slideOutUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","rollOut"],b=[{label:(0,t.__)("None","otter-blocks"),value:"none"},{label:(0,t.__)("100 Milliseconds","otter-blocks"),value:"delay-100ms"},{label:(0,t.__)("200 Milliseconds","otter-blocks"),value:"delay-200ms"},{label:(0,t.__)("500 Milliseconds","otter-blocks"),value:"delay-500ms"},{label:(0,t.__)("One Second","otter-blocks"),value:"delay-1s"},{label:(0,t.__)("Two Second","otter-blocks"),value:"delay-2s"},{label:(0,t.__)("Three Second","otter-blocks"),value:"delay-3s"},{label:(0,t.__)("Four Second","otter-blocks"),value:"delay-4s"},{label:(0,t.__)("Five Second","otter-blocks"),value:"delay-5s"}],m=[{label:(0,t.__)("Slow","otter-blocks"),value:"slow"},{label:(0,t.__)("Slower","otter-blocks"),value:"slower"},{label:(0,t.__)("Default","otter-blocks"),value:"none"},{label:(0,t.__)("Fast","otter-blocks"),value:"fast"},{label:(0,t.__)("Faster","otter-blocks"),value:"faster"}];var d=function o(l){let{animationsList:n,updateAnimation:i,currentAnimationLabel:c,setCurrentAnimationLabel:u}=l;const b=(0,r.useInstanceId)(o),[m,d]=(0,e.useState)(""),[_,p]=(0,e.useState)(!1),v=`inspector-o-animations-control-${b}`;return(0,e.createElement)(a.BaseControl,{label:(0,t.__)("Animation","otter-blocks"),id:v},(0,e.createElement)(a.Dropdown,{contentClassName:"o-animations-control__popover",position:"bottom center",renderToggle:t=>{let{isOpen:o,onToggle:l}=t;return(0,e.createElement)(a.Button,{className:"o-animations-control__button",id:v,onClick:l,"aria-expanded":o},c)},renderContent:o=>{let{onToggle:l}=o;return(0,e.createElement)(a.MenuGroup,{label:(0,t.__)("Animations","otter-blocks")},(0,e.createElement)(a.TextControl,{placeholder:(0,t.__)("Search","otter-blocks"),value:m,onChange:e=>{d(e),p(!1)}}),(0,e.createElement)("div",{className:"components-popover__items"},n.map((t=>(0,e.createElement)(e.Fragment,null,""===m&&s.map((o=>o.value===t.value?(0,e.createElement)("div",{className:"o-animations-control__category"},o.label):"")),((t,o)=>{let l=!0;return m&&m.toLowerCase().split(" ").forEach((e=>{t.label.toLowerCase().includes(e)||(l=!1)})),l&&!_&&p(!0),l&&(0,e.createElement)(a.MenuItem,{className:c===t.label?"is-selected":"",onClick:()=>{u(t.label),i(t.value),o()}},t.label)})(t,l)))),!_&&(0,e.createElement)("div",null,(0,t.__)("Nothing found. Try searching for something else!","otter-blocks"))))}}))},p=o(184),v=o.n(p),f=function(t){let{icon:o,size:l=24,...n}=t;return(0,e.cloneElement)(o,{width:l,height:l,...n})},k=window.wp.primitives,g=(0,e.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(k.Path,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"})),h=(0,e.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(k.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"}));const w=o=>{let{label:l,attributes:n,setAttributes:i,resetValues:c,onClick:s,children:u}=o;(0,e.useEffect)((()=>{for(const e in c){if(c[e]!==n[e])return d(!0);d(!1)}}),[n]);const b=(0,r.useInstanceId)(w),[m,d]=(0,e.useState)(!1),_=`inspector-control-panel-control-${b}`;return(0,e.createElement)("div",{className:"o-control-panel-control"},(0,e.createElement)("div",{className:"components-base-control__field"},(0,e.createElement)("div",{className:"components-base-control__title"},(0,e.createElement)("label",{className:"components-base-control__label",htmlFor:_},l),(0,e.createElement)("div",{className:"floating-controls"},(0,e.createElement)(a.Dropdown,{position:"top left",headerTitle:l,expandOnMobile:!0,renderToggle:o=>{let{isOpen:n,onToggle:r}=o;return(0,e.createElement)(e.Fragment,null,m&&(0,e.createElement)(a.Button,{icon:(0,e.createElement)(f,{icon:g}),label:(0,t.__)("Reset to default","otter-blocks"),showTooltip:!0,isTertiary:!0,onClick:()=>i({...c})}),(0,e.createElement)(a.Button,{id:_,icon:h,label:l,showTooltip:!0,onClick:()=>{r(),s&&s()},"aria-expanded":n,className:v()({"is-active":m})}))},renderContent:()=>(0,e.createElement)("div",{className:"otter-popover-settings"},u)})))))};var I=w,E=o.p+"images/count-animation.1151d25d.png",y=o.p+"images/typing-animation.d84cccd1.png";const S="default",B=(e,t,o,l,n,a)=>{let r;switch(e){case"count":r="o-count-";break;case"typing":r="o-typing-";break;case S:r=""}const i=r+t,c="none"!==o?r+o:"";let s;n.className?(s=n.className,s=s.split(" "),s.find((e=>e===i))?s=s.join(" ").replace(i,c):(s.push(c),s=s.join(" ").trim())):s=c,s=s.replace(/\s+/g," "),""===s&&(s=void 0),a({className:s}),l?.()};var R=(0,e.memo)((function(o){let{clientId:l,attributes:n,setAttributes:r}=o;(0,e.useEffect)((()=>{let e;if(n.className){e=n.className,e=e.split(" ");let t=Array.from(c).find((t=>e.find((e=>e===t.value))));const o=Array.from(b).find((t=>e.find((e=>e===t.value)))),l=Array.from(m).find((t=>e.find((e=>e===t.value))));p(t?t.value:"none"),f(o?o.value:"none"),g(l?l.value:"none"),w(t?t.label:"none")}}),[]);const[s,p]=(0,e.useState)("none"),[v,f]=(0,e.useState)("none"),[k,g]=(0,e.useState)("none"),[h,w]=(0,e.useState)((0,t.__)("None","otter-blocks")),R=e=>{let t,o="none"!==e?e:"";if(n.className){t=n.className,t=t.split(" ");const e=t.find((e=>e===s));t.find((e=>"animated"===e))||t.push("animated"),e?t=t.join(" ").replace(s,o):(t.push(o),t=t.join(" "))}else t=`animated ${o}`;"none"===e&&(t=t.replace("animated","").replace(v,"").replace(k,""),f("none"),g("none")),t=t.replace(/\s+/g," ").trim(),""===t&&(t=void 0),p(e),r({className:t});let a=document.querySelector(`#block-${l} .animated`)||document.querySelector(`#block-${l}.animated`);a&&u.forEach((e=>{a.className.includes(e)&&a.addEventListener("animationend",(()=>{a.classList.remove(e),a.addEventListener("animationstart",(()=>{a.classList.remove(e)}))}))}))};return(0,e.useEffect)((()=>{void 0!==window?.blocksAnimation&&(window.blocksAnimation.removeAnimation=()=>R("none"))}),[]),(0,e.createElement)(a.PanelBody,{title:(0,t.__)("Animations","otter-blocks"),initialOpen:!1},(0,e.createElement)("div",{className:"o-animations-control"},(0,e.createElement)(d,{animationsList:c,updateAnimation:R,currentAnimationLabel:h,setCurrentAnimationLabel:w}),"none"!==s&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(a.SelectControl,{label:(0,t.__)("Delay","otter-blocks"),value:v||"none",options:b,onChange:e=>B(S,v,e,(()=>f(e)),n,r)}),(0,e.createElement)(a.SelectControl,{label:(0,t.__)("Speed","otter-blocks"),value:k||"none",options:m,onChange:e=>B(S,k,e,(()=>g(e)),n,r)}),(0,e.createElement)(a.Button,{variant:"secondary",onClick:()=>{let e=n.className;e=e.replace(s,"o-replay"),r({className:e}),setTimeout((()=>r({className:e.replace("o-replay",s)})),100)}},(0,t.__)("Replay Animation","otter-blocks")))),(0,e.createElement)(I,{label:(0,t.__)("Count Animations","otter-blocks")},(0,e.createElement)("img",{src:y,alt:_("Using Count Animation in the Block Editor","otter-blocks"),className:"otter-animations-count-image"}),(0,e.createElement)("p",null,(0,t.__)("You can add counting animation from the format toolbar of this block.","otter-blocks")),(0,e.createElement)("p",null,(0,t.__)("Note: This feature is not available in all the blocks.","otter-blocks"))),(0,e.createElement)(I,{label:(0,t.__)("Typing Animations","otter-blocks")},(0,e.createElement)("img",{src:E,alt:_("Using Typing Animation in the Block Editor","otter-blocks"),className:"otter-animations-count-image"}),(0,e.createElement)("p",null,(0,t.__)("You can add typing animation from the format toolbar of this block.","otter-blocks")),(0,e.createElement)("p",null,(0,t.__)("Note: This feature is not available in all the blocks.","otter-blocks"))),(0,e.createElement)("div",{className:"o-fp-wrap"},(0,i.applyFilters)("otter.feedback","","animations"),(0,i.applyFilters)("otter.poweredBy","")))})),O=(0,e.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(k.Path,{d:"M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"})),A=window.wp.richText,L=window.wp.data,N=o=>{let{value:l,contentRef:n}=o;(0,e.useEffect)((()=>{let e;if(c.className){e=c.className,e=e.split(" ");const t=Array.from(b).find((t=>e.find((e=>e===`o-count-${t.value}`)))),o=Array.from(m).find((t=>e.find((e=>e===`o-count-${t.value}`))));_(t?t.value:"none"),v(o?o.value:"none")}}),[]);const{clientId:r,attributes:c}=(0,L.useSelect)((e=>{const{getSelectedBlock:t}=e("core/block-editor"),o=t();return{clientId:o?.clientId,attributes:o?.attributes}}),[]),{updateBlockAttributes:s}=(0,L.useDispatch)("core/block-editor"),u=e=>s(r,e),[d,_]=(0,e.useState)("none"),[p,v]=(0,e.useState)("none"),f=(0,A.useAnchorRef)({ref:n,value:l,settings:T});return(0,e.createElement)(a.Popover,{position:"bottom center right",placement:"bottom",noArrow:!1,anchor:f,anchorRef:f,focusOnMount:!1,className:"o-animation-popover"},(0,e.createElement)(a.__experimentalHeading,{level:4},(0,t.__)("Count Animation","otter-blocks")),(0,e.createElement)(a.SelectControl,{label:(0,t.__)("Delay","otter-blocks"),value:d||"none",options:b,onChange:u}),(0,e.createElement)(a.SelectControl,{label:(0,t.__)("Speed","otter-blocks"),value:p||"none",options:m,onChange:u}),(0,i.applyFilters)("otter.poweredBy",""))};const C="themeisle-blocks/count-animation",T={name:C,title:(0,t.__)("Count Animation","otter-blocks"),tagName:"o-anim-count",className:null,edit:o=>{let{isActive:l,value:a,onChange:r,contentRef:i}=o;const c=/^\$?[\d,]+(\.\d*)?$/;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.RichTextToolbarButton,{icon:O,title:(0,t.__)("Count Animation","otter-blocks"),isDisabled:!l&&null===c.exec(a.text.substring(a.start,a.end)),onClick:()=>{(l||!l&&null!==c.exec(a.text.substring(a.start,a.end)))&&r((0,A.toggleFormat)(a,{type:C}))},isActive:l}),l&&(0,e.createElement)(N,{value:a,contentRef:i}))}};(0,A.registerFormatType)(C,T);var F=o=>{let{value:l,contentRef:n}=o;(0,e.useEffect)((()=>{let e;if(c.className){e=c.className,e=e.split(" ");const t=Array.from(b).find((t=>e.find((e=>e===`o-typing-${t.value}`)))),o=Array.from(m).find((t=>e.find((e=>e===`o-typing-${t.value}`))));_(t?t.value:"none"),v(o?o.value:"none")}}),[]);const{clientId:r,attributes:c}=(0,L.useSelect)((e=>{const{getSelectedBlock:t}=e("core/block-editor"),o=t();return{clientId:o?.clientId,attributes:o?.attributes}}),[]),{updateBlockAttributes:s}=(0,L.useDispatch)("core/block-editor"),u=e=>s(r,e),[d,_]=(0,e.useState)("none"),[p,v]=(0,e.useState)("none"),f=(0,A.useAnchorRef)({ref:n,value:l,settings:x});return(0,e.createElement)(a.Popover,{position:"bottom center right",placement:"bottom",noArrow:!1,anchor:f,anchorRef:f,focusOnMount:!1,className:"o-animation-popover"},(0,e.createElement)(a.__experimentalHeading,{level:4},(0,t.__)("Typing Animation","otter-blocks")),(0,e.createElement)(a.SelectControl,{label:(0,t.__)("Delay","otter-blocks"),value:d||"none",options:b,onChange:e=>B("typing",d,e,(()=>_(e)),c,u)}),(0,e.createElement)(a.SelectControl,{label:(0,t.__)("Speed","otter-blocks"),value:p||"none",options:m,onChange:e=>B("typing",p,e,(()=>v(e)),c,u)}),(0,i.applyFilters)("otter.poweredBy",""))};const D="themeisle-blocks/typing-animation",x={name:D,title:(0,t.__)("Typing Animation","otter-blocks"),tagName:"o-anim-typing",className:null,edit:o=>{let{isActive:l,value:a,onChange:r,contentRef:i}=o;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.RichTextToolbarButton,{icon:O,title:(0,t.__)("Typing Animation","otter-blocks"),onClick:()=>{r((0,A.toggleFormat)(a,{type:D}))},isActive:l}),l&&(0,e.createElement)(F,{value:a,contentRef:i}))}};(0,A.registerFormatType)(D,x);const U=["themeisle-blocks/popup"],z=(0,r.createHigherOrderComponent)((t=>o=>(0,l.hasBlockSupport)(o.name,"customClassName",!0)&&o.isSelected&&!U.includes(o.name)?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,o),(0,e.createElement)(n.InspectorControls,null,(0,e.createElement)(R,o))):(0,e.createElement)(t,o)),"withInspectorControl");Boolean(window?.blocksAnimation?.hasOtter)?(0,i.addFilter)("otter.blockTools","themeisle-animations/with-inspector-controls",((o,n)=>(0,l.hasBlockSupport)(n.name,"customClassName",!0)&&!U.includes(n.name)?(0,e.createElement)(e.Fragment,null,o,(0,e.createElement)(a.__experimentalToolsPanelItem,{hasValue:()=>Boolean(n?.attributes?.className?.includes("animated")),label:(0,t.__)("Animations","otter-blocks"),onDeselect:()=>window?.blocksAnimation?.removeAnimation(),isShownByDefault:!1},(0,e.createElement)(R,n))):o),1):(0,i.addFilter)("editor.BlockEdit","themeisle-animations/with-inspector-controls",z)}()}();