@devtable/settings-form 14.60.10 → 14.60.11-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- const o = "14.60.10";
1
+ const o = "14.60.11-0";
2
2
  export {
3
3
  o as version
4
4
  };
@@ -2964,7 +2964,7 @@ const Ea = ze("DataSourceList", ({
2964
2964
  ] })
2965
2965
  ] })
2966
2966
  ] });
2967
- }), Pa = () => import("./package-ed892c3c.mjs").then(({
2967
+ }), Pa = () => import("./package-70e97de1.mjs").then(({
2968
2968
  version: a
2969
2969
  }) => (console.log(`[@devtable/settings-form] version: ${a}`), a));
2970
2970
  export {
@@ -33,4 +33,4 @@ React keys must be passed directly to JSX without using spread:
33
33
  `),post:["function post_process(res, utils) {"," // your code goes here"," return data","}"].join(`
34
34
  `)};function En({submit:r,styles:t=V}){const{t:s}=y.useTranslation(),{control:n,setValue:i,handleSubmit:l}=j.useForm({defaultValues:{type:"http",key:"",config:{host:"",processing:{pre:Ce.pre,post:Ce.post}}}});return e.jsx(o.Box,{mx:"auto",children:e.jsxs("form",{onSubmit:l(r),children:[e.jsx(j.Controller,{name:"key",control:n,render:({field:c})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:s("common.name"),placeholder:s("common.name_placeholder"),...c})}),e.jsx(o.Divider,{label:s("datasource.connection_info"),labelPosition:"center"}),e.jsx(j.Controller,{name:"config.host",control:n,render:({field:c})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:s("datasource.http.host"),sx:{flexGrow:1},...c})}),e.jsxs(o.Group,{grow:!0,children:[e.jsx(j.Controller,{name:"config.processing.pre",control:n,render:({field:c})=>e.jsx(we,{label:s("datasource.http.processing.pre.label"),modalTitle:s("datasource.http.processing.pre.description"),defaultValue:Ce.pre,...c,styles:t})}),e.jsx(j.Controller,{name:"config.processing.post",control:n,render:({field:c})=>e.jsx(we,{label:s("datasource.http.processing.post.label"),modalTitle:s("datasource.http.processing.post.description"),defaultValue:Ce.post,...c,styles:t})})]}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}function An({postSubmit:r,styles:t=V}){const{t:s}=y.useTranslation(),[n,i]=P.useState("postgresql"),l=async({type:p,key:h,config:b})=>{T.showNotification({id:"for-creating",title:s("common.state.pending"),message:s("datasource.state.adding"),loading:!0,autoClose:!1});try{console.log({type:p,key:h,config:b}),await R.datasource.create(p,h,b),T.updateNotification({id:"for-creating",title:s("common.state.successful"),message:s("datasource.state.added"),color:"green",autoClose:!0}),r()}catch(v){console.error(v),T.updateNotification({id:"for-creating",title:s("common.state.failed"),message:v.message,color:"red",autoClose:!0})}},c=p=>{i(p)},u=n==="postgresql"||n==="mysql",d=n==="http";return e.jsxs(o.Box,{mx:"auto",children:[e.jsx(o.SegmentedControl,{fullWidth:!0,mb:t.spacing,size:t.size,data:[{label:"PostgreSQL",value:"postgresql"},{label:"MySQL",value:"mysql"},{label:"HTTP",value:"http"}],value:n,onChange:c}),u&&e.jsx(_n,{styles:t}),u&&e.jsx(Dn,{submit:l,styles:t,type:n}),d&&e.jsx(En,{submit:l,styles:t})]})}function ct({onSuccess:r,styles:t=V}){const{t:s}=y.useTranslation(),[n,i]=P.useState(!1),l=()=>i(!0),c=()=>i(!1),u=()=>{r(),c()};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:n,onClose:()=>i(!1),title:s("datasource.add"),trapFocus:!0,onDragStart:d=>{d.stopPropagation()},children:e.jsx(An,{postSubmit:u,styles:t})}),e.jsx(o.Button,{size:t.button.size,onClick:l,leftSection:e.jsx(A.IconPlaylistAdd,{size:20}),children:s("datasource.add")})]})}const Pn={http:"HTTP",mysql:"MySQL",postgresql:"PostgreSQL",merico_metric_system:"Merico Metric System"},On={http:e.jsx(A.IconNetwork,{}),mysql:e.jsx(A.IconBrandMysql,{}),postgresql:e.jsx(A.IconDatabase,{}),merico_metric_system:e.jsx(A.IconTopologyRing3,{})};function $n({type:r}){return e.jsxs(o.Group,{children:[e.jsx(o.ActionIcon,{variant:"subtle",size:"xs",sx:{transform:"none !important"},children:On[r]}),e.jsx(o.Text,{sx:{cusor:"default",userSelect:"none"},children:Pn[r]})]})}function dt({id:r,name:t,isProtected:s,onSuccess:n,styles:i=V}){const{t:l}=y.useTranslation(),c=ae.useModals(),u=async()=>{r&&(T.showNotification({id:"for-deleting",title:l("common.state.pending"),message:l("datasource.state.deleting"),loading:!0,autoClose:!1}),await R.datasource.delete(r),T.updateNotification({id:"for-deleting",title:l("common.state.successful"),message:l("datasource.state.deleted",{name:t}),color:"green",autoClose:!0}),n())},d=()=>c.openConfirmModal({title:l("datasource.delete.title"),children:e.jsx(o.Text,{size:i.size,children:l("datasource.delete.hint")}),labels:{confirm:l("common.actions.confirm"),cancel:l("common.actions.cancel")},onCancel:()=>console.log("Cancel"),onConfirm:u,cancelProps:{size:i.button.size},confirmProps:{color:"red",size:i.button.size}});return s?e.jsx(o.Tooltip,{withArrow:!0,events:{hover:!0,touch:!1,focus:!1},label:l("datasource.delete.cant_delete_preset"),children:e.jsx(o.Button,{size:i.button.size,color:"gray",variant:"light",leftSection:e.jsx(A.IconLock,{size:16}),sx:{transform:"none !important"},children:l("common.actions.delete")})}):e.jsx(o.Button,{size:i.button.size,color:"red",onClick:d,leftSection:e.jsx(A.IconTrash,{size:16}),children:l("common.actions.delete")})}const ft={pre:["function pre_process({ method, url, params, headers, data }, utils) {"," // your code goes here"," return { method, url, params, headers, data }","}"].join(`
35
35
  `),post:["function post_process(resp, utils) {"," return resp.data","}"].join(`
36
- `)};function Mn({name:r,config:t,submit:s,styles:n=V}){const{t:i}=y.useTranslation(),{control:l,handleSubmit:c}=j.useForm({defaultValues:{config:t}});return e.jsx(o.Box,{mx:"auto",children:e.jsxs("form",{onSubmit:c(s),children:[e.jsx(o.TextInput,{mb:n.spacing,size:n.size,required:!0,label:i("common.name"),value:r,readOnly:!0}),e.jsx(o.Divider,{label:i("datasource.connection_info"),labelPosition:"center"}),e.jsx(j.Controller,{name:"config.host",control:l,render:({field:u})=>e.jsx(o.TextInput,{mb:n.spacing,size:n.size,required:!0,label:i("datasource.http.host"),sx:{flexGrow:1},...u})}),e.jsxs(o.Group,{grow:!0,children:[e.jsx(j.Controller,{name:"config.processing.pre",control:l,render:({field:u})=>e.jsx(we,{label:i("datasource.http.processing.pre.label"),modalTitle:i("datasource.http.processing.pre.description"),defaultValue:ft.pre,...u,styles:n})}),e.jsx(j.Controller,{name:"config.processing.post",control:l,render:({field:u})=>e.jsx(we,{label:i("datasource.http.processing.post.label"),modalTitle:i("datasource.http.processing.post.description"),defaultValue:ft.post,...u,styles:n})})]}),e.jsx(o.Group,{justify:"flex-end",mt:n.spacing,children:e.jsx(W,{size:n.button.size})})]})})}function In({dataSource:r,postSubmit:t,styles:s=V}){const{t:n}=y.useTranslation(),i=async({config:l})=>{T.showNotification({id:"for-updating",title:n("common.state.pending"),message:n("datasource.state.updating"),loading:!0,autoClose:!1});try{console.log({config:l}),await R.datasource.update(r.id,l),T.updateNotification({id:"for-updating",title:n("common.state.successful"),message:n("datasource.state.updated"),color:"green",loading:!1,autoClose:!0}),t()}catch(c){T.updateNotification({id:"for-updating",title:n("common.state.failed"),message:c.message,color:"red",loading:!1,autoClose:!0})}};return r.config?e.jsx(o.Box,{mx:"auto",children:e.jsx(Mn,{name:r.key,config:r.config,submit:i,styles:s})}):(console.error(new Error("unexpected empty config of a http datasource")),null)}function Rn({dataSource:r,onSuccess:t,styles:s=V}){const{t:n}=y.useTranslation(),[i,l]=P.useState(!1),c=()=>l(!0),u=()=>l(!1),d=()=>{t(),u()};return r.is_preset?e.jsx(o.Tooltip,{withArrow:!0,events:{hover:!0,touch:!1,focus:!1},label:n("datasource.cant_edit.preset"),children:e.jsx(o.Button,{size:s.button.size,color:"gray",variant:"light",leftSection:e.jsx(A.IconLock,{size:16}),sx:{transform:"none !important"},children:n("common.actions.edit")})}):r.type!=="http"&&r.type!=="merico_metric_system"?e.jsx(o.Tooltip,{withArrow:!0,events:{hover:!0,touch:!1,focus:!1},label:n("datasource.cant_edit.db"),children:e.jsx(o.Button,{size:s.button.size,color:"gray",variant:"light",leftSection:e.jsx(A.IconEdit,{size:16}),sx:{transform:"none !important"},children:n("common.actions.edit")})}):e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:i,onClose:()=>l(!1),title:n("datasource.edit"),trapFocus:!0,onDragStart:p=>{p.stopPropagation()},children:e.jsx(In,{dataSource:r,postSubmit:d,styles:s})}),e.jsx(o.Button,{size:s.button.size,color:"blue",onClick:c,leftSection:e.jsx(A.IconEdit,{size:16}),children:n("common.actions.edit")})]})}const qn=be("DataSourceList",({styles:r=V})=>{const{t}=y.useTranslation(),{data:s=[],loading:n,refresh:i}=K.useRequest(async()=>{const{data:l}=await R.datasource.list();return l},{refreshDeps:[]});return e.jsxs(e.Fragment,{children:[e.jsx(o.Group,{pt:r.spacing,justify:"flex-end",children:e.jsx(ct,{onSuccess:i})}),e.jsxs(o.Box,{mt:r.spacing,sx:{position:"relative"},children:[e.jsx(o.LoadingOverlay,{visible:n}),e.jsxs(o.Table,{horizontalSpacing:r.spacing,verticalSpacing:r.spacing,fz:r.size,highlightOnHover:!0,children:[e.jsx(o.Table.Thead,{children:e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Th,{children:t("common.type")}),e.jsx(o.Table.Th,{children:t("common.name")}),e.jsx(o.Table.Th,{children:t("common.action")})]})}),e.jsx(o.Table.Tbody,{children:s.map(l=>{const{id:c,key:u,type:d,is_preset:p}=l,h=d==="merico_metric_system";return e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Td,{width:230,children:e.jsx($n,{type:d})}),e.jsx(o.Table.Td,{children:u}),e.jsx(o.Table.Td,{width:400,children:e.jsxs(o.Group,{justify:"flex-start",children:[e.jsx(Rn,{dataSource:l,onSuccess:i,styles:r}),e.jsx(dt,{isProtected:p||h,id:c,name:u,onSuccess:i,styles:r})]})})]},u)})})]})]})]})}),Ln=({option:r,...t})=>{const{label:s,value:n,description:i}=r;return e.jsxs(o.Stack,{gap:2,...t,children:[e.jsx(o.Text,{size:"sm",children:s}),e.jsx(o.Text,{size:"xs",c:"dimmed",className:"role-description",children:i})]})},Le=P.forwardRef(({styles:r,value:t,onChange:s},n)=>{const{t:i}=y.useTranslation(),{data:l=[],loading:c}=K.useRequest(async()=>(await R.role.list()).map(d=>({label:d.id,value:d.id,description:d.description,disabled:d.id==="SUPERADMIN"})),{refreshDeps:[]});return e.jsx(o.Select,{ref:n,mb:r.spacing,size:r.size,required:!0,label:i("role.label"),renderOption:Ln,data:l,disabled:c,styles:()=>({item:{"&[data-selected]":{"&, &:hover":{".role-description":{color:"rgba(255,255,255,.8)"}}}}}),value:t,onChange:u=>u!==null&&s(u),comboboxProps:{withinPortal:!0},maxDropdownHeight:500})}),H={size:"sm",spacing:"md",button:{size:"xs"}};function kn({postSubmit:r,styles:t=H,initialRoleID:s}){const{t:n}=y.useTranslation(),{control:i,handleSubmit:l}=j.useForm({defaultValues:{name:"",email:"",role_id:s,password:""}}),c=async({name:u,email:d,password:p,role_id:h})=>{try{T.showNotification({id:"for-creating",title:n("common.state.pending"),message:n("account.state.adding"),loading:!0,autoClose:!1}),await R.account.create(u,d,p,h),T.updateNotification({id:"for-creating",title:n("common.state.successful"),message:n("account.state.added"),color:"green",autoClose:!0,loading:!1}),r()}catch(b){T.updateNotification({id:"for-creating",title:n("common.state.failed"),message:b.message,color:"red",autoClose:!0,loading:!1})}};return e.jsx(o.Box,{mx:"auto",mb:10,children:e.jsxs("form",{onSubmit:l(c),children:[e.jsx(j.Controller,{name:"name",control:i,render:({field:u})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:n("account.username"),...u})}),e.jsx(j.Controller,{name:"email",control:i,render:({field:u})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:n("account.email"),...u})}),e.jsx(j.Controller,{name:"password",control:i,render:({field:u})=>e.jsx(o.PasswordInput,{mb:t.spacing,size:t.size,required:!0,label:n("account.password"),description:n("account.password_hint"),...u})}),e.jsx(j.Controller,{name:"role_id",control:i,render:({field:u})=>e.jsx(Le,{styles:t,...u})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}function pt({onSuccess:r,styles:t=H,initialRoleID:s}){const{t:n}=y.useTranslation(),[i,l]=P.useState(!1),c=()=>l(!0),u=()=>l(!1),d=()=>{r(),u()};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:i,onClose:()=>l(!1),title:n("account.add"),trapFocus:!0,onDragStart:p=>{p.stopPropagation()},children:e.jsx(kn,{postSubmit:d,styles:t,initialRoleID:s})}),e.jsx(o.Button,{size:t.button.size,onClick:c,leftSection:e.jsx(A.IconPlaylistAdd,{size:20}),children:n("account.add")})]})}function mt({id:r,name:t,onSuccess:s,styles:n=H}){const{t:i}=y.useTranslation(),l=ae.useModals(),c=async()=>{if(r){T.showNotification({id:"for-deleting",title:i("common.state.pending"),message:i("account.state.deleting"),loading:!0,autoClose:!1});try{await R.account.delete(r),T.updateNotification({id:"for-deleting",title:i("common.state.successful"),message:i("account.state.deleted",{name:t}),color:"green",autoClose:!0,loading:!1}),s()}catch(d){T.updateNotification({id:"for-deleting",title:i("common.state.failed"),message:d.message,color:"red",autoClose:!0,loading:!1})}}},u=()=>l.openConfirmModal({title:i("account.delete"),labels:{confirm:i("common.actions.confirm"),cancel:i("common.actions.cancel")},onCancel:()=>console.log("Cancel"),onConfirm:c,cancelProps:{size:n.button.size},confirmProps:{color:"red",size:n.button.size}});return e.jsx(o.Button,{size:n.button.size,color:"red",onClick:u,leftSection:e.jsx(A.IconTrash,{size:20}),children:i("common.actions.delete")})}function Nn({id:r,name:t,email:s,role_id:n,postSubmit:i,styles:l=H}){const{t:c}=y.useTranslation(),{control:u,handleSubmit:d,watch:p}=j.useForm({defaultValues:{name:t,email:s,role_id:n,reset_password:!1,new_password:""}}),h=async({name:C,email:L,role_id:Y,reset_password:X,new_password:k})=>{try{T.showNotification({id:"for-updating",title:c("common.state.pending"),message:c("account.state.updating"),loading:!0,autoClose:!1}),await R.account.edit({id:r,name:C.trim(),email:L.trim(),role_id:Y,reset_password:X,new_password:k.trim()}),T.updateNotification({id:"for-updating",title:c("common.state.successful"),message:c("account.state.updated"),color:"green",autoClose:!0,loading:!1}),i()}catch(D){T.updateNotification({id:"for-updating",title:c("common.state.failed"),message:D.message,color:"red",autoClose:!0,loading:!1})}},[b,v]=p(["reset_password","new_password"]);return e.jsx(o.Box,{mx:"auto",mb:10,children:e.jsxs("form",{onSubmit:d(h),children:[e.jsx(j.Controller,{name:"name",control:u,render:({field:C})=>e.jsx(o.TextInput,{mb:l.spacing,size:l.size,required:!0,label:c("account.username"),...C})}),e.jsx(j.Controller,{name:"email",control:u,render:({field:C})=>e.jsx(o.TextInput,{mb:l.spacing,size:l.size,required:!0,label:c("account.email"),...C})}),e.jsx(j.Controller,{name:"role_id",control:u,render:({field:C})=>e.jsx(Le,{styles:l,...C})}),e.jsx(o.Divider,{my:20,variant:"dashed",label:"",labelPosition:"center"}),e.jsx(j.Controller,{name:"reset_password",control:u,render:({field:C})=>e.jsx(o.Switch,{mb:l.spacing,size:l.size,label:c("account.reset_password"),checked:C.value,onChange:L=>C.onChange(L.currentTarget.checked),styles:{label:{verticalAlign:"middle"}}})}),b&&e.jsx(j.Controller,{name:"new_password",control:u,render:({field:C})=>e.jsx(o.PasswordInput,{autoComplete:"off",mb:l.spacing,size:l.size,required:!0,description:c("account.password_hint"),label:c("account.new_password"),...C})}),e.jsx(o.Group,{justify:"flex-end",mt:l.spacing,children:e.jsx(W,{size:l.button.size})})]})})}function Fn({account:r,onSuccess:t,styles:s=H}){const{t:n}=y.useTranslation(),[i,l]=P.useState(!1),c=()=>l(!0),u=()=>l(!1),d=()=>{t(),u()};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:i,onClose:()=>l(!1),title:n("account.editing_xx",{name:r.name}),trapFocus:!0,onDragStart:p=>{p.stopPropagation()},children:e.jsx(Nn,{...r,postSubmit:d,styles:s})}),e.jsx(o.Button,{size:s.button.size,onClick:c,leftSection:e.jsx(A.IconEdit,{size:20}),children:n("common.actions.edit")})]})}const Bn=be("AccountList",({styles:r=H})=>{var u;const{t}=y.useTranslation(),{data:s=[],loading:n,refresh:i}=K.useRequest(async()=>{const{data:d}=await R.account.list();return d},{refreshDeps:[]}),{data:l=[],loading:c}=K.useRequest(async()=>(await R.role.list()).map(p=>({label:p.id,value:p.id,description:p.description,disabled:p.id==="SUPERADMIN"})),{refreshDeps:[]});return e.jsxs(e.Fragment,{children:[e.jsx(o.Group,{pt:r.spacing,justify:"flex-end",children:e.jsx(pt,{onSuccess:i,initialRoleID:((u=l==null?void 0:l[0])==null?void 0:u.value)??"INACTIVE"})}),e.jsxs(o.Box,{mt:r.spacing,sx:{position:"relative"},children:[e.jsx(o.LoadingOverlay,{visible:n||c}),e.jsxs(o.Table,{horizontalSpacing:r.spacing,verticalSpacing:r.spacing,fz:r.size,highlightOnHover:!0,children:[e.jsx(o.Table.Thead,{children:e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Th,{children:t("account.username")}),e.jsx(o.Table.Th,{children:t("account.email")}),e.jsx(o.Table.Th,{children:t("role.label")}),e.jsx(o.Table.Th,{children:t("common.action")})]})}),e.jsx(o.Table.Tbody,{children:s.map(d=>{const{id:p,name:h,email:b,role_id:v}=d;return e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Td,{width:200,children:h}),e.jsx(o.Table.Td,{width:200,children:b}),e.jsx(o.Table.Td,{width:200,children:v}),e.jsx(o.Table.Td,{width:200,children:e.jsxs(o.Group,{justify:"flex-start",children:[e.jsx(Fn,{account:d,onSuccess:i}),e.jsx(mt,{id:p,name:h,onSuccess:i})]})})]},p)})})]})]})]})});function Un({postSubmit:r,styles:t=H}){const{t:s}=y.useTranslation(),{control:n,handleSubmit:i}=j.useForm({defaultValues:{name:"",password:""}}),l=async({name:c,password:u})=>{try{T.showNotification({id:"for-login",title:s("common.state.pending"),message:s("account.state.logging_in"),loading:!0,autoClose:!1});const d=await R.account.login(c.trim(),u.trim());window.localStorage.setItem("token",d.token),T.updateNotification({id:"for-login",title:s("common.state.successful"),message:s("account.state.logged_in"),color:"green",autoClose:!0,loading:!1}),r(d)}catch(d){T.updateNotification({id:"for-login",title:s("common.state.failed"),message:d.message,color:"red",autoClose:!0,loading:!1})}};return e.jsx(o.Box,{mx:"auto",children:e.jsxs("form",{onSubmit:i(l),children:[e.jsx(j.Controller,{name:"name",control:n,render:({field:c})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:s("account.username"),...c})}),e.jsx(j.Controller,{name:"password",control:n,render:({field:c})=>e.jsx(o.PasswordInput,{mb:t.spacing,size:t.size,required:!0,label:s("account.password"),...c})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}const Yn=be("Login",({styles:r=H,onSuccess:t})=>e.jsx(e.Fragment,{children:e.jsx(o.Box,{mt:r.spacing,sx:{position:"relative"},children:e.jsx(Un,{styles:r,postSubmit:t})})})),De={size:"sm",spacing:"md",button:{size:"xs"}};function Vn({postSubmit:r,styles:t=De,initialRoleID:s}){const{t:n}=y.useTranslation(),{control:i,handleSubmit:l}=j.useForm({defaultValues:{name:"",role_id:s}}),c=async({name:u,role_id:d})=>{try{T.showNotification({id:"for-creating",title:n("common.state.pending"),message:n("api_key.state.adding"),loading:!0,autoClose:!1});const{app_id:p,app_secret:h}=await R.api_key.create(u,d);T.updateNotification({id:"for-creating",title:n("common.state.successful"),message:n("api_key.state.added"),color:"green",autoClose:!0,loading:!1}),r(p,h)}catch(p){T.updateNotification({id:"for-creating",title:n("common.state.failed"),message:p.message,color:"red",autoClose:!0,loading:!1})}};return e.jsx(o.Box,{mx:"auto",mb:10,children:e.jsxs("form",{onSubmit:l(c),children:[e.jsx(j.Controller,{name:"name",control:i,render:({field:u})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:n("common.name"),...u})}),e.jsx(j.Controller,{name:"role_id",control:i,render:({field:u})=>e.jsx(Le,{styles:t,...u})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}function ht({onSuccess:r,styles:t=De,initialRoleID:s}){const{t:n}=y.useTranslation(),i=ae.useModals(),[l,c]=P.useState(!1),u=()=>c(!0),d=()=>c(!1),p=(h,b)=>{d(),i.openModal({title:n("api_key.save.title"),children:e.jsxs(o.Stack,{children:[e.jsx(o.Text,{size:"sm",c:"dimmed",children:n("api_key.save.warn")}),e.jsx(o.TextInput,{defaultValue:h,disabled:!0,label:n("api_key.app_id"),styles:{input:{cursor:"text !important"}}}),e.jsx(o.TextInput,{defaultValue:b,disabled:!0,label:n("api_key.app_secret"),styles:{input:{cursor:"text !important"}}}),e.jsx(o.Button,{size:"sm",onClick:()=>{ae.closeAllModals()},children:n("api_key.save.saved")})]}),onClose:()=>{r()}})};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:l,onClose:()=>c(!1),title:n("api_key.add"),trapFocus:!0,onDragStart:h=>{h.stopPropagation()},children:e.jsx(Vn,{postSubmit:p,styles:t,initialRoleID:s})}),e.jsx(o.Button,{size:t.button.size,onClick:u,leftSection:e.jsx(A.IconPlaylistAdd,{size:20}),children:n("api_key.add")})]})}function gt({id:r,name:t,onSuccess:s,styles:n=De}){const{t:i}=y.useTranslation(),l=ae.useModals(),c=async()=>{if(r){T.showNotification({id:"for-deleting",title:i("common.state.pending"),message:i("global_sql_snippet.state.deleting"),loading:!0,autoClose:!1});try{await R.api_key.delete(r),T.updateNotification({id:"for-deleting",title:i("common.state.successful"),message:i("global_sql_snippet.state.deleted",{name:t}),color:"green",autoClose:!0,loading:!1}),s()}catch(d){T.updateNotification({id:"for-deleting",title:i("common.state.failed"),message:d.message,color:"red",autoClose:!0,loading:!1})}}},u=()=>l.openConfirmModal({title:i("api_key.delete"),labels:{confirm:i("common.actions.confirm"),cancel:i("common.actions.cancel")},onCancel:()=>console.log("Cancel"),onConfirm:c,cancelProps:{size:n.button.size},confirmProps:{color:"red",size:n.button.size}});return e.jsx(o.Button,{size:n.button.size,color:"red",onClick:u,leftSection:e.jsx(A.IconTrash,{size:20}),children:i("common.actions.delete")})}const Gn=be("APIKeyList",({styles:r=De})=>{var u;const{t}=y.useTranslation(),{data:s=[],loading:n,refresh:i}=K.useRequest(async()=>{const{data:d}=await R.api_key.list();return d},{refreshDeps:[]}),{data:l=[],loading:c}=K.useRequest(async()=>(await R.role.list()).map(p=>({label:p.id,value:p.id,description:p.description,disabled:p.id==="SUPERADMIN"})),{refreshDeps:[]});return e.jsxs(e.Fragment,{children:[e.jsx(o.Group,{pt:r.spacing,justify:"flex-end",children:e.jsx(ht,{onSuccess:i,initialRoleID:((u=l==null?void 0:l[0])==null?void 0:u.value)??"INACTIVE"})}),e.jsxs(o.Box,{mt:r.spacing,sx:{position:"relative"},children:[e.jsx(o.LoadingOverlay,{visible:n||c}),e.jsxs(o.Table,{horizontalSpacing:r.spacing,verticalSpacing:r.spacing,fz:r.size,highlightOnHover:!0,children:[e.jsx(o.Table.Thead,{children:e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Th,{children:t("common.name")}),e.jsx(o.Table.Th,{children:t("api_key.app_id")}),e.jsx(o.Table.Th,{children:t("role.label")}),e.jsx(o.Table.Th,{children:t("common.action")})]})}),e.jsx(o.Table.Tbody,{children:s.map(d=>{const{id:p,name:h,app_id:b,role_id:v}=d;return e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Td,{width:200,children:h}),e.jsx(o.Table.Td,{width:200,children:b}),e.jsx(o.Table.Td,{width:200,children:v}),e.jsx(o.Table.Td,{width:200,children:e.jsx(o.Group,{justify:"flex-start",children:e.jsx(gt,{id:p,name:h,onSuccess:i})})})]},p)})})]})]})]})}),ue={size:"sm",spacing:"md",button:{size:"xs"}};function Wn({postSubmit:r,styles:t=ue}){const{t:s}=y.useTranslation(),{control:n,handleSubmit:i}=j.useForm({defaultValues:{id:"",content:""}}),l=async c=>{try{T.showNotification({id:"for-creating",title:s("common.state.pending"),message:s("global_sql_snippet.state.adding"),loading:!0,autoClose:!1}),await R.sql_snippet.create(c),T.updateNotification({id:"for-creating",title:s("common.state.successful"),message:s("global_sql_snippet.state.added"),color:"green",autoClose:!0}),r()}catch(u){T.updateNotification({id:"for-creating",title:s("common.state.failed"),message:u.message,color:"red",autoClose:!0})}};return e.jsx(o.Box,{mx:"auto",children:e.jsxs("form",{onSubmit:i(l),children:[e.jsx(j.Controller,{name:"id",control:n,render:({field:c})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:s("common.name"),placeholder:s("common.name_placeholder"),...c})}),e.jsx(j.Controller,{name:"content",control:n,render:({field:c})=>e.jsxs(o.Stack,{gap:4,children:[e.jsx(o.Text,{size:"14px",fw:500,c:"#212529",sx:{cursor:"default"},children:s("global_sql_snippet.content")}),e.jsx(ut,{height:"600px",...c})]})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}function xt({onSuccess:r,styles:t=ue}){const{t:s}=y.useTranslation(),[n,i]=P.useState(!1),l=()=>i(!0),c=()=>i(!1),u=()=>{c(),r()};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:n,onClose:()=>i(!1),title:s("global_sql_snippet.add"),trapFocus:!0,onDragStart:d=>{d.stopPropagation()},size:"80vw",children:e.jsx(Wn,{postSubmit:u,styles:t})}),e.jsx(o.Button,{size:t.button.size,onClick:l,leftSection:e.jsx(A.IconPlaylistAdd,{size:18}),children:s("global_sql_snippet.add")})]})}function Kn({postSubmit:r,styles:t=ue,id:s,content:n}){const{t:i}=y.useTranslation(),{control:l,handleSubmit:c}=j.useForm({defaultValues:{id:s,content:n}}),u=async d=>{try{T.showNotification({id:"for-updating",title:i("common.state.pending"),message:i("global_sql_snippet.state.updating"),loading:!0,autoClose:!1}),await R.sql_snippet.update(d),T.updateNotification({id:"for-updating",title:i("common.state.successful"),message:i("global_sql_snippet.state.updated"),color:"green",autoClose:!0}),r()}catch(p){T.updateNotification({id:"for-updating",title:i("common.state.failed"),message:p.message,color:"red",autoClose:!0})}};return e.jsx(o.Box,{mx:"auto",children:e.jsxs("form",{onSubmit:c(u),children:[e.jsx(j.Controller,{name:"id",control:l,render:({field:d})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:i("common.name"),placeholder:i("common.name_placeholder"),...d})}),e.jsx(j.Controller,{name:"content",control:l,render:({field:d})=>e.jsxs(o.Stack,{gap:4,children:[e.jsx(o.Text,{size:"14px",fw:500,c:"#212529",sx:{cursor:"default"},children:i("global_sql_snippet.content")}),e.jsx(ut,{height:"600px",...d})]})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}function bt({onSuccess:r,styles:t=ue,...s}){const{t:n}=y.useTranslation(),[i,l]=P.useState(!1),c=()=>l(!0),u=()=>l(!1),d=()=>{u(),r()};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:i,onClose:()=>l(!1),title:n("global_sql_snippet.edit"),trapFocus:!0,onDragStart:p=>{p.stopPropagation()},size:"80vw",children:e.jsx(Kn,{postSubmit:d,styles:t,...s})}),e.jsx(o.Button,{size:t.button.size,onClick:c,leftSection:e.jsx(A.IconEdit,{size:18}),children:n("common.actions.edit")})]})}function vt({id:r,onSuccess:t,styles:s=ue}){const{t:n}=y.useTranslation(),i=ae.useModals(),l=async()=>{if(r){T.showNotification({id:"for-deleting",title:n("common.state.pending"),message:n("global_sql_snippet.state.deleting"),loading:!0,autoClose:!1});try{await R.sql_snippet.delete(r),T.updateNotification({id:"for-deleting",title:n("common.state.successful"),message:n("global_sql_snippet.state.deleted",{name:r}),color:"green",autoClose:!0}),t()}catch(u){T.updateNotification({id:"for-deleting",title:n("common.state.failed"),message:u.message,color:"red",autoClose:!0})}}},c=()=>i.openConfirmModal({title:n("global_sql_snippet.delete"),labels:{confirm:n("common.actions.confirm"),cancel:n("common.actions.cancel")},onCancel:()=>console.log("Cancel"),onConfirm:l,cancelProps:{size:s.button.size},confirmProps:{color:"red",size:s.button.size}});return e.jsx(o.Button,{size:s.button.size,color:"red",onClick:c,leftSection:e.jsx(A.IconTrash,{size:20}),children:n("common.actions.edit")})}function Qn({content:r}){return e.jsxs(o.HoverCard,{width:"60vw",shadow:"md",children:[e.jsx(o.HoverCard.Target,{children:e.jsx(o.ActionIcon,{variant:"subtle",size:16,children:e.jsx(A.IconEye,{})})}),e.jsx(o.HoverCard.Dropdown,{children:e.jsx(Kt.CodeHighlight,{code:r,language:"sql",withCopyButton:!1})})]})}const Jn=be("DataSourceList",({styles:r=ue})=>{const{t}=y.useTranslation(),{data:s=[],loading:n,refresh:i}=K.useRequest(async()=>{const{data:l}=await R.sql_snippet.list({pagination:{page:1,pagesize:10}});return l},{refreshDeps:[]});return e.jsxs(e.Fragment,{children:[e.jsxs(o.Group,{pt:r.spacing,justify:"space-between",children:[e.jsx(o.Alert,{children:t("global_sql_snippet.description")}),e.jsx(xt,{onSuccess:i})]}),e.jsxs(o.Box,{mt:r.spacing,sx:{position:"relative"},children:[e.jsx(o.LoadingOverlay,{visible:n}),e.jsxs(o.Table,{horizontalSpacing:r.spacing,verticalSpacing:r.spacing,fz:r.size,highlightOnHover:!0,children:[e.jsx(o.Table.Thead,{children:e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Th,{children:t("common.name")}),e.jsx(o.Table.Th,{}),e.jsx(o.Table.Th,{children:t("common.created_at")}),e.jsx(o.Table.Th,{children:t("common.updated_at")}),e.jsx(o.Table.Th,{children:t("common.action")})]})}),e.jsx(o.Table.Tbody,{children:s.map(l=>{const{id:c,content:u,create_time:d,update_time:p}=l;return e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Td,{children:c}),e.jsx(o.Table.Td,{width:50,children:e.jsx(Qn,{content:u})}),e.jsx(o.Table.Td,{width:200,children:d}),e.jsx(o.Table.Td,{width:200,children:p}),e.jsx(o.Table.Td,{width:400,children:e.jsxs(o.Group,{justify:"flex-start",children:[e.jsx(bt,{...l,onSuccess:i}),e.jsx(vt,{id:c,onSuccess:i})]})})]},c)})})]})]})]})}),Hn=()=>Promise.resolve().then(()=>Xn).then(({version:r})=>(console.log(`[@devtable/settings-form] version: ${r}`),r)),Xn=Object.freeze(Object.defineProperty({__proto__:null,version:"14.60.10"},Symbol.toStringTag,{value:"Module"}));x.APIClient=O,x.APIKeyList=Gn,x.AccountList=Bn,x.AddAPIKey=ht,x.AddAccount=pt,x.AddDataSource=ct,x.AddSQLSnippet=xt,x.DataSourceList=qn,x.DefaultApiClient=Xe,x.DeleteAPIKey=gt,x.DeleteAccount=mt,x.DeleteDataSource=dt,x.DeleteSQLSnippet=vt,x.FacadeApiClient=Ze,x.Login=Yn,x.SQLSnippetList=Jn,x.UpdateSQLSnippet=bt,x.configureAPIClient=tt,x.facadeApiClient=et,x.getVersion=Hn,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
36
+ `)};function Mn({name:r,config:t,submit:s,styles:n=V}){const{t:i}=y.useTranslation(),{control:l,handleSubmit:c}=j.useForm({defaultValues:{config:t}});return e.jsx(o.Box,{mx:"auto",children:e.jsxs("form",{onSubmit:c(s),children:[e.jsx(o.TextInput,{mb:n.spacing,size:n.size,required:!0,label:i("common.name"),value:r,readOnly:!0}),e.jsx(o.Divider,{label:i("datasource.connection_info"),labelPosition:"center"}),e.jsx(j.Controller,{name:"config.host",control:l,render:({field:u})=>e.jsx(o.TextInput,{mb:n.spacing,size:n.size,required:!0,label:i("datasource.http.host"),sx:{flexGrow:1},...u})}),e.jsxs(o.Group,{grow:!0,children:[e.jsx(j.Controller,{name:"config.processing.pre",control:l,render:({field:u})=>e.jsx(we,{label:i("datasource.http.processing.pre.label"),modalTitle:i("datasource.http.processing.pre.description"),defaultValue:ft.pre,...u,styles:n})}),e.jsx(j.Controller,{name:"config.processing.post",control:l,render:({field:u})=>e.jsx(we,{label:i("datasource.http.processing.post.label"),modalTitle:i("datasource.http.processing.post.description"),defaultValue:ft.post,...u,styles:n})})]}),e.jsx(o.Group,{justify:"flex-end",mt:n.spacing,children:e.jsx(W,{size:n.button.size})})]})})}function In({dataSource:r,postSubmit:t,styles:s=V}){const{t:n}=y.useTranslation(),i=async({config:l})=>{T.showNotification({id:"for-updating",title:n("common.state.pending"),message:n("datasource.state.updating"),loading:!0,autoClose:!1});try{console.log({config:l}),await R.datasource.update(r.id,l),T.updateNotification({id:"for-updating",title:n("common.state.successful"),message:n("datasource.state.updated"),color:"green",loading:!1,autoClose:!0}),t()}catch(c){T.updateNotification({id:"for-updating",title:n("common.state.failed"),message:c.message,color:"red",loading:!1,autoClose:!0})}};return r.config?e.jsx(o.Box,{mx:"auto",children:e.jsx(Mn,{name:r.key,config:r.config,submit:i,styles:s})}):(console.error(new Error("unexpected empty config of a http datasource")),null)}function Rn({dataSource:r,onSuccess:t,styles:s=V}){const{t:n}=y.useTranslation(),[i,l]=P.useState(!1),c=()=>l(!0),u=()=>l(!1),d=()=>{t(),u()};return r.is_preset?e.jsx(o.Tooltip,{withArrow:!0,events:{hover:!0,touch:!1,focus:!1},label:n("datasource.cant_edit.preset"),children:e.jsx(o.Button,{size:s.button.size,color:"gray",variant:"light",leftSection:e.jsx(A.IconLock,{size:16}),sx:{transform:"none !important"},children:n("common.actions.edit")})}):r.type!=="http"&&r.type!=="merico_metric_system"?e.jsx(o.Tooltip,{withArrow:!0,events:{hover:!0,touch:!1,focus:!1},label:n("datasource.cant_edit.db"),children:e.jsx(o.Button,{size:s.button.size,color:"gray",variant:"light",leftSection:e.jsx(A.IconEdit,{size:16}),sx:{transform:"none !important"},children:n("common.actions.edit")})}):e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:i,onClose:()=>l(!1),title:n("datasource.edit"),trapFocus:!0,onDragStart:p=>{p.stopPropagation()},children:e.jsx(In,{dataSource:r,postSubmit:d,styles:s})}),e.jsx(o.Button,{size:s.button.size,color:"blue",onClick:c,leftSection:e.jsx(A.IconEdit,{size:16}),children:n("common.actions.edit")})]})}const qn=be("DataSourceList",({styles:r=V})=>{const{t}=y.useTranslation(),{data:s=[],loading:n,refresh:i}=K.useRequest(async()=>{const{data:l}=await R.datasource.list();return l},{refreshDeps:[]});return e.jsxs(e.Fragment,{children:[e.jsx(o.Group,{pt:r.spacing,justify:"flex-end",children:e.jsx(ct,{onSuccess:i})}),e.jsxs(o.Box,{mt:r.spacing,sx:{position:"relative"},children:[e.jsx(o.LoadingOverlay,{visible:n}),e.jsxs(o.Table,{horizontalSpacing:r.spacing,verticalSpacing:r.spacing,fz:r.size,highlightOnHover:!0,children:[e.jsx(o.Table.Thead,{children:e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Th,{children:t("common.type")}),e.jsx(o.Table.Th,{children:t("common.name")}),e.jsx(o.Table.Th,{children:t("common.action")})]})}),e.jsx(o.Table.Tbody,{children:s.map(l=>{const{id:c,key:u,type:d,is_preset:p}=l,h=d==="merico_metric_system";return e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Td,{width:230,children:e.jsx($n,{type:d})}),e.jsx(o.Table.Td,{children:u}),e.jsx(o.Table.Td,{width:400,children:e.jsxs(o.Group,{justify:"flex-start",children:[e.jsx(Rn,{dataSource:l,onSuccess:i,styles:r}),e.jsx(dt,{isProtected:p||h,id:c,name:u,onSuccess:i,styles:r})]})})]},u)})})]})]})]})}),Ln=({option:r,...t})=>{const{label:s,value:n,description:i}=r;return e.jsxs(o.Stack,{gap:2,...t,children:[e.jsx(o.Text,{size:"sm",children:s}),e.jsx(o.Text,{size:"xs",c:"dimmed",className:"role-description",children:i})]})},Le=P.forwardRef(({styles:r,value:t,onChange:s},n)=>{const{t:i}=y.useTranslation(),{data:l=[],loading:c}=K.useRequest(async()=>(await R.role.list()).map(d=>({label:d.id,value:d.id,description:d.description,disabled:d.id==="SUPERADMIN"})),{refreshDeps:[]});return e.jsx(o.Select,{ref:n,mb:r.spacing,size:r.size,required:!0,label:i("role.label"),renderOption:Ln,data:l,disabled:c,styles:()=>({item:{"&[data-selected]":{"&, &:hover":{".role-description":{color:"rgba(255,255,255,.8)"}}}}}),value:t,onChange:u=>u!==null&&s(u),comboboxProps:{withinPortal:!0},maxDropdownHeight:500})}),H={size:"sm",spacing:"md",button:{size:"xs"}};function kn({postSubmit:r,styles:t=H,initialRoleID:s}){const{t:n}=y.useTranslation(),{control:i,handleSubmit:l}=j.useForm({defaultValues:{name:"",email:"",role_id:s,password:""}}),c=async({name:u,email:d,password:p,role_id:h})=>{try{T.showNotification({id:"for-creating",title:n("common.state.pending"),message:n("account.state.adding"),loading:!0,autoClose:!1}),await R.account.create(u,d,p,h),T.updateNotification({id:"for-creating",title:n("common.state.successful"),message:n("account.state.added"),color:"green",autoClose:!0,loading:!1}),r()}catch(b){T.updateNotification({id:"for-creating",title:n("common.state.failed"),message:b.message,color:"red",autoClose:!0,loading:!1})}};return e.jsx(o.Box,{mx:"auto",mb:10,children:e.jsxs("form",{onSubmit:l(c),children:[e.jsx(j.Controller,{name:"name",control:i,render:({field:u})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:n("account.username"),...u})}),e.jsx(j.Controller,{name:"email",control:i,render:({field:u})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:n("account.email"),...u})}),e.jsx(j.Controller,{name:"password",control:i,render:({field:u})=>e.jsx(o.PasswordInput,{mb:t.spacing,size:t.size,required:!0,label:n("account.password"),description:n("account.password_hint"),...u})}),e.jsx(j.Controller,{name:"role_id",control:i,render:({field:u})=>e.jsx(Le,{styles:t,...u})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}function pt({onSuccess:r,styles:t=H,initialRoleID:s}){const{t:n}=y.useTranslation(),[i,l]=P.useState(!1),c=()=>l(!0),u=()=>l(!1),d=()=>{r(),u()};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:i,onClose:()=>l(!1),title:n("account.add"),trapFocus:!0,onDragStart:p=>{p.stopPropagation()},children:e.jsx(kn,{postSubmit:d,styles:t,initialRoleID:s})}),e.jsx(o.Button,{size:t.button.size,onClick:c,leftSection:e.jsx(A.IconPlaylistAdd,{size:20}),children:n("account.add")})]})}function mt({id:r,name:t,onSuccess:s,styles:n=H}){const{t:i}=y.useTranslation(),l=ae.useModals(),c=async()=>{if(r){T.showNotification({id:"for-deleting",title:i("common.state.pending"),message:i("account.state.deleting"),loading:!0,autoClose:!1});try{await R.account.delete(r),T.updateNotification({id:"for-deleting",title:i("common.state.successful"),message:i("account.state.deleted",{name:t}),color:"green",autoClose:!0,loading:!1}),s()}catch(d){T.updateNotification({id:"for-deleting",title:i("common.state.failed"),message:d.message,color:"red",autoClose:!0,loading:!1})}}},u=()=>l.openConfirmModal({title:i("account.delete"),labels:{confirm:i("common.actions.confirm"),cancel:i("common.actions.cancel")},onCancel:()=>console.log("Cancel"),onConfirm:c,cancelProps:{size:n.button.size},confirmProps:{color:"red",size:n.button.size}});return e.jsx(o.Button,{size:n.button.size,color:"red",onClick:u,leftSection:e.jsx(A.IconTrash,{size:20}),children:i("common.actions.delete")})}function Nn({id:r,name:t,email:s,role_id:n,postSubmit:i,styles:l=H}){const{t:c}=y.useTranslation(),{control:u,handleSubmit:d,watch:p}=j.useForm({defaultValues:{name:t,email:s,role_id:n,reset_password:!1,new_password:""}}),h=async({name:C,email:L,role_id:Y,reset_password:X,new_password:k})=>{try{T.showNotification({id:"for-updating",title:c("common.state.pending"),message:c("account.state.updating"),loading:!0,autoClose:!1}),await R.account.edit({id:r,name:C.trim(),email:L.trim(),role_id:Y,reset_password:X,new_password:k.trim()}),T.updateNotification({id:"for-updating",title:c("common.state.successful"),message:c("account.state.updated"),color:"green",autoClose:!0,loading:!1}),i()}catch(D){T.updateNotification({id:"for-updating",title:c("common.state.failed"),message:D.message,color:"red",autoClose:!0,loading:!1})}},[b,v]=p(["reset_password","new_password"]);return e.jsx(o.Box,{mx:"auto",mb:10,children:e.jsxs("form",{onSubmit:d(h),children:[e.jsx(j.Controller,{name:"name",control:u,render:({field:C})=>e.jsx(o.TextInput,{mb:l.spacing,size:l.size,required:!0,label:c("account.username"),...C})}),e.jsx(j.Controller,{name:"email",control:u,render:({field:C})=>e.jsx(o.TextInput,{mb:l.spacing,size:l.size,required:!0,label:c("account.email"),...C})}),e.jsx(j.Controller,{name:"role_id",control:u,render:({field:C})=>e.jsx(Le,{styles:l,...C})}),e.jsx(o.Divider,{my:20,variant:"dashed",label:"",labelPosition:"center"}),e.jsx(j.Controller,{name:"reset_password",control:u,render:({field:C})=>e.jsx(o.Switch,{mb:l.spacing,size:l.size,label:c("account.reset_password"),checked:C.value,onChange:L=>C.onChange(L.currentTarget.checked),styles:{label:{verticalAlign:"middle"}}})}),b&&e.jsx(j.Controller,{name:"new_password",control:u,render:({field:C})=>e.jsx(o.PasswordInput,{autoComplete:"off",mb:l.spacing,size:l.size,required:!0,description:c("account.password_hint"),label:c("account.new_password"),...C})}),e.jsx(o.Group,{justify:"flex-end",mt:l.spacing,children:e.jsx(W,{size:l.button.size})})]})})}function Fn({account:r,onSuccess:t,styles:s=H}){const{t:n}=y.useTranslation(),[i,l]=P.useState(!1),c=()=>l(!0),u=()=>l(!1),d=()=>{t(),u()};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:i,onClose:()=>l(!1),title:n("account.editing_xx",{name:r.name}),trapFocus:!0,onDragStart:p=>{p.stopPropagation()},children:e.jsx(Nn,{...r,postSubmit:d,styles:s})}),e.jsx(o.Button,{size:s.button.size,onClick:c,leftSection:e.jsx(A.IconEdit,{size:20}),children:n("common.actions.edit")})]})}const Bn=be("AccountList",({styles:r=H})=>{var u;const{t}=y.useTranslation(),{data:s=[],loading:n,refresh:i}=K.useRequest(async()=>{const{data:d}=await R.account.list();return d},{refreshDeps:[]}),{data:l=[],loading:c}=K.useRequest(async()=>(await R.role.list()).map(p=>({label:p.id,value:p.id,description:p.description,disabled:p.id==="SUPERADMIN"})),{refreshDeps:[]});return e.jsxs(e.Fragment,{children:[e.jsx(o.Group,{pt:r.spacing,justify:"flex-end",children:e.jsx(pt,{onSuccess:i,initialRoleID:((u=l==null?void 0:l[0])==null?void 0:u.value)??"INACTIVE"})}),e.jsxs(o.Box,{mt:r.spacing,sx:{position:"relative"},children:[e.jsx(o.LoadingOverlay,{visible:n||c}),e.jsxs(o.Table,{horizontalSpacing:r.spacing,verticalSpacing:r.spacing,fz:r.size,highlightOnHover:!0,children:[e.jsx(o.Table.Thead,{children:e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Th,{children:t("account.username")}),e.jsx(o.Table.Th,{children:t("account.email")}),e.jsx(o.Table.Th,{children:t("role.label")}),e.jsx(o.Table.Th,{children:t("common.action")})]})}),e.jsx(o.Table.Tbody,{children:s.map(d=>{const{id:p,name:h,email:b,role_id:v}=d;return e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Td,{width:200,children:h}),e.jsx(o.Table.Td,{width:200,children:b}),e.jsx(o.Table.Td,{width:200,children:v}),e.jsx(o.Table.Td,{width:200,children:e.jsxs(o.Group,{justify:"flex-start",children:[e.jsx(Fn,{account:d,onSuccess:i}),e.jsx(mt,{id:p,name:h,onSuccess:i})]})})]},p)})})]})]})]})});function Un({postSubmit:r,styles:t=H}){const{t:s}=y.useTranslation(),{control:n,handleSubmit:i}=j.useForm({defaultValues:{name:"",password:""}}),l=async({name:c,password:u})=>{try{T.showNotification({id:"for-login",title:s("common.state.pending"),message:s("account.state.logging_in"),loading:!0,autoClose:!1});const d=await R.account.login(c.trim(),u.trim());window.localStorage.setItem("token",d.token),T.updateNotification({id:"for-login",title:s("common.state.successful"),message:s("account.state.logged_in"),color:"green",autoClose:!0,loading:!1}),r(d)}catch(d){T.updateNotification({id:"for-login",title:s("common.state.failed"),message:d.message,color:"red",autoClose:!0,loading:!1})}};return e.jsx(o.Box,{mx:"auto",children:e.jsxs("form",{onSubmit:i(l),children:[e.jsx(j.Controller,{name:"name",control:n,render:({field:c})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:s("account.username"),...c})}),e.jsx(j.Controller,{name:"password",control:n,render:({field:c})=>e.jsx(o.PasswordInput,{mb:t.spacing,size:t.size,required:!0,label:s("account.password"),...c})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}const Yn=be("Login",({styles:r=H,onSuccess:t})=>e.jsx(e.Fragment,{children:e.jsx(o.Box,{mt:r.spacing,sx:{position:"relative"},children:e.jsx(Un,{styles:r,postSubmit:t})})})),De={size:"sm",spacing:"md",button:{size:"xs"}};function Vn({postSubmit:r,styles:t=De,initialRoleID:s}){const{t:n}=y.useTranslation(),{control:i,handleSubmit:l}=j.useForm({defaultValues:{name:"",role_id:s}}),c=async({name:u,role_id:d})=>{try{T.showNotification({id:"for-creating",title:n("common.state.pending"),message:n("api_key.state.adding"),loading:!0,autoClose:!1});const{app_id:p,app_secret:h}=await R.api_key.create(u,d);T.updateNotification({id:"for-creating",title:n("common.state.successful"),message:n("api_key.state.added"),color:"green",autoClose:!0,loading:!1}),r(p,h)}catch(p){T.updateNotification({id:"for-creating",title:n("common.state.failed"),message:p.message,color:"red",autoClose:!0,loading:!1})}};return e.jsx(o.Box,{mx:"auto",mb:10,children:e.jsxs("form",{onSubmit:l(c),children:[e.jsx(j.Controller,{name:"name",control:i,render:({field:u})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:n("common.name"),...u})}),e.jsx(j.Controller,{name:"role_id",control:i,render:({field:u})=>e.jsx(Le,{styles:t,...u})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}function ht({onSuccess:r,styles:t=De,initialRoleID:s}){const{t:n}=y.useTranslation(),i=ae.useModals(),[l,c]=P.useState(!1),u=()=>c(!0),d=()=>c(!1),p=(h,b)=>{d(),i.openModal({title:n("api_key.save.title"),children:e.jsxs(o.Stack,{children:[e.jsx(o.Text,{size:"sm",c:"dimmed",children:n("api_key.save.warn")}),e.jsx(o.TextInput,{defaultValue:h,disabled:!0,label:n("api_key.app_id"),styles:{input:{cursor:"text !important"}}}),e.jsx(o.TextInput,{defaultValue:b,disabled:!0,label:n("api_key.app_secret"),styles:{input:{cursor:"text !important"}}}),e.jsx(o.Button,{size:"sm",onClick:()=>{ae.closeAllModals()},children:n("api_key.save.saved")})]}),onClose:()=>{r()}})};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:l,onClose:()=>c(!1),title:n("api_key.add"),trapFocus:!0,onDragStart:h=>{h.stopPropagation()},children:e.jsx(Vn,{postSubmit:p,styles:t,initialRoleID:s})}),e.jsx(o.Button,{size:t.button.size,onClick:u,leftSection:e.jsx(A.IconPlaylistAdd,{size:20}),children:n("api_key.add")})]})}function gt({id:r,name:t,onSuccess:s,styles:n=De}){const{t:i}=y.useTranslation(),l=ae.useModals(),c=async()=>{if(r){T.showNotification({id:"for-deleting",title:i("common.state.pending"),message:i("global_sql_snippet.state.deleting"),loading:!0,autoClose:!1});try{await R.api_key.delete(r),T.updateNotification({id:"for-deleting",title:i("common.state.successful"),message:i("global_sql_snippet.state.deleted",{name:t}),color:"green",autoClose:!0,loading:!1}),s()}catch(d){T.updateNotification({id:"for-deleting",title:i("common.state.failed"),message:d.message,color:"red",autoClose:!0,loading:!1})}}},u=()=>l.openConfirmModal({title:i("api_key.delete"),labels:{confirm:i("common.actions.confirm"),cancel:i("common.actions.cancel")},onCancel:()=>console.log("Cancel"),onConfirm:c,cancelProps:{size:n.button.size},confirmProps:{color:"red",size:n.button.size}});return e.jsx(o.Button,{size:n.button.size,color:"red",onClick:u,leftSection:e.jsx(A.IconTrash,{size:20}),children:i("common.actions.delete")})}const Gn=be("APIKeyList",({styles:r=De})=>{var u;const{t}=y.useTranslation(),{data:s=[],loading:n,refresh:i}=K.useRequest(async()=>{const{data:d}=await R.api_key.list();return d},{refreshDeps:[]}),{data:l=[],loading:c}=K.useRequest(async()=>(await R.role.list()).map(p=>({label:p.id,value:p.id,description:p.description,disabled:p.id==="SUPERADMIN"})),{refreshDeps:[]});return e.jsxs(e.Fragment,{children:[e.jsx(o.Group,{pt:r.spacing,justify:"flex-end",children:e.jsx(ht,{onSuccess:i,initialRoleID:((u=l==null?void 0:l[0])==null?void 0:u.value)??"INACTIVE"})}),e.jsxs(o.Box,{mt:r.spacing,sx:{position:"relative"},children:[e.jsx(o.LoadingOverlay,{visible:n||c}),e.jsxs(o.Table,{horizontalSpacing:r.spacing,verticalSpacing:r.spacing,fz:r.size,highlightOnHover:!0,children:[e.jsx(o.Table.Thead,{children:e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Th,{children:t("common.name")}),e.jsx(o.Table.Th,{children:t("api_key.app_id")}),e.jsx(o.Table.Th,{children:t("role.label")}),e.jsx(o.Table.Th,{children:t("common.action")})]})}),e.jsx(o.Table.Tbody,{children:s.map(d=>{const{id:p,name:h,app_id:b,role_id:v}=d;return e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Td,{width:200,children:h}),e.jsx(o.Table.Td,{width:200,children:b}),e.jsx(o.Table.Td,{width:200,children:v}),e.jsx(o.Table.Td,{width:200,children:e.jsx(o.Group,{justify:"flex-start",children:e.jsx(gt,{id:p,name:h,onSuccess:i})})})]},p)})})]})]})]})}),ue={size:"sm",spacing:"md",button:{size:"xs"}};function Wn({postSubmit:r,styles:t=ue}){const{t:s}=y.useTranslation(),{control:n,handleSubmit:i}=j.useForm({defaultValues:{id:"",content:""}}),l=async c=>{try{T.showNotification({id:"for-creating",title:s("common.state.pending"),message:s("global_sql_snippet.state.adding"),loading:!0,autoClose:!1}),await R.sql_snippet.create(c),T.updateNotification({id:"for-creating",title:s("common.state.successful"),message:s("global_sql_snippet.state.added"),color:"green",autoClose:!0}),r()}catch(u){T.updateNotification({id:"for-creating",title:s("common.state.failed"),message:u.message,color:"red",autoClose:!0})}};return e.jsx(o.Box,{mx:"auto",children:e.jsxs("form",{onSubmit:i(l),children:[e.jsx(j.Controller,{name:"id",control:n,render:({field:c})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:s("common.name"),placeholder:s("common.name_placeholder"),...c})}),e.jsx(j.Controller,{name:"content",control:n,render:({field:c})=>e.jsxs(o.Stack,{gap:4,children:[e.jsx(o.Text,{size:"14px",fw:500,c:"#212529",sx:{cursor:"default"},children:s("global_sql_snippet.content")}),e.jsx(ut,{height:"600px",...c})]})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}function xt({onSuccess:r,styles:t=ue}){const{t:s}=y.useTranslation(),[n,i]=P.useState(!1),l=()=>i(!0),c=()=>i(!1),u=()=>{c(),r()};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:n,onClose:()=>i(!1),title:s("global_sql_snippet.add"),trapFocus:!0,onDragStart:d=>{d.stopPropagation()},size:"80vw",children:e.jsx(Wn,{postSubmit:u,styles:t})}),e.jsx(o.Button,{size:t.button.size,onClick:l,leftSection:e.jsx(A.IconPlaylistAdd,{size:18}),children:s("global_sql_snippet.add")})]})}function Kn({postSubmit:r,styles:t=ue,id:s,content:n}){const{t:i}=y.useTranslation(),{control:l,handleSubmit:c}=j.useForm({defaultValues:{id:s,content:n}}),u=async d=>{try{T.showNotification({id:"for-updating",title:i("common.state.pending"),message:i("global_sql_snippet.state.updating"),loading:!0,autoClose:!1}),await R.sql_snippet.update(d),T.updateNotification({id:"for-updating",title:i("common.state.successful"),message:i("global_sql_snippet.state.updated"),color:"green",autoClose:!0}),r()}catch(p){T.updateNotification({id:"for-updating",title:i("common.state.failed"),message:p.message,color:"red",autoClose:!0})}};return e.jsx(o.Box,{mx:"auto",children:e.jsxs("form",{onSubmit:c(u),children:[e.jsx(j.Controller,{name:"id",control:l,render:({field:d})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:i("common.name"),placeholder:i("common.name_placeholder"),...d})}),e.jsx(j.Controller,{name:"content",control:l,render:({field:d})=>e.jsxs(o.Stack,{gap:4,children:[e.jsx(o.Text,{size:"14px",fw:500,c:"#212529",sx:{cursor:"default"},children:i("global_sql_snippet.content")}),e.jsx(ut,{height:"600px",...d})]})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}function bt({onSuccess:r,styles:t=ue,...s}){const{t:n}=y.useTranslation(),[i,l]=P.useState(!1),c=()=>l(!0),u=()=>l(!1),d=()=>{u(),r()};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:i,onClose:()=>l(!1),title:n("global_sql_snippet.edit"),trapFocus:!0,onDragStart:p=>{p.stopPropagation()},size:"80vw",children:e.jsx(Kn,{postSubmit:d,styles:t,...s})}),e.jsx(o.Button,{size:t.button.size,onClick:c,leftSection:e.jsx(A.IconEdit,{size:18}),children:n("common.actions.edit")})]})}function vt({id:r,onSuccess:t,styles:s=ue}){const{t:n}=y.useTranslation(),i=ae.useModals(),l=async()=>{if(r){T.showNotification({id:"for-deleting",title:n("common.state.pending"),message:n("global_sql_snippet.state.deleting"),loading:!0,autoClose:!1});try{await R.sql_snippet.delete(r),T.updateNotification({id:"for-deleting",title:n("common.state.successful"),message:n("global_sql_snippet.state.deleted",{name:r}),color:"green",autoClose:!0}),t()}catch(u){T.updateNotification({id:"for-deleting",title:n("common.state.failed"),message:u.message,color:"red",autoClose:!0})}}},c=()=>i.openConfirmModal({title:n("global_sql_snippet.delete"),labels:{confirm:n("common.actions.confirm"),cancel:n("common.actions.cancel")},onCancel:()=>console.log("Cancel"),onConfirm:l,cancelProps:{size:s.button.size},confirmProps:{color:"red",size:s.button.size}});return e.jsx(o.Button,{size:s.button.size,color:"red",onClick:c,leftSection:e.jsx(A.IconTrash,{size:20}),children:n("common.actions.edit")})}function Qn({content:r}){return e.jsxs(o.HoverCard,{width:"60vw",shadow:"md",children:[e.jsx(o.HoverCard.Target,{children:e.jsx(o.ActionIcon,{variant:"subtle",size:16,children:e.jsx(A.IconEye,{})})}),e.jsx(o.HoverCard.Dropdown,{children:e.jsx(Kt.CodeHighlight,{code:r,language:"sql",withCopyButton:!1})})]})}const Jn=be("DataSourceList",({styles:r=ue})=>{const{t}=y.useTranslation(),{data:s=[],loading:n,refresh:i}=K.useRequest(async()=>{const{data:l}=await R.sql_snippet.list({pagination:{page:1,pagesize:10}});return l},{refreshDeps:[]});return e.jsxs(e.Fragment,{children:[e.jsxs(o.Group,{pt:r.spacing,justify:"space-between",children:[e.jsx(o.Alert,{children:t("global_sql_snippet.description")}),e.jsx(xt,{onSuccess:i})]}),e.jsxs(o.Box,{mt:r.spacing,sx:{position:"relative"},children:[e.jsx(o.LoadingOverlay,{visible:n}),e.jsxs(o.Table,{horizontalSpacing:r.spacing,verticalSpacing:r.spacing,fz:r.size,highlightOnHover:!0,children:[e.jsx(o.Table.Thead,{children:e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Th,{children:t("common.name")}),e.jsx(o.Table.Th,{}),e.jsx(o.Table.Th,{children:t("common.created_at")}),e.jsx(o.Table.Th,{children:t("common.updated_at")}),e.jsx(o.Table.Th,{children:t("common.action")})]})}),e.jsx(o.Table.Tbody,{children:s.map(l=>{const{id:c,content:u,create_time:d,update_time:p}=l;return e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Td,{children:c}),e.jsx(o.Table.Td,{width:50,children:e.jsx(Qn,{content:u})}),e.jsx(o.Table.Td,{width:200,children:d}),e.jsx(o.Table.Td,{width:200,children:p}),e.jsx(o.Table.Td,{width:400,children:e.jsxs(o.Group,{justify:"flex-start",children:[e.jsx(bt,{...l,onSuccess:i}),e.jsx(vt,{id:c,onSuccess:i})]})})]},c)})})]})]})]})}),Hn=()=>Promise.resolve().then(()=>Xn).then(({version:r})=>(console.log(`[@devtable/settings-form] version: ${r}`),r)),Xn=Object.freeze(Object.defineProperty({__proto__:null,version:"14.60.11-0"},Symbol.toStringTag,{value:"Module"}));x.APIClient=O,x.APIKeyList=Gn,x.AccountList=Bn,x.AddAPIKey=ht,x.AddAccount=pt,x.AddDataSource=ct,x.AddSQLSnippet=xt,x.DataSourceList=qn,x.DefaultApiClient=Xe,x.DeleteAPIKey=gt,x.DeleteAccount=mt,x.DeleteDataSource=dt,x.DeleteSQLSnippet=vt,x.FacadeApiClient=Ze,x.Login=Yn,x.SQLSnippetList=Jn,x.UpdateSQLSnippet=bt,x.configureAPIClient=tt,x.facadeApiClient=et,x.getVersion=Hn,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
package/dist/stats.html CHANGED
@@ -4822,7 +4822,7 @@ var drawChart = (function (exports) {
4822
4822
  </script>
4823
4823
  <script>
4824
4824
  /*<!--*/
4825
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"settings-form.umd.js","children":[{"name":"\u0000/home/runner/work/table/table/node_modules/react","children":[{"uid":"4debcadf-1","name":"jsx-runtime.js?commonjs-module"},{"name":"cjs","children":[{"uid":"4debcadf-3","name":"react-jsx-runtime.production.min.js?commonjs-exports"},{"uid":"4debcadf-7","name":"react-jsx-runtime.development.js?commonjs-exports"}]}]},{"name":"home/runner/work/table/table","children":[{"name":"node_modules","children":[{"name":"react","children":[{"name":"cjs","children":[{"uid":"4debcadf-5","name":"react-jsx-runtime.production.min.js"},{"uid":"4debcadf-9","name":"react-jsx-runtime.development.js"}]},{"uid":"4debcadf-11","name":"jsx-runtime.js"}]},{"name":"dayjs/esm","children":[{"uid":"4debcadf-29","name":"constant.js"},{"name":"locale/en.js","uid":"4debcadf-31"},{"uid":"4debcadf-33","name":"utils.js"},{"uid":"4debcadf-35","name":"index.js"}]}]},{"name":"shared/src/api-client","children":[{"uid":"4debcadf-13","name":"utils.ts"},{"uid":"4debcadf-15","name":"default-api-client.ts"},{"uid":"4debcadf-17","name":"facade-api-client.ts"}]}]},{"name":"src","children":[{"name":"api-caller","children":[{"uid":"4debcadf-19","name":"request.ts"},{"uid":"4debcadf-21","name":"account.ts"},{"uid":"4debcadf-23","name":"api-key.ts"},{"uid":"4debcadf-25","name":"datasource.ts"},{"uid":"4debcadf-27","name":"role.ts"},{"uid":"4debcadf-37","name":"sql_snippet.ts"},{"uid":"4debcadf-39","name":"index.ts"}]},{"name":"datasource","children":[{"uid":"4debcadf-41","name":"styles.ts"},{"name":"add-data-source","children":[{"uid":"4debcadf-43","name":"db-permission-tips.tsx"},{"name":"forms","children":[{"uid":"4debcadf-61","name":"database.tsx"},{"uid":"4debcadf-67","name":"http.tsx"}]},{"uid":"4debcadf-69","name":"index.tsx"}]},{"name":"components","children":[{"name":"function-string-field","children":[{"uid":"4debcadf-63","name":"function-string-editor.tsx"},{"uid":"4debcadf-65","name":"index.tsx"}]},{"uid":"4debcadf-71","name":"data-source-icon.tsx"}]},{"uid":"4debcadf-73","name":"delete-data-source.tsx"},{"name":"edit-data-source","children":[{"name":"forms/http.tsx","uid":"4debcadf-75"},{"uid":"4debcadf-77","name":"index.tsx"}]},{"uid":"4debcadf-79","name":"data-source-list.tsx"}]},{"name":"components","children":[{"uid":"4debcadf-45","name":"minimal-mocaco-editor.tsx"},{"uid":"4debcadf-47","name":"submit-form-button.tsx"},{"uid":"4debcadf-59","name":"with-entry.tsx"}]},{"name":"i18n","children":[{"uid":"4debcadf-49","name":"en.ts"},{"uid":"4debcadf-51","name":"zh.ts"},{"uid":"4debcadf-53","name":"i18n.ts"},{"uid":"4debcadf-55","name":"i18next-context.tsx"}]},{"name":"utils/load-monaco-editor.ts","uid":"4debcadf-57"},{"name":"account","children":[{"uid":"4debcadf-81","name":"role-selector.tsx"},{"uid":"4debcadf-83","name":"styles.ts"},{"uid":"4debcadf-85","name":"add-account.tsx"},{"uid":"4debcadf-87","name":"delete-account.tsx"},{"uid":"4debcadf-89","name":"edit-account.tsx"},{"uid":"4debcadf-91","name":"account-list.tsx"},{"name":"login","children":[{"uid":"4debcadf-93","name":"form.tsx"},{"uid":"4debcadf-95","name":"index.tsx"}]}]},{"name":"api-key","children":[{"uid":"4debcadf-97","name":"styles.ts"},{"uid":"4debcadf-99","name":"add-api-key.tsx"},{"uid":"4debcadf-101","name":"delete-api-key.tsx"},{"uid":"4debcadf-103","name":"api-key-list.tsx"}]},{"name":"sql_snippet","children":[{"uid":"4debcadf-105","name":"styles.ts"},{"uid":"4debcadf-107","name":"add-sql_snippet.tsx"},{"uid":"4debcadf-109","name":"update-sql_snippet.tsx"},{"uid":"4debcadf-111","name":"delete-sql_snippet.tsx"},{"uid":"4debcadf-113","name":"sql_snippet-list.tsx"}]},{"uid":"4debcadf-115","name":"index.ts"}]},{"uid":"4debcadf-117","name":"package.json"}]}],"isRoot":true},"nodeParts":{"4debcadf-1":{"renderedLength":33,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-0"},"4debcadf-3":{"renderedLength":42,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-2"},"4debcadf-5":{"renderedLength":1217,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-4"},"4debcadf-7":{"renderedLength":39,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-6"},"4debcadf-9":{"renderedLength":46244,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-8"},"4debcadf-11":{"renderedLength":237,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-10"},"4debcadf-13":{"renderedLength":949,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-12"},"4debcadf-15":{"renderedLength":2262,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-14"},"4debcadf-17":{"renderedLength":422,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-16"},"4debcadf-19":{"renderedLength":426,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-18"},"4debcadf-21":{"renderedLength":1913,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-20"},"4debcadf-23":{"renderedLength":641,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-22"},"4debcadf-25":{"renderedLength":730,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-24"},"4debcadf-27":{"renderedLength":132,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-26"},"4debcadf-29":{"renderedLength":1011,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-28"},"4debcadf-31":{"renderedLength":496,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-30"},"4debcadf-33":{"renderedLength":1623,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-32"},"4debcadf-35":{"renderedLength":14006,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-34"},"4debcadf-37":{"renderedLength":1079,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-36"},"4debcadf-39":{"renderedLength":94,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-38"},"4debcadf-41":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-40"},"4debcadf-43":{"renderedLength":570,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-42"},"4debcadf-45":{"renderedLength":675,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-44"},"4debcadf-47":{"renderedLength":370,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-46"},"4debcadf-49":{"renderedLength":4258,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-48"},"4debcadf-51":{"renderedLength":4264,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-50"},"4debcadf-53":{"renderedLength":253,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-52"},"4debcadf-55":{"renderedLength":246,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-54"},"4debcadf-57":{"renderedLength":551,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-56"},"4debcadf-59":{"renderedLength":625,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-58"},"4debcadf-61":{"renderedLength":3109,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-60"},"4debcadf-63":{"renderedLength":502,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-62"},"4debcadf-65":{"renderedLength":2398,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-64"},"4debcadf-67":{"renderedLength":2906,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-66"},"4debcadf-69":{"renderedLength":3130,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-68"},"4debcadf-71":{"renderedLength":958,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-70"},"4debcadf-73":{"renderedLength":2217,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-72"},"4debcadf-75":{"renderedLength":2526,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-74"},"4debcadf-77":{"renderedLength":3649,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-76"},"4debcadf-79":{"renderedLength":2739,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-78"},"4debcadf-81":{"renderedLength":1553,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-80"},"4debcadf-83":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-82"},"4debcadf-85":{"renderedLength":3856,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-84"},"4debcadf-87":{"renderedLength":1830,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-86"},"4debcadf-89":{"renderedLength":4968,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-88"},"4debcadf-91":{"renderedLength":3158,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-90"},"4debcadf-93":{"renderedLength":2262,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-92"},"4debcadf-95":{"renderedLength":397,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-94"},"4debcadf-97":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-96"},"4debcadf-99":{"renderedLength":4259,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-98"},"4debcadf-101":{"renderedLength":1851,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-100"},"4debcadf-103":{"renderedLength":3016,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-102"},"4debcadf-105":{"renderedLength":102,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-104"},"4debcadf-107":{"renderedLength":3370,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-106"},"4debcadf-109":{"renderedLength":3409,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-108"},"4debcadf-111":{"renderedLength":1808,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-110"},"4debcadf-113":{"renderedLength":3839,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-112"},"4debcadf-115":{"renderedLength":187,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-114"},"4debcadf-117":{"renderedLength":29,"gzipLength":0,"brotliLength":0,"metaUid":"4debcadf-116"}},"nodeMetas":{"4debcadf-0":{"id":"\u0000/home/runner/work/table/table/node_modules/react/jsx-runtime.js?commonjs-module","moduleParts":{"settings-form.umd.js":"4debcadf-1"},"imported":[],"importedBy":[{"uid":"4debcadf-10"}]},"4debcadf-2":{"id":"\u0000/home/runner/work/table/table/node_modules/react/cjs/react-jsx-runtime.production.min.js?commonjs-exports","moduleParts":{"settings-form.umd.js":"4debcadf-3"},"imported":[],"importedBy":[{"uid":"4debcadf-4"}]},"4debcadf-4":{"id":"/home/runner/work/table/table/node_modules/react/cjs/react-jsx-runtime.production.min.js","moduleParts":{"settings-form.umd.js":"4debcadf-5"},"imported":[{"uid":"4debcadf-139"},{"uid":"4debcadf-2"},{"uid":"4debcadf-142"}],"importedBy":[{"uid":"4debcadf-10"}]},"4debcadf-6":{"id":"\u0000/home/runner/work/table/table/node_modules/react/cjs/react-jsx-runtime.development.js?commonjs-exports","moduleParts":{"settings-form.umd.js":"4debcadf-7"},"imported":[],"importedBy":[{"uid":"4debcadf-8"}]},"4debcadf-8":{"id":"/home/runner/work/table/table/node_modules/react/cjs/react-jsx-runtime.development.js","moduleParts":{"settings-form.umd.js":"4debcadf-9"},"imported":[{"uid":"4debcadf-139"},{"uid":"4debcadf-6"},{"uid":"4debcadf-142"}],"importedBy":[{"uid":"4debcadf-10"}]},"4debcadf-10":{"id":"/home/runner/work/table/table/node_modules/react/jsx-runtime.js","moduleParts":{"settings-form.umd.js":"4debcadf-11"},"imported":[{"uid":"4debcadf-139"},{"uid":"4debcadf-0"},{"uid":"4debcadf-4"},{"uid":"4debcadf-8"}],"importedBy":[{"uid":"4debcadf-68"},{"uid":"4debcadf-78"},{"uid":"4debcadf-72"},{"uid":"4debcadf-84"},{"uid":"4debcadf-90"},{"uid":"4debcadf-86"},{"uid":"4debcadf-94"},{"uid":"4debcadf-98"},{"uid":"4debcadf-102"},{"uid":"4debcadf-100"},{"uid":"4debcadf-106"},{"uid":"4debcadf-108"},{"uid":"4debcadf-112"},{"uid":"4debcadf-110"},{"uid":"4debcadf-42"},{"uid":"4debcadf-60"},{"uid":"4debcadf-66"},{"uid":"4debcadf-70"},{"uid":"4debcadf-76"},{"uid":"4debcadf-80"},{"uid":"4debcadf-88"},{"uid":"4debcadf-92"},{"uid":"4debcadf-44"},{"uid":"4debcadf-64"},{"uid":"4debcadf-46"},{"uid":"4debcadf-58"},{"uid":"4debcadf-74"},{"uid":"4debcadf-62"},{"uid":"4debcadf-54"}]},"4debcadf-12":{"id":"/home/runner/work/table/table/shared/src/api-client/utils.ts","moduleParts":{"settings-form.umd.js":"4debcadf-13"},"imported":[{"uid":"4debcadf-143"}],"importedBy":[{"uid":"4debcadf-138"},{"uid":"4debcadf-14"}]},"4debcadf-14":{"id":"/home/runner/work/table/table/shared/src/api-client/default-api-client.ts","moduleParts":{"settings-form.umd.js":"4debcadf-15"},"imported":[{"uid":"4debcadf-144"},{"uid":"4debcadf-12"},{"uid":"4debcadf-145"}],"importedBy":[{"uid":"4debcadf-138"}]},"4debcadf-16":{"id":"/home/runner/work/table/table/shared/src/api-client/facade-api-client.ts","moduleParts":{"settings-form.umd.js":"4debcadf-17"},"imported":[],"importedBy":[{"uid":"4debcadf-138"}]},"4debcadf-18":{"id":"/src/api-caller/request.ts","moduleParts":{"settings-form.umd.js":"4debcadf-19"},"imported":[{"uid":"4debcadf-127"}],"importedBy":[{"uid":"4debcadf-114"},{"uid":"4debcadf-20"},{"uid":"4debcadf-22"},{"uid":"4debcadf-24"},{"uid":"4debcadf-26"},{"uid":"4debcadf-36"},{"uid":"4debcadf-58"}]},"4debcadf-20":{"id":"/src/api-caller/account.ts","moduleParts":{"settings-form.umd.js":"4debcadf-21"},"imported":[{"uid":"4debcadf-18"}],"importedBy":[{"uid":"4debcadf-38"}]},"4debcadf-22":{"id":"/src/api-caller/api-key.ts","moduleParts":{"settings-form.umd.js":"4debcadf-23"},"imported":[{"uid":"4debcadf-18"}],"importedBy":[{"uid":"4debcadf-38"}]},"4debcadf-24":{"id":"/src/api-caller/datasource.ts","moduleParts":{"settings-form.umd.js":"4debcadf-25"},"imported":[{"uid":"4debcadf-18"}],"importedBy":[{"uid":"4debcadf-38"}]},"4debcadf-26":{"id":"/src/api-caller/role.ts","moduleParts":{"settings-form.umd.js":"4debcadf-27"},"imported":[{"uid":"4debcadf-18"}],"importedBy":[{"uid":"4debcadf-38"}]},"4debcadf-28":{"id":"/home/runner/work/table/table/node_modules/dayjs/esm/constant.js","moduleParts":{"settings-form.umd.js":"4debcadf-29"},"imported":[],"importedBy":[{"uid":"4debcadf-34"},{"uid":"4debcadf-32"}]},"4debcadf-30":{"id":"/home/runner/work/table/table/node_modules/dayjs/esm/locale/en.js","moduleParts":{"settings-form.umd.js":"4debcadf-31"},"imported":[],"importedBy":[{"uid":"4debcadf-34"}]},"4debcadf-32":{"id":"/home/runner/work/table/table/node_modules/dayjs/esm/utils.js","moduleParts":{"settings-form.umd.js":"4debcadf-33"},"imported":[{"uid":"4debcadf-28"}],"importedBy":[{"uid":"4debcadf-34"}]},"4debcadf-34":{"id":"/home/runner/work/table/table/node_modules/dayjs/esm/index.js","moduleParts":{"settings-form.umd.js":"4debcadf-35"},"imported":[{"uid":"4debcadf-28"},{"uid":"4debcadf-30"},{"uid":"4debcadf-32"}],"importedBy":[{"uid":"4debcadf-36"}]},"4debcadf-36":{"id":"/src/api-caller/sql_snippet.ts","moduleParts":{"settings-form.umd.js":"4debcadf-37"},"imported":[{"uid":"4debcadf-34"},{"uid":"4debcadf-18"}],"importedBy":[{"uid":"4debcadf-38"}]},"4debcadf-38":{"id":"/src/api-caller/index.ts","moduleParts":{"settings-form.umd.js":"4debcadf-39"},"imported":[{"uid":"4debcadf-20"},{"uid":"4debcadf-22"},{"uid":"4debcadf-24"},{"uid":"4debcadf-26"},{"uid":"4debcadf-36"}],"importedBy":[{"uid":"4debcadf-68"},{"uid":"4debcadf-78"},{"uid":"4debcadf-72"},{"uid":"4debcadf-84"},{"uid":"4debcadf-90"},{"uid":"4debcadf-86"},{"uid":"4debcadf-98"},{"uid":"4debcadf-102"},{"uid":"4debcadf-100"},{"uid":"4debcadf-106"},{"uid":"4debcadf-108"},{"uid":"4debcadf-112"},{"uid":"4debcadf-110"},{"uid":"4debcadf-76"},{"uid":"4debcadf-80"},{"uid":"4debcadf-88"},{"uid":"4debcadf-92"}]},"4debcadf-40":{"id":"/src/datasource/styles.ts","moduleParts":{"settings-form.umd.js":"4debcadf-41"},"imported":[],"importedBy":[{"uid":"4debcadf-68"},{"uid":"4debcadf-78"},{"uid":"4debcadf-72"},{"uid":"4debcadf-42"},{"uid":"4debcadf-60"},{"uid":"4debcadf-66"},{"uid":"4debcadf-76"},{"uid":"4debcadf-74"}]},"4debcadf-42":{"id":"/src/datasource/add-data-source/db-permission-tips.tsx","moduleParts":{"settings-form.umd.js":"4debcadf-43"},"imported":[{"uid":"4debcadf-10"},{"uid":"4debcadf-128"},{"uid":"4debcadf-130"},{"uid":"4debcadf-132"},{"uid":"4debcadf-40"}],"importedBy":[{"uid":"4debcadf-68"}]},"4debcadf-44":{"id":"/src/components/minimal-mocaco-editor.tsx","moduleParts":{"settings-form.umd.js":"4debcadf-45"},"imported":[{"uid":"4debcadf-10"},{"uid":"4debcadf-140"},{"uid":"4debcadf-131"}],"importedBy":[{"uid":"4debcadf-106"},{"uid":"4debcadf-108"},{"uid":"4debcadf-134"}]},"4debcadf-46":{"id":"/src/components/submit-form-button.tsx","moduleParts":{"settings-form.umd.js":"4debcadf-47"},"imported":[{"uid":"4debcadf-10"},{"uid":"4debcadf-128"},{"uid":"4debcadf-130"},{"uid":"4debcadf-132"}],"importedBy":[{"uid":"4debcadf-134"}]},"4debcadf-48":{"id":"/src/i18n/en.ts","moduleParts":{"settings-form.umd.js":"4debcadf-49"},"imported":[],"importedBy":[{"uid":"4debcadf-52"}]},"4debcadf-50":{"id":"/src/i18n/zh.ts","moduleParts":{"settings-form.umd.js":"4debcadf-51"},"imported":[],"importedBy":[{"uid":"4debcadf-52"}]},"4debcadf-52":{"id":"/src/i18n/i18n.ts","moduleParts":{"settings-form.umd.js":"4debcadf-53"},"imported":[{"uid":"4debcadf-146"},{"uid":"4debcadf-132"},{"uid":"4debcadf-147"},{"uid":"4debcadf-148"},{"uid":"4debcadf-48"},{"uid":"4debcadf-50"}],"importedBy":[{"uid":"4debcadf-54"}]},"4debcadf-54":{"id":"/src/i18n/i18next-context.tsx","moduleParts":{"settings-form.umd.js":"4debcadf-55"},"imported":[{"uid":"4debcadf-10"},{"uid":"4debcadf-131"},{"uid":"4debcadf-132"},{"uid":"4debcadf-52"}],"importedBy":[{"uid":"4debcadf-58"}]},"4debcadf-56":{"id":"/src/utils/load-monaco-editor.ts","moduleParts":{"settings-form.umd.js":"4debcadf-57"},"imported":[{"uid":"4debcadf-140"},{"uid":"4debcadf-131"}],"importedBy":[{"uid":"4debcadf-58"}]},"4debcadf-58":{"id":"/src/components/with-entry.tsx","moduleParts":{"settings-form.umd.js":"4debcadf-59"},"imported":[{"uid":"4debcadf-10"},{"uid":"4debcadf-131"},{"uid":"4debcadf-18"},{"uid":"4debcadf-54"},{"uid":"4debcadf-56"},{"uid":"4debcadf-128"}],"importedBy":[{"uid":"4debcadf-134"}]},"4debcadf-60":{"id":"/src/datasource/add-data-source/forms/database.tsx","moduleParts":{"settings-form.umd.js":"4debcadf-61"},"imported":[{"uid":"4debcadf-10"},{"uid":"4debcadf-128"},{"uid":"4debcadf-131"},{"uid":"4debcadf-136"},{"uid":"4debcadf-134"},{"uid":"4debcadf-40"},{"uid":"4debcadf-132"}],"importedBy":[{"uid":"4debcadf-68"}]},"4debcadf-62":{"id":"/src/datasource/components/function-string-field/function-string-editor.tsx","moduleParts":{"settings-form.umd.js":"4debcadf-63"},"imported":[{"uid":"4debcadf-10"},{"uid":"4debcadf-128"},{"uid":"4debcadf-140"}],"importedBy":[{"uid":"4debcadf-64"}]},"4debcadf-64":{"id":"/src/datasource/components/function-string-field/index.tsx","moduleParts":{"settings-form.umd.js":"4debcadf-65"},"imported":[{"uid":"4debcadf-10"},{"uid":"4debcadf-128"},{"uid":"4debcadf-130"},{"uid":"4debcadf-133"},{"uid":"4debcadf-131"},{"uid":"4debcadf-132"},{"uid":"4debcadf-62"}],"importedBy":[{"uid":"4debcadf-66"},{"uid":"4debcadf-74"}]},"4debcadf-66":{"id":"/src/datasource/add-data-source/forms/http.tsx","moduleParts":{"settings-form.umd.js":"4debcadf-67"},"imported":[{"uid":"4debcadf-10"},{"uid":"4debcadf-128"},{"uid":"4debcadf-136"},{"uid":"4debcadf-40"},{"uid":"4debcadf-64"},{"uid":"4debcadf-134"},{"uid":"4debcadf-132"}],"importedBy":[{"uid":"4debcadf-68"}]},"4debcadf-68":{"id":"/src/datasource/add-data-source/index.tsx","moduleParts":{"settings-form.umd.js":"4debcadf-69"},"imported":[{"uid":"4debcadf-10"},{"uid":"4debcadf-128"},{"uid":"4debcadf-129"},{"uid":"4debcadf-130"},{"uid":"4debcadf-131"},{"uid":"4debcadf-132"},{"uid":"4debcadf-38"},{"uid":"4debcadf-40"},{"uid":"4debcadf-42"},{"uid":"4debcadf-60"},{"uid":"4debcadf-66"}],"importedBy":[{"uid":"4debcadf-118"},{"uid":"4debcadf-78"}]},"4debcadf-70":{"id":"/src/datasource/components/data-source-icon.tsx","moduleParts":{"settings-form.umd.js":"4debcadf-71"},"imported":[{"uid":"4debcadf-10"},{"uid":"4debcadf-130"},{"uid":"4debcadf-128"}],"importedBy":[{"uid":"4debcadf-78"}]},"4debcadf-72":{"id":"/src/datasource/delete-data-source.tsx","moduleParts":{"settings-form.umd.js":"4debcadf-73"},"imported":[{"uid":"4debcadf-10"},{"uid":"4debcadf-128"},{"uid":"4debcadf-135"},{"uid":"4debcadf-129"},{"uid":"4debcadf-130"},{"uid":"4debcadf-132"},{"uid":"4debcadf-38"},{"uid":"4debcadf-40"}],"importedBy":[{"uid":"4debcadf-118"},{"uid":"4debcadf-78"}]},"4debcadf-74":{"id":"/src/datasource/edit-data-source/forms/http.tsx","moduleParts":{"settings-form.umd.js":"4debcadf-75"},"imported":[{"uid":"4debcadf-10"},{"uid":"4debcadf-128"},{"uid":"4debcadf-136"},{"uid":"4debcadf-132"},{"uid":"4debcadf-134"},{"uid":"4debcadf-64"},{"uid":"4debcadf-40"}],"importedBy":[{"uid":"4debcadf-76"}]},"4debcadf-76":{"id":"/src/datasource/edit-data-source/index.tsx","moduleParts":{"settings-form.umd.js":"4debcadf-77"},"imported":[{"uid":"4debcadf-10"},{"uid":"4debcadf-128"},{"uid":"4debcadf-129"},{"uid":"4debcadf-130"},{"uid":"4debcadf-131"},{"uid":"4debcadf-38"},{"uid":"4debcadf-40"},{"uid":"4debcadf-74"},{"uid":"4debcadf-132"}],"importedBy":[{"uid":"4debcadf-78"}]},"4debcadf-78":{"id":"/src/datasource/data-source-list.tsx","moduleParts":{"settings-form.umd.js":"4debcadf-79"},"imported":[{"uid":"4debcadf-10"},{"uid":"4debcadf-128"},{"uid":"4debcadf-133"},{"uid":"4debcadf-132"},{"uid":"4debcadf-38"},{"uid":"4debcadf-134"},{"uid":"4debcadf-68"},{"uid":"4debcadf-70"},{"uid":"4debcadf-72"},{"uid":"4debcadf-76"},{"uid":"4debcadf-40"}],"importedBy":[{"uid":"4debcadf-118"}]},"4debcadf-80":{"id":"/src/account/role-selector.tsx","moduleParts":{"settings-form.umd.js":"4debcadf-81"},"imported":[{"uid":"4debcadf-10"},{"uid":"4debcadf-128"},{"uid":"4debcadf-133"},{"uid":"4debcadf-131"},{"uid":"4debcadf-132"},{"uid":"4debcadf-38"}],"importedBy":[{"uid":"4debcadf-84"},{"uid":"4debcadf-98"},{"uid":"4debcadf-88"}]},"4debcadf-82":{"id":"/src/account/styles.ts","moduleParts":{"settings-form.umd.js":"4debcadf-83"},"imported":[],"importedBy":[{"uid":"4debcadf-84"},{"uid":"4debcadf-90"},{"uid":"4debcadf-86"},{"uid":"4debcadf-94"},{"uid":"4debcadf-88"},{"uid":"4debcadf-92"}]},"4debcadf-84":{"id":"/src/account/add-account.tsx","moduleParts":{"settings-form.umd.js":"4debcadf-85"},"imported":[{"uid":"4debcadf-10"},{"uid":"4debcadf-128"},{"uid":"4debcadf-129"},{"uid":"4debcadf-131"},{"uid":"4debcadf-136"},{"uid":"4debcadf-130"},{"uid":"4debcadf-38"},{"uid":"4debcadf-134"},{"uid":"4debcadf-80"},{"uid":"4debcadf-82"},{"uid":"4debcadf-132"}],"importedBy":[{"uid":"4debcadf-119"},{"uid":"4debcadf-90"}]},"4debcadf-86":{"id":"/src/account/delete-account.tsx","moduleParts":{"settings-form.umd.js":"4debcadf-87"},"imported":[{"uid":"4debcadf-10"},{"uid":"4debcadf-128"},{"uid":"4debcadf-135"},{"uid":"4debcadf-129"},{"uid":"4debcadf-130"},{"uid":"4debcadf-132"},{"uid":"4debcadf-38"},{"uid":"4debcadf-82"}],"importedBy":[{"uid":"4debcadf-119"},{"uid":"4debcadf-90"}]},"4debcadf-88":{"id":"/src/account/edit-account.tsx","moduleParts":{"settings-form.umd.js":"4debcadf-89"},"imported":[{"uid":"4debcadf-10"},{"uid":"4debcadf-128"},{"uid":"4debcadf-129"},{"uid":"4debcadf-130"},{"uid":"4debcadf-131"},{"uid":"4debcadf-136"},{"uid":"4debcadf-132"},{"uid":"4debcadf-38"},{"uid":"4debcadf-134"},{"uid":"4debcadf-80"},{"uid":"4debcadf-82"}],"importedBy":[{"uid":"4debcadf-90"}]},"4debcadf-90":{"id":"/src/account/account-list.tsx","moduleParts":{"settings-form.umd.js":"4debcadf-91"},"imported":[{"uid":"4debcadf-10"},{"uid":"4debcadf-128"},{"uid":"4debcadf-133"},{"uid":"4debcadf-132"},{"uid":"4debcadf-38"},{"uid":"4debcadf-134"},{"uid":"4debcadf-84"},{"uid":"4debcadf-86"},{"uid":"4debcadf-88"},{"uid":"4debcadf-82"}],"importedBy":[{"uid":"4debcadf-119"}]},"4debcadf-92":{"id":"/src/account/login/form.tsx","moduleParts":{"settings-form.umd.js":"4debcadf-93"},"imported":[{"uid":"4debcadf-10"},{"uid":"4debcadf-128"},{"uid":"4debcadf-129"},{"uid":"4debcadf-136"},{"uid":"4debcadf-38"},{"uid":"4debcadf-82"},{"uid":"4debcadf-134"},{"uid":"4debcadf-132"}],"importedBy":[{"uid":"4debcadf-94"}]},"4debcadf-94":{"id":"/src/account/login/index.tsx","moduleParts":{"settings-form.umd.js":"4debcadf-95"},"imported":[{"uid":"4debcadf-10"},{"uid":"4debcadf-128"},{"uid":"4debcadf-134"},{"uid":"4debcadf-82"},{"uid":"4debcadf-92"}],"importedBy":[{"uid":"4debcadf-119"}]},"4debcadf-96":{"id":"/src/api-key/styles.ts","moduleParts":{"settings-form.umd.js":"4debcadf-97"},"imported":[],"importedBy":[{"uid":"4debcadf-98"},{"uid":"4debcadf-102"},{"uid":"4debcadf-100"}]},"4debcadf-98":{"id":"/src/api-key/add-api-key.tsx","moduleParts":{"settings-form.umd.js":"4debcadf-99"},"imported":[{"uid":"4debcadf-10"},{"uid":"4debcadf-128"},{"uid":"4debcadf-135"},{"uid":"4debcadf-129"},{"uid":"4debcadf-131"},{"uid":"4debcadf-136"},{"uid":"4debcadf-80"},{"uid":"4debcadf-38"},{"uid":"4debcadf-134"},{"uid":"4debcadf-96"},{"uid":"4debcadf-132"},{"uid":"4debcadf-130"}],"importedBy":[{"uid":"4debcadf-120"},{"uid":"4debcadf-102"}]},"4debcadf-100":{"id":"/src/api-key/delete-api-key.tsx","moduleParts":{"settings-form.umd.js":"4debcadf-101"},"imported":[{"uid":"4debcadf-10"},{"uid":"4debcadf-128"},{"uid":"4debcadf-135"},{"uid":"4debcadf-129"},{"uid":"4debcadf-130"},{"uid":"4debcadf-132"},{"uid":"4debcadf-38"},{"uid":"4debcadf-96"}],"importedBy":[{"uid":"4debcadf-120"},{"uid":"4debcadf-102"}]},"4debcadf-102":{"id":"/src/api-key/api-key-list.tsx","moduleParts":{"settings-form.umd.js":"4debcadf-103"},"imported":[{"uid":"4debcadf-10"},{"uid":"4debcadf-128"},{"uid":"4debcadf-133"},{"uid":"4debcadf-132"},{"uid":"4debcadf-38"},{"uid":"4debcadf-134"},{"uid":"4debcadf-98"},{"uid":"4debcadf-100"},{"uid":"4debcadf-96"}],"importedBy":[{"uid":"4debcadf-120"}]},"4debcadf-104":{"id":"/src/sql_snippet/styles.ts","moduleParts":{"settings-form.umd.js":"4debcadf-105"},"imported":[],"importedBy":[{"uid":"4debcadf-106"},{"uid":"4debcadf-108"},{"uid":"4debcadf-112"},{"uid":"4debcadf-110"}]},"4debcadf-106":{"id":"/src/sql_snippet/add-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"4debcadf-107"},"imported":[{"uid":"4debcadf-10"},{"uid":"4debcadf-128"},{"uid":"4debcadf-129"},{"uid":"4debcadf-130"},{"uid":"4debcadf-131"},{"uid":"4debcadf-136"},{"uid":"4debcadf-132"},{"uid":"4debcadf-38"},{"uid":"4debcadf-134"},{"uid":"4debcadf-44"},{"uid":"4debcadf-104"}],"importedBy":[{"uid":"4debcadf-121"},{"uid":"4debcadf-112"}]},"4debcadf-108":{"id":"/src/sql_snippet/update-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"4debcadf-109"},"imported":[{"uid":"4debcadf-10"},{"uid":"4debcadf-128"},{"uid":"4debcadf-129"},{"uid":"4debcadf-130"},{"uid":"4debcadf-131"},{"uid":"4debcadf-136"},{"uid":"4debcadf-38"},{"uid":"4debcadf-44"},{"uid":"4debcadf-104"},{"uid":"4debcadf-134"},{"uid":"4debcadf-132"}],"importedBy":[{"uid":"4debcadf-121"},{"uid":"4debcadf-112"}]},"4debcadf-110":{"id":"/src/sql_snippet/delete-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"4debcadf-111"},"imported":[{"uid":"4debcadf-10"},{"uid":"4debcadf-128"},{"uid":"4debcadf-135"},{"uid":"4debcadf-129"},{"uid":"4debcadf-130"},{"uid":"4debcadf-132"},{"uid":"4debcadf-38"},{"uid":"4debcadf-104"}],"importedBy":[{"uid":"4debcadf-121"},{"uid":"4debcadf-112"}]},"4debcadf-112":{"id":"/src/sql_snippet/sql_snippet-list.tsx","moduleParts":{"settings-form.umd.js":"4debcadf-113"},"imported":[{"uid":"4debcadf-10"},{"uid":"4debcadf-128"},{"uid":"4debcadf-137"},{"uid":"4debcadf-133"},{"uid":"4debcadf-38"},{"uid":"4debcadf-106"},{"uid":"4debcadf-110"},{"uid":"4debcadf-104"},{"uid":"4debcadf-130"},{"uid":"4debcadf-132"},{"uid":"4debcadf-134"},{"uid":"4debcadf-108"}],"importedBy":[{"uid":"4debcadf-121"}]},"4debcadf-114":{"id":"/src/index.ts","moduleParts":{"settings-form.umd.js":"4debcadf-115"},"imported":[{"uid":"4debcadf-118"},{"uid":"4debcadf-119"},{"uid":"4debcadf-120"},{"uid":"4debcadf-121"},{"uid":"4debcadf-18"},{"uid":"4debcadf-122"},{"uid":"4debcadf-123"},{"uid":"4debcadf-124"},{"uid":"4debcadf-125"},{"uid":"4debcadf-126"},{"uid":"4debcadf-116","dynamic":true}],"importedBy":[],"isEntry":true},"4debcadf-116":{"id":"/package.json","moduleParts":{"settings-form.umd.js":"4debcadf-117"},"imported":[],"importedBy":[{"uid":"4debcadf-114"}]},"4debcadf-118":{"id":"/src/datasource/index.tsx","moduleParts":{},"imported":[{"uid":"4debcadf-68"},{"uid":"4debcadf-78"},{"uid":"4debcadf-72"}],"importedBy":[{"uid":"4debcadf-114"}]},"4debcadf-119":{"id":"/src/account/index.tsx","moduleParts":{},"imported":[{"uid":"4debcadf-84"},{"uid":"4debcadf-90"},{"uid":"4debcadf-86"},{"uid":"4debcadf-94"}],"importedBy":[{"uid":"4debcadf-114"}]},"4debcadf-120":{"id":"/src/api-key/index.tsx","moduleParts":{},"imported":[{"uid":"4debcadf-98"},{"uid":"4debcadf-102"},{"uid":"4debcadf-100"}],"importedBy":[{"uid":"4debcadf-114"}]},"4debcadf-121":{"id":"/src/sql_snippet/index.tsx","moduleParts":{},"imported":[{"uid":"4debcadf-106"},{"uid":"4debcadf-108"},{"uid":"4debcadf-112"},{"uid":"4debcadf-110"}],"importedBy":[{"uid":"4debcadf-114"}]},"4debcadf-122":{"id":"/src/api-caller/account.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"4debcadf-114"}]},"4debcadf-123":{"id":"/src/api-caller/api-key.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"4debcadf-114"}]},"4debcadf-124":{"id":"/src/api-caller/datasource.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"4debcadf-114"}]},"4debcadf-125":{"id":"/src/api-caller/role.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"4debcadf-114"}]},"4debcadf-126":{"id":"/src/api-caller/sql_snippet.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"4debcadf-114"}]},"4debcadf-127":{"id":"/home/runner/work/table/table/shared/src/index.ts","moduleParts":{},"imported":[{"uid":"4debcadf-138"}],"importedBy":[{"uid":"4debcadf-18"}]},"4debcadf-128":{"id":"@mantine/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"4debcadf-68"},{"uid":"4debcadf-78"},{"uid":"4debcadf-72"},{"uid":"4debcadf-84"},{"uid":"4debcadf-90"},{"uid":"4debcadf-86"},{"uid":"4debcadf-94"},{"uid":"4debcadf-98"},{"uid":"4debcadf-102"},{"uid":"4debcadf-100"},{"uid":"4debcadf-106"},{"uid":"4debcadf-108"},{"uid":"4debcadf-112"},{"uid":"4debcadf-110"},{"uid":"4debcadf-42"},{"uid":"4debcadf-60"},{"uid":"4debcadf-66"},{"uid":"4debcadf-70"},{"uid":"4debcadf-76"},{"uid":"4debcadf-80"},{"uid":"4debcadf-88"},{"uid":"4debcadf-92"},{"uid":"4debcadf-64"},{"uid":"4debcadf-46"},{"uid":"4debcadf-58"},{"uid":"4debcadf-74"},{"uid":"4debcadf-62"}],"isExternal":true},"4debcadf-129":{"id":"@mantine/notifications","moduleParts":{},"imported":[],"importedBy":[{"uid":"4debcadf-68"},{"uid":"4debcadf-72"},{"uid":"4debcadf-84"},{"uid":"4debcadf-86"},{"uid":"4debcadf-98"},{"uid":"4debcadf-100"},{"uid":"4debcadf-106"},{"uid":"4debcadf-108"},{"uid":"4debcadf-110"},{"uid":"4debcadf-76"},{"uid":"4debcadf-88"},{"uid":"4debcadf-92"}],"isExternal":true},"4debcadf-130":{"id":"@tabler/icons-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"4debcadf-68"},{"uid":"4debcadf-72"},{"uid":"4debcadf-84"},{"uid":"4debcadf-86"},{"uid":"4debcadf-98"},{"uid":"4debcadf-100"},{"uid":"4debcadf-106"},{"uid":"4debcadf-108"},{"uid":"4debcadf-112"},{"uid":"4debcadf-110"},{"uid":"4debcadf-42"},{"uid":"4debcadf-70"},{"uid":"4debcadf-76"},{"uid":"4debcadf-88"},{"uid":"4debcadf-64"},{"uid":"4debcadf-46"}],"isExternal":true},"4debcadf-131":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"4debcadf-68"},{"uid":"4debcadf-84"},{"uid":"4debcadf-98"},{"uid":"4debcadf-106"},{"uid":"4debcadf-108"},{"uid":"4debcadf-60"},{"uid":"4debcadf-76"},{"uid":"4debcadf-80"},{"uid":"4debcadf-88"},{"uid":"4debcadf-44"},{"uid":"4debcadf-64"},{"uid":"4debcadf-58"},{"uid":"4debcadf-142"},{"uid":"4debcadf-54"},{"uid":"4debcadf-56"}],"isExternal":true},"4debcadf-132":{"id":"react-i18next","moduleParts":{},"imported":[],"importedBy":[{"uid":"4debcadf-68"},{"uid":"4debcadf-78"},{"uid":"4debcadf-72"},{"uid":"4debcadf-84"},{"uid":"4debcadf-90"},{"uid":"4debcadf-86"},{"uid":"4debcadf-98"},{"uid":"4debcadf-102"},{"uid":"4debcadf-100"},{"uid":"4debcadf-106"},{"uid":"4debcadf-108"},{"uid":"4debcadf-112"},{"uid":"4debcadf-110"},{"uid":"4debcadf-42"},{"uid":"4debcadf-60"},{"uid":"4debcadf-66"},{"uid":"4debcadf-76"},{"uid":"4debcadf-80"},{"uid":"4debcadf-88"},{"uid":"4debcadf-92"},{"uid":"4debcadf-64"},{"uid":"4debcadf-46"},{"uid":"4debcadf-74"},{"uid":"4debcadf-54"},{"uid":"4debcadf-52"}],"isExternal":true},"4debcadf-133":{"id":"ahooks","moduleParts":{},"imported":[],"importedBy":[{"uid":"4debcadf-78"},{"uid":"4debcadf-90"},{"uid":"4debcadf-102"},{"uid":"4debcadf-112"},{"uid":"4debcadf-80"},{"uid":"4debcadf-64"}],"isExternal":true},"4debcadf-134":{"id":"/src/components/index.ts","moduleParts":{},"imported":[{"uid":"4debcadf-44"},{"uid":"4debcadf-46"},{"uid":"4debcadf-58"}],"importedBy":[{"uid":"4debcadf-78"},{"uid":"4debcadf-84"},{"uid":"4debcadf-90"},{"uid":"4debcadf-94"},{"uid":"4debcadf-98"},{"uid":"4debcadf-102"},{"uid":"4debcadf-106"},{"uid":"4debcadf-108"},{"uid":"4debcadf-112"},{"uid":"4debcadf-60"},{"uid":"4debcadf-66"},{"uid":"4debcadf-88"},{"uid":"4debcadf-92"},{"uid":"4debcadf-74"}]},"4debcadf-135":{"id":"@mantine/modals","moduleParts":{},"imported":[],"importedBy":[{"uid":"4debcadf-72"},{"uid":"4debcadf-86"},{"uid":"4debcadf-98"},{"uid":"4debcadf-100"},{"uid":"4debcadf-110"}],"isExternal":true},"4debcadf-136":{"id":"react-hook-form","moduleParts":{},"imported":[],"importedBy":[{"uid":"4debcadf-84"},{"uid":"4debcadf-98"},{"uid":"4debcadf-106"},{"uid":"4debcadf-108"},{"uid":"4debcadf-60"},{"uid":"4debcadf-66"},{"uid":"4debcadf-88"},{"uid":"4debcadf-92"},{"uid":"4debcadf-74"}],"isExternal":true},"4debcadf-137":{"id":"@mantine/code-highlight","moduleParts":{},"imported":[],"importedBy":[{"uid":"4debcadf-112"}],"isExternal":true},"4debcadf-138":{"id":"/home/runner/work/table/table/shared/src/api-client/index.ts","moduleParts":{},"imported":[{"uid":"4debcadf-141"},{"uid":"4debcadf-12"},{"uid":"4debcadf-14"},{"uid":"4debcadf-16"}],"importedBy":[{"uid":"4debcadf-127"}]},"4debcadf-139":{"id":"\u0000commonjsHelpers.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"4debcadf-10"},{"uid":"4debcadf-4"},{"uid":"4debcadf-8"}]},"4debcadf-140":{"id":"@monaco-editor/react","moduleParts":{},"imported":[],"importedBy":[{"uid":"4debcadf-44"},{"uid":"4debcadf-62"},{"uid":"4debcadf-56"}],"isExternal":true},"4debcadf-141":{"id":"/home/runner/work/table/table/shared/src/api-client/types.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"4debcadf-138"}]},"4debcadf-142":{"id":"\u0000react?commonjs-external","moduleParts":{},"imported":[{"uid":"4debcadf-131"}],"importedBy":[{"uid":"4debcadf-4"},{"uid":"4debcadf-8"}]},"4debcadf-143":{"id":"crypto-js","moduleParts":{},"imported":[],"importedBy":[{"uid":"4debcadf-12"}],"isExternal":true},"4debcadf-144":{"id":"lodash","moduleParts":{},"imported":[],"importedBy":[{"uid":"4debcadf-14"}],"isExternal":true},"4debcadf-145":{"id":"axios","moduleParts":{},"imported":[],"importedBy":[{"uid":"4debcadf-14"}],"isExternal":true},"4debcadf-146":{"id":"i18next","moduleParts":{},"imported":[],"importedBy":[{"uid":"4debcadf-52"}],"isExternal":true},"4debcadf-147":{"id":"i18next-browser-languagedetector","moduleParts":{},"imported":[],"importedBy":[{"uid":"4debcadf-52"}],"isExternal":true},"4debcadf-148":{"id":"intl-pluralrules","moduleParts":{},"imported":[],"importedBy":[{"uid":"4debcadf-52"}],"isExternal":true}},"env":{"rollup":"3.29.4"},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
4825
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"settings-form.umd.js","children":[{"name":"\u0000/home/runner/work/table/table/node_modules/react","children":[{"uid":"73266964-1","name":"jsx-runtime.js?commonjs-module"},{"name":"cjs","children":[{"uid":"73266964-3","name":"react-jsx-runtime.production.min.js?commonjs-exports"},{"uid":"73266964-7","name":"react-jsx-runtime.development.js?commonjs-exports"}]}]},{"name":"home/runner/work/table/table","children":[{"name":"node_modules","children":[{"name":"react","children":[{"name":"cjs","children":[{"uid":"73266964-5","name":"react-jsx-runtime.production.min.js"},{"uid":"73266964-9","name":"react-jsx-runtime.development.js"}]},{"uid":"73266964-11","name":"jsx-runtime.js"}]},{"name":"dayjs/esm","children":[{"uid":"73266964-29","name":"constant.js"},{"name":"locale/en.js","uid":"73266964-31"},{"uid":"73266964-33","name":"utils.js"},{"uid":"73266964-35","name":"index.js"}]}]},{"name":"shared/src/api-client","children":[{"uid":"73266964-13","name":"utils.ts"},{"uid":"73266964-15","name":"default-api-client.ts"},{"uid":"73266964-17","name":"facade-api-client.ts"}]}]},{"name":"src","children":[{"name":"api-caller","children":[{"uid":"73266964-19","name":"request.ts"},{"uid":"73266964-21","name":"account.ts"},{"uid":"73266964-23","name":"api-key.ts"},{"uid":"73266964-25","name":"datasource.ts"},{"uid":"73266964-27","name":"role.ts"},{"uid":"73266964-37","name":"sql_snippet.ts"},{"uid":"73266964-39","name":"index.ts"}]},{"name":"datasource","children":[{"uid":"73266964-41","name":"styles.ts"},{"name":"add-data-source","children":[{"uid":"73266964-43","name":"db-permission-tips.tsx"},{"name":"forms","children":[{"uid":"73266964-61","name":"database.tsx"},{"uid":"73266964-67","name":"http.tsx"}]},{"uid":"73266964-69","name":"index.tsx"}]},{"name":"components","children":[{"name":"function-string-field","children":[{"uid":"73266964-63","name":"function-string-editor.tsx"},{"uid":"73266964-65","name":"index.tsx"}]},{"uid":"73266964-71","name":"data-source-icon.tsx"}]},{"uid":"73266964-73","name":"delete-data-source.tsx"},{"name":"edit-data-source","children":[{"name":"forms/http.tsx","uid":"73266964-75"},{"uid":"73266964-77","name":"index.tsx"}]},{"uid":"73266964-79","name":"data-source-list.tsx"}]},{"name":"components","children":[{"uid":"73266964-45","name":"minimal-mocaco-editor.tsx"},{"uid":"73266964-47","name":"submit-form-button.tsx"},{"uid":"73266964-59","name":"with-entry.tsx"}]},{"name":"i18n","children":[{"uid":"73266964-49","name":"en.ts"},{"uid":"73266964-51","name":"zh.ts"},{"uid":"73266964-53","name":"i18n.ts"},{"uid":"73266964-55","name":"i18next-context.tsx"}]},{"name":"utils/load-monaco-editor.ts","uid":"73266964-57"},{"name":"account","children":[{"uid":"73266964-81","name":"role-selector.tsx"},{"uid":"73266964-83","name":"styles.ts"},{"uid":"73266964-85","name":"add-account.tsx"},{"uid":"73266964-87","name":"delete-account.tsx"},{"uid":"73266964-89","name":"edit-account.tsx"},{"uid":"73266964-91","name":"account-list.tsx"},{"name":"login","children":[{"uid":"73266964-93","name":"form.tsx"},{"uid":"73266964-95","name":"index.tsx"}]}]},{"name":"api-key","children":[{"uid":"73266964-97","name":"styles.ts"},{"uid":"73266964-99","name":"add-api-key.tsx"},{"uid":"73266964-101","name":"delete-api-key.tsx"},{"uid":"73266964-103","name":"api-key-list.tsx"}]},{"name":"sql_snippet","children":[{"uid":"73266964-105","name":"styles.ts"},{"uid":"73266964-107","name":"add-sql_snippet.tsx"},{"uid":"73266964-109","name":"update-sql_snippet.tsx"},{"uid":"73266964-111","name":"delete-sql_snippet.tsx"},{"uid":"73266964-113","name":"sql_snippet-list.tsx"}]},{"uid":"73266964-115","name":"index.ts"}]},{"uid":"73266964-117","name":"package.json"}]}],"isRoot":true},"nodeParts":{"73266964-1":{"renderedLength":33,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-0"},"73266964-3":{"renderedLength":42,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-2"},"73266964-5":{"renderedLength":1217,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-4"},"73266964-7":{"renderedLength":39,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-6"},"73266964-9":{"renderedLength":46244,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-8"},"73266964-11":{"renderedLength":237,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-10"},"73266964-13":{"renderedLength":949,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-12"},"73266964-15":{"renderedLength":2262,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-14"},"73266964-17":{"renderedLength":422,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-16"},"73266964-19":{"renderedLength":426,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-18"},"73266964-21":{"renderedLength":1913,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-20"},"73266964-23":{"renderedLength":641,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-22"},"73266964-25":{"renderedLength":730,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-24"},"73266964-27":{"renderedLength":132,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-26"},"73266964-29":{"renderedLength":1011,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-28"},"73266964-31":{"renderedLength":496,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-30"},"73266964-33":{"renderedLength":1623,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-32"},"73266964-35":{"renderedLength":14006,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-34"},"73266964-37":{"renderedLength":1079,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-36"},"73266964-39":{"renderedLength":94,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-38"},"73266964-41":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-40"},"73266964-43":{"renderedLength":570,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-42"},"73266964-45":{"renderedLength":675,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-44"},"73266964-47":{"renderedLength":370,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-46"},"73266964-49":{"renderedLength":4258,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-48"},"73266964-51":{"renderedLength":4264,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-50"},"73266964-53":{"renderedLength":253,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-52"},"73266964-55":{"renderedLength":246,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-54"},"73266964-57":{"renderedLength":551,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-56"},"73266964-59":{"renderedLength":625,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-58"},"73266964-61":{"renderedLength":3109,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-60"},"73266964-63":{"renderedLength":502,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-62"},"73266964-65":{"renderedLength":2398,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-64"},"73266964-67":{"renderedLength":2906,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-66"},"73266964-69":{"renderedLength":3130,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-68"},"73266964-71":{"renderedLength":958,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-70"},"73266964-73":{"renderedLength":2217,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-72"},"73266964-75":{"renderedLength":2526,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-74"},"73266964-77":{"renderedLength":3649,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-76"},"73266964-79":{"renderedLength":2739,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-78"},"73266964-81":{"renderedLength":1553,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-80"},"73266964-83":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-82"},"73266964-85":{"renderedLength":3856,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-84"},"73266964-87":{"renderedLength":1830,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-86"},"73266964-89":{"renderedLength":4968,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-88"},"73266964-91":{"renderedLength":3158,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-90"},"73266964-93":{"renderedLength":2262,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-92"},"73266964-95":{"renderedLength":397,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-94"},"73266964-97":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-96"},"73266964-99":{"renderedLength":4259,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-98"},"73266964-101":{"renderedLength":1851,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-100"},"73266964-103":{"renderedLength":3016,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-102"},"73266964-105":{"renderedLength":102,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-104"},"73266964-107":{"renderedLength":3370,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-106"},"73266964-109":{"renderedLength":3409,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-108"},"73266964-111":{"renderedLength":1808,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-110"},"73266964-113":{"renderedLength":3839,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-112"},"73266964-115":{"renderedLength":187,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-114"},"73266964-117":{"renderedLength":31,"gzipLength":0,"brotliLength":0,"metaUid":"73266964-116"}},"nodeMetas":{"73266964-0":{"id":"\u0000/home/runner/work/table/table/node_modules/react/jsx-runtime.js?commonjs-module","moduleParts":{"settings-form.umd.js":"73266964-1"},"imported":[],"importedBy":[{"uid":"73266964-10"}]},"73266964-2":{"id":"\u0000/home/runner/work/table/table/node_modules/react/cjs/react-jsx-runtime.production.min.js?commonjs-exports","moduleParts":{"settings-form.umd.js":"73266964-3"},"imported":[],"importedBy":[{"uid":"73266964-4"}]},"73266964-4":{"id":"/home/runner/work/table/table/node_modules/react/cjs/react-jsx-runtime.production.min.js","moduleParts":{"settings-form.umd.js":"73266964-5"},"imported":[{"uid":"73266964-139"},{"uid":"73266964-2"},{"uid":"73266964-142"}],"importedBy":[{"uid":"73266964-10"}]},"73266964-6":{"id":"\u0000/home/runner/work/table/table/node_modules/react/cjs/react-jsx-runtime.development.js?commonjs-exports","moduleParts":{"settings-form.umd.js":"73266964-7"},"imported":[],"importedBy":[{"uid":"73266964-8"}]},"73266964-8":{"id":"/home/runner/work/table/table/node_modules/react/cjs/react-jsx-runtime.development.js","moduleParts":{"settings-form.umd.js":"73266964-9"},"imported":[{"uid":"73266964-139"},{"uid":"73266964-6"},{"uid":"73266964-142"}],"importedBy":[{"uid":"73266964-10"}]},"73266964-10":{"id":"/home/runner/work/table/table/node_modules/react/jsx-runtime.js","moduleParts":{"settings-form.umd.js":"73266964-11"},"imported":[{"uid":"73266964-139"},{"uid":"73266964-0"},{"uid":"73266964-4"},{"uid":"73266964-8"}],"importedBy":[{"uid":"73266964-68"},{"uid":"73266964-78"},{"uid":"73266964-72"},{"uid":"73266964-84"},{"uid":"73266964-90"},{"uid":"73266964-86"},{"uid":"73266964-94"},{"uid":"73266964-98"},{"uid":"73266964-102"},{"uid":"73266964-100"},{"uid":"73266964-106"},{"uid":"73266964-108"},{"uid":"73266964-112"},{"uid":"73266964-110"},{"uid":"73266964-42"},{"uid":"73266964-60"},{"uid":"73266964-66"},{"uid":"73266964-70"},{"uid":"73266964-76"},{"uid":"73266964-80"},{"uid":"73266964-88"},{"uid":"73266964-92"},{"uid":"73266964-44"},{"uid":"73266964-64"},{"uid":"73266964-46"},{"uid":"73266964-58"},{"uid":"73266964-74"},{"uid":"73266964-62"},{"uid":"73266964-54"}]},"73266964-12":{"id":"/home/runner/work/table/table/shared/src/api-client/utils.ts","moduleParts":{"settings-form.umd.js":"73266964-13"},"imported":[{"uid":"73266964-143"}],"importedBy":[{"uid":"73266964-138"},{"uid":"73266964-14"}]},"73266964-14":{"id":"/home/runner/work/table/table/shared/src/api-client/default-api-client.ts","moduleParts":{"settings-form.umd.js":"73266964-15"},"imported":[{"uid":"73266964-144"},{"uid":"73266964-12"},{"uid":"73266964-145"}],"importedBy":[{"uid":"73266964-138"}]},"73266964-16":{"id":"/home/runner/work/table/table/shared/src/api-client/facade-api-client.ts","moduleParts":{"settings-form.umd.js":"73266964-17"},"imported":[],"importedBy":[{"uid":"73266964-138"}]},"73266964-18":{"id":"/src/api-caller/request.ts","moduleParts":{"settings-form.umd.js":"73266964-19"},"imported":[{"uid":"73266964-127"}],"importedBy":[{"uid":"73266964-114"},{"uid":"73266964-20"},{"uid":"73266964-22"},{"uid":"73266964-24"},{"uid":"73266964-26"},{"uid":"73266964-36"},{"uid":"73266964-58"}]},"73266964-20":{"id":"/src/api-caller/account.ts","moduleParts":{"settings-form.umd.js":"73266964-21"},"imported":[{"uid":"73266964-18"}],"importedBy":[{"uid":"73266964-38"}]},"73266964-22":{"id":"/src/api-caller/api-key.ts","moduleParts":{"settings-form.umd.js":"73266964-23"},"imported":[{"uid":"73266964-18"}],"importedBy":[{"uid":"73266964-38"}]},"73266964-24":{"id":"/src/api-caller/datasource.ts","moduleParts":{"settings-form.umd.js":"73266964-25"},"imported":[{"uid":"73266964-18"}],"importedBy":[{"uid":"73266964-38"}]},"73266964-26":{"id":"/src/api-caller/role.ts","moduleParts":{"settings-form.umd.js":"73266964-27"},"imported":[{"uid":"73266964-18"}],"importedBy":[{"uid":"73266964-38"}]},"73266964-28":{"id":"/home/runner/work/table/table/node_modules/dayjs/esm/constant.js","moduleParts":{"settings-form.umd.js":"73266964-29"},"imported":[],"importedBy":[{"uid":"73266964-34"},{"uid":"73266964-32"}]},"73266964-30":{"id":"/home/runner/work/table/table/node_modules/dayjs/esm/locale/en.js","moduleParts":{"settings-form.umd.js":"73266964-31"},"imported":[],"importedBy":[{"uid":"73266964-34"}]},"73266964-32":{"id":"/home/runner/work/table/table/node_modules/dayjs/esm/utils.js","moduleParts":{"settings-form.umd.js":"73266964-33"},"imported":[{"uid":"73266964-28"}],"importedBy":[{"uid":"73266964-34"}]},"73266964-34":{"id":"/home/runner/work/table/table/node_modules/dayjs/esm/index.js","moduleParts":{"settings-form.umd.js":"73266964-35"},"imported":[{"uid":"73266964-28"},{"uid":"73266964-30"},{"uid":"73266964-32"}],"importedBy":[{"uid":"73266964-36"}]},"73266964-36":{"id":"/src/api-caller/sql_snippet.ts","moduleParts":{"settings-form.umd.js":"73266964-37"},"imported":[{"uid":"73266964-34"},{"uid":"73266964-18"}],"importedBy":[{"uid":"73266964-38"}]},"73266964-38":{"id":"/src/api-caller/index.ts","moduleParts":{"settings-form.umd.js":"73266964-39"},"imported":[{"uid":"73266964-20"},{"uid":"73266964-22"},{"uid":"73266964-24"},{"uid":"73266964-26"},{"uid":"73266964-36"}],"importedBy":[{"uid":"73266964-68"},{"uid":"73266964-78"},{"uid":"73266964-72"},{"uid":"73266964-84"},{"uid":"73266964-90"},{"uid":"73266964-86"},{"uid":"73266964-98"},{"uid":"73266964-102"},{"uid":"73266964-100"},{"uid":"73266964-106"},{"uid":"73266964-108"},{"uid":"73266964-112"},{"uid":"73266964-110"},{"uid":"73266964-76"},{"uid":"73266964-80"},{"uid":"73266964-88"},{"uid":"73266964-92"}]},"73266964-40":{"id":"/src/datasource/styles.ts","moduleParts":{"settings-form.umd.js":"73266964-41"},"imported":[],"importedBy":[{"uid":"73266964-68"},{"uid":"73266964-78"},{"uid":"73266964-72"},{"uid":"73266964-42"},{"uid":"73266964-60"},{"uid":"73266964-66"},{"uid":"73266964-76"},{"uid":"73266964-74"}]},"73266964-42":{"id":"/src/datasource/add-data-source/db-permission-tips.tsx","moduleParts":{"settings-form.umd.js":"73266964-43"},"imported":[{"uid":"73266964-10"},{"uid":"73266964-128"},{"uid":"73266964-130"},{"uid":"73266964-132"},{"uid":"73266964-40"}],"importedBy":[{"uid":"73266964-68"}]},"73266964-44":{"id":"/src/components/minimal-mocaco-editor.tsx","moduleParts":{"settings-form.umd.js":"73266964-45"},"imported":[{"uid":"73266964-10"},{"uid":"73266964-140"},{"uid":"73266964-131"}],"importedBy":[{"uid":"73266964-106"},{"uid":"73266964-108"},{"uid":"73266964-134"}]},"73266964-46":{"id":"/src/components/submit-form-button.tsx","moduleParts":{"settings-form.umd.js":"73266964-47"},"imported":[{"uid":"73266964-10"},{"uid":"73266964-128"},{"uid":"73266964-130"},{"uid":"73266964-132"}],"importedBy":[{"uid":"73266964-134"}]},"73266964-48":{"id":"/src/i18n/en.ts","moduleParts":{"settings-form.umd.js":"73266964-49"},"imported":[],"importedBy":[{"uid":"73266964-52"}]},"73266964-50":{"id":"/src/i18n/zh.ts","moduleParts":{"settings-form.umd.js":"73266964-51"},"imported":[],"importedBy":[{"uid":"73266964-52"}]},"73266964-52":{"id":"/src/i18n/i18n.ts","moduleParts":{"settings-form.umd.js":"73266964-53"},"imported":[{"uid":"73266964-146"},{"uid":"73266964-132"},{"uid":"73266964-147"},{"uid":"73266964-148"},{"uid":"73266964-48"},{"uid":"73266964-50"}],"importedBy":[{"uid":"73266964-54"}]},"73266964-54":{"id":"/src/i18n/i18next-context.tsx","moduleParts":{"settings-form.umd.js":"73266964-55"},"imported":[{"uid":"73266964-10"},{"uid":"73266964-131"},{"uid":"73266964-132"},{"uid":"73266964-52"}],"importedBy":[{"uid":"73266964-58"}]},"73266964-56":{"id":"/src/utils/load-monaco-editor.ts","moduleParts":{"settings-form.umd.js":"73266964-57"},"imported":[{"uid":"73266964-140"},{"uid":"73266964-131"}],"importedBy":[{"uid":"73266964-58"}]},"73266964-58":{"id":"/src/components/with-entry.tsx","moduleParts":{"settings-form.umd.js":"73266964-59"},"imported":[{"uid":"73266964-10"},{"uid":"73266964-131"},{"uid":"73266964-18"},{"uid":"73266964-54"},{"uid":"73266964-56"},{"uid":"73266964-128"}],"importedBy":[{"uid":"73266964-134"}]},"73266964-60":{"id":"/src/datasource/add-data-source/forms/database.tsx","moduleParts":{"settings-form.umd.js":"73266964-61"},"imported":[{"uid":"73266964-10"},{"uid":"73266964-128"},{"uid":"73266964-131"},{"uid":"73266964-136"},{"uid":"73266964-134"},{"uid":"73266964-40"},{"uid":"73266964-132"}],"importedBy":[{"uid":"73266964-68"}]},"73266964-62":{"id":"/src/datasource/components/function-string-field/function-string-editor.tsx","moduleParts":{"settings-form.umd.js":"73266964-63"},"imported":[{"uid":"73266964-10"},{"uid":"73266964-128"},{"uid":"73266964-140"}],"importedBy":[{"uid":"73266964-64"}]},"73266964-64":{"id":"/src/datasource/components/function-string-field/index.tsx","moduleParts":{"settings-form.umd.js":"73266964-65"},"imported":[{"uid":"73266964-10"},{"uid":"73266964-128"},{"uid":"73266964-130"},{"uid":"73266964-133"},{"uid":"73266964-131"},{"uid":"73266964-132"},{"uid":"73266964-62"}],"importedBy":[{"uid":"73266964-66"},{"uid":"73266964-74"}]},"73266964-66":{"id":"/src/datasource/add-data-source/forms/http.tsx","moduleParts":{"settings-form.umd.js":"73266964-67"},"imported":[{"uid":"73266964-10"},{"uid":"73266964-128"},{"uid":"73266964-136"},{"uid":"73266964-40"},{"uid":"73266964-64"},{"uid":"73266964-134"},{"uid":"73266964-132"}],"importedBy":[{"uid":"73266964-68"}]},"73266964-68":{"id":"/src/datasource/add-data-source/index.tsx","moduleParts":{"settings-form.umd.js":"73266964-69"},"imported":[{"uid":"73266964-10"},{"uid":"73266964-128"},{"uid":"73266964-129"},{"uid":"73266964-130"},{"uid":"73266964-131"},{"uid":"73266964-132"},{"uid":"73266964-38"},{"uid":"73266964-40"},{"uid":"73266964-42"},{"uid":"73266964-60"},{"uid":"73266964-66"}],"importedBy":[{"uid":"73266964-118"},{"uid":"73266964-78"}]},"73266964-70":{"id":"/src/datasource/components/data-source-icon.tsx","moduleParts":{"settings-form.umd.js":"73266964-71"},"imported":[{"uid":"73266964-10"},{"uid":"73266964-130"},{"uid":"73266964-128"}],"importedBy":[{"uid":"73266964-78"}]},"73266964-72":{"id":"/src/datasource/delete-data-source.tsx","moduleParts":{"settings-form.umd.js":"73266964-73"},"imported":[{"uid":"73266964-10"},{"uid":"73266964-128"},{"uid":"73266964-135"},{"uid":"73266964-129"},{"uid":"73266964-130"},{"uid":"73266964-132"},{"uid":"73266964-38"},{"uid":"73266964-40"}],"importedBy":[{"uid":"73266964-118"},{"uid":"73266964-78"}]},"73266964-74":{"id":"/src/datasource/edit-data-source/forms/http.tsx","moduleParts":{"settings-form.umd.js":"73266964-75"},"imported":[{"uid":"73266964-10"},{"uid":"73266964-128"},{"uid":"73266964-136"},{"uid":"73266964-132"},{"uid":"73266964-134"},{"uid":"73266964-64"},{"uid":"73266964-40"}],"importedBy":[{"uid":"73266964-76"}]},"73266964-76":{"id":"/src/datasource/edit-data-source/index.tsx","moduleParts":{"settings-form.umd.js":"73266964-77"},"imported":[{"uid":"73266964-10"},{"uid":"73266964-128"},{"uid":"73266964-129"},{"uid":"73266964-130"},{"uid":"73266964-131"},{"uid":"73266964-38"},{"uid":"73266964-40"},{"uid":"73266964-74"},{"uid":"73266964-132"}],"importedBy":[{"uid":"73266964-78"}]},"73266964-78":{"id":"/src/datasource/data-source-list.tsx","moduleParts":{"settings-form.umd.js":"73266964-79"},"imported":[{"uid":"73266964-10"},{"uid":"73266964-128"},{"uid":"73266964-133"},{"uid":"73266964-132"},{"uid":"73266964-38"},{"uid":"73266964-134"},{"uid":"73266964-68"},{"uid":"73266964-70"},{"uid":"73266964-72"},{"uid":"73266964-76"},{"uid":"73266964-40"}],"importedBy":[{"uid":"73266964-118"}]},"73266964-80":{"id":"/src/account/role-selector.tsx","moduleParts":{"settings-form.umd.js":"73266964-81"},"imported":[{"uid":"73266964-10"},{"uid":"73266964-128"},{"uid":"73266964-133"},{"uid":"73266964-131"},{"uid":"73266964-132"},{"uid":"73266964-38"}],"importedBy":[{"uid":"73266964-84"},{"uid":"73266964-98"},{"uid":"73266964-88"}]},"73266964-82":{"id":"/src/account/styles.ts","moduleParts":{"settings-form.umd.js":"73266964-83"},"imported":[],"importedBy":[{"uid":"73266964-84"},{"uid":"73266964-90"},{"uid":"73266964-86"},{"uid":"73266964-94"},{"uid":"73266964-88"},{"uid":"73266964-92"}]},"73266964-84":{"id":"/src/account/add-account.tsx","moduleParts":{"settings-form.umd.js":"73266964-85"},"imported":[{"uid":"73266964-10"},{"uid":"73266964-128"},{"uid":"73266964-129"},{"uid":"73266964-131"},{"uid":"73266964-136"},{"uid":"73266964-130"},{"uid":"73266964-38"},{"uid":"73266964-134"},{"uid":"73266964-80"},{"uid":"73266964-82"},{"uid":"73266964-132"}],"importedBy":[{"uid":"73266964-119"},{"uid":"73266964-90"}]},"73266964-86":{"id":"/src/account/delete-account.tsx","moduleParts":{"settings-form.umd.js":"73266964-87"},"imported":[{"uid":"73266964-10"},{"uid":"73266964-128"},{"uid":"73266964-135"},{"uid":"73266964-129"},{"uid":"73266964-130"},{"uid":"73266964-132"},{"uid":"73266964-38"},{"uid":"73266964-82"}],"importedBy":[{"uid":"73266964-119"},{"uid":"73266964-90"}]},"73266964-88":{"id":"/src/account/edit-account.tsx","moduleParts":{"settings-form.umd.js":"73266964-89"},"imported":[{"uid":"73266964-10"},{"uid":"73266964-128"},{"uid":"73266964-129"},{"uid":"73266964-130"},{"uid":"73266964-131"},{"uid":"73266964-136"},{"uid":"73266964-132"},{"uid":"73266964-38"},{"uid":"73266964-134"},{"uid":"73266964-80"},{"uid":"73266964-82"}],"importedBy":[{"uid":"73266964-90"}]},"73266964-90":{"id":"/src/account/account-list.tsx","moduleParts":{"settings-form.umd.js":"73266964-91"},"imported":[{"uid":"73266964-10"},{"uid":"73266964-128"},{"uid":"73266964-133"},{"uid":"73266964-132"},{"uid":"73266964-38"},{"uid":"73266964-134"},{"uid":"73266964-84"},{"uid":"73266964-86"},{"uid":"73266964-88"},{"uid":"73266964-82"}],"importedBy":[{"uid":"73266964-119"}]},"73266964-92":{"id":"/src/account/login/form.tsx","moduleParts":{"settings-form.umd.js":"73266964-93"},"imported":[{"uid":"73266964-10"},{"uid":"73266964-128"},{"uid":"73266964-129"},{"uid":"73266964-136"},{"uid":"73266964-38"},{"uid":"73266964-82"},{"uid":"73266964-134"},{"uid":"73266964-132"}],"importedBy":[{"uid":"73266964-94"}]},"73266964-94":{"id":"/src/account/login/index.tsx","moduleParts":{"settings-form.umd.js":"73266964-95"},"imported":[{"uid":"73266964-10"},{"uid":"73266964-128"},{"uid":"73266964-134"},{"uid":"73266964-82"},{"uid":"73266964-92"}],"importedBy":[{"uid":"73266964-119"}]},"73266964-96":{"id":"/src/api-key/styles.ts","moduleParts":{"settings-form.umd.js":"73266964-97"},"imported":[],"importedBy":[{"uid":"73266964-98"},{"uid":"73266964-102"},{"uid":"73266964-100"}]},"73266964-98":{"id":"/src/api-key/add-api-key.tsx","moduleParts":{"settings-form.umd.js":"73266964-99"},"imported":[{"uid":"73266964-10"},{"uid":"73266964-128"},{"uid":"73266964-135"},{"uid":"73266964-129"},{"uid":"73266964-131"},{"uid":"73266964-136"},{"uid":"73266964-80"},{"uid":"73266964-38"},{"uid":"73266964-134"},{"uid":"73266964-96"},{"uid":"73266964-132"},{"uid":"73266964-130"}],"importedBy":[{"uid":"73266964-120"},{"uid":"73266964-102"}]},"73266964-100":{"id":"/src/api-key/delete-api-key.tsx","moduleParts":{"settings-form.umd.js":"73266964-101"},"imported":[{"uid":"73266964-10"},{"uid":"73266964-128"},{"uid":"73266964-135"},{"uid":"73266964-129"},{"uid":"73266964-130"},{"uid":"73266964-132"},{"uid":"73266964-38"},{"uid":"73266964-96"}],"importedBy":[{"uid":"73266964-120"},{"uid":"73266964-102"}]},"73266964-102":{"id":"/src/api-key/api-key-list.tsx","moduleParts":{"settings-form.umd.js":"73266964-103"},"imported":[{"uid":"73266964-10"},{"uid":"73266964-128"},{"uid":"73266964-133"},{"uid":"73266964-132"},{"uid":"73266964-38"},{"uid":"73266964-134"},{"uid":"73266964-98"},{"uid":"73266964-100"},{"uid":"73266964-96"}],"importedBy":[{"uid":"73266964-120"}]},"73266964-104":{"id":"/src/sql_snippet/styles.ts","moduleParts":{"settings-form.umd.js":"73266964-105"},"imported":[],"importedBy":[{"uid":"73266964-106"},{"uid":"73266964-108"},{"uid":"73266964-112"},{"uid":"73266964-110"}]},"73266964-106":{"id":"/src/sql_snippet/add-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"73266964-107"},"imported":[{"uid":"73266964-10"},{"uid":"73266964-128"},{"uid":"73266964-129"},{"uid":"73266964-130"},{"uid":"73266964-131"},{"uid":"73266964-136"},{"uid":"73266964-132"},{"uid":"73266964-38"},{"uid":"73266964-134"},{"uid":"73266964-44"},{"uid":"73266964-104"}],"importedBy":[{"uid":"73266964-121"},{"uid":"73266964-112"}]},"73266964-108":{"id":"/src/sql_snippet/update-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"73266964-109"},"imported":[{"uid":"73266964-10"},{"uid":"73266964-128"},{"uid":"73266964-129"},{"uid":"73266964-130"},{"uid":"73266964-131"},{"uid":"73266964-136"},{"uid":"73266964-38"},{"uid":"73266964-44"},{"uid":"73266964-104"},{"uid":"73266964-134"},{"uid":"73266964-132"}],"importedBy":[{"uid":"73266964-121"},{"uid":"73266964-112"}]},"73266964-110":{"id":"/src/sql_snippet/delete-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"73266964-111"},"imported":[{"uid":"73266964-10"},{"uid":"73266964-128"},{"uid":"73266964-135"},{"uid":"73266964-129"},{"uid":"73266964-130"},{"uid":"73266964-132"},{"uid":"73266964-38"},{"uid":"73266964-104"}],"importedBy":[{"uid":"73266964-121"},{"uid":"73266964-112"}]},"73266964-112":{"id":"/src/sql_snippet/sql_snippet-list.tsx","moduleParts":{"settings-form.umd.js":"73266964-113"},"imported":[{"uid":"73266964-10"},{"uid":"73266964-128"},{"uid":"73266964-137"},{"uid":"73266964-133"},{"uid":"73266964-38"},{"uid":"73266964-106"},{"uid":"73266964-110"},{"uid":"73266964-104"},{"uid":"73266964-130"},{"uid":"73266964-132"},{"uid":"73266964-134"},{"uid":"73266964-108"}],"importedBy":[{"uid":"73266964-121"}]},"73266964-114":{"id":"/src/index.ts","moduleParts":{"settings-form.umd.js":"73266964-115"},"imported":[{"uid":"73266964-118"},{"uid":"73266964-119"},{"uid":"73266964-120"},{"uid":"73266964-121"},{"uid":"73266964-18"},{"uid":"73266964-122"},{"uid":"73266964-123"},{"uid":"73266964-124"},{"uid":"73266964-125"},{"uid":"73266964-126"},{"uid":"73266964-116","dynamic":true}],"importedBy":[],"isEntry":true},"73266964-116":{"id":"/package.json","moduleParts":{"settings-form.umd.js":"73266964-117"},"imported":[],"importedBy":[{"uid":"73266964-114"}]},"73266964-118":{"id":"/src/datasource/index.tsx","moduleParts":{},"imported":[{"uid":"73266964-68"},{"uid":"73266964-78"},{"uid":"73266964-72"}],"importedBy":[{"uid":"73266964-114"}]},"73266964-119":{"id":"/src/account/index.tsx","moduleParts":{},"imported":[{"uid":"73266964-84"},{"uid":"73266964-90"},{"uid":"73266964-86"},{"uid":"73266964-94"}],"importedBy":[{"uid":"73266964-114"}]},"73266964-120":{"id":"/src/api-key/index.tsx","moduleParts":{},"imported":[{"uid":"73266964-98"},{"uid":"73266964-102"},{"uid":"73266964-100"}],"importedBy":[{"uid":"73266964-114"}]},"73266964-121":{"id":"/src/sql_snippet/index.tsx","moduleParts":{},"imported":[{"uid":"73266964-106"},{"uid":"73266964-108"},{"uid":"73266964-112"},{"uid":"73266964-110"}],"importedBy":[{"uid":"73266964-114"}]},"73266964-122":{"id":"/src/api-caller/account.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"73266964-114"}]},"73266964-123":{"id":"/src/api-caller/api-key.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"73266964-114"}]},"73266964-124":{"id":"/src/api-caller/datasource.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"73266964-114"}]},"73266964-125":{"id":"/src/api-caller/role.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"73266964-114"}]},"73266964-126":{"id":"/src/api-caller/sql_snippet.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"73266964-114"}]},"73266964-127":{"id":"/home/runner/work/table/table/shared/src/index.ts","moduleParts":{},"imported":[{"uid":"73266964-138"}],"importedBy":[{"uid":"73266964-18"}]},"73266964-128":{"id":"@mantine/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"73266964-68"},{"uid":"73266964-78"},{"uid":"73266964-72"},{"uid":"73266964-84"},{"uid":"73266964-90"},{"uid":"73266964-86"},{"uid":"73266964-94"},{"uid":"73266964-98"},{"uid":"73266964-102"},{"uid":"73266964-100"},{"uid":"73266964-106"},{"uid":"73266964-108"},{"uid":"73266964-112"},{"uid":"73266964-110"},{"uid":"73266964-42"},{"uid":"73266964-60"},{"uid":"73266964-66"},{"uid":"73266964-70"},{"uid":"73266964-76"},{"uid":"73266964-80"},{"uid":"73266964-88"},{"uid":"73266964-92"},{"uid":"73266964-64"},{"uid":"73266964-46"},{"uid":"73266964-58"},{"uid":"73266964-74"},{"uid":"73266964-62"}],"isExternal":true},"73266964-129":{"id":"@mantine/notifications","moduleParts":{},"imported":[],"importedBy":[{"uid":"73266964-68"},{"uid":"73266964-72"},{"uid":"73266964-84"},{"uid":"73266964-86"},{"uid":"73266964-98"},{"uid":"73266964-100"},{"uid":"73266964-106"},{"uid":"73266964-108"},{"uid":"73266964-110"},{"uid":"73266964-76"},{"uid":"73266964-88"},{"uid":"73266964-92"}],"isExternal":true},"73266964-130":{"id":"@tabler/icons-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"73266964-68"},{"uid":"73266964-72"},{"uid":"73266964-84"},{"uid":"73266964-86"},{"uid":"73266964-98"},{"uid":"73266964-100"},{"uid":"73266964-106"},{"uid":"73266964-108"},{"uid":"73266964-112"},{"uid":"73266964-110"},{"uid":"73266964-42"},{"uid":"73266964-70"},{"uid":"73266964-76"},{"uid":"73266964-88"},{"uid":"73266964-64"},{"uid":"73266964-46"}],"isExternal":true},"73266964-131":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"73266964-68"},{"uid":"73266964-84"},{"uid":"73266964-98"},{"uid":"73266964-106"},{"uid":"73266964-108"},{"uid":"73266964-60"},{"uid":"73266964-76"},{"uid":"73266964-80"},{"uid":"73266964-88"},{"uid":"73266964-44"},{"uid":"73266964-64"},{"uid":"73266964-58"},{"uid":"73266964-142"},{"uid":"73266964-54"},{"uid":"73266964-56"}],"isExternal":true},"73266964-132":{"id":"react-i18next","moduleParts":{},"imported":[],"importedBy":[{"uid":"73266964-68"},{"uid":"73266964-78"},{"uid":"73266964-72"},{"uid":"73266964-84"},{"uid":"73266964-90"},{"uid":"73266964-86"},{"uid":"73266964-98"},{"uid":"73266964-102"},{"uid":"73266964-100"},{"uid":"73266964-106"},{"uid":"73266964-108"},{"uid":"73266964-112"},{"uid":"73266964-110"},{"uid":"73266964-42"},{"uid":"73266964-60"},{"uid":"73266964-66"},{"uid":"73266964-76"},{"uid":"73266964-80"},{"uid":"73266964-88"},{"uid":"73266964-92"},{"uid":"73266964-64"},{"uid":"73266964-46"},{"uid":"73266964-74"},{"uid":"73266964-54"},{"uid":"73266964-52"}],"isExternal":true},"73266964-133":{"id":"ahooks","moduleParts":{},"imported":[],"importedBy":[{"uid":"73266964-78"},{"uid":"73266964-90"},{"uid":"73266964-102"},{"uid":"73266964-112"},{"uid":"73266964-80"},{"uid":"73266964-64"}],"isExternal":true},"73266964-134":{"id":"/src/components/index.ts","moduleParts":{},"imported":[{"uid":"73266964-44"},{"uid":"73266964-46"},{"uid":"73266964-58"}],"importedBy":[{"uid":"73266964-78"},{"uid":"73266964-84"},{"uid":"73266964-90"},{"uid":"73266964-94"},{"uid":"73266964-98"},{"uid":"73266964-102"},{"uid":"73266964-106"},{"uid":"73266964-108"},{"uid":"73266964-112"},{"uid":"73266964-60"},{"uid":"73266964-66"},{"uid":"73266964-88"},{"uid":"73266964-92"},{"uid":"73266964-74"}]},"73266964-135":{"id":"@mantine/modals","moduleParts":{},"imported":[],"importedBy":[{"uid":"73266964-72"},{"uid":"73266964-86"},{"uid":"73266964-98"},{"uid":"73266964-100"},{"uid":"73266964-110"}],"isExternal":true},"73266964-136":{"id":"react-hook-form","moduleParts":{},"imported":[],"importedBy":[{"uid":"73266964-84"},{"uid":"73266964-98"},{"uid":"73266964-106"},{"uid":"73266964-108"},{"uid":"73266964-60"},{"uid":"73266964-66"},{"uid":"73266964-88"},{"uid":"73266964-92"},{"uid":"73266964-74"}],"isExternal":true},"73266964-137":{"id":"@mantine/code-highlight","moduleParts":{},"imported":[],"importedBy":[{"uid":"73266964-112"}],"isExternal":true},"73266964-138":{"id":"/home/runner/work/table/table/shared/src/api-client/index.ts","moduleParts":{},"imported":[{"uid":"73266964-141"},{"uid":"73266964-12"},{"uid":"73266964-14"},{"uid":"73266964-16"}],"importedBy":[{"uid":"73266964-127"}]},"73266964-139":{"id":"\u0000commonjsHelpers.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"73266964-10"},{"uid":"73266964-4"},{"uid":"73266964-8"}]},"73266964-140":{"id":"@monaco-editor/react","moduleParts":{},"imported":[],"importedBy":[{"uid":"73266964-44"},{"uid":"73266964-62"},{"uid":"73266964-56"}],"isExternal":true},"73266964-141":{"id":"/home/runner/work/table/table/shared/src/api-client/types.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"73266964-138"}]},"73266964-142":{"id":"\u0000react?commonjs-external","moduleParts":{},"imported":[{"uid":"73266964-131"}],"importedBy":[{"uid":"73266964-4"},{"uid":"73266964-8"}]},"73266964-143":{"id":"crypto-js","moduleParts":{},"imported":[],"importedBy":[{"uid":"73266964-12"}],"isExternal":true},"73266964-144":{"id":"lodash","moduleParts":{},"imported":[],"importedBy":[{"uid":"73266964-14"}],"isExternal":true},"73266964-145":{"id":"axios","moduleParts":{},"imported":[],"importedBy":[{"uid":"73266964-14"}],"isExternal":true},"73266964-146":{"id":"i18next","moduleParts":{},"imported":[],"importedBy":[{"uid":"73266964-52"}],"isExternal":true},"73266964-147":{"id":"i18next-browser-languagedetector","moduleParts":{},"imported":[],"importedBy":[{"uid":"73266964-52"}],"isExternal":true},"73266964-148":{"id":"intl-pluralrules","moduleParts":{},"imported":[],"importedBy":[{"uid":"73266964-52"}],"isExternal":true}},"env":{"rollup":"3.29.4"},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
4826
4826
 
4827
4827
  const run = () => {
4828
4828
  const width = window.innerWidth;
package/dist/version.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "semver": "14.60.10",
3
- "version": "a479a72c7af11e4e38ad474fe1b81cea300392e0"
2
+ "semver": "14.60.11-0",
3
+ "version": "a107e8d0aa3378dbf27e1a48868b339f72fbd261"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/settings-form",
3
- "version": "14.60.10",
3
+ "version": "14.60.11-0",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "url": "https://github.com/merico-ai/table"