(()=>{"use strict";const e=window.qf.blocks,t=window.qf.adminComponents,a=window.React,r=window.wp.i18n,n={color:"#98DFAF",icon:()=>React.createElement("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},React.createElement("path",{d:"M4 9H20",strokeWidth:"1.5",strokeLinecap:"round"}),React.createElement("path",{d:"M4 14H12",strokeWidth:"1.5",strokeLinecap:"round"})),controls:({attributes:e,setAttributes:n})=>{const{setMaxCharacters:o,maxCharacters:l,minCharacters:c}=e;return React.createElement(a.Fragment,null,React.createElement(t.BaseControl,null,React.createElement(t.ControlWrapper,{orientation:"horizontal"},React.createElement(t.ControlLabel,{label:(0,r.__)("Min Characters","quillforms")}),React.createElement(t.ToggleControl,{checked:!1!==c,onChange:()=>{n({minCharacters:!1===c&&0})}})),!1!==c&&React.createElement(t.TextControl,{type:"number",value:c,onChange:e=>{n({minCharacters:e})}})),React.createElement(t.BaseControl,null,React.createElement(t.ControlWrapper,{orientation:"horizontal"},React.createElement(t.ControlLabel,{label:(0,r.__)("Max Characters","quillforms")}),React.createElement(t.ToggleControl,{checked:o,onChange:()=>{n({setMaxCharacters:!o})}})),o&&React.createElement(t.TextControl,{type:"number",value:l,onChange:e=>n({maxCharacters:e})})))},title:(0,r.__)("Short text","quillforms"),order:2},{name:o}={name:"short-text",supports:{editable:!0,required:!0,attachment:!0,description:!0,defaultValue:!0,placeholder:!0,logic:!0,theme:!0},attributes:{minCharacters:{type:["boolean","number"],default:!1},setMaxCharacters:{type:"boolean",default:!1},maxCharacters:{type:"number",multipleOf:1}},logicalOperators:["is","is_not","starts_with","ends_with","contains","not_contains"]};(0,e.setBlockAdminSettings)(o,n),(window.qf=window.qf||{}).blocklibShortTextBlockAdmin={}})();