"use strict";const g=require("./tslib.es6-C4EgNkz1.js"),e=require("react"),n=require("classnames"),E=require("./icons/ebay-icon-chevron-down-16/index.js"),y=s=>{var{size:l,alignment:r,text:c,as:o="div",className:i,open:m,onToggle:a,children:_}=s,d=g.__rest(s,["size","alignment","text","as","className","open","onToggle","children"]);const u=a&&(t=>{a(t,{open:t.currentTarget.open})});return e.createElement("details",Object.assign({open:m,onToggle:u,className:n("details",i)},d),e.createElement("summary",{className:n("details__summary",{"details__summary--small":l==="small","details__summary--center":r==="center"})},e.createElement("span",{className:"details__label"},c),e.createElement("span",{className:"details__icon",hidden:!0},e.createElement(E.EbayIconChevronDown16,null))),e.createElement(o,{className:"details__content"},_))};exports.EbayDetails=y;
