(()=>{"use strict";var e={225:(e,a,t)=>{t.d(a,{A:()=>s});const n=window.wp.components,o=window.wp.i18n,i=window.ReactJSXRuntime,s=(e,a)=>{const{setAttributes:t,attributes:{spectraAnimationType:s,spectraAnimationTime:l,spectraAnimationDelay:r,spectraAnimationEasing:p,spectraAnimationOnce:c}}=a;return a&&s?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.__experimentalToolsPanelItem,{label:(0,o.__)("Animation Duration (ms)","spectra-pro"),isShownByDefault:!0,hasValue:()=>!!l&&400!==l,onDeselect:()=>t({spectraAnimationTime:400}),children:(0,i.jsx)(n.RangeControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,o.__)("Animation Duration (ms)","spectra-pro"),help:(0,o.__)("How long the animation lasts (in milliseconds). Default is 400ms.","spectra-pro"),value:l,min:100,max:3e3,step:100,onChange:e=>t({spectraAnimationTime:e})})}),(0,i.jsx)(n.__experimentalToolsPanelItem,{label:(0,o.__)("Animation Delay (ms)","spectra-pro"),isShownByDefault:!0,hasValue:()=>!!r&&0!==r,onDeselect:()=>t({spectraAnimationDelay:0}),children:(0,i.jsx)(n.RangeControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,o.__)("Animation Delay (ms)","spectra-pro"),help:(0,o.__)("Time to wait before starting (in milliseconds).","spectra-pro"),value:r,min:0,max:3e3,step:100,onChange:e=>t({spectraAnimationDelay:e})})}),(0,i.jsx)(n.__experimentalToolsPanelItem,{label:(0,o.__)("Animation Easing","spectra-pro"),isShownByDefault:!0,hasValue:()=>!!p&&"ease"!==p,onDeselect:()=>t({spectraAnimationEasing:"ease"}),children:(0,i.jsx)(n.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,o.__)("Animation Easing","spectra-pro"),help:(0,o.__)("Controls the animation’s speed flow for a natural feel.","spectra-pro"),onChange:e=>t({spectraAnimationEasing:e}),value:p,options:[{label:(0,o.__)("Ease","spectra-pro"),value:"ease"},{label:(0,o.__)("Ease-in","spectra-pro"),value:"ease-in"},{label:(0,o.__)("Ease-out","spectra-pro"),value:"ease-out"},{label:(0,o.__)("Ease-in-out","spectra-pro"),value:"ease-in-out"}]})}),(0,i.jsx)(n.__experimentalToolsPanelItem,{label:(0,o.__)("Play Repeatedly on Scroll","spectra-pro"),isShownByDefault:!0,hasValue:()=>!c,onDeselect:()=>t({spectraAnimationOnce:!1}),children:(0,i.jsx)(n.ToggleControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,o.__)("Play Repeatedly on Scroll","spectra-pro"),checked:c,onChange:e=>t({spectraAnimationOnce:e}),help:(0,o.__)("Enable to play the animation only once when the element first scrolls into view. Disable to repeat it every time. Applies only on the frontend.","spectra-pro")})})]}):e}}},a={};function t(n){var o=a[n];if(void 0!==o)return o.exports;var i=a[n]={exports:{}};return e[n](i,i.exports,t),i.exports}t.d=(e,a)=>{for(var n in a)t.o(a,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:a[n]})},t.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a);const n=window.wp.hooks;var o=t(225);(0,n.addFilter)("spectra.animations-extension.options","spectra-pro/add-animations-options",o.A)})();