(()=>{var e,t={971:(e,t,r)=>{"use strict";const n=window.wp.element,a=window.wp.blocks;r(184);const i=window.wp.i18n,o=window.wp.components,s=window.wp.blockEditor,l=JSON.parse('{"u2":"crosswinds-blocks/marquee"}');(0,a.registerBlockType)(l.u2,{icon:{src:(0,n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},(0,n.createElement)("path",{fill:"#171247",d:"M64 32C28.65 32 0 60.65 0 96v48C0 152.8 7.164 160 16 160H128V96C128 60.65 99.35 32 64 32zM560 352H288v48c0 44.18-35.82 80-80 80h256c61.88 0 112-50.13 112-112C576 359.1 568.9 352 560 352z"}),(0,n.createElement)("path",{fill:"#8200ff",d:"M480 128v224h-192v48c0 44.18-35.82 80-80 80C163.8 480 128 444.2 128 400V96c0-35.35-28.65-64-64-64h320C437 32 480 75 480 128z"}))},edit:function(e){const{attributes:t,setAttributes:r}=e,{marqueeContent:a,marqueeWidth:l,marqueeSpeed:c}=t,u=(0,n.createElement)(n.Fragment,null,(0,n.createElement)(s.InspectorControls,null,(0,n.createElement)(o.PanelBody,{title:(0,i.__)("Marquee Settings","crosswinds-blocks")},(0,n.createElement)("div",{className:"marquee-settings__width"},(0,n.createElement)(o.RangeControl,{label:(0,i.__)("Marquee width","crosswinds-blocks"),onChange:e=>r({marqueeWidth:e}),value:l||"",min:1,max:100,initialPosition:50,allowReset:!0,resetFallbackValue:50})),(0,n.createElement)("div",{className:"marquee-settings__speed"},(0,n.createElement)(o.RangeControl,{label:(0,i.__)("Marquee speed","crosswinds-blocks"),help:(0,i.__)("Speed is measured in seconds. The higher the number, the slower the marquee will go.","crosswinds-blocks"),onChange:e=>r({marqueeSpeed:e}),value:c||"",min:1,max:100,initialPosition:5,allowReset:!0,resetFallbackValue:5}))))),m={width:`${l}%`};return(0,n.createElement)(n.Fragment,null,u,(0,n.createElement)("div",(0,s.useBlockProps)({style:m}),(0,n.createElement)(s.RichText,{tagName:"p",value:a,allowedFormats:["core/bold","core/italic"],onChange:e=>r({marqueeContent:e}),placeholder:(0,i.__)("Marquee text here...","crosswinds-blocks")})))},save:function(e){const{marqueeContent:t,marqueeWidth:r,marqueeSpeed:a}=e.attributes,i={width:`${r}%`},o={mozAnimation:`crosswinds-marquee ${a}s linear infinite`,webkitAnimation:`crosswinds-marquee ${a}s linear infinite`,animation:`crosswinds-marquee ${a}s linear infinite`};return(0,n.createElement)("div",s.useBlockProps.save({style:i}),(0,n.createElement)(s.RichText.Content,{tagName:"p",value:t,style:o}))}})},184:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var o=a.apply(null,r);o&&e.push(o)}}else if("object"===i){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.m=t,e=[],n.O=(t,r,a,i)=>{if(!r){var o=1/0;for(u=0;u<e.length;u++){for(var[r,a,i]=e[u],s=!0,l=0;l<r.length;l++)(!1&i||o>=i)&&Object.keys(n.O).every((e=>n.O[e](r[l])))?r.splice(l--,1):(s=!1,i<o&&(o=i));if(s){e.splice(u--,1);var c=a();void 0!==c&&(t=c)}}return t}i=i||0;for(var u=e.length;u>0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[r,a,i]},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={3642:0,5495:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var a,i,[o,s,l]=r,c=0;if(o.some((t=>0!==e[t]))){for(a in s)n.o(s,a)&&(n.m[a]=s[a]);if(l)var u=l(n)}for(t&&t(r);c<o.length;c++)i=o[c],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(u)},r=globalThis.webpackChunkstarter_block=globalThis.webpackChunkstarter_block||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var a=n.O(void 0,[5495],(()=>n(971)));a=n.O(a)})();