"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../tslib.es6-C4EgNkz1.js"),e=require("react"),_=require("classnames"),E=require("../icons/ebay-icon-ccd-charger-included/index.js"),h=require("../icons/ebay-icon-ccd-charger-not-included/index.js"),I=require("../icons/ebay-icon-ccd-top/index.js"),N=r=>{var{max:c,min:a,chargerIcon:n,units:i="W",secondaryType:o="none",secondaryText:t="USB PD",a11yUnits:d="watts","aria-label":l,className:u}=r,m=C.__rest(r,["max","min","chargerIcon","units","secondaryType","secondaryText","a11yUnits","aria-label","className"]);const s=o==="usbpd",y=n?`Charger ${n==="included"?"":"not "}included.`:"",b=a||c?`${a} - ${c} ${d}. ${s?t:""}`:"",g=`${y} ${b}`.trim();return e.createElement("div",Object.assign({},m,{role:"figure","aria-label":l||g,className:_("ccd",u)}),n==="included"&&e.createElement(E.EbayIconCcdChargerIncluded,{className:"ccd__charger-icon"}),n==="not-included"&&e.createElement(h.EbayIconCcdChargerNotIncluded,{className:"ccd__charger-icon"}),(a||c)&&e.createElement("div",{className:"ccd__description-figure"},e.createElement(I.EbayIconCcdTop,{className:"ccd__top-icon"}),e.createElement("div",{className:"ccd__body"},e.createElement("div",null,a," - ",c),e.createElement("div",null,i),s&&e.createElement("div",null,t))))};exports.EbayCCD=N;
