import a from"./TopBar.8157552e.js";import s from"./Container.f87d9f62.js";import n from"./Content.e22a1fd6.js";import m from"./Page.3927bdbf.js";import p from"./PageHeader.a5f457a5.js";import l from"./PageHeaderTitle.3ed783af.js";import u from"./PageBody.dec1fae1.js";import _ from"./Button.f17dffc9.js";import c from"./List.d5d221b1.js";import f from"./ListItem.ee1e88fb.js";import d from"./StatusBubble.4f1d8322.js";import v from"./NotificationBadge.b6fae3d5.js";import y from"./MainLayout.17290af6.js";import b from"./SettingsLayout.3305573b.js";import g from"./SettingsSegment.e8fdfb41.js";import T from"./Pagination.a93b6f75.js";import{u as i}from"./notification.db2f2ae7.js";import h from"./Tabs.de9dab32.js";import x from"./Table.5d32c28c.js";import S from"./TableHead.1eed799b.js";import P from"./TableHeader.44bdf327.js";import k from"./TableRow.6382a60a.js";import B from"./TableBody.c78326a3.js";import C from"./TableData.c69a64ca.js";import{n as H}from"./plugin-vue2_normalizer.000ba15c.js";import"./TopBar.27b84f08.js";import"./Dropdown.d1060583.js";import"./DropdownList.02c48c2f.js";import"./DropdownListItem.ac31464c.js";import"./IconMoon.ade3e41b.js";import"./IconSun.8809e5d7.js";import"./IconSearch.27dac870.js";import"./IconButton.eadc8d3d.js";import"./Breadcrumbs.d39e2491.js";import"./BreadcrumbsItem.da3f8155.js";import"./TopBarTabBarContainer.3bdb2bb3.js";import"./TabBar.c1d45ed5.js";import"./TabBarItem.e9886f0a.js";import"./Confirm.888708f1.js";import"./Notification.d432029f.js";import"./IconDanger.2f6e115d.js";import"./IconWarning.ca92fb65.js";import"./IconSuccess.09b85716.js";import"./IconInfo.ad7662f9.js";import"./SearchPalette.282fdde5.js";import"./app.79e1f42d.js";const w={layout:y,metaInfo(){return{title:`${this.__("Synchronize providers")}`}},components:{TopBar:a,Container:s,Content:n,Page:m,PageHeader:p,PageHeaderTitle:l,PageBody:u,Button:_,List:c,ListItem:f,StatusBubble:d,NotificationBadge:v,SettingsLayout:b,SettingsSegment:g,Pagination:T,Tabs:h,Table:x,TableHead:S,TableHeader:P,TableRow:k,TableBody:B,TableData:C},props:{availableProviders:Array},methods:{useNotification:i,syncProvider(o){window.axios.post(this.route("admin.services.providers.sync",o.id)).then(()=>{i({variant:"success",title:"Providers",message:"Provider has been synchronized to this system"})})}}};var z=function(){var t=this,e=t._self._c;return e("Page",[e("TopBar"),e("Content",[e("Container",[e("PageHeader",{scopedSlots:t._u([{key:"start",fn:function(){return[e("PageHeaderTitle",[t._v(t._s(t.__("Synchronize providers")))])]},proxy:!0}])}),e("PageBody",[e("SettingsLayout",{scopedSlots:t._u([{key:"nav",fn:function(){return[e("Tabs")]},proxy:!0},{key:"segments",fn:function(){return[e("SettingsSegment",{scopedSlots:t._u([{key:"title",fn:function(){return[t._v(t._s(t.__("Overview")))]},proxy:!0},{key:"subtitle",fn:function(){return[t._v(t._s(t.__("You can synchronize your server providers here. After that, you'll be able to set a default provider per package. So servers created by a user via a package will always be put on that selected provider.")))]},proxy:!0},{key:"content",fn:function(){return[e("Table",{attrs:{caption:"Available providers overview"}},[e("TableHead",[e("TableRow",[e("TableHeader",[t._v(t._s(t.__("Name")))]),e("TableHeader",[t._v(t._s(t.__("Label")))]),e("TableHeader")],1)],1),e("TableBody",t._l(t.availableProviders,function(r){return e("TableRow",{key:r.id},[e("TableData",{staticClass:"space-y-2"},[e("div",[t._v(" "+t._s(r.name)+" ")]),e("div",{staticClass:"space-x-1 text-xs"},[e("span",{staticClass:"text-medium-emphasis"},[t._v(t._s(r.provider.plans.length)+" plan(s)")]),e("span",[t._v("\xB7")]),e("span",{staticClass:"text-medium-emphasis"},[t._v(t._s(r.provider.regions.length)+" region(s)")])])]),e("TableData",[t._v(t._s(r.label))]),e("TableData",{staticClass:"text-right"},[e("Button",{attrs:{size:"sm"},on:{click:function(R){return t.syncProvider(r)}}},[t._v(" "+t._s(t.__("Synchronize"))+" ")])],1)],1)}),1)],1)]},proxy:!0}])})]},proxy:!0}])})],1)],1)],1)],1)},L=[],D=H(w,z,L,!1,null,null,null,null);const Bt=D.exports;export{Bt as default};
