import{a as x,u as c,i as T,aq as V,j as d,f as $,aV as b,ch as R}from"./main-343.js";import{b as A,a as S}from"./bf-90-70.js";import{f as E,S as F}from"./bf-697-110.js";import{e as g}from"./bf-649-79.js";function I({id:r,fk:s}){var n,f;const{css:a}=x(),e=c(A)||{},[i,m]=T(b),u=V(R),z=c(S),h=Object.keys((e==null?void 0:e.fields)||{});let o=!1;s?o=("fields"in i&&((n=i.fields[s])==null?void 0:n.fieldSize))!==("fields"in e&&((f=e==null?void 0:e.fields[s])==null?void 0:f.fieldSize)):o=("fields"in i&&(i==null?void 0:i.fieldsSize))!==("fields"in e&&(e==null?void 0:e.fieldsSize));const p=()=>{m(j=>$(j,l=>{s?(l.fields[s].fieldSize=e==null?void 0:e.fields[s].fieldSize,l.fields[s].classes=e==null?void 0:e.fields[s].classes):(l.fieldsSize=e==null?void 0:e.fieldsSize,h.forEach(t=>{l.fields[t].fieldSize=e==null?void 0:e.fields[t].fieldSize,l.fields[t].classes=e==null?void 0:e.fields[t].classes}))})),s||u(z)};return o?d.jsx(g,{msg:"Reset style",children:d.jsx("button",{onClick:p,className:a(E.resetBtn),type:"button","data-testid":`${r}-reset-style`,children:d.jsx(F,{size:"20"})})}):null}export{I as T};
