/*! For license information please see app-setup.js.LICENSE.txt */ (self.webpackChunk=self.webpackChunk||[]).push([[7655],{3711:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(3645),i=r.n(n)()((function(e){return e[1]}));i.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: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=i},4134:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(3645),i=r.n(n)()((function(e){return e[1]}));i.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=i},5408:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(3645),i=r.n(n)()((function(e){return e[1]}));i.push([e.id,".sync-alt[data-v-0c7f3326]{animation:spin-0c7f3326 1s linear infinite}@keyframes spin-0c7f3326{0%{transform:rotate(0)}to{transform:rotate(1turn)}}",""]);const a=i},6355:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(3645),i=r.n(n)()((function(e){return e[1]}));i.push([e.id,".info-box[data-v-783003cd]{background:#f4f5f6;border-radius:10px;margin-bottom:32px;padding:20px;text-align:left}.info-box.error[data-v-783003cd]{background:rgba(253,57,122,.1)}.info-box.error a[data-v-783003cd],.info-box.error p[data-v-783003cd]{color:#fd397a}.info-box.error a[data-v-783003cd]{text-decoration:underline}.info-box p[data-v-783003cd]{font-weight:600;line-height:1.6;word-break:break-word}.info-box p[data-v-783003cd],.info-box p>a[data-v-783003cd],.info-box p>b[data-v-783003cd]{font-size:15px}.info-box a[data-v-783003cd],.info-box b[data-v-783003cd],.info-box p>b[data-v-783003cd]{font-weight:700}.info-box a[data-v-783003cd]{font-size:.9375em;line-height:1.6}.info-box ul[data-v-783003cd]{margin-top:15px}.info-box ul[data-v-783003cd],.info-box ul li[data-v-783003cd],.info-box ul li a[data-v-783003cd]{display:block}@media only screen and (max-width:690px){.info-box[data-v-783003cd]{padding:15px}}.dark .info-box[data-v-783003cd]{background:#1e2024}.dark .info-box.error[data-v-783003cd]{background:rgba(253,57,122,.1)}.dark .info-box.error a[data-v-783003cd],.dark .info-box.error p[data-v-783003cd]{color:#fd397a}.dark .info-box.error a[data-v-783003cd]{text-decoration:underline}.dark .info-box p[data-v-783003cd],.dark .info-box ul li[data-v-783003cd]{color:#bec6cf}",""]);const a=i},4479:(e,t,r)=>{"use strict";r.d(t,{C1:()=>a});function n(e){return null==e}function i(e){return Array.isArray(e)&&0===e.length}var a={validate:function(e,t){var r=(void 0===t?{allowFalse:!0}:t).allowFalse,a={valid:!1,required:!0};return n(e)||i(e)?a:!1!==e||r?(a.valid=!!String(e).trim().length,a):a},params:[{name:"allowFalse",default:!0}],computesRequired:!0}},9495:function(e,t,r){!function(e,t){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=r(t),i={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},o={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},s={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},u={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},l=function(e,t){var r=(void 0===t?{}:t).locale,n=void 0===r?"":r;return Array.isArray(e)?e.every((function(e){return l(e,{locale:n})})):n?(a[n]||a.en).test(e):Object.keys(a).some((function(t){return a[t].test(e)}))},c={validate:l,params:[{name:"locale"}]},d=function(e,t){var r=(void 0===t?{}:t).locale,n=void 0===r?"":r;return Array.isArray(e)?e.every((function(e){return d(e,{locale:n})})):n?(u[n]||u.en).test(e):Object.keys(u).some((function(t){return u[t].test(e)}))},p={validate:d,params:[{name:"locale"}]},f=function(e,t){var r=(void 0===t?{}:t).locale,n=void 0===r?"":r;return Array.isArray(e)?e.every((function(e){return f(e,{locale:n})})):n?(s[n]||s.en).test(e):Object.keys(s).some((function(t){return s[t].test(e)}))},v={validate:f,params:[{name:"locale"}]},h=function(e,t){var r=(void 0===t?{}:t).locale,n=void 0===r?"":r;return Array.isArray(e)?e.every((function(e){return h(e,{locale:n})})):n?(o[n]||o.en).test(e):Object.keys(o).some((function(t){return o[t].test(e)}))},m={validate:h,params:[{name:"locale"}]},g=function(e,t){var r=void 0===t?{}:t,n=r.min,i=r.max;return Array.isArray(e)?e.every((function(e){return!!g(e,{min:n,max:i})})):Number(n)<=e&&Number(i)>=e},b={validate:g,params:[{name:"min"},{name:"max"}]},y={validate:function(e,t){var r=t.target;return String(e)===String(r)},params:[{name:"target",isTarget:!0}]},_=function(e,t){var r=t.length;if(Array.isArray(e))return e.every((function(e){return _(e,{length:r})}));var n=String(e);return/^[0-9]*$/.test(n)&&n.length===r},x={validate:_,params:[{name:"length",cast:function(e){return Number(e)}}]},A=function(e,t,r){var n=window.URL||window.webkitURL;return new Promise((function(i){var a=new Image;a.onerror=function(){return i(!1)},a.onload=function(){return i(a.width===t&&a.height===r)},a.src=n.createObjectURL(e)}))},w={validate:function(e,t){var r=t.width,n=t.height,i=[];e=Array.isArray(e)?e:[e];for(var a=0;a()\[\]\\.,;:\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(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 k(e){return e!=e}function S(e){return null==e}function O(e){return Array.isArray(e)&&0===e.length}var C=function(e){return null!==e&&e&&"object"==typeof e&&!Array.isArray(e)};function Z(e,t){return!(!k(e)||!k(t))||e===t}function I(e){return""!==e&&!S(e)}function E(e){return"function"==typeof e}function j(e){return E(e)&&!!e.__locatorRef}function z(e,t){var r=Array.isArray(e)?e:T(e);if(E(r.findIndex))return r.findIndex(t);for(var n=0;n=0:Array.isArray(e)?e.every((function(e){return ee(e,{length:r})})):String(e).length<=r},te={validate:ee,params:[{name:"length",cast:function(e){return Number(e)}}]},re=function(e,t){var r=t.max;return!S(e)&&""!==e&&(Array.isArray(e)?e.length>0&&e.every((function(e){return re(e,{max:r})})):Number(e)<=r)},ne={validate:re,params:[{name:"max",cast:function(e){return Number(e)}}]},ie={validate:function(e,t){var r=new RegExp(t.join("|").replace("*",".+")+"$","i");return Array.isArray(e)?e.every((function(e){return r.test(e.type)})):r.test(e.type)}},ae=function(e,t){var r=t.length;return!S(e)&&(Array.isArray(e)?e.every((function(e){return ae(e,{length:r})})):String(e).length>=r)},oe={validate:ae,params:[{name:"length",cast:function(e){return Number(e)}}]},se=function(e,t){var r=t.min;return!S(e)&&""!==e&&(Array.isArray(e)?e.length>0&&e.every((function(e){return se(e,{min:r})})):Number(e)>=r)},ue={validate:se,params:[{name:"min",cast:function(e){return Number(e)}}]},le=/^[٠١٢٣٤٥٦٧٨٩]+$/,ce=/^[0-9]+$/,de={validate:function(e){var t=function(e){var t=String(e);return ce.test(t)||le.test(t)};return Array.isArray(e)?e.every(t):t(e)}},pe=function(e,t){var r=t.regex;return Array.isArray(e)?e.every((function(e){return pe(e,{regex:r})})):r.test(String(e))},fe={validate:pe,params:[{name:"regex",cast:function(e){return"string"==typeof e?new RegExp(e):e}}]},ve={validate:function(e,t){var r=(void 0===t?{allowFalse:!0}:t).allowFalse,n={valid:!1,required:!0};return S(e)||O(e)?n:!1!==e||r?(n.valid=!!String(e).trim().length,n):n},params:[{name:"allowFalse",default:!0}],computesRequired:!0},he=function(e){return O(e)||F([!1,null,void 0],e)||!String(e).trim().length},me={validate:function(e,t){var r,n=t.target,i=t.values;return i&&i.length?(Array.isArray(i)||"string"!=typeof i||(i=[i]),r=i.some((function(e){return e==String(n).trim()}))):r=!he(n),r?{valid:!he(e),required:r}:{valid:!0,required:r}},params:[{name:"target",isTarget:!0},{name:"values"}],computesRequired:!0},ge={validate:function(e,t){var r=t.size;if(isNaN(r))return!1;var n=1024*r;if(!Array.isArray(e))return e.size<=n;for(var i=0;in)return!1;return!0},params:[{name:"size",cast:function(e){return Number(e)}}]},be={validate:function(e,t){var r=t||{},n=r.decimals,i=void 0===n?0:n,a=r.separator,o=new RegExp("^-?\\d+"+("comma"===(void 0===a?"dot":a)?",?":"\\.?")+(0===i?"\\d*":"(\\d{"+i+"})?")+"$");return Array.isArray(e)?e.every((function(e){return o.test(String(e))})):o.test(String(e))},params:[{name:"decimals",default:0},{name:"separator",default:"dot"}]},ye=Object.freeze({__proto__:null,alpha_dash:p,alpha_num:v,alpha_spaces:m,alpha:c,between:b,confirmed:y,digits:x,dimensions:w,email:$,ext:U,image:Y,oneOf:W,integer:X,length:Q,is_not:J,is:K,max:te,max_value:ne,mimes:ie,min:oe,min_value:ue,excluded:H,numeric:de,regex:fe,required:ve,required_if:me,size:ge,double:be}),_e=function(){return _e=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=0&&Fe.getRuleDefinition("max")&&(n.max=r.maxlength),r.minlength>=0&&Fe.getRuleDefinition("min")&&(n.min=r.minlength),"number"===r.type&&(I(r.min)&&Fe.getRuleDefinition("min_value")&&(n.min_value=Number(r.min)),I(r.max)&&Fe.getRuleDefinition("max_value")&&(n.max_value=Number(r.max))),n):n}function gt(e){var t,r=["input","select","textarea"],n=null===(t=e.data)||void 0===t?void 0:t.attrs;if(!F(r,e.tag)||!n)return{};var i={};return"required"in n&&!1!==n.required&&Fe.getRuleDefinition("required")&&(i.required="checkbox"!==n.type||[!0]),nt(e)?De(_e(_e({},i),mt(e))):De(i)}function bt(e,t){return e.$scopedSlots.default?e.$scopedSlots.default(t)||[]:e.$slots.default||[]}function yt(e,t){return!(e._ignoreImmediate||!e.immediate)||!(Z(e.value,t)||!e.normalizedEvents.length)||!!e._needsValidation||!e.initialized&&void 0===t}function _t(e){return _e(_e({},e.flags),{errors:e.errors,classes:e.classes,failedRules:e.failedRules,reset:function(){return e.reset()},validate:function(){for(var t=[],r=0;r0)){var l=ke().useConstraintAttrs?gt(e):{};et(t._resolvedRules,l)||(t._needsValidation=!0),vt(e)&&(t.fieldName=(null===(o=null===(a=e.data)||void 0===a?void 0:a.attrs)||void 0===o?void 0:o.name)||(null===(u=null===(s=e.data)||void 0===s?void 0:s.attrs)||void 0===u?void 0:u.id)),t._resolvedRules=l,kt(t,e)}}))}return this.slim&&r.length<=1?r[0]:e(this.tag,r)},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(r){t.flags[r]=e[r]}))},syncValue:function(e){var t=rt(e);this.value=t,this.flags.changed=!et(this.initialValue,t)},reset:function(){var e=this;this.errors=[],this.initialValue=this.value;var t=D();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;t0&&this.syncValue(e[0]),[2,wt(this)]}))}))},validateSilent:function(){return xe(this,void 0,void 0,(function(){var e,t;return Ae(this,(function(r){switch(r.label){case 0:return this.setFlags({pending:!0}),e=_e(_e({},this._resolvedRules),this.normalizedRules),Object.defineProperty(e,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),[4,Ge(this.value,e,_e(_e({name:this.name||this.fieldName},It(this)),{bails:this.bails,skipIfEmpty:this.skipIfEmpty,isInitial:!this.initialized,customMessages:this.customMessages}))];case 1:return t=r.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,r=e.failedRules,n=e.regenerateMap;this.errors=t,this._regenerateMap=n,this.failedRules=_e({},r||{}),this.setFlags({valid:!t.length,passed:!t.length,invalid:!!t.length,failed:!!t.length,validated:!0,changed:!et(this.value,this.initialValue)})},registerField:function(){jt(this)},checkComputesRequiredState:function(){var e=_e(_e({},this._resolvedRules),this.normalizedRules);return Object.keys(e).some(Fe.isRequireRule)}}});function Zt(e,t){for(var r={},n=Object.keys(t),i=n.length,a=function(i){var a=n[i],o=e&&e[a]||a,s=t[a];return S(s)?"continue":"valid"!==a&&"invalid"!==a||t.validated?void("string"==typeof o?r[o]=s:Array.isArray(o)&&o.forEach((function(e){r[e]=s}))):"continue"},o=0;o{"use strict";r.d(t,{Z:()=>i});const n={name:"AppInputSwitch",props:["description","isLast","title","error"]};const i=(0,r(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,r)=>{"use strict";r.d(t,{Z:()=>i});const n={name:"AppInputText",props:["description","isLast","title","error"]};const i=(0,r(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},803:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(9101);const i={name:"ImageInput",props:["image","error"],components:{ImageIcon:n.XBm,XIcon:n.b0D},data:function(){return{imagePreview:void 0}},computed:{isData:function(){return!(void 0===this.imagePreview||""===this.imagePreview)}},methods:{resetImage:function(){this.imagePreview=void 0,this.$emit("input",void 0)},showImagePreview:function(e){var t=this,r=e.target.files[0].name,n=r.substring(r.lastIndexOf(".")+1).toLowerCase();if(["png","jpg","jpeg","svg"].includes(n)){var i=e.target.files[0],a=new FileReader;a.onload=function(){return t.imagePreview=a.result},a.readAsDataURL(i),this.$emit("input",e.target.files[0])}else alert(this.$t("wrong_image_error"))}},created:function(){this.image&&(this.imagePreview=this.image)}};const a=(0,r(1900).Z)(i,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"relative flex h-[175px] items-center justify-center rounded-lg bg-light-background dark:bg-2x-dark-foreground",class:{"is-error":e.error}},[e.imagePreview?t("div",{staticClass:"absolute right-0 top-0 z-[9] flex h-7 w-7 -translate-y-3 translate-x-3 cursor-pointer items-center justify-center rounded-md rounded-full dark:bg-4x-dark-foreground bg-white shadow-lg",on:{click:e.resetImage}},[t("x-icon",{staticClass:"vue-feather dark:text-gray-500",attrs:{size:"14"}})],1):e._e(),e._v(" "),t("input",{ref:"file",staticClass:"absolute top-0 left-0 right-0 bottom-0 z-10 w-full cursor-pointer opacity-0",attrs:{type:"file"},on:{change:function(t){return e.showImagePreview(t)}}}),e._v(" "),e.imagePreview?t("img",{ref:"image",staticClass:"absolute h-full w-full object-contain py-4 px-12",attrs:{src:e.imagePreview}}):e._e(),e._v(" "),e.isData?e._e():t("div",{staticClass:"text-center"},[t("image-icon",{staticClass:"vue-feather text-theme mb-4 inline-block",attrs:{size:"34"}}),e._v(" "),t("b",{staticClass:"block text-base font-bold leading-3"},[e._v("\n "+e._s(e.$te("input_image.title")?e.$t("input_image.title"):"Upload Image")+"\n ")]),e._v(" "),t("small",{staticClass:"text-xs text-gray-500"},[e._v("\n "+e._s(e.$te("input_image.supported")?e.$t("input_image.supported"):"Supported formats are .png, .jpg, .jpeg.")+"\n ")])],1)])}),[],!1,null,null,null).exports},1051:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(9101),i=r(6486);const a={name:"SelectInput",props:["placeholder","options","isError","default"],components:{Edit2Icon:n.me4,UserIcon:n.tBG,ChevronDownIcon:n.v4q},watch:{query:(0,i.debounce)((function(e){this.searchedResults=(0,i.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 o=r(3379),s=r.n(o),u=r(3711),l={insert:"head",singleton:!1};s()(u.Z,l);u.Z.locals;const c=(0,r(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(r,n){return t("li",{key:n,staticClass:"option-item",on:{click:function(t){return e.selectOption(r)}}},[r.icon?t("div",{staticClass:"option-icon"},["user"===r.icon?t("user-icon",{attrs:{size:"14"}}):e._e(),e._v(" "),"user-edit"===r.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(r.label))+"\n\t\t\t\t\t\t")])])})),0)]):e._e()])],1)}),[],!1,null,"6cd58048",null).exports},7400:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});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 i=r(3379),a=r.n(i),o=r(4134),s={insert:"head",singleton:!1};a()(o.Z,s);o.Z.locals;const u=(0,r(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},309:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});const n={name:"AuthContent",props:["visible","name"],data:function(){return{isVisible:!1}},created:function(){this.isVisible=this.visible}};const i=(0,r(1900).Z)(n,(function(){var e=this,t=e._self._c;return e.isVisible?t("div",{staticClass:"w-full max-w-xl text-center m-auto py-6"},[e._t("default")],2):e._e()}),[],!1,null,null,null).exports},8901:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});const n={name:"AuthContentWrapper"};const i=(0,r(1900).Z)(n,(function(){return(0,this._self._c)("div",{staticClass:"flex px-2.5 md:px-6"},[this._t("default")],2)}),[],!1,null,null,null).exports},3627:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(9101);const i={name:"AuthContent",props:["loading","icon","text"],components:{ChevronRightIcon:n.XCv,RefreshCwIcon:n.Iyk},data:function(){return{isVisible:!1}},created:function(){this.isVisible=this.visible}};var a=r(3379),o=r.n(a),s=r(5408),u={insert:"head",singleton:!1};o()(s.Z,u);s.Z.locals;const l=(0,r(1900).Z)(i,(function(){var e=this,t=e._self._c;return t("button",{staticClass:"group mx-auto inline-block flex items-center whitespace-nowrap rounded-lg border-2 border-black px-7 py-2.5 dark:border-gray-300"},[t("span",{staticClass:"pr-1 text-lg font-extrabold"},[e._v("\n "+e._s(e.text)+"\n ")]),e._v(" "),e.loading?t("refresh-cw-icon",{staticClass:"vue-feather text-theme sync-alt -mr-1",attrs:{size:"20"}}):e._e(),e._v(" "),!e.loading&&e.icon?t("chevron-right-icon",{staticClass:"vue-feather text-theme -mr-1",attrs:{size:"20"}}):e._e()],1)}),[],!1,null,"0c7f3326",null).exports},9244:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(9101);const i={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,r(1900).Z)(i,(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},1191:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t{"use strict";r.d(t,{Z:()=>u});const n={name:"InfoBox",props:["type"]};var i=r(3379),a=r.n(i),o=r(6355),s={insert:"head",singleton:!1};a()(o.Z,s);o.Z.locals;const u=(0,r(1900).Z)(n,(function(){var e=this;return(0,e._self._c)("div",{staticClass:"info-box",class:e.type},[e._t("default")],2)}),[],!1,null,"783003cd",null).exports},8378:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w});var n=r(9495),i=r(8901),a=r(1051),o=r(7400),s=r(944),u=r(803),l=r(9244),c=r(1157),d=r(3666),p=r(309),f=r(3627),v=r(9101),h=r(1191),m=r(4479),g=r(9669),b=r.n(g);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function _(){_=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var a=t&&t.prototype instanceof g?t:g,o=Object.create(a.prototype),s=new j(n||[]);return i(o,"_invoke",{value:C(e,r,s)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var p="suspendedStart",f="suspendedYield",v="executing",h="completed",m={};function g(){}function b(){}function x(){}var A={};l(A,o,(function(){return this}));var w=Object.getPrototypeOf,$=w&&w(w(z([])));$&&$!==r&&n.call($,o)&&(A=$);var k=x.prototype=g.prototype=Object.create(A);function S(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(i,a,o,s){var u=d(e[i],e,a);if("throw"!==u.type){var l=u.arg,c=l.value;return c&&"object"==y(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(c).then((function(e){l.value=e,o(l)}),(function(e){return r("throw",e,o,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function C(t,r,n){var i=p;return function(a,o){if(i===v)throw new Error("Generator is already running");if(i===h){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=Z(s,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===p)throw i=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var l=d(t,r,n);if("normal"===l.type){if(i=n.done?h:f,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=h,n.method="throw",n.arg=l.arg)}}}function Z(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,Z(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=d(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function z(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(u&&l){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;E(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:z(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function x(e,t,r,n,i,a,o){try{var s=e[a](o),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}const A={name:"EnvironmentSetup",components:{AppInputText:c.Z,AppInputSwitch:s.Z,AuthContentWrapper:i.Z,ValidationProvider:n.ValidationProvider,ValidationObserver:n.ValidationObserver,SettingsIcon:v.ewm,SelectInput:a.Z,SwitchInput:o.Z,AuthContent:p.Z,ImageInput:u.Z,AuthButton:f.Z,FormLabel:l.Z,required:m.C1,InfoBox:d.Z,Headline:h.Z},data:function(){return{isLoading:!1,app:{color:"#00BC7E",subscriptionType:void 0,title:void 0,description:void 0,logo:void 0,logo_horizontal:void 0,favicon:void 0,og_image:void 0,touch_icon:void 0,contactMail:void 0,googleAnalytics:void 0,defaultStorage:5,teamsDefaultMembers:5,userRegistration:1,storageLimitation:1}}},methods:{appSetupSubmit:function(){var e,t=this;return(e=_().mark((function e(){var r;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$root.$data.config.isSetupWizardDemo&&t.$router.push({name:"AdminAccount"}),e.next=3,t.$refs.appSetup.validate();case 3:if(e.sent){e.next=6;break}return e.abrupt("return");case 6:t.isLoading=!0,(r=new FormData).append("color",t.app.color),r.append("title",t.app.title),r.append("description",t.app.description),r.append("contactMail",t.app.contactMail),r.append("userRegistration",Boolean(t.app.userRegistration)?1:0),r.append("storageLimitation",Boolean(t.app.storageLimitation)?1:0),t.app.subscriptionType&&r.append("subscriptionType",t.app.subscriptionType),t.app.googleAnalytics&&r.append("googleAnalytics",t.app.googleAnalytics),t.app.defaultStorage&&r.append("defaultStorage",t.app.defaultStorage),t.app.teamsDefaultMembers&&r.append("teamsDefaultMembers",t.app.teamsDefaultMembers),t.app.logo&&r.append("logo",t.app.logo),t.app.logo_horizontal&&r.append("logo_horizontal",t.app.logo_horizontal),t.app.og_image&&r.append("og_image",t.app.og_image),t.app.touch_icon&&r.append("touch_icon",t.app.touch_icon),t.app.favicon&&r.append("favicon",t.app.favicon),b().post("/api/setup/app-setup",r,{headers:{"Content-Type":"multipart/form-data"}}).then((function(){t.$router.push({name:"AdminAccount"})})).finally((function(e){t.isLoading=!1}));case 24:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){x(a,n,i,o,s,"next",e)}function s(e){x(a,n,i,o,s,"throw",e)}o(void 0)}))})()}},created:function(){this.$scrollTop(),this.$root.$data.config.isSetupWizardDebug&&(this.app.subscriptionType="metered",this.app.title="VueFileManager",this.app.description="Your private cloud storage software build on Laravel & Vue.js.",this.app.contactMail="howdy@hi5ve.digital",this.app.googleAnalytics="UA-123456789",this.app.defaultStorage="5",this.app.userRegistration=1,this.app.storageLimitation=1,this.app.userVerification=0)}};const w=(0,r(1900).Z)(A,(function(){var e=this,t=e._self._c;return t("AuthContentWrapper",{ref:"auth"},[t("AuthContent",{staticClass:"mt-6 mb-12 !max-w-2xl",attrs:{name:"database-credentials",visible:!0}},[t("Headline",{staticClass:"mx-auto !mb-10 max-w-screen-sm",attrs:{title:"Setup Wizard",description:"Set up your application appearance, analytics, etc."}},[t("settings-icon",{staticClass:"vue-feather text-theme mx-auto mb-3 animate-[spin_5s_linear_infinite]",attrs:{size:"40"}})],1),e._v(" "),t("ValidationObserver",{ref:"appSetup",attrs:{tag:"form"},on:{submit:function(t){return t.preventDefault(),e.appSetupSubmit.apply(null,arguments)}},scopedSlots:e._u([{key:"default",fn:function(r){r.invalid;return[t("div",{staticClass:"card text-left shadow-card"},[t("FormLabel",[e._v("General Settings")]),e._v(" "),t("ValidationProvider",{attrs:{tag:"div",mode:"passive",name:"App Title",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("AppInputText",{attrs:{title:"App Title",error:n[0]}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.app.title,expression:"app.title"}],staticClass:"focus-border-theme input-dark",class:{"!border-rose-600":n[0]},attrs:{placeholder:"Type your app title",type:"text"},domProps:{value:e.app.title},on:{input:function(t){t.target.composing||e.$set(e.app,"title",t.target.value)}}})])]}}],null,!0)}),e._v(" "),t("ValidationProvider",{attrs:{tag:"div",mode:"passive",name:"App Description",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("AppInputText",{attrs:{title:"App Description",error:n[0],"is-last":!0}},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.app.description,expression:"app.description"}],staticClass:"focus-border-theme input-dark",class:{"!border-rose-600":n[0]},attrs:{placeholder:"Type your app description",type:"text"},domProps:{value:e.app.description},on:{input:function(t){t.target.composing||e.$set(e.app,"description",t.target.value)}}})])]}}],null,!0)})],1),e._v(" "),t("div",{staticClass:"card text-left shadow-card"},[t("FormLabel",[e._v("Appearance")]),e._v(" "),t("ValidationProvider",{attrs:{tag:"div",mode:"passive",name:"Theme Color"},scopedSlots:e._u([{key:"default",fn:function(r){r.errors;return[t("AppInputSwitch",{attrs:{title:"Color Theme"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.app.color,expression:"app.color"}],attrs:{type:"color"},domProps:{value:e.app.color},on:{input:function(t){t.target.composing||e.$set(e.app,"color",t.target.value)}}})])]}}],null,!0)}),e._v(" "),t("ValidationProvider",{attrs:{tag:"div",mode:"passive",name:"App Logo"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("AppInputText",{attrs:{title:"App Logo (optional)",error:n[0]}},[t("ImageInput",{attrs:{error:n[0]},model:{value:e.app.logo,callback:function(t){e.$set(e.app,"logo",t)},expression:"app.logo"}})],1)]}}],null,!0)}),e._v(" "),t("ValidationProvider",{attrs:{tag:"div",mode:"passive",name:"App Logo"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("AppInputText",{attrs:{title:"App Logo Horizontal (optional)",error:n[0]}},[t("ImageInput",{attrs:{error:n[0]},model:{value:e.app.logo_horizontal,callback:function(t){e.$set(e.app,"logo_horizontal",t)},expression:"app.logo_horizontal"}})],1)]}}],null,!0)}),e._v(" "),t("ValidationProvider",{attrs:{tag:"div",mode:"passive",name:"App Favicon"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("AppInputText",{attrs:{title:"App Favicon (optional)",error:n[0]}},[t("ImageInput",{attrs:{error:n[0]},model:{value:e.app.favicon,callback:function(t){e.$set(e.app,"favicon",t)},expression:"app.favicon"}})],1)]}}],null,!0)}),e._v(" "),t("ValidationProvider",{attrs:{tag:"div",mode:"passive",name:"App Favicon"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("AppInputText",{attrs:{title:"OG Image (optional)",description:"Image that appear when someone shares the content to Facebook or any other social medium. Preferred size is 1200x627",error:n[0]}},[t("ImageInput",{attrs:{error:n[0]},model:{value:e.app.og_image,callback:function(t){e.$set(e.app,"og_image",t)},expression:"app.og_image"}})],1)]}}],null,!0)}),e._v(" "),t("ValidationProvider",{attrs:{tag:"div",mode:"passive",name:"App Favicon"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("AppInputText",{attrs:{title:"App Touch Icon (optional)",description:"If user store bookmark on his phone screen, this icon appear in app thumbnail. Preferred size is 156x156",error:n[0],"is-last":!0}},[t("ImageInput",{attrs:{error:n[0]},model:{value:e.app.touch_icon,callback:function(t){e.$set(e.app,"touch_icon",t)},expression:"app.touch_icon"}})],1)]}}],null,!0)})],1),e._v(" "),t("div",{staticClass:"card text-left shadow-card"},[t("FormLabel",[e._v("Application")]),e._v(" "),t("ValidationProvider",{attrs:{tag:"div",mode:"passive",name:"Contact Email",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("AppInputText",{attrs:{title:"Contact Email",error:n[0]}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.app.contactMail,expression:"app.contactMail"}],staticClass:"focus-border-theme input-dark",class:{"!border-rose-600":n[0]},attrs:{placeholder:"Type your contact email",type:"email"},domProps:{value:e.app.contactMail},on:{input:function(t){t.target.composing||e.$set(e.app,"contactMail",t.target.value)}}})])]}}],null,!0)}),e._v(" "),t("ValidationProvider",{attrs:{tag:"div",mode:"passive",name:"Google Analytics Code"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("AppInputText",{attrs:{title:"Google Analytics Code (optional)",error:n[0]}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.app.googleAnalytics,expression:"app.googleAnalytics"}],staticClass:"focus-border-theme input-dark",class:{"!border-rose-600":n[0]},attrs:{placeholder:"Paste your Google Analytics Code",type:"text"},domProps:{value:e.app.googleAnalytics},on:{input:function(t){t.target.composing||e.$set(e.app,"googleAnalytics",t.target.value)}}})])]}}],null,!0)}),e._v(" "),t("AppInputSwitch",{attrs:{title:"Allow User Registration",description:"You can disable public registration for new users. You will still able to create new users in administration panel.","is-last":!0}},[t("SwitchInput",{staticClass:"switch",attrs:{state:e.app.userRegistration},model:{value:e.app.userRegistration,callback:function(t){e.$set(e.app,"userRegistration",t)},expression:"app.userRegistration"}})],1)],1),e._v(" "),t("div",{staticClass:"card text-left shadow-card"},[t("FormLabel",[e._v("User Features")]),e._v(" "),t("AppInputSwitch",{attrs:{title:"Storage Limitation",description:"If this value is off, all users will have infinity storage capacity and you won't be able to charge your users for storage plan."}},[t("SwitchInput",{attrs:{state:e.app.storageLimitation},model:{value:e.app.storageLimitation,callback:function(t){e.$set(e.app,"storageLimitation",t)},expression:"app.storageLimitation"}})],1),e._v(" "),t("ValidationProvider",{attrs:{tag:"div",mode:"passive",name:"Default Storage Space",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[e.app.storageLimitation?t("AppInputText",{attrs:{title:"Default Storage Space for Accounts",error:n[0]}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.app.defaultStorage,expression:"app.defaultStorage"}],staticClass:"focus-border-theme input-dark",class:{"!border-rose-600":n[0]},attrs:{min:"1",max:"999999999",placeholder:"Set default storage space in GB",type:"number"},domProps:{value:e.app.defaultStorage},on:{input:function(t){t.target.composing||e.$set(e.app,"defaultStorage",t.target.value)}}})]):e._e()]}}],null,!0)}),e._v(" "),t("ValidationProvider",{attrs:{tag:"div",mode:"passive",name:"Default Storage Space",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[e.app.teamsDefaultMembers?t("AppInputText",{attrs:{title:"Max Team Members",description:"Type -1 to set unlimited team members.",error:n[0],"is-last":!0}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.app.teamsDefaultMembers,expression:"app.teamsDefaultMembers"}],staticClass:"focus-border-theme input-dark",class:{"!border-rose-600":n[0]},attrs:{min:"1",max:"999999999",placeholder:"Set default max team members",type:"number"},domProps:{value:e.app.teamsDefaultMembers},on:{input:function(t){t.target.composing||e.$set(e.app,"teamsDefaultMembers",t.target.value)}}})]):e._e()]}}],null,!0)})],1),e._v(" "),t("div",{staticClass:"card text-left shadow-card"},[t("FormLabel",[e._v("Subscription")]),e._v(" "),t("ValidationProvider",{attrs:{tag:"div",mode:"passive",name:"Subscription Type",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.errors;return[t("AppInputText",{attrs:{title:e.$t("Subscription Type"),description:"Choose your preferred subscription system in advance. After installation and any other user registration, you can't change this setting later.",error:n[0]}},[t("SelectInput",{attrs:{default:e.app.subscriptionType,options:e.$store.getters.subscriptionTypes,placeholder:e.$t("Select your subscription type"),"is-error":n[0]},model:{value:e.app.subscriptionType,callback:function(t){e.$set(e.app,"subscriptionType",t)},expression:"app.subscriptionType"}})],1)]}}],null,!0)}),e._v(" "),t("InfoBox",{staticClass:"!mb-2"},[t("p",[e._v("Any other subscription related settings you will be able set up later in admin panel.")])])],1),e._v(" "),t("AuthButton",{staticClass:"w-full justify-center",attrs:{icon:"chevron-right",text:"Save and Create Admin",loading:e.isLoading,disabled:e.isLoading}})]}}])})],1)],1)}),[],!1,null,null,null).exports}}]);