import{r as registerInstance,h,H as Host}from"./index-2a33b470.js";import{d as downSmall}from"./index-9f8fe796.js";var pdsAccordionCss=":host{display:block}details{--border-radius-default:var(--pine-border-radius-100);--box-shadow-focus:0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-purple-300);--color-background-default:var(--pine-color-white);--color-background-hover:var(--pine-color-grey-150);--color-text-default:var(--pine-color-grey-700);--color-text-active:var(--pine-color-grey-950);--color-text-hover:var(--pine-color-grey-800);--font-weight-active:var(--pine-font-weight-semi-bold);--number-animation-transform-timing:200ms;--spacing-details-padding-inline:var(--pine-spacing-150);--spacing-details-padding-block-end:calc(var(--pine-spacing-200) + 2);--spacing-summary-padding-block:calc(var(--pine-spacing-150) / 2);--spacing-summary-padding-inline-start:var(--pine-spacing-100);--spacing-summary-padding-inline-end:var(--pine-spacing-050);--typography-default:var(--pine-font-weight-medium) var(--pine-font-size-100)/var(--pine-line-height-150) var(--pine-font-family-inter);border-radius:var(--border-radius-default)}details pds-icon{-webkit-transform:scaleY(1);transform:scaleY(1)}details[open]{background-color:var(--color-background-default)}details[open] summary{color:var(--color-text-active);font-weight:var(--font-weight-active)}details[open] summary pds-icon{-webkit-transform:scaleY(-1);transform:scaleY(-1)}summary{background-color:var(--color-background-default);border-radius:var(--border-radius-default);color:var(--color-text-default);font:var(--typography-default);padding-block:var(--spacing-summary-padding-block);-webkit-padding-end:var(--spacing-summary-padding-inline-end);padding-inline-end:var(--spacing-summary-padding-inline-end);-webkit-padding-start:var(--spacing-summary-padding-inline-start);padding-inline-start:var(--spacing-summary-padding-inline-start);-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}summary::-webkit-details-marker{display:none}summary:hover{background:var(--color-background-hover);color:var(--color-text-hover);cursor:pointer}summary:focus-visible{-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}summary pds-icon{-webkit-margin-start:auto;margin-inline-start:auto}.pds-accordion__body{-webkit-padding-after:var(--spacing-details-padding-block-end);padding-block-end:var(--spacing-details-padding-block-end);padding-inline:var(--spacing-details-padding-inline)}";var PdsAccordionStyle0=pdsAccordionCss;var PdsAccordion=function(){function a(a){var e=this;registerInstance(this,a);this.handleToggle=function(){e.isOpen=e.detailsEl.open};this.getOpenAttribute=function(){if(e.isOpen!==false){return{open:true}}return""};this.componentId=undefined;this.isOpen=false}a.prototype.handleOpenState=function(a){this.isOpen=a};a.prototype.componentDidLoad=function(){this.detailsEl.addEventListener("toggle",this.handleToggle)};a.prototype.render=function(){var a=this;return h(Host,{key:"7789d456b8a8415a7860754f374c5dad138216b8",class:"pds-accordion",id:this.componentId},h("details",Object.assign({key:"e81776ae675f74cd5584c668d717ba0ca91c314c"},this.getOpenAttribute(),{ref:function(e){return a.detailsEl=e}}),h("summary",{key:"ae8e7ed87ec55bcb51dfe44ed648f9cd0f416aa9"},h("slot",{key:"0840b76aa1e6d84f0b0bec40e37a26f243a4bbe3",name:"label"},"Details"),h("pds-icon",{key:"b41cb7c07dfb4a73f97d5a2bd5ec86316d5148f8",icon:downSmall})),h("div",{key:"ed5c79c4930d94105343f0512ab9059ff30b7365",part:"accordion-body",class:"pds-accordion__body"},h("slot",{key:"9f1c522f1343b19b482a24c2ad063c8ec0e2457b"}))))};Object.defineProperty(a,"watchers",{get:function(){return{isOpen:["handleOpenState"]}},enumerable:false,configurable:true});return a}();PdsAccordion.style=PdsAccordionStyle0;export{PdsAccordion as pds_accordion};
//# sourceMappingURL=pds-accordion.entry.js.map