@sensinum/strapi-plugin-multi-domain 5.2.0-beta.1 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -35
- package/dist/_chunks/About-DNyaGrYn.mjs +435 -0
- package/dist/_chunks/About-DaPMT-kj.js +38 -0
- package/dist/_chunks/{Settings-q2-wnMsh.mjs → Settings-B823hBAu.mjs} +2 -2
- package/dist/_chunks/{Settings-De2gPisD.js → Settings-B_1YuoN9.js} +1 -1
- package/dist/_chunks/{TenantCustomField-B3_kP4Hn.mjs → TenantCustomField-B9Ntpj-S.mjs} +1 -1
- package/dist/_chunks/{TenantCustomField-D-7Si38A.js → TenantCustomField-CHUfO3Xh.js} +1 -1
- package/dist/_chunks/{TenantEdit-Cb072LMV.mjs → TenantEdit-BFvwBQFd.mjs} +4 -4
- package/dist/_chunks/{TenantEdit-BkdAbMuN.js → TenantEdit-Bkw_eaGW.js} +1 -1
- package/dist/_chunks/{TenantList-CL42iP37.js → TenantList-C9nnIaGg.js} +1 -1
- package/dist/_chunks/{TenantList-kV9ECrto.mjs → TenantList-DRfWswjS.mjs} +4 -4
- package/dist/_chunks/{en-BPIaGv4M.mjs → en-Cf69p5po.mjs} +6 -2
- package/dist/_chunks/en-hAVH8fH0.js +1 -0
- package/dist/_chunks/{index-BlQO7jXj.mjs → index-2nR8Jd1x.mjs} +1 -1
- package/dist/_chunks/{index-DAX0vpn7.js → index-Cvs1ZCFy.js} +1 -1
- package/dist/_chunks/{index-ChL08Dcz.mjs → index-DEoxiYwP.mjs} +5 -5
- package/dist/_chunks/index-DuSOcmV4.js +1 -0
- package/dist/_chunks/useGetMessage-B1Xnqz3k.js +1 -0
- package/dist/_chunks/{useGetMessage-2uaqSNHA.mjs → useGetMessage-K3OG9Tv0.mjs} +1 -1
- package/dist/_chunks/{useSettings-Hd_Y-NfK.js → useSettings-BCMuYsbx.js} +1 -1
- package/dist/_chunks/{useSettings-BCXs1q_c.mjs → useSettings-QOof9ZTx.mjs} +1 -1
- package/dist/_chunks/{useTenants-CVYBr-JE.mjs → useTenants-CT-L6xX1.mjs} +2 -2
- package/dist/_chunks/{useTenants-DAdjIYEf.js → useTenants-_putKXAO.js} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/index.js +4 -2
- package/dist/server/index.mjs +5544 -5234
- package/package.json +1 -1
- package/dist/_chunks/en-D2iOtyKE.js +0 -1
- package/dist/_chunks/index-1D9AeLxE.mjs +0 -445
- package/dist/_chunks/index-C0pkYQjH.js +0 -3
- package/dist/_chunks/index-TelSPPuG.js +0 -1
- package/dist/_chunks/useGetMessage-R3JXzZcF.js +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={common:{cancel:"Cancel",edit:"Edit",delete:"Delete",loading:"Loading...",create:"Create new entry",back:"Back",update:"Update",save:"Save"},settings:{label:"Multi-Domain Settings",general:{label:"General Settings"},about:{label:"About"}},about:{title:"About",pluginInfo:{title:"Plugin Info",name:"Name",version:"Version"},contact:{title:"Contact Us",website:"Website",email:"Email"},licenseDetails:{title:"Licence Details",planName:"Plan Name",validUntil:"Valid Until",limits:{seats:"Seats",domains:"Domains"},features:{title:"Features",schemas:"Schemas",decorators:"Decorators",extensions:"Extensions",enabled:"enabled",disabled:"disabled"}}},domain:{list:{title:"Domain",subtitle:"{count} entries found",search:"Search domains",create:"Create new entry",emptyState:"No domains found matching your search criteria",limitReached:"You have reached the maximum number of domains allowed ({limit}). Please upgrade your plan to add more.",table:{headers:{id:"ID",name:"NAME",code:"CODE",role:"ROLE",actions:"Actions"}},loading:"Loading domains..."},edit:{title:{create:"Create Domain",edit:"Edit {name}"},loading:"Loading domain...",notifications:{invalidJson:"Invalid JSON in custom fields",updated:"Domain updated successfully",created:"Domain created successfully",saveError:"Failed to save domain"},validation:{invalidJson:"Invalid JSON format in custom fields"},form:{name:{label:"Name",placeholder:"Enter domain name",hint:"A unique name for this domain"},code:{label:"Code",placeholder:"Enter domain code",hint:"A unique identifier for this domain"},role:{label:"Role",placeholder:"Select a role for this domain",hint:"Assign a role to control domain permissions",remove:"Remove role"},tokens:{label:"API Tokens",placeholder:"Select API tokens for this domain",hint:"Optionally associate multiple API tokens with this domain",add:"Add token",remove:"Remove token"},damRootDirectory:{label:"DAM Root Directory",placeholder:"Enter DAM root directory path",hint:"Root directory path for Digital Asset Management"},customFields:{label:"Custom Fields",hint:"Additional data stored as JSON for this domain"},logo:{label:"Logo",hint:"Upload a logo image for this domain",upload:"Upload Logo",change:"Change Logo",remove:"Remove",noImage:"No image selected"}},actions:{entry:"Entry",create:"Create Domain",update:"Update Domain"}},notifications:{deleted:"Domain deleted successfully",deleteError:"Failed to delete domain",updated:"Domain updated successfully",created:"Domain created successfully"}}};exports.default=e;
|
|
@@ -1,445 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as i, Fragment as f } from "react/jsx-runtime";
|
|
2
|
-
import { Page as u, Layouts as m } from "@strapi/admin/strapi-admin";
|
|
3
|
-
import { u as M } from "./useGetMessage-2uaqSNHA.mjs";
|
|
4
|
-
import { p as H, a as n } from "./index-ChL08Dcz.mjs";
|
|
5
|
-
import { Box as y, Flex as r, Typography as p, Grid as d, Link as h } from "@strapi/design-system";
|
|
6
|
-
import { Information as E, Message as Z, Lightning as x } from "@strapi/icons";
|
|
7
|
-
import { u as w } from "./useSettings-BCXs1q_c.mjs";
|
|
8
|
-
import { useState as V, useEffect as v } from "react";
|
|
9
|
-
import { Q as I } from "./QueryProvider-DLzv0qqi.mjs";
|
|
10
|
-
import L from "styled-components";
|
|
11
|
-
const b = ({ children: t, title: l, icon: o, className: s, secondColumn: C }) => /* @__PURE__ */ e(
|
|
12
|
-
y,
|
|
13
|
-
{
|
|
14
|
-
className: s,
|
|
15
|
-
shadow: "filterShadow",
|
|
16
|
-
hasRadius: !0,
|
|
17
|
-
background: "neutral0",
|
|
18
|
-
borderColor: "neutral150",
|
|
19
|
-
overflow: "hidden",
|
|
20
|
-
children: /* @__PURE__ */ i(r, { direction: "column", alignItems: "stretch", padding: 6, children: [
|
|
21
|
-
/* @__PURE__ */ i(r, { paddingTop: 3, paddingBottom: 6, gap: 2, children: [
|
|
22
|
-
o,
|
|
23
|
-
/* @__PURE__ */ e(p, { variant: "beta", fontWeight: "bold", children: l })
|
|
24
|
-
] }),
|
|
25
|
-
/* @__PURE__ */ i(d.Root, { gap: 6, children: [
|
|
26
|
-
/* @__PURE__ */ e(d.Item, { col: C ? 6 : 12, alignItems: "flex-start", children: /* @__PURE__ */ e(r, { direction: "column", alignItems: "flex-start", gap: 6, width: "100%", children: t }) }),
|
|
27
|
-
C && /* @__PURE__ */ e(d.Item, { col: 6, alignItems: "flex-start", children: /* @__PURE__ */ e(r, { direction: "column", alignItems: "flex-start", gap: 6, width: "100%", children: C }) })
|
|
28
|
-
] })
|
|
29
|
-
] })
|
|
30
|
-
}
|
|
31
|
-
), a = ({ label: t, value: l }) => /* @__PURE__ */ i(r, { gap: 2, direction: "column", alignItems: "flex-start", width: "100%", children: [
|
|
32
|
-
/* @__PURE__ */ e(p, { variant: "delta", children: t }),
|
|
33
|
-
/* @__PURE__ */ e(p, { variant: "omega", children: l })
|
|
34
|
-
] }), B = ({
|
|
35
|
-
width: t = 32,
|
|
36
|
-
height: l = 32,
|
|
37
|
-
className: o
|
|
38
|
-
}) => /* @__PURE__ */ i(
|
|
39
|
-
"svg",
|
|
40
|
-
{
|
|
41
|
-
width: t,
|
|
42
|
-
height: l,
|
|
43
|
-
className: o,
|
|
44
|
-
viewBox: "0 0 1090 1090",
|
|
45
|
-
fill: "none",
|
|
46
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
47
|
-
children: [
|
|
48
|
-
/* @__PURE__ */ e("rect", { width: "1090", height: "1090", fill: "#F5F5F5" }),
|
|
49
|
-
/* @__PURE__ */ e(
|
|
50
|
-
"path",
|
|
51
|
-
{
|
|
52
|
-
d: "M-6449 -910C-6449 -911.105 -6448.1 -912 -6447 -912H2833C2834.1 -912 2835 -911.105 2835 -910V1397C2835 1398.1 2834.1 1399 2833 1399H-6447C-6448.1 1399 -6449 1398.1 -6449 1397V-910Z",
|
|
53
|
-
fill: "white"
|
|
54
|
-
}
|
|
55
|
-
),
|
|
56
|
-
/* @__PURE__ */ e(
|
|
57
|
-
"path",
|
|
58
|
-
{
|
|
59
|
-
d: "M-6447 -912V-911H2833V-912V-913H-6447V-912ZM2835 -910H2834V1397H2835H2836V-910H2835ZM2833 1399V1398H-6447V1399V1400H2833V1399ZM-6449 1397H-6448V-910H-6449H-6450V1397H-6449ZM-6447 1399V1398C-6447.55 1398 -6448 1397.55 -6448 1397H-6449H-6450C-6450 1398.66 -6448.66 1400 -6447 1400V1399ZM2835 1397H2834C2834 1397.55 2833.55 1398 2833 1398V1399V1400C2834.66 1400 2836 1398.66 2836 1397H2835ZM2833 -912V-911C2833.55 -911 2834 -910.552 2834 -910H2835H2836C2836 -911.657 2834.66 -913 2833 -913V-912ZM-6447 -912V-913C-6448.66 -913 -6450 -911.657 -6450 -910H-6449H-6448C-6448 -910.552 -6447.55 -911 -6447 -911V-912Z",
|
|
60
|
-
fill: "black",
|
|
61
|
-
fillOpacity: "0.1"
|
|
62
|
-
}
|
|
63
|
-
),
|
|
64
|
-
/* @__PURE__ */ e(
|
|
65
|
-
"path",
|
|
66
|
-
{
|
|
67
|
-
d: "M1015.92 343.829L677.78 925.914C661.264 954.352 630.867 971.847 597.981 971.847H447.135C406.474 971.847 368.752 950.673 347.567 915.973L345.89 913.233C352.694 922.163 363.438 927.936 375.536 927.936C389.989 927.936 402.525 919.693 408.694 907.658C408.694 907.647 408.704 907.637 408.704 907.637C409.642 905.813 410.423 903.896 411.049 901.916L503.103 677.074L629.232 369.015C641.788 338.337 669.329 316.35 702.029 310.901L963.092 267.395C1005.95 260.247 1037.75 306.253 1015.92 343.829Z",
|
|
68
|
-
fill: "#4CE39C"
|
|
69
|
-
}
|
|
70
|
-
),
|
|
71
|
-
/* @__PURE__ */ e(
|
|
72
|
-
"path",
|
|
73
|
-
{
|
|
74
|
-
d: "M503.104 677.075L411.05 901.917L408.706 907.638C408.706 907.638 408.695 907.648 408.695 907.658C402.526 919.694 389.991 927.937 375.537 927.937C363.439 927.937 352.696 922.164 345.891 913.233L341.9 906.7L72.355 465.155C53.3586 434.04 79.6389 394.973 115.621 400.84L359.511 440.615C392.752 446.034 420.7 468.542 433.079 499.865L503.104 677.065V677.075Z",
|
|
75
|
-
fill: "#9DEFC7"
|
|
76
|
-
}
|
|
77
|
-
),
|
|
78
|
-
/* @__PURE__ */ e(
|
|
79
|
-
"mask",
|
|
80
|
-
{
|
|
81
|
-
id: "mask0_0_1",
|
|
82
|
-
style: { maskType: "alpha" },
|
|
83
|
-
maskUnits: "userSpaceOnUse",
|
|
84
|
-
x: "66",
|
|
85
|
-
y: "266",
|
|
86
|
-
width: "957",
|
|
87
|
-
height: "706",
|
|
88
|
-
children: /* @__PURE__ */ e(
|
|
89
|
-
"path",
|
|
90
|
-
{
|
|
91
|
-
d: "M963.09 267.396C1005.95 260.247 1037.75 306.253 1015.92 343.829L677.778 925.914C661.262 954.351 630.865 971.848 597.979 971.848H447.133C406.472 971.848 368.75 950.674 347.565 915.974L345.888 913.232C348.203 916.271 350.976 918.944 354.102 921.148C350.977 918.944 348.206 916.273 345.892 913.235L341.9 906.702L72.3555 465.157C53.359 434.042 79.6394 394.975 115.621 400.842L359.512 440.617C392.753 446.036 420.7 468.544 433.079 499.867L503.104 677.065L629.229 369.016C641.786 338.338 669.327 316.35 702.026 310.9L963.09 267.396ZM358.044 923.578C358.22 923.672 358.397 923.764 358.574 923.855C358.397 923.764 358.22 923.672 358.044 923.578Z",
|
|
92
|
-
fill: "#9DEFC7"
|
|
93
|
-
}
|
|
94
|
-
)
|
|
95
|
-
}
|
|
96
|
-
),
|
|
97
|
-
/* @__PURE__ */ i("g", { mask: "url(#mask0_0_1)", children: [
|
|
98
|
-
/* @__PURE__ */ e("foreignObject", { x: "121.858", y: "13.8133", width: "903.001", height: "903.001", children: /* @__PURE__ */ e(
|
|
99
|
-
"div",
|
|
100
|
-
{
|
|
101
|
-
style: {
|
|
102
|
-
backdropFilter: "blur(13.03px)",
|
|
103
|
-
clipPath: "url(#bgblur_0_0_1_clip_path)",
|
|
104
|
-
height: "100%",
|
|
105
|
-
width: "100%"
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
) }),
|
|
109
|
-
/* @__PURE__ */ e("g", { filter: "url(#filter0_d_0_1)", children: /* @__PURE__ */ e(
|
|
110
|
-
"circle",
|
|
111
|
-
{
|
|
112
|
-
cx: "521.256",
|
|
113
|
-
cy: "413.212",
|
|
114
|
-
r: "295.194",
|
|
115
|
-
fill: "white",
|
|
116
|
-
fillOpacity: "0.15",
|
|
117
|
-
shapeRendering: "crispEdges"
|
|
118
|
-
}
|
|
119
|
-
) })
|
|
120
|
-
] }),
|
|
121
|
-
/* @__PURE__ */ e("foreignObject", { x: "200.019", y: "106.967", width: "642.49", height: "642.491", children: /* @__PURE__ */ e(
|
|
122
|
-
"div",
|
|
123
|
-
{
|
|
124
|
-
style: {
|
|
125
|
-
backdropFilter: "blur(13.03px)",
|
|
126
|
-
clipPath: "url(#bgblur_1_0_1_clip_path)",
|
|
127
|
-
height: "100%",
|
|
128
|
-
width: "100%"
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
) }),
|
|
132
|
-
/* @__PURE__ */ e("circle", { cx: "521.264", cy: "428.212", r: "295.194", fill: "url(#paint0_linear_0_1)" }),
|
|
133
|
-
/* @__PURE__ */ i("g", { clipPath: "url(#clip2_0_1)", children: [
|
|
134
|
-
/* @__PURE__ */ e(
|
|
135
|
-
"path",
|
|
136
|
-
{
|
|
137
|
-
d: "M536.031 647.894V648.238C536.031 656.48 529.392 663.12 521.264 663.12C513.137 663.12 506.497 656.48 506.497 648.238V647.322C506.955 639.537 513.365 633.355 521.264 633.355C529.163 633.355 535.802 639.766 536.031 647.894Z",
|
|
138
|
-
fill: "#7E6EEB"
|
|
139
|
-
}
|
|
140
|
-
),
|
|
141
|
-
/* @__PURE__ */ e(
|
|
142
|
-
"path",
|
|
143
|
-
{
|
|
144
|
-
d: "M686.449 573.025C689.311 575.773 691.028 579.551 691.028 583.786C691.028 592.029 684.389 598.668 676.261 598.668C672.026 598.668 668.248 596.837 665.501 593.975C665.386 593.86 665.272 593.631 665.043 593.517C662.753 590.884 661.494 587.564 661.494 583.786C661.494 575.544 668.134 568.904 676.261 568.904C679.924 568.904 683.359 570.278 685.991 572.568L686.449 573.025Z",
|
|
145
|
-
fill: "#7E6EEB"
|
|
146
|
-
}
|
|
147
|
-
),
|
|
148
|
-
/* @__PURE__ */ e(
|
|
149
|
-
"path",
|
|
150
|
-
{
|
|
151
|
-
d: "M740.366 413.328C748.608 413.328 755.133 419.968 755.133 428.21C755.133 436.453 748.722 442.863 740.824 443.092C740.595 443.092 740.366 442.978 740.137 442.978H738.763C731.437 442.176 725.599 435.88 725.599 428.21C725.599 420.54 731.437 414.129 738.878 413.443H739.564C739.679 413.443 739.908 413.443 740.022 413.328H740.366Z",
|
|
152
|
-
fill: "#7E6EEB"
|
|
153
|
-
}
|
|
154
|
-
),
|
|
155
|
-
/* @__PURE__ */ e(
|
|
156
|
-
"path",
|
|
157
|
-
{
|
|
158
|
-
d: "M676.261 257.754C684.389 257.754 691.028 264.394 691.028 272.636C691.028 276.757 689.426 280.42 686.793 283.053C686.678 283.168 686.449 283.282 686.335 283.397C686.106 283.626 685.762 283.855 685.648 284.198C683.13 286.259 679.81 287.518 676.261 287.518C668.134 287.518 661.494 280.878 661.494 272.636C661.494 268.973 662.868 265.538 665.043 262.905C665.272 262.791 665.386 262.562 665.615 262.447C665.73 262.333 665.844 262.104 665.959 261.99C668.591 259.357 672.255 257.754 676.261 257.754Z",
|
|
159
|
-
fill: "#7E6EEB"
|
|
160
|
-
}
|
|
161
|
-
),
|
|
162
|
-
/* @__PURE__ */ e(
|
|
163
|
-
"path",
|
|
164
|
-
{
|
|
165
|
-
d: "M536.031 208.185V208.986C535.688 216.885 529.163 223.067 521.264 223.067C513.365 223.067 506.84 216.771 506.497 208.872V208.185C506.497 199.942 513.137 193.303 521.264 193.303C529.392 193.303 536.031 199.942 536.031 208.185Z",
|
|
166
|
-
fill: "#7E6EEB"
|
|
167
|
-
}
|
|
168
|
-
),
|
|
169
|
-
/* @__PURE__ */ e(
|
|
170
|
-
"path",
|
|
171
|
-
{
|
|
172
|
-
d: "M377.485 262.905C379.66 265.538 381.034 268.858 381.034 272.636C381.034 280.878 374.395 287.518 366.267 287.518C362.604 287.518 359.284 286.144 356.651 283.969C356.537 283.855 356.308 283.74 356.193 283.511C353.332 280.764 351.5 276.986 351.5 272.636C351.5 264.394 358.139 257.754 366.267 257.754C370.388 257.754 374.051 259.471 376.799 262.104C376.875 262.18 376.913 262.257 376.913 262.333C377.142 262.562 377.256 262.791 377.485 262.905Z",
|
|
173
|
-
fill: "#7E6EEB"
|
|
174
|
-
}
|
|
175
|
-
),
|
|
176
|
-
/* @__PURE__ */ e(
|
|
177
|
-
"path",
|
|
178
|
-
{
|
|
179
|
-
d: "M303.651 413.443C311.091 414.129 316.93 420.54 316.93 428.21C316.93 435.88 311.091 442.291 303.536 442.978C303.193 442.863 302.735 442.863 302.391 442.978C302.163 442.978 301.934 442.978 301.705 443.092C293.806 442.863 287.396 436.338 287.396 428.21C287.396 420.082 293.806 413.557 301.819 413.328C302.048 413.443 302.277 413.443 302.506 413.443H303.651Z",
|
|
180
|
-
fill: "#7E6EEB"
|
|
181
|
-
}
|
|
182
|
-
),
|
|
183
|
-
/* @__PURE__ */ e(
|
|
184
|
-
"path",
|
|
185
|
-
{
|
|
186
|
-
d: "M744.601 402.453C743.227 402.224 741.854 402.11 740.365 402.11C737.961 402.11 735.672 402.453 733.383 403.026C728.804 363.531 713.579 326.555 688.853 295.302C692.172 293.471 695.034 290.952 697.209 287.861C723.538 320.945 739.908 360.44 744.601 402.453Z",
|
|
187
|
-
fill: "#7A56E0",
|
|
188
|
-
fillOpacity: "0.3"
|
|
189
|
-
}
|
|
190
|
-
),
|
|
191
|
-
/* @__PURE__ */ e(
|
|
192
|
-
"path",
|
|
193
|
-
{
|
|
194
|
-
d: "M740.366 454.312C741.854 454.312 743.228 454.198 744.716 453.969C740.023 495.982 723.653 535.477 697.324 568.561C695.149 565.47 692.287 562.951 689.082 561.12C713.694 529.867 729.033 493.006 733.612 453.396C735.673 453.969 737.962 454.312 740.366 454.312Z",
|
|
195
|
-
fill: "#7A56E0",
|
|
196
|
-
fillOpacity: "0.3"
|
|
197
|
-
}
|
|
198
|
-
),
|
|
199
|
-
/* @__PURE__ */ e(
|
|
200
|
-
"path",
|
|
201
|
-
{
|
|
202
|
-
d: "M661.036 251.344C657.945 253.519 655.427 256.381 653.595 259.701C622.573 234.974 585.713 219.634 546.334 215.055C546.906 212.88 547.25 210.476 547.25 208.072C547.25 206.698 547.135 205.21 546.906 203.836C588.803 208.644 628.068 224.9 661.036 251.344Z",
|
|
203
|
-
fill: "#7A56E0",
|
|
204
|
-
fillOpacity: "0.3"
|
|
205
|
-
}
|
|
206
|
-
),
|
|
207
|
-
/* @__PURE__ */ e(
|
|
208
|
-
"path",
|
|
209
|
-
{
|
|
210
|
-
d: "M653.595 596.494C655.427 599.814 658.06 602.676 661.036 604.851C628.068 631.295 588.803 647.666 546.906 652.359C547.135 650.985 547.25 649.612 547.25 648.123C547.25 645.719 546.906 643.315 546.334 641.14C585.713 636.79 622.573 621.336 653.595 596.494Z",
|
|
211
|
-
fill: "#7A56E0",
|
|
212
|
-
fillOpacity: "0.3"
|
|
213
|
-
}
|
|
214
|
-
),
|
|
215
|
-
/* @__PURE__ */ e(
|
|
216
|
-
"path",
|
|
217
|
-
{
|
|
218
|
-
d: "M495.622 203.836C495.393 205.21 495.279 206.583 495.279 208.072C495.279 210.476 495.622 212.765 496.194 215.055C456.93 219.634 420.07 234.974 388.819 259.701C386.987 256.381 384.354 253.519 381.378 251.344C414.461 224.9 453.839 208.53 495.622 203.836Z",
|
|
219
|
-
fill: "#7A56E0",
|
|
220
|
-
fillOpacity: "0.3"
|
|
221
|
-
}
|
|
222
|
-
),
|
|
223
|
-
/* @__PURE__ */ e(
|
|
224
|
-
"path",
|
|
225
|
-
{
|
|
226
|
-
d: "M496.194 641.254C495.622 643.429 495.279 645.833 495.279 648.237C495.279 649.611 495.393 651.099 495.622 652.472C453.839 647.779 414.575 631.409 381.378 604.964C384.469 602.789 386.987 599.927 388.819 596.607C420.07 621.335 456.93 636.675 496.194 641.254Z",
|
|
227
|
-
fill: "#7A56E0",
|
|
228
|
-
fillOpacity: "0.3"
|
|
229
|
-
}
|
|
230
|
-
),
|
|
231
|
-
/* @__PURE__ */ e(
|
|
232
|
-
"path",
|
|
233
|
-
{
|
|
234
|
-
d: "M381.034 583.786C381.034 587.335 379.775 590.655 377.714 593.174C377.485 593.402 377.142 593.631 376.913 593.975C376.799 594.089 376.684 594.318 376.57 594.433C373.937 597.066 370.274 598.668 366.267 598.668C358.139 598.668 351.5 592.029 351.5 583.786C351.5 579.551 353.217 575.773 356.079 573.025C356.193 572.911 356.422 572.797 356.537 572.568C359.17 570.278 362.489 568.904 366.267 568.904C374.509 568.904 381.034 575.544 381.034 583.786Z",
|
|
235
|
-
fill: "#7E6EEB"
|
|
236
|
-
}
|
|
237
|
-
),
|
|
238
|
-
/* @__PURE__ */ e(
|
|
239
|
-
"path",
|
|
240
|
-
{
|
|
241
|
-
d: "M345.319 287.861C347.494 290.952 350.355 293.471 353.675 295.302C328.949 326.555 313.724 363.531 309.145 403.026C306.97 402.453 304.566 402.11 302.162 402.11C300.789 402.11 299.3 402.224 297.927 402.453C302.735 360.44 318.99 321.06 345.319 287.861Z",
|
|
242
|
-
fill: "#7A56E0",
|
|
243
|
-
fillOpacity: "0.3"
|
|
244
|
-
}
|
|
245
|
-
),
|
|
246
|
-
/* @__PURE__ */ e(
|
|
247
|
-
"path",
|
|
248
|
-
{
|
|
249
|
-
d: "M353.446 561.005C350.127 562.836 347.379 565.469 345.204 568.446C318.876 535.362 302.62 495.867 297.812 453.854C299.186 454.083 300.674 454.197 302.162 454.197C304.566 454.197 306.856 453.854 309.031 453.281C313.61 492.776 328.835 529.867 353.446 561.005Z",
|
|
250
|
-
fill: "#7A56E0",
|
|
251
|
-
fillOpacity: "0.3"
|
|
252
|
-
}
|
|
253
|
-
),
|
|
254
|
-
/* @__PURE__ */ e(
|
|
255
|
-
"path",
|
|
256
|
-
{
|
|
257
|
-
d: "M655.772 474.385C660.884 459.754 663.664 444.052 663.664 427.699C663.664 411.347 660.87 395.645 655.772 381.014C655.65 380.58 655.5 380.146 655.324 379.739C635.621 325.04 583.198 285.812 521.784 285.812C460.369 285.812 407.946 325.04 388.243 379.739C388.067 380.16 387.917 380.58 387.795 381.014C382.683 395.645 379.903 411.347 379.903 427.686C379.903 444.025 382.697 459.741 387.795 474.371C387.917 474.805 388.067 475.239 388.243 475.646C407.946 530.359 460.369 569.573 521.784 569.573C583.198 569.573 635.621 530.345 655.324 475.646C655.5 475.239 655.65 474.805 655.772 474.371V474.385ZM521.784 549.247C516.373 549.247 507.667 539.471 500.386 517.626C496.873 507.091 494.053 494.968 492.005 481.775H551.562C549.514 494.955 546.694 507.077 543.181 517.626C535.9 539.471 527.18 549.247 521.784 549.247ZM489.537 461.436C488.561 450.588 488.046 439.279 488.046 427.699C488.046 416.12 488.561 404.811 489.537 393.963H554.03C555.006 404.811 555.521 416.12 555.521 427.699C555.521 439.279 555.006 450.588 554.03 461.436H489.537ZM400.23 427.699C400.23 415.998 401.898 404.675 405.003 393.963H469.143C468.194 405.028 467.706 416.377 467.706 427.699C467.706 439.022 468.194 450.371 469.143 461.436H405.003C401.898 450.724 400.23 439.401 400.23 427.699ZM521.784 306.152C527.194 306.152 535.9 315.928 543.181 337.773C546.694 348.322 549.514 360.431 551.562 373.61H492.005C494.053 360.431 496.873 348.308 500.386 337.773C507.667 315.928 516.387 306.152 521.784 306.152ZM574.424 393.963H638.564C641.669 404.675 643.337 415.998 643.337 427.699C643.337 439.401 641.669 450.724 638.564 461.436H574.424C575.373 450.371 575.862 439.022 575.862 427.699C575.862 416.377 575.373 405.028 574.424 393.963ZM630.618 373.624H572.092C568.471 348.675 562.274 326.301 553.555 310.382C587.32 319.535 615.281 342.898 630.618 373.624ZM489.998 310.369C481.293 326.288 475.082 348.675 471.462 373.624H412.949C428.286 342.898 456.247 319.522 490.012 310.369H489.998ZM412.949 481.775H471.475C475.096 506.724 481.306 529.098 490.012 545.03C456.247 535.877 428.286 512.514 412.949 481.775ZM553.555 545.03C562.261 529.111 568.471 506.724 572.092 481.775H630.618C615.281 512.514 587.32 535.877 553.555 545.03Z",
|
|
258
|
-
fill: "#876FF2",
|
|
259
|
-
fillOpacity: "0.8"
|
|
260
|
-
}
|
|
261
|
-
)
|
|
262
|
-
] }),
|
|
263
|
-
/* @__PURE__ */ i("defs", { children: [
|
|
264
|
-
/* @__PURE__ */ i(
|
|
265
|
-
"filter",
|
|
266
|
-
{
|
|
267
|
-
id: "filter0_d_0_1",
|
|
268
|
-
x: "121.858",
|
|
269
|
-
y: "13.8133",
|
|
270
|
-
width: "903.001",
|
|
271
|
-
height: "903.001",
|
|
272
|
-
filterUnits: "userSpaceOnUse",
|
|
273
|
-
colorInterpolationFilters: "sRGB",
|
|
274
|
-
children: [
|
|
275
|
-
/* @__PURE__ */ e("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
276
|
-
/* @__PURE__ */ e(
|
|
277
|
-
"feColorMatrix",
|
|
278
|
-
{
|
|
279
|
-
in: "SourceAlpha",
|
|
280
|
-
type: "matrix",
|
|
281
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
|
|
282
|
-
result: "hardAlpha"
|
|
283
|
-
}
|
|
284
|
-
),
|
|
285
|
-
/* @__PURE__ */ e("feOffset", { dx: "52.1021", dy: "52.1021" }),
|
|
286
|
-
/* @__PURE__ */ e("feGaussianBlur", { stdDeviation: "78.1532" }),
|
|
287
|
-
/* @__PURE__ */ e("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
288
|
-
/* @__PURE__ */ e(
|
|
289
|
-
"feColorMatrix",
|
|
290
|
-
{
|
|
291
|
-
type: "matrix",
|
|
292
|
-
values: "0 0 0 0 0.0313726 0 0 0 0 0.545098 0 0 0 0 0.309804 0 0 0 0.8 0"
|
|
293
|
-
}
|
|
294
|
-
),
|
|
295
|
-
/* @__PURE__ */ e("feBlend", { mode: "normal", in2: "BackgroundImageFix", result: "effect1_dropShadow_0_1" }),
|
|
296
|
-
/* @__PURE__ */ e("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect1_dropShadow_0_1", result: "shape" })
|
|
297
|
-
]
|
|
298
|
-
}
|
|
299
|
-
),
|
|
300
|
-
/* @__PURE__ */ e("clipPath", { id: "bgblur_0_0_1_clip_path", transform: "translate(-121.858 -13.8133)", children: /* @__PURE__ */ e("circle", { cx: "521.256", cy: "413.212", r: "295.194" }) }),
|
|
301
|
-
/* @__PURE__ */ e("clipPath", { id: "bgblur_1_0_1_clip_path", transform: "translate(-200.019 -106.967)", children: /* @__PURE__ */ e("circle", { cx: "521.264", cy: "428.212", r: "295.194" }) }),
|
|
302
|
-
/* @__PURE__ */ i(
|
|
303
|
-
"linearGradient",
|
|
304
|
-
{
|
|
305
|
-
id: "paint0_linear_0_1",
|
|
306
|
-
x1: "521.264",
|
|
307
|
-
y1: "133.018",
|
|
308
|
-
x2: "521.264",
|
|
309
|
-
y2: "723.406",
|
|
310
|
-
gradientUnits: "userSpaceOnUse",
|
|
311
|
-
children: [
|
|
312
|
-
/* @__PURE__ */ e("stop", { stopColor: "#9777F6", stopOpacity: "0.5" }),
|
|
313
|
-
/* @__PURE__ */ e("stop", { offset: "0.258389", stopColor: "#CBBBFB", stopOpacity: "0.75" }),
|
|
314
|
-
/* @__PURE__ */ e("stop", { offset: "1", stopColor: "white", stopOpacity: "0.85" })
|
|
315
|
-
]
|
|
316
|
-
}
|
|
317
|
-
),
|
|
318
|
-
/* @__PURE__ */ e("clipPath", { id: "clip2_0_1", children: /* @__PURE__ */ e(
|
|
319
|
-
"rect",
|
|
320
|
-
{
|
|
321
|
-
width: "467.737",
|
|
322
|
-
height: "469.816",
|
|
323
|
-
fill: "white",
|
|
324
|
-
transform: "translate(287.396 193.303)"
|
|
325
|
-
}
|
|
326
|
-
) })
|
|
327
|
-
] })
|
|
328
|
-
]
|
|
329
|
-
}
|
|
330
|
-
), g = L(b)`
|
|
331
|
-
flex: 1;
|
|
332
|
-
`, O = () => {
|
|
333
|
-
const t = M(), { data: l } = w(), [o, s] = V("");
|
|
334
|
-
v(() => {
|
|
335
|
-
l?.validTo && s(
|
|
336
|
-
new Intl.DateTimeFormat("en-US", {
|
|
337
|
-
year: "numeric",
|
|
338
|
-
month: "long",
|
|
339
|
-
day: "numeric"
|
|
340
|
-
}).format(new Date(l.validTo))
|
|
341
|
-
);
|
|
342
|
-
}, [l]);
|
|
343
|
-
const C = t("about.title"), _ = ["schemas", "decorators", "extensions"];
|
|
344
|
-
return /* @__PURE__ */ i(f, { children: [
|
|
345
|
-
/* @__PURE__ */ e(u.Title, { children: `${C} ${H}` }),
|
|
346
|
-
/* @__PURE__ */ i(u.Main, { children: [
|
|
347
|
-
/* @__PURE__ */ e(m.Header, { title: C, as: "h2" }),
|
|
348
|
-
/* @__PURE__ */ e(m.Content, { children: /* @__PURE__ */ i(r, { gap: 6, direction: "column", alignItems: "stretch", children: [
|
|
349
|
-
/* @__PURE__ */ i(r, { gap: 6, width: "100%", justifyContent: "stretch", alignItems: "stretch", children: [
|
|
350
|
-
/* @__PURE__ */ i(
|
|
351
|
-
g,
|
|
352
|
-
{
|
|
353
|
-
title: t("about.pluginInfo.title"),
|
|
354
|
-
icon: /* @__PURE__ */ e(E, {}),
|
|
355
|
-
children: [
|
|
356
|
-
/* @__PURE__ */ e(
|
|
357
|
-
a,
|
|
358
|
-
{
|
|
359
|
-
label: t("about.pluginInfo.name"),
|
|
360
|
-
value: /* @__PURE__ */ i(r, { alignItems: "center", width: "100%", gap: 2, children: [
|
|
361
|
-
/* @__PURE__ */ e(B, {}),
|
|
362
|
-
/* @__PURE__ */ e(h, { isExternal: !0, href: `https://www.npmjs.com/package/${n.name}`, children: n.name })
|
|
363
|
-
] })
|
|
364
|
-
}
|
|
365
|
-
),
|
|
366
|
-
/* @__PURE__ */ e(
|
|
367
|
-
a,
|
|
368
|
-
{
|
|
369
|
-
label: t("about.pluginInfo.version"),
|
|
370
|
-
value: n.version
|
|
371
|
-
}
|
|
372
|
-
)
|
|
373
|
-
]
|
|
374
|
-
}
|
|
375
|
-
),
|
|
376
|
-
/* @__PURE__ */ i(g, { title: t("about.contact.title"), icon: /* @__PURE__ */ e(Z, {}), children: [
|
|
377
|
-
/* @__PURE__ */ e(
|
|
378
|
-
a,
|
|
379
|
-
{
|
|
380
|
-
label: t("about.contact.website"),
|
|
381
|
-
value: /* @__PURE__ */ e(h, { isExternal: !0, href: n.homepage, children: n.homepage })
|
|
382
|
-
}
|
|
383
|
-
),
|
|
384
|
-
/* @__PURE__ */ e(
|
|
385
|
-
a,
|
|
386
|
-
{
|
|
387
|
-
label: t("about.contact.email"),
|
|
388
|
-
value: /* @__PURE__ */ e(h, { href: `mailto:${n.email}`, children: n.email })
|
|
389
|
-
}
|
|
390
|
-
)
|
|
391
|
-
] })
|
|
392
|
-
] }),
|
|
393
|
-
/* @__PURE__ */ i(
|
|
394
|
-
b,
|
|
395
|
-
{
|
|
396
|
-
title: t("about.licenseDetails.title"),
|
|
397
|
-
icon: /* @__PURE__ */ e(x, {}),
|
|
398
|
-
secondColumn: /* @__PURE__ */ i(f, { children: [
|
|
399
|
-
/* @__PURE__ */ e(
|
|
400
|
-
a,
|
|
401
|
-
{
|
|
402
|
-
label: t("about.licenseDetails.limits.seats"),
|
|
403
|
-
value: `${l?.features?.occupiedSeats} / ${l?.features?.seats}`
|
|
404
|
-
}
|
|
405
|
-
),
|
|
406
|
-
/* @__PURE__ */ e(
|
|
407
|
-
a,
|
|
408
|
-
{
|
|
409
|
-
label: t("about.licenseDetails.limits.domains"),
|
|
410
|
-
value: `${l?.features?.occupiedDomains} / ${l?.features?.domains}`
|
|
411
|
-
}
|
|
412
|
-
)
|
|
413
|
-
] }),
|
|
414
|
-
children: [
|
|
415
|
-
/* @__PURE__ */ e(
|
|
416
|
-
a,
|
|
417
|
-
{
|
|
418
|
-
label: t("about.licenseDetails.planName"),
|
|
419
|
-
value: l?.features?.plan
|
|
420
|
-
}
|
|
421
|
-
),
|
|
422
|
-
/* @__PURE__ */ e(a, { label: t("about.licenseDetails.validUntil"), value: o }),
|
|
423
|
-
/* @__PURE__ */ e(
|
|
424
|
-
a,
|
|
425
|
-
{
|
|
426
|
-
label: t("about.licenseDetails.features.title"),
|
|
427
|
-
value: /* @__PURE__ */ e(r, { direction: "column", gap: 1, alignItems: "flex-start", children: _.map((c) => /* @__PURE__ */ e(
|
|
428
|
-
"span",
|
|
429
|
-
{
|
|
430
|
-
children: `${t(`about.licenseDetails.features.${c}`)}: ${t(`about.licenseDetails.features.${l?.features?.[c] ? "enabled" : "disabled"}`)}`
|
|
431
|
-
},
|
|
432
|
-
c
|
|
433
|
-
)) })
|
|
434
|
-
}
|
|
435
|
-
)
|
|
436
|
-
]
|
|
437
|
-
}
|
|
438
|
-
)
|
|
439
|
-
] }) })
|
|
440
|
-
] })
|
|
441
|
-
] });
|
|
442
|
-
}, G = () => /* @__PURE__ */ e(I, { children: /* @__PURE__ */ e(O, {}) });
|
|
443
|
-
export {
|
|
444
|
-
G as default
|
|
445
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("@strapi/admin/strapi-admin"),f=require("./useGetMessage-R3JXzZcF.js"),a=require("./index-TelSPPuG.js"),l=require("@strapi/design-system"),d=require("@strapi/icons"),j=require("./useSettings-Hd_Y-NfK.js"),h=require("react"),g=require("./QueryProvider-DUoM4JhC.js"),m=require("styled-components"),_=t=>t&&t.__esModule?t:{default:t},y=_(m),p=({children:t,title:i,icon:n,className:o,secondColumn:r})=>e.jsx(l.Box,{className:o,shadow:"filterShadow",hasRadius:!0,background:"neutral0",borderColor:"neutral150",overflow:"hidden",children:e.jsxs(l.Flex,{direction:"column",alignItems:"stretch",padding:6,children:[e.jsxs(l.Flex,{paddingTop:3,paddingBottom:6,gap:2,children:[n,e.jsx(l.Typography,{variant:"beta",fontWeight:"bold",children:i})]}),e.jsxs(l.Grid.Root,{gap:6,children:[e.jsx(l.Grid.Item,{col:r?6:12,alignItems:"flex-start",children:e.jsx(l.Flex,{direction:"column",alignItems:"flex-start",gap:6,width:"100%",children:t})}),r&&e.jsx(l.Grid.Item,{col:6,alignItems:"flex-start",children:e.jsx(l.Flex,{direction:"column",alignItems:"flex-start",gap:6,width:"100%",children:r})})]})]})}),s=({label:t,value:i})=>e.jsxs(l.Flex,{gap:2,direction:"column",alignItems:"flex-start",width:"100%",children:[e.jsx(l.Typography,{variant:"delta",children:t}),e.jsx(l.Typography,{variant:"omega",children:i})]}),b=({width:t=32,height:i=32,className:n})=>e.jsxs("svg",{width:t,height:i,className:n,viewBox:"0 0 1090 1090",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("rect",{width:"1090",height:"1090",fill:"#F5F5F5"}),e.jsx("path",{d:"M-6449 -910C-6449 -911.105 -6448.1 -912 -6447 -912H2833C2834.1 -912 2835 -911.105 2835 -910V1397C2835 1398.1 2834.1 1399 2833 1399H-6447C-6448.1 1399 -6449 1398.1 -6449 1397V-910Z",fill:"white"}),e.jsx("path",{d:"M-6447 -912V-911H2833V-912V-913H-6447V-912ZM2835 -910H2834V1397H2835H2836V-910H2835ZM2833 1399V1398H-6447V1399V1400H2833V1399ZM-6449 1397H-6448V-910H-6449H-6450V1397H-6449ZM-6447 1399V1398C-6447.55 1398 -6448 1397.55 -6448 1397H-6449H-6450C-6450 1398.66 -6448.66 1400 -6447 1400V1399ZM2835 1397H2834C2834 1397.55 2833.55 1398 2833 1398V1399V1400C2834.66 1400 2836 1398.66 2836 1397H2835ZM2833 -912V-911C2833.55 -911 2834 -910.552 2834 -910H2835H2836C2836 -911.657 2834.66 -913 2833 -913V-912ZM-6447 -912V-913C-6448.66 -913 -6450 -911.657 -6450 -910H-6449H-6448C-6448 -910.552 -6447.55 -911 -6447 -911V-912Z",fill:"black",fillOpacity:"0.1"}),e.jsx("path",{d:"M1015.92 343.829L677.78 925.914C661.264 954.352 630.867 971.847 597.981 971.847H447.135C406.474 971.847 368.752 950.673 347.567 915.973L345.89 913.233C352.694 922.163 363.438 927.936 375.536 927.936C389.989 927.936 402.525 919.693 408.694 907.658C408.694 907.647 408.704 907.637 408.704 907.637C409.642 905.813 410.423 903.896 411.049 901.916L503.103 677.074L629.232 369.015C641.788 338.337 669.329 316.35 702.029 310.901L963.092 267.395C1005.95 260.247 1037.75 306.253 1015.92 343.829Z",fill:"#4CE39C"}),e.jsx("path",{d:"M503.104 677.075L411.05 901.917L408.706 907.638C408.706 907.638 408.695 907.648 408.695 907.658C402.526 919.694 389.991 927.937 375.537 927.937C363.439 927.937 352.696 922.164 345.891 913.233L341.9 906.7L72.355 465.155C53.3586 434.04 79.6389 394.973 115.621 400.84L359.511 440.615C392.752 446.034 420.7 468.542 433.079 499.865L503.104 677.065V677.075Z",fill:"#9DEFC7"}),e.jsx("mask",{id:"mask0_0_1",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"66",y:"266",width:"957",height:"706",children:e.jsx("path",{d:"M963.09 267.396C1005.95 260.247 1037.75 306.253 1015.92 343.829L677.778 925.914C661.262 954.351 630.865 971.848 597.979 971.848H447.133C406.472 971.848 368.75 950.674 347.565 915.974L345.888 913.232C348.203 916.271 350.976 918.944 354.102 921.148C350.977 918.944 348.206 916.273 345.892 913.235L341.9 906.702L72.3555 465.157C53.359 434.042 79.6394 394.975 115.621 400.842L359.512 440.617C392.753 446.036 420.7 468.544 433.079 499.867L503.104 677.065L629.229 369.016C641.786 338.338 669.327 316.35 702.026 310.9L963.09 267.396ZM358.044 923.578C358.22 923.672 358.397 923.764 358.574 923.855C358.397 923.764 358.22 923.672 358.044 923.578Z",fill:"#9DEFC7"})}),e.jsxs("g",{mask:"url(#mask0_0_1)",children:[e.jsx("foreignObject",{x:"121.858",y:"13.8133",width:"903.001",height:"903.001",children:e.jsx("div",{style:{backdropFilter:"blur(13.03px)",clipPath:"url(#bgblur_0_0_1_clip_path)",height:"100%",width:"100%"}})}),e.jsx("g",{filter:"url(#filter0_d_0_1)",children:e.jsx("circle",{cx:"521.256",cy:"413.212",r:"295.194",fill:"white",fillOpacity:"0.15",shapeRendering:"crispEdges"})})]}),e.jsx("foreignObject",{x:"200.019",y:"106.967",width:"642.49",height:"642.491",children:e.jsx("div",{style:{backdropFilter:"blur(13.03px)",clipPath:"url(#bgblur_1_0_1_clip_path)",height:"100%",width:"100%"}})}),e.jsx("circle",{cx:"521.264",cy:"428.212",r:"295.194",fill:"url(#paint0_linear_0_1)"}),e.jsxs("g",{clipPath:"url(#clip2_0_1)",children:[e.jsx("path",{d:"M536.031 647.894V648.238C536.031 656.48 529.392 663.12 521.264 663.12C513.137 663.12 506.497 656.48 506.497 648.238V647.322C506.955 639.537 513.365 633.355 521.264 633.355C529.163 633.355 535.802 639.766 536.031 647.894Z",fill:"#7E6EEB"}),e.jsx("path",{d:"M686.449 573.025C689.311 575.773 691.028 579.551 691.028 583.786C691.028 592.029 684.389 598.668 676.261 598.668C672.026 598.668 668.248 596.837 665.501 593.975C665.386 593.86 665.272 593.631 665.043 593.517C662.753 590.884 661.494 587.564 661.494 583.786C661.494 575.544 668.134 568.904 676.261 568.904C679.924 568.904 683.359 570.278 685.991 572.568L686.449 573.025Z",fill:"#7E6EEB"}),e.jsx("path",{d:"M740.366 413.328C748.608 413.328 755.133 419.968 755.133 428.21C755.133 436.453 748.722 442.863 740.824 443.092C740.595 443.092 740.366 442.978 740.137 442.978H738.763C731.437 442.176 725.599 435.88 725.599 428.21C725.599 420.54 731.437 414.129 738.878 413.443H739.564C739.679 413.443 739.908 413.443 740.022 413.328H740.366Z",fill:"#7E6EEB"}),e.jsx("path",{d:"M676.261 257.754C684.389 257.754 691.028 264.394 691.028 272.636C691.028 276.757 689.426 280.42 686.793 283.053C686.678 283.168 686.449 283.282 686.335 283.397C686.106 283.626 685.762 283.855 685.648 284.198C683.13 286.259 679.81 287.518 676.261 287.518C668.134 287.518 661.494 280.878 661.494 272.636C661.494 268.973 662.868 265.538 665.043 262.905C665.272 262.791 665.386 262.562 665.615 262.447C665.73 262.333 665.844 262.104 665.959 261.99C668.591 259.357 672.255 257.754 676.261 257.754Z",fill:"#7E6EEB"}),e.jsx("path",{d:"M536.031 208.185V208.986C535.688 216.885 529.163 223.067 521.264 223.067C513.365 223.067 506.84 216.771 506.497 208.872V208.185C506.497 199.942 513.137 193.303 521.264 193.303C529.392 193.303 536.031 199.942 536.031 208.185Z",fill:"#7E6EEB"}),e.jsx("path",{d:"M377.485 262.905C379.66 265.538 381.034 268.858 381.034 272.636C381.034 280.878 374.395 287.518 366.267 287.518C362.604 287.518 359.284 286.144 356.651 283.969C356.537 283.855 356.308 283.74 356.193 283.511C353.332 280.764 351.5 276.986 351.5 272.636C351.5 264.394 358.139 257.754 366.267 257.754C370.388 257.754 374.051 259.471 376.799 262.104C376.875 262.18 376.913 262.257 376.913 262.333C377.142 262.562 377.256 262.791 377.485 262.905Z",fill:"#7E6EEB"}),e.jsx("path",{d:"M303.651 413.443C311.091 414.129 316.93 420.54 316.93 428.21C316.93 435.88 311.091 442.291 303.536 442.978C303.193 442.863 302.735 442.863 302.391 442.978C302.163 442.978 301.934 442.978 301.705 443.092C293.806 442.863 287.396 436.338 287.396 428.21C287.396 420.082 293.806 413.557 301.819 413.328C302.048 413.443 302.277 413.443 302.506 413.443H303.651Z",fill:"#7E6EEB"}),e.jsx("path",{d:"M744.601 402.453C743.227 402.224 741.854 402.11 740.365 402.11C737.961 402.11 735.672 402.453 733.383 403.026C728.804 363.531 713.579 326.555 688.853 295.302C692.172 293.471 695.034 290.952 697.209 287.861C723.538 320.945 739.908 360.44 744.601 402.453Z",fill:"#7A56E0",fillOpacity:"0.3"}),e.jsx("path",{d:"M740.366 454.312C741.854 454.312 743.228 454.198 744.716 453.969C740.023 495.982 723.653 535.477 697.324 568.561C695.149 565.47 692.287 562.951 689.082 561.12C713.694 529.867 729.033 493.006 733.612 453.396C735.673 453.969 737.962 454.312 740.366 454.312Z",fill:"#7A56E0",fillOpacity:"0.3"}),e.jsx("path",{d:"M661.036 251.344C657.945 253.519 655.427 256.381 653.595 259.701C622.573 234.974 585.713 219.634 546.334 215.055C546.906 212.88 547.25 210.476 547.25 208.072C547.25 206.698 547.135 205.21 546.906 203.836C588.803 208.644 628.068 224.9 661.036 251.344Z",fill:"#7A56E0",fillOpacity:"0.3"}),e.jsx("path",{d:"M653.595 596.494C655.427 599.814 658.06 602.676 661.036 604.851C628.068 631.295 588.803 647.666 546.906 652.359C547.135 650.985 547.25 649.612 547.25 648.123C547.25 645.719 546.906 643.315 546.334 641.14C585.713 636.79 622.573 621.336 653.595 596.494Z",fill:"#7A56E0",fillOpacity:"0.3"}),e.jsx("path",{d:"M495.622 203.836C495.393 205.21 495.279 206.583 495.279 208.072C495.279 210.476 495.622 212.765 496.194 215.055C456.93 219.634 420.07 234.974 388.819 259.701C386.987 256.381 384.354 253.519 381.378 251.344C414.461 224.9 453.839 208.53 495.622 203.836Z",fill:"#7A56E0",fillOpacity:"0.3"}),e.jsx("path",{d:"M496.194 641.254C495.622 643.429 495.279 645.833 495.279 648.237C495.279 649.611 495.393 651.099 495.622 652.472C453.839 647.779 414.575 631.409 381.378 604.964C384.469 602.789 386.987 599.927 388.819 596.607C420.07 621.335 456.93 636.675 496.194 641.254Z",fill:"#7A56E0",fillOpacity:"0.3"}),e.jsx("path",{d:"M381.034 583.786C381.034 587.335 379.775 590.655 377.714 593.174C377.485 593.402 377.142 593.631 376.913 593.975C376.799 594.089 376.684 594.318 376.57 594.433C373.937 597.066 370.274 598.668 366.267 598.668C358.139 598.668 351.5 592.029 351.5 583.786C351.5 579.551 353.217 575.773 356.079 573.025C356.193 572.911 356.422 572.797 356.537 572.568C359.17 570.278 362.489 568.904 366.267 568.904C374.509 568.904 381.034 575.544 381.034 583.786Z",fill:"#7E6EEB"}),e.jsx("path",{d:"M345.319 287.861C347.494 290.952 350.355 293.471 353.675 295.302C328.949 326.555 313.724 363.531 309.145 403.026C306.97 402.453 304.566 402.11 302.162 402.11C300.789 402.11 299.3 402.224 297.927 402.453C302.735 360.44 318.99 321.06 345.319 287.861Z",fill:"#7A56E0",fillOpacity:"0.3"}),e.jsx("path",{d:"M353.446 561.005C350.127 562.836 347.379 565.469 345.204 568.446C318.876 535.362 302.62 495.867 297.812 453.854C299.186 454.083 300.674 454.197 302.162 454.197C304.566 454.197 306.856 453.854 309.031 453.281C313.61 492.776 328.835 529.867 353.446 561.005Z",fill:"#7A56E0",fillOpacity:"0.3"}),e.jsx("path",{d:"M655.772 474.385C660.884 459.754 663.664 444.052 663.664 427.699C663.664 411.347 660.87 395.645 655.772 381.014C655.65 380.58 655.5 380.146 655.324 379.739C635.621 325.04 583.198 285.812 521.784 285.812C460.369 285.812 407.946 325.04 388.243 379.739C388.067 380.16 387.917 380.58 387.795 381.014C382.683 395.645 379.903 411.347 379.903 427.686C379.903 444.025 382.697 459.741 387.795 474.371C387.917 474.805 388.067 475.239 388.243 475.646C407.946 530.359 460.369 569.573 521.784 569.573C583.198 569.573 635.621 530.345 655.324 475.646C655.5 475.239 655.65 474.805 655.772 474.371V474.385ZM521.784 549.247C516.373 549.247 507.667 539.471 500.386 517.626C496.873 507.091 494.053 494.968 492.005 481.775H551.562C549.514 494.955 546.694 507.077 543.181 517.626C535.9 539.471 527.18 549.247 521.784 549.247ZM489.537 461.436C488.561 450.588 488.046 439.279 488.046 427.699C488.046 416.12 488.561 404.811 489.537 393.963H554.03C555.006 404.811 555.521 416.12 555.521 427.699C555.521 439.279 555.006 450.588 554.03 461.436H489.537ZM400.23 427.699C400.23 415.998 401.898 404.675 405.003 393.963H469.143C468.194 405.028 467.706 416.377 467.706 427.699C467.706 439.022 468.194 450.371 469.143 461.436H405.003C401.898 450.724 400.23 439.401 400.23 427.699ZM521.784 306.152C527.194 306.152 535.9 315.928 543.181 337.773C546.694 348.322 549.514 360.431 551.562 373.61H492.005C494.053 360.431 496.873 348.308 500.386 337.773C507.667 315.928 516.387 306.152 521.784 306.152ZM574.424 393.963H638.564C641.669 404.675 643.337 415.998 643.337 427.699C643.337 439.401 641.669 450.724 638.564 461.436H574.424C575.373 450.371 575.862 439.022 575.862 427.699C575.862 416.377 575.373 405.028 574.424 393.963ZM630.618 373.624H572.092C568.471 348.675 562.274 326.301 553.555 310.382C587.32 319.535 615.281 342.898 630.618 373.624ZM489.998 310.369C481.293 326.288 475.082 348.675 471.462 373.624H412.949C428.286 342.898 456.247 319.522 490.012 310.369H489.998ZM412.949 481.775H471.475C475.096 506.724 481.306 529.098 490.012 545.03C456.247 535.877 428.286 512.514 412.949 481.775ZM553.555 545.03C562.261 529.111 568.471 506.724 572.092 481.775H630.618C615.281 512.514 587.32 535.877 553.555 545.03Z",fill:"#876FF2",fillOpacity:"0.8"})]}),e.jsxs("defs",{children:[e.jsxs("filter",{id:"filter0_d_0_1",x:"121.858",y:"13.8133",width:"903.001",height:"903.001",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[e.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.jsx("feOffset",{dx:"52.1021",dy:"52.1021"}),e.jsx("feGaussianBlur",{stdDeviation:"78.1532"}),e.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),e.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0313726 0 0 0 0 0.545098 0 0 0 0 0.309804 0 0 0 0.8 0"}),e.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_0_1"}),e.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_0_1",result:"shape"})]}),e.jsx("clipPath",{id:"bgblur_0_0_1_clip_path",transform:"translate(-121.858 -13.8133)",children:e.jsx("circle",{cx:"521.256",cy:"413.212",r:"295.194"})}),e.jsx("clipPath",{id:"bgblur_1_0_1_clip_path",transform:"translate(-200.019 -106.967)",children:e.jsx("circle",{cx:"521.264",cy:"428.212",r:"295.194"})}),e.jsxs("linearGradient",{id:"paint0_linear_0_1",x1:"521.264",y1:"133.018",x2:"521.264",y2:"723.406",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#9777F6",stopOpacity:"0.5"}),e.jsx("stop",{offset:"0.258389",stopColor:"#CBBBFB",stopOpacity:"0.75"}),e.jsx("stop",{offset:"1",stopColor:"white",stopOpacity:"0.85"})]}),e.jsx("clipPath",{id:"clip2_0_1",children:e.jsx("rect",{width:"467.737",height:"469.816",fill:"white",transform:"translate(287.396 193.303)"})})]})]}),x=y.default(p)`
|
|
2
|
-
flex: 1;
|
|
3
|
-
`,M=()=>{const t=f.useGetMessage(),{data:i}=j.useSettings(),[n,o]=h.useState("");h.useEffect(()=>{i?.validTo&&o(new Intl.DateTimeFormat("en-US",{year:"numeric",month:"long",day:"numeric"}).format(new Date(i.validTo)))},[i]);const r=t("about.title"),u=["schemas","decorators","extensions"];return e.jsxs(e.Fragment,{children:[e.jsx(c.Page.Title,{children:`${r} ${a.pluginId}`}),e.jsxs(c.Page.Main,{children:[e.jsx(c.Layouts.Header,{title:r,as:"h2"}),e.jsx(c.Layouts.Content,{children:e.jsxs(l.Flex,{gap:6,direction:"column",alignItems:"stretch",children:[e.jsxs(l.Flex,{gap:6,width:"100%",justifyContent:"stretch",alignItems:"stretch",children:[e.jsxs(x,{title:t("about.pluginInfo.title"),icon:e.jsx(d.Information,{}),children:[e.jsx(s,{label:t("about.pluginInfo.name"),value:e.jsxs(l.Flex,{alignItems:"center",width:"100%",gap:2,children:[e.jsx(b,{}),e.jsx(l.Link,{isExternal:!0,href:`https://www.npmjs.com/package/${a.packageJson.name}`,children:a.packageJson.name})]})}),e.jsx(s,{label:t("about.pluginInfo.version"),value:a.packageJson.version})]}),e.jsxs(x,{title:t("about.contact.title"),icon:e.jsx(d.Message,{}),children:[e.jsx(s,{label:t("about.contact.website"),value:e.jsx(l.Link,{isExternal:!0,href:a.packageJson.homepage,children:a.packageJson.homepage})}),e.jsx(s,{label:t("about.contact.email"),value:e.jsx(l.Link,{href:`mailto:${a.packageJson.email}`,children:a.packageJson.email})})]})]}),e.jsxs(p,{title:t("about.licenseDetails.title"),icon:e.jsx(d.Lightning,{}),secondColumn:e.jsxs(e.Fragment,{children:[e.jsx(s,{label:t("about.licenseDetails.limits.seats"),value:`${i?.features?.occupiedSeats} / ${i?.features?.seats}`}),e.jsx(s,{label:t("about.licenseDetails.limits.domains"),value:`${i?.features?.occupiedDomains} / ${i?.features?.domains}`})]}),children:[e.jsx(s,{label:t("about.licenseDetails.planName"),value:i?.features?.plan}),e.jsx(s,{label:t("about.licenseDetails.validUntil"),value:n}),e.jsx(s,{label:t("about.licenseDetails.features.title"),value:e.jsx(l.Flex,{direction:"column",gap:1,alignItems:"flex-start",children:u.map(C=>e.jsx("span",{children:`${t(`about.licenseDetails.features.${C}`)}: ${t(`about.licenseDetails.features.${i?.features?.[C]?"enabled":"disabled"}`)}`},C))})})]})]})})]})]})},H=()=>e.jsx(g.QueryProvider,{children:e.jsx(M,{})});exports.default=H;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const q=require("remeda"),D=require("zod"),o=require("react/jsx-runtime"),M=require("@strapi/strapi/admin"),f=require("react"),w=require("react-cookie"),i=require("@strapi/design-system"),H=require("react-dom/client"),U=require("@strapi/icons"),P=require("@tanstack/react-query"),F=e=>e&&e.__esModule?e:{default:e},z=F(f),Q="@sensinum/strapi-plugin-multi-domain",W="5.2.0-beta.1",J="https://www.sensinum.com/contact",V="hello@sensinum.com",G={name:"multi-domain"},K={name:Q,version:W,homepage:J,email:V},s=D.z.literal("multi-domain").parse(G.name);q.toSnakeCase(s);const h="domain",T="domain",k=`${h}s`,p="domain",L={read:"read",change:"change",create:"create",delete:"delete"},x=e=>`plugin::${s}.${L[e]}`,j={admin:{access:Object.keys(L).map(e=>({action:x(e),subject:null})),create:[{action:x("create"),subject:null}],edit:[{action:x("change"),subject:null}],delete:[{action:x("delete"),subject:null}]}},g=`data-${h}-initialized`,X="strapi-super-admin",I=e=>e?.code===X,Y=e=>{const t=`/admin/content-manager/collection-types/${e}/create`,n=document.querySelector(`a[href*="${t}"]`);n&&(n.style.display="none")},Z=()=>{const[{[p]:e}]=w.useCookies([p]),t=I(e),{slug:n}=M.unstable_useContentManagerContext();return z.default.useEffect(()=>{(t||!e)&&Y(n)},[t,e,n]),null},ee=()=>o.jsx(w.CookiesProvider,{children:o.jsx(Z,{})}),te=({setPlugin:e})=>{const t=f.useRef(e);return f.useEffect(()=>{t.current(s)},[]),null},E={en:()=>Promise.resolve().then(()=>require("./en-D2iOtyKE.js"))},A=(e,t)=>{if(!e)throw new TypeError("Prefix can't be empty");return Object.keys(t).reduce((n,a)=>(n[`${e}.${a}`]=t[a],n),{})},S=(e,t="")=>Object.keys(e).reduce((n,a)=>{const r=t.length?`${t}.`:"";return typeof e[a]=="object"&&e[a]!==null&&!Array.isArray(e[a])?Object.assign(n,S(e[a],r+a)):n[r+a]=e[a],n},{}),ne=({onClose:e,userData:t})=>{const[{[p]:n},a]=w.useCookies([p]),[r,u]=f.useState(""),[c,m]=f.useState(n||null),d=(t[T]||[]).filter(l=>l.name.toLowerCase().includes(r.toLowerCase())),y=l=>{m(c?.id===l.id?null:l)},_=()=>{c&&(a(p,JSON.stringify(c),{path:"/",maxAge:60*60*24*30,domain:window.location.hostname}),window.location.reload())};return console.log("Avatar",i.Avatar),o.jsx(i.Modal.Root,{defaultOpen:!0,onOpenChange:e,children:o.jsxs(i.Modal.Content,{children:[o.jsx(i.Modal.Header,{children:o.jsx(i.Modal.Title,{children:"Select Domain"})}),o.jsxs(i.Modal.Body,{children:[o.jsx(i.Box,{paddingBottom:4,children:o.jsxs(i.Field.Root,{name:"tenant-search",children:[o.jsx(i.Field.Label,{children:"Search domains"}),o.jsx(i.Searchbar,{name:"tenant-search",onClear:()=>u(""),value:r,onChange:l=>u(l.target.value),placeholder:"Search domains...",size:"S"})]})}),d.length===0?o.jsx(i.EmptyStateLayout,{icon:o.jsx(U.Search,{}),content:"No domains found matching your search criteria"}):o.jsx(i.Box,{maxHeight:"400px",overflow:"auto",children:o.jsxs(i.Table,{colCount:2,rowCount:d.length+1,children:[o.jsx(i.Thead,{children:o.jsxs(i.Tr,{children:[o.jsx(i.Th,{width:"60px",children:o.jsx(i.Typography,{variant:"sigma",textColor:"neutral600",children:"Select"})}),o.jsx(i.Th,{width:"40px"}),o.jsx(i.Th,{children:o.jsx(i.Typography,{variant:"sigma",textColor:"neutral600",children:"Domain name"})})]})}),o.jsx(i.Tbody,{children:d.map(l=>o.jsxs(i.Tr,{children:[o.jsx(i.Td,{width:"60px",children:o.jsx(i.Checkbox,{checked:c?.id===l.id,onCheckedChange:()=>y(l),name:`tenant-${l.id}`})}),o.jsx(i.Td,{width:"40px",children:l.logo?.url&&o.jsx(i.Avatar.Item,{src:l.logo.url,alt:l.name,preview:!1})}),o.jsx(i.Td,{children:o.jsx(i.Typography,{fontWeight:"semiBold",textColor:"neutral800",children:l.name})})]},l.id))})]})})]}),o.jsxs(i.Modal.Footer,{children:[o.jsx(i.Modal.Close,{children:o.jsx(i.Button,{onClick:e,variant:"tertiary",children:"Cancel"})}),o.jsx(i.Button,{onClick:_,disabled:!c,children:"Select domain"})]})]})})},oe=new P.QueryClient({defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}}),ie=(e,t,n,a)=>{const r=H.createRoot(e),u=()=>{document.body.removeAttribute("style"),r.unmount(),setTimeout(()=>{document.body.style.pointerEvents="auto"},0)};return t.remove(),r.render(o.jsx(i.DesignSystemProvider,{theme:a==="light"?i.lightTheme:i.darkTheme,children:o.jsx(P.QueryClientProvider,{client:oe,children:o.jsx(w.CookiesProvider,{children:o.jsx(ne,{onClose:u,userData:n})})})}))},b=(e,t)=>new Promise((n,a)=>{const c=(m=0)=>{if(m>50){a(new Error("Button not found after 50 attempts"));return}const d=(t||document).querySelector(e);if(d){n(d);return}setTimeout(()=>c(m+1),250)};c()}),B=()=>{try{const t=document.cookie.split(";").find(n=>n.trim().startsWith(`${p}=`));if(t){const n=t.split("=").at(1);if(!n)return null;const a=decodeURIComponent(n);return JSON.parse(a)}}catch(e){console.error("Error parsing tenant cookie:",e)}return null},ae=e=>{const t=e.firstChild,n=t?.lastChild?.cloneNode(!0);if(t&&n instanceof HTMLElement){const a=n.firstChild;a&&n.replaceChildren(a);const r=n.querySelector("span");if(r){const u=B();r.innerText=u?`${h.toUpperCase()}: ${u.name}`:`No ${h} selected`}n.style.paddingTop="1rem",t.appendChild(n)}},v=async()=>{try{const e=M.getFetchClient(),{data:{data:t}}=await e.get("/admin/users/me");return t}catch{return null}},R=async()=>{const e=await v(),t=document.createElement("div");document.body.appendChild(t);const n=await b('nav button[aria-haspopup="menu"]'),a="aria-expanded";new MutationObserver(async u=>{if(u.some(c=>c.attributeName===a)&&n.getAttribute(a)==="true"){const c=await b("[data-radix-menu-content]");if(!(c instanceof HTMLElement))return;ae(c);const m=await b('[role="menuitem"]',c),d=m.cloneNode(!0);if(e?.[T]&&e?.[T].length>1){if(!(d instanceof HTMLElement))return;d.querySelector("span").innerText=`Select ${h}`,d.addEventListener("mouseenter",function(){this.setAttribute("data-highlighted","true")}),d.addEventListener("mouseleave",function(){this.removeAttribute("data-highlighted")}),d.addEventListener("click",y=>{y.preventDefault(),y.stopPropagation(),ie(t,c,e,localStorage.getItem("STRAPI_THEME")||"dark")}),m.insertAdjacentElement("afterend",d)}}}).observe(n,{attributes:!0})},N=()=>window.location.pathname==="/admin/auth/login",se=()=>window.location.pathname.startsWith("/admin/plugins/upload"),re=()=>{const e=B(),t=document.querySelector('[data-strapi-header="true"]');if(!e||I(e)){const n=t?.querySelectorAll("button");n&&n.forEach(a=>{a.style.display="none"})}},$=q.funnel(re,{minQuietPeriodMs:250}),O=async()=>{const e=await b('nav ul > li a[href="/admin/plugins/upload"]');e&&e.addEventListener("click",()=>{$.call()}),se()&&$.call()},C=async()=>{if(N()){document.body.removeAttribute(g);return}if(await v()){document.querySelector(`[${g}]`)||(await Promise.all([R(),O()]),document.body.setAttribute(g,"true"));return}document.body.removeAttribute(g)},ce=async()=>{N()||!await v()||(document.body.setAttribute(g,"true"),await Promise.all([R(),O()]))},le={register(e){e.registerPlugin({id:s,initializer:te,isReady:!1,name:s}),e.customFields.register({name:`unique-by-${h}`,pluginId:s,type:"string",intlLabel:{id:`${s}.custom-fields.unique-by-domain.label`,defaultMessage:"Unique by domain"},intlDescription:{id:`${s}.custom-fields.unique-by-tenant.description`,defaultMessage:"Ensures the value is unique within the domain."},components:{Input:()=>Promise.resolve().then(()=>require("./TenantCustomField-D-7Si38A.js"))}}),e.router.addSettingsLink({id:`${s}.settings`,intlLabel:{id:`${s}.settings.label`,defaultMessage:"Multi-Domain Settings"},links:[{id:`${s}.settings.about`,intlLabel:{id:`${s}.settings.about.label`,defaultMessage:"About"},to:`/settings/${s}/about`,Component:()=>Promise.resolve().then(()=>require("./index-C0pkYQjH.js")),permissions:j.admin.access},{id:`${s}.settings.general`,intlLabel:{id:`${s}.settings.general.label`,defaultMessage:"General Settings"},to:`/settings/${s}/${k}`,Component:()=>Promise.resolve().then(()=>require("./Settings-De2gPisD.js")),permissions:j.admin.access}]})},async registerTrads({locales:e}){return Promise.all(e.map(async t=>t in E?E[t]().then(({default:a})=>({data:A(s,S(a)),locale:t})):{data:A(s,S({})),locale:t}))},async bootstrap(e){e.getPlugin("content-manager").injectComponent("listView","actions",{name:"display-create-button",Component:ee});let t=window.location.pathname;window.addEventListener("popstate",async()=>{t!==window.location.pathname&&(t=window.location.pathname,await C())});const n=history.pushState,a=history.replaceState;history.pushState=function(...r){n.apply(history,r),t!==window.location.pathname&&(t=window.location.pathname,C())},history.replaceState=function(...r){a.apply(history,r),t!==window.location.pathname&&(t=window.location.pathname,C())},await ce()}};exports.modelId=h;exports.modelRoute=k;exports.packageJson=K;exports.permissions=j;exports.plugin=le;exports.pluginId=s;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const r=require("react-intl"),u=require("./index-TelSPPuG.js"),c=()=>{const{formatMessage:e}=r.useIntl();return(s,{defaultMessage:t,values:n}={})=>e({id:`${u.pluginId}.${s}`,defaultMessage:t},n)};exports.useGetMessage=c;
|