text: (window.webpackJsonp=window.webpackJsonp||[]).push([[4,11,12,14,15],{"1Twy":function(t,e,i){"use strict";i.r(e);var n={name:"ButtonWithIcon",props:{btnIconRight:String,btnIconLeft:String,btnLabel:String,btnType:String},data:function(){return{setRightIcon:this.btnIconRight,setLeftIcon:this.btnIconLeft,setLabel:this.btnLabel,setType:this.btnType}}},s=i("KHd+"),a=Object(s.a)(n,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"flex flex-row-reverse mt-2"},[i("button",{staticClass:"bg-civer-blue text-sm  leading-normal font-semibold py-2 px-4 rounded",attrs:{type:t.setType}},[void 0!==t.setLeftIcon?i("v-icon",{attrs:{name:t.setLeftIcon}}):t._e(),t._v("\n        "+t._s(t.__(t.setLabel))+"\n        "),void 0!==t.setRightIcon?i("v-icon",{attrs:{name:t.setRightIcon}}):t._e()],1)])}),[],!1,null,null,null);e.default=a.exports},BMwI:function(t,e,i){"use strict";i.r(e);var n=i("FQHZ"),s=i.n(n),a=i("GUIp"),l=i.n(a),r=i("LPyF"),o=i.n(r),c=i("dOZY"),u=i.n(c),d=(i("TtPJ"),i("V8i/"),i("YHJh")),p=i("1Twy"),v=(i("PENG"),i("MCLT"),s()(l.a,o.a,u.a)),f={components:{FormButton:p.default,Layout:d.default,FilePond:v},props:{system:Object},data:function(){var t=this;return{setup:{name:this.system.name,code:this.system.code,admin:this.system.admin,email:this.system.email,logo:this.system.logo.url,login:this.system.login.url},logo:null,login:null,logoServer:{process:function(e,i,n,s){setTimeout((function(){s(i)}),500),t.logo=new File([i],i.name)},load:function(t,e){fetch(t).then((function(t){return t.blob()})).then(e)}},loginServer:{process:function(e,i,n,s){setTimeout((function(){s(Date.now())}),500),t.login=new File([i],i.name)},load:function(t,e){fetch(t).then((function(t){return t.blob()})).then(e)}}}},methods:{submit:function(){var t=new FormData;t.append("name",this.setup.name||""),t.append("code",this.setup.code||""),t.append("admin",this.setup.admin||""),t.append("email",this.setup.email||""),t.append("logo",this.logo),t.append("login",this.login),this.$inertia.post("/config/save",t),this.logo=null,this.login=null}}},m=i("KHd+"),_=Object(m.a)(f,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("layout",[i("form",{staticClass:"form-horizontal w-full",attrs:{method:"POST",enctype:"multipart/form-data"},on:{submit:function(e){return e.preventDefault(),t.submit(e)}}},[i("div",{staticClass:"civer-form-grid"},[i("div",{staticClass:"civer-form-divider rounded-t-lg"},[t._v(t._s(t.__("input.setup.org.info")))]),t._v(" "),i("div",{staticClass:"civer-form-desc"},[t._v(t._s(t.__("input.setup.org.name")))]),t._v(" "),i("div",{staticClass:"civer-form-input"},[i("t-input",{attrs:{placeholder:t.__("input.setup.org.name"),name:"setup-name"},model:{value:t.setup.name,callback:function(e){t.$set(t.setup,"name",e)},expression:"setup.name"}})],1),t._v(" "),i("div",{staticClass:"civer-form-desc"},[t._v(t._s(t.__("input.setup.org.code")))]),t._v(" "),i("div",{staticClass:"civer-form-input"},[i("t-input",{attrs:{placeholder:t.__("input.setup.org.code"),name:"setup-code"},model:{value:t.setup.code,callback:function(e){t.$set(t.setup,"code",e)},expression:"setup.code"}})],1),t._v(" "),i("div",{staticClass:"civer-form-divider"},[t._v(t._s(t.__("input.setup.admin.info")))]),t._v(" "),i("div",{staticClass:"civer-form-desc"},[t._v(t._s(t.__("input.setup.admin.name")))]),t._v(" "),i("div",{staticClass:"civer-form-input"},[i("t-input",{attrs:{placeholder:t.__("input.setup.admin.name"),name:"setup-admin"},model:{value:t.setup.admin,callback:function(e){t.$set(t.setup,"admin",e)},expression:"setup.admin"}})],1),t._v(" "),i("div",{staticClass:"civer-form-desc"},[t._v(t._s(t.__("input.setup.admin.email")))]),t._v(" "),i("div",{staticClass:"civer-form-input"},[i("t-input",{attrs:{placeholder:t.__("input.setup.admin.email"),name:"setup-email"},model:{value:t.setup.email,callback:function(e){t.$set(t.setup,"email",e)},expression:"setup.email"}})],1),t._v(" "),i("div",{staticClass:"civer-form-divider"},[t._v(t._s(t.__("input.setup.app.info")))]),t._v(" "),i("div",{staticClass:"civer-form-desc"},[t._v(t._s(t.__("input.setup.app.logo")))]),t._v(" "),i("div",{staticClass:"civer-form-input my-auto"},[i("file-pond",{ref:"logo",attrs:{name:"app-logo","label-idle":"Drop files here...","allow-multiple":!1,server:t.logoServer,files:t.setup.logo,"accepted-file-types":"image/jpeg, image/png"}})],1),t._v(" "),i("div",{staticClass:"civer-form-desc"},[t._v(t._s(t.__("input.setup.app.login")))]),t._v(" "),i("div",{staticClass:"civer-form-input my-auto"},[i("file-pond",{ref:"login",attrs:{name:"app-login","label-idle":"Drop files here...",server:t.loginServer,"allow-multiple":!1,"accepted-file-types":"image/jpeg, image/png",files:t.setup.login}})],1),t._v(" "),i("div",{staticClass:"civer-form-footer civer-form-last"},[i("form-button",{attrs:{"btn-icon-right":"save","btn-label":"input.button.save"}})],1)])])])}),[],!1,null,null,null);e.default=_.exports},LdYb:function(t,e,i){"use strict";i.r(e);var n={components:{},data:function(){return{isOpen:!1}}},s=i("KHd+"),a=Object(s.a)(n,(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"hidden h-64 lg:block"})}),[],!1,null,null,null);e.default=a.exports},TQgo:function(t,e,i){"use strict";i.r(e);var n=i("ynTf"),s={directives:{onClickaway:i("x9sl").directive},props:{stylus:Object,nav:[Array,Object]},components:{MenuLink:n.default},data:function(){return{menu:this.nav,currentOpen:null}},methods:{away:function(){this.currentOpen=null},addOpen:function(t){this.currentOpen=this.currentOpen!==t&&t},getTextLink:function(t){return{stylus:{container:"sm:absolute top-0 list-reset sm:flex-1 items-center sm:mt-12 sm:w-56 rounded-b-lg",li:"py-2 px-2 bg-civer-gold text-sm leading-tight"},nav:t}}}},a=i("KHd+"),l=Object(a.a)(s,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("nav",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:t.away,expression:"away"}],staticClass:"px-2 pt-2 pb-4 sm:flex sm:flex-shrink-0 sm:p-0 sm:p-r-4 leading-relaxed"},t._l(t.menu,(function(e,n){return i("div",{key:n,staticClass:"relative px-2 pr-4 sm:min-w-0 "},[void 0===e.sub?i("div",{staticClass:"py-1"},[i("inertia-link",{staticClass:"py-1",attrs:{href:e.path,method:"get"},on:{click:function(e){return t.addOpen(n)}}},[i("v-icon",{staticClass:"civer-gold fill-current",attrs:{name:void 0!==e.icon?e.icon:"link",label:e.title}}),t._v("\n        "+t._s(e.title)+"\n      ")],1)],1):i("div",[i("button",{staticClass:"py-1",on:{click:function(e){return t.addOpen(n)}}},[i("v-icon",{staticClass:"civer-gold fill-current",attrs:{name:void 0!==e.icon?e.icon:"angle-right",label:e.title}}),t._v("\n        "+t._s(e.title)+"\n      ")],1),t._v(" "),i("div",{class:t.currentOpen===n?"block":"hidden"},[i("menu-link",t._b({},"menu-link",t.getTextLink(e.sub),!1))],1)])])})),0)}),[],!1,null,null,null);e.default=l.exports},YHJh:function(t,e,i){"use strict";i.r(e);var n=i("rBnf"),s=i("LdYb"),a=i("tp5t"),l={components:{Navigation:n.default,Banner:s.default,PageContent:a.default},props:{},data:function(){return{}},methods:{}},r=i("KHd+"),o=Object(r.a)(l,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"h-screen w-screen"},[e("banner",{directives:[{name:"show",rawName:"v-show",value:void 0!==this.$page.nav.banner,expression:"$page.nav.banner !== undefined"}]}),this._v(" "),e("navigation"),this._v(" "),e("page-content",[this._t("default")],2)],1)}),[],!1,null,null,null);e.default=o.exports},"a7q+":function(t,e,i){"use strict";i.r(e);var n=i("if8B"),s=i.n(n),a=i("ynTf"),l={directives:{onClickaway:i("x9sl").directive},components:{ProfileLink:a.default},props:{},data:function(){return{image:s.a,isOpen:!1}},methods:{away:function(){this.isOpen=!1},getTextLink:function(){return{container:"absolute top-0 sm:right-0 list-reset flex-1 items-center mt-12 w-48",li:"py-2 px-2 bg-civer-gold text-sm leading-tight"}}}},r=i("KHd+"),o=Object(r.a)(l,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:t.away,expression:"away"}],staticClass:"relative flex items-center float-right py-1 sm:py-0"},[i("div",{staticClass:"civer-gold font-hairline"},[t._v(t._s(t.$page.nav.user.name))]),t._v(" "),i("button",{on:{click:function(e){t.isOpen=!t.isOpen}}},[i("div",{staticClass:"mx-2 h-8 w-8 rounded-full overflow-hidden border-2 border-gray-600 focus:outline-none hover:border-white focus:border-white"},[i("img",{staticClass:"h-full w-full object-cover",attrs:{src:t.image,alt:t.$page.nav.user.name}})])]),t._v(" "),i("div",{class:t.isOpen?"block":"hidden"},[i("profile-link",{attrs:{nav:t.$page.nav.profile,stylus:t.getTextLink()}})],1)])}),[],!1,null,null,null);e.default=o.exports},if8B:function(t,e){t.exports="/images/avatar.svg?c88ea4132eba5ac2db7ce48c1840bf9f"},rBnf:function(t,e,i){"use strict";i.r(e);var n=i("a7q+"),s=i("TQgo"),a={components:{Profile:n.default,NavLink:s.default},props:{},data:function(){return{isOpen:!1}},methods:{}},l=i("KHd+"),r=Object(l.a)(a,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"inset-x-0 top-0 fixed bg-civer-dark-blue border-gold border-b-8 sm:flex sm:justify-between sm:items-between sm:px-4 sm:py-3 w-full z-30"},[i("div",{staticClass:"pr-4 text-center",staticStyle:{width:"48px","max-width":"120px","max-height":"36px"}},[void 0!==t.$page.site.logo?i("img",{staticClass:"object-center object-fill h-full",attrs:{src:t.$page.site.logo}}):t._e()]),t._v(" "),i("nav-link",{class:t.isOpen?"block":"hidden",attrs:{nav:t.$page.nav.menu}}),t._v(" "),i("div",{staticClass:"flex-1 items-center justify-end px-3 py-2 sm:p-0"},[i("div",{staticClass:"sm:hidden"},[i("button",{staticClass:"block text-gray-500 hover:text-white focus:text-white focus:outline-none",attrs:{type:"button"},on:{click:function(e){t.isOpen=!t.isOpen}}},[i("svg",{staticClass:"h-6 w-6 fill-current",attrs:{viewBox:"0 0 24 24"}},[t.isOpen?i("path",{attrs:{"fill-rule":"evenodd",d:"M18.278 16.864a1 1 0 0 1-1.414 1.414l-4.829-4.828-4.828 4.828a1 1 0 0 1-1.414-1.414l4.828-4.829-4.828-4.828a1 1 0 0 1 1.414-1.414l4.829 4.828 4.828-4.828a1 1 0 1 1 1.414 1.414l-4.828 4.829 4.828 4.828z"}}):t._e(),t._v(" "),t.isOpen?t._e():i("path",{attrs:{"fill-rule":"evenodd",d:"M4 5h16a1 1 0 0 1 0 2H4a1 1 0 1 1 0-2zm0 6h16a1 1 0 0 1 0 2H4a1 1 0 0 1 0-2zm0 6h16a1 1 0 0 1 0 2H4a1 1 0 0 1 0-2z"}})])])])]),t._v(" "),i("profile",{directives:[{name:"show",rawName:"v-show",value:null!==t.$page.nav.user,expression:"$page.nav.user !== null"}]})],1)}),[],!1,null,null,null);e.default=r.exports},tp5t:function(t,e,i){"use strict";i.r(e);var n=i("KHd+"),s=Object(n.a)({},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"pt-20 gradient-blue p-2 min-h-full h-auto w-full"},[i("div",{staticClass:"grid gap-1 grid-cols-3 gap-2"},[i("div",{staticClass:"col-span-2"},[i("div",{staticClass:"w-full h-auto min-h-full hidden sm:block bg-white rounded-lg p-1"},[t._t("default")],2)]),t._v(" "),i("div",{staticClass:"col-span-1"},[i("div",{staticClass:"grid grid-flow-col grid-cols-1 grid-rows-3 gap-4"},[i("div",{staticClass:"row-span-1 col-span-1 bg-white rounded-lg"},[i("div",{staticClass:"civer-info-grid m-1"},[i("div",{staticClass:"civer-info-divider rounded-t-lg"},[t._v("\n                "+t._s(t.__("auth.profile.title"))+"\n              ")]),t._v(" "),i("div",{staticClass:"civer-info-label"},[t._v(t._s(t.__("auth.profile.name")))]),t._v(" "),i("div",{staticClass:"civer-info-desc"},[t._v("\n                "+t._s(t.$page.nav.user.name)+"\n              ")]),t._v(" "),i("div",{staticClass:"civer-info-label"},[t._v(t._s(t.__("auth.profile.dept")))]),t._v(" "),i("div",{staticClass:"civer-info-desc"}),t._v(" "),i("div",{staticClass:"civer-info-label"},[t._v(t._s(t.__("auth.profile.phone")))]),t._v(" "),i("div",{staticClass:"civer-info-desc"}),t._v(" "),i("div",{staticClass:"civer-info-label rounded-bl-lg"},[t._v(t._s(t.__("auth.profile.email")))]),t._v(" "),i("div",{staticClass:"civer-info-desc rounded-br-lg"},[t._v("\n                "+t._s(t.$page.nav.user.email)+"\n              ")])])]),t._v(" "),i("div",{staticClass:"row-span-2 col-span-1 bg-white rounded-lg"})])])])])}),[],!1,null,null,null);e.default=s.exports},ynTf:function(t,e,i){"use strict";i.r(e);var n={props:{stylus:Object,nav:[Array,Object]},components:{},methods:{lastTab:function(t){return Object.keys(this.nav)[Object.keys(this.nav).length-1]===t}},data:function(){return{menu:this.nav}}},s=i("KHd+"),a=Object(s.a)(n,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("ul",{class:t.stylus.container},t._l(t.menu,(function(e,n){return i("li",{key:n,class:t.stylus.li+(t.lastTab(n)?" sm:rounded-b-lg":"")},[i("inertia-link",{staticClass:"flex",attrs:{href:e.path,method:void 0===e.method?"get":e.method}},[i("v-icon",{staticClass:"w-1/6",attrs:{name:void 0!==e.icon?e.icon:"angle-double-right"}}),t._v("\n      "+t._s(e.title)+"\n    ")],1)],1)})),0)}),[],!1,null,null,null);e.default=a.exports}}]);