FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
cozy-addons
/
cozy-blocks
/
dist
/
countdown-timer
/
build
Edit File: index.js
(()=>{"use strict";var e,t={861:()=>{const e=window.wp.blocks,t=window.wp.i18n,o=window.wp.blockEditor,l=window.wp.element,n=window.wp.components,a=window.wp.primitives,s=window.ReactJSXRuntime,i=(0,s.jsx)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(a.Path,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"})}),r=(0,s.jsx)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)(a.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M20 12a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 0 1-6.5 6.5v-13a6.5 6.5 0 0 1 6.5 6.5Z"})}),d=(0,s.jsx)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(a.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})}),c=(0,s.jsx)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(a.Path,{d:"M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"})}),p=(0,s.jsx)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(a.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})}),_=[{label:(0,t.__)("Thin","cozy-addons"),value:"100"},{label:(0,t.__)("Extra Light","cozy-addons"),value:"200"},{label:(0,t.__)("Light","cozy-addons"),value:"300"},{label:(0,t.__)("Normal","cozy-addons"),value:"400"},{label:(0,t.__)("Medium","cozy-addons"),value:"500"},{label:(0,t.__)("Semi Bold","cozy-addons"),value:"600"},{label:(0,t.__)("Bold","cozy-addons"),value:"700"},{label:(0,t.__)("Extra Bold","cozy-addons"),value:"800"},{label:(0,t.__)("Black","cozy-addons"),value:"900"}],x=e=>{const t=(new Date).setHours(0,0,0,0);return new Date(e).setHours(0,0,0,0)<t},b=(0,l.memo)((({attributes:e,setAttributes:o})=>{const[a,i]=(0,l.useState)("general");return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{children:[(0,s.jsx)(n.Panel,{children:(0,s.jsxs)(n.PanelBody,{title:(0,t.__)("General","cozy-addons"),opened:"general"===a,onToggle:()=>i("general"),children:[(0,s.jsx)(n.TabPanel,{className:"cozy-tab-panel",tabs:[{name:"cozy-tab__one",title:(0,t.__)("End Date","cozy-addons")},{name:"cozy-tab__two",title:(0,t.__)("Start Date","cozy-addons")}],activeClass:"active-tab",children:t=>(0,s.jsxs)(s.Fragment,{children:["cozy-tab__one"===t.name&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{style:{marginBottom:"16px"},children:(0,s.jsx)(n.DateTimePicker,{startOfWeek:1,currentDate:e.endDate,isInvalidDate:x,onChange:t=>o({...e,endDate:t})})})}),"cozy-tab__two"===t.name&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{style:{marginBottom:"16px"},children:(0,s.jsx)(n.DateTimePicker,{startOfWeek:1,currentDate:e.startDate,isInvalidDate:x,onChange:t=>o({...e,startDate:t})})})})]})}),(0,s.jsx)(n.ToggleControl,{label:(0,t.__)("Enable Days","cozy-addons"),checked:e.enableOptions.day,onChange:t=>o({...e,enableOptions:{...e.enableOptions,day:t}})}),e.enableOptions.day&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(n.TextControl,{label:(0,t.__)("Label for Days","cozy-addons"),value:e.enableOptions.dayLabel,onChange:t=>o({...e,enableOptions:{...e.enableOptions,dayLabel:t}})})}),(0,s.jsx)(n.ToggleControl,{label:(0,t.__)("Enable Hours","cozy-addons"),checked:e.enableOptions.hour,onChange:t=>o({...e,enableOptions:{...e.enableOptions,hour:t}})}),e.enableOptions.hour&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(n.TextControl,{label:(0,t.__)("Label for Hour","cozy-addons"),value:e.enableOptions.hourLabel,onChange:t=>o({...e,enableOptions:{...e.enableOptions,hourLabel:t}})})}),(0,s.jsx)(n.ToggleControl,{label:(0,t.__)("Enable Minutes","cozy-addons"),checked:e.enableOptions.minute,onChange:t=>o({...e,enableOptions:{...e.enableOptions,minute:t}})}),e.enableOptions.minute&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(n.TextControl,{label:(0,t.__)("Label for Minute","cozy-addons"),value:e.enableOptions.minuteLabel,onChange:t=>o({...e,enableOptions:{...e.enableOptions,minuteLabel:t}})})}),(0,s.jsx)(n.ToggleControl,{label:(0,t.__)("Enable Second","cozy-addons"),checked:e.enableOptions.second,onChange:t=>o({...e,enableOptions:{...e.enableOptions,second:t}})}),e.enableOptions.day&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(n.TextControl,{label:(0,t.__)("Label for Second","cozy-addons"),value:e.enableOptions.secondLabel,onChange:t=>o({...e,enableOptions:{...e.enableOptions,secondLabel:t}})})}),(0,s.jsx)("div",{style:{maxWidth:"40%",margin:"20px 0 16px"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Timer Spacing","cozy-addons"),min:0,value:e.gap,onChange:t=>o({...e,gap:t}),__next40pxDefaultSize:!0})}),(0,s.jsx)(n.ToggleControl,{label:(0,t.__)("Enable Label","cozy-addons"),checked:e.label.enabled,onChange:t=>o({...e,label:{...e.label,enabled:t}})}),e.label.enabled&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n.__experimentalToggleGroupControl,{label:(0,t.__)("Display","cozy-addons"),value:e.label.display,onChange:t=>o({...e,label:{...e.label,display:t}}),isBlock:!0,__next40pxDefaultSize:!0,children:[(0,s.jsx)(n.__experimentalToggleGroupControlOption,{label:(0,t.__)("Block","cozy-addons"),value:"block"}),(0,s.jsx)(n.__experimentalToggleGroupControlOption,{label:(0,t.__)("Inline","cozy-addons"),value:"inline"})]}),"block"===e.label.display&&(0,s.jsxs)(n.__experimentalToggleGroupControl,{label:(0,t.__)("Label Position","cozy-addons"),value:e.label.position,onChange:t=>o({...e,label:{...e.label,position:t}}),isBlock:!0,__next40pxDefaultSize:!0,children:[(0,s.jsx)(n.__experimentalToggleGroupControlOption,{label:(0,t.__)("Top","cozy-addons"),value:"top"}),(0,s.jsx)(n.__experimentalToggleGroupControlOption,{label:(0,t.__)("Bottom","cozy-addons"),value:"bottom"})]}),"inline"===e.label.display&&(0,s.jsxs)(n.__experimentalToggleGroupControl,{label:(0,t.__)("Label Position","cozy-addons"),value:e.label.position,onChange:t=>o({...e,label:{...e.label,position:t}}),isBlock:!0,__next40pxDefaultSize:!0,children:[(0,s.jsx)(n.__experimentalToggleGroupControlOption,{label:(0,t.__)("Left","cozy-addons"),value:"top"}),(0,s.jsx)(n.__experimentalToggleGroupControlOption,{label:(0,t.__)("Right","cozy-addons"),value:"bottom"})]}),(0,s.jsx)("div",{style:{maxWidth:"40%",marginBottom:"16px"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Label Spacing","cozy-addons"),value:e.label.gap,onChange:t=>o({...e,label:{...e.label,gap:t}}),__next40pxDefaultSize:!0})})]}),(0,s.jsx)(n.ToggleControl,{label:(0,t.__)("Enable Separator","cozy-addons"),checked:e.separator.enabled,onChange:t=>o({...e,separator:{...e.separator,enabled:t}})}),e.separator.enabled&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{style:{maxWidth:"40%"},children:(0,s.jsx)(n.TextControl,{label:(0,t.__)("Separator","cozy-addons"),value:e.separator.content,onChange:t=>o({...e,separator:{...e.separator,content:t}}),__next40pxDefaultSize:!0})})}),(0,s.jsxs)(n.__experimentalToggleGroupControl,{label:(0,t.__)("Justification","cozy-addons"),value:e.align,onChange:t=>o({...e,align:t}),children:[(0,s.jsx)(n.__experimentalToggleGroupControlOptionIcon,{label:(0,t.__)("Left","cozy-addons"),value:"left",icon:d}),(0,s.jsx)(n.__experimentalToggleGroupControlOptionIcon,{label:(0,t.__)("Center","cozy-addons"),value:"center",icon:c}),(0,s.jsx)(n.__experimentalToggleGroupControlOptionIcon,{label:(0,t.__)("Right","cozy-addons"),value:"right",icon:p})]})]})}),(0,s.jsx)(n.Panel,{children:(0,s.jsxs)(n.PanelBody,{title:(0,t.__)("Countdown Options","cozy-addons"),opened:"coutdown-options"===a,onToggle:()=>i("coutdown-options"),children:[(0,s.jsx)(n.SelectControl,{label:(0,t.__)("End Type","cozy-addons"),options:[{label:(0,t.__)("Set to 0","cozy-addons"),value:"default"},{label:(0,t.__)("Show Completion Text","cozy-addons"),value:"text"}],value:e.endOptions.type,onChange:t=>o({...e,endOptions:{...e.endOptions,type:t}}),__next40pxDefaultSize:!0}),"text"===e.endOptions.type&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.TextareaControl,{label:(0,t.__)("Message after Timer Ends","cozy-addons"),value:e.endOptions.label,onChange:t=>o({...e,endOptions:{...e.endOptions,label:t}})}),(0,s.jsxs)(n.__experimentalToggleGroupControl,{label:(0,t.__)("Alignment","cozy-addons"),value:e.endOptions.align,onChange:t=>o({...e,endOptions:{...e.endOptions,align:t}}),children:[(0,s.jsx)(n.__experimentalToggleGroupControlOptionIcon,{label:(0,t.__)("Left","cozy-addons"),value:"left",icon:d}),(0,s.jsx)(n.__experimentalToggleGroupControlOptionIcon,{label:(0,t.__)("Center","cozy-addons"),value:"center",icon:c}),(0,s.jsx)(n.__experimentalToggleGroupControlOptionIcon,{label:(0,t.__)("Right","cozy-addons"),value:"right",icon:p})]})]})]})}),(0,s.jsx)(n.Panel,{className:cozyBlockAssets?.isPremium?"":" has-light-border-bottom",children:(0,s.jsxs)(n.PanelBody,{title:(0,t.__)("Before/After Labels","cozy-addons"),opened:"labels"===a,onToggle:()=>i("labels"),children:[(0,s.jsx)(n.ToggleControl,{label:(0,t.__)("Enable Before Label","cozy-addons"),checked:e.beforeLabel.enabled,onChange:t=>o({...e,beforeLabel:{...e.beforeLabel,enabled:t}})}),e.beforeLabel.enabled&&(0,s.jsx)(n.TextareaControl,{label:(0,t.__)("Before Label","cozy-addons"),value:e.beforeLabel.content,onChange:t=>o({...e,beforeLabel:{...e.beforeLabel,content:t}})}),(0,s.jsx)(n.ToggleControl,{label:(0,t.__)("Enable After Label","cozy-addons"),checked:e.afterLabel.enabled,onChange:t=>o({...e,afterLabel:{...e.afterLabel,enabled:t}})}),e.afterLabel.enabled&&(0,s.jsx)(n.TextareaControl,{label:(0,t.__)("After Label","cozy-addons"),value:e.afterLabel.content,onChange:t=>o({...e,afterLabel:{...e.afterLabel,content:t}})}),(e.beforeLabel.enabled||e.afterLabel.enabled)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n.__experimentalToggleGroupControl,{label:(0,t.__)("Width","cozy-addons"),value:e.beforeAfterStyles.width,onChange:t=>o({...e,beforeAfterStyles:{...e.beforeAfterStyles,width:t}}),isBlock:!0,__next40pxDefaultSize:!0,children:[(0,s.jsx)(n.__experimentalToggleGroupControlOption,{label:(0,t.__)("Full","cozy-addons"),value:"full"}),(0,s.jsx)(n.__experimentalToggleGroupControlOption,{label:(0,t.__)("Inline","cozy-addons"),value:"inline"})]}),(0,s.jsx)("div",{style:{maxWidth:"40%",marginTop:"16px"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Gap","cozy-addons"),value:e.beforeAfterStyles.gap,onChange:t=>o({...e,beforeAfterStyles:{...e.beforeAfterStyles,gap:t}}),__next40pxDefaultSize:!0})})]})]})})]},"cozy-setting")})})),h=(0,s.jsx)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(a.Path,{d:"M5 11.25h14v1.5H5z"})}),y=(0,s.jsx)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(a.Path,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"})}),g=(0,s.jsx)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(a.Path,{d:"M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"})}),m=(0,s.jsx)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(a.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"})}),u=(0,s.jsx)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(a.Path,{d:"M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"})}),f=(0,s.jsx)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(a.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"})}),z=window.wp.data,v=(0,l.memo)((({attributes:e,setAttributes:a})=>{const i=function(){let e=[{label:"Default",value:""}];if("object"==typeof cozyBlockAssets.googleFonts)for(let t in cozyBlockAssets.googleFonts)e.push({label:cozyBlockAssets.googleFonts[t],value:t});return e}(),r=(0,z.select)("core/editor").getEditorSettings().colors,[d,c]=(0,l.useState)(null);return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"has-light-border-top",children:[(0,s.jsxs)("div",{style:{padding:"0 20px 20px"},children:[(0,s.jsx)(o.PanelColorSettings,{className:"cozy-color-control border-none",enableAlpha:!0,title:(0,t.__)("Color","cozy-addons"),colorSettings:[{label:(0,t.__)("Text","cozy-addons"),value:e.color.text,onChange:t=>a({...e,color:{...e.color,text:t}})},{label:(0,t.__)("Background","cozy-addons"),value:e.color.bg,onChange:t=>a({...e,color:{...e.color,bg:t}})}]}),(0,s.jsx)(n.SelectControl,{label:(0,t.__)("Font Family","cozy-addons"),options:i,value:e.font.family,onChange:t=>a({...e,font:{...e.font,family:t}}),__next40pxDefaultSize:!0}),(0,s.jsxs)("div",{className:"cozy-block-styles__div-separator",children:[(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Font Size","cozy-addons"),value:e.font.size,onChange:t=>a({...e,font:{...e.font,size:t}}),__next40pxDefaultSize:!0})}),(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.SelectControl,{label:(0,t.__)("Font Weight","cozy-addons"),options:_,value:e.font.weight,onChange:t=>a({...e,font:{...e.font,weight:t}}),__next40pxDefaultSize:!0})})]})]}),(0,s.jsx)(n.Panel,{children:(0,s.jsxs)(n.PanelBody,{title:(0,t.__)("Spacing","cozy-addons"),opened:"spacing"===d,onToggle:()=>c("spacing"),children:[(0,s.jsx)("div",{className:"cozy-box-control",children:(0,s.jsx)(n.__experimentalBoxControl,{label:(0,t.__)("Padding","cozy-addons"),resetValues:[{top:"0px",right:"0px",bottom:"0px",left:"0px"}],values:e.padding,onChange:t=>a({...e,padding:t})})}),(0,s.jsxs)("div",{className:"cozy-block-styles__div-separator",style:{marginTop:"16px"},children:[(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Margin Top","cozy-addons"),value:e.margin.top,onChange:t=>a({...e,margin:{...e.margin,top:t}}),__next40pxDefaultSize:!0})}),(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Margin Bottom","cozy-addons"),value:e.margin.bottom,onChange:t=>a({...e,margin:{...e.margin,bottom:t}}),__next40pxDefaultSize:!0})})]})]})}),(0,s.jsx)(n.Panel,{children:(0,s.jsxs)(n.PanelBody,{title:(0,t.__)("Border & Radius","cozy-addons"),opened:"border-and-radius"===d,onToggle:()=>c("border-and-radius"),children:[(0,s.jsx)(n.__experimentalBorderBoxControl,{className:"cozy-border-box-control",enableAlpha:!0,colors:r,label:(0,t.__)("Border","cozy-addons"),value:e.border,onChange:t=>a({...e,border:t})}),(0,s.jsx)("div",{className:"cozy-box-control",style:{margin:"30px 0 16px"},children:(0,s.jsx)(n.__experimentalBoxControl,{label:(0,t.__)("Radius","cozy-addons"),resetValues:[{top:"0px",right:"0px",bottom:"0px",left:"0px"}],values:e.radius,onChange:t=>a({...e,radius:t})})}),(0,s.jsx)(n.ToggleControl,{label:(0,t.__)("Enable Box Shadow","cozy-addons"),checked:e.shadow.enabled,onChange:t=>a({...e,shadow:{...e.shadow,enabled:t}})}),e.shadow.enabled&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n.__experimentalToggleGroupControl,{label:(0,t.__)("Position","cozy-addons"),value:e.shadow.position,onChange:t=>a({...e,shadow:{...e.shadow,position:t}}),isBlock:!0,__next40pxDefaultSize:!0,children:[(0,s.jsx)(n.__experimentalToggleGroupControlOption,{label:(0,t.__)("Inset","cozy-addons"),value:"inset"}),(0,s.jsx)(n.__experimentalToggleGroupControlOption,{label:(0,t.__)("Outline","cozy-addons"),value:""})]}),(0,s.jsxs)("div",{className:"cozy-block-styles__div-separator",children:[(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Horizontal","cozy-addons"),min:-100,max:100,step:1,value:e.shadow.horizontal,onChange:t=>a({...e,shadow:{...e.shadow,horizontal:t}}),__next40pxDefaultSize:!0})}),(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Vertical","cozy-addons"),min:-100,max:100,step:1,value:e.shadow.vertical,onChange:t=>a({...e,shadow:{...e.shadow,vertical:t}}),__next40pxDefaultSize:!0})})]}),(0,s.jsxs)("div",{className:"cozy-block-styles__div-separator",style:{margin:"16px 0 30px"},children:[(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Blur","cozy-addons"),min:0,max:100,step:1,value:e.shadow.blur,onChange:t=>a({...e,shadow:{...e.shadow,blur:t}}),__next40pxDefaultSize:!0})}),(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Spread","cozy-addons"),min:-100,max:100,step:1,value:e.shadow.spread,onChange:t=>a({...e,shadow:{...e.shadow,spread:t}}),__next40pxDefaultSize:!0})})]}),(0,s.jsx)(n.ColorPalette,{colors:r,enableAlpha:!0,title:(0,t.__)("Shadow Color","cozy-addons"),value:e.shadow.color,onChange:t=>a({...e,shadow:{...e.shadow,color:t}})})]})]})}),(0,s.jsx)(n.Panel,{children:(0,s.jsxs)(n.PanelBody,{title:(0,t.__)("Wrapper Styles","cozy-addons"),opened:"wrapper-styles"===d,onToggle:()=>c("wrapper-styles"),children:[(0,s.jsxs)("div",{className:"cozy-block-styles__div-separator",style:{margin:"16px 0 30px"},children:[(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Width","cozy-addons"),value:e.itemStyles?.width,onChange:t=>a({...e,itemStyles:{...e.itemStyles,width:t}}),__next40pxDefaultSize:!0})}),(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Height","cozy-addons"),value:e.itemStyles?.height,onChange:t=>a({...e,itemStyles:{...e.itemStyles,height:t}}),__next40pxDefaultSize:!0})})]}),(0,s.jsxs)("div",{className:"cozy-block-styles__div-separator",style:{margin:"16px 0 30px"},children:[(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Margin Top","cozy-addons"),value:e.itemStyles.margin.top,onChange:t=>a({...e,itemStyles:{...e.itemStyles,margin:{...e.itemStyles.margin,top:t}}}),__next40pxDefaultSize:!0})}),(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Margin Bottom","cozy-addons"),value:e.itemStyles.margin.bottom,onChange:t=>a({...e,itemStyles:{...e.itemStyles,margin:{...e.itemStyles.margin,bottom:t}}}),__next40pxDefaultSize:!0})})]}),(0,s.jsx)("div",{children:(0,s.jsx)(n.__experimentalBorderBoxControl,{className:"cozy-border-box-control",colors:r,enableAlpha:!0,label:(0,t.__)("Border","cozy-addons"),value:e.itemStyles.padding,onChange:t=>a({...e,itemStyles:{...e.itemStyles,padding:t}})})}),(0,s.jsx)("div",{style:{maxWidth:"40%",margin:"20px 0 16px"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Border Radius","cozy-addons"),min:0,value:e.itemStyles.radius,onChange:t=>a({...e,itemStyles:{...e.itemStyles,radius:t}}),__next40pxDefaultSize:!0})}),(0,s.jsx)(n.ToggleControl,{label:(0,t.__)("Box Shadow","cozy-addons"),checked:e.itemStyles.shadow.enabled,onChange:t=>a({...e,itemStyles:{...e.itemStyles,shadow:{...e.itemStyles.shadow,enabled:t}}})}),e.itemStyles.shadow.enabled&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n.__experimentalToggleGroupControl,{label:(0,t.__)("Position","cozy-addons"),value:e.itemStyles.shadow.position,onChange:t=>a({...e,itemStyles:{...e.itemStyles,shadow:{...e.itemStyles.shadow,position:t}}}),isBlock:!0,__next40pxDefaultSize:!0,children:[(0,s.jsx)(n.__experimentalToggleGroupControlOption,{label:(0,t.__)("Inset","cozy-addons"),value:"inset"}),(0,s.jsx)(n.__experimentalToggleGroupControlOption,{label:(0,t.__)("Outline","cozy-addons"),value:""})]}),(0,s.jsxs)("div",{className:"cozy-block-styles__div-separator",children:[(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Horizontal","cozy-addons"),value:e.itemStyles.shadow.horizontal,onChange:t=>a({...e,itemStyles:{...e.itemStyles,shadow:{...e.itemStyles.shadow,horizontal:t}}}),__next40pxDefaultSize:!0})}),(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Vertical","cozy-addons"),value:e.itemStyles.shadow.vertical,onChange:t=>a({...e,itemStyles:{...e.itemStyles,shadow:{...e.itemStyles.shadow,vertical:t}}}),__next40pxDefaultSize:!0})})]}),(0,s.jsxs)("div",{className:"cozy-block-styles__div-separator",style:{margin:"16px 0"},children:[(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Blur","cozy-addons"),min:0,value:e.itemStyles.shadow.blur,onChange:t=>a({...e,itemStyles:{...e.itemStyles,shadow:{...e.itemStyles.shadow,blur:t}}}),__next40pxDefaultSize:!0})}),(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Spread","cozy-addons"),value:e.itemStyles.shadow.spread,onChange:t=>a({...e,itemStyles:{...e.itemStyles,shadow:{...e.itemStyles.shadow,spread:t}}}),__next40pxDefaultSize:!0})})]}),(0,s.jsx)(n.ColorPalette,{title:(0,t.__)("Shadow Color","cozy-addons"),enableAlpha:!0,colors:r,value:e.itemStyles.shadow.color,onChange:t=>a({...e,itemStyles:{...e.itemStyles,shadow:{...e.itemStyles.shadow,color:t}}})})]}),(0,s.jsx)(o.PanelColorSettings,{className:"cozy-color-control",enableAlpha:!0,title:(0,t.__)("Color","cozy-addons"),colorSettings:[{label:(0,t.__)("Text","cozy-addons"),value:e.itemStyles.color.text,onChange:t=>a({...e,itemStyles:{...e.itemStyles,color:{...e.itemStyles.color,text:t}}})},{label:(0,t.__)("Background","cozy-addons"),value:e.itemStyles.color.bg,onChange:t=>a({...e,itemStyles:{...e.itemStyles,color:{...e.itemStyles.color,bg:t}}})}]})]})}),(0,s.jsx)(n.Panel,{children:(0,s.jsxs)(n.PanelBody,{title:(0,t.__)("Timer Styles","cozy-addons"),opened:"timer-styles"===d,onToggle:()=>c("timer-styles"),children:[(0,s.jsx)("div",{className:"cozy-box-control",children:(0,s.jsx)(n.__experimentalBoxControl,{label:(0,t.__)("Padding","cozy-addons"),resetValues:[{top:"0px",right:"0px",bottom:"0px",left:"0px"}],values:e?.timerStyles.padding,onChange:t=>a({...e,timerStyles:{...e.timerStyles,padding:t}})})}),(0,s.jsx)("div",{children:(0,s.jsx)(n.__experimentalBorderBoxControl,{className:"cozy-border-box-control",colors:r,enableAlpha:!0,label:(0,t.__)("Border","cozy-addons"),value:e?.timerStyles?.padding,onChange:t=>a({...e,timerStyles:{...e.timerStyles,padding:t}})})}),(0,s.jsx)("div",{style:{maxWidth:"40%",margin:"20px 0 16px"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Border Radius","cozy-addons"),min:0,value:e?.timerStyles?.radius,onChange:t=>a({...e,timerStyles:{...e.timerStyles,radius:t}}),__next40pxDefaultSize:!0})}),(0,s.jsx)(n.SelectControl,{label:(0,t.__)("Font Family","cozy-addons"),options:i,value:e?.timerStyles?.font?.family,onChange:t=>a({...e,timerStyles:{...e.timerStyles,font:{...e.timerStyles.font,family:t}}}),__next40pxDefaultSize:!0}),(0,s.jsxs)("div",{className:"cozy-block-styles__div-separator",children:[(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Font Size","cozy-addons"),value:e?.timerStyles?.font?.size,onChange:t=>a({...e,timerStyles:{...e.timerStyles,font:{...e.timerStyles.font,size:t}}}),__next40pxDefaultSize:!0})}),(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.SelectControl,{label:(0,t.__)("Font Weight","cozy-addons"),options:_,value:e?.timerStyles?.font?.weight,onChange:t=>a({...e,timerStyles:{...e.timerStyles,font:{...e.timerStyles.font,weight:t}}}),__next40pxDefaultSize:!0})})]}),(0,s.jsxs)("div",{className:"cozy-block-styles__div-separator",style:{margin:"16px 0"},children:[(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Line Height","cozy-addons"),value:e?.timerStyles?.lineHeight,onChange:t=>a({...e,timerStyles:{...e.timerStyles,lineHeight:t}}),__next40pxDefaultSize:!0})}),(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Letter Spacing","cozy-addons"),value:e?.timerStyles?.letterSpacing,onChange:t=>a({...e,timerStyles:{...e.timerStyles,letterSpacing:t}}),__next40pxDefaultSize:!0})})]}),(0,s.jsx)(o.PanelColorSettings,{className:"cozy-color-control",enableAlpha:!0,title:(0,t.__)("Color","cozy-addons"),colorSettings:[{label:(0,t.__)("Text","cozy-addons"),value:e?.timerStyles?.color?.text,onChange:t=>a({...e,timerStyles:{...e.timerStyles,color:{...e.timerStyles.color,text:t}}})},{label:(0,t.__)("Background","cozy-addons"),value:e?.timerStyles?.color?.bg,onChange:t=>a({...e,timerStyles:{...e.timerStyles,color:{...e.timerStyles.color,bg:t}}})}]})]})}),e.separator.enabled&&(0,s.jsx)(n.Panel,{children:(0,s.jsxs)(n.PanelBody,{title:(0,t.__)("Separator Styles","cozy-addons"),opened:"separator-styles"===d,onToggle:()=>c("separator-styles"),children:[(0,s.jsxs)(n.BaseControl,{children:[(0,s.jsx)(n.BaseControl.VisualLabel,{children:(0,t.__)("Positioning","cozy-addons")}),(0,s.jsxs)("div",{className:"cozy-block-styles__div-separator",children:[(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Vertical","cozy-addons"),value:e.separator.margin.top,onChange:t=>a({...e,separator:{...e.separator,margin:{...e.separator.margin,top:t}}}),__next40pxDefaultSize:!0})}),(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Horizontal","cozy-addons"),value:e.separator.margin.left,onChange:t=>a({...e,separator:{...e.separator,margin:{...e.separator.margin,left:t}}}),__next40pxDefaultSize:!0})})]})]}),(0,s.jsx)("div",{style:{maxWidth:"40%",marginBottom:"16px"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Size","cozy-addons"),value:e.separator.size,onChange:t=>a({...e,separator:{...e.separator,size:t}}),__next40pxDefaultSize:!0})}),(0,s.jsx)(o.PanelColorSettings,{className:"cozy-color-control",enableAlpha:!0,title:(0,t.__)("Color","cozy-addons"),colorSettings:[{label:(0,t.__)("Separator","cozy-addons"),value:e.separator.color.text,onChange:t=>a({...e,separator:{...e.separator,color:{...e.separator.color,text:t}}})}]})]})}),e.label.enabled&&(0,s.jsx)(n.Panel,{children:(0,s.jsxs)(n.PanelBody,{title:(0,t.__)("Timer Label Styles","cozy-addons"),opened:"timer-label-styles"===d,onToggle:()=>c("timer-label-styles"),children:[(0,s.jsx)(n.SelectControl,{label:(0,t.__)("Font Family","cozy-addons"),options:i,value:e.label.font.family,onChange:t=>a({...e,label:{...e.label,font:{...e.label.font,family:t}}}),__next40pxDefaultSize:!0}),(0,s.jsxs)("div",{className:"cozy-block-styles__div-separator",style:{marginBottom:"16px"},children:[(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Font Size","cozy-addons"),value:e.label.font.size,onChange:t=>a({...e,label:{...e.label,font:{...e.label.font,size:t}}}),__next40pxDefaultSize:!0})}),(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.SelectControl,{label:(0,t.__)("Font Weight","cozy-addons"),options:_,value:e.label.font.weight,onChange:t=>a({...e,label:{...e.label,font:{...e.label.font,weight:t}}}),__next40pxDefaultSize:!0})})]}),(0,s.jsxs)("div",{className:"cozy-block-styles__div-separator",children:[(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsxs)(n.__experimentalToggleGroupControl,{label:(0,t.__)("Letter Case","cozy-addons"),value:e.label.letterCase,onChange:t=>a({...e,label:{...e.label,letterCase:t}}),children:[(0,s.jsx)(n.__experimentalToggleGroupControlOptionIcon,{label:(0,t.__)("None","cozy-addons"),value:"none",icon:h}),(0,s.jsx)(n.__experimentalToggleGroupControlOptionIcon,{label:(0,t.__)("Uppercase","cozy-addons"),value:"uppercase",icon:y}),(0,s.jsx)(n.__experimentalToggleGroupControlOptionIcon,{label:(0,t.__)("Lowercase","cozy-addons"),value:"lowercase",icon:g}),(0,s.jsx)(n.__experimentalToggleGroupControlOptionIcon,{label:(0,t.__)("Capitalize","cozy-addons"),value:"capitalize",icon:m})]})}),(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsxs)(n.__experimentalToggleGroupControl,{label:(0,t.__)("Decoration","cozy-addons"),value:e.label.decoration,onChange:t=>a({...e,label:{...e.label,decoration:t}}),children:[(0,s.jsx)(n.__experimentalToggleGroupControlOptionIcon,{label:(0,t.__)("None","cozy-addons"),value:"none",icon:h}),(0,s.jsx)(n.__experimentalToggleGroupControlOptionIcon,{label:(0,t.__)("Underline","cozy-addons"),value:"underline",icon:u}),(0,s.jsx)(n.__experimentalToggleGroupControlOptionIcon,{label:(0,t.__)("Strikethrough","cozy-addons"),value:"line-through",icon:f})]})})]}),(0,s.jsxs)("div",{className:"cozy-block-styles__div-separator",style:{margin:"16px 0 22px"},children:[(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Line Height","cozy-addons"),value:e.label.lineHeight,onChange:t=>a({...e,label:{...e.label,lineHeight:t}}),__next40pxDefaultSize:!0})}),(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Letter Spacing","cozy-addons"),value:e.label.letterSpacing,onChange:t=>a({...e,label:{...e.label,letterSpacing:t}}),__next40pxDefaultSize:!0})})]}),(0,s.jsx)(o.PanelColorSettings,{className:"cozy-color-control",enableAlpha:!0,title:(0,t.__)("Color","cozy-addons"),colorSettings:[{label:(0,t.__)("Text","cozy-addons"),value:e.label.color.text,onChange:t=>a({...e,label:{...e.label,color:{...e.label.color,text:t}}})}]})]})}),"text"===e.endOptions.type&&(0,s.jsx)(n.Panel,{children:(0,s.jsxs)(n.PanelBody,{title:(0,t.__)("End Message Styles","cozy-addons"),opened:"end-message-styles"===d,onToggle:()=>c("end-message-styles"),children:[(0,s.jsxs)(n.__experimentalToggleGroupControl,{title:(0,t.__)("Width","cozy-addons"),value:e.endOptions.width,onChange:t=>a({...e,endOptions:{...e.endOptions,width:t}}),isBlock:!0,__next40pxDefaultSize:!0,children:[(0,s.jsx)(n.__experimentalToggleGroupControlOption,{label:(0,t.__)("Full","cozy-addons"),value:"full"}),(0,s.jsx)(n.__experimentalToggleGroupControlOption,{label:(0,t.__)("Inline","cozy-addons"),value:"inline"})]}),(0,s.jsx)("div",{className:"cozy-box-control",children:(0,s.jsx)(n.__experimentalBoxControl,{label:(0,t.__)("Padding","cozy-addons"),resetValues:[{top:"",right:"",bottom:"",left:""}],values:e.endOptions.padding,onChange:t=>a({...e,endOptions:{...e.endOptions,padding:t}})})}),(0,s.jsxs)("div",{className:"cozy-block-styles__div-separator",style:{margin:"16px 0 30px"},children:[(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Margin Top","cozy-addons"),value:e.endOptions.margin.top,onChange:t=>a({...e,endOptions:{...e.endOptions,margin:{...e.endOptions.margin,top:t}}}),__next40pxDefaultSize:!0})}),(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Margin Bottom","cozy-addons"),value:e.endOptions.margin.bottom,onChange:t=>a({...e,endOptions:{...e.endOptions,margin:{...e.endOptions.margin,bottom:t}}}),__next40pxDefaultSize:!0})})]}),(0,s.jsx)(n.__experimentalBorderBoxControl,{className:"cozy-border-box-control",enableAlpha:!0,label:(0,t.__)("Border"),colors:r,value:e.endOptions.border,onChange:t=>a({...e,endOptions:{...e.endOptions,border:t}})}),(0,s.jsx)("div",{style:{maxWidth:"40%",margin:"30px 0 16px"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Border Radius","cozy-addons"),value:e.endOptions.radius,onChange:t=>a({...e,endOptions:{...e.endOptions,radius:t}}),__next40pxDefaultSize:!0})}),(0,s.jsx)(n.SelectControl,{label:(0,t.__)("Font Family","cozy-addons"),options:i,value:e.endOptions.font.family,onChange:t=>a({...e,endOptions:{...e.endOptions,font:{...e.endOptions.font,family:t}}}),__next40pxDefaultSize:!0}),(0,s.jsxs)("div",{className:"cozy-block-styles__div-separator",style:{margin:"16px 0"},children:[(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Font Size","cozy-addons"),value:e.endOptions.font.size,onChange:t=>a({...e,endOptions:{...e.endOptions,font:{...e.endOptions.font,size:t}}}),__next40pxDefaultSize:!0})}),(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.SelectControl,{label:(0,t.__)("Font Weight","cozy-addons"),options:_,value:e.endOptions.font.weight,onChange:t=>a({...e,endOptions:{...e.endOptions,font:{...e.endOptions.font,weight:t}}}),__next40pxDefaultSize:!0})})]}),(0,s.jsxs)("div",{className:"cozy-block-styles__div-separator",children:[(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsxs)(n.__experimentalToggleGroupControl,{label:(0,t.__)("Letter Case","cozy-addons"),value:e.endOptions.letterCase,onChange:t=>a({...e,endOptions:{...e.endOptions,letterCase:t}}),children:[(0,s.jsx)(n.__experimentalToggleGroupControlOptionIcon,{label:(0,t.__)("None","cozy-addons"),value:"none",icon:h}),(0,s.jsx)(n.__experimentalToggleGroupControlOptionIcon,{label:(0,t.__)("Uppercase","cozy-addons"),value:"uppercase",icon:y}),(0,s.jsx)(n.__experimentalToggleGroupControlOptionIcon,{label:(0,t.__)("Lowercase","cozy-addons"),value:"lowercase",icon:g}),(0,s.jsx)(n.__experimentalToggleGroupControlOptionIcon,{label:(0,t.__)("Capitalize","cozy-addons"),value:"capitalize",icon:m})]})}),(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsxs)(n.__experimentalToggleGroupControl,{label:(0,t.__)("Decoration","cozy-addons"),value:e.endOptions.decoration,onChange:t=>a({...e,endOptions:{...e.endOptions,decoration:t}}),children:[(0,s.jsx)(n.__experimentalToggleGroupControlOptionIcon,{label:(0,t.__)("None","cozy-addons"),value:"none",icon:h}),(0,s.jsx)(n.__experimentalToggleGroupControlOptionIcon,{label:(0,t.__)("Underline","cozy-addons"),value:"underline",icon:u}),(0,s.jsx)(n.__experimentalToggleGroupControlOptionIcon,{label:(0,t.__)("Strikethrough","cozy-addons"),value:"line-through",icon:f})]})})]}),(0,s.jsxs)("div",{className:"cozy-block-styles__div-separator",style:{margin:"16px 0"},children:[(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Line Height","cozy-addons"),value:e.endOptions.lineHeight,onChange:t=>a({...e,endOptions:{...e.endOptions,lineHeight:t}}),__next40pxDefaultSize:!0})}),(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Letter Spacing","cozy-addons"),value:e.endOptions.letterSpacing,onChange:t=>a({...e,endOptions:{...e.endOptions,letterSpacing:t}}),__next40pxDefaultSize:!0})})]}),(0,s.jsx)(o.PanelColorSettings,{className:"cozy-color-control",enableAlpha:!0,title:(0,t.__)("Color","cozy-addons"),colorSettings:[{label:(0,t.__)("Text","cozy-addons"),value:e.endOptions.color.text,onChange:t=>a({...e,endOptions:{...e.endOptions,color:{...e.endOptions.color,text:t}}})},{label:(0,t.__)("Background","cozy-addons"),value:e.endOptions.color.bg,onChange:t=>a({...e,endOptions:{...e.endOptions,color:{...e.endOptions.color,bg:t}}})}]})]})}),(e.beforeLabel.enabled||e.afterLabel.enabled)&&(0,s.jsx)(n.Panel,{children:(0,s.jsxs)(n.PanelBody,{title:(0,t.__)("Before/After Label Styles","cozy-addons"),opened:"before-after-label-styles"===d,onToggle:()=>c("before-after-label-styles"),children:[(0,s.jsx)(n.SelectControl,{label:(0,t.__)("Font Family","cozy-addons"),options:i,value:e.beforeAfterStyles.font.family,onChange:t=>a({...e,beforeAfterStyles:{...e.beforeAfterStyles,font:{...e.beforeAfterStyles.font,family:t}}}),__next40pxDefaultSize:!0}),(0,s.jsxs)("div",{className:"cozy-block-styles__div-separator",style:{margin:"16px 0"},children:[(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Font Size","cozy-addons"),value:e.beforeAfterStyles.font.size,onChange:t=>a({...e,beforeAfterStyles:{...e.beforeAfterStyles,font:{...e.beforeAfterStyles.font,size:t}}}),__next40pxDefaultSize:!0})}),(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.SelectControl,{label:(0,t.__)("Font Weight","cozy-addons"),options:_,value:e.beforeAfterStyles.font.weight,onChange:t=>a({...e,beforeAfterStyles:{...e.beforeAfterStyles,font:{...e.beforeAfterStyles.font,weight:t}}}),__next40pxDefaultSize:!0})})]}),(0,s.jsxs)("div",{className:"cozy-block-styles__div-separator",children:[(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsxs)(n.__experimentalToggleGroupControl,{label:(0,t.__)("Letter Case","cozy-addons"),value:e.beforeAfterStyles.letterCase,onChange:t=>a({...e,beforeAfterStyles:{...e.beforeAfterStyles,letterCase:t}}),children:[(0,s.jsx)(n.__experimentalToggleGroupControlOptionIcon,{label:(0,t.__)("None","cozy-addons"),value:"none",icon:h}),(0,s.jsx)(n.__experimentalToggleGroupControlOptionIcon,{label:(0,t.__)("Uppercase","cozy-addons"),value:"uppercase",icon:y}),(0,s.jsx)(n.__experimentalToggleGroupControlOptionIcon,{label:(0,t.__)("Lowercase","cozy-addons"),value:"lowercase",icon:g}),(0,s.jsx)(n.__experimentalToggleGroupControlOptionIcon,{label:(0,t.__)("Capitalize","cozy-addons"),value:"capitalize",icon:m})]})}),(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsxs)(n.__experimentalToggleGroupControl,{label:(0,t.__)("Decoration","cozy-addons"),value:e.beforeAfterStyles.decoration,onChange:t=>a({...e,beforeAfterStyles:{...e.beforeAfterStyles,decoration:t}}),children:[(0,s.jsx)(n.__experimentalToggleGroupControlOptionIcon,{label:(0,t.__)("None","cozy-addons"),value:"none",icon:h}),(0,s.jsx)(n.__experimentalToggleGroupControlOptionIcon,{label:(0,t.__)("Underline","cozy-addons"),value:"underline",icon:u}),(0,s.jsx)(n.__experimentalToggleGroupControlOptionIcon,{label:(0,t.__)("Strikethrough","cozy-addons"),value:"line-through",icon:f})]})})]}),(0,s.jsxs)("div",{className:"cozy-block-styles__div-separator",style:{margin:"16px 0"},children:[(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Line Height","cozy-addons"),value:e.beforeAfterStyles.lineHeight,onChange:t=>a({...e,beforeAfterStyles:{...e.beforeAfterStyles,lineHeight:t}}),__next40pxDefaultSize:!0})}),(0,s.jsx)("div",{style:{width:"100%"},children:(0,s.jsx)(n.__experimentalUnitControl,{label:(0,t.__)("Letter Spacing","cozy-addons"),value:e.beforeAfterStyles.letterSpacing,onChange:t=>a({...e,beforeAfterStyles:{...e.beforeAfterStyles,letterSpacing:t}}),__next40pxDefaultSize:!0})})]}),(0,s.jsx)(o.PanelColorSettings,{className:"cozy-color-control",enableAlpha:!0,title:(0,t.__)("Color","cozy-addons"),colorSettings:[{label:(0,t.__)("Text","cozy-addons"),value:e.beforeAfterStyles.color.text,onChange:t=>a({...e,beforeAfterStyles:{...e.beforeAfterStyles,color:{...e.beforeAfterStyles.color,text:t}}})}]})]})})]},"cozy-styles")})})),j=(0,l.memo)((({attributes:e,setAttributes:l,postType:a})=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.InspectorControls,{children:(0,s.jsx)(n.TabPanel,{tabs:[{title:(0,t.__)("Settings","cozy-addons"),icon:i,className:"cozy-block__tab-control cozy-block-control__settings",name:"setting"},{title:(0,t.__)("Styles","cozy-addons"),icon:r,className:"cozy-block__tab-control cozy-block-control__styles",name:"style"}],children:t=>(0,s.jsxs)(s.Fragment,{children:["setting"===t.name&&(0,s.jsx)(b,{attributes:e,setAttributes:l,postType:a}),"style"===t.name&&(0,s.jsx)(v,{attributes:e,setAttributes:l})]})})})})));function S(e,t){return t&&Object.keys(t).length<4?1===Object.keys(t).length?`\n ${e}: ${t};\n `:`\n ${e}: ${t.width} ${t.style} ${t.color};\n `:t&&4===Object.keys(t).length?"border"===e?`\n border-top: ${t.top.width} ${t.top.style} ${t.top.color};\n border-right: ${t.right.width} ${t.right.style} ${t.right.color};\n border-bottom: ${t.bottom.width} ${t.bottom.style} ${t.bottom.color};\n border-left: ${t.left.width} ${t.left.style} ${t.left.color};\n `:`\n ${e}: ${t.top} ${t.right} ${t.bottom} ${t.left};\n `:""}function w(e,t){return`\n\t\t#${e} {\n\t\t\t${S("padding",t.padding)}\n\t\t\t${S("border",t.border)}\n\t\t\t${S("border-radius",t.radius)}\n\t\t\tfont-size: ${t.font.size};\n\t\t\tfont-weight: ${t.font.weight};\n\t\t\tfont-family: ${t.font.family};\n\t\t\tcolor: ${t.color.text};\n\t\t\tbackground-color: ${t.color.bg};\n\t\t\tline-height: ${t.lineHeight};\n\t\t\tletter-spacing: ${t.letterSpacing};\n\n\t\t\t&.has-box-shadow {\n\t\t\t\tbox-shadow: ${t.shadow.horizontal} ${t.shadow.vertical} ${t.shadow.blur} ${t.shadow.spread} ${t.shadow.color} ${t.shadow.position};\n\t\t\t}\n\t\t}\n\n\t\t#${e} .countdown-timer__wrap {\n\t\t\tmargin-top: ${t.itemStyles.margin.top};\n\t\t\tmargin-bottom: ${t.itemStyles.margin.bottom};\n\t\t\tjustify-content: ${t.align};\n\t\t\tgap: ${t.gap};\n\t\t}\n\n\t\t#${e} .item__wrap {\n\t\t\twidth: ${t.itemStyles?.width};\n\t\t\theight: ${t.itemStyles?.height};\n\t\t\t${S("border",t.itemStyles.border)}\n\t\t\tborder-radius: ${t.itemStyles.radius};\n\t\t\tbackground-color: ${t.itemStyles.color.bg};\n\t\t\tcolor: ${t.itemStyles.color.text};\n\n\t\t\t&.has-box-shadow {\n\t\t\t\tbox-shadow: ${t.itemStyles.shadow.horizontal} ${t.itemStyles.shadow.vertical} ${t.itemStyles.shadow.blur} ${t.itemStyles.shadow.spread} ${t.itemStyles.shadow.color} ${t.itemStyles.shadow.position};\n\t\t\t}\n\n\t\t\t& .countdown-timer__item {\n\t\t\t\t& .timer {\n\t\t\t\t\t${S("padding",t?.timerStyles?.padding)}\n\t\t\t\t\t${S("border",t?.timerStyles?.border)}\n\t\t\t\t\tborder-radius: ${t?.timerStyles?.radius};\n\t\t\t\t\tbackground-color: ${t?.timerStyles?.color?.bg};\n\t\t\t\t\tcolor: ${t?.timerStyles?.color?.text};\n\t\t\t\t\tfont-size: ${t?.timerStyles?.font?.size};\n\t\t\t\t\tfont-weight: ${t?.timerStyles?.font?.weight};\n\t\t\t\t\tfont-family: ${t?.timerStyles?.font?.family};\n\t\t\t\t\tline-height: ${t?.timerStyles?.lineHeight};\n\t\t\t\t\tletter-spacing: ${t?.timerStyles?.letterSpacing};\n\t\t\t\t}\n\t\n\t\t\t\t&.has-separator:before {\n\t\t\t\t\tcontent: '${t.separator.content}';\n\t\t\t\t\tmargin-top: ${t.separator.margin.top};\n\t\t\t\t\tmargin-left: ${t.separator.margin.left};\n\t\t\t\t\tfont-size: ${t.separator.size};\n\t\t\t\t\tcolor: ${t.separator.color.text};\n\t\t\t\t}\n\t\n\t\t\t\t&.display-inline {\n\t\t\t\t\tgap: ${t.label.gap};\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\t#${e} .countdown-timer__label {\n\t\t\ttext-align: ${t.label.align};\n\t\t\tfont-size: ${t.label.font.size};\n\t\t\tfont-weight: ${t.label.font.weight};\n\t\t\tfont-family: ${t.label.font.family};\n\t\t\ttext-transform: ${t.label.letterCase};\n\t\t\ttext-decoration: ${t.label.decoration};\n\t\t\tline-height: ${t.label.lineHeight};\n\t\t\tletter-spacing: ${t.label.letterSpacing};\n\t\t\tcolor: ${t.label.color.text};\n\t\t}\n\t\t#${e} .countdown-timer__item.display-block .countdown-timer__label {\n\t\t\t&.is-top {\n\t\t\t\tmargin-bottom: ${t.label.gap};\n\t\t\t}\n\t\t\t&.is-bottom {\n\t\t\t\tmargin-top: ${t.label.gap};\n\t\t\t}\n\t\t}\n\n\t\t#${e} .countdown-timer__end-text-wrap {\n\t\t\ttext-align: ${t.endOptions.align};\n\t\t\tmargin-top: ${t.endOptions.margin.top};\n\t\t\tmargin-bottom: ${t.endOptions.margin.bottom};\n\n\t\t\t& .end-text {\n\t\t\t\t${S("padding",t.endOptions.padding)}\n\t\t\t\t${S("border",t.endOptions.border)}\n\t\t\t\tborder-radius: ${t.endOptions.radius};\n\t\t\t\tfont-size: ${t.endOptions.font.size};\n\t\t\t\tfont-weight: ${t.endOptions.font.weight};\n\t\t\t\tfont-family: ${t.endOptions.font.family};\n\t\t\t\ttext-transform: ${t.endOptions.letterCase};\n\t\t\t\ttext-decoration: ${t.endOptions.decoration};\n\t\t\t\tline-height: ${t.endOptions.lineHeight};\n\t\t\t\tletter-spacing: ${t.endOptions.letterSpacing};\n\t\t\t\tbackground-color: ${t.endOptions.color.bg};\n\t\t\t\tcolor: ${t.endOptions.color.text};\n\t\t\t}\n\t\t}\n\n\t\t#${e} #offer-wrap:not(.width-inline) {\n\t\t\t& .before-label, & .after-label {\n\t\t\t\ttext-align: ${t.align};\n\t\t\t}\n\n\t\t\t& .before-label {\n\t\t\t\tmargin-bottom: ${t.beforeAfterStyles.gap};\n\t\t\t}\n\n\t\t\t& .after-label {\n\t\t\t\tmargin-top: ${t.beforeAfterStyles.gap};\n\t\t\t}\n\t\t}\n\t\t#${e} #offer-wrap.width-inline {\n\t\t\tjustify-content: ${t.align};\n\t\t\tgap: ${t.beforeAfterStyles.gap};\n\t\t}\n\t\t#${e} .before-label, #${e} .after-label {\n\t\t\tfont-size: ${t.beforeAfterStyles.font.size};\n\t\t\tfont-weight: ${t.beforeAfterStyles.font.weight};\n\t\t\tfont-family: ${t.beforeAfterStyles.font.family};\n\t\t\ttext-transform: ${t.beforeAfterStyles.letterCase};\n\t\t\ttext-decoration: ${t.beforeAfterStyles.decoration};\n\t\t\tline-height: ${t.beforeAfterStyles.lineHeight};\n\t\t\tletter-spacing: ${t.beforeAfterStyles.letterSpacing};\n\t\t\tcolor: ${t.beforeAfterStyles.color.text};\n\t\t}\n `}const C=(0,l.memo)((({blockID:e,attributes:n,setAttributes:a})=>{let i=0,r=0,d=0,c=0;const[p,_]=(0,l.useState)(0);if((0,l.useEffect)((()=>{var e=new Date;const t=new Date(n.endDate);_(t>e?t-e:0)}),[n.endDate]),p>0){let e=p;i=Math.floor(e/864e5),e%=864e5,r=Math.floor(e/36e5),e%=36e5,d=Math.floor(e/6e4),e%=6e4,c=Math.floor(e/1e3)}return(0,s.jsxs)(s.Fragment,{children:[""!=n?.timerStyles?.font?.family&&null!=n?.timerStyles?.font?.family&&(0,s.jsx)("link",{rel:"stylesheet",href:`https://fonts.googleapis.com/css2?family=${n?.timerStyles?.font?.family}:wght@100;200;300;400;500;600;700;800;900`}),""!=n.label.font.family&&null!=n.label.font.family&&(0,s.jsx)("link",{rel:"stylesheet",href:`https://fonts.googleapis.com/css2?family=${n.label.font.family}:wght@100;200;300;400;500;600;700;800;900`}),""!=n.endOptions.font.family&&null!=n.endOptions.font.family&&(0,s.jsx)("link",{rel:"stylesheet",href:`https://fonts.googleapis.com/css2?family=${n.endOptions.font.family}:wght@100;200;300;400;500;600;700;800;900`}),""!=n.beforeAfterStyles.font.family&&null!=n.beforeAfterStyles.font.family&&(0,s.jsx)("link",{rel:"stylesheet",href:`https://fonts.googleapis.com/css2?family=${n.beforeAfterStyles.font.family}:wght@100;200;300;400;500;600;700;800;900`}),""!=n.font.family&&null!=n.font.family&&(0,s.jsx)("link",{rel:"stylesheet",href:`https://fonts.googleapis.com/css2?family=${n.font.family}:wght@100;200;300;400;500;600;700;800;900`}),(0,s.jsxs)("div",{id:e,className:"cozy-block-countdown-timer"+(n.shadow.enabled?" has-box-shadow":""),children:[(0,s.jsxs)("div",{id:"offer-wrap",className:n.beforeLabel.enabled||n.afterLabel.enabled?`width-${n.beforeAfterStyles.width}`:"",children:[n.beforeLabel.enabled&&(0,s.jsx)(o.RichText,{className:"before-label",tagName:"div",placeholder:(0,t.__)("Before Label","cozy-addons"),allowedFormats:[],value:n.beforeLabel.content,onChange:e=>a({...n,beforeLabel:{...n.beforeLabel,content:e}})}),(0,s.jsxs)("ul",{className:"countdown-timer__wrap",children:[n.enableOptions.day&&(0,s.jsx)("li",{className:"item__wrap"+(n.itemStyles.shadow.enabled?" has-box-shadow":""),children:(0,s.jsxs)("div",{className:`countdown-timer__item display-${n.label.display}`,children:[n.label.enabled&&"top"===n.label.position&&(0,s.jsx)(o.RichText,{className:"countdown-timer__label is-top",tagName:"p",placeholder:(0,t.__)("Add your Label","cozy-addons"),allowedFormats:[],value:n.enableOptions.dayLabel,onChange:e=>a({...n,enableOptions:{...n.enableOptions,dayLabel:e}})}),(0,s.jsx)("div",{className:"timer",children:String(i).padStart(2,"0")}),n.label.enabled&&"bottom"===n.label.position&&(0,s.jsx)(o.RichText,{className:"countdown-timer__label is-bottom",tagName:"p",placeholder:(0,t.__)("Add your Label","cozy-addons"),allowedFormats:[],value:n.enableOptions.dayLabel,onChange:e=>a({...n,enableOptions:{...n.enableOptions,dayLabel:e}})})]})}),n.enableOptions.hour&&(0,s.jsx)("li",{className:"item__wrap"+(n.itemStyles.shadow.enabled?" has-box-shadow":""),children:(0,s.jsxs)("div",{className:`countdown-timer__item display-${n.label.display}${n.enableOptions.day&&n.separator.enabled?" has-separator":""}`,children:[n.label.enabled&&"top"===n.label.position&&(0,s.jsx)(o.RichText,{className:"countdown-timer__label is-top",tagName:"p",placeholder:(0,t.__)("Add your Label","cozy-addons"),allowedFormats:[],value:n.enableOptions.hourLabel,onChange:e=>a({...n,enableOptions:{...n.enableOptions,hourLabel:e}})}),(0,s.jsx)("div",{className:"timer",children:String(r).padStart(2,"0")}),n.label.enabled&&"bottom"===n.label.position&&(0,s.jsx)(o.RichText,{className:"countdown-timer__label is-bottom",tagName:"p",placeholder:(0,t.__)("Add your Label","cozy-addons"),allowedFormats:[],value:n.enableOptions.hourLabel,onChange:e=>a({...n,enableOptions:{...n.enableOptions,hourLabel:e}})})]})}),n.enableOptions.minute&&(0,s.jsx)("li",{className:"item__wrap"+(n.itemStyles.shadow.enabled?" has-box-shadow":""),children:(0,s.jsxs)("div",{className:`countdown-timer__item display-${n.label.display}${(n.enableOptions.day||n.enableOptions.hour)&&n.separator.enabled?" has-separator":""}`,children:[n.label.enabled&&"top"===n.label.position&&(0,s.jsx)(o.RichText,{className:"countdown-timer__label is-top",tagName:"p",placeholder:(0,t.__)("Add your Label","cozy-addons"),allowedFormats:[],value:n.enableOptions.minuteLabel,onChange:e=>a({...n,enableOptions:{...n.enableOptions,minuteLabel:e}})}),(0,s.jsx)("div",{className:"timer",children:String(d).padStart(2,"0")}),n.label.enabled&&"bottom"===n.label.position&&(0,s.jsx)(o.RichText,{className:"countdown-timer__label is-bottom",tagName:"p",placeholder:(0,t.__)("Add your Label","cozy-addons"),allowedFormats:[],value:n.enableOptions.minuteLabel,onChange:e=>a({...n,enableOptions:{...n.enableOptions,minuteLabel:e}})})]})}),n.enableOptions.second&&(0,s.jsx)("li",{className:"item__wrap"+(n.itemStyles.shadow.enabled?" has-box-shadow":""),children:(0,s.jsxs)("div",{className:`countdown-timer__item display-${n.label.display}${(n.enableOptions.day||n.enableOptions.hour||n.enableOptions.minute)&&n.separator.enabled?" has-separator":""}`,children:[n.label.enabled&&"top"===n.label.position&&(0,s.jsx)(o.RichText,{className:"countdown-timer__label is-top",tagName:"p",placeholder:(0,t.__)("Add your Label","cozy-addons"),allowedFormats:[],value:n.enableOptions.secondLabel,onChange:e=>a({...n,enableOptions:{...n.enableOptions,secondLabel:e}})}),(0,s.jsx)("div",{className:"timer",children:String(c).padStart(2,"0")}),n.label.enabled&&"bottom"===n.label.position&&(0,s.jsx)(o.RichText,{className:"countdown-timer__label is-bottom",tagName:"p",placeholder:(0,t.__)("Add your Label","cozy-addons"),allowedFormats:[],value:n.enableOptions.secondLabel,onChange:e=>a({...n,enableOptions:{...n.enableOptions,secondLabel:e}})})]})})]}),n.afterLabel.enabled&&(0,s.jsx)(o.RichText,{className:"after-label",tagName:"div",placeholder:(0,t.__)("After Label","cozy-addons"),allowedFormats:[],value:n.afterLabel.content,onChange:e=>a({...n,afterLabel:{...n.afterLabel,content:e}})})]}),"text"===n.endOptions.type&&(0,s.jsx)("div",{className:"countdown-timer__end-text-wrap",children:(0,s.jsx)(o.RichText,{className:`end-text display-${n.endOptions.width}`,tagName:"p",placeholder:(0,t.__)("Add your Text","cozy-addons"),allowedFormats:[],value:n.endOptions.label,onChange:e=>a({...n,endOptions:{...n.endOptions,label:e}})})})]})]})})),O=JSON.parse('{"UU":"cozy-block/countdown-timer","h_":"The Countdown Timer Block creates urgency with a customizable timer for promotions or events, featuring automatic hiding after the offer ends."}'),$=(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("svg",{width:"23",height:"25",viewBox:"0 0 23 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.3125 14.5C1.3125 19.5741 5.42588 23.6875 10.5 23.6875C15.5741 23.6875 19.6875 19.5741 19.6875 14.5C19.6875 9.42588 15.5741 5.3125 10.5 5.3125C5.42588 5.3125 1.3125 9.42588 1.3125 14.5ZM10.5 4C4.70101 4 0 8.70101 0 14.5C0 20.299 4.70101 25 10.5 25C16.299 25 21 20.299 21 14.5C21 8.70101 16.299 4 10.5 4Z",fill:"#0C50FF"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 3.5V0.5H11.5V3.5H10.5Z",fill:"#0C50FF"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 1H8V0H14V0.5V1Z",fill:"#0C50FF"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8321 6.26588L19.8733 4.06738L20.6062 4.74779L18.5649 6.94629L17.8321 6.26588Z",fill:"#0C50FF"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.098 6.81528L17.701 2.73283L18.3814 2L22.7784 6.08244L22.4382 6.44886L22.098 6.81528Z",fill:"#0C50FF"}),(0,s.jsx)("path",{d:"M11 9V15H17.5",stroke:"#0C50FF",fill:"none"})]})});(0,e.registerBlockType)(O.UU,{title:(0,t.__)("Countdown Timer","cozy-addons"),description:(0,t.__)(O.h_,"cozy-addons"),icon:{src:$},edit:function({attributes:e,setAttributes:t,clientId:l}){if(e.cover)return(0,s.jsx)("img",{src:e.cover});e.clientId=l;const n=`cozyBlock_${l.replace(/-/gi,"_")}`,a=(0,o.useBlockProps)({className:"cozy-block-wrapper"});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{...a,children:[(0,s.jsx)("style",{dangerouslySetInnerHTML:{__html:w(n,e)}}),(0,s.jsx)(C,{blockID:n,attributes:e,setAttributes:t})]}),(0,s.jsx)(j,{attributes:e,setAttributes:t})]})},save:function({attributes:e}){}})}},o={};function l(e){var n=o[e];if(void 0!==n)return n.exports;var a=o[e]={exports:{}};return t[e](a,a.exports,l),a.exports}l.m=t,e=[],l.O=(t,o,n,a)=>{if(!o){var s=1/0;for(c=0;c<e.length;c++){for(var[o,n,a]=e[c],i=!0,r=0;r<o.length;r++)(!1&a||s>=a)&&Object.keys(l.O).every((e=>l.O[e](o[r])))?o.splice(r--,1):(i=!1,a<s&&(s=a));if(i){e.splice(c--,1);var d=n();void 0!==d&&(t=d)}}return t}a=a||0;for(var c=e.length;c>0&&e[c-1][2]>a;c--)e[c]=e[c-1];e[c]=[o,n,a]},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={57:0,350:0};l.O.j=t=>0===e[t];var t=(t,o)=>{var n,a,[s,i,r]=o,d=0;if(s.some((t=>0!==e[t]))){for(n in i)l.o(i,n)&&(l.m[n]=i[n]);if(r)var c=r(l)}for(t&&t(o);d<s.length;d++)a=s[d],l.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return l.O(c)},o=globalThis.webpackChunkcountdown_timer=globalThis.webpackChunkcountdown_timer||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var n=l.O(void 0,[350],(()=>l(861)));n=l.O(n)})();
Save
Back