(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+924":function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=0),"string"!=typeof t||0===e||t.length<=e?t:t.substr(0,e)+"..."}function i(t,e){var n=t,r=n.length;if(r<=150)return n;e>r&&(e=r);var i=Math.max(e-60,0);i<5&&(i=0);var o=Math.min(i+140,r);return o>r-5&&(o=r),o===r&&(i=Math.max(o-140,0)),n=n.slice(i,o),i>0&&(n="'{snip} "+n),o ".length,s=void 0;e&&r++<5&&!("html"===(s=a(e))||r>1&&i+n.length*o+s.length>=80);)n.push(s),i+=s.length,e=e.parentNode;return n.reverse().join(" > ")}catch(c){return""}}function a(t){var e,n,r,o,a,s=t,c=[];if(!s||!s.tagName)return"";if(c.push(s.tagName.toLowerCase()),s.id&&c.push("#"+s.id),(e=s.className)&&Object(i.h)(e))for(n=e.split(/\s+/),a=0;a"}catch(e){return""}}(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t}function u(t,e){try{return JSON.parse(JSON.stringify(t,(function(t,n){return function t(e,n,r,a){if(void 0===r&&(r=1/0),void 0===a&&(a=new s),0===r)return function(t){var e=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===e)return"[Object]";if("[object Array]"===e)return"[Array]";var n=c(t);return Object(i.f)(n)?n:e}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var u=c(n,e);if(Object(i.f)(u))return u;var l=function(t){if(Object(i.b)(t)){var e=t,n={message:e.message,name:e.name,stack:e.stack};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}if(Object(i.c)(t)){var a=t,s={};s.type=a.type;try{s.target=Object(i.a)(a.target)?o(a.target):Object.prototype.toString.call(a.target)}catch(c){s.target=""}try{s.currentTarget=Object(i.a)(a.currentTarget)?o(a.currentTarget):Object.prototype.toString.call(a.currentTarget)}catch(c){s.currentTarget=""}for(var r in"undefined"!=typeof CustomEvent&&Object(i.d)(t,CustomEvent)&&(s.detail=a.detail),a)Object.prototype.hasOwnProperty.call(a,r)&&(s[r]=a);return s}return t}(n),d=Array.isArray(n)?[]:{};if(a.memoize(n))return"[Circular ~]";for(var h in l)Object.prototype.hasOwnProperty.call(l,h)&&(d[h]=t(h,l[h],r-1,a));return a.unmemoize(n),d}(t,n,e)})))}catch(n){return"**non-serializable**"}}function l(t){var e,n;if(Object(i.e)(t)){var o=t,a={};try{for(var s=Object(r.d)(Object.keys(o)),c=s.next();!c.done;c=s.next()){var u=c.value;void 0!==o[u]&&(a[u]=l(o[u]))}}catch(d){e={error:d}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}return a}return Array.isArray(t)?t.map(l):t}n("+924")},"9/Zf":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return s}));var r=n("+A1k"),i=(n("+924"),{});function o(){return Object(r.b)()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function a(){var t=o(),e=t.crypto||t.msCrypto;if(void 0!==e&&e.getRandomValues){var n=new Uint16Array(8);e.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}function s(t){var e=o();if(!("console"in e))return t();var n=e.console,r={};["debug","info","warn","error","log","assert"].forEach((function(t){t in e.console&&n[t].__sentry_original__&&(r[t]=n[t],n[t]=n[t].__sentry_original__)}));var i=t();return Object.keys(r).forEach((function(t){n[t]=r[t]})),i}},"9AQC":function(t,e,n){"use strict";function r(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return h(t,Error)}}function i(t){return"[object String]"===Object.prototype.toString.call(t)}function o(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function a(t){return"[object Object]"===Object.prototype.toString.call(t)}function s(t){return"undefined"!=typeof Event&&h(t,Event)}function c(t){return"undefined"!=typeof Element&&h(t,Element)}function u(t){return"[object RegExp]"===Object.prototype.toString.call(t)}function l(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function d(t){return a(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function h(t,e){try{return t instanceof e}catch(n){return!1}}n.d(e,"b",(function(){return r})),n.d(e,"h",(function(){return i})),n.d(e,"f",(function(){return o})),n.d(e,"e",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return c})),n.d(e,"g",(function(){return u})),n.d(e,"j",(function(){return l})),n.d(e,"i",(function(){return d})),n.d(e,"d",(function(){return h}))},SDrh:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"c",(function(){return s}));var r=function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function s(){for(var t=[],e=0;e=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),w(n),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;w(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:O(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},t}(t.exports);try{regeneratorRuntime=r}catch(i){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},o0o1:function(t,e,n){t.exports=n("ls82")},zUnb:function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function i(t,e,n){return(i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=r(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function o(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,o=!0,a=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return o=t.done,t},e:function(t){a=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t,e){return!e||"object"!==v(e)&&"function"!=typeof e?o(t):e}function m(t){var e=f();return function(){var n,i=r(t);if(e){var o=r(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return g(this,n)}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof e?function(r){return r.pipe(at((function(n,r){return nt(t(n,r)).pipe(W((function(t,i){return e(n,t,r,i)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new st(t,n))})}var st=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;y(this,t),this.project=e,this.concurrent=n}return _(t,[{key:"call",value:function(t,e){return e.subscribe(new ct(t,this.project,this.concurrent))}}]),t}(),ct=function(t){p(n,t);var e=m(n);function n(t,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return y(this,n),(i=e.call(this,t)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return _(n,[{key:"_next",value:function(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(it);function ut(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return at(L,t)}function lt(t,e){return e?et(t,e):new F(Y(t))}function dt(){return function(t){return t.lift(new ht(t))}}var ht=function(){function t(e){y(this,t),this.connectable=e}return _(t,[{key:"call",value:function(t,e){var n=this.connectable;n._refCount++;var r=new pt(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),t}(),pt=function(t){p(n,t);var e=m(n);function n(t,r){var i;return y(this,n),(i=e.call(this,t)).connectable=r,i}return _(n,[{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(N),ft=function(t){p(n,t);var e=m(n);function n(t,r){var i;return y(this,n),(i=e.call(this)).source=t,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return _(n,[{key:"_subscribe",value:function(t){return this.getSubject().subscribe(t)}},{key:"getSubject",value:function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new x).add(this.source.subscribe(new gt(this.getSubject(),this))),t.closed&&(this._connection=null,t=x.EMPTY)),t}},{key:"refCount",value:function(){return dt()(this)}}]),n}(F),vt=function(){var t=ft.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),gt=function(t){p(n,t);var e=m(n);function n(t,r){var i;return y(this,n),(i=e.call(this,t)).connectable=r,i}return _(n,[{key:"_error",value:function(t){this._unsubscribe(),i(r(n.prototype),"_error",this).call(this,t)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),i(r(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}]),n}(U);function mt(){return new G}function yt(t){return{toString:t}.toString()}var bt="__parameters__";function _t(t,e,n){return yt((function(){var r=function(t){return function(){if(t){var e=t.apply(void 0,arguments);for(var n in e)this[n]=e[n]}}}(e);function i(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:Pt.Default;if(void 0===ce)throw new Error("inject() must be called from an injection context");return null===ce?pe(t,void 0,e):ce.get(t,e&Pt.Optional?null:void 0,e)}function he(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pt.Default;return(Ht||de)(Ut(t),e)}function pe(t,e,n){var r=Et(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&Pt.Optional)return null;if(void 0!==e)return e;throw new Error("Injector: NOT_FOUND [".concat(Ft(t),"]"))}function fe(t){for(var e=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:oe;if(e===oe){var n=new Error("NullInjectorError: No provider for ".concat(Ft(t),"!"));throw n.name="NullInjectorError",n}return e}}]),t}();function ge(t,e,n,r){var i=t.ngTempTokenPath;throw e.__source&&i.unshift(e.__source),t.message=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;var i=Ft(e);if(Array.isArray(e))i=e.map(Ft).join(" -> ");else if("object"==typeof e){var o=[];for(var a in e)if(e.hasOwnProperty(a)){var s=e[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Ft(s)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(t.replace(ae,"\n "))}("\n"+t.message,i,n,r),t.ngTokenPath=i,t.ngTempTokenPath=null,t}var me=_((function t(){y(this,t)})),ye=_((function t(){y(this,t)}));function be(t,e){t.forEach((function(t){return Array.isArray(t)?be(t,e):e(t)}))}function _e(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Ce(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function we(t,e){for(var n=[],r=0;r=0)return t[1|n]}function Oe(t,e){return function(t,e,n){for(var r=0,i=t.length>>1;i!==r;){var o=r+(i-r>>1),a=t[o<<1];if(e===a)return o<<1;a>e?i=o:r=o+1}return~(i<<1)}(t,e)}var Pe=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),xe=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),Ie={},Se=[],Me=0;function Ee(t){return yt((function(){var e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Pe.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Se,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||xe.Emulated,id:"c",styles:t.styles||Se,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,i=t.features,o=t.pipes;return n.id+=Me++,n.inputs=Ve(t.inputs,e),n.outputs=Ve(t.outputs),i&&i.forEach((function(t){return t(n)})),n.directiveDefs=r?function(){return("function"==typeof r?r():r).map(Te)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(Ae)}:null,n}))}function Te(t){return Fe(t)||function(t){return t[Jt]||null}(t)}function Ae(t){return function(t){return t[Qt]||null}(t)}var Ne={};function De(t){var e={type:t.type,bootstrap:t.bootstrap||Se,declarations:t.declarations||Se,imports:t.imports||Se,exports:t.exports||Se,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&yt((function(){Ne[t.id]=t.type})),e}function Ve(t,e){if(null==t)return Ie;var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,e&&(e[i]=o)}return n}var Le=Ee;function Re(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Fe(t){return t[Kt]||null}function je(t,e){return t.hasOwnProperty(ee)?t[ee]:null}function ze(t,e){var n=t[Xt]||null;if(!n&&!0===e)throw new Error("Type ".concat(Ft(t)," does not have '\u0275mod' property."));return n}function Be(t){return Array.isArray(t)&&"object"==typeof t[1]}function Ue(t){return Array.isArray(t)&&!0===t[1]}function Ge(t){return 0!=(8&t.flags)}function He(t){return 2==(2&t.flags)}function qe(t){return 1==(1&t.flags)}function We(t){return null!==t.template}function $e(t){return 0!=(512&t[2])}var Ze=function(){function t(e,n,r){y(this,t),this.previousValue=e,this.currentValue=n,this.firstChange=r}return _(t,[{key:"isFirstChange",value:function(){return this.firstChange}}]),t}();function Ye(){return Ke}function Ke(t){return t.type.prototype.ngOnChanges&&(t.setInput=Qe),Je}function Je(){var t=Xe(this),e=null==t?void 0:t.current;if(e){var n=t.previous;if(n===Ie)t.previous=e;else for(var r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function Qe(t,e,n,r){var i=Xe(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Ie,current:null}),o=i.current||(i.current={}),a=i.previous,s=this.declaredInputs[n],c=a[s];o[s]=new Ze(c&&c.currentValue,e,a===Ie),t[r]=e}function Xe(t){return t.__ngSimpleChanges__||null}Ye.ngInherit=!0;var tn=void 0;function en(){return void 0!==tn?tn:"undefined"!=typeof document?document:void 0}function nn(t){return!!t.listen}var rn={createRenderer:function(t,e){return en()}};function on(t){for(;Array.isArray(t);)t=t[0];return t}function an(t,e){return on(e[t+20])}function sn(t,e){return on(e[t.index])}function cn(t,e){return t.data[e+20]}function un(t,e){return t[e+20]}function ln(t,e){var n=e[t];return Be(n)?n:n[0]}function dn(t){var e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function hn(t){return 128==(128&t[2])}function pn(t,e){return null===t||null==e?null:t[e]}function fn(t){t[18]=0}function vn(t,e){t[5]+=e;for(var n=t,r=t[3];null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}var gn={lFrame:Rn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function mn(){return gn.bindingsEnabled}function yn(){return gn.lFrame.lView}function bn(){return gn.lFrame.tView}function _n(t){gn.lFrame.contextLView=t}function Cn(){return gn.lFrame.previousOrParentTNode}function wn(t,e){gn.lFrame.previousOrParentTNode=t,gn.lFrame.isParent=e}function kn(){return gn.lFrame.isParent}function On(){gn.lFrame.isParent=!1}function Pn(){return gn.checkNoChangesMode}function xn(t){gn.checkNoChangesMode=t}function In(){var t=gn.lFrame,e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Sn(){return gn.lFrame.bindingIndex}function Mn(){return gn.lFrame.bindingIndex++}function En(t){var e=gn.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Tn(t,e){var n=gn.lFrame;n.bindingIndex=n.bindingRootIndex=t,An(e)}function An(t){gn.lFrame.currentDirectiveIndex=t}function Nn(t){gn.lFrame.currentQueryIndex=t}function Dn(t,e){var n=Ln();gn.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function Vn(t,e){var n=Ln(),r=t[1];gn.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=r,n.contextLView=t,n.bindingIndex=r.bindingStartIndex}function Ln(){var t=gn.lFrame,e=null===t?null:t.child;return null===e?Rn(t):e}function Rn(t){var e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function Fn(){var t=gn.lFrame;return gn.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}var jn=Fn;function zn(){var t=Fn();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Bn(t){return(gn.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,gn.lFrame.contextLView))[8]}function Un(){return gn.lFrame.selectedIndex}function Gn(t){gn.lFrame.selectedIndex=t}function Hn(){var t=gn.lFrame;return cn(t.tView,t.selectedIndex)}function qn(){gn.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Wn(t,e){for(var n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e&&(t[2]+=2048,o.call(a)):o.call(a)}var Qn=_((function t(e,n,r){y(this,t),this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}));function Xn(t,e,n){for(var r=nn(t),i=0;ie){a=o-1;break}}}for(;o>16}function sr(t,e){for(var n=ar(t),r=e;n>0;)r=r[15],n--;return r}function cr(t){return"string"==typeof t?t:null==t?"":""+t}function ur(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():cr(t)}var lr=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Yt)}();function dr(t){return t instanceof Function?t():t}var hr=!0;function pr(t){var e=hr;return hr=t,e}var fr=0;function vr(t,e){var n=mr(t,e);if(-1!==n)return n;var r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,gr(r.data,t),gr(e,null),gr(r.blueprint,null));var i=yr(t,e),o=t.injectorIndex;if(ir(i))for(var a=or(i),s=sr(i,e),c=s[1].data,u=0;u<8;u++)e[o+u]=s[a+u]|c[a+u];return e[o+8]=i,o}function gr(t,e){t.push(0,0,0,0,0,0,0,0,e)}function mr(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function yr(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=e[6],r=1;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function br(t,e,n){!function(t,e,n){var r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(ne)&&(r=n[ne]),null==r&&(r=n[ne]=fr++);var i=255&r,o=1<3&&void 0!==arguments[3]?arguments[3]:Pt.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==t){var o=Or(n);if("function"==typeof o){Dn(e,t);try{var a=o();if(null!=a||r&Pt.Optional)return a;throw new Error("No provider for ".concat(ur(n),"!"))}finally{jn()}}else if("number"==typeof o){if(-1===o)return new Ir(t,e);var s=null,c=mr(t,e),u=-1,l=r&Pt.Host?e[16][6]:null;for((-1===c||r&Pt.SkipSelf)&&(u=-1===c?yr(t,e):e[c+8],xr(r,!1)?(s=e[1],c=or(u),e=sr(u,e)):c=-1);-1!==c;){u=e[c+8];var d=e[1];if(Pr(o,c,d.data)){var h=wr(c,e,n,s,r,l);if(h!==Cr)return h}xr(r,e[1].data[c+8]===l)&&Pr(o,c,e)?(s=d,c=or(u),e=sr(u,e)):c=-1}}}if(r&Pt.Optional&&void 0===i&&(i=null),0==(r&(Pt.Self|Pt.Host))){var p=e[9],f=le(void 0);try{return p?p.get(n,i,r&Pt.Optional):pe(n,i,r&Pt.Optional)}finally{le(f)}}if(r&Pt.Optional)return i;throw new Error("NodeInjector: NOT_FOUND [".concat(ur(n),"]"))}var Cr={};function wr(t,e,n,r,i,o){var a=e[1],s=a.data[t+8],c=function(t,e,n,r,i){for(var o=t.providerIndexes,a=e.data,s=1048575&o,c=t.directiveStart,u=o>>20,l=i?s+u:t.directiveEnd,d=r?s:s+u;d=c&&h.type===n)return d}if(i){var p=a[c];if(p&&We(p)&&p.type===n)return c}return null}(s,a,n,null==r?He(s)&&hr:r!=a&&3===s.type,i&Pt.Host&&o===s);return null!==c?kr(e,a,c,s):Cr}function kr(t,e,n,r){var i=t[n],o=e.data;if(i instanceof Qn){var a=i;if(a.resolving)throw new Error("Circular dep for ".concat(ur(o[n])));var s,c=pr(a.canSeeViewProviders);a.resolving=!0,a.injectImpl&&(s=le(a.injectImpl)),Dn(t,r);try{i=t[n]=a.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){var r=e.type.prototype,i=r.ngOnInit,o=r.ngDoCheck;if(r.ngOnChanges){var a=Ke(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,a)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{a.injectImpl&&le(s),pr(c),a.resolving=!1,jn()}}return i}function Or(t){if("string"==typeof t)return t.charCodeAt(0)||0;var e=t.hasOwnProperty(ne)?t[ne]:void 0;return"number"==typeof e&&e>0?255&e:e}function Pr(t,e,n){var r=64&t,i=32&t;return!!((128&t?r?i?n[e+7]:n[e+6]:i?n[e+5]:n[e+4]:r?i?n[e+3]:n[e+2]:i?n[e+1]:n[e])&1<1?e-1:0),r=1;r"),!0}},{key:"endElement",value:function(t){var e=t.nodeName.toLowerCase();ii.hasOwnProperty(e)&&!ti.hasOwnProperty(e)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(hi(t))}},{key:"checkClobberedElement",value:function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(t.outerHTML));return e}}]),t}(),li=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,di=/([^\#-~ |!])/g;function hi(t){return t.replace(/&/g,"&").replace(li,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(di,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(//g,">")}function pi(t,e){var n=null;try{Xr=Xr||function(t){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(t){return!1}}()?new Wr:new $r(t)}(t);var r=e?String(e):"";n=Xr.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Xr.getInertBodyElement(r)}while(r!==o);var a=new ui,s=a.sanitizeChildren(fi(n)||n);return qr()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var c=fi(n)||n;c.firstChild;)c.removeChild(c.firstChild)}}function fi(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var vi=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function gi(t){var e=bi();return e?e.sanitize(vi.HTML,t)||"":Br(t,"HTML")?zr(t):pi(en(),cr(t))}function mi(t){var e=bi();return e?e.sanitize(vi.URL,t)||"":Br(t,"URL")?zr(t):Kr(cr(t))}function yi(t){var e=bi();if(e)return e.sanitize(vi.RESOURCE_URL,t)||"";if(Br(t,"ResourceURL"))return zr(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)")}function bi(){var t=yn();return t&&t[12]}function _i(t,e){t.__ngContext__=e}function Ci(t){throw new Error("Multiple components match node with tagname ".concat(t.tagName))}function wi(){throw new Error("Cannot mix multi providers and regular providers")}function ki(t,e,n){for(var r=t.length;;){var i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){var o=e.length;if(i+o===r||t.charCodeAt(i+o)<=32)return i}n=i+1}}function Oi(t,e,n){for(var r=0;ro?"":i[l+1].toLowerCase();var h=8&r?d:null;if(h&&-1!==ki(h,u,0)||2&r&&u!==d){if(Si(r))return!1;a=!0}}}}else{if(!a&&!Si(r)&&!Si(c))return!1;if(a&&Si(c))continue;a=!1,r=c|1&r}}return Si(r)||a}function Si(t){return 0==(1&t)}function Mi(t,e,n,r){if(null===e)return-1;var i=0;if(r||!n){for(var o=!1;i-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],r=0;r0?'="'+s+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""===i||Si(a)||(e+=Ai(o,i),i=""),r=a,o=o||!Si(r);n++}return""!==i&&(e+=Ai(o,i)),e}var Di={};function Vi(t){var e=t[3];return Ue(e)?e[3]:e}function Li(t){return Fi(t[13])}function Ri(t){return Fi(t[4])}function Fi(t){for(;null!==t&&!Ue(t);)t=t[4];return t}function ji(t){zi(bn(),yn(),Un()+t,Pn())}function zi(t,e,n,r){if(!r)if(3==(3&e[2])){var i=t.preOrderCheckHooks;null!==i&&$n(e,i,n)}else{var o=t.preOrderHooks;null!==o&&Zn(e,o,0,n)}Gn(n)}function Bi(t,e){return t<<17|e<<2}function Ui(t){return t>>17&32767}function Gi(t){return 2|t}function Hi(t){return(131068&t)>>2}function qi(t,e){return-131069&t|e<<2}function Wi(t){return 1|t}function $i(t,e){var n=t.contentQueries;if(null!==n)for(var r=0;r20&&zi(t,e,0,Pn()),n(r,i)}finally{Gn(o)}}function eo(t,e,n){if(Ge(e))for(var r=e.directiveEnd,i=e.directiveStart;i2&&void 0!==arguments[2]?arguments[2]:sn,r=e.localNames;if(null!==r)for(var i=e.index+1,o=0;o0&&function t(e){for(var n=Li(e);null!==n;n=Ri(n))for(var r=10;r0&&t(i)}var a=e[1].components;if(null!==a)for(var s=0;s0&&t(c)}}(n)}}function ko(t,e){var n=ln(e,t),r=n[1];!function(t,e){for(var n=e.length;n0&&(t[n-1][4]=r[4]);var o=Ce(t,10+e);Fo(r[1],r,!1,null);var a=o[19];null!==a&&a.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Bo(t,e){if(!(256&e[2])){var n=e[11];nn(n)&&n.destroyNode&&Xo(t,e,n,3,null,null),function(t){var e=t[13];if(!e)return Go(t[1],t);for(;e;){var n=null;if(Be(e))n=e[13];else{var r=e[10];r&&(n=r)}if(!n){for(;e&&!e[4]&&e!==t;)Be(e)&&Go(e[1],e),e=Uo(e,t);null===e&&(e=t),Be(e)&&Go(e[1],e),n=e&&e[4]}e=n}}(e)}}function Uo(t,e){var n;return Be(t)&&(n=t[6])&&2===n.type?Do(n,t):t[3]===e?null:t[3]}function Go(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){var n;if(null!=t&&null!=(n=t.destroyHooks))for(var r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);e[7]=null}}(t,e);var n=e[6];n&&3===n.type&&nn(e[11])&&e[11].destroy();var r=e[17];if(null!==r&&Ue(e[3])){r!==e[3]&&jo(r,e);var i=e[19];null!==i&&i.detachView(t)}}}function Ho(t,e,n){for(var r=e.parent;null!=r&&(4===r.type||5===r.type);)r=(e=r).parent;if(null==r){var i=n[6];return 2===i.type?Vo(i,n):n[0]}if(e&&5===e.type&&4&e.flags)return sn(e,n).parentNode;if(2&r.flags){var o=t.data,a=o[o[r.index].directiveStart].encapsulation;if(a!==xe.ShadowDom&&a!==xe.Native)return null}return sn(r,n)}function qo(t,e,n,r){nn(t)?t.insertBefore(e,n,r):e.insertBefore(n,r,!0)}function Wo(t,e,n){nn(t)?t.appendChild(e,n):e.appendChild(n)}function $o(t,e,n,r){null!==r?qo(t,e,n,r):Wo(t,e,n)}function Zo(t,e){return nn(t)?t.parentNode(e):e.parentNode}function Yo(t,e){if(2===t.type){var n=Do(t,e);return null===n?null:Jo(n.indexOf(e,10)-10,n)}return 4===t.type||5===t.type?sn(t,e):null}function Ko(t,e,n,r){var i=Ho(t,r,e);if(null!=i){var o=e[11],a=Yo(r.parent||e[6],e);if(Array.isArray(n))for(var s=0;s4&&void 0!==arguments[4]&&arguments[4];null!==r;){var a=n[r.index];if(null!==a&&i.push(on(a)),Ue(a))for(var s=10;s-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Bo(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){var e,n,r;e=this._lView[1],n=t,(r=Eo(this._lView)).push(null),e.firstCreatePass&&function(t){return t.cleanup||(t.cleanup=[])}(e).push(n,r.length-1)}},{key:"markForCheck",value:function(){Po(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){xo(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(t,e,n){xn(!0);try{xo(t,e,n)}finally{xn(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}},{key:"detachFromAppRef",value:function(){var t;this._appRef=null,Xo(this._lView[1],t=this._lView,t[11],2,null,null)}},{key:"attachToAppRef",value:function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}]),t}(),ca=function(t){p(n,t);var e=m(n);function n(t){var r;return y(this,n),(r=e.call(this,t))._view=t,r}return _(n,[{key:"detectChanges",value:function(){Io(this._view)}},{key:"checkNoChanges",value:function(){!function(t){xn(!0);try{Io(t)}finally{xn(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(sa);function ua(t,e,n){return ia||(ia=function(t){p(n,t);var e=m(n);function n(){return y(this,n),e.apply(this,arguments)}return _(n)}(t)),new ia(sn(e,n))}function la(t,e,n,r){return oa||(oa=function(t){p(n,t);var e=m(n);function n(t,r,i){var o;return y(this,n),(o=e.call(this))._declarationView=t,o._declarationTContainer=r,o.elementRef=i,o}return _(n,[{key:"createEmbeddedView",value:function(t){var e=this._declarationTContainer.tViews,n=Yi(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];var r=this._declarationView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),Ji(e,n,t),new sa(n)}}]),n}(t)),0===n.type?new oa(r,n,ua(e,n,r)):null}function da(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return ha(Cn(),yn(),t)}function ha(t,e,n){if(!n&&He(t)){var r=ln(t.index,e);return new sa(r,r)}return 3===t.type||0===t.type||4===t.type||5===t.type?new sa(e[16],e):null}var pa=function(){var t=_((function t(){y(this,t)}));return t.__NG_ELEMENT_ID__=function(){return fa()},t}(),fa=da,va=Function,ga=new re("Set Injector scope."),ma={},ya={},ba=[],_a=void 0;function Ca(){return void 0===_a&&(_a=new ve),_a}function wa(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new ka(t,n,e||Ca(),r)}var ka=function(){function t(e,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;y(this,t),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&be(n,(function(t){return i.processProvider(t,e,n)})),be([e],(function(t){return i.processInjectorType(t,[],a)})),this.records.set(ie,xa(void 0,this));var s=this.records.get(ga);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof e?null:Ft(e))}return _(t,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(t){return t.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Pt.Default;this.assertNotDestroyed();var r=ue(this);try{if(!(n&Pt.SkipSelf)){var i=this.records.get(t);if(void 0===i){var o=Ma(t)&&Et(t);i=o&&this.injectableDefInScope(o)?xa(Oa(t),ma):null,this.records.set(t,i)}if(null!=i)return this.hydrate(t,i)}var a=n&Pt.Self?Ca():this.parent;return a.get(t,e=n&Pt.Optional&&e===oe?null:e)}catch(c){if("NullInjectorError"===c.name){var s=c.ngTempTokenPath=c.ngTempTokenPath||[];if(s.unshift(Ft(t)),r)throw c;return ge(c,t,"R3InjectorError",this.source)}throw c}finally{ue(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach((function(e){return t.get(e)}))}},{key:"toString",value:function(){var t=[];return this.records.forEach((function(e,n){return t.push(Ft(n))})),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,e,n){var r=this;if(!(t=Ut(t)))return!1;var i=At(t),o=null==i&&t.ngModule||void 0,a=void 0===o?t:o,s=-1!==n.indexOf(a);if(void 0!==o&&(i=At(o)),null==i)return!1;if(null!=i.imports&&!s){var c;n.push(a);try{be(i.imports,(function(t){r.processInjectorType(t,e,n)&&(void 0===c&&(c=[]),c.push(t))}))}finally{}if(void 0!==c)for(var u=function(t){var e=c[t],n=e.ngModule,i=e.providers;be(i,(function(t){return r.processProvider(t,n,i||ba)}))},l=0;l0){var n=we(e,"?");throw new Error("Can't resolve all parameters for ".concat(Ft(t),": (").concat(n.join(", "),")."))}var r=function(t){var e=t&&(t[Nt]||t[Lt]||t[Vt]&&t[Vt]());if(e){var n=function(t){if(t.hasOwnProperty("name"))return t.name;var e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(n,'" class.')),e}return null}(t);return null!==r?function(){return r.factory(t)}:function(){return new t}}(t);throw new Error("unreachable")}function Pa(t,e,n){var r,i=void 0;if(Sa(t)){var o=Ut(t);return je(o)||Oa(o)}if(Ia(t))i=function(){return Ut(t.useValue)};else if((r=t)&&r.useFactory)i=function(){return t.useFactory.apply(t,u(fe(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))i=function(){return he(Ut(t.useExisting))};else{var a=Ut(t&&(t.useClass||t.provide));if(a||function(t,e,n){var r="";if(t&&e){var i=e.map((function(t){return t==n?"?"+n+"?":"..."}));r=" - only instances of Provider and Type are allowed, got: [".concat(i.join(", "),"]")}throw new Error("Invalid provider for the NgModule '".concat(Ft(t),"'")+r)}(e,n,t),!function(t){return!!t.deps}(t))return je(a)||Oa(a);i=function(){return C(a,u(fe(t.deps)))}}return i}function xa(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:t,value:e,multi:n?[]:void 0}}function Ia(t){return null!==t&&"object"==typeof t&&se in t}function Sa(t){return"function"==typeof t}function Ma(t){return"function"==typeof t||"object"==typeof t&&t instanceof re}var Ea=function(t,e,n){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i=wa(t,e,n,r);return i._resolveInjectorDefTypes(),i}({name:n},e,t,n)},Ta=function(){var t=function(){function t(){y(this,t)}return _(t,null,[{key:"create",value:function(t,e){return Array.isArray(t)?Ea(t,e,""):Ea(t.providers,t.parent,t.name||"")}}]),t}();return t.THROW_IF_NOT_FOUND=oe,t.NULL=new ve,t.\u0275prov=St({token:t,providedIn:"any",factory:function(){return he(ie)}}),t.__NG_ELEMENT_ID__=-1,t}(),Aa=new re("AnalyzeForEntryComponents");function Na(t,e,n){var r=n?t.styles:null,i=n?t.classes:null,o=0;if(null!==e)for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:Pt.Default,n=yn();if(null==n)return he(t,e);var r=Cn();return _r(r,n,Ut(t),e)}function $a(t,e,n){var r=yn();return za(r,Mn(),e)&&function(t,e,n,r,i,o,a,s){var c,u,l=sn(e,n),d=e.inputs;null!=d&&(c=d[r])?(Ao(t,n,c,r,i),He(e)&&function(t,e){var n=ln(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3===e.type&&(r="class"===(u=r)?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u,i=null!=a?a(i,e.tagName||"",r):i,nn(o)?o.setProperty(l,r,i):er(r)||(l.setProperty?l.setProperty(r,i):l[r]=i))}(bn(),Hn(),r,t,e,r[11],n),$a}function Za(t,e,n,r,i){var o=i?"class":"style";Ao(t,n,e.inputs[o],o,r)}function Ya(t,e,n,r){var i=yn(),o=bn(),a=20+t,s=i[11],c=i[a]=Zi(e,s,gn.lFrame.currentNamespace),u=o.firstCreatePass?function(t,e,n,r,i,o,a){var s=e.consts,c=pn(s,o),u=Ki(e,n[6],t,3,i,c);return co(e,n,u,pn(s,a)),null!==u.attrs&&Na(u,u.attrs,!1),null!==u.mergedAttrs&&Na(u,u.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,u),u}(t,o,i,0,e,n,r):o.data[a];wn(u,!0);var l=u.mergedAttrs;null!==l&&Xn(s,c,l);var d=u.classes;null!==d&&ra(s,c,d);var h=u.styles;null!==h&&na(s,c,h),Ko(o,i,c,u),0===gn.lFrame.elementDepthCount&&_i(c,i),gn.lFrame.elementDepthCount++,qe(u)&&(no(o,i,u),eo(o,u,i)),null!==r&&ro(i,u)}function Ka(){var t=Cn();kn()?On():wn(t=t.parent,!1);var e=t;gn.lFrame.elementDepthCount--;var n=bn();n.firstCreatePass&&(Wn(n,t),Ge(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&Za(n,e,yn(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&Za(n,e,yn(),e.stylesWithoutHost,!1)}function Ja(t,e,n,r){Ya(t,e,n,r),Ka()}function Qa(t,e,n){var r=yn(),i=bn(),o=t+20,a=i.firstCreatePass?function(t,e,n,r,i){var o=e.consts,a=pn(o,r),s=Ki(e,n[6],t,4,"ng-container",a);return null!==a&&Na(s,a,!0),co(e,n,s,pn(o,i)),null!==e.queries&&e.queries.elementStart(e,s),s}(t,i,r,e,n):i.data[o];wn(a,!0);var s=r[o]=r[11].createComment("");Ko(i,r,s,a),_i(s,r),qe(a)&&(no(i,r,a),eo(i,a,r)),null!=n&&ro(r,a)}function Xa(){var t=Cn(),e=bn();kn()?On():wn(t=t.parent,!1),e.firstCreatePass&&(Wn(e,t),Ge(t)&&e.queries.elementEnd(t))}function ts(){return yn()}function es(t){return!!t&&"function"==typeof t.then}function ns(t){return!!t&&"function"==typeof t.subscribe}function rs(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=yn(),o=bn(),a=Cn();return os(o,i,i[11],a,t,e,n,r),rs}function is(t,e,n,r){var i=t.cleanup;if(null!=i)for(var o=0;oc?s[c]:null}"string"==typeof a&&(o+=2)}return null}function os(t,e,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,c=qe(r),u=t.firstCreatePass,l=u&&(t.cleanup||(t.cleanup=[])),d=Eo(e),h=!0;if(3===r.type){var p=sn(r,e),f=s?s(p):Ie,v=f.target||p,g=d.length,m=s?function(t){return s(on(t[r.index])).target}:r.index;if(nn(n)){var y=null;if(!s&&c&&(y=is(t,e,i,r.index)),null!==y){var b=y.__ngLastListenerFn__||y;b.__ngNextListenerFn__=o,y.__ngLastListenerFn__=o,h=!1}else{o=ss(r,e,o,!1);var _=n.listen(f.name||v,i,o);d.push(o,_),l&&l.push(i,m,g,g+1)}}else o=ss(r,e,o,!0),v.addEventListener(i,o,a),d.push(o),l&&l.push(i,m,g,a)}var C,w=r.outputs;if(h&&null!==w&&(C=w[i])){var k=C.length;if(k)for(var O=0;O0&&void 0!==arguments[0]?arguments[0]:1;return Bn(t)}function us(t,e){for(var n=null,r=function(t){var e=t.attrs;if(null!=e){var n=e.indexOf(5);if(0==(1&n))return e[n+1]}return null}(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=yn(),i=bn(),o=Ki(i,r[6],t,1,null,n||null);null===o.projection&&(o.projection=e),On(),ta(i,r,o)}var hs=[];function ps(t,e,n,r,i){for(var o=t[n+1],a=null===e,s=r?Ui(o):Hi(o),c=!1;0!==s&&(!1===c||a);){var u=t[s+1];fs(t[s],e)&&(c=!0,t[s+1]=r?Wi(u):Gi(u)),s=r?Ui(u):Hi(u)}c&&(t[n+1]=r?Gi(o):Wi(o))}function fs(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&Oe(t,e)>=0}function vs(t,e,n){return ms(t,e,n,!1),vs}function gs(t,e){return ms(t,e,null,!0),gs}function ms(t,e,n,r){var i=yn(),o=bn(),a=En(2);o.firstUpdatePass&&function(t,e,n,r){var i=t.data;if(null===i[n+1]){var o=i[Un()+20],a=function(t,e){return e>=t.expandoStartIndex}(t,n);(function(t,e){return 0!=(t.flags&(e?16:32))})(o,r)&&null===e&&!a&&(e=!1),e=function(t,e,n,r){var i=function(t){var e=gn.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t),o=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(n=bs(n=ys(null,t,e,n,r),e.attrs,r),o=null);else{var a=e.directiveStylingLast;if(-1===a||t[a]!==i)if(n=ys(i,t,e,n,r),null===o){var s=function(t,e,n){var r=n?e.classBindings:e.styleBindings;if(0!==Hi(r))return t[Ui(r)]}(t,e,r);void 0!==s&&Array.isArray(s)&&function(t,e,n,r){t[Ui(n?e.classBindings:e.styleBindings)]=r}(t,e,r,s=bs(s=ys(null,t,e,s[1],r),e.attrs,r))}else o=function(t,e,n){for(var r=void 0,i=e.directiveEnd,o=1+e.directiveStylingLast;o0)&&(l=!0):u=n,i)if(0!==c){var d=Ui(t[s+1]);t[r+1]=Bi(d,s),0!==d&&(t[d+1]=qi(t[d+1],r)),t[s+1]=131071&t[s+1]|r<<17}else t[r+1]=Bi(s,0),0!==s&&(t[s+1]=qi(t[s+1],r)),s=r;else t[r+1]=Bi(c,0),0===s?s=r:t[c+1]=qi(t[c+1],r),c=r;l&&(t[r+1]=Gi(t[r+1])),ps(t,u,r,!0),ps(t,u,r,!1),function(t,e,n,r,i){var o=i?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&Oe(o,e)>=0&&(n[r+1]=Wi(n[r+1]))}(e,u,t,r,o),a=Bi(s,c),o?e.classBindings=a:e.styleBindings=a}(i,o,e,n,a,r)}}(o,t,a,r),e!==Di&&za(i,a,e)&&function(t,e,n,r,i,o,a,s){if(3===e.type){var c=t.data,u=c[s+1];Cs(1==(1&u)?_s(c,e,n,i,Hi(u),a):void 0)||(Cs(o)||function(t){return 2==(2&t)}(u)&&(o=_s(c,null,n,i,s,a)),function(t,e,n,r,i){var o=nn(t);if(e)i?o?t.addClass(n,r):n.classList.add(r):o?t.removeClass(n,r):n.classList.remove(r);else{var a=-1==r.indexOf("-")?void 0:2;null==i?o?t.removeStyle(n,r,a):n.style.removeProperty(r):o?t.setStyle(n,r,i,a):n.style.setProperty(r,i)}}(r,a,an(Un(),n),i,o))}}(o,o.data[Un()+20],i,i[11],t,i[a+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=Ft(zr(t)))),t}(e,n),r,a)}function ys(t,e,n,r,i){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s=0?r[1|a]=o:function(t,e,n,r){var i=t.length;if(i==e)t.push(n,r);else if(1===i)t.push(r,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;)t[i]=t[i-2],i--;t[e]=n,t[e+1]=r}}(r,a=~a,i,o))}return void 0===t?null:t}function _s(t,e,n,r,i,o){for(var a=null===e,s=void 0;i>0;){var c=t[i],u=Array.isArray(c),l=u?c[1]:c,d=null===l,h=n[i+1];h===Di&&(h=d?hs:void 0);var p=d?ke(h,r):l===r?h:void 0;if(u&&!Cs(p)&&(p=ke(c,r)),Cs(p)&&(s=p,a))return s;var f=t[i+1];i=a?Ui(f):Hi(f)}if(null!==e){var v=o?e.residualClasses:e.residualStyles;null!=v&&(s=ke(v,r))}return s}function Cs(t){return void 0!==t}function ws(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=yn(),r=bn(),i=t+20,o=r.firstCreatePass?Ki(r,n[6],t,3,null,null):r.data[i],a=n[i]=Ro(e,n[11]);Ko(r,n,a,o),wn(o,!1)}function ks(t){return Os("",t,""),ks}function Os(t,e,n){var r=yn(),i=function(t,e,n,r){return za(t,Mn(),n)?e+cr(n)+r:Di}(r,t,e,n);return i!==Di&&No(r,Un(),i),Os}function Ps(t,e,n,r,i){var o=yn(),a=function(t,e,n,r,i,o){var a=Ba(t,Sn(),n,i);return En(2),a?e+cr(n)+r+cr(i)+o:Di}(o,t,e,n,r,i);return a!==Di&&No(o,Un(),a),Ps}function xs(t,e,n,r,i,o,a){var s=yn(),c=function(t,e,n,r,i,o,a,s){var c=Ua(t,Sn(),n,i,a);return En(3),c?e+cr(n)+r+cr(i)+o+cr(a)+s:Di}(s,t,e,n,r,i,o,a);return c!==Di&&No(s,Un(),c),xs}function Is(t,e){var n=dn(t)[1],r=n.data.length-1;Wn(n,{directiveStart:r,directiveEnd:r+1})}function Ss(t){for(var e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0,r=[t];e;){var i=void 0;if(We(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");i=e.\u0275dir}if(i){if(n){r.push(i);var o=t;o.inputs=Ms(t.inputs),o.declaredInputs=Ms(t.declaredInputs),o.outputs=Ms(t.outputs);var a=i.hostBindings;a&&As(t,a);var s=i.viewQuery,c=i.contentQueries;if(s&&Es(t,s),c&&Ts(t,c),It(t.inputs,i.inputs),It(t.declaredInputs,i.declaredInputs),It(t.outputs,i.outputs),We(i)&&i.data.animation){var u=t.data;u.animation=(u.animation||[]).concat(i.data.animation)}}var l=i.features;if(l)for(var d=0;d=0;r--){var i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=nr(i.hostAttrs,n=nr(n,i.hostAttrs))}}(r)}function Ms(t){return t===Ie?{}:t===Se?[]:t}function Es(t,e){var n=t.viewQuery;t.viewQuery=n?function(t,r){e(t,r),n(t,r)}:e}function Ts(t,e){var n=t.contentQueries;t.contentQueries=n?function(t,r,i){e(t,r,i),n(t,r,i)}:e}function As(t,e){var n=t.hostBindings;t.hostBindings=n?function(t,r){e(t,r),n(t,r)}:e}function Ns(t,e,n){var r=bn();if(r.firstCreatePass){var i=We(t);Ds(n,r.data,r.blueprint,i,!0),Ds(e,r.data,r.blueprint,i,!1)}}function Ds(t,e,n,r,i){if(t=Ut(t),Array.isArray(t))for(var o=0;o>20;if(Sa(t)||!t.multi){var f=new Qn(u,i,Wa),v=Rs(c,e,i?d:d+p,h);-1===v?(br(vr(l,s),a,c),Vs(a,t,e.length),e.push(c),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(f),s.push(f)):(n[v]=f,s[v]=f)}else{var g=Rs(c,e,d+p,h),m=Rs(c,e,d,d+p),y=m>=0&&n[m];if(i&&!y||!i&&!(g>=0&&n[g])){br(vr(l,s),a,c);var b=function(t,e,n,r,i){var o=new Qn(t,n,Wa);return o.multi=[],o.index=e,o.componentProviders=0,Ls(o,i,r&&!n),o}(i?js:Fs,n.length,i,r,u);!i&&y&&(n[m].providerFactory=b),Vs(a,t,e.length,0),e.push(c),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(b),s.push(b)}else Vs(a,t,g>-1?g:m,Ls(n[i?m:g],u,!i&&r));!i&&r&&y&&n[m].componentProviders++}}}function Vs(t,e,n,r){var i=Sa(e);if(i||e.useClass){var o=(e.useClass||e).prototype.ngOnDestroy;if(o){var a=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){var s=a.indexOf(n);-1===s?a.push(n,[r,o]):a[s+1].push(r,o)}else a.push(n,o)}}}function Ls(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Rs(t,e,n,r){for(var i=n;i1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return Ns(n,r?r(t):t,e)}}}var Us=_((function t(){y(this,t)})),Gs=_((function t(){y(this,t)})),Hs=function(){function t(){y(this,t)}return _(t,[{key:"resolveComponentFactory",value:function(t){throw function(t){var e=Error("No component factory found for ".concat(Ft(t),". Did you add it to @NgModule.entryComponents?"));return e.ngComponent=t,e}(t)}}]),t}(),qs=function(){var t=_((function t(){y(this,t)}));return t.NULL=new Hs,t}(),Ws=function(){var t=_((function t(e){y(this,t),this.nativeElement=e}));return t.__NG_ELEMENT_ID__=function(){return $s(t)},t}(),$s=function(t){return ua(t,Cn(),yn())},Zs=_((function t(){y(this,t)})),Ys=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({}),Ks=function(){var t=_((function t(){y(this,t)}));return t.__NG_ELEMENT_ID__=function(){return Js()},t}(),Js=function(){var t=yn(),e=ln(Cn().index,t);return function(t){var e=t[11];if(nn(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Be(e)?e:t)},Qs=function(){var t=_((function t(){y(this,t)}));return t.\u0275prov=St({token:t,providedIn:"root",factory:function(){return null}}),t}(),Xs=new(_((function t(e){y(this,t),this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")})))("10.0.14"),tc=function(){function t(){y(this,t)}return _(t,[{key:"supports",value:function(t){return Ra(t)}},{key:"create",value:function(t){return new nc(t)}}]),t}(),ec=function(t,e){return e},nc=function(){function t(e){y(this,t),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||ec}return _(t,[{key:"forEachItem",value:function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)}},{key:"forEachOperation",value:function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex1;)s=(a=a[15])[6],o--;return s}(t,this._hostView,this._hostTNode);return ir(t)&&null!=n?new Ir(n,e):new Ir(null,this._hostView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r}},{key:"createComponent",value:function(t,e,n,r,i){var o=n||this.parentInjector;if(!i&&null==t.ngModule&&o){var a=o.get(me,null);a&&(i=a)}var s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s}},{key:"insert",value:function(t,e){var n=t._lView,r=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Ue(n[3])){var i=this.indexOf(t);if(-1!==i)this.detach(i);else{var o=n[3],a=new aa(o,o[6],o[3]);a.detach(a.indexOf(t))}}var s=this._adjustIndex(e);return function(t,e,n,r){var i=10+r,o=n.length;r>0&&(n[i-1][4]=e),r1&&void 0!==arguments[1]?arguments[1]:0;return null==t?this.length+e:t}},{key:"allocateContainerIfNeeded",value:function(){null===this._lContainer[8]&&(this._lContainer[8]=[])}}]),r}(t));var o=r[n.index];if(Ue(o))i=o;else{var a;if(4===n.type)a=on(o);else if(a=r[11].createComment(""),$e(r)){var s=r[11],c=sn(n,r);qo(s,Zo(s,c),a,function(t,e){return nn(t)?t.nextSibling(e):e.nextSibling}(s,c))}else Ko(r[1],r,a,n);r[n.index]=i=Co(o,r,a,n),Oo(r,i)}return new aa(i,n,r)}(t,e,Cn(),yn())},bc={},_c=function(t){p(n,t);var e=m(n);function n(t){var r;return y(this,n),(r=e.call(this)).ngModule=t,r}return _(n,[{key:"resolveComponentFactory",value:function(t){var e=Fe(t);return new kc(e,this.ngModule)}}]),n}(qs);function Cc(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var wc=new re("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return lr}}),kc=function(t){p(n,t);var e=m(n);function n(t,r){var i;return y(this,n),(i=e.call(this)).componentDef=t,i.ngModule=r,i.componentType=t.type,i.selector=t.selectors.map(Ni).join(","),i.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],i.isBoundToModule=!!r,i}return _(n,[{key:"inputs",get:function(){return Cc(this.componentDef.inputs)}},{key:"outputs",get:function(){return Cc(this.componentDef.outputs)}},{key:"create",value:function(t,e,n,r){var i,o,a=(r=r||this.ngModule)?function(t,e){return{get:function(n,r,i){var o=t.get(n,bc,i);return o!==bc||r===bc?o:e.get(n,r,i)}}}(t,r.injector):t,s=a.get(Zs,rn),c=a.get(Qs,null),u=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",d=n?function(t,e,n){if(nn(t))return t.selectRootElement(e,n===xe.ShadowDom);var r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(u,n,this.componentDef.encapsulation):Zi(l,s.createRenderer(null,this.componentDef),function(t){var e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,p={components:[],scheduler:lr,clean:Mo,playerHandler:null,flags:0},f=oo(0,-1,null,1,0,null,null,null,null,null),v=Yi(null,f,p,h,null,null,s,u,c,a);Vn(v,null);try{var g=function(t,e,n,r,i,o){var a=n[1];n[20]=t;var s=Ki(a,null,0,3,null,null),c=s.mergedAttrs=e.hostAttrs;null!==c&&(Na(s,c,!0),null!==t&&(Xn(i,t,c),null!==s.classes&&ra(i,t,s.classes),null!==s.styles&&na(i,t,s.styles)));var u=r.createRenderer(t,e),l=Yi(n,io(e),null,e.onPush?64:16,n[20],s,r,u,void 0);return a.firstCreatePass&&(br(vr(s,n),a,e.type),fo(a,s),go(s,n.length,1)),Oo(n,l),n[20]=l}(d,this.componentDef,v,s,u);if(d)if(n)Xn(u,d,["ng-version",Xs.full]);else{var m=function(t){for(var e=[],n=[],r=1,i=2;r0&&ra(u,d,b.join(" "))}if(o=cn(f,0),void 0!==e)for(var _=o.projection=[],C=0;C ".concat(null," ").concat("!="," ").concat(e," <=Actual]"))}(n,e),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}var Ac=new Map,Nc=function(t){p(n,t);var e=m(n);function n(t,r){var i;y(this,n),(i=e.call(this))._parent=r,i._bootstrapComponents=[],i.injector=o(i),i.destroyCbs=[],i.componentFactoryResolver=new _c(o(i));var a=ze(t),s=t[te]||null;return s&&Tc(s),i._bootstrapComponents=dr(a.bootstrap),i._r3Injector=wa(t,r,[{provide:me,useValue:o(i)},{provide:qs,useValue:i.componentFactoryResolver}],Ft(t)),i._r3Injector._resolveInjectorDefTypes(),i.instance=i.get(t),i}return _(n,[{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ta.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Pt.Default;return t===Ta||t===me||t===ie?this:this._r3Injector.get(t,e,n)}},{key:"destroy",value:function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach((function(t){return t()})),this.destroyCbs=null}},{key:"onDestroy",value:function(t){this.destroyCbs.push(t)}}]),n}(me),Dc=function(t){p(n,t);var e=m(n);function n(t){var r;return y(this,n),(r=e.call(this)).moduleType=t,null!==ze(t)&&function t(e){if(null!==e.\u0275mod.id){var n=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error("Duplicate module registered for ".concat(t," - ").concat(Ft(e)," vs ").concat(Ft(e.name)))})(n,Ac.get(n),e),Ac.set(n,e)}var r=e.\u0275mod.imports;r instanceof Function&&(r=r()),r&&r.forEach((function(e){return t(e)}))}(t),r}return _(n,[{key:"create",value:function(t){return new Nc(this.moduleType,t)}}]),n}(ye);function Vc(t,e,n,r){return Rc(yn(),In(),t,e,n,r)}function Lc(t,e){var n=t[e];return n===Di?void 0:n}function Rc(t,e,n,r,i,o){var a=e+n;return za(t,a,i)?ja(t,a+1,o?r.call(o,i):r(i)):Lc(t,a+1)}function Fc(t,e){var n,r=bn(),i=t+20;r.firstCreatePass?(n=function(t,e){if(e)for(var n=e.length-1;n>=0;n--){var r=e[n];if(t===r.name)return r}throw new Error("The pipe '".concat(t,"' could not be found!"))}(e,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var o=n.factory||(n.factory=je(n.type)),a=le(Wa),s=pr(!1),c=o();return pr(s),le(a),function(t,e,n,r){var i=n+20;i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=r}(r,yn(),t,c),c}function jc(t,e,n){var r=yn(),i=un(r,t);return Bc(r,zc(r,t)?Rc(r,In(),e,i.transform,n,i):i.transform(n))}function zc(t,e){return t[1].data[e+20].pure}function Bc(t,e){return La.isWrapped(e)&&(e=La.unwrap(e),t[Sn()]=Di),e}var Uc=function(t){p(n,t);var e=m(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return y(this,n),(t=e.call(this)).__isAsync=r,t}return _(n,[{key:"emit",value:function(t){i(r(n.prototype),"next",this).call(this,t)}},{key:"subscribe",value:function(t,e,o){var a,s=function(t){return null},c=function(){return null};t&&"object"==typeof t?(a=this.__isAsync?function(e){setTimeout((function(){return t.next(e)}))}:function(e){t.next(e)},t.error&&(s=this.__isAsync?function(e){setTimeout((function(){return t.error(e)}))}:function(e){t.error(e)}),t.complete&&(c=this.__isAsync?function(){setTimeout((function(){return t.complete()}))}:function(){t.complete()})):(a=this.__isAsync?function(e){setTimeout((function(){return t(e)}))}:function(e){t(e)},e&&(s=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)}),o&&(c=this.__isAsync?function(){setTimeout((function(){return o()}))}:function(){o()}));var u=i(r(n.prototype),"subscribe",this).call(this,a,s,c);return t instanceof x&&t.add(u),u}}]),n}(G);function Gc(t,e){return la(vc,Ws,t,e)}var Hc=new re("Application Initializer"),qc=function(){var t=function(){function t(e){var n=this;y(this,t),this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((function(t,e){n.resolve=t,n.reject=e}))}return _(t,[{key:"runInitializers",value:function(){var t=this;if(!this.initialized){var e=[],n=function(){t.done=!0,t.resolve()};if(this.appInits)for(var r=0;r0&&(i=setTimeout((function(){r._callbacks=r._callbacks.filter((function(t){return t.timeoutId!==i})),t(r._didWork,r.getPendingTasks())}),e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(t,e,n){return[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(he(du))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),Cu=function(){var t=function(){function t(){y(this,t),this._applications=new Map,wu.addToWindow(this)}return _(t,[{key:"registerApplication",value:function(t,e){this._applications.set(t,e)}},{key:"unregisterApplication",value:function(t){this._applications.delete(t)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(t){return this._applications.get(t)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return wu.findTestabilityInTree(this,t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),wu=new(function(){function t(){y(this,t)}return _(t,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,e,n){return null}}]),t}()),ku=function(t,e,n){var r=new Dc(n);return Promise.resolve(r)},Ou=new re("AllowMultipleToken"),Pu=_((function t(e,n){y(this,t),this.name=e,this.token=n}));function xu(t){if(yu&&!yu.destroyed&&!yu.injector.get(Ou,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");yu=t.get(Eu);var e=t.get(Yc,null);return e&&e.forEach((function(t){return t()})),yu}function Iu(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: ".concat(e),i=new re(r);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Mu();if(!o||o.injector.get(Ou,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{var a=n.concat(e).concat({provide:i,useValue:!0},{provide:ga,useValue:"platform"});xu(Ta.create({providers:a,name:r}))}return Su(i)}}function Su(t){var e=Mu();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}function Mu(){return yu&&!yu.destroyed?yu:null}var Eu=function(){var t=function(){function t(e){y(this,t),this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _(t,[{key:"bootstrapModuleFactory",value:function(t,e){var n,r,i=this,o=(r=e&&e.ngZoneEventCoalescing||!1,"noop"===(n=e?e.ngZone:void 0)?new bu:("zone.js"===n?void 0:n)||new du({enableLongStackTrace:qr(),shouldCoalesceEventChangeDetection:r})),a=[{provide:du,useValue:o}];return o.run((function(){var e=Ta.create({providers:a,parent:i.injector,name:t.moduleType.name}),n=t.create(e),r=n.injector.get(Nr,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return Nu(i._modules,n)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(t){r.handleError(t)}})})),function(t,e,r){try{var o=((a=n.injector.get(qc)).runInitializers(),a.donePromise.then((function(){return Tc(n.injector.get(Xc,"en-US")||"en-US"),i._moduleDoBootstrap(n),n})));return es(o)?o.catch((function(n){throw e.runOutsideAngular((function(){return t.handleError(n)})),n})):o}catch(s){throw e.runOutsideAngular((function(){return t.handleError(s)})),s}var a}(r,o)}))}},{key:"bootstrapModule",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Tu({},n);return ku(0,0,t).then((function(t){return e.bootstrapModuleFactory(t,r)}))}},{key:"_moduleDoBootstrap",value:function(t){var e=t.injector.get(Au);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach((function(t){return e.bootstrap(t)}));else{if(!t.instance.ngDoBootstrap)throw new Error("The module ".concat(Ft(t.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");t.instance.ngDoBootstrap(e)}this._modules.push(t)}},{key:"onDestroy",value:function(t){this._destroyListeners.push(t)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(t){return t.destroy()})),this._destroyListeners.forEach((function(t){return t()})),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),t}();return t.\u0275fac=function(e){return new(e||t)(he(Ta))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}();function Tu(t,e){return Array.isArray(e)?e.reduce(Tu,t):Object.assign(Object.assign({},t),e)}var Au=function(){var t=function(){function t(e,n,r,i,o,a){var s=this;y(this,t),this._zone=e,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=qr(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run((function(){s.tick()}))}});var c=new F((function(t){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular((function(){t.next(s._stable),t.complete()}))})),u=new F((function(t){var e;s._zone.runOutsideAngular((function(){e=s._zone.onStable.subscribe((function(){du.assertNotInAngularZone(),lu((function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,t.next(!0))}))}))}));var n=s._zone.onUnstable.subscribe((function(){du.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular((function(){t.next(!1)})))}));return function(){e.unsubscribe(),n.unsubscribe()}}));this.isStable=function(){for(var t=Number.POSITIVE_INFINITY,e=null,n=arguments.length,r=new Array(n),i=0;i1&&"number"==typeof r[r.length-1]&&(t=r.pop())):"number"==typeof o&&(t=r.pop()),null===e&&1===r.length&&r[0]instanceof F?r[0]:ut(t)(lt(r,e))}(c,u.pipe((function(t){return dt()((e=mt,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,vt);return r.source=t,r.subjectFactory=n,r})(t));var e})))}return _(t,[{key:"bootstrap",value:function(t,e){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof Gs?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(me),o=n.create(Ta.NULL,[],e||n.selector,i);o.onDestroy((function(){r._unloadComponent(o)}));var a=o.injector.get(_u,null);return a&&o.injector.get(Cu).registerApplication(o.location.nativeElement,a),this._loadComponent(o),qr()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),o}},{key:"tick",value:function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var e,n=d(this._views);try{for(n.s();!(e=n.n()).done;)e.value.detectChanges()}catch(o){n.e(o)}finally{n.f()}if(this._enforceNoNewChanges){var r,i=d(this._views);try{for(i.s();!(r=i.n()).done;)r.value.checkNoChanges()}catch(o){i.e(o)}finally{i.f()}}}catch(a){this._zone.runOutsideAngular((function(){return t._exceptionHandler.handleError(a)}))}finally{this._runningTick=!1}}},{key:"attachView",value:function(t){var e=t;this._views.push(e),e.attachToAppRef(this)}},{key:"detachView",value:function(t){var e=t;Nu(this._views,e),e.detachFromAppRef()}},{key:"_loadComponent",value:function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Jc,[]).concat(this._bootstrapListeners).forEach((function(e){return e(t)}))}},{key:"_unloadComponent",value:function(t){this.detachView(t.hostView),Nu(this.components,t)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(t){return t.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),t}();return t.\u0275fac=function(e){return new(e||t)(he(du),he(Qc),he(Ta),he(Nr),he(qs),he(qc))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}();function Nu(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Du=_((function t(){y(this,t)})),Vu=_((function t(){y(this,t)})),Lu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Ru=function(){var t=function(){function t(e,n){y(this,t),this._compiler=e,this._config=n||Lu}return _(t,[{key:"load",value:function(t){return this.loadAndCompile(t)}},{key:"loadAndCompile",value:function(t){var e=this,r=c(t.split("#"),2),i=r[0],o=r[1];return void 0===o&&(o="default"),n("crnd")(i).then((function(t){return t[o]})).then((function(t){return Fu(t,i,o)})).then((function(t){return e._compiler.compileModuleAsync(t)}))}},{key:"loadFactory",value:function(t){var e=c(t.split("#"),2),r=e[0],i=e[1],o="NgFactory";return void 0===i&&(i="default",o=""),n("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then((function(t){return t[i+o]})).then((function(t){return Fu(t,r,i)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(he(cu),he(Vu,8))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}();function Fu(t,e,n){if(!t)throw new Error("Cannot find '".concat(n,"' in '").concat(e,"'"));return t}var ju=Iu(null,"core",[{provide:Kc,useValue:"unknown"},{provide:Eu,deps:[Ta]},{provide:Cu,deps:[]},{provide:Qc,deps:[]}]),zu=[{provide:Au,useClass:Au,deps:[du,Qc,Ta,Nr,qs,qc]},{provide:wc,deps:[du],useFactory:function(t){var e=[];return t.onStable.subscribe((function(){for(;e.length;)e.pop()()})),function(t){e.push(t)}}},{provide:qc,useClass:qc,deps:[[new wt,Hc]]},{provide:cu,useClass:cu,deps:[]},$c,{provide:lc,useFactory:function(){return pc},deps:[]},{provide:dc,useFactory:function(){return fc},deps:[]},{provide:Xc,useFactory:function(t){return Tc(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new Ct(Xc),new wt,new Ot]]},{provide:tu,useValue:"USD"}],Bu=function(){var t=_((function t(e){y(this,t)}));return t.\u0275mod=De({type:t}),t.\u0275inj=Mt({factory:function(e){return new(e||t)(he(Au))},providers:zu}),t}(),Uu={production:!0,companyName:"TIM",codigoOperadora:41,redirectUrl:"https://planoscontrole.tim.com.br/?utm_source=wooza&utm_medium=avi&utm_campaing=erro_ops_2.0",trackOrderUrl:"http://meupedido.tim.com.br/",isBroadband:!1,brand:"TIM"},Gu="https://avi-wf-timlive.wooza.com.br/api/bandalarga/",Hu=null;function qu(){return Hu}var Wu=_((function t(){y(this,t)})),$u=new re("DocumentToken"),Zu=function(){var t=_((function t(){y(this,t)}));return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({factory:Yu,token:t,providedIn:"platform"}),t}();function Yu(){return he(Ju)}var Ku=new re("Location Initialized"),Ju=function(){var t=function(t){p(n,t);var e=m(n);function n(t){var r;return y(this,n),(r=e.call(this))._doc=t,r._init(),r}return _(n,[{key:"_init",value:function(){this.location=qu().getLocation(),this._history=qu().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return qu().getBaseHref(this._doc)}},{key:"onPopState",value:function(t){qu().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}},{key:"onHashChange",value:function(t){qu().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(t){this.location.pathname=t}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(t,e,n){Qu()?this._history.pushState(t,e,n):this.location.hash=n}},{key:"replaceState",value:function(t,e,n){Qu()?this._history.replaceState(t,e,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}}]),n}(Zu);return t.\u0275fac=function(e){return new(e||t)(he($u))},t.\u0275prov=St({factory:Xu,token:t,providedIn:"platform"}),t}();function Qu(){return!!window.history.pushState}function Xu(){return new Ju(he($u))}function tl(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function el(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function nl(t){return t&&"?"!==t[0]?"?"+t:t}var rl=function(){var t=_((function t(){y(this,t)}));return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({factory:il,token:t,providedIn:"root"}),t}();function il(t){var e=he($u).location;return new al(he(Zu),e&&e.origin||"")}var ol=new re("appBaseHref"),al=function(){var t=function(t){p(n,t);var e=m(n);function n(t,r){var i;if(y(this,n),(i=e.call(this))._platformLocation=t,null==r&&(r=i._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return i._baseHref=r,i}return _(n,[{key:"onPopState",value:function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(t){return tl(this._baseHref,t)}},{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._platformLocation.pathname+nl(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?"".concat(e).concat(n):e}},{key:"pushState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+nl(r));this._platformLocation.pushState(t,e,i)}},{key:"replaceState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+nl(r));this._platformLocation.replaceState(t,e,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(rl);return t.\u0275fac=function(e){return new(e||t)(he(Zu),he(ol,8))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),sl=function(){var t=function(t){p(n,t);var e=m(n);function n(t,r){var i;return y(this,n),(i=e.call(this))._platformLocation=t,i._baseHref="",null!=r&&(i._baseHref=r),i}return _(n,[{key:"onPopState",value:function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}},{key:"prepareExternalUrl",value:function(t){var e=tl(this._baseHref,t);return e.length>0?"#"+e:e}},{key:"pushState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+nl(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)}},{key:"replaceState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+nl(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(rl);return t.\u0275fac=function(e){return new(e||t)(he(Zu),he(ol,8))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),cl=function(){var t=function(){function t(e,n){var r=this;y(this,t),this._subject=new Uc,this._urlChangeListeners=[],this._platformStrategy=e;var i=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=el(ll(i)),this._platformStrategy.onPopState((function(t){r._subject.emit({url:r.path(!0),pop:!0,state:t.state,type:t.type})}))}return _(t,[{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(t))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(t+nl(e))}},{key:"normalize",value:function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,ll(e)))}},{key:"prepareExternalUrl",value:function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}},{key:"go",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+nl(e)),n)}},{key:"replaceState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+nl(e)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(t){var e=this;this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe((function(t){e._notifyUrlChangeListeners(t.url,t.state)})))}},{key:"_notifyUrlChangeListeners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach((function(n){return n(t,e)}))}},{key:"subscribe",value:function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(he(rl),he(Zu))},t.normalizeQueryParams=nl,t.joinWithSlash=tl,t.stripTrailingSlash=el,t.\u0275prov=St({factory:ul,token:t,providedIn:"root"}),t}();function ul(){return new cl(he(rl),he(Zu))}function ll(t){return t.replace(/\/index.html$/,"")}var dl=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),hl=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),pl=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),fl=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),vl=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function gl(t,e){return Cl(Sc(t)[Ec.DateFormat],e)}function ml(t,e){return Cl(Sc(t)[Ec.TimeFormat],e)}function yl(t,e){return Cl(Sc(t)[Ec.DateTimeFormat],e)}function bl(t,e){var n=Sc(t),r=n[Ec.NumberSymbols][e];if(void 0===r){if(e===vl.CurrencyDecimal)return n[Ec.NumberSymbols][vl.Decimal];if(e===vl.CurrencyGroup)return n[Ec.NumberSymbols][vl.Group]}return r}function _l(t){if(!t[Ec.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(t[Ec.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function Cl(t,e){for(var n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function wl(t){var e=c(t.split(":"),2);return{hours:+e[0],minutes:+e[1]}}var kl=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ol={},Pl=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,xl=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),Il=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),Sl=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function Ml(t,e,n,r){var i=function(t){if(Gl(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();var e,n=parseFloat(t);if(!isNaN(t-n))return new Date(n);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){var r=c(t.split("-").map((function(t){return+t})),3);return new Date(r[0],r[1]-1,r[2])}if(e=t.match(kl))return function(t){var e=new Date(0),n=0,r=0,i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),r=Number(t[9]+t[11])),i.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));var a=Number(t[4]||0)-n,s=Number(t[5]||0)-r,c=Number(t[6]||0),u=Math.round(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,a,s,c,u),e}(e)}var i=new Date(t);if(!Gl(i))throw new Error('Unable to convert "'.concat(t,'" into a date'));return i}(t);e=function t(e,n){var r=function(t){return Sc(t)[Ec.LocaleId]}(e);if(Ol[r]=Ol[r]||{},Ol[r][n])return Ol[r][n];var i="";switch(n){case"shortDate":i=gl(e,fl.Short);break;case"mediumDate":i=gl(e,fl.Medium);break;case"longDate":i=gl(e,fl.Long);break;case"fullDate":i=gl(e,fl.Full);break;case"shortTime":i=ml(e,fl.Short);break;case"mediumTime":i=ml(e,fl.Medium);break;case"longTime":i=ml(e,fl.Long);break;case"fullTime":i=ml(e,fl.Full);break;case"short":var o=t(e,"shortTime"),a=t(e,"shortDate");i=El(yl(e,fl.Short),[o,a]);break;case"medium":var s=t(e,"mediumTime"),c=t(e,"mediumDate");i=El(yl(e,fl.Medium),[s,c]);break;case"long":var u=t(e,"longTime"),l=t(e,"longDate");i=El(yl(e,fl.Long),[u,l]);break;case"full":var d=t(e,"fullTime"),h=t(e,"fullDate");i=El(yl(e,fl.Full),[d,h])}return i&&(Ol[r][n]=i),i}(n,e)||e;for(var o,a=[];e;){if(!(o=Pl.exec(e))){a.push(e);break}var s=(a=a.concat(o.slice(1))).pop();if(!s)break;e=s}var u=i.getTimezoneOffset();r&&(u=Ul(r,u),i=function(t,e,n){var r=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(Ul(e,r)-r))}(i,r));var l="";return a.forEach((function(t){var e=function(t){if(Bl[t])return Bl[t];var e;switch(t){case"G":case"GG":case"GGG":e=Vl(Sl.Eras,pl.Abbreviated);break;case"GGGG":e=Vl(Sl.Eras,pl.Wide);break;case"GGGGG":e=Vl(Sl.Eras,pl.Narrow);break;case"y":e=Nl(Il.FullYear,1,0,!1,!0);break;case"yy":e=Nl(Il.FullYear,2,0,!0,!0);break;case"yyy":e=Nl(Il.FullYear,3,0,!1,!0);break;case"yyyy":e=Nl(Il.FullYear,4,0,!1,!0);break;case"M":case"L":e=Nl(Il.Month,1,1);break;case"MM":case"LL":e=Nl(Il.Month,2,1);break;case"MMM":e=Vl(Sl.Months,pl.Abbreviated);break;case"MMMM":e=Vl(Sl.Months,pl.Wide);break;case"MMMMM":e=Vl(Sl.Months,pl.Narrow);break;case"LLL":e=Vl(Sl.Months,pl.Abbreviated,hl.Standalone);break;case"LLLL":e=Vl(Sl.Months,pl.Wide,hl.Standalone);break;case"LLLLL":e=Vl(Sl.Months,pl.Narrow,hl.Standalone);break;case"w":e=zl(1);break;case"ww":e=zl(2);break;case"W":e=zl(1,!0);break;case"d":e=Nl(Il.Date,1);break;case"dd":e=Nl(Il.Date,2);break;case"E":case"EE":case"EEE":e=Vl(Sl.Days,pl.Abbreviated);break;case"EEEE":e=Vl(Sl.Days,pl.Wide);break;case"EEEEE":e=Vl(Sl.Days,pl.Narrow);break;case"EEEEEE":e=Vl(Sl.Days,pl.Short);break;case"a":case"aa":case"aaa":e=Vl(Sl.DayPeriods,pl.Abbreviated);break;case"aaaa":e=Vl(Sl.DayPeriods,pl.Wide);break;case"aaaaa":e=Vl(Sl.DayPeriods,pl.Narrow);break;case"b":case"bb":case"bbb":e=Vl(Sl.DayPeriods,pl.Abbreviated,hl.Standalone,!0);break;case"bbbb":e=Vl(Sl.DayPeriods,pl.Wide,hl.Standalone,!0);break;case"bbbbb":e=Vl(Sl.DayPeriods,pl.Narrow,hl.Standalone,!0);break;case"B":case"BB":case"BBB":e=Vl(Sl.DayPeriods,pl.Abbreviated,hl.Format,!0);break;case"BBBB":e=Vl(Sl.DayPeriods,pl.Wide,hl.Format,!0);break;case"BBBBB":e=Vl(Sl.DayPeriods,pl.Narrow,hl.Format,!0);break;case"h":e=Nl(Il.Hours,1,-12);break;case"hh":e=Nl(Il.Hours,2,-12);break;case"H":e=Nl(Il.Hours,1);break;case"HH":e=Nl(Il.Hours,2);break;case"m":e=Nl(Il.Minutes,1);break;case"mm":e=Nl(Il.Minutes,2);break;case"s":e=Nl(Il.Seconds,1);break;case"ss":e=Nl(Il.Seconds,2);break;case"S":e=Nl(Il.FractionalSeconds,1);break;case"SS":e=Nl(Il.FractionalSeconds,2);break;case"SSS":e=Nl(Il.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Rl(xl.Short);break;case"ZZZZZ":e=Rl(xl.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Rl(xl.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Rl(xl.Long);break;default:return null}return Bl[t]=e,e}(t);l+=e?e(i,n,u):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),l}function El(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,n){return null!=e&&n in e?e[n]:t}))),t}function Tl(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o="";(t<0||i&&t<=0)&&(i?t=1-t:(t=-t,o=n));for(var a=String(t);a.length2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(o,a){var s=Dl(t,o);if((n>0||s>-n)&&(s+=n),t===Il.Hours)0===s&&-12===n&&(s=12);else if(t===Il.FractionalSeconds)return Al(s,e);var c=bl(a,vl.MinusSign);return Tl(s,e,c,r,i)}}function Dl(t,e){switch(t){case Il.FullYear:return e.getFullYear();case Il.Month:return e.getMonth();case Il.Date:return e.getDate();case Il.Hours:return e.getHours();case Il.Minutes:return e.getMinutes();case Il.Seconds:return e.getSeconds();case Il.FractionalSeconds:return e.getMilliseconds();case Il.Day:return e.getDay();default:throw new Error('Unknown DateType value "'.concat(t,'".'))}}function Vl(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:hl.Format,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(i,o){return Ll(i,o,t,e,n,r)}}function Ll(t,e,n,r,i,o){switch(n){case Sl.Months:return function(t,e,n){var r=Sc(t),i=Cl([r[Ec.MonthsFormat],r[Ec.MonthsStandalone]],e);return Cl(i,n)}(e,i,r)[t.getMonth()];case Sl.Days:return function(t,e,n){var r=Sc(t),i=Cl([r[Ec.DaysFormat],r[Ec.DaysStandalone]],e);return Cl(i,n)}(e,i,r)[t.getDay()];case Sl.DayPeriods:var a=t.getHours(),s=t.getMinutes();if(o){var u=function(t){var e=Sc(t);return _l(e),(e[Ec.ExtraData][2]||[]).map((function(t){return"string"==typeof t?wl(t):[wl(t[0]),wl(t[1])]}))}(e),l=function(t,e,n){var r=Sc(t);_l(r);var i=Cl([r[Ec.ExtraData][0],r[Ec.ExtraData][1]],e)||[];return Cl(i,n)||[]}(e,i,r),d=u.findIndex((function(t){if(Array.isArray(t)){var e=c(t,2),n=e[0],r=e[1],i=a>=n.hours&&s>=n.minutes,o=a0?Math.floor(i/60):Math.ceil(i/60);switch(t){case xl.Short:return(i>=0?"+":"")+Tl(a,2,o)+Tl(Math.abs(i%60),2,o);case xl.ShortGMT:return"GMT"+(i>=0?"+":"")+Tl(a,1,o);case xl.Long:return"GMT"+(i>=0?"+":"")+Tl(a,2,o)+":"+Tl(Math.abs(i%60),2,o);case xl.Extended:return 0===r?"Z":(i>=0?"+":"")+Tl(a,2,o)+":"+Tl(Math.abs(i%60),2,o);default:throw new Error('Unknown zone width "'.concat(t,'"'))}}}function Fl(t){var e=new Date(t,0,1).getDay();return new Date(t,0,1+(e<=4?4:11)-e)}function jl(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function zl(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r){var i;if(e){var o=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,a=n.getDate();i=1+Math.floor((a+o)/7)}else{var s=Fl(n.getFullYear()),c=jl(n).getTime()-s.getTime();i=1+Math.round(c/6048e5)}return Tl(i,t,bl(r,vl.MinusSign))}}var Bl={};function Ul(t,e){t=t.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function Gl(t){return t instanceof Date&&!isNaN(t.valueOf())}var Hl=_((function t(){y(this,t)})),ql=function(){var t=function(t){p(n,t);var e=m(n);function n(t){var r;return y(this,n),(r=e.call(this)).locale=t,r}return _(n,[{key:"getPluralCategory",value:function(t,e){switch(function(t){return Sc(t)[Ec.PluralCase]}(e||this.locale)(t)){case dl.Zero:return"zero";case dl.One:return"one";case dl.Two:return"two";case dl.Few:return"few";case dl.Many:return"many";default:return"other"}}}]),n}(Hl);return t.\u0275fac=function(e){return new(e||t)(he(Xc))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}();function Wl(t,e){e=encodeURIComponent(e);var n,r=d(t.split(";"));try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.indexOf("="),a=c(-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],2),s=a[1];if(a[0].trim()===e)return decodeURIComponent(s)}}catch(u){r.e(u)}finally{r.f()}return null}var $l=function(){var t=function(){function t(e,n,r,i){y(this,t),this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _(t,[{key:"klass",set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Ra(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}},{key:"_applyKeyValueChanges",value:function(t){var e=this;t.forEachAddedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachChangedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachRemovedItem((function(t){t.previousValue&&e._toggleClass(t.key,!1)}))}},{key:"_applyIterableChanges",value:function(t){var e=this;t.forEachAddedItem((function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Ft(t.item)));e._toggleClass(t.item,!0)})),t.forEachRemovedItem((function(t){return e._toggleClass(t.item,!1)}))}},{key:"_applyClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!0)})):Object.keys(t).forEach((function(n){return e._toggleClass(n,!!t[n])})))}},{key:"_removeClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!1)})):Object.keys(t).forEach((function(t){return e._toggleClass(t,!1)})))}},{key:"_toggleClass",value:function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach((function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Wa(lc),Wa(dc),Wa(Ws),Wa(Ks))},t.\u0275dir=Le({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t}(),Zl=function(){function t(e,n,r,i){y(this,t),this.$implicit=e,this.ngForOf=n,this.index=r,this.count=i}return _(t,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),t}(),Yl=function(){var t=function(){function t(e,n,r){y(this,t),this._viewContainer=e,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _(t,[{key:"ngForOf",set:function(t){this._ngForOf=t,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(t){qr()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received ".concat(JSON.stringify(t),". ")+"See https://angular.io/api/common/NgForOf#change-propagation for more information."),this._trackByFn=t}},{key:"ngForTemplate",set:function(t){t&&(this._template=t)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(t,"' of type '").concat((e=t).name||typeof e,"'. NgFor only supports binding to Iterables such as Arrays."))}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(t){var e=this,n=[];t.forEachOperation((function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new Zl(null,e._ngForOf,-1,-1),null===i?void 0:i),a=new Kl(t,o);n.push(a)}else if(null==i)e._viewContainer.remove(null===r?void 0:r);else if(null!==r){var s=e._viewContainer.get(r);e._viewContainer.move(s,i);var c=new Kl(t,s);n.push(c)}}));for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:Pt.Default,e=da(!0);if(null!=e||t&Pt.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}())},t.\u0275pipe=Re({name:"async",type:t,pure:!1}),t}(),ud=function(){var t=function(){function t(e){y(this,t),this.locale=e}return _(t,[{key:"transform",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mediumDate",r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;if(null==e||""===e||e!=e)return null;try{return Ml(e,n,i||this.locale,r)}catch(o){throw id(t,o.message)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Wa(Xc))},t.\u0275pipe=Re({name:"date",type:t,pure:!0}),t}(),ld=function(){var t=_((function t(){y(this,t)}));return t.\u0275mod=De({type:t}),t.\u0275inj=Mt({factory:function(e){return new(e||t)},providers:[{provide:Hl,useClass:ql}]}),t}(),dd=function(){var t=_((function t(){y(this,t)}));return t.\u0275prov=St({token:t,providedIn:"root",factory:function(){return new hd(he($u),window,he(Nr))}}),t}(),hd=function(){function t(e,n,r){y(this,t),this.document=e,this.window=n,this.errorHandler=r,this.offset=function(){return[0,0]}}return _(t,[{key:"setOffset",value:function(t){this.offset=Array.isArray(t)?function(){return t}:t}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}},{key:"scrollToPosition",value:function(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}},{key:"scrollToAnchor",value:function(t){if(this.supportsScrolling()){var e=this.document.getElementById(t)||this.document.getElementsByName(t)[0];e&&this.scrollToElement(e)}}},{key:"setHistoryScrollRestoration",value:function(t){if(this.supportScrollRestoration()){var e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}},{key:"scrollToElement",value:function(t){var e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}},{key:"supportScrollRestoration",value:function(){try{if(!this.window||!this.window.scrollTo)return!1;var t=pd(this.window.history)||pd(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(e){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window.scrollTo}catch(t){return!1}}}]),t}();function pd(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}var fd,vd=function(t){p(n,t);var e=m(n);function n(){return y(this,n),e.apply(this,arguments)}return _(n,[{key:"getProperty",value:function(t,e){return t[e]}},{key:"log",value:function(t){window.console&&window.console.log&&window.console.log(t)}},{key:"logGroup",value:function(t){window.console&&window.console.group&&window.console.group(t)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}}},{key:"dispatchEvent",value:function(t,e){t.dispatchEvent(e)}},{key:"remove",value:function(t){return t.parentNode&&t.parentNode.removeChild(t),t}},{key:"getValue",value:function(t){return t.value}},{key:"createElement",value:function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(t){return t.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(t){return t instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(t){var e,n=gd||(gd=document.querySelector("base"))?gd.getAttribute("href"):null;return null==n?null:(e=n,fd||(fd=document.createElement("a")),fd.setAttribute("href",e),"/"===fd.pathname.charAt(0)?fd.pathname:"/"+fd.pathname)}},{key:"resetBaseElement",value:function(){gd=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(t){return Wl(document.cookie,t)}}],[{key:"makeCurrent",value:function(){var t;t=new n,Hu||(Hu=t)}}]),n}(function(t){p(n,t);var e=m(n);function n(){return y(this,n),e.call(this)}return _(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(Wu)),gd=null,md=new re("TRANSITION_ID"),yd=[{provide:Hc,useFactory:function(t,e,n){return function(){n.get(qc).donePromise.then((function(){var n=qu();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter((function(e){return e.getAttribute("ng-transition")===t})).forEach((function(t){return n.remove(t)}))}))}},deps:[md,$u,Ta],multi:!0}],bd=function(){function t(){y(this,t)}return _(t,[{key:"addToWindow",value:function(t){Yt.getAngularTestability=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},Yt.getAllAngularTestabilities=function(){return t.getAllTestabilities()},Yt.getAllAngularRootElements=function(){return t.getAllRootElements()},Yt.frameworkStabilizers||(Yt.frameworkStabilizers=[]),Yt.frameworkStabilizers.push((function(t){var e=Yt.getAllAngularTestabilities(),n=e.length,r=!1,i=function(e){r=r||e,0==--n&&t(r)};e.forEach((function(t){t.whenStable(i)}))}))}},{key:"findTestabilityInTree",value:function(t,e,n){if(null==e)return null;var r=t.getTestability(e);return null!=r?r:n?qu().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){var e;e=new t,wu=e}}]),t}(),_d=new re("EventManagerPlugins"),Cd=function(){var t=function(){function t(e,n){var r=this;y(this,t),this._zone=n,this._eventNameToPlugin=new Map,e.forEach((function(t){return t.manager=r})),this._plugins=e.slice().reverse()}return _(t,[{key:"addEventListener",value:function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}},{key:"addGlobalEventListener",value:function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r-1&&(e.splice(n,1),o+=t+".")})),o+=i,0!=e.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a}},{key:"getEventFullKey",value:function(t){var e="",n=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Fd.hasOwnProperty(e)&&(e=Fd[e]))}return Rd[e]||e}(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Ld.forEach((function(r){r!=n&&(0,jd[r])(t)&&(e+=r+".")})),e+=n}},{key:"eventCallback",value:function(t,e,r){return function(i){n.getEventFullKey(i)===t&&r.runGuarded((function(){return e(i)}))}}},{key:"_normalizeKey",value:function(t){switch(t){case"esc":return"escape";default:return t}}}]),n}(wd);return t.\u0275fac=function(e){return new(e||t)(he($u))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),Bd=function(){var t=_((function t(){y(this,t)}));return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({factory:function(){return he(Ud)},token:t,providedIn:"root"}),t}(),Ud=function(){var t=function(t){p(n,t);var e=m(n);function n(t){var r;return y(this,n),(r=e.call(this))._doc=t,r}return _(n,[{key:"sanitize",value:function(t,e){if(null==e)return null;switch(t){case vi.NONE:return e;case vi.HTML:return Br(e,"HTML")?zr(e):pi(this._doc,String(e));case vi.STYLE:return Br(e,"Style")?zr(e):e;case vi.SCRIPT:if(Br(e,"Script"))return zr(e);throw new Error("unsafe value used in a script context");case vi.URL:return Ur(e),Br(e,"URL")?zr(e):Kr(String(e));case vi.RESOURCE_URL:if(Br(e,"ResourceURL"))return zr(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(t," (see http://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(t){return new Vr(t)}},{key:"bypassSecurityTrustStyle",value:function(t){return new Lr(t)}},{key:"bypassSecurityTrustScript",value:function(t){return new Rr(t)}},{key:"bypassSecurityTrustUrl",value:function(t){return new Fr(t)}},{key:"bypassSecurityTrustResourceUrl",value:function(t){return new jr(t)}}]),n}(Bd);return t.\u0275fac=function(e){return new(e||t)(he($u))},t.\u0275prov=St({factory:function(){return t=he(ie),new Ud(t.get($u));var t},token:t,providedIn:"root"}),t}(),Gd=Iu(ju,"browser",[{provide:Kc,useValue:"browser"},{provide:Yc,useValue:function(){vd.makeCurrent(),bd.init()},multi:!0},{provide:$u,useFactory:function(){return function(t){tn=t}(document),document},deps:[]}]),Hd=[[],{provide:ga,useValue:"root"},{provide:Nr,useFactory:function(){return new Nr},deps:[]},{provide:_d,useClass:Vd,multi:!0,deps:[$u,du,Kc]},{provide:_d,useClass:zd,multi:!0,deps:[$u]},[],{provide:Td,useClass:Td,deps:[Cd,Od,Wc]},{provide:Zs,useExisting:Td},{provide:kd,useExisting:Od},{provide:Od,useClass:Od,deps:[$u]},{provide:_u,useClass:_u,deps:[du]},{provide:Cd,useClass:Cd,deps:[_d,du]},[]],qd=function(){var t=function(){function t(e){if(y(this,t),e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return _(t,null,[{key:"withServerTransition",value:function(e){return{ngModule:t,providers:[{provide:Wc,useValue:e.appId},{provide:md,useExisting:Wc},yd]}}}]),t}();return t.\u0275mod=De({type:t}),t.\u0275inj=Mt({factory:function(e){return new(e||t)(he(t,12))},providers:Hd,imports:[ld,Bu]}),t}();function Wd(){return new $d(he($u))}var $d=function(){var t=function(){function t(e){y(this,t),this._doc=e}return _(t,[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(t){this._doc.title=t||""}}]),t}();return t.\u0275fac=function(e){return new(e||t)(he($u))},t.\u0275prov=St({factory:Wd,token:t,providedIn:"root"}),t}();function Zd(){for(var t=arguments.length,e=new Array(t),n=0;n0){var r=t.slice(0,e),i=r.toLowerCase(),o=t.slice(e+1).trim();n.maybeSetNormalizedName(r,i),n.headers.has(i)?n.headers.get(i).push(o):n.headers.set(i,[o])}}))}:function(){n.headers=new Map,Object.keys(e).forEach((function(t){var r=e[t],i=t.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(n.headers.set(i,r),n.maybeSetNormalizedName(t,i))}))}:this.headers=new Map}return _(t,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{key:"init",value:function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((function(t){return e.applyUpdate(t)})),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach((function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))}))}},{key:"clone",value:function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}},{key:"applyUpdate",value:function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var r=("a"===t.op?this.headers.get(e):void 0)||[];r.push.apply(r,u(n)),this.headers.set(e,r);break;case"d":var i=t.value;if(i){var o=this.headers.get(e);if(!o)return;0===(o=o.filter((function(t){return-1===i.indexOf(t)}))).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value:function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach((function(n){return t(e.normalizedNames.get(n),e.headers.get(n))}))}}]),t}(),nh=function(){function t(){y(this,t)}return _(t,[{key:"encodeKey",value:function(t){return ih(t)}},{key:"encodeValue",value:function(t){return ih(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}();function rh(t,e){var n=new Map;return t.length>0&&t.split("&").forEach((function(t){var r=t.indexOf("="),i=c(-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],2),o=i[0],a=i[1],s=n.get(o)||[];s.push(a),n.set(o,s)})),n}function ih(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var oh=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(y(this,t),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new nh,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=rh(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach((function(t){var r=n.fromObject[t];e.map.set(t,Array.isArray(r)?r:[r])}))):this.map=null}return _(t,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map((function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map((function(e){return n+"="+t.encoder.encodeValue(e)})).join("&")})).filter((function(t){return""!==t})).join("&")}},{key:"clone",value:function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((function(e){return t.map.set(e,t.cloneFrom.map.get(e))})),this.updates.forEach((function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],i=r.indexOf(e.value);-1!==i&&r.splice(i,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}})),this.cloneFrom=this.updates=null)}}]),t}();function ah(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function sh(t){return"undefined"!=typeof Blob&&t instanceof Blob}function ch(t){return"undefined"!=typeof FormData&&t instanceof FormData}var uh=function(){function t(e,n,r,i){var o;if(y(this,t),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new eh),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},n=e.method||this.method,r=e.url||this.url,i=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,s=void 0!==e.reportProgress?e.reportProgress:this.reportProgress,c=e.headers||this.headers,u=e.params||this.params;return void 0!==e.setHeaders&&(c=Object.keys(e.setHeaders).reduce((function(t,n){return t.set(n,e.setHeaders[n])}),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((function(t,n){return t.set(n,e.setParams[n])}),u)),new t(n,r,o,{params:u,headers:c,reportProgress:s,responseType:i,withCredentials:a})}}]),t}(),lh=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({}),dh=_((function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";y(this,t),this.headers=e.headers||new eh,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300})),hh=function(t){p(n,t);var e=m(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(this,n),(t=e.call(this,r)).type=lh.ResponseHeader,t}return _(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),n}(dh),ph=function(t){p(n,t);var e=m(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(this,n),(t=e.call(this,r)).type=lh.Response,t.body=void 0!==r.body?r.body:null,t}return _(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),n}(dh),fh=function(t){p(n,t);var e=m(n);function n(t){var r;return y(this,n),(r=e.call(this,t,0,"Unknown Error")).name="HttpErrorResponse",r.ok=!1,r.message=r.status>=200&&r.status<300?"Http failure during parsing for ".concat(t.url||"(unknown url)"):"Http failure response for ".concat(t.url||"(unknown url)",": ").concat(t.status," ").concat(t.statusText),r.error=t.error||null,r}return _(n)}(dh);function vh(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var gh=function(){var t=function(){function t(e){y(this,t),this.handler=e}return _(t,[{key:"request",value:function(t,e){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t instanceof uh)n=t;else{var o=void 0;o=i.headers instanceof eh?i.headers:new eh(i.headers);var a=void 0;i.params&&(a=i.params instanceof oh?i.params:new oh({fromObject:i.params})),n=new uh(t,e,void 0!==i.body?i.body:null,{headers:o,params:a,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}var s=Zd(n).pipe(Yd((function(t){return r.handler.handle(t)})));if(t instanceof uh||"events"===i.observe)return s;var c=s.pipe(Kd((function(t){return t instanceof ph})));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return c.pipe(W((function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body})));case"blob":return c.pipe(W((function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body})));case"text":return c.pipe(W((function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body})));case"json":default:return c.pipe(W((function(t){return t.body})))}case"response":return c;default:throw new Error("Unreachable: unhandled observe type ".concat(i.observe,"}"))}}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",t,e)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",t,e)}},{key:"head",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",t,e)}},{key:"jsonp",value:function(t,e){return this.request("JSONP",t,{params:(new oh).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",t,e)}},{key:"patch",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",t,vh(n,e))}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,vh(n,e))}},{key:"put",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,vh(n,e))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(he(Xd))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),mh=function(){function t(e,n){y(this,t),this.next=e,this.interceptor=n}return _(t,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),t}(),yh=new re("HTTP_INTERCEPTORS"),bh=function(){var t=function(){function t(){y(this,t)}return _(t,[{key:"intercept",value:function(t,e){return e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),_h=/^\)\]\}',?\n/,Ch=_((function t(){y(this,t)})),wh=function(){var t=function(){function t(){y(this,t)}return _(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),kh=function(){var t=function(){function t(e){y(this,t),this.xhrFactory=e}return _(t,[{key:"handle",value:function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new F((function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach((function(t,e){return r.setRequestHeader(t,e.join(","))})),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var i=t.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(t.responseType){var o=t.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var a=t.serializeBody(),s=null,c=function(){if(null!==s)return s;var e=1223===r.status?204:r.status,n=r.statusText||"OK",i=new eh(r.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return s=new hh({headers:i,status:e,statusText:n,url:o})},u=function(){var e=c(),i=e.headers,o=e.status,a=e.statusText,s=e.url,u=null;204!==o&&(u=void 0===r.response?r.responseText:r.response),0===o&&(o=u?200:0);var l=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof u){var d=u;u=u.replace(_h,"");try{u=""!==u?JSON.parse(u):null}catch(h){u=d,l&&(l=!1,u={error:h,text:u})}}l?(n.next(new ph({body:u,headers:i,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new fh({error:u,headers:i,status:o,statusText:a,url:s||void 0}))},l=function(t){var e=c(),i=new fh({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error",url:e.url||void 0});n.error(i)},d=!1,h=function(e){d||(n.next(c()),d=!0);var i={type:lh.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(i.total=e.total),"text"===t.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},p=function(t){var e={type:lh.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",u),r.addEventListener("error",l),t.reportProgress&&(r.addEventListener("progress",h),null!==a&&r.upload&&r.upload.addEventListener("progress",p)),r.send(a),n.next({type:lh.Sent}),function(){r.removeEventListener("error",l),r.removeEventListener("load",u),t.reportProgress&&(r.removeEventListener("progress",h),null!==a&&r.upload&&r.upload.removeEventListener("progress",p)),r.readyState!==r.DONE&&r.abort()}}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(he(Ch))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),Oh=new re("XSRF_COOKIE_NAME"),Ph=new re("XSRF_HEADER_NAME"),xh=_((function t(){y(this,t)})),Ih=function(){var t=function(){function t(e,n,r){y(this,t),this.doc=e,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return _(t,[{key:"getToken",value:function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Wl(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}();return t.\u0275fac=function(e){return new(e||t)(he($u),he(Kc),he(Oh))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),Sh=function(){var t=function(){function t(e,n){y(this,t),this.tokenService=e,this.headerName=n}return _(t,[{key:"intercept",value:function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(he(xh),he(Ph))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),Mh=function(){var t=function(){function t(e,n){y(this,t),this.backend=e,this.injector=n,this.chain=null}return _(t,[{key:"handle",value:function(t){if(null===this.chain){var e=this.injector.get(yh,[]);this.chain=e.reduceRight((function(t,e){return new mh(t,e)}),this.backend)}return this.chain.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(he(th),he(Ta))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),Eh=function(){var t=function(){function t(){y(this,t)}return _(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:Sh,useClass:bh}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:Oh,useValue:e.cookieName}:[],e.headerName?{provide:Ph,useValue:e.headerName}:[]]}}}]),t}();return t.\u0275mod=De({type:t}),t.\u0275inj=Mt({factory:function(e){return new(e||t)},providers:[Sh,{provide:yh,useExisting:Sh,multi:!0},{provide:xh,useClass:Ih},{provide:Oh,useValue:"XSRF-TOKEN"},{provide:Ph,useValue:"X-XSRF-TOKEN"}]}),t}(),Th=function(){var t=_((function t(){y(this,t)}));return t.\u0275mod=De({type:t}),t.\u0275inj=Mt({factory:function(e){return new(e||t)},providers:[gh,{provide:Xd,useClass:Mh},kh,{provide:th,useExisting:kh},wh,{provide:Ch,useExisting:wh}],imports:[[Eh.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t}(),Ah=n("o0o1"),Nh=n.n(Ah),Dh=n("SDrh");function Vh(t,e){return new F((function(n){var r=t.length;if(0!==r)for(var i=new Array(r),o=0,a=0,s=function(s){var c=nt(t[s]),u=!1;n.add(c.subscribe({next:function(t){u||(u=!0,a++),i[s]=t},error:function(t){return n.error(t)},complete:function(){++o!==r&&u||(a===r&&n.next(e?e.reduce((function(t,e,n){return t[e]=i[n],t}),{}):i),n.complete())}}))},c=0;c0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,e){return!!this.control&&this.control.hasError(t,e)}},{key:"getError",value:function(t,e){return this.control?this.control.getError(t,e):null}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Le({type:t}),t}(),Gh=function(){var t=function(t){p(n,t);var e=m(n);function n(){return y(this,n),e.apply(this,arguments)}return _(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(Uh);return t.\u0275fac=function(e){return Hh(e||t)},t.\u0275dir=Le({type:t,features:[Ss]}),t}(),Hh=Mr(Gh);function qh(){throw new Error("unimplemented")}var Wh=function(t){p(n,t);var e=m(n);function n(){var t;return y(this,n),(t=e.apply(this,arguments))._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return _(n,[{key:"validator",get:function(){return qh()}},{key:"asyncValidator",get:function(){return qh()}}]),n}(Uh),$h=function(){function t(e){y(this,t),this._cd=e}return _(t,[{key:"ngClassUntouched",get:function(){return!!this._cd.control&&this._cd.control.untouched}},{key:"ngClassTouched",get:function(){return!!this._cd.control&&this._cd.control.touched}},{key:"ngClassPristine",get:function(){return!!this._cd.control&&this._cd.control.pristine}},{key:"ngClassDirty",get:function(){return!!this._cd.control&&this._cd.control.dirty}},{key:"ngClassValid",get:function(){return!!this._cd.control&&this._cd.control.valid}},{key:"ngClassInvalid",get:function(){return!!this._cd.control&&this._cd.control.invalid}},{key:"ngClassPending",get:function(){return!!this._cd.control&&this._cd.control.pending}}]),t}(),Zh=function(){var t=function(t){p(n,t);var e=m(n);function n(t){return y(this,n),e.call(this,t)}return _(n)}($h);return t.\u0275fac=function(e){return new(e||t)(Wa(Wh,2))},t.\u0275dir=Le({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&gs("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[Ss]}),t}(),Yh=function(){var t=function(t){p(n,t);var e=m(n);function n(t){return y(this,n),e.call(this,t)}return _(n)}($h);return t.\u0275fac=function(e){return new(e||t)(Wa(Gh,2))},t.\u0275dir=Le({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&gs("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[Ss]}),t}();function Kh(t){return null==t||0===t.length}function Jh(t){return null!=t&&"number"==typeof t.length}var Qh=new re("NgValidators"),Xh=new re("NgAsyncValidators"),tp=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ep=function(){function t(){y(this,t)}return _(t,null,[{key:"min",value:function(t){return function(e){if(Kh(e.value)||Kh(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&nt?{max:{max:t,actual:e.value}}:null}}},{key:"required",value:function(t){return Kh(t.value)?{required:!0}:null}},{key:"requiredTrue",value:function(t){return!0===t.value?null:{required:!0}}},{key:"email",value:function(t){return Kh(t.value)||tp.test(t.value)?null:{email:!0}}},{key:"minLength",value:function(t){return function(e){return Kh(e.value)||!Jh(e.value)?null:e.value.lengtht?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}}},{key:"pattern",value:function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(Kh(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r}},{key:"nullValidator",value:function(t){return null}},{key:"compose",value:function(t){if(!t)return null;var e=t.filter(np);return 0==e.length?null:function(t){return ip(op(t,e))}}},{key:"composeAsync",value:function(t){if(!t)return null;var e=t.filter(np);return 0==e.length?null:function(t){return function(){for(var t=arguments.length,e=new Array(t),n=0;n=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}},{key:"select",value:function(t){var e=this;this._accessors.forEach((function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)}))}},{key:"_isSameGroup",value:function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),dp=function(){var t=function(){function t(e,n,r,i){y(this,t),this._renderer=e,this._elementRef=n,this._registry=r,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return _(t,[{key:"ngOnInit",value:function(){this._control=this._injector.get(Wh),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}}},{key:"fireUncheck",value:function(t){this.writeValue(t)}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_checkName",value:function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}},{key:"_throwNameError",value:function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Wa(Ks),Wa(Ws),Wa(lp),Wa(Ta))},t.\u0275dir=Le({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&rs("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Bs([up])]}),t}(),hp={provide:Lh,useExisting:Bt((function(){return pp})),multi:!0},pp=function(){var t=function(){function t(e,n){y(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return _(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Wa(Ks),Wa(Ws))},t.\u0275dir=Le({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&rs("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[Bs([hp])]}),t}(),fp='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',vp='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',gp='\n
\n
\n \n
\n
',mp=function(){function t(){y(this,t)}return _(t,null,[{key:"controlParentException",value:function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ".concat(fp))}},{key:"ngModelGroupException",value:function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '.concat(vp,"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ").concat(gp))}},{key:"missingFormException",value:function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ".concat(fp))}},{key:"groupParentException",value:function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ".concat(vp))}},{key:"arrayParentException",value:function(){throw new Error("formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ".concat('\n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });'))}},{key:"disabledAttrWarning",value:function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n\n Example:\n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")}},{key:"ngModelWarning",value:function(t){console.warn("\n It looks like you're using ngModel on the same form field as ".concat(t,".\n Support for using the ngModel input property and ngModelChange event with\n reactive form directives has been deprecated in Angular v6 and will be removed\n in a future version of Angular.\n\n For more information on this, see our API docs here:\n https://angular.io/api/forms/").concat("formControl"===t?"FormControlDirective":"FormControlName","#use-with-ngmodel\n "))}}]),t}(),yp={provide:Lh,useExisting:Bt((function(){return _p})),multi:!0};function bp(t,e){return null==t?"".concat(e):(e&&"object"==typeof e&&(e="Object"),"".concat(t,": ").concat(e).slice(0,50))}var _p=function(){var t=function(){function t(e,n){y(this,t),this._renderer=e,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Object.is}return _(t,[{key:"compareWith",set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received ".concat(JSON.stringify(t)));this._compareWith=t}},{key:"writeValue",value:function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=bp(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(t){for(var e=0,n=Array.from(this._optionMap.keys());e-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){var r=[];if(void 0!==n.selectedOptions)for(var i=n.selectedOptions,o=0;o1?"path: '".concat(t.path.join(" -> "),"'"):t.path[0]?"name: '".concat(t.path,"'"):"unspecified name attribute",new Error("".concat(e," ").concat(n))}function Ap(t){return null!=t?ep.compose(ap(t)):null}function Np(t){return null!=t?ep.composeAsync(ap(t)):null}function Dp(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}var Vp=[Fh,pp,cp,_p,Op,dp];function Lp(t,e){t._syncPendingControls(),e.forEach((function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}))}function Rp(t,e){if(!e)return null;Array.isArray(e)||Tp(t,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,i=void 0;return e.forEach((function(e){var o;e.constructor===Bh?n=e:(o=e,Vp.some((function(t){return o.constructor===t}))?(r&&Tp(t,"More than one built-in value accessor matches form control with"),r=e):(i&&Tp(t,"More than one custom value accessor matches form control with"),i=e))})),i||r||n||(Tp(t,"No valid value accessor for form control with"),null)}function Fp(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function jp(t){var e=Bp(t)?t.validators:t;return Array.isArray(e)?Ap(e):e||null}function zp(t,e){var n=Bp(e)?e.asyncValidators:t;return Array.isArray(n)?Np(n):n||null}function Bp(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var Up=function(){function t(e,n){y(this,t),this.validator=e,this.asyncValidator=n,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return _(t,[{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this.validator=jp(t)}},{key:"setAsyncValidators",value:function(t){this.asyncValidator=zp(t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(t){return t.markAllAsTouched()}))}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(t){t.markAsUntouched({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(t){t.markAsPristine({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(e){e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))})),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!0)}))}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild((function(e){e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!1)}))}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild((function(e){return e._updateTreeValidity(t)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status="PENDING";var n=rp(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe((function(n){return e.setErrors(n,{emitEvent:t})}))}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;var r=t;return e.forEach((function(t){r=r instanceof Hp?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof qp&&r.at(t)||null})),r}(this,t)}},{key:"getError",value:function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new Uc,this.statusChanges=new Uc}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls((function(e){return e.status===t}))}},{key:"_anyControlsDirty",value:function(){return this._anyControls((function(t){return t.dirty}))}},{key:"_anyControlsTouched",value:function(){return this._anyControls((function(t){return t.touched}))}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){Bp(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}]),t}(),Gp=function(t){p(n,t);var e=m(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return y(this,n),(t=e.call(this,jp(i),zp(o,i)))._onChange=[],t._applyFormState(r),t._setUpdateStrategy(i),t.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),t._initObservables(),t}return _(n,[{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach((function(t){return t(e.value,!1!==n.emitViewToModelChange)})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(t,e)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(t){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(t){this._onChange.push(t)}},{key:"_clearChangeFns",value:function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}}},{key:"registerOnDisabledChange",value:function(t){this._onDisabledChange.push(t)}},{key:"_forEachChild",value:function(t){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}]),n}(Up),Hp=function(t){p(n,t);var e=m(n);function n(t,r,i){var o;return y(this,n),(o=e.call(this,jp(r),zp(i,r))).controls=t,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return _(n,[{key:"registerControl",value:function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}},{key:"addControl",value:function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),Object.keys(t).forEach((function(r){e._throwIfControlMissing(r),e.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(t).forEach((function(r){e.controls[r]&&e.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this._reduceChildren({},(function(t,e,n){return t[n]=e instanceof Gp?e.value:e.getRawValue(),t}))}},{key:"_syncPendingControls",value:function(){var t=this._reduceChildren(!1,(function(t,e){return!!e._syncPendingControls()||t}));return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: ".concat(t,"."))}},{key:"_forEachChild",value:function(t){var e=this;Object.keys(this.controls).forEach((function(n){return t(e.controls[n],n)}))}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild((function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)}))}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(t){for(var e=0,n=Object.keys(this.controls);e0||this.disabled}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild((function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))}))}}]),n}(Up),qp=function(t){p(n,t);var e=m(n);function n(t,r,i){var o;return y(this,n),(o=e.call(this,jp(r),zp(i,r))).controls=t,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return _(n,[{key:"at",value:function(t){return this.controls[t]}},{key:"push",value:function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}},{key:"removeAt",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),this.updateValueAndValidity()}},{key:"setControl",value:function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),t.forEach((function(t,r){e._throwIfControlMissing(r),e.at(r).setValue(t,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.forEach((function(t,r){e.at(r)&&e.at(r).patchValue(t,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this.controls.map((function(t){return t instanceof Gp?t.value:t.getRawValue()}))}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild((function(t){return t._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var t=this.controls.reduce((function(t,e){return!!e._syncPendingControls()||t}),!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index ".concat(t))}},{key:"_forEachChild",value:function(t){this.controls.forEach((function(e,n){t(e,n)}))}},{key:"_updateValue",value:function(){var t=this;this.value=this.controls.filter((function(e){return e.enabled||t.disabled})).map((function(t){return t.value}))}},{key:"_anyControls",value:function(t){return this.controls.some((function(e){return e.enabled&&t(e)}))}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild((function(e){return t._registerControl(e)}))}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild((function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))}))}},{key:"_allControlsDisabled",value:function(){var t,e=d(this.controls);try{for(e.s();!(t=e.n()).done;)if(t.value.enabled)return!1}catch(n){e.e(n)}finally{e.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}]),n}(Up),Wp={provide:Gh,useExisting:Bt((function(){return Zp}))},$p=function(){return Promise.resolve(null)}(),Zp=function(){var t=function(t){p(n,t);var e=m(n);function n(t,r){var i;return y(this,n),(i=e.call(this)).submitted=!1,i._directives=[],i.ngSubmit=new Uc,i.form=new Hp({},Ap(t),Np(r)),i}return _(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(t){var e=this;$p.then((function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),Ip(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)}))}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){var e=this;$p.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),Fp(e._directives,t)}))}},{key:"addFormGroup",value:function(t){var e=this;$p.then((function(){var n=e._findContainer(t.path),r=new Hp({});Mp(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})}))}},{key:"removeFormGroup",value:function(t){var e=this;$p.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)}))}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){var n=this;$p.then((function(){n.form.get(t.path).setValue(e)}))}},{key:"setValue",value:function(t){this.control.setValue(t)}},{key:"onSubmit",value:function(t){return this.submitted=!0,Lp(this.form,this._directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(t),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(t){return t.pop(),t.length?this.form.get(t):this.form}}]),n}(Gh);return t.\u0275fac=function(e){return new(e||t)(Wa(Qh,10),Wa(Xh,10))},t.\u0275dir=Le({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&rs("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Bs([Wp]),Ss]}),t}(),Yp=function(){var t=function(t){p(n,t);var e=m(n);function n(){return y(this,n),e.apply(this,arguments)}return _(n,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormGroup(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormGroup(this)}},{key:"control",get:function(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function(){return xp(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return Ap(this._validators)}},{key:"asyncValidator",get:function(){return Np(this._asyncValidators)}},{key:"_checkParentType",value:function(){}}]),n}(Gh);return t.\u0275fac=function(e){return Kp(e||t)},t.\u0275dir=Le({type:t,features:[Ss]}),t}(),Kp=Mr(Yp),Jp=function(){function t(){y(this,t)}return _(t,null,[{key:"modelParentException",value:function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '.concat(fp,"\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n ").concat('\n
\n \n \n
\n '))}},{key:"formGroupNameException",value:function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ".concat(vp,"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ").concat(gp))}},{key:"missingNameException",value:function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')}},{key:"modelGroupParentException",value:function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ".concat(vp,"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ").concat(gp))}}]),t}(),Qp={provide:Gh,useExisting:Bt((function(){return Xp}))},Xp=function(){var t=function(t){p(n,t);var e=m(n);function n(t,r,i){var o;return y(this,n),(o=e.call(this))._parent=t,o._validators=r,o._asyncValidators=i,o}return _(n,[{key:"_checkParentType",value:function(){this._parent instanceof n||this._parent instanceof Zp||Jp.modelGroupParentException()}}]),n}(Yp);return t.\u0275fac=function(e){return new(e||t)(Wa(Gh,5),Wa(Qh,10),Wa(Xh,10))},t.\u0275dir=Le({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[Bs([Qp]),Ss]}),t}(),tf={provide:Wh,useExisting:Bt((function(){return nf}))},ef=function(){return Promise.resolve(null)}(),nf=function(){var t=function(t){p(n,t);var e=m(n);function n(t,r,i,a){var s;return y(this,n),(s=e.call(this)).control=new Gp,s._registered=!1,s.update=new Uc,s._parent=t,s._rawValidators=r||[],s._rawAsyncValidators=i||[],s.valueAccessor=Rp(o(s),a),s}return _(n,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Dp(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?xp(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return Ap(this._rawValidators)}},{key:"asyncValidator",get:function(){return Np(this._rawAsyncValidators)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){Ip(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){!(this._parent instanceof Xp)&&this._parent instanceof Yp?Jp.formGroupNameException():this._parent instanceof Xp||this._parent instanceof Zp||Jp.modelParentException()}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Jp.missingNameException()}},{key:"_updateValue",value:function(t){var e=this;ef.then((function(){e.control.setValue(t,{emitViewToModelChange:!1})}))}},{key:"_updateDisabled",value:function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;ef.then((function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()}))}}]),n}(Wh);return t.\u0275fac=function(e){return new(e||t)(Wa(Gh,9),Wa(Qh,10),Wa(Xh,10),Wa(Lh,10))},t.\u0275dir=Le({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Bs([tf]),Ss,Ye]}),t}(),rf=function(){var t=_((function t(){y(this,t)}));return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Le({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t}(),of=new re("NgModelWithFormControlWarning"),af={provide:Gh,useExisting:Bt((function(){return sf}))},sf=function(){var t=function(t){p(n,t);var e=m(n);function n(t,r){var i;return y(this,n),(i=e.call(this))._validators=t,i._asyncValidators=r,i.submitted=!1,i.directives=[],i.form=null,i.ngSubmit=new Uc,i}return _(n,[{key:"ngOnChanges",value:function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(t){var e=this.form.get(t.path);return Ip(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){Fp(this.directives,t)}},{key:"addFormGroup",value:function(t){var e=this.form.get(t.path);Mp(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormGroup",value:function(t){}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"addFormArray",value:function(t){var e=this.form.get(t.path);Mp(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormArray",value:function(t){}},{key:"getFormArray",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){this.form.get(t.path).setValue(e)}},{key:"onSubmit",value:function(t){return this.submitted=!0,Lp(this.form,this.directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(t),this.submitted=!1}},{key:"_updateDomValue",value:function(){var t=this;this.directives.forEach((function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){e.valueAccessor.registerOnChange((function(){return Ep(e)})),e.valueAccessor.registerOnTouched((function(){return Ep(e)})),e._rawValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),e._rawAsyncValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),t&&t._clearChangeFns()}(e.control,e),n&&Ip(n,e),e.control=n)})),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_updateRegistrations",value:function(){var t=this;this.form._registerOnCollectionChange((function(){return t._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form}},{key:"_updateValidators",value:function(){var t=Ap(this._validators);this.form.validator=ep.compose([this.form.validator,t]);var e=Np(this._asyncValidators);this.form.asyncValidator=ep.composeAsync([this.form.asyncValidator,e])}},{key:"_checkFormPresent",value:function(){this.form||mp.missingFormException()}}]),n}(Gh);return t.\u0275fac=function(e){return new(e||t)(Wa(Qh,10),Wa(Xh,10))},t.\u0275dir=Le({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&rs("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Bs([af]),Ss,Ye]}),t}(),cf={provide:Gh,useExisting:Bt((function(){return uf}))},uf=function(){var t=function(t){p(n,t);var e=m(n);function n(t,r,i){var o;return y(this,n),(o=e.call(this))._parent=t,o._validators=r,o._asyncValidators=i,o}return _(n,[{key:"_checkParentType",value:function(){hf(this._parent)&&mp.groupParentException()}}]),n}(Yp);return t.\u0275fac=function(e){return new(e||t)(Wa(Gh,13),Wa(Qh,10),Wa(Xh,10))},t.\u0275dir=Le({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[Bs([cf]),Ss]}),t}(),lf={provide:Gh,useExisting:Bt((function(){return df}))},df=function(){var t=function(t){p(n,t);var e=m(n);function n(t,r,i){var o;return y(this,n),(o=e.call(this))._parent=t,o._validators=r,o._asyncValidators=i,o}return _(n,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormArray(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormArray(this)}},{key:"control",get:function(){return this.formDirective.getFormArray(this)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"path",get:function(){return xp(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"validator",get:function(){return Ap(this._validators)}},{key:"asyncValidator",get:function(){return Np(this._asyncValidators)}},{key:"_checkParentType",value:function(){hf(this._parent)&&mp.arrayParentException()}}]),n}(Gh);return t.\u0275fac=function(e){return new(e||t)(Wa(Gh,13),Wa(Qh,10),Wa(Xh,10))},t.\u0275dir=Le({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[Bs([lf]),Ss]}),t}();function hf(t){return!(t instanceof uf||t instanceof sf||t instanceof df)}var pf={provide:Wh,useExisting:Bt((function(){return ff}))},ff=function(){var t=function(t){p(n,t);var e=m(n);function n(t,r,i,a,s){var c;return y(this,n),(c=e.call(this))._ngModelWarningConfig=s,c._added=!1,c.update=new Uc,c._ngModelWarningSent=!1,c._parent=t,c._rawValidators=r||[],c._rawAsyncValidators=i||[],c.valueAccessor=Rp(o(c),a),c}return _(n,[{key:"isDisabled",set:function(t){mp.disabledAttrWarning()}},{key:"ngOnChanges",value:function(t){var e,r;this._added||this._setUpControl(),Dp(t,this.viewModel)&&("formControlName",e=n,this,r=this._ngModelWarningConfig,qr()&&"never"!==r&&((null!==r&&"once"!==r||e._ngModelWarningSentOnce)&&("always"!==r||this._ngModelWarningSent)||(mp.ngModelWarning("formControlName"),e._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"path",get:function(){return xp(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return Ap(this._rawValidators)}},{key:"asyncValidator",get:function(){return Np(this._rawAsyncValidators)}},{key:"_checkParentType",value:function(){!(this._parent instanceof uf)&&this._parent instanceof Yp?mp.ngModelGroupException():this._parent instanceof uf||this._parent instanceof sf||this._parent instanceof df||mp.controlParentException()}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}]),n}(Wh);return t.\u0275fac=function(e){return new(e||t)(Wa(Gh,13),Wa(Qh,10),Wa(Xh,10),Wa(Lh,10),Wa(of,8))},t.\u0275dir=Le({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Bs([pf]),Ss,Ye]}),t._ngModelWarningSentOnce=!1,t}(),vf={provide:Qh,useExisting:Bt((function(){return gf})),multi:!0},gf=function(){var t=function(){function t(){y(this,t),this._required=!1}return _(t,[{key:"required",get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&"false"!=="".concat(t),this._onChange&&this._onChange()}},{key:"validate",value:function(t){return this.required?ep.required(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Le({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&Ga("required",e.required?"":null)},inputs:{required:"required"},features:[Bs([vf])]}),t}(),mf=function(){var t=_((function t(){y(this,t)}));return t.\u0275mod=De({type:t}),t.\u0275inj=Mt({factory:function(e){return new(e||t)}}),t}();function yf(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}var bf,_f,Cf=function(){var t=function(){function t(){y(this,t)}return _(t,[{key:"group",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(t),r=null,i=null,o=void 0;return null!=e&&(yf(e)?(r=null!=e.validators?e.validators:null,i=null!=e.asyncValidators?e.asyncValidators:null,o=null!=e.updateOn?e.updateOn:void 0):(r=null!=e.validator?e.validator:null,i=null!=e.asyncValidator?e.asyncValidator:null)),new Hp(n,{asyncValidators:i,updateOn:o,validators:r})}},{key:"control",value:function(t,e,n){return new Gp(t,e,n)}},{key:"array",value:function(t,e,n){var r=this,i=t.map((function(t){return r._createControl(t)}));return new qp(i,e,n)}},{key:"_reduceControls",value:function(t){var e=this,n={};return Object.keys(t).forEach((function(r){n[r]=e._createControl(t[r])})),n}},{key:"_createControl",value:function(t){return t instanceof Gp||t instanceof Hp||t instanceof qp?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),wf=function(){var t=_((function t(){y(this,t)}));return t.\u0275mod=De({type:t}),t.\u0275inj=Mt({factory:function(e){return new(e||t)},providers:[lp],imports:[mf]}),t}(),kf=function(){var t=function(){function t(){y(this,t)}return _(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:[{provide:of,useValue:e.warnOnNgModelWithFormControl}]}}}]),t}();return t.\u0275mod=De({type:t}),t.\u0275inj=Mt({factory:function(e){return new(e||t)},providers:[Cf,lp],imports:[mf]}),t}(),Of=new re("config"),Pf=new re("NEW_CONFIG"),xf=new re("INITIAL_CONFIG"),If={suffix:"",prefix:"",clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,dropSpecialCharacters:!0,hiddenInput:void 0,shownMaskExpression:"",validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}},Sf=["percent","Hh:m0:s0","Hh:m0","Hh","m0:s0","s0","m0","separator","dot_separator","comma_separator","d0/M0/0000","d0/M0","d0","M0"],Mf=function(t){return t.SEPARATOR="separator",t.COMMA_SEPARATOR="comma_separator",t.DOT_SEPARATOR="dot_separator",t}({}),Ef=function(){var t=function(){function t(e){y(this,t),this._config=e,this.maskExpression="",this.actualValue="",this.shownMaskExpression="",this.separator=function(t,e,n,r){for(var i=(t+="").split(n),o=i.length>1?"".concat(n).concat(i[1]):"",a=i[0],s=/(\d+)(\d{3})/;s.test(a);)a=a.replace(s,"$1"+e+"$2");return void 0===r?a+o:0===r?a:a+o.substr(0,r+1)},this.percentage=function(t){return Number(t)>=0&&Number(t)<=100},this.getPrecision=function(t){var e=t.split(".");return e.length>1?Number(e[e.length-1]):1/0},this.checkInputPrecision=function(t,e,n){if(e<1/0){var r;r="."===n?new RegExp("\\.\\d{".concat(e,"}.*$")):new RegExp(",\\d{".concat(e,"}.*$"));var i=t.match(r);(i&&i[0].length-1>e||0===e&&t.endsWith(n))&&(t=t.substring(0,t.length-1))}return t},this._shift=new Set,this.clearIfNotMatch=this._config.clearIfNotMatch,this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.maskSpecialCharacters=this._config.specialCharacters,this.maskAvailablePatterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.hiddenInput=this._config.hiddenInput,this.showMaskTyped=this._config.showMaskTyped,this.validation=this._config.validation}return _(t,[{key:"applyMaskWithPattern",value:function(t,e){var n=c(e,2),r=n[0];return this.customPattern=n[1],this.applyMask(t,r)}},{key:"applyMask",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};if(null==t||void 0===e)return"";var i=0,o="",a=!1,s=!1,c=1;t.slice(0,this.prefix.length)===this.prefix&&(t=t.slice(this.prefix.length,t.length));var u=t.toString().split("");if("IP"===e&&(this.ipError=!!(u.filter((function(t){return"."===t})).length<3&&u.length<7),e="099.099.099.099"),e.startsWith("percent")){if(t.match("[a-z]|[A-Z]")||t.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/]/)){t=this._checkInput(t);var l=this.getPrecision(e);t=this.checkInputPrecision(t,l,".")}o=this.percentage(t)?t:t.substring(0,t.length-1)}else if(e.startsWith(Mf.SEPARATOR)||e.startsWith(Mf.DOT_SEPARATOR)||e.startsWith(Mf.COMMA_SEPARATOR)){(t.match("[w\u0430-\u044f\u0410-\u042f]")||t.match("[a-z]|[A-Z]")||t.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\[\]:";<>.?\/]/))&&(t=this._checkInput(t));var d,h=this.getPrecision(e);e.startsWith(Mf.SEPARATOR)&&t.includes(",")&&t.endsWith(",")&&t.indexOf(",")!==t.lastIndexOf(",")&&(t=t.substring(0,t.length-1)),e.startsWith(Mf.DOT_SEPARATOR)&&(-1!==t.indexOf(".")&&t.indexOf(".")===t.lastIndexOf(".")&&t.indexOf(".")>3&&(t=t.replace(".",",")),t=t.length>1&&"0"===t[0]&&","!==t[1]?t.slice(1,t.length):t),e.startsWith(Mf.COMMA_SEPARATOR)&&(t=t.length>1&&"0"===t[0]&&"."!==t[1]?t.slice(1,t.length):t),e.startsWith(Mf.SEPARATOR)?(t.match(/[@#!$%^&*()_+|~=`{}\[\]:.";<>?\/]/)&&(t=t.substring(0,t.length-1)),d=(t=this.checkInputPrecision(t,h,",")).replace(/\s/g,""),o=this.separator(d," ",",",h)):e.startsWith(Mf.DOT_SEPARATOR)?(t.match(/[@#!$%^&*()_+|~=`{}\[\]:\s";<>?\/]/)&&(t=t.substring(0,t.length-1)),d=(t=this.checkInputPrecision(t,h,",")).replace(/\./g,""),o=this.separator(d,".",",",h)):e.startsWith(Mf.COMMA_SEPARATOR)&&(d=t.replace(/,/g,""),o=this.separator(d,",",".",h));var p=o.indexOf(",")-t.indexOf(","),f=o.length-t.length;if(f>0&&","!==o[n]){s=!0;var v=0;do{this._shift.add(n+v),v++}while(v0&&!(o.indexOf(",")>=n&&n>3)||!(o.indexOf(".")>=n&&n>3)&&f<=0?(this._shift.clear(),s=!0,c=f,this._shift.add(n+=f)):this._shift.clear()}else for(var g=0,m=u[0];g2){var y=/[*?]/g.test(e.slice(0,i+=1))?u.length:i;this._shift.add(y+this.prefix.length||0),g--;continue}if("h"===e[i]&&"2"===o&&Number(m)>3)continue;if("m"===e[i]&&Number(m)>5){var b=/[*?]/g.test(e.slice(0,i+=1))?u.length:i;this._shift.add(b+this.prefix.length||0),g--;continue}if("s"===e[i]&&Number(m)>5){var _=/[*?]/g.test(e.slice(0,i+=1))?u.length:i;this._shift.add(_+this.prefix.length||0),g--;continue}if("d"===e[i]&&Number(m)>3){var C=/[*?]/g.test(e.slice(0,i+=1))?u.length:i;this._shift.add(C+this.prefix.length||0),g--;continue}if("d"===e[i-1]&&Number(t.slice(i-1,i+1))>31)continue;if("M"===e[i]&&Number(m)>1){var w=/[*?]/g.test(e.slice(0,i+=1))?u.length:i;this._shift.add(w+this.prefix.length||0),g--;continue}if("M"===e[i-1]&&Number(t.slice(i-1,i+1))>12)continue;o+=m,i++}else if(-1!==this.maskSpecialCharacters.indexOf(e[i])){o+=e[i],i++;var k=/[*?]/g.test(e.slice(0,i))?u.length:i;this._shift.add(k+this.prefix.length||0),g--}else this.maskSpecialCharacters.indexOf(m)>-1&&this.maskAvailablePatterns[e[i]]&&this.maskAvailablePatterns[e[i]].optional?(i++,g--):("*"===this.maskExpression[i+1]&&this._findSpecialChar(this.maskExpression[i+2])&&this._findSpecialChar(m)===this.maskExpression[i+2]&&a||"?"===this.maskExpression[i+1]&&this._findSpecialChar(this.maskExpression[i+2])&&this._findSpecialChar(m)===this.maskExpression[i+2]&&a)&&(i+=3,o+=m);o.length+1===e.length&&-1!==this.maskSpecialCharacters.indexOf(e[e.length-1])&&(o+=e[e.length-1]);for(var O=n+1;this._shift.has(O);)c++,O++;r(this._shift.has(n)?c:0,s),c<0&&this._shift.clear();var P=this.suffix?"".concat(this.prefix).concat(o).concat(this.suffix):"".concat(this.prefix).concat(o);return 0===o.length&&(P="".concat(this.prefix).concat(o)),P}},{key:"_findSpecialChar",value:function(t){return this.maskSpecialCharacters.find((function(e){return e===t}))}},{key:"_checkSymbolMask",value:function(t,e){return this.maskAvailablePatterns=this.customPattern?this.customPattern:this.maskAvailablePatterns,this.maskAvailablePatterns[e]&&this.maskAvailablePatterns[e].pattern&&this.maskAvailablePatterns[e].pattern.test(t)}},{key:"_checkInput",value:function(t){return t.split("").filter((function(t){return t.match("\\d")||"."===t||","===t})).join("")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(he(Of))},t.\u0275prov=St({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),Tf=function(){var t=function(t){p(n,t);var e=m(n);function n(t,r,i,o){var a;return y(this,n),(a=e.call(this,r)).document=t,a._config=r,a._elementRef=i,a._renderer=o,a.validation=!0,a.maskExpression="",a.isNumberValue=!1,a.showMaskTyped=!1,a.maskIsShown="",a.selStart=null,a.selEnd=null,a.onChange=function(t){},a._formElement=a._elementRef.nativeElement,a}return _(n,[{key:"applyMask",value:function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};if(!e)return t;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(t||"#")),!t&&this.showMaskTyped)return this.formControlResult(this.prefix),this.prefix+this.maskIsShown;var s=t&&"number"==typeof this.selStart?t[this.selStart]:"",c="";if(void 0!==this.hiddenInput){var u=this.actualValue.split("");""!==t&&u.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(t.length>u.length?u.splice(this.selStart,0,s):t.length0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};this._formElement.value=this.applyMask(this._formElement.value,this.maskExpression,t,e),this._formElement!==this.document.activeElement&&this.clearIfNotMatchFn()}},{key:"hideInput",value:function(t,e){var n=this;return t.split("").map((function(t,r){return n.maskAvailablePatterns&&n.maskAvailablePatterns[e[r]]&&n.maskAvailablePatterns[e[r]].symbol?n.maskAvailablePatterns[e[r]].symbol:t})).join("")}},{key:"getActualValue",value:function(t){var e=this,n=t.split("").filter((function(t,n){return e._checkSymbolMask(t,e.maskExpression[n])||e.maskSpecialCharacters.includes(e.maskExpression[n])&&t===e.maskExpression[n]}));return n.join("")===t?n.join(""):t}},{key:"shiftTypedSymbols",value:function(t){var e=this,n="";return(t&&t.split("").map((function(r,i){if(e.maskSpecialCharacters.includes(t[i+1])&&t[i+1]!==e.maskExpression[i+1])return n=r,t[i+1];if(n.length){var o=n;return n="",o}return r}))||[]).join("")}},{key:"showMaskInInput",value:function(t){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}return this.showMaskTyped?t?this._checkForIp(t):this.maskExpression.replace(/\w/g,"_"):""}},{key:"clearIfNotMatchFn",value:function(){this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==this._formElement.value.length&&(this.formElementProperty=["value",""],this.applyMask(this._formElement.value,this.maskExpression))}},{key:"formElementProperty",set:function(t){var e=c(t,2);this._renderer.setProperty(this._formElement,e[0],e[1])}},{key:"checkSpecialCharAmount",value:function(t){var e=this;return t.split("").filter((function(t){return e._findSpecialChar(t)})).length}},{key:"_checkForIp",value:function(t){if("#"===t)return"_._._._";for(var e=[],n=0;n3&&e.length<=6?"_._":e.length>6&&e.length<=9?"_":""}},{key:"formControlResult",value:function(t){Array.isArray(this.dropSpecialCharacters)?this.onChange(this._removeMask(this._removeSuffix(this._removePrefix(t)),this.dropSpecialCharacters)):this.onChange(this.dropSpecialCharacters?this._checkSymbols(t):this._removeSuffix(this._removePrefix(t)))}},{key:"_removeMask",value:function(t,e){return t?t.replace(this._regExpForRemove(e),""):t}},{key:"_removePrefix",value:function(t){return this.prefix&&t?t.replace(this.prefix,""):t}},{key:"_removeSuffix",value:function(t){return this.suffix&&t?t.replace(this.suffix,""):t}},{key:"_regExpForRemove",value:function(t){return new RegExp(t.map((function(t){return"\\".concat(t)})).join("|"),"gi")}},{key:"_checkSymbols",value:function(t){var e=this.testFn(Mf.SEPARATOR,this.maskExpression);return e&&this.isNumberValue||(e=this.testFn(Mf.DOT_SEPARATOR,this.maskExpression))&&this.isNumberValue?""===t?t:","===t?null:Number(this._removeMask(this._removeSuffix(this._removePrefix(t)),this.maskSpecialCharacters).replace(",",".")):(e=this.testFn(Mf.COMMA_SEPARATOR,this.maskExpression))&&this.isNumberValue?""===t?t:"."===t?null:Number(this._removeMask(this._removeSuffix(this._removePrefix(t)),this.maskSpecialCharacters)):this.isNumberValue?""===t?t:Number(this._removeMask(this._removeSuffix(this._removePrefix(t)),this.maskSpecialCharacters)):-1!==this._removeMask(this._removeSuffix(this._removePrefix(t)),this.maskSpecialCharacters).indexOf(",")?this._removeMask(this._removeSuffix(this._removePrefix(t)),this.maskSpecialCharacters).replace(",","."):this._removeMask(this._removeSuffix(this._removePrefix(t)),this.maskSpecialCharacters)}},{key:"testFn",value:function(t,e){var n=e.match(new RegExp("^".concat(t,"\\.([^d]*)")));return n?Number(n[1]):null}}]),n}(Ef);return t.\u0275fac=function(e){return new(e||t)(he($u),he(Of),he(Ws),he(Ks))},t.\u0275prov=St({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),Af=function(){var t=bf=function(){function t(e,n){y(this,t),this.document=e,this._maskService=n,this.maskExpression="",this.specialCharacters=[],this.patterns={},this.prefix="",this.suffix="",this.dropSpecialCharacters=null,this.hiddenInput=null,this.showMaskTyped=null,this.shownMaskExpression=null,this.showTemplate=null,this.clearIfNotMatch=null,this.validation=null,this._position=null,this.onChange=function(t){},this.onTouch=function(){}}return _(t,[{key:"ngOnChanges",value:function(t){var e=t.specialCharacters,n=t.patterns,r=t.prefix,i=t.suffix,o=t.dropSpecialCharacters,a=t.hiddenInput,s=t.showMaskTyped,c=t.shownMaskExpression,u=t.showTemplate,l=t.clearIfNotMatch,d=t.validation;if(t.maskExpression&&(this._maskValue=t.maskExpression.currentValue||""),e){if(!e.currentValue||!Array.isArray(e.currentValue)||Array.isArray(e.currentValue)&&!e.currentValue.length)return;this._maskService.maskSpecialCharacters=t.specialCharacters.currentValue||""}n&&(this._maskService.maskAvailablePatterns=n.currentValue),r&&(this._maskService.prefix=r.currentValue),i&&(this._maskService.suffix=i.currentValue),o&&(this._maskService.dropSpecialCharacters=o.currentValue),a&&(this._maskService.hiddenInput=a.currentValue),s&&(this._maskService.showMaskTyped=s.currentValue),c&&(this._maskService.shownMaskExpression=c.currentValue),u&&(this._maskService.showTemplate=u.currentValue),l&&(this._maskService.clearIfNotMatch=l.currentValue),d&&(this._maskService.validation=d.currentValue),this._applyMask()}},{key:"validate",value:function(t){var e=this,n=t.value;if(!this._maskService.validation)return null;if(this._maskService.ipError)return{"Mask error":!0};if(this._maskValue.startsWith("dot_separator")||this._maskValue.startsWith("comma_separator"))return null;if(Sf.includes(this._maskValue))return null;if(this._maskService.clearIfNotMatch)return null;if(n&&n.toString().length>=1){var r=0,i=function(t){if(e._maskService.maskAvailablePatterns[t].optional&&!0===e._maskService.maskAvailablePatterns[t].optional){if(e._maskValue.indexOf(t)!==e._maskValue.lastIndexOf(t)){var i=e._maskValue.split("").filter((function(e){return e===t})).join("");r+=i.length}else-1!==e._maskValue.indexOf(t)&&r++;if(-1!==e._maskValue.indexOf(t)&&n.toString().length>=e._maskValue.indexOf(t))return{v:null};if(r===e._maskValue.length)return{v:null}}};for(var o in this._maskService.maskAvailablePatterns){var a=i(o);if("object"==typeof a)return a.v}if(1===this._maskValue.indexOf("*")||1===this._maskValue.indexOf("?")||1===this._maskValue.indexOf("{"))return null;if(this._maskValue.indexOf("*")>1&&n.toString().length1&&n.toString().lengththis._maskService.prefix.length&&38!==t.keyCode&&this._maskService.showMaskTyped&&(this._maskService.maskIsShown=this._maskService.showMaskInInput(),(e.setSelectionRange&&this._maskService.prefix+this._maskService.maskIsShown===e.value||e.setSelectionRange&&this._maskService.maskIsShown!==e.value)&&(e.focus(),e.setSelectionRange(0,0)),this._inputValue.match("[w\u0430-\u044f\u0410-\u042f]")||this._inputValue.match("[a-z]|[A-Z]")),e.value=e.value&&e.value!==this._maskService.prefix?e.value:this._maskService.prefix+this._maskService.maskIsShown,(e.selectionStart||e.selectionEnd)<=this._maskService.prefix.length&&(e.selectionStart=this._maskService.prefix.length)}},{key:"a",value:function(t){this._code=t.code?t.code:t.key;var e=t.target;this._maskService.selStart=e.selectionStart,this._maskService.selEnd=e.selectionEnd,38===t.keyCode&&t.preventDefault(),(37===t.keyCode||8===t.keyCode)&&(37===t.keyCode&&(e.selectionStart=e.selectionEnd-1),8===t.keyCode&&0===e.value.length&&(e.selectionStart=e.selectionEnd),e.selectionStart<=this._maskService.prefix.length&&e.selectionEnd<=this._maskService.prefix.length&&t.preventDefault(),8===t.keyCode&&0===e.selectionStart&&e.selectionEnd===e.value.length&&0!==e.value.length&&(this._position=this._maskService.prefix?this._maskService.prefix.length:0,this._maskService.applyMask(this._maskService.prefix,this._maskService.maskExpression,this._position)))}},{key:"onPaste",value:function(){this._position=Number.MAX_SAFE_INTEGER}},{key:"writeValue",value:function(t){return Object(Dh.b)(this,void 0,void 0,Nh.a.mark((function e(){return Nh.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:void 0===t&&(t=""),"number"==typeof t&&(t=String(t),t=this._maskValue.startsWith("dot_separator")?t.replace(".",","):t,this._maskService.isNumberValue=!0),this._maskService.formElementProperty=t&&this._maskService.maskExpression||this._maskService.maskExpression&&(this._maskService.prefix||this._maskService.showMaskTyped)?["value",this._maskService.applyMask(t,this._maskService.maskExpression)]:["value",t],this._inputValue=t;case 4:case"end":return e.stop()}}),e,this)})))}},{key:"registerOnChange",value:function(t){this.onChange=t,this._maskService.onChange=this.onChange}},{key:"registerOnTouched",value:function(t){this.onTouch=t}},{key:"setDisabledState",value:function(t){this._maskService.formElementProperty=["disabled",t]}},{key:"_repeatPatternSymbols",value:function(t){var e=this;return t.match(/{[0-9]+}/)&&t.split("").reduce((function(n,r,i){if(e._start="{"===r?i:e._start,"}"!==r)return e._maskService._findSpecialChar(r)?n+r:n;e._end=i;var o=Number(t.slice(e._start+1,e._end));return n+new Array(o+1).join(t[e._start-1])}),"")||t}},{key:"_applyMask",value:function(){this._maskService.maskExpression=this._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Wa($u),Wa(Tf))},t.\u0275dir=Le({type:t,selectors:[["","mask",""]],hostBindings:function(t,e){1&t&&rs("input",(function(t){return e.onInput(t)}))("blur",(function(){return e.onBlur()}))("click",(function(t){return e.onFocus(t)}))("keydown",(function(t){return e.a(t)}))("paste",(function(){return e.onPaste()}))},inputs:{maskExpression:["mask","maskExpression"],specialCharacters:"specialCharacters",patterns:"patterns",prefix:"prefix",suffix:"suffix",dropSpecialCharacters:"dropSpecialCharacters",hiddenInput:"hiddenInput",showMaskTyped:"showMaskTyped",shownMaskExpression:"shownMaskExpression",showTemplate:"showTemplate",clearIfNotMatch:"clearIfNotMatch",validation:"validation"},features:[Bs([{provide:Lh,useExisting:Bt((function(){return bf})),multi:!0},{provide:Qh,useExisting:Bt((function(){return bf})),multi:!0},Tf]),Ye]}),t}(),Nf=function(){var t=_f=function(){function t(){y(this,t)}return _(t,null,[{key:"forRoot",value:function(t){return{ngModule:_f,providers:[{provide:Pf,useValue:t},{provide:xf,useValue:If},{provide:Of,useFactory:Df,deps:[xf,Pf]},Ef]}}},{key:"forChild",value:function(t){return{ngModule:_f}}}]),t}();return t.\u0275mod=De({type:t}),t.\u0275inj=Mt({factory:function(e){return new(e||t)}}),t}();function Df(t,e){return Object.assign({},t,e instanceof Function?e():e)}function Vf(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(e){o(e)}}function s(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))}function Lf(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)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 a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&(r+=" + "+i+"GB"),t.bonusInternetOutro&&(i=parseFloat(t.bonusInternetOutro.split("GB")[0]))>0&&(r+=" + "+i+"GB"),e&&t.bonusInternetPortabilidade&&(i=parseFloat(t.bonusInternetPortabilidade.split("GB")[0]))>0&&(r+=" + "+i+"GB"),t.bonusInternetExtraPlay&&(i=parseFloat(t.bonusInternetExtraPlay.split("GB")[0]))>0&&(r+=" + "+i+"GB"),t.bonusInternetBlackFriday&&(i=parseFloat(t.bonusInternetBlackFriday.split("GB")[0]))>0&&(r+=" + "+i+"GB"),t.additionalInformation&&(r+=" "+t.additionalInformation),r+" + Liga\xe7\xf5es Ilimitadas"},t.\u0275prov=St({token:t,factory:t.\u0275fac=function(e){return new(e||t)}}),t}(),Ff=function(t){return t[t.Migracao=1]="Migracao",t[t.Portabilidade=2]="Portabilidade",t[t.NovaLinha=3]="NovaLinha",t}({}),jf=function(t){return t[t.Ilimitado=0]="Ilimitado",t[t.Alternativo=1]="Alternativo",t[t.Opcional=2]="Opcional",t[t.Video=3]="Video",t[t.Gaming=4]="Gaming",t[t.Esportes=5]="Esportes",t[t.ExtraPlay=6]="ExtraPlay",t[t.Trial=7]="Trial",t[t.AssinaturaIncluida=8]="AssinaturaIncluida",t}({}),zf=function(){return function(){}}(),Bf=function(){return function(){}}(),Uf=function(t){return t[t.fiber=0]="fiber",t[t.wttx=1]="wttx",t[t.both=2]="both",t[t.iron=3]="iron",t[t.unknown=4]="unknown",t}({}),Gf=function(){function t(){this.addedPlan=!1;var t=window;this.datalayer=t.dataLayer||[]}return t.prototype.push=function(t){this.datalayer.push({event:t.event,eventCategory:t.eventCategory,eventAction:t.eventAction,eventLabel:t.eventLabel})},t.prototype.pushModality=function(t){1===t?this.datalayer.push({Modalidade:"migracao"}):2===t?this.datalayer.push({Modalidade:"portabilidade"}):3===t&&this.datalayer.push({Modalidade:"nova linha"})},t.prototype.pushDimension=function(t){this.datalayer.push(t)},t.prototype.tagGlobalDimensions=function(t){this.datalayer.push({dimension14:t.numeroClaro,dimension15:t.manterNumero,dimension16:t.lojaOrigem,dimension17:t.planoEscolhido})},t.prototype.tagAddToCart=function(t){this.datalayer.find((function(t){return"addToCart"===t.event}))||this.datalayer.push({event:"addToCart",eventCategory:"enhanced-ecommerce",eventAction:"addToCart",eventLabel:"claro:avi",ecommerce:{add:{products:[{name:t.plan.name,id:t.plan.sku,price:t.price,brand:"claro-"+t.plan.type,category:t.plan.type}]}}})},t.prototype.tagCheckout=function(t,e,n){t.plan&&this.datalayer.push({event:"checkout",eventCategory:"enhanced-ecommerce",eventAction:"checkout:"+e,eventLabel:"claro:avi",ecommerce:{checkout:{actionField:{step:n},products:[{name:t.plan.name,id:t.plan.sku,price:t.price,brand:"claro-"+t.plan.type,category:t.plan.type,variant:"",quantity:1}]}}})},t.prototype.tagPurchase=function(t){this.datalayer.push({event:"purchase",eventCategory:"enhanced-ecommerce",eventAction:"purchase",eventLabel:"claro:avi",ecommerce:{purchase:{actionField:{id:t.orderId,affiliation:"claro-movel:promocoesclaro.com.br",revenue:t.price},products:[{name:t.plan.name,id:t.plan.sku,price:t.price,brand:"claro-"+t.plan.type,category:t.plan.type,variant:"",quantity:1}]}}})},t.prototype.addChatStackToDataLayer=function(t,e){return Vf(this,void 0,void 0,(function(){var n;return Lf(this,(function(r){switch(n=t.source,e.content.id){case"show-plan":case"plan-selection":this.addedPlan||(this.addedPlan=!0,this.push({event:"event-wza",eventCategory:"claro-avi-"+n,eventAction:"01 - Plano",eventLabel:""}),this.tagCheckout(t,"escolha-plano",1));break;case"ask-modalidade":this.push({event:"event-wza",eventCategory:"claro-avi-"+n,eventAction:"02 - Modalidade",eventLabel:""}),this.tagCheckout(t,"escolha-modalidade",2);break;case"email-form":this.push({event:"event-wza",eventCategory:"claro-avi-"+n,eventAction:"03 - Email",eventLabel:""});break;case"ask-phone":this.push({event:"event-wza",eventCategory:"claro-avi-"+n,eventAction:"04 - Telefone",eventLabel:""}),this.tagCheckout(t,"insercao-telefone",3);break;case"cpf-form":this.push({event:"event-wza",eventCategory:"claro-avi-"+n,eventAction:"05 - CPF",eventLabel:""}),this.tagCheckout(t,"insercao-cpf",4);break;case"cep-form":this.push({event:"event-wza",eventCategory:"claro-avi-"+n,eventAction:"06 - CEP",eventLabel:""}),this.tagCheckout(t,"insercao-cep",5);break;case"address-form":this.push({event:"event-wza",eventCategory:"claro-avi-"+n,eventAction:"07 - Endereco",eventLabel:""}),this.tagCheckout(t,"insercao-endereco",6);break;case"payment-day":this.push({event:"event-wza",eventCategory:"claro-avi-"+n,eventAction:"08 - Data Fatura",eventLabel:""}),this.tagCheckout(t,"escolha-data-fatura",7);break;case"debit":this.push({event:"event-wza",eventCategory:"claro-avi-"+n,eventAction:"09 - Debito autom\xe1tico",eventLabel:""}),this.tagCheckout(t,"escolha-debito-automatico",8);break;case"bank-form":this.push({event:"event-wza",eventCategory:"claro-avi-"+n,eventAction:"10 - Dados banc\xe1rios",eventLabel:""}),this.tagCheckout(t,"insercao-dados-bancarios",9);break;case"confirm-order":this.push({event:"event-wza",eventCategory:"claro-avi-"+n,eventAction:"11 - Resumo pedido",eventLabel:""}),this.tagCheckout(t,"exibicao-resumo-pedido",10);break;case"validate-phone":this.push({event:"event-wza",eventCategory:"claro-avi-"+n,eventAction:"12 - Confirmacao",eventLabel:""}),this.tagCheckout(t,"escolha-confirmacao-pedido",11);break;case"show-order-number":this.push({event:"event-wza",eventCategory:"claro-avi-"+n,eventAction:"13 - Pedido",eventLabel:""}),this.tagPurchase(t),this.tagCheckout(t,"pagamento",12)}return[2]}))}))},t.\u0275prov=St({token:t,factory:t.\u0275fac=function(e){return new(e||t)}}),t}(),Hf=n("9/Zf"),qf=n("kdvv"),Wf=Object(Hf.b)(),$f="Sentry Logger ",Zf=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],e=0;e=0?Object(Dh.c)(this._breadcrumbs,[n]).slice(-e):Object(Dh.c)(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(t,e){var n;if(this._extra&&Object.keys(this._extra).length&&(t.extra=Object(Dh.a)(Object(Dh.a)({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=Object(Dh.a)(Object(Dh.a)({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=Object(Dh.a)(Object(Dh.a)({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=Object(Dh.a)(Object(Dh.a)({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts=Object(Dh.a)({trace:this._span.getTraceContext()},t.contexts);var r=null===(n=this._span.transaction)||void 0===n?void 0:n.name;r&&(t.tags=Object(Dh.a)({transaction:r},t.tags))}return this._applyFingerprint(t),t.breadcrumbs=Object(Dh.c)(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this._notifyEventProcessors(Object(Dh.c)(function(){var t=Object(Hf.b)();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}(),this._eventProcessors),t,e)},t.prototype._notifyEventProcessors=function(t,e,n,r){var i=this;return void 0===r&&(r=0),new tv((function(o,a){var s=t[r];if(null===e||"function"!=typeof s)o(e);else{var c=s(Object(Dh.a)({},e),n);Object(Qf.j)(c)?c.then((function(e){return i._notifyEventProcessors(t,e,n,r+1).then(o)})).then(null,a):i._notifyEventProcessors(t,c,n,r+1).then(o).then(null,a)}}))},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(e){e(t)})),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();!function(t){t.Ok="ok",t.Exited="exited",t.Crashed="crashed",t.Abnormal="abnormal"}(Xf||(Xf={}));var nv=n("6PXS"),rv=function(){function t(t){this.errors=0,this.sid=Object(Hf.c)(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=Xf.Ok,t&&this.update(t)}return t.prototype.update=function(t){void 0===t&&(t={}),t.user&&(t.user.ip_address&&(this.ipAddress=t.user.ip_address),t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||Date.now(),t.sid&&(this.sid=32===t.sid.length?t.sid:Object(Hf.c)()),t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),this.duration="number"==typeof t.duration?t.duration:this.timestamp-this.started,t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),t.ipAddress&&(this.ipAddress=t.ipAddress),t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):this.status===Xf.Ok?this.update({status:Xf.Exited}):this.update()},t.prototype.toJSON=function(){return Object(nv.a)({sid:""+this.sid,init:!0,started:new Date(this.started).toISOString(),timestamp:new Date(this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:Object(nv.a)({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},t}(),iv=function(){function t(t,e,n){void 0===e&&(e=new ev),void 0===n&&(n=3),this._version=n,this._stack=[{}],this.getStackTop().scope=e,this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this._version=this.flowOrder[this.currentInteraction.id]||(r.proceed||t.push(r.id),this.getStraightFlow(t,r.nextId||r.yesNextId,n)),t):t},t.prototype.nextInteration=function(){return Vf(this,void 0,void 0,(function(){var t;return Lf(this,(function(e){return t="intro",31!==this.carrierCode||this.currentInteraction||(t="ask-phone"),this.moveToNext(this.currentInteraction?this.currentInteraction.nextId:t),[2]}))}))},t.prototype.nextInteractionCustom=function(t){return Vf(this,void 0,void 0,(function(){var e;return Lf(this,(function(n){return e="intro",31!==this.carrierCode||this.currentInteraction||(e="ask-phone"),this.moveToNext(this.currentInteraction?t:e),[2]}))}))},t.prototype.nextInterationConfirm=function(t){return Vf(this,void 0,void 0,(function(){return Lf(this,(function(e){return this.moveToNext(t?this.currentInteraction.yesNextId:this.currentInteraction.noNextId),[2]}))}))},t.prototype.nextInterationOptions=function(t){return Vf(this,void 0,void 0,(function(){return Lf(this,(function(e){return this.moveToNext(t.nextId),[2]}))}))},t.prototype.moveToNext=function(t){return Vf(this,void 0,void 0,(function(){var e;return Lf(this,(function(n){switch(n.label){case 0:return console.log("Moving to "+t),this.typingDispatcher.next(!0),(e=this.configuration.workflow.find((function(e){return e.id===t}))).condition?this.getTestCondition(e.condition.id)?[3,2]:(console.log("skipping "+e.id),[4,this.moveToNext(e.condition.nextFalse)]):[3,2];case 1:return n.sent(),[2];case 2:return e.typingTime>0?[4,this.getSleep(e.typingTime)]:[3,4];case 3:n.sent(),n.label=4;case 4:return this.interactionDispatcher.next(e),this.currentInteraction=e,this.typingDispatcher.next(!1),this.progress=this.getStraightFlow([],this.configuration.workflow[0].id,!0).length,"congratulations"===t&&(this.progressComplete=!0),e.proceed&&e.nextId?[4,this.moveToNext(e.nextId)]:[3,6];case 5:n.sent(),n.label=6;case 6:return[2]}}))}))},t.prototype.getProccessPromise=function(t){return Vf(this,void 0,void 0,(function(){return Lf(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,3,4]),this.typingDispatcher.next(!0),[4,t];case 1:return[2,e.sent()];case 2:throw e.sent();case 3:return this.typingDispatcher.next(!1),[7];case 4:return[2]}}))}))},t.\u0275prov=St({token:t,factory:t.\u0275fac=function(e){return new(e||t)(he(hv))}}),t}(),fv=function(){function t(t){this.http=t,this.apiUrl="https://avi-log.wooza.com.br/api/"}return t.prototype.saveLogAsync=function(t,e,n){return Vf(this,void 0,void 0,(function(){var r;return Lf(this,(function(i){switch(i.label){case 0:return r={chatStack:t,userAgent:window.navigator.userAgent,chatSession:e,nextId:n},[4,this.http.post(this.apiUrl+"log",r).toPromise()];case 1:return i.sent(),[2]}}))}))},t.prototype.getChatAsync=function(t){return Vf(this,void 0,void 0,(function(){return Lf(this,(function(e){return[2,this.http.get(this.apiUrl+"log/retomada?uid="+t).toPromise()]}))}))},t.\u0275prov=St({token:t,factory:t.\u0275fac=function(e){return new(e||t)(he(gh))},providedIn:"root"}),t}(),vv=function(){function t(){}return t.\u0275prov=St({token:t,factory:t.\u0275fac=function(e){return new(e||t)}}),t}(),gv=function(){return function(t,e,n,r,i,o,a){this.component=t,this.colorVariant=e,this.isNewNode=n,this.content=r,this.finishedStep=!1,this.globalCfg=i,this.order=o,this.timLiveOrder=a}}(),mv=function(){function t(){this.operatorCode=Uu.codigoOperadora,this.isOpen=!1,this.isControle=!1}return Object.defineProperty(t.prototype,"contract",{get:function(){if(41===this.operatorCode)return this.isControle?"https://static.wooza.com.br/timmovel/controle/modal-controle/47423036-Regulamento%20Oferta%20Bonus%2020GB%20Controle%20Smart%20Fatura%2003.08%20-%20Areas%20de%20Ataque.pdf?_ga=2.166991162.505565581.1631215457-1937417935.1624651504":"https://cdn.celulardireto.com.br/TIM/estaticos/regulamentos/pos/CONTRATO_SMP_POS.pdf?_ga=2.101421121.1719692375.1631729145-1937417935.1624651504"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"planType",{set:function(t){this.isControle=t},enumerable:!1,configurable:!0}),t.prototype.open=function(){this.isOpen=!0},t.prototype.close=function(){this.isOpen=!1},t.\u0275prov=St({token:t,factory:t.\u0275fac=function(e){return new(e||t)},providedIn:"root"}),t}(),yv=function(){function t(){}return t.prototype.getImage=function(t){switch(t.toUpperCase()){case"FACEBOOK":return"assets/tim/images/social-media/facebook.png";case"INSTAGRAM":return"assets/tim/images/social-media/instagram.png";case"MESSENGER":return"assets/tim/images/social-media/messenger.png";case"MORE":return"assets/tim/images/social-media/more.png";case"TELEGRAM":return"assets/tim/images/social-media/telegram.png";case"TWITTER":return"assets/tim/images/social-media/twitter.png";case"WHATSAPP":return"assets/tim/images/social-media/whatsapp.png";case"WAZE":return"assets/tim/images/social-media/waze.png";case"SHIELD":return"assets/tim/images/tim-shield.png";case"MUSIC":return"assets/tim/images/tim-music.png";case"NEWS":return"assets/tim/images/tim-news.png";case"SKEELO AUDIOBOOKS LIGHT":return"assets/tim/images/tim-live/Audiobooks.png";case"BABBEL":return"assets/tim/images/tim-live/Babbel.png";case"BAND NEWS":return"assets/tim/images/tim-live/Band-News.png";case"BAND SPORTS":return"assets/tim/images/tim-live/Band-Sports.png";case"CARTOON NETWORK":return"assets/tim/images/tim-live/Cartoon.png";case"EST\xc1DIO TNT SPORTS":return"assets/tim/images/tim-live/estadio.png";case"TIM V\xcdDEOS BY LOOKE":return"assets/tim/images/tim-live/Looke.png";case"NETFLIX":return"assets/tim/images/tim-live/Netflix.png";case"TIM LIVE CONTE\xdaDO PARAMOUNT+":return"assets/tim/images/tim-live/Paramount-Plus.png";case"TIM LIVE MUSIC":return"assets/tim/images/tim-live/Deezer-Premium.png";default:console.error("N\xc3O EXISTE ESTA IMAGEM!")}},t.prototype.getPlanName=function(t){var e=t.plan,n="",r=-1;return n+="controle"==e.type?"TIM Controle":"TIM Black",e.bandwidth&&(r=parseInt(e.bandwidth.split("GB")[0],10))>0&&(n+=" "+r+"GB"),e.bonusInternetOutro&&(r=parseInt(e.bonusInternetOutro.split("GB")[0],10))>0&&(n+=" + "+e.bonusInternetOutro+"GB de b\xf4nus"),e.bonusInternetPortabilidade&&t.modalidade==Ff.Portabilidade&&(r=parseInt(e.bonusInternetPortabilidade.split("GB")[0],10))>0&&(n+=" + "+e.bonusInternetPortabilidade+"GB de b\xf4nus na Portabilidade"),e.bonusInternetC6Bank&&(r=parseInt(e.bonusInternetC6Bank.split("GB")[0],10))>0&&(n+=" + "+e.bonusInternetC6Bank+"GB de b\xf4nus C6 Bank"),e.bonusInternetFaturaDigital&&(r=parseInt(e.bonusInternetFaturaDigital.split("GB")[0],10))>0&&(n+=" + "+e.bonusInternetFaturaDigital+" de b\xf4nus na fatura digital"),e.bonusInternetDebitoAutomatico&&t.bankInfo&&(r=parseInt(e.bonusInternetDebitoAutomatico.split("GB")[0],10))>0&&(n+=" + "+e.bonusInternetDebitoAutomatico+"GB de b\xf4nus no d\xe9bito autom\xe1tico"),n+" + Liga\xe7\xf5es Ilimitadas"},t.\u0275prov=St({token:t,factory:t.\u0275fac=function(e){return new(e||t)}}),t}(),bv=function(){function t(){}return t.prototype.setUserData=function(t){return window.ineum("user",t,null,null)},t.prototype.setCurrentStep=function(t){return window.ineum("page",t)},t.prototype.setMetaTag=function(t,e){return window.ineum("meta",t,e)},t.prototype.setIgnoreUrls=function(){return window.ineum("ignoreUrls",[/localhost/i,/hmg-avi/i])},t.\u0275prov=St({token:t,factory:t.\u0275fac=function(e){return new(e||t)}}),t}(),_v=function(t){return t[t.VIVO=15]="VIVO",t[t.CLARO=21]="CLARO",t[t.TIM=41]="TIM",t[t.OI=31]="OI",t[t.NEXTEL=99]="NEXTEL",t[t.OUTRAS=50]="OUTRAS",t[t.NE=-1]="NE",t}({}),Cv={21:"Claro",41:"TIM",31:"Oi",15:"Vivo"},wv=function(t){p(n,t);var e=m(n);function n(t){var r;return y(this,n),(r=e.call(this))._value=t,r}return _(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(t){var e=i(r(n.prototype),"_subscribe",this).call(this,t);return e&&!e.closed&&t.next(this._value),e}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new z;return this._value}},{key:"next",value:function(t){i(r(n.prototype),"next",this).call(this,this._value=t)}}]),n}(G),kv=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}(),Ov=function(t){p(n,t);var e=m(n);function n(){return y(this,n),e.apply(this,arguments)}return _(n,[{key:"notifyNext",value:function(t,e,n,r,i){this.destination.next(e)}},{key:"notifyError",value:function(t,e){this.destination.error(t)}},{key:"notifyComplete",value:function(t){this.destination.complete()}}]),n}(N),Pv=function(t){p(n,t);var e=m(n);function n(t,r,i){var o;return y(this,n),(o=e.call(this)).parent=t,o.outerValue=r,o.outerIndex=i,o.index=0,o}return _(n,[{key:"_next",value:function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}},{key:"_error",value:function(t){this.parent.notifyError(t,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(N);function xv(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Pv(t,n,r);if(!i.closed)return e instanceof F?e.subscribe(i):tt(e)(i)}var Iv={};function Sv(){for(var t=arguments.length,e=new Array(t),n=0;n0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i0&&void 0!==arguments[0]?arguments[0]:Uv;return function(e){return e.lift(new zv(t))}}var zv=function(){function t(e){y(this,t),this.errorFactory=e}return _(t,[{key:"call",value:function(t,e){return e.subscribe(new Bv(t,this.errorFactory))}}]),t}(),Bv=function(t){p(n,t);var e=m(n);function n(t,r){var i;return y(this,n),(i=e.call(this,t)).errorFactory=r,i.hasValue=!1,i}return _(n,[{key:"_next",value:function(t){this.hasValue=!0,this.destination.next(t)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}]),n}(N);function Uv(){return new kv}function Gv(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new Hv(t))}}var Hv=function(){function t(e){y(this,t),this.defaultValue=e}return _(t,[{key:"call",value:function(t,e){return e.subscribe(new qv(t,this.defaultValue))}}]),t}(),qv=function(t){p(n,t);var e=m(n);function n(t,r){var i;return y(this,n),(i=e.call(this,t)).defaultValue=r,i.isEmpty=!0,i}return _(n,[{key:"_next",value:function(t){this.isEmpty=!1,this.destination.next(t)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(N);function Wv(t){return function(e){var n=new $v(t),r=e.lift(n);return n.caught=r}}var $v=function(){function t(e){y(this,t),this.selector=e}return _(t,[{key:"call",value:function(t,e){return e.subscribe(new Zv(t,this.selector,this.caught))}}]),t}(),Zv=function(t){p(n,t);var e=m(n);function n(t,r,i){var o;return y(this,n),(o=e.call(this,t)).selector=r,o.caught=i,o}return _(n,[{key:"error",value:function(t){if(!this.isStopped){var e;try{e=this.selector(t,this.caught)}catch(s){return void i(r(n.prototype),"error",this).call(this,s)}this._unsubscribeAndRecycle();var o=new rt(this);this.add(o);var a=ot(e,o);a!==o&&this.add(a)}}}]),n}(it);function Yv(t){return function(e){return 0===t?Av():e.lift(new Kv(t))}}var Kv=function(){function t(e){if(y(this,t),this.total=e,this.total<0)throw new Vv}return _(t,[{key:"call",value:function(t,e){return e.subscribe(new Jv(t,this.total))}}]),t}(),Jv=function(t){p(n,t);var e=m(n);function n(t,r){var i;return y(this,n),(i=e.call(this,t)).total=r,i.count=0,i}return _(n,[{key:"_next",value:function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}]),n}(N);function Qv(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Kd((function(e,n){return t(e,n,r)})):L,Yv(1),n?Gv(e):jv((function(){return new kv})))}}function Xv(){}function tg(t,e,n){return function(r){return r.lift(new eg(t,e,n))}}var eg=function(){function t(e,n,r){y(this,t),this.nextOrObserver=e,this.error=n,this.complete=r}return _(t,[{key:"call",value:function(t,e){return e.subscribe(new ng(t,this.nextOrObserver,this.error,this.complete))}}]),t}(),ng=function(t){p(n,t);var e=m(n);function n(t,r,i,a){var s;return y(this,n),(s=e.call(this,t))._tapNext=Xv,s._tapError=Xv,s._tapComplete=Xv,s._tapError=i||Xv,s._tapComplete=a||Xv,O(r)?(s._context=o(s),s._tapNext=r):r&&(s._context=r,s._tapNext=r.next||Xv,s._tapError=r.error||Xv,s._tapComplete=r.complete||Xv),s}return _(n,[{key:"_next",value:function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}},{key:"_error",value:function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}]),n}(N),rg=function(){function t(e,n,r){y(this,t),this.predicate=e,this.thisArg=n,this.source=r}return _(t,[{key:"call",value:function(t,e){return e.subscribe(new ig(t,this.predicate,this.thisArg,this.source))}}]),t}(),ig=function(t){p(n,t);var e=m(n);function n(t,r,i,a){var s;return y(this,n),(s=e.call(this,t)).predicate=r,s.thisArg=i,s.source=a,s.index=0,s.thisArg=i||o(s),s}return _(n,[{key:"notifyComplete",value:function(t){this.destination.next(t),this.destination.complete()}},{key:"_next",value:function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),n}(N);function og(t,e){return"function"==typeof e?function(n){return n.pipe(og((function(n,r){return nt(t(n,r)).pipe(W((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new ag(t))}}var ag=function(){function t(e){y(this,t),this.project=e}return _(t,[{key:"call",value:function(t,e){return e.subscribe(new sg(t,this.project))}}]),t}(),sg=function(t){p(n,t);var e=m(n);function n(t,r){var i;return y(this,n),(i=e.call(this,t)).project=r,i.index=0,i}return _(n,[{key:"_next",value:function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e)}},{key:"_innerSub",value:function(t){var e=this.innerSubscription;e&&e.unsubscribe();var n=new rt(this),r=this.destination;r.add(n),this.innerSubscription=ot(t,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}},{key:"_complete",value:function(){var t=this.innerSubscription;t&&!t.closed||i(r(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=void 0}},{key:"notifyComplete",value:function(){this.innerSubscription=void 0,this.isStopped&&i(r(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(t){this.destination.next(t)}}]),n}(it);function cg(){return Dv()(Zd.apply(void 0,arguments))}var ug=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];y(this,t),this.accumulator=e,this.seed=n,this.hasSeed=r}return _(t,[{key:"call",value:function(t,e){return e.subscribe(new lg(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),lg=function(t){p(n,t);var e=m(n);function n(t,r,i,o){var a;return y(this,n),(a=e.call(this,t)).accumulator=r,a._seed=i,a.hasSeed=o,a.index=0,a}return _(n,[{key:"seed",get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t}},{key:"_next",value:function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}},{key:"_tryNext",value:function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(r){this.destination.error(r)}this.seed=e,this.destination.next(e)}}]),n}(N),dg=function(){function t(e){y(this,t),this.callback=e}return _(t,[{key:"call",value:function(t,e){return e.subscribe(new hg(t,this.callback))}}]),t}(),hg=function(t){p(n,t);var e=m(n);function n(t,r){var i;return y(this,n),(i=e.call(this,t)).add(new x(r)),i}return _(n)}(N),pg=_((function t(e,n){y(this,t),this.id=e,this.url=n})),fg=function(t){p(n,t);var e=m(n);function n(t,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return y(this,n),(i=e.call(this,t,r)).navigationTrigger=o,i.restoredState=a,i}return _(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(pg),vg=function(t){p(n,t);var e=m(n);function n(t,r,i){var o;return y(this,n),(o=e.call(this,t,r)).urlAfterRedirects=i,o}return _(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(pg),gg=function(t){p(n,t);var e=m(n);function n(t,r,i){var o;return y(this,n),(o=e.call(this,t,r)).reason=i,o}return _(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(pg),mg=function(t){p(n,t);var e=m(n);function n(t,r,i){var o;return y(this,n),(o=e.call(this,t,r)).error=i,o}return _(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(pg),yg=function(t){p(n,t);var e=m(n);function n(t,r,i,o){var a;return y(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return _(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(pg),bg=function(t){p(n,t);var e=m(n);function n(t,r,i,o){var a;return y(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return _(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(pg),_g=function(t){p(n,t);var e=m(n);function n(t,r,i,o,a){var s;return y(this,n),(s=e.call(this,t,r)).urlAfterRedirects=i,s.state=o,s.shouldActivate=a,s}return _(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(pg),Cg=function(t){p(n,t);var e=m(n);function n(t,r,i,o){var a;return y(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return _(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(pg),wg=function(t){p(n,t);var e=m(n);function n(t,r,i,o){var a;return y(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return _(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(pg),kg=function(){function t(e){y(this,t),this.route=e}return _(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),Og=function(){function t(e){y(this,t),this.route=e}return _(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),Pg=function(){function t(e){y(this,t),this.snapshot=e}return _(t,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),xg=function(){function t(e){y(this,t),this.snapshot=e}return _(t,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),Ig=function(){function t(e){y(this,t),this.snapshot=e}return _(t,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),Sg=function(){function t(e){y(this,t),this.snapshot=e}return _(t,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),Mg=function(){function t(e,n,r){y(this,t),this.routerEvent=e,this.position=n,this.anchor=r}return _(t,[{key:"toString",value:function(){var t=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(t,"')")}}]),t}(),Eg=function(){function t(e){y(this,t),this.params=e||{}}return _(t,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),t}();function Tg(t){return new Eg(t)}function Ag(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Ng(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length-1})):t===e}function Lg(t){return Array.prototype.concat.apply([],t)}function Rg(t){return t.length>0?t[t.length-1]:null}function Fg(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function jg(t){return ns(t)?t:es(t)?nt(Promise.resolve(t)):Zd(t)}function zg(t,e,n){return n?function(t,e){return Dg(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Hg(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every((function(n){return Vg(t[n],e[n])}))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,i){if(n.segments.length>i.length)return!!Hg(n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!Hg(n.segments,i))return!1;for(var o in r.children){if(!n.children[o])return!1;if(!t(n.children[o],r.children[o]))return!1}return!0}var a=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!!Hg(n.segments,a)&&!!n.children.primary&&e(n.children.primary,r,s)}(e,n,n.segments)}(t.root,e.root)}var Bg=function(){function t(e,n,r){y(this,t),this.root=e,this.queryParams=n,this.fragment=r}return _(t,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Tg(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Zg.serialize(this)}}]),t}(),Ug=function(){function t(e,n){var r=this;y(this,t),this.segments=e,this.children=n,this.parent=null,Fg(n,(function(t,e){return t.parent=r}))}return _(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Yg(this)}}]),t}(),Gg=function(){function t(e,n){y(this,t),this.path=e,this.parameters=n}return _(t,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Tg(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return em(this)}}]),t}();function Hg(t,e){return t.length===e.length&&t.every((function(t,n){return t.path===e[n].path}))}function qg(t,e){var n=[];return Fg(t.children,(function(t,r){"primary"===r&&(n=n.concat(e(t,r)))})),Fg(t.children,(function(t,r){"primary"!==r&&(n=n.concat(e(t,r)))})),n}var Wg=_((function t(){y(this,t)})),$g=function(){function t(){y(this,t)}return _(t,[{key:"parse",value:function(t){var e=new am(t);return new Bg(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){var e,n,r="/".concat(function t(e,n){if(!e.hasChildren())return Yg(e);if(n){var r=e.children.primary?t(e.children.primary,!1):"",i=[];return Fg(e.children,(function(e,n){"primary"!==n&&i.push("".concat(n,":").concat(t(e,!1)))})),i.length>0?"".concat(r,"(").concat(i.join("//"),")"):r}var o=qg(e,(function(n,r){return"primary"===r?[t(e.children.primary,!1)]:["".concat(r,":").concat(t(n,!1))]}));return"".concat(Yg(e),"/(").concat(o.join("//"),")")}(t.root,!0)),i=(e=t.queryParams,(n=Object.keys(e).map((function(t){var n=e[t];return Array.isArray(n)?n.map((function(e){return"".concat(Jg(t),"=").concat(Jg(e))})).join("&"):"".concat(Jg(t),"=").concat(Jg(n))}))).length?"?".concat(n.join("&")):""),o="string"==typeof t.fragment?"#".concat(encodeURI(t.fragment)):"";return"".concat(r).concat(i).concat(o)}}]),t}(),Zg=new $g;function Yg(t){return t.segments.map((function(t){return em(t)})).join("/")}function Kg(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Jg(t){return Kg(t).replace(/%3B/gi,";")}function Qg(t){return Kg(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Xg(t){return decodeURIComponent(t)}function tm(t){return Xg(t.replace(/\+/g,"%20"))}function em(t){return"".concat(Qg(t.path)).concat((e=t.parameters,Object.keys(e).map((function(t){return";".concat(Qg(t),"=").concat(Qg(e[t]))})).join("")));var e}var nm=/^[^\/()?;=#]+/;function rm(t){var e=t.match(nm);return e?e[0]:""}var im=/^[^=?&#]+/,om=/^[^?&#]+/,am=function(){function t(e){y(this,t),this.url=e,this.remaining=e}return _(t,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ug([],{}):new Ug([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new Ug(t,e)),n}},{key:"parseSegment",value:function(){var t=rm(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new Gg(Xg(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=rm(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=rm(this.remaining);r&&this.capture(n=r)}t[Xg(e)]=Xg(n)}}},{key:"parseQueryParam",value:function(t){var e,n=(e=this.remaining.match(im))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var i=function(t){var e=t.match(om);return e?e[0]:""}(this.remaining);i&&this.capture(r=i)}var o=tm(n),a=tm(r);if(t.hasOwnProperty(o)){var s=t[o];Array.isArray(s)||(t[o]=s=[s]),s.push(a)}else t[o]=a}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=rm(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '".concat(this.url,"'"));var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i="primary");var o=this.parseChildren();e[i]=1===Object.keys(o).length?o.primary:new Ug([],o),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),t}(),sm=function(){function t(e){y(this,t),this._root=e}return _(t,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=cm(t,this._root);return e?e.children.map((function(t){return t.value})):[]}},{key:"firstChild",value:function(t){var e=cm(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=um(t,this._root);return e.length<2?[]:e[e.length-2].children.map((function(t){return t.value})).filter((function(e){return e!==t}))}},{key:"pathFromRoot",value:function(t){return um(t,this._root).map((function(t){return t.value}))}}]),t}();function cm(t,e){if(t===e.value)return e;var n,r=d(e.children);try{for(r.s();!(n=r.n()).done;){var i=cm(t,n.value);if(i)return i}}catch(o){r.e(o)}finally{r.f()}return null}function um(t,e){if(t===e.value)return[e];var n,r=d(e.children);try{for(r.s();!(n=r.n()).done;){var i=um(t,n.value);if(i.length)return i.unshift(e),i}}catch(o){r.e(o)}finally{r.f()}return[]}var lm=function(){function t(e,n){y(this,t),this.value=e,this.children=n}return _(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function dm(t){var e={};return t&&t.children.forEach((function(t){return e[t.value.outlet]=t})),e}var hm=function(t){p(n,t);var e=m(n);function n(t,r){var i;return y(this,n),(i=e.call(this,t)).snapshot=r,bm(o(i),t),i}return _(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(sm);function pm(t,e){var n=function(t,e){var n=new mm([],{},{},"",{},"primary",e,null,t.root,-1,{});return new ym("",new lm(n,[]))}(t,e),r=new wv([new Gg("",{})]),i=new wv({}),o=new wv({}),a=new wv({}),s=new wv(""),c=new fm(r,i,a,s,o,"primary",e,n.root);return c.snapshot=n.root,new hm(new lm(c,[]),n)}var fm=function(){function t(e,n,r,i,o,a,s,c){y(this,t),this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=c}return _(t,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(W((function(t){return Tg(t)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(W((function(t){return Tg(t)})))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),t}();function vm(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return gm(n.slice(r))}function gm(t){return t.reduce((function(t,e){return{params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}}),{params:{},data:{},resolve:{}})}var mm=function(){function t(e,n,r,i,o,a,s,c,u,l,d){y(this,t),this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this.routeConfig=c,this._urlSegment=u,this._lastPathIndex=l,this._resolve=d}return _(t,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=Tg(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Tg(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var t=this.url.map((function(t){return t.toString()})).join("/"),e=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(e,"')")}}]),t}(),ym=function(t){p(n,t);var e=m(n);function n(t,r){var i;return y(this,n),(i=e.call(this,r)).url=t,bm(o(i),r),i}return _(n,[{key:"toString",value:function(){return _m(this._root)}}]),n}(sm);function bm(t,e){e.value._routerState=t,e.children.forEach((function(e){return bm(t,e)}))}function _m(t){var e=t.children.length>0?" { ".concat(t.children.map(_m).join(", ")," } "):"";return"".concat(t.value).concat(e)}function Cm(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Dg(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Dg(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;ni;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new Im(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(o,e,t),s=a.processChildren?Em(a.segmentGroup,a.index,o.commands):Mm(a.segmentGroup,a.index,o.commands);return Pm(a.segmentGroup,s,e,r,i)}function Om(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Pm(t,e,n,r,i){var o={};return r&&Fg(r,(function(t,e){o[e]=Array.isArray(t)?t.map((function(t){return"".concat(t)})):"".concat(t)})),new Bg(n.root===t?e:function t(e,n,r){var i={};return Fg(e.children,(function(e,o){i[o]=e===n?r:t(e,n,r)})),new Ug(e.segments,i)}(n.root,t,e),o,i)}var xm=function(){function t(e,n,r){if(y(this,t),this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=r,e&&r.length>0&&Om(r[0]))throw new Error("Root segment cannot have matrix parameters");var i=r.find((function(t){return"object"==typeof t&&null!=t&&t.outlets}));if(i&&i!==Rg(r))throw new Error("{outlets:{}} has to be the last command")}return _(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}(),Im=_((function t(e,n,r){y(this,t),this.segmentGroup=e,this.processChildren=n,this.index=r}));function Sm(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:"".concat(t)}function Mm(t,e,n){if(t||(t=new Ug([],{})),0===t.segments.length&&t.hasChildren())return Em(t,e,n);var r=function(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i=n.length)return o;var a=t.segments[i],s=Sm(n[r]),c=r0&&void 0===s)break;if(s&&c&&"object"==typeof c&&void 0===c.outlets){if(!Dm(s,c,a))return o;r+=2}else{if(!Dm(s,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex0?new Ug([],l({},"primary",t)):t;return new Bg(r,e,n)}},{key:"expandSegmentGroup",value:function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(W((function(t){return new Ug([],t)}))):this.expandSegment(t,n,e,n.segments,r,!0)}},{key:"expandChildren",value:function(t,e,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return Zd({});var o=[],a=[],s={};return Fg(n,(function(n,i){var c,u,l=(c=i,u=n,r.expandSegmentGroup(t,e,u,c)).pipe(W((function(t){return s[i]=t})));"primary"===i?o.push(l):a.push(l)})),Zd.apply(null,o.concat(a)).pipe(Dv(),function(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Kd((function(e,n){return t(e,n,r)})):L,Lv(1),n?Gv(e):jv((function(){return new kv})))}}(),W((function(){return s})))}(n.children)}},{key:"expandSegment",value:function(t,e,n,r,i,o){var a=this;return Zd.apply(void 0,u(n)).pipe(W((function(s){return a.expandSegmentAgainstRoute(t,e,n,s,r,i,o).pipe(Wv((function(t){if(t instanceof zm)return Zd(null);throw t})))})),Dv(),Qv((function(t){return!!t})),Wv((function(t,n){if(t instanceof kv||"EmptyError"===t.name){if(a.noLeftoversInUrl(e,r,i))return Zd(new Ug([],{}));throw new zm(e)}throw t})))}},{key:"noLeftoversInUrl",value:function(t,e,n){return 0===e.length&&!t.children[n]}},{key:"expandSegmentAgainstRoute",value:function(t,e,n,r,i,o,a){return Ym(r)!==o?Um(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):Um(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Gm(o):this.lineralizeSegments(n,o).pipe(at((function(n){var o=new Ug(n,{});return i.expandSegment(t,o,e,n,r,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,n,r,i,o){var a=this,s=Wm(e,r,i),c=s.consumedSegments,u=s.lastChild,l=s.positionalParamSegments;if(!s.matched)return Um(e);var d=this.applyRedirectCommands(c,r.redirectTo,l);return r.redirectTo.startsWith("/")?Gm(d):this.lineralizeSegments(r,d).pipe(at((function(r){return a.expandSegment(t,e,n,r.concat(i.slice(u)),o,!1)})))}},{key:"matchSegmentAgainstRoute",value:function(t,e,n,r){var i=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(W((function(t){return n._loadedConfig=t,new Ug(r,{})}))):Zd(new Ug(r,{}));var o=Wm(e,n,r),a=o.consumedSegments,s=o.lastChild;if(!o.matched)return Um(e);var c=r.slice(s);return this.getChildConfig(t,n,r).pipe(at((function(t){var n=t.module,r=t.routes,o=function(t,e,n,r){return n.length>0&&function(t,e,n){return n.some((function(n){return Zm(t,e,n)&&"primary"!==Ym(n)}))}(t,n,r)?{segmentGroup:$m(new Ug(e,function(t,e){var n={};n.primary=e;var r,i=d(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;""===o.path&&"primary"!==Ym(o)&&(n[Ym(o)]=new Ug([],{}))}}catch(a){i.e(a)}finally{i.f()}return n}(r,new Ug(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some((function(n){return Zm(t,e,n)}))}(t,n,r)?{segmentGroup:$m(new Ug(t.segments,function(t,e,n,r){var i,o={},a=d(n);try{for(a.s();!(i=a.n()).done;){var s=i.value;Zm(t,e,s)&&!r[Ym(s)]&&(o[Ym(s)]=new Ug([],{}))}}catch(c){a.e(c)}finally{a.f()}return Object.assign(Object.assign({},r),o)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,a,c,r),s=o.segmentGroup,u=o.slicedSegments;return 0===u.length&&s.hasChildren()?i.expandChildren(n,r,s).pipe(W((function(t){return new Ug(a,t)}))):0===r.length&&0===u.length?Zd(new Ug(a,{})):i.expandSegment(n,s,r,u,"primary",!0).pipe(W((function(t){return new Ug(a.concat(t.segments),t.children)})))})))}},{key:"getChildConfig",value:function(t,e,n){var r=this;return e.children?Zd(new Rm(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Zd(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(at((function(n){return n?r.configLoader.load(t.injector,e).pipe(W((function(t){return e._loadedConfig=t,t}))):function(t){return new F((function(e){return e.error(Ag("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))}))}(e)}))):Zd(new Rm([],t))}},{key:"runCanLoadGuards",value:function(t,e,n){var r,i=this,o=e.canLoad;return o&&0!==o.length?nt(o).pipe(W((function(r){var i,o=t.get(r);if(function(t){return t&&Fm(t.canLoad)}(o))i=o.canLoad(e,n);else{if(!Fm(o))throw new Error("Invalid CanLoad guard");i=o(e,n)}return jg(i)}))).pipe(Dv(),tg((function(t){if(jm(t)){var e=Ag('Redirecting to "'.concat(i.urlSerializer.serialize(t),'"'));throw e.url=t,e}})),(r=function(t){return!0===t},function(t){return t.lift(new rg(r,void 0,t))})):Zd(!0)}},{key:"lineralizeSegments",value:function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Zd(n);if(r.numberOfChildren>1||!r.children.primary)return Hm(t.redirectTo);r=r.children.primary}}},{key:"applyRedirectCommands",value:function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new Bg(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var n={};return Fg(t,(function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t})),n}},{key:"createSegmentGroup",value:function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),a={};return Fg(e.children,(function(e,o){a[o]=i.createSegmentGroup(t,e,n,r)})),new Ug(o,a)}},{key:"createSegments",value:function(t,e,n,r){var i=this;return e.map((function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)}))}},{key:"findPosParam",value:function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return r}},{key:"findOrReturn",value:function(t,e){var n,r=0,i=d(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.path===t.path)return e.splice(r),o;r++}}catch(a){i.e(a)}finally{i.f()}return t}}]),t}();function Wm(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||Ng)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function $m(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new Ug(t.segments.concat(e.segments),e.children)}return t}function Zm(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Ym(t){return t.outlet||"primary"}var Km=_((function t(e){y(this,t),this.path=e,this.route=this.path[this.path.length-1]})),Jm=_((function t(e,n){y(this,t),this.component=e,this.route=n}));function Qm(t,e,n){var r=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Xm(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=dm(e);return t.children.forEach((function(t){ty(t,o[t.value.outlet],n,r.concat([t.value]),i),delete o[t.value.outlet]})),Fg(o,(function(t,e){return ny(t,n.getContext(e),i)})),i}function ty(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=t.value,a=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var c=ey(a,o,o.routeConfig.runGuardsAndResolvers);if(c?i.canActivateChecks.push(new Km(r)):(o.data=a.data,o._resolvedData=a._resolvedData),Xm(t,e,o.component?s?s.children:null:n,r,i),c){var u=s&&s.outlet&&s.outlet.component||null;i.canDeactivateChecks.push(new Jm(u,a))}}else a&&ny(e,s,i),i.canActivateChecks.push(new Km(r)),Xm(t,null,o.component?s?s.children:null:n,r,i);return i}function ey(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Hg(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Hg(t.url,e.url)||!Dg(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!wm(t,e)||!Dg(t.queryParams,e.queryParams);case"paramsChange":default:return!wm(t,e)}}function ny(t,e,n){var r=dm(t),i=t.value;Fg(r,(function(t,r){ny(t,i.component?e?e.children.getContext(r):null:e,n)})),n.canDeactivateChecks.push(new Jm(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}var ry=Symbol("INITIAL_VALUE");function iy(){return og((function(t){return Sv.apply(void 0,u(t.map((function(t){return t.pipe(Yv(1),function(){for(var t=arguments.length,e=new Array(t),n=0;n=2&&(n=!0),function(r){return r.lift(new ug(t,e,n))}}((function(t,e){var n=!1;return e.reduce((function(t,r,i){if(t!==ry)return t;if(r===ry&&(n=!0),!n){if(!1===r)return r;if(i===e.length-1||jm(r))return r}return t}),t)}),ry),Kd((function(t){return t!==ry})),W((function(t){return jm(t)?t:!0===t})),Yv(1))}))}function oy(t,e){return null!==t&&e&&e(new Ig(t)),Zd(!0)}function ay(t,e){return null!==t&&e&&e(new Pg(t)),Zd(!0)}function sy(t,e,n){var r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?Zd(r.map((function(r){return Nv((function(){var i,o=Qm(r,e,n);if(function(t){return t&&Fm(t.canActivate)}(o))i=jg(o.canActivate(e,t));else{if(!Fm(o))throw new Error("Invalid CanActivate guard");i=jg(o(e,t))}return i.pipe(Qv())}))}))).pipe(iy()):Zd(!0)}function cy(t,e,n){var r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map((function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)})).filter((function(t){return null!==t})).map((function(e){return Nv((function(){return Zd(e.guards.map((function(i){var o,a=Qm(i,e.node,n);if(function(t){return t&&Fm(t.canActivateChild)}(a))o=jg(a.canActivateChild(r,t));else{if(!Fm(a))throw new Error("Invalid CanActivateChild guard");o=jg(a(r,t))}return o.pipe(Qv())}))).pipe(iy())}))}));return Zd(i).pipe(iy())}var uy=_((function t(){y(this,t)})),ly=function(){function t(e,n,r,i,o,a){y(this,t),this.rootComponentType=e,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return _(t,[{key:"recognize",value:function(){try{var t=py(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new mm([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new lm(n,e),i=new ym(this.url,r);return this.inheritParamsAndData(i._root),Zd(i)}catch(o){return new F((function(t){return t.error(o)}))}}},{key:"inheritParamsAndData",value:function(t){var e=this,n=t.value,r=vm(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach((function(t){return e.inheritParamsAndData(t)}))}},{key:"processSegmentGroup",value:function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}},{key:"processChildren",value:function(t,e){var n,r=this,i=qg(e,(function(e,n){return r.processSegmentGroup(t,e,n)}));return n={},i.forEach((function(t){var e=n[t.value.outlet];if(e){var r=e.url.map((function(t){return t.toString()})).join("/"),i=t.value.url.map((function(t){return t.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(r,"' and '").concat(i,"'."))}n[t.value.outlet]=t.value})),function(t){t.sort((function(t,e){return"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)}))}(i),i}},{key:"processSegment",value:function(t,e,n,r){var i,o=d(t);try{for(o.s();!(i=o.n()).done;){var a=i.value;try{return this.processSegmentAgainstRoute(a,e,n,r)}catch(s){if(!(s instanceof uy))throw s}}}catch(c){o.e(c)}finally{o.f()}if(this.noLeftoversInUrl(e,n,r))return[];throw new uy}},{key:"noLeftoversInUrl",value:function(t,e,n){return 0===e.length&&!t.children[n]}},{key:"processSegmentAgainstRoute",value:function(t,e,n,r){if(t.redirectTo)throw new uy;if((t.outlet||"primary")!==r)throw new uy;var i,o=[],a=[];if("**"===t.path){var s=n.length>0?Rg(n).parameters:{};i=new mm(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,gy(t),r,t.component,t,dy(e),hy(e)+n.length,my(t))}else{var c=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new uy;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||Ng)(n,t,e);if(!r)throw new uy;var i={};Fg(r.posParams,(function(t,e){i[e]=t.path}));var o=r.consumed.length>0?Object.assign(Object.assign({},i),r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}(e,t,n);o=c.consumedSegments,a=n.slice(c.lastChild),i=new mm(o,c.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,gy(t),r,t.component,t,dy(e),hy(e)+o.length,my(t))}var u=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),l=py(e,o,a,u,this.relativeLinkResolution),d=l.segmentGroup,h=l.slicedSegments;if(0===h.length&&d.hasChildren()){var p=this.processChildren(u,d);return[new lm(i,p)]}if(0===u.length&&0===h.length)return[new lm(i,[])];var f=this.processSegment(u,d,h,"primary");return[new lm(i,f)]}}]),t}();function dy(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function hy(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function py(t,e,n,r,i){if(n.length>0&&function(t,e,n){return n.some((function(n){return fy(t,e,n)&&"primary"!==vy(n)}))}(t,n,r)){var o=new Ug(e,function(t,e,n,r){var i={};i.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;var o,a=d(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&"primary"!==vy(s)){var c=new Ug([],{});c._sourceSegment=t,c._segmentIndexShift=e.length,i[vy(s)]=c}}}catch(u){a.e(u)}finally{a.f()}return i}(t,e,r,new Ug(n,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some((function(n){return fy(t,e,n)}))}(t,n,r)){var a=new Ug(t.segments,function(t,e,n,r,i,o){var a,s={},c=d(r);try{for(c.s();!(a=c.n()).done;){var u=a.value;if(fy(t,n,u)&&!i[vy(u)]){var l=new Ug([],{});l._sourceSegment=t,l._segmentIndexShift="legacy"===o?t.segments.length:e.length,s[vy(u)]=l}}}catch(h){c.e(h)}finally{c.f()}return Object.assign(Object.assign({},i),s)}(t,e,n,r,t.children,i));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:n}}var s=new Ug(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function fy(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function vy(t){return t.outlet||"primary"}function gy(t){return t.data||{}}function my(t){return t.resolve||{}}function yy(t){return function(e){return e.pipe(og((function(e){var n=t(e);return n?nt(n).pipe(W((function(){return e}))):nt([e])})))}}var by=_((function t(){y(this,t)})),_y=function(){function t(){y(this,t)}return _(t,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),t}(),Cy=function(){var t=_((function t(){y(this,t)}));return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ee({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Ja(0,"router-outlet")},directives:function(){return[Ry]},encapsulation:2}),t}();function wy(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new ly(t,e,n,r,i,o).recognize()}(t,n,r.urlAfterRedirects,(a=r.urlAfterRedirects,e.serializeUrl(a)),i,o).pipe(W((function(t){return Object.assign(Object.assign({},r),{targetSnapshot:t})})));var a})))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),tg((function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),tg((function(t){var r=new yg(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(r)})));if(s&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var c=t.extractedUrl,u=t.source,l=t.restoredState,d=t.extras,h=new fg(t.id,e.serializeUrl(c),u,l);n.next(h);var p=pm(c,e.rootComponentType).snapshot;return Zd(Object.assign(Object.assign({},t),{targetSnapshot:p,urlAfterRedirects:c,extras:Object.assign(Object.assign({},d),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Tv})),yy((function(t){var n=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})})),tg((function(t){var n=new bg(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),W((function(t){return Object.assign(Object.assign({},t),{guards:(n=t.targetSnapshot,r=t.currentSnapshot,i=e.rootContexts,o=n._root,Xm(o,r?r._root:null,i,[o.value]))});var n,r,i,o})),function(t,e){return function(n){return n.pipe(at((function(n){var r=n.targetSnapshot,i=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?Zd(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return nt(t).pipe(at((function(t){return function(t,e,n,r,i){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?Zd(o.map((function(o){var a,s=Qm(o,e,i);if(function(t){return t&&Fm(t.canDeactivate)}(s))a=jg(s.canDeactivate(t,e,n,r));else{if(!Fm(s))throw new Error("Invalid CanDeactivate guard");a=jg(s(t,e,n,r))}return a.pipe(Qv())}))).pipe(iy()):Zd(!0)}(t.component,t.route,n,e,r)})),Qv((function(t){return!0!==t}),!0))}(s,r,i,t).pipe(at((function(n){return n&&"boolean"==typeof n?function(t,e,n,r){return nt(e).pipe(Yd((function(e){return nt([ay(e.route.parent,r),oy(e.route,r),cy(t,e.path,n),sy(t,e.route,n)]).pipe(Dv(),Qv((function(t){return!0!==t}),!0))})),Qv((function(t){return!0!==t}),!0))}(r,a,t,e):Zd(n)})),W((function(t){return Object.assign(Object.assign({},n),{guardsResult:t})})))})))}}(e.ngModule.injector,(function(t){return e.triggerEvent(t)})),tg((function(t){if(jm(t.guardsResult)){var n=Ag('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw n.url=t.guardsResult,n}})),tg((function(t){var n=new _g(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)})),Kd((function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var r=new gg(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(r),t.resolve(!1),!1}return!0})),yy((function(t){if(t.guards.canActivateChecks.length)return Zd(t).pipe(tg((function(t){var n=new Cg(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),og((function(t){var r,i,o=!1;return Zd(t).pipe((r=e.paramsInheritanceStrategy,i=e.ngModule.injector,function(t){return t.pipe(at((function(t){var e=t.targetSnapshot,n=t.guards.canActivateChecks;if(!n.length)return Zd(t);var o=0;return nt(n).pipe(Yd((function(t){return function(t,e,n,r){return function(t,e,n,r){var i=Object.keys(t);if(0===i.length)return Zd({});var o={};return nt(i).pipe(at((function(i){return function(t,e,n,r){var i=Qm(t,e,r);return jg(i.resolve?i.resolve(e,n):i(e,n))}(t[i],e,n,r).pipe(tg((function(t){o[i]=t})))})),Lv(1),at((function(){return Object.keys(o).length===i.length?Zd(o):Tv})))}(t._resolve,t,e,r).pipe(W((function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),vm(t,n).resolve),null})))}(t.route,e,r,i)})),tg((function(){return o++})),Lv(1),at((function(e){return o===n.length?Zd(t):Tv})))})))}),tg({next:function(){return o=!0},complete:function(){if(!o){var r=new gg(t.id,e.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");n.next(r),t.resolve(!1)}}}))})),tg((function(t){var n=new wg(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})))})),yy((function(t){var n=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})})),W((function(t){var n,r,i,o=(i=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){var i=r.value;i._futureSnapshot=n.value;var o=function(e,n,r){return n.children.map((function(n){var i,o=d(r.children);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(e.shouldReuseRoute(a.value.snapshot,n.value))return t(e,n,a)}}catch(s){o.e(s)}finally{o.f()}return t(e,n)}))}(e,n,r);return new lm(i,o)}var a=e.retrieve(n.value);if(a){var s=a.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=e.relativeTo,r=e.queryParams,i=e.fragment,o=e.preserveQueryParams,a=e.queryParamsHandling,s=e.preserveFragment;qr()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=n||this.routerState.root,u=s?this.currentUrlTree.fragment:i,l=null;if(a)switch(a){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=r||null}else l=o?this.currentUrlTree.queryParams:r||null;return null!==l&&(l=this.removeEmptyProps(l)),km(c,this.currentUrlTree,t,l,u)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};qr()&&this.isNgZoneEnabled&&!du.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=jm(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)}},{key:"navigate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return Ly(t),this.navigateByUrl(this.createUrlTree(t,e),e)}},{key:"serializeUrl",value:function(t){return this.urlSerializer.serialize(t)}},{key:"parseUrl",value:function(t){var e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}},{key:"isActive",value:function(t,e){if(jm(t))return zg(this.currentUrlTree,t,e);var n=this.parseUrl(t);return zg(this.currentUrlTree,n,e)}},{key:"removeEmptyProps",value:function(t){return Object.keys(t).reduce((function(e,n){var r=t[n];return null!=r&&(e[n]=r),e}),{})}},{key:"processNavigations",value:function(){var t=this;this.navigations.subscribe((function(e){t.navigated=!0,t.lastSuccessfulId=e.id,t.events.next(new vg(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(t.currentUrlTree))),t.lastSuccessfulNavigation=t.currentNavigation,t.currentNavigation=null,e.resolve(!0)}),(function(e){t.console.warn("Unhandled Navigation Error: ")}))}},{key:"scheduleNavigation",value:function(t,e,n,r,i){var o,a,s,c=this.getTransition();if(c&&"imperative"!==e&&"imperative"===c.source&&c.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(c&&"hashchange"==e&&"popstate"===c.source&&c.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(c&&"popstate"==e&&"hashchange"===c.source&&c.rawUrl.toString()===t.toString())return Promise.resolve(!0);i?(o=i.resolve,a=i.reject,s=i.promise):s=new Promise((function(t,e){o=t,a=e}));var u=++this.navigationId;return this.setTransition({id:u,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:o,reject:a,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch((function(t){return Promise.reject(t)}))}},{key:"setBrowserUrl",value:function(t,e,n,r){var i=this.urlSerializer.serialize(t);r=r||{},this.location.isCurrentPathEqualTo(i)||e?this.location.replaceState(i,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(i,"",Object.assign(Object.assign({},r),{navigationId:n}))}},{key:"resetStateAndUrl",value:function(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(he(va),he(Wg),he(My),he(cl),he(Ta),he(Du),he(cu),he(void 0))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}();function Ly(t){for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:{};y(this,t),this.router=e,this.viewportScroller=n,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}return _(t,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var t=this;return this.router.events.subscribe((function(e){e instanceof fg?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof vg&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))}))}},{key:"consumeScrollEvents",value:function(){var t=this;return this.router.events.subscribe((function(e){e instanceof Mg&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))}))}},{key:"scheduleScrollEvent",value:function(t,e){this.router.triggerEvent(new Mg(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(he(Vy),he(dd),he(void 0))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),Hy=new re("ROUTER_CONFIGURATION"),qy=new re("ROUTER_FORROOT_GUARD"),Wy=[cl,{provide:Wg,useClass:$g},{provide:Vy,useFactory:function(t,e,n,r,i,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},c=arguments.length>8?arguments[8]:void 0,u=arguments.length>9?arguments[9]:void 0,l=new Vy(null,t,e,n,r,i,o,Lg(a));if(c&&(l.urlHandlingStrategy=c),u&&(l.routeReuseStrategy=u),s.errorHandler&&(l.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(l.malformedUriErrorHandler=s.malformedUriErrorHandler),s.enableTracing){var d=qu();l.events.subscribe((function(t){d.logGroup("Router Event: ".concat(t.constructor.name)),d.log(t.toString()),d.log(t),d.logGroupEnd()}))}return s.onSameUrlNavigation&&(l.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(l.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.urlUpdateStrategy&&(l.urlUpdateStrategy=s.urlUpdateStrategy),s.relativeLinkResolution&&(l.relativeLinkResolution=s.relativeLinkResolution),l},deps:[Wg,My,cl,Ta,Du,cu,xy,Hy,[Ey,new wt],[by,new wt]]},My,{provide:fm,useFactory:function(t){return t.routerState.root},deps:[Vy]},{provide:Du,useClass:Ru},Uy,By,zy,{provide:Hy,useValue:{enableTracing:!1}}];function $y(){return new Pu("Router",Vy)}var Zy=function(){var t=function(){function t(e,n){y(this,t)}return _(t,null,[{key:"forRoot",value:function(e,n){return{ngModule:t,providers:[Wy,Qy(e),{provide:qy,useFactory:Jy,deps:[[Vy,new wt,new Ot]]},{provide:Hy,useValue:n||{}},{provide:rl,useFactory:Ky,deps:[Zu,[new Ct(ol),new wt],Hy]},{provide:Gy,useFactory:Yy,deps:[Vy,dd,Hy]},{provide:jy,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:By},{provide:Pu,multi:!0,useFactory:$y},[Xy,{provide:Hc,multi:!0,useFactory:tb,deps:[Xy]},{provide:nb,useFactory:eb,deps:[Xy]},{provide:Jc,multi:!0,useExisting:nb}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[Qy(e)]}}}]),t}();return t.\u0275mod=De({type:t}),t.\u0275inj=Mt({factory:function(e){return new(e||t)(he(qy,8),he(Vy,8))}}),t}();function Yy(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Gy(t,e,n)}function Ky(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new sl(t,e):new al(t,e)}function Jy(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Qy(t){return[{provide:Aa,multi:!0,useValue:t},{provide:xy,multi:!0,useValue:t}]}var Xy=function(){var t=function(){function t(e){y(this,t),this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new G}return _(t,[{key:"appInitializer",value:function(){var t=this;return this.injector.get(Ku,Promise.resolve(null)).then((function(){var e=null,n=new Promise((function(t){return e=t})),r=t.injector.get(Vy),i=t.injector.get(Hy);if(t.isLegacyDisabled(i)||t.isLegacyEnabled(i))e(!0);else if("disabled"===i.initialNavigation)r.setUpLocationChangeListener(),e(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '".concat(i.initialNavigation,"'"));r.hooks.afterPreactivation=function(){return t.initNavigation?Zd(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},r.initialNavigation()}return n}))}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(Hy),n=this.injector.get(Uy),r=this.injector.get(Gy),i=this.injector.get(Vy),o=this.injector.get(Au);t===o.components[0]&&(this.isLegacyEnabled(e)?i.initialNavigation():this.isLegacyDisabled(e)&&i.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"isLegacyEnabled",value:function(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}},{key:"isLegacyDisabled",value:function(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}]),t}();return t.\u0275fac=function(e){return new(e||t)(he(Ta))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}();function tb(t){return t.appInitializer.bind(t)}function eb(t){return t.bootstrapListener.bind(t)}var nb=new re("Router Initializer"),rb=function(t){return{width:t}};function ib(t,e){if(1&t&&(Ya(0,"div",9),Ya(1,"span"),ws(2),Ka(),Ya(3,"div",10),Ja(4,"div",11),Ka(),Ka()),2&t){var n=cs();ji(2),Ps("Passo ",n.stepNumber," de ",n.steps,""),ji(2),$a("ngStyle",Vc(3,rb,n.progressBar+"%"))}}function ob(t,e){1&t&&(Ya(0,"div",12),Ya(1,"span"),ws(2,"Conclu\xeddo"),Ka(),Ja(3,"div",13),Ka())}function ab(t,e){if(1&t&&(Ya(0,"div",14),Ya(1,"span"),ws(2),Ka(),Ya(3,"span"),ws(4),Ka(),Ka()),2&t){var n=cs();ji(2),xs("",n.order.plan.type.toUpperCase()," ",n.order.plan.bandwidth," + ",n.order.plan.bonusInternetOutro,""),ji(2),Os("R$ ",n.order.price,"")}}var sb=function(t){return{"with-plan":t}},cb=function(){function t(t,e){this.interactionService=t,this.versionService=e,this.logo="../../../assets/images/logo.png",this.logoGif="../../../assets/images/logo.gif",this.isCurrentlyTyping=!1,this.companyName=Uu.companyName,this.loadingMessage="digitando."}return Object.defineProperty(t.prototype,"isTyping",{set:function(t){this.loadingMessage="digitando.",this.isCurrentlyTyping=t,this.setTypingLoop()},enumerable:!1,configurable:!0}),t.prototype.ngOnChanges=function(){this.stepNumber=this.interactionService.progress,this.steps=this.interactionService.straightFlow?this.interactionService.straightFlow.length:null,this.complete=this.interactionService.progressComplete,this.progressBar=this.stepNumber/this.steps*100,this.order=this.chatStack&&this.chatStack.length>0?this.chatStack[this.chatStack.length-1].order:new Bf,this.order&&this.order.plan&&"2"===this.versionService.version&&(document.getElementsByTagName("main")[0].style.paddingTop="100px")},t.prototype.getTypingMessage=function(t){switch(t.length){case 12:return"digitando.";case 10:return"digitando..";case 11:default:return"digitando..."}},t.prototype.setTypingLoop=function(){var t=this;this.isCurrentlyTyping&&setTimeout((function(){t.loadingMessage=t.getTypingMessage(t.loadingMessage),t.setTypingLoop()}),350)},t.\u0275fac=function(e){return new(e||t)(Wa(pv),Wa(vv))},t.\u0275cmp=Ee({type:t,selectors:[["app-header"]],inputs:{chatStack:"chatStack",isTyping:"isTyping"},features:[Ye],decls:13,vars:9,consts:[[3,"ngClass"],[1,"header-top"],[1,"logo-container"],[3,"src"],[1,"typewriter-text"],[1,"progress-container"],["class","progress",4,"ngIf"],["class","progress-complete",4,"ngIf"],["class","plan-info-container",4,"ngIf"],[1,"progress"],[1,"progress-bar"],[1,"progress-bar-fill",3,"ngStyle"],[1,"progress-complete"],[1,"complete-icon"],[1,"plan-info-container"]],template:function(t,e){1&t&&(Ya(0,"header",0),Ya(1,"div",1),Ya(2,"div",2),Ja(3,"img",3),Ya(4,"p"),ws(5),Ja(6,"br"),Ya(7,"small",4),ws(8),Ka(),Ka(),Ka(),Ya(9,"div",5),Ha(10,ib,5,5,"div",6),Ha(11,ob,4,0,"div",7),Ka(),Ka(),Ha(12,ab,5,4,"div",8),Ka()),2&t&&($a("ngClass",Vc(7,sb,e.order&&e.order.plan&&"2"===e.versionService.version)),ji(3),$a("src",e.isCurrentlyTyping?e.logoGif:e.logo,mi),ji(2),Os(" ",e.companyName," "),ji(3),ks(e.isCurrentlyTyping?e.loadingMessage:"online"),ji(2),$a("ngIf",e.progressBar<100),ji(1),$a("ngIf",e.complete),ji(1),$a("ngIf",e.order&&e.order.plan&&"2"===e.versionService.version))},directives:[$l,Jl,rd],styles:["header[_ngcontent-%COMP%]{height:50px;width:100%;max-width:700px;display:flex;position:fixed;z-index:4;top:0;padding:0 15px;color:var(--header-txt-color);background-color:var(--header-bg-color);box-shadow:0 5px 10px -10px #000;box-sizing:border-box}header.with-plan[_ngcontent-%COMP%]{height:88px;padding:0;flex-direction:column}header.with-plan[_ngcontent-%COMP%] .header-top[_ngcontent-%COMP%]{padding:0 15px;width:100%;box-sizing:border-box}header[_ngcontent-%COMP%] .header-top[_ngcontent-%COMP%]{flex:1;display:flex;justify-content:space-between}header[_ngcontent-%COMP%] .header-top[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%]{display:flex;align-items:center}header[_ngcontent-%COMP%] .header-top[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:36px;margin-right:7px}header[_ngcontent-%COMP%] .header-top[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-weight:700}header[_ngcontent-%COMP%] .header-top[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-weight:400}header[_ngcontent-%COMP%] .header-top[_ngcontent-%COMP%] .progress-container[_ngcontent-%COMP%], header[_ngcontent-%COMP%] .header-top[_ngcontent-%COMP%] .progress-container[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;justify-content:center}header[_ngcontent-%COMP%] .header-top[_ngcontent-%COMP%] .progress-container[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px;margin-bottom:4px}header[_ngcontent-%COMP%] .header-top[_ngcontent-%COMP%] .progress-container[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%] .progress-bar[_ngcontent-%COMP%]{background:#bbb;border-radius:5px;width:125px;height:10px;position:relative}header[_ngcontent-%COMP%] .header-top[_ngcontent-%COMP%] .progress-container[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%] .progress-bar[_ngcontent-%COMP%] .progress-bar-fill[_ngcontent-%COMP%]{background:var(--header-progress-color);border-radius:5px;width:0;height:10px;position:absolute;top:0;left:0;transition:.2s ease}header[_ngcontent-%COMP%] .header-top[_ngcontent-%COMP%] .progress-container[_ngcontent-%COMP%] .progress-complete[_ngcontent-%COMP%]{display:flex;align-items:center}header[_ngcontent-%COMP%] .header-top[_ngcontent-%COMP%] .progress-container[_ngcontent-%COMP%] .progress-complete[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px;margin-right:5px}header[_ngcontent-%COMP%] .header-top[_ngcontent-%COMP%] .progress-container[_ngcontent-%COMP%] .progress-complete[_ngcontent-%COMP%] .complete-icon[_ngcontent-%COMP%]{width:20px;height:20px;background-image:var(--header-complete-icon)}header[_ngcontent-%COMP%] .plan-info-container[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:space-between;background:#ededed;padding:10px 15px;box-sizing:border-box;font-weight:700}"]}),t}(),ub=["*"],lb=function(){function t(){}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ee({type:t,selectors:[["app-modal-container"]],ngContentSelectors:ub,decls:3,vars:0,template:function(t,e){1&t&&(ls(),Ya(0,"section"),Ya(1,"div"),ds(2),Ka(),Ka())},styles:["section[_ngcontent-%COMP%]{position:fixed;height:100vh;width:100vw;z-index:5;display:flex;justify-content:center;align-items:center;border-radius:.25rem;background-color:rgba(0,0,0,.6)}section[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{background-color:#fff}@media only screen and (min-width:0px){section[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{height:25rem;width:18rem}}@media only screen and (min-width:557px){section[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{height:35rem;width:30rem}}"]}),t}(),db=function(){function t(t){this.sanatizer=t,this.closeModal=new Uc}return t.prototype.ngOnInit=function(){this.safeUrl=this.sanatizer.bypassSecurityTrustResourceUrl("https://docs.google.com/gview?url="+this.safeUrl+"&embedded=true")},t.\u0275fac=function(e){return new(e||t)(Wa(Bd))},t.\u0275cmp=Ee({type:t,selectors:[["app-contract-modal"]],inputs:{safeUrl:"safeUrl"},outputs:{closeModal:"closeModal"},decls:4,vars:1,consts:[[3,"click"],["frameborder","0",3,"src"]],template:function(t,e){1&t&&(Ya(0,"app-modal-container"),Ya(1,"span",0),rs("click",(function(){return e.closeModal.emit(!0)})),ws(2,"X"),Ka(),Ja(3,"iframe",1),Ka()),2&t&&(ji(3),$a("src",e.safeUrl,yi))},directives:[lb],styles:["app-modal-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;position:absolute;padding:.4rem;font-weight:700;color:#fff;background-color:#000}app-modal-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{background-color:#f50000}app-modal-container[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{height:100%;width:100%}"]}),t}();function hb(t,e){1&t&&Ja(0,"div",3)}var pb=function(t,e,n){return{primary:t,alternate:e,description:n}},fb=["*"],vb=function(){function t(){this.colorVariant="primary",this.isNewNode=!1,this.createdAt=new Date}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ee({type:t,selectors:[["app-chat-bubble"]],inputs:{colorVariant:"colorVariant",isNewNode:"isNewNode"},ngContentSelectors:fb,decls:6,vars:10,consts:[[1,"chat-bubble",3,"ngClass"],["class","triangle",4,"ngIf"],[1,"time"],[1,"triangle"]],template:function(t,e){var n,r,i,o,a,s;1&t&&(ls(),Ya(0,"div",0),Ha(1,hb,1,0,"div",1),ds(2),Ya(3,"p",2),ws(4),Fc(5,"date"),Ka(),Ka()),2&t&&($a("ngClass",(n=6,r=pb,i="primary"===e.colorVariant,o="alternate"===e.colorVariant,a="description"===e.colorVariant,function(t,e,n,r,i,o,a,s){var c=e+n;return Ua(t,c,i,o,a)?ja(t,c+3,s?r.call(s,i,o,a):r(i,o,a)):Lc(t,c+3)}(yn(),In(),n,r,i,o,a,s))),ji(1),$a("ngIf",e.isNewNode),ji(3),Os(" ",function(t,e,n,r){var i=yn(),o=un(i,t);return Bc(i,zc(i,t)?function(t,e,n,r,i,o,a){var s=e+n;return Ba(t,s,i,o)?ja(t,s+2,a?r.call(a,i,o):r(i,o)):Lc(t,s+2)}(i,In(),e,o.transform,n,r,o):o.transform(n,r))}(5,3,e.createdAt,"HH:mm")," "))},directives:[$l,Jl],pipes:[ud],styles:[".chat-bubble[_ngcontent-%COMP%]{margin:10px 35px 0 20px;padding:15px 15px 30px;border-radius:8px;position:relative;box-shadow:0 2px 4px 0 rgba(0,0,0,.3);width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:630px}.chat-bubble.primary[_ngcontent-%COMP%]{background:var(--primary-color)}.chat-bubble.primary[_ngcontent-%COMP%] div.triangle[_ngcontent-%COMP%]{border-left-color:transparent;border-bottom-color:transparent;border-right-color:var(--primary-color);border-top-color:transparent;border-width:0 20px 20px 0;left:-12px}.chat-bubble.alternate[_ngcontent-%COMP%]{background:var(--alternate-color);width:60vw;margin-left:calc(40vw - 55px);padding:18px;margin-top:20px;margin-bottom:20px}.chat-bubble.alternate[_ngcontent-%COMP%] div.triangle[_ngcontent-%COMP%]{border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;border-top-color:var(--alternate-color);border-width:20px 20px 0 0;right:-14px}.chat-bubble.description[_ngcontent-%COMP%]{background:var(--primary-color);border-top:10px solid;border-top-color:var(--claro-top-border-new-layout);border-radius:10px;width:revert;max-width:350px}.chat-bubble.description[_ngcontent-%COMP%] div.triangle[_ngcontent-%COMP%]{display:none}.chat-bubble[_ngcontent-%COMP%] div.triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;border-width:0 20px 20px 0;position:absolute;top:0}.chat-bubble[_ngcontent-%COMP%] p.time[_ngcontent-%COMP%]{font-size:13px;color:#999;position:absolute;margin:0;right:15px;bottom:3px}@media only screen and (min-width:700px){.chat-bubble.alternate[_ngcontent-%COMP%]{background:var(--alternate-color);width:250px;margin-left:400px;padding:15px}}@media only screen and (max-width:700px){.chat-bubble.primary[_ngcontent-%COMP%]{width:calc(100% - 65px)}}"]}),t}();function gb(t,e){if(1&t&&(Ya(0,"div"),Ja(1,"br"),Ya(2,"a",3),ws(3,"Clique aqui"),Ka(),Ka()),2&t){var n=cs();ji(2),$a("href",n.getSanitizedUrl(n.chatItem.content.htmlLink),mi)}}var mb=function(){function t(t){this.sanitizer=t}return t.prototype.getSanitizedUrl=function(t){return this.sanitizer.bypassSecurityTrustUrl(t)},t.\u0275fac=function(e){return new(e||t)(Wa(Bd))},t.\u0275cmp=Ee({type:t,selectors:[["app-pure-text"]],inputs:{chatItem:"chatItem"},decls:3,vars:4,consts:[[3,"colorVariant","isNewNode"],[1,"text",3,"innerHtml"],[4,"ngIf"],["target","_blank",3,"href"]],template:function(t,e){1&t&&(Ya(0,"app-chat-bubble",0),Ja(1,"p",1),Ha(2,gb,4,1,"div",2),Ka()),2&t&&($a("colorVariant",e.chatItem.colorVariant)("isNewNode",e.chatItem.isNewNode),ji(1),$a("innerHtml",e.chatItem.content.htmlText,gi),ji(1),$a("ngIf",e.chatItem.content.htmlLink))},directives:[vb,Jl],styles:["p.text[_ngcontent-%COMP%] {\n font-size: 14px;\n line-height: 1.43;\n margin: 0;\n @media only screen and (min-width: 768px)\n {\n width: 240px;\n }\n @media only screen and (max-width: 556px) \n { \n width: 100%;\n }\n }"]}),t}(),yb=function(){function t(t){this.sanitizer=t}return t.prototype.transform=function(t){return this.sanitizer.bypassSecurityTrustResourceUrl(t)},t.\u0275fac=function(e){return new(e||t)(Wa(Bd))},t.\u0275pipe=Re({name:"safeUrl",type:t,pure:!0}),t}(),bb=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ee({type:t,selectors:[["app-video-content"]],inputs:{chatItem:"chatItem"},decls:7,vars:6,consts:[[3,"colorVariant","isNewNode"],["width","100%","height","300","allowfullscreen","","frameborder","0","allow","accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",3,"src"],[1,"text"]],template:function(t,e){1&t&&(Ya(0,"app-chat-bubble",0),Ja(1,"iframe",1),Fc(2,"safeUrl"),Ja(3,"br"),Ja(4,"br"),Ya(5,"p",2),ws(6),Ka(),Ka()),2&t&&($a("colorVariant",e.chatItem.colorVariant)("isNewNode",e.chatItem.isNewNode),ji(1),$a("src",jc(2,4,e.chatItem.content.src),yi),ji(5),Os(" ",e.chatItem.content.htmlText," "))},directives:[vb],pipes:[yb],styles:["p.text[_ngcontent-%COMP%] {\n font-size: 14px;\n line-height: 1.43;\n margin: 0;\n }"]}),t}(),_b=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ee({type:t,selectors:[["app-pure-img"]],inputs:{chatItem:"chatItem"},decls:2,vars:3,consts:[[3,"colorVariant","isNewNode"],[3,"src"]],template:function(t,e){1&t&&(Ya(0,"app-chat-bubble",0),Ja(1,"img",1),Ka()),2&t&&($a("colorVariant",e.chatItem.colorVariant)("isNewNode",e.chatItem.isNewNode),ji(1),$a("src",e.chatItem.content,mi))},directives:[vb],styles:["img[_ngcontent-%COMP%] {\n width: 100%;\n }"]}),t}();function Cb(t,e){if(1&t){var n=ts();Ya(0,"div",9),rs("click",(function(){return _n(n),cs().ToggleDetails()})),ws(1," Mais detalhes \u02c5 "),Ka()}}function wb(t,e){if(1&t){var n=ts();Ya(0,"div",9),rs("click",(function(){return _n(n),cs().ToggleDetails()})),ws(1," Menos detalhes \u02c4 "),Ka()}}function kb(t,e){1&t&&(Ya(0,"span",10),ws(1,"Com perman\xeancia de 12 meses"),Ka())}function Ob(t,e){if(1&t&&Ja(0,"img",11),2&t){var n=e.$implicit;$a("src",cs().claroService.getImage(n.nome),mi)("alt",n.descricao)}}function Pb(t,e){if(1&t&&Ja(0,"img",11),2&t){var n=e.$implicit;$a("src",cs(2).claroService.getImage(n.nome),mi)("alt",n.descricao)}}function xb(t,e){if(1&t&&Ja(0,"img",11),2&t){var n=e.$implicit;$a("src",cs(2).claroService.getImage(n.nome),mi)("alt",n.descricao)}}function Ib(t,e){if(1&t&&Ja(0,"img",11),2&t){var n=e.$implicit;$a("src",cs(2).claroService.getImage(n.nome),mi)("alt",n.descricao)}}function Sb(t,e){if(1&t&&Ja(0,"img",11),2&t){var n=e.$implicit;$a("src",cs(2).claroService.getImage(n.nome),mi)("alt",n.descricao)}}function Mb(t,e){if(1&t&&(Ya(0,"li"),ws(1," Assinaturas inclu\xeddas "),Ya(2,"div",4),Ha(3,Pb,1,2,"img",5),Ha(4,xb,1,2,"img",5),Ha(5,Ib,1,2,"img",5),Ha(6,Sb,1,2,"img",5),Ka(),Ka()),2&t){var n=cs();ji(3),$a("ngForOf",n.gamingApps),ji(1),$a("ngForOf",n.videoApps),ji(1),$a("ngForOf",n.sportsApps),ji(1),$a("ngForOf",n.includedApps)}}function Eb(t,e){if(1&t&&Ja(0,"img",11),2&t){var n=e.$implicit;$a("src",cs(2).claroService.getImage(n.nome),mi)("alt",n.descricao)}}function Tb(t,e){if(1&t&&(Ya(0,"li"),ws(1," Extraplay: Assista ilimitado "),Ya(2,"div",4),Ha(3,Eb,1,2,"img",5),Ka(),Ka()),2&t){var n=cs();ji(3),$a("ngForOf",n.extraPlayApps)}}function Ab(t,e){if(1&t&&(Ya(0,"div",15),ws(1),Ka()),2&t){var n=cs(2);ji(1),Os(" ",n.chatItem.order.plan.valorDesconto," ")}}function Nb(t,e){if(1&t&&(Ya(0,"div",12),Ya(1,"span",13),ws(2,"R$"),Ka(),Ya(3,"span"),ws(4),Ka(),Ya(5,"span"),ws(6),Ka(),Ya(7,"span"),ws(8,"/m\xeas"),Ka(),Ha(9,Ab,2,1,"div",14),Ka()),2&t){var n=cs();ji(4),ks(n.chatItem.order.plan.value.split(",")[0]),ji(2),Os(",",n.chatItem.order.plan.value.split(",")[1],""),ji(3),$a("ngIf",n.HasDiscount())}}function Db(t,e){if(1&t&&(Ya(0,"div",15),ws(1),Ka()),2&t){var n=cs(2);ji(1),Os(" ",n.chatItem.order.plan.valorDesconto," ")}}function Vb(t,e){if(1&t&&(Ya(0,"div",12),Ya(1,"span"),ws(2,"R$"),Ka(),Ya(3,"span"),ws(4),Ka(),Ya(5,"span"),ws(6),Ka(),Ya(7,"span"),ws(8,"/m\xeas"),Ka(),Ha(9,Db,2,1,"div",14),Ka()),2&t){var n=cs();ji(4),ks(n.chatItem.order.plan.valueDebit.split(",")[0]),ji(2),Os(",",n.chatItem.order.plan.valueDebit.split(",")[1],""),ji(3),$a("ngIf",n.HasDiscount())}}function Lb(t,e){if(1&t&&(Ya(0,"span",16),Ya(1,"span",17),ws(2,"no d\xe9bito + fatura digital"),Ka(),ws(3,"; "),Ja(4,"br"),ws(5,"no boleto por "),Ya(6,"span",17),ws(7),Ka(),ws(8,"/m\xeas "),Ka()),2&t){var n=cs();ji(7),Os("R$ ",n.chatItem.order.plan.value,"")}}function Rb(t,e){1&t&&(Ya(0,"span",16),ws(1," no boleto "),Ka())}var Fb=function(){function t(){this.claroService=new Rf,this.showDetails=!1}return t.prototype.ngOnInit=function(){this.unlimitedApps=[],this.videoApps=[],this.gamingApps=[],this.sportsApps=[],this.extraPlayApps=[],this.includedApps=[],this.organizer=[];for(var t="",e=[],n=[],r=[],i=0;i0&&(this.unlimitedApps=this.unlimitedApps.concat(this.organizer))},t.prototype.setOption=function(t){this.chatItem.finishedStep=!0},Object.defineProperty(t.prototype,"bandWidth",{get:function(){var t=this.chatItem.order.plan.bandwidth;return t?parseInt(t.split("GB")[0],10):0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bonusInternetOther",{get:function(){var t=this.chatItem.order.plan.bonusInternetOutro;return t?parseInt(t.split("GB")[0],10):0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bonusInternetPortability",{get:function(){var t=this.chatItem.order.plan.bonusInternetPortabilidade;return t?parseInt(t.split("GB")[0],10):0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bonusInternetBlackFriday",{get:function(){var t=this.chatItem.order.plan.bonusInternetBlackFriday;return t?parseInt(t.split("GB")[0],10):0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bonusInternetExtraPlay",{get:function(){var t=this.chatItem.order.plan.bonusInternetExtraPlay;return t?parseInt(t.split("GB")[0],10):0},enumerable:!1,configurable:!0}),t.prototype.isLoyalPlan=function(){return!!this.chatItem.order.plan.fidelizado},t.prototype.getTotalBandwidth=function(){var t=0,e=0,n=0,r=0,i=0;return this.bandWidth&&(t=this.bandWidth),this.bonusInternetOther&&(e=this.bonusInternetOther),this.bonusInternetPortability&&(n=this.bonusInternetPortability),this.bonusInternetBlackFriday&&(r=this.bonusInternetBlackFriday),this.bonusInternetExtraPlay&&(i=this.bonusInternetExtraPlay),t+e+n+r+i},t.prototype.GetBonusInternetExtraPlay=function(){var t=this.chatItem.order.plan.bonusInternetExtraPlay;return t?parseInt(t.split("GB")[0],10):0},t.prototype.GetBonusInternetOther=function(){var t=this.chatItem.order.plan.bonusInternetOutro;return t?parseInt(t.split("GB")[0],10):0},t.prototype.GetBonusInternetPortability=function(){var t=this.chatItem.order.plan.bonusInternetPortabilidade;return t?parseInt(t.split("GB")[0],10):0},t.prototype.GetBonusInternetBlackFriday=function(){var t=this.chatItem.order.plan.bonusInternetBlackFriday;return t?parseInt(t.split("GB")[0],10):0},t.prototype.GeneratePlanPriceText=function(){return"no d\xe9bito + fatura digital
no boleto por R$ "+this.chatItem.order.plan.value+"/m\xeas"},t.prototype.GeneratePlanBandwithText=function(){var t="";return this.GetBonusInternetOther()>0&&(t+=" + "+this.GetBonusInternetOther()+"GB de b\xf4nus"),this.GetBonusInternetPortability()>0&&(t+=" + "+this.GetBonusInternetPortability()+"GB de b\xf4nus na Portabilidade"),this.GetBonusInternetBlackFriday()>0&&(t+=" + "+this.GetBonusInternetBlackFriday()+"GB de b\xf4nus na Black Friday"),this.GetBonusInternetExtraPlay()>0&&(t+=" + "+this.GetBonusInternetExtraPlay()+"GB de b\xf4nus no Extraplay"),t},t.prototype.GeneratePlanDisplayName=function(){var t="";return t+="controle"==this.chatItem.order.plan.type?"Controle":"P\xf3s",t+=" "+this.getTotalBandwidth()+"GB",this.chatItem.order.plan.additionalInformation&&(t+=" "+this.chatItem.order.plan.additionalInformation),t},t.prototype.DisplayPortabilityBonus=function(){var t=this.chatItem.order.plan.bonusInternetPortabilidade;return!(!t||null==t||"0GB"==t.toUpperCase())},t.prototype.HasDiscount=function(){return!!this.chatItem.order.plan.skuServico},t.prototype.OrderBonusDesc=function(){var t=[],e=this.GetBonusInternetPortability(),n=this.GetBonusInternetOther(),r=this.GetBonusInternetExtraPlay(),i=this.GetBonusInternetBlackFriday();return r>0&&t.push({qtd:r,desc:"*Extra Play"}),e>0&&t.push({qtd:e,desc:"NA PORTABILIDADE"}),n>0&&t.push({qtd:n,desc:"B\xd4NUS"}),i>0&&t.push({qtd:i,desc:"B\xd4NUS BLACK FRIDAY"}),t.sort((function(t,e){return t.qtd-e.qtd})),t},t.prototype.OrderBonusCustom=function(){var t=[],e=this.GetBonusInternetPortability(),n=this.GetBonusInternetOther(),r=this.GetBonusInternetExtraPlay(),i=0;e>0&&(t[i]={qtd:e,desc:"NA PORTABILIDADE"},++i),n>0&&(t[i]={qtd:n,desc:"B\xd4NUS"},++i),r>0&&(t[i]={qtd:r,desc:"*Extra Play"},++i);for(var o=t.length-2;o>=0;o--){for(var a=t[o],s=o+1;s<=t.length-1&&t[s].qtd>a.qtd;)t[s-1]=t[s],++s;t[s-1]=a}return t},t.prototype.ToggleDetails=function(){this.showDetails=!this.showDetails},t.prototype.SetDetails=function(t){this.showDetails=t},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ee({type:t,selectors:[["app-claro-plan-description"]],inputs:{chatItem:"chatItem"},decls:26,vars:15,consts:[[3,"colorVariant","isNewNode"],["id","claro-plan-description"],["id","details","class","details",3,"click",4,"ngIf"],["class","fidelity",4,"ngIf"],[1,"plan-apps-container"],[3,"src","alt",4,"ngFor","ngForOf"],[4,"ngIf"],["class","price-container",4,"ngIf"],["id","planPricesText","class","plan",4,"ngIf"],["id","details",1,"details",3,"click"],[1,"fidelity"],[3,"src","alt"],[1,"price-container"],[1,"real"],["class","discount-container",4,"ngIf"],[1,"discount-container"],["id","planPricesText",1,"plan"],[1,"bold-text"]],template:function(t,e){1&t&&(Ya(0,"app-chat-bubble",0),Ya(1,"div",1),Ha(2,Cb,2,0,"div",2),Ha(3,wb,2,0,"div",2),Ya(4,"section"),Ya(5,"h2"),ws(6),Ka(),Ha(7,kb,2,0,"span",3),Ya(8,"ul"),Ya(9,"li"),ws(10),Ya(11,"span"),ws(12),Ka(),Ka(),Ya(13,"li"),ws(14," Navegar e falar ilimitado em 18 pa\xedses "),Ka(),Ya(15,"li"),ws(16," Apps para navegar ilimitado "),Ya(17,"div",4),Ha(18,Ob,1,2,"img",5),Ka(),Ka(),Ha(19,Mb,7,4,"li",6),Ha(20,Tb,4,1,"li",6),Ka(),Ka(),Ya(21,"footer"),Ha(22,Nb,10,3,"div",7),Ha(23,Vb,10,3,"div",7),Ha(24,Lb,9,1,"span",8),Ha(25,Rb,2,0,"span",8),Ka(),Ka(),Ka()),2&t&&($a("colorVariant","description")("isNewNode",!1),ji(2),$a("ngIf",!e.showDetails&&e.extraPlayApps.length>0),ji(1),$a("ngIf",e.showDetails&&e.extraPlayApps.length>0),ji(3),ks(e.GeneratePlanDisplayName()),ji(1),$a("ngIf",e.isLoyalPlan()),ji(3),Os(" ",e.bandWidth,"GB de internet "),ji(2),ks(e.GeneratePlanBandwithText()),ji(6),$a("ngForOf",e.unlimitedApps),ji(1),$a("ngIf",e.gamingApps.length>0||e.videoApps.length>0||e.sportsApps.length>0||e.includedApps.length>0),ji(1),$a("ngIf",e.showDetails&&e.extraPlayApps.length>0),ji(2),$a("ngIf",e.chatItem.globalCfg.exibirSomenteBoleto),ji(1),$a("ngIf",!e.chatItem.globalCfg.exibirSomenteBoleto),ji(1),$a("ngIf",!e.chatItem.globalCfg.exibirSomenteBoleto),ji(1),$a("ngIf",e.chatItem.globalCfg.exibirSomenteBoleto))},directives:[vb,Jl,Yl],styles:['@charset "UTF-8";div[id=claro-plan-description][_ngcontent-%COMP%]{font-family:DIN OT,Arial,sans-serif;font-weight:500;font-style:normal;display:flex;flex-direction:column;text-align:left}@media only screen and (max-width:556px){div[id=claro-plan-description][_ngcontent-%COMP%]{max-width:95%}}div[id=claro-plan-description][_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-family:DIN OT,Arial;font-weight:700;font-style:normal;font-size:24px;line-height:24px;letter-spacing:0;color:#000}div[id=claro-plan-description][_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style-type:"\u2713 ";margin-left:10px}div[id=claro-plan-description][_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:.7rem 2.5rem;font-size:16px;font-weight:700;color:#333;background-color:#ffbc4a;border-radius:22px;border:none;margin-top:15px;text-align:center;width:70%;max-width:200px}div[id=claro-plan-description][_ngcontent-%COMP%] button[_ngcontent-%COMP%]:enabled:hover{background-color:#f4ca11;border-color:#fdaf17}div[id=claro-plan-description][_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.5}div[id=claro-plan-description][_ngcontent-%COMP%] .first-plan-info[_ngcontent-%COMP%]{margin-right:10px}@media only screen and (max-width:556px){div[id=claro-plan-description][_ngcontent-%COMP%] .first-plan-info[_ngcontent-%COMP%]{margin-right:0}}div[id=claro-plan-description][_ngcontent-%COMP%] .first-plan-multiple[_ngcontent-%COMP%]{width:100%}div[id=claro-plan-description][_ngcontent-%COMP%] .details[_ngcontent-%COMP%]{font-family:DIN OT,Arial;font-weight:300;font-style:normal;text-align:right;font-size:12px;line-height:16px}div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%]{background-color:#fff;color:#000}div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] span.fidelity[_ngcontent-%COMP%]{font-family:DIN OT,Arial;font-weight:300;font-style:normal;font-size:14px;line-height:16px;color:#5f646d}div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:#000;margin-top:15px;font-family:DIN OT,Arial;font-weight:500;font-style:normal;font-size:14px;line-height:18px}div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--claro-top-border-new-layout)}div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.plan-bandwidth[_ngcontent-%COMP%]{margin:.4rem 0;display:flex;justify-content:center}div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.plan-bandwidth[_ngcontent-%COMP%] div.plan-actual-bandwidth-container[_ngcontent-%COMP%], div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.plan-bandwidth[_ngcontent-%COMP%] div.plan-additional-bonus-container[_ngcontent-%COMP%], div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.plan-bandwidth[_ngcontent-%COMP%] div.plan-additional-bonus-container-pos[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin-left:10px}div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.plan-bandwidth[_ngcontent-%COMP%] div.plan-actual-bandwidth-container[_ngcontent-%COMP%]:last-child, div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.plan-bandwidth[_ngcontent-%COMP%] div.plan-additional-bonus-container-pos[_ngcontent-%COMP%]:last-child, div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.plan-bandwidth[_ngcontent-%COMP%] div.plan-additional-bonus-container[_ngcontent-%COMP%]:last-child{margin-left:0}div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.plan-bandwidth[_ngcontent-%COMP%] div.plan-actual-bandwidth-container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.plan-bandwidth[_ngcontent-%COMP%] div.plan-additional-bonus-container-pos[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.plan-bandwidth[_ngcontent-%COMP%] div.plan-additional-bonus-container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:50px}div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.plan-bandwidth[_ngcontent-%COMP%] div.plan-actual-bandwidth-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%], div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.plan-bandwidth[_ngcontent-%COMP%] div.plan-additional-bonus-container-pos[_ngcontent-%COMP%] span[_ngcontent-%COMP%], div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.plan-bandwidth[_ngcontent-%COMP%] div.plan-additional-bonus-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px}div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.plan-bandwidth[_ngcontent-%COMP%] div.plan-actual-bandwidth-container[_ngcontent-%COMP%] div.plan-badwidth-value-container[_ngcontent-%COMP%], div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.plan-bandwidth[_ngcontent-%COMP%] div.plan-additional-bonus-container-pos[_ngcontent-%COMP%] div.plan-badwidth-value-container[_ngcontent-%COMP%], div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.plan-bandwidth[_ngcontent-%COMP%] div.plan-additional-bonus-container[_ngcontent-%COMP%] div.plan-badwidth-value-container[_ngcontent-%COMP%]{font-size:30px;display:flex;justify-content:center;align-items:baseline}div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.plan-bandwidth[_ngcontent-%COMP%] div.plan-actual-bandwidth-container[_ngcontent-%COMP%] div.plan-badwidth-value-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%], div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.plan-bandwidth[_ngcontent-%COMP%] div.plan-additional-bonus-container-pos[_ngcontent-%COMP%] div.plan-badwidth-value-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%], div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.plan-bandwidth[_ngcontent-%COMP%] div.plan-additional-bonus-container[_ngcontent-%COMP%] div.plan-badwidth-value-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:40px}div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.plan-bandwidth[_ngcontent-%COMP%] div[_ngcontent-%COMP%] .plan-additional-bonus-container-pos[_ngcontent-%COMP%]{border:none}div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.plan-bandwidth[_ngcontent-%COMP%] div.plan-actual-bandwidth-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;margin-left:10px}div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.plan-bandwidth[_ngcontent-%COMP%] div.plan-actual-bandwidth-container[_ngcontent-%COMP%]:last-child{margin-left:0}div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.plan-bandwidth[_ngcontent-%COMP%] div.plan-additional-bonus-container[_ngcontent-%COMP%]{padding:0 .3rem .3rem;border-radius:8px;border:1px solid #fff;color:#fff}div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.plan-bandwidth[_ngcontent-%COMP%] div.plan-additional-bonus-container-pos[_ngcontent-%COMP%]{padding:0 .3rem .3rem;border:none;color:#fff}div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.plan-bandwidth[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px;font-weight:500}div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.plan-unlimited-calls-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:.5rem 0}div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.plan-unlimited-calls-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child{font-weight:700}div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.plan-apps-container[_ngcontent-%COMP%]{margin:.3rem 0;display:flex;flex-wrap:wrap;justify-content:left}div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.plan-apps-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin:0 0 .3rem .3rem;height:35px;width:35px}div[id=claro-plan-description][_ngcontent-%COMP%] section[_ngcontent-%COMP%] span.plan-apps-title[_ngcontent-%COMP%]{font-weight:700}div[id=claro-plan-description][_ngcontent-%COMP%] footer[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column;align-items:left;color:#000}div[id=claro-plan-description][_ngcontent-%COMP%] footer[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px;font-weight:lighter}div[id=claro-plan-description][_ngcontent-%COMP%] footer[_ngcontent-%COMP%] span.plan[_ngcontent-%COMP%]{font-size:14px;line-height:17px;font-family:DIN OT,Arial;font-weight:300;font-style:normal}div[id=claro-plan-description][_ngcontent-%COMP%] footer[_ngcontent-%COMP%] span.bold-text[_ngcontent-%COMP%]{font-family:DIN OT,Arial;font-weight:700;font-style:normal;line-height:25px}div[id=claro-plan-description][_ngcontent-%COMP%] footer[_ngcontent-%COMP%] div.price-container[_ngcontent-%COMP%]{margin-bottom:.5rem}div[id=claro-plan-description][_ngcontent-%COMP%] footer[_ngcontent-%COMP%] div.price-container[_ngcontent-%COMP%] .discount-container[_ngcontent-%COMP%]{background-color:#17b400;border-radius:20px;color:#fff;display:inline-block;margin:5px;max-width:100px;min-height:20px;padding:6px 10px;text-align:center;text-decoration:none;vertical-align:text-bottom}div[id=claro-plan-description][_ngcontent-%COMP%] footer[_ngcontent-%COMP%] div.price-container[_ngcontent-%COMP%] span.real[_ngcontent-%COMP%], div[id=claro-plan-description][_ngcontent-%COMP%] footer[_ngcontent-%COMP%] div.price-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child{font-family:DIN OT,Arial;font-weight:300;font-style:normal;font-size:16px}div[id=claro-plan-description][_ngcontent-%COMP%] footer[_ngcontent-%COMP%] div.price-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){font-family:DIN OT,Arial;font-weight:700;font-style:normal;font-size:48px;line-height:40px;letter-spacing:-3.6px}div[id=claro-plan-description][_ngcontent-%COMP%] footer[_ngcontent-%COMP%] div.price-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){font-family:DIN OT,Arial;font-weight:700;font-style:normal;position:absolute;margin-top:-.1rem;font-size:24px;line-height:24px;letter-spacing:-1.8px}div[id=claro-plan-description][_ngcontent-%COMP%] footer[_ngcontent-%COMP%] div.price-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(4){font-family:DIN OT,Arial;font-weight:500;font-style:normal;font-size:14px}']}),t}(),jb=function(){function t(){this.canClick=!0,this.planSet=new Uc}return Object.defineProperty(t.prototype,"chatItem",{set:function(t){this.item=t,this.plan=t.order.plan},enumerable:!1,configurable:!0}),t.prototype.selectPlan=function(t){this.canClick&&(this.planSet.emit(t),this.canClick=!1)},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ee({type:t,selectors:[["app-plan-selection"]],inputs:{chatItem:"chatItem"},outputs:{planSet:"planSet"},decls:2,vars:3,consts:[[3,"colorVariant","isNewNode"],[3,"src","click"]],template:function(t,e){1&t&&(Ya(0,"app-chat-bubble",0),Ya(1,"img",1),rs("click",(function(){return e.selectPlan(e.plan)})),Ka(),Ka()),2&t&&($a("colorVariant",e.item.colorVariant)("isNewNode",e.item.isNewNode),ji(1),$a("src",e.plan.srcBig,mi))},directives:[vb],styles:["img[_ngcontent-%COMP%] {\n width: 100%;\n cursor: pointer;\n }"]}),t}();function zb(t,e){if(1&t&&Ja(0,"img",9),2&t){var n=e.$implicit;$a("src",cs(3).claroService.getImage(n.planApp.nome),mi)("alt",n.planApp.descricao)}}function Bb(t,e){if(1&t&&(Ya(0,"div",10),Ya(1,"span"),ws(2,"R$"),Ka(),Ya(3,"span"),ws(4),Ka(),Ya(5,"span"),ws(6),Ka(),Ya(7,"span"),ws(8,"/m\xeas"),Ka(),Ka()),2&t){var n=cs(2).$implicit;ji(4),ks(n.valueDebit.split(",")[0]),ji(2),Os(",",n.valueDebit.split(",")[1],"")}}function Ub(t,e){if(1&t&&(Ya(0,"div",10),Ya(1,"span"),ws(2,"R$"),Ka(),Ya(3,"span"),ws(4),Ka(),Ya(5,"span"),ws(6),Ka(),Ya(7,"span"),ws(8,"/m\xeas"),Ka(),Ka()),2&t){var n=cs(2).$implicit;ji(4),ks(n.value.split(",")[0]),ji(2),Os(",",n.value.split(",")[1],"")}}function Gb(t,e){if(1&t){var n=ts();Ya(0,"div",3),rs("click",(function(){_n(n);var t=cs(),e=t.$implicit,r=t.index;return cs().setOption(e,r)})),Ya(1,"section",4),Ya(2,"h1"),ws(3),Ka(),Ya(4,"div",5),Ha(5,zb,1,2,"img",6),Ka(),Ka(),Ya(6,"section",7),Ha(7,Bb,9,2,"div",8),Ha(8,Ub,9,2,"div",8),Ka(),Ka()}if(2&t){var r=cs(),i=r.index,o=r.$implicit,a=cs();$a("id",i)("ngClass",a.adjustClassForPlan(o)),ji(3),ks(a.GeneratePlanCardName(o)),ji(2),$a("ngForOf",a.filterApps(i,a.unlimitedApps)),ji(2),$a("ngIf",!a.chatItem.globalCfg.exibirSomenteBoleto),ji(1),$a("ngIf",a.chatItem.globalCfg.exibirSomenteBoleto)}}function Hb(t,e){if(1&t&&(Qa(0),Ha(1,Gb,9,6,"div",2),Xa()),2&t){var n=e.$implicit,r=cs();ji(1),$a("ngIf",r.isInitialOffer(n))}}var qb=function(){function t(){this.resolution=new Uc,this.claroService=new Rf,this.hasBtnClicked=!1}return t.prototype.ngOnInit=function(){this.unlimitedApps=[],this.organizer=[];for(var t="",e=[],n=0;n7&&(n=n.slice(0,7)),n},t.prototype.GeneratePlanCardName=function(t){var e="";return e+=this.getTotalBandwidth(t)+" GB",t.additionalInformation&&(e+=" "+t.additionalInformation),e},Object.defineProperty(t.prototype,"_isClicked",{get:function(){return!(!this.hasBtnClicked&&!this.chatItem.finishedStep)},enumerable:!1,configurable:!0}),t.prototype.isInitialOffer=function(t){var e=this.chatItem.content.initialOffer;return!!(t.initialOffer&&e||!e)},t.prototype.adjustClassForPlan=function(t){return{"claro-plan-selection-container":!0,"claro-plan-selection-top-red-border":1==t.isDestaque}},t.prototype.getTotalBandwidth=function(t){var e=0,n=0,r=0,i=0,o=0;return t.bandwidth&&(e=parseInt(t.bandwidth.split("GB")[0],10)),t.bonusInternetOutro&&(n=parseInt(t.bonusInternetOutro.split("GB")[0],10)),t.bonusInternetPortabilidade&&(r=parseInt(t.bonusInternetPortabilidade.split("GB")[0],10)),t.bonusInternetBlackFriday&&(i=parseInt(t.bonusInternetBlackFriday.split("GB")[0],10)),t.bonusInternetExtraPlay&&(o=parseInt(t.bonusInternetExtraPlay.split("GB")[0],10)),e+n+r+i+o},t.prototype._getTotalBandWidthPhrase=function(t){var e="";return t.bandwidth&&(e+=parseInt(t.bandwidth.split("GB")[0],10)+"GB"),t.bonusInternetOutro&&(e+=" + "+parseInt(t.bonusInternetOutro.split("GB")[0],10)+"GB"),t.bonusInternetPortabilidade&&(e+=" + "+parseInt(t.bonusInternetPortabilidade.split("GB")[0],10)+"GB"),t.bonusInternetBlackFriday&&(e+=" + "+parseInt(t.bonusInternetBlackFriday.split("GB")[0],10)+"GB"),e},t.prototype.setOption=function(t,e){this._isClicked||(this.hasBtnClicked=!0,this.chatItem.finishedStep=!0,"3"===this.chatItem.order.source.toString()&&21==Uu.codigoOperadora&&(t.name=this.claroService.getPlanName(t,!0,"Claro")),this.resolution.emit({plan:t,index:e}))},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ee({type:t,selectors:[["app-claro-plan-selection"]],inputs:{chatItem:"chatItem"},outputs:{resolution:"resolution"},decls:2,vars:3,consts:[[3,"colorVariant","isNewNode"],[4,"ngFor","ngForOf"],[3,"id","ngClass","click",4,"ngIf"],[3,"id","ngClass","click"],[1,"section-information-container"],[1,"media-social-container"],[3,"src","alt",4,"ngFor","ngForOf"],[1,"section-price-choose-container"],["class","price-container",4,"ngIf"],[3,"src","alt"],[1,"price-container"]],template:function(t,e){1&t&&(Ya(0,"app-chat-bubble",0),Ha(1,Hb,2,1,"ng-container",1),Ka()),2&t&&($a("colorVariant",e.chatItem.colorVariant)("isNewNode",e.chatItem.isNewNode),ji(1),$a("ngForOf",e.chatItem.order.plans))},directives:[vb,Yl,Jl,$l],styles:["img[class=black-friday][_ngcontent-%COMP%]{width:100%}@media only screen and (min-width:768px){img[class=black-friday][_ngcontent-%COMP%]{width:370px}}.claro-plan-selection-container[_ngcontent-%COMP%]{font-family:Barlow,sans-serif;margin-top:.5rem;padding-bottom:.5rem;display:flex;background-color:#fff;color:#000;border:1px solid #000;border-radius:10px}@media only screen and (min-width:768px){.claro-plan-selection-container[_ngcontent-%COMP%]{width:370px}}.claro-plan-selection-container[_ngcontent-%COMP%] section.section-information-container[_ngcontent-%COMP%]{flex:1;margin:10px 10px .3rem}.claro-plan-selection-container[_ngcontent-%COMP%] section.section-information-container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin-left:.6rem;margin-bottom:15px;font-size:30px}.claro-plan-selection-container[_ngcontent-%COMP%] section.section-information-container[_ngcontent-%COMP%] div.media-social-container[_ngcontent-%COMP%]{margin-left:.3rem;display:flex}@media only screen and (min-width:320px){.claro-plan-selection-container[_ngcontent-%COMP%] section.section-information-container[_ngcontent-%COMP%] div.media-social-container[_ngcontent-%COMP%]{flex-wrap:wrap}}@media only screen and (min-width:556px){.claro-plan-selection-container[_ngcontent-%COMP%] section.section-information-container[_ngcontent-%COMP%] div.media-social-container[_ngcontent-%COMP%]{flex-wrap:nowrap}}.claro-plan-selection-container[_ngcontent-%COMP%] section.section-information-container[_ngcontent-%COMP%] div.media-social-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin:0 0 .3rem .3rem;width:20px;height:20px}.claro-plan-selection-container[_ngcontent-%COMP%] section.section-price-choose-container[_ngcontent-%COMP%]{margin:auto 5% auto auto;text-align:center}.claro-plan-selection-container[_ngcontent-%COMP%] section.section-price-choose-container[_ngcontent-%COMP%] div.price-container[_ngcontent-%COMP%]{margin:auto auto .8rem;width:124px;height:28px}.claro-plan-selection-container[_ngcontent-%COMP%] section.section-price-choose-container[_ngcontent-%COMP%] div.price-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child, .claro-plan-selection-container[_ngcontent-%COMP%] section.section-price-choose-container[_ngcontent-%COMP%] div.price-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(4){font-size:12px;font-weight:500}.claro-plan-selection-container[_ngcontent-%COMP%] section.section-price-choose-container[_ngcontent-%COMP%] div.price-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){font-size:50px;font-weight:700}.claro-plan-selection-container[_ngcontent-%COMP%] section.section-price-choose-container[_ngcontent-%COMP%] div.price-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){font-weight:700;position:absolute;margin-top:.3rem;font-size:25px}.claro-plan-selection-container[_ngcontent-%COMP%] section.section-price-choose-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:.7rem 1rem;font-size:16px;font-weight:700;color:#333;background-color:#ffbc4a;border-radius:22px;border:none}.claro-plan-selection-container[_ngcontent-%COMP%] section.section-price-choose-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:enabled:hover{background-color:#f4ca11;border-color:#fdaf17}.claro-plan-selection-container[_ngcontent-%COMP%] section.section-price-choose-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.5}.claro-plan-selection-top-red-border[_ngcontent-%COMP%]{border-top:10px solid red}"]}),t}();function Wb(t,e){if(1&t){var n=ts();Ya(0,"button",5),rs("click",(function(){_n(n);var t=e.$implicit;return cs().setOption(t)})),ws(1),Ka()}if(2&t){var r=e.$implicit;$a("disabled",cs().chatItem.finishedStep),ji(1),Os(" ",r.text," ")}}var $b=function(){function t(){this.resolution=new Uc,this.hasBtnClicked=!1}return Object.defineProperty(t.prototype,"isClicked",{get:function(){return!(!this.hasBtnClicked&&!this.chatItem.finishedStep)},enumerable:!1,configurable:!0}),t.prototype.setOption=function(t){this.isClicked||(this.hasBtnClicked=!0,this.selectedOption=t,this.resolution.emit(t))},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ee({type:t,selectors:[["app-select-option"]],inputs:{chatItem:"chatItem"},outputs:{resolution:"resolution"},decls:6,vars:5,consts:[[3,"colorVariant","isNewNode"],[1,"text",3,"innerHtml"],[1,"text","bigger"],[1,"options"],[3,"disabled","click",4,"ngFor","ngForOf"],[3,"disabled","click"]],template:function(t,e){1&t&&(Ya(0,"app-chat-bubble",0),Ja(1,"p",1),Ya(2,"p",2),ws(3),Ka(),Ya(4,"div",3),Ha(5,Wb,2,2,"button",4),Ka(),Ka()),2&t&&($a("colorVariant",e.chatItem.colorVariant)("isNewNode",e.chatItem.isNewNode),ji(1),$a("innerHtml",e.chatItem.content.htmlText,gi),ji(2),Os(" ",e.chatItem.content.htmlTextBold," "),ji(2),$a("ngForOf",e.chatItem.content.options))},directives:[vb,Yl],styles:["p.text[_ngcontent-%COMP%]{margin:0;font-size:14px;line-height:1.43}p.text.bigger[_ngcontent-%COMP%]{margin-top:15px;font-size:16px;font-weight:700}div.options[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}div.options[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font:700 18px var(--custom-font);margin-bottom:15px;padding:8px 13px;color:var(--text-color);background:var(--main-btn-color);border:2px solid var(--main-btn-color);border-radius:var(--btn-radius-size);text-transform:unset}div.options[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:enabled:hover{background:var(--select-btn-color);border-color:var(--select-btn-color)}div.options[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.5}"]}),t}(),Zb=function(){function t(){}return t.\u0275mod=De({type:t}),t.\u0275inj=Mt({factory:function(e){return new(e||t)}}),t}(),Yb=function(){function t(){}return t.\u0275mod=De({type:t}),t.\u0275inj=Mt({factory:function(e){return new(e||t)},imports:[[qd]]}),t}();function Kb(t,e){var n=t.replace(/[.-\s]/g,"");return""===n.trim()||n.length!==e}var Jb=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Qb=new RegExp(/^(11|12|13|14|15|16|17|18|19|22|21|24|27|28|31|32|33|34|35|37|38|41|42|43|44|45|46|47|48|49|51|53|54|55|61|62|63|64|65|66|67|68|69|71|73|74|75|77|79|81|82|83|84|85|86|87|88|89|91|92|93|94|95|96|97|98|99){1}(([9][0-9]{1}[0-9]{3}[0-9]{4})|([6-9]{1}[0-9]{3}[0-9]{4}))$/gm),Xb=new RegExp(/^(11|12|13|14|15|16|17|18|19|22|21|24|27|28|31|32|33|34|35|37|38|41|42|43|44|45|46|47|48|49|51|53|54|55|61|62|63|64|65|66|67|68|69|71|73|74|75|77|79|81|82|83|84|85|86|87|88|89|91|92|93|94|95|96|97|98|99){1}(([2-5]{1}[0-9]{7}))$/gm);function t_(t){var e=n_(t),n=e.substring(2,3);return 11===e.length&&0!==n&&Qb.test(e)}function e_(t){var e=n_(t);return 0!==e.substring(2,3)&&Xb.test(e)}function n_(t){return t.toString().replace(/[^\w\s]/gi,"").replace(/ /g,"")}var r_=/^(?:4[0-9]{12}(?:[0-9]{3})?)$/,i_=/^(?:5[1-5][0-9]{14})$/,o_=/^(?:3[47][0-9]{13})$/,a_=/^(?:6(?:011|5[0-9][0-9])[0-9]{12})$/,s_=function(){function t(){}return t.validarDddCelular=function(t){return c_(t)||["11","12","13","14","15","16","17","18","19","21","22","24","27","28","31","32","33","34","35","37","38","41","42","43","44","45","46","47","48","49","51","53","54","55","61","62","63","64","65","66","67","68","69","71","73","74","75","77","79","81","82","83","84","85","86","87","88","89","91","92","93","94","95","96","97","98","99"].includes(t.value)?null:{invalidDdd:!0}},t.getValidatorErrorMessage=function(t,e){return{required:"Campo Obrigat\xf3rio.",invalidCpf:"Digite um CPF v\xe1lido.",invalidPeriod:"A data escolhida deve ser menor que a data de hoje.",invalidEmail:"E-mail inv\xe1lido.",invalidCep:"Formato de CEP inv\xe1lido.",requiredCheckBox:"Campo obrigat\xf3rio",minlength:"Tamanho m\xednimo "+e.requiredLength+".",maxlength:"Tamanho m\xe1ximo "+e.requiredLength+".",lengthNameError:"Digite seu nome completo.",invalidTel:"Telefone inv\xe1lido.",invalidCnpj:"O CNPJ informado \xe9 inv\xe1lido. Por favor, verifique e atualize a informa\xe7\xe3o.",nameError:"Digite o nome corretamente.",invalidText:"O texto n\xe3o pode conter caracter especial.",invalidPassword:"A senha deve ter mais do que 6 caracteres e conter letra e n\xfamero.",textError:"Somente letras s\xe3o permitidas",invalidDeclaracaoNascidoVivo:"Digite um n\xba de Declara\xe7\xe3o Nascido Vivo v\xe1lido.",invalidCartaoNacionalSaude:"Digite um n\xba de Cart\xe3o Nacional de Sa\xfade v\xe1lido.",invalidPisPasep:"Digite um n\xba de PIS/PASEP v\xe1lido.",invalidCreditCard:"N\xfamero de cart\xe3o de cr\xe9dito inv\xe1lido.",invalidExpirationDate:"Validade do cart\xe3o de cr\xe9dito inv\xe1lida.",invalidDdd:"DDD inv\xe1lido."}[t]},t.validarDataNascimento=function(t){return c_(t)||function(t){if(!/\d{2}\d{2}\d{4}/.test(t))return!1;var e=parseInt(t.substring(0,2),10),n=parseInt(t.substring(2,4),10),r=parseInt(t.substring(4,8),10);if(r<1895||r>(new Date).getFullYear()||0==n||n>12)return!1;var i=[31,28,31,30,31,30,31,31,30,31,30,31];return(r%400==0||r%100!=0&&r%4==0)&&(i[1]=29),e>0&&e<=i[n-1]}(t.value)?null:{invalidData:!0}},t.validarCNPJ=function(t){return c_(t)||function(t){var e=t.replace(/[^\d]+/g,""),n=0,r=0,i="",o="6543298765432",a=0,s="",c=0,u=0;if(""!==e){if("00000000000000"===e||"11111111111111"===e||"22222222222222"===e||"33333333333333"===e||"44444444444444"===e||"55555555555555"===e||"66666666666666"===e||"77777777777777"===e||"88888888888888"===e||"99999999999999"===e)return!1;for(r=e.length,n=0;n="0"&&l<="9"&&(i+=l)}if(14!==i.length)return!1;for(c=(s=i.substring(0,12)).length-1,u=o.length-1,n=0;n<12;n++)a+=parseInt(s.substring(c-n,c-n+1),10)*parseInt(o.substring(u-n,u-n+1),10);for(11!=(a=11-(a-11*Math.floor(a/11)))&&10!==a||(a=0),s+=a,a=0,c=s.length-1,n=0;n<13;n++)a+=parseInt(s.substring(c-n,c-n+1),10)*parseInt(o.substring(u-n,u-n+1),10);return 11!=(a=11-(a-11*Math.floor(a/11)))&&10!==a||(a=0),i===s+a}}(t.value)?null:{invalidCnpj:!0}},t.validarCPF=function(t){return c_(t)||function(t){var e,n=t.replace(/[.-\s]/g,""),r=0;if("00000000000"===n||"11111111111"===n||"22222222222"===n||"33333333333"===n||"44444444444"===n||"55555555555"===n||"66666666666"===n||"77777777777"===n||"88888888888"===n||"99999999999"===n)return!1;for(var i=1;i<=9;i++)e=10*(r+=parseInt(n.substring(i-1,i))*(11-i))%11;if(10!==e&&11!==e||(e=0),e!==parseInt(n.substring(9,10)))return!1;r=0;for(var o=1;o<=10;o++)e=10*(r+=parseInt(n.substring(o-1,o))*(12-o))%11;return 10!==e&&11!==e||(e=0),e===parseInt(n.substring(10,11))}(t.value)?null:{invalidCpf:!0}},t.validarPisPasep=function(t){return c_(t)||Kb(t.value,11)?null:{invalidPisPasep:!0}},t.validarDeclaracaoNascidoVivo=function(t){return c_(t)||Kb(t.value,11)?null:{invalidDeclaracaoNascidoVivo:!0}},t.validarCartaoNacionalSaude=function(t){return c_(t)||Kb(t.value,15)?null:{invalidCartaoNacionalSaude:!0}},t.validarEmail=function(t){return c_(t)||t.value.toLowerCase().match(Jb)?null:{invalidEmail:!0}},t.validarNome=function(t){return c_(t)||(e=t.value.split(" ")).length>=2&&e[0].length>2&&e[1].length>2?null:{nameError:!0};var e},t.validarCep=function(t){return c_(t)||t.value.replace("-","").match(/^[0-9]{8}$/)?null:{invalidCep:!0}},t.retirarNumeros=function(t){if(c_(t))return null;u_(t,t.value.replace(/[^a-zA-Z\xe1\xe9\xed\xf3\xfa\xe0\xe8\xec\xf2\xf9\xe2\xea\xee\xf4\xfb\xe3\xf5\xe7\xc1\xc9\xcd\xd3\xda\xc0\xc8\xcc\xd2\xd9\xc2\xca\xce\xd4\xdb\xc3\xd5\xc7\s]/g,""))},t.retirarNumerosMenosTraco=function(t){if(c_(t))return null;u_(t,t.value.replace(/[^a-zA-Z\xe1\xe9\xed\xf3\xfa\xe0\xe8\xec\xf2\xf9\xe2\xea\xee\xf4\xfb\xe3\xf5\xe7\xc1\xc9\xcd\xd3\xda\xc0\xc8\xcc\xd2\xd9\xc2\xca\xce\xd4\xdb\xc3\xd5\-\xc7\s]/g,""))},t.retirarCaracterEspecialMenosTraco=function(t){if(c_(t))return null;u_(t,t.value.replace(/[^a-zA-Z0-9\xe1\xe9\xed\xf3\xfa\xe0\xe8\xec\xf2\xf9\xe2\xea\xee\xf4\xfb\xe3\xf5\xe7\xc1\xc9\xcd\xd3\xda\xc0\xc8\xcc\xd2\xd9\xc2\xca\xce\xd4\xdb\xc3\xd5\-\xc7\s]/g,""))},t.retirarCaracterEspecial=function(t){if(c_(t))return null;var e=t.value.replace(/[^a-zA-Z0-9\xe1\xe9\xed\xf3\xfa\xe0\xe8\xec\xf2\xf9\xe2\xea\xee\xf4\xfb\xe3\xf5\xe7\xc1\xc9\xcd\xd3\xda\xc0\xc8\xcc\xd2\xd9\xc2\xca\xce\xd4\xdb\xc3\xd5\xc7\s]/g,"");e&&t.value!==e&&t.patchValue(e,{emitEvent:!1})},t.retirarLetras=function(t){var e=t.value.replace(/[^0-9/()-.\s]/g,"");if(c_(t))return null;u_(t,e)},t.transformarLetrasAcentuadas=function(t){return c_(t)?null:(e={"\xe2":"a","\xc2":"A","\xe0":"a","\xc0":"A","\xe1":"a","\xc1":"A","\xe3":"a","\xc3":"A","\xea":"e","\xca":"E","\xe8":"e","\xc8":"E","\xe9":"e","\xc9":"E","\xee":"i","\xce":"I","\xec":"i","\xcc":"I","\xed":"i","\xcd":"I","\xf5":"o","\xd5":"O","\xf4":"o","\xd4":"O","\xf2":"o","\xd2":"O","\xf3":"o","\xd3":"O","\xfc":"u","\xdc":"U","\xfb":"u","\xdb":"U","\xfa":"u","\xda":"U","\xf9":"u","\xd9":"U","\xe7":"c","\xc7":"C"},t.value.toString().replace(/[\W\[\] ]/g,(function(t){return e[t]||t})));var e},t.validarTelefoneCelular=function(t){return c_(t)||t_(t.value)?null:{invalidTel:!0}},t.validarTelefoneFixo=function(t){return c_(t)||e_(t.value)?null:{invalidTel:!0}},t.validatePhone=function(t){return c_(t)||((n=n_(e=t.value).substring(2,3))>=6&&n<=9?t_(e):e_(e))?null:{invalidTel:!0};var e,n},t.validateCreditCardNumber=function(t){return c_(t)||function(t){t=t.slice(0,16);var e=!0===r_.test(t),n=!0===i_.test(t),r=!0===o_.test(t),i=!0===a_.test(t);return e||n||r||i}(t.value)?null:{invalidCreditCard:!0}},t.validateExpirationDate=function(t){return c_(t)?null:(e=t.value.slice(0,7).split("/"),n=parseInt(e[1]),r=parseInt(e[0]),i=(new Date).getFullYear(),o=(new Date).getMonth(),n12||n<1?{invalidExpirationDate:!0}:null);var e,n,r,i,o},t.getCreditCardFlag=function(t){return c_(t)?null:(e=(e=t.value).slice(0,16),!0===r_.test(e)?1:!0===i_.test(e)?2:!0===o_.test(e)?3:!0===a_.test(e)?4:0);var e},t.\u0275prov=St({token:t,factory:t.\u0275fac=function(e){return new(e||t)}}),t}();function c_(t){return!t||!t.value}function u_(t,e){t.value!==e&&t.setValue(e)}var l_=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[s_]}},t.\u0275mod=De({type:t}),t.\u0275inj=Mt({factory:function(e){return new(e||t)},providers:[s_],imports:[[Zb,Yb],Zb,Yb]}),t}(),d_=function(){function t(){this.mask="",this.maxLength=30,this.minLength=10,this.isTypeNumber=!1,this.isDisabled=!1,this.valueChanged=new Uc}return t.prototype.ngOnInit=function(){},t.prototype.getInputType=function(){return this.isTypeNumber?"tel":"text"},t.prototype.setKeypress=function(t){if("email"===this.type){var e=t.target.value;e.length>0&&("Space"===t.code&&t.preventDefault(),/@/gm.test(e)?255===e.length&&t.preventDefault():64===e.length&&t.preventDefault())}},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ee({type:t,selectors:[["app-custom-input"]],inputs:{width:"width",label:"label",mask:"mask",inputValue:"inputValue",maxLength:"maxLength",minLength:"minLength",type:"type",isTypeNumber:"isTypeNumber",isDisabled:"isDisabled"},outputs:{valueChanged:"valueChanged"},decls:4,vars:9,consts:[[1,"custom-input"],[3,"ngModel","mask","type","maxLength","minLength","disabled","ngModelChange","keypress"]],template:function(t,e){1&t&&(Ya(0,"div",0),Ya(1,"label"),ws(2),Ka(),Ya(3,"input",1),rs("ngModelChange",(function(t){return e.valueChanged.emit(t)}))("keypress",(function(t){return e.setKeypress(t)}))("ngModelChange",(function(t){return e.inputValue=t})),Ka(),Ka()),2&t&&(ji(2),ks(e.label),ji(1),vs("width",e.width,"px"),$a("ngModel",e.inputValue)("mask",e.mask)("type",e.getInputType())("maxLength",e.maxLength)("minLength",e.minLength)("disabled",e.isDisabled))},directives:[Bh,Zh,nf,Af],styles:["div.custom-input[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:13px}div.custom-input[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:14px;color:#666}div.custom-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding:10px;font-size:16px;color:#000;border:none;border-bottom:2px solid #000;margin-right:5px}div.custom-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none}div.custom-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:disabled{color:#c1c1c1;-webkit-text-fill-color:#c1c1c1;background:transparent;opacity:1}"]}),t}();function h_(t,e){1&t&&(Ya(0,"p",4),ws(1," DDD Inv\xe1lido "),Ka())}var p_=function(){function t(){this.dddSet=new Uc,this.mask="00",this.canEmitEvent=!0}return t.prototype.ngOnInit=function(){this.createFormGroup(),this.createInitialConfig()},t.prototype.createFormGroup=function(){this.formGroup=new Hp({ddd:new Gp("",[ep.required,s_.retirarLetras,s_.validarDddCelular])})},t.prototype.createInitialConfig=function(){this.chatItem.order.phoneNumber&&this.chatItem.finishedStep&&(this.ddd=this.chatItem.order.phoneNumber.substring(0,2),this.canEmitEvent=!1)},t.prototype.isFinishedInput=function(){return 2===(this.formGroup.get("ddd").value||"").length},t.prototype.setDdd=function(t){this.formGroup.get("ddd").setValue(t),this.canEmitEvent&&this.formGroup.valid&&this.isFinishedInput()&&this.dddSet.emit(t)},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ee({type:t,selectors:[["app-ddd-form"]],inputs:{chatItem:"chatItem"},outputs:{dddSet:"dddSet"},decls:4,vars:8,consts:[[3,"colorVariant","isNewNode"],[1,"text",3,"innerHtml"],["label","Digite seu DDD:",3,"mask","isTypeNumber","isDisabled","inputValue","valueChanged"],["class","text invalid",4,"ngIf"],[1,"text","invalid"]],template:function(t,e){1&t&&(Ya(0,"app-chat-bubble",0),Ja(1,"p",1),Ya(2,"app-custom-input",2),rs("valueChanged",(function(t){return e.setDdd(t)})),Ka(),Ha(3,h_,2,0,"p",3),Ka()),2&t&&($a("colorVariant",e.chatItem.colorVariant)("isNewNode",e.chatItem.isNewNode),ji(1),$a("innerHtml",e.chatItem.content.htmlText,gi),ji(1),$a("mask",e.mask)("isTypeNumber",!0)("isDisabled",e.chatItem.finishedStep)("inputValue",e.ddd),ji(1),$a("ngIf",e.isFinishedInput()&&!e.formGroup.valid))},directives:[vb,d_,Af,Jl],styles:['p[class=text][_ngcontent-%COMP%]{margin:0;font-size:14px;line-height:1.43}p[class="text invalid"][_ngcontent-%COMP%]{margin-top:10px;font-weight:700;color:var(--ddd-form-txt-invalid-color)}']}),t}();function f_(t,e){1&t&&(Ya(0,"p",4),ws(1," Telefone Inv\xe1lido "),Ka())}var v_=function(){function t(t){this._wzService=t,this.setPhone=new Uc,this.isFormValid=!0,this.claroService=new Rf,this.timService=new yv}return t.prototype.ngOnInit=function(){switch(this._typeFlux=this.chatItem.content.id.toUpperCase(),this._typeModality=this.chatItem.order.modalidade,Uu.codigoOperadora){case 15:this.chatItem.order.plan.name=this.claroService.getPlanName(this.chatItem.order.plan,!0,"Vivo");break;case 21:this.chatItem.order.plan.name=this.claroService.getPlanName(this.chatItem.order.plan,!0,"Claro");break;case 31:"ASK-PHONE"!==this._typeFlux&&(this.chatItem.order.plan.name=this.claroService.getPlanName(this.chatItem.order.plan,!0,"Oi"));break;case 41:this.chatItem.order.plan.name=this.timService.getPlanName(this.chatItem.order)}switch(this._typeFlux){case"ASK-PHONE":this._setFormGroupConfig("ASK-PHONE"),this._setResumptionConfig("ASK-PHONE");break;case"CONTACT-PHONE-FORM-NOVALINHA":this._setFormGroupConfig("CONTACT-PHONE-FORM-NOVALINHA"),this._setResumptionConfig("CONTACT-PHONE-FORM-NOVALINHA");break;default:console.error("N\xc3O EXISTE ESTE FLUXO!")}},Object.defineProperty(t.prototype,"_firstDigit",{get:function(){return this.inputValue?parseInt(this.inputValue.substring(2,3),0):0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mask",{get:function(){return"CONTACT-PHONE-FORM-NOVALINHA"===this._typeFlux?this._firstDigit>=6&&this._firstDigit<=9?(this._typePhone="CEL","(00) 00000-0000"):(this._typePhone="TEL","(00) 0000-0000"):(this._typePhone="CEL","(00) 00000-0000")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return"CEL"===this._typePhone?15:"TEL"===this._typePhone?14:void 0},enumerable:!1,configurable:!0}),t.prototype._setFormGroupConfig=function(t){this.formGroup=new Hp({phone:new Gp("",[ep.required,s_.retirarLetras,"ASK-PHONE"===t?s_.validarTelefoneCelular:s_.validatePhone])})},t.prototype._setResumptionConfig=function(t){"ASK-PHONE"===t?this.chatItem.order.phoneNumber&&(this.inputValue=this.chatItem.order.phoneNumber,this.chatItem.finishedStep?this.chatItem.finishedStep=!0:this.setPhone.emit(this.inputValue)):"CONTACT-PHONE-FORM-NOVALINHA"===t&&this.chatItem.order.contactPhoneNumber&&(this.inputValue=this.chatItem.order.contactPhoneNumber,this.chatItem.finishedStep=!0)},t.prototype._checkCarrierCode=function(t){return Vf(this,void 0,void 0,(function(){var e,n;return Lf(this,(function(r){switch(r.label){case 0:return e=parseInt(t.substring(0,2),0),n=parseInt(t.substring(2),0),[4,this._wzService.getOperadoraFromTel(e,n)];case 1:return[2,r.sent()]}}))}))},t.prototype.submitForm=function(t){var e=this;this.inputValue=t,this.maxLength===t.length+4?(this.formGroup.get("phone").setValue(t),31!==this.chatItem.globalCfg.codigoOperadora?3!==this._typeModality?this._checkCarrierCode(t).then((function(t){0!==t.CodigoOperadora?(e.isFormValid=!0,e.setPhone.emit(e.formGroup.get("phone").value)):e.isFormValid=!1})):this.formGroup.valid?(this.isFormValid=!0,this.setPhone.emit(this.formGroup.get("phone").value)):this.isFormValid=!1:(this.isFormValid=!0,this.setPhone.emit(this.formGroup.get("phone").value))):this.isFormValid=!1},t.\u0275fac=function(e){return new(e||t)(Wa(hv))},t.\u0275cmp=Ee({type:t,selectors:[["app-telefone-form"]],inputs:{chatItem:"chatItem"},outputs:{setPhone:"setPhone"},decls:4,vars:9,consts:[[3,"colorVariant","isNewNode"],[1,"text",3,"innerHtml"],["label","Digite seu Telefone:",3,"mask","maxLength","isTypeNumber","inputValue","isDisabled","valueChanged"],["class","text invalid",4,"ngIf"],[1,"text","invalid"]],template:function(t,e){1&t&&(Ya(0,"app-chat-bubble",0),Ja(1,"p",1),Ya(2,"app-custom-input",2),rs("valueChanged",(function(t){return e.submitForm(t)})),Ka(),Ha(3,f_,2,0,"p",3),Ka()),2&t&&($a("colorVariant",e.chatItem.colorVariant)("isNewNode",e.chatItem.isNewNode),ji(1),$a("innerHtml",e.chatItem.content.htmlText,gi),ji(1),$a("mask",e.mask)("maxLength",e.maxLength)("isTypeNumber",!0)("inputValue",e.inputValue)("isDisabled",e.chatItem.finishedStep),ji(1),$a("ngIf",!e.isFormValid))},directives:[vb,d_,Af,Jl],styles:["p.text[_ngcontent-%COMP%]{margin:0;font-size:14px;line-height:1.43}p.text.invalid[_ngcontent-%COMP%]{margin-top:10px;font-weight:700;color:var(--phone-form-txt-invalid)}"],changeDetection:0}),t}();function g_(t,e){1&t&&(Ya(0,"p",5),ws(1,"Email Inv\xe1lido"),Ka())}var m_=function(){function t(){this.emailSet=new Uc,this.isValid=!0}return t.prototype.ngOnInit=function(){this.createFormGroup(),this.createInitialConfig()},t.prototype.createFormGroup=function(){this.formGroup=new Hp({email:new Gp("",[ep.required,s_.validarEmail])})},t.prototype.createInitialConfig=function(){this.chatItem.order.personalData.email&&this.chatItem.finishedStep&&(this.email=this.chatItem.order.personalData.email)},t.prototype.changeEmail=function(t){this.formGroup.get("email").setValue(t),this.isValid=!0},t.prototype.confirm=function(){this.formGroup.valid?this.emailSet.emit(this.formGroup.get("email").value):this.isValid=!1},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ee({type:t,selectors:[["app-email-form"]],inputs:{chatItem:"chatItem"},outputs:{emailSet:"emailSet"},decls:6,vars:6,consts:[[3,"colorVariant","isNewNode"],[1,"text",3,"innerHtml"],["label","Digite seu Email:","type","email","maxLength","319",3,"isDisabled","valueChanged"],["class","text invalid",4,"ngIf"],[3,"disabled","click"],[1,"text","invalid"]],template:function(t,e){1&t&&(Ya(0,"app-chat-bubble",0),Ja(1,"p",1),Ya(2,"app-custom-input",2),rs("valueChanged",(function(t){return e.changeEmail(t)})),Ka(),Ha(3,g_,2,0,"p",3),Ya(4,"button",4),rs("click",(function(){return e.confirm()})),ws(5,"Confirmar"),Ka(),Ka()),2&t&&($a("colorVariant",e.chatItem.colorVariant)("isNewNode",e.chatItem.isNewNode),ji(1),$a("innerHtml",e.chatItem.content.htmlText,gi),ji(1),$a("isDisabled",e.chatItem.finishedStep),ji(1),$a("ngIf",!e.isValid),ji(1),$a("disabled",e.chatItem.finishedStep))},directives:[vb,d_,Jl],styles:['p[class=text][_ngcontent-%COMP%]{margin:0;font-size:14px;line-height:1.43}p[class="text invalid"][_ngcontent-%COMP%]{margin-top:10px;font-weight:700;color:var(--email-form-txt-invalid-color)}button[_ngcontent-%COMP%]{font:700 18px Barlow,sans-serif;width:100%;margin-top:15px;padding:8px 13px;color:var(--text-color);background-color:var(--main-btn-color);border:2px solid var(--main-btn-color);border-radius:var(--btn-radius-size);text-transform:unset}button[_ngcontent-%COMP%]:enabled:hover{background-color:var(--select-btn-color);border-color:var(--select-btn-color)}button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.5}']}),t}();function y_(t,e){1&t&&(Ya(0,"p",4),ws(1," CPF Inv\xe1lido "),Ka())}var b_=function(){function t(){this.cpfSet=new Uc}return Object.defineProperty(t.prototype,"formIsCompleted",{get:function(){var t=this.formGroup.get("cpf").value;return t&&11===t.length},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this._initFormGroupConfig(),this._initResumptionConfig(this.chatItem),this._checkForAutoFill()},t.prototype.handleValueChanged=function(t){this.inputValue=t,this._setCPF(t),this._submitForm(this.formIsCompleted,this.formGroup.valid,this.formGroup.get("cpf").value)},t.prototype._initFormGroupConfig=function(){this.formGroup=new Hp({cpf:new Gp("",[ep.required,s_.validarCPF])})},t.prototype._checkForAutoFill=function(){if(this.chatItem.globalCfg.autoFill&&!this.chatItem.finishedStep){var t=this.chatItem.order.personalData.cpf;t.length>0&&this.handleValueChanged(t)}},t.prototype._initResumptionConfig=function(t){var e=t.order;e.personalData.cpf&&t.finishedStep&&(this.inputValue=e.personalData.cpf)},t.prototype._setCPF=function(t){this.formGroup.get("cpf").setValue(t)},t.prototype._submitForm=function(t,e,n){t&&e&&this.cpfSet.emit(n)},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ee({type:t,selectors:[["app-cpf-form"]],inputs:{chatItem:"chatItem"},outputs:{cpfSet:"cpfSet"},decls:4,vars:7,consts:[[3,"colorVariant","isNewNode"],[1,"text",3,"innerHtml"],["label","Digite seu CPF:","mask","000.000.000-00",3,"isTypeNumber","inputValue","isDisabled","valueChanged"],["class","text invalid",4,"ngIf"],[1,"text","invalid"]],template:function(t,e){1&t&&(Ya(0,"app-chat-bubble",0),Ja(1,"p",1),Ya(2,"app-custom-input",2),rs("valueChanged",(function(t){return e.handleValueChanged(t)})),Ka(),Ha(3,y_,2,0,"p",3),Ka()),2&t&&($a("colorVariant",e.chatItem.colorVariant)("isNewNode",e.chatItem.isNewNode),ji(1),$a("innerHtml",e.chatItem.content.htmlText,gi),ji(1),$a("isTypeNumber",!0)("inputValue",e.inputValue)("isDisabled",e.chatItem.finishedStep),ji(1),$a("ngIf",e.formIsCompleted&&!e.formGroup.valid))},directives:[vb,d_,Af,Jl],styles:['p[class=text][_ngcontent-%COMP%]{margin:0;font-size:14px;line-height:1.43}p[class="text invalid"][_ngcontent-%COMP%]{margin-top:10px;font-weight:700;color:var(--cpf-form-txt-invalid-color)}']}),t}();function __(t,e){1&t&&(Ya(0,"p",4),ws(1," CEP Inv\xe1lido "),Ka())}var C_=function(){function t(){this.cepSet=new Uc}return Object.defineProperty(t.prototype,"formIsCompleted",{get:function(){var t=this.formGroup.get("cep").value;return t&&8===t.length},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this._initFormGroupConfig(),this._initResumptionConfig(this.chatItem)},t.prototype.handleValueChanged=function(t){this._setZipCode(t),this._submitForm(this.formIsCompleted,this.formGroup.valid,this.formGroup.get("cep").value)},t.prototype._initFormGroupConfig=function(){this.formGroup=new Hp({cep:new Gp("",[ep.required,s_.validarCep])})},t.prototype._initResumptionConfig=function(t){var e=t.order;e.userAddress&&e.userAddress.cep&&t.finishedStep&&(this.inputValue=e.userAddress.cep)},t.prototype._setZipCode=function(t){this.formGroup.get("cep").setValue(t)},t.prototype._submitForm=function(t,e,n){t&&e&&this.cepSet.emit(n)},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ee({type:t,selectors:[["app-cep-form"]],inputs:{chatItem:"chatItem"},outputs:{cepSet:"cepSet"},decls:4,vars:7,consts:[[3,"colorVariant","isNewNode"],[1,"text",3,"innerHtml"],["label","Digite seu CEP:","mask","00000-000",3,"inputValue","isTypeNumber","isDisabled","valueChanged"],["class","text invalid",4,"ngIf"],[1,"text","invalid"]],template:function(t,e){1&t&&(Ya(0,"app-chat-bubble",0),Ja(1,"p",1),Ya(2,"app-custom-input",2),rs("valueChanged",(function(t){return e.handleValueChanged(t)})),Ka(),Ha(3,__,2,0,"p",3),Ka()),2&t&&($a("colorVariant",e.chatItem.colorVariant)("isNewNode",e.chatItem.isNewNode),ji(1),$a("innerHtml",e.chatItem.content.htmlText,gi),ji(1),$a("inputValue",e.inputValue)("isTypeNumber",!0)("isDisabled",e.chatItem.finishedStep),ji(1),$a("ngIf",e.formIsCompleted&&(!e.formGroup.valid||e.chatItem.cepError)))},directives:[vb,d_,Af,Jl],styles:['p[class=text][_ngcontent-%COMP%]{font-size:14px;line-height:1.43;margin:0}p[class="text invalid"][_ngcontent-%COMP%]{color:var(--cep-form-txt-invalid-color);margin-top:10px;font-weight:700}']}),t}();function w_(t,e){1&t&&(Ya(0,"p",13),ws(1," Endere\xe7o Inv\xe1lido "),Ka())}function k_(t,e){1&t&&(Ya(0,"p",13),ws(1," Bairro Inv\xe1lido "),Ka())}function O_(t,e){1&t&&(Ya(0,"p",13),ws(1," Cidade Inv\xe1lida "),Ka())}function P_(t,e){1&t&&(Ya(0,"p",13),ws(1," UF Inv\xe1lida "),Ka())}function x_(t,e){if(1&t){var n=ts();Qa(0),Ya(1,"app-custom-input",9),rs("valueChanged",(function(t){return _n(n),cs().setValue(t,"endereco")})),Ka(),Ha(2,w_,2,0,"p",6),Ya(3,"app-custom-input",10),rs("valueChanged",(function(t){return _n(n),cs().setValue(t,"bairro")})),Ka(),Ha(4,k_,2,0,"p",6),Ya(5,"app-custom-input",11),rs("valueChanged",(function(t){return _n(n),cs().setValue(t,"cidade")})),Ka(),Ha(6,O_,2,0,"p",6),Ya(7,"app-custom-input",12),rs("valueChanged",(function(t){return _n(n),cs().setValue(t,"uf")})),Ka(),Ha(8,P_,2,0,"p",6),Xa()}if(2&t){var r=cs();ji(1),$a("inputValue",r.chatItem.order.userAddress.endereco)("isDisabled",r.chatItem.finishedStep),ji(1),$a("ngIf",r.isSubmited&&!r.formGroup.controls.endereco.valid),ji(1),$a("isDisabled",r.chatItem.finishedStep),ji(1),$a("ngIf",r.isSubmited&&!r.formGroup.controls.bairro.valid),ji(1),$a("inputValue",r.chatItem.order.userAddress.cidade)("isDisabled",r.chatItem.finishedStep),ji(1),$a("ngIf",r.isSubmited&&!r.formGroup.controls.cidade.valid),ji(1),$a("inputValue",r.chatItem.order.userAddress.uf)("isDisabled",r.chatItem.finishedStep),ji(1),$a("ngIf",r.isSubmited&&!r.formGroup.controls.uf.valid)}}function I_(t,e){1&t&&(Ya(0,"p",13),ws(1," N\xfamero Inv\xe1lido "),Ka())}var S_=function(){function t(){this.addressSet=new Uc,this.canClick=!0}return t.prototype.ngOnInit=function(){this.createFormGroup(),this.setNumberAndComplement()},t.prototype.createFormGroup=function(){this.formGroup=new Hp({endereco:new Gp(this.chatItem.order.userAddress.endereco,[ep.required]),bairro:new Gp(this.chatItem.order.userAddress.bairro,[ep.required]),cidade:new Gp(this.chatItem.order.userAddress.cidade,[ep.required]),uf:new Gp(this.chatItem.order.userAddress.uf,[ep.required,this.validateUF]),numero:new Gp("",[ep.required]),complemento:new Gp("")})},t.prototype.setNumberAndComplement=function(){this.chatItem.order.userAddress.numero&&this.chatItem.finishedStep&&(this.numero=this.chatItem.order.userAddress.numero,this.complemento=this.chatItem.order.userAddress.complemento)},t.prototype.validateUF=function(t){return["AC","AL","AP","AM","BA","CE","DF","ES","GO","MA","MT","MS","MG","PA","PB","PR","PE","RJ","RN","RS","RO","RR","SC","SP","SE","TO"].find((function(e){return t.value&&e===t.value.toUpperCase()}))?null:{validateUf:{valid:!1}}},t.prototype.setValue=function(t,e){var n=this.formGroup.get(e);n.setValue(t),n.markAsTouched()},t.prototype.fieldIsValid=function(t){var e=this.formGroup.get(t);return!e.touched||e.valid},t.prototype.confirm=function(){this.isSubmited=!0,this.formGroup.valid&&this.canClick&&(this.addressSet.emit(this.formGroup.getRawValue()),this.canClick=!1)},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ee({type:t,selectors:[["app-address-form"]],inputs:{chatItem:"chatItem"},outputs:{addressSet:"addressSet"},decls:12,vars:12,consts:[[3,"colorVariant","isNewNode"],[1,"text",3,"innerHtml"],[1,"label"],[1,"text"],[4,"ngIf"],["label","N\xfamero: *",3,"inputValue","isTypeNumber","isDisabled","valueChanged"],["class","text invalid",4,"ngIf"],["label","Complemento:",3,"inputValue","isDisabled","valueChanged"],[3,"disabled","click"],["label","Endere\xe7o: *",3,"inputValue","isDisabled","valueChanged"],["label","Bairro: *",3,"isDisabled","valueChanged"],["label","Cidade: *",3,"inputValue","isDisabled","valueChanged"],["label","UF: *",3,"inputValue","isDisabled","valueChanged"],[1,"text","invalid"]],template:function(t,e){1&t&&(Ya(0,"app-chat-bubble",0),Ja(1,"p",1),Ya(2,"p",2),ws(3,"Endere\xe7o/Bairro/Cidade/Estado:"),Ka(),Ya(4,"p",3),ws(5),Ka(),Ha(6,x_,9,11,"ng-container",4),Ya(7,"app-custom-input",5),rs("valueChanged",(function(t){return e.setValue(t,"numero")})),Ka(),Ha(8,I_,2,0,"p",6),Ya(9,"app-custom-input",7),rs("valueChanged",(function(t){return e.setValue(t,"complemento")})),Ka(),Ya(10,"button",8),rs("click",(function(){return e.confirm()})),ws(11," Confirmar "),Ka(),Ka()),2&t&&($a("colorVariant",e.chatItem.colorVariant)("isNewNode",e.chatItem.isNewNode),ji(1),$a("innerHtml",e.chatItem.content.htmlText,gi),ji(4),ks(e.chatItem.order.userAddress.fullAddress),ji(1),$a("ngIf",!e.chatItem.order.userAddress.fullAddress),ji(1),$a("inputValue",e.numero)("isTypeNumber",!0)("isDisabled",e.chatItem.finishedStep),ji(1),$a("ngIf",e.isSubmited&&!e.formGroup.controls.numero.valid),ji(1),$a("inputValue",e.complemento)("isDisabled",e.chatItem.finishedStep),ji(1),$a("disabled",e.chatItem.finishedStep))},directives:[vb,Jl,d_],styles:['p[class=text][_ngcontent-%COMP%]{margin:0;font-size:14px;line-height:1.43}p[class="text invalid"][_ngcontent-%COMP%]{margin-top:10px;font-weight:700;color:var(--address-form-txt-invalid-color)}p[class=label][_ngcontent-%COMP%]{font-size:14px;color:var(--address-form-label-color)}button[_ngcontent-%COMP%]{font:700 18px Barlow,sans-serif;width:100%;padding:8px 13px;margin-top:15px;color:var(--text-color);background-color:var(--main-btn-color);border:2px solid var(--main-btn-color);border-radius:var(--btn-radius-size);text-transform:unset}button[_ngcontent-%COMP%]:enabled:hover{background-color:var(--select-btn-color);border-color:var(--select-btn-color)}button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.5}']}),t}(),M_=/(\d{1,4})/g,E_=[{type:"maestro",patterns:[5018,502,503,506,56,58,639,6220,67],format:M_,length:[12,13,14,15,16,17,18,19],cvvLength:[3],luhn:!0},{type:"forbrugsforeningen",patterns:[600],format:M_,length:[16],cvvLength:[3],luhn:!0},{type:"dankort",patterns:[5019],format:M_,length:[16],cvvLength:[3],luhn:!0},{type:"visa",patterns:[4],format:M_,length:[13,16,19],cvvLength:[3],luhn:!0},{type:"mastercard",patterns:[51,52,53,54,55,22,23,24,25,26,27],format:M_,length:[16],cvvLength:[3],luhn:!0},{type:"amex",patterns:[34,37],format:/(\d{1,4})(\d{1,6})?(\d{1,5})?/,length:[15],cvvLength:[3,4],luhn:!0},{type:"dinersclub",patterns:[30,36,38,39],format:/(\d{1,4})(\d{1,6})?(\d{1,4})?/,length:[14],cvvLength:[3],luhn:!0},{type:"discover",patterns:[60,64,65,622],format:M_,length:[16],cvvLength:[3],luhn:!0},{type:"unionpay",patterns:[62,88],format:M_,length:[16,17,18,19],cvvLength:[3],luhn:!1},{type:"jcb",patterns:[35],format:M_,length:[16,19],cvvLength:[3],luhn:!0}],T_=function(){function t(){y(this,t)}return _(t,null,[{key:"cards",value:function(){return E_}},{key:"cardFromNumber",value:function(t){t=(t+"").replace(/\D/g,"");for(var e=0,n=E_.length;e6}},{key:"replaceFullWidthChars",value:function(t){null===t&&(t="");for(var e="",n=t.split(""),r=0;r-1&&(i="0123456789"[o]),e+=i}return e}},{key:"formatExpiry",value:function(t){var e=t.match(/^\D*(\d{1,2})(\D+)?(\d{1,4})?/);if(!e)return"";var n=e[1]||"",r=e[2]||"",i=e[3]||"";return i.length>0?r=" / ":" /"===r?(n=n.substring(0,1),r=""):2===n.length||r.length>0?r=" / ":1===n.length&&"0"!==n&&"1"!==n&&(n="0".concat(n),r=" / "),"".concat(n).concat(r).concat(i)}},{key:"restrictCvc",value:function(t,e){var n=String.fromCharCode(t);return!(!/^\d+$/.test(n)||this.hasTextSelected(e))&&"".concat(e.value).concat(n).length<=4}},{key:"luhnCheck",value:function(t){for(var e=t.split("").reverse(),n=!0,r=0,i=0;i9&&(o-=9),r+=o}return r%10==0}}]),t}(),A_=function(){function t(){y(this,t)}return _(t,null,[{key:"validateCCNumber",value:function(t){if(void 0!==ep.required(t)&&null!==ep.required(t))return{ccNumber:!0};var e=t.value.toString().replace(/\s+|-/g,"");if(!/^\d+$/.test(e))return{ccNumber:!0};var n=T_.cardFromNumber(e);if(!n)return{ccNumber:!0};if(n.length.includes(e.length)&&(!1===n.luhn||T_.luhnCheck(e)))return null;var r=n.length[n.length.length-1];if(e.length>r){var i=e.substring(0,r);if(T_.luhnCheck(i))return null}return{ccNumber:!0}}},{key:"validateExpDate",value:function(t){if(void 0!==ep.required(t)&&null!==ep.required(t))return{expDate:!0};if(void 0!==t.value&&t.value.length>=5){var e=c(t.value.split(/[\s\/]+/,2),2),n=e[0],r=e[1];if(2===(null!=r?r.length:void 0)&&/^\d+$/.test(r)&&(r=(new Date).getFullYear().toString().slice(0,2)+r),n=parseInt(n,10).toString(),r=parseInt(r,10).toString(),/^\d+$/.test(n)&&/^\d+$/.test(r)&&n>=1&&n<=12){var i=new Date(r,n),o=new Date;if(i.setMonth(i.getMonth()-1),i.setMonth(i.getMonth()+1,1),i>o)return null}}return{expDate:!0}}}]),t}(),N_=function(){var t=_((function t(){y(this,t)}));return t.\u0275mod=De({type:t}),t.\u0275inj=Mt({factory:function(e){return new(e||t)}}),t}();function D_(t,e){1&t&&(Ya(0,"p",11),ws(1," N\xfamero Inv\xe1lido "),Ka())}function V_(t,e){1&t&&(Ya(0,"p",11),ws(1," Data de Expira\xe7\xe3o Inv\xe1lida "),Ka())}function L_(t,e){1&t&&(Ya(0,"p",11),ws(1," CVV Inv\xe1lido "),Ka())}function R_(t,e){if(1&t){var n=ts();Ya(0,"app-custom-input",12),rs("valueChanged",(function(t){return _n(n),cs().setValue(t,"cpf")})),Ka()}if(2&t){var r=cs();$a("isTypeNumber",!0)("inputValue",r.cpf)("width",200)("isDisabled",r.chatItem.finishedStep)}}function F_(t,e){1&t&&(Ya(0,"p",11),ws(1," CPF Inv\xe1lido "),Ka())}function j_(t,e){1&t&&(Ya(0,"p",11),ws(1," Nome Impresso Inv\xe1lido "),Ka())}var z_=function(){function t(t){this._fb=t,this.ccSet=new Uc,this.canClick=!0,this.carrierCode=Uu.codigoOperadora}return t.prototype.ngOnInit=function(){this.createFormGroup()},t.prototype.createFormGroup=function(){this.formGroup=this._fb.group(31===this.carrierCode?{number:new Gp(this.chatItem.order.pan,[ep.required,A_.validateCCNumber]),name:new Gp(this.chatItem.order.name,ep.required),cpf:new Gp(this.chatItem.order.name,[ep.required,s_.validarCPF]),cvv:new Gp(this.chatItem.order.cvv,[ep.required,ep.minLength(3),ep.maxLength(4)]),expirationDate:new Gp(this.chatItem.order.expirationDate,[ep.required,ep.maxLength(6),ep.minLength(6),this.isFinishedDueDateInput])}:{number:new Gp(this.chatItem.order.pan,[ep.required,A_.validateCCNumber]),name:new Gp(this.chatItem.order.name,ep.required),cpf:new Gp(this.chatItem.order.name),cvv:new Gp(this.chatItem.order.cvv,[ep.required,ep.minLength(3),ep.maxLength(4)]),expirationDate:new Gp(this.chatItem.order.expirationDate,[ep.required,ep.maxLength(6),ep.minLength(6)])})},t.prototype.isValidField=function(t){var e=this.formGroup.get(t);return!e.touched||e.valid},t.prototype.setValue=function(t,e){var n=this.formGroup.get(e);n.setValue(t),n.markAsTouched()},t.prototype.confirm=function(){if(this.isSubmited=!0,this.formGroup.valid&&this.canClick){var t=this.formGroup.getRawValue();this.ccSet.emit(t),this.canClick=!1}},t.prototype.isFinishedCpfInput=function(){if(31===this.carrierCode){var t=this.formGroup.get("cpf").value;return t&&11===t.length}return!0},t.prototype.isFinishedNameInput=function(){var t=this.formGroup.get("name").value;return t&&t.length>3},t.prototype.isFinishedNumberInput=function(){var t=this.formGroup.get("number").value;return t&&16===t.length},t.prototype.isFinishedDueDateInput=function(t){var e=t.value,n=!0;if(e&&6===e.length){try{var r=parseInt(e.substring(0,2),10),i=parseInt(e.substring(2,6),10),o=new Date;o.setMonth(r),o.setFullYear(i),o||(n=!1),o0&&(r+=" + "+i+"GB\xb9"),e&&t.bonusInternetPortabilidade&&(i=parseInt(t.bonusInternetPortabilidade.split("GB")[0],10))>0&&(r+=" + "+i+"GB de portabilidade"),t.bonusInternetExtraPlay&&(i=parseInt(t.bonusInternetExtraPlay.split("GB")[0],10))>0&&(r+=" + "+i+"GB"),t.bonusInternetBlackFriday&&(i=parseInt(t.bonusInternetBlackFriday.split("GB")[0],10))>0&&(r+=" + "+i+"GB"),t.sva&&n){for(var a=void 0,s=0;sLinha a ser portada: "+s+""}else 3===a&&(41==Uu.codigoOperadora&&(r.innerHTML="
Nova Linha:"),r.innerHTML="")}var c=!!t.chatItem.order.plan.bonusInternetOutro;if("planNameValue"===n){switch(Uu.codigoOperadora){case 41:t.chatItem.order.plan.name=t.timService.getPlanName(t.chatItem.order);break;case 21:t.chatItem.order.plan.name=t.claroService.getPlanName(t.chatItem.order.plan,t.chatItem.order.plan.modalidade==Ff.Portabilidade,Uu.companyName);break;case 15:t.chatItem.order.plan.name=t.vivoService.getPlanName(t.chatItem.order.plan,t.chatItem.order.plan.modalidade==Ff.Portabilidade,!!t.chatItem.order.svas);break;default:t.chatItem.order.plan.name=t.claroService.getPlanName(t.chatItem.order.plan,t.chatItem.order.plan.modalidade==Ff.Portabilidade,Uu.companyName)}c&&(r.textContent=t.chatItem.order.plan.name)}}})),this.newOrderData=e.getElementsByTagName("BODY")[0].innerHTML},t.prototype.setContractConfig=function(t){this.isContractAccepted=t},t.\u0275fac=function(e){return new(e||t)(Wa(mv))},t.\u0275cmp=Ee({type:t,selectors:[["app-confirm"]],inputs:{chatItem:"chatItem",operatorCode:"operatorCode"},outputs:{resolution:"resolution",openContract:"openContract"},decls:12,vars:10,consts:[[3,"colorVariant","isNewNode"],["class","text",3,"innerHtml",4,"ngIf"],[4,"ngIf"],["class","text",4,"ngIf"],[1,"text","bigger"],[3,"setDisabled","onclickCheckbox","onclickClause",4,"ngIf"],[1,"options"],[3,"disabled","click"],[1,"text",3,"innerHtml"],[1,"text"],[3,"setDisabled","onclickCheckbox","onclickClause"]],template:function(t,e){1&t&&(Ya(0,"app-chat-bubble",0),Ha(1,Q_,2,3,"p",1),Ha(2,X_,33,6,"p",2),Ha(3,tC,2,0,"p",3),Ya(4,"p",4),ws(5,"Voc\xea est\xe1 de acordo?"),Ka(),Ha(6,eC,1,1,"app-contract-form",5),Ya(7,"div",6),Ya(8,"button",7),rs("click",(function(){return e.adjustPaymentType(!0)})),ws(9),Ka(),Ya(10,"button",7),rs("click",(function(){return e.adjustPaymentType(!1)})),ws(11),Ka(),Ka(),Ka()),2&t&&($a("colorVariant",e.chatItem.colorVariant)("isNewNode",e.chatItem.isNewNode),ji(1),$a("ngIf",!e.environmentBroadband),ji(1),$a("ngIf",e.environmentBroadband),ji(1),$a("ngIf",e.chatItem.order.plan.fidelizado&&21===e.environmentOperadora),ji(3),$a("ngIf",41===e.operatorCode),ji(2),$a("disabled",!e.isContractAccepted||e.chatItem.finishedStep),ji(1),Os(" ",e.chatItem.content.yesText," "),ji(1),$a("disabled",e.chatItem.finishedStep),ji(1),Os(" ",e.chatItem.content.noText," "))},directives:[vb,Jl,K_],pipes:[J_],styles:['p[class=text][_ngcontent-%COMP%]{margin:0;font-size:14px;line-height:1.43}p[class="text bigger"][_ngcontent-%COMP%]{margin-top:15px;font-size:16px;font-weight:700}div[class=options][_ngcontent-%COMP%]{margin:15px 0;display:flex;flex-direction:column}div[class=options][_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font:700 18px Barlow,sans-serif;padding:8px 13px;border-radius:var(--btn-radius-size);text-transform:unset}div[class=options][_ngcontent-%COMP%] button[_ngcontent-%COMP%]:enabled:hover{background-color:var(--select-btn-color);border-color:var(--select-btn-color)}div[class=options][_ngcontent-%COMP%] button[_ngcontent-%COMP%]:enabled:last-child:hover{color:#d7321e}div[class=options][_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.5}div[class=options][_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{margin-bottom:15px;color:var(--text-color);background-color:var(--main-btn-color);border:2px solid var(--main-btn-color)}div[class=options][_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{color:#000;background-color:var(--secondary-btn-color);border:2px solid #999}']}),t}();function rC(t,e){if(1&t&&Ja(0,"p",4),2&t){var n=cs();$a("innerHtml",n.chatItem.content.debit?n.chatItem.content.debit:null==n.chatItem.content.debitConfig?null:n.chatItem.content.debitConfig.htmlText,gi)}}function iC(t,e){1&t&&(Ya(0,"p"),ws(1," Texto n\xe3o encontrado! Confira a configura\xe7\xe3o do fluxo para este item. "),Ka())}function oC(t,e){if(1&t&&Ja(0,"p",4),2&t){var n=cs();$a("innerHtml",n.chatItem.content.noDebit?n.chatItem.content.noDebit:null==n.chatItem.content.noDebitConfig?null:n.chatItem.content.noDebitConfig.htmlText,gi)}}var aC=function(){function t(){this.resolution=new Uc,this.canClick=!0}return t.prototype.doAction=function(t){this.canClick&&(t&&(this.chatItem.order.plan.tipoAssinaturaPlano=2),this.resolution.emit(t),this.canClick=!1)},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ee({type:t,selectors:[["app-confirm-debit"]],inputs:{chatItem:"chatItem"},outputs:{resolution:"resolution"},decls:9,vars:9,consts:[[3,"colorVariant","isNewNode"],[3,"innerHtml",4,"ngIf"],[4,"ngIf"],[3,"disabled","click"],[3,"innerHtml"]],template:function(t,e){1&t&&(Ya(0,"app-chat-bubble",0),Ha(1,rC,1,1,"p",1),Ha(2,iC,2,0,"p",2),Ya(3,"div"),Ya(4,"button",3),rs("click",(function(){return e.doAction(!0)})),ws(5),Ka(),Ya(6,"button",3),rs("click",(function(){return e.doAction(!1)})),ws(7),Ka(),Ka(),Ha(8,oC,1,1,"p",1),Ka()),2&t&&($a("colorVariant",e.chatItem.colorVariant)("isNewNode",e.chatItem.isNewNode),ji(1),$a("ngIf",e.chatItem.content.debit||e.chatItem.content.debitConfig),ji(1),$a("ngIf",!e.chatItem.content.debit&&!e.chatItem.content.debitConfig),ji(2),$a("disabled",e.chatItem.finishedStep),ji(1),Os(" ",e.chatItem.content.debitConfig?null==e.chatItem.content.debitConfig?null:e.chatItem.content.debitConfig.btnText:"Sim"," "),ji(1),$a("disabled",e.chatItem.finishedStep),ji(1),Os(" ",e.chatItem.content.noDebitConfig?null==e.chatItem.content.noDebitConfig?null:e.chatItem.content.noDebitConfig.btnText:"N\xe3o"," "),ji(1),$a("ngIf",e.chatItem.content.noDebit||e.chatItem.content.noDebitConfig))},directives:[vb,Jl],styles:["p[_ngcontent-%COMP%]{margin:0;font-size:14px;line-height:1.43}div[_ngcontent-%COMP%]{margin:15px 0;display:flex;flex-direction:column}div[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font:700 18px Barlow,sans-serif;padding:8px 13px;border-radius:var(--btn-radius-size);text-transform:unset}div[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:enabled:hover{background-color:var(--select-btn-color);border-color:var(--select-btn-color)}div[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:enabled:last-child:hover{color:#d7321e}div[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.5}div[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{margin-bottom:15px;color:var(--text-color);background-color:var(--main-btn-color);border:2px solid var(--main-btn-color)}div[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{color:#000;background:var(--secondary-btn-color);border:2px solid #999}"]}),t}();function sC(t,e){if(1&t&&(Ya(0,"p"),ws(1),Ka()),2&t){var n=cs();ji(1),Ps(" Aguarde ",n.timeLeft," ",1==n.interval?"segundo":"segundos"," ")}}var cC=function(){function t(t){this.backendService=t,this.tokenSet=new Uc,this.canSet=!0,this.timeLeft=60,this.disableResendButton=!0}return t.prototype.ngOnInit=function(){this.startTimer()},t.prototype.ngOnDestroy=function(){this.clearTimer()},t.prototype.setToken=function(t){4===t.length&&this.canSet&&(this.tokenSet.emit(t),this.canSet=!1,this.timeLeft=60)},t.prototype.startTimer=function(){var t=this;this.interval=setInterval((function(){t.timeLeft>0?t.timeLeft--:t.disableResendButton=!1}),1e3)},t.prototype.clearTimer=function(){this.interval&&clearInterval(this.interval)},t.prototype.resendToken=function(){return Vf(this,void 0,void 0,(function(){return Lf(this,(function(t){switch(t.label){case 0:return[4,this.backendService.resendSms(this.chatItem.order.cartId,this.chatItem.order.plan.type,this.chatItem.order,this.chatItem.globalCfg)];case 1:return t.sent(),this.disableResendButton=!0,this.timeLeft=60,this.clearTimer(),this.startTimer(),[2]}}))}))},t.\u0275fac=function(e){return new(e||t)(Wa(hv))},t.\u0275cmp=Ee({type:t,selectors:[["app-confirm-token"]],inputs:{chatItem:"chatItem"},outputs:{tokenSet:"tokenSet"},decls:7,vars:7,consts:[[3,"colorVariant","isNewNode"],[1,"text",3,"innerHtml"],["label","Insira o c\xf3digo recebido por SMS:","mask","0000",3,"isDisabled","isTypeNumber","valueChanged"],["id","resendTokenSmsButton",3,"disabled","click"],[4,"ngIf"]],template:function(t,e){1&t&&(Ya(0,"app-chat-bubble",0),Ja(1,"p",1),Ya(2,"app-custom-input",2),rs("valueChanged",(function(t){return e.setToken(t)})),Ka(),Ya(3,"div"),Ya(4,"button",3),rs("click",(function(){return e.resendToken()})),ws(5," Reenviar Token "),Ka(),Ha(6,sC,2,2,"p",4),Ka(),Ka()),2&t&&($a("colorVariant",e.chatItem.colorVariant)("isNewNode",e.chatItem.isNewNode),ji(1),$a("innerHtml",e.chatItem.content.htmlText,gi),ji(1),$a("isDisabled",e.chatItem.finishedStep)("isTypeNumber",!0),ji(2),$a("disabled",e.disableResendButton),ji(2),$a("ngIf",e.timeLeft>0))},directives:[vb,d_,Af,Jl],styles:["p[class=text][_ngcontent-%COMP%]{margin:0;font-size:14px;line-height:1.43}button[_ngcontent-%COMP%]{font:700 18px var(--custom-font);margin-bottom:15px;margin-top:15px;padding:8px 13px;color:var(--text-color);background:var(--main-btn-color);border:2px solid var(--main-btn-color);border-radius:var(--btn-radius-size);text-transform:unset}button[_ngcontent-%COMP%]:enabled:hover{background:var(--select-btn-color);border-color:var(--select-btn-color)}button[_ngcontent-%COMP%]:disabled{background-color:grey;color:#a9a9a9;border:2px dashed silver}"]}),t}();function uC(t,e){if(1&t&&(Ya(0,"option",3),ws(1),Ka()),2&t){var n=e.$implicit;$a("value",n),ji(1),Os(" ",n," ")}}var lC=function(){function t(){this.options="",this.isDisabled=!1,this.valueChanged=new Uc}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ee({type:t,selectors:[["app-custom-select"]],inputs:{label:"label",options:"options",isDisabled:"isDisabled",selectValue:"selectValue"},outputs:{valueChanged:"valueChanged"},decls:5,vars:4,consts:[[1,"custom-select"],[3,"ngModel","disabled","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,e){1&t&&(Ya(0,"div",0),Ya(1,"label"),ws(2),Ka(),Ya(3,"select",1),rs("ngModelChange",(function(t){return e.selectValue=t}))("ngModelChange",(function(t){return e.valueChanged.emit(t)})),Ha(4,uC,2,2,"option",2),Ka(),Ka()),2&t&&(ji(2),ks(e.label),ji(1),$a("ngModel",e.selectValue)("disabled",e.isDisabled),ji(1),$a("ngForOf",e.options))},directives:[_p,Zh,nf,Yl,Cp,Pp],styles:["div.custom-select[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:13px}div.custom-select[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#666;font-size:14px}div.custom-select[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{font-size:16px;color:#000;border:none;border-bottom:2px solid #000;padding:10px}div.custom-select[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:focus{outline:none}div.custom-select[_ngcontent-%COMP%] select[disabled][_ngcontent-%COMP%]{background:transparent;color:#c1c1c1;-webkit-text-fill-color:#c1c1c1;opacity:1}"]}),t}();function dC(t,e){1&t&&(Ya(0,"p",7),ws(1," Dados inv\xe1lidos. "),Ka())}function hC(t,e){1&t&&(Ya(0,"p",7),ws(1," Aten\xe7\xe3o para clientes do Banco do Brasil S.A!"),Ja(2,"br"),ws(3," Mesmo fazendo cadastro com a TIM Live, o cliente precisa autorizar o d\xe9bito junto ao banco. "),Ka())}function pC(t,e){if(1&t){var n=ts();Ya(0,"button",8),rs("click",(function(){return _n(n),cs().submitForm(!1)})),ws(1," Quero Boleto "),Ka()}2&t&&$a("disabled",cs().chatItem.finishedStep)}var fC=function(){function t(){this.bankInfoSet=new Uc,this.resolution=new Uc,this._hasBtnClicked=!1,this.bankList=[],this.displayDAMessage=!1,this.showError=!1}return t.prototype.ngOnInit=function(){this._initFormGroupConfig(),this._initResumptionConfig(),this._chooseBank()},Object.defineProperty(t.prototype,"_isClicked",{get:function(){return!(!this._hasBtnClicked&&!this.chatItem.finishedStep)},enumerable:!1,configurable:!0}),t.prototype._initFormGroupConfig=function(){this.formGroup=new Hp({banco:new Gp("",[ep.required]),agencia:new Gp("",[ep.required]),conta:new Gp("",[ep.required])})},t.prototype._initResumptionConfig=function(){var t=this.chatItem.order.bankInfo;this.chatItem.order.bankInfo&&this.chatItem.finishedStep&&(this.bankValue=t.banco,this.agencyValue=t.agencia,this.accountValue=t.conta)},t.prototype._chooseBank=function(){switch(Uu.codigoOperadora){case 15:case 21:case 31:this.bankList=["001 - Banco do Brasil","422 - Banco Safra","041 - Banrisul","237 - Bradesco","104 - Caixa Econ\xf4mica Federal","341 - Ita\xfa","389 - Mercantil do Brasil","033 - Santander"];break;case 41:this.bankList=["001 - Banco do Brasil","033 - Santander","037 - Banpar\xe1","237 - Bradesco","341 - Ita\xfa","422 - Banco Safra","756 - Bancoop","336 - C6 Bank"],Uu.isBroadband&&(this.bankList=["001 - BANCO DO BRASIL S.A","003 - BANCO DA AMAZ\xd4NIA","033 - BANCO SANTANDER BANESPA","037 - BANPAR\xc1","077 - INTERMEDIUM (BANCO INTER)","104 - CAIXA ECON\xd4MICA FEDERAL","237 - BANCO BRADESCO S.A","341 - BANCO ITA\xda S.A","389 - MERCATIL","422 - BANCO SAFRA SA","756 - BANCOOB"])}},t.prototype._isAutomaticDebitPayment=function(t){return!!t},t.prototype.setFormValue=function(t,e){var n=this.formGroup.get(e);n.setValue(t),n.markAsTouched(),this.validateDAMessage(e)},t.prototype.validateDAMessage=function(t){if("banco"===t){var e=this.formGroup.get(t).value.substring(0,3);this.displayDAMessage=!("001"!=e||!Uu.isBroadband)}},t.prototype.validateBankData=function(){if(this.formGroup.get("agencia").value.length<3)return!1;var t=this.formGroup.get("conta").value;return(t=t.replace("-","")).length<5?(this.showError=!0,!1):(this.showError=!1,!0)},t.prototype.submitForm=function(t){if(!this._isClicked){var e=this.formGroup.getRawValue();e.isConfirmed=this._isAutomaticDebitPayment(t),(t&&this.formGroup.valid&&this.validateBankData()||!t)&&(this.bankInfoSet.emit(e),this._hasBtnClicked=!0)}},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ee({type:t,selectors:[["app-bank-form"]],inputs:{chatItem:"chatItem"},outputs:{bankInfoSet:"bankInfoSet",resolution:"resolution"},decls:11,vars:16,consts:[[3,"colorVariant","isNewNode"],["label","Banco:",3,"selectValue","options","isDisabled","valueChanged"],["label","Ag\xeancia:","minLength","3","maxLength","4",3,"inputValue","isTypeNumber","isDisabled","valueChanged"],["label","Conta Corrente:","minLength","5","maxLength","12",3,"inputValue","isTypeNumber","isDisabled","valueChanged"],["class","message",4,"ngIf"],["data-type","btn-confirm",3,"disabled","click"],["data-type","btn-invoice",3,"disabled","click",4,"ngIf"],[1,"message"],["data-type","btn-invoice",3,"disabled","click"]],template:function(t,e){1&t&&(Ya(0,"app-chat-bubble",0),Ya(1,"p"),ws(2),Ka(),Ya(3,"app-custom-select",1),rs("valueChanged",(function(t){return e.setFormValue(t,"banco")})),Ka(),Ya(4,"app-custom-input",2),rs("valueChanged",(function(t){return e.setFormValue(t,"agencia")})),Ka(),Ya(5,"app-custom-input",3),rs("valueChanged",(function(t){return e.setFormValue(t,"conta")})),Ka(),Ha(6,dC,2,0,"p",4),Ha(7,hC,4,0,"p",4),Ya(8,"button",5),rs("click",(function(){return e.submitForm(!0)})),ws(9," Confirmar "),Ka(),Ha(10,pC,2,1,"button",6),Ka()),2&t&&($a("colorVariant",e.chatItem.colorVariant)("isNewNode",e.chatItem.isNewNode),ji(2),ks(e.chatItem.content.htmlText),ji(1),$a("selectValue",e.bankValue)("options",e.bankList)("isDisabled",e.chatItem.finishedStep),ji(1),$a("inputValue",e.agencyValue)("isTypeNumber",!0)("isDisabled",e.chatItem.finishedStep),ji(1),$a("inputValue",e.accountValue)("isTypeNumber",!0)("isDisabled",e.chatItem.finishedStep),ji(1),$a("ngIf",e.showError),ji(1),$a("ngIf",e.displayDAMessage),ji(1),$a("disabled",e.chatItem.finishedStep),ji(2),$a("ngIf",3!=e.chatItem.timLiveOrder.type))},directives:[vb,lC,d_,Jl],styles:["p[_ngcontent-%COMP%]{margin:0;font-size:14px;line-height:1.43}p.message[_ngcontent-%COMP%]{color:red;font-weight:700;text-align:left;margin-top:10px}button[_ngcontent-%COMP%]{font:700 18px Barlow,sans-serif;width:100%;padding:8px 13px;margin-top:15px;border-radius:var(--btn-radius-size);text-transform:unset}button[_ngcontent-%COMP%]:enabled:hover{background:var(--select-btn-color);border-color:var(--select-btn-color)}button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.5}button[data-type=btn-confirm][_ngcontent-%COMP%]{color:var(--text-color);background:var(--main-btn-color);border:2px solid var(--main-btn-color)}button[data-type=btn-invoice][_ngcontent-%COMP%]{color:#000;background-color:#fff;border:2px solid #979797}"]}),t}(),vC=function(){function t(t){this.colorVariant="primary",this.goToOrder=new Uc,this.dataLayer=t}return t.prototype.ngOnInit=function(){this.dataLayer.push({event:"event",eventCategory:Uu.companyName.toLowerCase()+"-avi-"+this.chatItem.order.source,eventAction:"10 - Pedido",eventLabel:"",eventValue:1}),this.dataLayer.push({event:"event",eventCategory:Uu.companyName.toLowerCase()+"-avi",eventAction:"acompanhar-pedido:botao:click",eventLabel:"ACOMPANHAR PEDIDO",eventValue:1})},t.\u0275fac=function(e){return new(e||t)(Wa(Gf))},t.\u0275cmp=Ee({type:t,selectors:[["app-track-order"]],inputs:{chatItem:"chatItem",colorVariant:"colorVariant"},outputs:{goToOrder:"goToOrder"},decls:10,vars:1,consts:[[3,"colorVariant"],[1,"text"],[3,"click"]],template:function(t,e){1&t&&(Ya(0,"app-chat-bubble",0),Ya(1,"p",1),ws(2," Voc\xea receber\xe1 um e-mail com as informa\xe7\xf5es do seu pedido e um SMS com os detalhes da ativa\xe7\xe3o do seu plano. Para consultar o andamento da sua solicita\xe7\xe3o, acesse o site: "),Ka(),Ya(3,"button",2),rs("click",(function(){return e.goToOrder.emit()})),ws(4," Acompanhar Pedido "),Ka(),Ya(5,"p",1),ws(6," \xc9 f\xe1cil, voc\xea s\xf3 precisa digitar seu CPF e o n\xfamero do pedido para saber o status. "),Ja(7,"br"),Ja(8,"br"),ws(9," Agradecemos a prefer\xeancia! "),Ka(),Ka()),2&t&&$a("colorVariant",e.colorVariant)},directives:[vb],styles:["p.text[_ngcontent-%COMP%]{font-size:14px;line-height:1.43;margin:0}button[_ngcontent-%COMP%]{font-family:Barlow,sans-serif;width:100%;padding:8px 13px;font-size:18px;font-weight:700;background:var(--main-btn-color);color:var(--text-color);border:2px solid var(--main-btn-color);margin:25px 0;text-transform:unset;border-radius:var(--btn-radius-size)}button[_ngcontent-%COMP%]:hover{background:var(--select-btn-color);border-color:var(--select-btn-color)}"]}),t}();function gC(t,e){if(1&t&&Ja(0,"img",18),2&t){var n=cs().$implicit;$a("src",cs(3).timService.getImage(n.nome),mi)("alt",n.descricao)}}function mC(t,e){if(1&t&&(Qa(0),Ha(1,gC,1,2,"img",17),Xa()),2&t){var n=e.$implicit;ji(1),$a("ngIf",n.isMoreApp)}}function yC(t,e){if(1&t&&(Ya(0,"p",19),ws(1),Ka()),2&t){var n=cs(2).$implicit;ji(1),Os(" ",n.additionalInformation," ")}}function bC(t,e){if(1&t&&Ja(0,"img",18),2&t){var n=cs().$implicit;$a("src",cs(3).timService.getImage(n.nome),mi)("alt",n.descricao)}}function _C(t,e){if(1&t&&(Qa(0),Ha(1,bC,1,2,"img",17),Xa()),2&t){var n=e.$implicit;ji(1),$a("ngIf",!n.isMoreApp)}}function CC(t,e){1&t&&(Ya(0,"p",19),ws(1," Fideliza\xe7\xe3o por 12 meses "),Ka())}function wC(t,e){1&t&&(Ya(0,"p",19),ws(1," Sem fideliza\xe7\xe3o "),Ka())}var kC=function(t){return{selected:t}};function OC(t,e){if(1&t){var n=ts();Ya(0,"div",4),Ya(1,"div",5),ws(2,"At\xe9 "),Ya(3,"p",6),ws(4),Ka(),Ya(5,"p",7),ws(6,"Apps Inclusos"),Ka(),Ya(7,"div",8),Ha(8,mC,2,1,"ng-container",9),Ka(),Ha(9,yC,2,1,"p",10),Ya(10,"div",8),Ha(11,_C,2,1,"ng-container",9),Ka(),Ka(),Ya(12,"div",11),Ya(13,"div",12),Ya(14,"p",13),Ya(15,"small"),ws(16,"R$"),Ka(),ws(17),Ka(),Ya(18,"p",14),Ya(19,"span"),ws(20),Ka(),Ya(21,"span"),ws(22,"/m\xeas"),Ka(),Ka(),Ka(),Ya(23,"small",15),ws(24,"a partir de"),Ka(),Ya(25,"button",16),rs("click",(function(){_n(n);var t=cs(),e=t.$implicit,r=t.index;return cs().setOption(e,r)})),ws(26," COMPRAR AGORA "),Ka(),Ha(27,CC,2,0,"p",10),Ha(28,wC,2,0,"p",10),Ka(),Ka()}if(2&t){var r=cs().$implicit,i=cs();$a("ngClass",Vc(10,kC,r.isHighLighted)),ji(4),Os("",r.totalInternet,"GB"),ji(4),$a("ngForOf",r.appList),ji(1),$a("ngIf",r.additionalInformation),ji(2),$a("ngForOf",r.appList),ji(6),Os("",r.valueDebit.split(",")[0]," "),ji(3),Os(",",r.valueDebit.split(",")[1],""),ji(5),$a("disabled",i.chatItem.finishedStep),ji(2),$a("ngIf",r.fidelizado),ji(1),$a("ngIf",!r.fidelizado)}}function PC(t,e){if(1&t&&Ja(0,"img",18),2&t){var n=cs().$implicit;$a("src",cs(3).timService.getImage(n.nome),mi)("alt",n.descricao)}}function xC(t,e){if(1&t&&(Qa(0),Ha(1,PC,1,2,"img",17),Xa()),2&t){var n=e.$implicit;ji(1),$a("ngIf",n.isMoreApp)}}function IC(t,e){if(1&t&&(Ya(0,"p",19),ws(1),Ka()),2&t){var n=cs(2).$implicit;ji(1),Os(" ",n.additionalInformation," ")}}function SC(t,e){if(1&t&&Ja(0,"img",18),2&t){var n=cs().$implicit;$a("src",cs(3).timService.getImage(n.nome),mi)("alt",n.descricao)}}function MC(t,e){if(1&t&&(Qa(0),Ha(1,SC,1,2,"img",17),Xa()),2&t){var n=e.$implicit;ji(1),$a("ngIf",!n.isMoreApp)}}function EC(t,e){1&t&&(Ya(0,"p",19),ws(1," Fideliza\xe7\xe3o por 12 meses "),Ka())}function TC(t,e){1&t&&(Ya(0,"p",19),ws(1," Sem fideliza\xe7\xe3o "),Ka())}function AC(t,e){if(1&t){var n=ts();Ya(0,"div",4),Ya(1,"div",5),Ya(2,"p",6),ws(3),Ka(),Ya(4,"p",7),ws(5,"Apps Inclusos"),Ka(),Ya(6,"div",8),Ha(7,xC,2,1,"ng-container",9),Ka(),Ha(8,IC,2,1,"p",10),Ya(9,"div",8),Ha(10,MC,2,1,"ng-container",9),Ka(),Ka(),Ya(11,"div",11),Ya(12,"div",12),Ya(13,"p",13),Ya(14,"small"),ws(15,"R$"),Ka(),ws(16),Ka(),Ya(17,"p",14),Ya(18,"span"),ws(19),Ka(),Ya(20,"span"),ws(21,"/m\xeas"),Ka(),Ka(),Ka(),Ya(22,"button",16),rs("click",(function(){_n(n);var t=cs(),e=t.$implicit,r=t.index;return cs().setOption(e,r)})),ws(23," COMPRAR AGORA "),Ka(),Ha(24,EC,2,0,"p",10),Ha(25,TC,2,0,"p",10),Ka(),Ka()}if(2&t){var r=cs().$implicit,i=cs();$a("ngClass",Vc(10,kC,r.isHighLighted)),ji(3),Os("At\xe9 ",r.totalInternet,"GB"),ji(4),$a("ngForOf",r.appList),ji(1),$a("ngIf",r.additionalInformation),ji(2),$a("ngForOf",r.appList),ji(6),Os("",r.valueDebit.split(",")[0]," "),ji(3),Os(",",r.valueDebit.split(",")[1],""),ji(3),$a("disabled",i.chatItem.finishedStep),ji(2),$a("ngIf",r.fidelizado),ji(1),$a("ngIf",!r.fidelizado)}}function NC(t,e){if(1&t&&(Ya(0,"div",2),Ha(1,OC,29,12,"div",3),Ha(2,AC,26,12,"div",3),Ka()),2&t){var n=e.$implicit;ji(1),$a("ngIf","controle"==n.type),ji(1),$a("ngIf","pos"==n.type)}}var DC=function(){function t(t){this.resolution=new Uc,this.hasBtnClicked=!1,this.timService=t}return t.prototype.ngOnInit=function(){var t=this;this.chatItem.order.plans.forEach((function(e,n){if(e.isHighLighted&&0!==n){var r=t.chatItem.order.plans[0];t.chatItem.order.plans[0]=e,t.chatItem.order.plans[n]=r}}))},Object.defineProperty(t.prototype,"_isClicked",{get:function(){return!(!this.hasBtnClicked&&!this.chatItem.finishedStep)},enumerable:!1,configurable:!0}),t.prototype.setOption=function(t,e){this._isClicked||(this.hasBtnClicked=!0,this.chatItem.finishedStep=!0,this.selectedOption=t,this.resolution.emit({plan:t,index:e}))},t.\u0275fac=function(e){return new(e||t)(Wa(yv))},t.\u0275cmp=Ee({type:t,selectors:[["app-tim-plan-selection"]],inputs:{chatItem:"chatItem"},outputs:{resolution:"resolution"},decls:2,vars:3,consts:[[3,"colorVariant","isNewNode"],["class","options",4,"ngFor","ngForOf"],[1,"options"],["class","option",3,"ngClass",4,"ngIf"],[1,"option",3,"ngClass"],[1,"left"],[1,"size","CustomFontHeavy"],[1,"bold-obs","CustomFontBold"],[1,"apps"],[4,"ngFor","ngForOf"],["class","obs CustomFontLight",4,"ngIf"],[1,"right"],[1,"price"],[1,"CustomFontHeavy"],[1,"CustomFont"],[1,"price-from-txt"],[1,"CustomFontBold",3,"disabled","click"],[3,"src","alt",4,"ngIf"],[3,"src","alt"],[1,"obs","CustomFontLight"]],template:function(t,e){1&t&&(Ya(0,"app-chat-bubble",0),Ha(1,NC,3,2,"div",1),Ka()),2&t&&($a("colorVariant",e.chatItem.colorVariant)("isNewNode",e.chatItem.isNewNode),ji(1),$a("ngForOf",e.chatItem.order.plans))},directives:[vb,Yl,Jl,$l],styles:["p.text[_ngcontent-%COMP%]{font-size:14px;line-height:1.43;margin:0}p.text.bigger[_ngcontent-%COMP%]{font-size:16px;font-weight:700;margin-top:15px}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%]{display:grid;grid-template-columns:50% 50%;border-radius:4px;box-shadow:0 0 6px 0 var(--tim-plan-selection-option-shadow-color);padding:10px;margin-bottom:8px}div.options[_ngcontent-%COMP%] div.option.selected[_ngcontent-%COMP%]{background:var(--tim-plan-selection-option-selected-bg-color);color:var(--tim-plan-selection-option-selected-txt-color)}div.options[_ngcontent-%COMP%] div.option.selected[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] p.size[_ngcontent-%COMP%], div.options[_ngcontent-%COMP%] div.option.selected[_ngcontent-%COMP%] p.bold-obs[_ngcontent-%COMP%]{color:#fff}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{display:flex;flex-direction:column}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] p.size[_ngcontent-%COMP%]{font-size:34px;margin:0;color:var(--bg-highlight-color)}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] p.size[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:26px;padding-left:1px}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] div.apps[_ngcontent-%COMP%]{padding-left:0!important;margin-top:5px;margin-right:10px;display:flex}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] div.apps[_ngcontent-%COMP%] img[_ngcontent-%COMP%], div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] div.apps[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:20px;height:20px;margin-right:5px}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-align:center;padding-left:7px}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] div.price[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] div.price[_ngcontent-%COMP%] .black-friday[_ngcontent-%COMP%]{display:grid;width:16%;margin:0 26% 20% 0;position:absolute}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] div.price[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] div.price[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:first-child{font-size:34px}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] div.price[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:first-child small[_ngcontent-%COMP%]{font-size:12px;padding-right:4px}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] div.price[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-child{font-size:12px;display:flex;flex-direction:column}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] div.price[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-child span[_ngcontent-%COMP%]:first-child{font-size:12px;position:relative;top:3px;right:5px}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] div.price[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-child span[_ngcontent-%COMP%]:last-child{font-size:12px}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:8px;font-size:12px;background:var(--main-btn-color);color:var(--text-color);border:2px solid var(--main-btn-color);text-transform:uppercase;margin-top:8px;margin-bottom:2px}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:enabled:hover{background-color:var(--select-btn-color);border-color:var(--select-btn-color)}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.5}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] p.bold-obs[_ngcontent-%COMP%]{font-size:12px;margin-top:5px;margin-bottom:0;color:var(--bg-highlight-color)}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] p.obs[_ngcontent-%COMP%]{font-size:10px;margin-top:5px;margin-bottom:0}"]}),t}();function VC(t,e){if(1&t&&(Qa(0),Ja(1,"img",8),Xa()),2&t){var n=e.$implicit,r=cs(2);ji(1),$a("src",r.timService.getImage(n.nome),mi)("alt",n.descricao)}}function LC(t,e){if(1&t&&(Qa(0),Ja(1,"img",8),Xa()),2&t){var n=e.$implicit,r=cs(3);ji(1),$a("src",r.timService.getImage(n.nome),mi)("alt",n.descricao)}}function RC(t,e){if(1&t&&(Ya(0,"p"),ws(1),Ka()),2&t){var n=cs(3);ji(1),Os(" ",n.chatItem.order.plan.additionalInformation," ")}}function FC(t,e){if(1&t&&(Ya(0,"div",9),Ha(1,LC,2,2,"ng-container",6),Ha(2,RC,2,1,"p",10),Ka()),2&t){var n=cs(2);ji(1),$a("ngForOf",n.trialApps),ji(1),$a("ngIf",n.chatItem.order.plan.additionalInformation)}}function jC(t,e){if(1&t&&(Ya(0,"div",3),Ya(1,"p",4),ws(2),Ka(),Ya(3,"p"),ws(4),Ka(),Ya(5,"p"),Ya(6,"span"),ws(7,"Apps Inclusos"),Ka(),Ka(),Ya(8,"div",5),Ha(9,VC,2,2,"ng-container",6),Ka(),Ha(10,FC,3,2,"div",7),Ya(11,"p"),Ya(12,"span"),ws(13,"LIGA\xc7\xd5ES ILIMITADAS"),Ka(),Ja(14,"br"),ws(15," pra qualquer operadora do Brasil "),Ka(),Ka()),2&t){var n=cs();ji(2),Os("At\xe9 ",n.chatItem.order.plan.totalInternet,"GB"),ji(2),ks(n.planBandWidthPhrase),ji(5),$a("ngForOf",n.unlimitedApps),ji(1),$a("ngIf",n.trialApps.length>0)}}function zC(t,e){if(1&t&&(Qa(0),Ja(1,"img",8),Xa()),2&t){var n=e.$implicit,r=cs(2);ji(1),$a("src",r.timService.getImage(n.nome),mi)("alt",n.descricao)}}function BC(t,e){if(1&t&&(Qa(0),Ja(1,"img",8),Xa()),2&t){var n=e.$implicit,r=cs(3);ji(1),$a("src",r.timService.getImage(n.nome),mi)("alt",n.descricao)}}function UC(t,e){if(1&t&&(Ya(0,"p"),ws(1),Ka()),2&t){var n=cs(3);ji(1),Os(" ",n.chatItem.order.plan.additionalInformation," ")}}function GC(t,e){if(1&t&&(Ya(0,"div",9),Ha(1,BC,2,2,"ng-container",6),Ha(2,UC,2,1,"p",10),Ka()),2&t){var n=cs(2);ji(1),$a("ngForOf",n.trialApps),ji(1),$a("ngIf",n.chatItem.order.plan.additionalInformation)}}function HC(t,e){if(1&t&&(Ya(0,"div",3),Ya(1,"p",4),ws(2),Ka(),Ya(3,"p"),ws(4),Ka(),Ya(5,"p"),Ya(6,"span"),ws(7,"Apps Inclusos"),Ka(),Ka(),Ya(8,"div",5),Ha(9,zC,2,2,"ng-container",6),Ka(),Ha(10,GC,3,2,"div",7),Ya(11,"p"),Ya(12,"span"),ws(13,"LIGA\xc7\xd5ES ILIMITADAS"),Ka(),Ja(14,"br"),ws(15," pra qualquer operadora do Brasil "),Ka(),Ka()),2&t){var n=cs();ji(2),Os("At\xe9 ",n.chatItem.order.plan.totalInternet,"GB"),ji(2),ks(n.planBandWidthPhrasePos),ji(5),$a("ngForOf",n.unlimitedApps),ji(1),$a("ngIf",n.trialApps.length>0)}}function qC(t,e){1&t&&(Ya(0,"p",15),ws(1," Perman\xeancia m\xednima de 12 meses "),Ka())}function WC(t,e){1&t&&(Ya(0,"p",15),ws(1," Sem fideliza\xe7\xe3o "),Ka())}function $C(t,e){if(1&t&&(Ya(0,"div",11),Ya(1,"div",12),Ya(2,"p"),Ya(3,"small"),ws(4,"R$"),Ka(),ws(5),Ka(),Ya(6,"p"),Ya(7,"span"),ws(8),Ka(),Ya(9,"span"),ws(10,"/m\xeas"),Ka(),Ka(),Ka(),Ha(11,qC,2,0,"p",13),Ha(12,WC,2,0,"p",13),Ja(13,"hr"),Ya(14,"p",14),ws(15," Mais Benef\xedcios "),Ka(),Ya(16,"p",15),ws(17),Ka(),Ka()),2&t){var n=cs();ji(5),Os(" ",n.chatItem.order.plan.valueDebit.split(",")[0]," "),ji(3),Os(",",n.chatItem.order.plan.valueDebit.split(",")[1],""),ji(3),$a("ngIf",n.chatItem.order.plan.fidelizado),ji(1),$a("ngIf",!n.chatItem.order.plan.fidelizado),ji(5),Os(" ",n.chatItem.order.plan.benefits," ")}}function ZC(t,e){1&t&&(Ya(0,"p",15),ws(1," Perman\xeancia m\xednima de 12 meses "),Ka())}function YC(t,e){1&t&&(Ya(0,"p",15),ws(1," Sem fideliza\xe7\xe3o "),Ka())}function KC(t,e){if(1&t&&(Ya(0,"span"),ws(1),Ka()),2&t){var n=cs(2);ji(1),Os(" At\xe9 ",n.chatItem.order.plan.bonusRoamingInternacional," de Roaming Internacional nas Am\xe9ricas, ")}}function JC(t,e){if(1&t&&(Ya(0,"div",11),Ya(1,"div",12),Ya(2,"p"),Ya(3,"small"),ws(4,"R$"),Ka(),ws(5),Ka(),Ya(6,"p"),Ya(7,"span"),ws(8),Ka(),Ya(9,"span"),ws(10,"/m\xeas"),Ka(),Ka(),Ka(),Ha(11,ZC,2,0,"p",13),Ha(12,YC,2,0,"p",13),Ja(13,"hr"),Ya(14,"p",14),ws(15," Mais Benef\xedcios "),Ka(),Ya(16,"p",15),Ha(17,KC,2,1,"span",10),ws(18),Ka(),Ya(19,"span",16),ws(20,"Assinaturas inclusas:"),Ja(21,"br"),Ja(22,"img",17),Ja(23,"img",18),Ja(24,"img",19),Ka(),Ka()),2&t){var n=cs();ji(5),Os(" ",n.chatItem.order.plan.valueDebit.split(",")[0]," "),ji(3),Os(",",n.chatItem.order.plan.valueDebit.split(",")[1],""),ji(3),$a("ngIf",n.chatItem.order.plan.fidelizado),ji(1),$a("ngIf",!n.chatItem.order.plan.fidelizado),ji(5),$a("ngIf",n.chatItem.order.plan.bonusRoamingInternacional),ji(1),Os(" ",n.chatItem.order.plan.benefits," "),ji(4),$a("src",n.timService.getImage("music"),mi),ji(1),$a("src",n.timService.getImage("news"),mi),ji(1),$a("src",n.timService.getImage("shield"),mi)}}var QC=function(){function t(t){this.timService=t}return Object.defineProperty(t.prototype,"planBandWidthPhrase",{get:function(){var t="";return this.chatItem.order.plan.bandwidth&&"0GB"!=this.chatItem.order.plan.bandwidth&&"0"!=this.chatItem.order.plan.bandwidth&&(t=this.chatItem.order.plan.bandwidth+"GB"),this.chatItem.order.plan.bonusInternetOutro&&"0GB"!=this.chatItem.order.plan.bonusInternetOutro&&"0"!=this.chatItem.order.plan.bonusInternetOutro&&(t+=" + "+this.chatItem.order.plan.bonusInternetOutro+"GB de b\xf4nus"),this.chatItem.order.plan.bonusInternetPortabilidade&&"0GB"!=this.chatItem.order.plan.bonusInternetPortabilidade&&"0"!=this.chatItem.order.plan.bonusInternetPortabilidade&&(t+=" + "+this.chatItem.order.plan.bonusInternetPortabilidade+"GB de b\xf4nus na Portabilidade"),this.chatItem.order.plan.bonusInternetC6Bank&&"0GB"!=this.chatItem.order.plan.bonusInternetC6Bank&&"0"!=this.chatItem.order.plan.bonusInternetC6Bank&&(t+=" + "+this.chatItem.order.plan.bonusInternetC6Bank+"GB de b\xf4nus C6 Bank"),this.chatItem.order.plan.bonusInternetFaturaDigital&&"0GB"!=this.chatItem.order.plan.bonusInternetFaturaDigital&&"0"!=this.chatItem.order.plan.bonusInternetFaturaDigital&&(t+=" + "+this.chatItem.order.plan.bonusInternetFaturaDigital+"MB de b\xf4nus na fatura digital"),null!=this.chatItem.order.plan.bonusInternetDebitoAutomatico&&"0GB"!=this.chatItem.order.plan.bonusInternetDebitoAutomatico&&"0"!=this.chatItem.order.plan.bonusInternetDebitoAutomatico&&(t+=" + "+this.chatItem.order.plan.bonusInternetDebitoAutomatico+"GB de b\xf4nus no d\xe9bito autom\xe1tico"),this.chatItem.order.plan.name=this.timService.getPlanName(this.chatItem.order),t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"planBandWidthPhrasePos",{get:function(){var t="";return this.chatItem.order.plan.bandwidth&&"0GB"!=this.chatItem.order.plan.bandwidth&&"0"!=this.chatItem.order.plan.bandwidth&&(t=this.chatItem.order.plan.bandwidth+"GB"),this.chatItem.order.plan.bonusInternetOutro&&"0GB"!=this.chatItem.order.plan.bonusInternetOutro&&"0"!=this.chatItem.order.plan.bonusInternetOutro&&(t+=" + "+this.chatItem.order.plan.bonusInternetOutro+"GB de b\xf4nus"),this.chatItem.order.plan.bonusInternetC6Bank&&"0GB"!=this.chatItem.order.plan.bonusInternetC6Bank&&"0"!=this.chatItem.order.plan.bonusInternetC6Bank&&(t+=" + "+this.chatItem.order.plan.bonusInternetC6Bank+"GB de b\xf4nus C6 Bank"),this.chatItem.order.plan.bonusInternetPortabilidade&&"0GB"!=this.chatItem.order.plan.bonusInternetPortabilidade&&"0"!=this.chatItem.order.plan.bonusInternetPortabilidade&&(t+=" + "+this.chatItem.order.plan.bonusInternetPortabilidade+"GB de b\xf4nus na Portabilidade"),this.chatItem.order.plan.bonusInternetFaturaDigital&&"0GB"!=this.chatItem.order.plan.bonusInternetFaturaDigital&&"0"!=this.chatItem.order.plan.bonusInternetFaturaDigital&&(t+=" + "+this.chatItem.order.plan.bonusInternetFaturaDigital+"MB de b\xf4nus na fatura digital"),this.chatItem.order.plan.bonusInternetDebitoAutomatico&&"0GB"!=this.chatItem.order.plan.bonusInternetDebitoAutomatico&&"0"!=this.chatItem.order.plan.bonusInternetDebitoAutomatico&&(t+=" + "+this.chatItem.order.plan.bonusInternetDebitoAutomatico+"GB de b\xf4nus no d\xe9bito autom\xe1tico"),this.chatItem.order.plan.bonusGBInternetAcumulada&&(t+=" + GB de internet acumulada"),this.chatItem.order.plan.name=this.timService.getPlanName(this.chatItem.order),t},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this.unlimitedApps=[],this.trialApps=[];for(var t=0;t0}catch(n){return console.error(n),null}},t.prototype.comparePlanTotalBandwith=function(t,e){return Number.parseFloat(t.bandwidth.replace(",","."))-Number.parseFloat(e.bandwidth.replace(",","."))},t.prototype.setOption=function(t){this.canClick&&(this.selectedOption=t,this.resolution.emit({plan:t}),this.canClick=!1,this.planosFidelizado?document.getElementById("App").setAttribute("class","annual"):document.getElementById("App").setAttribute("class","monthly"))},t.prototype.adjustPlanTotalBandwith=function(t){try{if(!t.sva&&!t.bonusInternetOutro)return t.totalInternet;var e=!1,n=!1,r=!1,i=this.getSvaFranchise(t.sva,t.skusServico),o=Number.parseInt(t.bandwidth.split("GB")[0].replace(",",".").replace(".",""));-1===t.bandwidth.split("GB")[0].indexOf(".")&&-1===t.bandwidth.split("GB")[0].indexOf(",")||(e=!0);var a=0;t.bonusInternetOutro&&(a=Number.parseInt(t.bonusInternetOutro.split("GB")[0].replace(",",".").replace(".","")),-1===t.bonusInternetOutro.split("GB")[0].indexOf(".")&&-1===t.bonusInternetOutro.split("GB")[0].indexOf(".")||(n=!0));var s=Number.parseInt(i.split("GB")[0].replace(",",".").replace(".",""));-1===i.indexOf(".")&&-1===i.indexOf(",")||(r=!0),e&&!r&&(s*=10),r&&!e&&(o*=10);var c=void 0;return c=r||e?(o+30+s)/10:o+s+3,(c+=n?10*a:a)+"GB"}catch(u){return console.error(u),null}},t.prototype.generateDetailedBonusHtml=function(t){try{var e="";return e+=t.bandwidth.replace(".",",")+" + 3GB de b\xf4nus"+(t.bonusInternetOutro?"\xb2":"\xb9"),t.bonusInternetFaturaDigital&&(e+=" + "+t.bonusInternetFaturaDigital+" de b\xf4nus mensais por fatura digital"),t.bonusInternetOutro&&(e+=" + "+t.bonusInternetOutro+"\xb9"),t.sva&&(e+=" + "+this.getSvaFranchise(t.sva,t.skusServico)+" para suas redes sociais."),e.toUpperCase()}catch(n){return console.error(n),null}},t.prototype.generateBonusHtml=function(t){var e="";return t.bonusInternetBlackFriday&&(e+="
+"+t.bonusInternetBlackFriday+" de b\xf4nus mensais pela Black Friday"),t.bonusInternetDebitoAutomatico&&(e+="
+"+t.bonusInternetDebitoAutomatico+" de b\xf4nus mensais para d\xe9bito autom\xe1tico"),t.bonusInternetPortabilidade&&(e+="
+"+t.bonusInternetPortabilidade+" de b\xf4nus mensais para portabilidade"+(t.bonusInternetOutro?"\xb3":"\xb2")),t.bonusPrimeiroMes&&(e+="
+"+t.bonusPrimeiroMes+" de b\xf4nus no primeiro m\xeas"),e},t.prototype.getSvaFranchise=function(t,e){for(var n,r=0;r0},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ee({type:t,selectors:[["app-vivo-plan-selection"]],inputs:{chatItem:"chatItem"},outputs:{resolution:"resolution"},decls:8,vars:6,consts:[[3,"colorVariant","isNewNode"],[1,"planTypeSelection"],["class","annual",3,"disabled","click",4,"ngIf"],["class","monthly",3,"disabled","click",4,"ngIf"],[4,"ngIf"],[1,"annual",3,"disabled","click"],[1,"monthly",3,"disabled","click"],["class","options",4,"ngFor","ngForOf"],[1,"options"],["class","option a",4,"ngIf"],[1,"option","a"],[1,"upper"],[1,"size","CustomFont"],[1,"planDetailedBonus",3,"innerHTML"],[1,"planBonus",3,"innerHTML"],[1,"apps"],[1,"CustomFont"],["src","../../../assets/vivo/images/icon-whatsapp.webp"],["src","../../../assets/vivo/images/icon-waze.webp"],["src","../../../assets/vivo/images/icon-moovit.webp"],[1,"left"],[1,"price","CustomFont"],[1,"RegularFont"],[1,"12"],[1,"right"],[3,"disabled","click"],["class","option m",4,"ngIf"],[1,"option","m"]],template:function(t,e){1&t&&(Ya(0,"app-chat-bubble",0),Ya(1,"div",1),ws(2," Escolha o tipo de plano:"),Ja(3,"br"),Ha(4,Uw,2,1,"button",2),Ha(5,Gw,2,1,"button",3),Ka(),Ha(6,Ww,2,1,"div",4),Ha(7,Yw,2,1,"div",4),Ka()),2&t&&($a("colorVariant",e.chatItem.colorVariant)("isNewNode",e.chatItem.isNewNode),ji(4),$a("ngIf",e.fidelizados.length>0),ji(1),$a("ngIf",e.mensais.length>0),ji(1),$a("ngIf",e.planosFidelizado),ji(1),$a("ngIf",!e.planosFidelizado))},directives:[vb,Jl,Yl],styles:['p.text[_ngcontent-%COMP%]{font-size:14px;line-height:1.43;margin:0}p.text.bigger[_ngcontent-%COMP%]{font-size:16px;font-weight:700;margin-top:15px}div.planTypeSelection[_ngcontent-%COMP%]{width:100%;min-width:135px}div.planTypeSelection[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border-radius:var(--btn-radius-size);color:var(--vivo-plan-selection-option-txt-color);margin:10px 3%;max-width:44%;padding:4px 10px 4px 8px;font-weight:600;font-size:16px;letter-spacing:.5px}div.planTypeSelection[_ngcontent-%COMP%] button.annual.selected[_ngcontent-%COMP%], div.planTypeSelection[_ngcontent-%COMP%] button.annual[_ngcontent-%COMP%]:hover, div.planTypeSelection[_ngcontent-%COMP%] button.monthly.selected[_ngcontent-%COMP%], div.planTypeSelection[_ngcontent-%COMP%] button.monthly[_ngcontent-%COMP%]:hover, div.planTypeSelection[_ngcontent-%COMP%] button.selected[_ngcontent-%COMP%], div.planTypeSelection[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:var(--select-btn-color);border-color:var(--vivo-plan-selection-option-txt-color)}div.planTypeSelection[_ngcontent-%COMP%] button.annual[_ngcontent-%COMP%]{background:var(--vivo-plan-selection-option-bg-color-annually);border:2px solid var(--vivo-plan-selection-option-bg-color-annually)}div.planTypeSelection[_ngcontent-%COMP%] button.monthly[_ngcontent-%COMP%]{background:var(--vivo-plan-selection-option-bg-color-monthly);border:2px solid var(--vivo-plan-selection-option-bg-color-monthly)}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%]{background:var(--vivo-plan-selection-option-bg-color);color:var(--vivo-plan-selection-option-txt-color);display:grid;grid-template-columns:50% 50%;border-radius:4px;margin-bottom:8px}div.options[_ngcontent-%COMP%] div.option.m[_ngcontent-%COMP%]{background:var(--vivo-plan-selection-option-bg-color-monthly)}div.options[_ngcontent-%COMP%] div.option.a[_ngcontent-%COMP%]{background:var(--vivo-plan-selection-option-bg-color-annually)}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.upper[_ngcontent-%COMP%]{padding:10px;display:grid;grid-column-start:1;grid-column-end:3}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.upper[_ngcontent-%COMP%] .planBonus[_ngcontent-%COMP%]{color:var(--vivo-plan-btn-bg-color);font-size:small;font-weight:700;margin-top:0;margin-bottom:10px}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.upper[_ngcontent-%COMP%] .planDetailedBonus[_ngcontent-%COMP%]{color:var(--vivo-plan-selection-option-txt-color);font-size:small;font-weight:bolder;margin-top:10px;margin-bottom:0;max-width:256px}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] p.size[_ngcontent-%COMP%]{font-size:30px;margin:0;font-weight:600;font-family:Barlow;letter-spacing:.5px}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{border-radius:4px 0 0 4px}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] span.plus[_ngcontent-%COMP%]{font-size:26px;font-weight:600}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.apps[_ngcontent-%COMP%]{display:grid;grid-template-columns:50% 25px 25px 25px 25px;grid-gap:5px;font-weight:600;letter-spacing:.5px}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.apps[_ngcontent-%COMP%] img[_ngcontent-%COMP%], div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.apps[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:24px;height:24px}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.apps[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:12px}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{border-radius:0 4px 4px 0;display:flex;flex-direction:column;text-align:center;padding:10px;margin:0;border-left:none}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] div.price[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto auto;grid-template-areas:"valor1 valor2" "valor3 valor3"}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] div.price[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] div.price[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:first-child{font-size:34px;line-height:30px;grid-area:valor1;font-weight:600;text-align:right;display:flex;flex-direction:row;align-items:center;justify-content:flex-end;margin-right:4px;margin-top:-4px}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] div.price[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:first-child span[_ngcontent-%COMP%]{font-size:12px;padding-right:5px}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] div.price[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:nth-child(2){font-size:12px;display:flex;flex-direction:column;grid-area:valor2;text-align:left;line-height:10px}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] div.price[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:nth-child(2) span[_ngcontent-%COMP%]:first-child{font-size:14px;position:relative;top:-2px}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] div.price[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:nth-child(2) span[_ngcontent-%COMP%]:last-child{font-size:10px;position:relative;top:2px;font-family:"OfficinaSerif-Book"}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] div.price[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:nth-child(3){grid-area:valor3;font-size:11px;font-weight:100;margin-top:5px;font-family:"OfficinaSerif-Book"}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding-bottom:10px}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%;max-width:105px;padding:4px 8px 6px;font-weight:600;font-family:Barlow;font-size:15px;letter-spacing:.5px;background:var(--vivo-plan-btn-bg-color);color:var(--text-color);border:2px solid var(--vivo-plan-btn-bg-color);margin-top:8px;margin-bottom:2px;border-radius:none;align-self:center}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] button.selected[_ngcontent-%COMP%], div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:var(--select-btn-color);border-color:var(--select-btn-color)}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] button.disabled[_ngcontent-%COMP%]{opacity:.5}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] p.obs[_ngcontent-%COMP%]{font-size:15px;margin:0}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] p.obs[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-family:Arial}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] p.bottom-obs[_ngcontent-%COMP%]{font-size:12px;margin:10px 0 0}div.options[_ngcontent-%COMP%] div.option[_ngcontent-%COMP%] p.right-obs[_ngcontent-%COMP%]{font-size:12px;margin:0;text-align:left}']}),t}();function Jw(t,e){if(1&t){var n=ts();Ya(0,"div",4),Ya(1,"div",5),Ya(2,"p",6),ws(3),Ka(),Ya(4,"div",7),Ja(5,"img",8),Ja(6,"img",9),Ja(7,"img",10),Ja(8,"img",11),Ja(9,"img",12),Ja(10,"img",13),Ka(),Ka(),Ya(11,"div",14),Ya(12,"button",15),rs("click",(function(){return _n(n),cs().setSVA(!0)})),ws(13," Oba, quero! "),Ka(),Ya(14,"button",16),rs("click",(function(){return _n(n),cs().setSVA(!1)})),ws(15," N\xe3o quero "),Ka(),Ka(),Ka()}if(2&t){var r=cs();ji(3),Ps(" Manter ",r.mySva.nome," por apenas R$ ",r.mySva.valor,"? "),ji(9),$a("disabled",r.chatItem.finishedStep),ji(2),$a("disabled",r.chatItem.finishedStep)}}function Qw(t,e){1&t&&(Ya(0,"div",17),Ya(1,"p"),ws(2,"Configura\xe7\xe3o incorreta do SVA, pulando componente!"),Ka(),Ka())}var Xw=function(){function t(){this.canClick=!0,this.vivoSva=new Uc}return t.prototype.ngOnInit=function(){this.mySva=this.getSVAData(this.chatItem.order.plan.sva)},t.prototype.ngAfterViewInit=function(){this.mainDiv=document.getElementById("sva"),this.isLoyalPlan()?this.mainDiv.setAttribute("class","svaOption optionLoyal"):this.mainDiv.setAttribute("class","svaOption optionMonthly")},t.prototype.setSVA=function(t){this.canClick&&(this.vivoSva.emit(!!t&&this.mySva),this.canClick=!1)},t.prototype.getSVAData=function(t){for(var e=this.chatItem.order.plan,n={codigoSku:"Erro",nome:"error",valorComDesconto:"error",valor:"error"},r=0;r0},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this._initFormGroupConfig(),this._initResumptionConfig(this.chatItem)},t.prototype.handleValueChanged=function(t){t!=this.cepValue&&(this.cepValue=t,this._setZipCode(t)),this.hasInput||(this.hasInput=!0),this.isCepValid=this.formGroup.get("cep").valid},t.prototype.handleValueChangedNum=function(t){t!=this.numberValue&&(this.numberValue=t,this._setNumber(t))},t.prototype.validateForm=function(){!this.chatItem.finishedStep&&this.zipCodeIsCompleted&&this.formGroup.valid&&(this.chatItem.finishedStep=!0,this._submitForm(this.formGroup.get("cep").value,this.formGroup.get("num").value))},t.prototype._initFormGroupConfig=function(){this.formGroup=new Hp({cep:new Gp("",[ep.required,s_.validarCep]),num:new Gp("",[ep.required])})},t.prototype._initResumptionConfig=function(t){var e=t.order;e.userAddress&&e.userAddress.cep&&t.finishedStep&&(this.cepValue=e.userAddress.cep)},t.prototype._setZipCode=function(t){this.formGroup.get("cep").setValue(t),this.cepValue=t},t.prototype._setNumber=function(t){this.formGroup.get("num").setValue(t),this.numberValue=t},t.prototype._submitForm=function(t,e){this.checkAvailability.emit({cep:t,num:e})},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ee({type:t,selectors:[["app-tim-live-address"]],inputs:{chatItem:"chatItem"},outputs:{checkAvailability:"checkAvailability"},decls:7,vars:11,consts:[[3,"colorVariant","isNewNode"],[1,"text",3,"innerHtml"],["label","Digite seu CEP:","mask","00000-000",3,"inputValue","isTypeNumber","isDisabled","valueChanged"],["class","text invalid",4,"ngIf"],["label","N\xfamero:","mask","00000",3,"inputValue","isTypeNumber","isDisabled","valueChanged"],[1,"CustomFontBold",3,"disabled","click"],[1,"text","invalid"]],template:function(t,e){1&t&&(Ya(0,"app-chat-bubble",0),Ja(1,"p",1),Ya(2,"app-custom-input",2),rs("valueChanged",(function(t){return e.handleValueChanged(t)})),Ka(),Ha(3,ik,2,0,"p",3),Ya(4,"app-custom-input",4),rs("valueChanged",(function(t){return e.handleValueChangedNum(t)})),Ka(),Ya(5,"button",5),rs("click",(function(){return e.validateForm()})),ws(6," Enviar "),Ka(),Ka()),2&t&&($a("colorVariant",e.chatItem.colorVariant)("isNewNode",e.chatItem.isNewNode),ji(1),$a("innerHtml",e.chatItem.content.htmlText,gi),ji(1),$a("inputValue",e.cepValue)("isTypeNumber",!0)("isDisabled",e.chatItem.finishedStep),ji(1),$a("ngIf",!e.zipCodeIsCompleted&&(!e.isCepValid||e.chatItem.cepError)&&e.hasInput),ji(1),$a("inputValue",e.numberValue)("isTypeNumber",!0)("isDisabled",e.chatItem.finishedStep),ji(1),$a("disabled",e.chatItem.finishedStep))},directives:[vb,d_,Af,Jl],styles:['p[class=text][_ngcontent-%COMP%]{font-size:14px;line-height:1.43;margin:0}p[class="text invalid"][_ngcontent-%COMP%]{color:var(--cep-form-txt-invalid-color);margin-top:10px;font-weight:700}button[_ngcontent-%COMP%]{padding:8px;font-size:12px;background:var(--main-btn-color);color:var(--text-color);border:2px solid var(--main-btn-color);text-transform:uppercase;margin-top:8px;margin-bottom:2px;border-radius:8px}button[_ngcontent-%COMP%]:enabled:hover{background-color:var(--select-btn-color);border-color:var(--select-btn-color)}button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.5}']}),t}();function ak(t,e){if(1&t){var n=ts();Ya(0,"tr"),Ya(1,"td",4),Ya(2,"strong"),ws(3,"TIM LIVE"),Ka(),ws(4),Ya(5,"span",5),ws(6,"+Conte\xfado Online"),Ka(),Ka(),Ya(7,"td",6),ws(8," R$ "),Ya(9,"span",7),ws(10),Ka(),Ya(11,"span",8),ws(12),Ka(),Ya(13,"span",9),ws(14,"/M\xcaS"),Ka(),Ka(),Ya(15,"td",10),Ya(16,"button",11),rs("click",(function(){_n(n);var t=e.$implicit;return cs(2).setOption(t)})),ws(17," ASSINE J\xc1 "),Ka(),Ka(),Ka()}if(2&t){var r=e.$implicit,i=cs(2);ji(4),Os("\xa0",r.debit.details.name.full," "),ji(6),ks(i.getMainPlanValue(r,!0)),ji(2),Os(",",i.getDecimalPlanValue(r,!0),""),ji(4),$a("disabled",i.chatItem.finishedStep)}}function sk(t,e){if(1&t&&(Ya(0,"table",2),Ha(1,ak,18,4,"tr",3),Ka()),2&t){var n=cs();ji(1),$a("ngForOf",n.fiberPlans)}}function ck(t,e){if(1&t){var n=ts();Ya(0,"tr"),Ya(1,"td",4),Ya(2,"strong"),ws(3,"TIM LIVE"),Ka(),ws(4),Ya(5,"span",5),ws(6,"+Conte\xfado Online"),Ka(),Ka(),Ya(7,"td",6),ws(8," R$ "),Ya(9,"span",7),ws(10),Ka(),Ya(11,"span",8),ws(12),Ka(),Ya(13,"span",9),ws(14,"/M\xcaS"),Ka(),Ka(),Ya(15,"td",10),Ya(16,"button",11),rs("click",(function(){_n(n);var t=e.$implicit;return cs(2).setOption(t)})),ws(17," ASSINE J\xc1 "),Ka(),Ka(),Ka()}if(2&t){var r=e.$implicit,i=cs(2);ji(4),Os("\xa0",r.debit.details.name.full," "),ji(6),ks(i.getMainPlanValue(r,!0)),ji(2),Os(",",i.getDecimalPlanValue(r,!0),""),ji(4),$a("disabled",i.chatItem.finishedStep)}}function uk(t,e){if(1&t&&(Ya(0,"table",2),Ha(1,ck,18,4,"tr",3),Ka()),2&t){var n=cs();ji(1),$a("ngForOf",n.ironPlans)}}var lk=function(){function t(){this.selection=new Uc}return t.prototype.ngOnInit=function(){this.fiberPlans=[],this.ironPlans=[],this.wttxPlans=[],this.unknownPlans=[];var t=this.chatItem.timLiveOrder.plans;if(!(t.length<1))for(var e=0;e0,this.hasPromotions&&(this.curPromotions=this.curPlan.debit.details.promotions),this.curPlan.debit.details.channels.length>0&&(this.planServiceIcons=this.curPlan.debit.details.channels)},t.prototype.getFullPlanPrice=function(){var t="",e=this.curPlan.debit.originalValue.toString();return t+=e.split(".")[0],null==e.split(".")[1]||null==e.split(".")[1]?t+=",00":1==e.split(".")[1].length&&(t+=","+e.split(".")[1]+"0"),t},Object.defineProperty(t.prototype,"getActivationCost",{get:function(){return this.chatItem.timLiveOrder.type==Uf.wttx?": valor desconhecido":this.curPlan.debit.details.setup.trim().replace("de","x")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"getPlanValue",{get:function(){return this.curPlan.debit.value.toString().split(".")[0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"getDecimalPlanValue",{get:function(){var t="",e=this.curPlan.debit.value.toString().split(".")[1];return null==e||null==e?t="00":(1==(t+=e).length&&(t+="0"),t)},enumerable:!1,configurable:!0}),t.prototype.getAdjustedBandwidthValue=function(t){return t>=1e3?t/1e3:t},Object.defineProperty(t.prototype,"getBandwidthText",{get:function(){return this.curPlan.debit.details.franchise.download>=1e3?"giga":"mega"},enumerable:!1,configurable:!0}),t.prototype.getIconAltText=function(t){return t.name+" - "+t.description},t.prototype.getImageSrc=function(t){var e=t.name||"";return e.includes(" ")&&(e=e.replace(" ","-")),this.timService.getImage(e)},t.prototype.getPromotionText=function(t){return"* "+t.name+" de +"+t.franchise+"Mega v\xe1lido por "+t.validity+" pagando no d\xe9bito autom\xe1tico"},t.prototype.generatePlanTitle=function(){var t="TIM Live";return this.chatItem.timLiveOrder.type==Uf.wttx&&(t+=" R\xe1dio"),t+" "+this.chatItem.timLiveOrder.selectedPlan.debit.details.name.full},t.prototype.setOption=function(t){this.confirmation.emit(t)},t.prototype.confirmSelection=function(t){if(!this.chatItem.finishedStep){if(this.chatItem.finishedStep=!0,!t)return void this.confirmation.emit(!1);this.setOption(this.curPlan)}},t.\u0275fac=function(e){return new(e||t)(Wa(yv))},t.\u0275cmp=Ee({type:t,selectors:[["app-tim-live-plan-description"]],inputs:{chatItem:"chatItem"},outputs:{confirmation:"confirmation"},decls:37,vars:14,consts:[[3,"colorVariant","isNewNode"],[1,"bandwidth"],["class","degustacao",4,"ngIf"],[1,"mega"],[1,"upload"],[1,"content"],[4,"ngFor","ngForOf"],[1,"lower"],[1,"default-price"],[1,"flex-column"],[1,"CustomFontBold"],[1,"main-value"],[1,"upper-text"],[1,"month"],["class","activation",4,"ngIf"],["class","promotion",4,"ngFor","ngForOf"],[1,"confirm-selection"],[3,"disabled","click"],[1,"no",3,"disabled","click"],[1,"degustacao"],[3,"src","alt"],[1,"activation"],[1,"promotion"]],template:function(t,e){1&t&&(Ya(0,"app-chat-bubble",0),Ya(1,"section"),Ya(2,"h2"),Ya(3,"span",1),ws(4),Ka(),Ha(5,dk,4,2,"span",2),Ya(6,"span",3),ws(7),Ka(),Ka(),Ya(8,"p",4),ws(9),Ka(),Ya(10,"div",5),ws(11," conte\xfados online"),Ja(12,"br"),Ha(13,hk,2,2,"ng-container",6),Ka(),Ka(),Ya(14,"section",7),Ya(15,"span",8),ws(16),Ka(),Ya(17,"span",9),Ya(18,"p"),ws(19,"por"),Ka(),Ya(20,"p",10),ws(21,"R$"),Ka(),Ka(),Ya(22,"span",11),ws(23),Ka(),Ya(24,"span",9),Ya(25,"p",12),ws(26),Ka(),Ya(27,"p",13),ws(28,"/m\xeas"),Ka(),Ka(),Ha(29,pk,4,1,"p",14),Ha(30,fk,2,1,"div",15),Ka(),Ya(31,"footer",16),ws(32," Este plano lhe atende? "),Ya(33,"button",17),rs("click",(function(){return e.confirmSelection(!0)})),ws(34," SIM "),Ka(),Ya(35,"button",18),rs("click",(function(){return e.confirmSelection(!1)})),ws(36," N\xc3O "),Ka(),Ka(),Ka()),2&t&&($a("colorVariant",e.chatItem.colorVariant)("isNewNode",e.chatItem.isNewNode),ji(4),Os(" ",e.getAdjustedBandwidthValue(e.curPlan.debit.details.franchise.download)," "),ji(1),$a("ngIf",e.hasPromotions),ji(2),ks(e.getBandwidthText),ji(2),Os("",e.curPlan.debit.details.franchise.upload," mega de upload"),ji(4),$a("ngForOf",e.planServiceIcons),ji(3),Os("de R$ ",e.getFullPlanPrice(),""),ji(7),Os("",e.getPlanValue," "),ji(3),Os(",",e.getDecimalPlanValue,""),ji(3),$a("ngIf",e.curPlan.debit.details.setup),ji(1),$a("ngForOf",e.curPromotions),ji(3),$a("disabled",e.chatItem.finishedStep),ji(2),$a("disabled",e.chatItem.finishedStep))},directives:[vb,Jl,Yl],styles:["section[_ngcontent-%COMP%]{text-align:center;font-family:Tim-Regular;color:grey}@media only screen and (max-width:556px){section[_ngcontent-%COMP%]{max-width:95%}}@media only screen and (min-height:768px){section[_ngcontent-%COMP%]{min-width:317px}}section.lower[_ngcontent-%COMP%]{background-color:#f1f1f1;color:#4a4a4a}section.lower[_ngcontent-%COMP%] .promotion[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:5px;padding-bottom:5px;font-family:Tim-Regular}section[_ngcontent-%COMP%] .bandwidth[_ngcontent-%COMP%]{font-size:50px}section[_ngcontent-%COMP%] .bandwidth[_ngcontent-%COMP%], section[_ngcontent-%COMP%] .degustacao[_ngcontent-%COMP%]{font-family:Tim-Heavy;color:#d9017a;display:block}section[_ngcontent-%COMP%] .degustacao[_ngcontent-%COMP%]{font-size:20px;position:relative;left:110px;bottom:50px}section[_ngcontent-%COMP%] .mega[_ngcontent-%COMP%]{text-transform:uppercase;color:#d9017a;font-size:16px;font-family:Tim-Heavy}section[_ngcontent-%COMP%] .upload[_ngcontent-%COMP%]{color:#d9017a;text-transform:lowercase;font-size:13px;margin:5px}section[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{color:#4a4a4a;font-size:20px;font-family:Tim-Regular;margin-bottom:15px;text-transform:uppercase}section[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:85px;height:auto;margin-right:10px;margin-top:10px}section[_ngcontent-%COMP%] .default-price[_ngcontent-%COMP%]{text-decoration:line-through;color:#d9017a;display:block}section[_ngcontent-%COMP%] .flex-column[_ngcontent-%COMP%]{display:inline-flex;flex-flow:column;min-height:.8em;margin-right:.1em;vertical-align:text-bottom}section[_ngcontent-%COMP%] .main-value[_ngcontent-%COMP%]{font-size:45px;font-family:Tim-Heavy;display:inline-block}section[_ngcontent-%COMP%] .upper-text[_ngcontent-%COMP%]{font-size:.5em;line-height:.9em;text-align:left}section[_ngcontent-%COMP%] .month[_ngcontent-%COMP%]{text-transform:capitalize}.confirm-selection[_ngcontent-%COMP%]{font-family:Tim-Bold;margin-top:10px}.confirm-selection[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:15px;padding:8px;font-size:12px;font-family:Tim-Bold;background:#db0080;color:var(--text-color);border:2px solid #db0080;text-transform:uppercase;margin-top:8px;margin-bottom:2px;border-radius:8px}.confirm-selection[_ngcontent-%COMP%] button.no[_ngcontent-%COMP%]{background-color:#cfcfcf;border:2px solid #cfcfcf}.confirm-selection[_ngcontent-%COMP%] button.no[_ngcontent-%COMP%]:enabled:hover{background-color:red;border:2px solid red}.confirm-selection[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:enabled:hover{background-color:#ff00a4;border-color:#ff00a4}.confirm-selection[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.5}"]}),t}();function gk(t,e){1&t&&(Ya(0,"p",20),ws(1,"N\xfamero Inv\xe1lido"),Ka())}function mk(t,e){1&t&&(Ya(0,"p",20),ws(1,"Endere\xe7o Inv\xe1lido"),Ka())}function yk(t,e){if(1&t&&(Ya(0,"option",21),ws(1),Ka()),2&t){var n=e.$implicit;$a("value",n.value),ji(1),ks(n.name)}}function bk(t,e){1&t&&(Ya(0,"p",20),ws(1,"Bairro Inv\xe1lido"),Ka())}function _k(t,e){1&t&&(Ya(0,"p",20),ws(1,"Cidade Inv\xe1lida"),Ka())}function Ck(t,e){1&t&&(Ya(0,"p",20),ws(1,"UF Inv\xe1lido"),Ka())}function wk(t,e){if(1&t&&(Ya(0,"option",21),ws(1),Ka()),2&t){var n=e.$implicit;$a("value",n),ji(1),ks(n)}}function kk(t,e){1&t&&(Ya(0,"p",20),ws(1,"Celular Inv\xe1lido"),Ka())}function Ok(t,e){1&t&&(Ya(0,"p",20),ws(1,"Telefone de Contato Inv\xe1lido"),Ka())}function Pk(t,e){1&t&&(Ya(0,"p",20),ws(1,"E-mail Inv\xe1lido"),Ka())}var xk=function(){function t(){this.confirmation=new Uc}return t.prototype.ngOnInit=function(){var t,e,n,r,i;try{this.formGroup=new Hp({numero:new Gp(null===(t=this.chatItem.order.userAddress)||void 0===t?void 0:t.numero,ep.required)||new Gp("",ep.required),endereco:new Gp(null===(e=this.chatItem.order.userAddress)||void 0===e?void 0:e.endereco,ep.required)||new Gp("",ep.required),complemento:new Gp(""),tipo:new Gp(""),bairro:new Gp(null===(n=this.chatItem.order.userAddress)||void 0===n?void 0:n.bairro,ep.required)||new Gp("",ep.required),cidade:new Gp(null===(r=this.chatItem.order.userAddress)||void 0===r?void 0:r.cidade,ep.required)||new Gp("",ep.required),uf:new Gp(null===(i=this.chatItem.order.userAddress)||void 0===i?void 0:i.uf,ep.required)||new Gp(""),celular:new Gp("",[ep.required,s_.validarTelefoneCelular]),contato:new Gp("",s_.validarTelefoneCelular),email:new Gp("",[ep.required,s_.validarEmail])}),this.numero=this.formGroup.get("numero").value||"",this.endereco=this.formGroup.get("endereco").value||"",this.complemento=this.formGroup.get("complemento").value||"",this.bairro=this.formGroup.get("bairro").value||"",this.cidade=this.formGroup.get("cidade").value||"",this.celular=this.formGroup.get("celular").value||"",this.contato=this.formGroup.get("contato").value||"",this.email=this.formGroup.get("email").value||"",this.tipos=this.initializeTypesArray(),this.ufs=["AC","AL","AM","AP","BA","CE","DF","ES","GO","MA","MG","MS","MT","PA","PB","PE","PI","PR","RJ","RN","RO","RR","RS","SC","SE","SP","TO"],this.checkRequiredFields(),this.celIsValid=!this.celIsValid||0!=this.celular.length,this.contactIsValid=!this.contactIsValid||0!=this.contato.length,this.mailIsValid=!this.mailIsValid||0!=this.email.length}catch(o){console.error(o)}},Object.defineProperty(t.prototype,"CelMask",{get:function(){return"(00) 00000-0000"},enumerable:!1,configurable:!0}),t.prototype.initializeTypesArray=function(){return[{value:"ADR",name:"Andar"},{value:"AP",name:"Apartamento"},{value:"BC",name:"Beco"},{value:"BL",name:"Bloco"},{value:"CS",name:"Casa"},{value:"CJ",name:"Conjunto"},{value:"DPTO",name:"Departamento"},{value:"ED",name:"Edif\xedcio"},{value:"LJ",name:"Loja"},{value:"LT",name:"Lote"},{value:"OUTROS",name:"Outros"},{value:"PAVTO",name:"Pavimentos"},{value:"PR",name:"Pr\xe9dio"},{value:"QD",name:"Quadra"},{value:"SL",name:"Sala"},{value:"SETOR",name:"Setor"},{value:"SOBR",name:"Sobrado"},{value:"SOBLOJ",name:"Sobreloja"},{value:"SUBSOLO",name:"Subsolo"},{value:"TORRE",name:"Torre"},{value:"TR",name:"Travessa"},{value:"V",name:"Via"},{value:"VL",name:"Viela"}]},t.prototype.handleNumberChanged=function(t){t!=this.formGroup.get("numero").value&&(this.numero=t,this.formGroup.get("numero").setValue(t))},t.prototype.handleAddrChanged=function(t){t!=this.formGroup.get("endereco").value&&(this.endereco=t,this.formGroup.get("endereco").setValue(t))},t.prototype.handleCompChanged=function(t){t!=this.formGroup.get("complemento").value&&(this.complemento=t,this.formGroup.get("complemento").setValue(t))},t.prototype.handleNeighborhoodChanged=function(t){t!=this.formGroup.get("bairro").value&&(this.bairro=t,this.formGroup.get("bairro").setValue(t))},t.prototype.handleCityChanged=function(t){t!=this.formGroup.get("cidade").value&&(this.cidade=t,this.formGroup.get("cidade").setValue(t))},t.prototype.handleUfChanged=function(t){t!=this.formGroup.get("uf").value&&this.formGroup.get("uf").setValue(t)},t.prototype.handleCelChanged=function(t){t!=this.formGroup.get("celular").value&&(this.celular=t,this.formGroup.get("celular").setValue(t))},t.prototype.handleContactChanged=function(t){t!=this.formGroup.get("contato").value&&(this.contato=t,this.formGroup.get("contato").setValue(t),this.formGroup.get("contato").updateValueAndValidity())},t.prototype.handleMailChanged=function(t){t!=this.formGroup.get("email").value&&(this.email=t,this.formGroup.get("email").setValue(t))},t.prototype.updateAddrType=function(t){this.chatItem.order.userAddress?this.chatItem.order.userAddress.tipo=t.value:this.chatItem.order.userAddress={tipo:t.value}},t.prototype.updateUf=function(t){this.chatItem.order.userAddress.cep?this.chatItem.order.userAddress.uf=t.value:this.chatItem.order.userAddress={uf:t.value}},t.prototype.updateValues=function(){this.chatItem.finishedStep=!0;var t=this.formGroup.get("endereco").value.split(" ")[0],e=this.formGroup.get("endereco").value;e=e.replace(t,"").substring(1),this.chatItem.order.userAddress={cep:this.chatItem.order.userAddress.cep,numero:this.formGroup.get("numero").value||"ERRO",logradouro:t||"ERRO",endereco:e||"ERRO",complemento:this.formGroup.get("complemento").value||"",tipo:this.formGroup.get("tipo").value||"ERRO",bairro:this.formGroup.get("bairro").value||"ERRO",cidade:this.formGroup.get("cidade").value||"ERRO",uf:this.formGroup.get("uf").value||"ERRO"},this.chatItem.order.phoneNumber=this.formGroup.get("celular").value||"ERRO",this.chatItem.timLiveOrder.contactNumber=this.formGroup.get("contato").value||"",this.chatItem.order.personalData.email=this.formGroup.get("email").value||""},t.prototype.disableForms=function(){this.formGroup.get("tipo").disable(),this.formGroup.get("uf").disable()},t.prototype.checkRequiredFields=function(){return this.numIsValid=this.formGroup.get("numero").valid,this.addrIsValid=this.formGroup.get("endereco").valid,this.nghbIsValid=this.formGroup.get("bairro").valid,this.cityIsValid=this.formGroup.get("cidade").valid,this.ufIsValid=this.formGroup.get("uf").valid,this.celIsValid=this.formGroup.get("celular").valid,this.mailIsValid=this.formGroup.get("email").valid,this.numIsValid&&this.addrIsValid&&this.nghbIsValid&&this.cityIsValid&&this.ufIsValid&&this.celIsValid&&this.mailIsValid},t.prototype.validateForm=function(){this.checkRequiredFields()&&(this.updateValues(),this.disableForms(),this.confirmation.emit(!0))},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ee({type:t,selectors:[["app-tim-live-customer-data"]],inputs:{chatItem:"chatItem"},outputs:{confirmation:"confirmation"},decls:36,vars:36,consts:[[3,"colorVariant","isNewNode"],[1,"text",3,"innerHtml"],["class","text invalid",4,"ngIf"],["label","N\xfamero: *","mask","0000000","maxLength","7",3,"inputValue","isDisabled","isTypeNumber","valueChanged"],["label","Endere\xe7o: *","maxLength","255",3,"inputValue","isDisabled","valueChanged"],["id","type-container",1,"tipo",3,"formGroup"],["for","tipo"],["id","tipo","name","tipo","formControlName","tipo","required",""],["value","","selected","","disabled",""],[3,"value",4,"ngFor","ngForOf"],["label","Complemento:","maxLength","50",3,"inputValue","isDisabled","valueChanged"],["label","Bairro: *","maxLength","100",3,"inputValue","isDisabled","valueChanged"],["label","Cidade: *","maxLength","255",3,"inputValue","isDisabled","valueChanged"],["id","uf-container",1,"tipo",3,"formGroup"],["for","ufData"],["id","ufData","name","ufData","formControlName","uf","required",""],["label","Celular: *","maxLength","15",3,"mask","inputValue","isDisabled","isTypeNumber","valueChanged"],["label","Telefone de Contato:","maxLength","15",3,"mask","inputValue","isDisabled","isTypeNumber","valueChanged"],["label","E-mail: *","type","email","maxLength","319",3,"isDisabled","valueChanged"],[1,"CustomFontBold",3,"disabled","click"],[1,"text","invalid"],[3,"value"]],template:function(t,e){1&t&&(Ya(0,"app-chat-bubble",0),Ya(1,"section"),Ja(2,"p",1),Ha(3,gk,2,0,"p",2),Ya(4,"app-custom-input",3),rs("valueChanged",(function(t){return e.handleNumberChanged(t)})),Ka(),Ha(5,mk,2,0,"p",2),Ya(6,"app-custom-input",4),rs("valueChanged",(function(t){return e.handleAddrChanged(t)})),Ka(),Ya(7,"div",5),Ya(8,"label",6),ws(9,"Tipo: "),Ka(),Ya(10,"select",7),Ya(11,"option",8),ws(12,"Selecione o tipo do seu complemento:"),Ka(),Ha(13,yk,2,2,"option",9),Ka(),Ka(),Ya(14,"app-custom-input",10),rs("valueChanged",(function(t){return e.handleCompChanged(t)})),Ka(),Ha(15,bk,2,0,"p",2),Ya(16,"app-custom-input",11),rs("valueChanged",(function(t){return e.handleNeighborhoodChanged(t)})),Ka(),Ha(17,_k,2,0,"p",2),Ya(18,"app-custom-input",12),rs("valueChanged",(function(t){return e.handleCityChanged(t)})),Ka(),Ha(19,Ck,2,0,"p",2),Ya(20,"div",13),Ya(21,"label",14),ws(22,"UF: *"),Ka(),Ya(23,"select",15),Ya(24,"option",8),ws(25,"Selecione o seu UF:"),Ka(),Ha(26,wk,2,2,"option",9),Ka(),Ka(),Ha(27,kk,2,0,"p",2),Ya(28,"app-custom-input",16),rs("valueChanged",(function(t){return e.handleCelChanged(t)})),Ka(),Ha(29,Ok,2,0,"p",2),Ya(30,"app-custom-input",17),rs("valueChanged",(function(t){return e.handleContactChanged(t)})),Ka(),Ha(31,Pk,2,0,"p",2),Ya(32,"app-custom-input",18),rs("valueChanged",(function(t){return e.handleMailChanged(t)})),Ka(),Ka(),Ya(33,"footer"),Ya(34,"button",19),rs("click",(function(){return e.validateForm()})),ws(35," Confirmar "),Ka(),Ka(),Ka()),2&t&&($a("colorVariant",e.chatItem.colorVariant)("isNewNode",e.chatItem.isNewNode),ji(2),$a("innerHtml",e.chatItem.content.htmlText,gi),ji(1),$a("ngIf",!e.numIsValid),ji(1),$a("inputValue",e.numero)("isDisabled",e.chatItem.finishedStep)("isTypeNumber",!0),ji(1),$a("ngIf",!e.addrIsValid),ji(1),$a("inputValue",e.endereco)("isDisabled",e.chatItem.finishedStep),ji(1),$a("formGroup",e.formGroup),ji(6),$a("ngForOf",e.tipos),ji(1),$a("inputValue",e.complemento)("isDisabled",e.chatItem.finishedStep),ji(1),$a("ngIf",!e.nghbIsValid),ji(1),$a("inputValue",e.bairro)("isDisabled",e.chatItem.finishedStep),ji(1),$a("ngIf",!e.cityIsValid),ji(1),$a("inputValue",e.cidade)("isDisabled",e.chatItem.finishedStep),ji(1),$a("ngIf",!e.ufIsValid),ji(1),$a("formGroup",e.formGroup),ji(6),$a("ngForOf",e.ufs),ji(1),$a("ngIf",!e.celIsValid),ji(1),$a("mask",e.CelMask)("inputValue",e.celular)("isDisabled",e.chatItem.finishedStep)("isTypeNumber",!0),ji(1),$a("ngIf",!e.contactIsValid),ji(1),$a("mask",e.CelMask)("inputValue",e.contato)("isDisabled",e.chatItem.finishedStep)("isTypeNumber",!0),ji(1),$a("ngIf",!e.mailIsValid),ji(1),$a("isDisabled",e.chatItem.finishedStep),ji(2),$a("disabled",e.chatItem.finishedStep))},directives:[vb,Jl,d_,Af,Yh,sf,_p,Zh,ff,gf,Cp,Pp,Yl],styles:['p[class=text][_ngcontent-%COMP%]{font-size:14px;line-height:1.43;margin:0}p[class="text invalid"][_ngcontent-%COMP%]{color:var(--cep-form-txt-invalid-color);margin-top:10px;font-weight:700}section[_ngcontent-%COMP%]{min-height:150px;max-height:250px;width:450px;overflow-y:scroll}@media only screen and (max-width:556px){section[_ngcontent-%COMP%]{max-width:95%}}@media only screen and (min-height:768px){section[_ngcontent-%COMP%]{min-width:300px}}section[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:14px;color:#666}section[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{min-width:80px;height:30px;border-radius:4px;width:120px;margin-left:5px;padding-left:10px}section[_ngcontent-%COMP%] .tipo[_ngcontent-%COMP%]{margin-top:13px;margin-bottom:13px}section[_ngcontent-%COMP%] .tipo[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{min-width:95px;width:131px}footer[_ngcontent-%COMP%]{text-align:right;margin-top:10px}footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:8px;font-size:12px;background:var(--main-btn-color);color:var(--text-color);border:2px solid var(--main-btn-color);text-transform:uppercase;margin-top:8px;margin-bottom:2px;border-radius:8px}footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:enabled:hover{background-color:var(--select-btn-color);border-color:var(--select-btn-color)}footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.5}']}),t}(),Ik=function(){function t(){this.confirmation=new Uc}return t.prototype.ngOnInit=function(){this.formGroup=new Hp({payDay:new Gp("07")})},t.prototype.setPayDay=function(t){t!=this.formGroup.get("payDay").value&&this.formGroup.get("payDay").setValue(t)},t.prototype.validateForm=function(){this.chatItem.finishedStep||(this.chatItem.finishedStep=!0,this.chatItem.order.paymentDay=Number.parseInt(this.formGroup.get("payDay").value),this.formGroup.get("payDay").disable(),this.confirmation.emit(!0))},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ee({type:t,selectors:[["app-tim-live-payment-day"]],inputs:{chatItem:"chatItem"},outputs:{confirmation:"confirmation"},decls:24,vars:5,consts:[[3,"colorVariant","isNewNode"],[3,"formGroup"],[1,"text",3,"innerHtml"],["type","radio","id","01","name","payDay","value","01","formControlName","payDay"],["for","01"],["type","radio","id","07","name","payDay","value","07","formControlName","payDay"],["for","07"],["type","radio","id","10","name","payDay","value","10","formControlName","payDay"],["for","10"],["type","radio","id","12","name","payDay","value","12","formControlName","payDay"],["for","12"],["type","radio","id","15","name","payDay","value","15","formControlName","payDay"],["for","15"],["type","radio","id","20","name","payDay","value","20","formControlName","payDay"],["for","20"],[1,"CustomFontBold",3,"disabled","click"]],template:function(t,e){1&t&&(Ya(0,"app-chat-bubble",0),Ya(1,"section",1),Ja(2,"p",2),Ja(3,"input",3),Ya(4,"label",4),ws(5,"01"),Ka(),Ja(6,"input",5),Ya(7,"label",6),ws(8,"07"),Ka(),Ja(9,"input",7),Ya(10,"label",8),ws(11,"10"),Ka(),Ja(12,"input",9),Ya(13,"label",10),ws(14,"12"),Ka(),Ja(15,"input",11),Ya(16,"label",12),ws(17,"15"),Ka(),Ja(18,"input",13),Ya(19,"label",14),ws(20,"20"),Ka(),Ka(),Ya(21,"footer"),Ya(22,"button",15),rs("click",(function(){return e.validateForm()})),ws(23," Confirmar "),Ka(),Ka(),Ka()),2&t&&($a("colorVariant",e.chatItem.colorVariant)("isNewNode",e.chatItem.isNewNode),ji(1),$a("formGroup",e.formGroup),ji(1),$a("innerHtml",e.chatItem.content.htmlText,gi),ji(20),$a("disabled",e.chatItem.finishedStep))},directives:[vb,Yh,sf,dp,Bh,Zh,ff],styles:['p[class=text][_ngcontent-%COMP%]{font-size:14px;line-height:1.43;margin:0}p[class="text invalid"][_ngcontent-%COMP%]{color:var(--cep-form-txt-invalid-color);margin-top:10px;font-weight:700}section[_ngcontent-%COMP%]{text-align:center;max-width:350px}section[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin:10px 5px 10px 10px}section[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:justify}footer[_ngcontent-%COMP%]{text-align:right;margin-top:10px}footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:8px;font-size:12px;background:var(--main-btn-color);color:var(--text-color);border:2px solid var(--main-btn-color);text-transform:uppercase;margin-top:8px;margin-bottom:2px;border-radius:8px}footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:enabled:hover{background-color:var(--select-btn-color);border-color:var(--select-btn-color)}footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.5}']}),t}();function Sk(t,e){if(1&t&&Ja(0,"p",7),2&t){var n=cs();$a("innerHtml",n.chatItem.content.htmlText?n.chatItem.content.htmlText:n.chatItem.content.debitConfig.htmlText,gi)}}function Mk(t,e){1&t&&(Ya(0,"p"),ws(1," Texto n\xe3o encontrado! Confira a configura\xe7\xe3o do fluxo para este item. "),Ka())}function Ek(t,e){if(1&t){var n=ts();Ya(0,"button",8),rs("click",(function(){return _n(n),cs().setPaymentType(!0)})),ws(1),Ka()}if(2&t){var r=cs();$a("disabled",r.chatItem.finishedStep),ji(1),Os(" ",r.chatItem.content.debitConfig?r.chatItem.content.debitConfig.btnText:"Prefiro D\xe9bito Autom\xe1tico"," ")}}function Tk(t,e){if(1&t){var n=ts();Ya(0,"button",9),rs("click",(function(){return _n(n),cs().setPaymentType(!1)})),ws(1),Ka()}if(2&t){var r=cs();$a("disabled",r.chatItem.finishedStep),ji(1),Os(" ",r.chatItem.content.noDebitConfig?r.chatItem.content.noDebitConfig.btnText:"Prefiro Fatura"," ")}}var Ak=function(){function t(){this.confirmation=new Uc}return t.prototype.ngOnInit=function(){this.formGroup=new Hp({type:new Gp({value:"",disabled:this.chatItem.finishedStep},ep.required)}),this.chatItem.timLiveOrder.type==Uf.iron&&this.setPaymentType(!0)},t.prototype.setPaymentType=function(t){t!=this.formGroup.get("type").value&&this.formGroup.get("type").setValue(t),this.validateForm()},t.prototype.validateForm=function(){if(!this.chatItem.finishedStep){this.chatItem.finishedStep=!0;var t=this.formGroup.get("type"),e=t.value;t.disable(),this.confirmation.emit(e)}},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ee({type:t,selectors:[["app-tim-live-payment-type"]],inputs:{chatItem:"chatItem"},outputs:{confirmation:"confirmation"},decls:9,vars:7,consts:[[3,"colorVariant","isNewNode"],[3,"formGroup"],[3,"innerHtml",4,"ngIf"],[4,"ngIf"],["class","debit",3,"disabled","click",4,"ngIf"],["class","invoice",3,"disabled","click",4,"ngIf"],[1,"DAMessage"],[3,"innerHtml"],[1,"debit",3,"disabled","click"],[1,"invoice",3,"disabled","click"]],template:function(t,e){1&t&&(Ya(0,"app-chat-bubble",0),Ya(1,"section",1),Ha(2,Sk,1,1,"p",2),Ha(3,Mk,2,0,"p",3),Ha(4,Ek,2,2,"button",4),Ha(5,Tk,2,2,"button",5),Ka(),Ya(6,"footer"),Ya(7,"p",6),ws(8,"O d\xe9bito autom\xe1tico \xe9 somente em conta corrente."),Ka(),Ka(),Ka()),2&t&&($a("colorVariant",e.chatItem.colorVariant)("isNewNode",e.chatItem.isNewNode),ji(1),$a("formGroup",e.formGroup),ji(1),$a("ngIf",e.chatItem.content.debit||e.chatItem.content.debitConfig),ji(1),$a("ngIf",!e.chatItem.content.htmlText&&!e.chatItem.content.debitConfig),ji(1),$a("ngIf",e.chatItem.timLiveOrder.selectedPlan.existDebit),ji(1),$a("ngIf",e.chatItem.timLiveOrder.selectedPlan.existInvoice&&0==e.chatItem.timLiveOrder.type))},directives:[vb,Yh,sf,Jl],styles:['p[class=text][_ngcontent-%COMP%]{font-size:14px;line-height:1.43;margin:0}p[class="text invalid"][_ngcontent-%COMP%]{color:var(--cep-form-txt-invalid-color);margin-top:10px;font-weight:700}section[_ngcontent-%COMP%]{margin:15px 0;display:flex;flex-direction:column}section[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px;line-height:1.43;margin:0 0 10px}section[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin:10px 5px 10px 10px}section[_ngcontent-%COMP%] input[_ngcontent-%COMP%], section[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{text-align:center}section[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font:700 18px Barlow,sans-serif;padding:8px 13px;border-radius:var(--btn-radius-size);text-transform:unset;margin-bottom:15px}section[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:enabled:hover{background-color:var(--select-btn-color);border-color:var(--select-btn-color)}section[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:enabled:last-child:hover{color:#d7321e}section[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.5}section[_ngcontent-%COMP%] button.debit[_ngcontent-%COMP%]{margin-bottom:15px;color:var(--text-color);background-color:var(--main-btn-color);border:2px solid var(--main-btn-color)}section[_ngcontent-%COMP%] button.invoice[_ngcontent-%COMP%]{color:#000;background:none;border:2px solid #999}footer[_ngcontent-%COMP%]{text-align:right;margin-top:10px}footer[_ngcontent-%COMP%] .DAMessage[_ngcontent-%COMP%]{color:#999;font-size:11px;font-weight:700;text-align:center;margin:5px 0}']}),t}();function Nk(t,e){if(1&t){var n=ts();Ya(0,"app-contract-modal",5),rs("closeModal",(function(){return _n(n),cs().contractModalService.close()})),Ka()}2&t&&$a("safeUrl",cs().contractModalService.contract)}function Dk(t,e){if(1&t){var n=ts();Ya(0,"app-contract-modal",5),rs("closeModal",(function(){return _n(n),cs().contractModalService.close()})),Ka()}2&t&&$a("safeUrl",cs().contractModalService.contractTimLive)}function Vk(t,e){1&t&&Ja(0,"app-pure-text",28),2&t&&$a("chatItem",cs().$implicit)}function Lk(t,e){1&t&&Ja(0,"app-video-content",28),2&t&&$a("chatItem",cs().$implicit)}function Rk(t,e){1&t&&Ja(0,"app-pure-img",28),2&t&&$a("chatItem",cs().$implicit)}function Fk(t,e){1&t&&Ja(0,"app-claro-plan-description",28),2&t&&$a("chatItem",cs().$implicit)}function jk(t,e){1&t&&Ja(0,"app-plan-selection",28),2&t&&$a("chatItem",cs().$implicit)}function zk(t,e){if(1&t){var n=ts();Ya(0,"app-claro-plan-selection",29),rs("resolution",(function(t){_n(n);var e=cs().$implicit;return cs().setPlan(t,e)})),Ka()}2&t&&$a("chatItem",cs().$implicit)}function Bk(t,e){if(1&t){var n=ts();Ya(0,"app-select-option",29),rs("resolution",(function(t){_n(n);var e=cs().$implicit;return cs().setOption(t,e)})),Ka()}2&t&&$a("chatItem",cs().$implicit)}function Uk(t,e){if(1&t){var n=ts();Ya(0,"app-ddd-form",30),rs("dddSet",(function(t){_n(n);var e=cs().$implicit;return cs().setDdd(t,e)})),Ka()}2&t&&$a("chatItem",cs().$implicit)}function Gk(t,e){if(1&t){var n=ts();Ya(0,"app-telefone-form",31),rs("setPhone",(function(t){_n(n);var e=cs().$implicit;return cs().setPhone(t,e)})),Ka()}2&t&&$a("chatItem",cs().$implicit)}function Hk(t,e){if(1&t){var n=ts();Ya(0,"app-email-form",32),rs("emailSet",(function(t){_n(n);var e=cs().$implicit;return cs().setEmail(t,e)})),Ka()}2&t&&$a("chatItem",cs().$implicit)}function qk(t,e){if(1&t){var n=ts();Ya(0,"app-cpf-form",33),rs("cpfSet",(function(t){_n(n);var e=cs().$implicit;return cs().setCpf(t,e)})),Ka()}2&t&&$a("chatItem",cs().$implicit)}function Wk(t,e){if(1&t){var n=ts();Ya(0,"app-cep-form",34),rs("cepSet",(function(t){_n(n);var e=cs().$implicit;return cs().setCep(t,e)})),Ka()}2&t&&$a("chatItem",cs().$implicit)}function $k(t,e){if(1&t){var n=ts();Ya(0,"app-address-form",35),rs("addressSet",(function(t){_n(n);var e=cs().$implicit;return cs().setAddress(t,e)})),Ka()}2&t&&$a("chatItem",cs().$implicit)}function Zk(t,e){if(1&t){var n=ts();Ya(0,"app-credit-card-form",36),rs("ccSet",(function(t){_n(n);var e=cs().$implicit;return cs().setCreditCard(t,e)})),Ka()}2&t&&$a("chatItem",cs().$implicit)}function Yk(t,e){if(1&t){var n=ts();Ya(0,"app-personal-form",37),rs("personalDataSet",(function(t){_n(n);var e=cs().$implicit;return cs().setPersonalData(t,e)})),Ka()}2&t&&$a("chatItem",cs().$implicit)}function Kk(t,e){if(1&t){var n=ts();Ya(0,"app-payment-day",38),rs("paymentDaySet",(function(t){_n(n);var e=cs().$implicit;return cs().setPayment(t,e)})),Ka()}2&t&&$a("chatItem",cs().$implicit)}function Jk(t,e){if(1&t){var n=ts();Ya(0,"app-confirm",39),rs("resolution",(function(t){_n(n);var e=cs().$implicit;return cs().ConfirmHandler(t,e)}))("openContract",(function(){return _n(n),cs(2).contractModalService.open()})),Ka()}if(2&t){var r=cs().$implicit;$a("operatorCode",cs().operatorCode)("chatItem",r)}}function Qk(t,e){if(1&t){var n=ts();Ya(0,"app-confirm-debit",29),rs("resolution",(function(t){_n(n);var e=cs().$implicit;return cs().setDebitConfirmation(t,e)})),Ka()}2&t&&$a("chatItem",cs().$implicit)}function Xk(t,e){if(1&t){var n=ts();Ya(0,"app-confirm-token",40),rs("tokenSet",(function(t){_n(n);var e=cs().$implicit;return cs().setToken(t,e)})),Ka()}2&t&&$a("chatItem",cs().$implicit)}function tO(t,e){if(1&t){var n=ts();Ya(0,"app-bank-form",41),rs("bankInfoSet",(function(t){_n(n);var e=cs().$implicit;return cs().setBank(t,e)})),Ka()}2&t&&$a("chatItem",cs().$implicit)}function eO(t,e){if(1&t){var n=ts();Ya(0,"app-track-order",42),rs("goToOrder",(function(t){_n(n);var e=cs().$implicit;return cs().trackOrder(t,e)})),Ka()}if(2&t){var r=cs().$implicit;$a("colorVariant",r.colorVariant)("chatItem",r)}}function nO(t,e){if(1&t){var n=ts();Ya(0,"app-tim-plan-selection",29),rs("resolution",(function(t){_n(n);var e=cs().$implicit;return cs().setPlan(t,e)})),Ka()}2&t&&$a("chatItem",cs().$implicit)}function rO(t,e){1&t&&Ja(0,"app-tim-plan-description",28),2&t&&$a("chatItem",cs().$implicit)}function iO(t,e){if(1&t){var n=ts();Ya(0,"app-tim-select-option",29),rs("resolution",(function(t){_n(n);var e=cs().$implicit;return cs().setOption(t,e)})),Ka()}2&t&&$a("chatItem",cs().$implicit)}function oO(t,e){if(1&t){var n=ts();Ya(0,"app-tim-validation",29),rs("resolution",(function(t){_n(n);var e=cs().$implicit;return cs().ValidateCpfTIM(t,e)})),Ka()}2&t&&$a("chatItem",cs().$implicit)}function aO(t,e){if(1&t){var n=ts();Ya(0,"app-oi-plan-selection",29),rs("resolution",(function(t){_n(n);var e=cs().$implicit;return cs().setPlan(t,e)})),Ka()}2&t&&$a("chatItem",cs().$implicit)}function sO(t,e){if(1&t){var n=ts();Ya(0,"app-oi-payment-method",43),rs("paymentMethodSet",(function(t){_n(n);var e=cs().$implicit;return cs().setPaymentMethod(t,e)})),Ka()}2&t&&$a("chatItem",cs().$implicit)}function cO(t,e){if(1&t){var n=ts();Ya(0,"app-oi-payment-info",44),rs("paymentInfoSet",(function(t){_n(n);var e=cs().$implicit;return cs().setPaymentInfo(t,e)})),Ka()}2&t&&$a("chatItem",cs().$implicit)}function uO(t,e){if(1&t){var n=ts();Ya(0,"app-vivo-plan-selection",29),rs("resolution",(function(t){_n(n);var e=cs().$implicit;return cs().setPlan(t,e)})),Ka()}2&t&&$a("chatItem",cs().$implicit)}function lO(t,e){if(1&t){var n=ts();Ya(0,"app-vivo-sva-selection",45),rs("vivoSva",(function(t){return _n(n),cs(2).verifyVivoSva(t)})),Ka()}2&t&&$a("chatItem",cs().$implicit)}function dO(t,e){1&t&&Ja(0,"app-vivo-plan-description",28),2&t&&$a("chatItem",cs().$implicit)}function hO(t,e){if(1&t){var n=ts();Ya(0,"app-tim-live-address",46),rs("checkAvailability",(function(t){return _n(n),cs(2).GetAvailabilityStatus(t)})),Ka()}2&t&&$a("chatItem",cs().$implicit)}function pO(t,e){if(1&t){var n=ts();Ya(0,"app-tim-live-plan-selection",47),rs("selection",(function(t){return _n(n),cs(2).SelectLiveTimPlan(t)})),Ka()}2&t&&$a("chatItem",cs().$implicit)}function fO(t,e){if(1&t){var n=ts();Ya(0,"app-tim-live-plan-description",48),rs("confirmation",(function(t){return _n(n),cs(2).ConfirmLiveTimPlan(t)})),Ka()}2&t&&$a("chatItem",cs().$implicit)}function vO(t,e){if(1&t){var n=ts();Ya(0,"app-tim-live-customer-data",48),rs("confirmation",(function(t){return _n(n),cs(2).UpdateBandaLargaCartAddress(t)})),Ka()}2&t&&$a("chatItem",cs().$implicit)}function gO(t,e){if(1&t){var n=ts();Ya(0,"app-tim-live-payment-day",48),rs("confirmation",(function(){return _n(n),cs(2).DevelopmentHelper()})),Ka()}2&t&&$a("chatItem",cs().$implicit)}function mO(t,e){if(1&t){var n=ts();Ya(0,"app-tim-live-payment-type",48),rs("confirmation",(function(t){return _n(n),cs(2).LiveTimPaymentTypeSelection(t)})),Ka()}2&t&&$a("chatItem",cs().$implicit)}function yO(t,e){1&t&&(Qa(0,6),Ha(1,Vk,1,1,"app-pure-text",7),Ha(2,Lk,1,1,"app-video-content",7),Ha(3,Rk,1,1,"app-pure-img",7),Ha(4,Fk,1,1,"app-claro-plan-description",7),Ha(5,jk,1,1,"app-plan-selection",7),Ha(6,zk,1,1,"app-claro-plan-selection",8),Ha(7,Bk,1,1,"app-select-option",8),Ha(8,Uk,1,1,"app-ddd-form",9),Ha(9,Gk,1,1,"app-telefone-form",10),Ha(10,Hk,1,1,"app-email-form",11),Ha(11,qk,1,1,"app-cpf-form",12),Ha(12,Wk,1,1,"app-cep-form",13),Ha(13,$k,1,1,"app-address-form",14),Ha(14,Zk,1,1,"app-credit-card-form",15),Ha(15,Yk,1,1,"app-personal-form",16),Ha(16,Kk,1,1,"app-payment-day",17),Ha(17,Jk,1,2,"app-confirm",18),Ha(18,Qk,1,1,"app-confirm-debit",8),Ha(19,Xk,1,1,"app-confirm-token",19),Ha(20,tO,1,1,"app-bank-form",20),Ha(21,eO,1,2,"app-track-order",21),Ha(22,nO,1,1,"app-tim-plan-selection",8),Ha(23,rO,1,1,"app-tim-plan-description",7),Ha(24,iO,1,1,"app-tim-select-option",8),Ha(25,oO,1,1,"app-tim-validation",8),Ha(26,aO,1,1,"app-oi-plan-selection",8),Ha(27,sO,1,1,"app-oi-payment-method",22),Ha(28,cO,1,1,"app-oi-payment-info",23),Ha(29,uO,1,1,"app-vivo-plan-selection",8),Ha(30,lO,1,1,"app-vivo-sva-selection",24),Ha(31,dO,1,1,"app-vivo-plan-description",7),Ha(32,hO,1,1,"app-tim-live-address",25),Ha(33,pO,1,1,"app-tim-live-plan-selection",26),Ha(34,fO,1,1,"app-tim-live-plan-description",27),Ha(35,vO,1,1,"app-tim-live-customer-data",27),Ha(36,gO,1,1,"app-tim-live-payment-day",27),Ha(37,mO,1,1,"app-tim-live-payment-type",27),Xa()),2&t&&($a("ngSwitch",e.$implicit.component),ji(1),$a("ngSwitchCase","PureTextComponent"),ji(1),$a("ngSwitchCase","VideoContentComponent"),ji(1),$a("ngSwitchCase","PureImageComponent"),ji(1),$a("ngSwitchCase","PlanDescriptionComponent"),ji(1),$a("ngSwitchCase","PlanSelectionComponent"),ji(1),$a("ngSwitchCase","ImageSelectOptionComponent"),ji(1),$a("ngSwitchCase","SelectOptionComponent"),ji(1),$a("ngSwitchCase","DddFormComponent"),ji(1),$a("ngSwitchCase","TelefoneFormComponent"),ji(1),$a("ngSwitchCase","EmailFormComponent"),ji(1),$a("ngSwitchCase","CpfFormComponent"),ji(1),$a("ngSwitchCase","CepFormComponent"),ji(1),$a("ngSwitchCase","AddressFormComponent"),ji(1),$a("ngSwitchCase","CreditCardFormComponent"),ji(1),$a("ngSwitchCase","PersonalFormComponent"),ji(1),$a("ngSwitchCase","PaymentDayComponent"),ji(1),$a("ngSwitchCase","ConfirmComponent"),ji(1),$a("ngSwitchCase","ConfirmDebitComponent"),ji(1),$a("ngSwitchCase","ConfirmTokenComponent"),ji(1),$a("ngSwitchCase","BankFormComponent"),ji(1),$a("ngSwitchCase","TrackOrderComponent"),ji(1),$a("ngSwitchCase","TimPlanSelectionComponent"),ji(1),$a("ngSwitchCase","TimPlanDescriptionComponent"),ji(1),$a("ngSwitchCase","TimSelectOptionComponent"),ji(1),$a("ngSwitchCase","TimValidationComponent"),ji(1),$a("ngSwitchCase","OiPlanSelectionComponent"),ji(1),$a("ngSwitchCase","OiPaymentMethodComponent"),ji(1),$a("ngSwitchCase","OiPaymentInfoComponent"),ji(1),$a("ngSwitchCase","VivoPlanSelectionComponent"),ji(1),$a("ngSwitchCase","VivoSvaSelectionComponent"),ji(1),$a("ngSwitchCase","VivoPlanDescriptionComponent"),ji(1),$a("ngSwitchCase","TimLiveAddressComponent"),ji(1),$a("ngSwitchCase","TimLivePlanSelectionComponent"),ji(1),$a("ngSwitchCase","TimLivePlanDescriptionComponent"),ji(1),$a("ngSwitchCase","TimLiveCustomerDataComponent"),ji(1),$a("ngSwitchCase","TimLivePaymentDayComponent"),ji(1),$a("ngSwitchCase","TimLivePaymentTypeComponent"))}var bO=function(){function t(t,e,n,r,i,o,a,s,c){var u=this;this.contractModalService=t,this.interactionService=e,this.route=n,this.wzService=r,this.dataLayerService=i,this.logService=o,this.versionService=a,this.titleService=s,this._instanaService=c,this.chatStack=[],this.order={cartId:null,modalidade:Ff.NovaLinha,carencia:"",orderId:"",utm:{},personalData:{},UidSession:""},this.orderLiveTim={franchise:"",contactNumber:"",hasToken:!1,hasUpsell:!1,plans:[],selectedPlan:null,selectedPlanName:"",sku:"",token:"",type:Uf.unknown},this.claroService=new Rf,this.timService=new yv,this.tagGlobalZoly={lojaOrigem:"MOL-CLARO-AVI-SMS-CONTROLE"},this.msgCliente="Ops, n\xe3o estamos online no momento, mas vc pode comprar por aqui \ud83d\ude09",this.operatorCode=Uu.codigoOperadora,this.isBroadband=Uu.isBroadband,this.route.queryParams.subscribe((function(t){return Vf(u,void 0,void 0,(function(){var e,n,r;return Lf(this,(function(i){switch(i.label){case 0:return this.order.utm.utm_source=t.utm_source,this.order.utm.utm_content=t.utm_content,this.order.utm.utm_medium=t.utm_medium,this.order.utm.utm_term=t.utm_term,this.order.utm.utm_campaign=t.utm_campaign,this.order.utm.utm_partner=t.utm_partner,this.order.utm.utm_ap=t.utm_ap,this.order.utm.utm_network=t.utm_network,this.order.utm.utm_expid=t.utm_expid,this.order.utm.referrer=t.referrer,this.order.utm.firstUrl=t.firstUrl,this.order.utm.idAffiliate=t.idAffiliate,this.order.utm.idAffiliateTransaction=t.idAffiliateTransaction,this.order.source=t.source||t.avi,this.versionService.version=t.v,this._setMetas(""+Uu.brand,""+this.order.source),e="",n=Uu.codigoOperadora===_v.TIM?"12":"-1",t.uid?[3,3]:[3,1];case 1:return t.numero_cliente?(this.paramsNumero=t.numero_cliente,e=atob(t.numero_cliente),n=e.substr(0,2),[4,this.verificaCodOperadora(e)]):[3,3];case 2:r=i.sent(),this.order.codOperadoraPhone=r,this.order.phoneNumber=e,i.label=3;case 3:return this.order.source?Uu.isBroadband?[4,this.asyncInitializeBandaLarga()]:[3,5]:[3,8];case 4:return i.sent(),[3,7];case 5:return[4,this.asyncInitialize(n)];case 6:i.sent(),i.label=7;case 7:i.label=8;case 8:return[2]}}))}))}))}return t.prototype.ngOnInit=function(){this.order.paymentDay=5,this.setInteractionsConditions(),this._instanaService.setIgnoreUrls(),this._formatCurrentPage()},t.prototype._formatCurrentPage=function(){var t="/"+Uu.brand.replace(" ","-").toLowerCase();this._instanaService.setCurrentStep(t)},t.prototype._setMetas=function(t,e){this._instanaService.setMetaTag("operadora",t),this._instanaService.setMetaTag("source",e)},t.prototype.setInteractionsConditions=function(){var t=this;this.interactionService.setConditions(this.order,{noPhone:function(t){return!t.phoneNumber},needPhoneValidation:function(t){return t.modalidade===Ff.Migracao||t.modalidade===Ff.Portabilidade},isDebit:function(t){return t.isDebit},newLine:function(t){return t.modalidade===Ff.NovaLinha},portabilityOrNewLine:function(t){return t.modalidade===Ff.Portabilidade||t.modalidade===Ff.NovaLinha},invalidToken:function(t){return!t.isTokenValid},hasPersonalData:function(t){return t.personalData.name},isFirstPlanAndNoPhone:function(t){return!t.phoneNumber&&!!t.plan.isRegionalPlan},hasEmail:function(t){return t.personalData&&t.personalData.email},isFatura:function(t){return t.plan&&0===t.plan.tipoAssinaturaPlano},isCreditCard:function(t){return t.plan&&1===t.plan.tipoAssinaturaPlano},isCreditCardOnly:function(t){var e;return!t.plan.exclusivoCartaoCredito||!(null===(e=t.plan)||void 0===e?void 0:e.skuBoleto)},isOiIntro:function(t){return!(t.phoneNumber&&Uu.codigoOperadora===_v.OI)},isClaroWithNumber:function(e){return t.paramsNumero&&Uu.codigoOperadora===_v.CLARO},isTimWithNumber:function(e){return t.paramsNumero&&Uu.codigoOperadora===_v.TIM},isOiNumber:function(t){return t.codOperadoraPhone&&Uu.codigoOperadora===_v.OI},needRetryCreditCard:function(t){return t.needRetryCreditCard},offerCreditCard:function(t){return t.offerCreditCard},hasSva:function(t){return t.plan.sva},isLiveTimDebit:function(){return 1==t.order.isDebit&&(null!=t.orderLiveTim.selectedPlan||null!=t.orderLiveTim.selectedPlan)}})},t.prototype.asyncInitializeRetomada=function(t){return Vf(this,void 0,void 0,(function(){var e,n,r,i,o=this;return Lf(this,(function(a){switch(a.label){case 0:return[4,this.logService.getChatAsync(t)];case 1:return e=a.sent(),this.order=e.order,this.globalCfg=e.globalCfg,n=e.chatStack,r=e.chatStack[e.chatStack.length-1],this.order.cartId=t,this.chatSession=t,[4,this.interactionService.getConfiguration(this.order.source,this.order.phoneNumber.substr(0,2),!1)];case 2:return a.sent(),this.SetPageTitle("TIM Live"),this.interactionService.currentInteraction=r.content,this.setInteractionsConditions(),n.forEach((function(t){t.order=o.order,o.chatStack.push(t)})),i=this.interactionService.interactionDispatcher,this.isTyping$=this.interactionService.typingDispatcher.asObservable(),i.subscribe((function(t){o.processInteraction(t,o.globalCfg)})),this.scrollToBottomEnabled=!1,setTimeout((function(){o.scrollToBottomEnabled=!0,o.scrollToBottom()}),2500),[2]}}))}))},t.prototype.asyncInitialize=function(t){return Vf(this,void 0,void 0,(function(){var e,n,r,i,o,a,s,c=this;return Lf(this,(function(u){switch(u.label){case 0:e=this.interactionService.interactionDispatcher,this.isTyping$=this.interactionService.typingDispatcher.asObservable(),u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this.interactionService.getConfiguration(this.order.source,t,!0)];case 2:if(n=u.sent(),r=n.plans,i=n.global,o=n.chatSession,Uu.codigoOperadora===_v.TIM&&("pos"==r[0].type?(this.isTimPos=!0,this.SetPageTitle("TIM Black")):this.SetPageTitle("TIM Controle")),!r.length)throw new Error("THERE ARE NO PLANS TO BE RENDERED!");return this.globalCfg=i,this.chatSession=o,this.order.UidSession=o,e.subscribe((function(t){c.processInteraction(t,c.globalCfg)})),1===(a=r.filter((function(t){return t.initialOffer}))).length?(this.order.plan=Object.assign({},a[0]),this.order.plan.fidelizado||(this.order.carencia=""),this.order.price=Uu.codigoOperadora===_v.CLARO?a[0].valueDebit:a[0].value,this.order.plans=r,this.order.isDebit=!this.globalCfg.exibirSomenteBoleto,this.order.offerCreditCard=!1,this.order.needRetryCreditCard=!1,this.order.phoneNumber&&(this.changeModalidade(this.order,this.order.codOperadoraPhone===Uu.codigoOperadora?Ff.Migracao:Ff.Portabilidade),this.dataLayerService.tagAddToCart(this.order)),this.interactionService.configuration.workflow.find((function(t){return"intro"===t.id})),this.tagGlobalZoly.planoEscolhido=this.order.plan.type):(this.order.plans=r,this.order.isDebit=!0),this.setInteractionsConditions(),[3,4];case 3:return s=u.sent(),this.catchError(s),[3,4];case 4:return this.interactionService.nextInteration(),this.scrollToBottomEnabled=!1,setTimeout((function(){c.scrollToBottomEnabled=!0}),5e3),[2]}}))}))},t.prototype.asyncInitializeBandaLarga=function(){return Vf(this,void 0,void 0,(function(){var t,e,n,r,i,o,a,s=this;return Lf(this,(function(c){switch(c.label){case 0:t=this.interactionService.interactionDispatcher,this.isTyping$=this.interactionService.typingDispatcher.asObservable(),c.label=1;case 1:return c.trys.push([1,4,,5]),[4,this.interactionService.getConfigurationBandaLarga(this.order.source)];case 2:return e=c.sent(),n=e.global,r=e.chatSession,this.SetPageTitle("TIM Live"),[4,this.wzService.getAccessToken()];case 3:return i=c.sent(),o=i.accessToken,"Bearer"==i.tokenType&&(this.orderLiveTim.hasToken=!0,this.orderLiveTim.token=o),this.globalCfg=n,this.chatSession=r,this.order.UidSession=r,t.subscribe((function(t){s.processInteraction(t,s.globalCfg)})),this.order.isDebit=!this.globalCfg.exibirSomenteBoleto,this.order.offerCreditCard=!1,this.order.needRetryCreditCard=!1,this.setInteractionsConditions(),[3,5];case 4:return a=c.sent(),this.catchError(a),[3,5];case 5:return this.interactionService.nextInteration(),this.scrollToBottomEnabled=!1,setTimeout((function(){s.scrollToBottomEnabled=!0}),5e3),[2]}}))}))},t.prototype.restartBandaLarga=function(){return Vf(this,void 0,void 0,(function(){var t,e,n;return Lf(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.interactionService.getConfigurationBandaLarga(this.order.source)];case 1:return t=r.sent(),e=t.chatSession,this.globalCfg=t.global,this.chatSession=e,this.order.UidSession=e,this.order.isDebit=!this.globalCfg.exibirSomenteBoleto,this.order.offerCreditCard=!1,this.order.needRetryCreditCard=!1,this.setInteractionsConditions(),[3,3];case 2:return n=r.sent(),this.catchError(n),[3,3];case 3:return[2]}}))}))},t.prototype.processInteraction=function(t,e){var n=this;"contact-phone-form-novalinha"===t.id&&(t.htmlText=t.htmlText.replace("{lineType}",this.order.modalidade===Ff.Portabilidade?"linha":"nova linha")),t.htmlText&&(t.originalHtmlText=t.originalHtmlText||t.htmlText,t.htmlText=this.replace(t.originalHtmlText,this.order)),t.debit&&(t.originalDebit=t.originalDebit||t.debit,t.debit=this.replace(t.originalDebit,this.order)),t.noDebit&&(t.originalNoDebit=t.originalNoDebit||t.noDebit,t.noDebit=this.replace(t.originalNoDebit,this.order)),t.debitConfig&&(t.debitConfig.btnText=this.replace(t.debitConfig.btnText,this.order),t.debitConfig.htmlText=this.replace(t.debitConfig.htmlText,this.order)),t.noDebitConfig&&(t.noDebitConfig.btnText=this.replace(t.noDebitConfig.btnText,this.order),t.noDebitConfig.htmlText=this.replace(t.noDebitConfig.htmlText,this.order)),this.addChatStack(new gv(t.interactionType+"Component",t.sender,t.threadStart,t,e,this.order,this.orderLiveTim)),this.scrollToBottomEnabled&&setTimeout((function(){n.scrollToBottom()}),0)},t.prototype.replace=function(t,e){var n,r=[],i=/{([^}]+)}/g,o=t;for(n=i.exec(o);n;)r.push(n[1]),n=i.exec(o);for(var a=0,s=r;aConfigura\xe7\xe3o Incorreta!
Lamentamos o ocorrido, por favor tente novamente mais tarde."})),this.catchError("SVA Error"),[2,!1]);case 1:return!1!==t?[3,3]:(this.addChatStack(new gv("PureTextComponent","alternate",!0,{htmlText:"N\xe3o quero"})),[4,this.interactionService.nextInteration()]);case 2:return o.sent(),[2,!1];case 3:return this.addChatStack(new gv("PureTextComponent","alternate",!0,{htmlText:"Oba, quero!"})),(e=[]).push((n=t).codigoSku),this.order.svas=e,i=Number.parseFloat(this.order.plan.value.replace(",",".")),r=Number.parseFloat(n.valor.replace(",",".")),this.order.plan.value=(i+r).toFixed(2),this.order.priceNoDiscount=(i+r).toFixed(2),i=Number.parseFloat(this.order.plan.valueDebit.replace(",",".")),this.order.plan.valueDebit=(i+r).toFixed(2),this.order.price=this.order.plan.value,[4,this.interactionService.nextInteration()];case 4:return o.sent(),[2,!0]}}))}))},t.prototype.updatePlanValueWithSvaForVivo=function(t,e){var n,r;n=t;var i=e,o=Number.parseFloat(n.value.replace(",","."));return r=Number.parseFloat(i.valor.replace(",",".")),n.value=(o+r).toFixed(2).replace(".",","),o=Number.parseFloat(n.valueDebit.replace(",",".")),n.valueDebit=(o+r).toFixed(2).replace(".",","),n},t.prototype.changeModalidade=function(t,e){var n,r,i;if(t.modalidade!=e)switch(i=Cv[Uu.codigoOperadora],Uu.codigoOperadora===_v.OI&&(e=Ff.Migracao),r=t.plans.find((function(e){return e.sku.includes(t.plan.sku.indexOf("_")>0?t.plan.sku.split("_")[0]:t.plan.sku)})),Uu.codigoOperadora==_v.VIVO&&(null===(n=this.order.svas)||void 0===n?void 0:n.length)>0&&(r=this.updatePlanValueWithSvaForVivo(r,this.order.plan.skusServico[this.order.plan.usedSkuServicoPosition])),t.plan||(this.order.plan=r),this.order.modalidade=e,this.order.plan.value=r.value,this.order.plan.valueDebit=r.valueDebit,this.order.plan.sku=r.sku,e===Ff.NovaLinha?(this.order.price=t.isDebit&&Uu.codigoOperadora===_v.CLARO?r.valueDebit:r.value,this.order.priceNoDiscount=r.value,this.order.plan.sku=r.sku):e===Ff.Migracao?(this.order.price=t.isDebit&&Uu.codigoOperadora===_v.CLARO?r.migracao.valueDebit:r.migracao.value,this.order.plan.sku=r.migracao.sku,this.order.priceNoDiscount=r.migracao.value,this.order.plan.value=r.migracao.value,this.order.plan.valueDebit=r.migracao.valueDebit):(this.order.price=t.isDebit&&Uu.codigoOperadora===_v.CLARO?r.portabilidade.valueDebit:r.portabilidade.value,this.order.plan.sku=r.portabilidade.sku,this.order.priceNoDiscount=r.portabilidade.value),Uu.codigoOperadora){case 41:this.order.plan.name=this.timService.getPlanName(t);break;default:this.order.plan.name=this.claroService.getPlanName(t.plan,r.portabilidade,i)}},t.prototype.setEmail=function(t,e){return Vf(this,void 0,void 0,(function(){var n;return Lf(this,(function(r){switch(r.label){case 0:if(e.finishedStep)return[2];r.label=1;case 1:return r.trys.push([1,3,,4]),this.order.personalData.email=t,e.finishedStep=!0,this.dataLayerService.push({event:"event",eventCategory:Uu.companyName.toLowerCase()+":avi",eventAction:"preencheu-campo",eventLabel:"email:sucesso",eventValue:1,track:"track",trackAction:"Lead"}),[4,this.interactionService.nextInteration()];case 2:return r.sent(),[3,4];case 3:return n=r.sent(),this.catchError(n),[3,4];case 4:return[2]}}))}))},t.prototype.setCpf=function(t,e){return Vf(this,void 0,void 0,(function(){var n,r,i;return Lf(this,(function(o){switch(o.label){case 0:return o.trys.push([0,16,,17]),e.finishedStep?[3,15]:(e.finishedStep=!0,[4,this.interactionService.getProccessPromise(this.wzService.getPersonalDataFromCpf(t,e.order.UidSession))]);case 1:return(n=o.sent())&&-1!=n.retcode&&-1!==n.retcode?[3,6]:(this.order.personalData.cpf=t,this.dataLayerService.push({event:"event",eventCategory:Uu.companyName.toLowerCase()+":avi",eventAction:"preencheu-campo",eventLabel:"cpf:nao-consegui-achar-seus-dados",eventValue:1}),"cpf-form-retry"!=this.interactionService.currentInteraction.id?[3,3]:[4,this.interactionService.nextInteractionCustom("personal-form")]);case 2:return o.sent(),[3,5];case 3:return[4,this.interactionService.nextInteractionCustom("cpf-form-retry")];case 4:o.sent(),o.label=5;case 5:return[2];case 6:return t=this.CensorCpf(t),r=this.order.personalData.email,this.order.personalData={cpf:t,name:n.name,firstName:n.name.includes(" ")?n.name.split(" ")[0]:n.name,motherName:n.mother,birthDate:n.birth,gender:n.gender,email:r},null==this.orderLiveTim.selectedPlan?[3,8]:[4,this.interactionService.getProccessPromise(this.CreateCartTimLive())];case 7:return null==o.sent()?(console.error("Erro ao criar o Carrinho"),[2]):[3,10];case 8:return[4,this.interactionService.getProccessPromise(this.updateCart())];case 9:o.sent(),o.label=10;case 10:this.dataLayerService.push({event:"event",eventCategory:Uu.companyName.toLowerCase()+":avi",eventAction:"preencheu-campo",eventLabel:"cpf:sucesso",eventValue:1,track:"track",trackAction:"Lead_com_cpf"}),o.label=11;case 11:return e.finishedStep=!0,Uu.codigoOperadora!==_v.VIVO?[3,13]:[4,this.interactionService.getProccessPromise(this.setPersonalData(n,e))];case 12:return o.sent(),[2];case 13:return[4,this.interactionService.nextInteration()];case 14:o.sent(),o.label=15;case 15:return[3,17];case 16:return i=o.sent(),this.catchError(i),[3,17];case 17:return[2]}}))}))},t.prototype.ValidateCpfTIM=function(){return Vf(this,void 0,void 0,(function(){return Lf(this,(function(t){switch(t.label){case 0:return[4,this.interactionService.nextInteration()];case 1:return t.sent(),[2]}}))}))},t.prototype.CensorCpf=function(t){return"*********"+t.substr(t.length-2)},t.prototype.setCep=function(t,e){return Vf(this,void 0,void 0,(function(){var n,r,i,o,a,s;return Lf(this,(function(c){switch(c.label){case 0:return c.trys.push([0,5,,6]),e.finishedStep?[3,4]:(e.finishedStep=!0,[4,this.interactionService.getProccessPromise(this.wzService.getAddressFromCep(t))]);case 1:return(n=c.sent().EnderecoCompleto)?[3,2]:(this.dataLayerService.push({event:"event",eventCategory:Uu.companyName.toLowerCase()+":avi",eventAction:"preencheu-campo",eventLabel:"cep:nao-consegui-achar-seus-dados",eventValue:1}),e.cepError="CEP n\xe3o localizado.",e.finishedStep=!1,[3,4]);case 2:return r=n.Uf,i=n.Cidade,o=n.Bairro,a=n.Endereco,this.order.userAddress={fullAddress:n&&i&&r&&o&&a?a+" - "+o+" - "+i+" - "+r:"",bairro:o,cep:n.Cep,cidade:i,logradouro:n.Logradouro,uf:r,idEndereco:n.IdEndereco,ddd:n.Ddd,endereco:a===i?"":a},this.dataLayerService.push({event:"event",eventCategory:Uu.companyName.toLowerCase()+":avi",eventAction:"preencheu-campo",eventLabel:"cep:sucesso",eventValue:1}),e.cepError=null,e.finishedStep=!0,[4,this.interactionService.nextInteration()];case 3:c.sent(),c.label=4;case 4:return[3,6];case 5:return s=c.sent(),this.catchError(s),[3,6];case 6:return[2]}}))}))},t.prototype.setAddress=function(t,e){return Vf(this,void 0,void 0,(function(){var n;return Lf(this,(function(r){switch(r.label){case 0:return r.trys.push([0,5,,6]),e.finishedStep?[3,4]:(this.order.userAddress.bairro=t.bairro,this.order.userAddress.cidade=t.cidade,this.order.userAddress.endereco=t.endereco,this.order.userAddress.complemento=t.complemento,this.order.userAddress.numero=t.numero,this.order.userAddress.uf=t.uf,31===Uu.codigoOperadora?[3,2]:[4,this.interactionService.getProccessPromise(this.wzService.updateAddress(this.order,this.order.plan.type,this.globalCfg))]);case 1:r.sent(),r.label=2;case 2:return e.finishedStep=!0,[4,this.interactionService.nextInteration()];case 3:r.sent(),this.dataLayerService.push({event:"event",eventCategory:Uu.companyName.toLowerCase()+":avi",eventAction:"clique:botao",eventLabel:"confirmar:info-endereco-e-email",eventValue:1}),r.label=4;case 4:return[3,6];case 5:return n=r.sent(),this.catchError(n),[3,6];case 6:return[2]}}))}))},t.prototype.setCreditCard=function(t,e){return Vf(this,void 0,void 0,(function(){var n;return Lf(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),e.finishedStep?[3,2]:(this.order.pan=t.number,this.order.cvv=t.cvv,t.expirationDate&&(this.order.ano=t.expirationDate.substr(2,6),this.order.mes=t.expirationDate.substr(0,2)),this.order.cpf=t.cpf,this.order.name=t.name,e.finishedStep=!0,[4,this.interactionService.nextInteration()]);case 1:r.sent(),r.label=2;case 2:return[3,4];case 3:return n=r.sent(),this.catchError(n),[3,4];case 4:return[2]}}))}))},t.prototype.setPersonalData=function(t,e){return Vf(this,void 0,void 0,(function(){var n;return Lf(this,(function(r){switch(r.label){case 0:return this.order.personalData={cpf:this.order.personalData.cpf,name:t.name,firstName:t.name.split(" ")[0],motherName:t.mother,birthDate:t.birth?t.birth.includes("/")?t.birth:t.birth.substr(0,2)+"/"+t.birth.substr(2,2)+"/"+t.birth.substr(4):null,email:this.order.personalData.email},n=!0,this.order.personalData.cpf.includes("*")?[3,2]:[4,this.interactionService.getProccessPromise(this.wzService.salvarCpf(this.order))];case 1:r.sent(),this.order.personalData.cpf=this.CensorCpf(this.order.personalData.cpf),r.label=2;case 2:return Uu.codigoOperadora===_v.VIVO?[3,4]:[4,this.interactionService.getProccessPromise(this.updateCart(n))];case 3:r.sent(),r.label=4;case 4:return Uu.isBroadband?[4,this.interactionService.getProccessPromise(this.CreateCartTimLive())]:[3,6];case 5:return null==r.sent()?(console.error("Erro ao criar o Carrinho"),[2]):[3,8];case 6:return[4,this.interactionService.getProccessPromise(this.wzService.setPersonalData(this.order,this.globalCfg,this.order.plan.sku,this.order.cartId,this.order.plan.type,this.order.personalData))];case 7:r.sent(),r.label=8;case 8:return this.dataLayerService.push({event:"event",eventCategory:Uu.companyName.toLowerCase()+":avi",eventAction:"preencheu-campo",eventLabel:"cpf:manual",eventValue:1,track:"track",trackAction:"Lead_com_cpf"}),e.finishedStep=!0,[4,this.interactionService.nextInteration()];case 9:return r.sent(),[2]}}))}))},t.prototype.updateCart=function(t){return void 0===t&&(t=!1),Vf(this,void 0,void 0,(function(){var e,n,r,i,o,a;return Lf(this,(function(s){switch(s.label){case 0:return this.order.plan&&(this.order.contactPhoneNumber||this.order.phoneNumber)?(Uu.codigoOperadora!==_v.OI&&Uu.codigoOperadora!==_v.TIM||this.order.cartId&&(this.order.cartId=null),Uu.codigoOperadora!==_v.OI?[3,2]:[4,this.interactionService.getProccessPromise(this.wzService.obterPorSku(this.order.plan.skuBoleto,this.globalCfg,this.order))]):[3,9];case 1:(e=s.sent())&&(this.order.plan.boletoName=e.Sku.Nome,this.order.plan.boletoValue=e.Sku.Valor,this.order.plan.boletoValueDesconto=e.Sku.ValorComDesconto),s.label=2;case 2:return n=this.wzService.createCartRequest(this.order,this.globalCfg,t),[4,this.wzService.createCartProxy(n,this.order.plan.type)];case 3:return r=s.sent(),n.Uid?[2]:((i=r.retorno.Uid||r.retorno.uid)||(i=r.retorno.UidCarrinho),this.order.cartId=i,this.order.plan.sku=r.retorno.codigoSku,this.globalCfg.autoFill?(this.order.isDebit=!1,[4,this.wzService.updateAddressAutoFill(this.order,this.globalCfg)]):[3,5]);case 4:s.sent(),s.label=5;case 5:return Uu.codigoOperadora!==_v.TIM?[3,8]:r.retorno.DiasVencimento?[3,7]:[4,this.wzService.getDiasVencimento()];case 6:(o=s.sent())&&(r.retorno.DiasVencimento=o.DiasVencimento),s.label=7;case 7:t&&this.wzService.setPersonalData(this.order,this.globalCfg,this.order.plan.sku,i,this.order.plan.type,this.order.personalData),s.label=8;case 8:a=void 0,r.retorno.dias&&Uu.codigoOperadora===_v.VIVO&&(a=r.retorno.dias.map((function(t){return t}))),r.retorno.DiasVencimento&&(a=r.retorno.DiasVencimento.map((function(t){return t.DiaVencimento}))),this.order.possibleDays=a,s.label=9;case 9:return[2]}}))}))},t.prototype.eligibilidade=function(t){return Vf(this,void 0,void 0,(function(){var e;return Lf(this,(function(n){switch(n.label){case 0:return t?[4,this.wzService.consultaEligibilidade(t)]:[3,2];case 1:if(e=n.sent())return[2,e.retorno.pagamentoCartaoElegivel];n.label=2;case 2:return[2,!1]}}))}))},t.prototype.setPayment=function(t,e){return Vf(this,void 0,void 0,(function(){return Lf(this,(function(n){switch(n.label){case 0:return e.finishedStep?[3,2]:(this.order.paymentDay=t,e.finishedStep=!0,[4,this.interactionService.nextInteration()]);case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},t.prototype.setConfirmation=function(t,e){return Vf(this,void 0,void 0,(function(){var n,r,i,o;return Lf(this,(function(a){switch(a.label){case 0:n=t.value,a.label=1;case 1:return a.trys.push([1,8,,9]),e.finishedStep?[3,7]:(e.finishedStep=!0,this.addChatStack(new gv("PureTextComponent","alternate",!0,{htmlText:n?"Sim":"N\xe3o"})),n&&"confirm-order"===e.content.id?(r=null,this.order.modalidade!=Ff.NovaLinha&&this.order.modalidade!=this.VerifyModality()&&this.changeModalidade(this.order,this.VerifyModality()),Uu.codigoOperadora!==_v.OI||e.globalCfg.validaToken?[3,3]:[4,this.interactionService.getProccessPromise(this.wzService.formaPagamento(this.order,this.globalCfg,0===e.order.plan.tipoAssinaturaPlano))]):[3,6]);case 2:return r=a.sent(),[3,5];case 3:return[4,this.interactionService.getProccessPromise(this.wzService.updatePayment(this.order,this.order.plan.type,this.globalCfg))];case 4:r=a.sent(),a.label=5;case 5:r.error?this.FlowErrorHandler(r):((i=r.retorno||r.Retorno).CodigoPedido&&(this.order.orderId=i.CodigoPedido),this.order.orderId||(this.order.orderId=i.codigoPedido)),a.label=6;case 6:this.interactionService.nextInterationConfirm(n),a.label=7;case 7:return[3,9];case 8:return o=a.sent(),this.FlowErrorHandler(o)?this.interactionService.nextInterationConfirm(n):this.catchError(o),[3,9];case 9:return[2]}}))}))},t.prototype.setDebitConfirmation=function(t,e){return Vf(this,void 0,void 0,(function(){var n,r,i,o,a;return Lf(this,(function(s){switch(s.label){case 0:return e.finishedStep?[3,2]:(e.finishedStep=!0,n=this.order.plan.valueDebit,r=this.order.plan.value,i=t&&(Uu.codigoOperadora===_v.CLARO||Uu.isBroadband)?n:r,o=e.content.debit?e.content.debit:e.content.debitConfig.btnText,a=null!=e.content.noDebit?e.content.noDebit:null!=e.content.noDebitConfig.btnText?e.content.noDebitConfig.btnTex:"",this.addChatStack(new gv("PureTextComponent","alternate",!0,{htmlText:t?o||e.content.debitConfig.btnText||"D\xe9bito Autom\xe1tico":a||e.content.noDebitConfig.btnText||"Fatura"})),this.order.isDebit=t,this.order.price=i,[4,this.interactionService.nextInterationConfirm(t)]);case 1:s.sent(),s.label=2;case 2:return[2]}}))}))},t.prototype.setToken=function(t,e){return Vf(this,void 0,void 0,(function(){var n,r;return Lf(this,(function(i){switch(i.label){case 0:if(i.trys.push([0,7,,8]),e.finishedStep)return[3,6];e.finishedStep=!0,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.interactionService.getProccessPromise(this.wzService.confirmSms(this.order.cartId,t,this.order.plan.type,this.order,this.globalCfg))];case 2:return n=i.sent(),this.order.orderId=n.retorno.CodigoPedido,this.order.orderId||(this.order.orderId=n.retorno.codigoPedido),this.order.isTokenValid=!!this.order.orderId,[3,4];case 3:if(i.sent(),this.order.isTokenValid=!1,Uu.codigoOperadora===_v.OI)throw new Error;return[3,4];case 4:return this.dataLayerService.push({event:"event",eventCategory:Uu.companyName.toLowerCase()+":avi",eventAction:"sms:token",eventLabel:e.content.htmlText,eventValue:1,track:"track",trackAction:"Token"}),[4,this.interactionService.nextInteration()];case 5:i.sent(),i.label=6;case 6:return[3,8];case 7:return r=i.sent(),this.catchError(r),[3,8];case 8:return[2]}}))}))},t.prototype.setBank=function(t,e){return Vf(this,void 0,void 0,(function(){var n,r;return Lf(this,(function(i){switch(i.label){case 0:return i.trys.push([0,5,,6]),e.finishedStep?[3,4]:((n=t.isConfirmed)?(this.order.isDebit=!0,this.order.bankInfo=t,this.order.price=Uu.codigoOperadora===_v.CLARO?this.order.plan.valueDebit:this.order.plan.value):(this.order.isDebit=!1,this.order.price=this.order.plan.value),this.dataLayerService.push({event:"event",eventCategory:Uu.companyName.toLowerCase()+":avi",eventAction:"clique:desconto",eventLabel:n?"sim":"n\xe3o",eventValue:1}),null==this.orderLiveTim.selectedPlan?[3,2]:(this.order.price=n?this.order.plan.value:this.order.plan.boletoValueDesconto,[4,this.wzService.putCartBandaLargaPaymentData(this.orderLiveTim.token,this.order)]));case 1:if(!i.sent().success)return console.error("Falha ao atualizar o carrinho!"),[2];i.label=2;case 2:return[4,this.interactionService.nextInterationConfirm(n)];case 3:i.sent(),e.finishedStep=!0,i.label=4;case 4:return[3,6];case 5:return r=i.sent(),this.catchError(r),[3,6];case 6:return[2]}}))}))},t.prototype.setPaymentInfo=function(t,e){return Vf(this,void 0,void 0,(function(){var t;return Lf(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),e.finishedStep?[3,2]:(e.finishedStep=!0,[4,this.interactionService.nextInteration()]);case 1:n.sent(),n.label=2;case 2:return[3,4];case 3:return t=n.sent(),this.catchError(t),[3,4];case 4:return[2]}}))}))},t.prototype.trackOrder=function(){window.open(Uu.trackOrderUrl,"_blank")},t.prototype.VerifyModality=function(){return this.order.codOperadoraPhone===Uu.codigoOperadora?Ff.Migracao:Ff.Portabilidade},t.prototype.DisplayOpsTimLive=function(t){this.addChatStack(new gv("PureTextComponent","primary",!0,{htmlText:t,htmlLink:Uu.redirectUrl}))},t.prototype.GetAvailabilityStatus=function(t){return Vf(this,void 0,void 0,(function(){var e,n,r,i,o,a;return Lf(this,(function(s){switch(s.label){case 0:return s.trys.push([0,6,,7]),this.addChatStack(new gv("PureTextComponent","primary",!0,{htmlText:"Consultando disponibilidade..."})),this.orderLiveTim.hasToken?[3,2]:[4,this.wzService.getAccessToken()];case 1:e=s.sent(),n=e.accessToken,"Bearer"==e.tokenType&&(this.orderLiveTim.hasToken=!0,this.orderLiveTim.token=n),s.label=2;case 2:return[4,this.wzService.getAvailability(t,this.orderLiveTim.token)];case 3:return(r=s.sent()).success&&r.data.isAvailable&&!r.data.isWttx?[4,this.interactionService.getProccessPromise(this.wzService.getAddressFromCep(t.cep))]:(this.DisplayOpsTimLive("Desculpe mas n\xe3o podemos lhe atender no momento.\n Mas relaxe, voc\xea pode ver nossas ofertas especiais em nosso portal!"),[2]);case 4:return i=s.sent(),(o={cep:i.EnderecoCompleto.Cep,uf:i.EnderecoCompleto.Uf,cidade:i.EnderecoCompleto.Cidade,bairro:i.EnderecoCompleto.Bairro,logradouro:i.EnderecoCompleto.Logradouro+i.EnderecoCompleto.Endereco,ddd:i.EnderecoCompleto.Ddd})&&(this.order.userAddress={cep:o.cep,numero:t.num,bairro:o.bairro,uf:o.uf,cidade:o.cidade,endereco:o.logradouro}),this.order.plans=null,this.orderLiveTim.plans=r.data.plans,this.orderLiveTim.type=r.data.isWttx?Uf.wttx:r.data.isIron?Uf.iron:Uf.fiber,[4,this.interactionService.nextInteration()];case 5:return s.sent(),[3,7];case 6:return a=s.sent(),console.error(a),this.catchErrorBandaLarga(a,"Desculpe mas n\xe3o podemos lhe atender no momento.\n Mas relaxe, voc\xea pode ver nossas ofertas especiais em nosso portal!"),[3,7];case 7:return[2]}}))}))},t.prototype.SelectLiveTimPlan=function(t){return Vf(this,void 0,void 0,(function(){var e,n;return Lf(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),e="TIM Live",this.orderLiveTim.selectedPlanName=e+=this.orderLiveTim.type==Uf.wttx?" R\xe1dio "+t.debit.details.name.full:" "+t.debit.details.name.full,this.addChatStack(new gv("PureTextComponent","alternate",!0,{htmlText:e})),this.orderLiveTim.sku=t.debit.skuCode,this.orderLiveTim.hasUpsell=!1,this.orderLiveTim.franchise=t.tag,null!=t.upSell&&null!=t.upSell&&(this.orderLiveTim.hasUpsell=!0,this.orderLiveTim.upsell=t.upSell),this.orderLiveTim.selectedPlan=t,[4,this.interactionService.nextInteration()];case 1:return r.sent(),[3,3];case 2:return n=r.sent(),this.catchErrorBandaLarga(n),[3,3];case 3:return[2]}}))}))},t.prototype.ConfirmLiveTimPlan=function(t){return Vf(this,void 0,void 0,(function(){var e;return Lf(this,(function(n){switch(n.label){case 0:return n.trys.push([0,5,,6]),0!=t?[3,2]:[4,this.interactionService.nextInteractionCustom("ask-negative")];case 1:return n.sent(),[3,4];case 2:return this.orderLiveTim.selectedPlan!==t&&(this.orderLiveTim.selectedPlan=t),this.order.plan={franchise:this.orderLiveTim.franchise,name:this.orderLiveTim.selectedPlanName,value:this.orderLiveTim.selectedPlan.debit.value.toString(),boletoName:this.orderLiveTim.selectedPlanName,boletoValue:this.orderLiveTim.selectedPlan.invoice.originalValue.toString(),boletoValueDesconto:this.orderLiveTim.selectedPlan.invoice.value.toString(),sku:this.orderLiveTim.selectedPlan.debit.skuCode,type:"Live-Tim",isDestaque:!1,isRegionalPlan:!1,isHighLighted:!1,initialOffer:!1,fidelizado:!1,modalidade:4,tipoAssinaturaPlano:4},this.order.price=t.debit.value.toString(),[4,this.interactionService.nextInteration()];case 3:n.sent(),n.label=4;case 4:return[3,6];case 5:return e=n.sent(),console.error(e),this.catchErrorBandaLarga(e),[3,6];case 6:return[2]}}))}))},t.prototype.CreateCartTimLive=function(t){return void 0===t&&(t=!1),Vf(this,void 0,void 0,(function(){var t,e;return Lf(this,(function(n){switch(n.label){case 0:return n.trys.push([0,4,,5]),Uu.codigoOperadora!=_v.TIM?(console.error("N\xe3o \xe9 TIM LIVE!"),[2]):null==this.orderLiveTim.selectedPlan||null==this.orderLiveTim.selectedPlan?[3,2]:[4,this.wzService.createTimLiveCartProxy(this.orderLiveTim)];case 1:return t=n.sent(),this.order.cartId=t.data.cartId,[2,t];case 2:console.error("Erro: N\xe3o h\xe1 plano selecionado, fluxo incorreto!"),n.label=3;case 3:return[3,5];case 4:return e=n.sent(),console.error(e),this.catchErrorBandaLarga(e),[3,5];case 5:return[2]}}))}))},t.prototype.UpdateBandaLargaCartAddress=function(t){return Vf(this,void 0,void 0,(function(){var e,n;return Lf(this,(function(r){switch(r.label){case 0:return r.trys.push([0,4,,5]),1!=t?(console.error("Erro desconhecido!"),[2]):[4,this.wzService.putCartBandaLargaAddress(this.orderLiveTim.token,this.order)];case 1:return r.sent().success?[4,this.UpdateBandaLargaCartPersonalData(!0)]:(console.error("Falha ao inserir o Endere\xe7o no carrinho!"),[2]);case 2:return(e=r.sent()).success&&null!=e?[4,this.interactionService.nextInteration()]:(console.error("Falha ao inserir os Dados Pessoais no carrinho!"),[2]);case 3:return r.sent(),[3,5];case 4:return n=r.sent(),console.error(n),this.catchErrorBandaLarga(n),[3,5];case 5:return[2]}}))}))},t.prototype.UpdateBandaLargaCartPersonalData=function(t){return Vf(this,void 0,void 0,(function(){var e,n;return Lf(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),1!=t?(console.error("Erro desconhecido!"),[2]):[4,this.wzService.putCartBandaLargaPersonalData(this.orderLiveTim.token,this.order,this.orderLiveTim)];case 1:return null==(e=r.sent())?console.error("Falha ao atualizar o carrinho! (inexistente)"):e.success||(console.error("Falha ao atualizar o carrinho!\nSucesso: "+e.success),console.error(e)),[2,e];case 2:return n=r.sent(),console.error(n),[3,3];case 3:return[2]}}))}))},t.prototype.LiveTimPaymentTypeSelection=function(t){return Vf(this,void 0,void 0,(function(){var e;return Lf(this,(function(n){switch(n.label){case 0:return n.trys.push([0,6,,7]),"true"!=t&&!0!==t?[3,2]:(this.order.isDebit=!0,[4,this.interactionService.nextInteration()]);case 1:return n.sent(),[3,5];case 2:return this.order.isDebit=!1,this.order.price=this.order.plan.boletoValueDesconto,this.orderLiveTim.selectedPlan.existInvoice||null!=this.orderLiveTim.selectedPlan.invoice?[4,this.wzService.putCartBandaLargaPaymentData(this.orderLiveTim.token,this.order)]:(console.error("Erro! N\xe3o existe Fatura para este plano!"),this.addChatStack(new gv("PureTextComponent","primary",!0,{htmlText:"Desculpe mas este plano n\xe3o est\xe1 dispon\xedvel para esta escolha. Confira outras op\xe7\xf5es em nosso portal:",htmlLink:Uu.redirectUrl})),[2]);case 3:return n.sent().success?[4,this.interactionService.nextInteration()]:(console.error("Falha ao atualizar o carrinho!"),[2]);case 4:n.sent(),n.label=5;case 5:return[3,7];case 6:return e=n.sent(),console.error(e),this.catchErrorBandaLarga(e),[3,7];case 7:return[2]}}))}))},t.prototype.UpdateBandaLargaCartItens=function(t,e){return Vf(this,void 0,void 0,(function(){var n,r;return Lf(this,(function(i){switch(i.label){case 0:return i.trys.push([0,5,,6]),n=t.value,e.finishedStep?[2]:(e.finishedStep=!0,this.addChatStack(new gv("PureTextComponent","alternate",!0,{htmlText:n?"Sim":"N\xe3o"})),n?[4,this.wzService.putCartBandaLargaItens(this.orderLiveTim.token,this.order,this.orderLiveTim)]:[3,3]);case 1:return i.sent().success?[4,this.interactionService.getProccessPromise(this.CreateOrder())]:(console.error("Falha ao atualizar o carrinho!"),[2]);case 2:return i.sent(),[3,4];case 3:this.restartBandaLarga(),i.label=4;case 4:return this.interactionService.nextInterationConfirm(n),[3,6];case 5:return r=i.sent(),console.error(r),this.catchErrorBandaLarga(r),[3,6];case 6:return[2]}}))}))},t.prototype.CreateOrder=function(){return Vf(this,void 0,void 0,(function(){var t,e;return Lf(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.wzService.CreateBandaLargaOrder(this.orderLiveTim.token,this.order)];case 1:return(t=n.sent()).success?(this.order.orderId=t.data.orderNumber,[3,3]):(console.error("Falha ao atualizar o carrinho!"),this.catchErrorBandaLarga(t),[2]);case 2:return e=n.sent(),console.error(e),this.catchErrorBandaLarga(e),[3,3];case 3:return[2]}}))}))},t.prototype.DevelopmentHelper=function(){return Vf(this,void 0,void 0,(function(){return Lf(this,(function(t){switch(t.label){case 0:return[4,this.interactionService.nextInteration()];case 1:return t.sent(),[2]}}))}))},t.prototype.ConfirmHandler=function(t,e){return Vf(this,void 0,void 0,(function(){return Lf(this,(function(n){switch(n.label){case 0:return t.isBroadband?[4,this.UpdateBandaLargaCartItens(t,e)]:[3,2];case 1:return n.sent(),[3,4];case 2:return[4,this.setConfirmation(t,e)];case 3:n.sent(),n.label=4;case 4:return[2]}}))}))},t.prototype.scrollToBottom=function(){try{window.scrollTo(0,document.body.scrollHeight)}catch(t){}},t.prototype.catchError=function(t){Uu.codigoOperadora===_v.OI&&(this.msgCliente="OPS, essa oferta est\xe1 dispon\xedvel apenas para Oi pr\xe9.\n Verifique o n\xfamero digitado."),this.addChatStack(new gv("PureTextComponent","primary",!0,{htmlText:this.msgCliente,htmlLink:this.isTimPos?"https://pos.tim.com.br/?utm_source=wooza&utm_medium=avi&utm_campaing=erro_ops_2.0":Uu.redirectUrl})),this.dataLayerService.push({event:"event",eventCategory:Uu.companyName.toLowerCase()+":avi",eventAction:"ERRO",eventLabel:t})},t.prototype.catchErrorBandaLarga=function(t,e){this.addChatStack(new gv("PureTextComponent","primary",!0,{htmlText:e||this.msgCliente,htmlLink:Uu.redirectUrl})),this.dataLayerService.push({event:"event",eventCategory:Uu.companyName.toLowerCase()+":avi",eventAction:"ERRO",eventLabel:t})},t.prototype.addChatStack=function(t){if(this.chatStack.push(t),this.chatSession){var e=this.interactionService.currentInteraction?this.interactionService.currentInteraction.nextId:"intro";Uu.codigoOperadora!==_v.OI||this.interactionService.currentInteraction||this.order.phoneNumber||(e="ask-phone"),"PureTextComponent"!=t.component&&this.logService.saveLogAsync(t,this.chatSession,e),this.dataLayerService.addChatStackToDataLayer(this.order,t)}},t.prototype.SetPageTitle=function(t){this.titleService.setTitle(t)},t.prototype.FlowErrorHandler=function(t){var e,n=t;console.error(t);var r=(null===(e=n.error)||void 0===e?void 0:e.Retorno)?n.error.Retorno.ProximoPasso:n.error.retorno.ProximoPasso;switch(null==r&&(console.error("no error on response!"),r=n.retorno.ProximoPasso),r){case 61:case 62:if(this.order.needRetryCreditCard)throw this.order.needRetryCreditCard=!1,new Error("Excedido o n\xfamero de retentativas do cart\xe3o");return this.order.needRetryCreditCard=!0,this.order.offerCreditCard=!1,!0;default:return this.catchError(t),!1}},t.\u0275fac=function(e){return new(e||t)(Wa(mv),Wa(pv),Wa(fm),Wa(hv),Wa(Gf),Wa(fv),Wa(vv),Wa($d),Wa(bv))},t.\u0275cmp=Ee({type:t,selectors:[["app-root"]],decls:9,vars:7,consts:[["src","https://www.googletagmanager.com/ns.html?id=GTM-K5FZD4W","height","0","width","0",2,"display","none","visibility","hidden"],[3,"safeUrl","closeModal",4,"ngIf"],["id","App"],[3,"isTyping","chatStack"],[3,"ngSwitch",4,"ngFor","ngForOf"],[3,"safeUrl","closeModal"],[3,"ngSwitch"],[3,"chatItem",4,"ngSwitchCase"],[3,"chatItem","resolution",4,"ngSwitchCase"],[3,"chatItem","dddSet",4,"ngSwitchCase"],[3,"chatItem","setPhone",4,"ngSwitchCase"],[3,"chatItem","emailSet",4,"ngSwitchCase"],[3,"chatItem","cpfSet",4,"ngSwitchCase"],[3,"chatItem","cepSet",4,"ngSwitchCase"],[3,"chatItem","addressSet",4,"ngSwitchCase"],[3,"chatItem","ccSet",4,"ngSwitchCase"],[3,"chatItem","personalDataSet",4,"ngSwitchCase"],[3,"chatItem","paymentDaySet",4,"ngSwitchCase"],[3,"operatorCode","chatItem","resolution","openContract",4,"ngSwitchCase"],[3,"chatItem","tokenSet",4,"ngSwitchCase"],[3,"chatItem","bankInfoSet",4,"ngSwitchCase"],[3,"colorVariant","chatItem","goToOrder",4,"ngSwitchCase"],[3,"chatItem","paymentMethodSet",4,"ngSwitchCase"],[3,"chatItem","paymentInfoSet",4,"ngSwitchCase"],[3,"chatItem","vivoSva",4,"ngSwitchCase"],[3,"chatItem","checkAvailability",4,"ngSwitchCase"],[3,"chatItem","selection",4,"ngSwitchCase"],[3,"chatItem","confirmation",4,"ngSwitchCase"],[3,"chatItem"],[3,"chatItem","resolution"],[3,"chatItem","dddSet"],[3,"chatItem","setPhone"],[3,"chatItem","emailSet"],[3,"chatItem","cpfSet"],[3,"chatItem","cepSet"],[3,"chatItem","addressSet"],[3,"chatItem","ccSet"],[3,"chatItem","personalDataSet"],[3,"chatItem","paymentDaySet"],[3,"operatorCode","chatItem","resolution","openContract"],[3,"chatItem","tokenSet"],[3,"chatItem","bankInfoSet"],[3,"colorVariant","chatItem","goToOrder"],[3,"chatItem","paymentMethodSet"],[3,"chatItem","paymentInfoSet"],[3,"chatItem","vivoSva"],[3,"chatItem","checkAvailability"],[3,"chatItem","selection"],[3,"chatItem","confirmation"]],template:function(t,e){1&t&&(Ya(0,"noscript"),Ja(1,"iframe",0),Ka(),Ha(2,Nk,1,1,"app-contract-modal",1),Ha(3,Dk,1,1,"app-contract-modal",1),Ya(4,"div",2),Ya(5,"main"),Ja(6,"app-header",3),Fc(7,"async"),Ha(8,yO,38,38,"ng-container",4),Ka(),Ka()),2&t&&(ji(2),$a("ngIf",e.contractModalService.isOpen&&!e.isBroadband),ji(1),$a("ngIf",e.contractModalService.isOpen&&e.isBroadband),ji(3),$a("isTyping",jc(7,5,e.isTyping$))("chatStack",e.chatStack),ji(2),$a("ngForOf",e.chatStack))},directives:[Jl,cb,Yl,db,ed,nd,mb,bb,_b,Fb,jb,qb,$b,p_,v_,m_,b_,C_,S_,z_,H_,$_,nC,aC,cC,fC,vC,DC,QC,tw,nw,Fw,zw,Bw,Kw,Xw,rk,ok,lk,vk,xk,Ik,Ak],pipes:[cd],encapsulation:2}),t}(),_O=[],CO=function(){function t(){}return t.\u0275mod=De({type:t}),t.\u0275inj=Mt({factory:function(e){return new(e||t)},imports:[[Zy.forRoot(_O)],Zy]}),t}(),wO=function(){function t(){}return t.\u0275mod=De({type:t}),t.\u0275inj=Mt({factory:function(e){return new(e||t)},imports:[[ld,N_,Nf,Zb,wf,kf],ld,wf,Nf,kf]}),t}(),kO=function(){function t(){}return t.\u0275mod=De({type:t}),t.\u0275inj=Mt({factory:function(e){return new(e||t)},imports:[[wO],wO]}),t}(),OO=function(){function t(){}return t.\u0275mod=De({type:t}),t.\u0275inj=Mt({factory:function(e){return new(e||t)},imports:[[qd,ld,wf,kO,kf,l_]]}),t}(),PO=function(){function t(){}return t.prototype.setPlan=function(t){},t.\u0275prov=St({token:t,factory:t.\u0275fac=function(e){return new(e||t)}}),t}(),xO=function(){function t(){this.OiId="1628427594126419",this.productCategory="Oi Controle",this.product_type="Wooza",this.loadFacebookPixelOi(this.OiId),this.windowRef=window,this.datalayer=this.windowRef.dataLayer||[],this.windowRef.fbq("track","ViewContent")}return t.prototype.loadFacebookPixelOi=function(t){var e,n,r,i,o,a;e=window,n=document,r="script",e.fbq||(i=e.fbq=function(){i.callMethod?i.callMethod.apply(i,arguments):i.queue.push(arguments)},e._fbq||(e._fbq=i),i.push=i,i.loaded=!0,i.version="2.0",i.queue=[],(o=n.createElement(r)).async=!0,o.src="https://connect.facebook.net/en_US/fbevents.js",(a=n.getElementsByTagName(r)[0]).parentNode.insertBefore(o,a)),window.fbq.disablePushState=!0,window.fbq("init",t),window.fbq("track","PageView")},t.prototype.push=function(t){t.track&&t.trackAction?this.windowRef.fbq(t.track,t.trackAction,{event:t.event,eventCategory:t.eventCategory,eventAction:t.eventAction,eventLabel:t.eventLabel,eventValue:t.eventValue,productCategory:this.productCategory,product_type:this.product_type}):this.datalayer.push({event:t.event,eventCategory:t.eventCategory,eventAction:t.eventAction,eventLabel:t.eventLabel,eventValue:t.eventValue})},t.prototype.pushDimension=function(t){},t.prototype.tagGlobalDimensions=function(t){},t.prototype.tagAddToCart=function(t){this.windowRef.fbq("track","AddToCart",{event:"addToCart",eventCategory:"enhanced-ecommerce",eventAction:"addToCart",eventLabel:"oi:avi",productCategory:this.productCategory,product_type:this.product_type,ecommerce:{add:{products:[{name:t.plan.name,id:t.plan.sku,price:t.price,brand:"oi-"+t.plan.type,category:t.plan.type}]}}})},t.prototype.tagCheckoutPasso1=function(t,e){switch(e){case 1:this.tagCheckout(t,"manter-numero-oi",1);break;case 2:this.tagCheckout(t,"trazer-numero-oi",1);break;case 3:this.tagCheckout(t,"quero-numero-oi",1)}},t.prototype.tagCheckoutPasso2=function(t){this.tagCheckout(t,"dados-pessoais",2)},t.prototype.tagCheckoutPasso3=function(t){this.tagCheckout(t,"pagamento",3)},t.prototype.tagCheckout=function(t,e,n){this.windowRef.fbq("track","Checkout",{event:"checkout",eventCategory:"enhanced-ecommerce",eventAction:"checkout:"+e,eventLabel:"oi:avi",productCategory:this.productCategory,product_type:this.product_type,ecommerce:{checkout:{actionField:{step:n},products:[{name:t.plan.name,id:t.plan.sku,price:t.price,brand:"oi-"+t.plan.type,category:t.plan.type,variant:"",quantity:1}]}}})},t.prototype.tagPurchase=function(t){21===Uu.codigoOperadora&&this.windowRef.fbq("track","Purchase",{event:"purchase",eventCategory:"enhanced-ecommerce",eventAction:"purchase",eventLabel:"oi:avi",productCategory:this.productCategory,product_type:this.product_type,ecommerce:{purchase:{actionField:{id:t.orderId,affiliation:"oi-movel:promocoesoi.com.br",revenue:t.price},products:[{name:t.plan.name,id:t.plan.sku,price:t.price,brand:"oi-"+t.plan.type,category:t.plan.type,variant:"",quantity:1}]}}})},t.prototype.pushModality=function(t){},t.prototype.addChatStackToDataLayer=function(t,e){return Vf(this,void 0,void 0,(function(){var n;return Lf(this,(function(r){switch(n=t.source,e.content.id){case"ask-phone":this.push({event:"event-wza",eventCategory:"oi-avi-"+n,eventAction:"01 - Telefone",eventLabel:"",eventValue:1});break;case"plan-selection":this.push({event:"event-wza",eventCategory:"oi-avi-"+n,eventAction:"02 - Plano",eventLabel:"",eventValue:2});break;case"email-form":this.push({event:"event-wza",eventCategory:"oi-avi-"+n,eventAction:"03 - E-mail",eventLabel:"",eventValue:3});break;case"cpf-form":this.push({event:"event-wza",eventCategory:"oi-avi-"+n,eventAction:"04 - CPF",eventLabel:"",eventValue:4});break;case"payment-method":this.push({event:"event-wza",eventCategory:"oi-avi-"+n,eventAction:"05 - Forma de Pagamento",eventLabel:"",eventValue:5});break;case"validate-phone":this.push({event:"event-wza",eventCategory:"oi-avi-"+n,eventAction:"06 - Token",eventLabel:"",eventValue:6});break;case"credit-card-form":this.push({event:"event-wza",eventCategory:"oi-avi-"+n,eventAction:"07 - Dados Cart\xe3o",eventLabel:"",eventValue:6});break;case"confirm-order":this.push({event:"event-wza",eventCategory:"oi-avi-"+n,eventAction:"08 - Resumo pedido",eventLabel:"",eventValue:8});break;case"show-order-number":this.push({event:"event-wza",eventCategory:"oi-avi-"+n,eventAction:"09 - Pedido",eventLabel:"",eventValue:9}),this.tagPurchase(t)}return[2]}))}))},t.\u0275prov=St({token:t,factory:t.\u0275fac=function(e){return new(e||t)}}),t}(),IO=function(){function t(){this.addedPlan=!1;var t=window;this.datalayer=t.dataLayer||[]}return t.prototype.push=function(t){this.datalayer.push({event:t.event,eventCategory:t.eventCategory,eventAction:t.eventAction,eventLabel:t.eventLabel,eventValue:t.eventValue})},t.prototype.pushModality=function(t){1===t?this.datalayer.push({Modalidade:"migracao"}):2===t?this.datalayer.push({Modalidade:"portabilidade"}):3===t&&this.datalayer.push({Modalidade:"nova linha"})},t.prototype.pushDimension=function(t){},t.prototype.tagGlobalDimensions=function(t){},t.prototype.tagAddToCart=function(t){this.datalayer.find((function(t){return"addToCart"===t.event}))||this.datalayer.push({event:"addToCart",eventCategory:"enhanced-ecommerce",eventAction:"addToCart",eventLabel:"tim:avi",ecommerce:{add:{products:[{name:t.plan.name,id:t.plan.sku,price:t.price,brand:"tim-"+t.plan.type,category:t.plan.type}]}}})},t.prototype.tagCheckout=function(t,e,n){t.plan&&this.datalayer.push({event:"checkout",eventCategory:"enhanced-ecommerce",eventAction:"checkout:"+e,eventLabel:"tim:avi",ecommerce:{checkout:{actionField:{step:n},products:[{name:t.plan.name,id:t.plan.sku,price:t.price,brand:"tim-"+t.plan.type,category:t.plan.type,variant:"",quantity:1}]}}})},t.prototype.tagPurchase=function(t){this.datalayer.push({event:"purchase",eventCategory:"enhanced-ecommerce",eventAction:"purchase",eventLabel:"tim:avi",ecommerce:{purchase:{actionField:{id:t.orderId,affiliation:"tim-movel:timcontrolepromo.com.br",revenue:t.price},products:[{name:t.plan.name,id:t.plan.sku,price:t.price,brand:"tim-"+t.plan.type,category:t.plan.type,variant:"",quantity:1,franchise:t.plan.franchise}]}}})},t.prototype.addChatStackToDataLayer=function(t,e){return Vf(this,void 0,void 0,(function(){var n;return Lf(this,(function(r){switch(n=t.source,e.content.id){case"show-plan":case"plan-selection":this.addedPlan||(this.addedPlan=!0,this.push({event:"event-wza",eventCategory:"tim-avi-"+n,eventAction:"01 - Plano",eventLabel:"",eventValue:1}),this.tagCheckout(t,"escolha-plano",1));break;case"ask-modalidade":this.push({event:"event-wza",eventCategory:"tim-avi-"+n,eventAction:"02 - Modalidade",eventLabel:"",eventValue:2}),this.tagCheckout(t,"escolha-modalidade",2);break;case"email-form":this.push({event:"event-wza",eventCategory:"tim-avi-"+n,eventAction:"03 - Email",eventLabel:"",eventValue:1});break;case"ask-phone":this.push({event:"event-wza",eventCategory:"tim-avi-"+n,eventAction:"04 - Telefone",eventLabel:"",eventValue:3}),this.tagCheckout(t,"insercao-telefone",3);break;case"cpf-form":this.push({event:"event-wza",eventCategory:"tim-avi-"+n,eventAction:"05 - CPF",eventLabel:"",eventValue:4}),this.tagCheckout(t,"insercao-cpf",4);break;case"cep-form":this.push({event:"event-wza",eventCategory:"tim-avi-"+n,eventAction:"06 - CEP",eventLabel:"",eventValue:5}),this.tagCheckout(t,"insercao-cep",5);break;case"address-form":this.push({event:"event-wza",eventCategory:"tim-avi-"+n,eventAction:"07 - Endereco",eventLabel:"",eventValue:6}),this.tagCheckout(t,"insercao-endereco",6);break;case"payment-day":this.push({event:"event-wza",eventCategory:"tim-avi-"+n,eventAction:"08 - Data Fatura",eventLabel:"",eventValue:7}),this.tagCheckout(t,"escolha-data-fatura",7);break;case"debit":this.push({event:"event-wza",eventCategory:"tim-avi-"+n,eventAction:"09 - Debito autom\xe1tico",eventLabel:"",eventValue:8}),this.tagCheckout(t,"escolha-debito-automatico",8);break;case"bank-form":this.push({event:"event-wza",eventCategory:"tim-avi-"+n,eventAction:"10 - Dados banc\xe1rios",eventLabel:"",eventValue:9}),this.tagCheckout(t,"insercao-dados-bancarios",9);break;case"confirm-order":this.push({event:"event-wza",eventCategory:"tim-avi-"+n,eventAction:"11 - Resumo pedido",eventLabel:"",eventValue:10}),this.tagCheckout(t,"exibicao-resumo-pedido",10);break;case"validate-phone":this.push({event:"event-wza",eventCategory:"tim-avi-"+n,eventAction:"12 - Confirmacao",eventLabel:"",eventValue:11}),this.tagCheckout(t,"escolha-confirmacao-pedido",11);break;case"show-order-number":this.push({event:"event-wza",eventCategory:"tim-avi-"+n,eventAction:"13 - Pedido",eventLabel:"",eventValue:12}),this.tagPurchase(t),this.tagCheckout(t,"pagamento",12)}return[2]}))}))},t.\u0275prov=St({token:t,factory:t.\u0275fac=function(e){return new(e||t)}}),t}(),SO=function(){function t(){var t=window;this.datalayer=t.dataLayer||[]}return t.prototype.push=function(t){},t.prototype.pushModality=function(t){},t.prototype.pushDimension=function(t){},t.prototype.tagGlobalDimensions=function(t){},t.prototype.tagAddToCart=function(t){},t.prototype.tagCheckoutPasso1=function(t,e){},t.prototype.tagCheckoutPasso2=function(t){},t.prototype.tagCheckoutPasso3=function(t){},t.prototype.tagCheckout=function(t,e,n){},t.prototype.tagPurchase=function(t){},t.prototype.addChatStackToDataLayer=function(t,e){return Vf(this,void 0,void 0,(function(){return Lf(this,(function(t){return[2]}))}))},t.\u0275prov=St({token:t,factory:t.\u0275fac=function(e){return new(e||t)}}),t}(),MO=function(){function t(){}return t.\u0275mod=De({type:t}),t.\u0275inj=Mt({factory:function(e){return new(e||t)},providers:[Rf,yv,Z_,pv,$d,PO,hv,vv,bv,{provide:Gf,useClass:31===Uu.codigoOperadora?xO:41===Uu.codigoOperadora?IO:15===Uu.codigoOperadora?SO:Gf}],imports:[[qd,ld]]}),t}(),EO={provide:Nr,useClass:function(){function t(){}return t.prototype.handleError=function(t){window.ineum("reportError",t.originalError||t)},t.\u0275prov=St({token:t,factory:t.\u0275fac=function(e){return new(e||t)}}),t}()},TO=function(){function t(){}return t.\u0275mod=De({type:t,bootstrap:[bO]}),t.\u0275inj=Mt({factory:function(e){return new(e||t)},providers:[EO],imports:[[qd,Th,Nf.forRoot(),ld,CO,kO,MO,OO]]}),t}();Uu.production&&function(){if(Hr)throw new Error("Cannot enable prod mode after platform setup.");Gr=!1}(),Gd().bootstrapModule(TO).catch((function(t){return console.error(t)}))}},[[0,0]]]);