index of
/
home
/
thefkyzp
/
hulmvisaadvisor.com
/
wp-content
/
plugins
/
surecart
/
dist
/
File: /home/thefkyzp/hulmvisaadvisor.com/wp-content/plugins/surecart/dist/2487.js
"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[2487],{2487:function(e,t,n){n.r(t),n.d(t,{sc_toggles:function(){return a}});var o=n(4942),l=n(5671),i=n(3144),r=n(8860),a=function(){function e(t){(0,l.Z)(this,e),(0,r.r)(this,t),this.accordion=!1,this.collapsible=!0,this.theme="default"}return(0,i.Z)(e,[{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,r.h)(e,{class:(0,o.Z)({toggles:!0},"toggles--theme-".concat(this.theme),!0),part:"base","no-padding":!0},(0,r.h)("slot",null))}},{key:"el",get:function(){return(0,r.a)(this)}}],[{key:"watchers",get:function(){return{collapsible:["handleCollapibleChange"]}}}]),e}();a.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)}'},4942:function(e,t,n){function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return o}})}}]);