var j=Object.defineProperty;var I=Object.getOwnPropertySymbols;var F=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var B=(n,i,e)=>i in n?j(n,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[i]=e,A=(n,i)=>{for(var e in i||(i={}))F.call(i,e)&&B(n,e,i[e]);if(I)for(var e of I(i))N.call(i,e)&&B(n,e,i[e]);return n};import{b0 as R,f as _,u as c,aZ as g,aX as k,O as D,au as G,an as T,aj as U}from"./index-f4658ae7.js";const o=24;function z({advanceState:n,emit:i,getProps:e,getSchema:h,formModel:v,defaultValueRef:b}){const{realWidthRef:L,screenEnum:p,screenRef:W}=R(),y=_(()=>{if(!n.isAdvanced)return 0;const s=c(e).emptySpan||0;if(g(s))return s;if(k(s)){const{span:d=0}=s,f=c(W);return s[f.toLowerCase()]||d||0}return 0}),O=G(X,30);D([()=>c(h),()=>n.isAdvanced,()=>c(L)],()=>{const{showAdvancedButton:s}=c(e);s&&O()},{immediate:!0});function w(s,d=0,f=!1){const r=c(L),a=parseInt(s.md)||parseInt(s.xs)||parseInt(s.sm)||s.span||o,u=parseInt(s.lg)||a,t=parseInt(s.xl)||u,l=parseInt(s.xxl)||t;return r<=p.LG?d+=a:r