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