mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 00:02:15 +00:00
2 lines
67 KiB
JavaScript
Vendored
2 lines
67 KiB
JavaScript
Vendored
/*! For license information please see app-others.js.LICENSE.txt */
|
||
(self.webpackChunk=self.webpackChunk||[]).push([[1719],{3711:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(3645),r=i.n(n)()((function(e){return e[1]}));r.push([e.id,".select[data-v-6cd58048]{position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.select-search[data-v-6cd58048]{background:#fff;padding:13px;position:-webkit-sticky;position:sticky;top:0}.select-search .search-input[data-v-6cd58048]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#f4f5f6;border:1px solid transparent;font-size:.875em;font-weight:700;outline:0;padding:13px 20px;transition:all .15s ease;width:100%}.input-options[data-v-6cd58048]{background:#fff;box-shadow:0 5px 15px rgba(0,0,0,.12);left:0;max-height:295px;overflow:hidden;overflow-y:auto;position:absolute;right:0;top:65px;z-index:9}.input-options .option-item[data-v-6cd58048]{cursor:pointer;display:block;padding:13px 20px}.input-options .option-item[data-v-6cd58048]:hover{background:#f4f5f6;color:#00bc7e}.input-options .option-item[data-v-6cd58048]:last-child{border-bottom:none}.input-area[data-v-6cd58048]{align-items:center;border:1px solid transparent;cursor:pointer;display:flex;justify-content:space-between;outline:0;padding:13px 20px;width:100%}.input-area[data-v-6cd58048],.input-area .chevron[data-v-6cd58048]{transition:all .15s ease}.input-area.is-active .chevron[data-v-6cd58048]{transform:rotate(180deg)}.input-area.is-error[data-v-6cd58048]{border-color:#fd397a;box-shadow:0 0 7px rgba(253,57,122,.3)}.option-icon[data-v-6cd58048]{display:inline-block;font-size:.625em;width:20px}.option-value[data-v-6cd58048]{font-size:.875em;font-weight:700;vertical-align:middle}.option-value.placehoder[data-v-6cd58048]{color:rgba(27,37,57,.5)}.slide-in-enter-active[data-v-6cd58048]{transition:all .15s ease}.slide-in-enter[data-v-6cd58048]{opacity:0;transform:translateY(-50px)}.dark .select-search[data-v-6cd58048]{background:#1e2024}.dark .select-search .search-input[data-v-6cd58048]{background:#151515}.dark .popup-wrapper .input-area[data-v-6cd58048]{background:#25272c}.dark .input-options[data-v-6cd58048]{background:#1e2024}.dark .input-options .option-item[data-v-6cd58048]{border-bottom:none}.dark .input-options .option-item[data-v-6cd58048]:hover{background:#2a2c32}.dark .input-options .option-item:hover .option-icon circle[data-v-6cd58048],.dark .input-options .option-item:hover .option-icon path[data-v-6cd58048]{color:inherit}.dark .input-options .option-item[data-v-6cd58048]:last-child{border-bottom:none}.dark .option-value.placehoder[data-v-6cd58048]{color:#7d858c}",""]);const a=r},4134:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(3645),r=i.n(n)()((function(e){return e[1]}));r.push([e.id,".input-wrapper[data-v-1e835bde]{display:flex;width:100%}.input-wrapper .input-label[data-v-1e835bde]{color:#1b2539}.input-wrapper .switch-content[data-v-1e835bde]{width:100%}.input-wrapper .switch-content[data-v-1e835bde]:last-child{width:80px}.switch[data-v-1e835bde]{background:#f1f1f5;height:28px;position:relative;width:50px}.switch[data-v-1e835bde],.switch .switch-button[data-v-1e835bde]{border-radius:50px;display:block;transition:all .3s ease}.switch .switch-button[data-v-1e835bde]{background:#fff;box-shadow:0 2px 4px rgba(37,38,94,.1);cursor:pointer;height:22px;left:3px;position:absolute;top:3px;width:22px}.switch.active .switch-button[data-v-1e835bde]{left:25px}.dark .switch[data-v-1e835bde]{background:#1e2024}.dark .popup-wrapper .switch[data-v-1e835bde]{background:#25272c}",""]);const a=r},4479:(e,t,i)=>{"use strict";i.d(t,{C1:()=>a});function n(e){return null==e}function r(e){return Array.isArray(e)&&0===e.length}var a={validate:function(e,t){var i=(void 0===t?{allowFalse:!0}:t).allowFalse,a={valid:!1,required:!0};return n(e)||r(e)?a:!1!==e||i?(a.valid=!!String(e).trim().length,a):a},params:[{name:"allowFalse",default:!0}],computesRequired:!0}},9495:function(e,t,i){!function(e,t){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=i(t),r={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"}},a={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(e,t){var i=(void 0===t?{}:t).locale,n=void 0===i?"":i;return Array.isArray(e)?e.every((function(e){return u(e,{locale:n})})):n?(a[n]||a.en).test(e):Object.keys(a).some((function(t){return a[t].test(e)}))},c={validate:u,params:[{name:"locale"}]},d=function(e,t){var i=(void 0===t?{}:t).locale,n=void 0===i?"":i;return Array.isArray(e)?e.every((function(e){return d(e,{locale:n})})):n?(l[n]||l.en).test(e):Object.keys(l).some((function(t){return l[t].test(e)}))},p={validate:d,params:[{name:"locale"}]},f=function(e,t){var i=(void 0===t?{}:t).locale,n=void 0===i?"":i;return Array.isArray(e)?e.every((function(e){return f(e,{locale:n})})):n?(o[n]||o.en).test(e):Object.keys(o).some((function(t){return o[t].test(e)}))},v={validate:f,params:[{name:"locale"}]},m=function(e,t){var i=(void 0===t?{}:t).locale,n=void 0===i?"":i;return Array.isArray(e)?e.every((function(e){return m(e,{locale:n})})):n?(s[n]||s.en).test(e):Object.keys(s).some((function(t){return s[t].test(e)}))},h={validate:m,params:[{name:"locale"}]},g=function(e,t){var i=void 0===t?{}:t,n=i.min,r=i.max;return Array.isArray(e)?e.every((function(e){return!!g(e,{min:n,max:r})})):Number(n)<=e&&Number(r)>=e},_={validate:g,params:[{name:"min"},{name:"max"}]},b={validate:function(e,t){var i=t.target;return String(e)===String(i)},params:[{name:"target",isTarget:!0}]},y=function(e,t){var i=t.length;if(Array.isArray(e))return e.every((function(e){return y(e,{length:i})}));var n=String(e);return/^[0-9]*$/.test(n)&&n.length===i},x={validate:y,params:[{name:"length",cast:function(e){return Number(e)}}]},$=function(e,t,i){var n=window.URL||window.webkitURL;return new Promise((function(r){var a=new Image;a.onerror=function(){return r(!1)},a.onload=function(){return r(a.width===t&&a.height===i)},a.src=n.createObjectURL(e)}))},A=function(e,t){var i=t.width,n=t.height,r=[];e=Array.isArray(e)?e:[e];for(var a=0;a<e.length;a++){if(!/\.(jpg|svg|jpeg|png|bmp|gif)$/i.test(e[a].name))return Promise.resolve(!1);r.push(e[a])}return Promise.all(r.map((function(e){return $(e,i,n)}))).then((function(e){return e.every((function(e){return e}))}))},w={validate:A,params:[{name:"width",cast:function(e){return Number(e)}},{name:"height",cast:function(e){return Number(e)}}]},k={validate:function(e,t){var i=(void 0===t?{}:t).multiple,n=/^(([^<>()\[\]\\.,;:\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 i&&!Array.isArray(e)&&(e=String(e).split(",").map((function(e){return e.trim()}))),Array.isArray(e)?e.every((function(e){return n.test(String(e))})):n.test(String(e))},params:[{name:"multiple",default:!1}]};function C(e){return e!=e}function O(e){return null==e}function S(e){return Array.isArray(e)&&0===e.length}var Z=function(e){return null!==e&&e&&"object"==typeof e&&!Array.isArray(e)};function F(e,t){return!(!C(e)||!C(t))||e===t}function z(e){return""!==e&&!O(e)}function R(e){return"function"==typeof e}function T(e){return R(e)&&!!e.__locatorRef}function I(e,t){var i=Array.isArray(e)?e:q(e);if(R(i.findIndex))return i.findIndex(t);for(var n=0;n<i.length;n++)if(t(i[n],n))return n;return-1}function E(e,t){var i=Array.isArray(e)?e:q(e),n=I(i,t);return-1===n?void 0:i[n]}function j(e,t){return-1!==e.indexOf(t)}function q(e){return R(Array.from)?Array.from(e):L(e)}function L(e){for(var t=[],i=e.length,n=0;n<i;n++)t.push(e[n]);return t}function P(e){return R(Object.values)?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function D(e,t){return Object.keys(t).forEach((function(i){if(Z(t[i]))return e[i]||(e[i]={}),void D(e[i],t[i]);e[i]=t[i]})),e}function V(){return{untouched:!0,touched:!1,dirty:!1,pristine:!0,valid:!1,invalid:!1,validated:!1,pending:!1,required:!1,changed:!1,passed:!1,failed:!1}}function N(e){return e}function M(e,t,i){return void 0===t&&(t=0),void 0===i&&(i={cancelled:!1}),0===t?e:function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];var s=function(){n=void 0,i.cancelled||e.apply(void 0,r)};clearTimeout(n),n=setTimeout(s,t)};var n}function B(e){console.warn("[vee-validate] "+e)}function U(e,t){return e.replace(/{([^}]+)}/g,(function(e,i){return i in t?t[i]:"{"+i+"}"}))}var W=function(e,t){return Array.isArray(e)?e.every((function(e){return W(e,t)})):q(t).some((function(t){return t==e}))},H={validate:W},K={validate:function(e,t){return!W(e,t)}},G=function(e,t){var i=new RegExp(".("+t.join("|")+")$","i");return Array.isArray(e)?e.every((function(e){return i.test(e.name)})):i.test(e.name)},Y={validate:G},J=function(e){var t=/\.(jpg|svg|jpeg|png|bmp|gif|webp)$/i;return Array.isArray(e)?e.every((function(e){return t.test(e.name)})):t.test(e.name)},Q={validate:J},X={validate:function(e){return Array.isArray(e)?e.every((function(e){return/^-?[0-9]+$/.test(String(e))})):/^-?[0-9]+$/.test(String(e))}},ee={validate:function(e,t){return e===t.other},params:[{name:"other"}]},te={validate:function(e,t){return e!==t.other},params:[{name:"other"}]},ie=function(e,t){var i=t.length;return!O(e)&&("string"==typeof e&&(e=q(e)),"number"==typeof e&&(e=String(e)),e.length||(e=q(e)),e.length===i)},ne={validate:ie,params:[{name:"length",cast:function(e){return Number(e)}}]},re=function(e,t){var i=t.length;return O(e)?i>=0:Array.isArray(e)?e.every((function(e){return re(e,{length:i})})):String(e).length<=i},ae={validate:re,params:[{name:"length",cast:function(e){return Number(e)}}]},se=function(e,t){var i=t.max;return!O(e)&&""!==e&&(Array.isArray(e)?e.length>0&&e.every((function(e){return se(e,{max:i})})):Number(e)<=i)},oe={validate:se,params:[{name:"max",cast:function(e){return Number(e)}}]},le=function(e,t){var i=new RegExp(t.join("|").replace("*",".+")+"$","i");return Array.isArray(e)?e.every((function(e){return i.test(e.type)})):i.test(e.type)},ue={validate:le},ce=function(e,t){var i=t.length;return!O(e)&&(Array.isArray(e)?e.every((function(e){return ce(e,{length:i})})):String(e).length>=i)},de={validate:ce,params:[{name:"length",cast:function(e){return Number(e)}}]},pe=function(e,t){var i=t.min;return!O(e)&&""!==e&&(Array.isArray(e)?e.length>0&&e.every((function(e){return pe(e,{min:i})})):Number(e)>=i)},fe={validate:pe,params:[{name:"min",cast:function(e){return Number(e)}}]},ve=/^[٠١٢٣٤٥٦٧٨٩]+$/,me=/^[0-9]+$/,he={validate:function(e){var t=function(e){var t=String(e);return me.test(t)||ve.test(t)};return Array.isArray(e)?e.every(t):t(e)}},ge=function(e,t){var i=t.regex;return Array.isArray(e)?e.every((function(e){return ge(e,{regex:i})})):i.test(String(e))},_e={validate:ge,params:[{name:"regex",cast:function(e){return"string"==typeof e?new RegExp(e):e}}]},be={validate:function(e,t){var i=(void 0===t?{allowFalse:!0}:t).allowFalse,n={valid:!1,required:!0};return O(e)||S(e)?n:!1!==e||i?(n.valid=!!String(e).trim().length,n):n},params:[{name:"allowFalse",default:!0}],computesRequired:!0},ye=function(e){return S(e)||j([!1,null,void 0],e)||!String(e).trim().length},xe=function(e,t){var i,n=t.target,r=t.values;return r&&r.length?(Array.isArray(r)||"string"!=typeof r||(r=[r]),i=r.some((function(e){return e==String(n).trim()}))):i=!ye(n),i?{valid:!ye(e),required:i}:{valid:!0,required:i}},$e={validate:xe,params:[{name:"target",isTarget:!0},{name:"values"}],computesRequired:!0},Ae=function(e,t){var i=t.size;if(isNaN(i))return!1;var n=1024*i;if(!Array.isArray(e))return e.size<=n;for(var r=0;r<e.length;r++)if(e[r].size>n)return!1;return!0},we={validate:Ae,params:[{name:"size",cast:function(e){return Number(e)}}]},ke=function(e,t){var i=t||{},n=i.decimals,r=void 0===n?0:n,a=i.separator,s=new RegExp("^-?\\d+"+("comma"===(void 0===a?"dot":a)?",?":"\\.?")+(0===r?"\\d*":"(\\d{"+r+"})?")+"$");return Array.isArray(e)?e.every((function(e){return s.test(String(e))})):s.test(String(e))},Ce={validate:ke,params:[{name:"decimals",default:0},{name:"separator",default:"dot"}]},Oe=Object.freeze({__proto__:null,alpha_dash:p,alpha_num:v,alpha_spaces:h,alpha:c,between:_,confirmed:b,digits:x,dimensions:w,email:k,ext:Y,image:Q,oneOf:H,integer:X,length:ne,is_not:te,is:ee,max:ae,max_value:oe,mimes:ue,min:de,min_value:fe,excluded:K,numeric:he,regex:_e,required:be,required_if:$e,size:we,double:Ce}),Se=function(){return Se=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Se.apply(this,arguments)};function Ze(e,t,i,n){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,a){function s(e){try{l(n.next(e))}catch(e){a(e)}}function o(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){e.done?i(e.value):r(e.value).then(s,o)}l((n=n.apply(e,t||[])).next())}))}function Fe(e,t){var i,n,r,a,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(e){return function(t){return l([e,t])}}function l(a){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){s.label=a[1];break}if(6===a[0]&&s.label<r[1]){s.label=r[1],r=a;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(a);break}r[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}function ze(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;var n=Array(e),r=0;for(t=0;t<i;t++)for(var a=arguments[t],s=0,o=a.length;s<o;s++,r++)n[r]=a[s];return n}var Re=Se({},{defaultMessage:"{_field_} is not valid.",skipOptional:!0,classes:{touched:"touched",untouched:"untouched",valid:"valid",invalid:"invalid",pristine:"pristine",dirty:"dirty"},bails:!0,mode:"aggressive",useConstraintAttrs:!0}),Te=function(){return Re},Ie=function(e){Re=Se(Se({},Re),e)},Ee=function(e){Ie(e)},je=new n.default;function qe(){je.$emit("change:locale")}var Le,Pe=function(){function e(e,t){this.container={},this.locale=e,this.merge(t)}return e.prototype.resolve=function(e,t,i){return this.format(this.locale,e,t,i)},e.prototype.format=function(e,t,i,n){var r,a,s,o,l,u,c,d,p,f=null===(s=null===(a=null===(r=this.container[e])||void 0===r?void 0:r.fields)||void 0===a?void 0:a[t])||void 0===s?void 0:s[i],v=null===(l=null===(o=this.container[e])||void 0===o?void 0:o.messages)||void 0===l?void 0:l[i];return(p=f||v||"")||(p="{_field_} is not valid"),t=null!==(d=null===(c=null===(u=this.container[e])||void 0===u?void 0:u.names)||void 0===c?void 0:c[t])&&void 0!==d?d:t,R(p)?p(t,n):U(p,Se(Se({},n),{_field_:t}))},e.prototype.merge=function(e){D(this.container,e)},e.prototype.hasRule=function(e){var t,i;return!!(null===(i=null===(t=this.container[this.locale])||void 0===t?void 0:t.messages)||void 0===i?void 0:i[e])},e}();function De(e,t){var i;if(Le||(Le=new Pe("en",{}),Ie({defaultMessage:function(e,t){return Le.resolve(e,null==t?void 0:t._rule_,t||{})}})),"string"==typeof e)return Le.locale=e,t&&Le.merge(((i={})[e]=t,i)),void qe();Le.merge(e)}var Ve={};function Ne(e){var t;return(null===(t=e.params)||void 0===t?void 0:t.length)&&(e.params=e.params.map((function(e){return"string"==typeof e?{name:e}:e}))),e}var Me=function(){function e(){}return e.extend=function(e,t){var i=Ne(t);Ve[e]?Ve[e]=D(Ve[e],t):Ve[e]=Se({lazy:!1,computesRequired:!1},i)},e.isLazy=function(e){var t;return!!(null===(t=Ve[e])||void 0===t?void 0:t.lazy)},e.isRequireRule=function(e){var t;return!!(null===(t=Ve[e])||void 0===t?void 0:t.computesRequired)},e.getRuleDefinition=function(e){return Ve[e]},e}();function Be(e,t){Ue(e,t),"object"!=typeof t?Me.extend(e,{validate:t}):Me.extend(e,t)}function Ue(e,t){if(!R(t)&&!R(t.validate)&&!Me.getRuleDefinition(e))throw new Error("Extension Error: The validator '"+e+"' must be a function or have a 'validate' method.")}var We={aggressive:function(){return{on:["input","blur"]}},eager:function(e){return e.errors.length?{on:["input","change"]}:{on:["change","blur"]}},passive:function(){return{on:[]}},lazy:function(){return{on:["change","blur"]}}},He=function(e,t){if(Ie({mode:e}),t){if(!R(t))throw new Error("A mode implementation must be a function");We[e]=t}};function Ke(e){var t={};return Object.defineProperty(t,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),e?Z(e)&&e._$$isNormalized?e:Z(e)?Object.keys(e).reduce((function(t,i){var n=[];return n=!0===e[i]?[]:Array.isArray(e[i])||Z(e[i])?e[i]:[e[i]],!1!==e[i]&&(t[i]=Ge(i,n)),t}),t):"string"!=typeof e?(B("rules must be either a string or an object."),t):e.split("|").reduce((function(e,t){var i=Ye(t);return i.name?(e[i.name]=Ge(i.name,i.params),e):e}),t):t}function Ge(e,t){var i=Me.getRuleDefinition(e);if(!i)return t;var n,r,a={};if(!i.params&&!Array.isArray(t))throw new Error("You provided an object params to a rule that has no defined schema.");if(Array.isArray(t)&&!i.params)return t;n=!i.params||i.params.length<t.length&&Array.isArray(t)?t.map((function(e,t){var n,a=null===(n=i.params)||void 0===n?void 0:n[t];return r=a||r,a||(a=r),a})):i.params;for(var s=0;s<n.length;s++){var o=n[s],l=o.default;Array.isArray(t)?s in t&&(l=t[s]):o.name in t?l=t[o.name]:1===n.length&&(l=t),o.isTarget&&(l=Je(l,o.cast)),"string"==typeof l&&"@"===l[0]&&(l=Je(l.slice(1),o.cast)),!T(l)&&o.cast&&(l=o.cast(l)),a[o.name]?(a[o.name]=Array.isArray(a[o.name])?a[o.name]:[a[o.name]],a[o.name].push(l)):a[o.name]=l}return a}var Ye=function(e){var t=[],i=e.split(":")[0];return j(e,":")&&(t=e.split(":").slice(1).join(":").split(",")),{name:i,params:t}};function Je(e,t){var i=function(i){var n=i[e];return t?t(n):n};return i.__locatorRef=e,i}function Qe(e){return Array.isArray(e)?e.filter((function(e){return T(e)||"string"==typeof e&&"@"===e[0]})):Object.keys(e).filter((function(t){return T(e[t])})).map((function(t){return e[t]}))}function Xe(e,t,i){return void 0===i&&(i={}),Ze(this,void 0,void 0,(function(){var n,r,a,s,o,l;return Fe(this,(function(u){switch(u.label){case 0:return n=null==i?void 0:i.bails,r=null==i?void 0:i.skipIfEmpty,[4,et({name:(null==i?void 0:i.name)||"{field}",rules:Ke(t),bails:null==n||n,skipIfEmpty:null==r||r,forceRequired:!1,crossTable:(null==i?void 0:i.values)||{},names:(null==i?void 0:i.names)||{},customMessages:(null==i?void 0:i.customMessages)||{}},e,i)];case 1:return a=u.sent(),s=[],o={},l={},a.errors.forEach((function(e){var t=e.msg();s.push(t),o[e.rule]=t,l[e.rule]=e.msg})),[2,{valid:a.valid,required:a.required,errors:s,failedRules:o,regenerateMap:l}]}}))}))}function et(e,t,i){var n=(void 0===i?{}:i).isInitial,r=void 0!==n&&n;return Ze(this,void 0,void 0,(function(){var i,n,a,s,o,l,u,c,d;return Fe(this,(function(p){switch(p.label){case 0:return[4,tt(e,t)];case 1:if(i=p.sent(),n=i.shouldSkip,a=i.required,s=i.errors,n)return[2,{valid:!s.length,required:a,errors:s}];o=Object.keys(e.rules).filter((function(e){return!Me.isRequireRule(e)})),l=o.length,u=0,p.label=2;case 2:return u<l?r&&Me.isLazy(o[u])?[3,4]:(c=o[u],[4,it(e,t,{name:c,params:e.rules[c]})]):[3,5];case 3:if(!(d=p.sent()).valid&&d.error&&(s.push(d.error),e.bails))return[2,{valid:!1,required:a,errors:s}];p.label=4;case 4:return u++,[3,2];case 5:return[2,{valid:!s.length,required:a,errors:s}]}}))}))}function tt(e,t){return Ze(this,void 0,void 0,(function(){var i,n,r,a,s,o,l,u,c;return Fe(this,(function(d){switch(d.label){case 0:i=Object.keys(e.rules).filter(Me.isRequireRule),n=i.length,r=[],a=O(t)||""===t||S(t),s=a&&e.skipIfEmpty,l=0,d.label=1;case 1:return l<n?(u=i[l],[4,it(e,t,{name:u,params:e.rules[u]})]):[3,4];case 2:if(c=d.sent(),!Z(c))throw new Error("Require rules has to return an object (see docs)");if(void 0!==c.required&&(o=c.required),!c.valid&&c.error&&(r.push(c.error),e.bails))return[2,{shouldSkip:!0,required:c.required,errors:r}];d.label=3;case 3:return l++,[3,1];case 4:return a&&!o&&!e.skipIfEmpty||!e.bails&&!s?[2,{shouldSkip:!1,required:o,errors:r}]:[2,{shouldSkip:!o&&a,required:o,errors:r}]}}))}))}function it(e,t,i){return Ze(this,void 0,void 0,(function(){var n,r,a,s,o;return Fe(this,(function(l){switch(l.label){case 0:if(!(n=Me.getRuleDefinition(i.name))||!n.validate)throw new Error("No such validator '"+i.name+"' exists.");return r=n.castValue?n.castValue(t):t,a=ot(i.params,e.crossTable),[4,n.validate(r,a)];case 1:return"string"==typeof(s=l.sent())?(o=Se(Se({},a||{}),{_field_:e.name,_value_:t,_rule_:i.name}),[2,{valid:!1,error:{rule:i.name,msg:function(){return U(s,o)}}}]):(Z(s)||(s={valid:s}),[2,{valid:s.valid,required:s.required,error:s.valid?void 0:nt(e,t,n,i.name,a)}])}}))}))}function nt(e,t,i,n,r){var a,s=null!==(a=e.customMessages[n])&&void 0!==a?a:i.message,o=rt(e,i,n),l=at(e,i,n,s),u=l.userTargets,c=l.userMessage,d=Se(Se(Se(Se({},r||{}),{_field_:e.name,_value_:t,_rule_:n}),o),u);return{msg:function(){return st(c||Te().defaultMessage,e.name,d)},rule:n}}function rt(e,t,i){var n=t.params;if(!n)return{};var r=n.filter((function(e){return e.isTarget})).length;if(r<=0)return{};var a={},s=e.rules[i];!Array.isArray(s)&&Z(s)&&(s=n.map((function(e){return s[e.name]})));for(var o=0;o<n.length;o++){var l=n[o],u=s[o];if(T(u)){u=u.__locatorRef;var c=e.names[u]||u;a[l.name]=c,a["_"+l.name+"_"]=e.crossTable[u]}}return a}function at(e,t,i,n){var r={},a=e.rules[i],s=t.params||[];return a?(Object.keys(a).forEach((function(t,i){var n=a[t];if(!T(n))return{};var o=s[i];if(!o)return{};var l=n.__locatorRef;r[o.name]=e.names[l]||l,r["_"+o.name+"_"]=e.crossTable[l]})),{userTargets:r,userMessage:n}):{}}function st(e,t,i){return"function"==typeof e?e(t,i):U(e,Se(Se({},i),{_field_:t}))}function ot(e,t){if(Array.isArray(e))return e.map((function(e){var i="string"==typeof e&&"@"===e[0]?e.slice(1):e;return i in t?t[i]:e}));var i={},n=function(e){return T(e)?e(t):e};return Object.keys(e).forEach((function(t){i[t]=n(e[t])})),i}var lt=function e(t,i){if(t===i)return!0;if(t&&i&&"object"==typeof t&&"object"==typeof i){if(t.constructor!==i.constructor)return!1;var n,r,a;if(Array.isArray(t)){if((n=t.length)!=i.length)return!1;for(r=n;0!=r--;)if(!e(t[r],i[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===i.source&&t.flags===i.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===i.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===i.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(i).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(i,a[r]))return!1;for(r=n;0!=r--;){var s=a[r];if(!e(t[s],i[s]))return!1}return!0}return t!=t&&i!=i},ut=function(e){return!!(e&&("undefined"!=typeof Event&&R(Event)&&e instanceof Event||e&&e.srcElement))};function ct(e){var t,i;if(!ut(e))return e;var n=e.target;if("file"===n.type&&n.files)return q(n.files);if(null===(t=n._vModifiers)||void 0===t?void 0:t.number){var r=parseFloat(n.value);return C(r)?n.value:r}return(null===(i=n._vModifiers)||void 0===i?void 0:i.trim)&&"string"==typeof n.value?n.value.trim():n.value}var dt=function(e){var t,i=(null===(t=e.data)||void 0===t?void 0:t.attrs)||e.elm;return!("input"!==e.tag||i&&i.type)||"textarea"===e.tag||j(["text","password","search","email","tel","url","number"],null==i?void 0:i.type)};function pt(e){if(e.data){var t=e.data;if("model"in t)return t.model;if(e.data.directives)return E(e.data.directives,(function(e){return"model"===e.name}))}}function ft(e){var t,i,n=pt(e);if(n)return{value:n.value};var r=ht(e),a=(null==r?void 0:r.prop)||"value";return(null===(t=e.componentOptions)||void 0===t?void 0:t.propsData)&&a in e.componentOptions.propsData?{value:e.componentOptions.propsData[a]}:(null===(i=e.data)||void 0===i?void 0:i.domProps)&&"value"in e.data.domProps?{value:e.data.domProps.value}:void 0}function vt(e){return Array.isArray(e)?e:Array.isArray(e.children)?e.children:e.componentOptions&&Array.isArray(e.componentOptions.children)?e.componentOptions.children:[]}function mt(e){return Array.isArray(e)||void 0===ft(e)?vt(e).reduce((function(e,t){var i=mt(t);return i.length&&e.push.apply(e,i),e}),[]):[e]}function ht(e){return e.componentOptions?e.componentOptions.Ctor.options.model:null}function gt(e,t,i){if(O(e[t]))e[t]=[i];else{if(R(e[t])&&e[t].fns){var n=e[t];return n.fns=Array.isArray(n.fns)?n.fns:[n.fns],void(j(n.fns,i)||n.fns.push(i))}if(R(e[t])){var r=e[t];e[t]=[r]}Array.isArray(e[t])&&!j(e[t],i)&&e[t].push(i)}}function _t(e,t,i){e.data||(e.data={}),O(e.data.on)&&(e.data.on={}),gt(e.data.on,t,i)}function bt(e,t,i){e.componentOptions&&(e.componentOptions.listeners||(e.componentOptions.listeners={}),gt(e.componentOptions.listeners,t,i))}function yt(e,t,i){e.componentOptions?bt(e,t,i):_t(e,t,i)}function xt(e,t){var i;return e.componentOptions?(ht(e)||{event:"input"}).event:(null===(i=null==t?void 0:t.modifiers)||void 0===i?void 0:i.lazy)?"change":dt(e)?"input":"change"}function $t(e){return j(["input","select","textarea"],e.tag)}function At(e,t){var i=[];return Object.keys(e).reduce((function(i,n){return e[n].forEach((function(i){i.context||(e[n].context=t,i.data||(i.data={}),i.data.slot=n)})),i.concat(e[n])}),i)}function wt(e){var t,i=null===(t=e.data)||void 0===t?void 0:t.attrs,n={};return i?("email"===i.type&&Me.getRuleDefinition("email")&&(n.email=["multiple"in i]),i.pattern&&Me.getRuleDefinition("regex")&&(n.regex=i.pattern),i.maxlength>=0&&Me.getRuleDefinition("max")&&(n.max=i.maxlength),i.minlength>=0&&Me.getRuleDefinition("min")&&(n.min=i.minlength),"number"===i.type&&(z(i.min)&&Me.getRuleDefinition("min_value")&&(n.min_value=Number(i.min)),z(i.max)&&Me.getRuleDefinition("max_value")&&(n.max_value=Number(i.max))),n):n}function kt(e){var t,i=["input","select","textarea"],n=null===(t=e.data)||void 0===t?void 0:t.attrs;if(!j(i,e.tag)||!n)return{};var r={};return"required"in n&&!1!==n.required&&Me.getRuleDefinition("required")&&(r.required="checkbox"!==n.type||[!0]),dt(e)?Ke(Se(Se({},r),wt(e))):Ke(r)}function Ct(e,t){return e.$scopedSlots.default?e.$scopedSlots.default(t)||[]:e.$slots.default||[]}function Ot(e,t){return!(e._ignoreImmediate||!e.immediate)||!(F(e.value,t)||!e.normalizedEvents.length)||!!e._needsValidation||!e.initialized&&void 0===t}function St(e){return Se(Se({},e.flags),{errors:e.errors,classes:e.classes,failedRules:e.failedRules,reset:function(){return e.reset()},validate:function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return e.validate.apply(e,t)},ariaInput:{"aria-invalid":e.flags.invalid?"true":"false","aria-required":e.isRequired?"true":"false","aria-errormessage":"vee_"+e.id},ariaMsg:{id:"vee_"+e.id,"aria-live":e.errors.length?"assertive":"off"}})}function Zt(e,t){e.initialized||(e.initialValue=t);var i=Ot(e,t);if(e._needsValidation=!1,e.value=t,e._ignoreImmediate=!0,i){var n=function(){if(e.immediate||e.flags.validated)return zt(e);e.validateSilent()};e.initialized?n():e.$once("hook:mounted",(function(){return n()}))}}function Ft(e){return(R(e.mode)?e.mode:We[e.mode])(e)}function zt(e){var t=e.validateSilent();return e._pendingValidation=t,t.then((function(i){return t===e._pendingValidation&&(e.applyResult(i),e._pendingValidation=void 0),i}))}function Rt(e){e.$veeOnInput||(e.$veeOnInput=function(t){e.syncValue(t),e.setFlags({dirty:!0,pristine:!1})});var t=e.$veeOnInput;e.$veeOnBlur||(e.$veeOnBlur=function(){e.setFlags({touched:!0,untouched:!1})});var i=e.$veeOnBlur,n=e.$veeHandler,r=Ft(e);return n&&e.$veeDebounce===e.debounce||(n=M((function(){e.$nextTick((function(){e._pendingReset||zt(e),e._pendingReset=!1}))}),r.debounce||e.debounce),e.$veeHandler=n,e.$veeDebounce=e.debounce),{onInput:t,onBlur:i,onValidate:n}}function Tt(e,t){var i=ft(t);e._inputEventName=e._inputEventName||xt(t,pt(t)),Zt(e,null==i?void 0:i.value);var n=Rt(e),r=n.onInput,a=n.onBlur,s=n.onValidate;yt(t,e._inputEventName,r),yt(t,"blur",a),e.normalizedEvents.forEach((function(e){yt(t,e,s)})),e.initialized=!0}var It=0;function Et(){var e="";return{errors:[],value:void 0,initialized:!1,initialValue:void 0,flags:V(),failedRules:{},isActive:!0,fieldName:e,id:""}}var jt=n.default.extend({name:"ValidationProvider",inject:{$_veeObserver:{from:"$_veeObserver",default:function(){return this.$vnode.context.$_veeObserver||(this.$vnode.context.$_veeObserver=Vt()),this.$vnode.context.$_veeObserver}}},props:{vid:{type:String,default:""},name:{type:String,default:null},mode:{type:[String,Function],default:function(){return Te().mode}},rules:{type:[Object,String],default:null},immediate:{type:Boolean,default:!1},bails:{type:Boolean,default:function(){return Te().bails}},skipIfEmpty:{type:Boolean,default:function(){return Te().skipOptional}},debounce:{type:Number,default:0},tag:{type:String,default:"span"},slim:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},customMessages:{type:Object,default:function(){return{}}},detectInput:{type:Boolean,default:!0}},watch:{rules:{deep:!0,handler:function(e,t){this._needsValidation=!lt(e,t)}}},data:Et,computed:{fieldDeps:function(){var e=this;return Object.keys(this.normalizedRules).reduce((function(t,i){var n=Qe(e.normalizedRules[i]).map((function(e){return T(e)?e.__locatorRef:e.slice(1)}));return t.push.apply(t,n),n.forEach((function(t){Nt(e,t)})),t}),[])},normalizedEvents:function(){var e=this;return(Ft(this).on||[]).map((function(t){return"input"===t?e._inputEventName:t}))},isRequired:function(){var e=Se(Se({},this._resolvedRules),this.normalizedRules),t=Object.keys(e).some(Me.isRequireRule);return this.flags.required=!!t,t},classes:function(){return qt(Te().classes,this.flags)},normalizedRules:function(){return Ke(this.rules)}},mounted:function(){var e=this,t=function(){if(e.flags.validated){var t=e._regenerateMap;if(t){var i=[],n={};return Object.keys(t).forEach((function(e){var r=t[e]();i.push(r),n[e]=r})),void e.applyResult({errors:i,failedRules:n,regenerateMap:t})}e.validate()}};je.$on("change:locale",t),this.$on("hook:beforeDestroy",(function(){je.$off("change:locale",t)}))},render:function(e){var t=this;this.registerField();var i=Ct(this,St(this));if(this.detectInput){var n=mt(i);n.length&&n.forEach((function(e,i){var n,r,a,s,o,l;if(j(["checkbox","radio"],null===(r=null===(n=e.data)||void 0===n?void 0:n.attrs)||void 0===r?void 0:r.type)||!(i>0)){var u=Te().useConstraintAttrs?kt(e):{};lt(t._resolvedRules,u)||(t._needsValidation=!0),$t(e)&&(t.fieldName=(null===(s=null===(a=e.data)||void 0===a?void 0:a.attrs)||void 0===s?void 0:s.name)||(null===(l=null===(o=e.data)||void 0===o?void 0:o.attrs)||void 0===l?void 0:l.id)),t._resolvedRules=u,Tt(t,e)}}))}return this.slim&&i.length<=1?i[0]:e(this.tag,i)},beforeDestroy:function(){this.$_veeObserver.unobserve(this.id)},activated:function(){this.isActive=!0},deactivated:function(){this.isActive=!1},methods:{setFlags:function(e){var t=this;Object.keys(e).forEach((function(i){t.flags[i]=e[i]}))},syncValue:function(e){var t=ct(e);this.value=t,this.flags.changed=!lt(this.initialValue,t)},reset:function(){var e=this;this.errors=[],this.initialValue=this.value;var t=V();t.required=this.isRequired,this.setFlags(t),this.failedRules={},this.validateSilent(),this._pendingValidation=void 0,this._pendingReset=!0,setTimeout((function(){e._pendingReset=!1}),this.debounce)},validate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ze(this,void 0,void 0,(function(){return Fe(this,(function(t){return e.length>0&&this.syncValue(e[0]),[2,zt(this)]}))}))},validateSilent:function(){return Ze(this,void 0,void 0,(function(){var e,t;return Fe(this,(function(i){switch(i.label){case 0:return this.setFlags({pending:!0}),e=Se(Se({},this._resolvedRules),this.normalizedRules),Object.defineProperty(e,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),[4,Xe(this.value,e,Se(Se({name:this.name||this.fieldName},Lt(this)),{bails:this.bails,skipIfEmpty:this.skipIfEmpty,isInitial:!this.initialized,customMessages:this.customMessages}))];case 1:return t=i.sent(),this.setFlags({pending:!1,valid:t.valid,invalid:!t.valid}),void 0!==t.required&&this.setFlags({required:t.required}),[2,t]}}))}))},setErrors:function(e){this.applyResult({errors:e,failedRules:{}})},applyResult:function(e){var t=e.errors,i=e.failedRules,n=e.regenerateMap;this.errors=t,this._regenerateMap=n,this.failedRules=Se({},i||{}),this.setFlags({valid:!t.length,passed:!t.length,invalid:!!t.length,failed:!!t.length,validated:!0,changed:!lt(this.value,this.initialValue)})},registerField:function(){Dt(this)},checkComputesRequiredState:function(){var e=Se(Se({},this._resolvedRules),this.normalizedRules);return Object.keys(e).some(Me.isRequireRule)}}});function qt(e,t){for(var i={},n=Object.keys(t),r=n.length,a=function(r){var a=n[r],s=e&&e[a]||a,o=t[a];return O(o)?"continue":"valid"!==a&&"invalid"!==a||t.validated?void("string"==typeof s?i[s]=o:Array.isArray(s)&&s.forEach((function(e){i[e]=o}))):"continue"},s=0;s<r;s++)a(s);return i}function Lt(e){var t=e.$_veeObserver.refs,i={names:{},values:{}};return e.fieldDeps.reduce((function(e,i){return t[i]?(e.values[i]=t[i].value,e.names[i]=t[i].name,e):e}),i)}function Pt(e){return e.vid?e.vid:e.name?e.name:e.id?e.id:e.fieldName?e.fieldName:"_vee_"+ ++It}function Dt(e){var t=Pt(e),i=e.id;!e.isActive||i===t&&e.$_veeObserver.refs[i]||(i!==t&&e.$_veeObserver.refs[i]===e&&e.$_veeObserver.unobserve(i),e.id=t,e.$_veeObserver.observe(e))}function Vt(){return{refs:{},observe:function(e){this.refs[e.id]=e},unobserve:function(e){delete this.refs[e]}}}function Nt(e,t,i){void 0===i&&(i=!0);var n=e.$_veeObserver.refs;if(e._veeWatchers||(e._veeWatchers={}),!n[t]&&i)return e.$once("hook:mounted",(function(){Nt(e,t,!1)}));!R(e._veeWatchers[t])&&n[t]&&(e._veeWatchers[t]=n[t].$watch("value",(function(){var t=e.checkComputesRequiredState();e.flags.validated&&(e._needsValidation=!0,e.validate()),t&&!e.flags.validated&&e.validateSilent()})))}var Mt=[["pristine","every"],["dirty","some"],["touched","some"],["untouched","every"],["valid","every"],["invalid","some"],["pending","some"],["validated","every"],["changed","some"],["passed","every"],["failed","some"]],Bt=0;function Ut(){return{id:"",refs:{},observers:[],errors:{},flags:Jt(),fields:{}}}function Wt(){return{$_veeObserver:this}}var Ht=n.default.extend({name:"ValidationObserver",provide:Wt,inject:{$_veeObserver:{from:"$_veeObserver",default:function(){return this.$vnode.context.$_veeObserver?this.$vnode.context.$_veeObserver:null}}},props:{tag:{type:String,default:"span"},vid:{type:String,default:function(){return"obs_"+Bt++}},slim:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:Ut,created:function(){var e=this;this.id=this.vid,Gt(this);var t=M((function(t){var i=t.errors,n=t.flags,r=t.fields;e.errors=i,e.flags=n,e.fields=r}),16);this.$watch(Qt,t)},activated:function(){Gt(this)},deactivated:function(){Kt(this)},beforeDestroy:function(){Kt(this)},render:function(e){var t=Ct(this,Yt(this));return this.slim&&t.length<=1?t[0]:e(this.tag,{on:this.$listeners},t)},methods:{observe:function(e,t){var i;void 0===t&&(t="provider"),"observer"!==t?this.refs=Se(Se({},this.refs),((i={})[e.id]=e,i)):this.observers.push(e)},unobserve:function(e,t){if(void 0===t&&(t="provider"),"provider"!==t){var i=I(this.observers,(function(t){return t.id===e}));-1!==i&&this.observers.splice(i,1)}else{if(!this.refs[e])return;this.$delete(this.refs,e)}},validateWithInfo:function(e){var t=(void 0===e?{}:e).silent,i=void 0!==t&&t;return Ze(this,void 0,void 0,(function(){var e,t,n,r,a,s;return Fe(this,(function(o){switch(o.label){case 0:return[4,Promise.all(ze(P(this.refs).filter((function(e){return!e.disabled})).map((function(e){return e[i?"validateSilent":"validate"]().then((function(e){return e.valid}))})),this.observers.filter((function(e){return!e.disabled})).map((function(e){return e.validate({silent:i})}))))];case 1:return e=o.sent(),t=e.every((function(e){return e})),n=Qt.call(this),r=n.errors,a=n.flags,s=n.fields,this.errors=r,this.flags=a,this.fields=s,[2,{errors:r,flags:a,fields:s,isValid:t}]}}))}))},validate:function(e){var t=(void 0===e?{}:e).silent,i=void 0!==t&&t;return Ze(this,void 0,void 0,(function(){return Fe(this,(function(e){switch(e.label){case 0:return[4,this.validateWithInfo({silent:i})];case 1:return[2,e.sent().isValid]}}))}))},handleSubmit:function(e){return Ze(this,void 0,void 0,(function(){return Fe(this,(function(t){switch(t.label){case 0:return[4,this.validate()];case 1:return t.sent()&&e?[2,e()]:[2]}}))}))},reset:function(){return ze(P(this.refs),this.observers).forEach((function(e){return e.reset()}))},setErrors:function(e){var t=this;Object.keys(e).forEach((function(i){var n=t.refs[i];if(n){var r=e[i]||[];r="string"==typeof r?[r]:r,n.setErrors(r)}})),this.observers.forEach((function(t){t.setErrors(e)}))}}});function Kt(e){e.$_veeObserver&&e.$_veeObserver.unobserve(e.id,"observer")}function Gt(e){e.$_veeObserver&&e.$_veeObserver.observe(e,"observer")}function Yt(e){return Se(Se({},e.flags),{errors:e.errors,fields:e.fields,validate:e.validate,validateWithInfo:e.validateWithInfo,passes:e.handleSubmit,handleSubmit:e.handleSubmit,reset:e.reset})}function Jt(){return Se(Se({},V()),{valid:!0,invalid:!1})}function Qt(){for(var e=ze(P(this.refs),this.observers.filter((function(e){return!e.disabled}))),t={},i=Jt(),n={},r=e.length,a=0;a<r;a++){var s=e[a];Array.isArray(s.errors)?(t[s.id]=s.errors,n[s.id]=Se({id:s.id,name:s.name,failedRules:s.failedRules},s.flags)):(t=Se(Se({},t),s.errors),n=Se(Se({},n),s.fields))}return Mt.forEach((function(t){var n=t[0],r=t[1];i[n]=e[r]((function(e){return e.flags[n]}))})),{errors:t,flags:i,fields:n}}function Xt(e,t){var i;void 0===t&&(t=N);var n="options"in e?e.options:e,r=jt.options,a={name:(n.name||"AnonymousHoc")+"WithValidation",props:Se({},r.props),data:r.data,computed:Se({},r.computed),methods:Se({},r.methods),beforeDestroy:r.beforeDestroy,inject:r.inject},s=(null===(i=null==n?void 0:n.model)||void 0===i?void 0:i.event)||"input";return a.render=function(e){var i;this.registerField();var r=St(this),a=Se({},this.$listeners),o=pt(this.$vnode);this._inputEventName=this._inputEventName||xt(this.$vnode,o);var l=ft(this.$vnode);Zt(this,null==l?void 0:l.value);var u=Rt(this),c=u.onInput,d=u.onBlur,p=u.onValidate;gt(a,s,c),gt(a,"blur",d),this.normalizedEvents.forEach((function(e){gt(a,e,p)}));var f=(ht(this.$vnode)||{prop:"value"}).prop,v=Se(Se(Se({},this.$attrs),((i={})[f]=null==o?void 0:o.value,i)),t(r));return e(n,{attrs:this.$attrs,props:v,on:a,scopedSlots:this.$scopedSlots},At(this.$slots,this.$vnode.context))},a}var ei="3.4.14";Object.keys(Oe).map((function(e){return{schema:Oe[e],name:e}})).forEach((function(e){Be(e.name,e.schema)})),De("en",r),e.Rules=Oe,e.ValidationObserver=Ht,e.ValidationProvider=jt,e.configure=Ee,e.extend=Be,e.localeChanged=qe,e.localize=De,e.normalizeRules=Ke,e.setInteractionMode=He,e.validate=Xe,e.version=ei,e.withValidation=Xt,Object.defineProperty(e,"__esModule",{value:!0})}(t,i(538))},2465:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});const n={name:"AppInputButton",props:["description","isLast","title","error"]};const r=(0,i(1900).Z)(n,(function(){var e=this,t=e._self._c;return t("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":!e.isLast}},[t("div",{staticClass:"leading-5"},[t("label",{staticClass:"mb-1.5 block text-sm font-bold text-gray-700 dark:text-gray-200"},[e._v(" "+e._s(e.title)+": ")]),e._v(" "),e.description?t("span",{staticClass:"block text-xs leading-4 dark:text-gray-500 text-gray-500",domProps:{innerHTML:e._s(e.description)}}):e._e(),e._v(" "),e.error?t("span",{staticClass:"text-left text-xs text-red-600"},[e._v("\n "+e._s(e.error)+"\n ")]):e._e()]),e._v(" "),t("div",[e._t("default")],2)])}),[],!1,null,null,null).exports},944:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});const n={name:"AppInputSwitch",props:["description","isLast","title","error"]};const r=(0,i(1900).Z)(n,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex w-full items-center justify-between space-x-2 sm:space-x-8",class:{"mb-6 sm:mb-7":!e.isLast}},[t("div",{staticClass:"leading-5"},[t("label",{staticClass:"mb-1.5 block text-sm font-bold text-gray-700 dark:text-gray-200"},[e._v(" "+e._s(e.title)+": ")]),e._v(" "),e.description?t("span",{staticClass:"block text-xs leading-4 dark:text-gray-500 text-gray-500",domProps:{innerHTML:e._s(e.description)}}):e._e(),e._v(" "),e.error?t("span",{staticClass:"pt-2 text-xs dark:text-rose-600 text-rose-600"},[e._v("\n "+e._s(e.error)+"\n ")]):e._e()]),e._v(" "),t("div",[e._t("default")],2)])}),[],!1,null,null,null).exports},1157:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});const n={name:"AppInputText",props:["description","isLast","title","error"]};const r=(0,i(1900).Z)(n,(function(){var e=this,t=e._self._c;return t("div",{class:{"mb-6 sm:mb-7":!e.isLast}},[e.title?t("label",{staticClass:"mb-1.5 block text-sm font-bold text-gray-700 dark:text-gray-200"},[e._v("\n "+e._s(e.title)+":\n ")]):e._e(),e._v(" "),e._t("default"),e._v(" "),e.error?t("span",{staticClass:"pt-2 text-xs dark:text-rose-600 text-rose-600"},[e._v("\n "+e._s(e.error)+"\n ")]):e._e(),e._v(" "),e.description?t("small",{staticClass:"block pt-2 text-xs leading-4 dark:text-gray-500 text-gray-500",domProps:{innerHTML:e._s(e.description)}}):e._e()],2)}),[],!1,null,null,null).exports},1051:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(9101),r=i(6486);const a={name:"SelectInput",props:["placeholder","options","isError","default"],components:{Edit2Icon:n.me4,UserIcon:n.tBG,ChevronDownIcon:n.v4q},watch:{query:(0,r.debounce)((function(e){this.searchedResults=(0,r.omitBy)(this.options,(function(t){return!t.label.toLowerCase().includes(e.toLowerCase())}))}),200)},computed:{isSearching:function(){return this.searchedResults&&""!==this.query},optionList:function(){return this.isSearching?this.searchedResults:this.options}},data:function(){return{searchedResults:void 0,selected:void 0,isOpen:!1,query:""}},methods:{selectOption:function(e){this.$emit("input",e.value),this.$emit("change",e.value),this.selected=e,this.isOpen=!1},openMenu:function(){var e=this;this.isOpen=!this.isOpen,this.$refs.search&&this.isOpen&&this.$nextTick((function(){return e.$refs.search.focus()}))}},created:function(){var e=this;this.default&&(this.selected=this.options.find((function(t){return t.value===e.default})))}};var s=i(3379),o=i.n(s),l=i(3711),u={insert:"head",singleton:!1};o()(l.Z,u);l.Z.locals;const c=(0,i(1900).Z)(a,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"select"},[t("div",{staticClass:"input-area rounded-lg bg-light-background dark:bg-2x-dark-foreground",class:{"is-active":e.isOpen,"!border-rose-600":e.isError},on:{click:e.openMenu}},[e.selected?t("div",{staticClass:"selected flex w-full items-center"},[e.selected.icon?t("div",{staticClass:"option-icon"},["user"===e.selected.icon?t("user-icon",{staticClass:"vue-feather text-theme",attrs:{size:"14"}}):e._e(),e._v(" "),"user-edit"===e.selected.icon?t("edit2-icon",{staticClass:"vue-feather text-theme",attrs:{size:"14"}}):e._e()],1):e._e(),e._v(" "),t("span",{staticClass:"option-value inline-block w-full overflow-hidden text-ellipsis whitespace-nowrap pl-2"},[e._v("\n "+e._s(e.selected.label)+"\n ")])]):e._e(),e._v(" "),e.selected?e._e():t("div",{staticClass:"not-selected"},[t("span",{staticClass:"option-value placehoder"},[e._v(e._s(e.placeholder))])]),e._v(" "),t("chevron-down-icon",{staticClass:"chevron",attrs:{size:"19"}})],1),e._v(" "),t("transition",{attrs:{name:"slide-in"}},[e.isOpen?t("div",{staticClass:"input-options rounded-lg"},[e.options.length>5?t("div",{staticClass:"select-search"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"search",staticClass:"search-input focus-border-theme rounded-lg",attrs:{type:"text",placeholder:e.$te("search_in_list")?e.$t("search_in_list"):"Search in list..."},domProps:{value:e.query},on:{input:function(t){t.target.composing||(e.query=t.target.value)}}})]):e._e(),e._v(" "),t("ul",{staticClass:"option-list"},e._l(e.optionList,(function(i,n){return t("li",{key:n,staticClass:"option-item",on:{click:function(t){return e.selectOption(i)}}},[i.icon?t("div",{staticClass:"option-icon"},["user"===i.icon?t("user-icon",{attrs:{size:"14"}}):e._e(),e._v(" "),"user-edit"===i.icon?t("edit2-icon",{attrs:{size:"14"}}):e._e()],1):e._e(),e._v(" "),t("span",{staticClass:"option-value"},[e._v("\n\t\t\t\t\t\t\t"+e._s(e.$t(i.label))+"\n\t\t\t\t\t\t")])])})),0)]):e._e()])],1)}),[],!1,null,"6cd58048",null).exports},7400:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});const n={name:"SwitchInput",props:["label","name","state","info","input","isDisabled"],data:function(){return{isSwitched:void 0}},methods:{changeState:function(){this.isDisabled||(this.isSwitched=!this.isSwitched,this.$emit("input",this.isSwitched))}},mounted:function(){this.isSwitched=this.state}};var r=i(3379),a=i.n(r),s=i(4134),o={insert:"head",singleton:!1};a()(s.Z,o);s.Z.locals;const l=(0,i(1900).Z)(n,(function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"switch-content"},[e.label?t("label",{staticClass:"input-label"},[e._v(" "+e._s(e.label)+": ")]):e._e(),e._v(" "),e.info?t("small",{staticClass:"input-info"},[e._v("\n "+e._s(e.info)+"\n ")]):e._e()]),e._v(" "),t("div",{staticClass:"switch-content text-right"},[t("div",{staticClass:"switch",class:{active:e.state},on:{click:e.changeState}},[t("div",{staticClass:"switch-button"})])])])}),[],!1,null,"1e835bde",null).exports},6345:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});const n={name:"PageTab",props:["isLoading"],components:{Spinner:i(3592).Z}};const r=(0,i(1900).Z)(n,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"page-tab"},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.isLoading,expression:"isLoading"}],attrs:{id:"loader"}},[t("Spinner")],1),e._v(" "),e._t("default")],2)}),[],!1,null,null,null).exports},9244:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(9101);const r={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 a=(0,i(1900).Z)(r,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"mb-8 flex items-center"},[e.icon?e._e():t("edit-2-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}),e._v(" "),"frown"===e.icon?t("frown-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):e._e(),e._v(" "),"list"===e.icon?t("list-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):e._e(),e._v(" "),"info"===e.icon?t("info-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):e._e(),e._v(" "),"database"===e.icon?t("database-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):e._e(),e._v(" "),"file-text"===e.icon?t("file-text-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):e._e(),e._v(" "),"dollar"===e.icon?t("dollar-sign-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):e._e(),e._v(" "),"credit-card"===e.icon?t("credit-card-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):e._e(),e._v(" "),"bar-chart"===e.icon?t("bar-chart-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):e._e(),e._v(" "),"settings"===e.icon?t("settings-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):e._e(),e._v(" "),"hard-drive"===e.icon?t("hard-drive-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):e._e(),e._v(" "),"mail"===e.icon?t("mail-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):e._e(),e._v(" "),"smartphone"===e.icon?t("smartphone-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):e._e(),e._v(" "),"shield"===e.icon?t("shield-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):e._e(),e._v(" "),"bell"===e.icon?t("bell-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):e._e(),e._v(" "),"key"===e.icon?t("key-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):e._e(),e._v(" "),"users"===e.icon?t("users-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):e._e(),e._v(" "),"wifi"===e.icon?t("wifi-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):e._e(),e._v(" "),"trending-up"===e.icon?t("trending-up-icon",{staticClass:"vue-feather text-theme dark-text-theme mr-3",attrs:{size:"22"}}):e._e(),e._v(" "),t("b",{staticClass:"text-md font-bold dark:text-gray-200 sm:text-lg"},[e._t("default")],2)],1)}),[],!1,null,null,null).exports},1638:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>A});var n=i(4687),r=i.n(n),a=i(9101),s=i(9495),o=i(7400),l=i(2465),u=i(944),c=i(9244),d=i(4789),p=i(1157),f=i(6345),v=i(4479),m=i(5399),h=i(629),g=i(9669),_=i.n(g);function b(e,t,i,n,r,a,s){try{var o=e[a](s),l=o.value}catch(e){return void i(e)}o.done?t(l):Promise.resolve(l).then(n,r)}function y(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function x(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const $={name:"AppOthers",components:{SelectInput:i(1051).Z,AppInputButton:l.Z,ValidationObserver:s.ValidationObserver,ValidationProvider:s.ValidationProvider,AppInputSwitch:u.Z,AppInputText:p.Z,SwitchInput:o.Z,ButtonBase:d.Z,Edit2Icon:a.me4,FormLabel:c.Z,required:v.C1,PageTab:f.Z},computed:function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?y(Object(i),!0).forEach((function(t){x(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):y(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},(0,h.Se)(["subscriptionTypes","config"])),data:function(){return{isLoading:!0,isLoadingUpgradingButton:!1,isFlushingCache:!1,app:void 0,purchaseCode:void 0,recaptcha:{allowedService:!1,isVisibleCredentialsForm:!1,credentials:{key:void 0,secret:void 0}}}},methods:{subscriptionTypeChange:function(e){m.U.$emit("confirm:open",{title:this.$t("subscription_type_change_warn"),message:this.$t("subscription_type_change_warn_description"),action:{type:e,operation:"change-subscription-type"}})},storeCredentials:function(e){var t,i=this;return(t=r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.$refs.credentialsForm.validate();case 2:if(t.sent){t.next=5;break}return t.abrupt("return");case 5:i.isLoading=!0,_().post("/api/admin/settings/social-service",{client_id:i[e].credentials.client_id,client_secret:i[e].credentials.client_secret,service:e}).then((function(){i.$store.commit("SET_SOCIAL_LOGIN_CONFIGURED",e),i[e].allowedService=!0,i[e].isVisibleCredentialsForm=!1,m.U.$emit("toaster",{type:"success",message:i.$t("toaster.credentials_set",{service:e})})})).catch((function(e){500===e.response.status&&(i.isError=!0,i.errorMessage=e.response.data.message)})).finally((function(){return i.isLoading=!1}));case 7:case"end":return t.stop()}}),t)})),function(){var e=this,i=arguments;return new Promise((function(n,r){var a=t.apply(e,i);function s(e){b(a,n,r,s,o,"next",e)}function o(e){b(a,n,r,s,o,"throw",e)}s(void 0)}))})()},flushCache:function(){var e=this;this.isFlushingCache=!0,_().get("/api/admin/settings/flush-cache").then((function(){m.U.$emit("toaster",{type:"success",message:"Your cache was successfully deleted."})})).finally((function(){e.isFlushingCache=!1}))}},mounted:function(){var e=this;this.recaptcha.allowedService=this.config.allowedRecaptcha,_().get("/api/admin/settings",{params:{column:"contact_email|google_analytics|default_max_storage_amount|storage_limitation|mimetypes_blacklist|upload_limit|subscriptionType|chunk_size|default_max_team_member"}}).then((function(t){e.isLoading=!1,e.app={contactMail:t.data.contact_email,googleAnalytics:t.data.google_analytics,defaultStorage:t.data.default_max_storage_amount,storageLimitation:parseInt(t.data.storage_limitation),mimetypesBlacklist:t.data.mimetypes_blacklist,uploadLimit:t.data.upload_limit,subscriptionType:t.data.subscriptionType,chunkSize:t.data.chunk_size,teamsDefaultMembers:t.data.default_max_team_member}}))},created:function(){var e=this;m.U.$on("action:confirmed",(function(t){"change-subscription-type"===t.operation&&(e.$updateText("/admin/settings","subscription_type",t.type),e.$store.commit("REPLACE_CONFIG_VALUE",{key:"subscriptionType",value:t.type}))}))},destroyed:function(){m.U.$off("action:confirmed")}};const A=(0,i(1900).Z)($,(function(){var e=this,t=e._self._c;return t("PageTab",{attrs:{"is-loading":e.isLoading}},[e.app?t("div",{staticClass:"card shadow-card"},[t("FormLabel",{attrs:{icon:"credit-card"}},[e._v("\n "+e._s(e.$t("subscription"))+"\n ")]),e._v(" "),t("AppInputText",{attrs:{description:e.$t("subscription_type_note"),"is-last":!0,title:e.$t("subscription_type")}},[t("SelectInput",{attrs:{default:e.app.subscriptionType,options:e.subscriptionTypes,placeholder:e.$t("select_subscription_type")},on:{change:e.subscriptionTypeChange}})],1)],1):e._e(),e._v(" "),e.app?t("div",{staticClass:"card shadow-card"},[t("FormLabel",[e._v("\n "+e._s(e.$t("upload_settings"))+"\n ")]),e._v(" "),t("AppInputText",{attrs:{description:e.$t("admin_settings.others.upload_limit_help"),title:e.$t("admin_settings.others.upload_limit")}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.app.uploadLimit,expression:"app.uploadLimit"}],staticClass:"focus-border-theme input-dark",attrs:{placeholder:e.$t("admin_settings.others.upload_limit_plac"),min:"0",step:"1",type:"number"},domProps:{value:e.app.uploadLimit},on:{input:[function(t){t.target.composing||e.$set(e.app,"uploadLimit",t.target.value)},function(t){return e.$updateText("/admin/settings","upload_limit",e.app.uploadLimit,!0)}]}})]),e._v(" "),t("AppInputText",{attrs:{description:e.$t("When you upload file on the server, your file will be sliced into many chunks in this size. Small size of the chunk can prevent many limits you can suffer from your server or provider. Default value is 64MB if is not set."),title:e.$t("File Chunk Size (in MB)")}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.app.chunkSize,expression:"app.chunkSize"}],staticClass:"focus-border-theme input-dark",attrs:{placeholder:e.$t("Type the chunk size in MB"),min:"0",step:"1",type:"number"},domProps:{value:e.app.chunkSize},on:{input:[function(t){t.target.composing||e.$set(e.app,"chunkSize",t.target.value)},function(t){return e.$updateText("/admin/settings","chunk_size",e.app.chunkSize,!0)}]}})]),e._v(" "),t("AppInputText",{attrs:{description:e.$t("admin_settings.others.mimetypes_blacklist_help"),"is-last":!0,title:e.$t("admin_settings.others.mimetypes_blacklist")}},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.app.mimetypesBlacklist,expression:"app.mimetypesBlacklist"}],staticClass:"focus-border-theme input-dark",attrs:{placeholder:e.$t("admin_settings.others.mimetypes_blacklist_plac"),rows:"2",type:"text"},domProps:{value:e.app.mimetypesBlacklist},on:{input:[function(t){t.target.composing||e.$set(e.app,"mimetypesBlacklist",t.target.value)},function(t){return e.$updateText("/admin/settings","mimetypes_blacklist",e.app.mimetypesBlacklist,!0)}]}})])],1):e._e(),e._v(" "),e.app?t("div",{staticClass:"card shadow-card"},[t("FormLabel",[e._v("\n "+e._s(e.$t("user_features"))+"\n ")]),e._v(" "),"metered"!==e.config.subscriptionType?t("div",[t("AppInputSwitch",{attrs:{description:e.$t("admin_settings.others.storage_limit_help"),title:e.$t("admin_settings.others.storage_limit")}},[t("SwitchInput",{staticClass:"switch",attrs:{state:e.app.storageLimitation},on:{input:function(t){return e.$updateText("/admin/settings","storage_limitation",e.app.storageLimitation)}},model:{value:e.app.storageLimitation,callback:function(t){e.$set(e.app,"storageLimitation",t)},expression:"app.storageLimitation"}})],1),e._v(" "),e.app.storageLimitation?t("AppInputText",{attrs:{title:e.$t("admin_settings.others.default_storage")}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.app.defaultStorage,expression:"app.defaultStorage"}],staticClass:"focus-border-theme input-dark",attrs:{placeholder:e.$t("admin_settings.others.default_storage_plac"),max:"999999999",min:"1",type:"number"},domProps:{value:e.app.defaultStorage},on:{input:[function(t){t.target.composing||e.$set(e.app,"defaultStorage",t.target.value)},function(t){return e.$updateText("/admin/settings","default_max_storage_amount",e.app.defaultStorage)}]}})]):e._e()],1):e._e(),e._v(" "),t("AppInputText",{attrs:{description:e.$t("zero_for_unlimited_members"),"is-last":!0,title:e.$t("max_team_members")}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.app.teamsDefaultMembers,expression:"app.teamsDefaultMembers"}],staticClass:"focus-border-theme input-dark",attrs:{placeholder:e.$t("admin_settings.others.default_storage_plac"),max:"999999999",min:"1",type:"number"},domProps:{value:e.app.teamsDefaultMembers},on:{input:[function(t){t.target.composing||e.$set(e.app,"teamsDefaultMembers",t.target.value)},function(t){return e.$updateText("/admin/settings","default_max_team_member",e.app.teamsDefaultMembers)}]}})])],1):e._e(),e._v(" "),e.app?t("div",{staticClass:"card shadow-card"},[t("FormLabel",{attrs:{icon:"shield"}},[e._v("\n "+e._s(e.$t("reCaptcha"))+"\n ")]),e._v(" "),t("AppInputSwitch",{attrs:{description:e.$t("allow_recaptcha_note"),"is-last":!e.recaptcha.allowedService,title:e.$t("allow_recaptcha")}},[t("SwitchInput",{staticClass:"switch",attrs:{state:e.recaptcha.allowedService},on:{input:function(t){return e.$updateText("/admin/settings","allowed_recaptcha",e.recaptcha.allowedService)}},model:{value:e.recaptcha.allowedService,callback:function(t){e.$set(e.recaptcha,"allowedService",t)},expression:"recaptcha.allowedService"}})],1),e._v(" "),e.config.isRecaptchaConfigured&&e.recaptcha.allowedService?t("div",{staticClass:"flex cursor-pointer items-center",class:{"mb-4":e.recaptcha.isVisibleCredentialsForm},on:{click:function(t){e.recaptcha.isVisibleCredentialsForm=!e.recaptcha.isVisibleCredentialsForm}}},[t("edit2-icon",{staticClass:"vue-feather text-theme mr-2",attrs:{size:"12"}}),e._v(" "),t("b",{staticClass:"text-xs"},[e._v(e._s(e.$t("update_your_credentials")))])],1):e._e(),e._v(" "),e.config.isRecaptchaConfigured&&!e.recaptcha.isVisibleCredentialsForm||!e.recaptcha.allowedService?e._e():t("ValidationObserver",{ref:"credentialsForm",staticClass:"rounded-xl p-5 shadow-lg",attrs:{tag:"form"},on:{submit:function(t){return t.preventDefault(),e.storeCredentials("recaptcha")}},scopedSlots:e._u([{key:"default",fn:function(i){i.invalid;return[e.config.isRecaptchaConfigured?e._e():t("FormLabel",{attrs:{icon:"shield"}},[e._v("\n "+e._s(e.$t("configure_your_credentials"))+"\n ")]),e._v(" "),t("ValidationProvider",{attrs:{mode:"passive",name:"Site Key",rules:"required",tag:"div"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("AppInputText",{attrs:{error:n[0],title:e.$t("Site Key")}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.recaptcha.credentials.client_id,expression:"recaptcha.credentials.client_id"}],staticClass:"focus-border-theme input-dark",class:{"!border-rose-600":n[0]},attrs:{placeholder:e.$t("Paste your Site Key here"),type:"text"},domProps:{value:e.recaptcha.credentials.client_id},on:{input:function(t){t.target.composing||e.$set(e.recaptcha.credentials,"client_id",t.target.value)}}})])]}}],null,!0)}),e._v(" "),t("ValidationProvider",{attrs:{mode:"passive",name:"Secret key",rules:"required",tag:"div"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("AppInputText",{attrs:{error:n[0],title:e.$t("Secret Key")}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.recaptcha.credentials.client_secret,expression:"recaptcha.credentials.client_secret"}],staticClass:"focus-border-theme input-dark",class:{"!border-rose-600":n[0]},attrs:{placeholder:e.$t("Paste your Secret key here"),type:"text"},domProps:{value:e.recaptcha.credentials.client_secret},on:{input:function(t){t.target.composing||e.$set(e.recaptcha.credentials,"client_secret",t.target.value)}}})])]}}],null,!0)}),e._v(" "),t("ButtonBase",{staticClass:"w-full",attrs:{disabled:e.isLoading,loading:e.isLoading,"button-style":"theme",type:"submit"}},[e._v("\n "+e._s(e.$t("store_credentials"))+"\n ")])]}}],null,!1,2210707905)})],1):e._e(),e._v(" "),e.app?t("div",{staticClass:"card shadow-card"},[t("FormLabel",[e._v("\n "+e._s(e.$t("application"))+"\n ")]),e._v(" "),t("AppInputButton",{attrs:{description:e.$t("cache_note"),title:e.$t("cache")}},[t("ButtonBase",{staticClass:"w-full sm:w-auto",attrs:{disabled:e.isFlushingCache,loading:e.isFlushingCache,"button-style":"theme"},nativeOn:{click:function(t){return e.flushCache.apply(null,arguments)}}},[e._v("\n "+e._s(e.$t("clear_cache"))+"\n ")])],1),e._v(" "),t("AppInputText",{attrs:{title:e.$t("admin_settings.others.contact_email")}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.app.contactMail,expression:"app.contactMail"}],staticClass:"focus-border-theme input-dark",attrs:{placeholder:e.$t("admin_settings.others.contact_email_plac"),type:"email"},domProps:{value:e.app.contactMail},on:{input:[function(t){t.target.composing||e.$set(e.app,"contactMail",t.target.value)},function(t){return e.$updateText("/admin/settings","contact_email",e.app.contactMail)}]}})]),e._v(" "),t("AppInputText",{attrs:{"is-last":!0,title:e.$t("admin_settings.others.google_analytics")}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.app.googleAnalytics,expression:"app.googleAnalytics"}],staticClass:"focus-border-theme input-dark",attrs:{placeholder:e.$t("admin_settings.others.google_analytics_plac"),type:"text"},domProps:{value:e.app.googleAnalytics},on:{input:[function(t){t.target.composing||e.$set(e.app,"googleAnalytics",t.target.value)},function(t){return e.$updateText("/admin/settings","google_analytics",e.app.googleAnalytics,!0)}]}})])],1):e._e()])}),[],!1,null,null,null).exports}}]); |