@dejwcake/craftable 2.1.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +303 -262
- package/package.json +1 -1
- package/src/components/BackButton.vue +17 -0
- package/src/components/listing/ShowButton.vue +17 -0
- package/src/composables/useResponsiveColumns.js +50 -2
- package/src/index.js +2 -0
package/dist/index.mjs
CHANGED
|
@@ -915,7 +915,10 @@ function ft(e, t = {}) {
|
|
|
915
915
|
function s(e) {
|
|
916
916
|
return e <= r.value;
|
|
917
917
|
}
|
|
918
|
-
return {
|
|
918
|
+
return {
|
|
919
|
+
isColumnWithinPriority: s,
|
|
920
|
+
isColumnVisible: s
|
|
921
|
+
};
|
|
919
922
|
}
|
|
920
923
|
//#endregion
|
|
921
924
|
//#region src/components/form/MediaUpload.vue
|
|
@@ -2293,6 +2296,26 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2293
2296
|
], 64));
|
|
2294
2297
|
}
|
|
2295
2298
|
}, hr = ["href", "title"], gr = {
|
|
2299
|
+
__name: "ShowButton",
|
|
2300
|
+
props: {
|
|
2301
|
+
url: {
|
|
2302
|
+
type: String,
|
|
2303
|
+
required: !0
|
|
2304
|
+
},
|
|
2305
|
+
translations: {
|
|
2306
|
+
type: Object,
|
|
2307
|
+
default: () => ({ show_btn: "Show" })
|
|
2308
|
+
}
|
|
2309
|
+
},
|
|
2310
|
+
setup(e) {
|
|
2311
|
+
return (t, n) => (S(), l("a", {
|
|
2312
|
+
class: "btn btn-sm btn-spinner btn-info",
|
|
2313
|
+
href: e.url,
|
|
2314
|
+
title: e.translations.show_btn,
|
|
2315
|
+
role: "button"
|
|
2316
|
+
}, [...n[0] ||= [u("i", { class: "fa fa-eye" }, null, -1)]], 8, hr));
|
|
2317
|
+
}
|
|
2318
|
+
}, _r = ["href", "title"], vr = {
|
|
2296
2319
|
__name: "EditButton",
|
|
2297
2320
|
props: {
|
|
2298
2321
|
url: {
|
|
@@ -2310,9 +2333,9 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2310
2333
|
href: e.url,
|
|
2311
2334
|
title: e.translations.edit_btn,
|
|
2312
2335
|
role: "button"
|
|
2313
|
-
}, [...n[0] ||= [u("i", { class: "fa fa-edit" }, null, -1)]], 8,
|
|
2336
|
+
}, [...n[0] ||= [u("i", { class: "fa fa-edit" }, null, -1)]], 8, _r));
|
|
2314
2337
|
}
|
|
2315
|
-
},
|
|
2338
|
+
}, yr = ["title"], br = {
|
|
2316
2339
|
__name: "DeleteButton",
|
|
2317
2340
|
props: {
|
|
2318
2341
|
url: {
|
|
@@ -2345,14 +2368,32 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2345
2368
|
class: "btn btn-sm btn-danger",
|
|
2346
2369
|
title: e.translations.delete_btn,
|
|
2347
2370
|
onClick: n[0] ||= (e) => o.value = !0
|
|
2348
|
-
}, [...n[2] ||= [u("i", { class: "fa fa-trash" }, null, -1)]], 8,
|
|
2371
|
+
}, [...n[2] ||= [u("i", { class: "fa fa-trash" }, null, -1)]], 8, yr), f(Zn, {
|
|
2349
2372
|
show: o.value,
|
|
2350
2373
|
translations: e.translations,
|
|
2351
2374
|
onConfirm: s,
|
|
2352
2375
|
onCancel: n[1] ||= (e) => o.value = !1
|
|
2353
2376
|
}, null, 8, ["show", "translations"])], 64));
|
|
2354
2377
|
}
|
|
2355
|
-
},
|
|
2378
|
+
}, xr = ["href"], Sr = {
|
|
2379
|
+
__name: "BackButton",
|
|
2380
|
+
props: {
|
|
2381
|
+
url: {
|
|
2382
|
+
type: String,
|
|
2383
|
+
required: !0
|
|
2384
|
+
},
|
|
2385
|
+
translations: {
|
|
2386
|
+
type: Object,
|
|
2387
|
+
default: () => ({ back: "Back" })
|
|
2388
|
+
}
|
|
2389
|
+
},
|
|
2390
|
+
setup(e) {
|
|
2391
|
+
return (t, n) => (S(), l("a", {
|
|
2392
|
+
class: "btn btn-sm btn-outline-secondary",
|
|
2393
|
+
href: e.url
|
|
2394
|
+
}, [n[0] ||= u("i", { class: "fa fa-arrow-left" }, null, -1), d(" " + D(e.translations.back), 1)], 8, xr));
|
|
2395
|
+
}
|
|
2396
|
+
}, Cr = { class: "form-check form-switch form-switch-inline" }, wr = ["checked"], Tr = {
|
|
2356
2397
|
__name: "ToggleSwitch",
|
|
2357
2398
|
props: {
|
|
2358
2399
|
modelValue: {
|
|
@@ -2396,15 +2437,15 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2396
2437
|
i("update:modelValue", r.modelValue), G(e.response?.data?.message);
|
|
2397
2438
|
});
|
|
2398
2439
|
}
|
|
2399
|
-
return (t, n) => (S(), l("div",
|
|
2440
|
+
return (t, n) => (S(), l("div", Cr, [u("input", {
|
|
2400
2441
|
class: _(["form-check-input", a.value]),
|
|
2401
2442
|
type: "checkbox",
|
|
2402
2443
|
role: "switch",
|
|
2403
2444
|
checked: !!e.modelValue,
|
|
2404
2445
|
onChange: s
|
|
2405
|
-
}, null, 42,
|
|
2446
|
+
}, null, 42, wr)]));
|
|
2406
2447
|
}
|
|
2407
|
-
},
|
|
2448
|
+
}, Er = { class: "form-check form-switch form-switch-inline" }, Dr = ["checked"], Or = {
|
|
2408
2449
|
__name: "ReadOnlySwitch",
|
|
2409
2450
|
props: {
|
|
2410
2451
|
modelValue: {
|
|
@@ -2422,15 +2463,15 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2422
2463
|
},
|
|
2423
2464
|
setup(e) {
|
|
2424
2465
|
let t = e, n = o(() => `form-switch-${t.variant}`);
|
|
2425
|
-
return (t, r) => (S(), l("div",
|
|
2466
|
+
return (t, r) => (S(), l("div", Er, [u("input", {
|
|
2426
2467
|
class: _(["form-check-input", n.value]),
|
|
2427
2468
|
type: "checkbox",
|
|
2428
2469
|
role: "switch",
|
|
2429
2470
|
checked: !!e.modelValue,
|
|
2430
2471
|
disabled: ""
|
|
2431
|
-
}, null, 10,
|
|
2472
|
+
}, null, 10, Dr)]));
|
|
2432
2473
|
}
|
|
2433
|
-
},
|
|
2474
|
+
}, kr = { class: "mb-3 row align-items-center" }, Ar = { class: "col-md-3 col-form-label text-md-end" }, jr = { class: "col-md-9 col-xl-8" }, Mr = {
|
|
2434
2475
|
__name: "ShowRow",
|
|
2435
2476
|
props: {
|
|
2436
2477
|
label: {
|
|
@@ -2447,18 +2488,18 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2447
2488
|
}
|
|
2448
2489
|
},
|
|
2449
2490
|
setup(e) {
|
|
2450
|
-
return (t, n) => (S(), l("div",
|
|
2491
|
+
return (t, n) => (S(), l("div", kr, [u("label", Ar, D(e.label), 1), u("div", jr, [E(t.$slots, "default", {}, () => [u("span", null, D(e.value), 1)])])]));
|
|
2451
2492
|
}
|
|
2452
|
-
},
|
|
2493
|
+
}, Nr = { class: "mb-3 row align-items-center" }, Pr = ["for"], Fr = { class: "col-md-9 col-xl-8" }, Ir = [
|
|
2453
2494
|
"id",
|
|
2454
2495
|
"type",
|
|
2455
2496
|
"value",
|
|
2456
2497
|
"name",
|
|
2457
2498
|
"placeholder"
|
|
2458
|
-
],
|
|
2499
|
+
], Lr = {
|
|
2459
2500
|
key: 0,
|
|
2460
2501
|
class: "invalid-feedback form-text"
|
|
2461
|
-
},
|
|
2502
|
+
}, Rr = {
|
|
2462
2503
|
__name: "FormInput",
|
|
2463
2504
|
props: {
|
|
2464
2505
|
modelValue: {
|
|
@@ -2488,10 +2529,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2488
2529
|
},
|
|
2489
2530
|
emits: ["update:modelValue"],
|
|
2490
2531
|
setup(e) {
|
|
2491
|
-
return (t, n) => (S(), l("div",
|
|
2532
|
+
return (t, n) => (S(), l("div", Nr, [u("label", {
|
|
2492
2533
|
for: e.name,
|
|
2493
2534
|
class: "col-md-3 col-form-label text-md-end"
|
|
2494
|
-
}, D(e.label), 9,
|
|
2535
|
+
}, D(e.label), 9, Pr), u("div", Fr, [u("input", {
|
|
2495
2536
|
id: e.name,
|
|
2496
2537
|
type: e.type,
|
|
2497
2538
|
value: e.modelValue,
|
|
@@ -2499,9 +2540,9 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2499
2540
|
name: e.name,
|
|
2500
2541
|
placeholder: e.placeholder || e.label,
|
|
2501
2542
|
onInput: n[0] ||= (e) => t.$emit("update:modelValue", e.target.value)
|
|
2502
|
-
}, null, 42,
|
|
2543
|
+
}, null, 42, Ir), e.error ? (S(), l("div", Lr, D(e.error), 1)) : c("", !0)])]));
|
|
2503
2544
|
}
|
|
2504
|
-
},
|
|
2545
|
+
}, zr = {
|
|
2505
2546
|
__name: "FormEmail",
|
|
2506
2547
|
props: {
|
|
2507
2548
|
modelValue: {
|
|
@@ -2527,21 +2568,21 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2527
2568
|
},
|
|
2528
2569
|
emits: ["update:modelValue"],
|
|
2529
2570
|
setup(e) {
|
|
2530
|
-
return (e, t) => (S(), s(
|
|
2571
|
+
return (e, t) => (S(), s(Rr, g(e.$props, {
|
|
2531
2572
|
type: "email",
|
|
2532
2573
|
"onUpdate:modelValue": t[0] ||= (t) => e.$emit("update:modelValue", t)
|
|
2533
2574
|
}), null, 16));
|
|
2534
2575
|
}
|
|
2535
|
-
},
|
|
2576
|
+
}, Br = { class: "mb-3 row align-items-center" }, Vr = ["for"], Hr = { class: "col-md-9 col-xl-8" }, Ur = [
|
|
2536
2577
|
"id",
|
|
2537
2578
|
"value",
|
|
2538
2579
|
"name",
|
|
2539
2580
|
"placeholder",
|
|
2540
2581
|
"rows"
|
|
2541
|
-
],
|
|
2582
|
+
], Wr = {
|
|
2542
2583
|
key: 0,
|
|
2543
2584
|
class: "invalid-feedback form-text"
|
|
2544
|
-
},
|
|
2585
|
+
}, Gr = {
|
|
2545
2586
|
__name: "FormTextarea",
|
|
2546
2587
|
props: {
|
|
2547
2588
|
modelValue: {
|
|
@@ -2571,10 +2612,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2571
2612
|
},
|
|
2572
2613
|
emits: ["update:modelValue"],
|
|
2573
2614
|
setup(e) {
|
|
2574
|
-
return (t, n) => (S(), l("div",
|
|
2615
|
+
return (t, n) => (S(), l("div", Br, [u("label", {
|
|
2575
2616
|
for: e.name,
|
|
2576
2617
|
class: "col-md-3 col-form-label text-md-end"
|
|
2577
|
-
}, D(e.label), 9,
|
|
2618
|
+
}, D(e.label), 9, Vr), u("div", Hr, [u("textarea", {
|
|
2578
2619
|
id: e.name,
|
|
2579
2620
|
value: e.modelValue,
|
|
2580
2621
|
class: _(["form-control", { "is-invalid": e.error }]),
|
|
@@ -2582,16 +2623,16 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2582
2623
|
placeholder: e.placeholder || e.label,
|
|
2583
2624
|
rows: e.rows,
|
|
2584
2625
|
onInput: n[0] ||= (e) => t.$emit("update:modelValue", e.target.value)
|
|
2585
|
-
}, null, 42,
|
|
2626
|
+
}, null, 42, Ur), e.error ? (S(), l("div", Wr, D(e.error), 1)) : c("", !0)])]));
|
|
2586
2627
|
}
|
|
2587
|
-
},
|
|
2628
|
+
}, Kr = { class: "mb-3 row align-items-center" }, qr = { class: "col-md-9 col-xl-8 offset-md-3" }, Jr = { class: "form-check" }, Yr = [
|
|
2588
2629
|
"id",
|
|
2589
2630
|
"checked",
|
|
2590
2631
|
"name"
|
|
2591
|
-
],
|
|
2632
|
+
], Xr = ["for"], Zr = {
|
|
2592
2633
|
key: 0,
|
|
2593
2634
|
class: "invalid-feedback d-block form-text"
|
|
2594
|
-
},
|
|
2635
|
+
}, Qr = {
|
|
2595
2636
|
__name: "FormCheckbox",
|
|
2596
2637
|
props: {
|
|
2597
2638
|
modelValue: {
|
|
@@ -2613,26 +2654,26 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2613
2654
|
},
|
|
2614
2655
|
emits: ["update:modelValue"],
|
|
2615
2656
|
setup(e) {
|
|
2616
|
-
return (t, n) => (S(), l("div",
|
|
2657
|
+
return (t, n) => (S(), l("div", Kr, [u("div", qr, [u("div", Jr, [u("input", {
|
|
2617
2658
|
id: e.name,
|
|
2618
2659
|
class: "form-check-input",
|
|
2619
2660
|
type: "checkbox",
|
|
2620
2661
|
checked: e.modelValue,
|
|
2621
2662
|
name: e.name,
|
|
2622
2663
|
onChange: n[0] ||= (e) => t.$emit("update:modelValue", e.target.checked)
|
|
2623
|
-
}, null, 40,
|
|
2664
|
+
}, null, 40, Yr), u("label", {
|
|
2624
2665
|
class: "form-check-label",
|
|
2625
2666
|
for: e.name
|
|
2626
|
-
}, D(e.label), 9,
|
|
2667
|
+
}, D(e.label), 9, Xr)]), e.error ? (S(), l("div", Zr, D(e.error), 1)) : c("", !0)])]));
|
|
2627
2668
|
}
|
|
2628
2669
|
}, $ = (e, t) => {
|
|
2629
2670
|
let n = e.__vccOpts || e;
|
|
2630
2671
|
for (let [e, r] of t) n[e] = r;
|
|
2631
2672
|
return n;
|
|
2632
|
-
},
|
|
2673
|
+
}, $r = { class: "mb-3 row align-items-center" }, ei = ["for"], ti = { class: "col-md-9 col-xl-8" }, ni = { class: "input-group flex-nowrap" }, ri = { class: "input-group-text" }, ii = {
|
|
2633
2674
|
key: 0,
|
|
2634
2675
|
class: "invalid-feedback d-block form-text"
|
|
2635
|
-
},
|
|
2676
|
+
}, ai = /*#__PURE__*/ $({
|
|
2636
2677
|
__name: "FormDatePicker",
|
|
2637
2678
|
props: {
|
|
2638
2679
|
modelValue: {
|
|
@@ -2670,10 +2711,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2670
2711
|
},
|
|
2671
2712
|
emits: ["update:modelValue"],
|
|
2672
2713
|
setup(e) {
|
|
2673
|
-
return (t, n) => (S(), l("div",
|
|
2714
|
+
return (t, n) => (S(), l("div", $r, [u("label", {
|
|
2674
2715
|
for: e.name,
|
|
2675
2716
|
class: "col-md-3 col-form-label text-md-end"
|
|
2676
|
-
}, D(e.label), 9,
|
|
2717
|
+
}, D(e.label), 9, ei), u("div", ti, [u("div", ni, [u("span", ri, [u("i", { class: _(["fa", e.icon]) }, null, 2)]), f(k(Ke), g(e.config, {
|
|
2677
2718
|
id: e.name,
|
|
2678
2719
|
"model-value": e.modelValue,
|
|
2679
2720
|
class: ["datepicker-input", { "is-invalid": e.error }],
|
|
@@ -2700,12 +2741,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2700
2741
|
"time-config",
|
|
2701
2742
|
"formats",
|
|
2702
2743
|
"locale"
|
|
2703
|
-
])]), e.error ? (S(), l("div",
|
|
2744
|
+
])]), e.error ? (S(), l("div", ii, D(e.error), 1)) : c("", !0)])]));
|
|
2704
2745
|
}
|
|
2705
|
-
}, [["__scopeId", "data-v-2e6d6ada"]]),
|
|
2746
|
+
}, [["__scopeId", "data-v-2e6d6ada"]]), oi = { class: "mb-3 row align-items-center" }, si = ["for"], ci = { class: "col-md-9 col-xl-8" }, li = {
|
|
2706
2747
|
key: 0,
|
|
2707
2748
|
class: "invalid-feedback d-block form-text"
|
|
2708
|
-
},
|
|
2749
|
+
}, ui = {
|
|
2709
2750
|
__name: "FormWysiwyg",
|
|
2710
2751
|
props: {
|
|
2711
2752
|
modelValue: {
|
|
@@ -2735,10 +2776,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2735
2776
|
},
|
|
2736
2777
|
emits: ["update:modelValue"],
|
|
2737
2778
|
setup(e) {
|
|
2738
|
-
return (t, n) => (S(), l("div",
|
|
2779
|
+
return (t, n) => (S(), l("div", oi, [u("label", {
|
|
2739
2780
|
for: e.name,
|
|
2740
2781
|
class: "col-md-3 col-form-label text-md-end"
|
|
2741
|
-
}, D(e.label), 9,
|
|
2782
|
+
}, D(e.label), 9, si), u("div", ci, [f(Kt, g({
|
|
2742
2783
|
id: e.name,
|
|
2743
2784
|
"model-value": e.modelValue,
|
|
2744
2785
|
name: e.name,
|
|
@@ -2748,12 +2789,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2748
2789
|
"model-value",
|
|
2749
2790
|
"name",
|
|
2750
2791
|
"upload-url"
|
|
2751
|
-
]), e.error ? (S(), l("div",
|
|
2792
|
+
]), e.error ? (S(), l("div", li, D(e.error), 1)) : c("", !0)])]));
|
|
2752
2793
|
}
|
|
2753
|
-
},
|
|
2794
|
+
}, di = { class: "mb-3 row align-items-center" }, fi = ["for"], pi = { class: "col-md-9 col-xl-8" }, mi = {
|
|
2754
2795
|
key: 0,
|
|
2755
2796
|
class: "invalid-feedback d-block form-text"
|
|
2756
|
-
},
|
|
2797
|
+
}, hi = {
|
|
2757
2798
|
__name: "FormMultiSelect",
|
|
2758
2799
|
props: {
|
|
2759
2800
|
modelValue: {
|
|
@@ -2791,10 +2832,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2791
2832
|
},
|
|
2792
2833
|
emits: ["update:modelValue"],
|
|
2793
2834
|
setup(e) {
|
|
2794
|
-
return (t, n) => (S(), l("div",
|
|
2835
|
+
return (t, n) => (S(), l("div", di, [u("label", {
|
|
2795
2836
|
for: e.name,
|
|
2796
2837
|
class: "col-md-3 col-form-label text-md-end"
|
|
2797
|
-
}, D(e.label), 9,
|
|
2838
|
+
}, D(e.label), 9, fi), u("div", pi, [f(k(U), {
|
|
2798
2839
|
"model-value": e.modelValue,
|
|
2799
2840
|
class: _({ "is-invalid": e.error }),
|
|
2800
2841
|
placeholder: e.placeholder,
|
|
@@ -2811,12 +2852,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2811
2852
|
"options",
|
|
2812
2853
|
"label",
|
|
2813
2854
|
"track-by"
|
|
2814
|
-
]), e.error ? (S(), l("div",
|
|
2855
|
+
]), e.error ? (S(), l("div", mi, D(e.error), 1)) : c("", !0)])]));
|
|
2815
2856
|
}
|
|
2816
|
-
},
|
|
2857
|
+
}, gi = { class: "mb-3 row align-items-center" }, _i = ["for"], vi = { class: "col-md-9 col-xl-8" }, yi = {
|
|
2817
2858
|
key: 0,
|
|
2818
2859
|
class: "invalid-feedback d-block form-text"
|
|
2819
|
-
},
|
|
2860
|
+
}, bi = {
|
|
2820
2861
|
__name: "FormTagInput",
|
|
2821
2862
|
props: {
|
|
2822
2863
|
modelValue: {
|
|
@@ -2846,10 +2887,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2846
2887
|
},
|
|
2847
2888
|
emits: ["update:modelValue"],
|
|
2848
2889
|
setup(e) {
|
|
2849
|
-
return (t, n) => (S(), l("div",
|
|
2890
|
+
return (t, n) => (S(), l("div", gi, [u("label", {
|
|
2850
2891
|
for: e.name,
|
|
2851
2892
|
class: "col-md-3 col-form-label text-md-end"
|
|
2852
|
-
}, D(e.label), 9,
|
|
2893
|
+
}, D(e.label), 9, _i), u("div", vi, [f(k(U), {
|
|
2853
2894
|
"model-value": e.modelValue,
|
|
2854
2895
|
class: _({ "is-invalid": e.error }),
|
|
2855
2896
|
placeholder: e.placeholder,
|
|
@@ -2867,18 +2908,18 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2867
2908
|
"placeholder",
|
|
2868
2909
|
"options",
|
|
2869
2910
|
"tag-placeholder"
|
|
2870
|
-
]), e.error ? (S(), l("div",
|
|
2911
|
+
]), e.error ? (S(), l("div", yi, D(e.error), 1)) : c("", !0)])]));
|
|
2871
2912
|
}
|
|
2872
|
-
},
|
|
2913
|
+
}, xi = { class: "mb-3 row align-items-center" }, Si = ["for"], Ci = { class: "col-md-9 col-xl-8" }, wi = [
|
|
2873
2914
|
"id",
|
|
2874
2915
|
"value",
|
|
2875
2916
|
"name",
|
|
2876
2917
|
"placeholder",
|
|
2877
2918
|
"onInput"
|
|
2878
|
-
],
|
|
2919
|
+
], Ti = {
|
|
2879
2920
|
key: 0,
|
|
2880
2921
|
class: "invalid-feedback d-block form-text"
|
|
2881
|
-
},
|
|
2922
|
+
}, Ei = {
|
|
2882
2923
|
__name: "FormLocalizedInput",
|
|
2883
2924
|
props: {
|
|
2884
2925
|
modelValue: {
|
|
@@ -2919,10 +2960,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2919
2960
|
[e]: t
|
|
2920
2961
|
});
|
|
2921
2962
|
}
|
|
2922
|
-
return (t, n) => (S(), l("div",
|
|
2963
|
+
return (t, n) => (S(), l("div", xi, [u("label", {
|
|
2923
2964
|
for: e.name + "_" + e.locales[0],
|
|
2924
2965
|
class: "col-md-3 col-form-label text-md-end"
|
|
2925
|
-
}, D(e.label), 9,
|
|
2966
|
+
}, D(e.label), 9, Si), u("div", Ci, [u("div", { class: _({ "d-flex gap-2": e.isFormLocalized }) }, [(S(!0), l(i, null, T(e.locales, (t) => I((S(), l("div", {
|
|
2926
2967
|
key: t,
|
|
2927
2968
|
class: _({ "flex-fill": e.isFormLocalized })
|
|
2928
2969
|
}, [u("input", {
|
|
@@ -2933,12 +2974,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2933
2974
|
name: e.name + "_" + t,
|
|
2934
2975
|
placeholder: e.isFormLocalized ? t.toUpperCase() : e.label,
|
|
2935
2976
|
onInput: (e) => a(t, e.target.value)
|
|
2936
|
-
}, null, 42,
|
|
2977
|
+
}, null, 42, wi), e.errors[e.name + "_" + t] ? (S(), l("div", Ti, D(e.errors[e.name + "_" + t]), 1)) : c("", !0)], 2)), [[N, e.shouldShowLangGroup(t)]])), 128))], 2)])]));
|
|
2937
2978
|
}
|
|
2938
|
-
},
|
|
2979
|
+
}, Di = { class: "mb-3 row align-items-center" }, Oi = ["for"], ki = { class: "col-md-9 col-xl-8" }, Ai = {
|
|
2939
2980
|
key: 0,
|
|
2940
2981
|
class: "invalid-feedback d-block form-text"
|
|
2941
|
-
},
|
|
2982
|
+
}, ji = /*#__PURE__*/ $({
|
|
2942
2983
|
__name: "FormLocalizedWysiwyg",
|
|
2943
2984
|
props: {
|
|
2944
2985
|
modelValue: {
|
|
@@ -2987,10 +3028,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2987
3028
|
[e]: t
|
|
2988
3029
|
});
|
|
2989
3030
|
}
|
|
2990
|
-
return (t, n) => (S(), l("div",
|
|
3031
|
+
return (t, n) => (S(), l("div", Di, [u("label", {
|
|
2991
3032
|
for: e.name + "_" + e.locales[0],
|
|
2992
3033
|
class: "col-md-3 col-form-label text-md-end"
|
|
2993
|
-
}, D(e.label), 9,
|
|
3034
|
+
}, D(e.label), 9, Oi), u("div", ki, [u("div", { class: _({ "d-flex gap-2": e.isFormLocalized }) }, [(S(!0), l(i, null, T(e.locales, (t) => I((S(), l("div", {
|
|
2994
3035
|
key: t,
|
|
2995
3036
|
class: _({ "flex-fill localized-editor": e.isFormLocalized })
|
|
2996
3037
|
}, [f(Kt, g({
|
|
@@ -3004,12 +3045,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3004
3045
|
"name",
|
|
3005
3046
|
"upload-url",
|
|
3006
3047
|
"onUpdate:modelValue"
|
|
3007
|
-
]), e.errors[e.name + "_" + t] ? (S(), l("div",
|
|
3048
|
+
]), e.errors[e.name + "_" + t] ? (S(), l("div", Ai, D(e.errors[e.name + "_" + t]), 1)) : c("", !0)], 2)), [[N, e.shouldShowLangGroup(t)]])), 128))], 2)])]));
|
|
3008
3049
|
}
|
|
3009
|
-
}, [["__scopeId", "data-v-608701dd"]]),
|
|
3050
|
+
}, [["__scopeId", "data-v-608701dd"]]), Mi = { class: "mb-3 row align-items-center" }, Ni = ["for"], Pi = { class: "col-md-9 col-xl-8" }, Fi = {
|
|
3010
3051
|
key: 0,
|
|
3011
3052
|
class: "invalid-feedback d-block form-text"
|
|
3012
|
-
},
|
|
3053
|
+
}, Ii = {
|
|
3013
3054
|
__name: "FormWysiwygSimple",
|
|
3014
3055
|
props: {
|
|
3015
3056
|
modelValue: {
|
|
@@ -3039,10 +3080,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3039
3080
|
},
|
|
3040
3081
|
emits: ["update:modelValue"],
|
|
3041
3082
|
setup(e) {
|
|
3042
|
-
return (t, n) => (S(), l("div",
|
|
3083
|
+
return (t, n) => (S(), l("div", Mi, [u("label", {
|
|
3043
3084
|
for: e.name,
|
|
3044
3085
|
class: "col-md-3 col-form-label text-md-end"
|
|
3045
|
-
}, D(e.label), 9,
|
|
3086
|
+
}, D(e.label), 9, Ni), u("div", Pi, [f(Ht, g({
|
|
3046
3087
|
id: e.name,
|
|
3047
3088
|
"model-value": e.modelValue,
|
|
3048
3089
|
name: e.name,
|
|
@@ -3052,12 +3093,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3052
3093
|
"model-value",
|
|
3053
3094
|
"name",
|
|
3054
3095
|
"upload-url"
|
|
3055
|
-
]), e.error ? (S(), l("div",
|
|
3096
|
+
]), e.error ? (S(), l("div", Fi, D(e.error), 1)) : c("", !0)])]));
|
|
3056
3097
|
}
|
|
3057
|
-
},
|
|
3098
|
+
}, Li = { class: "mb-3 row align-items-center" }, Ri = ["for"], zi = { class: "col-md-9 col-xl-8" }, Bi = {
|
|
3058
3099
|
key: 0,
|
|
3059
3100
|
class: "invalid-feedback d-block form-text"
|
|
3060
|
-
},
|
|
3101
|
+
}, Vi = /*#__PURE__*/ $({
|
|
3061
3102
|
__name: "FormLocalizedWysiwygSimple",
|
|
3062
3103
|
props: {
|
|
3063
3104
|
modelValue: {
|
|
@@ -3106,10 +3147,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3106
3147
|
[e]: t
|
|
3107
3148
|
});
|
|
3108
3149
|
}
|
|
3109
|
-
return (t, n) => (S(), l("div",
|
|
3150
|
+
return (t, n) => (S(), l("div", Li, [u("label", {
|
|
3110
3151
|
for: e.name + "_" + e.locales[0],
|
|
3111
3152
|
class: "col-md-3 col-form-label text-md-end"
|
|
3112
|
-
}, D(e.label), 9,
|
|
3153
|
+
}, D(e.label), 9, Ri), u("div", zi, [u("div", { class: _({ "d-flex gap-2": e.isFormLocalized }) }, [(S(!0), l(i, null, T(e.locales, (t) => I((S(), l("div", {
|
|
3113
3154
|
key: t,
|
|
3114
3155
|
class: _({ "flex-fill localized-editor": e.isFormLocalized })
|
|
3115
3156
|
}, [f(Ht, g({
|
|
@@ -3123,12 +3164,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3123
3164
|
"name",
|
|
3124
3165
|
"upload-url",
|
|
3125
3166
|
"onUpdate:modelValue"
|
|
3126
|
-
]), e.errors[e.name + "_" + t] ? (S(), l("div",
|
|
3167
|
+
]), e.errors[e.name + "_" + t] ? (S(), l("div", Bi, D(e.errors[e.name + "_" + t]), 1)) : c("", !0)], 2)), [[N, e.shouldShowLangGroup(t)]])), 128))], 2)])]));
|
|
3127
3168
|
}
|
|
3128
|
-
}, [["__scopeId", "data-v-bf19587d"]]),
|
|
3169
|
+
}, [["__scopeId", "data-v-bf19587d"]]), Hi = { class: "mb-3 row align-items-center" }, Ui = ["for"], Wi = { class: "col-md-9 col-xl-8" }, Gi = {
|
|
3129
3170
|
key: 0,
|
|
3130
3171
|
class: "invalid-feedback d-block form-text"
|
|
3131
|
-
},
|
|
3172
|
+
}, Ki = {
|
|
3132
3173
|
__name: "FormSelect",
|
|
3133
3174
|
props: {
|
|
3134
3175
|
modelValue: {
|
|
@@ -3171,10 +3212,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3171
3212
|
},
|
|
3172
3213
|
emits: ["update:modelValue"],
|
|
3173
3214
|
setup(e) {
|
|
3174
|
-
return (t, n) => (S(), l("div",
|
|
3215
|
+
return (t, n) => (S(), l("div", Hi, [u("label", {
|
|
3175
3216
|
for: e.name,
|
|
3176
3217
|
class: "col-md-3 col-form-label text-md-end"
|
|
3177
|
-
}, D(e.label), 9,
|
|
3218
|
+
}, D(e.label), 9, Ui), u("div", Wi, [f(k(U), {
|
|
3178
3219
|
"model-value": e.modelValue,
|
|
3179
3220
|
class: _({ "is-invalid": e.error }),
|
|
3180
3221
|
placeholder: e.placeholder,
|
|
@@ -3190,21 +3231,21 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3190
3231
|
"options",
|
|
3191
3232
|
"label",
|
|
3192
3233
|
"track-by"
|
|
3193
|
-
]), e.error ? (S(), l("div",
|
|
3234
|
+
]), e.error ? (S(), l("div", Gi, D(e.error), 1)) : c("", !0)])]));
|
|
3194
3235
|
}
|
|
3195
|
-
},
|
|
3236
|
+
}, qi = { class: "mb-3 row align-items-center" }, Ji = {
|
|
3196
3237
|
for: "password",
|
|
3197
3238
|
class: "col-md-3 col-form-label text-md-end"
|
|
3198
|
-
},
|
|
3239
|
+
}, Yi = { class: "col-md-9 col-xl-8" }, Xi = ["value", "placeholder"], Zi = {
|
|
3199
3240
|
key: 0,
|
|
3200
3241
|
class: "invalid-feedback form-text"
|
|
3201
|
-
},
|
|
3242
|
+
}, Qi = { class: "mb-3 row align-items-center" }, $i = {
|
|
3202
3243
|
for: "password_confirmation",
|
|
3203
3244
|
class: "col-md-3 col-form-label text-md-end"
|
|
3204
|
-
},
|
|
3245
|
+
}, ea = { class: "col-md-9 col-xl-8" }, ta = ["value", "placeholder"], na = {
|
|
3205
3246
|
key: 0,
|
|
3206
3247
|
class: "invalid-feedback form-text"
|
|
3207
|
-
},
|
|
3248
|
+
}, ra = {
|
|
3208
3249
|
__name: "FormPasswordConfirm",
|
|
3209
3250
|
props: {
|
|
3210
3251
|
password: {
|
|
@@ -3230,7 +3271,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3230
3271
|
},
|
|
3231
3272
|
emits: ["update:password", "update:passwordConfirmation"],
|
|
3232
3273
|
setup(e) {
|
|
3233
|
-
return (t, n) => (S(), l(i, null, [u("div",
|
|
3274
|
+
return (t, n) => (S(), l(i, null, [u("div", qi, [u("label", Ji, D(e.translations.password), 1), u("div", Yi, [u("input", {
|
|
3234
3275
|
id: "password",
|
|
3235
3276
|
type: "password",
|
|
3236
3277
|
value: e.password,
|
|
@@ -3238,7 +3279,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3238
3279
|
name: "password",
|
|
3239
3280
|
placeholder: e.translations.password,
|
|
3240
3281
|
onInput: n[0] ||= (e) => t.$emit("update:password", e.target.value)
|
|
3241
|
-
}, null, 42,
|
|
3282
|
+
}, null, 42, Xi), e.passwordError ? (S(), l("div", Zi, D(e.passwordError), 1)) : c("", !0)])]), u("div", Qi, [u("label", $i, D(e.translations.password_repeat), 1), u("div", ea, [u("input", {
|
|
3242
3283
|
id: "password_confirmation",
|
|
3243
3284
|
type: "password",
|
|
3244
3285
|
value: e.passwordConfirmation,
|
|
@@ -3246,9 +3287,9 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3246
3287
|
name: "password_confirmation",
|
|
3247
3288
|
placeholder: e.translations.password,
|
|
3248
3289
|
onInput: n[1] ||= (e) => t.$emit("update:passwordConfirmation", e.target.value)
|
|
3249
|
-
}, null, 42,
|
|
3290
|
+
}, null, 42, ta), e.confirmationError ? (S(), l("div", na, D(e.confirmationError), 1)) : c("", !0)])])], 64));
|
|
3250
3291
|
}
|
|
3251
|
-
},
|
|
3292
|
+
}, ia = ["disabled"], aa = {
|
|
3252
3293
|
__name: "FormSubmit",
|
|
3253
3294
|
props: {
|
|
3254
3295
|
submitting: {
|
|
@@ -3265,24 +3306,24 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3265
3306
|
type: "submit",
|
|
3266
3307
|
class: "btn btn-primary submit-btn",
|
|
3267
3308
|
disabled: e.submitting
|
|
3268
|
-
}, [u("i", { class: _(["fa", e.submitting ? "fa-spinner" : "fa-download"]) }, null, 2), d(" " + D(e.label), 1)], 8,
|
|
3309
|
+
}, [u("i", { class: _(["fa", e.submitting ? "fa-spinner" : "fa-download"]) }, null, 2), d(" " + D(e.label), 1)], 8, ia));
|
|
3269
3310
|
}
|
|
3270
|
-
},
|
|
3311
|
+
}, oa = {
|
|
3271
3312
|
key: 0,
|
|
3272
3313
|
class: "row mb-2 localization-bar"
|
|
3273
|
-
},
|
|
3314
|
+
}, sa = { key: 0 }, ca = { key: 0 }, la = {
|
|
3274
3315
|
key: 1,
|
|
3275
3316
|
class: "localization-error"
|
|
3276
|
-
},
|
|
3317
|
+
}, ua = {
|
|
3277
3318
|
key: 2,
|
|
3278
3319
|
class: "d-flex align-items-center gap-2"
|
|
3279
|
-
},
|
|
3320
|
+
}, da = { class: "text-nowrap" }, fa = {
|
|
3280
3321
|
key: 0,
|
|
3281
3322
|
class: "localization-error"
|
|
3282
|
-
},
|
|
3323
|
+
}, pa = {
|
|
3283
3324
|
key: 0,
|
|
3284
3325
|
class: "localization-error"
|
|
3285
|
-
},
|
|
3326
|
+
}, ma = /*#__PURE__*/ $({
|
|
3286
3327
|
__name: "LocalizationBar",
|
|
3287
3328
|
props: {
|
|
3288
3329
|
translations: {
|
|
@@ -3325,19 +3366,19 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3325
3366
|
],
|
|
3326
3367
|
setup(e) {
|
|
3327
3368
|
let t = e, n = o(() => t.translations.currently_editing_translation ? t.translations.currently_editing_translation.replace(":locale", t.defaultLocale.toUpperCase()) : ""), r = o(() => t.translations.more_can_be_managed ? t.translations.more_can_be_managed.replace(":count", String(t.otherLocales.length)) : ""), i = o(() => t.onSmallScreen ? [t.defaultLocale, ...t.otherLocales] : [...t.otherLocales]);
|
|
3328
|
-
return (t, a) => e.locales.length > 0 ? (S(), l("div",
|
|
3329
|
-
e.isFormLocalized ? c("", !0) : (S(), l("small",
|
|
3369
|
+
return (t, a) => e.locales.length > 0 ? (S(), l("div", oa, [u("div", { class: _(["offset-md-3 col-md-9 col-xl-8 text-start", { "d-none": e.onSmallScreen }]) }, [
|
|
3370
|
+
e.isFormLocalized ? c("", !0) : (S(), l("small", sa, [
|
|
3330
3371
|
d(D(n.value), 1),
|
|
3331
|
-
e.otherLocales.length > 1 ? (S(), l("span",
|
|
3372
|
+
e.otherLocales.length > 1 ? (S(), l("span", ca, D(r.value), 1)) : c("", !0),
|
|
3332
3373
|
a[4] ||= d(" | ", -1),
|
|
3333
3374
|
u("a", {
|
|
3334
3375
|
href: "#",
|
|
3335
3376
|
onClick: a[0] ||= R((e) => t.$emit("show-localization"), ["prevent"])
|
|
3336
3377
|
}, D(e.translations.manage_translations), 1)
|
|
3337
3378
|
])),
|
|
3338
|
-
!e.isFormLocalized && e.showLocalizedValidationError ? (S(), l("i",
|
|
3339
|
-
e.isFormLocalized ? (S(), l("div",
|
|
3340
|
-
u("small",
|
|
3379
|
+
!e.isFormLocalized && e.showLocalizedValidationError ? (S(), l("i", la)) : c("", !0),
|
|
3380
|
+
e.isFormLocalized ? (S(), l("div", ua, [
|
|
3381
|
+
u("small", da, D(e.translations.choose_translation_to_edit), 1),
|
|
3341
3382
|
f(k(U), {
|
|
3342
3383
|
"model-value": e.currentLocale,
|
|
3343
3384
|
options: i.value,
|
|
@@ -3351,7 +3392,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3351
3392
|
"options",
|
|
3352
3393
|
"custom-label"
|
|
3353
3394
|
]),
|
|
3354
|
-
e.showLocalizedValidationError ? (S(), l("i",
|
|
3395
|
+
e.showLocalizedValidationError ? (S(), l("i", fa)) : c("", !0),
|
|
3355
3396
|
u("small", null, [u("a", {
|
|
3356
3397
|
href: "#",
|
|
3357
3398
|
onClick: a[2] ||= R((e) => t.$emit("hide-localization"), ["prevent"])
|
|
@@ -3378,25 +3419,25 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3378
3419
|
"options",
|
|
3379
3420
|
"custom-label"
|
|
3380
3421
|
]),
|
|
3381
|
-
e.showLocalizedValidationError ? (S(), l("i",
|
|
3422
|
+
e.showLocalizedValidationError ? (S(), l("i", pa)) : c("", !0)
|
|
3382
3423
|
])], 2)) : c("", !0)])) : c("", !0);
|
|
3383
3424
|
}
|
|
3384
|
-
}, [["__scopeId", "data-v-1c9f060d"]]),
|
|
3425
|
+
}, [["__scopeId", "data-v-1c9f060d"]]), ha = { class: "card" }, ga = { class: "card-body" }, _a = ["action"], va = { class: "auth-header" }, ya = { class: "auth-title" }, ba = { class: "auth-subtitle" }, xa = { class: "auth-body" }, Sa = {
|
|
3385
3426
|
key: 0,
|
|
3386
3427
|
class: "alert alert-success"
|
|
3387
|
-
},
|
|
3428
|
+
}, Ca = {
|
|
3388
3429
|
key: 1,
|
|
3389
3430
|
class: "alert alert-danger"
|
|
3390
|
-
},
|
|
3431
|
+
}, wa = { class: "mb-3" }, Ta = { for: "email" }, Ea = { class: "input-group input-group--custom" }, Da = ["placeholder"], Oa = {
|
|
3391
3432
|
key: 0,
|
|
3392
3433
|
class: "invalid-feedback d-block form-text"
|
|
3393
|
-
},
|
|
3434
|
+
}, ka = { class: "mb-3" }, Aa = { for: "password" }, ja = { class: "input-group input-group--custom" }, Ma = ["placeholder"], Na = {
|
|
3394
3435
|
key: 0,
|
|
3395
3436
|
class: "invalid-feedback d-block form-text"
|
|
3396
|
-
},
|
|
3437
|
+
}, Pa = { class: "mb-3" }, Fa = ["disabled"], Ia = {
|
|
3397
3438
|
key: 0,
|
|
3398
3439
|
class: "fa fa-spinner fa-spin"
|
|
3399
|
-
},
|
|
3440
|
+
}, La = { class: "mb-3 text-center" }, Ra = ["href"], za = /*#__PURE__*/ $({
|
|
3400
3441
|
__name: "LoginForm",
|
|
3401
3442
|
props: {
|
|
3402
3443
|
action: {
|
|
@@ -3438,40 +3479,40 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3438
3479
|
window.location.replace(t.redirectUrl);
|
|
3439
3480
|
}
|
|
3440
3481
|
});
|
|
3441
|
-
return (t, s) => (S(), l("div",
|
|
3482
|
+
return (t, s) => (S(), l("div", ha, [u("div", ga, [u("form", {
|
|
3442
3483
|
role: "form",
|
|
3443
3484
|
method: "POST",
|
|
3444
3485
|
action: e.action,
|
|
3445
3486
|
novalidate: "",
|
|
3446
3487
|
onSubmit: s[2] ||= R((...e) => k(o) && k(o)(...e), ["prevent"])
|
|
3447
|
-
}, [u("div",
|
|
3448
|
-
e.statusMessage ? (S(), l("div",
|
|
3449
|
-
e.serverErrors.length ? (S(), l("div",
|
|
3450
|
-
u("div",
|
|
3451
|
-
u("label",
|
|
3452
|
-
u("div",
|
|
3488
|
+
}, [u("div", va, [u("h1", ya, D(e.translations.title), 1), u("p", ba, D(e.translations.signInText), 1)]), u("div", xa, [
|
|
3489
|
+
e.statusMessage ? (S(), l("div", Sa, D(e.statusMessage), 1)) : c("", !0),
|
|
3490
|
+
e.serverErrors.length ? (S(), l("div", Ca, [u("ul", null, [(S(!0), l(i, null, T(e.serverErrors, (e, t) => (S(), l("li", { key: t }, D(e), 1))), 128))])])) : c("", !0),
|
|
3491
|
+
u("div", wa, [
|
|
3492
|
+
u("label", Ta, D(e.translations.email), 1),
|
|
3493
|
+
u("div", Ea, [s[3] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-envelope" })], -1), I(u("input", {
|
|
3453
3494
|
id: "email",
|
|
3454
3495
|
"onUpdate:modelValue": s[0] ||= (e) => k(n).email = e,
|
|
3455
3496
|
type: "text",
|
|
3456
3497
|
class: _(["form-control", { "is-invalid": k(r).email }]),
|
|
3457
3498
|
name: "email",
|
|
3458
3499
|
placeholder: e.translations.email
|
|
3459
|
-
}, null, 10,
|
|
3460
|
-
k(r).email ? (S(), l("div",
|
|
3500
|
+
}, null, 10, Da), [[M, k(n).email]])]),
|
|
3501
|
+
k(r).email ? (S(), l("div", Oa, D(k(r).email), 1)) : c("", !0)
|
|
3461
3502
|
]),
|
|
3462
|
-
u("div",
|
|
3463
|
-
u("label",
|
|
3464
|
-
u("div",
|
|
3503
|
+
u("div", ka, [
|
|
3504
|
+
u("label", Aa, D(e.translations.password), 1),
|
|
3505
|
+
u("div", ja, [s[4] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-lock" })], -1), I(u("input", {
|
|
3465
3506
|
id: "password",
|
|
3466
3507
|
"onUpdate:modelValue": s[1] ||= (e) => k(n).password = e,
|
|
3467
3508
|
type: "password",
|
|
3468
3509
|
class: _(["form-control", { "is-invalid": k(r).password }]),
|
|
3469
3510
|
name: "password",
|
|
3470
3511
|
placeholder: e.translations.password
|
|
3471
|
-
}, null, 10,
|
|
3472
|
-
k(r).password ? (S(), l("div",
|
|
3512
|
+
}, null, 10, Ma), [[M, k(n).password]])]),
|
|
3513
|
+
k(r).password ? (S(), l("div", Na, D(k(r).password), 1)) : c("", !0)
|
|
3473
3514
|
]),
|
|
3474
|
-
u("div",
|
|
3515
|
+
u("div", Pa, [s[5] ||= u("input", {
|
|
3475
3516
|
type: "hidden",
|
|
3476
3517
|
name: "remember",
|
|
3477
3518
|
value: "1"
|
|
@@ -3479,32 +3520,32 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3479
3520
|
type: "submit",
|
|
3480
3521
|
class: "btn btn-primary submit-btn",
|
|
3481
3522
|
disabled: k(a)
|
|
3482
|
-
}, [k(a) ? (S(), l("i",
|
|
3483
|
-
u("div",
|
|
3523
|
+
}, [k(a) ? (S(), l("i", Ia)) : c("", !0), d(" " + D(e.translations.button), 1)], 8, Fa)]),
|
|
3524
|
+
u("div", La, [u("a", {
|
|
3484
3525
|
href: e.passwordResetUrl,
|
|
3485
3526
|
class: "auth-ghost-link forgot-link"
|
|
3486
|
-
}, D(e.translations.forgotPassword), 9,
|
|
3487
|
-
])], 40,
|
|
3527
|
+
}, D(e.translations.forgotPassword), 9, Ra)])
|
|
3528
|
+
])], 40, _a)])]));
|
|
3488
3529
|
}
|
|
3489
|
-
}, [["__scopeId", "data-v-8d4257dc"]]),
|
|
3530
|
+
}, [["__scopeId", "data-v-8d4257dc"]]), Ba = { class: "card" }, Va = { class: "card-body" }, Ha = ["action"], Ua = { class: "auth-header" }, Wa = { class: "auth-title" }, Ga = { class: "auth-subtitle" }, Ka = { class: "auth-body" }, qa = {
|
|
3490
3531
|
key: 0,
|
|
3491
3532
|
class: "alert alert-success"
|
|
3492
|
-
},
|
|
3533
|
+
}, Ja = {
|
|
3493
3534
|
key: 1,
|
|
3494
3535
|
class: "alert alert-success"
|
|
3495
|
-
},
|
|
3536
|
+
}, Ya = {
|
|
3496
3537
|
key: 2,
|
|
3497
3538
|
class: "alert alert-danger"
|
|
3498
|
-
},
|
|
3539
|
+
}, Xa = { class: "mb-3" }, Za = { for: "email" }, Qa = { class: "input-group input-group--custom" }, $a = ["placeholder"], eo = {
|
|
3499
3540
|
key: 0,
|
|
3500
3541
|
class: "invalid-feedback d-block form-text"
|
|
3501
|
-
},
|
|
3542
|
+
}, to = { class: "mb-3" }, no = ["disabled"], ro = {
|
|
3502
3543
|
key: 0,
|
|
3503
3544
|
class: "fa fa-spinner fa-spin"
|
|
3504
|
-
},
|
|
3545
|
+
}, io = {
|
|
3505
3546
|
key: 3,
|
|
3506
3547
|
class: "text-center"
|
|
3507
|
-
},
|
|
3548
|
+
}, ao = ["href"], oo = {
|
|
3508
3549
|
__name: "ForgotPasswordForm",
|
|
3509
3550
|
props: {
|
|
3510
3551
|
action: {
|
|
@@ -3533,61 +3574,61 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3533
3574
|
formDefaults: { email: "" },
|
|
3534
3575
|
validationSchema: { email: "required|email" }
|
|
3535
3576
|
});
|
|
3536
|
-
return (s, f) => (S(), l("div",
|
|
3577
|
+
return (s, f) => (S(), l("div", Ba, [u("div", Va, [u("form", {
|
|
3537
3578
|
role: "form",
|
|
3538
3579
|
method: "POST",
|
|
3539
3580
|
action: e.action,
|
|
3540
3581
|
novalidate: "",
|
|
3541
3582
|
onSubmit: f[1] ||= R((...e) => k(o) && k(o)(...e), ["prevent"])
|
|
3542
|
-
}, [u("div",
|
|
3543
|
-
k(a) ? (S(), l("div",
|
|
3544
|
-
e.statusMessage && !k(a) ? (S(), l("div",
|
|
3545
|
-
e.serverErrors.length ? (S(), l("div",
|
|
3546
|
-
u("div",
|
|
3547
|
-
u("label",
|
|
3548
|
-
u("div",
|
|
3583
|
+
}, [u("div", Ua, [u("h1", Wa, D(e.translations.title), 1), u("p", Ga, D(e.translations.note), 1)]), u("div", Ka, [
|
|
3584
|
+
k(a) ? (S(), l("div", qa, D(k(a)), 1)) : c("", !0),
|
|
3585
|
+
e.statusMessage && !k(a) ? (S(), l("div", Ja, D(e.statusMessage), 1)) : c("", !0),
|
|
3586
|
+
e.serverErrors.length ? (S(), l("div", Ya, [u("ul", null, [(S(!0), l(i, null, T(e.serverErrors, (e, t) => (S(), l("li", { key: t }, D(e), 1))), 128))])])) : c("", !0),
|
|
3587
|
+
u("div", Xa, [
|
|
3588
|
+
u("label", Za, D(e.translations.email), 1),
|
|
3589
|
+
u("div", Qa, [f[2] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-envelope" })], -1), I(u("input", {
|
|
3549
3590
|
id: "email",
|
|
3550
3591
|
"onUpdate:modelValue": f[0] ||= (e) => k(t).email = e,
|
|
3551
3592
|
type: "text",
|
|
3552
3593
|
class: _(["form-control", { "is-invalid": k(n).email }]),
|
|
3553
3594
|
name: "email",
|
|
3554
3595
|
placeholder: e.translations.email
|
|
3555
|
-
}, null, 10,
|
|
3556
|
-
k(n).email ? (S(), l("div",
|
|
3596
|
+
}, null, 10, $a), [[M, k(t).email]])]),
|
|
3597
|
+
k(n).email ? (S(), l("div", eo, D(k(n).email), 1)) : c("", !0)
|
|
3557
3598
|
]),
|
|
3558
|
-
u("div",
|
|
3599
|
+
u("div", to, [u("button", {
|
|
3559
3600
|
type: "submit",
|
|
3560
3601
|
class: "btn btn-primary submit-btn",
|
|
3561
3602
|
disabled: k(r)
|
|
3562
|
-
}, [k(r) ? (S(), l("i",
|
|
3563
|
-
e.loginUrl ? (S(), l("div",
|
|
3603
|
+
}, [k(r) ? (S(), l("i", ro)) : c("", !0), d(" " + D(e.translations.button), 1)], 8, no)]),
|
|
3604
|
+
e.loginUrl ? (S(), l("div", io, [u("a", {
|
|
3564
3605
|
href: e.loginUrl,
|
|
3565
3606
|
class: "auth-ghost-link"
|
|
3566
|
-
}, D(e.translations.backToLogin), 9,
|
|
3567
|
-
])], 40,
|
|
3607
|
+
}, D(e.translations.backToLogin), 9, ao)])) : c("", !0)
|
|
3608
|
+
])], 40, Ha)])]));
|
|
3568
3609
|
}
|
|
3569
|
-
},
|
|
3610
|
+
}, so = { class: "card" }, co = { class: "card-body" }, lo = ["action"], uo = { class: "auth-header" }, fo = { class: "auth-title" }, po = { class: "auth-subtitle" }, mo = { class: "auth-body" }, ho = {
|
|
3570
3611
|
key: 0,
|
|
3571
3612
|
class: "alert alert-success"
|
|
3572
|
-
},
|
|
3613
|
+
}, go = {
|
|
3573
3614
|
key: 1,
|
|
3574
3615
|
class: "alert alert-danger"
|
|
3575
|
-
},
|
|
3616
|
+
}, _o = { class: "mb-3" }, vo = { for: "email" }, yo = { class: "input-group input-group--custom" }, bo = ["placeholder"], xo = {
|
|
3576
3617
|
key: 0,
|
|
3577
3618
|
class: "invalid-feedback d-block form-text"
|
|
3578
|
-
},
|
|
3619
|
+
}, So = { class: "mb-3" }, Co = { for: "password" }, wo = { class: "input-group input-group--custom" }, To = ["placeholder"], Eo = {
|
|
3579
3620
|
key: 0,
|
|
3580
3621
|
class: "invalid-feedback d-block form-text"
|
|
3581
|
-
},
|
|
3622
|
+
}, Do = { class: "mb-3" }, Oo = { for: "password_confirmation" }, ko = { class: "input-group input-group--custom" }, Ao = ["placeholder"], jo = {
|
|
3582
3623
|
key: 0,
|
|
3583
3624
|
class: "invalid-feedback d-block form-text"
|
|
3584
|
-
},
|
|
3625
|
+
}, Mo = { class: "mb-3" }, No = ["disabled"], Po = {
|
|
3585
3626
|
key: 0,
|
|
3586
3627
|
class: "fa fa-spinner fa-spin"
|
|
3587
|
-
},
|
|
3628
|
+
}, Fo = {
|
|
3588
3629
|
key: 2,
|
|
3589
3630
|
class: "text-center"
|
|
3590
|
-
},
|
|
3631
|
+
}, Io = ["href"], Lo = {
|
|
3591
3632
|
__name: "ResetPasswordForm",
|
|
3592
3633
|
props: {
|
|
3593
3634
|
action: {
|
|
@@ -3640,78 +3681,78 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3640
3681
|
window.location.replace(e.redirect || t.redirectUrl);
|
|
3641
3682
|
}
|
|
3642
3683
|
});
|
|
3643
|
-
return (t, s) => (S(), l("div",
|
|
3684
|
+
return (t, s) => (S(), l("div", so, [u("div", co, [u("form", {
|
|
3644
3685
|
role: "form",
|
|
3645
3686
|
method: "POST",
|
|
3646
3687
|
action: e.action,
|
|
3647
3688
|
novalidate: "",
|
|
3648
3689
|
onSubmit: s[3] ||= R((...e) => k(o) && k(o)(...e), ["prevent"])
|
|
3649
|
-
}, [u("div",
|
|
3650
|
-
e.statusMessage ? (S(), l("div",
|
|
3651
|
-
e.serverErrors.length ? (S(), l("div",
|
|
3652
|
-
u("div",
|
|
3653
|
-
u("label",
|
|
3654
|
-
u("div",
|
|
3690
|
+
}, [u("div", uo, [u("h1", fo, D(e.translations.title), 1), u("p", po, D(e.translations.note), 1)]), u("div", mo, [
|
|
3691
|
+
e.statusMessage ? (S(), l("div", ho, D(e.statusMessage), 1)) : c("", !0),
|
|
3692
|
+
e.serverErrors.length ? (S(), l("div", go, [u("ul", null, [(S(!0), l(i, null, T(e.serverErrors, (e, t) => (S(), l("li", { key: t }, D(e), 1))), 128))])])) : c("", !0),
|
|
3693
|
+
u("div", _o, [
|
|
3694
|
+
u("label", vo, D(e.translations.email), 1),
|
|
3695
|
+
u("div", yo, [s[4] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-envelope" })], -1), I(u("input", {
|
|
3655
3696
|
id: "email",
|
|
3656
3697
|
"onUpdate:modelValue": s[0] ||= (e) => k(n).email = e,
|
|
3657
3698
|
type: "text",
|
|
3658
3699
|
class: _(["form-control", { "is-invalid": k(r).email }]),
|
|
3659
3700
|
name: "email",
|
|
3660
3701
|
placeholder: e.translations.email
|
|
3661
|
-
}, null, 10,
|
|
3662
|
-
k(r).email ? (S(), l("div",
|
|
3702
|
+
}, null, 10, bo), [[M, k(n).email]])]),
|
|
3703
|
+
k(r).email ? (S(), l("div", xo, D(k(r).email), 1)) : c("", !0)
|
|
3663
3704
|
]),
|
|
3664
|
-
u("div",
|
|
3665
|
-
u("label",
|
|
3666
|
-
u("div",
|
|
3705
|
+
u("div", So, [
|
|
3706
|
+
u("label", Co, D(e.translations.password), 1),
|
|
3707
|
+
u("div", wo, [s[5] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-lock" })], -1), I(u("input", {
|
|
3667
3708
|
id: "password",
|
|
3668
3709
|
"onUpdate:modelValue": s[1] ||= (e) => k(n).password = e,
|
|
3669
3710
|
type: "password",
|
|
3670
3711
|
class: _(["form-control", { "is-invalid": k(r).password }]),
|
|
3671
3712
|
name: "password",
|
|
3672
3713
|
placeholder: e.translations.password
|
|
3673
|
-
}, null, 10,
|
|
3674
|
-
k(r).password ? (S(), l("div",
|
|
3714
|
+
}, null, 10, To), [[M, k(n).password]])]),
|
|
3715
|
+
k(r).password ? (S(), l("div", Eo, D(k(r).password), 1)) : c("", !0)
|
|
3675
3716
|
]),
|
|
3676
|
-
u("div",
|
|
3677
|
-
u("label",
|
|
3678
|
-
u("div",
|
|
3717
|
+
u("div", Do, [
|
|
3718
|
+
u("label", Oo, D(e.translations.passwordConfirm), 1),
|
|
3719
|
+
u("div", ko, [s[6] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-lock" })], -1), I(u("input", {
|
|
3679
3720
|
id: "password_confirmation",
|
|
3680
3721
|
"onUpdate:modelValue": s[2] ||= (e) => k(n).password_confirmation = e,
|
|
3681
3722
|
type: "password",
|
|
3682
3723
|
class: _(["form-control", { "is-invalid": k(r).password_confirmation }]),
|
|
3683
3724
|
name: "password_confirmation",
|
|
3684
3725
|
placeholder: e.translations.passwordConfirm
|
|
3685
|
-
}, null, 10,
|
|
3686
|
-
k(r).password_confirmation ? (S(), l("div",
|
|
3726
|
+
}, null, 10, Ao), [[M, k(n).password_confirmation]])]),
|
|
3727
|
+
k(r).password_confirmation ? (S(), l("div", jo, D(k(r).password_confirmation), 1)) : c("", !0)
|
|
3687
3728
|
]),
|
|
3688
|
-
u("div",
|
|
3729
|
+
u("div", Mo, [u("button", {
|
|
3689
3730
|
type: "submit",
|
|
3690
3731
|
class: "btn btn-primary submit-btn",
|
|
3691
3732
|
disabled: k(a)
|
|
3692
|
-
}, [k(a) ? (S(), l("i",
|
|
3693
|
-
e.loginUrl ? (S(), l("div",
|
|
3733
|
+
}, [k(a) ? (S(), l("i", Po)) : c("", !0), d(" " + D(e.translations.button), 1)], 8, No)]),
|
|
3734
|
+
e.loginUrl ? (S(), l("div", Fo, [u("a", {
|
|
3694
3735
|
href: e.loginUrl,
|
|
3695
3736
|
class: "auth-ghost-link"
|
|
3696
|
-
}, D(e.translations.backToLogin), 9,
|
|
3697
|
-
])], 40,
|
|
3737
|
+
}, D(e.translations.backToLogin), 9, Io)])) : c("", !0)
|
|
3738
|
+
])], 40, lo)])]));
|
|
3698
3739
|
}
|
|
3699
|
-
},
|
|
3740
|
+
}, Ro = { class: "card" }, zo = { class: "card-body" }, Bo = ["action"], Vo = { class: "auth-header" }, Ho = { class: "auth-title" }, Uo = { class: "auth-subtitle" }, Wo = { class: "auth-body" }, Go = {
|
|
3700
3741
|
key: 0,
|
|
3701
3742
|
class: "alert alert-success"
|
|
3702
|
-
},
|
|
3743
|
+
}, Ko = {
|
|
3703
3744
|
key: 1,
|
|
3704
3745
|
class: "alert alert-success"
|
|
3705
|
-
},
|
|
3746
|
+
}, qo = {
|
|
3706
3747
|
key: 2,
|
|
3707
3748
|
class: "alert alert-danger"
|
|
3708
|
-
},
|
|
3749
|
+
}, Jo = { class: "mb-3" }, Yo = { for: "email" }, Xo = { class: "input-group input-group--custom" }, Zo = ["placeholder"], Qo = {
|
|
3709
3750
|
key: 0,
|
|
3710
3751
|
class: "invalid-feedback d-block form-text"
|
|
3711
|
-
},
|
|
3752
|
+
}, $o = { class: "mb-3" }, es = ["disabled"], ts = {
|
|
3712
3753
|
key: 0,
|
|
3713
3754
|
class: "fa fa-spinner fa-spin"
|
|
3714
|
-
},
|
|
3755
|
+
}, ns = {
|
|
3715
3756
|
__name: "ActivationForm",
|
|
3716
3757
|
props: {
|
|
3717
3758
|
action: {
|
|
@@ -3736,39 +3777,39 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3736
3777
|
formDefaults: { email: "" },
|
|
3737
3778
|
validationSchema: { email: "required|email" }
|
|
3738
3779
|
});
|
|
3739
|
-
return (s, f) => (S(), l("div",
|
|
3780
|
+
return (s, f) => (S(), l("div", Ro, [u("div", zo, [u("form", {
|
|
3740
3781
|
role: "form",
|
|
3741
3782
|
method: "POST",
|
|
3742
3783
|
action: e.action,
|
|
3743
3784
|
novalidate: "",
|
|
3744
3785
|
onSubmit: f[1] ||= R((...e) => k(o) && k(o)(...e), ["prevent"])
|
|
3745
|
-
}, [u("div",
|
|
3746
|
-
k(a) ? (S(), l("div",
|
|
3747
|
-
e.statusMessage && !k(a) ? (S(), l("div",
|
|
3748
|
-
e.serverErrors.length ? (S(), l("div",
|
|
3749
|
-
u("div",
|
|
3750
|
-
u("label",
|
|
3751
|
-
u("div",
|
|
3786
|
+
}, [u("div", Vo, [u("h1", Ho, D(e.translations.title), 1), u("p", Uo, D(e.translations.note), 1)]), u("div", Wo, [
|
|
3787
|
+
k(a) ? (S(), l("div", Go, D(k(a)), 1)) : c("", !0),
|
|
3788
|
+
e.statusMessage && !k(a) ? (S(), l("div", Ko, D(e.statusMessage), 1)) : c("", !0),
|
|
3789
|
+
e.serverErrors.length ? (S(), l("div", qo, [u("ul", null, [(S(!0), l(i, null, T(e.serverErrors, (e, t) => (S(), l("li", { key: t }, D(e), 1))), 128))])])) : c("", !0),
|
|
3790
|
+
u("div", Jo, [
|
|
3791
|
+
u("label", Yo, D(e.translations.email), 1),
|
|
3792
|
+
u("div", Xo, [f[2] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-envelope" })], -1), I(u("input", {
|
|
3752
3793
|
id: "email",
|
|
3753
3794
|
"onUpdate:modelValue": f[0] ||= (e) => k(t).email = e,
|
|
3754
3795
|
type: "text",
|
|
3755
3796
|
class: _(["form-control", { "is-invalid": k(n).email }]),
|
|
3756
3797
|
name: "email",
|
|
3757
3798
|
placeholder: e.translations.email
|
|
3758
|
-
}, null, 10,
|
|
3759
|
-
k(n).email ? (S(), l("div",
|
|
3799
|
+
}, null, 10, Zo), [[M, k(t).email]])]),
|
|
3800
|
+
k(n).email ? (S(), l("div", Qo, D(k(n).email), 1)) : c("", !0)
|
|
3760
3801
|
]),
|
|
3761
|
-
u("div",
|
|
3802
|
+
u("div", $o, [u("button", {
|
|
3762
3803
|
type: "submit",
|
|
3763
3804
|
class: "btn btn-primary submit-btn",
|
|
3764
3805
|
disabled: k(r)
|
|
3765
|
-
}, [k(r) ? (S(), l("i",
|
|
3766
|
-
])], 40,
|
|
3806
|
+
}, [k(r) ? (S(), l("i", ts)) : c("", !0), d(" " + D(e.translations.button), 1)], 8, es)])
|
|
3807
|
+
])], 40, Bo)])]));
|
|
3767
3808
|
}
|
|
3768
|
-
},
|
|
3809
|
+
}, rs = { class: "card" }, is = { class: "card-body" }, as = { class: "auth-header" }, os = { class: "auth-title" }, ss = { class: "auth-body" }, cs = {
|
|
3769
3810
|
key: 0,
|
|
3770
3811
|
class: "alert alert-danger"
|
|
3771
|
-
},
|
|
3812
|
+
}, ls = {
|
|
3772
3813
|
__name: "ActivationError",
|
|
3773
3814
|
props: {
|
|
3774
3815
|
translations: {
|
|
@@ -3781,15 +3822,15 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3781
3822
|
}
|
|
3782
3823
|
},
|
|
3783
3824
|
setup(e) {
|
|
3784
|
-
return (t, n) => (S(), l("div",
|
|
3825
|
+
return (t, n) => (S(), l("div", rs, [u("div", is, [u("div", as, [u("h1", os, D(e.translations.title), 1)]), u("div", ss, [e.serverErrors.length ? (S(), l("div", cs, [u("ul", null, [(S(!0), l(i, null, T(e.serverErrors, (e, t) => (S(), l("li", { key: t }, D(e), 1))), 128))])])) : c("", !0)])])]));
|
|
3785
3826
|
}
|
|
3786
|
-
},
|
|
3827
|
+
}, us = { class: "modal-dialog" }, ds = { class: "modal-content" }, fs = { class: "modal-header" }, ps = { class: "modal-title" }, ms = { class: "modal-body" }, hs = {
|
|
3787
3828
|
class: "text-center",
|
|
3788
3829
|
style: { "word-wrap": "break-word" }
|
|
3789
|
-
},
|
|
3830
|
+
}, gs = { class: "form-label" }, _s = ["onUpdate:modelValue", "placeholder"], vs = ["onUpdate:modelValue", "placeholder"], ys = { class: "text-center" }, bs = {
|
|
3790
3831
|
class: "btn btn-primary w-100",
|
|
3791
3832
|
type: "submit"
|
|
3792
|
-
},
|
|
3833
|
+
}, xs = {
|
|
3793
3834
|
__name: "TranslationEditModal",
|
|
3794
3835
|
props: {
|
|
3795
3836
|
show: {
|
|
@@ -3830,47 +3871,47 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3830
3871
|
return (t, n) => (S(), l(i, null, [u("div", {
|
|
3831
3872
|
class: _(["modal fade", { show: e.show }]),
|
|
3832
3873
|
style: y({ display: e.show ? "block" : "none" })
|
|
3833
|
-
}, [u("div",
|
|
3874
|
+
}, [u("div", us, [u("div", ds, [u("div", fs, [u("h4", ps, D(e.translations.edit), 1), u("button", {
|
|
3834
3875
|
type: "button",
|
|
3835
3876
|
class: "btn-close",
|
|
3836
3877
|
onClick: n[0] ||= (e) => t.$emit("close")
|
|
3837
|
-
})]), u("div",
|
|
3878
|
+
})]), u("div", ms, [u("p", hs, [u("strong", null, D(e.translations.default_text) + ":", 1), d(" " + D(e.item?.key), 1)]), u("form", { onSubmit: R(p, ["prevent"]) }, [(S(!0), l(i, null, T(s.value, (t) => (S(), l("div", {
|
|
3838
3879
|
key: t,
|
|
3839
3880
|
class: "mb-3"
|
|
3840
|
-
}, [u("label",
|
|
3881
|
+
}, [u("label", gs, D(t.toUpperCase()) + " " + D(e.translations.translation), 1), !f[t] || f[t].length < 70 ? I((S(), l("input", {
|
|
3841
3882
|
key: 0,
|
|
3842
3883
|
"onUpdate:modelValue": (e) => f[t] = e,
|
|
3843
3884
|
type: "text",
|
|
3844
3885
|
class: "form-control",
|
|
3845
3886
|
placeholder: (e.translations.translation_for || "").replace(":locale", t)
|
|
3846
|
-
}, null, 8,
|
|
3887
|
+
}, null, 8, _s)), [[M, f[t]]]) : I((S(), l("textarea", {
|
|
3847
3888
|
key: 1,
|
|
3848
3889
|
"onUpdate:modelValue": (e) => f[t] = e,
|
|
3849
3890
|
class: "form-control",
|
|
3850
3891
|
placeholder: (e.translations.translation_for || "").replace(":locale", t),
|
|
3851
3892
|
cols: "30",
|
|
3852
3893
|
rows: "4"
|
|
3853
|
-
}, null, 8,
|
|
3894
|
+
}, null, 8, vs)), [[M, f[t]]])]))), 128)), u("div", ys, [u("button", bs, D(e.translations.save) + " " + D(e.translations.translation), 1)])], 32)])])])], 6), e.show ? (S(), l("div", {
|
|
3854
3895
|
key: 0,
|
|
3855
3896
|
class: "modal-backdrop fade show",
|
|
3856
3897
|
onClick: n[1] ||= (e) => t.$emit("close")
|
|
3857
3898
|
})) : c("", !0)], 64));
|
|
3858
3899
|
}
|
|
3859
|
-
},
|
|
3900
|
+
}, Ss = { class: "modal-dialog modal-lg" }, Cs = { class: "modal-content" }, ws = { class: "modal-header" }, Ts = { class: "modal-title" }, Es = { class: "modal-body" }, Ds = { class: "row mb-3" }, Os = { class: "col-md-4 text-md-end" }, ks = { class: "col-form-label" }, As = { class: "col-md-6" }, js = { class: "btn btn-primary btn-sm w-100 mb-0" }, Ms = { key: 0 }, Ns = { key: 1 }, Ps = { class: "row mb-3" }, Fs = { class: "col-md-4 text-md-end" }, Is = {
|
|
3860
3901
|
for: "importLanguage",
|
|
3861
3902
|
class: "col-form-label"
|
|
3862
|
-
},
|
|
3903
|
+
}, Ls = { class: "col-md-6" }, Rs = { class: "offset-md-4" }, zs = { class: "form-check" }, Bs = {
|
|
3863
3904
|
class: "form-check-label",
|
|
3864
3905
|
for: "onlyMissingTranslations"
|
|
3865
|
-
},
|
|
3906
|
+
}, Vs = { class: "text-center mb-3" }, Hs = { class: "table table-hover" }, Us = { key: 0 }, Ws = { style: { "word-break": "break-all" } }, Gs = { style: { "word-break": "break-all" } }, Ks = { style: { "word-break": "break-all" } }, qs = [
|
|
3866
3907
|
"id",
|
|
3867
3908
|
"onUpdate:modelValue",
|
|
3868
3909
|
"name"
|
|
3869
|
-
],
|
|
3910
|
+
], Js = ["for"], Ys = { style: { "word-break": "break-all" } }, Xs = [
|
|
3870
3911
|
"id",
|
|
3871
3912
|
"onUpdate:modelValue",
|
|
3872
3913
|
"name"
|
|
3873
|
-
],
|
|
3914
|
+
], Zs = ["for"], Qs = { class: "text-center" }, $s = { class: "modal-footer" }, ec = {
|
|
3874
3915
|
__name: "TranslationImportModal",
|
|
3875
3916
|
props: {
|
|
3876
3917
|
show: {
|
|
@@ -3943,16 +3984,16 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3943
3984
|
return (t, n) => (S(), l(i, null, [u("div", {
|
|
3944
3985
|
class: _(["modal fade", { show: e.show }]),
|
|
3945
3986
|
style: y({ display: e.show ? "block" : "none" })
|
|
3946
|
-
}, [u("div",
|
|
3947
|
-
u("div",
|
|
3987
|
+
}, [u("div", Ss, [u("div", Cs, [
|
|
3988
|
+
u("div", ws, [u("h4", Ts, D(e.translations.import_title), 1), u("button", {
|
|
3948
3989
|
type: "button",
|
|
3949
3990
|
class: "btn-close",
|
|
3950
3991
|
onClick: B
|
|
3951
3992
|
})]),
|
|
3952
|
-
u("div",
|
|
3993
|
+
u("div", Es, [
|
|
3953
3994
|
I(u("div", null, [
|
|
3954
3995
|
u("p", null, D(e.translations.import_notice), 1),
|
|
3955
|
-
u("div",
|
|
3996
|
+
u("div", Ds, [u("div", Os, [u("label", ks, D(e.translations.upload_file), 1)]), u("div", As, [u("label", js, [m.value ? (S(), l("span", Ms, D(m.value.name), 1)) : (S(), l("span", Ns, D(e.translations.choose_file), 1)), u("input", {
|
|
3956
3997
|
ref_key: "fileInput",
|
|
3957
3998
|
ref: p,
|
|
3958
3999
|
type: "file",
|
|
@@ -3960,7 +4001,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3960
4001
|
accept: ".xlsx",
|
|
3961
4002
|
onChange: z
|
|
3962
4003
|
}, null, 544)])])]),
|
|
3963
|
-
u("div",
|
|
4004
|
+
u("div", Ps, [u("div", Fs, [u("label", Is, D(e.translations.language_to_import), 1)]), u("div", Ls, [f(k(U), {
|
|
3964
4005
|
modelValue: h.value,
|
|
3965
4006
|
"onUpdate:modelValue": n[0] ||= (e) => h.value = e,
|
|
3966
4007
|
options: d.value,
|
|
@@ -3975,47 +4016,47 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3975
4016
|
"options",
|
|
3976
4017
|
"placeholder"
|
|
3977
4018
|
])])]),
|
|
3978
|
-
u("div",
|
|
4019
|
+
u("div", Rs, [u("div", zs, [I(u("input", {
|
|
3979
4020
|
id: "onlyMissingTranslations",
|
|
3980
4021
|
"onUpdate:modelValue": n[1] ||= (e) => v.value = e,
|
|
3981
4022
|
class: "form-check-input",
|
|
3982
4023
|
type: "checkbox"
|
|
3983
|
-
}, null, 512), [[A, v.value]]), u("label",
|
|
4024
|
+
}, null, 512), [[A, v.value]]), u("label", Bs, D(e.translations.do_not_override), 1)])])
|
|
3984
4025
|
], 512), [[N, b.value === 1]]),
|
|
3985
|
-
I(u("div", null, [u("div",
|
|
4026
|
+
I(u("div", null, [u("div", Vs, [u("p", null, D(e.translations.conflict_found) + " " + D(E.value) + " " + D(e.translations.conflict_to_import) + " " + D(O.value) + " " + D(e.translations.conflict_differ), 1)]), u("table", Hs, [u("thead", null, [u("tr", null, [
|
|
3986
4027
|
u("th", null, D(e.translations.group), 1),
|
|
3987
4028
|
u("th", null, D(e.translations.default), 1),
|
|
3988
4029
|
u("th", null, D(e.translations.current_value), 1),
|
|
3989
4030
|
u("th", null, D(e.translations.imported_value), 1)
|
|
3990
|
-
])]), u("tbody", null, [(S(!0), l(i, null, T(M.value, (e, t) => (S(), l(i, { key: t }, [e.has_conflict ? (S(), l("tr",
|
|
3991
|
-
u("td",
|
|
3992
|
-
u("td",
|
|
3993
|
-
u("td",
|
|
4031
|
+
])]), u("tbody", null, [(S(!0), l(i, null, T(M.value, (e, t) => (S(), l(i, { key: t }, [e.has_conflict ? (S(), l("tr", Us, [
|
|
4032
|
+
u("td", Ws, D(e.group), 1),
|
|
4033
|
+
u("td", Gs, D(e.default), 1),
|
|
4034
|
+
u("td", Ks, [I(u("input", {
|
|
3994
4035
|
id: "current-" + t + "0",
|
|
3995
4036
|
"onUpdate:modelValue": (e) => M.value[t].checkedCurrent = e,
|
|
3996
4037
|
type: "radio",
|
|
3997
4038
|
class: "form-check-input me-1",
|
|
3998
4039
|
value: !0,
|
|
3999
4040
|
name: "current-" + t
|
|
4000
|
-
}, null, 8,
|
|
4041
|
+
}, null, 8, qs), [[j, M.value[t].checkedCurrent]]), u("label", {
|
|
4001
4042
|
class: "form-check-label",
|
|
4002
4043
|
for: "current-" + t + "0"
|
|
4003
|
-
}, D(e.current_value), 9,
|
|
4004
|
-
u("td",
|
|
4044
|
+
}, D(e.current_value), 9, Js)]),
|
|
4045
|
+
u("td", Ys, [I(u("input", {
|
|
4005
4046
|
id: "current-" + t + "1",
|
|
4006
4047
|
"onUpdate:modelValue": (e) => M.value[t].checkedCurrent = e,
|
|
4007
4048
|
type: "radio",
|
|
4008
4049
|
class: "form-check-input me-1",
|
|
4009
4050
|
value: !1,
|
|
4010
4051
|
name: "current-" + t
|
|
4011
|
-
}, null, 8,
|
|
4052
|
+
}, null, 8, Xs), [[j, M.value[t].checkedCurrent]]), u("label", {
|
|
4012
4053
|
class: "form-check-label",
|
|
4013
4054
|
for: "current-" + t + "1"
|
|
4014
|
-
}, D(e[g.value.toLowerCase()]), 9,
|
|
4055
|
+
}, D(e[g.value.toLowerCase()]), 9, Zs)])
|
|
4015
4056
|
])) : c("", !0)], 64))), 128))])])], 512), [[N, b.value === 2]]),
|
|
4016
|
-
I(u("div", null, [u("div",
|
|
4057
|
+
I(u("div", null, [u("div", Qs, [u("p", null, D(x.value) + " " + D(e.translations.successfully_imported) + " " + D(C.value) + " " + D(e.translations.successfully_updated), 1)])], 512), [[N, b.value === 3]])
|
|
4017
4058
|
]),
|
|
4018
|
-
u("div",
|
|
4059
|
+
u("div", $s, [F.value ? c("", !0) : (S(), l("button", {
|
|
4019
4060
|
key: 0,
|
|
4020
4061
|
type: "button",
|
|
4021
4062
|
class: "btn btn-primary",
|
|
@@ -4027,10 +4068,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4027
4068
|
onClick: B
|
|
4028
4069
|
})) : c("", !0)], 64));
|
|
4029
4070
|
}
|
|
4030
|
-
},
|
|
4071
|
+
}, tc = { class: "modal-dialog" }, nc = { class: "modal-content" }, rc = { class: "modal-header" }, ic = { class: "modal-title" }, ac = { class: "modal-body" }, oc = { class: "text-start" }, sc = { class: "text-end" }, cc = {
|
|
4031
4072
|
class: "btn btn-primary",
|
|
4032
4073
|
type: "submit"
|
|
4033
|
-
},
|
|
4074
|
+
}, lc = {
|
|
4034
4075
|
__name: "TranslationExportModal",
|
|
4035
4076
|
props: {
|
|
4036
4077
|
show: {
|
|
@@ -4070,13 +4111,13 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4070
4111
|
return (t, n) => (S(), l(i, null, [u("div", {
|
|
4071
4112
|
class: _(["modal fade", { show: e.show }]),
|
|
4072
4113
|
style: y({ display: e.show ? "block" : "none" })
|
|
4073
|
-
}, [u("div",
|
|
4114
|
+
}, [u("div", tc, [u("div", nc, [u("div", rc, [u("h4", ic, D(e.translations.export), 1), u("button", {
|
|
4074
4115
|
type: "button",
|
|
4075
4116
|
class: "btn-close",
|
|
4076
4117
|
onClick: n[0] ||= (e) => t.$emit("close")
|
|
4077
|
-
})]), u("div",
|
|
4078
|
-
u("p",
|
|
4079
|
-
f(
|
|
4118
|
+
})]), u("div", ac, [u("form", { onSubmit: R(m, ["prevent"]) }, [
|
|
4119
|
+
u("p", oc, D(e.translations.export_notice), 1),
|
|
4120
|
+
f(hi, {
|
|
4080
4121
|
modelValue: p.value,
|
|
4081
4122
|
"onUpdate:modelValue": n[1] ||= (e) => p.value = e,
|
|
4082
4123
|
name: "languagesToExport",
|
|
@@ -4091,17 +4132,17 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4091
4132
|
"options",
|
|
4092
4133
|
"placeholder"
|
|
4093
4134
|
]),
|
|
4094
|
-
u("div",
|
|
4135
|
+
u("div", sc, [u("button", cc, [n[3] ||= u("i", { class: "fa fa-file-excel" }, null, -1), d("\xA0" + D(e.translations.export_btn), 1)])])
|
|
4095
4136
|
], 32)])])])], 6), e.show ? (S(), l("div", {
|
|
4096
4137
|
key: 0,
|
|
4097
4138
|
class: "modal-backdrop fade show",
|
|
4098
4139
|
onClick: n[2] ||= (e) => t.$emit("close")
|
|
4099
4140
|
})) : c("", !0)], 64));
|
|
4100
4141
|
}
|
|
4101
|
-
},
|
|
4142
|
+
}, uc = { class: "row" }, dc = { class: "col" }, fc = { class: "card" }, pc = { class: "card-header" }, mc = { class: "row justify-content-md-between mb-3" }, hc = { class: "col col-lg-7 col-xl-5 mb-3" }, gc = { class: "col-sm-auto mb-3" }, _c = { class: "table-responsive" }, vc = { class: "table table-hover table-listing" }, yc = { key: 0 }, bc = ["title", "onClick"], xc = {
|
|
4102
4143
|
key: 0,
|
|
4103
4144
|
class: "no-items-found"
|
|
4104
|
-
},
|
|
4145
|
+
}, Sc = {
|
|
4105
4146
|
__name: "TranslationListing",
|
|
4106
4147
|
props: {
|
|
4107
4148
|
url: {
|
|
@@ -4154,8 +4195,8 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4154
4195
|
z.value = !1, G();
|
|
4155
4196
|
});
|
|
4156
4197
|
}
|
|
4157
|
-
return (t, n) => (S(), l("div",
|
|
4158
|
-
f(
|
|
4198
|
+
return (t, n) => (S(), l("div", uc, [u("div", dc, [
|
|
4199
|
+
f(xs, {
|
|
4159
4200
|
show: j.value,
|
|
4160
4201
|
item: P.value,
|
|
4161
4202
|
locales: A.value,
|
|
@@ -4171,7 +4212,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4171
4212
|
"translations",
|
|
4172
4213
|
"onSaved"
|
|
4173
4214
|
]),
|
|
4174
|
-
f(
|
|
4215
|
+
f(ec, {
|
|
4175
4216
|
show: M.value,
|
|
4176
4217
|
locales: A.value,
|
|
4177
4218
|
url: e.url,
|
|
@@ -4187,7 +4228,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4187
4228
|
"translations",
|
|
4188
4229
|
"onImported"
|
|
4189
4230
|
]),
|
|
4190
|
-
f(
|
|
4231
|
+
f(lc, {
|
|
4191
4232
|
show: N.value,
|
|
4192
4233
|
locales: A.value,
|
|
4193
4234
|
url: e.url,
|
|
@@ -4199,7 +4240,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4199
4240
|
"url",
|
|
4200
4241
|
"translations"
|
|
4201
4242
|
]),
|
|
4202
|
-
u("div",
|
|
4243
|
+
u("div", fc, [u("div", pc, [
|
|
4203
4244
|
n[9] ||= u("i", { class: "fa fa-align-justify" }, null, -1),
|
|
4204
4245
|
d(" " + D(e.translations.listing_title) + " ", 1),
|
|
4205
4246
|
u("a", {
|
|
@@ -4225,7 +4266,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4225
4266
|
ref: r,
|
|
4226
4267
|
class: "card-body"
|
|
4227
4268
|
}, [
|
|
4228
|
-
u("div",
|
|
4269
|
+
u("div", mc, [u("div", hc, [f(kn, {
|
|
4229
4270
|
search: k(v),
|
|
4230
4271
|
"onUpdate:search": n[5] ||= (e) => h(v) ? v.value = e : null,
|
|
4231
4272
|
"filter-fn": k(x),
|
|
@@ -4253,11 +4294,11 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4253
4294
|
"search",
|
|
4254
4295
|
"filter-fn",
|
|
4255
4296
|
"translations"
|
|
4256
|
-
])]), u("div",
|
|
4297
|
+
])]), u("div", gc, [f(jn, {
|
|
4257
4298
|
modelValue: k(p).state.per_page,
|
|
4258
4299
|
"onUpdate:modelValue": n[6] ||= (e) => k(p).state.per_page = e
|
|
4259
4300
|
}, null, 8, ["modelValue"])])]),
|
|
4260
|
-
u("div",
|
|
4301
|
+
u("div", _c, [u("table", vc, [u("thead", null, [u("tr", null, [
|
|
4261
4302
|
f(Q, {
|
|
4262
4303
|
column: "group",
|
|
4263
4304
|
"order-by": k(m),
|
|
@@ -4296,14 +4337,14 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4296
4337
|
u("td", null, D(t.group), 1),
|
|
4297
4338
|
u("td", null, D(t.key), 1),
|
|
4298
4339
|
u("td", null, D(t.text?.[e.userLocale]), 1),
|
|
4299
|
-
k(a)(4) ? (S(), l("td",
|
|
4340
|
+
k(a)(4) ? (S(), l("td", yc, D(k(K)(t.created_at)), 1)) : c("", !0),
|
|
4300
4341
|
u("td", null, [u("a", {
|
|
4301
4342
|
class: "btn btn-sm btn-info",
|
|
4302
4343
|
href: "#",
|
|
4303
4344
|
title: e.translations.edit_btn,
|
|
4304
4345
|
role: "button",
|
|
4305
4346
|
onClick: R((e) => L(t), ["prevent"])
|
|
4306
|
-
}, [...n[11] ||= [u("i", { class: "fa fa-edit" }, null, -1)]], 8,
|
|
4347
|
+
}, [...n[11] ||= [u("i", { class: "fa fa-edit" }, null, -1)]], 8, bc)])
|
|
4307
4348
|
]))), 128))])])]),
|
|
4308
4349
|
f(Tn, {
|
|
4309
4350
|
pagination: k(p).state,
|
|
@@ -4322,7 +4363,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4322
4363
|
"onPageChange",
|
|
4323
4364
|
"onPerPageChange"
|
|
4324
4365
|
]),
|
|
4325
|
-
k(y)?.length ? c("", !0) : (S(), l("div",
|
|
4366
|
+
k(y)?.length ? c("", !0) : (S(), l("div", xc, [
|
|
4326
4367
|
n[12] ||= u("i", { class: "fa fa-magnifying-glass" }, null, -1),
|
|
4327
4368
|
u("h3", null, D(e.translations.no_items), 1),
|
|
4328
4369
|
u("p", null, D(e.translations.try_changing_items), 1),
|
|
@@ -4336,7 +4377,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4336
4377
|
], 512)])
|
|
4337
4378
|
])]));
|
|
4338
4379
|
}
|
|
4339
|
-
},
|
|
4380
|
+
}, Cc = {
|
|
4340
4381
|
url: "",
|
|
4341
4382
|
collection: "",
|
|
4342
4383
|
maxNumberOfFiles: 1,
|
|
@@ -4344,16 +4385,16 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4344
4385
|
acceptedFileTypes: void 0,
|
|
4345
4386
|
thumbnailWidth: 200,
|
|
4346
4387
|
uploadedMedia: []
|
|
4347
|
-
},
|
|
4388
|
+
}, wc = {
|
|
4348
4389
|
type: Object,
|
|
4349
|
-
default: () => ({ ...
|
|
4390
|
+
default: () => ({ ...Cc })
|
|
4350
4391
|
};
|
|
4351
4392
|
//#endregion
|
|
4352
4393
|
//#region src/ui/index.js
|
|
4353
|
-
function
|
|
4354
|
-
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded",
|
|
4394
|
+
function Tc() {
|
|
4395
|
+
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", Ec) : Ec();
|
|
4355
4396
|
}
|
|
4356
|
-
function
|
|
4397
|
+
function Ec() {
|
|
4357
4398
|
let e = document.getElementById("sidebar"), t = null;
|
|
4358
4399
|
document.querySelectorAll(".btn-spinner").forEach((e) => {
|
|
4359
4400
|
e.addEventListener("click", (t) => {
|
|
@@ -4393,4 +4434,4 @@ function Sc() {
|
|
|
4393
4434
|
}), e && window.innerWidth < 992 && e.classList.add("hide");
|
|
4394
4435
|
}
|
|
4395
4436
|
//#endregion
|
|
4396
|
-
export {
|
|
4437
|
+
export { ls as ActivationError, ns as ActivationForm, Sr as BackButton, In as BulkCheckboxHeader, zn as BulkCheckboxRow, Wn as BulkOperationsBar, Kt as CkeditorEditor, Zn as ConfirmModal, br as DeleteButton, vr as EditButton, Pn as EmptyState, oo as ForgotPasswordForm, Qr as FormCheckbox, ai as FormDatePicker, zr as FormEmail, Rr as FormInput, Ei as FormLocalizedInput, ji as FormLocalizedWysiwyg, Vi as FormLocalizedWysiwygSimple, hi as FormMultiSelect, ra as FormPasswordConfirm, Ki as FormSelect, aa as FormSubmit, bi as FormTagInput, Gr as FormTextarea, ui as FormWysiwyg, Ii as FormWysiwygSimple, mr as ListingHeader, ma as LocalizationBar, za as LoginForm, Pt as MediaUpload, Tn as Pagination, jn as PerPage, dr as PublishedAtColumn, Or as ReadOnlySwitch, Lo as ResetPasswordForm, kn as Search, gr as ShowButton, Mr as ShowRow, Q as Sortable, Ht as TiptapEditor, Tr as ToggleSwitch, Sc as TranslationListing, dn as UserDetailTooltip, H as dayjs, K as formatDate, q as formatDatetime, J as formatTime, Y as getDateFnsLocale, it as initDateFnsLocale, Tc as initUI, Cc as mediaCollectionDefaults, wc as mediaCollectionProp, G as notifyError, W as notifySuccess, Ze as nowInTimezone, ut as useAdmin, X as useBaseAuth, ot as useBaseForm, ct as useBaseListing, ft as useResponsiveColumns };
|