1 line
48 KiB
JavaScript
Vendored
1 line
48 KiB
JavaScript
Vendored
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1903,4094,2309],{1471:(e,t,s)=>{s.d(t,{b:()=>n});var a=s(7830);function n(e){var t=e.title,s=e.message,n=e.onConfirm;return a.Z.dispatch("confirmDelete/open",{title:t,message:s,onConfirm:function(){n(),a.Z.dispatch("confirmDelete/close")}})}},6392:(e,t,s)=>{s.d(t,{l:()=>n});var a=s(7830);function n(e){var t=e.title,s=e.message,n=e.variant,r=e.timeout;return a.Z.dispatch("notification/notify",{title:t,message:s,variant:n,timeout:r})}},9501:(e,t,s)=>{s.d(t,{Z:()=>_});const a={computed:{confirmDelete:function(){return this.$store.state.confirmDelete}},methods:{cancelConfirmDelete:function(){return this.$store.dispatch("confirmDelete/close")}}};var n=s(1900);const r=(0,n.Z)(a,(function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.confirmDelete.isOpen?s("div",{staticClass:"fixed inset-0 z-50 flex items-end justify-center p-2 sm:items-center"},[s("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.cancelConfirmDelete,expression:"cancelConfirmDelete"}],staticClass:"w-full max-w-xs overflow-hidden rounded shadow-2xl bg-surface-1"},[s("header",{staticClass:"px-4 py-6 space-y-2 text-center"},[s("h2",{staticClass:"font-medium text-body"},[e._v(e._s(e.confirmDelete.title))]),e._v(" "),s("p",{staticClass:"text-small text-medium-emphasis"},[e._v(e._s(e.confirmDelete.message))])]),e._v(" "),s("footer",{staticClass:"grid grid-cols-2 border-t divide-x border-low-emphasis divide-low-emphasis"},[s("button",{staticClass:"inline-flex items-center justify-center h-12 px-4 font-medium transition ease-in-out text-small focus:outline-none text-high-emphasis duration-fast",on:{click:function(t){return e.cancelConfirmDelete()}}},[e._v("\n "+e._s(e.__("Cancel"))+"\n ")]),e._v(" "),s("button",{staticClass:"inline-flex items-center justify-center h-12 px-4 font-medium transition ease-in-out text-small text-danger focus:outline-none duration-fast",on:{click:function(t){return e.confirmDelete.onConfirm()}}},[e._v("\n "+e._s(e.__("Confirm"))+"\n ")])])])]):e._e()}),[],!1,null,null,null).exports;const i=(0,n.Z)({},(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("li",{staticClass:"flex flex-row items-start w-full max-w-sm px-5 py-3 space-x-4 rounded shadow-2xl pointer-events-auto bg-overlay bf-blur"},[e._t("prefix"),e._v(" "),s("div",{staticClass:"mr-auto"},[s("p",{staticClass:"font-medium text-body"},[e._t("title")],2),e._v(" "),s("p",{staticClass:"text-small text-medium-emphasis"},[e._t("subtitle")],2)])],2)}),[],!1,null,null,null).exports;const l=(0,n.Z)({},(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("svg",{attrs:{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M7.938 2.016a.146.146 0 0 0-.054.057L1.027 13.74a.176.176 0 0 0-.002.183c.016.03.037.05.054.06.015.01.034.017.066.017h13.713a.12.12 0 0 0 .066-.017.163.163 0 0 0 .055-.06.176.176 0 0 0-.003-.183L8.12 2.073a.146.146 0 0 0-.054-.057A.13.13 0 0 0 8.002 2a.13.13 0 0 0-.064.016zm1.044-.45a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566z"}}),e._v(" "),s("path",{attrs:{d:"M7.002 12a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 5.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995z"}})])}),[],!1,null,null,null).exports;const o=(0,n.Z)({},(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("svg",{attrs:{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}}),e._v(" "),s("path",{attrs:{d:"M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995z"}})])}),[],!1,null,null,null).exports;const c=(0,n.Z)({},(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("svg",{attrs:{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}}),e._v(" "),s("path",{attrs:{"fill-rule":"evenodd",d:"M10.97 4.97a.75.75 0 0 1 1.071 1.05l-3.992 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.236.236 0 0 1 .02-.022z"}})])}),[],!1,null,null,null).exports;const u=(0,n.Z)({},(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("svg",{staticClass:"bi bi-info-circle",attrs:{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}}),e._v(" "),s("path",{attrs:{d:"M8.93 6.588l-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588z"}}),e._v(" "),s("circle",{attrs:{cx:"8",cy:"4.5",r:"1"}})])}),[],!1,null,null,null).exports;const d={data:function(){return{searchOpen:!1,search:"",results:[],timeout:null}},computed:{isSearching:function(){return""!==this.search.trim()}},watch:{search:function(e){this.results=null,this.loading=!0,this.getResults(),this.arrowNavigation={identifier:null,index:-1}}},mounted:function(){var e=this;document.addEventListener("keydown",this.handleKeydown),window.eventBus.$on("openSearch",(function(){e.openSearch()}))},destroyed:function(){this.timeout&&clearTimeout(this.timeout)},methods:{getResults:function(){var e=this;this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.search?(e.results=null,window.axios.get(e.route("search",{query:e.search})).then((function(t){e.loading=!1,e.totalResults=t.data.total,t.data.total?e.results=t.data.results:e.results=null}))):e.loading=!1}),300)},handleKeydown:function(e){this.isNotInputElement(e)&&191===e.keyCode&&(e.preventDefault(),e.stopPropagation(),this.openSearch()),27===e.keyCode&&this.closeSearch(),this.isNotInputElement(e)&&(e.ctrlKey||e.metaKey||this.$page.props.auth.user.keyboard_shortcuts&&("c"===e.key&&this.$inertia.visit(this.route("sites.index",{create:!0})),"p"===e.key&&this.$inertia.visit(this.route("profile.index"))))},openSearch:function(){var e=this;this.searchOpen=!0,this.$nextTick((function(){e.$refs.search&&e.$refs.search.focus()}))},closeSearch:function(){this.search="",this.searchOpen=!1,this.$refs.search&&this.$refs.search.blur()},isNotInputElement:function(e){var t=e.target.tagName;return Boolean("INPUT"!==t&&"TEXTAREA"!==t&&"code-editor"!==e.target.id&&!e.target.classList.contains("form-textarea"))}}};const p=(0,n.Z)(d,(function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.searchOpen?s("div",{staticClass:"w-full h-screen fixed inset-0 bg-backdrop bf-blur z-40 flex items-center flex-col"},[s("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closeSearch,expression:"closeSearch"}],staticClass:"w-full max-w-4xl p-8 space-y-4"},[s("input",{directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"}],ref:"search",staticClass:"w-full h-12 px-4 rounded bg-surface-1 shadow-md",attrs:{type:"text",placeholder:e.__("Type to search anything...")},domProps:{value:e.search},on:{input:function(t){t.target.composing||(e.search=t.target.value)}}}),e._v(" "),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-4 opacity-0 scale-95","enter-to-class":"translate-y-0 opacity-100 scale-100","leave-class":"translate-y-0 opacity-100 scale-100","leave-to-class":"translate-y-4 opacity-0 scale-95",mode:"out-in"}},[e.isSearching?s("div",{key:"results",staticClass:"rounded bg-surface-1 shadow-md overflow-hidden"},e._l(e.results,(function(t){return s("ul",{staticClass:"flex flex-col divide-y divide-low-emphasis"},[s("li",{staticClass:"px-4 py-2 bg-surface-2"},[s("h3",{staticClass:"text-small font-medium"},[e._v(e._s(t.label)+" ("+e._s(t.total)+")")])]),e._v(" "),e._l(t.results,(function(t){return s("li",[s("inertia-link",{staticClass:"px-4 py-3 block text-small",attrs:{href:t.route},on:{click:e.closeSearch}},[e._v("\n "+e._s(t.name)+"\n ")])],1)}))],2)})),0):s("div",{key:"hints",staticClass:"rounded bg-surface-1 shadow-md p-4"},[s("ul",{staticClass:"flex flex-col space-y-3"},[s("li",[s("h3",{staticClass:"text-small font-medium"},[e._v(e._s(e.__("All helpful key shortcuts")))])]),e._v(" "),s("li",{staticClass:"space-x-2 text-small"},[s("code",{staticClass:"rounded px-2 py-1 monospace border border-low-emphasis shadow-sm"},[e._v("/")]),e._v(" "),s("span",[e._v(e._s(e.__("Open search")))])]),e._v(" "),s("li",{staticClass:"space-x-2 text-small"},[s("code",{staticClass:"rounded px-2 py-1 monospace border border-low-emphasis shadow-sm"},[e._v("c")]),e._v(" "),s("span",[e._v(e._s(e.__("Create site")))])]),e._v(" "),s("li",{staticClass:"space-x-2 text-small"},[s("code",{staticClass:"rounded px-2 py-1 monospace border border-low-emphasis shadow-sm"},[e._v("p")]),e._v(" "),s("span",[e._v(e._s(e.__("Goto profile")))])])])])])],1)]):e._e()}),[],!1,null,null,null).exports;var f=s(6392);const m={components:{ConfirmDelete:r,Notification:i,IconDanger:l,IconWarning:o,IconSuccess:c,IconInfo:u,SearchPalette:p},data:function(){return{searchOpen:!1}},computed:{backdropIsOpen:function(){return this.$store.state.backdrop.isOpen},notifications:function(){return this.$store.state.notification.notifications}},watch:{"$page.props.flash.success":function(){this.$page.props.flash.success&&((0,f.l)({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&&((0,f.l)({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&&((0,f.l)({variant:"danger",title:this.__("Error"),message:this.$page.props.flash.error}),this.$page.props.flash.error=null)}},methods:{useNotification:f.l}};var h=(0,n.Z)(m,(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"antialiased font-body text-high-emphasis bg-surface"},[e.$page.props.settings.demo?s("div",{staticClass:"relative bg-primary text-white"},[e._m(0)]):e._e(),e._v(" "),e.$page.props.system_alert?s("div",{staticClass:"relative text-white",class:{"bg-primary":"info"===e.$page.props.system_alert.type,"bg-warning":"warning"===e.$page.props.system_alert.type,"bg-danger":"danger"===e.$page.props.system_alert.type}},[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"},[s("p",{staticClass:"font-medium text-on-primary"},[e._v("\n "+e._s(e.$page.props.system_alert.message)+"\n ")])])])]):e._e(),e._v(" "),s("PortalTarget",{attrs:{name:"modals"}}),e._v(" "),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"}},e._l(e.notifications,(function(t,a){return s("Notification",{key:a,scopedSlots:e._u([{key:"prefix",fn:function(){return["danger"===t.variant||"error"===t.variant?s("IconDanger",{staticClass:"flex-shrink-0 w-6 h-6 text-danger"}):e._e(),e._v(" "),"success"===t.variant?s("IconSuccess",{staticClass:"flex-shrink-0 w-6 h-6 text-success"}):e._e(),e._v(" "),"info"===t.variant?s("IconInfo",{staticClass:"flex-shrink-0 w-6 h-6 text-primary"}):e._e(),e._v(" "),"warning"===t.variant?s("IconWarning",{staticClass:"flex-shrink-0 w-6 h-6 text-warning"}):e._e()]},proxy:!0},{key:"title",fn:function(){return[e._v(e._s(t.title))]},proxy:!0},{key:"subtitle",fn:function(){return[e._v(e._s(t.message))]},proxy:!0}],null,!0)})})),1)],1),e._v(" "),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"}},[e.backdropIsOpen?s("div",{staticClass:"fixed inset-0 z-40 bg-backdrop bf-blur"}):e._e()]),e._v(" "),s("SearchPalette"),e._v(" "),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("ConfirmDelete")],1),e._v(" "),e._t("default")],2)}),[function(){var e=this,t=e.$createElement,s=e._self._c||t;return 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"},[s("p",{staticClass:"font-medium text-on-primary"},[e._v("\n You are currently in a demo environment.\n ")])])])}],!1,null,null,null);const _=h.exports},1903:(e,t,s)=>{s.r(t),s.d(t,{default:()=>z});var a=s(2309),n=s(6433),r=s(8258),i=s(6023),l=s(8799),o=s(3685),c=s(744),u=s(397),d=s(7325),p=s(8297),f=s(3291),m=s(5931),h=s(9501),_=s(8175),v=s(3963),x=s(6100),g=s(3457),b=s(4287),y=s(1773),w=s(5922),C=s(1471),Z=s(4094),$=s(4098),k=s(8930),S=s(9159),E=s(1462),T=s(7807),B=s(5527);const I={layout:h.Z,metaInfo:function(){return{title:"".concat(this.__("Edit provider"))}},components:{TopBar:a.default,Container:n.Z,Content:r.Z,Page:i.Z,PageHeader:l.Z,PageHeaderTitle:o.Z,PageBody:c.Z,Button:u.Z,List:d.Z,ListItem:p.Z,StatusBubble:f.Z,NotificationBadge:m.Z,FormInput:x.Z,FormSelect:b.Z,SettingsLayout:_.Z,SettingsSegment:v.Z,Form:y.Z,FormActions:w.Z,Tabs:Z.default,FormTextarea:g.Z,Table:$.Z,TableHead:k.Z,TableHeader:S.Z,TableRow:E.Z,TableBody:T.Z,TableData:B.Z},data:function(){var e,t;return{sending:!1,form:{name:this.provider.name,allowed_plans:null!==(e=this.provider.allowed_plans)&&void 0!==e?e:[],allowed_regions:null!==(t=this.provider.allowed_regions)&&void 0!==t?t:[]}}},props:{provider:Object,availableRegions:[Object,Array],availablePlans:[Object,Array]},methods:{submit:function(){var e=this;this.$inertia.patch(this.route("admin.services.providers.update",this.provider.id),this.form,{onStart:function(){return e.sending=!0},onFinish:function(){return e.sending=!1}})},confirmDelete:function(){var e=this;(0,C.b)({title:this.__("Are you sure?"),message:this.__("Are you sure you want to delete this provider?"),onConfirm:function(){return e.delete()}})},delete:function(){var e=this;this.$inertia.delete(this.route("admin.services.providers.delete",this.provider.id),{onStart:function(){return e.sending=!0},onFinish:function(){return e.sending=!1}})}}};const z=(0,s(1900).Z)(I,(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("Page",[s("TopBar"),e._v(" "),s("Content",[s("Container",[s("PageHeader",{scopedSlots:e._u([{key:"start",fn:function(){return[s("PageHeaderTitle",[e._v(e._s(e.__("Edit provider")))])]},proxy:!0}])}),e._v(" "),s("PageBody",[s("SettingsLayout",{scopedSlots:e._u([{key:"nav",fn:function(){return[s("Tabs")]},proxy:!0},{key:"segments",fn:function(){return[s("SettingsSegment",{scopedSlots:e._u([{key:"title",fn:function(){return[e._v(e._s(e.__("Edit")))]},proxy:!0},{key:"form",fn:function(){return[s("form",{staticClass:"space-y-4",on:{submit:function(t){return t.preventDefault(),e.submit(t)}}},[s("FormInput",{attrs:{label:e.__("Name"),errors:e.$page.props.errors.name},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}}),e._v(" "),s("div",{staticClass:"space-y-4"},[s("h3",{staticClass:"text-base leading-6 font-medium border-b border-dotted border-medium-emphasis pb-1"},[e._v("\n "+e._s(e.__("Allowed plans")))]),e._v(" "),s("p",{staticClass:"text-medium-emphasis"},[e._v("\n Select the plans here that your users are allowed to use for this provider.\n If there are no plans selected, all will be available.\n ")]),e._v(" "),s("div",e._l(e.availablePlans,(function(t,a){return s("div",{staticClass:"space-y-1"},[s("input",{directives:[{name:"model",rawName:"v-model",value:e.form.allowed_plans,expression:"form.allowed_plans"}],staticClass:"form-checkbox",attrs:{id:"plan-"+a,type:"checkbox"},domProps:{value:a,checked:Array.isArray(e.form.allowed_plans)?e._i(e.form.allowed_plans,a)>-1:e.form.allowed_plans},on:{change:function(t){var s=e.form.allowed_plans,n=t.target,r=!!n.checked;if(Array.isArray(s)){var i=a,l=e._i(s,i);n.checked?l<0&&e.$set(e.form,"allowed_plans",s.concat([i])):l>-1&&e.$set(e.form,"allowed_plans",s.slice(0,l).concat(s.slice(l+1)))}else e.$set(e.form,"allowed_plans",r)}}}),e._v(" "),s("label",{staticClass:"ml-2 text-sm",attrs:{for:"plan-"+a}},[e._v(e._s(t))])])})),0)]),e._v(" "),s("div",{staticClass:"space-y-4"},[s("h3",{staticClass:"text-base leading-6 font-medium border-b border-dotted border-medium-emphasis pb-1"},[e._v("\n "+e._s(e.__("Allowed regions")))]),e._v(" "),s("p",{staticClass:"text-medium-emphasis"},[e._v("\n Select the regions here that your users are allowed to use for this provider.\n If there are no regions selected, all will be available.\n ")]),e._v(" "),s("div",e._l(e.availableRegions,(function(t,a){return s("div",{staticClass:"space-y-1"},[s("input",{directives:[{name:"model",rawName:"v-model",value:e.form.allowed_regions,expression:"form.allowed_regions"}],staticClass:"form-checkbox",attrs:{id:"region-"+a,type:"checkbox"},domProps:{value:a,checked:Array.isArray(e.form.allowed_regions)?e._i(e.form.allowed_regions,a)>-1:e.form.allowed_regions},on:{change:function(t){var s=e.form.allowed_regions,n=t.target,r=!!n.checked;if(Array.isArray(s)){var i=a,l=e._i(s,i);n.checked?l<0&&e.$set(e.form,"allowed_regions",s.concat([i])):l>-1&&e.$set(e.form,"allowed_regions",s.slice(0,l).concat(s.slice(l+1)))}else e.$set(e.form,"allowed_regions",r)}}}),e._v(" "),s("label",{staticClass:"ml-2 text-sm",attrs:{for:"region-"+a}},[e._v(e._s(t))])])})),0)]),e._v(" "),s("FormActions",[s("Button",[e._v(e._s(e.__("Save changes")))]),e._v(" "),s("Button",{attrs:{variant:"danger",type:"button"},on:{click:e.confirmDelete}},[e._v(e._s(e.__("Delete")))])],1)],1)]},proxy:!0}])})]},proxy:!0}])})],1)],1)],1)],1)}),[],!1,null,null,null).exports},4094:(e,t,s)=>{s.r(t),s.d(t,{default:()=>n});const a={data:function(){return{items:[{title:this.__("Overview"),to:this.route("admin.services.index"),active:this.route().current("admin.services.index")},{title:this.__("Synchronize servers"),to:this.route("admin.services.servers.index"),active:this.route().current("admin.services.servers.index")},{title:this.__("Synchronize sites"),to:this.route("admin.services.sites.index"),active:this.route().current("admin.services.sites.index")},{title:this.__("Synchronize providers"),to:this.route("admin.services.providers.index"),active:this.route().current("admin.services.providers.index")}]}}};const n=(0,s(1900).Z)(a,(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("ul",{staticClass:"-ml-4 space-y-1"},e._l(e.items,(function(t){return s("li",[s("inertia-link",{staticClass:"flex items-center h-10 px-4 font-medium text-medium-emphasis",class:{"rounded shadow text-primary bg-surface-3":t.active},attrs:{href:t.to}},[e._v(e._s(t.title)+" "+e._s(t.route))])],1)})),0)}),[],!1,null,null,null).exports},2309:(e,t,s)=>{s.r(t),s.d(t,{default:()=>o});var a=s(2676),n=s(7249),r=s(1533),i=s(4574);const l={components:{TopBar:a.Z,Breadcrumbs:n.Z,TabBar:r.Z,TopBarTabBarContainer:i.Z},data:function(){return{tabBars:[{title:"Dashboard",to:this.route("admin.dashboard"),active:this.route().current("admin.dashboard")||this.route().current("admin.settings")||this.route().current("admin.system")},{title:this.__("Users"),to:this.route("admin.users.index"),active:this.route().current("admin.users.*")},{title:this.__("Packages"),to:this.route("admin.packages.index"),active:this.route().current("admin.packages.*")},this.$page.props.settings.support?{title:"".concat(this.__("Support")," (").concat(this.$page.props.openTickets,")"),to:this.route("admin.support.index"),active:this.route().current("admin.support.*")}:null,this.$page.props.settings.documentation?{title:this.__("Documentation"),to:this.route("admin.documentation.index"),active:this.route().current("admin.documentation.*")}:null,{title:"Services",to:this.route("admin.services.index"),active:this.route().current("admin.services.*")}],breadcrumbs:[{title:this.$page.props.settings.name,to:"/"},{title:this.__("Administration"),to:this.route("admin.dashboard")}]}}};const o=(0,s(1900).Z)(l,(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("TopBar",{scopedSlots:e._u([{key:"breadcrumbs",fn:function(){return[s("Breadcrumbs",{attrs:{items:e.breadcrumbs}})]},proxy:!0},{key:"tab-bar",fn:function(){return[s("TopBarTabBarContainer",[s("TabBar",{attrs:{items:e.tabBars}})],1)]},proxy:!0}])})}),[],!1,null,null,null).exports},7249:(e,t,s)=>{s.d(t,{Z:()=>i});const a={props:{to:{type:String,required:!0}}};var n=s(1900);const r={components:{BreadcrumbsItem:(0,n.Z)(a,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("inertia-link",{staticClass:"font-medium text-body text-breadcrumbs",attrs:{href:e.to}},[e._t("default")],2)}),[],!1,null,null,null).exports},props:{items:{type:Array,required:!0}}};const i=(0,n.Z)(r,(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("ul",{staticClass:"flex items-center space-x-2"},e._l(e.items,(function(t,a){return s("li",{key:t.title},[s("BreadcrumbsItem",{attrs:{to:t.to}},[e._v(e._s(t.title))]),e._v(" "),a<e.items.length-1?s("span",{staticClass:"ml-2 text-low-emphasis"},[e._v("/")]):e._e()],1)})),0)}),[],!1,null,null,null).exports},397:(e,t,s)=>{s.d(t,{Z:()=>i});var a={primary:"bg-primary text-on-primary shadow",danger:"bg-danger text-on-danger shadow",secondary:"bg-surface-2 text-high-emphasis"},n={sm:"h-8 px-2",md:"h-10 px-5"};const r={props:{as:{default:function(){return"button"}},href:{default:function(){return null}},block:{type:Boolean,default:function(){return!1}},variant:{type:String,default:function(){return"primary"},validator:function(e){return Object.keys(a).includes(e)}},size:{type:String,default:"md"},loading:{default:!1},disabled:{default:!1}},data:function(){return{baseClasses:"items-center justify-center font-medium capitalize rounded select-none focus:outline-none",flexClasses:"flex w-full text-body",inlineFlexClasses:"inline-flex text-small",variantClasses:a,sizeClasses:n}}};const i=(0,s(1900).Z)(r,(function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.as,{tag:"Component",class:[e.baseClasses,e.sizeClasses[e.size],e.variantClasses[e.variant],e.block?e.flexClasses:e.inlineFlexClasses,e.disabled||e.loading?"opacity-50":"",e.loading?"cursor-wait":""],attrs:{disabled:e.loading||e.disabled,href:e.href},on:{click:function(t){return e.$emit("click")}}},[e._t("default")],2)}),[],!1,null,null,null).exports},6433:(e,t,s)=>{s.d(t,{Z:()=>r});var a={small:"max-w-sm",medium:"max-w-xl",base:"max-w-5xl",large:"max-w-screen-xl",fluid:"max-w-none"};const n={props:{size:{type:String,default:function(){return"base"},validator:function(e){return Object.keys(a).includes(e)}}},data:function(){return{baseClasses:"w-full px-4 sm:px-8 mx-auto",sizeClasses:a}}};const r=(0,s(1900).Z)(n,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{class:[e.baseClasses,e.sizeClasses[e.size]]},[e._t("default")],2)}),[],!1,null,null,null).exports},8258:(e,t,s)=>{s.d(t,{Z:()=>a});const a=(0,s(1900).Z)({},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("main",{staticClass:"flex-1 bg-surface-1",attrs:{id:"main"}},[e._t("default")],2)}),[],!1,null,null,null).exports},5292:(e,t,s)=>{s.d(t,{Z:()=>n});const a={data:function(){return{isOpen:!1,position:"top"}},methods:{open:function(){this.isOpen=!0,this.calculatePosition()},close:function(){this.isOpen=!1,this.calculatePosition()},toggle:function(){this.isOpen=!this.isOpen,this.calculatePosition()},outsideClickListener:function(e){this.$refs.dropdown!==e.target.closest(this.$refs.dropdown.tagName)&&this.close()},calculatePosition:function(){this.$refs.dropdown.getBoundingClientRect().top>.75*window.innerHeight?this.position="bottom":this.position="top"}},mounted:function(){window.addEventListener("click",this.outsideClickListener)},beforeDestroy:function(){window.removeEventListener("click",this.outsideClickListener)}};const n=(0,s(1900).Z)(a,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.close,expression:"close"}],ref:"dropdown",staticClass:"relative"},[e._t("default",null,null,{isOpen:e.isOpen,open:e.open,close:e.close,toggle:e.toggle,position:e.position})],2)}),[],!1,null,null,null).exports},9637:(e,t,s)=>{s.d(t,{Z:()=>r});var a={top:"right-0 top-0 mt-8",bottom:"right-0 bottom-0 mb-8"};const n={props:{position:{type:String,default:function(){return"top"},validator:function(e){return Object.keys(a).includes(e)}}},computed:{positionClasses:function(){return a[this.position]}}};const r=(0,s(1900).Z)(n,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{class:["absolute flex flex-col py-1 overflow-hidden rounded shadow-2xl z-20 bg-surface-1",e.positionClasses]},[e._t("default")],2)}),[],!1,null,null,null).exports},5740:(e,t,s)=>{s.d(t,{Z:()=>n});const a={props:{to:{type:String,required:!0},componentIs:{type:String,default:"a"},method:{required:!1,default:"get"}}};const n=(0,s(1900).Z)(a,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("inertia-link",{staticClass:"flex items-center w-full h-10 px-6 whitespace-nowrap text-medium-emphasis text-small focus:bg-primary focus:text-on-primary hover:text-high-emphasis focus:outline-none",attrs:{as:e.componentIs,href:e.to,method:e.method}},[e._t("default")],2)}),[],!1,null,null,null).exports},1447:(e,t,s)=>{s.d(t,{Z:()=>a});const a=(0,s(1900).Z)({},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("p",{staticClass:"text-danger"},[e._t("default")],2)}),[],!1,null,null,null).exports},1773:(e,t,s)=>{s.d(t,{Z:()=>a});const a=(0,s(1900).Z)({},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("form",{staticClass:"space-y-4",on:{submit:function(t){return t.preventDefault(),e.$emit("submit")}}},[e._t("default")],2)}),[],!1,null,null,null).exports},5922:(e,t,s)=>{s.d(t,{Z:()=>n});const a={props:{justify:{type:String,default:"justify-start"}}};const n=(0,s(1900).Z)(a,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"flex items-center space-x-2",class:[e.justify]},[e._t("default")],2)}),[],!1,null,null,null).exports},294:(e,t,s)=>{s.d(t,{Z:()=>a});const a=(0,s(1900).Z)({},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"flex flex-col space-y-1"},[e._t("default")],2)}),[],!1,null,null,null).exports},2064:(e,t,s)=>{s.d(t,{Z:()=>a});const a=(0,s(1900).Z)({},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("p",{staticClass:"text-medium-emphasis text-small"},[e._t("default")],2)}),[],!1,null,null,null).exports},2138:(e,t,s)=>{s.d(t,{Z:()=>a});const a=(0,s(1900).Z)({},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("button",{staticClass:"inline-flex items-center justify-center w-10 h-10 text-medium-emphasis rounded-circle focus:outline-none focus:text-high-emphasis",on:{click:function(t){return e.$emit("click")}}},[e._t("default")],2)}),[],!1,null,null,null).exports},8437:(e,t,s)=>{s.d(t,{Z:()=>n});const a={props:{forId:{type:String,required:!1},errors:{type:Array}}};const n=(0,s(1900).Z)(a,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("label",{class:["text-small"],attrs:{for:e.forId}},[e._t("default")],2)}),[],!1,null,null,null).exports},7325:(e,t,s)=>{s.d(t,{Z:()=>a});const a=(0,s(1900).Z)({},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("ul",{staticClass:"flex flex-col divide-y divide-low-emphasis"},[e._t("default")],2)}),[],!1,null,null,null).exports},8297:(e,t,s)=>{s.d(t,{Z:()=>a});const a=(0,s(1900).Z)({},(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("li",[s("div",{staticClass:"-mx-4"},[s("div",{staticClass:"block p-4 transition rounded shadow-none duration-fast hover:bg-surface-2"},[s("div",{staticClass:"flex flex-row items-center space-x-4"},[e._t("prefix"),e._v(" "),s("div",{staticClass:"flex-1"},[s("h2",{staticClass:"font-medium text-body"},[e._t("title")],2),e._v(" "),s("p",{staticClass:"text-small text-medium-emphasis"},[e._t("subtitle")],2)]),e._v(" "),e._t("suffix")],2)])])])}),[],!1,null,null,null).exports},5931:(e,t,s)=>{s.d(t,{Z:()=>n});const a={props:{count:{type:Number,required:!0}},computed:{cappedCount:function(){return this.count<9?this.count:9}}};const n=(0,s(1900).Z)(a,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"inline-flex items-center justify-center w-6 h-6 font-medium bg-danger text-on-danger text-small rounded-circle"},[e._v("\n "+e._s(e.cappedCount)+"\n")])}),[],!1,null,null,null).exports},6023:(e,t,s)=>{s.d(t,{Z:()=>a});const a=(0,s(1900).Z)({},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"flex flex-col min-h-screen"},[e._t("default")],2)}),[],!1,null,null,null).exports},744:(e,t,s)=>{s.d(t,{Z:()=>a});const a=(0,s(1900).Z)({},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("section",{staticClass:"my-8 space-y-8"},[e._t("default")],2)}),[],!1,null,null,null).exports},8799:(e,t,s)=>{s.d(t,{Z:()=>a});const a=(0,s(1900).Z)({},(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("header",{staticClass:"flex justify-between mt-16 mb-8"},[s("div",[e._t("start")],2),e._v(" "),s("div",[e._t("end")],2)])}),[],!1,null,null,null).exports},3685:(e,t,s)=>{s.d(t,{Z:()=>a});const a=(0,s(1900).Z)({},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("h1",{staticClass:"font-semibold text-heading"},[e._t("default")],2)}),[],!1,null,null,null).exports},3963:(e,t,s)=>{s.d(t,{Z:()=>a});const a=(0,s(1900).Z)({},(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("section",{staticClass:"px-8 pb-8 space-y-6 border rounded border-low-emphasis"},[s("header",{staticClass:"-mt-4"},[s("h2",{staticClass:"inline-flex px-4 -mx-4 font-medium bg-surface-1 text-title"},[e._t("title")],2),e._v(" "),s("p",{staticClass:"mt-1 text-small text-medium-emphasis"},[e._t("subtitle")],2)]),e._v(" "),s("div",{staticClass:"space-y-4"},[e._t("form"),e._v(" "),e._t("content")],2)])}),[],!1,null,null,null).exports},3291:(e,t,s)=>{s.d(t,{Z:()=>r});var a={primary:"bg-primary",success:"bg-success",warning:"bg-warning",danger:"bg-danger",gray:"bg-surface-2 border border-medium-emphasis"};const n={props:{variant:{type:String,default:function(){return"primary"},validator:function(e){return Object.keys(a).includes(e)}}},data:function(){return{variantClasses:a}},computed:{label:function(){return"success"===this.variant?this.__("Active"):"gray"===this.variant?this.__("Busy"):this.__("Unknown")}}};const r=(0,s(1900).Z)(n,(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{class:["flex items-center justify-center w-2 h-2 rounded-circle relative",e.variantClasses[e.variant]],attrs:{"aria-label":e.label,"data-balloon-blunt":"","data-balloon-pos":"down"}},["gray"===e.variant?s("span",{staticClass:"flex items-center justify-center inset-0 h-2 w-2"},[s("span",{staticClass:"animate-ping absolute inline-flex h-full w-full rounded-circle bg-success opacity-75"})]):e._e()])}),[],!1,null,null,null).exports},1533:(e,t,s)=>{s.d(t,{Z:()=>i});const a={props:{to:{type:String,required:!0},active:{type:Boolean,default:!1}},data:function(){return{baseClasses:"inline-flex items-center justify-center h-10 px-6 font-medium rounded text-small text-tab-bar",activeClasses:"shadow text-tab-bar-active bg-tab-bar-item",transitionClasses:"transition duration-fast hover:text-high-emphasis focus:text-high-emphasis"}}};var n=s(1900);const r={components:{TabBarItem:(0,n.Z)(a,(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("li",[s("inertia-link",{class:[e.baseClasses,e.transitionClasses,e.active?e.activeClasses:null],attrs:{href:e.to}},[e._t("default")],2)],1)}),[],!1,null,null,null).exports},props:{items:{required:!0}}};const i=(0,n.Z)(r,(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("ul",{staticClass:"inline-flex flex-row p-1 overflow-hidden overflow-x-auto whitespace-nowrap rounded bg-tab-bar"},e._l(e.items,(function(t){return t?s("TabBarItem",{key:t.title,attrs:{to:t.to,active:t.active}},[e._v("\n "+e._s(t.title)+"\n ")]):e._e()})),1)}),[],!1,null,null,null).exports},4098:(e,t,s)=>{s.d(t,{Z:()=>n});const a={props:{caption:{type:String,required:!0}}};const n=(0,s(1900).Z)(a,(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("table",{staticClass:"w-full text-left table-auto text-small"},[s("caption",{staticClass:"sr-only"},[e._v(e._s(e.caption))]),e._v(" "),e._t("default")],2)}),[],!1,null,null,null).exports},7807:(e,t,s)=>{s.d(t,{Z:()=>a});const a=(0,s(1900).Z)({},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("tbody",[e._t("default")],2)}),[],!1,null,null,null).exports},5527:(e,t,s)=>{s.d(t,{Z:()=>n});const a={props:{border:{type:Boolean,default:!0}}};const n=(0,s(1900).Z)(a,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("td",{staticClass:"py-2",class:{"border-t border-low-emphasis":e.border}},[e._t("default")],2)}),[],!1,null,null,null).exports},8930:(e,t,s)=>{s.d(t,{Z:()=>a});const a=(0,s(1900).Z)({},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("thead",[e._t("default")],2)}),[],!1,null,null,null).exports},9159:(e,t,s)=>{s.d(t,{Z:()=>a});const a=(0,s(1900).Z)({},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("th",{staticClass:"pb-2"},[e._t("default")],2)}),[],!1,null,null,null).exports},1462:(e,t,s)=>{s.d(t,{Z:()=>a});const a=(0,s(1900).Z)({},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("tr",[e._t("default")],2)}),[],!1,null,null,null).exports},2676:(e,t,s)=>{s.d(t,{Z:()=>f});var a=s(6433),n=s(5292),r=s(9637),i=s(5740),l=s(1900);const o=(0,l.Z)({},(function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{staticClass:"bi bi-moon",attrs:{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{"fill-rule":"evenodd",d:"M14.53 10.53a7 7 0 0 1-9.058-9.058A7.003 7.003 0 0 0 8 15a7.002 7.002 0 0 0 6.53-4.47z"}})])}),[],!1,null,null,null).exports;const c=(0,l.Z)({},(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("svg",{staticClass:"bi bi-sun",attrs:{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{d:"M3.5 8a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0z"}}),e._v(" "),s("path",{attrs:{"fill-rule":"evenodd",d:"M8.202.28a.25.25 0 0 0-.404 0l-.91 1.255a.25.25 0 0 1-.334.067L5.232.79a.25.25 0 0 0-.374.155l-.36 1.508a.25.25 0 0 1-.282.19l-1.532-.245a.25.25 0 0 0-.286.286l.244 1.532a.25.25 0 0 1-.189.282l-1.509.36a.25.25 0 0 0-.154.374l.812 1.322a.25.25 0 0 1-.067.333l-1.256.91a.25.25 0 0 0 0 .405l1.256.91a.25.25 0 0 1 .067.334L.79 10.768a.25.25 0 0 0 .154.374l1.51.36a.25.25 0 0 1 .188.282l-.244 1.532a.25.25 0 0 0 .286.286l1.532-.244a.25.25 0 0 1 .282.189l.36 1.508a.25.25 0 0 0 .374.155l1.322-.812a.25.25 0 0 1 .333.067l.91 1.256a.25.25 0 0 0 .405 0l.91-1.256a.25.25 0 0 1 .334-.067l1.322.812a.25.25 0 0 0 .374-.155l.36-1.508a.25.25 0 0 1 .282-.19l1.532.245a.25.25 0 0 0 .286-.286l-.244-1.532a.25.25 0 0 1 .189-.282l1.508-.36a.25.25 0 0 0 .155-.374l-.812-1.322a.25.25 0 0 1 .067-.333l1.256-.91a.25.25 0 0 0 0-.405l-1.256-.91a.25.25 0 0 1-.067-.334l.812-1.322a.25.25 0 0 0-.155-.374l-1.508-.36a.25.25 0 0 1-.19-.282l.245-1.532a.25.25 0 0 0-.286-.286l-1.532.244a.25.25 0 0 1-.282-.189l-.36-1.508a.25.25 0 0 0-.374-.155l-1.322.812a.25.25 0 0 1-.333-.067L8.203.28zM8 2.5a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11z"}})])}),[],!1,null,null,null).exports;const u=(0,l.Z)({},(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("svg",{staticClass:"bi bi-search",attrs:{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M10.442 10.442a1 1 0 0 1 1.415 0l3.85 3.85a1 1 0 0 1-1.414 1.415l-3.85-3.85a1 1 0 0 1 0-1.415z"}}),e._v(" "),s("path",{attrs:{"fill-rule":"evenodd",d:"M6.5 12a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11zM13 6.5a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0z"}})])}),[],!1,null,null,null).exports;var d=s(2138);const p={components:{Container:a.Z,Dropdown:n.Z,DropdownList:r.Z,DropdownListItem:i.Z,IconMoon:o,IconSearch:u,IconSun:c,IconButton:d.Z},data:function(){return{themeMode:this.$page.props.auth.user.theme}},mounted:function(){this.setDarkMode()},methods:{toggleTheme:function(){var e=this;window.axios.post("/profile/toggle-theme").then((function(t){e.themeMode=t.data,e.setDarkMode()}))},setDarkMode:function(){"auto"===this.themeMode?this.checkDarkMode()?document.documentElement.classList.add("theme--dark"):document.documentElement.classList.remove("theme--dark"):"dark"===this.themeMode?document.documentElement.classList.add("theme--dark"):document.documentElement.classList.remove("theme--dark")},checkDarkMode:function(){return window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches},triggerSearch:function(){window.eventBus.$emit("openSearch")}}};const f=(0,l.Z)(p,(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("header",{staticClass:"sticky top-0 border-b border-low-emphasis bg-top-bar z-30"},[s("div",{staticClass:"w-full px-4 sm:px-8 mx-auto max-w-top-bar-container"},[s("div",{staticClass:"flex flex-col"},[s("nav",{staticClass:"flex flex-col items-center justify-between py-4 space-y-4 md:space-y-0 md:flex-row text-top-bar"},[s("div",{staticClass:"flex items-center space-x-5"},[e.$page.props.settings.logo?s("img",{staticClass:"h-top-bar-logo",attrs:{src:e.$page.props.settings.logo}}):e._e(),e._v(" "),e._t("breadcrumbs")],2),e._v(" "),s("ul",{staticClass:"flex items-center space-x-4"},[s("li",{attrs:{"aria-label":e.__("Search"),"data-balloon-blunt":"","data-balloon-pos":"down"}},[s("IconButton",{on:{click:e.triggerSearch}},[s("IconSearch",{staticClass:"text-top-bar"})],1)],1),e._v(" "),s("li",{attrs:{"aria-label":"light"===e.themeMode?e.__("Enable dark mode"):e.__("Enable light mode"),"data-balloon-blunt":"","data-balloon-pos":"down"}},[s("IconButton",{on:{click:e.toggleTheme}},["light"===e.themeMode?s("IconMoon",{staticClass:"text-top-bar"}):e._e(),e._v(" "),"dark"===e.themeMode?s("IconSun",{staticClass:"text-top-bar"}):e._e()],1)],1),e._v(" "),s("li",[s("Dropdown",{scopedSlots:e._u([{key:"default",fn:function(t){var a=t.toggle,n=t.isOpen;return[s("button",{staticClass:"flex h-auto m-0 appearance-none items-center",on:{click:a}},[s("span",[e._v(e._s(e.$page.props.auth.user.name))]),e._v(" "),s("img",{staticClass:"ml-2 inline w-8 h-8 rounded-avatar bg-surface-2",attrs:{src:e.$page.props.auth.user.avatar,alt:e.$page.props.auth.user.name}})]),e._v(" "),n?s("DropdownList",[e.$page.props.settings.support?s("DropdownListItem",{attrs:{to:"/support"}},[e._v(e._s(e.__("Support"))+"\n ")]):e._e(),e._v(" "),e.$page.props.settings.documentation?s("DropdownListItem",{attrs:{to:"/documentation"}},[e._v(e._s(e.__("Documentation")))]):e._e(),e._v(" "),s("DropdownListItem",{attrs:{to:e.route("profile.index")}},[e._v(e._s(e.__("Profile"))+"\n ")]),e._v(" "),e.$page.props.settings.billing?s("DropdownListItem",{attrs:{to:e.route("profile.billing.index")}},[e._v(e._s(e.__("Billing"))+"\n ")]):e._e(),e._v(" "),"admin"===e.$page.props.auth.user.role?s("DropdownListItem",{staticClass:"!text-danger",attrs:{to:e.route("admin.dashboard")}},[e._v(e._s(e.__("Administration"))+"\n ")]):e._e(),e._v(" "),s("DropdownListItem",{attrs:{to:e.route("logout"),"component-is":"button",method:"post"}},[e._v(e._s(e.__("Sign out"))+"\n ")])],1):e._e()]}}])})],1)])]),e._v(" "),e._t("tab-bar")],2)])])}),[],!1,null,null,null).exports},4574:(e,t,s)=>{s.d(t,{Z:()=>a});const a=(0,s(1900).Z)({},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("nav",{staticClass:"flex items-center justify-center pb-4"},[e._t("default")],2)}),[],!1,null,null,null).exports},6100:(e,t,s)=>{s.d(t,{Z:()=>u});var a=s(294),n=s(8437),r=s(1447),i=s(2064),l=s(8511),o=s(9783);const c={props:{id:{type:String,required:!1},label:{type:String,required:!0},type:{type:String,default:function(){return"text"}},required:{type:Boolean,default:function(){return!1}},errors:{type:Array},helperText:{type:String},placeholder:{type:String},value:{required:!1,default:""},allowCopy:{required:!1,default:!1,type:Boolean},allowRandomString:{required:!1,default:!1,type:Boolean},loading:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},autofocus:{type:Boolean,required:!1,default:!1}},components:{FormGroup:a.Z,Label:n.Z,ErrorText:r.Z,HelperText:i.Z,IconClipboard:l.Z,IconKey:o.Z},data:function(){return{defaultClasses:"w-full border-medium-emphasis text-body h-10 px-2 border rounded bg-surface-1 focus:outline-none focus:border-primary",copied:!1}},watch:{copied:function(){var e=this;this.copied&&setTimeout((function(){e.copied=!1}),1250)}},methods:{updateValue:function(e){this.$emit("input",e)},copy:function(){this.copied=!0,this.$copyText(this.value)},generateString:function(){this.$emit("input",this.randomString())}},computed:{copyText:function(){return this.copied?this.__("Copied to clipboard"):this.__("Copy")}}};const u=(0,s(1900).Z)(c,(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("FormGroup",{staticClass:"relative max-w-lg"},[s("Label",{attrs:{errors:e.errors,forId:e.id}},[e._v(e._s(e.label))]),e._v(" "),e.allowCopy?s("button",{staticClass:"flex items-center right-0 absolute text-xs text-medium-emphasis",attrs:{type:"button"},on:{click:e.copy}},[s("IconClipboard",{staticClass:"mr-2"}),e._v("\n "+e._s(e.copyText)+"\n ")],1):e._e(),e._v(" "),e.allowRandomString?s("button",{staticClass:"flex items-center right-0 absolute text-xs text-medium-emphasis",attrs:{type:"button"},on:{click:e.generateString}},[s("IconKey",{staticClass:"mr-2"}),e._v("\n "+e._s(e.__("Generate"))+"\n ")],1):e._e(),e._v(" "),s("input",{class:[e.defaultClasses,e.disabled||e.loading?"opacity-50":"",e.loading?"cursor-wait":""],attrs:{id:e.id,type:e.type,required:e.required,disabled:e.loading||e.disabled,autofocus:e.autofocus,placeholder:e.placeholder},domProps:{value:e.value},on:{input:function(t){return e.updateValue(t.target.value)}}}),e._v(" "),e.errors?s("ErrorText",[e._v(e._s(e.errors[0]))]):e._e(),e._v(" "),e.helperText&&!e.errors?s("HelperText",[e._v(e._s(e.helperText))]):e._e()],1)}),[],!1,null,null,null).exports},4287:(e,t,s)=>{s.d(t,{Z:()=>o});var a=s(294),n=s(8437),r=s(1447),i=s(2064);const l={props:{id:{type:String,required:!1},label:{type:String,required:!0},type:{type:String,default:function(){return"text"}},required:{type:Boolean,default:function(){return!1}},helperText:{type:String},errors:{type:Array},placeholder:{type:String},value:{required:!1,default:""},loading:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1}},components:{FormGroup:a.Z,Label:n.Z,ErrorText:r.Z,HelperText:i.Z},data:function(){return{defaultClasses:"w-full border-medium-emphasis text-body h-10 max-w-lg px-2 border rounded bg-surface-1 focus:outline-none focus:border-primary",selected:this.value}},methods:{updateValue:function(e){this.$emit("input",e)}}};const o=(0,s(1900).Z)(l,(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("FormGroup",[s("Label",{attrs:{errors:e.errors,forId:e.id}},[e._v(e._s(e.label))]),e._v(" "),s("select",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],class:[e.defaultClasses,e.disabled||e.loading?"opacity-50":"",e.loading?"cursor-wait":""],attrs:{disabled:e.loading||e.disabled,id:e.id,required:e.required,placeholder:e.placeholder},on:{input:function(t){return e.updateValue(t.target.value)},change:function(t){var s=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.value=t.target.multiple?s:s[0]}}},[e._t("default")],2),e._v(" "),e.errors?s("ErrorText",[e._v(e._s(e.errors[0]))]):e._e(),e._v(" "),e.helperText&&!e.errors?s("HelperText",[e._v(e._s(e.helperText))]):e._e()],1)}),[],!1,null,null,null).exports},3457:(e,t,s)=>{s.d(t,{Z:()=>o});var a=s(294),n=s(8437),r=s(1447),i=s(2064);const l={props:{id:{type:String,required:!1},label:{type:String,required:!0},required:{type:Boolean,default:function(){return!1}},errors:{type:Array},placeholder:{type:String},value:{required:!1,default:""},rows:{default:3,required:!1},helperText:{type:String}},components:{FormGroup:a.Z,Label:n.Z,ErrorText:r.Z,HelperText:i.Z},data:function(){return{defaultClasses:"w-full border-medium-emphasis text-body max-w-lg px-2 border rounded bg-surface-1 focus:outline-none focus:border-primary"}},methods:{updateValue:function(e){this.$emit("input",e)}}};const o=(0,s(1900).Z)(l,(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("FormGroup",[s("Label",{attrs:{errors:e.errors,forId:e.id}},[e._v(e._s(e.label))]),e._v(" "),s("textarea",{class:[e.defaultClasses],attrs:{id:e.id,required:e.required,rows:e.rows,placeholder:e.placeholder},domProps:{value:e.value},on:{input:function(t){return e.updateValue(t.target.value)}}}),e._v(" "),e.errors?s("ErrorText",[e._v(e._s(e.errors[0]))]):e._e(),e._v(" "),e.helperText&&!e.errors?s("HelperText",[e._v(e._s(e.helperText))]):e._e()],1)}),[],!1,null,null,null).exports},8511:(e,t,s)=>{s.d(t,{Z:()=>a});const a=(0,s(1900).Z)({},(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("svg",{staticClass:"bi bi-clipboard",attrs:{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1v-1z"}}),e._v(" "),s("path",{attrs:{"fill-rule":"evenodd",d:"M9.5 1h-3a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm-3-1A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0h-3z"}})])}),[],!1,null,null,null).exports},9783:(e,t,s)=>{s.d(t,{Z:()=>a});const a=(0,s(1900).Z)({},(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("svg",{staticClass:"bi bi-key",attrs:{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M0 8a4 4 0 0 1 7.465-2H14a.5.5 0 0 1 .354.146l1.5 1.5a.5.5 0 0 1 0 .708l-1.5 1.5a.5.5 0 0 1-.708 0L13 9.207l-.646.647a.5.5 0 0 1-.708 0L11 9.207l-.646.647a.5.5 0 0 1-.708 0L9 9.207l-.646.647A.5.5 0 0 1 8 10h-.535A4 4 0 0 1 0 8zm4-3a3 3 0 1 0 2.712 4.285A.5.5 0 0 1 7.163 9h.63l.853-.854a.5.5 0 0 1 .708 0l.646.647.646-.647a.5.5 0 0 1 .708 0l.646.647.646-.647a.5.5 0 0 1 .708 0l.646.647.793-.793-1-1h-6.63a.5.5 0 0 1-.451-.285A3 3 0 0 0 4 5z"}}),e._v(" "),s("path",{attrs:{d:"M4 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"}})])}),[],!1,null,null,null).exports},8175:(e,t,s)=>{s.d(t,{Z:()=>n});const a={props:{items:{type:Array,required:!1},space:{type:String,default:"space-y-16"}}};const n=(0,s(1900).Z)(a,(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"grid grid-cols-4 gap-8 md:gap-16"},[s("aside",{staticClass:"col-span-4 md:col-span-1"},[e._t("nav")],2),e._v(" "),s("section",{staticClass:"col-span-4 md:col-span-3"},[s("div",{class:e.space},[e._t("segments")],2)])])}),[],!1,null,null,null).exports},1900:(e,t,s)=>{function a(e,t,s,a,n,r,i,l){var o,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=s,c._compiled=!0),a&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),i?(o=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},c._ssrRegister=o):n&&(o=l?function(){n.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:n),o)if(c.functional){c._injectStyles=o;var u=c.render;c.render=function(e,t){return o.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,o):[o]}return{exports:e,options:c}}s.d(t,{Z:()=>a})}}]); |