Module 584160

1,075 characters · in 509c2bd46ef8c56f.js
Dependencies
Required by (2)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{u:()=>d});var l=n(997101),i=n(278416),r=n(166532),a=n(202541),s=n(649975),o=n(375708);let u=[r.pn.REVIEW,r.pn.ADD_PAYMENT_STEPS];function c(e){if(null!=e)return null!=l.d[e]?e:void 0}function d(e){let{skuId:t,step:n,storeCountryFromCheckoutContext:l,relocationCountry:d,headerBadgePreset:m,headerBadgeText:p,headerBadgeIcon:h,headerBadgeVariant:C}=e,f=o.intl.string(o.t.q9EGps);n===r.pn.ADD_PAYMENT_STEPS&&(f=o.intl.string(o.t.CpOiEO));let E={headerBadgeText:p,headerBadgeIcon:h,headerBadgeVariant:C};"beta"===m?(E.headerBadgeText=o.intl.string(o.t.oW0eUd),E.headerBadgeVariant="default"):"trial"===m?(E.headerBadgeText=o.intl.string(s.default["mWL08+"]),E.headerBadgeIcon=i.TagIcon):"promo"===m&&(E.headerBadgeText=o.intl.string(s.default.Fjpyfj));let S=null!=n&&u.includes(n)?{countryCode:c(l),relocationCountryCode:c(d)}:void 0;return null==t?{title:f,gradientColor:void 0,...S,...E}:t===a.pe.TIER_0||t===a.pe.TIER_1?{title:f,gradientColor:"nitro-green",...S,...E}:t===a.pe.TIER_2?{title:f,gradientColor:"nitro-pink",...S,...E}:{title:f,...S,...E}}}