| ***************************************************************************** */var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function o(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){t.done?i(t.value):function e(t){return t instanceof n?t:new n((function(e){e(t)}))}(t.value).then(s,u)}c((r=r.apply(t,e||[])).next())}))}function s(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function c(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}}function u(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function c(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(u(arguments[e]));return t}var a=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i(n,t),n.with=function(t){return void 0===t&&(t={}),new e.HarnessPredicate(n,t).addOption("value",t.value,(function(t,n){return e.HarnessPredicate.stringMatches(t.getValue(),n)})).addOption("placeholder",t.placeholder,(function(t,n){return e.HarnessPredicate.stringMatches(t.getPlaceholder(),n)}))},n.prototype.isDisabled=function(){return o(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[2,t.sent().getProperty("disabled")]}}))}))},n.prototype.isRequired=function(){return o(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[2,t.sent().getProperty("required")]}}))}))},n.prototype.isReadonly=function(){return o(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[2,t.sent().getProperty("readOnly")]}}))}))},n.prototype.getValue=function(){return o(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[4,t.sent().getProperty("value")];case 2:return[2,t.sent()]}}))}))},n.prototype.getName=function(){return o(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[4,t.sent().getProperty("name")];case 2:return[2,t.sent()]}}))}))},n.prototype.getType=function(){return o(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[4,t.sent().getProperty("type")];case 2:return[2,t.sent()]}}))}))},n.prototype.getPlaceholder=function(){return o(this,void 0,void 0,(function(){var t,n,r;return s(this,(function(i){switch(i.label){case 0:return[4,this.host()];case 1:return t=i.sent(),[4,e.parallel((function(){return[t.getProperty("placeholder"),t.getAttribute("data-placeholder")]}))];case 2:return n=u.apply(void 0,[i.sent(),2]),r=n[1],[2,n[0]||r||""]}}))}))},n.prototype.getId=function(){return o(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[4,t.sent().getProperty("id")];case 2:return[2,t.sent()]}}))}))},n.prototype.focus=function(){return o(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[2,t.sent().focus()]}}))}))},n.prototype.blur=function(){return o(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[2,t.sent().blur()]}}))}))},n.prototype.isFocused=function(){return o(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[2,t.sent().isFocused()]}}))}))},n.prototype.setValue=function(t){return o(this,void 0,void 0,(function(){var e;return s(this,(function(n){switch(n.label){case 0:return[4,this.host()];case 1:return[4,(e=n.sent()).clear()];case 2:return n.sent(),t?[4,e.sendKeys(t)]:[3,4];case 3:n.sent(),n.label=4;case 4:return e.setInputValue?[4,e.setInputValue(t)]:[3,6];case 5:n.sent(),n.label=6;case 6:return[2]}}))}))},n}(n.MatFormFieldControlHarness);a.hostSelector="[matInput], input[matNativeControl], textarea[matNativeControl]";var l=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i(n,t),n.with=function(t){var r=this;return void 0===t&&(t={}),new e.HarnessPredicate(n,t).addOption("text",t.text,(function(t,n){return o(r,void 0,void 0,(function(){var r,i;return s(this,(function(o){switch(o.label){case 0:return i=(r=e.HarnessPredicate).stringMatches,[4,t.getText()];case 1:return[2,i.apply(r,[o.sent(),n])]}}))}))})).addOption("index",t.index,(function(t,e){return o(r,void 0,void 0,(function(){return s(this,(function(n){switch(n.label){case 0:return[4,t.getIndex()];case 1:return[2,n.sent()===e]}}))}))})).addOption("isSelected",t.isSelected,(function(t,e){return o(r,void 0,void 0,(function(){return s(this,(function(n){switch(n.label){case 0:return[4,t.isSelected()];case 1:return[2,n.sent()===e]}}))}))}))},n.prototype.getText=function(){return o(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[2,t.sent().getProperty("label")]}}))}))},n.prototype.getIndex=function(){return o(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[2,t.sent().getProperty("index")]}}))}))},n.prototype.isDisabled=function(){return o(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[2,t.sent().getProperty("disabled")]}}))}))},n.prototype.isSelected=function(){return o(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[2,t.sent().getProperty("selected")]}}))}))},n}(e.ComponentHarness);l.hostSelector="select[matNativeControl] option";var h=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i(n,t),n.with=function(t){return void 0===t&&(t={}),new e.HarnessPredicate(n,t)},n.prototype.isDisabled=function(){return o(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[2,t.sent().getProperty("disabled")]}}))}))},n.prototype.isRequired=function(){return o(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[2,t.sent().getProperty("required")]}}))}))},n.prototype.isMultiple=function(){return o(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[2,t.sent().getProperty("multiple")]}}))}))},n.prototype.getName=function(){return o(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[4,t.sent().getProperty("name")];case 2:return[2,t.sent()]}}))}))},n.prototype.getId=function(){return o(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[4,t.sent().getProperty("id")];case 2:return[2,t.sent()]}}))}))},n.prototype.focus=function(){return o(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[2,t.sent().focus()]}}))}))},n.prototype.blur=function(){return o(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[2,t.sent().blur()]}}))}))},n.prototype.isFocused=function(){return o(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[2,t.sent().isFocused()]}}))}))},n.prototype.getOptions=function(t){return void 0===t&&(t={}),o(this,void 0,void 0,(function(){return s(this,(function(e){return[2,this.locatorForAll(l.with(t))()]}))}))},n.prototype.selectOptions=function(t){return void 0===t&&(t={}),o(this,void 0,void 0,(function(){var n,r,i,o,a,l,h=this;return s(this,(function(s){switch(s.label){case 0:return[4,e.parallel((function(){return[h.isMultiple(),h.getOptions(t)]}))];case 1:if(n=u.apply(void 0,[s.sent(),2]),r=n[0],0===(i=n[1]).length)throw Error("Select does not have options matching the specified filter");return[4,e.parallel((function(){return[h.host(),e.parallel((function(){return i.slice(0,r?void 0:1).map((function(t){return t.getIndex()}))}))]}))];case 2:if(o=u.apply(void 0,[s.sent(),2]),l=o[1],!(a=o[0]).selectOptions)throw Error("TestElement implementation does not support the selectOptions method which is required for this function.");return[4,a.selectOptions.apply(a,c(l))];case 3:return s.sent(),[2]}}))}))},n}(n.MatFormFieldControlHarness);h.hostSelector="select[matNativeControl]", |