import o from"./TopBar.8157552e.js";import i from"./Container.f87d9f62.js";import n from"./Content.e22a1fd6.js";import m from"./Page.3927bdbf.js";import a from"./PageHeader.a5f457a5.js";import s from"./PageHeaderTitle.3ed783af.js";import p from"./PageBody.dec1fae1.js";import f from"./Button.f17dffc9.js";import u from"./List.d5d221b1.js";import l from"./ListItem.ee1e88fb.js";import _ from"./StatusBubble.4f1d8322.js";import c from"./NotificationBadge.b6fae3d5.js";import g from"./MainLayout.17290af6.js";import d from"./SettingsLayout.3305573b.js";import y from"./SettingsSegment.e8fdfb41.js";import v from"./FormInput.7debc7c5.js";import x from"./FormTextarea.5b8e3d32.js";import b from"./FormSelect.6e35ae7d.js";import S from"./Form.2cdcadd9.js";import h from"./FormActions.83ccca91.js";import C from"./Tabs.1a21a1c7.js";import{n as F}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"./notification.db2f2ae7.js";import"./app.79e1f42d.js";import"./FormGroup.efd02a6a.js";import"./Label.9d0d3ee0.js";import"./ErrorText.b141a597.js";import"./HelperText.14a7ed0b.js";import"./IconClipboard.8551be1b.js";import"./IconKey.455a255f.js";const T={metaInfo(){return{title:`${this.__("Create alert")}`}},layout:g,components:{TopBar:o,Container:i,Content:n,Page:m,PageHeader:a,PageHeaderTitle:s,PageBody:p,Button:f,List:u,ListItem:l,StatusBubble:_,NotificationBadge:c,FormInput:v,FormSelect:b,SettingsLayout:d,SettingsSegment:y,Form:S,FormActions:h,FormTextarea:x,Tabs:C},props:{providers:Object},data(){return{sending:!1,form:{type:"info",message:null,expires_at:null}}},methods:{submit(){this.$inertia.post(this.route("admin.alerts.store"),this.form,{onStart:()=>this.sending=!0,onFinish:()=>this.sending=!1})}}};var k=function(){var r=this,t=r._self._c;return t("Page",[t("TopBar"),t("Content",[t("Container",[t("PageHeader",{scopedSlots:r._u([{key:"start",fn:function(){return[t("PageHeaderTitle",[r._v(r._s(r.__("Create alert")))])]},proxy:!0}])}),t("PageBody",[t("SettingsLayout",{scopedSlots:r._u([{key:"nav",fn:function(){return[t("Tabs")]},proxy:!0},{key:"segments",fn:function(){return[t("SettingsSegment",{scopedSlots:r._u([{key:"title",fn:function(){return[r._v(r._s(r.__("Create")))]},proxy:!0},{key:"subtitle",fn:function(){return[r._v(" "+r._s(r.__("Create a new alert here to notify your end users about a specific event. This could be anything from server maintenance to panel updates."))+" ")]},proxy:!0},{key:"form",fn:function(){return[t("form",{staticClass:"space-y-4",on:{submit:function(e){return e.preventDefault(),r.submit.apply(null,arguments)}}},[t("FormTextarea",{attrs:{label:r.__("Message"),errors:r.$page.props.errors.message},model:{value:r.form.message,callback:function(e){r.$set(r.form,"message",e)},expression:"form.message"}}),t("FormInput",{attrs:{label:r.__("Expires at"),placeholder:"2020-01-01 00:00:00",errors:r.$page.props.errors.expires_at},model:{value:r.form.expires_at,callback:function(e){r.$set(r.form,"expires_at",e)},expression:"form.expires_at"}}),t("FormSelect",{attrs:{errors:r.$page.props.errors.type,label:r.__("Type")},model:{value:r.form.type,callback:function(e){r.$set(r.form,"type",e)},expression:"form.type"}},[t("option",{attrs:{value:"info"}},[r._v(r._s(r.__("Informational")))]),t("option",{attrs:{value:"warning"}},[r._v(r._s(r.__("Warning")))]),t("option",{attrs:{value:"danger"}},[r._v(r._s(r.__("Danger")))])]),t("FormActions",[t("Button",[r._v(r._s(r.__("Save")))])],1)],1)]},proxy:!0}])})]},proxy:!0}])})],1)],1)],1)],1)},B=[],P=F(T,k,B,!1,null,null,null,null);const kr=P.exports;export{kr as default};
