var k=Object.defineProperty,B=Object.defineProperties;var I=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var g=(t,e,s)=>e in t?k(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,b=(t,e)=>{for(var s in e||(e={}))N.call(e,s)&&g(t,s,e[s]);if(y)for(var s of y(e))_.call(e,s)&&g(t,s,e[s]);return t},j=(t,e)=>B(t,I(e));import{g as z,i as f,u as F,aq as D,a as K,A as C,j as i,h as n,_ as E,aF as G,aV as P,du as T,bo as V,a7 as q,aI as w,f as O,bD as U}from"./main-343.js";import{F as h}from"./bf-838-284.js";import{F as J,A as M,b as Q,c as W}from"./bf-622-233.js";import{F as p}from"./bf-505-323.js";import"./bf-697-110.js";import"./bf-90-70.js";import"./bf-649-79.js";import"./bf-594-113.js";import"./bf-983-247.js";import"./bf-810-248.js";import"./bf-603-251.js";import"./bf-453-86.js";import"./bf-190-88.js";import"./bf-914-249.js";import"./bf-870-250.js";import"./bf-411-252.js";import"./bf-711-253.js";import"./bf-519-87.js";import"./bf-901-254.js";import"./bf-656-255.js";import"./bf-806-256.js";import"./bf-318-257.js";import"./bf-437-78.js";import"./bf-689-322.js";import"./bf-123-272.js";import"./bf-772-285.js";import"./bf-209-80.js";import"./bf-529-105.js";import"./bf-730-282.js";import"./bf-623-283.js";function Rt(){var x;const{fieldKey:t}=z(),[e,s]=f(G);f(P);const[d,S]=f(T),v=F(V),l=F(q);let u=((x=d==null?void 0:d[l])==null?void 0:x.find(o=>o.i===t))||{};const A=D(w);u||Object.values(v).forEach(o=>{var m;const r=(m=o==null?void 0:o[l])==null?void 0:m.find(a=>a.i===t);r&&(u=r)});const{css:c}=K(),H=C(e[t]),L=o=>{const r=o.target.valueAsNumber;if(r<0)return;const m=O(d,a=>{const $=a[l].findIndex(R=>R.i===t);a[l][$].h=r});S(m),A(a=>j(b({},a),{reRenderGridLayoutByRootLay:a.reRenderGridLayoutByRootLay+1})),U({event:"Update Field Height",state:{layouts:m,fldKey:t}})};return i.jsxs("div",{children:[i.jsx(J,{title:"Field Settings",subtitle:H.typ,fieldKey:t}),i.jsx(M,{}),i.jsx(p,{}),i.jsx(Q,{}),i.jsx(p,{}),i.jsxs("div",{className:c(h.fieldSection,h.hover_tip,n.flxcb),children:[i.jsx("label",{htmlFor:"alt",className:c(n.mr1),children:E("Height")}),i.jsx("input",{type:"number",name:"height","data-testid":"img-height","aria-label":"Image Height",placeholder:"auto",className:c(h.input,n.w5,n.mt0,n.mb0),value:u.h||"",onChange:L,min:0})]}),i.jsx(p,{}),i.jsx(W,{}),i.jsx(p,{})]})}export{Rt as default};
