mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +00:00
2 lines
294 KiB
JavaScript
Vendored
2 lines
294 KiB
JavaScript
Vendored
/*! For license information please see settings.js.LICENSE.txt */
|
||
(self.webpackChunk=self.webpackChunk||[]).push([[9288],{6933:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});var n=r(3645),i=r.n(n)()((function(t){return t[1]}));i.push([t.id,".emoji{font-size:inherit;height:1em;width:1em}",""]);const o=i},2599:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});var n=r(3645),i=r.n(n)()((function(t){return t[1]}));i.push([t.id,".alphabet-icon g,.alphabet-icon line,.alphabet-icon polyline{color:inherit}",""]);const o=i},4134:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});var n=r(3645),i=r.n(n)()((function(t){return t[1]}));i.push([t.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 o=i},7600:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});var n=r(3645),i=r.n(n)()((function(t){return t[1]}));i.push([t.id,".context-menu-enter-active[data-v-c1486078],.context-menu-leave-active[data-v-c1486078],.fade-enter-active[data-v-c1486078],.fade-leave-active[data-v-c1486078]{transition:all .3s}.fade-enter[data-v-c1486078],.fade-leave-to[data-v-c1486078]{opacity:0}.context-menu-enter[data-v-c1486078],.context-menu-leave-to[data-v-c1486078]{opacity:0;transform:translateY(100%)}.context-menu-leave-active[data-v-c1486078]{position:fixed}.vignette-enter-active[data-v-c1486078]{animation:vignette-in-c1486078 .15s cubic-bezier(.4,0,1,1)}.vignette-leave-active[data-v-c1486078]{animation:vignette-in-c1486078 .15s linear reverse}@keyframes vignette-in-c1486078{0%{opacity:0}to{opacity:1}}",""]);const o=i},9670:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});var n=r(3645),i=r.n(n)()((function(t){return t[1]}));i.push([t.id,".menu-options[data-v-f3a904d4]{list-style:none;margin-top:10px;width:100%}",""]);const o=i},9971:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});var n=r(3645),i=r.n(n)()((function(t){return t[1]}));i.push([t.id,".popup-leave-active[data-v-711e73b9]{animation:popup-slide-in-711e73b9 .15s ease reverse}@media only screen and (min-width:960px){.popup-enter-active[data-v-711e73b9]{animation:popup-slide-in-711e73b9 .25s ease .1s both}@keyframes popup-slide-in-711e73b9{0%{opacity:0;transform:translateY(100px)}to{opacity:1;transform:translateY(0)}}}@media only screen and (max-width:960px){.popup-enter-active[data-v-711e73b9]{animation:popup-slide-in-711e73b9 .35s ease .15s both}@keyframes popup-slide-in-711e73b9{0%{transform:translateY(100%)}to{transform:translateY(0)}}}",""]);const o=i},1464:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});var n=r(3645),i=r.n(n)()((function(t){return t[1]}));i.push([t.id,".form-wrapper[data-v-753f9606]{padding:0 20px}.input-wrapper[data-v-753f9606]{margin-bottom:20px}.input-wrapper[data-v-753f9606]:last-child{margin-bottom:0}.input-wrapper input[data-v-753f9606]{color:#1b2539;width:100%}.input-wrapper input.is-error[data-v-753f9606]{border-color:#fd397a}.inline-wrapper[data-v-753f9606]{align-items:center;display:flex;justify-content:space-between}.inline-wrapper.icon-append .input-text[data-v-753f9606]{border-bottom-right-radius:0;border-top-right-radius:0}.inline-wrapper.icon-append .icon[data-v-753f9606]{background:#000;border-bottom-right-radius:8px;border-top-right-radius:8px;line-height:0;padding:15px 18px;text-align:center}.inline-wrapper.icon-append .icon path[data-v-753f9606],.inline-wrapper.icon-append .icon polyline[data-v-753f9606]{stroke:#fff}.input-label[data-v-753f9606]{color:#1b2539;display:block;font-size:.875em;font-weight:700;margin-bottom:8px}.dark .inline-wrapper.icon-append .icon[data-v-753f9606]{background:rgba(0,188,126,.1)}.dark .inline-wrapper.icon-append .icon path[data-v-753f9606],.dark .inline-wrapper.icon-append .icon polyline[data-v-753f9606]{stroke:#00bc7e}.dark .input-label[data-v-753f9606]{color:#bec6cf}.form.inline-form[data-v-753f9606]{display:flex;justify-content:center;margin:0 auto;position:relative}.form.inline-form .input-wrapper[data-v-753f9606]{position:relative}.form.inline-form .input-wrapper .error-message[data-v-753f9606]{bottom:-25px;left:0;position:absolute}.form.block-form .switch-wrapper[data-v-753f9606]{border-bottom:1px solid #f4f5f6;margin-bottom:13px;padding-bottom:13px}.form.block-form .switch-wrapper[data-v-753f9606]:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}.form.block-form .wrapper-inline[data-v-753f9606]{display:flex;margin:0 -15px}.form.block-form .wrapper-inline .block-wrapper[data-v-753f9606]{padding:0 15px;width:100%}.form.block-form .block-wrapper[data-v-753f9606]{margin-bottom:32px}.form.block-form .block-wrapper label[data-v-753f9606]{color:rgba(27,37,57,.8);display:block;font-size:.875em;font-weight:700;margin-bottom:7px;text-align:left}.form.block-form .block-wrapper[data-v-753f9606]:last-child{margin-bottom:0}.form.block-form .button[data-v-753f9606]{margin-top:50px}.form .inline-wrapper[data-v-753f9606]{align-items:center;display:flex;justify-content:space-between}.form .inline-wrapper .switch-label .input-help[data-v-753f9606]{padding-top:0}.form .inline-wrapper .switch-label .input-label[data-v-753f9606]{color:#1b2539;font-size:1em;font-weight:700;margin-bottom:5px}.input-help[data-v-753f9606]{color:rgba(27,37,57,.7);display:block;font-size:.75em;line-height:1.35;padding-top:10px}.single-line-form[data-v-753f9606]{display:flex}.single-line-form .submit-button[data-v-753f9606]{margin-left:20px}.error-message[data-v-753f9606]{color:#fd397a;display:block;font-size:.875em;padding-top:5px;text-align:left}textarea[data-v-753f9606]{width:100%}input[type=email].is-error[data-v-753f9606],input[type=number].is-error[data-v-753f9606],input[type=password].is-error[data-v-753f9606],input[type=text].is-error[data-v-753f9606],textarea.is-error[data-v-753f9606]{border-color:#fd397a}input[type=email][data-v-753f9606]::-moz-placeholder,input[type=number][data-v-753f9606]::-moz-placeholder,input[type=password][data-v-753f9606]::-moz-placeholder,input[type=text][data-v-753f9606]::-moz-placeholder,textarea[data-v-753f9606]::-moz-placeholder{color:rgba(27,37,57,.5);font-size:.9375em}input[type=email][data-v-753f9606]::placeholder,input[type=number][data-v-753f9606]::placeholder,input[type=password][data-v-753f9606]::placeholder,input[type=text][data-v-753f9606]::placeholder,textarea[data-v-753f9606]::placeholder{color:rgba(27,37,57,.5);font-size:.9375em}input[type=email][disabled][data-v-753f9606],input[type=number][disabled][data-v-753f9606],input[type=password][disabled][data-v-753f9606],input[type=text][disabled][data-v-753f9606],textarea[disabled][data-v-753f9606]{-webkit-text-fill-color:rgba(27,37,57,.8);color:rgba(27,37,57,.8);cursor:not-allowed;opacity:1}input[type=color][data-v-753f9606]{background:none;border:none;height:40px;min-width:auto!important;outline:none;width:38px!important}.additional-link[data-v-753f9606]{display:block;font-size:1em;margin-top:50px}.additional-link a[data-v-753f9606],.additional-link b[data-v-753f9606]{cursor:pointer}.additional-link a[data-v-753f9606]:hover,.additional-link b[data-v-753f9606]:hover{text-decoration:underline}@media only screen and (max-width:1024px){.form[data-v-753f9606]{max-width:100%}}@media only screen and (max-width:960px){.form .button[data-v-753f9606]{margin-left:0;margin-right:0;margin-top:20px;width:100%}.form input[data-v-753f9606],.form textarea[data-v-753f9606]{min-width:100%;width:100%}.form.block-form .block-wrapper[data-v-753f9606]{display:block}.form.block-form .block-wrapper label[data-v-753f9606]{display:block;font-size:.875em;margin-bottom:7px;padding-right:0;padding-top:0;text-align:left!important;width:100%}.form.block-form .button[data-v-753f9606]{margin-left:0;margin-right:0;margin-top:25px}.form.inline-form[data-v-753f9606]{display:block}.form.inline-form .input-wrapper .error-message[data-v-753f9606]{bottom:0;position:relative}.form .button[data-v-753f9606]{padding:14px 32px}.single-line-form[data-v-753f9606]{display:block}.single-line-form .submit-button[data-v-753f9606]{margin-left:0;margin-top:20px;width:100%}input[type=email][data-v-753f9606],input[type=number][data-v-753f9606],input[type=password][data-v-753f9606],input[type=text][data-v-753f9606],textarea[data-v-753f9606]{padding:14px 20px}}@media only screen and (max-width:690px){.form.block-form .wrapper-inline[data-v-753f9606]{display:block}}.dark .form .input-help[data-v-753f9606]{color:#7d858c}.dark .form.block-form .block-wrapper label[data-v-753f9606]{color:#bec6cf}.dark .form.block-form .switch-wrapper[data-v-753f9606]{border-color:hsla(0,0%,100%,.02)}.dark .form .inline-wrapper .switch-label .input-label[data-v-753f9606]{color:#bec6cf}.dark input[type=email][data-v-753f9606],.dark input[type=number][data-v-753f9606],.dark input[type=password][data-v-753f9606],.dark input[type=text][data-v-753f9606],.dark textarea[data-v-753f9606]{background:#1e2024;border-color:#1e2024;color:#bec6cf}.dark input[type=email][data-v-753f9606]::-moz-placeholder,.dark input[type=number][data-v-753f9606]::-moz-placeholder,.dark input[type=password][data-v-753f9606]::-moz-placeholder,.dark input[type=text][data-v-753f9606]::-moz-placeholder,.dark textarea[data-v-753f9606]::-moz-placeholder{color:#7d858c}.dark input[type=email][data-v-753f9606]::placeholder,.dark input[type=number][data-v-753f9606]::placeholder,.dark input[type=password][data-v-753f9606]::placeholder,.dark input[type=text][data-v-753f9606]::placeholder,.dark textarea[data-v-753f9606]::placeholder{color:#7d858c}.dark input[type=email][disabled][data-v-753f9606],.dark input[type=number][disabled][data-v-753f9606],.dark input[type=password][disabled][data-v-753f9606],.dark input[type=text][disabled][data-v-753f9606],.dark textarea[disabled][data-v-753f9606]{-webkit-text-fill-color:hsla(208,6%,52%,.8);color:hsla(208,6%,52%,.8)}.dark .info-box[data-v-753f9606],.dark .popup-wrapper input[type=email][data-v-753f9606],.dark .popup-wrapper input[type=number][data-v-753f9606],.dark .popup-wrapper input[type=password][data-v-753f9606],.dark .popup-wrapper input[type=text][data-v-753f9606],.dark .popup-wrapper textarea[data-v-753f9606]{background:#25272c}",""]);const o=i},4499:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});var n=r(3645),i=r.n(n)()((function(t){return t[1]}));i.push([t.id,"#spotlight .item-name{padding-right:35px}",""]);const o=i},1034:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});var n=r(3645),i=r.n(n)()((function(t){return t[1]}));i.push([t.id,".form-wrapper[data-v-dd2b709a]{padding:0 20px}.input-wrapper[data-v-dd2b709a]{margin-bottom:20px}.input-wrapper[data-v-dd2b709a]:last-child{margin-bottom:0}.input-wrapper input[data-v-dd2b709a]{color:#1b2539;width:100%}.input-wrapper input.is-error[data-v-dd2b709a]{border-color:#fd397a}.inline-wrapper[data-v-dd2b709a]{align-items:center;display:flex;justify-content:space-between}.inline-wrapper.icon-append .input-text[data-v-dd2b709a]{border-bottom-right-radius:0;border-top-right-radius:0}.inline-wrapper.icon-append .icon[data-v-dd2b709a]{background:#000;border-bottom-right-radius:8px;border-top-right-radius:8px;line-height:0;padding:15px 18px;text-align:center}.inline-wrapper.icon-append .icon path[data-v-dd2b709a],.inline-wrapper.icon-append .icon polyline[data-v-dd2b709a]{stroke:#fff}.input-label[data-v-dd2b709a]{color:#1b2539;display:block;font-size:.875em;font-weight:700;margin-bottom:8px}.dark .inline-wrapper.icon-append .icon[data-v-dd2b709a]{background:rgba(0,188,126,.1)}.dark .inline-wrapper.icon-append .icon path[data-v-dd2b709a],.dark .inline-wrapper.icon-append .icon polyline[data-v-dd2b709a]{stroke:#00bc7e}.dark .input-label[data-v-dd2b709a]{color:#bec6cf}.form.inline-form[data-v-dd2b709a]{display:flex;justify-content:center;margin:0 auto;position:relative}.form.inline-form .input-wrapper[data-v-dd2b709a]{position:relative}.form.inline-form .input-wrapper .error-message[data-v-dd2b709a]{bottom:-25px;left:0;position:absolute}.form.block-form .switch-wrapper[data-v-dd2b709a]{border-bottom:1px solid #f4f5f6;margin-bottom:13px;padding-bottom:13px}.form.block-form .switch-wrapper[data-v-dd2b709a]:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}.form.block-form .wrapper-inline[data-v-dd2b709a]{display:flex;margin:0 -15px}.form.block-form .wrapper-inline .block-wrapper[data-v-dd2b709a]{padding:0 15px;width:100%}.form.block-form .block-wrapper[data-v-dd2b709a]{margin-bottom:32px}.form.block-form .block-wrapper label[data-v-dd2b709a]{color:rgba(27,37,57,.8);display:block;font-size:.875em;font-weight:700;margin-bottom:7px;text-align:left}.form.block-form .block-wrapper[data-v-dd2b709a]:last-child{margin-bottom:0}.form.block-form .button[data-v-dd2b709a]{margin-top:50px}.form .inline-wrapper[data-v-dd2b709a]{align-items:center;display:flex;justify-content:space-between}.form .inline-wrapper .switch-label .input-help[data-v-dd2b709a]{padding-top:0}.form .inline-wrapper .switch-label .input-label[data-v-dd2b709a]{color:#1b2539;font-size:1em;font-weight:700;margin-bottom:5px}.input-help[data-v-dd2b709a]{color:rgba(27,37,57,.7);display:block;font-size:.75em;line-height:1.35;padding-top:10px}.single-line-form[data-v-dd2b709a]{display:flex}.single-line-form .submit-button[data-v-dd2b709a]{margin-left:20px}.error-message[data-v-dd2b709a]{color:#fd397a;display:block;font-size:.875em;padding-top:5px;text-align:left}textarea[data-v-dd2b709a]{width:100%}input[type=email].is-error[data-v-dd2b709a],input[type=number].is-error[data-v-dd2b709a],input[type=password].is-error[data-v-dd2b709a],input[type=text].is-error[data-v-dd2b709a],textarea.is-error[data-v-dd2b709a]{border-color:#fd397a}input[type=email][data-v-dd2b709a]::-moz-placeholder,input[type=number][data-v-dd2b709a]::-moz-placeholder,input[type=password][data-v-dd2b709a]::-moz-placeholder,input[type=text][data-v-dd2b709a]::-moz-placeholder,textarea[data-v-dd2b709a]::-moz-placeholder{color:rgba(27,37,57,.5);font-size:.9375em}input[type=email][data-v-dd2b709a]::placeholder,input[type=number][data-v-dd2b709a]::placeholder,input[type=password][data-v-dd2b709a]::placeholder,input[type=text][data-v-dd2b709a]::placeholder,textarea[data-v-dd2b709a]::placeholder{color:rgba(27,37,57,.5);font-size:.9375em}input[type=email][disabled][data-v-dd2b709a],input[type=number][disabled][data-v-dd2b709a],input[type=password][disabled][data-v-dd2b709a],input[type=text][disabled][data-v-dd2b709a],textarea[disabled][data-v-dd2b709a]{-webkit-text-fill-color:rgba(27,37,57,.8);color:rgba(27,37,57,.8);cursor:not-allowed;opacity:1}input[type=color][data-v-dd2b709a]{background:none;border:none;height:40px;min-width:auto!important;outline:none;width:38px!important}.additional-link[data-v-dd2b709a]{display:block;font-size:1em;margin-top:50px}.additional-link a[data-v-dd2b709a],.additional-link b[data-v-dd2b709a]{cursor:pointer}.additional-link a[data-v-dd2b709a]:hover,.additional-link b[data-v-dd2b709a]:hover{text-decoration:underline}@media only screen and (max-width:1024px){.form[data-v-dd2b709a]{max-width:100%}}@media only screen and (max-width:960px){.form .button[data-v-dd2b709a]{margin-left:0;margin-right:0;margin-top:20px;width:100%}.form input[data-v-dd2b709a],.form textarea[data-v-dd2b709a]{min-width:100%;width:100%}.form.block-form .block-wrapper[data-v-dd2b709a]{display:block}.form.block-form .block-wrapper label[data-v-dd2b709a]{display:block;font-size:.875em;margin-bottom:7px;padding-right:0;padding-top:0;text-align:left!important;width:100%}.form.block-form .button[data-v-dd2b709a]{margin-left:0;margin-right:0;margin-top:25px}.form.inline-form[data-v-dd2b709a]{display:block}.form.inline-form .input-wrapper .error-message[data-v-dd2b709a]{bottom:0;position:relative}.form .button[data-v-dd2b709a]{padding:14px 32px}.single-line-form[data-v-dd2b709a]{display:block}.single-line-form .submit-button[data-v-dd2b709a]{margin-left:0;margin-top:20px;width:100%}input[type=email][data-v-dd2b709a],input[type=number][data-v-dd2b709a],input[type=password][data-v-dd2b709a],input[type=text][data-v-dd2b709a],textarea[data-v-dd2b709a]{padding:14px 20px}}@media only screen and (max-width:690px){.form.block-form .wrapper-inline[data-v-dd2b709a]{display:block}}.dark .form .input-help[data-v-dd2b709a]{color:#7d858c}.dark .form.block-form .block-wrapper label[data-v-dd2b709a]{color:#bec6cf}.dark .form.block-form .switch-wrapper[data-v-dd2b709a]{border-color:hsla(0,0%,100%,.02)}.dark .form .inline-wrapper .switch-label .input-label[data-v-dd2b709a]{color:#bec6cf}.dark input[type=email][data-v-dd2b709a],.dark input[type=number][data-v-dd2b709a],.dark input[type=password][data-v-dd2b709a],.dark input[type=text][data-v-dd2b709a],.dark textarea[data-v-dd2b709a]{background:#1e2024;border-color:#1e2024;color:#bec6cf}.dark input[type=email][data-v-dd2b709a]::-moz-placeholder,.dark input[type=number][data-v-dd2b709a]::-moz-placeholder,.dark input[type=password][data-v-dd2b709a]::-moz-placeholder,.dark input[type=text][data-v-dd2b709a]::-moz-placeholder,.dark textarea[data-v-dd2b709a]::-moz-placeholder{color:#7d858c}.dark input[type=email][data-v-dd2b709a]::placeholder,.dark input[type=number][data-v-dd2b709a]::placeholder,.dark input[type=password][data-v-dd2b709a]::placeholder,.dark input[type=text][data-v-dd2b709a]::placeholder,.dark textarea[data-v-dd2b709a]::placeholder{color:#7d858c}.dark input[type=email][disabled][data-v-dd2b709a],.dark input[type=number][disabled][data-v-dd2b709a],.dark input[type=password][disabled][data-v-dd2b709a],.dark input[type=text][disabled][data-v-dd2b709a],.dark textarea[disabled][data-v-dd2b709a]{-webkit-text-fill-color:hsla(208,6%,52%,.8);color:hsla(208,6%,52%,.8)}.dark .popup-wrapper input[type=email][data-v-dd2b709a],.dark .popup-wrapper input[type=number][data-v-dd2b709a],.dark .popup-wrapper input[type=password][data-v-dd2b709a],.dark .popup-wrapper input[type=text][data-v-dd2b709a],.dark .popup-wrapper textarea[data-v-dd2b709a]{background:#25272c}.permission-toggle[data-v-dd2b709a]{align-items:center;cursor:pointer;display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none}.permission-toggle .privilege[data-v-dd2b709a]{color:rgba(27,37,57,.7);font-size:.8125em;margin-right:10px;white-space:nowrap}.permission-toggle path[data-v-dd2b709a],.permission-toggle polyline[data-v-dd2b709a]{color:#a4adb6}.dark .permission-toggle .privilege[data-v-dd2b709a]{color:#7d858c}",""]);const o=i},2806:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});var n=r(3645),i=r.n(n)()((function(t){return t[1]}));i.push([t.id,".mobile-actions[data-v-c7d46ef0]{margin:0 -20px;overflow-x:auto;padding:10px 0 10px 20px;white-space:nowrap}.codes-list[data-v-c7d46ef0]{margin:5px 0 15px;padding-left:30px}.codes-list li[data-v-c7d46ef0]{border-bottom:1px solid #f8f8f8;font-size:.875em;font-weight:700;list-style:circle;padding:10px 0}.codes-list li[data-v-c7d46ef0]:last-child{border-bottom:none}.codes-output[data-v-c7d46ef0]{position:absolute;right:-9999px}.spinner-wrapper[data-v-c7d46ef0]{height:339px;position:relative}.spinner-wrapper .spinner[data-v-c7d46ef0]{top:46%!important}.dark .codes-list li[data-v-c7d46ef0]{border-color:hsla(0,0%,100%,.02)}.dark .info-box[data-v-c7d46ef0],.dark .mobile-action-button[data-v-c7d46ef0]{background:#25272c}",""]);const o=i},8520:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});var n=r(3645),i=r.n(n)()((function(t){return t[1]}));i.push([t.id,".color-label.purple[data-v-3ff27c4c]{background:rgba(157,102,254,.1);color:#9d66fe}.color-label.yellow[data-v-3ff27c4c]{background:rgba(255,189,45,.1);color:#ffbd2d}.color-label.green[data-v-3ff27c4c]{background:rgba(0,188,126,.1);color:#00bc7e}.color-label.red[data-v-3ff27c4c]{background:rgba(253,57,122,.1);color:#fd397a}",""]);const o=i},6355:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});var n=r(3645),i=r.n(n)()((function(t){return t[1]}));i.push([t.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 o=i},4479:(t,e,r)=>{"use strict";r.d(e,{C1:()=>o});function n(t){return null==t}function i(t){return Array.isArray(t)&&0===t.length}var o={validate:function(t,e){var r=(void 0===e?{allowFalse:!0}:e).allowFalse,o={valid:!1,required:!0};return n(t)||i(t)?o:!1!==t||r?(o.valid=!!String(t).trim().length,o):o},params:[{name:"allowFalse",default:!0}],computesRequired:!0}},9495:function(t,e,r){!function(t,e){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=r(e),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"}},o={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},a={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},c=function(t,e){var r=(void 0===e?{}:e).locale,n=void 0===r?"":r;return Array.isArray(t)?t.every((function(t){return c(t,{locale:n})})):n?(o[n]||o.en).test(t):Object.keys(o).some((function(e){return o[e].test(t)}))},d={validate:c,params:[{name:"locale"}]},l=function(t,e){var r=(void 0===e?{}:e).locale,n=void 0===r?"":r;return Array.isArray(t)?t.every((function(t){return l(t,{locale:n})})):n?(u[n]||u.en).test(t):Object.keys(u).some((function(e){return u[e].test(t)}))},f={validate:l,params:[{name:"locale"}]},p=function(t,e){var r=(void 0===e?{}:e).locale,n=void 0===r?"":r;return Array.isArray(t)?t.every((function(t){return p(t,{locale:n})})):n?(s[n]||s.en).test(t):Object.keys(s).some((function(e){return s[e].test(t)}))},v={validate:p,params:[{name:"locale"}]},h=function(t,e){var r=(void 0===e?{}:e).locale,n=void 0===r?"":r;return Array.isArray(t)?t.every((function(t){return h(t,{locale:n})})):n?(a[n]||a.en).test(t):Object.keys(a).some((function(e){return a[e].test(t)}))},m={validate:h,params:[{name:"locale"}]},b=function(t,e){var r=void 0===e?{}:e,n=r.min,i=r.max;return Array.isArray(t)?t.every((function(t){return!!b(t,{min:n,max:i})})):Number(n)<=t&&Number(i)>=t},y={validate:b,params:[{name:"min"},{name:"max"}]},g={validate:function(t,e){var r=e.target;return String(t)===String(r)},params:[{name:"target",isTarget:!0}]},_=function(t,e){var r=e.length;if(Array.isArray(t))return t.every((function(t){return _(t,{length:r})}));var n=String(t);return/^[0-9]*$/.test(n)&&n.length===r},x={validate:_,params:[{name:"length",cast:function(t){return Number(t)}}]},w=function(t,e,r){var n=window.URL||window.webkitURL;return new Promise((function(i){var o=new Image;o.onerror=function(){return i(!1)},o.onload=function(){return i(o.width===e&&o.height===r)},o.src=n.createObjectURL(t)}))},k={validate:function(t,e){var r=e.width,n=e.height,i=[];t=Array.isArray(t)?t:[t];for(var o=0;o<t.length;o++){if(!/\.(jpg|svg|jpeg|png|bmp|gif)$/i.test(t[o].name))return Promise.resolve(!1);i.push(t[o])}return Promise.all(i.map((function(t){return w(t,r,n)}))).then((function(t){return t.every((function(t){return t}))}))},params:[{name:"width",cast:function(t){return Number(t)}},{name:"height",cast:function(t){return Number(t)}}]},P={validate:function(t,e){var r=(void 0===e?{}:e).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 r&&!Array.isArray(t)&&(t=String(t).split(",").map((function(t){return t.trim()}))),Array.isArray(t)?t.every((function(t){return n.test(String(t))})):n.test(String(t))},params:[{name:"multiple",default:!1}]};function O(t){return t!=t}function C(t){return null==t}function $(t){return Array.isArray(t)&&0===t.length}var S=function(t){return null!==t&&t&&"object"==typeof t&&!Array.isArray(t)};function j(t,e){return!(!O(t)||!O(e))||t===e}function A(t){return""!==t&&!C(t)}function L(t){return"function"==typeof t}function E(t){return L(t)&&!!t.__locatorRef}function I(t,e){var r=Array.isArray(t)?t:T(t);if(L(r.findIndex))return r.findIndex(e);for(var n=0;n<r.length;n++)if(e(r[n],n))return n;return-1}function Z(t,e){var r=Array.isArray(t)?t:T(t),n=I(r,e);return-1===n?void 0:r[n]}function F(t,e){return-1!==t.indexOf(e)}function T(t){return L(Array.from)?Array.from(t):z(t)}function z(t){for(var e=[],r=t.length,n=0;n<r;n++)e.push(t[n]);return e}function D(t){return L(Object.values)?Object.values(t):Object.keys(t).map((function(e){return t[e]}))}function N(t,e){return Object.keys(e).forEach((function(r){if(S(e[r]))return t[r]||(t[r]={}),void N(t[r],e[r]);t[r]=e[r]})),t}function M(){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 B(t){return t}function R(t,e,r){return void 0===e&&(e=0),void 0===r&&(r={cancelled:!1}),0===e?t:function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var a=function(){n=void 0,r.cancelled||t.apply(void 0,i)};clearTimeout(n),n=setTimeout(a,e)};var n}function V(t){console.warn("[vee-validate] "+t)}function U(t,e){return t.replace(/{([^}]+)}/g,(function(t,r){return r in e?e[r]:"{"+r+"}"}))}var q=function(t,e){return Array.isArray(t)?t.every((function(t){return q(t,e)})):T(e).some((function(e){return e==t}))},G={validate:q},H={validate:function(t,e){return!q(t,e)}},W={validate:function(t,e){var r=new RegExp(".("+e.join("|")+")$","i");return Array.isArray(t)?t.every((function(t){return r.test(t.name)})):r.test(t.name)}},Y={validate:function(t){var e=/\.(jpg|svg|jpeg|png|bmp|gif|webp)$/i;return Array.isArray(t)?t.every((function(t){return e.test(t.name)})):e.test(t.name)}},Q={validate:function(t){return Array.isArray(t)?t.every((function(t){return/^-?[0-9]+$/.test(String(t))})):/^-?[0-9]+$/.test(String(t))}},K={validate:function(t,e){return t===e.other},params:[{name:"other"}]},X={validate:function(t,e){return t!==e.other},params:[{name:"other"}]},J={validate:function(t,e){var r=e.length;return!C(t)&&("string"==typeof t&&(t=T(t)),"number"==typeof t&&(t=String(t)),t.length||(t=T(t)),t.length===r)},params:[{name:"length",cast:function(t){return Number(t)}}]},tt=function(t,e){var r=e.length;return C(t)?r>=0:Array.isArray(t)?t.every((function(t){return tt(t,{length:r})})):String(t).length<=r},et={validate:tt,params:[{name:"length",cast:function(t){return Number(t)}}]},rt=function(t,e){var r=e.max;return!C(t)&&""!==t&&(Array.isArray(t)?t.length>0&&t.every((function(t){return rt(t,{max:r})})):Number(t)<=r)},nt={validate:rt,params:[{name:"max",cast:function(t){return Number(t)}}]},it={validate:function(t,e){var r=new RegExp(e.join("|").replace("*",".+")+"$","i");return Array.isArray(t)?t.every((function(t){return r.test(t.type)})):r.test(t.type)}},ot=function(t,e){var r=e.length;return!C(t)&&(Array.isArray(t)?t.every((function(t){return ot(t,{length:r})})):String(t).length>=r)},at={validate:ot,params:[{name:"length",cast:function(t){return Number(t)}}]},st=function(t,e){var r=e.min;return!C(t)&&""!==t&&(Array.isArray(t)?t.length>0&&t.every((function(t){return st(t,{min:r})})):Number(t)>=r)},ut={validate:st,params:[{name:"min",cast:function(t){return Number(t)}}]},ct=/^[٠١٢٣٤٥٦٧٨٩]+$/,dt=/^[0-9]+$/,lt={validate:function(t){var e=function(t){var e=String(t);return dt.test(e)||ct.test(e)};return Array.isArray(t)?t.every(e):e(t)}},ft=function(t,e){var r=e.regex;return Array.isArray(t)?t.every((function(t){return ft(t,{regex:r})})):r.test(String(t))},pt={validate:ft,params:[{name:"regex",cast:function(t){return"string"==typeof t?new RegExp(t):t}}]},vt={validate:function(t,e){var r=(void 0===e?{allowFalse:!0}:e).allowFalse,n={valid:!1,required:!0};return C(t)||$(t)?n:!1!==t||r?(n.valid=!!String(t).trim().length,n):n},params:[{name:"allowFalse",default:!0}],computesRequired:!0},ht=function(t){return $(t)||F([!1,null,void 0],t)||!String(t).trim().length},mt={validate:function(t,e){var r,n=e.target,i=e.values;return i&&i.length?(Array.isArray(i)||"string"!=typeof i||(i=[i]),r=i.some((function(t){return t==String(n).trim()}))):r=!ht(n),r?{valid:!ht(t),required:r}:{valid:!0,required:r}},params:[{name:"target",isTarget:!0},{name:"values"}],computesRequired:!0},bt={validate:function(t,e){var r=e.size;if(isNaN(r))return!1;var n=1024*r;if(!Array.isArray(t))return t.size<=n;for(var i=0;i<t.length;i++)if(t[i].size>n)return!1;return!0},params:[{name:"size",cast:function(t){return Number(t)}}]},yt={validate:function(t,e){var r=e||{},n=r.decimals,i=void 0===n?0:n,o=r.separator,a=new RegExp("^-?\\d+"+("comma"===(void 0===o?"dot":o)?",?":"\\.?")+(0===i?"\\d*":"(\\d{"+i+"})?")+"$");return Array.isArray(t)?t.every((function(t){return a.test(String(t))})):a.test(String(t))},params:[{name:"decimals",default:0},{name:"separator",default:"dot"}]},gt=Object.freeze({__proto__:null,alpha_dash:f,alpha_num:v,alpha_spaces:m,alpha:d,between:y,confirmed:g,digits:x,dimensions:k,email:P,ext:W,image:Y,oneOf:G,integer:Q,length:J,is_not:X,is:K,max:et,max_value:nt,mimes:it,min:at,min_value:ut,excluded:H,numeric:lt,regex:pt,required:vt,required_if:mt,size:bt,double:yt}),_t=function(){return _t=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},_t.apply(this,arguments)};function xt(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function a(t){try{u(n.next(t))}catch(t){o(t)}}function s(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){t.done?r(t.value):i(t.value).then(a,s)}u((n=n.apply(t,e||[])).next())}))}function wt(t,e){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return u([t,e])}}function u(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function kt(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var n=Array(t),i=0;for(e=0;e<r;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n}var Pt=_t({},{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}),Ot=function(){return Pt},Ct=function(t){Pt=_t(_t({},Pt),t)},$t=function(t){Ct(t)},St=new n.default;function jt(){St.$emit("change:locale")}var At,Lt=function(){function t(t,e){this.container={},this.locale=t,this.merge(e)}return t.prototype.resolve=function(t,e,r){return this.format(this.locale,t,e,r)},t.prototype.format=function(t,e,r,n){var i,o,a,s,u,c,d,l,f,p=null===(a=null===(o=null===(i=this.container[t])||void 0===i?void 0:i.fields)||void 0===o?void 0:o[e])||void 0===a?void 0:a[r],v=null===(u=null===(s=this.container[t])||void 0===s?void 0:s.messages)||void 0===u?void 0:u[r];return(f=p||v||"")||(f="{_field_} is not valid"),e=null!==(l=null===(d=null===(c=this.container[t])||void 0===c?void 0:c.names)||void 0===d?void 0:d[e])&&void 0!==l?l:e,L(f)?f(e,n):U(f,_t(_t({},n),{_field_:e}))},t.prototype.merge=function(t){N(this.container,t)},t.prototype.hasRule=function(t){var e,r;return!!(null===(r=null===(e=this.container[this.locale])||void 0===e?void 0:e.messages)||void 0===r?void 0:r[t])},t}();function Et(t,e){var r;if(At||(At=new Lt("en",{}),Ct({defaultMessage:function(t,e){return At.resolve(t,null==e?void 0:e._rule_,e||{})}})),"string"==typeof t)return At.locale=t,e&&At.merge(((r={})[t]=e,r)),void jt();At.merge(t)}var It={};function Zt(t){var e;return(null===(e=t.params)||void 0===e?void 0:e.length)&&(t.params=t.params.map((function(t){return"string"==typeof t?{name:t}:t}))),t}var Ft=function(){function t(){}return t.extend=function(t,e){var r=Zt(e);It[t]?It[t]=N(It[t],e):It[t]=_t({lazy:!1,computesRequired:!1},r)},t.isLazy=function(t){var e;return!!(null===(e=It[t])||void 0===e?void 0:e.lazy)},t.isRequireRule=function(t){var e;return!!(null===(e=It[t])||void 0===e?void 0:e.computesRequired)},t.getRuleDefinition=function(t){return It[t]},t}();function Tt(t,e){zt(t,e),"object"!=typeof e?Ft.extend(t,{validate:e}):Ft.extend(t,e)}function zt(t,e){if(!L(e)&&!L(e.validate)&&!Ft.getRuleDefinition(t))throw new Error("Extension Error: The validator '"+t+"' must be a function or have a 'validate' method.")}var Dt={aggressive:function(){return{on:["input","blur"]}},eager:function(t){return t.errors.length?{on:["input","change"]}:{on:["change","blur"]}},passive:function(){return{on:[]}},lazy:function(){return{on:["change","blur"]}}},Nt=function(t,e){if(Ct({mode:t}),e){if(!L(e))throw new Error("A mode implementation must be a function");Dt[t]=e}};function Mt(t){var e={};return Object.defineProperty(e,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),t?S(t)&&t._$$isNormalized?t:S(t)?Object.keys(t).reduce((function(e,r){var n=[];return n=!0===t[r]?[]:Array.isArray(t[r])||S(t[r])?t[r]:[t[r]],!1!==t[r]&&(e[r]=Bt(r,n)),e}),e):"string"!=typeof t?(V("rules must be either a string or an object."),e):t.split("|").reduce((function(t,e){var r=Rt(e);return r.name?(t[r.name]=Bt(r.name,r.params),t):t}),e):e}function Bt(t,e){var r=Ft.getRuleDefinition(t);if(!r)return e;var n,i,o={};if(!r.params&&!Array.isArray(e))throw new Error("You provided an object params to a rule that has no defined schema.");if(Array.isArray(e)&&!r.params)return e;n=!r.params||r.params.length<e.length&&Array.isArray(e)?e.map((function(t,e){var n,o=null===(n=r.params)||void 0===n?void 0:n[e];return i=o||i,o||(o=i),o})):r.params;for(var a=0;a<n.length;a++){var s=n[a],u=s.default;Array.isArray(e)?a in e&&(u=e[a]):s.name in e?u=e[s.name]:1===n.length&&(u=e),s.isTarget&&(u=Vt(u,s.cast)),"string"==typeof u&&"@"===u[0]&&(u=Vt(u.slice(1),s.cast)),!E(u)&&s.cast&&(u=s.cast(u)),o[s.name]?(o[s.name]=Array.isArray(o[s.name])?o[s.name]:[o[s.name]],o[s.name].push(u)):o[s.name]=u}return o}var Rt=function(t){var e=[],r=t.split(":")[0];return F(t,":")&&(e=t.split(":").slice(1).join(":").split(",")),{name:r,params:e}};function Vt(t,e){var r=function(r){var n=r[t];return e?e(n):n};return r.__locatorRef=t,r}function Ut(t){return Array.isArray(t)?t.filter((function(t){return E(t)||"string"==typeof t&&"@"===t[0]})):Object.keys(t).filter((function(e){return E(t[e])})).map((function(e){return t[e]}))}function qt(t,e,r){return void 0===r&&(r={}),xt(this,void 0,void 0,(function(){var n,i,o,a,s,u;return wt(this,(function(c){switch(c.label){case 0:return n=null==r?void 0:r.bails,i=null==r?void 0:r.skipIfEmpty,[4,Gt({name:(null==r?void 0:r.name)||"{field}",rules:Mt(e),bails:null==n||n,skipIfEmpty:null==i||i,forceRequired:!1,crossTable:(null==r?void 0:r.values)||{},names:(null==r?void 0:r.names)||{},customMessages:(null==r?void 0:r.customMessages)||{}},t,r)];case 1:return o=c.sent(),a=[],s={},u={},o.errors.forEach((function(t){var e=t.msg();a.push(e),s[t.rule]=e,u[t.rule]=t.msg})),[2,{valid:o.valid,required:o.required,errors:a,failedRules:s,regenerateMap:u}]}}))}))}function Gt(t,e,r){var n=(void 0===r?{}:r).isInitial,i=void 0!==n&&n;return xt(this,void 0,void 0,(function(){var r,n,o,a,s,u,c,d,l;return wt(this,(function(f){switch(f.label){case 0:return[4,Ht(t,e)];case 1:if(r=f.sent(),n=r.shouldSkip,o=r.required,a=r.errors,n)return[2,{valid:!a.length,required:o,errors:a}];s=Object.keys(t.rules).filter((function(t){return!Ft.isRequireRule(t)})),u=s.length,c=0,f.label=2;case 2:return c<u?i&&Ft.isLazy(s[c])?[3,4]:(d=s[c],[4,Wt(t,e,{name:d,params:t.rules[d]})]):[3,5];case 3:if(!(l=f.sent()).valid&&l.error&&(a.push(l.error),t.bails))return[2,{valid:!1,required:o,errors:a}];f.label=4;case 4:return c++,[3,2];case 5:return[2,{valid:!a.length,required:o,errors:a}]}}))}))}function Ht(t,e){return xt(this,void 0,void 0,(function(){var r,n,i,o,a,s,u,c,d;return wt(this,(function(l){switch(l.label){case 0:r=Object.keys(t.rules).filter(Ft.isRequireRule),n=r.length,i=[],o=C(e)||""===e||$(e),a=o&&t.skipIfEmpty,u=0,l.label=1;case 1:return u<n?(c=r[u],[4,Wt(t,e,{name:c,params:t.rules[c]})]):[3,4];case 2:if(d=l.sent(),!S(d))throw new Error("Require rules has to return an object (see docs)");if(void 0!==d.required&&(s=d.required),!d.valid&&d.error&&(i.push(d.error),t.bails))return[2,{shouldSkip:!0,required:d.required,errors:i}];l.label=3;case 3:return u++,[3,1];case 4:return o&&!s&&!t.skipIfEmpty||!t.bails&&!a?[2,{shouldSkip:!1,required:s,errors:i}]:[2,{shouldSkip:!s&&o,required:s,errors:i}]}}))}))}function Wt(t,e,r){return xt(this,void 0,void 0,(function(){var n,i,o,a,s;return wt(this,(function(u){switch(u.label){case 0:if(!(n=Ft.getRuleDefinition(r.name))||!n.validate)throw new Error("No such validator '"+r.name+"' exists.");return i=n.castValue?n.castValue(e):e,o=Jt(r.params,t.crossTable),[4,n.validate(i,o)];case 1:return"string"==typeof(a=u.sent())?(s=_t(_t({},o||{}),{_field_:t.name,_value_:e,_rule_:r.name}),[2,{valid:!1,error:{rule:r.name,msg:function(){return U(a,s)}}}]):(S(a)||(a={valid:a}),[2,{valid:a.valid,required:a.required,error:a.valid?void 0:Yt(t,e,n,r.name,o)}])}}))}))}function Yt(t,e,r,n,i){var o,a=null!==(o=t.customMessages[n])&&void 0!==o?o:r.message,s=Qt(t,r,n),u=Kt(t,r,n,a),c=u.userTargets,d=u.userMessage,l=_t(_t(_t(_t({},i||{}),{_field_:t.name,_value_:e,_rule_:n}),s),c);return{msg:function(){return Xt(d||Ot().defaultMessage,t.name,l)},rule:n}}function Qt(t,e,r){var n=e.params;if(!n)return{};var i=n.filter((function(t){return t.isTarget})).length;if(i<=0)return{};var o={},a=t.rules[r];!Array.isArray(a)&&S(a)&&(a=n.map((function(t){return a[t.name]})));for(var s=0;s<n.length;s++){var u=n[s],c=a[s];if(E(c)){c=c.__locatorRef;var d=t.names[c]||c;o[u.name]=d,o["_"+u.name+"_"]=t.crossTable[c]}}return o}function Kt(t,e,r,n){var i={},o=t.rules[r],a=e.params||[];return o?(Object.keys(o).forEach((function(e,r){var n=o[e];if(!E(n))return{};var s=a[r];if(!s)return{};var u=n.__locatorRef;i[s.name]=t.names[u]||u,i["_"+s.name+"_"]=t.crossTable[u]})),{userTargets:i,userMessage:n}):{}}function Xt(t,e,r){return"function"==typeof t?t(e,r):U(t,_t(_t({},r),{_field_:e}))}function Jt(t,e){if(Array.isArray(t))return t.map((function(t){var r="string"==typeof t&&"@"===t[0]?t.slice(1):t;return r in e?e[r]:t}));var r={},n=function(t){return E(t)?t(e):t};return Object.keys(t).forEach((function(e){r[e]=n(t[e])})),r}var te=function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(e)){if((n=e.length)!=r.length)return!1;for(i=n;0!=i--;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){var a=o[i];if(!t(e[a],r[a]))return!1}return!0}return e!=e&&r!=r},ee=function(t){return!!(t&&("undefined"!=typeof Event&&L(Event)&&t instanceof Event||t&&t.srcElement))};function re(t){var e,r;if(!ee(t))return t;var n=t.target;if("file"===n.type&&n.files)return T(n.files);if(null===(e=n._vModifiers)||void 0===e?void 0:e.number){var i=parseFloat(n.value);return O(i)?n.value:i}return(null===(r=n._vModifiers)||void 0===r?void 0:r.trim)&&"string"==typeof n.value?n.value.trim():n.value}var ne=function(t){var e,r=(null===(e=t.data)||void 0===e?void 0:e.attrs)||t.elm;return!("input"!==t.tag||r&&r.type)||"textarea"===t.tag||F(["text","password","search","email","tel","url","number"],null==r?void 0:r.type)};function ie(t){if(t.data){var e=t.data;if("model"in e)return e.model;if(t.data.directives)return Z(t.data.directives,(function(t){return"model"===t.name}))}}function oe(t){var e,r,n=ie(t);if(n)return{value:n.value};var i=ue(t),o=(null==i?void 0:i.prop)||"value";return(null===(e=t.componentOptions)||void 0===e?void 0:e.propsData)&&o in t.componentOptions.propsData?{value:t.componentOptions.propsData[o]}:(null===(r=t.data)||void 0===r?void 0:r.domProps)&&"value"in t.data.domProps?{value:t.data.domProps.value}:void 0}function ae(t){return Array.isArray(t)?t:Array.isArray(t.children)?t.children:t.componentOptions&&Array.isArray(t.componentOptions.children)?t.componentOptions.children:[]}function se(t){return Array.isArray(t)||void 0===oe(t)?ae(t).reduce((function(t,e){var r=se(e);return r.length&&t.push.apply(t,r),t}),[]):[t]}function ue(t){return t.componentOptions?t.componentOptions.Ctor.options.model:null}function ce(t,e,r){if(C(t[e]))t[e]=[r];else{if(L(t[e])&&t[e].fns){var n=t[e];return n.fns=Array.isArray(n.fns)?n.fns:[n.fns],void(F(n.fns,r)||n.fns.push(r))}if(L(t[e])){var i=t[e];t[e]=[i]}Array.isArray(t[e])&&!F(t[e],r)&&t[e].push(r)}}function de(t,e,r){t.data||(t.data={}),C(t.data.on)&&(t.data.on={}),ce(t.data.on,e,r)}function le(t,e,r){t.componentOptions&&(t.componentOptions.listeners||(t.componentOptions.listeners={}),ce(t.componentOptions.listeners,e,r))}function fe(t,e,r){t.componentOptions?le(t,e,r):de(t,e,r)}function pe(t,e){var r;return t.componentOptions?(ue(t)||{event:"input"}).event||"input":(null===(r=null==e?void 0:e.modifiers)||void 0===r?void 0:r.lazy)?"change":ne(t)?"input":"change"}function ve(t){return F(["input","select","textarea"],t.tag)}function he(t,e){var r=[];return Object.keys(t).reduce((function(r,n){return t[n].forEach((function(r){r.context||(t[n].context=e,r.data||(r.data={}),r.data.slot=n)})),r.concat(t[n])}),r)}function me(t){var e,r=null===(e=t.data)||void 0===e?void 0:e.attrs,n={};return r?("email"===r.type&&Ft.getRuleDefinition("email")&&(n.email=["multiple"in r]),r.pattern&&Ft.getRuleDefinition("regex")&&(n.regex=r.pattern),r.maxlength>=0&&Ft.getRuleDefinition("max")&&(n.max=r.maxlength),r.minlength>=0&&Ft.getRuleDefinition("min")&&(n.min=r.minlength),"number"===r.type&&(A(r.min)&&Ft.getRuleDefinition("min_value")&&(n.min_value=Number(r.min)),A(r.max)&&Ft.getRuleDefinition("max_value")&&(n.max_value=Number(r.max))),n):n}function be(t){var e,r=["input","select","textarea"],n=null===(e=t.data)||void 0===e?void 0:e.attrs;if(!F(r,t.tag)||!n)return{};var i={};return"required"in n&&!1!==n.required&&Ft.getRuleDefinition("required")&&(i.required="checkbox"!==n.type||[!0]),ne(t)?Mt(_t(_t({},i),me(t))):Mt(i)}function ye(t,e){return t.$scopedSlots.default?t.$scopedSlots.default(e)||[]:t.$slots.default||[]}function ge(t,e){return!(t._ignoreImmediate||!t.immediate)||!(j(t.value,e)||!t.normalizedEvents.length)||!!t._needsValidation||!t.initialized&&void 0===e}function _e(t){return _t(_t({},t.flags),{errors:t.errors,classes:t.classes,failedRules:t.failedRules,reset:function(){return t.reset()},validate:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return t.validate.apply(t,e)},ariaInput:{"aria-invalid":t.flags.invalid?"true":"false","aria-required":t.isRequired?"true":"false","aria-errormessage":"vee_"+t.id},ariaMsg:{id:"vee_"+t.id,"aria-live":t.errors.length?"assertive":"off"}})}function xe(t,e){t.initialized||(t.initialValue=e);var r=ge(t,e);if(t._needsValidation=!1,t.value=e,t._ignoreImmediate=!0,r){var n=function(){if(t.immediate||t.flags.validated)return ke(t);t.validateSilent()};t.initialized?n():t.$once("hook:mounted",(function(){return n()}))}}function we(t){return(L(t.mode)?t.mode:Dt[t.mode])(t)}function ke(t){var e=t.validateSilent();return t._pendingValidation=e,e.then((function(r){return e===t._pendingValidation&&(t.applyResult(r),t._pendingValidation=void 0),r}))}function Pe(t){t.$veeOnInput||(t.$veeOnInput=function(e){t.syncValue(e),t.setFlags({dirty:!0,pristine:!1})});var e=t.$veeOnInput;t.$veeOnBlur||(t.$veeOnBlur=function(){t.setFlags({touched:!0,untouched:!1})});var r=t.$veeOnBlur,n=t.$veeHandler,i=we(t);return n&&t.$veeDebounce===t.debounce||(n=R((function(){t.$nextTick((function(){t._pendingReset||ke(t),t._pendingReset=!1}))}),i.debounce||t.debounce),t.$veeHandler=n,t.$veeDebounce=t.debounce),{onInput:e,onBlur:r,onValidate:n}}function Oe(t,e){var r=oe(e);t._inputEventName=t._inputEventName||pe(e,ie(e)),xe(t,null==r?void 0:r.value);var n=Pe(t),i=n.onInput,o=n.onBlur,a=n.onValidate;fe(e,t._inputEventName,i),fe(e,"blur",o),t.normalizedEvents.forEach((function(t){fe(e,t,a)})),t.initialized=!0}var Ce=0;function $e(){var t="";return{errors:[],value:void 0,initialized:!1,initialValue:void 0,flags:M(),failedRules:{},isActive:!0,fieldName:t,id:""}}var Se=n.default.extend({name:"ValidationProvider",inject:{$_veeObserver:{from:"$_veeObserver",default:function(){return this.$vnode.context.$_veeObserver||(this.$vnode.context.$_veeObserver=Ie()),this.$vnode.context.$_veeObserver}}},props:{vid:{type:String,default:""},name:{type:String,default:null},mode:{type:[String,Function],default:function(){return Ot().mode}},rules:{type:[Object,String],default:null},immediate:{type:Boolean,default:!1},bails:{type:Boolean,default:function(){return Ot().bails}},skipIfEmpty:{type:Boolean,default:function(){return Ot().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(t,e){this._needsValidation=!te(t,e)}}},data:$e,computed:{fieldDeps:function(){var t=this;return Object.keys(this.normalizedRules).reduce((function(e,r){var n=Ut(t.normalizedRules[r]).map((function(t){return E(t)?t.__locatorRef:t.slice(1)}));return e.push.apply(e,n),n.forEach((function(e){Ze(t,e)})),e}),[])},normalizedEvents:function(){var t=this;return(we(this).on||[]).map((function(e){return"input"===e?t._inputEventName:e}))},isRequired:function(){var t=_t(_t({},this._resolvedRules),this.normalizedRules),e=Object.keys(t).some(Ft.isRequireRule);return this.flags.required=!!e,e},classes:function(){return je(Ot().classes,this.flags)},normalizedRules:function(){return Mt(this.rules)}},mounted:function(){var t=this,e=function(){if(t.flags.validated){var e=t._regenerateMap;if(e){var r=[],n={};return Object.keys(e).forEach((function(t){var i=e[t]();r.push(i),n[t]=i})),void t.applyResult({errors:r,failedRules:n,regenerateMap:e})}t.validate()}};St.$on("change:locale",e),this.$on("hook:beforeDestroy",(function(){St.$off("change:locale",e)}))},render:function(t){var e=this;this.registerField();var r=ye(this,_e(this));if(this.detectInput){var n=se(r);n.length&&n.forEach((function(t,r){var n,i,o,a,s,u;if(F(["checkbox","radio"],null===(i=null===(n=t.data)||void 0===n?void 0:n.attrs)||void 0===i?void 0:i.type)||!(r>0)){var c=Ot().useConstraintAttrs?be(t):{};te(e._resolvedRules,c)||(e._needsValidation=!0),ve(t)&&(e.fieldName=(null===(a=null===(o=t.data)||void 0===o?void 0:o.attrs)||void 0===a?void 0:a.name)||(null===(u=null===(s=t.data)||void 0===s?void 0:s.attrs)||void 0===u?void 0:u.id)),e._resolvedRules=c,Oe(e,t)}}))}return this.slim&&r.length<=1?r[0]:t(this.tag,r)},beforeDestroy:function(){this.$_veeObserver.unobserve(this.id)},activated:function(){this.isActive=!0},deactivated:function(){this.isActive=!1},methods:{setFlags:function(t){var e=this;Object.keys(t).forEach((function(r){e.flags[r]=t[r]}))},syncValue:function(t){var e=re(t);this.value=e,this.flags.changed=!te(this.initialValue,e)},reset:function(){var t=this;this.errors=[],this.initialValue=this.value;var e=M();e.required=this.isRequired,this.setFlags(e),this.failedRules={},this.validateSilent(),this._pendingValidation=void 0,this._pendingReset=!0,setTimeout((function(){t._pendingReset=!1}),this.debounce)},validate:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return xt(this,void 0,void 0,(function(){return wt(this,(function(e){return t.length>0&&this.syncValue(t[0]),[2,ke(this)]}))}))},validateSilent:function(){return xt(this,void 0,void 0,(function(){var t,e;return wt(this,(function(r){switch(r.label){case 0:return this.setFlags({pending:!0}),t=_t(_t({},this._resolvedRules),this.normalizedRules),Object.defineProperty(t,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),[4,qt(this.value,t,_t(_t({name:this.name||this.fieldName},Ae(this)),{bails:this.bails,skipIfEmpty:this.skipIfEmpty,isInitial:!this.initialized,customMessages:this.customMessages}))];case 1:return e=r.sent(),this.setFlags({pending:!1,valid:e.valid,invalid:!e.valid}),void 0!==e.required&&this.setFlags({required:e.required}),[2,e]}}))}))},setErrors:function(t){this.applyResult({errors:t,failedRules:{}})},applyResult:function(t){var e=t.errors,r=t.failedRules,n=t.regenerateMap;this.errors=e,this._regenerateMap=n,this.failedRules=_t({},r||{}),this.setFlags({valid:!e.length,passed:!e.length,invalid:!!e.length,failed:!!e.length,validated:!0,changed:!te(this.value,this.initialValue)})},registerField:function(){Ee(this)},checkComputesRequiredState:function(){var t=_t(_t({},this._resolvedRules),this.normalizedRules);return Object.keys(t).some(Ft.isRequireRule)}}});function je(t,e){for(var r={},n=Object.keys(e),i=n.length,o=function(i){var o=n[i],a=t&&t[o]||o,s=e[o];return C(s)?"continue":"valid"!==o&&"invalid"!==o||e.validated?void("string"==typeof a?r[a]=s:Array.isArray(a)&&a.forEach((function(t){r[t]=s}))):"continue"},a=0;a<i;a++)o(a);return r}function Ae(t){var e=t.$_veeObserver.refs,r={names:{},values:{}};return t.fieldDeps.reduce((function(t,r){return e[r]?(t.values[r]=e[r].value,t.names[r]=e[r].name,t):t}),r)}function Le(t){return t.vid?t.vid:t.name?t.name:t.id?t.id:t.fieldName?t.fieldName:"_vee_"+ ++Ce}function Ee(t){var e=Le(t),r=t.id;!t.isActive||r===e&&t.$_veeObserver.refs[r]||(r!==e&&t.$_veeObserver.refs[r]===t&&t.$_veeObserver.unobserve(r),t.id=e,t.$_veeObserver.observe(t))}function Ie(){return{refs:{},observe:function(t){this.refs[t.id]=t},unobserve:function(t){delete this.refs[t]}}}function Ze(t,e,r){void 0===r&&(r=!0);var n=t.$_veeObserver.refs;if(t._veeWatchers||(t._veeWatchers={}),!n[e]&&r)return t.$once("hook:mounted",(function(){Ze(t,e,!1)}));!L(t._veeWatchers[e])&&n[e]&&(t._veeWatchers[e]=n[e].$watch("value",(function(){var e=t.checkComputesRequiredState();t.flags.validated&&(t._needsValidation=!0,t.validate()),e&&!t.flags.validated&&t.validateSilent()})))}var Fe=[["pristine","every"],["dirty","some"],["touched","some"],["untouched","every"],["valid","every"],["invalid","some"],["pending","some"],["validated","every"],["changed","some"],["passed","every"],["failed","some"]],Te=0;function ze(){return{id:"",refs:{},observers:[],errors:{},flags:Ve(),fields:{}}}function De(){return{$_veeObserver:this}}var Ne=n.default.extend({name:"ValidationObserver",provide:De,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_"+Te++}},slim:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:ze,created:function(){var t=this;this.id=this.vid,Be(this);var e=R((function(e){var r=e.errors,n=e.flags,i=e.fields;t.errors=r,t.flags=n,t.fields=i}),16);this.$watch(Ue,e)},activated:function(){Be(this)},deactivated:function(){Me(this)},beforeDestroy:function(){Me(this)},render:function(t){var e=ye(this,Re(this));return this.slim&&e.length<=1?e[0]:t(this.tag,{on:this.$listeners},e)},methods:{observe:function(t,e){var r;void 0===e&&(e="provider"),"observer"!==e?this.refs=_t(_t({},this.refs),((r={})[t.id]=t,r)):this.observers.push(t)},unobserve:function(t,e){if(void 0===e&&(e="provider"),"provider"!==e){var r=I(this.observers,(function(e){return e.id===t}));-1!==r&&this.observers.splice(r,1)}else{if(!this.refs[t])return;this.$delete(this.refs,t)}},validateWithInfo:function(t){var e=(void 0===t?{}:t).silent,r=void 0!==e&&e;return xt(this,void 0,void 0,(function(){var t,e,n,i,o,a;return wt(this,(function(s){switch(s.label){case 0:return[4,Promise.all(kt(D(this.refs).filter((function(t){return!t.disabled})).map((function(t){return t[r?"validateSilent":"validate"]().then((function(t){return t.valid}))})),this.observers.filter((function(t){return!t.disabled})).map((function(t){return t.validate({silent:r})}))))];case 1:return t=s.sent(),e=t.every((function(t){return t})),n=Ue.call(this),i=n.errors,o=n.flags,a=n.fields,this.errors=i,this.flags=o,this.fields=a,[2,{errors:i,flags:o,fields:a,isValid:e}]}}))}))},validate:function(t){var e=(void 0===t?{}:t).silent,r=void 0!==e&&e;return xt(this,void 0,void 0,(function(){return wt(this,(function(t){switch(t.label){case 0:return[4,this.validateWithInfo({silent:r})];case 1:return[2,t.sent().isValid]}}))}))},handleSubmit:function(t){return xt(this,void 0,void 0,(function(){return wt(this,(function(e){switch(e.label){case 0:return[4,this.validate()];case 1:return e.sent()&&t?[2,t()]:[2]}}))}))},reset:function(){return kt(D(this.refs),this.observers).forEach((function(t){return t.reset()}))},setErrors:function(t){var e=this;Object.keys(t).forEach((function(r){var n=e.refs[r];if(n){var i=t[r]||[];i="string"==typeof i?[i]:i,n.setErrors(i)}})),this.observers.forEach((function(e){e.setErrors(t)}))}}});function Me(t){t.$_veeObserver&&t.$_veeObserver.unobserve(t.id,"observer")}function Be(t){t.$_veeObserver&&t.$_veeObserver.observe(t,"observer")}function Re(t){return _t(_t({},t.flags),{errors:t.errors,fields:t.fields,validate:t.validate,validateWithInfo:t.validateWithInfo,passes:t.handleSubmit,handleSubmit:t.handleSubmit,reset:t.reset})}function Ve(){return _t(_t({},M()),{valid:!0,invalid:!1})}function Ue(){for(var t=kt(D(this.refs),this.observers.filter((function(t){return!t.disabled}))),e={},r=Ve(),n={},i=t.length,o=0;o<i;o++){var a=t[o];Array.isArray(a.errors)?(e[a.id]=a.errors,n[a.id]=_t({id:a.id,name:a.name,failedRules:a.failedRules},a.flags)):(e=_t(_t({},e),a.errors),n=_t(_t({},n),a.fields))}return Fe.forEach((function(e){var n=e[0],i=e[1];r[n]=t[i]((function(t){return t.flags[n]}))})),{errors:e,flags:r,fields:n}}function qe(t,e){var r;void 0===e&&(e=B);var n="options"in t?t.options:t,i=Se.options,o={name:(n.name||"AnonymousHoc")+"WithValidation",props:_t({},i.props),data:i.data,computed:_t({},i.computed),methods:_t({},i.methods),beforeDestroy:i.beforeDestroy,inject:i.inject},a=(null===(r=null==n?void 0:n.model)||void 0===r?void 0:r.event)||"input";return o.render=function(t){var r;this.registerField();var i=_e(this),o=_t({},this.$listeners),s=ie(this.$vnode);this._inputEventName=this._inputEventName||pe(this.$vnode,s);var u=oe(this.$vnode);xe(this,null==u?void 0:u.value);var c=Pe(this),d=c.onInput,l=c.onBlur,f=c.onValidate;ce(o,a,d),ce(o,"blur",l),this.normalizedEvents.forEach((function(t){ce(o,t,f)}));var p=(ue(this.$vnode)||{prop:"value"}).prop,v=_t(_t(_t({},this.$attrs),((r={})[p]=null==s?void 0:s.value,r)),e(i));return t(n,{attrs:this.$attrs,props:v,on:o,scopedSlots:this.$scopedSlots},he(this.$slots,this.$vnode.context))},o}var Ge="3.4.15";Object.keys(gt).map((function(t){return{schema:gt[t],name:t}})).forEach((function(t){Tt(t.name,t.schema)})),Et("en",i),t.Rules=gt,t.ValidationObserver=Ne,t.ValidationProvider=Se,t.configure=$t,t.extend=Tt,t.localeChanged=jt,t.localize=Et,t.normalizeRules=Mt,t.setInteractionMode=Nt,t.validate=qt,t.version=Ge,t.withValidation=qe,Object.defineProperty(t,"__esModule",{value:!0})}(e,r(538))},2595:(t,e,r)=>{"use strict";r.d(e,{Z:()=>v});var n=function(){var t={base:"https://twemoji.maxcdn.com/v/13.1.1/",ext:".png",size:"72x72",className:"emoji",convert:{fromCodePoint:function(t){var e="string"==typeof t?parseInt(t,16):t;if(e<65536)return s(e);return s(55296+((e-=65536)>>10),56320+(1023&e))},toCodePoint:b},onerror:function(){this.parentNode&&this.parentNode.replaceChild(u(this.alt,!1),this)},parse:function(e,r){r&&"function"!=typeof r||(r={callback:r});return("string"==typeof e?p:f)(e,{callback:r.callback||c,attributes:"function"==typeof r.attributes?r.attributes:h,base:"string"==typeof r.base?r.base:t.base,ext:r.ext||t.ext,size:r.folder||(n=r.size||t.size,"number"==typeof n?n+"x"+n:n),className:r.className||t.className,onerror:r.onerror||t.onerror});var n},replace:m,test:function(t){r.lastIndex=0;var e=r.test(t);return r.lastIndex=0,e}},e={"&":"&","<":"<",">":">","'":"'",'"':"""},r=/(?:\ud83d\udc68\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffc-\udfff]|\ud83e\uddd1\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb\udffd-\udfff]|\ud83e\uddd1\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb\udffc\udffe\udfff]|\ud83e\uddd1\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb-\udffd\udfff]|\ud83e\uddd1\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb-\udffe]|\ud83d\udc68\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffc-\udfff]|\ud83d\udc68\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffd-\udfff]|\ud83d\udc68\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffc\udffe\udfff]|\ud83d\udc68\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffd\udfff]|\ud83d\udc68\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffe]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffc-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffc-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffd-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb\udffd-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffc\udffe\udfff]|\ud83d\udc69\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb\udffc\udffe\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffd\udfff]|\ud83d\udc69\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb-\udffd\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffe]|\ud83d\udc69\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb-\udffe]|\ud83e\uddd1\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffc-\udfff]|\ud83e\uddd1\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb\udffd-\udfff]|\ud83e\uddd1\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb\udffc\udffe\udfff]|\ud83e\uddd1\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb-\udffd\udfff]|\ud83e\uddd1\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb-\udffe]|\ud83e\uddd1\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d[\udc68\udc69]|\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc68|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d[\udc68\udc69]|\ud83e\uddd1\u200d\ud83e\udd1d\u200d\ud83e\uddd1|\ud83d\udc6b\ud83c[\udffb-\udfff]|\ud83d\udc6c\ud83c[\udffb-\udfff]|\ud83d\udc6d\ud83c[\udffb-\udfff]|\ud83d\udc8f\ud83c[\udffb-\udfff]|\ud83d\udc91\ud83c[\udffb-\udfff]|\ud83d[\udc6b-\udc6d\udc8f\udc91])|(?:\ud83d[\udc68\udc69]|\ud83e\uddd1)(?:\ud83c[\udffb-\udfff])?\u200d(?:\u2695\ufe0f|\u2696\ufe0f|\u2708\ufe0f|\ud83c[\udf3e\udf73\udf7c\udf84\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddaf-\uddb3\uddbc\uddbd])|(?:\ud83c[\udfcb\udfcc]|\ud83d[\udd74\udd75]|\u26f9)((?:\ud83c[\udffb-\udfff]|\ufe0f)\u200d[\u2640\u2642]\ufe0f)|(?:\ud83c[\udfc3\udfc4\udfca]|\ud83d[\udc6e\udc70\udc71\udc73\udc77\udc81\udc82\udc86\udc87\ude45-\ude47\ude4b\ude4d\ude4e\udea3\udeb4-\udeb6]|\ud83e[\udd26\udd35\udd37-\udd39\udd3d\udd3e\uddb8\uddb9\uddcd-\uddcf\uddd4\uddd6-\udddd])(?:\ud83c[\udffb-\udfff])?\u200d[\u2640\u2642]\ufe0f|(?:\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83c\udff3\ufe0f\u200d\u26a7\ufe0f|\ud83c\udff3\ufe0f\u200d\ud83c\udf08|\ud83d\ude36\u200d\ud83c\udf2b\ufe0f|\u2764\ufe0f\u200d\ud83d\udd25|\u2764\ufe0f\u200d\ud83e\ude79|\ud83c\udff4\u200d\u2620\ufe0f|\ud83d\udc15\u200d\ud83e\uddba|\ud83d\udc3b\u200d\u2744\ufe0f|\ud83d\udc41\u200d\ud83d\udde8|\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc6f\u200d\u2640\ufe0f|\ud83d\udc6f\u200d\u2642\ufe0f|\ud83d\ude2e\u200d\ud83d\udca8|\ud83d\ude35\u200d\ud83d\udcab|\ud83e\udd3c\u200d\u2640\ufe0f|\ud83e\udd3c\u200d\u2642\ufe0f|\ud83e\uddde\u200d\u2640\ufe0f|\ud83e\uddde\u200d\u2642\ufe0f|\ud83e\udddf\u200d\u2640\ufe0f|\ud83e\udddf\u200d\u2642\ufe0f|\ud83d\udc08\u200d\u2b1b)|[#*0-9]\ufe0f?\u20e3|(?:[©®\u2122\u265f]\ufe0f)|(?:\ud83c[\udc04\udd70\udd71\udd7e\udd7f\ude02\ude1a\ude2f\ude37\udf21\udf24-\udf2c\udf36\udf7d\udf96\udf97\udf99-\udf9b\udf9e\udf9f\udfcd\udfce\udfd4-\udfdf\udff3\udff5\udff7]|\ud83d[\udc3f\udc41\udcfd\udd49\udd4a\udd6f\udd70\udd73\udd76-\udd79\udd87\udd8a-\udd8d\udda5\udda8\uddb1\uddb2\uddbc\uddc2-\uddc4\uddd1-\uddd3\udddc-\uddde\udde1\udde3\udde8\uddef\uddf3\uddfa\udecb\udecd-\udecf\udee0-\udee5\udee9\udef0\udef3]|[\u203c\u2049\u2139\u2194-\u2199\u21a9\u21aa\u231a\u231b\u2328\u23cf\u23ed-\u23ef\u23f1\u23f2\u23f8-\u23fa\u24c2\u25aa\u25ab\u25b6\u25c0\u25fb-\u25fe\u2600-\u2604\u260e\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262a\u262e\u262f\u2638-\u263a\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267b\u267f\u2692-\u2697\u2699\u269b\u269c\u26a0\u26a1\u26a7\u26aa\u26ab\u26b0\u26b1\u26bd\u26be\u26c4\u26c5\u26c8\u26cf\u26d1\u26d3\u26d4\u26e9\u26ea\u26f0-\u26f5\u26f8\u26fa\u26fd\u2702\u2708\u2709\u270f\u2712\u2714\u2716\u271d\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u2764\u27a1\u2934\u2935\u2b05-\u2b07\u2b1b\u2b1c\u2b50\u2b55\u3030\u303d\u3297\u3299])(?:\ufe0f|(?!\ufe0e))|(?:(?:\ud83c[\udfcb\udfcc]|\ud83d[\udd74\udd75\udd90]|[\u261d\u26f7\u26f9\u270c\u270d])(?:\ufe0f|(?!\ufe0e))|(?:\ud83c[\udf85\udfc2-\udfc4\udfc7\udfca]|\ud83d[\udc42\udc43\udc46-\udc50\udc66-\udc69\udc6e\udc70-\udc78\udc7c\udc81-\udc83\udc85-\udc87\udcaa\udd7a\udd95\udd96\ude45-\ude47\ude4b-\ude4f\udea3\udeb4-\udeb6\udec0\udecc]|\ud83e[\udd0c\udd0f\udd18-\udd1c\udd1e\udd1f\udd26\udd30-\udd39\udd3d\udd3e\udd77\uddb5\uddb6\uddb8\uddb9\uddbb\uddcd-\uddcf\uddd1-\udddd]|[\u270a\u270b]))(?:\ud83c[\udffb-\udfff])?|(?:\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f|\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc73\udb40\udc63\udb40\udc74\udb40\udc7f|\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc77\udb40\udc6c\udb40\udc73\udb40\udc7f|\ud83c\udde6\ud83c[\udde8-\uddec\uddee\uddf1\uddf2\uddf4\uddf6-\uddfa\uddfc\uddfd\uddff]|\ud83c\udde7\ud83c[\udde6\udde7\udde9-\uddef\uddf1-\uddf4\uddf6-\uddf9\uddfb\uddfc\uddfe\uddff]|\ud83c\udde8\ud83c[\udde6\udde8\udde9\uddeb-\uddee\uddf0-\uddf5\uddf7\uddfa-\uddff]|\ud83c\udde9\ud83c[\uddea\uddec\uddef\uddf0\uddf2\uddf4\uddff]|\ud83c\uddea\ud83c[\udde6\udde8\uddea\uddec\udded\uddf7-\uddfa]|\ud83c\uddeb\ud83c[\uddee-\uddf0\uddf2\uddf4\uddf7]|\ud83c\uddec\ud83c[\udde6\udde7\udde9-\uddee\uddf1-\uddf3\uddf5-\uddfa\uddfc\uddfe]|\ud83c\udded\ud83c[\uddf0\uddf2\uddf3\uddf7\uddf9\uddfa]|\ud83c\uddee\ud83c[\udde8-\uddea\uddf1-\uddf4\uddf6-\uddf9]|\ud83c\uddef\ud83c[\uddea\uddf2\uddf4\uddf5]|\ud83c\uddf0\ud83c[\uddea\uddec-\uddee\uddf2\uddf3\uddf5\uddf7\uddfc\uddfe\uddff]|\ud83c\uddf1\ud83c[\udde6-\udde8\uddee\uddf0\uddf7-\uddfb\uddfe]|\ud83c\uddf2\ud83c[\udde6\udde8-\udded\uddf0-\uddff]|\ud83c\uddf3\ud83c[\udde6\udde8\uddea-\uddec\uddee\uddf1\uddf4\uddf5\uddf7\uddfa\uddff]|\ud83c\uddf4\ud83c\uddf2|\ud83c\uddf5\ud83c[\udde6\uddea-\udded\uddf0-\uddf3\uddf7-\uddf9\uddfc\uddfe]|\ud83c\uddf6\ud83c\udde6|\ud83c\uddf7\ud83c[\uddea\uddf4\uddf8\uddfa\uddfc]|\ud83c\uddf8\ud83c[\udde6-\uddea\uddec-\uddf4\uddf7-\uddf9\uddfb\uddfd-\uddff]|\ud83c\uddf9\ud83c[\udde6\udde8\udde9\uddeb-\udded\uddef-\uddf4\uddf7\uddf9\uddfb\uddfc\uddff]|\ud83c\uddfa\ud83c[\udde6\uddec\uddf2\uddf3\uddf8\uddfe\uddff]|\ud83c\uddfb\ud83c[\udde6\udde8\uddea\uddec\uddee\uddf3\uddfa]|\ud83c\uddfc\ud83c[\uddeb\uddf8]|\ud83c\uddfd\ud83c\uddf0|\ud83c\uddfe\ud83c[\uddea\uddf9]|\ud83c\uddff\ud83c[\udde6\uddf2\uddfc]|\ud83c[\udccf\udd8e\udd91-\udd9a\udde6-\uddff\ude01\ude32-\ude36\ude38-\ude3a\ude50\ude51\udf00-\udf20\udf2d-\udf35\udf37-\udf7c\udf7e-\udf84\udf86-\udf93\udfa0-\udfc1\udfc5\udfc6\udfc8\udfc9\udfcf-\udfd3\udfe0-\udff0\udff4\udff8-\udfff]|\ud83d[\udc00-\udc3e\udc40\udc44\udc45\udc51-\udc65\udc6a\udc6f\udc79-\udc7b\udc7d-\udc80\udc84\udc88-\udc8e\udc90\udc92-\udca9\udcab-\udcfc\udcff-\udd3d\udd4b-\udd4e\udd50-\udd67\udda4\uddfb-\ude44\ude48-\ude4a\ude80-\udea2\udea4-\udeb3\udeb7-\udebf\udec1-\udec5\uded0-\uded2\uded5-\uded7\udeeb\udeec\udef4-\udefc\udfe0-\udfeb]|\ud83e[\udd0d\udd0e\udd10-\udd17\udd1d\udd20-\udd25\udd27-\udd2f\udd3a\udd3c\udd3f-\udd45\udd47-\udd76\udd78\udd7a-\uddb4\uddb7\uddba\uddbc-\uddcb\uddd0\uddde-\uddff\ude70-\ude74\ude78-\ude7a\ude80-\ude86\ude90-\udea8\udeb0-\udeb6\udec0-\udec2\uded0-\uded6]|[\u23e9-\u23ec\u23f0\u23f3\u267e\u26ce\u2705\u2728\u274c\u274e\u2753-\u2755\u2795-\u2797\u27b0\u27bf\ue50a])|\ufe0f/g,n=/\uFE0F/g,i=String.fromCharCode(8205),o=/[&<>'"]/g,a=/^(?:iframe|noframes|noscript|script|select|style|textarea)$/,s=String.fromCharCode;return t;function u(t,e){return document.createTextNode(e?t.replace(n,""):t)}function c(t,e){return"".concat(e.base,e.size,"/",t,e.ext)}function d(t,e){for(var r,n,i=t.childNodes,o=i.length;o--;)3===(n=(r=i[o]).nodeType)?e.push(r):1!==n||"ownerSVGElement"in r||a.test(r.nodeName.toLowerCase())||d(r,e);return e}function l(t){return b(t.indexOf(i)<0?t.replace(n,""):t)}function f(t,e){for(var n,i,o,a,s,c,f,p,v,h,m,b,y,g=d(t,[]),_=g.length;_--;){for(o=!1,a=document.createDocumentFragment(),c=(s=g[_]).nodeValue,p=0;f=r.exec(c);){if((v=f.index)!==p&&a.appendChild(u(c.slice(p,v),!0)),b=l(m=f[0]),p=v+m.length,y=e.callback(b,e),b&&y){for(i in(h=new Image).onerror=e.onerror,h.setAttribute("draggable","false"),n=e.attributes(m,b))n.hasOwnProperty(i)&&0!==i.indexOf("on")&&!h.hasAttribute(i)&&h.setAttribute(i,n[i]);h.className=e.className,h.alt=m,h.src=y,o=!0,a.appendChild(h)}h||a.appendChild(u(m,!1)),h=null}o&&(p<c.length&&a.appendChild(u(c.slice(p),!0)),s.parentNode.replaceChild(a,s))}return t}function p(t,e){return m(t,(function(t){var r,n,i=t,a=l(t),s=e.callback(a,e);if(a&&s){for(n in i="<img ".concat('class="',e.className,'" ','draggable="false" ','alt="',t,'"',' src="',s,'"'),r=e.attributes(t,a))r.hasOwnProperty(n)&&0!==n.indexOf("on")&&-1===i.indexOf(" "+n+"=")&&(i=i.concat(" ",n,'="',r[n].replace(o,v),'"'));i=i.concat("/>")}return i}))}function v(t){return e[t]}function h(){return null}function m(t,e){return String(t).replace(r,e)}function b(t,e){for(var r=[],n=0,i=0,o=0;o<t.length;)n=t.charCodeAt(o++),i?(r.push((65536+(i-55296<<10)+(n-56320)).toString(16)),i=0):55296<=n&&n<=56319?i=n:r.push(n.toString(16));return r.join(e||"-")}}();const i=n;function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){u(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function u(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==o(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===o(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const c={name:"Emoji",props:["emoji"],data:function(){return{isApple:!1,sizeClass:void 0}},computed:s(s({},(0,r(629).Se)(["config"])),{},{transferEmoji:function(){return i.parse(this.emoji.char,{folder:"svg",ext:".svg",attributes:function(){return{loading:"lazy"}}})}})};var d=r(3379),l=r.n(d),f=r(6933),p={insert:"head",singleton:!1};l()(f.Z,p);f.Z.locals;const v=(0,r(1900).Z)(c,(function(){var t=this,e=t._self._c;return t.emoji?e("div",["twemoji"===t.config.defaultEmoji?e("div",{staticStyle:{"font-size":"inherit",transform:"scale(0.95)"},domProps:{innerHTML:t._s(t.transferEmoji)}}):t._e(),t._v(" "),"applemoji"===t.config.defaultEmoji?e("div",{staticStyle:{"font-size":"inherit"}},[t._v("\n "+t._s(t.emoji.char)+"\n ")]):t._e()]):t._e()}),[],!1,null,null,null).exports},4787:(t,e,r)=>{"use strict";r.d(e,{Z:()=>L});var n=r(2705),i=r(609),o=r(3140),a=r(1528),s=r(4253),u=r(9101),c=r(629),d=r(5399);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach((function(e){v(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function v(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==l(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===l(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const h={name:"FilePreviewToolbar",components:{MoreHorizontalIcon:u.xhG,PopoverWrapper:n.Z,ToolbarButton:s.Z,PopoverItem:i.Z,OptionGroup:o.Z,Option:a.Z,XIcon:u.b0D},computed:p(p({},(0,c.Se)(["fastPreview","clipboard","entries"])),{},{currentFile:function(){return this.fastPreview?this.fastPreview:this.clipboard[0]},sharingTitle:function(){return this.currentFile.data.relationships.shared?this.$t("edit_sharing"):this.$t("share")},isImage:function(){return"image"===this.currentFile.data.type},isPdf:function(){return"pdf"===this.currentFile.data.attributes.mimetype},files:function(){var t=this,e=[];return this.entries.map((function(r){"pdf"===t.currentFile.data.attributes.mimetype?"pdf"===r.data.attributes.mimetype&&e.push(r):r.data.type===t.currentFile.data.type&&e.push(r)})),e},showingImageIndex:function(){var t=this,e=void 0;return this.files.forEach((function(r,n){r.data.id===t.currentFile.data.id&&(e=n+1)})),e},canShareItem:function(){return this.$isThisRoute(this.$route,["Files","RecentUploads","MySharedItems"])}}),methods:{showItemContextMenu:function(){this.$isMobile()?(d.U.$emit("mobile-context-menu:show",this.currentFile),this.$showMobileMenu("file-menu")):d.U.$emit("popover:open","file-preview-contextmenu")},increaseSizeOfPDF:function(){d.U.$emit("document-zoom:in")},decreaseSizeOfPDF:function(){d.U.$emit("document-zoom:out")},printMethod:function(){var t=document.getElementById("printable-file"),e=window.open("","","height=700,width=700");e.document.write(t.outerHTML),e.document.close(),e.print()},downloadItem:function(){this.$downloadFile(this.currentFile.data.attributes.file_url,this.currentFile.data.attributes.name+"."+this.currentFile.data.attributes.mimetype)},closeFullPreview:function(){d.U.$emit("file-preview:hide")}}};var m=r(1900);const b=(0,m.Z)(h,(function(){var t=this,e=t._self._c;return t.currentFile?e("div",{staticClass:"select-none items-center px-3.5 py-4 lg:grid lg:grid-cols-3 lg:py-3"},[e("div",{staticClass:"flex items-center justify-between lg:w-auto lg:justify-start"},[e("div",{staticClass:"order-last -m-3 cursor-pointer p-3 lg:order-none",on:{click:t.closeFullPreview}},[e("x-icon",{staticClass:"vue-feather",attrs:{size:"16"}})],1),t._v(" "),e("div",{staticClass:"flex items-center"},[e("div",{staticClass:"mr-3 ml-0 flex items-center lg:mx-3"},[e("span",{staticClass:"inline-block max-w-[150px] xs:max-w-[220px] md:max-w-[240px] overflow-hidden text-ellipsis whitespace-nowrap text-sm font-bold"},[t._v("\n "+t._s(t.currentFile.data.attributes.name)+"\n ")]),t._v(" "),t.fastPreview?t._e():e("span",{staticClass:"ml-1 text-sm font-bold"},[t._v("\n ("+t._s(t.showingImageIndex+" "+t.$t("pronouns.of")+" "+t.files.length)+")\n ")])]),t._v(" "),e("PopoverWrapper",[e("span",{staticClass:"-m-3 p-3",on:{click:function(e){return e.stopPropagation(),t.showItemContextMenu.apply(null,arguments)}}},[e("div",{staticClass:"inline-block rounded-md bg-light-background py-0.5 px-1.5 align-middle transition-all duration-200 dark:bg-dark-foreground lg:bg-transparent"},[e("more-horizontal-icon",{attrs:{size:"14"}})],1)]),t._v(" "),e("PopoverItem",{attrs:{name:"file-preview-contextmenu",side:"right"}},[e("OptionGroup",[e("Option",{attrs:{title:t.$t("rename"),icon:"rename"},nativeOn:{click:function(e){return t.$renameFileOrFolder(t.currentFile)}}}),t._v(" "),e("Option",{attrs:{title:t.$t("move"),icon:"move-item"},nativeOn:{click:function(e){return t.$moveFileOrFolder(t.currentFile)}}}),t._v(" "),t.$isThisRoute(t.$route,["Public","RequestUpload","SharedWithMe"])?t._e():e("Option",{attrs:{title:t.sharingTitle,icon:"share"},nativeOn:{click:function(e){return t.$shareFileOrFolder(t.currentFile)}}}),t._v(" "),e("Option",{staticClass:"menu-option",attrs:{title:t.$t("delete"),icon:"trash"},nativeOn:{click:function(e){return t.$deleteFileOrFolder(t.currentFile)}}})],1),t._v(" "),t.$isThisRoute(t.$route,["RequestUpload"])?t._e():e("OptionGroup",[e("Option",{attrs:{title:t.$t("download"),icon:"download"},nativeOn:{click:function(e){return t.downloadItem.apply(null,arguments)}}})],1)],1)],1)],1)]),t._v(" "),e("small",{staticClass:"hidden text-center text-tiny font-normal text-gray-600 lg:block"},[t._v("\n "+t._s(t.currentFile.data.attributes.filesize)+", "+t._s(t.currentFile.data.attributes.created_at)+"\n ")]),t._v(" "),e("div",{staticClass:"hidden items-center lg:flex lg:justify-end"},[t.isPdf?e("div",[e("ToolbarButton",{attrs:{source:"zoom-out",action:t.$t("pdf_zoom_out")},nativeOn:{click:function(e){return t.decreaseSizeOfPDF.apply(null,arguments)}}}),t._v(" "),e("ToolbarButton",{attrs:{source:"zoom-in",action:t.$t("pdf_zoom_in")},nativeOn:{click:function(e){return t.increaseSizeOfPDF.apply(null,arguments)}}})],1):t._e(),t._v(" "),e("div",{staticClass:"ml-5"},[t.$isThisRoute(t.$route,["RequestUpload"])?t._e():e("ToolbarButton",{attrs:{source:"download",action:t.$t("download_item")},nativeOn:{click:function(e){return t.downloadItem.apply(null,arguments)}}}),t._v(" "),t.canShareItem?e("ToolbarButton",{class:{"is-inactive":!t.canShareItem},attrs:{source:"share",action:t.$t("share_item")},nativeOn:{click:function(e){return t.$shareFileOrFolder(t.currentFile)}}}):t._e(),t._v(" "),t.isImage?e("ToolbarButton",{attrs:{source:"print",action:t.$t("print")},nativeOn:{click:function(e){return t.printMethod()}}}):t._e()],1)])]):t._e()}),[],!1,null,null,null).exports;var y=r(2320),g=r(2091);const x={name:"Audio",props:["file"]};const w=(0,m.Z)(x,(function(){var t=this;return(0,t._self._c)("audio",{staticClass:"file audio",class:{"file-shadow":!t.$isMobile()},attrs:{src:t.file.data.attributes.file_url,controls:""}})}),[],!1,null,null,null).exports;var k=r(3646),P=r(3592);function O(t){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(t)}function C(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function $(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?C(Object(r),!0).forEach((function(e){S(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function S(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==O(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==O(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===O(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const j={name:"FilePreviewMedia",components:{PdfFile:function(){return r.e(5043).then(r.bind(r,5043))},ChevronRightIcon:u.XCv,ChevronLeftIcon:u.wyc,ToolbarButton:s.Z,ImageFile:g.Z,ItemGrid:y.Z,Spinner:P.Z,Audio:w,Video:k.Z},computed:$($({},(0,c.Se)(["fastPreview","clipboard","entries"])),{},{currentFile:function(){return this.fastPreview?this.fastPreview:this.files[Math.abs(this.currentIndex)%this.files.length]},isFile:function(){return"file"===this.currentFile.data.type},isPDF:function(){return"pdf"===this.currentFile.data.attributes.mimetype},isVideo:function(){return"video"===this.currentFile.data.type},isAudio:function(){return"audio"===this.currentFile.data.type},isImage:function(){return"image"===this.currentFile.data.type}}),data:function(){return{currentIndex:0,files:[]}},watch:{currentIndex:function(){this.$store.commit("CLIPBOARD_REPLACE",this.currentFile)}},methods:{checkGroupInView:_.debounce((function(){var t=this;this.files.forEach((function(e,r){var n=document.getElementById("group-".concat(e.data.id)).getBoundingClientRect(),i=document.getElementById("group-box").getBoundingClientRect(),o=document.querySelector("#group-".concat(e.data.id," video"));o&&!o.paused&&o.pause(),n.left===i.left&&(t.currentIndex=r)}))}),50),getFilesForView:function(){var t=this,e=this.clipboard[0];this.entries.map((function(r){"pdf"===e.data.attributes.mimetype?"pdf"===r.data.attributes.mimetype&&t.files.push(r):r.data.type===e.data.type&&t.files.push(r)})),this.files.forEach((function(e,r){e.data.id===t.clipboard[0].data.id&&(t.currentIndex=r)})),this.$isMobile()&&this.$nextTick((function(){var e=document.getElementById("group-".concat(t.files[t.currentIndex].data.id));t.$refs.scrollBox.scrollLeft=e.getBoundingClientRect().left}))},next:function(){!this.files.length>1||(this.currentIndex+=1,this.currentIndex>this.files.length-1&&(this.currentIndex=0))},prev:function(){!this.files.length>1||(this.currentIndex-=1,this.currentIndex<0&&(this.currentIndex=this.files.length-1))}},mounted:function(){var t=this;d.U.$on("file-preview:next",(function(){return t.next()})),d.U.$on("file-preview:prev",(function(){return t.prev()})),d.U.$on("file:deleted",(function(e){t.files=t.files.filter((function(t){return t.data.id!==e})),0===t.files.length?d.U.$emit("file-preview:hide"):t.$store.commit("CLIPBOARD_REPLACE",t.currentFile)})),this.fastPreview||this.getFilesForView()},destroyed:function(){d.U.$off("file:deleted")}};const A={name:"FilePreview",components:{FilePreviewToolbar:b,FilePreviewMedia:(0,m.Z)(j,(function(){var t=this,e=t._self._c;return t.currentFile?e("div",{staticClass:"absolute top-[56px] left-0 right-0 bottom-0 select-none lg:top-[66px]"},[!t.$isMobile()&&t.files.length>1?e("div",[e("div",{staticClass:"fixed top-1/2 left-0 z-20 cursor-pointer p-3",on:{click:function(e){return e.preventDefault(),t.prev.apply(null,arguments)}}},[e("chevron-left-icon",{attrs:{size:"20"}})],1),t._v(" "),e("div",{staticClass:"fixed top-1/2 right-0 z-20 cursor-pointer p-3",on:{click:function(e){return e.preventDefault(),t.next.apply(null,arguments)}}},[e("chevron-right-icon",{attrs:{size:"20"}})],1)]):t._e(),t._v(" "),!t.$isMobile()||t.fastPreview?e("div",{staticClass:"flex h-full w-full items-center justify-center"},[t.isFile&&!t.isPDF?e("ItemGrid",{attrs:{entry:t.currentFile,"mobile-handler":!1,"can-hover":!1}}):t._e(),t._v(" "),t.isFile&&t.isPDF?e("PdfFile",{attrs:{file:t.currentFile}}):t._e(),t._v(" "),t.isAudio||t.isImage||t.isVideo?e("div",{staticClass:"flex h-full w-full items-center justify-center"},[t.isAudio?e("Audio",{attrs:{file:t.currentFile}}):t._e(),t._v(" "),t.isVideo?e("Video",{staticClass:"mx-auto max-h-full max-w-[1080px] self-center",attrs:{file:t.currentFile}}):t._e(),t._v(" "),t.isImage?e("ImageFile",{staticClass:"mx-auto max-h-[100%] max-w-[100%] self-center",class:{"file-shadow":!t.$isMobile()},attrs:{file:t.currentFile,id:"printable-file"}}):t._e()],1):t._e()],1):t._e(),t._v(" "),t.$isMobile()&&!t.fastPreview&&(t.isAudio||t.isImage||t.isVideo||t.isPDF)?e("div",{ref:"scrollBox",staticClass:"flex h-full snap-x snap-mandatory gap-6 overflow-x-auto",attrs:{id:"group-box"},on:{scroll:t.checkGroupInView}},t._l(t.files,(function(r,n){return e("div",{key:n,staticClass:"relative flex h-full w-screen shrink-0 snap-center items-center justify-center",attrs:{id:"group-".concat(r.data.id)}},[t.isImage?e("ImageFile",{staticClass:"mx-auto max-h-[100%] max-w-[100%] self-center",attrs:{file:r}}):t._e(),t._v(" "),t.isAudio?e("Audio",{attrs:{file:r}}):t._e(),t._v(" "),t.isVideo?e("Video",{attrs:{file:r}}):t._e(),t._v(" "),t.isPDF?e("PdfFile",{attrs:{file:r}}):t._e()],1)})),0):t._e()]):t._e()}),[],!1,null,null,null).exports},data:function(){return{isFullPreview:!1}},methods:{closeFilePreview:function(){this.isFullPreview=!1,this.$store.commit("FAST_PREVIEW_CLEAR")},next:function(){d.U.$emit("file-preview:next")},prev:function(){d.U.$emit("file-preview:prev")}},updated:function(){this.isFullPreview&&this.$refs.filePreview.focus()},mounted:function(){var t=this;d.U.$on("file-preview:show",(function(){return t.isFullPreview=!0})),d.U.$on("file-preview:hide",(function(){return t.closeFilePreview()}))}};const L=(0,m.Z)(A,(function(){var t=this,e=t._self._c;return t.isFullPreview?e("div",{ref:"filePreview",staticClass:"fixed left-0 right-0 top-0 bottom-0 z-40 h-full w-full bg-white dark:bg-dark-background min-w-[320px]",attrs:{tabindex:"-1"},on:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.closeFilePreview.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])||"button"in e&&2!==e.button?null:t.next.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.prev.apply(null,arguments)}]}},[e("FilePreviewToolbar"),t._v(" "),e("FilePreviewMedia")],1):t._e()}),[],!1,null,null,null).exports},2091:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});const n={name:"ImageFile",props:["file"],watch:{file:function(){this.getSrc()}},data:function(){return{src:void 0}},methods:{replaceByOriginal:function(){this.src=this.file.data.attributes.file_url},getSrc:function(){"svg"===this.file.data.attributes.mimetype?this.src=this.file.data.attributes.file_url:window.innerWidth>1280?this.src=this.file.data.attributes.thumbnail.xl:this.src=this.file.data.attributes.thumbnail.lg}},created:function(){this.getSrc()}};const i=(0,r(1900).Z)(n,(function(){var t=this;return(0,t._self._c)("img",{staticClass:"file",attrs:{src:t.src,alt:""},on:{error:t.replaceByOriginal}})}),[],!1,null,null,null).exports},3646:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});const n={name:"Video",props:["file"]};const i=(0,r(1900).Z)(n,(function(){var t=this;return(0,t._self._c)("video",{staticClass:"video",class:{"file-shadow":!t.$isMobile()},attrs:{src:t.file.data.attributes.file_url,controlsList:"nodownload",disablePictureInPicture:"",playsinline:"",controls:""}})}),[],!1,null,null,null).exports},944:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});const n={name:"AppInputSwitch",props:["description","isLast","title","error"]};const i=(0,r(1900).Z)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"flex w-full items-center justify-between space-x-2 sm:space-x-8",class:{"mb-6 sm:mb-7":!t.isLast}},[e("div",{staticClass:"leading-5"},[e("label",{staticClass:"mb-1.5 block text-sm font-bold text-gray-700 dark:text-gray-200"},[t._v(" "+t._s(t.title)+": ")]),t._v(" "),t.description?e("span",{staticClass:"block text-xs leading-4 dark:text-gray-500 text-gray-500",domProps:{innerHTML:t._s(t.description)}}):t._e(),t._v(" "),t.error?e("span",{staticClass:"pt-2 text-xs dark:text-rose-600 text-rose-600"},[t._v("\n "+t._s(t.error)+"\n ")]):t._e()]),t._v(" "),e("div",[t._t("default")],2)])}),[],!1,null,null,null).exports},1157:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});const n={name:"AppInputText",props:["description","isLast","title","error"]};const i=(0,r(1900).Z)(n,(function(){var t=this,e=t._self._c;return e("div",{class:{"mb-6 sm:mb-7":!t.isLast}},[t.title?e("label",{staticClass:"mb-1.5 block text-sm font-bold text-gray-700 dark:text-gray-200"},[t._v("\n "+t._s(t.title)+":\n ")]):t._e(),t._v(" "),t._t("default"),t._v(" "),t.error?e("span",{staticClass:"pt-2 text-xs dark:text-rose-600 text-rose-600"},[t._v("\n "+t._s(t.error)+"\n ")]):t._e(),t._v(" "),t.description?e("small",{staticClass:"block pt-2 text-xs leading-4 dark:text-gray-500 text-gray-500",domProps:{innerHTML:t._s(t.description)}}):t._e()],2)}),[],!1,null,null,null).exports},4407:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});const n={name:"FileIconThumbnail",props:["entry"]};const i=(0,r(1900).Z)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"flex items-center justify-center"},[e("span",{staticClass:"text-theme absolute z-[5] mx-auto mt-1 inline-block w-7 overflow-hidden text-ellipsis text-center text-[9px] font-semibold"},[t._v("\n "+t._s(t.entry.data.attributes.mimetype)+"\n ")]),t._v(" "),e("svg",{staticClass:"vue-feather dark:text-gray-800 text-gray-100",attrs:{width:"38px",height:"51px",fill:"currentColor",viewBox:"0 0 38 51",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[e("path",{attrs:{d:"M22.1666667,13.546875 L22.1666667,0 L2.375,0 C1.05885417,0 0,1.06582031 0,2.390625 L0,48.609375 C0,49.9341797 1.05885417,51 2.375,51 L35.625,51 C36.9411458,51 38,49.9341797 38,48.609375 L38,15.9375 L24.5416667,15.9375 C23.2354167,15.9375 22.1666667,14.8617187 22.1666667,13.546875 Z M38,12.1423828 L38,12.75 L25.3333333,12.75 L25.3333333,0 L25.9369792,0 C26.5703125,0 27.1739583,0.249023438 27.6192708,0.697265625 L37.3072917,10.4589844 C37.7526042,10.9072266 38,11.5148437 38,12.1423828 Z"}})])])}),[],!1,null,null,null).exports},9513:(t,e,r)=>{"use strict";r.d(e,{Z:()=>a});var n=r(4598),i=r(9085);const o={name:"FolderIcon",props:["item"],components:{VueFolderTeamIcon:n.Z,VueFolderIcon:i.Z}};const a=(0,r(1900).Z)(o,(function(){var t=this,e=t._self._c;return e("div",[t.item.data.attributes.isTeamFolder?t._e():e("VueFolderIcon"),t._v(" "),t.item.data.attributes.isTeamFolder?e("VueFolderTeamIcon",{staticStyle:{width:"53px",height:"52px"}}):t._e()],1)}),[],!1,null,null,null).exports},9085:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});const n={name:"VueFolderIcon"};const i=(0,r(1900).Z)(n,(function(){var t=this,e=t._self._c;return e("svg",{attrs:{width:"53px",height:"52px",viewBox:"0 0 53 39",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[e("path",{staticClass:"svg-color-theme",attrs:{d:"M48.03125,6.5 L29.790833,6.5 C28.7431613,6.5 27.7373076,6.08896217 26.9894703,5.35523504 L22.6980297,1.14476496 C21.9501924,0.41103783 20.9443387,-6.36543387e-16 19.896667,0 L4.96875,0 L4.96875,0 C2.22455078,0 0,2.18257812 0,4.875 L0,34.125 C0,36.8174219 2.22455078,39 4.96875,39 L48.03125,39 C50.7754492,39 53,36.8174219 53,34.125 L53,11.375 C53,8.68257813 50.7754492,6.5 48.03125,6.5 Z",stroke:"none","stroke-width":"0"}}),t._v(" "),e("path",{attrs:{d:"M48.03125,6.5 L29.790833,6.5 C28.7431613,6.5 27.7373076,6.08896217 26.9894703,5.35523504 L22.6980297,1.14476496 C21.9501924,0.41103783 20.9443387,-6.36543387e-16 19.896667,0 L4.96875,0 L4.96875,0 C2.22455078,0 0,2.18257812 0,4.875 L0,34.125 C0,36.8174219 2.22455078,39 4.96875,39 L48.03125,39 C50.7754492,39 53,36.8174219 53,34.125 L53,11.375 C53,8.68257813 50.7754492,6.5 48.03125,6.5 Z",fill:"black","fill-opacity":"0.2",stroke:"none","stroke-width":"0"}}),t._v(" "),e("path",{staticClass:"svg-color-theme",attrs:{d:"M48.03125,12.75 C49.0609313,12.75 49.9941504,13.1577174 50.6692739,13.8201027 C51.3356976,14.4739525 51.75,15.3766531 51.75,16.375 L51.75,16.375 L51.75,34.125 C51.75,35.1233469 51.3356976,36.0260475 50.6692739,36.6798973 C49.9941504,37.3422826 49.0609313,37.75 48.03125,37.75 L48.03125,37.75 L4.96875,37.75 C3.93906868,37.75 3.00584961,37.3422826 2.33072613,36.6798973 C1.66430239,36.0260475 1.25,35.1233469 1.25,34.125 L1.25,34.125 L1.25,16.375 C1.25,15.3766531 1.66430239,14.4739525 2.33072613,13.8201027 C3.00584961,13.1577174 3.93906868,12.75 4.96875,12.75 L4.96875,12.75 Z","stroke-width":"2",fill:"green"}})])}),[],!1,null,null,null).exports},4598:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});const n={name:"VueFolderTeamIcon"};const i=(0,r(1900).Z)(n,(function(){var t=this,e=t._self._c;return e("svg",{attrs:{viewBox:"0 0 53 39",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[e("g",{attrs:{id:"V2",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[e("g",{attrs:{id:"team-folder"}},[e("path",{staticClass:"svg-color-theme",attrs:{d:"M48.03125,6.5 L29.790833,6.5 C28.7431613,6.5 27.7373076,6.08896217 26.9894703,5.35523504 L22.6980297,1.14476496 C21.9501924,0.41103783 20.9443387,-6.36543387e-16 19.896667,0 L4.96875,0 L4.96875,0 C2.22455078,0 0,2.18257812 0,4.875 L0,34.125 C0,36.8174219 2.22455078,39 4.96875,39 L48.03125,39 C50.7754492,39 53,36.8174219 53,34.125 L53,11.375 C53,8.68257813 50.7754492,6.5 48.03125,6.5 Z",stroke:"none","stroke-width":"0"}}),t._v(" "),e("path",{attrs:{d:"M48.03125,6.5 L29.790833,6.5 C28.7431613,6.5 27.7373076,6.08896217 26.9894703,5.35523504 L22.6980297,1.14476496 C21.9501924,0.41103783 20.9443387,-6.36543387e-16 19.896667,0 L4.96875,0 L4.96875,0 C2.22455078,0 0,2.18257812 0,4.875 L0,34.125 C0,36.8174219 2.22455078,39 4.96875,39 L48.03125,39 C50.7754492,39 53,36.8174219 53,34.125 L53,11.375 C53,8.68257813 50.7754492,6.5 48.03125,6.5 Z",fill:"black","fill-opacity":"0.2",stroke:"none","stroke-width":"0"}}),t._v(" "),e("path",{staticClass:"svg-color-theme",attrs:{d:"M48.03125,12.75 C49.0609313,12.75 49.9941504,13.1577174 50.6692739,13.8201027 C51.3356976,14.4739525 51.75,15.3766531 51.75,16.375 L51.75,16.375 L51.75,34.125 C51.75,35.1233469 51.3356976,36.0260475 50.6692739,36.6798973 C49.9941504,37.3422826 49.0609313,37.75 48.03125,37.75 L48.03125,37.75 L4.96875,37.75 C3.93906868,37.75 3.00584961,37.3422826 2.33072613,36.6798973 C1.66430239,36.0260475 1.25,35.1233469 1.25,34.125 L1.25,34.125 L1.25,16.375 C1.25,15.3766531 1.66430239,14.4739525 2.33072613,13.8201027 C3.00584961,13.1577174 3.93906868,12.75 4.96875,12.75 L4.96875,12.75 Z","stroke-width":"2",fill:"green"}}),t._v(" "),e("g",{staticClass:"svg-stroke-theme-darken",attrs:{id:"Icon",transform:"translate(8.000000, 20.000000)","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.3",stroke:"black","stroke-opacity":"0.25"}},[e("path",{attrs:{d:"M9.59999943,10.7999994 L9.59999943,9.59999943 C9.59999943,8.27451611 8.52548289,7.19999957 7.19999957,7.19999957 L2.39999986,7.19999957 C1.07451654,7.19999957 0,8.27451611 0,9.59999943 L0,10.7999994"}}),t._v(" "),e("circle",{attrs:{cx:"4.79999971",cy:"2.39999986",r:"2.39999986"}}),t._v(" "),e("path",{attrs:{d:"M13.1999992,10.7999994 L13.1999992,9.59999943 C13.1991834,8.50627014 12.4589985,7.55143166 11.3999993,7.27799957"}}),t._v(" "),e("path",{attrs:{d:"M8.99999946,0.0779999954 C10.0619483,0.349901852 10.8047053,1.30679461 10.8047053,2.40299986 C10.8047053,3.4992051 10.0619483,4.45609786 8.99999946,4.72799972"}})])])])])}),[],!1,null,null,null).exports},7464:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});const n={name:"CheckBox",props:["isClicked"],components:{CheckIcon:r(9101).nQG},data:function(){return{isSwitched:void 0}},methods:{changeState:function(){this.isSwitched=!this.isSwitched,this.$emit("input",this.isSwitched)}},mounted:function(){this.isSwitched=this.isClicked}};const i=(0,r(1900).Z)(n,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"flex h-5 w-5 items-center justify-center rounded-md",class:{"bg-theme":t.isClicked,"bg-light-background dark:bg-4x-dark-foreground":!t.isClicked},on:{click:t.changeState}},[t.isClicked?e("CheckIcon",{staticClass:"vue-feather text-white",attrs:{size:"17"}}):t._e()],1)])}),[],!1,null,null,null).exports},7322:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});var n=r(9101);const i={name:"CopyInput",props:["size","str"],components:{CheckIcon:n.nQG,CopyIcon:n.TIy,SendIcon:n.jE$},data:function(){return{isCopiedLink:!1,id:"link-input-"+Math.floor(1e7*Math.random())}},methods:{copyUrl:function(){var t=this,e=document.getElementById(this.id);e.select(),e.setSelectionRange(0,99999),document.execCommand("copy"),this.isCopiedLink=!0,setTimeout((function(){t.isCopiedLink=!1}),1e3)}}};const o=(0,r(1900).Z)(i,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"relative flex items-center",on:{click:t.copyUrl}},[e("input",{ref:"sel",staticClass:"focus-border-theme input-dark !pr-10",attrs:{id:t.id,type:"text",readonly:""},domProps:{value:t.str}}),t._v(" "),e("div",{staticClass:"absolute right-0 px-4"},[t.isCopiedLink?t._e():e("copy-icon",{staticClass:"hover-text-theme vue-feather cursor-pointer",attrs:{size:"16"}}),t._v(" "),t.isCopiedLink?e("check-icon",{staticClass:"text-theme vue-feather cursor-pointer",attrs:{size:"16"}}):t._e()],1)])}),[],!1,null,null,null).exports},7400:(t,e,r)=>{"use strict";r.d(e,{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),o=r.n(i),a=r(4134),s={insert:"head",singleton:!1};o()(a.Z,s);a.Z.locals;const u=(0,r(1900).Z)(n,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"switch-content"},[t.label?e("label",{staticClass:"input-label"},[t._v(" "+t._s(t.label)+": ")]):t._e(),t._v(" "),t.info?e("small",{staticClass:"input-info"},[t._v("\n "+t._s(t.info)+"\n ")]):t._e()]),t._v(" "),e("div",{staticClass:"switch-content text-right"},[e("div",{staticClass:"switch",class:{active:t.state},on:{click:t.changeState}},[e("div",{staticClass:"switch-button"})])])])}),[],!1,null,"1e835bde",null).exports},1528:(t,e,r)=>{"use strict";r.d(e,{Z:()=>f});const n={props:["size"]};var i=r(3379),o=r.n(i),a=r(2599),s={insert:"head",singleton:!1};o()(a.Z,s);a.Z.locals;var u=r(1900);const c=(0,u.Z)(n,(function(){var t=this,e=t._self._c;return e("svg",{staticClass:"alphabet-icon",attrs:{fill:"none",stroke:"currentColor","stroke-width":"2","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round",width:"".concat(t.size,"px"),height:"".concat(t.size,"px"),viewBox:"-2 0 15 15",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[e("polyline",{attrs:{id:"Path",points:"11.1999993 13.1999991 5.59999967 0.199999094 0 13.1999991 5.59999967 0.199999094"}}),t._v(" "),e("line",{attrs:{x1:"2.25",y1:"8",x2:"8.75",y2:"8",id:"Line-2"}})])}),[],!1,null,null,null).exports;var d=r(9101);const l={name:"Option",props:["isHoverDisabled","isActive","title","arrow","icon"],components:{Link2Icon:d.qDj,UserMinusIcon:d.I9k,UserCheckIcon:d._uN,UserPlusIcon:d.oLu,ArrowUpIcon:d.Hf3,ArrowDownIcon:d.veu,BoxIcon:d.X$k,MonitorIcon:d.rc2,GlobeIcon:d.n9J,DatabaseIcon:d.VHe,ChevronRightIcon:d.XCv,FileTextIcon:d.zPP,CreditCardIcon:d.ciH,CloudIcon:d.v3n,LockIcon:d.mBM,CornerDownRightIcon:d.tio,DownloadCloudIcon:d.NDL,UploadCloudIcon:d.jkV,FolderPlusIcon:d.f1I,HardDriveIcon:d.zvn,PaperclipIcon:d.ogs,SettingsIcon:d.ewm,LifeBuoyIcon:d.RPi,CalendarIcon:d.Que,AlphabetIcon:c,Trash2Icon:d.Bf1,SmileIcon:d.OO0,PowerIcon:d.P$h,UsersIcon:d.oyc,Edit2Icon:d.me4,TrashIcon:d.XHJ,LinkIcon:d.xPt,StarIcon:d.r7p,GridIcon:d.pso,ListIcon:d.DE2,UserIcon:d.tBG,EyeIcon:d.tEF}};const f=(0,u.Z)(l,(function(){var t=this,e=t._self._c;return e("li",{staticClass:"flex items-center justify-between lg:py-3.5 py-4 px-5",class:{"group cursor-pointer hover:bg-light-background dark:hover:bg-4x-dark-foreground":!t.isHoverDisabled}},[e("div",{staticClass:"flex items-center"},[e("div",{staticClass:"mr-4"},["calendar"===t.icon?e("calendar-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"grid"===t.icon?e("grid-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"list"===t.icon?e("list-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"trash"===t.icon?e("trash-2-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"restore"===t.icon?e("life-buoy-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"empty-trash"===t.icon?e("trash-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"detail"===t.icon?e("eye-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"download"===t.icon?e("download-cloud-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"rename"===t.icon?e("edit2-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"move-item"===t.icon?e("corner-down-right-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"share"===t.icon?e("link-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"favourites"===t.icon?e("star-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"create-folder"===t.icon?e("folder-plus-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"no-options"===t.icon?e("smile-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"zip-folder"===t.icon?e("paperclip-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"alphabet"===t.icon?e("alphabet-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"star"===t.icon?e("star-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"hard-drive"===t.icon?e("hard-drive-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"upload-cloud"===t.icon?e("upload-cloud-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"remote-upload"===t.icon?e("link2-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"users"===t.icon?e("users-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"user"===t.icon?e("user-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"user-plus"===t.icon?e("user-plus-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"user-minus"===t.icon?e("user-minus-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"user-check"===t.icon?e("user-check-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"settings"===t.icon?e("settings-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"power"===t.icon?e("power-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"lock"===t.icon?e("lock-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"cloud"===t.icon?e("cloud-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"credit-card"===t.icon?e("credit-card-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"file-text"===t.icon?e("file-text-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"database"===t.icon?e("database-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"globe"===t.icon?e("globe-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"monitor"===t.icon?e("monitor-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"box"===t.icon?e("box-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e(),t._v(" "),"folder-plus"===t.icon?e("folder-plus-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isActive},attrs:{size:"17"}}):t._e()],1),t._v(" "),e("b",{staticClass:"group-hover-text-theme text-sm font-bold",class:{"text-theme":t.isActive}},[t._v("\n "+t._s(t.title)+"\n ")])]),t._v(" "),t.arrow?e("div",{staticClass:"ml-2"},["right"===t.arrow?e("chevron-right-icon",{staticClass:"vue-feather group-hover-text-theme opacity-50",class:{"text-theme":t.isActive},attrs:{size:"14"}}):t._e(),t._v(" "),"up"===t.arrow?e("arrow-up-icon",{staticClass:"vue-feather group-hover-text-theme opacity-50",class:{"text-theme":t.isActive},attrs:{size:"14"}}):t._e(),t._v(" "),"down"===t.arrow?e("arrow-down-icon",{staticClass:"vue-feather group-hover-text-theme opacity-50",class:{"text-theme":t.isActive},attrs:{size:"14"}}):t._e()],1):t._e()])}),[],!1,null,null,null).exports},3140:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});const n={name:"OptionGroup",props:["title"]};const i=(0,r(1900).Z)(n,(function(){var t=this,e=t._self._c;return e("div",[t.title?e("b",{staticClass:"dark-text-theme mt-2 block py-0.5 px-4 text-xs text-gray-400"},[t._v("\n "+t._s(t.title)+"\n ")]):t._e(),t._v(" "),e("ul",{staticClass:"option-group py-1"},[t._t("default")],2)])}),[],!1,null,null,null).exports},3240:(t,e,r)=>{"use strict";r.d(e,{Z:()=>c});var n=r(5399);const i={name:"MenuMobile",props:["name"],data:function(){return{isVisible:!1}},methods:{closeMenu:function(){this.isVisible=!1,n.U.$emit("mobile-menu:hide")}},created:function(){var t=this;n.U.$on("mobile-menu:show",(function(e){e===t.name&&(t.isVisible=!t.isVisible)})),n.U.$on("mobile-menu:hide",(function(){return t.isVisible=!1}))}};var o=r(3379),a=r.n(o),s=r(7600),u={insert:"head",singleton:!1};a()(s.Z,u);s.Z.locals;const c=(0,r(1900).Z)(i,(function(){var t=this,e=t._self._c;return e("div",[e("transition",{attrs:{name:"context-menu"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"fixed bottom-0 left-0 right-0 z-50 overflow-hidden rounded-tl-xl rounded-tr-xl bg-white pb-4 dark:bg-2x-dark-foreground",on:{click:t.closeMenu}},[t._t("default")],2)]),t._v(" "),e("transition",{attrs:{name:"vignette"}},[t.isVisible?e("div",{staticClass:"fixed left-0 right-0 top-0 bottom-0 z-[49] bg-dark-background bg-opacity-[0.35] dark:bg-opacity-[0.45]",on:{click:t.closeMenu}}):t._e()])],1)}),[],!1,null,"c1486078",null).exports},6656:(t,e,r)=>{"use strict";r.d(e,{Z:()=>u});const n={name:"MenuMobileGroup"};var i=r(3379),o=r.n(i),a=r(9670),s={insert:"head",singleton:!1};o()(a.Z,s);a.Z.locals;const u=(0,r(1900).Z)(n,(function(){return(0,this._self._c)("div",{staticClass:"menu-options"},[this._t("default")],2)}),[],!1,null,"f3a904d4",null).exports},9087:(t,e,r)=>{"use strict";r.d(e,{Z:()=>w});var n=r(6656),i=r(3140),o=r(4509),a=r(8485),s=r(5399),u=r(629);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==c(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===c(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const f={name:"UserHeadline",components:{NotificationBell:a.Z,MemberAvatar:o.Z},computed:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach((function(e){l(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},(0,u.Se)(["user"])),methods:{openNotificationPopup:function(){s.U.$emit("popup:open",{name:"notifications-mobile"})}}};var p=r(1900);const v=(0,p.Z)(f,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"flex items-center justify-between"},[e("div",{staticClass:"flex items-center leading-none"},[e("MemberAvatar",{attrs:{size:52,"is-border":!1,member:t.user}}),t._v(" "),e("div",{staticClass:"pl-4"},[e("b",{staticClass:"mb-1 block font-bold leading-none"},[t._v("\n "+t._s(t.user.data.relationships.settings.data.attributes.name)+"\n ")]),t._v(" "),e("span",{staticClass:"text-theme text-sm font-semibold leading-none"},[t._v("\n "+t._s(t.user.data.attributes.email)+"\n ")])])],1),t._v(" "),e("NotificationBell",{nativeOn:{click:function(e){return t.openNotificationPopup.apply(null,arguments)}}})],1)}),[],!1,null,null,null).exports;var h=r(3240),m=r(1528);function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function g(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?y(Object(r),!0).forEach((function(e){_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==b(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===b(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const x={name:"MobileNavigation",components:{ChevronLeftIcon:r(9101).wyc,MenuMobileGroup:n.Z,UserHeadline:v,OptionGroup:i.Z,MenuMobile:h.Z,Option:m.Z},computed:g(g({},(0,u.Se)(["config","user"])),{},{isAdmin:function(){return this.user&&"admin"===this.user.data.attributes.role},backTitle:function(){var t={settings:this.$t("settings"),admin:this.$t("administration")};return this.$t("go_back_from_x",{location:t[this.clickedSubmenu]})}}),data:function(){return{clickedSubmenu:void 0}},methods:{goToRoute:function(t){this.$router.push({name:t}),this.clickedSubmenu=void 0},showSubmenu:function(t){this.clickedSubmenu=t},goToFiles:function(){"Files"!==this.$route.name&&this.$router.push({name:"Files"}),this.$store.dispatch("getFolder",{page:1})},logOut:function(){this.$store.dispatch("logOut")}}};const w=(0,p.Z)(x,(function(){var t=this,e=t._self._c;return e("MenuMobile",{attrs:{name:"user-navigation"}},[t.clickedSubmenu?t._e():e("UserHeadline",{staticClass:"p-5 pb-3"}),t._v(" "),"metered"===t.config.subscriptionType&&t.user&&t.user.data.meta.usages&&!t.clickedSubmenu?e("div",{staticClass:"block px-5 pt-2"},[e("div",{staticClass:"rounded-lg bg-light-background px-3 py-1.5 dark:bg-4x-dark-foreground"},[e("span",{staticClass:"text-sm font-semibold"},[t._v("\n "+t._s(t.$t("current_estimated_usage"))+"\n ")]),t._v(" "),e("span",{staticClass:"text-theme text-sm font-bold"},[t._v("\n "+t._s(t.user.data.meta.usages.costEstimate)+"\n ")])])]):t._e(),t._v(" "),t.clickedSubmenu?e("div",{staticClass:"flex items-center p-5 pb-4",on:{click:function(e){return e.stopPropagation(),t.showSubmenu(void 0)}}},[e("chevron-left-icon",{staticClass:"vue-feather text-theme mr-2 -ml-1",attrs:{size:"19"}}),t._v(" "),e("span",{staticClass:"text-theme text-sm font-bold"},[t._v("\n "+t._s(t.backTitle)+"\n ")])],1):t._e(),t._v(" "),e("MenuMobileGroup",[t.clickedSubmenu?t._e():e("OptionGroup",[e("Option",{attrs:{title:t.$t("menu.files"),icon:"hard-drive","is-hover-disabled":!0},nativeOn:{click:function(e){return t.goToFiles.apply(null,arguments)}}}),t._v(" "),e("Option",{attrs:{title:t.$t("settings"),icon:"user",arrow:"right","is-hover-disabled":!0},nativeOn:{click:function(e){return e.stopPropagation(),t.showSubmenu("settings")}}}),t._v(" "),t.isAdmin?e("Option",{attrs:{title:t.$t("administration"),icon:"settings",arrow:"right","is-hover-disabled":!0},nativeOn:{click:function(e){return e.stopPropagation(),t.showSubmenu("admin")}}}):t._e()],1),t._v(" "),t.clickedSubmenu?t._e():e("OptionGroup",[e("Option",{attrs:{title:t.$t("logout"),icon:"power","is-hover-disabled":!0},nativeOn:{click:function(e){return t.logOut.apply(null,arguments)}}})],1),t._v(" "),"settings"===t.clickedSubmenu?e("OptionGroup",[e("Option",{attrs:{title:t.$t("menu.profile"),icon:"user","is-hover-disabled":!0},nativeOn:{click:function(e){return t.goToRoute("Profile")}}}),t._v(" "),e("Option",{attrs:{title:t.$t("menu.password"),icon:"lock","is-hover-disabled":!0},nativeOn:{click:function(e){return t.goToRoute("Password")}}}),t._v(" "),e("Option",{attrs:{title:t.$t("storage"),icon:"hard-drive","is-hover-disabled":!0},nativeOn:{click:function(e){return t.goToRoute("Storage")}}}),t._v(" "),"none"!==t.config.subscriptionType?e("Option",{attrs:{title:t.$t("billing"),icon:"cloud","is-hover-disabled":!0},nativeOn:{click:function(e){return t.goToRoute("Billing")}}}):t._e()],1):t._e(),t._v(" "),"admin"===t.clickedSubmenu?e("OptionGroup",[e("Option",{attrs:{title:t.$t("dashboard"),icon:"box","is-hover-disabled":!0},nativeOn:{click:function(e){return t.goToRoute("Dashboard")}}}),t._v(" "),e("Option",{attrs:{title:t.$t("users"),icon:"users","is-hover-disabled":!0},nativeOn:{click:function(e){return t.goToRoute("Users")}}}),t._v(" "),e("Option",{attrs:{title:t.$t("settings"),icon:"settings","is-hover-disabled":!0},nativeOn:{click:function(e){return t.goToRoute("AppOthers")}}})],1):t._e(),t._v(" "),"admin"===t.clickedSubmenu?e("OptionGroup",[e("Option",{attrs:{title:t.$t("pages"),icon:"monitor","is-hover-disabled":!0},nativeOn:{click:function(e){return t.goToRoute("Pages")}}}),t._v(" "),e("Option",{attrs:{title:t.$t("languages"),icon:"globe","is-hover-disabled":!0},nativeOn:{click:function(e){return t.goToRoute("Language")}}})],1):t._e(),t._v(" "),"admin"===t.clickedSubmenu&&"none"!==t.config.subscriptionType?e("OptionGroup",[e("Option",{attrs:{title:t.$t("payments"),icon:"credit-card","is-hover-disabled":!0},nativeOn:{click:function(e){return t.goToRoute("AppPayments")}}}),t._v(" "),"fixed"===t.config.subscriptionType?e("Option",{attrs:{title:t.$t("subscriptions"),icon:"credit-card","is-hover-disabled":!0},nativeOn:{click:function(e){return t.goToRoute("Subscriptions")}}}):t._e(),t._v(" "),e("Option",{attrs:{title:t.$t("plans"),icon:"database","is-hover-disabled":!0},nativeOn:{click:function(e){return t.goToRoute("Plans")}}}),t._v(" "),e("Option",{attrs:{title:t.$t("transactions"),icon:"file-text","is-hover-disabled":!0},nativeOn:{click:function(e){return t.goToRoute("Invoices")}}})],1):t._e()],1)],1)}),[],!1,null,null,null).exports},3832:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});var n=r(9101);const i={name:"MobileNavigationToolbar",components:{ChevronLeftIcon:n.wyc,SearchIcon:n.W1M,MenuIcon:n.Oqj},computed:{locationName:function(){return this.$t(this.$route.meta.title)}}};const o=(0,r(1900).Z)(i,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"z-20 relative block flex w-full items-center justify-between py-5 px-5 text-center lg:hidden"},[e("div",{staticClass:"inline-block overflow-hidden text-ellipsis whitespace-nowrap align-middle text-sm font-bold transition-all duration-200 dark:text-gray-100",staticStyle:{"max-width":"200px"}},[t._v("\n "+t._s(t.locationName)+"\n ")]),t._v(" "),e("div",{staticClass:"flex items-center"},[e("div",{staticClass:"mr-4 cursor-pointer px-2",on:{click:function(e){return t.$openSpotlight()}}},[e("search-icon",{staticClass:"vue-feather dark:text-gray-100",attrs:{size:"17"}})],1),t._v(" "),e("div",{staticClass:"cursor-pointer pr-1.5",on:{click:function(e){return t.$showMobileMenu("user-navigation")}}},[e("menu-icon",{staticClass:"vue-feather dark:text-gray-100",attrs:{size:"17"}})],1)])])}),[],!1,null,null,null).exports},6828:(t,e,r)=>{"use strict";r.d(e,{Z:()=>y});var n=r(5724),i=r(2325),o=r(4789),a=r(588),s=r(4654),u=r(8023),c=r(1520),d=r(7536),l=r.n(d),f=r(629);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?v(Object(r),!0).forEach((function(e){m(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function m(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==p(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===p(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const b={name:"NotificationsPopup",components:{MobileActionButton:n.Z,Notification:i.Z,PopupWrapper:a.Z,PopupActions:s.Z,PopupContent:u.Z,PopupHeader:c.Z,ButtonBase:o.Z},directives:{clickOutside:l().directive},computed:h(h({},(0,f.Se)(["user","config"])),{},{readNotifications:function(){var t;return null===(t=this.user)||void 0===t?void 0:t.data.relationships.readNotifications.data},unreadNotifications:function(){var t;return null===(t=this.user)||void 0===t?void 0:t.data.relationships.unreadNotifications.data}}),methods:{clickOutside:function(){this.isVisibleNotificationCenter&&this.$store.commit("CLOSE_NOTIFICATION_CENTER")}}};const y=(0,r(1900).Z)(b,(function(){var t=this,e=t._self._c;return e("PopupWrapper",{attrs:{name:"notifications-mobile"}},[e("PopupHeader",{attrs:{title:t.$t("notifications"),icon:"bell"}}),t._v(" "),t.readNotifications&&t.unreadNotifications?e("PopupContent",[t.readNotifications.length||t.unreadNotifications.length?e("MobileActionButton",{staticClass:"mb-2 dark:!bg-4x-dark-foreground",attrs:{icon:"check-square"},nativeOn:{click:function(e){return t.$store.dispatch("deleteAllNotifications")}}},[t._v("\n\t\t\t\t"+t._s(t.$t("clear_all"))+"\n\t\t\t")]):t._e(),t._v(" "),t.readNotifications.length||t.unreadNotifications.length?t._e():e("p",{staticClass:"text-sm text-gray-500"},[t._v("\n\t\t\t\t"+t._s(t.$t("not_any_notifications"))+"\n\t\t\t")]),t._v(" "),t.unreadNotifications.length?e("b",{staticClass:"dark-text-theme mt-1.5 mb-2.5 block px-2.5 text-xs text-gray-400"},[t._v("\n "+t._s(t.$t("unread"))+"\n ")]):t._e(),t._v(" "),t._l(t.unreadNotifications,(function(t){return e("Notification",{key:t.id,attrs:{notification:t}})})),t._v(" "),t.readNotifications.length?e("b",{staticClass:"dark-text-theme mt-2.5 mb-2.5 block px-2.5 text-xs text-gray-400"},[t._v("\n "+t._s(t.$t("read"))+"\n ")]):t._e(),t._v(" "),t._l(t.readNotifications,(function(t){return e("Notification",{key:t.id,attrs:{notification:t}})}))],2):t._e(),t._v(" "),e("PopupActions",[e("ButtonBase",{staticClass:"w-full",attrs:{"button-style":"secondary"},nativeOn:{click:function(e){return t.$closePopup()}}},[t._v("\n "+t._s(t.$t("close"))+"\n ")])],1)],1)}),[],!1,null,null,null).exports},8023:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});const n={name:"PopupContent",props:["type"]};const i=(0,r(1900).Z)(n,(function(){var t=this;return(0,t._self._c)("div",{staticClass:"absolute top-16 bottom-24 left-0 right-0 h-auto overflow-auto px-6 md:relative md:top-0 md:bottom-0",class:t.type},[t._t("default")],2)}),[],!1,null,null,null).exports},1520:(t,e,r)=>{"use strict";r.d(e,{Z:()=>a});var n=r(9101),i=r(5399);const o={name:"PopupHeader",props:["title","icon"],components:{Link2Icon:n.qDj,BellIcon:n.Dkj,UploadCloudIcon:n.jkV,CornerDownRightIcon:n.tio,CreditCardIcon:n.ciH,UserPlusIcon:n.oLu,UsersIcon:n.oyc,ShareIcon:n.aAc,Edit2Icon:n.me4,LinkIcon:n.xPt,KeyIcon:n._m8,XIcon:n.b0D},methods:{closePopup:function(){i.U.$emit("popup:close")}}};const a=(0,r(1900).Z)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"flex items-center justify-between px-6 pt-6 pb-6"},[e("div",{staticClass:"flex items-center"},[e("div",{staticClass:"mr-3"},["remote-upload"===t.icon?e("link2-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"upload"===t.icon?e("upload-cloud-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"move"===t.icon?e("corner-down-right-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"share"===t.icon?e("share-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"edit"===t.icon?e("edit2-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"key"===t.icon?e("key-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"users"===t.icon?e("users-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"user-plus"===t.icon?e("user-plus-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"credit-card"===t.icon?e("credit-card-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"bell"===t.icon?e("bell-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e()],1),t._v(" "),e("b",{staticClass:"text-base font-bold"},[t._v("\n "+t._s(t.title)+"\n ")])]),t._v(" "),e("div",{staticClass:"-m-3 cursor-pointer p-3",on:{click:t.closePopup}},[e("x-icon",{staticClass:"hover-text-theme vue-feather",attrs:{size:"14"}})],1)])}),[],!1,null,null,null).exports},588:(t,e,r)=>{"use strict";r.d(e,{Z:()=>c});var n=r(5399);const i={name:"PopupWrapper",props:["name"],data:function(){return{isVisibleWrapper:!1}},methods:{closePopup:function(){n.U.$emit("popup:close")}},created:function(){var t=this;n.U.$on("popup:open",(function(e){var r=e.name;t.name===r&&(t.isVisibleWrapper=!0),t.name!==r&&(t.isVisibleWrapper=!1)})),n.U.$on("confirm:open",(function(e){var r=e.name;t.name===r&&(t.isVisibleWrapper=!0)})),n.U.$on("popup:close",(function(){return t.isVisibleWrapper=!1}))}};var o=r(3379),a=r.n(o),s=r(9971),u={insert:"head",singleton:!1};a()(s.Z,u);s.Z.locals;const c=(0,r(1900).Z)(i,(function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"popup"}},[t.isVisibleWrapper?e("div",{staticClass:"popup fixed top-0 left-0 right-0 bottom-0 z-50 grid h-full overflow-y-auto p-10 lg:absolute",on:{click:function(e){return e.target!==e.currentTarget?null:t.closePopup.apply(null,arguments)}}},[e("div",{staticClass:"fixed top-0 bottom-0 left-0 right-0 z-10 m-auto w-full bg-white shadow-xl dark:bg-dark-foreground md:relative md:w-[490px] md:rounded-xl"},[t._t("default")],2)]):t._e()])}),[],!1,null,"711e73b9",null).exports},3108:(t,e,r)=>{"use strict";r.d(e,{Z:()=>u});var n=r(588),i=r(4654),o=r(4789),a=r(5399);const s={name:"ConfirmPopup",components:{PopupWrapper:n.Z,PopupActions:i.Z,ButtonBase:o.Z},data:function(){return{confirmationData:[],message:void 0,title:void 0,buttonColor:void 0}},methods:{closePopup:function(){a.U.$emit("popup:close")},confirm:function(){a.U.$emit("popup:close"),a.U.$emit("action:confirmed",this.confirmationData),this.confirmationData=[]}},mounted:function(){var t=this;a.U.$on("confirm:open",(function(e){t.title=e.title,t.message=e.message,t.confirmationData=e.action,t.buttonColor="danger",e.buttonColor&&(t.buttonColor=e.buttonColor)}))}};const u=(0,r(1900).Z)(s,(function(){var t=this,e=t._self._c;return e("PopupWrapper",[e("div",{staticClass:"flex h-full -translate-y-7 transform items-center justify-center px-8 text-center md:translate-y-0"},[e("div",[e("img",{staticClass:"mx-auto mb-4 w-20 md:mt-6 min-h-[80px]",attrs:{src:"https://twemoji.maxcdn.com/v/13.1.0/svg/1f914.svg",alt:""}}),t._v(" "),t.title?e("h1",{staticClass:"mb-2 text-2xl font-bold"},[t._v("\n "+t._s(t.title)+"\n ")]):t._e(),t._v(" "),t.message?e("p",{staticClass:"mb-4 text-sm"},[t._v("\n "+t._s(t.message)+"\n ")]):t._e()])]),t._v(" "),e("PopupActions",[e("ButtonBase",{staticClass:"w-full",attrs:{"button-style":"secondary"},nativeOn:{click:function(e){return t.closePopup.apply(null,arguments)}}},[t._v(t._s(t.$t("cancel"))+"\n ")]),t._v(" "),e("ButtonBase",{staticClass:"w-full",attrs:{"button-style":t.buttonColor},nativeOn:{click:function(e){return t.confirm.apply(null,arguments)}}},[t._v(t._s(t.$t("yes_iam_sure"))+"\n ")])],1)],1)}),[],!1,null,null,null).exports},4188:(t,e,r)=>{"use strict";r.d(e,{Z:()=>b});var n=r(9495),i=r(588),o=r(8023),a=r(4654),s=r(1520),u=r(1157),c=r(4479),d=r(4789),l=r(5399),f=r(8545);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function v(){v=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new E(n||[]);return i(a,"_invoke",{value:S(t,r,s)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var f="suspendedStart",h="suspendedYield",m="executing",b="completed",y={};function g(){}function _(){}function x(){}var w={};c(w,a,(function(){return this}));var k=Object.getPrototypeOf,P=k&&k(k(I([])));P&&P!==r&&n.call(P,a)&&(w=P);var O=x.prototype=g.prototype=Object.create(w);function C(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function $(t,e){function r(i,o,a,s){var u=l(t[i],t,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==p(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(d).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function S(e,r,n){var i=f;return function(o,a){if(i===m)throw new Error("Generator is already running");if(i===b){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=j(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=b,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=m;var c=l(e,r,n);if("normal"===c.type){if(i=n.done?b:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=b,n.method="throw",n.arg=c.arg)}}}function j(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=l(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(p(e)+" is not iterable")}return _.prototype=x,i(O,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:_,configurable:!0}),_.displayName=c(x,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,c(t,u,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},C($.prototype),c($.prototype,s,(function(){return this})),e.AsyncIterator=$,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new $(d(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},C(O),c(O,u,"Generator"),c(O,a,(function(){return this})),c(O,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function h(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}const m={name:"RemoteUploadPopup",components:{ValidationProvider:n.ValidationProvider,ValidationObserver:n.ValidationObserver,required:c.C1,PopupWrapper:i.Z,PopupContent:o.Z,PopupHeader:s.Z,PopupActions:a.Z,AppInputText:u.Z,ButtonBase:d.Z},data:function(){return{links:void 0,loading:!1}},methods:{upload:function(){var t,e=this;return(t=v().mark((function t(){var r,n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.createForm.validate();case 2:if(t.sent){t.next=5;break}return t.abrupt("return");case 5:if(e.loading=!0,e.urls=e.links.replace(/^(?=\n)$|^\s*|\s*$|\n\n+/gm,"").split(/\r?\n/),!e.$store.getters.config.isDemo||"ho**@hi5ve.digital"!==e.$store.getters.user.data.attributes.email){t.next=11;break}return l.U.$emit("toaster",{type:"success",message:f.Z.t("remote_download_finished")}),l.U.$emit("popup:close"),t.abrupt("return");case 11:e.$store.getters.isBroadcasting&&e.$store.commit("UPDATE_REMOTE_UPLOAD_QUEUE",{progress:{total:e.urls.length,processed:0,failed:0}}),r={RequestUpload:"/api/file-request/".concat(e.$router.currentRoute.params.token,"/upload/remote"),Public:"/api/sharing/upload/remote/".concat(e.$router.currentRoute.params.token)}[e.$router.currentRoute.name]||"/api/upload/remote",n=e.$store.getters.currentFolder?e.$store.getters.currentFolder.data.id:void 0,axios.post(r,{urls:e.urls,parent_id:n}).then((function(){e.$store.getters.isBroadcasting||(e.$store.commit("START_LOADING_VIEW"),e.$getDataByLocation(1),l.U.$emit("toaster",{type:"success",message:f.Z.t("remote_download_finished")})),l.U.$emit("popup:close")})).catch((function(t){422===t.response.status&&e.$refs.createForm.setErrors({"Remote Links":t.response.data.message}),l.U.$emit("toaster",{type:"danger",message:e.$t("popup_error.title")})})).finally((function(){e.loading=!1}));case 15:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){h(o,n,i,a,s,"next",t)}function s(t){h(o,n,i,a,s,"throw",t)}a(void 0)}))})()}},mounted:function(){var t=this;l.U.$on("popup:open",(function(e){"remote-upload"===e.name&&(t.links=void 0,t.$nextTick((function(){setTimeout((function(){return t.$refs.textarea.focus()}),100)})))}))}};const b=(0,r(1900).Z)(m,(function(){var t=this,e=t._self._c;return e("PopupWrapper",{attrs:{name:"remote-upload"}},[e("PopupHeader",{attrs:{title:t.$t("upload_files_remotely"),icon:"remote-upload"}}),t._v(" "),e("PopupContent",[e("ValidationObserver",{ref:"createForm",attrs:{tag:"form"},on:{submit:function(t){t.preventDefault()}},scopedSlots:t._u([{key:"default",fn:function(r){r.invalid;return[e("ValidationProvider",{attrs:{tag:"div",mode:"passive",name:"Remote Links",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(r){var n=r.errors;return[e("AppInputText",{attrs:{title:t.$t("remote_links"),description:t.$t("remote_links_help"),error:n[0],"is-last":!0}},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.links,expression:"links"}],ref:"textarea",staticClass:"focus-border-theme input-dark whitespace-nowrap",class:{"!border-rose-600":n[0]},attrs:{rows:"6",placeholder:t.$t("paste_remote_links_here")},domProps:{value:t.links},on:{input:function(e){e.target.composing||(t.links=e.target.value)}}})])]}}],null,!0)})]}}])})],1),t._v(" "),e("PopupActions",[e("ButtonBase",{staticClass:"w-full",attrs:{"button-style":"secondary"},nativeOn:{click:function(e){return t.$closePopup()}}},[t._v("\n "+t._s(t.$t("cancel"))+"\n ")]),t._v(" "),e("ButtonBase",{staticClass:"w-full",attrs:{"button-style":"theme",loading:t.loading},nativeOn:{click:function(e){return t.upload.apply(null,arguments)}}},[t._v("\n "+t._s(t.$t("upload"))+"\n ")])],1)],1)}),[],!1,null,null,null).exports},7811:(t,e,r)=>{"use strict";r.d(e,{Z:()=>S});var n=r(5399),i=r(3058),o=r(4509),a=r(3592);const s={name:"CategoryName"};var u=r(1900);const c=(0,u.Z)(s,(function(){return(0,this._self._c)("b",{staticClass:"mb-1.5 block text-xs text-gray-500"},[this._t("default")],2)}),[],!1,null,null,null).exports;const d={name:"FilterSuggestion",props:["keyword","description"]};const l=(0,u.Z)(d,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"flex cursor-pointer items-center py-2"},[e("span",{staticClass:"dark-text-theme rounded-lg bg-light-background py-1 px-2 text-sm font-bold dark:bg-4x-dark-foreground"},[t._v("\n "+t._s(t.keyword)+" + "+t._s(t.$t("space"))+"\n ")]),t._v(" "),e("p",{staticClass:"ml-3 text-sm font-semibold text-gray-500"},[t._v("\n "+t._s(t.description)+"\n ")])])}),[],!1,null,null,null).exports;var f=r(9101);const p={name:"KeyboardHints",components:{CornerDownLeftIcon:f.zrI,ArrowDownIcon:f.veu,ArrowUpIcon:f.Hf3}};const v=(0,u.Z)(p,(function(){var t=this,e=t._self._c;return t.$isMobile()?t._e():e("div",{staticClass:"flex items-center px-5 pb-2"},[e("div",{staticClass:"mr-4 flex items-center"},[e("ArrowUpIcon",{staticClass:"vue-feather text-gray-400",attrs:{size:"12"}}),t._v(" "),e("ArrowDownIcon",{staticClass:"vue-feather text-gray-400",attrs:{size:"12"}}),t._v(" "),e("span",{staticClass:"ml-1.5 text-xs text-gray-400"},[t._v("\n "+t._s(t.$t("navigate"))+"\n ")])],1),t._v(" "),e("div",{staticClass:"flex items-center"},[e("CornerDownLeftIcon",{staticClass:"vue-feather text-gray-400",attrs:{size:"12"}}),t._v(" "),e("span",{staticClass:"ml-1.5 text-xs text-gray-400"},[t._v("\n "+t._s(t.$t("go"))+"\n ")])],1)])}),[],!1,null,null,null).exports;var h=r(9669),m=r.n(h),b=r(6486),y=r(629);function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function _(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function x(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_(Object(r),!0).forEach((function(e){w(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function w(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==g(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===g(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const k={name:"Spotlight",components:{Link2Icon:f.qDj,FolderPlusIcon:f.f1I,SmileIcon:f.OO0,KeyboardHints:v,CreditCardIcon:f.ciH,GridIcon:f.pso,CategoryName:c,FilterSuggestion:l,Maximize2Icon:f.kch,TrashIcon:f.XHJ,MoonIcon:f.kLh,PowerIcon:f.P$h,HardDriveIcon:f.zvn,UploadCloudIcon:f.jkV,FileTextIcon:f.zPP,DollarSignIcon:f.bkH,GlobeIcon:f.n9J,MonitorIcon:f.rc2,BoxIcon:f.X$k,UsersIcon:f.oyc,UserCheckIcon:f._uN,LinkIcon:f.xPt,SettingsIcon:f.ewm,HomeIcon:f.tvw,DatabaseIcon:f.VHe,UserPlusIcon:f.oLu,MemberAvatar:o.Z,Trash2Icon:f.Bf1,SearchIcon:f.W1M,ItemList:i.Z,Spinner:a.Z,XIcon:f.b0D},computed:x(x({},(0,y.Se)(["config","user","sharedDetail"])),{},{actionList:function(){var t=[{title:this.$t("go_to_dashboard"),action:{type:"route",value:"Dashboard"}},{title:this.$t("go_to_settings"),action:{type:"route",value:"AppOthers"}},{title:this.$t("go_to_payments"),action:{type:"route",value:"AppPayments"}},{title:this.$t("go_to_pages"),action:{type:"route",value:"Pages"}},{title:this.$t("go_to_languages"),action:{type:"route",value:"Language"}},{title:this.$t("show_all_users"),action:{type:"route",value:"Users"}},{title:this.$t("show_all_plans"),action:{type:"route",value:"Plans"}},{title:this.$t("show_transactions"),action:{type:"route",value:"Invoices"}},{title:this.$t("application_settings"),action:{type:"route",value:"AppOthers"}},{title:this.$t("login_registration_settings"),action:{type:"route",value:"AppSignInUp"}},{title:this.$t("appearance_settings"),action:{type:"route",value:"AppAppearance"}},{title:this.$t("adsense_settings"),action:{type:"route",value:"AppAdsense"}},{title:this.$t("homepage_settings"),action:{type:"route",value:"AppIndex"}},{title:this.$t("environment_settings"),action:{type:"route",value:"AppEnvironment"}},{title:this.$t("server_settings"),action:{type:"route",value:"AppServer"}}],e=[{title:this.$t("go_home_spotlight"),action:{type:"route",value:"Files"}},{title:this.$t("go_to_recent_uploads"),action:{type:"route",value:"RecentUploads"}},{title:this.$t("go_to_publicly_shared"),action:{type:"route",value:"MySharedItems"}},{title:this.$t("go_to_trash"),action:{type:"route",value:"Trash"}},{title:this.$t("go_to_team_folders"),action:{type:"route",value:"TeamFolders"}},{title:this.$t("go_to_shared_with_me"),action:{type:"route",value:"SharedWithMe"}}],r=[{title:this.$t("create_user"),action:{type:"route",value:"UserCreate"}}],n=[{title:this.$t("update_profile_settings"),action:{type:"route",value:"Profile"}},{title:this.$t("update_security_api"),action:{type:"route",value:"Password"}},{title:this.$t("show_storage_details"),action:{type:"route",value:"Storage"}},{title:this.$t("show_billing"),action:{type:"route",value:"Billing"}},{title:this.$t("empty_your_trash"),action:{type:"function",value:"empty-trash"}},{title:this.$t("logout"),action:{type:"function",value:"log-out"}}],i=[{title:this.$t("create_team_folder"),action:{type:"function",value:"create-team-folder"}},{title:this.$t("create_file_request"),action:{type:"function",value:"create-file-request"}},{title:this.$t("remote_upload"),action:{type:"function",value:"remote-upload"}}],o=[{title:this.$t("toggle_grid_list_view"),action:{type:"function",value:"toggle-grid-list"}},{title:this.$t("toggle_dark_light_mode"),action:{type:"function",value:"dark-mode"}},{title:this.$t("toggle_full_screen_mode"),action:{type:"function",value:"full-screen-mode"}}];return this.$isApple()&&o.push({title:this.$t("toggle_emoji_type"),action:{type:"function",value:"toggle-emoji"}}),this.$isThisRoute(this.$route,["Public"])?[].concat.apply([],[o]):this.isAdmin?("fixed"===this.config.subscriptionType&&t.push({title:this.$t("show_all_subscriptions"),action:{type:"route",value:"Subscriptions"}}),("metered"===this.config.subscriptionType&&!this.config.isCreatedMeteredPlan||"fixed"===this.config.subscriptionType)&&r.push({title:this.$t("create_plan"),action:{type:"route",value:"fixed"===this.config.subscriptionType?"CreateFixedPlan":"CreateMeteredPlan"}}),[].concat.apply([],[o,i,n,e,t,r])):"user"===this.user.data.attributes.role?[].concat.apply([],[o,i,n,e]):void 0},isAdmin:function(){return"admin"===this.user.data.attributes.role},metaKeyIcon:function(){return this.$isApple()?"⌘":"Ctrl"},isNotEmptyQuery:function(){return""!==this.query},isEmptyQuery:function(){return""===this.query||void 0===this.query}}),data:function(){return{activeFilter:void 0,backspaceHits:0,isVisible:!1,isLoading:!1,query:"",index:0,results:[],actions:[],filters:[{keyword:"u",description:this.$t("search_your_users"),slug:"users"}]}},watch:{query:function(t){""!==t&&void 0!==t||(this.results=[]),this.actions=[];var e=t.toLowerCase();this.index=0,"u "===e.substr(0,2)&&this.isAdmin&&!this.activeFilter&&this.setFilter("users"),this.activeFilter||(this.actions=this.actionList.filter((function(t){return t.title.toLowerCase().indexOf(e)>-1})).slice(0,3)),this.findResult(e)}},methods:{showByShortcut:function(t){["a","r","v"].includes(t.key)||t.preventDefault();var e=this.results.length+this.actions.length;Number.isInteger(parseInt(t.key))&&parseInt(t.key)<e&&(this.index=parseInt(t.key),this.showSelected())},showSelected:function(){var t=this.index,e=t-this.actions.length;this.actions.length>0&&t<this.actions.length?this.openAction(this.actions[t]):("users"===this.activeFilter&&this.openUser(this.results[e]),this.activeFilter||this.openItem(this.results[e]))},openAction:function(t){"route"===t.action.type&&this.$router.push({name:t.action.value}),"function"===t.action.type&&("toggle-emoji"===t.action.value&&this.$store.dispatch("toggleEmojiType"),"toggle-grid-list"===t.action.value&&this.$store.dispatch("togglePreviewType"),"dark-mode"===t.action.value&&this.$store.dispatch("toggleThemeMode"),"full-screen-mode"===t.action.value&&this.$store.dispatch("toggleNavigationBars"),"log-out"===t.action.value&&this.$store.dispatch("logOut"),"empty-trash"===t.action.value&&this.$emptyTrashQuietly(),"create-team-folder"===t.action.value&&this.$createTeamFolder(),"create-file-request"===t.action.value&&this.$createFileRequest(),"remote-upload"===t.action.value&&this.$openRemoteUploadPopup()),this.exitSpotlight()},openUser:function(t){this.$router.push({name:"UserDetail",params:{id:t.data.id}}),this.exitSpotlight()},openItem:function(t){if("folder"===t.data.type)if(this.$isThisRoute(this.$route,["Public"]))this.$router.push({name:"Public",params:{token:this.sharedDetail.data.attributes.token,id:t.data.id}});else if(t.data.attributes.isTeamFolder){var e=t.data.relationships.user.data.id===this.user.data.id?"TeamFolders":"SharedWithMe";this.$router.push({name:e,params:{id:t.data.id}})}else this.$router.push({name:"Files",params:{id:t.data.id}});"folder"!==t.data.type&&(this.$store.commit("ADD_TO_FAST_PREVIEW",t),this.$store.commit("CLIPBOARD_REPLACE",t),n.U.$emit("file-preview:show")),this.exitSpotlight()},findResult:(0,b.debounce)((function(t){var e=this;if(""!==t&&void 0!==t){this.isLoading=!0;var r=this.$store.getters.sharedDetail?"/api/sharing/search/".concat(this.$router.currentRoute.params.token):"/api/search";m().get("".concat(r,"?filter=").concat(this.activeFilter),{params:{query:t}}).then((function(t){e.results=t.data.data})).catch((function(){return e.$isSomethingWrong()})).finally((function(){return e.isLoading=!1}))}}),150),exitSpotlight:function(){this.actions=[],this.results=[],this.query="",this.isVisible=!1},onPageDown:function(){var t=this.results.length+this.actions.length-1;this.index<t&&this.index++},onPageUp:function(){this.index>0&&this.index--},setFilter:function(t){var e=this;this.activeFilter=t,this.results=[],this.query="",this.$nextTick((function(){return e.$refs.searchInput.focus()}))},undoFilter:function(){this.activeFilter&&""===this.query&&2!==this.backspaceHits&&this.backspaceHits++,2===this.backspaceHits&&this.removeFilter()},removeFilter:function(){this.activeFilter=void 0,this.backspaceHits=0}},created:function(){var t=this;n.U.$on("spotlight:show",(function(e){t.isVisible=!0,t.activeFilter=e,t.$nextTick((function(){t.$refs.searchInput&&t.$refs.searchInput.focus()}))})),n.U.$on("spotlight:hide",(function(){return t.exitSpotlight()}))}};var P=r(3379),O=r.n(P),C=r(4499),$={insert:"head",singleton:!1};O()(C.Z,$);C.Z.locals;const S=(0,u.Z)(k,(function(){var t=this,e=t._self._c;return t.isVisible?e("div",{staticClass:"fixed left-0 right-0 bottom-0 top-0 z-50 z-50 h-full w-full bg-white dark:bg-dark-background md:absolute md:bg-dark-background md:bg-opacity-[0.35] dark:md:bg-opacity-[0.45]",attrs:{id:"spotlight",tabindex:"-1"},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.exitSpotlight.apply(null,arguments)},click:function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey||e.target!==e.currentTarget?null:t.exitSpotlight.apply(null,arguments)}}},[e("div",{staticClass:"relative z-50 mx-auto w-full overflow-y-auto md:mt-8 md:max-w-xl md:rounded-xl md:bg-white md:shadow-xl dark:md:bg-2x-dark-foreground 2xl:mt-20"},[e("div",{staticClass:"z-50 mx-auto flex items-center px-5 py-4"},[e("div",{staticClass:"relative mr-4"},[t.isLoading?e("div",{staticClass:"spinner-icon origin-center translate-y-2.5 scale-50 transform"},[e("Spinner")],1):t._e(),t._v(" "),e("search-icon",{staticClass:"magnify dark-text-theme text-theme vue-feather",class:{"opacity-0":t.isLoading},attrs:{size:"22"}})],1),t._v(" "),t.activeFilter?e("div",{staticClass:"mr-3 flex cursor-pointer items-center rounded-lg bg-light-background px-2 py-1 dark:bg-4x-dark-foreground",on:{click:t.removeFilter}},[e("b",{staticClass:"dark-text-theme -mt-0.5 pr-1.5 text-sm font-bold"},[t._v("\n "+t._s(t.activeFilter)+"\n ")]),t._v(" "),e("x-icon",{attrs:{size:"12"}})],1):t._e(),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.query,expression:"query"}],ref:"searchInput",staticClass:"w-full border-none bg-transparent text-lg font-semibold placeholder-gray-700 focus:outline-none dark:placeholder-gray-400 sm:text-xl",attrs:{type:"text",placeholder:t.$t("spotlight_search")},domProps:{value:t.query},on:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:t.undoFilter.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.showSelected.apply(null,arguments)},function(e){return e.metaKey?t.showByShortcut.apply(null,arguments):null},function(e){return e.ctrlKey?t.showByShortcut.apply(null,arguments):null}],keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:t.onPageDown.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:t.onPageUp.apply(null,arguments)}],input:function(e){e.target.composing||(t.query=e.target.value)}}}),t._v(" "),t.$isMobile()?t._e():e("div",{staticClass:"mr-2"},[e("span",{staticClass:"text-sm text-gray-400"},[t._v("esc")])]),t._v(" "),t.$isMobile()?e("div",{staticClass:"cursor-pointer",on:{click:t.exitSpotlight}},[e("x-icon",{staticClass:"close",attrs:{size:"22"}})],1):t._e()]),t._v(" "),t.isEmptyQuery&&!t.activeFilter&&!t.$isThisRoute(t.$route,["Public"])&&t.isAdmin?e("div",{staticClass:"relative z-50 px-4 pb-4"},[e("CategoryName",[t._v("\n "+t._s(t.$t("suggested_filters"))+"\n ")]),t._v(" "),t._l(t.filters,(function(r){return e("FilterSuggestion",{key:r.slug,attrs:{keyword:r.keyword,description:r.description},nativeOn:{click:function(e){return t.setFilter(r.slug)}}})}))],2):t._e(),t._v(" "),t.isNotEmptyQuery?e("div",{staticClass:"relative z-50 px-4 pb-4"},[0!==t.actions.length?e("CategoryName",[t._v("\n "+t._s(t.$t("actions"))+"\n ")]):t._e(),t._v(" "),0!==t.actions.length?e("div",{staticClass:"mb-2"},t._l(t.actions,(function(r,n){return e("div",{key:r.action.value,staticClass:"relative"},[e("div",{staticClass:"flex cursor-pointer items-center px-3.5 py-2.5",class:{"rounded-xl bg-light-background dark:bg-4x-dark-foreground":n===t.index},on:{mousedown:function(e){return t.openAction(r)}}},[["AppOthers","Profile","Password","AppServer","AppAppearance","AppIndex","AppEnvironment","AppOthers","AppSignInUp","AppAdsense"].includes(r.action.value)?e("settings-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"AppPayments"===r.action.value?e("credit-card-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"Files"===r.action.value?e("home-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"Trash"===r.action.value?e("trash2-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),["CreateFixedPlan","CreateMeteredPlan"].includes(r.action.value)?e("database-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"UserCreate"===r.action.value?e("user-plus-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),["TeamFolders","Users"].includes(r.action.value)?e("users-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"SharedWithMe"===r.action.value?e("user-check-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"MySharedItems"===r.action.value?e("link-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"remote-upload"===r.action.value?e("link2-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"RecentUploads"===r.action.value?e("upload-cloud-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),["Invoices","Invoice"].includes(r.action.value)?e("file-text-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"Plans"===r.action.value?e("database-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),["Subscriptions","Billing"].includes(r.action.value)?e("dollar-sign-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"Language"===r.action.value?e("globe-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"Pages"===r.action.value?e("monitor-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"Dashboard"===r.action.value?e("box-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"Storage"===r.action.value?e("hard-drive-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"dark-mode"===r.action.value?e("moon-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"full-screen-mode"===r.action.value?e("maximize2-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"log-out"===r.action.value?e("power-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"empty-trash"===r.action.value?e("trash-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"toggle-grid-list"===r.action.value?e("grid-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"toggle-emoji"===r.action.value?e("smile-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"create-team-folder"===r.action.value?e("folder-plus-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),"create-file-request"===r.action.value?e("upload-cloud-icon",{staticClass:"vue-feather text-theme",attrs:{size:"18"}}):t._e(),t._v(" "),e("b",{staticClass:"ml-3.5 text-sm font-bold"},[t._v("\n "+t._s(r.title)+"\n ")])],1),t._v(" "),t.$isMobile()?t._e():e("div",{staticClass:"absolute right-4 top-1/2 -translate-y-1/2 transform"},[e("span",{staticClass:"text-xs text-gray-400"},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(0===n?"↵":t.metaKeyIcon+n)+"\n\t\t\t\t\t\t\t")])])])})),0):t._e(),t._v(" "),t.activeFilter||0===t.results.length?t._e():e("CategoryName",[t._v("\n "+t._s(t.$t("files_and_folders"))+"\n ")]),t._v(" "),t._l(t.results,(function(r,n){return 0!==t.results.length?e("div",{key:r.data.id,staticClass:"relative"},["users"!==t.activeFilter||r.action?t._e():e("div",{staticClass:"flex items-center px-2.5 py-3.5",class:{"rounded-xl bg-light-background dark:bg-4x-dark-foreground":n+t.actions.length===t.index},on:{click:function(e){return t.openUser(r)}}},[e("MemberAvatar",{attrs:{"is-border":!1,size:44,member:r}}),t._v(" "),e("div",{staticClass:"ml-3"},[e("b",{staticClass:"max-w-1 block overflow-hidden text-ellipsis whitespace-nowrap text-sm font-bold",staticStyle:{"max-width":"155px"}},[t._v("\n "+t._s(r.data.attributes.name)+"\n ")]),t._v(" "),e("span",{staticClass:"block text-xs text-gray-600 dark:text-gray-500"},[t._v("\n "+t._s(r.data.attributes.email)+"\n ")])])],1),t._v(" "),t.activeFilter||r.action?t._e():e("ItemList",{class:{"rounded-xl bg-light-background dark:bg-4x-dark-foreground":n+t.actions.length===t.index},attrs:{entry:r,highlight:!1,"mobile-handler":!1},nativeOn:{click:function(e){return t.openItem(r)}}}),t._v(" "),t.$isMobile()?t._e():e("div",{staticClass:"absolute right-4 top-1/2 -translate-y-1/2 transform"},[e("span",{staticClass:"text-xs text-gray-400"},[t._v(t._s(n+t.actions.length===0?"↵":t.metaKeyIcon+(n+t.actions.length)))])])],1):t._e()})),t._v(" "),0===t.results.length&&0===t.actions.length?e("span",{staticClass:"p-2.5 text-sm text-gray-700 dark:text-gray-400"},[t._v("\n "+t._s(t.$t("messages.nothing_was_found"))+"\n ")]):t._e()],2):t._e(),t._v(" "),e("KeyboardHints")],1)]):t._e()}),[],!1,null,null,null).exports},7075:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});const n={name:"PlanPeriodSwitcher",components:{SwitchInput:r(7400).Z},watch:{isSelectedYearlyPlans:function(){this.$emit("input",this.isSelectedYearlyPlans)}},data:function(){return{isSelectedYearlyPlans:!1}}};const i=(0,r(1900).Z)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb-2 text-right"},[e("label",{staticClass:"cursor-pointer text-xs font-bold",class:{"text-gray-400":!t.isSelectedYearlyPlans}},[t._v("\n\t\t"+t._s(t.$t("billed_annually"))+"\n\t")]),t._v(" "),e("div",{staticClass:"relative inline-block w-12 select-none align-middle"},[e("SwitchInput",{staticClass:"scale-75 transform",attrs:{state:t.isSelectedYearlyPlans},model:{value:t.isSelectedYearlyPlans,callback:function(e){t.isSelectedYearlyPlans=e},expression:"isSelectedYearlyPlans"}})],1)])}),[],!1,null,null,null).exports},123:(t,e,r)=>{"use strict";r.d(e,{Z:()=>_});var n=r(9101),i=r(629);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==o(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===o(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const u={name:"PermissionToggleButton",props:["item"],computed:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},(0,i.Se)(["teamPermissions"])),components:{RefreshCwIcon:n.Iyk},data:function(){return{permission:void 0}},methods:{togglePermission:function(){var t=Object.keys(this.teamPermissions).map((function(t){return t})).indexOf(this.permission);t===Object.keys(this.teamPermissions).length-1?this.permission=Object.keys(this.teamPermissions)[0]:this.permission=Object.keys(this.teamPermissions)[t+1],this.$emit("input",this.permission)}},created:function(){this.permission=this.item.permission}};var c=r(3379),d=r.n(c),l=r(1034),f={insert:"head",singleton:!1};d()(l.Z,f);l.Z.locals;var p=r(1900);const v=(0,p.Z)(u,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"permission-toggle",on:{click:t.togglePermission}},[e("b",{staticClass:"privilege"},[t._v(t._s(t.$t(t.teamPermissions[t.permission])))]),t._v(" "),e("refresh-cw-icon",{attrs:{size:"14"}})],1)}),[],!1,null,"dd2b709a",null).exports;var h=r(4509);function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function y(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==m(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===m(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const g={name:"TeamList",props:["value"],computed:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(Object(r),!0).forEach((function(e){y(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},(0,i.Se)(["user"])),components:{PermissionToggleButton:v,MemberAvatar:h.Z,XIcon:n.b0D},data:function(){return{members:void 0}},methods:{updateMemberPermission:function(t,e){this.members.map((function(r){return r===t?r.permission=e:r})),this.emitMembers()},deleteMember:function(t){this.members=this.members.filter((function(e){return e!==t})),this.emitMembers()},emitMembers:function(){this.$emit("input",this.members)}},created:function(){this.members=this.value}};const _=(0,p.Z)(g,(function(){var t=this,e=t._self._c;return e("ul",t._l(t.members,(function(r,n){return Object.values(t.members).length>0&&r.id!==t.user.data.id?e("li",{key:n,staticClass:"flex items-center py-2"},[e("div",{staticClass:"-ml-1.5 cursor-pointer py-2 px-1 leading-none",on:{click:function(e){return t.deleteMember(r)}}},[e("x-icon",{staticClass:"vue-feather dark:text-gray-600",attrs:{size:"14"}})],1),t._v(" "),e("div",{staticClass:"flex items-center"},[e("MemberAvatar",{staticClass:"mr-3 ml-2",attrs:{"is-border":!1,size:44,member:t.$mapIntoMemberResource(r)}}),t._v(" "),"member"===r.type?e("div",{staticClass:"info"},[e("b",{staticClass:"max-w-1 block overflow-hidden text-ellipsis whitespace-nowrap text-sm font-bold",staticStyle:{"max-width":"155px"}},[t._v("\n "+t._s(r.name)+"\n ")]),t._v(" "),e("span",{staticClass:"block text-xs text-gray-600 dark:text-gray-500"},[t._v("\n "+t._s(r.email)+"\n ")])]):t._e(),t._v(" "),"invitation"===r.type?e("div",{staticClass:"info"},[e("b",{staticClass:"block max-w-xs overflow-hidden text-ellipsis whitespace-nowrap text-sm font-bold",staticStyle:{"max-width":"155px"}},[t._v("\n "+t._s(r.email)+"\n ")]),t._v(" "),r.id?e("span",{staticClass:"block text-xs text-gray-600 dark:text-gray-500"},[t._v("\n "+t._s(t.$t("waiting_for_accept_invitation"))+"\n ")]):t._e()]):t._e()],1),t._v(" "),e("div",{staticClass:"ml-auto"},[e("PermissionToggleButton",{attrs:{item:r},on:{input:function(e){return t.updateMemberPermission(r,e)}}})],1)]):t._e()})),0)}),[],!1,null,null,null).exports},8645:(t,e,r)=>{"use strict";r.d(e,{Z:()=>O});var n=r(1157),i=r(9495),o=r(588),a=r(4654),s=r(8023),u=r(1520),c=r(6904),d=r(4789),l=r(123),f=r(4479),p=r(3666),v=r(5399),h=r(9669),m=r.n(h),b=r(629);function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}function g(){g=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),s=new E(n||[]);return i(a,"_invoke",{value:S(t,r,s)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var f="suspendedStart",p="suspendedYield",v="executing",h="completed",m={};function b(){}function _(){}function x(){}var w={};c(w,a,(function(){return this}));var k=Object.getPrototypeOf,P=k&&k(k(I([])));P&&P!==r&&n.call(P,a)&&(w=P);var O=x.prototype=b.prototype=Object.create(w);function C(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function $(t,e){function r(i,o,a,s){var u=l(t[i],t,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==y(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(d).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function S(e,r,n){var i=f;return function(o,a){if(i===v)throw new Error("Generator is already running");if(i===h){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=j(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===f)throw i=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=l(e,r,n);if("normal"===c.type){if(i=n.done?h:p,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=h,n.method="throw",n.arg=c.arg)}}}function j(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=l(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(y(e)+" is not iterable")}return _.prototype=x,i(O,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:_,configurable:!0}),_.displayName=c(x,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,c(t,u,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},C($.prototype),c($.prototype,s,(function(){return this})),e.AsyncIterator=$,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new $(d(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},C(O),c(O,u,"Generator"),c(O,a,(function(){return this})),c(O,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function _(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function x(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function w(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?x(Object(r),!0).forEach((function(e){k(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function k(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==y(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===y(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const P={name:"CreateTeamFolderPopup",components:{ValidationProvider:i.ValidationProvider,ValidationObserver:i.ValidationObserver,AppInputText:n.Z,TeamList:l.Z,ThumbnailItem:c.Z,PopupWrapper:o.Z,PopupActions:a.Z,PopupContent:s.Z,PopupHeader:u.Z,ButtonBase:d.Z,required:f.C1,InfoBox:p.Z},computed:w(w({},(0,b.Se)(["user"])),{},{popupTitle:function(){return this.item?this.$t("convert_as_team_folder"):this.$t("create_team_folder")},popupSubmit:function(){return this.item?this.$t("move_and_invite_members"):this.$t("create_team_folder")},isNewFolderTeamCreation:function(){return!this.item}}),data:function(){return{invitations:[],item:void 0,name:void 0,email:void 0,isLoading:!1}},methods:{createTeamFolder:function(){var t,e=this;return(t=g().mark((function t(){var r,n;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.teamFolderForm.validate();case 2:if(t.sent){t.next=5;break}return t.abrupt("return");case 5:e.isLoading=!0,r=e.name?"/api/teams/folders":"/api/teams/folders/".concat(e.item.data.id,"/convert"),n=e.name?{name:e.name,invitations:e.invitations}:{invitations:e.invitations},m().post(r,n).then((function(t){var r=e.$isThisRoute(e.$route,["TeamFolders"]);r&&e.$route.params.id?e.$router.push({name:"TeamFolders",params:{id:t.data.data.id}}):r&&!e.$route.params.id?e.$store.commit("ADD_NEW_ITEM",t.data):r||e.$router.push({name:"TeamFolders"});var n=e.isNewFolderTeamCreation?e.$t("team_was_invited"):e.$t("team_was_invited_and_folder_moved");v.U.$emit("toaster",{type:"success",message:n}),e.$store.dispatch("getAppData")})).catch((function(){return e.$isSomethingWrong()})).finally((function(){e.isLoading=!1,e.name=void 0,e.invitations=void 0,e.$closePopup()}));case 9:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){_(o,n,i,a,s,"next",t)}function s(t){_(o,n,i,a,s,"throw",t)}a(void 0)}))})()},addMember:function(){this.$isValidEmail(this.email)?this.$cantInviteMember(this.email,this.invitations)?this.$refs.teamFolderForm.setErrors({Email:this.$t("upgrade_to_invite_members")}):(this.$refs.teamFolderForm.reset(),this.invitations.unshift({type:"invitation",email:this.email,permission:"can-edit"}),this.email=void 0):this.$refs.teamFolderForm.setErrors({Email:this.$t("type_valid_email")})}},created:function(){var t=this;v.U.$on("popup:open",(function(e){"create-team-folder"===e.name&&(t.item=e.item,t.$nextTick((function(){t.$isMobile()||(t.item&&t.$refs.email.focus(),!t.item&&t.$refs.name&&t.$refs.name.focus())})))})),v.U.$on("popup:close",(function(){setTimeout((function(){t.email=void 0,t.name=void 0,t.item=void 0,t.invitations=[]}),150)}))}};const O=(0,r(1900).Z)(P,(function(){var t=this,e=t._self._c;return e("PopupWrapper",{attrs:{name:"create-team-folder"}},[e("PopupHeader",{attrs:{title:t.popupTitle,icon:"user-plus"}}),t._v(" "),e("PopupContent",[t.isNewFolderTeamCreation?t._e():e("ThumbnailItem",{staticClass:"mb-5",attrs:{item:t.item}}),t._v(" "),e("ValidationObserver",{ref:"teamFolderForm",attrs:{tag:"form"},on:{submit:function(e){return e.preventDefault(),t.createTeamFolder.apply(null,arguments)}},scopedSlots:t._u([{key:"default",fn:function(r){r.invalid;return[t.isNewFolderTeamCreation?e("ValidationProvider",{attrs:{tag:"div",mode:"passive",name:"Name",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(r){var n=r.errors;return[e("AppInputText",{attrs:{title:t.$t("popup_create_folder.label"),error:n[0]}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.name,expression:"name"}],ref:"name",staticClass:"focus-border-theme input-dark",class:{"!border-rose-600":n[0]},attrs:{type:"text",placeholder:t.$t("popup_create_folder.placeholder")},domProps:{value:t.name},on:{input:function(e){e.target.composing||(t.name=e.target.value)}}})])]}}],null,!0)}):t._e(),t._v(" "),e("ValidationProvider",{attrs:{tag:"div",mode:"passive",name:"Email"},scopedSlots:t._u([{key:"default",fn:function(r){var n=r.errors;return[e("AppInputText",{attrs:{title:t.$t("add_member"),error:n[0]}},[e("div",{staticClass:"relative"},[t.email?e("span",{staticClass:"button-base theme absolute right-2 top-1/2 -translate-y-1/2 transform cursor-pointer rounded-lg px-3 py-2 text-sm font-bold",on:{click:t.addMember}},[t._v("\n "+t._s(t.$t("add"))+"\n ")]):t._e(),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],ref:"email",staticClass:"focus-border-theme input-dark",class:{"!border-rose-600":n[0]},attrs:{type:"email",placeholder:t.$t("type_member_email_")},domProps:{value:t.email},on:{keypress:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.stopPropagation(),e.preventDefault(),t.addMember.apply(null,arguments))},input:function(e){e.target.composing||(t.email=e.target.value)}}})])])]}}],null,!0)}),t._v(" "),e("ValidationProvider",{attrs:{tag:"div",mode:"passive",name:"Members",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(r){var n=r.errors;return[e("AppInputText",{attrs:{title:t.$t("your_members"),error:n[0],"is-last":!0}},[n[0]?e("span",{staticClass:"text-left text-xs text-red-600",staticStyle:{"margin-top":"-5px"}},[t._v("\n "+t._s(t.$t("add_at_least_one_member"))+"\n ")]):t._e(),t._v(" "),e("TeamList",{model:{value:t.invitations,callback:function(e){t.invitations=e},expression:"invitations"}}),t._v(" "),0===Object.values(t.invitations).length?e("p",{staticClass:"text-xs dark:text-gray-500"},[t._v("\n "+t._s(t.$t("add_at_least_one_member_into_team_folder"))+"\n ")]):t._e()],1)]}}],null,!0)}),t._v(" "),t.isNewFolderTeamCreation?t._e():e("InfoBox",{staticClass:"mt-2.5 !mb-0"},[e("p",{domProps:{innerHTML:t._s(t.$t("popup.move_into_team_disclaimer"))}})])]}}])})],1),t._v(" "),e("PopupActions",[e("ButtonBase",{staticClass:"w-full",attrs:{"button-style":"secondary"},nativeOn:{click:function(e){return t.$closePopup()}}},[t._v(t._s(t.$t("cancel"))+"\n ")]),t._v(" "),e("ButtonBase",{staticClass:"w-full",attrs:{"button-style":"theme",loading:t.isLoading,disabled:t.isLoading},nativeOn:{click:function(e){return t.createTeamFolder.apply(null,arguments)}}},[t._v(t._s(t.popupSubmit)+"\n ")])],1)],1)}),[],!1,null,null,null).exports},4253:(t,e,r)=>{"use strict";r.d(e,{Z:()=>d});var n=r(9389),i=r(2007),o=r(9101);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==a(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===a(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const c={name:"ToolbarButton",props:["source","action"],computed:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){u(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},(0,r(629).Se)(["isVisibleSidebar"])),components:{SearchIcon:o.W1M,CloudPlusIcon:i.Z,UserPlusIcon:o.oLu,SortingIcon:n.Z,CornerDownRightIcon:o.tio,DownloadCloudIcon:o.NDL,FolderPlusIcon:o.f1I,CloudOffIcon:o.GXT,PrinterIcon:o.NJq,ZoomOutIcon:o.xLV,ZoomInIcon:o.Sd5,Trash2Icon:o.Bf1,Edit2Icon:o.me4,ListIcon:o.DE2,GridIcon:o.pso,InfoIcon:o.szr,LinkIcon:o.xPt,XIcon:o.b0D}};const d=(0,r(1900).Z)(c,(function(){var t=this,e=t._self._c;return e("button",{staticClass:"group inline-flex h-[42px] w-[42px] cursor-pointer items-center justify-center rounded-lg hover:bg-light-background dark:hover:bg-2x-dark-foreground",attrs:{title:t.action}},["move"===t.source?e("corner-down-right-icon",{staticClass:"vue-feather group-hover-text-theme",attrs:{size:"19"}}):t._e(),t._v(" "),"download"===t.source?e("download-cloud-icon",{staticClass:"vue-feather group-hover-text-theme",attrs:{size:"19"}}):t._e(),t._v(" "),"folder-plus"===t.source?e("folder-plus-icon",{staticClass:"vue-feather group-hover-text-theme",attrs:{size:"19"}}):t._e(),t._v(" "),"user-plus"===t.source?e("user-plus-icon",{staticClass:"vue-feather group-hover-text-theme",attrs:{size:"19"}}):t._e(),t._v(" "),"zoom-in"===t.source?e("zoom-in-icon",{staticClass:"vue-feather group-hover-text-theme",attrs:{size:"19"}}):t._e(),t._v(" "),"zoom-out"===t.source?e("zoom-out-icon",{staticClass:"vue-feather group-hover-text-theme",attrs:{size:"19"}}):t._e(),t._v(" "),"rename"===t.source?e("edit-2-icon",{staticClass:"vue-feather group-hover-text-theme",attrs:{size:"19"}}):t._e(),t._v(" "),"print"===t.source?e("printer-icon",{staticClass:"vue-feather group-hover-text-theme",attrs:{size:"19"}}):t._e(),t._v(" "),"trash"===t.source?e("trash-2-icon",{staticClass:"vue-feather group-hover-text-theme",attrs:{size:"19"}}):t._e(),t._v(" "),"th-list"===t.source?e("list-icon",{staticClass:"vue-feather group-hover-text-theme",attrs:{size:"19"}}):t._e(),t._v(" "),"info"===t.source?e("info-icon",{staticClass:"vue-feather group-hover-text-theme",class:{"text-theme":t.isVisibleSidebar},attrs:{size:"19"}}):t._e(),t._v(" "),"th"===t.source?e("grid-icon",{staticClass:"vue-feather group-hover-text-theme",attrs:{size:"19"}}):t._e(),t._v(" "),"share"===t.source?e("link-icon",{staticClass:"vue-feather group-hover-text-theme",attrs:{size:"19"}}):t._e(),t._v(" "),"close"===t.source?e("x-icon",{staticClass:"vue-feather group-hover-text-theme",attrs:{size:"19"}}):t._e(),t._v(" "),"search"===t.source?e("search-icon",{staticClass:"vue-feather group-hover-text-theme",attrs:{size:"19"}}):t._e(),t._v(" "),"shared-off"===t.source?e("cloud-off-icon",{staticClass:"vue-feather group-hover-text-theme",attrs:{size:"19"}}):t._e(),t._v(" "),"preview-sorting"===t.source?e("sorting-icon",{staticClass:"vue-feather group-hover-text-theme scale-125"}):t._e(),t._v(" "),"cloud-plus"===t.source?e("CloudPlusIcon",{staticClass:"vue-feather group-hover-text-theme scale-125"}):t._e()],1)}),[],!1,null,null,null).exports},2320:(t,e,r)=>{"use strict";r.d(e,{Z:()=>b});var n=r(9513),i=r(9101),o=r(4407),a=r(4509),s=r(2595),u=r(7464),c=r(6486),d=r(629),l=r(5399);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?p(Object(r),!0).forEach((function(e){h(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function h(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==f(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===f(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const m={name:"ItemGrid",components:{FileIconThumbnail:o.Z,MoreHorizontalIcon:i.xhG,MemberAvatar:a.Z,FolderIcon:n.Z,CheckBox:u.Z,LinkIcon:i.xPt,EyeIcon:i.tEF,Emoji:s.Z},props:["mobileHandler","entry","canHover"],data:function(){return{mobileMultiSelect:!1,itemName:void 0,imageSrc:void 0}},computed:v(v({},(0,d.Se)(["isMultiSelectMode","clipboard","user"])),{},{isClicked:function(){var t=this;return this.clipboard.some((function(e){return e.data.id===t.entry.data.id}))},isAudio:function(){return"audio"===this.entry.data.type},isVideo:function(){return"video"===this.entry.data.type},isFile:function(){return"file"===this.entry.data.type},isImage:function(){return"image"===this.entry.data.type},isFolder:function(){return"folder"===this.entry.data.type},timeStamp:function(){return this.entry.data.attributes.deleted_at?this.$t("item_thumbnail.deleted_at",{time:this.entry.data.attributes.deleted_at}):this.entry.data.attributes.created_at},canEditName:function(){return!this.$isMobile()&&!this.$isThisRoute(this.$route,["Trash","SharedSingleFile"])&&!this.$checkPermission("visitor")},folderItems:function(){return this.entry.data.attributes.deleted_at?this.entry.data.attributes.trashed_items:this.entry.data.attributes.items},canShowAuthor:function(){return this.$isThisRoute(this.$route,["SharedWithMe","TeamFolders"])&&!this.isFolder&&this.entry.data.relationships.creator&&this.user.data.id!==this.entry.data.relationships.creator.data.id},canShowLinkIcon:function(){return this.entry.data.relationships.shared&&!this.$isThisRoute(this.$route,["SharedSingleFile"])},canDrag:function(){return!this.isDeleted&&this.$checkPermission(["master","editor"])}}),methods:{getImageSrc:function(){this.imageSrc="svg"===this.entry.data.attributes.mimetype?this.entry.data.attributes.file_url:this.entry.data.attributes.thumbnail.sm},replaceByOriginal:function(){this.imageSrc=this.entry.data.attributes.file_url},showItemActions:function(){this.$store.commit("CLIPBOARD_CLEAR"),this.$store.commit("ADD_ITEM_TO_CLIPBOARD",this.entry),this.$showMobileMenu("file-menu"),l.U.$emit("mobile-context-menu:show",this.entry)},renameItem:(0,c.debounce)((function(t){""!==t.target.innerText.trim()&&this.$store.dispatch("renameItem",{id:this.entry.data.id,type:this.entry.data.type,name:t.target.innerText})}),300)},created:function(){var t=this;l.U.$on("change:name",(function(e){t.entry.data.id===e.id&&(t.itemName=e.name)})),l.U.$on("newFolder:focus",(function(e){t.$isMobile()||t.entry.data.id!==e||(t.$refs.name.focus(),document.execCommand("selectAll"))})),this.itemName=this.entry.data.attributes.name,"image"===this.entry.data.type&&this.getImageSrc()}};const b=(0,r(1900).Z)(m,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"relative z-0 flex h-48 select-none flex-wrap items-center justify-center rounded-lg border-2 border-dashed border-transparent px-1 pt-2 text-center sm:h-56 lg:h-60 cursor-pointer",class:{"bg-light-background dark:bg-dark-foreground":t.isClicked&&t.canHover,"dark:hover:bg-dark-foreground lg:hover:bg-light-background":t.canHover},attrs:{draggable:t.canDrag,spellcheck:"false"}},[t.isMultiSelectMode?e("CheckBox",{staticClass:"mr-5",attrs:{"is-clicked":t.isClicked}}):t._e(),t._v(" "),e("div",{staticClass:"w-full"},[e("div",{staticClass:"relative mx-auto"},[t.entry.data.attributes.emoji?e("Emoji",{staticClass:"mb-10 inline-block scale-150 transform text-5xl",attrs:{emoji:t.entry.data.attributes.emoji}}):t._e(),t._v(" "),t.isFolder&&!t.entry.data.attributes.emoji?e("FolderIcon",{staticClass:"mt-3 mb-5 inline-block scale-150 transform lg:mt-2 lg:mb-8",attrs:{item:t.entry}}):t._e(),t._v(" "),t.isFile||t.isVideo||t.isAudio||t.isImage&&!t.entry.data.attributes.thumbnail?e("div",{staticClass:"relative mx-auto w-24"},[t.user&&t.canShowAuthor?e("MemberAvatar",{staticClass:"absolute right-2 -bottom-5 z-10 z-10 scale-75 transform lg:-bottom-7 lg:scale-100",attrs:{size:38,"is-border":!0,member:t.entry.data.relationships.creator}}):t._e(),t._v(" "),e("FileIconThumbnail",{staticClass:"z-0 mt-5 mb-10 scale-125 transform lg:mb-12 lg:mt-6 lg:scale-150",attrs:{entry:t.entry}})],1):t._e(),t._v(" "),t.isImage&&t.entry.data.attributes.thumbnail?e("div",{staticClass:"relative mb-4 inline-block h-24 w-28 lg:h-28 lg:w-36"},[t.user&&t.canShowAuthor?e("MemberAvatar",{staticClass:"absolute -right-3 -bottom-2.5 z-10 scale-75 transform lg:scale-100",attrs:{size:38,"is-border":!0,member:t.entry.data.relationships.creator}}):t._e(),t._v(" "),e("img",{staticClass:"h-full w-full rounded-lg object-cover shadow-lg pointer-events-none",attrs:{src:t.imageSrc,alt:"",loading:"lazy"},on:{error:t.replaceByOriginal}})],1):t._e()],1),t._v(" "),e("div",{staticClass:"text-center"},[e("span",{ref:"name",staticClass:"inline-block w-full overflow-hidden text-ellipsis whitespace-nowrap text-sm font-bold leading-3 tracking-tight md:px-6",class:{"hover:underline cursor-text":t.canEditName},attrs:{contenteditable:t.canEditName},on:{input:t.renameItem,keydown:[function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"]))return null;e.stopPropagation()},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.$refs.name.blur()}],click:function(t){t.stopPropagation()}}},[t._v("\n "+t._s(t.itemName)+"\n ")]),t._v(" "),e("div",{staticClass:"flex items-center justify-center"},[t.isFolder?t._e():e("small",{staticClass:"block text-xs text-gray-500 dark:text-gray-500"},[e("link-icon",{staticClass:"text-theme dark-text-theme vue-feather inline-block mr-0.5 mb-1",attrs:{size:"12"}}),t._v("\n\t\t\t\t\t\t"+t._s(t.entry.data.attributes.filesize)+",\n "),e("span",{staticClass:"hidden text-xs text-gray-500 dark:text-gray-500 lg:inline-block"},[t._v(t._s(t.timeStamp))])],1),t._v(" "),t.isFolder?e("small",{staticClass:"block text-xs text-gray-500 dark:text-gray-500"},[t.canShowLinkIcon?e("link-icon",{staticClass:"text-theme dark-text-theme vue-feather mr-0.5 mb-1 inline-block",attrs:{size:"12"}}):t._e(),t._v("\n "+t._s(0===t.folderItems?t.$t("empty"):t.$tc("folder.item_counts",t.folderItems))+", "),e("span",{staticClass:"hidden text-xs text-gray-500 dark:text-gray-500 lg:inline-block"},[t._v(t._s(t.timeStamp))])],1):t._e()])]),t._v(" "),t.mobileHandler&&!t.isMultiSelectMode&&t.$isMobile()?e("div",{staticClass:"relative flex items-center justify-center py-0.5 px-2"},[e("div",{staticClass:"hidden p-2.5 sm:block",on:{mouseup:function(e){return e.stopPropagation(),t.$openInDetailPanel(t.entry)}}},[e("eye-icon",{staticClass:"vue-feather inline-block opacity-30",attrs:{size:"18"}})],1),t._v(" "),e("div",{staticClass:"p-2.5",on:{mouseup:function(e){return e.stopPropagation(),t.showItemActions.apply(null,arguments)}}},[e("MoreHorizontalIcon",{staticClass:"vue-feather text-theme dark-text-theme inline-block",attrs:{size:"18"}})],1)]):t._e()])],1)}),[],!1,null,null,null).exports},3058:(t,e,r)=>{"use strict";r.d(e,{Z:()=>b});var n=r(2595),i=r(9513),o=r(9101),a=r(4407),s=r(4509),u=r(7464),c=r(6486),d=r(629),l=r(5399);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?p(Object(r),!0).forEach((function(e){h(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function h(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==f(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===f(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const m={name:"ItemList",components:{FileIconThumbnail:a.Z,MoreVerticalIcon:o.Huf,MemberAvatar:s.Z,FolderIcon:i.Z,CheckBox:u.Z,LinkIcon:o.xPt,EyeIcon:o.tEF,Emoji:n.Z},props:["mobileHandler","highlight","entry"],watch:{isChecked:function(t){t?this.$store.commit("ADD_ITEM_TO_CLIPBOARD",this.entry):this.$store.commit("REMOVE_ITEM_FROM_CLIPBOARD",this.entry.data.id)}},data:function(){return{mobileMultiSelect:!1,itemName:void 0,isSelected:!1,isChecked:!1,imageSrc:void 0}},computed:v(v({},(0,d.Se)(["isMultiSelectMode","clipboard","user"])),{},{isClicked:function(){var t=this;return this.clipboard.some((function(e){return e.data.id===t.entry.data.id}))},isVideo:function(){return"video"===this.entry.data.type},isAudio:function(){return"audio"===this.entry.data.type},isFile:function(){return"file"===this.entry.data.type},isImage:function(){return"image"===this.entry.data.type},isFolder:function(){return"folder"===this.entry.data.type},timeStamp:function(){return this.entry.data.attributes.deleted_at?this.$t("item_thumbnail.deleted_at",{time:this.entry.data.attributes.deleted_at}):this.entry.data.attributes.created_at},canEditName:function(){return!(this.$isMobile()||this.$isThisRoute(this.$route,["Trash"])||this.$checkPermission("visitor")||this.sharedDetail&&"file"===this.sharedDetail.attributes.type)},folderItems:function(){return this.entry.data.attributes.deleted_at?this.entry.data.attributes.trashed_items:this.entry.data.attributes.items},canShowAuthor:function(){return!this.isFolder&&this.entry.data.relationships.creator&&this.user.data.id!==this.entry.data.relationships.creator.data.id},canDrag:function(){return!this.isDeleted&&this.$checkPermission(["master","editor"])}}),methods:{getImageSrc:function(){this.imageSrc="svg"===this.entry.data.attributes.mimetype?this.entry.data.attributes.file_url:this.entry.data.attributes.thumbnail.xs},replaceByOriginal:function(){this.imageSrc=this.entry.data.attributes.file_url},showItemActions:function(){this.$store.commit("CLIPBOARD_CLEAR"),this.$store.commit("ADD_ITEM_TO_CLIPBOARD",this.entry),this.$showMobileMenu("file-menu"),l.U.$emit("mobile-context-menu:show",this.entry)},renameItem:(0,c.debounce)((function(t){""!==t.target.innerText.trim()&&this.$store.dispatch("renameItem",{id:this.entry.data.id,type:this.entry.data.type,name:t.target.innerText})}),300)},created:function(){var t=this;l.U.$on("change:name",(function(e){t.entry.data.id===e.id&&(t.itemName=e.name)})),l.U.$on("newFolder:focus",(function(e){t.$isMobile()||t.entry.data.id!==e||(t.$refs.name.focus(),document.execCommand("selectAll"))})),this.itemName=this.entry.data.attributes.name,"image"===this.entry.data.type&&this.getImageSrc()}};const b=(0,r(1900).Z)(m,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"flex select-none items-center rounded-xl border-2 border-dashed border-transparent px-2.5 py-2 cursor-pointer",class:{"bg-light-background dark:bg-dark-foreground":t.isClicked&&t.highlight,"hover:bg-light-background dark:hover:bg-dark-foreground":t.highlight},attrs:{draggable:t.canDrag,spellcheck:"false"}},[t.isMultiSelectMode?e("CheckBox",{staticClass:"mr-5",attrs:{"is-clicked":t.isClicked},model:{value:t.isChecked,callback:function(e){t.isChecked=e},expression:"isChecked"}}):t._e(),t._v(" "),e("div",{staticClass:"relative w-16 shrink-0"},[t.user&&t.canShowAuthor?e("MemberAvatar",{staticClass:"absolute right-1.5 -bottom-2 z-10",attrs:{size:28,"is-border":!0,member:t.entry.data.relationships.creator}}):t._e(),t._v(" "),t.entry.data.attributes.emoji?e("Emoji",{staticClass:"ml-1 scale-110 transform text-5xl",attrs:{emoji:t.entry.data.attributes.emoji}}):t._e(),t._v(" "),t.isFolder&&!t.entry.data.attributes.emoji?e("FolderIcon",{attrs:{item:t.entry}}):t._e(),t._v(" "),t.isFile||t.isVideo||t.isAudio||t.isImage&&!t.entry.data.attributes.thumbnail?e("FileIconThumbnail",{staticClass:"pr-2",attrs:{entry:t.entry}}):t._e(),t._v(" "),t.isImage&&t.entry.data.attributes.thumbnail?e("img",{staticClass:"ml-0.5 h-12 w-12 rounded object-cover pointer-events-none",attrs:{src:t.imageSrc,alt:"",loading:"lazy"},on:{error:t.replaceByOriginal}}):t._e()],1),t._v(" "),e("div",{staticClass:"pl-2 min-w-0"},[e("span",{ref:"name",staticClass:"item-name mb-0.5 block overflow-hidden text-ellipsis whitespace-nowrap text-sm font-bold lg:pr-0 pr-4",class:{"hover:underline cursor-text":t.canEditName,"lg:!pr-16":t.mobileHandler&&t.$isMobile()},attrs:{contenteditable:t.canEditName},on:{input:t.renameItem,keydown:[function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"]))return null;e.stopPropagation()},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.$refs.name.blur()}],click:function(t){t.stopPropagation()}}},[t._v("\n "+t._s(t.itemName)+"\n ")]),t._v(" "),e("div",{staticClass:"flex items-center"},[t.$checkPermission("master")&&t.entry.data.relationships.shared?e("div",[e("link-icon",{staticClass:"text-theme dark-text-theme vue-feather mr-1.5",attrs:{size:"12"}})],1):t._e(),t._v(" "),t.isFolder?t._e():e("small",{staticClass:"block text-xs text-gray-500 dark:text-gray-500"},[t._v("\n "+t._s(t.entry.data.attributes.filesize)+", "+t._s(t.timeStamp)+"\n ")]),t._v(" "),t.isFolder?e("small",{staticClass:"block text-xs text-gray-500 dark:text-gray-500"},[t._v("\n "+t._s(0===t.folderItems?t.$t("empty"):t.$tc("folder.item_counts",t.folderItems))+",\n "+t._s(t.timeStamp)+"\n ")]):t._e()])]),t._v(" "),t.mobileHandler&&!t.isMultiSelectMode&&t.$isMobile()?e("div",{staticClass:"relative flex-grow pr-1 text-right"},[e("div",{staticClass:"absolute right-10 -mr-4 hidden -translate-y-2/4 transform p-2.5 lg:block",on:{mouseup:function(e){return e.stopPropagation(),t.$openInDetailPanel(t.entry)}}},[e("eye-icon",{staticClass:"vue-feather inline-block opacity-30",attrs:{size:"18"}})],1),t._v(" "),e("div",{staticClass:"absolute right-0 -mr-4 -translate-y-2/4 transform p-2.5",on:{mouseup:function(e){return e.stopPropagation(),t.showItemActions.apply(null,arguments)}}},[e("MoreVerticalIcon",{staticClass:"vue-feather text-theme dark-text-theme inline-block",attrs:{size:"18"}})],1)]):t._e()],1)}),[],!1,null,null,null).exports},6904:(t,e,r)=>{"use strict";r.d(e,{Z:()=>v});var n=r(9101),i=r(4407),o=r(4509),a=r(2595),s=r(629),u=r(9513);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach((function(e){f(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function f(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==c(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===c(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const p={name:"ThumbnailItem",props:["setFolderIcon","item","info"],components:{FileIconThumbnail:i.Z,MemberAvatar:o.Z,FolderIcon:u.Z,Emoji:a.Z,LinkIcon:n.xPt,EyeIcon:n.tEF},computed:l(l({},(0,s.Se)(["isMultiSelectMode","clipboard","user"])),{},{isClicked:function(){var t=this;return this.clipboard.some((function(e){return e.data.id===t.item.data.id}))},isVideo:function(){return"video"===this.item.data.type},isAudio:function(){return"audio"===this.item.data.type},isFile:function(){return"file"===this.item.data.type},isImage:function(){return"image"===this.item.data.type},isFolder:function(){return"folder"===this.item.data.type},timeStamp:function(){return this.item.data.attributes.deleted_at?this.$t("item_thumbnail.deleted_at",{time:this.item.data.attributes.deleted_at}):this.item.data.attributes.created_at},canEditName:function(){return!(this.$isMobile()||this.$isThisRoute(this.$route,["Trash"])||this.$checkPermission("visitor")||this.sharedDetail&&"file"===this.sharedDetail.attributes.type)},folderItems:function(){return this.item.data.attributes.deleted_at?this.item.data.attributes.trashed_items:this.item.data.attributes.items},canShowAuthor:function(){return!this.isFolder&&this.item.data.relationships.creator&&this.user.data.id!==this.item.data.relationships.creator.data.id},canDrag:function(){return!this.isDeleted&&this.$checkPermission(["master","editor"])}})};const v=(0,r(1900).Z)(p,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"flex select-none items-center rounded-xl",attrs:{spellcheck:"false"}},[e("div",{staticClass:"relative w-16 shrink-0"},[t.user&&t.canShowAuthor?e("MemberAvatar",{staticClass:"absolute right-1.5 -bottom-2 z-10",attrs:{size:28,"is-border":!0,member:t.item.data.relationships.creator}}):t._e(),t._v(" "),t.item.data.attributes.emoji?e("Emoji",{staticClass:"ml-1 scale-110 transform text-5xl",attrs:{emoji:t.item.data.attributes.emoji}}):t._e(),t._v(" "),t.isFolder&&!t.item.data.attributes.emoji?e("FolderIcon",{attrs:{item:t.item}}):t._e(),t._v(" "),t.isFile||t.isVideo||t.isAudio||t.isImage&&!t.item.data.attributes.thumbnail?e("FileIconThumbnail",{staticClass:"pr-2",attrs:{entry:t.item}}):t._e(),t._v(" "),t.isImage&&t.item.data.attributes.thumbnail?e("img",{staticClass:"ml-0.5 h-12 w-12 rounded object-cover",attrs:{src:t.item.data.attributes.thumbnail.xs,alt:t.item.data.attributes.name,loading:"lazy"}}):t._e()],1),t._v(" "),e("div",{staticClass:"pl-2 min-w-0"},[e("b",{staticClass:"mb-0.5 block overflow-hidden text-ellipsis whitespace-nowrap text-sm hover:underline"},[t._v("\n "+t._s(t.item.data.attributes.name)+"\n ")]),t._v(" "),e("div",{staticClass:"flex items-center"},[t.$checkPermission("master")&&t.item.data.relationships.shared?e("div",[e("link-icon",{staticClass:"text-theme dark-text-theme vue-feather mr-1.5",attrs:{size:"12"}})],1):t._e(),t._v(" "),t.isFolder?t._e():e("small",{staticClass:"block text-xs text-gray-500"},[t._v("\n "+t._s(t.item.data.attributes.filesize)+", "+t._s(t.timeStamp)+"\n ")]),t._v(" "),t.isFolder?e("small",{staticClass:"block text-xs text-gray-500"},[t._v("\n "+t._s(0===t.folderItems?t.$t("empty"):t.$tc("folder.item_counts",t.folderItems))+",\n "+t._s(t.timeStamp)+"\n ")]):t._e()])])])}),[],!1,null,null,null).exports},7009:(t,e,r)=>{"use strict";r.d(e,{Z:()=>u});const n={name:"ColorLabel",props:["color"]};var i=r(3379),o=r.n(i),a=r(8520),s={insert:"head",singleton:!1};o()(a.Z,s);a.Z.locals;const u=(0,r(1900).Z)(n,(function(){var t=this;return(0,t._self._c)("b",{staticClass:"color-label inline-block rounded-lg py-1 px-2 text-xs font-bold capitalize",class:t.color},[t._t("default")],2)}),[],!1,null,"3ff27c4c",null).exports},3037:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});const n={name:"CardNavigation",props:["pages"],computed:{routeName:function(){return this.$route.name}},data:function(){return{fixedNav:!1}},created:function(){var t=this;window.addEventListener("scroll",(function(){var e=document.getElementById("card-navigation");t.fixedNav=e.getBoundingClientRect().top<0}))}};const i=(0,r(1900).Z)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb-7",staticStyle:{height:"62px"},attrs:{id:"card-navigation"}},[e("div",{class:{"fixed top-0 left-0 right-0 z-10 rounded-none bg-white bg-opacity-50 px-6 backdrop-blur-lg backdrop-filter dark:bg-dark-foreground":t.fixedNav}},[e("div",{staticClass:"overflow-x-auto whitespace-nowrap"},t._l(t.pages,(function(r,n){return e("router-link",{key:n,staticClass:"border-bottom-theme inline-block border-b-2 border-transparent px-4 py-5 text-sm font-bold",class:{"text-theme":t.routeName===r.route,"text-gray-600 dark:text-gray-100":t.routeName!==r.route},attrs:{to:{name:r.route},replace:""}},[t._v("\n "+t._s(r.title)+"\n ")])})),1)])])}),[],!1,null,null,null).exports},3666:(t,e,r)=>{"use strict";r.d(e,{Z:()=>u});const n={name:"InfoBox",props:["type"]};var i=r(3379),o=r.n(i),a=r(6355),s={insert:"head",singleton:!1};o()(a.Z,s);a.Z.locals;const u=(0,r(1900).Z)(n,(function(){var t=this;return(0,t._self._c)("div",{staticClass:"info-box",class:t.type},[t._t("default")],2)}),[],!1,null,"783003cd",null).exports},609:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});var n=r(5399);const i={name:"PopoverItem",props:["side","name"],data:function(){return{isVisible:!1}},methods:{hidePopover:function(){var t=this;setTimeout((function(){return t.isVisible=!1}),10)}},mounted:function(){var t=this;n.U.$on("popover:open",(function(e){t.name===e&&(t.isVisible=!t.isVisible)})),n.U.$on("popover:close",(function(){return t.isVisible=!1}))}};const o=(0,r(1900).Z)(i,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}]},[e("div",{staticClass:"absolute top-12 z-20 w-60 overflow-hidden rounded-xl bg-white shadow-xl dark:bg-dark-foreground select-none",class:{"right-0":"left"===t.side,"left-0":"right"===t.side},on:{"!click":function(e){return t.hidePopover.apply(null,arguments)}}},[t._t("default")],2),t._v(" "),e("div",{staticClass:"fixed top-0 left-0 right-0 bottom-0 z-10 cursor-pointer",on:{click:t.hidePopover}})])}),[],!1,null,null,null).exports},2705:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});const n={name:"PopoverWrapper"};const i=(0,r(1900).Z)(n,(function(){return(0,this._self._c)("div",{staticClass:"relative"},[this._t("default")],2)}),[],!1,null,null,null).exports},2565:(t,e,r)=>{"use strict";r.d(e,{Z:()=>w});var n=r(9495),i=r(944),o=r(4479),a=r(4789),s=r(1157),u=r(588),c=r(4654),d=r(8023),l=r(1520),f=r(7400),p=r(6904),v=r(7322),h=r(5399),m=r(9669),b=r.n(m);function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}function g(){g=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),s=new E(n||[]);return i(a,"_invoke",{value:S(t,r,s)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var f="suspendedStart",p="suspendedYield",v="executing",h="completed",m={};function b(){}function _(){}function x(){}var w={};c(w,a,(function(){return this}));var k=Object.getPrototypeOf,P=k&&k(k(I([])));P&&P!==r&&n.call(P,a)&&(w=P);var O=x.prototype=b.prototype=Object.create(w);function C(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function $(t,e){function r(i,o,a,s){var u=l(t[i],t,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==y(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(d).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function S(e,r,n){var i=f;return function(o,a){if(i===v)throw new Error("Generator is already running");if(i===h){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=j(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===f)throw i=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=l(e,r,n);if("normal"===c.type){if(i=n.done?h:p,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=h,n.method="throw",n.arg=c.arg)}}}function j(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=l(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(y(e)+" is not iterable")}return _.prototype=x,i(O,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:_,configurable:!0}),_.displayName=c(x,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,c(t,u,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},C($.prototype),c($.prototype,s,(function(){return this})),e.AsyncIterator=$,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new $(d(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},C(O),c(O,u,"Generator"),c(O,a,(function(){return this})),c(O,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function _(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}const x={name:"CreateUploadRequestPopup",components:{ValidationProvider:n.ValidationProvider,ValidationObserver:n.ValidationObserver,AppInputSwitch:i.Z,ThumbnailItem:p.Z,AppInputText:s.Z,PopupWrapper:u.Z,PopupActions:c.Z,PopupContent:d.Z,SwitchInput:f.Z,PopupHeader:l.Z,ButtonBase:a.Z,CopyInput:v.Z,required:o.C1},data:function(){return{form:{email:void 0,notes:void 0,folder_id:void 0,name:void 0},uploadRequest:void 0,uploadRequestURL:void 0,shareViaEmail:!1,pickedItem:void 0,isLoading:!1}},methods:{createUploadRequest:function(){var t,e=this;return(t=g().mark((function t(){return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.createForm.validate();case 2:if(t.sent){t.next=5;break}return t.abrupt("return");case 5:e.isLoading=!0,b().post("/api/file-request",e.form).then((function(t){e.uploadRequest=t.data,e.uploadRequestURL="".concat(e.$store.getters.config.host,"/request/").concat(t.data.data.id,"/upload")})).catch((function(){h.U.$emit("alert:open",{title:e.$t("popup_error.title"),message:e.$t("popup_error.message")})})).finally((function(){e.isLoading=!1}));case 7:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){_(o,n,i,a,s,"next",t)}function s(t){_(o,n,i,a,s,"throw",t)}a(void 0)}))})()}},created:function(){var t=this;h.U.$on("popup:open",(function(e){var r;"create-file-request"===e.name&&(t.pickedItem=e.item,t.form.folder_id=null===(r=e.item)||void 0===r?void 0:r.data.id)})),h.U.$on("popup:close",(function(){setTimeout((function(){t.uploadRequest=void 0,t.pickedItem=void 0,t.shareViaEmail=!1,t.form={name:void 0,email:void 0,notes:void 0,folder_id:void 0}}),150)}))}};const w=(0,r(1900).Z)(x,(function(){var t=this,e=t._self._c;return e("PopupWrapper",{attrs:{name:"create-file-request"}},[e("PopupHeader",{attrs:{title:t.$t("create_file_request"),icon:"upload"}}),t._v(" "),e("PopupContent",[t.pickedItem?e("ThumbnailItem",{staticClass:"mb-5",attrs:{item:t.pickedItem}}):t._e(),t._v(" "),t.uploadRequest?t._e():e("ValidationObserver",{ref:"createForm",attrs:{tag:"form"},on:{submit:function(e){return e.preventDefault(),t.createUploadRequest.apply(null,arguments)}},scopedSlots:t._u([{key:"default",fn:function(r){r.invalid;return[e("ValidationProvider",{attrs:{tag:"div",mode:"passive",name:"Name"},scopedSlots:t._u([{key:"default",fn:function(r){var n=r.errors;return[e("AppInputText",{attrs:{title:t.$t("folder_name_optional"),description:t.$t("folder_name_optional_description"),error:n[0]}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.name,expression:"form.name"}],ref:"input",staticClass:"focus-border-theme input-dark",class:{"!border-rose-600":n[0]},attrs:{type:"text",placeholder:t.$t("type_name_")},domProps:{value:t.form.name},on:{input:function(e){e.target.composing||t.$set(t.form,"name",e.target.value)}}})])]}}],null,!0)}),t._v(" "),e("ValidationProvider",{attrs:{tag:"div",mode:"passive",name:"Note"},scopedSlots:t._u([{key:"default",fn:function(r){var n=r.errors;return[e("AppInputText",{attrs:{title:t.$t("message_optional"),description:t.$t("message_optional_description"),error:n[0]}},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.notes,expression:"form.notes"}],ref:"input",staticClass:"focus-border-theme input-dark",class:{"!border-rose-600":n[0]},attrs:{rows:"2",type:"text",placeholder:t.$t("message_for_recipient")},domProps:{value:t.form.notes},on:{input:function(e){e.target.composing||t.$set(t.form,"notes",e.target.value)}}})])]}}],null,!0)}),t._v(" "),e("AppInputSwitch",{attrs:{title:t.$t("send_request_by_email"),description:t.$t("send_request_by_email_description"),"is-last":!t.shareViaEmail}},[e("SwitchInput",{attrs:{state:t.shareViaEmail},model:{value:t.shareViaEmail,callback:function(e){t.shareViaEmail=e},expression:"shareViaEmail"}})],1),t._v(" "),t.shareViaEmail?e("ValidationProvider",{attrs:{tag:"div",mode:"passive",name:"Email",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(r){var n=r.errors;return[e("AppInputText",{staticClass:"-mt-2",attrs:{error:n[0],"is-last":!0}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.email,expression:"form.email"}],ref:"input",staticClass:"focus-border-theme input-dark",class:{"!border-rose-600":n[0]},attrs:{type:"text",placeholder:t.$t("type_email_")},domProps:{value:t.form.email},on:{input:function(e){e.target.composing||t.$set(t.form,"email",e.target.value)}}})])]}}],null,!0)}):t._e()]}}],null,!1,3110735703)}),t._v(" "),t.uploadRequest?e("AppInputText",{attrs:{title:t.$t("copy_upload_request_link"),"is-last":!0}},[e("CopyInput",{attrs:{str:t.uploadRequestURL}})],1):t._e()],1),t._v(" "),t.uploadRequest?t._e():e("PopupActions",[e("ButtonBase",{staticClass:"w-full",attrs:{"button-style":"secondary"},nativeOn:{click:function(e){return t.$closePopup()}}},[t._v(t._s(t.$t("cancel"))+"\n ")]),t._v(" "),e("ButtonBase",{staticClass:"w-full",attrs:{loading:t.isLoading,"button-style":"theme"},nativeOn:{click:function(e){return t.createUploadRequest.apply(null,arguments)}}},[t._v(t._s(t.$t("create_request"))+"\n ")])],1),t._v(" "),t.uploadRequest?e("PopupActions",[e("ButtonBase",{staticClass:"w-full",attrs:{"button-style":"theme"},nativeOn:{click:function(e){return t.$closePopup()}}},[t._v(t._s(t.$t("awesome_iam_done"))+"\n ")])],1):t._e()],1)}),[],!1,null,null,null).exports},9324:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>Ut});var n=r(9087),i=r(588),o=r(4654),a=r(8023),s=r(1520),u=r(4789);function c(t){var e="https://www.paypal.com/sdk/js";t.sdkBaseURL&&(e=t.sdkBaseURL,delete t.sdkBaseURL),function(t){var e=t["merchant-id"],r=t["data-merchant-id"],n="",i="";Array.isArray(e)?e.length>1?(n="*",i=e.toString()):n=e.toString():"string"==typeof e&&e.length>0?n=e:"string"==typeof r&&r.length>0&&(n="*",i=r);t["merchant-id"]=n,t["data-merchant-id"]=i}(t);var r=Object.keys(t).filter((function(e){return void 0!==t[e]&&null!==t[e]&&""!==t[e]})).reduce((function(e,r){var n=t[r].toString();return"data-"===r.substring(0,5)?e.dataAttributes[r]=n:e.queryParams[r]=n,e}),{queryParams:{},dataAttributes:{}}),n=r.queryParams,i=r.dataAttributes;return{url:"".concat(e,"?").concat(d(n)),dataAttributes:i}}function d(t){var e="";return Object.keys(t).forEach((function(r){0!==e.length&&(e+="&"),e+=r+"="+t[r]})),e}function l(t,e){void 0===e&&(e={});var r=document.createElement("script");return r.src=t,Object.keys(e).forEach((function(t){r.setAttribute(t,e[t]),"data-csp-nonce"===t&&r.setAttribute("nonce",e["data-csp-nonce"])})),r}function f(t,e){if(void 0===e&&(e=p()),h(t,e),"undefined"==typeof window)return e.resolve(null);var r=c(t),n=r.url,i=r.dataAttributes,o=i["data-namespace"]||"paypal",a=v(o);return function(t,e){var r=document.querySelector('script[src="'.concat(t,'"]'));if(null===r)return null;var n=l(t,e),i=r.cloneNode();if(delete i.dataset.uidAuto,Object.keys(i.dataset).length!==Object.keys(n.dataset).length)return null;var o=!0;return Object.keys(i.dataset).forEach((function(t){i.dataset[t]!==n.dataset[t]&&(o=!1)})),o?r:null}(n,i)&&a?e.resolve(a):function(t,e){void 0===e&&(e=p());h(t,e);var r=t.url,n=t.attributes;if("string"!=typeof r||0===r.length)throw new Error("Invalid url.");if(void 0!==n&&"object"!=typeof n)throw new Error("Expected attributes to be an object.");return new e((function(t,e){if("undefined"==typeof window)return t();!function(t){var e=t.url,r=t.attributes,n=t.onSuccess,i=t.onError,o=l(e,r);o.onerror=i,o.onload=n,document.head.insertBefore(o,document.head.firstElementChild)}({url:r,attributes:n,onSuccess:function(){return t()},onError:function(){var t=new Error('The script "'.concat(r,'" failed to load.'));return window.fetch?fetch(r).then((function(r){return 200===r.status&&e(t),r.text()})).then((function(t){var r=function(t){var e=t.split("/* Original Error:")[1];return e?e.replace(/\n/g,"").replace("*/","").trim():t}(t);e(new Error(r))})).catch((function(t){e(t)})):e(t)}})}))}({url:n,attributes:i},e).then((function(){var t=v(o);if(t)return t;throw new Error("The window.".concat(o," global variable is not available."))}))}function p(){if("undefined"==typeof Promise)throw new Error("Promise is undefined. To resolve the issue, use a Promise polyfill.");return Promise}function v(t){return window[t]}function h(t,e){if("object"!=typeof t||null===t)throw new Error("Expected an options object.");if(void 0!==e&&"function"!=typeof e)throw new Error("Expected PromisePonyfill to be a function.")}const m={name:"PaymentMethod",props:["description","driver"]};var b=r(1900);const y=(0,b.Z)(m,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"flex items-center justify-between border-b border-dashed border-light py-4 dark:border-opacity-5"},[e("div",[e("img",{staticClass:"h-6",attrs:{src:t.$getPaymentLogo(t.driver),alt:t.driver}}),t._v(" "),e("small",{staticClass:"block pt-2 text-xs leading-4 dark:text-gray-500 text-gray-500"},[t._v("\n "+t._s(t.description)+"\n ")])]),t._v(" "),t.$slots.default?e("div",{staticClass:"bg-theme-200 relative inline-block rounded-lg px-3 py-1"},[t._t("default")],2):t._e()])}),[],!1,null,null,null).exports;var g=r(3592),_=r(3666),x=r(5399),w=r(629),k=r(9669),P=r.n(k);function O(t){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(t)}function C(){C=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),s=new E(n||[]);return i(a,"_invoke",{value:S(t,r,s)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var f="suspendedStart",p="suspendedYield",v="executing",h="completed",m={};function b(){}function y(){}function g(){}var _={};c(_,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(I([])));w&&w!==r&&n.call(w,a)&&(_=w);var k=g.prototype=b.prototype=Object.create(_);function P(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function $(t,e){function r(i,o,a,s){var u=l(t[i],t,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==O(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(d).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function S(e,r,n){var i=f;return function(o,a){if(i===v)throw new Error("Generator is already running");if(i===h){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=j(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===f)throw i=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=l(e,r,n);if("normal"===c.type){if(i=n.done?h:p,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=h,n.method="throw",n.arg=c.arg)}}}function j(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=l(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(O(e)+" is not iterable")}return y.prototype=g,i(k,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:y,configurable:!0}),y.displayName=c(g,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,c(t,u,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},P($.prototype),c($.prototype,s,(function(){return this})),e.AsyncIterator=$,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new $(d(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(k),c(k,u,"Generator"),c(k,a,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function $(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function S(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function j(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==O(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==O(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===O(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const A={name:"ChargePaymentPopup",components:{PaymentMethod:y,PopupWrapper:i.Z,PopupActions:o.Z,PopupContent:a.Z,PopupHeader:s.Z,ButtonBase:u.Z,Spinner:g.Z,InfoBox:_.Z},data:function(){return{paypal:{isMethodsLoaded:!1,isMethodLoading:!1},paystack:{isGettingCheckoutLink:!1}}},computed:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?S(Object(r),!0).forEach((function(e){j(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},(0,w.Se)(["singleChargeAmount","config","user"])),methods:{payByPaystack:function(){this.paystack.isGettingCheckoutLink=!0,P().post("/api/paystack/checkout",{amount:100*this.singleChargeAmount}).then((function(t){window.location=t.data.data.authorization_url}))},payByPayPal:function(){var t,e=this;return(t=C().mark((function t(){var r,n,i,o;return C().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.paypal.isMethodLoading){t.next=2;break}return t.abrupt("return");case 2:return e.paypal.isMethodLoading=!0,t.prev=3,t.next=6,f({"client-id":e.config.paypal_client_id,vault:!0});case 6:r=t.sent,t.next=12;break;case 9:t.prev=9,t.t0=t.catch(3),x.U.$emit("toaster",{type:"danger",message:e.$t("failed_to_load_paypal")});case 12:return n=e.user.data.id,i=e.singleChargeAmount,e.paypal.isMethodsLoaded=!0,e.paypal.isMethodLoading=!1,o=e,t.next=19,r.Buttons({createOrder:function(t,e){return e.order.create({purchase_units:[{amount:{value:i},custom_id:n}]})},onApprove:function(){o.paymentSuccessful()}}).render("#paypal-button-container");case 19:case"end":return t.stop()}}),t,null,[[3,9]])})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){$(o,n,i,a,s,"next",t)}function s(t){$(o,n,i,a,s,"throw",t)}a(void 0)}))})()},paymentSuccessful:function(){this.$closePopup(),x.U.$emit("toaster",{type:"success",message:this.$t("payment_was_successfully_received")}),setTimeout((function(){return document.location.reload()}),500)}},created:function(){var t=this;x.U.$on("popup:close",(function(){return t.paypal.isMethodsLoaded=!1}))}};const L=(0,b.Z)(A,(function(){var t=this,e=t._self._c;return e("PopupWrapper",{attrs:{name:"select-payment-method"}},[e("PopupHeader",{attrs:{title:t.$t("select_payment_method"),icon:"credit-card"}}),t._v(" "),e("PopupContent",{staticStyle:{padding:"0 20px"}},[t.config.isPayPal||t.config.isPaystack?t._e():e("InfoBox",{staticClass:"!mb-0"},[e("p",[t._v(t._s(t.$t("not_any_payment_method")))])]),t._v(" "),t.config.isPayPal?e("div",{class:{"mb-2 rounded-xl bg-light-background px-4 dark:bg-2x-dark-foreground":t.paypal.isMethodsLoaded}},[e("PaymentMethod",{attrs:{driver:"paypal",description:t.config.paypal_payment_description},nativeOn:{"~click":function(e){return t.payByPayPal.apply(null,arguments)}}},[t.paypal.isMethodLoading?e("div",{staticClass:"translate-y-3 scale-50 transform"},[e("Spinner")],1):t._e(),t._v(" "),t.paypal.isMethodsLoaded?t._e():e("span",{staticClass:"text-theme cursor-pointer text-sm font-bold",class:{"opacity-0":t.paypal.isMethodLoading}},[t._v("\n "+t._s(t.$t("select"))+"\n ")])]),t._v(" "),e("div",{attrs:{id:"paypal-button-container"}})],1):t._e(),t._v(" "),t.config.isPaystack?e("PaymentMethod",{attrs:{driver:"paystack",description:t.$t(t.config.paystack_payment_description)}},[t.paystack.isGettingCheckoutLink?e("div",{staticClass:"translate-y-3 scale-50 transform"},[e("Spinner")],1):t._e(),t._v(" "),e("span",{staticClass:"text-theme cursor-pointer text-sm font-bold",class:{"opacity-0":t.paystack.isGettingCheckoutLink},on:{click:function(e){return t.payByPaystack()}}},[t._v("\n\t\t\t\t\t"+t._s(t.$t("select"))+"\n\t\t\t\t")])]):t._e()],1),t._v(" "),e("PopupActions",[e("ButtonBase",{staticClass:"w-full",attrs:{"button-style":"secondary"},nativeOn:{click:function(e){return t.$closePopup()}}},[t._v("\n "+t._s(t.$t("cancel_payment"))+"\n ")])],1)],1)}),[],!1,null,null,null).exports;var E=r(7400),I=r(9101),Z=r(7464);const F={name:"PlanDetail",components:{CheckIcon:I.nQG,CheckBox:Z.Z},props:["isSelected","plan"]};const T=(0,b.Z)(F,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"block cursor-pointer select-none rounded-lg py-3 px-4",class:{"bg-light-background dark:bg-2x-dark-foreground":t.isSelected}},[e("div",{staticClass:"mb-1.5 flex items-center justify-between"},[e("CheckBox",{attrs:{"is-clicked":t.isSelected}}),t._v(" "),e("b",{staticClass:"flex-1 pl-4 text-left text-lg"},[t._v("\n "+t._s(t.plan.data.attributes.name)+"\n ")]),t._v(" "),e("span",{staticClass:"text-theme bg-theme-100 ml-9 inline-block whitespace-nowrap rounded-xl py-1 px-2 text-sm font-extrabold"},[t._v("\n "+t._s(t.plan.data.attributes.price)+" /\n "+t._s(t.$t("interval.".concat(t.plan.data.attributes.interval)))+"\n ")])],1),t._v(" "),e("ul",{staticClass:"ml-9 mb-3"},t._l(t.plan.data.attributes.features,(function(r,n,i){return e("li",{key:i,staticClass:"mb-1.5 flex items-center"},[e("CheckIcon",{staticClass:"svg-stroke-theme",attrs:{size:"12"}}),t._v(" "),-1!==r?e("small",{staticClass:"pl-1.5 text-xs font-bold text-gray-600"},[t._v("\n "+t._s(t.$t("max_team_members"===n?"max_team_members_total":n,{value:r}))+"\n ")]):t._e(),t._v(" "),-1===r?e("small",{staticClass:"pl-1.5 text-xs font-bold text-gray-600"},[t._v("\n "+t._s(t.$t("".concat(n,".unlimited")))+"\n ")]):t._e()],1)})),0)])}),[],!1,null,null,null).exports;var z=r(7075);function D(t){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D(t)}function N(){N=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),s=new A(n||[]);return i(a,"_invoke",{value:C(t,r,s)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var f="suspendedStart",p="suspendedYield",v="executing",h="completed",m={};function b(){}function y(){}function g(){}var _={};c(_,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(L([])));w&&w!==r&&n.call(w,a)&&(_=w);var k=g.prototype=b.prototype=Object.create(_);function P(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,o,a,s){var u=l(t[i],t,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==D(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(d).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function C(e,r,n){var i=f;return function(o,a){if(i===v)throw new Error("Generator is already running");if(i===h){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=$(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===f)throw i=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=l(e,r,n);if("normal"===c.type){if(i=n.done?h:p,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=h,n.method="throw",n.arg=c.arg)}}}function $(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,$(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=l(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function L(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(D(e)+" is not iterable")}return y.prototype=g,i(k,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:y,configurable:!0}),y.displayName=c(g,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,c(t,u,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},P(O.prototype),c(O.prototype,s,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(d(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(k),c(k,u,"Generator"),c(k,a,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=L,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function M(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function B(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function R(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?B(Object(r),!0).forEach((function(e){V(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):B(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function V(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==D(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==D(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===D(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const U={name:"SubscribeAccountPopup",components:{PlanPeriodSwitcher:z.Z,InfoBox:_.Z,Spinner:g.Z,PaymentMethod:y,PlanDetail:T,SwitchInput:E.Z,PopupWrapper:i.Z,PopupActions:o.Z,PopupContent:a.Z,PopupHeader:s.Z,ButtonBase:u.Z},watch:{isSelectedYearlyPlans:function(){this.selectedPlan=void 0}},computed:R(R({},(0,w.Se)(["config","user"])),{},{intervalPlanType:function(){return this.isSelectedYearlyPlans?"year":"month"},buttonStyle:function(){return this.selectedPlan?"theme":"secondary"},userSubscribedPlanId:function(){return this.user&&this.user.data.relationships.subscription&&this.user.data.relationships.subscription.data.relationships.plan.data.id},yearlyPlans:function(){return this.plans.data.filter((function(t){return"year"===t.data.attributes.interval}))}}),data:function(){return{paystack:{isGettingCheckoutLink:!1},stripe:{isGettingCheckoutLink:!1},paypal:{isMethodsLoaded:!1,isMethodLoading:!1},isPaymentOptionPage:!1,isSelectedYearlyPlans:!1,isLoading:!1,selectedPlan:void 0,plans:void 0}},methods:{payByPaystack:function(){this.paystack.isGettingCheckoutLink=!0,P().post("/api/paystack/checkout",{planCode:this.selectedPlan.data.meta.driver_plan_id.paystack}).then((function(t){window.location=t.data.data.authorization_url}))},payByPayPal:function(){var t,e=this;return(t=N().mark((function t(){var r,n,i,o;return N().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.paypal.isMethodLoading){t.next=2;break}return t.abrupt("return");case 2:return e.paypal.isMethodLoading=!0,t.prev=3,t.next=6,f({"client-id":e.config.paypal_client_id,vault:!0});case 6:r=t.sent,t.next=12;break;case 9:t.prev=9,t.t0=t.catch(3),x.U.$emit("toaster",{type:"danger",message:e.$t("failed_to_load_paypal")});case 12:return n=e.selectedPlan.data.meta.driver_plan_id.paypal,i=e.user.data.id,o=e,e.paypal.isMethodsLoaded=!0,e.paypal.isMethodLoading=!1,t.next=19,r.Buttons({createSubscription:function(t,e){return e.subscription.create({plan_id:n,custom_id:i})},onApprove:function(){o.paymentSuccessful()}}).render("#paypal-button-container");case 19:case"end":return t.stop()}}),t,null,[[3,9]])})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){M(o,n,i,a,s,"next",t)}function s(t){M(o,n,i,a,s,"throw",t)}a(void 0)}))})()},payByStripe:function(){var t=this;this.stripe.isGettingCheckoutLink=!0,P().post("/api/stripe/checkout",{planCode:this.selectedPlan.data.meta.driver_plan_id.stripe}).then((function(t){window.location=t.data.url})).catch((function(e){t.$closePopup(),setTimeout((function(){x.U.$emit("alert:open",{title:e.response.data.title||t.$t("popup_error.title"),message:e.response.data.message||t.$t("popup_error.message")})}),100)})).finally((function(){t.stripe.isGettingCheckoutLink=!1}))},selectPlan:function(t){this.selectedPlan=t},paymentSuccessful:function(){this.$closePopup(),x.U.$emit("toaster",{type:"success",message:this.$t("payment_was_successfully_received")}),setTimeout((function(){return document.location.reload()}),1e3)}},created:function(){var t=this;P().get("/api/subscriptions/plans").then((function(e){t.plans=e.data})),x.U.$on("popup:close",(function(){t.isSelectedYearlyPlans=!1,t.isPaymentOptionPage=!1,t.selectedPlan=void 0,t.paypal.isMethodsLoaded=!1}))}};const q=(0,b.Z)(U,(function(){var t=this,e=t._self._c;return e("PopupWrapper",{attrs:{name:"select-plan-subscription"}},[e("PopupHeader",{attrs:{title:t.$t("upgrade_your_account"),icon:"credit-card"}}),t._v(" "),t.isPaymentOptionPage?e("div",[e("PopupContent",[t.config.isStripe?e("PaymentMethod",{attrs:{driver:"stripe",description:t.$t(t.config.stripe_payment_description)}},[t.stripe.isGettingCheckoutLink?e("div",{staticClass:"translate-y-3 scale-50 transform"},[e("Spinner")],1):t._e(),t._v(" "),e("span",{staticClass:"text-theme cursor-pointer text-sm font-bold",class:{"opacity-0":t.stripe.isGettingCheckoutLink},on:{click:t.payByStripe}},[t._v("\n "+t._s(t.$t("select"))+"\n ")])]):t._e(),t._v(" "),t.config.isPayPal?e("div",{class:{"mb-2 rounded-xl bg-light-background px-4 dark:bg-2x-dark-foreground":t.paypal.isMethodsLoaded}},[e("PaymentMethod",{attrs:{driver:"paypal",description:t.$t(t.config.paypal_payment_description)},nativeOn:{"~click":function(e){return t.payByPayPal.apply(null,arguments)}}},[t.paypal.isMethodLoading?e("div",{staticClass:"translate-y-3 scale-50 transform"},[e("Spinner")],1):t._e(),t._v(" "),t.paypal.isMethodsLoaded?t._e():e("span",{staticClass:"text-theme cursor-pointer text-sm font-bold",class:{"opacity-0":t.paypal.isMethodLoading}},[t._v("\n "+t._s(t.$t("select"))+"\n ")])]),t._v(" "),e("div",{attrs:{id:"paypal-button-container"}})],1):t._e(),t._v(" "),t.config.isPaystack?e("PaymentMethod",{attrs:{driver:"paystack",description:t.$t(t.config.paystack_payment_description)}},[t.paystack.isGettingCheckoutLink?e("div",{staticClass:"translate-y-3 scale-50 transform"},[e("Spinner")],1):t._e(),t._v(" "),e("span",{staticClass:"text-theme cursor-pointer text-sm font-bold",class:{"opacity-0":t.paystack.isGettingCheckoutLink},on:{click:function(e){return t.payByPaystack()}}},[t._v("\n "+t._s(t.$t("select"))+"\n ")])]):t._e()],1),t._v(" "),e("PopupActions",[e("ButtonBase",{staticClass:"w-full",attrs:{"button-style":"secondary"},nativeOn:{click:function(e){return t.$closePopup()}}},[t._v("\n "+t._s(t.$t("cancel_payment"))+"\n ")])],1)],1):t._e(),t._v(" "),t.isPaymentOptionPage?t._e():e("div",[t.plans?e("PopupContent",[0===t.plans.data.length?e("InfoBox",{staticClass:"!mb-0"},[e("p",[t._v("There isn't any plan yet.")])]):t._e(),t._v(" "),t.yearlyPlans.length>0?e("PlanPeriodSwitcher",{model:{value:t.isSelectedYearlyPlans,callback:function(e){t.isSelectedYearlyPlans=e},expression:"isSelectedYearlyPlans"}}):t._e(),t._v(" "),e("div",t._l(t.plans.data,(function(r,n){return r.data.attributes.interval===t.intervalPlanType?e("PlanDetail",{key:r.data.id,class:{"pointer-events-none opacity-50":t.userSubscribedPlanId===r.data.id},attrs:{plan:r,"is-selected":t.selectedPlan&&t.selectedPlan.data.id===r.data.id},nativeOn:{click:function(e){return t.selectPlan(r)}}}):t._e()})),1)],1):t._e(),t._v(" "),e("PopupActions",[e("ButtonBase",{staticClass:"w-full",attrs:{"button-style":"secondary"},nativeOn:{click:function(e){return t.$closePopup()}}},[t._v(t._s(t.$t("cancel"))+"\n ")]),t._v(" "),t.plans&&0!==t.plans.data.length?e("ButtonBase",{staticClass:"w-full",attrs:{"button-style":t.buttonStyle},nativeOn:{click:function(e){t.isPaymentOptionPage=!0}}},[t._v(t._s(t.$t("upgrade_account"))+"\n ")]):t._e()],1)],1)],1)}),[],!1,null,null,null).exports;var G=r(3108),H=r(4787),W=r(7811);function Y(t){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Y(t)}function Q(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function K(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Y(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Y(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const X={name:"TwoFactorRecoveryCodesPopup",components:{MobileActionButton:r(5724).Z,PopupWrapper:i.Z,PopupActions:o.Z,PopupContent:a.Z,PopupHeader:s.Z,ButtonBase:u.Z,Spinner:g.Z,InfoBox:_.Z},data:function(){return{codes:void 0,isLoading:!0,inputCodes:void 0}},computed:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Q(Object(r),!0).forEach((function(e){K(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},(0,w.Se)(["user"])),methods:{copyCodes:function(){var t=this.$refs.codes;t.select(),t.setSelectionRange(0,99999),document.execCommand("copy"),x.U.$emit("toaster",{type:"success",message:this.$t("popup_2fa.toaster_codes_copied")})},downloadCodes:function(){var t="data:x-application/xml;charset=utf-8,"+escape(this.codes.join("\n")),e=document.createElement("a");e.href=t,e.download="recovery-codes.txt",document.body.appendChild(e),e.click(),document.body.removeChild(e)},regenerateCodes:function(){var t=this;this.isLoading=!0,P().post("/user/two-factor-recovery-codes").then((function(){t.getRecoveryCodes(),x.U.$emit("toaster",{type:"success",message:t.$t("popup_2fa.toaster_codes_regenerated")})})).catch((function(){t.$isSomethingWrong()})).finally((function(){return t.isLoading=!1}))},getRecoveryCodes:function(){var t=this;P().get("/user/two-factor-recovery-codes").then((function(e){t.codes=e.data,t.inputCodes=e.data.join("\n")})).catch((function(){t.$isSomethingWrong()})).finally((function(){return t.isLoading=!1}))}},created:function(){var t=this;x.U.$on("popup:open",(function(e){"two-factor-recovery-codes"===e.name&&t.getRecoveryCodes()}))}};var J=r(3379),tt=r.n(J),et=r(2806),rt={insert:"head",singleton:!1};tt()(et.Z,rt);et.Z.locals;const nt=(0,b.Z)(X,(function(){var t=this,e=t._self._c;return e("PopupWrapper",{attrs:{name:"two-factor-recovery-codes"}},[e("PopupHeader",{attrs:{title:t.$t("your_security_codes"),icon:"key"}}),t._v(" "),e("PopupContent",{staticStyle:{padding:"0 20px"}},[e("div",{staticClass:"mobile-actions"},[e("MobileActionButton",{attrs:{icon:"copy"},nativeOn:{click:function(e){return t.copyCodes.apply(null,arguments)}}},[t._v("\n "+t._s(t.$t("copy"))+"\n ")]),t._v(" "),e("MobileActionButton",{attrs:{icon:"download"},nativeOn:{click:function(e){return t.downloadCodes.apply(null,arguments)}}},[t._v("\n "+t._s(t.$t("download"))+"\n ")]),t._v(" "),e("MobileActionButton",{attrs:{icon:"refresh"},nativeOn:{click:function(e){return t.regenerateCodes.apply(null,arguments)}}},[t._v("\n "+t._s(t.$t("regenerate_codes"))+"\n ")])],1),t._v(" "),t.isLoading?t._e():e("ul",{staticClass:"codes-list"},t._l(t.codes,(function(r,n){return e("li",{key:n},[t._v(t._s(r))])})),0),t._v(" "),t.isLoading?e("div",{staticClass:"spinner-wrapper"},[e("Spinner")],1):t._e(),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.inputCodes,expression:"inputCodes"}],ref:"codes",staticClass:"codes-output",domProps:{value:t.inputCodes},on:{input:function(e){e.target.composing||(t.inputCodes=e.target.value)}}}),t._v(" "),e("InfoBox",{staticStyle:{"margin-bottom":"0"}},[e("p",{domProps:{innerHTML:t._s(t.$t("popup_2fa.popup_codes_disclaimer"))}})])],1),t._v(" "),e("PopupActions",[e("ButtonBase",{staticClass:"w-full",attrs:{"button-style":"theme"},nativeOn:{click:function(e){return t.$closePopup()}}},[t._v("\n "+t._s(t.$t("awesome_iam_done"))+"\n ")])],1)],1)}),[],!1,null,"c7d46ef0",null).exports;var it=r(1157),ot=r(9495),at=r(7322),st=r(4479);function ut(t){return ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ut(t)}function ct(){ct=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),s=new A(n||[]);return i(a,"_invoke",{value:C(t,r,s)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var f="suspendedStart",p="suspendedYield",v="executing",h="completed",m={};function b(){}function y(){}function g(){}var _={};c(_,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(L([])));w&&w!==r&&n.call(w,a)&&(_=w);var k=g.prototype=b.prototype=Object.create(_);function P(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,o,a,s){var u=l(t[i],t,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==ut(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(d).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function C(e,r,n){var i=f;return function(o,a){if(i===v)throw new Error("Generator is already running");if(i===h){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=$(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===f)throw i=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=l(e,r,n);if("normal"===c.type){if(i=n.done?h:p,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=h,n.method="throw",n.arg=c.arg)}}}function $(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,$(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=l(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function L(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(ut(e)+" is not iterable")}return y.prototype=g,i(k,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:y,configurable:!0}),y.displayName=c(g,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,c(t,u,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},P(O.prototype),c(O.prototype,s,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(d(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(k),c(k,u,"Generator"),c(k,a,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=L,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function dt(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}const lt={name:"CreatePersonalTokenPopup",components:{ValidationProvider:ot.ValidationProvider,ValidationObserver:ot.ValidationObserver,AppInputText:it.Z,PopupWrapper:i.Z,PopupActions:o.Z,PopupContent:a.Z,PopupHeader:s.Z,ButtonBase:u.Z,CopyInput:at.Z,required:st.C1,InfoBox:_.Z},data:function(){return{isLoading:!1,name:void 0,token:void 0}},methods:{createTokenForm:function(){var t,e=this;return(t=ct().mark((function t(){return ct().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.createToken.validate();case 2:if(t.sent){t.next=5;break}return t.abrupt("return");case 5:e.isLoading=!0,P().post("/api/user/tokens",{name:e.name}).then((function(t){e.token=t.data,x.U.$emit("reload-personal-access-tokens")})).catch((function(){return e.$isSomethingWrong()})).finally((function(){e.isLoading=!1,e.name=void 0}));case 7:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){dt(o,n,i,a,s,"next",t)}function s(t){dt(o,n,i,a,s,"throw",t)}a(void 0)}))})()}},created:function(){var t=this;x.U.$on("popup:close",(function(){return t.token=void 0}))}};var ft=r(1464),pt={insert:"head",singleton:!1};tt()(ft.Z,pt);ft.Z.locals;const vt=(0,b.Z)(lt,(function(){var t=this,e=t._self._c;return e("PopupWrapper",{attrs:{name:"create-personal-token"}},[e("PopupHeader",{attrs:{title:t.$t("create_personal_token"),icon:"key"}}),t._v(" "),e("PopupContent",[t.token?t._e():e("ValidationObserver",{ref:"createToken",attrs:{tag:"form"},on:{submit:function(e){return e.preventDefault(),t.createTokenForm.apply(null,arguments)}},scopedSlots:t._u([{key:"default",fn:function(r){r.invalid;return[e("ValidationProvider",{attrs:{tag:"div",mode:"passive",name:"Token Name",rules:"required|min:3"},scopedSlots:t._u([{key:"default",fn:function(r){var n=r.errors;return[e("AppInputText",{attrs:{title:t.$t("token_name"),error:n[0],"is-last":!0}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.name,expression:"name"}],ref:"input",staticClass:"focus-border-theme input-dark",class:{"!border-rose-600":n[0]},attrs:{type:"text",placeholder:t.$t("popup_personal_token.plc")},domProps:{value:t.name},on:{input:function(e){e.target.composing||(t.name=e.target.value)}}})])]}}],null,!0)})]}}],null,!1,2569002484)}),t._v(" "),t.token?e("AppInputText",{attrs:{title:t.$t("popup_personal_token.your_token"),"is-last":!0}},[e("CopyInput",{attrs:{size:"small",str:t.token.plainTextToken}}),t._v(" "),e("InfoBox",{staticStyle:{"margin-bottom":"0","margin-top":"20px"}},[e("p",{domProps:{innerHTML:t._s(t.$t("popup_personal_token.copy_token"))}})])],1):t._e()],1),t._v(" "),t.token?t._e():e("PopupActions",[e("ButtonBase",{staticClass:"w-full",attrs:{"button-style":"secondary"},nativeOn:{click:function(e){return t.$closePopup()}}},[t._v("\n "+t._s(t.$t("cancel"))+"\n ")]),t._v(" "),e("ButtonBase",{staticClass:"w-full",attrs:{"button-style":"theme",loading:t.isLoading,disabled:t.isLoading},nativeOn:{click:function(e){return t.createTokenForm.apply(null,arguments)}}},[t._v("\n "+t._s(t.$t("create_token"))+"\n ")])],1),t._v(" "),t.token?e("PopupActions",[e("ButtonBase",{staticClass:"w-full",attrs:{"button-style":"theme"},nativeOn:{click:function(e){return t.$closePopup.apply(null,arguments)}}},[t._v("\n "+t._s(t.$t("awesome_iam_done"))+"\n ")])],1):t._e()],1)}),[],!1,null,"753f9606",null).exports;function ht(t){return ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ht(t)}function mt(){mt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),s=new A(n||[]);return i(a,"_invoke",{value:C(t,r,s)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var f="suspendedStart",p="suspendedYield",v="executing",h="completed",m={};function b(){}function y(){}function g(){}var _={};c(_,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(L([])));w&&w!==r&&n.call(w,a)&&(_=w);var k=g.prototype=b.prototype=Object.create(_);function P(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,o,a,s){var u=l(t[i],t,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==ht(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(d).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function C(e,r,n){var i=f;return function(o,a){if(i===v)throw new Error("Generator is already running");if(i===h){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=$(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===f)throw i=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=l(e,r,n);if("normal"===c.type){if(i=n.done?h:p,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=h,n.method="throw",n.arg=c.arg)}}}function $(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,$(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=l(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function L(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(ht(e)+" is not iterable")}return y.prototype=g,i(k,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:y,configurable:!0}),y.displayName=c(g,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,c(t,u,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},P(O.prototype),c(O.prototype,s,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(d(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(k),c(k,u,"Generator"),c(k,a,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=L,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function bt(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}const yt={name:"TwoFactorQrSetupPopup",components:{ValidationProvider:ot.ValidationProvider,ValidationObserver:ot.ValidationObserver,AppInputText:it.Z,PopupWrapper:i.Z,PopupActions:o.Z,PopupContent:a.Z,PopupHeader:s.Z,ButtonBase:u.Z,required:st.C1,InfoBox:_.Z},data:function(){return{qrCode:void 0,isLoading:!1,code:void 0}},methods:{confirm2FaSetup:function(){var t,e=this;return(t=mt().mark((function t(){return mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.codeForm.validate();case 2:if(t.sent){t.next=5;break}return t.abrupt("return");case 5:e.isLoading=!0,P().post("/user/confirmed-two-factor-authentication",{code:e.code}).then((function(){e.$store.commit("CHANGE_TWO_FACTOR_AUTHENTICATION_STATE",!0),e.$closePopup(),x.U.$emit("toaster",{type:"success",message:e.$t("popup_2fa.toaster_enabled")})})).catch((function(t){422===t.response.status&&e.$refs.codeForm.setErrors({Code:t.response.data.errors.code[0]})})).finally((function(){return e.isLoading=!1}));case 7:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){bt(o,n,i,a,s,"next",t)}function s(t){bt(o,n,i,a,s,"throw",t)}a(void 0)}))})()},enable:function(){var t=this;P().post("/user/two-factor-authentication").then((function(){t.getQrCode()})).catch((function(){t.$isSomethingWrong()}))},getQrCode:function(){var t=this;P().get("/user/two-factor-qr-code").then((function(e){t.qrCode=e.data.svg})).catch((function(){t.$isSomethingWrong()}))}},created:function(){var t=this;x.U.$on("popup:open",(function(e){"two-factor-qr-setup"===e.name&&t.enable()}))}};const gt=(0,b.Z)(yt,(function(){var t=this,e=t._self._c;return e("PopupWrapper",{attrs:{name:"two-factor-qr-setup"}},[e("PopupHeader",{attrs:{title:t.$t("set_up_2fa_app"),icon:"edit"}}),t._v(" "),e("PopupContent",[t.qrCode?e("div",{staticClass:"flex justify-center"},[e("div",{staticClass:"my-5",domProps:{innerHTML:t._s(t.qrCode)}})]):t._e(),t._v(" "),e("InfoBox",{staticStyle:{"margin-bottom":"0"}},[e("p",{domProps:{innerHTML:t._s(t.$t("popup_2fa.help"))}})]),t._v(" "),e("ValidationObserver",{ref:"codeForm",staticClass:"mt-5",attrs:{tag:"form"},on:{submit:function(e){return e.preventDefault(),t.confirm2FaSetup.apply(null,arguments)}},scopedSlots:t._u([{key:"default",fn:function(r){r.invalid;return[e("ValidationProvider",{attrs:{tag:"div",mode:"passive",name:"Code",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(r){var n=r.errors;return[e("AppInputText",{attrs:{title:t.$t("confirm"),error:n[0],"is-last":!0}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.code,expression:"code"}],ref:"input",staticClass:"focus-border-theme input-dark",class:{"!border-rose-600":n[0]},attrs:{type:"text",placeholder:t.$t("paste_code_from_2fa_app")},domProps:{value:t.code},on:{input:function(e){e.target.composing||(t.code=e.target.value)}}})])]}}],null,!0)})]}}])})],1),t._v(" "),e("PopupActions",[e("ButtonBase",{staticClass:"w-full",attrs:{"button-style":"theme",loading:t.isLoading},nativeOn:{click:function(e){return t.confirm2FaSetup.apply(null,arguments)}}},[t._v("\n "+t._s(t.$t("confirm_your_code"))+"\n ")])],1)],1)}),[],!1,null,null,null).exports;const _t={name:"AvatarInput",props:["avatar"],components:{CameraIcon:I.xmR},data:function(){return{imagePreview:void 0}},watch:{imagePreview:function(t){this.$store.commit("UPDATE_AVATAR",t)}},methods:{showImagePreview:function(t){var e=this,r=t.target.files[0].name,n=r.substring(r.lastIndexOf(".")+1).toLowerCase();if(["png","jpg","jpeg"].includes(n)){var i=t.target.files[0],o=new FileReader;o.onload=function(){return e.imagePreview=o.result},o.readAsDataURL(i),this.$updateAvatar(t.target.files[0])}else alert(this.$t("wrong_image_error"))}},created:function(){this.avatar&&(this.imagePreview=this.avatar)}};const xt=(0,b.Z)(_t,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"relative flex items-center justify-center cursor-pointer h-14 w-14 overflow-hidden bg-light-background rounded-xl cursor-pointer z-10"},[e("input",{ref:"file",staticClass:"absolute top-0 bottom-0 left-0 right-0 z-10 w-full cursor-pointer opacity-0",attrs:{type:"file"},on:{change:function(e){return t.showImagePreview(e)}}}),t._v(" "),t.imagePreview?t._e():e("camera-icon",{staticClass:"vue-feather text-gray-300",attrs:{size:"22"}}),t._v(" "),t.imagePreview?e("img",{ref:"image",staticClass:"relative w-full h-full z-0 object-cover shadow-lg md:h-16 md:w-16",attrs:{src:t.imagePreview,alt:"avatar"}}):t._e()],1)}),[],!1,null,null,null).exports;var wt=r(7009),kt=r(3037);function Pt(t){return Pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pt(t)}function Ot(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ct(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Pt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Pt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Pt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const $t={name:"ConfirmPassword",components:{ValidationProvider:ot.ValidationProvider,ValidationObserver:ot.ValidationObserver,AppInputText:it.Z,PopupWrapper:i.Z,PopupActions:o.Z,PopupContent:a.Z,PopupHeader:s.Z,ButtonBase:u.Z,required:st.C1},computed:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ot(Object(r),!0).forEach((function(e){Ct(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ot(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},(0,w.Se)(["user"])),data:function(){return{isLoading:!1,password:void 0,args:void 0}},methods:{confirmPassword:function(){var t=this;this.isLoading=!0,P().post("/user/confirm-password",{password:this.password}).then((function(){x.U.$emit("password:confirmed",t.args)})).catch((function(e){422===e.response.status&&t.$refs.passwordForm.setErrors({Password:t.$t("validation_errors.incorrect_password")})})).finally((function(){t.isLoading=!1,t.password=void 0}))}},created:function(){var t=this;x.U.$on("popup:open",(function(e){"confirm-password"===e.name&&(t.args=e)}))}};const St=(0,b.Z)($t,(function(){var t=this,e=t._self._c;return e("PopupWrapper",{attrs:{name:"confirm-password"}},[e("PopupHeader",{attrs:{title:t.$t("confirm_password"),icon:"edit"}}),t._v(" "),e("PopupContent",[e("ValidationObserver",{ref:"passwordForm",attrs:{tag:"form"},on:{submit:function(e){return e.preventDefault(),t.confirmPassword.apply(null,arguments)}},scopedSlots:t._u([{key:"default",fn:function(r){r.invalid;return[e("ValidationProvider",{attrs:{tag:"div",mode:"passive",name:"Password",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(r){var n=r.errors;return[e("AppInputText",{attrs:{title:t.$t("password"),error:n[0],"is-last":!0}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],ref:"input",staticClass:"focus-border-theme input-dark",class:{"!border-rose-600":n[0]},attrs:{type:"password",placeholder:t.$t("page_sign_in.placeholder_password")},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})])]}}],null,!0)})]}}])})],1),t._v(" "),e("PopupActions",[e("ButtonBase",{staticClass:"w-full",attrs:{"button-style":"secondary"},nativeOn:{click:function(e){return t.$closePopup()}}},[t._v("\n "+t._s(t.$t("cancel"))+"\n ")]),t._v(" "),e("ButtonBase",{staticClass:"w-full",attrs:{"button-style":"theme",loading:t.isLoading,disabled:t.isLoading},nativeOn:{click:function(e){return t.confirmPassword.apply(null,arguments)}}},[t._v("\n "+t._s(t.$t("confirm"))+"\n ")])],1)],1)}),[],!1,null,null,null).exports;var jt=r(3832),At=r(2565),Lt=r(8645);function Et(t){return Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Et(t)}function It(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Zt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?It(Object(r),!0).forEach((function(e){Ft(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):It(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ft(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Et(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Et(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Et(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const Tt={name:"ChangeSubscriptionPopup",components:{PlanPeriodSwitcher:z.Z,InfoBox:_.Z,Spinner:g.Z,PlanDetail:T,PopupWrapper:i.Z,PopupActions:o.Z,PopupContent:a.Z,PopupHeader:s.Z,ButtonBase:u.Z},watch:{isSelectedYearlyPlans:function(){this.selectedPlan=void 0}},computed:Zt(Zt({},(0,w.Se)(["config","user"])),{},{intervalPlanType:function(){return this.isSelectedYearlyPlans?"year":"month"},buttonStyle:function(){return this.selectedPlan?"theme":"secondary"},userSubscribedPlanId:function(){return this.user&&this.user.data.relationships.subscription&&this.user.data.relationships.subscription.data.relationships.plan.data.id},yearlyPlans:function(){return this.plans.data.filter((function(t){return"year"===t.data.attributes.interval}))},subscriptionDriver:function(){return this.user.data.relationships.subscription.data.attributes.driver},subscription:function(){return this.user.data.relationships.subscription}}),data:function(){return{isSelectedYearlyPlans:!1,isLoading:!1,selectedPlan:void 0,plans:void 0}},methods:{proceedToPayment:function(){this.isLoading=!0,"stripe"===this.subscriptionDriver&&this.payByStripe(),"paypal"===this.subscriptionDriver&&this.payByPayPal(),"paystack"===this.subscriptionDriver&&this.payByPaystack()},payByPayPal:function(){P().post("/api/subscriptions/swap/".concat(this.selectedPlan.data.id)).then((function(t){window.location=t.data.links[0].href}))},payByStripe:function(){var t=this;["inactive","cancelled","completed"].includes(this.subscription.data.attributes.status)&&P().post("/api/stripe/checkout",{planCode:this.selectedPlan.data.meta.driver_plan_id.stripe}).then((function(t){window.location=t.data.url})).catch((function(e){x.U.$emit("alert:open",{title:e.response.data.title||t.$t("popup_error.title"),message:e.response.data.message||t.$t("popup_error.message")})})),"active"===this.subscription.data.attributes.status&&P().post("/api/subscriptions/swap/".concat(this.selectedPlan.data.id)).then((function(){t.$closePopup(),x.U.$emit("toaster",{type:"success",message:t.$t("subscription_changed")})}))},payByPaystack:function(){P().post("/api/paystack/checkout",{planCode:this.selectedPlan.data.meta.driver_plan_id.paystack}).then((function(t){window.location=t.data.data.authorization_url}))},selectPlan:function(t){this.selectedPlan=t}},created:function(){var t=this;P().get("/api/subscriptions/plans").then((function(e){t.plans=e.data})),x.U.$on("popup:close",(function(){t.isSelectedYearlyPlans=!1,t.selectedPlan=void 0}))}};const zt=(0,b.Z)(Tt,(function(){var t=this,e=t._self._c;return e("PopupWrapper",{attrs:{name:"change-plan-subscription"}},[e("PopupHeader",{attrs:{title:t.$t("change_your_plan"),icon:"credit-card"}}),t._v(" "),t.plans?e("PopupContent",[0===t.plans.data.length?e("InfoBox",{staticClass:"!mb-0"},[e("p",[t._v(t._s(t.$t("not_any_plan")))])]):t._e(),t._v(" "),t.yearlyPlans.length>0?e("PlanPeriodSwitcher",{model:{value:t.isSelectedYearlyPlans,callback:function(e){t.isSelectedYearlyPlans=e},expression:"isSelectedYearlyPlans"}}):t._e(),t._v(" "),e("div",t._l(t.plans.data,(function(r,n){return r.data.attributes.interval===t.intervalPlanType?e("PlanDetail",{key:r.data.id,class:{"opacity-50 pointer-events-none":t.userSubscribedPlanId===r.data.id},attrs:{plan:r,"is-selected":t.selectedPlan&&t.selectedPlan.data.id===r.data.id},nativeOn:{click:function(e){return t.selectPlan(r)}}}):t._e()})),1)],1):t._e(),t._v(" "),e("PopupActions",[e("ButtonBase",{staticClass:"w-full",attrs:{"button-style":"secondary"},nativeOn:{click:function(e){return t.$closePopup()}}},[t._v(t._s(t.$t("cancel"))+"\n\t\t\t")]),t._v(" "),t.plans&&0!==t.plans.data.length?e("ButtonBase",{staticClass:"w-full",attrs:{"button-style":t.buttonStyle,loading:t.isLoading},nativeOn:{click:function(e){return t.proceedToPayment.apply(null,arguments)}}},[t._v(t._s(t.$t("change_plan"))+"\n\t\t\t")]):t._e()],1)],1)}),[],!1,null,null,null).exports;var Dt=r(6828);function Nt(t){return Nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nt(t)}function Mt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Bt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Mt(Object(r),!0).forEach((function(e){Rt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Rt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Nt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Nt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Nt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const Vt={name:"Settings",components:{RemoteUploadPopup:r(4188).Z,NotificationsPopup:Dt.Z,ChangeSubscriptionPopup:zt,CreateTeamFolderPopup:Lt.Z,CreateUploadRequestPopup:At.Z,MobileNavigationToolbar:jt.Z,MobileNavigation:n.Z,ConfirmPassword:St,ChargePaymentPopup:L,SubscribeAccountPopup:q,ConfirmPopup:G.Z,CardNavigation:kt.Z,FilePreview:H.Z,Spotlight:W.Z,TwoFactorRecoveryCodesPopup:nt,CreatePersonalTokenPopup:vt,TwoFactorQrSetupPopup:gt,AvatarInput:xt,ColorLabel:wt.Z,Spinner:g.Z},computed:Bt(Bt({},(0,w.Se)(["config","user"])),{},{subscriptionStatus:function(){return this.user.data.relationships.subscription?this.$t("premium"):this.$t("free")},subscriptionColor:function(){return this.user.data.relationships.subscription?"green":"purple"},pages:function(){var t=[{title:this.$t("menu.profile"),route:"Profile"},{title:this.$t("menu.password"),route:"Password"},{title:this.$t("storage"),route:"Storage"}];return"none"!==this.config.subscriptionType&&t.push({title:this.$t("billing"),route:"Billing"}),t}}),data:function(){return{avatar:void 0,isLoading:!1}}};const Ut=(0,b.Z)(Vt,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"h-screen lg:overflow-hidden lg:flex w-full"},[e("FilePreview"),t._v(" "),e("Spotlight"),t._v(" "),e("CreateUploadRequestPopup"),t._v(" "),e("CreateTeamFolderPopup"),t._v(" "),e("NotificationsPopup"),t._v(" "),e("RemoteUploadPopup"),t._v(" "),e("ConfirmPopup"),t._v(" "),e("ConfirmPassword"),t._v(" "),e("TwoFactorRecoveryCodesPopup"),t._v(" "),e("TwoFactorQrSetupPopup"),t._v(" "),e("CreatePersonalTokenPopup"),t._v(" "),"fixed"===t.config.subscriptionType?e("SubscribeAccountPopup"):t._e(),t._v(" "),"fixed"===t.config.subscriptionType?e("ChangeSubscriptionPopup"):t._e(),t._v(" "),"metered"===t.config.subscriptionType?e("ChargePaymentPopup"):t._e(),t._v(" "),e("MobileNavigation"),t._v(" "),e("MobileNavigationToolbar"),t._v(" "),t.user?e("div",{staticClass:"relative mx-auto w-full overflow-x-hidden px-2.5 pb-12 md:max-w-4xl md:px-6 lg:pt-6 lg:pb-0 xl:max-w-screen-lg z-[5]"},[t.isLoading?t._e():e("div",{attrs:{id:"page-content"}},[e("div",{staticClass:"card sticky top-0 z-10 shadow-card",staticStyle:{"padding-bottom":"0"}},[e("div",{staticClass:"mb-3 flex items-center"},[e("AvatarInput",{attrs:{avatar:t.user.data.relationships.settings.data.attributes.avatar?t.user.data.relationships.settings.data.attributes.avatar.md:void 0},model:{value:t.avatar,callback:function(e){t.avatar=e},expression:"avatar"}}),t._v(" "),e("div",{staticClass:"ml-4"},[e("b",{staticClass:"text-md block font-bold sm:text-lg"},[t._v("\n "+t._s(t.user.data.relationships.settings.data.attributes.first_name)+"\n "+t._s(t.user.data.relationships.settings.data.attributes.last_name)+"\n\n "),"fixed"===t.config.subscriptionType?e("ColorLabel",{attrs:{color:t.subscriptionColor}},[t._v("\n "+t._s(t.subscriptionStatus)+"\n ")]):t._e()],1),t._v(" "),e("small",{staticClass:"block text-xs dark:text-gray-500 text-gray-600 sm:text-sm"},[t._v("\n "+t._s(t.user.data.attributes.email)+"\n ")])])],1),t._v(" "),e("CardNavigation",{staticClass:"-mx-1",attrs:{pages:t.pages}})],1),t._v(" "),e("router-view",{attrs:{user:t.user}})],1),t._v(" "),t.isLoading?e("div",{attrs:{id:"loader"}},[e("Spinner")],1):t._e()]):t._e()],1)}),[],!1,null,null,null).exports}}]); |