@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.
Files changed (555) hide show
  1. package/AccessToken.js +5 -0
  2. package/AccessToken2.js +176 -0
  3. package/AccessToken3.js +4 -0
  4. package/ActiveFilter.js +6 -5
  5. package/ActiveFilters.js +24 -24
  6. package/AddMedia.js +1 -1
  7. package/AdditionalInfo.js +18 -0
  8. package/Advanced.js +3 -3
  9. package/App.js +46 -43
  10. package/Arrow.js +14 -0
  11. package/AssetCard.js +32 -29
  12. package/AssetCardMetaproperties.js +14 -13
  13. package/AssetFilter.js +36 -35
  14. package/AssetFilterContext.js +3 -3
  15. package/AssetItem.js +14 -13
  16. package/AssetList.js +7 -7
  17. package/AssetTypeItem.js +13 -12
  18. package/Autocomplete_new.js +41 -37
  19. package/Axios2.js +136 -0
  20. package/AxiosError.js +54 -0
  21. package/AxiosHeaders.js +181 -0
  22. package/AxiosURLSearchParams.js +33 -0
  23. package/Badge.js +44 -0
  24. package/Baloon.js +42 -0
  25. package/BaseStyles.js +10 -0
  26. package/Blob.js +4 -0
  27. package/Box.js +22 -0
  28. package/Button.js +39 -0
  29. package/Button.styles.js +40 -0
  30. package/ButtonAction.js +3 -3
  31. package/ButtonLegacy.js +48 -0
  32. package/ButtonLegacy.styles.js +28 -0
  33. package/CancelToken.js +77 -0
  34. package/CanceledError.js +11 -0
  35. package/Card.js +84 -0
  36. package/CardSkeleton.js +15 -14
  37. package/Checkbox.js +85 -0
  38. package/Checkbox.styles.js +2 -2
  39. package/Checkmark.js +7 -0
  40. package/Chip.js +70 -40
  41. package/Chip2.js +42 -0
  42. package/CollectionCard.js +9 -8
  43. package/CollectionItem.js +15 -14
  44. package/CollectionList.js +2 -2
  45. package/CollectionView.js +2 -2
  46. package/CollectionsView.js +6 -6
  47. package/ColorHexInput.js +31 -0
  48. package/ColorPicker.js +66 -0
  49. package/ColorPickerSolid.js +20 -0
  50. package/ColorPickerWithOpacity.js +37 -0
  51. package/Combobox.js +61 -0
  52. package/ConcealedAction.js +16 -0
  53. package/ConnectButton.js +1 -1
  54. package/Container.js +14 -13
  55. package/Container2.js +31 -0
  56. package/Content.js +16 -0
  57. package/ContextAction.js +18 -17
  58. package/ContextActionButton.js +29 -0
  59. package/ControlGroup.js +32 -0
  60. package/DOMFunctions.js +27 -0
  61. package/Dat.js +62 -50
  62. package/DatDropdownItem.js +20 -19
  63. package/DesignSystemContext.js +4 -4
  64. package/DesignSystemProvider.js +29 -0
  65. package/DirectionSelect.js +16 -15
  66. package/Divider.js +21 -0
  67. package/DomainInput.js +15 -14
  68. package/DragRange.js +25 -0
  69. package/DragSelect.js +11 -11
  70. package/Dropdown.js +12 -11
  71. package/Dropdown2.js +169 -0
  72. package/DropdownContent.js +2 -2
  73. package/DropdownListItem.js +3 -3
  74. package/Enum.js +12 -0
  75. package/ErrorMessage.js +20 -19
  76. package/FieldSelect.js +4 -4
  77. package/FilePlaceholder.js +19 -0
  78. package/FileSelector.js +11 -10
  79. package/Flex.js +21 -0
  80. package/FontPicker.js +104 -0
  81. package/Footer.js +16 -0
  82. package/Form.js +23 -0
  83. package/FormData.js +4 -0
  84. package/Frame.js +64 -0
  85. package/Group.js +17 -0
  86. package/Group2.js +26 -0
  87. package/Header2.js +43 -0
  88. package/Header22.js +15 -0
  89. package/HelperText.js +26 -0
  90. package/HorizontalScroll.js +4 -4
  91. package/HttpHandler.js +74 -0
  92. package/HttpResponse.js +85 -0
  93. package/HttpStatusCode.js +71 -0
  94. package/IconPlaceholder.js +18 -0
  95. package/Image.js +19 -0
  96. package/Images.js +30 -0
  97. package/Indicator.js +74 -0
  98. package/InfiniteScroll.js +8 -8
  99. package/InlineBanner.js +51 -0
  100. package/Input.js +109 -0
  101. package/Input.styles.js +71 -0
  102. package/InputContainer.js +9 -0
  103. package/InputField.js +74 -0
  104. package/InputRow.js +18 -0
  105. package/Inspector.js +34 -0
  106. package/InteractiveIcon.js +28 -0
  107. package/InterceptorManager.js +58 -0
  108. package/Item.js +107 -0
  109. package/Item2.js +14 -0
  110. package/Item4.js +190 -0
  111. package/Label.js +33 -0
  112. package/LeftArrow.js +3 -3
  113. package/List.js +25 -0
  114. package/ListItem.js +11 -0
  115. package/ListItem2.js +58 -0
  116. package/ListItem4.js +37 -0
  117. package/MetapropertyFilterContent.js +2 -2
  118. package/MetapropertyOption.js +2 -3
  119. package/Middleware.js +49 -0
  120. package/Middleware2.js +49 -0
  121. package/Modal.js +2 -2
  122. package/Modal2.js +31 -0
  123. package/ModalBase.js +117 -0
  124. package/ModalBase.styles.js +75 -0
  125. package/ModalConfirmation.js +8 -0
  126. package/NoResults.js +16 -15
  127. package/OffsetContext.js +9 -0
  128. package/Oops.js +1 -1
  129. package/OpacityInput.js +17 -0
  130. package/Option_new.js +19 -18
  131. package/Overlay.js +35 -0
  132. package/Parser.js +131 -0
  133. package/Prefixer.js +187 -0
  134. package/Radio.js +78 -0
  135. package/RadioGroup.js +25 -0
  136. package/RangeInput.js +41 -0
  137. package/RefreshingSpinner.js +3 -3
  138. package/ReportModal.js +16 -14
  139. package/RequestHandler.js +119 -0
  140. package/RightArrow.js +4 -4
  141. package/Row.js +16 -0
  142. package/SearchInput.js +15 -15
  143. package/SearchInput2.js +46 -0
  144. package/SectionTitle.js +17 -0
  145. package/Select.js +49 -0
  146. package/SelectButtonText.js +16 -0
  147. package/SelectedItemContainer.js +11 -10
  148. package/SelectedItems.js +2 -2
  149. package/SelectionFooter.js +8 -7
  150. package/Serializer.js +27 -0
  151. package/ShadowRootInternal.js +17 -17
  152. package/Sidebar.js +17 -0
  153. package/Skeleton.js +6 -6
  154. package/Slider.constants.js +6 -0
  155. package/Slider.js +128 -0
  156. package/SmartFilterContent.js +2 -2
  157. package/SmartFilterSelect_new.js +2 -2
  158. package/Smartfilters_new.js +53 -50
  159. package/Spinner.js +2 -2
  160. package/Spinner2.js +15 -0
  161. package/StatefulAssetList.js +15 -15
  162. package/Stats.js +16 -0
  163. package/StatsItem.js +23 -0
  164. package/Status.js +32 -0
  165. package/Switch.js +82 -0
  166. package/SwitchNLS.js +26 -23
  167. package/Tabs2.js +10 -0
  168. package/TagItem.js +8 -8
  169. package/Tags.js +9 -9
  170. package/Text2.js +11 -0
  171. package/Text22.js +18 -0
  172. package/Text4.js +18 -0
  173. package/Textarea.js +92 -0
  174. package/Theming.js +4 -4
  175. package/Thumb.js +28 -0
  176. package/Thumbnail.js +91 -0
  177. package/Tokenizer.js +147 -0
  178. package/Toolbar.js +13 -12
  179. package/Tooltip.js +2 -2
  180. package/Tooltip2.js +111 -0
  181. package/TruncatedText.js +34 -0
  182. package/URLSearchParams.js +5 -0
  183. package/Utility.js +56 -0
  184. package/ViewSwitch.js +8 -7
  185. package/_check_private_redeclaration.js +7 -0
  186. package/_class_apply_descriptor_get.js +6 -0
  187. package/_class_apply_descriptor_set.js +11 -0
  188. package/_class_extract_field_descriptor.js +7 -0
  189. package/_class_private_field_get.js +9 -0
  190. package/_class_private_field_init.js +7 -0
  191. package/_class_private_field_set.js +9 -0
  192. package/_commonjsHelpers.js +6 -0
  193. package/adapters.js +53 -0
  194. package/api.js +25 -0
  195. package/api2.js +40 -0
  196. package/api3.js +406 -0
  197. package/applyScopeDataToEvent.js +83 -0
  198. package/applyScopeDataToEvent2.js +55 -0
  199. package/asset.type.js +9 -9
  200. package/autocomplete.js +2 -2
  201. package/axios.js +46 -0
  202. package/base.js +57 -0
  203. package/baseclient.js +498 -0
  204. package/bind.js +8 -0
  205. package/browser.js +44 -0
  206. package/buildFullPath.js +9 -0
  207. package/buildURL.js +23 -0
  208. package/bundle.esm.js +81 -0
  209. package/calculateContainerMaxHeight.js +12 -0
  210. package/calculateNodeHeight.js +35 -0
  211. package/carrier.js +13 -0
  212. package/chain.js +8 -0
  213. package/checkGlobals.js +13 -0
  214. package/checks.js +178 -0
  215. package/chunk-6HYIRFX2.js +1 -0
  216. package/cleanUrl.js +11 -0
  217. package/client.js +76 -0
  218. package/clientreport.js +15 -0
  219. package/clsx.js +17 -0
  220. package/colorTransforms.js +12 -0
  221. package/combineMetaproperties.js +1 -1
  222. package/combineURLs.js +6 -0
  223. package/composeSignals.js +30 -0
  224. package/constants.js +2 -12
  225. package/constants2.js +82 -0
  226. package/constants3.js +14 -0
  227. package/constants4.js +8 -0
  228. package/constants5.js +4 -0
  229. package/constants6.js +4 -0
  230. package/context.js +12 -0
  231. package/context10.js +12 -0
  232. package/context2.js +9 -0
  233. package/context3.js +12 -0
  234. package/context6.js +5 -0
  235. package/cookieStore.js +116 -0
  236. package/cookies.js +32 -0
  237. package/core.js +42 -0
  238. package/currentScopes.js +9 -0
  239. package/data.js +4 -0
  240. package/de_DE.json.js +18 -0
  241. package/debug-build.js +4 -0
  242. package/debug-build2.js +4 -0
  243. package/debug-build3.js +4 -0
  244. package/debug-build4.js +4 -0
  245. package/debug-build5.js +4 -0
  246. package/debug-build6.js +4 -0
  247. package/decorators.js +37 -0
  248. package/defaultScopes.js +12 -0
  249. package/devUtils.js +20 -0
  250. package/dispatchRequest.js +31 -0
  251. package/doc.js +26 -0
  252. package/domHelpers.js +15 -0
  253. package/dsn.js +54 -0
  254. package/dynamicSamplingContext.js +34 -0
  255. package/dynamicSamplingContext2.js +34 -0
  256. package/emotion-unitless.esm.js +52 -0
  257. package/en_US.json.js +23 -0
  258. package/englishText-12403056.js +6 -0
  259. package/env.js +6 -0
  260. package/envelope.js +113 -0
  261. package/envelope2.js +23 -0
  262. package/envelope3.js +24 -0
  263. package/error.js +9 -0
  264. package/errors.js +33 -0
  265. package/errors2.js +55 -0
  266. package/es_ES.json.js +18 -0
  267. package/es_MX.json.js +18 -0
  268. package/eventProcessors.js +27 -0
  269. package/eventProcessors2.js +23 -0
  270. package/eventbuilder.js +128 -0
  271. package/exports.js +11 -0
  272. package/exports2.js +16 -0
  273. package/exports3.js +8 -0
  274. package/fetch.js +44 -0
  275. package/fetch2.js +141 -0
  276. package/filterAssets.js +1 -1
  277. package/fixFontSpaceInUrl.js +8 -0
  278. package/focusWithoutScrolling.js +45 -0
  279. package/forceHiddenStyles.js +19 -0
  280. package/formDataToJSON.js +31 -0
  281. package/fr_FR.json.js +18 -0
  282. package/getAbsoluteUrl.js +13 -0
  283. package/getAsset.js +1 -1
  284. package/getAssetCounts.js +1 -1
  285. package/getAssets.js +2 -2
  286. package/getCallFrame.js +12 -0
  287. package/getCollections.js +1 -1
  288. package/getFilterOptions.js +1 -1
  289. package/getFilters.js +1 -1
  290. package/getFilters_new.js +1 -1
  291. package/getRequestCookies.js +40 -0
  292. package/getRootSpan.js +6 -0
  293. package/getRootSpan2.js +6 -0
  294. package/getSimilarityAssets.js +1 -1
  295. package/getSizingData.js +45 -0
  296. package/getStatusCodeColor.js +6 -0
  297. package/getThumbPosition.js +6 -0
  298. package/getTimestamp.js +7 -0
  299. package/getUseLayerOptions.js +49 -0
  300. package/handlers.js +92 -6
  301. package/handlers2.js +6 -0
  302. package/helpers.js +3 -4
  303. package/helpers2.js +6 -0
  304. package/hexFromPercentage.js +7 -0
  305. package/http.js +17 -0
  306. package/hub.js +446 -0
  307. package/hub2.js +442 -0
  308. package/immer.js +472 -0
  309. package/import.js +7 -0
  310. package/index-esm.js +10781 -0
  311. package/index-esm2.js +138 -0
  312. package/index-esm3.js +131 -0
  313. package/index.browser.js +11 -0
  314. package/index.module.js +57 -0
  315. package/index.module2.js +72 -0
  316. package/index.module3.js +57 -0
  317. package/index10.js +20 -0
  318. package/index102.js +273 -0
  319. package/index11.js +18 -0
  320. package/index112.js +29 -0
  321. package/index12.js +38 -0
  322. package/index13.js +2432 -0
  323. package/index14.js +558 -0
  324. package/index15.js +58 -0
  325. package/index16.js +4 -0
  326. package/index17.js +89 -0
  327. package/index18.js +9 -0
  328. package/index19.js +62 -0
  329. package/index20.js +15 -0
  330. package/index21.js +11 -0
  331. package/index22.js +42 -0
  332. package/index23.js +9 -0
  333. package/index24.js +10 -0
  334. package/index25.js +7 -0
  335. package/index26.js +12 -0
  336. package/index27.js +11 -0
  337. package/index28.js +639 -0
  338. package/index29.js +76 -0
  339. package/index3.js +5 -53
  340. package/index30.js +7 -0
  341. package/index31.js +22 -0
  342. package/index32.js +2 -0
  343. package/index33.js +7 -0
  344. package/index34.js +20 -0
  345. package/index35.js +8 -0
  346. package/index36.js +4 -0
  347. package/index37.js +13 -0
  348. package/index38.js +13 -0
  349. package/index39.js +15 -0
  350. package/index4.js +1684 -17
  351. package/index40.js +13 -0
  352. package/index41.js +21 -0
  353. package/index42.js +66 -0
  354. package/index43.js +8 -0
  355. package/index44.js +57 -0
  356. package/index45.js +69 -0
  357. package/index46.js +33 -0
  358. package/index47.js +13 -0
  359. package/index48.js +123 -0
  360. package/index49.js +88 -0
  361. package/index5.js +27 -0
  362. package/index50.js +10 -0
  363. package/index51.js +13 -0
  364. package/index52.js +16 -0
  365. package/index53.js +16 -0
  366. package/index54.js +9 -0
  367. package/index55.js +9 -0
  368. package/index56.js +17 -0
  369. package/index57.js +31 -0
  370. package/index58.js +18 -0
  371. package/index6.js +315 -0
  372. package/index7.js +4 -0
  373. package/index72.js +228 -0
  374. package/index8.js +5051 -0
  375. package/index82.js +8 -0
  376. package/index9.js +55 -0
  377. package/index92.js +12 -0
  378. package/integration.js +38 -0
  379. package/is.js +77 -0
  380. package/is2.js +14 -0
  381. package/is3.js +14 -0
  382. package/isAbsoluteURL.js +6 -0
  383. package/isAbsoluteUrl2.js +6 -0
  384. package/isAxiosError.js +7 -0
  385. package/isCancel.js +6 -0
  386. package/isIterable.js +6 -0
  387. package/isStringEqual.js +6 -0
  388. package/isURLSameOrigin.js +8 -0
  389. package/isValidHexValue.js +6 -0
  390. package/isVirtualEvent.js +11 -0
  391. package/iso.js +38 -0
  392. package/it_IT.json.js +18 -0
  393. package/itemContext.js +5 -0
  394. package/ja_JP.json.js +18 -0
  395. package/ko_KR.json.js +18 -0
  396. package/localStorageHelper.js +32 -0
  397. package/localStorageHelper2.js +4 -0
  398. package/localization.js +46 -0
  399. package/logger2.js +56 -0
  400. package/logger3.js +56 -0
  401. package/logger4.js +56 -0
  402. package/makeHexWithOpacity.js +12 -0
  403. package/makeInternalTokens.js +22 -0
  404. package/matchRequestUrl.js +23 -0
  405. package/memo.js +25 -0
  406. package/merge.js +13 -0
  407. package/mergeConfig.js +70 -0
  408. package/mergeProps.js +22 -0
  409. package/mergeRefs.js +9 -0
  410. package/middleware.js +177 -0
  411. package/middleware2.js +177 -0
  412. package/misc.js +58 -0
  413. package/misc2.js +28 -0
  414. package/misc3.js +24 -0
  415. package/nl_NL.json.js +18 -0
  416. package/normalize.js +97 -0
  417. package/normalizePath.js +11 -0
  418. package/normalizeResponse.js +1 -1
  419. package/normalizeRows.js +10 -0
  420. package/notify.js +52 -0
  421. package/null.js +4 -0
  422. package/object.js +110 -0
  423. package/object2.js +39 -0
  424. package/object3.js +17 -0
  425. package/opacityPercentageFromHex.js +9 -0
  426. package/openLink.js +27 -0
  427. package/package.json +1 -1
  428. package/packageVersion.js +4 -0
  429. package/parse.js +9 -0
  430. package/parse2.js +44 -0
  431. package/parseHeaders.js +30 -0
  432. package/parseProtocol.js +7 -0
  433. package/pl_PL.json.js +18 -0
  434. package/platform.js +42 -0
  435. package/prepareEvent.js +141 -0
  436. package/prepareEvent2.js +5 -0
  437. package/prepareEvent3.js +5 -0
  438. package/progressEventReducer.js +35 -0
  439. package/promisebuffer.js +44 -0
  440. package/propagationContext.js +11 -0
  441. package/pt_BR.json.js +18 -0
  442. package/ratelimit.js +37 -0
  443. package/react.js +19 -0
  444. package/react2.js +19 -0
  445. package/regexes.js +51 -0
  446. package/registries.js +41 -0
  447. package/resolveConfig.js +33 -0
  448. package/ru_RU.json.js +18 -0
  449. package/runAfterTransition.js +35 -0
  450. package/schemas.js +368 -0
  451. package/schemas2.js +691 -0
  452. package/scope.js +412 -0
  453. package/scope2.js +407 -0
  454. package/scope3.js +348 -0
  455. package/sdk-DhxX43BH.js +4813 -0
  456. package/sdkMetadata.js +15 -0
  457. package/serializeRequest.js +12 -0
  458. package/serializeResponse.js +14 -0
  459. package/session.js +57 -0
  460. package/session2.js +57 -0
  461. package/session3.js +16 -0
  462. package/settle.js +14 -0
  463. package/shadowdom.js +13 -0
  464. package/shadowdom2.js +13 -0
  465. package/spanOnScope.js +12 -0
  466. package/spanUtils.js +31 -0
  467. package/spanUtils2.js +31 -0
  468. package/speedometer.js +19 -0
  469. package/spread.js +8 -0
  470. package/stack-parsers.js +48 -0
  471. package/stackStrategy.js +98 -0
  472. package/stacktrace.js +49 -0
  473. package/state.js +106 -0
  474. package/store/useDatStore.d.ts +11 -8
  475. package/string.js +6 -0
  476. package/styled-components.browser.esm.js +530 -0
  477. package/styles.js +55 -0
  478. package/styles2.js +17 -0
  479. package/supports.js +6 -0
  480. package/syncpromise.js +121 -0
  481. package/syncpromise2.js +109 -0
  482. package/textSelection.js +33 -0
  483. package/textStyles.js +20 -0
  484. package/theme.js +238 -0
  485. package/themeContainers.js +20 -0
  486. package/themes3.js +26 -0
  487. package/throttle.js +15 -0
  488. package/time.js +24 -0
  489. package/time2.js +24 -0
  490. package/time3.js +24 -0
  491. package/toFormData.js +85 -0
  492. package/toPublicUrl.js +9 -0
  493. package/toURLEncodedForm.js +13 -0
  494. package/token.js +236 -0
  495. package/tokenExpirationHelper.js +48 -0
  496. package/tokenExpirationHelper2.js +4 -0
  497. package/tokensAndThemes.js +92 -0
  498. package/tr_TR.json.js +18 -0
  499. package/trackStream.js +63 -0
  500. package/transformData.js +13 -0
  501. package/transitional.js +8 -0
  502. package/trimMetapropertyValue.js +1 -1
  503. package/tslib.es6.js +18 -0
  504. package/typeof.js +11 -0
  505. package/urlHelper.js +15 -0
  506. package/urlHelper2.js +4 -0
  507. package/useAutoHeight.js +25 -0
  508. package/useDatStore.js +31 -27
  509. package/useEffectEvent.js +18 -0
  510. package/useFocus.js +30 -0
  511. package/useFocusRing.js +34 -0
  512. package/useFocusVisible.js +92 -0
  513. package/useFocusWithin.js +57 -0
  514. package/useFonts.js +118 -0
  515. package/useGlobalListeners.js +34 -0
  516. package/useGroupContext.js +10 -0
  517. package/useHover.js +79 -0
  518. package/useId.js +8 -0
  519. package/useId2.js +17 -0
  520. package/useKeyDown.js +14 -0
  521. package/useLayoutEffect.js +6 -0
  522. package/useOrderingStore.js +6 -6
  523. package/usePress.js +359 -0
  524. package/useRouterStore.js +6 -6
  525. package/useScrollHighlightedIntoView.js +24 -0
  526. package/useSearchStore.js +5 -5
  527. package/useSimilaritySearchStore.js +6 -6
  528. package/useSyncRef.js +12 -0
  529. package/useTranslate.js +13 -0
  530. package/useZIndex.js +9 -0
  531. package/userfeedback.js +28 -0
  532. package/util.js +265 -0
  533. package/utils/fixFontSpaceInUrl.d.ts +1 -0
  534. package/utils.js +26 -44
  535. package/utils2.js +43 -45
  536. package/utils3.js +50 -0
  537. package/utils4.js +12 -0
  538. package/utils5.js +71 -0
  539. package/utils6.js +222 -0
  540. package/utils7.js +9 -0
  541. package/utils8.js +70 -0
  542. package/validator.js +54 -0
  543. package/vanilla.js +14 -0
  544. package/vanilla2.js +14 -0
  545. package/version.js +4 -0
  546. package/version2.js +4 -0
  547. package/version3.js +4 -0
  548. package/versionContext.js +9 -0
  549. package/versions.js +8 -0
  550. package/worldwide.js +19 -0
  551. package/worldwide2.js +15 -0
  552. package/worldwide3.js +10 -0
  553. package/xhr.js +71 -0
  554. package/zh_CN.json.js +18 -0
  555. package/zh_TW.json.js +18 -0
@@ -1,23 +1,24 @@
1
1
  import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
- import r from "styled-components";
3
- import { token as l, Card as a } from "@bynder/design-system";
4
- import { combineMetaproperties as c } from "./combineMetaproperties.js";
5
- import { trimMetapropertyValue as m } from "./trimMetapropertyValue.js";
6
- const b = ({ metaproperties: p, textMetaproperties: d }) => {
7
- const i = c(p, d);
8
- return i?.length ? /* @__PURE__ */ e(a.AdditionalInfo, { children: /* @__PURE__ */ e(f, { children: i.map(({ label: t, value: o }) => {
9
- const s = m(o);
2
+ import r from "./styled-components.browser.esm.js";
3
+ import { Card as l } from "./Card.js";
4
+ import { token as a } from "./token.js";
5
+ import { combineMetaproperties as m } from "./combineMetaproperties.js";
6
+ import { trimMetapropertyValue as c } from "./trimMetapropertyValue.js";
7
+ const M = ({ metaproperties: p, textMetaproperties: d }) => {
8
+ const i = m(p, d);
9
+ return i?.length ? /* @__PURE__ */ e(l.AdditionalInfo, { children: /* @__PURE__ */ e(f, { children: i.map(({ label: o, value: t }) => {
10
+ const s = c(t);
10
11
  return /* @__PURE__ */ n(x, { "data-testid": "asset-card-metaproperty", children: [
11
12
  /* @__PURE__ */ n(h, { children: [
12
- t,
13
+ o,
13
14
  ":"
14
15
  ] }),
15
- /* @__PURE__ */ e(w, { title: o, children: s })
16
- ] }, t);
16
+ /* @__PURE__ */ e(w, { title: t, children: s })
17
+ ] }, o);
17
18
  }) }) }) : null;
18
19
  }, f = r.dl`
19
20
  color: rgba(0, 34, 51, 0.5);
20
- font-size: ${l.fontSize75};
21
+ font-size: ${a.fontSize75};
21
22
  display: flex;
22
23
  flex-direction: column;
23
24
  grid-row-gap: 1px;
@@ -42,5 +43,5 @@ const b = ({ metaproperties: p, textMetaproperties: d }) => {
42
43
  text-overflow: ellipsis;
43
44
  `;
44
45
  export {
45
- b as AssetCardMetaproperties
46
+ M as AssetCardMetaproperties
46
47
  };
package/AssetFilter.js CHANGED
@@ -1,61 +1,62 @@
1
1
  import { jsx as e, jsxs as m } from "react/jsx-runtime";
2
- import { useState as u, useEffect as C } from "react";
3
- import { styled as p } from "styled-components";
4
- import { token as F, Button as L } from "@bynder/design-system";
5
- import { IconMultiSelect as B, IconRectangle as E } from "@bynder/icons";
2
+ import { useState as f, useEffect as C } from "react";
3
+ import p from "./styled-components.browser.esm.js";
4
+ import { Button as F } from "./Button.js";
5
+ import { token as L } from "./token.js";
6
+ import { IconMultiSelect as B, IconRectangle as E } from "./index4.js";
6
7
  import { useRouterSelectors as H } from "./useRouterStore.js";
7
8
  import { useAssetFilter as R } from "./AssetFilterContext.js";
8
- import { useLocalization as U } from "./index2.js";
9
- import { useConfig as V } from "./ConfigContext.js";
10
- import { useGetFilters as W } from "./getFilters.js";
11
- import { useGetFilters as q } from "./getFilters_new.js";
12
- import { Skeleton as f } from "./Skeleton.js";
13
- import { HorizontalScroll as J } from "./HorizontalScroll.js";
14
- import { Tags as K } from "./Tags.js";
15
- import { Advanced as Q } from "./Advanced.js";
9
+ import { useLocalization as Q } from "./index2.js";
10
+ import { useConfig as U } from "./ConfigContext.js";
11
+ import { useGetFilters as V } from "./getFilters.js";
12
+ import { useGetFilters as W } from "./getFilters_new.js";
13
+ import { Skeleton as u } from "./Skeleton.js";
14
+ import { HorizontalScroll as q } from "./HorizontalScroll.js";
15
+ import { Tags as J } from "./Tags.js";
16
+ import { Advanced as K } from "./Advanced.js";
16
17
  import { useSelection as X } from "./SelectionContext.js";
17
18
  import { useAuth as Y } from "./LoginContext.js";
18
19
  import { getAssetCounts as Z } from "./getAssetCounts.js";
19
20
  import { Smartfilter as _ } from "./Smartfilters_new.js";
20
21
  import { useSearchStateByPage as ee } from "./useSearchStore.js";
21
22
  import { useSimilaritySearchStore as te } from "./useSimilaritySearchStore.js";
22
- function Te() {
23
+ function Ie() {
23
24
  const s = R(), t = H.use.page(), { value: i } = ee("assets"), {
24
- assetTypes: l,
25
+ assetTypes: a,
25
26
  language: g,
26
27
  assetFilter: x,
27
28
  noCache: S,
28
29
  selectionMode: w,
29
30
  selectAllOption: T
30
- } = V(), { clear: I, selectAll: b } = X(), N = Y(), [h, P] = u(t.page);
31
- U(g);
32
- const [j, A] = u(!1), {
31
+ } = U(), { clear: I, selectAll: b } = X(), N = Y(), [h, P] = f(t.page);
32
+ Q(g);
33
+ const [j, A] = f(!1), {
33
34
  isSelected: z,
34
35
  isNLSSelected: D,
35
36
  NLSSearchText: G
36
- } = te(), [M, y] = u(!1), { data: n, isLoading: v } = W(
37
+ } = te(), [M, v] = f(!1), { data: l, isLoading: y } = V(
37
38
  {
38
39
  filter: s,
39
40
  searchTerm: i || null,
40
- allAssetTypes: l,
41
+ allAssetTypes: a,
41
42
  language: g,
42
43
  predefinedFilter: x,
43
44
  collectionId: t.page === "collection" ? t.collection.id : null
44
45
  },
45
46
  S
46
- ), { data: r } = q(S);
47
+ ), { data: r } = W(S);
47
48
  if (C(() => (t.page !== h && (P(t.page), s.clear()), () => {
48
49
  s.clear();
49
50
  }), [h, t.page]), C(() => {
50
51
  let o = !1;
51
52
  return (async () => {
52
- y(!0);
53
+ v(!0);
53
54
  try {
54
55
  const d = await Z({
55
56
  auth: N,
56
57
  filter: {
57
58
  searchTerm: i,
58
- assetTypes: l,
59
+ assetTypes: a,
59
60
  collectionId: t.page === "collection" ? t.collection.id : void 0,
60
61
  tagNames: s.tags,
61
62
  isLimitedUse: s.isLimited,
@@ -66,15 +67,15 @@ function Te() {
66
67
  } catch (d) {
67
68
  o || console.error("Error fetching asset counts:", d);
68
69
  } finally {
69
- o || y(!1);
70
+ o || v(!1);
70
71
  }
71
72
  })(), () => {
72
73
  o = !0;
73
74
  };
74
- }, [s.tags, i, l, t.page, s.selectedSmartfilterOptions]), n.tag === "Failure" || !n.value || r.tag === "Failure" || r.tag === "Loading" || !r.value || M)
75
+ }, [s.tags, i, a, t.page, s.selectedSmartfilterOptions]), l.tag === "Failure" || !l.value || r.tag === "Failure" || r.tag === "Loading" || !r.value || M)
75
76
  return /* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(se, {}) });
76
- const { tags: a, count: O } = n.value.searchAssets, { value: c } = r, $ = j ? /* @__PURE__ */ e(
77
- L,
77
+ const { tags: n, count: O } = l.value.searchAssets, { value: c } = r, $ = j ? /* @__PURE__ */ e(
78
+ F,
78
79
  {
79
80
  onClick: () => {
80
81
  I(), A(!1);
@@ -85,7 +86,7 @@ function Te() {
85
86
  "data-testid": "deselect-all"
86
87
  }
87
88
  ) : /* @__PURE__ */ e(
88
- L,
89
+ F,
89
90
  {
90
91
  onClick: () => {
91
92
  b(), A(!0);
@@ -97,26 +98,26 @@ function Te() {
97
98
  }
98
99
  );
99
100
  return z || D && G ? null : /* @__PURE__ */ m(k, { "data-testid": "filter-nav", children: [
100
- /* @__PURE__ */ m(J, { children: [
101
+ /* @__PURE__ */ m(q, { children: [
101
102
  c && c.filters.length > 0 && /* @__PURE__ */ e(_, { filterData: c }),
102
- a && a.nodes.length > 0 && /* @__PURE__ */ e(K, { tags: a.nodes, isLoading: v }),
103
- /* @__PURE__ */ e(Q, { isLoading: v, count: O.assetType })
103
+ n && n.nodes.length > 0 && /* @__PURE__ */ e(J, { tags: n.nodes, isLoading: y }),
104
+ /* @__PURE__ */ e(K, { isLoading: y, count: O.assetType })
104
105
  ] }),
105
106
  /* @__PURE__ */ e(re, { children: w === "MultiSelect" && T && t.page === "assets" && $ })
106
107
  ] });
107
108
  }
108
109
  function se() {
109
110
  return /* @__PURE__ */ m(oe, { children: [
110
- /* @__PURE__ */ e(f, { width: 100 }),
111
- /* @__PURE__ */ e(f, { width: 80 }),
112
- /* @__PURE__ */ e(f, { width: 110 })
111
+ /* @__PURE__ */ e(u, { width: 100 }),
112
+ /* @__PURE__ */ e(u, { width: 80 }),
113
+ /* @__PURE__ */ e(u, { width: 110 })
113
114
  ] });
114
115
  }
115
116
  const k = p.nav`
116
117
  display: flex;
117
118
  justify-content: space-between;
118
119
  background-color: #fff;
119
- padding: ${F.spacing3} ${F.spacing4};
120
+ padding: ${L.spacing3} ${L.spacing4};
120
121
  z-index: 20;
121
122
  `, re = p.div`
122
123
  display: flex;
@@ -133,5 +134,5 @@ const k = p.nav`
133
134
  align-items: center;
134
135
  `;
135
136
  export {
136
- Te as AssetFilter
137
+ Ie as AssetFilter
137
138
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as R } from "react/jsx-runtime";
2
- import { createContext as V, useContext as X, useState as c, useEffect as x, useMemo as Y } from "react";
2
+ import { createContext as V, useState as c, useEffect as x, useMemo as X, useContext as Y } from "react";
3
3
  const j = V(null);
4
4
  function U({
5
5
  children: o,
@@ -114,7 +114,7 @@ function U({
114
114
  function J(e) {
115
115
  C(e);
116
116
  }
117
- const K = Y(
117
+ const K = X(
118
118
  () => ({
119
119
  assetTypes: b,
120
120
  metaproperties: h,
@@ -149,7 +149,7 @@ function A(o, u) {
149
149
  return o.filter((s) => s !== u);
150
150
  }
151
151
  function F() {
152
- const o = X(j);
152
+ const o = Y(j);
153
153
  if (o === null)
154
154
  throw new Error("useAssetFilter must be used with a AssetFilterProvider");
155
155
  return o;
package/AssetItem.js CHANGED
@@ -1,39 +1,40 @@
1
1
  import { jsxs as m, jsx as t } from "react/jsx-runtime";
2
- import i from "styled-components";
3
- import { token as n, Thumbnail as s } from "@bynder/design-system";
4
- import { getExtension as o, getThumbnail as l } from "./utils.js";
5
- import { useSelection as a } from "./SelectionContext.js";
6
- import { SelectedItemContainer as p } from "./SelectedItemContainer.js";
7
- function A({ asset: e }) {
8
- const r = a();
2
+ import i from "./styled-components.browser.esm.js";
3
+ import { Thumbnail as s } from "./Thumbnail.js";
4
+ import { token as o } from "./token.js";
5
+ import { getExtension as n, getThumbnail as l } from "./utils2.js";
6
+ import { useSelection as p } from "./SelectionContext.js";
7
+ import { SelectedItemContainer as a } from "./SelectedItemContainer.js";
8
+ function b({ asset: e }) {
9
+ const r = p();
9
10
  return /* @__PURE__ */ m(
10
- p,
11
+ a,
11
12
  {
12
13
  title: e.name,
13
14
  onRemove: () => r.toggleAssets([e]),
14
15
  children: [
15
16
  /* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(s, { variant: "preview", imageUrl: l(e), size: "m" }) }),
16
17
  /* @__PURE__ */ t(g, { children: e.name }),
17
- o(e) && /* @__PURE__ */ t(h, { children: o(e) })
18
+ n(e) && /* @__PURE__ */ t(h, { children: n(e) })
18
19
  ]
19
20
  }
20
21
  );
21
22
  }
22
23
  const c = i.div`
23
- margin-right: ${n.spacing4};
24
+ margin-right: ${o.spacing4};
24
25
  max-width: 40px;
25
26
  `, g = i.span`
26
27
  width: 160px;
27
- margin-right: ${n.spacing3};
28
+ margin-right: ${o.spacing3};
28
29
  overflow: hidden;
29
30
  text-overflow: ellipsis;
30
31
  white-space: nowrap;
31
32
  `, h = i.span`
32
33
  flex-grow: 1;
33
34
  color: rgba(0, 34, 51, 0.5);
34
- font-size: ${n.fontSize75};
35
+ font-size: ${o.fontSize75};
35
36
  text-align: right;
36
37
  `;
37
38
  export {
38
- A as AssetItem
39
+ b as AssetItem
39
40
  };
package/AssetList.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsxs as I, jsx as s, Fragment as G } from "react/jsx-runtime";
2
2
  import { useRef as P, useState as k, useEffect as J } from "react";
3
- import { styled as Q } from "styled-components";
3
+ import Q from "./styled-components.browser.esm.js";
4
4
  import { AssetCard as U } from "./AssetCard.js";
5
5
  import { CardSkeleton as V } from "./CardSkeleton.js";
6
6
  import { DragSelect as X } from "./DragSelect.js";
@@ -30,17 +30,17 @@ function he({
30
30
  setIsEnabled: C,
31
31
  isEnabled: H,
32
32
  setIsSelected: W
33
- } = T(), { resetData: j, search: y } = ee(), [A, E] = te(l, M), L = P(!1);
33
+ } = T(), { resetData: j, search: p } = ee(), [A, E] = te(l, M), L = P(!1);
34
34
  J(() => {
35
35
  !L.current && e.value && e.value.length > 0 && (L.current = !0, (async () => {
36
36
  if (e.value && e.value.length > 0) {
37
- const i = e.value.find((n) => n.__typename === "Image") || e.value[0], r = await y([i.databaseId]);
37
+ const i = e.value.find((n) => n.__typename === "Image") || e.value[0], r = await p([i.databaseId]);
38
38
  C(r || !1);
39
39
  }
40
40
  })());
41
- }, [e.value, y, C]);
41
+ }, [e.value, p, C]);
42
42
  const z = (t) => {
43
- j(), W(!0), R(), y(t);
43
+ j(), W(!0), R(), p(t);
44
44
  };
45
45
  function _(t) {
46
46
  if (!(e.tag === "Loading" && !e.value))
@@ -71,9 +71,9 @@ function he({
71
71
  }
72
72
  function q(t, i) {
73
73
  if (i.shiftKey && u === "MultiSelect" && e.value?.length) {
74
- const r = e.value.findIndex((p) => p.id === t.id);
74
+ const r = e.value.findIndex((y) => y.id === t.id);
75
75
  let n = e.value?.findIndex(
76
- (p) => p.id === a[a.length - 1]
76
+ (y) => y.id === a[a.length - 1]
77
77
  );
78
78
  n === -1 && (n = 0), n < r ? o(e.value?.slice(n, r + 1)) : o(e.value.slice(r, n + 1));
79
79
  } else
package/AssetTypeItem.js CHANGED
@@ -1,17 +1,18 @@
1
1
  import { jsx as t, jsxs as d } from "react/jsx-runtime";
2
- import r from "styled-components";
3
- import { token as a, Checkbox as l } from "@bynder/design-system";
4
- import { useAssetFilter as m } from "./AssetFilterContext.js";
5
- import { getAssetTypeIcon as y, assetTypeToString as s } from "./asset.type.js";
6
- import { ListItem as f, StyledCheckboxWrapper as h, Content as p } from "./Checkbox.styles.js";
7
- function $(e) {
8
- const n = m(), i = n.assetTypes.includes(e.type);
2
+ import r from "./styled-components.browser.esm.js";
3
+ import { Checkbox as a } from "./Checkbox.js";
4
+ import { token as m } from "./token.js";
5
+ import { useAssetFilter as l } from "./AssetFilterContext.js";
6
+ import { getAssetTypeIcon as f, assetTypeToString as s } from "./asset.type.js";
7
+ import { ListItem as y, StyledCheckboxWrapper as h, Content as p } from "./Checkbox.styles.js";
8
+ function I(e) {
9
+ const n = l(), i = n.assetTypes.includes(e.type);
9
10
  function o() {
10
11
  i ? n.removeAssetType(e.type) : n.addAssetType(e.type);
11
12
  }
12
- const c = y(e.type);
13
- return /* @__PURE__ */ t(f, { "data-testid": "advanced-options", children: /* @__PURE__ */ t(h, { $isChecked: i, $isLoading: e.isLoading, children: /* @__PURE__ */ t(
14
- l,
13
+ const c = f(e.type);
14
+ return /* @__PURE__ */ t(y, { "data-testid": "advanced-options", children: /* @__PURE__ */ t(h, { $isChecked: i, $isLoading: e.isLoading, children: /* @__PURE__ */ t(
15
+ a,
15
16
  {
16
17
  isChecked: i,
17
18
  onChange: o,
@@ -25,9 +26,9 @@ function $(e) {
25
26
  ) }) });
26
27
  }
27
28
  const g = r.div`
28
- margin: 1px ${a.spacing3};
29
+ margin: 1px ${m.spacing3};
29
30
  flex-grow: 1;
30
31
  `;
31
32
  export {
32
- $ as AssetTypeItem
33
+ I as AssetTypeItem
33
34
  };
@@ -1,11 +1,15 @@
1
- import { jsx as o, jsxs as c } from "react/jsx-runtime";
1
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
2
2
  import { useState as C } from "react";
3
- import { styled as r } from "styled-components";
4
- import { token as a, Form as m, Flex as h, TruncatedText as O, Input as P } from "@bynder/design-system";
3
+ import i from "./styled-components.browser.esm.js";
4
+ import { Flex as h } from "./Flex.js";
5
+ import { Form as a } from "./Form.js";
6
+ import { Input as O } from "./Input.js";
7
+ import { TruncatedText as P } from "./TruncatedText.js";
8
+ import { token as m } from "./token.js";
5
9
  import { __ as g } from "./index2.js";
6
10
  import "./AssetCard.js";
7
11
  import "./AssetList.js";
8
- import "./Chip.js";
12
+ import "./Chip2.js";
9
13
  import "./Dropdown.js";
10
14
  import "./DropdownListItem.js";
11
15
  import "./MetapropertyFilterContent.js";
@@ -20,39 +24,39 @@ import "./ShadowRoot.js";
20
24
  import "./Skeleton.js";
21
25
  import { Spinner as j } from "./Spinner.js";
22
26
  import { OptionComponent as v } from "./Option_new.js";
23
- const et = ({
27
+ const pt = ({
24
28
  metaproperty: t,
25
29
  value: l,
26
30
  onChange: d,
27
- onOptionSelect: x,
31
+ onOptionSelect: f,
28
32
  autocompleteOptions: n,
29
33
  isLoading: p,
30
- selectedOptions: f
34
+ selectedOptions: x
31
35
  }) => {
32
- const { label: u, name: b, id: i } = t, [$, s] = C(1), y = (e) => {
33
- s(1), d(i, e, 1);
34
- }, w = () => {
35
- const e = $ + 1;
36
- d(i, l, e), s(e);
36
+ const { label: u, name: b, id: e } = t, [$, c] = C(1), w = (r) => {
37
+ c(1), d(e, r, 1);
38
+ }, y = () => {
39
+ const r = $ + 1;
40
+ d(e, l, r), c(r);
37
41
  };
38
- return /* @__PURE__ */ o(M, { children: /* @__PURE__ */ c(h, { direction: "column", children: [
39
- /* @__PURE__ */ o(N, { children: /* @__PURE__ */ c(L, { $isLoading: p, children: [
42
+ return /* @__PURE__ */ o(M, { children: /* @__PURE__ */ s(h, { direction: "column", children: [
43
+ /* @__PURE__ */ o(N, { children: /* @__PURE__ */ s(L, { $isLoading: p, children: [
40
44
  /* @__PURE__ */ o(
41
45
  S,
42
46
  {
43
47
  "data-testid": "metaproperty-title",
44
48
  $isLoading: p,
45
49
  htmlFor: "Project Code",
46
- children: /* @__PURE__ */ o(O, { children: u })
50
+ children: /* @__PURE__ */ o(P, { children: u })
47
51
  }
48
52
  ),
49
53
  /* @__PURE__ */ o(
50
- P,
54
+ O,
51
55
  {
52
56
  id: "Project Code",
53
57
  placeholder: g("Want to search for something?"),
54
58
  value: l,
55
- onChange: y,
59
+ onChange: w,
56
60
  "data-testid": "autocomplete-input"
57
61
  }
58
62
  ),
@@ -61,25 +65,25 @@ const et = ({
61
65
  /* @__PURE__ */ o(
62
66
  k,
63
67
  {
64
- $autocompleteOptions: n[i]?.metapropertyOptions.length,
65
- children: n[i]?.metapropertyOptions?.length ? /* @__PURE__ */ o(h, { direction: "column", children: /* @__PURE__ */ o(
68
+ $autocompleteOptions: n[e]?.metapropertyOptions.length,
69
+ children: n[e]?.metapropertyOptions?.length ? /* @__PURE__ */ o(h, { direction: "column", children: /* @__PURE__ */ o(
66
70
  F,
67
71
  {
68
72
  isLoading: p,
69
- hasNextPage: n[i]?.hasNextPage,
70
- loadMore: w,
71
- children: n[i]?.metapropertyOptions.map(
72
- (e) => /* @__PURE__ */ o(
73
+ hasNextPage: n[e]?.hasNextPage,
74
+ loadMore: y,
75
+ children: n[e]?.metapropertyOptions.map(
76
+ (r) => /* @__PURE__ */ o(
73
77
  v,
74
78
  {
75
- option: e,
76
- onClick: x,
79
+ option: r,
80
+ onClick: f,
77
81
  metapropertyName: b,
78
- isSelected: !!f[t.name]?.[e.id],
82
+ isSelected: !!x[t.name]?.[r.id],
79
83
  metapropertyMultifilter: !!t.isMultifilter,
80
84
  showCount: !1
81
85
  },
82
- e.id
86
+ r.id
83
87
  )
84
88
  )
85
89
  }
@@ -87,18 +91,18 @@ const et = ({
87
91
  }
88
92
  )
89
93
  ] }) });
90
- }, M = r.div`
94
+ }, M = i.div`
91
95
  border-right: 1px solid rgba(3, 16, 38, 0.1);
92
96
  min-width: 224px;
93
97
  height: 100%;
94
- `, N = r(m)`
95
- padding: ${a.spacing5};
98
+ `, N = i(a)`
99
+ padding: ${m.spacing5};
96
100
  border-bottom: 1px solid rgba(3, 16, 38, 0.1);
97
101
  box-shadow: 0px 0px 1px 0px rgba(3, 16, 38, 0.1), 0px 1px 4px -1px rgba(3, 16, 38, 0.1);
98
- `, L = r(m.Group)`
102
+ `, L = i(a.Group)`
99
103
  display: flex;
100
104
  flex-direction: column;
101
- gap: ${a.spacing5};
105
+ gap: ${m.spacing5};
102
106
  padding: 0;
103
107
  position: relative;
104
108
 
@@ -110,23 +114,23 @@ const et = ({
110
114
  color: ${(t) => t.$isLoading ? "rgba(3, 16, 38, 0.46)" : "inherit"} !important;
111
115
  min-width: 220px !important;
112
116
  }
113
- `, S = r(m.Label)`
117
+ `, S = i(a.Label)`
114
118
  color: ${(t) => t.$isLoading ? "rgba(3, 16, 38, 0.46)" : "rgba(3, 16, 38, 0.88)"};
115
119
  font-weight: 600;
116
- `, k = r.div`
120
+ `, k = i.div`
117
121
  display: flex;
118
122
  justify-content: ${(t) => t.$autocompleteOptions ? "flex-start" : "center"};
119
123
  align-items: ${(t) => t.$autocompleteOptions ? "flex-start" : "center"};
120
124
  background: ${(t) => t.$autocompleteOptions ? "#fff" : "#f8f8f9"};
121
- padding: ${(t) => t.$autocompleteOptions ? "0" : `${a.spacing3} 0`};
125
+ padding: ${(t) => t.$autocompleteOptions ? "0" : `${m.spacing3} 0`};
122
126
  height: 100%;
123
127
  min-height: 315px;
124
128
  max-height: 400px;
125
129
  overflow-y: ${(t) => t.$autocompleteOptions ? "auto" : "visible"};
126
130
  scrollbar-width: none;
127
- `, I = r.div`
131
+ `, I = i.div`
128
132
  color: rgba(3, 16, 38, 0.46);
129
133
  `;
130
134
  export {
131
- et as Autocomplete
135
+ pt as Autocomplete
132
136
  };
package/Axios2.js ADDED
@@ -0,0 +1,136 @@
1
+ import d from "./utils6.js";
2
+ import U from "./buildURL.js";
3
+ import q from "./InterceptorManager.js";
4
+ import R from "./dispatchRequest.js";
5
+ import w from "./mergeConfig.js";
6
+ import A from "./buildFullPath.js";
7
+ import m from "./validator.js";
8
+ import T from "./AxiosHeaders.js";
9
+ const i = m.validators;
10
+ class k {
11
+ constructor(t) {
12
+ this.defaults = t || {}, this.interceptors = {
13
+ request: new q(),
14
+ response: new q()
15
+ };
16
+ }
17
+ /**
18
+ * Dispatch a request
19
+ *
20
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
21
+ * @param {?Object} config
22
+ *
23
+ * @returns {Promise} The Promise to be fulfilled
24
+ */
25
+ async request(t, e) {
26
+ try {
27
+ return await this._request(t, e);
28
+ } catch (s) {
29
+ if (s instanceof Error) {
30
+ let l = {};
31
+ Error.captureStackTrace ? Error.captureStackTrace(l) : l = new Error();
32
+ const a = l.stack ? l.stack.replace(/^.+\n/, "") : "";
33
+ try {
34
+ s.stack ? a && !String(s.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (s.stack += `
35
+ ` + a) : s.stack = a;
36
+ } catch {
37
+ }
38
+ }
39
+ throw s;
40
+ }
41
+ }
42
+ _request(t, e) {
43
+ typeof t == "string" ? (e = e || {}, e.url = t) : e = t || {}, e = w(this.defaults, e);
44
+ const { transitional: s, paramsSerializer: l, headers: a } = e;
45
+ s !== void 0 && m.assertOptions(s, {
46
+ silentJSONParsing: i.transitional(i.boolean),
47
+ forcedJSONParsing: i.transitional(i.boolean),
48
+ clarifyTimeoutError: i.transitional(i.boolean)
49
+ }, !1), l != null && (d.isFunction(l) ? e.paramsSerializer = {
50
+ serialize: l
51
+ } : m.assertOptions(l, {
52
+ encode: i.function,
53
+ serialize: i.function
54
+ }, !0)), e.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? e.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : e.allowAbsoluteUrls = !0), m.assertOptions(e, {
55
+ baseUrl: i.spelling("baseURL"),
56
+ withXsrfToken: i.spelling("withXSRFToken")
57
+ }, !0), e.method = (e.method || this.defaults.method || "get").toLowerCase();
58
+ let f = a && d.merge(
59
+ a.common,
60
+ a[e.method]
61
+ );
62
+ a && d.forEach(
63
+ ["delete", "get", "head", "post", "put", "patch", "common"],
64
+ (r) => {
65
+ delete a[r];
66
+ }
67
+ ), e.headers = T.concat(f, a);
68
+ const h = [];
69
+ let y = !0;
70
+ this.interceptors.request.forEach(function(n) {
71
+ typeof n.runWhen == "function" && n.runWhen(e) === !1 || (y = y && n.synchronous, h.unshift(n.fulfilled, n.rejected));
72
+ });
73
+ const c = [];
74
+ this.interceptors.response.forEach(function(n) {
75
+ c.push(n.fulfilled, n.rejected);
76
+ });
77
+ let u, o = 0, p;
78
+ if (!y) {
79
+ const r = [R.bind(this), void 0];
80
+ for (r.unshift.apply(r, h), r.push.apply(r, c), p = r.length, u = Promise.resolve(e); o < p; )
81
+ u = u.then(r[o++], r[o++]);
82
+ return u;
83
+ }
84
+ p = h.length;
85
+ let b = e;
86
+ for (o = 0; o < p; ) {
87
+ const r = h[o++], n = h[o++];
88
+ try {
89
+ b = r(b);
90
+ } catch (S) {
91
+ n.call(this, S);
92
+ break;
93
+ }
94
+ }
95
+ try {
96
+ u = R.call(this, b);
97
+ } catch (r) {
98
+ return Promise.reject(r);
99
+ }
100
+ for (o = 0, p = c.length; o < p; )
101
+ u = u.then(c[o++], c[o++]);
102
+ return u;
103
+ }
104
+ getUri(t) {
105
+ t = w(this.defaults, t);
106
+ const e = A(t.baseURL, t.url, t.allowAbsoluteUrls);
107
+ return U(e, t.params, t.paramsSerializer);
108
+ }
109
+ }
110
+ d.forEach(["delete", "get", "head", "options"], function(t) {
111
+ k.prototype[t] = function(e, s) {
112
+ return this.request(w(s || {}, {
113
+ method: t,
114
+ url: e,
115
+ data: (s || {}).data
116
+ }));
117
+ };
118
+ });
119
+ d.forEach(["post", "put", "patch"], function(t) {
120
+ function e(s) {
121
+ return function(a, f, h) {
122
+ return this.request(w(h || {}, {
123
+ method: t,
124
+ headers: s ? {
125
+ "Content-Type": "multipart/form-data"
126
+ } : {},
127
+ url: a,
128
+ data: f
129
+ }));
130
+ };
131
+ }
132
+ k.prototype[t] = e(), k.prototype[t + "Form"] = e(!0);
133
+ });
134
+ export {
135
+ k as default
136
+ };