1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
|
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("CoreHome"), require("vue"));
else if(typeof define === 'function' && define.amd)
define(["CoreHome", ], factory);
else if(typeof exports === 'object')
exports["CorePluginsAdmin"] = factory(require("CoreHome"), require("vue"));
else
root["CorePluginsAdmin"] = factory(root["CoreHome"], root["Vue"]);
})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__19dc__, __WEBPACK_EXTERNAL_MODULE__8bbf__) {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "plugins/CorePluginsAdmin/vue/dist/";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = "fae3");
/******/ })
/************************************************************************/
/******/ ({
/***/ "19dc":
/***/ (function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE__19dc__;
/***/ }),
/***/ "8bbf":
/***/ (function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__;
/***/ }),
/***/ "fae3":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, "FormField", function() { return /* reexport */ FormField; });
__webpack_require__.d(__webpack_exports__, "Field", function() { return /* reexport */ Field; });
__webpack_require__.d(__webpack_exports__, "PluginSettings", function() { return /* reexport */ PluginSettings; });
__webpack_require__.d(__webpack_exports__, "PluginFilter", function() { return /* reexport */ PluginFilter; });
__webpack_require__.d(__webpack_exports__, "PluginManagement", function() { return /* reexport */ PluginManagement; });
__webpack_require__.d(__webpack_exports__, "PluginUpload", function() { return /* reexport */ PluginUpload; });
__webpack_require__.d(__webpack_exports__, "SaveButton", function() { return /* reexport */ SaveButton; });
__webpack_require__.d(__webpack_exports__, "Form", function() { return /* reexport */ Form; });
__webpack_require__.d(__webpack_exports__, "GroupedSettings", function() { return /* reexport */ GroupedSettings; });
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
// This file is imported into lib/wc client bundles.
if (typeof window !== 'undefined') {
var currentScript = window.document.currentScript
if (false) { var getCurrentScript; }
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
if (src) {
__webpack_require__.p = src[1] // eslint-disable-line
}
}
// Indicate to webpack that this file can be concatenated
/* harmony default export */ var setPublicPath = (null);
// EXTERNAL MODULE: external "CoreHome"
var external_CoreHome_ = __webpack_require__("19dc");
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FormField.vue?vue&type=template&id=b3ece69c
var _hoisted_1 = {
class: "form-group row matomo-form-field"
};
var _hoisted_2 = {
key: 0,
class: "col s12"
};
var _hoisted_3 = {
key: 0,
class: "form-help"
};
var _hoisted_4 = {
key: 0,
class: "inline-help",
ref: "inlineHelp"
};
var _hoisted_5 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("br", null, null, -1);
function render(_ctx, _cache, $props, $setup, $data, $options) {
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])((Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", _hoisted_1, [_ctx.formField.introduction ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("h3", _hoisted_2, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.formField.introduction), 1)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", {
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])(["col s12", {
'input-field': _ctx.formField.uiControl !== 'checkbox' && _ctx.formField.uiControl !== 'radio',
'file-field': _ctx.formField.uiControl === 'file',
'm6': !_ctx.formField.fullWidth
}])
}, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveDynamicComponent"])(_ctx.childComponent), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["mergeProps"])(Object.assign(Object.assign({
formField: _ctx.formField
}, _ctx.formField), {}, {
modelValue: _ctx.processedModelValue,
availableOptions: _ctx.availableOptions
}, _ctx.extraChildComponentParams), {
"onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) {
return _ctx.onChange($event);
})
}), null, 16))], 2), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", {
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])(["col s12", {
'm6': !_ctx.formField.fullWidth
}])
}, [_ctx.showFormHelp ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", _hoisted_3, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", {
class: "form-description"
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.formField.description), 513), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], _ctx.formField.description]]), _ctx.formField.inlineHelp || _ctx.hasInlineHelpSlot ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", _hoisted_4, [_ctx.inlineHelpComponent ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveDynamicComponent"])(_ctx.inlineHelpComponent), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeProps"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["mergeProps"])({
key: 0
}, _ctx.inlineHelpBind)), null, 16)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, "inline-help")], 512)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", null, [_hoisted_5, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('General_Default')) + ": ", 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.defaultValuePrettyTruncated), 1)], 512), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], _ctx.showDefaultValue]])])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 2)], 512)), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], _ctx.showField]]);
}
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FormField.vue?vue&type=template&id=b3ece69c
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldCheckbox.vue?vue&type=template&id=d35fa436
var FieldCheckboxvue_type_template_id_d35fa436_hoisted_1 = {
class: "checkbox"
};
var FieldCheckboxvue_type_template_id_d35fa436_hoisted_2 = ["checked", "id", "name"];
var FieldCheckboxvue_type_template_id_d35fa436_hoisted_3 = ["innerHTML"];
function FieldCheckboxvue_type_template_id_d35fa436_render(_ctx, _cache, $props, $setup, $data, $options) {
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", FieldCheckboxvue_type_template_id_d35fa436_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("label", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("input", Object(external_commonjs_vue_commonjs2_vue_root_Vue_["mergeProps"])({
onChange: _cache[0] || (_cache[0] = function ($event) {
return _ctx.onChange($event);
})
}, _ctx.uiControlAttributes, {
value: 1,
checked: _ctx.isChecked,
type: "checkbox",
id: _ctx.name,
name: _ctx.name
}), null, 16, FieldCheckboxvue_type_template_id_d35fa436_hoisted_2), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
innerHTML: _ctx.$sanitize(_ctx.title)
}, null, 8, FieldCheckboxvue_type_template_id_d35fa436_hoisted_3)])]);
}
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldCheckbox.vue?vue&type=template&id=d35fa436
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-2!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldCheckbox.vue?vue&type=script&lang=ts
/* harmony default export */ var FieldCheckboxvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
props: {
modelValue: [Boolean, Number, String],
uiControlAttributes: Object,
name: String,
title: String
},
inheritAttrs: false,
emits: ['update:modelValue'],
methods: {
onChange: function onChange(event) {
var newValue = event.target.checked;
if (this.modelValue !== newValue) {
// undo checked change since we want the parent component to decide if it should go
// through
event.target.checked = !newValue;
this.$emit('update:modelValue', newValue);
}
}
},
computed: {
isChecked: function isChecked() {
return !!this.modelValue && this.modelValue !== '0';
}
}
}));
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldCheckbox.vue?vue&type=script&lang=ts
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldCheckbox.vue
FieldCheckboxvue_type_script_lang_ts.render = FieldCheckboxvue_type_template_id_d35fa436_render
/* harmony default export */ var FieldCheckbox = (FieldCheckboxvue_type_script_lang_ts);
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldCheckboxArray.vue?vue&type=template&id=1a40004f
var FieldCheckboxArrayvue_type_template_id_1a40004f_hoisted_1 = {
ref: "root"
};
var FieldCheckboxArrayvue_type_template_id_1a40004f_hoisted_2 = ["value", "checked", "onChange", "id", "name"];
function FieldCheckboxArrayvue_type_template_id_1a40004f_render(_ctx, _cache, $props, $setup, $data, $options) {
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", FieldCheckboxArrayvue_type_template_id_1a40004f_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("label", {
class: "fieldRadioTitle"
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.title), 513), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], _ctx.title]]), (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.availableOptions, function (checkboxModel, $index) {
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("p", {
key: $index,
class: "checkbox"
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("label", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("input", Object(external_commonjs_vue_commonjs2_vue_root_Vue_["mergeProps"])({
value: checkboxModel.key,
checked: !!_ctx.checkboxStates[$index],
onChange: function onChange($event) {
return _ctx.onChange($index);
}
}, _ctx.uiControlAttributes, {
type: "checkbox",
id: "".concat(_ctx.name).concat(checkboxModel.key),
name: checkboxModel.name
}), null, 16, FieldCheckboxArrayvue_type_template_id_1a40004f_hoisted_2), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(checkboxModel.value), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
class: "form-description"
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(checkboxModel.description), 513), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], checkboxModel.description]])])]);
}), 128))], 512);
}
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldCheckboxArray.vue?vue&type=template&id=1a40004f
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-2!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldCheckboxArray.vue?vue&type=script&lang=ts
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function getCheckboxStates(availableOptions, modelValue) {
return (availableOptions || []).map(function (o) {
return modelValue && modelValue.indexOf(o.key) !== -1;
});
}
/* harmony default export */ var FieldCheckboxArrayvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
props: {
modelValue: Array,
name: String,
title: String,
availableOptions: Array,
uiControlAttributes: Object,
type: String
},
inheritAttrs: false,
emits: ['update:modelValue'],
computed: {
checkboxStates: function checkboxStates() {
return getCheckboxStates(this.availableOptions, this.modelValue);
}
},
mounted: function mounted() {
window.Materialize.updateTextFields();
},
methods: {
onChange: function onChange(changedIndex) {
var checkboxStates = _toConsumableArray(this.checkboxStates);
checkboxStates[changedIndex] = !checkboxStates[changedIndex];
var availableOptions = this.availableOptions || {};
var newValue = [];
Object.values(availableOptions).forEach(function (option, index) {
if (checkboxStates[index]) {
newValue.push(option.key);
}
}); // undo checked changes since we want the parent component to decide if it should go
// through
this.$refs.root.querySelectorAll('input').forEach(function (inp) {
inp.checked = !inp.checked;
});
this.$emit('update:modelValue', newValue);
}
}
}));
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldCheckboxArray.vue?vue&type=script&lang=ts
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldCheckboxArray.vue
FieldCheckboxArrayvue_type_script_lang_ts.render = FieldCheckboxArrayvue_type_template_id_1a40004f_render
/* harmony default export */ var FieldCheckboxArray = (FieldCheckboxArrayvue_type_script_lang_ts);
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldExpandableSelect.vue?vue&type=template&id=c33fad48
var FieldExpandableSelectvue_type_template_id_c33fad48_hoisted_1 = {
class: "expandableSelector"
};
var FieldExpandableSelectvue_type_template_id_c33fad48_hoisted_2 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("svg", {
class: "caret",
height: "24",
viewBox: "0 0 24 24",
width: "24",
xmlns: "http://www.w3.org/2000/svg"
}, [/*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("path", {
d: "M7 10l5 5 5-5z"
}), /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("path", {
d: "M0 0h24v24H0z",
fill: "none"
})], -1);
var FieldExpandableSelectvue_type_template_id_c33fad48_hoisted_3 = ["value"];
var FieldExpandableSelectvue_type_template_id_c33fad48_hoisted_4 = {
class: "expandableList z-depth-2"
};
var FieldExpandableSelectvue_type_template_id_c33fad48_hoisted_5 = {
class: "searchContainer"
};
var _hoisted_6 = {
class: "collection firstLevel"
};
var _hoisted_7 = ["onClick"];
var _hoisted_8 = {
class: "collection secondLevel"
};
var _hoisted_9 = ["onClick"];
var _hoisted_10 = {
class: "primary-content"
};
var _hoisted_11 = ["title"];
function FieldExpandableSelectvue_type_template_id_c33fad48_render(_ctx, _cache, $props, $setup, $data, $options) {
var _directive_focus_if = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveDirective"])("focus-if");
var _directive_focus_anywhere_but_here = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveDirective"])("focus-anywhere-but-here");
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])((Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", FieldExpandableSelectvue_type_template_id_c33fad48_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", {
onClick: _cache[0] || (_cache[0] = function ($event) {
return _ctx.showSelect = !_ctx.showSelect;
}),
class: "select-wrapper"
}, [FieldExpandableSelectvue_type_template_id_c33fad48_hoisted_2, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("input", {
type: "text",
class: "select-dropdown",
readonly: "readonly",
value: _ctx.modelValueText
}, null, 8, FieldExpandableSelectvue_type_template_id_c33fad48_hoisted_3)]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", FieldExpandableSelectvue_type_template_id_c33fad48_hoisted_4, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", FieldExpandableSelectvue_type_template_id_c33fad48_hoisted_5, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("input", {
type: "text",
placeholder: "Search",
"onUpdate:modelValue": _cache[1] || (_cache[1] = function ($event) {
return _ctx.searchTerm = $event;
}),
class: "expandableSearch browser-default"
}, null, 512), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vModelText"], _ctx.searchTerm], [_directive_focus_if, _ctx.showSelect]])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("ul", _hoisted_6, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.availableOptions, function (options, index) {
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])((Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("li", {
class: "collection-item",
key: index
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h4", {
class: "expandableListCategory",
onClick: function onClick($event) {
return _ctx.onCategoryClicked(options);
}
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(options.group) + " ", 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])(["secondary-content", {
"icon-arrow-right": _ctx.showCategory !== options.group,
"icon-arrow-bottom": _ctx.showCategory === options.group
}])
}, null, 2)], 8, _hoisted_7), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("ul", _hoisted_8, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(options.values.filter(function (x) {
return x.value.toLowerCase().indexOf(_ctx.searchTerm.toLowerCase()) !== -1;
}), function (children) {
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("li", {
class: "expandableListItem collection-item valign-wrapper",
key: children.key,
onClick: function onClick($event) {
return _ctx.onValueClicked(children);
}
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", _hoisted_10, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(children.value), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
title: children.tooltip,
class: "secondary-content icon-help"
}, null, 8, _hoisted_11), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], children.tooltip]])], 8, _hoisted_9);
}), 128))], 512), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], _ctx.showCategory === options.group || _ctx.searchTerm]])], 512)), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], options.values.filter(function (x) {
return x.value.toLowerCase().indexOf(_ctx.searchTerm.toLowerCase()) !== -1;
}).length]]);
}), 128))])], 512), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], _ctx.showSelect]])], 512)), [[_directive_focus_anywhere_but_here, {
blur: _ctx.onBlur
}]]);
}
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldExpandableSelect.vue?vue&type=template&id=c33fad48
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-2!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldExpandableSelect.vue?vue&type=script&lang=ts
function getAvailableOptions(availableValues) {
var flatValues = [];
if (!availableValues) {
return flatValues;
}
var groups = {};
Object.values(availableValues).forEach(function (uncastedValue) {
var value = uncastedValue;
var group = value.group || '';
if (!(group in groups) || !groups[group]) {
groups[group] = {
values: [],
group: group
};
}
var formatted = {
key: value.key,
value: value.value
};
if ('tooltip' in value && value.tooltip) {
formatted.tooltip = value.tooltip;
}
groups[group].values.push(formatted);
});
Object.values(groups).forEach(function (group) {
if (group.values.length) {
flatValues.push(group);
}
});
return flatValues;
}
/* harmony default export */ var FieldExpandableSelectvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
props: {
modelValue: [Number, String],
availableOptions: Array,
title: String
},
directives: {
FocusAnywhereButHere: external_CoreHome_["FocusAnywhereButHere"],
FocusIf: external_CoreHome_["FocusIf"]
},
inheritAttrs: false,
emits: ['update:modelValue'],
data: function data() {
return {
showSelect: false,
searchTerm: '',
showCategory: ''
};
},
computed: {
modelValueText: function modelValueText() {
if (this.title) {
return this.title;
}
var key = this.modelValue;
var availableOptions = this.availableOptions || [];
var keyItem;
availableOptions.some(function (option) {
keyItem = option.values.find(function (item) {
return item.key === key;
});
return keyItem; // stop iterating if found
});
if (keyItem) {
return keyItem.value ? "".concat(keyItem.value) : '';
}
return key ? "".concat(key) : '';
}
},
methods: {
onBlur: function onBlur() {
this.showSelect = false;
},
onCategoryClicked: function onCategoryClicked(options) {
if (this.showCategory === options.group) {
this.showCategory = '';
} else {
this.showCategory = options.group;
}
},
onValueClicked: function onValueClicked(selectedValue) {
this.$emit('update:modelValue', selectedValue.key);
this.showSelect = false;
}
}
}));
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldExpandableSelect.vue?vue&type=script&lang=ts
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldExpandableSelect.vue
FieldExpandableSelectvue_type_script_lang_ts.render = FieldExpandableSelectvue_type_template_id_c33fad48_render
/* harmony default export */ var FieldExpandableSelect = (FieldExpandableSelectvue_type_script_lang_ts);
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldFieldArray.vue?vue&type=template&id=19925759
var FieldFieldArrayvue_type_template_id_19925759_hoisted_1 = ["for", "innerHTML"];
function FieldFieldArrayvue_type_template_id_19925759_render(_ctx, _cache, $props, $setup, $data, $options) {
var _component_FieldArray = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("FieldArray");
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("label", {
for: _ctx.name,
innerHTML: _ctx.$sanitize(_ctx.title)
}, null, 8, FieldFieldArrayvue_type_template_id_19925759_hoisted_1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_FieldArray, {
name: _ctx.name,
"model-value": _ctx.modelValue,
"onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) {
return _ctx.onValueUpdate($event);
}),
field: _ctx.uiControlAttributes.field
}, null, 8, ["name", "model-value", "field"])]);
}
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldFieldArray.vue?vue&type=template&id=19925759
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-2!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldFieldArray.vue?vue&type=script&lang=ts
/* harmony default export */ var FieldFieldArrayvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
components: {
FieldArray: external_CoreHome_["FieldArray"]
},
props: {
name: String,
title: String,
modelValue: null,
uiControlAttributes: Object
},
inheritAttrs: false,
emits: ['update:modelValue'],
methods: {
onValueUpdate: function onValueUpdate(newValue) {
this.$emit('update:modelValue', newValue);
}
}
}));
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldFieldArray.vue?vue&type=script&lang=ts
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldFieldArray.vue
FieldFieldArrayvue_type_script_lang_ts.render = FieldFieldArrayvue_type_template_id_19925759_render
/* harmony default export */ var FieldFieldArray = (FieldFieldArrayvue_type_script_lang_ts);
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldFile.vue?vue&type=template&id=2c0fffb5
var FieldFilevue_type_template_id_2c0fffb5_hoisted_1 = {
class: "btn"
};
var FieldFilevue_type_template_id_2c0fffb5_hoisted_2 = ["for", "innerHTML"];
var FieldFilevue_type_template_id_2c0fffb5_hoisted_3 = ["name", "id"];
var FieldFilevue_type_template_id_2c0fffb5_hoisted_4 = {
class: "file-path-wrapper"
};
var FieldFilevue_type_template_id_2c0fffb5_hoisted_5 = ["value"];
function FieldFilevue_type_template_id_2c0fffb5_render(_ctx, _cache, $props, $setup, $data, $options) {
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", FieldFilevue_type_template_id_2c0fffb5_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
for: _ctx.name,
innerHTML: _ctx.$sanitize(_ctx.title)
}, null, 8, FieldFilevue_type_template_id_2c0fffb5_hoisted_2), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("input", {
ref: "fileInput",
name: _ctx.name,
type: "file",
id: _ctx.name,
onChange: _cache[0] || (_cache[0] = function ($event) {
return _ctx.onChange($event);
})
}, null, 40, FieldFilevue_type_template_id_2c0fffb5_hoisted_3)]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", FieldFilevue_type_template_id_2c0fffb5_hoisted_4, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("input", {
class: "file-path validate",
value: _ctx.filePath,
type: "text"
}, null, 8, FieldFilevue_type_template_id_2c0fffb5_hoisted_5)])]);
}
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldFile.vue?vue&type=template&id=2c0fffb5
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-2!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldFile.vue?vue&type=script&lang=ts
/* harmony default export */ var FieldFilevue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
props: {
name: String,
title: String,
modelValue: [String, File]
},
inheritAttrs: false,
emits: ['update:modelValue'],
watch: {
modelValue: function modelValue(v) {
if (!v || v === '') {
var fileInputElement = this.$refs.fileInput;
fileInputElement.value = '';
}
}
},
methods: {
onChange: function onChange(event) {
var files = event.target.files;
if (!files) {
return;
}
var file = files.item(0);
this.$emit('update:modelValue', file);
}
},
computed: {
filePath: function filePath() {
if (this.modelValue instanceof File) {
return this.$refs.fileInput.value;
}
return undefined;
}
}
}));
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldFile.vue?vue&type=script&lang=ts
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldFile.vue
FieldFilevue_type_script_lang_ts.render = FieldFilevue_type_template_id_2c0fffb5_render
/* harmony default export */ var FieldFile = (FieldFilevue_type_script_lang_ts);
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldHidden.vue?vue&type=template&id=20e3ce54
var FieldHiddenvue_type_template_id_20e3ce54_hoisted_1 = ["type", "name", "value"];
function FieldHiddenvue_type_template_id_20e3ce54_render(_ctx, _cache, $props, $setup, $data, $options) {
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("input", {
type: _ctx.uiControl,
name: _ctx.name,
value: _ctx.modelValue,
onChange: _cache[0] || (_cache[0] = function ($event) {
return _ctx.onChange($event);
})
}, null, 40, FieldHiddenvue_type_template_id_20e3ce54_hoisted_1)]);
}
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldHidden.vue?vue&type=template&id=20e3ce54
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-2!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldHidden.vue?vue&type=script&lang=ts
/* harmony default export */ var FieldHiddenvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
props: {
modelValue: null,
uiControl: String,
name: String
},
inheritAttrs: false,
emits: ['update:modelValue'],
methods: {
onChange: function onChange(event) {
this.$emit('update:modelValue', event.target.value);
}
}
}));
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldHidden.vue?vue&type=script&lang=ts
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldHidden.vue
FieldHiddenvue_type_script_lang_ts.render = FieldHiddenvue_type_template_id_20e3ce54_render
/* harmony default export */ var FieldHidden = (FieldHiddenvue_type_script_lang_ts);
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldMultituple.vue?vue&type=template&id=7469c188
var FieldMultituplevue_type_template_id_7469c188_hoisted_1 = {
class: "fieldMultiTuple"
};
var FieldMultituplevue_type_template_id_7469c188_hoisted_2 = ["for", "innerHTML"];
function FieldMultituplevue_type_template_id_7469c188_render(_ctx, _cache, $props, $setup, $data, $options) {
var _component_MultiPairField = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("MultiPairField");
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", FieldMultituplevue_type_template_id_7469c188_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("label", {
for: _ctx.name,
innerHTML: _ctx.$sanitize(_ctx.title)
}, null, 8, FieldMultituplevue_type_template_id_7469c188_hoisted_2), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_MultiPairField, {
name: _ctx.name,
"model-value": _ctx.modelValue,
"onUpdate:modelValue": _ctx.onUpdateValue,
field1: _ctx.uiControlAttributes.field1,
field2: _ctx.uiControlAttributes.field2,
field3: _ctx.uiControlAttributes.field3,
field4: _ctx.uiControlAttributes.field4
}, null, 8, ["name", "model-value", "onUpdate:modelValue", "field1", "field2", "field3", "field4"])]);
}
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldMultituple.vue?vue&type=template&id=7469c188
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-2!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldMultituple.vue?vue&type=script&lang=ts
/* harmony default export */ var FieldMultituplevue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
props: {
name: String,
title: String,
modelValue: null,
uiControlAttributes: Object
},
inheritAttrs: false,
components: {
MultiPairField: external_CoreHome_["MultiPairField"]
},
emits: ['update:modelValue'],
methods: {
onUpdateValue: function onUpdateValue(newValue) {
this.$emit('update:modelValue', newValue);
}
}
}));
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldMultituple.vue?vue&type=script&lang=ts
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldMultituple.vue
FieldMultituplevue_type_script_lang_ts.render = FieldMultituplevue_type_template_id_7469c188_render
/* harmony default export */ var FieldMultituple = (FieldMultituplevue_type_script_lang_ts);
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldNumber.vue?vue&type=template&id=b6f05a1e
var FieldNumbervue_type_template_id_b6f05a1e_hoisted_1 = ["type", "id", "name", "value"];
var FieldNumbervue_type_template_id_b6f05a1e_hoisted_2 = ["for", "innerHTML"];
function FieldNumbervue_type_template_id_b6f05a1e_render(_ctx, _cache, $props, $setup, $data, $options) {
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("input", Object(external_commonjs_vue_commonjs2_vue_root_Vue_["mergeProps"])({
class: "control_".concat(_ctx.uiControl),
type: _ctx.uiControl,
id: _ctx.name,
name: _ctx.name,
value: _ctx.modelValueFormatted,
onKeydown: _cache[0] || (_cache[0] = function ($event) {
return _ctx.onChange($event);
}),
onChange: _cache[1] || (_cache[1] = function ($event) {
return _ctx.onChange($event);
})
}, _ctx.uiControlAttributes), null, 16, FieldNumbervue_type_template_id_b6f05a1e_hoisted_1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("label", {
for: _ctx.name,
innerHTML: _ctx.$sanitize(_ctx.title)
}, null, 8, FieldNumbervue_type_template_id_b6f05a1e_hoisted_2)], 64);
}
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldNumber.vue?vue&type=template&id=b6f05a1e
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-2!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldNumber.vue?vue&type=script&lang=ts
/* harmony default export */ var FieldNumbervue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
props: {
uiControl: String,
name: String,
title: String,
modelValue: [Number, String],
uiControlAttributes: Object
},
inheritAttrs: false,
emits: ['update:modelValue'],
created: function created() {
this.onChange = Object(external_CoreHome_["debounce"])(this.onChange.bind(this), 50);
},
methods: {
onChange: function onChange(event) {
var _this = this;
var value = parseFloat(event.target.value);
this.$emit('update:modelValue', value);
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])(function () {
if (event.target.value !== _this.modelValueFormatted) {
// change to previous value if the parent component did not update the model value
// (done manually because Vue will not notice if a value does NOT change)
event.target.value = _this.modelValueFormatted;
}
});
}
},
mounted: function mounted() {
window.Materialize.updateTextFields();
},
watch: {
modelValue: function modelValue() {
setTimeout(function () {
window.Materialize.updateTextFields();
});
}
},
computed: {
modelValueFormatted: function modelValueFormatted() {
return (this.modelValue || '').toString();
}
}
}));
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldNumber.vue?vue&type=script&lang=ts
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldNumber.vue
FieldNumbervue_type_script_lang_ts.render = FieldNumbervue_type_template_id_b6f05a1e_render
/* harmony default export */ var FieldNumber = (FieldNumbervue_type_script_lang_ts);
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldRadio.vue?vue&type=template&id=37349c90
var FieldRadiovue_type_template_id_37349c90_hoisted_1 = {
ref: "root"
};
var FieldRadiovue_type_template_id_37349c90_hoisted_2 = ["value", "id", "name", "disabled", "checked"];
function FieldRadiovue_type_template_id_37349c90_render(_ctx, _cache, $props, $setup, $data, $options) {
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", FieldRadiovue_type_template_id_37349c90_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("label", {
class: "fieldRadioTitle"
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.title), 513), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], _ctx.title]]), (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.availableOptions || [], function (radioModel) {
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("p", {
key: radioModel.key,
class: "radio"
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("label", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("input", Object(external_commonjs_vue_commonjs2_vue_root_Vue_["mergeProps"])({
value: radioModel.key,
onChange: _cache[0] || (_cache[0] = function ($event) {
return _ctx.onChange($event);
}),
type: "radio",
id: "".concat(_ctx.name).concat(radioModel.key),
name: _ctx.name,
disabled: radioModel.disabled || _ctx.disabled
}, _ctx.uiControlAttributes, {
checked: _ctx.modelValue === radioModel.key || "".concat(_ctx.modelValue) === radioModel.key
}), null, 16, FieldRadiovue_type_template_id_37349c90_hoisted_2), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(radioModel.value) + " ", 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
class: "form-description"
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(radioModel.description), 513), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], radioModel.description]])])])]);
}), 128))], 512);
}
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldRadio.vue?vue&type=template&id=37349c90
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-2!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldRadio.vue?vue&type=script&lang=ts
/* harmony default export */ var FieldRadiovue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
props: {
title: String,
availableOptions: Array,
name: String,
disabled: Boolean,
uiControlAttributes: Object,
modelValue: [String, Number]
},
inheritAttrs: false,
emits: ['update:modelValue'],
methods: {
onChange: function onChange(event) {
var _this = this;
// change to previous value so the parent component can determine if this change should
// go through
this.$refs.root.querySelectorAll('input').forEach(function (inp, i) {
var _this$availableOption;
if (!((_this$availableOption = _this.availableOptions) !== null && _this$availableOption !== void 0 && _this$availableOption[i])) {
return;
}
var key = _this.availableOptions[i].key;
inp.checked = _this.modelValue === key || "".concat(_this.modelValue) === key;
});
this.$emit('update:modelValue', event.target.value);
}
}
}));
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldRadio.vue?vue&type=script&lang=ts
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldRadio.vue
FieldRadiovue_type_script_lang_ts.render = FieldRadiovue_type_template_id_37349c90_render
/* harmony default export */ var FieldRadio = (FieldRadiovue_type_script_lang_ts);
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldSelect.vue?vue&type=template&id=1f753a86
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || FieldSelectvue_type_template_id_1f753a86_unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function FieldSelectvue_type_template_id_1f753a86_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return FieldSelectvue_type_template_id_1f753a86_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return FieldSelectvue_type_template_id_1f753a86_arrayLikeToArray(o, minLen); }
function FieldSelectvue_type_template_id_1f753a86_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
var FieldSelectvue_type_template_id_1f753a86_hoisted_1 = {
key: 0,
class: "matomo-field-select"
};
var FieldSelectvue_type_template_id_1f753a86_hoisted_2 = ["multiple", "name"];
var FieldSelectvue_type_template_id_1f753a86_hoisted_3 = ["label"];
var FieldSelectvue_type_template_id_1f753a86_hoisted_4 = ["value", "selected", "disabled"];
var FieldSelectvue_type_template_id_1f753a86_hoisted_5 = ["for", "innerHTML"];
var FieldSelectvue_type_template_id_1f753a86_hoisted_6 = {
key: 1,
class: "matomo-field-select"
};
var FieldSelectvue_type_template_id_1f753a86_hoisted_7 = ["multiple", "name"];
var FieldSelectvue_type_template_id_1f753a86_hoisted_8 = ["value", "selected", "disabled"];
var FieldSelectvue_type_template_id_1f753a86_hoisted_9 = ["for", "innerHTML"];
function FieldSelectvue_type_template_id_1f753a86_render(_ctx, _cache, $props, $setup, $data, $options) {
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, [_ctx.groupedOptions ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", FieldSelectvue_type_template_id_1f753a86_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("select", Object(external_commonjs_vue_commonjs2_vue_root_Vue_["mergeProps"])({
ref: "select",
class: "grouped",
multiple: _ctx.multiple,
name: _ctx.name,
onChange: _cache[0] || (_cache[0] = function ($event) {
return _ctx.onChange($event);
})
}, _ctx.uiControlAttributes), [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.groupedOptions, function (_ref) {
var _ref2 = _slicedToArray(_ref, 2),
group = _ref2[0],
options = _ref2[1];
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("optgroup", {
key: group,
label: group
}, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(options, function (option) {
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("option", {
key: option.key,
value: "string:".concat(option.key),
selected: _ctx.multiple ? _ctx.modelValue && _ctx.modelValue.indexOf(option.key) !== -1 : _ctx.modelValue === option.key,
disabled: option.disabled
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(option.value), 9, FieldSelectvue_type_template_id_1f753a86_hoisted_4);
}), 128))], 8, FieldSelectvue_type_template_id_1f753a86_hoisted_3);
}), 128))], 16, FieldSelectvue_type_template_id_1f753a86_hoisted_2), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("label", {
for: _ctx.name,
innerHTML: _ctx.$sanitize(_ctx.title)
}, null, 8, FieldSelectvue_type_template_id_1f753a86_hoisted_5)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), !_ctx.groupedOptions && _ctx.options ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", FieldSelectvue_type_template_id_1f753a86_hoisted_6, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("select", Object(external_commonjs_vue_commonjs2_vue_root_Vue_["mergeProps"])({
class: "ungrouped",
ref: "select",
multiple: _ctx.multiple,
name: _ctx.name,
onChange: _cache[1] || (_cache[1] = function ($event) {
return _ctx.onChange($event);
})
}, _ctx.uiControlAttributes), [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.options, function (option) {
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("option", {
key: option.key,
value: "string:".concat(option.key),
selected: _ctx.multiple ? _ctx.modelValue && _ctx.modelValue.indexOf(option.key) !== -1 : _ctx.modelValue === option.key,
disabled: option.disabled
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(option.value), 9, FieldSelectvue_type_template_id_1f753a86_hoisted_8);
}), 128))], 16, FieldSelectvue_type_template_id_1f753a86_hoisted_7), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("label", {
for: _ctx.name,
innerHTML: _ctx.$sanitize(_ctx.title)
}, null, 8, FieldSelectvue_type_template_id_1f753a86_hoisted_9)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64);
}
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldSelect.vue?vue&type=template&id=1f753a86
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-2!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldSelect.vue?vue&type=script&lang=ts
function FieldSelectvue_type_script_lang_ts_toConsumableArray(arr) { return FieldSelectvue_type_script_lang_ts_arrayWithoutHoles(arr) || FieldSelectvue_type_script_lang_ts_iterableToArray(arr) || FieldSelectvue_type_script_lang_ts_unsupportedIterableToArray(arr) || FieldSelectvue_type_script_lang_ts_nonIterableSpread(); }
function FieldSelectvue_type_script_lang_ts_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function FieldSelectvue_type_script_lang_ts_iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
function FieldSelectvue_type_script_lang_ts_arrayWithoutHoles(arr) { if (Array.isArray(arr)) return FieldSelectvue_type_script_lang_ts_arrayLikeToArray(arr); }
function FieldSelectvue_type_script_lang_ts_slicedToArray(arr, i) { return FieldSelectvue_type_script_lang_ts_arrayWithHoles(arr) || FieldSelectvue_type_script_lang_ts_iterableToArrayLimit(arr, i) || FieldSelectvue_type_script_lang_ts_unsupportedIterableToArray(arr, i) || FieldSelectvue_type_script_lang_ts_nonIterableRest(); }
function FieldSelectvue_type_script_lang_ts_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function FieldSelectvue_type_script_lang_ts_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return FieldSelectvue_type_script_lang_ts_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return FieldSelectvue_type_script_lang_ts_arrayLikeToArray(o, minLen); }
function FieldSelectvue_type_script_lang_ts_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function FieldSelectvue_type_script_lang_ts_iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function FieldSelectvue_type_script_lang_ts_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function initMaterialSelect(select, modelValue, placeholder) {
var uiControlOptions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
var multiple = arguments.length > 4 ? arguments[4] : undefined;
if (!select) {
return;
}
var $select = window.$(select); // reset selected since materialize removes them
Array.from(select.options).forEach(function (opt) {
if (multiple) {
opt.selected = !!modelValue && modelValue.indexOf(opt.value.replace(/^string:/, '')) !== -1;
} else {
opt.selected = "string:".concat(modelValue) === opt.value;
}
});
$select.formSelect(uiControlOptions); // add placeholder to input
if (placeholder) {
var $materialInput = $select.closest('.select-wrapper').find('input');
$materialInput.attr('placeholder', placeholder);
}
}
function hasGroupedValues(availableValues) {
if (Array.isArray(availableValues) || !(_typeof(availableValues) === 'object')) {
return false;
}
return Object.values(availableValues).some(function (v) {
return _typeof(v) === 'object';
});
}
function hasOption(flatValues, key) {
return flatValues.some(function (f) {
return f.key === key;
});
}
function FieldSelectvue_type_script_lang_ts_getAvailableOptions(givenAvailableValues, type, uiControlAttributes) {
if (!givenAvailableValues) {
return [];
}
var hasGroups = true;
var availableValues = givenAvailableValues;
if (!hasGroupedValues(availableValues)) {
availableValues = {
'': givenAvailableValues
};
hasGroups = false;
}
var flatValues = [];
Object.entries(availableValues).forEach(function (_ref) {
var _ref2 = FieldSelectvue_type_script_lang_ts_slicedToArray(_ref, 2),
group = _ref2[0],
values = _ref2[1];
Object.entries(values).forEach(function (_ref3) {
var _ref4 = FieldSelectvue_type_script_lang_ts_slicedToArray(_ref3, 2),
valueObjKey = _ref4[0],
value = _ref4[1];
if (value && _typeof(value) === 'object' && typeof value.key !== 'undefined') {
flatValues.push(value);
return;
}
var key = valueObjKey;
if (type === 'integer' && typeof valueObjKey === 'string') {
key = parseInt(valueObjKey, 10);
}
flatValues.push({
group: hasGroups ? group : undefined,
key: key,
value: value
});
});
}); // for selects w/ a placeholder, add an option to unset the select
if (uiControlAttributes !== null && uiControlAttributes !== void 0 && uiControlAttributes.placeholder && !hasOption(flatValues, '')) {
return [{
key: '',
value: ''
}].concat(flatValues);
}
return flatValues;
}
function handleOldAngularJsValues(value) {
if (typeof value === 'string') {
return value.replace(/^string:/, '');
}
return value;
}
/* harmony default export */ var FieldSelectvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
props: {
modelValue: null,
multiple: Boolean,
name: String,
title: String,
availableOptions: Array,
uiControlAttributes: Object,
uiControlOptions: Object
},
inheritAttrs: false,
emits: ['update:modelValue'],
computed: {
options: function options() {
// if modelValue is empty, but there is no empty value allowed in availableOptions,
// add one temporarily until something is set
var availableOptions = this.availableOptions;
if (availableOptions && !hasOption(availableOptions, '') && (typeof this.modelValue === 'undefined' || this.modelValue === null || this.modelValue === '')) {
return [{
key: '',
value: this.modelValue,
group: this.hasGroups ? '' : undefined
}].concat(FieldSelectvue_type_script_lang_ts_toConsumableArray(availableOptions));
}
return availableOptions;
},
hasGroups: function hasGroups() {
var availableOptions = this.availableOptions;
return availableOptions && availableOptions[0] && typeof availableOptions[0].group !== 'undefined';
},
groupedOptions: function groupedOptions() {
var options = this.options;
if (!this.hasGroups || !options) {
return null;
}
var groups = {};
options.forEach(function (entry) {
var group = entry.group;
groups[group] = groups[group] || [];
groups[group].push(entry);
});
var result = Object.entries(groups);
result.sort(function (lhs, rhs) {
if (lhs[0] < rhs[0]) {
return -1;
}
if (lhs[0] > rhs[0]) {
return 1;
}
return 0;
});
return result;
}
},
methods: {
onChange: function onChange(event) {
var element = event.target;
var newValue;
if (this.multiple) {
newValue = Array.from(element.options).filter(function (e) {
return e.selected;
}).map(function (e) {
return e.value;
});
newValue = newValue.map(function (x) {
return handleOldAngularJsValues(x);
});
} else {
newValue = element.value;
newValue = handleOldAngularJsValues(newValue);
} // change to previous value so the parent component can determine if this change should
// go through
this.onModelValueChange(this.modelValue);
this.$emit('update:modelValue', newValue);
},
onModelValueChange: function onModelValueChange(newVal) {
var _this = this;
window.$(this.$refs.select).val(newVal);
setTimeout(function () {
var _this$uiControlAttrib;
initMaterialSelect(_this.$refs.select, newVal, (_this$uiControlAttrib = _this.uiControlAttributes) === null || _this$uiControlAttrib === void 0 ? void 0 : _this$uiControlAttrib.placeholder, _this.uiControlOptions, _this.multiple);
});
}
},
watch: {
modelValue: function modelValue(newVal) {
this.onModelValueChange(newVal);
},
'uiControlAttributes.disabled': {
handler: function handler(newVal, oldVal) {
var _this2 = this;
setTimeout(function () {
if (newVal !== oldVal) {
var _this2$uiControlAttri;
initMaterialSelect(_this2.$refs.select, _this2.modelValue, (_this2$uiControlAttri = _this2.uiControlAttributes) === null || _this2$uiControlAttri === void 0 ? void 0 : _this2$uiControlAttri.placeholder, _this2.uiControlOptions, _this2.multiple);
}
});
}
},
availableOptions: function availableOptions(newVal, oldVal) {
var _this3 = this;
if (newVal !== oldVal) {
setTimeout(function () {
var _this3$uiControlAttri;
initMaterialSelect(_this3.$refs.select, _this3.modelValue, (_this3$uiControlAttri = _this3.uiControlAttributes) === null || _this3$uiControlAttri === void 0 ? void 0 : _this3$uiControlAttri.placeholder, _this3.uiControlOptions, _this3.multiple);
});
}
}
},
mounted: function mounted() {
var _this4 = this;
setTimeout(function () {
var _this4$uiControlAttri;
initMaterialSelect(_this4.$refs.select, _this4.modelValue, (_this4$uiControlAttri = _this4.uiControlAttributes) === null || _this4$uiControlAttri === void 0 ? void 0 : _this4$uiControlAttri.placeholder, _this4.uiControlOptions, _this4.multiple);
});
}
}));
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldSelect.vue?vue&type=script&lang=ts
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldSelect.vue
FieldSelectvue_type_script_lang_ts.render = FieldSelectvue_type_template_id_1f753a86_render
/* harmony default export */ var FieldSelect = (FieldSelectvue_type_script_lang_ts);
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldSite.vue?vue&type=template&id=50ac73cc
var FieldSitevue_type_template_id_50ac73cc_hoisted_1 = ["for", "innerHTML"];
var FieldSitevue_type_template_id_50ac73cc_hoisted_2 = {
class: "sites_autocomplete"
};
function FieldSitevue_type_template_id_50ac73cc_render(_ctx, _cache, $props, $setup, $data, $options) {
var _component_SiteSelector = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("SiteSelector");
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("label", {
for: _ctx.name,
class: "siteSelectorLabel",
innerHTML: _ctx.$sanitize(_ctx.title)
}, null, 8, FieldSitevue_type_template_id_50ac73cc_hoisted_1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", FieldSitevue_type_template_id_50ac73cc_hoisted_2, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_SiteSelector, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["mergeProps"])({
"model-value": _ctx.modelValue,
"onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) {
return _ctx.onChange($event);
}),
id: _ctx.name,
"show-all-sites-item": _ctx.uiControlAttributes.showAllSitesItem || false,
"switch-site-on-select": false,
"show-selected-site": true,
"only-sites-with-admin-access": _ctx.uiControlAttributes.onlySitesWithAdminAccess || false
}, _ctx.uiControlAttributes), null, 16, ["model-value", "id", "show-all-sites-item", "only-sites-with-admin-access"])])]);
}
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldSite.vue?vue&type=template&id=50ac73cc
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-2!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldSite.vue?vue&type=script&lang=ts
/* harmony default export */ var FieldSitevue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
props: {
name: String,
title: String,
modelValue: Object,
uiControlAttributes: Object
},
inheritAttrs: false,
components: {
SiteSelector: external_CoreHome_["SiteSelector"]
},
emits: ['update:modelValue'],
methods: {
onChange: function onChange(newValue) {
this.$emit('update:modelValue', newValue);
}
}
}));
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldSite.vue?vue&type=script&lang=ts
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldSite.vue
FieldSitevue_type_script_lang_ts.render = FieldSitevue_type_template_id_50ac73cc_render
/* harmony default export */ var FieldSite = (FieldSitevue_type_script_lang_ts);
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldText.vue?vue&type=template&id=66d5a68a
var FieldTextvue_type_template_id_66d5a68a_hoisted_1 = ["type", "id", "name", "value"];
var FieldTextvue_type_template_id_66d5a68a_hoisted_2 = ["for", "innerHTML"];
function FieldTextvue_type_template_id_66d5a68a_render(_ctx, _cache, $props, $setup, $data, $options) {
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("input", Object(external_commonjs_vue_commonjs2_vue_root_Vue_["mergeProps"])({
class: "control_".concat(_ctx.uiControl),
type: _ctx.uiControl,
id: _ctx.name,
name: _ctx.name,
value: _ctx.modelValueText,
onKeydown: _cache[0] || (_cache[0] = function ($event) {
return _ctx.onKeydown($event);
}),
onChange: _cache[1] || (_cache[1] = function ($event) {
return _ctx.onKeydown($event);
})
}, _ctx.uiControlAttributes), null, 16, FieldTextvue_type_template_id_66d5a68a_hoisted_1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("label", {
for: _ctx.name,
innerHTML: _ctx.$sanitize(_ctx.title)
}, null, 8, FieldTextvue_type_template_id_66d5a68a_hoisted_2)], 64);
}
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldText.vue?vue&type=template&id=66d5a68a
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-2!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldText.vue?vue&type=script&lang=ts
/* harmony default export */ var FieldTextvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
props: {
title: String,
name: String,
uiControlAttributes: Object,
modelValue: [String, Number],
uiControl: String
},
inheritAttrs: false,
emits: ['update:modelValue'],
computed: {
modelValueText: function modelValueText() {
if (typeof this.modelValue === 'undefined' || this.modelValue === null) {
return '';
}
return this.modelValue.toString();
}
},
created: function created() {
// debounce because puppeteer types reeaally fast
this.onKeydown = Object(external_CoreHome_["debounce"])(this.onKeydown.bind(this), 50);
},
mounted: function mounted() {
setTimeout(function () {
window.Materialize.updateTextFields();
});
},
watch: {
modelValue: function modelValue() {
setTimeout(function () {
window.Materialize.updateTextFields();
});
}
},
methods: {
onKeydown: function onKeydown(event) {
var _this = this;
var newValue = event.target.value;
if (this.modelValue !== newValue) {
this.$emit('update:modelValue', newValue);
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])(function () {
if (event.target.value !== _this.modelValueText) {
// change to previous value if the parent component did not update the model value
// (done manually because Vue will not notice if a value does NOT change)
event.target.value = _this.modelValueText;
}
});
}
}
}
}));
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldText.vue?vue&type=script&lang=ts
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldText.vue
FieldTextvue_type_script_lang_ts.render = FieldTextvue_type_template_id_66d5a68a_render
/* harmony default export */ var FieldText = (FieldTextvue_type_script_lang_ts);
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldTextArray.vue?vue&type=template&id=2c4e387e
var FieldTextArrayvue_type_template_id_2c4e387e_hoisted_1 = ["for", "innerHTML"];
var FieldTextArrayvue_type_template_id_2c4e387e_hoisted_2 = ["type", "name", "value"];
function FieldTextArrayvue_type_template_id_2c4e387e_render(_ctx, _cache, $props, $setup, $data, $options) {
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("label", {
for: _ctx.name,
innerHTML: _ctx.$sanitize(_ctx.title)
}, null, 8, FieldTextArrayvue_type_template_id_2c4e387e_hoisted_1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("input", Object(external_commonjs_vue_commonjs2_vue_root_Vue_["mergeProps"])({
class: "control_".concat(_ctx.uiControl),
type: _ctx.uiControl,
name: _ctx.name,
onKeydown: _cache[0] || (_cache[0] = function ($event) {
return _ctx.onKeydown($event);
}),
onChange: _cache[1] || (_cache[1] = function ($event) {
return _ctx.onKeydown($event);
}),
value: _ctx.concattedValues
}, _ctx.uiControlAttributes), null, 16, FieldTextArrayvue_type_template_id_2c4e387e_hoisted_2)]);
}
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldTextArray.vue?vue&type=template&id=2c4e387e
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-2!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldTextArray.vue?vue&type=script&lang=ts
/* harmony default export */ var FieldTextArrayvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
props: {
name: String,
title: String,
uiControl: String,
modelValue: Array,
uiControlAttributes: Object
},
inheritAttrs: false,
computed: {
concattedValues: function concattedValues() {
if (typeof this.modelValue === 'string') {
return this.modelValue;
}
return (this.modelValue || []).join(', ');
}
},
emits: ['update:modelValue'],
created: function created() {
// debounce because puppeteer types reeaally fast
this.onKeydown = Object(external_CoreHome_["debounce"])(this.onKeydown.bind(this), 50);
},
methods: {
onKeydown: function onKeydown(event) {
var _this = this;
var values = event.target.value.split(',').map(function (v) {
return v.trim();
});
if (values.join(', ') !== this.concattedValues) {
this.$emit('update:modelValue', values);
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])(function () {
if (event.target.value !== _this.concattedValues) {
// change to previous value if the parent component did not update the model value
// (done manually because Vue will not notice if a value does NOT change)
event.target.value = _this.concattedValues;
}
});
}
}
}
}));
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldTextArray.vue?vue&type=script&lang=ts
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldTextArray.vue
FieldTextArrayvue_type_script_lang_ts.render = FieldTextArrayvue_type_template_id_2c4e387e_render
/* harmony default export */ var FieldTextArray = (FieldTextArrayvue_type_script_lang_ts);
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldTextarea.vue?vue&type=template&id=48b83e34
var FieldTextareavue_type_template_id_48b83e34_hoisted_1 = ["name", "id", "value"];
var FieldTextareavue_type_template_id_48b83e34_hoisted_2 = ["for", "innerHTML"];
function FieldTextareavue_type_template_id_48b83e34_render(_ctx, _cache, $props, $setup, $data, $options) {
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("textarea", Object(external_commonjs_vue_commonjs2_vue_root_Vue_["mergeProps"])({
name: _ctx.name
}, _ctx.uiControlAttributes, {
id: _ctx.name,
value: _ctx.modelValueText,
onKeydown: _cache[0] || (_cache[0] = function ($event) {
return _ctx.onKeydown($event);
}),
onChange: _cache[1] || (_cache[1] = function ($event) {
return _ctx.onKeydown($event);
}),
class: "materialize-textarea",
ref: "textarea"
}), null, 16, FieldTextareavue_type_template_id_48b83e34_hoisted_1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("label", {
for: _ctx.name,
innerHTML: _ctx.$sanitize(_ctx.title)
}, null, 8, FieldTextareavue_type_template_id_48b83e34_hoisted_2)], 64);
}
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldTextarea.vue?vue&type=template&id=48b83e34
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-2!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldTextarea.vue?vue&type=script&lang=ts
/* harmony default export */ var FieldTextareavue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
props: {
name: String,
uiControlAttributes: Object,
modelValue: String,
title: String
},
inheritAttrs: false,
emits: ['update:modelValue'],
created: function created() {
this.onKeydown = Object(external_CoreHome_["debounce"])(this.onKeydown.bind(this), 50);
},
methods: {
onKeydown: function onKeydown(event) {
var _this = this;
var newValue = event.target.value; // change to previous value so the parent component can determine if this change should
// go through
event.target.value = this.modelValueText;
this.$emit('update:modelValue', newValue);
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])(function () {
if (event.target.value !== _this.modelValueText) {
// change to previous value if the parent component did not update the model value
// (done manually because Vue will not notice if a value does NOT change)
event.target.value = _this.modelValueText;
}
});
}
},
computed: {
modelValueText: function modelValueText() {
return this.modelValue || '';
}
},
watch: {
modelValue: function modelValue() {
var _this2 = this;
setTimeout(function () {
window.Materialize.textareaAutoResize(_this2.$refs.textarea);
window.Materialize.updateTextFields();
});
}
},
mounted: function mounted() {
var _this3 = this;
setTimeout(function () {
window.Materialize.textareaAutoResize(_this3.$refs.textarea);
window.Materialize.updateTextFields();
});
}
}));
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldTextarea.vue?vue&type=script&lang=ts
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldTextarea.vue
FieldTextareavue_type_script_lang_ts.render = FieldTextareavue_type_template_id_48b83e34_render
/* harmony default export */ var FieldTextarea = (FieldTextareavue_type_script_lang_ts);
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldTextareaArray.vue?vue&type=template&id=49060005
var FieldTextareaArrayvue_type_template_id_49060005_hoisted_1 = ["for", "innerHTML"];
var FieldTextareaArrayvue_type_template_id_49060005_hoisted_2 = ["name", "value"];
function FieldTextareaArrayvue_type_template_id_49060005_render(_ctx, _cache, $props, $setup, $data, $options) {
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("label", {
for: _ctx.name,
innerHTML: _ctx.$sanitize(_ctx.title)
}, null, 8, FieldTextareaArrayvue_type_template_id_49060005_hoisted_1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("textarea", Object(external_commonjs_vue_commonjs2_vue_root_Vue_["mergeProps"])({
ref: "textarea",
name: _ctx.name
}, _ctx.uiControlAttributes, {
value: _ctx.concattedValue,
onKeydown: _cache[0] || (_cache[0] = function ($event) {
return _ctx.onKeydown($event);
}),
onChange: _cache[1] || (_cache[1] = function ($event) {
return _ctx.onKeydown($event);
}),
class: "materialize-textarea"
}), null, 16, FieldTextareaArrayvue_type_template_id_49060005_hoisted_2)]);
}
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldTextareaArray.vue?vue&type=template&id=49060005
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-2!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldTextareaArray.vue?vue&type=script&lang=ts
var SEPARATOR = '\n';
/* harmony default export */ var FieldTextareaArrayvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
props: {
name: String,
title: String,
uiControlAttributes: Object,
modelValue: [Array, String]
},
inheritAttrs: false,
emits: ['update:modelValue'],
computed: {
concattedValue: function concattedValue() {
if (typeof this.modelValue === 'string') {
return this.modelValue;
}
return (this.modelValue || []).join(SEPARATOR);
}
},
created: function created() {
this.onKeydown = Object(external_CoreHome_["debounce"])(this.onKeydown.bind(this), 50);
},
methods: {
onKeydown: function onKeydown(event) {
var _this = this;
var value = event.target.value.split(SEPARATOR);
if (value.join(SEPARATOR) !== this.concattedValue) {
this.$emit('update:modelValue', value);
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])(function () {
if (event.target.value !== _this.concattedValue) {
// change to previous value if the parent component did not update the model value
// (done manually because Vue will not notice if a value does NOT change)
event.target.value = _this.concattedValue;
}
});
}
}
},
watch: {
modelValue: function modelValue(newVal, oldVal) {
var _this2 = this;
if (newVal !== oldVal) {
setTimeout(function () {
if (_this2.$refs.textarea) {
window.Materialize.textareaAutoResize(_this2.$refs.textarea);
}
window.Materialize.updateTextFields();
});
}
}
},
mounted: function mounted() {
var _this3 = this;
setTimeout(function () {
if (_this3.$refs.textarea) {
window.Materialize.textareaAutoResize(_this3.$refs.textarea);
}
window.Materialize.updateTextFields();
});
}
}));
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldTextareaArray.vue?vue&type=script&lang=ts
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldTextareaArray.vue
FieldTextareaArrayvue_type_script_lang_ts.render = FieldTextareaArrayvue_type_template_id_49060005_render
/* harmony default export */ var FieldTextareaArray = (FieldTextareaArrayvue_type_script_lang_ts);
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/utilities.ts
function utilities_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { utilities_typeof = function _typeof(obj) { return typeof obj; }; } else { utilities_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return utilities_typeof(obj); }
function utilities_slicedToArray(arr, i) { return utilities_arrayWithHoles(arr) || utilities_iterableToArrayLimit(arr, i) || utilities_unsupportedIterableToArray(arr, i) || utilities_nonIterableRest(); }
function utilities_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function utilities_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return utilities_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return utilities_arrayLikeToArray(o, minLen); }
function utilities_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function utilities_iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function utilities_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
/*!
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
function processCheckboxAndRadioAvailableValues(availableValues, type) {
if (!availableValues) {
return [];
}
var flatValues = [];
Object.entries(availableValues).forEach(function (_ref) {
var _ref2 = utilities_slicedToArray(_ref, 2),
valueObjKey = _ref2[0],
value = _ref2[1];
if (value && utilities_typeof(value) === 'object' && typeof value.key !== 'undefined') {
flatValues.push(value);
return;
}
var key = valueObjKey;
if (type === 'integer' && typeof valueObjKey === 'string') {
key = parseInt(key, 10);
}
flatValues.push({
key: key,
value: value
});
});
return flatValues;
}
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldAngularJsTemplate.vue?vue&type=template&id=3f63d972
var FieldAngularJsTemplatevue_type_template_id_3f63d972_hoisted_1 = {
ref: "root"
};
function FieldAngularJsTemplatevue_type_template_id_3f63d972_render(_ctx, _cache, $props, $setup, $data, $options) {
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", FieldAngularJsTemplatevue_type_template_id_3f63d972_hoisted_1, null, 512);
}
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldAngularJsTemplate.vue?vue&type=template&id=3f63d972
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-2!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FieldAngularJsTemplate.vue?vue&type=script&lang=ts
function clone(obj) {
if (typeof obj === 'undefined') {
return undefined;
}
return JSON.parse(JSON.stringify(obj));
}
/* harmony default export */ var FieldAngularJsTemplatevue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
props: {
modelValue: null,
formField: {
type: null,
required: true
},
templateFile: {
type: String,
required: true
}
},
emits: ['update:modelValue'],
inheritAttrs: false,
setup: function setup(props, context) {
var root = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(null);
var $element = window.$("<div ng-include=\"'".concat(props.templateFile, "?cb=").concat(external_CoreHome_["Matomo"].cacheBuster, "'\"></div>"));
var $timeout = external_CoreHome_["Matomo"].helper.getAngularDependency('$timeout');
var $rootScope = external_CoreHome_["Matomo"].helper.getAngularDependency('$rootScope');
var scope = $rootScope.$new();
scope.formField = Object.assign(Object.assign({}, clone(props.formField)), {}, {
value: clone(props.modelValue)
});
scope.$watch('formField.value', function (newValue, oldValue) {
if (newValue !== oldValue && JSON.stringify(newValue) !== JSON.stringify(props.modelValue)) {
context.emit('update:modelValue', clone(newValue));
}
});
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
return props.modelValue;
}, function (newValue) {
if (JSON.stringify(newValue) !== JSON.stringify(scope.formField.value)) {
$timeout(function () {
scope.formField.value = newValue;
});
}
});
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
return props.formField;
}, function (newValue) {
$timeout(function () {
var currentValue = scope.formField.value;
scope.formField = Object.assign(Object.assign({}, clone(newValue)), {}, {
value: currentValue
});
});
}, {
deep: true
}); // append on mount
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["onMounted"])(function () {
window.$(root.value).append($element);
external_CoreHome_["Matomo"].helper.compileAngularComponents($element, {
scope: scope,
params: {
formField: Object.assign(Object.assign({}, clone(props.formField)), {}, {
value: props.modelValue
})
}
});
});
return {
root: root
};
}
}));
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldAngularJsTemplate.vue?vue&type=script&lang=ts
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FieldAngularJsTemplate.vue
FieldAngularJsTemplatevue_type_script_lang_ts.render = FieldAngularJsTemplatevue_type_template_id_3f63d972_render
/* harmony default export */ var FieldAngularJsTemplate = (FieldAngularJsTemplatevue_type_script_lang_ts);
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-2!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/FormField/FormField.vue?vue&type=script&lang=ts
function FormFieldvue_type_script_lang_ts_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { FormFieldvue_type_script_lang_ts_typeof = function _typeof(obj) { return typeof obj; }; } else { FormFieldvue_type_script_lang_ts_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return FormFieldvue_type_script_lang_ts_typeof(obj); }
var TEXT_CONTROLS = ['password', 'url', 'search', 'email'];
var CONTROLS_SUPPORTING_ARRAY = ['textarea', 'checkbox', 'text'];
var CONTROL_TO_COMPONENT_MAP = {
checkbox: 'FieldCheckbox',
'expandable-select': 'FieldExpandableSelect',
'field-array': 'FieldFieldArray',
file: 'FieldFile',
hidden: 'FieldHidden',
multiselect: 'FieldSelect',
multituple: 'FieldMultituple',
number: 'FieldNumber',
radio: 'FieldRadio',
select: 'FieldSelect',
site: 'FieldSite',
text: 'FieldText',
textarea: 'FieldTextarea'
};
var CONTROL_TO_AVAILABLE_OPTION_PROCESSOR = {
FieldSelect: FieldSelectvue_type_script_lang_ts_getAvailableOptions,
FieldCheckboxArray: processCheckboxAndRadioAvailableValues,
FieldRadio: processCheckboxAndRadioAvailableValues,
FieldExpandableSelect: getAvailableOptions
};
/* harmony default export */ var FormFieldvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
props: {
modelValue: null,
formField: {
type: Object,
required: true
}
},
emits: ['update:modelValue'],
components: {
FieldCheckbox: FieldCheckbox,
FieldCheckboxArray: FieldCheckboxArray,
FieldExpandableSelect: FieldExpandableSelect,
FieldFieldArray: FieldFieldArray,
FieldFile: FieldFile,
FieldHidden: FieldHidden,
FieldMultituple: FieldMultituple,
FieldNumber: FieldNumber,
FieldRadio: FieldRadio,
FieldSelect: FieldSelect,
FieldSite: FieldSite,
FieldText: FieldText,
FieldTextArray: FieldTextArray,
FieldTextarea: FieldTextarea,
FieldTextareaArray: FieldTextareaArray
},
setup: function setup(props) {
var inlineHelpNode = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(null);
var setInlineHelp = function setInlineHelp(newVal) {
var toAppend;
if (!newVal || !inlineHelpNode.value || typeof newVal.render === 'function') {
return;
}
if (typeof newVal === 'string') {
if (newVal.indexOf('#') === 0) {
toAppend = window.$(newVal);
} else {
toAppend = window.vueSanitize(newVal);
}
} else {
toAppend = newVal;
}
window.$(inlineHelpNode.value).html('').append(toAppend);
};
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
return props.formField.inlineHelp;
}, setInlineHelp);
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["onMounted"])(function () {
setInlineHelp(props.formField.inlineHelp);
});
return {
inlineHelp: inlineHelpNode
};
},
computed: {
inlineHelpComponent: function inlineHelpComponent() {
var formField = this.formField;
var inlineHelpRecord = formField.inlineHelp;
if (inlineHelpRecord && typeof inlineHelpRecord.render === 'function') {
return formField.inlineHelp;
}
return undefined;
},
inlineHelpBind: function inlineHelpBind() {
return this.inlineHelpComponent ? this.formField.inlineHelpBind : undefined;
},
childComponent: function childComponent() {
var formField = this.formField;
if (formField.component) {
var component = formField.component;
if (formField.component.plugin) {
var _formField$component = formField.component,
plugin = _formField$component.plugin,
name = _formField$component.name;
if (!plugin || !name) {
throw new Error('Invalid component property given to piwik-field directive, must be ' + '{plugin: \'...\',name: \'...\'}');
}
component = Object(external_CoreHome_["useExternalPluginComponent"])(plugin, name);
}
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["markRaw"])(component);
} // backwards compatibility w/ settings that use templateFile property
if (formField.templateFile) {
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["markRaw"])(FieldAngularJsTemplate);
}
var uiControl = formField.uiControl;
var control = CONTROL_TO_COMPONENT_MAP[uiControl];
if (TEXT_CONTROLS.indexOf(uiControl) !== -1) {
control = 'FieldText'; // we use same template for text and password both
}
if (this.formField.type === 'array' && CONTROLS_SUPPORTING_ARRAY.indexOf(uiControl) !== -1) {
control = "".concat(control, "Array");
}
return control;
},
extraChildComponentParams: function extraChildComponentParams() {
if (this.formField.uiControl === 'multiselect') {
return {
multiple: true
};
}
return {};
},
showFormHelp: function showFormHelp() {
return this.formField.description || this.formField.inlineHelp || this.showDefaultValue || this.hasInlineHelpSlot;
},
showDefaultValue: function showDefaultValue() {
return this.defaultValuePretty && this.formField.uiControl !== 'checkbox' && this.formField.uiControl !== 'radio';
},
/**
* @deprecated here for angularjs BC support. shouldn't be used directly, instead use
* GroupedSetting.vue.
*/
showField: function showField() {
if (!this.formField || !this.formField.condition || !(this.formField.condition instanceof Function)) {
return true;
}
return this.formField.condition();
},
processedModelValue: function processedModelValue() {
var field = this.formField; // convert boolean values since angular 1.6 uses strict equals when determining if a model
// value matches the ng-value of an input.
if (field.type === 'boolean') {
var valueIsTruthy = this.modelValue && this.modelValue > 0 && this.modelValue !== '0'; // for checkboxes, the value MUST be either true or false
if (field.uiControl === 'checkbox') {
return valueIsTruthy;
}
if (field.uiControl === 'radio') {
return valueIsTruthy ? '1' : '0';
}
}
return this.modelValue;
},
defaultValue: function defaultValue() {
var defaultValue = this.formField.defaultValue;
if (Array.isArray(defaultValue)) {
return defaultValue.join(',');
}
return defaultValue;
},
availableOptions: function availableOptions() {
var childComponent = this.childComponent;
if (typeof childComponent !== 'string') {
return null;
}
var formField = this.formField;
if (!formField.availableValues || !CONTROL_TO_AVAILABLE_OPTION_PROCESSOR[childComponent]) {
return null;
}
return CONTROL_TO_AVAILABLE_OPTION_PROCESSOR[childComponent](formField.availableValues, formField.type, formField.uiControlAttributes);
},
defaultValuePretty: function defaultValuePretty() {
var formField = this.formField;
var defaultValue = formField.defaultValue;
var availableOptions = this.availableOptions;
if (typeof defaultValue === 'string' && defaultValue) {
// eg default value for multi tuple
var defaultParsed = null;
try {
defaultParsed = JSON.parse(defaultValue);
} catch (e) {// invalid JSON
}
if (defaultParsed !== null && FormFieldvue_type_script_lang_ts_typeof(defaultParsed) === 'object') {
return '';
}
}
if (!Array.isArray(availableOptions)) {
if (Array.isArray(defaultValue)) {
return '';
}
return defaultValue ? "".concat(defaultValue) : '';
}
var prettyValues = [];
if (!Array.isArray(defaultValue)) {
defaultValue = [defaultValue];
}
(availableOptions || []).forEach(function (value) {
if (typeof value.value !== 'undefined' && defaultValue.indexOf(value.key) !== -1) {
prettyValues.push(value.value);
}
});
return prettyValues.join(', ');
},
defaultValuePrettyTruncated: function defaultValuePrettyTruncated() {
return this.defaultValuePretty.substring(0, 50);
},
hasInlineHelpSlot: function hasInlineHelpSlot() {
var _inlineHelpSlot$, _inlineHelpSlot$$chil;
if (!this.$slots['inline-help']) {
return false;
}
var inlineHelpSlot = this.$slots['inline-help']();
return !!(inlineHelpSlot !== null && inlineHelpSlot !== void 0 && (_inlineHelpSlot$ = inlineHelpSlot[0]) !== null && _inlineHelpSlot$ !== void 0 && (_inlineHelpSlot$$chil = _inlineHelpSlot$.children) !== null && _inlineHelpSlot$$chil !== void 0 && _inlineHelpSlot$$chil.length);
}
},
methods: {
onChange: function onChange(newValue) {
this.$emit('update:modelValue', newValue);
}
}
}));
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FormField.vue?vue&type=script&lang=ts
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FormField.vue
FormFieldvue_type_script_lang_ts.render = render
/* harmony default export */ var FormField = (FormFieldvue_type_script_lang_ts);
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/FormField/FormField.adapter.ts
/*!
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
function transformVueComponentRef(value) {
if (!value) {
return undefined;
}
var plugin = value.plugin,
name = value.name;
if (!plugin || !name) {
throw new Error('Invalid component property given to piwik-field directive, must be ' + '{plugin: \'...\',name: \'...\'}');
}
return Object(external_CoreHome_["useExternalPluginComponent"])(plugin, name);
} // eslint-disable-next-line @typescript-eslint/no-explicit-any
function conditionFn(scope, condition) {
var values = {};
Object.values(scope.allSettings || {}).forEach(function (setting) {
if (setting.value === '0') {
values[setting.name] = 0;
} else {
values[setting.name] = setting.value;
}
});
return scope.$eval(condition, values);
}
/* harmony default export */ var FormField_adapter = (Object(external_CoreHome_["createAngularJsAdapter"])({
component: FormField,
scope: {
modelValue: {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
default: function _default(scope) {
var field = scope.piwikFormField; // vue components expect object data as input, so we parse JSON data
// for angularjs directives that use JSON.
if (typeof field.value === 'string' && field.value && (field.type === 'array' || field.uiControl === 'multituple' || field.uiControl === 'field-array' || field.uiControl === 'multiselect' || field.uiControl === 'site')) {
field.value = JSON.parse(field.value);
}
if (field.uiControl === 'checkbox') {
return Object(external_CoreHome_["transformAngularJsBoolAttr"])(field.value);
}
return field.value;
}
},
piwikFormField: {
vue: 'formField',
angularJsBind: '=',
transform: function transform(v, vm, scope) {
var value = v;
function getComponent() {
if (value.templateFile) {
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["markRaw"])(FieldAngularJsTemplate);
}
var comp = transformVueComponentRef(value.component);
if (!comp) {
return undefined;
}
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["markRaw"])(comp);
}
return Object.assign(Object.assign({}, value), {}, {
condition: value.condition ? conditionFn.bind(null, scope, value.condition) : value.condition,
disabled: Object(external_CoreHome_["transformAngularJsBoolAttr"])(value.disabled),
autocomplete: Object(external_CoreHome_["transformAngularJsBoolAttr"])(value.autocomplete),
autofocus: Object(external_CoreHome_["transformAngularJsBoolAttr"])(value.autofocus),
tabindex: Object(external_CoreHome_["transformAngularJsIntAttr"])(value.tabindex),
fullWidth: Object(external_CoreHome_["transformAngularJsBoolAttr"])(value.fullWidth),
maxlength: Object(external_CoreHome_["transformAngularJsIntAttr"])(value.maxlength),
required: Object(external_CoreHome_["transformAngularJsBoolAttr"])(value.required),
rows: Object(external_CoreHome_["transformAngularJsIntAttr"])(value.rows),
min: Object(external_CoreHome_["transformAngularJsIntAttr"])(value.min),
max: Object(external_CoreHome_["transformAngularJsIntAttr"])(value.max),
component: getComponent()
});
}
},
allSettings: {
angularJsBind: '='
}
},
directiveName: 'piwikFormField',
events: {
'update:modelValue': function updateModelValue(newValue, vm, scope, element, attrs, controller, $timeout) {
if (newValue !== scope.piwikFormField.value) {
$timeout(function () {
scope.piwikFormField.value = newValue;
});
}
}
},
$inject: ['$timeout'],
postCreate: function postCreate(vm, scope) {
scope.$watch('piwikFormField.value', function (newVal, oldVal) {
if (newVal !== oldVal) {
vm.modelValue = newVal;
}
}); // deep watch for all settings, on change trigger change in formfield property
// so condition is re-applied
scope.$watch('allSettings', function () {
vm.formField = Object.assign(Object.assign({}, vm.formField), {}, {
condition: scope.piwikFormField.condition ? conditionFn.bind(null, scope, scope.piwikFormField.condition) : scope.piwikFormField.condition
});
}, true);
}
}));
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/Field/Field.vue?vue&type=template&id=91065bf4
function Fieldvue_type_template_id_91065bf4_render(_ctx, _cache, $props, $setup, $data, $options) {
var _component_FormField = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("FormField");
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_FormField, {
"form-field": _ctx.field,
"model-value": _ctx.modelValue,
"onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) {
return _ctx.onChange($event);
})
}, {
"inline-help": Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, "inline-help")];
}),
_: 3
}, 8, ["form-field", "model-value"]);
}
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/Field/Field.vue?vue&type=template&id=91065bf4
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-2!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/Field/Field.vue?vue&type=script&lang=ts
var UI_CONTROLS_TO_TYPE = {
multiselect: 'array',
checkbox: 'boolean',
site: 'object',
number: 'integer'
};
/* harmony default export */ var Fieldvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
props: {
modelValue: null,
uicontrol: String,
name: String,
defaultValue: null,
options: [Object, Array],
description: String,
introduction: String,
title: String,
inlineHelp: [String, Object],
inlineHelpBind: Object,
disabled: Boolean,
uiControlAttributes: {
type: Object,
default: function _default() {
return {};
}
},
uiControlOptions: {
type: Object,
default: function _default() {
return {};
}
},
autocomplete: Boolean,
condition: Function,
varType: String,
autofocus: Boolean,
tabindex: Number,
fullWidth: Boolean,
maxlength: Number,
required: Boolean,
placeholder: String,
rows: Number,
min: Number,
max: Number,
component: null,
templateFile: String
},
emits: ['update:modelValue'],
components: {
FormField: FormField
},
computed: {
type: function type() {
if (this.varType) {
return this.varType;
}
var uicontrol = this.uicontrol;
if (uicontrol && UI_CONTROLS_TO_TYPE[uicontrol]) {
return UI_CONTROLS_TO_TYPE[uicontrol];
}
return 'string';
},
field: function field() {
return {
uiControl: this.uicontrol,
type: this.type,
name: this.name,
defaultValue: this.defaultValue,
availableValues: this.options,
description: this.description,
introduction: this.introduction,
inlineHelp: this.inlineHelp,
inlineHelpBind: this.inlineHelpBind,
title: this.title,
component: this.component,
templateFile: this.templateFile,
uiControlAttributes: Object.assign(Object.assign({}, this.uiControlAttributes), {}, {
disabled: this.disabled,
autocomplete: this.autocomplete,
tabindex: this.tabindex,
autofocus: this.autofocus,
rows: this.rows,
required: this.required,
maxlength: this.maxlength,
placeholder: this.placeholder,
min: this.min,
max: this.max
}),
fullWidth: this.fullWidth,
uiControlOptions: this.uiControlOptions
};
}
},
methods: {
onChange: function onChange(newValue) {
this.$emit('update:modelValue', newValue);
}
}
}));
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/Field/Field.vue?vue&type=script&lang=ts
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/Field/Field.vue
Fieldvue_type_script_lang_ts.render = Fieldvue_type_template_id_91065bf4_render
/* harmony default export */ var Field = (Fieldvue_type_script_lang_ts);
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/Field/Field.adapter.ts
/*!
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
function handleJsonValue(value, varType, uiControl) {
if (typeof value === 'string' && value && (varType === 'array' || uiControl === 'multituple' || uiControl === 'field-array' || uiControl === 'multiselect' || uiControl === 'site')) {
var result = JSON.parse(value); // the angularjs site field supplied siteid/sitename properties which initializes the
// siteselector value. the sitename is assumed to be encoded, and is decoded once.
// so the value for 'site' Field's in angularjs is assumed to be encoded.
if (uiControl === 'site') {
result.name = external_CoreHome_["Matomo"].helper.htmlDecode(result.name);
}
return result;
}
if (uiControl === 'checkbox' && varType !== 'array') {
return Object(external_CoreHome_["transformAngularJsBoolAttr"])(value);
}
return value;
}
/* harmony default export */ var Field_adapter = (Object(external_CoreHome_["createAngularJsAdapter"])({
component: Field,
require: '?ngModel',
scope: {
uicontrol: {
angularJsBind: '@'
},
name: {
angularJsBind: '@'
},
value: {
vue: 'modelValue',
angularJsBind: '@',
// eslint-disable-next-line @typescript-eslint/no-explicit-any
transform: function transform(value, vm, scope) {
// vue components expect object data as input, so we parse JSON data
// for angularjs directives that use JSON.
return handleJsonValue(value, scope.varType, scope.uicontrol);
}
},
default: {
vue: 'defaultValue',
angularJsBind: '@'
},
options: {
angularJsBind: '='
},
description: {
angularJsBind: '@'
},
introduction: {
angularJsBind: '@'
},
title: {
angularJsBind: '@'
},
inlineHelp: {
angularJsBind: '@'
},
disabled: {
angularJsBind: '=',
transform: external_CoreHome_["transformAngularJsBoolAttr"]
},
uiControlAttributes: {
angularJsBind: '='
},
uiControlOptions: {
angularJsBind: '='
},
autocomplete: {
angularJsBind: '@',
transform: external_CoreHome_["transformAngularJsBoolAttr"]
},
condition: {
angularJsBind: '@',
transform: function transform(value, vm, scope) {
if (!value) {
return undefined;
}
return function (values) {
return scope.$eval(value, values);
};
}
},
varType: {
angularJsBind: '@'
},
autofocus: {
angularJsBind: '@',
transform: external_CoreHome_["transformAngularJsBoolAttr"]
},
tabindex: {
angularJsBind: '@',
transform: external_CoreHome_["transformAngularJsIntAttr"]
},
fullWidth: {
angularJsBind: '@',
transform: external_CoreHome_["transformAngularJsBoolAttr"]
},
maxlength: {
angularJsBind: '@',
transform: external_CoreHome_["transformAngularJsIntAttr"]
},
required: {
angularJsBind: '@',
transform: external_CoreHome_["transformAngularJsBoolAttr"]
},
placeholder: {
angularJsBind: '@'
},
rows: {
angularJsBind: '@',
transform: external_CoreHome_["transformAngularJsIntAttr"]
},
min: {
angularJsBind: '@',
transform: external_CoreHome_["transformAngularJsIntAttr"]
},
max: {
angularJsBind: '@',
transform: external_CoreHome_["transformAngularJsIntAttr"]
},
component: {
angularJsBind: '<',
// eslint-disable-next-line @typescript-eslint/no-explicit-any
transform: function transform(value, vm, scope) {
if (!value) {
return undefined;
}
if (scope.templateFile) {
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["shallowRef"])(FieldAngularJsTemplate);
}
var plugin = value.plugin,
name = value.name;
if (!plugin || !name) {
throw new Error('Invalid component property given to piwik-field directive, must ' + 'be {plugin: \'...\',name: \'...\'}');
}
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["shallowRef"])(Object(external_CoreHome_["useExternalPluginComponent"])(plugin, name));
}
}
},
directiveName: 'piwikField',
$inject: ['$timeout'],
events: {
'update:modelValue': function updateModelValue(newValue, vm, scope, element, attrs, ngModel, $timeout) {
var currentValue = ngModel ? ngModel.$viewValue : scope.value;
if (newValue !== currentValue) {
$timeout(function () {
if (!ngModel) {
scope.value = newValue;
return;
} // ngModel being used
ngModel.$setViewValue(newValue);
ngModel.$render(); // not detected by the watch for some reason
});
}
}
},
postCreate: function postCreate(vm, scope, element, attrs, controller) {
var ngModel = controller;
if (!ngModel) {
scope.$watch('value', function (newVal) {
if (newVal !== vm.modelValue) {
var transformed = handleJsonValue(newVal, scope.varType, scope.uicontrol);
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])(function () {
vm.modelValue = transformed;
});
}
});
return;
} // ngModel being used
ngModel.$render = function () {
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])(function () {
vm.modelValue = Object(external_CoreHome_["removeAngularJsSpecificProperties"])(ngModel.$viewValue);
});
};
if (typeof scope.value !== 'undefined') {
var transformed = handleJsonValue(scope.value, scope.varType, scope.uicontrol);
ngModel.$setViewValue(transformed);
} else {
ngModel.$setViewValue(vm.modelValue);
} // to provide same behavior in angularjs/<4.6.0, we trigger a model update to the same
// value, but only for 'site' uicontrols. this only happened for site selectors, no others.
if (scope.uicontrol === 'site' && ngModel.$viewValue) {
setTimeout(function () {
ngModel.$setViewValue(Object.assign({}, ngModel.$viewValue));
});
}
}
}));
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/PluginSettings/PluginSettings.vue?vue&type=template&id=a4ce6500
var PluginSettingsvue_type_template_id_a4ce6500_hoisted_1 = {
class: "pluginSettings",
ref: "root"
};
var PluginSettingsvue_type_template_id_a4ce6500_hoisted_2 = ["id"];
var PluginSettingsvue_type_template_id_a4ce6500_hoisted_3 = {
class: "card-content"
};
var PluginSettingsvue_type_template_id_a4ce6500_hoisted_4 = ["id"];
var PluginSettingsvue_type_template_id_a4ce6500_hoisted_5 = ["onClick", "disabled", "value"];
var PluginSettingsvue_type_template_id_a4ce6500_hoisted_6 = {
class: "confirm-password-modal modal"
};
var PluginSettingsvue_type_template_id_a4ce6500_hoisted_7 = {
class: "modal-content"
};
var PluginSettingsvue_type_template_id_a4ce6500_hoisted_8 = {
class: "modal-footer"
};
var PluginSettingsvue_type_template_id_a4ce6500_hoisted_9 = ["disabled"];
function PluginSettingsvue_type_template_id_a4ce6500_render(_ctx, _cache, $props, $setup, $data, $options) {
var _this = this;
var _component_GroupedSettings = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("GroupedSettings");
var _component_ActivityIndicator = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("ActivityIndicator");
var _component_Field = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("Field");
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", PluginSettingsvue_type_template_id_a4ce6500_hoisted_1, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.settingsPerPlugin, function (settings) {
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", {
class: "card",
id: "".concat(settings.pluginName, "PluginSettings"),
key: "".concat(settings.pluginName, "PluginSettings")
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", PluginSettingsvue_type_template_id_a4ce6500_hoisted_3, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h2", {
class: "card-title",
id: settings.pluginName
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(settings.title), 9, PluginSettingsvue_type_template_id_a4ce6500_hoisted_4), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_GroupedSettings, {
"group-name": settings.pluginName,
settings: settings.settings,
"all-setting-values": _ctx.settingValues,
onChange: function onChange($event) {
return _ctx.settingValues["".concat(settings.pluginName, ".").concat($event.name)] = $event.value;
}
}, null, 8, ["group-name", "settings", "all-setting-values", "onChange"]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("input", {
type: "button",
onClick: function onClick($event) {
return _ctx.saveSetting(settings.pluginName);
},
disabled: _ctx.isLoading,
class: "pluginsSettingsSubmit btn",
value: _ctx.translate('General_Save')
}, null, 8, PluginSettingsvue_type_template_id_a4ce6500_hoisted_5), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_ActivityIndicator, {
loading: _ctx.isLoading || _ctx.isSaving[settings.pluginName]
}, null, 8, ["loading"])])], 8, PluginSettingsvue_type_template_id_a4ce6500_hoisted_2);
}), 128)), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", PluginSettingsvue_type_template_id_a4ce6500_hoisted_6, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", PluginSettingsvue_type_template_id_a4ce6500_hoisted_7, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h2", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('UsersManager_ConfirmWithPassword')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, {
modelValue: _ctx.passwordConfirmation,
"onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) {
return _ctx.passwordConfirmation = $event;
}),
uicontrol: 'password',
name: 'currentUserPassword',
autocomplete: false,
"full-width": true,
title: _ctx.translate('UsersManager_YourCurrentPassword')
}, null, 8, ["modelValue", "title"])])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", PluginSettingsvue_type_template_id_a4ce6500_hoisted_8, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("a", {
href: "",
class: "modal-action modal-close btn",
disabled: !_ctx.passwordConfirmation ? 'disabled' : undefined,
onClick: _cache[1] || (_cache[1] = function ($event) {
$event.preventDefault();
_ctx.save(_this.settingsToSave);
})
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('General_Yes')), 9, PluginSettingsvue_type_template_id_a4ce6500_hoisted_9), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("a", {
href: "",
class: "modal-action modal-close modal-no",
onClick: _cache[2] || (_cache[2] = function ($event) {
return $event.preventDefault();
})
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('General_No')), 1)])])], 512);
}
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/PluginSettings/PluginSettings.vue?vue&type=template&id=a4ce6500
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/GroupedSettings/GroupedSettings.vue?vue&type=template&id=566a93cc
function GroupedSettingsvue_type_template_id_566a93cc_render(_ctx, _cache, $props, $setup, $data, $options) {
var _component_GroupedSetting = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("GroupedSetting");
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.settings, function (setting) {
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", {
key: "".concat(_ctx.groupPrefix).concat(setting.name)
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_GroupedSetting, {
"model-value": _ctx.allSettingValues["".concat(_ctx.groupPrefix).concat(setting.name)],
"onUpdate:modelValue": function onUpdateModelValue($event) {
return _ctx.$emit('change', {
name: setting.name,
value: $event
});
},
setting: setting,
"condition-values": _ctx.settingValues
}, null, 8, ["model-value", "onUpdate:modelValue", "setting", "condition-values"])]);
}), 128);
}
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/GroupedSettings/GroupedSettings.vue?vue&type=template&id=566a93cc
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/GroupedSettings/GroupedSetting.vue?vue&type=template&id=17c12cc8
function GroupedSettingvue_type_template_id_17c12cc8_render(_ctx, _cache, $props, $setup, $data, $options) {
var _component_FormField = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("FormField");
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])((Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_FormField, {
"model-value": _ctx.modelValue,
"onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) {
return _ctx.changeValue($event);
}),
"form-field": _ctx.settingWithComponent
}, null, 8, ["model-value", "form-field"])], 512)), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], _ctx.showField]]);
}
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/GroupedSettings/GroupedSetting.vue?vue&type=template&id=17c12cc8
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-2!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/GroupedSettings/GroupedSetting.vue?vue&type=script&lang=ts
// TODO: have to use angularjs here until there's an expression evaluating alternative
var conditionScope;
/* harmony default export */ var GroupedSettingvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
props: {
setting: {
type: Object,
required: true
},
modelValue: null,
conditionValues: {
type: Object,
required: true
}
},
components: {
FormField: FormField
},
emits: ['update:modelValue'],
computed: {
// bc for angularjs field that uses templateFile
settingWithComponent: function settingWithComponent() {
if (this.setting.templateFile) {
return Object.assign(Object.assign({}, this.setting), {}, {
component: FieldAngularJsTemplate
});
}
return this.setting;
},
showField: function showField() {
var condition = this.setting.condition;
if (!condition) {
return true;
}
if (!conditionScope) {
var $rootScope = external_CoreHome_["Matomo"].helper.getAngularDependency('$rootScope');
conditionScope = $rootScope.$new(true);
}
return conditionScope.$eval(condition, this.conditionValues);
}
},
methods: {
changeValue: function changeValue(newValue) {
this.$emit('update:modelValue', newValue);
}
}
}));
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/GroupedSettings/GroupedSetting.vue?vue&type=script&lang=ts
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/GroupedSettings/GroupedSetting.vue
GroupedSettingvue_type_script_lang_ts.render = GroupedSettingvue_type_template_id_17c12cc8_render
/* harmony default export */ var GroupedSetting = (GroupedSettingvue_type_script_lang_ts);
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-2!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/GroupedSettings/GroupedSettings.vue?vue&type=script&lang=ts
function GroupedSettingsvue_type_script_lang_ts_slicedToArray(arr, i) { return GroupedSettingsvue_type_script_lang_ts_arrayWithHoles(arr) || GroupedSettingsvue_type_script_lang_ts_iterableToArrayLimit(arr, i) || GroupedSettingsvue_type_script_lang_ts_unsupportedIterableToArray(arr, i) || GroupedSettingsvue_type_script_lang_ts_nonIterableRest(); }
function GroupedSettingsvue_type_script_lang_ts_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function GroupedSettingsvue_type_script_lang_ts_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return GroupedSettingsvue_type_script_lang_ts_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return GroupedSettingsvue_type_script_lang_ts_arrayLikeToArray(o, minLen); }
function GroupedSettingsvue_type_script_lang_ts_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function GroupedSettingsvue_type_script_lang_ts_iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function GroupedSettingsvue_type_script_lang_ts_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
/* harmony default export */ var GroupedSettingsvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
props: {
groupName: String,
settings: {
type: Array,
required: true
},
allSettingValues: {
type: Object,
required: true
}
},
emits: ['change'],
components: {
GroupedSetting: GroupedSetting
},
computed: {
settingValues: function settingValues() {
var _this = this;
var entries = Object.entries(this.allSettingValues).filter(function (_ref) {
var _ref2 = GroupedSettingsvue_type_script_lang_ts_slicedToArray(_ref, 1),
key = _ref2[0];
if (_this.groupName) {
var _key$split = key.split('.'),
_key$split2 = GroupedSettingsvue_type_script_lang_ts_slicedToArray(_key$split, 1),
groupName = _key$split2[0];
if (groupName !== _this.groupName) {
return false;
}
}
return true;
}).map(function (_ref3) {
var _ref4 = GroupedSettingsvue_type_script_lang_ts_slicedToArray(_ref3, 2),
key = _ref4[0],
value = _ref4[1];
return _this.groupName ? [key.split('.')[1], value] : [key, value];
});
return Object.fromEntries(entries);
},
groupPrefix: function groupPrefix() {
if (!this.groupName) {
return '';
}
return "".concat(this.groupName, ".");
}
}
}));
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/GroupedSettings/GroupedSettings.vue?vue&type=script&lang=ts
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/GroupedSettings/GroupedSettings.vue
GroupedSettingsvue_type_script_lang_ts.render = GroupedSettingsvue_type_template_id_566a93cc_render
/* harmony default export */ var GroupedSettings = (GroupedSettingsvue_type_script_lang_ts);
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-2!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/PluginSettings/PluginSettings.vue?vue&type=script&lang=ts
function PluginSettingsvue_type_script_lang_ts_slicedToArray(arr, i) { return PluginSettingsvue_type_script_lang_ts_arrayWithHoles(arr) || PluginSettingsvue_type_script_lang_ts_iterableToArrayLimit(arr, i) || PluginSettingsvue_type_script_lang_ts_unsupportedIterableToArray(arr, i) || PluginSettingsvue_type_script_lang_ts_nonIterableRest(); }
function PluginSettingsvue_type_script_lang_ts_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function PluginSettingsvue_type_script_lang_ts_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return PluginSettingsvue_type_script_lang_ts_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return PluginSettingsvue_type_script_lang_ts_arrayLikeToArray(o, minLen); }
function PluginSettingsvue_type_script_lang_ts_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function PluginSettingsvue_type_script_lang_ts_iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function PluginSettingsvue_type_script_lang_ts_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
var _window = window,
$ = _window.$;
/* harmony default export */ var PluginSettingsvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
props: {
mode: String
},
components: {
ActivityIndicator: external_CoreHome_["ActivityIndicator"],
Field: Field,
GroupedSettings: GroupedSettings
},
data: function data() {
return {
isLoading: true,
isSaving: {},
passwordConfirmation: '',
settingsToSave: null,
settingsPerPlugin: [],
settingValues: {}
};
},
created: function created() {
var _this = this;
external_CoreHome_["AjaxHelper"].fetch({
method: this.apiMethod
}).then(function (settingsPerPlugin) {
_this.isLoading = false;
_this.settingsPerPlugin = settingsPerPlugin;
settingsPerPlugin.forEach(function (settings) {
settings.settings.forEach(function (setting) {
_this.settingValues["".concat(settings.pluginName, ".").concat(setting.name)] = setting.value;
});
});
window.anchorLinkFix.scrollToAnchorInUrl();
_this.addSectionsToTableOfContents();
}).catch(function () {
_this.isLoading = false;
});
},
computed: {
apiMethod: function apiMethod() {
return this.mode === 'admin' ? 'CorePluginsAdmin.getSystemSettings' : 'CorePluginsAdmin.getUserSettings';
},
saveApiMethod: function saveApiMethod() {
return this.mode === 'admin' ? 'CorePluginsAdmin.setSystemSettings' : 'CorePluginsAdmin.setUserSettings';
}
},
methods: {
addSectionsToTableOfContents: function addSectionsToTableOfContents() {
var $toc = $('#generalSettingsTOC');
if (!$toc.length) {
return;
}
var settingsPerPlugin = this.settingsPerPlugin;
settingsPerPlugin.forEach(function (settingsForPlugin) {
var pluginName = settingsForPlugin.pluginName,
settings = settingsForPlugin.settings;
if (!pluginName) {
return;
}
if (pluginName === 'CoreAdminHome' && settings) {
settings.filter(function (s) {
return s.introduction;
}).forEach(function (s) {
$toc.append("<a href=\"#/".concat(pluginName, "PluginSettings\">").concat(s.introduction, "</a> "));
});
} else {
$toc.append("<a href=\"#/".concat(pluginName, "\">").concat(pluginName.replace(/([A-Z])/g, ' $1').trim(), "</a> "));
}
});
},
saveSetting: function saveSetting(requestedPlugin) {
if (this.mode === 'admin') {
this.showPasswordConfirmModal(requestedPlugin);
} else {
this.save(requestedPlugin);
}
},
showPasswordConfirmModal: function showPasswordConfirmModal(requestedPlugin) {
var _this2 = this;
this.settingsToSave = requestedPlugin;
var root = this.$refs.root;
var $root = $(root);
var onEnter = function onEnter(event) {
var keycode = event.keyCode ? event.keyCode : event.which;
if (keycode === 13) {
$root.find('.confirm-password-modal').modal('close');
_this2.save(requestedPlugin);
}
};
$root.find('.confirm-password-modal').modal({
dismissible: false,
onOpenEnd: function onOpenEnd() {
var passwordField = '.modal.open #currentUserPassword';
$(passwordField).focus();
$(passwordField).off('keypress').keypress(onEnter);
}
}).modal('open');
},
save: function save(requestedPlugin) {
var _this3 = this;
var saveApiMethod = this.saveApiMethod;
this.isSaving[requestedPlugin] = true;
var settingValuesPayload = this.getValuesForPlugin(requestedPlugin);
external_CoreHome_["AjaxHelper"].post({
method: saveApiMethod
}, {
settingValues: settingValuesPayload,
passwordConfirmation: this.passwordConfirmation
}).then(function () {
_this3.isSaving[requestedPlugin] = false;
var notificationInstanceId = external_CoreHome_["NotificationsStore"].show({
message: Object(external_CoreHome_["translate"])('CoreAdminHome_PluginSettingsSaveSuccess'),
id: 'generalSettings',
context: 'success',
type: 'transient'
});
external_CoreHome_["NotificationsStore"].scrollToNotification(notificationInstanceId);
}).catch(function () {
_this3.isSaving[requestedPlugin] = false;
});
this.passwordConfirmation = '';
this.settingsToSave = null;
},
getValuesForPlugin: function getValuesForPlugin(requestedPlugin) {
var values = {};
if (!values[requestedPlugin]) {
values[requestedPlugin] = [];
}
Object.entries(this.settingValues).forEach(function (_ref) {
var _ref2 = PluginSettingsvue_type_script_lang_ts_slicedToArray(_ref, 2),
key = _ref2[0],
value = _ref2[1];
var _key$split = key.split('.'),
_key$split2 = PluginSettingsvue_type_script_lang_ts_slicedToArray(_key$split, 2),
pluginName = _key$split2[0],
settingName = _key$split2[1];
if (pluginName !== requestedPlugin) {
return;
}
var postValue = value;
if (postValue === false) {
postValue = '0';
} else if (postValue === true) {
postValue = '1';
}
values[pluginName].push({
name: settingName,
value: postValue
});
});
return values;
}
}
}));
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/PluginSettings/PluginSettings.vue?vue&type=script&lang=ts
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/PluginSettings/PluginSettings.vue
PluginSettingsvue_type_script_lang_ts.render = PluginSettingsvue_type_template_id_a4ce6500_render
/* harmony default export */ var PluginSettings = (PluginSettingsvue_type_script_lang_ts);
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/PluginSettings/PluginSettings.adapter.ts
/*!
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
/* harmony default export */ var PluginSettings_adapter = (Object(external_CoreHome_["createAngularJsAdapter"])({
component: PluginSettings,
scope: {
mode: {
angularJsBind: '@'
}
},
directiveName: 'piwikPluginSettings'
}));
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/Plugins/PluginManagement.ts
/*!
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
var PluginManagement_window = window,
PluginManagement_$ = PluginManagement_window.$;
function onClickUninstall(binding, event) {
event.preventDefault();
var link = PluginManagement_$(event.target).attr('href');
var pluginName = PluginManagement_$(event.target).attr('data-plugin-name');
if (!link || !pluginName) {
return;
}
if (!binding.value.uninstallConfirmMessage) {
binding.value.uninstallConfirmMessage = PluginManagement_$('#uninstallPluginConfirm').text();
}
var messageToDisplay = (binding.value.uninstallConfirmMessage || '').replace('%s', pluginName);
PluginManagement_$('#uninstallPluginConfirm').text(messageToDisplay);
external_CoreHome_["Matomo"].helper.modalConfirm('#confirmUninstallPlugin', {
yes: function yes() {
window.location.href = link;
}
});
}
function onDonateLinkClick(event) {
event.preventDefault();
var overlayId = PluginManagement_$(event.target).data('overlay-id');
external_CoreHome_["Matomo"].helper.modalConfirm("#".concat(overlayId), {});
}
/* harmony default export */ var PluginManagement = ({
mounted: function mounted(el, binding) {
setTimeout(function () {
binding.value.uninstallConfirmMessage = '';
PluginManagement_$(el).find('.uninstall').click(onClickUninstall.bind(null, binding));
PluginManagement_$(el).find('.plugin-donation-link').click(onDonateLinkClick);
});
}
});
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/Plugins/PluginManagement.adapter.ts
/*!
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
function piwikPluginManagement() {
return {
restrict: 'A',
link: function expandOnClickLink(scope, element) {
var binding = {
instance: null,
value: {},
oldValue: null,
modifiers: {},
dir: {}
};
PluginManagement.mounted(element[0], binding);
}
};
}
window.angular.module('piwikApp').directive('piwikPluginManagement', piwikPluginManagement);
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/Plugins/PluginUpload.ts
/*!
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
var PluginUpload_window = window,
PluginUpload_$ = PluginUpload_window.$;
function onUploadPlugin(event) {
event.preventDefault();
external_CoreHome_["Matomo"].helper.modalConfirm('#installPluginByUpload', {});
}
function onSubmitPlugin(event) {
var $zipFile = PluginUpload_$('[name=pluginZip]');
var fileName = $zipFile.val();
if (!fileName || fileName.slice(-4) !== '.zip') {
event.preventDefault(); // eslint-disable-next-line no-alert
alert(Object(external_CoreHome_["translate"])('CorePluginsAdmin_NoZipFileSelected'));
} else if ($zipFile.data('maxSize') > 0 && $zipFile[0].files[0].size > $zipFile.data('maxSize') * 1048576) {
event.preventDefault(); // eslint-disable-next-line no-alert
alert(Object(external_CoreHome_["translate"])('CorePluginsAdmin_FileExceedsUploadLimit'));
}
}
/* harmony default export */ var PluginUpload = ({
mounted: function mounted() {
setTimeout(function () {
PluginUpload_$('.uploadPlugin').click(onUploadPlugin);
PluginUpload_$('#uploadPluginForm').submit(onSubmitPlugin);
});
}
});
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/Plugins/PluginUpload.adapter.ts
/*!
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
function piwikPluginUpload() {
return {
restrict: 'A',
link: function expandOnClickLink() {
PluginUpload.mounted();
}
};
}
window.angular.module('piwikApp').directive('piwikPluginUpload', piwikPluginUpload);
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/Plugins/PluginFilter.ts
/*!
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
var PluginFilter_window = window,
PluginFilter_$ = PluginFilter_window.$;
function getCurrentFilterOrigin(element) {
return element.find('.origin a.active').data('filter-origin');
}
function getCurrentFilterStatus(element) {
return element.find('.status a.active').data('filter-status');
}
function getMatchingNodes(filterOrigin, filterStatus) {
var query = '#plugins tr';
if (filterOrigin === 'all') {
query += '[data-filter-origin]';
} else {
query += "[data-filter-origin=".concat(filterOrigin, "]");
}
if (filterStatus === 'all') {
query += '[data-filter-status]';
} else {
query += "[data-filter-status=".concat(filterStatus, "]");
}
return PluginFilter_$(query);
}
function updateNumberOfMatchingPluginsInFilter(element, selectorFilterToUpdate, filterOrigin, filterStatus) {
var numMatchingNodes = getMatchingNodes(filterOrigin, filterStatus).length;
var updatedCounterText = " (".concat(numMatchingNodes, ")");
element.find("".concat(selectorFilterToUpdate, " .counter")).text(updatedCounterText);
}
function updateAllNumbersOfMatchingPluginsInFilter(element) {
var filterOrigin = getCurrentFilterOrigin(element);
var filterStatus = getCurrentFilterStatus(element);
updateNumberOfMatchingPluginsInFilter(element, '[data-filter-status="all"]', filterOrigin, 'all');
updateNumberOfMatchingPluginsInFilter(element, '[data-filter-status="active"]', filterOrigin, 'active');
updateNumberOfMatchingPluginsInFilter(element, '[data-filter-status="inactive"]', filterOrigin, 'inactive');
updateNumberOfMatchingPluginsInFilter(element, '[data-filter-origin="all"]', 'all', filterStatus);
updateNumberOfMatchingPluginsInFilter(element, '[data-filter-origin="core"]', 'core', filterStatus);
updateNumberOfMatchingPluginsInFilter(element, '[data-filter-origin="official"]', 'official', filterStatus);
updateNumberOfMatchingPluginsInFilter(element, '[data-filter-origin="thirdparty"]', 'thirdparty', filterStatus);
}
function filterPlugins(element) {
var filterOrigin = getCurrentFilterOrigin(element);
var filterStatus = getCurrentFilterStatus(element);
var $nodesToEnable = getMatchingNodes(filterOrigin, filterStatus);
PluginFilter_$('#plugins tr[data-filter-origin][data-filter-status]').css('display', 'none');
$nodesToEnable.css('display', 'table-row');
updateAllNumbersOfMatchingPluginsInFilter(element);
}
function onClickStatus(element, event) {
event.preventDefault();
PluginFilter_$(event.target).siblings().removeClass('active');
PluginFilter_$(event.target).addClass('active');
filterPlugins(element);
}
function onClickOrigin(element, event) {
event.preventDefault();
PluginFilter_$(event.target).siblings().removeClass('active');
PluginFilter_$(event.target).addClass('active');
filterPlugins(element);
}
/* harmony default export */ var PluginFilter = ({
mounted: function mounted(el) {
setTimeout(function () {
updateAllNumbersOfMatchingPluginsInFilter(PluginFilter_$(el));
PluginFilter_$(el).find('.status').on('click', 'a', onClickStatus.bind(null, PluginFilter_$(el)));
PluginFilter_$(el).find('.origin').on('click', 'a', onClickOrigin.bind(null, PluginFilter_$(el)));
});
}
});
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/Plugins/PluginFilter.adapter.ts
/*!
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
function piwikPluginFilter() {
return {
restrict: 'A',
link: function expandOnClickLink(scope, element) {
PluginFilter.mounted(element[0]);
}
};
}
window.angular.module('piwikApp').directive('piwikPluginFilter', piwikPluginFilter);
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/SaveButton/SaveButton.vue?vue&type=template&id=1e391ba1
var SaveButtonvue_type_template_id_1e391ba1_hoisted_1 = {
class: "matomo-save-button",
style: {
"display": "inline-block"
}
};
var SaveButtonvue_type_template_id_1e391ba1_hoisted_2 = ["disabled", "value"];
function SaveButtonvue_type_template_id_1e391ba1_render(_ctx, _cache, $props, $setup, $data, $options) {
var _component_ActivityIndicator = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("ActivityIndicator");
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", SaveButtonvue_type_template_id_1e391ba1_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("input", {
type: "button",
onClick: _cache[0] || (_cache[0] = function ($event) {
return _ctx.onConfirm($event);
}),
disabled: _ctx.saving || _ctx.disabled,
class: "btn",
value: _ctx.value ? _ctx.value : _ctx.translate('General_Save')
}, null, 8, SaveButtonvue_type_template_id_1e391ba1_hoisted_2), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_ActivityIndicator, {
loading: _ctx.saving
}, null, 8, ["loading"])]);
}
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/SaveButton/SaveButton.vue?vue&type=template&id=1e391ba1
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-2!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CorePluginsAdmin/vue/src/SaveButton/SaveButton.vue?vue&type=script&lang=ts
/* harmony default export */ var SaveButtonvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
props: {
saving: Boolean,
value: String,
disabled: Boolean
},
components: {
ActivityIndicator: external_CoreHome_["ActivityIndicator"]
},
emits: ['confirm'],
methods: {
onConfirm: function onConfirm(event) {
this.$emit('confirm', event);
}
}
}));
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/SaveButton/SaveButton.vue?vue&type=script&lang=ts
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/SaveButton/SaveButton.vue
SaveButtonvue_type_script_lang_ts.render = SaveButtonvue_type_template_id_1e391ba1_render
/* harmony default export */ var SaveButton = (SaveButtonvue_type_script_lang_ts);
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/SaveButton/SaveButton.adapter.ts
/*!
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
/* harmony default export */ var SaveButton_adapter = (Object(external_CoreHome_["createAngularJsAdapter"])({
component: SaveButton,
scope: {
saving: {
angularJsBind: '=?'
},
value: {
angularJsBind: '@?'
},
disabled: {
angularJsBind: '=?'
},
onconfirm: {
angularJsBind: '&?',
vue: 'confirm'
}
},
events: {
confirm: function confirm($event, vm, scope, element, attrs, controller, $timeout) {
element[0].click(); // this directive can be used on input's with ng-click specified
$timeout();
}
},
replace: true,
directiveName: 'piwikSaveButton',
$inject: ['$timeout']
}));
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/Form/Form.ts
/*!
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
var Form_window = window,
Form_$ = Form_window.$;
/* harmony default export */ var Form = ({
mounted: function mounted(el) {
setTimeout(function () {
Form_$(el).find('input[type=text]').keypress(function (e) {
var key = e.keyCode || e.which;
if (key === 13) {
Form_$(el).find('.matomo-save-button input').triggerHandler('click');
}
});
});
}
});
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/Form/Form.adapter.ts
/*!
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
function piwikForm() {
return {
restrict: 'A',
link: function expandOnClickLink(scope, element) {
Form.mounted(element[0]);
}
};
}
window.angular.module('piwikApp').directive('piwikForm', piwikForm);
// CONCATENATED MODULE: ./plugins/CorePluginsAdmin/vue/src/index.ts
/*!
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js
/***/ })
/******/ });
});
//# sourceMappingURL=CorePluginsAdmin.umd.js.map
|