"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),t=require("classnames"),i=require("../../Chip/Chip.js");require("../../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js");var s=require("../../../components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/objectWithoutProperties"),require("react-router-dom"),require("query-string");var n=require("../../TextMiddleTruncated/TextMiddleTruncated.js");require("../../TextMiddleTruncated/TextMiddleTruncated.constants.js");var a=require("./utils.js"),u=require("./AppAssets.scss.js"),l=require("../../../constants/mixpanel.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=o(t);exports.AppAssets=function(t){var o=t.forceNarrow,d=a.useAssetLabels(),p=r.useCallback((function(){var e,r;null===(e=(r=window)[Symbol.for("logToMixpanel")])||void 0===e||e.call(r,l.MIXPANEL_ACTION_TYPES.REDIRECT.ASSET_DASHBOARD,{referer:"Asset Chip"})}),[]);return e.jsx(e.Fragment,{children:d.map((function(r,t,l){var d=r.className,v=r.prefix,x=r.link,C=r.title,h=r.entity,T=e.jsx(i.Chip,{prefix:v,size:"small",className:c.default(u.chip,1===l.length&&u.onlyChip,o&&u.narrowChip,d),onClick:x?p:void 0,children:e.jsx(n.TextMiddleTruncated,{testId:a.AssetLabelEntityToTestId[h],children:C})},t);return x?e.jsx(s.UniversalLink,{href:x,className:u.chipWrapper,children:T},t):T}))})};
//# sourceMappingURL=AppAssets.js.map
