import{bN as g,L as u,bc as p,ay as f,p as C,aI as o,ao as t,aZ as y,dL as h,d as x}from"./app-k0jcl5PQ.js";import{u as P,S as L,a as N}from"./D1WNsOm8.chunk.js";import{S as b}from"./EHuWazu9.chunk.js";import"./CCtuxSlD.chunk.js";import"./CPXlV0fg.chunk.js";import"./ApI7cEru.chunk.js";import"./DXxHdeNz.chunk.js";import"./CpGXOT1_.chunk.js";import"./DkDkjje4.chunk.js";import"./hKqzfsO4.chunk.js";import"./fstW5ZQE.chunk.js";import"./9ls1F1Ve.chunk.js";import"./DRKUY7jf.chunk.js";const j="settings.citationStyleSettings",e=u.encloseNamespace(j);function K(){g({title:e("pageTitle")});const a=p(),{defaultCitationStyle:s,isLoadingSettings:r,updateCustomerSetting:c}=f(C.Settings),{setPreferredStyleId:m}=P(),[S,n]=o.useState(L[0].id);o.useEffect(()=>{s&&n(s)},[s]);const d=i=>{n(i),m(i);const l={name:x.DefaultCitationStyle,value:i,kind:h.Setting};c(l,()=>{a.success(e("success"))},()=>a.error(e("error")))};return t.jsxs(b,{heading:e("heading"),breadcrumbs:[e("breadcrumb")],requiredPermissions:y.ManageCustomerSettings,children:[t.jsx("p",{children:e("description")}),!r&&t.jsx("div",{className:"row",children:t.jsx("div",{className:"col-md-6",children:t.jsx(N,{value:S,onChange:d})})})]})}export{K as CitationStyleSettingsView};
//# sourceMappingURL=7s-zur0V.chunk.js.map
