import{_ as d,g as m,a as l}from"./Grid-DJ-rVKld.js";import{a as u,f as p,d as f}from"./FormItem-CHgZe7qM.js";import{d as c,E as s,a$ as a,U as h,bK as r,ba as g,a as v,o as _,b as I}from"./index-DSCno0m2.js";const $=Object.assign(Object.assign({},l),f),V=c({__GRID_ITEM__:!0,name:"FormItemGridItem",alias:["FormItemGi"],props:$,setup(){const e=h(null);return{formItemInstRef:e,validate:(...o)=>{const{value:i}=e;if(i)return i.validate(...o)},restoreValidation:()=>{const{value:o}=e;o&&o.restoreValidation()}}},render(){return s(d,a(this.$.vnode.props||{},m),{default:()=>{const e=a(this.$props,p);return s(u,Object.assign({ref:"formItemInstRef"},e),this.$slots)}})}});function D(){return r({url:"/api/admin/providers/types",method:"get"})}function G(){return r({url:"/api/admin/providers",method:"get"})}function j(e){return r({url:"/api/admin/providers",method:"post",data:e})}function w(e,t){return r({url:`/api/admin/providers/${e}`,method:"put",data:t})}function y(e){return r({url:`/api/admin/providers/${e}`,method:"delete"})}function B(e){return r({url:`/api/admin/providers/${e}/toggle`,method:"patch"})}function F(e){return r({url:`/api/admin/providers/${e}/models`,method:"get"})}function N(e,t){return r({url:`/api/admin/providers/${e}/models`,method:"post",data:t})}function R(e,t,n){return r({url:`/api/admin/providers/${e}/models/${t}`,method:"put",data:n})}function T(e,t){return r({url:`/api/admin/providers/${e}/models/${t}`,method:"delete"})}function U(e,t){return r({url:`/api/admin/providers/${e}/models/${t}/toggle`,method:"patch"})}function x(){return r({url:"/api/admin/settings/default-models",method:"get"})}function A(e){return r({url:"/api/admin/settings/default-models",method:"put",data:e})}const M={class:"inline-block",viewBox:"0 0 32 32",width:"1em",height:"1em"};function P(e,t){return _(),v("svg",M,[...t[0]||(t[0]=[I("path",{fill:"currentColor",d:"M12 10H6.78A11 11 0 0 1 27 16h2A13 13 0 0 0 6 7.68V4H4v8h8Zm8 12h5.22A11 11 0 0 1 5 16H3a13 13 0 0 0 23 8.32V28h2v-8h-8Z"},null,-1)])])}const E=g({name:"carbon-renew",render:P});export{V as N,E as _,F as a,D as b,w as c,j as d,B as e,G as f,y as g,R as h,N as i,U as j,T as k,x as l,A as m};
