@raystack/frontier 0.83.0 → 0.84.1
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/package.json +2 -2
- package/react/dist/index.js +744 -692
- package/react/dist/index.mjs +626 -564
package/react/dist/index.js
CHANGED
|
@@ -410,8 +410,8 @@ var cross_default = 'data:image/svg+xml,<svg width="20" height="20" viewBox="0 0
|
|
|
410
410
|
// react/components/avatar-upload/index.tsx
|
|
411
411
|
var import_ReactCrop = require("react-image-crop/dist/ReactCrop.css");
|
|
412
412
|
|
|
413
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
414
|
-
var digest = "
|
|
413
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-63AIiF0eVwXQ/core/react/components/avatar-upload/avatar-upload.module.css.js
|
|
414
|
+
var digest = "21cc7aa58278a632f242939f2a36d5d5dd96d8e389bb96f01e2b01a87f0206fb";
|
|
415
415
|
var css = `._container_1k4dc_1 {
|
|
416
416
|
display: flex;
|
|
417
417
|
flex-direction: column;
|
|
@@ -682,7 +682,7 @@ AvatarUpload.displayName = "AvatarUpload";
|
|
|
682
682
|
var import_apsara2 = require("@raystack/apsara");
|
|
683
683
|
var import_class_variance_authority = require("class-variance-authority");
|
|
684
684
|
|
|
685
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
685
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-XkZ6xGYddr7K/core/react/components/container.module.css.js
|
|
686
686
|
var digest2 = "08ba11194626c23d6d6bd30a7f18c1a96eb4a22d963c98140fc1b508c936ee89";
|
|
687
687
|
var css2 = `._container_1e0de_1 {
|
|
688
688
|
min-width: 220px;
|
|
@@ -783,7 +783,7 @@ var import_apsara3 = require("@raystack/apsara");
|
|
|
783
783
|
// react/assets/logo.png
|
|
784
784
|
var logo_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAIAAAAiOjnJAABZvElEQV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i0iQB6h3CVWmlLrQUZjsinoSvJD3WpP87Iuj+1FdXSikao8xxKaHwcgc1I/iI4LQNPHxvhXWQZqAQTDHjzQ7acFBg7dZpe2B5ByGrAbWc+ggev4JvGdnrB2uETd6WyQJR1EICIo3ZUlYFULX3FaYC/jQXW0pNN1BrrlVzGxvrH1SiLxwlZkIHQbm7N/MGHHJwyJDOBzSAPAQyH2yEfrZdjVJQD27gX+hoj+cKe/JAxoif4aafLJpZqORXIHHuXLZQnC8drrqRK7MyTil4bTkL28SbmwXEpGCIBUk7zsQiYZgkg7gwg8KI6KauKzGpCGEzaCNDoiUPrAIkBqGOD/DwAA//8N10+QXsh1VAAAAABJRU5ErkJggg==";
|
|
785
785
|
|
|
786
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
786
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-yZ54qpQ1Uj83/core/react/components/header.module.css.js
|
|
787
787
|
var digest3 = "493f10c1b6db60a5a5706e0623d3ddd617f0b794407e9a3f8ba99da973d97fc7";
|
|
788
788
|
var css3 = `._container_1op46_1 {
|
|
789
789
|
min-width: 220px;
|
|
@@ -5161,7 +5161,7 @@ var FrontierContextProvider = ({
|
|
|
5161
5161
|
config,
|
|
5162
5162
|
customFetch
|
|
5163
5163
|
}) => {
|
|
5164
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
5164
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
5165
5165
|
const [activeOrganization, setActiveOrganization] = (0, import_react3.useState)();
|
|
5166
5166
|
const [isActiveOrganizationLoading, setIsActiveOrganizationLoading] = (0, import_react3.useState)(false);
|
|
5167
5167
|
const frontierClient = (0, import_react3.useMemo)(
|
|
@@ -5244,10 +5244,9 @@ var FrontierContextProvider = ({
|
|
|
5244
5244
|
} = (0, import_connect_query3.useQuery)(
|
|
5245
5245
|
import_frontier.FrontierServiceQueries.listSubscriptions,
|
|
5246
5246
|
(0, import_protobuf3.create)(import_frontier4.ListSubscriptionsRequestSchema, {
|
|
5247
|
-
orgId: (_g = activeOrganization == null ? void 0 : activeOrganization.id) != null ? _g : ""
|
|
5248
|
-
billingId: (_h = billingAccount == null ? void 0 : billingAccount.id) != null ? _h : ""
|
|
5247
|
+
orgId: (_g = activeOrganization == null ? void 0 : activeOrganization.id) != null ? _g : ""
|
|
5249
5248
|
}),
|
|
5250
|
-
{ enabled: !!(activeOrganization == null ? void 0 : activeOrganization.id)
|
|
5249
|
+
{ enabled: !!(activeOrganization == null ? void 0 : activeOrganization.id) }
|
|
5251
5250
|
);
|
|
5252
5251
|
const subscriptions = (subscriptionsData == null ? void 0 : subscriptionsData.subscriptions) || [];
|
|
5253
5252
|
const { data: plansData, isLoading: isAllPlansLoading } = (0, import_connect_query3.useQuery)(
|
|
@@ -5276,7 +5275,7 @@ var FrontierContextProvider = ({
|
|
|
5276
5275
|
const basePlan = (0, import_react3.useMemo)(() => {
|
|
5277
5276
|
var _a2;
|
|
5278
5277
|
return ((_a2 = config == null ? void 0 : config.billing) == null ? void 0 : _a2.basePlan) ? enrichBasePlan(config.billing.basePlan) : void 0;
|
|
5279
|
-
}, [(
|
|
5278
|
+
}, [(_h = config == null ? void 0 : config.billing) == null ? void 0 : _h.basePlan]);
|
|
5280
5279
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
5281
5280
|
FrontierContext.Provider,
|
|
5282
5281
|
{
|
|
@@ -5457,8 +5456,8 @@ var MagicLink = (_a) => {
|
|
|
5457
5456
|
var import_apsara5 = require("@raystack/apsara");
|
|
5458
5457
|
var import_react5 = require("react");
|
|
5459
5458
|
|
|
5460
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
5461
|
-
var digest4 = "
|
|
5459
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-t0IYV2hOiBhq/core/react/components/onboarding/onboarding.module.css.js
|
|
5460
|
+
var digest4 = "0195a629ffb6fd119012b0ddbfba938b34c9d109852da796470ea84fe306ba0e";
|
|
5462
5461
|
var css4 = `._container_149m6_1 {
|
|
5463
5462
|
width: 100%;
|
|
5464
5463
|
}
|
|
@@ -5759,8 +5758,8 @@ var shouldShowComponent = (permissions = {}, permisionsRequired) => {
|
|
|
5759
5758
|
return permissions[permisionsRequired] === true;
|
|
5760
5759
|
};
|
|
5761
5760
|
|
|
5762
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
5763
|
-
var digest5 = "
|
|
5761
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-3l2I1zX5AzEu/core/react/components/onboarding/onboarding.module.css.js
|
|
5762
|
+
var digest5 = "1f1463aeee1a583ef049443e28273cd2456c4b9da7d9cfc09d789524f631598d";
|
|
5764
5763
|
var css5 = `._container_149m6_1 {
|
|
5765
5764
|
width: 100%;
|
|
5766
5765
|
}
|
|
@@ -5903,8 +5902,8 @@ var OIDCButton = ({ onClick, provider }) => /* @__PURE__ */ (0, import_jsx_runti
|
|
|
5903
5902
|
}
|
|
5904
5903
|
);
|
|
5905
5904
|
|
|
5906
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
5907
|
-
var digest6 = "
|
|
5905
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-5Cvi5UFXmssz/core/react/components/onboarding/onboarding.module.css.js
|
|
5906
|
+
var digest6 = "0fa15d55ce0646b9806c6e47e6d6d504a4b0e1b9c557ab3628db5e5fb7241bb0";
|
|
5908
5907
|
var css6 = `._container_149m6_1 {
|
|
5909
5908
|
width: 100%;
|
|
5910
5909
|
}
|
|
@@ -6097,8 +6096,8 @@ var SignIn = (_a) => {
|
|
|
6097
6096
|
var import_apsara8 = require("@raystack/apsara");
|
|
6098
6097
|
var import_react7 = require("react");
|
|
6099
6098
|
|
|
6100
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
6101
|
-
var digest7 = "
|
|
6099
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-kJwY1SuaF2pF/core/react/components/onboarding/onboarding.module.css.js
|
|
6100
|
+
var digest7 = "63aeaf0e4b1bee4095261f7eb8fda9a5f47b8ff9141e35c7a46afedb1d7c926b";
|
|
6102
6101
|
var css7 = `._container_149m6_1 {
|
|
6103
6102
|
width: 100%;
|
|
6104
6103
|
}
|
|
@@ -6310,20 +6309,20 @@ function usePreferences({
|
|
|
6310
6309
|
const queryClient2 = (0, import_react_query2.useQueryClient)();
|
|
6311
6310
|
const transport = (0, import_connect_query4.useTransport)();
|
|
6312
6311
|
const {
|
|
6313
|
-
data:
|
|
6312
|
+
data: preferencesData,
|
|
6314
6313
|
isLoading: isFetchingPreferences,
|
|
6315
6314
|
refetch
|
|
6316
6315
|
} = (0, import_connect_query4.useQuery)(
|
|
6317
6316
|
import_frontier5.FrontierServiceQueries.listCurrentUserPreferences,
|
|
6318
6317
|
{},
|
|
6319
6318
|
{
|
|
6320
|
-
enabled: autoFetch
|
|
6321
|
-
select: (data) => {
|
|
6322
|
-
var _a;
|
|
6323
|
-
return getFormattedData((_a = data == null ? void 0 : data.preferences) != null ? _a : []);
|
|
6324
|
-
}
|
|
6319
|
+
enabled: autoFetch
|
|
6325
6320
|
}
|
|
6326
6321
|
);
|
|
6322
|
+
const preferences = (0, import_react8.useMemo)(() => {
|
|
6323
|
+
var _a;
|
|
6324
|
+
return getFormattedData((_a = preferencesData == null ? void 0 : preferencesData.preferences) != null ? _a : []);
|
|
6325
|
+
}, [preferencesData]);
|
|
6327
6326
|
const {
|
|
6328
6327
|
mutateAsync: updatePreferencesMutation,
|
|
6329
6328
|
isPending: isUpdatingPreferences
|
|
@@ -6370,8 +6369,8 @@ function usePreferences({
|
|
|
6370
6369
|
};
|
|
6371
6370
|
}
|
|
6372
6371
|
|
|
6373
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
6374
|
-
var digest8 = "
|
|
6372
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-g4lvq0VwV7ZW/core/react/components/onboarding/onboarding.module.css.js
|
|
6373
|
+
var digest8 = "1a1f1bdc9e4c12755795589f14bad23672c7a0c2e947ec742439fd6624815fc4";
|
|
6375
6374
|
var css8 = `._container_149m6_1 {
|
|
6376
6375
|
width: 100%;
|
|
6377
6376
|
}
|
|
@@ -6574,8 +6573,8 @@ var import_frontier6 = require("@raystack/proton/frontier");
|
|
|
6574
6573
|
// react/assets/check-circle.svg
|
|
6575
6574
|
var check_circle_default = 'data:image/svg+xml,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">%0A <g id="Check circle">%0A <path id="Vector" fill-rule="evenodd" clip-rule="evenodd"%0A d="M1.5 8C1.5 4.41 4.41 1.5 8 1.5C11.59 1.5 14.5 4.41 14.5 8C14.5 11.59 11.59 14.5 8 14.5C4.41 14.5 1.5 11.59 1.5 8ZM10.4067 6.79067C10.4467 6.73737 10.4756 6.67661 10.4918 6.61197C10.508 6.54732 10.5111 6.48009 10.5009 6.41424C10.4907 6.34838 10.4675 6.28522 10.4326 6.22847C10.3976 6.17171 10.3517 6.12252 10.2975 6.08377C10.2433 6.04502 10.1819 6.0175 10.1169 6.00282C10.0519 5.98814 9.98459 5.98661 9.91899 5.99831C9.85338 6.01001 9.79078 6.0347 9.73485 6.07094C9.67893 6.10718 9.63081 6.15423 9.59333 6.20933L7.436 9.22933L6.35333 8.14667C6.25855 8.05835 6.13319 8.01026 6.00365 8.01255C5.87412 8.01484 5.75053 8.06731 5.65892 8.15892C5.56731 8.25053 5.51484 8.37412 5.51255 8.50365C5.51026 8.63319 5.55835 8.75855 5.64667 8.85333L7.14667 10.3533C7.19799 10.4046 7.25987 10.4441 7.32799 10.4691C7.39612 10.4941 7.46886 10.5039 7.54118 10.498C7.61349 10.492 7.68364 10.4704 7.74675 10.4346C7.80987 10.3988 7.86443 10.3497 7.90667 10.2907L10.4067 6.79067Z"%0A fill="%2330A46C" />%0A </g>%0A</svg>';
|
|
6576
6575
|
|
|
6577
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
6578
|
-
var digest9 = "
|
|
6576
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-c6MOVI6sZ45v/core/react/components/onboarding/onboarding.module.css.js
|
|
6577
|
+
var digest9 = "365cf37ccaf8e86defa2f536f4d6320c8d64368dbfb8c3ab6bacf7ee4c5d62bb";
|
|
6579
6578
|
var css9 = `._container_149m6_1 {
|
|
6580
6579
|
width: 100%;
|
|
6581
6580
|
}
|
|
@@ -6853,8 +6852,8 @@ var yup4 = __toESM(require("yup"));
|
|
|
6853
6852
|
var import_protobuf6 = require("@bufbuild/protobuf");
|
|
6854
6853
|
var import_frontier7 = require("@raystack/proton/frontier");
|
|
6855
6854
|
|
|
6856
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
6857
|
-
var digest10 = "
|
|
6855
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-IhIs6Blj6D1x/core/react/components/organization/organization.module.css.js
|
|
6856
|
+
var digest10 = "f1a8ba62fa649303adc03067a7749437439d24bf669d7889e598360efb387758";
|
|
6858
6857
|
var css10 = `._createContainer_ipia2_1 {
|
|
6859
6858
|
margin: auto;
|
|
6860
6859
|
width: 100%;
|
|
@@ -7083,7 +7082,7 @@ var CreateOrganization = (_a) => {
|
|
|
7083
7082
|
var import_react_router49 = require("@tanstack/react-router");
|
|
7084
7083
|
|
|
7085
7084
|
// react/components/organization/routes.tsx
|
|
7086
|
-
var
|
|
7085
|
+
var import_react66 = require("react");
|
|
7087
7086
|
|
|
7088
7087
|
// shared/utils/organization.ts
|
|
7089
7088
|
var import_dayjs2 = __toESM(require("dayjs"));
|
|
@@ -7122,12 +7121,13 @@ var import_apsara79 = require("@raystack/apsara");
|
|
|
7122
7121
|
// react/components/organization/domain/index.tsx
|
|
7123
7122
|
var import_apsara14 = require("@raystack/apsara");
|
|
7124
7123
|
var import_react_router2 = require("@tanstack/react-router");
|
|
7125
|
-
var
|
|
7124
|
+
var import_react13 = require("react");
|
|
7126
7125
|
|
|
7127
7126
|
// react/hooks/useOrganizationDomains.ts
|
|
7128
7127
|
var import_connect_query5 = require("@connectrpc/connect-query");
|
|
7129
7128
|
var import_frontier8 = require("@raystack/proton/frontier");
|
|
7130
7129
|
var import_protobuf7 = require("@bufbuild/protobuf");
|
|
7130
|
+
var import_react11 = require("react");
|
|
7131
7131
|
var useOrganizationDomains = () => {
|
|
7132
7132
|
const { activeOrganization: organization } = useFrontier();
|
|
7133
7133
|
const {
|
|
@@ -7141,28 +7141,28 @@ var useOrganizationDomains = () => {
|
|
|
7141
7141
|
orgId: (organization == null ? void 0 : organization.id) || ""
|
|
7142
7142
|
}),
|
|
7143
7143
|
{
|
|
7144
|
-
enabled: !!(organization == null ? void 0 : organization.id)
|
|
7145
|
-
select: (d) => {
|
|
7146
|
-
var _a;
|
|
7147
|
-
return (_a = d == null ? void 0 : d.domains) != null ? _a : [];
|
|
7148
|
-
}
|
|
7144
|
+
enabled: !!(organization == null ? void 0 : organization.id)
|
|
7149
7145
|
}
|
|
7150
7146
|
);
|
|
7147
|
+
const domains = (0, import_react11.useMemo)(() => {
|
|
7148
|
+
var _a;
|
|
7149
|
+
return (_a = domainsData == null ? void 0 : domainsData.domains) != null ? _a : [];
|
|
7150
|
+
}, [domainsData]);
|
|
7151
7151
|
return {
|
|
7152
7152
|
isFetching: isDomainsLoading,
|
|
7153
|
-
domains
|
|
7153
|
+
domains,
|
|
7154
7154
|
refetch: refetchDomains,
|
|
7155
7155
|
error: domainsError
|
|
7156
7156
|
};
|
|
7157
7157
|
};
|
|
7158
7158
|
|
|
7159
7159
|
// react/hooks/usePermissions.ts
|
|
7160
|
-
var
|
|
7160
|
+
var import_react12 = require("react");
|
|
7161
7161
|
var import_connect_query6 = require("@connectrpc/connect-query");
|
|
7162
7162
|
var import_frontier9 = require("@raystack/proton/frontier");
|
|
7163
7163
|
var import_protobuf8 = require("@bufbuild/protobuf");
|
|
7164
7164
|
var usePermissions = (permissions = [], shouldCalled = true) => {
|
|
7165
|
-
const protobufPermissions = (0,
|
|
7165
|
+
const protobufPermissions = (0, import_react12.useMemo)(() => {
|
|
7166
7166
|
return permissions.map(
|
|
7167
7167
|
(permission) => (0, import_protobuf8.create)(import_frontier9.BatchCheckPermissionBodySchema, permission)
|
|
7168
7168
|
);
|
|
@@ -7172,7 +7172,7 @@ var usePermissions = (permissions = [], shouldCalled = true) => {
|
|
|
7172
7172
|
(0, import_protobuf8.create)(import_frontier9.BatchCheckPermissionRequestSchema, { bodies: protobufPermissions }),
|
|
7173
7173
|
{ enabled: shouldCalled && permissions.length > 0 }
|
|
7174
7174
|
);
|
|
7175
|
-
const permissionsMap = (0,
|
|
7175
|
+
const permissionsMap = (0, import_react12.useMemo)(() => {
|
|
7176
7176
|
var _a;
|
|
7177
7177
|
const pairs = (_a = data == null ? void 0 : data.pairs) != null ? _a : [];
|
|
7178
7178
|
if (!pairs.length)
|
|
@@ -7293,8 +7293,8 @@ var PageHeader = ({ title, description }) => {
|
|
|
7293
7293
|
] });
|
|
7294
7294
|
};
|
|
7295
7295
|
|
|
7296
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
7297
|
-
var digest11 = "
|
|
7296
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-COEbbDNq3W2e/core/react/components/organization/styles.module.css.js
|
|
7297
|
+
var digest11 = "7aae183c1b0cc57b8d0cb2bad1c6d5b95d2fdbbefe759ba61d5237407be51a30";
|
|
7298
7298
|
var css11 = `._header_11okm_1 {
|
|
7299
7299
|
margin-bottom: var(--rs-space-9);
|
|
7300
7300
|
}
|
|
@@ -7337,8 +7337,8 @@ var css11 = `._header_11okm_1 {
|
|
|
7337
7337
|
})();
|
|
7338
7338
|
var styles_module_css_default = { "header": "_header_11okm_1", "container": "_container_11okm_5", "containerFlex": "_containerFlex_11okm_10", "contentWrapper": "_contentWrapper_11okm_18", "pageWrapper": "_pageWrapper_11okm_24" };
|
|
7339
7339
|
|
|
7340
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
7341
|
-
var digest12 = "
|
|
7340
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-0NstelmSXzWG/core/react/components/organization/domain/domain.module.css.js
|
|
7341
|
+
var digest12 = "7a08063fceee7d694c9c2f334af16980b5b8244679efbbc549c97b7784bfc737";
|
|
7342
7342
|
var css12 = `._tableWrapper_jz6z1_1 {
|
|
7343
7343
|
display: flex;
|
|
7344
7344
|
flex-direction: column;
|
|
@@ -7381,7 +7381,8 @@ var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
|
7381
7381
|
function Domain() {
|
|
7382
7382
|
const { isFetching, domains, error: domainsError } = useOrganizationDomains();
|
|
7383
7383
|
const { activeOrganization: organization, config } = useFrontier();
|
|
7384
|
-
|
|
7384
|
+
const t = useTerminology();
|
|
7385
|
+
(0, import_react13.useEffect)(() => {
|
|
7385
7386
|
if (domainsError) {
|
|
7386
7387
|
import_apsara14.toast.error("Something went wrong", {
|
|
7387
7388
|
description: domainsError.message
|
|
@@ -7389,7 +7390,7 @@ function Domain() {
|
|
|
7389
7390
|
}
|
|
7390
7391
|
}, [domainsError]);
|
|
7391
7392
|
const resource = `app/organization:${organization == null ? void 0 : organization.id}`;
|
|
7392
|
-
const listOfPermissionsToCheck = (0,
|
|
7393
|
+
const listOfPermissionsToCheck = (0, import_react13.useMemo)(
|
|
7393
7394
|
() => [
|
|
7394
7395
|
{
|
|
7395
7396
|
permission: PERMISSIONS.UpdatePermission,
|
|
@@ -7402,7 +7403,7 @@ function Domain() {
|
|
|
7402
7403
|
listOfPermissionsToCheck,
|
|
7403
7404
|
!!(organization == null ? void 0 : organization.id)
|
|
7404
7405
|
);
|
|
7405
|
-
const { canCreateDomain } = (0,
|
|
7406
|
+
const { canCreateDomain } = (0, import_react13.useMemo)(() => {
|
|
7406
7407
|
return {
|
|
7407
7408
|
canCreateDomain: shouldShowComponent(
|
|
7408
7409
|
permissions,
|
|
@@ -7412,24 +7413,49 @@ function Domain() {
|
|
|
7412
7413
|
}, [permissions, resource]);
|
|
7413
7414
|
const isLoading = isFetching || isPermissionsFetching;
|
|
7414
7415
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_apsara14.Flex, { direction: "column", className: styles_module_css_default.pageWrapper, children: [
|
|
7415
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
7416
|
-
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7420
|
-
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
|
|
7424
|
-
|
|
7425
|
-
|
|
7426
|
-
|
|
7427
|
-
|
|
7428
|
-
|
|
7429
|
-
|
|
7430
|
-
|
|
7431
|
-
|
|
7432
|
-
|
|
7416
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
7417
|
+
import_apsara14.Flex,
|
|
7418
|
+
{
|
|
7419
|
+
direction: "column",
|
|
7420
|
+
className: `${styles_module_css_default.container} ${styles_module_css_default.containerFlex}`,
|
|
7421
|
+
children: [
|
|
7422
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
7423
|
+
import_apsara14.Flex,
|
|
7424
|
+
{
|
|
7425
|
+
direction: "row",
|
|
7426
|
+
justify: "between",
|
|
7427
|
+
align: "center",
|
|
7428
|
+
className: styles_module_css_default.header,
|
|
7429
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
7430
|
+
PageHeader,
|
|
7431
|
+
{
|
|
7432
|
+
title: "Allowed email domains",
|
|
7433
|
+
description: `Anyone with an email address at these domains is allowed to sign up
|
|
7434
|
+
for this ${t.organization({ case: "lower" })}.`
|
|
7435
|
+
}
|
|
7436
|
+
)
|
|
7437
|
+
}
|
|
7438
|
+
),
|
|
7439
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
7440
|
+
import_apsara14.Flex,
|
|
7441
|
+
{
|
|
7442
|
+
direction: "column",
|
|
7443
|
+
gap: 9,
|
|
7444
|
+
className: styles_module_css_default.contentWrapper,
|
|
7445
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
7446
|
+
Domains,
|
|
7447
|
+
{
|
|
7448
|
+
domains,
|
|
7449
|
+
isLoading,
|
|
7450
|
+
canCreateDomain,
|
|
7451
|
+
dateFormat: config == null ? void 0 : config.dateFormat
|
|
7452
|
+
}
|
|
7453
|
+
)
|
|
7454
|
+
}
|
|
7455
|
+
)
|
|
7456
|
+
]
|
|
7457
|
+
}
|
|
7458
|
+
),
|
|
7433
7459
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_router2.Outlet, {})
|
|
7434
7460
|
] });
|
|
7435
7461
|
}
|
|
@@ -7440,7 +7466,7 @@ var Domains = ({
|
|
|
7440
7466
|
dateFormat
|
|
7441
7467
|
}) => {
|
|
7442
7468
|
const navigate = (0, import_react_router2.useNavigate)({ from: "/domains" });
|
|
7443
|
-
const columns = (0,
|
|
7469
|
+
const columns = (0, import_react13.useMemo)(
|
|
7444
7470
|
() => getColumns({
|
|
7445
7471
|
canCreateDomain,
|
|
7446
7472
|
dateFormat: dateFormat || DEFAULT_DATE_FORMAT
|
|
@@ -7512,8 +7538,8 @@ var import_react_query3 = require("@tanstack/react-query");
|
|
|
7512
7538
|
var import_frontier10 = require("@raystack/proton/frontier");
|
|
7513
7539
|
var import_protobuf9 = require("@bufbuild/protobuf");
|
|
7514
7540
|
|
|
7515
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
7516
|
-
var digest13 = "
|
|
7541
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-mLXq562A43QK/core/react/components/organization/organization.module.css.js
|
|
7542
|
+
var digest13 = "b39a3be886a5b56d389646383f1576f9d1d6d7220d462bc16f5e9db3065edebf";
|
|
7517
7543
|
var css13 = `._createContainer_ipia2_1 {
|
|
7518
7544
|
margin: auto;
|
|
7519
7545
|
width: 100%;
|
|
@@ -7672,7 +7698,7 @@ var AddDomain = () => {
|
|
|
7672
7698
|
|
|
7673
7699
|
// react/components/organization/domain/verify-domain.tsx
|
|
7674
7700
|
var import_apsara16 = require("@raystack/apsara");
|
|
7675
|
-
var
|
|
7701
|
+
var import_react14 = require("react");
|
|
7676
7702
|
var import_react_router4 = require("@tanstack/react-router");
|
|
7677
7703
|
var import_react_query4 = require("@tanstack/react-query");
|
|
7678
7704
|
var import_connect_query9 = require("@connectrpc/connect-query");
|
|
@@ -7709,8 +7735,8 @@ var useOrganizationDomain = (domainId) => {
|
|
|
7709
7735
|
// react/components/organization/domain/verify-domain.tsx
|
|
7710
7736
|
var import_protobuf11 = require("@bufbuild/protobuf");
|
|
7711
7737
|
|
|
7712
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
7713
|
-
var digest14 = "
|
|
7738
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-uoZtwfYkOYSc/core/react/components/organization/organization.module.css.js
|
|
7739
|
+
var digest14 = "f18366eac79350b2b9885acdd6a265c0957091d2b568584b8d41e27613c960d3";
|
|
7714
7740
|
var css14 = `._createContainer_ipia2_1 {
|
|
7715
7741
|
margin: auto;
|
|
7716
7742
|
width: 100%;
|
|
@@ -7771,7 +7797,7 @@ var VerifyDomain = () => {
|
|
|
7771
7797
|
const queryClient2 = (0, import_react_query4.useQueryClient)();
|
|
7772
7798
|
const transport = (0, import_connect_query9.useTransport)();
|
|
7773
7799
|
const { domain, isLoading: isDomainLoading, error: domainError } = useOrganizationDomain(domainId);
|
|
7774
|
-
(0,
|
|
7800
|
+
(0, import_react14.useEffect)(() => {
|
|
7775
7801
|
if (domainError) {
|
|
7776
7802
|
import_apsara16.toast.error("Something went wrong", {
|
|
7777
7803
|
description: domainError.message
|
|
@@ -7887,14 +7913,14 @@ var VerifyDomain = () => {
|
|
|
7887
7913
|
};
|
|
7888
7914
|
|
|
7889
7915
|
// react/components/organization/general/index.tsx
|
|
7890
|
-
var
|
|
7916
|
+
var import_react16 = require("react");
|
|
7891
7917
|
var import_apsara18 = require("@raystack/apsara");
|
|
7892
7918
|
var import_react_router5 = require("@tanstack/react-router");
|
|
7893
7919
|
|
|
7894
7920
|
// react/components/organization/general/general.workspace.tsx
|
|
7895
7921
|
var import_yup6 = require("@hookform/resolvers/yup");
|
|
7896
7922
|
var import_apsara17 = require("@raystack/apsara");
|
|
7897
|
-
var
|
|
7923
|
+
var import_react15 = require("react");
|
|
7898
7924
|
var import_react_hook_form6 = require("react-hook-form");
|
|
7899
7925
|
var yup6 = __toESM(require("yup"));
|
|
7900
7926
|
var import_connect_query10 = require("@connectrpc/connect-query");
|
|
@@ -7902,8 +7928,8 @@ var import_react_query5 = require("@tanstack/react-query");
|
|
|
7902
7928
|
var import_frontier13 = require("@raystack/proton/frontier");
|
|
7903
7929
|
var import_protobuf12 = require("@bufbuild/protobuf");
|
|
7904
7930
|
|
|
7905
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
7906
|
-
var digest15 = "
|
|
7931
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-XY3zo4cVnAFO/core/react/components/organization/general/general.module.css.js
|
|
7932
|
+
var digest15 = "20d8846739fcc723e5dce5f2e03f60f047d4b3dedb9e08cfe612a493dde9e3ea";
|
|
7907
7933
|
var css15 = `._profileDescription_kt6u2_1 {
|
|
7908
7934
|
color: var(--rs-color-foreground-base-secondary);
|
|
7909
7935
|
}
|
|
@@ -7982,6 +8008,7 @@ var GeneralOrganization = ({
|
|
|
7982
8008
|
canUpdateWorkspace = false
|
|
7983
8009
|
}) => {
|
|
7984
8010
|
var _a, _b, _c;
|
|
8011
|
+
const t = useTerminology();
|
|
7985
8012
|
const { setActiveOrganization } = useFrontier();
|
|
7986
8013
|
const queryClient2 = (0, import_react_query5.useQueryClient)();
|
|
7987
8014
|
const transport = (0, import_connect_query10.useTransport)();
|
|
@@ -8009,7 +8036,6 @@ var GeneralOrganization = ({
|
|
|
8009
8036
|
}
|
|
8010
8037
|
}
|
|
8011
8038
|
);
|
|
8012
|
-
const t = useTerminology();
|
|
8013
8039
|
const {
|
|
8014
8040
|
reset,
|
|
8015
8041
|
register,
|
|
@@ -8021,7 +8047,7 @@ var GeneralOrganization = ({
|
|
|
8021
8047
|
resolver: (0, import_yup6.yupResolver)(generalSchema)
|
|
8022
8048
|
});
|
|
8023
8049
|
const URL_PREFIX = ((_a = window == null ? void 0 : window.location) == null ? void 0 : _a.host) + "/";
|
|
8024
|
-
(0,
|
|
8050
|
+
(0, import_react15.useEffect)(() => {
|
|
8025
8051
|
reset(organization);
|
|
8026
8052
|
}, [organization, reset]);
|
|
8027
8053
|
function onSubmit(data) {
|
|
@@ -8040,7 +8066,7 @@ var GeneralOrganization = ({
|
|
|
8040
8066
|
yield updateOrganization(req);
|
|
8041
8067
|
} catch (error) {
|
|
8042
8068
|
import_apsara17.toast.error("Something went wrong", {
|
|
8043
|
-
description: error instanceof Error ? error.message :
|
|
8069
|
+
description: error instanceof Error ? error.message : `Failed to update ${t.organization({ case: "lower" })}`
|
|
8044
8070
|
});
|
|
8045
8071
|
}
|
|
8046
8072
|
});
|
|
@@ -8057,9 +8083,7 @@ var GeneralOrganization = ({
|
|
|
8057
8083
|
subText: `Pick a logo for your ${t.organization({
|
|
8058
8084
|
case: "lower"
|
|
8059
8085
|
})}.`,
|
|
8060
|
-
initials: getInitials(
|
|
8061
|
-
(organization == null ? void 0 : organization.title) || (organization == null ? void 0 : organization.name)
|
|
8062
|
-
),
|
|
8086
|
+
initials: getInitials((organization == null ? void 0 : organization.title) || (organization == null ? void 0 : organization.name)),
|
|
8063
8087
|
disabled: !canUpdateWorkspace,
|
|
8064
8088
|
"data-test-id": "frontier-sdk-avatar-upload"
|
|
8065
8089
|
}
|
|
@@ -8111,8 +8135,8 @@ var GeneralOrganization = ({
|
|
|
8111
8135
|
] });
|
|
8112
8136
|
};
|
|
8113
8137
|
|
|
8114
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
8115
|
-
var digest16 = "
|
|
8138
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-eUXJkNhepQNy/core/react/components/organization/styles.module.css.js
|
|
8139
|
+
var digest16 = "90543a75a7621b98e4601601f915131def385da263d0cbdd8c73e5bfc3b65e62";
|
|
8116
8140
|
var css16 = `._header_11okm_1 {
|
|
8117
8141
|
margin-bottom: var(--rs-space-9);
|
|
8118
8142
|
}
|
|
@@ -8158,9 +8182,10 @@ var styles_module_css_default2 = { "header": "_header_11okm_1", "container": "_c
|
|
|
8158
8182
|
// react/components/organization/general/index.tsx
|
|
8159
8183
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
8160
8184
|
function GeneralSetting() {
|
|
8185
|
+
const t = useTerminology();
|
|
8161
8186
|
const { activeOrganization: organization, isActiveOrganizationLoading } = useFrontier();
|
|
8162
8187
|
const resource = `app/organization:${organization == null ? void 0 : organization.id}`;
|
|
8163
|
-
const listOfPermissionsToCheck = (0,
|
|
8188
|
+
const listOfPermissionsToCheck = (0, import_react16.useMemo)(() => {
|
|
8164
8189
|
return [
|
|
8165
8190
|
{
|
|
8166
8191
|
permission: PERMISSIONS.UpdatePermission,
|
|
@@ -8176,7 +8201,7 @@ function GeneralSetting() {
|
|
|
8176
8201
|
listOfPermissionsToCheck,
|
|
8177
8202
|
!!(organization == null ? void 0 : organization.id)
|
|
8178
8203
|
);
|
|
8179
|
-
const { canUpdateWorkspace, canDeleteWorkspace } = (0,
|
|
8204
|
+
const { canUpdateWorkspace, canDeleteWorkspace } = (0, import_react16.useMemo)(() => {
|
|
8180
8205
|
return {
|
|
8181
8206
|
canUpdateWorkspace: shouldShowComponent(
|
|
8182
8207
|
permissions,
|
|
@@ -8190,13 +8215,24 @@ function GeneralSetting() {
|
|
|
8190
8215
|
}, [permissions, resource]);
|
|
8191
8216
|
const isLoading = isActiveOrganizationLoading || isPermissionsFetching;
|
|
8192
8217
|
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_apsara18.Flex, { direction: "column", style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_apsara18.Flex, { direction: "column", className: styles_module_css_default2.container, children: [
|
|
8193
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
8194
|
-
|
|
8218
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
8219
|
+
import_apsara18.Flex,
|
|
8195
8220
|
{
|
|
8196
|
-
|
|
8197
|
-
|
|
8221
|
+
direction: "row",
|
|
8222
|
+
justify: "between",
|
|
8223
|
+
align: "center",
|
|
8224
|
+
className: styles_module_css_default2.header,
|
|
8225
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
8226
|
+
PageHeader,
|
|
8227
|
+
{
|
|
8228
|
+
title: "General",
|
|
8229
|
+
description: `Basic configuration for the ${t.organization({
|
|
8230
|
+
case: "lower"
|
|
8231
|
+
})}.`
|
|
8232
|
+
}
|
|
8233
|
+
)
|
|
8198
8234
|
}
|
|
8199
|
-
)
|
|
8235
|
+
),
|
|
8200
8236
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_apsara18.Flex, { direction: "column", gap: 9, children: [
|
|
8201
8237
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
8202
8238
|
GeneralOrganization,
|
|
@@ -8250,7 +8286,7 @@ var GeneralDeleteOrganization = ({
|
|
|
8250
8286
|
};
|
|
8251
8287
|
|
|
8252
8288
|
// react/components/organization/general/delete.tsx
|
|
8253
|
-
var
|
|
8289
|
+
var import_react17 = require("react");
|
|
8254
8290
|
var import_apsara19 = require("@raystack/apsara");
|
|
8255
8291
|
var import_yup7 = require("@hookform/resolvers/yup");
|
|
8256
8292
|
var import_react_router6 = require("@tanstack/react-router");
|
|
@@ -8260,8 +8296,8 @@ var import_connect_query11 = require("@connectrpc/connect-query");
|
|
|
8260
8296
|
var import_frontier14 = require("@raystack/proton/frontier");
|
|
8261
8297
|
var import_protobuf13 = require("@bufbuild/protobuf");
|
|
8262
8298
|
|
|
8263
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
8264
|
-
var digest17 = "
|
|
8299
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-vhEyIUwim8L4/core/react/components/organization/general/general.module.css.js
|
|
8300
|
+
var digest17 = "2e191f4aee8fe806452eda3b91192458f16bc54bf28cd7b81c794a18facfff89";
|
|
8265
8301
|
var css17 = `._profileDescription_kt6u2_1 {
|
|
8266
8302
|
color: var(--rs-color-foreground-base-secondary);
|
|
8267
8303
|
}
|
|
@@ -8330,7 +8366,7 @@ var general_module_css_default2 = { "profileDescription": "_profileDescription_k
|
|
|
8330
8366
|
// react/components/organization/general/delete.tsx
|
|
8331
8367
|
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
8332
8368
|
var orgSchema = yup7.object({
|
|
8333
|
-
|
|
8369
|
+
title: yup7.string()
|
|
8334
8370
|
}).required();
|
|
8335
8371
|
var DeleteOrganization = () => {
|
|
8336
8372
|
var _a;
|
|
@@ -8349,14 +8385,14 @@ var DeleteOrganization = () => {
|
|
|
8349
8385
|
const { mutateAsync: deleteOrganization } = (0, import_connect_query11.useMutation)(
|
|
8350
8386
|
import_frontier14.FrontierServiceQueries.deleteOrganization
|
|
8351
8387
|
);
|
|
8352
|
-
const [isAcknowledged, setIsAcknowledged] = (0,
|
|
8388
|
+
const [isAcknowledged, setIsAcknowledged] = (0, import_react17.useState)(false);
|
|
8353
8389
|
function onSubmit(data) {
|
|
8354
8390
|
return __async(this, null, function* () {
|
|
8355
8391
|
if (!(organization == null ? void 0 : organization.id))
|
|
8356
8392
|
return;
|
|
8357
|
-
if (data.
|
|
8358
|
-
return setError("
|
|
8359
|
-
message: `The ${t.organization({ case: "lower" })}
|
|
8393
|
+
if (data.title !== organization.title)
|
|
8394
|
+
return setError("title", {
|
|
8395
|
+
message: `The ${t.organization({ case: "lower" })} name does not match`
|
|
8360
8396
|
});
|
|
8361
8397
|
try {
|
|
8362
8398
|
const req = (0, import_protobuf13.create)(import_frontier14.DeleteOrganizationRequestSchema, {
|
|
@@ -8367,12 +8403,12 @@ var DeleteOrganization = () => {
|
|
|
8367
8403
|
window.location = window.location.origin;
|
|
8368
8404
|
} catch (error) {
|
|
8369
8405
|
import_apsara19.toast.error("Something went wrong", {
|
|
8370
|
-
description: (error == null ? void 0 : error.message) ||
|
|
8406
|
+
description: (error == null ? void 0 : error.message) || `Failed to delete ${t.organization({ case: "capital" })}`
|
|
8371
8407
|
});
|
|
8372
8408
|
}
|
|
8373
8409
|
});
|
|
8374
8410
|
}
|
|
8375
|
-
const
|
|
8411
|
+
const title = watch("title", "");
|
|
8376
8412
|
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_apsara19.Dialog, { open: true, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_apsara19.Dialog.Content, { overlayClassName: general_module_css_default2.overlay, width: 600, children: [
|
|
8377
8413
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_apsara19.Dialog.Header, { children: [
|
|
8378
8414
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_apsara19.Dialog.Title, { children: [
|
|
@@ -8401,15 +8437,15 @@ var DeleteOrganization = () => {
|
|
|
8401
8437
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
8402
8438
|
import_apsara19.InputField,
|
|
8403
8439
|
__spreadProps(__spreadValues({
|
|
8404
|
-
label: `Please
|
|
8440
|
+
label: `Please enter the name of the ${t.organization({
|
|
8405
8441
|
case: "lower"
|
|
8406
8442
|
})} to confirm.`,
|
|
8407
8443
|
size: "large",
|
|
8408
|
-
error: errors.
|
|
8409
|
-
}, register("
|
|
8444
|
+
error: errors.title && String((_a = errors.title) == null ? void 0 : _a.message)
|
|
8445
|
+
}, register("title")), {
|
|
8410
8446
|
placeholder: `Provide the ${t.organization({
|
|
8411
8447
|
case: "lower"
|
|
8412
|
-
})}
|
|
8448
|
+
})} name`
|
|
8413
8449
|
})
|
|
8414
8450
|
)
|
|
8415
8451
|
] }) }),
|
|
@@ -8436,7 +8472,7 @@ var DeleteOrganization = () => {
|
|
|
8436
8472
|
variant: "solid",
|
|
8437
8473
|
color: "danger",
|
|
8438
8474
|
type: "submit",
|
|
8439
|
-
disabled: !
|
|
8475
|
+
disabled: !title || !isAcknowledged,
|
|
8440
8476
|
style: { width: "100%" },
|
|
8441
8477
|
"data-test-id": "frontier-sdk-delete-organization-btn",
|
|
8442
8478
|
loading: isSubmitting,
|
|
@@ -8453,19 +8489,19 @@ var DeleteOrganization = () => {
|
|
|
8453
8489
|
};
|
|
8454
8490
|
|
|
8455
8491
|
// react/components/organization/members/index.tsx
|
|
8456
|
-
var
|
|
8492
|
+
var import_react20 = require("react");
|
|
8457
8493
|
var import_apsara21 = require("@raystack/apsara");
|
|
8458
8494
|
var import_react_router8 = require("@tanstack/react-router");
|
|
8459
8495
|
|
|
8460
8496
|
// react/hooks/useOrganizationMembers.ts
|
|
8461
|
-
var
|
|
8497
|
+
var import_react18 = require("react");
|
|
8462
8498
|
var import_connect_query12 = require("@connectrpc/connect-query");
|
|
8463
8499
|
var import_frontier15 = require("@raystack/proton/frontier");
|
|
8464
8500
|
var import_protobuf14 = require("@bufbuild/protobuf");
|
|
8465
8501
|
var useOrganizationMembers = ({ showInvitations = false }) => {
|
|
8466
|
-
const [users, setUsers] = (0,
|
|
8467
|
-
const [invitations, setInvitations] = (0,
|
|
8468
|
-
const [memberRoles, setMemberRoles] = (0,
|
|
8502
|
+
const [users, setUsers] = (0, import_react18.useState)([]);
|
|
8503
|
+
const [invitations, setInvitations] = (0, import_react18.useState)([]);
|
|
8504
|
+
const [memberRoles, setMemberRoles] = (0, import_react18.useState)({});
|
|
8469
8505
|
const { activeOrganization: organization } = useFrontier();
|
|
8470
8506
|
const { data: organizationUsersData, isLoading: isUsersLoading, error: usersError, refetch: refetchUsers } = (0, import_connect_query12.useQuery)(
|
|
8471
8507
|
import_frontier15.FrontierServiceQueries.listOrganizationUsers,
|
|
@@ -8475,7 +8511,7 @@ var useOrganizationMembers = ({ showInvitations = false }) => {
|
|
|
8475
8511
|
}),
|
|
8476
8512
|
{ enabled: !!(organization == null ? void 0 : organization.id) }
|
|
8477
8513
|
);
|
|
8478
|
-
(0,
|
|
8514
|
+
(0, import_react18.useEffect)(() => {
|
|
8479
8515
|
if (organizationUsersData) {
|
|
8480
8516
|
const { users: users2, rolePairs } = organizationUsersData;
|
|
8481
8517
|
setUsers(users2 || []);
|
|
@@ -8486,17 +8522,17 @@ var useOrganizationMembers = ({ showInvitations = false }) => {
|
|
|
8486
8522
|
);
|
|
8487
8523
|
}
|
|
8488
8524
|
}, [organizationUsersData]);
|
|
8489
|
-
const { data:
|
|
8525
|
+
const { data: rolesData, isLoading: isRolesLoading, error: rolesError, refetch: refetchRoles } = (0, import_connect_query12.useQuery)(
|
|
8490
8526
|
import_frontier15.FrontierServiceQueries.listRoles,
|
|
8491
8527
|
(0, import_protobuf14.create)(import_frontier15.ListRolesRequestSchema, {
|
|
8492
8528
|
state: "enabled",
|
|
8493
8529
|
scopes: [PERMISSIONS.OrganizationNamespace]
|
|
8494
8530
|
}),
|
|
8495
8531
|
{
|
|
8496
|
-
enabled: !!(organization == null ? void 0 : organization.id)
|
|
8497
|
-
select: (data) => (data == null ? void 0 : data.roles) || []
|
|
8532
|
+
enabled: !!(organization == null ? void 0 : organization.id)
|
|
8498
8533
|
}
|
|
8499
8534
|
);
|
|
8535
|
+
const roles = (0, import_react18.useMemo)(() => (rolesData == null ? void 0 : rolesData.roles) || [], [rolesData]);
|
|
8500
8536
|
const { data: invitationsData, isLoading: isInvitationsLoading, error: invitationsError, refetch: refetchInvitations } = (0, import_connect_query12.useQuery)(
|
|
8501
8537
|
import_frontier15.FrontierServiceQueries.listOrganizationInvitations,
|
|
8502
8538
|
(0, import_protobuf14.create)(import_frontier15.ListOrganizationInvitationsRequestSchema, {
|
|
@@ -8504,7 +8540,7 @@ var useOrganizationMembers = ({ showInvitations = false }) => {
|
|
|
8504
8540
|
}),
|
|
8505
8541
|
{ enabled: !!(organization == null ? void 0 : organization.id) && showInvitations }
|
|
8506
8542
|
);
|
|
8507
|
-
(0,
|
|
8543
|
+
(0, import_react18.useEffect)(() => {
|
|
8508
8544
|
if (invitationsData) {
|
|
8509
8545
|
const invitedUsers = (invitationsData.invitations || []).map((user) => __spreadProps(__spreadValues({}, user), {
|
|
8510
8546
|
invited: true
|
|
@@ -8514,11 +8550,11 @@ var useOrganizationMembers = ({ showInvitations = false }) => {
|
|
|
8514
8550
|
}, [invitationsData]);
|
|
8515
8551
|
const isFetching = isUsersLoading || isInvitationsLoading || isRolesLoading;
|
|
8516
8552
|
const hasError = usersError || rolesError || invitationsError;
|
|
8517
|
-
const updatedUsers = (0,
|
|
8553
|
+
const updatedUsers = (0, import_react18.useMemo)(
|
|
8518
8554
|
() => [...users, ...invitations],
|
|
8519
8555
|
[users, invitations]
|
|
8520
8556
|
);
|
|
8521
|
-
const refetch = (0,
|
|
8557
|
+
const refetch = (0, import_react18.useCallback)(() => {
|
|
8522
8558
|
refetchUsers();
|
|
8523
8559
|
refetchRoles();
|
|
8524
8560
|
refetchInvitations();
|
|
@@ -8535,7 +8571,7 @@ var useOrganizationMembers = ({ showInvitations = false }) => {
|
|
|
8535
8571
|
|
|
8536
8572
|
// react/components/organization/members/member.columns.tsx
|
|
8537
8573
|
var import_react_router7 = require("@tanstack/react-router");
|
|
8538
|
-
var
|
|
8574
|
+
var import_react19 = require("react");
|
|
8539
8575
|
var import_apsara20 = require("@raystack/apsara");
|
|
8540
8576
|
var import_connect_query13 = require("@connectrpc/connect-query");
|
|
8541
8577
|
var import_frontier16 = require("@raystack/proton/frontier");
|
|
@@ -8619,7 +8655,7 @@ var MembersActions = ({
|
|
|
8619
8655
|
refetch = () => null
|
|
8620
8656
|
}) => {
|
|
8621
8657
|
const navigate = (0, import_react_router7.useNavigate)({ from: "/members" });
|
|
8622
|
-
const [isMenuOpen, setIsMenuOpen] = (0,
|
|
8658
|
+
const [isMenuOpen, setIsMenuOpen] = (0, import_react19.useState)(false);
|
|
8623
8659
|
const { data: policiesData, refetch: refetchPolicies } = (0, import_connect_query13.useQuery)(
|
|
8624
8660
|
import_frontier16.FrontierServiceQueries.listPolicies,
|
|
8625
8661
|
(0, import_protobuf15.create)(import_frontier16.ListPoliciesRequestSchema, {
|
|
@@ -8739,8 +8775,8 @@ var MembersActions = ({
|
|
|
8739
8775
|
) }) : null;
|
|
8740
8776
|
};
|
|
8741
8777
|
|
|
8742
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
8743
|
-
var digest18 = "
|
|
8778
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-C2i17OfFs12B/core/react/components/organization/styles.module.css.js
|
|
8779
|
+
var digest18 = "aa0fbd73197e002bdb9a0ef82de28138404d134eb233dad4d95f2b222574e1cf";
|
|
8744
8780
|
var css18 = `._header_11okm_1 {
|
|
8745
8781
|
margin-bottom: var(--rs-space-9);
|
|
8746
8782
|
}
|
|
@@ -8783,8 +8819,8 @@ var css18 = `._header_11okm_1 {
|
|
|
8783
8819
|
})();
|
|
8784
8820
|
var styles_module_css_default3 = { "header": "_header_11okm_1", "container": "_container_11okm_5", "containerFlex": "_containerFlex_11okm_10", "contentWrapper": "_contentWrapper_11okm_18", "pageWrapper": "_pageWrapper_11okm_24" };
|
|
8785
8821
|
|
|
8786
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
8787
|
-
var digest19 = "
|
|
8822
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-U1nxLIa7QPNX/core/react/components/organization/members/members.module.css.js
|
|
8823
|
+
var digest19 = "20ca052281255519c5975ea87bcca12e6f2ceb74a7d047905cb8c57e267d32ae";
|
|
8788
8824
|
var css19 = `._tableWrapper_dtm86_1 {
|
|
8789
8825
|
display: flex;
|
|
8790
8826
|
flex-direction: column;
|
|
@@ -8831,11 +8867,11 @@ var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
|
8831
8867
|
function WorkspaceMembers() {
|
|
8832
8868
|
const { activeOrganization: organization } = useFrontier();
|
|
8833
8869
|
const routerState = (0, import_react_router8.useRouterState)();
|
|
8834
|
-
const isListRoute = (0,
|
|
8870
|
+
const isListRoute = (0, import_react20.useMemo)(() => {
|
|
8835
8871
|
return routerState.location.pathname === "/members";
|
|
8836
8872
|
}, [routerState.location.pathname]);
|
|
8837
8873
|
const resource = `app/organization:${organization == null ? void 0 : organization.id}`;
|
|
8838
|
-
const listOfPermissionsToCheck = (0,
|
|
8874
|
+
const listOfPermissionsToCheck = (0, import_react20.useMemo)(
|
|
8839
8875
|
() => [
|
|
8840
8876
|
{
|
|
8841
8877
|
permission: PERMISSIONS.InvitationCreatePermission,
|
|
@@ -8852,7 +8888,7 @@ function WorkspaceMembers() {
|
|
|
8852
8888
|
listOfPermissionsToCheck,
|
|
8853
8889
|
!!(organization == null ? void 0 : organization.id)
|
|
8854
8890
|
);
|
|
8855
|
-
const { canCreateInvite, canDeleteUser } = (0,
|
|
8891
|
+
const { canCreateInvite, canDeleteUser } = (0, import_react20.useMemo)(() => {
|
|
8856
8892
|
return {
|
|
8857
8893
|
canCreateInvite: shouldShowComponent(
|
|
8858
8894
|
permissions,
|
|
@@ -8874,7 +8910,7 @@ function WorkspaceMembers() {
|
|
|
8874
8910
|
showInvitations: canCreateInvite
|
|
8875
8911
|
});
|
|
8876
8912
|
const isLoading = isOrgMembersLoading || isPermissionsFetching;
|
|
8877
|
-
(0,
|
|
8913
|
+
(0, import_react20.useEffect)(() => {
|
|
8878
8914
|
if (isListRoute) {
|
|
8879
8915
|
refetch();
|
|
8880
8916
|
}
|
|
@@ -8916,7 +8952,7 @@ var MembersTable = ({
|
|
|
8916
8952
|
refetch
|
|
8917
8953
|
}) => {
|
|
8918
8954
|
const navigate = (0, import_react_router8.useNavigate)({ from: "/members" });
|
|
8919
|
-
const columns = (0,
|
|
8955
|
+
const columns = (0, import_react20.useMemo)(
|
|
8920
8956
|
() => getColumns2(organizationId, memberRoles, roles, canDeleteUser, refetch),
|
|
8921
8957
|
[organizationId, memberRoles, canDeleteUser, roles, refetch]
|
|
8922
8958
|
);
|
|
@@ -8987,15 +9023,15 @@ var noDataChildren2 = /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
|
8987
9023
|
var import_apsara22 = require("@raystack/apsara");
|
|
8988
9024
|
var import_yup8 = require("@hookform/resolvers/yup");
|
|
8989
9025
|
var import_react_router9 = require("@tanstack/react-router");
|
|
8990
|
-
var
|
|
9026
|
+
var import_react21 = require("react");
|
|
8991
9027
|
var import_react_hook_form8 = require("react-hook-form");
|
|
8992
9028
|
var yup8 = __toESM(require("yup"));
|
|
8993
9029
|
var import_connect_query14 = require("@connectrpc/connect-query");
|
|
8994
9030
|
var import_frontier17 = require("@raystack/proton/frontier");
|
|
8995
9031
|
var import_protobuf16 = require("@bufbuild/protobuf");
|
|
8996
9032
|
|
|
8997
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
8998
|
-
var digest20 = "
|
|
9033
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-HwUTOThuI93C/core/react/components/organization/organization.module.css.js
|
|
9034
|
+
var digest20 = "591f5638c594a6de535e3c641e16fa473cb19e3685810e9954b132d5ed841d7e";
|
|
8999
9035
|
var css20 = `._createContainer_ipia2_1 {
|
|
9000
9036
|
margin: auto;
|
|
9001
9037
|
width: 100%;
|
|
@@ -9067,39 +9103,39 @@ var InviteMember = () => {
|
|
|
9067
9103
|
});
|
|
9068
9104
|
const navigate = (0, import_react_router9.useNavigate)({ from: "/members/modal" });
|
|
9069
9105
|
const { activeOrganization: organization } = useFrontier();
|
|
9070
|
-
const { data:
|
|
9106
|
+
const { data: orgRolesData, isLoading: isOrgRolesLoading, error: orgRolesError } = (0, import_connect_query14.useQuery)(
|
|
9071
9107
|
import_frontier17.FrontierServiceQueries.listOrganizationRoles,
|
|
9072
9108
|
(0, import_protobuf16.create)(import_frontier17.ListOrganizationRolesRequestSchema, {
|
|
9073
9109
|
orgId: (organization == null ? void 0 : organization.id) || "",
|
|
9074
9110
|
scopes: [PERMISSIONS.OrganizationNamespace]
|
|
9075
9111
|
}),
|
|
9076
9112
|
{
|
|
9077
|
-
enabled: !!(organization == null ? void 0 : organization.id)
|
|
9078
|
-
select: (data) => (data == null ? void 0 : data.roles) || []
|
|
9113
|
+
enabled: !!(organization == null ? void 0 : organization.id)
|
|
9079
9114
|
}
|
|
9080
9115
|
);
|
|
9081
|
-
const
|
|
9116
|
+
const orgRoles = (0, import_react21.useMemo)(() => (orgRolesData == null ? void 0 : orgRolesData.roles) || [], [orgRolesData]);
|
|
9117
|
+
const { data: globalRolesData, isLoading: isGlobalRolesLoading, error: globalRolesError } = (0, import_connect_query14.useQuery)(
|
|
9082
9118
|
import_frontier17.FrontierServiceQueries.listRoles,
|
|
9083
9119
|
(0, import_protobuf16.create)(import_frontier17.ListRolesRequestSchema, {
|
|
9084
9120
|
scopes: [PERMISSIONS.OrganizationNamespace]
|
|
9085
9121
|
}),
|
|
9086
9122
|
{
|
|
9087
|
-
enabled: !!(organization == null ? void 0 : organization.id)
|
|
9088
|
-
select: (data) => (data == null ? void 0 : data.roles) || []
|
|
9123
|
+
enabled: !!(organization == null ? void 0 : organization.id)
|
|
9089
9124
|
}
|
|
9090
9125
|
);
|
|
9091
|
-
const
|
|
9126
|
+
const globalRoles = (0, import_react21.useMemo)(() => (globalRolesData == null ? void 0 : globalRolesData.roles) || [], [globalRolesData]);
|
|
9127
|
+
const { data: teamsData, isLoading: isGroupsLoading, error: groupsError } = (0, import_connect_query14.useQuery)(
|
|
9092
9128
|
import_frontier17.FrontierServiceQueries.listOrganizationGroups,
|
|
9093
9129
|
(0, import_protobuf16.create)(import_frontier17.ListOrganizationGroupsRequestSchema, {
|
|
9094
9130
|
orgId: (organization == null ? void 0 : organization.id) || ""
|
|
9095
9131
|
}),
|
|
9096
9132
|
{
|
|
9097
|
-
enabled: !!(organization == null ? void 0 : organization.id)
|
|
9098
|
-
select: (data) => (data == null ? void 0 : data.groups) || []
|
|
9133
|
+
enabled: !!(organization == null ? void 0 : organization.id)
|
|
9099
9134
|
}
|
|
9100
9135
|
);
|
|
9136
|
+
const teams = (0, import_react21.useMemo)(() => (teamsData == null ? void 0 : teamsData.groups) || [], [teamsData]);
|
|
9101
9137
|
const isLoading = isOrgRolesLoading || isGlobalRolesLoading || isGroupsLoading;
|
|
9102
|
-
const roles = (0,
|
|
9138
|
+
const roles = (0, import_react21.useMemo)(
|
|
9103
9139
|
() => [...globalRoles || [], ...orgRoles || []],
|
|
9104
9140
|
[globalRoles, orgRoles]
|
|
9105
9141
|
);
|
|
@@ -9118,7 +9154,7 @@ var InviteMember = () => {
|
|
|
9118
9154
|
}
|
|
9119
9155
|
);
|
|
9120
9156
|
const values = watch(["emails", "type"]);
|
|
9121
|
-
const onSubmit = (0,
|
|
9157
|
+
const onSubmit = (0, import_react21.useCallback)(
|
|
9122
9158
|
(_0) => __async(void 0, [_0], function* ({ emails, type, team }) {
|
|
9123
9159
|
const emailList = emails.split(",").map((e) => e.trim()).filter((str) => str.length > 0);
|
|
9124
9160
|
if (!(organization == null ? void 0 : organization.id))
|
|
@@ -9143,7 +9179,7 @@ var InviteMember = () => {
|
|
|
9143
9179
|
}),
|
|
9144
9180
|
[createInvitation, organization == null ? void 0 : organization.id]
|
|
9145
9181
|
);
|
|
9146
|
-
const isDisabled = (0,
|
|
9182
|
+
const isDisabled = (0, import_react21.useMemo)(() => {
|
|
9147
9183
|
const [emails, type] = values;
|
|
9148
9184
|
const emailList = (emails == null ? void 0 : emails.split(",").map((e) => e.trim()).filter((str) => str.length > 0)) || [];
|
|
9149
9185
|
return emailList.length <= 0 || !type || isSubmitting;
|
|
@@ -9265,8 +9301,8 @@ var bell_slash_default = 'data:image/svg+xml,<svg width="16" height="16" viewBox
|
|
|
9265
9301
|
// react/assets/bell.svg
|
|
9266
9302
|
var bell_default = 'data:image/svg+xml,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g id="bell">%0A<path id="Vector" d="M9.90457 11.3878C11.1676 11.238 12.3855 10.941 13.5408 10.5146C12.5829 9.45134 11.9999 8.04376 11.9999 6.5V6.03279C12 6.02187 12 6.01094 12 6C12 3.79086 10.2091 2 8 2C5.79086 2 4 3.79086 4 6L3.99987 6.5C3.99987 8.04376 3.41685 9.45134 2.45898 10.5146C3.61427 10.9411 4.83229 11.238 6.09542 11.3878M9.90457 11.3878C9.27999 11.4619 8.64438 11.5 7.99987 11.5C7.35545 11.5 6.71992 11.4619 6.09542 11.3878M9.90457 11.3878C9.96654 11.5807 10 11.7865 10 12C10 13.1046 9.10457 14 8 14C6.89543 14 6 13.1046 6 12C6 11.7865 6.03346 11.5808 6.09542 11.3878" stroke="%23646464" stroke-linecap="round" stroke-linejoin="round"/>%0A</g>%0A</svg>%0A';
|
|
9267
9303
|
|
|
9268
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
9269
|
-
var digest21 = "
|
|
9304
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-fWjpNga3c6yU/core/react/components/organization/styles.module.css.js
|
|
9305
|
+
var digest21 = "dac8999434a38ac8dda11ec111776cdf3dfb700214995b34bb422783bcc3d3d5";
|
|
9270
9306
|
var css21 = `._header_11okm_1 {
|
|
9271
9307
|
margin-bottom: var(--rs-space-9);
|
|
9272
9308
|
}
|
|
@@ -9445,12 +9481,12 @@ var PreferencesSelection = ({
|
|
|
9445
9481
|
};
|
|
9446
9482
|
|
|
9447
9483
|
// react/components/organization/project/index.tsx
|
|
9448
|
-
var
|
|
9484
|
+
var import_react23 = require("react");
|
|
9449
9485
|
var import_apsara25 = require("@raystack/apsara");
|
|
9450
9486
|
var import_react_router11 = require("@tanstack/react-router");
|
|
9451
9487
|
|
|
9452
9488
|
// react/hooks/useOrganizationProjects.ts
|
|
9453
|
-
var
|
|
9489
|
+
var import_react22 = require("react");
|
|
9454
9490
|
var import_connect_query15 = require("@connectrpc/connect-query");
|
|
9455
9491
|
var import_frontier18 = require("@raystack/proton/frontier");
|
|
9456
9492
|
var import_protobuf17 = require("@bufbuild/protobuf");
|
|
@@ -9487,20 +9523,20 @@ var useOrganizationProjects = ({
|
|
|
9487
9523
|
}),
|
|
9488
9524
|
{ enabled: !!(organization == null ? void 0 : organization.id) && !allProjects }
|
|
9489
9525
|
);
|
|
9490
|
-
const refetch = (0,
|
|
9526
|
+
const refetch = (0, import_react22.useCallback)(() => {
|
|
9491
9527
|
if (allProjects) {
|
|
9492
9528
|
refetchOrgProjects();
|
|
9493
9529
|
} else {
|
|
9494
9530
|
refetchUserProjects();
|
|
9495
9531
|
}
|
|
9496
9532
|
}, [allProjects, refetchOrgProjects, refetchUserProjects]);
|
|
9497
|
-
const projects = (0,
|
|
9533
|
+
const projects = (0, import_react22.useMemo)(() => {
|
|
9498
9534
|
return allProjects ? (orgProjectsData == null ? void 0 : orgProjectsData.projects) || [] : (userProjectsData == null ? void 0 : userProjectsData.projects) || [];
|
|
9499
9535
|
}, [allProjects, orgProjectsData == null ? void 0 : orgProjectsData.projects, userProjectsData == null ? void 0 : userProjectsData.projects]);
|
|
9500
|
-
const accessPairs = (0,
|
|
9536
|
+
const accessPairs = (0, import_react22.useMemo)(() => {
|
|
9501
9537
|
return allProjects ? [] : (userProjectsData == null ? void 0 : userProjectsData.accessPairs) || [];
|
|
9502
9538
|
}, [allProjects, userProjectsData == null ? void 0 : userProjectsData.accessPairs]);
|
|
9503
|
-
const userAccessOnProject = (0,
|
|
9539
|
+
const userAccessOnProject = (0, import_react22.useMemo)(() => {
|
|
9504
9540
|
return accessPairs.reduce((acc, p) => {
|
|
9505
9541
|
const { projectId, permissions } = p;
|
|
9506
9542
|
acc[projectId] = permissions;
|
|
@@ -9553,7 +9589,7 @@ var getColumns3 = (userAccessOnProject) => [
|
|
|
9553
9589
|
// },
|
|
9554
9590
|
{
|
|
9555
9591
|
header: "Members",
|
|
9556
|
-
accessorKey: "
|
|
9592
|
+
accessorKey: "membersCount",
|
|
9557
9593
|
cell: ({ row, getValue }) => {
|
|
9558
9594
|
const value = getValue();
|
|
9559
9595
|
return value ? /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_apsara24.Text, { children: [
|
|
@@ -9641,8 +9677,8 @@ var ProjectActions = ({
|
|
|
9641
9677
|
] }) : null;
|
|
9642
9678
|
};
|
|
9643
9679
|
|
|
9644
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
9645
|
-
var digest22 = "
|
|
9680
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-msXEr4p6lvhs/core/react/components/organization/styles.module.css.js
|
|
9681
|
+
var digest22 = "3f05cfaa5abb753878e6173549c430593da74f4b18755be04a42b19c98123463";
|
|
9646
9682
|
var css22 = `._header_11okm_1 {
|
|
9647
9683
|
margin-bottom: var(--rs-space-9);
|
|
9648
9684
|
}
|
|
@@ -9685,8 +9721,8 @@ var css22 = `._header_11okm_1 {
|
|
|
9685
9721
|
})();
|
|
9686
9722
|
var styles_module_css_default5 = { "header": "_header_11okm_1", "container": "_container_11okm_5", "containerFlex": "_containerFlex_11okm_10", "contentWrapper": "_contentWrapper_11okm_18", "pageWrapper": "_pageWrapper_11okm_24" };
|
|
9687
9723
|
|
|
9688
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
9689
|
-
var digest23 = "
|
|
9724
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-SLz3Ev3O20OM/core/react/components/organization/project/project.module.css.js
|
|
9725
|
+
var digest23 = "0bdcac572a8e534fcb561c3c6180cebceb20e195be1c1f279ed3c151a0f625f3";
|
|
9690
9726
|
var css23 = `._tableWrapper_1dq1l_1 {
|
|
9691
9727
|
display: flex;
|
|
9692
9728
|
flex-direction: column;
|
|
@@ -9735,7 +9771,7 @@ var projectsSelectOptions = [
|
|
|
9735
9771
|
{ value: "all-projects", label: "All Projects" }
|
|
9736
9772
|
];
|
|
9737
9773
|
function WorkspaceProjects() {
|
|
9738
|
-
const [showOrgProjects, setShowOrgProjects] = (0,
|
|
9774
|
+
const [showOrgProjects, setShowOrgProjects] = (0, import_react23.useState)(false);
|
|
9739
9775
|
const {
|
|
9740
9776
|
isFetching: isProjectsLoading,
|
|
9741
9777
|
projects,
|
|
@@ -9747,12 +9783,13 @@ function WorkspaceProjects() {
|
|
|
9747
9783
|
withMemberCount: true
|
|
9748
9784
|
});
|
|
9749
9785
|
const { activeOrganization: organization } = useFrontier();
|
|
9786
|
+
const t = useTerminology();
|
|
9750
9787
|
const routerState = (0, import_react_router11.useRouterState)();
|
|
9751
|
-
const isListRoute = (0,
|
|
9788
|
+
const isListRoute = (0, import_react23.useMemo)(() => {
|
|
9752
9789
|
return routerState.location.pathname === "/projects";
|
|
9753
9790
|
}, [routerState.location.pathname]);
|
|
9754
9791
|
const resource = `app/organization:${organization == null ? void 0 : organization.id}`;
|
|
9755
|
-
const listOfPermissionsToCheck = (0,
|
|
9792
|
+
const listOfPermissionsToCheck = (0, import_react23.useMemo)(
|
|
9756
9793
|
() => [
|
|
9757
9794
|
{
|
|
9758
9795
|
permission: PERMISSIONS.ProjectCreatePermission,
|
|
@@ -9769,7 +9806,7 @@ function WorkspaceProjects() {
|
|
|
9769
9806
|
listOfPermissionsToCheck,
|
|
9770
9807
|
!!(organization == null ? void 0 : organization.id)
|
|
9771
9808
|
);
|
|
9772
|
-
const { canCreateProject, canUpdateOrganization } = (0,
|
|
9809
|
+
const { canCreateProject, canUpdateOrganization } = (0, import_react23.useMemo)(() => {
|
|
9773
9810
|
return {
|
|
9774
9811
|
canCreateProject: shouldShowComponent(
|
|
9775
9812
|
permissions,
|
|
@@ -9781,19 +9818,19 @@ function WorkspaceProjects() {
|
|
|
9781
9818
|
)
|
|
9782
9819
|
};
|
|
9783
9820
|
}, [permissions, resource]);
|
|
9784
|
-
const onOrgProjectsFilterChange = (0,
|
|
9821
|
+
const onOrgProjectsFilterChange = (0, import_react23.useCallback)((value) => {
|
|
9785
9822
|
if (value === "all-projects") {
|
|
9786
9823
|
setShowOrgProjects(true);
|
|
9787
9824
|
} else {
|
|
9788
9825
|
setShowOrgProjects(false);
|
|
9789
9826
|
}
|
|
9790
9827
|
}, []);
|
|
9791
|
-
(0,
|
|
9828
|
+
(0, import_react23.useEffect)(() => {
|
|
9792
9829
|
if (isListRoute) {
|
|
9793
9830
|
refetch();
|
|
9794
9831
|
}
|
|
9795
9832
|
}, [isListRoute, refetch, routerState.location.state.key]);
|
|
9796
|
-
(0,
|
|
9833
|
+
(0, import_react23.useEffect)(() => {
|
|
9797
9834
|
if (projectsError) {
|
|
9798
9835
|
import_apsara25.toast.error("Something went wrong", {
|
|
9799
9836
|
description: projectsError.message
|
|
@@ -9802,26 +9839,52 @@ function WorkspaceProjects() {
|
|
|
9802
9839
|
}, [projectsError]);
|
|
9803
9840
|
const isLoading = isPermissionsFetching || isProjectsLoading;
|
|
9804
9841
|
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_apsara25.Flex, { direction: "column", className: styles_module_css_default5.pageWrapper, children: [
|
|
9805
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
9806
|
-
|
|
9807
|
-
|
|
9808
|
-
|
|
9809
|
-
|
|
9810
|
-
|
|
9811
|
-
|
|
9812
|
-
|
|
9813
|
-
|
|
9814
|
-
|
|
9815
|
-
|
|
9816
|
-
|
|
9817
|
-
|
|
9818
|
-
|
|
9819
|
-
|
|
9820
|
-
|
|
9821
|
-
|
|
9822
|
-
|
|
9823
|
-
|
|
9824
|
-
|
|
9842
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
9843
|
+
import_apsara25.Flex,
|
|
9844
|
+
{
|
|
9845
|
+
direction: "column",
|
|
9846
|
+
className: `${styles_module_css_default5.container} ${styles_module_css_default5.containerFlex}`,
|
|
9847
|
+
children: [
|
|
9848
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
9849
|
+
import_apsara25.Flex,
|
|
9850
|
+
{
|
|
9851
|
+
direction: "row",
|
|
9852
|
+
justify: "between",
|
|
9853
|
+
align: "center",
|
|
9854
|
+
className: styles_module_css_default5.header,
|
|
9855
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
9856
|
+
PageHeader,
|
|
9857
|
+
{
|
|
9858
|
+
title: "Projects",
|
|
9859
|
+
description: `Manage projects in this ${t.organization({
|
|
9860
|
+
case: "lower"
|
|
9861
|
+
})}.`
|
|
9862
|
+
}
|
|
9863
|
+
)
|
|
9864
|
+
}
|
|
9865
|
+
),
|
|
9866
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
9867
|
+
import_apsara25.Flex,
|
|
9868
|
+
{
|
|
9869
|
+
direction: "column",
|
|
9870
|
+
gap: 9,
|
|
9871
|
+
className: styles_module_css_default5.contentWrapper,
|
|
9872
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
9873
|
+
ProjectsTable,
|
|
9874
|
+
{
|
|
9875
|
+
projects,
|
|
9876
|
+
isLoading,
|
|
9877
|
+
canCreateProject,
|
|
9878
|
+
userAccessOnProject,
|
|
9879
|
+
onOrgProjectsFilterChange,
|
|
9880
|
+
canListOrgProjects: canUpdateOrganization
|
|
9881
|
+
}
|
|
9882
|
+
)
|
|
9883
|
+
}
|
|
9884
|
+
)
|
|
9885
|
+
]
|
|
9886
|
+
}
|
|
9887
|
+
),
|
|
9825
9888
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react_router11.Outlet, {})
|
|
9826
9889
|
] });
|
|
9827
9890
|
}
|
|
@@ -9834,7 +9897,7 @@ var ProjectsTable = ({
|
|
|
9834
9897
|
onOrgProjectsFilterChange
|
|
9835
9898
|
}) => {
|
|
9836
9899
|
const navigate = (0, import_react_router11.useNavigate)({ from: "/projects" });
|
|
9837
|
-
const columns = (0,
|
|
9900
|
+
const columns = (0, import_react23.useMemo)(
|
|
9838
9901
|
() => getColumns3(userAccessOnProject),
|
|
9839
9902
|
[userAccessOnProject]
|
|
9840
9903
|
);
|
|
@@ -9843,7 +9906,7 @@ var ProjectsTable = ({
|
|
|
9843
9906
|
{
|
|
9844
9907
|
data: projects != null ? projects : [],
|
|
9845
9908
|
isLoading,
|
|
9846
|
-
defaultSort: { name: "
|
|
9909
|
+
defaultSort: { name: "title", order: "asc" },
|
|
9847
9910
|
columns,
|
|
9848
9911
|
mode: "client",
|
|
9849
9912
|
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_apsara25.Flex, { direction: "column", gap: 7, className: project_module_css_default.tableWrapper, children: [
|
|
@@ -9905,7 +9968,7 @@ var noDataChildren3 = /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
|
9905
9968
|
);
|
|
9906
9969
|
|
|
9907
9970
|
// react/components/organization/project/add.tsx
|
|
9908
|
-
var
|
|
9971
|
+
var import_react24 = require("react");
|
|
9909
9972
|
var import_apsara26 = require("@raystack/apsara");
|
|
9910
9973
|
var yup9 = __toESM(require("yup"));
|
|
9911
9974
|
var import_yup9 = require("@hookform/resolvers/yup");
|
|
@@ -9915,8 +9978,8 @@ var import_connect_query16 = require("@connectrpc/connect-query");
|
|
|
9915
9978
|
var import_frontier19 = require("@raystack/proton/frontier");
|
|
9916
9979
|
var import_protobuf18 = require("@bufbuild/protobuf");
|
|
9917
9980
|
|
|
9918
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
9919
|
-
var digest24 = "
|
|
9981
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-hVU61NUImG7r/core/react/components/organization/organization.module.css.js
|
|
9982
|
+
var digest24 = "080bdf3e274503730f20c573b8abbb64a397c64c7ed260037ad1d4caa6aac46f";
|
|
9920
9983
|
var css24 = `._createContainer_ipia2_1 {
|
|
9921
9984
|
margin: auto;
|
|
9922
9985
|
width: 100%;
|
|
@@ -9991,7 +10054,7 @@ var AddProject = () => {
|
|
|
9991
10054
|
});
|
|
9992
10055
|
const navigate = (0, import_react_router12.useNavigate)({ from: "/projects/modal" });
|
|
9993
10056
|
const { activeOrganization: organization } = useFrontier();
|
|
9994
|
-
(0,
|
|
10057
|
+
(0, import_react24.useEffect)(() => {
|
|
9995
10058
|
reset({ org_id: organization == null ? void 0 : organization.id });
|
|
9996
10059
|
}, [organization, reset]);
|
|
9997
10060
|
const { mutateAsync: createProject } = (0, import_connect_query16.useMutation)(
|
|
@@ -10092,15 +10155,15 @@ var AddProject = () => {
|
|
|
10092
10155
|
var import_apsara27 = require("@raystack/apsara");
|
|
10093
10156
|
var import_yup10 = require("@hookform/resolvers/yup");
|
|
10094
10157
|
var import_react_router13 = require("@tanstack/react-router");
|
|
10095
|
-
var
|
|
10158
|
+
var import_react25 = require("react");
|
|
10096
10159
|
var import_react_hook_form10 = require("react-hook-form");
|
|
10097
10160
|
var yup10 = __toESM(require("yup"));
|
|
10098
10161
|
var import_connect_query17 = require("@connectrpc/connect-query");
|
|
10099
10162
|
var import_frontier20 = require("@raystack/proton/frontier");
|
|
10100
10163
|
var import_protobuf19 = require("@bufbuild/protobuf");
|
|
10101
10164
|
|
|
10102
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
10103
|
-
var digest25 = "
|
|
10165
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-KxP6B1oD36u6/core/react/components/organization/organization.module.css.js
|
|
10166
|
+
var digest25 = "e91421a11a47c3e31c52056c7252e896c46cbeab979262778095669af6802443";
|
|
10104
10167
|
var css25 = `._createContainer_ipia2_1 {
|
|
10105
10168
|
margin: auto;
|
|
10106
10169
|
width: 100%;
|
|
@@ -10155,7 +10218,7 @@ var organization_module_css_default6 = { "createContainer": "_createContainer_ip
|
|
|
10155
10218
|
// react/components/organization/project/delete.tsx
|
|
10156
10219
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
10157
10220
|
var projectSchema2 = yup10.object({
|
|
10158
|
-
|
|
10221
|
+
title: yup10.string()
|
|
10159
10222
|
}).required();
|
|
10160
10223
|
var DeleteProject = () => {
|
|
10161
10224
|
var _a;
|
|
@@ -10171,7 +10234,7 @@ var DeleteProject = () => {
|
|
|
10171
10234
|
let { projectId } = (0, import_react_router13.useParams)({ from: "/projects/$projectId/delete" });
|
|
10172
10235
|
const navigate = (0, import_react_router13.useNavigate)({ from: "/projects/$projectId/delete" });
|
|
10173
10236
|
const { activeOrganization: organization } = useFrontier();
|
|
10174
|
-
const [isAcknowledged, setIsAcknowledged] = (0,
|
|
10237
|
+
const [isAcknowledged, setIsAcknowledged] = (0, import_react25.useState)(false);
|
|
10175
10238
|
const {
|
|
10176
10239
|
data: project,
|
|
10177
10240
|
isLoading: isProjectQueryLoading,
|
|
@@ -10184,7 +10247,7 @@ var DeleteProject = () => {
|
|
|
10184
10247
|
select: (d) => d == null ? void 0 : d.project
|
|
10185
10248
|
}
|
|
10186
10249
|
);
|
|
10187
|
-
(0,
|
|
10250
|
+
(0, import_react25.useEffect)(() => {
|
|
10188
10251
|
if (projectError) {
|
|
10189
10252
|
import_apsara27.toast.error("Something went wrong", { description: projectError.message });
|
|
10190
10253
|
}
|
|
@@ -10203,12 +10266,12 @@ var DeleteProject = () => {
|
|
|
10203
10266
|
return __async(this, null, function* () {
|
|
10204
10267
|
if (!(organization == null ? void 0 : organization.id) || !projectId)
|
|
10205
10268
|
return;
|
|
10206
|
-
if (data.
|
|
10207
|
-
return setError("
|
|
10269
|
+
if (data.title !== (project == null ? void 0 : project.title))
|
|
10270
|
+
return setError("title", { message: "Project title does not match" });
|
|
10208
10271
|
yield deleteProject((0, import_protobuf19.create)(import_frontier20.DeleteProjectRequestSchema, { id: projectId }));
|
|
10209
10272
|
});
|
|
10210
10273
|
}
|
|
10211
|
-
const
|
|
10274
|
+
const title = watch("title", "");
|
|
10212
10275
|
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_apsara27.Dialog, { open: true, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
10213
10276
|
import_apsara27.Dialog.Content,
|
|
10214
10277
|
{
|
|
@@ -10243,11 +10306,11 @@ var DeleteProject = () => {
|
|
|
10243
10306
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
10244
10307
|
import_apsara27.InputField,
|
|
10245
10308
|
__spreadProps(__spreadValues({
|
|
10246
|
-
label: "Please
|
|
10309
|
+
label: "Please enter the title of the project to confirm.",
|
|
10247
10310
|
size: "large",
|
|
10248
|
-
error: errors.
|
|
10249
|
-
}, register("
|
|
10250
|
-
placeholder: "
|
|
10311
|
+
error: errors.title && String((_a = errors.title) == null ? void 0 : _a.message)
|
|
10312
|
+
}, register("title")), {
|
|
10313
|
+
placeholder: "Enter the project title"
|
|
10251
10314
|
})
|
|
10252
10315
|
),
|
|
10253
10316
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_apsara27.Flex, { gap: "small", children: [
|
|
@@ -10259,7 +10322,7 @@ var DeleteProject = () => {
|
|
|
10259
10322
|
"data-test-id": "frontier-sdk-delete-project-checkbox"
|
|
10260
10323
|
}
|
|
10261
10324
|
),
|
|
10262
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_apsara27.Text, { size: "small", children: "I understand that all of the project data will be deleted and want to proceed." })
|
|
10325
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_apsara27.Text, { size: "small", children: "I acknowledge and understand that all of the project data will be deleted and want to proceed." })
|
|
10263
10326
|
] }),
|
|
10264
10327
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
10265
10328
|
import_apsara27.Button,
|
|
@@ -10267,7 +10330,7 @@ var DeleteProject = () => {
|
|
|
10267
10330
|
variant: "solid",
|
|
10268
10331
|
color: "danger",
|
|
10269
10332
|
type: "submit",
|
|
10270
|
-
disabled: !
|
|
10333
|
+
disabled: !title || !isAcknowledged,
|
|
10271
10334
|
style: { width: "100%" },
|
|
10272
10335
|
"data-test-id": "frontier-sdk-delete-project-btn",
|
|
10273
10336
|
loading: isSubmitting,
|
|
@@ -10284,7 +10347,7 @@ var DeleteProject = () => {
|
|
|
10284
10347
|
// react/components/organization/project/project.tsx
|
|
10285
10348
|
var import_apsara31 = require("@raystack/apsara");
|
|
10286
10349
|
var import_react_router17 = require("@tanstack/react-router");
|
|
10287
|
-
var
|
|
10350
|
+
var import_react30 = require("react");
|
|
10288
10351
|
|
|
10289
10352
|
// react/assets/chevron-left.svg
|
|
10290
10353
|
var chevron_left_default = 'data:image/svg+xml,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g id="Chevron Left">%0A<path id="Shape" fill-rule="evenodd" clip-rule="evenodd" d="M9.40838 3.36863C9.60983 3.5575 9.62004 3.87391 9.43117 4.07537L5.75177 8.00007L9.43117 11.9248C9.62004 12.1262 9.60983 12.4426 9.40838 12.6315C9.20692 12.8204 8.8905 12.8102 8.70164 12.6087L4.70164 8.34204C4.52133 8.14971 4.52133 7.85043 4.70164 7.6581L8.70164 3.39143C8.8905 3.18997 9.20692 3.17977 9.40838 3.36863Z" fill="%233C4347"/>%0A</g>%0A</svg>%0A';
|
|
@@ -10298,7 +10361,7 @@ var import_protobuf24 = require("@bufbuild/protobuf");
|
|
|
10298
10361
|
var import_apsara28 = require("@raystack/apsara");
|
|
10299
10362
|
var import_yup11 = require("@hookform/resolvers/yup");
|
|
10300
10363
|
var import_react_router14 = require("@tanstack/react-router");
|
|
10301
|
-
var
|
|
10364
|
+
var import_react26 = require("react");
|
|
10302
10365
|
var import_react_hook_form11 = require("react-hook-form");
|
|
10303
10366
|
var yup11 = __toESM(require("yup"));
|
|
10304
10367
|
var import_connect_query18 = require("@connectrpc/connect-query");
|
|
@@ -10328,11 +10391,11 @@ var General = ({
|
|
|
10328
10391
|
onSuccess: () => import_apsara28.toast.success("Project updated successfully"),
|
|
10329
10392
|
onError: (error) => import_apsara28.toast.error("Something went wrong", { description: error.message })
|
|
10330
10393
|
});
|
|
10331
|
-
(0,
|
|
10394
|
+
(0, import_react26.useEffect)(() => {
|
|
10332
10395
|
reset(project);
|
|
10333
10396
|
}, [reset, project]);
|
|
10334
10397
|
const resource = `app/project:${projectId}`;
|
|
10335
|
-
const listOfPermissionsToCheck = (0,
|
|
10398
|
+
const listOfPermissionsToCheck = (0, import_react26.useMemo)(
|
|
10336
10399
|
() => [
|
|
10337
10400
|
{
|
|
10338
10401
|
permission: PERMISSIONS.UpdatePermission,
|
|
@@ -10349,7 +10412,7 @@ var General = ({
|
|
|
10349
10412
|
listOfPermissionsToCheck,
|
|
10350
10413
|
!!projectId
|
|
10351
10414
|
);
|
|
10352
|
-
const { canUpdateProject, canDeleteProject } = (0,
|
|
10415
|
+
const { canUpdateProject, canDeleteProject } = (0, import_react26.useMemo)(() => {
|
|
10353
10416
|
return {
|
|
10354
10417
|
canUpdateProject: shouldShowComponent(
|
|
10355
10418
|
permissions,
|
|
@@ -10460,12 +10523,12 @@ var GeneralDeleteProject = ({
|
|
|
10460
10523
|
};
|
|
10461
10524
|
|
|
10462
10525
|
// react/components/organization/project/members/index.tsx
|
|
10463
|
-
var
|
|
10526
|
+
var import_react29 = require("react");
|
|
10464
10527
|
var import_apsara30 = require("@raystack/apsara");
|
|
10465
10528
|
var import_react_router16 = require("@tanstack/react-router");
|
|
10466
10529
|
|
|
10467
10530
|
// react/hooks/useOrganizationTeams.ts
|
|
10468
|
-
var
|
|
10531
|
+
var import_react27 = require("react");
|
|
10469
10532
|
var import_connect_query19 = require("@connectrpc/connect-query");
|
|
10470
10533
|
var import_frontier22 = require("@raystack/proton/frontier");
|
|
10471
10534
|
var import_protobuf21 = require("@bufbuild/protobuf");
|
|
@@ -10474,8 +10537,8 @@ var useOrganizationTeams = ({
|
|
|
10474
10537
|
showOrgTeams = false,
|
|
10475
10538
|
withMemberCount = false
|
|
10476
10539
|
}) => {
|
|
10477
|
-
const [teams, setTeams] = (0,
|
|
10478
|
-
const [accessPairs, setAccessPairs] = (0,
|
|
10540
|
+
const [teams, setTeams] = (0, import_react27.useState)([]);
|
|
10541
|
+
const [accessPairs, setAccessPairs] = (0, import_react27.useState)([]);
|
|
10479
10542
|
const { activeOrganization: organization } = useFrontier();
|
|
10480
10543
|
const { data: orgTeamsData, isLoading: isOrgTeamsLoading, error: orgTeamsError, refetch: refetchOrgTeams } = (0, import_connect_query19.useQuery)(
|
|
10481
10544
|
import_frontier22.FrontierServiceQueries.listOrganizationGroups,
|
|
@@ -10489,7 +10552,7 @@ var useOrganizationTeams = ({
|
|
|
10489
10552
|
);
|
|
10490
10553
|
const isTeamsLoading = showOrgTeams ? isOrgTeamsLoading : isUserTeamsLoading;
|
|
10491
10554
|
const teamsData = showOrgTeams ? orgTeamsData : userTeamsData;
|
|
10492
|
-
(0,
|
|
10555
|
+
(0, import_react27.useEffect)(() => {
|
|
10493
10556
|
if (teamsData) {
|
|
10494
10557
|
const { groups = [] } = teamsData;
|
|
10495
10558
|
setTeams(groups);
|
|
@@ -10500,14 +10563,14 @@ var useOrganizationTeams = ({
|
|
|
10500
10563
|
}
|
|
10501
10564
|
}
|
|
10502
10565
|
}, [teamsData, showOrgTeams]);
|
|
10503
|
-
const userAccessOnTeam = (0,
|
|
10566
|
+
const userAccessOnTeam = (0, import_react27.useMemo)(() => {
|
|
10504
10567
|
return accessPairs.reduce((acc, p) => {
|
|
10505
10568
|
const { groupId, permissions } = p;
|
|
10506
10569
|
acc[groupId] = permissions;
|
|
10507
10570
|
return acc;
|
|
10508
10571
|
}, {});
|
|
10509
10572
|
}, [accessPairs]);
|
|
10510
|
-
const refetch = (0,
|
|
10573
|
+
const refetch = (0, import_react27.useCallback)(() => {
|
|
10511
10574
|
if (showOrgTeams) {
|
|
10512
10575
|
refetchOrgTeams();
|
|
10513
10576
|
} else {
|
|
@@ -10524,7 +10587,7 @@ var useOrganizationTeams = ({
|
|
|
10524
10587
|
};
|
|
10525
10588
|
|
|
10526
10589
|
// react/components/organization/project/members/member.columns.tsx
|
|
10527
|
-
var
|
|
10590
|
+
var import_react28 = require("react");
|
|
10528
10591
|
var import_apsara29 = require("@raystack/apsara");
|
|
10529
10592
|
var import_react_router15 = require("@tanstack/react-router");
|
|
10530
10593
|
var import_connect_query20 = require("@connectrpc/connect-query");
|
|
@@ -10629,25 +10692,26 @@ var MembersActions2 = ({
|
|
|
10629
10692
|
}
|
|
10630
10693
|
});
|
|
10631
10694
|
}
|
|
10632
|
-
const { data:
|
|
10695
|
+
const { data: policiesData, refetch: refetchPolicies, error: policiesError } = (0, import_connect_query20.useQuery)(
|
|
10633
10696
|
import_frontier23.FrontierServiceQueries.listPolicies,
|
|
10634
10697
|
(0, import_protobuf22.create)(import_frontier23.ListPoliciesRequestSchema, {
|
|
10635
10698
|
projectId,
|
|
10636
10699
|
userId: member.isTeam ? void 0 : member.id,
|
|
10637
10700
|
groupId: member.isTeam ? member.id : void 0
|
|
10638
10701
|
}),
|
|
10639
|
-
{ enabled: !!projectId && !!(member == null ? void 0 : member.id)
|
|
10640
|
-
var _a;
|
|
10641
|
-
return (_a = d == null ? void 0 : d.policies) != null ? _a : [];
|
|
10642
|
-
} }
|
|
10702
|
+
{ enabled: !!projectId && !!(member == null ? void 0 : member.id) }
|
|
10643
10703
|
);
|
|
10704
|
+
const policies = (0, import_react28.useMemo)(() => {
|
|
10705
|
+
var _a;
|
|
10706
|
+
return (_a = policiesData == null ? void 0 : policiesData.policies) != null ? _a : [];
|
|
10707
|
+
}, [policiesData]);
|
|
10644
10708
|
const { mutateAsync: deletePolicy } = (0, import_connect_query20.useMutation)(import_frontier23.FrontierServiceQueries.deletePolicy, {
|
|
10645
10709
|
onError: (err) => import_apsara29.toast.error("Something went wrong", { description: err.message })
|
|
10646
10710
|
});
|
|
10647
10711
|
const { mutateAsync: createPolicy } = (0, import_connect_query20.useMutation)(import_frontier23.FrontierServiceQueries.createPolicy, {
|
|
10648
10712
|
onError: (err) => import_apsara29.toast.error("Something went wrong", { description: err.message })
|
|
10649
10713
|
});
|
|
10650
|
-
(0,
|
|
10714
|
+
(0, import_react28.useEffect)(() => {
|
|
10651
10715
|
if (policiesError) {
|
|
10652
10716
|
import_apsara29.toast.error("Something went wrong", { description: policiesError.message });
|
|
10653
10717
|
}
|
|
@@ -10717,8 +10781,8 @@ var import_connect_query21 = require("@connectrpc/connect-query");
|
|
|
10717
10781
|
var import_frontier24 = require("@raystack/proton/frontier");
|
|
10718
10782
|
var import_protobuf23 = require("@bufbuild/protobuf");
|
|
10719
10783
|
|
|
10720
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
10721
|
-
var digest26 = "
|
|
10784
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-Bljd938KJz2a/core/react/components/organization/project/members/members.module.css.js
|
|
10785
|
+
var digest26 = "dbe7127fb5ebf807ee0803ab92587ea619c9b31189ec49349686e682df3b62d0";
|
|
10722
10786
|
var css26 = `._inviteDropdownItem_pjksz_1 {
|
|
10723
10787
|
padding: var(--rs-space-3);
|
|
10724
10788
|
user-select: none;
|
|
@@ -10792,7 +10856,7 @@ var Members = ({
|
|
|
10792
10856
|
}) => {
|
|
10793
10857
|
const { projectId } = (0, import_react_router16.useParams)({ from: "/projects/$projectId" });
|
|
10794
10858
|
const resource = `app/project:${projectId}`;
|
|
10795
|
-
const listOfPermissionsToCheck = (0,
|
|
10859
|
+
const listOfPermissionsToCheck = (0, import_react29.useMemo)(
|
|
10796
10860
|
() => [
|
|
10797
10861
|
{
|
|
10798
10862
|
permission: PERMISSIONS.UpdatePermission,
|
|
@@ -10805,7 +10869,7 @@ var Members = ({
|
|
|
10805
10869
|
listOfPermissionsToCheck,
|
|
10806
10870
|
!!projectId
|
|
10807
10871
|
);
|
|
10808
|
-
const { canUpdateProject } = (0,
|
|
10872
|
+
const { canUpdateProject } = (0, import_react29.useMemo)(() => {
|
|
10809
10873
|
return {
|
|
10810
10874
|
canUpdateProject: shouldShowComponent(
|
|
10811
10875
|
permissions,
|
|
@@ -10814,7 +10878,7 @@ var Members = ({
|
|
|
10814
10878
|
};
|
|
10815
10879
|
}, [permissions, resource]);
|
|
10816
10880
|
const isLoading = isMemberLoading || isPermissionsFetching;
|
|
10817
|
-
const columns = (0,
|
|
10881
|
+
const columns = (0, import_react29.useMemo)(
|
|
10818
10882
|
() => getColumns4(
|
|
10819
10883
|
memberRoles,
|
|
10820
10884
|
groupRoles,
|
|
@@ -10825,7 +10889,7 @@ var Members = ({
|
|
|
10825
10889
|
),
|
|
10826
10890
|
[memberRoles, groupRoles, roles, canUpdateProject, projectId, refetch]
|
|
10827
10891
|
);
|
|
10828
|
-
const updatedUsers = (0,
|
|
10892
|
+
const updatedUsers = (0, import_react29.useMemo)(() => {
|
|
10829
10893
|
const updatedTeams = teams.map((t) => __spreadProps(__spreadValues({}, t), { isTeam: true }));
|
|
10830
10894
|
return (members == null ? void 0 : members.length) || (updatedTeams == null ? void 0 : updatedTeams.length) ? [...updatedTeams, ...members] : [];
|
|
10831
10895
|
}, [members, teams]);
|
|
@@ -10883,8 +10947,8 @@ var AddMemberDropdown = ({
|
|
|
10883
10947
|
refetch
|
|
10884
10948
|
}) => {
|
|
10885
10949
|
const { projectId } = (0, import_react_router16.useParams)({ from: "/projects/$projectId" });
|
|
10886
|
-
const [query, setQuery] = (0,
|
|
10887
|
-
const [showTeam, setShowTeam] = (0,
|
|
10950
|
+
const [query, setQuery] = (0, import_react29.useState)("");
|
|
10951
|
+
const [showTeam, setShowTeam] = (0, import_react29.useState)(false);
|
|
10888
10952
|
const { activeOrganization: organization } = useFrontier();
|
|
10889
10953
|
const { isFetching: isTeamsLoading, teams } = useOrganizationTeams({});
|
|
10890
10954
|
const toggleShowTeam = (e) => {
|
|
@@ -10892,24 +10956,25 @@ var AddMemberDropdown = ({
|
|
|
10892
10956
|
setQuery("");
|
|
10893
10957
|
setShowTeam((prev) => !prev);
|
|
10894
10958
|
};
|
|
10895
|
-
const { data:
|
|
10959
|
+
const { data: orgUsersData, isLoading: isOrgUsersLoading, error: orgUsersError } = (0, import_connect_query21.useQuery)(
|
|
10896
10960
|
import_frontier24.FrontierServiceQueries.listOrganizationUsers,
|
|
10897
10961
|
(0, import_protobuf23.create)(import_frontier24.ListOrganizationUsersRequestSchema, { id: (organization == null ? void 0 : organization.id) || "" }),
|
|
10898
|
-
{ enabled: !!(organization == null ? void 0 : organization.id) && canUpdateProject
|
|
10899
|
-
var _a;
|
|
10900
|
-
return (_a = d == null ? void 0 : d.users) != null ? _a : [];
|
|
10901
|
-
} }
|
|
10962
|
+
{ enabled: !!(organization == null ? void 0 : organization.id) && canUpdateProject }
|
|
10902
10963
|
);
|
|
10903
|
-
(0,
|
|
10964
|
+
const orgUsersResp = (0, import_react29.useMemo)(() => {
|
|
10965
|
+
var _a;
|
|
10966
|
+
return (_a = orgUsersData == null ? void 0 : orgUsersData.users) != null ? _a : [];
|
|
10967
|
+
}, [orgUsersData]);
|
|
10968
|
+
(0, import_react29.useEffect)(() => {
|
|
10904
10969
|
if (orgUsersError) {
|
|
10905
10970
|
import_apsara30.toast.error("Something went wrong", { description: orgUsersError.message });
|
|
10906
10971
|
}
|
|
10907
10972
|
}, [orgUsersError]);
|
|
10908
|
-
const invitableUser = (0,
|
|
10973
|
+
const invitableUser = (0, import_react29.useMemo)(
|
|
10909
10974
|
() => filterUsersfromUsers(orgUsersResp || [], members) || [],
|
|
10910
10975
|
[orgUsersResp, members]
|
|
10911
10976
|
);
|
|
10912
|
-
const topUsers = (0,
|
|
10977
|
+
const topUsers = (0, import_react29.useMemo)(
|
|
10913
10978
|
() => invitableUser.filter(
|
|
10914
10979
|
(user) => {
|
|
10915
10980
|
var _a, _b;
|
|
@@ -10918,7 +10983,7 @@ var AddMemberDropdown = ({
|
|
|
10918
10983
|
).slice(0, 7),
|
|
10919
10984
|
[invitableUser, query]
|
|
10920
10985
|
);
|
|
10921
|
-
const topTeams = (0,
|
|
10986
|
+
const topTeams = (0, import_react29.useMemo)(
|
|
10922
10987
|
() => teams.filter(
|
|
10923
10988
|
(team) => query ? team.title && team.title.toLowerCase().includes(query.toLowerCase()) : true
|
|
10924
10989
|
).slice(0, 7),
|
|
@@ -10940,7 +11005,7 @@ var AddMemberDropdown = ({
|
|
|
10940
11005
|
}
|
|
10941
11006
|
}
|
|
10942
11007
|
);
|
|
10943
|
-
const addMember = (0,
|
|
11008
|
+
const addMember = (0, import_react29.useCallback)(
|
|
10944
11009
|
(userId) => {
|
|
10945
11010
|
if (!userId || !(organization == null ? void 0 : organization.id) || !projectId)
|
|
10946
11011
|
return;
|
|
@@ -10954,7 +11019,7 @@ var AddMemberDropdown = ({
|
|
|
10954
11019
|
},
|
|
10955
11020
|
[createPolicyForProject, organization == null ? void 0 : organization.id, projectId]
|
|
10956
11021
|
);
|
|
10957
|
-
const addTeam = (0,
|
|
11022
|
+
const addTeam = (0, import_react29.useCallback)(
|
|
10958
11023
|
(teamId) => {
|
|
10959
11024
|
if (!teamId || !(organization == null ? void 0 : organization.id) || !projectId)
|
|
10960
11025
|
return;
|
|
@@ -11089,8 +11154,8 @@ var noDataChildren4 = /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
|
11089
11154
|
}
|
|
11090
11155
|
);
|
|
11091
11156
|
|
|
11092
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11093
|
-
var digest27 = "
|
|
11157
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-20T6EshNGa9E/core/react/components/organization/styles.module.css.js
|
|
11158
|
+
var digest27 = "6b359de9f49b089ec701cc9a403269995447fbc4118b91ac2bdd5c109ef1aff3";
|
|
11094
11159
|
var css27 = `._header_11okm_1 {
|
|
11095
11160
|
margin-bottom: var(--rs-space-9);
|
|
11096
11161
|
}
|
|
@@ -11133,8 +11198,8 @@ var css27 = `._header_11okm_1 {
|
|
|
11133
11198
|
})();
|
|
11134
11199
|
var styles_module_css_default6 = { "header": "_header_11okm_1", "container": "_container_11okm_5", "containerFlex": "_containerFlex_11okm_10", "contentWrapper": "_contentWrapper_11okm_18", "pageWrapper": "_pageWrapper_11okm_24" };
|
|
11135
11200
|
|
|
11136
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11137
|
-
var digest28 = "
|
|
11201
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-343wbaIznXt7/core/react/components/organization/project/project.module.css.js
|
|
11202
|
+
var digest28 = "aedf9e36e66100462787ca2e07804908b7e0171c846d140f89390aec6769695b";
|
|
11138
11203
|
var css28 = `._tableWrapper_1dq1l_1 {
|
|
11139
11204
|
display: flex;
|
|
11140
11205
|
flex-direction: column;
|
|
@@ -11183,13 +11248,13 @@ var ProjectPage = () => {
|
|
|
11183
11248
|
const { activeOrganization: organization } = useFrontier();
|
|
11184
11249
|
let navigate = (0, import_react_router17.useNavigate)({ from: "/projects/$projectId" });
|
|
11185
11250
|
const routeState = (0, import_react_router17.useRouterState)();
|
|
11186
|
-
const isDeleteRoute = (0,
|
|
11251
|
+
const isDeleteRoute = (0, import_react30.useMemo)(() => {
|
|
11187
11252
|
return routeState.matches.some(
|
|
11188
11253
|
(route) => route.routeId === "/projects/$projectId/delete"
|
|
11189
11254
|
);
|
|
11190
11255
|
}, [routeState.matches]);
|
|
11191
11256
|
const {
|
|
11192
|
-
data:
|
|
11257
|
+
data: projectGroupsData,
|
|
11193
11258
|
isLoading: isTeamsLoading,
|
|
11194
11259
|
error: projectGroupsError,
|
|
11195
11260
|
refetch: refetchProjectGroups
|
|
@@ -11200,23 +11265,23 @@ var ProjectPage = () => {
|
|
|
11200
11265
|
withRoles: true
|
|
11201
11266
|
}),
|
|
11202
11267
|
{
|
|
11203
|
-
enabled: !!(organization == null ? void 0 : organization.id) && !!projectId && !isDeleteRoute
|
|
11204
|
-
select: (d) => {
|
|
11205
|
-
var _a, _b;
|
|
11206
|
-
return {
|
|
11207
|
-
groups: (_a = d == null ? void 0 : d.groups) != null ? _a : [],
|
|
11208
|
-
groupRoles: ((_b = d == null ? void 0 : d.rolePairs) != null ? _b : []).reduce((acc, gr) => {
|
|
11209
|
-
var _a2;
|
|
11210
|
-
const key = (_a2 = gr.groupId) != null ? _a2 : gr.group_id;
|
|
11211
|
-
if (key)
|
|
11212
|
-
acc[key] = gr.roles;
|
|
11213
|
-
return acc;
|
|
11214
|
-
}, {})
|
|
11215
|
-
};
|
|
11216
|
-
}
|
|
11268
|
+
enabled: !!(organization == null ? void 0 : organization.id) && !!projectId && !isDeleteRoute
|
|
11217
11269
|
}
|
|
11218
11270
|
);
|
|
11219
|
-
(0,
|
|
11271
|
+
const projectGroups = (0, import_react30.useMemo)(() => {
|
|
11272
|
+
var _a, _b;
|
|
11273
|
+
return {
|
|
11274
|
+
groups: (_a = projectGroupsData == null ? void 0 : projectGroupsData.groups) != null ? _a : [],
|
|
11275
|
+
groupRoles: ((_b = projectGroupsData == null ? void 0 : projectGroupsData.rolePairs) != null ? _b : []).reduce((acc, gr) => {
|
|
11276
|
+
var _a2;
|
|
11277
|
+
const key = (_a2 = gr.groupId) != null ? _a2 : gr.group_id;
|
|
11278
|
+
if (key)
|
|
11279
|
+
acc[key] = gr.roles;
|
|
11280
|
+
return acc;
|
|
11281
|
+
}, {})
|
|
11282
|
+
};
|
|
11283
|
+
}, [projectGroupsData]);
|
|
11284
|
+
(0, import_react30.useEffect)(() => {
|
|
11220
11285
|
if (projectGroupsError) {
|
|
11221
11286
|
import_apsara31.toast.error("Something went wrong", {
|
|
11222
11287
|
description: projectGroupsError.message
|
|
@@ -11224,7 +11289,7 @@ var ProjectPage = () => {
|
|
|
11224
11289
|
}
|
|
11225
11290
|
}, [projectGroupsError]);
|
|
11226
11291
|
const {
|
|
11227
|
-
data:
|
|
11292
|
+
data: projectUsersData,
|
|
11228
11293
|
isLoading: isMembersLoadingQuery,
|
|
11229
11294
|
refetch: refetchProjectUsers
|
|
11230
11295
|
} = (0, import_connect_query22.useQuery)(
|
|
@@ -11234,22 +11299,22 @@ var ProjectPage = () => {
|
|
|
11234
11299
|
withRoles: true
|
|
11235
11300
|
}),
|
|
11236
11301
|
{
|
|
11237
|
-
enabled: !!(organization == null ? void 0 : organization.id) && !!projectId && !isDeleteRoute
|
|
11238
|
-
select: (d) => {
|
|
11239
|
-
var _a, _b;
|
|
11240
|
-
return {
|
|
11241
|
-
users: (_a = d == null ? void 0 : d.users) != null ? _a : [],
|
|
11242
|
-
memberRoles: ((_b = d == null ? void 0 : d.rolePairs) != null ? _b : []).reduce((acc, mr) => {
|
|
11243
|
-
var _a2;
|
|
11244
|
-
const key = (_a2 = mr.userId) != null ? _a2 : mr.user_id;
|
|
11245
|
-
if (key)
|
|
11246
|
-
acc[key] = mr.roles;
|
|
11247
|
-
return acc;
|
|
11248
|
-
}, {})
|
|
11249
|
-
};
|
|
11250
|
-
}
|
|
11302
|
+
enabled: !!(organization == null ? void 0 : organization.id) && !!projectId && !isDeleteRoute
|
|
11251
11303
|
}
|
|
11252
11304
|
);
|
|
11305
|
+
const projectUsers = (0, import_react30.useMemo)(() => {
|
|
11306
|
+
var _a, _b;
|
|
11307
|
+
return {
|
|
11308
|
+
users: (_a = projectUsersData == null ? void 0 : projectUsersData.users) != null ? _a : [],
|
|
11309
|
+
memberRoles: ((_b = projectUsersData == null ? void 0 : projectUsersData.rolePairs) != null ? _b : []).reduce((acc, mr) => {
|
|
11310
|
+
var _a2;
|
|
11311
|
+
const key = (_a2 = mr.userId) != null ? _a2 : mr.user_id;
|
|
11312
|
+
if (key)
|
|
11313
|
+
acc[key] = mr.roles;
|
|
11314
|
+
return acc;
|
|
11315
|
+
}, {})
|
|
11316
|
+
};
|
|
11317
|
+
}, [projectUsersData]);
|
|
11253
11318
|
const {
|
|
11254
11319
|
data: project,
|
|
11255
11320
|
isLoading: isProjectLoadingQuery,
|
|
@@ -11262,13 +11327,13 @@ var ProjectPage = () => {
|
|
|
11262
11327
|
select: (d) => d == null ? void 0 : d.project
|
|
11263
11328
|
}
|
|
11264
11329
|
);
|
|
11265
|
-
(0,
|
|
11330
|
+
(0, import_react30.useEffect)(() => {
|
|
11266
11331
|
if (projectError) {
|
|
11267
11332
|
import_apsara31.toast.error("Something went wrong", { description: projectError.message });
|
|
11268
11333
|
}
|
|
11269
11334
|
}, [projectError]);
|
|
11270
11335
|
const {
|
|
11271
|
-
data:
|
|
11336
|
+
data: rolesData,
|
|
11272
11337
|
isLoading: isProjectRoleLoadingQuery,
|
|
11273
11338
|
error: rolesError
|
|
11274
11339
|
} = (0, import_connect_query22.useQuery)(
|
|
@@ -11278,20 +11343,20 @@ var ProjectPage = () => {
|
|
|
11278
11343
|
scopes: [PERMISSIONS.ProjectNamespace]
|
|
11279
11344
|
}),
|
|
11280
11345
|
{
|
|
11281
|
-
enabled: !!(organization == null ? void 0 : organization.id) && !!projectId && !isDeleteRoute
|
|
11282
|
-
select: (d) => {
|
|
11283
|
-
var _a;
|
|
11284
|
-
return (_a = d == null ? void 0 : d.roles) != null ? _a : [];
|
|
11285
|
-
}
|
|
11346
|
+
enabled: !!(organization == null ? void 0 : organization.id) && !!projectId && !isDeleteRoute
|
|
11286
11347
|
}
|
|
11287
11348
|
);
|
|
11288
|
-
(0,
|
|
11349
|
+
const roles = (0, import_react30.useMemo)(() => {
|
|
11350
|
+
var _a;
|
|
11351
|
+
return (_a = rolesData == null ? void 0 : rolesData.roles) != null ? _a : [];
|
|
11352
|
+
}, [rolesData]);
|
|
11353
|
+
(0, import_react30.useEffect)(() => {
|
|
11289
11354
|
if (rolesError) {
|
|
11290
11355
|
import_apsara31.toast.error("Something went wrong", { description: rolesError.message });
|
|
11291
11356
|
}
|
|
11292
11357
|
}, [rolesError]);
|
|
11293
11358
|
const isLoading = isProjectLoadingQuery || isTeamsLoading || isMembersLoadingQuery || isProjectRoleLoadingQuery;
|
|
11294
|
-
const refetchTeamAndMembers = (0,
|
|
11359
|
+
const refetchTeamAndMembers = (0, import_react30.useCallback)(() => {
|
|
11295
11360
|
refetchProjectUsers();
|
|
11296
11361
|
refetchProjectGroups();
|
|
11297
11362
|
}, [refetchProjectUsers, refetchProjectGroups]);
|
|
@@ -11350,14 +11415,14 @@ var ProjectPage = () => {
|
|
|
11350
11415
|
// react/components/organization/project/members/remove.tsx
|
|
11351
11416
|
var import_apsara32 = require("@raystack/apsara");
|
|
11352
11417
|
var import_react_router18 = require("@tanstack/react-router");
|
|
11353
|
-
var
|
|
11418
|
+
var import_react31 = require("react");
|
|
11354
11419
|
var import_connect_query23 = require("@connectrpc/connect-query");
|
|
11355
11420
|
var import_react_query6 = require("@tanstack/react-query");
|
|
11356
11421
|
var import_frontier26 = require("@raystack/proton/frontier");
|
|
11357
11422
|
var import_protobuf25 = require("@bufbuild/protobuf");
|
|
11358
11423
|
|
|
11359
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11360
|
-
var digest29 = "
|
|
11424
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-k53NI58UCvpP/core/react/components/organization/organization.module.css.js
|
|
11425
|
+
var digest29 = "0527687c319a6e0b431e93ffcecd937c96714e77ddd0ba0ad67752553d58946b";
|
|
11361
11426
|
var css29 = `._createContainer_ipia2_1 {
|
|
11362
11427
|
margin: auto;
|
|
11363
11428
|
width: 100%;
|
|
@@ -11420,18 +11485,19 @@ var RemoveProjectMember = () => {
|
|
|
11420
11485
|
const { projectId, memberId } = (0, import_react_router18.useParams)({
|
|
11421
11486
|
from: "/projects/$projectId/$membertype/$memberId/remove"
|
|
11422
11487
|
});
|
|
11423
|
-
const { data:
|
|
11488
|
+
const { data: policiesData, error: policiesError } = (0, import_connect_query23.useQuery)(
|
|
11424
11489
|
import_frontier26.FrontierServiceQueries.listPolicies,
|
|
11425
11490
|
(0, import_protobuf25.create)(import_frontier26.ListPoliciesRequestSchema, {
|
|
11426
11491
|
projectId: projectId || "",
|
|
11427
11492
|
userId: memberId || ""
|
|
11428
11493
|
}),
|
|
11429
|
-
{ enabled: !!projectId && !!memberId
|
|
11430
|
-
var _a;
|
|
11431
|
-
return (_a = d == null ? void 0 : d.policies) != null ? _a : [];
|
|
11432
|
-
} }
|
|
11494
|
+
{ enabled: !!projectId && !!memberId }
|
|
11433
11495
|
);
|
|
11434
|
-
(0,
|
|
11496
|
+
const policies = (0, import_react31.useMemo)(() => {
|
|
11497
|
+
var _a;
|
|
11498
|
+
return (_a = policiesData == null ? void 0 : policiesData.policies) != null ? _a : [];
|
|
11499
|
+
}, [policiesData]);
|
|
11500
|
+
(0, import_react31.useEffect)(() => {
|
|
11435
11501
|
if (policiesError) {
|
|
11436
11502
|
import_apsara32.toast.error("Something went wrong", { description: policiesError.message });
|
|
11437
11503
|
}
|
|
@@ -11534,14 +11600,14 @@ var RemoveProjectMember = () => {
|
|
|
11534
11600
|
|
|
11535
11601
|
// react/components/organization/security/index.tsx
|
|
11536
11602
|
var import_apsara33 = require("@raystack/apsara");
|
|
11537
|
-
var
|
|
11603
|
+
var import_react32 = require("react");
|
|
11538
11604
|
var import_connect_query24 = require("@connectrpc/connect-query");
|
|
11539
11605
|
var import_react_query7 = require("@tanstack/react-query");
|
|
11540
11606
|
var import_frontier27 = require("@raystack/proton/frontier");
|
|
11541
11607
|
var import_protobuf26 = require("@bufbuild/protobuf");
|
|
11542
11608
|
|
|
11543
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11544
|
-
var digest30 = "
|
|
11609
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-Q6MN15tYNgzU/core/react/components/organization/styles.module.css.js
|
|
11610
|
+
var digest30 = "60940d41e935c4c68d3375ce5b3294d4978c61b6bd822d74eee2eef2cd618707";
|
|
11545
11611
|
var css30 = `._header_11okm_1 {
|
|
11546
11612
|
margin-bottom: var(--rs-space-9);
|
|
11547
11613
|
}
|
|
@@ -11587,13 +11653,13 @@ var styles_module_css_default7 = { "header": "_header_11okm_1", "container": "_c
|
|
|
11587
11653
|
// react/components/organization/security/index.tsx
|
|
11588
11654
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
11589
11655
|
function WorkspaceSecurity() {
|
|
11590
|
-
const [socialLogin, setSocialLogin] = (0,
|
|
11591
|
-
const [mailLink, setMailLink] = (0,
|
|
11656
|
+
const [socialLogin, setSocialLogin] = (0, import_react32.useState)(false);
|
|
11657
|
+
const [mailLink, setMailLink] = (0, import_react32.useState)(false);
|
|
11592
11658
|
const { activeOrganization: organization } = useFrontier();
|
|
11593
11659
|
const queryClient2 = (0, import_react_query7.useQueryClient)();
|
|
11594
11660
|
const transport = (0, import_connect_query24.useTransport)();
|
|
11595
11661
|
const {
|
|
11596
|
-
data:
|
|
11662
|
+
data: preferencesData,
|
|
11597
11663
|
error: preferencesError
|
|
11598
11664
|
} = (0, import_connect_query24.useQuery)(
|
|
11599
11665
|
import_frontier27.FrontierServiceQueries.listOrganizationPreferences,
|
|
@@ -11601,14 +11667,14 @@ function WorkspaceSecurity() {
|
|
|
11601
11667
|
id: (organization == null ? void 0 : organization.id) || ""
|
|
11602
11668
|
}),
|
|
11603
11669
|
{
|
|
11604
|
-
enabled: !!(organization == null ? void 0 : organization.id)
|
|
11605
|
-
select: (d) => {
|
|
11606
|
-
var _a;
|
|
11607
|
-
return (_a = d == null ? void 0 : d.preferences) != null ? _a : [];
|
|
11608
|
-
}
|
|
11670
|
+
enabled: !!(organization == null ? void 0 : organization.id)
|
|
11609
11671
|
}
|
|
11610
11672
|
);
|
|
11611
|
-
(0,
|
|
11673
|
+
const preferences = (0, import_react32.useMemo)(() => {
|
|
11674
|
+
var _a;
|
|
11675
|
+
return (_a = preferencesData == null ? void 0 : preferencesData.preferences) != null ? _a : [];
|
|
11676
|
+
}, [preferencesData]);
|
|
11677
|
+
(0, import_react32.useEffect)(() => {
|
|
11612
11678
|
if (preferencesError) {
|
|
11613
11679
|
import_apsara33.toast.error("Something went wrong", {
|
|
11614
11680
|
description: preferencesError.message
|
|
@@ -11638,7 +11704,7 @@ function WorkspaceSecurity() {
|
|
|
11638
11704
|
}
|
|
11639
11705
|
}
|
|
11640
11706
|
);
|
|
11641
|
-
const preferencesMap = (0,
|
|
11707
|
+
const preferencesMap = (0, import_react32.useMemo)(() => {
|
|
11642
11708
|
return preferences.reduce(
|
|
11643
11709
|
(map, el) => {
|
|
11644
11710
|
if (el.name)
|
|
@@ -11648,7 +11714,7 @@ function WorkspaceSecurity() {
|
|
|
11648
11714
|
{}
|
|
11649
11715
|
);
|
|
11650
11716
|
}, [preferences]);
|
|
11651
|
-
(0,
|
|
11717
|
+
(0, import_react32.useEffect)(() => {
|
|
11652
11718
|
var _a, _b;
|
|
11653
11719
|
if (preferencesMap["social_login"])
|
|
11654
11720
|
setSocialLogin(((_a = preferencesMap["social_login"]) == null ? void 0 : _a.value) === "true");
|
|
@@ -11674,7 +11740,7 @@ function WorkspaceSecurity() {
|
|
|
11674
11740
|
})
|
|
11675
11741
|
);
|
|
11676
11742
|
};
|
|
11677
|
-
const listOfPermissionsToCheck = (0,
|
|
11743
|
+
const listOfPermissionsToCheck = (0, import_react32.useMemo)(
|
|
11678
11744
|
() => [
|
|
11679
11745
|
{
|
|
11680
11746
|
permission: PERMISSIONS.UpdatePermission,
|
|
@@ -11754,7 +11820,7 @@ var SecurityCheckbox = ({
|
|
|
11754
11820
|
// react/components/organization/sidebar/index.tsx
|
|
11755
11821
|
var import_apsara34 = require("@raystack/apsara");
|
|
11756
11822
|
var import_react_router19 = require("@tanstack/react-router");
|
|
11757
|
-
var
|
|
11823
|
+
var import_react33 = require("react");
|
|
11758
11824
|
|
|
11759
11825
|
// react/assets/organization.png
|
|
11760
11826
|
var organization_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAG9SURBVHgB7ZexTgJBEIZnTmLNG3hvACYWxkbeQH0CoRJpOBOhsDE0RsHEtYHrxCcQ3gA7Egt5hLOzkxeQdW6B3AJLYHANQvgSjmV2M/mZ3Z2ZA9iwZNBkPPeKLxJkHKziBL64y8AsATnPS/Zg+x3+AAdiu1Vx09FtW+OL3trtz739gw/SlqSftqIQ0D8t1cRtAyZEGfBFpU5fr2ANbNVEWZhmHFgyTAEy44syhh8aNzV7c2jvwfcJwyFbQBCNsau5+Yoc6nbLAnrgaIfSzjWNcRaT2oesV8gjYFwCJDUxabK7akS3Bxk+WQIIl0LvSuMUptQTeCz9FjAjIB/pMchkeA0qIoqA5kpqBeARReEY5oQroOGL+1Y4ynrFVCQAW3QF6337ZUCBnVvAam0BgpMfnnbiMJqRKbKn+2swIed3yRMg1d6iKbwu2Z8Ga1isWi1YQwHcTDhAzwdDVCY8BSYLCJB05yueYaJOvWRitEbMxuoWUCPLKsXWBSyCUcDZRSEPI4nmt0SJaqaAsC1HiWED6YI93DBR5byrifMxcQirQnSo0DyT6h2TJ0q1TZgCUm84LRNSleyOvxNs+Bf8AIhCerAOPpdcAAAAAElFTkSuQmCC";
|
|
@@ -11847,8 +11913,8 @@ var getUserNavItems = (options = {}) => {
|
|
|
11847
11913
|
);
|
|
11848
11914
|
};
|
|
11849
11915
|
|
|
11850
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11851
|
-
var digest31 = "
|
|
11916
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-SiYgf578HTsD/core/react/components/organization/sidebar/sidebar.module.css.js
|
|
11917
|
+
var digest31 = "443d3f36ab58334c9d47f07e7852c2cc2012459d7200cf07f4dd9ab4d5dba8f8";
|
|
11852
11918
|
var css31 = `._sidebarWrapper_1ik5g_1 {
|
|
11853
11919
|
box-sizing: border-box;
|
|
11854
11920
|
border-top-left-radius: var(--rs-radius-6);
|
|
@@ -11888,7 +11954,7 @@ var sidebar_module_css_default = { "sidebarWrapper": "_sidebarWrapper_1ik5g_1",
|
|
|
11888
11954
|
// react/components/organization/sidebar/index.tsx
|
|
11889
11955
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
11890
11956
|
var Sidebar = () => {
|
|
11891
|
-
const [search, setSearch] = (0,
|
|
11957
|
+
const [search, setSearch] = (0, import_react33.useState)("");
|
|
11892
11958
|
const routerState = (0, import_react_router19.useRouterState)();
|
|
11893
11959
|
const t = useTerminology();
|
|
11894
11960
|
const {
|
|
@@ -11901,12 +11967,12 @@ var Sidebar = () => {
|
|
|
11901
11967
|
} = (0, import_react_router19.useRouteContext)({
|
|
11902
11968
|
from: "__root__"
|
|
11903
11969
|
});
|
|
11904
|
-
const isActive = (0,
|
|
11970
|
+
const isActive = (0, import_react33.useCallback)(
|
|
11905
11971
|
(path) => path.length > 2 ? routerState.location.pathname.includes(path) : routerState.location.pathname === path,
|
|
11906
11972
|
[routerState.location.pathname]
|
|
11907
11973
|
);
|
|
11908
11974
|
const resource = `app/organization:${organizationId}`;
|
|
11909
|
-
const listOfPermissionsToCheck = (0,
|
|
11975
|
+
const listOfPermissionsToCheck = (0, import_react33.useMemo)(
|
|
11910
11976
|
() => [
|
|
11911
11977
|
{
|
|
11912
11978
|
permission: PERMISSIONS.UpdatePermission,
|
|
@@ -11919,7 +11985,7 @@ var Sidebar = () => {
|
|
|
11919
11985
|
listOfPermissionsToCheck,
|
|
11920
11986
|
!!organizationId
|
|
11921
11987
|
);
|
|
11922
|
-
const { canSeeBilling } = (0,
|
|
11988
|
+
const { canSeeBilling } = (0, import_react33.useMemo)(() => {
|
|
11923
11989
|
return {
|
|
11924
11990
|
canSeeBilling: shouldShowComponent(
|
|
11925
11991
|
permissions,
|
|
@@ -11927,7 +11993,7 @@ var Sidebar = () => {
|
|
|
11927
11993
|
)
|
|
11928
11994
|
};
|
|
11929
11995
|
}, [permissions, resource]);
|
|
11930
|
-
const organizationNavItems = (0,
|
|
11996
|
+
const organizationNavItems = (0, import_react33.useMemo)(
|
|
11931
11997
|
() => getOrganizationNavItems({
|
|
11932
11998
|
showBilling,
|
|
11933
11999
|
canSeeBilling,
|
|
@@ -11943,7 +12009,7 @@ var Sidebar = () => {
|
|
|
11943
12009
|
customRoutes.Organization
|
|
11944
12010
|
]
|
|
11945
12011
|
);
|
|
11946
|
-
const userNavItems = (0,
|
|
12012
|
+
const userNavItems = (0, import_react33.useMemo)(
|
|
11947
12013
|
() => getUserNavItems({
|
|
11948
12014
|
showPreferences,
|
|
11949
12015
|
customRoutes: customRoutes.User
|
|
@@ -12067,7 +12133,7 @@ var Sidebar = () => {
|
|
|
12067
12133
|
};
|
|
12068
12134
|
|
|
12069
12135
|
// react/components/organization/teams/index.tsx
|
|
12070
|
-
var
|
|
12136
|
+
var import_react34 = require("react");
|
|
12071
12137
|
var import_apsara36 = require("@raystack/apsara");
|
|
12072
12138
|
var import_react_router21 = require("@tanstack/react-router");
|
|
12073
12139
|
|
|
@@ -12075,8 +12141,8 @@ var import_react_router21 = require("@tanstack/react-router");
|
|
|
12075
12141
|
var import_apsara35 = require("@raystack/apsara");
|
|
12076
12142
|
var import_react_router20 = require("@tanstack/react-router");
|
|
12077
12143
|
|
|
12078
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12079
|
-
var digest32 = "
|
|
12144
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-jMQaRD5JlZaF/core/react/components/organization/organization.module.css.js
|
|
12145
|
+
var digest32 = "463a2ecf0155cce26c43ac89260f214dbc2a4186b878bf7a57214df844f1528c";
|
|
12080
12146
|
var css32 = `._createContainer_ipia2_1 {
|
|
12081
12147
|
margin: auto;
|
|
12082
12148
|
width: 100%;
|
|
@@ -12217,8 +12283,8 @@ var TeamActions = ({
|
|
|
12217
12283
|
] }) : null;
|
|
12218
12284
|
};
|
|
12219
12285
|
|
|
12220
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12221
|
-
var digest33 = "
|
|
12286
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-oldZAa5psf1a/core/react/components/organization/styles.module.css.js
|
|
12287
|
+
var digest33 = "41dd0d35bde45c64696a1e745ec3121582bc8ea93cc9f7a27ae21f55ac8e5cda";
|
|
12222
12288
|
var css33 = `._header_11okm_1 {
|
|
12223
12289
|
margin-bottom: var(--rs-space-9);
|
|
12224
12290
|
}
|
|
@@ -12261,8 +12327,8 @@ var css33 = `._header_11okm_1 {
|
|
|
12261
12327
|
})();
|
|
12262
12328
|
var styles_module_css_default8 = { "header": "_header_11okm_1", "container": "_container_11okm_5", "containerFlex": "_containerFlex_11okm_10", "contentWrapper": "_contentWrapper_11okm_18", "pageWrapper": "_pageWrapper_11okm_24" };
|
|
12263
12329
|
|
|
12264
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12265
|
-
var digest34 = "
|
|
12330
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-CWGyHTLMeA4K/core/react/components/organization/teams/teams.module.css.js
|
|
12331
|
+
var digest34 = "da4d7e68e01687a156e92b56f74cc5657e1cf5fe1845d634bcd19b2f68aa673f";
|
|
12266
12332
|
var css34 = `._tableWrapper_1dq1l_1 {
|
|
12267
12333
|
display: flex;
|
|
12268
12334
|
flex-direction: column;
|
|
@@ -12311,9 +12377,10 @@ var teamsSelectOptions = [
|
|
|
12311
12377
|
{ value: "all-teams", label: "All Teams" }
|
|
12312
12378
|
];
|
|
12313
12379
|
function WorkspaceTeams() {
|
|
12314
|
-
const [showOrgTeams, setShowOrgTeams] = (0,
|
|
12380
|
+
const [showOrgTeams, setShowOrgTeams] = (0, import_react34.useState)(false);
|
|
12381
|
+
const t = useTerminology();
|
|
12315
12382
|
const routerState = (0, import_react_router21.useRouterState)();
|
|
12316
|
-
const isListRoute = (0,
|
|
12383
|
+
const isListRoute = (0, import_react34.useMemo)(() => {
|
|
12317
12384
|
return routerState.location.pathname === "/teams";
|
|
12318
12385
|
}, [routerState.location.pathname]);
|
|
12319
12386
|
const {
|
|
@@ -12328,7 +12395,7 @@ function WorkspaceTeams() {
|
|
|
12328
12395
|
});
|
|
12329
12396
|
const { activeOrganization: organization } = useFrontier();
|
|
12330
12397
|
const resource = `app/organization:${organization == null ? void 0 : organization.id}`;
|
|
12331
|
-
const listOfPermissionsToCheck = (0,
|
|
12398
|
+
const listOfPermissionsToCheck = (0, import_react34.useMemo)(
|
|
12332
12399
|
() => [
|
|
12333
12400
|
{
|
|
12334
12401
|
permission: PERMISSIONS.GroupCreatePermission,
|
|
@@ -12345,7 +12412,7 @@ function WorkspaceTeams() {
|
|
|
12345
12412
|
listOfPermissionsToCheck,
|
|
12346
12413
|
!!(organization == null ? void 0 : organization.id)
|
|
12347
12414
|
);
|
|
12348
|
-
const { canCreateGroup, canListOrgGroups } = (0,
|
|
12415
|
+
const { canCreateGroup, canListOrgGroups } = (0, import_react34.useMemo)(() => {
|
|
12349
12416
|
return {
|
|
12350
12417
|
canCreateGroup: shouldShowComponent(
|
|
12351
12418
|
permissions,
|
|
@@ -12357,40 +12424,66 @@ function WorkspaceTeams() {
|
|
|
12357
12424
|
)
|
|
12358
12425
|
};
|
|
12359
12426
|
}, [permissions, resource]);
|
|
12360
|
-
const onOrgTeamsFilterChange = (0,
|
|
12427
|
+
const onOrgTeamsFilterChange = (0, import_react34.useCallback)((value) => {
|
|
12361
12428
|
if (value === "all-teams") {
|
|
12362
12429
|
setShowOrgTeams(true);
|
|
12363
12430
|
} else {
|
|
12364
12431
|
setShowOrgTeams(false);
|
|
12365
12432
|
}
|
|
12366
12433
|
}, []);
|
|
12367
|
-
(0,
|
|
12434
|
+
(0, import_react34.useEffect)(() => {
|
|
12368
12435
|
if (isListRoute) {
|
|
12369
12436
|
refetch();
|
|
12370
12437
|
}
|
|
12371
12438
|
}, [isListRoute, refetch, routerState.location.state.key]);
|
|
12372
12439
|
const isLoading = isPermissionsFetching || isTeamsLoading;
|
|
12373
12440
|
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_apsara36.Flex, { direction: "column", className: styles_module_css_default8.pageWrapper, children: [
|
|
12374
|
-
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
12375
|
-
|
|
12376
|
-
|
|
12377
|
-
|
|
12378
|
-
|
|
12379
|
-
|
|
12380
|
-
|
|
12381
|
-
|
|
12382
|
-
|
|
12383
|
-
|
|
12384
|
-
|
|
12385
|
-
|
|
12386
|
-
|
|
12387
|
-
|
|
12388
|
-
|
|
12389
|
-
|
|
12390
|
-
|
|
12391
|
-
|
|
12392
|
-
|
|
12393
|
-
|
|
12441
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
12442
|
+
import_apsara36.Flex,
|
|
12443
|
+
{
|
|
12444
|
+
direction: "column",
|
|
12445
|
+
className: `${styles_module_css_default8.container} ${styles_module_css_default8.containerFlex}`,
|
|
12446
|
+
children: [
|
|
12447
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
12448
|
+
import_apsara36.Flex,
|
|
12449
|
+
{
|
|
12450
|
+
direction: "row",
|
|
12451
|
+
justify: "between",
|
|
12452
|
+
align: "center",
|
|
12453
|
+
className: styles_module_css_default8.header,
|
|
12454
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
12455
|
+
PageHeader,
|
|
12456
|
+
{
|
|
12457
|
+
title: "Teams",
|
|
12458
|
+
description: `Manage teams in this ${t.organization({
|
|
12459
|
+
case: "lower"
|
|
12460
|
+
})}.`
|
|
12461
|
+
}
|
|
12462
|
+
)
|
|
12463
|
+
}
|
|
12464
|
+
),
|
|
12465
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
12466
|
+
import_apsara36.Flex,
|
|
12467
|
+
{
|
|
12468
|
+
direction: "column",
|
|
12469
|
+
gap: 9,
|
|
12470
|
+
className: styles_module_css_default8.contentWrapper,
|
|
12471
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
12472
|
+
TeamsTable,
|
|
12473
|
+
{
|
|
12474
|
+
teams,
|
|
12475
|
+
isLoading,
|
|
12476
|
+
canCreateGroup,
|
|
12477
|
+
userAccessOnTeam,
|
|
12478
|
+
canListOrgGroups,
|
|
12479
|
+
onOrgTeamsFilterChange
|
|
12480
|
+
}
|
|
12481
|
+
)
|
|
12482
|
+
}
|
|
12483
|
+
)
|
|
12484
|
+
]
|
|
12485
|
+
}
|
|
12486
|
+
),
|
|
12394
12487
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react_router21.Outlet, {})
|
|
12395
12488
|
] });
|
|
12396
12489
|
}
|
|
@@ -12403,7 +12496,7 @@ var TeamsTable = ({
|
|
|
12403
12496
|
onOrgTeamsFilterChange
|
|
12404
12497
|
}) => {
|
|
12405
12498
|
const navigate = (0, import_react_router21.useNavigate)({ from: "/teams" });
|
|
12406
|
-
const columns = (0,
|
|
12499
|
+
const columns = (0, import_react34.useMemo)(
|
|
12407
12500
|
() => getColumns5(userAccessOnTeam),
|
|
12408
12501
|
[userAccessOnTeam]
|
|
12409
12502
|
);
|
|
@@ -12481,8 +12574,8 @@ var import_connect_query25 = require("@connectrpc/connect-query");
|
|
|
12481
12574
|
var import_frontier28 = require("@raystack/proton/frontier");
|
|
12482
12575
|
var import_protobuf27 = require("@bufbuild/protobuf");
|
|
12483
12576
|
|
|
12484
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12485
|
-
var digest35 = "
|
|
12577
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-sa4mJBy5ob5o/core/react/components/organization/organization.module.css.js
|
|
12578
|
+
var digest35 = "b79d2f9bb44445bf9c3533177deab17af58bc83918795f7cb74b8ca2a7db1fbc";
|
|
12486
12579
|
var css35 = `._createContainer_ipia2_1 {
|
|
12487
12580
|
margin: auto;
|
|
12488
12581
|
width: 100%;
|
|
@@ -12641,15 +12734,15 @@ var AddTeam = () => {
|
|
|
12641
12734
|
var import_apsara38 = require("@raystack/apsara");
|
|
12642
12735
|
var import_yup13 = require("@hookform/resolvers/yup");
|
|
12643
12736
|
var import_react_router23 = require("@tanstack/react-router");
|
|
12644
|
-
var
|
|
12737
|
+
var import_react35 = require("react");
|
|
12645
12738
|
var import_react_hook_form13 = require("react-hook-form");
|
|
12646
12739
|
var yup13 = __toESM(require("yup"));
|
|
12647
12740
|
var import_connect_query26 = require("@connectrpc/connect-query");
|
|
12648
12741
|
var import_frontier29 = require("@raystack/proton/frontier");
|
|
12649
12742
|
var import_protobuf28 = require("@bufbuild/protobuf");
|
|
12650
12743
|
|
|
12651
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12652
|
-
var digest36 = "
|
|
12744
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-cWNS4rBLEnEz/core/react/components/organization/organization.module.css.js
|
|
12745
|
+
var digest36 = "5b02e01839e566fac82e79a1abf0c2815584470bc11012537460b670089ab682";
|
|
12653
12746
|
var css36 = `._createContainer_ipia2_1 {
|
|
12654
12747
|
margin: auto;
|
|
12655
12748
|
width: 100%;
|
|
@@ -12704,7 +12797,7 @@ var organization_module_css_default10 = { "createContainer": "_createContainer_i
|
|
|
12704
12797
|
// react/components/organization/teams/delete.tsx
|
|
12705
12798
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
12706
12799
|
var teamSchema2 = yup13.object({
|
|
12707
|
-
|
|
12800
|
+
title: yup13.string()
|
|
12708
12801
|
}).required();
|
|
12709
12802
|
var DeleteTeam = () => {
|
|
12710
12803
|
var _a;
|
|
@@ -12719,7 +12812,7 @@ var DeleteTeam = () => {
|
|
|
12719
12812
|
});
|
|
12720
12813
|
let { teamId } = (0, import_react_router23.useParams)({ from: `/teams/$teamId/delete` });
|
|
12721
12814
|
const navigate = (0, import_react_router23.useNavigate)();
|
|
12722
|
-
const [isAcknowledged, setIsAcknowledged] = (0,
|
|
12815
|
+
const [isAcknowledged, setIsAcknowledged] = (0, import_react35.useState)(false);
|
|
12723
12816
|
const { activeOrganization: organization } = useFrontier();
|
|
12724
12817
|
const { data: teamData, isLoading: isTeamLoading, error: teamError } = (0, import_connect_query26.useQuery)(
|
|
12725
12818
|
import_frontier29.FrontierServiceQueries.getGroup,
|
|
@@ -12727,7 +12820,7 @@ var DeleteTeam = () => {
|
|
|
12727
12820
|
{ enabled: !!(organization == null ? void 0 : organization.id) && !!teamId }
|
|
12728
12821
|
);
|
|
12729
12822
|
const team = teamData == null ? void 0 : teamData.group;
|
|
12730
|
-
(0,
|
|
12823
|
+
(0, import_react35.useEffect)(() => {
|
|
12731
12824
|
if (teamError) {
|
|
12732
12825
|
import_apsara38.toast.error("Something went wrong", {
|
|
12733
12826
|
description: teamError.message
|
|
@@ -12750,15 +12843,15 @@ var DeleteTeam = () => {
|
|
|
12750
12843
|
return;
|
|
12751
12844
|
if (!teamId)
|
|
12752
12845
|
return;
|
|
12753
|
-
if (data.
|
|
12754
|
-
return setError("
|
|
12846
|
+
if (data.title !== (team == null ? void 0 : team.title))
|
|
12847
|
+
return setError("title", { message: "Team title does not match" });
|
|
12755
12848
|
const request = (0, import_protobuf28.create)(import_frontier29.DeleteGroupRequestSchema, {
|
|
12756
12849
|
id: teamId,
|
|
12757
12850
|
orgId: organization.id
|
|
12758
12851
|
});
|
|
12759
12852
|
deleteTeamMutation.mutate(request);
|
|
12760
12853
|
}
|
|
12761
|
-
const
|
|
12854
|
+
const title = watch("title", "");
|
|
12762
12855
|
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_apsara38.Dialog, { open: true, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
12763
12856
|
import_apsara38.Dialog.Content,
|
|
12764
12857
|
{
|
|
@@ -12798,11 +12891,11 @@ var DeleteTeam = () => {
|
|
|
12798
12891
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
12799
12892
|
import_apsara38.InputField,
|
|
12800
12893
|
__spreadProps(__spreadValues({
|
|
12801
|
-
label: "Please
|
|
12894
|
+
label: "Please enter the title of the team to confirm.",
|
|
12802
12895
|
size: "large",
|
|
12803
|
-
error: errors.
|
|
12804
|
-
}, register("
|
|
12805
|
-
placeholder: "
|
|
12896
|
+
error: errors.title && String((_a = errors.title) == null ? void 0 : _a.message)
|
|
12897
|
+
}, register("title")), {
|
|
12898
|
+
placeholder: "Enter the team title"
|
|
12806
12899
|
})
|
|
12807
12900
|
),
|
|
12808
12901
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_apsara38.Flex, { gap: "small", children: [
|
|
@@ -12814,14 +12907,14 @@ var DeleteTeam = () => {
|
|
|
12814
12907
|
"data-test-id": "frontier-sdk-delete-team-checkbox"
|
|
12815
12908
|
}
|
|
12816
12909
|
),
|
|
12817
|
-
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_apsara38.Text, { size: 2, children: "I acknowledge that all of the team data will be deleted and want to proceed." })
|
|
12910
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_apsara38.Text, { size: 2, children: "I acknowledge and understand that all of the team data will be deleted and want to proceed." })
|
|
12818
12911
|
] }),
|
|
12819
12912
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
12820
12913
|
import_apsara38.Button,
|
|
12821
12914
|
{
|
|
12822
12915
|
variant: "solid",
|
|
12823
12916
|
color: "danger",
|
|
12824
|
-
disabled: !
|
|
12917
|
+
disabled: !title || !isAcknowledged,
|
|
12825
12918
|
type: "submit",
|
|
12826
12919
|
style: { width: "100%" },
|
|
12827
12920
|
"data-test-id": "frontier-sdk-delete-team-btn-general",
|
|
@@ -12837,7 +12930,7 @@ var DeleteTeam = () => {
|
|
|
12837
12930
|
};
|
|
12838
12931
|
|
|
12839
12932
|
// react/components/organization/teams/team.tsx
|
|
12840
|
-
var
|
|
12933
|
+
var import_react38 = require("react");
|
|
12841
12934
|
var import_apsara42 = require("@raystack/apsara");
|
|
12842
12935
|
var import_react_router27 = require("@tanstack/react-router");
|
|
12843
12936
|
|
|
@@ -12845,7 +12938,7 @@ var import_react_router27 = require("@tanstack/react-router");
|
|
|
12845
12938
|
var import_apsara39 = require("@raystack/apsara");
|
|
12846
12939
|
var import_yup14 = require("@hookform/resolvers/yup");
|
|
12847
12940
|
var import_react_router24 = require("@tanstack/react-router");
|
|
12848
|
-
var
|
|
12941
|
+
var import_react36 = require("react");
|
|
12849
12942
|
var import_react_hook_form14 = require("react-hook-form");
|
|
12850
12943
|
var yup14 = __toESM(require("yup"));
|
|
12851
12944
|
var import_connect_query27 = require("@connectrpc/connect-query");
|
|
@@ -12871,11 +12964,11 @@ var General2 = ({
|
|
|
12871
12964
|
resolver: (0, import_yup14.yupResolver)(teamSchema3)
|
|
12872
12965
|
});
|
|
12873
12966
|
let { teamId } = (0, import_react_router24.useParams)({ from: "/teams/$teamId" });
|
|
12874
|
-
(0,
|
|
12967
|
+
(0, import_react36.useEffect)(() => {
|
|
12875
12968
|
reset(team);
|
|
12876
12969
|
}, [reset, team]);
|
|
12877
12970
|
const resource = `app/group:${teamId}`;
|
|
12878
|
-
const listOfPermissionsToCheck = (0,
|
|
12971
|
+
const listOfPermissionsToCheck = (0, import_react36.useMemo)(
|
|
12879
12972
|
() => [
|
|
12880
12973
|
{
|
|
12881
12974
|
permission: PERMISSIONS.UpdatePermission,
|
|
@@ -12892,7 +12985,7 @@ var General2 = ({
|
|
|
12892
12985
|
listOfPermissionsToCheck,
|
|
12893
12986
|
!!teamId
|
|
12894
12987
|
);
|
|
12895
|
-
const { canUpdateGroup, canDeleteGroup } = (0,
|
|
12988
|
+
const { canUpdateGroup, canDeleteGroup } = (0, import_react36.useMemo)(() => {
|
|
12896
12989
|
return {
|
|
12897
12990
|
canUpdateGroup: shouldShowComponent(
|
|
12898
12991
|
permissions,
|
|
@@ -13013,7 +13106,7 @@ var GeneralDeleteTeam = ({
|
|
|
13013
13106
|
// react/components/organization/teams/members/index.tsx
|
|
13014
13107
|
var import_apsara41 = require("@raystack/apsara");
|
|
13015
13108
|
var import_react_router26 = require("@tanstack/react-router");
|
|
13016
|
-
var
|
|
13109
|
+
var import_react37 = require("react");
|
|
13017
13110
|
|
|
13018
13111
|
// react/components/organization/teams/members/member.columns.tsx
|
|
13019
13112
|
var import_react_router25 = require("@tanstack/react-router");
|
|
@@ -13220,8 +13313,8 @@ var import_connect_query29 = require("@connectrpc/connect-query");
|
|
|
13220
13313
|
var import_frontier32 = require("@raystack/proton/frontier");
|
|
13221
13314
|
var import_protobuf31 = require("@bufbuild/protobuf");
|
|
13222
13315
|
|
|
13223
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13224
|
-
var digest37 = "
|
|
13316
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-ghaxwqRJ0gQX/core/react/components/organization/teams/members/members.module.css.js
|
|
13317
|
+
var digest37 = "9985670845c24291ea33a3329c4002c68b12ac785bf3c32a0abc50baa14006e8";
|
|
13225
13318
|
var css37 = `._inviteDropdownItem_srd80_1 {
|
|
13226
13319
|
padding: var(--rs-space-3);
|
|
13227
13320
|
user-select: none;
|
|
@@ -13301,7 +13394,7 @@ var Members2 = ({
|
|
|
13301
13394
|
}) => {
|
|
13302
13395
|
const { teamId } = (0, import_react_router26.useParams)({ from: "/teams/$teamId" });
|
|
13303
13396
|
const resource = `app/group:${teamId}`;
|
|
13304
|
-
const listOfPermissionsToCheck = (0,
|
|
13397
|
+
const listOfPermissionsToCheck = (0, import_react37.useMemo)(
|
|
13305
13398
|
() => [
|
|
13306
13399
|
{
|
|
13307
13400
|
permission: PERMISSIONS.UpdatePermission,
|
|
@@ -13314,7 +13407,7 @@ var Members2 = ({
|
|
|
13314
13407
|
listOfPermissionsToCheck,
|
|
13315
13408
|
!!teamId
|
|
13316
13409
|
);
|
|
13317
|
-
const { canUpdateGroup } = (0,
|
|
13410
|
+
const { canUpdateGroup } = (0, import_react37.useMemo)(() => {
|
|
13318
13411
|
return {
|
|
13319
13412
|
canUpdateGroup: shouldShowComponent(
|
|
13320
13413
|
permissions,
|
|
@@ -13323,7 +13416,7 @@ var Members2 = ({
|
|
|
13323
13416
|
};
|
|
13324
13417
|
}, [permissions, resource]);
|
|
13325
13418
|
const isLoading = isPermissionsFetching || isMemberLoading;
|
|
13326
|
-
const columns = (0,
|
|
13419
|
+
const columns = (0, import_react37.useMemo)(
|
|
13327
13420
|
() => getColumns6({
|
|
13328
13421
|
roles,
|
|
13329
13422
|
organizationId,
|
|
@@ -13387,26 +13480,26 @@ var AddMemberDropdown2 = ({
|
|
|
13387
13480
|
members
|
|
13388
13481
|
}) => {
|
|
13389
13482
|
let { teamId } = (0, import_react_router26.useParams)({ from: "/teams/$teamId" });
|
|
13390
|
-
const [query, setQuery] = (0,
|
|
13483
|
+
const [query, setQuery] = (0, import_react37.useState)("");
|
|
13391
13484
|
const { activeOrganization: organization } = useFrontier();
|
|
13392
13485
|
const { data: orgMembersData, isLoading: isOrgMembersLoading, error: orgMembersError } = (0, import_connect_query29.useQuery)(
|
|
13393
13486
|
import_frontier32.FrontierServiceQueries.listOrganizationUsers,
|
|
13394
13487
|
(0, import_protobuf31.create)(import_frontier32.ListOrganizationUsersRequestSchema, { id: (organization == null ? void 0 : organization.id) || "" }),
|
|
13395
13488
|
{ enabled: !!(organization == null ? void 0 : organization.id) && canUpdateGroup }
|
|
13396
13489
|
);
|
|
13397
|
-
(0,
|
|
13490
|
+
(0, import_react37.useEffect)(() => {
|
|
13398
13491
|
if (orgMembersError) {
|
|
13399
13492
|
import_apsara41.toast.error("Something went wrong", {
|
|
13400
13493
|
description: orgMembersError.message
|
|
13401
13494
|
});
|
|
13402
13495
|
}
|
|
13403
13496
|
}, [orgMembersError]);
|
|
13404
|
-
const invitableUser = (0,
|
|
13497
|
+
const invitableUser = (0, import_react37.useMemo)(
|
|
13405
13498
|
() => filterUsersfromUsers((orgMembersData == null ? void 0 : orgMembersData.users) || [], members) || [],
|
|
13406
13499
|
[orgMembersData == null ? void 0 : orgMembersData.users, members]
|
|
13407
13500
|
);
|
|
13408
13501
|
const isUserLoading = isOrgMembersLoading;
|
|
13409
|
-
const topUsers = (0,
|
|
13502
|
+
const topUsers = (0, import_react37.useMemo)(
|
|
13410
13503
|
() => invitableUser.filter(
|
|
13411
13504
|
(user) => query ? user.title && user.title.toLowerCase().includes(query.toLowerCase()) : true
|
|
13412
13505
|
).slice(0, 7),
|
|
@@ -13428,7 +13521,7 @@ var AddMemberDropdown2 = ({
|
|
|
13428
13521
|
});
|
|
13429
13522
|
}
|
|
13430
13523
|
});
|
|
13431
|
-
const addMember = (0,
|
|
13524
|
+
const addMember = (0, import_react37.useCallback)(
|
|
13432
13525
|
(userId) => {
|
|
13433
13526
|
if (!userId || !(organization == null ? void 0 : organization.id))
|
|
13434
13527
|
return;
|
|
@@ -13531,8 +13624,8 @@ var import_connect_query30 = require("@connectrpc/connect-query");
|
|
|
13531
13624
|
var import_frontier33 = require("@raystack/proton/frontier");
|
|
13532
13625
|
var import_protobuf32 = require("@bufbuild/protobuf");
|
|
13533
13626
|
|
|
13534
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13535
|
-
var digest38 = "
|
|
13627
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-mAAw378UVP4s/core/react/components/organization/styles.module.css.js
|
|
13628
|
+
var digest38 = "5dbe85569f044256cda64886fd482f88763059ad3d24937ce797ea884e3e0fed";
|
|
13536
13629
|
var css38 = `._header_11okm_1 {
|
|
13537
13630
|
margin-bottom: var(--rs-space-9);
|
|
13538
13631
|
}
|
|
@@ -13575,8 +13668,8 @@ var css38 = `._header_11okm_1 {
|
|
|
13575
13668
|
})();
|
|
13576
13669
|
var styles_module_css_default9 = { "header": "_header_11okm_1", "container": "_container_11okm_5", "containerFlex": "_containerFlex_11okm_10", "contentWrapper": "_contentWrapper_11okm_18", "pageWrapper": "_pageWrapper_11okm_24" };
|
|
13577
13670
|
|
|
13578
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13579
|
-
var digest39 = "
|
|
13671
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-31ONN4km7n1S/core/react/components/organization/teams/teams.module.css.js
|
|
13672
|
+
var digest39 = "58559bbe01ec1f51bc1fab1b9ae4e5f76ba1c535bf1cd70b3f4f02e705bab4e6";
|
|
13580
13673
|
var css39 = `._tableWrapper_1dq1l_1 {
|
|
13581
13674
|
display: flex;
|
|
13582
13675
|
flex-direction: column;
|
|
@@ -13625,7 +13718,7 @@ var TeamPage = () => {
|
|
|
13625
13718
|
const { activeOrganization: organization } = useFrontier();
|
|
13626
13719
|
let navigate = (0, import_react_router27.useNavigate)({ from: "/teams/$teamId" });
|
|
13627
13720
|
const routerState = (0, import_react_router27.useRouterState)();
|
|
13628
|
-
const isDeleteRoute = (0,
|
|
13721
|
+
const isDeleteRoute = (0, import_react38.useMemo)(() => {
|
|
13629
13722
|
return routerState.matches.some(
|
|
13630
13723
|
(route) => route.routeId === "/teams/$teamId/delete"
|
|
13631
13724
|
);
|
|
@@ -13636,7 +13729,7 @@ var TeamPage = () => {
|
|
|
13636
13729
|
{ enabled: !!(organization == null ? void 0 : organization.id) && !!teamId && !isDeleteRoute }
|
|
13637
13730
|
);
|
|
13638
13731
|
const team = teamData == null ? void 0 : teamData.group;
|
|
13639
|
-
(0,
|
|
13732
|
+
(0, import_react38.useEffect)(() => {
|
|
13640
13733
|
if (teamError) {
|
|
13641
13734
|
import_apsara42.toast.error("Something went wrong", {
|
|
13642
13735
|
description: teamError.message
|
|
@@ -13649,14 +13742,14 @@ var TeamPage = () => {
|
|
|
13649
13742
|
{ enabled: !!(organization == null ? void 0 : organization.id) && !!teamId && !isDeleteRoute }
|
|
13650
13743
|
);
|
|
13651
13744
|
const members = (membersData == null ? void 0 : membersData.users) || [];
|
|
13652
|
-
const memberRoles = (0,
|
|
13745
|
+
const memberRoles = (0, import_react38.useMemo)(() => {
|
|
13653
13746
|
if (!(membersData == null ? void 0 : membersData.rolePairs))
|
|
13654
13747
|
return {};
|
|
13655
13748
|
return membersData.rolePairs.reduce((previous, mr) => {
|
|
13656
13749
|
return __spreadProps(__spreadValues({}, previous), { [mr.userId]: mr.roles });
|
|
13657
13750
|
}, {});
|
|
13658
13751
|
}, [membersData == null ? void 0 : membersData.rolePairs]);
|
|
13659
|
-
(0,
|
|
13752
|
+
(0, import_react38.useEffect)(() => {
|
|
13660
13753
|
if (membersError) {
|
|
13661
13754
|
import_apsara42.toast.error("Something went wrong", {
|
|
13662
13755
|
description: membersError.message
|
|
@@ -13669,7 +13762,7 @@ var TeamPage = () => {
|
|
|
13669
13762
|
{ enabled: !!(organization == null ? void 0 : organization.id) && !!teamId && !isDeleteRoute }
|
|
13670
13763
|
);
|
|
13671
13764
|
const roles = (rolesData == null ? void 0 : rolesData.roles) || [];
|
|
13672
|
-
(0,
|
|
13765
|
+
(0, import_react38.useEffect)(() => {
|
|
13673
13766
|
if (rolesError) {
|
|
13674
13767
|
import_apsara42.toast.error("Something went wrong", {
|
|
13675
13768
|
description: rolesError.message
|
|
@@ -13732,7 +13825,7 @@ var import_apsara44 = require("@raystack/apsara");
|
|
|
13732
13825
|
|
|
13733
13826
|
// react/components/organization/user/update.tsx
|
|
13734
13827
|
var import_yup15 = require("@hookform/resolvers/yup");
|
|
13735
|
-
var
|
|
13828
|
+
var import_react39 = require("react");
|
|
13736
13829
|
var import_react_hook_form15 = require("react-hook-form");
|
|
13737
13830
|
var import_apsara43 = require("@raystack/apsara");
|
|
13738
13831
|
var yup15 = __toESM(require("yup"));
|
|
@@ -13770,7 +13863,7 @@ var UpdateProfile = () => {
|
|
|
13770
13863
|
} = (0, import_react_hook_form15.useForm)({
|
|
13771
13864
|
resolver: (0, import_yup15.yupResolver)(generalSchema2)
|
|
13772
13865
|
});
|
|
13773
|
-
(0,
|
|
13866
|
+
(0, import_react39.useEffect)(() => {
|
|
13774
13867
|
reset(user, { keepDirtyValues: true });
|
|
13775
13868
|
}, [user, reset]);
|
|
13776
13869
|
function onSubmit(data) {
|
|
@@ -13858,8 +13951,8 @@ var UpdateProfile = () => {
|
|
|
13858
13951
|
] }) });
|
|
13859
13952
|
};
|
|
13860
13953
|
|
|
13861
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13862
|
-
var digest40 = "
|
|
13954
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-kRH6cOi7SM2D/core/react/components/organization/styles.module.css.js
|
|
13955
|
+
var digest40 = "864b90813636290cd84cd09339b611bc16cd8bdab7652d551568758bc106d2a4";
|
|
13863
13956
|
var css40 = `._header_11okm_1 {
|
|
13864
13957
|
margin-bottom: var(--rs-space-9);
|
|
13865
13958
|
}
|
|
@@ -13921,15 +14014,15 @@ function UserSetting() {
|
|
|
13921
14014
|
var import_yup16 = require("@hookform/resolvers/yup");
|
|
13922
14015
|
var import_apsara45 = require("@raystack/apsara");
|
|
13923
14016
|
var import_react_router28 = require("@tanstack/react-router");
|
|
13924
|
-
var
|
|
14017
|
+
var import_react40 = require("react");
|
|
13925
14018
|
var import_react_hook_form16 = require("react-hook-form");
|
|
13926
14019
|
var yup16 = __toESM(require("yup"));
|
|
13927
14020
|
var import_connect_query32 = require("@connectrpc/connect-query");
|
|
13928
14021
|
var import_frontier34 = require("@raystack/proton/frontier");
|
|
13929
14022
|
var import_protobuf33 = require("@bufbuild/protobuf");
|
|
13930
14023
|
|
|
13931
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13932
|
-
var digest41 = "
|
|
14024
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-3PUteL2FyDoQ/core/react/components/organization/organization.module.css.js
|
|
14025
|
+
var digest41 = "95d2ee49d20cdfef3b4801e2a0d6cbe1c519eb8078249a68493113cecc6ab025";
|
|
13933
14026
|
var css41 = `._createContainer_ipia2_1 {
|
|
13934
14027
|
margin: auto;
|
|
13935
14028
|
width: 100%;
|
|
@@ -14004,7 +14097,7 @@ var InviteTeamMembers = () => {
|
|
|
14004
14097
|
(0, import_protobuf33.create)(import_frontier34.ListOrganizationUsersRequestSchema, { id: (organization == null ? void 0 : organization.id) || "" }),
|
|
14005
14098
|
{ enabled: !!(organization == null ? void 0 : organization.id) }
|
|
14006
14099
|
);
|
|
14007
|
-
(0,
|
|
14100
|
+
(0, import_react40.useEffect)(() => {
|
|
14008
14101
|
if (orgMembersError) {
|
|
14009
14102
|
import_apsara45.toast.error("Something went wrong", {
|
|
14010
14103
|
description: orgMembersError.message
|
|
@@ -14016,7 +14109,7 @@ var InviteTeamMembers = () => {
|
|
|
14016
14109
|
(0, import_protobuf33.create)(import_frontier34.ListGroupUsersRequestSchema, { id: teamId || "", orgId: (organization == null ? void 0 : organization.id) || "", withRoles: true }),
|
|
14017
14110
|
{ enabled: !!(organization == null ? void 0 : organization.id) && !!teamId }
|
|
14018
14111
|
);
|
|
14019
|
-
(0,
|
|
14112
|
+
(0, import_react40.useEffect)(() => {
|
|
14020
14113
|
if (teamMembersError) {
|
|
14021
14114
|
import_apsara45.toast.error("Something went wrong", {
|
|
14022
14115
|
description: teamMembersError.message
|
|
@@ -14033,20 +14126,20 @@ var InviteTeamMembers = () => {
|
|
|
14033
14126
|
(0, import_protobuf33.create)(import_frontier34.ListRolesRequestSchema, { scopes: [PERMISSIONS.GroupNamespace] }),
|
|
14034
14127
|
{ enabled: !!(organization == null ? void 0 : organization.id) }
|
|
14035
14128
|
);
|
|
14036
|
-
const roles = (0,
|
|
14129
|
+
const roles = (0, import_react40.useMemo)(() => {
|
|
14037
14130
|
const orgRoles = (orgRolesData == null ? void 0 : orgRolesData.roles) || [];
|
|
14038
14131
|
const systemRoles = (rolesData == null ? void 0 : rolesData.roles) || [];
|
|
14039
14132
|
return [...systemRoles, ...orgRoles];
|
|
14040
14133
|
}, [orgRolesData == null ? void 0 : orgRolesData.roles, rolesData == null ? void 0 : rolesData.roles]);
|
|
14041
14134
|
const isRolesLoadingCombined = isOrgRolesLoading || isRolesLoading;
|
|
14042
|
-
(0,
|
|
14135
|
+
(0, import_react40.useEffect)(() => {
|
|
14043
14136
|
if (orgRolesError) {
|
|
14044
14137
|
import_apsara45.toast.error("Something went wrong", {
|
|
14045
14138
|
description: orgRolesError.message
|
|
14046
14139
|
});
|
|
14047
14140
|
}
|
|
14048
14141
|
}, [orgRolesError]);
|
|
14049
|
-
(0,
|
|
14142
|
+
(0, import_react40.useEffect)(() => {
|
|
14050
14143
|
if (rolesError) {
|
|
14051
14144
|
import_apsara45.toast.error("Something went wrong", {
|
|
14052
14145
|
description: rolesError.message
|
|
@@ -14060,7 +14153,7 @@ var InviteTeamMembers = () => {
|
|
|
14060
14153
|
});
|
|
14061
14154
|
}
|
|
14062
14155
|
});
|
|
14063
|
-
const addGroupTeamPolicy = (0,
|
|
14156
|
+
const addGroupTeamPolicy = (0, import_react40.useCallback)(
|
|
14064
14157
|
(roleId, userId) => __async(void 0, null, function* () {
|
|
14065
14158
|
const role = roles.find((r) => r.id === roleId);
|
|
14066
14159
|
if ((role == null ? void 0 : role.name) && role.name !== PERMISSIONS.RoleGroupMember) {
|
|
@@ -14103,7 +14196,7 @@ var InviteTeamMembers = () => {
|
|
|
14103
14196
|
});
|
|
14104
14197
|
});
|
|
14105
14198
|
}
|
|
14106
|
-
const invitableUser = (0,
|
|
14199
|
+
const invitableUser = (0, import_react40.useMemo)(
|
|
14107
14200
|
() => filterUsersfromUsers((orgMembersData == null ? void 0 : orgMembersData.users) || [], (teamMembersData == null ? void 0 : teamMembersData.users) || []) || [],
|
|
14108
14201
|
[orgMembersData == null ? void 0 : orgMembersData.users, teamMembersData == null ? void 0 : teamMembersData.users]
|
|
14109
14202
|
);
|
|
@@ -14208,10 +14301,10 @@ var InviteTeamMembers = () => {
|
|
|
14208
14301
|
|
|
14209
14302
|
// react/components/organization/domain/delete.tsx
|
|
14210
14303
|
var import_apsara46 = require("@raystack/apsara");
|
|
14211
|
-
var
|
|
14304
|
+
var import_react41 = require("react");
|
|
14212
14305
|
var import_yup17 = require("@hookform/resolvers/yup");
|
|
14213
14306
|
var import_react_router29 = require("@tanstack/react-router");
|
|
14214
|
-
var
|
|
14307
|
+
var import_react42 = require("react");
|
|
14215
14308
|
var import_react_hook_form17 = require("react-hook-form");
|
|
14216
14309
|
var yup17 = __toESM(require("yup"));
|
|
14217
14310
|
var import_connect_query33 = require("@connectrpc/connect-query");
|
|
@@ -14219,8 +14312,8 @@ var import_react_query9 = require("@tanstack/react-query");
|
|
|
14219
14312
|
var import_frontier35 = require("@raystack/proton/frontier");
|
|
14220
14313
|
var import_protobuf34 = require("@bufbuild/protobuf");
|
|
14221
14314
|
|
|
14222
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14223
|
-
var digest42 = "
|
|
14315
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-4a23PMqRS8Gg/core/react/components/organization/organization.module.css.js
|
|
14316
|
+
var digest42 = "64d24710cb6b4297336be22a6f7d782b2ea1f44ede0475f019bcaf575dc635ec";
|
|
14224
14317
|
var css42 = `._createContainer_ipia2_1 {
|
|
14225
14318
|
margin: auto;
|
|
14226
14319
|
width: 100%;
|
|
@@ -14293,9 +14386,9 @@ var DeleteDomain = () => {
|
|
|
14293
14386
|
const { activeOrganization: organization } = useFrontier();
|
|
14294
14387
|
const queryClient2 = (0, import_react_query9.useQueryClient)();
|
|
14295
14388
|
const transport = (0, import_connect_query33.useTransport)();
|
|
14296
|
-
const [isAcknowledged, setIsAcknowledged] = (0,
|
|
14389
|
+
const [isAcknowledged, setIsAcknowledged] = (0, import_react42.useState)(false);
|
|
14297
14390
|
const { domain, isLoading, error: domainError } = useOrganizationDomain(domainId);
|
|
14298
|
-
(0,
|
|
14391
|
+
(0, import_react41.useEffect)(() => {
|
|
14299
14392
|
if (domainError) {
|
|
14300
14393
|
import_apsara46.toast.error("Something went wrong", {
|
|
14301
14394
|
description: domainError.message
|
|
@@ -14333,7 +14426,7 @@ var DeleteDomain = () => {
|
|
|
14333
14426
|
if (!(domain == null ? void 0 : domain.id) || !(organization == null ? void 0 : organization.id))
|
|
14334
14427
|
return;
|
|
14335
14428
|
if (data.domain !== domain.name) {
|
|
14336
|
-
return setError("domain", { message: "
|
|
14429
|
+
return setError("domain", { message: "Domain name does not match" });
|
|
14337
14430
|
}
|
|
14338
14431
|
yield deleteOrganizationDomain(
|
|
14339
14432
|
(0, import_protobuf34.create)(import_frontier35.DeleteOrganizationDomainRequestSchema, {
|
|
@@ -14373,11 +14466,11 @@ var DeleteDomain = () => {
|
|
|
14373
14466
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
14374
14467
|
import_apsara46.InputField,
|
|
14375
14468
|
__spreadProps(__spreadValues({
|
|
14376
|
-
label: "Please
|
|
14469
|
+
label: "Please enter the domain name to confirm.",
|
|
14377
14470
|
size: "large",
|
|
14378
14471
|
error: errors.domain && String((_a = errors.domain) == null ? void 0 : _a.message)
|
|
14379
14472
|
}, register("domain")), {
|
|
14380
|
-
placeholder: "
|
|
14473
|
+
placeholder: "Enter the domain name"
|
|
14381
14474
|
})
|
|
14382
14475
|
),
|
|
14383
14476
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_apsara46.Flex, { gap: "small", children: [
|
|
@@ -14389,7 +14482,7 @@ var DeleteDomain = () => {
|
|
|
14389
14482
|
"data-test-id": "frontier-sdk-delete-domain-checkbox"
|
|
14390
14483
|
}
|
|
14391
14484
|
),
|
|
14392
|
-
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_apsara46.Text, { size: "small", children: "I acknowledge
|
|
14485
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_apsara46.Text, { size: "small", children: "I acknowledge and understand that all of the domain data will be deleted and want to proceed." })
|
|
14393
14486
|
] }),
|
|
14394
14487
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
14395
14488
|
import_apsara46.Button,
|
|
@@ -14412,7 +14505,7 @@ var DeleteDomain = () => {
|
|
|
14412
14505
|
// react/components/organization/billing/index.tsx
|
|
14413
14506
|
var import_apsara53 = require("@raystack/apsara");
|
|
14414
14507
|
var import_react_router31 = require("@tanstack/react-router");
|
|
14415
|
-
var
|
|
14508
|
+
var import_react47 = require("react");
|
|
14416
14509
|
var import_frontier39 = require("@raystack/proton/frontier");
|
|
14417
14510
|
var import_connect_query36 = require("@connectrpc/connect-query");
|
|
14418
14511
|
var import_protobuf38 = require("@bufbuild/protobuf");
|
|
@@ -14420,8 +14513,8 @@ var import_protobuf38 = require("@bufbuild/protobuf");
|
|
|
14420
14513
|
// react/components/organization/billing/invoices/index.tsx
|
|
14421
14514
|
var import_apsara47 = require("@raystack/apsara");
|
|
14422
14515
|
|
|
14423
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14424
|
-
var digest43 = "
|
|
14516
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-JMrvAhYqGHAj/core/react/components/organization/billing/invoices/invoice.module.css.js
|
|
14517
|
+
var digest43 = "0c8437e03bd714eca9542748c99d72aa80c7ba13b557f3c7b79753fffa0bedfb";
|
|
14425
14518
|
var css43 = `._header_gzg1m_1 {
|
|
14426
14519
|
margin-top: calc(-1 * var(--rs-space-9));
|
|
14427
14520
|
padding-top: var(--rs-space-9);
|
|
@@ -14535,8 +14628,8 @@ function Invoices({ isLoading, invoices }) {
|
|
|
14535
14628
|
// react/components/organization/billing/index.tsx
|
|
14536
14629
|
var import_query_string2 = __toESM(require("query-string"));
|
|
14537
14630
|
|
|
14538
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14539
|
-
var digest44 = "
|
|
14631
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-EL9sG9qOTBbY/core/react/components/organization/styles.module.css.js
|
|
14632
|
+
var digest44 = "11ab248cae07a329f5e8185c35652beadedfb3d4018338e8925b43c1bfd568f0";
|
|
14540
14633
|
var css44 = `._header_11okm_1 {
|
|
14541
14634
|
margin-bottom: var(--rs-space-9);
|
|
14542
14635
|
}
|
|
@@ -14579,8 +14672,8 @@ var css44 = `._header_11okm_1 {
|
|
|
14579
14672
|
})();
|
|
14580
14673
|
var styles_module_css_default11 = { "header": "_header_11okm_1", "container": "_container_11okm_5", "containerFlex": "_containerFlex_11okm_10", "contentWrapper": "_contentWrapper_11okm_18", "pageWrapper": "_pageWrapper_11okm_24" };
|
|
14581
14674
|
|
|
14582
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14583
|
-
var digest45 = "
|
|
14675
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-ULQrHVFvoVUA/core/react/components/organization/billing/billing.module.css.js
|
|
14676
|
+
var digest45 = "e0a445c402b89a7034d617aec4d0f2de9c7b32a0e2ddd7d6e3f3f61e6318d196";
|
|
14584
14677
|
var css45 = `._detailsBox_1vjbh_1 {
|
|
14585
14678
|
padding: var(--rs-space-4);
|
|
14586
14679
|
display: flex;
|
|
@@ -14684,7 +14777,7 @@ var billing_module_css_default = { "detailsBox": "_detailsBox_1vjbh_1", "details
|
|
|
14684
14777
|
|
|
14685
14778
|
// react/components/organization/billing/upcoming-billing-cycle.tsx
|
|
14686
14779
|
var import_react_router30 = require("@tanstack/react-router");
|
|
14687
|
-
var
|
|
14780
|
+
var import_react43 = require("react");
|
|
14688
14781
|
var import_frontier36 = require("@raystack/proton/frontier");
|
|
14689
14782
|
var import_connect_query34 = require("@connectrpc/connect-query");
|
|
14690
14783
|
var import_protobuf35 = require("@bufbuild/protobuf");
|
|
@@ -14693,8 +14786,8 @@ var import_apsara48 = require("@raystack/apsara");
|
|
|
14693
14786
|
// react/assets/line.svg
|
|
14694
14787
|
var line_default = 'data:image/svg+xml,<svg width="2" height="6" viewBox="0 0 2 6" fill="none" xmlns="http://www.w3.org/2000/svg">%0A <path id="Line 1" d="M1 1L1 5" stroke="%233a3f42" stroke-linecap="round" />%0A</svg>';
|
|
14695
14788
|
|
|
14696
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14697
|
-
var digest46 = "
|
|
14789
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-WDNug04nlwp7/core/react/components/organization/billing/billing.module.css.js
|
|
14790
|
+
var digest46 = "a007f26b011b4e2902949ab9ab7a7435bb8118fdc9047d47b7dbb4491778f356";
|
|
14698
14791
|
var css46 = `._detailsBox_1vjbh_1 {
|
|
14699
14792
|
padding: var(--rs-space-4);
|
|
14700
14793
|
display: flex;
|
|
@@ -14895,7 +14988,7 @@ var UpcomingBillingCycle = ({
|
|
|
14895
14988
|
}
|
|
14896
14989
|
}
|
|
14897
14990
|
);
|
|
14898
|
-
const { plan, switchablePlan } = (0,
|
|
14991
|
+
const { plan, switchablePlan } = (0, import_react43.useMemo)(() => {
|
|
14899
14992
|
if ((activeSubscription == null ? void 0 : activeSubscription.planId) && allPlans.length > 0) {
|
|
14900
14993
|
const currentPlan = allPlans.find(
|
|
14901
14994
|
(p) => p.id === activeSubscription.planId
|
|
@@ -14926,7 +15019,7 @@ var UpcomingBillingCycle = ({
|
|
|
14926
15019
|
(phase) => phase.planId === (switchablePlan == null ? void 0 : switchablePlan.id)
|
|
14927
15020
|
);
|
|
14928
15021
|
const error = memberCountError || invoiceError;
|
|
14929
|
-
(0,
|
|
15022
|
+
(0, import_react43.useEffect)(() => {
|
|
14930
15023
|
if (error) {
|
|
14931
15024
|
console.error("Failed to get upcoming billing cycle details", error);
|
|
14932
15025
|
import_apsara48.toast.error("Failed to get upcoming billing cycle details");
|
|
@@ -15021,8 +15114,8 @@ var UpcomingBillingCycle = ({
|
|
|
15021
15114
|
// react/components/organization/billing/payment-issue.tsx
|
|
15022
15115
|
var import_apsara49 = require("@raystack/apsara");
|
|
15023
15116
|
|
|
15024
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
15025
|
-
var digest47 = "
|
|
15117
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-9ufx88Nd1TDg/core/react/components/organization/billing/billing.module.css.js
|
|
15118
|
+
var digest47 = "a8f1aceb33ff4f62da3e832d6effaf7eed18dce37f04d9a4b43c47ca63b198b9";
|
|
15026
15119
|
var css47 = `._detailsBox_1vjbh_1 {
|
|
15027
15120
|
padding: var(--rs-space-4);
|
|
15028
15121
|
display: flex;
|
|
@@ -15128,7 +15221,7 @@ var billing_module_css_default3 = { "detailsBox": "_detailsBox_1vjbh_1", "detail
|
|
|
15128
15221
|
var exclamation_triangle_default = 'data:image/svg+xml,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g id="Exclamation Triangle">%0A<path id="Shape" fill-rule="evenodd" clip-rule="evenodd" d="M8.94499 0.608779C8.51838 -0.107003 7.48178 -0.106999 7.05518 0.608781L0.164596 12.1702C-0.272408 12.9034 0.255925 13.8333 1.1095 13.8333H14.8907C15.7443 13.8333 16.2726 12.9034 15.8356 12.1702L8.94499 0.608779ZM7.91418 1.12075C7.95296 1.05568 8.0472 1.05568 8.08598 1.12075L14.9766 12.6821C15.0163 12.7488 14.9683 12.8333 14.8907 12.8333H1.1095C1.0319 12.8333 0.983874 12.7488 1.0236 12.6821L7.91418 1.12075ZM7.28211 4.7852C7.26645 4.37786 7.59244 4.03909 8.00008 4.03909C8.40773 4.03909 8.73372 4.37786 8.71805 4.78521L8.55391 9.05283C8.54247 9.35042 8.29789 9.58577 8.00008 9.58577C7.70227 9.58577 7.4577 9.35042 7.44625 9.05283L7.28211 4.7852ZM8.79996 11.1744C8.79996 11.6162 8.44179 11.9744 7.99996 11.9744C7.55814 11.9744 7.19996 11.6162 7.19996 11.1744C7.19996 10.7326 7.55814 10.3744 7.99996 10.3744C8.44179 10.3744 8.79996 10.7326 8.79996 11.1744Z" fill="%23E5484D"/>%0A</g>%0A</svg>%0A';
|
|
15129
15222
|
|
|
15130
15223
|
// react/components/organization/billing/payment-issue.tsx
|
|
15131
|
-
var
|
|
15224
|
+
var import_react44 = require("react");
|
|
15132
15225
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
15133
15226
|
function PaymentIssue({
|
|
15134
15227
|
isLoading,
|
|
@@ -15143,7 +15236,7 @@ function PaymentIssue({
|
|
|
15143
15236
|
return 0;
|
|
15144
15237
|
return dateA.isAfter(dateB) ? -1 : 1;
|
|
15145
15238
|
});
|
|
15146
|
-
const onRetryPayment = (0,
|
|
15239
|
+
const onRetryPayment = (0, import_react44.useCallback)(() => {
|
|
15147
15240
|
var _a;
|
|
15148
15241
|
window.location.href = ((_a = openInvoices[0]) == null ? void 0 : _a.hostedUrl) || "";
|
|
15149
15242
|
}, [openInvoices]);
|
|
@@ -15177,8 +15270,8 @@ function PaymentIssue({
|
|
|
15177
15270
|
var import_apsara50 = require("@raystack/apsara");
|
|
15178
15271
|
var import_frontier37 = require("@raystack/proton/frontier");
|
|
15179
15272
|
|
|
15180
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
15181
|
-
var digest48 = "
|
|
15273
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-6tNloLVRFeZb/core/react/components/common/upcoming-plan-change-banner/styles.module.css.js
|
|
15274
|
+
var digest48 = "5e50e93afb06afe90baf6d38bd24d88a7586f0e0d37a1e51a19536d693406d9f";
|
|
15182
15275
|
var css48 = `._changeBannerBox_1tp17_1 {
|
|
15183
15276
|
padding: var(--rs-space-3);
|
|
15184
15277
|
border-radius: var(--rs-space-2);
|
|
@@ -15210,7 +15303,7 @@ var styles_module_css_default12 = { "changeBannerBox": "_changeBannerBox_1tp17_1
|
|
|
15210
15303
|
|
|
15211
15304
|
// react/components/common/upcoming-plan-change-banner/index.tsx
|
|
15212
15305
|
var import_dayjs4 = __toESM(require("dayjs"));
|
|
15213
|
-
var
|
|
15306
|
+
var import_react45 = require("react");
|
|
15214
15307
|
var import_protobuf36 = require("@bufbuild/protobuf");
|
|
15215
15308
|
var import_react_query10 = require("@tanstack/react-query");
|
|
15216
15309
|
var import_connect_query35 = require("@connectrpc/connect-query");
|
|
@@ -15225,7 +15318,6 @@ function UpcomingPlanChangeBanner({
|
|
|
15225
15318
|
config,
|
|
15226
15319
|
activePlan,
|
|
15227
15320
|
activeOrganization,
|
|
15228
|
-
billingAccount,
|
|
15229
15321
|
basePlan,
|
|
15230
15322
|
allPlans,
|
|
15231
15323
|
isAllPlansLoading
|
|
@@ -15236,14 +15328,13 @@ function UpcomingPlanChangeBanner({
|
|
|
15236
15328
|
import_frontier.FrontierServiceQueries.changeSubscription,
|
|
15237
15329
|
{
|
|
15238
15330
|
onSuccess: () => __async(this, null, function* () {
|
|
15239
|
-
var _a2
|
|
15331
|
+
var _a2;
|
|
15240
15332
|
yield queryClient2.invalidateQueries({
|
|
15241
15333
|
queryKey: (0, import_connect_query35.createConnectQueryKey)({
|
|
15242
15334
|
schema: import_frontier.FrontierServiceQueries.listSubscriptions,
|
|
15243
15335
|
transport,
|
|
15244
15336
|
input: {
|
|
15245
|
-
orgId: (_a2 = activeOrganization == null ? void 0 : activeOrganization.id) != null ? _a2 : ""
|
|
15246
|
-
billingId: (_b2 = billingAccount == null ? void 0 : billingAccount.id) != null ? _b2 : ""
|
|
15337
|
+
orgId: (_a2 = activeOrganization == null ? void 0 : activeOrganization.id) != null ? _a2 : ""
|
|
15247
15338
|
},
|
|
15248
15339
|
cardinality: "finite"
|
|
15249
15340
|
})
|
|
@@ -15265,7 +15356,7 @@ function UpcomingPlanChangeBanner({
|
|
|
15265
15356
|
}
|
|
15266
15357
|
)) || [];
|
|
15267
15358
|
const nextPhase = phases == null ? void 0 : phases[0];
|
|
15268
|
-
const upcomingPlan = (0,
|
|
15359
|
+
const upcomingPlan = (0, import_react45.useMemo)(() => {
|
|
15269
15360
|
if ((nextPhase == null ? void 0 : nextPhase.planId) && allPlans.length > 0) {
|
|
15270
15361
|
const plan = allPlans.find((p) => p.id === (nextPhase == null ? void 0 : nextPhase.planId));
|
|
15271
15362
|
return plan;
|
|
@@ -15281,12 +15372,10 @@ function UpcomingPlanChangeBanner({
|
|
|
15281
15372
|
Number(activePlanMetadata == null ? void 0 : activePlanMetadata.weightage)
|
|
15282
15373
|
);
|
|
15283
15374
|
const showLoader = isLoading || isAllPlansLoading;
|
|
15284
|
-
const onPlanChangeCancel = (0,
|
|
15285
|
-
if (
|
|
15375
|
+
const onPlanChangeCancel = (0, import_react45.useCallback)(() => {
|
|
15376
|
+
if (subscription == null ? void 0 : subscription.id) {
|
|
15286
15377
|
cancelUpcomingChange(
|
|
15287
15378
|
(0, import_protobuf36.create)(import_frontier37.ChangeSubscriptionRequestSchema, {
|
|
15288
|
-
orgId: activeOrganization == null ? void 0 : activeOrganization.id,
|
|
15289
|
-
billingId: billingAccount == null ? void 0 : billingAccount.id,
|
|
15290
15379
|
id: subscription == null ? void 0 : subscription.id,
|
|
15291
15380
|
change: {
|
|
15292
15381
|
case: "phaseChange",
|
|
@@ -15297,12 +15386,7 @@ function UpcomingPlanChangeBanner({
|
|
|
15297
15386
|
})
|
|
15298
15387
|
);
|
|
15299
15388
|
}
|
|
15300
|
-
}, [
|
|
15301
|
-
activeOrganization == null ? void 0 : activeOrganization.id,
|
|
15302
|
-
billingAccount == null ? void 0 : billingAccount.id,
|
|
15303
|
-
subscription == null ? void 0 : subscription.id,
|
|
15304
|
-
cancelUpcomingChange
|
|
15305
|
-
]);
|
|
15389
|
+
}, [subscription == null ? void 0 : subscription.id, cancelUpcomingChange]);
|
|
15306
15390
|
const currentPlanName = getPlanNameWithInterval(activePlan);
|
|
15307
15391
|
const upcomingPlanName = getPlanNameWithInterval(upcomingPlan || basePlan);
|
|
15308
15392
|
const areSimilarPlans = checkSimilarPlans(activePlan, upcomingPlan);
|
|
@@ -15350,8 +15434,8 @@ var import_query_string = __toESM(require("query-string"));
|
|
|
15350
15434
|
var _ = __toESM(require("lodash"));
|
|
15351
15435
|
var import_apsara51 = require("@raystack/apsara");
|
|
15352
15436
|
|
|
15353
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
15354
|
-
var digest49 = "
|
|
15437
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-EH2YtOkqz3a6/core/react/components/organization/billing/billing.module.css.js
|
|
15438
|
+
var digest49 = "24a2b4efdc2b1fcf0cd6fdfb7cac2dbd2a4b30e32149b9d84785fbb59222d24e";
|
|
15355
15439
|
var css49 = `._detailsBox_1vjbh_1 {
|
|
15356
15440
|
padding: var(--rs-space-4);
|
|
15357
15441
|
display: flex;
|
|
@@ -15463,7 +15547,7 @@ var PaymentMethod3 = ({
|
|
|
15463
15547
|
isLoading,
|
|
15464
15548
|
isAllowed
|
|
15465
15549
|
}) => {
|
|
15466
|
-
const { config, billingAccount } = useFrontier();
|
|
15550
|
+
const { config, billingAccount, activeOrganization } = useFrontier();
|
|
15467
15551
|
const { mutateAsync: createCheckoutMutation, isPending: isActionLoading } = (0, import_connect_query.useMutation)(import_frontier38.FrontierServiceQueries.createCheckout, {
|
|
15468
15552
|
onError: (err) => {
|
|
15469
15553
|
console.error(err);
|
|
@@ -15483,16 +15567,12 @@ var PaymentMethod3 = ({
|
|
|
15483
15567
|
const isPaymentMethodAvailable = cardLast4 !== "";
|
|
15484
15568
|
const updatePaymentMethod = () => __async(void 0, null, function* () {
|
|
15485
15569
|
var _a, _b, _c;
|
|
15486
|
-
const orgId = (
|
|
15487
|
-
const billingAccountId = (billingAccount == null ? void 0 : billingAccount.id) || "";
|
|
15488
|
-
if (!billingAccountId || !orgId)
|
|
15489
|
-
return;
|
|
15570
|
+
const orgId = (activeOrganization == null ? void 0 : activeOrganization.id) || "";
|
|
15490
15571
|
const query = import_query_string.default.stringify(
|
|
15491
15572
|
{
|
|
15492
15573
|
details: btoa(
|
|
15493
15574
|
import_query_string.default.stringify({
|
|
15494
|
-
|
|
15495
|
-
organization_id: billingAccount == null ? void 0 : billingAccount.orgId,
|
|
15575
|
+
organization_id: activeOrganization == null ? void 0 : activeOrganization.id,
|
|
15496
15576
|
type: "billing"
|
|
15497
15577
|
})
|
|
15498
15578
|
),
|
|
@@ -15504,8 +15584,7 @@ var PaymentMethod3 = ({
|
|
|
15504
15584
|
const success_url = `${(_b = config == null ? void 0 : config.billing) == null ? void 0 : _b.successUrl}?${query}`;
|
|
15505
15585
|
const resp = yield createCheckoutMutation(
|
|
15506
15586
|
(0, import_protobuf37.create)(import_frontier38.CreateCheckoutRequestSchema, {
|
|
15507
|
-
orgId: (
|
|
15508
|
-
billingId: (billingAccount == null ? void 0 : billingAccount.id) || "",
|
|
15587
|
+
orgId: (activeOrganization == null ? void 0 : activeOrganization.id) || "",
|
|
15509
15588
|
cancelUrl: cancel_url,
|
|
15510
15589
|
successUrl: success_url,
|
|
15511
15590
|
setupBody: {
|
|
@@ -15583,11 +15662,11 @@ var PaymentMethod3 = ({
|
|
|
15583
15662
|
};
|
|
15584
15663
|
|
|
15585
15664
|
// react/hooks/useBillingPermission.ts
|
|
15586
|
-
var
|
|
15665
|
+
var import_react46 = require("react");
|
|
15587
15666
|
var useBillingPermission = () => {
|
|
15588
15667
|
const { activeOrganization } = useFrontier();
|
|
15589
15668
|
const resource = `app/organization:${activeOrganization == null ? void 0 : activeOrganization.id}`;
|
|
15590
|
-
const listOfPermissionsToCheck = (0,
|
|
15669
|
+
const listOfPermissionsToCheck = (0, import_react46.useMemo)(
|
|
15591
15670
|
() => [
|
|
15592
15671
|
{
|
|
15593
15672
|
permission: PERMISSIONS.DeletePermission,
|
|
@@ -15600,7 +15679,7 @@ var useBillingPermission = () => {
|
|
|
15600
15679
|
listOfPermissionsToCheck,
|
|
15601
15680
|
!!(activeOrganization == null ? void 0 : activeOrganization.id)
|
|
15602
15681
|
);
|
|
15603
|
-
const { isAllowed } = (0,
|
|
15682
|
+
const { isAllowed } = (0, import_react46.useMemo)(() => {
|
|
15604
15683
|
return {
|
|
15605
15684
|
isAllowed: shouldShowComponent(
|
|
15606
15685
|
permissions,
|
|
@@ -15704,11 +15783,12 @@ function Billing() {
|
|
|
15704
15783
|
isActiveSubscriptionLoading,
|
|
15705
15784
|
paymentMethod,
|
|
15706
15785
|
organizationKyc,
|
|
15707
|
-
isOrganizationKycLoading
|
|
15786
|
+
isOrganizationKycLoading,
|
|
15787
|
+
activeOrganization
|
|
15708
15788
|
} = useFrontier();
|
|
15709
15789
|
const { isAllowed, isFetching } = useBillingPermission();
|
|
15710
15790
|
const {
|
|
15711
|
-
data:
|
|
15791
|
+
data: invoicesData,
|
|
15712
15792
|
isLoading: isInvoicesLoading,
|
|
15713
15793
|
error: invoicesError
|
|
15714
15794
|
} = (0, import_connect_query36.useQuery)(
|
|
@@ -15719,11 +15799,11 @@ function Billing() {
|
|
|
15719
15799
|
nonzeroAmountOnly: true
|
|
15720
15800
|
}),
|
|
15721
15801
|
{
|
|
15722
|
-
enabled: !!(billingAccount == null ? void 0 : billingAccount.id) && !!(billingAccount == null ? void 0 : billingAccount.orgId)
|
|
15723
|
-
select: (data) => (data == null ? void 0 : data.invoices) || []
|
|
15802
|
+
enabled: !!(billingAccount == null ? void 0 : billingAccount.id) && !!(billingAccount == null ? void 0 : billingAccount.orgId)
|
|
15724
15803
|
}
|
|
15725
15804
|
);
|
|
15726
|
-
(0,
|
|
15805
|
+
const invoices = (0, import_react47.useMemo)(() => (invoicesData == null ? void 0 : invoicesData.invoices) || [], [invoicesData]);
|
|
15806
|
+
(0, import_react47.useEffect)(() => {
|
|
15727
15807
|
if (invoicesError) {
|
|
15728
15808
|
import_apsara53.toast.error("Failed to load invoices", {
|
|
15729
15809
|
description: invoicesError == null ? void 0 : invoicesError.message
|
|
@@ -15741,19 +15821,17 @@ function Billing() {
|
|
|
15741
15821
|
}
|
|
15742
15822
|
}
|
|
15743
15823
|
);
|
|
15744
|
-
const onAddDetailsClick = (0,
|
|
15824
|
+
const onAddDetailsClick = (0, import_react47.useCallback)(() => __async(this, null, function* () {
|
|
15745
15825
|
var _a2, _b2, _c2;
|
|
15746
|
-
const orgId = (
|
|
15747
|
-
|
|
15748
|
-
if (!billingAccountId || !orgId)
|
|
15826
|
+
const orgId = (activeOrganization == null ? void 0 : activeOrganization.id) || "";
|
|
15827
|
+
if (!orgId)
|
|
15749
15828
|
return;
|
|
15750
15829
|
try {
|
|
15751
15830
|
const query = import_query_string2.default.stringify(
|
|
15752
15831
|
{
|
|
15753
15832
|
details: btoa(
|
|
15754
15833
|
import_query_string2.default.stringify({
|
|
15755
|
-
|
|
15756
|
-
organization_id: billingAccount == null ? void 0 : billingAccount.orgId,
|
|
15834
|
+
organization_id: (activeOrganization == null ? void 0 : activeOrganization.id) || "",
|
|
15757
15835
|
type: "billing"
|
|
15758
15836
|
})
|
|
15759
15837
|
),
|
|
@@ -15765,8 +15843,7 @@ function Billing() {
|
|
|
15765
15843
|
const success_url = `${(_b2 = config == null ? void 0 : config.billing) == null ? void 0 : _b2.successUrl}?${query}`;
|
|
15766
15844
|
const resp = yield createCheckoutMutation(
|
|
15767
15845
|
(0, import_protobuf38.create)(import_frontier39.CreateCheckoutRequestSchema, {
|
|
15768
|
-
orgId: (
|
|
15769
|
-
billingId: (billingAccount == null ? void 0 : billingAccount.id) || "",
|
|
15846
|
+
orgId: (activeOrganization == null ? void 0 : activeOrganization.id) || "",
|
|
15770
15847
|
cancelUrl: cancel_url,
|
|
15771
15848
|
successUrl: success_url,
|
|
15772
15849
|
setupBody: {
|
|
@@ -15784,8 +15861,7 @@ function Billing() {
|
|
|
15784
15861
|
import_apsara53.toast.error("Something went wrong");
|
|
15785
15862
|
}
|
|
15786
15863
|
}), [
|
|
15787
|
-
|
|
15788
|
-
billingAccount == null ? void 0 : billingAccount.orgId,
|
|
15864
|
+
activeOrganization == null ? void 0 : activeOrganization.id,
|
|
15789
15865
|
createCheckoutMutation,
|
|
15790
15866
|
(_a = config == null ? void 0 : config.billing) == null ? void 0 : _a.cancelUrl,
|
|
15791
15867
|
(_b = config == null ? void 0 : config.billing) == null ? void 0 : _b.successUrl
|
|
@@ -15853,7 +15929,7 @@ function Billing() {
|
|
|
15853
15929
|
}
|
|
15854
15930
|
|
|
15855
15931
|
// react/components/organization/tokens/index.tsx
|
|
15856
|
-
var
|
|
15932
|
+
var import_react49 = require("react");
|
|
15857
15933
|
var import_apsara57 = require("@raystack/apsara");
|
|
15858
15934
|
|
|
15859
15935
|
// src/index.ts
|
|
@@ -15888,8 +15964,8 @@ var import_apsara55 = require("@raystack/apsara");
|
|
|
15888
15964
|
var import_apsara54 = require("@raystack/apsara");
|
|
15889
15965
|
var _2 = __toESM(require("lodash"));
|
|
15890
15966
|
|
|
15891
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
15892
|
-
var digest50 = "
|
|
15967
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-VSoTGXUKLQnn/core/react/components/organization/tokens/token.module.css.js
|
|
15968
|
+
var digest50 = "615a24909b84298807a02e45ad1b605f114ddab1592bc86e411de7006997f1e3";
|
|
15893
15969
|
var css50 = `._flex1_1rl84_1 {
|
|
15894
15970
|
flex: 1;
|
|
15895
15971
|
}
|
|
@@ -16022,8 +16098,8 @@ var getColumns8 = ({
|
|
|
16022
16098
|
}
|
|
16023
16099
|
];
|
|
16024
16100
|
|
|
16025
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16026
|
-
var digest51 = "
|
|
16101
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-8tP37bIUywTp/core/react/components/organization/tokens/token.module.css.js
|
|
16102
|
+
var digest51 = "ff7fed582a42676bb322ef700403eaad80e5c3d4ae0d25e2e3e9328cbc84aa01";
|
|
16027
16103
|
var css51 = `._flex1_1rl84_1 {
|
|
16028
16104
|
flex: 1;
|
|
16029
16105
|
}
|
|
@@ -16119,7 +16195,7 @@ function TransactionsTable({
|
|
|
16119
16195
|
var noDataChildren8 = /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_apsara55.EmptyState, { icon: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ExclamationTriangleIcon, {}), heading: "No Transactions" });
|
|
16120
16196
|
|
|
16121
16197
|
// react/hooks/useTokens.ts
|
|
16122
|
-
var
|
|
16198
|
+
var import_react48 = require("react");
|
|
16123
16199
|
var import_connect_query37 = require("@connectrpc/connect-query");
|
|
16124
16200
|
var import_protobuf39 = require("@bufbuild/protobuf");
|
|
16125
16201
|
var import_frontier40 = require("@raystack/proton/frontier");
|
|
@@ -16143,13 +16219,13 @@ var useTokens = () => {
|
|
|
16143
16219
|
retry: false
|
|
16144
16220
|
}
|
|
16145
16221
|
);
|
|
16146
|
-
(0,
|
|
16222
|
+
(0, import_react48.useEffect)(() => {
|
|
16147
16223
|
if (error) {
|
|
16148
16224
|
console.error(error);
|
|
16149
16225
|
import_apsara56.toast.error("Unable to fetch balance");
|
|
16150
16226
|
}
|
|
16151
16227
|
}, [error]);
|
|
16152
|
-
const tokenBalance = (0,
|
|
16228
|
+
const tokenBalance = (0, import_react48.useMemo)(
|
|
16153
16229
|
() => {
|
|
16154
16230
|
var _a2;
|
|
16155
16231
|
return Number(((_a2 = data == null ? void 0 : data.balance) == null ? void 0 : _a2.amount) || "0");
|
|
@@ -16171,8 +16247,8 @@ var import_protobuf40 = require("@bufbuild/protobuf");
|
|
|
16171
16247
|
// react/assets/coin.svg
|
|
16172
16248
|
var coin_default = 'data:image/svg+xml,<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g id="Credit coin">%0A<path id="credit coin" d="M48 24.0196C47.9983 37.3229 37.2746 48.0052 23.9263 48.0001C10.6771 47.9951 -0.0098551 37.2504 6.81992e-06 23.9446C0.0100138 10.6528 10.7492 -0.012751 24.1099 1.14418e-05C37.3171 0.0127739 48.0017 10.7553 48 24.0196ZM11.2887 24.0977C16.6867 27.289 20.6403 31.8534 24.1954 36.8591C27.1623 31.2874 31.9695 27.6538 36.8726 24.0699C31.3822 20.964 27.5665 16.297 24.0576 11.2374C20.5079 16.2419 16.7425 20.9331 11.2887 24.0977Z" fill="url(%23paint0_linear_8624_16209)"/>%0A</g>%0A<defs>%0A<linearGradient id="paint0_linear_8624_16209" x1="39.75" y1="7.5" x2="9.75" y2="42.75" gradientUnits="userSpaceOnUse">%0A<stop stop-color="%23E82F72" stop-opacity="0.7"/>%0A<stop offset="1" stop-color="%23ED25B5" stop-opacity="0.7"/>%0A</linearGradient>%0A</defs>%0A</svg>%0A';
|
|
16173
16249
|
|
|
16174
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16175
|
-
var digest52 = "
|
|
16250
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-worv1de4Oz3W/core/react/components/organization/styles.module.css.js
|
|
16251
|
+
var digest52 = "8c177e8abba45f322b26d341068b912a05eafcba8191dd06f76f3b9425d7d479";
|
|
16176
16252
|
var css52 = `._header_11okm_1 {
|
|
16177
16253
|
margin-bottom: var(--rs-space-9);
|
|
16178
16254
|
}
|
|
@@ -16215,8 +16291,8 @@ var css52 = `._header_11okm_1 {
|
|
|
16215
16291
|
})();
|
|
16216
16292
|
var styles_module_css_default13 = { "header": "_header_11okm_1", "container": "_container_11okm_5", "containerFlex": "_containerFlex_11okm_10", "contentWrapper": "_contentWrapper_11okm_18", "pageWrapper": "_pageWrapper_11okm_24" };
|
|
16217
16293
|
|
|
16218
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16219
|
-
var digest53 = "
|
|
16294
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-sQuETkWcv8t0/core/react/components/organization/tokens/token.module.css.js
|
|
16295
|
+
var digest53 = "785302aa2093806b488322099334e3d9c8f89085e9d060af2e3f397e2420464a";
|
|
16220
16296
|
var css53 = `._flex1_1rl84_1 {
|
|
16221
16297
|
flex: 1;
|
|
16222
16298
|
}
|
|
@@ -16378,7 +16454,7 @@ function Tokens() {
|
|
|
16378
16454
|
const { isAllowed, isFetching: isPermissionsFetching } = useBillingPermission();
|
|
16379
16455
|
const { tokenBalance, isTokensLoading } = useTokens();
|
|
16380
16456
|
const {
|
|
16381
|
-
data:
|
|
16457
|
+
data: transactionsRawData,
|
|
16382
16458
|
isLoading: isTransactionsListLoading,
|
|
16383
16459
|
error: transactionsError
|
|
16384
16460
|
} = (0, import_connect_query38.useQuery)(
|
|
@@ -16389,14 +16465,14 @@ function Tokens() {
|
|
|
16389
16465
|
billingId: (_b = billingAccount == null ? void 0 : billingAccount.id) != null ? _b : ""
|
|
16390
16466
|
}),
|
|
16391
16467
|
{
|
|
16392
|
-
enabled: !!(activeOrganization == null ? void 0 : activeOrganization.id) && !!(billingAccount == null ? void 0 : billingAccount.id)
|
|
16393
|
-
select: (data) => {
|
|
16394
|
-
var _a2;
|
|
16395
|
-
return (_a2 = data == null ? void 0 : data.transactions) != null ? _a2 : [];
|
|
16396
|
-
}
|
|
16468
|
+
enabled: !!(activeOrganization == null ? void 0 : activeOrganization.id) && !!(billingAccount == null ? void 0 : billingAccount.id)
|
|
16397
16469
|
}
|
|
16398
16470
|
);
|
|
16399
|
-
(0,
|
|
16471
|
+
const transactionsData = (0, import_react49.useMemo)(() => {
|
|
16472
|
+
var _a2;
|
|
16473
|
+
return (_a2 = transactionsRawData == null ? void 0 : transactionsRawData.transactions) != null ? _a2 : [];
|
|
16474
|
+
}, [transactionsRawData]);
|
|
16475
|
+
(0, import_react49.useEffect)(() => {
|
|
16400
16476
|
if (transactionsError) {
|
|
16401
16477
|
console.error(transactionsError);
|
|
16402
16478
|
import_apsara57.toast.error("Unable to fetch transactions");
|
|
@@ -16452,8 +16528,8 @@ var import_connect_query39 = require("@connectrpc/connect-query");
|
|
|
16452
16528
|
var import_react_hook_form18 = require("react-hook-form");
|
|
16453
16529
|
var yup18 = __toESM(require("yup"));
|
|
16454
16530
|
|
|
16455
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16456
|
-
var digest54 = "
|
|
16531
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-IoG5GVhnFgx2/core/react/components/organization/organization.module.css.js
|
|
16532
|
+
var digest54 = "15b30434710f70f620ed2a9738e4474eeee17c8f44987173af1e1231715835e9";
|
|
16457
16533
|
var css54 = `._createContainer_ipia2_1 {
|
|
16458
16534
|
margin: auto;
|
|
16459
16535
|
width: 100%;
|
|
@@ -16505,8 +16581,8 @@ var css54 = `._createContainer_ipia2_1 {
|
|
|
16505
16581
|
})();
|
|
16506
16582
|
var organization_module_css_default13 = { "createContainer": "_createContainer_ipia2_1", "overlay": "_overlay_ipia2_8", "dropdownActionItem": "_dropdownActionItem_ipia2_13", "noSelectItem": "_noSelectItem_ipia2_30", "orgTabsContainer": "_orgTabsContainer_ipia2_35" };
|
|
16507
16583
|
|
|
16508
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16509
|
-
var digest55 = "
|
|
16584
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-7mwbQMLdUPax/core/react/components/organization/tokens/token.module.css.js
|
|
16585
|
+
var digest55 = "fba0116506e11b16a31b930851033fd5f8cdc8d22717c5127663a7d7dfa9cd01";
|
|
16510
16586
|
var css55 = `._flex1_1rl84_1 {
|
|
16511
16587
|
flex: 1;
|
|
16512
16588
|
}
|
|
@@ -16569,7 +16645,7 @@ var token_module_css_default4 = { "flex1": "_flex1_1rl84_1", "coinIcon": "_coinI
|
|
|
16569
16645
|
|
|
16570
16646
|
// react/components/organization/tokens/add-tokens.tsx
|
|
16571
16647
|
var import_query_string3 = __toESM(require("query-string"));
|
|
16572
|
-
var
|
|
16648
|
+
var import_react50 = require("react");
|
|
16573
16649
|
var import_connect_query40 = require("@connectrpc/connect-query");
|
|
16574
16650
|
var import_protobuf41 = require("@bufbuild/protobuf");
|
|
16575
16651
|
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
@@ -16586,7 +16662,7 @@ var AddTokens = () => {
|
|
|
16586
16662
|
select: (data) => data == null ? void 0 : data.product
|
|
16587
16663
|
}
|
|
16588
16664
|
);
|
|
16589
|
-
const { productDescription, minQuantity, maxQuantity } = (0,
|
|
16665
|
+
const { productDescription, minQuantity, maxQuantity } = (0, import_react50.useMemo)(() => {
|
|
16590
16666
|
var _a2;
|
|
16591
16667
|
let productDescription2 = "";
|
|
16592
16668
|
let minQuantity2 = 1;
|
|
@@ -16633,13 +16709,12 @@ var AddTokens = () => {
|
|
|
16633
16709
|
const onSubmit = (data) => __async(void 0, null, function* () {
|
|
16634
16710
|
var _a2, _b;
|
|
16635
16711
|
try {
|
|
16636
|
-
if (!(activeOrganization == null ? void 0 : activeOrganization.id)
|
|
16712
|
+
if (!(activeOrganization == null ? void 0 : activeOrganization.id))
|
|
16637
16713
|
return;
|
|
16638
16714
|
const query = import_query_string3.default.stringify(
|
|
16639
16715
|
{
|
|
16640
16716
|
details: btoa(
|
|
16641
16717
|
import_query_string3.default.stringify({
|
|
16642
|
-
billing_id: billingAccount == null ? void 0 : billingAccount.id,
|
|
16643
16718
|
organization_id: activeOrganization == null ? void 0 : activeOrganization.id,
|
|
16644
16719
|
type: "tokens"
|
|
16645
16720
|
})
|
|
@@ -16653,7 +16728,6 @@ var AddTokens = () => {
|
|
|
16653
16728
|
yield createCheckout(
|
|
16654
16729
|
(0, import_protobuf41.create)(src_exports.CreateCheckoutRequestSchema, {
|
|
16655
16730
|
orgId: (activeOrganization == null ? void 0 : activeOrganization.id) || "",
|
|
16656
|
-
billingId: (billingAccount == null ? void 0 : billingAccount.id) || "",
|
|
16657
16731
|
cancelUrl,
|
|
16658
16732
|
successUrl,
|
|
16659
16733
|
productBody: {
|
|
@@ -16740,13 +16814,13 @@ var AddTokens = () => {
|
|
|
16740
16814
|
};
|
|
16741
16815
|
|
|
16742
16816
|
// react/components/organization/billing/cycle-switch/index.tsx
|
|
16743
|
-
var
|
|
16817
|
+
var import_react52 = require("react");
|
|
16744
16818
|
var import_apsara60 = require("@raystack/apsara");
|
|
16745
16819
|
var import_react_router34 = require("@tanstack/react-router");
|
|
16746
16820
|
var _3 = __toESM(require("lodash"));
|
|
16747
16821
|
|
|
16748
16822
|
// react/components/organization/plans/hooks/usePlans.tsx
|
|
16749
|
-
var
|
|
16823
|
+
var import_react51 = require("react");
|
|
16750
16824
|
var import_query_string4 = __toESM(require("query-string"));
|
|
16751
16825
|
var import_apsara59 = require("@raystack/apsara");
|
|
16752
16826
|
var import_uuid2 = require("uuid");
|
|
@@ -16754,7 +16828,7 @@ var import_protobuf42 = require("@bufbuild/protobuf");
|
|
|
16754
16828
|
var import_frontier41 = require("@raystack/proton/frontier");
|
|
16755
16829
|
var usePlans = () => {
|
|
16756
16830
|
var _a, _b, _c;
|
|
16757
|
-
const [hasAlreadyTrialed, setHasAlreadyTrialed] = (0,
|
|
16831
|
+
const [hasAlreadyTrialed, setHasAlreadyTrialed] = (0, import_react51.useState)(false);
|
|
16758
16832
|
const {
|
|
16759
16833
|
activeOrganization,
|
|
16760
16834
|
billingAccount,
|
|
@@ -16804,16 +16878,15 @@ var usePlans = () => {
|
|
|
16804
16878
|
const isCurrentlyTrialing = subscriptions == null ? void 0 : subscriptions.some(
|
|
16805
16879
|
(sub) => sub.state === SUBSCRIPTION_STATES.TRIALING
|
|
16806
16880
|
);
|
|
16807
|
-
const checkoutPlan = (0,
|
|
16881
|
+
const checkoutPlan = (0, import_react51.useCallback)(
|
|
16808
16882
|
(_0) => __async(void 0, [_0], function* ({ planId, onSuccess, isTrial }) {
|
|
16809
16883
|
var _a2, _b2, _c2, _d, _e;
|
|
16810
16884
|
try {
|
|
16811
|
-
if (
|
|
16885
|
+
if (activeOrganization == null ? void 0 : activeOrganization.id) {
|
|
16812
16886
|
const query = import_query_string4.default.stringify(
|
|
16813
16887
|
{
|
|
16814
16888
|
details: btoa(
|
|
16815
16889
|
import_query_string4.default.stringify({
|
|
16816
|
-
billing_id: billingAccount == null ? void 0 : billingAccount.id,
|
|
16817
16890
|
organization_id: activeOrganization == null ? void 0 : activeOrganization.id,
|
|
16818
16891
|
type: "plans",
|
|
16819
16892
|
isTrial
|
|
@@ -16832,7 +16905,6 @@ var usePlans = () => {
|
|
|
16832
16905
|
const resp = yield createCheckoutMutation(
|
|
16833
16906
|
(0, import_protobuf42.create)(import_frontier41.CreateCheckoutRequestSchema, {
|
|
16834
16907
|
orgId: activeOrganization == null ? void 0 : activeOrganization.id,
|
|
16835
|
-
billingId: billingAccount == null ? void 0 : billingAccount.id,
|
|
16836
16908
|
cancelUrl: cancel_url,
|
|
16837
16909
|
successUrl: success_url,
|
|
16838
16910
|
subscriptionBody: {
|
|
@@ -16865,13 +16937,11 @@ var usePlans = () => {
|
|
|
16865
16937
|
const checkBasePlan = (planId) => {
|
|
16866
16938
|
return planId === import_uuid2.NIL;
|
|
16867
16939
|
};
|
|
16868
|
-
const changePlan = (0,
|
|
16940
|
+
const changePlan = (0, import_react51.useCallback)(
|
|
16869
16941
|
(_0) => __async(void 0, [_0], function* ({ planId, onSuccess, immediate = false }) {
|
|
16870
|
-
if (
|
|
16942
|
+
if (activeSubscription == null ? void 0 : activeSubscription.id) {
|
|
16871
16943
|
const resp = yield changeSubscriptionMutation(
|
|
16872
16944
|
(0, import_protobuf42.create)(import_frontier41.ChangeSubscriptionRequestSchema, {
|
|
16873
|
-
orgId: activeOrganization == null ? void 0 : activeOrganization.id,
|
|
16874
|
-
billingId: billingAccount == null ? void 0 : billingAccount.id,
|
|
16875
16945
|
id: activeSubscription == null ? void 0 : activeSubscription.id,
|
|
16876
16946
|
change: {
|
|
16877
16947
|
case: "planChange",
|
|
@@ -16887,14 +16957,9 @@ var usePlans = () => {
|
|
|
16887
16957
|
}
|
|
16888
16958
|
}
|
|
16889
16959
|
}),
|
|
16890
|
-
[
|
|
16891
|
-
activeOrganization == null ? void 0 : activeOrganization.id,
|
|
16892
|
-
activeSubscription == null ? void 0 : activeSubscription.id,
|
|
16893
|
-
billingAccount == null ? void 0 : billingAccount.id,
|
|
16894
|
-
changeSubscriptionMutation
|
|
16895
|
-
]
|
|
16960
|
+
[activeSubscription == null ? void 0 : activeSubscription.id, changeSubscriptionMutation]
|
|
16896
16961
|
);
|
|
16897
|
-
const verifyPlanChange = (0,
|
|
16962
|
+
const verifyPlanChange = (0, import_react51.useCallback)(
|
|
16898
16963
|
(_0) => __async(void 0, [_0], function* ({ planId, onSuccess = () => {
|
|
16899
16964
|
} }) {
|
|
16900
16965
|
var _a2;
|
|
@@ -16911,7 +16976,7 @@ var usePlans = () => {
|
|
|
16911
16976
|
}),
|
|
16912
16977
|
[fetchActiveSubscription]
|
|
16913
16978
|
);
|
|
16914
|
-
const verifySubscriptionCancel = (0,
|
|
16979
|
+
const verifySubscriptionCancel = (0, import_react51.useCallback)(
|
|
16915
16980
|
(_0) => __async(void 0, [_0], function* ({ onSuccess = () => {
|
|
16916
16981
|
} }) {
|
|
16917
16982
|
var _a2;
|
|
@@ -16928,7 +16993,7 @@ var usePlans = () => {
|
|
|
16928
16993
|
}),
|
|
16929
16994
|
[fetchActiveSubscription]
|
|
16930
16995
|
);
|
|
16931
|
-
const getSubscribedPlans = (0,
|
|
16996
|
+
const getSubscribedPlans = (0, import_react51.useCallback)(() => {
|
|
16932
16997
|
return subscriptions.map((t) => t.planId ? planMap[t.planId] : null).filter((plan) => !!plan);
|
|
16933
16998
|
}, [planMap, subscriptions]);
|
|
16934
16999
|
const getTrialedPlanMaxWeightage = (plans) => {
|
|
@@ -16939,7 +17004,7 @@ var usePlans = () => {
|
|
|
16939
17004
|
}).filter((w) => w > 0)
|
|
16940
17005
|
);
|
|
16941
17006
|
};
|
|
16942
|
-
const getIneligiblePlansIdsSetForTrial = (0,
|
|
17007
|
+
const getIneligiblePlansIdsSetForTrial = (0, import_react51.useCallback)(
|
|
16943
17008
|
(subscribedPlansIdsSet, maxTrialPlanWeightage = 0) => {
|
|
16944
17009
|
return allPlans.reduce((acc, plan) => {
|
|
16945
17010
|
const metadata = plan == null ? void 0 : plan.metadata;
|
|
@@ -16953,7 +17018,7 @@ var usePlans = () => {
|
|
|
16953
17018
|
},
|
|
16954
17019
|
[allPlans]
|
|
16955
17020
|
);
|
|
16956
|
-
const checkAlreadyTrialed = (0,
|
|
17021
|
+
const checkAlreadyTrialed = (0, import_react51.useCallback)(
|
|
16957
17022
|
(planIds) => __async(void 0, null, function* () {
|
|
16958
17023
|
const subscribedPlans = getSubscribedPlans();
|
|
16959
17024
|
const subscribedPlansIdsSet = new Set(
|
|
@@ -16971,13 +17036,11 @@ var usePlans = () => {
|
|
|
16971
17036
|
}),
|
|
16972
17037
|
[getIneligiblePlansIdsSetForTrial, getSubscribedPlans]
|
|
16973
17038
|
);
|
|
16974
|
-
const cancelSubscription = (0,
|
|
17039
|
+
const cancelSubscription = (0, import_react51.useCallback)(
|
|
16975
17040
|
(_0) => __async(void 0, [_0], function* ({ onSuccess }) {
|
|
16976
|
-
if (
|
|
17041
|
+
if (activeSubscription == null ? void 0 : activeSubscription.id) {
|
|
16977
17042
|
const resp = yield cancelSubscriptionMutation(
|
|
16978
17043
|
(0, import_protobuf42.create)(import_frontier41.CancelSubscriptionRequestSchema, {
|
|
16979
|
-
orgId: activeOrganization == null ? void 0 : activeOrganization.id,
|
|
16980
|
-
billingId: billingAccount == null ? void 0 : billingAccount.id,
|
|
16981
17044
|
id: activeSubscription == null ? void 0 : activeSubscription.id,
|
|
16982
17045
|
immediate: false
|
|
16983
17046
|
})
|
|
@@ -16987,12 +17050,7 @@ var usePlans = () => {
|
|
|
16987
17050
|
}
|
|
16988
17051
|
}
|
|
16989
17052
|
}),
|
|
16990
|
-
[
|
|
16991
|
-
activeOrganization == null ? void 0 : activeOrganization.id,
|
|
16992
|
-
billingAccount == null ? void 0 : billingAccount.id,
|
|
16993
|
-
activeSubscription == null ? void 0 : activeSubscription.id,
|
|
16994
|
-
cancelSubscriptionMutation
|
|
16995
|
-
]
|
|
17053
|
+
[activeSubscription == null ? void 0 : activeSubscription.id, cancelSubscriptionMutation]
|
|
16996
17054
|
);
|
|
16997
17055
|
return {
|
|
16998
17056
|
checkoutPlan,
|
|
@@ -17010,8 +17068,8 @@ var usePlans = () => {
|
|
|
17010
17068
|
};
|
|
17011
17069
|
};
|
|
17012
17070
|
|
|
17013
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
17014
|
-
var digest56 = "
|
|
17071
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-bHi9b5ldNdL2/core/react/components/organization/organization.module.css.js
|
|
17072
|
+
var digest56 = "dd8ed1714b500582bcbc430a385eea245a05460485b8d280feabf8712307701c";
|
|
17015
17073
|
var css56 = `._createContainer_ipia2_1 {
|
|
17016
17074
|
margin: auto;
|
|
17017
17075
|
width: 100%;
|
|
@@ -17078,7 +17136,7 @@ function ConfirmCycleSwitch() {
|
|
|
17078
17136
|
const navigate = (0, import_react_router34.useNavigate)({ from: "/billing/cycle-switch/$planId" });
|
|
17079
17137
|
const { planId } = (0, import_react_router34.useParams)({ from: "/billing/cycle-switch/$planId" });
|
|
17080
17138
|
const dateFormat = (config == null ? void 0 : config.dateFormat) || DEFAULT_DATE_FORMAT;
|
|
17081
|
-
const closeModal = (0,
|
|
17139
|
+
const closeModal = (0, import_react52.useCallback)(
|
|
17082
17140
|
() => navigate({ to: "/billing" }),
|
|
17083
17141
|
[navigate]
|
|
17084
17142
|
);
|
|
@@ -17088,7 +17146,7 @@ function ConfirmCycleSwitch() {
|
|
|
17088
17146
|
changePlan,
|
|
17089
17147
|
verifyPlanChange
|
|
17090
17148
|
} = usePlans();
|
|
17091
|
-
const nextPlan = (0,
|
|
17149
|
+
const nextPlan = (0, import_react52.useMemo)(() => {
|
|
17092
17150
|
if (planId && allPlans.length > 0) {
|
|
17093
17151
|
const plan = allPlans.find((p) => p.id === planId);
|
|
17094
17152
|
return plan;
|
|
@@ -17253,8 +17311,8 @@ function groupPlansPricingByInterval(plans) {
|
|
|
17253
17311
|
// react/components/organization/plans/header.tsx
|
|
17254
17312
|
var import_apsara61 = require("@raystack/apsara");
|
|
17255
17313
|
|
|
17256
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
17257
|
-
var digest57 = "
|
|
17314
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-Ai0fnMAyvB30/core/react/components/organization/plans/plans.module.css.js
|
|
17315
|
+
var digest57 = "1e2b037d05c19bebadd293afde3fa0c61067df2f741053d2552ef99c30c55a5c";
|
|
17258
17316
|
var css57 = `._flex1_3ghb5_1 {
|
|
17259
17317
|
flex: 1;
|
|
17260
17318
|
}
|
|
@@ -17425,11 +17483,11 @@ var PlansHeader = ({ billingSupportEmail, isLoading }) => {
|
|
|
17425
17483
|
// react/components/organization/plans/pricing-column.tsx
|
|
17426
17484
|
var import_react_router35 = require("@tanstack/react-router");
|
|
17427
17485
|
var _4 = __toESM(require("lodash"));
|
|
17428
|
-
var
|
|
17486
|
+
var import_react53 = require("react");
|
|
17429
17487
|
var import_apsara62 = require("@raystack/apsara");
|
|
17430
17488
|
|
|
17431
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
17432
|
-
var digest58 = "
|
|
17489
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-UsBeoBGDxRbm/core/react/components/organization/plans/plans.module.css.js
|
|
17490
|
+
var digest58 = "74abed3e9534b023e91abb5716181626466115b902296e690a27e865489e0984";
|
|
17433
17491
|
var css58 = `._flex1_3ghb5_1 {
|
|
17434
17492
|
flex: 1;
|
|
17435
17493
|
}
|
|
@@ -17661,7 +17719,7 @@ var TrialLink = function TrialLink2({
|
|
|
17661
17719
|
subscriptions,
|
|
17662
17720
|
isCurrentlyTrialing
|
|
17663
17721
|
} = usePlans();
|
|
17664
|
-
(0,
|
|
17722
|
+
(0, import_react53.useEffect)(() => {
|
|
17665
17723
|
if (planHasTrial) {
|
|
17666
17724
|
checkAlreadyTrialed(planIds);
|
|
17667
17725
|
}
|
|
@@ -17705,8 +17763,8 @@ var PlanPricingColumn = ({
|
|
|
17705
17763
|
const { config, paymentMethod } = useFrontier();
|
|
17706
17764
|
const dateFormat = (config == null ? void 0 : config.dateFormat) || DEFAULT_DATE_FORMAT;
|
|
17707
17765
|
const shortDateFormat = (config == null ? void 0 : config.shortDateFormat) || DEFAULT_DATE_SHORT_FORMAT;
|
|
17708
|
-
const [isTrialCheckoutLoading, setIsTrialCheckoutLoading] = (0,
|
|
17709
|
-
const plans = (0,
|
|
17766
|
+
const [isTrialCheckoutLoading, setIsTrialCheckoutLoading] = (0, import_react53.useState)(false);
|
|
17767
|
+
const plans = (0, import_react53.useMemo)(() => Object.values(plan.intervals), [plan.intervals]);
|
|
17710
17768
|
const navigate = (0, import_react_router35.useNavigate)({ from: "/plans" });
|
|
17711
17769
|
const {
|
|
17712
17770
|
checkoutPlan,
|
|
@@ -17716,7 +17774,7 @@ var PlanPricingColumn = ({
|
|
|
17716
17774
|
checkBasePlan
|
|
17717
17775
|
} = usePlans();
|
|
17718
17776
|
const planIntervals = plans.sort((a, b) => a.weightage - b.weightage).map((i) => i.interval) || [];
|
|
17719
|
-
const [selectedInterval, setSelectedInterval] = (0,
|
|
17777
|
+
const [selectedInterval, setSelectedInterval] = (0, import_react53.useState)(() => {
|
|
17720
17778
|
const activePlan = plans.find((p) => p.planId === (currentPlan == null ? void 0 : currentPlan.planId));
|
|
17721
17779
|
return (activePlan == null ? void 0 : activePlan.interval) || planIntervals[0] || "year";
|
|
17722
17780
|
});
|
|
@@ -17726,7 +17784,7 @@ var PlanPricingColumn = ({
|
|
|
17726
17784
|
}
|
|
17727
17785
|
};
|
|
17728
17786
|
const selectedIntervalPricing = plan.intervals[selectedInterval];
|
|
17729
|
-
const action = (0,
|
|
17787
|
+
const action = (0, import_react53.useMemo)(() => {
|
|
17730
17788
|
const isCurrentPlanSelectedPlan = (selectedIntervalPricing == null ? void 0 : selectedIntervalPricing.planId) === (currentPlan == null ? void 0 : currentPlan.planId);
|
|
17731
17789
|
const isCurrentPlanBasePlan = checkBasePlan(selectedIntervalPricing == null ? void 0 : selectedIntervalPricing.planId) && (currentPlan == null ? void 0 : currentPlan.planId) === void 0;
|
|
17732
17790
|
if (isCurrentPlanSelectedPlan || isCurrentPlanBasePlan) {
|
|
@@ -17757,12 +17815,12 @@ var PlanPricingColumn = ({
|
|
|
17757
17815
|
const isAlreadySubscribed = !_4.isEmpty(currentPlan);
|
|
17758
17816
|
const isUpgrade = action.btnLabel === "Upgrade";
|
|
17759
17817
|
const isCheckoutRequired = _4.isEmpty(paymentMethod) && (selectedIntervalPricing == null ? void 0 : selectedIntervalPricing.amount) > 0;
|
|
17760
|
-
const planHasTrial = (0,
|
|
17818
|
+
const planHasTrial = (0, import_react53.useMemo)(
|
|
17761
17819
|
() => plans.some((p) => Number(p.trial_days) > 0),
|
|
17762
17820
|
[plans]
|
|
17763
17821
|
);
|
|
17764
|
-
const planIds = (0,
|
|
17765
|
-
const onPlanActionClick = (0,
|
|
17822
|
+
const planIds = (0, import_react53.useMemo)(() => plans.map((p) => p.planId), [plans]);
|
|
17823
|
+
const onPlanActionClick = (0, import_react53.useCallback)(() => {
|
|
17766
17824
|
if ((action == null ? void 0 : action.showModal) && !isCheckoutRequired && isAlreadySubscribed) {
|
|
17767
17825
|
navigate({
|
|
17768
17826
|
to: "/plans/confirm-change/$planId",
|
|
@@ -17882,8 +17940,8 @@ var import_connect_query41 = require("@connectrpc/connect-query");
|
|
|
17882
17940
|
var import_protobuf43 = require("@bufbuild/protobuf");
|
|
17883
17941
|
var import_frontier42 = require("@raystack/proton/frontier");
|
|
17884
17942
|
|
|
17885
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
17886
|
-
var digest59 = "
|
|
17943
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-37Sc6zRcT0jV/core/react/components/organization/styles.module.css.js
|
|
17944
|
+
var digest59 = "3b07668a6146e4e9c18003466889e2609bc510ac35d2b5699935cfa109f7fe0e";
|
|
17887
17945
|
var css59 = `._header_11okm_1 {
|
|
17888
17946
|
margin-bottom: var(--rs-space-9);
|
|
17889
17947
|
}
|
|
@@ -17926,8 +17984,8 @@ var css59 = `._header_11okm_1 {
|
|
|
17926
17984
|
})();
|
|
17927
17985
|
var styles_module_css_default14 = { "header": "_header_11okm_1", "container": "_container_11okm_5", "containerFlex": "_containerFlex_11okm_10", "contentWrapper": "_contentWrapper_11okm_18", "pageWrapper": "_pageWrapper_11okm_24" };
|
|
17928
17986
|
|
|
17929
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
17930
|
-
var digest60 = "
|
|
17987
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-sMuQ6eYa4MTd/core/react/components/organization/plans/plans.module.css.js
|
|
17988
|
+
var digest60 = "3ad7169886c8cfe0be75b883f7a675ed3ff7fc8b59fd628f9de03691760f04a3";
|
|
17931
17989
|
var css60 = `._flex1_3ghb5_1 {
|
|
17932
17990
|
flex: 1;
|
|
17933
17991
|
}
|
|
@@ -18195,12 +18253,12 @@ function Plans() {
|
|
|
18195
18253
|
}
|
|
18196
18254
|
|
|
18197
18255
|
// react/components/organization/plans/confirm-change/index.tsx
|
|
18198
|
-
var
|
|
18256
|
+
var import_react55 = require("react");
|
|
18199
18257
|
var import_apsara64 = require("@raystack/apsara");
|
|
18200
18258
|
var import_react_router37 = require("@tanstack/react-router");
|
|
18201
18259
|
|
|
18202
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
18203
|
-
var digest61 = "
|
|
18260
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-xiP1ar5oih0S/core/react/components/organization/plans/plans.module.css.js
|
|
18261
|
+
var digest61 = "60fa9fb0fa7031fe030d5d07a5dcd7aac4095c434ce553b061912eb678cf16d3";
|
|
18204
18262
|
var css61 = `._flex1_3ghb5_1 {
|
|
18205
18263
|
flex: 1;
|
|
18206
18264
|
}
|
|
@@ -18334,8 +18392,8 @@ var css61 = `._flex1_3ghb5_1 {
|
|
|
18334
18392
|
})();
|
|
18335
18393
|
var plans_module_css_default4 = { "flex1": "_flex1_3ghb5_1", "leftPanel": "_leftPanel_3ghb5_5", "rightPanel": "_rightPanel_3ghb5_9", "planInfoColumn": "_planInfoColumn_3ghb5_15", "planTitle": "_planTitle_3ghb5_25", "planPrice": "_planPrice_3ghb5_33", "planPriceSub": "_planPriceSub_3ghb5_41", "planDescription": "_planDescription_3ghb5_49", "planActionBtn": "_planActionBtn_3ghb5_57", "plansIntervalList": "_plansIntervalList_3ghb5_61", "plansIntervalListItem": "_plansIntervalListItem_3ghb5_61", "plansIntervalListItemText": "_plansIntervalListItemText_3ghb5_65", "featureCell": "_featureCell_3ghb5_76", "featureTableHeading": "_featureTableHeading_3ghb5_83", "featureLabel": "_featureLabel_3ghb5_90", "trialWrapper": "_trialWrapper_3ghb5_101", "trialButton": "_trialButton_3ghb5_105", "discountText": "_discountText_3ghb5_111" };
|
|
18336
18394
|
|
|
18337
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
18338
|
-
var digest62 = "
|
|
18395
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-Tz6U3sC87zFn/core/react/components/organization/organization.module.css.js
|
|
18396
|
+
var digest62 = "8bfb7542bd2cf9d2da283a017ea74b1a0c50be563abe013203422129e974a9f7";
|
|
18339
18397
|
var css62 = `._createContainer_ipia2_1 {
|
|
18340
18398
|
margin: auto;
|
|
18341
18399
|
width: 100%;
|
|
@@ -18388,10 +18446,10 @@ var css62 = `._createContainer_ipia2_1 {
|
|
|
18388
18446
|
var organization_module_css_default15 = { "createContainer": "_createContainer_ipia2_1", "overlay": "_overlay_ipia2_8", "dropdownActionItem": "_dropdownActionItem_ipia2_13", "noSelectItem": "_noSelectItem_ipia2_30", "orgTabsContainer": "_orgTabsContainer_ipia2_35" };
|
|
18389
18447
|
|
|
18390
18448
|
// react/hooks/useMessages.ts
|
|
18391
|
-
var
|
|
18449
|
+
var import_react54 = require("react");
|
|
18392
18450
|
var import_lodash2 = require("lodash");
|
|
18393
18451
|
var useMessages = () => {
|
|
18394
|
-
const context = (0,
|
|
18452
|
+
const context = (0, import_react54.useContext)(CustomizationContext);
|
|
18395
18453
|
const config = context || defaultCustomization;
|
|
18396
18454
|
const { messages } = config;
|
|
18397
18455
|
const getMessage = (path) => {
|
|
@@ -18415,8 +18473,8 @@ function ConfirmPlanChange() {
|
|
|
18415
18473
|
basePlan,
|
|
18416
18474
|
allPlans
|
|
18417
18475
|
} = useFrontier();
|
|
18418
|
-
const [newPlan, setNewPlan] = (0,
|
|
18419
|
-
const [isNewPlanLoading, setIsNewPlanLoading] = (0,
|
|
18476
|
+
const [newPlan, setNewPlan] = (0, import_react55.useState)();
|
|
18477
|
+
const [isNewPlanLoading, setIsNewPlanLoading] = (0, import_react55.useState)(false);
|
|
18420
18478
|
const m = useMessages();
|
|
18421
18479
|
const {
|
|
18422
18480
|
changePlan,
|
|
@@ -18426,7 +18484,7 @@ function ConfirmPlanChange() {
|
|
|
18426
18484
|
cancelSubscription,
|
|
18427
18485
|
checkBasePlan
|
|
18428
18486
|
} = usePlans();
|
|
18429
|
-
const currentPlan = (0,
|
|
18487
|
+
const currentPlan = (0, import_react55.useMemo)(
|
|
18430
18488
|
() => allPlans.find((plan) => plan.id === planId),
|
|
18431
18489
|
[allPlans, planId]
|
|
18432
18490
|
);
|
|
@@ -18437,12 +18495,12 @@ function ConfirmPlanChange() {
|
|
|
18437
18495
|
Number(newPlanMetadata == null ? void 0 : newPlanMetadata.weightage),
|
|
18438
18496
|
Number(activePlanMetadata == null ? void 0 : activePlanMetadata.weightage)
|
|
18439
18497
|
);
|
|
18440
|
-
const cancel = (0,
|
|
18498
|
+
const cancel = (0, import_react55.useCallback)(() => navigate({ to: "/plans" }), [navigate]);
|
|
18441
18499
|
const newPlanSlug = isNewPlanBasePlan ? "base" : newPlan == null ? void 0 : newPlan.name;
|
|
18442
18500
|
const planChangeSlug = (activePlan == null ? void 0 : activePlan.name) ? `${activePlan == null ? void 0 : activePlan.name}:${newPlanSlug}` : "";
|
|
18443
18501
|
const planChangeMessage = planChangeSlug ? m(`billing.plan_change.${planChangeSlug}`) : "";
|
|
18444
18502
|
const isUpgrade = planAction.btnLabel === "Upgrade";
|
|
18445
|
-
const verifyChange = (0,
|
|
18503
|
+
const verifyChange = (0, import_react55.useCallback)(() => __async(this, null, function* () {
|
|
18446
18504
|
var _a2;
|
|
18447
18505
|
const planPhase = isNewPlanBasePlan ? yield verifySubscriptionCancel({}) : yield verifyPlanChange({ planId });
|
|
18448
18506
|
const actionName = planAction == null ? void 0 : planAction.btnLabel.toLowerCase();
|
|
@@ -18464,7 +18522,7 @@ function ConfirmPlanChange() {
|
|
|
18464
18522
|
verifySubscriptionCancel,
|
|
18465
18523
|
isNewPlanBasePlan
|
|
18466
18524
|
]);
|
|
18467
|
-
const onConfirm = (0,
|
|
18525
|
+
const onConfirm = (0, import_react55.useCallback)(() => __async(this, null, function* () {
|
|
18468
18526
|
if (isNewPlanBasePlan) {
|
|
18469
18527
|
cancelSubscription({
|
|
18470
18528
|
onSuccess: verifyChange
|
|
@@ -18484,7 +18542,7 @@ function ConfirmPlanChange() {
|
|
|
18484
18542
|
planId,
|
|
18485
18543
|
planAction.immediate
|
|
18486
18544
|
]);
|
|
18487
|
-
const getPlan = (0,
|
|
18545
|
+
const getPlan = (0, import_react55.useCallback)(() => {
|
|
18488
18546
|
setIsNewPlanLoading(true);
|
|
18489
18547
|
try {
|
|
18490
18548
|
const plan = isNewPlanBasePlan ? basePlan : currentPlan;
|
|
@@ -18500,7 +18558,7 @@ function ConfirmPlanChange() {
|
|
|
18500
18558
|
setIsNewPlanLoading(false);
|
|
18501
18559
|
}
|
|
18502
18560
|
}, [isNewPlanBasePlan, basePlan, currentPlan]);
|
|
18503
|
-
(0,
|
|
18561
|
+
(0, import_react55.useEffect)(() => {
|
|
18504
18562
|
if (planId) {
|
|
18505
18563
|
getPlan();
|
|
18506
18564
|
}
|
|
@@ -18584,7 +18642,7 @@ function ConfirmPlanChange() {
|
|
|
18584
18642
|
// react/components/organization/members/MemberRemoveConfirm.tsx
|
|
18585
18643
|
var import_apsara65 = require("@raystack/apsara");
|
|
18586
18644
|
var import_react_router38 = require("@tanstack/react-router");
|
|
18587
|
-
var
|
|
18645
|
+
var import_react56 = require("react");
|
|
18588
18646
|
var import_connect_query42 = require("@connectrpc/connect-query");
|
|
18589
18647
|
var import_frontier43 = require("@raystack/proton/frontier");
|
|
18590
18648
|
var import_protobuf44 = require("@bufbuild/protobuf");
|
|
@@ -18599,7 +18657,7 @@ var MemberRemoveConfirm = () => {
|
|
|
18599
18657
|
});
|
|
18600
18658
|
const { activeOrganization } = useFrontier();
|
|
18601
18659
|
const organizationId = (_a = activeOrganization == null ? void 0 : activeOrganization.id) != null ? _a : "";
|
|
18602
|
-
const [isLoading, setIsLoading] = (0,
|
|
18660
|
+
const [isLoading, setIsLoading] = (0, import_react56.useState)(false);
|
|
18603
18661
|
const t = useTerminology();
|
|
18604
18662
|
const { mutateAsync: deleteInvitation } = (0, import_connect_query42.useMutation)(
|
|
18605
18663
|
import_frontier43.FrontierServiceQueries.deleteOrganizationInvitation,
|
|
@@ -18708,7 +18766,7 @@ var import_apsara67 = require("@raystack/apsara");
|
|
|
18708
18766
|
var key_default = 'data:image/svg+xml,<svg width="33" height="33" viewBox="0 0 33 33" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g id="key">%0A<path id="Vector" d="M21.5232 7.04688C23.7323 7.04688 25.5232 8.83774 25.5232 11.0469M29.5232 11.0469C29.5232 15.4652 25.9415 19.0469 21.5232 19.0469C21.0555 19.0469 20.5972 19.0067 20.1516 18.9297C19.4009 18.8 18.6059 18.9642 18.0672 19.5029L14.5232 23.0469H11.5232V26.0469H8.52319V29.0469H3.52319V25.2895C3.52319 24.4939 3.83926 23.7308 4.40187 23.1682L13.0672 14.5029C13.6059 13.9642 13.77 13.1692 13.6403 12.4185C13.5633 11.9728 13.5232 11.5145 13.5232 11.0469C13.5232 6.6286 17.1049 3.04688 21.5232 3.04688C25.9415 3.04688 29.5232 6.6286 29.5232 11.0469Z" stroke="%23646464" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>%0A</g>%0A</svg>%0A';
|
|
18709
18767
|
|
|
18710
18768
|
// react/components/organization/api-keys/index.tsx
|
|
18711
|
-
var
|
|
18769
|
+
var import_react57 = require("react");
|
|
18712
18770
|
|
|
18713
18771
|
// react/components/organization/api-keys/columns.tsx
|
|
18714
18772
|
var import_apsara66 = require("@raystack/apsara");
|
|
@@ -18787,8 +18845,8 @@ var import_connect_query43 = require("@connectrpc/connect-query");
|
|
|
18787
18845
|
var import_protobuf45 = require("@bufbuild/protobuf");
|
|
18788
18846
|
var import_frontier44 = require("@raystack/proton/frontier");
|
|
18789
18847
|
|
|
18790
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
18791
|
-
var digest63 = "
|
|
18848
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-eoGERWtPR2hL/core/react/components/organization/styles.module.css.js
|
|
18849
|
+
var digest63 = "956303ad0627a0a95a5c2645c31dbe792ac9269420026a595079f9c3e8d7af31";
|
|
18792
18850
|
var css63 = `._header_11okm_1 {
|
|
18793
18851
|
margin-bottom: var(--rs-space-9);
|
|
18794
18852
|
}
|
|
@@ -18831,8 +18889,8 @@ var css63 = `._header_11okm_1 {
|
|
|
18831
18889
|
})();
|
|
18832
18890
|
var styles_module_css_default15 = { "header": "_header_11okm_1", "container": "_container_11okm_5", "containerFlex": "_containerFlex_11okm_10", "contentWrapper": "_contentWrapper_11okm_18", "pageWrapper": "_pageWrapper_11okm_24" };
|
|
18833
18891
|
|
|
18834
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
18835
|
-
var digest64 = "
|
|
18892
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-mqQPnsjQaLs3/core/react/components/organization/api-keys/styles.module.css.js
|
|
18893
|
+
var digest64 = "65561af2f3a42d1e104505015d6fc76268c0c9de259874131b5751317b999f09";
|
|
18836
18894
|
var css64 = `._container_9t9jq_1 {
|
|
18837
18895
|
height: 100%;
|
|
18838
18896
|
width: 100%;
|
|
@@ -18963,7 +19021,7 @@ var ApiKeysHeader = ({ isLoading }) => {
|
|
|
18963
19021
|
};
|
|
18964
19022
|
var useAccess = (orgId) => {
|
|
18965
19023
|
const resource = `app/organization:${orgId}`;
|
|
18966
|
-
const listOfPermissionsToCheck = (0,
|
|
19024
|
+
const listOfPermissionsToCheck = (0, import_react57.useMemo)(() => {
|
|
18967
19025
|
return [
|
|
18968
19026
|
{
|
|
18969
19027
|
permission: PERMISSIONS.UpdatePermission,
|
|
@@ -18975,7 +19033,7 @@ var useAccess = (orgId) => {
|
|
|
18975
19033
|
listOfPermissionsToCheck,
|
|
18976
19034
|
!!orgId
|
|
18977
19035
|
);
|
|
18978
|
-
const canUpdateWorkspace = (0,
|
|
19036
|
+
const canUpdateWorkspace = (0, import_react57.useMemo)(() => {
|
|
18979
19037
|
return shouldShowComponent(
|
|
18980
19038
|
permissions,
|
|
18981
19039
|
`${PERMISSIONS.UpdatePermission}::${resource}`
|
|
@@ -19039,7 +19097,7 @@ function ApiKeys() {
|
|
|
19039
19097
|
organization == null ? void 0 : organization.id
|
|
19040
19098
|
);
|
|
19041
19099
|
const {
|
|
19042
|
-
data:
|
|
19100
|
+
data: serviceUsersData,
|
|
19043
19101
|
isLoading: isServiceUsersLoading
|
|
19044
19102
|
} = (0, import_connect_query43.useQuery)(
|
|
19045
19103
|
import_frontier44.FrontierServiceQueries.listOrganizationServiceUsers,
|
|
@@ -19047,13 +19105,13 @@ function ApiKeys() {
|
|
|
19047
19105
|
id: (_a = organization == null ? void 0 : organization.id) != null ? _a : ""
|
|
19048
19106
|
}),
|
|
19049
19107
|
{
|
|
19050
|
-
enabled: Boolean(organization == null ? void 0 : organization.id) && canUpdateWorkspace
|
|
19051
|
-
select: (data) => {
|
|
19052
|
-
var _a2;
|
|
19053
|
-
return (_a2 = data == null ? void 0 : data.serviceusers) != null ? _a2 : [];
|
|
19054
|
-
}
|
|
19108
|
+
enabled: Boolean(organization == null ? void 0 : organization.id) && canUpdateWorkspace
|
|
19055
19109
|
}
|
|
19056
19110
|
);
|
|
19111
|
+
const serviceUsers = (0, import_react57.useMemo)(() => {
|
|
19112
|
+
var _a2;
|
|
19113
|
+
return (_a2 = serviceUsersData == null ? void 0 : serviceUsersData.serviceusers) != null ? _a2 : [];
|
|
19114
|
+
}, [serviceUsersData]);
|
|
19057
19115
|
const isLoading = isActiveOrganizationLoading || isPermissionsFetching || isServiceUsersLoading;
|
|
19058
19116
|
const serviceAccountsCount = serviceUsers == null ? void 0 : serviceUsers.length;
|
|
19059
19117
|
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_apsara67.Flex, { direction: "column", className: styles_module_css_default15.pageWrapper, children: [
|
|
@@ -19078,15 +19136,15 @@ var import_react_router41 = require("@tanstack/react-router");
|
|
|
19078
19136
|
var import_react_hook_form19 = require("react-hook-form");
|
|
19079
19137
|
var yup19 = __toESM(require("yup"));
|
|
19080
19138
|
var import_yup19 = require("@hookform/resolvers/yup");
|
|
19081
|
-
var
|
|
19139
|
+
var import_react58 = require("react");
|
|
19082
19140
|
var import_lodash3 = require("lodash");
|
|
19083
19141
|
var import_frontier45 = require("@raystack/proton/frontier");
|
|
19084
19142
|
var import_react_query11 = require("@tanstack/react-query");
|
|
19085
19143
|
var import_connect_query44 = require("@connectrpc/connect-query");
|
|
19086
19144
|
var import_protobuf46 = require("@bufbuild/protobuf");
|
|
19087
19145
|
|
|
19088
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
19089
|
-
var digest65 = "
|
|
19146
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-zcUrAg7Ffp62/core/react/components/organization/api-keys/styles.module.css.js
|
|
19147
|
+
var digest65 = "bc4c42dccfa1f078907658bb3fca86aab2e1a54f0d7347fc6a05d72d42ea6e81";
|
|
19090
19148
|
var css65 = `._container_9t9jq_1 {
|
|
19091
19149
|
height: 100%;
|
|
19092
19150
|
width: 100%;
|
|
@@ -19188,7 +19246,7 @@ var AddServiceAccount = () => {
|
|
|
19188
19246
|
resolver: (0, import_yup19.yupResolver)(serviceAccountSchema)
|
|
19189
19247
|
});
|
|
19190
19248
|
const orgId = (organization == null ? void 0 : organization.id) || "";
|
|
19191
|
-
const { data:
|
|
19249
|
+
const { data: projectsData, isLoading: isProjectsLoading } = (0, import_connect_query44.useQuery)(
|
|
19192
19250
|
import_frontier45.FrontierServiceQueries.listOrganizationProjects,
|
|
19193
19251
|
(0, import_protobuf46.create)(import_frontier45.ListOrganizationProjectsRequestSchema, {
|
|
19194
19252
|
id: orgId,
|
|
@@ -19196,14 +19254,14 @@ var AddServiceAccount = () => {
|
|
|
19196
19254
|
withMemberCount: false
|
|
19197
19255
|
}),
|
|
19198
19256
|
{
|
|
19199
|
-
enabled: Boolean(orgId)
|
|
19200
|
-
select: (data) => {
|
|
19201
|
-
var _a2;
|
|
19202
|
-
const list = (_a2 = data == null ? void 0 : data.projects) != null ? _a2 : [];
|
|
19203
|
-
return (0, import_lodash3.orderBy)(list, ["title"], ["asc"]);
|
|
19204
|
-
}
|
|
19257
|
+
enabled: Boolean(orgId)
|
|
19205
19258
|
}
|
|
19206
19259
|
);
|
|
19260
|
+
const projects = (0, import_react58.useMemo)(() => {
|
|
19261
|
+
var _a2;
|
|
19262
|
+
const list = (_a2 = projectsData == null ? void 0 : projectsData.projects) != null ? _a2 : [];
|
|
19263
|
+
return (0, import_lodash3.orderBy)(list, ["title"], ["asc"]);
|
|
19264
|
+
}, [projectsData]);
|
|
19207
19265
|
const { mutateAsync: createServiceUser } = (0, import_connect_query44.useMutation)(
|
|
19208
19266
|
import_frontier45.FrontierServiceQueries.createServiceUser
|
|
19209
19267
|
);
|
|
@@ -19213,7 +19271,7 @@ var AddServiceAccount = () => {
|
|
|
19213
19271
|
const { mutateAsync: createServiceUserToken } = (0, import_connect_query44.useMutation)(
|
|
19214
19272
|
import_frontier45.FrontierServiceQueries.createServiceUserToken
|
|
19215
19273
|
);
|
|
19216
|
-
const onSubmit = (0,
|
|
19274
|
+
const onSubmit = (0, import_react58.useCallback)(
|
|
19217
19275
|
(data) => __async(void 0, null, function* () {
|
|
19218
19276
|
var _a2;
|
|
19219
19277
|
if (!orgId)
|
|
@@ -19381,7 +19439,7 @@ var AddServiceAccount = () => {
|
|
|
19381
19439
|
};
|
|
19382
19440
|
|
|
19383
19441
|
// react/components/organization/api-keys/service-user/index.tsx
|
|
19384
|
-
var
|
|
19442
|
+
var import_react62 = require("react");
|
|
19385
19443
|
var import_apsara70 = require("@raystack/apsara");
|
|
19386
19444
|
var import_react_router42 = require("@tanstack/react-router");
|
|
19387
19445
|
|
|
@@ -19389,11 +19447,11 @@ var import_react_router42 = require("@tanstack/react-router");
|
|
|
19389
19447
|
var yup20 = __toESM(require("yup"));
|
|
19390
19448
|
var import_yup20 = require("@hookform/resolvers/yup");
|
|
19391
19449
|
var import_react_hook_form20 = require("react-hook-form");
|
|
19392
|
-
var
|
|
19450
|
+
var import_react59 = require("react");
|
|
19393
19451
|
var import_apsara69 = require("@raystack/apsara");
|
|
19394
19452
|
|
|
19395
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
19396
|
-
var digest66 = "
|
|
19453
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-Et8Gg7LAuEBK/core/react/components/organization/api-keys/service-user/styles.module.css.js
|
|
19454
|
+
var digest66 = "9c71ed7404b5de4d884911e9eaa7437d6e1af48dbc81984c8b5270cb718f254f";
|
|
19397
19455
|
var css66 = `._flex1_7ygqt_1 {
|
|
19398
19456
|
flex: 1;
|
|
19399
19457
|
}
|
|
@@ -19522,7 +19580,7 @@ function AddServiceUserToken({
|
|
|
19522
19580
|
const { mutateAsync: createServiceUserToken } = (0, import_connect_query45.useMutation)(
|
|
19523
19581
|
import_frontier46.FrontierServiceQueries.createServiceUserToken
|
|
19524
19582
|
);
|
|
19525
|
-
const onSubmit = (0,
|
|
19583
|
+
const onSubmit = (0, import_react59.useCallback)(
|
|
19526
19584
|
(data) => __async(this, null, function* () {
|
|
19527
19585
|
try {
|
|
19528
19586
|
const response = yield createServiceUserToken(
|
|
@@ -19568,9 +19626,9 @@ function AddServiceUserToken({
|
|
|
19568
19626
|
}
|
|
19569
19627
|
|
|
19570
19628
|
// react/hooks/useCopyToClipboard.ts
|
|
19571
|
-
var
|
|
19629
|
+
var import_react60 = require("react");
|
|
19572
19630
|
var useCopyToClipboard = () => {
|
|
19573
|
-
const [copiedText, setCopiedText] = (0,
|
|
19631
|
+
const [copiedText, setCopiedText] = (0, import_react60.useState)("");
|
|
19574
19632
|
const copy = (text) => __async(void 0, null, function* () {
|
|
19575
19633
|
if (!(navigator == null ? void 0 : navigator.clipboard)) {
|
|
19576
19634
|
console.warn("Clipboard not supported");
|
|
@@ -19596,6 +19654,7 @@ var import_frontier48 = require("@raystack/proton/frontier");
|
|
|
19596
19654
|
|
|
19597
19655
|
// react/components/organization/api-keys/hooks/useServiceUserTokens.ts
|
|
19598
19656
|
var import_connect_query46 = require("@connectrpc/connect-query");
|
|
19657
|
+
var import_react61 = require("react");
|
|
19599
19658
|
var import_react_query12 = require("@tanstack/react-query");
|
|
19600
19659
|
var import_protobuf48 = require("@bufbuild/protobuf");
|
|
19601
19660
|
var import_frontier47 = require("@raystack/proton/frontier");
|
|
@@ -19606,20 +19665,20 @@ var useServiceUserTokens = ({
|
|
|
19606
19665
|
}) => {
|
|
19607
19666
|
const queryClient2 = (0, import_react_query12.useQueryClient)();
|
|
19608
19667
|
const transport = (0, import_connect_query46.useTransport)();
|
|
19609
|
-
const { data:
|
|
19668
|
+
const { data: tokensData, isLoading } = (0, import_connect_query46.useQuery)(
|
|
19610
19669
|
import_frontier47.FrontierServiceQueries.listServiceUserTokens,
|
|
19611
19670
|
(0, import_protobuf48.create)(import_frontier47.ListServiceUserTokensRequestSchema, {
|
|
19612
19671
|
id,
|
|
19613
19672
|
orgId
|
|
19614
19673
|
}),
|
|
19615
19674
|
{
|
|
19616
|
-
enabled: Boolean(id) && Boolean(orgId) && Boolean(enableFetch)
|
|
19617
|
-
select: (data) => {
|
|
19618
|
-
var _a;
|
|
19619
|
-
return (_a = data == null ? void 0 : data.tokens) != null ? _a : [];
|
|
19620
|
-
}
|
|
19675
|
+
enabled: Boolean(id) && Boolean(orgId) && Boolean(enableFetch)
|
|
19621
19676
|
}
|
|
19622
19677
|
);
|
|
19678
|
+
const tokens = (0, import_react61.useMemo)(() => {
|
|
19679
|
+
var _a;
|
|
19680
|
+
return (_a = tokensData == null ? void 0 : tokensData.tokens) != null ? _a : [];
|
|
19681
|
+
}, [tokensData]);
|
|
19623
19682
|
const getQueryKey = () => {
|
|
19624
19683
|
return (0, import_connect_query46.createConnectQueryKey)({
|
|
19625
19684
|
schema: import_frontier47.FrontierServiceQueries.listServiceUserTokens,
|
|
@@ -19667,8 +19726,8 @@ var useServiceUserTokens = ({
|
|
|
19667
19726
|
};
|
|
19668
19727
|
};
|
|
19669
19728
|
|
|
19670
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
19671
|
-
var digest67 = "
|
|
19729
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-JSMt1KsVy7rd/core/react/components/organization/styles.module.css.js
|
|
19730
|
+
var digest67 = "df4b497758b36e86bf56bf8f49829eef7c197804d206005eb7fe0047880c1b7f";
|
|
19672
19731
|
var css67 = `._header_11okm_1 {
|
|
19673
19732
|
margin-bottom: var(--rs-space-9);
|
|
19674
19733
|
}
|
|
@@ -19711,8 +19770,8 @@ var css67 = `._header_11okm_1 {
|
|
|
19711
19770
|
})();
|
|
19712
19771
|
var styles_module_css_default19 = { "header": "_header_11okm_1", "container": "_container_11okm_5", "containerFlex": "_containerFlex_11okm_10", "contentWrapper": "_contentWrapper_11okm_18", "pageWrapper": "_pageWrapper_11okm_24" };
|
|
19713
19772
|
|
|
19714
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
19715
|
-
var digest68 = "
|
|
19773
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-zXgcbcPRRKEU/core/react/components/organization/api-keys/service-user/styles.module.css.js
|
|
19774
|
+
var digest68 = "d1a9787f011e18729b5b964c0d764d48e9dde2c8cd15def9ca8b1ab8ebe08dd2";
|
|
19716
19775
|
var css68 = `._flex1_7ygqt_1 {
|
|
19717
19776
|
flex: 1;
|
|
19718
19777
|
}
|
|
@@ -19858,7 +19917,7 @@ var ServiceUserTokenItem = ({
|
|
|
19858
19917
|
isLoading,
|
|
19859
19918
|
serviceUserId
|
|
19860
19919
|
}) => {
|
|
19861
|
-
const [isCopied, setIsCopied] = (0,
|
|
19920
|
+
const [isCopied, setIsCopied] = (0, import_react62.useState)(false);
|
|
19862
19921
|
const { copy } = useCopyToClipboard();
|
|
19863
19922
|
const navigate = (0, import_react_router42.useNavigate)({ from: "/api-keys/$id" });
|
|
19864
19923
|
function onRevokeClick() {
|
|
@@ -20012,8 +20071,8 @@ function ServiceUserPage() {
|
|
|
20012
20071
|
var import_apsara71 = require("@raystack/apsara");
|
|
20013
20072
|
var import_react_router43 = require("@tanstack/react-router");
|
|
20014
20073
|
|
|
20015
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
20016
|
-
var digest69 = "
|
|
20074
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-WTjuNtmpwCM3/core/react/components/organization/api-keys/styles.module.css.js
|
|
20075
|
+
var digest69 = "5d3c0723e7fbeb89b7831d3f858fa22800047481208f24b073d958998e44e0b4";
|
|
20017
20076
|
var css69 = `._container_9t9jq_1 {
|
|
20018
20077
|
height: 100%;
|
|
20019
20078
|
width: 100%;
|
|
@@ -20195,8 +20254,8 @@ var DeleteServiceAccount = () => {
|
|
|
20195
20254
|
var import_apsara72 = require("@raystack/apsara");
|
|
20196
20255
|
var import_react_router44 = require("@tanstack/react-router");
|
|
20197
20256
|
|
|
20198
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
20199
|
-
var digest70 = "
|
|
20257
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-GGuXUXSfrKYA/core/react/components/organization/api-keys/service-user/styles.module.css.js
|
|
20258
|
+
var digest70 = "035559c61472371784dc497eddcf9d138a9c2173c1dcabb29d02a1ebe2b532d6";
|
|
20200
20259
|
var css70 = `._flex1_7ygqt_1 {
|
|
20201
20260
|
flex: 1;
|
|
20202
20261
|
}
|
|
@@ -20412,10 +20471,10 @@ var DeleteServiceAccountKey = () => {
|
|
|
20412
20471
|
// react/components/organization/api-keys/service-user/projects.tsx
|
|
20413
20472
|
var import_apsara73 = require("@raystack/apsara");
|
|
20414
20473
|
var import_react_router45 = require("@tanstack/react-router");
|
|
20415
|
-
var
|
|
20474
|
+
var import_react63 = require("react");
|
|
20416
20475
|
|
|
20417
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
20418
|
-
var digest71 = "
|
|
20476
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-qxooHJBlCz4A/core/react/components/organization/api-keys/service-user/styles.module.css.js
|
|
20477
|
+
var digest71 = "c13224503354ecb6c17a565e93e05a77b3ac04005649616706232bd96cc01468";
|
|
20419
20478
|
var css71 = `._flex1_7ygqt_1 {
|
|
20420
20479
|
flex: 1;
|
|
20421
20480
|
}
|
|
@@ -20522,6 +20581,7 @@ var styles_module_css_default23 = { "flex1": "_flex1_7ygqt_1", "content": "_cont
|
|
|
20522
20581
|
var import_connect_query50 = require("@connectrpc/connect-query");
|
|
20523
20582
|
var import_protobuf52 = require("@bufbuild/protobuf");
|
|
20524
20583
|
var import_frontier51 = require("@raystack/proton/frontier");
|
|
20584
|
+
var import_lodash4 = require("lodash");
|
|
20525
20585
|
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
20526
20586
|
var getColumns10 = ({
|
|
20527
20587
|
permMap,
|
|
@@ -20570,15 +20630,12 @@ function ManageServiceUserProjects() {
|
|
|
20570
20630
|
const { id } = (0, import_react_router45.useParams)({
|
|
20571
20631
|
from: "/api-keys/$id/projects"
|
|
20572
20632
|
});
|
|
20573
|
-
const [addedProjectsMap, setAddedProjectsMap] = (0,
|
|
20633
|
+
const [addedProjectsMap, setAddedProjectsMap] = (0, import_react63.useState)(
|
|
20574
20634
|
{}
|
|
20575
20635
|
);
|
|
20576
20636
|
const navigate = (0, import_react_router45.useNavigate)({ from: "/api-keys/$id/projects" });
|
|
20577
20637
|
const orgId = (organization == null ? void 0 : organization.id) || "";
|
|
20578
|
-
const {
|
|
20579
|
-
data: projects = [],
|
|
20580
|
-
isLoading: isProjectsLoading
|
|
20581
|
-
} = (0, import_connect_query50.useQuery)(
|
|
20638
|
+
const { data: projectsData, isLoading: isProjectsLoading } = (0, import_connect_query50.useQuery)(
|
|
20582
20639
|
import_frontier51.FrontierServiceQueries.listOrganizationProjects,
|
|
20583
20640
|
(0, import_protobuf52.create)(import_frontier51.ListOrganizationProjectsRequestSchema, {
|
|
20584
20641
|
id: orgId,
|
|
@@ -20586,23 +20643,15 @@ function ManageServiceUserProjects() {
|
|
|
20586
20643
|
withMemberCount: false
|
|
20587
20644
|
}),
|
|
20588
20645
|
{
|
|
20589
|
-
enabled: Boolean(orgId)
|
|
20590
|
-
select: (data2) => {
|
|
20591
|
-
var _a;
|
|
20592
|
-
const list = (_a = data2 == null ? void 0 : data2.projects) != null ? _a : [];
|
|
20593
|
-
return list.sort(
|
|
20594
|
-
(a, b) => {
|
|
20595
|
-
var _a2, _b;
|
|
20596
|
-
return (((_a2 = a == null ? void 0 : a.title) == null ? void 0 : _a2.toLowerCase()) || "") > (((_b = b == null ? void 0 : b.title) == null ? void 0 : _b.toLowerCase()) || "") ? 1 : -1;
|
|
20597
|
-
}
|
|
20598
|
-
);
|
|
20599
|
-
}
|
|
20646
|
+
enabled: Boolean(orgId)
|
|
20600
20647
|
}
|
|
20601
20648
|
);
|
|
20602
|
-
const {
|
|
20603
|
-
|
|
20604
|
-
|
|
20605
|
-
|
|
20649
|
+
const projects = (0, import_react63.useMemo)(() => {
|
|
20650
|
+
var _a;
|
|
20651
|
+
const list = (_a = projectsData == null ? void 0 : projectsData.projects) != null ? _a : [];
|
|
20652
|
+
return (0, import_lodash4.orderBy)(list, ["title"], ["asc"]);
|
|
20653
|
+
}, [projectsData]);
|
|
20654
|
+
const { data: addedProjectsData, isLoading: isAddedProjectsLoading } = (0, import_connect_query50.useQuery)(
|
|
20606
20655
|
import_frontier51.FrontierServiceQueries.listServiceUserProjects,
|
|
20607
20656
|
(0, import_protobuf52.create)(import_frontier51.ListServiceUserProjectsRequestSchema, {
|
|
20608
20657
|
id,
|
|
@@ -20610,14 +20659,17 @@ function ManageServiceUserProjects() {
|
|
|
20610
20659
|
withPermissions: []
|
|
20611
20660
|
}),
|
|
20612
20661
|
{
|
|
20613
|
-
enabled: Boolean(id) && Boolean(orgId)
|
|
20614
|
-
select: (data2) => {
|
|
20615
|
-
var _a;
|
|
20616
|
-
return (_a = data2 == null ? void 0 : data2.projects) != null ? _a : [];
|
|
20617
|
-
}
|
|
20662
|
+
enabled: Boolean(id) && Boolean(orgId)
|
|
20618
20663
|
}
|
|
20619
20664
|
);
|
|
20620
|
-
(0,
|
|
20665
|
+
const addedProjects = (0, import_react63.useMemo)(
|
|
20666
|
+
() => {
|
|
20667
|
+
var _a;
|
|
20668
|
+
return (_a = addedProjectsData == null ? void 0 : addedProjectsData.projects) != null ? _a : [];
|
|
20669
|
+
},
|
|
20670
|
+
[addedProjectsData]
|
|
20671
|
+
);
|
|
20672
|
+
(0, import_react63.useEffect)(() => {
|
|
20621
20673
|
const permMap = addedProjects.reduce((acc, proj) => {
|
|
20622
20674
|
acc[(proj == null ? void 0 : proj.id) || ""] = { value: true, isLoading: false };
|
|
20623
20675
|
return acc;
|
|
@@ -20641,7 +20693,7 @@ function ManageServiceUserProjects() {
|
|
|
20641
20693
|
const { mutateAsync: deletePolicy } = (0, import_connect_query50.useMutation)(
|
|
20642
20694
|
import_frontier51.FrontierServiceQueries.deletePolicy
|
|
20643
20695
|
);
|
|
20644
|
-
const onAccessChange = (0,
|
|
20696
|
+
const onAccessChange = (0, import_react63.useCallback)(
|
|
20645
20697
|
(projectId, value) => __async(this, null, function* () {
|
|
20646
20698
|
try {
|
|
20647
20699
|
setAddedProjectsMap((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
@@ -20703,7 +20755,7 @@ function ManageServiceUserProjects() {
|
|
|
20703
20755
|
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_apsara73.Dialog, { open: true, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
20704
20756
|
import_apsara73.Dialog.Content,
|
|
20705
20757
|
{
|
|
20706
|
-
|
|
20758
|
+
overlayClassName: styles_module_css_default23.overlay,
|
|
20707
20759
|
className: styles_module_css_default23.manageProjectDialogContent,
|
|
20708
20760
|
children: [
|
|
20709
20761
|
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_apsara73.Dialog.Header, { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_apsara73.Flex, { justify: "between", align: "center", style: { width: "100%" }, children: [
|
|
@@ -20751,7 +20803,7 @@ var import_apsara76 = require("@raystack/apsara");
|
|
|
20751
20803
|
var import_react_router46 = require("@tanstack/react-router");
|
|
20752
20804
|
|
|
20753
20805
|
// react/hooks/useSessions.ts
|
|
20754
|
-
var
|
|
20806
|
+
var import_react64 = require("react");
|
|
20755
20807
|
var import_connect_query51 = require("@connectrpc/connect-query");
|
|
20756
20808
|
var import_react_query14 = require("@tanstack/react-query");
|
|
20757
20809
|
var import_frontier52 = require("@raystack/proton/frontier");
|
|
@@ -20783,7 +20835,7 @@ var useSessions = () => {
|
|
|
20783
20835
|
const d = timestampToDayjs(updatedAt);
|
|
20784
20836
|
return d ? d.fromNow() : "Unknown";
|
|
20785
20837
|
};
|
|
20786
|
-
const sessions = (0,
|
|
20838
|
+
const sessions = (0, import_react64.useMemo)(
|
|
20787
20839
|
() => ((sessionsData == null ? void 0 : sessionsData.sessions) || []).map((session) => {
|
|
20788
20840
|
var _a, _b, _c, _d;
|
|
20789
20841
|
return {
|
|
@@ -20839,8 +20891,8 @@ var useSessions = () => {
|
|
|
20839
20891
|
};
|
|
20840
20892
|
};
|
|
20841
20893
|
|
|
20842
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
20843
|
-
var digest72 = "
|
|
20894
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-iMkhLXUnBn1r/core/react/components/organization/styles.module.css.js
|
|
20895
|
+
var digest72 = "da6753ecf69d49d048820c8f0639b54046694939dd8096b54f99126f3f23b98d";
|
|
20844
20896
|
var css72 = `._header_11okm_1 {
|
|
20845
20897
|
margin-bottom: var(--rs-space-9);
|
|
20846
20898
|
}
|
|
@@ -20886,8 +20938,8 @@ var styles_module_css_default24 = { "header": "_header_11okm_1", "container": "_
|
|
|
20886
20938
|
// react/components/organization/sessions/session-skeleton.tsx
|
|
20887
20939
|
var import_apsara75 = require("@raystack/apsara");
|
|
20888
20940
|
|
|
20889
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
20890
|
-
var digest73 = "
|
|
20941
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-lXSpKMnwlQ4E/core/react/components/organization/sessions/sessions.module.css.js
|
|
20942
|
+
var digest73 = "2991f16c906d2a4cdecf702987c3728c097eb82734f3b1e97a499143f171d9e0";
|
|
20891
20943
|
var css73 = `._container_11igd_1 {
|
|
20892
20944
|
padding: var(--rs-space-9) var(--rs-space-11);
|
|
20893
20945
|
max-height: 80vh;
|
|
@@ -20958,8 +21010,8 @@ var SessionSkeleton = ({ count = 3 }) => {
|
|
|
20958
21010
|
] }, index)) });
|
|
20959
21011
|
};
|
|
20960
21012
|
|
|
20961
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
20962
|
-
var digest74 = "
|
|
21013
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-Q1FYaeUqC2Xj/core/react/components/organization/sessions/sessions.module.css.js
|
|
21014
|
+
var digest74 = "02df009c2c6a28401f6f68da462b22d27d59e8164986d30e8688677047f4a02e";
|
|
20963
21015
|
var css74 = `._container_11igd_1 {
|
|
20964
21016
|
padding: var(--rs-space-9) var(--rs-space-11);
|
|
20965
21017
|
max-height: 80vh;
|
|
@@ -21092,7 +21144,7 @@ var SessionsPage = () => {
|
|
|
21092
21144
|
};
|
|
21093
21145
|
|
|
21094
21146
|
// react/components/organization/sessions/revoke-session-confirm.tsx
|
|
21095
|
-
var
|
|
21147
|
+
var import_react65 = require("react");
|
|
21096
21148
|
var import_react_router47 = require("@tanstack/react-router");
|
|
21097
21149
|
var import_apsara78 = require("@raystack/apsara");
|
|
21098
21150
|
var import_connect_query52 = require("@connectrpc/connect-query");
|
|
@@ -21101,8 +21153,8 @@ var import_frontier53 = require("@raystack/proton/frontier");
|
|
|
21101
21153
|
// react/components/organization/sessions/revoke-session-final-confirm.tsx
|
|
21102
21154
|
var import_apsara77 = require("@raystack/apsara");
|
|
21103
21155
|
|
|
21104
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
21105
|
-
var digest75 = "
|
|
21156
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-55IpdW8L8HEJ/core/react/components/organization/sessions/sessions.module.css.js
|
|
21157
|
+
var digest75 = "e30044fba6d6289ba2296b5a4754fba58558649c18c304b940c6e18c469b69a9";
|
|
21106
21158
|
var css75 = `._container_11igd_1 {
|
|
21107
21159
|
padding: var(--rs-space-9) var(--rs-space-11);
|
|
21108
21160
|
max-height: 80vh;
|
|
@@ -21227,8 +21279,8 @@ var RevokeSessionFinalConfirm = ({
|
|
|
21227
21279
|
) });
|
|
21228
21280
|
};
|
|
21229
21281
|
|
|
21230
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
21231
|
-
var digest76 = "
|
|
21282
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-I51wmmUST9UF/core/react/components/organization/sessions/sessions.module.css.js
|
|
21283
|
+
var digest76 = "ba06bab630d6d455f4966ebfc1f54ffe3fdb08d8ed8c042ceec2d211f67a1c59";
|
|
21232
21284
|
var css76 = `._container_11igd_1 {
|
|
21233
21285
|
padding: var(--rs-space-9) var(--rs-space-11);
|
|
21234
21286
|
max-height: 80vh;
|
|
@@ -21294,7 +21346,7 @@ var RevokeSessionConfirm = () => {
|
|
|
21294
21346
|
const search = (0, import_react_router47.useSearch)({ from: "/sessions/revoke" });
|
|
21295
21347
|
const { sessions, revokeSession, isRevokingSession } = useSessions();
|
|
21296
21348
|
const { onLogout } = (0, import_react_router47.useRouteContext)({ from: "__root__" });
|
|
21297
|
-
const [isFinalConfirmOpen, setIsFinalConfirmOpen] = (0,
|
|
21349
|
+
const [isFinalConfirmOpen, setIsFinalConfirmOpen] = (0, import_react65.useState)(false);
|
|
21298
21350
|
const { mutate: logout } = (0, import_connect_query52.useMutation)(import_frontier53.FrontierServiceQueries.authLogout, {
|
|
21299
21351
|
onSuccess: () => {
|
|
21300
21352
|
if (onLogout) {
|
|
@@ -21309,7 +21361,7 @@ var RevokeSessionConfirm = () => {
|
|
|
21309
21361
|
}
|
|
21310
21362
|
}
|
|
21311
21363
|
});
|
|
21312
|
-
const sessionData = (0,
|
|
21364
|
+
const sessionData = (0, import_react65.useMemo)(() => {
|
|
21313
21365
|
if (!search.sessionId || sessions.length === 0) {
|
|
21314
21366
|
return null;
|
|
21315
21367
|
}
|
|
@@ -21437,10 +21489,10 @@ var RootRouter = () => {
|
|
|
21437
21489
|
{ id: organizationId },
|
|
21438
21490
|
{ enabled: !!organizationId }
|
|
21439
21491
|
);
|
|
21440
|
-
(0,
|
|
21492
|
+
(0, import_react66.useEffect)(() => {
|
|
21441
21493
|
setIsActiveOrganizationLoading(isLoading);
|
|
21442
21494
|
}, [isLoading, setIsActiveOrganizationLoading]);
|
|
21443
|
-
(0,
|
|
21495
|
+
(0, import_react66.useEffect)(() => {
|
|
21444
21496
|
if (organizationId) {
|
|
21445
21497
|
setActiveOrganization(
|
|
21446
21498
|
(organizationData == null ? void 0 : organizationData.organization) ? transformConnectOrgToV1Beta1(organizationData.organization) : void 0
|
|
@@ -21449,7 +21501,7 @@ var RootRouter = () => {
|
|
|
21449
21501
|
setActiveOrganization(void 0);
|
|
21450
21502
|
}
|
|
21451
21503
|
}, [organizationId, organizationData == null ? void 0 : organizationData.organization, setActiveOrganization]);
|
|
21452
|
-
(0,
|
|
21504
|
+
(0, import_react66.useEffect)(() => {
|
|
21453
21505
|
if (error) {
|
|
21454
21506
|
console.error("Failed to fetch organization:", error);
|
|
21455
21507
|
}
|
|
@@ -21739,7 +21791,7 @@ var OrganizationProfile = ({
|
|
|
21739
21791
|
|
|
21740
21792
|
// react/components/window/index.tsx
|
|
21741
21793
|
var import_apsara80 = require("@raystack/apsara");
|
|
21742
|
-
var
|
|
21794
|
+
var import_react67 = require("react");
|
|
21743
21795
|
|
|
21744
21796
|
// react/assets/close-close.svg
|
|
21745
21797
|
var close_close_default = 'data:image/svg+xml,<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path d="M6 11.75C2.82436 11.75 0.25 9.17564 0.25 6C0.25 2.82436 2.82436 0.25 6 0.25C9.17564 0.25 11.75 2.82436 11.75 6C11.75 9.17564 9.17564 11.75 6 11.75Z" fill="%23E5484D"/>%0A<path fill-rule="evenodd" clip-rule="evenodd" d="M8.47325 4.33992C8.6978 4.11537 8.6978 3.7513 8.47325 3.52675C8.2487 3.3022 7.88463 3.3022 7.66008 3.52675L6 5.18683L4.33992 3.52675C4.11536 3.3022 3.75129 3.3022 3.52674 3.52675C3.30219 3.7513 3.30219 4.11537 3.52674 4.33992L5.18682 6L3.52674 7.66008C3.30219 7.88463 3.30219 8.2487 3.52674 8.47325C3.75129 8.6978 4.11536 8.6978 4.33992 8.47325L6 6.81317L7.66008 8.47325C7.88463 8.6978 8.2487 8.6978 8.47325 8.47325C8.6978 8.2487 8.6978 7.88463 8.47325 7.66008L6.81317 6L8.47325 4.33992Z" fill="%233C4347"/>%0A<path d="M6 11.75C2.82436 11.75 0.25 9.17564 0.25 6C0.25 2.82436 2.82436 0.25 6 0.25C9.17564 0.25 11.75 2.82436 11.75 6C11.75 9.17564 9.17564 11.75 6 11.75Z" stroke="%237E868C" stroke-width="0.5"/>%0A</svg>%0A';
|
|
@@ -21756,8 +21808,8 @@ var resize_default_default = 'data:image/svg+xml,<svg width="12" height="12" vie
|
|
|
21756
21808
|
// react/assets/resize-expand.svg
|
|
21757
21809
|
var resize_expand_default = 'data:image/svg+xml,<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path d="M0.25 6.00001C0.25 2.82437 2.82436 0.25 6 0.25C9.17564 0.25 11.75 2.82437 11.75 6.00001C11.75 9.17564 9.17564 11.75 6 11.75C2.82436 11.75 0.25 9.17564 0.25 6.00001Z" fill="%2330A46C"/>%0A<path fill-rule="evenodd" clip-rule="evenodd" d="M9 4.96612C9.00007 4.52061 8.4614 4.29747 8.14641 4.61253L4.61366 8.14605C4.29876 8.46102 4.52179 8.9995 4.96718 8.99957L7.85678 9C8.48793 9 8.99957 8.48836 8.99957 7.85721L9 4.96612ZM4.14281 3.00043C3.51167 3.00043 3.00003 3.51207 3.00003 4.14322L3.00046 7.03301C3.00052 7.47837 3.53894 7.70142 3.85393 7.38656L7.38841 3.85363C7.70352 3.53865 7.4804 2.99993 7.03486 3L4.14281 3.00043Z" fill="%233C4347"/>%0A<path d="M0.25 6.00001C0.25 2.82437 2.82436 0.25 6 0.25C9.17564 0.25 11.75 2.82437 11.75 6.00001C11.75 9.17564 9.17564 11.75 6 11.75C2.82436 11.75 0.25 9.17564 0.25 6.00001Z" stroke="%237E868C" stroke-width="0.5"/>%0A</svg>%0A';
|
|
21758
21810
|
|
|
21759
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
21760
|
-
var digest77 = "
|
|
21811
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-fVHkr2p1C0TA/core/react/components/window/window.module.css.js
|
|
21812
|
+
var digest77 = "564393aa2da0f2525ba3e65ede5d58c690d2341a4ad864bf28c2acf9c5ecdd69";
|
|
21761
21813
|
var css77 = `._container_1sgpy_1 {
|
|
21762
21814
|
padding: 0;
|
|
21763
21815
|
}
|
|
@@ -21803,9 +21855,9 @@ var Window = (_a) => {
|
|
|
21803
21855
|
"onOpenChange",
|
|
21804
21856
|
"children"
|
|
21805
21857
|
]);
|
|
21806
|
-
const [zoom, setZoom] = (0,
|
|
21807
|
-
const [isCloseActive, setCloseActive] = (0,
|
|
21808
|
-
const [isZoomActive, setZoomActive] = (0,
|
|
21858
|
+
const [zoom, setZoom] = (0, import_react67.useState)(false);
|
|
21859
|
+
const [isCloseActive, setCloseActive] = (0, import_react67.useState)(false);
|
|
21860
|
+
const [isZoomActive, setZoomActive] = (0, import_react67.useState)(false);
|
|
21809
21861
|
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_apsara80.Dialog, __spreadProps(__spreadValues({ open, onOpenChange }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
|
|
21810
21862
|
import_apsara80.Dialog.Content,
|
|
21811
21863
|
{
|
|
@@ -21858,11 +21910,11 @@ var Window = (_a) => {
|
|
|
21858
21910
|
var import_apsara81 = require("@raystack/apsara");
|
|
21859
21911
|
|
|
21860
21912
|
// react/contexts/useMaxAllowedInstancesGuard.tsx
|
|
21861
|
-
var
|
|
21913
|
+
var import_react68 = __toESM(require("react"));
|
|
21862
21914
|
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
21863
21915
|
var counts = /* @__PURE__ */ new Map();
|
|
21864
21916
|
function useMaxAllowedInstancesGuard(name, error, maxCount = 1) {
|
|
21865
|
-
|
|
21917
|
+
import_react68.default.useEffect(() => {
|
|
21866
21918
|
const count = counts.get(name) || 0;
|
|
21867
21919
|
if (count == maxCount) {
|
|
21868
21920
|
throw new Error(error);
|
|
@@ -21887,7 +21939,7 @@ function withMaxAllowedInstancesGuard(WrappedComponent, name, error) {
|
|
|
21887
21939
|
var import_react_query15 = require("@tanstack/react-query");
|
|
21888
21940
|
var import_connect_query53 = require("@connectrpc/connect-query");
|
|
21889
21941
|
var import_connect_web = require("@connectrpc/connect-web");
|
|
21890
|
-
var
|
|
21942
|
+
var import_react69 = require("react");
|
|
21891
21943
|
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
21892
21944
|
var multipleFrontierProvidersError = "Frontier: You've added multiple <FrontierProvider> components in your React component tree. Wrap your components in a single <FrontierProvider>.";
|
|
21893
21945
|
var fetchWithCreds = (input, init) => {
|
|
@@ -21898,7 +21950,7 @@ var fetchWithCreds = (input, init) => {
|
|
|
21898
21950
|
var queryClient = new import_react_query15.QueryClient();
|
|
21899
21951
|
var FrontierProvider = (props) => {
|
|
21900
21952
|
const _a = props, { children, initialState, config, theme } = _a, options = __objRest(_a, ["children", "initialState", "config", "theme"]);
|
|
21901
|
-
const transport = (0,
|
|
21953
|
+
const transport = (0, import_react69.useMemo)(
|
|
21902
21954
|
() => (0, import_connect_web.createConnectTransport)({
|
|
21903
21955
|
baseUrl: config.connectEndpoint || "/frontier-connect",
|
|
21904
21956
|
fetch: fetchWithCreds
|
|
@@ -21923,7 +21975,7 @@ var FrontierProviderGaurd = withMaxAllowedInstancesGuard(
|
|
|
21923
21975
|
);
|
|
21924
21976
|
|
|
21925
21977
|
// react/hooks/useConnectQueryPolling.tsx
|
|
21926
|
-
var
|
|
21978
|
+
var import_react70 = require("react");
|
|
21927
21979
|
var import_connect_query54 = require("@connectrpc/connect-query");
|
|
21928
21980
|
function useConnectQueryPolling(params) {
|
|
21929
21981
|
const {
|
|
@@ -21935,8 +21987,8 @@ function useConnectQueryPolling(params) {
|
|
|
21935
21987
|
maxPoll = 40,
|
|
21936
21988
|
pollingInterval = 3e3
|
|
21937
21989
|
} = params;
|
|
21938
|
-
const [isPollingFailed, setIsPollingFailed] = (0,
|
|
21939
|
-
const pollCountRef = (0,
|
|
21990
|
+
const [isPollingFailed, setIsPollingFailed] = (0, import_react70.useState)(false);
|
|
21991
|
+
const pollCountRef = (0, import_react70.useRef)(0);
|
|
21940
21992
|
const result = (0, import_connect_query54.useQuery)(method, input, {
|
|
21941
21993
|
enabled,
|
|
21942
21994
|
select,
|
|
@@ -21968,8 +22020,8 @@ function useConnectQueryPolling(params) {
|
|
|
21968
22020
|
// react/components/Layout/index.tsx
|
|
21969
22021
|
var import_apsara82 = require("@raystack/apsara");
|
|
21970
22022
|
|
|
21971
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
21972
|
-
var digest78 = "
|
|
22023
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-1gzbjAzVLDKk/core/react/components/Layout/layout.module.css.js
|
|
22024
|
+
var digest78 = "0676fd372be79fc81bee16cea3d1acc96744a71c916020e3dd697492567a5cf5";
|
|
21973
22025
|
var css78 = `._header_13ipn_1 {
|
|
21974
22026
|
padding: var(--rs-space-5) var(--rs-space-11);
|
|
21975
22027
|
border-bottom: 1px solid var(--rs-color-border-base-primary);
|