@overmap-ai/core 1.0.46 → 1.0.48-activity-history.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants/ui.d.ts +0 -1
- package/dist/forms/fields/BooleanField/BooleanField.d.ts +2 -2
- package/dist/forms/fields/DateField/DateField.d.ts +2 -2
- package/dist/forms/fields/MultiStringField/MultiStringField.d.ts +2 -2
- package/dist/forms/fields/NumberField/NumberField.d.ts +2 -2
- package/dist/forms/fields/SelectField/MultiSelectField.d.ts +2 -2
- package/dist/forms/fields/SelectField/SelectField.d.ts +2 -2
- package/dist/forms/fields/StringOrTextFields/StringField/StringField.d.ts +2 -2
- package/dist/forms/fields/StringOrTextFields/TextField/TextField.d.ts +2 -2
- package/dist/forms/fields/UploadField/UploadField.d.ts +2 -2
- package/dist/overmap-core.js +443 -585
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +443 -584
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/sdk.d.ts +2 -1
- package/dist/sdk/services/IssueUpdateService.d.ts +4 -0
- package/dist/sdk/services/index.d.ts +1 -0
- package/dist/store/slices/issueSlice.d.ts +16 -2
- package/dist/typings/models/issues.d.ts +33 -0
- package/package.json +2 -3
package/dist/overmap-core.js
CHANGED
|
@@ -6,9 +6,9 @@ var __publicField = (obj, key, value) => {
|
|
|
6
6
|
};
|
|
7
7
|
var _a;
|
|
8
8
|
import * as React from "react";
|
|
9
|
-
import React__default, { useState, useEffect, useRef, memo, useMemo,
|
|
9
|
+
import React__default, { useState, useEffect, useRef, memo, useMemo, useCallback, createContext, createElement, useContext, forwardRef, Children, isValidElement, cloneElement, Fragment as Fragment$1, useLayoutEffect, useReducer, lazy, Suspense } from "react";
|
|
10
10
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
11
|
-
import { unsafeShowToast, AlertDialogProvider, ToastProvider, DefaultTheme, Flex as Flex$1, IconButton, Text as Text$1, useSeverityColor, Checkbox, TextArea, Select, useToast, Badge, MultiSelect, useViewportSize, Overlay, ButtonGroup, Spinner, IconColorUtility, Tooltip, Popover, useSize, ToggleButton, Separator, OvermapItem, Button, ButtonList, divButtonProps, DropdownItemMenu, Input, useAlertDialog } from "@overmap-ai/blocks";
|
|
11
|
+
import { unsafeShowToast, AlertDialogProvider, ToastProvider, DefaultTheme, Flex as Flex$1, IconButton, RiIcon, Text as Text$1, useSeverityColor, Checkbox, TextArea, Select, useToast, Badge, MultiSelect, useViewportSize, Overlay, ButtonGroup, Spinner, IconColorUtility, Tooltip, Popover, useSize, ToggleButton, Separator, OvermapItem, Button, ButtonList, divButtonProps, DropdownItemMenu, Input, useAlertDialog } from "@overmap-ai/blocks";
|
|
12
12
|
import { DepGraph } from "dependency-graph";
|
|
13
13
|
import { offline as offline$1 } from "@redux-offline/redux-offline";
|
|
14
14
|
import offlineConfig from "@redux-offline/redux-offline/lib/defaults";
|
|
@@ -28,7 +28,6 @@ import get from "lodash.get";
|
|
|
28
28
|
import Linkify from "linkify-react";
|
|
29
29
|
import { DragDropContext, Droppable, Draggable } from "@hello-pangea/dnd";
|
|
30
30
|
import { read, utils } from "xlsx";
|
|
31
|
-
import FeatherIcon from "feather-icons-react";
|
|
32
31
|
import { pdfjs, Document, Page } from "react-pdf";
|
|
33
32
|
import "react-pdf/dist/Page/AnnotationLayer.css";
|
|
34
33
|
import "react-pdf/dist/Page/TextLayer.css";
|
|
@@ -469,7 +468,7 @@ function _typeof(o) {
|
|
|
469
468
|
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
470
469
|
}, _typeof(o);
|
|
471
470
|
}
|
|
472
|
-
function _toPrimitive(input, hint) {
|
|
471
|
+
function _toPrimitive$1(input, hint) {
|
|
473
472
|
if (_typeof(input) !== "object" || input === null)
|
|
474
473
|
return input;
|
|
475
474
|
var prim = input[Symbol.toPrimitive];
|
|
@@ -481,12 +480,12 @@ function _toPrimitive(input, hint) {
|
|
|
481
480
|
}
|
|
482
481
|
return (hint === "string" ? String : Number)(input);
|
|
483
482
|
}
|
|
484
|
-
function _toPropertyKey(arg) {
|
|
485
|
-
var key = _toPrimitive(arg, "string");
|
|
483
|
+
function _toPropertyKey$1(arg) {
|
|
484
|
+
var key = _toPrimitive$1(arg, "string");
|
|
486
485
|
return _typeof(key) === "symbol" ? key : String(key);
|
|
487
486
|
}
|
|
488
|
-
function _defineProperty(obj, key, value) {
|
|
489
|
-
key = _toPropertyKey(key);
|
|
487
|
+
function _defineProperty$1(obj, key, value) {
|
|
488
|
+
key = _toPropertyKey$1(key);
|
|
490
489
|
if (key in obj) {
|
|
491
490
|
Object.defineProperty(obj, key, {
|
|
492
491
|
value,
|
|
@@ -499,7 +498,7 @@ function _defineProperty(obj, key, value) {
|
|
|
499
498
|
}
|
|
500
499
|
return obj;
|
|
501
500
|
}
|
|
502
|
-
function ownKeys(e, r) {
|
|
501
|
+
function ownKeys$1(e, r) {
|
|
503
502
|
var t = Object.keys(e);
|
|
504
503
|
if (Object.getOwnPropertySymbols) {
|
|
505
504
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -512,9 +511,9 @@ function ownKeys(e, r) {
|
|
|
512
511
|
function _objectSpread2(e) {
|
|
513
512
|
for (var r = 1; r < arguments.length; r++) {
|
|
514
513
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
515
|
-
r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
|
|
516
|
-
_defineProperty(e, r2, t[r2]);
|
|
517
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
|
|
514
|
+
r % 2 ? ownKeys$1(Object(t), true).forEach(function(r2) {
|
|
515
|
+
_defineProperty$1(e, r2, t[r2]);
|
|
516
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function(r2) {
|
|
518
517
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
519
518
|
});
|
|
520
519
|
}
|
|
@@ -2048,6 +2047,7 @@ const initialState$g = {
|
|
|
2048
2047
|
issues: {},
|
|
2049
2048
|
attachments: {},
|
|
2050
2049
|
comments: {},
|
|
2050
|
+
updates: {},
|
|
2051
2051
|
visibleStatuses: [IssueStatus.BACKLOG, IssueStatus.SELECTED],
|
|
2052
2052
|
visibleUserIds: null,
|
|
2053
2053
|
recentIssueIds: [],
|
|
@@ -2069,6 +2069,16 @@ const issueSlice = createSlice({
|
|
|
2069
2069
|
});
|
|
2070
2070
|
},
|
|
2071
2071
|
setIssueAttachments: setAttachments,
|
|
2072
|
+
setIssueUpdates: (state, action) => {
|
|
2073
|
+
if (action.payload.filter(onlyUniqueOfflineIds).length !== action.payload.length) {
|
|
2074
|
+
throw new Error("Tried to use setIssues reducer with duplicate ID's");
|
|
2075
|
+
}
|
|
2076
|
+
const newUpdates = {};
|
|
2077
|
+
for (const update of action.payload) {
|
|
2078
|
+
newUpdates[update.offline_id] = update;
|
|
2079
|
+
}
|
|
2080
|
+
state.updates = newUpdates;
|
|
2081
|
+
},
|
|
2072
2082
|
setActiveIssueId: (state, action) => {
|
|
2073
2083
|
state.activeIssueId = action.payload;
|
|
2074
2084
|
},
|
|
@@ -2080,6 +2090,17 @@ const issueSlice = createSlice({
|
|
|
2080
2090
|
},
|
|
2081
2091
|
addIssueAttachment: addAttachment,
|
|
2082
2092
|
addIssueAttachments: addAttachments,
|
|
2093
|
+
addIssueUpdate: (state, action) => {
|
|
2094
|
+
if (action.payload.offline_id in state.updates) {
|
|
2095
|
+
throw new Error(`Tried to add duplicate issue update with offline_id: ${action.payload.offline_id}`);
|
|
2096
|
+
}
|
|
2097
|
+
state.updates[action.payload.offline_id] = action.payload;
|
|
2098
|
+
},
|
|
2099
|
+
addIssueUpdates: (state, action) => {
|
|
2100
|
+
for (const update of action.payload) {
|
|
2101
|
+
state.updates[update.offline_id] = update;
|
|
2102
|
+
}
|
|
2103
|
+
},
|
|
2083
2104
|
updateIssue: (state, action) => {
|
|
2084
2105
|
if (action.payload.offline_id in state.issues) {
|
|
2085
2106
|
state.issues[action.payload.offline_id] = {
|
|
@@ -2099,6 +2120,18 @@ const issueSlice = createSlice({
|
|
|
2099
2120
|
}
|
|
2100
2121
|
},
|
|
2101
2122
|
removeIssueAttachment: removeAttachment,
|
|
2123
|
+
removeIssueUpdate: (state, action) => {
|
|
2124
|
+
if (action.payload in state.updates) {
|
|
2125
|
+
delete state.updates[action.payload];
|
|
2126
|
+
} else {
|
|
2127
|
+
throw new Error(`Failed to remove issue update because offline_id doesn't exist: ${action.payload}`);
|
|
2128
|
+
}
|
|
2129
|
+
},
|
|
2130
|
+
removeIssueUpdates: (state, action) => {
|
|
2131
|
+
for (const updateId of action.payload) {
|
|
2132
|
+
delete state.updates[updateId];
|
|
2133
|
+
}
|
|
2134
|
+
},
|
|
2102
2135
|
removeAttachmentsOfIssue: (state, action) => {
|
|
2103
2136
|
const attachments = Object.values(state.attachments).filter((a) => a.issue === action.payload);
|
|
2104
2137
|
for (const attachment of attachments) {
|
|
@@ -2155,6 +2188,8 @@ const {
|
|
|
2155
2188
|
addIssueAttachment,
|
|
2156
2189
|
addIssueAttachments,
|
|
2157
2190
|
addIssue,
|
|
2191
|
+
addIssueUpdate,
|
|
2192
|
+
addIssueUpdates,
|
|
2158
2193
|
addOrReplaceIssueComment,
|
|
2159
2194
|
addToRecentIssues,
|
|
2160
2195
|
cleanRecentIssues,
|
|
@@ -2162,11 +2197,14 @@ const {
|
|
|
2162
2197
|
removeAttachmentsOfIssue,
|
|
2163
2198
|
removeIssue,
|
|
2164
2199
|
removeIssueComment,
|
|
2200
|
+
removeIssueUpdate,
|
|
2201
|
+
removeIssueUpdates,
|
|
2165
2202
|
removeRecentIssue,
|
|
2166
2203
|
resetRecentIssues,
|
|
2167
2204
|
setActiveIssueId,
|
|
2168
2205
|
setIssueAttachments,
|
|
2169
2206
|
setIssueComments,
|
|
2207
|
+
setIssueUpdates,
|
|
2170
2208
|
setIssues,
|
|
2171
2209
|
setVisibleStatuses,
|
|
2172
2210
|
setVisibleUserIds,
|
|
@@ -2242,6 +2280,12 @@ const selectCommentsOfIssue = restructureCreateSelectorWithArgs(
|
|
|
2242
2280
|
return Object.values(commentMapping).filter((comment) => comment.issue === issueId);
|
|
2243
2281
|
})
|
|
2244
2282
|
);
|
|
2283
|
+
const selectIssueUpdateMapping = (state) => state.issueReducer.updates;
|
|
2284
|
+
const selectIssueUpdatesOfIssue = restructureCreateSelectorWithArgs(
|
|
2285
|
+
createSelector([selectIssueUpdateMapping, (_state, issueId) => issueId], (updates, issueId) => {
|
|
2286
|
+
return Object.values(updates).filter((update) => update.issue === issueId);
|
|
2287
|
+
})
|
|
2288
|
+
);
|
|
2245
2289
|
const selectAttachmentsOfIssue = restructureCreateSelectorWithArgs(
|
|
2246
2290
|
createSelector(
|
|
2247
2291
|
[selectIssueAttachments, (_state, issueId) => issueId],
|
|
@@ -2450,6 +2494,16 @@ var OrganizationAccessLevel = /* @__PURE__ */ ((OrganizationAccessLevel2) => {
|
|
|
2450
2494
|
OrganizationAccessLevel2[OrganizationAccessLevel2["ADMIN"] = 2] = "ADMIN";
|
|
2451
2495
|
return OrganizationAccessLevel2;
|
|
2452
2496
|
})(OrganizationAccessLevel || {});
|
|
2497
|
+
var IssueUpdateChange = /* @__PURE__ */ ((IssueUpdateChange2) => {
|
|
2498
|
+
IssueUpdateChange2["STATUS"] = "status";
|
|
2499
|
+
IssueUpdateChange2["PRIORITY"] = "priority";
|
|
2500
|
+
IssueUpdateChange2["CATEGORY"] = "category";
|
|
2501
|
+
IssueUpdateChange2["DESCRIPTION"] = "description";
|
|
2502
|
+
IssueUpdateChange2["TITLE"] = "title";
|
|
2503
|
+
IssueUpdateChange2["ASSIGNED_TO"] = "assigned_to";
|
|
2504
|
+
IssueUpdateChange2["DUE_DATE"] = "due_date";
|
|
2505
|
+
return IssueUpdateChange2;
|
|
2506
|
+
})(IssueUpdateChange || {});
|
|
2453
2507
|
var ProjectType = /* @__PURE__ */ ((ProjectType2) => {
|
|
2454
2508
|
ProjectType2[ProjectType2["PERSONAL"] = 0] = "PERSONAL";
|
|
2455
2509
|
ProjectType2[ProjectType2["ORGANIZATION"] = 2] = "ORGANIZATION";
|
|
@@ -3239,7 +3293,7 @@ const rehydratedReducer = rehydratedSlice.reducer;
|
|
|
3239
3293
|
const initialState$4 = {
|
|
3240
3294
|
useIssueTemplate: false,
|
|
3241
3295
|
placementMode: false,
|
|
3242
|
-
enableClustering:
|
|
3296
|
+
enableClustering: false,
|
|
3243
3297
|
svgLayout: false,
|
|
3244
3298
|
expandedSections: {
|
|
3245
3299
|
Issues: true,
|
|
@@ -3855,7 +3909,6 @@ const versioningSlice = createSlice({
|
|
|
3855
3909
|
});
|
|
3856
3910
|
const versioningReducer = versioningSlice.reducer;
|
|
3857
3911
|
const fullComponentMarkerSize = 45;
|
|
3858
|
-
const FEATHER_ICON_SIZE = "15px";
|
|
3859
3912
|
const DEFAULT_ISSUE_STATUS = IssueStatus.BACKLOG;
|
|
3860
3913
|
const DEFAULT_ISSUE_PRIORITY = IssuePriority.MEDIUM;
|
|
3861
3914
|
const OUTBOX_RETRY_DELAY = 5e3;
|
|
@@ -4172,24 +4225,19 @@ async function performRequest(action, client) {
|
|
|
4172
4225
|
const errorResponse = extractResponseFromError(error2);
|
|
4173
4226
|
const status = errorResponse == null ? void 0 : errorResponse.status;
|
|
4174
4227
|
if (status === 401) {
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
await client.auth.renewTokens();
|
|
4178
|
-
console.debug("Successfully renewed tokens; retrying request.");
|
|
4179
|
-
return await requestToSend.query(queryParams);
|
|
4180
|
-
} catch (error22) {
|
|
4181
|
-
console.warn("Failed to renew tokens.", error22);
|
|
4182
|
-
const loggedIn = state.authReducer.isLoggedIn;
|
|
4183
|
-
if (loggedIn) {
|
|
4184
|
-
console.warn("Signing out already signed-in user.");
|
|
4185
|
-
await client.auth.logout();
|
|
4186
|
-
} else {
|
|
4228
|
+
if (url.endsWith("auth/token/refresh/")) {
|
|
4229
|
+
if (state.authReducer.isLoggedIn) {
|
|
4187
4230
|
console.warn("No signed-in user to sign out.");
|
|
4188
4231
|
}
|
|
4232
|
+
await client.auth.logout();
|
|
4189
4233
|
throw new APIError("You have been signed out due to inactivity.", errorResponse, {
|
|
4190
4234
|
discard: true
|
|
4191
4235
|
});
|
|
4192
4236
|
}
|
|
4237
|
+
console.debug("Forbidden; renewing tokens and retrying.");
|
|
4238
|
+
await client.auth.renewTokens();
|
|
4239
|
+
console.debug("Successfully renewed tokens; retrying request.");
|
|
4240
|
+
return requestToSend.query(queryParams);
|
|
4193
4241
|
}
|
|
4194
4242
|
const apiErrorMessage = extractErrorMessage(errorResponse, error2) || "An unexpected error occurred.";
|
|
4195
4243
|
throw new APIError(apiErrorMessage, errorResponse, {
|
|
@@ -5774,6 +5822,28 @@ class IssueCommentService extends BaseApiService {
|
|
|
5774
5822
|
});
|
|
5775
5823
|
}
|
|
5776
5824
|
}
|
|
5825
|
+
class IssueUpdateService extends BaseApiService {
|
|
5826
|
+
async refreshStore() {
|
|
5827
|
+
const { store } = this.client;
|
|
5828
|
+
const result = await this.enqueueRequest({
|
|
5829
|
+
description: "Get issue updates",
|
|
5830
|
+
method: HttpMethod.GET,
|
|
5831
|
+
url: `/projects/${store.getState().projectReducer.activeProjectId}/issues/updates/`,
|
|
5832
|
+
blockers: [],
|
|
5833
|
+
blocks: []
|
|
5834
|
+
});
|
|
5835
|
+
let filteredResult = result.filter(onlyUniqueOfflineIds);
|
|
5836
|
+
filteredResult = filteredResult.map((comment) => {
|
|
5837
|
+
return { ...comment };
|
|
5838
|
+
});
|
|
5839
|
+
if (result.length !== filteredResult.length) {
|
|
5840
|
+
console.error(
|
|
5841
|
+
`Received duplicate comments from the API (new length ${filteredResult.length}); filtered in browser.`
|
|
5842
|
+
);
|
|
5843
|
+
}
|
|
5844
|
+
store.dispatch(setIssueUpdates(filteredResult));
|
|
5845
|
+
}
|
|
5846
|
+
}
|
|
5777
5847
|
class IssueService extends BaseApiService {
|
|
5778
5848
|
// Basic CRUD functions
|
|
5779
5849
|
// TODO: Once all models are represented in `Created<TModel>`, use `Created` in `OptimisticModelResult`, so we don't
|
|
@@ -5852,7 +5922,83 @@ class IssueService extends BaseApiService {
|
|
|
5852
5922
|
return [offlineIssues, promise];
|
|
5853
5923
|
}
|
|
5854
5924
|
update(issue) {
|
|
5925
|
+
const state = this.client.store.getState();
|
|
5926
|
+
const issueToBeUpdated = state.issueReducer.issues[issue.offline_id];
|
|
5927
|
+
if (!issueToBeUpdated) {
|
|
5928
|
+
throw new Error(
|
|
5929
|
+
`Attempting to update an issue with offline_id ${issue.offline_id} that doesn't exist in the store`
|
|
5930
|
+
);
|
|
5931
|
+
}
|
|
5855
5932
|
this.client.store.dispatch(updateIssue(issue));
|
|
5933
|
+
const changes = {};
|
|
5934
|
+
for (const issueUpdateChange of [
|
|
5935
|
+
IssueUpdateChange.TITLE,
|
|
5936
|
+
IssueUpdateChange.DESCRIPTION,
|
|
5937
|
+
IssueUpdateChange.STATUS,
|
|
5938
|
+
IssueUpdateChange.CATEGORY,
|
|
5939
|
+
IssueUpdateChange.PRIORITY,
|
|
5940
|
+
IssueUpdateChange.ASSIGNED_TO,
|
|
5941
|
+
IssueUpdateChange.DUE_DATE
|
|
5942
|
+
]) {
|
|
5943
|
+
if (issueUpdateChange in issue && issue[issueUpdateChange] !== issueToBeUpdated[issueUpdateChange]) {
|
|
5944
|
+
switch (issueUpdateChange) {
|
|
5945
|
+
case "category": {
|
|
5946
|
+
let categoryOrNull = null;
|
|
5947
|
+
const categoryIdOrNull = issue[issueUpdateChange];
|
|
5948
|
+
if (categoryIdOrNull) {
|
|
5949
|
+
categoryOrNull = state.categoryReducer.categories[categoryIdOrNull] ?? null;
|
|
5950
|
+
if (!categoryOrNull)
|
|
5951
|
+
throw new Error(
|
|
5952
|
+
`Trying to update issue category to ${categoryIdOrNull} which does not exist in store`
|
|
5953
|
+
);
|
|
5954
|
+
}
|
|
5955
|
+
changes[issueUpdateChange] = categoryOrNull ? {
|
|
5956
|
+
name: categoryOrNull.name,
|
|
5957
|
+
color: categoryOrNull.color,
|
|
5958
|
+
offline_id: categoryOrNull.offline_id
|
|
5959
|
+
} : null;
|
|
5960
|
+
break;
|
|
5961
|
+
}
|
|
5962
|
+
case "assigned_to": {
|
|
5963
|
+
let userOrNull = null;
|
|
5964
|
+
const userIdOrNull = issue[issueUpdateChange];
|
|
5965
|
+
if (userIdOrNull) {
|
|
5966
|
+
userOrNull = state.userReducer.users[userIdOrNull] ?? null;
|
|
5967
|
+
if (!userOrNull)
|
|
5968
|
+
throw new Error(
|
|
5969
|
+
`Trying to update issue assigned_to to ${userIdOrNull} which does not exist in store`
|
|
5970
|
+
);
|
|
5971
|
+
}
|
|
5972
|
+
changes[issueUpdateChange] = userOrNull ? {
|
|
5973
|
+
full_name: userOrNull.username,
|
|
5974
|
+
id: userOrNull.id
|
|
5975
|
+
} : null;
|
|
5976
|
+
break;
|
|
5977
|
+
}
|
|
5978
|
+
case "description":
|
|
5979
|
+
changes[issueUpdateChange] = issue[issueUpdateChange] ?? null;
|
|
5980
|
+
break;
|
|
5981
|
+
case "title":
|
|
5982
|
+
changes[issueUpdateChange] = issue[issueUpdateChange] ?? null;
|
|
5983
|
+
break;
|
|
5984
|
+
case "priority":
|
|
5985
|
+
changes[issueUpdateChange] = issue[issueUpdateChange];
|
|
5986
|
+
break;
|
|
5987
|
+
case "status":
|
|
5988
|
+
changes[issueUpdateChange] = issue[issueUpdateChange];
|
|
5989
|
+
break;
|
|
5990
|
+
case "due_date":
|
|
5991
|
+
changes[issueUpdateChange] = issue[issueUpdateChange] ? issue[issueUpdateChange] : null;
|
|
5992
|
+
}
|
|
5993
|
+
}
|
|
5994
|
+
}
|
|
5995
|
+
const offlineIssueUpdate = offline({
|
|
5996
|
+
created_by: state.userReducer.currentUser.id,
|
|
5997
|
+
submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
5998
|
+
issue: issueToBeUpdated.offline_id,
|
|
5999
|
+
changes
|
|
6000
|
+
});
|
|
6001
|
+
this.client.store.dispatch(addIssueUpdate(offlineIssueUpdate));
|
|
5856
6002
|
const promise = this.enqueueRequest({
|
|
5857
6003
|
description: "Edit issue",
|
|
5858
6004
|
method: HttpMethod.PATCH,
|
|
@@ -5861,23 +6007,30 @@ class IssueService extends BaseApiService {
|
|
|
5861
6007
|
blockers: [issue.offline_id],
|
|
5862
6008
|
blocks: [issue.offline_id]
|
|
5863
6009
|
});
|
|
6010
|
+
promise.catch(() => {
|
|
6011
|
+
this.client.store.dispatch(updateIssue(issueToBeUpdated));
|
|
6012
|
+
this.client.store.dispatch(removeIssueUpdate(offlineIssueUpdate.offline_id));
|
|
6013
|
+
});
|
|
5864
6014
|
const fullIssue = this.client.store.getState().issueReducer.issues[issue.offline_id];
|
|
5865
6015
|
return [fullIssue, promise];
|
|
5866
6016
|
}
|
|
5867
6017
|
async remove(id) {
|
|
5868
6018
|
const { store } = this.client;
|
|
5869
6019
|
const state = store.getState();
|
|
6020
|
+
const dispatch = store.dispatch;
|
|
5870
6021
|
const backup = state.issueReducer.issues[id];
|
|
5871
6022
|
if (!backup) {
|
|
5872
6023
|
throw new Error(`No issue with id ${id} found in the store`);
|
|
5873
6024
|
}
|
|
5874
6025
|
const attachments = Object.values(state.issueReducer.attachments).filter((a) => a.issue === id);
|
|
5875
6026
|
const attachmentsOfIssue = selectAttachmentsOfIssue(id)(state);
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
|
|
6027
|
+
const updatesOfIssue = selectIssueUpdatesOfIssue(id)(state);
|
|
6028
|
+
dispatch(removeIssue(id));
|
|
6029
|
+
dispatch(addActiveProjectIssuesCount(-1));
|
|
6030
|
+
if (attachmentsOfIssue.length > 0)
|
|
6031
|
+
dispatch(removeAttachmentsOfIssue(id));
|
|
6032
|
+
if (updatesOfIssue.length > 0)
|
|
6033
|
+
dispatch(removeIssueUpdates(updatesOfIssue.map(({ offline_id }) => offline_id)));
|
|
5881
6034
|
try {
|
|
5882
6035
|
return await this.enqueueRequest({
|
|
5883
6036
|
description: "Delete issue",
|
|
@@ -5887,9 +6040,10 @@ class IssueService extends BaseApiService {
|
|
|
5887
6040
|
blocks: []
|
|
5888
6041
|
});
|
|
5889
6042
|
} catch (e) {
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
6043
|
+
dispatch(addIssue(backup));
|
|
6044
|
+
dispatch(addIssueAttachments(attachments));
|
|
6045
|
+
dispatch(addIssueUpdates(updatesOfIssue));
|
|
6046
|
+
dispatch(addActiveProjectIssuesCount(1));
|
|
5893
6047
|
throw e;
|
|
5894
6048
|
}
|
|
5895
6049
|
}
|
|
@@ -6071,6 +6225,7 @@ class MainService extends BaseApiService {
|
|
|
6071
6225
|
store.dispatch(setProjectAttachments(project_attachments));
|
|
6072
6226
|
});
|
|
6073
6227
|
void this.client.documents.refreshStore();
|
|
6228
|
+
void this.client.issueUpdates.refreshStore();
|
|
6074
6229
|
}
|
|
6075
6230
|
store.dispatch(setIsFetchingInitialData(false));
|
|
6076
6231
|
if (overwrite) {
|
|
@@ -6112,7 +6267,6 @@ class ProjectAccessService extends BaseApiService {
|
|
|
6112
6267
|
async remove(projectAccess) {
|
|
6113
6268
|
const { store } = this.client;
|
|
6114
6269
|
store.dispatch(removeProjectAccess(projectAccess));
|
|
6115
|
-
store.dispatch(removeUser(projectAccess.user));
|
|
6116
6270
|
return this.enqueueRequest({
|
|
6117
6271
|
description: "Delete project access",
|
|
6118
6272
|
method: HttpMethod.DELETE,
|
|
@@ -7506,6 +7660,7 @@ class OvermapSDK {
|
|
|
7506
7660
|
__publicField(this, "organizationAccess", new OrganizationAccessService(this));
|
|
7507
7661
|
__publicField(this, "issues", new IssueService(this));
|
|
7508
7662
|
__publicField(this, "issueComments", new IssueCommentService(this));
|
|
7663
|
+
__publicField(this, "issueUpdates", new IssueUpdateService(this));
|
|
7509
7664
|
__publicField(this, "workspaces", new WorkspaceService(this));
|
|
7510
7665
|
__publicField(this, "main", new MainService(this));
|
|
7511
7666
|
__publicField(this, "components", new ComponentService(this));
|
|
@@ -7692,484 +7847,6 @@ const styles$b = {
|
|
|
7692
7847
|
previewImage: previewImage$1,
|
|
7693
7848
|
FullScreenImage: FullScreenImage$1
|
|
7694
7849
|
};
|
|
7695
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
7696
|
-
if (source == null)
|
|
7697
|
-
return {};
|
|
7698
|
-
var target = {};
|
|
7699
|
-
var sourceKeys = Object.keys(source);
|
|
7700
|
-
var key, i;
|
|
7701
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
7702
|
-
key = sourceKeys[i];
|
|
7703
|
-
if (excluded.indexOf(key) >= 0)
|
|
7704
|
-
continue;
|
|
7705
|
-
target[key] = source[key];
|
|
7706
|
-
}
|
|
7707
|
-
return target;
|
|
7708
|
-
}
|
|
7709
|
-
var _excluded$e = ["color"];
|
|
7710
|
-
var ArrowDownIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
7711
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
7712
|
-
return createElement("svg", Object.assign({
|
|
7713
|
-
width: "15",
|
|
7714
|
-
height: "15",
|
|
7715
|
-
viewBox: "0 0 15 15",
|
|
7716
|
-
fill: "none",
|
|
7717
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
7718
|
-
}, props, {
|
|
7719
|
-
ref: forwardedRef
|
|
7720
|
-
}), createElement("path", {
|
|
7721
|
-
d: "M7.5 2C7.77614 2 8 2.22386 8 2.5L8 11.2929L11.1464 8.14645C11.3417 7.95118 11.6583 7.95118 11.8536 8.14645C12.0488 8.34171 12.0488 8.65829 11.8536 8.85355L7.85355 12.8536C7.75979 12.9473 7.63261 13 7.5 13C7.36739 13 7.24021 12.9473 7.14645 12.8536L3.14645 8.85355C2.95118 8.65829 2.95118 8.34171 3.14645 8.14645C3.34171 7.95118 3.65829 7.95118 3.85355 8.14645L7 11.2929L7 2.5C7 2.22386 7.22386 2 7.5 2Z",
|
|
7722
|
-
fill: color,
|
|
7723
|
-
fillRule: "evenodd",
|
|
7724
|
-
clipRule: "evenodd"
|
|
7725
|
-
}));
|
|
7726
|
-
});
|
|
7727
|
-
var _excluded$f = ["color"];
|
|
7728
|
-
var ArrowLeftIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
7729
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
7730
|
-
return createElement("svg", Object.assign({
|
|
7731
|
-
width: "15",
|
|
7732
|
-
height: "15",
|
|
7733
|
-
viewBox: "0 0 15 15",
|
|
7734
|
-
fill: "none",
|
|
7735
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
7736
|
-
}, props, {
|
|
7737
|
-
ref: forwardedRef
|
|
7738
|
-
}), createElement("path", {
|
|
7739
|
-
d: "M6.85355 3.14645C7.04882 3.34171 7.04882 3.65829 6.85355 3.85355L3.70711 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H3.70711L6.85355 11.1464C7.04882 11.3417 7.04882 11.6583 6.85355 11.8536C6.65829 12.0488 6.34171 12.0488 6.14645 11.8536L2.14645 7.85355C1.95118 7.65829 1.95118 7.34171 2.14645 7.14645L6.14645 3.14645C6.34171 2.95118 6.65829 2.95118 6.85355 3.14645Z",
|
|
7740
|
-
fill: color,
|
|
7741
|
-
fillRule: "evenodd",
|
|
7742
|
-
clipRule: "evenodd"
|
|
7743
|
-
}));
|
|
7744
|
-
});
|
|
7745
|
-
var _excluded$j = ["color"];
|
|
7746
|
-
var ArrowUpIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
7747
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
7748
|
-
return createElement("svg", Object.assign({
|
|
7749
|
-
width: "15",
|
|
7750
|
-
height: "15",
|
|
7751
|
-
viewBox: "0 0 15 15",
|
|
7752
|
-
fill: "none",
|
|
7753
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
7754
|
-
}, props, {
|
|
7755
|
-
ref: forwardedRef
|
|
7756
|
-
}), createElement("path", {
|
|
7757
|
-
d: "M7.14645 2.14645C7.34171 1.95118 7.65829 1.95118 7.85355 2.14645L11.8536 6.14645C12.0488 6.34171 12.0488 6.65829 11.8536 6.85355C11.6583 7.04882 11.3417 7.04882 11.1464 6.85355L8 3.70711L8 12.5C8 12.7761 7.77614 13 7.5 13C7.22386 13 7 12.7761 7 12.5L7 3.70711L3.85355 6.85355C3.65829 7.04882 3.34171 7.04882 3.14645 6.85355C2.95118 6.65829 2.95118 6.34171 3.14645 6.14645L7.14645 2.14645Z",
|
|
7758
|
-
fill: color,
|
|
7759
|
-
fillRule: "evenodd",
|
|
7760
|
-
clipRule: "evenodd"
|
|
7761
|
-
}));
|
|
7762
|
-
});
|
|
7763
|
-
var _excluded$I = ["color"];
|
|
7764
|
-
var CalendarIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
7765
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$I);
|
|
7766
|
-
return createElement("svg", Object.assign({
|
|
7767
|
-
width: "15",
|
|
7768
|
-
height: "15",
|
|
7769
|
-
viewBox: "0 0 15 15",
|
|
7770
|
-
fill: "none",
|
|
7771
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
7772
|
-
}, props, {
|
|
7773
|
-
ref: forwardedRef
|
|
7774
|
-
}), createElement("path", {
|
|
7775
|
-
d: "M4.5 1C4.77614 1 5 1.22386 5 1.5V2H10V1.5C10 1.22386 10.2239 1 10.5 1C10.7761 1 11 1.22386 11 1.5V2H12.5C13.3284 2 14 2.67157 14 3.5V12.5C14 13.3284 13.3284 14 12.5 14H2.5C1.67157 14 1 13.3284 1 12.5V3.5C1 2.67157 1.67157 2 2.5 2H4V1.5C4 1.22386 4.22386 1 4.5 1ZM10 3V3.5C10 3.77614 10.2239 4 10.5 4C10.7761 4 11 3.77614 11 3.5V3H12.5C12.7761 3 13 3.22386 13 3.5V5H2V3.5C2 3.22386 2.22386 3 2.5 3H4V3.5C4 3.77614 4.22386 4 4.5 4C4.77614 4 5 3.77614 5 3.5V3H10ZM2 6V12.5C2 12.7761 2.22386 13 2.5 13H12.5C12.7761 13 13 12.7761 13 12.5V6H2ZM7 7.5C7 7.22386 7.22386 7 7.5 7C7.77614 7 8 7.22386 8 7.5C8 7.77614 7.77614 8 7.5 8C7.22386 8 7 7.77614 7 7.5ZM9.5 7C9.22386 7 9 7.22386 9 7.5C9 7.77614 9.22386 8 9.5 8C9.77614 8 10 7.77614 10 7.5C10 7.22386 9.77614 7 9.5 7ZM11 7.5C11 7.22386 11.2239 7 11.5 7C11.7761 7 12 7.22386 12 7.5C12 7.77614 11.7761 8 11.5 8C11.2239 8 11 7.77614 11 7.5ZM11.5 9C11.2239 9 11 9.22386 11 9.5C11 9.77614 11.2239 10 11.5 10C11.7761 10 12 9.77614 12 9.5C12 9.22386 11.7761 9 11.5 9ZM9 9.5C9 9.22386 9.22386 9 9.5 9C9.77614 9 10 9.22386 10 9.5C10 9.77614 9.77614 10 9.5 10C9.22386 10 9 9.77614 9 9.5ZM7.5 9C7.22386 9 7 9.22386 7 9.5C7 9.77614 7.22386 10 7.5 10C7.77614 10 8 9.77614 8 9.5C8 9.22386 7.77614 9 7.5 9ZM5 9.5C5 9.22386 5.22386 9 5.5 9C5.77614 9 6 9.22386 6 9.5C6 9.77614 5.77614 10 5.5 10C5.22386 10 5 9.77614 5 9.5ZM3.5 9C3.22386 9 3 9.22386 3 9.5C3 9.77614 3.22386 10 3.5 10C3.77614 10 4 9.77614 4 9.5C4 9.22386 3.77614 9 3.5 9ZM3 11.5C3 11.2239 3.22386 11 3.5 11C3.77614 11 4 11.2239 4 11.5C4 11.7761 3.77614 12 3.5 12C3.22386 12 3 11.7761 3 11.5ZM5.5 11C5.22386 11 5 11.2239 5 11.5C5 11.7761 5.22386 12 5.5 12C5.77614 12 6 11.7761 6 11.5C6 11.2239 5.77614 11 5.5 11ZM7 11.5C7 11.2239 7.22386 11 7.5 11C7.77614 11 8 11.2239 8 11.5C8 11.7761 7.77614 12 7.5 12C7.22386 12 7 11.7761 7 11.5ZM9.5 11C9.22386 11 9 11.2239 9 11.5C9 11.7761 9.22386 12 9.5 12C9.77614 12 10 11.7761 10 11.5C10 11.2239 9.77614 11 9.5 11Z",
|
|
7776
|
-
fill: color,
|
|
7777
|
-
fillRule: "evenodd",
|
|
7778
|
-
clipRule: "evenodd"
|
|
7779
|
-
}));
|
|
7780
|
-
});
|
|
7781
|
-
var _excluded$U = ["color"];
|
|
7782
|
-
var CheckCircledIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
7783
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$U);
|
|
7784
|
-
return createElement("svg", Object.assign({
|
|
7785
|
-
width: "15",
|
|
7786
|
-
height: "15",
|
|
7787
|
-
viewBox: "0 0 15 15",
|
|
7788
|
-
fill: "none",
|
|
7789
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
7790
|
-
}, props, {
|
|
7791
|
-
ref: forwardedRef
|
|
7792
|
-
}), createElement("path", {
|
|
7793
|
-
d: "M7.49991 0.877045C3.84222 0.877045 0.877075 3.84219 0.877075 7.49988C0.877075 11.1575 3.84222 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1575 14.1227 7.49988C14.1227 3.84219 11.1576 0.877045 7.49991 0.877045ZM1.82708 7.49988C1.82708 4.36686 4.36689 1.82704 7.49991 1.82704C10.6329 1.82704 13.1727 4.36686 13.1727 7.49988C13.1727 10.6329 10.6329 13.1727 7.49991 13.1727C4.36689 13.1727 1.82708 10.6329 1.82708 7.49988ZM10.1589 5.53774C10.3178 5.31191 10.2636 5.00001 10.0378 4.84109C9.81194 4.68217 9.50004 4.73642 9.34112 4.96225L6.51977 8.97154L5.35681 7.78706C5.16334 7.59002 4.84677 7.58711 4.64973 7.78058C4.45268 7.97404 4.44978 8.29061 4.64325 8.48765L6.22658 10.1003C6.33054 10.2062 6.47617 10.2604 6.62407 10.2483C6.77197 10.2363 6.90686 10.1591 6.99226 10.0377L10.1589 5.53774Z",
|
|
7794
|
-
fill: color,
|
|
7795
|
-
fillRule: "evenodd",
|
|
7796
|
-
clipRule: "evenodd"
|
|
7797
|
-
}));
|
|
7798
|
-
});
|
|
7799
|
-
var _excluded$V = ["color"];
|
|
7800
|
-
var CheckboxIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
7801
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$V);
|
|
7802
|
-
return createElement("svg", Object.assign({
|
|
7803
|
-
width: "15",
|
|
7804
|
-
height: "15",
|
|
7805
|
-
viewBox: "0 0 15 15",
|
|
7806
|
-
fill: "none",
|
|
7807
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
7808
|
-
}, props, {
|
|
7809
|
-
ref: forwardedRef
|
|
7810
|
-
}), createElement("path", {
|
|
7811
|
-
d: "M3 3H12V12H3L3 3ZM2 3C2 2.44771 2.44772 2 3 2H12C12.5523 2 13 2.44772 13 3V12C13 12.5523 12.5523 13 12 13H3C2.44771 13 2 12.5523 2 12V3ZM10.3498 5.51105C10.506 5.28337 10.4481 4.97212 10.2204 4.81587C9.99275 4.65961 9.6815 4.71751 9.52525 4.94519L6.64048 9.14857L5.19733 7.40889C5.02102 7.19635 4.7058 7.16699 4.49327 7.34329C4.28073 7.5196 4.25137 7.83482 4.42767 8.04735L6.2934 10.2964C6.39348 10.4171 6.54437 10.4838 6.70097 10.4767C6.85757 10.4695 7.00177 10.3894 7.09047 10.2601L10.3498 5.51105Z",
|
|
7812
|
-
fill: color,
|
|
7813
|
-
fillRule: "evenodd",
|
|
7814
|
-
clipRule: "evenodd"
|
|
7815
|
-
}));
|
|
7816
|
-
});
|
|
7817
|
-
var _excluded$1h = ["color"];
|
|
7818
|
-
var CopyIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
7819
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$1h);
|
|
7820
|
-
return createElement("svg", Object.assign({
|
|
7821
|
-
width: "15",
|
|
7822
|
-
height: "15",
|
|
7823
|
-
viewBox: "0 0 15 15",
|
|
7824
|
-
fill: "none",
|
|
7825
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
7826
|
-
}, props, {
|
|
7827
|
-
ref: forwardedRef
|
|
7828
|
-
}), createElement("path", {
|
|
7829
|
-
d: "M1 9.50006C1 10.3285 1.67157 11.0001 2.5 11.0001H4L4 10.0001H2.5C2.22386 10.0001 2 9.7762 2 9.50006L2 2.50006C2 2.22392 2.22386 2.00006 2.5 2.00006L9.5 2.00006C9.77614 2.00006 10 2.22392 10 2.50006V4.00002H5.5C4.67158 4.00002 4 4.67159 4 5.50002V12.5C4 13.3284 4.67158 14 5.5 14H12.5C13.3284 14 14 13.3284 14 12.5V5.50002C14 4.67159 13.3284 4.00002 12.5 4.00002H11V2.50006C11 1.67163 10.3284 1.00006 9.5 1.00006H2.5C1.67157 1.00006 1 1.67163 1 2.50006V9.50006ZM5 5.50002C5 5.22388 5.22386 5.00002 5.5 5.00002H12.5C12.7761 5.00002 13 5.22388 13 5.50002V12.5C13 12.7762 12.7761 13 12.5 13H5.5C5.22386 13 5 12.7762 5 12.5V5.50002Z",
|
|
7830
|
-
fill: color,
|
|
7831
|
-
fillRule: "evenodd",
|
|
7832
|
-
clipRule: "evenodd"
|
|
7833
|
-
}));
|
|
7834
|
-
});
|
|
7835
|
-
var _excluded$1q = ["color"];
|
|
7836
|
-
var Cross1Icon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
7837
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$1q);
|
|
7838
|
-
return createElement("svg", Object.assign({
|
|
7839
|
-
width: "15",
|
|
7840
|
-
height: "15",
|
|
7841
|
-
viewBox: "0 0 15 15",
|
|
7842
|
-
fill: "none",
|
|
7843
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
7844
|
-
}, props, {
|
|
7845
|
-
ref: forwardedRef
|
|
7846
|
-
}), createElement("path", {
|
|
7847
|
-
d: "M12.8536 2.85355C13.0488 2.65829 13.0488 2.34171 12.8536 2.14645C12.6583 1.95118 12.3417 1.95118 12.1464 2.14645L7.5 6.79289L2.85355 2.14645C2.65829 1.95118 2.34171 1.95118 2.14645 2.14645C1.95118 2.34171 1.95118 2.65829 2.14645 2.85355L6.79289 7.5L2.14645 12.1464C1.95118 12.3417 1.95118 12.6583 2.14645 12.8536C2.34171 13.0488 2.65829 13.0488 2.85355 12.8536L7.5 8.20711L12.1464 12.8536C12.3417 13.0488 12.6583 13.0488 12.8536 12.8536C13.0488 12.6583 13.0488 12.3417 12.8536 12.1464L8.20711 7.5L12.8536 2.85355Z",
|
|
7848
|
-
fill: color,
|
|
7849
|
-
fillRule: "evenodd",
|
|
7850
|
-
clipRule: "evenodd"
|
|
7851
|
-
}));
|
|
7852
|
-
});
|
|
7853
|
-
var _excluded$1K = ["color"];
|
|
7854
|
-
var DotsVerticalIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
7855
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$1K);
|
|
7856
|
-
return createElement("svg", Object.assign({
|
|
7857
|
-
width: "15",
|
|
7858
|
-
height: "15",
|
|
7859
|
-
viewBox: "0 0 15 15",
|
|
7860
|
-
fill: "none",
|
|
7861
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
7862
|
-
}, props, {
|
|
7863
|
-
ref: forwardedRef
|
|
7864
|
-
}), createElement("path", {
|
|
7865
|
-
d: "M8.625 2.5C8.625 3.12132 8.12132 3.625 7.5 3.625C6.87868 3.625 6.375 3.12132 6.375 2.5C6.375 1.87868 6.87868 1.375 7.5 1.375C8.12132 1.375 8.625 1.87868 8.625 2.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM7.5 13.625C8.12132 13.625 8.625 13.1213 8.625 12.5C8.625 11.8787 8.12132 11.375 7.5 11.375C6.87868 11.375 6.375 11.8787 6.375 12.5C6.375 13.1213 6.87868 13.625 7.5 13.625Z",
|
|
7866
|
-
fill: color,
|
|
7867
|
-
fillRule: "evenodd",
|
|
7868
|
-
clipRule: "evenodd"
|
|
7869
|
-
}));
|
|
7870
|
-
});
|
|
7871
|
-
var _excluded$1P = ["color"];
|
|
7872
|
-
var DownloadIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
7873
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$1P);
|
|
7874
|
-
return createElement("svg", Object.assign({
|
|
7875
|
-
width: "15",
|
|
7876
|
-
height: "15",
|
|
7877
|
-
viewBox: "0 0 15 15",
|
|
7878
|
-
fill: "none",
|
|
7879
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
7880
|
-
}, props, {
|
|
7881
|
-
ref: forwardedRef
|
|
7882
|
-
}), createElement("path", {
|
|
7883
|
-
d: "M7.50005 1.04999C7.74858 1.04999 7.95005 1.25146 7.95005 1.49999V8.41359L10.1819 6.18179C10.3576 6.00605 10.6425 6.00605 10.8182 6.18179C10.994 6.35753 10.994 6.64245 10.8182 6.81819L7.81825 9.81819C7.64251 9.99392 7.35759 9.99392 7.18185 9.81819L4.18185 6.81819C4.00611 6.64245 4.00611 6.35753 4.18185 6.18179C4.35759 6.00605 4.64251 6.00605 4.81825 6.18179L7.05005 8.41359V1.49999C7.05005 1.25146 7.25152 1.04999 7.50005 1.04999ZM2.5 10C2.77614 10 3 10.2239 3 10.5V12C3 12.5539 3.44565 13 3.99635 13H11.0012C11.5529 13 12 12.5528 12 12V10.5C12 10.2239 12.2239 10 12.5 10C12.7761 10 13 10.2239 13 10.5V12C13 13.1041 12.1062 14 11.0012 14H3.99635C2.89019 14 2 13.103 2 12V10.5C2 10.2239 2.22386 10 2.5 10Z",
|
|
7884
|
-
fill: color,
|
|
7885
|
-
fillRule: "evenodd",
|
|
7886
|
-
clipRule: "evenodd"
|
|
7887
|
-
}));
|
|
7888
|
-
});
|
|
7889
|
-
var _excluded$1W = ["color"];
|
|
7890
|
-
var DropdownMenuIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
7891
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$1W);
|
|
7892
|
-
return createElement("svg", Object.assign({
|
|
7893
|
-
width: "15",
|
|
7894
|
-
height: "15",
|
|
7895
|
-
viewBox: "0 0 15 15",
|
|
7896
|
-
fill: "none",
|
|
7897
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
7898
|
-
}, props, {
|
|
7899
|
-
ref: forwardedRef
|
|
7900
|
-
}), createElement("path", {
|
|
7901
|
-
d: "M7.49999 3.09998C7.27907 3.09998 7.09999 3.27906 7.09999 3.49998C7.09999 3.72089 7.27907 3.89998 7.49999 3.89998H14.5C14.7209 3.89998 14.9 3.72089 14.9 3.49998C14.9 3.27906 14.7209 3.09998 14.5 3.09998H7.49999ZM7.49998 5.1C7.27907 5.1 7.09998 5.27908 7.09998 5.5C7.09998 5.72091 7.27907 5.9 7.49998 5.9H14.5C14.7209 5.9 14.9 5.72091 14.9 5.5C14.9 5.27908 14.7209 5.1 14.5 5.1H7.49998ZM7.1 7.5C7.1 7.27908 7.27909 7.1 7.5 7.1H14.5C14.7209 7.1 14.9 7.27908 14.9 7.5C14.9 7.72091 14.7209 7.9 14.5 7.9H7.5C7.27909 7.9 7.1 7.72091 7.1 7.5ZM7.49998 9.1C7.27907 9.1 7.09998 9.27908 7.09998 9.5C7.09998 9.72091 7.27907 9.9 7.49998 9.9H14.5C14.7209 9.9 14.9 9.72091 14.9 9.5C14.9 9.27908 14.7209 9.1 14.5 9.1H7.49998ZM7.09998 11.5C7.09998 11.2791 7.27907 11.1 7.49998 11.1H14.5C14.7209 11.1 14.9 11.2791 14.9 11.5C14.9 11.7209 14.7209 11.9 14.5 11.9H7.49998C7.27907 11.9 7.09998 11.7209 7.09998 11.5ZM2.5 9.25003L5 6.00003H0L2.5 9.25003Z",
|
|
7902
|
-
fill: color,
|
|
7903
|
-
fillRule: "evenodd",
|
|
7904
|
-
clipRule: "evenodd"
|
|
7905
|
-
}));
|
|
7906
|
-
});
|
|
7907
|
-
var _excluded$26 = ["color"];
|
|
7908
|
-
var EyeOpenIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
7909
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$26);
|
|
7910
|
-
return createElement("svg", Object.assign({
|
|
7911
|
-
width: "15",
|
|
7912
|
-
height: "15",
|
|
7913
|
-
viewBox: "0 0 15 15",
|
|
7914
|
-
fill: "none",
|
|
7915
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
7916
|
-
}, props, {
|
|
7917
|
-
ref: forwardedRef
|
|
7918
|
-
}), createElement("path", {
|
|
7919
|
-
d: "M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z",
|
|
7920
|
-
fill: color,
|
|
7921
|
-
fillRule: "evenodd",
|
|
7922
|
-
clipRule: "evenodd"
|
|
7923
|
-
}));
|
|
7924
|
-
});
|
|
7925
|
-
var _excluded$2e = ["color"];
|
|
7926
|
-
var FontFamilyIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
7927
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$2e);
|
|
7928
|
-
return createElement("svg", Object.assign({
|
|
7929
|
-
width: "15",
|
|
7930
|
-
height: "15",
|
|
7931
|
-
viewBox: "0 0 15 15",
|
|
7932
|
-
fill: "none",
|
|
7933
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
7934
|
-
}, props, {
|
|
7935
|
-
ref: forwardedRef
|
|
7936
|
-
}), createElement("path", {
|
|
7937
|
-
d: "M2.5 4.5C2.5 3.09886 3.59886 2 5 2H12.499C12.7752 2 13 2.22386 13 2.5C13 2.77614 12.7761 3 12.5 3H8.69244L8.40509 3.85458C8.18869 4.49752 7.89401 5.37197 7.58091 6.29794C7.50259 6.52956 7.42308 6.76453 7.34332 7H8.5C8.77614 7 9 7.22386 9 7.5C9 7.77614 8.77614 8 8.5 8H7.00407C6.56724 9.28543 6.16435 10.4613 5.95799 11.0386C5.63627 11.9386 5.20712 12.4857 4.66741 12.7778C4.16335 13.0507 3.64154 13.0503 3.28378 13.05L3.25 13.05C2.94624 13.05 2.7 12.8037 2.7 12.5C2.7 12.1962 2.94624 11.95 3.25 11.95C3.64182 11.95 3.9035 11.9405 4.14374 11.8105C4.36443 11.691 4.65532 11.4148 4.92217 10.6683C5.10695 10.1514 5.45375 9.14134 5.8422 8H4.5C4.22386 8 4 7.77614 4 7.5C4 7.22386 4.22386 7 4.5 7H6.18187C6.30127 6.64785 6.42132 6.29323 6.53887 5.94559C6.85175 5.02025 7.14627 4.14631 7.36256 3.50368L7.53192 3H5C4.15114 3 3.5 3.65114 3.5 4.5C3.5 4.77614 3.27614 5 3 5C2.72386 5 2.5 4.77614 2.5 4.5Z",
|
|
7938
|
-
fill: color
|
|
7939
|
-
}));
|
|
7940
|
-
});
|
|
7941
|
-
var _excluded$2l = ["color"];
|
|
7942
|
-
var GearIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
7943
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$2l);
|
|
7944
|
-
return createElement("svg", Object.assign({
|
|
7945
|
-
width: "15",
|
|
7946
|
-
height: "15",
|
|
7947
|
-
viewBox: "0 0 15 15",
|
|
7948
|
-
fill: "none",
|
|
7949
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
7950
|
-
}, props, {
|
|
7951
|
-
ref: forwardedRef
|
|
7952
|
-
}), createElement("path", {
|
|
7953
|
-
d: "M7.07095 0.650238C6.67391 0.650238 6.32977 0.925096 6.24198 1.31231L6.0039 2.36247C5.6249 2.47269 5.26335 2.62363 4.92436 2.81013L4.01335 2.23585C3.67748 2.02413 3.23978 2.07312 2.95903 2.35386L2.35294 2.95996C2.0722 3.2407 2.0232 3.6784 2.23493 4.01427L2.80942 4.92561C2.62307 5.2645 2.47227 5.62594 2.36216 6.00481L1.31209 6.24287C0.924883 6.33065 0.650024 6.6748 0.650024 7.07183V7.92897C0.650024 8.32601 0.924883 8.67015 1.31209 8.75794L2.36228 8.99603C2.47246 9.375 2.62335 9.73652 2.80979 10.0755L2.2354 10.9867C2.02367 11.3225 2.07267 11.7602 2.35341 12.041L2.95951 12.6471C3.24025 12.9278 3.67795 12.9768 4.01382 12.7651L4.92506 12.1907C5.26384 12.377 5.62516 12.5278 6.0039 12.6379L6.24198 13.6881C6.32977 14.0753 6.67391 14.3502 7.07095 14.3502H7.92809C8.32512 14.3502 8.66927 14.0753 8.75705 13.6881L8.99505 12.6383C9.37411 12.5282 9.73573 12.3773 10.0748 12.1909L10.986 12.7653C11.3218 12.977 11.7595 12.928 12.0403 12.6473L12.6464 12.0412C12.9271 11.7604 12.9761 11.3227 12.7644 10.9869L12.1902 10.076C12.3768 9.73688 12.5278 9.37515 12.638 8.99596L13.6879 8.75794C14.0751 8.67015 14.35 8.32601 14.35 7.92897V7.07183C14.35 6.6748 14.0751 6.33065 13.6879 6.24287L12.6381 6.00488C12.528 5.62578 12.3771 5.26414 12.1906 4.92507L12.7648 4.01407C12.9766 3.6782 12.9276 3.2405 12.6468 2.95975L12.0407 2.35366C11.76 2.07292 11.3223 2.02392 10.9864 2.23565L10.0755 2.80989C9.73622 2.62328 9.37437 2.47229 8.99505 2.36209L8.75705 1.31231C8.66927 0.925096 8.32512 0.650238 7.92809 0.650238H7.07095ZM4.92053 3.81251C5.44724 3.44339 6.05665 3.18424 6.71543 3.06839L7.07095 1.50024H7.92809L8.28355 3.06816C8.94267 3.18387 9.5524 3.44302 10.0794 3.81224L11.4397 2.9547L12.0458 3.56079L11.1882 4.92117C11.5573 5.44798 11.8164 6.0575 11.9321 6.71638L13.5 7.07183V7.92897L11.932 8.28444C11.8162 8.94342 11.557 9.55301 11.1878 10.0798L12.0453 11.4402L11.4392 12.0462L10.0787 11.1886C9.55192 11.5576 8.94241 11.8166 8.28355 11.9323L7.92809 13.5002H7.07095L6.71543 11.932C6.0569 11.8162 5.44772 11.5572 4.92116 11.1883L3.56055 12.046L2.95445 11.4399L3.81213 10.0794C3.4431 9.55266 3.18403 8.94326 3.06825 8.2845L1.50002 7.92897V7.07183L3.06818 6.71632C3.18388 6.05765 3.44283 5.44833 3.81171 4.92165L2.95398 3.561L3.56008 2.95491L4.92053 3.81251ZM9.02496 7.50008C9.02496 8.34226 8.34223 9.02499 7.50005 9.02499C6.65786 9.02499 5.97513 8.34226 5.97513 7.50008C5.97513 6.65789 6.65786 5.97516 7.50005 5.97516C8.34223 5.97516 9.02496 6.65789 9.02496 7.50008ZM9.92496 7.50008C9.92496 8.83932 8.83929 9.92499 7.50005 9.92499C6.1608 9.92499 5.07513 8.83932 5.07513 7.50008C5.07513 6.16084 6.1608 5.07516 7.50005 5.07516C8.83929 5.07516 9.92496 6.16084 9.92496 7.50008Z",
|
|
7954
|
-
fill: color,
|
|
7955
|
-
fillRule: "evenodd",
|
|
7956
|
-
clipRule: "evenodd"
|
|
7957
|
-
}));
|
|
7958
|
-
});
|
|
7959
|
-
var _excluded$2C = ["color"];
|
|
7960
|
-
var ImageIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
7961
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$2C);
|
|
7962
|
-
return createElement("svg", Object.assign({
|
|
7963
|
-
width: "15",
|
|
7964
|
-
height: "15",
|
|
7965
|
-
viewBox: "0 0 15 15",
|
|
7966
|
-
fill: "none",
|
|
7967
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
7968
|
-
}, props, {
|
|
7969
|
-
ref: forwardedRef
|
|
7970
|
-
}), createElement("path", {
|
|
7971
|
-
d: "M2.5 1H12.5C13.3284 1 14 1.67157 14 2.5V12.5C14 13.3284 13.3284 14 12.5 14H2.5C1.67157 14 1 13.3284 1 12.5V2.5C1 1.67157 1.67157 1 2.5 1ZM2.5 2C2.22386 2 2 2.22386 2 2.5V8.3636L3.6818 6.6818C3.76809 6.59551 3.88572 6.54797 4.00774 6.55007C4.12975 6.55216 4.24568 6.60372 4.32895 6.69293L7.87355 10.4901L10.6818 7.6818C10.8575 7.50607 11.1425 7.50607 11.3182 7.6818L13 9.3636V2.5C13 2.22386 12.7761 2 12.5 2H2.5ZM2 12.5V9.6364L3.98887 7.64753L7.5311 11.4421L8.94113 13H2.5C2.22386 13 2 12.7761 2 12.5ZM12.5 13H10.155L8.48336 11.153L11 8.6364L13 10.6364V12.5C13 12.7761 12.7761 13 12.5 13ZM6.64922 5.5C6.64922 5.03013 7.03013 4.64922 7.5 4.64922C7.96987 4.64922 8.35078 5.03013 8.35078 5.5C8.35078 5.96987 7.96987 6.35078 7.5 6.35078C7.03013 6.35078 6.64922 5.96987 6.64922 5.5ZM7.5 3.74922C6.53307 3.74922 5.74922 4.53307 5.74922 5.5C5.74922 6.46693 6.53307 7.25078 7.5 7.25078C8.46693 7.25078 9.25078 6.46693 9.25078 5.5C9.25078 4.53307 8.46693 3.74922 7.5 3.74922Z",
|
|
7972
|
-
fill: color,
|
|
7973
|
-
fillRule: "evenodd",
|
|
7974
|
-
clipRule: "evenodd"
|
|
7975
|
-
}));
|
|
7976
|
-
});
|
|
7977
|
-
var _excluded$2E = ["color"];
|
|
7978
|
-
var InputIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
7979
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$2E);
|
|
7980
|
-
return createElement("svg", Object.assign({
|
|
7981
|
-
width: "15",
|
|
7982
|
-
height: "15",
|
|
7983
|
-
viewBox: "0 0 15 15",
|
|
7984
|
-
fill: "none",
|
|
7985
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
7986
|
-
}, props, {
|
|
7987
|
-
ref: forwardedRef
|
|
7988
|
-
}), createElement("path", {
|
|
7989
|
-
d: "M6.5 1C6.22386 1 6 1.22386 6 1.5C6 1.77614 6.22386 2 6.5 2C7.12671 2 7.45718 2.20028 7.65563 2.47812C7.8781 2.78957 8 3.28837 8 4V11C8 11.7116 7.8781 12.2104 7.65563 12.5219C7.45718 12.7997 7.12671 13 6.5 13C6.22386 13 6 13.2239 6 13.5C6 13.7761 6.22386 14 6.5 14C7.37329 14 8.04282 13.7003 8.46937 13.1031C8.47976 13.0886 8.48997 13.0739 8.5 13.0591C8.51003 13.0739 8.52024 13.0886 8.53063 13.1031C8.95718 13.7003 9.62671 14 10.5 14C10.7761 14 11 13.7761 11 13.5C11 13.2239 10.7761 13 10.5 13C9.87329 13 9.54282 12.7997 9.34437 12.5219C9.1219 12.2104 9 11.7116 9 11V4C9 3.28837 9.1219 2.78957 9.34437 2.47812C9.54282 2.20028 9.87329 2 10.5 2C10.7761 2 11 1.77614 11 1.5C11 1.22386 10.7761 1 10.5 1C9.62671 1 8.95718 1.29972 8.53063 1.89688C8.52024 1.91143 8.51003 1.92611 8.5 1.9409C8.48997 1.92611 8.47976 1.91143 8.46937 1.89688C8.04282 1.29972 7.37329 1 6.5 1ZM14 5H11V4H14C14.5523 4 15 4.44772 15 5V10C15 10.5523 14.5523 11 14 11H11V10H14V5ZM6 4V5H1L1 10H6V11H1C0.447715 11 0 10.5523 0 10V5C0 4.44772 0.447715 4 1 4H6Z",
|
|
7990
|
-
fill: color,
|
|
7991
|
-
fillRule: "evenodd",
|
|
7992
|
-
clipRule: "evenodd"
|
|
7993
|
-
}));
|
|
7994
|
-
});
|
|
7995
|
-
var _excluded$2Z = ["color"];
|
|
7996
|
-
var ListBulletIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
7997
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$2Z);
|
|
7998
|
-
return createElement("svg", Object.assign({
|
|
7999
|
-
width: "15",
|
|
8000
|
-
height: "15",
|
|
8001
|
-
viewBox: "0 0 15 15",
|
|
8002
|
-
fill: "none",
|
|
8003
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
8004
|
-
}, props, {
|
|
8005
|
-
ref: forwardedRef
|
|
8006
|
-
}), createElement("path", {
|
|
8007
|
-
d: "M1.5 5.25C1.91421 5.25 2.25 4.91421 2.25 4.5C2.25 4.08579 1.91421 3.75 1.5 3.75C1.08579 3.75 0.75 4.08579 0.75 4.5C0.75 4.91421 1.08579 5.25 1.5 5.25ZM4 4.5C4 4.22386 4.22386 4 4.5 4H13.5C13.7761 4 14 4.22386 14 4.5C14 4.77614 13.7761 5 13.5 5H4.5C4.22386 5 4 4.77614 4 4.5ZM4.5 7C4.22386 7 4 7.22386 4 7.5C4 7.77614 4.22386 8 4.5 8H13.5C13.7761 8 14 7.77614 14 7.5C14 7.22386 13.7761 7 13.5 7H4.5ZM4.5 10C4.22386 10 4 10.2239 4 10.5C4 10.7761 4.22386 11 4.5 11H13.5C13.7761 11 14 10.7761 14 10.5C14 10.2239 13.7761 10 13.5 10H4.5ZM2.25 7.5C2.25 7.91421 1.91421 8.25 1.5 8.25C1.08579 8.25 0.75 7.91421 0.75 7.5C0.75 7.08579 1.08579 6.75 1.5 6.75C1.91421 6.75 2.25 7.08579 2.25 7.5ZM1.5 11.25C1.91421 11.25 2.25 10.9142 2.25 10.5C2.25 10.0858 1.91421 9.75 1.5 9.75C1.08579 9.75 0.75 10.0858 0.75 10.5C0.75 10.9142 1.08579 11.25 1.5 11.25Z",
|
|
8008
|
-
fill: color,
|
|
8009
|
-
fillRule: "evenodd",
|
|
8010
|
-
clipRule: "evenodd"
|
|
8011
|
-
}));
|
|
8012
|
-
});
|
|
8013
|
-
var _excluded$3n = ["color"];
|
|
8014
|
-
var Pencil1Icon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
8015
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$3n);
|
|
8016
|
-
return createElement("svg", Object.assign({
|
|
8017
|
-
width: "15",
|
|
8018
|
-
height: "15",
|
|
8019
|
-
viewBox: "0 0 15 15",
|
|
8020
|
-
fill: "none",
|
|
8021
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
8022
|
-
}, props, {
|
|
8023
|
-
ref: forwardedRef
|
|
8024
|
-
}), createElement("path", {
|
|
8025
|
-
d: "M11.8536 1.14645C11.6583 0.951184 11.3417 0.951184 11.1465 1.14645L3.71455 8.57836C3.62459 8.66832 3.55263 8.77461 3.50251 8.89155L2.04044 12.303C1.9599 12.491 2.00189 12.709 2.14646 12.8536C2.29103 12.9981 2.50905 13.0401 2.69697 12.9596L6.10847 11.4975C6.2254 11.4474 6.3317 11.3754 6.42166 11.2855L13.8536 3.85355C14.0488 3.65829 14.0488 3.34171 13.8536 3.14645L11.8536 1.14645ZM4.42166 9.28547L11.5 2.20711L12.7929 3.5L5.71455 10.5784L4.21924 11.2192L3.78081 10.7808L4.42166 9.28547Z",
|
|
8026
|
-
fill: color,
|
|
8027
|
-
fillRule: "evenodd",
|
|
8028
|
-
clipRule: "evenodd"
|
|
8029
|
-
}));
|
|
8030
|
-
});
|
|
8031
|
-
var _excluded$3p = ["color"];
|
|
8032
|
-
var PersonIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
8033
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$3p);
|
|
8034
|
-
return createElement("svg", Object.assign({
|
|
8035
|
-
width: "15",
|
|
8036
|
-
height: "15",
|
|
8037
|
-
viewBox: "0 0 15 15",
|
|
8038
|
-
fill: "none",
|
|
8039
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
8040
|
-
}, props, {
|
|
8041
|
-
ref: forwardedRef
|
|
8042
|
-
}), createElement("path", {
|
|
8043
|
-
d: "M7.5 0.875C5.49797 0.875 3.875 2.49797 3.875 4.5C3.875 6.15288 4.98124 7.54738 6.49373 7.98351C5.2997 8.12901 4.27557 8.55134 3.50407 9.31167C2.52216 10.2794 2.02502 11.72 2.02502 13.5999C2.02502 13.8623 2.23769 14.0749 2.50002 14.0749C2.76236 14.0749 2.97502 13.8623 2.97502 13.5999C2.97502 11.8799 3.42786 10.7206 4.17091 9.9883C4.91536 9.25463 6.02674 8.87499 7.49995 8.87499C8.97317 8.87499 10.0846 9.25463 10.8291 9.98831C11.5721 10.7206 12.025 11.8799 12.025 13.5999C12.025 13.8623 12.2376 14.0749 12.5 14.0749C12.7623 14.075 12.975 13.8623 12.975 13.6C12.975 11.72 12.4778 10.2794 11.4959 9.31166C10.7244 8.55135 9.70025 8.12903 8.50625 7.98352C10.0187 7.5474 11.125 6.15289 11.125 4.5C11.125 2.49797 9.50203 0.875 7.5 0.875ZM4.825 4.5C4.825 3.02264 6.02264 1.825 7.5 1.825C8.97736 1.825 10.175 3.02264 10.175 4.5C10.175 5.97736 8.97736 7.175 7.5 7.175C6.02264 7.175 4.825 5.97736 4.825 4.5Z",
|
|
8044
|
-
fill: color,
|
|
8045
|
-
fillRule: "evenodd",
|
|
8046
|
-
clipRule: "evenodd"
|
|
8047
|
-
}));
|
|
8048
|
-
});
|
|
8049
|
-
var _excluded$3x = ["color"];
|
|
8050
|
-
var PlusIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
8051
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$3x);
|
|
8052
|
-
return createElement("svg", Object.assign({
|
|
8053
|
-
width: "15",
|
|
8054
|
-
height: "15",
|
|
8055
|
-
viewBox: "0 0 15 15",
|
|
8056
|
-
fill: "none",
|
|
8057
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
8058
|
-
}, props, {
|
|
8059
|
-
ref: forwardedRef
|
|
8060
|
-
}), createElement("path", {
|
|
8061
|
-
d: "M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",
|
|
8062
|
-
fill: color,
|
|
8063
|
-
fillRule: "evenodd",
|
|
8064
|
-
clipRule: "evenodd"
|
|
8065
|
-
}));
|
|
8066
|
-
});
|
|
8067
|
-
var _excluded$3A = ["color"];
|
|
8068
|
-
var QuestionMarkCircledIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
8069
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$3A);
|
|
8070
|
-
return createElement("svg", Object.assign({
|
|
8071
|
-
width: "15",
|
|
8072
|
-
height: "15",
|
|
8073
|
-
viewBox: "0 0 15 15",
|
|
8074
|
-
fill: "none",
|
|
8075
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
8076
|
-
}, props, {
|
|
8077
|
-
ref: forwardedRef
|
|
8078
|
-
}), createElement("path", {
|
|
8079
|
-
d: "M0.877075 7.49972C0.877075 3.84204 3.84222 0.876892 7.49991 0.876892C11.1576 0.876892 14.1227 3.84204 14.1227 7.49972C14.1227 11.1574 11.1576 14.1226 7.49991 14.1226C3.84222 14.1226 0.877075 11.1574 0.877075 7.49972ZM7.49991 1.82689C4.36689 1.82689 1.82708 4.36671 1.82708 7.49972C1.82708 10.6327 4.36689 13.1726 7.49991 13.1726C10.6329 13.1726 13.1727 10.6327 13.1727 7.49972C13.1727 4.36671 10.6329 1.82689 7.49991 1.82689ZM8.24993 10.5C8.24993 10.9142 7.91414 11.25 7.49993 11.25C7.08571 11.25 6.74993 10.9142 6.74993 10.5C6.74993 10.0858 7.08571 9.75 7.49993 9.75C7.91414 9.75 8.24993 10.0858 8.24993 10.5ZM6.05003 6.25C6.05003 5.57211 6.63511 4.925 7.50003 4.925C8.36496 4.925 8.95003 5.57211 8.95003 6.25C8.95003 6.74118 8.68002 6.99212 8.21447 7.27494C8.16251 7.30651 8.10258 7.34131 8.03847 7.37854L8.03841 7.37858C7.85521 7.48497 7.63788 7.61119 7.47449 7.73849C7.23214 7.92732 6.95003 8.23198 6.95003 8.7C6.95004 9.00376 7.19628 9.25 7.50004 9.25C7.8024 9.25 8.04778 9.00601 8.05002 8.70417L8.05056 8.7033C8.05924 8.6896 8.08493 8.65735 8.15058 8.6062C8.25207 8.52712 8.36508 8.46163 8.51567 8.37436L8.51571 8.37433C8.59422 8.32883 8.68296 8.27741 8.78559 8.21506C9.32004 7.89038 10.05 7.35382 10.05 6.25C10.05 4.92789 8.93511 3.825 7.50003 3.825C6.06496 3.825 4.95003 4.92789 4.95003 6.25C4.95003 6.55376 5.19628 6.8 5.50003 6.8C5.80379 6.8 6.05003 6.55376 6.05003 6.25Z",
|
|
8080
|
-
fill: color,
|
|
8081
|
-
fillRule: "evenodd",
|
|
8082
|
-
clipRule: "evenodd"
|
|
8083
|
-
}));
|
|
8084
|
-
});
|
|
8085
|
-
var _excluded$3K = ["color"];
|
|
8086
|
-
var RowsIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
8087
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$3K);
|
|
8088
|
-
return createElement("svg", Object.assign({
|
|
8089
|
-
width: "15",
|
|
8090
|
-
height: "15",
|
|
8091
|
-
viewBox: "0 0 15 15",
|
|
8092
|
-
fill: "none",
|
|
8093
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
8094
|
-
}, props, {
|
|
8095
|
-
ref: forwardedRef
|
|
8096
|
-
}), createElement("path", {
|
|
8097
|
-
d: "M14 12.85L1 12.85L1 14.15L14 14.15L14 12.85ZM14 8.85002L1 8.85002L1 10.15L14 10.15L14 8.85002ZM1 4.85003L14 4.85003L14 6.15003L1 6.15002L1 4.85003ZM14 0.850025L1 0.850025L1 2.15002L14 2.15002L14 0.850025Z",
|
|
8098
|
-
fill: color,
|
|
8099
|
-
fillRule: "evenodd",
|
|
8100
|
-
clipRule: "evenodd"
|
|
8101
|
-
}));
|
|
8102
|
-
});
|
|
8103
|
-
var _excluded$4a = ["color"];
|
|
8104
|
-
var StarIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
8105
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$4a);
|
|
8106
|
-
return createElement("svg", Object.assign({
|
|
8107
|
-
width: "15",
|
|
8108
|
-
height: "15",
|
|
8109
|
-
viewBox: "0 0 15 15",
|
|
8110
|
-
fill: "none",
|
|
8111
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
8112
|
-
}, props, {
|
|
8113
|
-
ref: forwardedRef
|
|
8114
|
-
}), createElement("path", {
|
|
8115
|
-
d: "M6.97942 1.25171L6.9585 1.30199L5.58662 4.60039C5.54342 4.70426 5.44573 4.77523 5.3336 4.78422L1.7727 5.0697L1.71841 5.07405L1.38687 5.10063L1.08608 5.12475C0.820085 5.14607 0.712228 5.47802 0.914889 5.65162L1.14406 5.84793L1.39666 6.06431L1.43802 6.09974L4.15105 8.42374C4.23648 8.49692 4.2738 8.61176 4.24769 8.72118L3.41882 12.196L3.40618 12.249L3.32901 12.5725L3.25899 12.866C3.19708 13.1256 3.47945 13.3308 3.70718 13.1917L3.9647 13.0344L4.24854 12.861L4.29502 12.8326L7.34365 10.9705C7.43965 10.9119 7.5604 10.9119 7.6564 10.9705L10.705 12.8326L10.7515 12.861L11.0354 13.0344L11.2929 13.1917C11.5206 13.3308 11.803 13.1256 11.7411 12.866L11.671 12.5725L11.5939 12.249L11.5812 12.196L10.7524 8.72118C10.7263 8.61176 10.7636 8.49692 10.849 8.42374L13.562 6.09974L13.6034 6.06431L13.856 5.84793L14.0852 5.65162C14.2878 5.47802 14.18 5.14607 13.914 5.12475L13.6132 5.10063L13.2816 5.07405L13.2274 5.0697L9.66645 4.78422C9.55432 4.77523 9.45663 4.70426 9.41343 4.60039L8.04155 1.30199L8.02064 1.25171L7.89291 0.944609L7.77702 0.665992C7.67454 0.419604 7.32551 0.419604 7.22303 0.665992L7.10715 0.944609L6.97942 1.25171ZM7.50003 2.60397L6.50994 4.98442C6.32273 5.43453 5.89944 5.74207 5.41351 5.78103L2.84361 5.98705L4.8016 7.66428C5.17183 7.98142 5.33351 8.47903 5.2204 8.95321L4.62221 11.461L6.8224 10.1171C7.23842 9.86302 7.76164 9.86302 8.17766 10.1171L10.3778 11.461L9.77965 8.95321C9.66654 8.47903 9.82822 7.98142 10.1984 7.66428L12.1564 5.98705L9.58654 5.78103C9.10061 5.74207 8.67732 5.43453 8.49011 4.98442L7.50003 2.60397Z",
|
|
8116
|
-
fill: color,
|
|
8117
|
-
fillRule: "evenodd",
|
|
8118
|
-
clipRule: "evenodd"
|
|
8119
|
-
}));
|
|
8120
|
-
});
|
|
8121
|
-
var _excluded$4b = ["color"];
|
|
8122
|
-
var StarFilledIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
8123
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$4b);
|
|
8124
|
-
return createElement("svg", Object.assign({
|
|
8125
|
-
width: "15",
|
|
8126
|
-
height: "15",
|
|
8127
|
-
viewBox: "0 0 15 15",
|
|
8128
|
-
fill: "none",
|
|
8129
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
8130
|
-
}, props, {
|
|
8131
|
-
ref: forwardedRef
|
|
8132
|
-
}), createElement("path", {
|
|
8133
|
-
d: "M7.22303 0.665992C7.32551 0.419604 7.67454 0.419604 7.77702 0.665992L9.41343 4.60039C9.45663 4.70426 9.55432 4.77523 9.66645 4.78422L13.914 5.12475C14.18 5.14607 14.2878 5.47802 14.0852 5.65162L10.849 8.42374C10.7636 8.49692 10.7263 8.61176 10.7524 8.72118L11.7411 12.866C11.803 13.1256 11.5206 13.3308 11.2929 13.1917L7.6564 10.9705C7.5604 10.9119 7.43965 10.9119 7.34365 10.9705L3.70718 13.1917C3.47945 13.3308 3.19708 13.1256 3.25899 12.866L4.24769 8.72118C4.2738 8.61176 4.23648 8.49692 4.15105 8.42374L0.914889 5.65162C0.712228 5.47802 0.820086 5.14607 1.08608 5.12475L5.3336 4.78422C5.44573 4.77523 5.54342 4.70426 5.58662 4.60039L7.22303 0.665992Z",
|
|
8134
|
-
fill: color
|
|
8135
|
-
}));
|
|
8136
|
-
});
|
|
8137
|
-
var _excluded$4G = ["color"];
|
|
8138
|
-
var TrashIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
8139
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$4G);
|
|
8140
|
-
return createElement("svg", Object.assign({
|
|
8141
|
-
width: "15",
|
|
8142
|
-
height: "15",
|
|
8143
|
-
viewBox: "0 0 15 15",
|
|
8144
|
-
fill: "none",
|
|
8145
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
8146
|
-
}, props, {
|
|
8147
|
-
ref: forwardedRef
|
|
8148
|
-
}), createElement("path", {
|
|
8149
|
-
d: "M5.5 1C5.22386 1 5 1.22386 5 1.5C5 1.77614 5.22386 2 5.5 2H9.5C9.77614 2 10 1.77614 10 1.5C10 1.22386 9.77614 1 9.5 1H5.5ZM3 3.5C3 3.22386 3.22386 3 3.5 3H5H10H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12C11 12.5523 10.5523 13 10 13H5C4.44772 13 4 12.5523 4 12V4L3.5 4C3.22386 4 3 3.77614 3 3.5ZM5 4H10V12H5V4Z",
|
|
8150
|
-
fill: color,
|
|
8151
|
-
fillRule: "evenodd",
|
|
8152
|
-
clipRule: "evenodd"
|
|
8153
|
-
}));
|
|
8154
|
-
});
|
|
8155
|
-
var _excluded$4O = ["color"];
|
|
8156
|
-
var UploadIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
8157
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$4O);
|
|
8158
|
-
return createElement("svg", Object.assign({
|
|
8159
|
-
width: "15",
|
|
8160
|
-
height: "15",
|
|
8161
|
-
viewBox: "0 0 15 15",
|
|
8162
|
-
fill: "none",
|
|
8163
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
8164
|
-
}, props, {
|
|
8165
|
-
ref: forwardedRef
|
|
8166
|
-
}), createElement("path", {
|
|
8167
|
-
d: "M7.81825 1.18188C7.64251 1.00615 7.35759 1.00615 7.18185 1.18188L4.18185 4.18188C4.00611 4.35762 4.00611 4.64254 4.18185 4.81828C4.35759 4.99401 4.64251 4.99401 4.81825 4.81828L7.05005 2.58648V9.49996C7.05005 9.74849 7.25152 9.94996 7.50005 9.94996C7.74858 9.94996 7.95005 9.74849 7.95005 9.49996V2.58648L10.1819 4.81828C10.3576 4.99401 10.6425 4.99401 10.8182 4.81828C10.994 4.64254 10.994 4.35762 10.8182 4.18188L7.81825 1.18188ZM2.5 9.99997C2.77614 9.99997 3 10.2238 3 10.5V12C3 12.5538 3.44565 13 3.99635 13H11.0012C11.5529 13 12 12.5528 12 12V10.5C12 10.2238 12.2239 9.99997 12.5 9.99997C12.7761 9.99997 13 10.2238 13 10.5V12C13 13.104 12.1062 14 11.0012 14H3.99635C2.89019 14 2 13.103 2 12V10.5C2 10.2238 2.22386 9.99997 2.5 9.99997Z",
|
|
8168
|
-
fill: color,
|
|
8169
|
-
fillRule: "evenodd",
|
|
8170
|
-
clipRule: "evenodd"
|
|
8171
|
-
}));
|
|
8172
|
-
});
|
|
8173
7850
|
const FullScreenImagePreview = memo((props) => {
|
|
8174
7851
|
const { file, url, name, setShowPreview } = props;
|
|
8175
7852
|
const handleDownload = useCallback(
|
|
@@ -8212,7 +7889,7 @@ const FullScreenImagePreview = memo((props) => {
|
|
|
8212
7889
|
onClick: () => {
|
|
8213
7890
|
setShowPreview(false);
|
|
8214
7891
|
},
|
|
8215
|
-
children: /* @__PURE__ */ jsx(
|
|
7892
|
+
children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiArrowLeftLine" })
|
|
8216
7893
|
}
|
|
8217
7894
|
),
|
|
8218
7895
|
/* @__PURE__ */ jsx(Text$1, { className: styles$b.fileName, children: name }),
|
|
@@ -8223,7 +7900,7 @@ const FullScreenImagePreview = memo((props) => {
|
|
|
8223
7900
|
variant: "soft",
|
|
8224
7901
|
"aria-label": `Download ${name}`,
|
|
8225
7902
|
onClick: handleDownload,
|
|
8226
|
-
children: /* @__PURE__ */ jsx(
|
|
7903
|
+
children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiDownload2Line" })
|
|
8227
7904
|
}
|
|
8228
7905
|
)
|
|
8229
7906
|
] })
|
|
@@ -8361,6 +8038,187 @@ const BooleanInput = memo((props) => {
|
|
|
8361
8038
|
) });
|
|
8362
8039
|
});
|
|
8363
8040
|
BooleanInput.displayName = "BooleanInput";
|
|
8041
|
+
var DefaultContext = {
|
|
8042
|
+
color: void 0,
|
|
8043
|
+
size: void 0,
|
|
8044
|
+
className: void 0,
|
|
8045
|
+
style: void 0,
|
|
8046
|
+
attr: void 0
|
|
8047
|
+
};
|
|
8048
|
+
var IconContext = React__default.createContext && /* @__PURE__ */ React__default.createContext(DefaultContext);
|
|
8049
|
+
var _excluded = ["attr", "size", "title"];
|
|
8050
|
+
function _objectWithoutProperties(source, excluded) {
|
|
8051
|
+
if (source == null)
|
|
8052
|
+
return {};
|
|
8053
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
8054
|
+
var key, i;
|
|
8055
|
+
if (Object.getOwnPropertySymbols) {
|
|
8056
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
8057
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
8058
|
+
key = sourceSymbolKeys[i];
|
|
8059
|
+
if (excluded.indexOf(key) >= 0)
|
|
8060
|
+
continue;
|
|
8061
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
8062
|
+
continue;
|
|
8063
|
+
target[key] = source[key];
|
|
8064
|
+
}
|
|
8065
|
+
}
|
|
8066
|
+
return target;
|
|
8067
|
+
}
|
|
8068
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
8069
|
+
if (source == null)
|
|
8070
|
+
return {};
|
|
8071
|
+
var target = {};
|
|
8072
|
+
for (var key in source) {
|
|
8073
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8074
|
+
if (excluded.indexOf(key) >= 0)
|
|
8075
|
+
continue;
|
|
8076
|
+
target[key] = source[key];
|
|
8077
|
+
}
|
|
8078
|
+
}
|
|
8079
|
+
return target;
|
|
8080
|
+
}
|
|
8081
|
+
function _extends$1() {
|
|
8082
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
8083
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
8084
|
+
var source = arguments[i];
|
|
8085
|
+
for (var key in source) {
|
|
8086
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8087
|
+
target[key] = source[key];
|
|
8088
|
+
}
|
|
8089
|
+
}
|
|
8090
|
+
}
|
|
8091
|
+
return target;
|
|
8092
|
+
};
|
|
8093
|
+
return _extends$1.apply(this, arguments);
|
|
8094
|
+
}
|
|
8095
|
+
function ownKeys(e, r) {
|
|
8096
|
+
var t = Object.keys(e);
|
|
8097
|
+
if (Object.getOwnPropertySymbols) {
|
|
8098
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
8099
|
+
r && (o = o.filter(function(r2) {
|
|
8100
|
+
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
8101
|
+
})), t.push.apply(t, o);
|
|
8102
|
+
}
|
|
8103
|
+
return t;
|
|
8104
|
+
}
|
|
8105
|
+
function _objectSpread(e) {
|
|
8106
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
8107
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
8108
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
|
|
8109
|
+
_defineProperty(e, r2, t[r2]);
|
|
8110
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
|
|
8111
|
+
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
8112
|
+
});
|
|
8113
|
+
}
|
|
8114
|
+
return e;
|
|
8115
|
+
}
|
|
8116
|
+
function _defineProperty(obj, key, value) {
|
|
8117
|
+
key = _toPropertyKey(key);
|
|
8118
|
+
if (key in obj) {
|
|
8119
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
8120
|
+
} else {
|
|
8121
|
+
obj[key] = value;
|
|
8122
|
+
}
|
|
8123
|
+
return obj;
|
|
8124
|
+
}
|
|
8125
|
+
function _toPropertyKey(t) {
|
|
8126
|
+
var i = _toPrimitive(t, "string");
|
|
8127
|
+
return "symbol" == typeof i ? i : i + "";
|
|
8128
|
+
}
|
|
8129
|
+
function _toPrimitive(t, r) {
|
|
8130
|
+
if ("object" != typeof t || !t)
|
|
8131
|
+
return t;
|
|
8132
|
+
var e = t[Symbol.toPrimitive];
|
|
8133
|
+
if (void 0 !== e) {
|
|
8134
|
+
var i = e.call(t, r || "default");
|
|
8135
|
+
if ("object" != typeof i)
|
|
8136
|
+
return i;
|
|
8137
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
8138
|
+
}
|
|
8139
|
+
return ("string" === r ? String : Number)(t);
|
|
8140
|
+
}
|
|
8141
|
+
function Tree2Element(tree) {
|
|
8142
|
+
return tree && tree.map((node, i) => /* @__PURE__ */ React__default.createElement(node.tag, _objectSpread({
|
|
8143
|
+
key: i
|
|
8144
|
+
}, node.attr), Tree2Element(node.child)));
|
|
8145
|
+
}
|
|
8146
|
+
function GenIcon(data) {
|
|
8147
|
+
return (props) => /* @__PURE__ */ React__default.createElement(IconBase, _extends$1({
|
|
8148
|
+
attr: _objectSpread({}, data.attr)
|
|
8149
|
+
}, props), Tree2Element(data.child));
|
|
8150
|
+
}
|
|
8151
|
+
function IconBase(props) {
|
|
8152
|
+
var elem = (conf) => {
|
|
8153
|
+
var {
|
|
8154
|
+
attr,
|
|
8155
|
+
size,
|
|
8156
|
+
title: title2
|
|
8157
|
+
} = props, svgProps = _objectWithoutProperties(props, _excluded);
|
|
8158
|
+
var computedSize = size || conf.size || "1em";
|
|
8159
|
+
var className;
|
|
8160
|
+
if (conf.className)
|
|
8161
|
+
className = conf.className;
|
|
8162
|
+
if (props.className)
|
|
8163
|
+
className = (className ? className + " " : "") + props.className;
|
|
8164
|
+
return /* @__PURE__ */ React__default.createElement("svg", _extends$1({
|
|
8165
|
+
stroke: "currentColor",
|
|
8166
|
+
fill: "currentColor",
|
|
8167
|
+
strokeWidth: "0"
|
|
8168
|
+
}, conf.attr, attr, svgProps, {
|
|
8169
|
+
className,
|
|
8170
|
+
style: _objectSpread(_objectSpread({
|
|
8171
|
+
color: props.color || conf.color
|
|
8172
|
+
}, conf.style), props.style),
|
|
8173
|
+
height: computedSize,
|
|
8174
|
+
width: computedSize,
|
|
8175
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
8176
|
+
}), title2 && /* @__PURE__ */ React__default.createElement("title", null, title2), props.children);
|
|
8177
|
+
};
|
|
8178
|
+
return IconContext !== void 0 ? /* @__PURE__ */ React__default.createElement(IconContext.Consumer, null, (conf) => elem(conf)) : elem(DefaultContext);
|
|
8179
|
+
}
|
|
8180
|
+
function RiArrowDownLine(props) {
|
|
8181
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" }, "child": [] }] })(props);
|
|
8182
|
+
}
|
|
8183
|
+
function RiArrowUpLine(props) {
|
|
8184
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" }, "child": [] }] })(props);
|
|
8185
|
+
}
|
|
8186
|
+
function RiCalendarLine(props) {
|
|
8187
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" }, "child": [] }] })(props);
|
|
8188
|
+
}
|
|
8189
|
+
function RiFileCopyLine(props) {
|
|
8190
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" }, "child": [] }] })(props);
|
|
8191
|
+
}
|
|
8192
|
+
function RiAlignJustify(props) {
|
|
8193
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M3 4H21V6H3V4ZM3 19H21V21H3V19ZM3 14H21V16H3V14ZM3 9H21V11H3V9Z" }, "child": [] }] })(props);
|
|
8194
|
+
}
|
|
8195
|
+
function RiHashtag(props) {
|
|
8196
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M7.78428 14L8.2047 10H4V8H8.41491L8.94043 3H10.9514L10.4259 8H14.4149L14.9404 3H16.9514L16.4259 8H20V10H16.2157L15.7953 14H20V16H15.5851L15.0596 21H13.0486L13.5741 16H9.58509L9.05957 21H7.04855L7.57407 16H4V14H7.78428ZM9.7953 14H13.7843L14.2047 10H10.2157L9.7953 14Z" }, "child": [] }] })(props);
|
|
8197
|
+
}
|
|
8198
|
+
function RiInputField(props) {
|
|
8199
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M8 5H11V19H8V21H16V19H13V5H16V3H8V5ZM2 7C1.44772 7 1 7.44772 1 8V16C1 16.5523 1.44772 17 2 17H8V15H3V9H8V7H2ZM16 9H21V15H16V17H22C22.5523 17 23 16.5523 23 16V8C23 7.44772 22.5523 7 22 7H16V9Z" }, "child": [] }] })(props);
|
|
8200
|
+
}
|
|
8201
|
+
function RiListCheck(props) {
|
|
8202
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M8 4H21V6H8V4ZM3 3.5H6V6.5H3V3.5ZM3 10.5H6V13.5H3V10.5ZM3 17.5H6V20.5H3V17.5ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z" }, "child": [] }] })(props);
|
|
8203
|
+
}
|
|
8204
|
+
function RiImageLine(props) {
|
|
8205
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" }, "child": [] }] })(props);
|
|
8206
|
+
}
|
|
8207
|
+
function RiCheckboxCircleLine(props) {
|
|
8208
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z" }, "child": [] }] })(props);
|
|
8209
|
+
}
|
|
8210
|
+
function RiCheckboxLine(props) {
|
|
8211
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM5 5V19H19V5H5ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z" }, "child": [] }] })(props);
|
|
8212
|
+
}
|
|
8213
|
+
function RiDeleteBin2Line(props) {
|
|
8214
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM13.4142 13.9997L15.182 15.7675L13.7678 17.1817L12 15.4139L10.2322 17.1817L8.81802 15.7675L10.5858 13.9997L8.81802 12.232L10.2322 10.8178L12 12.5855L13.7678 10.8178L15.182 12.232L13.4142 13.9997ZM9 4V6H15V4H9Z" }, "child": [] }] })(props);
|
|
8215
|
+
}
|
|
8216
|
+
function RiMenuFoldLine(props) {
|
|
8217
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M21 17.9995V19.9995H3V17.9995H21ZM6.59619 3.90332L8.01041 5.31753L4.82843 8.49951L8.01041 11.6815L6.59619 13.0957L2 8.49951L6.59619 3.90332ZM21 10.9995V12.9995H12V10.9995H21ZM21 3.99951V5.99951H12V3.99951H21Z" }, "child": [] }] })(props);
|
|
8218
|
+
}
|
|
8219
|
+
function RiUpload2Line(props) {
|
|
8220
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M4 19H20V12H22V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V12H4V19ZM13 9V16H11V9H6L12 3L18 9H13Z" }, "child": [] }] })(props);
|
|
8221
|
+
}
|
|
8364
8222
|
const emptyBooleanField = {
|
|
8365
8223
|
...emptyBaseField,
|
|
8366
8224
|
type: "boolean"
|
|
@@ -8393,7 +8251,7 @@ const _BooleanField = class _BooleanField extends BaseField {
|
|
|
8393
8251
|
};
|
|
8394
8252
|
__publicField(_BooleanField, "fieldTypeName", "Checkbox");
|
|
8395
8253
|
__publicField(_BooleanField, "fieldTypeDescription", "Perfect for both optional and required yes/no questions.");
|
|
8396
|
-
__publicField(_BooleanField, "Icon",
|
|
8254
|
+
__publicField(_BooleanField, "Icon", RiCheckboxCircleLine);
|
|
8397
8255
|
let BooleanField = _BooleanField;
|
|
8398
8256
|
function getDefaultExportFromCjs(x) {
|
|
8399
8257
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
@@ -11473,7 +11331,7 @@ const _NumberField = class _NumberField extends BaseField {
|
|
|
11473
11331
|
};
|
|
11474
11332
|
__publicField(_NumberField, "fieldTypeName", "Number");
|
|
11475
11333
|
__publicField(_NumberField, "fieldTypeDescription", "Allows specifying a number within a given range.");
|
|
11476
|
-
__publicField(_NumberField, "Icon",
|
|
11334
|
+
__publicField(_NumberField, "Icon", RiHashtag);
|
|
11477
11335
|
__publicField(_NumberField, "_validateMin", (path) => (value, allValues) => {
|
|
11478
11336
|
const field = valueIsFormikUserFormRevision$1(allValues) ? get(allValues, path) : allValues;
|
|
11479
11337
|
if (typeof field.maximum === "number" && typeof value === "number" && field.maximum < value) {
|
|
@@ -11536,7 +11394,7 @@ const _DateField = class _DateField extends BaseField {
|
|
|
11536
11394
|
};
|
|
11537
11395
|
__publicField(_DateField, "fieldTypeName", "Date");
|
|
11538
11396
|
__publicField(_DateField, "fieldTypeDescription", "Allows specifying a date.");
|
|
11539
|
-
__publicField(_DateField, "Icon",
|
|
11397
|
+
__publicField(_DateField, "Icon", RiCalendarLine);
|
|
11540
11398
|
let DateField = _DateField;
|
|
11541
11399
|
const SHORT_TEXT_FIELD_MAX_LENGTH = 500;
|
|
11542
11400
|
const LONG_TEXT_FIELD_MAX_LENGTH = 1e4;
|
|
@@ -11742,7 +11600,7 @@ const _StringField = class _StringField extends StringOrTextField {
|
|
|
11742
11600
|
};
|
|
11743
11601
|
__publicField(_StringField, "fieldTypeName", "Short Text");
|
|
11744
11602
|
__publicField(_StringField, "fieldTypeDescription", `Short text fields can hold up to ${SHORT_TEXT_FIELD_MAX_LENGTH} characters on a single line.`);
|
|
11745
|
-
__publicField(_StringField, "Icon",
|
|
11603
|
+
__publicField(_StringField, "Icon", RiInputField);
|
|
11746
11604
|
let StringField = _StringField;
|
|
11747
11605
|
const TextInput = memo((props) => {
|
|
11748
11606
|
const [{ inputId, labelId, size, severity, showInputOnly, field, fieldProps }, rest] = useFormikInput(props);
|
|
@@ -11804,7 +11662,7 @@ const _TextField = class _TextField extends StringOrTextField {
|
|
|
11804
11662
|
};
|
|
11805
11663
|
__publicField(_TextField, "fieldTypeName", "Paragraph");
|
|
11806
11664
|
__publicField(_TextField, "fieldTypeDescription", `Paragraph fields can hold up to ${LONG_TEXT_FIELD_MAX_LENGTH} characters and can have multiple lines.`);
|
|
11807
|
-
__publicField(_TextField, "Icon",
|
|
11665
|
+
__publicField(_TextField, "Icon", RiAlignJustify);
|
|
11808
11666
|
let TextField = _TextField;
|
|
11809
11667
|
const SelectInput = memo((props) => {
|
|
11810
11668
|
const [{ inputId, labelId, size, severity, showInputOnly, field, fieldProps }, rest] = useFormikInput(props);
|
|
@@ -12106,7 +11964,7 @@ const MultiStringInput = memo((props) => {
|
|
|
12106
11964
|
"aria-label": "Add option",
|
|
12107
11965
|
disabled: !!internalError || disabled,
|
|
12108
11966
|
onClick: addOption,
|
|
12109
|
-
children: /* @__PURE__ */ jsx(
|
|
11967
|
+
children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiAddLine" })
|
|
12110
11968
|
}
|
|
12111
11969
|
)
|
|
12112
11970
|
] })
|
|
@@ -12144,7 +12002,7 @@ const MultiStringInput = memo((props) => {
|
|
|
12144
12002
|
onClick: () => {
|
|
12145
12003
|
handleDeleteOption(index2);
|
|
12146
12004
|
},
|
|
12147
|
-
children: /* @__PURE__ */ jsx(
|
|
12005
|
+
children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiCloseLargeLine" })
|
|
12148
12006
|
}
|
|
12149
12007
|
)
|
|
12150
12008
|
] })
|
|
@@ -12217,7 +12075,7 @@ const _MultiStringField = class _MultiStringField extends BaseField {
|
|
|
12217
12075
|
};
|
|
12218
12076
|
__publicField(_MultiStringField, "fieldTypeName", "Multi-string");
|
|
12219
12077
|
__publicField(_MultiStringField, "fieldTypeDescription", "Allows the user to provide multiple unique strings.");
|
|
12220
|
-
__publicField(_MultiStringField, "Icon",
|
|
12078
|
+
__publicField(_MultiStringField, "Icon", RiListCheck);
|
|
12221
12079
|
let MultiStringField = _MultiStringField;
|
|
12222
12080
|
class BaseSelectField extends BaseField {
|
|
12223
12081
|
constructor(options) {
|
|
@@ -12295,7 +12153,7 @@ const _SelectField = class _SelectField extends BaseSelectField {
|
|
|
12295
12153
|
};
|
|
12296
12154
|
__publicField(_SelectField, "fieldTypeName", "Dropdown");
|
|
12297
12155
|
__publicField(_SelectField, "fieldTypeDescription", "Allows the user to select a single option from a list of options.");
|
|
12298
|
-
__publicField(_SelectField, "Icon",
|
|
12156
|
+
__publicField(_SelectField, "Icon", RiMenuFoldLine);
|
|
12299
12157
|
let SelectField = _SelectField;
|
|
12300
12158
|
const parseValueToArray = (value) => {
|
|
12301
12159
|
if (!value)
|
|
@@ -12376,7 +12234,7 @@ const _MultiSelectField = class _MultiSelectField extends BaseSelectField {
|
|
|
12376
12234
|
};
|
|
12377
12235
|
__publicField(_MultiSelectField, "fieldTypeName", "Multi-select");
|
|
12378
12236
|
__publicField(_MultiSelectField, "fieldTypeDescription", "Allows the user to select a multiple options from a list of options.");
|
|
12379
|
-
__publicField(_MultiSelectField, "Icon",
|
|
12237
|
+
__publicField(_MultiSelectField, "Icon", RiCheckboxLine);
|
|
12380
12238
|
let MultiSelectField = _MultiSelectField;
|
|
12381
12239
|
const FieldInputCloner = memo((props) => {
|
|
12382
12240
|
const { field, ...rest } = props;
|
|
@@ -12502,8 +12360,8 @@ const PDFViewer = memo((props) => {
|
|
|
12502
12360
|
content: () => /* @__PURE__ */ jsxs(Flex, { width: "100%", height: "100%", align: "center", direction: "column", children: [
|
|
12503
12361
|
/* @__PURE__ */ jsx(Flex, { className: styles$9.PDFViewerTopbar, height: "8", width: "100%", align: "center", px: "2", shrink: "0", children: /* @__PURE__ */ jsx(ButtonGroup, { width: "100%", variant: "soft", severity: "info", highContrast: true, children: /* @__PURE__ */ jsxs(Grid, { columns: "3", width: "100%", children: [
|
|
12504
12362
|
/* @__PURE__ */ jsxs(Flex, { gap: "2", width: "100%", children: [
|
|
12505
|
-
/* @__PURE__ */ jsx(IconButton, { onClick: onClose, "aria-label": "
|
|
12506
|
-
/* @__PURE__ */ jsx(IconButton, { onClick: handleDownload, "aria-label": "download", children: /* @__PURE__ */ jsx(
|
|
12363
|
+
/* @__PURE__ */ jsx(IconButton, { onClick: onClose, "aria-label": "close", children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiCloseLine" }) }),
|
|
12364
|
+
/* @__PURE__ */ jsx(IconButton, { onClick: handleDownload, "aria-label": "download", children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiDownload2Line" }) })
|
|
12507
12365
|
] }),
|
|
12508
12366
|
/* @__PURE__ */ jsx(Flex, { justify: "center", children: /* @__PURE__ */ jsx(
|
|
12509
12367
|
FileBadge,
|
|
@@ -12514,7 +12372,7 @@ const PDFViewer = memo((props) => {
|
|
|
12514
12372
|
truncateLength: !lg ? 25 : void 0
|
|
12515
12373
|
}
|
|
12516
12374
|
) }),
|
|
12517
|
-
/* @__PURE__ */ jsx(Flex, { justify: "end", children: !!onDelete && /* @__PURE__ */ jsx(IconButton, { onClick: handleDelete, "aria-label": "delete", children: /* @__PURE__ */ jsx(
|
|
12375
|
+
/* @__PURE__ */ jsx(Flex, { justify: "end", children: !!onDelete && /* @__PURE__ */ jsx(IconButton, { onClick: handleDelete, "aria-label": "delete", children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiDeleteBin2Line" }) }) })
|
|
12518
12376
|
] }) }) }),
|
|
12519
12377
|
/* @__PURE__ */ jsxs(
|
|
12520
12378
|
Flex,
|
|
@@ -12560,13 +12418,13 @@ const PDFViewer = memo((props) => {
|
|
|
12560
12418
|
justify: "center",
|
|
12561
12419
|
py: "2",
|
|
12562
12420
|
children: [
|
|
12563
|
-
/* @__PURE__ */ jsx(IconButton, { onClick: handlePrevPage, "aria-label": "previous page", children: /* @__PURE__ */ jsx(
|
|
12421
|
+
/* @__PURE__ */ jsx(IconButton, { onClick: handlePrevPage, "aria-label": "previous page", children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiArrowLeftLine" }) }),
|
|
12564
12422
|
/* @__PURE__ */ jsxs(Badge, { severity: "info", style: { borderRadius: 0 }, variant: "solid", children: [
|
|
12565
12423
|
currentPageIndex + 1,
|
|
12566
12424
|
"/",
|
|
12567
12425
|
pdf.numPages
|
|
12568
12426
|
] }),
|
|
12569
|
-
/* @__PURE__ */ jsx(IconButton, { onClick: handleNextPage, "aria-label": "next-page", children: /* @__PURE__ */ jsx(
|
|
12427
|
+
/* @__PURE__ */ jsx(IconButton, { onClick: handleNextPage, "aria-label": "next-page", children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiArrowRightLine" }) })
|
|
12570
12428
|
]
|
|
12571
12429
|
}
|
|
12572
12430
|
)
|
|
@@ -12590,7 +12448,7 @@ const SpinnerComponent = memo(() => {
|
|
|
12590
12448
|
SpinnerComponent.displayName = "SpinnerComponent";
|
|
12591
12449
|
const ErrorComponent = memo(() => {
|
|
12592
12450
|
return /* @__PURE__ */ jsxs(Flex, { className: styles$9.ErrorContainer, align: "center", justify: "center", direction: "column", children: [
|
|
12593
|
-
/* @__PURE__ */ jsx(IconColorUtility, { severity: "info", children: /* @__PURE__ */ jsx(
|
|
12451
|
+
/* @__PURE__ */ jsx(IconColorUtility, { severity: "info", children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiFileWarningLine", size: 40 }) }),
|
|
12594
12452
|
/* @__PURE__ */ jsx(Text, { size: "2", color: "gray", weight: "light", children: "Failed to load" })
|
|
12595
12453
|
] });
|
|
12596
12454
|
});
|
|
@@ -12665,8 +12523,8 @@ const ImageViewer = memo((props) => {
|
|
|
12665
12523
|
content: () => /* @__PURE__ */ jsxs(Flex, { width: "100%", height: "100%", direction: "column", children: [
|
|
12666
12524
|
/* @__PURE__ */ jsx(Flex, { className: styles$8.ImageViewerTopbar, height: "8", width: "100%", align: "center", px: "2", children: /* @__PURE__ */ jsx(ButtonGroup, { width: "100%", severity: "info", variant: "soft", highContrast: true, children: /* @__PURE__ */ jsxs(Grid, { columns: "3", width: "100%", children: [
|
|
12667
12525
|
/* @__PURE__ */ jsxs(Flex, { justify: "start", gap: "2", children: [
|
|
12668
|
-
/* @__PURE__ */ jsx(IconButton, { onClick: onClose, "aria-label": "close", children: /* @__PURE__ */ jsx(
|
|
12669
|
-
/* @__PURE__ */ jsx(IconButton, { onClick: handleDownload, "aria-label": "close", children: /* @__PURE__ */ jsx(
|
|
12526
|
+
/* @__PURE__ */ jsx(IconButton, { onClick: onClose, "aria-label": "close", children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiCloseLine" }) }),
|
|
12527
|
+
/* @__PURE__ */ jsx(IconButton, { onClick: handleDownload, "aria-label": "close", children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiDownload2Line" }) })
|
|
12670
12528
|
] }),
|
|
12671
12529
|
/* @__PURE__ */ jsx(Flex, { justify: "center", children: /* @__PURE__ */ jsx(
|
|
12672
12530
|
FileBadge,
|
|
@@ -12677,7 +12535,7 @@ const ImageViewer = memo((props) => {
|
|
|
12677
12535
|
truncateLength: !md ? 25 : void 0
|
|
12678
12536
|
}
|
|
12679
12537
|
) }),
|
|
12680
|
-
/* @__PURE__ */ jsx(Flex, { justify: "end", children: !!onDelete && /* @__PURE__ */ jsx(IconButton, { onClick: handleDelete, "aria-label": "close", children: /* @__PURE__ */ jsx(
|
|
12538
|
+
/* @__PURE__ */ jsx(Flex, { justify: "end", children: !!onDelete && /* @__PURE__ */ jsx(IconButton, { onClick: handleDelete, "aria-label": "close", children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiDeleteBin2Line" }) }) })
|
|
12681
12539
|
] }) }) }),
|
|
12682
12540
|
/* @__PURE__ */ jsx(Flex, { width: "100%", height: "100%", p: "5", style: { overflow: "hidden" }, children: /* @__PURE__ */ jsx(
|
|
12683
12541
|
Flex,
|
|
@@ -12701,15 +12559,15 @@ const FileIcon = memo((props) => {
|
|
|
12701
12559
|
const { fileType } = props;
|
|
12702
12560
|
const icon = useMemo(() => {
|
|
12703
12561
|
if (SUPPORTED_SPREADSHEET_FILE_EXTENSIONS.includes(fileType)) {
|
|
12704
|
-
return /* @__PURE__ */ jsx(
|
|
12562
|
+
return /* @__PURE__ */ jsx(RiIcon, { icon: "RiFileExcelLine" });
|
|
12705
12563
|
}
|
|
12706
12564
|
if (SUPPORTED_PDF_FILE_TYPES.includes(fileType)) {
|
|
12707
|
-
return /* @__PURE__ */ jsx(
|
|
12565
|
+
return /* @__PURE__ */ jsx(RiIcon, { icon: "RiFilePdfLine" });
|
|
12708
12566
|
}
|
|
12709
12567
|
if (SUPPORTED_IMAGE_FILE_TYPES.includes(fileType)) {
|
|
12710
|
-
return /* @__PURE__ */ jsx(
|
|
12568
|
+
return /* @__PURE__ */ jsx(RiIcon, { icon: "RiFileImageLine" });
|
|
12711
12569
|
}
|
|
12712
|
-
return /* @__PURE__ */ jsx(
|
|
12570
|
+
return /* @__PURE__ */ jsx(RiIcon, { icon: "RiFileLine" });
|
|
12713
12571
|
}, [fileType]);
|
|
12714
12572
|
return /* @__PURE__ */ jsx(Tooltip, { content: fileType, children: /* @__PURE__ */ jsx(Flex, { width: "max-content", height: "max-content", children: icon }) });
|
|
12715
12573
|
});
|
|
@@ -12822,8 +12680,8 @@ const SpreadsheetViewer = memo((props) => {
|
|
|
12822
12680
|
highContrast: true,
|
|
12823
12681
|
children: /* @__PURE__ */ jsxs(Grid, { columns: "3", width: "100%", children: [
|
|
12824
12682
|
/* @__PURE__ */ jsxs(Flex, { gap: "2", children: [
|
|
12825
|
-
/* @__PURE__ */ jsx(IconButton, { onClick: onClose, "aria-label": "
|
|
12826
|
-
/* @__PURE__ */ jsx(IconButton, { onClick: handleDownload, "aria-label": "download", children: /* @__PURE__ */ jsx(
|
|
12683
|
+
/* @__PURE__ */ jsx(IconButton, { onClick: onClose, "aria-label": "close", children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiCloseLine" }) }),
|
|
12684
|
+
/* @__PURE__ */ jsx(IconButton, { onClick: handleDownload, "aria-label": "download", children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiDownload2Line" }) })
|
|
12827
12685
|
] }),
|
|
12828
12686
|
/* @__PURE__ */ jsx(Flex, { justify: "center", children: /* @__PURE__ */ jsx(
|
|
12829
12687
|
FileBadge,
|
|
@@ -12834,7 +12692,7 @@ const SpreadsheetViewer = memo((props) => {
|
|
|
12834
12692
|
truncateLength: !md ? 25 : void 0
|
|
12835
12693
|
}
|
|
12836
12694
|
) }),
|
|
12837
|
-
/* @__PURE__ */ jsx(Flex, { gap: "2", justify: "end", children: !!onDelete && /* @__PURE__ */ jsx(IconButton, { "aria-label": "delete", onClick: handleDelete, children: /* @__PURE__ */ jsx(
|
|
12695
|
+
/* @__PURE__ */ jsx(Flex, { gap: "2", justify: "end", children: !!onDelete && /* @__PURE__ */ jsx(IconButton, { "aria-label": "delete", onClick: handleDelete, children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiDeleteBin2Line" }) }) })
|
|
12838
12696
|
] })
|
|
12839
12697
|
}
|
|
12840
12698
|
) }),
|
|
@@ -12846,7 +12704,7 @@ const SpreadsheetViewer = memo((props) => {
|
|
|
12846
12704
|
height: "100%",
|
|
12847
12705
|
direction: "column",
|
|
12848
12706
|
gap: "3",
|
|
12849
|
-
|
|
12707
|
+
p: "2",
|
|
12850
12708
|
style: { overflow: "hidden" },
|
|
12851
12709
|
children: /* @__PURE__ */ jsxs(Suspense, { fallback: /* @__PURE__ */ jsx(Spinner, {}), children: [
|
|
12852
12710
|
/* @__PURE__ */ jsx(Flex, { className: styles$7.SpreadsheetViewerContent, children: /* @__PURE__ */ jsx(
|
|
@@ -12871,9 +12729,9 @@ const SpreadsheetViewer = memo((props) => {
|
|
|
12871
12729
|
}
|
|
12872
12730
|
) }),
|
|
12873
12731
|
/* @__PURE__ */ jsx(Flex, { height: "max-content", shrink: "0", children: /* @__PURE__ */ jsxs(ButtonGroup, { merged: true, variant: "solid", severity: "info", size: "small", children: [
|
|
12874
|
-
/* @__PURE__ */ jsx(IconButton, { "aria-label": "previous", onClick: handlePreviousSheet, children: /* @__PURE__ */ jsx(
|
|
12732
|
+
/* @__PURE__ */ jsx(IconButton, { "aria-label": "previous", onClick: handlePreviousSheet, children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiArrowLeftLine" }) }),
|
|
12875
12733
|
/* @__PURE__ */ jsx(Badge, { variant: "solid", size: "1", style: { borderRadius: 0 }, severity: "info", children: activeSheet }),
|
|
12876
|
-
/* @__PURE__ */ jsx(IconButton, { "aria-label": "next", onClick: handleNextSheet, children: /* @__PURE__ */ jsx(
|
|
12734
|
+
/* @__PURE__ */ jsx(IconButton, { "aria-label": "next", onClick: handleNextSheet, children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiArrowRightLine" }) })
|
|
12877
12735
|
] }) })
|
|
12878
12736
|
] })
|
|
12879
12737
|
}
|
|
@@ -12908,7 +12766,7 @@ const ColorPicker = memo((props) => {
|
|
|
12908
12766
|
type: "button",
|
|
12909
12767
|
variant: "solid",
|
|
12910
12768
|
"aria-label": ColorsToString[color] ?? "none",
|
|
12911
|
-
children: selectedColor === color && /* @__PURE__ */ jsx(
|
|
12769
|
+
children: selectedColor === color && /* @__PURE__ */ jsx(RiIcon, { icon: "RiCheckLine" })
|
|
12912
12770
|
},
|
|
12913
12771
|
ColorsToString[color]
|
|
12914
12772
|
)) }),
|
|
@@ -13063,8 +12921,8 @@ const ImageMarkup = memo((props) => {
|
|
|
13063
12921
|
/* @__PURE__ */ jsxs(Flex, { height: "100%", width: "100%", position: "relative", direction: "column", children: [
|
|
13064
12922
|
/* @__PURE__ */ jsx(Flex, { className: styles$6.ImageMarkupTopbar, height: "8", width: "100%", align: "center", px: "2", children: /* @__PURE__ */ jsx(ButtonGroup, { severity: "info", size: "medium", variant: "soft", width: "100%", children: /* @__PURE__ */ jsxs(Grid, { columns: "3", width: "100%", children: [
|
|
13065
12923
|
/* @__PURE__ */ jsxs(Flex, { gap: "2", children: [
|
|
13066
|
-
/* @__PURE__ */ jsx(IconButton, { "aria-label": "
|
|
13067
|
-
/* @__PURE__ */ jsx(IconButton, { "aria-label": `Download ${file.name}`, onClick: handleDownload, children: /* @__PURE__ */ jsx(
|
|
12924
|
+
/* @__PURE__ */ jsx(IconButton, { "aria-label": "close", onClick: handleCancel, children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiCloseLine" }) }),
|
|
12925
|
+
/* @__PURE__ */ jsx(IconButton, { "aria-label": `Download ${file.name}`, onClick: handleDownload, children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiDownload2Line" }) })
|
|
13068
12926
|
] }),
|
|
13069
12927
|
/* @__PURE__ */ jsxs(Flex, { justify: "center", gap: "2", align: "center", children: [
|
|
13070
12928
|
/* @__PURE__ */ jsx(
|
|
@@ -13081,7 +12939,7 @@ const ImageMarkup = memo((props) => {
|
|
|
13081
12939
|
type: "button",
|
|
13082
12940
|
variant: "solid",
|
|
13083
12941
|
color: ColorsToString[color],
|
|
13084
|
-
children: /* @__PURE__ */ jsx(
|
|
12942
|
+
children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiPaletteLine" })
|
|
13085
12943
|
}
|
|
13086
12944
|
)
|
|
13087
12945
|
}
|
|
@@ -13092,7 +12950,7 @@ const ImageMarkup = memo((props) => {
|
|
|
13092
12950
|
size: "1",
|
|
13093
12951
|
side: "bottom",
|
|
13094
12952
|
align: "center",
|
|
13095
|
-
trigger: /* @__PURE__ */ jsx(IconButton, { "aria-label": "stroke size", children: /* @__PURE__ */ jsx(
|
|
12953
|
+
trigger: /* @__PURE__ */ jsx(IconButton, { "aria-label": "stroke size", children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiEditLine" }) }),
|
|
13096
12954
|
children: () => /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "1", style: { width: "150px" }, children: [
|
|
13097
12955
|
/* @__PURE__ */ jsx(Flex, { width: "7", children: /* @__PURE__ */ jsxs(Text, { size: "1", children: [
|
|
13098
12956
|
strokeWidthPixels,
|
|
@@ -13121,25 +12979,17 @@ const ImageMarkup = memo((props) => {
|
|
|
13121
12979
|
variant: "soft",
|
|
13122
12980
|
"aria-label": "erase",
|
|
13123
12981
|
onPressedChange: handleToggleEraseMode,
|
|
13124
|
-
children: /* @__PURE__ */ jsx(
|
|
12982
|
+
children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiEraserFill" })
|
|
13125
12983
|
}
|
|
13126
12984
|
),
|
|
13127
12985
|
/* @__PURE__ */ jsx(Separator, { orientation: "vertical", size: "4" }),
|
|
13128
|
-
/* @__PURE__ */ jsx(Tooltip, { content: "Undo last", side: "bottom", children: /* @__PURE__ */ jsx(IconButton, { "aria-label": "undo", onClick: handleUndoLast, children: /* @__PURE__ */ jsx(
|
|
13129
|
-
/* @__PURE__ */ jsx(Tooltip, { content: "redo last", side: "bottom", children: /* @__PURE__ */ jsx(IconButton, { "aria-label": "undo", onClick: handleRedoLast, children: /* @__PURE__ */ jsx(
|
|
13130
|
-
/* @__PURE__ */ jsx(Tooltip, { content: "Undo all", side: "bottom", children: /* @__PURE__ */ jsx(IconButton, { "aria-label": "undo all", onClick: handleUndoAll, children: /* @__PURE__ */ jsx(
|
|
12986
|
+
/* @__PURE__ */ jsx(Tooltip, { content: "Undo last", side: "bottom", children: /* @__PURE__ */ jsx(IconButton, { "aria-label": "undo", onClick: handleUndoLast, children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiArrowGoBackLine" }) }) }),
|
|
12987
|
+
/* @__PURE__ */ jsx(Tooltip, { content: "redo last", side: "bottom", children: /* @__PURE__ */ jsx(IconButton, { "aria-label": "undo", onClick: handleRedoLast, children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiArrowGoForwardLine" }) }) }),
|
|
12988
|
+
/* @__PURE__ */ jsx(Tooltip, { content: "Undo all", side: "bottom", children: /* @__PURE__ */ jsx(IconButton, { "aria-label": "undo all", onClick: handleUndoAll, children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiLoopLeftLine" }) }) })
|
|
13131
12989
|
] }),
|
|
13132
12990
|
/* @__PURE__ */ jsxs(Flex, { justify: "end", gap: "2", children: [
|
|
13133
|
-
/* @__PURE__ */ jsx(IconButton, { "aria-label": "Save markup", severity: "primary", onClick: handleSave, children: /* @__PURE__ */ jsx(
|
|
13134
|
-
/* @__PURE__ */ jsx(
|
|
13135
|
-
IconButton,
|
|
13136
|
-
{
|
|
13137
|
-
severity: "danger",
|
|
13138
|
-
"aria-label": "Delete attachment",
|
|
13139
|
-
onClick: handleDelete,
|
|
13140
|
-
children: /* @__PURE__ */ jsx(FeatherIcon, { icon: "trash", size: FEATHER_ICON_SIZE })
|
|
13141
|
-
}
|
|
13142
|
-
)
|
|
12991
|
+
/* @__PURE__ */ jsx(IconButton, { "aria-label": "Save markup", severity: "primary", onClick: handleSave, children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiSaveLine" }) }),
|
|
12992
|
+
/* @__PURE__ */ jsx(IconButton, { "aria-label": "Delete attachment", onClick: handleDelete, children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiDeleteBin2Line" }) })
|
|
13143
12993
|
] })
|
|
13144
12994
|
] }) }) }),
|
|
13145
12995
|
/* @__PURE__ */ jsxs(
|
|
@@ -13264,7 +13114,7 @@ const FileCard = memo(
|
|
|
13264
13114
|
),
|
|
13265
13115
|
ref,
|
|
13266
13116
|
style,
|
|
13267
|
-
leftSlot: error2 ? /* @__PURE__ */ jsx(
|
|
13117
|
+
leftSlot: error2 ? /* @__PURE__ */ jsx(RiIcon, { icon: "RiFileWarningLine" }) : /* @__PURE__ */ jsx(FileIcon, { fileType: (file == null ? void 0 : file.type) ?? "" }),
|
|
13268
13118
|
...rest,
|
|
13269
13119
|
children: !error2 ? file ? fileName2 : /* @__PURE__ */ jsx(Flex, { justify: "center", width: "100%", children: /* @__PURE__ */ jsx(Spinner, {}) }) : error2
|
|
13270
13120
|
}
|
|
@@ -13320,7 +13170,7 @@ const ImageCard = memo((props) => {
|
|
|
13320
13170
|
}),
|
|
13321
13171
|
size,
|
|
13322
13172
|
ref: fileCardRef,
|
|
13323
|
-
leftSlot: error2 ? /* @__PURE__ */ jsx(
|
|
13173
|
+
leftSlot: error2 ? /* @__PURE__ */ jsx(RiIcon, { icon: "RiFileWarningLine" }) : file && /* @__PURE__ */ jsx(FileIcon, { fileType: file.type }),
|
|
13324
13174
|
rightSlot,
|
|
13325
13175
|
children: error2 ?? fileName2
|
|
13326
13176
|
}
|
|
@@ -13377,7 +13227,7 @@ const UploadInput = memo((props) => {
|
|
|
13377
13227
|
image: showInputOnly ? void 0 : field.image,
|
|
13378
13228
|
children: [
|
|
13379
13229
|
/* @__PURE__ */ jsx(Flex$1, { direction: "row", gap: "2", children: /* @__PURE__ */ jsx(Box, { width: "max-content", asChild: true, children: /* @__PURE__ */ jsxs(Button, { ...rest, variant: "soft", onClick: handleClick, id: "upload-input-upload-button", children: [
|
|
13380
|
-
/* @__PURE__ */ jsx(
|
|
13230
|
+
/* @__PURE__ */ jsx(RiIcon, { icon: "RiUpload2Line" }),
|
|
13381
13231
|
" ",
|
|
13382
13232
|
buttonText
|
|
13383
13233
|
] }) }) }),
|
|
@@ -13480,10 +13330,10 @@ const DisplayFile = memo((props) => {
|
|
|
13480
13330
|
"aria-label": `Download ${name}`,
|
|
13481
13331
|
onClick: handleDownload,
|
|
13482
13332
|
disabled: !resolvedFile,
|
|
13483
|
-
children: /* @__PURE__ */ jsx(
|
|
13333
|
+
children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiDownload2Line" })
|
|
13484
13334
|
}
|
|
13485
13335
|
),
|
|
13486
|
-
!disabled && /* @__PURE__ */ jsx(IconButton, { "aria-label": `Remove ${name}`, disabled, onClick: handleDelete, children: /* @__PURE__ */ jsx(
|
|
13336
|
+
!disabled && /* @__PURE__ */ jsx(IconButton, { "aria-label": `Remove ${name}`, disabled, onClick: handleDelete, children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiCloseLargeLine" }) })
|
|
13487
13337
|
] }),
|
|
13488
13338
|
[disabled, handleDelete, handleDownload, name, resolvedFile]
|
|
13489
13339
|
);
|
|
@@ -13630,7 +13480,7 @@ const _UploadField = class _UploadField extends BaseField {
|
|
|
13630
13480
|
};
|
|
13631
13481
|
__publicField(_UploadField, "fieldTypeName", "Upload");
|
|
13632
13482
|
__publicField(_UploadField, "fieldTypeDescription", "Allows a file to be uploaded.");
|
|
13633
|
-
__publicField(_UploadField, "Icon",
|
|
13483
|
+
__publicField(_UploadField, "Icon", RiUpload2Line);
|
|
13634
13484
|
let UploadField = _UploadField;
|
|
13635
13485
|
const FieldTypeToClsMapping = {
|
|
13636
13486
|
date: DateField,
|
|
@@ -14173,14 +14023,14 @@ const FormBrowserEntry = (props) => {
|
|
|
14173
14023
|
onClick: handleFavoriteClick,
|
|
14174
14024
|
"aria-label": form.favorite ? "Favorite form" : "Standard form",
|
|
14175
14025
|
disabled: !isFavoriteEditable,
|
|
14176
|
-
children: form.favorite ? /* @__PURE__ */ jsx(
|
|
14026
|
+
children: form.favorite ? /* @__PURE__ */ jsx(RiIcon, { icon: "RiStarFill" }) : /* @__PURE__ */ jsx(RiIcon, { icon: "RiStarLine" })
|
|
14177
14027
|
}
|
|
14178
14028
|
),
|
|
14179
14029
|
/* @__PURE__ */ jsx(Text$1, { noWrap: true, children: form.latestRevision.title }),
|
|
14180
|
-
form.latestRevision.description && /* @__PURE__ */ jsx(
|
|
14030
|
+
form.latestRevision.description && /* @__PURE__ */ jsx(RiIcon, { icon: "RiQuestionLine" })
|
|
14181
14031
|
] }),
|
|
14182
14032
|
owner && /* @__PURE__ */ jsxs(Flex$1, { align: "center", gap: "2", children: [
|
|
14183
|
-
/* @__PURE__ */ jsx(
|
|
14033
|
+
/* @__PURE__ */ jsx(RiIcon, { icon: "RiUserLine" }),
|
|
14184
14034
|
" ",
|
|
14185
14035
|
owner
|
|
14186
14036
|
] })
|
|
@@ -14399,7 +14249,7 @@ const FieldActions = memo((props) => {
|
|
|
14399
14249
|
const actions = useMemo(() => {
|
|
14400
14250
|
const actions2 = [
|
|
14401
14251
|
{
|
|
14402
|
-
Icon:
|
|
14252
|
+
Icon: RiFileCopyLine,
|
|
14403
14253
|
key: "duplicate",
|
|
14404
14254
|
text: "Duplicate",
|
|
14405
14255
|
buttonProps: { onClick: duplicate }
|
|
@@ -14407,7 +14257,7 @@ const FieldActions = memo((props) => {
|
|
|
14407
14257
|
];
|
|
14408
14258
|
if (index2 !== 0) {
|
|
14409
14259
|
actions2.push({
|
|
14410
|
-
Icon:
|
|
14260
|
+
Icon: RiDeleteBin2Line,
|
|
14411
14261
|
key: "delete",
|
|
14412
14262
|
text: "Delete",
|
|
14413
14263
|
buttonProps: { onClick: remove2 }
|
|
@@ -14415,7 +14265,7 @@ const FieldActions = memo((props) => {
|
|
|
14415
14265
|
}
|
|
14416
14266
|
if (type !== "section") {
|
|
14417
14267
|
actions2.unshift({
|
|
14418
|
-
Icon:
|
|
14268
|
+
Icon: RiImageLine,
|
|
14419
14269
|
key: "upload",
|
|
14420
14270
|
text: "Upload image",
|
|
14421
14271
|
buttonProps: {
|
|
@@ -14428,7 +14278,7 @@ const FieldActions = memo((props) => {
|
|
|
14428
14278
|
}
|
|
14429
14279
|
if (sectionIndex === void 0 && index2 !== values.fields.length - 1 || sectionIndex !== void 0 && (sectionIndex < values.fields.length - 1 || index2 !== values.fields[sectionIndex].fields.length - 1)) {
|
|
14430
14280
|
actions2.unshift({
|
|
14431
|
-
Icon:
|
|
14281
|
+
Icon: RiArrowDownLine,
|
|
14432
14282
|
key: "moveDown",
|
|
14433
14283
|
text: "Move down",
|
|
14434
14284
|
buttonProps: {
|
|
@@ -14440,7 +14290,7 @@ const FieldActions = memo((props) => {
|
|
|
14440
14290
|
}
|
|
14441
14291
|
if (sectionIndex === void 0 && index2 !== 0 || sectionIndex !== void 0 && (sectionIndex !== 0 || index2 !== 0)) {
|
|
14442
14292
|
actions2.unshift({
|
|
14443
|
-
Icon:
|
|
14293
|
+
Icon: RiArrowUpLine,
|
|
14444
14294
|
key: "moveUp",
|
|
14445
14295
|
text: "Move up",
|
|
14446
14296
|
buttonProps: {
|
|
@@ -14468,7 +14318,7 @@ const FieldActions = memo((props) => {
|
|
|
14468
14318
|
/* @__PURE__ */ jsx(Box, { display: forMobile(true, "block"), children: /* @__PURE__ */ jsx(
|
|
14469
14319
|
DropdownItemMenu,
|
|
14470
14320
|
{
|
|
14471
|
-
trigger: /* @__PURE__ */ jsx(IconButton, { variant: "ghost", "aria-label": "Actions menu", children: /* @__PURE__ */ jsx(
|
|
14321
|
+
trigger: /* @__PURE__ */ jsx(IconButton, { variant: "ghost", "aria-label": "Actions menu", children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiMore2Line" }) }),
|
|
14472
14322
|
items: actions.map((Action) => {
|
|
14473
14323
|
var _a2;
|
|
14474
14324
|
return {
|
|
@@ -14565,7 +14415,7 @@ const FieldSettingsPopover = memo((props) => {
|
|
|
14565
14415
|
...hasError && { severity: "danger" },
|
|
14566
14416
|
hoverEffects: ["spin90Clockwise"],
|
|
14567
14417
|
children: [
|
|
14568
|
-
/* @__PURE__ */ jsx(
|
|
14418
|
+
/* @__PURE__ */ jsx(RiIcon, { icon: "RiSettings2Line" }),
|
|
14569
14419
|
/* @__PURE__ */ jsx(Text$1, { children: "Settings" })
|
|
14570
14420
|
]
|
|
14571
14421
|
},
|
|
@@ -14765,7 +14615,7 @@ const FieldBuilder = memo((props) => {
|
|
|
14765
14615
|
severity: "danger",
|
|
14766
14616
|
"aria-label": "delete",
|
|
14767
14617
|
onClick: handleImageDelete,
|
|
14768
|
-
children: /* @__PURE__ */ jsx(
|
|
14618
|
+
children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiDeleteBin2Line" })
|
|
14769
14619
|
}
|
|
14770
14620
|
)
|
|
14771
14621
|
] }),
|
|
@@ -15105,7 +14955,7 @@ const FieldSectionWithActions = memo((props) => {
|
|
|
15105
14955
|
DropdownItemMenu,
|
|
15106
14956
|
{
|
|
15107
14957
|
trigger: /* @__PURE__ */ jsxs(Button, { type: "button", variant: "soft", children: [
|
|
15108
|
-
/* @__PURE__ */ jsx(
|
|
14958
|
+
/* @__PURE__ */ jsx(RiIcon, { icon: "RiAddLine" }),
|
|
15109
14959
|
" Add field"
|
|
15110
14960
|
] }),
|
|
15111
14961
|
items: fieldTypeItems.flat()
|
|
@@ -15268,7 +15118,7 @@ const FieldsEditor = memo((props) => {
|
|
|
15268
15118
|
handleCreateEmptySection(index2);
|
|
15269
15119
|
},
|
|
15270
15120
|
children: [
|
|
15271
|
-
/* @__PURE__ */ jsx(
|
|
15121
|
+
/* @__PURE__ */ jsx(RiIcon, { icon: "RiAddLine" }),
|
|
15272
15122
|
" Add section"
|
|
15273
15123
|
]
|
|
15274
15124
|
}
|
|
@@ -15361,11 +15211,11 @@ const FormBuilder = memo(
|
|
|
15361
15211
|
return /* @__PURE__ */ jsx(Tabs.Root, { ref, defaultValue: "edit", children: /* @__PURE__ */ jsxs(Flex$1, { direction: "column", gap: "2", children: [
|
|
15362
15212
|
showTabs && /* @__PURE__ */ jsxs(Tabs.List, { className: classNames$1(styles$c.tabsList, tabsListClassName), children: [
|
|
15363
15213
|
/* @__PURE__ */ jsx(Tabs.Trigger, { className: styles$c.tabTrigger, value: "edit", children: /* @__PURE__ */ jsxs(Flex$1, { align: "center", gap: "2", children: [
|
|
15364
|
-
/* @__PURE__ */ jsx(
|
|
15214
|
+
/* @__PURE__ */ jsx(RiIcon, { icon: "RiPencilLine" }),
|
|
15365
15215
|
"Edit"
|
|
15366
15216
|
] }) }),
|
|
15367
15217
|
/* @__PURE__ */ jsx(Tabs.Trigger, { className: styles$c.tabTrigger, value: "preview", children: /* @__PURE__ */ jsxs(Flex$1, { align: "center", gap: "2", children: [
|
|
15368
|
-
/* @__PURE__ */ jsx(
|
|
15218
|
+
/* @__PURE__ */ jsx(RiIcon, { icon: "RiEyeLine" }),
|
|
15369
15219
|
"Preview"
|
|
15370
15220
|
] }) })
|
|
15371
15221
|
] }),
|
|
@@ -15513,7 +15363,6 @@ export {
|
|
|
15513
15363
|
DocumentService,
|
|
15514
15364
|
EmailDomainsService,
|
|
15515
15365
|
EmailVerificationService,
|
|
15516
|
-
FEATHER_ICON_SIZE,
|
|
15517
15366
|
FieldSection,
|
|
15518
15367
|
FileBadge,
|
|
15519
15368
|
FileCard,
|
|
@@ -15538,6 +15387,8 @@ export {
|
|
|
15538
15387
|
IssuePriority,
|
|
15539
15388
|
IssueService,
|
|
15540
15389
|
IssueStatus,
|
|
15390
|
+
IssueUpdateChange,
|
|
15391
|
+
IssueUpdateService,
|
|
15541
15392
|
LicenseLevel,
|
|
15542
15393
|
LicenseService,
|
|
15543
15394
|
LicenseStatus,
|
|
@@ -15601,6 +15452,8 @@ export {
|
|
|
15601
15452
|
addIssue,
|
|
15602
15453
|
addIssueAttachment,
|
|
15603
15454
|
addIssueAttachments,
|
|
15455
|
+
addIssueUpdate,
|
|
15456
|
+
addIssueUpdates,
|
|
15604
15457
|
addLicenses,
|
|
15605
15458
|
addOrReplaceCategories,
|
|
15606
15459
|
addOrReplaceIssueComment,
|
|
@@ -15760,6 +15613,8 @@ export {
|
|
|
15760
15613
|
removeIssue,
|
|
15761
15614
|
removeIssueAttachment,
|
|
15762
15615
|
removeIssueComment,
|
|
15616
|
+
removeIssueUpdate,
|
|
15617
|
+
removeIssueUpdates,
|
|
15763
15618
|
removeOrganizationAccess,
|
|
15764
15619
|
removeProjectAccess,
|
|
15765
15620
|
removeProjectAccessesOfProject,
|
|
@@ -15861,6 +15716,8 @@ export {
|
|
|
15861
15716
|
selectIssueAttachmentMapping,
|
|
15862
15717
|
selectIssueAttachments,
|
|
15863
15718
|
selectIssueMapping,
|
|
15719
|
+
selectIssueUpdateMapping,
|
|
15720
|
+
selectIssueUpdatesOfIssue,
|
|
15864
15721
|
selectIssues,
|
|
15865
15722
|
selectLatestFormRevision,
|
|
15866
15723
|
selectLatestRetryTime,
|
|
@@ -15957,6 +15814,7 @@ export {
|
|
|
15957
15814
|
setIsLoading,
|
|
15958
15815
|
setIssueAttachments,
|
|
15959
15816
|
setIssueComments,
|
|
15817
|
+
setIssueUpdates,
|
|
15960
15818
|
setIssues,
|
|
15961
15819
|
setLicenses,
|
|
15962
15820
|
setLoggedIn,
|