import{g as $,i as x,aX as P,aH as T,a as L,j as e,h as N,f as v,bG as w}from"./main-634.js";import{T as z,a as F,b as I}from"./bf-982-242.js";import{s as u}from"./bf-710-385.js";import{F as R}from"./bf-767-388.js";import{S as H}from"./bf-534-247.js";import"./bf-25-81.js";import"./bf-497-246.js";import"./bf-641-107.js";import"./bf-400-72.js";import"./bf-438-114.js";function M({className:h=""}){var c,m,r,f,p;const{fieldKey:s}=$(),[n,j]=x(P),[b]=x(T),{css:l}=L();if(!s)return null;const a=b[s],A=(c=a==null?void 0:a.adminLbl)!=null?c:"",o=(m=n==null?void 0:n.fields)==null?void 0:m[s],i=`.${s}-fld-wrp`,y=(p=(f=(r=o==null?void 0:o.classes)==null?void 0:r[i])==null?void 0:f["justify-content"])!=null?p:"left",C=d=>{const g=v(n,t=>{t.fields[s]||(t.fields[s]={classes:{}}),t.fields[s].classes[i]||(t.fields[s].classes[i]={}),t.fields[s].classes[i].display="flex",t.fields[s].classes[i]["justify-content"]=d});j(g),w({event:`Position alignment to "${d}" : ${A||s}`,type:"position_alignment_change",state:{styles:g,fldKey:s}})};return e.jsx("div",{className:`${l(R.fieldSection)} ${h}`,children:e.jsxs("div",{className:l(N.flxcb),children:[e.jsx("span",{className:l(u.label),children:"Position Alignment"}),e.jsx(H,{show:["icn"],tipPlace:"bottom",className:l(u.segment),options:[{icn:e.jsx(z,{size:"17"}),label:"left",tip:"Left"},{icn:e.jsx(F,{size:"17"}),label:"center",tip:"Center"},{icn:e.jsx(I,{size:"17"}),label:"right",tip:"Right"}],onChange:C,defaultActive:y})]})})}export{M as default};
