import i from"./Confirm.888708f1.js";import o from"./Notification.d432029f.js";import p from"./IconDanger.2f6e115d.js";import c from"./IconWarning.ca92fb65.js";import l from"./IconSuccess.09b85716.js";import f from"./IconInfo.ad7662f9.js";import m from"./SearchPalette.282fdde5.js";import{u as a}from"./notification.db2f2ae7.js";import{n as u}from"./plugin-vue2_normalizer.000ba15c.js";import"./app.79e1f42d.js";const g={components:{Confirm:i,Notification:o,IconDanger:p,IconWarning:c,IconSuccess:l,IconInfo:f,SearchPalette:m},data(){return{searchOpen:!1}},computed:{backdropIsOpen(){return this.$store.state.backdrop.isOpen},notifications(){return this.$store.state.notification.notifications}},watch:{"$page.props.flash.success":function(){this.$page.props.flash.success&&(a({variant:"success",title:this.__("Success"),message:this.$page.props.flash.success}),this.$page.props.flash.success=null)},"$page.props.flash.info":function(){this.$page.props.flash.info&&(a({variant:"info",title:this.__("Info"),message:this.$page.props.flash.info}),this.$page.props.flash.info=null)},"$page.props.flash.error":function(){this.$page.props.flash.error&&(a({variant:"danger",title:this.__("Error"),message:this.$page.props.flash.error}),this.$page.props.flash.error=null)}},methods:{useNotification:a}};var h=function(){var t=this,s=t._self._c;return s("div",{staticClass:"antialiased font-body text-high-emphasis bg-surface"},[t.$page.props.settings.demo?s("div",{staticClass:"relative bg-primary text-white"},[t._m(0)]):t._e(),t.$page.props.system_alert?s("div",{staticClass:"relative text-white",class:{"bg-primary":t.$page.props.system_alert.type==="info","bg-warning":t.$page.props.system_alert.type==="warning","bg-danger":t.$page.props.system_alert.type==="danger"}},[s("div",{staticClass:"max-w-screen-xl mx-auto py-3 px-3 sm:px-6 lg:px-8"},[s("div",{staticClass:"pr-16 sm:text-center sm:px-16 font-medium text-on-primary",domProps:{innerHTML:t._s(t.$page.props.system_alert.message_html)}})])]):t._e(),s("PortalTarget",{attrs:{name:"modals"}}),s("div",{staticClass:"fixed inset-0 z-50 flex items-start justify-end p-5 pointer-events-none"},[s("TransitionGroup",{staticClass:"flex flex-col space-y-2",attrs:{"enter-active-class":"transition ease-out transform duration-fast","enter-class":"translate-x-6 opacity-0","enter-to-class":"translate-x-0 opacity-100","leave-active-class":"transition ease-in transform duration-fast","leave-class":"opacity-100","leave-to-class":"scale-50 -translate-y-6 opacity-0",tag:"div"}},t._l(t.notifications,function(e,n){return s("Notification",{key:n,scopedSlots:t._u([{key:"prefix",fn:function(){return[e.variant==="danger"||e.variant==="error"?s("IconDanger",{staticClass:"flex-shrink-0 w-6 h-6 text-danger"}):t._e(),e.variant==="success"?s("IconSuccess",{staticClass:"flex-shrink-0 w-6 h-6 text-success"}):t._e(),e.variant==="info"?s("IconInfo",{staticClass:"flex-shrink-0 w-6 h-6 text-primary"}):t._e(),e.variant==="warning"?s("IconWarning",{staticClass:"flex-shrink-0 w-6 h-6 text-warning"}):t._e()]},proxy:!0},{key:"title",fn:function(){return[t._v(t._s(e.title))]},proxy:!0},{key:"subtitle",fn:function(){return[t._v(t._s(e.message))]},proxy:!0}],null,!0)})}),1)],1),s("Transition",{attrs:{"enter-active-class":"transition ease-in-out duration-fast","leave-active-class":"transition ease-in-out duration-fast","enter-class":"opacity-0","enter-to-class":"opacity-100","leave-class":"opacity-100","leave-to-class":"opacity-0"}},[t.backdropIsOpen?s("div",{staticClass:"fixed inset-0 z-40 bg-backdrop bf-blur"}):t._e()]),s("SearchPalette"),s("Transition",{attrs:{"enter-active-class":"transition ease-in-out transform duration-fast","leave-active-class":"transition ease-in-out transform duration-fast","enter-class":"translate-y-8 opacity-0","enter-to-class":"translate-y-0 opacity-100","leave-class":"opacity-100","leave-to-class":"opacity-0"}},[s("Confirm")],1),t._t("default")],2)},v=[function(){var r=this,t=r._self._c;return t("div",{staticClass:"max-w-screen-xl mx-auto py-3 px-3 sm:px-6 lg:px-8"},[t("div",{staticClass:"pr-16 sm:text-center sm:px-16"},[t("p",{staticClass:"font-medium text-on-primary"},[r._v(" You are currently in a demo environment. ")])])])}],_=u(g,h,v,!1,null,null,null,null);const T=_.exports;export{T as default};
