/*! For license information please see billing.js.LICENSE.txt */ (self.webpackChunk=self.webpackChunk||[]).push([[6754],{8520:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(3645),a=r.n(n)()((function(t){return t[1]}));a.push([t.id,".color-label.purple[data-v-3ff27c4c]{background:rgba(157,102,254,.1);color:#9d66fe}.color-label.yellow[data-v-3ff27c4c]{background:rgba(255,189,45,.1);color:#ffbd2d}.color-label.green[data-v-3ff27c4c]{background:rgba(0,188,126,.1);color:#00bc7e}.color-label.red[data-v-3ff27c4c]{background:rgba(253,57,122,.1);color:#fd397a}",""]);const i=a},6190:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(3645),a=r.n(n)()((function(t){return t[1]}));a.push([t.id,".info-box[data-v-26872047]{background:#f4f5f6;border-radius:10px;margin-bottom:32px;padding:20px;text-align:left}.info-box.error[data-v-26872047]{background:rgba(253,57,122,.1)}.info-box.error a[data-v-26872047],.info-box.error p[data-v-26872047]{color:#fd397a}.info-box.error a[data-v-26872047]{text-decoration:underline}.info-box p[data-v-26872047]{font-weight:600;line-height:1.6;word-break:break-word}.info-box p[data-v-26872047],.info-box p[data-v-26872047] a{font-size:15px}.info-box p[data-v-26872047] b{font-size:15px;font-weight:700}.info-box a[data-v-26872047],.info-box b[data-v-26872047]{font-weight:700}.info-box a[data-v-26872047]{font-size:.9375em;line-height:1.6}.info-box ul[data-v-26872047]{margin-top:15px}.info-box ul[data-v-26872047],.info-box ul li[data-v-26872047],.info-box ul li a[data-v-26872047]{display:block}@media only screen and (max-width:690px){.info-box[data-v-26872047]{padding:15px}}.dark .info-box[data-v-26872047]{background:#1e2024}.dark .info-box.error[data-v-26872047]{background:rgba(253,57,122,.1)}.dark .info-box.error a[data-v-26872047],.dark .info-box.error p[data-v-26872047]{color:#fd397a}.dark .info-box.error a[data-v-26872047]{text-decoration:underline}.dark .info-box p[data-v-26872047],.dark .info-box ul li[data-v-26872047]{color:#bec6cf}",""]);const i=a},4863:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(3645),a=r.n(n)()((function(t){return t[1]}));a.push([t.id,".label[data-v-03d13328]{align-items:center;display:flex}.label .label-dot[data-v-03d13328]{border-radius:8px;display:block;flex:none;height:8px;margin-right:10px;width:8px}.label .label-dot.success[data-v-03d13328]{background:#0abb87}.label .label-dot.danger[data-v-03d13328]{background:#fd397a}.label .label-dot.warning[data-v-03d13328]{background:#ffb822}.label .label-dot.info[data-v-03d13328]{background:#5578eb}.label .label-dot.primary[data-v-03d13328]{background:red}.label .label-dot.purple[data-v-03d13328]{background:#9d66fe}.label .label-dot.secondary[data-v-03d13328]{background:#e1e1ef}.label .label-title[data-v-03d13328]{font-size:16px;font-weight:700}",""]);const i=a},7227:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(3645),a=r.n(n)()((function(t){return t[1]}));a.push([t.id,".chart-progress.success[data-v-596eaf42]{background:#0abb87;box-shadow:0 3px 10px rgba(10,187,135,.5)}.chart-progress.danger[data-v-596eaf42]{background:#fd397a;box-shadow:0 3px 10px rgba(253,57,122,.5)}.chart-progress.warning[data-v-596eaf42]{background:#ffb822;box-shadow:0 3px 10px rgba(255,184,34,.5)}.chart-progress.info[data-v-596eaf42]{background:#5578eb;box-shadow:0 3px 10px rgba(85,120,235,.5)}.chart-progress.purple[data-v-596eaf42]{background:#9d66fe;box-shadow:0 3px 10px rgba(157,102,254,.5)}.chart-progress.secondary[data-v-596eaf42]{background:#e1e1ef;box-shadow:0 3px 10px rgba(225,225,239,.5)}.dark .chart-progress.secondary[data-v-596eaf42]{background:#282a2f!important;box-shadow:0 3px 10px rgba(40,42,47,.5)!important}",""]);const i=a},3428:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(3645),a=r.n(n)()((function(t){return t[1]}));a.push([t.id,".table-row[data-v-61827e38]{border-radius:8px}.table-row[data-v-61827e38]:hover{background:#f4f5f6}.table-row .table-cell[data-v-61827e38]{padding-bottom:15px;padding-top:15px}.table-row .table-cell[data-v-61827e38]:first-child{padding-left:15px}.table-row .table-cell[data-v-61827e38]:last-child{padding-right:15px;text-align:right}.table-row .table-cell span[data-v-61827e38]{font-size:1em;font-weight:700}",""]);const i=a},9495:function(t,e,r){!function(t,e){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=r(e),a={code:"en",messages:{alpha:"The {_field_} field may only contain alphabetic characters",alpha_num:"The {_field_} field may only contain alpha-numeric characters",alpha_dash:"The {_field_} field may contain alpha-numeric characters as well as dashes and underscores",alpha_spaces:"The {_field_} field may only contain alphabetic characters as well as spaces",between:"The {_field_} field must be between {min} and {max}",confirmed:"The {_field_} field confirmation does not match",digits:"The {_field_} field must be numeric and exactly contain {length} digits",dimensions:"The {_field_} field must be {width} pixels by {height} pixels",email:"The {_field_} field must be a valid email",excluded:"The {_field_} field is not a valid value",ext:"The {_field_} field is not a valid file",image:"The {_field_} field must be an image",integer:"The {_field_} field must be an integer",length:"The {_field_} field must be {length} long",max_value:"The {_field_} field must be {max} or less",max:"The {_field_} field may not be greater than {length} characters",mimes:"The {_field_} field must have a valid file type",min_value:"The {_field_} field must be {min} or more",min:"The {_field_} field must be at least {length} characters",numeric:"The {_field_} field may only contain numeric characters",oneOf:"The {_field_} field is not a valid value",regex:"The {_field_} field format is invalid",required_if:"The {_field_} field is required",required:"The {_field_} field is required",size:"The {_field_} field size must be less than {size}KB",double:"The {_field_} field must be a valid decimal"}},i={en:/^[A-Z]*$/i,cs:/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]*$/i,da:/^[A-ZÆØÅ]*$/i,de:/^[A-ZÄÖÜß]*$/i,es:/^[A-ZÁÉÍÑÓÚÜ]*$/i,fa:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰپژگچکی]*$/,fr:/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]*$/i,it:/^[A-Z\xC0-\xFF]*$/i,lt:/^[A-ZĄČĘĖĮŠŲŪŽ]*$/i,nl:/^[A-ZÉËÏÓÖÜ]*$/i,hu:/^[A-ZÁÉÍÓÖŐÚÜŰ]*$/i,pl:/^[A-ZĄĆĘŚŁŃÓŻŹ]*$/i,pt:/^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]*$/i,ro:/^[A-ZĂÂÎŞŢ]*$/i,ru:/^[А-ЯЁ]*$/i,sk:/^[A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ]*$/i,sr:/^[A-ZČĆŽŠĐ]*$/i,sv:/^[A-ZÅÄÖ]*$/i,tr:/^[A-ZÇĞİıÖŞÜ]*$/i,uk:/^[А-ЩЬЮЯЄІЇҐ]*$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]*$/,az:/^[A-ZÇƏĞİıÖŞÜ]*$/i,el:/^[Α-ώ]*$/i,ja:/^[A-Z\u3000-\u303F\u3040-\u309F\u30A0-\u30FF\uFF00-\uFFEF\u4E00-\u9FAF]*$/i,he:/^[A-Z\u05D0-\u05EA']*$/i},s={en:/^[A-Z\s]*$/i,cs:/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ\s]*$/i,da:/^[A-ZÆØÅ\s]*$/i,de:/^[A-ZÄÖÜß\s]*$/i,es:/^[A-ZÁÉÍÑÓÚÜ\s]*$/i,fa:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰپژگچکی]*$/,fr:/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ\s]*$/i,it:/^[A-Z\xC0-\xFF\s]*$/i,lt:/^[A-ZĄČĘĖĮŠŲŪŽ\s]*$/i,nl:/^[A-ZÉËÏÓÖÜ\s]*$/i,hu:/^[A-ZÁÉÍÓÖŐÚÜŰ\s]*$/i,pl:/^[A-ZĄĆĘŚŁŃÓŻŹ\s]*$/i,pt:/^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ\s]*$/i,ro:/^[A-ZĂÂÎŞŢ\s]*$/i,ru:/^[А-ЯЁ\s]*$/i,sk:/^[A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ\s]*$/i,sr:/^[A-ZČĆŽŠĐ\s]*$/i,sv:/^[A-ZÅÄÖ\s]*$/i,tr:/^[A-ZÇĞİıÖŞÜ\s]*$/i,uk:/^[А-ЩЬЮЯЄІЇҐ\s]*$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ\s]*$/,az:/^[A-ZÇƏĞİıÖŞÜ\s]*$/i,el:/^[Α-ώ\s]*$/i,ja:/^[A-Z\u3000-\u303F\u3040-\u309F\u30A0-\u30FF\uFF00-\uFFEF\u4E00-\u9FAF\s]*$/i,he:/^[A-Z\u05D0-\u05EA'\s]*$/i},o={en:/^[0-9A-Z]*$/i,cs:/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]*$/i,da:/^[0-9A-ZÆØÅ]$/i,de:/^[0-9A-ZÄÖÜß]*$/i,es:/^[0-9A-ZÁÉÍÑÓÚÜ]*$/i,fa:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰپژگچکی]*$/,fr:/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]*$/i,it:/^[0-9A-Z\xC0-\xFF]*$/i,lt:/^[0-9A-ZĄČĘĖĮŠŲŪŽ]*$/i,hu:/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]*$/i,nl:/^[0-9A-ZÉËÏÓÖÜ]*$/i,pl:/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]*$/i,pt:/^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]*$/i,ro:/^[0-9A-ZĂÂÎŞŢ]*$/i,ru:/^[0-9А-ЯЁ]*$/i,sk:/^[0-9A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ]*$/i,sr:/^[0-9A-ZČĆŽŠĐ]*$/i,sv:/^[0-9A-ZÅÄÖ]*$/i,tr:/^[0-9A-ZÇĞİıÖŞÜ]*$/i,uk:/^[0-9А-ЩЬЮЯЄІЇҐ]*$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]*$/,az:/^[0-9A-ZÇƏĞİıÖŞÜ]*$/i,el:/^[0-9Α-ώ]*$/i,ja:/^[0-9A-Z\u3000-\u303F\u3040-\u309F\u30A0-\u30FF\uFF00-\uFFEF\u4E00-\u9FAF]*$/i,he:/^[0-9A-Z\u05D0-\u05EA']*$/i},l={en:/^[0-9A-Z_-]*$/i,cs:/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ_-]*$/i,da:/^[0-9A-ZÆØÅ_-]*$/i,de:/^[0-9A-ZÄÖÜß_-]*$/i,es:/^[0-9A-ZÁÉÍÑÓÚÜ_-]*$/i,fa:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰپژگچکی]*$/,fr:/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ_-]*$/i,it:/^[0-9A-Z\xC0-\xFF_-]*$/i,lt:/^[0-9A-ZĄČĘĖĮŠŲŪŽ_-]*$/i,nl:/^[0-9A-ZÉËÏÓÖÜ_-]*$/i,hu:/^[0-9A-ZÁÉÍÓÖŐÚÜŰ_-]*$/i,pl:/^[0-9A-ZĄĆĘŚŁŃÓŻŹ_-]*$/i,pt:/^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ_-]*$/i,ro:/^[0-9A-ZĂÂÎŞŢ_-]*$/i,ru:/^[0-9А-ЯЁ_-]*$/i,sk:/^[0-9A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ_-]*$/i,sr:/^[0-9A-ZČĆŽŠĐ_-]*$/i,sv:/^[0-9A-ZÅÄÖ_-]*$/i,tr:/^[0-9A-ZÇĞİıÖŞÜ_-]*$/i,uk:/^[0-9А-ЩЬЮЯЄІЇҐ_-]*$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ_-]*$/,az:/^[0-9A-ZÇƏĞİıÖŞÜ_-]*$/i,el:/^[0-9Α-ώ_-]*$/i,ja:/^[0-9A-Z\u3000-\u303F\u3040-\u309F\u30A0-\u30FF\uFF00-\uFFEF\u4E00-\u9FAF_-]*$/i,he:/^[0-9A-Z\u05D0-\u05EA'_-]*$/i},u=function(t,e){var r=(void 0===e?{}:e).locale,n=void 0===r?"":r;return Array.isArray(t)?t.every((function(t){return u(t,{locale:n})})):n?(i[n]||i.en).test(t):Object.keys(i).some((function(e){return i[e].test(t)}))},c={validate:u,params:[{name:"locale"}]},d=function(t,e){var r=(void 0===e?{}:e).locale,n=void 0===r?"":r;return Array.isArray(t)?t.every((function(t){return d(t,{locale:n})})):n?(l[n]||l.en).test(t):Object.keys(l).some((function(e){return l[e].test(t)}))},f={validate:d,params:[{name:"locale"}]},p=function(t,e){var r=(void 0===e?{}:e).locale,n=void 0===r?"":r;return Array.isArray(t)?t.every((function(t){return p(t,{locale:n})})):n?(o[n]||o.en).test(t):Object.keys(o).some((function(e){return o[e].test(t)}))},v={validate:p,params:[{name:"locale"}]},m=function(t,e){var r=(void 0===e?{}:e).locale,n=void 0===r?"":r;return Array.isArray(t)?t.every((function(t){return m(t,{locale:n})})):n?(s[n]||s.en).test(t):Object.keys(s).some((function(e){return s[e].test(t)}))},h={validate:m,params:[{name:"locale"}]},b=function(t,e){var r=void 0===e?{}:e,n=r.min,a=r.max;return Array.isArray(t)?t.every((function(t){return!!b(t,{min:n,max:a})})):Number(n)<=t&&Number(a)>=t},g={validate:b,params:[{name:"min"},{name:"max"}]},_={validate:function(t,e){var r=e.target;return String(t)===String(r)},params:[{name:"target",isTarget:!0}]},y=function(t,e){var r=e.length;if(Array.isArray(t))return t.every((function(t){return y(t,{length:r})}));var n=String(t);return/^[0-9]*$/.test(n)&&n.length===r},x={validate:y,params:[{name:"length",cast:function(t){return Number(t)}}]},w=function(t,e,r){var n=window.URL||window.webkitURL;return new Promise((function(a){var i=new Image;i.onerror=function(){return a(!1)},i.onload=function(){return a(i.width===e&&i.height===r)},i.src=n.createObjectURL(t)}))},k=function(t,e){var r=e.width,n=e.height,a=[];t=Array.isArray(t)?t:[t];for(var i=0;i()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return r&&!Array.isArray(t)&&(t=String(t).split(",").map((function(t){return t.trim()}))),Array.isArray(t)?t.every((function(t){return n.test(String(t))})):n.test(String(t))},params:[{name:"multiple",default:!1}]};function A(t){return t!=t}function O(t){return null==t}function S(t){return Array.isArray(t)&&0===t.length}var j=function(t){return null!==t&&t&&"object"==typeof t&&!Array.isArray(t)};function Z(t,e){return!(!A(t)||!A(e))||t===e}function P(t){return""!==t&&!O(t)}function F(t){return"function"==typeof t}function I(t){return F(t)&&!!t.__locatorRef}function T(t,e){var r=Array.isArray(t)?t:E(t);if(F(r.findIndex))return r.findIndex(e);for(var n=0;n=0:Array.isArray(t)?t.every((function(t){return at(t,{length:r})})):String(t).length<=r},it={validate:at,params:[{name:"length",cast:function(t){return Number(t)}}]},st=function(t,e){var r=e.max;return!O(t)&&""!==t&&(Array.isArray(t)?t.length>0&&t.every((function(t){return st(t,{max:r})})):Number(t)<=r)},ot={validate:st,params:[{name:"max",cast:function(t){return Number(t)}}]},lt=function(t,e){var r=new RegExp(e.join("|").replace("*",".+")+"$","i");return Array.isArray(t)?t.every((function(t){return r.test(t.type)})):r.test(t.type)},ut={validate:lt},ct=function(t,e){var r=e.length;return!O(t)&&(Array.isArray(t)?t.every((function(t){return ct(t,{length:r})})):String(t).length>=r)},dt={validate:ct,params:[{name:"length",cast:function(t){return Number(t)}}]},ft=function(t,e){var r=e.min;return!O(t)&&""!==t&&(Array.isArray(t)?t.length>0&&t.every((function(t){return ft(t,{min:r})})):Number(t)>=r)},pt={validate:ft,params:[{name:"min",cast:function(t){return Number(t)}}]},vt=/^[٠١٢٣٤٥٦٧٨٩]+$/,mt=/^[0-9]+$/,ht={validate:function(t){var e=function(t){var e=String(t);return mt.test(e)||vt.test(e)};return Array.isArray(t)?t.every(e):e(t)}},bt=function(t,e){var r=e.regex;return Array.isArray(t)?t.every((function(t){return bt(t,{regex:r})})):r.test(String(t))},gt={validate:bt,params:[{name:"regex",cast:function(t){return"string"==typeof t?new RegExp(t):t}}]},_t={validate:function(t,e){var r=(void 0===e?{allowFalse:!0}:e).allowFalse,n={valid:!1,required:!0};return O(t)||S(t)?n:!1!==t||r?(n.valid=!!String(t).trim().length,n):n},params:[{name:"allowFalse",default:!0}],computesRequired:!0},yt=function(t){return S(t)||D([!1,null,void 0],t)||!String(t).trim().length},xt=function(t,e){var r,n=e.target,a=e.values;return a&&a.length?(Array.isArray(a)||"string"!=typeof a||(a=[a]),r=a.some((function(t){return t==String(n).trim()}))):r=!yt(n),r?{valid:!yt(t),required:r}:{valid:!0,required:r}},wt={validate:xt,params:[{name:"target",isTarget:!0},{name:"values"}],computesRequired:!0},kt=function(t,e){var r=e.size;if(isNaN(r))return!1;var n=1024*r;if(!Array.isArray(t))return t.size<=n;for(var a=0;an)return!1;return!0},$t={validate:kt,params:[{name:"size",cast:function(t){return Number(t)}}]},Ct=function(t,e){var r=e||{},n=r.decimals,a=void 0===n?0:n,i=r.separator,s=new RegExp("^-?\\d+"+("comma"===(void 0===i?"dot":i)?",?":"\\.?")+(0===a?"\\d*":"(\\d{"+a+"})?")+"$");return Array.isArray(t)?t.every((function(t){return s.test(String(t))})):s.test(String(t))},At={validate:Ct,params:[{name:"decimals",default:0},{name:"separator",default:"dot"}]},Ot=Object.freeze({__proto__:null,alpha_dash:f,alpha_num:v,alpha_spaces:h,alpha:c,between:g,confirmed:_,digits:x,dimensions:$,email:C,ext:J,image:Y,oneOf:H,integer:Q,length:nt,is_not:et,is:tt,max:it,max_value:ot,mimes:ut,min:dt,min_value:pt,excluded:G,numeric:ht,regex:gt,required:_t,required_if:wt,size:$t,double:At}),St=function(){return St=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0&&a[a.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=0&&qt.getRuleDefinition("max")&&(n.max=r.maxlength),r.minlength>=0&&qt.getRuleDefinition("min")&&(n.min=r.minlength),"number"===r.type&&(P(r.min)&&qt.getRuleDefinition("min_value")&&(n.min_value=Number(r.min)),P(r.max)&&qt.getRuleDefinition("max_value")&&(n.max_value=Number(r.max))),n):n}function Ce(t){var e,r=["input","select","textarea"],n=null===(e=t.data)||void 0===e?void 0:e.attrs;if(!D(r,t.tag)||!n)return{};var a={};return"required"in n&&!1!==n.required&&qt.getRuleDefinition("required")&&(a.required="checkbox"!==n.type||[!0]),de(t)?Gt(St(St({},a),$e(t))):Gt(a)}function Ae(t,e){return t.$scopedSlots.default?t.$scopedSlots.default(e)||[]:t.$slots.default||[]}function Oe(t,e){return!(t._ignoreImmediate||!t.immediate)||!(Z(t.value,e)||!t.normalizedEvents.length)||!!t._needsValidation||!t.initialized&&void 0===e}function Se(t){return St(St({},t.flags),{errors:t.errors,classes:t.classes,failedRules:t.failedRules,reset:function(){return t.reset()},validate:function(){for(var e=[],r=0;r0)){var u=It().useConstraintAttrs?Ce(t):{};le(e._resolvedRules,u)||(e._needsValidation=!0),we(t)&&(e.fieldName=(null===(s=null===(i=t.data)||void 0===i?void 0:i.attrs)||void 0===s?void 0:s.name)||(null===(l=null===(o=t.data)||void 0===o?void 0:o.attrs)||void 0===l?void 0:l.id)),e._resolvedRules=u,Ie(e,t)}}))}return this.slim&&r.length<=1?r[0]:t(this.tag,r)},beforeDestroy:function(){this.$_veeObserver.unobserve(this.id)},activated:function(){this.isActive=!0},deactivated:function(){this.isActive=!1},methods:{setFlags:function(t){var e=this;Object.keys(t).forEach((function(r){e.flags[r]=t[r]}))},syncValue:function(t){var e=ce(t);this.value=e,this.flags.changed=!le(this.initialValue,e)},reset:function(){var t=this;this.errors=[],this.initialValue=this.value;var e=L();e.required=this.isRequired,this.setFlags(e),this.failedRules={},this.validateSilent(),this._pendingValidation=void 0,this._pendingReset=!0,setTimeout((function(){t._pendingReset=!1}),this.debounce)},validate:function(){for(var t=[],e=0;e0&&this.syncValue(t[0]),[2,Pe(this)]}))}))},validateSilent:function(){return jt(this,void 0,void 0,(function(){var t,e;return Zt(this,(function(r){switch(r.label){case 0:return this.setFlags({pending:!0}),t=St(St({},this._resolvedRules),this.normalizedRules),Object.defineProperty(t,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),[4,Qt(this.value,t,St(St({name:this.name||this.fieldName},ze(this)),{bails:this.bails,skipIfEmpty:this.skipIfEmpty,isInitial:!this.initialized,customMessages:this.customMessages}))];case 1:return e=r.sent(),this.setFlags({pending:!1,valid:e.valid,invalid:!e.valid}),void 0!==e.required&&this.setFlags({required:e.required}),[2,e]}}))}))},setErrors:function(t){this.applyResult({errors:t,failedRules:{}})},applyResult:function(t){var e=t.errors,r=t.failedRules,n=t.regenerateMap;this.errors=e,this._regenerateMap=n,this.failedRules=St({},r||{}),this.setFlags({valid:!e.length,passed:!e.length,invalid:!!e.length,failed:!!e.length,validated:!0,changed:!le(this.value,this.initialValue)})},registerField:function(){Ue(this)},checkComputesRequiredState:function(){var t=St(St({},this._resolvedRules),this.normalizedRules);return Object.keys(t).some(qt.isRequireRule)}}});function Ee(t,e){for(var r={},n=Object.keys(e),a=n.length,i=function(a){var i=n[a],s=t&&t[i]||i,o=e[i];return O(o)?"continue":"valid"!==i&&"invalid"!==i||e.validated?void("string"==typeof s?r[s]=o:Array.isArray(s)&&s.forEach((function(t){r[t]=o}))):"continue"},s=0;s{"use strict";r.d(e,{Z:()=>a});const n={name:"AppInputButton",props:["description","isLast","title","error"]};const a=(0,r(1900).Z)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"w-full justify-between space-y-4 sm:flex sm:space-x-8 sm:space-x-2 sm:space-y-0",class:{"mb-6 sm:mb-7":!t.isLast}},[e("div",{staticClass:"leading-5"},[e("label",{staticClass:"mb-1.5 block text-sm font-bold text-gray-700 dark:text-gray-200"},[t._v(" "+t._s(t.title)+": ")]),t._v(" "),t.description?e("span",{staticClass:"block text-xs leading-4 dark:text-gray-500 text-gray-500",domProps:{innerHTML:t._s(t.description)}}):t._e(),t._v(" "),t.error?e("span",{staticClass:"text-left text-xs text-red-600"},[t._v("\n "+t._s(t.error)+"\n ")]):t._e()]),t._v(" "),e("div",[t._t("default")],2)])}),[],!1,null,null,null).exports},944:(t,e,r)=>{"use strict";r.d(e,{Z:()=>a});const n={name:"AppInputSwitch",props:["description","isLast","title","error"]};const a=(0,r(1900).Z)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"flex w-full items-center justify-between space-x-2 sm:space-x-8",class:{"mb-6 sm:mb-7":!t.isLast}},[e("div",{staticClass:"leading-5"},[e("label",{staticClass:"mb-1.5 block text-sm font-bold text-gray-700 dark:text-gray-200"},[t._v(" "+t._s(t.title)+": ")]),t._v(" "),t.description?e("span",{staticClass:"block text-xs leading-4 dark:text-gray-500 text-gray-500",domProps:{innerHTML:t._s(t.description)}}):t._e(),t._v(" "),t.error?e("span",{staticClass:"pt-2 text-xs dark:text-rose-600 text-rose-600"},[t._v("\n "+t._s(t.error)+"\n ")]):t._e()]),t._v(" "),e("div",[t._t("default")],2)])}),[],!1,null,null,null).exports},1157:(t,e,r)=>{"use strict";r.d(e,{Z:()=>a});const n={name:"AppInputText",props:["description","isLast","title","error"]};const a=(0,r(1900).Z)(n,(function(){var t=this,e=t._self._c;return e("div",{class:{"mb-6 sm:mb-7":!t.isLast}},[t.title?e("label",{staticClass:"mb-1.5 block text-sm font-bold text-gray-700 dark:text-gray-200"},[t._v("\n "+t._s(t.title)+":\n ")]):t._e(),t._v(" "),t._t("default"),t._v(" "),t.error?e("span",{staticClass:"pt-2 text-xs dark:text-rose-600 text-rose-600"},[t._v("\n "+t._s(t.error)+"\n ")]):t._e(),t._v(" "),t.description?e("small",{staticClass:"block pt-2 text-xs leading-4 dark:text-gray-500 text-gray-500",domProps:{innerHTML:t._s(t.description)}}):t._e()],2)}),[],!1,null,null,null).exports},6345:(t,e,r)=>{"use strict";r.d(e,{Z:()=>a});const n={name:"PageTab",props:["isLoading"],components:{Spinner:r(3592).Z}};const a=(0,r(1900).Z)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"page-tab"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.isLoading,expression:"isLoading"}],attrs:{id:"loader"}},[e("Spinner")],1),t._v(" "),t._t("default")],2)}),[],!1,null,null,null).exports},8682:(t,e,r)=>{"use strict";r.d(e,{Z:()=>l});var n=r(4509),a=r(8787),i=r(7009),s=r(9101);const o={name:"FixedTransactionRow",components:{MeteredTransactionDetailRow:a.Z,MemberAvatar:n.Z,FileTextIcon:s.zPP,ColorLabel:i.Z,EyeIcon:s.tEF},props:{row:{},user:{type:Boolean,default:!1}},data:function(){return{showedTransactionDetailById:void 0}},methods:{showTransactionDetail:function(t){this.showedTransactionDetailById===t?this.showedTransactionDetailById=void 0:this.showedTransactionDetailById=t}}};const l=(0,r(1900).Z)(o,(function(){var t=this,e=t._self._c;return e("tr",{staticClass:"whitespace-nowrap border-b border-dashed border-light dark:border-opacity-5"},[e("td",{staticClass:"py-5 pr-3 md:pr-1"},[e("span",{staticClass:"text-sm font-bold"},[t._v("\n "+t._s(t.row.data.attributes.note)+"\n ")])]),t._v(" "),t.user?e("td",{staticClass:"whitespace-nowrap px-3 md:px-1"},[t.row.data.relationships.user?e("div",{staticClass:"flex items-center"},[e("MemberAvatar",{attrs:{"is-border":!1,size:36,member:t.row.data.relationships.user}}),t._v(" "),e("div",{staticClass:"ml-3 pr-10"},[e("b",{staticClass:"max-w-1 block overflow-hidden text-ellipsis whitespace-nowrap text-sm font-bold",staticStyle:{"max-width":"155px"}},[t._v("\n "+t._s(t.row.data.relationships.user.data.attributes.name)+"\n ")]),t._v(" "),e("span",{staticClass:"block text-xs text-gray-600 dark:text-gray-500"},[t._v("\n "+t._s(t.row.data.relationships.user.data.attributes.email)+"\n ")])])],1):t._e(),t._v(" "),t.row.data.relationships.user?t._e():e("span",{staticClass:"text-xs font-bold text-gray-500"},[t._v("\n "+t._s(t.$t("user_was_deleted"))+"\n ")])]):t._e(),t._v(" "),e("td",{staticClass:"px-3 md:px-1"},[e("ColorLabel",{staticClass:"capitalize",attrs:{color:t.$getTransactionStatusColor(t.row.data.attributes.status)}},[t._v("\n "+t._s(t.$t(t.row.data.attributes.status))+"\n ")])],1),t._v(" "),e("td",{staticClass:"px-3 md:px-1"},[e("span",{staticClass:"text-sm font-bold",class:t.$getTransactionTypeTextColor(t.row.data.attributes.type)},[t._v("\n "+t._s(t.$getTransactionMark(t.row.data.attributes.type)+t.row.data.attributes.price)+"\n ")])]),t._v(" "),e("td",{staticClass:"px-3 md:px-1"},[e("span",{staticClass:"text-sm font-bold"},[t._v("\n "+t._s(t.row.data.attributes.created_at)+"\n ")])]),t._v(" "),e("td",{staticClass:"px-3 md:px-1"},[e("div",{staticClass:"w-28"},[e("img",{staticClass:"inline-block max-h-5",attrs:{src:t.$getPaymentLogo(t.row.data.attributes.driver),alt:t.row.data.attributes.driver}})])]),t._v(" "),e("td",{staticClass:"pl-3 text-right md:pl-1"},[e("div",{staticClass:"inline-block"},[e("a",{staticClass:"inline-block flex h-8 w-8 cursor-pointer items-center justify-center rounded-md bg-light-background transition-colors hover:bg-purple-100 dark:bg-2x-dark-foreground",attrs:{href:t.$getInvoiceLink(t.row.data.id),target:"_blank"}},[e("FileTextIcon",{staticClass:"opacity-75",attrs:{size:"15"}})],1)])])])}),[],!1,null,null,null).exports},8787:(t,e,r)=>{"use strict";r.d(e,{Z:()=>a});const n={name:"MeteredTransactionDetailRow",props:["row"]};const a=(0,r(1900).Z)(n,(function(){var t=this,e=t._self._c;return e("tr",[e("td",{staticClass:"overflow-hidden rounded-lg py-2",attrs:{colspan:"10"}},t._l(t.row.data.attributes.metadata,(function(r,n){return e("div",{key:n,staticClass:"flex items-center justify-between border-b border-dashed border-light py-2 dark:border-opacity-5"},[e("div",{staticClass:"w-2/4 leading-none"},[e("b",{staticClass:"text-sm font-bold leading-none"},[t._v("\n "+t._s(t.$t(r.feature))+"\n ")]),t._v(" "),e("small",{staticClass:"hidden pt-2 text-xs leading-none text-gray-500 sm:block"},[t._v("\n "+t._s(t.$t("feature_usage_desc_".concat(r.feature)))+"\n ")])]),t._v(" "),e("div",{staticClass:"w-1/4 text-left"},[e("span",{staticClass:"text-gray-560 text-sm font-bold"},[t._v("\n "+t._s(r.usage)+"\n ")])]),t._v(" "),e("div",{staticClass:"w-1/4 text-right"},[e("span",{staticClass:"text-theme text-sm font-bold"},[t._v("\n "+t._s(r.cost)+"\n ")])])])})),0)])}),[],!1,null,null,null).exports},4566:(t,e,r)=>{"use strict";r.d(e,{Z:()=>l});var n=r(4509),a=r(8787),i=r(7009),s=r(9101);const o={name:"MeteredTransactionRow",components:{MeteredTransactionDetailRow:a.Z,MemberAvatar:n.Z,FileTextIcon:s.zPP,ColorLabel:i.Z,EyeIcon:s.tEF},props:{row:{},user:{type:Boolean,default:!1}},data:function(){return{showedTransactionDetailById:void 0}},methods:{showTransactionDetail:function(t){this.showedTransactionDetailById===t?this.showedTransactionDetailById=void 0:this.showedTransactionDetailById=t}}};const l=(0,r(1900).Z)(o,(function(){var t=this,e=t._self._c;return e("tr",{staticClass:"whitespace-nowrap border-b border-dashed border-light dark:border-opacity-5"},[e("td",{staticClass:"py-5 pr-3 md:pr-1"},[e("span",{staticClass:"text-sm font-bold"},[t._v("\n "+t._s(t.row.data.attributes.note)+"\n ")])]),t._v(" "),t.user?e("td",{staticClass:"whitespace-nowrap px-3 md:px-1"},[t.row.data.relationships.user?e("div",{staticClass:"flex items-center"},[e("MemberAvatar",{attrs:{"is-border":!1,size:36,member:t.row.data.relationships.user}}),t._v(" "),e("div",{staticClass:"ml-3 pr-10"},[e("b",{staticClass:"max-w-1 block overflow-hidden text-ellipsis whitespace-nowrap text-sm font-bold",staticStyle:{"max-width":"155px"}},[t._v("\n "+t._s(t.row.data.relationships.user.data.attributes.name)+"\n ")]),t._v(" "),e("span",{staticClass:"block text-xs text-gray-600 dark:text-gray-500"},[t._v("\n "+t._s(t.row.data.relationships.user.data.attributes.email)+"\n ")])])],1):t._e(),t._v(" "),t.row.data.relationships.user?t._e():e("span",{staticClass:"text-xs font-bold text-gray-500"},[t._v("\n "+t._s(t.$t("user_was_deleted"))+"\n ")])]):t._e(),t._v(" "),e("td",{staticClass:"px-3 md:px-1"},[e("ColorLabel",{staticClass:"capitalize",attrs:{color:t.$getTransactionStatusColor(t.row.data.attributes.status)}},[t._v("\n "+t._s(t.$t(t.row.data.attributes.status))+"\n ")])],1),t._v(" "),e("td",{staticClass:"px-3 md:px-1"},[e("span",{staticClass:"text-sm font-bold capitalize"},[t._v("\n "+t._s(t.$t(t.row.data.attributes.type))+"\n ")])]),t._v(" "),e("td",{staticClass:"px-3 md:px-1"},[e("span",{staticClass:"text-sm font-bold",class:t.$getTransactionTypeTextColor(t.row.data.attributes.type)},[t._v("\n "+t._s(t.$getTransactionMark(t.row.data.attributes.type)+t.row.data.attributes.price)+"\n ")])]),t._v(" "),e("td",{staticClass:"px-3 md:px-1"},[e("span",{staticClass:"text-sm font-bold"},[t._v("\n "+t._s(t.row.data.attributes.created_at)+"\n ")])]),t._v(" "),e("td",{staticClass:"px-3 md:px-1"},[e("div",{staticClass:"w-28"},[e("img",{staticClass:"inline-block max-h-5",attrs:{src:t.$getPaymentLogo(t.row.data.attributes.driver),alt:t.row.data.attributes.driver}})])]),t._v(" "),e("td",{staticClass:"pl-3 text-right md:pl-1"},[t.row.data.attributes.metadata?e("div",{staticClass:"flex w-full justify-end space-x-2"},[e("div",{staticClass:"flex h-8 w-8 cursor-pointer items-center justify-center rounded-md bg-light-background transition-colors hover:bg-green-100 dark:bg-2x-dark-foreground",on:{click:function(e){return t.$emit("showDetail",t.row.data.id)}}},[e("EyeIcon",{staticClass:"opacity-75",attrs:{size:"15"}})],1),t._v(" "),e("a",{staticClass:"flex h-8 w-8 cursor-pointer items-center justify-center rounded-md bg-light-background transition-colors hover:bg-purple-100 dark:bg-2x-dark-foreground",attrs:{href:t.$getInvoiceLink(t.row.data.id),target:"_blank"}},[e("FileTextIcon",{staticClass:"opacity-75",attrs:{size:"15"}})],1)]):e("div",[t._v("-")])])])}),[],!1,null,null,null).exports},7009:(t,e,r)=>{"use strict";r.d(e,{Z:()=>l});const n={name:"ColorLabel",props:["color"]};var a=r(3379),i=r.n(a),s=r(8520),o={insert:"head",singleton:!1};i()(s.Z,o);s.Z.locals;const l=(0,r(1900).Z)(n,(function(){var t=this;return(0,t._self._c)("b",{staticClass:"color-label inline-block rounded-lg py-1 px-2 text-xs font-bold capitalize",class:t.color},[t._t("default")],2)}),[],!1,null,"3ff27c4c",null).exports},9244:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(9101);const a={name:"FormLabel",props:["icon"],components:{TrendingUpIcon:n.Zab,WifiIcon:n.kVp,ListIcon:n.DE2,MailIcon:n.bV6,InfoIcon:n.szr,DatabaseIcon:n.VHe,UsersIcon:n.oyc,CreditCardIcon:n.ciH,DollarSignIcon:n.bkH,SmartphoneIcon:n.BEV,HardDriveIcon:n.zvn,BarChartIcon:n.eJP,SettingsIcon:n.ewm,FileTextIcon:n.zPP,ShieldIcon:n.b7C,FrownIcon:n.eFi,Edit2Icon:n.me4,BellIcon:n.Dkj,KeyIcon:n._m8}};const i=(0,r(1900).Z)(a,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb-8 flex items-center"},[t.icon?t._e():e("edit-2-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}),t._v(" "),"frown"===t.icon?e("frown-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"list"===t.icon?e("list-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"info"===t.icon?e("info-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"database"===t.icon?e("database-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"file-text"===t.icon?e("file-text-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"dollar"===t.icon?e("dollar-sign-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"credit-card"===t.icon?e("credit-card-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"bar-chart"===t.icon?e("bar-chart-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"settings"===t.icon?e("settings-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"hard-drive"===t.icon?e("hard-drive-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"mail"===t.icon?e("mail-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"smartphone"===t.icon?e("smartphone-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"shield"===t.icon?e("shield-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"bell"===t.icon?e("bell-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"key"===t.icon?e("key-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"users"===t.icon?e("users-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"wifi"===t.icon?e("wifi-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),"trending-up"===t.icon?e("trending-up-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):t._e(),t._v(" "),e("b",{staticClass:"text-md font-bold dark:text-gray-200 sm:text-lg"},[t._t("default")],2)],1)}),[],!1,null,null,null).exports},598:(t,e,r)=>{"use strict";r.d(e,{Z:()=>l});const n={name:"InfoBox",props:["type"]};var a=r(3379),i=r.n(a),s=r(6190),o={insert:"head",singleton:!1};i()(s.Z,o);s.Z.locals;const l=(0,r(1900).Z)(n,(function(){var t=this;return(0,t._self._c)("div",{staticClass:"info-box",class:t.type},[t._t("default")],2)}),[],!1,null,"26872047",null).exports},614:(t,e,r)=>{"use strict";r.d(e,{Z:()=>f});const n={name:"DotLabel",props:["color","title"]};var a=r(3379),i=r.n(a),s=r(4863),o={insert:"head",singleton:!1};i()(s.Z,o);s.Z.locals;var l=r(1900);const u={name:"ProgressLine",props:["data"],components:{DotLabel:(0,l.Z)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"label"},[e("span",{class:["label-dot",t.color]}),t._v(" "),e("b",{staticClass:"label-title"},[t._v("\n "+t._s(t.title)+"\n ")])])}),[],!1,null,"03d13328",null).exports}};var c=r(7227),d={insert:"head",singleton:!1};i()(c.Z,d);c.Z.locals;const f=(0,l.Z)(u,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"mb-4 flex h-2.5 items-center rounded bg-light-300 dark:bg-2x-dark-foreground"},t._l(t.data,(function(r,n){return e("div",{key:n,staticClass:"chart-wrapper",style:{width:(r.progress>1?r.progress:0)+"%"}},[1===t.data.length?e("span",{staticClass:"chart-progress block h-2.5 w-full",class:[{"rounded-tl-lg rounded-bl-lg border-r-2 border-white dark:border-gray-800":r.progress<100,"rounded-lg border-none":r.progress>=100},r.color]}):t._e(),t._v(" "),t.data.length>1&&r.progress>0?e("span",{staticClass:"chart-progress block h-2.5 w-full",class:[{"rounded-tl-lg rounded-bl-lg border-r-2 border-white dark:border-gray-800":0===n,"border-r-2 border-white dark:border-gray-800":n{"use strict";r.d(e,{Z:()=>v});var n=r(9101);const a={props:["data"],computed:{normalizedColumns:function(){return this.data.id&&delete this.data.id,Object.values(this.data)}}};var i=r(3379),s=r.n(i),o=r(3428),l={insert:"head",singleton:!1};s()(o.Z,l);o.Z.locals;var u=r(1900);const c=(0,u.Z)(a,(function(){var t=this,e=t._self._c;return e("tr",{staticClass:"table-row"},t._l(t.normalizedColumns,(function(r,n){return e("td",{key:n,staticClass:"table-cell"},[e("span",[t._v(t._s(r))])])})),0)}),[],!1,null,"61827e38",null).exports;var d=r(9669),f=r.n(d);const p={name:"DatatableWrapper",props:["paginator","tableData","columns","scope","api"],components:{ChevronRightIcon:n.XCv,ChevronLeftIcon:n.wyc,DatatableCell:c,ChevronUpIcon:n.g8U},computed:{hasData:function(){return this.data&&this.data.data&&this.data.data.length>0},floatPages:function(){return[this.pageIndex-1,this.pageIndex,this.pageIndex+1]}},data:function(){return{data:void 0,isLoading:!0,pageIndex:1,filter:{sort:"DESC",field:void 0}}},methods:{goToPage:function(t){t>this.data.meta.last_page||0===t||(this.pageIndex=t,this.getPage(t))},sort:function(t,e){e&&(this.filter.field=t,"DESC"===this.filter.sort?this.filter.sort="ASC":"ASC"===this.filter.sort&&(this.filter.sort="DESC"),this.getPage(this.pageIndex))},getPage:function(t){var e=this;this.URI=this.api,this.paginator&&(this.URI=this.URI+"?page="+t),this.filter.field&&(this.URI=this.URI+(this.paginator?"&":"?")+"sort="+this.filter.field+"&direction="+this.filter.sort),this.isLoading=!0,f().get(this.URI).then((function(t){e.data=t.data,e.$emit("data",t.data)})).catch((function(){return e.$isSomethingWrong()})).finally((function(){e.$emit("init",!0),e.isLoading=!1}))}},created:function(){this.api&&this.getPage(this.pageIndex),this.tableData&&(this.data=this.tableData,this.isLoading=!1)}};const v=(0,u.Z)(p,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"w-full"},[t.hasData?e("table",{staticClass:"w-full"},[e("thead",[e("tr",{staticClass:"whitespace-nowrap"},t._l(t.columns,(function(r,n){return r.hidden?t._e():e("th",{key:n,staticClass:"text-left",class:{"sortable cursor-pointer":r.sortable,"text-right":Object.values(t.columns).length-1===n},on:{click:function(e){return t.sort(r.field,r.sortable)}}},[e("span",{staticClass:"text-xs text-gray-400 dark:text-gray-500"},[t._v("\n "+t._s(t.$t(r.label))+"\n ")]),t._v(" "),r.sortable?e("chevron-up-icon",{staticClass:"vue-feather inline-block text-gray-300 dark:text-gray-500",class:{"arrow-down":"ASC"===t.filter.sort},attrs:{size:"12"}}):t._e()],1)})),0)]),t._v(" "),e("tbody",{staticClass:"table-body"},[t._l(t.data.data,(function(r){return t._t("default",(function(){return[e("DatatableCell",{key:r.id,attrs:{data:r}})]}),{row:r})}))],2)]):t._e(),t._v(" "),t.isLoading||t.hasData?t._e():t._t("empty-page"),t._v(" "),t.paginator&&t.hasData?e("div",{staticClass:"mt-6 sm:flex sm:items-center sm:justify-between"},[t.data.meta.total>15&&t.data.meta.last_page<=6?e("ul",{staticClass:"pagination flex justify-center items-center"},[e("li",{staticClass:"previous inline-block p-1"},[e("a",{staticClass:"page-link",class:{"cursor-default opacity-20":1===t.pageIndex},on:{click:function(e){return t.goToPage(t.pageIndex-1)}}},[e("chevron-left-icon",{staticClass:"inline-block",attrs:{size:"14"}})],1)]),t._v(" "),t._l(t.data.meta.last_page,(function(r,n){return e("li",{key:n,staticClass:"inline-block p-1",on:{click:function(e){return t.goToPage(r)}}},[e("a",{staticClass:"page-link",class:{"bg-light-background dark:bg-4x-dark-foreground dark:text-gray-300":t.pageIndex===r}},[t._v("\n "+t._s(r)+"\n ")])])})),t._v(" "),e("li",{staticClass:"next inline-block p-1"},[e("a",{staticClass:"page-link",class:{"cursor-default opacity-20":t.pageIndex===t.data.meta.last_page},on:{click:function(e){return t.goToPage(t.pageIndex+1)}}},[e("chevron-right-icon",{staticClass:"inline-block",attrs:{size:"14"}})],1)])],2):t._e(),t._v(" "),t.data.meta.total>15&&t.data.meta.last_page>6?e("ul",{staticClass:"pagination flex justify-center items-center"},[e("li",{staticClass:"previous inline-block p-1"},[e("a",{staticClass:"page-link",class:{"cursor-default opacity-20":1===t.pageIndex},on:{click:function(e){return t.goToPage(t.pageIndex-1)}}},[e("chevron-left-icon",{staticClass:"inline-block",attrs:{size:"14"}})],1)]),t._v(" "),t.pageIndex>=5?e("li",{staticClass:"inline-block p-1",on:{click:function(e){return t.goToPage(1)}}},[e("a",{staticClass:"page-link"},[t._v(" 1 ")])]):t._e(),t._v(" "),t._l(5,(function(r,n){return t.pageIndex<5?e("li",{key:n,staticClass:"inline-block p-1",on:{click:function(e){return t.goToPage(r)}}},[e("a",{staticClass:"page-link",class:{"bg-light-background dark:bg-4x-dark-foreground dark:text-gray-300":t.pageIndex===r}},[t._v("\n "+t._s(r)+"\n ")])]):t._e()})),t._v(" "),t.pageIndex>=5?e("li",{staticClass:"inline-block p-1"},[e("a",{staticClass:"page-link"},[t._v("...")])]):t._e(),t._v(" "),t._l(t.floatPages,(function(r,n){return t.pageIndex>=5&&t.pageIndext.data.meta.last_page-4?e("li",{key:n,staticClass:"inline-block p-1",on:{click:function(e){t.goToPage(t.data.meta.last_page-(4-n))}}},[e("a",{staticClass:"page-link",class:{"bg-light-background dark:bg-4x-dark-foreground dark:text-gray-300":t.pageIndex===t.data.meta.last_page-(4-n)}},[t._v("\n "+t._s(t.data.meta.last_page-(4-n))+"\n ")])]):t._e()})),t._v(" "),t.pageIndex{"use strict";r.r(e),r.d(e,{default:()=>Ft});var n=r(944),a=r(4789),i=r(9244),s=r(9669),o=r.n(s),l=r(5399),u=r(2465);const c={name:"UserUpdatePaymentMethodsExternally",components:{AppInputButton:u.Z,AppInputSwitch:n.Z,ButtonBase:a.Z,FormLabel:i.Z},computed:{canShowForSubscription:function(){return this.hasSubscription&&!this.subscription.attributes.is_cancelled&&["paystack","paypal"].includes(this.subscription.attributes.driver)},subscription:function(){return this.$store.getters.user.data.relationships.subscription.data},hasSubscription:function(){return this.$store.getters.user.data.relationships.subscription}},data:function(){return{isGeneratedUpdateLink:!1}},methods:{updatePaymentMethod:function(){var t=this;this.isGeneratedUpdateLink=!0,o().post("/api/subscriptions/edit/".concat(this.subscription.id)).then((function(t){window.location=t.data.url})).catch((function(){l.U.$emit("toaster",{type:"danger",message:t.$t("popup_error.title")}),t.isGeneratedUpdateLink=!1}))}}};var d=r(1900);const f=(0,d.Z)(c,(function(){var t=this,e=t._self._c;return t.canShowForSubscription?e("div",{staticClass:"card shadow-card"},[e("FormLabel",[t._v("\n "+t._s(t.$t("update_payments"))+"\n ")]),t._v(" "),e("AppInputButton",{attrs:{title:t.$t("update_payment_method"),description:t.$t("payment_method_update_redirect_description"),"is-last":!0}},[e("ButtonBase",{staticClass:"w-full sm:w-auto",attrs:{loading:t.isGeneratedUpdateLink,"button-style":"theme"},nativeOn:{click:function(e){return t.updatePaymentMethod.apply(null,arguments)}}},[t._v("\n "+t._s(t.$t("update_payments"))+"\n ")])],1)],1):t._e()}),[],!1,null,null,null).exports;var p=r(9101),v=r(7009),m=r(5508),h=r(598),b=r(629),g=r(8787),_=r(4566);function y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function x(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r element.");return n.appendChild(r),r}(t)),n.addEventListener("load",(function(){window.Stripe?e(window.Stripe):r(new Error("Stripe.js not available"))})),n.addEventListener("error",(function(){r(new Error("Failed to load Stripe.js"))}))}catch(t){return void r(t)}else e(null)}))),M},V=function(t,e,r){if(null===t)return null;var n=t.apply(void 0,e);return function(t,e){t&&t._registerWrapper&&t._registerWrapper({name:"stripe-js",version:"1.35.0",startTime:e})}(n,r),n},N=Promise.resolve().then((function(){return q(null)})),W=!1;N.catch((function(t){W||console.warn(t)}));var H=function(){for(var t=arguments.length,e=new Array(t),r=0;r0}}),data:function(){return{isLoading:!1,isCreditCardForm:!1,stripe:{isInitialization:!0,storingStripePaymentMethod:!1}}},methods:{storeStripePaymentMethod:function(){var t=this;return K(B().mark((function e(){var r,n;return B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.config.isDemo||"ho**@hi5ve.digital"!==t.user.data.attributes.email){e.next=3;break}return l.U.$emit("toaster",{type:"success",message:t.$t("credit_card_stored")}),e.abrupt("return");case 3:return t.stripe.storingStripePaymentMethod=!0,e.next=6,Q.confirmSetup({elements:tt,redirect:"if_required",confirmParams:{return_url:window.location.href}});case 6:r=e.sent,(n=r.error)?document.querySelector("#error-message").textContent=n.message:(l.U.$emit("toaster",{type:"success",message:t.$t("credit_card_stored")}),setTimeout((function(){return document.location.reload()}),500)),t.stripe.storingStripePaymentMethod=!1;case 10:case"end":return e.stop()}}),e)})))()},stripeInit:function(){var t=this;return K(B().mark((function e(){return B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,H(t.config.stripe_public_key);case 2:return Q=e.sent,e.next=5,o().get("/api/stripe/setup-intent").then((function(e){(tt=Q.elements({clientSecret:e.data.data.client_secret,appearance:{theme:"stripe",variables:{colorPrimary:t.config.app_color,fontFamily:"Nunito",borderRadius:"8px",colorText:t.isDarkMode?"#bec6cf":"#1B2539",colorBackground:t.isDarkMode?"#191b1e":"#fff",fontWeightNormal:"700",fontSizeSm:"0.875rem",colorSuccessText:"#0ABB87",colorSuccess:"#0ABB87",colorWarning:"#fd397a",colorWarningText:"#fd397a",colorDangerText:"#fd397a",colorTextSecondary:"#6b7280",spacingGridRow:"20px"}}})).create("payment").mount("#payment-element")})).catch((function(){l.U.$emit("toaster",{type:"danger",message:t.$t("popup_error.title")})}));case 5:t.stripe.isInitialization=!1;case 6:case"end":return e.stop()}}),e)})))()},showStoreCreditCardForm:function(){this.isCreditCardForm=!this.isCreditCardForm,this.stripeInit()}}};const rt=(0,d.Z)(et,(function(){var t=this,e=t._self._c;return t.canShowForMeteredBilling||t.canShowForFixedBilling?e("div",{staticClass:"card shadow-card"},[e("FormLabel",{attrs:{icon:"credit-card"}},[t._v("\n "+t._s(t.$t("payment_method"))+"\n ")]),t._v(" "),t.hasPaymentMethod?e("div",["metered"===t.config.subscriptionType&&t.user.data.relationships.balance.data.attributes.balance>0?e("b",{staticClass:"mb-3 mb-5 block text-sm"},[t._v("\n "+t._s(t.$t("credit_to_auto_withdraw",{credit:t.user.data.relationships.balance.data.attributes.formatted}))+"\n ")]):t._e(),t._v(" "),t._l(t.user.data.relationships.creditCards.data,(function(t){return e("PaymentCard",{key:t.data.id,attrs:{card:t}})})),t._v(" "),e("small",{staticClass:"hidden pt-3 text-xs leading-none dark:text-gray-500 text-gray-500 sm:block"},[t._v("\n "+t._s(t.$t("auto_settled_credit_card"))+"\n ")])],2):t._e(),t._v(" "),t.hasPaymentMethod?t._e():e("div",[t.isCreditCardForm?t._e():e("ButtonBase",{staticClass:"mt-4 w-full",attrs:{loading:t.stripe.storingStripePaymentMethod,type:"submit","button-style":"theme"},nativeOn:{click:function(e){return t.showStoreCreditCardForm.apply(null,arguments)}}},[t._v("\n "+t._s(t.$t("add_payment_method"))+"\n ")]),t._v(" "),t.isCreditCardForm?e("form",{staticClass:"mt-6",attrs:{id:"payment-form"},on:{submit:function(e){return e.preventDefault(),t.storeStripePaymentMethod.apply(null,arguments)}}},[t.stripe.isInitialization?e("div",{staticClass:"relative mb-6 h-10"},[e("Spinner")],1):t._e(),t._v(" "),t.config.isDemo&&!t.stripe.isInitialization?e("InfoBox",[e("p",[t._v("For adding test credit card please use "),e("b",{staticClass:"text-theme"},[t._v("4242 4242 4242 4242")]),t._v(" as a card number, "),e("b",{staticClass:"text-theme"},[t._v("11/22")]),t._v("\n\t\t\t\t\t\tas the expiration date and "),e("b",{staticClass:"text-theme"},[t._v("123")]),t._v(" as CVC number and ZIP "),e("b",{staticClass:"text-theme"},[t._v("12345")]),t._v(" if required.")])]):t._e(),t._v(" "),e("div",{attrs:{id:"payment-element"}}),t._v(" "),e("ButtonBase",{staticClass:"mt-4 w-full",attrs:{loading:t.stripe.storingStripePaymentMethod,type:"submit","button-style":"theme"}},[t._v("\n "+t._s(t.$t("store_my_credit_card"))+"\n ")]),t._v(" "),e("div",{staticClass:"pt-2 text-xs text-rose-600",attrs:{id:"error-message"}})],1):t._e()],1)],1):t._e()}),[],!1,null,null,null).exports;const nt={name:"UserEmptySubscription",components:{ButtonBase:a.Z,FormLabel:i.Z,InfoBox:h.Z},computed:{hasSubscription:function(){return this.$store.getters.user.data.relationships.subscription}}};const at=(0,d.Z)(nt,(function(){var t=this,e=t._self._c;return t.hasSubscription?t._e():e("div",{staticClass:"card shadow-card"},[e("FormLabel",[t._v("\n "+t._s(t.$t("subscription"))+"\n ")]),t._v(" "),e("b",{staticClass:"-mt-3 mb-0.5 block text-2xl font-extrabold sm:text-3xl"},[t._v("\n "+t._s(t.$t("free_plan"))+"\n ")]),t._v(" "),t.$store.getters.config.allowed_payments?e("b",{staticClass:"mb-3 mb-8 block text-sm text-gray-400"},[t._v("\n "+t._s(t.$t("upgrade_to_get_more"))+"\n ")]):t._e(),t._v(" "),t.$store.getters.config.allowed_payments?e("ButtonBase",{staticClass:"mt-4 w-full",attrs:{type:"submit","button-style":"theme"},nativeOn:{click:function(e){return t.$openSubscribeOptions.apply(null,arguments)}}},[t._v("\n "+t._s(t.$t("upgrade_your_account"))+"\n ")]):t._e()],1)}),[],!1,null,null,null).exports;var it=r(1157);const st={name:"UserEditSubscription",components:{AppInputButton:u.Z,AppInputSwitch:n.Z,AppInputText:it.Z,ButtonBase:a.Z,FormLabel:i.Z},computed:{subscription:function(){return this.$store.getters.user.data.relationships.subscription.data},hasSubscription:function(){return this.$store.getters.user.data.relationships.subscription}},data:function(){return{isCancelling:!1}},methods:{cancelSubscriptionConfirmation:function(){l.U.$emit("confirm:open",{title:this.$t("want_cancel_subscription"),message:this.$t("popup_subscription_cancel.message"),action:{operation:"cancel-subscription"}})}},created:function(){var t=this;l.U.$on("action:confirmed",(function(e){"cancel-subscription"===e.operation&&(t.isCancelling=!0,o().post("/api/subscriptions/cancel").then((function(){t.$store.dispatch("getAppData"),l.U.$emit("toaster",{type:"success",message:t.$t("popup_subscription_cancel.title")})})).catch((function(){l.U.$emit("toaster",{type:"danger",message:t.$t("popup_error.title")})})).finally((function(){t.isCancelling=!1})))}))},destroyed:function(){l.U.$off("action:confirmed")}};const ot=(0,d.Z)(st,(function(){var t=this,e=t._self._c;return t.hasSubscription?e("div",{staticClass:"card shadow-card"},[e("FormLabel",[t._v("\n "+t._s(t.$t("edit_your_subscription"))+"\n ")]),t._v(" "),"cancelled"!==t.subscription.attributes.status?e("AppInputButton",{attrs:{title:t.$t("cancel_subscription"),description:t.$t("cancel_subscription_description")}},[e("ButtonBase",{staticClass:"w-full sm:w-auto",attrs:{loading:t.isCancelling,"button-style":"secondary"},nativeOn:{click:function(e){return t.cancelSubscriptionConfirmation.apply(null,arguments)}}},[t._v("\n "+t._s(t.$t("cancel_now"))+"\n ")])],1):t._e(),t._v(" "),e("AppInputButton",{attrs:{title:t.$t("upgrade_downgrade_plan"),description:t.$t("upgrade_downgrade_plan_description"),"is-last":!0}},[e("ButtonBase",{staticClass:"w-full sm:w-auto",attrs:{"button-style":"secondary"},nativeOn:{click:function(e){return t.$changeSubscriptionOptions.apply(null,arguments)}}},[t._v("\n "+t._s(t.$t("change_plan"))+"\n ")])],1)],1):t._e()}),[],!1,null,null,null).exports;function lt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ut(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const ct={name:"UserFailedPayments",components:{FormLabel:i.Z,InfoBox:h.Z},computed:function(t){for(var e=1;e0?e("div",{staticClass:"card shadow-card"},[e("FormLabel",{attrs:{icon:"frown"}},[t._v("\n "+t._s(t.$t("failed_payments"))+"\n ")]),t._v(" "),e("b",{staticClass:"-mt-3 mb-0.5 block text-2xl font-extrabold sm:text-3xl"},[t._v("\n -"+t._s(t.user.data.meta.totalDebt.formatted)+"\n ")]),t._v(" "),e("b",{staticClass:"mb-3 mb-5 block text-sm text-gray-400"},[t._v("\n "+t._s(t.$t("unable_to_charge"))+"\n ")]),t._v(" "),t._l(t.user.data.relationships.failedPayments.data,(function(r){return e("div",{key:r.data.id,staticClass:"flex items-center justify-between border-b border-dashed border-light py-2 dark:border-opacity-5"},[e("div",{staticClass:"w-2/4 leading-none"},[e("b",{staticClass:"text-sm font-bold leading-none"},[t._v("\n "+t._s(r.data.attributes.note)+"\n ")])]),t._v(" "),e("div",{staticClass:"w-1/4 text-left"},[e("span",{staticClass:"text-gray-560 text-sm font-bold capitalize"},[t._v("\n "+t._s(t.$t(r.data.attributes.source))+"\n ")])]),t._v(" "),e("div",{staticClass:"w-1/4 text-right"},[e("span",{staticClass:"text-sm font-bold"},[t._v("\n "+t._s(r.data.attributes.created_at)+"\n ")])]),t._v(" "),e("div",{staticClass:"w-1/4 text-right"},[e("span",{staticClass:"text-red text-sm font-bold"},[t._v("\n "+t._s(r.data.attributes.amount)+"\n ")])])])}))],2):t._e()}),[],!1,null,null,null).exports;function ft(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function pt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const vt={name:"UserUsageEstimates",components:{FormLabel:i.Z},computed:function(t){for(var e=1;e0}}),data:function(){return{chargeAmount:void 0}},methods:{makePayment:function(){var t,e=this;return(t=B().mark((function t(){return B().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.fundAccount.validate();case 2:if(t.sent){t.next=5;break}return t.abrupt("return");case 5:e.$store.dispatch("callSingleChargeProcess",e.chargeAmount);case 6:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,a){var i=t.apply(e,r);function s(t){$t(i,n,a,s,o,"next",t)}function o(t){$t(i,n,a,s,o,"throw",t)}s(void 0)}))})()}}};function jt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Zt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const Pt={name:"Billing",components:{UserUpdatePaymentMethodsExternally:f,UserTransactionsForMeteredBilling:$,UserTransactionsForFixedBilling:A,UserFixedSubscriptionDetail:I,UserStoredPaymentMethods:rt,UserEmptySubscription:at,UserEditSubscription:ot,UserFailedPayments:dt,UserUsageEstimates:mt,UserBillingAlerts:wt,UserBalance:(0,d.Z)(St,(function(){var t=this,e=t._self._c;return t.hasPaymentMethod?t._e():e("div",{staticClass:"card shadow-card"},[e("FormLabel",{attrs:{icon:"dollar"}},[t._v("\n "+t._s(t.$t("balance"))+"\n ")]),t._v(" "),e("b",{staticClass:"-mt-3 mb-0.5 block text-2xl font-extrabold sm:text-3xl"},[t._v("\n "+t._s(t.user.data.relationships.balance.data.attributes.formatted)+"\n ")]),t._v(" "),e("ValidationObserver",{ref:"fundAccount",staticClass:"mt-6",attrs:{tag:"form"},on:{submit:function(e){return e.preventDefault(),t.makePayment.apply(null,arguments)}},scopedSlots:t._u([{key:"default",fn:function(r){r.invalid;return[e("ValidationProvider",{attrs:{tag:"div",mode:"passive",name:"Amount",rules:"required|min_value:".concat(t.user.data.meta.totalDebt.amount)},scopedSlots:t._u([{key:"default",fn:function(r){var n=r.errors;return[e("AppInputText",{attrs:{description:t.$t("amount_increase_description"),error:n[0],"is-last":!0}},[e("div",{staticClass:"space-y-4 sm:flex sm:space-x-4 sm:space-y-0"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.chargeAmount,expression:"chargeAmount"}],staticClass:"focus-border-theme input-dark",class:{"!border-rose-600":n[0]},attrs:{placeholder:t.$t("fund_account_balance"),type:"number",min:"1",max:"999999999"},domProps:{value:t.chargeAmount},on:{input:function(e){e.target.composing||(t.chargeAmount=e.target.value)}}}),t._v(" "),e("ButtonBase",{staticClass:"w-full sm:w-auto",attrs:{type:"submit","button-style":"theme"}},[t._v("\n "+t._s(t.$t("make_payment"))+"\n ")])],1)])]}}],null,!0)})]}}],null,!1,1144290692)})],1)}),[],!1,null,null,null).exports,PageTab:kt.Z},computed:function(t){for(var e=1;e