907.js
44 KB
(self.webpackChunk=self.webpackChunk||[]).push([[907],{6907:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>f});var n=r(9714),o=r(5865),i=r(6119),s=r(3669),a=r(1100);const l={metaInfo:{title:"Create User"},components:{FileInput:o.Z,LoadingButton:a.Z,SelectInput:s.Z,TextInput:i.Z},layout:n.Z,remember:"form",data:function(){return{form:this.$inertia.form({first_name:null,last_name:null,email:null,password:null,owner:!1,photo:null})}},methods:{store:function(){this.form.post(this.route("users.store"))}}};const f=(0,r(1900).Z)(l,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("h1",{staticClass:"mb-8 font-bold text-3xl"},[r("inertia-link",{staticClass:"text-indigo-400 hover:text-indigo-600",attrs:{href:t.route("users")}},[t._v("Users")]),t._v(" "),r("span",{staticClass:"text-indigo-400 font-medium"},[t._v("/")]),t._v(" Create\n ")],1),t._v(" "),r("div",{staticClass:"bg-white rounded-md shadow overflow-hidden max-w-3xl"},[r("form",{on:{submit:function(e){return e.preventDefault(),t.store(e)}}},[r("div",{staticClass:"p-8 -mr-6 -mb-8 flex flex-wrap"},[r("text-input",{staticClass:"pr-6 pb-8 w-full lg:w-1/2",attrs:{error:t.form.errors.first_name,label:"First name"},model:{value:t.form.first_name,callback:function(e){t.$set(t.form,"first_name",e)},expression:"form.first_name"}}),t._v(" "),r("text-input",{staticClass:"pr-6 pb-8 w-full lg:w-1/2",attrs:{error:t.form.errors.last_name,label:"Last name"},model:{value:t.form.last_name,callback:function(e){t.$set(t.form,"last_name",e)},expression:"form.last_name"}}),t._v(" "),r("text-input",{staticClass:"pr-6 pb-8 w-full lg:w-1/2",attrs:{error:t.form.errors.email,label:"Email"},model:{value:t.form.email,callback:function(e){t.$set(t.form,"email",e)},expression:"form.email"}}),t._v(" "),r("text-input",{staticClass:"pr-6 pb-8 w-full lg:w-1/2",attrs:{error:t.form.errors.password,type:"password",autocomplete:"new-password",label:"Password"},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}}),t._v(" "),r("select-input",{staticClass:"pr-6 pb-8 w-full lg:w-1/2",attrs:{error:t.form.errors.owner,label:"Owner"},model:{value:t.form.owner,callback:function(e){t.$set(t.form,"owner",e)},expression:"form.owner"}},[r("option",{domProps:{value:!0}},[t._v("Yes")]),t._v(" "),r("option",{domProps:{value:!1}},[t._v("No")])]),t._v(" "),r("file-input",{staticClass:"pr-6 pb-8 w-full lg:w-1/2",attrs:{error:t.form.errors.photo,type:"file",accept:"image/*",label:"Photo"},model:{value:t.form.photo,callback:function(e){t.$set(t.form,"photo",e)},expression:"form.photo"}})],1),t._v(" "),r("div",{staticClass:"px-8 py-4 bg-gray-50 border-t border-gray-100 flex justify-end items-center"},[r("loading-button",{staticClass:"btn-indigo",attrs:{loading:t.form.processing,type:"submit"}},[t._v("Create User")])],1)])])])}),[],!1,null,null,null).exports},381:(t,e,r)=>{"use strict";r.d(e,{Z:()=>ct});var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,o=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(n&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();var i=n&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),o))}};function s(t){return t&&"[object Function]"==={}.toString.call(t)}function a(t,e){if(1!==t.nodeType)return[];var r=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?r[e]:r}function l(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function f(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=a(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(r+o+n)?t:f(l(t))}function p(t){return t&&t.referenceNode?t.referenceNode:t}var c=n&&!(!window.MSInputMethodContext||!document.documentMode),u=n&&/MSIE 10/.test(navigator.userAgent);function d(t){return 11===t?c:10===t?u:c||u}function h(t){if(!t)return document.documentElement;for(var e=d(10)?document.body:null,r=t.offsetParent||null;r===e&&t.nextElementSibling;)r=(t=t.nextElementSibling).offsetParent;var n=r&&r.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TH","TD","TABLE"].indexOf(r.nodeName)&&"static"===a(r,"position")?h(r):r:t?t.ownerDocument.documentElement:document.documentElement}function m(t){return null!==t.parentNode?m(t.parentNode):t}function v(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var r=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,n=r?t:e,o=r?e:t,i=document.createRange();i.setStart(n,0),i.setEnd(o,0);var s,a,l=i.commonAncestorContainer;if(t!==l&&e!==l||n.contains(o))return"BODY"===(a=(s=l).nodeName)||"HTML"!==a&&h(s.firstElementChild)!==s?h(l):l;var f=m(t);return f.host?v(f.host,e):v(t,m(e).host)}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",r="top"===e?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var o=t.ownerDocument.documentElement,i=t.ownerDocument.scrollingElement||o;return i[r]}return t[r]}function w(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=g(e,"top"),o=g(e,"left"),i=r?-1:1;return t.top+=n*i,t.bottom+=n*i,t.left+=o*i,t.right+=o*i,t}function b(t,e){var r="x"===e?"Left":"Top",n="Left"===r?"Right":"Bottom";return parseFloat(t["border"+r+"Width"])+parseFloat(t["border"+n+"Width"])}function x(t,e,r,n){return Math.max(e["offset"+t],e["scroll"+t],r["client"+t],r["offset"+t],r["scroll"+t],d(10)?parseInt(r["offset"+t])+parseInt(n["margin"+("Height"===t?"Top":"Left")])+parseInt(n["margin"+("Height"===t?"Bottom":"Right")]):0)}function y(t){var e=t.body,r=t.documentElement,n=d(10)&&getComputedStyle(r);return{height:x("Height",e,r,n),width:x("Width",e,r,n)}}var _=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},C=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),E=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},k=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};function z(t){return k({},t,{right:t.left+t.width,bottom:t.top+t.height})}function M(t){var e={};try{if(d(10)){e=t.getBoundingClientRect();var r=g(t,"top"),n=g(t,"left");e.top+=r,e.left+=n,e.bottom+=r,e.right+=n}else e=t.getBoundingClientRect()}catch(t){}var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},i="HTML"===t.nodeName?y(t.ownerDocument):{},s=i.width||t.clientWidth||o.width,l=i.height||t.clientHeight||o.height,f=t.offsetWidth-s,p=t.offsetHeight-l;if(f||p){var c=a(t);f-=b(c,"x"),p-=b(c,"y"),o.width-=f,o.height-=p}return z(o)}function L(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=d(10),o="HTML"===e.nodeName,i=M(t),s=M(e),l=f(t),p=a(e),c=parseFloat(p.borderTopWidth),u=parseFloat(p.borderLeftWidth);r&&o&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=z({top:i.top-s.top-c,left:i.left-s.left-u,width:i.width,height:i.height});if(h.marginTop=0,h.marginLeft=0,!n&&o){var m=parseFloat(p.marginTop),v=parseFloat(p.marginLeft);h.top-=c-m,h.bottom-=c-m,h.left-=u-v,h.right-=u-v,h.marginTop=m,h.marginLeft=v}return(n&&!r?e.contains(l):e===l&&"BODY"!==l.nodeName)&&(h=w(h,e)),h}function H(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.ownerDocument.documentElement,n=L(t,r),o=Math.max(r.clientWidth,window.innerWidth||0),i=Math.max(r.clientHeight,window.innerHeight||0),s=e?0:g(r),a=e?0:g(r,"left"),l={top:s-n.top+n.marginTop,left:a-n.left+n.marginLeft,width:o,height:i};return z(l)}function O(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===a(t,"position"))return!0;var r=l(t);return!!r&&O(r)}function $(t){if(!t||!t.parentElement||d())return document.documentElement;for(var e=t.parentElement;e&&"none"===a(e,"transform");)e=e.parentElement;return e||document.documentElement}function B(t,e,r,n){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},s=o?$(t):v(t,p(e));if("viewport"===n)i=H(s,o);else{var a=void 0;"scrollParent"===n?"BODY"===(a=f(l(e))).nodeName&&(a=t.ownerDocument.documentElement):a="window"===n?t.ownerDocument.documentElement:n;var c=L(a,s,o);if("HTML"!==a.nodeName||O(s))i=c;else{var u=y(t.ownerDocument),d=u.height,h=u.width;i.top+=c.top-c.marginTop,i.bottom=d+c.top,i.left+=c.left-c.marginLeft,i.right=h+c.left}}var m="number"==typeof(r=r||0);return i.left+=m?r:r.left||0,i.top+=m?r:r.top||0,i.right-=m?r:r.right||0,i.bottom-=m?r:r.bottom||0,i}function V(t){return t.width*t.height}function S(t,e,r,n,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var s=B(r,n,i,o),a={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},l=Object.keys(a).map((function(t){return k({key:t},a[t],{area:V(a[t])})})).sort((function(t,e){return e.area-t.area})),f=l.filter((function(t){var e=t.width,n=t.height;return e>=r.clientWidth&&n>=r.clientHeight})),p=f.length>0?f[0].key:l[0].key,c=t.split("-")[1];return p+(c?"-"+c:"")}function T(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=n?$(e):v(e,p(r));return L(r,o,n)}function N(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),r=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),n=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+n,height:t.offsetHeight+r}}function D(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function F(t,e,r){r=r.split("-")[0];var n=N(t),o={width:n.width,height:n.height},i=-1!==["right","left"].indexOf(r),s=i?"top":"left",a=i?"left":"top",l=i?"height":"width",f=i?"width":"height";return o[s]=e[s]+e[l]/2-n[l]/2,o[a]=r===a?e[a]-n[f]:e[D(a)],o}function A(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function Z(t,e,r){return(void 0===r?t:t.slice(0,function(t,e,r){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===r}));var n=A(t,(function(t){return t[e]===r}));return t.indexOf(n)}(t,"name",r))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var r=t.function||t.fn;t.enabled&&s(r)&&(e.offsets.popper=z(e.offsets.popper),e.offsets.reference=z(e.offsets.reference),e=r(e,t))})),e}function P(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=T(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=S(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=F(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=Z(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function U(t,e){return t.some((function(t){var r=t.name;return t.enabled&&r===e}))}function j(t){for(var e=[!1,"ms","Webkit","Moz","O"],r=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<e.length;n++){var o=e[n],i=o?""+o+r:t;if(void 0!==document.body.style[i])return i}return null}function W(){return this.state.isDestroyed=!0,U(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[j("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function R(t){var e=t.ownerDocument;return e?e.defaultView:window}function I(t,e,r,n){var o="BODY"===t.nodeName,i=o?t.ownerDocument.defaultView:t;i.addEventListener(e,r,{passive:!0}),o||I(f(i.parentNode),e,r,n),n.push(i)}function Y(t,e,r,n){r.updateBound=n,R(t).addEventListener("resize",r.updateBound,{passive:!0});var o=f(t);return I(o,"scroll",r.updateBound,r.scrollParents),r.scrollElement=o,r.eventsEnabled=!0,r}function q(){this.state.eventsEnabled||(this.state=Y(this.reference,this.options,this.state,this.scheduleUpdate))}function G(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,R(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function X(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function J(t,e){Object.keys(e).forEach((function(r){var n="";-1!==["width","height","top","right","bottom","left"].indexOf(r)&&X(e[r])&&(n="px"),t.style[r]=e[r]+n}))}var K=n&&/Firefox/i.test(navigator.userAgent);function Q(t,e,r){var n=A(t,(function(t){return t.name===e})),o=!!n&&t.some((function(t){return t.name===r&&t.enabled&&t.order<n.order}));if(!o){var i="`"+e+"`",s="`"+r+"`";console.warn(s+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}var tt=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],et=tt.slice(3);function rt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=et.indexOf(t),n=et.slice(r+1).concat(et.slice(0,r));return e?n.reverse():n}var nt="flip",ot="clockwise",it="counterclockwise";function st(t,e,r,n){var o=[0,0],i=-1!==["right","left"].indexOf(n),s=t.split(/(\+|\-)/).map((function(t){return t.trim()})),a=s.indexOf(A(s,(function(t){return-1!==t.search(/,|\s/)})));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,f=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return(f=f.map((function(t,n){var o=(1===n?!i:i)?"height":"width",s=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,s=!0,t):s?(t[t.length-1]+=e,s=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,r,n){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],s=o[2];if(!i)return t;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=r;break;case"%":case"%r":default:a=n}return z(a)[e]/100*i}if("vh"===s||"vw"===s)return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(t,o,e,r)}))}))).forEach((function(t,e){t.forEach((function(r,n){X(r)&&(o[e]+=r*("-"===t[n-1]?-1:1))}))})),o}var at={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,r=e.split("-")[0],n=e.split("-")[1];if(n){var o=t.offsets,i=o.reference,s=o.popper,a=-1!==["bottom","top"].indexOf(r),l=a?"left":"top",f=a?"width":"height",p={start:E({},l,i[l]),end:E({},l,i[l]+i[f]-s[f])};t.offsets.popper=k({},s,p[n])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var r=e.offset,n=t.placement,o=t.offsets,i=o.popper,s=o.reference,a=n.split("-")[0],l=void 0;return l=X(+r)?[+r,0]:st(r,i,s,a),"left"===a?(i.top+=l[0],i.left-=l[1]):"right"===a?(i.top+=l[0],i.left+=l[1]):"top"===a?(i.left+=l[0],i.top-=l[1]):"bottom"===a&&(i.left+=l[0],i.top+=l[1]),t.popper=i,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var r=e.boundariesElement||h(t.instance.popper);t.instance.reference===r&&(r=h(r));var n=j("transform"),o=t.instance.popper.style,i=o.top,s=o.left,a=o[n];o.top="",o.left="",o[n]="";var l=B(t.instance.popper,t.instance.reference,e.padding,r,t.positionFixed);o.top=i,o.left=s,o[n]=a,e.boundaries=l;var f=e.priority,p=t.offsets.popper,c={primary:function(t){var r=p[t];return p[t]<l[t]&&!e.escapeWithReference&&(r=Math.max(p[t],l[t])),E({},t,r)},secondary:function(t){var r="right"===t?"left":"top",n=p[r];return p[t]>l[t]&&!e.escapeWithReference&&(n=Math.min(p[r],l[t]-("right"===t?p.width:p.height))),E({},r,n)}};return f.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";p=k({},p,c[e](t))})),t.offsets.popper=p,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,r=e.popper,n=e.reference,o=t.placement.split("-")[0],i=Math.floor,s=-1!==["top","bottom"].indexOf(o),a=s?"right":"bottom",l=s?"left":"top",f=s?"width":"height";return r[a]<i(n[l])&&(t.offsets.popper[l]=i(n[l])-r[f]),r[l]>i(n[a])&&(t.offsets.popper[l]=i(n[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var r;if(!Q(t.instance.modifiers,"arrow","keepTogether"))return t;var n=e.element;if("string"==typeof n){if(!(n=t.instance.popper.querySelector(n)))return t}else if(!t.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var o=t.placement.split("-")[0],i=t.offsets,s=i.popper,l=i.reference,f=-1!==["left","right"].indexOf(o),p=f?"height":"width",c=f?"Top":"Left",u=c.toLowerCase(),d=f?"left":"top",h=f?"bottom":"right",m=N(n)[p];l[h]-m<s[u]&&(t.offsets.popper[u]-=s[u]-(l[h]-m)),l[u]+m>s[h]&&(t.offsets.popper[u]+=l[u]+m-s[h]),t.offsets.popper=z(t.offsets.popper);var v=l[u]+l[p]/2-m/2,g=a(t.instance.popper),w=parseFloat(g["margin"+c]),b=parseFloat(g["border"+c+"Width"]),x=v-t.offsets.popper[u]-w-b;return x=Math.max(Math.min(s[p]-m,x),0),t.arrowElement=n,t.offsets.arrow=(E(r={},u,Math.round(x)),E(r,d,""),r),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(U(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var r=B(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),n=t.placement.split("-")[0],o=D(n),i=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case nt:s=[n,o];break;case ot:s=rt(n);break;case it:s=rt(n,!0);break;default:s=e.behavior}return s.forEach((function(a,l){if(n!==a||s.length===l+1)return t;n=t.placement.split("-")[0],o=D(n);var f=t.offsets.popper,p=t.offsets.reference,c=Math.floor,u="left"===n&&c(f.right)>c(p.left)||"right"===n&&c(f.left)<c(p.right)||"top"===n&&c(f.bottom)>c(p.top)||"bottom"===n&&c(f.top)<c(p.bottom),d=c(f.left)<c(r.left),h=c(f.right)>c(r.right),m=c(f.top)<c(r.top),v=c(f.bottom)>c(r.bottom),g="left"===n&&d||"right"===n&&h||"top"===n&&m||"bottom"===n&&v,w=-1!==["top","bottom"].indexOf(n),b=!!e.flipVariations&&(w&&"start"===i&&d||w&&"end"===i&&h||!w&&"start"===i&&m||!w&&"end"===i&&v),x=!!e.flipVariationsByContent&&(w&&"start"===i&&h||w&&"end"===i&&d||!w&&"start"===i&&v||!w&&"end"===i&&m),y=b||x;(u||g||y)&&(t.flipped=!0,(u||g)&&(n=s[l+1]),y&&(i=function(t){return"end"===t?"start":"start"===t?"end":t}(i)),t.placement=n+(i?"-"+i:""),t.offsets.popper=k({},t.offsets.popper,F(t.instance.popper,t.offsets.reference,t.placement)),t=Z(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,r=e.split("-")[0],n=t.offsets,o=n.popper,i=n.reference,s=-1!==["left","right"].indexOf(r),a=-1===["top","left"].indexOf(r);return o[s?"left":"top"]=i[r]-(a?o[s?"width":"height"]:0),t.placement=D(e),t.offsets.popper=z(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!Q(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,r=A(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<r.top||e.left>r.right||e.top>r.bottom||e.right<r.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var r=e.x,n=e.y,o=t.offsets.popper,i=A(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=void 0!==i?i:e.gpuAcceleration,a=h(t.instance.popper),l=M(a),f={position:o.position},p=function(t,e){var r=t.offsets,n=r.popper,o=r.reference,i=Math.round,s=Math.floor,a=function(t){return t},l=i(o.width),f=i(n.width),p=-1!==["left","right"].indexOf(t.placement),c=-1!==t.placement.indexOf("-"),u=e?p||c||l%2==f%2?i:s:a,d=e?i:a;return{left:u(l%2==1&&f%2==1&&!c&&e?n.left-1:n.left),top:d(n.top),bottom:d(n.bottom),right:u(n.right)}}(t,window.devicePixelRatio<2||!K),c="bottom"===r?"top":"bottom",u="right"===n?"left":"right",d=j("transform"),m=void 0,v=void 0;if(v="bottom"===c?"HTML"===a.nodeName?-a.clientHeight+p.bottom:-l.height+p.bottom:p.top,m="right"===u?"HTML"===a.nodeName?-a.clientWidth+p.right:-l.width+p.right:p.left,s&&d)f[d]="translate3d("+m+"px, "+v+"px, 0)",f[c]=0,f[u]=0,f.willChange="transform";else{var g="bottom"===c?-1:1,w="right"===u?-1:1;f[c]=v*g,f[u]=m*w,f.willChange=c+", "+u}var b={"x-placement":t.placement};return t.attributes=k({},b,t.attributes),t.styles=k({},f,t.styles),t.arrowStyles=k({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,r;return J(t.instance.popper,t.styles),e=t.instance.popper,r=t.attributes,Object.keys(r).forEach((function(t){!1!==r[t]?e.setAttribute(t,r[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&J(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,r,n,o){var i=T(o,e,t,r.positionFixed),s=S(r.placement,i,e,t,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return e.setAttribute("x-placement",s),J(e,{position:r.positionFixed?"fixed":"absolute"}),r},gpuAcceleration:void 0}}},lt=function(){function t(e,r){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=i(this.update.bind(this)),this.options=k({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(k({},t.Defaults.modifiers,o.modifiers)).forEach((function(e){n.options.modifiers[e]=k({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return k({name:t},n.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&s(t.onLoad)&&t.onLoad(n.reference,n.popper,n.options,t,n.state)})),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return C(t,[{key:"update",value:function(){return P.call(this)}},{key:"destroy",value:function(){return W.call(this)}},{key:"enableEventListeners",value:function(){return q.call(this)}},{key:"disableEventListeners",value:function(){return G.call(this)}}]),t}();lt.Utils=("undefined"!=typeof window?window:r.g).PopperUtils,lt.placements=tt,lt.Defaults=at;const ft=lt,pt={props:{placement:{type:String,default:"bottom-end"},boundary:{type:String,default:"scrollParent"},autoClose:{type:Boolean,default:!0}},data:function(){return{show:!1}},watch:{show:function(t){var e=this;t?this.$nextTick((function(){e.popper=new ft(e.$el,e.$refs.dropdown,{placement:e.placement,modifiers:{preventOverflow:{boundariesElement:e.boundary}}})})):this.popper&&setTimeout((function(){return e.popper.destroy()}),100)}},mounted:function(){var t=this;document.addEventListener("keydown",(function(e){27===e.keyCode&&(t.show=!1)}))}};const ct=(0,r(1900).Z)(pt,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("button",{attrs:{type:"button"},on:{click:function(e){t.show=!0}}},[t._t("default"),t._v(" "),t.show?r("portal",{attrs:{to:"dropdown"}},[r("div",[r("div",{staticStyle:{position:"fixed",top:"0",right:"0",left:"0",bottom:"0","z-index":"99998",background:"black",opacity:".2"},on:{click:function(e){t.show=!1}}}),t._v(" "),r("div",{ref:"dropdown",staticStyle:{position:"absolute","z-index":"99999"},on:{click:function(e){e.stopPropagation(),t.show=!t.autoClose}}},[t._t("dropdown")],2)])]):t._e()],2)}),[],!1,null,null,null).exports},5865:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});const n={props:{value:File,label:String,accept:String,errors:{type:Array,default:function(){return[]}}},watch:{value:function(t){t||(this.$refs.file.value="")}},methods:{filesize:function(t){var e=Math.floor(Math.log(t)/Math.log(1024));return 1*(t/Math.pow(1024,e)).toFixed(2)+" "+["B","kB","MB","GB","TB"][e]},browse:function(){this.$refs.file.click()},change:function(t){this.$emit("input",t.target.files[0])},remove:function(){this.$emit("input",null)}}};const o=(0,r(1900).Z)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[t.label?r("label",{staticClass:"form-label"},[t._v(t._s(t.label)+":")]):t._e(),t._v(" "),r("div",{staticClass:"form-input p-0",class:{error:t.errors.length}},[r("input",{ref:"file",staticClass:"hidden",attrs:{type:"file",accept:t.accept},on:{change:t.change}}),t._v(" "),t.value?r("div",{staticClass:"flex items-center justify-between p-2"},[r("div",{staticClass:"flex-1 pr-1"},[t._v("\n "+t._s(t.value.name)+" "),r("span",{staticClass:"text-gray-500 text-xs"},[t._v("("+t._s(t.filesize(t.value.size))+")")])]),t._v(" "),r("button",{staticClass:"px-4 py-1 bg-gray-500 hover:bg-gray-700 rounded-sm text-xs font-medium text-white",attrs:{type:"button"},on:{click:t.remove}},[t._v("\n Remove\n ")])]):r("div",{staticClass:"p-2"},[r("button",{staticClass:"px-4 py-1 bg-gray-500 hover:bg-gray-700 rounded-sm text-xs font-medium text-white",attrs:{type:"button"},on:{click:t.browse}},[t._v("\n Browse\n ")])])]),t._v(" "),t.errors.length?r("div",{staticClass:"form-error"},[t._v(t._s(t.errors[0]))]):t._e()])}),[],!1,null,null,null).exports},5007:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});const n={props:{name:String}};const o=(0,r(1900).Z)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return"apple"===t.name?r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"100",height:"100",viewBox:"0 0 100 100"}},[r("g",{attrs:{"fill-rule":"nonzero"}},[r("path",{attrs:{d:"M46.173 19.967C49.927-1.838 19.797-.233 14.538.21c-.429.035-.648.4-.483.8 2.004 4.825 14.168 31.66 32.118 18.957zm13.18 1.636c1.269-.891 1.35-1.614.047-2.453l-2.657-1.71c-.94-.607-1.685-.606-2.532.129-5.094 4.42-7.336 9.18-8.211 15.24 1.597.682 3.55.79 5.265.328 1.298-4.283 3.64-8.412 8.088-11.534z"}}),r("path",{attrs:{d:"M88.588 67.75c9.65-27.532-13.697-45.537-35.453-32.322-1.84 1.118-4.601 1.118-6.441 0-21.757-13.215-45.105 4.79-35.454 32.321 5.302 15.123 17.06 39.95 37.295 29.995.772-.38 1.986-.38 2.758 0 20.235 9.955 31.991-14.872 37.295-29.995z"}})])]):"book"===t.name?r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[r("path",{attrs:{d:"M6 4H5a1 1 0 1 1 0-2h11V1a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v16c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V5a1 1 0 0 0-1-1h-7v8l-2-2-2 2V4z"}})]):"cheveron-down"===t.name?r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[r("path",{attrs:{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"}})]):"cheveron-right"===t.name?r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[r("polygon",{attrs:{points:"12.95 10.707 13.657 10 8 4.343 6.586 5.757 10.828 10 6.586 14.243 8 15.657 12.95 10.707"}})]):"dashboard"===t.name?r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[r("path",{attrs:{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm-5.6-4.29a9.95 9.95 0 0 1 11.2 0 8 8 0 1 0-11.2 0zm6.12-7.64l3.02-3.02 1.41 1.41-3.02 3.02a2 2 0 1 1-1.41-1.41z"}})]):"location"===t.name?r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[r("path",{attrs:{d:"M10 20S3 10.87 3 7a7 7 0 1 1 14 0c0 3.87-7 13-7 13zm0-11a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"}})]):"office"===t.name?r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"100",height:"100",viewBox:"0 0 100 100"}},[r("path",{attrs:{"fill-rule":"evenodd",d:"M7 0h86v100H57.108V88.418H42.892V100H7V0zm9 64h11v15H16V64zm57 0h11v15H73V64zm-19 0h11v15H54V64zm-19 0h11v15H35V64zM16 37h11v15H16V37zm57 0h11v15H73V37zm-19 0h11v15H54V37zm-19 0h11v15H35V37zM16 11h11v15H16V11zm57 0h11v15H73V11zm-19 0h11v15H54V11zm-19 0h11v15H35V11z"}})]):"printer"===t.name?r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[r("path",{attrs:{d:"M4 16H0V6h20v10h-4v4H4v-4zm2-4v6h8v-6H6zM4 0h12v5H4V0zM2 8v2h2V8H2zm4 0v2h2V8H6z"}})]):"shopping-cart"===t.name?r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[r("path",{attrs:{d:"M4 2h16l-3 9H4a1 1 0 1 0 0 2h13v2H4a3 3 0 0 1 0-6h.33L3 5 2 2H0V0h3a1 1 0 0 1 1 1v1zm1 18a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm10 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4z"}})]):"store-front"===t.name?r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[r("path",{attrs:{d:"M18 9.87V20H2V9.87a4.25 4.25 0 0 0 3-.38V14h10V9.5a4.26 4.26 0 0 0 3 .37zM3 0h4l-.67 6.03A3.43 3.43 0 0 1 3 9C1.34 9 .42 7.73.95 6.15L3 0zm5 0h4l.7 6.3c.17 1.5-.91 2.7-2.42 2.7h-.56A2.38 2.38 0 0 1 7.3 6.3L8 0zm5 0h4l2.05 6.15C19.58 7.73 18.65 9 17 9a3.42 3.42 0 0 1-3.33-2.97L13 0z"}})]):"trash"===t.name?r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[r("path",{attrs:{d:"M6 2l2-2h4l2 2h4v2H2V2h4zM3 6h14l-1 14H4L3 6zm5 2v10h1V8H8zm3 0v10h1V8h-1z"}})]):"users"===t.name?r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[r("path",{attrs:{d:"M7 8a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0 1c2.15 0 4.2.4 6.1 1.09L12 16h-1.25L10 20H4l-.75-4H2L.9 10.09A17.93 17.93 0 0 1 7 9zm8.31.17c1.32.18 2.59.48 3.8.92L18 16h-1.25L16 20h-3.96l.37-2h1.25l1.65-8.83zM13 0a4 4 0 1 1-1.33 7.76 5.96 5.96 0 0 0 0-7.52C12.1.1 12.53 0 13 0z"}})]):t._e()}),[],!1,null,null,null).exports},9714:(t,e,r)=>{"use strict";r.d(e,{Z:()=>u});var n=r(5007),o=r(3354),i=r(381);const s={components:{Icon:n.Z},methods:{isUrl:function(){for(var t=this.$page.url.substr(1),e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return""===r[0]?""===t:r.filter((function(e){return t.startsWith(e)})).length}}};var a=r(1900);const l=(0,a.Z)(s,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticClass:"mb-4"},[r("inertia-link",{staticClass:"flex items-center group py-3",attrs:{href:t.route("dashboard")}},[r("icon",{staticClass:"w-4 h-4 mr-2",class:t.isUrl("")?"fill-white":"fill-indigo-400 group-hover:fill-white",attrs:{name:"dashboard"}}),t._v(" "),r("div",{class:t.isUrl("")?"text-white":"text-indigo-300 group-hover:text-white"},[t._v("Dashboard")])],1)],1),t._v(" "),r("div",{staticClass:"mb-4"},[r("inertia-link",{staticClass:"flex items-center group py-3",attrs:{href:t.route("tokens")}},[r("icon",{staticClass:"w-4 h-4 mr-2",class:t.isUrl("tokens")?"fill-white":"fill-indigo-400 group-hover:fill-white",attrs:{name:"office"}}),t._v(" "),r("div",{class:t.isUrl("tokens")?"text-white":"text-indigo-300 group-hover:text-white"},[t._v("Tokens")])],1)],1),t._v(" "),r("div",{staticClass:"mb-4"},[r("inertia-link",{staticClass:"flex items-center group py-3",attrs:{href:t.route("organizations")}},[r("icon",{staticClass:"w-4 h-4 mr-2",class:t.isUrl("organizations")?"fill-white":"fill-indigo-400 group-hover:fill-white",attrs:{name:"office"}}),t._v(" "),r("div",{class:t.isUrl("organizations")?"text-white":"text-indigo-300 group-hover:text-white"},[t._v("Organizations")])],1)],1),t._v(" "),r("div",{staticClass:"mb-4"},[r("inertia-link",{staticClass:"flex items-center group py-3",attrs:{href:t.route("contacts")}},[r("icon",{staticClass:"w-4 h-4 mr-2",class:t.isUrl("contacts")?"fill-white":"fill-indigo-400 group-hover:fill-white",attrs:{name:"users"}}),t._v(" "),r("div",{class:t.isUrl("contacts")?"text-white":"text-indigo-300 group-hover:text-white"},[t._v("Contacts")])],1)],1),t._v(" "),r("div",{staticClass:"mb-4"},[r("inertia-link",{staticClass:"flex items-center group py-3",attrs:{href:t.route("reports")}},[r("icon",{staticClass:"w-4 h-4 mr-2",class:t.isUrl("reports")?"fill-white":"fill-indigo-400 group-hover:fill-white",attrs:{name:"printer"}}),t._v(" "),r("div",{class:t.isUrl("reports")?"text-white":"text-indigo-300 group-hover:text-white"},[t._v("Reports")])],1)],1)])}),[],!1,null,null,null).exports;const f={data:function(){return{show:!0}},watch:{"$page.props.flash":{handler:function(){this.show=!0},deep:!0}}};const p=(0,a.Z)(f,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[t.$page.props.flash.success&&t.show?r("div",{staticClass:"mb-8 flex items-center justify-between bg-green-500 rounded max-w-3xl"},[r("div",{staticClass:"flex items-center"},[r("svg",{staticClass:"ml-4 mr-2 flex-shrink-0 w-4 h-4 fill-white",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[r("polygon",{attrs:{points:"0 11 2 9 7 14 18 3 20 5 7 18"}})]),t._v(" "),r("div",{staticClass:"py-4 text-white text-sm font-medium"},[t._v(t._s(t.$page.props.flash.success))])]),t._v(" "),r("button",{staticClass:"group mr-2 p-2",attrs:{type:"button"},on:{click:function(e){t.show=!1}}},[r("svg",{staticClass:"block w-2 h-2 fill-green-800 group-hover:fill-white",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"235.908",height:"235.908",viewBox:"278.046 126.846 235.908 235.908"}},[r("path",{attrs:{d:"M506.784 134.017c-9.56-9.56-25.06-9.56-34.62 0L396 210.18l-76.164-76.164c-9.56-9.56-25.06-9.56-34.62 0-9.56 9.56-9.56 25.06 0 34.62L361.38 244.8l-76.164 76.165c-9.56 9.56-9.56 25.06 0 34.62 9.56 9.56 25.06 9.56 34.62 0L396 279.42l76.164 76.165c9.56 9.56 25.06 9.56 34.62 0 9.56-9.56 9.56-25.06 0-34.62L430.62 244.8l76.164-76.163c9.56-9.56 9.56-25.06 0-34.62z"}})])])]):t._e(),t._v(" "),(t.$page.props.flash.error||Object.keys(t.$page.props.errors).length>0)&&t.show?r("div",{staticClass:"mb-8 flex items-center justify-between bg-red-400 rounded max-w-3xl"},[r("div",{staticClass:"flex items-center"},[r("svg",{staticClass:"ml-4 mr-2 flex-shrink-0 w-4 h-4 fill-white",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[r("path",{attrs:{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm1.41-1.41A8 8 0 1 0 15.66 4.34 8 8 0 0 0 4.34 15.66zm9.9-8.49L11.41 10l2.83 2.83-1.41 1.41L10 11.41l-2.83 2.83-1.41-1.41L8.59 10 5.76 7.17l1.41-1.41L10 8.59l2.83-2.83 1.41 1.41z"}})]),t._v(" "),t.$page.props.flash.error?r("div",{staticClass:"py-4 text-white text-sm font-medium"},[t._v(t._s(t.$page.props.flash.error))]):r("div",{staticClass:"py-4 text-white text-sm font-medium"},[1===Object.keys(t.$page.props.errors).length?r("span",[t._v("There is one form error.")]):r("span",[t._v("There are "+t._s(Object.keys(t.$page.props.errors).length)+" form errors.")])])]),t._v(" "),r("button",{staticClass:"group mr-2 p-2",attrs:{type:"button"},on:{click:function(e){t.show=!1}}},[r("svg",{staticClass:"block w-2 h-2 fill-red-800 group-hover:fill-white",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"235.908",height:"235.908",viewBox:"278.046 126.846 235.908 235.908"}},[r("path",{attrs:{d:"M506.784 134.017c-9.56-9.56-25.06-9.56-34.62 0L396 210.18l-76.164-76.164c-9.56-9.56-25.06-9.56-34.62 0-9.56 9.56-9.56 25.06 0 34.62L361.38 244.8l-76.164 76.165c-9.56 9.56-9.56 25.06 0 34.62 9.56 9.56 25.06 9.56 34.62 0L396 279.42l76.164 76.165c9.56 9.56 25.06 9.56 34.62 0 9.56-9.56 9.56-25.06 0-34.62L430.62 244.8l76.164-76.163c9.56-9.56 9.56-25.06 0-34.62z"}})])])]):t._e()])}),[],!1,null,null,null).exports,c={components:{Dropdown:i.Z,FlashMessages:p,Icon:n.Z,Logo:o.Z,MainMenu:l}};const u=(0,a.Z)(c,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("portal-target",{attrs:{name:"dropdown",slim:""}}),t._v(" "),r("div",{staticClass:"md:flex md:flex-col"},[r("div",{staticClass:"md:h-screen md:flex md:flex-col"},[r("div",{staticClass:"md:flex md:flex-shrink-0"},[r("div",{staticClass:"bg-indigo-900 md:flex-shrink-0 md:w-56 px-6 py-4 flex items-center justify-between md:justify-center"},[r("inertia-link",{staticClass:"mt-1",attrs:{href:"/"}},[r("logo",{staticClass:"fill-white",attrs:{width:"120",height:"28"}})],1),t._v(" "),r("dropdown",{staticClass:"md:hidden",attrs:{placement:"bottom-end"}},[r("svg",{staticClass:"fill-white w-6 h-6",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[r("path",{attrs:{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"}})]),t._v(" "),r("div",{staticClass:"mt-2 px-8 py-4 shadow-lg bg-indigo-800 rounded",attrs:{slot:"dropdown"},slot:"dropdown"},[r("main-menu")],1)])],1),t._v(" "),r("div",{staticClass:"bg-white border-b w-full p-4 md:py-0 md:px-12 text-sm md:text-md flex justify-between items-center"},[r("div",{staticClass:"mt-1 mr-4"},[t._v(t._s(t.$page.props.auth.user.account.name))]),t._v(" "),r("dropdown",{staticClass:"mt-1",attrs:{placement:"bottom-end"}},[r("div",{staticClass:"flex items-center cursor-pointer select-none group"},[r("div",{staticClass:"text-gray-700 group-hover:text-indigo-600 focus:text-indigo-600 mr-1 whitespace-nowrap"},[r("span",[t._v(t._s(t.$page.props.auth.user.first_name))]),t._v(" "),r("span",{staticClass:"hidden md:inline"},[t._v(t._s(t.$page.props.auth.user.last_name))])]),t._v(" "),r("icon",{staticClass:"w-5 h-5 group-hover:fill-indigo-600 fill-gray-700 focus:fill-indigo-600",attrs:{name:"cheveron-down"}})],1),t._v(" "),r("div",{staticClass:"mt-2 py-2 shadow-xl bg-white rounded text-sm",attrs:{slot:"dropdown"},slot:"dropdown"},[r("inertia-link",{staticClass:"block px-6 py-2 hover:bg-indigo-500 hover:text-white",attrs:{href:t.route("users.edit",t.$page.props.auth.user.id)}},[t._v("My Profile")]),t._v(" "),r("inertia-link",{staticClass:"block px-6 py-2 hover:bg-indigo-500 hover:text-white",attrs:{href:t.route("users")}},[t._v("Manage Users")]),t._v(" "),r("inertia-link",{staticClass:"block px-6 py-2 hover:bg-indigo-500 hover:text-white w-full text-left",attrs:{href:t.route("logout"),method:"post",as:"button"}},[t._v("Logout")])],1)])],1)]),t._v(" "),r("div",{staticClass:"md:flex md:flex-grow md:overflow-hidden"},[r("main-menu",{staticClass:"hidden md:block bg-indigo-800 flex-shrink-0 w-56 p-12 overflow-y-auto"}),t._v(" "),r("div",{staticClass:"md:flex-1 px-4 py-8 md:p-12 md:overflow-y-auto",attrs:{"scroll-region":""}},[r("flash-messages"),t._v(" "),t._t("default")],2)],1)])])],1)}),[],!1,null,null,null).exports},1100:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});const n={props:{loading:Boolean}};const o=(0,r(1900).Z)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("button",{staticClass:"flex items-center",attrs:{disabled:t.loading}},[t.loading?r("div",{staticClass:"btn-spinner mr-2"}):t._e(),t._v(" "),t._t("default")],2)}),[],!1,null,null,null).exports},3354:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n=(0,r(1900).Z)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("svg",{attrs:{viewBox:"0 0 1185 266",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M77.463 265c-19.497 0-35.318-15.405-35.318-34.39v-22.054C17.987 202.676 0 181.326 0 155.948V55.206C0 25.291 24.946 1 55.668 1h154.664C241.054 1 266 25.29 266 55.206v100.806c0 29.916-24.946 54.206-55.668 54.206H145.67c-2.823 0-5.383 1.407-6.827 3.58-10.7 17.067-24.158 31.897-39.98 43.915-6.236 4.794-13.654 7.287-21.4 7.287zM55.701 27.336c-15.771 0-28.65 12.465-28.65 27.87v100.806c0 15.342 12.813 27.87 28.65 27.87 7.49 0 13.536 5.881 13.536 13.168v33.624c0 4.922 4.272 7.99 8.214 7.99 1.709 0 3.286-.575 4.732-1.662 13.273-10.1 24.576-22.565 33.578-36.947 6.309-10.036 17.743-16.237 29.965-16.237h64.727c15.77 0 28.65-12.464 28.65-27.87V55.206c0-15.341-12.814-27.87-28.65-27.87H55.7z"}}),t._v(" "),r("path",{attrs:{d:"M395.752 2.4c37.152 0 65.088 27.936 65.088 64.8 0 36.576-27.936 64.8-65.088 64.8h-46.368v72H322.6V2.4h73.152zm0 104.544c22.176 0 38.592-16.992 38.592-39.744 0-23.04-16.416-39.744-38.592-39.744h-46.368v79.488h46.368zM502.6 33.792c-9.504 0-16.992-7.488-16.992-16.704 0-9.216 7.488-16.992 16.992-16.992 9.216 0 16.704 7.776 16.704 16.992 0 9.216-7.488 16.704-16.704 16.704zM489.928 204V60h25.056v144h-25.056zM625 56.256c33.696 0 55.872 22.464 55.872 59.328V204h-25.056v-86.976c0-23.616-13.536-36.864-35.712-36.864-23.04 0-41.76 13.536-41.76 47.52V204h-25.056V60h25.056v20.736C589 63.744 604.84 56.256 625 56.256zM835.24 60h24.768v137.952c0 44.928-36 67.392-73.44 67.392-32.256 0-56.448-12.384-68.256-35.136l21.888-12.384c6.624 13.536 18.72 24.192 46.944 24.192 29.952 0 48.096-16.992 48.096-44.064v-20.448c-11.52 17.568-29.952 28.8-54.144 28.8-40.896 0-73.44-33.12-73.44-75.168 0-41.76 32.544-74.88 73.44-74.88 24.192 0 42.624 10.944 54.144 28.512V60zm-51.264 122.4c29.088 0 51.264-22.176 51.264-51.264 0-28.8-22.176-50.976-51.264-50.976-29.088 0-51.264 22.176-51.264 50.976 0 29.088 22.176 51.264 51.264 51.264zM946.8 205.08c-28.21 0-45.63-20.8-41.08-48.88 4.42-27.17 26.91-46.28 53.56-46.28 19.37 0 31.59 9.36 38.35 22.36l-23.79 12.61c-3.25-5.85-9.1-9.49-16.9-9.49-12.35 0-23.14 9.23-25.35 22.1-2.08 11.83 4.29 22.1 17.16 22.1 8.06 0 13.91-4.03 18.59-10.14l21.58 13.65c-9.36 13.78-24.44 21.97-42.12 21.97zm126.36-59.93c-1.95 11.18-8.58 19.5-18.2 24.44l11.7 33.28h-26l-9.36-28.6h-8.32l-5.07 28.6h-26l16.12-91h36.4c18.33 0 32.24 13.65 28.73 33.28zm-43.42-9.36l-2.99 16.9h10.66c5.07.13 8.84-2.99 9.75-8.32.91-5.33-1.82-8.58-7.02-8.58h-10.4zM1184.05 112l-15.99 91h-26l7.67-43.81-25.48 33.54h-2.34l-14.82-35.23-7.93 45.5h-26l15.99-91h26l13.65 37.31 27.95-37.31h27.3z"}})])}),[],!1,null,null,null).exports},3669:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});const n={inheritAttrs:!1,props:{id:{type:String,default:function(){return"select-input-".concat(this._uid)}},value:[String,Number,Boolean],label:String,error:String},data:function(){return{selected:this.value}},watch:{selected:function(t){this.$emit("input",t)}},methods:{focus:function(){this.$refs.input.focus()},select:function(){this.$refs.input.select()}}};const o=(0,r(1900).Z)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[t.label?r("label",{staticClass:"form-label",attrs:{for:t.id}},[t._v(t._s(t.label)+":")]):t._e(),t._v(" "),r("select",t._b({directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],ref:"input",staticClass:"form-select",class:{error:t.error},attrs:{id:t.id},on:{change:function(e){var r=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.selected=e.target.multiple?r:r[0]}}},"select",t.$attrs,!1),[t._t("default")],2),t._v(" "),t.error?r("div",{staticClass:"form-error"},[t._v(t._s(t.error))]):t._e()])}),[],!1,null,null,null).exports},6119:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});const n={inheritAttrs:!1,props:{id:{type:String,default:function(){return"text-input-".concat(this._uid)}},type:{type:String,default:"text"},value:String,label:String,error:String,readonly:Boolean},methods:{focus:function(){this.$refs.input.focus()},select:function(){this.$refs.input.select()},setSelectionRange:function(t,e){this.$refs.input.setSelectionRange(t,e)}}};const o=(0,r(1900).Z)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[t.label?r("label",{staticClass:"form-label",attrs:{for:t.id}},[t._v(t._s(t.label)+":")]):t._e(),t._v(" "),r("input",t._b({ref:"input",staticClass:"form-input",class:{error:t.error},attrs:{id:t.id,readonly:t.readonly,type:t.type},domProps:{value:t.value},on:{input:function(e){return t.$emit("input",e.target.value)}}},"input",t.$attrs,!1)),t._v(" "),t.error?r("div",{staticClass:"form-error"},[t._v(t._s(t.error))]):t._e()])}),[],!1,null,null,null).exports},1900:(t,e,r)=>{"use strict";function n(t,e,r,n,o,i,s,a){var l,f="function"==typeof t?t.options:t;if(e&&(f.render=e,f.staticRenderFns=r,f._compiled=!0),n&&(f.functional=!0),i&&(f._scopeId="data-v-"+i),s?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},f._ssrRegister=l):o&&(l=a?function(){o.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:o),l)if(f.functional){f._injectStyles=l;var p=f.render;f.render=function(t,e){return l.call(e),p(t,e)}}else{var c=f.beforeCreate;f.beforeCreate=c?[].concat(c,l):[l]}return{exports:t,options:f}}r.d(e,{Z:()=>n})}}]);