(()=>{"use strict";const e=window.wp.blocks,s=window.wp.i18n,r=window.wp.blockEditor,o=window.wp.components,n=window.ReactJSXRuntime,t=JSON.parse('{"UU":"suredash/search"}');(0,e.registerBlockType)(t.UU,{icon:(0,n.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-search",style:{fill:"none",width:"16px"},children:[(0,n.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,n.jsx)("path",{d:"m21 21-4.3-4.3"})]}),edit:({attributes:{inputborderradius:e,responsiveonlyicon:t},setAttributes:i})=>{const l=(0,r.useBlockProps)({style:{fontFamily:"var(--portal-font-family)"},className:"suredash-portal__editor-search"});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.InspectorControls,{children:(0,n.jsxs)(o.PanelBody,{children:[(0,n.jsx)(r.__experimentalUnitControl,{label:(0,s.__)("Input Roundness","suredash"),labelPosition:"top",__unstableInputWidth:"100px",value:e,onChange:e=>i({inputborderradius:e})}),(0,n.jsx)(o.ToggleControl,{label:(0,s.__)("Show only Icon on Responsive","suredash"),checked:t,onChange:e=>i({responsiveonlyicon:e})})]})}),(0,n.jsx)("div",{...l,children:(0,n.jsxs)("div",{id:"portal-placeholder-search-wrap",className:"portal-search-container portal-header-search-trigger portal-content",children:[(0,n.jsx)("input",{itemProp:"query-input",type:"search",id:"placeholder-search-input",className:"portal-search-input",placeholder:(0,s.__)("Search","suredash"),style:{borderRadius:e}}),(0,n.jsxs)("label",{id:"pf_docs-button-holder",className:"pf-svg-search pfd-svg-icon pf-docs-search-button",htmlFor:"placeholder-search-input",children:[" ",(0,n.jsx)("span",{className:"portal-svg-icon portal-icon-sm",children:(0,n.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-search",children:[(0,n.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,n.jsx)("path",{d:"m21 21-4.3-4.3"})]})})]}),(0,n.jsx)("span",{className:"portal-search-shortcut",children:"/"})]})})]})},save:function(){return(0,n.jsx)(r.InnerBlocks.Content,{})}})})();