System.register([],function(_export,_context){"use strict";var t;function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function s(t){if(!t)return"";var s=t.assignedNodes({flatten:!0});var e="";return _toConsumableArray(s).forEach(function(t){t.nodeType===Node.TEXT_NODE&&(e+=t.textContent);}),e;}_export("g",s);return{setters:[],execute:function execute(){_export("H",t=/*#__PURE__*/function(){function t(_t){_classCallCheck(this,t);for(var _len=arguments.length,s=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){s[_key-1]=arguments[_key];}this.slotNames=[],(this.host=_t).addController(this),this.slotNames=s,this.handleSlotChange=this.handleSlotChange.bind(this);}return _createClass(t,[{key:"hasDefaultSlot",value:function hasDefaultSlot(){return _toConsumableArray(this.host.childNodes).some(function(_t2){if(_t2.nodeType===_t2.TEXT_NODE&&""!==_t2.textContent.trim())return!0;if(_t2.nodeType===_t2.ELEMENT_NODE){var _s=_t2;if("nile-visually-hidden"===_s.tagName.toLowerCase())return!1;if(!_s.hasAttribute("slot"))return!0;}return!1;});}},{key:"hasNamedSlot",value:function hasNamedSlot(_t3){return null!==this.host.querySelector(":scope > [slot=\"".concat(_t3,"\"]"));}},{key:"test",value:function test(_t4){return"[default]"===_t4?this.hasDefaultSlot():this.hasNamedSlot(_t4);}},{key:"hostConnected",value:function hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange);}},{key:"hostDisconnected",value:function hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange);}},{key:"handleSlotChange",value:function handleSlotChange(_t5){var s=_t5.target;(this.slotNames.includes("[default]")&&!s.name||s.name&&this.slotNames.includes(s.name))&&this.host.requestUpdate();}}]);}());}};});
//# sourceMappingURL=slot.cjs.js.map
