System.register(["lit","../virtualize-b6a2fbe0.cjs.js","lit/directives/unsafe-html.js","lit/directives/class-map.js","lit/directive.js","lit/async-directive.js","lit/directives/repeat.js"],function(_export,_context){"use strict";var t,e,i,s,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,r;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 _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}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);}return{setters:[function(_lit){t=_lit.html;},function(_virtualize002CjsJs){e=_virtualize002CjsJs.v;},function(_litDirectivesUnsafeHtmlJs){i=_litDirectivesUnsafeHtmlJs.unsafeHTML;},function(_litDirectivesClassMapJs){s=_litDirectivesClassMapJs.classMap;},function(_litDirectiveJs){},function(_litAsyncDirectiveJs){},function(_litDirectivesRepeatJs){}],execute:function execute(){_export("V",r=/*#__PURE__*/function(){function r(){_classCallCheck(this,r);}return _createClass(r,null,[{key:"getVirtualizedContent",value:function getVirtualizedContent(i,s,l,o,a,n,c,d,p,$,u,m,v,_,f,j){return t(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n      <div part=\"select-options\" class=\"select__options "," ","\">\n        ","\n      </div>"])),s?"select__options__search-enabled":"",v?"loading":"",u&&!v?t(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n              <div part=\"select-no-results\" class=\"select__no-results\">\n                ","\n              </div>\n            "])),m||"No results found"):t(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n              <div\n                class=\"virtualized\"\n                part=\"virtualized\"\n                @scroll=","\n              >\n                ","\n              </div>\n            "])),_,r.shouldUseVirtualizer(i)?t(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n                      ","\n                    "])),e({items:i,renderItem:function renderItem(t){return r.getItemRenderFunction(t,l,o,a,n,c,d,p,$,f,j);},scroller:!0})):t(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n                      ","\n                    "])),i.map(function(t){return r.getItemRenderFunction(t,l,o,a,n,c,d,p,$,f,j);}))));}},{key:"getItemRenderFunction",value:function getItemRenderFunction(e,_r,l,o,a,n,c,d,p,$,u){var _ref,_ref2,_ref3;if(!e)return t(_templateObject6||(_templateObject6=_taggedTemplateLiteral([""])));var m=a||_r,v=n||function(t){return(t===null||t===void 0?void 0:t.value)||t;},_=v(e),f=m(e),j=(e===null||e===void 0?void 0:e.disabled)||!1,g=e===null||e===void 0?void 0:e.className,h=(_ref=c?c(e):e===null||e===void 0?void 0:e.description)!==null&&_ref!==void 0?_ref:"",z=(_ref2=d?d(e):e===null||e===void 0?void 0:e.prefix)!==null&&_ref2!==void 0?_ref2:"",b=(_ref3=p?p(e):e===null||e===void 0?void 0:e.suffix)!==null&&_ref3!==void 0?_ref3:"";var y=!1;return y=o?Array.isArray(l)&&l.some(function(t){return String(t)===String(_);}):(Array.isArray(l)?l[0]:l)===_,t(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n      <nile-option\n        value="," \n        .selected="," \n        .disabled=","\n        .showCheckbox=","\n        class=","\n        .description=","\n        .isDescriptionEnabled=","\n      >\n        ","\n        ","\n        ","\n      </nile-option>\n    "])),_,y,j,o,s(_defineProperty({option:u!==null&&u!==void 0?u:!1},g!==null&&g!==void 0?g:"",!!g)),h,u,i(z),$?i(f):f,i(b));}},{key:"shouldUseVirtualizer",value:function shouldUseVirtualizer(t){return t.length>=5;}}]);}());}};});
//# sourceMappingURL=renderer.cjs.js.map
