"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.resolveShoppingBottomIconSource=void 0;var _constant=require("../constant"),resolveShoppingBottomIconSource=function(o){var n,e,r,t,l=(null==o||null===(n=o.Menus)||void 0===n?void 0:n.Menus)||[],u=(null==o||null===(e=o.Menus)||void 0===e?void 0:e.ProductV2)||{},c=l.find(function(o){if(o.Type!==_constant.MENU_TYPE.ProductCard)return!1;var n=null==u?void 0:u[o.Index];return!!n&&2!==n.DisplayEnable});return{visible:!!c,serverMenuIndex:null==c?void 0:c.Index,iconUrl:(null==o||null===(r=o.Menus)||void 0===r||null===(t=r.VerticalIconUrl)||void 0===t?void 0:t.ProductCardIconUrl)||_constant.DefaultVerticalIconUrl[_constant.MENU_TYPE.ProductCard]}};exports.resolveShoppingBottomIconSource=resolveShoppingBottomIconSource;