import{r as e,c as i,h as n,H as a}from"./p-B2f84Zog.js";import{d as o}from"./p-D4ys0pep.js";const r=":host{display:block}details{--number-animation-transform-timing:200ms;border-radius:var(--pine-dimension-xs)}details pds-icon{-webkit-transform:scaleY(1);transform:scaleY(1)}details[open]{background-color:var(--pine-color-background-container)}details[open] summary{color:var(--pine-color-text-active);font-weight:var(--pine-font-weight-semi-bold)}details[open] summary pds-icon{-webkit-transform:scaleY(-1);transform:scaleY(-1)}summary{background-color:var(--pine-color-background-container);border-radius:var(--pine-dimension-xs);color:var(--pine-color-text-muted);font-family:var(--pine-font-family-body);font-size:var(--pine-font-size-body-md);font-weight:var(--pine-font-weight-medium);letter-spacing:var(--pine-letter-spacing);line-height:var(--pine-line-height-body);padding-block:calc(var(--pine-dimension-2xs) * 1.5);-webkit-padding-end:var(--pine-dimension-2xs);padding-inline-end:var(--pine-dimension-2xs);-webkit-padding-start:var(--pine-dimension-xs);padding-inline-start:var(--pine-dimension-xs);-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}summary::-webkit-details-marker{display:none}summary:hover{background:var(--pine-color-background-container-hover);color:var(--pine-color-text);cursor:pointer}summary:focus-visible{outline:var(--pine-outline-focus);position:relative}summary pds-icon{-webkit-margin-start:auto;margin-inline-start:auto}.pds-accordion__body{-webkit-padding-after:calc(var(--pine-dimension-sm) + 2);padding-block-end:calc(var(--pine-dimension-sm) + 2);padding-inline:calc(var(--pine-dimension-2xs) * 1.5)}";const s=class{constructor(n){e(this,n);this.pdsAccordionToggle=i(this,"pdsAccordionToggle");this.isOpen=false;this.handleToggle=()=>{this.isOpen=this.detailsEl.open};this.getOpenAttribute=()=>{if(this.isOpen!==false){return{open:true}}return""}}handleOpenState(e){this.pdsAccordionToggle.emit(e)}componentDidLoad(){this.detailsEl.addEventListener("toggle",this.handleToggle)}render(){return n(a,{key:"dd45657cb2bfe2e26f3a2fcad6a941559f1968c5",class:"pds-accordion",id:this.componentId},n("details",Object.assign({key:"9dff1b1a3e4cdd308537c1e5f4020d6b74e4ac4e"},this.getOpenAttribute(),{ref:e=>this.detailsEl=e}),n("summary",{key:"59152e8eece069bedd0109d1952dc1de95bc5d9a",part:"accordion-button"},n("slot",{key:"73881348e657d880c60a5420a758217789f03b0c",name:"label"},"Details"),n("pds-icon",{key:"dfe5c28de56ef76bda50f36a406ac2072ed4bd77",icon:o,part:"accordion-icon"})),n("div",{key:"08d019728935164bb315035369044dd513a2c9db",part:"accordion-body",class:"pds-accordion__body"},n("slot",{key:"a67ce7ec1acf795827db51465b80c1ecad96a3e3"}))))}static get watchers(){return{isOpen:["handleOpenState"]}}};s.style=r;export{s as pds_accordion};
//# sourceMappingURL=p-f2ca0cf8.entry.js.map