v5.0.0 update
@ -1,20 +1,21 @@
|
||||
<IfModule mod_rewrite.c>
|
||||
<IfModule mod_negotiation.c>
|
||||
Options -MultiViews
|
||||
Options -MultiViews -Indexes
|
||||
</IfModule>
|
||||
|
||||
RewriteEngine On
|
||||
|
||||
# Redirect Trailing Slashes If Not A Folder...
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^(.*)/$ /$1 [L,R=301]
|
||||
|
||||
# Handle Front Controller...
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^ index.php [L]
|
||||
|
||||
# Handle Authorization Header
|
||||
RewriteCond %{HTTP:Authorization} .
|
||||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
||||
</IfModule>
|
||||
|
||||
# Redirect Trailing Slashes If Not A Folder...
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_URI} (.+)/$
|
||||
RewriteRule ^ %1 [L,R=301]
|
||||
|
||||
# Send Requests To Front Controller...
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^ index.php [L]
|
||||
</IfModule>
|
||||
|
||||
1
public/assets/css/crater.css
vendored
@ -1,17 +0,0 @@
|
||||
<svg
|
||||
aria-hidden="true"
|
||||
focusable="false"
|
||||
data-prefix="fas"
|
||||
data-icon="check-circle"
|
||||
class="svg-inline--fa fa-check-circle fa-w-16"
|
||||
role="img"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 512 512">
|
||||
<path
|
||||
fill="#55547A"
|
||||
d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z">
|
||||
</path>
|
||||
</svg>
|
||||
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 658 B |
@ -1,13 +0,0 @@
|
||||
<svg
|
||||
aria-hidden="true"
|
||||
focusable="false"
|
||||
data-prefix="fas"
|
||||
data-icon="envelope"
|
||||
class="svg-inline--fa fa-envelope fa-w-16"
|
||||
role="img" xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 512 512">
|
||||
<path
|
||||
fill="#55547A"
|
||||
d="M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z">
|
||||
</path>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 751 B |
@ -1,13 +0,0 @@
|
||||
<svg
|
||||
aria-hidden="true"
|
||||
focusable="false"
|
||||
data-prefix="fas"
|
||||
data-icon="file-alt"
|
||||
class="svg-inline--fa fa-file-alt fa-w-12"
|
||||
role="img" xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 384 512">
|
||||
<path
|
||||
fill="#55547A"
|
||||
d="M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 236c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-64c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-72v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm96-114.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z">
|
||||
</path>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 764 B |
@ -1,14 +0,0 @@
|
||||
<svg
|
||||
aria-hidden="true"
|
||||
focusable="false"
|
||||
data-prefix="fas"
|
||||
data-icon="paper-plane"
|
||||
class="svg-inline--fa fa-paper-plane fa-w-16"
|
||||
role="img"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 512 512">
|
||||
<path
|
||||
fill="#55547A"
|
||||
d="M476 3.2L12.5 270.6c-18.1 10.4-15.8 35.6 2.2 43.2L121 358.4l287.3-253.2c5.5-4.9 13.3 2.6 8.6 8.3L176 407v80.5c0 23.6 28.5 32.9 42.5 15.8L282 426l124.6 52.2c14.2 6 30.4-2.9 33-18.2l72-432C515 7.8 493.3-6.8 476 3.2z">
|
||||
</path>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 510 B |
@ -1,14 +0,0 @@
|
||||
<svg
|
||||
aria-hidden="true"
|
||||
focusable="false"
|
||||
data-prefix="fas"
|
||||
data-icon="times-circle"
|
||||
class="svg-inline--fa fa-times-circle fa-w-16"
|
||||
role="img"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 512 512">
|
||||
<path
|
||||
fill="#55547A"
|
||||
d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z">
|
||||
</path>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 674 B |
@ -1,14 +0,0 @@
|
||||
<svg
|
||||
aria-hidden="true"
|
||||
focusable="false"
|
||||
data-prefix="fas"
|
||||
data-icon="trash"
|
||||
class="svg-inline--fa fa-trash fa-w-14"
|
||||
role="img"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 448 512">
|
||||
<path
|
||||
fill="#55547A"
|
||||
d="M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z">
|
||||
</path>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 519 B |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 767 KiB |
|
Before Width: | Height: | Size: 6.5 KiB |
|
Before Width: | Height: | Size: 539 KiB |
@ -1,95 +0,0 @@
|
||||
/*!
|
||||
* tiptap v1.29.6
|
||||
* (c) 2020 überdosis GbR (limited liability)
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
/*!
|
||||
* tiptap-commands v1.14.6
|
||||
* (c) 2020 überdosis GbR (limited liability)
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
/*!
|
||||
* tiptap-extensions v1.33.1
|
||||
* (c) 2020 überdosis GbR (limited liability)
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
/*!
|
||||
* tiptap-utils v1.10.4
|
||||
* (c) 2020 überdosis GbR (limited liability)
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
/*!
|
||||
* Chart.js v2.9.4
|
||||
* https://www.chartjs.org
|
||||
* (c) 2020 Chart.js Contributors
|
||||
* Released under the MIT License
|
||||
*/
|
||||
|
||||
/*!
|
||||
* Vue.js v2.6.12
|
||||
* (c) 2014-2020 Evan You
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
|
||||
/*!
|
||||
* vue2-transitions v0.3.0
|
||||
* (c) 2019-present cristij <joracristi@gmail.com>
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
|
||||
/*!
|
||||
* vuex v3.6.0
|
||||
* (c) 2020 Evan You
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
/*! For license information please see index.js.LICENSE.txt */
|
||||
|
||||
/**
|
||||
* @license
|
||||
* Lodash <https://lodash.com/>
|
||||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||||
* Released under MIT license <https://lodash.com/license>
|
||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||
*/
|
||||
|
||||
/**!
|
||||
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
||||
* @version 1.16.1
|
||||
* @license
|
||||
* Copyright (c) 2016 Federico Zivolo and contributors
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/**!
|
||||
* Sortable 1.10.2
|
||||
* @author RubaXa <trash@rubaxa.org>
|
||||
* @author owenm <owen23355@gmail.com>
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
//! moment.js
|
||||
|
||||
//! moment.js locale configuration
|
||||
@ -1,353 +0,0 @@
|
||||
/*! pace 1.0.0 */
|
||||
(function () {
|
||||
var a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X = [].slice, Y = {}.hasOwnProperty, Z = function (a, b) {
|
||||
function c() {
|
||||
this.constructor = a
|
||||
}
|
||||
|
||||
for (var d in b)Y.call(b, d) && (a[d] = b[d]);
|
||||
return c.prototype = b.prototype, a.prototype = new c, a.__super__ = b.prototype, a
|
||||
}, $ = [].indexOf || function (a) {
|
||||
for (var b = 0, c = this.length; c > b; b++)if (b in this && this[b] === a)return b;
|
||||
return -1
|
||||
};
|
||||
for (u = {
|
||||
catchupTime: 100,
|
||||
initialRate: .03,
|
||||
minTime: 250,
|
||||
ghostTime: 100,
|
||||
maxProgressPerFrame: 20,
|
||||
easeFactor: 1.25,
|
||||
startOnPageLoad: !0,
|
||||
restartOnPushState: !0,
|
||||
restartOnRequestAfter: 500,
|
||||
target: "body",
|
||||
elements: {checkInterval: 100, selectors: ["body"]},
|
||||
eventLag: {minSamples: 10, sampleCount: 3, lagThreshold: 3},
|
||||
ajax: {trackMethods: ["GET"], trackWebSockets: !0, ignoreURLs: []}
|
||||
}, C = function () {
|
||||
var a;
|
||||
return null != (a = "undefined" != typeof performance && null !== performance && "function" == typeof performance.now ? performance.now() : void 0) ? a : +new Date
|
||||
}, E = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame, t = window.cancelAnimationFrame || window.mozCancelAnimationFrame, null == E && (E = function (a) {
|
||||
return setTimeout(a, 50)
|
||||
}, t = function (a) {
|
||||
return clearTimeout(a)
|
||||
}), G = function (a) {
|
||||
var b, c;
|
||||
return b = C(), (c = function () {
|
||||
var d;
|
||||
return d = C() - b, d >= 33 ? (b = C(), a(d, function () {
|
||||
return E(c)
|
||||
})) : setTimeout(c, 33 - d)
|
||||
})()
|
||||
}, F = function () {
|
||||
var a, b, c;
|
||||
return c = arguments[0], b = arguments[1], a = 3 <= arguments.length ? X.call(arguments, 2) : [], "function" == typeof c[b] ? c[b].apply(c, a) : c[b]
|
||||
}, v = function () {
|
||||
var a, b, c, d, e, f, g;
|
||||
for (b = arguments[0], d = 2 <= arguments.length ? X.call(arguments, 1) : [], f = 0, g = d.length; g > f; f++)if (c = d[f])for (a in c)Y.call(c, a) && (e = c[a], null != b[a] && "object" == typeof b[a] && null != e && "object" == typeof e ? v(b[a], e) : b[a] = e);
|
||||
return b
|
||||
}, q = function (a) {
|
||||
var b, c, d, e, f;
|
||||
for (c = b = 0, e = 0, f = a.length; f > e; e++)d = a[e], c += Math.abs(d), b++;
|
||||
return c / b
|
||||
}, x = function (a, b) {
|
||||
var c, d, e;
|
||||
if (null == a && (a = "options"), null == b && (b = !0), e = document.querySelector("[data-pace-" + a + "]")) {
|
||||
if (c = e.getAttribute("data-pace-" + a), !b)return c;
|
||||
try {
|
||||
return JSON.parse(c)
|
||||
} catch (f) {
|
||||
return d = f, "undefined" != typeof console && null !== console ? console.error("Error parsing inline pace options", d) : void 0
|
||||
}
|
||||
}
|
||||
}, g = function () {
|
||||
function a() {
|
||||
}
|
||||
|
||||
return a.prototype.on = function (a, b, c, d) {
|
||||
var e;
|
||||
return null == d && (d = !1), null == this.bindings && (this.bindings = {}), null == (e = this.bindings)[a] && (e[a] = []), this.bindings[a].push({
|
||||
handler: b,
|
||||
ctx: c,
|
||||
once: d
|
||||
})
|
||||
}, a.prototype.once = function (a, b, c) {
|
||||
return this.on(a, b, c, !0)
|
||||
}, a.prototype.off = function (a, b) {
|
||||
var c, d, e;
|
||||
if (null != (null != (d = this.bindings) ? d[a] : void 0)) {
|
||||
if (null == b)return delete this.bindings[a];
|
||||
for (c = 0, e = []; c < this.bindings[a].length;)e.push(this.bindings[a][c].handler === b ? this.bindings[a].splice(c, 1) : c++);
|
||||
return e
|
||||
}
|
||||
}, a.prototype.trigger = function () {
|
||||
var a, b, c, d, e, f, g, h, i;
|
||||
if (c = arguments[0], a = 2 <= arguments.length ? X.call(arguments, 1) : [], null != (g = this.bindings) ? g[c] : void 0) {
|
||||
for (e = 0, i = []; e < this.bindings[c].length;)h = this.bindings[c][e], d = h.handler, b = h.ctx, f = h.once, d.apply(null != b ? b : this, a), i.push(f ? this.bindings[c].splice(e, 1) : e++);
|
||||
return i
|
||||
}
|
||||
}, a
|
||||
}(), j = window.Pace || {}, window.Pace = j, v(j, g.prototype), D = j.options = v({}, u, window.paceOptions, x()), U = ["ajax", "document", "eventLag", "elements"], Q = 0, S = U.length; S > Q; Q++)K = U[Q], D[K] === !0 && (D[K] = u[K]);
|
||||
i = function (a) {
|
||||
function b() {
|
||||
return V = b.__super__.constructor.apply(this, arguments)
|
||||
}
|
||||
|
||||
return Z(b, a), b
|
||||
}(Error), b = function () {
|
||||
function a() {
|
||||
this.progress = 0
|
||||
}
|
||||
|
||||
return a.prototype.getElement = function () {
|
||||
var a;
|
||||
if (null == this.el) {
|
||||
if (a = document.querySelector(D.target), !a)throw new i;
|
||||
this.el = document.createElement("div"), this.el.className = "pace pace-active", document.body.className = document.body.className.replace(/pace-done/g, ""), document.body.className += " pace-running", this.el.innerHTML = '<div class="pace-progress">\n <div class="pace-progress-inner"></div>\n</div>\n<div class="pace-activity"></div>', null != a.firstChild ? a.insertBefore(this.el, a.firstChild) : a.appendChild(this.el)
|
||||
}
|
||||
return this.el
|
||||
}, a.prototype.finish = function () {
|
||||
var a;
|
||||
return a = this.getElement(), a.className = a.className.replace("pace-active", ""), a.className += " pace-inactive", document.body.className = document.body.className.replace("pace-running", ""), document.body.className += " pace-done"
|
||||
}, a.prototype.update = function (a) {
|
||||
return this.progress = a, this.render()
|
||||
}, a.prototype.destroy = function () {
|
||||
try {
|
||||
this.getElement().parentNode.removeChild(this.getElement())
|
||||
} catch (a) {
|
||||
i = a
|
||||
}
|
||||
return this.el = void 0
|
||||
}, a.prototype.render = function () {
|
||||
var a, b, c, d, e, f, g;
|
||||
if (null == document.querySelector(D.target))return !1;
|
||||
for (a = this.getElement(), d = "translate3d(" + this.progress + "%, 0, 0)", g = ["webkitTransform", "msTransform", "transform"], e = 0, f = g.length; f > e; e++)b = g[e], a.children[0].style[b] = d;
|
||||
return (!this.lastRenderedProgress || this.lastRenderedProgress | 0 !== this.progress | 0) && (a.children[0].setAttribute("data-progress-text", "" + (0 | this.progress) + "%"), this.progress >= 100 ? c = "99" : (c = this.progress < 10 ? "0" : "", c += 0 | this.progress), a.children[0].setAttribute("data-progress", "" + c)), this.lastRenderedProgress = this.progress
|
||||
}, a.prototype.done = function () {
|
||||
return this.progress >= 100
|
||||
}, a
|
||||
}(), h = function () {
|
||||
function a() {
|
||||
this.bindings = {}
|
||||
}
|
||||
|
||||
return a.prototype.trigger = function (a, b) {
|
||||
var c, d, e, f, g;
|
||||
if (null != this.bindings[a]) {
|
||||
for (f = this.bindings[a], g = [], d = 0, e = f.length; e > d; d++)c = f[d], g.push(c.call(this, b));
|
||||
return g
|
||||
}
|
||||
}, a.prototype.on = function (a, b) {
|
||||
var c;
|
||||
return null == (c = this.bindings)[a] && (c[a] = []), this.bindings[a].push(b)
|
||||
}, a
|
||||
}(), P = window.XMLHttpRequest, O = window.XDomainRequest, N = window.WebSocket, w = function (a, b) {
|
||||
var c, d, e, f;
|
||||
f = [];
|
||||
for (d in b.prototype)try {
|
||||
e = b.prototype[d], f.push(null == a[d] && "function" != typeof e ? a[d] = e : void 0)
|
||||
} catch (g) {
|
||||
c = g
|
||||
}
|
||||
return f
|
||||
}, A = [], j.ignore = function () {
|
||||
var a, b, c;
|
||||
return b = arguments[0], a = 2 <= arguments.length ? X.call(arguments, 1) : [], A.unshift("ignore"), c = b.apply(null, a), A.shift(), c
|
||||
}, j.track = function () {
|
||||
var a, b, c;
|
||||
return b = arguments[0], a = 2 <= arguments.length ? X.call(arguments, 1) : [], A.unshift("track"), c = b.apply(null, a), A.shift(), c
|
||||
}, J = function (a) {
|
||||
var b;
|
||||
if (null == a && (a = "GET"), "track" === A[0])return "force";
|
||||
if (!A.length && D.ajax) {
|
||||
if ("socket" === a && D.ajax.trackWebSockets)return !0;
|
||||
if (b = a.toUpperCase(), $.call(D.ajax.trackMethods, b) >= 0)return !0
|
||||
}
|
||||
return !1
|
||||
}, k = function (a) {
|
||||
function b() {
|
||||
var a, c = this;
|
||||
b.__super__.constructor.apply(this, arguments), a = function (a) {
|
||||
var b;
|
||||
return b = a.open, a.open = function (d, e) {
|
||||
return J(d) && c.trigger("request", {type: d, url: e, request: a}), b.apply(a, arguments)
|
||||
}
|
||||
}, window.XMLHttpRequest = function (b) {
|
||||
var c;
|
||||
return c = new P(b), a(c), c
|
||||
};
|
||||
try {
|
||||
w(window.XMLHttpRequest, P)
|
||||
} catch (d) {
|
||||
}
|
||||
if (null != O) {
|
||||
window.XDomainRequest = function () {
|
||||
var b;
|
||||
return b = new O, a(b), b
|
||||
};
|
||||
try {
|
||||
w(window.XDomainRequest, O)
|
||||
} catch (d) {
|
||||
}
|
||||
}
|
||||
if (null != N && D.ajax.trackWebSockets) {
|
||||
window.WebSocket = function (a, b) {
|
||||
var d;
|
||||
return d = null != b ? new N(a, b) : new N(a), J("socket") && c.trigger("request", {
|
||||
type: "socket",
|
||||
url: a,
|
||||
protocols: b,
|
||||
request: d
|
||||
}), d
|
||||
};
|
||||
try {
|
||||
w(window.WebSocket, N)
|
||||
} catch (d) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return Z(b, a), b
|
||||
}(h), R = null, y = function () {
|
||||
return null == R && (R = new k), R
|
||||
}, I = function (a) {
|
||||
var b, c, d, e;
|
||||
for (e = D.ajax.ignoreURLs, c = 0, d = e.length; d > c; c++)if (b = e[c], "string" == typeof b) {
|
||||
if (-1 !== a.indexOf(b))return !0
|
||||
} else if (b.test(a))return !0;
|
||||
return !1
|
||||
}, y().on("request", function (b) {
|
||||
var c, d, e, f, g;
|
||||
return f = b.type, e = b.request, g = b.url, I(g) ? void 0 : j.running || D.restartOnRequestAfter === !1 && "force" !== J(f) ? void 0 : (d = arguments, c = D.restartOnRequestAfter || 0, "boolean" == typeof c && (c = 0), setTimeout(function () {
|
||||
var b, c, g, h, i, k;
|
||||
if (b = "socket" === f ? e.readyState < 2 : 0 < (h = e.readyState) && 4 > h) {
|
||||
for (j.restart(), i = j.sources, k = [], c = 0, g = i.length; g > c; c++) {
|
||||
if (K = i[c], K instanceof a) {
|
||||
K.watch.apply(K, d);
|
||||
break
|
||||
}
|
||||
k.push(void 0)
|
||||
}
|
||||
return k
|
||||
}
|
||||
}, c))
|
||||
}), a = function () {
|
||||
function a() {
|
||||
var a = this;
|
||||
this.elements = [], y().on("request", function () {
|
||||
return a.watch.apply(a, arguments)
|
||||
})
|
||||
}
|
||||
|
||||
return a.prototype.watch = function (a) {
|
||||
var b, c, d, e;
|
||||
return d = a.type, b = a.request, e = a.url, I(e) ? void 0 : (c = "socket" === d ? new n(b) : new o(b), this.elements.push(c))
|
||||
}, a
|
||||
}(), o = function () {
|
||||
function a(a) {
|
||||
var b, c, d, e, f, g, h = this;
|
||||
if (this.progress = 0, null != window.ProgressEvent)for (c = null, a.addEventListener("progress", function (a) {
|
||||
return h.progress = a.lengthComputable ? 100 * a.loaded / a.total : h.progress + (100 - h.progress) / 2
|
||||
}, !1), g = ["load", "abort", "timeout", "error"], d = 0, e = g.length; e > d; d++)b = g[d], a.addEventListener(b, function () {
|
||||
return h.progress = 100
|
||||
}, !1); else f = a.onreadystatechange, a.onreadystatechange = function () {
|
||||
var b;
|
||||
return 0 === (b = a.readyState) || 4 === b ? h.progress = 100 : 3 === a.readyState && (h.progress = 50), "function" == typeof f ? f.apply(null, arguments) : void 0
|
||||
}
|
||||
}
|
||||
|
||||
return a
|
||||
}(), n = function () {
|
||||
function a(a) {
|
||||
var b, c, d, e, f = this;
|
||||
for (this.progress = 0, e = ["error", "open"], c = 0, d = e.length; d > c; c++)b = e[c], a.addEventListener(b, function () {
|
||||
return f.progress = 100
|
||||
}, !1)
|
||||
}
|
||||
|
||||
return a
|
||||
}(), d = function () {
|
||||
function a(a) {
|
||||
var b, c, d, f;
|
||||
for (null == a && (a = {}), this.elements = [], null == a.selectors && (a.selectors = []), f = a.selectors, c = 0, d = f.length; d > c; c++)b = f[c], this.elements.push(new e(b))
|
||||
}
|
||||
|
||||
return a
|
||||
}(), e = function () {
|
||||
function a(a) {
|
||||
this.selector = a, this.progress = 0, this.check()
|
||||
}
|
||||
|
||||
return a.prototype.check = function () {
|
||||
var a = this;
|
||||
return document.querySelector(this.selector) ? this.done() : setTimeout(function () {
|
||||
return a.check()
|
||||
}, D.elements.checkInterval)
|
||||
}, a.prototype.done = function () {
|
||||
return this.progress = 100
|
||||
}, a
|
||||
}(), c = function () {
|
||||
function a() {
|
||||
var a, b, c = this;
|
||||
this.progress = null != (b = this.states[document.readyState]) ? b : 100, a = document.onreadystatechange, document.onreadystatechange = function () {
|
||||
return null != c.states[document.readyState] && (c.progress = c.states[document.readyState]), "function" == typeof a ? a.apply(null, arguments) : void 0
|
||||
}
|
||||
}
|
||||
|
||||
return a.prototype.states = {loading: 0, interactive: 50, complete: 100}, a
|
||||
}(), f = function () {
|
||||
function a() {
|
||||
var a, b, c, d, e, f = this;
|
||||
this.progress = 0, a = 0, e = [], d = 0, c = C(), b = setInterval(function () {
|
||||
var g;
|
||||
return g = C() - c - 50, c = C(), e.push(g), e.length > D.eventLag.sampleCount && e.shift(), a = q(e), ++d >= D.eventLag.minSamples && a < D.eventLag.lagThreshold ? (f.progress = 100, clearInterval(b)) : f.progress = 100 * (3 / (a + 3))
|
||||
}, 50)
|
||||
}
|
||||
|
||||
return a
|
||||
}(), m = function () {
|
||||
function a(a) {
|
||||
this.source = a, this.last = this.sinceLastUpdate = 0, this.rate = D.initialRate, this.catchup = 0, this.progress = this.lastProgress = 0, null != this.source && (this.progress = F(this.source, "progress"))
|
||||
}
|
||||
|
||||
return a.prototype.tick = function (a, b) {
|
||||
var c;
|
||||
return null == b && (b = F(this.source, "progress")), b >= 100 && (this.done = !0), b === this.last ? this.sinceLastUpdate += a : (this.sinceLastUpdate && (this.rate = (b - this.last) / this.sinceLastUpdate), this.catchup = (b - this.progress) / D.catchupTime, this.sinceLastUpdate = 0, this.last = b), b > this.progress && (this.progress += this.catchup * a), c = 1 - Math.pow(this.progress / 100, D.easeFactor), this.progress += c * this.rate * a, this.progress = Math.min(this.lastProgress + D.maxProgressPerFrame, this.progress), this.progress = Math.max(0, this.progress), this.progress = Math.min(100, this.progress), this.lastProgress = this.progress, this.progress
|
||||
}, a
|
||||
}(), L = null, H = null, r = null, M = null, p = null, s = null, j.running = !1, z = function () {
|
||||
return D.restartOnPushState ? j.restart() : void 0
|
||||
}, null != window.history.pushState && (T = window.history.pushState, window.history.pushState = function () {
|
||||
return z(), T.apply(window.history, arguments)
|
||||
}), null != window.history.replaceState && (W = window.history.replaceState, window.history.replaceState = function () {
|
||||
return z(), W.apply(window.history, arguments)
|
||||
}), l = {ajax: a, elements: d, document: c, eventLag: f}, (B = function () {
|
||||
var a, c, d, e, f, g, h, i;
|
||||
for (j.sources = L = [], g = ["ajax", "elements", "document", "eventLag"], c = 0, e = g.length; e > c; c++)a = g[c], D[a] !== !1 && L.push(new l[a](D[a]));
|
||||
for (i = null != (h = D.extraSources) ? h : [], d = 0, f = i.length; f > d; d++)K = i[d], L.push(new K(D));
|
||||
return j.bar = r = new b, H = [], M = new m
|
||||
})(), j.stop = function () {
|
||||
return j.trigger("stop"), j.running = !1, r.destroy(), s = !0, null != p && ("function" == typeof t && t(p), p = null), B()
|
||||
}, j.restart = function () {
|
||||
return j.trigger("restart"), j.stop(), j.start()
|
||||
}, j.go = function () {
|
||||
var a;
|
||||
return j.running = !0, r.render(), a = C(), s = !1, p = G(function (b, c) {
|
||||
var d, e, f, g, h, i, k, l, n, o, p, q, t, u, v, w;
|
||||
for (l = 100 - r.progress, e = p = 0, f = !0, i = q = 0, u = L.length; u > q; i = ++q)for (K = L[i], o = null != H[i] ? H[i] : H[i] = [], h = null != (w = K.elements) ? w : [K], k = t = 0, v = h.length; v > t; k = ++t)g = h[k], n = null != o[k] ? o[k] : o[k] = new m(g), f &= n.done, n.done || (e++, p += n.tick(b));
|
||||
return d = p / e, r.update(M.tick(b, d)), r.done() || f || s ? (r.update(100), j.trigger("done"), setTimeout(function () {
|
||||
return r.finish(), j.running = !1, j.trigger("hide")
|
||||
}, Math.max(D.ghostTime, Math.max(D.minTime - (C() - a), 0)))) : c()
|
||||
})
|
||||
}, j.start = function (a) {
|
||||
v(D, a), j.running = !0;
|
||||
try {
|
||||
r.render()
|
||||
} catch (b) {
|
||||
i = b
|
||||
}
|
||||
return document.querySelector(".pace") ? (j.trigger("start"), j.go()) : setTimeout(j.start, 50)
|
||||
}, "function" == typeof define && define.amd ? define(function () {
|
||||
return j
|
||||
}) : "object" == typeof exports ? module.exports = j : D.startOnPageLoad && j.start()
|
||||
}).call(this);
|
||||
1
public/build/assets/404.77adcf05.js
Normal file
@ -0,0 +1 @@
|
||||
import{u as i,C as u,k as d,r as o,o as m,c as _,t,x as s,b as r,w as h,v as f,y as p}from"./vendor.e9042f2c.js";const x={class:"w-full h-screen h-screen-ios"},w={class:"flex items-center justify-center w-full h-full"},y={class:"flex flex-col items-center justify-center"},g={class:"text-primary-500",style:{"font-size":"10rem"}},b={class:"mb-10 text-3xl text-primary-500"},j={setup(v){const a=i();u();const n=d(()=>a.path.indexOf("customer")>-1?"/customer/dashboard":"/admin/dashboard");return(e,k)=>{const c=o("BaseIcon"),l=o("router-link");return m(),_("div",x,[t("div",w,[t("div",y,[t("h1",g,s(e.$t("general.four_zero_four")),1),t("h5",b,s(e.$t("general.you_got_lost")),1),r(l,{class:"flex items-center w-32 h-12 px-3 py-1 text-base font-medium leading-none text-center text-white rounded whitespace-nowrap bg-primary-500 btn-lg hover:text-white",to:p(n)},{default:h(()=>[r(c,{name:"ArrowLeftIcon",class:"mr-2 text-white icon"}),f(" "+s(e.$t("general.go_home")),1)]),_:1},8,["to"])])])])}}};export{j as default};
|
||||
1
public/build/assets/AccountSetting.1468f1ab.js
Normal file
@ -0,0 +1 @@
|
||||
var h=Object.defineProperty,z=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var E=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var b=(u,s,i)=>s in u?h(u,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):u[s]=i,U=(u,s)=>{for(var i in s||(s={}))E.call(s,i)&&b(u,i,s[i]);if(V)for(var i of V(s))P.call(s,i)&&b(u,i,s[i]);return u},S=(u,s)=>z(u,L(s));import{g as Q,i as B,k as I,m as v,n as y,a2 as T,p as H,aQ as J,j as K,q as O,r as m,o as C,c as W,b as r,w as d,y as e,a0 as X,s as Y,z as Z,A as x,v as ee,x as ae,B as se,t as te}from"./vendor.e9042f2c.js";import{d as ne,m as oe,c as re}from"./main.d8ec3f25.js";const le=["onSubmit"],ie=te("span",null,null,-1),pe={setup(u){const s=ne(),i=oe(),q=re(),{t:g}=Q();let p=B(!1),w=B(null),f=B([]);s.currentUser.avatar&&f.value.push({image:s.currentUser.avatar});const F=I(()=>({name:{required:v.withMessage(g("validation.required"),y)},email:{required:v.withMessage(g("validation.required"),y),email:v.withMessage(g("validation.email_incorrect"),T)},password:{minLength:v.withMessage(g("validation.password_length",{count:8}),H(8))},confirm_password:{sameAsPassword:v.withMessage(g("validation.password_incorrect"),J(t.password))}})),t=K({name:s.currentUser.name,email:s.currentUser.email,language:s.currentUserSettings.language||q.selectedCompanySettings.language,password:"",confirm_password:""}),o=O(F,I(()=>t));function M(l,a){w.value=a}function k(){w.value=null}async function G(){if(o.value.$touch(),o.value.$invalid)return!0;p.value=!0;let l={name:t.name,email:t.email};try{if(t.password!=null&&t.password!==void 0&&t.password!==""&&(l=S(U({},l),{password:t.password})),s.currentUserSettings.language!==t.language&&await s.updateUserSettings({settings:{language:t.language}}),(await s.updateCurrentUser(l)).data.data){if(p.value=!1,w.value){let $=new FormData;$.append("admin_avatar",w.value),await s.uploadAvatar($)}t.password="",t.confirm_password=""}}catch{return p.value=!1,!0}}return(l,a)=>{const $=m("BaseFileUploader"),c=m("BaseInputGroup"),_=m("BaseInput"),N=m("BaseMultiselect"),A=m("BaseInputGrid"),D=m("BaseIcon"),j=m("BaseButton"),R=m("BaseSettingCard");return C(),W("form",{class:"relative",onSubmit:se(G,["prevent"])},[r(R,{title:l.$t("settings.account_settings.account_settings"),description:l.$t("settings.account_settings.section_description")},{default:d(()=>[r(A,null,{default:d(()=>[r(c,{label:l.$tc("settings.account_settings.profile_picture")},{default:d(()=>[r($,{modelValue:e(f),"onUpdate:modelValue":a[0]||(a[0]=n=>X(f)?f.value=n:f=n),avatar:!0,accept:"image/*",onChange:M,onRemove:k},null,8,["modelValue"])]),_:1},8,["label"]),ie,r(c,{label:l.$tc("settings.account_settings.name"),error:e(o).name.$error&&e(o).name.$errors[0].$message,required:""},{default:d(()=>[r(_,{modelValue:e(t).name,"onUpdate:modelValue":a[1]||(a[1]=n=>e(t).name=n),invalid:e(o).name.$error,onInput:a[2]||(a[2]=n=>e(o).name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(c,{label:l.$tc("settings.account_settings.email"),error:e(o).email.$error&&e(o).email.$errors[0].$message,required:""},{default:d(()=>[r(_,{modelValue:e(t).email,"onUpdate:modelValue":a[3]||(a[3]=n=>e(t).email=n),invalid:e(o).email.$error,onInput:a[4]||(a[4]=n=>e(o).email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(c,{error:e(o).password.$error&&e(o).password.$errors[0].$message,label:l.$tc("settings.account_settings.password")},{default:d(()=>[r(_,{modelValue:e(t).password,"onUpdate:modelValue":a[5]||(a[5]=n=>e(t).password=n),type:"password",onInput:a[6]||(a[6]=n=>e(o).password.$touch())},null,8,["modelValue"])]),_:1},8,["error","label"]),r(c,{label:l.$tc("settings.account_settings.confirm_password"),error:e(o).confirm_password.$error&&e(o).confirm_password.$errors[0].$message},{default:d(()=>[r(_,{modelValue:e(t).confirm_password,"onUpdate:modelValue":a[7]||(a[7]=n=>e(t).confirm_password=n),type:"password",onInput:a[8]||(a[8]=n=>e(o).confirm_password.$touch())},null,8,["modelValue"])]),_:1},8,["label","error"]),r(c,{label:l.$tc("settings.language")},{default:d(()=>[r(N,{modelValue:e(t).language,"onUpdate:modelValue":a[9]||(a[9]=n=>e(t).language=n),options:e(i).config.languages,label:"name","value-prop":"code","track-by":"code","open-direction":"top"},null,8,["modelValue","options"])]),_:1},8,["label"])]),_:1}),r(j,{loading:e(p),disabled:e(p),class:"mt-6"},{left:d(n=>[e(p)?x("",!0):(C(),Y(D,{key:0,name:"SaveIcon",class:Z(n.class)},null,8,["class"]))]),default:d(()=>[ee(" "+ae(l.$tc("settings.company_info.save")),1)]),_:1},8,["loading","disabled"])]),_:1},8,["title","description"])],40,le)}}};export{pe as default};
|
||||
1
public/build/assets/AstronautIcon.e635ccba.js
Normal file
1
public/build/assets/BackupSetting.a21a6795.js
Normal file
1
public/build/assets/BaseEditor.3f67da30.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.ProseMirror{min-height:200px;padding:8px 12px;outline:none;border-radius:.375rem;border-top-left-radius:0;border-top-right-radius:0;border-width:1px;border-color:transparent}.ProseMirror h1{font-size:2em;font-weight:700}.ProseMirror h2{font-size:1.5em;font-weight:700}.ProseMirror h3{font-size:1.17em;font-weight:700}.ProseMirror ul{padding:0 1rem;list-style:disc!important}.ProseMirror ol{padding:0 1rem;list-style:auto!important}.ProseMirror blockquote{padding-left:1rem;border-left:2px solid rgba(13,13,13,.1)}.ProseMirror code{background-color:#6161611a;color:#616161;border-radius:.4rem;font-size:.9rem;padding:.1rem .3rem}.ProseMirror pre{background:#0d0d0d;color:#fff;font-family:JetBrainsMono,monospace;padding:.75rem 1rem;border-radius:.5rem}.ProseMirror pre code{color:inherit;padding:0;background:none;font-size:.8rem}.ProseMirror:focus{border-width:1px;--tw-border-opacity: 1;border-color:rgba(138,133,228,var(--tw-border-opacity));--tw-ring-opacity: 1;--tw-ring-color: rgba(138, 133, 228, var(--tw-ring-opacity))}
|
||||
73
public/build/assets/BaseEditor.ffc4523e.js
Normal file
1
public/build/assets/BaseMultiselect.8eaf3494.js
Normal file
1
public/build/assets/BaseTable.d3c7fd54.js
Normal file
1
public/build/assets/CategoryModal.733ef7b0.js
Normal file
@ -0,0 +1 @@
|
||||
import{g as k,i as q,k as g,m as y,n as N,p as j,a4 as D,q as G,r as i,o as B,s as b,w as r,t as m,v as f,x as v,y as e,b as n,z as L,A as T,B as z}from"./vendor.e9042f2c.js";import{s as A,g as E}from"./main.d8ec3f25.js";const U={class:"flex justify-between w-full"},X=["onSubmit"],F={class:"p-8 sm:p-6"},H={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid border-modal-bg"},P={setup(J){const t=A(),u=E(),{t:p}=k();let c=q(!1);const h=g(()=>({currentCategory:{name:{required:y.withMessage(p("validation.required"),N),minLength:y.withMessage(p("validation.name_min_length",{count:3}),j(3))},description:{maxLength:y.withMessage(p("validation.description_maxlength",{count:255}),D(255))}}})),a=G(h,g(()=>t)),w=g(()=>u.active&&u.componentName==="CategoryModal");async function I(){if(a.value.currentCategory.$touch(),a.value.currentCategory.$invalid)return!0;const s=t.isEdit?t.updateCategory:t.addCategory;c.value=!0,await s(t.currentCategory),c.value=!1,u.refreshData&&u.refreshData(),d()}function d(){u.closeModal(),setTimeout(()=>{t.$reset(),a.value.$reset()},300)}return(s,o)=>{const C=i("BaseIcon"),x=i("BaseInput"),_=i("BaseInputGroup"),V=i("BaseTextarea"),M=i("BaseInputGrid"),$=i("BaseButton"),S=i("BaseModal");return B(),b(S,{show:e(w),onClose:d},{header:r(()=>[m("div",U,[f(v(e(u).title)+" ",1),n(C,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:d})])]),default:r(()=>[m("form",{action:"",onSubmit:z(I,["prevent"])},[m("div",F,[n(M,{layout:"one-column"},{default:r(()=>[n(_,{label:s.$t("expenses.category"),error:e(a).currentCategory.name.$error&&e(a).currentCategory.name.$errors[0].$message,required:""},{default:r(()=>[n(x,{modelValue:e(t).currentCategory.name,"onUpdate:modelValue":o[0]||(o[0]=l=>e(t).currentCategory.name=l),invalid:e(a).currentCategory.name.$error,type:"text",onInput:o[1]||(o[1]=l=>e(a).currentCategory.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),n(_,{label:s.$t("expenses.description"),error:e(a).currentCategory.description.$error&&e(a).currentCategory.description.$errors[0].$message},{default:r(()=>[n(V,{modelValue:e(t).currentCategory.description,"onUpdate:modelValue":o[2]||(o[2]=l=>e(t).currentCategory.description=l),rows:"4",cols:"50",onInput:o[3]||(o[3]=l=>e(a).currentCategory.description.$touch())},null,8,["modelValue"])]),_:1},8,["label","error"])]),_:1})]),m("div",H,[n($,{type:"button",variant:"primary-outline",class:"mr-3 text-sm",onClick:d},{default:r(()=>[f(v(s.$t("general.cancel")),1)]),_:1}),n($,{loading:e(c),disabled:e(c),variant:"primary",type:"submit"},{left:r(l=>[e(c)?T("",!0):(B(),b(C,{key:0,name:"SaveIcon",class:L(l.class)},null,8,["class"]))]),default:r(()=>[f(" "+v(e(t).isEdit?s.$t("general.update"):s.$t("general.save")),1)]),_:1},8,["loading","disabled"])])],40,X)]),_:1},8,["show"])}}};export{P as _};
|
||||
1
public/build/assets/CompanyInfoSettings.d9f2a13c.js
Normal file
1
public/build/assets/Create.28a22b04.js
Normal file
1
public/build/assets/Create.32068c6b.js
Normal file
1
public/build/assets/Create.43dad034.js
Normal file
1
public/build/assets/Create.7c012c4b.js
Normal file
1
public/build/assets/Create.af4a4da5.js
Normal file
1
public/build/assets/CreateCustomFields.b4e23995.js
Normal file
@ -0,0 +1 @@
|
||||
var D=Object.defineProperty,I=Object.defineProperties;var g=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var q=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var f=(e,t,r)=>t in e?D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_=(e,t)=>{for(var r in t||(t={}))q.call(t,r)&&f(e,r,t[r]);if(y)for(var r of y(t))h.call(t,r)&&f(e,r,t[r]);return e},v=(e,t)=>I(e,g(t));import{g as w,m as V,aU as j,q as F,k as T,aJ as L,r as E,o as n,s as m,w as P,an as A,y as c,f as S,D as x,c as b,b as O,F as R,H as k,A as B,h as C}from"./vendor.e9042f2c.js";import{n as i,l as Y}from"./main.d8ec3f25.js";function $(e){switch(e){case"./types/DateTimeType.vue":return i(()=>import("./DateTimeType.885ed58f.js"),["assets/DateTimeType.885ed58f.js","assets/vendor.e9042f2c.js"]);case"./types/DateType.vue":return i(()=>import("./DateType.7fd6d385.js"),["assets/DateType.7fd6d385.js","assets/vendor.e9042f2c.js"]);case"./types/DropdownType.vue":return i(()=>import("./DropdownType.84b4a057.js"),["assets/DropdownType.84b4a057.js","assets/vendor.e9042f2c.js"]);case"./types/InputType.vue":return i(()=>import("./InputType.abbc9e84.js"),["assets/InputType.abbc9e84.js","assets/vendor.e9042f2c.js"]);case"./types/NumberType.vue":return i(()=>import("./NumberType.bae67e72.js"),["assets/NumberType.bae67e72.js","assets/vendor.e9042f2c.js"]);case"./types/PhoneType.vue":return i(()=>import("./PhoneType.f1778217.js"),["assets/PhoneType.f1778217.js","assets/vendor.e9042f2c.js"]);case"./types/SwitchType.vue":return i(()=>import("./SwitchType.56df61e7.js"),["assets/SwitchType.56df61e7.js","assets/vendor.e9042f2c.js"]);case"./types/TextAreaType.vue":return i(()=>import("./TextAreaType.a1bccab5.js"),["assets/TextAreaType.a1bccab5.js","assets/vendor.e9042f2c.js"]);case"./types/TimeType.vue":return i(()=>import("./TimeType.82e5beb3.js"),["assets/TimeType.82e5beb3.js","assets/vendor.e9042f2c.js"]);case"./types/UrlType.vue":return i(()=>import("./UrlType.803fb838.js"),["assets/UrlType.803fb838.js","assets/vendor.e9042f2c.js"]);default:return new Promise(function(t,r){(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+e)))})}}const M={props:{field:{type:Object,required:!0},customFieldScope:{type:String,required:!0},index:{type:Number,required:!0},store:{type:Object,required:!0},storeProp:{type:String,required:!0}},setup(e){const t=e,{t:r}=w(),d={value:{required:V.withMessage(r("validation.required"),j(t.field.is_required))}},a=F(d,T(()=>t.field),{$scope:t.customFieldScope}),o=T(()=>t.field.type?L(()=>$(`./types/${t.field.type}Type.vue`)):!1);return(u,s)=>{const l=E("BaseInputGroup");return n(),m(l,{label:e.field.label,required:!!e.field.is_required,error:c(a).value.$error&&c(a).value.$errors[0].$message},{default:P(()=>[(n(),m(A(c(o)),{modelValue:e.field.value,"onUpdate:modelValue":s[0]||(s[0]=p=>e.field.value=p),options:e.field.options,invalid:c(a).value.$error,placeholder:e.field.placeholder},null,8,["modelValue","options","invalid","placeholder"]))]),_:1},8,["label","required","error"])}}},H={key:0},J={props:{store:{type:Object,required:!0},storeProp:{type:String,required:!0},isEdit:{type:Boolean,default:!1},type:{type:String,default:null},gridLayout:{type:String,default:"two-column"},isLoading:{type:Boolean,default:null},customFieldScope:{type:String,required:!0}},setup(e){const t=e,r=Y();a();function d(){t.isEdit&&t.store[t.storeProp].fields.forEach(o=>{const u=t.store[t.storeProp].customFields.findIndex(s=>s.id===o.custom_field_id);if(u>-1){let s=o.default_answer;s&&o.custom_field.type==="DateTime"&&(s=C(o.default_answer,"YYYY-MM-DD HH:mm:ss").format("YYYY-MM-DD HH:mm")),t.store[t.storeProp].customFields[u]=v(_({},o),{id:o.custom_field_id,value:s,label:o.custom_field.label,options:o.custom_field.options,is_required:o.custom_field.is_required,placeholder:o.custom_field.placeholder,order:o.custom_field.order})}})}async function a(){let u=(await r.fetchCustomFields({type:t.type,limit:"all"})).data.data;u.map(s=>s.value=s.default_answer),t.store[t.storeProp].customFields=S.sortBy(u,s=>s.order),d()}return x(()=>t.store[t.storeProp].fields,o=>{d()}),(o,u)=>{const s=E("BaseInputGrid");return e.store[e.storeProp]&&e.store[e.storeProp].customFields.length>0&&!e.isLoading?(n(),b("div",H,[O(s,{layout:e.gridLayout},{default:P(()=>[(n(!0),b(R,null,k(e.store[e.storeProp].customFields,(l,p)=>(n(),m(M,{key:l.id,"custom-field-scope":e.customFieldScope,store:e.store,"store-prop":e.storeProp,index:p,field:l},null,8,["custom-field-scope","store","store-prop","index","field"]))),128))]),_:1},8,["layout"])])):B("",!0)}}};export{J as _};
|
||||
1
public/build/assets/CustomFieldsSetting.7a5a5091.js
Normal file
1
public/build/assets/CustomerIndexDropdown.4b5eb246.js
Normal file
@ -0,0 +1 @@
|
||||
import{k as C,u as S,i as b,d as x,e as g}from"./main.d8ec3f25.js";import{g as E,u as T,C as $,am as j,r as i,o as a,s,w as t,y as e,b as n,v as f,x as p,A as y}from"./vendor.e9042f2c.js";const V={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:()=>{}}},setup(l){const w=l,_=C();S();const D=b(),m=x(),{t:u}=E(),h=T();$(),j("utils");function B(r){D.openDialog({title:u("general.are_you_sure"),message:u("customers.confirm_delete",1),yesLabel:u("general.ok"),noLabel:u("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(c=>{c&&_.deleteCustomer({ids:[r]}).then(o=>{if(o.data.success)return w.loadData&&w.loadData(),!0})})}return(r,c)=>{const o=i("BaseIcon"),k=i("BaseButton"),d=i("BaseDropdownItem"),v=i("router-link"),I=i("BaseDropdown");return a(),s(I,{"content-loading":e(_).isFetchingViewData},{activator:t(()=>[e(h).name==="customers.view"?(a(),s(k,{key:0,variant:"primary"},{default:t(()=>[n(o,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(a(),s(o,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:t(()=>[e(m).hasAbilities(e(g).EDIT_CUSTOMER)?(a(),s(v,{key:0,to:`/admin/customers/${l.row.id}/edit`},{default:t(()=>[n(d,null,{default:t(()=>[n(o,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),f(" "+p(r.$t("general.edit")),1)]),_:1})]),_:1},8,["to"])):y("",!0),e(h).name!=="customers.view"&&e(m).hasAbilities(e(g).VIEW_CUSTOMER)?(a(),s(v,{key:1,to:`customers/${l.row.id}/view`},{default:t(()=>[n(d,null,{default:t(()=>[n(o,{name:"EyeIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),f(" "+p(r.$t("general.view")),1)]),_:1})]),_:1},8,["to"])):y("",!0),e(m).hasAbilities(e(g).DELETE_CUSTOMER)?(a(),s(d,{key:2,onClick:c[0]||(c[0]=N=>B(l.row.id))},{default:t(()=>[n(o,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),f(" "+p(r.$t("general.delete")),1)]),_:1})):y("",!0)]),_:1},8,["content-loading"])}}};export{V as _};
|
||||
1
public/build/assets/CustomizationSetting.eea829f5.js
Normal file
1
public/build/assets/Dashboard.8352d9a9.js
Normal file
1
public/build/assets/DateTimeType.885ed58f.js
Normal file
@ -0,0 +1 @@
|
||||
import{h as r,k as m,r as d,o as p,s as c,y as f,a0 as i}from"./vendor.e9042f2c.js";const k={props:{modelValue:{type:String,default:r().format("YYYY-MM-DD hh:MM")}},emits:["update:modelValue"],setup(t,{emit:l}){const s=t,e=m({get:()=>s.modelValue,set:o=>{l("update:modelValue",o)}});return(o,a)=>{const n=d("BaseDatePicker");return p(),c(n,{modelValue:f(e),"onUpdate:modelValue":a[0]||(a[0]=u=>i(e)?e.value=u:null),"enable-time":""},null,8,["modelValue"])}}};export{k as default};
|
||||
1
public/build/assets/DateType.7fd6d385.js
Normal file
@ -0,0 +1 @@
|
||||
import{h as r,k as d,r as m,o as p,s as c,y as f,a0 as i}from"./vendor.e9042f2c.js";const k={props:{modelValue:{type:[String,Date],default:r().format("YYYY-MM-DD")}},emits:["update:modelValue"],setup(t,{emit:s}){const l=t,e=d({get:()=>l.modelValue,set:o=>{s("update:modelValue",o)}});return(o,a)=>{const u=m("BaseDatePicker");return p(),c(u,{modelValue:f(e),"onUpdate:modelValue":a[0]||(a[0]=n=>i(e)?e.value=n:null)},null,8,["modelValue"])}}};export{k as default};
|
||||
10
public/build/assets/DragIcon.c6971672.js
Normal file
1
public/build/assets/DropdownType.84b4a057.js
Normal file
@ -0,0 +1 @@
|
||||
import{k as p,r,o as d,s as c,y as m,a0 as i}from"./vendor.e9042f2c.js";const b={props:{modelValue:{type:[String,Object,Number],default:null},options:{type:Array,default:()=>[]},valueProp:{type:String,default:"name"},label:{type:String,default:"name"},object:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:o}){const u=e,l=p({get:()=>u.modelValue,set:t=>{o("update:modelValue",t)}});return(t,a)=>{const n=r("BaseMultiselect");return d(),c(n,{modelValue:m(l),"onUpdate:modelValue":a[0]||(a[0]=s=>i(l)?l.value=s:null),options:e.options,label:e.label,"value-prop":e.valueProp,object:e.object},null,8,["modelValue","options","label","value-prop","object"])}}};export{b as default};
|
||||
1
public/build/assets/EstimateCreate.463610cc.js
Normal file
1
public/build/assets/EstimateIndexDropdown.c2226697.js
Normal file
1
public/build/assets/ExchangeRateConverter.c7c473de.js
Normal file
@ -0,0 +1 @@
|
||||
import{m as D,c as _,t as j}from"./main.d8ec3f25.js";import{i as p,k as u,D as l,r as d,ap as A,y as o,o as x,s as F,w as g,c as N,Z as G,b as v,z,A as C,t as E,x as P}from"./vendor.e9042f2c.js";const L={key:0},O={class:"text-gray-500 sm:text-sm"},q={class:"text-gray-400 text-xs mt-2 font-light"},H={props:{v:{type:Object,default:null},isLoading:{type:Boolean,default:!1},store:{type:Object,default:null},storeProp:{type:String,default:""},isEdit:{type:Boolean,default:!1},customerCurrency:{type:[String,Number],default:null}},setup(r){const e=r,h=D(),b=_(),m=j(),f=p(!1);let a=p(!1);h.fetchCurrencies();const s=u(()=>b.selectedCompanyCurrency),c=u(()=>h.currencies.find(t=>t.id===e.store[e.storeProp].currency_id)),B=u(()=>s.value.id!==e.customerCurrency);l(()=>e.store[e.storeProp].customer,t=>{R(t)},{deep:!0}),l(()=>e.store[e.storeProp].currency_id,t=>{$(t)}),l(()=>e.customerCurrency,t=>{t&&e.isEdit&&w()},{immediate:!0});function w(){B.value&&m.checkForActiveProvider(e.customerCurrency).then(t=>{t.data.success&&(f.value=!0)})}function R(t){t?e.store[e.storeProp].currency_id=t.currency.id:e.store[e.storeProp].currency_id=s.value.id}async function $(t){t!==s.value.id?(e.isEdit||await y(t),e.store.showExchangeRate=!0):e.store.showExchangeRate=!1}function y(t){a.value=!0,m.getCurrentExchangeRate(t).then(n=>{n.data&&!n.data.error?e.store[e.storeProp].exchange_rate=n.data.exchangeRate[0]:e.store[e.storeProp].exchange_rate="",a.value=!1}).catch(n=>{a.value=!1})}return(t,n)=>{const k=d("BaseIcon"),S=d("BaseInput"),I=d("BaseInputGroup"),V=A("tooltip");return r.store.showExchangeRate&&o(c)?(x(),F(I,{key:0,"content-loading":o(a)&&!r.isEdit,label:t.$t("settings.exchange_rate.exchange_rate"),error:r.v.exchange_rate.$error&&r.v.exchange_rate.$errors[0].$message,required:""},{labelRight:g(()=>[f.value&&r.isEdit?(x(),N("div",L,[G(v(k,{name:"RefreshIcon",class:z(`h-4 w-4 text-primary-500 cursor-pointer outline-none ${o(a)?" animate-spin transform rotate-180 cursor-not-allowed pointer-events-none ":""}`),onClick:n[0]||(n[0]=i=>y(r.customerCurrency))},null,8,["class"]),[[V,{content:"Fetch Latest Exchange rate"}]])])):C("",!0)]),default:g(()=>[v(S,{modelValue:r.store[r.storeProp].exchange_rate,"onUpdate:modelValue":n[1]||(n[1]=i=>r.store[r.storeProp].exchange_rate=i),"content-loading":o(a)&&!r.isEdit,addon:`1 ${o(c).code} =`,disabled:o(a),onInput:n[2]||(n[2]=i=>r.v.exchange_rate.$touch())},{right:g(()=>[E("span",O,P(o(s).code),1)]),_:1},8,["modelValue","content-loading","addon","disabled"]),E("span",q,P(t.$t("settings.exchange_rate.exchange_help_text",{currency:o(c).code,baseCurrency:o(s).code})),1)]),_:1},8,["content-loading","label","error"])):C("",!0)}}};export{H as _};
|
||||
1
public/build/assets/ExpenseCategorySetting.fdf69fa8.js
Normal file
@ -0,0 +1 @@
|
||||
import{i as w,u as z,s as S,d as M,g as k,e as E}from"./main.d8ec3f25.js";import{g as I,u as T,am as j,r as i,o as m,s as p,w as e,y as g,b as n,v,x as C,A as N,i as P,k as F,c as V,z as A,t as $,F as L}from"./vendor.e9042f2c.js";import{_ as H}from"./CategoryModal.733ef7b0.js";const O={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:null}},setup(y){const d=y,B=w();z();const{t:o}=I(),s=S(),x=T(),_=M(),h=k();j("utils");function b(l){s.fetchCategory(l),h.openModal({title:o("settings.expense_category.edit_category"),componentName:"CategoryModal",refreshData:d.loadData,size:"sm"})}function r(l){B.openDialog({title:o("general.are_you_sure"),message:o("settings.expense_category.confirm_delete"),yesLabel:o("general.ok"),noLabel:o("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async()=>{if((await s.deleteCategory(l)).data.success)return d.loadData&&d.loadData(),!0;d.loadData&&d.loadData()})}return(l,t)=>{const c=i("BaseIcon"),u=i("BaseButton"),f=i("BaseDropdownItem"),a=i("BaseDropdown");return m(),p(a,null,{activator:e(()=>[g(x).name==="expenseCategorys.view"?(m(),p(u,{key:0,variant:"primary"},{default:e(()=>[n(c,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(m(),p(c,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:e(()=>[g(_).hasAbilities(g(E).EDIT_EXPENSE)?(m(),p(f,{key:0,onClick:t[0]||(t[0]=D=>b(y.row.id))},{default:e(()=>[n(c,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),v(" "+C(l.$t("general.edit")),1)]),_:1})):N("",!0),g(_).hasAbilities(g(E).DELETE_EXPENSE)?(m(),p(f,{key:1,onClick:t[1]||(t[1]=D=>r(y.row.id))},{default:e(()=>[n(c,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),v(" "+C(l.$t("general.delete")),1)]),_:1})):N("",!0)]),_:1})}}},X={class:"w-64"},R={class:"truncate"},J={setup(y){const d=S();w();const B=k(),{t:o}=I(),s=P(null),x=F(()=>[{key:"name",label:o("settings.expense_category.category_name"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"description",label:o("settings.expense_category.category_description"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"actions",label:"",tdClass:"text-right text-sm font-medium",sortable:!1}]);async function _({page:r,filter:l,sort:t}){let c={orderByField:t.fieldName||"created_at",orderBy:t.order||"desc",page:r},u=await d.fetchCategories(c);return{data:u.data.data,pagination:{totalPages:u.data.meta.last_page,currentPage:r,totalCount:u.data.meta.total,limit:5}}}function h(){B.openModal({title:o("settings.expense_category.add_category"),componentName:"CategoryModal",size:"sm",refreshData:s.value&&s.value.refresh})}async function b(){s.value&&s.value.refresh()}return(r,l)=>{const t=i("BaseIcon"),c=i("BaseButton"),u=i("BaseTable"),f=i("BaseSettingCard");return m(),V(L,null,[n(H),n(f,{title:r.$t("settings.expense_category.title"),description:r.$t("settings.expense_category.description")},{action:e(()=>[n(c,{variant:"primary-outline",type:"button",onClick:h},{left:e(a=>[n(t,{class:A(a.class),name:"PlusIcon"},null,8,["class"])]),default:e(()=>[v(" "+C(r.$t("settings.expense_category.add_new_category")),1)]),_:1})]),default:e(()=>[n(u,{ref:(a,D)=>{D.table=a,s.value=a},data:_,columns:g(x),class:"mt-16"},{"cell-description":e(({row:a})=>[$("div",X,[$("p",R,C(a.data.description),1)])]),"cell-actions":e(({row:a})=>[n(O,{row:a.data,table:s.value,"load-data":b},null,8,["row","table"])]),_:1},8,["columns"])]),_:1},8,["title","description"])],64)}}};export{J as default};
|
||||
1
public/build/assets/FileDiskSetting.b6edcbef.js
Normal file
1
public/build/assets/ForgotPassword.e0c614a2.js
Normal file
@ -0,0 +1 @@
|
||||
import{g as w,j as S,i as f,m as _,n as V,a2 as x,q as I,r as n,o as l,c as u,b as r,w as m,y as t,x as d,t as q,v as N,B as M,a as j}from"./vendor.e9042f2c.js";import{u as C,h as D}from"./main.d8ec3f25.js";const E=["onSubmit"],G={key:0},F={key:1},L={class:"mt-4 mb-4 text-sm"},A={setup(T){const g=C(),{t:c}=w(),i=S({email:""}),p=f(!1),o=f(!1),y={email:{required:_.withMessage(c("validation.required"),V),email:_.withMessage(c("validation.email_incorrect"),x)}},a=I(y,i);async function h(s){if(a.value.$touch(),!a.value.$invalid)try{o.value=!0,(await j.post("/api/v1/auth/password/email",i)).data&&g.showNotification({type:"success",message:"Mail sent successfully"}),p.value=!0,o.value=!1}catch(e){D(e),o.value=!1}}return(s,e)=>{const $=n("BaseInput"),b=n("BaseInputGroup"),B=n("BaseButton"),k=n("router-link");return l(),u("form",{id:"loginForm",onSubmit:M(h,["prevent"])},[r(b,{error:t(a).email.$error&&t(a).email.$errors[0].$message,label:s.$t("login.enter_email"),class:"mb-4",required:""},{default:m(()=>[r($,{modelValue:t(i).email,"onUpdate:modelValue":e[0]||(e[0]=v=>t(i).email=v),invalid:t(a).email.$error,focus:"",type:"email",name:"email",onInput:e[1]||(e[1]=v=>t(a).email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),r(B,{loading:o.value,disabled:o.value,type:"submit",variant:"primary"},{default:m(()=>[p.value?(l(),u("div",F,d(s.$t("validation.not_yet")),1)):(l(),u("div",G,d(s.$t("validation.send_reset_link")),1))]),_:1},8,["loading","disabled"]),q("div",L,[r(k,{to:"/login",class:"text-sm text-primary-400 hover:text-gray-700"},{default:m(()=>[N(d(s.$t("general.back_to_login")),1)]),_:1})])],40,E)}}};export{A as default};
|
||||
1
public/build/assets/Index.0dc023a0.js
Normal file
1
public/build/assets/Index.4228a38f.js
Normal file
1
public/build/assets/Index.78f14ef3.js
Normal file
1
public/build/assets/Index.9a6a86d3.js
Normal file
1
public/build/assets/Index.b192ff43.js
Normal file
1
public/build/assets/Index.e14e4086.js
Normal file
1
public/build/assets/Index.e373841e.js
Normal file
1
public/build/assets/Index.e62232ca.js
Normal file
1
public/build/assets/Index.ef98ab07.js
Normal file
1
public/build/assets/InputType.abbc9e84.js
Normal file
@ -0,0 +1 @@
|
||||
import{k as p,r,o as d,s as m,y as c,a0 as V}from"./vendor.e9042f2c.js";const i={props:{modelValue:{type:String,default:null}},emits:["update:modelValue"],setup(l,{emit:a}){const u=l,e=p({get:()=>u.modelValue,set:t=>{a("update:modelValue",t)}});return(t,o)=>{const s=r("BaseInput");return d(),m(s,{modelValue:c(e),"onUpdate:modelValue":o[0]||(o[0]=n=>V(e)?e.value=n:null),type:"text"},null,8,["modelValue"])}}};export{i as default};
|
||||
1
public/build/assets/Installation.0b767174.js
Normal file
1
public/build/assets/InvoiceCreate.fd42e21a.js
Normal file
1
public/build/assets/InvoiceIndexDropdown.c26f9f0a.js
Normal file
@ -0,0 +1 @@
|
||||
import{g as O,u as j,C as z,am as R,r as h,o as r,s as l,w as o,y as c,b as s,Z as M,al as P,v as d,x as v,A as m}from"./vendor.e9042f2c.js";import{f as F,g as U,u as H,i as W,d as q,e as f}from"./main.d8ec3f25.js";const J={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:()=>{}}},setup(a){const w=a,p=F(),$=U(),N=H(),b=W(),g=q(),{t:i}=O(),y=j(),S=z(),x=R("utils");function _(e){return(e.status=="SENT"||e.status=="VIEWED")&&y.name!=="invoices.view"&&g.hasAbilities(f.SEND_INVOICE)}function D(e){return e.status=="DRAFT"&&y.name!=="invoices.view"&&g.hasAbilities(f.SEND_INVOICE)}async function B(e){b.openDialog({title:i("general.are_you_sure"),message:i("invoices.confirm_delete"),yesLabel:i("general.ok"),noLabel:i("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(n=>{e=e,n&&p.deleteInvoice({ids:[e]}).then(t=>{t.data.success&&(S.push("/admin/invoices"),w.table&&w.table.refresh(),p.$patch(I=>{I.selectedInvoices=[],I.selectAllField=!1}))})})}async function A(e){b.openDialog({title:i("general.are_you_sure"),message:i("invoices.confirm_clone"),yesLabel:i("general.ok"),noLabel:i("general.cancel"),variant:"primary",hideNoButton:!1,size:"lg"}).then(n=>{n&&p.cloneInvoice(e).then(t=>{S.push(`/admin/invoices/${t.data.data.id}/edit`)})})}async function T(e){b.openDialog({title:i("general.are_you_sure"),message:i("invoices.invoice_mark_as_sent"),yesLabel:i("general.ok"),noLabel:i("general.cancel"),variant:"primary",hideNoButton:!1,size:"lg"}).then(n=>{const t={id:e,status:"SENT"};n&&p.markAsSent(t).then(I=>{w.table&&w.table.refresh()})})}async function E(e){$.openModal({title:i("invoices.send_invoice"),componentName:"SendInvoiceModal",id:e.id,data:e,variant:"sm"})}function V(){let e=`${window.location.origin}/invoices/pdf/${w.row.unique_hash}`;x.copyTextToClipboard(e),N.showNotification({type:"success",message:i("general.copied_pdf_url_clipboard")})}return(e,n)=>{const t=h("BaseIcon"),I=h("BaseButton"),u=h("BaseDropdownItem"),C=h("router-link"),L=h("BaseDropdown");return r(),l(L,null,{activator:o(()=>[c(y).name==="invoices.view"?(r(),l(I,{key:0,variant:"primary"},{default:o(()=>[s(t,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(r(),l(t,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:o(()=>[c(g).hasAbilities(c(f).EDIT_INVOICE)?(r(),l(C,{key:0,to:`/admin/invoices/${a.row.id}/edit`},{default:o(()=>[M(s(u,null,{default:o(()=>[s(t,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),d(" "+v(e.$t("general.edit")),1)]),_:1},512),[[P,a.row.allow_edit]])]),_:1},8,["to"])):m("",!0),c(y).name==="invoices.view"?(r(),l(u,{key:1,onClick:V},{default:o(()=>[s(t,{name:"LinkIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),d(" "+v(e.$t("general.copy_pdf_url")),1)]),_:1})):m("",!0),c(y).name!=="invoices.view"&&c(g).hasAbilities(c(f).VIEW_INVOICE)?(r(),l(C,{key:2,to:`invoices/${a.row.id}/view`},{default:o(()=>[s(u,null,{default:o(()=>[s(t,{name:"EyeIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),d(" "+v(e.$t("general.view")),1)]),_:1})]),_:1},8,["to"])):m("",!0),D(a.row)?(r(),l(u,{key:3,onClick:n[0]||(n[0]=k=>E(a.row))},{default:o(()=>[s(t,{name:"PaperAirplaneIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),d(" "+v(e.$t("invoices.send_invoice")),1)]),_:1})):m("",!0),_(a.row)?(r(),l(u,{key:4,onClick:n[1]||(n[1]=k=>E(a.row))},{default:o(()=>[s(t,{name:"PaperAirplaneIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),d(" "+v(e.$t("invoices.resend_invoice")),1)]),_:1})):m("",!0),s(C,{to:`/admin/payments/${a.row.id}/create`},{default:o(()=>[a.row.status=="SENT"&&c(y).name!=="invoices.view"?(r(),l(u,{key:0},{default:o(()=>[s(t,{name:"CreditCardIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),d(" "+v(e.$t("invoices.record_payment")),1)]),_:1})):m("",!0)]),_:1},8,["to"]),D(a.row)?(r(),l(u,{key:5,onClick:n[2]||(n[2]=k=>T(a.row.id))},{default:o(()=>[s(t,{name:"CheckCircleIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),d(" "+v(e.$t("invoices.mark_as_sent")),1)]),_:1})):m("",!0),c(g).hasAbilities(c(f).CREATE_INVOICE)?(r(),l(u,{key:6,onClick:n[3]||(n[3]=k=>A(a.row))},{default:o(()=>[s(t,{name:"DocumentTextIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),d(" "+v(e.$t("invoices.clone_invoice")),1)]),_:1})):m("",!0),c(g).hasAbilities(c(f).DELETE_INVOICE)?(r(),l(u,{key:7,onClick:n[4]||(n[4]=k=>B(a.row.id))},{default:o(()=>[s(t,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),d(" "+v(e.$t("general.delete")),1)]),_:1})):m("",!0)]),_:1})}}};export{J as _};
|
||||
1
public/build/assets/ItemModal.18fd3539.js
Normal file
1
public/build/assets/ItemUnitModal.c88ac7e5.js
Normal file
@ -0,0 +1 @@
|
||||
import{g as S,i as V,k as g,m as h,n as C,p as k,q as x,r as i,o as b,s as B,w as r,t as d,v as p,x as f,y as e,b as l,z as q,A as z,B as N}from"./vendor.e9042f2c.js";import{p as j,g as D}from"./main.d8ec3f25.js";const E={class:"flex justify-between w-full"},G=["onSubmit"],L={class:"p-8 sm:p-6"},T={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid border-modal-bg"},H={setup(A){const t=j(),a=D(),{t:v}=S();let o=V(!1);const $=g(()=>({name:{required:h.withMessage(v("validation.required"),C),minLength:h.withMessage(v("validation.name_min_length",{count:3}),k(3))}})),n=x($,g(()=>t.currentItemUnit));async function y(){if(n.value.$touch(),n.value.$invalid)return!0;try{const s=t.isItemUnitEdit?t.updateItemUnit:t.addItemUnit;o.value=!0,await s(t.currentItemUnit),a.refreshData&&a.refreshData(),u(),o.value=!1}catch{return o.value=!1,!0}}function u(){a.closeModal(),setTimeout(()=>{t.currentItemUnit={id:null,name:""},a.$reset(),n.value.$reset()},300)}return(s,m)=>{const _=i("BaseIcon"),U=i("BaseInput"),w=i("BaseInputGroup"),I=i("BaseButton"),M=i("BaseModal");return b(),B(M,{show:e(a).active&&e(a).componentName==="ItemUnitModal",onClose:u},{header:r(()=>[d("div",E,[p(f(e(a).title)+" ",1),l(_,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:u})])]),default:r(()=>[d("form",{action:"",onSubmit:N(y,["prevent"])},[d("div",L,[l(w,{label:s.$t("settings.customization.items.unit_name"),error:e(n).name.$error&&e(n).name.$errors[0].$message,variant:"horizontal",required:""},{default:r(()=>[l(U,{modelValue:e(t).currentItemUnit.name,"onUpdate:modelValue":m[0]||(m[0]=c=>e(t).currentItemUnit.name=c),invalid:e(n).name.$error,type:"text",onInput:m[1]||(m[1]=c=>e(n).name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),d("div",T,[l(I,{type:"button",variant:"primary-outline",class:"mr-3 text-sm",onClick:u},{default:r(()=>[p(f(s.$t("general.cancel")),1)]),_:1}),l(I,{loading:e(o),disabled:e(o),variant:"primary",type:"submit"},{left:r(c=>[e(o)?z("",!0):(b(),B(_,{key:0,name:"SaveIcon",class:q(c.class)},null,8,["class"]))]),default:r(()=>[p(" "+f(e(t).isItemUnitEdit?s.$t("general.update"):s.$t("general.save")),1)]),_:1},8,["loading","disabled"])])],40,G)]),_:1},8,["show"])}}};export{H as _};
|
||||
1
public/build/assets/LayoutInstallation.b7623949.js
Normal file
@ -0,0 +1 @@
|
||||
import{N as t}from"./main.d8ec3f25.js";import{r as s,o as r,c,b as e,t as a}from"./vendor.e9042f2c.js";const n={class:"h-screen h-screen-ios overflow-y-auto text-base"},i={class:"container mx-auto px-4"},l={setup(_){return(m,p)=>{const o=s("router-view");return r(),c("div",n,[e(t),a("div",i,[e(o)])])}}};export{l as default};
|
||||
56
public/build/assets/LineChart.fe0d6ac3.js
Normal file
1
public/build/assets/LoadingIcon.1d7d9f05.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as c}from"./main.d8ec3f25.js";import{o as e,c as t,t as o}from"./vendor.e9042f2c.js";const s={},r={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},n=o("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),a=o("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1),l=[n,a];function i(_,d){return e(),t("svg",r,l)}var m=c(s,[["render",i]]);export{m as L};
|
||||
1
public/build/assets/Login.366c8cf6.js
Normal file
@ -0,0 +1 @@
|
||||
import{g as N,C as M,i as w,m as p,n as $,a2 as E,q as j,k as y,r as l,o as c,c as G,b as n,w as u,y as e,s as B,a0 as _,t as b,v as h,x as I,B as L,a as R}from"./vendor.e9042f2c.js";import{u as T,a as U}from"./main.d8ec3f25.js";const A=["onSubmit"],F={class:"mt-5 mb-8"},O={class:"mb-4"},J={setup(P){const k=T(),s=U(),{t:m}=N(),V=M(),d=w(!1);let o=w(!1);const x={email:{required:p.withMessage(m("validation.required"),$),email:p.withMessage(m("validation.email_incorrect"),E)},password:{required:p.withMessage(m("validation.required"),$)}},t=j(x,y(()=>s.loginData)),S=y(()=>o.value?"text":"password");async function q(){if(R.defaults.withCredentials=!0,t.value.$touch(),t.value.$invalid)return!0;d.value=!0;try{d.value=!0,await s.login(s.loginData),V.push("/admin/dashboard"),k.showNotification({type:"success",message:"Logged in successfully."})}catch{d.value=!1}}return(i,a)=>{const g=l("BaseInput"),f=l("BaseInputGroup"),v=l("BaseIcon"),D=l("router-link"),C=l("BaseButton");return c(),G("form",{id:"loginForm",class:"mt-12 text-left",onSubmit:L(q,["prevent"])},[n(f,{error:e(t).email.$error&&e(t).email.$errors[0].$message,label:i.$t("login.email"),class:"mb-4",required:""},{default:u(()=>[n(g,{modelValue:e(s).loginData.email,"onUpdate:modelValue":a[0]||(a[0]=r=>e(s).loginData.email=r),invalid:e(t).email.$error,focus:"",type:"email",name:"email",onInput:a[1]||(a[1]=r=>e(t).email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),n(f,{error:e(t).password.$error&&e(t).password.$errors[0].$message,label:i.$t("login.password"),class:"mb-4",required:""},{default:u(()=>[n(g,{modelValue:e(s).loginData.password,"onUpdate:modelValue":a[4]||(a[4]=r=>e(s).loginData.password=r),invalid:e(t).password.$error,type:e(S),name:"password",onInput:a[5]||(a[5]=r=>e(t).password.$touch())},{right:u(()=>[e(o)?(c(),B(v,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:a[2]||(a[2]=r=>_(o)?o.value=!e(o):o=!e(o))})):(c(),B(v,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:a[3]||(a[3]=r=>_(o)?o.value=!e(o):o=!e(o))}))]),_:1},8,["modelValue","invalid","type"])]),_:1},8,["error","label"]),b("div",F,[b("div",O,[n(D,{to:"forgot-password",class:"text-sm text-primary-400 hover:text-gray-700"},{default:u(()=>[h(I(i.$t("login.forgot_password")),1)]),_:1})])]),n(C,{loading:d.value,type:"submit"},{default:u(()=>[h(I(i.$t("login.login")),1)]),_:1},8,["loading"])],40,A)}}};export{J as default};
|
||||
1
public/build/assets/MailConfigSetting.35936e7e.js
Normal file
1
public/build/assets/MoonwalkerIcon.47caa882.js
Normal file
1
public/build/assets/NoteModal.13ab9bc5.js
Normal file
1
public/build/assets/NoteModal.3245b7d3.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.note-modal .header-editior .editor-menu-bar{margin-left:.5px;margin-right:0}
|
||||
1
public/build/assets/NotesSetting.9dc73fb7.js
Normal file
@ -0,0 +1 @@
|
||||
import{g as k,u as T,am as j,r,o as f,s as p,w as t,y as c,b as u,v as z,x as S,A as C,i as E,k as O,c as F,z as P,F as G,j as V}from"./vendor.e9042f2c.js";import{i as x,u as I,r as A,d as M,g as $,e as D}from"./main.d8ec3f25.js";import{_ as H}from"./NoteModal.13ab9bc5.js";const L={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:null}},setup(g){const d=g,N=x(),_=I(),{t:a}=k(),o=A(),h=T(),y=M(),b=$();j("utils");function w(n){o.fetchNote(n),b.openModal({title:a("settings.customization.notes.edit_note"),componentName:"NoteModal",size:"md",refreshData:d.loadData})}function s(n){N.openDialog({title:a("general.are_you_sure"),message:a("settings.customization.notes.note_confirm_delete"),yesLabel:a("general.yes"),noLabel:a("general.no"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async()=>{(await o.deleteNote(n)).data.success?_.showNotification({type:"success",message:a("settings.customization.notes.deleted_message")}):_.showNotification({type:"error",message:a("settings.customization.notes.already_in_use")}),d.loadData&&d.loadData()})}return(n,e)=>{const i=r("BaseIcon"),m=r("BaseButton"),B=r("BaseDropdownItem"),l=r("BaseDropdown");return f(),p(l,null,{activator:t(()=>[c(h).name==="notes.view"?(f(),p(m,{key:0,variant:"primary"},{default:t(()=>[u(i,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(f(),p(i,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:t(()=>[c(y).hasAbilities(c(D).MANAGE_NOTE)?(f(),p(B,{key:0,onClick:e[0]||(e[0]=v=>w(g.row.id))},{default:t(()=>[u(i,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),z(" "+S(n.$t("general.edit")),1)]),_:1})):C("",!0),c(y).hasAbilities(c(D).MANAGE_NOTE)?(f(),p(B,{key:1,onClick:e[1]||(e[1]=v=>s(g.row.id))},{default:t(()=>[u(i,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),z(" "+S(n.$t("general.delete")),1)]),_:1})):C("",!0)]),_:1})}}},J={setup(g){const{t:d}=k(),N=$();x();const _=A();I();const a=M(),o=E(""),h=O(()=>[{key:"name",label:d("settings.customization.notes.name"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"type",label:d("settings.customization.notes.type"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"actions",label:"",tdClass:"text-right text-sm font-medium",sortable:!1}]);async function y({page:s,filter:n,sort:e}){let i=V({orderByField:e.fieldName||"created_at",orderBy:e.order||"desc",page:s}),m=await _.fetchNotes(i);return{data:m.data.data,pagination:{totalPages:m.data.meta.last_page,currentPage:s,totalCount:m.data.meta.total,limit:5}}}async function b(){await N.openModal({title:d("settings.customization.notes.add_note"),componentName:"NoteModal",size:"md",refreshData:o.value&&o.value.refresh})}async function w(){o.value&&o.value.refresh()}return(s,n)=>{const e=r("BaseIcon"),i=r("BaseButton"),m=r("BaseTable"),B=r("BaseSettingCard");return f(),F(G,null,[u(H),u(B,{title:s.$t("settings.customization.notes.title"),description:s.$t("settings.customization.notes.description")},{action:t(()=>[c(a).hasAbilities(c(D).MANAGE_NOTE)?(f(),p(i,{key:0,variant:"primary-outline",onClick:b},{left:t(l=>[u(e,{class:P(l.class),name:"PlusIcon"},null,8,["class"])]),default:t(()=>[z(" "+S(s.$t("settings.customization.notes.add_note")),1)]),_:1})):C("",!0)]),default:t(()=>[u(m,{ref:(l,v)=>{v.table=l,o.value=l},data:y,columns:c(h),class:"mt-14"},{"cell-actions":t(({row:l})=>[u(L,{row:l.data,table:o.value,"load-data":w},null,8,["row","table"])]),_:1},8,["columns"])]),_:1},8,["title","description"])],64)}}};export{J as default};
|
||||
1
public/build/assets/NotificationsSetting.a1250a1b.js
Normal file
@ -0,0 +1 @@
|
||||
import{i as h,g as k,j as E,k as m,m as y,n as F,a2 as M,q as Y,r as o,o as w,s as S,w as u,t as v,b as d,y as i,z as j,A as D,v as U,x as z,B as G,a0 as B}from"./vendor.e9042f2c.js";import{c as O}from"./main.d8ec3f25.js";const A=["onSubmit"],R={class:"grid-cols-2 col-span-1 mt-14"},T={class:"divide-y divide-gray-200"},L={setup(H){const s=O();let r=h(!1);const{t:f}=k(),n=E({notify_invoice_viewed:s.selectedCompanySettings.notify_invoice_viewed,notify_estimate_viewed:s.selectedCompanySettings.notify_estimate_viewed,notification_email:s.selectedCompanySettings.notification_email}),$=m(()=>({notification_email:{required:y.withMessage(f("validation.required"),F),email:y.withMessage(f("validation.email_incorrect"),M)}})),l=Y($,m(()=>n)),_=m({get:()=>n.notify_invoice_viewed==="YES",set:async e=>{const t=e?"YES":"NO";let c={settings:{notify_invoice_viewed:t}};n.notify_invoice_viewed=t,await s.updateCompanySettings({data:c,message:"general.setting_updated"})}}),p=m({get:()=>n.notify_estimate_viewed==="YES",set:async e=>{const t=e?"YES":"NO";let c={settings:{notify_estimate_viewed:t}};n.notify_estimate_viewed=t,await s.updateCompanySettings({data:c,message:"general.setting_updated"})}});async function V(){if(l.value.$touch(),l.value.$invalid)return!0;r.value=!0;const e={settings:{notification_email:n.notification_email}};await s.updateCompanySettings({data:e,message:"settings.notification.email_save_message"}),r.value=!1}return(e,t)=>{const c=o("BaseInput"),C=o("BaseInputGroup"),b=o("BaseIcon"),I=o("BaseButton"),N=o("BaseDivider"),g=o("BaseSwitchSection"),q=o("BaseSettingCard");return w(),S(q,{title:e.$t("settings.notification.title"),description:e.$t("settings.notification.description")},{default:u(()=>[v("form",{action:"",onSubmit:G(V,["prevent"])},[v("div",R,[d(C,{error:i(l).notification_email.$error&&i(l).notification_email.$errors[0].$message,label:e.$t("settings.notification.email"),class:"my-2",required:""},{default:u(()=>[d(c,{modelValue:i(n).notification_email,"onUpdate:modelValue":t[0]||(t[0]=a=>i(n).notification_email=a),modelModifiers:{trim:!0},invalid:i(l).notification_email.$error,type:"email",onInput:t[1]||(t[1]=a=>i(l).notification_email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),d(I,{disabled:i(r),loading:i(r),variant:"primary",type:"submit",class:"mt-6"},{left:u(a=>[i(r)?D("",!0):(w(),S(b,{key:0,class:j(a.class),name:"SaveIcon"},null,8,["class"]))]),default:u(()=>[U(" "+z(e.$tc("settings.notification.save")),1)]),_:1},8,["disabled","loading"])])],40,A),d(N,{class:"mt-6 mb-2"}),v("ul",T,[d(g,{modelValue:i(_),"onUpdate:modelValue":t[2]||(t[2]=a=>B(_)?_.value=a:null),title:e.$t("settings.notification.invoice_viewed"),description:e.$t("settings.notification.invoice_viewed_desc")},null,8,["modelValue","title","description"]),d(g,{modelValue:i(p),"onUpdate:modelValue":t[3]||(t[3]=a=>B(p)?p.value=a:null),title:e.$t("settings.notification.estimate_viewed"),description:e.$t("settings.notification.estimate_viewed_desc")},null,8,["modelValue","title","description"])])]),_:1},8,["title","description"])}}};export{L as default};
|
||||
1
public/build/assets/NumberType.bae67e72.js
Normal file
@ -0,0 +1 @@
|
||||
import{k as p,r,o as m,s as d,y as c,a0 as V}from"./vendor.e9042f2c.js";const i={props:{modelValue:{type:[String,Number],default:null}},emits:["update:modelValue"],setup(l,{emit:u}){const a=l,e=p({get:()=>a.modelValue,set:o=>{u("update:modelValue",o)}});return(o,t)=>{const n=r("BaseInput");return m(),d(n,{modelValue:c(e),"onUpdate:modelValue":t[0]||(t[0]=s=>V(e)?e.value=s:null),type:"number"},null,8,["modelValue"])}}};export{i as default};
|
||||
1
public/build/assets/PaymentModeModal.512d997d.js
Normal file
@ -0,0 +1 @@
|
||||
import{g as I,i as S,k as p,m as P,n as V,p as C,q as k,r as u,o as q,s as j,w as r,t as c,v as y,x as v,y as t,b as s,z as x,B as N}from"./vendor.e9042f2c.js";import{g as z,o as D}from"./main.d8ec3f25.js";const G={class:"flex justify-between w-full"},L=["onSubmit"],T={class:"p-4 sm:p-6"},A={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},F={setup(U){const o=z(),e=D(),{t:f}=I(),l=S(!1),g=p(()=>({currentPaymentMode:{name:{required:P.withMessage(f("validation.required"),V),minLength:P.withMessage(f("validation.name_min_length",{count:3}),C(3))}}})),a=k(g,p(()=>e)),h=p(()=>o.active&&o.componentName==="PaymentModeModal");async function B(){if(a.value.currentPaymentMode.$touch(),a.value.currentPaymentMode.$invalid)return!0;try{const n=e.currentPaymentMode.id?e.updatePaymentMode:e.addPaymentMode;l.value=!0,await n(e.currentPaymentMode),l.value=!1,o.refreshData&&o.refreshData(),d()}catch{return l.value=!1,!0}}function d(){o.closeModal(),setTimeout(()=>{a.value.$reset(),e.currentPaymentMode={id:"",name:null}})}return(n,i)=>{const M=u("BaseIcon"),b=u("BaseInput"),$=u("BaseInputGroup"),_=u("BaseButton"),w=u("BaseModal");return q(),j(w,{show:t(h),onClose:d},{header:r(()=>[c("div",G,[y(v(t(o).title)+" ",1),s(M,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:d})])]),default:r(()=>[c("form",{action:"",onSubmit:N(B,["prevent"])},[c("div",T,[s($,{label:n.$t("settings.payment_modes.mode_name"),error:t(a).currentPaymentMode.name.$error&&t(a).currentPaymentMode.name.$errors[0].$message,required:""},{default:r(()=>[s(b,{modelValue:t(e).currentPaymentMode.name,"onUpdate:modelValue":i[0]||(i[0]=m=>t(e).currentPaymentMode.name=m),invalid:t(a).currentPaymentMode.name.$error,onInput:i[1]||(i[1]=m=>t(a).currentPaymentMode.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),c("div",A,[s(_,{variant:"primary-outline",class:"mr-3",type:"button",onClick:d},{default:r(()=>[y(v(n.$t("general.cancel")),1)]),_:1}),s(_,{loading:l.value,disabled:l.value,variant:"primary",type:"submit"},{left:r(m=>[s(M,{name:"SaveIcon",class:x(m.class)},null,8,["class"])]),default:r(()=>[y(" "+v(t(e).currentPaymentMode.id?n.$t("general.update"):n.$t("general.save")),1)]),_:1},8,["loading","disabled"])])],40,L)]),_:1},8,["show"])}}};export{F as _};
|
||||
1
public/build/assets/PaymentsModeSetting.5dcc7449.js
Normal file
@ -0,0 +1 @@
|
||||
import{g as D,u as I,am as x,r as m,o as p,s as v,w as a,y as M,b as t,v as b,x as w,i as $,k as z,c as N,z as j,F as T}from"./vendor.e9042f2c.js";import{i as P,u as F,o as C,d as H,g as S}from"./main.d8ec3f25.js";import{_ as L}from"./PaymentModeModal.512d997d.js";const O={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:null}},setup(u){const c=u,y=P();F();const{t:s}=D(),o=C(),f=I();H();const _=S();x("utils");function g(e){o.fetchPaymentMode(e),_.openModal({title:s("settings.payment_modes.edit_payment_mode"),componentName:"PaymentModeModal",refreshData:c.loadData&&c.loadData,size:"sm"})}function B(e){y.openDialog({title:s("general.are_you_sure"),message:s("settings.payment_modes.payment_mode_confirm_delete"),yesLabel:s("general.ok"),noLabel:s("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async l=>{l&&(await o.deletePaymentMode(e),c.loadData&&c.loadData())})}return(e,l)=>{const n=m("BaseIcon"),i=m("BaseButton"),r=m("BaseDropdownItem"),h=m("BaseDropdown");return p(),v(h,null,{activator:a(()=>[M(f).name==="paymentModes.view"?(p(),v(i,{key:0,variant:"primary"},{default:a(()=>[t(n,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(p(),v(n,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:a(()=>[t(r,{onClick:l[0]||(l[0]=d=>g(u.row.id))},{default:a(()=>[t(n,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),b(" "+w(e.$t("general.edit")),1)]),_:1}),t(r,{onClick:l[1]||(l[1]=d=>B(u.row.id))},{default:a(()=>[t(n,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),b(" "+w(e.$t("general.delete")),1)]),_:1})]),_:1})}}},U={setup(u){const c=S();P();const y=C(),{t:s}=D(),o=$(null),f=z(()=>[{key:"name",label:s("settings.payment_modes.mode_name"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"actions",label:"",tdClass:"text-right text-sm font-medium",sortable:!1}]);async function _(){o.value&&o.value.refresh()}async function g({page:e,filter:l,sort:n}){let i={orderByField:n.fieldName||"created_at",orderBy:n.order||"desc",page:e},r=await y.fetchPaymentModes(i);return{data:r.data.data,pagination:{totalPages:r.data.meta.last_page,currentPage:e,totalCount:r.data.meta.total,limit:5}}}function B(){c.openModal({title:s("settings.payment_modes.add_payment_mode"),componentName:"PaymentModeModal",refreshData:o.value&&o.value.refresh,size:"sm"})}return(e,l)=>{const n=m("BaseIcon"),i=m("BaseButton"),r=m("BaseTable"),h=m("BaseSettingCard");return p(),N(T,null,[t(L),t(h,{title:e.$t("settings.payment_modes.title"),description:e.$t("settings.payment_modes.description")},{action:a(()=>[t(i,{type:"submit",variant:"primary-outline",onClick:B},{left:a(d=>[t(n,{class:j(d.class),name:"PlusIcon"},null,8,["class"])]),default:a(()=>[b(" "+w(e.$t("settings.payment_modes.add_payment_mode")),1)]),_:1})]),default:a(()=>[t(r,{ref:(d,k)=>{k.table=d,o.value=d},data:g,columns:M(f),class:"mt-16"},{"cell-actions":a(({row:d})=>[t(O,{row:d.data,table:o.value,"load-data":_},null,8,["row","table"])]),_:1},8,["columns"])]),_:1},8,["title","description"])],64)}}};export{U as default};
|
||||
1
public/build/assets/PhoneType.f1778217.js
Normal file
@ -0,0 +1 @@
|
||||
import{k as p,r,o as m,s as d,y as c,a0 as V}from"./vendor.e9042f2c.js";const i={props:{modelValue:{type:[String,Number],default:null}},emits:["update:modelValue"],setup(o,{emit:a}){const u=o,e=p({get:()=>u.modelValue,set:t=>{a("update:modelValue",t)}});return(t,l)=>{const s=r("BaseInput");return m(),d(s,{modelValue:c(e),"onUpdate:modelValue":l[0]||(l[0]=n=>V(e)?e.value=n:null),type:"tel"},null,8,["modelValue"])}}};export{i as default};
|
||||
1
public/build/assets/PreferencesSetting.801cc3dc.js
Normal file
1
public/build/assets/RecurringInvoiceCreate.da3ce5e0.js
Normal file
@ -0,0 +1 @@
|
||||
import{g as N,u as E,C as k,am as C,r as c,o as n,s as a,w as o,y as t,b as s,v as p,x as v,A as I}from"./vendor.e9042f2c.js";import{B as b,u as x,i as S,d as V,e as _}from"./main.d8ec3f25.js";const O={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:()=>{}}},setup(d){const g=b(),y=x(),R=S(),m=V(),{t:r}=N(),w=E();k(),C("utils");async function B(i=null){R.openDialog({title:r("general.are_you_sure"),message:r("invoices.confirm_delete"),yesLabel:r("general.ok"),noLabel:r("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async l=>{l&&await g.deleteMultipleRecurringInvoices(i).then(e=>{e.data.success?(g.$patch(u=>{u.selectedRecurringInvoices=[],u.selectAllField=!1}),y.showNotification({type:"success",message:r("recurring_invoices.deleted_message",2)})):e.data.error&&y.showNotification({type:"error",message:e.data.message})})})}return(i,l)=>{const e=c("BaseIcon"),u=c("BaseButton"),f=c("BaseDropdownItem"),h=c("router-link"),D=c("BaseDropdown");return n(),a(D,{"content-loading":t(g).isFetchingViewData},{activator:o(()=>[t(w).name==="recurring-invoices.view"?(n(),a(u,{key:0,variant:"primary"},{default:o(()=>[s(e,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(n(),a(e,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:o(()=>[t(m).hasAbilities(t(_).EDIT_RECURRING_INVOICE)?(n(),a(h,{key:0,to:`/admin/recurring-invoices/${d.row.id}/edit`},{default:o(()=>[s(f,null,{default:o(()=>[s(e,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),p(" "+v(i.$t("general.edit")),1)]),_:1})]),_:1},8,["to"])):I("",!0),t(w).name!=="recurring-invoices.view"&&t(m).hasAbilities(t(_).VIEW_RECURRING_INVOICE)?(n(),a(h,{key:1,to:`recurring-invoices/${d.row.id}/view`},{default:o(()=>[s(f,null,{default:o(()=>[s(e,{name:"EyeIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),p(" "+v(i.$t("general.view")),1)]),_:1})]),_:1},8,["to"])):I("",!0),t(m).hasAbilities(t(_).DELETE_RECURRING_INVOICE)?(n(),a(f,{key:2,onClick:l[0]||(l[0]=$=>B(d.row.id))},{default:o(()=>[s(e,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),p(" "+v(i.$t("general.delete")),1)]),_:1})):I("",!0)]),_:1},8,["content-loading"])}}};export{O as _};
|
||||
1
public/build/assets/ResetPassword.b9c54d98.js
Normal file
@ -0,0 +1 @@
|
||||
import{g as q,u as I,C as h,j as S,i as k,k as d,n as w,a2 as L,p as C,aQ as N,q as P,r as f,o as j,c as A,b as n,w as m,y as r,v as E,x as U,B as x,a as D}from"./vendor.e9042f2c.js";import{u as G,h as R}from"./main.d8ec3f25.js";const F=["onSubmit"],z={setup(M){const v=G(),{t}=q(),c=I(),$=h(),o=S({email:"",password:"",password_confirmation:""}),u=k(!1),_=d(()=>({email:{required:w,email:L},password:{required:w,minLength:C(8)},password_confirmation:{sameAsPassword:N(o.password)}})),a=P(_,o),g=d(()=>a.value.email.$error?a.value.email.required.$invalid?t("validation.required"):a.value.email.email?t("validation.email_incorrect"):!1:""),b=d(()=>a.value.password.$error?a.value.password.required.$invalid?t("validation.required"):a.value.password.minLength?t("validation.password_min_length",{count:a.value.password.minLength.$params.min}):!1:""),y=d(()=>a.value.password_confirmation.$error?a.value.password_confirmation.sameAsPassword.$invalid?t("validation.password_incorrect"):!1:"");async function V(i){if(a.value.$touch(),!a.value.$invalid)try{let e={email:o.email,password:o.password,password_confirmation:o.password_confirmation,token:c.params.token};u.value=!0;let l=await D.post("/api/v1/auth/reset/password",e);u.value=!1,l.data&&(v.showNotification({type:"success",message:t("login.password_reset_successfully")}),$.push("/login"))}catch(e){R(e),u.value=!1,e.response&&e.response.status===403}}return(i,e)=>{const l=f("BaseInput"),p=f("BaseInputGroup"),B=f("BaseButton");return j(),A("form",{id:"loginForm",onSubmit:x(V,["prevent"])},[n(p,{error:r(g),label:i.$t("login.email"),class:"mb-4",required:""},{default:m(()=>[n(l,{modelValue:r(o).email,"onUpdate:modelValue":e[0]||(e[0]=s=>r(o).email=s),invalid:r(a).email.$error,focus:"",type:"email",name:"email",onInput:e[1]||(e[1]=s=>r(a).email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),n(p,{error:r(b),label:i.$t("login.password"),class:"mb-4",required:""},{default:m(()=>[n(l,{modelValue:r(o).password,"onUpdate:modelValue":e[2]||(e[2]=s=>r(o).password=s),invalid:r(a).password.$error,type:"password",name:"password",onInput:e[3]||(e[3]=s=>r(a).password.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),n(p,{error:r(y),label:i.$t("login.retype_password"),class:"mb-4",required:""},{default:m(()=>[n(l,{modelValue:r(o).password_confirmation,"onUpdate:modelValue":e[4]||(e[4]=s=>r(o).password_confirmation=s),invalid:r(a).password_confirmation.$error,type:"password",name:"password",onInput:e[5]||(e[5]=s=>r(a).password_confirmation.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),n(B,{loading:u.value,type:"submit",variant:"primary"},{default:m(()=>[E(U(i.$t("login.reset_password")),1)]),_:1},8,["loading"])],40,F)}}};export{z as default};
|
||||
1
public/build/assets/RolesSettings.388a3e79.js
Normal file
1
public/build/assets/SelectNotePopup.995cdd69.js
Normal file
@ -0,0 +1 @@
|
||||
var E=Object.defineProperty;var h=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var g=(s,t,e)=>t in s?E(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,x=(s,t)=>{for(var e in t||(t={}))P.call(t,e)&&g(s,e,t[e]);if(h)for(var e of h(t))T.call(t,e)&&g(s,e,t[e]);return s};import{i as k,g as F,k as L,r as w,o as l,c as i,b as r,t as n,w as p,y as o,s as O,v as D,x as m,z as U,a6 as G,A as N,T as H,a7 as W,F as C,H as q,a8 as J}from"./vendor.e9042f2c.js";import{g as K,r as Q,d as R,e as B}from"./main.d8ec3f25.js";import{_ as X}from"./NoteModal.13ab9bc5.js";const Y={class:"w-full"},Z={class:"overflow-hidden rounded-md shadow-lg ring-1 ring-black ring-opacity-5"},ee={class:"relative grid bg-white"},te={class:"relative p-4"},se={key:0,class:"relative flex flex-col overflow-auto list max-h-36"},oe=["onClick"],ae={class:"flex justify-between px-2"},ne={class:"m-0 text-base font-semibold leading-tight text-gray-700 cursor-pointer"},le={key:1,class:"flex justify-center p-5 text-gray-400"},re={class:"text-base text-gray-500"},ie={class:"m-0 ml-3 text-sm leading-none cursor-pointer font-base text-primary-400"},fe={props:{type:{type:String,default:null}},emits:["select"],setup(s,{emit:t}){const e=s;k(null);const{t:I}=F(),c=k(null),S=K(),d=Q(),y=R(),_=L(()=>c.value?d.notes.filter(function(a){return a.name.toLowerCase().indexOf(c.value.toLowerCase())!==-1}):d.notes);async function V(){await d.fetchNotes({filter:{},orderByField:"",orderBy:"",type:e.type?e.type:""})}function z(a,u){t("select",x({},d.notes[a])),c.value=null,u()}function j(){S.openModal({title:I("settings.customization.notes.add_note"),componentName:"NoteModal",size:"lg",data:e.type})}return(a,u)=>{const v=w("BaseIcon"),M=w("BaseInput");return l(),i(C,null,[r(X),n("div",Y,[r(o(J),null,{default:p(({isOpen:$})=>[o(y).hasAbilities(o(B).VIEW_NOTE)?(l(),O(o(G),{key:0,class:U([$?"":"text-opacity-90","flex items-center z-10 font-medium text-primary-400 focus:outline-none focus:border-none"]),onClick:V},{default:p(()=>[r(v,{name:"PlusIcon",class:"w-4 h-4 font-medium text-primary-400"}),D(" "+m(a.$t("general.insert_note")),1)]),_:2},1032,["class"])):N("",!0),r(H,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"translate-y-1 opacity-0","enter-to-class":"translate-y-0 opacity-100","leave-active-class":"transition duration-150 ease-in","leave-from-class":"translate-y-0 opacity-100","leave-to-class":"translate-y-1 opacity-0"},{default:p(()=>[r(o(W),{class:"absolute z-20 px-4 mt-3 transform sm:px-0 w-screen max-w-full left-0 top-3"},{default:p(({close:A})=>[n("div",Z,[n("div",ee,[n("div",te,[r(M,{modelValue:c.value,"onUpdate:modelValue":u[0]||(u[0]=f=>c.value=f),placeholder:a.$t("general.search"),type:"text",class:"text-black"},null,8,["modelValue","placeholder"])]),o(_).length>0?(l(),i("div",se,[(l(!0),i(C,null,q(o(_),(f,b)=>(l(),i("div",{key:b,tabindex:"2",class:"px-6 py-4 border-b border-gray-200 border-solid cursor-pointer hover:bg-gray-100 hover:cursor-pointer last:border-b-0",onClick:ce=>z(b,A)},[n("div",ae,[n("label",ne,m(f.name),1)])],8,oe))),128))])):(l(),i("div",le,[n("label",re,m(a.$t("general.no_note_found")),1)]))]),o(y).hasAbilities(o(B).MANAGE_NOTE)?(l(),i("button",{key:0,type:"button",class:"h-10 flex items-center justify-center w-full px-2 py-3 bg-gray-200 border-none outline-none",onClick:j},[r(v,{name:"CheckCircleIcon",class:"text-primary-400"}),n("label",ie,m(a.$t("settings.customization.notes.add_new_note")),1)])):N("",!0)])]),_:1})]),_:1})]),_:1})])],64)}}};export{fe as _};
|
||||
1
public/build/assets/SendEstimateModal.1c55fd89.js
Normal file
@ -0,0 +1 @@
|
||||
import{g as O,i as h,j as T,k as C,m as p,n as B,a2 as x,q as X,r as d,o as _,s as V,w as l,t as v,v as f,x as $,y as e,b as a,c as E,A as N}from"./vendor.e9042f2c.js";import{g as H,j as J,u as K,c as Q,v as W}from"./main.d8ec3f25.js";const Y={class:"flex justify-between w-full"},Z={key:0,action:""},ee={class:"px-8 py-8 sm:p-6"},te={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},ae={key:1},oe={class:"my-6 mx-4 border border-gray-200 relative"},se=f(" Edit "),re=["src"],le={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},de={setup(ne){const m=H(),M=J(),U=K(),k=Q();W();const{t:u}=O(),n=h(!1),I=h(""),b=h(!1),P=h(["customer","customerCustom","estimate","estimateCustom","company"]);let o=T({id:null,from:null,to:null,subject:"New Estimate",body:null});const D=C(()=>m.active&&m.componentName==="SendEstimateModal"),q=C(()=>m.data),G={from:{required:p.withMessage(u("validation.required"),B),email:p.withMessage(u("validation.email_incorrect"),x)},to:{required:p.withMessage(u("validation.required"),B),email:p.withMessage(u("validation.email_incorrect"),x)},subject:{required:p.withMessage(u("validation.required"),B)},body:{required:p.withMessage(u("validation.required"),B)}},s=X(G,C(()=>o));function A(){b.value=!1}async function F(){let r=await k.fetchBasicMailConfig();o.id=m.id,r.data&&(o.from=r.data.from_mail),q.value&&(o.to=q.value.customer.email),o.body=k.selectedCompanySettings.estimate_mail_body}async function S(){if(s.value.$touch(),s.value.$invalid)return!0;try{if(n.value=!0,!b.value){const c=await M.previewEstimate(o);n.value=!1,b.value=!0;var r=new Blob([c.data],{type:"text/html"});I.value=URL.createObjectURL(r);return}const t=await M.sendEstimate(o);if(n.value=!1,t.data.success)return y(),!0}catch(t){console.error(t),n.value=!1,U.showNotification({type:"error",message:u("estimates.something_went_wrong")})}}function y(){m.closeModal(),setTimeout(()=>{s.value.$reset(),b.value=!1,I.value=null},300)}return(r,t)=>{const c=d("BaseIcon"),j=d("BaseInput"),w=d("BaseInputGroup"),L=d("BaseCustomInput"),R=d("BaseInputGrid"),g=d("BaseButton"),z=d("BaseModal");return _(),V(z,{show:e(D),onClose:y,onOpen:F},{header:l(()=>[v("div",Y,[f($(e(m).title)+" ",1),a(c,{name:"XIcon",class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:y})])]),default:l(()=>[b.value?(_(),E("div",ae,[v("div",oe,[a(g,{class:"absolute top-4 right-4",disabled:n.value,variant:"primary-outline",onClick:A},{default:l(()=>[a(c,{name:"PencilIcon",class:"h-5 mr-2"}),se]),_:1},8,["disabled"]),v("iframe",{src:I.value,frameborder:"0",class:"w-full",style:{"min-height":"500px"}},null,8,re)]),v("div",le,[a(g,{class:"mr-3",variant:"primary-outline",type:"button",onClick:y},{default:l(()=>[f($(r.$t("general.cancel")),1)]),_:1}),a(g,{loading:n.value,disabled:n.value,variant:"primary",type:"button",onClick:S},{default:l(()=>[n.value?N("",!0):(_(),V(c,{key:0,name:"PaperAirplaneIcon",class:"mr-2"})),f(" "+$(r.$t("general.send")),1)]),_:1},8,["loading","disabled"])])])):(_(),E("form",Z,[v("div",ee,[a(R,{layout:"one-column"},{default:l(()=>[a(w,{label:r.$t("general.from"),required:"",error:e(s).from.$error&&e(s).from.$errors[0].$message},{default:l(()=>[a(j,{modelValue:e(o).from,"onUpdate:modelValue":t[0]||(t[0]=i=>e(o).from=i),type:"text",invalid:e(s).from.$error,onInput:t[1]||(t[1]=i=>e(s).from.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),a(w,{label:r.$t("general.to"),required:"",error:e(s).to.$error&&e(s).to.$errors[0].$message},{default:l(()=>[a(j,{modelValue:e(o).to,"onUpdate:modelValue":t[2]||(t[2]=i=>e(o).to=i),type:"text",invalid:e(s).to.$error,onInput:t[3]||(t[3]=i=>e(s).to.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),a(w,{label:r.$t("general.subject"),required:"",error:e(s).subject.$error&&e(s).subject.$errors[0].$message},{default:l(()=>[a(j,{modelValue:e(o).subject,"onUpdate:modelValue":t[4]||(t[4]=i=>e(o).subject=i),type:"text",invalid:e(s).subject.$error,onInput:t[5]||(t[5]=i=>e(s).subject.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),a(w,{label:r.$t("general.body"),required:""},{default:l(()=>[a(L,{modelValue:e(o).body,"onUpdate:modelValue":t[6]||(t[6]=i=>e(o).body=i),fields:P.value},null,8,["modelValue","fields"])]),_:1},8,["label"])]),_:1})]),v("div",te,[a(g,{class:"mr-3",variant:"primary-outline",type:"button",onClick:y},{default:l(()=>[f($(r.$t("general.cancel")),1)]),_:1}),a(g,{loading:n.value,disabled:n.value,variant:"primary",type:"button",class:"mr-3",onClick:S},{default:l(()=>[n.value?N("",!0):(_(),V(c,{key:0,name:"PhotographIcon",class:"h-5 mr-2"})),f(" "+$(r.$t("general.preview")),1)]),_:1},8,["loading","disabled"])])]))]),_:1},8,["show"])}}};export{de as _};
|
||||
1
public/build/assets/SendInvoiceModal.a2b1bc3f.js
Normal file
@ -0,0 +1 @@
|
||||
import{g as O,c as X,u as H,f as J,v as K}from"./main.d8ec3f25.js";import{g as Q,i as I,j as W,k as B,m as v,n as h,a2 as x,q as Y,r as d,o as _,s as j,w as l,t as p,v as f,x as $,y as e,b as a,c as N,z as Z,A as U}from"./vendor.e9042f2c.js";const ee={class:"flex justify-between w-full"},oe={key:0,action:""},te={class:"px-8 py-8 sm:p-6"},ae={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},re={key:1},se={class:"my-6 mx-4 border border-gray-200 relative"},ne=f(" Edit "),le=["src"],ie={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},me={setup(ue){const c=O(),M=X(),P=H(),k=J();K();const{t:u}=Q();let i=I(!1);const C=I(""),b=I(!1),z=I(["customer","customerCustom","invoice","invoiceCustom","company"]),r=W({id:null,from:null,to:null,subject:"New Invoice",body:null}),D=B(()=>c.active&&c.componentName==="SendInvoiceModal"),G=B(()=>c.title),q=B(()=>c.data),A={from:{required:v.withMessage(u("validation.required"),h),email:v.withMessage(u("validation.email_incorrect"),x)},to:{required:v.withMessage(u("validation.required"),h),email:v.withMessage(u("validation.email_incorrect"),x)},subject:{required:v.withMessage(u("validation.required"),h)},body:{required:v.withMessage(u("validation.required"),h)}},t=Y(A,B(()=>r));function F(){b.value=!1}async function L(){let s=await M.fetchBasicMailConfig();r.id=c.id,s.data&&(r.from=s.data.from_mail),q.value&&(r.to=q.value.customer.email),r.body=M.selectedCompanySettings.invoice_mail_body}async function S(){if(t.value.$touch(),t.value.$invalid)return!0;try{if(i.value=!0,!b.value){const m=await k.previewInvoice(r);i.value=!1,b.value=!0;var s=new Blob([m.data],{type:"text/html"});C.value=URL.createObjectURL(s);return}if((await k.sendInvoice(r)).data.success)return y(),!0}catch(o){console.error(o),i.value=!1,P.showNotification({type:"error",message:u("invoices.something_went_wrong")})}}function y(){c.closeModal(),setTimeout(()=>{t.value.$reset(),b.value=!1,C.value=null},300)}return(s,o)=>{const m=d("BaseIcon"),V=d("BaseInput"),w=d("BaseInputGroup"),R=d("BaseCustomInput"),T=d("BaseInputGrid"),g=d("BaseButton"),E=d("BaseModal");return _(),j(E,{show:e(D),onClose:y,onOpen:L},{header:l(()=>[p("div",ee,[f($(e(G))+" ",1),a(m,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:y})])]),default:l(()=>[b.value?(_(),N("div",re,[p("div",se,[a(g,{class:"absolute top-4 right-4",disabled:e(i),variant:"primary-outline",onClick:F},{default:l(()=>[a(m,{name:"PencilIcon",class:"h-5 mr-2"}),ne]),_:1},8,["disabled"]),p("iframe",{src:C.value,frameborder:"0",class:"w-full",style:{"min-height":"500px"}},null,8,le)]),p("div",ie,[a(g,{class:"mr-3",variant:"primary-outline",type:"button",onClick:y},{default:l(()=>[f($(s.$t("general.cancel")),1)]),_:1}),a(g,{loading:e(i),disabled:e(i),variant:"primary",type:"button",onClick:o[7]||(o[7]=n=>S())},{default:l(()=>[e(i)?U("",!0):(_(),j(m,{key:0,name:"PaperAirplaneIcon",class:"h-5 mr-2"})),f(" "+$(s.$t("general.send")),1)]),_:1},8,["loading","disabled"])])])):(_(),N("form",oe,[p("div",te,[a(T,{layout:"one-column",class:"col-span-7"},{default:l(()=>[a(w,{label:s.$t("general.from"),required:"",error:e(t).from.$error&&e(t).from.$errors[0].$message},{default:l(()=>[a(V,{modelValue:e(r).from,"onUpdate:modelValue":o[0]||(o[0]=n=>e(r).from=n),type:"text",invalid:e(t).from.$error,onInput:o[1]||(o[1]=n=>e(t).from.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),a(w,{label:s.$t("general.to"),required:"",error:e(t).to.$error&&e(t).to.$errors[0].$message},{default:l(()=>[a(V,{modelValue:e(r).to,"onUpdate:modelValue":o[2]||(o[2]=n=>e(r).to=n),type:"text",invalid:e(t).to.$error,onInput:o[3]||(o[3]=n=>e(t).to.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),a(w,{error:e(t).subject.$error&&e(t).subject.$errors[0].$message,label:s.$t("general.subject"),required:""},{default:l(()=>[a(V,{modelValue:e(r).subject,"onUpdate:modelValue":o[4]||(o[4]=n=>e(r).subject=n),type:"text",invalid:e(t).subject.$error,onInput:o[5]||(o[5]=n=>e(t).subject.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),a(w,{label:s.$t("general.body"),error:e(t).body.$error&&e(t).body.$errors[0].$message,required:""},{default:l(()=>[a(R,{modelValue:e(r).body,"onUpdate:modelValue":o[6]||(o[6]=n=>e(r).body=n),fields:z.value},null,8,["modelValue","fields"])]),_:1},8,["label","error"])]),_:1})]),p("div",ae,[a(g,{class:"mr-3",variant:"primary-outline",type:"button",onClick:y},{default:l(()=>[f($(s.$t("general.cancel")),1)]),_:1}),a(g,{loading:e(i),disabled:e(i),variant:"primary",type:"button",class:"mr-3",onClick:S},{left:l(n=>[e(i)?U("",!0):(_(),j(m,{key:0,class:Z(n.class),name:"PhotographIcon"},null,8,["class"]))]),default:l(()=>[f(" "+$(s.$t("general.preview")),1)]),_:1},8,["loading","disabled"])])]))]),_:1},8,["show"])}}};export{me as _};
|
||||
1
public/build/assets/SendPaymentModal.886cb222.js
Normal file
1
public/build/assets/SettingsIndex.779523d3.js
Normal file
@ -0,0 +1 @@
|
||||
import{o as i,c as f,W as b,k as g,r as n,s as B,w as c,A as M,t as d,x as P,$ as R,g as j,i as N,u as H,C as q,ac as A,b as a,y as h,a0 as E,H as F,F as O}from"./vendor.e9042f2c.js";import{_ as k,m as U}from"./main.d8ec3f25.js";const D={name:"List"},G={class:"list-none"};function T(o,u,t,s,l,p){return i(),f("div",G,[b(o.$slots,"default")])}var W=k(D,[["render",T]]);const z={name:"ListItem",props:{title:{type:String,required:!1,default:""},active:{type:Boolean,required:!0},index:{type:Number,default:null}},setup(o,{slots:u}){const t="cursor-pointer pb-2 pr-0 text-sm font-medium leading-5 flex items-center";let s=g(()=>!!u.icon),l=g(()=>o.active?`${t} text-primary-500`:`${t} text-gray-500`);return{hasIconSlot:s,containerClass:l}}},J={key:0,class:"mr-3"};function K(o,u,t,s,l,p){const m=n("router-link");return i(),B(m,R(o.$attrs,{class:s.containerClass}),{default:c(()=>[s.hasIconSlot?(i(),f("span",J,[b(o.$slots,"icon")])):M("",!0),d("span",null,P(t.title),1)]),_:3},16,["class"])}var Q=k(z,[["render",K]]);const X={class:"w-full mb-6 select-wrapper xl:hidden"},Y={class:"flex"},Z={class:"hidden mt-1 xl:block min-w-[240px]"},ee={class:"w-full overflow-hidden"},ne={setup(o){const{t:u}=j();let t=N({});const s=U(),l=H(),p=q(),m=g(()=>s.settingMenu.map(e=>Object.assign({},e,{title:u(e.title)})));A(()=>{l.path==="/admin/settings"&&p.push("/admin/settings/account-settings");const e=m.value.find(_=>_.link===l.path);t.value=e});function w(e){return l.path.indexOf(e)>-1}function x(e){return p.push(e.link)}return(e,_)=>{const v=n("BaseBreadcrumbItem"),y=n("BaseBreadcrumb"),S=n("BasePageHeader"),V=n("BaseMultiselect"),C=n("BaseIcon"),I=n("RouterView"),L=n("BasePage");return i(),B(L,null,{default:c(()=>[a(S,{title:e.$tc("settings.setting",1),class:"mb-6"},{default:c(()=>[a(y,null,{default:c(()=>[a(v,{title:e.$t("general.home"),to:"/admin/dashboard"},null,8,["title"]),a(v,{title:e.$tc("settings.setting",2),to:"/admin/settings/account-settings",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),d("div",X,[a(V,{modelValue:h(t),"onUpdate:modelValue":[_[0]||(_[0]=r=>E(t)?t.value=r:t=r),x],options:h(m),"can-deselect":!1,"value-prop":"title","track-by":"title",label:"title",object:""},null,8,["modelValue","options"])]),d("div",Y,[d("div",Z,[a(W,null,{default:c(()=>[(i(!0),f(O,null,F(h(s).settingMenu,(r,$)=>(i(),B(Q,{key:$,title:e.$t(r.title),to:r.link,active:w(r.link),index:$,class:"py-3"},{icon:c(()=>[a(C,{name:r.icon},null,8,["name"])]),_:2},1032,["title","to","active","index"]))),128))]),_:1})]),d("div",ee,[a(I)])])]),_:1})}}};export{ne as default};
|
||||
1
public/build/assets/SwitchType.56df61e7.js
Normal file
@ -0,0 +1 @@
|
||||
import{k as p,r,o as m,s as d,y as c,a0 as i}from"./vendor.e9042f2c.js";const f={props:{modelValue:{type:[String,Number,Boolean],default:null}},emits:["update:modelValue"],setup(t,{emit:a}){const n=t,e=p({get:()=>n.modelValue===1,set:l=>{a("update:modelValue",l?1:0)}});return(l,o)=>{const s=r("BaseSwitch");return m(),d(s,{modelValue:c(e),"onUpdate:modelValue":o[0]||(o[0]=u=>i(e)?e.value=u:null)},null,8,["modelValue"])}}};export{f as default};
|
||||
1
public/build/assets/TaxTypeModal.8742b38a.js
Normal file
@ -0,0 +1 @@
|
||||
import{g as k,i as z,k as $,m as c,n as b,p as N,aZ as j,a4 as D,q as G,r as i,o as g,s as B,w as l,t as y,v as x,x as v,y as e,b as o,z as L,A as U,B as E}from"./vendor.e9042f2c.js";import{q as A,g as X,u as Z,j as F}from"./main.d8ec3f25.js";const H={class:"flex justify-between w-full"},J=["onSubmit"],K={class:"p-4 sm:p-6"},O={class:"z-0 flex justify-end p-4 border-t border-solid border--200 border-modal-bg"},Y={setup(P){const a=A(),u=X();Z(),F();const{t:p,tm:Q}=k();let d=z(!1);const h=$(()=>({currentTaxType:{name:{required:c.withMessage(p("validation.required"),b),minLength:c.withMessage(p("validation.name_min_length",{count:3}),N(3))},percent:{required:c.withMessage(p("validation.required"),b),between:c.withMessage(p("validation.enter_valid_tax_rate"),j(0,100))},description:{maxLength:c.withMessage(p("validation.description_maxlength",{count:255}),D(255))}}})),r=G(h,$(()=>a));async function w(){if(r.value.currentTaxType.$touch(),r.value.currentTaxType.$invalid)return!0;try{const s=a.isEdit?a.updateTaxType:a.addTaxType;d.value=!0;let t=await s(a.currentTaxType);d.value=!1,u.refreshData&&u.refreshData(t.data.data),m()}catch{return d.value=!1,!0}}function m(){u.closeModal(),setTimeout(()=>{a.resetCurrentTaxType(),r.value.$reset()},300)}return(s,t)=>{const f=i("BaseIcon"),V=i("BaseInput"),T=i("BaseInputGroup"),I=i("BaseMoney"),M=i("BaseTextarea"),S=i("BaseSwitch"),q=i("BaseInputGrid"),_=i("BaseButton"),C=i("BaseModal");return g(),B(C,{show:e(u).active&&e(u).componentName==="TaxTypeModal",onClose:m},{header:l(()=>[y("div",H,[x(v(e(u).title)+" ",1),o(f,{name:"XIcon",class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:m})])]),default:l(()=>[y("form",{action:"",onSubmit:E(w,["prevent"])},[y("div",K,[o(q,{layout:"one-column"},{default:l(()=>[o(T,{label:s.$t("tax_types.name"),variant:"horizontal",error:e(r).currentTaxType.name.$error&&e(r).currentTaxType.name.$errors[0].$message,required:""},{default:l(()=>[o(V,{modelValue:e(a).currentTaxType.name,"onUpdate:modelValue":t[0]||(t[0]=n=>e(a).currentTaxType.name=n),invalid:e(r).currentTaxType.name.$error,type:"text",onInput:t[1]||(t[1]=n=>e(r).currentTaxType.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),o(T,{label:s.$t("tax_types.percent"),variant:"horizontal",error:e(r).currentTaxType.percent.$error&&e(r).currentTaxType.percent.$errors[0].$message,required:""},{default:l(()=>[o(I,{modelValue:e(a).currentTaxType.percent,"onUpdate:modelValue":t[2]||(t[2]=n=>e(a).currentTaxType.percent=n),currency:{decimal:".",thousands:",",symbol:"% ",precision:2,masked:!1},invalid:e(r).currentTaxType.percent.$error,class:"relative w-full focus:border focus:border-solid focus:border-primary",onInput:t[3]||(t[3]=n=>e(r).currentTaxType.percent.$touch())},null,8,["modelValue","currency","invalid"])]),_:1},8,["label","error"]),o(T,{label:s.$t("tax_types.description"),error:e(r).currentTaxType.description.$error&&e(r).currentTaxType.description.$errors[0].$message,variant:"horizontal"},{default:l(()=>[o(M,{modelValue:e(a).currentTaxType.description,"onUpdate:modelValue":t[4]||(t[4]=n=>e(a).currentTaxType.description=n),invalid:e(r).currentTaxType.description.$error,rows:"4",cols:"50",onInput:t[5]||(t[5]=n=>e(r).currentTaxType.description.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),o(T,{label:s.$t("tax_types.compound_tax"),variant:"horizontal",class:"flex flex-row-reverse"},{default:l(()=>[o(S,{modelValue:e(a).currentTaxType.compound_tax,"onUpdate:modelValue":t[6]||(t[6]=n=>e(a).currentTaxType.compound_tax=n),class:"flex items-center"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),y("div",O,[o(_,{class:"mr-3 text-sm",variant:"primary-outline",type:"button",onClick:m},{default:l(()=>[x(v(s.$t("general.cancel")),1)]),_:1}),o(_,{loading:e(d),disabled:e(d),variant:"primary",type:"submit"},{left:l(n=>[e(d)?U("",!0):(g(),B(f,{key:0,name:"SaveIcon",class:L(n.class)},null,8,["class"]))]),default:l(()=>[x(" "+v(e(a).isEdit?s.$t("general.update"):s.$t("general.save")),1)]),_:1},8,["loading","disabled"])])],40,J)]),_:1},8,["show"])}}};export{Y as _};
|
||||
1
public/build/assets/TaxTypesSetting.f192cb93.js
Normal file
@ -0,0 +1 @@
|
||||
import{i as R,u as U,q as A,d as N,g as P,e as x,c as H}from"./main.d8ec3f25.js";import{g as $,u as q,am as Y,r as n,o as m,s as g,w as t,y as s,b as l,v as T,x as B,A as I,i as z,k as M,a5 as j,z as G,c as J,a0 as K}from"./vendor.e9042f2c.js";import{_ as Q}from"./TaxTypeModal.8742b38a.js";const W={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:null}},setup(S){const o=S,b=R();U();const{t:i}=$(),h=A(),C=q(),_=N(),c=P();Y("utils");async function v(r){await h.fetchTaxType(r),c.openModal({title:i("settings.tax_types.edit_tax"),componentName:"TaxTypeModal",size:"sm",refreshData:o.loadData&&o.loadData})}function w(r){b.openDialog({title:i("general.are_you_sure"),message:i("settings.tax_types.confirm_delete"),yesLabel:i("general.ok"),noLabel:i("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async d=>{if(d){if((await h.deleteTaxType(r)).data.success)return o.loadData&&o.loadData(),!0;o.loadData&&o.loadData()}})}return(r,d)=>{const p=n("BaseIcon"),E=n("BaseButton"),D=n("BaseDropdownItem"),a=n("BaseDropdown");return m(),g(a,null,{activator:t(()=>[s(C).name==="tax-types.view"?(m(),g(E,{key:0,variant:"primary"},{default:t(()=>[l(p,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(m(),g(p,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:t(()=>[s(_).hasAbilities(s(x).EDIT_TAX_TYPE)?(m(),g(D,{key:0,onClick:d[0]||(d[0]=u=>v(S.row.id))},{default:t(()=>[l(p,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),T(" "+B(r.$t("general.edit")),1)]),_:1})):I("",!0),s(_).hasAbilities(s(x).DELETE_TAX_TYPE)?(m(),g(D,{key:1,onClick:d[1]||(d[1]=u=>w(S.row.id))},{default:t(()=>[l(p,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),T(" "+B(r.$t("general.delete")),1)]),_:1})):I("",!0)]),_:1})}}},Z={key:0},se={setup(S){const{t:o}=$(),b=Y("utils"),i=H(),h=A(),C=P(),_=N(),c=z(null),v=z(i.selectedCompanySettings.tax_per_item),w=M(()=>[{key:"name",label:o("settings.tax_types.tax_name"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"compound_tax",label:o("settings.tax_types.compound_tax"),tdClass:"font-medium text-gray-900"},{key:"percent",label:o("settings.tax_types.percent"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"actions",label:"",tdClass:"text-right text-sm font-medium",sortable:!1}]),r=M({get:()=>v.value==="YES",set:async a=>{const u=a?"YES":"NO";let y={settings:{tax_per_item:u}};v.value=u,await i.updateCompanySettings({data:y,message:"general.setting_updated"})}});function d(){return _.hasAbilities([x.DELETE_TAX_TYPE,x.EDIT_TAX_TYPE])}async function p({page:a,filter:u,sort:y}){let k={orderByField:y.fieldName||"created_at",orderBy:y.order||"desc",page:a},f=await h.fetchTaxTypes(k);return{data:f.data.data,pagination:{totalPages:f.data.meta.last_page,currentPage:a,totalCount:f.data.meta.total,limit:5}}}async function E(){c.value&&c.value.refresh()}function D(){C.openModal({title:o("settings.tax_types.add_tax"),componentName:"TaxTypeModal",size:"sm",refreshData:c.value&&c.value.refresh})}return(a,u)=>{const y=n("BaseIcon"),k=n("BaseButton"),f=n("BaseBadge"),O=n("BaseTable"),V=n("BaseDivider"),X=n("BaseSwitchSection"),L=n("BaseSettingCard");return m(),g(L,{title:a.$t("settings.tax_types.title"),description:a.$t("settings.tax_types.description")},j({default:t(()=>[l(Q),l(O,{ref:(e,F)=>{F.table=e,c.value=e},class:"mt-16",data:p,columns:s(w)},j({"cell-compound_tax":t(({row:e})=>[l(f,{"bg-color":s(b).getBadgeStatusColor(e.data.compound_tax?"YES":"NO").bgColor,color:s(b).getBadgeStatusColor(e.data.compound_tax?"YES":"NO").color},{default:t(()=>[T(B(e.data.compound_tax?"Yes":"No".replace("_"," ")),1)]),_:2},1032,["bg-color","color"])]),"cell-percent":t(({row:e})=>[T(B(e.data.percent)+" % ",1)]),_:2},[d()?{name:"cell-actions",fn:t(({row:e})=>[l(W,{row:e.data,table:c.value,"load-data":E},null,8,["row","table"])])}:void 0]),1032,["columns"]),s(_).currentUser.is_owner?(m(),J("div",Z,[l(V,{class:"mt-8 mb-2"}),l(X,{modelValue:s(r),"onUpdate:modelValue":u[0]||(u[0]=e=>K(r)?r.value=e:null),title:a.$t("settings.tax_types.tax_per_item"),description:a.$t("settings.tax_types.tax_setting_description")},null,8,["modelValue","title","description"])])):I("",!0)]),_:2},[s(_).hasAbilities(s(x).CREATE_TAX_TYPE)?{name:"action",fn:t(()=>[l(k,{type:"submit",variant:"primary-outline",onClick:D},{left:t(e=>[l(y,{class:G(e.class),name:"PlusIcon"},null,8,["class"])]),default:t(()=>[T(" "+B(a.$t("settings.tax_types.add_new_tax")),1)]),_:1})])}:void 0]),1032,["title","description"])}}};export{se as default};
|
||||
1
public/build/assets/TextAreaType.a1bccab5.js
Normal file
@ -0,0 +1 @@
|
||||
import{k as r,r as m,o as d,s as p,y as i,a0 as c}from"./vendor.e9042f2c.js";const V={props:{modelValue:{type:String,default:null},rows:{type:String,default:"2"},inputName:{type:String,default:"description"}},emits:["update:modelValue"],setup(e,{emit:l}){const n=e,t=r({get:()=>n.modelValue,set:a=>{l("update:modelValue",a)}});return(a,o)=>{const s=m("BaseTextarea");return d(),p(s,{modelValue:i(t),"onUpdate:modelValue":o[0]||(o[0]=u=>c(t)?t.value=u:null),rows:e.rows,name:e.inputName},null,8,["modelValue","rows","name"])}}};export{V as default};
|
||||
1
public/build/assets/TimeType.82e5beb3.js
Normal file
@ -0,0 +1 @@
|
||||
import{h as r,k as m,r as d,o as p,s as c,y as i,a0 as f}from"./vendor.e9042f2c.js";const k={props:{modelValue:{type:[String,Date,Object],default:r().format("YYYY-MM-DD")}},emits:["update:modelValue"],setup(t,{emit:s}){const l=t,e=m({get:()=>l.modelValue,set:o=>{s("update:modelValue",o)}});return(o,a)=>{const u=d("BaseTimePicker");return p(),c(u,{modelValue:i(e),"onUpdate:modelValue":a[0]||(a[0]=n=>f(e)?e.value=n:null)},null,8,["modelValue"])}}};export{k as default};
|
||||
1
public/build/assets/UpdateAppSetting.399d3f8e.js
Normal file
1
public/build/assets/UpdateAppSetting.7d8b987a.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.update-description ul{list-style:disc!important}.update-description li{margin-bottom:4px}
|
||||
1
public/build/assets/UrlType.803fb838.js
Normal file
@ -0,0 +1 @@
|
||||
import{k as p,r,o as d,s as m,y as c,a0 as V}from"./vendor.e9042f2c.js";const i={props:{modelValue:{type:String,default:null}},emits:["update:modelValue"],setup(t,{emit:a}){const u=t,e=p({get:()=>u.modelValue,set:l=>{a("update:modelValue",l)}});return(l,o)=>{const s=r("BaseInput");return d(),m(s,{modelValue:c(e),"onUpdate:modelValue":o[0]||(o[0]=n=>V(e)?e.value=n:null),type:"url"},null,8,["modelValue"])}}};export{i as default};
|
||||