Module 70433

618 characters · in 587857714c729205.js, 90f76213b64add4c.js
Dependencies
Required by (1)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,l){l.d(t,{n:()=>c});var s=l(627968),a=l(64700),n=l(452027),r=l(637141),i=l(87730),u=l(451636),d=l(883296);function c(e){let{label:t,giftCardsEnabled:l,giftCardCheckboxProps:c,paymentSourceDropdownProps:o,currencySelectProps:m,showCheckboxAboveDropdown:x=!1,disabled:h,customSelectorContent:p}=e,v=a.useMemo(()=>l&&null!=c&&(0,s.jsx)(i.o,{...c,className:x?d.r:d.K,disabled:c.disabled||h}),[l,c,x,h]),j=x&&l&&c?.checked===!0,g=null!=p,f=a.useMemo(()=>null!=p?p:(0,s.jsx)(r.Ay,{...o,disabled:h}),[p,h,o]);return(0,s.jsxs)(n.D,{label:t,children:[x&&v,!j&&f,!x&&v,!g&&!j&&void 0!==m&&(0,s.jsx)(u.q,{...m})]})}}