(()=>{"use strict";var e,t={5291:()=>{const e=window.wp.blocks,t=window.wp.i18n,o=window.wp.blockEditor;function n(e,t){return`\n        #block-${e} {\n            background-image: url(${t?.style?.background?.backgroundImage?.url});\n            background-repeat: no-repeat;\n            background-size: cover;\n            background-position: ${100*t?.focalPoint.x}% ${100*t?.focalPoint.y}%;\n        }\n    `}const r=window.wp.element,s=window.wp.components,i=window.ReactJSXRuntime,l=(0,r.memo)(({attributes:e,setAttributes:t})=>{function n(o){t({...e,focalPoint:o})}return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(o.InspectorControls,{group:"styles",children:e?.style?.background?.backgroundImage?.url&&(0,i.jsx)(s.PanelBody,{children:(0,i.jsx)("div",{className:"components-base-control",children:(0,i.jsx)(s.FocalPointPicker,{url:e?.style?.background?.backgroundImage?.url,value:e?.focalPoint,onDragStart:e=>n(e),onDrag:e=>n(e),onChange:e=>n(e)})})})},"style")})}),c=JSON.parse('{"UU":"cozy-block/slide","DD":"Slide"}'),a=(0,i.jsxs)("svg",{width:"67",height:"36",viewBox:"0 0 67 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("rect",{x:"14.8633",y:"1",width:"37.2727",height:"34",rx:"8.81818",stroke:"#2874FF",strokeWidth:"2",fill:"none"}),(0,i.jsx)("path",{d:"M22.0459 12.2734H41.6823",stroke:"#2874FF",strokeWidth:"1.92268",fill:"none"}),(0,i.jsx)("path",{d:"M22.0459 18.8203H45.7732",stroke:"#A0C1FF",strokeWidth:"1.63636",fill:"none"}),(0,i.jsx)("path",{d:"M22.0459 22.9102H35.1368",stroke:"#A0C1FF",strokeWidth:"1.63636",fill:"none"}),(0,i.jsx)("path",{d:"M35.9541 22.9102H44.9541",stroke:"#A0C1FF",strokeWidth:"1.63636",fill:"none"}),(0,i.jsx)("path",{d:"M22.0459 27.0039H40.0459",stroke:"#A0C1FF",strokeWidth:"1.63636",fill:"none"}),(0,i.jsx)("path",{d:"M1.591 8.18253L7.85693 5.04956C9.48896 4.23355 11.4092 5.42031 11.4092 7.24498V28.7564C11.4092 30.5811 9.48896 31.7679 7.85693 30.9519L1.591 27.8189",stroke:"#2874FF",strokeWidth:"2",fill:"none",strokeLinecap:"round"}),(0,i.jsx)("path",{d:"M65.409 8.18253L59.1431 5.04956C57.511 4.23355 55.5908 5.42031 55.5908 7.24498V28.7564C55.5908 30.5811 57.511 31.7679 59.1431 30.9519L65.409 27.8189",stroke:"#2874FF",strokeWidth:"2",fill:"none",strokeLinecap:"round"})]});(0,e.registerBlockType)(c.UU,{title:(0,t.__)(c.DD,"cozy-addons"),description:(0,t.__)("Support block for the slider block.","cozy-addons"),icon:{src:a},edit:function({attributes:e,setAttributes:r,clientId:s}){e.blockClientId=s;const c=`cozyBlock_${s.replace(/-/gi,"_")}`,a=(0,o.useBlockProps)({className:"swiper-slide"});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("style",{dangerouslySetInnerHTML:{__html:n(s,e)}}),(0,i.jsx)("div",{...a,children:(0,i.jsx)("div",{id:c,children:(0,i.jsx)(o.InnerBlocks,{template:[["core/cover",{dimRatio:50},[["core/group",{},[["core/heading",{placeholder:(0,t.__)("Slide Title","cozy-addons"),textAlign:"center"}],["core/paragraph",{placeholder:(0,t.__)("Lorem Ipsum is simply dummy text of the printing and typesetting industry.","cozy-addons"),align:"center"}],["core/buttons",{layout:{type:"flex",justifyContent:"center"}}]]]]]]})})}),(0,i.jsx)(l,{attributes:e,setAttributes:r})]})},save:function({attributes:e}){return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(o.InnerBlocks.Content,{})})}})}},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var s=o[e]={exports:{}};return t[e](s,s.exports,n),s.exports}n.m=t,e=[],n.O=(t,o,r,s)=>{if(!o){var i=1/0;for(d=0;d<e.length;d++){for(var[o,r,s]=e[d],l=!0,c=0;c<o.length;c++)(!1&s||i>=s)&&Object.keys(n.O).every(e=>n.O[e](o[c]))?o.splice(c--,1):(l=!1,s<i&&(i=s));if(l){e.splice(d--,1);var a=r();void 0!==a&&(t=a)}}return t}s=s||0;for(var d=e.length;d>0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[o,r,s]},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={2931:0,5083:0};n.O.j=t=>0===e[t];var t=(t,o)=>{var r,s,[i,l,c]=o,a=0;if(i.some(t=>0!==e[t])){for(r in l)n.o(l,r)&&(n.m[r]=l[r]);if(c)var d=c(n)}for(t&&t(o);a<i.length;a++)s=i[a],n.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return n.O(d)},o=globalThis.webpackChunkcozy_blocks=globalThis.webpackChunkcozy_blocks||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var r=n.O(void 0,[5083],()=>n(5291));r=n.O(r)})();