import{aw as m,j as i,bE as l,ax as c,bi as d}from"./app-BgLa5dit.js";import{S as e}from"./BixyE8L-.chunk.js";const y=[e.PreferredTheme,e.StudentWorkspaceSharing,e.HideResourcesForStudents,e.LibraryReview,e.StudentInteractives,e.ExpandSchoolLibrary,e.PrimaryProduct,e.ImmediateFeedbackInteractives,e.LTI,e.AutoCaptioning,e.LiteStudentCustomLibraries,e.ShareToGoogleClassroom,e.ShareToMicrosoftTeams,e.HasEnabledRostering],b=[e.PreferredTheme,e.ExpandSchoolLibrary,e.PrimaryProduct,e.AutoCaptioning,e.LiteStudentCustomLibraries,e.ShareToGoogleClassroom,e.ShareToMicrosoftTeams,e.HasEnabledRostering],o=[e.LiteUpgradeTypeCustomer,e.PolicyEndTime],T={[e.AutoCaptioning]:"This feature is currently in limited beta and should only be enabled sparingly and in specific use cases."},S={"System.Boolean":"checkbox","System.Int64":"number","System.String":"text","System.DateTime":"text"};function r(a){return S[a]||"text"}function x(a){const s=m(),t=s.values[a.settingName];return r(t.type)==="checkbox"?i.jsx(l,{on:t.value,disabled:o.includes(a.settingName),onClick:()=>{s.setFieldValue(a.settingName,{...t,value:!t.value})}}):i.jsx(c,{as:"input",className:"text-end p-1",formGroupClassname:"mb-0",type:r(t.type),name:t.displayName,value:t.type==="System.DateTime"?d.format(t.value,"DD/MM/YY HH:mm:ss"):t.value||"",disabled:o.includes(a.settingName),onChange:n=>{const u=t.type==="System.Int64"?parseInt(n.target.value,10):n.target.value;s.setFieldValue(a.settingName,{...t,value:u})}})}export{x as O,T as S,y as a,b};
//# sourceMappingURL=BPPr_ng0.chunk.js.map
