// Metro module 8665 (f8666). import { CollectiblesItemType } from "../../_bundle/Module1901"; import { intl, t } from "../../intl/index.native"; import * as _CollectiblesUtils from "../collectibles/CollectiblesUtils"; import { getIsProfileFrameGiftingEnabled } from "../collectibles/experiments/CollectiblesProfileFrameGiftingExperiment"; export function getProductNameAndTypeFromSku({ name, tenantMetadata }) { const r7 = tenantMetadata == null ? void 0 : tenantMetadata.collectibles?.type; return CollectiblesItemType.AVATAR_DECORATION === r7 ? intl.formatToPlainString(t.lvBzLi, { product: name }) : CollectiblesItemType.PROFILE_EFFECT === r7 ? intl.formatToPlainString(t.eR7moP, { product: name }) : CollectiblesItemType.NAMEPLATE === r7 ? intl.formatToPlainString(t.YFOwHj, { product: name }) : name; } export function isWishlistableCollectiblesProduct(a0) { const isPremiumCollectiblesProduct = _CollectiblesUtils.isPremiumCollectiblesProduct(a0); return isPremiumCollectiblesProduct ? !isPremiumCollectiblesProduct : a0.type !== CollectiblesItemType.EXTERNAL_SKU && !(a0.type === CollectiblesItemType.PROFILE_FRAME && !getIsProfileFrameGiftingEnabled("isWishlistableCollectiblesProduct")); }