@bynder/compact-view 5.2.1 → 5.2.2
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/AccessToken.js +5 -0
- package/AccessToken2.js +176 -0
- package/AccessToken3.js +4 -0
- package/ActiveFilter.js +6 -5
- package/ActiveFilters.js +24 -24
- package/AddMedia.js +1 -1
- package/AdditionalInfo.js +18 -0
- package/Advanced.js +3 -3
- package/App.js +46 -43
- package/Arrow.js +14 -0
- package/AssetCard.js +32 -29
- package/AssetCardMetaproperties.js +14 -13
- package/AssetFilter.js +36 -35
- package/AssetFilterContext.js +3 -3
- package/AssetItem.js +14 -13
- package/AssetList.js +7 -7
- package/AssetTypeItem.js +13 -12
- package/Autocomplete_new.js +41 -37
- package/Axios2.js +136 -0
- package/AxiosError.js +54 -0
- package/AxiosHeaders.js +181 -0
- package/AxiosURLSearchParams.js +33 -0
- package/Badge.js +44 -0
- package/Baloon.js +42 -0
- package/BaseStyles.js +10 -0
- package/Blob.js +4 -0
- package/Box.js +22 -0
- package/Button.js +39 -0
- package/Button.styles.js +40 -0
- package/ButtonAction.js +3 -3
- package/ButtonLegacy.js +48 -0
- package/ButtonLegacy.styles.js +28 -0
- package/CancelToken.js +77 -0
- package/CanceledError.js +11 -0
- package/Card.js +84 -0
- package/CardSkeleton.js +15 -14
- package/Checkbox.js +85 -0
- package/Checkbox.styles.js +2 -2
- package/Checkmark.js +7 -0
- package/Chip.js +70 -40
- package/Chip2.js +42 -0
- package/CollectionCard.js +9 -8
- package/CollectionItem.js +15 -14
- package/CollectionList.js +2 -2
- package/CollectionView.js +2 -2
- package/CollectionsView.js +6 -6
- package/ColorHexInput.js +31 -0
- package/ColorPicker.js +66 -0
- package/ColorPickerSolid.js +20 -0
- package/ColorPickerWithOpacity.js +37 -0
- package/Combobox.js +61 -0
- package/ConcealedAction.js +16 -0
- package/ConnectButton.js +1 -1
- package/Container.js +14 -13
- package/Container2.js +31 -0
- package/Content.js +16 -0
- package/ContextAction.js +18 -17
- package/ContextActionButton.js +29 -0
- package/ControlGroup.js +32 -0
- package/DOMFunctions.js +27 -0
- package/Dat.js +62 -50
- package/DatDropdownItem.js +20 -19
- package/DesignSystemContext.js +4 -4
- package/DesignSystemProvider.js +29 -0
- package/DirectionSelect.js +16 -15
- package/Divider.js +21 -0
- package/DomainInput.js +15 -14
- package/DragRange.js +25 -0
- package/DragSelect.js +11 -11
- package/Dropdown.js +12 -11
- package/Dropdown2.js +169 -0
- package/DropdownContent.js +2 -2
- package/DropdownListItem.js +3 -3
- package/Enum.js +12 -0
- package/ErrorMessage.js +20 -19
- package/FieldSelect.js +4 -4
- package/FilePlaceholder.js +19 -0
- package/FileSelector.js +11 -10
- package/Flex.js +21 -0
- package/FontPicker.js +104 -0
- package/Footer.js +16 -0
- package/Form.js +23 -0
- package/FormData.js +4 -0
- package/Frame.js +64 -0
- package/Group.js +17 -0
- package/Group2.js +26 -0
- package/Header2.js +43 -0
- package/Header22.js +15 -0
- package/HelperText.js +26 -0
- package/HorizontalScroll.js +4 -4
- package/HttpHandler.js +74 -0
- package/HttpResponse.js +85 -0
- package/HttpStatusCode.js +71 -0
- package/IconPlaceholder.js +18 -0
- package/Image.js +19 -0
- package/Images.js +30 -0
- package/Indicator.js +74 -0
- package/InfiniteScroll.js +8 -8
- package/InlineBanner.js +51 -0
- package/Input.js +109 -0
- package/Input.styles.js +71 -0
- package/InputContainer.js +9 -0
- package/InputField.js +74 -0
- package/InputRow.js +18 -0
- package/Inspector.js +34 -0
- package/InteractiveIcon.js +28 -0
- package/InterceptorManager.js +58 -0
- package/Item.js +107 -0
- package/Item2.js +14 -0
- package/Item4.js +190 -0
- package/Label.js +33 -0
- package/LeftArrow.js +3 -3
- package/List.js +25 -0
- package/ListItem.js +11 -0
- package/ListItem2.js +58 -0
- package/ListItem4.js +37 -0
- package/MetapropertyFilterContent.js +2 -2
- package/MetapropertyOption.js +2 -3
- package/Middleware.js +49 -0
- package/Middleware2.js +49 -0
- package/Modal.js +2 -2
- package/Modal2.js +31 -0
- package/ModalBase.js +117 -0
- package/ModalBase.styles.js +75 -0
- package/ModalConfirmation.js +8 -0
- package/NoResults.js +16 -15
- package/OffsetContext.js +9 -0
- package/Oops.js +1 -1
- package/OpacityInput.js +17 -0
- package/Option_new.js +19 -18
- package/Overlay.js +35 -0
- package/Parser.js +131 -0
- package/Prefixer.js +187 -0
- package/Radio.js +78 -0
- package/RadioGroup.js +25 -0
- package/RangeInput.js +41 -0
- package/RefreshingSpinner.js +3 -3
- package/ReportModal.js +16 -14
- package/RequestHandler.js +119 -0
- package/RightArrow.js +4 -4
- package/Row.js +16 -0
- package/SearchInput.js +15 -15
- package/SearchInput2.js +46 -0
- package/SectionTitle.js +17 -0
- package/Select.js +49 -0
- package/SelectButtonText.js +16 -0
- package/SelectedItemContainer.js +11 -10
- package/SelectedItems.js +2 -2
- package/SelectionFooter.js +8 -7
- package/Serializer.js +27 -0
- package/ShadowRootInternal.js +17 -17
- package/Sidebar.js +17 -0
- package/Skeleton.js +6 -6
- package/Slider.constants.js +6 -0
- package/Slider.js +128 -0
- package/SmartFilterContent.js +2 -2
- package/SmartFilterSelect_new.js +2 -2
- package/Smartfilters_new.js +53 -50
- package/Spinner.js +2 -2
- package/Spinner2.js +15 -0
- package/StatefulAssetList.js +15 -15
- package/Stats.js +16 -0
- package/StatsItem.js +23 -0
- package/Status.js +32 -0
- package/Switch.js +82 -0
- package/SwitchNLS.js +26 -23
- package/Tabs2.js +10 -0
- package/TagItem.js +8 -8
- package/Tags.js +9 -9
- package/Text2.js +11 -0
- package/Text22.js +18 -0
- package/Text4.js +18 -0
- package/Textarea.js +92 -0
- package/Theming.js +4 -4
- package/Thumb.js +28 -0
- package/Thumbnail.js +91 -0
- package/Tokenizer.js +147 -0
- package/Toolbar.js +13 -12
- package/Tooltip.js +2 -2
- package/Tooltip2.js +111 -0
- package/TruncatedText.js +34 -0
- package/URLSearchParams.js +5 -0
- package/Utility.js +56 -0
- package/ViewSwitch.js +8 -7
- package/_check_private_redeclaration.js +7 -0
- package/_class_apply_descriptor_get.js +6 -0
- package/_class_apply_descriptor_set.js +11 -0
- package/_class_extract_field_descriptor.js +7 -0
- package/_class_private_field_get.js +9 -0
- package/_class_private_field_init.js +7 -0
- package/_class_private_field_set.js +9 -0
- package/_commonjsHelpers.js +6 -0
- package/adapters.js +53 -0
- package/api.js +25 -0
- package/api2.js +40 -0
- package/api3.js +406 -0
- package/applyScopeDataToEvent.js +83 -0
- package/applyScopeDataToEvent2.js +55 -0
- package/asset.type.js +9 -9
- package/autocomplete.js +2 -2
- package/axios.js +46 -0
- package/base.js +57 -0
- package/baseclient.js +498 -0
- package/bind.js +8 -0
- package/browser.js +44 -0
- package/buildFullPath.js +9 -0
- package/buildURL.js +23 -0
- package/bundle.esm.js +81 -0
- package/calculateContainerMaxHeight.js +12 -0
- package/calculateNodeHeight.js +35 -0
- package/carrier.js +13 -0
- package/chain.js +8 -0
- package/checkGlobals.js +13 -0
- package/checks.js +178 -0
- package/chunk-6HYIRFX2.js +1 -0
- package/cleanUrl.js +11 -0
- package/client.js +76 -0
- package/clientreport.js +15 -0
- package/clsx.js +17 -0
- package/colorTransforms.js +12 -0
- package/combineMetaproperties.js +1 -1
- package/combineURLs.js +6 -0
- package/composeSignals.js +30 -0
- package/constants.js +2 -12
- package/constants2.js +82 -0
- package/constants3.js +14 -0
- package/constants4.js +8 -0
- package/constants5.js +4 -0
- package/constants6.js +4 -0
- package/context.js +12 -0
- package/context10.js +12 -0
- package/context2.js +9 -0
- package/context3.js +12 -0
- package/context6.js +5 -0
- package/cookieStore.js +116 -0
- package/cookies.js +32 -0
- package/core.js +42 -0
- package/currentScopes.js +9 -0
- package/data.js +4 -0
- package/de_DE.json.js +18 -0
- package/debug-build.js +4 -0
- package/debug-build2.js +4 -0
- package/debug-build3.js +4 -0
- package/debug-build4.js +4 -0
- package/debug-build5.js +4 -0
- package/debug-build6.js +4 -0
- package/decorators.js +37 -0
- package/defaultScopes.js +12 -0
- package/devUtils.js +20 -0
- package/dispatchRequest.js +31 -0
- package/doc.js +26 -0
- package/domHelpers.js +15 -0
- package/dsn.js +54 -0
- package/dynamicSamplingContext.js +34 -0
- package/dynamicSamplingContext2.js +34 -0
- package/emotion-unitless.esm.js +52 -0
- package/en_US.json.js +23 -0
- package/englishText-12403056.js +6 -0
- package/env.js +6 -0
- package/envelope.js +113 -0
- package/envelope2.js +23 -0
- package/envelope3.js +24 -0
- package/error.js +9 -0
- package/errors.js +33 -0
- package/errors2.js +55 -0
- package/es_ES.json.js +18 -0
- package/es_MX.json.js +18 -0
- package/eventProcessors.js +27 -0
- package/eventProcessors2.js +23 -0
- package/eventbuilder.js +128 -0
- package/exports.js +11 -0
- package/exports2.js +16 -0
- package/exports3.js +8 -0
- package/fetch.js +44 -0
- package/fetch2.js +141 -0
- package/filterAssets.js +1 -1
- package/fixFontSpaceInUrl.js +8 -0
- package/focusWithoutScrolling.js +45 -0
- package/forceHiddenStyles.js +19 -0
- package/formDataToJSON.js +31 -0
- package/fr_FR.json.js +18 -0
- package/getAbsoluteUrl.js +13 -0
- package/getAsset.js +1 -1
- package/getAssetCounts.js +1 -1
- package/getAssets.js +2 -2
- package/getCallFrame.js +12 -0
- package/getCollections.js +1 -1
- package/getFilterOptions.js +1 -1
- package/getFilters.js +1 -1
- package/getFilters_new.js +1 -1
- package/getRequestCookies.js +40 -0
- package/getRootSpan.js +6 -0
- package/getRootSpan2.js +6 -0
- package/getSimilarityAssets.js +1 -1
- package/getSizingData.js +45 -0
- package/getStatusCodeColor.js +6 -0
- package/getThumbPosition.js +6 -0
- package/getTimestamp.js +7 -0
- package/getUseLayerOptions.js +49 -0
- package/handlers.js +92 -6
- package/handlers2.js +6 -0
- package/helpers.js +3 -4
- package/helpers2.js +6 -0
- package/hexFromPercentage.js +7 -0
- package/http.js +17 -0
- package/hub.js +446 -0
- package/hub2.js +442 -0
- package/immer.js +472 -0
- package/import.js +7 -0
- package/index-esm.js +10781 -0
- package/index-esm2.js +138 -0
- package/index-esm3.js +131 -0
- package/index.browser.js +11 -0
- package/index.module.js +57 -0
- package/index.module2.js +72 -0
- package/index.module3.js +57 -0
- package/index10.js +20 -0
- package/index102.js +273 -0
- package/index11.js +18 -0
- package/index112.js +29 -0
- package/index12.js +38 -0
- package/index13.js +2432 -0
- package/index14.js +558 -0
- package/index15.js +58 -0
- package/index16.js +4 -0
- package/index17.js +89 -0
- package/index18.js +9 -0
- package/index19.js +62 -0
- package/index20.js +15 -0
- package/index21.js +11 -0
- package/index22.js +42 -0
- package/index23.js +9 -0
- package/index24.js +10 -0
- package/index25.js +7 -0
- package/index26.js +12 -0
- package/index27.js +11 -0
- package/index28.js +639 -0
- package/index29.js +76 -0
- package/index3.js +5 -53
- package/index30.js +7 -0
- package/index31.js +22 -0
- package/index32.js +2 -0
- package/index33.js +7 -0
- package/index34.js +20 -0
- package/index35.js +8 -0
- package/index36.js +4 -0
- package/index37.js +13 -0
- package/index38.js +13 -0
- package/index39.js +15 -0
- package/index4.js +1684 -17
- package/index40.js +13 -0
- package/index41.js +21 -0
- package/index42.js +66 -0
- package/index43.js +8 -0
- package/index44.js +57 -0
- package/index45.js +69 -0
- package/index46.js +33 -0
- package/index47.js +13 -0
- package/index48.js +123 -0
- package/index49.js +88 -0
- package/index5.js +27 -0
- package/index50.js +10 -0
- package/index51.js +13 -0
- package/index52.js +16 -0
- package/index53.js +16 -0
- package/index54.js +9 -0
- package/index55.js +9 -0
- package/index56.js +17 -0
- package/index57.js +31 -0
- package/index58.js +18 -0
- package/index6.js +315 -0
- package/index7.js +4 -0
- package/index72.js +228 -0
- package/index8.js +5051 -0
- package/index82.js +8 -0
- package/index9.js +55 -0
- package/index92.js +12 -0
- package/integration.js +38 -0
- package/is.js +77 -0
- package/is2.js +14 -0
- package/is3.js +14 -0
- package/isAbsoluteURL.js +6 -0
- package/isAbsoluteUrl2.js +6 -0
- package/isAxiosError.js +7 -0
- package/isCancel.js +6 -0
- package/isIterable.js +6 -0
- package/isStringEqual.js +6 -0
- package/isURLSameOrigin.js +8 -0
- package/isValidHexValue.js +6 -0
- package/isVirtualEvent.js +11 -0
- package/iso.js +38 -0
- package/it_IT.json.js +18 -0
- package/itemContext.js +5 -0
- package/ja_JP.json.js +18 -0
- package/ko_KR.json.js +18 -0
- package/localStorageHelper.js +32 -0
- package/localStorageHelper2.js +4 -0
- package/localization.js +46 -0
- package/logger2.js +56 -0
- package/logger3.js +56 -0
- package/logger4.js +56 -0
- package/makeHexWithOpacity.js +12 -0
- package/makeInternalTokens.js +22 -0
- package/matchRequestUrl.js +23 -0
- package/memo.js +25 -0
- package/merge.js +13 -0
- package/mergeConfig.js +70 -0
- package/mergeProps.js +22 -0
- package/mergeRefs.js +9 -0
- package/middleware.js +177 -0
- package/middleware2.js +177 -0
- package/misc.js +58 -0
- package/misc2.js +28 -0
- package/misc3.js +24 -0
- package/nl_NL.json.js +18 -0
- package/normalize.js +97 -0
- package/normalizePath.js +11 -0
- package/normalizeResponse.js +1 -1
- package/normalizeRows.js +10 -0
- package/notify.js +52 -0
- package/null.js +4 -0
- package/object.js +110 -0
- package/object2.js +39 -0
- package/object3.js +17 -0
- package/opacityPercentageFromHex.js +9 -0
- package/openLink.js +27 -0
- package/package.json +1 -1
- package/packageVersion.js +4 -0
- package/parse.js +9 -0
- package/parse2.js +44 -0
- package/parseHeaders.js +30 -0
- package/parseProtocol.js +7 -0
- package/pl_PL.json.js +18 -0
- package/platform.js +42 -0
- package/prepareEvent.js +141 -0
- package/prepareEvent2.js +5 -0
- package/prepareEvent3.js +5 -0
- package/progressEventReducer.js +35 -0
- package/promisebuffer.js +44 -0
- package/propagationContext.js +11 -0
- package/pt_BR.json.js +18 -0
- package/ratelimit.js +37 -0
- package/react.js +19 -0
- package/react2.js +19 -0
- package/regexes.js +51 -0
- package/registries.js +41 -0
- package/resolveConfig.js +33 -0
- package/ru_RU.json.js +18 -0
- package/runAfterTransition.js +35 -0
- package/schemas.js +368 -0
- package/schemas2.js +691 -0
- package/scope.js +412 -0
- package/scope2.js +407 -0
- package/scope3.js +348 -0
- package/sdk-DhxX43BH.js +4813 -0
- package/sdkMetadata.js +15 -0
- package/serializeRequest.js +12 -0
- package/serializeResponse.js +14 -0
- package/session.js +57 -0
- package/session2.js +57 -0
- package/session3.js +16 -0
- package/settle.js +14 -0
- package/shadowdom.js +13 -0
- package/shadowdom2.js +13 -0
- package/spanOnScope.js +12 -0
- package/spanUtils.js +31 -0
- package/spanUtils2.js +31 -0
- package/speedometer.js +19 -0
- package/spread.js +8 -0
- package/stack-parsers.js +48 -0
- package/stackStrategy.js +98 -0
- package/stacktrace.js +49 -0
- package/state.js +106 -0
- package/store/useDatStore.d.ts +11 -8
- package/string.js +6 -0
- package/styled-components.browser.esm.js +530 -0
- package/styles.js +55 -0
- package/styles2.js +17 -0
- package/supports.js +6 -0
- package/syncpromise.js +121 -0
- package/syncpromise2.js +109 -0
- package/textSelection.js +33 -0
- package/textStyles.js +20 -0
- package/theme.js +238 -0
- package/themeContainers.js +20 -0
- package/themes3.js +26 -0
- package/throttle.js +15 -0
- package/time.js +24 -0
- package/time2.js +24 -0
- package/time3.js +24 -0
- package/toFormData.js +85 -0
- package/toPublicUrl.js +9 -0
- package/toURLEncodedForm.js +13 -0
- package/token.js +236 -0
- package/tokenExpirationHelper.js +48 -0
- package/tokenExpirationHelper2.js +4 -0
- package/tokensAndThemes.js +92 -0
- package/tr_TR.json.js +18 -0
- package/trackStream.js +63 -0
- package/transformData.js +13 -0
- package/transitional.js +8 -0
- package/trimMetapropertyValue.js +1 -1
- package/tslib.es6.js +18 -0
- package/typeof.js +11 -0
- package/urlHelper.js +15 -0
- package/urlHelper2.js +4 -0
- package/useAutoHeight.js +25 -0
- package/useDatStore.js +31 -27
- package/useEffectEvent.js +18 -0
- package/useFocus.js +30 -0
- package/useFocusRing.js +34 -0
- package/useFocusVisible.js +92 -0
- package/useFocusWithin.js +57 -0
- package/useFonts.js +118 -0
- package/useGlobalListeners.js +34 -0
- package/useGroupContext.js +10 -0
- package/useHover.js +79 -0
- package/useId.js +8 -0
- package/useId2.js +17 -0
- package/useKeyDown.js +14 -0
- package/useLayoutEffect.js +6 -0
- package/useOrderingStore.js +6 -6
- package/usePress.js +359 -0
- package/useRouterStore.js +6 -6
- package/useScrollHighlightedIntoView.js +24 -0
- package/useSearchStore.js +5 -5
- package/useSimilaritySearchStore.js +6 -6
- package/useSyncRef.js +12 -0
- package/useTranslate.js +13 -0
- package/useZIndex.js +9 -0
- package/userfeedback.js +28 -0
- package/util.js +265 -0
- package/utils/fixFontSpaceInUrl.d.ts +1 -0
- package/utils.js +26 -44
- package/utils2.js +43 -45
- package/utils3.js +50 -0
- package/utils4.js +12 -0
- package/utils5.js +71 -0
- package/utils6.js +222 -0
- package/utils7.js +9 -0
- package/utils8.js +70 -0
- package/validator.js +54 -0
- package/vanilla.js +14 -0
- package/vanilla2.js +14 -0
- package/version.js +4 -0
- package/version2.js +4 -0
- package/version3.js +4 -0
- package/versionContext.js +9 -0
- package/versions.js +8 -0
- package/worldwide.js +19 -0
- package/worldwide2.js +15 -0
- package/worldwide3.js +10 -0
- package/xhr.js +71 -0
- package/zh_CN.json.js +18 -0
- package/zh_TW.json.js +18 -0
package/AccessToken.js
ADDED
package/AccessToken2.js
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { __exports as a } from "./AccessToken3.js";
|
|
2
|
+
import { __require as x } from "./index15.js";
|
|
3
|
+
import { __require as O } from "./localStorageHelper.js";
|
|
4
|
+
import { __require as E } from "./tokenExpirationHelper.js";
|
|
5
|
+
import { __require as H } from "./urlHelper.js";
|
|
6
|
+
var T;
|
|
7
|
+
function J() {
|
|
8
|
+
return T ? a : (T = 1, (function(f) {
|
|
9
|
+
var p = a && a.__createBinding || (Object.create ? (function(i, e, t, u) {
|
|
10
|
+
u === void 0 && (u = t);
|
|
11
|
+
var c = Object.getOwnPropertyDescriptor(e, t);
|
|
12
|
+
(!c || ("get" in c ? !e.__esModule : c.writable || c.configurable)) && (c = { enumerable: !0, get: function() {
|
|
13
|
+
return e[t];
|
|
14
|
+
} }), Object.defineProperty(i, u, c);
|
|
15
|
+
}) : (function(i, e, t, u) {
|
|
16
|
+
u === void 0 && (u = t), i[u] = e[t];
|
|
17
|
+
})), y = a && a.__setModuleDefault || (Object.create ? (function(i, e) {
|
|
18
|
+
Object.defineProperty(i, "default", { enumerable: !0, value: e });
|
|
19
|
+
}) : function(i, e) {
|
|
20
|
+
i.default = e;
|
|
21
|
+
}), g = a && a.__importStar || function(i) {
|
|
22
|
+
if (i && i.__esModule) return i;
|
|
23
|
+
var e = {};
|
|
24
|
+
if (i != null) for (var t in i) t !== "default" && Object.prototype.hasOwnProperty.call(i, t) && p(e, i, t);
|
|
25
|
+
return y(e, i), e;
|
|
26
|
+
}, w = a && a.__awaiter || function(i, e, t, u) {
|
|
27
|
+
function c(r) {
|
|
28
|
+
return r instanceof t ? r : new t(function(o) {
|
|
29
|
+
o(r);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
return new (t || (t = Promise))(function(r, o) {
|
|
33
|
+
function _(s) {
|
|
34
|
+
try {
|
|
35
|
+
n(u.next(s));
|
|
36
|
+
} catch (b) {
|
|
37
|
+
o(b);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
function v(s) {
|
|
41
|
+
try {
|
|
42
|
+
n(u.throw(s));
|
|
43
|
+
} catch (b) {
|
|
44
|
+
o(b);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
function n(s) {
|
|
48
|
+
s.done ? r(s.value) : c(s.value).then(_, v);
|
|
49
|
+
}
|
|
50
|
+
n((u = u.apply(i, e || [])).next());
|
|
51
|
+
});
|
|
52
|
+
}, h = a && a.__generator || function(i, e) {
|
|
53
|
+
var t = { label: 0, sent: function() {
|
|
54
|
+
if (r[0] & 1) throw r[1];
|
|
55
|
+
return r[1];
|
|
56
|
+
}, trys: [], ops: [] }, u, c, r, o;
|
|
57
|
+
return o = { next: _(0), throw: _(1), return: _(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
|
|
58
|
+
return this;
|
|
59
|
+
}), o;
|
|
60
|
+
function _(n) {
|
|
61
|
+
return function(s) {
|
|
62
|
+
return v([n, s]);
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function v(n) {
|
|
66
|
+
if (u) throw new TypeError("Generator is already executing.");
|
|
67
|
+
for (; o && (o = 0, n[0] && (t = 0)), t; ) try {
|
|
68
|
+
if (u = 1, c && (r = n[0] & 2 ? c.return : n[0] ? c.throw || ((r = c.return) && r.call(c), 0) : c.next) && !(r = r.call(c, n[1])).done) return r;
|
|
69
|
+
switch (c = 0, r && (n = [n[0] & 2, r.value]), n[0]) {
|
|
70
|
+
case 0:
|
|
71
|
+
case 1:
|
|
72
|
+
r = n;
|
|
73
|
+
break;
|
|
74
|
+
case 4:
|
|
75
|
+
return t.label++, { value: n[1], done: !1 };
|
|
76
|
+
case 5:
|
|
77
|
+
t.label++, c = n[1], n = [0];
|
|
78
|
+
continue;
|
|
79
|
+
case 7:
|
|
80
|
+
n = t.ops.pop(), t.trys.pop();
|
|
81
|
+
continue;
|
|
82
|
+
default:
|
|
83
|
+
if (r = t.trys, !(r = r.length > 0 && r[r.length - 1]) && (n[0] === 6 || n[0] === 2)) {
|
|
84
|
+
t = 0;
|
|
85
|
+
continue;
|
|
86
|
+
}
|
|
87
|
+
if (n[0] === 3 && (!r || n[1] > r[0] && n[1] < r[3])) {
|
|
88
|
+
t.label = n[1];
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
if (n[0] === 6 && t.label < r[1]) {
|
|
92
|
+
t.label = r[1], r = n;
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
if (r && t.label < r[2]) {
|
|
96
|
+
t.label = r[2], t.ops.push(n);
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
r[2] && t.ops.pop(), t.trys.pop();
|
|
100
|
+
continue;
|
|
101
|
+
}
|
|
102
|
+
n = e.call(i, t);
|
|
103
|
+
} catch (s) {
|
|
104
|
+
n = [6, s], c = 0;
|
|
105
|
+
} finally {
|
|
106
|
+
u = r = 0;
|
|
107
|
+
}
|
|
108
|
+
if (n[0] & 5) throw n[1];
|
|
109
|
+
return { value: n[0] ? n[1] : void 0, done: !0 };
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
Object.defineProperty(f, "__esModule", { value: !0 }), f.invalidateAccessToken = void 0, f.getJWT = A, f.decodeJWT = q;
|
|
113
|
+
var j = x(), l = g(O()), d = E();
|
|
114
|
+
Object.defineProperty(f, "invalidateAccessToken", { enumerable: !0, get: function() {
|
|
115
|
+
return d.invalidateAccessToken;
|
|
116
|
+
} });
|
|
117
|
+
var k = H();
|
|
118
|
+
function m(i) {
|
|
119
|
+
return w(this, void 0, void 0, function() {
|
|
120
|
+
var e;
|
|
121
|
+
return h(this, function(t) {
|
|
122
|
+
switch (t.label) {
|
|
123
|
+
case 0:
|
|
124
|
+
return [4, fetch((0, k.getIdpAccessToken)(i), {
|
|
125
|
+
credentials: "include"
|
|
126
|
+
}).then(function(u) {
|
|
127
|
+
return u.json();
|
|
128
|
+
})];
|
|
129
|
+
case 1:
|
|
130
|
+
if (e = t.sent(), !e || !e.access_token)
|
|
131
|
+
throw new Error("Could not retrieve access token");
|
|
132
|
+
return [2, {
|
|
133
|
+
jwt: e.access_token,
|
|
134
|
+
expiryTimestamp: e.expires_in
|
|
135
|
+
}];
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
function A(i) {
|
|
141
|
+
return w(this, void 0, void 0, function() {
|
|
142
|
+
var e, t, u, c;
|
|
143
|
+
return h(this, function(r) {
|
|
144
|
+
switch (r.label) {
|
|
145
|
+
case 0:
|
|
146
|
+
if (e = l.loadAccessToken(), t = e?.jwt && !(0, d.isExpired)(e), t)
|
|
147
|
+
return [2, e.jwt];
|
|
148
|
+
if (!l.getIsAccessTokenLoading()) return [3, 4];
|
|
149
|
+
u = 5, c = 0, r.label = 1;
|
|
150
|
+
case 1:
|
|
151
|
+
return c < u && l.getIsAccessTokenLoading() ? [4, new Promise(function(o) {
|
|
152
|
+
return setTimeout(o, 200);
|
|
153
|
+
})] : [3, 4];
|
|
154
|
+
case 2:
|
|
155
|
+
if (r.sent(), e = l.loadAccessToken(), e?.jwt && !(0, d.isExpired)(e))
|
|
156
|
+
return [2, e.jwt];
|
|
157
|
+
r.label = 3;
|
|
158
|
+
case 3:
|
|
159
|
+
return c++, [3, 1];
|
|
160
|
+
case 4:
|
|
161
|
+
return l.setAccessTokenLastRequestTime(Date.now()), [4, m(i)];
|
|
162
|
+
case 5:
|
|
163
|
+
return e = r.sent(), l.storeAccessToken(e), (0, d.setExpiryTimeout)(e), [2, e.jwt];
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
function q(i) {
|
|
169
|
+
return (0, j.jwtDecode)(i);
|
|
170
|
+
}
|
|
171
|
+
window.addEventListener("beforeunload", d.invalidateAccessToken);
|
|
172
|
+
})(a), a);
|
|
173
|
+
}
|
|
174
|
+
export {
|
|
175
|
+
J as __require
|
|
176
|
+
};
|
package/AccessToken3.js
ADDED
package/ActiveFilter.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import e from "./styled-components.browser.esm.js";
|
|
3
|
+
import { Chip as o } from "./Chip.js";
|
|
4
|
+
import { token as i } from "./token.js";
|
|
4
5
|
function l(t) {
|
|
5
|
-
return /* @__PURE__ */
|
|
6
|
+
return /* @__PURE__ */ r(
|
|
6
7
|
n,
|
|
7
8
|
{
|
|
8
9
|
icon: t.icon,
|
|
@@ -13,7 +14,7 @@ function l(t) {
|
|
|
13
14
|
}
|
|
14
15
|
);
|
|
15
16
|
}
|
|
16
|
-
const n =
|
|
17
|
+
const n = e(o)`
|
|
17
18
|
background-color: transparent;
|
|
18
19
|
margin-right: ${i.spacing3};
|
|
19
20
|
border: 1px solid ${i.gray50};
|
package/ActiveFilters.js
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import { jsx as i, jsxs as f } from "react/jsx-runtime";
|
|
2
|
-
import h from "styled-components";
|
|
3
|
-
import { Button as v } from "
|
|
4
|
-
import { assetTypeToString as
|
|
2
|
+
import h from "./styled-components.browser.esm.js";
|
|
3
|
+
import { Button as v } from "./Button.js";
|
|
4
|
+
import { assetTypeToString as u, getAssetTypeIcon as y } from "./asset.type.js";
|
|
5
5
|
import { HorizontalScroll as x } from "./HorizontalScroll.js";
|
|
6
6
|
import { useAssetFilter as A } from "./AssetFilterContext.js";
|
|
7
|
-
import { ActiveFilter as
|
|
7
|
+
import { ActiveFilter as o } from "./ActiveFilter.js";
|
|
8
8
|
import { __ as d } from "./index2.js";
|
|
9
9
|
import { useSimilaritySearchStore as g } from "./useSimilaritySearchStore.js";
|
|
10
10
|
function B() {
|
|
11
|
-
const
|
|
12
|
-
isSelected:
|
|
11
|
+
const e = A(), {
|
|
12
|
+
isSelected: s,
|
|
13
13
|
setIsSelected: l,
|
|
14
14
|
isNLSSelected: c,
|
|
15
15
|
setIsNLSSelected: n,
|
|
16
16
|
NLSSearchText: a,
|
|
17
17
|
setNLSSearchText: m
|
|
18
|
-
} = g(), S = Object.values(
|
|
18
|
+
} = g(), S = Object.values(e.selectedSmartfilterOptions || {}), p = S.length === 0 && e.assetTypes.length === 0 && e.tags.length === 0 && !s && !(c && a) ? void 0 : /* @__PURE__ */ i(k, { children: /* @__PURE__ */ i(
|
|
19
19
|
v,
|
|
20
20
|
{
|
|
21
21
|
variant: "clean",
|
|
22
22
|
isSmall: !0,
|
|
23
23
|
onClick: () => {
|
|
24
|
-
|
|
24
|
+
e.clear(), l(!1), n(!1), m(void 0);
|
|
25
25
|
},
|
|
26
26
|
children: d("Clear filters")
|
|
27
27
|
}
|
|
28
28
|
) });
|
|
29
29
|
return /* @__PURE__ */ i("div", { "data-testid": "selected-filter-list", children: /* @__PURE__ */ f(x, { isActiveFilter: !0, static: p, children: [
|
|
30
|
-
|
|
31
|
-
const r =
|
|
30
|
+
e.assetTypes.map((t) => {
|
|
31
|
+
const r = y(t);
|
|
32
32
|
return /* @__PURE__ */ i(
|
|
33
|
-
|
|
33
|
+
o,
|
|
34
34
|
{
|
|
35
|
-
onClick: () =>
|
|
36
|
-
title:
|
|
35
|
+
onClick: () => e.removeAssetType(t),
|
|
36
|
+
title: u(t),
|
|
37
37
|
icon: /* @__PURE__ */ i(r, {})
|
|
38
38
|
},
|
|
39
|
-
|
|
39
|
+
t
|
|
40
40
|
);
|
|
41
41
|
}),
|
|
42
42
|
S.map(
|
|
43
|
-
(
|
|
44
|
-
|
|
43
|
+
(t) => Object.values(t).map((r) => /* @__PURE__ */ i(
|
|
44
|
+
o,
|
|
45
45
|
{
|
|
46
|
-
onClick: () =>
|
|
46
|
+
onClick: () => e.removeSmartfilterOption(
|
|
47
47
|
r.metapropertyName,
|
|
48
48
|
r.id
|
|
49
49
|
),
|
|
@@ -52,16 +52,16 @@ function B() {
|
|
|
52
52
|
r.id
|
|
53
53
|
))
|
|
54
54
|
),
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
e.tags.map((t) => /* @__PURE__ */ i(
|
|
56
|
+
o,
|
|
57
57
|
{
|
|
58
|
-
onClick: () =>
|
|
59
|
-
title:
|
|
58
|
+
onClick: () => e.removeTag(t),
|
|
59
|
+
title: t
|
|
60
60
|
},
|
|
61
|
-
|
|
61
|
+
t
|
|
62
62
|
)),
|
|
63
|
-
(
|
|
64
|
-
|
|
63
|
+
(s || c && a) && /* @__PURE__ */ i(
|
|
64
|
+
o,
|
|
65
65
|
{
|
|
66
66
|
onClick: () => {
|
|
67
67
|
l(!1), n(!1), m(void 0);
|
package/AddMedia.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as x, Fragment as L, jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as b, useState as C, useEffect as E } from "react";
|
|
3
|
-
import { Button as A } from "
|
|
3
|
+
import { Button as A } from "./Button.js";
|
|
4
4
|
import { useConfig as M } from "./ConfigContext.js";
|
|
5
5
|
import { useAuth as O } from "./LoginContext.js";
|
|
6
6
|
import { useSelection as T } from "./SelectionContext.js";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import r from "./styled-components.browser.esm.js";
|
|
3
|
+
import { textStyles as a } from "./textStyles.js";
|
|
4
|
+
import { token as t } from "./token.js";
|
|
5
|
+
function c({
|
|
6
|
+
children: o,
|
|
7
|
+
padding: d = "all",
|
|
8
|
+
...i
|
|
9
|
+
}) {
|
|
10
|
+
return /* @__PURE__ */ n(l, { $padding: d, ...i, children: o });
|
|
11
|
+
}
|
|
12
|
+
const l = r.div.withConfig({
|
|
13
|
+
displayName: "AdditionalInfoStyled",
|
|
14
|
+
componentId: "sc-95p2dl-0"
|
|
15
|
+
})(["", " padding:", ";border-top:1px solid ", ";color:", ";"], a.uiTextS, (o) => o.$padding === "all" ? "var(--card-content-padding)" : "0", t.gray100a, t.colorText);
|
|
16
|
+
export {
|
|
17
|
+
c as AdditionalInfo
|
|
18
|
+
};
|
package/Advanced.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as t, jsxs as c, Fragment as d } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { token as i } from "
|
|
4
|
-
import { IconAdjust as g } from "
|
|
2
|
+
import o from "./styled-components.browser.esm.js";
|
|
3
|
+
import { token as i } from "./token.js";
|
|
4
|
+
import { IconAdjust as g } from "./index4.js";
|
|
5
5
|
import { Dropdown as p } from "./Dropdown.js";
|
|
6
6
|
import { __ as m } from "./index2.js";
|
|
7
7
|
import { useConfig as l } from "./ConfigContext.js";
|
package/App.js
CHANGED
|
@@ -1,37 +1,40 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n, Fragment as b } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { Dat as G } from "./Dat.js";
|
|
2
|
+
import { CollectionsView as F } from "./CollectionsView.js";
|
|
3
|
+
import { CollectionView as I } from "./CollectionView.js";
|
|
4
|
+
import { ConfigProvider as T, useConfig as V } from "./ConfigContext.js";
|
|
5
|
+
import { AssetFilter as D } from "./AssetFilter.js";
|
|
6
|
+
import { useLocalization as O } from "./index2.js";
|
|
7
|
+
import { ShadowRoot as k } from "./ShadowRoot.js";
|
|
8
|
+
import { AssetFilterProvider as y } from "./AssetFilterContext.js";
|
|
9
|
+
import { SelectionProvider as E } from "./SelectionContext.js";
|
|
10
|
+
import { ThemeStyles as M } from "./Theming.js";
|
|
11
|
+
import { Toolbar as R } from "./Toolbar.js";
|
|
12
|
+
import { AssetsView as U } from "./AssetsView.js";
|
|
13
|
+
import { SelectionFooter as x } from "./SelectionFooter.js";
|
|
14
|
+
import { Shield as j } from "./Shield.js";
|
|
15
|
+
import { Dat as z } from "./Dat.js";
|
|
17
16
|
import "./DatDropdownItem.js";
|
|
18
|
-
import { useRouterSelectors as
|
|
19
|
-
import { useClearCollectionOnPageChange as
|
|
20
|
-
import { useDat as
|
|
21
|
-
import { StoreInitializer as
|
|
17
|
+
import { useRouterSelectors as H } from "./useRouterStore.js";
|
|
18
|
+
import { useClearCollectionOnPageChange as N } from "./useSearchStore.js";
|
|
19
|
+
import { useDat as B } from "./useDatStore.js";
|
|
20
|
+
import { StoreInitializer as G } from "./StoreInitializer.js";
|
|
21
|
+
import { BrowserClient as L } from "./client.js";
|
|
22
|
+
import { makeFetchTransport as _ } from "./fetch.js";
|
|
23
|
+
import { defaultStackParser as q } from "./stack-parsers.js";
|
|
24
|
+
import { Hub as J } from "./hub.js";
|
|
22
25
|
let s;
|
|
23
|
-
s = new
|
|
26
|
+
s = new L({
|
|
24
27
|
dsn: "https://dd74b64cc05845468f0c3654b458da29@sentry10.bynder.cloud/464",
|
|
25
28
|
autoSessionTracking: !0,
|
|
26
29
|
tracesSampleRate: 1,
|
|
27
30
|
integrations: [],
|
|
28
|
-
stackParser:
|
|
29
|
-
transport:
|
|
30
|
-
}), new
|
|
31
|
-
function
|
|
31
|
+
stackParser: q,
|
|
32
|
+
transport: _
|
|
33
|
+
}), new J(s);
|
|
34
|
+
function Ce({
|
|
32
35
|
assetFieldSelection: o,
|
|
33
36
|
assetFilter: r,
|
|
34
|
-
assetTypes:
|
|
37
|
+
assetTypes: c = ["IMAGE", "AUDIO", "VIDEO", "DOCUMENT", "ARCHIVE"],
|
|
35
38
|
defaultSearchTerm: a,
|
|
36
39
|
language: l = "en_US",
|
|
37
40
|
mode: p = "MultiSelect",
|
|
@@ -43,17 +46,17 @@ function he({
|
|
|
43
46
|
hideExternalAccess: g,
|
|
44
47
|
selectedAssets: S,
|
|
45
48
|
hideLimitedUse: C,
|
|
46
|
-
isContainerMode:
|
|
49
|
+
isContainerMode: m = !1,
|
|
47
50
|
__shouldAddOriginal__: w,
|
|
48
51
|
hideSwitch: v = !1,
|
|
49
52
|
noCache: A = !1,
|
|
50
53
|
selectAllOption: P = !1
|
|
51
54
|
}) {
|
|
52
|
-
|
|
53
|
-
const { datUrl: i } =
|
|
55
|
+
O(l);
|
|
56
|
+
const { datUrl: i } = B(), t = {
|
|
54
57
|
assetFieldSelection: o,
|
|
55
58
|
assetFilter: r,
|
|
56
|
-
assetTypes:
|
|
59
|
+
assetTypes: c,
|
|
57
60
|
language: l,
|
|
58
61
|
onSuccess: f,
|
|
59
62
|
defaultImageDerivativeName: d,
|
|
@@ -66,32 +69,32 @@ function he({
|
|
|
66
69
|
noCache: A,
|
|
67
70
|
selectAllOption: P
|
|
68
71
|
};
|
|
69
|
-
return /* @__PURE__ */ e(
|
|
72
|
+
return /* @__PURE__ */ e(j, { sentryClient: s, children: /* @__PURE__ */ e(k, { isContainerMode: m, children: /* @__PURE__ */ e(y, { hideLimitedUse: C, predefinedFilter: r, children: /* @__PURE__ */ e(T, { value: t, children: /* @__PURE__ */ n(E, { preselectedAssetIds: S ?? [], children: [
|
|
70
73
|
/* @__PURE__ */ e(
|
|
71
|
-
|
|
74
|
+
G,
|
|
72
75
|
{
|
|
73
76
|
defaultSearchTerm: a,
|
|
74
|
-
resetOnMount: !
|
|
77
|
+
resetOnMount: !m
|
|
75
78
|
}
|
|
76
79
|
),
|
|
77
|
-
/* @__PURE__ */ e(
|
|
80
|
+
/* @__PURE__ */ e(M, { theme: t.theme }),
|
|
78
81
|
/* @__PURE__ */ n("div", { className: "cv-root cv-container", children: [
|
|
79
|
-
/* @__PURE__ */ e(
|
|
82
|
+
/* @__PURE__ */ e(R, {}),
|
|
80
83
|
/* @__PURE__ */ e(K, {}),
|
|
81
|
-
/* @__PURE__ */ e(
|
|
82
|
-
i && /* @__PURE__ */ e(
|
|
84
|
+
/* @__PURE__ */ e(x, {}),
|
|
85
|
+
i && /* @__PURE__ */ e(z, {})
|
|
83
86
|
] })
|
|
84
87
|
] }) }) }) }) });
|
|
85
88
|
}
|
|
86
89
|
function K() {
|
|
87
|
-
const o =
|
|
88
|
-
return
|
|
89
|
-
o.page !== "collections" && (r === void 0 || r && r.showToolbar) && /* @__PURE__ */ e(
|
|
90
|
-
o.page === "assets" && /* @__PURE__ */ e(
|
|
91
|
-
o.page === "collections" && /* @__PURE__ */ e(
|
|
92
|
-
o.page === "collection" && /* @__PURE__ */ e(
|
|
90
|
+
const o = H.use.page(), { assetFilter: r } = V();
|
|
91
|
+
return N(o), /* @__PURE__ */ n(b, { children: [
|
|
92
|
+
o.page !== "collections" && (r === void 0 || r && r.showToolbar) && /* @__PURE__ */ e(D, {}),
|
|
93
|
+
o.page === "assets" && /* @__PURE__ */ e(U, {}),
|
|
94
|
+
o.page === "collections" && /* @__PURE__ */ e(F, {}),
|
|
95
|
+
o.page === "collection" && /* @__PURE__ */ e(I, { collection: o.collection })
|
|
93
96
|
] });
|
|
94
97
|
}
|
|
95
98
|
export {
|
|
96
|
-
|
|
99
|
+
Ce as App
|
|
97
100
|
};
|
package/Arrow.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import i from "./styled-components.browser.esm.js";
|
|
3
|
+
import { IconCaretDown as n } from "./index4.js";
|
|
4
|
+
import { token as o } from "./token.js";
|
|
5
|
+
function d(t) {
|
|
6
|
+
return /* @__PURE__ */ r(c, { ...t, children: /* @__PURE__ */ r(n, {}) });
|
|
7
|
+
}
|
|
8
|
+
const c = i.div.withConfig({
|
|
9
|
+
displayName: "ArrowStyled",
|
|
10
|
+
componentId: "sc-1k0ithd-0"
|
|
11
|
+
})(["margin-right:calc(", " * -1);margin-left:calc(", " * -1);"], o.spacing2, o.spacing2);
|
|
12
|
+
export {
|
|
13
|
+
d as Arrow
|
|
14
|
+
};
|
package/AssetCard.js
CHANGED
|
@@ -1,56 +1,59 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as r, jsxs as g } from "react/jsx-runtime";
|
|
2
2
|
import { useState as x, useEffect as w } from "react";
|
|
3
|
-
import s from "styled-components";
|
|
4
|
-
import {
|
|
3
|
+
import s from "./styled-components.browser.esm.js";
|
|
4
|
+
import { Badge as $ } from "./Badge.js";
|
|
5
|
+
import { Card as l } from "./Card.js";
|
|
6
|
+
import { TruncatedText as U } from "./TruncatedText.js";
|
|
7
|
+
import { token as o } from "./token.js";
|
|
5
8
|
import { useConfig as V } from "./ConfigContext.js";
|
|
6
|
-
import { getStatusText as W, getExtension as _, getThumbnail as b } from "./
|
|
9
|
+
import { getStatusText as W, getExtension as _, getThumbnail as b } from "./utils2.js";
|
|
7
10
|
import { __ as d } from "./index2.js";
|
|
8
11
|
import { ContextAction as z } from "./ContextAction.js";
|
|
9
12
|
import { AssetCardMetaproperties as L } from "./AssetCardMetaproperties.js";
|
|
10
13
|
import { useDat as j } from "./useDatStore.js";
|
|
11
|
-
function
|
|
14
|
+
function it({
|
|
12
15
|
className: e,
|
|
13
16
|
dragState: p,
|
|
14
17
|
fadeIn: y = !0,
|
|
15
18
|
asset: t,
|
|
16
19
|
isSelected: n,
|
|
17
20
|
isOutlined: C,
|
|
18
|
-
onClick:
|
|
21
|
+
onClick: m,
|
|
19
22
|
children: v = null,
|
|
20
23
|
isSimilaritySearchEnabled: S = !1,
|
|
21
24
|
onSimilaritySearch: T
|
|
22
25
|
}) {
|
|
23
|
-
const [B, I] = x(), [k, A] = x(), { openDat: M, setTransformation: D } = j(), { theme:
|
|
26
|
+
const [B, I] = x(), [k, A] = x(), { openDat: M, setTransformation: D } = j(), { theme: c } = V(), h = W(t), f = _(t);
|
|
24
27
|
w(() => {
|
|
25
|
-
const
|
|
28
|
+
const i = t.metaproperties?.nodes.filter(
|
|
26
29
|
(a) => a.showInGridView || a.showInListView
|
|
27
30
|
);
|
|
28
|
-
I(
|
|
31
|
+
I(i);
|
|
29
32
|
}, [t.metaproperties]), w(() => {
|
|
30
|
-
const
|
|
33
|
+
const i = t.textMetaproperties?.filter(
|
|
31
34
|
(a) => a.showInGridView || a.showInListView
|
|
32
35
|
);
|
|
33
|
-
A(
|
|
36
|
+
A(i);
|
|
34
37
|
}, [t.textMetaproperties]);
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
}, P = (
|
|
38
|
-
|
|
38
|
+
const u = (i) => {
|
|
39
|
+
m !== void 0 && (i.stopPropagation(), D(), m(t, i));
|
|
40
|
+
}, P = (i) => {
|
|
41
|
+
i.stopPropagation(), T([t.databaseId ? t.databaseId : t.id]);
|
|
39
42
|
};
|
|
40
|
-
return /* @__PURE__ */
|
|
43
|
+
return /* @__PURE__ */ r(
|
|
41
44
|
E,
|
|
42
45
|
{
|
|
43
46
|
id: t.id,
|
|
44
47
|
$dragState: p,
|
|
45
|
-
$theme:
|
|
46
|
-
$isOutlined: (n || C) &&
|
|
48
|
+
$theme: c,
|
|
49
|
+
$isOutlined: (n || C) && c?.colorPrimary !== void 0,
|
|
47
50
|
$fadeIn: y,
|
|
48
51
|
className: e,
|
|
49
52
|
"data-drag-select-id": t.id,
|
|
50
53
|
children: /* @__PURE__ */ g(
|
|
51
54
|
l,
|
|
52
55
|
{
|
|
53
|
-
contextAction: /* @__PURE__ */
|
|
56
|
+
contextAction: /* @__PURE__ */ r(
|
|
54
57
|
z,
|
|
55
58
|
{
|
|
56
59
|
dragState: p,
|
|
@@ -62,8 +65,8 @@ function tt({
|
|
|
62
65
|
}
|
|
63
66
|
),
|
|
64
67
|
selectButtonAriaLabel: n ? d("Deselect") : d("Select"),
|
|
65
|
-
onSelect:
|
|
66
|
-
onClick:
|
|
68
|
+
onSelect: u,
|
|
69
|
+
onClick: u,
|
|
67
70
|
isSelected: n,
|
|
68
71
|
"aria-selected": n,
|
|
69
72
|
"data-testid": "asset-card",
|
|
@@ -71,11 +74,11 @@ function tt({
|
|
|
71
74
|
/* @__PURE__ */ g(
|
|
72
75
|
l.Frame,
|
|
73
76
|
{
|
|
74
|
-
icon: h ? /* @__PURE__ */
|
|
77
|
+
icon: h ? /* @__PURE__ */ r(G, { $limitWidth: !!f, children: /* @__PURE__ */ r($, { color: "black-alpha", "data-testid": "asset-tag", children: /* @__PURE__ */ r(U, { children: h }) }) }) : void 0,
|
|
75
78
|
"data-testid": "asset-type",
|
|
76
|
-
badge:
|
|
79
|
+
badge: f,
|
|
77
80
|
children: [
|
|
78
|
-
/* @__PURE__ */
|
|
81
|
+
/* @__PURE__ */ r(l.Images, { children: b(t) && /* @__PURE__ */ r(
|
|
79
82
|
l.Img,
|
|
80
83
|
{
|
|
81
84
|
src: b(t),
|
|
@@ -83,7 +86,7 @@ function tt({
|
|
|
83
86
|
contentResize: "fit"
|
|
84
87
|
}
|
|
85
88
|
) }),
|
|
86
|
-
S && t.__typename === "Image" && /* @__PURE__ */
|
|
89
|
+
S && t.__typename === "Image" && /* @__PURE__ */ r(
|
|
87
90
|
N,
|
|
88
91
|
{
|
|
89
92
|
onClick: P,
|
|
@@ -91,15 +94,15 @@ function tt({
|
|
|
91
94
|
type: "button",
|
|
92
95
|
"aria-label": "similarity-search-button",
|
|
93
96
|
className: "showSimilarButton",
|
|
94
|
-
children: /* @__PURE__ */
|
|
97
|
+
children: /* @__PURE__ */ r($, { isSmall: !0, children: d("Show similar") })
|
|
95
98
|
}
|
|
96
99
|
)
|
|
97
100
|
]
|
|
98
101
|
}
|
|
99
102
|
),
|
|
100
103
|
v,
|
|
101
|
-
/* @__PURE__ */
|
|
102
|
-
/* @__PURE__ */
|
|
104
|
+
/* @__PURE__ */ r(H, { "data-testid": "asset-name", children: t.name }),
|
|
105
|
+
/* @__PURE__ */ r(
|
|
103
106
|
L,
|
|
104
107
|
{
|
|
105
108
|
metaproperties: B,
|
|
@@ -176,5 +179,5 @@ const E = s.div`
|
|
|
176
179
|
z-index: 1;
|
|
177
180
|
`;
|
|
178
181
|
export {
|
|
179
|
-
|
|
182
|
+
it as AssetCard
|
|
180
183
|
};
|