whoami7 - Manager
:
/
home
/
qbizpnmr
/
arif.umairtax.com
/
public
/
Upload File:
files >> //home/qbizpnmr/arif.umairtax.com/public/Settings-C4l1lJyu.js
import{u as d,bS as m,a as x,b as p,j as t,C as n,H as h,r as f,e as u}from"./bundle.OlIVtvc7.js";const i=h.div` color: ${o=>o.theme.color}; &:hover { background-color: ${o=>o.theme.hoverColor}; } `;function y(){const[o]=d(),{id:a}=m(),r=x(),{data:s}=p({queryKey:["/api/v1/clients/show_settings",a],queryFn:()=>f("POST",u("/api/v1/clients/:id/show_settings",{id:a})).then(e=>e.data),enabled:a!==null,staleTime:1/0}),c=e=>typeof e=="boolean"?o(e?"yes":"no"):typeof e=="string"?o(e):e;return t.jsxs("div",{className:"flex flex-col space-y-4 xl:flex-row xl:space-x-6 xl:space-y-0 w-full",children:[t.jsx(n,{title:o("client_settings"),className:"shadow-sm w-full xl:w-1/2 h-max pb-4",style:{borderColor:r.$24},headerStyle:{borderColor:r.$20},children:s!=null&&s.client_settings&&!Array.isArray(s==null?void 0:s.client_settings)&&Object.keys(s.client_settings).length>0?t.jsx("div",{className:"flex flex-col space-y-1 px-2 sm:px-4 pt-2",children:Object.entries(s.client_settings).filter(([e,l])=>e.toLowerCase()!=="id"||!e||!l).map(([e,l])=>t.jsxs(i,{className:"flex w-full items-center space-x-2 px-2 py-1.5 rounded-sm",theme:{hoverColor:r.$4,color:r.$1},children:[t.jsx("div",{className:"font-medium w-1/2 whitespace-nowrap truncate",style:{color:r.$3},children:e}),t.jsx("div",{className:"w-1/2 whitespace-nowrap truncate",style:{color:r.$3},children:c(l)})]},e))}):t.jsxs("div",{className:"px-4 sm:px-6 pt-2 font-medium",style:{color:r.$3},children:[o("no_records_found"),"."]})}),t.jsx(n,{title:o("group_settings"),className:"shadow-sm w-full xl:w-1/2 h-max pb-4",style:{borderColor:r.$24},headerStyle:{borderColor:r.$20},children:s!=null&&s.group_settings&&!Array.isArray(s==null?void 0:s.group_settings)&&Object.keys(s.group_settings).length>0?t.jsx("div",{className:"flex flex-col space-y-2 px-4 sm:px-6",children:Object.entries(s.group_settings).filter(([e,l])=>e.toLowerCase()!=="id"||!e||!l).map(([e,l])=>t.jsxs(i,{className:"flex w-full items-center space-x-2 px-2 py-1.5 rounded-sm",theme:{hoverColor:r.$4,color:r.$1},children:[t.jsx("div",{className:"font-medium w-1/2 whitespace-nowrap truncate",style:{color:r.$3},children:e}),t.jsx("div",{className:"w-1/2 whitespace-nowrap truncate",style:{color:r.$3},children:c(l)})]},e))}):t.jsxs("div",{className:"px-4 sm:px-6 pt-2 font-medium",style:{color:r.$3},children:[o("no_records_found"),"."]})})]})}export{y as default};
Copyright ©2021 || Defacer Indonesia