import{j as a}from"./vendor-mui-69397583.js";import{d}from"./index-c62ac197.js";import{a as l}from"./FormContainer-91c2b0e4.js";import{b as p,c as m,a as u}from"./vendor-redux-a1f00e6b.js";import{b,c as g,d as f,e as x}from"./PreferenceService-75bf9db6.js";const P=({title:e,desc:s,...r})=>a.jsxs("div",{className:"pb-8",...r,children:[a.jsx("h5",{children:e}),a.jsx("p",{children:s})]}),S=e=>{const{label:s,children:r,errors:o,touched:n,name:t,border:c=!0,alignCenter:i=!0}=e;return a.jsxs("div",{className:d("grid grid-cols-1 md:grid-cols-3 gap-4 py-2",c&&"border-gray-200 dark:border-gray-600",i&&"md:items-center"),children:[a.jsx("div",{className:"font-semibold",children:s}),a.jsx("div",{className:"col-span-2",children:a.jsx(l,{className:"mb-3 max-w-[700px]",invalid:o[t]&&n[t],errorMessage:o[t],children:r})})]})},h="roleList",U=async e=>(await g(e)).data,I=async e=>(await f(e)).data,R=async e=>(await x(e)).data,k=p("settings/uploadProfileAvatar",async({file:e},{rejectWithValue:s})=>{try{return await b(e)}catch(r){return s(r.response.data)}}),j={loading:!1,is2FAEnabled:localStorage.getItem("twoFactorEnabled")!==null?localStorage.getItem("isEnabled"):"false"},w=m({name:`${h}/state`,initialState:j,reducers:{}}),y=w.reducer;u({data:y});export{P as F,S as a,I as b,R as c,U as e,k as u};
