import{a as p,g as v,i as h,aH as S,H as y,j as C,_ as n,f as _,bG as b}from"./main-634.js";import{F as a}from"./bf-767-388.js";import{S as F}from"./bf-497-246.js";import"./bf-25-81.js";function T(){var o;const{css:l}=p(),{fieldKey:e}=v(),[t,r]=h(S);if(!e)return null;const s=y(t[e]),c=s.adminLbl||"",f=((o=s.config)==null?void 0:o.saveCoordinates)||!1,g=m=>{const{checked:d}=m.target;s.config.saveCoordinates=d;const i=_(t,u=>{u[e]=s});r(i),b({event:`Save coordinates '${d?"On":"Off"}': ${s.lbl||c||e}`,type:"address_save_coordinates_changed",state:{fields:i,fldKey:e}})};return C.jsx(F,{id:"addr-save-coords-stng",className:l(a.fieldSection,a.hover_tip,a.singleOption),tip:n("When enabled, latitude and longitude are saved as hidden fields alongside the address entry."),title:n("Save Coordinates"),action:g,isChecked:f,isPro:!0})}export{T as default};
