@vitrosoftware/common-ui-ts 1.1.210 → 1.1.212
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/css/std/controls/alert/alert.css +3 -2
- package/css/std/controls/button/button.css +11 -10
- package/css/std/controls/dropdown-button/dropdown-button.css +195 -90
- package/css/std/controls/dropdown-button/img/dropdown-arrow-right.svg +3 -0
- package/css/std/controls/editable-list/editable-list.css +6 -7
- package/css/std/controls/expand-collapse-button/expand-collapse-button.css +4 -0
- package/css/std/controls/image-picker/image-picker.css +0 -7
- package/css/std/controls/image-viewer/image-viewer.css +5 -8
- package/css/std/controls/lookup-picker/lookup-picker-value-list.css +1 -1
- package/css/std/controls/search/search.css +1 -0
- package/css/std/controls/slide-up-button/slide-up-button.css +78 -0
- package/css/std/controls/tab-group/tab-group.css +15 -51
- package/css/std/controls/table-view/table-view-custom-lookup-edit.css +1 -1
- package/css/std/controls/table-view/treegrid-cell.css +12 -0
- package/css/std/controls/table-view/treegrid-context-menu.css +1 -1
- package/dist/index.css +320 -401
- package/dist/index.js +713 -1546
- package/dist/index.js.map +1 -1
- package/dist/src/controls/ActivityItem/ActivityItem.d.ts +0 -1
- package/dist/src/controls/CommandMenu/CommandMenu.d.ts +1 -1
- package/dist/src/controls/CommandMenu/CommandMenuDropdownButton.d.ts +3 -19
- package/dist/src/controls/DropdownButton/Dropdown.d.ts +20 -0
- package/dist/src/controls/DropdownButton/DropdownButton.d.ts +16 -13
- package/dist/src/controls/DropdownButton/DropdownButtonConstants.d.ts +4 -0
- package/dist/src/controls/DropdownButton/DropdownButtonDropdownItem.d.ts +14 -0
- package/dist/src/controls/DropdownButton/DropdownButtonItem.d.ts +13 -0
- package/dist/src/controls/DropdownButton/DropdownToggleContent.d.ts +11 -0
- package/dist/src/controls/DropdownButton/models/DropdownItem.d.ts +3 -4
- package/dist/src/controls/DropdownButton/services/DropdownButtonService.d.ts +4 -0
- package/dist/src/controls/ExpandCollapseButton/ExpandCollapseButton.d.ts +1 -0
- package/dist/src/controls/ExpandControlGroup/ExpandControlGroup.d.ts +1 -0
- package/dist/src/controls/MicroFrontend/MicroFrontend.d.ts +1 -0
- package/dist/src/controls/SearchInput/SearchInput.d.ts +1 -1
- package/dist/src/controls/SlideUpButton/SlideUpButton.d.ts +12 -0
- package/dist/src/controls/SlideUpButton/SlideUpButtonDropdownItem.d.ts +13 -0
- package/dist/src/controls/SlideUpButton/SlideUpButtonItem.d.ts +11 -0
- package/dist/src/controls/TableView/services/TableViewService.d.ts +1 -0
- package/dist/src/controls/TableView/services/impl/TableViewServiceImpl.d.ts +1 -0
- package/dist/src/index.d.ts +9 -3
- package/dist/src/services.d.ts +3 -0
- package/package.json +1 -1
- package/src/controls/BimViewer/js/bim-viewer.js +2 -2
- package/src/controls/DxfViewer/js/dxf-viewer.js +14 -14
- package/src/controls/PdfViewer/js/pdf-viewer.js +6 -6
- package/css/std/controls/command-menu/img/collapse-up.svg +0 -3
- package/css/std/controls/command-menu/img/dropdown-menu-arrow.svg +0 -1
- /package/css/std/controls/{command-menu → dropdown-button}/img/collapse-bottom.svg +0 -0
package/dist/index.js
CHANGED
|
@@ -21676,6 +21676,7 @@ var TableViewServiceImpl = /*#__PURE__*/function () {
|
|
|
21676
21676
|
this.isFilterOneLevel = false;
|
|
21677
21677
|
this.gridChangesFormat = 'JSON';
|
|
21678
21678
|
this.searchCriterionMap = new Map();
|
|
21679
|
+
this.visibleColumnList = [];
|
|
21679
21680
|
this.grid = grid;
|
|
21680
21681
|
this.id = grid.id;
|
|
21681
21682
|
this.grid.Source.Upload.Format = this.gridChangesFormat;
|
|
@@ -22105,6 +22106,9 @@ var TableViewServiceImpl = /*#__PURE__*/function () {
|
|
|
22105
22106
|
};
|
|
22106
22107
|
_proto.setVisibleColumnListXml = function setVisibleColumnListXml(data) {
|
|
22107
22108
|
var visibleColumnNameList = this.getCols(ATTRIBUTE.VISIBLE);
|
|
22109
|
+
if (this.visibleColumnList && this.visibleColumnList.length) {
|
|
22110
|
+
visibleColumnNameList = visibleColumnNameList.concat(this.visibleColumnList);
|
|
22111
|
+
}
|
|
22108
22112
|
if (visibleColumnNameList && visibleColumnNameList.length) {
|
|
22109
22113
|
this.addGanttVisibleColumnList(visibleColumnNameList);
|
|
22110
22114
|
var visibleColumnNameListJson = JSON.stringify(visibleColumnNameList);
|
|
@@ -22526,7 +22530,7 @@ var MicroFrontend = React.forwardRef(function (props, ref) {
|
|
|
22526
22530
|
ref: rootRef,
|
|
22527
22531
|
id: id,
|
|
22528
22532
|
"data-type": 'app',
|
|
22529
|
-
className: props.isDockFill === false ? undefined : styles$6['vitro-micro-frontend']
|
|
22533
|
+
className: (props.isDockFill === false ? undefined : styles$6['vitro-micro-frontend']) + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
22530
22534
|
});
|
|
22531
22535
|
});
|
|
22532
22536
|
|
|
@@ -23289,54 +23293,6 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
23289
23293
|
return target;
|
|
23290
23294
|
}
|
|
23291
23295
|
|
|
23292
|
-
/**
|
|
23293
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
23294
|
-
*
|
|
23295
|
-
* This source code is licensed under the MIT license found in the
|
|
23296
|
-
* LICENSE file in the root directory of this source tree.
|
|
23297
|
-
*/
|
|
23298
|
-
|
|
23299
|
-
/**
|
|
23300
|
-
* Use invariant() to assert state which your program assumes to be true.
|
|
23301
|
-
*
|
|
23302
|
-
* Provide sprintf-style format (only %s is supported) and arguments
|
|
23303
|
-
* to provide information about what broke and what you were
|
|
23304
|
-
* expecting.
|
|
23305
|
-
*
|
|
23306
|
-
* The invariant message will be stripped in production, but the invariant
|
|
23307
|
-
* will remain to ensure logic does not differ in production.
|
|
23308
|
-
*/
|
|
23309
|
-
|
|
23310
|
-
var invariant = function(condition, format, a, b, c, d, e, f) {
|
|
23311
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
23312
|
-
if (format === undefined) {
|
|
23313
|
-
throw new Error('invariant requires an error message argument');
|
|
23314
|
-
}
|
|
23315
|
-
}
|
|
23316
|
-
|
|
23317
|
-
if (!condition) {
|
|
23318
|
-
var error;
|
|
23319
|
-
if (format === undefined) {
|
|
23320
|
-
error = new Error(
|
|
23321
|
-
'Minified exception occurred; use the non-minified dev environment ' +
|
|
23322
|
-
'for the full error message and additional helpful warnings.'
|
|
23323
|
-
);
|
|
23324
|
-
} else {
|
|
23325
|
-
var args = [a, b, c, d, e, f];
|
|
23326
|
-
var argIndex = 0;
|
|
23327
|
-
error = new Error(
|
|
23328
|
-
format.replace(/%s/g, function() { return args[argIndex++]; })
|
|
23329
|
-
);
|
|
23330
|
-
error.name = 'Invariant Violation';
|
|
23331
|
-
}
|
|
23332
|
-
|
|
23333
|
-
error.framesToPop = 1; // we don't care about invariant's own frame
|
|
23334
|
-
throw error;
|
|
23335
|
-
}
|
|
23336
|
-
};
|
|
23337
|
-
|
|
23338
|
-
var browser = invariant;
|
|
23339
|
-
|
|
23340
23296
|
function defaultKey(key) {
|
|
23341
23297
|
return 'default' + key.charAt(0).toUpperCase() + key.substr(1);
|
|
23342
23298
|
}
|
|
@@ -56395,24 +56351,6 @@ function useCallbackRef() {
|
|
|
56395
56351
|
return React.useState(null);
|
|
56396
56352
|
}
|
|
56397
56353
|
|
|
56398
|
-
/**
|
|
56399
|
-
* Attaches an event handler outside directly to specified DOM element
|
|
56400
|
-
* bypassing the react synthetic event system.
|
|
56401
|
-
*
|
|
56402
|
-
* @param element The target to listen for events on
|
|
56403
|
-
* @param event The DOM event name
|
|
56404
|
-
* @param handler An event handler
|
|
56405
|
-
* @param capture Whether or not to listen during the capture event phase
|
|
56406
|
-
*/
|
|
56407
|
-
function useEventListener(eventTarget, event, listener, capture = false) {
|
|
56408
|
-
const handler = useEventCallback(listener);
|
|
56409
|
-
React.useEffect(() => {
|
|
56410
|
-
const target = typeof eventTarget === 'function' ? eventTarget() : eventTarget;
|
|
56411
|
-
target.addEventListener(event, handler, capture);
|
|
56412
|
-
return () => target.removeEventListener(event, handler, capture);
|
|
56413
|
-
}, [eventTarget]);
|
|
56414
|
-
}
|
|
56415
|
-
|
|
56416
56354
|
/**
|
|
56417
56355
|
* Track whether a component is current mounted. Generally less preferable than
|
|
56418
56356
|
* properlly canceling effects so they don't run after a component is unmounted,
|
|
@@ -56445,31 +56383,6 @@ function useMounted() {
|
|
|
56445
56383
|
return isMounted.current;
|
|
56446
56384
|
}
|
|
56447
56385
|
|
|
56448
|
-
/**
|
|
56449
|
-
* Store the last of some value. Tracked via a `Ref` only updating it
|
|
56450
|
-
* after the component renders.
|
|
56451
|
-
*
|
|
56452
|
-
* Helpful if you need to compare a prop value to it's previous value during render.
|
|
56453
|
-
*
|
|
56454
|
-
* ```ts
|
|
56455
|
-
* function Component(props) {
|
|
56456
|
-
* const lastProps = usePrevious(props)
|
|
56457
|
-
*
|
|
56458
|
-
* if (lastProps.foo !== props.foo)
|
|
56459
|
-
* resetValueFromProps(props.foo)
|
|
56460
|
-
* }
|
|
56461
|
-
* ```
|
|
56462
|
-
*
|
|
56463
|
-
* @param value the value to track
|
|
56464
|
-
*/
|
|
56465
|
-
function usePrevious(value) {
|
|
56466
|
-
const ref = React.useRef(null);
|
|
56467
|
-
React.useEffect(() => {
|
|
56468
|
-
ref.current = value;
|
|
56469
|
-
});
|
|
56470
|
-
return ref.current;
|
|
56471
|
-
}
|
|
56472
|
-
|
|
56473
56386
|
const isReactNative = typeof global !== 'undefined' &&
|
|
56474
56387
|
// @ts-ignore
|
|
56475
56388
|
global.navigator &&
|
|
@@ -56862,28 +56775,6 @@ function qsa(element, selector) {
|
|
|
56862
56775
|
return toArray(element.querySelectorAll(selector));
|
|
56863
56776
|
}
|
|
56864
56777
|
|
|
56865
|
-
function useUncontrolledProp$1(propValue, defaultValue, handler) {
|
|
56866
|
-
const wasPropRef = React.useRef(propValue !== undefined);
|
|
56867
|
-
const [stateValue, setState] = React.useState(defaultValue);
|
|
56868
|
-
const isProp = propValue !== undefined;
|
|
56869
|
-
const wasProp = wasPropRef.current;
|
|
56870
|
-
wasPropRef.current = isProp;
|
|
56871
|
-
|
|
56872
|
-
/**
|
|
56873
|
-
* If a prop switches from controlled to Uncontrolled
|
|
56874
|
-
* reset its value to the defaultValue
|
|
56875
|
-
*/
|
|
56876
|
-
if (!isProp && wasProp && stateValue !== defaultValue) {
|
|
56877
|
-
setState(defaultValue);
|
|
56878
|
-
}
|
|
56879
|
-
return [isProp ? propValue : stateValue, React.useCallback((...args) => {
|
|
56880
|
-
const [value, ...rest] = args;
|
|
56881
|
-
let returnValue = handler == null ? void 0 : handler(value, ...rest);
|
|
56882
|
-
setState(value);
|
|
56883
|
-
return returnValue;
|
|
56884
|
-
}, [handler])];
|
|
56885
|
-
}
|
|
56886
|
-
|
|
56887
56778
|
/**
|
|
56888
56779
|
* Returns a function that triggers a component update. the hook equivalent to
|
|
56889
56780
|
* `this.forceUpdate()` in a class component. In most cases using a state value directly
|
|
@@ -56907,8 +56798,6 @@ function useForceUpdate() {
|
|
|
56907
56798
|
return dispatch;
|
|
56908
56799
|
}
|
|
56909
56800
|
|
|
56910
|
-
const DropdownContext = /*#__PURE__*/React.createContext(null);
|
|
56911
|
-
|
|
56912
56801
|
var has$2 = Object.prototype.hasOwnProperty;
|
|
56913
56802
|
|
|
56914
56803
|
function find(iter, tar, key) {
|
|
@@ -59105,270 +58994,6 @@ function mergeOptionsWithPopperConfig({
|
|
|
59105
58994
|
});
|
|
59106
58995
|
}
|
|
59107
58996
|
|
|
59108
|
-
const _excluded$3 = ["children"];
|
|
59109
|
-
function _objectWithoutPropertiesLoose$4(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
59110
|
-
const noop$2 = () => {};
|
|
59111
|
-
|
|
59112
|
-
/**
|
|
59113
|
-
* @memberOf Dropdown
|
|
59114
|
-
* @param {object} options
|
|
59115
|
-
* @param {boolean} options.flip Automatically adjust the menu `drop` position based on viewport edge detection
|
|
59116
|
-
* @param {[number, number]} options.offset Define an offset distance between the Menu and the Toggle
|
|
59117
|
-
* @param {boolean} options.show Display the menu manually, ignored in the context of a `Dropdown`
|
|
59118
|
-
* @param {boolean} options.usePopper opt in/out of using PopperJS to position menus. When disabled you must position it yourself.
|
|
59119
|
-
* @param {string} options.rootCloseEvent The pointer event to listen for when determining "clicks outside" the menu for triggering a close.
|
|
59120
|
-
* @param {object} options.popperConfig Options passed to the [`usePopper`](/api/usePopper) hook.
|
|
59121
|
-
*/
|
|
59122
|
-
function useDropdownMenu(options = {}) {
|
|
59123
|
-
const context = React.useContext(DropdownContext);
|
|
59124
|
-
const [arrowElement, attachArrowRef] = useCallbackRef();
|
|
59125
|
-
const hasShownRef = React.useRef(false);
|
|
59126
|
-
const {
|
|
59127
|
-
flip,
|
|
59128
|
-
offset,
|
|
59129
|
-
rootCloseEvent,
|
|
59130
|
-
fixed = false,
|
|
59131
|
-
placement: placementOverride,
|
|
59132
|
-
popperConfig = {},
|
|
59133
|
-
enableEventListeners = true,
|
|
59134
|
-
usePopper: shouldUsePopper = !!context
|
|
59135
|
-
} = options;
|
|
59136
|
-
const show = (context == null ? void 0 : context.show) == null ? !!options.show : context.show;
|
|
59137
|
-
if (show && !hasShownRef.current) {
|
|
59138
|
-
hasShownRef.current = true;
|
|
59139
|
-
}
|
|
59140
|
-
const handleClose = e => {
|
|
59141
|
-
context == null ? void 0 : context.toggle(false, e);
|
|
59142
|
-
};
|
|
59143
|
-
const {
|
|
59144
|
-
placement,
|
|
59145
|
-
setMenu,
|
|
59146
|
-
menuElement,
|
|
59147
|
-
toggleElement
|
|
59148
|
-
} = context || {};
|
|
59149
|
-
const popper = usePopper(toggleElement, menuElement, mergeOptionsWithPopperConfig({
|
|
59150
|
-
placement: placementOverride || placement || 'bottom-start',
|
|
59151
|
-
enabled: shouldUsePopper,
|
|
59152
|
-
enableEvents: enableEventListeners == null ? show : enableEventListeners,
|
|
59153
|
-
offset,
|
|
59154
|
-
flip,
|
|
59155
|
-
fixed,
|
|
59156
|
-
arrowElement,
|
|
59157
|
-
popperConfig
|
|
59158
|
-
}));
|
|
59159
|
-
const menuProps = Object.assign({
|
|
59160
|
-
ref: setMenu || noop$2,
|
|
59161
|
-
'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id
|
|
59162
|
-
}, popper.attributes.popper, {
|
|
59163
|
-
style: popper.styles.popper
|
|
59164
|
-
});
|
|
59165
|
-
const metadata = {
|
|
59166
|
-
show,
|
|
59167
|
-
placement,
|
|
59168
|
-
hasShown: hasShownRef.current,
|
|
59169
|
-
toggle: context == null ? void 0 : context.toggle,
|
|
59170
|
-
popper: shouldUsePopper ? popper : null,
|
|
59171
|
-
arrowProps: shouldUsePopper ? Object.assign({
|
|
59172
|
-
ref: attachArrowRef
|
|
59173
|
-
}, popper.attributes.arrow, {
|
|
59174
|
-
style: popper.styles.arrow
|
|
59175
|
-
}) : {}
|
|
59176
|
-
};
|
|
59177
|
-
useClickOutside(menuElement, handleClose, {
|
|
59178
|
-
clickTrigger: rootCloseEvent,
|
|
59179
|
-
disabled: !show
|
|
59180
|
-
});
|
|
59181
|
-
return [menuProps, metadata];
|
|
59182
|
-
}
|
|
59183
|
-
const defaultProps = {
|
|
59184
|
-
usePopper: true
|
|
59185
|
-
};
|
|
59186
|
-
/**
|
|
59187
|
-
* Also exported as `<Dropdown.Menu>` from `Dropdown`.
|
|
59188
|
-
*
|
|
59189
|
-
* @displayName DropdownMenu
|
|
59190
|
-
* @memberOf Dropdown
|
|
59191
|
-
*/
|
|
59192
|
-
function DropdownMenu(_ref) {
|
|
59193
|
-
let {
|
|
59194
|
-
children
|
|
59195
|
-
} = _ref,
|
|
59196
|
-
options = _objectWithoutPropertiesLoose$4(_ref, _excluded$3);
|
|
59197
|
-
const [props, meta] = useDropdownMenu(options);
|
|
59198
|
-
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
59199
|
-
children: children(props, meta)
|
|
59200
|
-
});
|
|
59201
|
-
}
|
|
59202
|
-
DropdownMenu.displayName = 'DropdownMenu';
|
|
59203
|
-
DropdownMenu.defaultProps = defaultProps;
|
|
59204
|
-
|
|
59205
|
-
/*
|
|
59206
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
59207
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
59208
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
59209
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
59210
|
-
*
|
|
59211
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
59212
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
59213
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
59214
|
-
* governing permissions and limitations under the License.
|
|
59215
|
-
*/ /*
|
|
59216
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
59217
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
59218
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
59219
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
59220
|
-
*
|
|
59221
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
59222
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
59223
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
59224
|
-
* governing permissions and limitations under the License.
|
|
59225
|
-
*/ // We must avoid a circular dependency with @react-aria/utils, and this useLayoutEffect is
|
|
59226
|
-
// guarded by a check that it only runs on the client side.
|
|
59227
|
-
// eslint-disable-next-line rulesdir/useLayoutEffectRule
|
|
59228
|
-
|
|
59229
|
-
// Default context value to use in case there is no SSRProvider. This is fine for
|
|
59230
|
-
// client-only apps. In order to support multiple copies of React Aria potentially
|
|
59231
|
-
// being on the page at once, the prefix is set to a random number. SSRProvider
|
|
59232
|
-
// will reset this to zero for consistency between server and client, so in the
|
|
59233
|
-
// SSR case multiple copies of React Aria is not supported.
|
|
59234
|
-
const $b5e257d569688ac6$var$defaultContext = {
|
|
59235
|
-
prefix: String(Math.round(Math.random() * 10000000000)),
|
|
59236
|
-
current: 0
|
|
59237
|
-
};
|
|
59238
|
-
const $b5e257d569688ac6$var$SSRContext = /*#__PURE__*/ (React__default).createContext($b5e257d569688ac6$var$defaultContext);
|
|
59239
|
-
const $b5e257d569688ac6$var$IsSSRContext = /*#__PURE__*/ (React__default).createContext(false);
|
|
59240
|
-
let $b5e257d569688ac6$var$canUseDOM = Boolean(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
59241
|
-
let $b5e257d569688ac6$var$componentIds = new WeakMap();
|
|
59242
|
-
function $b5e257d569688ac6$var$useCounter(isDisabled = false) {
|
|
59243
|
-
let ctx = (React.useContext)($b5e257d569688ac6$var$SSRContext);
|
|
59244
|
-
let ref = (React.useRef)(null);
|
|
59245
|
-
// eslint-disable-next-line rulesdir/pure-render
|
|
59246
|
-
if (ref.current === null && !isDisabled) {
|
|
59247
|
-
var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
59248
|
-
// In strict mode, React renders components twice, and the ref will be reset to null on the second render.
|
|
59249
|
-
// This means our id counter will be incremented twice instead of once. This is a problem because on the
|
|
59250
|
-
// server, components are only rendered once and so ids generated on the server won't match the client.
|
|
59251
|
-
// In React 18, useId was introduced to solve this, but it is not available in older versions. So to solve this
|
|
59252
|
-
// we need to use some React internals to access the underlying Fiber instance, which is stable between renders.
|
|
59253
|
-
// This is exposed as ReactCurrentOwner in development, which is all we need since StrictMode only runs in development.
|
|
59254
|
-
// To ensure that we only increment the global counter once, we store the starting id for this component in
|
|
59255
|
-
// a weak map associated with the Fiber. On the second render, we reset the global counter to this value.
|
|
59256
|
-
// Since React runs the second render immediately after the first, this is safe.
|
|
59257
|
-
// @ts-ignore
|
|
59258
|
-
let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = (React__default).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === void 0 ? void 0 : (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner = _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner === void 0 ? void 0 : _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner.current;
|
|
59259
|
-
if (currentOwner) {
|
|
59260
|
-
let prevComponentValue = $b5e257d569688ac6$var$componentIds.get(currentOwner);
|
|
59261
|
-
if (prevComponentValue == null) // On the first render, and first call to useId, store the id and state in our weak map.
|
|
59262
|
-
$b5e257d569688ac6$var$componentIds.set(currentOwner, {
|
|
59263
|
-
id: ctx.current,
|
|
59264
|
-
state: currentOwner.memoizedState
|
|
59265
|
-
});
|
|
59266
|
-
else if (currentOwner.memoizedState !== prevComponentValue.state) {
|
|
59267
|
-
// On the second render, the memoizedState gets reset by React.
|
|
59268
|
-
// Reset the counter, and remove from the weak map so we don't
|
|
59269
|
-
// do this for subsequent useId calls.
|
|
59270
|
-
ctx.current = prevComponentValue.id;
|
|
59271
|
-
$b5e257d569688ac6$var$componentIds.delete(currentOwner);
|
|
59272
|
-
}
|
|
59273
|
-
}
|
|
59274
|
-
// eslint-disable-next-line rulesdir/pure-render
|
|
59275
|
-
ref.current = ++ctx.current;
|
|
59276
|
-
}
|
|
59277
|
-
// eslint-disable-next-line rulesdir/pure-render
|
|
59278
|
-
return ref.current;
|
|
59279
|
-
}
|
|
59280
|
-
function $b5e257d569688ac6$var$useLegacySSRSafeId(defaultId) {
|
|
59281
|
-
let ctx = (React.useContext)($b5e257d569688ac6$var$SSRContext);
|
|
59282
|
-
// If we are rendering in a non-DOM environment, and there's no SSRProvider,
|
|
59283
|
-
// provide a warning to hint to the developer to add one.
|
|
59284
|
-
if (ctx === $b5e257d569688ac6$var$defaultContext && !$b5e257d569688ac6$var$canUseDOM) console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
59285
|
-
let counter = $b5e257d569688ac6$var$useCounter(!!defaultId);
|
|
59286
|
-
let prefix = ctx === $b5e257d569688ac6$var$defaultContext && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${ctx.prefix}`;
|
|
59287
|
-
return defaultId || `${prefix}-${counter}`;
|
|
59288
|
-
}
|
|
59289
|
-
function $b5e257d569688ac6$var$useModernSSRSafeId(defaultId) {
|
|
59290
|
-
// @ts-ignore
|
|
59291
|
-
let id = (React__default).useId();
|
|
59292
|
-
let [didSSR] = (React.useState)($b5e257d569688ac6$export$535bd6ca7f90a273());
|
|
59293
|
-
let prefix = didSSR || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${$b5e257d569688ac6$var$defaultContext.prefix}`;
|
|
59294
|
-
return defaultId || `${prefix}-${id}`;
|
|
59295
|
-
}
|
|
59296
|
-
const $b5e257d569688ac6$export$619500959fc48b26 = typeof (React__default)["useId"] === "function" ? $b5e257d569688ac6$var$useModernSSRSafeId : $b5e257d569688ac6$var$useLegacySSRSafeId;
|
|
59297
|
-
function $b5e257d569688ac6$var$getSnapshot() {
|
|
59298
|
-
return false;
|
|
59299
|
-
}
|
|
59300
|
-
function $b5e257d569688ac6$var$getServerSnapshot() {
|
|
59301
|
-
return true;
|
|
59302
|
-
}
|
|
59303
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
59304
|
-
function $b5e257d569688ac6$var$subscribe(onStoreChange) {
|
|
59305
|
-
// noop
|
|
59306
|
-
return ()=>{};
|
|
59307
|
-
}
|
|
59308
|
-
function $b5e257d569688ac6$export$535bd6ca7f90a273() {
|
|
59309
|
-
// In React 18, we can use useSyncExternalStore to detect if we're server rendering or hydrating.
|
|
59310
|
-
if (typeof (React__default)["useSyncExternalStore"] === "function") return (React__default)["useSyncExternalStore"]($b5e257d569688ac6$var$subscribe, $b5e257d569688ac6$var$getSnapshot, $b5e257d569688ac6$var$getServerSnapshot);
|
|
59311
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
59312
|
-
return (React.useContext)($b5e257d569688ac6$var$IsSSRContext);
|
|
59313
|
-
}
|
|
59314
|
-
|
|
59315
|
-
const isRoleMenu = el => {
|
|
59316
|
-
var _el$getAttribute;
|
|
59317
|
-
return ((_el$getAttribute = el.getAttribute('role')) == null ? void 0 : _el$getAttribute.toLowerCase()) === 'menu';
|
|
59318
|
-
};
|
|
59319
|
-
const noop$3 = () => {};
|
|
59320
|
-
|
|
59321
|
-
/**
|
|
59322
|
-
* Wires up Dropdown toggle functionality, returning a set a props to attach
|
|
59323
|
-
* to the element that functions as the dropdown toggle (generally a button).
|
|
59324
|
-
*
|
|
59325
|
-
* @memberOf Dropdown
|
|
59326
|
-
*/
|
|
59327
|
-
function useDropdownToggle() {
|
|
59328
|
-
const id = $b5e257d569688ac6$export$619500959fc48b26();
|
|
59329
|
-
const {
|
|
59330
|
-
show = false,
|
|
59331
|
-
toggle = noop$3,
|
|
59332
|
-
setToggle,
|
|
59333
|
-
menuElement
|
|
59334
|
-
} = React.useContext(DropdownContext) || {};
|
|
59335
|
-
const handleClick = React.useCallback(e => {
|
|
59336
|
-
toggle(!show, e);
|
|
59337
|
-
}, [show, toggle]);
|
|
59338
|
-
const props = {
|
|
59339
|
-
id,
|
|
59340
|
-
ref: setToggle || noop$3,
|
|
59341
|
-
onClick: handleClick,
|
|
59342
|
-
'aria-expanded': !!show
|
|
59343
|
-
};
|
|
59344
|
-
|
|
59345
|
-
// This is maybe better down in an effect, but
|
|
59346
|
-
// the component is going to update anyway when the menu element
|
|
59347
|
-
// is set so might return new props.
|
|
59348
|
-
if (menuElement && isRoleMenu(menuElement)) {
|
|
59349
|
-
props['aria-haspopup'] = true;
|
|
59350
|
-
}
|
|
59351
|
-
return [props, {
|
|
59352
|
-
show,
|
|
59353
|
-
toggle
|
|
59354
|
-
}];
|
|
59355
|
-
}
|
|
59356
|
-
/**
|
|
59357
|
-
* Also exported as `<Dropdown.Toggle>` from `Dropdown`.
|
|
59358
|
-
*
|
|
59359
|
-
* @displayName DropdownToggle
|
|
59360
|
-
* @memberOf Dropdown
|
|
59361
|
-
*/
|
|
59362
|
-
function DropdownToggle({
|
|
59363
|
-
children
|
|
59364
|
-
}) {
|
|
59365
|
-
const [props, meta] = useDropdownToggle();
|
|
59366
|
-
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
59367
|
-
children: children(props, meta)
|
|
59368
|
-
});
|
|
59369
|
-
}
|
|
59370
|
-
DropdownToggle.displayName = 'DropdownToggle';
|
|
59371
|
-
|
|
59372
58997
|
const SelectableContext = /*#__PURE__*/React.createContext(null);
|
|
59373
58998
|
const makeEventKey = (eventKey, href = null) => {
|
|
59374
58999
|
if (eventKey != null) return String(eventKey);
|
|
@@ -59387,64 +59012,6 @@ function dataProp(property) {
|
|
|
59387
59012
|
return `${PROPERTY_PREFIX}${property}`;
|
|
59388
59013
|
}
|
|
59389
59014
|
|
|
59390
|
-
const _excluded$4 = ["eventKey", "disabled", "onClick", "active", "as"];
|
|
59391
|
-
function _objectWithoutPropertiesLoose$5(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
59392
|
-
/**
|
|
59393
|
-
* Create a dropdown item. Returns a set of props for the dropdown item component
|
|
59394
|
-
* including an `onClick` handler that prevents selection when the item is disabled
|
|
59395
|
-
*/
|
|
59396
|
-
function useDropdownItem({
|
|
59397
|
-
key,
|
|
59398
|
-
href,
|
|
59399
|
-
active,
|
|
59400
|
-
disabled,
|
|
59401
|
-
onClick
|
|
59402
|
-
}) {
|
|
59403
|
-
const onSelectCtx = React.useContext(SelectableContext);
|
|
59404
|
-
const navContext = React.useContext(NavContext);
|
|
59405
|
-
const {
|
|
59406
|
-
activeKey
|
|
59407
|
-
} = navContext || {};
|
|
59408
|
-
const eventKey = makeEventKey(key, href);
|
|
59409
|
-
const isActive = active == null && key != null ? makeEventKey(activeKey) === eventKey : active;
|
|
59410
|
-
const handleClick = useEventCallback(event => {
|
|
59411
|
-
if (disabled) return;
|
|
59412
|
-
onClick == null ? void 0 : onClick(event);
|
|
59413
|
-
if (onSelectCtx && !event.isPropagationStopped()) {
|
|
59414
|
-
onSelectCtx(eventKey, event);
|
|
59415
|
-
}
|
|
59416
|
-
});
|
|
59417
|
-
return [{
|
|
59418
|
-
onClick: handleClick,
|
|
59419
|
-
'aria-disabled': disabled || undefined,
|
|
59420
|
-
'aria-selected': isActive,
|
|
59421
|
-
[dataAttr('dropdown-item')]: ''
|
|
59422
|
-
}, {
|
|
59423
|
-
isActive
|
|
59424
|
-
}];
|
|
59425
|
-
}
|
|
59426
|
-
const DropdownItem = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
59427
|
-
let {
|
|
59428
|
-
eventKey,
|
|
59429
|
-
disabled,
|
|
59430
|
-
onClick,
|
|
59431
|
-
active,
|
|
59432
|
-
as: Component = Button
|
|
59433
|
-
} = _ref,
|
|
59434
|
-
props = _objectWithoutPropertiesLoose$5(_ref, _excluded$4);
|
|
59435
|
-
const [dropdownItemProps] = useDropdownItem({
|
|
59436
|
-
key: eventKey,
|
|
59437
|
-
href: props.href,
|
|
59438
|
-
disabled,
|
|
59439
|
-
onClick,
|
|
59440
|
-
active
|
|
59441
|
-
});
|
|
59442
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, Object.assign({}, props, {
|
|
59443
|
-
ref: ref
|
|
59444
|
-
}, dropdownItemProps));
|
|
59445
|
-
});
|
|
59446
|
-
DropdownItem.displayName = 'DropdownItem';
|
|
59447
|
-
|
|
59448
59015
|
const Context = /*#__PURE__*/React.createContext(canUseDOM ? window : undefined);
|
|
59449
59016
|
|
|
59450
59017
|
/**
|
|
@@ -59457,499 +59024,15 @@ function useWindow() {
|
|
|
59457
59024
|
return React.useContext(Context);
|
|
59458
59025
|
}
|
|
59459
59026
|
|
|
59460
|
-
function useRefWithUpdate() {
|
|
59461
|
-
const forceUpdate = useForceUpdate();
|
|
59462
|
-
const ref = React.useRef(null);
|
|
59463
|
-
const attachRef = React.useCallback(element => {
|
|
59464
|
-
ref.current = element;
|
|
59465
|
-
// ensure that a menu set triggers an update for consumers
|
|
59466
|
-
forceUpdate();
|
|
59467
|
-
}, [forceUpdate]);
|
|
59468
|
-
return [ref, attachRef];
|
|
59469
|
-
}
|
|
59470
|
-
|
|
59471
|
-
/**
|
|
59472
|
-
* @displayName Dropdown
|
|
59473
|
-
* @public
|
|
59474
|
-
*/
|
|
59475
|
-
function Dropdown({
|
|
59476
|
-
defaultShow,
|
|
59477
|
-
show: rawShow,
|
|
59478
|
-
onSelect,
|
|
59479
|
-
onToggle: rawOnToggle,
|
|
59480
|
-
itemSelector = `* [${dataAttr('dropdown-item')}]`,
|
|
59481
|
-
focusFirstItemOnShow,
|
|
59482
|
-
placement = 'bottom-start',
|
|
59483
|
-
children
|
|
59484
|
-
}) {
|
|
59485
|
-
const window = useWindow();
|
|
59486
|
-
const [show, onToggle] = useUncontrolledProp$1(rawShow, defaultShow, rawOnToggle);
|
|
59487
|
-
|
|
59488
|
-
// We use normal refs instead of useCallbackRef in order to populate the
|
|
59489
|
-
// the value as quickly as possible, otherwise the effect to focus the element
|
|
59490
|
-
// may run before the state value is set
|
|
59491
|
-
const [menuRef, setMenu] = useRefWithUpdate();
|
|
59492
|
-
const menuElement = menuRef.current;
|
|
59493
|
-
const [toggleRef, setToggle] = useRefWithUpdate();
|
|
59494
|
-
const toggleElement = toggleRef.current;
|
|
59495
|
-
const lastShow = usePrevious(show);
|
|
59496
|
-
const lastSourceEvent = React.useRef(null);
|
|
59497
|
-
const focusInDropdown = React.useRef(false);
|
|
59498
|
-
const onSelectCtx = React.useContext(SelectableContext);
|
|
59499
|
-
const toggle = React.useCallback((nextShow, event, source = event == null ? void 0 : event.type) => {
|
|
59500
|
-
onToggle(nextShow, {
|
|
59501
|
-
originalEvent: event,
|
|
59502
|
-
source
|
|
59503
|
-
});
|
|
59504
|
-
}, [onToggle]);
|
|
59505
|
-
const handleSelect = useEventCallback((key, event) => {
|
|
59506
|
-
onSelect == null ? void 0 : onSelect(key, event);
|
|
59507
|
-
toggle(false, event, 'select');
|
|
59508
|
-
if (!event.isPropagationStopped()) {
|
|
59509
|
-
onSelectCtx == null ? void 0 : onSelectCtx(key, event);
|
|
59510
|
-
}
|
|
59511
|
-
});
|
|
59512
|
-
const context = React.useMemo(() => ({
|
|
59513
|
-
toggle,
|
|
59514
|
-
placement,
|
|
59515
|
-
show,
|
|
59516
|
-
menuElement,
|
|
59517
|
-
toggleElement,
|
|
59518
|
-
setMenu,
|
|
59519
|
-
setToggle
|
|
59520
|
-
}), [toggle, placement, show, menuElement, toggleElement, setMenu, setToggle]);
|
|
59521
|
-
if (menuElement && lastShow && !show) {
|
|
59522
|
-
focusInDropdown.current = menuElement.contains(menuElement.ownerDocument.activeElement);
|
|
59523
|
-
}
|
|
59524
|
-
const focusToggle = useEventCallback(() => {
|
|
59525
|
-
if (toggleElement && toggleElement.focus) {
|
|
59526
|
-
toggleElement.focus();
|
|
59527
|
-
}
|
|
59528
|
-
});
|
|
59529
|
-
const maybeFocusFirst = useEventCallback(() => {
|
|
59530
|
-
const type = lastSourceEvent.current;
|
|
59531
|
-
let focusType = focusFirstItemOnShow;
|
|
59532
|
-
if (focusType == null) {
|
|
59533
|
-
focusType = menuRef.current && isRoleMenu(menuRef.current) ? 'keyboard' : false;
|
|
59534
|
-
}
|
|
59535
|
-
if (focusType === false || focusType === 'keyboard' && !/^key.+$/.test(type)) {
|
|
59536
|
-
return;
|
|
59537
|
-
}
|
|
59538
|
-
const first = qsa(menuRef.current, itemSelector)[0];
|
|
59539
|
-
if (first && first.focus) first.focus();
|
|
59540
|
-
});
|
|
59541
|
-
React.useEffect(() => {
|
|
59542
|
-
if (show) maybeFocusFirst();else if (focusInDropdown.current) {
|
|
59543
|
-
focusInDropdown.current = false;
|
|
59544
|
-
focusToggle();
|
|
59545
|
-
}
|
|
59546
|
-
// only `show` should be changing
|
|
59547
|
-
}, [show, focusInDropdown, focusToggle, maybeFocusFirst]);
|
|
59548
|
-
React.useEffect(() => {
|
|
59549
|
-
lastSourceEvent.current = null;
|
|
59550
|
-
});
|
|
59551
|
-
const getNextFocusedChild = (current, offset) => {
|
|
59552
|
-
if (!menuRef.current) return null;
|
|
59553
|
-
const items = qsa(menuRef.current, itemSelector);
|
|
59554
|
-
let index = items.indexOf(current) + offset;
|
|
59555
|
-
index = Math.max(0, Math.min(index, items.length));
|
|
59556
|
-
return items[index];
|
|
59557
|
-
};
|
|
59558
|
-
useEventListener(React.useCallback(() => window.document, [window]), 'keydown', event => {
|
|
59559
|
-
var _menuRef$current, _toggleRef$current;
|
|
59560
|
-
const {
|
|
59561
|
-
key
|
|
59562
|
-
} = event;
|
|
59563
|
-
const target = event.target;
|
|
59564
|
-
const fromMenu = (_menuRef$current = menuRef.current) == null ? void 0 : _menuRef$current.contains(target);
|
|
59565
|
-
const fromToggle = (_toggleRef$current = toggleRef.current) == null ? void 0 : _toggleRef$current.contains(target);
|
|
59566
|
-
|
|
59567
|
-
// Second only to https://github.com/twbs/bootstrap/blob/8cfbf6933b8a0146ac3fbc369f19e520bd1ebdac/js/src/dropdown.js#L400
|
|
59568
|
-
// in inscrutability
|
|
59569
|
-
const isInput = /input|textarea/i.test(target.tagName);
|
|
59570
|
-
if (isInput && (key === ' ' || key !== 'Escape' && fromMenu || key === 'Escape' && target.type === 'search')) {
|
|
59571
|
-
return;
|
|
59572
|
-
}
|
|
59573
|
-
if (!fromMenu && !fromToggle) {
|
|
59574
|
-
return;
|
|
59575
|
-
}
|
|
59576
|
-
if (key === 'Tab' && (!menuRef.current || !show)) {
|
|
59577
|
-
return;
|
|
59578
|
-
}
|
|
59579
|
-
lastSourceEvent.current = event.type;
|
|
59580
|
-
const meta = {
|
|
59581
|
-
originalEvent: event,
|
|
59582
|
-
source: event.type
|
|
59583
|
-
};
|
|
59584
|
-
switch (key) {
|
|
59585
|
-
case 'ArrowUp':
|
|
59586
|
-
{
|
|
59587
|
-
const next = getNextFocusedChild(target, -1);
|
|
59588
|
-
if (next && next.focus) next.focus();
|
|
59589
|
-
event.preventDefault();
|
|
59590
|
-
return;
|
|
59591
|
-
}
|
|
59592
|
-
case 'ArrowDown':
|
|
59593
|
-
event.preventDefault();
|
|
59594
|
-
if (!show) {
|
|
59595
|
-
onToggle(true, meta);
|
|
59596
|
-
} else {
|
|
59597
|
-
const next = getNextFocusedChild(target, 1);
|
|
59598
|
-
if (next && next.focus) next.focus();
|
|
59599
|
-
}
|
|
59600
|
-
return;
|
|
59601
|
-
case 'Tab':
|
|
59602
|
-
// on keydown the target is the element being tabbed FROM, we need that
|
|
59603
|
-
// to know if this event is relevant to this dropdown (e.g. in this menu).
|
|
59604
|
-
// On `keyup` the target is the element being tagged TO which we use to check
|
|
59605
|
-
// if focus has left the menu
|
|
59606
|
-
addEventListener(target.ownerDocument, 'keyup', e => {
|
|
59607
|
-
var _menuRef$current2;
|
|
59608
|
-
if (e.key === 'Tab' && !e.target || !((_menuRef$current2 = menuRef.current) != null && _menuRef$current2.contains(e.target))) {
|
|
59609
|
-
onToggle(false, meta);
|
|
59610
|
-
}
|
|
59611
|
-
}, {
|
|
59612
|
-
once: true
|
|
59613
|
-
});
|
|
59614
|
-
break;
|
|
59615
|
-
case 'Escape':
|
|
59616
|
-
if (key === 'Escape') {
|
|
59617
|
-
event.preventDefault();
|
|
59618
|
-
event.stopPropagation();
|
|
59619
|
-
}
|
|
59620
|
-
onToggle(false, meta);
|
|
59621
|
-
break;
|
|
59622
|
-
}
|
|
59623
|
-
});
|
|
59624
|
-
return /*#__PURE__*/jsxRuntime.jsx(SelectableContext.Provider, {
|
|
59625
|
-
value: handleSelect,
|
|
59626
|
-
children: /*#__PURE__*/jsxRuntime.jsx(DropdownContext.Provider, {
|
|
59627
|
-
value: context,
|
|
59628
|
-
children: children
|
|
59629
|
-
})
|
|
59630
|
-
});
|
|
59631
|
-
}
|
|
59632
|
-
Dropdown.displayName = 'Dropdown';
|
|
59633
|
-
Dropdown.Menu = DropdownMenu;
|
|
59634
|
-
Dropdown.Toggle = DropdownToggle;
|
|
59635
|
-
Dropdown.Item = DropdownItem;
|
|
59636
|
-
|
|
59637
|
-
const DropdownContext$1 = /*#__PURE__*/React.createContext({});
|
|
59638
|
-
DropdownContext$1.displayName = 'DropdownContext';
|
|
59639
|
-
|
|
59640
|
-
const DropdownDivider = /*#__PURE__*/React.forwardRef(({
|
|
59641
|
-
className,
|
|
59642
|
-
bsPrefix,
|
|
59643
|
-
as: Component = 'hr',
|
|
59644
|
-
role = 'separator',
|
|
59645
|
-
...props
|
|
59646
|
-
}, ref) => {
|
|
59647
|
-
bsPrefix = useBootstrapPrefix(bsPrefix, 'dropdown-divider');
|
|
59648
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
59649
|
-
ref: ref,
|
|
59650
|
-
className: classnames(className, bsPrefix),
|
|
59651
|
-
role: role,
|
|
59652
|
-
...props
|
|
59653
|
-
});
|
|
59654
|
-
});
|
|
59655
|
-
DropdownDivider.displayName = 'DropdownDivider';
|
|
59656
|
-
|
|
59657
|
-
const DropdownHeader = /*#__PURE__*/React.forwardRef(({
|
|
59658
|
-
className,
|
|
59659
|
-
bsPrefix,
|
|
59660
|
-
as: Component = 'div',
|
|
59661
|
-
role = 'heading',
|
|
59662
|
-
...props
|
|
59663
|
-
}, ref) => {
|
|
59664
|
-
bsPrefix = useBootstrapPrefix(bsPrefix, 'dropdown-header');
|
|
59665
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
59666
|
-
ref: ref,
|
|
59667
|
-
className: classnames(className, bsPrefix),
|
|
59668
|
-
role: role,
|
|
59669
|
-
...props
|
|
59670
|
-
});
|
|
59671
|
-
});
|
|
59672
|
-
DropdownHeader.displayName = 'DropdownHeader';
|
|
59673
|
-
|
|
59674
|
-
const DropdownItem$1 = /*#__PURE__*/React.forwardRef(({
|
|
59675
|
-
bsPrefix,
|
|
59676
|
-
className,
|
|
59677
|
-
eventKey,
|
|
59678
|
-
disabled = false,
|
|
59679
|
-
onClick,
|
|
59680
|
-
active,
|
|
59681
|
-
as: Component = Anchor,
|
|
59682
|
-
...props
|
|
59683
|
-
}, ref) => {
|
|
59684
|
-
const prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');
|
|
59685
|
-
const [dropdownItemProps, meta] = useDropdownItem({
|
|
59686
|
-
key: eventKey,
|
|
59687
|
-
href: props.href,
|
|
59688
|
-
disabled,
|
|
59689
|
-
onClick,
|
|
59690
|
-
active
|
|
59691
|
-
});
|
|
59692
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
59693
|
-
...props,
|
|
59694
|
-
...dropdownItemProps,
|
|
59695
|
-
ref: ref,
|
|
59696
|
-
className: classnames(className, prefix, meta.isActive && 'active', disabled && 'disabled')
|
|
59697
|
-
});
|
|
59698
|
-
});
|
|
59699
|
-
DropdownItem$1.displayName = 'DropdownItem';
|
|
59700
|
-
|
|
59701
|
-
const DropdownItemText = /*#__PURE__*/React.forwardRef(({
|
|
59702
|
-
className,
|
|
59703
|
-
bsPrefix,
|
|
59704
|
-
as: Component = 'span',
|
|
59705
|
-
...props
|
|
59706
|
-
}, ref) => {
|
|
59707
|
-
bsPrefix = useBootstrapPrefix(bsPrefix, 'dropdown-item-text');
|
|
59708
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
59709
|
-
ref: ref,
|
|
59710
|
-
className: classnames(className, bsPrefix),
|
|
59711
|
-
...props
|
|
59712
|
-
});
|
|
59713
|
-
});
|
|
59714
|
-
DropdownItemText.displayName = 'DropdownItemText';
|
|
59715
|
-
|
|
59716
|
-
const context$1 = /*#__PURE__*/React.createContext(null);
|
|
59717
|
-
context$1.displayName = 'InputGroupContext';
|
|
59718
|
-
|
|
59719
59027
|
// TODO: check
|
|
59720
59028
|
|
|
59721
|
-
const context$
|
|
59722
|
-
context$
|
|
59723
|
-
|
|
59724
|
-
function useWrappedRefWithWarning(ref, componentName) {
|
|
59725
|
-
// @ts-ignore
|
|
59726
|
-
if (!(process.env.NODE_ENV !== "production")) return ref;
|
|
59727
|
-
|
|
59728
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
59729
|
-
const warningRef = React.useCallback(refValue => {
|
|
59730
|
-
!(refValue == null || !refValue.isReactComponent) ? process.env.NODE_ENV !== "production" ? browser(false, `${componentName} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. ` + 'Use `React.forwardRef` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element') : browser(false) : void 0;
|
|
59731
|
-
}, [componentName]);
|
|
59732
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
59733
|
-
return useMergedRefs(warningRef, ref);
|
|
59734
|
-
}
|
|
59735
|
-
|
|
59736
|
-
function getDropdownMenuPlacement(alignEnd, dropDirection, isRTL) {
|
|
59737
|
-
const topStart = isRTL ? 'top-end' : 'top-start';
|
|
59738
|
-
const topEnd = isRTL ? 'top-start' : 'top-end';
|
|
59739
|
-
const bottomStart = isRTL ? 'bottom-end' : 'bottom-start';
|
|
59740
|
-
const bottomEnd = isRTL ? 'bottom-start' : 'bottom-end';
|
|
59741
|
-
const leftStart = isRTL ? 'right-start' : 'left-start';
|
|
59742
|
-
const leftEnd = isRTL ? 'right-end' : 'left-end';
|
|
59743
|
-
const rightStart = isRTL ? 'left-start' : 'right-start';
|
|
59744
|
-
const rightEnd = isRTL ? 'left-end' : 'right-end';
|
|
59745
|
-
let placement = alignEnd ? bottomEnd : bottomStart;
|
|
59746
|
-
if (dropDirection === 'up') placement = alignEnd ? topEnd : topStart;else if (dropDirection === 'end') placement = alignEnd ? rightEnd : rightStart;else if (dropDirection === 'start') placement = alignEnd ? leftEnd : leftStart;else if (dropDirection === 'down-centered') placement = 'bottom';else if (dropDirection === 'up-centered') placement = 'top';
|
|
59747
|
-
return placement;
|
|
59748
|
-
}
|
|
59749
|
-
const DropdownMenu$1 = /*#__PURE__*/React.forwardRef(({
|
|
59750
|
-
bsPrefix,
|
|
59751
|
-
className,
|
|
59752
|
-
align,
|
|
59753
|
-
rootCloseEvent,
|
|
59754
|
-
flip = true,
|
|
59755
|
-
show: showProps,
|
|
59756
|
-
renderOnMount,
|
|
59757
|
-
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
59758
|
-
as: Component = 'div',
|
|
59759
|
-
popperConfig,
|
|
59760
|
-
variant,
|
|
59761
|
-
...props
|
|
59762
|
-
}, ref) => {
|
|
59763
|
-
let alignEnd = false;
|
|
59764
|
-
const isNavbar = React.useContext(context$2);
|
|
59765
|
-
const prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
59766
|
-
const {
|
|
59767
|
-
align: contextAlign,
|
|
59768
|
-
drop,
|
|
59769
|
-
isRTL
|
|
59770
|
-
} = React.useContext(DropdownContext$1);
|
|
59771
|
-
align = align || contextAlign;
|
|
59772
|
-
const isInputGroup = React.useContext(context$1);
|
|
59773
|
-
const alignClasses = [];
|
|
59774
|
-
if (align) {
|
|
59775
|
-
if (typeof align === 'object') {
|
|
59776
|
-
const keys = Object.keys(align);
|
|
59777
|
-
process.env.NODE_ENV !== "production" ? warning_1(keys.length === 1, 'There should only be 1 breakpoint when passing an object to `align`') : void 0;
|
|
59778
|
-
if (keys.length) {
|
|
59779
|
-
const brkPoint = keys[0];
|
|
59780
|
-
const direction = align[brkPoint];
|
|
59781
|
-
|
|
59782
|
-
// .dropdown-menu-end is required for responsively aligning
|
|
59783
|
-
// left in addition to align left classes.
|
|
59784
|
-
alignEnd = direction === 'start';
|
|
59785
|
-
alignClasses.push(`${prefix}-${brkPoint}-${direction}`);
|
|
59786
|
-
}
|
|
59787
|
-
} else if (align === 'end') {
|
|
59788
|
-
alignEnd = true;
|
|
59789
|
-
}
|
|
59790
|
-
}
|
|
59791
|
-
const placement = getDropdownMenuPlacement(alignEnd, drop, isRTL);
|
|
59792
|
-
const [menuProps, {
|
|
59793
|
-
hasShown,
|
|
59794
|
-
popper,
|
|
59795
|
-
show,
|
|
59796
|
-
toggle
|
|
59797
|
-
}] = useDropdownMenu({
|
|
59798
|
-
flip,
|
|
59799
|
-
rootCloseEvent,
|
|
59800
|
-
show: showProps,
|
|
59801
|
-
usePopper: !isNavbar && alignClasses.length === 0,
|
|
59802
|
-
offset: [0, 2],
|
|
59803
|
-
popperConfig,
|
|
59804
|
-
placement
|
|
59805
|
-
});
|
|
59806
|
-
menuProps.ref = useMergedRefs(useWrappedRefWithWarning(ref, 'DropdownMenu'), menuProps.ref);
|
|
59807
|
-
useIsomorphicEffect(() => {
|
|
59808
|
-
// Popper's initial position for the menu is incorrect when
|
|
59809
|
-
// renderOnMount=true. Need to call update() to correct it.
|
|
59810
|
-
if (show) popper == null ? void 0 : popper.update();
|
|
59811
|
-
}, [show]);
|
|
59812
|
-
if (!hasShown && !renderOnMount && !isInputGroup) return null;
|
|
59813
|
-
|
|
59814
|
-
// For custom components provide additional, non-DOM, props;
|
|
59815
|
-
if (typeof Component !== 'string') {
|
|
59816
|
-
menuProps.show = show;
|
|
59817
|
-
menuProps.close = () => toggle == null ? void 0 : toggle(false);
|
|
59818
|
-
menuProps.align = align;
|
|
59819
|
-
}
|
|
59820
|
-
let style = props.style;
|
|
59821
|
-
if (popper != null && popper.placement) {
|
|
59822
|
-
// we don't need the default popper style,
|
|
59823
|
-
// menus are display: none when not shown.
|
|
59824
|
-
style = {
|
|
59825
|
-
...props.style,
|
|
59826
|
-
...menuProps.style
|
|
59827
|
-
};
|
|
59828
|
-
props['x-placement'] = popper.placement;
|
|
59829
|
-
}
|
|
59830
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
59831
|
-
...props,
|
|
59832
|
-
...menuProps,
|
|
59833
|
-
style: style
|
|
59834
|
-
// Bootstrap css requires this data attrib to style responsive menus.
|
|
59835
|
-
,
|
|
59836
|
-
...((alignClasses.length || isNavbar) && {
|
|
59837
|
-
'data-bs-popper': 'static'
|
|
59838
|
-
}),
|
|
59839
|
-
className: classnames(className, prefix, show && 'show', alignEnd && `${prefix}-end`, variant && `${prefix}-${variant}`, ...alignClasses)
|
|
59840
|
-
});
|
|
59841
|
-
});
|
|
59842
|
-
DropdownMenu$1.displayName = 'DropdownMenu';
|
|
59843
|
-
|
|
59844
|
-
const DropdownToggle$1 = /*#__PURE__*/React.forwardRef(({
|
|
59845
|
-
bsPrefix,
|
|
59846
|
-
split,
|
|
59847
|
-
className,
|
|
59848
|
-
childBsPrefix,
|
|
59849
|
-
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
59850
|
-
as: Component = Button$1,
|
|
59851
|
-
...props
|
|
59852
|
-
}, ref) => {
|
|
59853
|
-
const prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
59854
|
-
const dropdownContext = React.useContext(DropdownContext);
|
|
59855
|
-
if (childBsPrefix !== undefined) {
|
|
59856
|
-
props.bsPrefix = childBsPrefix;
|
|
59857
|
-
}
|
|
59858
|
-
const [toggleProps] = useDropdownToggle();
|
|
59859
|
-
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle'));
|
|
59860
|
-
|
|
59861
|
-
// This intentionally forwards size and variant (if set) to the
|
|
59862
|
-
// underlying component, to allow it to render size and style variants.
|
|
59863
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
59864
|
-
className: classnames(className, prefix, split && `${prefix}-split`, (dropdownContext == null ? void 0 : dropdownContext.show) && 'show'),
|
|
59865
|
-
...toggleProps,
|
|
59866
|
-
...props
|
|
59867
|
-
});
|
|
59868
|
-
});
|
|
59869
|
-
DropdownToggle$1.displayName = 'DropdownToggle';
|
|
59870
|
-
|
|
59871
|
-
const Dropdown$1 = /*#__PURE__*/React.forwardRef((pProps, ref) => {
|
|
59872
|
-
const {
|
|
59873
|
-
bsPrefix,
|
|
59874
|
-
drop = 'down',
|
|
59875
|
-
show,
|
|
59876
|
-
className,
|
|
59877
|
-
align = 'start',
|
|
59878
|
-
onSelect,
|
|
59879
|
-
onToggle,
|
|
59880
|
-
focusFirstItemOnShow,
|
|
59881
|
-
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
59882
|
-
as: Component = 'div',
|
|
59883
|
-
navbar: _4,
|
|
59884
|
-
autoClose = true,
|
|
59885
|
-
...props
|
|
59886
|
-
} = useUncontrolled(pProps, {
|
|
59887
|
-
show: 'onToggle'
|
|
59888
|
-
});
|
|
59889
|
-
const isInputGroup = React.useContext(context$1);
|
|
59890
|
-
const prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
59891
|
-
const isRTL = useIsRTL();
|
|
59892
|
-
const isClosingPermitted = source => {
|
|
59893
|
-
// autoClose=false only permits close on button click
|
|
59894
|
-
if (autoClose === false) return source === 'click';
|
|
59895
|
-
|
|
59896
|
-
// autoClose=inside doesn't permit close on rootClose
|
|
59897
|
-
if (autoClose === 'inside') return source !== 'rootClose';
|
|
59898
|
-
|
|
59899
|
-
// autoClose=outside doesn't permit close on select
|
|
59900
|
-
if (autoClose === 'outside') return source !== 'select';
|
|
59901
|
-
return true;
|
|
59902
|
-
};
|
|
59903
|
-
const handleToggle = useEventCallback((nextShow, meta) => {
|
|
59904
|
-
if (meta.originalEvent.currentTarget === document && (meta.source !== 'keydown' || meta.originalEvent.key === 'Escape')) meta.source = 'rootClose';
|
|
59905
|
-
if (isClosingPermitted(meta.source)) onToggle == null ? void 0 : onToggle(nextShow, meta);
|
|
59906
|
-
});
|
|
59907
|
-
const alignEnd = align === 'end';
|
|
59908
|
-
const placement = getDropdownMenuPlacement(alignEnd, drop, isRTL);
|
|
59909
|
-
const contextValue = React.useMemo(() => ({
|
|
59910
|
-
align,
|
|
59911
|
-
drop,
|
|
59912
|
-
isRTL
|
|
59913
|
-
}), [align, drop, isRTL]);
|
|
59914
|
-
const directionClasses = {
|
|
59915
|
-
down: prefix,
|
|
59916
|
-
'down-centered': `${prefix}-center`,
|
|
59917
|
-
up: 'dropup',
|
|
59918
|
-
'up-centered': 'dropup-center dropup',
|
|
59919
|
-
end: 'dropend',
|
|
59920
|
-
start: 'dropstart'
|
|
59921
|
-
};
|
|
59922
|
-
return /*#__PURE__*/jsxRuntime.jsx(DropdownContext$1.Provider, {
|
|
59923
|
-
value: contextValue,
|
|
59924
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Dropdown, {
|
|
59925
|
-
placement: placement,
|
|
59926
|
-
show: show,
|
|
59927
|
-
onSelect: onSelect,
|
|
59928
|
-
onToggle: handleToggle,
|
|
59929
|
-
focusFirstItemOnShow: focusFirstItemOnShow,
|
|
59930
|
-
itemSelector: `.${prefix}-item:not(.disabled):not(:disabled)`,
|
|
59931
|
-
children: isInputGroup ? props.children : /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
59932
|
-
...props,
|
|
59933
|
-
ref: ref,
|
|
59934
|
-
className: classnames(className, show && 'show', directionClasses[drop])
|
|
59935
|
-
})
|
|
59936
|
-
})
|
|
59937
|
-
});
|
|
59938
|
-
});
|
|
59939
|
-
Dropdown$1.displayName = 'Dropdown';
|
|
59940
|
-
var BootstrapDropdown = Object.assign(Dropdown$1, {
|
|
59941
|
-
Toggle: DropdownToggle$1,
|
|
59942
|
-
Menu: DropdownMenu$1,
|
|
59943
|
-
Item: DropdownItem$1,
|
|
59944
|
-
ItemText: DropdownItemText,
|
|
59945
|
-
Divider: DropdownDivider,
|
|
59946
|
-
Header: DropdownHeader
|
|
59947
|
-
});
|
|
59029
|
+
const context$1 = /*#__PURE__*/React.createContext(null);
|
|
59030
|
+
context$1.displayName = 'NavbarContext';
|
|
59948
59031
|
|
|
59949
59032
|
const TabContext = /*#__PURE__*/React.createContext(null);
|
|
59950
59033
|
|
|
59951
|
-
const _excluded$
|
|
59952
|
-
function _objectWithoutPropertiesLoose$
|
|
59034
|
+
const _excluded$3 = ["as", "active", "eventKey"];
|
|
59035
|
+
function _objectWithoutPropertiesLoose$4(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
59953
59036
|
function useNavItem({
|
|
59954
59037
|
key,
|
|
59955
59038
|
onClick,
|
|
@@ -60016,7 +59099,7 @@ const NavItem = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
60016
59099
|
active,
|
|
60017
59100
|
eventKey
|
|
60018
59101
|
} = _ref,
|
|
60019
|
-
options = _objectWithoutPropertiesLoose$
|
|
59102
|
+
options = _objectWithoutPropertiesLoose$4(_ref, _excluded$3);
|
|
60020
59103
|
const [props, meta] = useNavItem(Object.assign({
|
|
60021
59104
|
key: makeEventKey(eventKey, options.href),
|
|
60022
59105
|
active
|
|
@@ -60030,10 +59113,10 @@ const NavItem = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
60030
59113
|
});
|
|
60031
59114
|
NavItem.displayName = 'NavItem';
|
|
60032
59115
|
|
|
60033
|
-
const _excluded$
|
|
60034
|
-
function _objectWithoutPropertiesLoose$
|
|
59116
|
+
const _excluded$4 = ["as", "onSelect", "activeKey", "role", "onKeyDown"];
|
|
59117
|
+
function _objectWithoutPropertiesLoose$5(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
60035
59118
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
60036
|
-
const noop$
|
|
59119
|
+
const noop$2 = () => {};
|
|
60037
59120
|
const EVENT_KEY_ATTR = dataAttr('event-key');
|
|
60038
59121
|
const Nav = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
60039
59122
|
let {
|
|
@@ -60044,7 +59127,7 @@ const Nav = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
60044
59127
|
role,
|
|
60045
59128
|
onKeyDown
|
|
60046
59129
|
} = _ref,
|
|
60047
|
-
props = _objectWithoutPropertiesLoose$
|
|
59130
|
+
props = _objectWithoutPropertiesLoose$5(_ref, _excluded$4);
|
|
60048
59131
|
// A ref and forceUpdate for refocus, b/c we only want to trigger when needed
|
|
60049
59132
|
// and don't want to reset the set in the effect
|
|
60050
59133
|
const forceUpdate = useForceUpdate();
|
|
@@ -60117,8 +59200,8 @@ const Nav = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
60117
59200
|
role,
|
|
60118
59201
|
// used by NavLink to determine it's role
|
|
60119
59202
|
activeKey: makeEventKey(activeKey),
|
|
60120
|
-
getControlledId: getControlledId || noop$
|
|
60121
|
-
getControllerId: getControllerId || noop$
|
|
59203
|
+
getControlledId: getControlledId || noop$2,
|
|
59204
|
+
getControllerId: getControllerId || noop$2
|
|
60122
59205
|
},
|
|
60123
59206
|
children: /*#__PURE__*/jsxRuntime.jsx(Component, Object.assign({}, props, {
|
|
60124
59207
|
onKeyDown: handleKeyDown,
|
|
@@ -60445,7 +59528,7 @@ const Nav$1 = /*#__PURE__*/React.forwardRef((uncontrolledProps, ref) => {
|
|
|
60445
59528
|
let navbarBsPrefix;
|
|
60446
59529
|
let cardHeaderBsPrefix;
|
|
60447
59530
|
let isNavbar = false;
|
|
60448
|
-
const navbarContext = React.useContext(context$
|
|
59531
|
+
const navbarContext = React.useContext(context$1);
|
|
60449
59532
|
const cardHeaderContext = React.useContext(context);
|
|
60450
59533
|
if (navbarContext) {
|
|
60451
59534
|
navbarBsPrefix = navbarContext.bsPrefix;
|
|
@@ -60477,7 +59560,7 @@ var Nav$2 = Object.assign(Nav$1, {
|
|
|
60477
59560
|
Link: NavLink
|
|
60478
59561
|
});
|
|
60479
59562
|
|
|
60480
|
-
const noop$
|
|
59563
|
+
const noop$3 = () => {};
|
|
60481
59564
|
/**
|
|
60482
59565
|
* The `useRootClose` hook registers your callback on the document
|
|
60483
59566
|
* when rendered. Powers the `<Overlay/>` component. This is used achieve modal
|
|
@@ -60494,7 +59577,7 @@ function useRootClose(ref, onRootClose, {
|
|
|
60494
59577
|
disabled,
|
|
60495
59578
|
clickTrigger
|
|
60496
59579
|
} = {}) {
|
|
60497
|
-
const onClose = onRootClose || noop$
|
|
59580
|
+
const onClose = onRootClose || noop$3;
|
|
60498
59581
|
useClickOutside(ref, onClose, {
|
|
60499
59582
|
disabled,
|
|
60500
59583
|
clickTrigger
|
|
@@ -61284,7 +60367,7 @@ var ExpandCollapseButton = function ExpandCollapseButton(props) {
|
|
|
61284
60367
|
className: styles$j['vitro-expand-collapse-button'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
61285
60368
|
}, props.expandImage && props.collapseImage ? React__default.createElement(React__default.Fragment, null, isExpanded ? props.collapseImage : props.expandImage) : React__default.createElement("div", {
|
|
61286
60369
|
className: isExpanded ? styles$j['vitro-expanded'] : styles$j['vitro-collapsed']
|
|
61287
|
-
}), isExpanded ? props.collapseText : props.expandText);
|
|
60370
|
+
}), props.collapseText || props.expandText ? React__default.createElement("span", null, isExpanded ? props.collapseText : props.expandText) : null, props.children);
|
|
61288
60371
|
};
|
|
61289
60372
|
|
|
61290
60373
|
var LOCALE$1;
|
|
@@ -62043,124 +61126,234 @@ var ActionHandler = function ActionHandler(props) {
|
|
|
62043
61126
|
}));
|
|
62044
61127
|
};
|
|
62045
61128
|
|
|
62046
|
-
var styles$q = {"vitro-dropdown-button":"_dropdown-button_vitro-dropdown-
|
|
61129
|
+
var styles$q = {"vitro-dropdown-button-container":"_dropdown-button_vitro-dropdown-button-container_zx8iZtY","vitro-dropdown-toggle":"_dropdown-button_vitro-dropdown-toggle_-Nj8qLe","vitro-dropdown-menu":"_dropdown-button_vitro-dropdown-menu_2B1Wr1Y","vitro-right":"_dropdown-button_vitro-right_gHoXO9n","vitro-dropdown-button-item":"_dropdown-button_vitro-dropdown-button-item_2XZNxoG","vitro-dropdown-button-dropdown-item":"_dropdown-button_vitro-dropdown-button-dropdown-item_3Nwnp_-","vitro-image-container":"_dropdown-button_vitro-image-container_3Kf-a2A","vitro-button-collapse-bottom":"_dropdown-button_vitro-button-collapse-bottom_Ivm3AkU","vitro-image":"_dropdown-button_vitro-image_3bX1quk","vitro-scrollbar":"_dropdown-button_vitro-scrollbar_2DCwQvu","vitro-dropdown-button-dropdown-item-menu":"_dropdown-button_vitro-dropdown-button-dropdown-item-menu_39eSYtN"};
|
|
62047
61130
|
|
|
62048
|
-
var
|
|
62049
|
-
var
|
|
62050
|
-
|
|
62051
|
-
|
|
62052
|
-
|
|
62053
|
-
|
|
62054
|
-
|
|
62055
|
-
|
|
62056
|
-
|
|
62057
|
-
|
|
62058
|
-
|
|
62059
|
-
|
|
62060
|
-
|
|
62061
|
-
|
|
62062
|
-
|
|
62063
|
-
|
|
62064
|
-
|
|
62065
|
-
|
|
62066
|
-
},
|
|
62067
|
-
|
|
62068
|
-
|
|
62069
|
-
|
|
62070
|
-
|
|
62071
|
-
|
|
62072
|
-
|
|
62073
|
-
|
|
62074
|
-
|
|
62075
|
-
|
|
62076
|
-
|
|
62077
|
-
|
|
62078
|
-
|
|
62079
|
-
|
|
62080
|
-
|
|
62081
|
-
|
|
62082
|
-
|
|
62083
|
-
|
|
62084
|
-
|
|
62085
|
-
|
|
62086
|
-
|
|
62087
|
-
w$4.$('body').append(menu.css({
|
|
62088
|
-
position: POSITION_ABSOLUTE,
|
|
62089
|
-
left: menu.offset().left,
|
|
62090
|
-
top: menu.offset().top
|
|
62091
|
-
}).detach());
|
|
61131
|
+
var DropdownButtonItem = function DropdownButtonItem(props) {
|
|
61132
|
+
var onClick = function onClick(e) {
|
|
61133
|
+
if (props.onClick) {
|
|
61134
|
+
props.onClick(e);
|
|
61135
|
+
} else if (props.href) {
|
|
61136
|
+
var event = new CustomEvent(exports.EVENT.HISTORY_UPDATE, {
|
|
61137
|
+
detail: {
|
|
61138
|
+
pathname: props.href
|
|
61139
|
+
}
|
|
61140
|
+
});
|
|
61141
|
+
window.dispatchEvent(event);
|
|
61142
|
+
}
|
|
61143
|
+
};
|
|
61144
|
+
return React__default.createElement(reactstrap.DropdownItem, {
|
|
61145
|
+
onClick: onClick,
|
|
61146
|
+
toggle: props.isToggle === false ? false : true,
|
|
61147
|
+
divider: props.isShowSeparator,
|
|
61148
|
+
className: styles$q['vitro-dropdown-button-item']
|
|
61149
|
+
}, (props.isShowImage || props.imageUrl) && React__default.createElement("div", {
|
|
61150
|
+
className: styles$q['vitro-image-container']
|
|
61151
|
+
}, props.imageUrl && React__default.createElement(Image, {
|
|
61152
|
+
defaultUrl: props.imageUrl,
|
|
61153
|
+
hoverUrl: props.imageHoverUrl
|
|
61154
|
+
})), React__default.createElement("span", null, props.text));
|
|
61155
|
+
};
|
|
61156
|
+
|
|
61157
|
+
var Dropdown = React.forwardRef(function (props, ref) {
|
|
61158
|
+
var toggleRef = React.useRef();
|
|
61159
|
+
var dropdownRef = React.useRef();
|
|
61160
|
+
React.useImperativeHandle(ref, function () {
|
|
61161
|
+
return {
|
|
61162
|
+
click: function click() {
|
|
61163
|
+
if (toggleRef.current) {
|
|
61164
|
+
toggleRef.current.click();
|
|
61165
|
+
}
|
|
61166
|
+
},
|
|
61167
|
+
toggle: function toggle() {
|
|
61168
|
+
if (dropdownRef.current) {
|
|
61169
|
+
dropdownRef.current.toggle();
|
|
62092
61170
|
}
|
|
62093
|
-
target.addClass('vitro-dropdown-button-active');
|
|
62094
61171
|
}
|
|
61172
|
+
};
|
|
61173
|
+
});
|
|
61174
|
+
var toggle = function toggle() {
|
|
61175
|
+
if (props.isExpandOnHover) {
|
|
61176
|
+
var _dropdownRef$current;
|
|
61177
|
+
(_dropdownRef$current = dropdownRef.current) === null || _dropdownRef$current === void 0 ? void 0 : _dropdownRef$current.toggle();
|
|
62095
61178
|
}
|
|
62096
|
-
|
|
62097
|
-
|
|
61179
|
+
};
|
|
61180
|
+
var onClick = function onClick(e) {
|
|
61181
|
+
if (props.isExpandOnHover) {
|
|
61182
|
+
var _dropdownRef$current2;
|
|
61183
|
+
(_dropdownRef$current2 = dropdownRef.current) === null || _dropdownRef$current2 === void 0 ? void 0 : _dropdownRef$current2.toggle();
|
|
62098
61184
|
}
|
|
62099
|
-
if (
|
|
62100
|
-
|
|
61185
|
+
if (props.onClick) {
|
|
61186
|
+
props.onClick(e);
|
|
62101
61187
|
}
|
|
62102
61188
|
};
|
|
62103
|
-
var
|
|
62104
|
-
|
|
62105
|
-
|
|
62106
|
-
|
|
62107
|
-
|
|
62108
|
-
|
|
62109
|
-
|
|
62110
|
-
|
|
62111
|
-
|
|
62112
|
-
|
|
62113
|
-
|
|
62114
|
-
|
|
62115
|
-
|
|
62116
|
-
|
|
62117
|
-
|
|
62118
|
-
},
|
|
62119
|
-
|
|
62120
|
-
|
|
62121
|
-
|
|
62122
|
-
|
|
62123
|
-
|
|
62124
|
-
|
|
62125
|
-
|
|
62126
|
-
|
|
62127
|
-
|
|
62128
|
-
}, React__default.createElement(
|
|
62129
|
-
|
|
62130
|
-
|
|
62131
|
-
className:
|
|
62132
|
-
},
|
|
61189
|
+
var onGetMenuRef = function onGetMenuRef(e) {
|
|
61190
|
+
if (props.onGetMenuRef) {
|
|
61191
|
+
props.onGetMenuRef(e);
|
|
61192
|
+
}
|
|
61193
|
+
};
|
|
61194
|
+
var className = [styles$q['vitro-dropdown'], props.className || CTRL.EMPTY].join(CTRL.SPACE);
|
|
61195
|
+
var menuClassName = [styles$q['vitro-dropdown-menu'], props.menuClassName || CTRL.EMPTY, props.isRight ? styles$q['vitro-right'] : CTRL.EMPTY].join(CTRL.SPACE);
|
|
61196
|
+
return React__default.createElement(reactstrap.UncontrolledDropdown, {
|
|
61197
|
+
ref: dropdownRef,
|
|
61198
|
+
isNav: props.isNav,
|
|
61199
|
+
inNavbar: props.isInNavbar,
|
|
61200
|
+
className: className,
|
|
61201
|
+
direction: props.placement,
|
|
61202
|
+
onMouseEnter: function onMouseEnter() {
|
|
61203
|
+
return toggle();
|
|
61204
|
+
},
|
|
61205
|
+
onMouseLeave: function onMouseLeave() {
|
|
61206
|
+
return toggle();
|
|
61207
|
+
}
|
|
61208
|
+
}, React__default.createElement(reactstrap.DropdownToggle, {
|
|
61209
|
+
nav: false,
|
|
61210
|
+
caret: false,
|
|
61211
|
+
onClick: onClick,
|
|
61212
|
+
innerRef: toggleRef,
|
|
61213
|
+
className: styles$q['vitro-dropdown-toggle'] + (props.toggleClassName ? CTRL.SPACE + props.toggleClassName : CTRL.EMPTY)
|
|
61214
|
+
}, props.button), React__default.createElement(reactstrap.DropdownMenu, {
|
|
61215
|
+
innerRef: onGetMenuRef,
|
|
61216
|
+
container: props.menuContainer ? props.menuContainer : 'body',
|
|
61217
|
+
className: menuClassName
|
|
61218
|
+
}, React__default.createElement(ScrollBar, {
|
|
61219
|
+
className: styles$q['vitro-scrollbar'],
|
|
61220
|
+
isHideScrollX: true
|
|
61221
|
+
}, props.children)));
|
|
61222
|
+
});
|
|
61223
|
+
|
|
61224
|
+
(function (PLACEMENT) {
|
|
61225
|
+
PLACEMENT["TOP"] = "top";
|
|
61226
|
+
PLACEMENT["BOTTOM"] = "bottom";
|
|
61227
|
+
PLACEMENT["LEFT"] = "left";
|
|
61228
|
+
PLACEMENT["RIGHT"] = "right";
|
|
61229
|
+
PLACEMENT["AUTO"] = "auto";
|
|
61230
|
+
PLACEMENT["START"] = "start";
|
|
61231
|
+
PLACEMENT["END"] = "end";
|
|
61232
|
+
})(exports.PLACEMENT || (exports.PLACEMENT = {}));
|
|
61233
|
+
|
|
61234
|
+
var DropdownButtonDropdownItem = function DropdownButtonDropdownItem(props) {
|
|
61235
|
+
return React__default.createElement(Dropdown, {
|
|
61236
|
+
className: styles$q['vitro-dropdown-button-dropdown-item'],
|
|
61237
|
+
isExpandOnHover: true,
|
|
61238
|
+
placement: exports.PLACEMENT.END,
|
|
61239
|
+
menuClassName: styles$q['vitro-dropdown-button-dropdown-item-menu'],
|
|
61240
|
+
button: React__default.createElement(DropdownButtonItem, Object.assign({}, props, {
|
|
61241
|
+
isToggle: false
|
|
61242
|
+
}))
|
|
61243
|
+
}, props.itemList && props.itemList.length !== 0 && props.itemList.map(function (item) {
|
|
61244
|
+
if (item.itemList) {
|
|
61245
|
+
return React__default.createElement(DropdownButtonDropdownItem, Object.assign({}, item));
|
|
61246
|
+
}
|
|
61247
|
+
return React__default.createElement(DropdownButtonItem, Object.assign({
|
|
61248
|
+
isToggle: props.isToggle
|
|
61249
|
+
}, item));
|
|
61250
|
+
}), props.children);
|
|
61251
|
+
};
|
|
61252
|
+
|
|
61253
|
+
var DropdownToggleContent = function DropdownToggleContent(props) {
|
|
61254
|
+
var _useState = React.useState(false),
|
|
61255
|
+
isHover = _useState[0],
|
|
61256
|
+
setIsHover = _useState[1];
|
|
61257
|
+
var ref = React.useRef(null);
|
|
61258
|
+
React.useEffect(function () {
|
|
61259
|
+
updateIsRight();
|
|
61260
|
+
}, [ref.current]);
|
|
61261
|
+
var updateIsRight = function updateIsRight() {
|
|
61262
|
+
var isRight = false;
|
|
61263
|
+
if (ref.current) {
|
|
61264
|
+
var windowWidth = window.innerWidth;
|
|
61265
|
+
var left = ref.current.getBoundingClientRect().left;
|
|
61266
|
+
if (left + 241 > windowWidth) {
|
|
61267
|
+
isRight = true;
|
|
61268
|
+
}
|
|
61269
|
+
}
|
|
61270
|
+
props.setIsRight(isRight);
|
|
61271
|
+
};
|
|
61272
|
+
return React__default.createElement(FlexBox, {
|
|
61273
|
+
ref: ref,
|
|
61274
|
+
onMouseEnter: function onMouseEnter() {
|
|
61275
|
+
return setIsHover(true);
|
|
61276
|
+
},
|
|
61277
|
+
onMouseLeave: function onMouseLeave() {
|
|
61278
|
+
return setIsHover(false);
|
|
61279
|
+
},
|
|
61280
|
+
className: styles$q['vitro-dropdown-button-toggle-content'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY),
|
|
61281
|
+
"data-show": props.isVisibleFunction
|
|
61282
|
+
}, props.imageUrl && React__default.createElement(Image, {
|
|
61283
|
+
isHover: isHover,
|
|
62133
61284
|
defaultUrl: props.imageUrl,
|
|
62134
|
-
hoverUrl: props.imageHoverUrl
|
|
62135
|
-
|
|
62136
|
-
|
|
62137
|
-
})), React__default.createElement(BootstrapDropdown.Menu, {
|
|
62138
|
-
renderOnMount: props.isRenderOnMount,
|
|
62139
|
-
flip: props.isFlip !== false,
|
|
62140
|
-
style: props.menuStyle || {},
|
|
62141
|
-
popperConfig: props.popperConfig || {},
|
|
62142
|
-
ref: props.onGetMenuRef
|
|
62143
|
-
}, React__default.createElement(ScrollBar, null, itemList.length > 0 && itemList.map(function (x) {
|
|
62144
|
-
return React__default.createElement(BootstrapDropdown.Item, {
|
|
62145
|
-
key: x.key,
|
|
62146
|
-
onClick: function onClick(e) {
|
|
62147
|
-
return x.onClick(x.value, e);
|
|
62148
|
-
}
|
|
62149
|
-
}, isShowImage && React__default.createElement("div", {
|
|
62150
|
-
className: styles$q['vitro-image']
|
|
62151
|
-
}, x.imageUrl && React__default.createElement(Image, {
|
|
62152
|
-
defaultUrl: x.imageUrl,
|
|
62153
|
-
hoverUrl: x.imageHoverUrl
|
|
62154
|
-
})), React__default.createElement("span", null, x.text));
|
|
62155
|
-
})))));
|
|
61285
|
+
hoverUrl: props.imageHoverUrl,
|
|
61286
|
+
className: styles$q['vitro-image']
|
|
61287
|
+
}), props.text && React__default.createElement("span", null, props.text));
|
|
62156
61288
|
};
|
|
62157
61289
|
|
|
62158
|
-
var
|
|
61290
|
+
var DropdownButton = React.forwardRef(function (props, ref) {
|
|
61291
|
+
var _props$itemList;
|
|
61292
|
+
var _useState = React.useState(false),
|
|
61293
|
+
isShow = _useState[0],
|
|
61294
|
+
setIsShow = _useState[1];
|
|
61295
|
+
var _useState2 = React.useState(false),
|
|
61296
|
+
isRight = _useState2[0],
|
|
61297
|
+
setIsRight = _useState2[1];
|
|
61298
|
+
var isShowImage = (_props$itemList = props.itemList) !== null && _props$itemList !== void 0 && _props$itemList.find(function (item) {
|
|
61299
|
+
return item.imageUrl;
|
|
61300
|
+
}) ? true : false;
|
|
61301
|
+
var onClick = function onClick(e) {
|
|
61302
|
+
var value = !isShow;
|
|
61303
|
+
setIsShow(value);
|
|
61304
|
+
if (props.onClick) {
|
|
61305
|
+
props.onClick(e, value);
|
|
61306
|
+
} else {
|
|
61307
|
+
var event = new CustomEvent(exports.EVENT.COMMAND_MENU_TOGGLE, {
|
|
61308
|
+
detail: {
|
|
61309
|
+
isToggle: true
|
|
61310
|
+
}
|
|
61311
|
+
});
|
|
61312
|
+
window.dispatchEvent(event);
|
|
61313
|
+
}
|
|
61314
|
+
};
|
|
61315
|
+
return React__default.createElement(Dropdown, {
|
|
61316
|
+
ref: ref,
|
|
61317
|
+
onClick: onClick,
|
|
61318
|
+
isRight: isRight,
|
|
61319
|
+
isInNavbar: props.isInNavbar,
|
|
61320
|
+
className: styles$q['vitro-dropdown-button-container'] + (props.containerClassName ? CTRL.SPACE + props.containerClassName : CTRL.EMPTY),
|
|
61321
|
+
toggleClassName: props.className,
|
|
61322
|
+
menuClassName: props.menuClassName,
|
|
61323
|
+
menuContainer: props.menuContainer,
|
|
61324
|
+
onGetMenuRef: props.onGetMenuRef,
|
|
61325
|
+
placement: props.placement,
|
|
61326
|
+
button: React__default.createElement(DropdownToggleContent, Object.assign({}, props, {
|
|
61327
|
+
className: undefined,
|
|
61328
|
+
setIsRight: setIsRight
|
|
61329
|
+
}))
|
|
61330
|
+
}, props.itemList && props.itemList.length !== 0 && props.itemList.map(function (item) {
|
|
61331
|
+
if (item.itemList) {
|
|
61332
|
+
return React__default.createElement(DropdownButtonDropdownItem, Object.assign({}, item));
|
|
61333
|
+
}
|
|
61334
|
+
return React__default.createElement(DropdownButtonItem, Object.assign({
|
|
61335
|
+
isToggle: props.isToggle
|
|
61336
|
+
}, item, {
|
|
61337
|
+
isShowImage: isShowImage
|
|
61338
|
+
}));
|
|
61339
|
+
}), props.children);
|
|
61340
|
+
});
|
|
61341
|
+
|
|
61342
|
+
var STYLE$1;
|
|
61343
|
+
(function (STYLE) {
|
|
61344
|
+
STYLE["ADDON"] = "vitro-addon-button";
|
|
61345
|
+
STYLE["CONTEXT"] = "vitro-context-button";
|
|
61346
|
+
})(STYLE$1 || (STYLE$1 = {}));
|
|
61347
|
+
|
|
61348
|
+
var DropdownButtonConstants = {
|
|
61349
|
+
__proto__: null,
|
|
61350
|
+
get STYLE () { return STYLE$1; }
|
|
61351
|
+
};
|
|
62159
61352
|
|
|
62160
61353
|
var OverflowButton = function OverflowButton(props) {
|
|
62161
61354
|
if (!props.list || !props.list.length) return null;
|
|
62162
61355
|
return React__default.createElement(DropdownButton, {
|
|
62163
|
-
className:
|
|
61356
|
+
className: STYLE$1.CONTEXT,
|
|
62164
61357
|
itemList: props.list.map(function (x, i) {
|
|
62165
61358
|
return _extends({}, x, {
|
|
62166
61359
|
value: x.index,
|
|
@@ -62169,13 +61362,12 @@ var OverflowButton = function OverflowButton(props) {
|
|
|
62169
61362
|
return props.onSelect(x.index);
|
|
62170
61363
|
}
|
|
62171
61364
|
});
|
|
62172
|
-
})
|
|
62173
|
-
menuStyle: {
|
|
62174
|
-
maxWidth: props.width - 32 + UNIT.PX
|
|
62175
|
-
}
|
|
61365
|
+
})
|
|
62176
61366
|
});
|
|
62177
61367
|
};
|
|
62178
61368
|
|
|
61369
|
+
var styles$r = {"vitro-tab":"_tab-group_vitro-tab_1Qb50HL","vitro-item":"_tab-group_vitro-item_2YnBcmb","active":"_tab-group_active_3M-IIR2"};
|
|
61370
|
+
|
|
62179
61371
|
var Tab = function Tab(props) {
|
|
62180
61372
|
if (!props.icon && !props.title) {
|
|
62181
61373
|
return null;
|
|
@@ -62347,10 +61539,10 @@ var tabScriptList = [{
|
|
|
62347
61539
|
id: 'vitro-script-perfect-scroll'
|
|
62348
61540
|
}];
|
|
62349
61541
|
|
|
62350
|
-
var w$
|
|
61542
|
+
var w$4 = window;
|
|
62351
61543
|
var TabGroup = React.forwardRef(function (props, ref) {
|
|
62352
61544
|
var scriptList = [];
|
|
62353
|
-
if (!w$
|
|
61545
|
+
if (!w$4.addResizeListener) {
|
|
62354
61546
|
scriptList = tabScriptList;
|
|
62355
61547
|
}
|
|
62356
61548
|
return props.wrap ? React__default.createElement(ScriptLoader, {
|
|
@@ -62855,7 +62047,8 @@ var IssueTileHeader = function IssueTileHeader(props) {
|
|
|
62855
62047
|
target: TARGET_BLANK
|
|
62856
62048
|
}, VERSION + CTRL.SQUARE_BRACKET_OPEN + props.fileVersion + CTRL.SQUARE_BRACKET_CLOSE), props.actionList && props.actionList.length ? React__default.createElement(DropdownButton, {
|
|
62857
62049
|
itemList: props.actionList,
|
|
62858
|
-
|
|
62050
|
+
containerClassName: styles$z['vitro-dropdown-button'],
|
|
62051
|
+
className: STYLE$1.CONTEXT
|
|
62859
62052
|
}) : null);
|
|
62860
62053
|
};
|
|
62861
62054
|
|
|
@@ -62872,6 +62065,7 @@ var ExpandControlGroup = function ExpandControlGroup(props) {
|
|
|
62872
62065
|
isExpanded = _useState[0],
|
|
62873
62066
|
setIsExpanded = _useState[1];
|
|
62874
62067
|
var localeService = inversifyReact.useInjection(SERVICE.LOCALE);
|
|
62068
|
+
var contentRef = React.useRef(null);
|
|
62875
62069
|
React.useEffect(function () {
|
|
62876
62070
|
setIsExpanded(props.isExpanded || false);
|
|
62877
62071
|
}, [props.isExpanded]);
|
|
@@ -62887,12 +62081,13 @@ var ExpandControlGroup = function ExpandControlGroup(props) {
|
|
|
62887
62081
|
}, React__default.createElement(ExpandCollapseButton, {
|
|
62888
62082
|
expandImage: props.expandImage,
|
|
62889
62083
|
collapseImage: props.collapseImage,
|
|
62890
|
-
expandText: props.expandText
|
|
62891
|
-
collapseText: props.collapseText
|
|
62084
|
+
expandText: props.expandText !== undefined ? props.expandText : localeService.create(LOCALE$3.EXPAND_TEXT),
|
|
62085
|
+
collapseText: props.collapseText !== undefined ? props.collapseText : localeService.create(LOCALE$3.COLLAPSE_TEXT),
|
|
62892
62086
|
onClick: onClick,
|
|
62893
62087
|
isExpanded: isExpanded,
|
|
62894
62088
|
className: props.buttonClassName
|
|
62895
|
-
}), React__default.createElement("div", {
|
|
62089
|
+
}, props.buttonContent), React__default.createElement("div", {
|
|
62090
|
+
ref: contentRef,
|
|
62896
62091
|
className: 'vitro-content' + (isExpanded ? CTRL.EMPTY : CTRL.SPACE + styles$A['vitro-display-none'])
|
|
62897
62092
|
}, props.children));
|
|
62898
62093
|
};
|
|
@@ -63164,7 +62359,7 @@ var LOCALE$4;
|
|
|
63164
62359
|
var styles$D = {"vitro-search-input":"_search-input_vitro-search-input_3M9i4Gi","vitro-search-value-list":"_search-input_vitro-search-value-list_1Gqj4bm","vitro-button-cancel":"_search-input_vitro-button-cancel_xqdMNLo","vitro-search-value":"_search-input_vitro-search-value_TJm1BCf","vitro-search-input-mobile":"_search-input_vitro-search-input-mobile_1H1USnO"};
|
|
63165
62360
|
|
|
63166
62361
|
var NEW_LINE = '\n';
|
|
63167
|
-
var SearchInput = function
|
|
62362
|
+
var SearchInput = React.forwardRef(function (props, ref) {
|
|
63168
62363
|
var _props$searchCriterio2;
|
|
63169
62364
|
var _useState = React.useState(CTRL.EMPTY),
|
|
63170
62365
|
value = _useState[0],
|
|
@@ -63174,6 +62369,9 @@ var SearchInput = function SearchInput(props) {
|
|
|
63174
62369
|
setState = _useState2[1];
|
|
63175
62370
|
var localeService = inversifyReact.useInjection(SERVICE.LOCALE);
|
|
63176
62371
|
var inputRef = React.useRef(null);
|
|
62372
|
+
React.useImperativeHandle(ref, function () {
|
|
62373
|
+
return inputRef.current;
|
|
62374
|
+
});
|
|
63177
62375
|
React.useEffect(function () {
|
|
63178
62376
|
var _props$searchCriterio;
|
|
63179
62377
|
if (!((_props$searchCriterio = props.searchCriterionList) !== null && _props$searchCriterio !== void 0 && _props$searchCriterio.length)) {
|
|
@@ -63187,6 +62385,7 @@ var SearchInput = function SearchInput(props) {
|
|
|
63187
62385
|
}
|
|
63188
62386
|
};
|
|
63189
62387
|
var onSubmit = function onSubmit() {
|
|
62388
|
+
onBlur();
|
|
63190
62389
|
if (value && props.onSubmit) {
|
|
63191
62390
|
props.onSubmit(value);
|
|
63192
62391
|
resetValue();
|
|
@@ -63306,17 +62505,7 @@ var SearchInput = function SearchInput(props) {
|
|
|
63306
62505
|
onClick: onCancel,
|
|
63307
62506
|
className: styles$D['vitro-button-cancel']
|
|
63308
62507
|
}) : null));
|
|
63309
|
-
};
|
|
63310
|
-
|
|
63311
|
-
(function (PLACEMENT) {
|
|
63312
|
-
PLACEMENT["TOP"] = "top";
|
|
63313
|
-
PLACEMENT["BOTTOM"] = "bottom";
|
|
63314
|
-
PLACEMENT["LEFT"] = "left";
|
|
63315
|
-
PLACEMENT["RIGHT"] = "right";
|
|
63316
|
-
PLACEMENT["AUTO"] = "auto";
|
|
63317
|
-
PLACEMENT["START"] = "start";
|
|
63318
|
-
PLACEMENT["END"] = "end";
|
|
63319
|
-
})(exports.PLACEMENT || (exports.PLACEMENT = {}));
|
|
62508
|
+
});
|
|
63320
62509
|
|
|
63321
62510
|
var MODIFIER;
|
|
63322
62511
|
(function (MODIFIER) {
|
|
@@ -67345,6 +66534,7 @@ var Search = function Search(props) {
|
|
|
67345
66534
|
var _useState6 = React.useState([]),
|
|
67346
66535
|
sendedSearchCriterionList = _useState6[0],
|
|
67347
66536
|
setSendedSearchCriterionList = _useState6[1];
|
|
66537
|
+
var searchInputRef = React.useRef(null);
|
|
67348
66538
|
var searchRef = React.useRef(null);
|
|
67349
66539
|
var eventService = inversifyReact.useInjection(SERVICE.EVENT);
|
|
67350
66540
|
var localeService = inversifyReact.useInjection(SERVICE.LOCALE);
|
|
@@ -67453,10 +66643,19 @@ var Search = function Search(props) {
|
|
|
67453
66643
|
}
|
|
67454
66644
|
};
|
|
67455
66645
|
var onSearch = function onSearch(value, criterionList) {
|
|
67456
|
-
var
|
|
66646
|
+
var _searchInputRef$curre;
|
|
66647
|
+
var inputList;
|
|
66648
|
+
if ((_searchInputRef$curre = searchInputRef.current) !== null && _searchInputRef$curre !== void 0 && _searchInputRef$curre.value) {
|
|
66649
|
+
var _searchInputRef$curre2;
|
|
66650
|
+
inputList = getInputCriterionList((_searchInputRef$curre2 = searchInputRef.current) === null || _searchInputRef$curre2 === void 0 ? void 0 : _searchInputRef$curre2.value);
|
|
66651
|
+
setSearchCriterionList(inputList);
|
|
66652
|
+
}
|
|
66653
|
+
var list = criterionList ? criterionList : inputList ? inputList : searchCriterionList;
|
|
67457
66654
|
doSearch(getSearchCriterionListWithoutKey(list));
|
|
67458
66655
|
setSelectedSearchCriterionList(getSelectedCriterionList(list));
|
|
67459
|
-
|
|
66656
|
+
if (isShowDialog) {
|
|
66657
|
+
closeSettings();
|
|
66658
|
+
}
|
|
67460
66659
|
};
|
|
67461
66660
|
var getSearchCriterionListWithoutKey = function getSearchCriterionListWithoutKey(criterionList) {
|
|
67462
66661
|
var list = [];
|
|
@@ -67494,7 +66693,7 @@ var Search = function Search(props) {
|
|
|
67494
66693
|
destination: props.destination
|
|
67495
66694
|
});
|
|
67496
66695
|
};
|
|
67497
|
-
var
|
|
66696
|
+
var getInputCriterionList = function getInputCriterionList(value) {
|
|
67498
66697
|
var _defaultSearchField$;
|
|
67499
66698
|
var defaultSearchField = visibleFieldList === null || visibleFieldList === void 0 ? void 0 : visibleFieldList.filter(function (field) {
|
|
67500
66699
|
return field.internalName === defaultSearchFieldName;
|
|
@@ -67507,7 +66706,7 @@ var Search = function Search(props) {
|
|
|
67507
66706
|
valueList: [value],
|
|
67508
66707
|
key: key
|
|
67509
66708
|
};
|
|
67510
|
-
|
|
66709
|
+
return [criterion];
|
|
67511
66710
|
};
|
|
67512
66711
|
var onEscClick = function onEscClick(e) {
|
|
67513
66712
|
if (e.keyCode === KEY_CODE.ESC) {
|
|
@@ -67519,6 +66718,9 @@ var Search = function Search(props) {
|
|
|
67519
66718
|
};
|
|
67520
66719
|
var onRemoveValue = function onRemoveValue(valueList) {
|
|
67521
66720
|
setSearchCriterionList(valueList);
|
|
66721
|
+
if (!valueList.length) {
|
|
66722
|
+
setState(CTRL.EMPTY);
|
|
66723
|
+
}
|
|
67522
66724
|
onSearch(CTRL.EMPTY, valueList);
|
|
67523
66725
|
};
|
|
67524
66726
|
var onCancel = function onCancel() {
|
|
@@ -67553,12 +66755,12 @@ var Search = function Search(props) {
|
|
|
67553
66755
|
onSubmit: onSearch,
|
|
67554
66756
|
onSearchClick: props.isMobileView || props.isMinifiedInput ? onSettingsClick : undefined,
|
|
67555
66757
|
onRemoveValue: onRemoveValue,
|
|
67556
|
-
onChange: onInputChange,
|
|
67557
66758
|
placeholder: inputPlaceholder,
|
|
67558
66759
|
onFocus: onFocusInput,
|
|
67559
66760
|
isActive: state || isShowDialog ? true : false,
|
|
67560
66761
|
isMobileView: props.isMobileView ? true : props.isMinifiedInput,
|
|
67561
|
-
className: styles$W['vitro-control']
|
|
66762
|
+
className: styles$W['vitro-control'],
|
|
66763
|
+
ref: searchInputRef
|
|
67562
66764
|
}, (state || isShowDialog) && React__default.createElement(ImageButton, {
|
|
67563
66765
|
onClick: onSettingsClick,
|
|
67564
66766
|
className: styles$W['vitro-button-settings'] + (isShowDialog ? CTRL.SPACE + styles$W[CSS_CLASS_ACTIVE$1] : CTRL.EMPTY)
|
|
@@ -67586,7 +66788,7 @@ var CSS_CLASS_SEARCH = 'vitro-search-wrap';
|
|
|
67586
66788
|
var CSS_CLASS_ISSUE_LIST = 'vitro-issue-list-wrap';
|
|
67587
66789
|
var EVENT_SEARCH_ISSUE_LIST = 'vitro.search.issue.list';
|
|
67588
66790
|
var ISSUE_ID_PREFIX = 'vitro-issue-tile-';
|
|
67589
|
-
var w$
|
|
66791
|
+
var w$5 = window;
|
|
67590
66792
|
var ViewerIssueList = function ViewerIssueList(props) {
|
|
67591
66793
|
var _useState = React.useState([]),
|
|
67592
66794
|
issueList = _useState[0],
|
|
@@ -67602,7 +66804,7 @@ var ViewerIssueList = function ViewerIssueList(props) {
|
|
|
67602
66804
|
window.addEventListener(exports.EVENT.ISSUE_LIST_REFRESH, onRefresh);
|
|
67603
66805
|
window.addEventListener(exports.EVENT.ISSUE_LIST_SELECT_ITEM, onSelectItemMarkup);
|
|
67604
66806
|
var criterionList = props.searchCriterionList ? getPredefinedSearchCriterionList(props.searchCriterionList) : [];
|
|
67605
|
-
w$
|
|
66807
|
+
w$5.searchCriterionList = criterionList;
|
|
67606
66808
|
props.getIssueList(criterionList).then(function (list) {
|
|
67607
66809
|
setIssueList(list);
|
|
67608
66810
|
});
|
|
@@ -67652,7 +66854,7 @@ var ViewerIssueList = function ViewerIssueList(props) {
|
|
|
67652
66854
|
var _e$detail;
|
|
67653
66855
|
var searchCriterionList = e === null || e === void 0 ? void 0 : (_e$detail = e.detail) === null || _e$detail === void 0 ? void 0 : _e$detail.searchCriterionList;
|
|
67654
66856
|
setSearchCriterionList(searchCriterionList);
|
|
67655
|
-
w$
|
|
66857
|
+
w$5.searchCriterionList = searchCriterionList;
|
|
67656
66858
|
props.getIssueList(searchCriterionList).then(function (list) {
|
|
67657
66859
|
setIssueList(list);
|
|
67658
66860
|
var event = new CustomEvent(EVENT_SEARCH_ISSUE_LIST, {
|
|
@@ -67702,7 +66904,7 @@ var ViewerIssueList = function ViewerIssueList(props) {
|
|
|
67702
66904
|
}))));
|
|
67703
66905
|
};
|
|
67704
66906
|
|
|
67705
|
-
var w$
|
|
66907
|
+
var w$6 = window;
|
|
67706
66908
|
var CSS_CLASS_SIDEBAR_CONTENT = 'body__sidebar-content';
|
|
67707
66909
|
var ID_VIEWER_CONTAINER = 'viewerContainer';
|
|
67708
66910
|
var ID_FILE_VERSION_SELECT = 'fileVersionSelect';
|
|
@@ -67715,12 +66917,12 @@ var Viewer = function Viewer(props) {
|
|
|
67715
66917
|
}, [props.context.file]);
|
|
67716
66918
|
var init = function init() {
|
|
67717
66919
|
var initViewer = function initViewer() {
|
|
67718
|
-
if (w$
|
|
66920
|
+
if (w$6.initPdfViewer) {
|
|
67719
66921
|
initSearchCriterionList();
|
|
67720
66922
|
var context = _extends({}, props.context, {
|
|
67721
66923
|
initIssueList: initIssueList
|
|
67722
66924
|
});
|
|
67723
|
-
w$
|
|
66925
|
+
w$6.initPdfViewer(context);
|
|
67724
66926
|
initFileVersionSelect();
|
|
67725
66927
|
} else {
|
|
67726
66928
|
setTimeout(initViewer, 100);
|
|
@@ -67746,7 +66948,7 @@ var Viewer = function Viewer(props) {
|
|
|
67746
66948
|
};
|
|
67747
66949
|
var initSearchCriterionList = function initSearchCriterionList() {
|
|
67748
66950
|
if (props.context.searchCriterionList) {
|
|
67749
|
-
w$
|
|
66951
|
+
w$6.searchCriterionList = getPredefinedSearchCriterionList(props.context.searchCriterionList);
|
|
67750
66952
|
}
|
|
67751
66953
|
};
|
|
67752
66954
|
var getPredefinedSearchCriterionList = function getPredefinedSearchCriterionList(searchCriterionList) {
|
|
@@ -67770,10 +66972,10 @@ var Viewer = function Viewer(props) {
|
|
|
67770
66972
|
var onIssueTileClick = function onIssueTileClick(issue) {
|
|
67771
66973
|
var id = issue.id;
|
|
67772
66974
|
var markup = JSON.parse(issue.markup);
|
|
67773
|
-
var numPages = w$
|
|
66975
|
+
var numPages = w$6.PDFViewerApplication.pagesCount;
|
|
67774
66976
|
if (markup && markup.pageNr <= numPages && markup.pageNr >= 1) {
|
|
67775
|
-
if (markup.pageNr != w$
|
|
67776
|
-
w$
|
|
66977
|
+
if (markup.pageNr != w$6.PDFViewerApplication.pdfViewer.currentPageNumber) {
|
|
66978
|
+
w$6.PDFViewerApplication.page = markup.pageNr;
|
|
67777
66979
|
}
|
|
67778
66980
|
if ($(CTRL.SHARP + id).length) {
|
|
67779
66981
|
scrollToMarkup(id);
|
|
@@ -67812,7 +67014,7 @@ var Viewer = function Viewer(props) {
|
|
|
67812
67014
|
};
|
|
67813
67015
|
|
|
67814
67016
|
var name = "@vitrosoftware/common-ui-ts";
|
|
67815
|
-
var version$1 = "1.1.
|
|
67017
|
+
var version$1 = "1.1.212";
|
|
67816
67018
|
var description = "vitro software common ui ts";
|
|
67817
67019
|
var author = "";
|
|
67818
67020
|
var license = "MIT";
|
|
@@ -68464,13 +67666,14 @@ var LoginKerberosForm = React.forwardRef(function (props, ref) {
|
|
|
68464
67666
|
|
|
68465
67667
|
var styles$18 = {"vitro-command-menu":"_command-menu_vitro-command-menu_l82vtIh"};
|
|
68466
67668
|
|
|
68467
|
-
var CommandMenu = function
|
|
67669
|
+
var CommandMenu = React.forwardRef(function (props, ref) {
|
|
68468
67670
|
return React__default.createElement("nav", {
|
|
67671
|
+
ref: ref,
|
|
68469
67672
|
className: styles$18['vitro-command-menu'] + CTRL.SPACE + 'navbar'
|
|
68470
67673
|
}, React__default.createElement("ul", {
|
|
68471
67674
|
className: 'nav'
|
|
68472
67675
|
}, props.children));
|
|
68473
|
-
};
|
|
67676
|
+
});
|
|
68474
67677
|
|
|
68475
67678
|
var styles$19 = {"vitro-command-menu-button":"_command-menu-button_vitro-command-menu-button_2IiXVbP","vitro-image":"_command-menu-button_vitro-image_27yILgG"};
|
|
68476
67679
|
|
|
@@ -68492,135 +67695,14 @@ var CommandMenuLookupPicker = function CommandMenuLookupPicker(props) {
|
|
|
68492
67695
|
})));
|
|
68493
67696
|
};
|
|
68494
67697
|
|
|
68495
|
-
var styles$1b = {"vitro-dropdown-button-container":"_command-menu-dropdown-button_vitro-dropdown-button-container_29qd-_O","vitro-command-menu-dropdown-button":"_command-menu-dropdown-button_vitro-command-menu-dropdown-button_2ImIuc3","vitro-right":"_command-menu-dropdown-button_vitro-right_uTzkzdJ","vitro-image":"_command-menu-dropdown-button_vitro-image_2VNGo-H","vitro-button-collapse-bottom":"_command-menu-dropdown-button_vitro-button-collapse-bottom_1OS_X_a","vitro-scrollbar":"_command-menu-dropdown-button_vitro-scrollbar_1J6dT6q"};
|
|
68496
|
-
|
|
68497
|
-
var CommandMenuSubItem = function CommandMenuSubItem(props) {
|
|
68498
|
-
var onClick = function onClick(e) {
|
|
68499
|
-
if (props.onClick) {
|
|
68500
|
-
props.onClick(e);
|
|
68501
|
-
} else if (props.href) {
|
|
68502
|
-
var event = new CustomEvent(exports.EVENT.HISTORY_UPDATE, {
|
|
68503
|
-
detail: {
|
|
68504
|
-
pathname: props.href
|
|
68505
|
-
}
|
|
68506
|
-
});
|
|
68507
|
-
window.dispatchEvent(event);
|
|
68508
|
-
}
|
|
68509
|
-
};
|
|
68510
|
-
return React__default.createElement(reactstrap.DropdownItem, {
|
|
68511
|
-
onClick: onClick,
|
|
68512
|
-
toggle: props.toggle === false ? false : true
|
|
68513
|
-
}, props.isShowImage && React__default.createElement("div", {
|
|
68514
|
-
className: styles$1b['vitro-image']
|
|
68515
|
-
}, props.imageUrl && React__default.createElement(Image, {
|
|
68516
|
-
defaultUrl: props.imageUrl,
|
|
68517
|
-
hoverUrl: props.imageHoverUrl
|
|
68518
|
-
})), React__default.createElement("span", null, props.text));
|
|
68519
|
-
};
|
|
68520
|
-
|
|
68521
|
-
var CommandMenuItemHeader = function CommandMenuItemHeader(props) {
|
|
68522
|
-
var _useState = React.useState(false),
|
|
68523
|
-
isHover = _useState[0],
|
|
68524
|
-
setIsHover = _useState[1];
|
|
68525
|
-
var ref = React.useRef(null);
|
|
68526
|
-
React.useEffect(function () {
|
|
68527
|
-
updateIsRight();
|
|
68528
|
-
}, [ref.current]);
|
|
68529
|
-
var updateIsRight = function updateIsRight() {
|
|
68530
|
-
var isRight = false;
|
|
68531
|
-
if (ref.current) {
|
|
68532
|
-
var windowWidth = window.innerWidth;
|
|
68533
|
-
var left = ref.current.getBoundingClientRect().left;
|
|
68534
|
-
if (left + 241 > windowWidth) {
|
|
68535
|
-
isRight = true;
|
|
68536
|
-
}
|
|
68537
|
-
}
|
|
68538
|
-
props.setIsRight(isRight);
|
|
68539
|
-
};
|
|
68540
|
-
return React__default.createElement("div", {
|
|
68541
|
-
ref: ref,
|
|
68542
|
-
onMouseEnter: function onMouseEnter() {
|
|
68543
|
-
return setIsHover(true);
|
|
68544
|
-
},
|
|
68545
|
-
onMouseLeave: function onMouseLeave() {
|
|
68546
|
-
return setIsHover(false);
|
|
68547
|
-
},
|
|
68548
|
-
className: itemStyles['vitro-item'] + CTRL.SPACE + styles$1b['vitro-command-menu-dropdown-button'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY),
|
|
68549
|
-
"data-show": props.isVisibleFunction
|
|
68550
|
-
}, props.imageUrl && React__default.createElement(Image, {
|
|
68551
|
-
isHover: isHover,
|
|
68552
|
-
defaultUrl: props.imageUrl,
|
|
68553
|
-
hoverUrl: props.imageHoverUrl,
|
|
68554
|
-
className: styles$1b['vitro-image']
|
|
68555
|
-
}), React__default.createElement("span", null, props.text), !props.isHideChevronDown && React__default.createElement("div", {
|
|
68556
|
-
className: styles$1b['vitro-button-collapse-bottom']
|
|
68557
|
-
}));
|
|
68558
|
-
};
|
|
68559
|
-
|
|
68560
67698
|
var CommandMenuDropdownButton = function CommandMenuDropdownButton(props) {
|
|
68561
|
-
|
|
68562
|
-
|
|
68563
|
-
|
|
68564
|
-
|
|
68565
|
-
var isShowImage = (_props$itemList = props.itemList) !== null && _props$itemList !== void 0 && _props$itemList.find(function (item) {
|
|
68566
|
-
return item.imageUrl;
|
|
68567
|
-
}) ? true : false;
|
|
68568
|
-
var contentRef = React.useRef(null);
|
|
68569
|
-
React.useEffect(function () {
|
|
68570
|
-
var observer = new IntersectionObserver(function (_ref) {
|
|
68571
|
-
var entry = _ref[0];
|
|
68572
|
-
if (contentRef.current && contentRef.current.parentElement && entry.isIntersecting) {
|
|
68573
|
-
contentRef.current.parentElement.scrollTop = 1;
|
|
68574
|
-
contentRef.current.parentElement.scrollTop = 0;
|
|
68575
|
-
}
|
|
68576
|
-
});
|
|
68577
|
-
if (contentRef.current) {
|
|
68578
|
-
observer.observe(contentRef.current);
|
|
68579
|
-
}
|
|
68580
|
-
return function () {
|
|
68581
|
-
observer.disconnect();
|
|
68582
|
-
};
|
|
68583
|
-
}, [contentRef]);
|
|
68584
|
-
var onClick = function onClick(e) {
|
|
68585
|
-
if (props.onClick) {
|
|
68586
|
-
props.onClick(e);
|
|
68587
|
-
} else {
|
|
68588
|
-
var event = new CustomEvent(exports.EVENT.COMMAND_MENU_TOGGLE, {
|
|
68589
|
-
detail: {
|
|
68590
|
-
isToggle: true
|
|
68591
|
-
}
|
|
68592
|
-
});
|
|
68593
|
-
window.dispatchEvent(event);
|
|
68594
|
-
}
|
|
68595
|
-
};
|
|
68596
|
-
return React__default.createElement(reactstrap.UncontrolledDropdown, {
|
|
68597
|
-
nav: true,
|
|
68598
|
-
inNavbar: true,
|
|
68599
|
-
className: styles$1b['vitro-dropdown-button-container'] + (isRight ? CTRL.SPACE + styles$1b['vitro-right'] : CTRL.EMPTY)
|
|
68600
|
-
}, React__default.createElement(reactstrap.DropdownToggle, {
|
|
68601
|
-
nav: true,
|
|
68602
|
-
caret: true,
|
|
68603
|
-
onClick: onClick
|
|
68604
|
-
}, React__default.createElement(CommandMenuItemHeader, Object.assign({}, props, {
|
|
68605
|
-
className: props.className,
|
|
68606
|
-
setIsRight: setIsRight
|
|
68607
|
-
}))), React__default.createElement(reactstrap.DropdownMenu, {
|
|
68608
|
-
container: 'body'
|
|
68609
|
-
}, React__default.createElement(ScrollBar, {
|
|
68610
|
-
className: styles$1b['vitro-scrollbar'],
|
|
68611
|
-
isHideScrollX: true,
|
|
68612
|
-
contentRef: contentRef
|
|
68613
|
-
}, props.itemList && props.itemList.map(function (i) {
|
|
68614
|
-
return React__default.createElement(CommandMenuSubItem, Object.assign({
|
|
68615
|
-
toggle: props.toggle,
|
|
68616
|
-
key: i.text
|
|
68617
|
-
}, i, {
|
|
68618
|
-
isShowImage: isShowImage
|
|
68619
|
-
}));
|
|
68620
|
-
}), props.children)));
|
|
67699
|
+
return React__default.createElement("li", null, React__default.createElement(DropdownButton, Object.assign({}, props, {
|
|
67700
|
+
isInNavbar: true,
|
|
67701
|
+
isNav: true
|
|
67702
|
+
}), props.children));
|
|
68621
67703
|
};
|
|
68622
67704
|
|
|
68623
|
-
var styles$
|
|
67705
|
+
var styles$1b = {"vitro-item":"_sidebar-item_vitro-item_1BR_7F0","vitro-image":"_sidebar-item_vitro-image_2A82YI0","vitro-item-text":"_sidebar-item_vitro-item-text_1kK_aIZ","vitro-active":"_sidebar-item_vitro-active_7p5iOhY","vitro-hover":"_sidebar-item_vitro-hover_1mECzme","vitro-group-item":"_sidebar-item_vitro-group-item_ZADCctV","vitro-item-list":"_sidebar-item_vitro-item-list_17dWov1","vitro-arrow":"_sidebar-item_vitro-arrow_NaAiOHu","vitro-expanded":"_sidebar-item_vitro-expanded_3qb1vOx","vitro-collapsed":"_sidebar-item_vitro-collapsed_2EhVmXL","vitro-display-none":"_sidebar-item_vitro-display-none_2WwKi5v","vitro-scrollbar":"_sidebar-item_vitro-scrollbar___xylIx","vitro-button-close":"_sidebar-item_vitro-button-close_2Kdf-ob","vitro-sidebar-group-slideup-panel":"_sidebar-item_vitro-sidebar-group-slideup-panel_15tkxuO"};
|
|
68624
67706
|
|
|
68625
67707
|
var Item$2 = function Item(props) {
|
|
68626
67708
|
var _useState = React.useState(false),
|
|
@@ -68657,10 +67739,10 @@ var Item$2 = function Item(props) {
|
|
|
68657
67739
|
defaultUrl: props.imageUrl,
|
|
68658
67740
|
hoverUrl: props.imageHoverUrl,
|
|
68659
67741
|
isHover: props.isHover,
|
|
68660
|
-
className: styles$
|
|
67742
|
+
className: styles$1b['vitro-image']
|
|
68661
67743
|
})), React__default.createElement("span", {
|
|
68662
67744
|
ref: textRef,
|
|
68663
|
-
className: styles$
|
|
67745
|
+
className: styles$1b['vitro-item-text'] + (!(props.isSidebarExpanded || props.isMobileView) ? CTRL.SPACE + styles$1b['vitro-display-none'] : CTRL.EMPTY)
|
|
68664
67746
|
}, props.text)));
|
|
68665
67747
|
};
|
|
68666
67748
|
|
|
@@ -68688,7 +67770,7 @@ var LinkItem$1 = function LinkItem(props) {
|
|
|
68688
67770
|
isHover = _useState[0],
|
|
68689
67771
|
setIsHover = _useState[1];
|
|
68690
67772
|
var isActive = !!props.link && (props.link === props.currentUrl && (!props.activeItem || props.activeItem === props.id) || props.altUrlList && props.altUrlList.includes(props.currentUrl));
|
|
68691
|
-
var className = isActive ? styles$
|
|
67773
|
+
var className = isActive ? styles$1b['vitro-active'] : isHover ? styles$1b['vitro-hover'] : CTRL.EMPTY;
|
|
68692
67774
|
var onClick = function onClick(e) {
|
|
68693
67775
|
if (!props.isDisabled) {
|
|
68694
67776
|
if (props.onClick) {
|
|
@@ -68713,7 +67795,7 @@ var LinkItem$1 = function LinkItem(props) {
|
|
|
68713
67795
|
style: {
|
|
68714
67796
|
width: props.linkItemWidth ? props.linkItemWidth + UNIT.PX : WIDTH_AUTO
|
|
68715
67797
|
},
|
|
68716
|
-
className: styles$
|
|
67798
|
+
className: styles$1b['vitro-item']
|
|
68717
67799
|
}, (props.link || props.onClick) && React__default.createElement("button", {
|
|
68718
67800
|
onMouseEnter: function onMouseEnter() {
|
|
68719
67801
|
return setIsHover(true);
|
|
@@ -68753,7 +67835,7 @@ var LinkItem$1 = function LinkItem(props) {
|
|
|
68753
67835
|
}))));
|
|
68754
67836
|
};
|
|
68755
67837
|
|
|
68756
|
-
var styles$
|
|
67838
|
+
var styles$1c = {"vitro-slide-up-panel":"_slide-up-panel_vitro-slide-up-panel_2EOSLHK","vitro-content":"_slide-up-panel_vitro-content_1er6bcv","vitro-expanded":"_slide-up-panel_vitro-expanded_2f2dYt6","vitro-button-close":"_slide-up-panel_vitro-button-close_2iM7SFL"};
|
|
68757
67839
|
|
|
68758
67840
|
var SlideUpPanel = function SlideUpPanel(props) {
|
|
68759
67841
|
var _useState = React.useState(props.isShow),
|
|
@@ -68829,13 +67911,13 @@ var SlideUpPanel = function SlideUpPanel(props) {
|
|
|
68829
67911
|
target: props.container,
|
|
68830
67912
|
placement: exports.PLACEMENT.TOP
|
|
68831
67913
|
}, React__default.createElement("div", {
|
|
68832
|
-
className: styles$
|
|
67914
|
+
className: styles$1c['vitro-slide-up-panel'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
68833
67915
|
}, React__default.createElement("div", {
|
|
68834
|
-
className: styles$
|
|
67916
|
+
className: styles$1c['vitro-content'] + (isExpanded ? CTRL.SPACE + styles$1c['vitro-expanded'] : CTRL.EMPTY),
|
|
68835
67917
|
ref: contentRef
|
|
68836
67918
|
}, React__default.createElement("button", {
|
|
68837
67919
|
ref: buttonRef,
|
|
68838
|
-
className: styles$
|
|
67920
|
+
className: styles$1c['vitro-button-close'],
|
|
68839
67921
|
onTouchStart: onTouchStart,
|
|
68840
67922
|
onTouchEnd: onTouchEnd,
|
|
68841
67923
|
onTouchMove: onTouchMove,
|
|
@@ -68925,7 +68007,7 @@ var GroupItem = function GroupItem(props) {
|
|
|
68925
68007
|
setIsHover(focus);
|
|
68926
68008
|
}
|
|
68927
68009
|
};
|
|
68928
|
-
var className = isActive ? styles$
|
|
68010
|
+
var className = isActive ? styles$1b['vitro-active'] : isHover ? styles$1b['vitro-hover'] : CTRL.EMPTY;
|
|
68929
68011
|
var content = React__default.createElement(React__default.Fragment, null, props.itemList && props.itemList.map(function (i) {
|
|
68930
68012
|
return i.link || i.onClick ? React__default.createElement(LinkItem$1, Object.assign({
|
|
68931
68013
|
link: i.link,
|
|
@@ -68960,7 +68042,7 @@ var GroupItem = function GroupItem(props) {
|
|
|
68960
68042
|
style: {
|
|
68961
68043
|
width: props.linkItemWidth ? props.linkItemWidth + UNIT.PX : WIDTH_AUTO$1
|
|
68962
68044
|
},
|
|
68963
|
-
className: styles$
|
|
68045
|
+
className: styles$1b['vitro-item'] + CTRL.SPACE + styles$1b['vitro-group-item']
|
|
68964
68046
|
}, React__default.createElement("button", {
|
|
68965
68047
|
onMouseEnter: function onMouseEnter() {
|
|
68966
68048
|
return _onFocus(true);
|
|
@@ -68979,18 +68061,18 @@ var GroupItem = function GroupItem(props) {
|
|
|
68979
68061
|
}, React__default.createElement(Item$2, Object.assign({}, props, {
|
|
68980
68062
|
isHover: isHover || isActive
|
|
68981
68063
|
})), props.isSidebarExpanded && !props.isMobileView && React__default.createElement("span", {
|
|
68982
|
-
className: isExpanded ? styles$
|
|
68064
|
+
className: isExpanded ? styles$1b['vitro-expanded'] : styles$1b['vitro-collapsed']
|
|
68983
68065
|
})), props.isMobileView ? React__default.createElement(SlideUpPanel, {
|
|
68984
68066
|
isShow: isExpanded,
|
|
68985
68067
|
container: props.container,
|
|
68986
68068
|
onClose: onCloseSlideUpPanel,
|
|
68987
|
-
className: styles$
|
|
68069
|
+
className: styles$1b[CSS_CLASS_SLIDE_UP_PANEL]
|
|
68988
68070
|
}, React__default.createElement(ScrollBar, {
|
|
68989
|
-
className: styles$
|
|
68071
|
+
className: styles$1b['vitro-scrollbar']
|
|
68990
68072
|
}, React__default.createElement("ul", {
|
|
68991
|
-
className: styles$
|
|
68073
|
+
className: styles$1b[CSS_CLASS_ITEM_LIST_MOBILE]
|
|
68992
68074
|
}, content))) : React__default.createElement("ul", {
|
|
68993
|
-
className: styles$
|
|
68075
|
+
className: styles$1b['vitro-item-list'] + CTRL.SPACE + (props.isSidebarExpanded ? !isExpanded ? styles$1b['vitro-display-none'] : CTRL.EMPTY : styles$1b['vitro-display-none'])
|
|
68994
68076
|
}, content)));
|
|
68995
68077
|
};
|
|
68996
68078
|
|
|
@@ -69029,7 +68111,7 @@ var CustomItem = function CustomItem(props) {
|
|
|
69029
68111
|
style: {
|
|
69030
68112
|
width: props.linkItemWidth ? props.linkItemWidth + UNIT.PX : WIDTH_AUTO$2
|
|
69031
68113
|
},
|
|
69032
|
-
className: styles$
|
|
68114
|
+
className: styles$1b['vitro-item']
|
|
69033
68115
|
}, React__default.createElement("button", {
|
|
69034
68116
|
onMouseEnter: function onMouseEnter() {
|
|
69035
68117
|
return setIsHover(true);
|
|
@@ -69045,11 +68127,11 @@ var CustomItem = function CustomItem(props) {
|
|
|
69045
68127
|
},
|
|
69046
68128
|
onClick: onClick,
|
|
69047
68129
|
onMouseDown: onMouseDown,
|
|
69048
|
-
className: isActive ? styles$
|
|
68130
|
+
className: isActive ? styles$1b['vitro-active'] : isHover ? styles$1b['vitro-hover'] : CTRL.EMPTY
|
|
69049
68131
|
}, React__default.createElement(Item$2, Object.assign({}, props, {
|
|
69050
68132
|
isHover: isHover || isActive
|
|
69051
68133
|
})), props.isSidebarExpanded && !props.isMobileView && React__default.createElement("span", {
|
|
69052
|
-
className: styles$
|
|
68134
|
+
className: styles$1b['vitro-arrow']
|
|
69053
68135
|
})));
|
|
69054
68136
|
};
|
|
69055
68137
|
|
|
@@ -69095,7 +68177,7 @@ var Section = function Section(props) {
|
|
|
69095
68177
|
})) : React__default.createElement(React__default.Fragment, null));
|
|
69096
68178
|
};
|
|
69097
68179
|
|
|
69098
|
-
var styles$
|
|
68180
|
+
var styles$1d = {"vitro-sidebar":"_sidebar_vitro-sidebar_1IxGYiU","vitro-scrollbar":"_sidebar_vitro-scrollbar_2PtQGQD","vitro-sidebar-section-list":"_sidebar_vitro-sidebar-section-list_1nGto5m","vitro-scroll-container":"_sidebar_vitro-scroll-container_3K-iJy8","vitro-button-more":"_sidebar_vitro-button-more_3s9oZY9","vitro-logo-container":"_sidebar_vitro-logo-container_31O5Ly-","vitro-logo":"_sidebar_vitro-logo_1qxi8L_","vitro-scroll-content":"_sidebar_vitro-scroll-content_2RUBhZd"};
|
|
69099
68181
|
|
|
69100
68182
|
var SectionList = React.forwardRef(function (props, ref) {
|
|
69101
68183
|
if (!props.itemList || props.itemList.length === 0) {
|
|
@@ -69103,7 +68185,7 @@ var SectionList = React.forwardRef(function (props, ref) {
|
|
|
69103
68185
|
}
|
|
69104
68186
|
return React__default.createElement("ul", {
|
|
69105
68187
|
ref: ref,
|
|
69106
|
-
className: styles$
|
|
68188
|
+
className: styles$1d['vitro-sidebar-section-list']
|
|
69107
68189
|
}, props.itemList.map(function (section) {
|
|
69108
68190
|
return React__default.createElement(Section, Object.assign({
|
|
69109
68191
|
isExpanded: props.isExpanded,
|
|
@@ -69199,12 +68281,12 @@ var Sidebar = function Sidebar(props) {
|
|
|
69199
68281
|
var width = containerWidth / count;
|
|
69200
68282
|
setLinkItemWidth(width);
|
|
69201
68283
|
};
|
|
69202
|
-
var className = styles$
|
|
68284
|
+
var className = styles$1d['vitro-sidebar'] + (props.theme ? CTRL.SPACE + props.theme : CTRL.EMPTY) + CTRL.SPACE + (isMobileView ? 'vitro-bottom-menu' : CTRL.EMPTY);
|
|
69203
68285
|
return React__default.createElement("div", {
|
|
69204
68286
|
className: className,
|
|
69205
68287
|
id: 'vitro-sidebar'
|
|
69206
68288
|
}, !isMobileView ? React__default.createElement(React__default.Fragment, null, React__default.createElement(ScrollBar, {
|
|
69207
|
-
className: styles$
|
|
68289
|
+
className: styles$1d['vitro-scrollbar']
|
|
69208
68290
|
}, React__default.createElement(SectionList, {
|
|
69209
68291
|
itemList: itemList,
|
|
69210
68292
|
currentUrl: currentUrl,
|
|
@@ -69222,18 +68304,18 @@ var Sidebar = function Sidebar(props) {
|
|
|
69222
68304
|
isMobileView: isMobileView,
|
|
69223
68305
|
isDisabled: props.isDisabled
|
|
69224
68306
|
})), React__default.createElement("div", {
|
|
69225
|
-
className: styles$
|
|
68307
|
+
className: styles$1d['vitro-logo-container']
|
|
69226
68308
|
}, React__default.createElement(Item$2, {
|
|
69227
68309
|
text: props.logoText,
|
|
69228
68310
|
imageUrl: props.logo,
|
|
69229
68311
|
isSidebarExpanded: !props.sidebar,
|
|
69230
68312
|
isMobileView: isMobileView,
|
|
69231
|
-
className: styles$
|
|
68313
|
+
className: styles$1d['vitro-logo']
|
|
69232
68314
|
}))) : React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|
|
69233
|
-
className: styles$
|
|
68315
|
+
className: styles$1d['vitro-scroll-container'],
|
|
69234
68316
|
ref: menuRef
|
|
69235
68317
|
}, React__default.createElement("div", {
|
|
69236
|
-
className: styles$
|
|
68318
|
+
className: styles$1d['vitro-scroll-content'],
|
|
69237
68319
|
ref: scrollContentRef
|
|
69238
68320
|
}, React__default.createElement(SectionList, {
|
|
69239
68321
|
container: menuRef.current,
|
|
@@ -69252,36 +68334,35 @@ var Sidebar = function Sidebar(props) {
|
|
|
69252
68334
|
width: linkItemWidth,
|
|
69253
68335
|
isSidebarExpanded: !props.sidebar,
|
|
69254
68336
|
isMobileView: isMobileView,
|
|
69255
|
-
className: styles$
|
|
68337
|
+
className: styles$1d['vitro-logo']
|
|
69256
68338
|
}))), React__default.createElement("button", {
|
|
69257
68339
|
onClick: scroll,
|
|
69258
|
-
className: styles$
|
|
68340
|
+
className: styles$1d['vitro-button-more']
|
|
69259
68341
|
})));
|
|
69260
68342
|
};
|
|
69261
68343
|
|
|
69262
|
-
var styles$
|
|
68344
|
+
var styles$1e = {"vitro-item":"_activity-item_vitro-item_3Tprske","vitro-active":"_activity-item_vitro-active_2kENgvf","vitro-title":"_activity-item_vitro-title__QItISm","vitro-due-date":"_activity-item_vitro-due-date_1mBIraY","vitro-content":"_activity-item_vitro-content_3Lt7XRy","vitro-message":"_activity-item_vitro-message_1ndqhgR","vitro-flex":"_activity-item_vitro-flex_37IxBWe","vitro-dropdown-button":"_activity-item_vitro-dropdown-button_1J50ja7","vitro-avatar":"_activity-item_vitro-avatar_218ZqAk"};
|
|
69263
68345
|
|
|
69264
68346
|
var ActivityItem = function ActivityItem(props) {
|
|
69265
68347
|
return React__default.createElement("div", {
|
|
69266
|
-
className: styles$
|
|
68348
|
+
className: styles$1e['vitro-item'] + (props.isActive ? CTRL.SPACE + styles$1e['vitro-active'] : CTRL.EMPTY)
|
|
69267
68349
|
}, React__default.createElement("div", {
|
|
69268
|
-
className: styles$
|
|
68350
|
+
className: styles$1e['vitro-flex']
|
|
69269
68351
|
}, React__default.createElement(Avatar, {
|
|
69270
68352
|
userName: props.userName,
|
|
69271
68353
|
image: props.userImageUrl,
|
|
69272
|
-
className: styles$
|
|
68354
|
+
className: styles$1e['vitro-avatar']
|
|
69273
68355
|
}), React__default.createElement("div", {
|
|
69274
|
-
className: styles$
|
|
68356
|
+
className: styles$1e['vitro-content']
|
|
69275
68357
|
}, React__default.createElement("div", null, React__default.createElement("div", {
|
|
69276
|
-
className: styles$
|
|
68358
|
+
className: styles$1e['vitro-title']
|
|
69277
68359
|
}, React__default.createElement("span", null, props.title || props.userName), props.isShowDetail && React__default.createElement("span", {
|
|
69278
|
-
className: styles$
|
|
68360
|
+
className: styles$1e['vitro-due-date']
|
|
69279
68361
|
}, props.date), props.isShowDetail && props.dropdownItemList && props.dropdownItemList.length > 0 && React__default.createElement(DropdownButton, {
|
|
69280
68362
|
itemList: props.dropdownItemList,
|
|
69281
|
-
|
|
69282
|
-
className: styles$1f['vitro-dropdown-button']
|
|
68363
|
+
className: styles$1e['vitro-dropdown-button']
|
|
69283
68364
|
})), React__default.createElement("div", {
|
|
69284
|
-
className: styles$
|
|
68365
|
+
className: styles$1e['vitro-message'] + (props.variant ? CTRL.SPACE + props.variant : CTRL.EMPTY)
|
|
69285
68366
|
}, React__default.createElement("p", {
|
|
69286
68367
|
dangerouslySetInnerHTML: {
|
|
69287
68368
|
__html: props.message
|
|
@@ -69289,42 +68370,42 @@ var ActivityItem = function ActivityItem(props) {
|
|
|
69289
68370
|
}), props.children)))));
|
|
69290
68371
|
};
|
|
69291
68372
|
|
|
69292
|
-
var styles$
|
|
68373
|
+
var styles$1f = {"vitro-task-user-list":"_task-user-list_vitro-task-user-list_3GBJVjt"};
|
|
69293
68374
|
|
|
69294
68375
|
var TaskUserList = function TaskUserList(props) {
|
|
69295
68376
|
return React__default.createElement("div", {
|
|
69296
|
-
className: styles$
|
|
68377
|
+
className: styles$1f['vitro-task-user-list']
|
|
69297
68378
|
}, props.itemList && props.itemList.map(function (x) {
|
|
69298
68379
|
return React__default.createElement(ActivityItem, Object.assign({}, x));
|
|
69299
68380
|
}));
|
|
69300
68381
|
};
|
|
69301
68382
|
|
|
69302
|
-
var styles$
|
|
68383
|
+
var styles$1g = {"vitro-task-tile":"_task-tile_vitro-task-tile_35bZu48","vitro-active":"_task-tile_vitro-active_11W9nJz","vitro-content":"_task-tile_vitro-content_rl2ERCQ","vitro-description":"_task-tile_vitro-description_qtyUbLy","vitro-comment":"_task-tile_vitro-comment_2im2AJj","vitro-title":"_task-tile_vitro-title_1pXrIrB","vitro-top-right":"_task-tile_vitro-top-right_19tbPX4","vitro-dropdown-button":"_task-tile_vitro-dropdown-button_2YgEUdg","vitro-bottom-right":"_task-tile_vitro-bottom-right_2E9WAle","vitro-button-cancel":"_task-tile_vitro-button-cancel_1lgja1K"};
|
|
69303
68384
|
|
|
69304
68385
|
var TaskTile = function TaskTile(props) {
|
|
69305
68386
|
return React__default.createElement("div", {
|
|
69306
|
-
className: styles$
|
|
68387
|
+
className: styles$1g['vitro-task-tile'] + (props.isActive ? CTRL.SPACE + styles$1g['vitro-active'] : CTRL.EMPTY),
|
|
69307
68388
|
onClick: props.onClick
|
|
69308
68389
|
}, props.dropdownItemList && React__default.createElement("div", {
|
|
69309
|
-
className: styles$
|
|
68390
|
+
className: styles$1g['vitro-top-right']
|
|
69310
68391
|
}, React__default.createElement(DropdownButton, {
|
|
69311
68392
|
itemList: props.dropdownItemList,
|
|
69312
|
-
className: styles$
|
|
68393
|
+
className: styles$1g['vitro-dropdown-button']
|
|
69313
68394
|
})), props.isShowDeleteButton && React__default.createElement("div", {
|
|
69314
|
-
className: styles$
|
|
68395
|
+
className: styles$1g['vitro-button-cancel'],
|
|
69315
68396
|
onClick: props.onDeleteClick
|
|
69316
68397
|
}), props.description && React__default.createElement("div", {
|
|
69317
|
-
className: styles$
|
|
68398
|
+
className: styles$1g['vitro-description']
|
|
69318
68399
|
}, props.description), React__default.createElement("div", {
|
|
69319
|
-
className: styles$
|
|
68400
|
+
className: styles$1g['vitro-title']
|
|
69320
68401
|
}, props.title), props.comment && React__default.createElement("div", {
|
|
69321
|
-
className: styles$
|
|
68402
|
+
className: styles$1g['vitro-comment']
|
|
69322
68403
|
}, props.comment), React__default.createElement("div", {
|
|
69323
|
-
className: styles$
|
|
68404
|
+
className: styles$1g['vitro-content']
|
|
69324
68405
|
}, props.userList && React__default.createElement(TaskUserList, {
|
|
69325
68406
|
itemList: props.userList
|
|
69326
68407
|
})), React__default.createElement("div", {
|
|
69327
|
-
className: styles$
|
|
68408
|
+
className: styles$1g['vitro-bottom-right']
|
|
69328
68409
|
}, props.dateComment, " \xA0 ", props.date), props.children);
|
|
69329
68410
|
};
|
|
69330
68411
|
|
|
@@ -69340,7 +68421,7 @@ var AlertConstants = {
|
|
|
69340
68421
|
get TYPE () { return TYPE$2; }
|
|
69341
68422
|
};
|
|
69342
68423
|
|
|
69343
|
-
var styles$
|
|
68424
|
+
var styles$1h = {"vitro-alert":"_alert_vitro-alert_3sPAkJb","vitro-position-absolute":"_alert_vitro-position-absolute_2A33Lq4","vitro-alert-content":"_alert_vitro-alert-content_10fW1n4","vitro-button-close":"_alert_vitro-button-close_39K9cqW","vitro-icon":"_alert_vitro-icon_pK385gF","vitro-text":"_alert_vitro-text_37Erxqj","vitro-alert-action-list":"_alert_vitro-alert-action-list_2XzbaCO","vitro-position-center":"_alert_vitro-position-center_1r_lK_e"};
|
|
69344
68425
|
|
|
69345
68426
|
var TYPE_DANGER = 'danger';
|
|
69346
68427
|
var Alert$1 = function Alert(props) {
|
|
@@ -69373,7 +68454,7 @@ var Alert$1 = function Alert(props) {
|
|
|
69373
68454
|
}
|
|
69374
68455
|
};
|
|
69375
68456
|
var actionList = props.actionList && React__default.createElement("div", {
|
|
69376
|
-
className: styles$
|
|
68457
|
+
className: styles$1h['vitro-alert-action-list']
|
|
69377
68458
|
}, props.actionList.map(function (a) {
|
|
69378
68459
|
return React__default.createElement(Button$1, {
|
|
69379
68460
|
key: a.text,
|
|
@@ -69382,7 +68463,7 @@ var Alert$1 = function Alert(props) {
|
|
|
69382
68463
|
}
|
|
69383
68464
|
}, a.text);
|
|
69384
68465
|
}));
|
|
69385
|
-
var className = [styles$
|
|
68466
|
+
var className = [styles$1h['vitro-alert'], props.isPositionCenter ? styles$1h['vitro-position-center'] : CTRL.EMPTY, props.isPositionAbsolute ? styles$1h['vitro-position-absolute'] : CTRL.EMPTY, props.className || CTRL.EMPTY].join(CTRL.SPACE);
|
|
69386
68467
|
return React__default.createElement("div", {
|
|
69387
68468
|
tabIndex: 1,
|
|
69388
68469
|
onBlur: onFocusOut,
|
|
@@ -69392,18 +68473,18 @@ var Alert$1 = function Alert(props) {
|
|
|
69392
68473
|
variant: props.type === TYPE$2.ERROR ? TYPE_DANGER : props.type,
|
|
69393
68474
|
onClose: props.onClose
|
|
69394
68475
|
}, React__default.createElement("div", {
|
|
69395
|
-
className: styles$
|
|
68476
|
+
className: styles$1h['vitro-alert-content']
|
|
69396
68477
|
}, React__default.createElement("div", {
|
|
69397
|
-
className: styles$
|
|
68478
|
+
className: styles$1h['vitro-icon']
|
|
69398
68479
|
}), React__default.createElement("div", {
|
|
69399
|
-
className: styles$
|
|
68480
|
+
className: styles$1h['vitro-text']
|
|
69400
68481
|
}, props.title && React__default.createElement("strong", null, props.title), props.text, !props.text && props.children), !props.isMultiline && actionList, props.isDismissible && React__default.createElement("div", {
|
|
69401
|
-
className: styles$
|
|
68482
|
+
className: styles$1h['vitro-button-close'],
|
|
69402
68483
|
onClick: onClose
|
|
69403
68484
|
})), props.text && props.children, props.isMultiline && actionList));
|
|
69404
68485
|
};
|
|
69405
68486
|
|
|
69406
|
-
var styles$
|
|
68487
|
+
var styles$1i = {"vitro-user-profile":"_user-profile_vitro-user-profile_11XpBoQ","vitro-dropdown-item":"_user-profile_vitro-dropdown-item_dSErsta","vitro-avatar":"_user-profile_vitro-avatar_3SzDPAi"};
|
|
69407
68488
|
|
|
69408
68489
|
var UserProfileMenuItem = function UserProfileMenuItem(props) {
|
|
69409
68490
|
var onClick = function onClick() {
|
|
@@ -69414,7 +68495,7 @@ var UserProfileMenuItem = function UserProfileMenuItem(props) {
|
|
|
69414
68495
|
};
|
|
69415
68496
|
if (props.link) {
|
|
69416
68497
|
return React__default.createElement("div", {
|
|
69417
|
-
className: styles$
|
|
68498
|
+
className: styles$1i['vitro-dropdown-item'],
|
|
69418
68499
|
onClick: onClick
|
|
69419
68500
|
}, React__default.createElement("a", {
|
|
69420
68501
|
href: props.link
|
|
@@ -69425,7 +68506,7 @@ var UserProfileMenuItem = function UserProfileMenuItem(props) {
|
|
|
69425
68506
|
}
|
|
69426
68507
|
if (props.onClick) {
|
|
69427
68508
|
return React__default.createElement("div", {
|
|
69428
|
-
className: styles$
|
|
68509
|
+
className: styles$1i['vitro-dropdown-item'],
|
|
69429
68510
|
key: props.text,
|
|
69430
68511
|
onClick: onClick
|
|
69431
68512
|
}, props.imageUrl && React__default.createElement(Image, {
|
|
@@ -69459,15 +68540,15 @@ var UserProfile = function UserProfile(props) {
|
|
|
69459
68540
|
return React__default.createElement(reactstrap.Dropdown, {
|
|
69460
68541
|
isOpen: dropdownOpen,
|
|
69461
68542
|
toggle: toggle,
|
|
69462
|
-
className: styles$
|
|
68543
|
+
className: styles$1i['vitro-user-profile']
|
|
69463
68544
|
}, React__default.createElement(reactstrap.DropdownToggle, {
|
|
69464
68545
|
caret: true
|
|
69465
68546
|
}, React__default.createElement("div", null, React__default.createElement("span", {
|
|
69466
|
-
className: styles$
|
|
68547
|
+
className: styles$1i['vitro-text-color-white']
|
|
69467
68548
|
}, createSurnameWithInitials(props.userName)), React__default.createElement(Avatar, {
|
|
69468
68549
|
userName: props.userName,
|
|
69469
68550
|
image: props.image,
|
|
69470
|
-
className: styles$
|
|
68551
|
+
className: styles$1i['vitro-avatar']
|
|
69471
68552
|
}))), React__default.createElement(reactstrap.DropdownMenu, {
|
|
69472
68553
|
right: true
|
|
69473
68554
|
}, props.dropdownMenuItemList && props.dropdownMenuItemList.length > 0 && props.dropdownMenuItemList.map(function (item) {
|
|
@@ -69477,7 +68558,7 @@ var UserProfile = function UserProfile(props) {
|
|
|
69477
68558
|
})));
|
|
69478
68559
|
};
|
|
69479
68560
|
|
|
69480
|
-
var styles$
|
|
68561
|
+
var styles$1j = {"vitro-title":"_activity_vitro-title_1rdvvaa","vitro-dropdown-button":"_activity_vitro-dropdown-button_12258nJ","vitro-activity":"_activity_vitro-activity_1u7YeF3"};
|
|
69481
68562
|
|
|
69482
68563
|
var Activity = function Activity(props) {
|
|
69483
68564
|
var onDrop = function onDrop(e) {
|
|
@@ -69490,10 +68571,10 @@ var Activity = function Activity(props) {
|
|
|
69490
68571
|
className: 'vitro-activity',
|
|
69491
68572
|
onDrop: onDrop
|
|
69492
68573
|
}, (props.filterDropdownList || props.title) && React__default.createElement("div", {
|
|
69493
|
-
className: styles$
|
|
68574
|
+
className: styles$1j['vitro-title']
|
|
69494
68575
|
}, props.filterDropdownList && React__default.createElement(DropdownButton, {
|
|
69495
68576
|
itemList: props.filterDropdownList,
|
|
69496
|
-
className: styles$
|
|
68577
|
+
className: styles$1j['vitro-dropdown-button']
|
|
69497
68578
|
}), props.title && React__default.createElement("h3", null, props.title)), React__default.createElement("div", {
|
|
69498
68579
|
className: 'vitro-content'
|
|
69499
68580
|
}, props.children));
|
|
@@ -69510,8 +68591,8 @@ la$1);t$1[b]=new r$1(b,1,!1,a,null,!1,!1);});"xlink:actuate xlink:arcrole xlink:
|
|
|
69510
68591
|
t$1.xlinkHref=new r$1("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(a){t$1[a]=new r$1(a,1,!1,a.toLowerCase(),null,!0,!0);});
|
|
69511
68592
|
var u={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,
|
|
69512
68593
|
fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ma$1=["Webkit","ms","Moz","O"];Object.keys(u).forEach(function(a){ma$1.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);u[b]=u[a];});});var na=/["'&<>]/;
|
|
69513
|
-
function v$2(a){if("boolean"===typeof a||"number"===typeof a)return ""+a;a=""+a;var b=na.exec(a);if(b){var c="",d,f=0;for(d=b.index;d<a.length;d++){switch(a.charCodeAt(d)){case 34:b=""";break;case 38:b="&";break;case 39:b="'";break;case 60:b="<";break;case 62:b=">";break;default:continue}f!==d&&(c+=a.substring(f,d));f=d+1;c+=b;}a=f!==d?c+a.substring(f,d):c;}return a}var oa$1=/([A-Z])/g,pa$1=/^ms-/,qa$1=Array.isArray;function w$
|
|
69514
|
-
function ra$1(a,b,c){switch(b){case "select":return w$
|
|
68594
|
+
function v$2(a){if("boolean"===typeof a||"number"===typeof a)return ""+a;a=""+a;var b=na.exec(a);if(b){var c="",d,f=0;for(d=b.index;d<a.length;d++){switch(a.charCodeAt(d)){case 34:b=""";break;case 38:b="&";break;case 39:b="'";break;case 60:b="<";break;case 62:b=">";break;default:continue}f!==d&&(c+=a.substring(f,d));f=d+1;c+=b;}a=f!==d?c+a.substring(f,d):c;}return a}var oa$1=/([A-Z])/g,pa$1=/^ms-/,qa$1=Array.isArray;function w$7(a,b){return {insertionMode:a,selectedValue:b}}
|
|
68595
|
+
function ra$1(a,b,c){switch(b){case "select":return w$7(1,null!=c.value?c.value:c.defaultValue);case "svg":return w$7(2,null);case "math":return w$7(3,null);case "foreignObject":return w$7(1,null);case "table":return w$7(4,null);case "thead":case "tbody":case "tfoot":return w$7(5,null);case "colgroup":return w$7(7,null);case "tr":return w$7(6,null)}return 4<=a.insertionMode||0===a.insertionMode?w$7(1,null):a}var sa$1=new Map;
|
|
69515
68596
|
function ta$1(a,b,c){if("object"!==typeof c)throw Error(l$1(62));b=!0;for(var d in c)if(p$2.call(c,d)){var f=c[d];if(null!=f&&"boolean"!==typeof f&&""!==f){if(0===d.indexOf("--")){var e=v$2(d);f=v$2((""+f).trim());}else {e=d;var g=sa$1.get(e);void 0!==g?e=g:(g=v$2(e.replace(oa$1,"-$1").toLowerCase().replace(pa$1,"-ms-")),sa$1.set(e,g),e=g);f="number"===typeof f?0===f||p$2.call(u,d)?""+f:f+"px":v$2((""+f).trim());}b?(b=!1,a.push(' style="',e,":",f)):a.push(";",e,":",f);}}b||a.push('"');}
|
|
69516
68597
|
function x$1(a,b,c,d){switch(c){case "style":ta$1(a,b,d);return;case "defaultValue":case "defaultChecked":case "innerHTML":case "suppressContentEditableWarning":case "suppressHydrationWarning":return}if(!(2<c.length)||"o"!==c[0]&&"O"!==c[0]||"n"!==c[1]&&"N"!==c[1])if(b=t$1.hasOwnProperty(c)?t$1[c]:null,null!==b){switch(typeof d){case "function":case "symbol":return;case "boolean":if(!b.acceptsBooleans)return}c=b.attributeName;switch(b.type){case 3:d&&a.push(" ",c,'=""');break;case 4:!0===d?a.push(" ",c,'=""'):
|
|
69517
68598
|
!1!==d&&a.push(" ",c,'="',v$2(d),'"');break;case 5:isNaN(d)||a.push(" ",c,'="',v$2(d),'"');break;case 6:!isNaN(d)&&1<=d&&a.push(" ",c,'="',v$2(d),'"');break;default:b.sanitizeURL&&(d=""+d),a.push(" ",c,'="',v$2(d),'"');}}else if(ja$1(c)){switch(typeof d){case "function":case "symbol":return;case "boolean":if(b=c.toLowerCase().slice(0,5),"data-"!==b&&"aria-"!==b)return}a.push(" ",c,'="',v$2(d),'"');}}
|
|
@@ -69593,7 +68674,7 @@ var reactDomServerLegacy_browser_production_min = {
|
|
|
69593
68674
|
};
|
|
69594
68675
|
|
|
69595
68676
|
function k$1(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return "Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l$2=null,n$1=0;
|
|
69596
|
-
function p$3(a,b){if(0!==b.length)if(512<b.length)0<n$1&&(a.enqueue(new Uint8Array(l$2.buffer,0,n$1)),l$2=new Uint8Array(512),n$1=0),a.enqueue(b);else {var c=l$2.length-n$1;c<b.length&&(0===c?a.enqueue(l$2):(l$2.set(b.subarray(0,c),n$1),a.enqueue(l$2),b=b.subarray(c)),l$2=new Uint8Array(512),n$1=0);l$2.set(b,n$1);n$1+=b.length;}}function t$2(a,b){p$3(a,b);return !0}function ba(a){l$2&&0<n$1&&(a.enqueue(new Uint8Array(l$2.buffer,0,n$1)),l$2=null,n$1=0);}var ca=new TextEncoder;function u$1(a){return ca.encode(a)}function w$
|
|
68677
|
+
function p$3(a,b){if(0!==b.length)if(512<b.length)0<n$1&&(a.enqueue(new Uint8Array(l$2.buffer,0,n$1)),l$2=new Uint8Array(512),n$1=0),a.enqueue(b);else {var c=l$2.length-n$1;c<b.length&&(0===c?a.enqueue(l$2):(l$2.set(b.subarray(0,c),n$1),a.enqueue(l$2),b=b.subarray(c)),l$2=new Uint8Array(512),n$1=0);l$2.set(b,n$1);n$1+=b.length;}}function t$2(a,b){p$3(a,b);return !0}function ba(a){l$2&&0<n$1&&(a.enqueue(new Uint8Array(l$2.buffer,0,n$1)),l$2=null,n$1=0);}var ca=new TextEncoder;function u$1(a){return ca.encode(a)}function w$8(a){return ca.encode(a)}
|
|
69597
68678
|
function da$1(a,b){"function"===typeof a.error?a.error(b):a.close();}var x$2=Object.prototype.hasOwnProperty,ea$1=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,fa$2={},ha$2={};
|
|
69598
68679
|
function ia$2(a){if(x$2.call(ha$2,a))return !0;if(x$2.call(fa$2,a))return !1;if(ea$1.test(a))return ha$2[a]=!0;fa$2[a]=!0;return !1}function y$2(a,b,c,d,f,e,g){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=f;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=e;this.removeEmptyString=g;}var z$2={};
|
|
69599
68680
|
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){z$2[a]=new y$2(a,0,!1,a,null,!1,!1);});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];z$2[b]=new y$2(b,1,!1,a[1],null,!1,!1);});["contentEditable","draggable","spellCheck","value"].forEach(function(a){z$2[a]=new y$2(a,2,!1,a.toLowerCase(),null,!1,!1);});
|
|
@@ -69605,17 +68686,17 @@ z$2.xlinkHref=new y$2("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlin
|
|
|
69605
68686
|
var B$2={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,
|
|
69606
68687
|
fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},la$2=["Webkit","ms","Moz","O"];Object.keys(B$2).forEach(function(a){la$2.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);B$2[b]=B$2[a];});});var oa$2=/["'&<>]/;
|
|
69607
68688
|
function C$1(a){if("boolean"===typeof a||"number"===typeof a)return ""+a;a=""+a;var b=oa$2.exec(a);if(b){var c="",d,f=0;for(d=b.index;d<a.length;d++){switch(a.charCodeAt(d)){case 34:b=""";break;case 38:b="&";break;case 39:b="'";break;case 60:b="<";break;case 62:b=">";break;default:continue}f!==d&&(c+=a.substring(f,d));f=d+1;c+=b;}a=f!==d?c+a.substring(f,d):c;}return a}
|
|
69608
|
-
var pa$2=/([A-Z])/g,qa$2=/^ms-/,ra$2=Array.isArray,sa$2=w$
|
|
69609
|
-
function za$2(a,b,c,d,f){a=void 0===a?"":a;b=void 0===b?sa$2:w$
|
|
68689
|
+
var pa$2=/([A-Z])/g,qa$2=/^ms-/,ra$2=Array.isArray,sa$2=w$8("<script>"),ta$2=w$8("\x3c/script>"),ua$2=w$8('<script src="'),va$2=w$8('<script type="module" src="'),wa$2=w$8('" async="">\x3c/script>'),xa$1=/(<\/|<)(s)(cript)/gi;function ya$2(a,b,c,d){return ""+b+("s"===c?"\\u0073":"\\u0053")+d}
|
|
68690
|
+
function za$2(a,b,c,d,f){a=void 0===a?"":a;b=void 0===b?sa$2:w$8('<script nonce="'+C$1(b)+'">');var e=[];void 0!==c&&e.push(b,u$1((""+c).replace(xa$1,ya$2)),ta$2);if(void 0!==d)for(c=0;c<d.length;c++)e.push(ua$2,u$1(C$1(d[c])),wa$2);if(void 0!==f)for(d=0;d<f.length;d++)e.push(va$2,u$1(C$1(f[d])),wa$2);return {bootstrapChunks:e,startInlineScript:b,placeholderPrefix:w$8(a+"P:"),segmentPrefix:w$8(a+"S:"),boundaryPrefix:a+"B:",idPrefix:a,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}
|
|
69610
68691
|
function D$1(a,b){return {insertionMode:a,selectedValue:b}}function Aa$2(a){return D$1("http://www.w3.org/2000/svg"===a?2:"http://www.w3.org/1998/Math/MathML"===a?3:0,null)}
|
|
69611
|
-
function Ba$2(a,b,c){switch(b){case "select":return D$1(1,null!=c.value?c.value:c.defaultValue);case "svg":return D$1(2,null);case "math":return D$1(3,null);case "foreignObject":return D$1(1,null);case "table":return D$1(4,null);case "thead":case "tbody":case "tfoot":return D$1(5,null);case "colgroup":return D$1(7,null);case "tr":return D$1(6,null)}return 4<=a.insertionMode||0===a.insertionMode?D$1(1,null):a}var Ca$2=w$
|
|
69612
|
-
var Ea$2=new Map,Fa$2=w$
|
|
69613
|
-
function Ia$2(a,b,c){if("object"!==typeof c)throw Error(k$1(62));b=!0;for(var d in c)if(x$2.call(c,d)){var f=c[d];if(null!=f&&"boolean"!==typeof f&&""!==f){if(0===d.indexOf("--")){var e=u$1(C$1(d));f=u$1(C$1((""+f).trim()));}else {e=d;var g=Ea$2.get(e);void 0!==g?e=g:(g=w$
|
|
69614
|
-
var H$2=w$
|
|
68692
|
+
function Ba$2(a,b,c){switch(b){case "select":return D$1(1,null!=c.value?c.value:c.defaultValue);case "svg":return D$1(2,null);case "math":return D$1(3,null);case "foreignObject":return D$1(1,null);case "table":return D$1(4,null);case "thead":case "tbody":case "tfoot":return D$1(5,null);case "colgroup":return D$1(7,null);case "tr":return D$1(6,null)}return 4<=a.insertionMode||0===a.insertionMode?D$1(1,null):a}var Ca$2=w$8("\x3c!-- --\x3e");function Da$2(a,b,c,d){if(""===b)return d;d&&a.push(Ca$2);a.push(u$1(C$1(b)));return !0}
|
|
68693
|
+
var Ea$2=new Map,Fa$2=w$8(' style="'),Ga$2=w$8(":"),Ha$2=w$8(";");
|
|
68694
|
+
function Ia$2(a,b,c){if("object"!==typeof c)throw Error(k$1(62));b=!0;for(var d in c)if(x$2.call(c,d)){var f=c[d];if(null!=f&&"boolean"!==typeof f&&""!==f){if(0===d.indexOf("--")){var e=u$1(C$1(d));f=u$1(C$1((""+f).trim()));}else {e=d;var g=Ea$2.get(e);void 0!==g?e=g:(g=w$8(C$1(e.replace(pa$2,"-$1").toLowerCase().replace(qa$2,"-ms-"))),Ea$2.set(e,g),e=g);f="number"===typeof f?0===f||x$2.call(B$2,d)?u$1(""+f):u$1(f+"px"):u$1(C$1((""+f).trim()));}b?(b=!1,a.push(Fa$2,e,Ga$2,f)):a.push(Ha$2,e,Ga$2,f);}}b||a.push(E$2);}
|
|
68695
|
+
var H$2=w$8(" "),I$2=w$8('="'),E$2=w$8('"'),Ja$2=w$8('=""');
|
|
69615
68696
|
function J$1(a,b,c,d){switch(c){case "style":Ia$2(a,b,d);return;case "defaultValue":case "defaultChecked":case "innerHTML":case "suppressContentEditableWarning":case "suppressHydrationWarning":return}if(!(2<c.length)||"o"!==c[0]&&"O"!==c[0]||"n"!==c[1]&&"N"!==c[1])if(b=z$2.hasOwnProperty(c)?z$2[c]:null,null!==b){switch(typeof d){case "function":case "symbol":return;case "boolean":if(!b.acceptsBooleans)return}c=u$1(b.attributeName);switch(b.type){case 3:d&&a.push(H$2,c,Ja$2);break;case 4:!0===d?a.push(H$2,c,Ja$2):!1!==
|
|
69616
|
-
d&&a.push(H$2,c,I$2,u$1(C$1(d)),E$2);break;case 5:isNaN(d)||a.push(H$2,c,I$2,u$1(C$1(d)),E$2);break;case 6:!isNaN(d)&&1<=d&&a.push(H$2,c,I$2,u$1(C$1(d)),E$2);break;default:b.sanitizeURL&&(d=""+d),a.push(H$2,c,I$2,u$1(C$1(d)),E$2);}}else if(ia$2(c)){switch(typeof d){case "function":case "symbol":return;case "boolean":if(b=c.toLowerCase().slice(0,5),"data-"!==b&&"aria-"!==b)return}a.push(H$2,u$1(c),I$2,u$1(C$1(d)),E$2);}}var K$2=w$
|
|
69617
|
-
function L$2(a,b,c){if(null!=b){if(null!=c)throw Error(k$1(60));if("object"!==typeof b||!("__html"in b))throw Error(k$1(61));b=b.__html;null!==b&&void 0!==b&&a.push(u$1(""+b));}}function La$2(a){var b="";React__default.Children.forEach(a,function(a){null!=a&&(b+=a);});return b}var Ma$2=w$
|
|
69618
|
-
function Na$2(a,b,c,d){a.push(M$2(c));var f=c=null,e;for(e in b)if(x$2.call(b,e)){var g=b[e];if(null!=g)switch(e){case "children":c=g;break;case "dangerouslySetInnerHTML":f=g;break;default:J$1(a,d,e,g);}}a.push(K$2);L$2(a,f,c);return "string"===typeof c?(a.push(u$1(C$1(c))),null):c}var Oa$2=w$
|
|
68697
|
+
d&&a.push(H$2,c,I$2,u$1(C$1(d)),E$2);break;case 5:isNaN(d)||a.push(H$2,c,I$2,u$1(C$1(d)),E$2);break;case 6:!isNaN(d)&&1<=d&&a.push(H$2,c,I$2,u$1(C$1(d)),E$2);break;default:b.sanitizeURL&&(d=""+d),a.push(H$2,c,I$2,u$1(C$1(d)),E$2);}}else if(ia$2(c)){switch(typeof d){case "function":case "symbol":return;case "boolean":if(b=c.toLowerCase().slice(0,5),"data-"!==b&&"aria-"!==b)return}a.push(H$2,u$1(c),I$2,u$1(C$1(d)),E$2);}}var K$2=w$8(">"),Ka$2=w$8("/>");
|
|
68698
|
+
function L$2(a,b,c){if(null!=b){if(null!=c)throw Error(k$1(60));if("object"!==typeof b||!("__html"in b))throw Error(k$1(61));b=b.__html;null!==b&&void 0!==b&&a.push(u$1(""+b));}}function La$2(a){var b="";React__default.Children.forEach(a,function(a){null!=a&&(b+=a);});return b}var Ma$2=w$8(' selected=""');
|
|
68699
|
+
function Na$2(a,b,c,d){a.push(M$2(c));var f=c=null,e;for(e in b)if(x$2.call(b,e)){var g=b[e];if(null!=g)switch(e){case "children":c=g;break;case "dangerouslySetInnerHTML":f=g;break;default:J$1(a,d,e,g);}}a.push(K$2);L$2(a,f,c);return "string"===typeof c?(a.push(u$1(C$1(c))),null):c}var Oa$2=w$8("\n"),Pa$2=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Qa$2=new Map;function M$2(a){var b=Qa$2.get(a);if(void 0===b){if(!Pa$2.test(a))throw Error(k$1(65,a));b=w$8("<"+a);Qa$2.set(a,b);}return b}var Ra$2=w$8("<!DOCTYPE html>");
|
|
69619
68700
|
function Sa$2(a,b,c,d,f){switch(b){case "select":a.push(M$2("select"));var e=null,g=null;for(r in c)if(x$2.call(c,r)){var h=c[r];if(null!=h)switch(r){case "children":e=h;break;case "dangerouslySetInnerHTML":g=h;break;case "defaultValue":case "value":break;default:J$1(a,d,r,h);}}a.push(K$2);L$2(a,g,e);return e;case "option":g=f.selectedValue;a.push(M$2("option"));var m=h=null,q=null;var r=null;for(e in c)if(x$2.call(c,e)){var v=c[e];if(null!=v)switch(e){case "children":h=v;break;case "selected":q=v;break;case "dangerouslySetInnerHTML":r=
|
|
69620
68701
|
v;break;case "value":m=v;default:J$1(a,d,e,v);}}if(null!=g)if(c=null!==m?""+m:La$2(h),ra$2(g))for(d=0;d<g.length;d++){if(""+g[d]===c){a.push(Ma$2);break}}else ""+g===c&&a.push(Ma$2);else q&&a.push(Ma$2);a.push(K$2);L$2(a,r,h);return h;case "textarea":a.push(M$2("textarea"));r=g=e=null;for(h in c)if(x$2.call(c,h)&&(m=c[h],null!=m))switch(h){case "children":r=m;break;case "value":e=m;break;case "defaultValue":g=m;break;case "dangerouslySetInnerHTML":throw Error(k$1(91));default:J$1(a,d,h,m);}null===e&&null!==g&&(e=g);a.push(K$2);
|
|
69621
68702
|
if(null!=r){if(null!=e)throw Error(k$1(92));if(ra$2(r)&&1<r.length)throw Error(k$1(93));e=""+r;}"string"===typeof e&&"\n"===e[0]&&a.push(Oa$2);null!==e&&a.push(u$1(C$1(""+e)));return null;case "input":a.push(M$2("input"));m=r=h=e=null;for(g in c)if(x$2.call(c,g)&&(q=c[g],null!=q))switch(g){case "children":case "dangerouslySetInnerHTML":throw Error(k$1(399,"input"));case "defaultChecked":m=q;break;case "defaultValue":h=q;break;case "checked":r=q;break;case "value":e=q;break;default:J$1(a,d,g,q);}null!==r?J$1(a,d,"checked",
|
|
@@ -69623,12 +68704,12 @@ r):null!==m&&J$1(a,d,"checked",m);null!==e?J$1(a,d,"value",e):null!==h&&J$1(a,d,
|
|
|
69623
68704
|
return e;case "listing":case "pre":a.push(M$2(b));g=e=null;for(m in c)if(x$2.call(c,m)&&(h=c[m],null!=h))switch(m){case "children":e=h;break;case "dangerouslySetInnerHTML":g=h;break;default:J$1(a,d,m,h);}a.push(K$2);if(null!=g){if(null!=e)throw Error(k$1(60));if("object"!==typeof g||!("__html"in g))throw Error(k$1(61));c=g.__html;null!==c&&void 0!==c&&("string"===typeof c&&0<c.length&&"\n"===c[0]?a.push(Oa$2,u$1(c)):a.push(u$1(""+c)));}"string"===typeof e&&"\n"===e[0]&&a.push(Oa$2);return e;case "area":case "base":case "br":case "col":case "embed":case "hr":case "img":case "keygen":case "link":case "meta":case "param":case "source":case "track":case "wbr":a.push(M$2(b));
|
|
69624
68705
|
for(var F in c)if(x$2.call(c,F)&&(e=c[F],null!=e))switch(F){case "children":case "dangerouslySetInnerHTML":throw Error(k$1(399,b));default:J$1(a,d,F,e);}a.push(Ka$2);return null;case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":return Na$2(a,c,b,d);case "html":return 0===f.insertionMode&&a.push(Ra$2),Na$2(a,c,b,d);default:if(-1===b.indexOf("-")&&"string"!==typeof c.is)return Na$2(a,c,b,d);a.push(M$2(b));
|
|
69625
68706
|
g=e=null;for(q in c)if(x$2.call(c,q)&&(h=c[q],null!=h))switch(q){case "children":e=h;break;case "dangerouslySetInnerHTML":g=h;break;case "style":Ia$2(a,d,h);break;case "suppressContentEditableWarning":case "suppressHydrationWarning":break;default:ia$2(q)&&"function"!==typeof h&&"symbol"!==typeof h&&a.push(H$2,u$1(q),I$2,u$1(C$1(h)),E$2);}a.push(K$2);L$2(a,g,e);return e}}
|
|
69626
|
-
var Ta$2=w$
|
|
69627
|
-
var gb$2=w$
|
|
68707
|
+
var Ta$2=w$8("</"),Ua$2=w$8(">"),Va$2=w$8('<template id="'),Wa$2=w$8('"></template>'),Xa$2=w$8("\x3c!--$--\x3e"),Ya$2=w$8('\x3c!--$?--\x3e<template id="'),Za$2=w$8('"></template>'),$a$1=w$8("\x3c!--$!--\x3e"),ab$2=w$8("\x3c!--/$--\x3e"),bb$2=w$8("<template"),cb$2=w$8('"'),db$2=w$8(' data-dgst="');w$8(' data-msg="');w$8(' data-stck="');var eb$2=w$8("></template>");function fb$2(a,b,c){p$3(a,Ya$2);if(null===c)throw Error(k$1(395));p$3(a,c);return t$2(a,Za$2)}
|
|
68708
|
+
var gb$2=w$8('<div hidden id="'),hb$2=w$8('">'),ib$2=w$8("</div>"),jb$2=w$8('<svg aria-hidden="true" style="display:none" id="'),kb$2=w$8('">'),lb$2=w$8("</svg>"),mb$1=w$8('<math aria-hidden="true" style="display:none" id="'),nb$1=w$8('">'),ob$2=w$8("</math>"),pb$2=w$8('<table hidden id="'),qb$2=w$8('">'),rb$2=w$8("</table>"),sb$2=w$8('<table hidden><tbody id="'),tb$2=w$8('">'),ub$2=w$8("</tbody></table>"),vb$2=w$8('<table hidden><tr id="'),wb$2=w$8('">'),xb$2=w$8("</tr></table>"),yb$2=w$8('<table hidden><colgroup id="'),zb$2=w$8('">'),Ab$2=w$8("</colgroup></table>");
|
|
69628
68709
|
function Bb$2(a,b,c,d){switch(c.insertionMode){case 0:case 1:return p$3(a,gb$2),p$3(a,b.segmentPrefix),p$3(a,u$1(d.toString(16))),t$2(a,hb$2);case 2:return p$3(a,jb$2),p$3(a,b.segmentPrefix),p$3(a,u$1(d.toString(16))),t$2(a,kb$2);case 3:return p$3(a,mb$1),p$3(a,b.segmentPrefix),p$3(a,u$1(d.toString(16))),t$2(a,nb$1);case 4:return p$3(a,pb$2),p$3(a,b.segmentPrefix),p$3(a,u$1(d.toString(16))),t$2(a,qb$2);case 5:return p$3(a,sb$2),p$3(a,b.segmentPrefix),p$3(a,u$1(d.toString(16))),t$2(a,tb$2);case 6:return p$3(a,vb$2),p$3(a,b.segmentPrefix),p$3(a,u$1(d.toString(16))),t$2(a,wb$2);case 7:return p$3(a,
|
|
69629
68710
|
yb$2),p$3(a,b.segmentPrefix),p$3(a,u$1(d.toString(16))),t$2(a,zb$2);default:throw Error(k$1(397));}}function Cb$2(a,b){switch(b.insertionMode){case 0:case 1:return t$2(a,ib$2);case 2:return t$2(a,lb$2);case 3:return t$2(a,ob$2);case 4:return t$2(a,rb$2);case 5:return t$2(a,ub$2);case 6:return t$2(a,xb$2);case 7:return t$2(a,Ab$2);default:throw Error(k$1(397));}}
|
|
69630
|
-
var Db$2=w$
|
|
69631
|
-
Jb$2=w$
|
|
68711
|
+
var Db$2=w$8('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),Eb$2=w$8('$RS("'),Gb$2=w$8('","'),Hb$2=w$8('")\x3c/script>'),Ib$2=w$8('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),
|
|
68712
|
+
Jb$2=w$8('$RC("'),Kb$2=w$8('","'),Lb$2=w$8('")\x3c/script>'),Mb$2=w$8('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),Nb$2=w$8('$RX("'),Ob$2=w$8('"'),Pb$2=w$8(")\x3c/script>"),Qb$2=w$8(","),Rb$2=/[<\u2028\u2029]/g;
|
|
69632
68713
|
function Sb$2(a){return JSON.stringify(a).replace(Rb$2,function(a){switch(a){case "<":return "\\u003c";case "\u2028":return "\\u2028";case "\u2029":return "\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React");}})}
|
|
69633
68714
|
var N$2=Object.assign,Tb$2=Symbol.for("react.element"),Ub$1=Symbol.for("react.portal"),Vb$1=Symbol.for("react.fragment"),Wb$1=Symbol.for("react.strict_mode"),Xb$1=Symbol.for("react.profiler"),Yb$1=Symbol.for("react.provider"),Zb$1=Symbol.for("react.context"),$b$1=Symbol.for("react.forward_ref"),ac$1=Symbol.for("react.suspense"),bc$1=Symbol.for("react.suspense_list"),cc$1=Symbol.for("react.memo"),dc$1=Symbol.for("react.lazy"),ec$1=Symbol.for("react.scope"),fc$1=Symbol.for("react.debug_trace_mode"),gc$1=Symbol.for("react.legacy_hidden"),
|
|
69634
68715
|
hc$1=Symbol.for("react.default_value"),ic$1=Symbol.iterator;
|
|
@@ -69669,7 +68750,7 @@ b.parentFlushed&&a.partialBoundaries.push(b)));a.allPendingTasks--;0===a.allPend
|
|
|
69669
68750
|
function Uc$1(a){if(2!==a.status){var b=O$2,c=Pc$1.current;Pc$1.current=Oc$1;var d=Nc$1;Nc$1=a.responseState;try{var f=a.pingedTasks,e;for(e=0;e<f.length;e++){var g=f[e];var h=a,m=g.blockedSegment;if(0===m.status){Q$2(g.context);try{Z$2(h,g,g.node),m.lastPushedText&&m.textEmbedded&&m.chunks.push(Ca$2),g.abortSet.delete(g),m.status=1,dd$1(h,g.blockedBoundary,m);}catch(G){if(Gc$1(),"object"===typeof G&&null!==G&&"function"===typeof G.then){var q=g.ping;G.then(q,q);}else {g.abortSet.delete(g);m.status=4;var r=g.blockedBoundary,
|
|
69670
68751
|
v=G,A=Y$2(h,v);null===r?Vc$1(h,v):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,r.errorDigest=A,r.parentFlushed&&h.clientRenderedBoundaries.push(r)));h.allPendingTasks--;if(0===h.allPendingTasks){var F=h.onAllReady;F();}}}finally{}}}f.splice(0,e);null!==a.destination&&fd$1(a,a.destination);}catch(G){Y$2(a,G),Vc$1(a,G);}finally{Nc$1=d,Pc$1.current=c,c===Oc$1&&Q$2(b);}}}
|
|
69671
68752
|
function gd$1(a,b,c){c.parentFlushed=!0;switch(c.status){case 0:var d=c.id=a.nextSegmentId++;c.lastPushedText=!1;c.textEmbedded=!1;a=a.responseState;p$3(b,Va$2);p$3(b,a.placeholderPrefix);a=u$1(d.toString(16));p$3(b,a);return t$2(b,Wa$2);case 1:c.status=2;var f=!0;d=c.chunks;var e=0;c=c.children;for(var g=0;g<c.length;g++){for(f=c[g];e<f.index;e++)p$3(b,d[e]);f=hd$1(a,b,f);}for(;e<d.length-1;e++)p$3(b,d[e]);e<d.length&&(f=t$2(b,d[e]));return f;default:throw Error(k$1(390));}}
|
|
69672
|
-
function hd$1(a,b,c){var d=c.boundary;if(null===d)return gd$1(a,b,c);d.parentFlushed=!0;if(d.forceClientRender)d=d.errorDigest,t$2(b,$a$1),p$3(b,bb$2),d&&(p$3(b,db$2),p$3(b,u$1(C$1(d))),p$3(b,cb$2)),t$2(b,eb$2),gd$1(a,b,c);else if(0<d.pendingTasks){d.rootSegmentID=a.nextSegmentId++;0<d.completedSegments.length&&a.partialBoundaries.push(d);var f=a.responseState;var e=f.nextSuspenseID++;f=w$
|
|
68753
|
+
function hd$1(a,b,c){var d=c.boundary;if(null===d)return gd$1(a,b,c);d.parentFlushed=!0;if(d.forceClientRender)d=d.errorDigest,t$2(b,$a$1),p$3(b,bb$2),d&&(p$3(b,db$2),p$3(b,u$1(C$1(d))),p$3(b,cb$2)),t$2(b,eb$2),gd$1(a,b,c);else if(0<d.pendingTasks){d.rootSegmentID=a.nextSegmentId++;0<d.completedSegments.length&&a.partialBoundaries.push(d);var f=a.responseState;var e=f.nextSuspenseID++;f=w$8(f.boundaryPrefix+e.toString(16));d=d.id=f;fb$2(b,a.responseState,d);gd$1(a,b,c);}else if(d.byteSize>a.progressiveChunkSize)d.rootSegmentID=a.nextSegmentId++,
|
|
69673
68754
|
a.completedBoundaries.push(d),fb$2(b,a.responseState,d.id),gd$1(a,b,c);else {t$2(b,Xa$2);c=d.completedSegments;if(1!==c.length)throw Error(k$1(391));hd$1(a,b,c[0]);}return t$2(b,ab$2)}function id$1(a,b,c){Bb$2(b,a.responseState,c.formatContext,c.id);hd$1(a,b,c);return Cb$2(b,c.formatContext)}
|
|
69674
68755
|
function jd$1(a,b,c){for(var d=c.completedSegments,f=0;f<d.length;f++)kd$1(a,b,c,d[f]);d.length=0;a=a.responseState;d=c.id;c=c.rootSegmentID;p$3(b,a.startInlineScript);a.sentCompleteBoundaryFunction?p$3(b,Jb$2):(a.sentCompleteBoundaryFunction=!0,p$3(b,Ib$2));if(null===d)throw Error(k$1(395));c=u$1(c.toString(16));p$3(b,d);p$3(b,Kb$2);p$3(b,a.segmentPrefix);p$3(b,c);return t$2(b,Lb$2)}
|
|
69675
68756
|
function kd$1(a,b,c,d){if(2===d.status)return !0;var f=d.id;if(-1===f){if(-1===(d.id=c.rootSegmentID))throw Error(k$1(392));return id$1(a,b,d)}id$1(a,b,d);a=a.responseState;p$3(b,a.startInlineScript);a.sentCompleteSegmentFunction?p$3(b,Eb$2):(a.sentCompleteSegmentFunction=!0,p$3(b,Db$2));p$3(b,a.segmentPrefix);f=u$1(f.toString(16));p$3(b,f);p$3(b,Gb$2);p$3(b,a.placeholderPrefix);p$3(b,f);return t$2(b,Hb$2)}
|
|
@@ -83713,7 +82794,7 @@ var server_browser = {
|
|
|
83713
82794
|
renderToReadableStream: renderToReadableStream$1
|
|
83714
82795
|
};
|
|
83715
82796
|
|
|
83716
|
-
var styles$
|
|
82797
|
+
var styles$1k = {"vitro-file":"_file_vitro-file_2xkXgkS","vitro-preview":"_file_vitro-preview_2RVdrbm","vitro-preview-container":"_file_vitro-preview-container_2dmbDD7","vitro-flex":"_file_vitro-flex_3nGTlWX","vitro-image":"_file_vitro-image_2Bt3otk","vitro-file-name":"_file_vitro-file-name_2t9Y643","vitro-file-size":"_file_vitro-file-size_15f_E_0","vitro-dropdown-button":"_file_vitro-dropdown-button_3MgI2n9"};
|
|
83717
82798
|
|
|
83718
82799
|
var File = function File(props) {
|
|
83719
82800
|
var onClick = function onClick() {
|
|
@@ -83721,36 +82802,36 @@ var File = function File(props) {
|
|
|
83721
82802
|
props.onClick(props.id);
|
|
83722
82803
|
}
|
|
83723
82804
|
};
|
|
83724
|
-
var className = [styles$
|
|
82805
|
+
var className = [styles$1k['vitro-file'], props.className || CTRL.EMPTY, props.isImage ? styles$1k['vitro-preview'] : CTRL.EMPTY].join(CTRL.SPACE);
|
|
83725
82806
|
return React__default.createElement(FlexBox, {
|
|
83726
82807
|
className: className,
|
|
83727
82808
|
isColumn: true
|
|
83728
82809
|
}, props.actionList && props.actionList.length ? React__default.createElement(DropdownButton, {
|
|
83729
82810
|
itemList: props.actionList,
|
|
83730
|
-
className: styles$
|
|
82811
|
+
className: styles$1k['vitro-dropdown-button']
|
|
83731
82812
|
}) : null, props.preview && React__default.createElement(Tooltip$1, {
|
|
83732
82813
|
placement: PLACEMENT.TOP,
|
|
83733
82814
|
text: props.tooltip || CTRL.EMPTY
|
|
83734
82815
|
}, React__default.createElement("div", {
|
|
83735
|
-
className: styles$
|
|
82816
|
+
className: styles$1k['vitro-preview-container'],
|
|
83736
82817
|
onClick: onClick
|
|
83737
82818
|
}, React__default.createElement("img", {
|
|
83738
82819
|
src: props.preview
|
|
83739
82820
|
}))), !props.isImage && React__default.createElement(FlexBox, {
|
|
83740
|
-
className: styles$
|
|
82821
|
+
className: styles$1k['vitro-flex'] + (props.contentClassName ? CTRL.SPACE + props.contentClassName : CTRL.EMPTY)
|
|
83741
82822
|
}, props.image && React__default.createElement("img", {
|
|
83742
82823
|
src: props.image,
|
|
83743
|
-
className: styles$
|
|
82824
|
+
className: styles$1k['vitro-image']
|
|
83744
82825
|
}), React__default.createElement(FlexBox, {
|
|
83745
82826
|
isColumn: true
|
|
83746
82827
|
}, React__default.createElement("span", {
|
|
83747
|
-
className: styles$
|
|
82828
|
+
className: styles$1k['vitro-file-name']
|
|
83748
82829
|
}, props.name), React__default.createElement("span", {
|
|
83749
|
-
className: styles$
|
|
82830
|
+
className: styles$1k['vitro-file-size']
|
|
83750
82831
|
}, props.size))), props.children);
|
|
83751
82832
|
};
|
|
83752
82833
|
|
|
83753
|
-
var styles$
|
|
82834
|
+
var styles$1l = {"vitro-file-list-container":"_attached-file-list_vitro-file-list-container_5PIFyI7","vitro-overflow-button":"_attached-file-list_vitro-overflow-button_39QxX1m","vitro-item-count":"_attached-file-list_vitro-item-count_35PIT1U","vitro-file":"_attached-file-list_vitro-file_2mPE3Rq"};
|
|
83754
82835
|
|
|
83755
82836
|
var AttachedFileListItem = function AttachedFileListItem(props) {
|
|
83756
82837
|
var _useState = React.useState(null),
|
|
@@ -83766,14 +82847,14 @@ var AttachedFileListItem = function AttachedFileListItem(props) {
|
|
|
83766
82847
|
return React__default.createElement(React__default.Fragment, null, props.fileList.map(function (file, index) {
|
|
83767
82848
|
if (index < props.maxVisibleFileCount) {
|
|
83768
82849
|
return React__default.createElement(File, Object.assign({}, file, {
|
|
83769
|
-
className: styles$
|
|
82850
|
+
className: styles$1l['vitro-file']
|
|
83770
82851
|
}));
|
|
83771
82852
|
}
|
|
83772
82853
|
return React__default.createElement(React__default.Fragment, null);
|
|
83773
82854
|
}), props.fileList.length > props.maxVisibleFileCount && !hiddenFileList ? React__default.createElement("div", {
|
|
83774
|
-
className: styles$
|
|
82855
|
+
className: styles$1l['vitro-overflow-button']
|
|
83775
82856
|
}, React__default.createElement("div", {
|
|
83776
|
-
className: styles$
|
|
82857
|
+
className: styles$1l['vitro-item-count'],
|
|
83777
82858
|
onClick: function onClick() {
|
|
83778
82859
|
return onHiddenFileListClick(props.fileList.slice(props.maxVisibleFileCount));
|
|
83779
82860
|
}
|
|
@@ -83782,10 +82863,10 @@ var AttachedFileListItem = function AttachedFileListItem(props) {
|
|
|
83782
82863
|
text: props.hiddenFileCountTooltip || CTRL.EMPTY
|
|
83783
82864
|
}, React__default.createElement("div", null, CTRL.PLUS + (props.fileList.length - props.maxVisibleFileCount)))), React__default.createElement(File, Object.assign({}, props.fileList[props.maxVisibleFileCount], {
|
|
83784
82865
|
actionList: [],
|
|
83785
|
-
className: styles$
|
|
82866
|
+
className: styles$1l['vitro-file']
|
|
83786
82867
|
}))) : null, hiddenFileList && hiddenFileList.map(function (file) {
|
|
83787
82868
|
return React__default.createElement(File, Object.assign({}, file, {
|
|
83788
|
-
className: styles$
|
|
82869
|
+
className: styles$1l['vitro-file']
|
|
83789
82870
|
}));
|
|
83790
82871
|
}));
|
|
83791
82872
|
};
|
|
@@ -83821,7 +82902,7 @@ var AttachedFileList = function AttachedFileList(props) {
|
|
|
83821
82902
|
}
|
|
83822
82903
|
};
|
|
83823
82904
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|
|
83824
|
-
className: styles$
|
|
82905
|
+
className: styles$1l['vitro-file-list-container']
|
|
83825
82906
|
}, imageList && React__default.createElement(AttachedFileListItem, {
|
|
83826
82907
|
fileList: imageList,
|
|
83827
82908
|
maxVisibleFileCount: maxImageCount,
|
|
@@ -83835,48 +82916,48 @@ var AttachedFileList = function AttachedFileList(props) {
|
|
|
83835
82916
|
})));
|
|
83836
82917
|
};
|
|
83837
82918
|
|
|
83838
|
-
var styles$
|
|
82919
|
+
var styles$1m = {"vitro-activity-message":"_activity-message_vitro-activity-message_3GdyQuC","vitro-item":"_activity-message_vitro-item_3Q-7zX3","vitro-value":"_activity-message_vitro-value_O4DpuTR","vitro-message":"_activity-message_vitro-message_25otUOy","vitro-field-name":"_activity-message_vitro-field-name_hdjdQbg","vitro-ellipsis":"_activity-message_vitro-ellipsis_1fIRwiW","vitro-value-content":"_activity-message_vitro-value-content_1fdGuBJ","vitro-value-tooltip":"_activity-message_vitro-value-tooltip_3oYwdFU"};
|
|
83839
82920
|
|
|
83840
82921
|
var ActivityMessage = function ActivityMessage(props) {
|
|
83841
82922
|
var onUpdateTooltip = function onUpdateTooltip(isEnabled, element) {
|
|
83842
82923
|
if (element) {
|
|
83843
82924
|
if (isEnabled) {
|
|
83844
|
-
element.classList.add(styles$
|
|
82925
|
+
element.classList.add(styles$1m['vitro-ellipsis']);
|
|
83845
82926
|
} else {
|
|
83846
|
-
element.classList.remove(styles$
|
|
82927
|
+
element.classList.remove(styles$1m['vitro-ellipsis']);
|
|
83847
82928
|
}
|
|
83848
82929
|
}
|
|
83849
82930
|
};
|
|
83850
82931
|
return React__default.createElement(React__default.Fragment, null, props.changedValueList.length ? React__default.createElement("div", {
|
|
83851
|
-
className: styles$
|
|
82932
|
+
className: styles$1m['vitro-activity-message']
|
|
83852
82933
|
}, props.changedValueList.map(function (item) {
|
|
83853
82934
|
var value = React__default.createElement("div", {
|
|
83854
|
-
className: styles$
|
|
82935
|
+
className: styles$1m['vitro-value-content']
|
|
83855
82936
|
}, item.oldValue && React__default.createElement(React__default.Fragment, null, React__default.createElement("span", {
|
|
83856
|
-
className: styles$
|
|
82937
|
+
className: styles$1m['vitro-value'],
|
|
83857
82938
|
dangerouslySetInnerHTML: item.isRichText ? {
|
|
83858
82939
|
__html: item.oldValue
|
|
83859
82940
|
} : undefined
|
|
83860
82941
|
}, item.isRichText ? undefined : item.oldValue), React__default.createElement("div", {
|
|
83861
82942
|
className: 'vitro-arrow-separator'
|
|
83862
82943
|
})), item.newValue && React__default.createElement("span", {
|
|
83863
|
-
className: item.isMessage ? styles$
|
|
82944
|
+
className: item.isMessage ? styles$1m['vitro-message'] : styles$1m['vitro-value'],
|
|
83864
82945
|
dangerouslySetInnerHTML: item.isRichText ? {
|
|
83865
82946
|
__html: item.newValue
|
|
83866
82947
|
} : undefined
|
|
83867
82948
|
}, item.isRichText ? undefined : item.newValue));
|
|
83868
82949
|
var containerRef = React__default.createRef();
|
|
83869
82950
|
return React__default.createElement("div", {
|
|
83870
|
-
className: styles$
|
|
82951
|
+
className: styles$1m['vitro-item'],
|
|
83871
82952
|
ref: containerRef
|
|
83872
82953
|
}, item.fieldName && React__default.createElement("span", {
|
|
83873
|
-
className: styles$
|
|
82954
|
+
className: styles$1m['vitro-field-name']
|
|
83874
82955
|
}, "" + item.fieldName + CTRL.COLON), React__default.createElement(ValueTooltip, {
|
|
83875
82956
|
text: renderToString$1(value),
|
|
83876
82957
|
isRichText: true,
|
|
83877
82958
|
containerRef: containerRef,
|
|
83878
82959
|
isMultiline: true,
|
|
83879
|
-
className: styles$
|
|
82960
|
+
className: styles$1m['vitro-value-tooltip'],
|
|
83880
82961
|
onUpdate: function onUpdate(isEnabled) {
|
|
83881
82962
|
return onUpdateTooltip(isEnabled, containerRef.current);
|
|
83882
82963
|
}
|
|
@@ -83893,7 +82974,7 @@ var LOCALE$a;
|
|
|
83893
82974
|
LOCALE["ADD_FILE"] = "app.common.messageInput.action.addFile";
|
|
83894
82975
|
})(LOCALE$a || (LOCALE$a = {}));
|
|
83895
82976
|
|
|
83896
|
-
var styles$
|
|
82977
|
+
var styles$1n = {"vitro-attached-file-container":"_attached-file_vitro-attached-file-container_3AhHHlm","vitro-attached-file":"_attached-file_vitro-attached-file_1R6PPQN","vitro-button-remove":"_attached-file_vitro-button-remove_3ehToHf"};
|
|
83897
82978
|
|
|
83898
82979
|
var AttachedFile = function AttachedFile(props) {
|
|
83899
82980
|
var _useState = React.useState(null),
|
|
@@ -83931,23 +83012,23 @@ var AttachedFile = function AttachedFile(props) {
|
|
|
83931
83012
|
return null;
|
|
83932
83013
|
}
|
|
83933
83014
|
return React__default.createElement("div", {
|
|
83934
|
-
className: styles$
|
|
83015
|
+
className: styles$1n['vitro-attached-file-container']
|
|
83935
83016
|
}, React__default.createElement(Tooltip$1, {
|
|
83936
83017
|
placement: PLACEMENT.TOP,
|
|
83937
83018
|
text: localeService.create(LOCALE$a.DELETE_FILE)
|
|
83938
83019
|
}, React__default.createElement("button", {
|
|
83939
|
-
className: styles$
|
|
83020
|
+
className: styles$1n['vitro-button-remove'],
|
|
83940
83021
|
onClick: function onClick() {
|
|
83941
83022
|
return props.onDelete(props.index);
|
|
83942
83023
|
}
|
|
83943
83024
|
})), React__default.createElement(File, Object.assign({
|
|
83944
83025
|
id: "" + props.index
|
|
83945
83026
|
}, file, {
|
|
83946
|
-
className: styles$
|
|
83027
|
+
className: styles$1n['vitro-attached-file']
|
|
83947
83028
|
})));
|
|
83948
83029
|
};
|
|
83949
83030
|
|
|
83950
|
-
var styles$
|
|
83031
|
+
var styles$1o = {"vitro-message-input":"_message-input_vitro-message-input_3MkcjWD","vitro-control":"_message-input_vitro-control_1PUSjq9","vitro-message":"_message-input_vitro-message_2EJSy-9","vitro-placeholder":"_message-input_vitro-placeholder_1FBfIqN","vitro-button-add-file":"_message-input_vitro-button-add-file_1qdtHHq","vitro-button-send":"_message-input_vitro-button-send_1vktQrZ","vitro-display-none":"_message-input_vitro-display-none_2dYTZ22","vitro-attached-file-list":"_message-input_vitro-attached-file-list_l95S4VR","vitro-flex":"_message-input_vitro-flex_18M_7xU"};
|
|
83951
83032
|
|
|
83952
83033
|
var MessageInput = React.forwardRef(function (props, ref) {
|
|
83953
83034
|
var _useState = React.useState(true),
|
|
@@ -84060,12 +83141,12 @@ var MessageInput = React.forwardRef(function (props, ref) {
|
|
|
84060
83141
|
}
|
|
84061
83142
|
};
|
|
84062
83143
|
return React__default.createElement("div", {
|
|
84063
|
-
className: styles$
|
|
83144
|
+
className: styles$1o['vitro-message-input'],
|
|
84064
83145
|
onDrop: props.onDrop
|
|
84065
83146
|
}, React__default.createElement("div", {
|
|
84066
|
-
className: styles$
|
|
83147
|
+
className: styles$1o['vitro-control']
|
|
84067
83148
|
}, fileList.length ? React__default.createElement("div", {
|
|
84068
|
-
className: styles$
|
|
83149
|
+
className: styles$1o['vitro-attached-file-list']
|
|
84069
83150
|
}, React__default.createElement(ScrollBar, null, fileList.map(function (file, index) {
|
|
84070
83151
|
return React__default.createElement(AttachedFile, {
|
|
84071
83152
|
key: index,
|
|
@@ -84076,11 +83157,11 @@ var MessageInput = React.forwardRef(function (props, ref) {
|
|
|
84076
83157
|
getFileSize: props.getFileSize
|
|
84077
83158
|
});
|
|
84078
83159
|
}))) : null, React__default.createElement(FlexBox, {
|
|
84079
|
-
className: styles$
|
|
83160
|
+
className: styles$1o['vitro-flex']
|
|
84080
83161
|
}, !props.isDisabled && React__default.createElement(ScrollBar, {
|
|
84081
83162
|
isHideScrollX: true
|
|
84082
83163
|
}, React__default.createElement("div", {
|
|
84083
|
-
className: styles$
|
|
83164
|
+
className: styles$1o['vitro-message'],
|
|
84084
83165
|
ref: inputRef,
|
|
84085
83166
|
onInput: onChange,
|
|
84086
83167
|
onKeyDown: onKeyDown,
|
|
@@ -84090,20 +83171,20 @@ var MessageInput = React.forwardRef(function (props, ref) {
|
|
|
84090
83171
|
onDrop: onDrop,
|
|
84091
83172
|
contentEditable: true
|
|
84092
83173
|
}, isShowPlaceholder && React__default.createElement("span", {
|
|
84093
|
-
className: styles$
|
|
83174
|
+
className: styles$1o['vitro-placeholder']
|
|
84094
83175
|
}, props.placeholder || localeService.create(LOCALE$a.PLACEHOLDER)))), props.children, props.onSelectFiles && React__default.createElement(React__default.Fragment, null, React__default.createElement(ImageButton, {
|
|
84095
83176
|
onClick: selectFile,
|
|
84096
83177
|
tooltipText: localeService.create(LOCALE$a.ADD_FILE),
|
|
84097
|
-
className: styles$
|
|
83178
|
+
className: styles$1o['vitro-button-add-file']
|
|
84098
83179
|
}), React__default.createElement("input", {
|
|
84099
83180
|
type: 'file',
|
|
84100
83181
|
onChange: onSelectFile,
|
|
84101
83182
|
ref: fileInputRef,
|
|
84102
|
-
className: styles$
|
|
83183
|
+
className: styles$1o['vitro-display-none'],
|
|
84103
83184
|
multiple: true
|
|
84104
83185
|
})))), React__default.createElement(ImageButton, {
|
|
84105
83186
|
onClick: onEnter,
|
|
84106
|
-
className: styles$
|
|
83187
|
+
className: styles$1o['vitro-button-send']
|
|
84107
83188
|
}));
|
|
84108
83189
|
});
|
|
84109
83190
|
|
|
@@ -84118,7 +83199,7 @@ var LOCALE$b;
|
|
|
84118
83199
|
LOCALE["ACTION_DELETE"] = "app.common.action.delete";
|
|
84119
83200
|
})(LOCALE$b || (LOCALE$b = {}));
|
|
84120
83201
|
|
|
84121
|
-
var styles$
|
|
83202
|
+
var styles$1p = {"vitro-image-picker-root":"_image-picker_vitro-image-picker-root_AqOYRhP","vitro-image-picker-dropdown-wrapper":"_image-picker_vitro-image-picker-dropdown-wrapper_8Tr_BBS","vitro-image-picker-defaultImage-wrapper":"_image-picker_vitro-image-picker-defaultImage-wrapper_1BHZ1he","vitro-image-picker-image-wrapper":"_image-picker_vitro-image-picker-image-wrapper_328OVLU","vitro-image-picker-input":"_image-picker_vitro-image-picker-input_12jFFNU","vitro-image-default":"_image-picker_vitro-image-default_LhN4iy6","vitro-image-picker-label-wrapper":"_image-picker_vitro-image-picker-label-wrapper_WRLzUYM","vitro-image-picker-wrapper":"_image-picker_vitro-image-picker-wrapper_dlZyYFL","vitro-required":"_image-picker_vitro-required_2lpwlb0"};
|
|
84122
83203
|
|
|
84123
83204
|
var ImagePicker = function ImagePicker(props) {
|
|
84124
83205
|
var localeService = inversifyReact.useInjection(SERVICE.LOCALE);
|
|
@@ -84126,16 +83207,16 @@ var ImagePicker = function ImagePicker(props) {
|
|
|
84126
83207
|
var renderPreview = function renderPreview() {
|
|
84127
83208
|
if (props.defaultUrl) {
|
|
84128
83209
|
return React__default.createElement("div", {
|
|
84129
|
-
className: props.classNameDefaultImage ? props.classNameDefaultImage : styles$
|
|
83210
|
+
className: props.classNameDefaultImage ? props.classNameDefaultImage : styles$1p['vitro-image-picker-image-wrapper']
|
|
84130
83211
|
}, React__default.createElement(Image, {
|
|
84131
83212
|
defaultUrl: props.defaultUrl,
|
|
84132
|
-
className: props.classNameImage ? props.classNameImage : styles$
|
|
83213
|
+
className: props.classNameImage ? props.classNameImage : styles$1p['vitro-image-picker-image']
|
|
84133
83214
|
}));
|
|
84134
83215
|
} else {
|
|
84135
83216
|
return React__default.createElement("div", {
|
|
84136
|
-
className: props.classNameDefaultImage ? props.classNameDefaultImage : styles$
|
|
83217
|
+
className: props.classNameDefaultImage ? props.classNameDefaultImage : styles$1p['vitro-image-picker-defaultImage-wrapper']
|
|
84137
83218
|
}, React__default.createElement("div", {
|
|
84138
|
-
className: styles$
|
|
83219
|
+
className: styles$1p['vitro-image-default']
|
|
84139
83220
|
}));
|
|
84140
83221
|
}
|
|
84141
83222
|
};
|
|
@@ -84151,11 +83232,7 @@ var ImagePicker = function ImagePicker(props) {
|
|
|
84151
83232
|
return inputFileRef === null || inputFileRef === void 0 ? void 0 : (_inputFileRef$current = inputFileRef.current) === null || _inputFileRef$current === void 0 ? void 0 : _inputFileRef$current.click();
|
|
84152
83233
|
},
|
|
84153
83234
|
text: localeService.create(LOCALE$b.ACTION_UPLOAD),
|
|
84154
|
-
value: ACTION$3.UPLOAD,
|
|
84155
83235
|
key: ACTION$3.UPLOAD,
|
|
84156
|
-
actionCode: ACTION$3.UPLOAD,
|
|
84157
|
-
isConfirm: false,
|
|
84158
|
-
isOverflow: false,
|
|
84159
83236
|
imageUrl: props.imgUrlUpload
|
|
84160
83237
|
}];
|
|
84161
83238
|
if (props.defaultUrl) {
|
|
@@ -84164,30 +83241,27 @@ var ImagePicker = function ImagePicker(props) {
|
|
|
84164
83241
|
return onChange(null);
|
|
84165
83242
|
},
|
|
84166
83243
|
text: localeService.create(LOCALE$b.ACTION_DELETE),
|
|
84167
|
-
value: ACTION$3.DELETE,
|
|
84168
83244
|
key: ACTION$3.DELETE,
|
|
84169
|
-
actionCode: ACTION$3.DELETE,
|
|
84170
|
-
isConfirm: false,
|
|
84171
|
-
isOverflow: false,
|
|
84172
83245
|
imageUrl: props.imgUrlDelete
|
|
84173
83246
|
});
|
|
84174
83247
|
}
|
|
84175
83248
|
return (_props$itemList = props.itemList) !== null && _props$itemList !== void 0 && _props$itemList.length ? result.concat(props.itemList) : result;
|
|
84176
83249
|
}, [props.itemList, props.defaultUrl]);
|
|
84177
83250
|
return React__default.createElement("div", {
|
|
84178
|
-
className: styles$
|
|
83251
|
+
className: styles$1p['vitro-image-picker-wrapper']
|
|
84179
83252
|
}, React__default.createElement("div", {
|
|
84180
|
-
className: styles$
|
|
83253
|
+
className: styles$1p['vitro-image-picker-label-wrapper']
|
|
84181
83254
|
}, props.label ? props.label : '', props.isRequired && React__default.createElement("span", {
|
|
84182
|
-
className: styles$
|
|
83255
|
+
className: styles$1p['vitro-required']
|
|
84183
83256
|
}, CTRL.ASTERISK)), React__default.createElement("div", {
|
|
84184
|
-
className: props.classNameRoot ? props.classNameRoot : styles$
|
|
83257
|
+
className: props.classNameRoot ? props.classNameRoot : styles$1p['vitro-image-picker-root']
|
|
84185
83258
|
}, !props.isReadOnly && React__default.createElement(DropdownButton, {
|
|
84186
83259
|
itemList: defaultItemList,
|
|
84187
|
-
|
|
83260
|
+
containerClassName: styles$1p['vitro-image-picker-dropdown-wrapper'],
|
|
83261
|
+
className: STYLE$1.CONTEXT
|
|
84188
83262
|
}), React__default.createElement("input", {
|
|
84189
83263
|
type: 'file',
|
|
84190
|
-
className: styles$
|
|
83264
|
+
className: styles$1p['vitro-image-picker-input'],
|
|
84191
83265
|
ref: inputFileRef,
|
|
84192
83266
|
onChange: onChange,
|
|
84193
83267
|
accept: 'image/*'
|
|
@@ -84196,7 +83270,7 @@ var ImagePicker = function ImagePicker(props) {
|
|
|
84196
83270
|
}));
|
|
84197
83271
|
};
|
|
84198
83272
|
|
|
84199
|
-
var styles$
|
|
83273
|
+
var styles$1q = {"vitro-criterion-container":"_item_vitro-criterion-container_3cAvpK0","vitro-control":"_item_vitro-control_2yXKeQZ","vitro-label":"_item_vitro-label_1UoRViU","vitro-button-cancel":"_item_vitro-button-cancel_3FPRPrk","vitro-focus":"_item_vitro-focus_1VqbeO1","vitro-error":"_item_vitro-error_2VnXFaz","vitro-image":"_item_vitro-image_24giw0o"};
|
|
84200
83274
|
|
|
84201
83275
|
var Item$3 = function Item(props) {
|
|
84202
83276
|
var _useState = React.useState(CTRL.EMPTY),
|
|
@@ -84211,13 +83285,13 @@ var Item$3 = function Item(props) {
|
|
|
84211
83285
|
}, []);
|
|
84212
83286
|
var labelRef = React.useRef(null);
|
|
84213
83287
|
var onFocus = function onFocus(e) {
|
|
84214
|
-
setState(styles$
|
|
83288
|
+
setState(styles$1q['vitro-focus']);
|
|
84215
83289
|
if (componentProps.onFocus) {
|
|
84216
83290
|
componentProps.onFocus(e);
|
|
84217
83291
|
}
|
|
84218
83292
|
};
|
|
84219
83293
|
var onBlur = function onBlur(e) {
|
|
84220
|
-
setState(componentProps.errorMessage ? styles$
|
|
83294
|
+
setState(componentProps.errorMessage ? styles$1q['vitro-error'] : CTRL.EMPTY);
|
|
84221
83295
|
if (componentProps.onBlur) {
|
|
84222
83296
|
componentProps.onBlur(e);
|
|
84223
83297
|
}
|
|
@@ -84232,15 +83306,15 @@ var Item$3 = function Item(props) {
|
|
|
84232
83306
|
onChange(value);
|
|
84233
83307
|
};
|
|
84234
83308
|
return React__default.createElement(FlexBox, {
|
|
84235
|
-
className: props.isMobileView ? styles$
|
|
83309
|
+
className: props.isMobileView ? styles$1q['vitro-criterion-container-mobile'] : styles$1q['vitro-criterion-container']
|
|
84236
83310
|
}, React__default.createElement("div", {
|
|
84237
|
-
className: styles$
|
|
83311
|
+
className: styles$1q['vitro-control'] + CTRL.SPACE + state
|
|
84238
83312
|
}, React__default.createElement(Label, {
|
|
84239
83313
|
ref: labelRef,
|
|
84240
83314
|
text: props.label,
|
|
84241
|
-
className: styles$
|
|
83315
|
+
className: styles$1q['vitro-label']
|
|
84242
83316
|
}), React__default.createElement(props.content.component, _extends({}, componentProps, {
|
|
84243
|
-
className: styles$
|
|
83317
|
+
className: styles$1q['vitro-control'],
|
|
84244
83318
|
onBlur: onBlur,
|
|
84245
83319
|
onFocus: onFocus,
|
|
84246
83320
|
onChange: onControlChange,
|
|
@@ -84252,11 +83326,11 @@ var Item$3 = function Item(props) {
|
|
|
84252
83326
|
onClick: function onClick() {
|
|
84253
83327
|
return props.onDelete(componentProps.id);
|
|
84254
83328
|
},
|
|
84255
|
-
className: styles$
|
|
83329
|
+
className: styles$1q['vitro-button-cancel']
|
|
84256
83330
|
}));
|
|
84257
83331
|
};
|
|
84258
83332
|
|
|
84259
|
-
var styles$
|
|
83333
|
+
var styles$1r = {"vitro-field-iterator":"_editable-field-iterator_vitro-field-iterator_myx5yu3"};
|
|
84260
83334
|
|
|
84261
83335
|
var EditableFieldIterator = function EditableFieldIterator(props) {
|
|
84262
83336
|
var _useState = React.useState(null),
|
|
@@ -84316,7 +83390,7 @@ var EditableFieldIterator = function EditableFieldIterator(props) {
|
|
|
84316
83390
|
props.onChange(changedFieldValueMap);
|
|
84317
83391
|
};
|
|
84318
83392
|
return React__default.createElement("div", {
|
|
84319
|
-
className: styles$
|
|
83393
|
+
className: styles$1r['vitro-filter']
|
|
84320
83394
|
}, props.isNoScrollBar ? componentMap && React__default.createElement(FieldIterator, {
|
|
84321
83395
|
fieldList: props.fieldList,
|
|
84322
83396
|
fieldValueMap: fieldValueMap,
|
|
@@ -84324,9 +83398,9 @@ var EditableFieldIterator = function EditableFieldIterator(props) {
|
|
|
84324
83398
|
componentMap: componentMap,
|
|
84325
83399
|
onChange: onChange,
|
|
84326
83400
|
isVisibleOverflow: true,
|
|
84327
|
-
className: styles$
|
|
83401
|
+
className: styles$1r['vitro-field-iterator']
|
|
84328
83402
|
}) : React__default.createElement(ScrollBar, {
|
|
84329
|
-
className: styles$
|
|
83403
|
+
className: styles$1r['vitro-scrollbar']
|
|
84330
83404
|
}, componentMap && React__default.createElement(FieldIterator, {
|
|
84331
83405
|
fieldList: props.fieldList,
|
|
84332
83406
|
fieldValueMap: fieldValueMap,
|
|
@@ -84334,7 +83408,7 @@ var EditableFieldIterator = function EditableFieldIterator(props) {
|
|
|
84334
83408
|
componentMap: componentMap,
|
|
84335
83409
|
onChange: onChange,
|
|
84336
83410
|
isVisibleOverflow: true,
|
|
84337
|
-
className: styles$
|
|
83411
|
+
className: styles$1r['vitro-field-iterator']
|
|
84338
83412
|
})));
|
|
84339
83413
|
};
|
|
84340
83414
|
|
|
@@ -84400,7 +83474,7 @@ var Splitter = function Splitter(props) {
|
|
|
84400
83474
|
}, props.children);
|
|
84401
83475
|
};
|
|
84402
83476
|
|
|
84403
|
-
var styles$
|
|
83477
|
+
var styles$1s = {"vitro-route-item":"_route-item_vitro-route-item_bBCgBZG","vitro-route-item-body":"_route-item_vitro-route-item-body_1_1fjOZ","vitro-route-item-content":"_route-item_vitro-route-item-content_2CcLogk","vitro-button-collapse":"_route-item_vitro-button-collapse_1kVB5Vo","vitro-button-expand":"_route-item_vitro-button-expand_3IuABa1","vitro-button-hide-comment":"_route-item_vitro-button-hide-comment_2CiY-Ch","vitro-button-show-comment":"_route-item_vitro-button-show-comment_DJt2SLC","vitro-avatar":"_route-item_vitro-avatar_3Dypnmz","vitro-date":"_route-item_vitro-date_3ojnKSb","vitro-route-item-header":"_route-item_vitro-route-item-header_y69bLwZ","vitro-flex":"_route-item_vitro-flex_3ebkqZ9","vitro-comment":"_route-item_vitro-comment_2K7RwrZ","vitro-status-color":"_route-item_vitro-status-color_VgXzXKD"};
|
|
84404
83478
|
|
|
84405
83479
|
var RouteItem = function RouteItem(props) {
|
|
84406
83480
|
var _useState = React.useState(true),
|
|
@@ -84410,46 +83484,46 @@ var RouteItem = function RouteItem(props) {
|
|
|
84410
83484
|
isShowComment = _useState2[0],
|
|
84411
83485
|
setIsShowComment = _useState2[1];
|
|
84412
83486
|
return React__default.createElement("div", {
|
|
84413
|
-
className: styles$
|
|
83487
|
+
className: styles$1s['vitro-route-item']
|
|
84414
83488
|
}, props.children ? React__default.createElement("button", {
|
|
84415
|
-
className: isExpanded ? styles$
|
|
83489
|
+
className: isExpanded ? styles$1s['vitro-button-collapse'] : styles$1s['vitro-button-expand'],
|
|
84416
83490
|
onClick: function onClick() {
|
|
84417
83491
|
return setIsExpanded(!isExpanded);
|
|
84418
83492
|
}
|
|
84419
83493
|
}) : null, React__default.createElement("div", {
|
|
84420
|
-
className: styles$
|
|
83494
|
+
className: styles$1s['vitro-route-item-content']
|
|
84421
83495
|
}, props.userName && props.status && React__default.createElement("div", {
|
|
84422
|
-
className: styles$
|
|
83496
|
+
className: styles$1s['vitro-route-item-header']
|
|
84423
83497
|
}, React__default.createElement("div", null, React__default.createElement("div", null, React__default.createElement(Avatar, {
|
|
84424
83498
|
userName: props.userName,
|
|
84425
83499
|
image: props.userImage,
|
|
84426
|
-
className: styles$
|
|
83500
|
+
className: styles$1s['vitro-avatar']
|
|
84427
83501
|
}), props.userName), React__default.createElement("div", {
|
|
84428
|
-
className: styles$
|
|
83502
|
+
className: styles$1s['vitro-date']
|
|
84429
83503
|
}, props.date)), React__default.createElement("div", null, React__default.createElement("div", null, props.statusColor && React__default.createElement("div", {
|
|
84430
|
-
className: styles$
|
|
83504
|
+
className: styles$1s['vitro-status-color'],
|
|
84431
83505
|
style: {
|
|
84432
83506
|
background: props.statusColor
|
|
84433
83507
|
}
|
|
84434
83508
|
}), props.status), React__default.createElement("div", null, React__default.createElement("a", {
|
|
84435
83509
|
href: props.itemUrl
|
|
84436
83510
|
}, CTRL.SHARP + props.itemId)))), React__default.createElement("div", {
|
|
84437
|
-
className: styles$
|
|
83511
|
+
className: styles$1s['vitro-route-item-body']
|
|
84438
83512
|
}, React__default.createElement("div", {
|
|
84439
|
-
className: styles$
|
|
83513
|
+
className: styles$1s['vitro-flex']
|
|
84440
83514
|
}, React__default.createElement("span", null, props.name), props.comment && React__default.createElement("button", {
|
|
84441
|
-
className: isShowComment ? styles$
|
|
83515
|
+
className: isShowComment ? styles$1s['vitro-button-hide-comment'] : styles$1s['vitro-button-show-comment'],
|
|
84442
83516
|
onClick: function onClick() {
|
|
84443
83517
|
return setIsShowComment(!isShowComment);
|
|
84444
83518
|
}
|
|
84445
83519
|
})), isShowComment && props.comment && React__default.createElement("div", {
|
|
84446
|
-
className: styles$
|
|
83520
|
+
className: styles$1s['vitro-comment']
|
|
84447
83521
|
}, props.comment)), isExpanded && React__default.createElement("div", {
|
|
84448
|
-
className: styles$
|
|
83522
|
+
className: styles$1s['vitro-route-item-child']
|
|
84449
83523
|
}, props.children)));
|
|
84450
83524
|
};
|
|
84451
83525
|
|
|
84452
|
-
var w$
|
|
83526
|
+
var w$9 = window;
|
|
84453
83527
|
var ID_FILE_VERSION_SELECT$1 = 'fileVersionSelect';
|
|
84454
83528
|
var Viewer$1 = function Viewer(props) {
|
|
84455
83529
|
React.useEffect(function () {
|
|
@@ -84460,11 +83534,11 @@ var Viewer$1 = function Viewer(props) {
|
|
|
84460
83534
|
var init = function init() {
|
|
84461
83535
|
initSearchCriterionList();
|
|
84462
83536
|
var initViewer = function initViewer() {
|
|
84463
|
-
if (w$
|
|
83537
|
+
if (w$9.initBimViewer) {
|
|
84464
83538
|
var context = _extends({}, props.context, {
|
|
84465
83539
|
initIssueList: initIssueList
|
|
84466
83540
|
});
|
|
84467
|
-
w$
|
|
83541
|
+
w$9.initBimViewer(context);
|
|
84468
83542
|
initFileVersionSelect();
|
|
84469
83543
|
} else {
|
|
84470
83544
|
setTimeout(initViewer, 100);
|
|
@@ -84504,7 +83578,7 @@ var Viewer$1 = function Viewer(props) {
|
|
|
84504
83578
|
};
|
|
84505
83579
|
var initSearchCriterionList = function initSearchCriterionList() {
|
|
84506
83580
|
if (props.context.searchCriterionList) {
|
|
84507
|
-
w$
|
|
83581
|
+
w$9.searchCriterionList = getPredefinedSearchCriterionList(props.context.searchCriterionList);
|
|
84508
83582
|
}
|
|
84509
83583
|
};
|
|
84510
83584
|
var getPredefinedSearchCriterionList = function getPredefinedSearchCriterionList(searchCriterionList) {
|
|
@@ -84576,7 +83650,7 @@ var BimViewer = function BimViewer(props) {
|
|
|
84576
83650
|
});
|
|
84577
83651
|
};
|
|
84578
83652
|
|
|
84579
|
-
var styles$
|
|
83653
|
+
var styles$1t = {"vitro-scroll-view":"_scroll-view_vitro-scroll-view_TXQ8QQh"};
|
|
84580
83654
|
|
|
84581
83655
|
var COMPONENT_NAME = 'kendoScrollView';
|
|
84582
83656
|
var CONTENT_HEIGHT = 100;
|
|
@@ -84621,27 +83695,27 @@ var ScrollView = function ScrollView(props) {
|
|
|
84621
83695
|
};
|
|
84622
83696
|
return React__default.createElement("div", {
|
|
84623
83697
|
ref: scrollViewRef,
|
|
84624
|
-
className: styles$
|
|
83698
|
+
className: styles$1t['vitro-scroll-view'] + CTRL.SPACE + (props.className || CTRL.EMPTY),
|
|
84625
83699
|
tabIndex: 0
|
|
84626
83700
|
}, props.itemList.map(function (item) {
|
|
84627
83701
|
return React__default.createElement(item.component, item.props);
|
|
84628
83702
|
}));
|
|
84629
83703
|
};
|
|
84630
83704
|
|
|
84631
|
-
var styles$
|
|
83705
|
+
var styles$1u = {"vitro-image-container":"_page_vitro-image-container_QEXhGHE"};
|
|
84632
83706
|
|
|
84633
83707
|
var Page = function Page(props) {
|
|
84634
83708
|
return React__default.createElement("div", {
|
|
84635
|
-
className: styles$
|
|
83709
|
+
className: styles$1u['vitro-page'],
|
|
84636
83710
|
"data-role": "page"
|
|
84637
83711
|
}, React__default.createElement("div", {
|
|
84638
|
-
className: styles$
|
|
83712
|
+
className: styles$1u['vitro-image-container']
|
|
84639
83713
|
}, React__default.createElement("img", {
|
|
84640
83714
|
src: props.url
|
|
84641
83715
|
})));
|
|
84642
83716
|
};
|
|
84643
83717
|
|
|
84644
|
-
var styles$
|
|
83718
|
+
var styles$1v = {"vitro-image-viewer":"_image-viewer_vitro-image-viewer_19T7Auc","vitro-header":"_image-viewer_vitro-header_1KIbDWk","vitro-button-close":"_image-viewer_vitro-button-close_36TY-iY","vitro-scroll-view":"_image-viewer_vitro-scroll-view_3nuGD7c","vitro-dropdown-button":"_image-viewer_vitro-dropdown-button_2TOT1pw","vitro-pager":"_image-viewer_vitro-pager_1FiaoGR"};
|
|
84645
83719
|
|
|
84646
83720
|
var ImageViewer = React.forwardRef(function (props, ref) {
|
|
84647
83721
|
var _props$itemList$;
|
|
@@ -84699,25 +83773,25 @@ var ImageViewer = React.forwardRef(function (props, ref) {
|
|
|
84699
83773
|
}
|
|
84700
83774
|
};
|
|
84701
83775
|
return React__default.createElement(React__default.Fragment, null, itemList.length ? React__default.createElement("div", {
|
|
84702
|
-
className: styles$
|
|
83776
|
+
className: styles$1v['vitro-image-viewer']
|
|
84703
83777
|
}, React__default.createElement("div", {
|
|
84704
|
-
className: styles$
|
|
83778
|
+
className: styles$1v['vitro-header']
|
|
84705
83779
|
}, actionList.length ? React__default.createElement(DropdownButton, {
|
|
84706
83780
|
itemList: actionList,
|
|
84707
|
-
className: styles$
|
|
83781
|
+
className: styles$1v['vitro-dropdown-button']
|
|
84708
83782
|
}) : null, React__default.createElement("button", {
|
|
84709
|
-
className: styles$
|
|
83783
|
+
className: styles$1v['vitro-button-close'],
|
|
84710
83784
|
onClick: props.onCloseClick
|
|
84711
83785
|
})), React__default.createElement(ScrollView, {
|
|
84712
83786
|
itemList: itemList,
|
|
84713
83787
|
onChange: onChange,
|
|
84714
|
-
className: styles$
|
|
83788
|
+
className: styles$1v['vitro-scroll-view'],
|
|
84715
83789
|
isEnablePager: true,
|
|
84716
83790
|
activePage: props.activePage
|
|
84717
83791
|
})) : null);
|
|
84718
83792
|
});
|
|
84719
83793
|
|
|
84720
|
-
var styles$
|
|
83794
|
+
var styles$1w = {"vitro-page":"_page-layout_vitro-page_GzZ3agH"};
|
|
84721
83795
|
|
|
84722
83796
|
var PageLayout = function PageLayout(props) {
|
|
84723
83797
|
var getClassName = function getClassName(sidebar) {
|
|
@@ -84731,7 +83805,7 @@ var PageLayout = function PageLayout(props) {
|
|
|
84731
83805
|
return CTRL.SPACE + classNameArr.join(CTRL.SPACE);
|
|
84732
83806
|
};
|
|
84733
83807
|
return React__default.createElement("div", {
|
|
84734
|
-
className: styles$
|
|
83808
|
+
className: styles$1w['vitro-page'] + getClassName(props.sidebar) + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY),
|
|
84735
83809
|
id: 'vitro-page'
|
|
84736
83810
|
}, props.children);
|
|
84737
83811
|
};
|
|
@@ -84746,7 +83820,7 @@ var HeaderConstants = {
|
|
|
84746
83820
|
get LOCAL_STORAGE_KEY () { return LOCAL_STORAGE_KEY; }
|
|
84747
83821
|
};
|
|
84748
83822
|
|
|
84749
|
-
var styles$
|
|
83823
|
+
var styles$1x = {"vitro-header":"_header_vitro-header_ta9aLJn"};
|
|
84750
83824
|
|
|
84751
83825
|
var onChangeSidebarMode = function onChangeSidebarMode() {};
|
|
84752
83826
|
var Header = function Header(props) {
|
|
@@ -84789,44 +83863,44 @@ var Header = function Header(props) {
|
|
|
84789
83863
|
}
|
|
84790
83864
|
}, [props.sidebar]);
|
|
84791
83865
|
return React__default.createElement("div", {
|
|
84792
|
-
className: styles$
|
|
83866
|
+
className: styles$1x['vitro-header'],
|
|
84793
83867
|
id: 'vitro-header',
|
|
84794
83868
|
ref: ref
|
|
84795
83869
|
}, props.children);
|
|
84796
83870
|
};
|
|
84797
83871
|
|
|
84798
|
-
var styles$
|
|
83872
|
+
var styles$1y = {"vitro-nav-bar-sidebar-button":"_header-nav-bar-sidebar-button_vitro-nav-bar-sidebar-button_3IZcIOc"};
|
|
84799
83873
|
|
|
84800
83874
|
var SidebarButton = function SidebarButton(props) {
|
|
84801
83875
|
return React__default.createElement("button", {
|
|
84802
|
-
className: styles$
|
|
83876
|
+
className: styles$1y['vitro-nav-bar-sidebar-button'],
|
|
84803
83877
|
onClick: props.onClick
|
|
84804
83878
|
});
|
|
84805
83879
|
};
|
|
84806
83880
|
|
|
84807
|
-
var styles$
|
|
83881
|
+
var styles$1z = {"vitro-nav-bar":"_header-nav-bar_vitro-nav-bar_EuyFIk8"};
|
|
84808
83882
|
|
|
84809
83883
|
var HeaderNavBar = function HeaderNavBar(props) {
|
|
84810
83884
|
return React__default.createElement("nav", {
|
|
84811
|
-
className: styles$
|
|
83885
|
+
className: styles$1z['vitro-nav-bar'] + CTRL.SPACE + ['navbar', 'navbar-expand-lg', 'navbar-light'].join(CTRL.SPACE)
|
|
84812
83886
|
}, React__default.createElement(SidebarButton, {
|
|
84813
83887
|
onClick: onChangeSidebarMode
|
|
84814
83888
|
}), props.children);
|
|
84815
83889
|
};
|
|
84816
83890
|
|
|
84817
|
-
var styles$
|
|
83891
|
+
var styles$1A = {"vitro-nav-service":"_header-nav-service_vitro-nav-service_1-i4GOh"};
|
|
84818
83892
|
|
|
84819
83893
|
var logoStyles = {"vitro-customer-logo":"_header-customer-logo_vitro-customer-logo_2htY4zG"};
|
|
84820
83894
|
|
|
84821
83895
|
var HeaderNavService = function HeaderNavService(props) {
|
|
84822
83896
|
return React__default.createElement("div", {
|
|
84823
|
-
className: styles$
|
|
83897
|
+
className: styles$1A['vitro-nav-service']
|
|
84824
83898
|
}, React__default.createElement("div", {
|
|
84825
83899
|
className: logoStyles['vitro-customer-logo']
|
|
84826
83900
|
}), props.children);
|
|
84827
83901
|
};
|
|
84828
83902
|
|
|
84829
|
-
var styles$
|
|
83903
|
+
var styles$1B = {"vitro-product-title":"_product-title_vitro-product-title_2gZcA5j"};
|
|
84830
83904
|
|
|
84831
83905
|
var ProductTitle = function ProductTitle(props) {
|
|
84832
83906
|
var content = React__default.createElement(React__default.Fragment, null, React__default.createElement(Image, {
|
|
@@ -84848,22 +83922,22 @@ var ProductTitle = function ProductTitle(props) {
|
|
|
84848
83922
|
if (props.href) {
|
|
84849
83923
|
return React__default.createElement("a", {
|
|
84850
83924
|
href: props.href,
|
|
84851
|
-
className: styles$
|
|
83925
|
+
className: styles$1B['vitro-product-title'],
|
|
84852
83926
|
title: props.imageCaption
|
|
84853
83927
|
}, content);
|
|
84854
83928
|
}
|
|
84855
83929
|
return React__default.createElement("a", {
|
|
84856
83930
|
onClick: onClick,
|
|
84857
|
-
className: styles$
|
|
83931
|
+
className: styles$1B['vitro-product-title'],
|
|
84858
83932
|
title: props.imageCaption
|
|
84859
83933
|
}, content);
|
|
84860
83934
|
};
|
|
84861
83935
|
|
|
84862
|
-
var styles$
|
|
83936
|
+
var styles$1C = {"vitro-right":"_right-align-control-group_vitro-right_2vnd6R7"};
|
|
84863
83937
|
|
|
84864
83938
|
var RightAlignControlGroup = function RightAlignControlGroup(props) {
|
|
84865
83939
|
return React__default.createElement("div", {
|
|
84866
|
-
className: styles$
|
|
83940
|
+
className: styles$1C['vitro-right']
|
|
84867
83941
|
}, props.children);
|
|
84868
83942
|
};
|
|
84869
83943
|
|
|
@@ -84873,32 +83947,32 @@ var LeftAlignControlGroup = function LeftAlignControlGroup(props) {
|
|
|
84873
83947
|
}, props.children);
|
|
84874
83948
|
};
|
|
84875
83949
|
|
|
84876
|
-
var styles$
|
|
83950
|
+
var styles$1D = {"vitro-center":"_center-align-control-group_vitro-center_3SHmVN-"};
|
|
84877
83951
|
|
|
84878
83952
|
var CenterAlignControlGroup = function CenterAlignControlGroup(props) {
|
|
84879
83953
|
return React__default.createElement("div", {
|
|
84880
|
-
className: styles$
|
|
83954
|
+
className: styles$1D['vitro-center']
|
|
84881
83955
|
}, props.children);
|
|
84882
83956
|
};
|
|
84883
83957
|
|
|
84884
|
-
var styles$
|
|
83958
|
+
var styles$1E = {"vitro-main":"_main_vitro-main_Kk2JMBF"};
|
|
84885
83959
|
|
|
84886
83960
|
var Main = function Main(props) {
|
|
84887
83961
|
return React__default.createElement("div", {
|
|
84888
|
-
className: styles$
|
|
83962
|
+
className: styles$1E['vitro-main'],
|
|
84889
83963
|
id: 'vitro-main'
|
|
84890
83964
|
}, props.children);
|
|
84891
83965
|
};
|
|
84892
83966
|
|
|
84893
|
-
var styles$
|
|
83967
|
+
var styles$1F = {"vitro-table-view-detail":"_table-view-detail_vitro-table-view-detail_zxwp4XX"};
|
|
84894
83968
|
|
|
84895
83969
|
var TableViewDetail = function TableViewDetail(props) {
|
|
84896
83970
|
return React__default.createElement("div", {
|
|
84897
|
-
className: styles$
|
|
83971
|
+
className: styles$1F['vitro-table-view-detail']
|
|
84898
83972
|
}, props.children);
|
|
84899
83973
|
};
|
|
84900
83974
|
|
|
84901
|
-
var styles$
|
|
83975
|
+
var styles$1G = {"vitro-control":"_radio_vitro-control_1pRRp6K","vitro-radio-content":"_radio_vitro-radio-content_2iXhEPK","vitro-disabled":"_radio_vitro-disabled_2JSpn9-","vitro-label":"_radio_vitro-label_21dXFJN","vitro-left-label":"_radio_vitro-left-label_3BbOjIR"};
|
|
84902
83976
|
|
|
84903
83977
|
var Radio = React.forwardRef(function (props, ref) {
|
|
84904
83978
|
var radioRef = React.useRef(null);
|
|
@@ -84922,14 +83996,14 @@ var Radio = React.forwardRef(function (props, ref) {
|
|
|
84922
83996
|
props.onChange(props.value, e);
|
|
84923
83997
|
}
|
|
84924
83998
|
};
|
|
84925
|
-
var className = styles$
|
|
83999
|
+
var className = styles$1G['vitro-control'] + (props.labelPosition === POSITION.LEFT ? CTRL.SPACE + styles$1G['vitro-left-label'] : CTRL.EMPTY) + CTRL.SPACE + (props.isDisabled ? styles$1G['vitro-disabled'] : CTRL.EMPTY) + CTRL.SPACE + (props.className || CTRL.EMPTY);
|
|
84926
84000
|
return React__default.createElement("div", {
|
|
84927
84001
|
className: className
|
|
84928
84002
|
}, props.labelPosition === POSITION.LEFT && React__default.createElement(Label, {
|
|
84929
84003
|
text: props.label,
|
|
84930
|
-
className: styles$
|
|
84004
|
+
className: styles$1G['vitro-label']
|
|
84931
84005
|
}), React__default.createElement("div", {
|
|
84932
|
-
className: styles$
|
|
84006
|
+
className: styles$1G['vitro-radio-content']
|
|
84933
84007
|
}, React__default.createElement("input", {
|
|
84934
84008
|
ref: radioRef,
|
|
84935
84009
|
type: 'radio',
|
|
@@ -84941,7 +84015,7 @@ var Radio = React.forwardRef(function (props, ref) {
|
|
|
84941
84015
|
onChange: onChange
|
|
84942
84016
|
}), props.labelPosition !== POSITION.LEFT && React__default.createElement(Label, {
|
|
84943
84017
|
text: props.label,
|
|
84944
|
-
className: styles$
|
|
84018
|
+
className: styles$1G['vitro-label']
|
|
84945
84019
|
})));
|
|
84946
84020
|
});
|
|
84947
84021
|
|
|
@@ -84951,7 +84025,7 @@ var LOCALE$c;
|
|
|
84951
84025
|
LOCALE["TOOLTIP_OPEN"] = "app.common.linkInput.tooltip.open";
|
|
84952
84026
|
})(LOCALE$c || (LOCALE$c = {}));
|
|
84953
84027
|
|
|
84954
|
-
var styles$
|
|
84028
|
+
var styles$1H = {"vitro-link-input":"_link-input_vitro-link-input_1FBo8kO","vitro-edit-mode":"_link-input_vitro-edit-mode_2HhUoeO","vitro-control":"_link-input_vitro-control_1MGkxWi","vitro-read-only":"_link-input_vitro-read-only_AG9_cYJ","vitro-edit-button":"_link-input_vitro-edit-button_1PMQnWv","vitro-copy-button":"_link-input_vitro-copy-button_1uv79Zr"};
|
|
84955
84029
|
|
|
84956
84030
|
var LinkInput = React.forwardRef(function (props, ref) {
|
|
84957
84031
|
var _useState = React.useState(false),
|
|
@@ -85028,7 +84102,7 @@ var LinkInput = React.forwardRef(function (props, ref) {
|
|
|
85028
84102
|
}
|
|
85029
84103
|
return value.uri;
|
|
85030
84104
|
};
|
|
85031
|
-
var className = styles$
|
|
84105
|
+
var className = styles$1H['vitro-link-input'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY) + (props.isReadOnly ? CTRL.SPACE + styles$1H['vitro-read-only'] : CTRL.EMPTY) + (isEditMode ? CTRL.SPACE + styles$1H['vitro-edit-mode'] : CTRL.EMPTY);
|
|
85032
84106
|
return React__default.createElement("div", {
|
|
85033
84107
|
className: className
|
|
85034
84108
|
}, React__default.createElement(Tooltip$1, {
|
|
@@ -85047,14 +84121,14 @@ var LinkInput = React.forwardRef(function (props, ref) {
|
|
|
85047
84121
|
isRequired: props.isRequired,
|
|
85048
84122
|
isError: props.isError,
|
|
85049
84123
|
isReadOnly: props.isReadOnly ? true : !isEditMode,
|
|
85050
|
-
className: styles$
|
|
84124
|
+
className: styles$1H['vitro-control']
|
|
85051
84125
|
}))), !props.isReadOnly && !isEditMode && React__default.createElement(ImageButton, {
|
|
85052
84126
|
onClick: onClickEditButton,
|
|
85053
84127
|
tooltipText: localeService.create(LOCALE$c.TOOLTIP_EDIT),
|
|
85054
|
-
className: styles$
|
|
84128
|
+
className: styles$1H['vitro-edit-button']
|
|
85055
84129
|
}), props.isReadOnly && React__default.createElement(CopyButton, {
|
|
85056
84130
|
value: getCopyValue(value),
|
|
85057
|
-
className: styles$
|
|
84131
|
+
className: styles$1H['vitro-copy-button']
|
|
85058
84132
|
}));
|
|
85059
84133
|
});
|
|
85060
84134
|
|
|
@@ -85071,7 +84145,7 @@ var LOCALE$d;
|
|
|
85071
84145
|
LOCALE["SETTING_SYSTEM_INFO"] = "systemInformation";
|
|
85072
84146
|
})(LOCALE$d || (LOCALE$d = {}));
|
|
85073
84147
|
|
|
85074
|
-
var styles$
|
|
84148
|
+
var styles$1I = {"vitro-system-exception-dialog":"_system-exception-dialog_vitro-system-exception-dialog_2UVdbuB","vitro-image":"_system-exception-dialog_vitro-image_XG5PD8h","vitro-exception":"_system-exception-dialog_vitro-exception_2bLGF01","vitro-exception-message":"_system-exception-dialog_vitro-exception-message_2S8ZwQP","vitro-label":"_system-exception-dialog_vitro-label_1Nbb_It","vitro-input":"_system-exception-dialog_vitro-input_262484M","vitro-flex":"_system-exception-dialog_vitro-flex_EHka5VC","vitro-settings-list":"_system-exception-dialog_vitro-settings-list_6N3QiPa","vitro-checkbox":"_system-exception-dialog_vitro-checkbox_354NjHR"};
|
|
85075
84149
|
|
|
85076
84150
|
var settingsList = [LOCALE$d.SETTING_SCREENSHOT, LOCALE$d.SETTING_EXCEPTION_TEXT, LOCALE$d.SETTING_USER_NAME, LOCALE$d.SETTING_SYSTEM_INFO];
|
|
85077
84151
|
var SystemExceptionDialog = function SystemExceptionDialog(props) {
|
|
@@ -85121,52 +84195,52 @@ var SystemExceptionDialog = function SystemExceptionDialog(props) {
|
|
|
85121
84195
|
text: props.labelConfirm || localeService.create(LOCALE$d.ACTION_SEND)
|
|
85122
84196
|
}];
|
|
85123
84197
|
var hiddenContent = React__default.createElement("div", {
|
|
85124
|
-
className: styles$
|
|
84198
|
+
className: styles$1I['vitro-settings-list']
|
|
85125
84199
|
}, settingsList.map(function (name, index) {
|
|
85126
84200
|
return React__default.createElement("div", {
|
|
85127
84201
|
key: index,
|
|
85128
|
-
className: styles$
|
|
84202
|
+
className: styles$1I['vitro-flex']
|
|
85129
84203
|
}, React__default.createElement(Checkbox, {
|
|
85130
84204
|
label: CTRL.EMPTY,
|
|
85131
84205
|
name: name,
|
|
85132
84206
|
value: true,
|
|
85133
84207
|
onChange: onChangeSetting,
|
|
85134
|
-
className: styles$
|
|
84208
|
+
className: styles$1I['vitro-checkbox']
|
|
85135
84209
|
}), getCheckboxLabel(name));
|
|
85136
84210
|
}));
|
|
85137
84211
|
return React__default.createElement(Dialog, {
|
|
85138
84212
|
title: localeService.create(LOCALE$d.TITLE),
|
|
85139
84213
|
subtitle: isMobileView ? CTRL.EMPTY : localeService.create(LOCALE$d.SUBTITLE),
|
|
85140
84214
|
image: React__default.createElement("div", {
|
|
85141
|
-
className: styles$
|
|
84215
|
+
className: styles$1I['vitro-image']
|
|
85142
84216
|
}),
|
|
85143
84217
|
onClose: props.onCancel,
|
|
85144
84218
|
buttonList: buttonList,
|
|
85145
84219
|
labelClose: props.labelClose,
|
|
85146
|
-
className: styles$
|
|
84220
|
+
className: styles$1I['vitro-system-exception-dialog'],
|
|
85147
84221
|
hiddenContent: hiddenContent,
|
|
85148
84222
|
zIndex: props.zIndex,
|
|
85149
84223
|
isDismissible: true
|
|
85150
84224
|
}, React__default.createElement(DialogContent, null, isMobileView && React__default.createElement(Label, {
|
|
85151
84225
|
text: localeService.create(LOCALE$d.SUBTITLE),
|
|
85152
|
-
className: styles$
|
|
84226
|
+
className: styles$1I['vitro-label']
|
|
85153
84227
|
}), React__default.createElement(Input, {
|
|
85154
84228
|
ref: inputRef,
|
|
85155
|
-
className: styles$
|
|
84229
|
+
className: styles$1I['vitro-input'],
|
|
85156
84230
|
isMultiline: true
|
|
85157
84231
|
}), props.message && React__default.createElement("div", {
|
|
85158
|
-
className: styles$
|
|
84232
|
+
className: styles$1I['vitro-exception']
|
|
85159
84233
|
}, React__default.createElement(ScrollBar, null, React__default.createElement("div", {
|
|
85160
84234
|
onCut: blockAction,
|
|
85161
84235
|
onPaste: blockAction,
|
|
85162
84236
|
onBeforeInput: blockAction,
|
|
85163
84237
|
spellCheck: false,
|
|
85164
84238
|
contentEditable: true,
|
|
85165
|
-
className: styles$
|
|
84239
|
+
className: styles$1I['vitro-exception-message']
|
|
85166
84240
|
}, props.message)))));
|
|
85167
84241
|
};
|
|
85168
84242
|
|
|
85169
|
-
var styles$
|
|
84243
|
+
var styles$1J = {"vitro-star-button":"_star-button_vitro-star-button_1_mQ_Gq","vitro-hidden":"_star-button_vitro-hidden_oRKUkzt","vitro-active":"_star-button_vitro-active_2UV6u5C"};
|
|
85170
84244
|
|
|
85171
84245
|
var StarButton = function StarButton(props) {
|
|
85172
84246
|
var _useState = React.useState(props.isActive || false),
|
|
@@ -85183,11 +84257,11 @@ var StarButton = function StarButton(props) {
|
|
|
85183
84257
|
};
|
|
85184
84258
|
return React__default.createElement("button", {
|
|
85185
84259
|
onClick: onClick,
|
|
85186
|
-
className: styles$
|
|
84260
|
+
className: styles$1J['vitro-star-button'] + (isActive ? CTRL.SPACE + styles$1J['vitro-active'] : CTRL.EMPTY) + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
85187
84261
|
});
|
|
85188
84262
|
};
|
|
85189
84263
|
|
|
85190
|
-
var styles$
|
|
84264
|
+
var styles$1K = {"vitro-item":"_site-item_vitro-item_1eSpRGl","vitro-active":"_site-item_vitro-active_1d0nDLb","vitro-name":"_site-item_vitro-name_141-LTn","vitro-image":"_site-item_vitro-image_3wrW9q4","vitro-default-image":"_site-item_vitro-default-image_fcWWNwv","vitro-hidden":"_site-item_vitro-hidden_d6n2ocz","vitro-mobile-view":"_site-item_vitro-mobile-view_3bXuBr6"};
|
|
85191
84265
|
|
|
85192
84266
|
var SiteSelectItem = function SiteSelectItem(props) {
|
|
85193
84267
|
var _useState = React.useState(props.isStarActive || false),
|
|
@@ -85213,7 +84287,7 @@ var SiteSelectItem = function SiteSelectItem(props) {
|
|
|
85213
84287
|
props.onMouseDown(e);
|
|
85214
84288
|
}
|
|
85215
84289
|
};
|
|
85216
|
-
var className = [styles$
|
|
84290
|
+
var className = [styles$1K['vitro-item'], props.className || CTRL.EMPTY, props.isActive ? styles$1K['vitro-active'] : CTRL.EMPTY, props.isMobileView && styles$1K['vitro-mobile-view']].join(CTRL.SPACE);
|
|
85217
84291
|
return React__default.createElement(FlexBox, {
|
|
85218
84292
|
onClick: props.onClick,
|
|
85219
84293
|
onMouseDown: onMouseDown,
|
|
@@ -85222,19 +84296,19 @@ var SiteSelectItem = function SiteSelectItem(props) {
|
|
|
85222
84296
|
className: className
|
|
85223
84297
|
}, props.imageUrl ? React__default.createElement(Image, {
|
|
85224
84298
|
defaultUrl: props.imageUrl,
|
|
85225
|
-
className: styles$
|
|
84299
|
+
className: styles$1K['vitro-image']
|
|
85226
84300
|
}) : React__default.createElement("div", {
|
|
85227
|
-
className: styles$
|
|
84301
|
+
className: styles$1K['vitro-default-image']
|
|
85228
84302
|
}), React__default.createElement("div", {
|
|
85229
|
-
className: styles$
|
|
84303
|
+
className: styles$1K['vitro-name']
|
|
85230
84304
|
}, props.name), props.onStar && React__default.createElement(StarButton, {
|
|
85231
84305
|
onChange: props.onStar,
|
|
85232
84306
|
isActive: props.isStarActive,
|
|
85233
|
-
className: isShowStar || props.isStarActive ? CTRL.EMPTY : styles$
|
|
84307
|
+
className: isShowStar || props.isStarActive ? CTRL.EMPTY : styles$1K['vitro-hidden']
|
|
85234
84308
|
}));
|
|
85235
84309
|
};
|
|
85236
84310
|
|
|
85237
|
-
var styles$
|
|
84311
|
+
var styles$1L = {"vitro-site-select":"_site-select_vitro-site-select_2irDOFZ","vitro-flex":"_site-select_vitro-flex_15EJnju","vitro-expand":"_site-select_vitro-expand_KKfRtc8","vitro-collapse":"_site-select_vitro-collapse_B0ZjAm-","vitro-site-list":"_site-select_vitro-site-list_1Yt4nLj","vitro-title":"_site-select_vitro-title_2vfT7F5","vitro-search-input":"_site-select_vitro-search-input_UMmv9PP","vitro-root-item":"_site-select_vitro-root-item_f1rGcQ4","vitro-slide-up-panel":"_site-select_vitro-slide-up-panel_U3Xn-UQ","vitro-search-value-list":"_site-select_vitro-search-value-list_3XlFSA6"};
|
|
85238
84312
|
|
|
85239
84313
|
var SiteSelect = function SiteSelect(props) {
|
|
85240
84314
|
var _props$activeItem;
|
|
@@ -85338,8 +84412,8 @@ var SiteSelect = function SiteSelect(props) {
|
|
|
85338
84412
|
itemList: visibleItemList,
|
|
85339
84413
|
valueTemplate: getItem,
|
|
85340
84414
|
filterValueTemplate: filterValueTemplate,
|
|
85341
|
-
className: styles$
|
|
85342
|
-
inputClassName: styles$
|
|
84415
|
+
className: styles$1L['vitro-search-value-list'],
|
|
84416
|
+
inputClassName: styles$1L['vitro-search-input']
|
|
85343
84417
|
}, props.rootItem && React__default.createElement(SiteSelectItem, Object.assign({}, props.rootItem, {
|
|
85344
84418
|
isMobileView: isMobileView,
|
|
85345
84419
|
onClick: function onClick() {
|
|
@@ -85348,49 +84422,49 @@ var SiteSelect = function SiteSelect(props) {
|
|
|
85348
84422
|
onMouseDown: function onMouseDown(e) {
|
|
85349
84423
|
return props.rootItem && onItemMouseDown(props.rootItem, e);
|
|
85350
84424
|
},
|
|
85351
|
-
className: styles$
|
|
84425
|
+
className: styles$1L['vitro-root-item']
|
|
85352
84426
|
})), (props.title || props.onStarChange) && React__default.createElement(FlexBox, {
|
|
85353
|
-
className: styles$
|
|
84427
|
+
className: styles$1L['vitro-title']
|
|
85354
84428
|
}, props.title, props.onStarChange && React__default.createElement(StarButton, {
|
|
85355
84429
|
onChange: filterStarActive
|
|
85356
84430
|
})));
|
|
85357
84431
|
return React__default.createElement("div", {
|
|
85358
|
-
className: styles$
|
|
84432
|
+
className: styles$1L['vitro-site-select']
|
|
85359
84433
|
}, React__default.createElement(FlexBox, {
|
|
85360
|
-
className: styles$
|
|
84434
|
+
className: styles$1L['vitro-flex'],
|
|
85361
84435
|
ref: flexBoxRef
|
|
85362
84436
|
}, React__default.createElement("h2", {
|
|
85363
84437
|
onClick: onClick
|
|
85364
84438
|
}, (_props$activeItem = props.activeItem) === null || _props$activeItem === void 0 ? void 0 : _props$activeItem.name), React__default.createElement(ImageButton, {
|
|
85365
|
-
className: isExpanded ? styles$
|
|
84439
|
+
className: isExpanded ? styles$1L['vitro-collapse'] : styles$1L['vitro-expand'],
|
|
85366
84440
|
onClick: onClick
|
|
85367
84441
|
})), isMobileView && React__default.createElement(SlideUpPanel, {
|
|
85368
|
-
className: styles$
|
|
84442
|
+
className: styles$1L['vitro-slide-up-panel'],
|
|
85369
84443
|
isShow: isExpanded,
|
|
85370
84444
|
onClose: function onClose() {
|
|
85371
84445
|
return setIsExpanded(false);
|
|
85372
84446
|
}
|
|
85373
84447
|
}, content), !isMobileView && isExpanded && React__default.createElement("div", {
|
|
85374
|
-
className: styles$
|
|
84448
|
+
className: styles$1L['vitro-site-list'],
|
|
85375
84449
|
ref: listRef
|
|
85376
84450
|
}, content));
|
|
85377
84451
|
};
|
|
85378
84452
|
|
|
85379
|
-
var styles$
|
|
84453
|
+
var styles$1M = {"vitro-bottom":"_bottom-align-control-group_vitro-bottom_3-a5nWD"};
|
|
85380
84454
|
|
|
85381
84455
|
var BottomAlignControlGroup = function BottomAlignControlGroup(props) {
|
|
85382
84456
|
return React__default.createElement("div", {
|
|
85383
|
-
className: styles$
|
|
84457
|
+
className: styles$1M['vitro-bottom']
|
|
85384
84458
|
}, props.children);
|
|
85385
84459
|
};
|
|
85386
84460
|
|
|
85387
|
-
var styles$
|
|
84461
|
+
var styles$1N = {"vitro-linear-progress":"_linear-progress_vitro-linear-progress_1i4VVyb","vitro-bar":"_linear-progress_vitro-bar_2rwmbp3","progress":"_linear-progress_progress_11DTdlB"};
|
|
85388
84462
|
|
|
85389
84463
|
var LinearProgress = function LinearProgress(props) {
|
|
85390
84464
|
return React__default.createElement("div", {
|
|
85391
|
-
className: styles$
|
|
84465
|
+
className: styles$1N['vitro-linear-progress'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
85392
84466
|
}, React__default.createElement("div", {
|
|
85393
|
-
className: styles$
|
|
84467
|
+
className: styles$1N['vitro-bar']
|
|
85394
84468
|
}));
|
|
85395
84469
|
};
|
|
85396
84470
|
|
|
@@ -85524,7 +84598,7 @@ var Thumbnail = function Thumbnail(props) {
|
|
|
85524
84598
|
})), React__default.createElement("span", null, props.name)));
|
|
85525
84599
|
};
|
|
85526
84600
|
|
|
85527
|
-
var w$
|
|
84601
|
+
var w$a = window;
|
|
85528
84602
|
var CSS_CLASS_SIDEBAR_CONTENT$1 = 'sidebar-content';
|
|
85529
84603
|
var ID_FILE_VERSION_SELECT$2 = 'fileVersionSelect';
|
|
85530
84604
|
var ID_SIDEBAR_CONTENT = 'sidebarContent';
|
|
@@ -85539,7 +84613,7 @@ var Viewer$2 = function Viewer(props) {
|
|
|
85539
84613
|
}, [props.context.file]);
|
|
85540
84614
|
var init = function init() {
|
|
85541
84615
|
var initViewer = function initViewer() {
|
|
85542
|
-
if (w$
|
|
84616
|
+
if (w$a.initDxfViewer) {
|
|
85543
84617
|
initSearchCriterionList();
|
|
85544
84618
|
var context = _extends({}, props.context, {
|
|
85545
84619
|
selectIssue: selectIssue,
|
|
@@ -85552,7 +84626,7 @@ var Viewer$2 = function Viewer(props) {
|
|
|
85552
84626
|
initThumbnail: initThumbnail,
|
|
85553
84627
|
searchIssueListEvent: EVENT_SEARCH_ISSUE_LIST$1
|
|
85554
84628
|
});
|
|
85555
|
-
w$
|
|
84629
|
+
w$a.initDxfViewer(context);
|
|
85556
84630
|
initFileVersionSelect();
|
|
85557
84631
|
initThumbnailList(context);
|
|
85558
84632
|
} else {
|
|
@@ -85569,7 +84643,7 @@ var Viewer$2 = function Viewer(props) {
|
|
|
85569
84643
|
};
|
|
85570
84644
|
var initSearchCriterionList = function initSearchCriterionList() {
|
|
85571
84645
|
if (props.context.searchCriterionList) {
|
|
85572
|
-
w$
|
|
84646
|
+
w$a.searchCriterionList = props.context.searchCriterionList;
|
|
85573
84647
|
}
|
|
85574
84648
|
};
|
|
85575
84649
|
var renderIssueList = function renderIssueList(context, sidebar, searchCriterionList) {
|
|
@@ -85715,7 +84789,7 @@ var DxfViewer = function DxfViewer(props) {
|
|
|
85715
84789
|
});
|
|
85716
84790
|
};
|
|
85717
84791
|
|
|
85718
|
-
var styles$
|
|
84792
|
+
var styles$1O = {"vitro-select":"_select_vitro-select_EObExkL","vitro-active":"_select_vitro-active_3I2oZ9Y","vitro-label":"_select_vitro-label_1sD79dR","vitro-list-container":"_select_vitro-list-container_1iaPtG5","vitro-item":"_select_vitro-item_3Q88bWt"};
|
|
85719
84793
|
|
|
85720
84794
|
var Select = function Select(props) {
|
|
85721
84795
|
var _useState = React.useState(null),
|
|
@@ -85760,11 +84834,11 @@ var Select = function Select(props) {
|
|
|
85760
84834
|
};
|
|
85761
84835
|
var defaultItemTemplate = function defaultItemTemplate(props) {
|
|
85762
84836
|
return React__default.createElement("div", {
|
|
85763
|
-
className: styles$
|
|
84837
|
+
className: styles$1O['vitro-item']
|
|
85764
84838
|
}, props.text);
|
|
85765
84839
|
};
|
|
85766
84840
|
var itemTemplate = props.itemTemplate ? props.itemTemplate : defaultItemTemplate;
|
|
85767
|
-
var className = [styles$
|
|
84841
|
+
var className = [styles$1O['vitro-select'], isExpanded ? styles$1O['vitro-active'] : CTRL.EMPTY, props.className || CTRL.EMPTY].join(CTRL.SPACE);
|
|
85768
84842
|
if (!props.itemList.length || !value) {
|
|
85769
84843
|
return null;
|
|
85770
84844
|
}
|
|
@@ -85777,9 +84851,9 @@ var Select = function Select(props) {
|
|
|
85777
84851
|
ref: flexBoxRef
|
|
85778
84852
|
}, props.label && React__default.createElement(Label, {
|
|
85779
84853
|
text: props.label,
|
|
85780
|
-
className: styles$
|
|
84854
|
+
className: styles$1O['vitro-label']
|
|
85781
84855
|
}), React__default.createElement(itemTemplate, value), React__default.createElement("div", {
|
|
85782
|
-
className: styles$
|
|
84856
|
+
className: styles$1O['vitro-list-container'],
|
|
85783
84857
|
ref: listRef
|
|
85784
84858
|
}, React__default.createElement(List$1, {
|
|
85785
84859
|
itemList: props.itemList,
|
|
@@ -85788,7 +84862,7 @@ var Select = function Select(props) {
|
|
|
85788
84862
|
})));
|
|
85789
84863
|
};
|
|
85790
84864
|
|
|
85791
|
-
var styles$
|
|
84865
|
+
var styles$1P = {"vitro-switch":"_switch_vitro-switch_1noCcra","vitro-slider":"_switch_vitro-slider_3wesxda","vitro-active":"_switch_vitro-active_3LJI9TW"};
|
|
85792
84866
|
|
|
85793
84867
|
var Switch = function Switch(props) {
|
|
85794
84868
|
var _useState = React.useState(props.value ? true : false),
|
|
@@ -85802,7 +84876,7 @@ var Switch = function Switch(props) {
|
|
|
85802
84876
|
setValue(!value);
|
|
85803
84877
|
};
|
|
85804
84878
|
return React__default.createElement("label", {
|
|
85805
|
-
className: styles$
|
|
84879
|
+
className: styles$1P['vitro-switch'] + (value ? CTRL.SPACE + styles$1P['vitro-active'] : CTRL.EMPTY)
|
|
85806
84880
|
}, React__default.createElement("input", {
|
|
85807
84881
|
checked: value,
|
|
85808
84882
|
type: 'checkbox',
|
|
@@ -85810,11 +84884,11 @@ var Switch = function Switch(props) {
|
|
|
85810
84884
|
onChange: onChange,
|
|
85811
84885
|
disabled: props.isDisabled
|
|
85812
84886
|
}), React__default.createElement("span", {
|
|
85813
|
-
className: styles$
|
|
84887
|
+
className: styles$1P['vitro-slider']
|
|
85814
84888
|
}));
|
|
85815
84889
|
};
|
|
85816
84890
|
|
|
85817
|
-
var styles$
|
|
84891
|
+
var styles$1Q = {"vitro-editable-list":"_editable-list_vitro-editable-list_2y8aXbO","vitro-header":"_editable-list_vitro-header_3ilVZhe","vitro-create-button":"_editable-list_vitro-create-button_3E1aQDB","vitro-editable-item":"_editable-list_vitro-editable-item_cWSWi1n","vitro-active":"_editable-list_vitro-active_39PUrSM","vitro-button-container":"_editable-list_vitro-button-container_1okfn08","vitro-dropdown-menu-top":"_editable-list_vitro-dropdown-menu-top_1miFWtX","vitro-display-none":"_editable-list_vitro-display-none_1nqU_hD","vitro-mobile":"_editable-list_vitro-mobile_2IDiwft","vitro-editable-item-icon":"_editable-list_vitro-editable-item-icon_29jFw_f","vitro-readonly":"_editable-list_vitro-readonly_2pK9bq5","vitro-editable-item-label":"_editable-list_vitro-editable-item-label_3ViAKDq","vitro-dropdown-button":"_editable-list_vitro-dropdown-button_vPtNQxA","vitro-header-mobile":"_editable-list_vitro-header-mobile_2EMihKc"};
|
|
85818
84892
|
|
|
85819
84893
|
var CSS_CLASS_MOBILE = 'vitro-mobile';
|
|
85820
84894
|
var CSS_DROPDOWN_MENU_TOP = 'vitro-dropdown-menu-top';
|
|
@@ -85830,6 +84904,12 @@ var EditableItem = function EditableItem(props) {
|
|
|
85830
84904
|
var _useState3 = React.useState([]),
|
|
85831
84905
|
dropdownItemList = _useState3[0],
|
|
85832
84906
|
setDropdownItemList = _useState3[1];
|
|
84907
|
+
var dropdownButtonRef = React.useRef(null);
|
|
84908
|
+
React.useEffect(function () {
|
|
84909
|
+
if (props.isActive && props.isDropdownActive && dropdownButtonRef.current) {
|
|
84910
|
+
dropdownButtonRef.current.toggle();
|
|
84911
|
+
}
|
|
84912
|
+
}, [props.isDropdownActive, props.isActive]);
|
|
85833
84913
|
React.useEffect(function () {
|
|
85834
84914
|
setText(props.text);
|
|
85835
84915
|
}, [props.text]);
|
|
@@ -85837,7 +84917,7 @@ var EditableItem = function EditableItem(props) {
|
|
|
85837
84917
|
if (props.isDropdownActive) {
|
|
85838
84918
|
if (props.dropdownItemList) {
|
|
85839
84919
|
setDropdownItemList(props.dropdownItemList);
|
|
85840
|
-
} else if (props.getDropdownItemList) {
|
|
84920
|
+
} else if (props.getDropdownItemList && !dropdownItemList.length) {
|
|
85841
84921
|
props.getDropdownItemList(props.id).then(function (itemList) {
|
|
85842
84922
|
setDropdownItemList(itemList);
|
|
85843
84923
|
});
|
|
@@ -85851,8 +84931,8 @@ var EditableItem = function EditableItem(props) {
|
|
|
85851
84931
|
var onBlur = function onBlur(e) {
|
|
85852
84932
|
props.onBlur(e.target.value);
|
|
85853
84933
|
};
|
|
85854
|
-
var onToggleDropdownButton = function onToggleDropdownButton(
|
|
85855
|
-
e.
|
|
84934
|
+
var onToggleDropdownButton = function onToggleDropdownButton(e, state) {
|
|
84935
|
+
e.stopPropagation();
|
|
85856
84936
|
if (props.onToggleDropdown) {
|
|
85857
84937
|
props.onToggleDropdown(state);
|
|
85858
84938
|
}
|
|
@@ -85862,7 +84942,7 @@ var EditableItem = function EditableItem(props) {
|
|
|
85862
84942
|
var rect = element.getBoundingClientRect();
|
|
85863
84943
|
if (!isDropdownMenuTop(element.classList) || isDropdownMenuTop(element.classList) && rect.y > window.innerHeight) {
|
|
85864
84944
|
if (rect.y > window.innerHeight) {
|
|
85865
|
-
element.classList.add(styles$
|
|
84945
|
+
element.classList.add(styles$1Q[CSS_DROPDOWN_MENU_TOP]);
|
|
85866
84946
|
element.style.transform = "translate(calc(100% - " + (TRANSLATE_X + UNIT.PX) + "), calc(-" + (props.scrollTop + UNIT.PX) + " - 100% - " + (TRANSLATE_Y + UNIT.PX) + "))";
|
|
85867
84947
|
} else {
|
|
85868
84948
|
element.style.transform = "translate(calc(100% - " + (TRANSLATE_X + UNIT.PX) + "), -" + (props.scrollTop + UNIT.PX) + ")";
|
|
@@ -85886,14 +84966,14 @@ var EditableItem = function EditableItem(props) {
|
|
|
85886
84966
|
onMouseLeave: function onMouseLeave() {
|
|
85887
84967
|
return setIsHover(false);
|
|
85888
84968
|
},
|
|
85889
|
-
className: styles$
|
|
84969
|
+
className: styles$1Q['vitro-editable-item'] + (props.isActive ? CTRL.SPACE + styles$1Q['vitro-active'] : CTRL.EMPTY) + (props.isMobileView ? CTRL.SPACE + styles$1Q[CSS_CLASS_MOBILE] : CTRL.EMPTY)
|
|
85890
84970
|
}, props.isMobileView && props.button ? props.button : null, props.isMobileView && props.icon ? React__default.createElement("span", {
|
|
85891
|
-
className: styles$
|
|
84971
|
+
className: styles$1Q['vitro-editable-item-icon']
|
|
85892
84972
|
}, React__default.createElement("img", {
|
|
85893
84973
|
src: props.icon
|
|
85894
84974
|
})) : null, props.isMobileView ? React__default.createElement(Label, {
|
|
85895
84975
|
text: props.text || text,
|
|
85896
|
-
className: styles$
|
|
84976
|
+
className: styles$1Q['vitro-editable-item-label']
|
|
85897
84977
|
}) : props.isEditMode ? React__default.createElement("input", {
|
|
85898
84978
|
value: text,
|
|
85899
84979
|
onChange: onChange,
|
|
@@ -85902,17 +84982,15 @@ var EditableItem = function EditableItem(props) {
|
|
|
85902
84982
|
}) : React__default.createElement(Label, {
|
|
85903
84983
|
text: props.text || text
|
|
85904
84984
|
}), React__default.createElement("div", {
|
|
85905
|
-
className: styles$
|
|
84985
|
+
className: styles$1Q['vitro-button-container']
|
|
85906
84986
|
}, !props.isReadOnly && (props.dropdownItemList || props.getDropdownItemList) ? React__default.createElement(DropdownButton, {
|
|
84987
|
+
ref: dropdownButtonRef,
|
|
85907
84988
|
itemList: dropdownItemList,
|
|
85908
|
-
|
|
85909
|
-
|
|
85910
|
-
|
|
85911
|
-
isFlip: props.isMobileView,
|
|
85912
|
-
popperConfig: props.popperConfig,
|
|
85913
|
-
onGetMenuRef: props.isMobileView ? undefined : initDropdownMenuPosition
|
|
84989
|
+
className: STYLE$1.CONTEXT + (!props.isMobileView ? props.isActive || isHover ? CTRL.EMPTY : CTRL.SPACE + styles$1Q['vitro-display-none'] : CTRL.EMPTY),
|
|
84990
|
+
onGetMenuRef: props.isMobileView ? undefined : initDropdownMenuPosition,
|
|
84991
|
+
onClick: onToggleDropdownButton
|
|
85914
84992
|
}) : null, !props.isMobileView && props.button && React__default.createElement(FlexBox, {
|
|
85915
|
-
className: !props.isReadOnly && (props.isActive || isHover) && (props.dropdownItemList || props.getDropdownItemList) ? styles$
|
|
84993
|
+
className: !props.isReadOnly && (props.isActive || isHover) && (props.dropdownItemList || props.getDropdownItemList) ? styles$1Q['vitro-display-none'] : props.isReadOnly ? styles$1Q['vitro-readonly'] : CTRL.EMPTY
|
|
85916
84994
|
}, props.button)));
|
|
85917
84995
|
};
|
|
85918
84996
|
|
|
@@ -86000,9 +85078,9 @@ var EditableList = function EditableList(props) {
|
|
|
86000
85078
|
}
|
|
86001
85079
|
};
|
|
86002
85080
|
return React__default.createElement(FlexBox, {
|
|
86003
|
-
className: styles$
|
|
85081
|
+
className: styles$1Q[CSS_CLASS_EDITABLE_LIST] + (props.isMobileView ? CTRL.SPACE + styles$1Q[CSS_CLASS_EDITABLE_LIST_MOBILE] : CTRL.EMPTY) + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
86004
85082
|
}, React__default.createElement(FlexBox, {
|
|
86005
|
-
className: styles$
|
|
85083
|
+
className: styles$1Q[CSS_CLASS_HEADER] + (props.isMobileView ? CTRL.SPACE + styles$1Q[CSS_CLASS_HEADER_MOBILE] : CTRL.EMPTY)
|
|
86006
85084
|
}, props.title && React__default.createElement(Heading, {
|
|
86007
85085
|
tag: TAG.H3,
|
|
86008
85086
|
text: props.title
|
|
@@ -86010,7 +85088,7 @@ var EditableList = function EditableList(props) {
|
|
|
86010
85088
|
text: props.createButtonTooltip || CTRL.EMPTY
|
|
86011
85089
|
}, React__default.createElement(ImageButton, {
|
|
86012
85090
|
onClick: onCreate,
|
|
86013
|
-
className: styles$
|
|
85091
|
+
className: styles$1Q[CSS_CLASS_CREATE_BUTTON]
|
|
86014
85092
|
}))), props.isMobileView ? React__default.createElement(React__default.Fragment, null, React__default.createElement(List$1, {
|
|
86015
85093
|
itemList: props.itemList,
|
|
86016
85094
|
itemTemplate: function itemTemplate(item) {
|
|
@@ -86089,7 +85167,7 @@ var EditableList = function EditableList(props) {
|
|
|
86089
85167
|
}))));
|
|
86090
85168
|
};
|
|
86091
85169
|
|
|
86092
|
-
var styles$
|
|
85170
|
+
var styles$1R = {"vitro-reorderable-list":"_reorderable-list_vitro-reorderable-list_3Vinbji","vitro-reorderable-item":"_reorderable-list_vitro-reorderable-item_2gH3muk","vitro-drag-button":"_reorderable-list_vitro-drag-button_2gzxwKx","vitro-dragged-item":"_reorderable-list_vitro-dragged-item_fft3ham","vitro-drop-zone":"_reorderable-list_vitro-drop-zone_15pbLJE","vitro-hidden":"_reorderable-list_vitro-hidden_2ZpMCYZ"};
|
|
86093
85171
|
|
|
86094
85172
|
var ReorderableListContent = function ReorderableListContent(props) {
|
|
86095
85173
|
return React__default.createElement(React__default.Fragment, null, props.draggedIndex !== null && React__default.createElement("div", {
|
|
@@ -86098,7 +85176,7 @@ var ReorderableListContent = function ReorderableListContent(props) {
|
|
|
86098
85176
|
top: props.position[1] + UNIT.PX,
|
|
86099
85177
|
width: props.draggedItemWidth ? props.draggedItemWidth + UNIT.PX : undefined
|
|
86100
85178
|
},
|
|
86101
|
-
className: styles$
|
|
85179
|
+
className: styles$1R['vitro-dragged-item']
|
|
86102
85180
|
}, props.getItem(_extends({}, props.itemList[props.draggedIndex], {
|
|
86103
85181
|
index: -1
|
|
86104
85182
|
}), false)), React__default.createElement("li", {
|
|
@@ -86106,11 +85184,11 @@ var ReorderableListContent = function ReorderableListContent(props) {
|
|
|
86106
85184
|
width: props.draggedItemWidth ? props.draggedItemWidth + UNIT.PX : undefined
|
|
86107
85185
|
}
|
|
86108
85186
|
}, React__default.createElement("div", {
|
|
86109
|
-
className: styles$
|
|
85187
|
+
className: styles$1R['vitro-drop-zone'] + (props.draggedIndex === null || props.activeDropZoneIndex !== 0 ? CTRL.SPACE + styles$1R['vitro-hidden'] : CTRL.EMPTY)
|
|
86110
85188
|
})), props.itemList && props.itemList.map(function (item, index) {
|
|
86111
85189
|
return React__default.createElement("li", {
|
|
86112
85190
|
key: index,
|
|
86113
|
-
className: styles$
|
|
85191
|
+
className: styles$1R['vitro-reorderable-item'] + (props.itemClassName ? CTRL.SPACE + props.itemClassName : CTRL.EMPTY)
|
|
86114
85192
|
}, props.getItem(_extends({}, item, {
|
|
86115
85193
|
index: index
|
|
86116
85194
|
})));
|
|
@@ -86148,13 +85226,13 @@ var ReorderableItem = function ReorderableItem(props) {
|
|
|
86148
85226
|
ref: buttonRef,
|
|
86149
85227
|
onClick: function onClick() {},
|
|
86150
85228
|
onMouseDown: onMouseDown,
|
|
86151
|
-
className: styles$
|
|
85229
|
+
className: styles$1R['vitro-drag-button'],
|
|
86152
85230
|
onTouchStart: onTouchStart
|
|
86153
85231
|
}), props.children), props.isDropAllowed !== false && React__default.createElement("div", {
|
|
86154
85232
|
style: {
|
|
86155
85233
|
width: props.draggedItemWidth ? props.draggedItemWidth - 16 + UNIT.PX : undefined
|
|
86156
85234
|
},
|
|
86157
|
-
className: styles$
|
|
85235
|
+
className: styles$1R['vitro-drop-zone'] + (props.isDropZoneActive ? CTRL.EMPTY : CTRL.SPACE + styles$1R['vitro-hidden'])
|
|
86158
85236
|
}));
|
|
86159
85237
|
};
|
|
86160
85238
|
|
|
@@ -86214,7 +85292,7 @@ var ReorderableList = function ReorderableList(props) {
|
|
|
86214
85292
|
});
|
|
86215
85293
|
React.useEffect(function () {
|
|
86216
85294
|
if (draggedIndex !== null) {
|
|
86217
|
-
var elements = Array.from(document.getElementsByClassName(styles$
|
|
85295
|
+
var elements = Array.from(document.getElementsByClassName(styles$1R['vitro-drop-zone']));
|
|
86218
85296
|
var positions = elements.map(function (e) {
|
|
86219
85297
|
return e.getBoundingClientRect().top - startPosition.current[1];
|
|
86220
85298
|
});
|
|
@@ -86346,7 +85424,7 @@ var ReorderableList = function ReorderableList(props) {
|
|
|
86346
85424
|
});
|
|
86347
85425
|
}
|
|
86348
85426
|
return React__default.createElement("ul", {
|
|
86349
|
-
className: styles$
|
|
85427
|
+
className: styles$1R['vitro-list'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
86350
85428
|
}, React__default.createElement(ReorderableListContent, {
|
|
86351
85429
|
itemList: itemList,
|
|
86352
85430
|
draggedIndex: draggedIndex,
|
|
@@ -86358,7 +85436,7 @@ var ReorderableList = function ReorderableList(props) {
|
|
|
86358
85436
|
}));
|
|
86359
85437
|
};
|
|
86360
85438
|
|
|
86361
|
-
var styles$
|
|
85439
|
+
var styles$1S = {"vitro-checkbox-reorderable-list":"_checkbox-reorderable-list_vitro-checkbox-reorderable-list_3VUoUyI","vitro-reorderable-item":"_checkbox-reorderable-list_vitro-reorderable-item__ZSM4NT","vitro-checkbox":"_checkbox-reorderable-list_vitro-checkbox_3FVD6mG"};
|
|
86362
85440
|
|
|
86363
85441
|
var CheckboxReorderableList = function CheckboxReorderableList(props) {
|
|
86364
85442
|
var _useState = React.useState([]),
|
|
@@ -86459,27 +85537,27 @@ var CheckboxReorderableList = function CheckboxReorderableList(props) {
|
|
|
86459
85537
|
onChange: function onChange(value) {
|
|
86460
85538
|
return _onChange(value, item.id);
|
|
86461
85539
|
},
|
|
86462
|
-
className: styles$
|
|
85540
|
+
className: styles$1S['vitro-checkbox'] + (className ? CTRL.SPACE + className : CTRL.EMPTY)
|
|
86463
85541
|
});
|
|
86464
85542
|
};
|
|
86465
85543
|
return React__default.createElement("ul", {
|
|
86466
85544
|
ref: listRef,
|
|
86467
|
-
className: styles$
|
|
85545
|
+
className: styles$1S['vitro-checkbox-reorderable-list'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
86468
85546
|
}, React__default.createElement(ReorderableList, {
|
|
86469
85547
|
itemList: reorderableItemList,
|
|
86470
85548
|
itemTemplate: getCheckbox,
|
|
86471
85549
|
onChange: onChangePosition,
|
|
86472
|
-
itemClassName: styles$
|
|
85550
|
+
itemClassName: styles$1S['vitro-reorderable-item'],
|
|
86473
85551
|
isCustomContainer: true
|
|
86474
85552
|
}), React__default.createElement(List$1, {
|
|
86475
85553
|
itemList: itemList,
|
|
86476
85554
|
itemTemplate: getCheckbox,
|
|
86477
|
-
itemClassName: styles$
|
|
85555
|
+
itemClassName: styles$1S['vitro-item'],
|
|
86478
85556
|
isCustomContainer: true
|
|
86479
85557
|
}));
|
|
86480
85558
|
};
|
|
86481
85559
|
|
|
86482
|
-
var styles$
|
|
85560
|
+
var styles$1T = {"vitro-pin-button":"_pin-button_vitro-pin-button_3DklgEh","vitro-active":"_pin-button_vitro-active_2PgztSG"};
|
|
86483
85561
|
|
|
86484
85562
|
var PinButton = function PinButton(props) {
|
|
86485
85563
|
var _useState = React.useState(props.isActive || false),
|
|
@@ -86498,11 +85576,11 @@ var PinButton = function PinButton(props) {
|
|
|
86498
85576
|
};
|
|
86499
85577
|
return React__default.createElement(ImageButton, {
|
|
86500
85578
|
onClick: onClick,
|
|
86501
|
-
className: styles$
|
|
85579
|
+
className: styles$1T['vitro-pin-button'] + (isActive ? CTRL.SPACE + styles$1T['vitro-active'] : CTRL.EMPTY) + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
86502
85580
|
});
|
|
86503
85581
|
};
|
|
86504
85582
|
|
|
86505
|
-
var styles$
|
|
85583
|
+
var styles$1U = {"vitro-file-list-dropdown":"_file-list_vitro-file-list-dropdown_1BOOwqC","vitro-file-list-dropdown-item":"_file-list_vitro-file-list-dropdown-item_WtaYXLN","vitro-file-list-dropdown-image":"_file-list_vitro-file-list-dropdown-image_OUWbJBZ","vitro-file-list-dropdown-item-text":"_file-list_vitro-file-list-dropdown-item-text_3U6fMu7"};
|
|
86506
85584
|
|
|
86507
85585
|
var CSS_CLASS_FILE_LIST_DROPDOWN = 'vitro-file-list-dropdown';
|
|
86508
85586
|
var CSS_CLASS_FILE_LIST_DROPDOWN_ITEM = 'vitro-file-list-dropdown-item';
|
|
@@ -86514,16 +85592,16 @@ var FileList = function FileList(props) {
|
|
|
86514
85592
|
props.onOpen(item);
|
|
86515
85593
|
};
|
|
86516
85594
|
return React__default.createElement("div", {
|
|
86517
|
-
className: styles$
|
|
85595
|
+
className: styles$1U[CSS_CLASS_FILE_LIST_DROPDOWN]
|
|
86518
85596
|
}, (_props$itemList = props.itemList) === null || _props$itemList === void 0 ? void 0 : _props$itemList.map(function (item) {
|
|
86519
85597
|
return React__default.createElement("div", {
|
|
86520
|
-
className: styles$
|
|
85598
|
+
className: styles$1U[CSS_CLASS_FILE_LIST_DROPDOWN_ITEM]
|
|
86521
85599
|
}, React__default.createElement("span", {
|
|
86522
|
-
className: styles$
|
|
85600
|
+
className: styles$1U[CSS_CLASS_FILE_LIST_DROPDOWN_ITEM_IMAGE]
|
|
86523
85601
|
}, item.icon ? React__default.createElement("img", {
|
|
86524
85602
|
src: item.icon
|
|
86525
85603
|
}) : CTRL.EMPTY), React__default.createElement("span", {
|
|
86526
|
-
className: styles$
|
|
85604
|
+
className: styles$1U[CSS_CLASS_FILE_LIST_DROPDOWN_ITEM_TEXT]
|
|
86527
85605
|
}, React__default.createElement("a", {
|
|
86528
85606
|
onClick: function onClick() {
|
|
86529
85607
|
return onOpen(item);
|
|
@@ -86537,7 +85615,7 @@ var LOCALE$e;
|
|
|
86537
85615
|
LOCALE["DROPZONE_LABEL"] = "app.common.filePicker.dropZoneLabel";
|
|
86538
85616
|
})(LOCALE$e || (LOCALE$e = {}));
|
|
86539
85617
|
|
|
86540
|
-
var styles$
|
|
85618
|
+
var styles$1V = {"vitro-file-picker":"_file-picker_vitro-file-picker_IV0PnKh","vitro-label":"_file-picker_vitro-label_1KY5QMW","vitro-scrollbar":"_file-picker_vitro-scrollbar_8t0LAkw","vitro-scrollbar-content":"_file-picker_vitro-scrollbar-content_3oLBqOf","vitro-drop-zone":"_file-picker_vitro-drop-zone_2xdKr3Y","vitro-drop-zone-active":"_file-picker_vitro-drop-zone-active_260SDRz","vitro-display-none":"_file-picker_vitro-display-none_RwEJqfN","vitro-file":"_file-picker_vitro-file_29jX2Dc","vitro-file-content":"_file-picker_vitro-file-content_1yV1plf","vitro-buttons-container":"_file-picker_vitro-buttons-container_2iewyGZ","vitro-download-button":"_file-picker_vitro-download-button_oKjHiUO","vitro-delete-button":"_file-picker_vitro-delete-button_29YhyRG"};
|
|
86541
85619
|
|
|
86542
85620
|
var FilePicker = function FilePicker(props) {
|
|
86543
85621
|
var _useState = React.useState(false),
|
|
@@ -86619,33 +85697,33 @@ var FilePicker = function FilePicker(props) {
|
|
|
86619
85697
|
}
|
|
86620
85698
|
};
|
|
86621
85699
|
return React__default.createElement(FlexBox, {
|
|
86622
|
-
className: styles$
|
|
85700
|
+
className: styles$1V['vitro-file-picker'],
|
|
86623
85701
|
ref: ref,
|
|
86624
85702
|
isColumn: true
|
|
86625
85703
|
}, React__default.createElement(Label, {
|
|
86626
85704
|
text: props.label,
|
|
86627
85705
|
isRequired: props.isRequired,
|
|
86628
|
-
className: styles$
|
|
85706
|
+
className: styles$1V['vitro-label']
|
|
86629
85707
|
}), props.value && props.value.length ? React__default.createElement(ScrollBar, {
|
|
86630
|
-
className: styles$
|
|
86631
|
-
contentClassName: styles$
|
|
85708
|
+
className: styles$1V['vitro-scrollbar'],
|
|
85709
|
+
contentClassName: styles$1V['vitro-scrollbar-content']
|
|
86632
85710
|
}, props.value.map(function (item, index) {
|
|
86633
85711
|
return React__default.createElement(File, Object.assign({}, item, {
|
|
86634
85712
|
key: index,
|
|
86635
|
-
className: styles$
|
|
86636
|
-
contentClassName: styles$
|
|
85713
|
+
className: styles$1V['vitro-file'],
|
|
85714
|
+
contentClassName: styles$1V['vitro-file-content']
|
|
86637
85715
|
}), React__default.createElement(FlexBox, {
|
|
86638
|
-
className: styles$
|
|
85716
|
+
className: styles$1V['vitro-buttons-container']
|
|
86639
85717
|
}, props.onDownload && item.isDownloadEnabled !== false && React__default.createElement(ImageButton, {
|
|
86640
85718
|
onClick: function onClick() {
|
|
86641
85719
|
return onDownload(item.id, item.name);
|
|
86642
85720
|
},
|
|
86643
|
-
className: styles$
|
|
85721
|
+
className: styles$1V['vitro-download-button']
|
|
86644
85722
|
}), !props.isReadOnly && props.onDelete && React__default.createElement(ImageButton, {
|
|
86645
85723
|
onClick: function onClick() {
|
|
86646
85724
|
return onDelete(item.id);
|
|
86647
85725
|
},
|
|
86648
|
-
className: styles$
|
|
85726
|
+
className: styles$1V['vitro-delete-button']
|
|
86649
85727
|
})));
|
|
86650
85728
|
})) : null, !props.isReadOnly && React__default.createElement(DropZone, {
|
|
86651
85729
|
onClick: onClick,
|
|
@@ -86653,12 +85731,12 @@ var FilePicker = function FilePicker(props) {
|
|
|
86653
85731
|
onDragOver: onDragOver,
|
|
86654
85732
|
onDragLeave: onDragLeave,
|
|
86655
85733
|
label: localeService.create(LOCALE$e.DROPZONE_LABEL),
|
|
86656
|
-
className: isDropZoneActive ? styles$
|
|
85734
|
+
className: isDropZoneActive ? styles$1V['vitro-drop-zone-active'] : styles$1V['vitro-drop-zone']
|
|
86657
85735
|
}), React__default.createElement("input", {
|
|
86658
85736
|
type: 'file',
|
|
86659
85737
|
onChange: onSelectFile,
|
|
86660
85738
|
ref: fileInputRef,
|
|
86661
|
-
className: styles$
|
|
85739
|
+
className: styles$1V['vitro-display-none'],
|
|
86662
85740
|
multiple: props.isMultiSelect
|
|
86663
85741
|
}), props.errorMessage && React__default.createElement(ErrorMessage, {
|
|
86664
85742
|
text: props.errorMessage
|
|
@@ -86759,7 +85837,7 @@ var TelerikMediaPlayerServiceImpl = /*#__PURE__*/function () {
|
|
|
86759
85837
|
return TelerikMediaPlayerServiceImpl;
|
|
86760
85838
|
}();
|
|
86761
85839
|
|
|
86762
|
-
var styles$
|
|
85840
|
+
var styles$1W = {"vitro-video-viewer":"_video-viewer_vitro-video-viewer_1KHO5IM","vitro-header":"_video-viewer_vitro-header_hwAjLDd","vitro-body":"_video-viewer_vitro-body_124aVK2","vitro-button-close":"_video-viewer_vitro-button-close_TB-QCiO","vitro-player":"_video-viewer_vitro-player_2JJVj_u"};
|
|
86763
85841
|
|
|
86764
85842
|
var VideoViewer = React.forwardRef(function (props, ref) {
|
|
86765
85843
|
var _useState = React.useState(),
|
|
@@ -86815,37 +85893,37 @@ var VideoViewer = React.forwardRef(function (props, ref) {
|
|
|
86815
85893
|
}
|
|
86816
85894
|
};
|
|
86817
85895
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|
|
86818
|
-
className: styles$
|
|
85896
|
+
className: styles$1W['vitro-video-viewer']
|
|
86819
85897
|
}, React__default.createElement("div", {
|
|
86820
|
-
className: styles$
|
|
85898
|
+
className: styles$1W['vitro-header']
|
|
86821
85899
|
}, React__default.createElement("button", {
|
|
86822
|
-
className: styles$
|
|
85900
|
+
className: styles$1W['vitro-button-close'],
|
|
86823
85901
|
onClick: props.onCloseClick
|
|
86824
85902
|
})), React__default.createElement("div", {
|
|
86825
|
-
className: styles$
|
|
85903
|
+
className: styles$1W['vitro-body']
|
|
86826
85904
|
}, React__default.createElement("div", {
|
|
86827
|
-
className: styles$
|
|
85905
|
+
className: styles$1W['vitro-player'],
|
|
86828
85906
|
ref: playerContainerRef
|
|
86829
85907
|
}))));
|
|
86830
85908
|
});
|
|
86831
85909
|
|
|
86832
|
-
var styles$
|
|
85910
|
+
var styles$1X = {"vitro-separator":"_separator_vitro-separator_1TmOy37","vitro-separator-vertical":"_separator_vitro-separator-vertical_2ePwXRL"};
|
|
86833
85911
|
|
|
86834
85912
|
var Separator = function Separator(props) {
|
|
86835
85913
|
return React__default.createElement("div", {
|
|
86836
|
-
className: props.isVertical ? styles$
|
|
85914
|
+
className: props.isVertical ? styles$1X['vitro-separator-vertical'] : styles$1X['vitro-separator']
|
|
86837
85915
|
});
|
|
86838
85916
|
};
|
|
86839
85917
|
|
|
86840
|
-
var styles$
|
|
85918
|
+
var styles$1Y = {"vitro-white-close-button":"_close-button_vitro-white-close-button_cbxJwL7","vitro-close-button":"_close-button_vitro-close-button_1PA2DFD"};
|
|
86841
85919
|
|
|
86842
85920
|
var CloseButton$1 = function CloseButton(props) {
|
|
86843
85921
|
return React__default.createElement(ImageButton, Object.assign({}, props, {
|
|
86844
|
-
className: (props.isWhite ? styles$
|
|
85922
|
+
className: (props.isWhite ? styles$1Y['vitro-white-close-button'] : styles$1Y['vitro-close-button']) + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
86845
85923
|
}));
|
|
86846
85924
|
};
|
|
86847
85925
|
|
|
86848
|
-
var styles$
|
|
85926
|
+
var styles$1Z = {"vitro-field-value-list":"_field-value-list_vitro-field-value-list_3HYOe79","vitro-flex-column":"_field-value-list_vitro-flex-column_esMxbc0","vitro-label":"_field-value-list_vitro-label_512jxv0","vitro-value":"_field-value-list_vitro-value_237ljdz"};
|
|
86849
85927
|
|
|
86850
85928
|
var FieldValueList = function FieldValueList(props) {
|
|
86851
85929
|
var labelList = props.itemList.map(function (item) {
|
|
@@ -86855,78 +85933,162 @@ var FieldValueList = function FieldValueList(props) {
|
|
|
86855
85933
|
return item.value;
|
|
86856
85934
|
});
|
|
86857
85935
|
return React__default.createElement(FlexBox, {
|
|
86858
|
-
className: styles$
|
|
85936
|
+
className: styles$1Z['vitro-field-value-list']
|
|
86859
85937
|
}, React__default.createElement(FlexBox, {
|
|
86860
|
-
className: styles$
|
|
85938
|
+
className: styles$1Z['vitro-flex-column'],
|
|
86861
85939
|
isColumn: true
|
|
86862
85940
|
}, labelList.map(function (label, key) {
|
|
86863
85941
|
return React__default.createElement(Label, {
|
|
86864
85942
|
key: key,
|
|
86865
85943
|
text: label + CTRL.COLON,
|
|
86866
|
-
className: styles$
|
|
85944
|
+
className: styles$1Z['vitro-label']
|
|
86867
85945
|
});
|
|
86868
85946
|
})), React__default.createElement(FlexBox, {
|
|
86869
|
-
className: styles$
|
|
85947
|
+
className: styles$1Z['vitro-flex-column'],
|
|
86870
85948
|
isColumn: true
|
|
86871
85949
|
}, valueList.map(function (value, key) {
|
|
86872
85950
|
return React__default.createElement(Label, {
|
|
86873
85951
|
key: key,
|
|
86874
85952
|
text: value,
|
|
86875
|
-
className: styles$
|
|
85953
|
+
className: styles$1Z['vitro-value']
|
|
86876
85954
|
});
|
|
86877
85955
|
})));
|
|
86878
85956
|
};
|
|
86879
85957
|
|
|
86880
|
-
var styles$
|
|
85958
|
+
var styles$1_ = {"vitro-shared-item-link-form":"_shared-item-link-form_vitro-shared-item-link-form_3EJHrCZ","vitro-image":"_shared-item-link-form_vitro-image_3sxUXMr","vitro-content":"_shared-item-link-form_vitro-content_3N5eaFX","vitro-title":"_shared-item-link-form_vitro-title_3Nz4A4T","vitro-button-group":"_shared-item-link-form_vitro-button-group_6J7aKmY","vitro-link-input":"_shared-item-link-form_vitro-link-input_1I8xMul"};
|
|
86881
85959
|
|
|
86882
85960
|
var SharedItemLinkForm = function SharedItemLinkForm(props) {
|
|
86883
85961
|
return React__default.createElement(FlexBox, {
|
|
86884
|
-
className: styles$
|
|
85962
|
+
className: styles$1_['vitro-shared-item-link-form']
|
|
86885
85963
|
}, React__default.createElement(Image, {
|
|
86886
85964
|
defaultUrl: props.imageUrl,
|
|
86887
|
-
className: styles$
|
|
85965
|
+
className: styles$1_['vitro-image']
|
|
86888
85966
|
}), React__default.createElement(FlexBox, {
|
|
86889
|
-
className: styles$
|
|
85967
|
+
className: styles$1_['vitro-content'],
|
|
86890
85968
|
isColumn: true
|
|
86891
85969
|
}, React__default.createElement(Heading, {
|
|
86892
85970
|
text: props.name,
|
|
86893
85971
|
tag: TAG.H1,
|
|
86894
|
-
className: styles$
|
|
85972
|
+
className: styles$1_['vitro-title']
|
|
86895
85973
|
}), props.fieldValueList && React__default.createElement(FieldValueList, {
|
|
86896
85974
|
itemList: props.fieldValueList
|
|
86897
85975
|
}), React__default.createElement(ButtonGroup, {
|
|
86898
85976
|
itemList: props.buttonList,
|
|
86899
|
-
className: styles$
|
|
85977
|
+
className: styles$1_['vitro-button-group']
|
|
86900
85978
|
}), props.uri && React__default.createElement(LinkInput, {
|
|
86901
85979
|
label: props.linkLabel,
|
|
86902
85980
|
value: {
|
|
86903
85981
|
uri: props.uri
|
|
86904
85982
|
},
|
|
86905
|
-
className: styles$
|
|
85983
|
+
className: styles$1_['vitro-link-input'],
|
|
86906
85984
|
isCopyOrigin: true,
|
|
86907
85985
|
isReadOnly: true
|
|
86908
85986
|
})));
|
|
86909
85987
|
};
|
|
86910
85988
|
|
|
86911
|
-
var styles$
|
|
85989
|
+
var styles$1$ = {"vitro-delete-button":"_delete-button_vitro-delete-button_1rHMYDM","vitro-button":"_delete-button_vitro-button_3x1CMPO","vitro-image":"_delete-button_vitro-image_3suuRwK"};
|
|
86912
85990
|
|
|
86913
85991
|
var DeleteButton = function DeleteButton(props) {
|
|
86914
85992
|
return React__default.createElement("button", {
|
|
86915
|
-
className: styles$
|
|
85993
|
+
className: styles$1$['vitro-delete-button'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY),
|
|
86916
85994
|
onClick: props.onClick
|
|
86917
85995
|
}, React__default.createElement("div", {
|
|
86918
|
-
className: styles$
|
|
85996
|
+
className: styles$1$['vitro-image']
|
|
86919
85997
|
}), props.text && React__default.createElement("div", null, props.text));
|
|
86920
85998
|
};
|
|
86921
85999
|
|
|
86922
|
-
var styles$
|
|
86000
|
+
var styles$20 = {"vitro-placeholder":"_placeholder_vitro-placeholder_4NH7HcF"};
|
|
86923
86001
|
|
|
86924
86002
|
var Placeholder = function Placeholder(props) {
|
|
86925
86003
|
return React__default.createElement(FlexBox, {
|
|
86926
|
-
className: styles$
|
|
86004
|
+
className: styles$20['vitro-placeholder'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
86927
86005
|
}, React__default.createElement(FlexBox, null, React__default.createElement("span", null, props.text)));
|
|
86928
86006
|
};
|
|
86929
86007
|
|
|
86008
|
+
var styles$21 = {"vitro-slide-up-panel":"_slide-up-button_vitro-slide-up-panel_2Poe8de","vitro-scrollbar-content":"_slide-up-button_vitro-scrollbar-content_1MC0emV","vitro-slide-up-button-item":"_slide-up-button_vitro-slide-up-button-item_2IAqXm4","vitro-slide-up-button-dropdown-item":"_slide-up-button_vitro-slide-up-button-dropdown-item_3M28bm7","vitro-image-container":"_slide-up-button_vitro-image-container_3gJ3-PB"};
|
|
86009
|
+
|
|
86010
|
+
var SlideUpButtonItem = function SlideUpButtonItem(props) {
|
|
86011
|
+
var onClick = function onClick(e) {
|
|
86012
|
+
if (props.onClick) {
|
|
86013
|
+
props.onClick(e);
|
|
86014
|
+
} else if (props.href) {
|
|
86015
|
+
var event = new CustomEvent(exports.EVENT.HISTORY_UPDATE, {
|
|
86016
|
+
detail: {
|
|
86017
|
+
pathname: props.href
|
|
86018
|
+
}
|
|
86019
|
+
});
|
|
86020
|
+
window.dispatchEvent(event);
|
|
86021
|
+
}
|
|
86022
|
+
};
|
|
86023
|
+
return React__default.createElement(FlexBox, {
|
|
86024
|
+
onClick: onClick,
|
|
86025
|
+
className: styles$21['vitro-slide-up-button-item']
|
|
86026
|
+
}, (props.isShowImage || props.imageUrl) && React__default.createElement(FlexBox, {
|
|
86027
|
+
className: styles$21['vitro-image-container']
|
|
86028
|
+
}, props.imageUrl && React__default.createElement(Image, {
|
|
86029
|
+
defaultUrl: props.imageUrl,
|
|
86030
|
+
hoverUrl: props.imageHoverUrl
|
|
86031
|
+
})), React__default.createElement("span", null, props.text));
|
|
86032
|
+
};
|
|
86033
|
+
|
|
86034
|
+
var SlideUpButtonDropdownItem = function SlideUpButtonDropdownItem(props) {
|
|
86035
|
+
return React__default.createElement(ExpandControlGroup, {
|
|
86036
|
+
expandText: CTRL.EMPTY,
|
|
86037
|
+
collapseText: CTRL.EMPTY,
|
|
86038
|
+
className: styles$21['vitro-slide-up-button-dropdown-item'],
|
|
86039
|
+
buttonContent: React__default.createElement(FlexBox, null, (props.isShowImage || props.imageUrl) && React__default.createElement(FlexBox, {
|
|
86040
|
+
className: styles$21['vitro-image-container']
|
|
86041
|
+
}, props.imageUrl ? React__default.createElement(Image, {
|
|
86042
|
+
defaultUrl: props.imageUrl,
|
|
86043
|
+
hoverUrl: props.imageHoverUrl
|
|
86044
|
+
}) : null), React__default.createElement("span", null, props.text))
|
|
86045
|
+
}, props.itemList && props.itemList.length !== 0 && props.itemList.map(function (item) {
|
|
86046
|
+
if (item.itemList) {
|
|
86047
|
+
return React__default.createElement(SlideUpButtonDropdownItem, Object.assign({}, item));
|
|
86048
|
+
}
|
|
86049
|
+
return React__default.createElement(SlideUpButtonItem, Object.assign({}, item));
|
|
86050
|
+
}), props.children);
|
|
86051
|
+
};
|
|
86052
|
+
|
|
86053
|
+
var SlideUpButton = function SlideUpButton(props) {
|
|
86054
|
+
var _props$itemList;
|
|
86055
|
+
var _useState = React.useState(false),
|
|
86056
|
+
isExpanded = _useState[0],
|
|
86057
|
+
setIsExpanded = _useState[1];
|
|
86058
|
+
var isShowImage = (_props$itemList = props.itemList) !== null && _props$itemList !== void 0 && _props$itemList.find(function (item) {
|
|
86059
|
+
return item.imageUrl;
|
|
86060
|
+
}) ? true : false;
|
|
86061
|
+
var onClick = function onClick(e) {
|
|
86062
|
+
setIsExpanded(true);
|
|
86063
|
+
if (props.onClick) {
|
|
86064
|
+
props.onClick(e);
|
|
86065
|
+
}
|
|
86066
|
+
};
|
|
86067
|
+
return React__default.createElement(React__default.Fragment, null, React__default.createElement(Button$2, {
|
|
86068
|
+
onClick: onClick,
|
|
86069
|
+
text: CTRL.EMPTY,
|
|
86070
|
+
imageUrl: props.imageUrl,
|
|
86071
|
+
imageHoverUrl: props.imageHoverUrl,
|
|
86072
|
+
className: props.className
|
|
86073
|
+
}), React__default.createElement(SlideUpPanel, {
|
|
86074
|
+
isShow: isExpanded,
|
|
86075
|
+
onClose: function onClose() {
|
|
86076
|
+
return setIsExpanded(false);
|
|
86077
|
+
},
|
|
86078
|
+
className: styles$21['vitro-slide-up-panel']
|
|
86079
|
+
}, React__default.createElement(ScrollBar, {
|
|
86080
|
+
contentClassName: styles$21['vitro-scrollbar-content'],
|
|
86081
|
+
isHideScrollX: true
|
|
86082
|
+
}, props.itemList && props.itemList.length !== 0 && props.itemList.map(function (item) {
|
|
86083
|
+
if (item.itemList) {
|
|
86084
|
+
return React__default.createElement(SlideUpButtonDropdownItem, Object.assign({}, item));
|
|
86085
|
+
}
|
|
86086
|
+
return React__default.createElement(SlideUpButtonItem, Object.assign({}, item, {
|
|
86087
|
+
isShowImage: isShowImage
|
|
86088
|
+
}));
|
|
86089
|
+
}), props.children)));
|
|
86090
|
+
};
|
|
86091
|
+
|
|
86930
86092
|
exports.ACTION_HANDLER = ActionHandlerConstants;
|
|
86931
86093
|
exports.ALERT = AlertConstants;
|
|
86932
86094
|
exports.ActionHandler = ActionHandler;
|
|
@@ -86952,13 +86114,13 @@ exports.CommandMenu = CommandMenu;
|
|
|
86952
86114
|
exports.CommandMenuButton = CommandMenuButton;
|
|
86953
86115
|
exports.CommandMenuDropdownButton = CommandMenuDropdownButton;
|
|
86954
86116
|
exports.CommandMenuLookupPicker = CommandMenuLookupPicker;
|
|
86955
|
-
exports.CommandMenuSubItem = CommandMenuSubItem;
|
|
86956
86117
|
exports.ComponentLoader = ComponentLoader;
|
|
86957
86118
|
exports.ComponentLoaderServiceImpl = ComponentLoaderServiceImpl;
|
|
86958
86119
|
exports.ControlGroup = ControlGroup;
|
|
86959
86120
|
exports.CopyButton = CopyButton;
|
|
86960
86121
|
exports.Criterion = Criterion;
|
|
86961
86122
|
exports.CriterionFieldIterator = CriterionFieldIterator;
|
|
86123
|
+
exports.DROPDOWN_BUTTON = DropdownButtonConstants;
|
|
86962
86124
|
exports.DatePicker = DatePicker;
|
|
86963
86125
|
exports.DeleteButton = DeleteButton;
|
|
86964
86126
|
exports.Dialog = Dialog;
|
|
@@ -86966,6 +86128,8 @@ exports.DialogContent = DialogContent;
|
|
|
86966
86128
|
exports.DialogFooter = DialogFooter;
|
|
86967
86129
|
exports.DropZone = DropZone;
|
|
86968
86130
|
exports.DropdownButton = DropdownButton;
|
|
86131
|
+
exports.DropdownButtonDropdownItem = DropdownButtonDropdownItem;
|
|
86132
|
+
exports.DropdownButtonItem = DropdownButtonItem;
|
|
86969
86133
|
exports.DxfViewer = DxfViewer;
|
|
86970
86134
|
exports.EditableFieldIterator = EditableFieldIterator;
|
|
86971
86135
|
exports.EditableList = EditableList;
|
|
@@ -87034,6 +86198,9 @@ exports.SharedItemLinkForm = SharedItemLinkForm;
|
|
|
87034
86198
|
exports.Sidebar = Sidebar;
|
|
87035
86199
|
exports.SidebarButton = SidebarButton;
|
|
87036
86200
|
exports.SiteSelect = SiteSelect;
|
|
86201
|
+
exports.SlideUpButton = SlideUpButton;
|
|
86202
|
+
exports.SlideUpButtonDropdownItem = SlideUpButtonDropdownItem;
|
|
86203
|
+
exports.SlideUpButtonItem = SlideUpButtonItem;
|
|
87037
86204
|
exports.SlideUpPanel = SlideUpPanel;
|
|
87038
86205
|
exports.Splitter = Splitter;
|
|
87039
86206
|
exports.StarButton = StarButton;
|