92.js
51.1 KB
(self.webpackChunk=self.webpackChunk||[]).push([[92,568,492],{2568:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var i=n(5007),o=n(3669),r=n(1100);const s={components:{Icon:i.Z,SelectInput:o.Z,LoadingButton:r.Z},props:{campaigns:Array,token:Object},data:function(){return{campaign_id:null}},watch:{},mounted:function(){},methods:{add:function(){this.campaign_id&&this.$emit("add",this.campaign_id)},enabled:function(t,e){this.$emit("enabled",t,e)},destroy:function(t){this.$emit("delete",t)}}};const a=(0,n(1900).Z)(s,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h2",{staticClass:"mt-12 font-bold text-2xl"},[t._v("Campaigns")]),t._v(" "),t.campaigns.length?n("div",{staticClass:"mt-4 flex flex-wrap"},[n("select-input",{staticClass:"pr-6",attrs:{readonly:t.campaign_id},model:{value:t.campaign_id,callback:function(e){t.campaign_id=e},expression:"campaign_id"}},t._l(t.campaigns,(function(e){return n("option",{domProps:{value:e.id}},[t._v("\n "+t._s(e.name)+"\n ")])})),0),t._v(" "),n("button",{staticClass:"btn-indigo hover:underline",attrs:{tabindex:"-1",type:"button"},on:{click:t.add}},[t._v("\n Add\n ")])],1):t._e(),t._v(" "),n("div",{staticClass:"mt-4 flex flex-wrap"}),t._v(" "),n("div",{staticClass:"mt-6 bg-white rounded shadow overflow-x-auto"},[n("table",{staticClass:"w-full whitespace-nowrap"},[t._m(0),t._v(" "),t._l(t.token.campaigns,(function(e){return n("tr",{key:e.id,staticClass:"hover:bg-gray-100 focus-within:bg-gray-100"},[n("td",{staticClass:"border-t px-6 py-3"},[t._v("\n "+t._s(e.name)+"\n ")]),t._v(" "),n("td",{staticClass:"border-t px-6 py-3"},[n("input",{attrs:{id:"campaign-enabled-"+e.id,type:"checkbox"},domProps:{checked:e.enabled},on:{change:function(n){return t.enabled(e.id,!e.enabled)}}}),t._v(" "),n("label",{attrs:{for:"campaign-enabled-"+e.id}},[t._v("Enabled")])]),t._v(" "),n("td",{staticClass:"border-t w-px"},[n("div",{staticClass:"px-6 py-4"},[n("button",{staticClass:"px-4 flex items-center",attrs:{tabindex:"-1"},on:{click:function(n){return t.destroy(e.id)}}},[n("icon",{staticClass:"block w-6 h-6 fill-gray-400",attrs:{name:"trash"}})],1)])])])})),t._v(" "),0===t.token.campaigns.length?n("tr",[n("td",{staticClass:"border-t px-6 py-4",attrs:{colspan:"5"}},[t._v("No campaigns found.")])]):t._e()],2)])])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("tr",{staticClass:"text-left font-bold"},[n("th",{staticClass:"px-6 pt-6 pb-4"},[t._v("Name")]),t._v(" "),n("th",{staticClass:"px-6 pt-6 pb-4"},[t._v("Action")])])}],!1,null,null,null).exports},1492:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(3669);const o={components:{Icon:n(5007).Z,SelectInput:i.Z},props:{cities:Array,token:Object,main_token_campaigns:Array},data:function(){return{city:!1}},watch:{},mounted:function(){},methods:{cityAdd:function(){this.$emit("add",this.city)},cityDelete:function(t){this.$emit("delete",t)},synced:function(t,e,n){this.$emit("synced",t,e,n)},updated:function(t,e,n){this.$emit("updated",t,e,n)},enabled:function(t,e,n){this.$emit("enabled",t,e,n)}}};const r=(0,n(1900).Z)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h2",{staticClass:"mt-12 font-bold text-2xl"},[t._v("Cities")]),t._v(" "),t.cities.length?n("div",{staticClass:"mt-4 flex flex-wrap"},[n("select-input",{staticClass:"pr-6",model:{value:t.city,callback:function(e){t.city=e},expression:"city"}},t._l(t.cities,(function(e){return n("option",{domProps:{value:e.id}},[t._v("\n "+t._s(e.name)+"\n ")])})),0),t._v(" "),n("button",{staticClass:"btn-indigo hover:underline",attrs:{tabindex:"-1",type:"button"},on:{click:t.cityAdd}},[t._v("\n Add\n ")])],1):t._e(),t._v(" "),n("div",{staticClass:"mt-6 bg-white rounded shadow"},[n("table",{staticClass:"w-full whitespace-nowrap"},[t._m(0),t._v(" "),t._l(t.token.cities,(function(e){return[n("tr",{key:e.id,staticClass:"hover:bg-gray-100 focus-within:bg-gray-100"},[n("td",{staticClass:"border-t",attrs:{colspan:"5"}},[n("div",{staticClass:"px-6 py-4"},[t._v("\n "+t._s(e.name)+"\n ")])]),t._v(" "),n("td",{staticClass:"border-t w-px"},[n("div",{staticClass:"px-6 py-4"},[n("button",{staticClass:"px-4 flex items-center",attrs:{tabindex:"-1"},on:{click:function(n){return t.cityDelete(e.id)}}},[n("icon",{staticClass:"block w-6 h-6 fill-gray-400",attrs:{name:"trash"}})],1)])])]),t._v(" "),e.dictionary_campaigns.length?n("tr",[n("th",{staticClass:"px-6 pt-6 pb-4"}),t._v(" "),n("th",{staticClass:"px-6 pt-6 pb-4"},[t._v("Кампания")]),t._v(" "),n("th",{staticClass:"px-6 pt-6 pb-4"},[t._v("Обновлять?")]),t._v(" "),n("th",{staticClass:"px-6 pt-6 pb-4"},[t._v("Синхронизировать?")]),t._v(" "),n("th",{staticClass:"px-6 pt-6 pb-4"},[t._v("Включено?")]),t._v(" "),n("th",{staticClass:"px-6 pt-6 pb-4"})]):t._e(),t._v(" "),t._l(e.dictionary_campaigns,(function(i){return e.dictionary_campaigns.length?n("tr",{key:i.id},[n("td",{staticClass:"border-t"}),t._v(" "),n("td",{staticClass:"border-t"},[n("span",{staticClass:"px-6 py-4 flex items-center focus:text-indigo-500"},[n("inertia-link",{staticClass:"hover:text-indigo-500 focus:text-indigo-500",attrs:{href:t.route("token.campaign.variables",[t.token.id,e.id,i.campaign_id])}},[t._v("\n "+t._s(i.name)+"\n ")])],1)]),t._v(" "),n("td",{staticClass:"border-t text-center"},[n("div",{staticClass:"px-6 py-4"},[n("input",{attrs:{type:"checkbox"},domProps:{checked:i.updated},on:{change:function(n){return t.updated(e.id,i.campaign_id,!i.updated)}}})])]),t._v(" "),n("td",{staticClass:"border-t text-center"},[n("input",{attrs:{type:"checkbox"},domProps:{checked:i.synced},on:{change:function(n){return t.synced(e.id,i.campaign_id,!i.synced)}}})]),t._v(" "),n("td",{staticClass:"border-t text-center"},[n("input",{attrs:{type:"checkbox"},domProps:{checked:i.enabled},on:{change:function(n){return t.enabled(e.id,i.campaign_id,!i.enabled)}}})]),t._v(" "),n("td",{staticClass:"border-t"})]):t._e()}))]})),t._v(" "),0===t.token.cities.length?n("tr",[n("td",{staticClass:"border-t px-6 py-4",attrs:{colspan:"4"}},[t._v("No City found.")])]):t._e()],2)])])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("tr",{staticClass:"text-left font-bold"},[n("th",{staticClass:"px-6 pt-6 pb-4",attrs:{colspan:"5"}},[t._v("Name")]),t._v(" "),n("th",{staticClass:"px-6 pt-6 pb-4"})])}],!1,null,null,null).exports},1092:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});var i=n(5007),o=n(9714),r=n(6119),s=n(3669),a=n(1100),l=n(284),c=n(1492);const p={metaInfo:function(){return{title:this.form.login}},components:{CampaignsSettings:n(2568).default,CitySettings:c.default,Icon:i.Z,LoadingButton:a.Z,SelectInput:s.Z,TextInput:r.Z,TrashedMessage:l.Z},layout:o.Z,props:{campaigns:Array,token:Object,types:Object,cities:Array,main_token_campaigns:Array},remember:"form",data:function(){return{form:this.$inertia.form({id:this.token.id,login:this.token.login,token:this.token.token,api:this.token.api,type:this.token.type})}},methods:{cityAdd:function(t){this.$inertia.post(this.route("token.city.store",[this.token.id,t]))},cityUpdated:function(t,e,n){this.$inertia.post(this.route("token.city.campaign.updated",[this.token.id,t,e]),{updated:n?1:0})},citySynced:function(t,e,n){this.$inertia.post(this.route("token.city.campaign.synced",[this.token.id,t,e]),{updated:n?1:0})},cityEnabled:function(t,e,n){this.$inertia.post(this.route("token.city.campaign.enabled",[this.token.id,t,e]),{enabled:n?1:0})},cityDelete:function(t){confirm("Are you sure you want to delete this city?")&&this.$inertia.delete(this.route("token.city.destroy",[this.token.id,t]))},tokenUpdate:function(){this.form.post(this.route("token.update",this.token.id))},tokenDestroy:function(){confirm("Are you sure you want to delete this token?")&&this.$inertia.delete(this.route("token.destroy",this.token.id))},campaignEnabled:function(t,e){this.$inertia.post(this.route("token.campaign.enabled",[this.token.id,t]),{enabled:e?1:0})},campaignManaged:function(t,e){this.$inertia.post(this.route("token.campaign.managed",[this.token.id,t]),{managed:e?1:0})},campaignDelete:function(t){confirm("Are you sure you want to delete this campaign?")&&this.campaignManaged(t,0)},campaignAdd:function(t){this.campaignManaged(t,1)}}};const d=(0,n(1900).Z)(p,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h1",{staticClass:"mb-8 font-bold text-3xl"},[n("inertia-link",{staticClass:"text-indigo-400 hover:text-indigo-600",attrs:{href:t.route("tokens")}},[t._v("Tokens")]),t._v(" "),n("span",{staticClass:"text-indigo-400 font-medium"},[t._v("/")]),t._v("\n "+t._s(t.form.login)+"\n ")],1),t._v(" "),n("div",{staticClass:"bg-white rounded-md shadow overflow-hidden max-w-3xl"},[n("form",{on:{submit:function(e){return e.preventDefault(),t.tokenUpdate(e)}}},[n("div",{staticClass:"p-8 -mr-6 -mb-8 flex flex-wrap"},[n("text-input",{staticClass:"pr-6 pb-8 w-full lg:w-1/2",attrs:{error:t.form.errors.login,readonly:!0,label:"Login"},model:{value:t.form.login,callback:function(e){t.$set(t.form,"login",e)},expression:"form.login"}}),t._v(" "),n("text-input",{staticClass:"pr-6 pb-8 w-full lg:w-1/2",attrs:{error:t.form.errors.token,readonly:!0,label:"Token"},model:{value:t.form.token,callback:function(e){t.$set(t.form,"token",e)},expression:"form.token"}}),t._v(" "),n("text-input",{staticClass:"pr-6 pb-8 w-full lg:w-1/2",attrs:{error:t.form.errors.api,readonly:!0,label:"API"},model:{value:t.form.api,callback:function(e){t.$set(t.form,"api",e)},expression:"form.api"}}),t._v(" "),n("select-input",{staticClass:"pr-6 pb-8 w-full lg:w-1/2",attrs:{error:t.form.errors.type,readonly:t.form.type,label:"Type"},model:{value:t.form.type,callback:function(e){t.$set(t.form,"type",e)},expression:"form.type"}},[n("option",{domProps:{value:null}}),t._v(" "),t._l(t.types,(function(e,i){return n("option",{domProps:{value:i}},[t._v(t._s(e))])}))],2)],1),t._v(" "),n("div",{staticClass:"px-8 py-4 bg-gray-50 border-t border-gray-100 flex items-center"},[n("button",{staticClass:"text-red-600 hover:underline",attrs:{tabindex:"-1",type:"button"},on:{click:t.tokenDestroy}},[t._v("\n Delete Token\n ")]),t._v(" "),this.token.type?t._e():n("loading-button",{staticClass:"btn-indigo ml-auto",attrs:{loading:t.form.processing,type:"submit"}},[t._v("\n Update Token\n ")])],1)])]),t._v(" "),t.campaigns.length&&t.token.main?n("campaigns-settings",{attrs:{campaigns:t.campaigns,token:t.token},on:{add:t.campaignAdd,enabled:t.campaignEnabled,delete:t.campaignDelete}}):t._e(),t._v(" "),"main"!==t.token.type?n("city-settings",{attrs:{cities:t.cities,token:t.token,main_token_campaigns:t.main_token_campaigns},on:{add:t.cityAdd,delete:t.cityDelete,updated:t.cityUpdated,synced:t.citySynced,enabled:t.cityEnabled}}):t._e()],1)}),[],!1,null,null,null).exports},381:(t,e,n)=>{"use strict";n.d(e,{Z:()=>dt});var i="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(i&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();var r=i&&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 n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function l(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function c(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),n=e.overflow,i=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(n+o+i)?t:c(l(t))}function p(t){return t&&t.referenceNode?t.referenceNode:t}var d=i&&!(!window.MSInputMethodContext||!document.documentMode),f=i&&/MSIE 10/.test(navigator.userAgent);function u(t){return 11===t?d:10===t?f:d||f}function h(t){if(!t)return document.documentElement;for(var e=u(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?h(n):n: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 n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,o=n?e:t,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var s,a,l=r.commonAncestorContainer;if(t!==l&&e!==l||i.contains(o))return"BODY"===(a=(s=l).nodeName)||"HTML"!==a&&h(s.firstElementChild)!==s?h(l):l;var c=m(t);return c.host?v(c.host,e):v(t,m(e).host)}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){var o=t.ownerDocument.documentElement,r=t.ownerDocument.scrollingElement||o;return r[n]}return t[n]}function w(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=g(e,"top"),o=g(e,"left"),r=n?-1:1;return t.top+=i*r,t.bottom+=i*r,t.left+=o*r,t.right+=o*r,t}function b(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+i+"Width"])}function x(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],u(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function y(t){var e=t.body,n=t.documentElement,i=u(10)&&getComputedStyle(n);return{height:x("Height",e,n,i),width:x("Width",e,n,i)}}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 n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),k=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},E=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function z(t){return E({},t,{right:t.left+t.width,bottom:t.top+t.height})}function M(t){var e={};try{if(u(10)){e=t.getBoundingClientRect();var n=g(t,"top"),i=g(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}else e=t.getBoundingClientRect()}catch(t){}var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},r="HTML"===t.nodeName?y(t.ownerDocument):{},s=r.width||t.clientWidth||o.width,l=r.height||t.clientHeight||o.height,c=t.offsetWidth-s,p=t.offsetHeight-l;if(c||p){var d=a(t);c-=b(d,"x"),p-=b(d,"y"),o.width-=c,o.height-=p}return z(o)}function $(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=u(10),o="HTML"===e.nodeName,r=M(t),s=M(e),l=c(t),p=a(e),d=parseFloat(p.borderTopWidth),f=parseFloat(p.borderLeftWidth);n&&o&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=z({top:r.top-s.top-d,left:r.left-s.left-f,width:r.width,height:r.height});if(h.marginTop=0,h.marginLeft=0,!i&&o){var m=parseFloat(p.marginTop),v=parseFloat(p.marginLeft);h.top-=d-m,h.bottom-=d-m,h.left-=f-v,h.right-=f-v,h.marginTop=m,h.marginLeft=v}return(i&&!n?e.contains(l):e===l&&"BODY"!==l.nodeName)&&(h=w(h,e)),h}function L(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=$(t,n),o=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),s=e?0:g(n),a=e?0:g(n,"left"),l={top:s-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:o,height:r};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 n=l(t);return!!n&&O(n)}function H(t){if(!t||!t.parentElement||u())return document.documentElement;for(var e=t.parentElement;e&&"none"===a(e,"transform");)e=e.parentElement;return e||document.documentElement}function T(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},s=o?H(t):v(t,p(e));if("viewport"===i)r=L(s,o);else{var a=void 0;"scrollParent"===i?"BODY"===(a=c(l(e))).nodeName&&(a=t.ownerDocument.documentElement):a="window"===i?t.ownerDocument.documentElement:i;var d=$(a,s,o);if("HTML"!==a.nodeName||O(s))r=d;else{var f=y(t.ownerDocument),u=f.height,h=f.width;r.top+=d.top-d.marginTop,r.bottom=u+d.top,r.left+=d.left-d.marginLeft,r.right=h+d.left}}var m="number"==typeof(n=n||0);return r.left+=m?n:n.left||0,r.top+=m?n:n.top||0,r.right-=m?n:n.right||0,r.bottom-=m?n:n.bottom||0,r}function S(t){return t.width*t.height}function V(t,e,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var s=T(n,i,r,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 E({key:t},a[t],{area:S(a[t])})})).sort((function(t,e){return e.area-t.area})),c=l.filter((function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight})),p=c.length>0?c[0].key:l[0].key,d=t.split("-")[1];return p+(d?"-"+d:"")}function A(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=i?H(e):v(e,p(n));return $(n,o,i)}function B(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}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 N(t,e,n){n=n.split("-")[0];var i=B(t),o={width:i.width,height:i.height},r=-1!==["right","left"].indexOf(n),s=r?"top":"left",a=r?"left":"top",l=r?"height":"width",c=r?"width":"height";return o[s]=e[s]+e[l]/2-i[l]/2,o[a]=n===a?e[a]-i[c]:e[D(a)],o}function Z(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function P(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var i=Z(t,(function(t){return t[e]===n}));return t.indexOf(i)}(t,"name",n))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&s(n)&&(e.offsets.popper=z(e.offsets.popper),e.offsets.reference=z(e.offsets.reference),e=n(e,t))})),e}function F(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=A(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=V(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=N(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=P(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function j(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function U(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var o=e[i],r=o?""+o+n:t;if(void 0!==document.body.style[r])return r}return null}function I(){return this.state.isDestroyed=!0,j(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[U("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function W(t){var e=t.ownerDocument;return e?e.defaultView:window}function R(t,e,n,i){var o="BODY"===t.nodeName,r=o?t.ownerDocument.defaultView:t;r.addEventListener(e,n,{passive:!0}),o||R(c(r.parentNode),e,n,i),i.push(r)}function Y(t,e,n,i){n.updateBound=i,W(t).addEventListener("resize",n.updateBound,{passive:!0});var o=c(t);return R(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}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,W(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(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&X(e[n])&&(i="px"),t.style[n]=e[n]+i}))}var K=i&&/Firefox/i.test(navigator.userAgent);function Q(t,e,n){var i=Z(t,(function(t){return t.name===e})),o=!!i&&t.some((function(t){return t.name===n&&t.enabled&&t.order<i.order}));if(!o){var r="`"+e+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}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 nt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=et.indexOf(t),i=et.slice(n+1).concat(et.slice(0,n));return e?i.reverse():i}var it="flip",ot="clockwise",rt="counterclockwise";function st(t,e,n,i){var o=[0,0],r=-1!==["right","left"].indexOf(i),s=t.split(/(\+|\-)/).map((function(t){return t.trim()})),a=s.indexOf(Z(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+/,c=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return(c=c.map((function(t,i){var o=(1===i?!r:r)?"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,n,i){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],s=o[2];if(!r)return t;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=i}return z(a)[e]/100*r}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*r;return r}(t,o,e,n)}))}))).forEach((function(t,e){t.forEach((function(n,i){X(n)&&(o[e]+=n*("-"===t[i-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,n=e.split("-")[0],i=e.split("-")[1];if(i){var o=t.offsets,r=o.reference,s=o.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",p={start:k({},l,r[l]),end:k({},l,r[l]+r[c]-s[c])};t.offsets.popper=E({},s,p[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,i=t.placement,o=t.offsets,r=o.popper,s=o.reference,a=i.split("-")[0],l=void 0;return l=X(+n)?[+n,0]:st(n,r,s,a),"left"===a?(r.top+=l[0],r.left-=l[1]):"right"===a?(r.top+=l[0],r.left+=l[1]):"top"===a?(r.left+=l[0],r.top-=l[1]):"bottom"===a&&(r.left+=l[0],r.top+=l[1]),t.popper=r,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||h(t.instance.popper);t.instance.reference===n&&(n=h(n));var i=U("transform"),o=t.instance.popper.style,r=o.top,s=o.left,a=o[i];o.top="",o.left="",o[i]="";var l=T(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);o.top=r,o.left=s,o[i]=a,e.boundaries=l;var c=e.priority,p=t.offsets.popper,d={primary:function(t){var n=p[t];return p[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(p[t],l[t])),k({},t,n)},secondary:function(t){var n="right"===t?"left":"top",i=p[n];return p[t]>l[t]&&!e.escapeWithReference&&(i=Math.min(p[n],l[t]-("right"===t?p.width:p.height))),k({},n,i)}};return c.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";p=E({},p,d[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,n=e.popper,i=e.reference,o=t.placement.split("-")[0],r=Math.floor,s=-1!==["top","bottom"].indexOf(o),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]<r(i[l])&&(t.offsets.popper[l]=r(i[l])-n[c]),n[l]>r(i[a])&&(t.offsets.popper[l]=r(i[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!Q(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var o=t.placement.split("-")[0],r=t.offsets,s=r.popper,l=r.reference,c=-1!==["left","right"].indexOf(o),p=c?"height":"width",d=c?"Top":"Left",f=d.toLowerCase(),u=c?"left":"top",h=c?"bottom":"right",m=B(i)[p];l[h]-m<s[f]&&(t.offsets.popper[f]-=s[f]-(l[h]-m)),l[f]+m>s[h]&&(t.offsets.popper[f]+=l[f]+m-s[h]),t.offsets.popper=z(t.offsets.popper);var v=l[f]+l[p]/2-m/2,g=a(t.instance.popper),w=parseFloat(g["margin"+d]),b=parseFloat(g["border"+d+"Width"]),x=v-t.offsets.popper[f]-w-b;return x=Math.max(Math.min(s[p]-m,x),0),t.arrowElement=i,t.offsets.arrow=(k(n={},f,Math.round(x)),k(n,u,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(j(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=T(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],o=D(i),r=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case it:s=[i,o];break;case ot:s=nt(i);break;case rt:s=nt(i,!0);break;default:s=e.behavior}return s.forEach((function(a,l){if(i!==a||s.length===l+1)return t;i=t.placement.split("-")[0],o=D(i);var c=t.offsets.popper,p=t.offsets.reference,d=Math.floor,f="left"===i&&d(c.right)>d(p.left)||"right"===i&&d(c.left)<d(p.right)||"top"===i&&d(c.bottom)>d(p.top)||"bottom"===i&&d(c.top)<d(p.bottom),u=d(c.left)<d(n.left),h=d(c.right)>d(n.right),m=d(c.top)<d(n.top),v=d(c.bottom)>d(n.bottom),g="left"===i&&u||"right"===i&&h||"top"===i&&m||"bottom"===i&&v,w=-1!==["top","bottom"].indexOf(i),b=!!e.flipVariations&&(w&&"start"===r&&u||w&&"end"===r&&h||!w&&"start"===r&&m||!w&&"end"===r&&v),x=!!e.flipVariationsByContent&&(w&&"start"===r&&h||w&&"end"===r&&u||!w&&"start"===r&&v||!w&&"end"===r&&m),y=b||x;(f||g||y)&&(t.flipped=!0,(f||g)&&(i=s[l+1]),y&&(r=function(t){return"end"===t?"start":"start"===t?"end":t}(r)),t.placement=i+(r?"-"+r:""),t.offsets.popper=E({},t.offsets.popper,N(t.instance.popper,t.offsets.reference,t.placement)),t=P(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,n=e.split("-")[0],i=t.offsets,o=i.popper,r=i.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return o[s?"left":"top"]=r[n]-(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,n=Z(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.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 n=e.x,i=e.y,o=t.offsets.popper,r=Z(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=void 0!==r?r:e.gpuAcceleration,a=h(t.instance.popper),l=M(a),c={position:o.position},p=function(t,e){var n=t.offsets,i=n.popper,o=n.reference,r=Math.round,s=Math.floor,a=function(t){return t},l=r(o.width),c=r(i.width),p=-1!==["left","right"].indexOf(t.placement),d=-1!==t.placement.indexOf("-"),f=e?p||d||l%2==c%2?r:s:a,u=e?r:a;return{left:f(l%2==1&&c%2==1&&!d&&e?i.left-1:i.left),top:u(i.top),bottom:u(i.bottom),right:f(i.right)}}(t,window.devicePixelRatio<2||!K),d="bottom"===n?"top":"bottom",f="right"===i?"left":"right",u=U("transform"),m=void 0,v=void 0;if(v="bottom"===d?"HTML"===a.nodeName?-a.clientHeight+p.bottom:-l.height+p.bottom:p.top,m="right"===f?"HTML"===a.nodeName?-a.clientWidth+p.right:-l.width+p.right:p.left,s&&u)c[u]="translate3d("+m+"px, "+v+"px, 0)",c[d]=0,c[f]=0,c.willChange="transform";else{var g="bottom"===d?-1:1,w="right"===f?-1:1;c[d]=v*g,c[f]=m*w,c.willChange=d+", "+f}var b={"x-placement":t.placement};return t.attributes=E({},b,t.attributes),t.styles=E({},c,t.styles),t.arrowStyles=E({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return J(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&J(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,i,o){var r=A(o,e,t,n.positionFixed),s=V(n.placement,r,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",s),J(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},lt=function(){function t(e,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=r(this.update.bind(this)),this.options=E({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(E({},t.Defaults.modifiers,o.modifiers)).forEach((function(e){i.options.modifiers[e]=E({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return E({name:t},i.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&s(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)})),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return C(t,[{key:"update",value:function(){return F.call(this)}},{key:"destroy",value:function(){return I.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:n.g).PopperUtils,lt.placements=tt,lt.Defaults=at;const ct=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 ct(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 dt=(0,n(1900).Z)(pt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{attrs:{type:"button"},on:{click:function(e){t.show=!0}}},[t._t("default"),t._v(" "),t.show?n("portal",{attrs:{to:"dropdown"}},[n("div",[n("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(" "),n("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},5007:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});const i={props:{name:String}};const o=(0,n(1900).Z)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return"apple"===t.name?n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"100",height:"100",viewBox:"0 0 100 100"}},[n("g",{attrs:{"fill-rule":"nonzero"}},[n("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"}}),n("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?n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[n("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?n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[n("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?n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[n("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?n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[n("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?n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[n("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?n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"100",height:"100",viewBox:"0 0 100 100"}},[n("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?n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[n("path",{attrs:{d:"M4 16H0V6h20v10h-4v4H4v-4zm2-4v6h8v-6H6zM4 0h12v5H4V0zM2 8v2h2V8H2zm4 0v2h2V8H6z"}})]):"shopping-cart"===t.name?n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[n("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?n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[n("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?n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[n("path",{attrs:{d:"M6 2l2-2h4l2 2h4v2H2V2h4zM3 6h14l-1 14H4L3 6zm5 2v10h1V8H8zm3 0v10h1V8h-1z"}})]):"users"===t.name?n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[n("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,n)=>{"use strict";n.d(e,{Z:()=>f});var i=n(5007),o=n(3354),r=n(381);const s={components:{Icon:i.Z},methods:{isUrl:function(){for(var t=this.$page.url.substr(1),e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return""===n[0]?""===t:n.filter((function(e){return t.startsWith(e)})).length}}};var a=n(1900);const l=(0,a.Z)(s,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"mb-4"},[n("inertia-link",{staticClass:"flex items-center group py-3",attrs:{href:t.route("dashboard")}},[n("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(" "),n("div",{class:t.isUrl("")?"text-white":"text-indigo-300 group-hover:text-white"},[t._v("Dashboard")])],1)],1),t._v(" "),n("div",{staticClass:"mb-4"},[n("inertia-link",{staticClass:"flex items-center group py-3",attrs:{href:t.route("tokens")}},[n("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(" "),n("div",{class:t.isUrl("tokens")?"text-white":"text-indigo-300 group-hover:text-white"},[t._v("Tokens")])],1)],1),t._v(" "),n("div",{staticClass:"mb-4"},[n("inertia-link",{staticClass:"flex items-center group py-3",attrs:{href:t.route("organizations")}},[n("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(" "),n("div",{class:t.isUrl("organizations")?"text-white":"text-indigo-300 group-hover:text-white"},[t._v("Organizations")])],1)],1),t._v(" "),n("div",{staticClass:"mb-4"},[n("inertia-link",{staticClass:"flex items-center group py-3",attrs:{href:t.route("contacts")}},[n("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(" "),n("div",{class:t.isUrl("contacts")?"text-white":"text-indigo-300 group-hover:text-white"},[t._v("Contacts")])],1)],1),t._v(" "),n("div",{staticClass:"mb-4"},[n("inertia-link",{staticClass:"flex items-center group py-3",attrs:{href:t.route("reports")}},[n("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(" "),n("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 c={data:function(){return{show:!0}},watch:{"$page.props.flash":{handler:function(){this.show=!0},deep:!0}}};const p=(0,a.Z)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.$page.props.flash.success&&t.show?n("div",{staticClass:"mb-8 flex items-center justify-between bg-green-500 rounded max-w-3xl"},[n("div",{staticClass:"flex items-center"},[n("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"}},[n("polygon",{attrs:{points:"0 11 2 9 7 14 18 3 20 5 7 18"}})]),t._v(" "),n("div",{staticClass:"py-4 text-white text-sm font-medium"},[t._v(t._s(t.$page.props.flash.success))])]),t._v(" "),n("button",{staticClass:"group mr-2 p-2",attrs:{type:"button"},on:{click:function(e){t.show=!1}}},[n("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"}},[n("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?n("div",{staticClass:"mb-8 flex items-center justify-between bg-red-400 rounded max-w-3xl"},[n("div",{staticClass:"flex items-center"},[n("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"}},[n("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?n("div",{staticClass:"py-4 text-white text-sm font-medium"},[t._v(t._s(t.$page.props.flash.error))]):n("div",{staticClass:"py-4 text-white text-sm font-medium"},[1===Object.keys(t.$page.props.errors).length?n("span",[t._v("There is one form error.")]):n("span",[t._v("There are "+t._s(Object.keys(t.$page.props.errors).length)+" form errors.")])])]),t._v(" "),n("button",{staticClass:"group mr-2 p-2",attrs:{type:"button"},on:{click:function(e){t.show=!1}}},[n("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"}},[n("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,d={components:{Dropdown:r.Z,FlashMessages:p,Icon:i.Z,Logo:o.Z,MainMenu:l}};const f=(0,a.Z)(d,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("portal-target",{attrs:{name:"dropdown",slim:""}}),t._v(" "),n("div",{staticClass:"md:flex md:flex-col"},[n("div",{staticClass:"md:h-screen md:flex md:flex-col"},[n("div",{staticClass:"md:flex md:flex-shrink-0"},[n("div",{staticClass:"bg-indigo-900 md:flex-shrink-0 md:w-56 px-6 py-4 flex items-center justify-between md:justify-center"},[n("inertia-link",{staticClass:"mt-1",attrs:{href:"/"}},[n("logo",{staticClass:"fill-white",attrs:{width:"120",height:"28"}})],1),t._v(" "),n("dropdown",{staticClass:"md:hidden",attrs:{placement:"bottom-end"}},[n("svg",{staticClass:"fill-white w-6 h-6",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[n("path",{attrs:{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"}})]),t._v(" "),n("div",{staticClass:"mt-2 px-8 py-4 shadow-lg bg-indigo-800 rounded",attrs:{slot:"dropdown"},slot:"dropdown"},[n("main-menu")],1)])],1),t._v(" "),n("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"},[n("div",{staticClass:"mt-1 mr-4"},[t._v(t._s(t.$page.props.auth.user.account.name))]),t._v(" "),n("dropdown",{staticClass:"mt-1",attrs:{placement:"bottom-end"}},[n("div",{staticClass:"flex items-center cursor-pointer select-none group"},[n("div",{staticClass:"text-gray-700 group-hover:text-indigo-600 focus:text-indigo-600 mr-1 whitespace-nowrap"},[n("span",[t._v(t._s(t.$page.props.auth.user.first_name))]),t._v(" "),n("span",{staticClass:"hidden md:inline"},[t._v(t._s(t.$page.props.auth.user.last_name))])]),t._v(" "),n("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(" "),n("div",{staticClass:"mt-2 py-2 shadow-xl bg-white rounded text-sm",attrs:{slot:"dropdown"},slot:"dropdown"},[n("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(" "),n("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(" "),n("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(" "),n("div",{staticClass:"md:flex md:flex-grow md:overflow-hidden"},[n("main-menu",{staticClass:"hidden md:block bg-indigo-800 flex-shrink-0 w-56 p-12 overflow-y-auto"}),t._v(" "),n("div",{staticClass:"md:flex-1 px-4 py-8 md:p-12 md:overflow-y-auto",attrs:{"scroll-region":""}},[n("flash-messages"),t._v(" "),t._t("default")],2)],1)])])],1)}),[],!1,null,null,null).exports},1100:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});const i={props:{loading:Boolean}};const o=(0,n(1900).Z)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"flex items-center",attrs:{disabled:t.loading}},[t.loading?n("div",{staticClass:"btn-spinner mr-2"}):t._e(),t._v(" "),t._t("default")],2)}),[],!1,null,null,null).exports},3354:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=(0,n(1900).Z)({},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{viewBox:"0 0 1185 266",xmlns:"http://www.w3.org/2000/svg"}},[n("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(" "),n("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,n)=>{"use strict";n.d(e,{Z:()=>o});const i={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,n(1900).Z)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.label?n("label",{staticClass:"form-label",attrs:{for:t.id}},[t._v(t._s(t.label)+":")]):t._e(),t._v(" "),n("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 n=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?n:n[0]}}},"select",t.$attrs,!1),[t._t("default")],2),t._v(" "),t.error?n("div",{staticClass:"form-error"},[t._v(t._s(t.error))]):t._e()])}),[],!1,null,null,null).exports},6119:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});const i={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,n(1900).Z)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.label?n("label",{staticClass:"form-label",attrs:{for:t.id}},[t._v(t._s(t.label)+":")]):t._e(),t._v(" "),n("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?n("div",{staticClass:"form-error"},[t._v(t._s(t.error))]):t._e()])}),[],!1,null,null,null).exports},284:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});const i={components:{Icon:n(5007).Z}};const o=(0,n(1900).Z)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"p-4 bg-yellow-300 rounded flex items-center justify-between max-w-3xl"},[n("div",{staticClass:"flex items-center"},[n("icon",{staticClass:"flex-shrink-0 w-4 h-4 fill-yellow-800 mr-2",attrs:{name:"trash"}}),t._v(" "),n("div",{staticClass:"text-sm font-medium text-yellow-800"},[t._t("default")],2)],1),t._v(" "),n("button",{staticClass:"text-sm text-yellow-800 hover:underline",attrs:{tabindex:"-1",type:"button"},on:{click:function(e){return t.$emit("restore")}}},[t._v("Restore")])])}),[],!1,null,null,null).exports},1900:(t,e,n)=>{"use strict";function i(t,e,n,i,o,r,s,a){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),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)},c._ssrRegister=l):o&&(l=a?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),l)if(c.functional){c._injectStyles=l;var p=c.render;c.render=function(t,e){return l.call(e),p(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}n.d(e,{Z:()=>i})}}]);