FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
cozy-addons
/
cozy-blocks
/
assets
/
js
Edit File: cozy-animation.min.js
(()=>{var e={42:function(e,t,o){e.exports=function(){"use strict";var e="undefined"!=typeof window?window:void 0!==o.g?o.g:"undefined"!=typeof self?self:{},t="Expected a function",n=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt,d="object"==typeof e&&e&&e.Object===Object&&e,u="object"==typeof self&&self&&self.Object===Object&&self,m=d||u||Function("return this")(),f=Object.prototype.toString,p=Math.max,b=Math.min,v=function(){return m.Date.now()};function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&f.call(e)==a}(e))return n;if(y(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=y(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var o=c.test(e);return o||l.test(e)?s(e.slice(2),o?2:8):r.test(e)?n:+e}var w=function(e,o,n){var a=!0,i=!0;if("function"!=typeof e)throw new TypeError(t);return y(n)&&(a="leading"in n?!!n.leading:a,i="trailing"in n?!!n.trailing:i),function(e,o,n){var a,i,r,c,l,s,d=0,u=!1,m=!1,f=!0;if("function"!=typeof e)throw new TypeError(t);function w(t){var o=a,n=i;return a=i=void 0,d=t,c=e.apply(n,o)}function h(e){var t=e-s;return void 0===s||t>=o||t<0||m&&e-d>=r}function _(){var e=v();if(h(e))return z(e);l=setTimeout(_,function(e){var t=o-(e-s);return m?b(t,r-(e-d)):t}(e))}function z(e){return l=void 0,f&&a?w(e):(a=i=void 0,c)}function k(){var e=v(),t=h(e);if(a=arguments,i=this,s=e,t){if(void 0===l)return function(e){return d=e,l=setTimeout(_,o),u?w(e):c}(s);if(m)return l=setTimeout(_,o),w(s)}return void 0===l&&(l=setTimeout(_,o)),c}return o=g(o)||0,y(n)&&(u=!!n.leading,r=(m="maxWait"in n)?p(g(n.maxWait)||0,o):r,f="trailing"in n?!!n.trailing:f),k.cancel=function(){void 0!==l&&clearTimeout(l),d=0,a=s=i=l=void 0},k.flush=function(){return void 0===l?c:z(v())},k}(e,o,{leading:a,maxWait:o,trailing:i})},h=/^\s+|\s+$/g,_=/^[-+]0x[0-9a-f]+$/i,z=/^0b[01]+$/i,k=/^0o[0-7]+$/i,O=parseInt,x="object"==typeof e&&e&&e.Object===Object&&e,E="object"==typeof self&&self&&self.Object===Object&&self,j=x||E||Function("return this")(),C=Object.prototype.toString,N=Math.max,A=Math.min,T=function(){return j.Date.now()};function L(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function F(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==C.call(e)}(e))return NaN;if(L(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=L(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(h,"");var o=z.test(e);return o||k.test(e)?O(e.slice(2),o?2:8):_.test(e)?NaN:+e}var D=function(e,t,o){var n,a,i,r,c,l,s=0,d=!1,u=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var o=n,i=a;return n=a=void 0,s=t,r=e.apply(i,o)}function p(e){var o=e-l;return void 0===l||o>=t||o<0||u&&e-s>=i}function b(){var e=T();if(p(e))return v(e);c=setTimeout(b,function(e){var o=t-(e-l);return u?A(o,i-(e-s)):o}(e))}function v(e){return c=void 0,m&&n?f(e):(n=a=void 0,r)}function y(){var e=T(),o=p(e);if(n=arguments,a=this,l=e,o){if(void 0===c)return function(e){return s=e,c=setTimeout(b,t),d?f(e):r}(l);if(u)return c=setTimeout(b,t),f(l)}return void 0===c&&(c=setTimeout(b,t)),r}return t=F(t)||0,L(o)&&(d=!!o.leading,i=(u="maxWait"in o)?N(F(o.maxWait)||0,t):i,m="trailing"in o?!!o.trailing:m),y.cancel=function(){void 0!==c&&clearTimeout(c),s=0,n=l=a=c=void 0},y.flush=function(){return void 0===c?r:v(T())},y},S=function(){};function q(e){e&&e.forEach((function(e){var t=Array.prototype.slice.call(e.addedNodes),o=Array.prototype.slice.call(e.removedNodes);if(function e(t){var o=void 0,n=void 0;for(o=0;o<t.length;o+=1){if((n=t[o]).dataset&&n.dataset.aos)return!0;if(n.children&&e(n.children))return!0}return!1}(t.concat(o)))return S()}))}function M(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}var H=function(){return!!M()},P=function(e,t){var o=window.document,n=new(M())(q);S=t,n.observe(o.documentElement,{childList:!0,subtree:!0,removedNodes:!0})},B=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Z=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,R=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,$=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,U=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i;function W(){return navigator.userAgent||navigator.vendor||window.opera||""}var Y=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return B(e,[{key:"phone",value:function(){var e=W();return!(!Z.test(e)&&!R.test(e.substr(0,4)))}},{key:"mobile",value:function(){var e=W();return!(!$.test(e)&&!U.test(e.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}},{key:"ie11",value:function(){return"-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style}}]),e}()),K=function(e,t){var o=void 0;return Y.ie11()?(o=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,{detail:t}):o=new CustomEvent(e,{detail:t}),document.dispatchEvent(o)},G=function(e){return e.forEach((function(e,t){return function(e,t){var o=e.options,n=e.position,a=e.node,i=(e.data,function(){e.animated&&(function(e,t){t&&t.forEach((function(t){return e.classList.remove(t)}))}(a,o.animatedClassNames),K("aos:out",a),e.options.id&&K("aos:in:"+e.options.id,a),e.animated=!1)});o.mirror&&t>=n.out&&!o.once?i():t>=n.in?e.animated||(function(e,t){t&&t.forEach((function(t){return e.classList.add(t)}))}(a,o.animatedClassNames),K("aos:in",a),e.options.id&&K("aos:in:"+e.options.id,a),e.animated=!0):e.animated&&!o.once&&i()}(e,window.pageYOffset)}))},J=function(e){for(var t=0,o=0;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)t+=e.offsetLeft-("BODY"!=e.tagName?e.scrollLeft:0),o+=e.offsetTop-("BODY"!=e.tagName?e.scrollTop:0),e=e.offsetParent;return{top:o,left:t}},Q=function(e,t,o){var n=e.getAttribute("data-aos-"+t);if(void 0!==n){if("true"===n)return!0;if("false"===n)return!1}return n||o},V=function(){var e=document.querySelectorAll("[data-aos]");return Array.prototype.map.call(e,(function(e){return{node:e}}))},X=[],ee=!1,te={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,mirror:!1,anchorPlacement:"top-bottom",startEvent:"DOMContentLoaded",animatedClassName:"aos-animate",initClassName:"aos-init",useClassNames:!1,disableMutationObserver:!1,throttleDelay:99,debounceDelay:50},oe=function(){return document.all&&!window.atob},ne=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(ee=!0),ee&&(X=function(e,t){return e.forEach((function(e,o){var n=Q(e.node,"mirror",t.mirror),a=Q(e.node,"once",t.once),i=Q(e.node,"id"),r=t.useClassNames&&e.node.getAttribute("data-aos"),c=[t.animatedClassName].concat(r?r.split(" "):[]).filter((function(e){return"string"==typeof e}));t.initClassName&&e.node.classList.add(t.initClassName),e.position={in:function(e,t,o){var n=window.innerHeight,a=Q(e,"anchor"),i=Q(e,"anchor-placement"),r=Number(Q(e,"offset",i?0:t)),c=i||o,l=e;a&&document.querySelectorAll(a)&&(l=document.querySelectorAll(a)[0]);var s=J(l).top-n;switch(c){case"top-bottom":break;case"center-bottom":s+=l.offsetHeight/2;break;case"bottom-bottom":s+=l.offsetHeight;break;case"top-center":s+=n/2;break;case"center-center":s+=n/2+l.offsetHeight/2;break;case"bottom-center":s+=n/2+l.offsetHeight;break;case"top-top":s+=n;break;case"bottom-top":s+=n+l.offsetHeight;break;case"center-top":s+=n+l.offsetHeight/2}return s+r}(e.node,t.offset,t.anchorPlacement),out:n&&function(e,t){window.innerHeight;var o=Q(e,"anchor"),n=Q(e,"offset",t),a=e;return o&&document.querySelectorAll(o)&&(a=document.querySelectorAll(o)[0]),J(a).top+a.offsetHeight-n}(e.node,t.offset)},e.options={once:a,mirror:n,animatedClassNames:c,id:i}})),e}(X,te),G(X),window.addEventListener("scroll",w((function(){G(X,te.once)}),te.throttleDelay)))},ae=function(){if(X=V(),re(te.disable)||oe())return ie();ne()},ie=function(){X.forEach((function(e,t){e.node.removeAttribute("data-aos"),e.node.removeAttribute("data-aos-easing"),e.node.removeAttribute("data-aos-duration"),e.node.removeAttribute("data-aos-delay"),te.initClassName&&e.node.classList.remove(te.initClassName),te.animatedClassName&&e.node.classList.remove(te.animatedClassName)}))},re=function(e){return!0===e||"mobile"===e&&Y.mobile()||"phone"===e&&Y.phone()||"tablet"===e&&Y.tablet()||"function"==typeof e&&!0===e()};return{init:function(e){return te=I(te,e),X=V(),te.disableMutationObserver||H()||(console.info('\n aos: MutationObserver is not supported on this browser,\n code mutations observing has been disabled.\n You may have to call "refreshHard()" by yourself.\n '),te.disableMutationObserver=!0),te.disableMutationObserver||P("[data-aos]",ae),re(te.disable)||oe()?ie():(document.querySelector("body").setAttribute("data-aos-easing",te.easing),document.querySelector("body").setAttribute("data-aos-duration",te.duration),document.querySelector("body").setAttribute("data-aos-delay",te.delay),-1===["DOMContentLoaded","load"].indexOf(te.startEvent)?document.addEventListener(te.startEvent,(function(){ne(!0)})):window.addEventListener("load",(function(){ne(!0)})),"DOMContentLoaded"===te.startEvent&&["complete","interactive"].indexOf(document.readyState)>-1&&ne(!0),window.addEventListener("resize",D(ne,te.debounceDelay,!0)),window.addEventListener("orientationchange",D(ne,te.debounceDelay,!0)),X)},refresh:ne,refreshHard:ae}}()}},t={};function o(n){var a=t[n];if(void 0!==a)return a.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},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=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.React;var t=o(42),n=o.n(t);const a=window.wp.i18n,i=window.wp.compose,r=window.wp.blockEditor,c=window.wp.components,l=window.wp.hooks;n().init({once:!0,duration:600});const s=["core/buttons","core/button","core/cover","core/group","core/heading","core/columns","core/column","core/paragraph","core/image","cozy-block/slider","cozy-block/post-slider","cozy-block/product-slider"];(0,l.addFilter)("blocks.registerBlockType","cozy-animation/register-block-attribute",((e,t)=>s.includes(t)?Object.assign({},e,{attributes:Object.assign({},e.attributes,{cozyAnimation:{type:"object",default:{type:"none",easingFunction:"ease-in",anchorPlacement:"top-bottom",duration:600}}})}):e));const d=(0,i.createHigherOrderComponent)((t=>o=>{if(!s.includes(o.name)&&!o.attributes.cozyAnimation)return(0,e.createElement)(t,{...o});const{attributes:n,setAttributes:i}=o,{cozyAnimation:l}=n;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.InspectorControls,{key:"setting",group:"settings"},(0,e.createElement)(c.PanelBody,{title:(0,a.__)("Cozy Animation","cozy-addons"),initialOpen:!1},(0,e.createElement)(c.SelectControl,{label:(0,a.__)("Type","cozy-addons"),options:[{label:(0,a.__)("None","cozy-addons"),value:"none"},{label:(0,a.__)("Fade Up","cozy-addons"),value:"fade-up"},{label:(0,a.__)("Fade Down","cozy-addons"),value:"fade-down"},{label:(0,a.__)("Fade Left","cozy-addons"),value:"fade-left"},{label:(0,a.__)("Fade Right","cozy-addons"),value:"fade-right"},{label:(0,a.__)("Fade Up left","cozy-addons"),value:"fade-up-left"},{label:(0,a.__)("Fade Up Right","cozy-addons"),value:"fade-up-right"},{label:(0,a.__)("Fade Down Left","cozy-addons"),value:"fade-down-left"},{label:(0,a.__)("Fade Down Right","cozy-addons"),value:"fade-down-right"},{label:(0,a.__)("Flip Up","cozy-addons"),value:"flip-up"},{label:(0,a.__)("Flip Down","cozy-addons"),value:"flip-down"},{label:(0,a.__)("Flip Left","cozy-addons"),value:"flip-left"},{label:(0,a.__)("Flip Right","cozy-addons"),value:"flip-right"},{label:(0,a.__)("Slide Up","cozy-addons"),value:"slide-up"},{label:(0,a.__)("Slide Down","cozy-addons"),value:"slide-down"},{label:(0,a.__)("Slide Left","cozy-addons"),value:"slide-left"},{label:(0,a.__)("Slide Right","cozy-addons"),value:"slide-right"},{label:(0,a.__)("Zoom In","cozy-addons"),value:"zoom-in"},{label:(0,a.__)("Zoom In Up","cozy-addons"),value:"zoom-in-up"},{label:(0,a.__)("Zoom In Down","cozy-addons"),value:"zoom-in-down"},{label:(0,a.__)("Zoom In Left","cozy-addons"),value:"zoom-in-left"},{label:(0,a.__)("Zoom In Right","cozy-addons"),value:"zoom-in-right"},{label:(0,a.__)("Zoom Out","cozy-addons"),value:"zoom-out"},{label:(0,a.__)("Zoom Out Up","cozy-addons"),value:"zoom-out-up"},{label:(0,a.__)("Zoom Out Down","cozy-addons"),value:"zoom-out-down"},{label:(0,a.__)("Zoom Out Left","cozy-addons"),value:"zoom-out-left"},{label:(0,a.__)("Zoom Out Right","cozy-addons"),value:"zoom-out-right"}],value:l?.type,onChange:e=>i({...n,cozyAnimation:{...l,type:e}})}),"none"!==l?.type&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(c.SelectControl,{label:(0,a.__)("Easing Function","cozy-addons"),options:[{label:(0,a.__)("Linear","cozy-addons"),value:"linear"},{label:(0,a.__)("Ease","cozy-addons"),value:"ease"},{label:(0,a.__)("Ease In","cozy-addons"),value:"ease-in"},{label:(0,a.__)("Ease Out","cozy-addons"),value:"ease-out"},{label:(0,a.__)("Ease In Out","cozy-addons"),value:"ease-in-out"}],value:l?.easingFunction,onChange:e=>i({...n,cozyAnimation:{...l,easingFunction:e}})}),(0,e.createElement)(c.SelectControl,{label:(0,a.__)("Anchor Placement","cozy-addons"),options:[{label:(0,a.__)("Top to Bottom","cozy-addons"),value:"top-bottom"},{label:(0,a.__)("Top to Center","cozy-addons"),value:"top-center"},{label:(0,a.__)("Top to Top","cozy-addons"),value:"top-top"},{label:(0,a.__)("Center to Bottom","cozy-addons"),value:"center-bottom"},{label:(0,a.__)("Center to Center","cozy-addons"),value:"center-center"},{label:(0,a.__)("Center to Top","cozy-addons"),value:"center-top"},{label:(0,a.__)("Bottom to Bottom","cozy-addons"),value:"bottom-bottom"},{label:(0,a.__)("Bottom to Center","cozy-addons"),value:"bottom-center"},{label:(0,a.__)("Bottom to Top","cozy-addons"),value:"bottom-top"}],value:l?.anchorPlacement,onChange:e=>i({...n,cozyAnimation:{...l,anchorPlacement:e}}),help:(0,a.__)("*Note: Defines which position of the element regarding to window should trigger the animation.","cozy-addons")}),(0,e.createElement)(c.RangeControl,{label:(0,a.__)("Duration","cozy-addons"),min:0,max:3e3,step:50,value:l?.duration,onChange:e=>i({...n,cozyAnimation:{...l,duration:Math.abs(e)}})})))),(0,e.createElement)(t,{...o}))}));(0,l.addFilter)("editor.BlockEdit","cozy-animation/set-animation-control",d,100)})()})();
Save
Back