(()=>{"use strict";const t=window.wp.blocks,e=window.wp.i18n,a=window.wp.blockEditor,s=window.wp.components,o=window.ReactJSXRuntime,r=JSON.parse('{"UU":"suredash/navigation"}');(0,t.registerBlockType)(r.UU,{icon:(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-list",style:{fill:"none",width:"16px"},children:[(0,o.jsx)("path",{d:"M3 12h.01"}),(0,o.jsx)("path",{d:"M3 18h.01"}),(0,o.jsx)("path",{d:"M3 6h.01"}),(0,o.jsx)("path",{d:"M8 12h13"}),(0,o.jsx)("path",{d:"M8 18h13"}),(0,o.jsx)("path",{d:"M8 6h13"})]}),edit:t=>{const{attributes:{spacegroupsgap:r,spacesgap:n,spacegrouptitlefirstspacegap:i},setAttributes:l}=t,p=(0,a.useBlockProps)({style:{fontFamily:"var(--portal-font-family)"},className:"suredash-portal__editor-navigation"}),d=t?.attributes?.style?.elements?.spaceactivetext?.color?.color||"",c=t?.attributes?.style?.elements?.spaceactivebackground?.color?.background||"",h=t?.attributes?.style?.elements?.spacegrouptext?.color?.color||"",u=t?.attributes?.style?.elements?.spacegroupbackground?.color?.background||"";return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.InspectorControls,{children:(0,o.jsxs)(s.PanelBody,{children:[(0,o.jsx)(a.__experimentalUnitControl,{label:(0,e.__)("2 Spaces Gap","suredash"),labelPosition:"top",__unstableInputWidth:"80px",value:n,onChange:t=>l({spacesgap:t})}),(0,o.jsx)(a.__experimentalUnitControl,{label:(0,e.__)("Group Title & First Space Gap","suredash"),labelPosition:"top",__unstableInputWidth:"80px",value:i,onChange:t=>l({spacegrouptitlefirstspacegap:t})}),(0,o.jsx)(a.__experimentalUnitControl,{label:(0,e.__)("2 Space Groups Gap","suredash"),labelPosition:"top",__unstableInputWidth:"80px",value:r,onChange:t=>l({spacegroupsgap:t})})]})}),(0,o.jsxs)("div",{...p,children:[(0,o.jsx)("style",{children:`\n\t\t\t\t\t\t.wp-block-suredash-navigation .portal-aside-group-body {\n\t\t\t\t\t\t\tmargin-bottom: ${r};\n\t\t\t\t\t\t\tpadding-bottom: unset;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t.wp-block-suredash-navigation .portal-aside-group-link {\n\t\t\t\t\t\t\tpadding-top:${n};\n\t\t\t\t\t\t\tpadding-bottom:${n};\n\t\t\t\t\t\t}\n\t\t\t\t\t\t.wp-block-suredash-navigation .portal-aside-group-header {\n\t\t\t\t\t\t\tmargin-bottom: ${i};\n\t\t\t\t\t\t}\n\t\t\t\t\t\t.wp-block-suredash-navigation ul a.active {\n\t\t\t\t\t\t\tbackground: ${c};\n\t\t\t\t\t\t}\n\t\t\t\t\t\t.wp-block-suredash-navigation ul a.active, .wp-block-suredash-navigation ul a.active * {\n\t\t\t\t\t\t\tcolor: ${d};\n\t\t\t\t\t\t}\n\t\t\t\t\t\t.wp-block-suredash-navigation .portal-aside-group-header {\n\t\t\t\t\t\t\tbackground: ${u};\n\t\t\t\t\t\t}\n\t\t\t\t\t\t.wp-block-suredash-navigation .portal-aside-group-header .portal-aside-group-title {\n\t\t\t\t\t\t\tcolor: ${h};\n\t\t\t\t\t\t}\n\t\t\t\t\t`}),(0,o.jsx)("div",{className:"portal-aside-list-wrapper portal-content",children:(()=>{const t=[];for(let a=1;a<=4;a++)t.push((0,o.jsx)("div",{className:"portal-aside-group-wrap",children:(0,o.jsxs)("div",{className:"portal-aside-group",children:[(0,o.jsxs)("div",{className:"portal-aside-group-header",children:[(0,o.jsx)("span",{className:"portal-aside-group-title-link sd-no-space",children:(0,o.jsxs)("h5",{className:"portal-aside-group-title",children:[" ",(0,e.__)("Space Group","suredash")," ",a," "]})}),(0,o.jsx)("span",{className:"pfd-aside-doc-trigger",children:(0,o.jsx)("span",{className:"portal-svg-icon portal-icon-sm","aria-hidden":"true","aria-label":"ChevronDown",children:(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-chevron-down",children:(0,o.jsx)("path",{d:"m6 9 6 6 6-6"})})})})]}),(0,o.jsx)("div",{className:"portal-aside-group-body",children:(0,o.jsx)("ul",{className:"portal-aside-group-list sd-no-space",children:Array.from({length:3},((t,s)=>(0,o.jsx)("li",{children:(0,o.jsxs)("a",{href:"javascript:void(0)",className:1===a&&0===s?"portal-aside-group-link active":"portal-aside-group-link",children:[" ",(0,o.jsx)("span",{className:"portal-svg-icon portal-icon-sm","aria-hidden":"true","aria-label":"Calendar",children:(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-calendar",children:[(0,o.jsx)("path",{d:"M8 2v4"}),(0,o.jsx)("path",{d:"M16 2v4"}),(0,o.jsx)("rect",{width:"18",height:"18",x:"3",y:"4",rx:"2"}),(0,o.jsx)("path",{d:"M3 10h18"})]})}),(0,o.jsxs)("span",{className:"portal-aside-item-title",children:[" ",(0,e.__)("Space","suredash")," ",s+1," "]})]})},a+s)))})})]})},a));return t})()})]})]})},save:function(){return(0,o.jsx)(a.InnerBlocks.Content,{})}})})();