"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[5825],{5825:function(e,t,n){n.r(t),n.d(t,{sc_toggles:function(){return s}});var o=n(4467),l=n(3029),a=n(2901),i=n(1346),s=function(){return(0,a.A)((function e(t){(0,l.A)(this,e),(0,i.r)(this,t),this.accordion=!1,this.collapsible=!0,this.theme="default"}),[{key:"getToggles",value:function(){var e,t,n,o=this.el.shadowRoot.querySelector("slot");if(o)return(null===(n=null===(t=null===(e=null==o?void 0:o.assignedNodes)||void 0===e?void 0:e.call(o))||void 0===t?void 0:t.filter)||void 0===n?void 0:n.call(t,(function(e){return"SC-TOGGLE"===e.nodeName})))||[]}},{key:"handleShowChange",value:function(e){"SC-TOGGLE"===e.target.tagName&&this.accordion&&this.getToggles().map((function(t){return t.open=e.target===t}))}},{key:"handleCollapibleChange",value:function(){var e=this;this.getToggles().map((function(t){return t.collapsible=e.collapsible}))}},{key:"componentDidLoad",value:function(){this.handleCollapibleChange();var e=this.getToggles();(null==e?void 0:e.length)&&!e.some((function(e){return e.open}))&&(e[0].open=!0)}},{key:"render",value:function(){var e="container"===this.theme?"sc-card":"div";return(0,i.h)(e,{key:"e3b9dc257461988bd4c21dbc2d39f0f42aaba300",class:(0,o.A)({toggles:!0},"toggles--theme-".concat(this.theme),!0),part:"base","no-padding":!0},(0,i.h)("slot",{key:"0e8c54bca84d3fd0588a498b78cfd60cf3b7052f"}))}},{key:"el",get:function(){return(0,i.a)(this)}}],[{key:"watchers",get:function(){return{collapsible:["handleCollapibleChange"]}}}])}();s.style=':host{display:block;--toggle-spacing:0}::slotted(*){margin-bottom:var(--toggle-spacing)}::slotted(:not(:first-child):not([style*="display: none"])){border-top:1px solid var(--sc-input-border-color)}'}}]);