1(()=>{"use strict";var e,v={},_={};function r(e){var a=_[e];if(void 0!==a)return a.exports;var t=_[e]={exports:{}};return v[e].call(t.exports,t,t.exports,r),t.exports}r.m=v,e=[],r.O=(a,t,o,i)=>{if(!t){var n=1/0;for(f=0;f<e.length;f++){for(var[t,o,i]=e[f],d=!0,u=0;u<t.length;u++)(!1&i||n>=i)&&Object.keys(r.O).every(b=>r.O[b](t[u]))?t.splice(u--,1):(d=!1,i<n&&(n=i));if(d){e.splice(f--,1);var s=o();void 0!==s&&(a=s)}}return a}i=i||0;for(var f=e.length;f>0&&e[f-1][2]>i;f--)e[f]=e[f-1];e[f]=[t,o,i]},r.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return r.d(a,{a}),a},(()=>{var a,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;r.t=function(t,o){if(1&o&&(t=this(t)),8&o||"object"==typeof t&&t&&(4&o&&t.__esModule||16&o&&"function"==typeof t.then))return t;var i=Object.create(null);r.r(i);var f={};a=a||[null,e({}),e([]),e(e)];for(var n=2&o&&t;"object"==typeof n&&!~a.indexOf(n);n=e(n))Object.getOwnPropertyNames(n).forEach(d=>f[d]=()=>t[d]);return f.default=()=>t,r.d(i,f),i}})(),r.d=(e,a)=>{for(var t in a)r.o(a,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((a,t)=>(r.f[t](e,a),a),[])),r.u=e=>e+".js",r.miniCssF=e=>{},r.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={},a="customer-center:";r.l=(t,o,i,f)=>{if(e[t])e[t].push(o);else{var n,d;if(void 0!==i)for(var u=document.getElementsByTagName("script"),s=0;s<u.length;s++){var c=u[s];if(c.getAttribute("src")==t||c.getAttribute("data-webpack")==a+i){n=c;break}}n||(d=!0,(n=document.createElement("script")).type="module",n.charset="utf-8",n.timeout=120,r.nc&&n.setAttribute("nonce",r.nc),n.setAttribute("data-webpack",a+i),n.src=r.tu(t)),e[t]=[o];var l=(g,b)=>{n.onerror=n.onload=null,clearTimeout(p);var m=e[t];if(delete e[t],n.parentNode&&n.parentNode.removeChild(n),m&&m.forEach(y=>y(b)),g)return g(b)},p=setTimeout(l.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=l.bind(null,n.onerror),n.onload=l.bind(null,n.onload),d&&document.head.appendChild(n)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:a=>a},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(o,i)=>{var f=r.o(e,o)?e[o]:void 0;if(0!==f)if(f)i.push(f[2]);else if(666!=o){var n=new Promise((c,l)=>f=e[o]=[c,l]);i.push(f[2]=n);var d=r.p+r.u(o),u=new Error;r.l(d,c=>{if(r.o(e,o)&&(0!==(f=e[o])&&(e[o]=void 0),f)){var l=c&&("load"===c.type?"missing":c.type),p=c&&c.target&&c.target.src;u.message="Loading chunk "+o+" failed.\n("+l+": "+p+")",u.name="ChunkLoadError",u.type=l,u.request=p,f[1](u)}},"chunk-"+o,o)}else e[o]=0},r.O.j=o=>0===e[o];var a=(o,i)=>{var u,s,[f,n,d]=i,c=0;if(f.some(p=>0!==e[p])){for(u in n)r.o(n,u)&&(r.m[u]=n[u]);if(d)var l=d(r)}for(o&&o(i);c<f.length;c++)r.o(e,s=f[c])&&e[s]&&e[s][0](),e[s]=0;return r.O(l)},t=self.webpackChunkcustomer_center=self.webpackChunkcustomer_center||[];t.forEach(a.bind(null,0)),t.push=a.bind(null,t.push.bind(t))})()})(); 2"use strict";(self.webpackChunkcustomer_center=self.webpackChunkcustomer_center||[]).push([[429],{1324:(pe,we,Re)=>{Re(4514)},4514:function(pe,we,Re){var de,De,Ie=this&&this.__assign||function(){return Ie=Object.assign||function(se){for(var Ee,ye=1,Be=arguments.length;ye<Be;ye++)for(var Oe in Ee=arguments[ye])Object.prototype.hasOwnProperty.call(Ee,Oe)&&(se[Oe]=Ee[Oe]);return se},Ie.apply(this,arguments)};de=function(){!function(e){var t,i=e.performance;function a(h){i&&i.mark&&i.mark(h)}function s(h,r){i&&i.measure&&i.measure(h,r)}a("Zone");var f=e.__Zone_symbol_prefix||"__zone_symbol__";function _(h){return f+h}var E=!0===e[_("forceDuplicateZoneCheck")];if(e.Zone){if(E||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}var b=function(){function h(r,n){this._parent=r,this._name=n?n.name||"unnamed":"<root>",this._properties=n&&n.properties||{},this._zoneDelegate=new m(this,this._parent&&this._parent._zoneDelegate,n)}return h.assertZonePatched=function(){if(e.Promise!==X.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(h,"root",{get:function(){for(var r=t.current;r.parent;)r=r.parent;return r}
2,enumerable:!1,configurable:!0}),Object.defineProperty(h,"current",{get:function(){return K.zone},enumerable:!1,configurable:!0}),Object.defineProperty(h,"currentTask",{get:function(){return ne},enumerable:!1,configurable:!0}),h.__load_patch=function(r,n,o){if(void 0===o&&(o=!1),X.hasOwnProperty(r)){if(!o&&E)throw Error("Already loaded patch: "+r)}else if(!e["__Zone_disable_"+r]){var p="Zone:"+r;a(p),X[r]=n(e,t,ae),s(p,p)}},Object.defineProperty(h.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),h.prototype.get=function(r){var n=this.getZoneWith(r);if(n)return n._properties[r]},h.prototype.getZoneWith=function(r){for(var n=this;n;){if(n._properties.hasOwnProperty(r))return n;n=n._parent}return null},h.prototype.fork=function(r){if(!r)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,r)},h.prototype.wrap=function(r,n){if("function"!=typeof r)throw new Error("Expecting function got: "+r);var o=this._zoneDelegate.intercept(this,r,n),p=this;return function(){return p.runGuarded(o,this,arguments,n)}},h.prototype.run=function(r,n,o,p){K={parent:K,zone:this};try{return this._zoneDelegate.invoke(this,r,n,o,p)}finally{K=K.parent}},h.prototype.runGuarded=function(r,n,o,p){void 0===n&&(n=null),K={parent:K,zone:this};try{try{return this._zoneDelegate.invoke(this,r,n,o,p)}catch(z){if(this._zoneDelegate.handleError(this,z))throw z}}finally{K=K.parent}},h.prototype.runTask=function(r,n,o){if(r.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(r.zone||re).name+"; Execution: "+this.name+")");if(r.state!==F||r.type!==O&&r.type!==L){var p=r.state!=y;p&&r._transitionTo(y,B),r.runCount++;var z=ne;ne=r,K={parent:K,zone:this};try{r.type==L&&r.data&&!r.data.isPeriodic&&(r.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,r,n,o)}catch(u){if(this._zoneDelegate.handleError(this,u))throw u}}finally{r.state!==F&&r.state!==D&&(r.type==O||r.data&&r.data.isPeriodic?p&&r._transitionTo(B,y):(r.runCount=0,this._updateTaskCount(r,-1),p&&r._transitionTo(F,y,F))),K=K.parent,ne=z}}},h.prototype.scheduleTask=function(r){if(r.zone&&r.zone!==this)for(var n=this;n;){if(n===r.zone)throw Error("can not reschedule task to ".concat(this.name," which is descendants of the original zone ").concat(r.zone.name));n=n.parent}r._transitionTo(x,F);var o=[];r._zoneDelegates=o,r._zone=this;try{r=this._zoneDelegate.scheduleTask(this,r)}catch(p){throw r._transitionTo(D,x,F),this._zoneDelegate.handleError(this,p),p}return r._zoneDelegates===o&&this._updateTaskCount(r,1),r.state==x&&r._transitionTo(B,x),r},h.prototype.scheduleMicroTask=function(r,n,o,p){return this.scheduleTask(new P(R,r,n,o,p,void 0))},h.prototype.scheduleMacroTask=function(r,n,o,p,z){return this.scheduleTask(new P(L,r,n,o,p,z))},h.prototype.scheduleEventTask=function(r,n,o,p,z){return this.scheduleTask(new P(O,r,n,o,p,z))},h.prototype.cancelTask=function(r){if(r.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(r.zone||re).name+"; Execution: "+this.name+")");if(r.state===B||r.state===y){r._transitionTo(W,B,y);try{this._zoneDelegate.cancelTask(this,r)}catch(n){throw r._transitionTo(D,W),this._zoneDelegate.handleError(this,n),n}return this._updateTaskCount(r,-1),r._transitionTo(F,W),r.runCount=0,r}},h.prototype._updateTaskCount=function(r,n){var o=r._zoneDelegates;-1==n&&(r._zoneDelegates=null);for(var p=0;p<o.length;p++)o[p]._updateTaskCount(r.type,n)},h}();(t=b).__symbol__=_;var V,g={name:"",onHasTask:function(h,r,n,o){return h.hasTask(n,o)},onScheduleTask:function(h,r,n,o){return h.scheduleTask(n,o)},onInvokeTask:function(h,r,n,o,p,z){return h.invokeTask(n,o,p,z)},onCancelTask:function(h,r,n,o){return h.cancelTask(n,o)}},m=function(){function h(r,n,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=r,this._parentDelegate=n,this._forkZS=o&&(o&&o.onFork?o:n._forkZS),this._forkDlgt=o&&(o.onFork?n:n._forkDlgt),this._forkCurrZone=o&&(o.onFork?this.zone:n._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:n._interceptZS),this._interceptDlgt=o&&
vendor: 4,271 bytes, line 2
2(o.onIntercept?n:n._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this.zone:n._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:n._invokeZS),this._invokeDlgt=o&&(o.onInvoke?n:n._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this.zone:n._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:n._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?n:n._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this.zone:n._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:n._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?n:n._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this.zone:n._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:n._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?n:n._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this.zone:n._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:n._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?n:n._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this.zone:n._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;var p=o&&o.onHasTask;(p||n&&n._hasTaskZS)&&(this._hasTaskZS=p?o:g,this._hasTaskDlgt=n,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=r,o.onScheduleTask||(this._scheduleTaskZS=g,this._scheduleTaskDlgt=n,this._scheduleTaskCurrZone=this.zone),o.onInvokeTask||(this._invokeTaskZS=g,this._invokeTaskDlgt=n,this._invokeTaskCurrZone=this.zone),o.onCancelTask||(this._cancelTaskZS=g,this._cancelTaskDlgt=n,this._cancelTaskCurrZone=this.zone))}return h.prototype.fork=function(r,n){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,r,n):new b(r,n)},h.prototype.intercept=function(r,n,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,r,n,o):n},h.prototype.invoke=function(r,n,o,p,z){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,r,n,o,p,z):n.apply(o,p)},h.prototype.handleError=function(r,n){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,r,n)},h.prototype.scheduleTask=function(r,n){var o=n;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),(o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,r,n))||(o=n);else if(n.scheduleFn)n.scheduleFn(n);else{if(n.type!=R)throw new Error("Task is missing scheduleFn.");A(n)}return o},h.prototype.invokeTask=function(r,n,o,p){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,r,n,o,p):n.callback.apply(o,p)},h.prototype.cancelTask=function(r,n){var o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,r,n);else{if(!n.cancelFn)throw Error("Task is not cancelable");o=n.cancelFn(n)}return o},h.prototype.hasTask=function(r,n){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,r,n)}catch(o){this.handleError(r,o)}},h.prototype._updateTaskCount=function(r,n){var o=this._taskCounts,p=o[r],z=o[r]=p+n;if(z<0)throw new Error("More tasks executed then were scheduled.");0!=p&&0!=z||this.hasTask(this.zone,{microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:r})},h}(),P=function(){function h(r,n,o,p,z,u){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=r,this.source=n,this.data=p,this.scheduleFn=z,this.cancelFn=u,!o)throw new Error("callback is not defined");this.callback=o;var v=this;this.invoke=r===O&&p&&p.useG?h.invokeTask:function(){return h.invokeTask.call(e,v,this,arguments)}}return h.invokeTask=function(r,n,o){r||(r=this),ce++;try{return r.runCount++,r.zone.runTask(r,n,o)}finally{1==ce&&T(),ce--}},Object.defineProperty(h.prototype,"zone",{get:function(){return this._zone},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),h.prototype.cancelScheduleRequest=function(){this._transitionTo(F,x)},h.prototype._transitionTo=function(r,n,o){if(this._state!==n&&this._state!==o)throw new Error("".concat(this.t
2ype," '").concat(this.source,"': can not transition to '").concat(r,"', expecting state '").concat(n,"'").concat(o?" or '"+o+"'":"",", was '").concat(this._state,"'."));this._state=r,r==F&&(this._zoneDelegates=null)},h.prototype.toString=function(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)},h.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},h}(),S=_("setTimeout"),M=_("Promise"),G=_("then"),j=[],ie=!1;function Y(h){if(V||e[M]&&(V=e[M].resolve(0)),V){var r=V[G];r||(r=V.then),r.call(V,h)}else e[S](h,0)}function A(h){0===ce&&0===j.length&&Y(T),h&&j.push(h)}function T(){if(!ie){for(ie=!0;j.length;){var h=j;j=[];for(var r=0;r<h.length;r++){var n=h[r];try{n.zone.runTask(n,null,null)}catch(o){ae.onUnhandledError(o)}}}ae.microtaskDrainDone(),ie=!1}}var re={name:"NO ZONE"},F="notScheduled",x="scheduling",B="scheduled",y="running",W="canceling",D="unknown",R="microTask",L="macroTask",O="eventTask",X={},ae={symbol:_,currentZoneFrame:function(){return K},onUnhandledError:q,microtaskDrainDone:q,scheduleMicroTask:A,showUncaughtError:function(){return!b[_("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:q,patchMethod:function(){return q},bindArguments:function(){return[]},patchThen:function(){return q},patchMacroTask:function(){return q},patchEventPrototype:function(){return q},isIEOrEdge:function(){return!1},getGlobalObjects:function(){},ObjectDefineProperty:function(){return q},ObjectGetOwnPropertyDescriptor:function(){},ObjectCreate:function(){},ArraySlice:function(){return[]},patchClass:function(){return q},wrapWithCurrentZone:function(){return q},filterProperties:function(){return[]},attachOriginToPatched:function(){return q},_redefineProperty:function(){return q},patchCallbacks:function(){return q},nativeScheduleMicroTask:Y},K={parent:null,zone:new b(null,null)},ne=null,ce=0;function q(){}s("Zone","Zone"),e.Zone=b}(typeof window<"u"&&window||typeof self<"u"&&self||global);var se=Object.getOwnPropertyDescriptor,Ee=Object.defineProperty,ye=Object.getPrototypeOf,Be=Object.create,Oe=Array.prototype.slice,Fe="addEventListener",Ge="removeEventListener",Ve=Zone.__symbol__(Fe),Ue=Zone.__symbol__(Ge),fe="true",le="false",Se=Zone.__symbol__("");function xe(e,t){return Zone.current.wrap(e,t)}function ze(e,t,i,a,s){return Zone.current.scheduleMacroTask(e,t,i,a,s)}var H=Zone.__symbol__,Me=typeof window<"u",ge=Me?window:void 0,$=Me&&ge||"object"==typeof self&&self||global,dr="removeAttribute";function We(e,t){for(var i=e.length-1;i>=0;i--)"function"==typeof e[i]&&(e[i]=xe(e[i],t+"_"+i));return e}function Je(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}var Qe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Ne=!("nw"in $)&&typeof $.process<"u"&&"[object process]"==={}.toString.call($.process),Xe=!Ne&&!Qe&&!(!Me||!ge.HTMLElement),$e=typeof $.process<"u"&&"[object process]"==={}.toString.call($.process)&&!Qe&&!(!Me||!ge.HTMLElement),Le={},er=function(e){if(e=e||$.event){var t=Le[e.type];t||(t=Le[e.type]=H("ON_PROPERTY"+e.type));var s,i=this||e.target||$,a=i[t];return Xe&&i===ge&&"error"===e.type?!0===(s=a&&a.call(this,e.message,e.filename,e.lineno,e.colno,e.error))&&e.preventDefault():null!=(s=a&&a.apply(this,arguments))&&!s&&e.preventDefault(),s}};function rr(e,t,i){var a=se(e,t);if(!a&&i&&se(i,t)&&(a={enumerable:!0,configurable:!0}),a&&a.configurable){var f=H("on"+t+"patched");if(!e.hasOwnProperty(f)||!e[f]){delete a.writable,delete a.value;var _=a.get,E=a.set,b=t.slice(2),g=Le[b];g||(g=Le[b]=H("ON_PROPERTY"+b)),a.set=function(m){var P=this;!P&&e===$&&(P=$),P&&("function"==typeof P[g]&&P.removeEventListener(b,er),E&&E.call(P,null),P[g]=m,"function"==typeof m&&P.addEventListener(b,er,!1))},a.get=function(){var m=this;if(!m&&e===$&&(m=$),!m)return null;var P=m[g];if(P)return P;if(_){var S=_.call(this);if(S)return a.set.call(this,S),"function"==typeof m[dr]&&m.removeAttribute(t),S}return null},Ee(e,t,a),e[f]=!0}}}function tr(e,t,i){if(t)for(var a=0;a<t.length;a++)rr(e,"on"+t[a],i);else{var s=[];for(var f in e)"on"==f.slice(0,2)&&s.push(f);for(var _=0;_<s.length;_++)rr(e,s[_],i)}}var ue=H("originalInstance");function Ze(e){var t=$[e];if(t){$[H(e)]=t,$[e]=function(){var s=We(arguments,e);switch(s.length){case 0:this[ue]=new t;break;case 1:this[ue]=new t(s[0]);break;case 2:this[ue]=new t(s[0],s[1]);break;case 3:this[ue]=new t(s[0],s[1],s[2]);break;case 4:this[ue]=new t(s[0],s[1],s[2],s[3]);break;default:throw new Error("Arg list too long.")}},ve($[e],t);var a,i=new t(function(){});for(a in i)"XMLHttpRequest"===e&&"responseBlob"===a||function(s){"function"==typeof i[s]?$[e].prototype[s]=function(){return this[ue][s].apply(this[ue],arguments)}:Ee($[e].prototype,s,{set:function(f){"function"==typeof f?(this[ue][s]=xe(f,e+"."+s),ve(this[ue][s],f)):this[ue][s]=f},get:function(){return this[ue][s]}})}(a);for(a in t)"prototype"!==a&&t.hasOwnProperty(a)&&($[e][a]=t[a])}}function he(e,t,i){for(var a=e;a&&!a.hasOwnProperty(t);)a=ye(a);!a&&e[t]&&(a=e);var s=H(t),f=null;if(a&&(!(f=a[s])||!a.hasOwnProperty(s))&&(f=a[s]=a[t],Je(a&&se(a,t)))
2){var E=i(f,s,t);a[t]=function(){return E(this,arguments)},ve(a[t],f)}return f}function Tr(e,t,i){var a=null;function s(f){var _=f.data;return _.args[_.cbIdx]=function(){f.invoke.apply(this,arguments)},a.apply(_.target,_.args),f}a=he(e,t,function(f){return function(_,E){var b=i(_,E);return b.cbIdx>=0&&"function"==typeof E[b.cbIdx]?ze(b.name,E[b.cbIdx],b,s):f.apply(_,E)}})}function ve(e,t){e[H("OriginalDelegate")]=t}var nr=!1,Ye=!1;function pr(){if(nr)return Ye;nr=!0;try{var e=ge.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Ye=!0)}catch{}return Ye}Zone.__load_patch("ZoneAwarePromise",function(e,t,i){var a=Object.getOwnPropertyDescriptor,s=Object.defineProperty;var _=i.symbol,E=[],b=!0===e[_("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],g=_("Promise"),m=_("then"),P="__creationTrace__";i.onUnhandledError=function(u){if(i.showUncaughtError()){var v=u&&u.rejection;v?console.error("Unhandled Promise rejection:",v instanceof Error?v.message:v,"; Zone:",u.zone.name,"; Task:",u.task&&u.task.source,"; Value:",v,v instanceof Error?v.stack:void 0):console.error(u)}},i.microtaskDrainDone=function(){for(var u=function(){var v=E.shift();try{v.zone.runGuarded(function(){throw v.throwOriginal?v.rejection:v})}catch(l){!function M(u){i.onUnhandledError(u);try{var v=t[S];"function"==typeof v&&v.call(this,u)}catch{}}(l)}};E.length;)u()};var S=_("unhandledPromiseRejectionHandler");function G(u){return u&&u.then}function j(u){return u}function ie(u){return r.reject(u)}var V=_("state"),Y=_("value"),A=_("finally"),T=_("parentPromiseValue"),re=_("parentPromiseState"),F="Promise.then",x=null,B=!0,y=!1,W=0;function D(u,v){return function(l){try{X(u,v,l)}catch(c){X(u,!1,c)}}}var R=function(){var u=!1;return function(l){return function(){u||(u=!0,l.apply(null,arguments))}}},L="Promise resolved with itself",O=_("currentTaskTrace");function X(u,v,l){var c=R();if(u===l)throw new TypeError(L);if(u[V]===x){var d=null;try{("object"==typeof l||"function"==typeof l)&&(d=l&&l.then)}catch(I){return c(function(){X(u,!1,I)})(),u}if(v!==y&&l instanceof r&&l.hasOwnProperty(V)&&l.hasOwnProperty(Y)&&l[V]!==x)K(l),X(u,l[V],l[Y]);else if(v!==y&&"function"==typeof d)try{d.call(l,c(D(u,v)),c(D(u,!1)))}catch(I){c(function(){X(u,!1,I)})()}else{u[V]=v;var w=u[Y];if(u[Y]=l,u[A]===A&&v===B&&(u[V]=u[re],u[Y]=u[T]),v===y&&l instanceof Error){var k=t.currentTask&&t.currentTask.data&&t.currentTask.data[P];k&&s(l,O,{configurable:!0,enumerable:!1,writable:!0,value:k})}for(var Z=0;Z<w.length;)ne(u,w[Z++],w[Z++],w[Z++],w[Z++]);if(0==w.length&&v==y){u[V]=W;var C=l;try{throw new Error("Uncaught (in promise): "+function f(u){return u&&u.toString===Object.prototype.toString?(u.constructor&&u.constructor.name||"")+": "+JSON.stringify(u):u?u.toString():Object.prototype.toString.call(u)}(l)+(l&&l.stack?"\n"+l.stack:""))}catch(I){C=I}b&&(C.throwOriginal=!0),C.rejection=l,C.promise=u,C.zone=t.current,C.task=t.currentTask,E.push(C),i.scheduleMicroTask()}}}return u}var ae=_("rejectionHandledHandler");function K(u){if(u[V]===W){try{var v=t[ae];v&&"function"==typeof v&&v.call(this,{rejection:u[Y],promise:u})}catch{}u[V]=y;for(var l=0;l<E.length;l++)u===E[l].promise&&E.splice(l,1)}}function ne(u,v,l,c,d){K(u);var w=u[V],k=w?"function"==typeof c?c:j:"function"==typeof d?d:ie;v.scheduleMicroTask(F,function(){try{var Z=u[Y],C=!!l&&A===l[A];C&&(l[T]=Z,l[re]=w);var I=v.run(k,void 0,C&&k!==ie&&k!==j?[]:[Z]);X(l,!0,I)}catch(N){X(l,!1,N)}},l)}var q=function(){},h=e.AggregateError,r=function(){function u(v){var l=this;
2if(!(l instanceof u))throw new Error("Must be an instanceof Promise.");l[V]=x,l[Y]=[];try{var c=R();v&&v(c(D(l,B)),c(D(l,y)))}catch(d){X(l,!1,d)}}return u.toString=function(){return"function ZoneAwarePromise() { [native code] }"},u.resolve=function(v){return X(new this(null),B,v)},u.reject=function(v){return X(new this(null),y,v)},u.any=function(v){if(!v||"function"!=typeof v[Symbol.iterator])return Promise.reject(new h([],"All promises were rejected"));var l=[],c=0;try{for(var d=0,w=v;d<w.length;d++)c++,l.push(u.resolve(w[d]))}catch{return Promise.reject(new h([],"All promises were rejected"))}if(0===c)return Promise.reject(new h([],"All promises were rejected"));var Z=!1,C=[];return new u(function(I,N){for(var U=0;U<l.length;U++)l[U].then(function(te){Z||(Z=!0,I(te))},function(te){C.push(te),0==--c&&(Z=!0,N(new h(C,"All promises were rejected")))})})},u.race=function(v){var l,c,d=new this(function(N,U){l=N,c=U});function w(N){l(N)}function k(N){c(N)}for(var Z=0,C=v;Z<C.length;Z++){var I=C[Z];G(I)||(I=this.resolve(I)),I.then(w,k)}return d},u.all=function(v){return u.allWithCallback(v)},u.allSettled=function(v){return(this&&this.prototype instanceof u?this:u).allWithCallback(v,{thenCallback:function(c){return{status:"fulfilled",value:c}},errorCallback:function(c){return{status:"rejected",reason:c}}})},u.allWithCallback=function(v,l){for(var c,d,w=new this(function(Q,ee){c=Q,d=ee}),k=2,Z=0,C=[],I=function(Q){G(Q)||(Q=N.resolve(Q));var ee=Z;try{Q.then(function(J){C[ee]=l?l.thenCallback(J):J,0==--k&&c(C)},function(J){l?(C[ee]=l.errorCallback(J),0==--k&&c(C)):d(J)})}catch(J){d(J)}k++,Z++},N=this,U=0,te=v;U<te.length;U++)I(te[U]);return 0==(k-=2)&&c(C),w},Object.defineProperty(u.prototype,Symbol.toStringTag,{get:function(){return"Promise"},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,Symbol.species,{get:function(){return u},enumerable:!1,configurable:!0}),u.prototype.then=function(v,l){var c,d=null===(c=this.constructor)||void 0===c?void 0:c[Symbol.species];(!d||"function"!=typeof d)&&(d=this.constructor||u);var w=new d(q),k=t.current;return this[V]==x?this[Y].push(k,w,v,l):ne(this,k,w,v,l),w},u.prototype.catch=function(v){return this.then(null,v)},u.prototype.finally=function(v){var l,c=null===(l=this.constructor)||void 0===l?void 0:l[Symbol.species];(!c||"function"!=typeof c)&&(c=u);var d=new c(q);d[A]=A;var w=t.current;return this[V]==x?this[Y].push(w,d,v,v):ne(this,w,d,v,v),d},u}();r.resolve=r.resolve,r.reject=r.reject,r.race=r.race,r.all=r.all;var n=e[g]=e.Promise;e.Promise=r;var o=_("thenPatched");function p(u){var v=u.prototype,l=a(v,"then");if(!l||!1!==l.writable&&l.configurable){var c=v.then;v[m]=c,u.prototype.then=function(d,w){var k=this;return new r(function(C,I){c.call(k,C,I)}).then(d,w)},u[o]=!0}}return i.patchThen=p,n&&(p(n),he(e,"fetch",function(u){return function z(u){return function(v,l){var c=u.apply(v,l);if(c instanceof r)return c;var d=c.constructor;return d[o]||p(d),c}}(u)})),Promise[t.__symbol__("uncaughtPromiseErrors")]=E,r}),Zone.__load_patch("toString",function(e){var t=Function.prototype.toString,i=H("OriginalDelegate"),a=H("Promise"),s=H("Error"),f=function(){if("function"==typeof this){var g=this[i];if(g)return"function"==typeof g?t.call(g):Object.prototype.toString.call(g);if(this===Promise){var m=e[a];if(m)return t.call(m)}if(this===Error){var P=e[s];if(P)return t.call(P)}}return t.call(this)};f[i]=t,Function.prototype.toString=f;var _=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":_.call(this)}});var me=!1;if(typeof window<"u")try{var Ae=Object.defineProperty({},"passive",{get:function(){me=!0}});window.addEventListener("test",Ae,Ae),window.removeEventListener("test",Ae,Ae)}catch{me=!1}var gr={useG:!0},oe={},or={},ir=new RegExp("^"+Se+"(\\w+)(true|false)$"),ar=H("propagationStopped");function ur(e,t){var i=(t?t(e):e)+le,a=(t?t(e):e)+fe,s=Se+i,f=Se+a;oe[e]={},oe[e][le]=s,oe[e][fe]=f}function mr(e,t,i,a){var s=a&&a.add||Fe,f=a&&a.rm||Ge,_=a&&a.listeners||"eventListeners",E=a&&a.rmAll||"removeAllListeners",b=H(s),g="."+s+":",m="prependListener",P="."+m+":",S=function(A,T,re){if(!A.isRemoved){var x,F=A.callback;"object"==typeof F&&F.handleEvent&&(A.callback=function(W){return F.handleEvent(W)},A.originalDelegate=F);try{A.invoke(A,T,[re])}catch(W){x=W}var B=A.options;return B&&"object"==typeof B&&B.once&&T[f].call(T,re.type,A.originalDelegate?A.originalDelegate:A.callback,B),x}};function M(A,T,re){if(T=T||e.event){var F=A||T.target||e,x=F[oe[T.type][re?fe:le]];if(x){var B=[];if(1===x.length)(y=S(x[0],F,T))&&B.push(y);else for(var W=x.slice(),D=0;D<W.length&&(!T||!0!==T[ar]);D++){var y;(y=S(W[D],F,T))&&B.push(y)}if(1===B.length)throw B[0];var R=function(L){var O=B[L];t.nativeScheduleMicroTask(function(){throw O})};for(D=0;D<B.length;D++)R(D)}}}var G=function(A){return M(this,A,!1)},j=function(A){return M(this,A,!0)};function ie(A,T){if(!A)return!1;var re=!0;T&&void 0!==T.useG&&(re=T.useG);var F=T&&T.vh,x=!0;T&&void 0!==T.chkDup&&(x=T.chkDup);var B=!1;T&&void 0!==T.rt&&(B=T.rt);for(var y=A;y&&!y.hasOwnProperty(s);)y=ye(y);if(!y&&A[s]&&(y=A),!y||y[b])return!1;var ae,W=T&&T.eventNameToString,D={},R=y[b]=y[s],L=y[H(f)]=y[f],O=y[H(_)]=y[_],X=y[H(E)]=y[E];T&&T.prepend&&(ae=y[H(T.prepend)]=y[T.prepend]);var n=re?function(c){if(!D.isExisting)return R.call(D.target,D.eventName,D.capture?j:G,D.options)}:function(c){return R.call(D.target,D.eventName,c.invoke,D.options)},o=re?function(c){if(!c.isRemoved){var d=oe[c.eventName],w=void 0;d&&(w=d[c.capture?fe:le]);var k=w&&c.target[w];if(k)for(var Z=0;Z<k.length;Z++)if(k[Z]===c){k.splice(Z,1),c.isRemoved=!0,0===k.length&&(c.allRemoved=!0,c.target[w]=null);break}}if(c.allRemoved)return L.call(c.target,c.eventName,c.capture?j:G,c.options)}:function(c){return L.call(c.target,c.eventName,c.invoke,c.options)},z=T&&T.diff?T.diff:function(c,d){var w=typeof d;return"function"===w&&c.callback===d||"object"===w&&c.originalDelegate===d},u=Zone[H("UNPATCHED_EVENTS")],v=e[H("PASSIVE_EVENTS")],l=function(c,d,w,k,Z,C){return void 0===Z&&(Z=!1),void 0===C&&(C=!1),function(){var I=this||e,N=arguments[0];T&&T.transferEventName&&(N=T.transferEventName(N));var U=arguments[1];if(!U)return c.apply(this,arguments);if(Ne&&"uncaughtException"===N)return c.apply(this,arguments);var te=!1;
2if("function"!=typeof U){if(!U.handleEvent)return c.apply(this,arguments);te=!0}if(!F||F(c,U,I,arguments)){var _e=me&&!!v&&-1!==v.indexOf(N),Q=function K(c,d){return!me&&"object"==typeof c&&c?!!c.capture:me&&d?"boolean"==typeof c?{capture:c,passive:!0}:c?"object"==typeof c&&!1!==c.passive?Ie(Ie({},c),{passive:!0}):c:{passive:!0}:c}(arguments[2],_e);if(u)for(var ee=0;ee<u.length;ee++)if(N===u[ee])return _e?c.call(I,N,U,Q):c.apply(this,arguments);var J=!!Q&&("boolean"==typeof Q||Q.capture),be=!(!Q||"object"!=typeof Q)&&Q.once,Zr=Zone.current,Ke=oe[N];Ke||(ur(N,W),Ke=oe[N]);var lr=Ke[J?fe:le],Pe=I[lr],hr=!1;if(Pe){if(hr=!0,x)for(ee=0;ee<Pe.length;ee++)if(z(Pe[ee],U))return}else Pe=I[lr]=[];var He,vr=I.constructor.name,_r=or[vr];_r&&(He=_r[N]),He||(He=vr+d+(W?W(N):N)),D.options=Q,be&&(D.options.once=!1),D.target=I,D.capture=J,D.eventName=N,D.isExisting=hr;var Ce=re?gr:void 0;Ce&&(Ce.taskData=D);var Te=Zr.scheduleEventTask(He,U,Ce,w,k);if(D.target=null,Ce&&(Ce.taskData=null),be&&(Q.once=!0),!me&&"boolean"==typeof Te.options||(Te.options=Q),Te.target=I,Te.capture=J,Te.eventName=N,te&&(Te.originalDelegate=U),C?Pe.unshift(Te):Pe.push(Te),Z)return I}}};return y[s]=l(R,g,n,o,B),ae&&(y[m]=l(ae,P,function(c){return ae.call(D.target,D.eventName,c.invoke,D.options)},o,B,!0)),y[f]=function(){var c=this||e,d=arguments[0];T&&T.transferEventName&&(d=T.transferEventName(d));var w=arguments[2],k=!!w&&("boolean"==typeof w||w.capture),Z=arguments[1];if(!Z)return L.apply(this,arguments);if(!F||F(L,Z,c,arguments)){var I,C=oe[d];C&&(I=C[k?fe:le]);var N=I&&c[I];if(N)for(var U=0;U<N.length;U++){var te=N[U];if(z(te,Z))return N.splice(U,1),te.isRemoved=!0,0===N.length&&(te.allRemoved=!0,c[I]=null,"string"==typeof d)&&(c[Se+"ON_PROPERTY"+d]=null),te.zone.cancelTask(te),B?c:void 0}return L.apply(this,arguments)}},y[_]=function(){var c=this||e,d=arguments[0];T&&T.transferEventName&&(d=T.transferEventName(d));for(var w=[],k=sr(c,W?W(d):d),Z=0;Z<k.length;Z++){var C=k[Z];w.push(C.originalDelegate?C.originalDelegate:C.callback)}return w},y[E]=function(){var c=this||e,d=arguments[0];if(d){T&&T.transferEventName&&(d=T.transferEventName(d));var N=oe[d];if(N){var _e=c[N[le]],Q=c[N[fe]];if(_e)for(var ee=_e.slice(),k=0;k<ee.length;k++)this[f].call(this,d,(J=ee[k]).originalDelegate?J.originalDelegate:J.callback,J.options);if(Q)for(ee=Q.slice(),k=0;k<ee.length;k++){var J;this[f].call(this,d,(J=ee[k]).originalDelegate?J.originalDelegate:J.callback,J.options)}}}else{var w=Object.keys(c);for(k=0;k<w.length;k++){var C=ir.exec(w[k]),I=C&&C[1];I&&"removeListener"!==I&&this[E].call(this,I)}this[E].call(this,"removeListener")}if(B)return this},ve(y[s],R),ve(y[f],L),X&&ve(y[E],X),O&&ve(y[_],O),!0}for(var V=[],Y=0;Y<i.length;Y++)V[Y]=ie(i[Y],a);return V}function sr(e,t){if(!t){var i=[];for(var a in e){var s=ir.exec(a),f=s&&s[1];if(f&&(!t||f===t)){var _=e[a];if(_)for(var E=0;E<_.length;E++)i.push(_[E])}}return i}var b=oe[t];b||(ur(t),b=oe[t]);var g=e[b[le]],m=e[b[fe]];return g?m?g.concat(m):g.slice():m?m.slice():[]}function kr(e,t){var i=e.Event;i&&i.prototype&&t.patchMethod(i.prototype,"stopImmediatePropagation",function(a){return function(s,f){s[ar]=!0,a&&a.apply(s,f)}})}function br(e,t,i,a,s){var f=Zone.__symbol__(a);if(!t[f]){var _=t[f]=t[a];
2t[a]=function(E,b,g){return b&&b.prototype&&s.forEach(function(m){var P="".concat(i,".").concat(a,"::")+m,S=b.prototype;try{if(S.hasOwnProperty(m)){var M=e.ObjectGetOwnPropertyDescriptor(S,m);M&&M.value?(M.value=e.wrapWithCurrentZone(M.value,P),e._redefineProperty(b.prototype,m,M)):S[m]&&(S[m]=e.wrapWithCurrentZone(S[m],P))}else S[m]&&(S[m]=e.wrapWithCurrentZone(S[m],P))}catch{}}),_.call(t,E,b,g)},e.attachOriginToPatched(t[a],_)}}function cr(e,t,i){if(!i||0===i.length)return t;var a=i.filter(function(f){return f.target===e});if(!a||0===a.length)return t;var s=a[0].ignoreProperties;return t.filter(function(f){return-1===s.indexOf(f)})}function fr(e,t,i,a){e&&tr(e,cr(e,t,i),a)}function qe(e){return Object.getOwnPropertyNames(e).filter(function(t){return t.startsWith("on")&&t.length>2}).map(function(t){return t.substring(2)})}function Pr(e,t){if((!Ne||$e)&&!Zone[e.symbol("patchEvents")]){var i=t.__Zone_ignore_on_properties,a=[];if(Xe){var s=window;a=a.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);var f=function yr(){try{var e=ge.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:s,ignoreProperties:["error"]}]:[];fr(s,qe(s),i&&i.concat(f),ye(s))}a=a.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(var _=0;_<a.length;_++){var E=t[a[_]];E&&E.prototype&&fr(E.prototype,qe(E.prototype),i)}}}Zone.__load_patch("util",function(e,t,i){var a=qe(e);i.patchOnProperties=tr,i.patchMethod=he,i.bindArguments=We,i.patchMacroTask=Tr;var s=t.__symbol__("BLACK_LISTED_EVENTS"),f=t.__symbol__("UNPATCHED_EVENTS");e[f]&&(e[s]=e[f]),e[s]&&(t[s]=t[f]=e[s]),i.patchEventPrototype=kr,i.patchEventTarget=mr,i.isIEOrEdge=pr,i.ObjectDefineProperty=Ee,i.ObjectGetOwnPropertyDescriptor=se,i.ObjectCreate=Be,i.ArraySlice=Oe,i.patchClass=Ze,i.wrapWithCurrentZone=xe,i.filterProperties=cr,i.attachOriginToPatched=ve,i._redefineProperty=Object.defineProperty,i.patchCallbacks=br,i.getGlobalObjects=function(){return{globalSources:or,zoneSymbolEventNames:oe,eventNames:a,isBrowser:Xe,isMix:$e,isNode:Ne,TRUE_STR:fe,FALSE_STR:le,ZONE_SYMBOL_PREFIX:Se,ADD_EVENT_LISTENER_STR:Fe,REMOVE_EVENT_LISTENER_STR:Ge}}});var je=H("zoneTask");function ke(e,t,i,a){var s=null,f=null;i+=a;var _={};function E(g){var m=g.data;return m.args[0]=function(){return g.invoke.apply(this,arguments)},m.handleId=s.apply(e,m.args),g}function b(g){return f.call(e,g.data.handleId)}s=he(e,t+=a,function(g){return function(m,P){if("function"==typeof P[0]){var S={isPeriodic:"Interval"===a,delay:"Timeout"===a||"Interval"===a?P[1]||0:void 0,args:P},M=P[0];P[0]=function(){try{return M.apply(this,arguments)}finally{S.isPeriodic||("number"==typeof S.handleId?delete _[S.handleId]:S.handleId&&(S.handleId[je]=null))}};var G=ze(t,P[0],S,E,b);if(!G)return G;var j=G.data.handleId;return"number"==typeof j?_[j]=G:j&&(j[je]=G),j&&j.ref&&j.unref&&"function"==typeof j.ref&&"function"==typeof j.unref&&(G.ref=j.ref.bind(j),G.unref=j.unref.bind(j)),"number"==typeof j||j?j:G}return g.apply(e,P)}}),f=he(e,i,function(g){return function(m,P){var M,S=P[0];"number"==typeof S?M=_[S]:(M=S&&S[je])||(M=S),M&&"string"==typeof M.type?"notScheduled"!==M.state&&(M.cancelFn&&M.data.isPeriodic||0===M.runCount)&&("number"==typeof S?delete _[S]:S&&(S[je]=null),M.zone.cancelTask(M)):g.apply(e,P)}})}Zone.__load_patch("legacy",function(e){var t=e[Zone.__symbol__("legacyPatch")];t&&t()}),Zone.__load_patch("timers",function(e){var t="set",i="clear";ke(e,t,i,"Timeout"),ke(e,t,i,"Interval"),ke(e,t,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",function(e){ke(e,"request","cancel","AnimationFrame"),ke(e,"mozRequest","mozCancel","AnimationFrame"),ke(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",function(e,t){for(var i=["alert","prompt","confirm"],a=0;a<i.length;a++)he(e,i[a],function(f,_,E){return function(b,g){return t.current.run(f,e,g,E)}})}),Zone.__load_patch("EventTarget",function(e,t,i){(function Sr(e,t){t.patchEventPrototype(e,t)})(e,i),function Or(e,t){if(!Zone[t.symbol("patchEventTarget")]){for(var i=t.getGlobalObjects(),a=i.eventNames,s=i.zoneSymbolEventNames,f=i.TRUE_STR,_=i.FALSE_STR,E=i.ZONE_SYMBOL_PREFIX,b=0;b<a.length;b++){var g=a[b],S=E+(g+_),M=E+(g+f);s[g]={},s[g][_]=S,s[g][f]=M}var G=e.EventTarget;if(G&&G.prototype)return t.patchEventTarget(e,t,[G&&G.prototype]),!0}}(e,i);var a=e.XMLHttpRequestEventTarget;a&&a.prototype&&i.patchEventTarget(e,i,[a.prototype])}),Zone.__load_patch("MutationObserver",function(e,t,i){Ze("MutationObserver"),Ze("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",function(e,t,i){Ze("IntersectionObserver")}),Zone.__load_patch("FileReader",function(e,t,i){Ze("FileReader")}),Zone.__load_patch("on_property",function(e,t,i){Pr(i,e)}),Zone.__load_patch("customElements",function(e,t,i){!function Rr(e,t){var i=t.getGlobalObjects();(i.isBrowser||i.isMix)&&e.customElements&&"customElements"in e&&t.patchCallbacks(t,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,i)}),Zone.__load_patch("XHR",function(e,t){!function b(g){var m=g.XMLHttpRequest;if(m){var P=m.prototype,M=P[Ve],G=P[Ue];if(!M){var j=g.XMLHttpRequestEventTarget;if(j){var ie=j.prototype;M=ie[Ve],G=ie[Ue]}}var V="readystatechange",Y="scheduled",F=he(P,"open",function(){return function(R,L){return R[a]=0==L[2],R[_]=L[1],F.apply(R,L)}}),B=H("fetchTaskAborting"),y=H("fetchTaskScheduling"),W=he(P,"send",function(){return function(R,L){if(!0===t.current[y]||R[a])return W.apply(R,L);var O={target:R,url:R[_],isPeriodic:!1,args:L,aborted:!1},X=ze("XMLHttpRequest.send",T,O,A,re);R&&!0===R[E]&&!O.aborted&&X.state===Y&&X.invoke()}}),D=he(P,"abort",function(){return function(R,L){var O=function S(R){return R[i]}(R);if(O&&"string"==typeof O.type){if(null==O.cancelFn||O.data&&O.data.aborted)return;O.zone.cancelTask(O)}else if(!0===t.current[B])return D.apply(R,L)}})}function A(R){var L=R.data,O=L.target;O[f]=!1,O[E]=!1;var X=O[s];M||(M=O[Ve],G=O[Ue]),X&&G.call(O,V,X);var ae=O[s]=function(){if(O.readyState===O.DONE)if(!L.aborted&&O[f]&&R.state===Y){var ne=O[t.__symbol__("loadfalse")];if(0!==O.status&&ne&&ne.length>0){var ce=R.invoke;R.invoke=function(){for(var q=O[t.__symbol__("loadfalse")],h=0;h<q.length;h++)q[h]===R&&q.splice(h,1);
2!L.aborted&&R.state===Y&&ce.call(R)},ne.push(R)}else R.invoke()}else!L.aborted&&!1===O[f]&&(O[E]=!0)};return M.call(O,V,ae),O[i]||(O[i]=R),W.apply(O,L.args),O[f]=!0,R}function T(){}function re(R){var L=R.data;return L.aborted=!0,D.apply(L.target,L.args)}}(e);var i=H("xhrTask"),a=H("xhrSync"),s=H("xhrListener"),f=H("xhrScheduled"),_=H("xhrURL"),E=H("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",function(e){e.navigator&&e.navigator.geolocation&&function Er(e,t){for(var i=e.constructor.name,a=function(f){var g,m,_=t[f],E=e[_];if(E){if(!Je(se(e,_)))return"continue";e[_]=(m=function(){return g.apply(this,We(arguments,i+"."+_))},ve(m,g=E),m)}},s=0;s<t.length;s++)a(s)}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",function(e,t){function i(a){return function(s){sr(e,a).forEach(function(_){var E=e.PromiseRejectionEvent;if(E){var b=new E(a,{promise:s.promise,reason:s.rejection});_.invoke(b)}})}}e.PromiseRejectionEvent&&(t[H("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),t[H("rejectionHandledHandler")]=i("rejectionhandled"))}),Zone.__load_patch("queueMicrotask",function(e,t,i){!function wr(e,t){t.patchMethod(e,"queueMicrotask",function(i){return function(a,s){Zone.current.scheduleMicroTask("queueMicrotask",s[0])}})}(e,i)})},void 0!==(De=de.call(we,Re,we,pe))&&(pe.exports=De)}},pe=>{pe(pe.s=1324)}]); 3(self.webpackChunkcustomer_center=self.webpackChunkcustomer_center||[]).push([[179],{4271:(Pd,Mc,Wr)=>{"use strict";function Gn(t){return"function"==typeof t}let $a=!1;const Fr={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const i=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+i.stack)}else $a&&console.log("RxJS: Back to a better error behavior. Thank you. <3");$a=t},get useDeprecatedSynchronousErrorHandling(){return $a}};function Pn(t){setTimeout(()=>{throw t},0)}const Ui={closed:!0,next(t){},error(t){if(Fr.useDeprecatedSynchronousErrorHandling)throw t;Pn(t)},complete(){}},vn=Array.isArray||(t=>t&&"number"==typeof t.length);function Dt(t){return null!==t&&"object"==typeof t}const hn=(()=>{function t(i){return Error.call(this),this.message=i?`${i.length} errors occurred during unsubscription:\n${i.map((e,n)=>`${n+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=i,this}return t.prototype=Object.create(Error.prototype),t})();class vt{constructor(i){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,i&&(this._ctorUnsubscribe=!0,this._unsubscribe=i)}unsubscribe(){let i;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:n,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof vt)e.remove(this);else if(null!==e)for(let s=0;s<e.length;++s)e[s].remove(this);if(Gn(r)){n&&(this._unsubscribe=void 0);try{r.call(this)}catch(s){i=s instanceof hn?Ct(s.errors):[s]}}if(vn(o)){let s=-1,u=o.length;for(;++s<u;){const v=o[s];if(Dt(v))try{v.unsubscribe()}catch(w){i=i||[],w instanceof hn?i=i.concat(Ct(w.errors)):i.push(w)}}}if(i)throw new hn(i)}add(i){let e=i;if(!i)return vt.EMPTY;switch(typeof i){case"function":e=new vt(i);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof vt)){const o=e;e=new vt,e._subscriptions=[o]}break;default:throw new Error("unrecognized teardown "+i+" added to Subscription.")}let{_parentOrParents:n}=e;if(null===n)e._parentOrParents=this;else if(n instanceof vt){if(n===this)return e;e._parentOrParents=[n,this]}else{if(-1!==n.indexOf(this))return e;n.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[e]:r.push(e),e}remove(i){const e=this._subscriptions;if(e){const n=e.indexOf(i);-1!==n&&e.splice(n,1)}}}var t;function Ct(t){return t.reduce((i,e)=>i.concat(e instanceof hn?e.errors:e),[])}vt.EMPTY=((t=new vt).closed=!0,t);const At="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();
vendor: 4,702 bytes, line 3
3class Tt extends vt{constructor(i,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Ui;break;case 1:if(!i){this.destination=Ui;break}if("object"==typeof i){i instanceof Tt?(this.syncErrorThrowable=i.syncErrorThrowable,this.destination=i,i.add(this)):(this.syncErrorThrowable=!0,this.destination=new It(this,i));break}default:this.syncErrorThrowable=!0,this.destination=new It(this,i,e,n)}}[At](){return this}static create(i,e,n){const r=new Tt(i,e,n);return r.syncErrorThrowable=!1,r}next(i){this.isStopped||this._next(i)}error(i){this.isStopped||(this.isStopped=!0,this._error(i))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(i){this.destination.next(i)}_error(i){this.destination.error(i),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:i}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=i,this}}class It extends Tt{constructor(i,e,n,r){super(),this._parentSubscriber=i;let o,s=this;Gn(e)?o=e:e&&(o=e.next,n=e.error,r=e.complete,e!==Ui&&(s=Object.create(e),Gn(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=n,this._complete=r}next(i){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;Fr.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,i)&&this.unsubscribe():this.__tryOrUnsub(this._next,i)}}error(i){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=Fr;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,i),this.unsubscribe()):(this.__tryOrUnsub(this._error,i),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=i,e.syncErrorThrown=!0):Pn(i),this.unsubscribe();else{if(this.unsubscribe(),n)throw i;Pn(i)}}}complete(){if(!this.isStopped){const{_parentSubscriber:i}=this;if(this._complete){const e=()=>this._complete.call(this._context);Fr.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable?(this.__tryOrSetError(i,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(i,e){try{i.call(this._context,e)}catch(n){if(this.unsubscribe(),Fr.useDeprecatedSynchronousErrorHandling)throw n;Pn(n)}}__tryOrSetError(i,e,n){if(!Fr.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return Fr.useDeprecatedSynchronousErrorHandling?(i.syncErrorValue=r,i.syncErrorThrown=!0,!0):(Pn(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:i}=this;this._context=null,this._parentSubscriber=null,i.unsubscribe()}}const he="function"==typeof Symbol&&Symbol.observable||"@@observable";function Le(t){return t}let Se=(()=>{class t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,r){const{operator:o}=this,s=function qe(t,i,e){if(t){if(t instanceof Tt)return t;if(t[At])return t[At]()}return t||i||e?new Tt(t,i,e):new Tt(Ui)}(e,n,r);if(s.add(o?o.call(s,this.source):this.source||Fr.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),Fr.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(n){Fr.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=n),function ut(t){for(;t;){const{closed:i,destination:e,isStopped:n}=t;if(i||n)return!1;t=e&&e instanceof Tt?e:null}return!0}(e)?e.error(n):console.warn(n)}}forEach(e,n){return new(n=it(n))((r,o)=>{let s;s=this.subscribe(u=>{try{e(u)}catch(v){o(v),s&&s.unsubscribe()}},o,r)})}_subscribe(e){const{source:n}=this;return n&&n.subscribe(e)}[he](){return this}pipe(...e){return 0===e.length?this:function nt(t){return 0===t.length?Le:1===t.length?t[0]:function(e){return t.reduce((n,r)=>r(n),e)}}(e)(this)}toPromise(e){return new(e=it(e))((n,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>n(o))})}}return t.create=i=>new t(i),t})();function it(t){if(t||(t=Fr.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const pt=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class gt extends vt{constructor(i,e){super(),this.subject=i,this.subscriber=e,this.closed=!1}
3unsubscribe(){if(this.closed)return;this.closed=!0;const i=this.subject,e=i.observers;if(this.subject=null,!e||0===e.length||i.isStopped||i.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class Ze extends Tt{constructor(i){super(i),this.destination=i}}let Lt=(()=>{class t extends Se{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[At](){return new Ze(this)}lift(e){const n=new cn(this,this);return n.operator=e,n}next(e){if(this.closed)throw new pt;if(!this.isStopped){const{observers:n}=this,r=n.length,o=n.slice();for(let s=0;s<r;s++)o[s].next(e)}}error(e){if(this.closed)throw new pt;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:n}=this,r=n.length,o=n.slice();for(let s=0;s<r;s++)o[s].error(e);this.observers.length=0}complete(){if(this.closed)throw new pt;this.isStopped=!0;const{observers:e}=this,n=e.length,r=e.slice();for(let o=0;o<n;o++)r[o].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new pt;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new pt;return this.hasError?(e.error(this.thrownError),vt.EMPTY):this.isStopped?(e.complete(),vt.EMPTY):(this.observers.push(e),new gt(this,e))}asObservable(){const e=new Se;return e.source=this,e}}return t.create=(i,e)=>new cn(i,e),t})();class cn extends Lt{constructor(i,e){super(),this.destination=i,this.source=e}next(i){const{destination:e}=this;e&&e.next&&e.next(i)}error(i){const{destination:e}=this;e&&e.error&&this.destination.error(i)}complete(){const{destination:i}=this;i&&i.complete&&this.destination.complete()}_subscribe(i){const{source:e}=this;return e?this.source.subscribe(i):vt.EMPTY}}function Dn(t){return t&&"function"==typeof t.schedule}function Xe(t,i){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new Qe(t,i))}}class Qe{constructor(i,e){this.project=i,this.thisArg=e}call(i,e){return e.subscribe(new Nt(i,this.project,this.thisArg))}}class Nt extends Tt{constructor(i,e,n){super(i),this.project=e,this.count=0,this.thisArg=n||this}_next(i){let e;try{e=this.project.call(this.thisArg,i,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const Ve=t=>i=>{for(let e=0,n=t.length;e<n&&!i.closed;e++)i.next(t[e]);i.complete()},Xt=function Bt(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),un=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function xr(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const gr=t=>{if(t&&"function"==typeof t[he])return(t=>i=>{const e=t[he]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(i)})(t);if(un(t))return Ve(t);if(xr(t))return(t=>i=>(t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,Pn),i))(t);if(t&&"function"==typeof t[Xt])return(t=>i=>{const e=t[Xt]();for(;;){let n;try{n=e.next()}catch(r){return i.error(r),i}if(n.done){i.complete();break}if(i.next(n.value),i.closed)break}return"function"==typeof e.return&&i.add(()=>{e.return&&e.return()}),i})(t);{const e=`You provided ${Dt(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function vl(t,i){return new Se(e=>{const n=new vt;let r=0;return n.add(i.schedule(function(){r!==t.length?(e.next(t[r++]),e.closed||n.add(this.schedule())):e.complete()})),n})}function _l(t,i){return i?function Hu(t,i){if(null!=t){if(function Vu(t){return t&&"function"==typeof t[he]}(t))return function Qs(t,i){return new Se(e=>{const n=new vt;return n.add(i.schedule(()=>{const r=t[he]();n.add(r.subscribe({next(o){n.add(i.schedule(()=>e.next(o)))},error(o){n.add(i.schedule(()=>e.error(o)))},complete(){n.add(i.schedule(()=>e.complete()))}}))})),n})}(t,i);if(xr(t))return function ga(t,i){return new Se(e=>{const n=new vt;return n.add(i.schedule(()=>t.then(r=>{n.add(i.schedule(()=>{e.next(r),n.add(i.schedule(()=>e.complete()))}))},r=>{n.add(i.schedule(()=>e.error(r)))}))),n})}(t,i);if(un(t))return vl(t,i);if(function Jh(t){return t&&"function"==typeof t[Xt]}(t)||"string"==typeof t)return function Td(t,i){if(!t)throw new Error("Iterable cannot be null");return new Se(e=>{const n=new vt;let r;return n.add(()=>{r&&"function"==typeof r.return&&r.return()}),n.add(i.schedule(()=>{r=t[Xt](),n.add(i.schedule(function(){if(e.closed)return;let o,s;try{const u=r.next();o=u.value,s=u.done}catch(u){return void e.error(u)}s?e.complete():(e.next(o),this.schedule())}))})),n})}(t,i)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,i):t instanceof Se?t:new Se(gr(t))}class zu extends Tt{constructor(i){super(),this.parent=i}_next(i){this.parent.notifyNext(i)}_error(i){this.parent.notifyError(i),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Qh extends Tt{notifyNext(i){this.destination.next(i)}notifyError(i){this.destination.error(i)}notifyComplete(){this.destination.complete()}}function Ed(t,i){if(i.closed)return;if(t instanceof Se)return t.subscribe(i);let e;try{e=gr(t)(i)}catch(n){i.error(n)}return e}function Ld(t,i,e=Number.POSITIVE_INFINITY){return"function"==typeof i?n=>n.pipe(Ld((r,o)=>_l(t(r,o)).pipe(Xe((s,u)=>i(r,s,o,u))),e)):("number"==typeof i&&(e=i),n=>n.lift(new Kp(t,e)))}class Kp{constructor(i,e=Number.POSITIVE_INFINITY){this.project=i,this.concurrent=e}call(i,e){return e.subscribe(new Xp(i,this.project,this.concurrent))}}
3class Xp extends Qh{constructor(i,e,n=Number.POSITIVE_INFINITY){super(i),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(i){this.active<this.concurrent?this._tryNext(i):this.buffer.push(i)}_tryNext(i){let e;const n=this.index++;try{e=this.project(i,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e)}_innerSub(i){const e=new zu(this),n=this.destination;n.add(e);const r=Ed(i,e);r!==e&&n.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(i){this.destination.next(i)}notifyComplete(){const i=this.buffer;this.active--,i.length>0?this._next(i.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function va(t,i){return i?vl(t,i):new Se(Ve(t))}function qu(...t){let i=Number.POSITIVE_INFINITY,e=null,n=t[t.length-1];return Dn(n)?(e=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(i=t.pop())):"number"==typeof n&&(i=t.pop()),null===e&&1===t.length&&t[0]instanceof Se?t[0]:function e2(t=Number.POSITIVE_INFINITY){return Ld(Le,t)}(i)(va(t,e))}function Jl(){return function(i){return i.lift(new vv(i))}}class vv{constructor(i){this.connectable=i}call(i,e){const{connectable:n}=this;n._refCount++;const r=new _v(i,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o}}class _v extends Tt{constructor(i,e){super(i),this.connectable=e}_unsubscribe(){const{connectable:i}=this;if(!i)return void(this.connection=null);this.connectable=null;const e=i._refCount;if(e<=0)return void(this.connection=null);if(i._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,r=i._connection;this.connection=null,r&&(!n||r===n)&&r.unsubscribe()}}class Ys extends Se{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){const i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let i=this._connection;return i||(this._isComplete=!1,i=this._connection=new vt,i.add(this.source.subscribe(new Yh(this.getSubject(),this))),i.closed&&(this._connection=null,i=vt.EMPTY)),i}refCount(){return Jl()(this)}}const co=(()=>{const t=Ys.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}}})();class Yh extends Ze{constructor(i,e){super(i),this.connectable=e}_error(i){this._unsubscribe(),super._error(i)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const i=this.connectable;if(i){this.connectable=null;const e=i._connection;i._refCount=0,i._subject=null,i._connection=null,e&&e.unsubscribe()}}}class km{constructor(i,e){this.subjectFactory=i,this.selector=e}call(i,e){const{selector:n}=this,r=this.subjectFactory(),o=n(r).subscribe(i);return o.add(e.subscribe(r)),o}}function Mm(){return new Lt}function Ni(t){for(let i in t)if(t[i]===Ni)return i;throw Error("Could not find renamed property on target object.")}function Am(t,i){for(const e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function Qi(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Qi).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const i=t.toString();if(null==i)return""+i;const e=i.indexOf("\n");return-1===e?i:i.substring(0,e)}function Nm(t,i){return null==t||""===t?null===i?"":i:null==i||""===i?t:t+" "+i}const t2=Ni({__forward_ref__:Ni});function gi(t){return t.__forward_ref__=gi,t.toString=function(){return Qi(this())},t}function En(t){return Om(t)?t():t}function Om(t){return"function"==typeof t&&t.hasOwnProperty(t2)&&t.__forward_ref__===gi}function $u(t){return t&&!!t.\u0275providers}const Kh="https://g.co/ng/security#xss";class Qt extends Error{constructor(i,e){super(Xh(i,e)),this.code=i}
3}function Xh(t,i){return`NG0${Math.abs(t)}${i?": "+i.trim():""}`}function On(t){return"string"==typeof t?t:null==t?"":String(t)}function t1(t,i){throw new Qt(-201,!1)}function Ro(t,i){null==t&&function yi(t,i,e,n){throw new Error(`ASSERTION ERROR: ${t}`+(null==n?"":` [Expected=> ${e} ${n} ${i} <=Actual]`))}(i,t,null,"!=")}function sn(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Mo(t){return{providers:t.providers||[],imports:t.imports||[]}}function Md(t){return Rm(t,Nd)||Rm(t,r2)}function Rm(t,i){return t.hasOwnProperty(i)?t[i]:null}function Ad(t){return t&&(t.hasOwnProperty(Bm)||t.hasOwnProperty(xv))?t[Bm]:null}const Nd=Ni({\u0275prov:Ni}),Bm=Ni({\u0275inj:Ni}),r2=Ni({ngInjectableDef:Ni}),xv=Ni({ngInjectorDef:Ni});var Rn=(()=>((Rn=Rn||{})[Rn.Default=0]="Default",Rn[Rn.Host=1]="Host",Rn[Rn.Self=2]="Self",Rn[Rn.SkipSelf=4]="SkipSelf",Rn[Rn.Optional=8]="Optional",Rn))();let jm;function Ks(t){const i=jm;return jm=t,i}function o2(t,i,e){const n=Md(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:e&Rn.Optional?null:void 0!==i?i:void t1(Qi(t))}const Ki=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),bn={},Od="__NG_DI_FLAG__",bi="ngTempTokenPath",o1="ngTokenPath",Vm=/\n/gm,Gu="\u0275",Fc="__source";let Ql;function Ts(t){const i=Ql;return Ql=t,i}function Hm(t,i=Rn.Default){if(void 0===Ql)throw new Qt(-203,!1);return null===Ql?o2(t,void 0,i):Ql.get(t,i&Rn.Optional?null:void 0,i)}function Mt(t,i=Rn.Default){return(function Dv(){return jm}()||Hm)(En(t),i)}function Dr(t,i=Rn.Default){return Mt(t,Jr(i))}function Jr(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Xr(t){const i=[];for(let e=0;e<t.length;e++){const n=En(t[e]);if(Array.isArray(n)){if(0===n.length)throw new Qt(900,!1);let r,o=Rn.Default;for(let s=0;s<n.length;s++){const u=n[s],v=zm(u);"number"==typeof v?-1===v?r=u.token:o|=v:r=u}i.push(Mt(r,o))}else i.push(Mt(n))}return i}function Ar(t,i){return t[Od]=i,t.prototype[Od]=i,t}function zm(t){return t[Od]}function Ua(t){return{toString:t}.toString()}var _a=(()=>((_a=_a||{})[_a.OnPush=0]="OnPush",_a[_a.Default=1]="Default",_a))(),Es=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(Es||(Es={})),Es))();const Ga={},Yn=[],Ac=Ni({\u0275cmp:Ni}),Wu=Ni({\u0275dir:Ni}),Cl=Ni({\u0275pipe:Ni}),Yl=Ni({\u0275mod:Ni}),Ca=Ni({\u0275fac:Ni}),Wa=Ni({__NG_ELEMENT_ID__:Ni});let $m=0;function Ot(t){return Ua(()=>{const i=Um(t),e={...i,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===_a.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:null,data:t.data||{},encapsulation:t.encapsulation||Es.Emulated,id:"c"+$m++,styles:t.styles||Yn,_:null,schemas:t.schemas||null,tView:null};Cr(e);const n=t.dependencies;return e.directiveDefs=Xi(n,!1),e.pipeDefs=Xi(n,!0),e})}function xn(t){return zn(t)||ho(t)}function vr(t){return null!==t}function uo(t){return Ua(()=>({type:t.type,bootstrap:t.bootstrap||Yn,declarations:t.declarations||Yn,imports:t.imports||Yn,exports:t.exports||Yn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function ec(t,i){if(null==t)return Ga;const e={};for(const n in t)if(t.hasOwnProperty(n)){let r=t[n],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=n,i&&(i[r]=o)}return e}function Ft(t){return Ua(()=>{const i=Um(t);return Cr(i),i})}function _r(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function zn(t){return t[Ac]||null}function ho(t){return t[Wu]||null}function sr(t){return t[Cl]||null}function Um(t){const i={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,exportAs:t.exportAs||null,standalone:!0===t.standalone,selectors:t.selectors||Yn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ec(t.inputs,i),outputs:ec(t.outputs)}}function Cr(t){t.features?.forEach(i=>
3i(t))}function Xi(t,i){if(!t)return null;const e=i?sr:xn;return()=>("function"==typeof t?t():t).map(n=>e(n)).filter(vr)}const Ei=0,an=1,Wn=2,er=3,Bo=4,tc=5,Co=6,Nc=7,Pr=8,jd=9,Oc=10,Ln=11,Ju=12,Rc=13,Ls=14,ks=15,yr=16,Xs=17,ya=18,Oi=19,Ja=20,yl=21,Ri=22,ba=1,Bc=2,ln=7,Qu=8,jc=9,yo=10;function jo(t){return Array.isArray(t)&&"object"==typeof t[ba]}function Xo(t){return Array.isArray(t)&&!0===t[ba]}function Yu(t){return 0!=(4&t.flags)}function Vd(t){return t.componentOffset>-1}function Vc(t){return 1==(1&t.flags)}function Ms(t){return!!t.template}function l2(t){return 0!=(256&t[Wn])}function bl(t,i){return t.hasOwnProperty(Ca)?t[Ca]:null}class Fs{constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function br(){return Ym}function Ym(t){return t.type.prototype.ngOnChanges&&(t.setInput=wa),_2}function _2(){const t=l1(this),i=t?.current;if(i){const e=t.previous;if(e===Ga)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function wa(t,i,e,n){const r=this.declaredInputs[e],o=l1(t)||function Xm(t,i){return t[Km]=i}(t,{previous:Ga,current:null}),s=o.current||(o.current={}),u=o.previous,v=u[r];s[r]=new Fs(v&&v.currentValue,i,u===Ga),t[n]=i}br.ngInherit=!0;const Km="__ngSimpleChanges__";function l1(t){return t[Km]||null}const As=function(t,i,e){},ef="svg";function mo(t){for(;Array.isArray(t);)t=t[Ei];return t}function zd(t,i){return mo(i[t])}function es(t,i){return mo(i[t.index])}function nf(t,i){return t.data[i]}function Hc(t,i){return t[i]}function Vo(t,i){const e=i[t];return jo(e)?e:e[Ei]}function g(t){return 64==(64&t[Wn])}function p(t,i){return null==i?null:t[i]}function y(t){t[ya]=0}function I(t,i){t[tc]+=i;let e=t,n=t[er];for(;null!==n&&(1===i&&1===e[tc]||-1===i&&0===e[tc]);)n[tc]+=i,e=n,n=n[er]}const b={lFrame:Ke(null),bindingsEnabled:!0};function H(){return b.bindingsEnabled}function G(){return b.lFrame.lView}function K(){return b.lFrame.tView}function M(t){return b.lFrame.contextLView=t,t[Pr]}function L(t){return b.lFrame.contextLView=null,t}function re(){let t=be();for(;null!==t&&64===t.type;)t=t.parent;return t}function be(){return b.lFrame.currentTNode}function Ge(t,i){const e=b.lFrame;e.currentTNode=t,e.isParent=i}function wt(){return b.lFrame.isParent}function Ne(){b.lFrame.isParent=!1}function ee(){const t=b.lFrame;let i=t.bindingRootIndex;return-1===i&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function te(){return b.lFrame.bindingIndex}function me(){return b.lFrame.bindingIndex++}function Ye(t){const i=b.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function ze(t,i){const e=b.lFrame;e.bindingIndex=e.bindingRootIndex=t,ft(i)}function ft(t){b.lFrame.currentDirectiveIndex=t}function Z(){return b.lFrame.currentQueryIndex}function se(t){b.lFrame.currentQueryIndex=t}function ue(t){const i=t[an];return 2===i.type?i.declTNode:1===i.type?t[Co]:null}function _e(t,i,e){if(e&Rn.SkipSelf){let r=i,o=t;for(;!(r=r.parent,null!==r||e&Rn.Host||(r=ue(o),null===r||(o=o[ks],10&r.type))););if(null===r)return!1;i=r,t=o}const n=b.lFrame=$e();return n.currentTNode=i,n.lView=t,!0}function Ee(t){const i=$e(),e=t[an];b.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function $e(){const t=b.lFrame,i=null===t?null:t.child;return null===i?Ke(t):i}function Ke(t){const i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=i),i}function et(){const t=b.lFrame;return b.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Rt=et;function kt(){const t=et();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function mn(){return b.lFrame.selectedIndex}function ot(t){b.lFrame.selectedIndex=t}function le(){const t=b.lFrame;return nf(t.tView,t.selectedIndex)}function we(){b.lFrame.currentNamespace=ef}function Pe(){!function jt(){b.lFrame.currentNamespace=null}()}function gn(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e<n;e++){const o=t.data[e].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:u,ngAfterViewInit:v,ngAfterViewChecked:w,ngOnDestroy:P}=o;s&&(t.contentHooks??(t.contentHooks=[])).push(-e,s),u&&((t.contentHooks??(t.contentHooks=[])).push(e,u),(t.contentCheckHooks??(t.contentCheckHooks=[])).push(e,u)),v&&(t.viewHooks??(t.viewHooks=[])).push(-e,v),w&&((t.viewHooks??(t.viewHooks=[])).push(e,w),(t.viewCheckHooks??(t.viewCheckHooks=[])).push(e,w)),null!=P&&(t.de
vendor: 15,362 bytes, line 3
3stroyHooks??(t.destroyHooks=[])).push(e,P)}}function An(t,i,e){ci(t,i,3,e)}function Hn(t,i,e,n){(3&t[Wn])===e&&ci(t,i,e,n)}function Zn(t,i){let e=t[Wn];(3&e)===i&&(e&=2047,e+=1,t[Wn]=e)}function ci(t,i,e,n){const o=n??-1,s=i.length-1;let u=0;for(let v=void 0!==n?65535&t[ya]:0;v<s;v++)if("number"==typeof i[v+1]){if(u=i[v],null!=n&&u>=n)break}else i[v]<0&&(t[ya]+=65536),(u<o||-1==o)&&(Bi(t,e,i,v),t[ya]=(4294901760&t[ya])+v+2),v++}function Bi(t,i,e,n){const r=e[n]<0,o=e[n+1],u=t[r?-e[n]:e[n]];if(r){if(t[Wn]>>11<t[ya]>>16&&(3&t[Wn])===i){t[Wn]+=2048,As(4,u,o);try{o.call(u)}finally{As(5,u,o)}}}else{As(4,u,o);try{o.call(u)}finally{As(5,u,o)}}}const wn=-1;class Jn{constructor(i,e,n){this.factory=i,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Qa(t,i,e){let n=0;for(;n<e.length;){const r=e[n];if("number"==typeof r){if(0!==r)break;n++;const o=e[n++],s=e[n++],u=e[n++];t.setAttribute(i,s,u,o)}else{const o=r,s=e[++n];Ns(o)?t.setProperty(i,o,s):t.setAttribute(i,o,s),n++}}return n}function ar(t){return 3===t||4===t||6===t}function Ns(t){return 64===t.charCodeAt(0)}function ts(t,i){if(null!==i&&0!==i.length)if(null===t||0===t.length)t=i.slice();else{let e=-1;for(let n=0;n<i.length;n++){const r=i[n];"number"==typeof r?e=r:0===e||lr(t,e,r,null,-1===e||2===e?i[++n]:null)}}return t}function lr(t,i,e,n,r){let o=0,s=t.length;if(-1===i)s=-1;else for(;o<t.length;){const u=t[o++];if("number"==typeof u){if(u===i){s=-1;break}if(u>i){s=o-1;break}}}for(;o<t.length;){const u=t[o];if("number"==typeof u)break;if(u===e){if(null===n)return void(null!==r&&(t[o+1]=r));if(n===t[o+1])return void(t[o+2]=r)}o++,null!==n&&o++,null!==r&&o++}-1!==s&&(t.splice(s,0,i),o=s+1),t.splice(o++,0,e),null!==n&&t.splice(o++,0,n),null!==r&&t.splice(o++,0,r)}function Bn(t){return t!==wn}function mi(t){return 32767&t}function Nr(t,i){let e=function nc(t){return t>>16}(t),n=i;for(;e>0;)n=n[ks],e--;return n}let Os=!0;function ns(t){const i=Os;return Os=t,i}const Rs=255,ea=5;let Ho=0;const ji={};function bo(t,i){const e=xa(t,i);if(-1!==e)return e;const n=i[an];n.firstCreatePass&&(t.injectorIndex=i.length,Sl(n.data,t),Sl(i,null),Sl(n.blueprint,null));const r=is(t,i),o=t.injectorIndex;if(Bn(r)){const s=mi(r),u=Nr(r,i),v=u[an].data;for(let w=0;w<8;w++)i[o+w]=u[s+w]|v[s+w]}return i[o+8]=r,o}function Sl(t,i){t.push(0,0,0,0,0,0,0,0,i)}function xa(t,i){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===i[t.injectorIndex+8]?-1:t.injectorIndex}function is(t,i){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,n=null,r=i;for(;null!==r;){if(n=Xu(r),null===n)return wn;if(e++,r=r[ks],-1!==n.injectorIndex)return n.injectorIndex|e<<16}return wn}function rs(t,i,e){!function Or(t,i,e){let n;"string"==typeof e?n=e.charCodeAt(0)||0:e.hasOwnProperty(Wa)&&(n=e[Wa]),null==n&&(n=e[Wa]=Ho++);const r=n&Rs;i.data[t+(r>>ea)]|=1<<r}(t,i,e)}function na(t,i,e){if(e&Rn.Optional||void 0!==t)return t;t1()}function os(t,i,e,n){if(e&Rn.Optional&&void 0===n&&(n=null),!(e&(Rn.Self|Rn.Host))){const r=t[jd],o=Ks(void 0);try{return r?r.get(i,n,e&Rn.Optional):o2(i,n,e&Rn.Optional)}finally{Ks(o)}}return na(n,0,e)}function ia(t,i,e,n=Rn.Default,r){if(null!==t){if(1024&i[Wn]){const s=function Ud(t,i,e,n,r){let o=t,s=i;for(;null!==o&&null!==s&&1024&s[Wn]&&!(256&s[Wn]);){const u=wl(o,s,e,n|Rn.Self,ji);if(u!==ji)return u;let v=o.parent;if(!v){const w=s[yl];if(w){const P=w.get(e,ji,n);if(P!==ji)return P}v=Xu(s),s=s[ks]}o=v}return r}(t,i,e,n,ji);if(s!==ji)return s}const o=wl(t,i,e,n,ji);if(o!==ji)return o}return os(i,e,n,r)}function wl(t,i,e,n,r){const o=function qc(t){if("string"==typeof t)return t.charCodeAt(0)||0;const i=t.hasOwnProperty(Wa)?t[Wa]:void 0;return"number"==typeof i?i>=0?i&Rs:$c:i}(e);if("function"==typeof o){if(!_e(i,t,n))return n&Rn.Host?na(r,0,n):os(i,e,n,r);try{const s=o(n);if(null!=s||n&Rn.Optional)return s;t1()}finally{Rt()}}else if("number"==typeof o){let s=null,u=xa(t,i),v=wn,w=n&Rn.Host?i[yr][Co]:null;for((-1===u||n&Rn.SkipSelf)&&(v=-1===u?is(t,i):i[u+8],v!==wn&&Ku(n,!1)?(s=i[an],u=mi(v),i=Nr(v,i)):u=-1);-1!==u;){const P=i[an];if(qd(o,u,P.data)){const F=zc(u,i,e,s,n,w);if(F!==ji)return F}v=i[u+8],v!==wn&&Ku(n,i[an].data[u+8]===w)&&qd(o,u,i)?(s=P,u=mi(v),i=Nr(v,i)):u=-1}}return r}function zc(t,i,e,n,r,o){const s=i[an],u=s.data[t+8],P=Ya(u,s,e,null==n?Vd(u)&&Os:n!=s&&0!=(3&u.type),r&Rn.Host&&o===u);return null!==P?Bs(i,s,P,u):ji}function Ya(t,i,e,n,r){const o=t.providerIndexes,s=i.data,u=1048575&o,v=t.directiveStart,P=o>>20,R=r?u+P:t.directiveEnd;for(let V=n?u:u+P;V<R;V++){const ne=s[V];if(V<v&&e===ne||V>=v&&ne.type===e)return V}if(r){const V=s[v];if(V&&Ms(V)&&V.type===e)return v}return null}function Bs(t,i,e,n){let r=t[e];const o=i.data;if(function Kt(t){return t instanceof Jn}(r)){const s=r;s.resolving&&function Cv(t,i){const e=i?`. Dependency path: ${i.join(" > ")} > ${t}`:"";throw new Qt(-200,`Circular dependency in DI detected for ${t}${e}`)}(function Ti(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():On(t)}(o[e]));const u=ns(s.canSeeViewProviders);s.resolving=!0;const v=s.injectImpl?Ks(s.injectImpl):null;_e(t,n,Rn.Default);try{r=t[e]=s.factory(void 0,o,t,n),i.firstCreatePass&&e>=n.directiveStart&&function Ut(t,i,e){const{ngOnChanges:n,ngOnInit:r,ngDoCheck:o}=i.type.prototype;if(n){const s=Ym(i);(e.preOrderHooks??(e.preOrderHooks=[])).push(t,s),(e.preOrderCheckHooks??(e.preOrderCheckHooks=[])).push(t,s)}r&&(e.preOrderHooks??(e.preOrderHooks=[])).push(0-t,r),o&&((e.preOrderHooks??(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks??(e.preOrderCheckHooks=[])).push(t,o))}(e,o[e],i)}finally{null!==v&&Ks(v),ns(u),s.resolving=!1,Rt()}}return r}function qd(t,i,e){return!!(e[i+(t>>ea)]&1<<t)}function Ku(t,i){return!(t&Rn.Self||t&Rn.Host&&i)}class Il{constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return ia(this._tNode,this._lView,i,Jr(n),e)}}function $c(){return new Il(re(),G())}function Rr(t){return Ua(()=>{const i=t.prototype.constructor,e=i[Ca]||$d(i),n=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){const o=r[Ca]||$d(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function $d(t){return Om(t)?()=>{const i=$d(En(t));return i&&i()}:bl(t)}function Xu(t){const i=t[an],e=i.type;return 2===e?i.declTNode:1===e?t[Co]:null}const ra="__parameters__";function Ka(t,i,e){return Ua(()=>{const n=function Gc(t){return function(...e){if(t){const n=t(...e);for(const r in n)this[r]=n[r]}}}(i);function r(...o){if(this instanceof r)return n.apply(this,o),this;const s=new r(...o);return u.annotation=s,u;function u(v,w,P){const F=v.hasOwnProperty(ra)?v[ra]:Object.defineProperty(v,ra,{value:[]})[ra];for(;F.length<=P;)F.push(null);return(F[P]=F[P]||[]).push(s),v}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class _n{constructor(i,e){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=sn({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function js(t,i){t.forEach(e=>Array.isArray(e)?js(e,i):i(e))}function oc(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function sc(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function jr(t,i){const e=[];for(let n=0;n<t;n++)e.push(i);return e}function Ao(t,i,e){let n=Xa(t,i);return n>=0?t[1|n]=e:(n=~n,function jn(t,i,e,n){let r=t.length;if(r==i)t.push(e,n);else if(1===r)t.push(n,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>i;)t[r]=t[r-2],r--;t[i]=e,t[i+1]=n}}(t,n,i,e)),n}function Vs(t,i){const e=Xa(t,i);if(e>=0)return t[1|e]}function Xa(t,i){return function ac(t,i,e){let n=0,r=t.length>>e;for(;r!==n;){const o=n+(r-n>>1),s=t[o<<e];if(i===s)return o<<e;s>i?r=o:n=o+1}return~(r<<e)}(t,i,1)}const Pl=Ar(Ka("Optional"),8),dc=Ar(Ka("SkipSelf"),4);var ki=(()=>((ki=ki||{})[ki.Important=1]="Important",ki[ki.DashCase=2]="DashCase",ki))();const Qc=new Map;let tu=0;const Al="__ngContext__";function Vr(t,i){jo(i)?(t[Al]=i[Ja],function Yc(t){Qc.set(t[Ja],t)}(i)):t[Al]=i}let fo;function Ea(t,i){return fo(t,i)}function ds(t){const i=t[er];return Xo(i)?i[er]:i}function ur(t){return wo(t[Rc])}function pc(t){return wo(t[Bo])}function wo(t){for(;null!==t&&!Xo(t);)t=t[Bo];return t}function po(t,i,e,n,r){if(null!=n){let o,s=!1;Xo(n)?o=n:jo(n)&&(s=!0,n=n[Ei]);const u=mo(n);0===t&&null!==e?null==r?Cc(i,e,u):aa(i,e,u,r||null,!0):1===t&&null!==e?aa(i,e,u,r||null,!0):2===t?function ad(t,i,e){const n=Io(t,i);n&&function w1(t,i,e,n){t.removeChild(i,e,n)}(t,n,i,e)}(i,u,s):3===t&&i.destroyNode(u),null!=o&&function I2(t,i,e,n,r){const o=e[ln];o!==mo(e)&&po(i,t,n,o,r);for(let u=yo;u<e.length;u++){const v=e[u];fu(v[an],v,t,i,n,o)}}(i,t,o,e,r)}}function ol(t,i,e){return t.createElement(i,e)}function rd(t,i){const e=t[jc],n=e.indexOf(i),r=i[er];512&i[Wn]&&(i[Wn]&=-513,I(r,-1)),e.splice(n,1)}function qo(t,i){if(t.length<=yo)return;const e=yo+i,n=t[e];if(n){const r=n[Xs];null!==r&&r!==t&&rd(r,n),i>0&&(t[e-1][Bo]=n[Bo]);const o=sc(t,yo+i);!function gc(t,i){fu(t,i,i[Ln],2,null,null),i[Ei]=null,i[Co]=null}(n[an],n);const s=o[Oi];null!==s&&s.detachView(o[an]),n[er]=null,n[Bo]=null,n[Wn]&=-65}return n}function us(t,i){if(!(128&i[Wn])){const e=i[Ln];e.destroyNode&&fu(t,i,e,3,null,null),function id(t){let i=t[Rc];if(!i)return Vi(t[an],t);for(;i;){let e=null;if(jo(i))e=i[Rc];else{const n=i[yo];n&&(e=n)}if(!e){for(;i&&!i[Bo]&&i!==t;)jo(i)&&Vi(i[an],i),i=i[er];null===i&&(i=t),jo(i)&&Vi(i[an],i),e=i&&i[Bo]}i=e}}(i)}}function Vi(t,i){if(!(128&i[Wn])){i[Wn]&=-65,i[Wn]|=128,function Er(t,i){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let n=0;n<e.length;n+=2){const r=i[e[n]];if(!(r instanceof Jn)){const o=e[n+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){const u=r[o[s]],v=o[s+1];As(4,u,v);try{v.call(u)}finally{As(5,u,v)}}else{As(4,r,o);try{o.call(r)}finally{As(5,r,o)}}}}}(t,i),function Gi(t,i){const e=t.cleanup,n=i[Nc];let r=-1;if(null!==e)for(let o=0;o<e.length-1;o+=2)if("string"==typeof e[o]){const s=e[o+3];s>=0?n[r=s]():n[r=-s].unsubscribe(),o+=2}else{const s=n[r=e[o+1]];e[o].call(s)}if(null!==n){for(let o=r+1;o<n.length;o++)(0,n[o])();i[Nc]=null}}(t,i),1===i[an].type&&i[Ln].destroy();const e=i[Xs];if(null!==e&&Xo(i[er])){e!==i[er]&&rd(e,i);const n=i[Oi];null!==n&&n.detachView(t)}!function iu(t){Qc.delete(t[Ja])}(i)}}function Hr(t,i,e){return function La(t,i,e){let n=i;for(;null!==n&&40&n.type;)n=(i=n).parent;if(null===n)return e[Ei];{const{componentOffset:r}=n;if(r>-1){const{encapsulation:o}=t.data[n.directiveStart+r];if(o===Es.None||o===Es.Emulated)return null}return es(n,e)}}(t,i.parent,e)}function aa(t,i,e,n,r){t.insertBefore(i,e,n,r)}function Cc(t,i,e){t.appendChild(i,e)}function au(t,i,e,n,r){null!==n?aa(t,i,e,n,r):Cc(t,i,e)}function Io(t,i){return t.parentNode(i)}function lu(t,i,e){return x1(t,i,e)}let od,ld,P1,la,x1=function cu(t,i,e){return 40&t.type?es(t,e):null};function sd(t,i,e,n){const r=Hr(t,n,i),o=i[Ln],u=lu(n.parent||i[Co],n,i);if(null!=r)if(Array.isArray(e))for(let v=0;v<e.length;v++)au(o,r,e[v],u,!1);else au(o,r,e,u,!1);void 0!==od&&od(o,n,i,e,r)}function uu(t,i){if(null!==i){const e=i.type;if(3&e)return es(i,t);if(4&e)return hu(-1,t[i.index]);if(8&e){const n=i.child;if(null!==n)return uu(t,n);{const r=t[i.index];return Xo(r)?hu(-1,r):mo(r)}}if(32&e)return Ea(i,t)()||mo(t[i.index]);{const n=dh(t,i);return null!==n?Array.isArray(n)?n[0]:uu(ds(t[yr]),n):uu(t,i.next)}}return null}function dh(t,i){return null!==i?t[yr][Co].projection[i.projection]:null}function hu(t,i){const e=yo+t+1;if(e<i.length){const n=i[e],r=n[an].firstChild;if(null!==r)return uu(n,r)}return i[ln]}function mu(t,i,e,n,r,o,s){for(;null!=e;){const u=n[e.index],v=e.type;if(s&&0===i&&(u&&Vr(mo(u),n),e.flags|=2),32!=(32&e.flags))if(8&v)mu(t,i,e.child,n,r,o,!1),po(i,t,r,u,o);else if(32&v){const w=Ea(e,n);let P;for(;P=w();)po(i,t,r,P,o);po(i,t,r,u,o)}else 16&v?D1(t,i,n,e,r,o):po(i,t,r,u,o);e=s?e.projectionNext:e.next}}function fu(t,i,e,n,r,o){mu(e,n,t.firstChild,i,r,o,!1)}function D1(t,i,e,n,r,o){const s=e[yr],v=s[Co].projection[n.projection];if(Array.isArray(v))for(let w=0;w<v.length;w++)po(i,t,r,v[w],o);else mu(t,i,v,s[er],r,o,!0)}function lf(t,i,e){""===e?t.removeAttribute(i,"class"):t.setAttribute(i,"class",e)}function cf(t,i,e){const{mergedAttrs:n,classes:r,styles:o}=e;null!==n&&Qa(t,i,n),null!==r&&lf(t,i,r),null!==o&&function D2(t,i,e){t.setAttribute(i,"style",e)}(t,i,o)}function ka(t){return function pu(){if(void 0===ld&&(ld=null,Ki.trustedTypes))try{ld=Ki.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return ld}()?.createHTML(t)||t}function hs(){if(void 0===la&&(la=null,Ki.trustedTypes))try{la=Ki.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return la}function Ma(t){return hs()?.createHTML(t)||t}function T1(t){return hs()?.createScriptURL(t)||t}class $o{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Kh})`}}class zs extends $o{getTypeName(){return"HTML"}}class M2 extends $o{getTypeName(){return"Style"}}class F2 extends $o{getTypeName(){return"Script"}}class hf extends $o{getTypeName(){return"URL"}}class mf extends $o{getTypeName(){return"ResourceURL"}}function Uo(t){return t instanceof $o?t.changingThisBreaksApplicationSecurity:t}function ca(t,i){const e=function A2(t){return t instanceof $o&&t.getTypeName()||null}(t);if(null!=e&&e!==i){if("ResourceURL"===e&&"URL"===i)return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${Kh})`)}return e===i}class gf{constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i="<body><remove></remove>"+i;try{const e=(new window.DOMParser).parseFromString(ka(i),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(i):(e.removeChild(e.firstChild),e)}catch{return null}}}class N2{constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){const e=this.inertDocument.createElement("template");return e.innerHTML=ka(i),e}}const R2=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function mh(t){return(t=String(t)).match(R2)?t:"unsafe:"+t}function sl(t){const i={};for(const e of t.split(","))i[e]=!0;return i}function vu(...t){const i={};for(const e of t)for(const n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}const L1=sl("area,br,col,hr,img,wbr"),_u=sl("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),vf=sl("rp,rt"),S=vu(L1,vu(_u,sl("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),vu(vf,sl("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),vu(vf,_u)),T=sl("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),U=vu(T,sl("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,c
3olspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),sl("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),W=sl("script,style,template");class Y{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let e=i.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(i){const e=i.nodeName.toLowerCase();if(!S.hasOwnProperty(e))return this.sanitizedSomething=!0,!W.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=i.attributes;for(let r=0;r<n.length;r++){const o=n.item(r),s=o.name,u=s.toLowerCase();if(!U.hasOwnProperty(u)){this.sanitizedSomething=!0;continue}let v=o.value;T[u]&&(v=mh(v)),this.buf.push(" ",s,'="',Ce(v),'"')}return this.buf.push(">"),!0}endElement(i){const e=i.nodeName.toLowerCase();S.hasOwnProperty(e)&&!L1.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(i){this.buf.push(Ce(i))}checkClobberedElement(i,e){if(e&&(i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${i.outerHTML}`);return e}}const X=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ie=/([^\#-~ |!])/g;function Ce(t){return t.replace(/&/g,"&").replace(X,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65536)+";"}).replace(ie,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Ae;function Re(t,i){let e=null;try{Ae=Ae||function pf(t){const i=new N2(t);return function O2(){try{return!!(new window.DOMParser).parseFromString(ka(""),"text/html")}catch{return!1}}()?new gf(i):i}(t);let n=i?String(i):"";e=Ae.getInertBodyElement(n);let r=5,o=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=o,o=e.innerHTML,e=Ae.getInertBodyElement(n)}while(n!==o);return ka((new Y).sanitizeChildren(Te(e)||e))}finally{if(e){const n=Te(e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function Te(t){return"content"in t&&function yt(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Be=(()=>((Be=Be||{})[Be.NONE=0]="NONE",Be[Be.HTML=1]="HTML",Be[Be.STYLE=2]="STYLE",Be[Be.SCRIPT=3]="SCRIPT",Be[Be.URL=4]="URL",Be[Be.RESOURCE_URL=5]="RESOURCE_URL",Be))();function ce(t){const i=Kn();return i?Ma(i.sanitize(Be.HTML,t)||""):ca(t,"HTML")?Ma(Uo(t)):Re(function df(){return void 0!==P1?P1:typeof document<"u"?document:void 0}(),On(t))}function fe(t){const i=Kn();return i?i.sanitize(Be.URL,t)||"":ca(t,"URL")?Uo(t):mh(On(t))}function Pt(t){const i=Kn();if(i)return T1(i.sanitize(Be.RESOURCE_URL,t)||"");if(ca(t,"ResourceURL"))return T1(Uo(t));throw new Qt(904,!1)}function Kn(){const t=G();return t&&t[Ju]}const Xn=new _n("ENVIRONMENT_INITIALIZER"),zi=new _n("INJECTOR",-1),Mi=new _n("INJECTOR_DEF_TYPES");
3class $n{get(i,e=bn){if(e===bn){const n=new Error(`NullInjectorError: No provider for ${Qi(i)}!`);throw n.name="NullInjectorError",n}return e}}function Go(...t){return{\u0275providers:Lr(0,t),\u0275fromNgModule:!0}}function Lr(t,...i){const e=[],n=new Set;let r;return js(i,o=>{const s=o;vi(s,e,[],n)&&(r||(r=[]),r.push(s))}),void 0!==r&&No(r,e),e}function No(t,i){for(let e=0;e<t.length;e++){const{providers:r}=t[e];Oo(r,o=>{i.push(o)})}}function vi(t,i,e,n){if(!(t=En(t)))return!1;let r=null,o=Ad(t);const s=!o&&zn(t);if(o||s){if(s&&!s.standalone)return!1;r=t}else{const v=t.ngModule;if(o=Ad(v),!o)return!1;r=v}const u=n.has(r);if(s){if(u)return!1;if(n.add(r),s.dependencies){const v="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const w of v)vi(w,i,e,n)}}else{if(!o)return!1;{if(null!=o.imports&&!u){let w;n.add(r);try{js(o.imports,P=>{vi(P,i,e,n)&&(w||(w=[]),w.push(P))})}finally{}void 0!==w&&No(w,i)}if(!u){const w=bl(r)||(()=>new r);i.push({provide:r,useFactory:w,deps:Yn},{provide:Mi,useValue:r,multi:!0},{provide:Xn,useValue:()=>Mt(r),multi:!0})}const v=o.providers;null==v||u||Oo(v,P=>{i.push(P)})}}return r!==t&&void 0!==t.providers}function Oo(t,i){for(let e of t)$u(e)&&(e=e.\u0275providers),Array.isArray(e)?Oo(e,i):i(e)}const no=Ni({provide:String,useValue:Ni});function Zr(t){return null!==t&&"object"==typeof t&&no in t}function Do(t){return"function"==typeof t}const da=new _n("Set Injector scope."),Fa={},cd={};let Aa;function Yi(){return void 0===Aa&&(Aa=new $n),Aa}class al{}class k1 extends al{get destroyed(){return this._destroyed}constructor(i,e,n,r){super(),this.parent=e,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,hd(i,s=>this.processProvider(s)),this.records.set(zi,Po(void 0,this)),r.has("environment")&&this.records.set(al,Po(void 0,this));const o=this.records.get(da);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Mi.multi,Yn,Rn.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();for(const i of this._onDestroyHooks)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(i){this._onDestroyHooks.push(i)}runInContext(i){this.assertNotDestroyed();const e=Ts(this),n=Ks(void 0);try{return i()}finally{Ts(e),Ks(n)}}get(i,e=bn,n=Rn.Default){this.assertNotDestroyed(),n=Jr(n);const r=Ts(this),o=Ks(void 0);try{if(!(n&Rn.SkipSelf)){let u=this.records.get(i);if(void 0===u){const v=function _f(t){return"function"==typeof t||"object"==typeof t&&t instanceof _n}(i)&&Md(i);u=v&&this.injectableDefInScope(v)?Po(fh(i),Fa):null,this.records.set(i,u)}if(null!=u)return this.hydrate(i,u)}return(n&Rn.Self?Yi():this.parent).get(i,e=n&Rn.Optional&&e===bn?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[bi]=s[bi]||[]).unshift(Qi(i)),r)throw s;return function s2(t,i,e,n){const r=t[bi];throw i[Fc]&&r.unshift(i[Fc]),t.message=function qm(t,i,e,n=null){t=t&&"\n"===t.charAt(0)&&t.charAt(1)==Gu?t.slice(2):t;let r=Qi(i);if(Array.isArray(i))r=i.map(Qi).join(" -> ");else if("object"==typeof i){let o=[];for(let s in i)if(i.hasOwnProperty(s)){let u=i[s];o.push(s+":"+("string"==typeof u?JSON.stringify(u):Qi(u)))}r=`{${o.join(", ")}}`}return`${e}${n?"("+n+")":""}[${r}]: ${t.replace(Vm,"\n ")}`}("\n"+t.message,r,e,n),t[o1]=r,t[bi]=null,t}(s,i,"R3InjectorError",this.source)}throw s}finally{Ks(o),Ts(r)}}resolveInjectorInitializers(){const i=Ts(this),e=Ks(void 0);try{const n=this.get(Xn.multi,Yn,Rn.Self);for(const r of n)r()}finally{Ts(i),Ks(e)}}toString(){const i=[],e=this.records;for(const n of e.keys())i.push(Qi(n));return`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Qt(205,!1)}processProvider(i){let e=Do(i=En(i))?i:En(i&&i.provide);const n=function Cu(t){return Zr(t)?Po(void 0,t.useValue):Po(yu(t),Fa)}(i);if(Do(i)||!0!==i.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=Po(void 0,Fa,!0),r.factory=()=>Xr(r.multi),this.records.set(e,r)),e=i,r.multi.push(i)}this.records.set(e,n)}
vendor: 4,787 bytes, line 3
3hydrate(i,e){return e.value===Fa&&(e.value=cd,e.value=e.factory()),"object"==typeof e.value&&e.value&&function ud(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(i){if(!i.providedIn)return!1;const e=En(i.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function fh(t){const i=Md(t),e=null!==i?i.factory:bl(t);if(null!==e)return e;if(t instanceof _n)throw new Qt(204,!1);if(t instanceof Function)return function ph(t){const i=t.length;if(i>0)throw jr(i,"?"),new Qt(204,!1);const e=function Fd(t){return t&&(t[Nd]||t[r2])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new Qt(204,!1)}function yu(t,i,e){let n;if(Do(t)){const r=En(t);return bl(r)||fh(r)}if(Zr(t))n=()=>En(t.useValue);else if(function ms(t){return!(!t||!t.useFactory)}(t))n=()=>t.useFactory(...Xr(t.deps||[]));else if(function xo(t){return!(!t||!t.useExisting)}(t))n=()=>Mt(En(t.useExisting));else{const r=En(t&&(t.useClass||t.provide));if(!function dd(t){return!!t.deps}(t))return bl(r)||fh(r);n=()=>new r(...Xr(t.deps))}return n}function Po(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function hd(t,i){for(const e of t)Array.isArray(e)?hd(e,i):e&&$u(e)?hd(e.\u0275providers,i):i(e)}class Cf{}class bu{}class j2{resolveComponentFactory(i){throw function M1(t){const i=Error(`No component factory found for ${Qi(t)}. Did you add it to @NgModule.entryComponents?`);return i.ngComponent=t,i}(i)}}let md=(()=>{class t{}return t.NULL=new j2,t})();function F1(){return fs(re(),G())}function fs(t,i){return new To(es(t,i))}let To=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=F1,t})();function V2(t){return t instanceof To?t.nativeElement:t}class yf{}let ps=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function vh(){const t=G(),e=Vo(re().index,t);return(jo(e)?e:t)[Ln]}(),t})(),bf=(()=>{class t{}return t.\u0275prov=sn({token:t,providedIn:"root",factory:()=>null}),t})();class fd{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const _h=new fd("15.2.9"),wu={},yc="ngOriginalError";function A1(t){return t[yc]}class ll{constructor(){this._console=console}handleError(i){const e=this._findOriginalError(i);this._console.error("ERROR",i),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(i){let e=i&&A1(i);for(;e&&A1(e);)e=A1(e);return e||null}}function Ch(t){return t.ownerDocument.defaultView}function Iu(t,i,e){let n=t.length;for(;;){const r=t.indexOf(i,e);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const o=i.length;if(r+o===n||t.charCodeAt(r+o)<=32)return r}e=r+1}}const Na="ng-template";function jl(t,i,e){let n=0,r=!0;for(;n<t.length;){let o=t[n++];if("string"==typeof o&&r){const s=t[n++];if(e&&"class"===o&&-1!==Iu(s.toLowerCase(),i,0))return!0}else{if(1===o){for(;n<t.length&&"string"==typeof(o=t[n++]);)if(o.toLowerCase()===i)return!0;return!1}"number"==typeof o&&(r=!1)}}return!1}function dl(t){return 4===t.type&&t.value!==Na}function yh(t,i,e){return i===(4!==t.type||e?t.value:Na)}function O1(t,i,e){let n=4;const r=t.attrs||[],o=function Jy(t){for(let i=0;i<t.length;i++)if(ar(t[i]))return i;return t.length}(r);let s=!1;for(let u=0;u<i.length;u++){const v=i[u];if("number"!=typeof v){if(!s)if(4&n){if(n=2|1&n,""!==v&&!yh(t,v,e)||""===v&&1===i.length){if($s(n))return!1;s=!0}}else{const w=8&n?v:i[++u];if(8&n&&null!==t.attrs){if(!jl(t.attrs,w,e)){if($s(n))return!1;s=!0}continue}const F=$2(8&n?"class":v,r,dl(t),e);if(-1===F){if($s(n))return!1;s=!0;continue}if(""!==w){let R;R=F>o?"":r[F+1].toLowerCase();const V=8&n?R:null;if(V&&-1!==Iu(V,w,0)||2&n&&w!==R){if($s(n))return!1;s=!0}}}}else{if(!s&&!$s(n)&&!$s(v))return!1;if(s&&$s(v))continue;s=!1,n=v|1&n}}return $s(n)||s}function $s(t){return 0==(1&t)}function $2(t,i,e,n){if(null===i)return-1;let r=0;if(n||!e){let o=!1;for(;r<i.length;){const s=i[r];if(s===t)return r;if(3===s||6===s)o=!0;else{if(1===s||2===s){let u=i[++r];for(;"string"==typeof u;)u=i[++r];continue}if(4===s)break;if(0===s){r+=4;continue}}r+=o?1:2}return-1}return function Zy(t,i){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const n=t[e];if("number"==typeof n)return-1;if(n===i)return e;e++}return-1}(i,t)}function bh(t,i,e=!1){for(let n=0;n<i.length;n++)if(O1(t,i[n],e))return!0;return!1}function Qy(t,i){e:for(let e=0;e<i.length;e++){const n=i[e];if(t.length===n.length){for(let r=0;r<t.length;r++)if(t[r]!==n[r])continue e;return!0}}return!1}function kv(t,i){return t?":not("+i.trim()+")":i}function Yy(t){let i=t[0],e=1,n=2,r="",o=!1;for(;e<t.length;){let s=t[e];if("string"==typeof s)if(2&n){const u=t[++e];r+="["+s+(u.length>0?'="'+u+'"':"")+"]"}else 8&n?r+="."+s:4&n&&(r+=" "+s);
3else""!==r&&!$s(s)&&(i+=kv(o,r),r=""),n=s,o=o||!$s(n);e++}return""!==r&&(i+=kv(o,r)),i}const Un={};function c(t){Mv(K(),G(),mn()+t,!1)}function Mv(t,i,e,n){if(!n)if(3==(3&i[Wn])){const o=t.preOrderCheckHooks;null!==o&&An(i,o,e)}else{const o=t.preOrderHooks;null!==o&&Hn(i,o,0,e)}ot(e)}function Ov(t,i=null,e=null,n){const r=Rv(t,i,e,n);return r.resolveInjectorInitializers(),r}function Rv(t,i=null,e=null,n,r=new Set){const o=[e||Yn,Go(t)];return n=n||("object"==typeof t?void 0:Qi(t)),new k1(o,i||Yi(),n||null,r)}let gs=(()=>{class t{static create(e,n){if(Array.isArray(e))return Ov({name:""},n,e,"");{const r=e.name??"";return Ov({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=bn,t.NULL=new $n,t.\u0275prov=sn({token:t,providedIn:"any",factory:()=>Mt(zi)}),t.__NG_ELEMENT_ID__=-1,t})();function $(t,i=Rn.Default){const e=G();return null===e?Mt(t,i):ia(re(),e,En(t),i)}function $v(t,i){const e=t.contentQueries;if(null!==e)for(let n=0;n<e.length;n+=2){const o=e[n+1];if(-1!==o){const s=t.data[o];se(e[n]),s.contentQueries(2,i[o],o)}}}function Ef(t,i,e,n,r,o,s,u,v,w,P){const F=i.blueprint.slice();return F[Ei]=r,F[Wn]=76|n,(null!==P||t&&1024&t[Wn])&&(F[Wn]|=1024),y(F),F[er]=F[ks]=t,F[Pr]=e,F[Oc]=s||t&&t[Oc],F[Ln]=u||t&&t[Ln],F[Ju]=v||t&&t[Ju]||null,F[jd]=w||t&&t[jd]||null,F[Co]=o,F[Ja]=function nu(){return tu++}(),F[yl]=P,F[yr]=2==i.type?t[yr]:F,F}function wh(t,i,e,n,r){let o=t.data[i];if(null===o)o=function Z2(t,i,e,n,r){const o=be(),s=wt(),v=t.data[i]=function I6(t,i,e,n,r,o){return{type:e,index:n,insertBeforeIndex:null,injectorIndex:i?i.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,e,i,n,r);return null===t.firstChild&&(t.firstChild=v),null!==o&&(s?null==o.child&&null!==v.parent&&(o.child=v):null===o.next&&(o.next=v,v.prev=o)),v}(t,i,e,n,r),function tt(){return b.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=e,o.value=n,o.attrs=r;const s=function Me(){const t=b.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return Ge(o,!0),o}function B1(t,i,e,n){if(0===e)return-1;const r=i.length;for(let o=0;o<e;o++)i.push(n),t.blueprint.push(n),t.data.push(null);return r}function Q2(t,i,e){Ee(i);try{const n=t.viewQuery;null!==n&&og(1,n,e);const r=t.template;null!==r&&Uv(t,i,r,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&$v(t,i),t.staticViewQueries&&og(2,t.viewQuery,e);const o=t.components;null!==o&&function b6(t,i){for(let e=0;e<i.length;e++)$6(t,i[e])}(i,o)}
3catch(n){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),n}finally{i[Wn]&=-5,kt()}}function Lf(t,i,e,n){const r=i[Wn];if(128!=(128&r)){Ee(i);try{y(i),function ye(t){return b.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&Uv(t,i,e,2,n);const s=3==(3&r);if(s){const w=t.preOrderCheckHooks;null!==w&&An(i,w,null)}else{const w=t.preOrderHooks;null!==w&&Hn(i,w,0,null),Zn(i,0)}if(function z6(t){for(let i=ur(t);null!==i;i=pc(i)){if(!i[Bc])continue;const e=i[jc];for(let n=0;n<e.length;n++){const r=e[n];512&r[Wn]||I(r[er],1),r[Wn]|=512}}}(i),function H6(t){for(let i=ur(t);null!==i;i=pc(i))for(let e=yo;e<i.length;e++){const n=i[e],r=n[an];g(n)&&Lf(r,n,r.template,n[Pr])}}(i),null!==t.contentQueries&&$v(t,i),s){const w=t.contentCheckHooks;null!==w&&An(i,w)}else{const w=t.contentHooks;null!==w&&Hn(i,w,1),Zn(i,1)}!function C6(t,i){const e=t.hostBindingOpCodes;if(null!==e)try{for(let n=0;n<e.length;n++){const r=e[n];if(r<0)ot(~r);else{const o=r,s=e[++n],u=e[++n];ze(s,o),u(2,i[o])}}}finally{ot(-1)}}(t,i);const u=t.components;null!==u&&function y6(t,i){for(let e=0;e<i.length;e++)q6(t,i[e])}(i,u);const v=t.viewQuery;if(null!==v&&og(2,v,n),s){const w=t.viewCheckHooks;null!==w&&An(i,w)}else{const w=t.viewHooks;null!==w&&Hn(i,w,2),Zn(i,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),i[Wn]&=-41,512&i[Wn]&&(i[Wn]&=-513,I(i[er],-1))}finally{kt()}}}function Uv(t,i,e,n,r){const o=mn(),s=2&n;try{ot(-1),s&&i.length>Ri&&Mv(t,i,Ri,!1),As(s?2:0,r),e(n,r)}finally{ot(o),As(s?3:1,r)}}function Y2(t,i,e){if(Yu(i)){const r=i.directiveEnd;for(let o=i.directiveStart;o<r;o++){const s=t.data[o];s.contentQueries&&s.contentQueries(1,e[o],o)}}}function K2(t,i,e){H()&&(function k6(t,i,e,n){const r=e.directiveStart,o=e.directiveEnd;Vd(e)&&function B6(t,i,e){const n=es(i,t),r=Gv(e),o=t[Oc],s=kf(t,Ef(t,r,null,e.onPush?32:16,n,i,o,o.createRenderer(n,e),null,null,null));t[i.index]=s}(i,e,t.data[r+e.componentOffset]),t.firstCreatePass||bo(e,i),Vr(n,i);const s=e.initialInputs;for(let u=r;u<o;u++){const v=t.data[u],w=Bs(i,t,u,e);Vr(w,i),null!==s&&j6(0,u-r,w,v,0,s),Ms(v)&&(Vo(e.index,i)[Pr]=Bs(i,t,u,e))}}(t,i,e,es(e,i)),64==(64&e.flags)&&Yv(t,i,e))}function X2(t,i,e=es){const n=i.localNames;if(null!==n){let r=i.index+1;for(let o=0;o<n.length;o+=2){const s=n[o+1],u=-1===s?e(i,t):t[s];t[r++]=u}}}function Gv(t){const i=t.tView;return null===i||i.incompleteFirstPass?t.tView=eg(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):i}function eg(t,i,e,n,r,o,s,u,v,w){const P=Ri+n,F=P+r,R=function S6(t,i){const e=[];for(let n=0;n<i;n++)e.push(n<t?null:Un);return e}(P,F),V="function"==typeof w?w():w;return R[an]={type:t,blueprint:R,template:e,queries:null,viewQuery:u,declTNode:i,data:R.slice().fill(null,P),bindingStartIndex:P,expandoStartIndex:F,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:v,consts:V,incompleteFirstPass:!1}}function Wv(t,i,e,n){const r=Xv(i);null===e?r.push(n):(r.push(e),t.firstCreatePass&&e_(t).push(n,r.length-1))}function Jv(t,i,e,n){for(let r in t)if(t.hasOwnProperty(r)){e=null===e?{}:e;const o=t[r];null===n?Zv(e,i,r,o):n.hasOwnProperty(r)&&Zv(e,i,n[r],o)}return e}function Zv(t,i,e,n){t.hasOwnProperty(e)?t[e].push(i,n):t[e]=[i,n]}function ha(t,i,e,n,r,o,s,u){const v=es(i,e);let P,w=i.inputs;!u&&null!=w&&(P=w[n])?(sg(t,e,P,n,r),Vd(i)&&function P6(t,i){const e=Vo(i,t);16&e[Wn]||(e[Wn]|=32)}(e,i.index)):3&i.type&&(n=function D6(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(n),r=null!=s?s(r,i.value||"",n):r,o.setProperty(v,n,r))}function tg(t,i,e,n){if(H()){const r=null===n?null:{"":-1},o=function F6(t,i){const e=t.directiveRegistry;let n=null,r=null;if(e)for(let o=0;o<e.length;o++){const s=e[o];if(bh(i,s.selectors,!1))if(n||(n=[]),Ms(s))if(null!==s.findHostDirectiveDefs){const u=[];r=r||new Map,s.findHostDirectiveDefs(s,u,r),n.unshift(...u,s),ng(t,i,u.length)}else n.unshift(s),ng(t,i,0);else r=r||new Map,s.findHostDirectiveDefs?.(s,n,r),n.push(s)}return null===n?null:[n,r]}(t,e);let s,u;null===o?s=u=null:[s,u]=o,null!==s&&Qv(t,i,e,s,r,u),r&&function A6(t,i,e){if(i){const n=t.localNames=[];for(let r=0;r<i.length;r+=2){const o=e[i[r+1]];if(null==o)throw new Qt(-301,!1);n.push(i[r],o)}}}(e,n,r)}e.mergedAttrs=ts(e.mergedAttrs,e.attrs)}function Qv(t,i,e,n,r,o){for(let w=0;w<n.length;w++)rs(bo(e,i),t,n[w].type);!function O6(t,i,e){t.flags|=1,t.directiveStart=i,t.directiveEnd=i+e,t.providerIndexes=i}(e,t.data.length,n.length);for(let w=0;w<n.length;w++){const P=n[w];P.providersResolver&&P.providersResolver(P)}let s=!1,u=!1,v=B1(t,i,n.length,null);for(let w=0;w<n.length;w++){const P=n[w];
3e.mergedAttrs=ts(e.mergedAttrs,P.hostAttrs),R6(t,e,i,v,P),N6(v,P,r),null!==P.contentQueries&&(e.flags|=4),(null!==P.hostBindings||null!==P.hostAttrs||0!==P.hostVars)&&(e.flags|=64);const F=P.type.prototype;!s&&(F.ngOnChanges||F.ngOnInit||F.ngDoCheck)&&((t.preOrderHooks??(t.preOrderHooks=[])).push(e.index),s=!0),!u&&(F.ngOnChanges||F.ngDoCheck)&&((t.preOrderCheckHooks??(t.preOrderCheckHooks=[])).push(e.index),u=!0),v++}!function x6(t,i,e){const r=i.directiveEnd,o=t.data,s=i.attrs,u=[];let v=null,w=null;for(let P=i.directiveStart;P<r;P++){const F=o[P],R=e?e.get(F):null,ne=R?R.outputs:null;v=Jv(F.inputs,P,v,R?R.inputs:null),w=Jv(F.outputs,P,w,ne);const De=null===v||null===s||dl(i)?null:V6(v,P,s);u.push(De)}null!==v&&(v.hasOwnProperty("class")&&(i.flags|=8),v.hasOwnProperty("style")&&(i.flags|=16)),i.initialInputs=u,i.inputs=v,i.outputs=w}(t,e,o)}function Yv(t,i,e){const n=e.directiveStart,r=e.directiveEnd,o=e.index,s=function lt(){return b.lFrame.currentDirectiveIndex}();try{ot(o);for(let u=n;u<r;u++){const v=t.data[u],w=i[u];ft(u),(null!==v.hostBindings||0!==v.hostVars||null!==v.hostAttrs)&&M6(v,w)}}finally{ot(-1),ft(s)}}function M6(t,i){null!==t.hostBindings&&t.hostBindings(1,i)}function ng(t,i,e){i.componentOffset=e,(t.components??(t.components=[])).push(i.index)}function N6(t,i,e){if(e){if(i.exportAs)for(let n=0;n<i.exportAs.length;n++)e[i.exportAs[n]]=t;Ms(i)&&(e[""]=t)}}function R6(t,i,e,n,r){t.data[n]=r;const o=r.factory||(r.factory=bl(r.type)),s=new Jn(o,Ms(r),$);t.blueprint[n]=s,e[n]=s,function E6(t,i,e,n,r){const o=r.hostBindings;if(o){let s=t.hostBindingOpCodes;null===s&&(s=t.hostBindingOpCodes=[]);const u=~i.index;(function L6(t){let i=t.length;for(;i>0;){const e=t[--i];if("number"==typeof e&&e<0)return e}return 0})(s)!=u&&s.push(u),s.push(e,n,o)}}(t,i,n,B1(t,e,r.hostVars,Un),r)}function Vl(t,i,e,n,r,o){const s=es(t,i);!function ig(t,i,e,n,r,o,s){if(null==o)t.removeAttribute(i,r,e);else{const u=null==s?On(o):s(o,n||"",r);t.setAttribute(i,r,u,e)}}(i[Ln],s,o,t.value,e,n,r)}function j6(t,i,e,n,r,o){const s=o[i];if(null!==s){const u=n.setInput;for(let v=0;v<s.length;){const w=s[v++],P=s[v++],F=s[v++];null!==u?n.setInput(e,F,w,P):e[P]=F}}}function V6(t,i,e){let n=null,r=0;for(;r<e.length;){const o=e[r];if(0!==o)if(5!==o){if("number"==typeof o)break;if(t.hasOwnProperty(o)){null===n&&(n=[]);const s=t[o];for(let u=0;u<s.length;u+=2)if(s[u]===i){n.push(o,s[u+1],e[r+1]);break}}r+=2}else r+=2;else r+=4}return n}function Kv(t,i,e,n){return[t,!0,!1,i,null,0,n,e,null,null]}function q6(t,i){const e=Vo(i,t);if(g(e)){const n=e[an];48&e[Wn]?Lf(n,e,n.template,e[Pr]):e[tc]>0&&rg(e)}}function rg(t){for(let n=ur(t);null!==n;n=pc(n))for(let r=yo;r<n.length;r++){const o=n[r];if(g(o))if(512&o[Wn]){const s=o[an];Lf(s,o,s.template,o[Pr])}else o[tc]>0&&rg(o)}const e=t[an].components;if(null!==e)for(let n=0;n<e.length;n++){const r=Vo(e[n],t);g(r)&&r[tc]>0&&rg(r)}}function $6(t,i){const e=Vo(i,t),n=e[an];(function U6(t,i){for(let e=i.length;e<t.blueprint.length;e++)i.push(t.blueprint[e])})(n,e),Q2(n,e,e[Pr])}function kf(t,i){return t[Rc]?t[Ls][Bo]=i:t[Rc]=i,t[Ls]=i,i}function Mf(t){for(;t;){t[Wn]|=32;const i=ds(t);if(l2(t)&&!i)return t;t=i}return null}function Ff(t,i,e,n=!0){const r=i[Oc];r.begin&&r.begin();try{Lf(t,i,t.template,e)}catch(s){throw n&&n_(i,s),s}finally{r.end&&r.end()}}function og(t,i,e){se(0),i(t,e)}function Xv(t){return t[Nc]||(t[Nc]=[])}function e_(t){return t.cleanup||(t.cleanup=[])}function n_(t,i){const e=t[jd],n=e?e.get(ll,null):null;n&&n.handleError(i)}function sg(t,i,e,n,r){for(let o=0;o<e.length;){const s=e[o++],u=e[o++],v=i[s],w=t.data[s];null!==w.setInput?w.setInput(v,r,n,u):v[u]=r}}function bc(t,i,e){const n=zd(i,t);!function ou(t,i,e){t.setValue(i,e)}(t[Ln],n,e)}function Af(t,i,e){let n=e?t.styles:null,r=e?t.classes:null,o=0;if(null!==i)for(let s=0;s<i.length;s++){const u=i[s];"number"==typeof u?o=u:1==o?r=Nm(r,u):2==o&&(n=Nm(n,u+": "+i[++s]+";"))}e?t.styles=n:t.stylesWithoutHost=n,e?t.classes=r:t.classesWithoutHost=r}function Nf(t,i,e,n,r=!1){for(;null!==e;){const o=i[e.index];if(null!==o&&n.push(mo(o)),Xo(o))for(let u=yo;u<o.length;u++){const v=o[u],w=v[an].firstChild;null!==w&&Nf(v[an],v,w,n)}const s=e.type;if(8&s)Nf(t,i,e.child,n);else if(32&s){const u=Ea(e,i);let v;for(;v=u();)n.push(v)}else if(16&s){const u=dh(i,e);if(Array.isArray(u))n.push(...u);else{const v=ds(i[yr]);Nf(v[an],v,u,n,!0)}}e=r?e.projectionNext:e.next}return n}class j1{get rootNodes(){const i=this._lView,e=i[an];return Nf(e,i,e.firstChild,[])}constructor(i,e){this._lView=i,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Pr]}set context(i){this._lView[Pr]=i}get destroyed(){return 128==(128&this._lView[Wn])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const i=this._lView[er];if(Xo(i)){const e=i[Qu],n=e?e.indexOf(this):-1;n>-1&&(qo(i,n),sc(e,n))}this._attachedToViewContainer=!1}us(this._lView[an],this._lView)}
3onDestroy(i){Wv(this._lView[an],this._lView,null,i)}markForCheck(){Mf(this._cdRefInjectingView||this._lView)}detach(){this._lView[Wn]&=-65}reattach(){this._lView[Wn]|=64}detectChanges(){Ff(this._lView[an],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Qt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function vc(t,i){fu(t,i,i[Ln],2,null,null)}(this._lView[an],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new Qt(902,!1);this._appRef=i}}class G6 extends j1{constructor(i){super(i),this._view=i}detectChanges(){const i=this._view;Ff(i[an],i,i[Pr],!1)}checkNoChanges(){}get context(){return null}}class i_ extends md{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const e=zn(i);return new V1(e,this.ngModule)}}function r_(t){const i=[];for(let e in t)t.hasOwnProperty(e)&&i.push({propName:t[e],templateName:e});return i}class J6{constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){n=Jr(n);const r=this.injector.get(i,wu,n);return r!==wu||e===wu?r:this.parentInjector.get(i,e,n)}}class V1 extends bu{get inputs(){return r_(this.componentDef.inputs)}get outputs(){return r_(this.componentDef.outputs)}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=function Ky(t){return t.map(Yy).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!e}create(i,e,n,r){let o=(r=r||this.ngModule)instanceof al?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new J6(i,o):i,u=s.get(yf,null);if(null===u)throw new Qt(407,!1);const v=s.get(bf,null),w=u.createRenderer(null,this.componentDef),P=this.componentDef.selectors[0][0]||"div",F=n?function w6(t,i,e){return t.selectRootElement(i,e===Es.ShadowDom)}(w,n,this.componentDef.encapsulation):ol(w,P,function W6(t){const i=t.toLowerCase();return"svg"===i?ef:"math"===i?"math":null}(P)),R=this.componentDef.onPush?288:272,V=eg(0,null,null,1,0,null,null,null,null,null),ne=Ef(null,V,null,R,null,null,u,w,v,s,null);let De,ke;Ee(ne);try{const je=this.componentDef;let at,Ie=null;je.findHostDirectiveDefs?(at=[],Ie=new Map,je.findHostDirectiveDefs(je,at,Ie),at.push(je)):at=[je];const xt=function Q6(t,i){const e=t[an],n=Ri;return t[n]=i,wh(e,n,2,"#host",null)}(ne,F),Sn=function Y6(t,i,e,n,r,o,s,u){const v=r[an];!function K6(t,i,e,n){for(const r of t)i.mergedAttrs=ts(i.mergedAttrs,r.hostAttrs);null!==i.mergedAttrs&&(Af(i,i.mergedAttrs,!0),null!==e&&cf(n,e,i))}(n,t,i,s);const w=o.createRenderer(i,e),P=Ef(r,Gv(e),null,e.onPush?32:16,r[t.index],t,o,w,u||null,null,null);return v.firstCreatePass&&ng(v,t,n.length-1),kf(r,P),r[t.index]=P}(xt,F,je,at,ne,u,w);ke=nf(V,Ri),F&&function eb(t,i,e,n){if(n)Qa(t,e,["ng-version",_h.full]);else{const{attrs:r,classes:o}=function Xy(t){const i=[],e=[];let n=1,r=2;for(;n<t.length;){let o=t[n];if("string"==typeof o)2===r?""!==o&&i.push(o,t[++n]):8===r&&e.push(o);else{if(!$s(r))break;r=o}n++}return{attrs:i,classes:e}}(i.selectors[0]);r&&Qa(t,e,r),o&&o.length>0&&lf(t,e,o.join(" "))}}(w,je,F,n),void 0!==e&&function tb(t,i,e){const n=t.projection=[];for(let r=0;r<i.length;r++){const o=e[r];n.push(null!=o?Array.from(o):null)}}(ke,this.ngContentSelectors,e),De=function X6(t,i,e,n,r,o){const s=re(),u=r[an],v=es(s,r);Qv(u,r,s,e,null,n);for(let P=0;P<e.length;P++)Vr(Bs(r,u,s.directiveStart+P,s),r);Yv(u,r,s),v&&Vr(v,r);const w=Bs(r,u,s.directiveStart+s.componentOffset,s);if(t[Pr]=r[Pr]=w,null!==o)for(const P of o)P(w,i);return Y2(u,s,t),w}(Sn,je,at,Ie,ne,[nb]),Q2(V,ne,null)}finally{kt()}return new Z6(this.componentType,De,fs(ke,ne),ne,ke)}}class Z6 extends Cf{constructor(i,e,n,r,o){super(),this.location=n,this._rootLView=r,this._tNode=o,this.instance=e,this.hostView=this.changeDetectorRef=new G6(r),this.componentType=i}setInput(i,e){const n=this._tNode.inputs;let r;if(null!==n&&(r=n[i])){const o=this._rootLView;sg(o[an],o,r,i,e),Mf(Vo(this._tNode.index,o))}}get injector(){return new Il(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}}function nb(){const t=re();gn(G()[an],t)}function Fi(t){let i=function o_(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const n=[t];for(;i;){let r;
vendor: 13,760 bytes, line 3
3if(Ms(t))r=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new Qt(903,!1);r=i.\u0275dir}if(r){if(e){n.push(r);const s=t;s.inputs=ag(t.inputs),s.declaredInputs=ag(t.declaredInputs),s.outputs=ag(t.outputs);const u=r.hostBindings;u&&sb(t,u);const v=r.viewQuery,w=r.contentQueries;if(v&&rb(t,v),w&&ob(t,w),Am(t.inputs,r.inputs),Am(t.declaredInputs,r.declaredInputs),Am(t.outputs,r.outputs),Ms(r)&&r.data.animation){const P=t.data;P.animation=(P.animation||[]).concat(r.data.animation)}}const o=r.features;if(o)for(let s=0;s<o.length;s++){const u=o[s];u&&u.ngInherit&&u(t),u===Fi&&(e=!1)}}i=Object.getPrototypeOf(i)}!function ib(t){let i=0,e=null;for(let n=t.length-1;n>=0;n--){const r=t[n];r.hostVars=i+=r.hostVars,r.hostAttrs=ts(r.hostAttrs,e=ts(e,r.hostAttrs))}}(n)}function ag(t){return t===Ga?{}:t===Yn?[]:t}function rb(t,i){const e=t.viewQuery;t.viewQuery=e?(n,r)=>{i(n,r),e(n,r)}:i}function ob(t,i){const e=t.contentQueries;t.contentQueries=e?(n,r,o)=>{i(n,r,o),e(n,r,o)}:i}function sb(t,i){const e=t.hostBindings;t.hostBindings=e?(n,r)=>{i(n,r),e(n,r)}:i}function Of(t){return!!lg(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function lg(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Hl(t,i,e){return t[i]=e}function Wo(t,i,e){return!Object.is(t[i],e)&&(t[i]=e,!0)}function xu(t,i,e,n){const r=Wo(t,i,e);return Wo(t,i+1,n)||r}function Rf(t,i,e,n,r){const o=xu(t,i,e,n);return Wo(t,i+2,r)||o}function Oa(t,i,e,n,r,o){const s=xu(t,i,e,n);return xu(t,i+2,r,o)||s}function ii(t,i,e,n){const r=G();return Wo(r,me(),i)&&(K(),Vl(le(),r,t,i,e,n)),ii}function xh(t,i,e,n){return Wo(t,me(),e)?i+On(e)+n:Un}function Dh(t,i,e,n,r,o){const u=xu(t,te(),e,r);return Ye(2),u?i+On(e)+n+On(r)+o:Un}function Ph(t,i,e,n,r,o,s,u){const w=Rf(t,te(),e,r,s);return Ye(3),w?i+On(e)+n+On(r)+o+On(s)+u:Un}function C(t,i,e,n,r,o,s,u){const v=G(),w=K(),P=t+Ri,F=w.firstCreatePass?function gb(t,i,e,n,r,o,s,u,v){const w=i.consts,P=wh(i,t,4,s||null,p(w,u));tg(i,e,P,p(w,v)),gn(i,P);const F=P.tView=eg(2,P,n,r,o,i.directiveRegistry,i.pipeRegistry,null,i.schemas,w);return null!==i.queries&&(i.queries.template(i,P),F.queries=i.queries.embeddedTView(P)),P}(P,w,v,i,e,n,r,o,s):w.data[P];Ge(F,!1);const R=v[Ln].createComment("");sd(w,v,R,F),Vr(R,v),kf(v,v[P]=Kv(R,v,R,F)),Vc(F)&&K2(w,v,F),null!=s&&X2(v,F,u)}function Wt(t){return Hc(function pe(){return b.lFrame.contextLView}(),Ri+t)}function d(t,i,e){const n=G();return Wo(n,me(),i)&&ha(K(),le(),n,t,i,n[Ln],e,!1),d}function cg(t,i,e,n,r){const s=r?"class":"style";sg(t,e,i.inputs[s],s,n)}function a(t,i,e,n){const r=G(),o=K(),s=Ri+t,u=r[Ln],v=o.firstCreatePass?function _b(t,i,e,n,r,o){const s=i.consts,v=wh(i,t,2,n,p(s,r));return tg(i,e,v,p(s,o)),null!==v.attrs&&Af(v,v.attrs,!1),null!==v.mergedAttrs&&Af(v,v.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,v),v}(s,o,r,i,e,n):o.data[s],w=r[s]=ol(u,i,function Yt(){return b.lFrame.currentNamespace}()),P=Vc(v);return Ge(v,!0),cf(u,w,v),32!=(32&v.flags)&&sd(o,r,w,v),0===function k(){return b.lFrame.elementDepthCount}()&&Vr(w,r),function O(){b.lFrame.elementDepthCount++}(),P&&(K2(o,r,v),Y2(o,v,r)),null!==n&&X2(r,v),a}function l(){let t=re();wt()?Ne():(t=t.parent,Ge(t,!1));const i=t;!function j(){b.lFrame.elementDepthCount--}();const e=K();return e.firstCreatePass&&(gn(e,t),Yu(t)&&e.queries.elementEnd(t)),null!=i.classesWithoutHost&&function $i(t){return 0!=(8&t.flags)}(i)&&cg(e,i,G(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function tr(t){return 0!=(16&t.flags)}(i)&&cg(e,i,G(),i.stylesWithoutHost,!1),l}function B(t,i,e,n){return a(t,i,e,n),l(),B}function ht(t,i,e){const n=G(),r=K(),o=t+Ri,s=r.firstCreatePass?function Cb(t,i,e,n,r){const o=i.consts,s=p(o,n),u=wh(i,t,8,"ng-container",s);return null!==s&&Af(u,s,!0),tg(i,e,u,p(o,r)),null!==i.queries&&i.queries.elementStart(i,u),u}(o,r,n,i,e):r.data[o];Ge(s,!0);const u=n[o]=n[Ln].createComment("");return sd(r,n,u,s),Vr(u,n),Vc(s)&&(K2(r,n,s),Y2(r,s,n)),null!=e&&X2(n,s),ht}function mt(){let t=re();const i=K();return wt()?Ne():(t=t.parent,Ge(t,!1)),i.firstCreatePass&&(gn(i,t),Yu(t)&&i.queries.elementEnd(t)),mt}function dg(t,i,e){return ht(t,i,e),mt(),dg}function ve(){return G()}function Bf(t){return!!t&&"function"==typeof t.then}const C_=function __(t){return!!t&&"function"==typeof t.subscribe};function J(t,i,e,n){const r=G(),o=K(),s=re();return function b_(t,i,e,n,r,o,s){const u=Vc(n),w=t.firstCreatePass&&e_(t),P=i[Pr],F=Xv(i);let R=!0;if(3&n.type||s){const De=es(n,i),ke=s?s(De):De,je=F.length,at=s?xt=>s(mo(xt[n.index])):n.index;let Ie=null;if(!s&&u&&(Ie=function yb(t,i,e,n){const r=t.cleanup;if(null!=r)for(let o=0;o<r.length-1;o+=2){const s=r[o];if(s===e&&r[o+1]===n){const u=i[Nc],v=r[o+2];return u.length>v?u[v]:null}"string"==typeof s&&(o+=2)}return null}(t,i,r,n.index)),null!==Ie)(Ie.__ngLastListenerFn__||Ie).__ngNextListenerFn__=o,Ie.__ngLastListenerFn__=o,R=!1;else{o=w_(n,i,P,o,!1);const xt=e.listen(ke,r,o);F.push(o,xt),w&&w.push(r,at,je,je+1)}}else o=w_(n,i,P,o,!1);const V=n.outputs;let ne;if(R&&null!==V&&(ne=V[r])){const De=ne.length;if(De)for(let ke=0;ke<De;ke+=2){const Sn=i[ne[ke]][ne[ke+1]].subscribe(o),Jt=F.length;F.push(o,Sn),w&&w.push(r,n.index,Jt,-(Jt+1))}}}(o,r,r[Ln],s,t,i,n),J}function S_(t,i,e,n){try{return As(6,i,e),!1!==e(n)}catch(r){return n_(t,r),!1}finally{As(7,i,e)}}function w_(t,i,e,n,r){return function o(s){if(s===Function)return n;Mf(t.componentOffset>-1?Vo(t.index,i):i);let v=S_(i,e,n,s),w=o.__ngNextListenerFn__;for(;w;)v=S_(i,e,w,s)&&v,w=w.__ngNextListenerFn__;return r&&!1===v&&(s.preventDefault(),s.returnValue=!1),v}}function _(t=1){return function Gt(t){return(b.lFrame.contextLView=function Ht(t,i){for(;t>0;)i=i[ks],t--;return i}(t,b.lFrame.contextLView))[Pr]}(t)}function bb(t,i){let e=null;const n=function R1(t){const i=t.attrs;if(null!=i){const e=i.indexOf(5);if(!(1&e))return i[e+1]}return null}(t);for(let r=0;r<i.length;r++){const o=i[r];if("*"!==o){if(null===n?bh(t,o,!0):Qy(n,o))return r}else e=r}return e}function ug(t){const i=G()[yr][Co];if(!i.projection){const n=i.projection=jr(t?t.length:1,null),r=n.slice();let o=i.child;for(;null!==o;){const s=t?bb(o,t):0;null!==s&&(r[s]?r[s].projectionNext=o:n[s]=o,r[s]=o),o=o.next}}}function hg(t,i=0,e){const n=G(),r=K(),o=wh(r,Ri+t,16,null,e||null);null===o.projection&&(o.projection=i),Ne(),32!=(32&o.flags)&&function w2(t,i,e){D1(i[Ln],0,i,e,Hr(t,e,i),lu(e.parent||i[Co],e,i))}(r,n,o)}function Ue(t,i,e){return hr(t,"",i,"",e),Ue}function hr(t,i,e,n,r){const o=G(),s=xh(o,i,e,n);return s!==Un&&ha(K(),le(),o,t,s,o[Ln],r,!1),hr}function z1(t,i,e,n,r,o,s){const u=G(),v=Dh(u,i,e,n,r,o);return v!==Un&&ha(K(),le(),u,t,v,u[Ln],s,!1),z1}function jf(t,i,e,n,r,o,s,u,v){const w=G(),P=Ph(w,i,e,n,r,o,s,u);return P!==Un&&ha(K(),le(),w,t,P,w[Ln],v,!1),jf}function Vf(t,i){return t<<17|i<<2}function gd(t){return t>>17&32767}function mg(t){return 2|t}function Du(t){return(131068&t)>>2}function fg(t,i){return-131069&t|i<<2}function pg(t){return 1|t}function L_(t,i,e,n,r){const o=t[e+1],s=null===i;let u=n?gd(o):Du(o),v=!1;for(;0!==u&&(!1===v||s);){const P=t[u+1];Pb(t[u],i)&&(v=!0,t[u+1]=n?pg(P):mg(P)),u=n?gd(P):Du(P)}v&&(t[e+1]=n?mg(o):pg(o))}function Pb(t,i){return null===t||null==i||(Array.isArray(t)?t[1]:t)===i||!(!Array.isArray(t)||"string"!=typeof i)&&Xa(t,i)>=0}const go={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function k_(t){return t.substring(go.key,go.keyEnd)}function M_(t,i){const e=go.textEnd;return e===i?-1:(i=go.keyEnd=function kb(t,i,e){for(;i<e&&t.charCodeAt(i)>32;)i++;return i}(t,go.key=i,e),Fh(t,i,e))}function Fh(t,i,e){for(;i<e&&t.charCodeAt(i)<=32;)i++;return i}function zl(t,i,e){return ul(t,i,e,!1),zl}function vs(t,i){return ul(t,i,null,!0),vs}function q1(t){hl(Vb,$l,t,!0)}function $l(t,i){for(let e=function Eb(t){return function A_(t){go.key=0,go.keyEnd=0,go.value=0,go.valueEnd=0,go.textEnd=t.length}(t),M_(t,Fh(t,0,go.textEnd))}(i);e>=0;e=M_(i,e))Ao(t,k_(i),!0)}function ul(t,i,e,n){const r=G(),o=K(),s=Ye(2);o.firstUpdatePass&&B_(o,t,s,n),i!==Un&&Wo(r,s,i)&&V_(o,o.data[mn()],r,r[Ln],t,r[s+1]=function zb(t,i){return null==t||""===t||("string"==typeof i?t+=i:"object"==typeof t&&(t=Qi(Uo(t)))),t}(i,e),n,s)}function hl(t,i,e,n){const r=K(),o=Ye(2);r.firstUpdatePass&&B_(r,null,o,n);const s=G();if(e!==Un&&Wo(s,o,e)){const u=r.data[mn()];if(z_(u,n)&&!R_(r,o)){let v=n?u.classesWithoutHost:u.stylesWithoutHost;null!==v&&(e=Nm(v,e||"")),cg(r,u,s,e,n)}else!function Hb(t,i,e,n,r,o,s,u){r===Un&&(r=Yn);let v=0,w=0,P=0<r.length?r[0]:null,F=0<o.length?o[0]:null;for(;null!==P||null!==F;){const R=v<r.length?r[v+1]:void 0,V=w<o.length?o[w+1]:void 0;let De,ne=null;P===F?(v+=2,w+=2,R!==V&&(ne=F,De=V)):null===F||null!==P&&P<F?(v+=2,ne=P):(w+=2,ne=F,De=V),null!==ne&&V_(t,i,e,n,ne,De,s,u),P=v<r.length?r[v]:null,F=w<o.length?o[w]:null}}(r,u,s,s[Ln],s[o+1],s[o+1]=function jb(t,i,e){if(null==e||""===e)return Yn;const n=[],r=Uo(e);if(Array.isArray(r))for(let o=0;o<r.length;o++)t(n,r[o],!0);else if("object"==typeof r)for(const o in r)r.hasOwnProperty(o)&&t(n,o,r[o]);else"string"==typeof r&&i(n,r);return n}(t,i,e),n,o)}}function R_(t,i){return i>=t.expandoStartIndex}function B_(t,i,e,n){const r=t.data;if(null===r[e+1]){const o=r[mn()],s=R_(t,e);z_(o,n)&&null===i&&!s&&(i=!1),i=function Nb(t,i,e,n){const r=function $t(t){const i=b.lFrame.currentDirectiveIndex;return-1===i?null:t[i]}(t);let o=n?i.residualClasses:i.residualStyles;if(null===r)0===(n?i.classBindings:i.styleBindings)&&(e=$1(e=gg(null,t,i,e,n),i.attrs,n),o=null);else{const s=i.directiveStylingLast;if(-1===s||t[s]!==r)if(e=gg(r,t,i,e,n),null===o){let v=function Ob(t,i,e){const n=e?i.classBindings:i.styleBindings;if(0!==Du(n))return t[gd(n)]}(t,i,n);void 0!==v&&Array.isArray(v)&&(v=gg(null,t,i,v[1],n),v=$1(v,i.attrs,n),function Rb(t,i,e,n){t[gd(e?i.classBindings:i.styleBindings)]=n}(t,i,n,v))}else o=function Bb(t,i,e){let n;const r=i.directiveEnd;for(let o=1+i.directiveStylingLast;o<r;o++)n=$1(n,t[o].hostAttrs,e);return $1(n,i.attrs,e)}(t,i,n)}return void 0!==o&&(n?i.residualClasses=o:i.residualStyles=o),e}(r,o,i,n),function xb(t,i,e,n,r,o){let s=o?i.classBindings:i.styleBindings,u=gd(s),v=Du(s);t[n]=e;let P,w=!1;if(Array.isArray(e)?(P=e[1],(null===P||Xa(e,P)>0)&&(w=!0)):P=e,r)if(0!==v){const R=gd(t[u+1]);t[n+1]=Vf(R,u),0!==R&&(t[R+1]=fg(t[R+1],n)),t[u+1]=function wb(t,i){return 131071&t|i<<17}(t[u+1],n)}else t[n+1]=Vf(u,0),0!==u&&(t[u+1]=fg(t[u+1],n)),u=n;else t[n+1]=Vf(v,0),0===u?u=n:t[v+1]=fg(t[v+1],n),v=n;w&&(t[n+1]=mg(t[n+1])),L_(t,P,n,!0),L_(t,P,n,!1),function Db(t,i,e,n,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof i&&Xa(o,i)>=0&&(e[n+1]=pg(e[n+1]))}(i,P,t,n,o),s=Vf(u,v),o?i.classBindings=s:i.styleBindings=s}(r,o,i,e,s,n)}}function gg(t,i,e,n,r){let o=null;const s=e.directiveEnd;let u=e.directiveStylingLast;for(-1===u?u=e.directiveStart:u++;u<s&&(o=i[u],n=$1(n,o.hostAttrs,r),o!==t);)u++;return null!==t&&(e.directiveStylingLast=u),n}function $1(t,i,e){const n=e?1:2;let r=-1;if(null!==i)for(let o=0;o<i.length;o++){const s=i[o];"number"==typeof s?r=s:r===n&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),Ao(t,s,!!e||i[++o]))}return void 0===t?null:t}function Vb(t,i,e){const n=String(i);""!==n&&!n.includes(" ")&&Ao(t,n,e)}function V_(t,i,e,n,r,o,s,u){if(!(3&i.type))return;const v=t.data,w=v[u+1],P=function Ib(t){return 1==(1&t)}(w)?H_(v,i,e,r,Du(w),s):void 0;Hf(P)||(Hf(o)||function Sb(t){return 2==(2&t)}(w)&&(o=H_(v,null,e,r,u,s)),function x2(t,i,e,n,r){if(i)r?t.addClass(e,n):t.removeClass(e,n);else{let o=-1===n.indexOf("-")?void 0:ki.DashCase;null==r?t.removeStyle(e,n,o):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=ki.Important),t.setStyle(e,n,r,o))}}(n,s,zd(mn(),e),r,o))}function H_(t,i,e,n,r,o){const s=null===i;let u;for(;r>0;){const v=t[r],w=Array.isArray(v),P=w?v[1]:v,F=null===P;let R=e[r+1];R===Un&&(R=F?Yn:void 0);let V=F?Vs(R,n):P===n?R:void 0;if(w&&!Hf(V)&&(V=Vs(v,n)),Hf(V)&&(u=V,s))return u;const ne=t[r+1];r=s?gd(ne):Du(ne)}if(null!==i){let v=o?i.residualClasses:i.residualStyles;null!=v&&(u=Vs(v,n))}return u}function Hf(t){return void 0!==t}function z_(t,i){return 0!=(t.flags&(i?8:16))}function h(t,i=""){const e=G(),n=K(),r=t+Ri,o=n.firstCreatePass?wh(n,r,1,i,null):n.data[r],s=e[r]=function Nl(t,i){return t.createText(i)}(e[Ln],i);sd(n,e,s,o),Ge(o,!1)}function de(t){return dt("",t,""),de}function dt(t,i,e){const n=G(),r=xh(n,t,i,e);return r!==Un&&bc(n,mn(),r),dt}function Eo(t,i,e,n,r){const o=G(),s=Dh(o,t,i,e,n,r);return s!==Un&&bc(o,mn(),s),Eo}function Ra(t,i,e,n,r,o,s){const u=G(),v=Ph(u,t,i,e,n,r,o,s);return v!==Un&&bc(u,mn(),v),Ra}function vg(t,i,e,n,r,o,s,u,v){const w=G(),P=function Th(t,i,e,n,r,o,s,u,v,w){const F=Oa(t,te(),e,r,s,v);return Ye(4),F?i+On(e)+n+On(r)+o+On(s)+u+On(v)+w:Un}(w,t,i,e,n,r,o,s,u,v);return P!==Un&&bc(w,mn(),P),vg}function zf(t,i,e,n,r,o,s,u,v,w,P){const F=G(),R=function Eh(t,i,e,n,r,o,s,u,v,w,P,F){const R=te();let V=Oa(t,R,e,r,s,v);return V=Wo(t,R+4,P)||V,Ye(5),V?i+On(e)+n+On(r)+o+On(s)+u+On(v)+w+On(P)+F:Un}(F,t,i,e,n,r,o,s,u,v,w,P);return R!==Un&&bc(F,mn(),R),zf}function Ah(t,i,e){hl(Ao,$l,xh(G(),t,i,e),!0)}const Pu=void 0;var a8=["en",[["a","p"],["AM","PM"],Pu],[["AM","PM"],Pu,Pu],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Pu,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Pu,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}
3, {0}",Pu,"{1} 'at' {0}",Pu],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function s8(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Nh={};function _s(t){const i=function l8(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=o3(i);if(e)return e;const n=i.split("-")[0];if(e=o3(n),e)return e;if("en"===n)return a8;throw new Qt(701,!1)}function o3(t){return t in Nh||(Nh[t]=Ki.ng&&Ki.ng.common&&Ki.ng.common.locales&&Ki.ng.common.locales[t]),Nh[t]}var on=(()=>((on=on||{})[on.LocaleId=0]="LocaleId",on[on.DayPeriodsFormat=1]="DayPeriodsFormat",on[on.DayPeriodsStandalone=2]="DayPeriodsStandalone",on[on.DaysFormat=3]="DaysFormat",on[on.DaysStandalone=4]="DaysStandalone",on[on.MonthsFormat=5]="MonthsFormat",on[on.MonthsStandalone=6]="MonthsStandalone",on[on.Eras=7]="Eras",on[on.FirstDayOfWeek=8]="FirstDayOfWeek",on[on.WeekendRange=9]="WeekendRange",on[on.DateFormat=10]="DateFormat",on[on.TimeFormat=11]="TimeFormat",on[on.DateTimeFormat=12]="DateTimeFormat",on[on.NumberSymbols=13]="NumberSymbols",on[on.NumberFormats=14]="NumberFormats",on[on.CurrencyCode=15]="CurrencyCode",on[on.CurrencySymbol=16]="CurrencySymbol",on[on.CurrencyName=17]="CurrencyName",on[on.Currencies=18]="Currencies",on[on.Directionality=19]="Directionality",on[on.PluralCase=20]="PluralCase",on[on.ExtraData=21]="ExtraData",on))();const Oh="en-US";let s3=Oh;function yg(t,i,e,n,r){if(t=En(t),Array.isArray(t))for(let o=0;o<t.length;o++)yg(t[o],i,e,n,r);else{const o=K(),s=G();let u=Do(t)?t:En(t.provide),v=yu(t);const w=re(),P=1048575&w.providerIndexes,F=w.directiveStart,R=w.providerIndexes>>20;if(Do(t)||!t.multi){const V=new Jn(v,r,$),ne=Sg(u,i,r?P:P+R,F);-1===ne?(rs(bo(w,s),o,u),bg(o,t,i.length),i.push(u),w.directiveStart++,w.directiveEnd++,r&&(w.providerIndexes+=1048576),e.push(V),s.push(V)):(e[ne]=V,s[ne]=V)}else{const V=Sg(u,i,P+R,F),ne=Sg(u,i,P,P+R),ke=ne>=0&&e[ne];if(r&&!ke||!r&&!(V>=0&&e[V])){rs(bo(w,s),o,u);const je=function o7(t,i,e,n,r){const o=new Jn(t,e,$);return o.multi=[],o.index=i,o.componentProviders=0,k3(o,r,n&&!e),o}(r?r7:i7,e.length,r,n,v);!r&&ke&&(e[ne].providerFactory=je),bg(o,t,i.length,0),i.push(u),w.directiveStart++,w.directiveEnd++,r&&(w.providerIndexes+=1048576),e.push(je),s.push(je)}else bg(o,t,V>-1?V:ne,k3(e[r?ne:V],v,!r&&n));!r&&n&&ke&&e[ne].componentProviders++}}}function bg(t,i,e,n){const r=Do(i),o=function io(t){return!!t.useClass}(i);if(r||o){const v=(o?En(i.useClass):i).prototype.ngOnDestroy;if(v){const w=t.destroyHooks||(t.destroyHooks=[]);if(!r&&i.multi){const P=w.indexOf(e);-1===P?w.push(e,[n,v]):w[P+1].push(n,v)}else w.push(e,v)}}}function k3(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function Sg(t,i,e,n){for(let r=e;r<n;r++)if(i[r]===t)return r;return-1}function i7(t,i,e,n){return wg(this.multi,[])}function r7(t,i,e,n){const r=this.multi;let o;if(this.providerFactory){const s=this.providerFactory.componentProviders,u=Bs(e,e[an],this.providerFactory.index,n);o=u.slice(0,s),wg(r,o);for(let v=s;v<u.length;v++)o.push(u[v])}else o=[],wg(r,o);return o}function wg(t,i){for(let e=0;e<t.length;e++)i.push((0,t[e])());return i}function ir(t,i=[]){return e=>{e.providersResolver=(n,r)=>function n7(t,i,e){const n=K();if(n.firstCreatePass){const r=Ms(t);yg(e,n.data,n.blueprint,r,!0),yg(i,n.data,n.blueprint,r,!1)}}(n,r?r(t):t,i)}}class Rh{}class s7{}class M3 extends Rh{constructor(i,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new i_(this);const n=function Ko(t,i){const e=t[Yl]||null;if(!e&&!0===i)throw new Error(`Type ${Qi(t)} does not have '\u0275mod' property.`);return e}(i);this._bootstrapComponents=function cl(t){return t instanceof Function?t():t}(n.bootstrap),this._r3Injector=Rv(i,e,[{provide:Rh,useValue:this},{provide:md,useValue:this.componentFactoryResolver}],Qi(i),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(i)}get injector(){return this._r3Injector}destroy(){const i=this._r3Injector;
3!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class Ig extends s7{constructor(i){super(),this.moduleType=i}create(i){return new M3(this.moduleType,i)}}function Q1(t,i,e){const n=ee()+t,r=G();return r[n]===Un?Hl(r,n,e?i.call(e):i()):function H1(t,i){return t[i]}(r,n)}function Oe(t,i,e,n){return V3(G(),ee(),t,i,e,n)}function Us(t,i,e,n,r){return H3(G(),ee(),t,i,e,n,r)}function Dg(t,i,e,n,r,o){return z3(G(),ee(),t,i,e,n,r,o)}function Y1(t,i){const e=t[i];return e===Un?void 0:e}function V3(t,i,e,n,r,o){const s=i+e;return Wo(t,s,r)?Hl(t,s+1,o?n.call(o,r):n(r)):Y1(t,s+1)}function H3(t,i,e,n,r,o,s){const u=i+e;return xu(t,u,r,o)?Hl(t,u+2,s?n.call(s,r,o):n(r,o)):Y1(t,u+2)}function z3(t,i,e,n,r,o,s,u){const v=i+e;return Rf(t,v,r,o,s)?Hl(t,v+3,u?n.call(u,r,o,s):n(r,o,s)):Y1(t,v+3)}function Wi(t,i){const e=K();let n;const r=t+Ri;e.firstCreatePass?(n=function x7(t,i){if(i)for(let e=i.length-1;e>=0;e--){const n=i[e];if(t===n.name)return n}}(i,e.pipeRegistry),e.data[r]=n,n.onDestroy&&(e.destroyHooks??(e.destroyHooks=[])).push(r,n.onDestroy)):n=e.data[r];const o=n.factory||(n.factory=bl(n.type)),s=Ks($);try{const u=ns(!1),v=o();return ns(u),function vb(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}(e,G(),r,v),v}finally{Ks(s)}}function Lo(t,i,e){const n=t+Ri,r=G(),o=Hc(r,n);return K1(r,n)?V3(r,ee(),i,o.transform,e,o):o.transform(e)}function vd(t,i,e,n){const r=t+Ri,o=G(),s=Hc(o,r);return K1(o,r)?H3(o,ee(),i,s.transform,e,n,s):s.transform(e,n)}function Wf(t,i,e,n,r){const o=t+Ri,s=G(),u=Hc(s,o);return K1(s,o)?z3(s,ee(),i,u.transform,e,n,r,u):u.transform(e,n,r)}function K1(t,i){return t[an].data[i].pure}function Pg(t){return i=>{setTimeout(t,void 0,i)}}const pi=class T7 extends Lt{constructor(i=!1){super(),this.__isAsync=i}emit(i){super.next(i)}subscribe(i,e,n){let r=i,o=e||(()=>null),s=n;if(i&&"object"==typeof i){const v=i;r=v.next?.bind(v),o=v.error?.bind(v),s=v.complete?.bind(v)}this.__isAsync&&(o=Pg(o),r&&(r=Pg(r)),s&&(s=Pg(s)));const u=super.subscribe({next:r,error:o,complete:s});return i instanceof vt&&i.add(u),u}};function E7(){return this._results[Symbol.iterator]()}class Tg{get changes(){return this._changes||(this._changes=new pi)}constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Tg.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=E7)}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){const n=this;n.dirty=!1;const r=function Br(t){return t.flat(Number.POSITIVE_INFINITY)}(i);(this._changesDetected=!function f1(t,i,e){if(t.length!==i.length)return!1;for(let n=0;n<t.length;n++){let r=t[n],o=i[n];if(e&&(r=e(r),o=e(o)),o!==r)return!1}return!0}(n._results,r,e))&&(n._results=r,n.length=r.length,n.last=r[this.length-1],n.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let Sc=(()=>{class t{}return t.__NG_ELEMENT_ID__=M7,t})();const L7=Sc,k7=class extends L7{constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(i,e){const n=this._declarationTContainer.tView,r=Ef(this._declarationLView,n,i,16,null,n.declTNode,null,null,null,null,e||null);r[Xs]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[Oi];return null!==s&&(r[Oi]=s.createEmbeddedView(n)),Q2(n,r,i),new j1(r)}};function M7(){return Jf(re(),G())}function Jf(t,i){return 4&t.type?new k7(i,t,fs(t,i)):null}let Ul=(()=>{class t{}return t.__NG_ELEMENT_ID__=F7,t})();function F7(){return W3(re(),G())}
vendor: 4,650 bytes, line 3
3const A7=Ul,U3=class extends A7{constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return fs(this._hostTNode,this._hostLView)}get injector(){return new Il(this._hostTNode,this._hostLView)}get parentInjector(){const i=is(this._hostTNode,this._hostLView);if(Bn(i)){const e=Nr(i,this._hostLView),n=mi(i);return new Il(e[an].data[n+8],e)}return new Il(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const e=G3(this._lContainer);return null!==e&&e[i]||null}get length(){return this._lContainer.length-yo}createEmbeddedView(i,e,n){let r,o;"number"==typeof n?r=n:null!=n&&(r=n.index,o=n.injector);const s=i.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(i,e,n,r,o){const s=i&&!function rc(t){return"function"==typeof t}(i);let u;if(s)u=e;else{const F=e||{};u=F.index,n=F.injector,r=F.projectableNodes,o=F.environmentInjector||F.ngModuleRef}const v=s?i:new V1(zn(i)),w=n||this.parentInjector;if(!o&&null==v.ngModule){const R=(s?w:this.parentInjector).get(al,null);R&&(o=R)}const P=v.create(w,r,void 0,o);return this.insert(P.hostView,u),P}insert(i,e){const n=i._lView,r=n[an];if(function m(t){return Xo(t[er])}(n)){const P=this.indexOf(i);if(-1!==P)this.detach(P);else{const F=n[er],R=new U3(F,F[Co],F[er]);R.detach(R.indexOf(i))}}const o=this._adjustIndex(e),s=this._lContainer;!function _c(t,i,e,n){const r=yo+n,o=e.length;n>0&&(e[r-1][Bo]=i),n<o-yo?(i[Bo]=e[r],oc(e,yo+n,i)):(e.push(i),i[Bo]=null),i[er]=e;const s=i[Xs];null!==s&&e!==s&&function Rl(t,i){const e=t[jc];i[yr]!==i[er][er][yr]&&(t[Bc]=!0),null===e?t[jc]=[i]:e.push(i)}(s,i);const u=i[Oi];null!==u&&u.insertView(t),i[Wn]|=64}(r,n,s,o);const u=hu(o,s),v=n[Ln],w=Io(v,s[ln]);return null!==w&&function Ol(t,i,e,n,r,o){n[Ei]=r,n[Co]=i,fu(t,n,e,1,r,o)}(r,s[Co],v,n,w,u),i.attachToViewContainerRef(),oc(Eg(s),o,i),i}move(i,e){return this.insert(i,e)}indexOf(i){const e=G3(this._lContainer);return null!==e?e.indexOf(i):-1}remove(i){const e=this._adjustIndex(i,-1),n=qo(this._lContainer,e);n&&(sc(Eg(this._lContainer),e),us(n[an],n))}detach(i){const e=this._adjustIndex(i,-1),n=qo(this._lContainer,e);return n&&null!=sc(Eg(this._lContainer),e)?new j1(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function G3(t){return t[Qu]}function Eg(t){return t[Qu]||(t[Qu]=[])}function W3(t,i){let e;const n=i[t.index];if(Xo(n))e=n;else{let r;if(8&t.type)r=mo(n);else{const o=i[Ln];r=o.createComment("");const s=es(t,i);aa(o,Io(o,s),r,function Hs(t,i){return t.nextSibling(i)}(o,s),!1)}i[t.index]=e=Kv(n,i,r,t),kf(i,e)}return new U3(e,t,i)}class Lg{constructor(i){this.queryList=i,this.matches=null}clone(){return new Lg(this.queryList)}setDirty(){this.queryList.setDirty()}}class kg{constructor(i=[]){this.queries=i}createEmbeddedView(i){const e=i.queries;if(null!==e){const n=null!==i.contentQueries?i.contentQueries[0]:e.length,r=[];for(let o=0;o<n;o++){const s=e.getByIndex(o);r.push(this.queries[s.indexInDeclarationView].clone())}return new kg(r)}return null}insertView(i){this.dirtyQueriesWithMatches(i)}detachView(i){this.dirtyQueriesWithMatches(i)}dirtyQueriesWithMatches(i){for(let e=0;e<this.queries.length;e++)null!==X3(i,e).matches&&this.queries[e].setDirty()}}class J3{constructor(i,e,n=null){this.predicate=i,this.flags=e,this.read=n}}class Mg{constructor(i=[]){this.queries=i}elementStart(i,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(i,e)}elementEnd(i){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(i)}embeddedTView(i){let e=null;for(let n=0;n<this.length;n++){const r=null!==e?e.length:0,o=this.getByIndex(n).embeddedTView(i,r);o&&(o.indexInDeclarationView=n,null!==e?e.push(o):e=[o])}return null!==e?new Mg(e):null}template(i,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(i,e)}getByIndex(i){return this.queries[i]}get length(){return this.queries.length}track(i){this.queries.push(i)}}class Fg{constructor(i,e=-1){this.metadata=i,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(i,e){this.isApplyingToNode(e)&&this.matchTNode(i,e)}elementEnd(i){this._declarationNodeIndex===i.index&&(this._appliesToNextNode=!1)}template(i,e){this.elementStart(i,e)}embeddedTView(i,e){return this.isApplyingToNode(i)?(this.crossesNgTemplate=!0,this.addMatch(-i.index,e),new Fg(this.metadata)):null}isApplyingToNode(i){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let n=i.parent;for(;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}
3matchTNode(i,e){const n=this.metadata.predicate;if(Array.isArray(n))for(let r=0;r<n.length;r++){const o=n[r];this.matchTNodeWithReadOption(i,e,N7(e,o)),this.matchTNodeWithReadOption(i,e,Ya(e,i,o,!1,!1))}else n===Sc?4&e.type&&this.matchTNodeWithReadOption(i,e,-1):this.matchTNodeWithReadOption(i,e,Ya(e,i,n,!1,!1))}matchTNodeWithReadOption(i,e,n){if(null!==n){const r=this.metadata.read;if(null!==r)if(r===To||r===Ul||r===Sc&&4&e.type)this.addMatch(e.index,-2);else{const o=Ya(e,i,r,!1,!1);null!==o&&this.addMatch(e.index,o)}else this.addMatch(e.index,n)}}addMatch(i,e){null===this.matches?this.matches=[i,e]:this.matches.push(i,e)}}function N7(t,i){const e=t.localNames;if(null!==e)for(let n=0;n<e.length;n+=2)if(e[n]===i)return e[n+1];return null}function R7(t,i,e,n){return-1===e?function O7(t,i){return 11&t.type?fs(t,i):4&t.type?Jf(t,i):null}(i,t):-2===e?function B7(t,i,e){return e===To?fs(i,t):e===Sc?Jf(i,t):e===Ul?W3(i,t):void 0}(t,i,n):Bs(t,t[an],e,i)}function Z3(t,i,e,n){const r=i[Oi].queries[n];if(null===r.matches){const o=t.data,s=e.matches,u=[];for(let v=0;v<s.length;v+=2){const w=s[v];u.push(w<0?null:R7(i,o[w],s[v+1],e.metadata.read))}r.matches=u}return r.matches}function Ag(t,i,e,n){const r=t.queries.getByIndex(e),o=r.matches;if(null!==o){const s=Z3(t,i,r,e);for(let u=0;u<o.length;u+=2){const v=o[u];if(v>0)n.push(s[u/2]);else{const w=o[u+1],P=i[-v];for(let F=yo;F<P.length;F++){const R=P[F];R[Xs]===R[er]&&Ag(R[an],R,w,n)}if(null!==P[jc]){const F=P[jc];for(let R=0;R<F.length;R++){const V=F[R];Ag(V[an],V,w,n)}}}}}return n}function _d(t){const i=G(),e=K(),n=Z();se(n+1);const r=X3(e,n);if(t.dirty&&function S2(t){return 4==(4&t[Wn])}(i)===(2==(2&r.metadata.flags))){if(null===r.matches)t.reset([]);else{const o=r.crossesNgTemplate?Ag(e,i,n,[]):Z3(e,i,r,n);t.reset(o,V2),t.notifyOnChanges()}return!0}return!1}function Tu(t,i,e){const n=K();n.firstCreatePass&&(K3(n,new J3(t,i,e),-1),2==(2&i)&&(n.staticViewQueries=!0)),Y3(n,G(),i)}function Cd(){return function j7(t,i){return t[Oi].queries[i].queryList}(G(),Z())}function Y3(t,i,e){const n=new Tg(4==(4&e));Wv(t,i,n,n.destroy),null===i[Oi]&&(i[Oi]=new kg),i[Oi].queries.push(new Lg(n))}function K3(t,i,e){null===t.queries&&(t.queries=new Mg),t.queries.track(new Fg(i,e))}function X3(t,i){return t.queries.getByIndex(i)}function _i(t,i){return Jf(t,i)}function Qf(...t){}const _5=new _n("Application Initializer");let Yf=(()=>{class t{constructor(e){this.appInits=e,this.resolve=Qf,this.reject=Qf,this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],n=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const o=this.appInits[r]();if(Bf(o))e.push(o);else if(C_(o)){const s=new Promise((u,v)=>{o.subscribe({complete:u,error:v})});e.push(s)}}Promise.all(e).then(()=>{n()}).catch(r=>{this.reject(r)}),0===e.length&&n(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Mt(_5,8))},t.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const em=new _n("AppId",{providedIn:"root",factory:function C5(){return`${jg()}${jg()}${jg()}`}});function jg(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const y5=new _n("Platform Initializer"),Vg=new _n("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),wc=new _n("LocaleId",{providedIn:"root",factory:()=>Dr(wc,Rn.Optional|Rn.SkipSelf)||function s9(){return typeof $localize<"u"&&$localize.locale||Oh}()}),u9=(()=>Promise.resolve(0))();function Hg(t){typeof Zone>"u"?u9.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class $r{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new pi(!1),this.onMicrotaskEmpty=new pi(!1),this.onStable=new pi(!1),this.onError=new pi(!1),typeof Zone>"u")throw new Qt(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&e,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function h9(){let t=Ki.requestAnimationFrame,i=Ki.cancelAnimationFrame;if(typeof Zone<"u"&&t&&i){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const n=i[Zone.__symbol__("OriginalDelegate")];n&&(i=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function p9(t){const i=()=>{!function f9(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Ki,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,qg(t),t.isCheckStableRunning=!0,zg(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),qg(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,r,o,s,u)=>{try{return w5(t),e.invokeTask(r,o,s,u)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&i(),I5(t)}},onInvoke:(e,n,r,o,s,u,v)=>{try{return w5(t),e.invoke(r,o,s,u,v)}finally{t.shouldCoalesceRunChangeDetection&&i(),I5(t)}},onHasTask:(e,n,r,o)=>{e.hasTask(r,o),n===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,qg(t),zg(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,n,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}
3static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!$r.isInAngularZone())throw new Qt(909,!1)}static assertNotInAngularZone(){if($r.isInAngularZone())throw new Qt(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,i,m9,Qf,Qf);try{return o.runTask(s,e,n)}finally{o.cancelTask(s)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}}const m9={};function zg(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function qg(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function w5(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function I5(t){t._nesting--,zg(t)}class g9{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new pi,this.onMicrotaskEmpty=new pi,this.onStable=new pi,this.onError=new pi}run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,r){return i.apply(e,n)}}const x5=new _n(""),Kf=new _n("");let Gg,$g=(()=>{class t{constructor(e,n,r){this._ngZone=e,this.registry=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Gg||(function v9(t){Gg=t}(r),r.addToWindow(n)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{$r.assertNotInAngularZone(),Hg(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Hg(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>!n.updateCb||!n.updateCb(e)||(clearTimeout(n.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,r){let o=-1;n&&n>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,n,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,n,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,r){return[]}}return t.\u0275fac=function(e){return new(e||t)(Mt($r),Mt(Ug),Mt(Kf))},t.\u0275prov=sn({token:t,factory:t.\u0275fac}),t})(),Ug=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,n){this._applications.set(e,n)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,n=!0){return Gg?.findTestabilityInTree(this,e,n)??null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Ic=!1;let yd=null;const D5=new _n("AllowMultipleToken"),Wg=new _n("PlatformDestroyListeners"),_9=ne
3w _n("appBootstrapListener");function T5(t,i,e=[]){const n=`Platform: ${i}`,r=new _n(n);return(o=[])=>{let s=Jg();if(!s||s.injector.get(D5,!1)){const u=[...e,...o,{provide:r,useValue:!0}];t?t(u):function b9(t){if(yd&&!yd.get(D5,!1))throw new Qt(400,!1);yd=t;const i=t.get(L5);(function P5(t){const i=t.get(y5,null);i&&i.forEach(e=>e())})(t)}(function E5(t=[],i){return gs.create({name:i,providers:[{provide:da,useValue:"platform"},{provide:Wg,useValue:new Set([()=>yd=null])},...t]})}(u,n))}return function w9(t){const i=Jg();if(!i)throw new Qt(401,!1);return i}()}}function Jg(){return yd?.get(L5)??null}let L5=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){const r=function M5(t,i){let e;return e="noop"===t?new g9:("zone.js"===t?void 0:t)||new $r(i),e}(n?.ngZone,function k5(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(n)),o=[{provide:$r,useValue:r}];return r.run(()=>{const s=gs.create({providers:o,parent:this.injector,name:e.moduleType.name}),u=e.create(s),v=u.injector.get(ll,null);if(!v)throw new Qt(402,!1);return r.runOutsideAngular(()=>{const w=r.onError.subscribe({next:P=>{v.handleError(P)}});u.onDestroy(()=>{ep(this._modules,u),w.unsubscribe()})}),function F5(t,i,e){try{const n=e();return Bf(n)?n.catch(r=>{throw i.runOutsideAngular(()=>t.handleError(r)),r}):n}catch(n){throw i.runOutsideAngular(()=>t.handleError(n)),n}}(v,r,()=>{const w=u.injector.get(Yf);return w.runInitializers(),w.donePromise.then(()=>(function a3(t){Ro(t,"Expected localeId to be defined"),"string"==typeof t&&(s3=t.toLowerCase().replace(/_/g,"-"))}(u.injector.get(wc,Oh)||Oh),this._moduleDoBootstrap(u),u))})})}bootstrapModule(e,n=[]){const r=A5({},n);return function C9(t,i,e){const n=new Ig(e);return Promise.resolve(n)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const n=e.injector.get(Xf);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Qt(-403,!1);e.instance.ngDoBootstrap(n)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Qt(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());const e=this._injector.get(Wg,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Mt(gs))},t.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function A5(t,i){return Array.isArray(i)?i.reduce(A5,t):{...t,...i}}let Xf=(()=>{class t{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(e,n,r){this._zone=e,this._injector=n,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new Se(u=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{u.next(this._stable),u.complete()})}),s=new Se(u=>{let v;this._zone.runOutsideAngular(()=>{v=this._zone.onStable.subscribe(()=>{$r.assertNotInAngularZone(),Hg(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,u.next(!0))})})});const w=this._zone.onUnstable.subscribe(()=>{$r.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{u.next(!1)}))});return()=>{v.unsubscribe(),w.unsubscribe()}});this.isStable=qu(o,s.pipe(function Fm(){return t=>Jl()(function Lm(t,i){return function(n){let r;if(r="function"==typeof t?t:function(){return t},"function"==typeof i)return n.lift(new km(r,i));const o=Object.create(n,co);return o.source=n,o.subjectFactory=r,o}}(Mm)(t))}()))}bootstrap(e,n){const r=e instanceof bu;if(!this._injector.get(Yf).done){!r&&function Bd(t){const i=zn(t)||ho(t)||sr(t);return null!==i&&i.standalone}(e);throw new Qt(405,Ic)}let s;s=r?e:this._injector.get(md).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const u=function y9(t){return t.isBoundToModule}(s)?void 0:this._injector.get(Rh),w=s.create(gs.NULL,[],n||s.selector,u),P=w.location.nativeElement,F=w.injector.get(x5,null);return F?.registerApplication(P),w.onDestroy(()=>{this.detachView(w.hostView),ep(this.components,w),F?.unregisterApplication(P)}),this._loadComponent(w),w}tick(){if(this._runningTick)throw new Qt(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){const n=e;ep(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const n=this._injector.get(_9,[]);
vendor: 8,824 bytes, line 3
3n.push(...this._bootstrapListeners),n.forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>ep(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Qt(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)(Mt($r),Mt(al),Mt(ll))},t.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function ep(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}let Gl=(()=>{class t{}return t.__NG_ELEMENT_ID__=x9,t})();function x9(t){return function D9(t,i,e){if(Vd(t)&&!e){const n=Vo(t.index,i);return new j1(n,n)}return 47&t.type?new j1(i[yr],i):null}(re(),G(),16==(16&t))}class j5{constructor(){}supports(i){return Of(i)}create(i){return new M9(i)}}const k9=(t,i)=>i;class M9{constructor(i){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=i||k9}forEachItem(i){let e;for(e=this._itHead;null!==e;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,r=0,o=null;for(;e||n;){const s=!n||e&&e.currentIndex<H5(n,r,o)?e:n,u=H5(s,r,o),v=s.currentIndex;if(s===n)r--,n=n._nextRemoved;else if(e=e._next,null==s.previousIndex)r++;else{o||(o=[]);const w=u-r,P=v-r;if(w!=P){for(let R=0;R<w;R++){const V=R<o.length?o[R]:o[R]=0,ne=V+R;P<=ne&&ne<w&&(o[R]=V+1)}o[s.previousIndex]=P-w}}u!==v&&i(s,u,v)}}forEachPreviousItem(i){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)i(e)}forEachAddedItem(i){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)i(e)}forEachMovedItem(i){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)i(e)}forEachRemovedItem(i){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)i(e)}forEachIdentityChange(i){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)i(e)}diff(i){if(null==i&&(i=[]),!Of(i))throw new Qt(900,!1);return this.check(i)?this:null}onDestroy(){}check(i){this._reset();let r,o,s,e=this._itHead,n=!1;if(Array.isArray(i)){this.length=i.length;for(let u=0;u<this.length;u++)o=i[u],s=this._trackByFn(u,o),null!==e&&Object.is(e.trackById,s)?(n&&(e=this._verifyReinsertion(e,o,s,u)),Object.is(e.item,o)||this._addIdentityChange(e,o)):(e=this._mismatch(e,o,s,u),n=!0),e=e._next}else r=0,function mb(t,i){if(Array.isArray(t))for(let e=0;e<t.length;e++)i(t[e]);else{const e=t[Symbol.iterator]();let n;for(;!(n=e.next()).done;)i(n.value)}}(i,u=>{s=this._trackByFn(r,u),null!==e&&Object.is(e.trackById,s)?(n&&(e=this._verifyReinsertion(e,u,s,r)),Object.is(e.item,u)||this._addIdentityChange(e,u)):(e=this._mismatch(e,u,s,r),n=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,r){let o;return null===i?o=this._itTail:(o=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,o,r)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,o,r)):i=this._addAfter(new F9(e,n),o,r),i}_verifyReinsertion(i,e,n,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?i=this._reinsertAfter(o,i._prev,r):i.currentIndex!=r&&(i.currentIndex=r,this._addToMoves(i,r)),i}_truncate(i){for(;null!==i;){const e=i._next;this._addToRemovals(this._unlink(i)),i=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(i,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const r=i._prevRemoved,o=i._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){const r=null===e?this._itHead:e._next;return i._next=r,i._prev=e,null===r?this._itTail=i:r._prev=i,null===e?this._itHead=i:e._next=i,null===this._linkedRecords&&(this._linkedRecords=new V5),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const e=i._prev,n=i._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return null===this._unlinkedRecords&&(this._unlinkedRecords=new V5),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class F9{constructor(i,e){this.item=i,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class A9{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){const e=i._prevDup,n=i._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class V5{constructor(){this.map=new Map}put(i){const e=i.trackById;let n=this.map.get(e);n||(n=new A9,this.map.set(e,n)),n.add(i)}get(i,e){const r=this.map.get(i);return r?r.get(i,e):null}remove(i){const e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function H5(t,i,e){const n=t.previousIndex;if(null===n)return n;let r=0;return e&&n<e.length&&(r=e[n]),n+i+r}class z5{constructor(){}supports(i){return i instanceof Map||lg(i)}create(){return new N9}}class N9{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(i){let e;for(e=this._mapHead;null!==e;e=e._next)i(e)}forEachPreviousItem(i){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)i(e)}forEachChangedItem(i){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)i(e)}forEachAddedItem(i){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)i(e)}forEachRemovedItem(i){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)i(e)}diff(i){if(i){if(!(i instanceof Map||lg(i)))throw new Qt(900,!1)}else i=new Map;return this.check(i)?this:null}onDestroy(){}check(i){this._reset();let e=this._mapHead;
vendor: 2,062 bytes, line 3
3if(this._appendAfter=null,this._forEach(i,(n,r)=>{if(e&&e.key===r)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,n);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){const n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){const r=this._records.get(i);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const n=new O9(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEac
3h(n=>e(i[n],n))}}class O9{constructor(i){this.key=i,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function q5(){return new ip([new j5])}let ip=(()=>{class t{constructor(e){this.factories=e}static create(e,n){if(null!=n){const r=n.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||q5()),deps:[[t,new dc,new Pl]]}}find(e){const n=this.factories.find(r=>r.supports(e));if(null!=n)return n;throw new Qt(901,!1)}}return t.\u0275prov=sn({token:t,providedIn:"root",factory:q5}),t})();function $5(){return new tm([new z5])}let tm=(()=>{class t{constructor(e){this.factories=e}static create(e,n){if(n){const r=n.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||$5()),deps:[[t,new dc,new Pl]]}}find(e){const n=this.factories.find(r=>r.supports(e));if(n)return n;throw new Qt(901,!1)}}return t.\u0275prov=sn({token:t,providedIn:"root",factory:$5}),t})();const j9=T5(null,"core",[]);let V9=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(Mt(Xf))},t.\u0275mod=uo({type:t}),t.\u0275inj=Mo({}),t})();let e0=null;function Lu(){return e0}class q9{}const vo=new _n("DocumentToken");var Qr=(()=>((Qr=Qr||{})[Qr.Format=0]="Format",Qr[Qr.Standalone=1]="Standalone",Qr))(),ai=(()=>((ai=ai||{})[ai.Narrow=0]="Narrow",ai[ai.Abbreviated=1]="Abbreviated",ai[ai.Wide=2]="Wide",ai[ai.Short=3]="Short",ai))(),kr=(()=>((kr=kr||{})[kr.Short=0]="Short",kr[kr.Medium=1]="Medium",kr[kr.Long=2]="Long",kr[kr.Full=3]="Full",kr))(),Mn=(()=>((Mn=Mn||{})[Mn.Decimal=0]="Decimal",Mn[Mn.Group=1]="Group",Mn[Mn.List=2]="List",Mn[Mn.PercentSign=3]="PercentSign",Mn[Mn.PlusSign=4]="PlusSign",Mn[Mn.MinusSign=5]="MinusSign",Mn[Mn.Exponential=6]="Exponential",Mn[Mn.SuperscriptingExponent=7]="SuperscriptingExponent",Mn[Mn.PerMille=8]="PerMille",Mn[Mn.Infinity=9]="Infinity",Mn[Mn.NaN=10]="NaN",Mn[Mn.TimeSeparator=11]="TimeSeparator",Mn[Mn.CurrencyDecimal=12]="CurrencyDecimal",Mn[Mn.CurrencyGroup=13]="CurrencyGroup",Mn))();function rp(t,i){return ja(_s(t)[on.DateFormat],i)}function op(t,i){return ja(_s(t)[on.TimeFormat],i)}function sp(t,i){return ja(_s(t)[on.DateTimeFormat],i)}function Ba(t,i){const e=_s(t),n=e[on.NumberSymbols][i];if(typeof n>"u"){if(i===Mn.CurrencyDecimal)return e[on.NumberSymbols][Mn.Decimal];if(i===Mn.CurrencyGroup)return e[on.NumberSymbols][Mn.Group]}return n}function W5(t){if(!t[on.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[on.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function ja(t,i){for(let e=i;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function n0(t){const[i,e]=t.split(":");return{hours:+i,minutes:+e}}const rS=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,nm={},oS=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{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]*)/;var _o=(()=>((_o=_o||{})[_o.Short=0]="Short",_o[_o.ShortGMT=1]="ShortGMT",_o[_o.Long=2]="Long",_o[_o.Extended=3]="Extended",_o))(),Nn=(()=>((Nn=Nn||{})[Nn.FullYear=0]="FullYear",Nn[Nn.Month=1]="Month",Nn[Nn.Date=2]="Date",Nn[Nn.Hours=3]="Hours",Nn[Nn.Minutes=4]="Minutes",Nn[Nn.Seconds=5]="Seconds",Nn[Nn.FractionalSeconds=6]="FractionalSeconds",Nn[Nn.Day=7]="Day",Nn))(),Qn=(()=>((Qn=Qn||{})[Qn.DayPeriods=0]="DayPeriods",Qn[Qn.Days=1]="Days",Qn[Qn.Months=2]="Months",Qn[Qn.Eras=3]="Eras",Qn))();function sS(t,i,e,n){let r=function pS(t){if(Q5(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[r,o=1,s=1]=t.split("-").map(u=>+u);return ap(r,o-1,s)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(rS))return function gS(t){const i=new Date(0);let e=0,n=0;const r=t[8]?i.setUTCFullYear:i.setFullYear,o=t[8]?i.setUTCHours:i.setHours;t[9]&&(e=Number(t[9]+t[10]),n=Number(t[9]+t[11])),r.call(i,Number(t[1]),Number(t[2])-1,Number(t[3]));const s=Number(t[4]||0)-e,u=Number(t[5]||0)-n,v=Number(t[6]||0),w=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(i,s,u,v,w),i}(n)}const i=new Date(t);if(!Q5(i))throw new Error(`Unable to convert "${t}" into a date`);return i}(t);i=xc(e,i)||i;let u,s=[];for(;i;){if(u=oS.exec(i),!u){s.push(i);break}
vendor: 8,526 bytes, line 3
3{s=s.concat(u.slice(1));const P=s.pop();if(!P)break;i=P}}let v=r.getTimezoneOffset();n&&(v=Z5(n,v),r=function fS(t,i,e){const n=e?-1:1,r=t.getTimezoneOffset();return function mS(t,i){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+i),t}(t,n*(Z5(i,r)-r))}(r,n,!0));let w="";return s.forEach(P=>{const F=function hS(t){if(o0[t])return o0[t];let i;switch(t){case"G":case"GG":case"GGG":i=rr(Qn.Eras,ai.Abbreviated);break;case"GGGG":i=rr(Qn.Eras,ai.Wide);break;case"GGGGG":i=rr(Qn.Eras,ai.Narrow);break;case"y":i=oo(Nn.FullYear,1,0,!1,!0);break;case"yy":i=oo(Nn.FullYear,2,0,!0,!0);break;case"yyy":i=oo(Nn.FullYear,3,0,!1,!0);break;case"yyyy":i=oo(Nn.FullYear,4,0,!1,!0);break;case"Y":i=up(1);break;case"YY":i=up(2,!0);break;case"YYY":i=up(3);break;case"YYYY":i=up(4);break;case"M":case"L":i=oo(Nn.Month,1,1);break;case"MM":case"LL":i=oo(Nn.Month,2,1);break;case"MMM":i=rr(Qn.Months,ai.Abbreviated);break;case"MMMM":i=rr(Qn.Months,ai.Wide);break;case"MMMMM":i=rr(Qn.Months,ai.Narrow);break;case"LLL":i=rr(Qn.Months,ai.Abbreviated,Qr.Standalone);break;case"LLLL":i=rr(Qn.Months,ai.Wide,Qr.Standalone);break;case"LLLLL":i=rr(Qn.Months,ai.Narrow,Qr.Standalone);break;case"w":i=r0(1);break;case"ww":i=r0(2);break;case"W":i=r0(1,!0);break;case"d":i=oo(Nn.Date,1);break;case"dd":i=oo(Nn.Date,2);break;case"c":case"cc":i=oo(Nn.Day,1);break;case"ccc":i=rr(Qn.Days,ai.Abbreviated,Qr.Standalone);break;case"cccc":i=rr(Qn.Days,ai.Wide,Qr.Standalone);break;case"ccccc":i=rr(Qn.Days,ai.Narrow,Qr.Standalone);break;case"cccccc":i=rr(Qn.Days,ai.Short,Qr.Standalone);break;case"E":case"EE":case"EEE":i=rr(Qn.Days,ai.Abbreviated);break;case"EEEE":i=rr(Qn.Days,ai.Wide);break;case"EEEEE":i=rr(Qn.Days,ai.Narrow);break;case"EEEEEE":i=rr(Qn.Days,ai.Short);break;case"a":case"aa":case"aaa":i=rr(Qn.DayPeriods,ai.Abbreviated);break;case"aaaa":i=rr(Qn.DayPeriods,ai.Wide);break;case"aaaaa":i=rr(Qn.DayPeriods,ai.Narrow);break;case"b":case"bb":case"bbb":i=rr(Qn.DayPeriods,ai.Abbreviated,Qr.Standalone,!0);break;case"bbbb":i=rr(Qn.DayPeriods,ai.Wide,Qr.Standalone,!0);break;case"bbbbb":i=rr(Qn.DayPeriods,ai.Narrow,Qr.Standalone,!0);break;case"B":case"BB":case"BBB":i=rr(Qn.DayPeriods,ai.Abbreviated,Qr.Format,!0);break;case"BBBB":i=rr(Qn.DayPeriods,ai.Wide,Qr.Format,!0);break;case"BBBBB":i=rr(Qn.DayPeriods,ai.Narrow,Qr.Format,!0);break;case"h":i=oo(Nn.Hours,1,-12);break;case"hh":i=oo(Nn.Hours,2,-12);break;case"H":i=oo(Nn.Hours,1);break;case"HH":i=oo(Nn.Hours,2);break;case"m":i=oo(Nn.Minutes,1);break;case"mm":i=oo(Nn.Minutes,2);break;case"s":i=oo(Nn.Seconds,1);break;case"ss":i=oo(Nn.Seconds,2);break;case"S":i=oo(Nn.FractionalSeconds,1);break;case"SS":i=oo(Nn.FractionalSeconds,2);break;case"SSS":i=oo(Nn.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":i=cp(_o.Short);break;case"ZZZZZ":i=cp(_o.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=cp(_o.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":i=cp(_o.Long);break;default:return null}return o0[t]=i,i}(P);w+=F?F(r,e,v):"''"===P?"'":P.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),w}function ap(t,i,e){const n=new Date(0);return n.setFullYear(t,i,e),n.setHours(0,0,0),n}function xc(t,i){const e=function G9(t){return _s(t)[on.LocaleId]}(t);if(nm[e]=nm[e]||{},nm[e][i])return nm[e][i];let n="";switch(i){case"shortDate":n=rp(t,kr.Short);break;case"mediumDate":n=rp(t,kr.Medium);break;case"longDate":n=rp(t,kr.Long);break;case"fullDate":n=rp(t,kr.Full);break;case"shortTime":n=op(t,kr.Short);break;case"mediumTime":n=op(t,kr.Medium);break;case"longTime":n=op(t,kr.Long);break;case"fullTime":n=op(t,kr.Full);break;case"short":const r=xc(t,"shortTime"),o=xc(t,"shortDate");n=lp(sp(t,kr.Short),[r,o]);break;case"medium":const s=xc(t,"mediumTime"),u=xc(t,"mediumDate");n=lp(sp(t,kr.Medium),[s,u]);break;case"long":const v=xc(t,"longTime"),w=xc(t,"longDate");n=lp(sp(t,kr.Long),[v,w]);break;case"full":const P=xc(t,"fullTime"),F=xc(t,"fullDate");n=lp(sp(t,kr.Full),[P,F])}return n&&(nm[e][i]=n),n}function lp(t,i){return i&&(t=t.replace(/\{([^}]+)}/g,function(e,n){return null!=i&&n in i?i[n]:e})),t}function fl(t,i,e="-",n,r){let o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=e));let s=String(t);for(;s.length<i;)s="0"+s;return n&&(s=s.slice(s.length-i)),o+s}function oo(t,i,e=0,n=!1,r=!1){return function(o,s){let u=function lS(t,i){switch(t){case Nn.FullYear:return i.getFullYear();case Nn.Month:return i.getMonth();case Nn.Date:return i.getDate();case Nn.Hours:return i.getHours();case Nn.Minutes:return i.getMinutes();case Nn.Seconds:return i.getSeconds();case Nn.FractionalSeconds:return i.getMilliseconds();case Nn.Day:return i.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,o);if((e>0||u>-e)&&(u+=e),t===Nn.Hours)0===u&&-12===e&&(u=12);else if(t===Nn.FractionalSeconds)return function aS(t,i){return fl(t,3).substring(0,i)}(u,i);const v=Ba(s,Mn.MinusSign);return fl(u,i,v,n,r)}}function rr(t,i,e=Qr.Format,n=!1){return function(r,o){return function cS(t,i,e,n,r,o){switch(e){case Qn.Months:return function Z9(t,i,e){const n=_s(t),o=ja([n[on.MonthsFormat],n[on.MonthsStandalone]],i);return ja(o,e)}(i,r,n)[t.getMonth()];case Qn.Days:return function J9(t,i,e){const n=_s(t),o=ja([n[on.DaysFormat],n[on.DaysStandalone]],i);return ja(o,e)}(i,r,n)[t.getDay()];case Qn.DayPeriods:const s=t.getHours(),u=t.getMinutes();if(o){const w=function X9(t){const i=_s(t);return W5(i),(i[on.ExtraData][2]||[]).map(n=>"string"==typeof n?n0(n):[n0(n[0]),n0(n[1])])}(i),P=function eS(t,i,e){const n=_s(t);W5(n);const o=ja([n[on.ExtraData][0],n[on.ExtraData][1]],i)||[];return ja(o,e)||[]}(i,r,n),F=w.findIndex(R=>{if(Array.isArray(R)){const[V,ne]=R,De=s>=V.hours&&u>=V.minutes,ke=s<ne.hours||s===ne.hours&&u<ne.minutes;if(V.hours<ne.hours){if(De&&ke)return!0}else if(De||ke)return!0}else if(R.hours===s&&R.minutes===u)return!0;return!1});if(-1!==F)return P[F]}return function W9(t,i,e){const n=_s(t),o=ja([n[on.DayPeriodsFormat],n[on.DayPeriodsStandalone]],i);return ja(o,e)}(i,r,n)[s<12?0:1];case Qn.Eras:return function Q9(t,i){return ja(_s(t)[on.Eras],i)}(i,n)[t.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${e}`)}}(r,o,t,i,e,n)}}function cp(t){return function(i,e,n){const r=-1*n,o=Ba(e,Mn.MinusSign),s=r>0?Math.floor(r/60):Math.ceil(r/60);switch(t){case _o.Short:return(r>=0?"+":"")+fl(s,2,o)+fl(Math.abs(r%60),2,o);case _o.ShortGMT:return"GMT"+(r>=0?"+":"")+fl(s,1,o);case _o.Long:return"GMT"+(r>=0?"+":"")+fl(s,2,o)+":"+fl(Math.abs(r%60),2,o);case _o.Extended:return 0===n?"Z":(r>=0?"+":"")+fl(s,2,o)+":"+fl(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}const dS=0,dp=4;function J5(t){return ap(t.getFullYear(),t.getMonth(),t.getDate()+(dp-t.getDay()))}function r0(t,i=!1){return function(e,n){let r;if(i){const o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();r=1+Math.floor((s+o)/7)}else{const o=J5(e),s=function uS(t){const i=ap(t,dS,1).getDay();return ap(t,0,1+(i<=dp?dp:dp+7)-i)}(o.getFullYear()),u=o.getTime()-s.getTime();r=1+Math.round(u/6048e5)}return fl(r,t,Ba(n,Mn.MinusSign))}}function up(t,i=!1){return function(e,n){return fl(J5(e).getFullYear(),t,Ba(n,Mn.MinusSign),i)}}const o0={};function Z5(t,i){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?i:e}function Q5(t){return t instanceof Date&&!isNaN(t.valueOf())}function e4(t,i){i=encodeURIComponent(i);for(const e of t.split(";")){const n=e.indexOf("="),[r,o]=-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)];if(r.trim()===i)return decodeURIComponent(o)}return null}const u0=/\s+/,t4=[];let ui=(()=>{class t{constructor(e,n,r,o){this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=r,this._renderer=o,this.initialClasses=t4,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(u0):t4}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(u0):e}ngDoCheck(){for(const n of this.initialClasses)this._updateState(n,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const n of e)this._updateState(n,!0);else if(null!=e)for(const n of Object.keys(e))this._updateState(n,Boolean(e[n]));this._applyStateDiff()}_updateState(e,n){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==n&&(r.changed=!0,r.enabled=n),r.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const n=e[0],r=e[1];r.changed?(this._toggleClass(n,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),r.touched=!1}}_toggleClass(e,n){(e=e.trim()).length>
30&&e.split(u0).forEach(r=>{n?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return t.\u0275fac=function(e){return new(e||t)($(ip),$(tm),$(To),$(ps))},t.\u0275dir=Ft({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class ES{constructor(i,e,n,r){this.$implicit=i,this.ngForOf=e,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ei=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,n,r){this._viewContainer=e,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const n=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)n.createEmbeddedView(this._template,new ES(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)n.remove(null===o?void 0:o);else if(null!==o){const u=n.get(o);n.move(u,s),r4(u,r)}});for(let r=0,o=n.length;r<o;r++){const u=n.get(r).context;u.index=r,u.count=o,u.ngForOf=this._ngForOf}e.forEachIdentityChange(r=>{r4(n.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,n){return!0}}return t.\u0275fac=function(e){return new(e||t)($(Ul),$(Sc),$(ip))},t.\u0275dir=Ft({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function r4(t,i){t.context.$implicit=i.item}let en=(()=>{class t{constructor(e,n){this._viewContainer=e,this._context=new kS,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){o4("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){o4("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,n){return!0}}return t.\u0275fac=function(e){return new(e||t)($(Ul),$(Sc))},t.\u0275dir=Ft({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class kS{constructor(){this.$implicit=null,this.ngIf=null}}function o4(t,i){if(i&&!i.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Qi(i)}'.`)}class h0{constructor(i,e){this._viewContainerRef=i,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}}let ku=(()=>{class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const n=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const n of this._defaultViews)n.enforceState(e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ft({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),t})(),rm=(()=>{class t{constructor(e,n,r){this.ngSwitch=r,r._addCase(),this._view=new h0(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)($(Ul),$(Sc),$(ku,9))},t.\u0275dir=Ft({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),t})(),s4=(()=>{class t{constructor(e,n,r){r._addDefault(new h0(e,n))}}return t.\u0275fac=function(e){return new(e||t)($(Ul),$(Sc),$(ku,9))},t.\u0275dir=Ft({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0}),t})();
3function pl(t,i){return new Qt(2100,!1)}const zS=new _n("DATE_PIPE_DEFAULT_TIMEZONE"),qS=new _n("DATE_PIPE_DEFAULT_OPTIONS");let bd=(()=>{class t{constructor(e,n,r){this.locale=e,this.defaultTimezone=n,this.defaultOptions=r}transform(e,n,r,o){if(null==e||""===e||e!=e)return null;try{return sS(e,n??this.defaultOptions?.dateFormat??"mediumDate",o||this.locale,r??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw pl()}}}return t.\u0275fac=function(e){return new(e||t)($(wc,16),$(zS,24),$(qS,24))},t.\u0275pipe=_r({name:"date",type:t,pure:!0,standalone:!0}),t})(),mp=(()=>{class t{transform(e,n,r){if(null==e)return null;if(!this.supports(e))throw pl();return e.slice(n,r)}supports(e){return"string"==typeof e||Array.isArray(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=_r({name:"slice",type:t,pure:!1,standalone:!0}),t})(),om=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=uo({type:t}),t.\u0275inj=Mo({}),t})();class u4{}class Ew extends q9{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class v0 extends Ew{static makeCurrent(){!function z9(t){e0||(e0=t)}(new v0)}onAndCancel(i,e,n){return i.addEventListener(e,n,!1),()=>{i.removeEventListener(e,n,!1)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.parentNode&&i.parentNode.removeChild(i)}createElement(i,e){return(e=e||this.getDefaultDocument()).createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return"window"===e?window:"document"===e?i:"body"===e?i.body:null}getBaseHref(i){const e=function Lw(){return am=am||document.querySelector("base"),am?am.getAttribute("href"):null}();return null==e?null:function kw(t){gp=gp||document.createElement("a"),gp.setAttribute("href",t);const i=gp.pathname;return"/"===i.charAt(0)?i:`/${i}`}(e)}resetBaseElement(){am=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return e4(document.cookie,i)}}let gp,am=null;const g4=new _n("TRANSITION_ID"),Fw=[{provide:_5,useFactory:function Mw(t,i,e){return()=>{e.get(Yf).donePromise.then(()=>{const n=Lu(),r=i.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o<r.length;o++)n.remove(r[o])})}},deps:[g4,vo,gs],multi:!0}];let Nw=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=sn({token:t,factory:t.\u0275fac}),t})();const vp=new _n("EventManagerPlugins");let _p=(()=>{class t{constructor(e,n){this._zone=n,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,r){return this._findPluginFor(n).addEventListener(e,n,r)}addGlobalEventListener(e,n,r){return this._findPluginFor(n).addGlobalEventListener(e,n,r)}getZone(){return this._zone}_findPluginFor(e){const n=this._eventNameToPlugin.get(e);if(n)return n;const r=this._plugins;for(let o=0;o<r.length;o++){const s=r[o];if(s.supports(e))return this._eventNameToPlugin.set(e,s),s}throw new Error(`No event manager plugin found for event ${e}`)}}return t.\u0275fac=function(e){return new(e||t)(Mt(vp),Mt($r))},t.\u0275prov=sn({token:t,factory:t.\u0275fac}),t})();class v4{constructor(i){this._doc=i}addGlobalEventListener(i,e,n){const r=Lu().getGlobalEventTarget(this._doc,i);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,n)}}let _4=(()=>{class t{constructor(){this.usageCount=new Map}addStyles(e){for(const n of e)1===this.changeUsageCount(n,1)&&this.onStyleAdded(n)}removeStyles(e){for(const n of e)0===this.changeUsageCount(n,-1)&&this.onStyleRemoved(n)}onStyleRemoved(e){}onStyleAdded(e){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(e,n){const r=this.usageCount;let o=r.get(e)??0;return o+=n,o>0?r.set(e,o):r.delete(e),o}ngOnDestroy(){for(const e of this.getAllStyles())this.onStyleRemoved(e);this.usageCount.clear()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=sn({token:t,factory:t.\u0275fac}),t})(),lm=(()=>{class t extends _4{constructor(e){super(),this.doc=e,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(e){for(const n of this.hostNodes)this.addStyleToHost(n,e)}onStyleRemoved(e){const n=this.styleRef;n.get(e)?.forEach(o=>o.remove()),n.delete(e)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const n of this.getAllStyles())this.addStyleToHost(e,n)}removeHost(e){this.hostNodes.delete(e)}addStyleToHost(e,n){const r=this.doc.createElement("style");r.textContent=n,e.appendChild(r);const o=this.styleRef.get(n);o?o.push(r):this.styleRef.set(n,[r])}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return t.\u0275fac=function(e){return new(e||t)(Mt(vo))},t.\u0275prov=sn({token:t,factory:t.\u0275fac}),t})();const _0={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},C0=/%COMP%/g,b4=new _n("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function S4(t,i){return i.flat(100).map(e=>e.replace(C0,t))}function w4(t){return i=>{if("__ngUnwrap__"===i)return t;!1===t(i)&&(i.preventDefault(),i.returnValue=!1)}}let y0=(()=>{class t{constructor(e,n,r,o){this.eventManager=e,this.sharedStylesHost=n,this.appId=r,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new b0(e)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;const r=this.getOrCreateRenderer(e,n);return r instanceof D4?r.applyToHost(e):r instanceof S0&&r.applyStyles(),r}getOrCreateRenderer(e,n){const r=this.rendererByCompId;let o=r.get(n.id);if(!o){const s=this.eventManager,u=this.sharedStylesHost,v=this.removeStylesOnCompDestory;switch(n.encapsulation){case Es.Emulated:o=new D4(s,u,n,this.appId,v);break;case Es.ShadowDom:return new zw(s,u,e,n);default:o=new S0(s,u,n,v)}o.onDestroy=()=>r.delete(n.id),r.set(n.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(Mt(_p),Mt(lm),Mt(em),Mt(b4))},t.\u0275prov=sn({token:t,factory:t.\u0275fac}),t})();class b0{constructor(i){this.eventManager=i,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(i,e){return e?document.createElementNS(_0[e]||e,i):document.createElement(i)}createComment(i){return document.createComment(i)}createText(i){return document.createTextNode(i)}appendChild(i,e){(x4(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(x4(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){i&&i.removeChild(e)}selectRootElement(i,e){let n="string"==typeof i?document.querySelector(i):i;if(!n)throw new Error(`The selector "${i}" did not match any elements`);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}
3setAttribute(i,e,n,r){if(r){e=r+":"+e;const o=_0[r];o?i.setAttributeNS(o,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){const r=_0[n];r?i.removeAttributeNS(r,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,r){r&(ki.DashCase|ki.Important)?i.style.setProperty(e,n,r&ki.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&ki.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i[e]=n}setValue(i,e){i.nodeValue=e}listen(i,e,n){return"string"==typeof i?this.eventManager.addGlobalEventListener(i,e,w4(n)):this.eventManager.addEventListener(i,e,w4(n))}}function x4(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class zw extends b0{constructor(i,e,n,r){super(i),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=S4(r.id,r.styles);for(const s of o){const u=document.createElement("style");u.textContent=s,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(this.nodeOrShadowRoot(i),e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class S0 extends b0{constructor(i,e,n,r,o=n.id){super(i),this.sharedStylesHost=e,this.removeStylesOnCompDestory=r,this.rendererUsageCount=0,this.styles=S4(o,n.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class D4 extends S0{constructor(i,e,n,r,o){const s=r+"-"+n.id;super(i,e,n,o,s),this.contentAttr=function jw(t){return"_ngcontent-%COMP%".replace(C0,t)}(s),this.hostAttr=function Vw(t){return"_nghost-%COMP%".replace(C0,t)}(s)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){const n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}}let qw=(()=>{class t extends v4{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,r){return e.addEventListener(n,r,!1),()=>this.removeEventListener(e,n,r)}removeEventListener(e,n,r){return e.removeEventListener(n,r)}}return t.\u0275fac=function(e){return new(e||t)(Mt(vo))},t.\u0275prov=sn({token:t,factory:t.\u0275fac}),t})();const P4=["alt","control","meta","shift"],$w={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Uw={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Gw=(()=>{class t extends v4{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const o=t.parseEventName(n),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Lu().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const o=t._normalizeKey(n.pop());let s="",u=n.indexOf("code");if(u>-1&&(n.splice(u,1),s="code."),P4.forEach(w=>{const P=n.indexOf(w);P>-1&&(n.splice(P,1),s+=w+".")}),s+=o,0!=n.length||0===o.length)return null;const v={};return v.domEventName=r,v.fullKey=s,v}static matchEventFullKeyCode(e,n){let r=$w[e.key]||e.key,o="";return n.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),P4.forEach(s=>{s!==r&&(0,Uw[s])(e)&&(o+=s+".")}),o+=r,o===n)}static eventCallback(e,n,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>n(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(Mt(vo))},t.\u0275prov=sn({token:t,factory:t.\u0275fac}),t})();const E4=[{provide:Vg,useValue:"browser"},{provide:y5,useValue:function Ww(){v0.makeCurrent()},multi:!0},{provide:vo,useFactory:function Zw(){return function k2(t){P1=t}(document),document},deps:[]}],Qw=T5(j9,"browser",E4),L4=new _n(""),k4=[{provide:Kf,useClass:class Aw{addToWindow(i){Ki.getAngularTestability=(n,r=!0)=>{const o=i.findTestabilityInTree(n,r);if(null==o)throw new Error("Could not find testability for element.");return o},Ki.getAllAngularTestabilities=()=>i.getAllTestabilities(),Ki.getAllAngularRootElements=()=>i.getAllRootElements(),Ki.frameworkStabilizers||(Ki.frameworkStabilizers=[]),Ki.frameworkStabilizers.push(n=>{const r=Ki.getAllAngularTestabilities();let o=r.length,s=!1;const u=function(v){s=s||v,o--,0==o&&n(s)};r.forEach(function(v){v.whenStable(u)})})}findTestabilityInTree(i,e,n){return null==e?null:i.getTestability(e)??(n?Lu().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},deps:[]},{provide:x5,useClass:$g,deps:[$r,Ug,Kf]},{provide:$g,useClass:$g,deps:[$r,Ug,Kf]}],M4=[{provide:da,useValue:"root"},{provide:ll,useFactory:function Jw(){return new ll},deps:[]},{provide:vp,useClass:qw,multi:!0,deps:[vo,$r,Vg]},{provide:vp,useClass:Gw,multi:!0,deps:[vo]},{provide:y0,useClass:y0,deps:[_p,lm,em,b4]},{provide:yf,useExisting:y0},{provide:_4,useExisting:lm},{provide:lm,useClass:lm,deps:[vo]},{provide:_p,useClass:_p,deps:[vp,$r]},{provide:u4,useClass:Nw,deps:[]},[]];let F4=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:em,useValue:e.appId},{provide:g4,useExisting:em},Fw]}}}return t.\u0275fac=function(e){return new(e||t)(Mt(L4,12))},t.\u0275mod=uo({type:t}),t.\u0275inj=Mo({providers:[...M4,...k4],imports:[om,V9]}),t})(),A4=(()=>{class t{constructor(e){this._doc=e,this._dom=Lu()}addTag(e,n=!1){return e?this._getOrCreateElement(e,n):null}addTags(e,n=!1){return e?e.reduce((r,o)=>(o&&r.push(this._getOrCreateElement(o,n)),r),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];const n=this._doc.querySelectorAll(`meta[${e}]`);return n?[].slice.call(n):[]}updateTag(e,n){if(!e)return null;n=n||this._parseSelector(e);const r=this.getTag(n);return r?this._setMetaElementAttributes(e,r):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,n=!1){if(!n){const s=this._parseSelector(e),u=this.getTags(s).filter(v=>this._containsAttributes(e,v))[0];if(void 0!==u)return u}const r=this._dom.createElement("meta");return this._setMetaElementAttributes(e,r),this._doc.getElementsByTagName("head")[0].appendChild(r),r}_setMetaElementAttributes(e,n){return Object.keys(e).forEach(r=>n.setAttribute(this._getMetaKeyMap(r),e[r])),n}_parseSelector(e){const n=e.name?"name":"property";return`${n}="${e[n]}"`}_containsAttributes(e,n){return Object.keys(e).every(r=>n.getAttribute(this._getMetaKeyMap(r))===e[r])}_getMetaKeyMap(e){return Kw[e]||e}}return t.\u0275fac=function(e){return new(e||t)(Mt(vo))},t.\u0275prov=sn({token:t,factory:function(e){let n=null;return n=e?new e:function Yw(){return new A4(Mt(vo))}(),n},providedIn:"root"}),t})();const Kw={httpEquiv:"http-equiv"};let I0=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(Mt(vo))},t.\u0275prov=sn({token:t,factory:function(e){let n=null;return n=e?new e:function Xw(){return new I0(Mt(vo))}(),n},providedIn:"root"}),t})();typeof window<"u"&&window;let gl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=sn({token:t,factory:function(e){let n=null;return n=e?new(e||t):Mt(R4),n},providedIn:"root"}),t})(),R4=(()=>{class t extends gl{constructor(e){super(),this._doc=e}sanitize(e,n){if(null==n)return null;switch(e){case Be.NONE:return n;case Be.HTML:return ca(n,"HTML")?Uo(n):Re(this._doc,String(n)).toString();case Be.STYLE:return ca(n,"Style")?Uo(n):n;case Be.SCRIPT:if(ca(n,"Script"))return Uo(n);throw new Error("unsafe value used in a script context");case Be.URL:return ca(n,"URL")?Uo(n):mh(String(n));case Be.RESOURCE_URL:if(ca(n,"ResourceURL"))return Uo(n);throw new Error(`unsafe value used in a resource URL context (see ${Kh})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${Kh})`)}}bypassSecurityTrustHtml(e){return function uh(t){return new zs(t)}(e)}bypassSecurityTrustStyle(e){return function hh(t){return new M2(t)}(e)}bypassSecurityTrustScript(e){return function gu(t){return new F2(t)}(e)}bypassSecurityTrustUrl(e){return function E1(t){return new hf(t)}(e)}bypassSecurityTrustResourceUrl(e){return function ff(t){return new mf(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(Mt(vo))},t.\u0275prov=sn({token:t,factory:function(e){let n=null;return n=e?new e:function rI(t){return new R4(t.get(vo))}(Mt(gs)),n},providedIn:"root"}),t})();function Cp(...t){let i=t[t.length-1];return Dn(i)?(t.pop(),vl(t,i)):va(t)}function Mu(t,i){return function(n){return n.lift(new sI(t,i))}}class sI{constructor(i,e){this.predicate=i,this.thisArg=e}call(i,e){return e.subscribe(new aI(i,this.predicate,this.thisArg))}}
3class aI extends Tt{constructor(i,e,n){super(i),this.predicate=e,this.thisArg=n,this.count=0}_next(i){let e;try{e=this.predicate.call(this.thisArg,i,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(i)}}class yp{}class D0{}class Dc{constructor(i){this.normalizedNames=new Map,this.lazyUpdate=null,i?this.lazyInit="string"==typeof i?()=>{this.headers=new Map,i.split("\n").forEach(e=>{const n=e.indexOf(":");if(n>0){const r=e.slice(0,n),o=r.toLowerCase(),s=e.slice(n+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{let r;if(r="string"==typeof n?[n]:"number"==typeof n?[n.toString()]:n.map(o=>o.toString()),r.length>0){const o=e.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(e,o)}})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();const e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof Dc?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){const e=new Dc;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Dc?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){const e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(i.name,e);const r=("a"===i.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":const o=i.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(u=>-1===o.indexOf(u)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}}class lI{encodeKey(i){return B4(i)}encodeValue(i){return B4(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}const dI=/%(\d[a-f0-9])/gi,uI={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function B4(t){return encodeURIComponent(t).replace(dI,(i,e)=>uI[e]??i)}function bp(t){return`${t}`}class wr{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new lI,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function cI(t,i){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,u]=-1==o?[i.decodeKey(r),""]:[i.decodeKey(r.slice(0,o)),i.decodeValue(r.slice(o+1))],v=e.get(s)||[];v.push(u),e.set(s,v)}),e}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{const n=i.fromObject[e],r=Array.isArray(n)?n.map(bp):[bp(n)];this.map.set(e,r)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();const e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){const e=[];
vendor: 6,960 bytes, line 3
3return Object.keys(i).forEach(n=>{const r=i[n];Array.isArray(r)?r.forEach(o=>{e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{const e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>""!==i).join("&")}clone(i){const e=new wr({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":const e=("a"===i.op?this.map.get(i.param):void 0)||[];e.push(bp(i.value)),this.map.set(i.param,e);break;case"d":if(void 0===i.value){this.map.delete(i.param);break}{let n=this.map.get(i.param)||[];const r=n.indexOf(bp(i.value));-1!==r&&n.splice(r,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}}}),this.cloneFrom=this.updates=null)}}class hI{constructor(){this.map=new Map}set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}}function j4(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function V4(t){return typeof Blob<"u"&&t instanceof Blob}function H4(t){return typeof FormData<"u"&&t instanceof FormData}class cm{constructor(i,e,n,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.toUpperCase(),function mI(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Dc),this.context||(this.context=new hI),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const u=e.indexOf("?");this.urlWithParams=e+(-1===u?"?":u<e.length-1?"&":"")+s}}else this.params=new wr,this.urlWithParams=e}serializeBody(){return null===this.body?null:j4(this.body)||V4(this.body)||H4(this.body)||function fI(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof wr?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||H4(this.body)?null:V4(this.body)?this.body.type||null:j4(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof wr?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(i={}){const e=i.method||this.method,n=i.url||this.url,r=i.responseType||this.responseType,o=void 0!==i.body?i.body:this.body,s=void 0!==i.withCredentials?i.withCredentials:this.withCredentials,u=void 0!==i.reportProgress?i.reportProgress:this.reportProgress;let v=i.headers||this.headers,w=i.params||this.params;const P=i.context??this.context;return void 0!==i.setHeaders&&(v=Object.keys(i.setHeaders).reduce((F,R)=>F.set(R,i.setHeaders[R]),v)),i.setParams&&(w=Object.keys(i.setParams).reduce((F,R)=>F.set(R,i.setParams[R]),w)),new cm(e,n,o,{params:w,headers:v,context:P,reportProgress:u,responseType:r,withCredentials:s})}}var so=(()=>((so=so||{})[so.Sent=0]="Sent",so[so.UploadProgress=1]="UploadProgress",so[so.ResponseHeader=2]="ResponseHeader",so[so.DownloadProgress=3]="DownloadProgress",so[so.Response=4]="Response",so[so.User=5]="User",so))();class P0{constructor(i,e=200,n="OK"){this.headers=i.headers||new Dc,this.status=void 0!==i.status?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}}class T0 extends P0{constructor(i={}){super(i),this.type=so.ResponseHeader}clone(i={}){return new T0({headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class Sp extends P0{constructor(i={}){super(i),this.type=so.Response,this.body=void 0!==i.body?i.body:null}clone(i={}){return new Sp({body:void 0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class z4 extends P0{constructor(i){super(i,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${i.url||"(unknown url)"}`:`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}}function E0(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let ko=(()=>{class t{constructor(e){this.handler=e}request(e,n,r={}){let o;if(e instanceof cm)o=e;else{let v,w;v=r.headers instanceof Dc?r.headers:new Dc(r.headers),r.params&&(w=r.params instanceof wr?r.params:new wr({fromObject:r.params})),o=new cm(e,n,void 0!==r.body?r.body:null,{headers:v,context:r.context,params:w,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=Cp(o).pipe(function oI(t,i){return Ld(t,i,1)}(v=>this.handler.handle(v)));if(e instanceof cm||"events"===r.observe)return s;const u=s.pipe(Mu(v=>v instanceof Sp));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return u.pipe(Xe(v=>{if(null!==v.body&&!(v.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return v.body}));case"blob":return u.pipe(Xe(v=>{if(null!==v.body&&!(v.body instanceof Blob))throw new Error("Response is not a Blob.");return v.body}));case"text":return u.pipe(Xe(v=>{if(null!==v.body&&"string"!=typeof v.body)throw new Error("Response is not a string.");return v.body}));default:return u.pipe(Xe(v=>v.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:(new wr).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,r={}){return this.request("PATCH",e,E0(r,n))}post(e,n,r={}
3){return this.request("POST",e,E0(r,n))}put(e,n,r={}){return this.request("PUT",e,E0(r,n))}}return t.\u0275fac=function(e){return new(e||t)(Mt(yp))},t.\u0275prov=sn({token:t,factory:t.\u0275fac}),t})();function q4(t,i){return i(t)}function pI(t,i){return(e,n)=>i.intercept(e,{handle:r=>t(r,n)})}const vI=new _n("HTTP_INTERCEPTORS"),dm=new _n("HTTP_INTERCEPTOR_FNS");function _I(){let t=null;return(i,e)=>(null===t&&(t=(Dr(vI,{optional:!0})??[]).reduceRight(pI,q4)),t(i,e))}let $4=(()=>{class t extends yp{constructor(e,n){super(),this.backend=e,this.injector=n,this.chain=null}handle(e){if(null===this.chain){const n=Array.from(new Set(this.injector.get(dm)));this.chain=n.reduceRight((r,o)=>function gI(t,i,e){return(n,r)=>e.runInContext(()=>i(n,o=>t(o,r)))}(r,o,this.injector),q4)}return this.chain(e,n=>this.backend.handle(n))}}return t.\u0275fac=function(e){return new(e||t)(Mt(D0),Mt(al))},t.\u0275prov=sn({token:t,factory:t.\u0275fac}),t})();const SI=/^\)\]\}',?\n/;let G4=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Se(n=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((V,ne)=>r.setRequestHeader(V,ne.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const V=e.detectContentTypeHeader();null!==V&&r.setRequestHeader("Content-Type",V)}if(e.responseType){const V=e.responseType.toLowerCase();r.responseType="json"!==V?V:"text"}const o=e.serializeBody();let s=null;const u=()=>{if(null!==s)return s;const V=r.statusText||"OK",ne=new Dc(r.getAllResponseHeaders()),De=function wI(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new T0({headers:ne,status:r.status,statusText:V,url:De}),s},v=()=>{let{headers:V,status:ne,statusText:De,url:ke}=u(),je=null;204!==ne&&(je=typeof r.response>"u"?r.responseText:r.response),0===ne&&(ne=je?200:0);let at=ne>=200&&ne<300;if("json"===e.responseType&&"string"==typeof je){const Ie=je;je=je.replace(SI,"");try{je=""!==je?JSON.parse(je):null}catch(xt){je=Ie,at&&(at=!1,je={error:xt,text:je})}}at?(n.next(new Sp({body:je,headers:V,status:ne,statusText:De,url:ke||void 0})),n.complete()):n.error(new z4({error:je,headers:V,status:ne,statusText:De,url:ke||void 0}))},w=V=>{const{url:ne}=u(),De=new z4({error:V,status:r.status||0,statusText:r.statusText||"Unknown Error",url:ne||void 0});n.error(De)};let P=!1;const F=V=>{P||(n.next(u()),P=!0);let ne={type:so.DownloadProgress,loaded:V.loaded};V.lengthComputable&&(ne.total=V.total),"text"===e.responseType&&r.responseText&&(ne.partialText=r.responseText),n.next(ne)},R=V=>{let ne={type:so.UploadProgress,loaded:V.loaded};V.lengthComputable&&(ne.total=V.total),n.next(ne)};return r.addEventListener("load",v),r.addEventListener("error",w),r.addEventListener("timeout",w),r.addEventListener("abort",w),e.reportProgress&&(r.addEventListener("progress",F),null!==o&&r.upload&&r.upload.addEventListener("progress",R)),r.send(o),n.next({type:so.Sent}),()=>{r.removeEventListener("error",w),r.removeEventListener("abort",w),r.removeEventListener("load",v),r.removeEventListener("timeout",w),e.reportProgress&&(r.removeEventListener("progress",F),null!==o&&r.upload&&r.upload.removeEventListener("progress",R)),r.readyState!==r.DONE&&r.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(Mt(u4))},t.\u0275prov=sn({token:t,factory:t.\u0275fac}),t})();const L0=new _n("XSRF_ENABLED"),W4=new _n("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),J4=new _n("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Z4{}let DI=(()=>{class t{constructor(e,n,r){this.doc=e,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=e4(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(Mt(vo),Mt(Vg),Mt(W4))},t.\u0275prov=sn({token:t,factory:t.\u0275fac}),t})();function PI(t,i){const e=t.url.toLowerCase();if(!Dr(L0)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return i(t);const n=Dr(Z4).getToken(),r=Dr(J4);return null!=n&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),i(t)}var Kr=(()=>((Kr=Kr||{})[Kr.Interceptors=0]="Interceptors",Kr[Kr.LegacyInterceptors=1]="LegacyInterceptors",Kr[Kr.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Kr[Kr.NoXsrfProtection=3]="NoXsrfProtection",Kr[Kr.JsonpSupport=4]="JsonpSupport",Kr[Kr.RequestsMadeViaParent=5]="RequestsMadeViaParent",Kr))();function Vh(t,i){return{\u0275kind:t,\u0275providers:i}}function TI(...t){const i=[ko,G4,$4,{provide:yp,useExisting:$4},{provide:D0,useExisting:G4},{provide:dm,useValue:PI,multi:!0},{provide:L0,useValue:!0},{provide:Z4,useClass:DI}];for(const e of t)i.push(...e.\u0275providers);return function zr(t){return{\u0275providers:t}}(i)}const Q4=new _n("LEGACY_INTERCEPTOR_FN");let LI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=uo({type:t}),t.\u0275inj=Mo({providers:[TI(Vh(Kr.LegacyInterceptors,[{provide:Q4,useFactory:_I},{provide:dm,useExisting:Q4,multi:!0}]))]}),t})();class kI extends vt{constructor(i,e){super()}schedule(i,e=0){return this}}
vendor: 9,011 bytes, line 3
3class Y4 extends kI{constructor(i,e){super(i,e),this.scheduler=i,this.work=e,this.pending=!1}schedule(i,e=0){if(this.closed)return this;this.state=i;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(i,e,n=0){return setInterval(i.flush.bind(i,this),n)}recycleAsyncId(i,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(i,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(i,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(i,e){let r,n=!1;try{this.work(i)}catch(o){n=!0,r=!!o&&o||new Error(o)}if(n)return this.unsubscribe(),r}_unsubscribe(){const i=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=i&&(this.id=this.recycleAsyncId(e,i,null)),this.delay=null}}let K4=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(e,n=0,r){return new this.SchedulerAction(this,e).schedule(r,n)}}return t.now=()=>Date.now(),t})();class Pc extends K4{constructor(i,e=K4.now){super(i,()=>Pc.delegate&&Pc.delegate!==this?Pc.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(i,e=0,n){return Pc.delegate&&Pc.delegate!==this?Pc.delegate.schedule(i,e,n):super.schedule(i,e,n)}flush(i){const{actions:e}=this;if(this.active)return void e.push(i);let n;this.active=!0;do{if(n=i.execute(i.state,i.delay))break}while(i=e.shift());if(this.active=!1,n){for(;i=e.shift();)i.unsubscribe();throw n}}}const AI=new class FI extends Pc{}(class MI extends Y4{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}schedule(i,e=0){return e>0?super.schedule(i,e):(this.delay=e,this.state=i,this.scheduler.flush(this),this)}execute(i,e){return e>0||this.closed?super.execute(i,e):this._execute(i,e)}requestAsyncId(i,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(i,e,n):i.flush(this)}}),NI=new Se(t=>t.complete());function X4(t){return t?function OI(t){return new Se(i=>t.schedule(()=>i.complete()))}(t):NI}function k0(t,i){return new Se(i?e=>i.schedule(RI,0,{error:t,subscriber:e}):e=>e.error(t))}function RI({error:t,subscriber:i}){i.error(t)}class Va{constructor(i,e,n){this.kind=i,this.value=e,this.error=n,this.hasValue="N"===i}observe(i){switch(this.kind){case"N":return i.next&&i.next(this.value);case"E":return i.error&&i.error(this.error);case"C":return i.complete&&i.complete()}}do(i,e,n){switch(this.kind){case"N":return i&&i(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(i,e,n){return i&&"function"==typeof i.next?this.observe(i):this.do(i,e,n)}toObservable(){switch(this.kind){case"N":return Cp(this.value);case"E":return k0(this.error);case"C":return X4()}throw new Error("unexpected notification kind value")}static createNext(i){return typeof i<"u"?new Va("N",i):Va.undefinedValueNotification}static createError(i){return new Va("E",void 0,i)}static createComplete(){return Va.completeNotification}}Va.completeNotification=new Va("C"),Va.undefinedValueNotification=new Va("N",void 0);class wp extends Tt{constructor(i,e,n=0){super(i),this.scheduler=e,this.delay=n}static dispatch(i){const{notification:e,destination:n}=i;e.observe(n),this.unsubscribe()}scheduleMessage(i){this.destination.add(this.scheduler.schedule(wp.dispatch,this.delay,new jI(i,this.destination)))}_next(i){this.scheduleMessage(Va.createNext(i))}_error(i){this.scheduleMessage(Va.createError(i)),this.unsubscribe()}_complete(){this.scheduleMessage(Va.createComplete()),this.unsubscribe()}}class jI{constructor(i,e){this.notification=i,this.destination=e}}class eC extends Lt{constructor(i=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=i<1?1:i,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(i){if(!this.isStopped){const e=this._events;e.push(i),e.length>this._bufferSize&&e.shift()}super.next(i)}nextTimeWindow(i){this.isStopped||(this._events.push(new VI(this._getNow(),i)),this._trimBufferThenGetEvents()),super.next(i)}_subscribe(i){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=n.length;let s;if(this.closed)throw new pt;if(this.isStopped||this.hasError?s=vt.EMPTY:(this.observers.push(i),s=new gt(this,i)),r&&i.add(i=new wp(i,r)),e)for(let u=0;u<o&&!i.closed;u++)i.next(n[u]);else for(let u=0;u<o&&!i.closed;u++)i.next(n[u].value);return this.hasError?i.error(this.thrownError):this.isStopped&&i.complete(),s}_getNow(){return(this.scheduler||AI).now()}_trimBufferThenGetEvents(){const i=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,o=r.length;let s=0;for(;s<o&&!(i-r[s].time<n);)s++;return o>e&&(s=Math.max(s,o-e)),s>0&&r.splice(0,s),r}}class VI{constructor(i,e){this.time=i,this.value=e}}function M0(t,i){return"function"==typeof i?e=>e.pipe(M0((n,r)=>_l(t(n,r)).pipe(Xe((o,s)=>i(n,o,r,s))))):e=>e.lift(new HI(t))}class HI{constructor(i){this.project=i}call(i,e){return e.subscribe(new zI(i,this.project))}}class zI extends Qh{constructor(i,e){super(i),this.project=e,this.index=0}_next(i){let e;const n=this.index++;try{e=this.project(i,n)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(i){const e=this.innerSubscription;e&&e.unsubscribe();const n=new zu(this),r=this.destination;r.add(n),this.innerSubscription=Ed(i,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:i}=this;(!i||i.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(i){this.destination.next(i)}}const Ip={schedule(t,i){const e=setTimeout(t,i);return()=>clearTimeout(e)},scheduleBeforeRender(t){if(typeof window>"u")return Ip.schedule(t,0);if(typeof window.requestAnimationFrame>"u")return Ip.schedule(t,16);const i=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(i)}};let F0;function YI(t,i,e){let n=e;return function $I(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&i.some((r,o)=>!("*"===r||!function GI(t,i){if(!F0){const e=Element.prototype;F0=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE&&F0.call(t,i)}(t,r)||(n=o,0))),n}class XI{constructor(i,e){this.componentFactory=e.get(md).resolveComponentFactory(i)}create(i){return new ex(this.componentFactory,i)}}class ex{constructor(i,e){this.componentFactory=i,this.injector=e,this.eventEmitters=new eC(1),this.events=this.eventEmitters.pipe(M0(n=>qu(...n))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:n})=>n)),this.ngZone=this.injector.get($r),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(i){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(i)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Ip.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(i){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(i):this.componentRef.instance[i])}setInputValue(i,e){this.runInZone(()=>{null!==this.componentRef?function WI(t,i){return t===i||t!=t&&i!=i}(e,this.getInputValue(i))&&(void 0!==e||!this.unchangedInputs.has(i))||(this.recordInputChange(i,e),this.unchangedInputs.delete(i),this.hasInputChanges=!0,this.componentRef.instance[i]=e,this.scheduleDetectChanges()):this.initialInputValues.set(i,e)})}initializeComponent(i){const e=gs.create({providers:[],parent:this.injector}),n=function QI(t,i){const e=t.childNodes,n=i.map(()=>[]);let r=-1;i.some((o,s)=>"*"===o&&(r=s,!0));for(let o=0,s=e.length;o<s;++o){const u=e[o],v=YI(u,i,r);-1!==v&&n[v].push(u)}return n}(i,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,n,i),this.viewChangeDetectorRef=this.componentRef.injector.get(Gl),this.implementsOnChanges=function UI(t){return"function"==typeof t}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Xf).attachView(this.componentRef.hostView)}
3initializeInputs(){this.componentFactory.inputs.forEach(({propName:i})=>{this.initialInputValues.has(i)&&this.setInputValue(i,this.initialInputValues.get(i))}),this.initialInputValues.clear()}initializeOutputs(i){const e=this.componentFactory.outputs.map(({propName:n,templateName:r})=>i.instance[n].pipe(Xe(s=>({name:r,value:s}))));this.eventEmitters.next(e)}callNgOnChanges(i){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,i.instance.ngOnChanges(e)}markViewForCheck(i){this.hasInputChanges&&(this.hasInputChanges=!1,i.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Ip.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(i,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const n=this.inputChanges[i];if(n)return void(n.currentValue=e);const r=this.unchangedInputs.has(i),o=r?void 0:this.getInputValue(i);this.inputChanges[i]=new Fs(o,e,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(i){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(i):i()}}class tx extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function dn(t,i){const e=function ZI(t,i){return i.get(md).resolveComponentFactory(t).inputs}(t,i.injector),n=i.strategyFactory||new XI(t,i.injector),r=function JI(t){const i={};return t.forEach(({propName:e,templateName:n})=>{i[function qI(t){return t.replace(/[A-Z]/g,i=>`-${i.toLowerCase()}`)}(n)]=e}),i}(e);class o extends tx{get ngElementStrategy(){if(!this._ngElementStrategy){const u=this._ngElementStrategy=n.create(this.injector||i.injector);e.forEach(({propName:v})=>{if(!this.hasOwnProperty(v))return;const w=this[v];delete this[v],u.setInputValue(v,w)})}return this._ngElementStrategy}constructor(u){super(),this.injector=u}attributeChangedCallback(u,v,w,P){this.ngElementStrategy.setInputValue(r[u],w)}connectedCallback(){let u=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),u=!0),this.ngElementStrategy.connect(this),u||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(u=>{const v=new CustomEvent(u.name,{detail:u.value});this.dispatchEvent(v)})}}return o.observedAttributes=Object.keys(r),e.forEach(({propName:s})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(u){this.ngElementStrategy.setInputValue(s,u)},configurable:!0,enumerable:!0})}),o}function tC(...t){if(1===t.length){const i=t[0];if(vn(i))return xp(i,null);if(Dt(i)&&Object.getPrototypeOf(i)===Object.prototype){const e=Object.keys(i);return xp(e.map(n=>i[n]),e)}}if("function"==typeof t[t.length-1]){const i=t.pop();return xp(t=1===t.length&&vn(t[0])?t[0]:t,null).pipe(Xe(e=>i(...e)))}return xp(t,null)}function xp(t,i){return new Se(e=>{const n=t.length;if(0===n)return void e.complete();const r=new Array(n);let o=0,s=0;for(let u=0;u<n;u++){const v=_l(t[u]);let w=!1;e.add(v.subscribe({next:P=>{w||(w=!0,s++),r[u]=P},error:P=>e.error(P),complete:()=>{o++,(o===n||!w)&&(s===n&&e.next(i?i.reduce((P,F,R)=>(P[F]=r[R],P),{}):r),e.complete())}}))}})}let nC=(()=>{class t{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)($(ps),$(To))},t.\u0275dir=Ft({type:t}),t})(),Fu=(()=>{class t extends nC{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Rr(t)))(n||t)}}(),t.\u0275dir=Ft({type:t,features:[Fi]}),t})();const Ha=new _n("NgValueAccessor"),nx={provide:Ha,useExisting:gi(()=>um),multi:!0};let um=(()=>{class t extends Fu{writeValue(e){this.setProperty("checked",e)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Rr(t)))(n||t)}}(),t.\u0275dir=Ft({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,n){1&e&&J("change",function(o){return n.onChange(o.target.checked)})("blur",function(){return n.onTouched()})},features:[ir([nx]),Fi]}),t})();const ix={provide:Ha,useExisting:gi(()=>mr),multi:!0},ox=new _n("CompositionEventMode");let mr=(()=>{class t extends nC{constructor(e,n,r){super(e,n),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function rx(){const t=Lu()?Lu().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)($(ps),$(To),$(ox,8))},t.\u0275dir=Ft({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,n){1&e&&J("input",function(o){return n._handleInput(o.target.value)})("blur",function(){return n.onTouched()})("compositionstart",function(){return n._compositionStart()})("compositionend",function(o){return n._compositionEnd(o.target.value)})},features:[ir([ix]),Fi]}),t})();const sx=!1;function wd(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function iC(t){return null!=t&&"number"==typeof t.length}const Jo=new _n("NgValidators"),Id=new _n("NgAsyncValidators"),ax=/^(?=.{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])?)*$/;class oe{static min(i){return function rC(t){return i=>{if(wd(i.value)||wd(t))return null;const e=parseFloat(i.value);return!isNaN(e)&&e<t?{min:{min:t,actual:i.value}}:null}}(i)}static max(i){return function oC(t){return i=>{if(wd(i.value)||wd(t))return null;const e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}(i)}static required(i){return function sC(t){return wd(t.value)?{required:!0}:null}(i)}static requiredTrue(i){return function aC(t){return!0===t.value?null:{required:!0}}(i)}static email(i){return function lC(t){return wd(t.value)||ax.test(t.value)?null:{email:!0}}(i)}static minLength(i){return cC(i)}static maxLength(i){return dC(i)}static pattern(i){return function uC(t){if(!t)return Dp;let i,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),i=new RegExp(e)):(e=t.toString(),i=t),n=>
3{if(wd(n.value))return null;const r=n.value;return i.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(i)}static nullValidator(i){return null}static compose(i){return vC(i)}static composeAsync(i){return _C(i)}}function cC(t){return i=>wd(i.value)||!iC(i.value)?null:i.value.length<t?{minlength:{requiredLength:t,actualLength:i.value.length}}:null}function dC(t){return i=>iC(i.value)&&i.value.length>t?{maxlength:{requiredLength:t,actualLength:i.value.length}}:null}function Dp(t){return null}function hC(t){return null!=t}function mC(t){const i=Bf(t)?_l(t):t;if(sx&&!C_(i)){let e="Expected async validator to return Promise or Observable.";throw"object"==typeof t&&(e+=" Are you using a synchronous validator where an async validator is expected?"),new Qt(-1101,e)}return i}function fC(t){let i={};return t.forEach(e=>{i=null!=e?{...i,...e}:i}),0===Object.keys(i).length?null:i}function pC(t,i){return i.map(e=>e(t))}function gC(t){return t.map(i=>function lx(t){return!t.validate}(i)?i:e=>i.validate(e))}function vC(t){if(!t)return null;const i=t.filter(hC);return 0==i.length?null:function(e){return fC(pC(e,i))}}function A0(t){return null!=t?vC(gC(t)):null}function _C(t){if(!t)return null;const i=t.filter(hC);return 0==i.length?null:function(e){return tC(pC(e,i).map(mC)).pipe(Xe(fC))}}function N0(t){return null!=t?_C(gC(t)):null}function CC(t,i){return null===t?[i]:Array.isArray(t)?[...t,i]:[t,i]}function yC(t){return t._rawValidators}function bC(t){return t._rawAsyncValidators}function O0(t){return t?Array.isArray(t)?t:[t]:[]}function Pp(t,i){return Array.isArray(t)?t.includes(i):t===i}function SC(t,i){const e=O0(i);return O0(t).forEach(r=>{Pp(e,r)||e.push(r)}),e}function wC(t,i){return O0(i).filter(e=>!Pp(t,e))}class IC{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=A0(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=N0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i){this.control&&this.control.reset(i)}hasError(i,e){return!!this.control&&this.control.hasError(i,e)}getError(i,e){return this.control?this.control.getError(i,e):null}}class ys extends IC{get formDirective(){return null}get path(){return null}}class Tc extends IC{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class xC{constructor(i){this._cd=i}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let fr=(()=>{class t extends xC{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)($(Tc,2))},t.\u0275dir=Ft({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,n){2&e&&vs("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)},features:[Fi]}),t})(),Ur=(()=>{class t extends xC{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)($(ys,10))},t.\u0275dir=Ft({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,n){2&e&&vs("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)("ng-submitted",n.isSubmitted)},features:[Fi]}),t})();function DC(t,i){return t?`with name: '${i}'`:`at index: ${i}`}
3const j0=!1,hm="VALID",Ep="INVALID",Hh="PENDING",mm="DISABLED";function V0(t){return(Lp(t)?t.validators:t)||null}function H0(t,i){return(Lp(i)?i.asyncValidators:t)||null}function Lp(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function PC(t,i,e){const n=t.controls;if(!(i?Object.keys(n):n).length)throw new Qt(1e3,j0?function hx(t){return`\n There are no form controls registered with this ${t?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(i):"");if(!n[e])throw new Qt(1001,j0?function mx(t,i){return`Cannot find form control ${DC(t,i)}`}(i,e):"")}function TC(t,i,e){t._forEachChild((n,r)=>{if(void 0===e[r])throw new Qt(1002,j0?function fx(t,i){return`Must supply a value for form control ${DC(t,i)}`}(i,r):"")})}class kp{constructor(i,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get valid(){return this.status===hm}get invalid(){return this.status===Ep}get pending(){return this.status==Hh}get disabled(){return this.status===mm}get enabled(){return this.status!==mm}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(SC(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(SC(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(wC(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(wC(i,this._rawAsyncValidators))}hasValidator(i){return Pp(this._rawValidators,i)}hasAsyncValidator(i){return Pp(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){this.touched=!0,this._parent&&!i.onlySelf&&this._parent.markAsTouched(i)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(i=>i.markAllAsTouched())}markAsUntouched(i={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}markAsDirty(i={}){this.pristine=!1,this._parent&&!i.onlySelf&&this._parent.markAsDirty(i)}markAsPristine(i={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}markAsPending(i={}){this.status=Hh,!1!==i.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!i.onlySelf&&this._parent.markAsPending(i)}disable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=mm,this.errors=null,this._forEachChild(n=>{n.disable({...i,onlySelf:!0})}),this._updateValue(),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...i,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!0))}enable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=hm,this._forEachChild(n=>{n.enable({...i,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors({...i,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===hm||this.status===Hh)&&this._runAsyncValidator(i.emitEvent)),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(i)}_updateTreeValidity(i={emitEvent:!0}
3){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?mm:hm}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i){if(this.asyncValidator){this.status=Hh,this._hasOwnPendingAsyncValidator=!0;const e=mC(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:i})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(!1!==e.emitEvent)}get(i){let e=i;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((n,r)=>n&&n._find(r),this)}getError(i,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(i)}_initObservables(){this.valueChanges=new pi,this.statusChanges=new pi}_calculateStatus(){return this._allControlsDisabled()?mm:this.errors?Ep:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Hh)?Hh:this._anyControlsHaveStatus(Ep)?Ep:hm}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i={}){this.pristine=!this._anyControlsDirty(),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}_updateTouched(i={}){this.touched=this._anyControlsTouched(),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Lp(i)&&null!=i.updateOn&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=function px(t){return Array.isArray(t)?A0(t):t||null}(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=function gx(t){return Array.isArray(t)?N0(t):t||null}(this._rawAsyncValidators)}}class fm extends kp{constructor(i,e,n){super(V0(e),H0(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}
vendor: 4,428 bytes, line 3
3){TC(this,!0,i),Object.keys(i).forEach(n=>{PC(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(Object.keys(i).forEach(n=>{const r=this.controls[n];r&&r.patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,r)=>{n.reset(i[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>!!n._syncPendingControls()||e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(const[e,n]of Object.entries(this.controls))if(this.contains(e)&&i(n))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(i,e){let n=i;return this._forEachChild((r,o)=>{n=e(n,r,o)}),n}_allControlsDisabled(){for(const i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}}class EC extends fm{}const Au=new _n("CallSetDisabledState",{providedIn:"root",factory:()=>pm}),pm="always";function Mp(t,i){return[...i.path,t]}function gm(t,i,e=pm){z0(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&i.valueAccessor.setDisabledState?.(t.disabled),function _x(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&LC(t,i)})}(t,i),function yx(t,i){const e=(n,r)=>{i.valueAccessor.writeValue(n),r&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,i),function Cx(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&LC(t,i),"submit"!==t.updateOn&&t.markAsTouched()})}(t,i),function vx(t,i){if(i.valueAccessor.setDisabledState){const e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,i)}function Fp(t,i,e=!0){const n=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(n),i.valueAccessor.registerOnTouched(n)),Np(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Ap(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function z0(t,i){const e=yC(t);null!==i.validator?t.setValidators(CC(e,i.validator)):"function"==typeof e&&t.setValidators([e]);const n=bC(t);null!==i.asyncValidator?t.setAsyncValidators(CC(n,i.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const r=()=>t.updateValueAndValidity();Ap(i._rawValidators,r),Ap(i._rawAsyncValidators,r)}function Np(t,i){let e=!1;if(null!==t){if(null!==i.validator){const r=yC(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==i.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(null!==i.asyncValidator){const r=bC(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==i.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}const n=()=>{};return Ap(i._rawValidators,n),Ap(i._rawAsyncValidators,n),e}function LC(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function $0(t,i){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(i,e.currentValue)}function U0(t,i){if(!i)return null;let e,n,r;return Array.isArray(i),i.forEach(o=>{o.constructor===mr?e=o:function wx(t){return Object.getPrototypeOf(t.constructor)===Fu}(o)?n=o:r=o}),r||n||e||null}function FC(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}function AC(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const _m=class extends kp{constructor(i=null,e,n){super(V0(e),H0(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(i),this._setUpdateStrategy(e),this._initOb
3servables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Lp(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=AC(i)?i.value:i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){FC(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){FC(this._onDisabledChange,i)}_forEachChild(i){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(i){AC(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}},Tx={provide:Tc,useExisting:gi(()=>zh)},RC=(()=>Promise.resolve())();let zh=(()=>{class t extends Tc{constructor(e,n,r,o,s,u){super(),this._changeDetectorRef=s,this.callSetDisabledState=u,this.control=new _m,this._registered=!1,this.update=new pi,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=U0(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),$0(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){gm(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){RC.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const n=e.isDisabled.currentValue,r=0!==n&&function Xg(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}(n);RC.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Mp(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)($(ys,9),$(Jo,10),$(Id,10),$(Ha,10),$(Gl,8),$(Au,8))},t.\u0275dir=Ft({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:[ir([Tx]),Fi,br]}),t})(),Gr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ft({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const Ex={provide:Ha,useExisting:gi(()=>Op),multi:!0};let Op=(()=>{class t extends Fu{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=n=>{e(""==n?null:parseFloat(n))}}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Rr(t)))(n||t)}}(),t.\u0275dir=Ft({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,n){1&e&&J("input",function(o){return n.onChange(o.target.value)})("blur",function(){return n.onTouched()})},features:[ir([Ex]),Fi]}),t})(),BC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=uo({type:t}),t.\u0275inj=Mo({}),t})();const W0=new _n("NgModelWithFormControlWarning"),Ax={provide:ys,useExisting:gi(()=>Ir)};let Ir=(()=>{class t extends ys{constructor(e,n,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new pi,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateV
3alidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Np(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const n=this.form.get(e.path);return gm(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){Fp(e.control||null,e,!1),function Ix(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,n){this.form.get(e.path).setValue(n)}onSubmit(e){return this.submitted=!0,function MC(t,i){t._syncPendingControls(),i.forEach(e=>{const n=e.control;"submit"===n.updateOn&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const n=e.control,r=this.form.get(e.path);n!==r&&(Fp(n||null,e),(t=>t instanceof _m)(r)&&(gm(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const n=this.form.get(e.path);(function kC(t,i){z0(t,i)})(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const n=this.form.get(e.path);n&&function bx(t,i){return Np(t,i)}(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){z0(this.form,this),this._oldForm&&Np(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)($(Jo,10),$(Id,10),$(Au,8))},t.\u0275dir=Ft({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,n){1&e&&J("submit",function(o){return n.onSubmit(o)})("reset",function(){return n.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ir([Ax]),Fi,br]}),t})();const Rx={provide:Tc,useExisting:gi(()=>Mr)};let Mr=(()=>{class t extends Tc{set isDisabled(e){}constructor(e,n,r,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new pi,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=U0(0,o)}ngOnChanges(e){this._added||this._setUpControl(),$0(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Mp(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)($(ys,13),$(Jo,10),$(Id,10),$(Ha,10),$(W0,8))},t.\u0275dir=Ft({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[ir([Rx]),Fi,br]}),t})();const Bx={provide:Ha,useExisting:gi(()=>ma),multi:!0};function qC(t,i){return null==t?`${i}`:(i&&"object"==typeof i&&(i="Object"),`${t}: ${i}`.slice(0,50))}let ma=(()=>{class t extends Fu{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const r=qC(this._getOptionId(e),e);this.setProperty("value",r)}registerOnChange(e){this.onChange=n=>{this.value=this._getOptionValue(n),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const n of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(n),e))return n;return null}_getOptionValue(e){const n=function jx(t){return t.split(":")[0]}(e);return this._optionMap.has(n)?this._optionMap.get(n):e}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Rr(t)))(n||t)}}(),t.\u0275dir=Ft({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,n){1&e&&J("change",function(o){return n.onChange(o.target.value)})("blur",function(){return n.onTouched()})},inputs:{compareWith:"compareWith"},features:[ir([Bx]),Fi]}),t})(),Ws=(()=>{class t{constructor(e,n,r){this._element=e,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(qC(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id
3),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)($(To),$(ps),$(ma,9))},t.\u0275dir=Ft({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const Vx={provide:Ha,useExisting:gi(()=>Q0),multi:!0};function $C(t,i){return null==t?`${i}`:("string"==typeof i&&(i=`'${i}'`),i&&"object"==typeof i&&(i="Object"),`${t}: ${i}`.slice(0,50))}let Q0=(()=>{class t extends Fu{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let n;if(this.value=e,Array.isArray(e)){const r=e.map(o=>this._getOptionId(o));n=(o,s)=>{o._setSelected(r.indexOf(s.toString())>-1)}}else n=(r,o)=>{r._setSelected(!1)};this._optionMap.forEach(n)}registerOnChange(e){this.onChange=n=>{const r=[],o=n.selectedOptions;if(void 0!==o){const s=o;for(let u=0;u<s.length;u++){const w=this._getOptionValue(s[u].value);r.push(w)}}else{const s=n.options;for(let u=0;u<s.length;u++){const v=s[u];if(v.selected){const w=this._getOptionValue(v.value);r.push(w)}}}this.value=r,e(r)}}_registerOption(e){const n=(this._idCounter++).toString();return this._optionMap.set(n,e),n}_getOptionId(e){for(const n of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(n)._value,e))return n;return null}_getOptionValue(e){const n=function Hx(t){return t.split(":")[0]}(e);return this._optionMap.has(n)?this._optionMap.get(n)._value:e}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Rr(t)))(n||t)}}(),t.\u0275dir=Ft({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,n){1&e&&J("change",function(o){return n.onChange(o.target)})("blur",function(){return n.onTouched()})},inputs:{compareWith:"compareWith"},features:[ir([Vx]),Fi]}),t})(),Js=(()=>{class t{constructor(e,n,r){this._element=e,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue($C(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue($C(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)($(To),$(ps),$(Q0,9))},t.\u0275dir=Ft({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function UC(t){return"number"==typeof t?t:parseInt(t,10)}let Nu=(()=>{class t{constructor(){this._validator=Dp}ngOnChanges(e){if(this.inputName in e){const n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):Dp,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ft({type:t,features:[br]}),t})();const Wx={provide:Jo,useExisting:gi(()=>Rp),multi:!0};let Rp=(()=>{class t extends Nu{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=e=>UC(e),this.createValidator=e=>cC(e)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Rr(t)))(n||t)}}(),t.\u0275dir=Ft({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&ii("minlength",n._enabled?n.minlength:null)},inputs:{minlength:"minlength"},features:[ir([Wx]),Fi]}),t})();const Jx={provide:Jo,useExisting:gi(()=>Zo),multi:!0};let Zo=(()=>{class t extends Nu{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>UC(e),this.createValidator=e=>dC(e)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Rr(t)))(n||t)}}(),t.\u0275dir=Ft({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&ii("maxlength",n._enabled?n.maxlength:null)},inputs:{maxlength:"maxlength"},features:[ir([Jx]),Fi]}),t})(),KC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=uo({type:t}),t.\u0275inj=Mo({imports:[BC]}),t})();
3class XC extends kp{constructor(i,e,n){super(V0(e),H0(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(i){return this.controls[this._adjustIndex(i)]}push(i,e={}){this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(i,e,n={}){this.controls.splice(i,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(i,e={}){let n=this._adjustIndex(i);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(i,e,n={}){let r=this._adjustIndex(i);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(i,e={}
3){TC(this,!1,i),i.forEach((n,r)=>{PC(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(i.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i=[],e={}){this._forEachChild((n,r)=>{n.reset(i[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(i=>i.getRawValue())}clear(i={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_adjustIndex(i){return i<0?i+this.length:i}_syncPendingControls(){let i=this.controls.reduce((e,n)=>!!n._syncPendingControls()||e,!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((e,n)=>{i(e,n)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return this.controls.some(e=>e.enabled&&i(e))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(const i of this.controls)if(i.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}_find(i){return this.at(i)??null}}function ey(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let ty=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,n=null){const r=this._reduceControls(e);let o={};return ey(n)?o=n:null!==n&&(o.validators=n.validator,o.asyncValidators=n.asyncValidator),new fm(r,o)}record(e,n=null){const r=this._reduceControls(e);return new EC(r,n)}control(e,n,r){let o={};return this.useNonNullable?(ey(n)?o=n:(o.validators=n,o.asyncValidators=r),new _m(e,{...o,nonNullable:!0})):new _m(e,n,r)}array(e,n,r){const o=e.map(s=>this._createControl(s));return new XC(o,n,r)}_reduceControls(e){const n={};return Object.keys(e).forEach(r=>{n[r]=this._createControl(e[r])}),n}_createControl(e){return e instanceof _m||e instanceof kp?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ao=(()=>{class t extends ty{group(e,n=null){return super.group(e,n)}control(e,n,r){return super.control(e,n,r)}array(e,n,r){return super.array(e,n,r)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Rr(t)))(n||t)}}(),t.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ny=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Au,useValue:e.callSetDisabledState??pm}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=uo({type:t}),t.\u0275inj=Mo({imports:[KC]}),t})(),iy=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:W0,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Au,useValue:e.callSetDisabledState??pm}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=uo({type:t}),t.\u0275inj=Mo({imports:[KC]}),t})();class Qx extends Lt{constructor(){super(...arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}_subscribe(i){return this.hasError?(i.error(this.thrownError),vt.EMPTY):this.hasCompleted&&this.hasNext?(i.next(this.value),i.complete(),vt.EMPTY):super._subscribe(i)}next(i){this.hasCompleted||(this.value=i,this.hasNext=!0)}error(i){this.hasCompleted||super.error(i)}complete(){this.hasCompleted=!0,this.hasNext&&super.next(this.value),super.complete()}}class ry{constructor(){}loadScript(i,e,n,r=null){if(typeof document<"u"&&!document.getElementById(i)){let o=document.createElement("script");o.async=!0,o.src=e,o.onload=n,r||(r=document.head),r.appendChild(o)}}}class Bp{}let jp=(()=>{class t extends ry{constructor(e,n={scope:"email"}){super(),this.clientId=e,this.initOptions=n}
3initialize(){return new Promise((e,n)=>{try{this.loadScript(t.PROVIDER_ID,"https://apis.google.com/js/api.js",()=>{gapi.load("client:auth2",()=>{gapi.client.init(Object.assign(Object.assign({},this.initOptions),{client_id:this.clientId})).then(()=>{this.auth2=gapi.auth2.getAuthInstance(),e()}).catch(r=>{n(r)})})})}catch(r){n(r)}})}getLoginStatus(e){const n=Object.assign(Object.assign({},this.initOptions),e);return new Promise((r,o)=>{if(this.auth2.isSignedIn.get()){const s=new Bp,u=this.auth2.currentUser.get().getBasicProfile(),v=this.auth2.currentUser.get().getAuthResponse(!0);this.setUserProfile(s,u),s.response=v;const w=P=>{s.authToken=P.access_token,s.idToken=P.id_token,r(s)};n.refreshToken?this.auth2.currentUser.get().reloadAuthResponse().then(w):w(v)}else o(`No user is currently logged in with ${t.PROVIDER_ID}`)})}signIn(e){const n=Object.assign(Object.assign({},this.initOptions),e);return new Promise((r,o)=>{(n&&n.offline_access?this.auth2.grantOfflineAccess(e):this.auth2.signIn(e)).then(v=>{const w=new Bp;if(v&&v.code)w.authorizationCode=v.code;else{const P=this.auth2.currentUser.get().getBasicProfile(),F=this.auth2.currentUser.get().getAuthResponse(!0),R=F.access_token,V=F.id_token;this.setUserProfile(w,P),w.authToken=R,w.idToken=V,w.response=F}r(w)},v=>{o(v)}).catch(v=>{o(v)})})}signOut(e){return new Promise((n,r)=>{let o;o=e?this.auth2.disconnect():this.auth2.signOut(),o.then(s=>{s?r(s):n()}).catch(s=>{r(s)})})}setUserProfile(e,n){e.id=n.getId(),e.name=n.getName(),e.email=n.getEmail(),e.photoUrl=n.getImageUrl(),e.firstName=n.getGivenName(),e.lastName=n.getFamilyName()}}return t.PROVIDER_ID="GOOGLE",t})(),K0=(()=>{class t{constructor(e){this.providers=new Map,this.autoLogin=!1,this._user=null,this._authState=new eC(1),this.initialized=!1,this._initState=new Qx,e instanceof Promise?e.then(n=>{this.initialize(n)}):this.initialize(e)}get authState(){return this._authState.asObservable()}get initState(){return this._initState.asObservable()}initialize(e){this.autoLogin=void 0!==e.autoLogin&&e.autoLogin;const{onError:n=console.error}=e;e.providers.forEach(r=>{this.providers.set(r.id,r.provider)}),Promise.all(Array.from(this.providers.values()).map(r=>r.initialize())).then(()=>{if(this.autoLogin){const r=[];let o=!1;this.providers.forEach((s,u)=>{let v=s.getLoginStatus();r.push(v),v.then(w=>{w.provider=u,this._user=w,this._authState.next(w),o=!0}).catch(console.debug)}),Promise.all(r).catch(()=>{o||(this._user=null,this._authState.next(null))})}}).catch(r=>{n(r)}).finally(()=>{this.initialized=!0,this._initState.next(this.initialized),this._initState.complete()})}refreshAuthToken(e){return new Promise((n,r)=>{if(this.initialized)if(e!==jp.PROVIDER_ID)r(t.ERR_NOT_SUPPORTED_FOR_REFRESH_TOKEN);else{const o=this.providers.get(e);o?o.getLoginStatus({refreshToken:!0}).then(s=>{s.provider=e,this._user=s,this._authState.next(s),n()}).catch(s=>{r(s)}):r(t.ERR_LOGIN_PROVIDER_NOT_FOUND)}else r(t.ERR_NOT_INITIALIZED)})}signIn(e,n){return new Promise((r,o)=>{if(this.initialized){let s=this.providers.get(e);
3s?s.signIn(n).then(u=>{u.provider=e,r(u),this._user=u,this._authState.next(u)}).catch(u=>{o(u)}):o(t.ERR_LOGIN_PROVIDER_NOT_FOUND)}else o(t.ERR_NOT_INITIALIZED)})}signOut(e=!1){return new Promise((n,r)=>{if(this.initialized)if(this._user){let s=this.providers.get(this._user.provider);s?s.signOut(e).then(()=>{n(),this._user=null,this._authState.next(null)}).catch(u=>{r(u)}):r(t.ERR_LOGIN_PROVIDER_NOT_FOUND)}else r(t.ERR_NOT_LOGGED_IN);else r(t.ERR_NOT_INITIALIZED)})}}return t.ERR_LOGIN_PROVIDER_NOT_FOUND="Login provider not found",t.ERR_NOT_LOGGED_IN="Not logged in",t.ERR_NOT_INITIALIZED="Login providers not ready yet. Are there errors on your console?",t.ERR_NOT_SUPPORTED_FOR_REFRESH_TOKEN="Chosen login provider is not supported for refreshing a token",t.\u0275fac=function(e){return new(e||t)(Mt("SocialAuthServiceConfig"))},t.\u0275prov=sn({token:t,factory:t.\u0275fac}),t})(),Yx=(()=>{class t{constructor(e){if(e)throw new Error("SocialLoginModule is already loaded. Import it in the AppModule only")}static initialize(e){return{ngModule:t,providers:[K0,{provide:"SocialAuthServiceConfig",useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(Mt(t,12))},t.\u0275mod=uo({type:t}),t.\u0275inj=Mo({providers:[K0],imports:[[om]]}),t})(),X0=(()=>{class t extends ry{constructor(e,n={}){super(),this.clientId=e,this.requestOptions={scope:"email,public_profile",locale:"en_US",fields:"name,email,picture,first_name,last_name",version:"v10.0"},this.requestOptions=Object.assign(Object.assign({},this.requestOptions),n)}initialize(){return new Promise((e,n)=>{try{this.loadScript(t.PROVIDER_ID,`//connect.facebook.net/${this.requestOptions.locale}/sdk.js`,()=>{FB.init({appId:this.clientId,autoLogAppEvents:!0,cookie:!0,xfbml:!0,version:this.requestOptions.version}),e()})}catch(r){n(r)}})}getLoginStatus(){return new Promise((e,n)=>{FB.getLoginStatus(r=>{if("connected"===r.status){let o=r.authResponse;FB.api(`/me?fields=${this.requestOptions.fields}`,s=>{let u=new Bp;u.id=s.id,u.name=s.name,u.email=s.email,u.photoUrl="https://graph.facebook.com/"+s.id+"/picture?type=normal&access_token="+o.accessToken,u.firstName=s.first_name,u.lastName=s.last_name,u.authToken=o.accessToken,u.response=s,e(u)})}else n(`No user is currently logged in with ${t.PROVIDER_ID}`)})})}signIn(e){const n=Object.assign(Object.assign({},this.requestOptions),e);return new Promise((r,o)=>{FB.login(s=>{if(s.authResponse){let u=s.authResponse;FB.api(`/me?fields=${n.fields}`,v=>{let w=new Bp;w.id=v.id,w.name=v.name,w.email=v.email,w.photoUrl="https://graph.facebook.com/"+v.id+"/picture?type=normal",w.firstName=v.first_name,w.lastName=v.last_name,w.authToken=u.accessToken,w.response=v,r(w)})}else o("User cancelled login or did not fully authorize.")},n)})}signOut(){return new Promise((e,n)=>{FB.logout(r=>{e()})})}}return t.PROVIDER_ID="FACEBOOK",t})();class Ai extends Lt{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){const e=super._subscribe(i);return e&&!e.closed&&i.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new pt;return this._value}next(i){super.next(this._value=i)}}let yn=(()=>{class t{constructor(){this.categoriasSource=new Ai(null),this.currentCategorias$=this.categoriasSource.asObservable(),this.companySource=new Ai(null),this.currentCompany$=this.companySource.asObservable(),this.b2bSource=new Ai(null),this.authorizedB2B$=this.b2bSource.asObservable(),this.userLoggedSource=new Ai(null),this.userLogged$=this.userLoggedSource.asObservable(),this.socialNetworkSource=new Ai(null),this.socialNetwork$=this.socialNetworkSource.asObservable(),this.eventListSource=new Ai(null),this.eventList$=this.eventListSource.asObservable(),this.cartSource=new Ai(null),this.cart$=this.cartSource.asObservable(),this.multiCdEventsSource=new Ai(null),this.multiCdEvents$=this.multiCdEventsSource.asObservable(),this.internationalSource=new Ai(null),this.international$=this.internationalSource.asObservable()}changeValueCategoria(e){this.categoriasSource.next(e)}changeValueCompany(e){this.companySource.next(e)}changeValueB2B(e){this.b2bSource.next(e)}changeValueUser(e){this.userLoggedSource.next(e)}changeValueSocial(e){this.socialNetworkSource.next(e)}changeValueEventList(e){this.eventListSource.next(e)}changeValueCart(e){this.cartSource.next(e)}changeValueMultiCdEvents(e){this.multiCdEventsSource.next(e)}changeValueInternational(e){this.internationalSource.next(e)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Vp=new Pc(Y4),Kx=(()=>{function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t})();
3class tD{constructor(i,e,n,r){this.waitFor=i,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=r}call(i,e){return e.subscribe(new ev(i,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class ev extends Qh{constructor(i,e,n,r,o){super(i),this.absoluteTimeout=e,this.waitFor=n,this.withObservable=r,this.scheduler=o,this.scheduleTimeout()}static dispatchTimeout(i){const{withObservable:e}=i;i._unsubscribeAndRecycle(),i.add(Ed(e,new zu(i)))}scheduleTimeout(){const{action:i}=this;i?this.action=i.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(ev.dispatchTimeout,this.waitFor,this))}_next(i){this.absoluteTimeout||this.scheduleTimeout(),super._next(i)}_unsubscribe(){this.action=void 0,this.scheduler=null,this.withObservable=null}}function oy(t,i=Vp){return function eD(t,i,e=Vp){return n=>{let r=function Xx(t){return t instanceof Date&&!isNaN(+t)}(t),o=r?+t-e.now():Math.abs(t);return n.lift(new tD(o,r,i,e))}}(t,k0(new Kx),i)}let qt=(()=>{class t{constructor(e,n,r,o,s){this.http=e,this.titleService=n,this.metaService=r,this.sharedDataCommomService=o,this.dom=s,this._isProcessing=new Lt,this.isProcessing$=this._isProcessing.asObservable(),this.BLACKLIST=["00000000000","11111111111","22222222222","33333333333","44444444444","55555555555","66666666666","77777777777","88888888888","99999999999","12345678909","00000000000000","11111111111111","22222222222222","33333333333333","44444444444444","55555555555555","66666666666666","77777777777777","88888888888888","99999999999999"]}finishLoadComponent(e,n){setTimeout(()=>{var r=new CustomEvent(e,n);document.dispatchEvent(r)},this.isDevice?500:300)}getValidSession(e=!1){return this.http.post("/api/verifySession",{request:"e732b7e8-5bd8-48b7-a44b-49e63fba75b4/e735501a-5fe4-4a7d-96c7-6713ed4b0b02",json:{isFake:e}})}getUniqueCartCookie(){return this.http.post("/api/getUniqueCartCookie",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/4de32d4b-9fe5-49c0-aea4-a33455c72f2c",json:null})}getGiftCookie(){return this.http.post("/api/getGiftCookie",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/126e3aaf-f920-46e7-9c2f-43d861870e0b",json:null})}getGiftCookieByModal(){return this.http.post("/api/getGiftCookieByModal",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/8067512a-0d34-47a0-bd48-a61183809f8a",json:null})}getZipCodeTax(){return this.http.post("/api/getZipCodeTax",{request:"22b8f1ab-bf07-448b-9e89-7678ac9b0bac/8be8feb6-e140-42bc-a323-7a62e4c5feae",json:null})}getRits(){return this.http.post("/api",{request:"674e7d84-5f1e-48f3-b059-0e284bea1c0a/994427d2-dc0e-448b-997f-a14abb92406d",json:null})}setZipCodeTax(e){return this.http.post("/api/setZipCodeTax",{zipCodeTax:e})}getInstallmentsOfflineByValue(e,n){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/793351a4-a34f-4056-9339-c6c9753c7785",params:`?value=${e}&idPaymentBrand=${n}`,json:null})}displayMessageUser(e,n,r,o=!0,s=5e3){document.getElementById("jet-alert").classList.remove("close"),document.getElementById("jet-alert").classList.remove("success"),document.getElementById("jet-alert").classList.remove("error"),document.getElementById("jet-alert").classList.remove("info"),document.getElementById("jet-alert").classList.remove("hidden"),document.getElementById("jet-alert").classList.remove("confirm"),document.getElementById("jet-alert").classList.remove("warning"),document.getElementById("jet-alert-description").innerHTML="",null!=document.getElementById("jet-alert")&&(document.getElementById("jet-alert-title").innerHTML=n,null!=r&&r.length>0&&(document.getElementById("jet-alert-description").innerHTML=r),document.getElementById("jet-alert").classList.add(e),o&&setTimeout(()=>{document.getElementById("jet-alert").classList.add("close"),document.getElementById("jet-alert").classList.add("hidden")},s))}cepMaskEvent(e){let n=e.target.value;return n=n.replace(/\D/g,""),n=n.replace(/(\d{5})(\d)/,"$1-$2"),e.target.value=n,n}cepMask(e){let n=e;return n=n.replace(/\D/g,""),n=n.replace(/(\d{5})(\d)/,"$1-$2"),n}cepUnMask(e){return e.replaceAll(".","").replaceAll("-","")}priceEventMask(e,n=!1){let r=this.countryOnOrder??this.countryOnCookie;if(n){let o=this.priceUnMask(e.target.value);if(r){let s=o.replace(/\D/g,"");if(!s)return"";let u=Number(s)/100,w=new Intl.NumberFormat(r.currencyAcronym,{style:"decimal",currency:r.currency,minimumFractionDigits:2,maximumFractionDigits:2}).format(u);return e.target.value=w,w}return o=parseInt(o.replace(/[\D]+/g,"")),o+="",o=o.replace(/([0-9]{2})$/g,",$1"),o.length>6&&(o=o.replace(/([0-9]{3}),([0-9]{2}$)/g,".$1,$2")),"NaN"==o&&(o=""),e.target.value=o,o}{let o=this.priceUnMask(e.target.value);return o=r?new Intl.NumberFormat(r.currencyAcronym,{style:"currency",currency:r.currency,minimumFractionDigits:2,maximumFractionDigits:2}
3).format(o):new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(Number(o)).replace(/\u00A0/," "),e.target.value=o,o}}priceMask(e,n=null,r=!0){null==e&&(e=0);let o=n??this.countryOnOrder??this.countryOnCookie,s=new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(Number(e)).replace(/\u00A0/," ");if(o){let u=Number(e);r&&(u=Number(e)/o.currencyQuotation),s=new Intl.NumberFormat(o.currencyAcronym,{style:"currency",currency:o.currency,minimumFractionDigits:2,maximumFractionDigits:2}).format(u)}return s}priceUnMask(e){if(!e)return null;let n=e.replace(/[^0-9.,-]/g,"");if(!n)return null;const r=n.includes(","),o=n.includes(".");let s=null;if(r&&o?s=n.lastIndexOf(",")>n.lastIndexOf(".")?",":".":r?s=",":o&&(s="."),s){const u=n.split(s),v=u.slice(0,-1).join(""),w=u[u.length-1];n=v.replace(/[.,]/g,"")+"."+w}else n=n.replace(/[.,]/g,"");return n}clearField(e){return e.target.value="",""}validEmail(e){return!(!/^.+@.+\..{2,}$/.test(e)||e.match(/[\(\)\ \<\>\,\;\:\\\/\"\[\]]/))}phoneNumberMask(e){if(null==e||null==e)return;let n=String(e);return n=n.replace(/\+55/gi,""),n=n.replace(/\D/g,""),n=n.replace(/^0/,""),n=n.length>10?n.replace(/^(\d\d)(\d{5})(\d{4}).*/,"($1) $2-$3"):n.length>5?n.replace(/^(\d\d)(\d{4})(\d{0,4}).*/,"($1) $2-$3"):n.length>2?n.replace(/^(\d\d)(\d{0,5})/,"($1) $2"):n.replace(/^(\d*)/,"($1"),n}phoneNumberMaskEvent(e){var n=this.phoneNumberMask(e.target.value);return e.target.value=n,n}phoneNumberUnMask(e){if(null==e||null==e)return;let n=String(e);return n=n.replace(/\D/g,""),n=n.replace(/^0/,""),n}birthDateMask(e,n=!1){let r=e.target.value;if(null!=r&&null!=r)return r=r.replace(/[^0-9]/g,""),8!=e.keyCode&&(n?r.length<=5?r=r.replace(/(\d{4})/g,"$1/"):r.length<=7?r=r.replace(/(\d{4})(\d{2})/g,"$1/$2/"):r.length>=8&&(r=r.replace(/(\d{4})(\d{2})(\d{2})/g,"$1/$2/$3")):r.length<=3?r=r.replace(/(\d{2})/g,"$1/"):r.length<=6?r=r.replace(/(\d{2})(\d{2})/g,"$1/$2/"):r.length>=7&&(r=r.replace(/(\d{2})(\d{2})(\d{3,4})/g,"$1/$2/$3"))),r}dateMaxValid(e,n,r=!1){let v,o=new Date;if(!e)return e;let w=e.split("/");if(3===w.length){let R,V,ne;if(r?(ne=Number(w[0]),V=Number(w[1]),R=Number(w[2])):(R=Number(w[0]),V=Number(w[1]),ne=Number(w[2])),V<1||V>12||R<1||R>31)return n&&n.setErrors({incorrect:!0}),e;if(v=new Date(ne,V-1,R),v.getFullYear()!==ne||v.getMonth()!==V-1||v.getDate()!==R)return n&&n.setErrors({incorrect:!0}),e}let P=new Date(o.getFullYear()-100,o.getMonth(),o.getDate()),F=new Date(o.getFullYear()-10,o.getMonth(),o.getDate());return n&&n.setErrors(!v||v>F||v<P?{incorrect:!0}:null),e}validCPF(e,n){let r=this.stripCpf(e,n);if(!r||11!==r.length||this.BLACKLIST.indexOf(r)>=0)return!1;let o=r.substr(0,9);return o+=this.verifierDigitCpf(o),o+=this.verifierDigitCpf(o),o.substr(-2)===r.substr(-2)}verifierDigitCpf(e){let n=(e=e.split("").map(function(s){return parseInt(s,10)})).length+1,o=e.map(function(s,u){return s*(n-u)}).reduce(function(s,u){return s+u})%11;return o<2?0:11-o}stripCpf(e,n){let s=n?/[.-]/g:/[^\d]/g;return(e||"").toString().replace(s,"")}validCNPJ(e,n){const r=this.stripCnpj(e,n);if(!r||14!==r.length||!/^[A-Z0-9]{14}$/.test(r)||/^\d{14}$/.test(r)&&this.BLACKLIST.includes(r))return!1;let o=r.substring(0,12);return o+=this.verifierDigitCnpj(o),o+=this.verifierDigitCnpj(o),o.substring(12)===r.substring(12)}verifierDigitCnpj(e){let n=2;const s=e.split("").reverse().map(u=>this.getCharValue(u)).reduce((u,v)=>(u+=v*n,n++,n>9&&(n=2),u),0)%11;return s<2?0:11-s}getCharValue(e){return e>="0"&&e<="9"?Number(e):e.charCodeAt(0)-48}formatCnpj(e){if(e){let n=this.stripCnpj(e);if(14===n.length)return n.replace(/^(.{2})(.{3})(.{3})(.{4})(.{2})$/,"$1.$2.$3/$4-$5")}return e}formatCpf(e){if(e)return(e=(e=(e=e.replace(/\D/g,"")).replace(/(\d{3})(\d)/,"$1.$2")).replace(/(\d{3})(\d)/,"$1.$2")).replace(/(\d{3})(\d{1,2})$/,"$1-$2")}stripCnpj(e,n){const s=n?/[-\/\.\s]/g:/[^0-9A-Za-z]/g;return(e||"").toString().toUpperCase().replace(s,"")}getImageSize(e){var n=new Image;n.src=e,n.onload=()=>{this.metaService.addTags([{property:"og:image:width",content:n.width.toString()},{property:"og:image:height",content:n.height.toString()}])}}setMetaTagsDefault(e){window.location.href.indexOf("localhost"),this.createCanonicalURL();var r="index, follow",o=window.location.pathname.toLowerCase();("/404"===o||o.indexOf("/customer")>-1||o.indexOf("/checkout")>-1)&&(r="noindex, nofollow"),this.metaService.addTags([{name:"language",content:"pt-BR"},{name:"country",content:"BRA"},{name:"currency",content:"R$"},{name:"robots",content:r},{name:"viewport",content:"width=device-width, initial-scale=1, shrink-to-fit=no"},{name:"X-UA-Compatible",content:"IE=edge"},{name:"HandheldFriendly",content:"True"},{property:"og:type",content:"website"},{property:"og:url",content:window.location.href},{name:"twitter:url",content:window.location.href},{rel:"dns-prefetch",href:"https://www.googletagmanager.com"},{rel:"dns-prefetch",href:"https://www.google-analytics.com"},{rel:"dns-prefetch",href:"https://connect.facebook.net"}
3,{rel:"preconnect",href:"https://www.googletagmanager.com"},{rel:"preconnect",href:"https://www.google-analytics.com"},{rel:"preconnect",href:"https://connect.facebook.net"}])}setMetaTags(e,n,r,o){const s=new URL(window.location.href);let u=new URLSearchParams(s.search);u.get("pageNumber")&&Number(u.get("pageNumber"))>1&&(e=`${e} - P\xe1gina ${Number(u.get("pageNumber"))}`),this.titleService.setTitle(e),this.finishLoadComponent("onJetTitleLoaded")}createCanonicalURL(){const e=["n","viewList","pageNumber","pageSize","order","brand","catalog","category","group","keyWord","initialPrice","finalPrice","variations","idAttribute","idEventList","idCategories","idGroupingType","selectedFilter"],n=new URL(this.dom.location.href),r=new URLSearchParams;for(const[v,w]of n.searchParams.entries()){const P=e.find(F=>F.toLowerCase()===v.toLowerCase());P&&""!==w&&r.set(P,w)}const o=n.origin+n.pathname+(r.toString()?"?"+r.toString():""),s=this.dom.querySelector("link[rel='canonical']");s&&s.remove();const u=this.dom.createElement("link");u.setAttribute("rel","canonical"),u.setAttribute("href",o),this.dom.head.appendChild(u)}getTreeReference(e,n,r,o){var s=void 0,u=void 0;if(null!=e&&null!=n){var v=e.filter(w=>w.ordinationOfReferences==r)[0];null!=v&&(s=this.convertFromReference(v),v.variations.length>0&&(s.variations=[],v.variations.forEach(P=>{var F=void 0;if(1==r)o=[],F=n.filter(je=>je.variations.filter(at=>at.idVariation==P.idVariation).length>0);else if(r>1){o=o.filter(je=>je.ordem<r),F=n.filter(je=>je.variations.filter(at=>at.idVariation==P.idVariation).length>0);for(var R=r-1;R>0;){var V=o.filter(je=>je.ordem==R)[0];null!=V&&(F=F.filter(je=>je.variations.filter(at=>at.idVariation==V.idVariation).length>0)),R-=1}}if((F=F.filter(je=>1==je.visible)).length>0){var ne=this.convertFromVariation(P);if(null!=o&&o.length>0){let je=1;for(;je<r;){var De=o.filter(at=>at.ordem==je)[0];null!=De&&(ne.idVariationFather+=(null!=ne.idVariationFather||""!=ne.idVariationFather?"":"-")+De.idVariation.toString()),je++}}null!=o&&0==o.filter(je=>je.ordem==r).length&&o.push({ordem:r,idVariation:P.idVariation});var ke=this.getTreeReference(e,n,r+1,o);null==ke&&1==F.length&&(ne.sku=F[0],1==F[0].standard&&F[0].stock>0&&(u=F[0])),ne.subTreeReference=ke,s.variations.push(ne)}})))}return{treeReference:s,skuPadrao:u}}convertFromReference(e){return{idReference:e.idReference,name:e.name,ordinationOfReferences:e.ordinationOfReferences,referenceType:e.referenceType,variations:[]}}convertFromVariation(e){return{idVariation:e.idVariation,name:e.name,image:e.image,color:e.color,displayOrder:e.displayOrder}}convertToSecureString(e,n=50){var r="";if(null!=e&&e.length>0){for(var o=e.length*n/100,s=[],u=0;u<btoa(e.substring(o)).length;
3++u){var v=btoa(e.substring(o)).charCodeAt(u);s=s.concat([255&v,v/256>>>0])}var w=o>3?s:e;for(w.length>3&&(r=e.substring(0,o)),u=0;u<w.length;u++)r+=w[u].toString().replace(w[u],"*")}return r}layoutManagerPrepare(){if(null!=sessionStorage.getItem("glStyle")){null!=document.getElementById("gl")&&null!=document.getElementById("gl")&&document.getElementById("gl").remove();var e=document.createElement("style");e.type="text/css",e.setAttribute("id","gl"),e.innerHTML=sessionStorage.getItem("glStyle"),document.head.appendChild(e)}window.addEventListener("message",n=>{if(null!=n.data&&"string"==typeof n.data&&n.data.indexOf(":root")>-1){null!=document.getElementById("gl")&&null!=document.getElementById("gl")&&document.getElementById("gl").remove();var r=document.createElement("style");r.type="text/css",r.innerHTML=n.data,r.setAttribute("id","gl"),sessionStorage.setItem("glStyle",n.data),document.head.appendChild(r)}},{passive:!0})}isDevice(){return/android|webos|iphone|ipad|ipod|blackberry|windows phone|phone|mobile|tablet|opera mini|opera mobi|kindle|silk|fennec|bb10|playbook|nokia|meego/i.test(navigator.userAgent.toLowerCase())}firstLetterToUpper(e){return e[0].toUpperCase()+e.substr(1,e.length-1)}urlBlackList(e){let n=!0;try{return null==e||("%%%"==e||"%%%"==decodeURIComponent(e)||e.includes("%")||decodeURIComponent(e).includes("%"))&&(n=!1),n}catch{return!1}}disableSubmit(e,n){if(13===e.keyCode&&n)return!1}getQueryVar(e){var n=unescape(window.location.search)+"&",r=new RegExp(".*?[&\\?]"+e+"=(.*?)&.*"),o=n.replace(r,"$1");return o!=n&&o}maskCpfCnpj(e){if(n=e.target.value){if(this.stripCnpj(n).length>11)var n=this.formatCnpj(n);else n=this.formatCpf(n);return e.target.value=n,n}}maskCreditCardNumberEvent(e){var n=e.keyCode||e.charCode;8!=n&&46!=n&&(e.target.value=e.target.value.trim().replace(/[^0-9]/g,"").replace(/\W/gi,"").replace(/(.{4})/g,"$1 "))}createTestStoreStripe(){var e=document.createElement("div");e.classList.add("jet-store-test-stripe");var n=document.createElement("span");n.classList.add("test-stripe-text"),n.innerText="Aten\xe7\xe3o: Esta \xe9 uma loja teste. Nenhum pedido dever\xe1 ser considerado. Itens expostos s\xe3o apenas testes.",e.appendChild(n),document.body.prepend(e)}formatIsoDate(e){return e.replace(/\D/g,"").replace(/^(\d{2})(\d{2})(\d{4})/,"$3-$2-$1")}validPhoneSize(e,n){if(null==e||null==e||""==e)return;let r=e.replace(/\D/g,"");r=r.replace(/^0/,"");let o=!0;r.length<10&&(o=!1),null!=n&&(o||n.setErrors({incorrect:!0}))}validPhoneNumber(e,n){null!=e&&null!=e&&""!=e&&null==e.match(/^\(?(?:[14689][1-9]|2[12478]|3[1234578]|5[1345]|7[134579])\)? ?(?:[2-8]|9[1-9])[0-9]{3}\-?[0-9]{4}$/)&&n.setErrors({pattern:!0})}validCellPhone(e){return/^\(?\d{2}\)?\s?9\d{4}-?\d{4}$/.test(e)}validateCep(e){return!!/^[0-9]{5}-[0-9]{3}$/.test(e)}getDescriptionPaymentMethods(e,n,r){let o=0,s="";if(e.methodsPaymentDiscountList&&e.methodsPaymentDiscountList.length>0){const u=e.methodsPaymentDiscountList.filter(v=>v.discount===n);u.forEach(v=>{r>=v.minimumValue&&(u.length>1?o<2&&(o++,s+=" ou "+v.typePayment):s+=" ou "+v.typePayment)}),s=s.slice(3)}return s}getHigherDiscountPaymentMethods(e,n,r){const o=!r;let s=0;return e.methodsPaymentDiscountList&&e.methodsPaymentDiscountList.length>0&&e.methodsPaymentDiscountList.forEach(u=>{let v=!1;(u.canUseB2C&&o||u.canUseB2B&&r)&&(v=!0),v&&n>=u.minimumValue&&u.discount>s&&(s=u.discount)}),s}roundDown(e,n=2){let r=10**n;return Math.floor(r*e)/r}roundUp(e,n=2){let r=10**n;return Number(Math.round(e*r+1e-8)/r)}checkIfReloadInstallments(e){let n=!1;return(e.valid||e.controls.number&&null!=e.controls.number.value&&""!=e.controls.number.value)&&(n=!0),n}getPageLocation(){var e="";switch(window.location.pathname.split("/").pop()){case"c":e="Department";break;case"m":e="Brand";break;case"g":e="Group";break;case"p":e="Product";break;case"busca":e="Search"}return e}pushSelectItemEventGTM(e,n,r="",o=null,s=null){var u={item_name:e,item_category:r??(document.querySelector("title")?.textContent||"Filtro de produtos"),item_variant:n};if(o){var v=s?.idSku??o.idSku??0;u.id=o.idProduct,u.sku=v,u.item_id=v>0?`${o.idProduct}_${v}
3`:o.idProduct?.toString(),u.code=o.code,u.name=o.name,u.brand=o.brand?.name,u.gtin=s?.gtin??o.gtin}this.finishLoadComponent("onJetPushDataLayerEvent",{detail:{type:"select_item",params:{item_list_name:this.getPageLocation(),items:[u]}}})}pushSelectContentEventGTM(e,n){this.finishLoadComponent("onJetPushDataLayerEvent",{detail:{type:"select_content",params:{content_type:e,content_id:n}}})}updateLocalStorageDiscount(e,n,r){let s,o=localStorage.getItem("hasDiscount");s=o?JSON.parse(o):{coupon:!1,voucher:!1,manipulate:!1},void 0!==e&&void 0!==n&&(s[e]=n),void 0!==r&&(s[e]&&r&&!s.manipulate?s.manipulate=r:r||(s.manipulate=!1)),localStorage.setItem("hasDiscount",JSON.stringify(s))}hasDiscountActive(){const e=localStorage.getItem("hasDiscount");if(e){const n=JSON.parse(e);let o="CUPOM ou VALE-COMPRAS";return n.coupon?o="CUPOM":n.voucher&&(o="VALE-COMPRAS"),n.manipulate?o:""}return!1}recurrencyAvailableFrequencies(e){let n=[],r=[];return e.items.forEach(o=>{o.frequencyRecurrency&&n.push(o.frequencyRecurrency)}),n.length>0&&(r=n.reduce((o,s)=>o.filter(u=>s.some(v=>v.idCompraAutomaticaTipoEntrega===u.idCompraAutomaticaTipoEntrega)))),r}setParametersSearchUrl(e,n){const r=new URL(window.location.href);r.searchParams.set(e,n),window.history.pushState({},"",r)}updateArrayParametersSearchUrl(e){const n=new URL(window.location.href);for(let r=0;r<e.length;r++){const o=e[r];o&&("set"==o.action?n.searchParams.set(o.name,o.value):n.searchParams.delete(o.name))}window.history.pushState({},"",n)}deleteParametersSearchUrl(e){const n=new URL(window.location.href);n.searchParams.delete(e),window.history.pushState({},"",n)}isNumeric(e){return!isNaN(e)}showLoading(e="body"){document.getElementsByTagName(e)[0].classList.add("jet-loading")}hideLoading(e="body"){document.getElementsByTagName(e)[0].classList.remove("jet-loading")}showLoadingSpecific(e="body"){document.getElementsByTagName(e)[0].classList.add("jet-loading-specific")}hideLoadingSpecific(e="body"){document.getElementsByTagName(e)[0].classList.remove("jet-loading-specific")}showLoadingByClass(e=""){document.getElementsByClassName(e).length>0&&document.getElementsByClassName(e)[0].classList.add("jet-loading")}hideLoadingByClass(e=""){document.getElementsByClassName(e).length>0&&document.getElementsByClassName(e)[0].classList.remove("jet-loading")}showLoadingByQuerySelector(e=""){document.querySelectorAll(e).length>0&&document.querySelectorAll(e)[0].classList.add("jet-loading")}hideLoadingByQuerySelector(e=""){document.querySelectorAll(e).length>0&&document.querySelectorAll(e)[0].classList.remove("jet-loading")}showBtnLoadingByClass(e=""){document.getElementsByClassName(e).length>0&&document.getElementsByClassName(e)[0].classList.add("jet-btn-loading")}hideBtnLoadingByClass(e=""){document.getElementsByClassName(e).length>0&&document.getElementsByClassName(e)[0].classList.remove("jet-btn-loading")}setProcessingState(e){this._isProcessing.next(e)}onlyNumbers(e){const n=e.target;let r=n.value.replace(/[^0-9]/g,"");return n.value=n.value.replace(/[^0-9]/g,""),r}googleTradutorScript(e){let n=document.createElement("div");n.id="google_translate_element",n.classList.add("boxTradutor"),n.style.display="none",document.getElementsByTagName("body")[0].prepend(n);let r=e.map(u=>u.languageCode).join(","),o=document.createElement("script");o.type="text/javascript",o.innerHTML=`\n\t\tfunction googleTranslateElementInit() { \n\t\t\tnew google.translate.TranslateElement({pageLanguage: 'pt', includedLanguages: '${r}', layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL}, 'google_translate_element'); \n\t\t}`,document.getElementsByTagName("head")[0].appendChild(o);let s=document.createElement("script");s.type="text/javascript",s.src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit",document.getElementsByTagName("head")[0].appendChild(s),this.finishLoadComponent("onJetGoogleTradutorScriptLoad")}setCountryInCookie(e){return this.http.post("/api/setCountryCookie",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/783bf568-81c8-46ef-9041-2c7a1a1e83b8",json:e})}getCountryCookie(){return this.http.post("/api/getCountryCookie",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/dcdb
3011c-2f68-45c6-9a41-a3090b07579e",json:null})}removeCountryCookie(){return this.http.post("/api/removeCountryCookie",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/509ef94a-769e-47e6-adcf-b877934a2858",json:null})}setCountryCookieCommom(e){this.countryOnCookie=e,this.finishLoadComponent("onJetSetCountryCookieCommom"),this.sharedDataCommomService.changeValueInternational({isInternational:!(!e||1==e.id),country:e})}setCountryOrderCommom(e){this.countryOnOrder=e}getCountryCookieCommom(){return this.countryOnCookie}getCountryOrderCommom(){return this.countryOnOrder}setInternationalStoreConfiguration(e,n=""){let r=!0;("/checkout/payment-assisted-sale"==n||"/checkout/success"==n)&&(r=!1),e.isInternationalStore&&e.countries?this.getCountryCookie().subscribe(o=>{if(o)if(e.countries.find(s=>s.nameGeolocalization.toLocaleLowerCase()==o.nameGeolocalization.toLocaleLowerCase())){let s=!1,u=e.countries.find(F=>F.id==o.id),v=u?.currencyQuotation;o.currencyQuotation!=v&&(o.currencyQuotation=v,s=!0);let w=u?.id;o.id!=w&&(o.id=w,s=!0);let P=u?.idCurrency;o.idCurrency!=P&&(o.idCurrency=w,s=!0),s&&this.setCountryInCookie(o),this.setCountryCookieCommom(o),this.googleTradutorScript(e.countries)}else this.removeCountryCookie().subscribe(s=>{e.activeGeoLocalization&&r?this.getGeoLocalization(e).then(u=>{const v=e.countries.find(w=>(w.nameGeolocalization??"").toLowerCase()===(u?.country??""));if(v)this.setCountryInCookie(v),this.setCountryCookieCommom(v);else{const w=e.countries.find(P=>"br"!==P.nameGeolocalization.toLocaleLowerCase()&&P.standardInternational);w?(this.setCountryInCookie(w),this.setCountryCookieCommom(w)):this.setCountryCookieCommom(void 0)}this.googleTradutorScript(e.countries)}):(this.setCountryCookieCommom(void 0),this.googleTradutorScript(e.countries))});else e.activeGeoLocalization&&r?this.getGeoLocalization(e).then(s=>{const u=e.countries.find(v=>(v.nameGeolocalization??"").toLowerCase()===(s?.country??""));if(u)this.setCountryInCookie(u),this.setCountryCookieCommom(u);else{const v=e.countries.find(w=>"br"!==w.nameGeolocalization.toLocaleLowerCase()&&w.standardInternational);v?(this.setCountryInCookie(v),this.setCountryCookieCommom(v)):this.setCountryCookieCommom(void 0)}this.googleTradutorScript(e.countries)}):(this.setCountryCookieCommom(void 0),this.googleTradutorScript(e.countries))}):(this.removeCountryCookie().subscribe(o=>{this.setCountryCookieCommom(void 0)}),this.sharedDataCommomService.changeValueInternational({isInternational:!1}))}getCookie(e){const r=`; ${document.cookie}`.split(`; ${e}=`);return 2===r.length?r.pop().split(";").shift():null}getGeoLocalization(e){const n=navigator.userAgent.toLowerCase();return n.includes("googlebot")||n.includes("adsbot-google")||n.includes("mediapartners-google")?Promise.resolve({country:null,source:null}):this.http.get("https://ipinfo.io/json").pipe(oy(2e3)).toPromise().then(o=>({country:o.country?.toLowerCase()??null,source:"ipinfo"})).catch(()=>new Promise(o=>{let s=!1;const u=setTimeout(()=>{s||(s=!0,o({country:null,source:"timeout"}))},3e4);navigator.geolocation.getCurrentPosition(v=>{if(s)return;s=!0,clearTimeout(u);const{latitude:w,longitude:P}=v.coords;this.http.get(`https://maps.googleapis.com/maps/api/geocode/json?latlng=${w},${P}&key=${e.tokenGeoLocalization}`).toPromise().then(R=>{const V=R.results?.[0]?.address_components?.find(ne=>ne.types?.includes("country"));o({country:V?.short_name?.toLowerCase()??null,source:"google"})}).catch(()=>o({country:null,source:"google-error"}))},()=>{s||(s=!0,clearTimeout(u),o({country:null,source:"geolocation-denied"}))})}))}getCountries(){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/d4e5f6a7-b8c9-0123-def4-456789012345",json:null})}getCountriesShipSmart(){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/9b5c6f8e-5961-4d57-b7f3-690f0985110b",json:null})}getCountryStates(e){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/c3d4e5f6-a7b8-9012-cdef-345678901234",params:`?countryId=${e}`})}formatDatePtBR(e){if(!e)return"";const[n]=e.split(" "),[r,o,s]=n.split("-");return`${s}/${o}/${r}`}createCookieCatalogOpen(e){return this.http.post("/api/createCookieCatalogOpen",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/d3a463d5-0bf6-4654-b1b9-42ab81d6e2cd",json:e})}createCookieLinkCartPaymentAssistedSale(e){return this.http.post("/api/createCookieLinkCartPaymentAssistedSale",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/72eac746-6840-4626-ba7d-ae15e26fcc93",json:e})}static#e=this.\u0275fac=function(n){return new(n||t)(Mt(ko),Mt(I0),Mt(A4),Mt(yn),Mt(vo))};static#t=this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),za=(()=>{class t{constructor(e){this.sanitizer=e}transform(e){return this.sanitizer.bypassSecurityTrustHtml(e)}static#e=this.\u0275fac=function(n){return new(n||t)($(gl,16))};static#t=this.\u0275pipe=_r({name:"safeHtml",type:t,pure:!0})}return t})();
3function nD(t,i){1&t&&(B(0,"div",1),Wi(1,"safeHtml")),2&t&&d("innerHTML",Lo(1,1,_().company.privacyPolicy.policyPrivacy),ce)}let iD=(()=>{class t{constructor(e,n){this.sharedDataCommomService=e,this.commomService=n}ngOnInit(){this.sharedDataCommomService.currentCompany$.subscribe(e=>{null!=e&&(e.privacyPolicy.statusPolicyPrivacy?this.company=e:window.location.href="/"),this.commomService.finishLoadComponent("onJetTextPolicyPrivacyLoaded")})}static#e=this.\u0275fac=function(n){return new(n||t)($(yn),$(qt))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-text-policy-privacy"]],decls:1,vars:1,consts:[["class","jet-text-policy-privacy",3,"innerHTML",4,"ngIf"],[1,"jet-text-policy-privacy",3,"innerHTML"]],template:function(n,r){1&n&&C(0,nD,2,3,"div",0),2&n&&d("ngIf",null!=r.company)},dependencies:[en,za],encapsulation:2})}return t})(),Qo=(()=>{class t{constructor(e){this.http=e}getBanner(e){return this.http.post("/api",{request:"674e7d84-5f1e-48f3-b059-0e284bea1c0a/44508870-3731-4bc9-a4c9-b5378da3bb34",params:`?Type=${e}`,json:null})}getCategoryBanners(e,n){return this.http.post("/api",{request:"674e7d84-5f1e-48f3-b059-0e284bea1c0a/b01a1188-e1ea-4556-ab93-fddc1076ec42",params:`?Type=${e}&textLink=`+n,json:null})}getGroupBanners(e,n){return this.http.post("/api",{request:"674e7d84-5f1e-48f3-b059-0e284bea1c0a/6820461c-24ea-40d2-8071-ebc63fae95d7",params:`?Type=${e}&textLink=`+n,json:null})}getBrandBanners(e,n){return this.http.post("/api",{request:"674e7d84-5f1e-48f3-b059-0e284bea1c0a/b1908f90-f0ce-4d32-a53b-94ff036c545c",params:`?Type=${e}&textLink=`+n,json:null})}getCompany(){return this.http.post("/api",{request:"674e7d84-5f1e-48f3-b059-0e284bea1c0a/0bd94ba0-1041-4685-91e3-98937da390c0",json:null})}getInstitutionalPages(){return this.http.post("/api",{request:"674e7d84-5f1e-48f3-b059-0e284bea1c0a/78913229-6853-4bd2-aef1-d2f11c0561bb",json:null})}getInstitutionalPageDetail(e){return this.http.post("/api",{request:"674e7d84-5f1e-48f3-b059-0e284bea1c0a/69022d22-fdd9-43af-83cb-77ffaf2abb0d",params:`?textLink=${e}`,json:null})}getEbit(){return this.http.post("/api",{request:"674e7d84-5f1e-48f3-b059-0e284bea1c0a/69cb416d-bd86-473f-8f27-d4d4c1de057a",json:null})}getCompreConfie(){return this.http.post("/api",{request:"674e7d84-5f1e-48f3-b059-0e284bea1c0a/43b4d5f7-a4e0-4eb6-91b5-e9113abc2c44",json:null})}listFaqs(){return this.http.post("/api",{request:"674e7d84-5f1e-48f3-b059-0e284bea1c0a/471a4a96-45f1-4df4-95a3-3f4ad873464d",json:null})}getCredentialsRecapctcha(){return this.http.post("/api",{request:"674e7d84-5f1e-48f3-b059-0e284bea1c0a/398ddbd4-4d65-4401-b7fe-6b5e8399f609",json:null})}getSealCompany(){return this.http.post("/api",{request:"674e7d84-5f1e-48f3-b059-0e284bea1c0a/e225c373-32d1-4c95-b9f8-dd8df982462d",json:null})}redirect301(e){return this.http.post("/api/redirect301",{request:"674e7d84-5f1e-48f3-b059-0e284bea1c0a/124da3c2-a1aa-4c32-b8d2-1cb7e4ef9961",json:{urlAntiga:e}})}checkMaintenanceStatus(){return this.http.post("/api/checkMaintenanceStatus",{request:"674e7d84-5f1e-48f3-b059-0e284bea1c0a/0bd94ba0-1041-4685-91e3-98937da390c0",json:null})}getPaymentOptions(){return this.http.post("/api",{request:"674e7d84-5f1e-48f3-b059-0e284bea1c0a/fc4f22fe-e87c-45bf-a78f-80a2f7ec3446",json:null})}getAdwords(){return this.http.post("/api",{request:"674e7d84-5f1e-48f3-b059-0e284bea1c0a/dbf27659-b709-4631-aa40-af88f427b7d7",json:null})}getPartnerBanners(e,n){return this.http.post("/api",{request:"674e7d84-5f1e-48f3-b059-0e284bea1c0a/6843300b-a638-4981-95de-de7f42c88b7b",params:`?Type=${e}&textLink=`+n,json:null})}static#e=this.\u0275fac=function(n){return new(n||t)(Mt(ko))};static#t=this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),tv=(()=>{class t{constructor(e){this.elementRef=e}ngOnInit(){setTimeout(()=>{this.reinsertScripts()})}reinsertScripts(){const e=this.elementRef.nativeElement.getElementsByTagName("script"),n=e.length;for(let r=0;r<n;r++){const o=e[r],s=document.createElement("script");s.type=o.type?o.type:"text/javascript",o.innerHTML&&(s.innerHTML=o.innerHTML),o.src&&(s.src=o.src),o.id&&(s.id=o.id),s.async=!1,o.parentNode.replaceChild(s,o)}}static#e=this.\u0275fac=function(n){return new(n||t)($(To))};static#t=this.\u0275dir=Ft({type:t,selectors:[["","jetRunScripts",""]]})}return t})(),Yo=(()=>{class t{constructor(e){this.el=e,this.elementVisible=new pi,this.elementsTriggered=new Set}ngAfterViewInit(){/JET-TRON/.test(navigator.userAgent)?this.callRequest():(this.observer=new IntersectionObserver(r=>{r.forEach(o=>{o.isIntersecting&&(this.callRequest(),this.observer.unobserve(this.el.nativeElement))})},{root:null,rootMargin:"0px",threshold:0}),this.observer.observe(this.el.nativeElement))}callRequest(){if(!this.elementsTriggered.has(this.el)){this.elementVisible.emit(),this.elementsTriggered.add(this.el);const e=this.el.nativeElement;if(e.classList.contains("jetlazyload")){const n=e.parentNode;for(;e.firstChild;)n.insertBefore(e.firstChild,e);n.removeChild(e)}}}static#e=this.\u0275fac=function(n){return new(n||t)($(To))};static#t=this.\u0275dir=Ft({type:t,selectors:[["","jetVisibilityCheck",""]],outputs:{elementVisible:"elementVisible"}})}return t})();function rD(t,i){1&t&&B(0,"div",2),2&t&&d("innerHtml",_().script,ce)}let oD=(()=>{class t{constructor(e,n,r){this.companyService=e,this.commomService=n,this.sanitizer=r}ngOnInit(){}ngOnDestroy(){this.ebitSubs$.unsubscribe()}onElementVisible(){this.ebitSubs$=this.companyService.getEbit().subscribe(e=>{null!=e&&0!=e.idEBit&&(this.ebit=e,this.script=this.sanitizer.bypassSecurityTrustHtml(`<a id="seloEbit" href="http://www.ebit.com.br/${e.nomeLojaEBit}/selo" target="_blank" title="Avaliado pelos consumidores" oncontextmenu="alert("C\xf3pia proibida! A certifica\xe7\xe3o Ebit \xe9 de uso exclusivo de lojas conveniadas \xe0 Ebit.");return false;" style="display: block; overflow: hidden; position: relative;"><img src="https://newimgebit-a.akamaihd.net/ebitBR/selo/img_${e.idEBit}.png" style="border: 0px;"></a>`)),this.commomService.finishLoadComponent("onJetEbitLoaded")},e=>{})}static#e=this.\u0275fac=function(n){return new(n||t)($(Qo),$(qt),$(gl))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-e-bit"]],decls:2,vars:1,consts:[["jetVisibilityCheck","",1,"jetlazyload",3,"elementVisible"],["jetRunScripts","",3,"innerHtml",4,"ngIf"],["jetRunScripts","",3,"innerHtml"]],template:function(n,r){1&n&&(a(0,"div",0),J("elementVisible",function(){return r.onElementVisible()}),C(1,rD,1,1,"div",1),l()),2&n&&(c(1),d("ngIf",null!=r.ebit&&0!=r.ebit.IdEBit))},dependencies:[en,tv,Yo],encapsulation:2})}return t})(),Ci=(()=>{class t{constructor(e){this.http=e}changeAddress(e){return this.http.post("/api/createAlterClientAddress",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/6dce1d87-d78b-433c-a7d9-25fe87fa0cdb",json:e})}sendCodeChangeAddress(e){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/fe7464b7-1935-489a-b63f-0201572ce4af",params:`${e}`,json:null})}validarTokenRedefinirSenha(e){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/56ac04de-301b-4d85-a125-4cb1c7d02561",params:e,json:null})}changePassword(e,n,r,o,s,u){return this.http.post("/api/changePassword",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/13aa8d5a-2a03-4ef4-b7a9-bddf06b624d8",json:{userName:e,passwordOld:n,password:r,passwordConfirm:o,token:s,location:u}})}getCustomer(e){return this.http.post("/api/getCustomerId",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/62161ab5-8b12-4068-a7f0-c17abc0f26c5",params:e,json:null})}getIdentificationEmail(e,n,r,o=!0){let s=new wr;s=s.append(n,e),s=s.append("origem","1"),s=s.append("allowPJB2C",o.toString());var u={request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/25f612ce-d47a-4d43-a71b-32ba9a1c6ead",params:"?"+s.toString(),json:{tokenRecaptcha:r}};return this.http.post("/api/identification",u,{params:s})}getClientByEmailWhenCodeWasSent(e){return this.http.post("/api/getClientByEmailWhenCodeWasSent",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/91c50cf8-a04f-46d4-a3fb-d636d2772074",params:e,json:null})}getClientByIdWhenCodeWasSent(e,n){return this.http.post("/api/getClientByIdWhenCodeWasSent",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/104735fd-ad32-4efe-b1e4-f7e4b7c0185a",params:n,json:{email:e}})}getNewsletter(){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/f7a4374d-98a8-4a3e-a5ac-65031acbbd16",json:null})}updateClient(e){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/bc1ac7f2-8c8a-4380-9da6-ad12e85fc7f1",json:e})}updateCustomerBasicInfo(e){return this.http.post("/api/changeCustomerInfo",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/03def18f-fe23-460f-8f64-ab646f600fe0",json:e})}getCustomerInfo(){return this.http.post("/api/getClient",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/02808397-1fac-4b16-a743-327fb49907b6",json:null})}validaAccessKeyEmail(e,n,r){return this.http.post("/api/verifyAccessKeyEmail",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/d8a67a8f-a606-4def-a040-8a90c034a79f",params:`${n}/${r}`,json:{email:n,idCustomer:e}})}retornaCookieValidaAccessKeyEmail(e){return this.http.post("/api/getCookieVerifyAccessKeyEmail",{request:"674e7d84-5f1e-48f3-b059-0e284bea1c0a/8dce3f1e-267b-4e98-b8b1-2fcf623a3c5f",json:{email:e}})}buscaCep(e){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/3a049dfd-6f63-460c-97af-2791a6d8b062",params:e,json:null})}register(e){return this.http.post("/api/register",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/383c9822-9d3b-42b7-831b-11b1bfce7416",json:e})}listTopics(){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/63ebb891-aa15-4861-91c9-69cbb34e0350",json:null})}sendFormContactUs(e){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/6a9c4eed-ffda-4aa4-bb71-0bbfa5c1d9de",json:e})}getEventList(){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/7499530b-4657-4293-a57c-4e8cfcf03c38",json:null})}getNewslleterCategories(){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/fc39ee30-6ebb-443c-af55-0bdb55345508",json:null})}registerNewsletter(e){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/5c969c42-d2ff-4f2e-90c3-516dd766cc22",json:e})}isLogged(){return this.http.post("/api/verifyLogin",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/6012880a-47e9-4181-ba2c-75fd664db379",json:null})}isLoggedB2B(){return this.http.post("/api/verifyLoginB2B",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/6f1d0d89-9a9c-4d60-bf0b-e3826d65d833",json:null})}logout(){return this.http.post("/api/logout",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/6012880a-47e9-4181-ba2c-75fd664db379",json:null})}login(e,n,r,o=!1,s=!0){var u=new wr;let v={request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/684d685d-3407-4359-aa39-ebf8c864cb4c",params:"?"+(u=(u=u.append("isB2B",o.toString())).append("allowPJB2C",s.toString())).toString(),json:{username:e,password:n,token
3Recaptcha:r}};return this.http.post("/api/login",v,{params:u})}AcceptTermB2B(){return this.http.post("/api/acceptTermB2B",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/bc1ac7f2-8c8a-4380-9da6-ad12e85fc7f1"})}getUserWishList(e,n){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/531c8a9b-748b-41b7-b0b9-ce9967058720",params:"&isB2C="+n+"&isB2B="+e,json:null})}postItemToWishList(e,n,r){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/3ef96982-91ba-465e-90ce-daa5c66c99b1",json:{idCustomer:"{idCustomer}",idProduct:r,isB2CItem:n,isB2BItem:e,idSku:0}})}removeItemToWishList(e){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/afcb9671-5fad-4efd-9b50-4fefd47037fa",json:null,params:"?idWishlistItem="+e})}getCustomerAddress(e){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/37dacca6-2cb5-4358-adc5-03ac5afc7621",params:e,json:null})}changeAddressFlag(e,n,r=null,o=null){let s="";return(null!=r||null!=o)&&(s="?",null!=r&&(s=`${s}defaultDelivery=${r}`),null!=o&&(s=`${s}&billing=${o}`)),this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/068c7d96-895d-4ea7-942a-d2ab7958e182",params:`${e}/${n}${s}`,json:null})}deleteCustomerAddress(e,n){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/225d62d9-824c-45ee-a39d-896b6799ee7a",params:`${n}${"?idCustomer="+e}`,json:null})}createCustomerAddress(e,n){return this.http.post("/api/createAlterClientAddress",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/ae0ebe92-0216-4e9c-8e3d-eaf163fa081f",params:e,json:n})}alterEmailClient(e,n){return this.http.put("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/67b0a38f-1065-485c-b1cb-709a48011189",json:'"'+n+'"'})}getDataCustomer(){return this.http.post("/api/verifyLogin",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/6012880a-47e9-4181-ba2c-75fd664db379",json:null})}checksExistenceAndLinkEmail(e){return this.http.post("/api/verifyRegistration",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/372d7115-d80e-4e7a-a725-a20d295f8643",params:e.emailCustomer,json:e})}getGiftBalance(e){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/031206c3-5318-48fd-8dbf-a0b54ed329b4",params:e,json:null})}getGiftCards(e){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/f63c6969-c0ec-42db-a877-2cd6ffce424c",params:e,json:null})}recoverEmail(e,n){return this.http.post("/api/recoverEmail",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/c5ad0776-4d14-41a2-a5a8-63a264fa7d72",params:e,json:{password:n,cpfCnpj:e}})}sendEmailRecover(e){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/80d4fd89-2791-4215-aa13-1caccf4ac0bf",params:e,json:null})}updatePolicyPrivacy(e,n){return this.http.post("/api/customerprivacy/accept",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/ce873bc1-751a-4739-940d-714e3ba2aea8",params:e,json:n})}deleteAllItems(e){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/79bfad5d-7943-4b6e-9e74-bbc64694fe58",params:"?idWishlist="+e,json:null})}eventListClient(e){var n=new wr;e.idClient&&(n=n.append("idClient",e.idClient.toString())),e.idEventList&&(n=n.append("idEventList",e.idEventList.toString())),e.name&&(n=n.append("name",e.name.toString())),e.search&&(n=n.append("search",e.search.toString())),e.eventDate&&(n=n.append("eventDate",e.eventDate.toString())),e.published&&(n=n.append("published",e.published.toString()));var r={request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/178dec57-7487-403e-9977-6229ba3c00e3",params:"?"+n.toString(),json:null};return this.http.post("/api",r)}createUpdateEventList(e){return this.http.post("/api",{request:e.idEventList>0?"7bee9132-c048-4fe2-922a-08d6d4a51d89/275701da-388c-4e9d-9a9a-483416cd9d48":"7bee9132-c048-4fe2-922a-08d6d4a51d89/486fb3aa-4634-4dc1-908d-1ccc309ac434",json:e})}getEventGuestList(e){var n=new wr;e&&(n=n.append("idEventList",e.toString()));var r={request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/31396a85-21a3-42c5-bc86-fd61aaf269eb",params:"?"+n.toString(),json:null};return this.http.post("/api",r)}addGuestEventList(e,n){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/d4f9d160-b412-4994-b398-4fcd24b406eb",params:e,json:n})}deleteGuestEventList(e,n){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/509d71f0-0674-4fa1-8107-3b864276c317",params:e+"/"+n,json:null})}sendInvitation(e){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/5440c2d4-6d6d-4a7f-a1bd-4dcbe9940e58",params:e,json:null})}searchProducts(e){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/f9590a54-e111-4334-99f1-0e1cae59516c",params:`?searchText=${e}`,json:null})}searchProductVariation(e){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/1cf8adc3-b233-40c7-8daf-62f5f4da14ad",params:`?idProduct=${e}`,json:null})}getProductsEventList(e){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/a9cb9d73-3251-4bf0-9589-ff6ba793f776",params:`?idEventList=${e}&pageNumberProduct=1&pageSizeProduct=300`,json:null})}getProductsGuest(e,n,r){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/481ea77e-fd8d-445d-a7e0-ff008f9851f9",params:`?idEventList=${e}&idProduct=${n}&idSku=${r}`,json:null})}insertProduct(e,n,r,o){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/f076889d-beab-4a2d-b2fb-d4ed56d7b1a7",params:`${e}/${n}/${r}/${o}`,json:null})}updateProduct(e,n,r,o){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/1601b031-7f8b-4ea9-b768-585a6780ede6",params:`${e}/${n}/${r}/${o}`,json:null})}deleteProduct(e,n){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/7896c879-e6cd-4d6e-8968-272c14d36a1d",params:`${e}/${n}`,json:null})}getAddressEventList(e){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/8b678680-d90a-4852-91b1-2907d524c181",params:`${e}`,json:null})}changeAddressEventList(e,n){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/3c1530c7-dad5-4473-beed-b5d31ca99f0c",params:`${e}/${n}`,json:null})}getCustomerCD(e,n,r,o,s,u){const v=new URLSearchParams;null!=e&&v.append("cep",e),null!=r&&v.append("customerID",r),null!=o&&v.append("isDeliveryWithPickup",o),null!=s&&v.append("idShippingMode",s),null!=u&&v.append("idCountryToSimulate",u);var P={request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/4855e6cc-63e4-4f5d-9bf4-9d877df354be",params:`?sessionID={sessionID}&${v.toString()}`,json:n||void 0};return this.http.post("/api",P)}changeCD(e,n,r){return this.http.post("/api/changeCD",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/4855e6cc-63e4-4f5d-9bf4-9d877df354be",params:"?idMultiCD="+e+"&customerID="+n+"&isDeliveryWithPickup="+r,json:void 0})}getCD(){return this.http.post("/api/getCD",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/4855e6cc-63e4-4f5d-9bf4-9d877df354be",json:void 0})}removeCDFromCookie(){return this.http.post("/api/removeCDFromCookie",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/4855e6cc-63e4-4f5d-9bf4-9d877df354be",json:void 0})}getCnpjCompany(e){return this.http.post("/api/getCnpj",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/6012880a-47e9-4181-ba2c-75fd664db379",json:{cnpj:e}})}generateOtpToken(e,n,r){return this.http.post("/api/tokenOtp",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/4855e6cc-63e4-4f5d-9bf4-9d877df354be",json:{email:e,tokenRecaptcha:n,b2b:r}})}validateOtpToken(e,n){return this.http.post("/api/validateTokenOtp",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/4855e6cc-63e4-4f5d-9bf4-9d877df354be",json:{token:e,b2b:n}})}resendOtpToken(e,n){return this.http.post("/api/resendTokenOtp",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/4855e6cc-63e4-4f5d-9bf4-9d877df354be",json:{email:e,b2b:n}})}updateCustomerAdditionalFields(e){if(e)return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/2bf80726-7bb2-41dd-ac0f-35802d9c4470",params:"{idCustomer}",json:e})}getCustomerAdditionalInfo(){return this.http.post("/api/custom/customer-additional-info/",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/3ab91ad2-420f-4c00-94b6-e4b26a667d1e"})}getAllCustomerCardTokens(e=!1){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/3117f346-405c-489e-a27b-e759bc556914",params:`{idCustomer}?activeCards=${e}`,json:null})}deleteCardTokenByID(e){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/560fa05b-2892-4942-8e57-7c1f476fea5d",params:`{idCustomer}/${e}`,json:null})}static#e=this.\u0275fac=function(n){return new(n||t)(Mt(ko))};static#t=this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function sD(t,i){if(1&t){const e=ve();a(0,"div",4)(1,"ul")(2,"li")(3,"a",5),h(4,"Minha Conta"),l()(),a(5,"li")(6,"a",6),h(7,"Meus Pedidos"),l()(),a(8,"li")(9,"a",7),J("click",function(){return M(e),L(_(2).logout())}),h(10),l()()()()}if(2&t){const e=_(2);c(9),d("title",e.dataLogoutMessage),c(1),de(e.dataLogoutMessage)}}function aD(t,i){if(1&t){const e=ve();a(0,"div",1)(1,"span",2),J("click",function(){M(e);const r=_();return L(r.logged?r.loginRedirect():r.login())}),l(),C(2,sD,11,2,"div",3),l()}if(2&t){const e=_();d("className",e.dataClassLogin),c(1),d("innerHTML",e.logged?e.dataWelcomeMessage:e.dataMessage,ce),c(1),d("ngIf",e.logged&&"true"==e.dataShowMenuL
3ogged)}}let lD=(()=>{class t{constructor(e,n,r){this.sharedDataCommom=e,this.customerService=n,this.commomService=r,this.dataMessage="Entre ou cadastre-se",this.dataWelcomeMessage="Bem-vindo, {User}!",this.dataLogoutMessage="Desconectar",this.dataDevice="",this.dataShowMenuLogged="true",this.dataClassLogin="jet-user-login",this.logged=!1,this.user="",this.showInfo=!1}ngOnInit(){if(""!==this.dataDevice){if("mobile"===this.dataDevice.toLowerCase()&&!this.commomService.isDevice()||"desktop"===this.dataDevice.toLowerCase()&&this.commomService.isDevice())return;this.showInfo=!0}else this.showInfo=!0;this.sharedDataCommom.userLogged$.subscribe(e=>{e&&(e.data.authenticated&&e.data.hasPassword&&(this.logged=!0,this.user=e.data.name.split(" ")[0],this.dataWelcomeMessage=this.dataWelcomeMessage.replace("{User}","<span class='notranslate'>"+this.user+"</span>"),this.dataClassLogin=this.dataClassLogin+" "+(this.logged?"logged":"")),this.commomService.finishLoadComponent("onJetUserLoginLoaded"))})}logout(){this.subs$=this.customerService.logout().subscribe(e=>{this.commomService.finishLoadComponent("onJetUserLogout"),window.location.href="/"},e=>{this.commomService.displayMessageUser("error","Erro ao realizar o logout")})}login(){window.location.href="/customer/login"}loginRedirect(){"false"==this.dataShowMenuLogged&&(window.location.href="/customer/login")}static#e=this.\u0275fac=function(n){return new(n||t)($(yn),$(Ci),$(qt))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-user-login"]],inputs:{dataMessage:["data-message","dataMessage"],dataWelcomeMessage:["data-welcome-message","dataWelcomeMessage"],dataLogoutMessage:["data-logout-message","dataLogoutMessage"],dataDevice:["data-device","dataDevice"],dataShowMenuLogged:["data-show-menu-logged","dataShowMenuLogged"]},decls:1,vars:1,consts:[[3,"className",4,"ngIf"],[3,"className"],[3,"innerHTML","click"],["class","content-login",4,"ngIf"],[1,"content-login"],["href","/customer","title","Minha Conta",1,"account"],["href","/customer/order","title","Meus Pedidos",1,"order"],[1,"logout",3,"title","click"]],template:function(n,r){1&n&&C(0,aD,3,3,"div",0),2&n&&d("ngIf",r.showInfo)},dependencies:[en],encapsulation:2})}return t})(),cD=(()=>{class t{constructor(e){this.commomService=e,this.dataWelcomeMessage="Bem-vindo, {Seller}!",this.seller="Filipe",this.logged=!1}ngOnInit(){this.dataWelcomeMessage=this.dataWelcomeMessage.replace("${Seller}",this.seller),this.commomService.finishLoadComponent("onJetAssistedSaleLoaded")}static#e=this.\u0275fac=function(n){return new(n||t)($(qt))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-assisted-sale"]],inputs:{dataWelcomeMessage:["data-welcome-message","dataWelcomeMessage"]},decls:1,vars:0,consts:[[1,"jet-assisted-sale"]],template:function(n,r){1&n&&B(0,"div",0)},encapsulation:2})}return t})();function dD(t,i){if(1&t&&(a(0,"div",1)(1,"div",2)(2,"a",3)(3,"strong"),h(4),l()()()()),2&t){const e=_();c(1),d("className",e.dataClassContainer),c(1),Ue("title",e.dataTextLink),c(2),de(e.dataTextLink)}}let uD=(()=>{class t{constructor(e,n){this.sharedDataCommom=e,this.commomService=n,this.dataTextLink="\xc1rea Restrita",this.dataClassContainer="",this.B2bActive=!0}ngOnInit(){this.dataClassContainer=""!==this.dataClassContainer?"jet-container "+this.dataClassContainer:"jet-container",this.b2bSubs$=this.sharedDataCommom.currentCompany$.subscribe(e=>{e&&(this.B2bActive=e.statusB2B,this.commomService.finishLoadComponent("onJetB2BLoaded"))})}static#e=this.\u0275fac=function(n){return new(n||t)($(yn),$(qt))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-b2b"]],inputs:{dataTextLink:["data-text-link","dataTextLink"],dataClassContainer:["data-class-container","dataClassContainer"]},decls:1,vars:1,consts:[["class","jet-b2b-footer",4,"ngIf"],[1,"jet-b2b-footer"],[3,"className"],["href","/customer/login?b2b=1",3,"title"]],template:function(n,r){1&n&&C(0,dD,5,3,"div",0),2&n&&d("ngIf",r.B2bActive)},dependencies:[en],encapsulation:2})}return t})(),qh=(()=>{class t{constructor(e){this.http=e}getSocialNetworks(){return this.http.post("/api",{request:"c839e252-1b74-4811-8e18-aa77212fe822/bfc19e29-448b-4c1a-af5b-27af196d50d7",json:null})}getCompanySocialMedia(){return this.http.post("/api",{request:"c839e252-1b74-4811-8e18-aa77212fe822/9d05da48-846e-4bb1-9d37-4b309c3c3332",json:null,excludes:["appSecret"]})}loginSocial(e,n,r,o){return this.http.post("/api/loginsocial",{request:"c839e252-1b74-4811-8e18-aa77212fe822/91a3769a-9d41-475d-ae1a-c199d88fb85d",json:{appId:e,appName:n,nameCustomer:r,emailCustomer:o}})}registerSocialLogin(e){return this.http.post("/api",{request:"c839e252-1b74-4811-8e18-aa77212fe822/8038aa9d-83
36d-4b9f-bc66-15536948bf1a",json:e})}sendEventMeta(e,n,r,o){var s={request:"c839e252-1b74-4811-8e18-aa77212fe822/bfc19e29-448b-4c1a-af5b-27af196d50d7",json:{...e,type:n,pixelId:r,pixelAccessToken:o}};return this.http.post("/api/sendEventMeta",s)}static#e=this.\u0275fac=function(n){return new(n||t)(Mt(ko))};static#t=this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Hp=(()=>{class t{constructor(e,n,r){this.socialNetworkService=e,this.sharedService=n,this.commomService=r,this.snippet=window.snippet||[],this.social=void 0,this.socialNetworkService.getSocialNetworks().subscribe(o=>{if(o){this.sharedService.changeValueSocial(o);var s=[];this.social=o,this.social.filter(u=>""!=u.content&&"whatsapp"!=u.identifier.toLowerCase()).forEach(u=>{s.push(u.content)}),this.social=JSON.parse(JSON.stringify(s))}})}snippetCompany(e,n){if("false"!=n){var o=("/"===e.urlStore.substr(e.urlStore.length-1,1)?e.urlStore.substr(0,e.urlStore.length-1):e.urlStore)+(-1==window.location.href.indexOf("localhost")?"/custom/logo.png":"/assets/logo.png");this.createSnippets({"@context":"https://schema.org","@graph":[{"@type":"Organization",name:e.fantasyName,alternateName:e.companyName,url:e.urlStore,logo:o,email:e.emailContact,sameAs:this.social,areaServed:{"@type":"Country",name:"Brazil"},contactPoint:{"@type":"ContactPoint",telephone:e.phone1,contactType:"customer service",areaServed:"BR",availableLanguage:"Portuguese"},address:{"@type":"PostalAddress",streetAddress:e.address,addressLocality:e.city,addressRegion:e.state,postalCode:e.cep,addressCountry:e.country}}],"@type":"Schema"})}}snippetBreadCrumb(e,n,r){if("false"==r)return;let o=[],s=1;n.filter(v=>!1!==v.includeInSchema).forEach(v=>{o.push({"@type":"ListItem",position:s++,item:{"@type":"WebPage","@id":e+v.href,name:v.name}})}),this.createSnippets({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:o})}snippetProduct(e,n,r){if("false"==r)return;var o=n.categories.filter(V=>V.default)[0],s="/"===e.urlStore.substr(e.urlStore.length-1,1)?e.urlStore.substr(0,e.urlStore.length-1):e.urlStore,u=n.skUs?.length>0?n.skUs.filter(V=>V.standard).length>0?n.skUs.filter(V=>V.standard)[0].gtin:n.skUs[0].gtin:n.gtin,v=n.pricePromotion&&n.pricePromotion>0?n.pricePromotion:n.price;if(e.showPriceWithDiscount){let V=0;V=n?.discountPaymentFormCampaign?n.discountPaymentFormCampaign.discountValue:this.commomService.getHigherDiscountPaymentMethods(e,v,!1),V>0&&(v-=this.commomService.roundUp(v/100*V))}let w;if(n.skUs&&n.skUs.length>0){let V=Number.MAX_VALUE,ne=0,De=[];n.skUs.forEach(ke=>{let je=ke.pricePromotion&&ke.pricePromotion>0?ke.pricePromotion:ke.price;if(e.showPriceWithDiscount){let at=0;at=n?.discountPaymentFormCampaign?n.discountPaymentFormCampaign.discountValue:this.commomService.getHigherDiscountPaymentMethods(e,je,!1),at>0&&(je-=this.commomService.roundUp(je/100*at))}je<V&&(V=je),je>ne&&(ne=je),De.push({"@type":"Offer",url:s+n.urlFriendly+"?sku="+ke.idSku,priceCurrency:"BRL",price:je.toString(),availability:0==ke.stock||n.flagExhausted?"https://schema.org/OutOfStock":"https://schema.org/InStock",itemCondition:"https://schema.org/NewCondition"})}),w={"@type":"AggregateOffer",priceCurrency:"BRL",lowPrice:V.toString(),highPrice:ne.toString(),availability:0==n.stock||n.flagExhausted?"https://schema.org/SoldOut":"https://schema.org/InStock",offerCount:n.skUs.length,offers:De}}else w={"@type":"Offer",priceCurrency:"BRL",availability:0==n.stock||n.flagExhausted?"https://schema.org/SoldOut":"https://schema.org/InStock",itemCondition:"http://schema.org/NewCondition",price:v.toString(),url:s+n.urlFriendly};var P={"@context":"https://schema.org","@type":"Product",name:null!=n.title&&n.title.length>0?n.title:n.name,brand:n.brand?{"@type":"Brand",name:n.brand.name,logo:n.brand.logo||"",url:n.brand.urlFriendly?s+n.brand.urlFriendly:""}:"",image:n.imageHome?.startsWith("//")?"https:"+n.imageHome:n.imageHome,description:n?.metaDescription?this.decodeHtml(n.metaDescription):n.name,url:s+n.urlFriendly,sku:n.idSku>0?n.idSku:void 0,gtin:null!=u&&u.length>
30?u:void 0,width:n.cubing?n.cubing.width:void 0,height:n.cubing?n.cubing.height:void 0,offers:w,category:null!=o.title&&o.title.length>0?o.title:o.name};if(null!=n&&n.productRatings.length>0){var F=[];n.productRatings.sort(function(V,ne){return ne.rate-V.rate}),Array.isArray(n.productRatings)&&n.productRatings.length>0&&(n.productRatings.forEach(V=>{F.push({"@type":"Review",author:V.name.split(" ")[0],datePublished:V.dateRegister.toString().split("T")[0],name:V.title,reviewBody:V.comment,reviewRating:{"@type":"Rating",ratingValue:V.rate,bestRating:"5",worstRating:"1"}})}),P.review=F,P.aggregateRating={"@type":"AggregateRating",ratingCount:n.productRatings.length,ratingValue:n.rate,bestRating:"5",worstRating:"1"})}this.createSnippets(P)}structureSnippetFAQ(e){if(e){var n=[];e.filter(o=>""!=o.content).forEach(o=>{n.push({"@type":"Question",name:o.question,acceptedAnswer:{"@type":"Answer",text:o.answer}})}),this.createSnippets({"@context":"https://schema.org","@type":"FAQPage",mainEntity:n})}}createSnippets(e){let n=document.createElement("script");n.type="application/ld+json",n.innerHTML=JSON.stringify(e),document.getElementsByTagName("head")[0].appendChild(n)}pushSnippets(e){window.snippet=window.snippet||[],window.snippet.push(e)}decodeHtml(e){return(new DOMParser).parseFromString(e,"text/html").documentElement.textContent??""}static#e=this.\u0275fac=function(n){return new(n||t)(Mt(qh),Mt(yn),Mt(qt))};static#t=this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function hD(t,i){if(1&t&&(a(0,"li")(1,"a",5)(2,"span"),h(3),l()()()),2&t){const e=_().$implicit,n=_(2);c(1),q1(e.identifier.toLowerCase()),Ue("href","whatsapp"==e.identifier.toLowerCase()?"https://api.whatsapp.com/send?phone=55"+n.changeValue(e.content):e.content,fe),Ue("title",e.identifier.toLowerCase()),c(1),q1(e.identifier.toLowerCase()),c(1),dt(" ",e.identifier.toLowerCase()," ")}}function mD(t,i){if(1&t&&(ht(0),C(1,hD,4,9,"li",4),mt()),2&t){const e=i.$implicit;c(1),d("ngIf",""!=e.content)}}function fD(t,i){if(1&t&&(a(0,"div",2)(1,"ul"),C(2,mD,2,1,"ng-container",3),l()()),2&t){const e=_();c(2),d("ngForOf",e.socialNetworks)}}let pD=(()=>{class t{constructor(e,n,r,o){this.socialNetworkService=e,this.commomService=n,this.sharedService=r,this.snippet=o,this.dataDevice=""}ngOnInit(){}ngOnDestroy(){this.socialNetworkSubs$.unsubscribe()}changeValue(e){return e.replace(/[^0-9]/gi,"")}onElementVisible(){""!==this.dataDevice&&("mobile"===this.dataDevice.toLowerCase()&&!this.commomService.isDevice()||"desktop"===this.dataDevice.toLowerCase()&&this.commomService.isDevice())||(this.socialNetworkSubs$=this.sharedService.socialNetwork$.subscribe(e=>{null!=e&&(this.socialNetworks=e,this.commomService.finishLoadComponent("onJetSocialNetworkLoaded"))}))}static#e=this.\u0275fac=function(n){return new(n||t)($(qh),$(qt),$(yn),$(Hp))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-social-network"]],inputs:{dataDevice:["data-device","dataDevice"]},decls:2,vars:1,consts:[["jetVisibilityCheck","",1,"jetlazyload",3,"elementVisible"],["class","jet-social-network",4,"ngIf"],[1,"jet-social-network"],[4,"ngFor","ngForOf"],[4,"ngIf"],["target","_blank",3,"href","title"]],template:function(n,r){1&n&&(a(0,"div",0),J("elementVisible",function(){return r.onElementVisible()}),C(1,fD,3,1,"div",1),l()),2&n&&(c(1),d("ngIf",null!=r.socialNetworks&&r.socialNetworks.length>0))},dependencies:[ei,en,Yo],encapsulation:2})}return t})(),Ou=(()=>{class t{constructor(e){this.http=e}alertMe(e){return this.http.post("/api",{request:"111d873e-0fb6-4e48-88af-082c64b65e66/643cd652-4c13-40cf-b738-dc1317580374",json:e})}getBrands(e){var n="";return e&&(n+="?onlyFeatured="+e),this.http.post("/api",{request:"111d873e-0fb6-4e48-88af-082c64b65e66/9b1c4d71-8789-475e-a66c-1b149002330d",params:n,json:null})}getCatalogDetail(e){return this.http.post("/api",{request:"111d873e-0fb6-4e48-88af-082c64b65e66/f2cf1c69-6cae-4a5b-b5a3-356e2b4bde4a",params:e,json:null})}getCatalogProducts(e){let n=new wr;null!=e.pageNumber&&null!=e.pageNumber&&e.pageNumber>0&&(n=n.set("page",e.pageNumber.toString())),null!=e.pageSize&&null!=e.pageSize&&e.pageSize>0&&(n=n.set("pageSize",e.pageSize.toString())),null!=e.idCategories&&null!=e.idCategories&&e.idCategories.length>0&&(n=n.set("idCategories",e.idCategories)),null!=e.textLink&&null!=e.textLink&&""!=e.textLink&&(n=n.set("textLink",e.textLink.toString())),null!=e.idGroupingType&&null!=e.idGroupingType&&e.idGroupingType.length>0&&(n=n.set("idGroupingType",e.idGroupingType)),null!=e.variations&&null!=e.variations&&e.variations.length>0&&(n=n.set("idVariation",e.variations)),null!=e.idAttribute&&null!=e.idAttribute&&e.idAttribute.length>0&&(n=n.set("idAttribute",e.idAttribute)),null!=e.initialPrice&&null!=e.initialPrice&&e.initialPrice.length>
30&&(n=n.set("ofPrice",e.initialPrice)),null!=e.finalPrice&&null!=e.finalPrice&&e.finalPrice.length>0&&(n=n.set("toPrice",e.finalPrice)),null!=e.order&&null!=e.order&&e.order.length>0&&(n=n.set("sortBy",e.order)),n=n.set("showProductGroupingFilter","true");var r={request:"111d873e-0fb6-4e48-88af-082c64b65e66/5bda1c54-8432-47ca-baf4-12f3cb8c22b7",params:"?"+n.toString(),json:null};return this.http.post("/api",r)}getTreeCategories(){return this.http.post("/api",{request:"111d873e-0fb6-4e48-88af-082c64b65e66/d9c2996e-706b-43c2-80f5-1ca36dc4b006",json:null})}getBrandProducts(e){let n=new wr;null!=e.pageNumber&&null!=e.pageNumber&&e.pageNumber>0&&(n=n.set("page",e.pageNumber.toString())),null!=e.pageSize&&null!=e.pageSize&&e.pageSize>0&&(n=n.set("pageSize",e.pageSize.toString())),null!=e.idCategories&&null!=e.idCategories&&e.idCategories.length>0&&(n=n.set("idCategories",e.idCategories)),null!=e.textLink&&null!=e.textLink&&""!=e.textLink&&(n=n.set("textLink",e.textLink.toString())),null!=e.idGroupingType&&null!=e.idGroupingType&&e.idGroupingType.length>0&&(n=n.set("idGroupingType",e.idGroupingType)),null!=e.variations&&null!=e.variations&&e.variations.length>0&&(n=n.set("idVariation",e.variations)),null!=e.idAttribute&&null!=e.idAttribute&&e.idAttribute.length>0&&(n=n.set("idAttribute",e.idAttribute)),null!=e.initialPrice&&null!=e.initialPrice&&e.initialPrice.length>0&&(n=n.set("ofPrice",e.initialPrice)),null!=e.finalPrice&&null!=e.finalPrice&&e.finalPrice.length>0&&(n=n.set("toPrice",e.finalPrice)),null!=e.order&&null!=e.order&&e.order.length>0&&(n=n.set("sortBy",e.order)),n=n.set("showProductGroupingFilter","true");var r={request:"111d873e-0fb6-4e48-88af-082c64b65e66/cc703370-01d5-426e-93f5-e8a67250b886",params:"?"+n.toString(),json:null};return this.http.post("/api",r)}getGroupProducts(e,n){let r=new wr;null!=n.pageNumber&&null!=n.pageNumber&&n.pageNumber>0&&(r=r.set("page",n.pageNumber.toString())),null!=n.pageSize&&null!=n.pageSize&&n.pageSize>0&&(r=r.set("pageSize",n.pageSize.toString())),null!=e&&null!=e&&e>0&&(r=r.set("idGroup",e.toString())),null!=n.textLink&&null!=n.textLink&&""!=n.textLink&&(r=r.set("textLink",n.textLink.toString())),null!=n.idCategories&&null!=n.idCategories&&n.idCategories.length>0&&(r=r.set("idCategories",n.idCategories)),null!=n.idGroupingType&&null!=n.idGroupingType&&n.idGroupingType.length>0&&(r=r.set("idGroupingType",n.idGroupingType)),null!=n.variations&&null!=n.variations&&n.variations.length>0&&(r=r.set("idVariation",n.variations)),null!=n.brand&&null!=n.brand&&n.brand.length>0&&(r=r.set("idBrand",n.brand)),null!=n.idAttribute&&null!=n.idAttribute&&n.idAttribute.length>0&&(r=r.set("idAttribute",n.idAttribute)),null!=n.initialPrice&&null!=n.initialPrice&&n.initialPrice.length>0&&(r=r.set("ofPrice",n.initialPrice)),null!=n.finalPrice&&null!=n.finalPrice&&n.finalPrice.length>0&&(r=r.set("toPrice",n.finalPrice)),null!=n.order&&null!=n.order&&n.order.length>0&&(r=r.set("sortBy",n.order)),r=r.set("showProductGroupingFilter","true");var o={request:"111d873e-0fb6-4e48-88af-082c64b65e66/ebf4f4de-7935-480f-b0a9-c0fddebb8a33",params:"?"+r.toString(),json:null};return this.http.post("/api",o)}getCategoryProducts(e){let n=new wr;null!=e.pageNumber&&null!=e.pageNumber&&e.pageNumber>0&&(n=n.set("page",e.pageNumber.toString())),null!=e.pageSize&&null!=e.pageSize&&e.pageSize>0&&(n=n.set("pageSize",e.pageSize.toString())),null!=e.textLink&&null!=e.textLink&&""!=e.textLink&&(n=n.set("textLink",e.textLink.toString())),null!=e.idCategories&&null!=e.idCategories&&e.idCategories.length>0&&(n=n.set("idCategories",e.idCategories)),null!=e.idGroupingType&&null!=e.idGroupingType&&e.idGroupingType.length>0&&(n=n.set("idGroupingType",e.idGroupingType)),null!=e.variations&&null!=e.variations&&e.variations.length>0&&(n=n.set("idVariation",e.variations)),null!=e.brand&&null!=e.brand&&e.brand.length>0&&(n=n.set("idBrand",e.brand)),null!=e.idAttribute&&null!=e.idAttribute&&e.idAttribute.length>0&&(n=n.set("idAttribute",e.idAttribute)),null!=e.initialPrice&&null!=e.initialPrice&&e.initialPrice.length>
30&&(n=n.set("ofPrice",e.initialPrice)),null!=e.finalPrice&&null!=e.finalPrice&&e.finalPrice.length>0&&(n=n.set("toPrice",e.finalPrice)),null!=e.order&&null!=e.order&&e.order.length>0&&(n=n.set("sortBy",e.order)),n=n.set("showProductGroupingFilter","true");var r={request:"111d873e-0fb6-4e48-88af-082c64b65e66/198bca71-8b1e-48d8-947f-79baa37b8fa7",params:"?"+n.toString(),json:null};return this.http.post("/api",r)}getRelatedProducts(e){return null!=e&&null!=e&&e>0?this.http.post("/api",{request:"111d873e-0fb6-4e48-88af-082c64b65e66/07f5bda1-edab-4847-8e87-93513086a826",params:e,json:null}):new Se}getAlsoPurchasedProducts(e){return null!=e&&null!=e&&e>0?this.http.post("/api",{request:"111d873e-0fb6-4e48-88af-082c64b65e66/9900e674-63c9-4b28-a799-6be8f0599de3",params:e,json:null}):new Se}searchProducts(e,n){let r=new wr;null!=e&&null!=e&&e>0&&(r=r.set("qtdRegister",e.toString())),null!=n&&null!=n&&n.length>0&&(r=r.set("word",n.toString()));var o={request:"111d873e-0fb6-4e48-88af-082c64b65e66/a9711c25-3006-45e3-b5be-0bfc279a9a60",params:"?"+r.toString(),json:null};return this.http.post("/api",o)}sendTerm(e){return e.term&&(e.term=e.term.toLowerCase()),this.http.post("/api",{request:"111d873e-0fb6-4e48-88af-082c64b65e66/e0478cef-b65e-47ad-a349-d14d973817bb",json:e})}searchProductsFilters(e,n){if(parseFloat(n?.initialPrice)>parseFloat(n.finalPrice))return k0(new Error('O "Pre\xe7o inicial" n\xe3o deve ser maior que o "Pre\xe7o final"'));let r=new wr;e&&(r=r.set("word",e.toString())),null!=n.pageNumber&&null!=n.pageNumber&&n.pageNumber>0&&(r=r.set("page",n.pageNumber.toString())),null!=n.pageSize&&null!=n.pageSize&&n.pageSize>0&&(r=r.set("pageSize",n.pageSize.toString())),null!=n.idCategories&&null!=n.idCategories&&n.idCategories.length>0&&(r=r.set("idCategories",n.idCategories)),null!=n.idGroupingType&&null!=n.idGroupingType&&n.idGroupingType.length>0&&(r=r.set("idGroupingType",n.idGroupingType)),null!=n.variations&&null!=n.variations&&n.variations.length>0&&(r=r.set("idVariation",n.variations)),null!=n.brand&&null!=n.brand&&n.brand.length>0&&(r=r.set("idBrand",n.brand)),null!=n.idAttribute&&null!=n.idAttribute&&n.idAttribute.length>0&&(r=r.set("idAttribute",n.idAttribute)),null!=n.initialPrice&&null!=n.initialPrice&&n.initialPrice.length>0&&(r=r.set("ofPrice",n.initialPrice)),null!=n.finalPrice&&null!=n.finalPrice&&n.finalPrice.length>0&&(r=r.set("toPrice",n.finalPrice)),null!=n.order&&null!=n.order&&n.order.length>0&&(r=r.set("sortBy",n.order)),null!=n.idEventList&&null!=n.idEventList&&n.idEventList.length>0&&(r=r.set("idEventList",n.idEventList)),r=r.set("showProductGroupingFilter","true");var o={request:"111d873e-0fb6-4e48-88af-082c64b65e66/d6fe60e5-f8d0-41f7-8ab0-497c06dceed4",params:"?"+r.toString(),json:null};return this.http.post("/api",o)}searchProductsByCode(e,n){let r=new wr;null!=e.pageNumber&&null!=e.pageNumber&&e.pageNumber>0&&(r=r.set("page",e.pageNumber.toString())),null!=e.pageSize&&null!=e.pageSize&&e.pageSize>0&&(r=r.set("pageSize",e.pageSize.toString())),null!=e.order&&null!=e.order&&e.order.length>0&&(r=r.set("sortBy",e.order));var o={request:"111d873e-0fb6-4e48-88af-082c64b65e66/ad3cb16b-822d-499a-a6ad-7467dc300eeb",params:"?"+r.toString(),json:n};return this.http.post("/api",o)}getShowcase(e){let n=new wr;null!=e&&null!=e&&e>0&&(n=n.set("pageSize",e.toString()),n=n.set("top",e.toString()));var r={request:"111d873e-0fb6-4e48-88af-082c64b65e66/cba7633e-6e1c-4d23-94d3-0450b99ea4c5",params:"?"+n.toString(),json:null};return this.http.post("/api",r)}getAllGroups(){return this.http.post("/api",{request:"111d873e-0fb6-4e48-88af-082c64b65e66/39696404-ab66-42df-9430-df09522a2934",json:null})}getGroupProductsShowcase(e,n){let r=new wr;null!=e&&null!=e&&e>0&&(r=r.set("pageSize",e.toString()),r=r.set("top",e.toString())),n&&(r=r.set("idGroup",n.toString()));var o={request:"111d873e-0fb6-4e48-88af-082c64b65e66/408f971c-b8e9-4b5c-89e9-7a8bf2b2a618",params:"?"+r.toString(),json:null};return this.http.post("/api",o)}getMostSelled(e){let n=new wr;null!=e&&null!=e&&e>0&&(n=n.set("pageSize",e.toString()),n=n.set("top",e.toString()));var r={request:"111d873e-0fb6-4e48-88af-082c64b65e66/96a44d5a-6dc6-420f-ada0-440f23877e68",params:"?"+n.toString(),json:null};return this.http.post("/api",r)}getDetailProduct(e,n=null,r=0){return this.http.post("/api",{request:"111d873e-0fb6-4e48-88af-082c64b65e66/a6a84796-6d14-40bc-91c4-2782b906b442",params:`${e}?`+(n?`region_id=${n}&`:"")+(r?`idCustomer=${r??""}`:""),json:null})}postSendRatingRegistration(e){return this.http.post("/api",{request:"111d873e-0fb6-4e48-88af-082c64b65e66/652a26db-6719-454c-a9f4-105da7de81e4",json:e})}getProductImages(e){return this.http.post("/api",{request:"111d873e-0fb6-4e48-88af-082c64b65e66/36cc47e3-3f91-4d0c-86f0-b5c2dcdebdc3",params:e,json:null})}getProductEventList(e,n,r){return this.http.post("/api",{request:"111d873e-0fb6-4e48-88af-082c64b65e66/64829bdb-9f09-47d5-85ba-eb4d7aa91b9f",params:e+"/"+n+"/"+r,json:null})}getProductMainSecondaryImages(e){const n={request:"111d873e-0fb6-4e48-88af-082c64b65e66/123e4567-e89b-12d3-a456-426614174000",params:e.toString()+"/main-secondary",json:null};return this.http.post("/api",n)}getAllPartners(){return this.http.post("/api",{request:"111d873e-0fb6-4e48-88af-082c64b65e66/20f77863-b912-42c4-930a-b9a99950f60d",json:null})}getPartnerProducts(e,n){let r=new wr;null!=n.pageNumber&&null!=n.pageNumber&&n.pageNumber>0&&(r=r.set("page",n.pageNumber.toString())),null!=n.pageSize&&null!=n.pageSize&&n.pageSize>0&&(r=r.set("pageSize",n.pageSize.toString())),null!=e&&null!=e&&e>0&&(r=r.set("idPartner",e.toString())),null!=n.textLink&&null!=n.textLink&&""!=n.textLink&&(r=r.set("textLink",n.textLink.toString())),null!=n.idCategories&&null!=n.idCategories&&n.idCategories.length>0&&(r=r.set("idCategories",n.idCategories)),null!=n.idGroupingType&&null!=n.idGroupingType&&n.idGroupingType.length>0&&(r=r.set("idGroupingType",n.idGroupingType)),null!=n.variations&&null!=n.variations&&n.variations.length>0&&(r=r.set("idVariation",n.variations)),null!=n.brand&&null!=n.brand&&n.brand.length>0&&(r=r.set("idBrand",n.brand)),null!=n.idAttribute&&null!=n.idAttribute&&n.idAttribute.length>0&&(r=r.set("idAttribute",n.idAttribute)),null!=n.initialPrice&&null!=n.initialPrice&&n.initialPrice.length>0&&(r=r.set("ofPrice",n.initialPrice)),null!=n.finalPrice&&null!=n.finalPrice&&n.finalPrice.length>0&&(r=r.set("toPrice",n.finalPrice)),null!=n.order&&null!=n.order&&n.order.length>0&&(r=r.set("sortBy",n.order)),r=r.set("showProductGroupingFilter","true");var o={request:"111d873e-0fb6-4e48-88af-082c64b65e66/cc7251df-d589-4dcf-85fc-bdce9c13d195",params:"?"+r.toString(),json:null};return this.http.post("/api",o)}getAdditionalProducts(e){return this.http.post("/api",{request:"111d873e-0fb6-4e48-88af-082c64b65e66/65c5b85e-7a2a-4269-a54f-ebcc59f87483",params:e,json:null})}static#e=this.\u0275fac=function(n){return new(n||t)(Mt(ko))};static#t=this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),gD=(()=>{class t{constructor(e){this.sharedDataCommonService=e,this.productIdAdds=[],this.page=document.location.pathname,this.subscribeCompany$=this.sharedDataCommonService.currentCompany$.subscribe(n=>{null!=n&&null!=n&&n.statusGTM&&null!=n.gtm&&n.gtm.length>0&&document.addEventListener("onJetPushDataLayer",r=>{this.createScriptGtm(n.gtm,r.detail?.partytown??!1)},{passive:!0})})}createScriptGtm(e,n=!1){if(n)return;let r=document.createElement("script");r.type="text/javascript",r.innerHTML=`\n\t\t(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});\n\t\tvar f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;
3j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;\n\t\tf.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','${e}');`,document.getElementsByTagName("head")[0].appendChild(r);let o=document.createElement("noscript");o.innerHTML=`<iframe src="https://www.googletagmanager.com/ns.html?id=${e}"height="0" width="0" style="display:none;visibility:hidden"></iframe>`,document.getElementsByTagName("body")[0].appendChild(o)}gtmJson(e,n,r,o){const s=[];let u="",v=1,w=0;if(void 0!==e)return e.forEach(P=>{(P.orderItemVariations||P.cartItemVariations)&&(u=(P.orderItemVariations??P.cartItemVariations).map(ke=>ke.nameVariation).join(" - "));let F=null;if(P.skUs&&Array.isArray(P.skUs)&&P.skUs.length>0){const De=P.skUs.find(ke=>!0===ke.standard);F=De&&!1!==De.visible&&("number"!=typeof De.stock||De.stock>0)?De:P.skUs.find(je=>!0===je.visible&&("number"!=typeof je.stock||je.stock>0))??P.skUs[0]}F&&F.variations&&(u=F.variations.map(De=>De.name).join(" - "));const R=F?.idSku||P.idSku||0,V=R&&R>0?`${P.idProduct}_${R}`:P.idProduct.toString();let ne=P?.mainCategoryName;!ne&&P?.categories?ne=P?.categories.filter(De=>1==De.default)[0]?.name:!ne&&P?.categoria?ne=P?.categoria.filter(De=>1==De.default)[0]?.name:!ne&&P?.category&&(ne=P?.category),s.push({id:P.idProduct,sku:R,code:P.code??"",item_id:V,name:P.originalName||P.nameProduct||P.name,discount:P.pricePromotion?P.price-P.pricePromotion:0,index:v++,brand:P.brand?.name||"",category:ne??"",variant:u,price:P.unitPrice||P.price,quantity:P.quantity||1,gtin:P?.gtin??""}),n&&(s[w].list=n,s[w].list_id=r),o&&(s[w].affiliation=o),w++}),s}static#e=this.\u0275fac=function(n){return new(n||t)(Mt(yn))};static#t=this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Cm=(()=>{class t{constructor(){this.detailSource=new Ai(null),this.currentDetail$=this.detailSource.asObservable(),this.alterSku=new Ai(null),this.currentSku$=this.alterSku.asObservable()}changeValueDetail(e){this.detailSource.next(e)}changeSkuValue(e){this.alterSku.next(e)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vD=(()=>{class t{constructor(e){this.sharedDataDetailService=e}initScript(e,n){this.company=e,this.sharedDataCommonService=n;let r=document.createElement("script");r.type="text/javascript",r.innerHTML=`\n (function (srcjs) {\n window._edrone = window._edrone || {};\n _edrone.app_id = '${this.company.edrone.appId}';\n _edrone.version = '1.0.0';\n _edrone.platform_version = '1.0.0';\n _edrone.platform = 'jet';\n var doc = document.createElement('script');\n doc.type = 'text/javascript';\n doc.async = true;\n doc.src = ('https:' == document.location.protocol ? 'https:' : 'http:') + srcjs;\n var s = document.getElementsByTagName('script')[0];\n s.parentNode.insertBefore(doc, s);\n })("//d3bo67muzbfgtl.cloudfront.net/edrone_2_0.js?app_id=${this.company.edrone.appId}");\n `,document.getElementsByTagName("head")[0].appendChild(r)}processEventDataLayer(e){let n=document.createElement("script");switch(e.detail.category){case"home":n.type="text/javascript",n.innerHTML="\n window._edrone = window._edrone || {}; \n _edrone.action_type = 'homepage_view'; //override the default \"other\" value \n _edrone.init();\n ",document.getElementsByTagName("body")[0].appendChild(n);break;case"product":this.sharedDataDetailService.currentDetail$.subscribe(r=>{if(null!=r){var o=r.categories.map(v=>v.idCategory).join("~"),s=r.categories.map(v=>encodeURIComponent(v.name)).join("~"),u=`\n window._edrone = window._edrone || {};\n _edrone.product_skus = '${r.skUs?r.skUs.find(v=>v.standard)?r.idProduct+"_"+r.skUs.find(v=>v.standard).idSku:r.idProduct+"_"+r.skUs[0].idSku:r.idProduct}';\n _edrone.product_ids = '${r.idProduct}';\n _edrone.product_titles = '${encodeURIComponent(r.name)}'; // use url_encode\n _edrone.product_images = '${r.imageHome}'; // use url_encode \n _edrone.product_urls = '${document.location.href}'; // use url_encode \n _edrone.product_availability = 1;\n _edrone.product_category_ids = '${o}' // use "~" sign to separate values from each other \n _edrone.product_category_names = '${s}' // use "~" sign to separate values from each other and url_encode on single value\n _edrone.action_type = 'product_view';\n _edrone.init();\n `;n.type="text/javascript",n.innerHTML=u,document.getElementsByTagName("body")[0].appendChild(n)}});break;case"department":document.addEventListener("onJetBreadcrumbsLoaded",r=>{var o=r.detail.slice(1),v=`\n window._edrone = window._edrone || {};\n _edrone.product_category_ids = "${o.map(w=>w.level).join("~")}" // use "~" sign to separate values from each other \n _edrone.product_category_names = "${o.map(w=>encodeURIComponent(w.name)).join("~")}" // use "~" sign to separate values from each other and url_encode on single value\n _edrone.action_type = 'category_view';
3\n _edrone.init();\n `;n.type="text/javascript",n.innerHTML=v,document.getElementsByTagName("body")[0].appendChild(n)},{passive:!0,once:!0});break;case"group":document.addEventListener("onJetGroupProductsLoaded",r=>{n.type="text/javascript",n.innerHTML=`\n window._edrone = window._edrone || {};\n _edrone.product_category_ids = "${encodeURIComponent(r.detail.value.name)}" // use "~" sign to separate values from each other \n _edrone.product_category_names = "${r.detail.value.idGroup}" // use "~" sign to separate values from each other and url_encode on single value\n _edrone.action_type = 'category_view';\n _edrone.init();\n `,document.getElementsByTagName("body")[0].appendChild(n)},{once:!0,passive:!0});break;case"brand":document.addEventListener("onJetBrandProductsLoaded",r=>{n.type="text/javascript",n.innerHTML=`\n window._edrone = window._edrone || {};\n _edrone.product_category_ids = "${encodeURIComponent(r.detail.value.name)}" // use "~" sign to separate values from each other \n _edrone.product_category_names = "${r.detail.value.idBrand}" // use "~" sign to separate values from each other and url_encode on single value\n _edrone.action_type = 'category_view';\n _edrone.init(); \n `,document.getElementsByTagName("body")[0].appendChild(n)},{once:!0,passive:!0})}}processEvent(e){let n=document.createElement("script");switch(e.detail.type){case"add_to_cart":var r=`\n _edrone.product_ids = ${e.detail.products[0].idProduct}\n _edrone.product_skus = "${e.detail.sku?e.detail.products[0].idProduct+"_"+e.detail.sku:e.detail.products[0].idProduct}"\n _edrone.product_titles = '${encodeURIComponent(e.detail.products[0].name)}'\n _edrone.product_images = '${e.detail.products[0].productImage?encodeURIComponent(e.detail.products[0].productImage?.imageDefault):""}'\n _edrone.product_urls = '${document.location.origin+e.detail.products[0].urlProduct}'\n _edrone.product_category_ids = ${e.detail.products[0].categoria?e.detail.products[0].categoria[0].idCategory:0}\n _edrone.product_category_names = '${e.detail.products[0].categoria?encodeURIComponent(e.detail.products[0].categoria[0].name):""}'\n _edrone.action_type = "add_to_cart"\n _edrone.init() \n `;n.type="text/javascript",n.innerHTML=r,document.getElementsByTagName("body")[0].appendChild(n);break;case"sign_up":r=`\n _edrone.customer_tags = 'Footer';\n _edrone.email = "${e.detail.params.email}";\n _edrone.phone = "${e.detail.params.phone}";\n _edrone.first_name = "${encodeURIComponent(e.detail.params.name.split(" ")[0])}";\n _edrone.action_type = 'subscribe';\n _edrone.init();\n `,n.type="text/javascript",n.innerHTML=r,document.getElementsByTagName("body")[0].appendChild(n)}}signUpCheckout(e,n,r){let o=document.createElement("script");var s=`\n _edrone.customer_tags = 'Checkout';\n _edrone.email = "${e}";\n _edrone.phone = "${r}"; \n _edrone.first_name = "${encodeURIComponent(n.split(" ")[0])}";\n _edrone.last_name = "${encodeURIComponent(n.split(" ")[1])}";\n _edrone.action_type = 'subscribe';\n _edrone.init();\n `;o.type="text/javascript",o.innerHTML=s,document.getElementsByTagName("body")[0].appendChild(o)}sendOrder(e,n){this.company=n;var r=e.orderItems.map(R=>`${R.idSku?R.idProduct+"_"+R.idSku:R.idProduct}`).join("|"),o=e.orderItems.map(R=>`${R.idProduct}`).join("|"),s=e.orderItems.map(R=>`${encodeURIComponent(R.nameProduct)}`).join("|"),u=e.orderItems.map(R=>`${encodeURIComponent(R.image)}`).join("|"),v=e.orderItems.map(R=>`${encodeURIComponent(R.category)}`).join("|"),w=e.orderItems.map(R=>`${encodeURIComponent(R.quantity)}`).join("|"),P=`\n window._edrone = window._edrone || {};\n _edrone.action_type = 'order';\n _edrone.email = '${e.email}';\n _edrone.user_id = '${e.idCustomer}';\n _edrone.first_name = '${e.nameCustomer.split(" ")[0]}';\n _edrone.last_name = '${e.nameCustomer.split(" ")[e.nameCustomer.split(" ").length-1]}';\n _edrone.subscriber_status = '1';\n _edrone.product_skus = '${r}'; // use "|" sign to separate products from each other\n _edrone.product_ids = '${o}'; // use "|" sign to separate products from each other\n _edrone.product_titles = '${s}'; // use "|" sign to separate products from each other and use url_encode\n _edrone.product_images = '${u}'; // use "|" sign to separate products from each other and use url_encode\n _edrone.product_category_names = '${v}'; // use "|" sign to separate products from each other and "~" to separate values connected to product from each other and use url_encode\n _edrone.product_counts = '${w}'; // use "|" sign to separate products from each other\n _edrone.product_urls = '${e.orderItems.map(R=>document.location.origin+"/"+R.textLink+"/p").join("|")}'; // use "|" sign to separate products from each other and use url_encode\n _edrone.order_id = '${e.idOrder}';\n _edrone.country = 'BR';\n _edrone.city = '${encodeURIComponent(e.address.city)}';\n _edrone.base_currency = 'BRL';\n _edrone.order_currency = 'BRL';\n _edrone.base_payment_value = '${e.total}';\n _edrone.order_payment_value = '${e.total}'; \n `;let F=document.createElement("script");F.type="text/javascript",F.innerHTML=P,document.getElementsByTagName("body")[0].appendChild(F)}static#e=this.\u0275fac=function(n){return new(n||t)(Mt(Cm))};static#t=this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_D=(()=>{class t{constructor(e,n){this.sharedDataCommonService=e,this.companyService=n,this.sharedDataCommonService.currentCompany$.subscribe(r=>{null!=r&&null!=r&&r.idAnalytics&&r.idAnalytics.length>
30&&(this.createScriptGA(r.idAnalytics),this.getAdwords())})}createScriptGA(e){let n=document.createElement("script");n.type="text/javascript",n.src=`https://www.googletagmanager.com/gtag/js?id=${e}`,document.getElementsByTagName("head")[0].appendChild(n);let r=document.createElement("script");r.innerHTML=`window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', '${e}');`,document.getElementsByTagName("head")[0].appendChild(r)}event(e,n={}){var r=setInterval(()=>{window.gtag&&(clearInterval(r),"conversion"===e?this.sendEvent(e,n):window.gtag("event",e,n))},200)}getAdwords(){this.companyService.getAdwords().subscribe(e=>{if(e&&e.toString().length>0)for(var n in e)window.gtag("config",e[n].idConversao)},e=>{})}sendEvent(e,n){this.companyService.getAdwords().subscribe(r=>{if(r&&r.toString().length>0)for(var o in r)n.send_to=r[o].idConversao+"/"+r[o].rotuloConversao,window.gtag("event",e,n)},r=>{})}static#e=this.\u0275fac=function(n){return new(n||t)(Mt(yn),Mt(Qo))};static#t=this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),CD=(()=>{class t{constructor(){}insertPixel(e,n){let r=document.createElement("script");r.type="text/javascript",r.async=!0,r.innerHTML=`\n !function(f,b,e,v,n,t,s)\n {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n n.queue=[];t=b.createElement(e);t.async=!0;\n t.src=v;s=b.getElementsByTagName(e)[0];\n s.parentNode.insertBefore(t,s)}(window, document,'script',\n 'https://connect.facebook.net/en_US/fbevents.js');\n fbq('init', '${e.pixelId}');\n `,document.getElementsByTagName("head")[0].appendChild(r);let o=document.createElement("noscript"),s=document.createElement("img");s.height=1,s.width=1,s.setAttribute("style","display:none"),s.src=`https://www.facebook.com/tr?id=${e.pixelId}&ev=PageView&noscript=1`,o.appendChild(s),document.getElementsByTagName("head")[0].appendChild(o)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),nv=(()=>{class t{constructor(e,n,r,o,s,u,v,w){this.sharedDataCommonService=e,this.commomService=n,this.titleService=r,this.gtmService=o,this.edroneService=s,this.gaService=u,this.pixelService=v,this.socialNetworkService=w,this.page=document.location.pathname,this.dataLayer=window.dataLayer||[],this.customerEmail=""}startParams(e=!1){this.sharedDataCommonService.currentCompany$.subscribe(n=>{if(null!=n&&null!=n)if(this.company=n,this.insertPartyTown(e),this.company.edrone?.status&&this.edroneService.initScript(this.company,this.sharedDataCommonService),n.pixelActive&&this.pixelService.insertPixel(n,e),"/"===this.page||""===this.page)this.commomService.finishLoadComponent("onJetPushDataLayer",{detail:{category:"home",title:document.title,partytown:e}});else if(this.page.indexOf("busca?n")>-1)this.commomService.finishLoadComponent("onJetPushDataLayer",{detail:{category:"search",title:document.title,partytown:e}});else{switch(this.page.split("/").pop()){case"c":this.pageType="department";break;case"m":this.pageType="brand";break;case"g":this.pageType="group";break;case"p":this.pageType="product";break;case"success":this.pageType="success";break;case"paymentReturn":this.pageType="paymentReturn"}document.querySelector("title")?this.commomService.finishLoadComponent("onJetPushDataLayer",{detail:{category:this.pageType,title:document.querySelector("title").outerText,partytown:e}}):(this.titleService.setTitle(""),new MutationObserver(r=>{this.commomService.finishLoadComponent("onJetPushDataLayer",{detail:{category:this.pageType,title:r[0].target.outerText,partytown:e}})}).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0}))}}),document.addEventListener("onJetPushDataLayer",n=>{if(n.detail.category){var r={pageType:n.detail.category,pageTitle:n.detail.title,pageUrl:window.location.href};this.pushDataLayer(r)}this.company.edrone?.status&&this.edroneService.processEventDataLayer(n)},{passive:!0}),document.addEventListener("onJetPushDataLayerEvent",n=>{if(null!=n.detail){var r=void 0!==n.detail.name&&n.detail.name,o=void 0!==n.detail.id&&n.detail.id;if(this.company){var s={event:n.detail.type,ecommerce:{currency:"BRL"}};
3n.detail.products&&(s.ecommerce.items=this.gtmService.gtmJson(n.detail.products,r,o,this.company.nameStore)),Boolean(sessionStorage.getItem("emailGTM"))&&(s.customerEmail=sessionStorage.getItem("emailGTM")),r&&(s.ecommerce.item_list_name=r,s.ecommerce.item_list_id=o),void 0!==n.detail.params&&Object.entries(n.detail.params).forEach(([u,v])=>{s.ecommerce[u]=v}),this.pushDataLayer(s),this.company.pixelActive&&this.convertToPixel(n.detail,r,o)}}this.company.edrone?.status&&this.edroneService.processEvent(n)},{passive:!0})}pushDataLayer(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)}generateEventId(){return typeof crypto<"u"&&"function"==typeof crypto.randomUUID?crypto.randomUUID():`${Date.now()}-${Math.random().toString(36).slice(2,11)}`}getOrCreateAnonymousId(){const e="jetFbExternalId";try{let n=localStorage.getItem(e);return n||(n=this.generateEventId(),localStorage.setItem(e,n)),n}catch{return this.generateEventId()}}splitCustomerName(e){var n=(e||"").trim().split(" ").filter(r=>r.length>0);return{firstName:n.shift()||"",lastName:n.join(" ")}}fillCustomerData(e,n){if(n?.email&&(e.customer_email=n.email),n?.phone&&(e.customer_phone=n.phone),n?.name){var{firstName:r,lastName:o}=this.splitCustomerName(n.name);e.customer_first_name=r,e.customer_last_name=o}}trackPixel(e,n){var r=this.generateEventId();return fbq("track",e,n,{eventID:r}),n.event_id=r,r}convertToPixel(e,n,r){var o,s=void 0;switch(e.type){case"view_item":s="ViewContent",o={content_ids:r.toString(),content_category:e.products[0].categories.find(R=>R.default)?.name,content_name:e.products[0].nameWithoutHtml,content_type:"product",currency:"BRL",value:e.products[0].pricePromotion&&e.products[0].pricePromotion>0?e.products[0].pricePromotion:e.products[0].price,content_url:document.location.pathname,num_items:1},this.trackPixel(s,o);break;case"add_to_cart":s="AddToCart";var u=[e.products[0].idProduct];e.sku&&e.sku>0&&u.push(e.sku),o={content_ids:u.toString(),content_name:e.products[0].nameWithoutHtml,content_type:"product",currency:"BRL",value:(e.products[0].pricePromotion&&e.products[0].pricePromotion>0?e.products[0].pricePromotion:e.products[0].price)*(e.products[0].quantity||1),content_url:document.location.pathname,num_items:e.products[0].quantity||1},this.trackPixel(s,o);break;case"begin_checkout":s="InitiateCheckout";var w=[],P=0,v=0;e.products.map(R=>{var V=R.idProduct.toString();R.idSku&&R.idSku>0&&(V+=","+R.idSku?.toString()),w.push(V),P+=R.quantity,v+=R.priceTotal}),o={content_ids:w.toString(),num_items:P,currency:"BRL",value:v,content_url:document.location.pathname},this.trackPixel(s,o);break;case"add_payment_info":s="AddPaymentInfo",w=[],P=0,e.products.map(R=>{var V=R.idProduct.toString();R.idSku&&R.idSku>0&&(V+=","+R.idSku?.toString()),w.push(V),P+=R.quantity}),o={content_ids:w.toString(),num_items:P,currency:"BRL",value:e.params.value,content_url:document.location.pathname},this.trackPixel(s,o);break;case"sign_up":s="CompleteRegistration",o={content_name:e.params?.method,currency:"BRL",value:0,status:!0,content_url:document.location.pathname},this.trackPixel(s,o),this.fillCustomerData(o,e.params);break;case"generate_lead":s="Lead",o={content_name:e.params?.lead_source,currency:"BRL",value:e.params?.value||0,content_url:document.location.pathname},this.trackPixel(s,o),this.fillCustomerData(o,e.params);break;case"add_to_wishlist":s="AddToWishlist";var F=e.products[0];o={content_ids:F.idProduct.toString(),content_name:F.name,content_type:"product",currency:"BRL",value:e.params?.value||0,content_url:document.location.pathname},this.trackPixel(s,o)}s&&(!o.customer_email&&sessionStorage.getItem("emailGTM")&&(o.customer_email=sessionStorage.getItem("emailGTM")),o.customer_external_id=this.getOrCreateAnonymousId(),this.socialNetworkService.sendEventMeta(o,s,this.company.pixelId,this.company.pixelAccessToken).subscribe(R=>{}))}insertPartyTown(e=!1){if(Boolean(window.document.documentElement.getAttribute("data-tag-assistant-present"))||!e)return;const r=document.createElement("script");r.src="/custom/~partytown/partytown.js",document.head.prepend(r);const o=document.createElement("script");o.innerHTML="partytown = {\n\t\t\tresolveUrl(url, location) {\n\t\t\t\tif(url.hostname !== location.hostname) {\t\t\t\t\t\n\t\t\t\t\tconst proxyUrl = new URL('https://cdn.builder.io/api/v1/proxy-api');\n\t\t\t\t\tproxyUrl.searchParams.append('url', url);\n\t\t\t\t\treturn proxyUrl;\t\t\t\t\t\n\t\t\t\t}\t\t\t\t\n\t\t\t\treturn url;\n\t\t\t},\n\t\t\tforward: ['dataLayer.push', 'ga', 'fbq', 'fb','ttq', 'tiktok'],\n\t\t\tlogCalls: true,\n\t\t\tlogGetters: true,\n\t\t\tlogSetters: true,\n\t\t\tlogStackTraces: false,\n\t\t\tlogScriptExecution: true,\n\t\t\tdebug: false,\n\t\t\tlib: '/custom/~partytown/'\n\t\t}",document.head.prepend(o),setTimeout(()=>{this.createScriptGtmPartytown()},1e3)}createScriptGtmPartytown(){let e=document.createElement("script");e.type="text/partytown",e.innerHTML=`(function (window, document, i) {\n\t\t\twindow['dataLayer'] = window[dataLayer] || [];\n\t \n\t\t\twindow['dataLayer'].push({ 'gtm.start': new Date().getTime(), 'event': 'gtm.js' });\n\t \n\t\t\tvar firstScript = document.getElementsByTagName('script')[0];\n\t\t\tvar gtmScript = document.createElement('script');\n\t\t\tvar dataLayer = 'dataLayer' != 'dataLayer' ? '&l=' + 'dataLayer' : '';\t \n\t\t\tgtmScript.async = true;\n\t\t\tgtmScript.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dataLayer;\n\t \n\t\t\tfirstScript.parentNode.insertBefore(gtmScript, firstScript);\n\t\t })(window, document, '${this.company.gtm}');`,document.getElementsByTagName("head")[0].appendChild(e);let n=document.createElement("noscript");n.innerHTML=`<iframe src="https://www.googletagmanager.com/ns.html?id=${this.company.gtm}" height="0" width="0" style="display:none;visibility:hidden"></iframe>`,document.getElementsByTagName("body")[0].appendChild(n)}static#e=this.\u0275fac=function(n){return new(n||t)(Mt(yn),Mt(qt),Mt(I0),Mt(gD),Mt(vD),Mt(_D),Mt(CD),Mt(qh))};static#t=this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),bs=(()=>{class t{constructor(e,n){this.el=e,this.dom=n,e.nativeElement.onload=()=>{this.setImageSize(e.nativeElement)},this.dom.addEventListener("onJetUpdateImageSize",r=>
3{document.querySelectorAll("[jet-image-size]:not([width]):not([height])").forEach(s=>{s instanceof HTMLImageElement&&this.setImageSize(s)})},{passive:!0})}setImageSize(e){setTimeout(()=>{const r=e.clientHeight||e.naturalHeight;e.setAttribute("width",(e.clientWidth||e.naturalWidth).toString()),e.setAttribute("height",r.toString())},100)}static#e=this.\u0275fac=function(n){return new(n||t)($(To),$(vo))};static#t=this.\u0275dir=Ft({type:t,selectors:[["","jet-image-size",""]]})}return t})();function yD(t,i){if(1&t&&(a(0,"span",22)(1,"span"),h(2),l()()),2&t){const e=_(2).$implicit,n=_(3);c(2),de(n.commomService.priceMask(e.price))}}function bD(t,i){if(1&t&&(a(0,"span",19),C(1,yD,3,1,"span",20),a(2,"span",21)(3,"span"),h(4),l()()()),2&t){const e=_().$implicit,n=_(3);c(1),d("ngIf",e.pricePromotion>0&&e.pricePromotion<e.price),c(3),de(n.commomService.priceMask(e.pricePromotion>0&&e.pricePromotion<e.price?e.pricePromotion:e.price))}}const SD=function(t){return{sold:t}};function wD(t,i){if(1&t&&(a(0,"div",13)(1,"a",14),B(2,"img",15),a(3,"div",16)(4,"span",17),h(5),l(),C(6,bD,5,2,"span",18),l()()()),2&t){const e=i.$implicit,n=_(3);d("ngClass",Oe(8,SD,e.flagExhausted||0==e.stock)),c(1),Ue("href",e.url,fe),Ue("title",e.name),c(1),Ue("alt",e.name),d("src",e.image,fe)("decode",!0),c(3),de(e.name),c(1),d("ngIf",n.showPriceB2C)}}function ID(t,i){if(1&t){const e=ve();a(0,"a",23),J("click",function(){M(e);const r=_(3),o=Wt(3);return L(r.searchPage(o.value))}),h(1," Visualizar todos os produtos "),l()}2&t&&Ue("href",_(3).showViewLink,fe)}function xD(t,i){if(1&t&&(ht(0),a(1,"div",9)(2,"div",10),C(3,wD,7,10,"div",11),C(4,ID,2,1,"a",12),l()(),mt()),2&t){const e=_(2);c(3),d("ngForOf",e.products.slice(0,5)),c(1),d("ngIf",""!=e.showViewLink)}}function DD(t,i){if(1&t&&(a(0,"div",24)(1,"strong"),h(2,"Nenhum resultado encontrado"),l(),a(3,"span"),h(4,"O termo "),a(5,"strong"),h(6),l(),h(7," buscado n\xe3o obteve resultados em nossa loja."),l()()),2&t){_(2);const e=Wt(3);c(6),de(e.value)}}const PD=function(t){return{"jet-loading":t}};function TD(t,i){if(1&t&&(a(0,"div",6),C(1,xD,5,2,"ng-container",7),C(2,DD,8,1,"ng-template",null,8,_i),l()),2&t){const e=Wt(3),n=_();d("ngClass",Oe(3,PD,n.loading)),c(1),d("ngIf",n.products.length>0)("ngIfElse",e)}}let ED=(()=>{class t{constructor(e,n,r,o){this.productService=e,this.storeEventsService=n,this.commomService=r,this.sharedDataCommom=o,this.dataClassContainer="",this.dataClassInput="",this.dataClassButton="",this.dataSearchButtonText="Buscar",this.dataTextPlaceholder="Procurando por...",this.dataShowAutoComplete=!0,this.dataQuantitySearch=3,this.showViewLink="",this.loading=!1,this.isLoggedB2B=!1}ngOnInit(){this.sharedDataCommom.currentCompany$.subscribe(e=>{null!=e&&(this.company=e,this.sharedDataCommom.authorizedB2B$.subscribe(n=>{null!=n&&(this.isLoggedB2B=n,this.showPriceB2C=!!this.isLoggedB2B||this.company.showPriceB2C)}))}),this.dataShowAutoComplete="true"==String(this.dataShowAutoComplete),this.dataClassContainer=""!==this.dataClassContainer?"jet-container "+this.dataClassContainer:"jet-container",this.dataClassInput=""!==this.dataClassInput?"jet-input "+this.dataClassInput:"jet-input",this.dataClassButton=""!==this.dataClassButton?"jet-button "+this.dataClassButton:"jet-button",this.commomService.finishLoadComponent("onJetSearchLoaded")}search(e){const n=Number(this.dataQuantitySearch)<2?2:Number(this.dataQuantitySearch);e.length>=n&&this.commomService.urlBlackList(e)?(clearTimeout(this.searchTimer),this.searchTimer=setTimeout(()=>{this.loading=!0,this.searchObs$=this.productService.searchProducts(10,e).subscribe(o=>{this.products=o,this.products.length>3&&(this.showViewLink="/busca?n="+e);var s={event:"search_autocomplete",search_term:e};this.loading=!1,this.storeEventsService.pushDataLayer(s),this.commomService.finishLoadComponent("onJetSearchResultsLoaded"),setTimeout(()=>{this.sendTerm({term:e.toLowerCase().trim(),returnedResult:o.length>0})},2e3)},o=>{this.loading=!1})},800)):(this.products=void 0,this.loading=!1)}sendTerm(e){this.sendTermObs$=this.productService.sendTerm(e).subscribe()}searchPage(e){const n=Number(this.dataQuantitySearch)<2?2:Number(this.dataQuantitySearch);e.length<n?this.commomService.displayMessageUser("error",`Digite ao menos ${n} caracteres para realizar sua pesquisa.`):(clearTimeout(this.searchTimer),sessionStorage.setItem("sendTerm",e.toLowerCase().trim()),this.storeEventsService.pushDataLayer({event:"search",search_term:e}),sessionStorage.removeItem("filterChoosed"),window.location.href="/busca?n="+encodeURIComponent(e))}static#e=this.\u0275fac=function(n){return new(n||t)($(Ou),$(nv),$(qt),$(yn))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-search"]],inputs:{dataClassContainer:["data-class-container","dataClassContainer"],dataClassInput:["data-class-in
3put","dataClassInput"],dataClassButton:["data-class-button","dataClassButton"],dataSearchButtonText:["data-search-button-text","dataSearchButtonText"],dataTextPlaceholder:["data-text-placeholder","dataTextPlaceholder"],dataShowAutoComplete:["data-show-auto-complete","dataShowAutoComplete"],dataQuantitySearch:["data-quantity-search","dataQuantitySearch"]},decls:8,vars:6,consts:[[1,"jet-search"],[3,"className"],["id","jet-search-term","type","text",3,"placeholder","className","keydown.enter","input","click"],["inputSearch",""],["aria-label","Buscar",3,"className","click"],["class","jet-search-result",3,"ngClass",4,"ngIf"],[1,"jet-search-result",3,"ngClass"],[4,"ngIf","ngIfElse"],["noResults",""],[1,"content","search-result"],[1,"search-result"],["class","item",3,"ngClass",4,"ngFor","ngForOf"],["title","Visualizar todos os produtos","class","show-products",3,"href","click",4,"ngIf"],[1,"item",3,"ngClass"],[3,"href","title"],["onerror","this.src='./assets/no-image.png'","jet-image-size","","loading","lazy","fetchPriority","auto",3,"src","alt","decode"],[1,"info"],[1,"search-name","notranslate"],["class","search-values",4,"ngIf"],[1,"search-values"],["class","old-price",4,"ngIf"],[1,"best-price"],[1,"old-price"],["title","Visualizar todos os produtos",1,"show-products",3,"href","click"],[1,"no-results"]],template:function(n,r){if(1&n){const o=ve();a(0,"div",0)(1,"div",1)(2,"input",2,3),J("keydown.enter",function(u){return r.searchPage(u.target.value)})("input",function(u){return r.search(u.target.value)})("click",function(){return M(o),Wt(3).select(),L(r.products=void 0)}),l(),a(4,"button",4),J("click",function(){M(o);const u=Wt(3);return L(r.searchPage(u.value))}),a(5,"span"),h(6),l()()(),C(7,TD,4,5,"div",5),l()}2&n&&(c(1),d("className",r.dataClassContainer),c(1),d("placeholder",r.dataTextPlaceholder)("className",r.dataClassInput),c(2),d("className",r.dataClassButton),c(2),de(r.dataSearchButtonText),c(1),d("ngIf",null!=r.products))},dependencies:[ui,ei,en,bs],encapsulation:2})}return t})();function LD(t,i){if(1&t&&(a(0,"div")(1,"a",1),we(),a(2,"svg",2),B(3,"path",3),l(),Pe(),a(4,"span",4),h(5),l()()()),2&t){const e=_();Ah("jet-wishlist-count ",e.dataClassContainer,""),c(5),de(e.count)}}let kD=(()=>{class t{constructor(e,n,r){this.customerService=e,this.commomService=n,this.sharedDataCommom=r,this.dataClassContainer="",this.dataShow="true",this.count=0,this.isLoggedB2B=!1}ngOnInit(){document.addEventListener("onJetAddedToWishList",e=>{this.getItemsWishList()},{passive:!0}),document.addEventListener("onJetRemovedToWishList",e=>{this.getItemsWishList()},{passive:!0}),this.sharedDataCommom.authorizedB2B$.subscribe(e=>{null!=e&&(this.isLoggedB2B=e)}),document.addEventListener("onJetWishlistCountLoaded",e=>{this.count=JSON.parse(sessionStorage.getItem("wishlist"))?.length??0})}getItemsWishList(){this.subs$=this.sharedDataCommom.userLogged$.subscribe(e=>{e&&e.data.authenticated?this.sharedDataCommom.authorizedB2B$.subscribe(n=>{this.subs$=this.customerService.getUserWishList(n,!n).subscribe(s=>{null!=s?(this.count=s.length,sessionStorage.setItem("wishlist",JSON.stringify(s))):(this.count=0,sessionStorage.setItem("wishlist",JSON.stringify([]))),this.commomService.finishLoadComponent("onJetWishlistCountLoaded")})}):(sessionStorage.removeItem("wishlist"),this.commomService.finishLoadComponent("onJetWishlistCountLoaded"))})}static#e=this.\u0275fac=function(n){return new(n||t)($(Ci),$(qt),$(yn))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-wishlist-count"]],inputs:{dataClassContainer:["data-class-container","dataClassContainer"],dataShow:["data-show","dataShow"]},decls:1,vars:1,consts:[[3,"class",4,"ngIf"],["href","/customer/wishlist","title","Lista de Desejos",1,"wish"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M462.3 62.71c-54.5-46.5-136.1-38.99-186.6 13.27l-19.69 20.61l-19.71-20.61C195.6 33.85 113.3 8.71 49.76 62.71C-13.11 116.2-16.31 212.5 39.81 270.5l193.2 199.7C239.3 476.7 247.8 480 255.9 480c8.25 0 16.33-3.25 22.58-9.751l193.6-199.8C528.5 212.5 525.1 116.2 462.3 62.71zM449.3 248.2l-192.9 199.9L62.76 248.2C24.39 208.7 16.39 133.2 70.51 87.09C125.3 40.21 189.8 74.22 213.3 98.59l42.75 44.13l42.75-44.13c23.13-24 88.13-58 142.8-11.5C495.5 133.1 487.6 208.6 449.3 248.2z"],[1,"jet-wishlist-count-text","notranslate"]],template:function(n,r){1&n&&C(0,LD,6,4,"div",0),2&n&&d("ngIf",0==r.isLoggedB2B&&"true"==r.dataShow)},dependencies:[en],encapsulation:2})}return t})(),Ss=(()=>{class t{constructor(e){this.http=e}cancelFreight(){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/5b3155a7-aea9-47ee-ac79-d1af86b0392a",json:null})}cleanCart(){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/3659f445-de38-4f80-85e1-c76a64d8da19",json:null})}verifyFreeFreight(){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/5d1bce4a-b5eb-47c0-a5b2-b3b8a7cc330f",json:null})}efetivarCalculoValor(e,n,r,o,s,u){var v="";return s&&s>0&&(v+="&idMultiCd="+s),o&&o>0&&(v+="&idMultiCdPackage="+o),u&&u>0&&(v+="&idAddress="+u),this.http.post("/api/calculation ",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/0c919f19-2c03-4931-8008-7580f2e089d5",params:`${e}?value=${n}${v}`,json:r})}efetivarCalculo(e,n,r,o){var s="?true=true";return o&&o>0&&(s+="&idMultiCd="+o),r&&r>0&&(s+="&idMultiCdPackage="+r),this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/615910b2-169c-4fc2-b9e1-25e9f52b545f",params:`${e}${s}`,json:n})}getGateways(){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/317d9aa8-6e13-45b6-ae30-b4ccc7fa77da",json:null})}getGatewaysAssistedSale(e,n,r=0){var o="";return r>0&&(o=`&idTablePrice=${r}&b2b=true`),this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/317d9aa8-6e13-45b6-ae30-b4ccc7fa77db",json:null,params:`${e}?idCustomer=${n}${o}`})}applyDiscount(e){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/39cb0428-771f-463b-957b-783aba1eebcf",json:{key:e}})}applyCartDiscount(e){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/9cccbbb2-0693-4e4e-8196-5570bac63344",json:{key:e}})}removeDiscount(){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/c5209fc1-18ef-48ee-b946-ede85050ef41",json:null})}removeDiscountCoupon(e){let n="";return e&&(n=`?couponKey=${encodeURIComponent(e)}`),this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/78d0456c-1293-417f-9345-3c14c5d39833",params:n})}removeAppliedDiscounts(){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/b08d249e-91f1-4714-8150-a72b3ebfaa3b"})}getCartCount(){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/105cecaf-28fb-4c17-9410-bb82960350af",json:null})}getInstallmentPayment(e,n=!1,r=0){let o=new wr;null!=e&&null!=e&&e>0&&(o=o.set("value",e.toString())),o=o.set("isSignature",n.toString()),r>0&&(o=o.set("idProduct",r.toString()));var s={request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/8f4cada5-b35e-4a46-bea6-034714b16891",params:"?"+o.toString(),json:null};return this.http.post("/api",s)}getCartUser(e){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/fe87f570-afb1-4684-92c7-60d68ee81a42",json:null,params:e>0?"?idMultiCd="+e:""})}
3changeQuantityCart(e,n,r=null,o=!1){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/ca4200ad-9aae-4ebb-b792-8b5c16651f05",json:{idCartItem:e,quantity:n,idCartPersonalization:r,isRecurrent:o}})}deleteCartItem(e,n){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/187e0910-f5ba-4cd4-a1c1-02e4c28a5b03",params:`${e}?idCartPersonalization=${n}`,json:null})}getFreights(e,n=!1,r=!1,o=!1,s="",u=0,v){let w=`?freteGratisValeCompra=${n}&compraRecorrente=${r}&isDeliveryWithPickup=${o}&listIdMultiCd=${s}&idAddress=${u}`;return v&&(w+=`&idInternationalStoreRegion=${v}`,e||(e=v)),this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/fc7b7611-9ced-4a1a-a5dd-262dad204337",params:e+w,json:null})}getFreightsMiniCart(e,n=!1,r=0,o=!1,s=!1,u="",v=0,w,P){let F=`?freteGratisValeCompra=${n}&compraRecorrente=${o}&isDeliveryWithPickup=${s}&listIdMultiCd=${u}&idAddress=${v}`+(r&&r>0?"&idMultiCd="+r:"");return w&&(F+="&idInternationalStoreRegion="+w,e||(e=w)),P&&(F+="&idCountrySimulate="+P),this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/151fe516-a18c-453b-8128-e11a3e3f58dc",params:e+F,json:null})}getFreightsProduct(e,n,r=0,o=!1,s=!1,u="",v,w){let P=`?compraRecorrente=${o}&isDeliveryWithPickup=${s}&listIdMultiCd=${u}`+(r>0?"&idMultiCd="+r:"");return v&&(P+=`&idInternationalStoreRegion=${v}`,e||(e=v)),w&&(P+=`&idCountrySimulate=${w}`),this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/2ee66f40-f718-454e-a7f0-c95575dc7288",params:e+P,json:n})}getFreightsProductSplit(e,n=!1,r,o,s){let u=`?compraRecorrente=${n}`;return o&&(u+=`&idInternationalStoreRegion=${o}`,e||(e=o)),s&&(u+=`&idCountrySimulate=${s}`),this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/b05599da-c510-4ad9-96b4-74f6ab586e9f",params:"{sessionID}/"+e+u,json:r??void 0})}getFreightsProductSplitPickup(e,n=!1,r,o=!1){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/c52d0eb7-c13c-4da0-a7f8-cc9604d97b83",params:"{sessionID}/"+e+`?compraRecorrente=${n}&isCheckout=${o}`,json:r??void 0})}addProductToCart(e,n,r,o,s=null){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/aecadf36-8754-4770-b752-5e578b9efea3",json:[{idProduct:e,idSku:n??null,quantity:r,isRecurrent:o,personalizations:s?.selected,personalizationString:s?.json}]})}addProductToCartMassive(e){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/29e138e1-d343-47d9-b363-c71a4e3cb6d6",json:e})}addProductToCartMassiveWithReturn(e){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/09b6dbd9-9e34-47da-a535-3c98e46d5a1f",json:e})}getSuggestedValueVoucher(){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/aa30fd63-6b22-4dc1-85d0-9cce833428ff",json:null})}applyVoucher(e){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/42e058b6-6309-4048-ae75-62009f76609d",json:e})}removeVoucher(){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/502ff237-7a06-4aa3-8a1b-3a9d97f7899b",json:null})}getFreeFreightTip(e){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/186301f6-222f-474d-8dea-6db182a5fc59",params:`${e}`,json:null})}getFreeFreightTipInternational(e){let n;return e&&(n="?idCountryToSimulate="+e),this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/b1810fd0-c2c7-4c14-8c70-58371220038b",params:`${n}`,json:null})}getTakeXpayY(e,n){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/c565e584-7cdb-4ff2-9c89-ae84f14b2a97",params:`${e}/${n}`,json:null})}updateValueCart(e,n,r){var o="";return r&&r>0&&(o+="?idMultiCdPackage="+r),this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/babdfb1f-277c-4ff2-bc1a-76347f13add2",params:`${e}/${n}${o}`,json:null})}getInstallments(e=0,n="{sessionID}"){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/fd32bf06-111a-4b0f-90cf-90ba863769fb",params:`${n}?value=${e}`,json:null})}getInstallmentsOffline(e){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/a6e29e1d-5785-468b-97f8-3bdf9af9b85b",params:`?idPaymentBrand=${e}`,json:null})}getInstallmentsOfflinePaymentLink(e,n){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/efa1223c-8b09-4baf-b959-a505315554b9",params:`${n}?idPaymentBrand=${e}`,json:null})}generatePreOrder(e){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/de301aa8-09df-4f8e-9537-70736654d72c",json:e})}recoverCart(e){return this.http.post("/api/recoverCart/"+e,{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/4de32d4b-9fe5-49c0-aea4-a33455c72f2c",json:null})}getScheduledDelivery(e){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/76aba316-97a0-4b22-979a-e377cf294568",params:`${e}?sessionID={sessionID}`,json:null})}recoverCartAssistedSale(e,n,r="false"){return this.http.post("/api/recoverCartAssistedSale?link="+e+"&id="+n+"&sellerAuth="+r,{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/4de32d4b-9fe5-49c0-aea4-a33455c72f2c",json:null})}getStoreSeller(){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/1a52c6c1-bf03-4fe1-bd7c-b6083972c24a",json:null})}getSellerInfo(e){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/f5e917a7-474c-46cb-81c5-5fc059221bc2",params:`?sellerHash=${e}&sellerCode=${e}`,json:null})}applySellerDiscount(e,n){var r=`?removeDiscount=${n}&sessionId={sessionID}`;return e&&(r+=`&idSeller=${e}`),this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/1d6d81c6-cfea-45a7-8e64-2fa0362965aa",params:r,json:null})}getBonusStatus(){return this.http.post("/api",{request:"674e7d84-5f1e-48f3-b059-0e284bea1c0a/3fde3b68-5af6-42de-9d12-790f65586802",params:"",json:null})}getBonus(e=""){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/57abbd47-f451-4480-92a9-c9b3b40b8031",params:"{sessionID}"+(""!=e?`?phoneNumber=${e}`:""),json:null})}applyBonus(e,n,r=""){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/5818f57f-b603-4f06-ae9b-fc546d83f818",params:`{sessionID}?applyBonus=${e}&orderTotal=${n}${""!=r?`&phoneNumber=${r}`:""}`,json:null})}getPin(e=""){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/1087cdd5-4a15-467c-816e-fd85c15ccbd5",params:"{sessionID}"+(""!=e?`?phoneNumber=${e}`:""),json:null})}sendPin(e,n=""){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/980c1885-d687-4dd9-8a68-4fd8f4d52d1a",params:"{sessionID}"+(""!=n?`?phoneNumber=${n}`:""),json:e})}changeCD(e,n,r){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/885712e7-db48-49a7-ae2f-c5b2892277da",params:`?sessionId={sessionID}&idMultiCd=${e}&onlyValidate=false&isCheckout=${n}&isDeliveryWithPickup=${r}`,json:null})}changeCDValidate(e,n){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/885712e7-db48-49a7-ae2f-c5b2892277da",params:`?sessionId={sessionID}&idMultiCd=${e}&onlyValidate=true&isCheckout=${n}`,json:null})}getFanMember(){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/ecf3654e-0465-4498-9102-e4acbf3b5289",params:"",json:null})}generateCheckoutPagaLeve(e){return this.http.post("/api",{request:"074e23d1-135b-497c-8841-28879af85fcc/04afb830-840d-48cd-ad27-a634f4a58d72",json:e})}getCheckoutPagaLeve(e){return this.http.post("/api",{request:"074e23d1-135b-497c-8841-28879af85fcc/cb4df951-82d1-4db7-bbf8-fc26e61e2226",params:`?idPreOrder=${e}`,json:null})}getCampaigns(){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/874b5b7b-b617-49fc-be77-0f8bd6e23035",params:"{sessionID}"})}getGifts(e){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/e9a23804-9078-4242-83cc-9c5743a99a45",params:`{sessionID}/${e}`})}getGiftVariations(e){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/9bedb2dd-9958-4fdd-a180-3e54259b72fc",params:`${e}/{sessionID}`})}insertGift(e){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/23afd9fe-7bc9-4e85-a17b-1288246db377",params:"{sessionID}",json:e})}deleteGift(e){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/6f2ec7cd-5bd5-49c0-a2e2-f21765975ca3",params:`{sessionID}/${e}`,json:null})}changeQuantityGiftCart(e,n,r){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/5a340892-b75e-456f-8824-dbe641bced6a",params:`{sessionID}/${e}/${n}/${r}`,json:null})}listAddedOnCart(){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/6d76be8d-6b07-43f4-b52e-fc3f000fd05c",params:"{sessionID}",json:null})}getMercadoPagoConfig(){return this.http.post("/api",{request:"074e23d1-135b-497c-8841-28879af85fcc/d604b4ef-068e-4b74-a4c9-35ea4abc72ad",json:null})}getMercadoPagoPreferendeId(e,n,r,o){return this.http.post("/api",{request:"074e23d1-135b-497c-8841-28879af85fcc/cec1f160-281e-4a13-87bb-ac56d69e9611",json:{idPreOrder:e,description:n+" - "+e,ip:"",transactionAmount:r,urlStore:o}})}registerGiftClient(e){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/6d993c04-2052-48ff-8268-80b53e02f2b4",params:"{sessionID}",json:e})}getFreightsWithSplit(e,n,r,o,s=0,u=0,v){var w=`?freteGratisValeCompra=${n}&isCheckout=${r}&isDeliveryWithPickup=${o}
3&idShippingMode=${s}&idAddress=${u}`;return v&&(w+=`&idInternationalStoreRegion=${v}`,e||(e=v.toString())),this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/b05599da-c510-4ad9-96b4-74f6ab586e9f",params:`{sessionID}/${e}`+w})}getDiscountsCampaignByPaymentForm(e,n=0,r){let o=`?idPaymentForm=${e}&value=${n}`;return r&&(o+=`&paymentLink=${r}`),this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/c8b09a0c-9188-4136-9395-5c0031a5cbc6",params:"{sessionID}"+o})}getPaymentWithTwoMethods(){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/82f96455-2f83-4cea-bc39-1a10dd98fa5d",json:null})}removeSellerAuth(){return this.http.post("/api/removeSellerAuth",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/82f96455-2f83-4cea-bc39-1a10dd98fa5d",json:null})}getDiscountPaymentFormGeneral(e,n){let r=`?idPaymentForm=${e}`;return n&&(r+=`&paymentLink=${n}`),this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/5b3155a7-aea9-47ee-ac79-d1af86b0392b",params:`${r}`,json:null})}antomCreatePaymentSession(e,n){return this.http.post("/api",{request:"074e23d1-135b-497c-8841-28879af85fcc/380da783-ca49-4656-b799-23e7c63dfa10",params:`${e}`,json:n})}static#e=this.\u0275fac=function(n){return new(n||t)(Mt(ko))};static#t=this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),MD=(()=>{class t{constructor(e,n){this.checkoutService=e,this.commomService=n,this.cartCount=0,this.dataDevice=""}ngOnInit(){""!==this.dataDevice&&("mobile"===this.dataDevice.toLowerCase()&&!this.commomService.isDevice()||"desktop"===this.dataDevice.toLowerCase()&&this.commomService.isDevice())||(this.updateCart(),this.commomService.finishLoadComponent("onJetCartCountLoaded"),document.addEventListener("onProductRemoveFromCart",()=>{this.updateCart()},{passive:!0}),document.addEventListener("onProductAddedToCart",()=>{this.updateCart()},{passive:!0}),document.addEventListener("onProductCartAdd",()=>{this.updateCart()},{passive:!0}))}updateCart(){this.itensCart$=this.checkoutService.getCartCount().subscribe(e=>{isNaN(Number(e))?e.indexOf("|temporizador|")>=0&&this.commomService.displayMessageUser("error","O tempo expirou e alguns produtos foram remov
3idos do seu carrinho",""):this.cartCount=Number(e),this.itensCart$.unsubscribe()})}static#e=this.\u0275fac=function(n){return new(n||t)($(Ss),$(qt))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-cart-count"]],inputs:{dataDevice:["data-device","dataDevice"]},decls:2,vars:1,consts:[[1,"jet-cart-count","notranslate"]],template:function(n,r){1&n&&(a(0,"span",0),h(1),l()),2&n&&(c(1),de(r.cartCount))},encapsulation:2})}return t})();var Zs=Wr(5861);let $h=(()=>{class t{constructor(){this.freightsSource=new Ai(null),this.currentFreights$=this.freightsSource.asObservable(),this.customerSource=new Ai(null),this.currentCustomer$=this.customerSource.asObservable(),this.addressSource=new Ai(null),this.currentAddress$=this.addressSource.asObservable(),this.paymentSource=new Ai(null),this.currentPayment$=this.paymentSource.asObservable(),this.companySource=new Ai(null),this.currentCompany$=this.companySource.asObservable(),this.freightChoosenSource=new Ai(null),this.freightChoosen$=this.freightChoosenSource.asObservable(),this.activeTabSource=new Ai(1),this.activeTab$=this.activeTabSource.asObservable(),this.clickTabSource=new Ai({value:1,valid:!1}),this.clickTab$=this.clickTabSource.asObservable(),this.paymentDiscountSource=new Ai(null),this.paymentDiscount$=this.paymentDiscountSource.asObservable(),this.couponSource=new Ai(null),this.coupon$=this.couponSource.asObservable(),this.uniqueCartSource=new Ai(null),this.currentUniqueCart$=this.uniqueCartSource.asObservable(),this.removeVoucherSource=new Ai(null),this.currentRemoveVoucher$=this.removeVoucherSource.asObservable(),this.bonusSource=new Ai(null),this.currentBonus$=this.bonusSource.asObservable(),this.sellerSource=new Ai(null),this.currentSeller$=this.sellerSource.asObservable(),this.fanMemberSource=new Ai(null),this.currentfanMember$=this.fanMemberSource.asObservable(),this.interestValue=new Ai(null),this.currentinterestValue$=this.interestValue.asObservable(),this.showPaymee=new Ai(null),this.currentShowPaymee$=this.showPaymee.asObservable(),this.objPaymee=new Ai(null),this.currentObjPaymee$=this.objPaymee.asObservable()}changeValueFreights(e){this.freightsSource.next(e)}changeValueCustomer(e){this.customerSource.next(e)}changeValueAddress(e){this.addressSource.next(e)}changeValuePayment(e){this.paymentSource.next(e)}changeValueCompany(e){this.companySource.next(e)}changeValueFreightChoosen(e){this.freightChoosenSource.next(e)}changeValueActiveTab(e){this.activeTabSource.next(e)}changeClickActiveTab(e,n=!0){this.clickTabSource.next({value:e,valid:n})}changePaymentDiscountTab(e){this.paymentDiscountSource.next(e)}changeCoupon(e){this.couponSource.next(e)}changeUniqueCart(e){this.uniqueCartSource.next(e)}changeRemoveVoucher(e){this.removeVoucherSource.next(e)}changeBonus(e){this.bonusSource.next(e)}changeSeller(e){this.sellerSource.next(e)}changeFanMember(e){this.fanMemberSource.next(e)}changeInterestValue(e){this.interestValue.next(e)}changeShowPaymee(e){this.showPaymee.next(e)}changeObjPaymee(e){this.objPaymee.next(e)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),iv=(()=>{class t{constructor(e){this.http=e,this.socialSellingModeSubject=new Ai({active:!1}),this.socialSellingMode$=this.socialSellingModeSubject.asObservable()}get mode(){return this.socialSellingModeSubject.value}setActive(e){this.updateMode({active:e})}updateMode(e){this.socialSellingModeSubject.next({...this.mode,...e})}getSocialSellingCodeFromCookie(){return this.http.post("/api/socialSellingCode",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/bfc19e29-448b-4c1a-af5b-27af196d50d7",json:null})}setSocialSellingCodeInCookie(e){return this.http.post("/api/setSocialSellingCode",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/bfc19e29-448b-4c1a-af5b-27af196d50d7",json:{socialSellingCode:e}})}getAssistedSaleConfig(){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/1a52c6c1-bf03-4fe1-bd7c-b6083972c24a",json:null})}getSellerByCode(e){return this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/f5e917a7-474c-46cb-81c5-5fc059221bc2",json:null,params:`?sellerHash=${e}&sellerCode=''`})}createPaymentLink(e,n){let r=`?hashSeller=${e}`;return n&&(r+=`&idCustomer=${n}`),this.http.post("/api",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/d6b5f778-679c-415f-bf95-431e008c12f0",json:null,params:r})}endSession(){return this.http.post("/api/endSocialSellingSession",{request:"78c31414-80a5-43d5-a7df-ae5901ef61c6/1a52c6c1-bf03-4fe1-bd7c-b6083972c24a",json:null})}static#e=this.\u0275fac=function(n){return new(n||t)(Mt(ko))};static#t=this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function FD(t,i){if(1&t&&(a(0,"option",7),h(1),l()),2&t){const e=i.$implicit;d("value",e.idCompraAutomaticaTipoEntrega),c(1),dt(" ",e.tipoEntrega," ")}}function AD(t,i){if(1&t){const e=ve();a(0,"div",1)(1,"div",2)(2,"div",3)(3,"span",4),h(4,"Frequ\xeancia de entrega"),l(
3),a(5,"select",5),J("change",function(r){return M(e),L(_().setFrequencyRecurrency(r.target.value))})("ngModelChange",function(r){return M(e),L(_().selectedValue=r)}),a(6,"option"),h(7,"Selecione"),l(),C(8,FD,2,2,"option",6),l()()()()}if(2&t){const e=_();c(5),d("ngModel",e.selectedValue),c(1),ii("value",0),c(2),d("ngForOf",e.availableFrequency)}}let ND=(()=>{class t{constructor(e,n,r,o){this.checkoutService=e,this.commomService=n,this.sharedDataCommom=r,this.sharedDataCheckoutService=o,this.cart=null,this.selectedValue=0,this.isLoggedB2B=!1}ngOnInit(){this.sharedDataCommom.cart$.subscribe(e=>{e&&(this.cart=e,this.cart&&!this.cart.items[0].isRecurrent&&null!=sessionStorage.getItem("selectedFrequencyRecurrency")&&sessionStorage.removeItem("selectedFrequencyRecurrency"),this.sharedDataCommom.authorizedB2B$.subscribe(n=>{null!=n&&(this.isLoggedB2B=n,this.cart&&this.cart.items[0].isRecurrent&&this.updateFrequencySelect())}))}),this.selectedValue=null!=sessionStorage.getItem("selectedFrequencyRecurrency")?parseInt(sessionStorage.getItem("selectedFrequencyRecurrency")):0,document.addEventListener("onJetLoadFrequencyRecurrency",e=>{e.detail&&e.detail?.value?(this.cart=e.detail?.value,this.cart?this.updateFrequencySelect():this.availableFrequency=[]):this.cart=null},{passive:!0})}setFrequencyRecurrency(e){null!=sessionStorage.getItem("selectedFrequencyRecurrency")&&sessionStorage.removeItem("selectedFrequencyRecurrency"),sessionStorage.setItem("selectedFrequencyRecurrency",e)}updateFrequencySelect(){if(this.availableFrequency=this.commomService.recurrencyAvailableFrequencies(this.cart),0==this.availableFrequency?.length)null!=sessionStorage.getItem("selectedFrequencyRecurrency")&&sessionStorage.removeItem("selectedFrequencyRecurrency"),this.commomService.displayMessageUser("error","Os produtos de seu carrinho s\xe3o incompat\xedveis para a realiza\xe7\xe3o de uma assinatura. Remova um produto at\xe9 que seja poss\xedvel exibir frequ\xeancias para a recorr\xeancia.");else if(null!=sessionStorage.getItem("selectedFrequencyRecurrency")){let e=this.availableFrequency.filter(n=>n.idCompraAutomaticaTipoEntrega==Number(sessionStorage.getItem("selectedFrequencyRecurrency")));(!e||0==e.length)&&(sessionStorage.removeItem("selectedFrequencyRecurrency"),this.selectedValue=0)}}static#e=this.\u0275fac=function(n){return new(n||t)($(Ss),$(qt),$(yn),$($h))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-frequency-recurrency"]],decls:1,vars:1,consts:[["class","jet-frequency-recurrency",4,"ngIf"],[1,"jet-frequency-recurrency"],[1,"recurrency-frequency"],[1,"recurrency-frequency-options"],[1,"recurrency-frequency-info"],[1,"recurrency-frequency-select",3,"ngModel","change","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(n,r){1&n&&C(0,AD,9,3,"div",0),2&n&&d("ngIf",r.cart&&r.cart.items&&r.cart.items.length>0&&r.cart.items[0].isRecurrent&&0==r.isLoggedB2B)},dependencies:[ei,en,Ws,Js,ma,fr,zh]})}return t})();function BD(t){const{subscriber:i,counter:e,period:n}=t;i.next(e),this.schedule({subscriber:i,counter:e+1,period:n},n)}function jD(t,i){if(1&t&&(a(0,"div",1),we(),a(1,"svg",2),B(2,"path",3)(3,"path",4),l(),h(4),Pe(),a(5,"span",5),h(6),l()()),2&t){const e=_();c(4),dt(" ",e.dataTextProductTimer," "),c(2),dt(" ",e.timeRemainingHtml," ")}}let VD=(()=>{class t{constructor(e,n){this.commomService=e,this.checkoutService=n,this.dataTextProductTimer="Tempo restante: ",this.timeRemainingHtml=void 0,this.currentDate=new Date,this.expirationDate=new Date,this.differencePlus=0}ngOnInit(){this.dataCurrentDate&&this.dataExpirationDate&&(this.subscription=function RD(t=0,i=Vp){return(!function OD(t){return!vn(t)&&t-parseFloat(t)+1>=0}(t)||t<0)&&(t=0),(!i||"function"!=typeof i.schedule)&&(i=Vp),new Se(e=>(e.add(i.schedule(BD,t,{subscriber:e,counter:0,period:t})),e))}(1e3).subscribe(e=>{this.timeRemainingHtml=this.setTimeRemaining(this.dataCurrentDate,this.dataExpirationDate)}))}ngOnDestroy(){this.subscription?.unsubscribe()}setTimeRemaining(e,n){return this.currentDate=new Date(e.replace("Z","")),this.expirationDate=new Date(n.replace("Z","")),this.cDateMillisecs=0==this.differencePlus?this.currentDate.getTime():this.differencePlus,this.tDateMillisecs=this.expirationDate.getTime(),this.difference=this.tDateMillisecs-this.cDateMillisecs,this.differencePlus=this.cDateMillisecs+1e3,this.seconds=Math.floor(this.difference/1e3),this.minutes=Math.floor(this.seconds/60),this.hours=Math.floor(this.minutes/60),this.hours%=24,this.minutes%=60,this.seconds%=60,this.hours=this.hours<10?"0"+this.hours:this.hours,this.minutes=this.minutes<10?"0"+this.minutes:this.minutes,this.seconds=this.seconds<10?"0"+this.seconds:this.seconds,this.difference>0?"00"!=this.hours?`${this.hours}:${this.minutes}:${this.seconds}`:`${this.minutes}:${this.seconds}`:(this.subscription?.unsubscribe(),this.updateCart(),"Esgotado")}updateCart(){this.checkoutService.getCartCount().subscribe(e=>{isNaN(Number(e))&&e.indexOf("|temporizador|")>=0&&(this.commomService.displayMessageUser("error","O tempo expirou e alguns produtos foram remov
3idos do seu carrinho",""),location.pathname.includes("/checkout/payment")&&setTimeout(()=>{window.location.reload()},3e3))})}static#e=this.\u0275fac=function(n){return new(n||t)($(qt),$(Ss))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-cart-timer"]],inputs:{dataTextProductTimer:["data-description","dataTextProductTimer"],dataCurrentDate:["data-current-date","dataCurrentDate"],dataExpirationDate:["data-expiration-date","dataExpirationDate"]},decls:1,vars:1,consts:[["class","jet-cart-timer",4,"ngIf"],[1,"jet-cart-timer"],["width","25","height","25","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 32 32"],["d","M22,6.7V5a3,3,0,0,0-3-3H17a3,3,0,0,0-3,3V6.7a12,12,0,0,0-6.06,4.75,1,1,0,1,0,1.68,1.1,10,10,0,1,1,4.21,14.54A1,1,0,0,0,13,28.91,12,12,0,1,0,22,6.7Z"],["d","M23.78 13.38a1 1 0 0 0-1.4-.16l-2.81 2.24A2.89 2.89 0 0 0 18 15a3 3 0 1 0 3 3 2.93 2.93 0 0 0-.18-1l2.8-2.24A1 1 0 0 0 23.78 13.38zM11 17H5a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2zM11 21H3a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2zM11 25H5a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2z"],[1,"timer","notranslate"]],template:function(n,r){1&n&&C(0,jD,7,2,"div",0),2&n&&d("ngIf",r.timeRemainingHtml)},dependencies:[en],encapsulation:2})}return t})();function HD(t,i){if(1&t&&(a(0,"div",1)(1,"div",2),B(2,"div",3),a(3,"div",4)(4,"span",5),h(5,"Termina em"),l(),B(6,"span",6),l()()()),2&t){const e=_();c(6),d("innerHTML",e.dateOffer,ce)}}let rv=(()=>{class t{constructor(e,n,r){this.sharedDataDetail=e,this.commomService=n,this.cdr=r,this.dataOnlyTimer="false",this.dataRefreshWhenExpired="true",this.produto=null,this.defaultImage="/assets/loading.svg",this.onlyTimer=!1}ngOnInit(){"false"==this.dataOnlyTimer?this.sharedDataDetail.currentDetail$.subscribe(e=>{e&&(this.produto=e,this.produto.flashOfferCampaignStatus&&this.produto.flashOfferCampaignCountdown&&setInterval(()=>{this.dateOffer=this.getTimeRemaining(this.produto.flashOfferEndDateCampaign)},1e3),this.commomService.finishLoadComponent("onJetProductFlashOffer"))}):(this.produto=this.dataProduct,this.produto&&this.produto.flashOfferCampaignStatus&&this.produto.flashOfferCampaignCountdown&&setInterval(()=>{this.dateOffer=this.getTimeRemaining(this.produto.flashOfferEndDateCampaign)},1e3))}ngAfterViewChecked(){this.cdr.detectChanges()}getTimeRemaining(e){const n=Date.parse(e)-Date.parse((new Date).toISOString());if(n<=0)return"true"==this.dataRefreshWhenExpired&&document.location.reload(),"Oferta expirada";const r=Math.floor(n%6e4/1e3),o=Math.floor(n/1e3/60%60),s=Math.floor(n/36e5%24);return`<span class="days">${Math.floor(n/864e5).toString().padStart(2,"0")}D</span> <span class="hour">${s.toString().padStart(2,"0")}</span>:<span class="minute">${o.toString().padStart(2,"0")}</span>:<span class="second">${r.toString().padStart(2,"0")}</span>`}static#e=this.\u0275fac=function(n){return new(n||t)($(Cm),$(qt),$(Gl))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-product-flash-offer"],["jet-product-flash-offer-external"]],inputs:{dataOnlyTimer:["data-only-timer","dataOnlyTimer"],dataProduct:["data-product","dataProduct"],dataRefreshWhenExpired:["data-refresh-when-expired","dataRefreshWhenExpired"]},decls:1,vars:1,consts:[["class","jet-product-flash-offer",4,"ngIf"],[1,"jet-product-flash-offer"],[1,"content","timer"],[1,"icon"],[1,"time"],[1,"description"],[1,"time-countdown",3,"innerHTML"]],template:function(n,r){1&n&&C(0,HD,7,1,"div",0),2&n&&d("ngIf",r.produto&&r.produto.flashOfferCampaignStatus&&r.produto.flashOfferCampaignCountdown&&r.dateOffer)},dependencies:[en]})}return t})();const zD=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Ru(t){return i=>0===t?X4():i.lift(new qD(t))}class qD{constructor(i){if(this.total=i,this.total<0)throw new zD}call(i,e){return e.subscribe(new $D(i,this.total))}}class $D extends Tt{constructor(i,e){super(i),this.total=e,this.count=0}_next(i){const e=this.total,n=++this.count;n<=e&&(this.destination.next(i),n===e&&(this.destination.complete(),this.unsubscribe()))}}const UD=["campaignsList"];function GD(t,i){if(1&t){const e=ve();a(0,"div",22),we(),a(1,"svg",23),B(2,"path",24),l(),Pe(),a(3,"div",25),B(4,"span",10),a(5,"strong",26),J("click",function(){return M(e),L(_(3).viewModalCampaign())}),h(6,"Clique aqui"),l(),h(7," para escolher o seu! "),l()()}if(2&t){const e=_(3);c(4),d("innerHTML",e.campaignToTip.achieveMessage,ce)}}function WD(t,i){1&t&&(a(0,"a",31),h(1,"Continuar comprando"),l())}function JD(t,i){if(1&t&&(a(0,"div",27)(1,"div",25),B(2,"span",10),C(3,WD,2,0,"a",28),l(),a(4,"div",29),B(5,"div",30),l()()),2&t){const e=_(3);c(2),d("innerHTML",e.campaignToMessage.tipMessage,ce),c(1),d("ngIf",e.showBackLink),c(1),ii("data-value",e.percentToGift),c(1),zl("width",e.percentToGift,"%")}}function ZD(t,i){if(1&t&&(a(0,"div",19),C(1,GD,8,1,"div",20),C(2,JD,6,5,"div",21),l()),2&t){const e=_(2);
3c(1),d("ngIf",e.campaignToTip&&e.totalGift>0),c(1),d("ngIf",e.percentToGift<100)}}function QD(t,i){if(1&t&&(ht(0),a(1,"strong"),h(2),l(),mt()),2&t){const e=_(2).$implicit;c(2),dt("",e.giftQuantities," brindes.")}}function YD(t,i){if(1&t&&(ht(0),a(1,"strong"),h(2),l(),mt()),2&t){const e=_(2).$implicit;c(2),dt("",e.giftQuantities," brinde.")}}function KD(t,i){if(1&t&&(we(),Pe(),ht(0),h(1," Ganhou "),C(2,QD,3,1,"ng-container",39),C(3,YD,3,1,"ng-container",39),mt()),2&t){const e=_().$implicit;c(2),d("ngIf",e.giftQuantities>1),c(1),d("ngIf",1===e.giftQuantities)}}function XD(t,i){if(1&t&&(we(),Pe(),ht(0),h(1," Faltam "),a(2,"strong"),h(3),l(),mt()),2&t){const e=_().$implicit,n=_(3);c(3),de(n.commomService.priceMask(e.valueToAchieveGift))}}function eP(t,i){if(1&t&&(ht(0),a(1,"div",36)(2,"div",37)(3,"div",38),we(),a(4,"svg",23),B(5,"path",24),l()(),C(6,KD,4,2,"ng-container",39),C(7,XD,4,1,"ng-container",39),l()(),mt()),2&t){const e=i.$implicit;c(6),d("ngIf",0===e.valueToAchieveGift),c(1),d("ngIf",e.valueToAchieveGift>0)}}function tP(t,i){if(1&t&&(a(0,"div",29),B(1,"div",30),l()),2&t){const e=i.$implicit;c(1),zl("width",e+"%")}}function nP(t,i){if(1&t&&(a(0,"div",32)(1,"div",33),h(2,"Adicione produtos e ganhe "),a(3,"strong"),h(4,"mais brindes!"),l()(),a(5,"div",34),C(6,eP,8,2,"ng-container",13),l(),a(7,"div",27),C(8,tP,2,2,"div",35),l()()),2&t){const e=_(2);c(6),d("ngForOf",e.campaigns),c(2),d("ngForOf",e.calculateProgress())}}function iP(t,i){if(1&t&&(ht(0),h(1," at\xe9 "),a(2,"strong"),h(3),l(),mt()),2&t){const e=_(3).$implicit;c(3),dt("",e.giftQuantities-e.giftQuantitiesChosen," brindes")}}function rP(t,i){if(1&t&&(ht(0),a(1,"strong"),h(2),l(),mt()),2&t){const e=_(3).$implicit;c(2),dt("",e.giftQuantities-e.giftQuantitiesChosen," brinde")}}function oP(t,i){if(1&t&&(ht(0),h(1," Escolha "),C(2,iP,4,1,"ng-container",39),C(3,rP,3,1,"ng-container",39),h(4," entre os produtos abaixo: "),mt()),2&t){const e=_(2).$implicit;c(2),d("ngIf",e.giftQuantities-e.giftQuantitiesChosen>1),c(1),d("ngIf",e.giftQuantities-e.giftQuantitiesChosen==1)}}function sP(t,i){1&t&&h(0," Os brindes j\xe1 foram resgatados ")}function aP(t,i){if(1&t&&(a(0,"span",57),h(1),l()),2&t){const e=_(2).$implicit,n=_(4);c(1),de(n.getAddedGift(e.productId))}}function lP(t,i){if(1&t&&(ht(0),a(1,"button",55),C(2,aP,2,1,"span",56),h(3," ESGOTADO "),l(),mt()),2&t){const e=_().$implicit,n=_(4);c(2),d("ngIf",n.getAddedGift(e.productId)>0)}}function cP(t,i){if(1&t&&(a(0,"span",57),h(1),l()),2&t){const e=_(3).$implicit,n=_(4);c(1),de(n.getAddedGift(e.productId))}}const ov=function(t){return{"jet-btn-loading":t}};function dP(t,i){if(1&t){const e=ve();a(0,"button",60),J("click",function(){M(e);const r=_(2).$implicit;return L(_(4).addOrRemoveGift(r))}),C(1,cP,2,1,"span",56),h(2," Quero este "),l()}if(2&t){const e=_(2).$implicit,n=_(2).$implicit,r=_(2);d("ngClass",Oe(3,ov,r.loadingBtn&&!r.getLimitGift(n.campaignId)))("disabled",r.getLimitGift(n.campaignId)),c(1),d("ngIf",r.getAddedGift(e.productId)>0)}}function uP(t,i){if(1&t&&(a(0,"span",57),h(1),l()),2&t){const e=_(3).$implicit,n=_(4);c(1),de(n.getAddedGift(e.productId))}}function hP(t,i){if(1&t){const e=ve();a(0,"button",61),J("click",function(){M(e);const r=_(2).$implicit;return L(_(4).viewModalVariations(r))}),C(1,uP,2,1,"span",56),h(2," Ver op\xe7\xf5es "),l()}if(2&t){const e=_(2).$implicit,n=_(2).$implicit,r=_(2);d("ngClass",Oe(3,ov,r.loadingBtn&&!r.getLimitGift(n.campaignId)))("disabled",r.getLimitGift(n.campaignId)),c(1),d("ngIf",r.getAddedGift(e.productId)>0)}}function mP(t,i){if(1&t&&(C(0,dP,3,5,"button",58),C(1,hP,3,5,"button",59)),2&t){const e=_().$implicit;d("ngIf",!e.hasVariation),c(1),d("ngIf",e.hasVariation)}}function fP(t,i){if(1&t&&(a(0,"div",49)(1,"div",50),B(2,"img",51),l(),a(3,"div",52)(4,"span",53),h(5),l(),C(6,lP,4,1,"ng-container",45),C(7,mP,2,2,"ng-template",null,54,_i),l()()),2&t){const e=i.$implicit,n=Wt(8);c(2),Ue("alt",e.name),d("src",e.detailImage,fe)("decode",!0),c(3),de(e.name),c(1),d("ngIf",0===e.stock)("ngIfElse",n)}}function pP(t,i){if(1&t&&(ht(0),a(1,"div",40)(2,"div",41),we(),a(3,"svg",42),B(4,"path",43),l(),Pe(),a(5,"span",44),C(6,oP,5,2,"ng-container",45),C(7,sP,1,0,"ng-template",null,46,_i),l()(),a(9,"div",47),C(10,fP,9,6,"div",48),l()(),mt()),2&t){const e=Wt(8),n=_().$implicit,r=_(2);c(6),d("ngIf",!r.getLimitGift(n.campaignId))("ngIfElse",e),c(3),ii("data-campaign-id",n.c
3ampaignId),c(1),d("ngForOf",r.giftsByCampaign[n.campaignId])}}function gP(t,i){if(1&t&&(ht(0),C(1,pP,11,4,"ng-container",39),mt()),2&t){const e=i.$implicit,n=_(2);c(1),d("ngIf",n.giftsByCampaign[e.campaignId]&&n.giftsByCampaign[e.campaignId].length>0&&0===e.valueToAchieveGift)}}function vP(t,i){if(1&t){const e=ve();a(0,"img",72),J("click",function(){M(e);const r=_().$implicit,o=_().$implicit;return L(_(3).changeVariation(o.idReference,r.idGridVariation))}),l()}if(2&t){const e=_().$implicit;Ue("alt",e.nameVariation),d("src",e.imageVariation,fe)("decode",!0)}}function _P(t,i){if(1&t){const e=ve();a(0,"span",73),J("click",function(){M(e);const r=_().$implicit,o=_().$implicit;return L(_(3).changeVariation(o.idReference,r.idGridVariation))}),l()}if(2&t){const e=_().$implicit;zl("background-color",e.colorVariation),ii("data-idVariation",e.idGridVariation)}}function CP(t,i){if(1&t){const e=ve();a(0,"span",74),J("click",function(){M(e);const r=_().$implicit,o=_().$implicit;return L(_(3).changeVariation(o.idReference,r.idGridVariation))}),h(1),l()}if(2&t){const e=_().$implicit;ii("data-idVariation",e.idGridVariation),c(1),de(e.nameVariation)}}function yP(t,i){if(1&t&&(a(0,"div",68),C(1,vP,1,3,"img",69),C(2,_P,1,3,"span",70),C(3,CP,2,2,"span",71),l()),2&t){const e=i.$implicit,n=_().$implicit;ii("data-name",e.nameVariation)("data-id-variation",e.idGridVariation)("data-reference",n.idReference),c(1),d("ngIf",e.imageVariation),c(1),d("ngIf",!e.imageVariation&&e.colorVariation),c(1),d("ngIf",!e.imageVariation&&!e.colorVariation)}}function bP(t,i){if(1&t&&(a(0,"div",65)(1,"span",9),h(2),l(),a(3,"div",66),C(4,yP,4,6,"div",67),l()()),2&t){const e=i.$implicit;c(2),dt("",e.name,":"),c(2),d("ngForOf",e.gridVariations)}}function SP(t,i){if(1&t&&(a(0,"div",62)(1,"div",63),C(2,bP,5,2,"div",64),l()()),2&t){const e=_(2);c(2),d("ngForOf",e.giftVariation.references)}}const wP=function(t){return{"jet-loading":t}};function IP(t,i){if(1&t){const e=ve();a(0,"div",2),C(1,ZD,3,2,"div",3),a(2,"div",4)(3,"div",5)(4,"button",6),J("click",function(r){return M(e),L(_().closeModal(r.target))}),we(),a(5,"svg",7),B(6,"path",8),l(),Pe(),a(7,"span"),h(8,"Fechar"),l()(),a(9,"div",9),B(10,"strong",10),l(),C(11,nP,9,2,"div",11),a(12,"div",12),C(13,gP,2,1,"ng-container",13),l()()(),a(14,"div",14)(15,"div",5)(16,"div",9),h(17,"Selecione a varia\xe7\xe3o desejada do brinde"),l(),C(18,SP,3,1,"div",15),a(19,"div",16)(20,"button",17),J("click",function(r){M(e);const o=_();return o.resetSelectedSku(),L(o.closeModal(r.target))}),h(21,"CANCELAR"),l(),a(22,"button",18),J("click",function(r){return M(e),L(_().addGiftVariation(r.target))}),h(23),l()()()()()}if(2&t){const e=_();c(1),d("ngIf",(e.campaignToTip||e.campaignToMessage)&&e.percentToGift>0&&e.showCart()),c(9),d("innerHTML",null==e.campaignToTip?null:e.campaignToTip.achieveMessage,ce),c(1),d("ngIf",e.campaigns.length>1),c(1),d("ngClass",Oe(8,wP,e.loadingGift)),c(1),d("ngForOf",e.campaigns),c(5),d("ngIf",e.giftVariation),c(4),d("disabled",e.skuSelected<=0||!e.skuActive),c(1),dt(" ",0===e.skuSelected?"SELECIONE UMA OP\xc7\xc3O":-1===e.skuSelected?"ESGOTADO":"ADICIONAR"," ")}}function xP(t,i){1&t&&B(0,"img",93),2&t&&Ue("src",_(3).dataImageGiftSourceDesktop,fe)}function DP(t,i){1&t&&B(0,"img",93),2&t&&Ue("src",_(3).dataImageGiftSourceMobile,fe)}function PP(t,i){if(1&t&&(ht(0),C(1,xP,1,1,"img",92),C(2,DP,1,1,"img",92),mt()),2&t){const e=_(2);c(1),d("ngIf",!e.isMobile&&""!=e.dataImageGiftSourceDesktop),c(1),d("ngIf",e.isMobile&&""!=e.dataImageGiftSourceMobile)}}function TP(t,i){if(1&t&&(a(0,"span"),h(1),l()),2&t){const e=_(2);c(1),de(e.dataTextGiftDescription)}}function EP(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function LP(t,i){1&t&&(a(0,"span"),h(1,"Informe o nome corretamente"),l())}function kP(t,i){if(1&t&&(a(0,"div",94),C(1,EP,2,0,"span",39),C(2,LP,2,0,"span",39),l()),2&t){const e=_(2);c(1),d("ngIf",e.idForm.name.errors.required),c(1),d("ngIf",null==e.idForm.name.errors?null:e.idForm.name.errors.pattern)}}function MP(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function FP(t,i){1&t&&(a(0,"span"),h(1,"Informe um email v\xe1lido"),l())}function AP(t,i){if(1&t&&(a(0,"div",94),C(1,MP,2,0,"span",39),C(2,FP,2,0,"span",39),l()),2&t){const e=_(2);c(1),d("ngIf",e.idForm.email.errors.required),c(1),d("ngIf",e.idForm.email.errors.pattern)}}function NP(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function OP(t,i){1&t&&(a(0,"span"),h(1,"Informe um Telefone V\xe1lido"),l())}function RP(t,i){if(1&t&&(a(0,"div",94),C(1,NP,2,0,"span",39),C(2,OP,2,0,"span",39),l()),2&t){const e=_(2);c(1),d("ngIf",e.idForm.phone.errors.required),c(1),d("ngIf",e.idForm.phone.errors.minlength)}}function BP(t,i){if(1&t){const e=ve();a(0,"div",75)(1,"div",5),C(2,PP,3,2,"ng-container",39),a(3,"div",76)(4,"div",9),h(5),C(6,TP,2,1,"span",39),l(),a(7,"form",77),J("ngSubmit",function(){return M(e),L(_().addGift())}
3),a(8,"div",78)(9,"div",79)(10,"label",80),h(11,"Nome Completo*"),l(),B(12,"input",81,82),C(14,kP,3,2,"div",83),l(),a(15,"div",84)(16,"label",80),h(17,"Email*"),l(),B(18,"input",85,86),C(20,AP,3,2,"div",83),l(),a(21,"div",87)(22,"label",88),h(23,"Telefone*"),l(),a(24,"input",89,90),J("keyup",function(){return M(e),L(_().maskPhone())})("blur",function(){return M(e),L(_().maskPhone())})("paste",function(r){return r.preventDefault()}),l(),C(26,RP,3,2,"div",83),l(),a(27,"button",91),h(28),l(),a(29,"button",17),J("click",function(){return M(e),L(_().closeModalClient())}),h(30),l()()()()()()}if(2&t){const e=_();c(2),d("ngIf","true"==e.dataShowGiftImage),c(3),dt(" ",e.dataTextGiftTitle," "),c(1),d("ngIf",""!=e.dataTextGiftDescription),c(1),d("formGroup",e.formGift),c(7),d("ngIf",e.idForm.name.errors&&(e.idForm.name.dirty||e.idForm.name.touched)),c(6),d("ngIf",e.idForm.email.errors&&(e.idForm.email.dirty||e.idForm.email.touched)),c(6),d("ngIf",e.idForm.phone.errors&&(e.idForm.phone.dirty||e.idForm.phone.touched)),c(1),d("ngClass",Oe(10,ov,e.loading)),c(1),de(e.dataButtonGiftText),c(2),de(e.dataTextGiftClose)}}let sy=(()=>{class t{constructor(e,n,r,o,s){this.checkoutService=e,this.commomService=n,this.sharedDataCommomService=r,this.sharedDataCheckoutService=o,this.fb=s,this.cart=void 0,this.action="",this.isDragging=!1,this.campaigns=[],this.giftsByCampaign={},this.percentToGift=0,this.totalGift=0,this.limitInsertCampaigns=0,this.jsonToAdd=[],this.originalJson=[],this.selectedVariations={},this.giftByVariation=[],this.skuSelected=0,this.skuActive=!1,this.loadingGift=!1,this.loadingBtn=!1,this.page=window.location.pathname,this.showBackLink=!1,this.loading=!1,this.showModal=!1,this.existsGiftByModal=!1,this.valueIdProduct=0,this.valueToModal=!1,this.isMobile=!1,this.dataTextGiftTitle="Quer ganhar um {brinde} de presente nessa compra?",this.dataTextGiftDescription="Preencha os campos abaixo e garanta j\xe1 seu brinde",this.dataButtonGiftText="ENVIAR",this.dataTextGiftClose="N\xe3o quero ganhar um brinde",this.dataShowGiftImage="false",this.dataImageGiftSourceDesktop="",this.dataImageGiftSourceMobile="",this.isMobile=this.commomService.isDevice()}ngOnInit(){document.addEventListener("onJetGiftReset",()=>{this.jsonToAdd=[]},{passive:!0}),document.addEventListener("onJetGiftChangeQuantity",e=>{this.changeQuantity(e.detail.idCartGift,e.detail.qtd)},{passive:!0}),document.addEventListener("onJetGiftDelete",e=>{this.deleteItem(e.detail.idCartGift)},{passive:!0}),document.addEventListener("onJetitemsLoaded",e=>{e.detail.value||(this.campaigns=[])},{passive:!0}),document.addEventListener("onJetVerifyGiftModal",e=>{this.intervalId||(this.intervalId=setInterval(()=>{this.valueToEvent=e.detail.value,this.valueIdProduct=e.detail.idProduct,this.valueIdSku=e.detail.idSku,this.valueToModal=e.detail.openModal,!sessionStorage.getItem("viewCookieGift")&&this.valueToModal?this.verifyGift():this.commomService.finishLoadComponent("onProductAddedToCart",{detail:[this.valueToEvent]}),clearInterval(this.intervalId),this.intervalId=null},100))}),this.sharedDataCommomService.cart$.subscribe(e=>{if(null!=e&&null!=e.items&&e.items.length>0){if(this.cart=e,Boolean(this.cart.warningMessage)){let n=this.cart.warningMessage;setTimeout(()=>{-1===document.getElementById("jet-alert-title").textContent.toLowerCase().indexOf("alguns brindes foram remov
3idos")&&this.commomService.displayMessageUser("error",n)},1e3),this.commomService.getGiftCookie().subscribe(),this.jsonToAdd=[]}else this.commomService.getGiftCookie().subscribe(n=>{n.exists&&(this.page.indexOf("/checkout/payment")>-1&&setTimeout(()=>{this.commomService.displayMessageUser("error",n.value)},this.page.indexOf("/checkout/payment")>-1?3e3:1e3),this.jsonToAdd=[])});(0===this.getCampaigns.length||sessionStorage.getItem("viewCookieGift"))&&this.getCampaigns()}else this.jsonToAdd=[],this.campaigns=[]})}getCampaigns(e=!1){this.checkoutService.getCampaigns().subscribe(n=>{n&&n.length>0?(this.campaigns=n,this.campaigns.filter(r=>1===r.campaignType).length>0?e?this.openModalClient():(!sessionStorage.getItem("addByDetail")||sessionStorage.getItem("viewCookieGift"))&&(this.campaigns=this.campaigns.filter(r=>1!==r.campaignType)):e&&this.commomService.finishLoadComponent("onProductAddedToCart",{detail:[this.valueToEvent]}),!sessionStorage.getItem("addGiftAuto")&&!e&&this.getGiftsToInsert(),this.totalGift=this.campaigns.reduce((r,o)=>r+(o.giftQuantities-o.giftQuantitiesChosen),0),this.campaignToMessage=this.campaigns.find(r=>r.valueToAchieveGift>0),this.campaignToTip=this.campaigns.filter(r=>0===r.valueToAchieveGift&&r.giftQuantities>r.giftQuantitiesChosen||1===r.campaignType).pop()||void 0,this.percentToGift=this.campaignToMessage?this.cart.subTotal/(this.cart.subTotal+this.campaignToMessage.valueToAchieveGift)*100:100,this.loadingBtn=!1,this.showBackLink=this.page.indexOf("/checkout")>-1):(this.campaigns=[],e&&this.commomService.finishLoadComponent("onProductAddedToCart",{detail:[this.valueToEvent]}))})}showCart(){return null!=this.cart&&this.cart.toString().length>0&&null!=this.cart.items&&this.cart.items.length>0}changeQuantity(e,n){document.getElementById("qtd-"+e).value=n;let r=this.cart.items.findIndex(u=>u.idCartGift==e),o=1,s=this.cart.items[r];o=Math.abs(this.cart.items[r].quantity-Number(n)),this.cart.items[r].quantity!==n&&(this.action=this.cart.items[r].quantity<n?"add":"remove",this.checkoutService.changeQuantityGiftCart(s.giftCampaignId,e,n).subscribe(u=>{r>-1&&(this.cart.items[r].quantity=n),s.quantity=Number(o),s.isEmpty=0==this.cart.items.length,this.commomService.finishLoadComponent("remove"===this.action?"onProductRemoveFromCart":"onProductCartAdd",{detail:s}),this.commomService.finishLoadComponent("onJetGiftReset"),document.body.classList.remove("jet-loading")},u=>{r>-1&&(document.getElementById("qtd-"+e).value=this.cart.items[r].quantity),this.commomService.displayMessageUser("error",u.error.error),document.body.classList.remove("jet-loading")}))}deleteItem(e){let n=this.cart.items.findIndex(o=>o.idCartGift==e),r=this.cart.items[n];this.checkoutService.deleteGift(e).subscribe(o=>{if(this.cart.items.splice(n,1),r.isEmpty=0==this.cart.items.length,this.cart.items.length>0){sessionStorage.setItem("addGiftAuto","true");let s=this.campaigns.filter(u=>u.campaignId===r.giftCampaignId);(!s[0]||s[0]&&1===s[0].campaignType)&&sessionStorage.removeItem("viewCookieGift")}this.commomService.finishLoadComponent("onProductRemoveFromCart",{detail:r}),this.commomService.finishLoadComponent("onJetGiftReset"),this.commomService.finishLoadComponent("onJetReloadCart"),document.body.classList.remove("jet-loading")},o=>{document.body.classList.remove("jet-loading"),this.commomService.displayMessageUser("error",o.error.error)})}viewModalCampaign(){this.listAddedOnCart(),this.campaigns.forEach(e=>{0===e.valueToAchieveGift&&this.viewModalProducts(e.campaignId)}),document.querySelector(".jet-gift-campaign").classList.remove("hideme"),this.loadingGift=!0}viewModalProducts(e){return new Promise(n=>{this.checkoutService.getGifts(e).subscribe(r=>{r&&r.length>0&&(this.giftsByCampaign[e]=r.sort((o,s)=>s.quantityAddOnCart-o.quantityAddOnCart),this.loadingGift=!1),n(!0)})})}viewModalVariations(e){document.querySelector(".jet-gift-variations").classList.remove("hideme"),document.querySelector(".jet-gift-variations").classList.add("jet-loading"),this.checkoutService.getGiftVariations(e.productId).subscribe(n=>{n&&n.references.length>0&&(this.giftVariation=n,this.giftByVariation=e,document.querySelector(".jet-gift-variations").classList.remove("jet-loading"))})}
3closeModal(e){e?.closest(".jet-modal")?.classList?.add("hideme")}shouldOpenModal(e){return e.hasStock&&e.giftQuantitiesChosen<e.giftQuantities&&0===e.valueToAchieveGift}calculateProgress(){let e=!0;const n=[];return this.campaigns.forEach((r,o)=>{let s=0;e?(this.cart.subTotal>=this.cart.subTotal+r.valueToAchieveGift?(s=100,e=!0):(r.valueToAchieveGift>0&&(s=100*(this.cart.subTotal/(this.cart.subTotal+r.valueToAchieveGift)-.2)),e=!1),n.push(s)):n.push(0)}),n}listAddedOnCart(){return new Promise(e=>{this.checkoutService.listAddedOnCart().subscribe(n=>{n&&n.length>0&&(this.jsonToAdd=n.filter(r=>r.quantity>0).map(r=>({...r,quantity:r.quantity}))),e(!0)},n=>{e(!0)})})}addOrRemoveGift(e,n){const r=this.jsonToAdd.findIndex(o=>o.productId===e.productId&&o.productSkuId===e.productSkuId);-1!==r?this.jsonToAdd[r].quantity++:this.jsonToAdd.push({...e,quantity:1,temp:!0}),this.insertGift(void 0,e.campaignId,n)}removeTempGifts(){this.jsonToAdd=this.jsonToAdd.filter(e=>!e.temp)}getLimitGift(e){const n=this.campaigns.filter(r=>r.campaignId===e)[0];return n.giftQuantities-n.giftQuantitiesChosen==0}getAddedGift(e){return this.jsonToAdd.filter(n=>n.productId===e).reduce((n,r)=>n+r.quantity,0)}insertGift(e,n,r=!0){if(0===this.jsonToAdd.length)return;this.loadingBtn=!0;const o=this.jsonToAdd.map(({campaignId:s,productId:u,productSkuId:v,quantity:w})=>({campaignId:s,productId:u,productSkuId:v,quantity:w}));this.checkoutService.insertGift(o).subscribe(s=>{r&&this.commomService.displayMessageUser("success","Brindes adicionados com sucesso"),this.commomService.finishLoadComponent("onJetReloadCart"),n&&this.viewModalProducts(n),setTimeout(()=>{this.loadingBtn=!1},1e3),e&&e?.closest(".jet-modal")?.classList?.add("hideme")},s=>{r&&this.commomService.displayMessageUser("error","N\xe3o foi poss\xedvel adicionar os brindes"),this.loadingBtn=!1})}syncWithOriginal(e){e?.closest(".jet-modal")?.classList?.add("hideme"),this.originalJson=this.originalJson.filter(n=>this.jsonToAdd.some(r=>r.productId===n.productId&&!r.exclude)||!n.filtered),this.jsonToAdd.forEach(n=>{const r=this.originalJson.find(o=>o.productId===n.productId);r&&(r.quantity=n.quantity)}),this.originalJson=this.originalJson.map(({filtered:n,exclude:r,...o})=>o),this.jsonToAdd=this.originalJson.map(n=>({...n})),this.insertGift(e)}restoreOriginalArray(){this.jsonToAdd=[...this.originalJson]}changeVariation(e,n){this.selectedVariations[e]=n,this.updateActiveClass(n);const r=Object.values(this.selectedVariations);for(const o of this.giftVariation.combinations){const s=o.variation.map(u=>u.idGridVariation);if(s.length===r.length){if(r.every(u=>s.includes(u))){const u=this.jsonToAdd.find(v=>v.productSkuId===o.idSku);this.skuActive=u?o.stock>0&&u.quantity<=o.stock:o.stock>0,this.skuSelected=this.skuActive?o.idSku:-1;break}this.skuActive=!1,this.skuSelected=-1}}}updateActiveClass(e){const n=document.querySelector(`.gift-variation [data-id-variation="${e}"]`);if(n){const r=n.parentElement?.children;r&&(Array.from(r).forEach(o=>{o!==n&&o.classList.remove("active")}),n.classList.add("active"))}}addGiftVariation(e){0!==this.skuSelected&&this.giftByVariation&&(this.giftByVariation={...this.giftByVariation,quantity:1,productSkuId:this.skuSelected},this.addOrRemoveGift(this.giftByVariation),e?.closest(".jet-modal")?.classList?.add("hideme"),this.resetSelectedSku())}resetSelectedSku(){this.skuActive=!1,this.skuSelected=0,this.giftByVariation=void 0,this.selectedVariations={}}formByModal(){this.formGift=this.fb.group({name:["",[oe.required,oe.pattern(/^[A-z\xc0-\xff'][A-z\xc0-\xff']+\s([A-z\xc0-\xff']\s?)*[A-z\xc0-\xff'][A-z\xc0-\xff'](\s?)+$/)]],email:["",[oe.required,oe.pattern(/^(([^<>()[\]\\.,;:\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,}))$/)]],phone:["",[oe.required,oe.minLength(14)]]})}get idForm(){return this.formGift.controls}maskPhone(){this.idForm.phone.setValue(this.commomService.phoneNumberMask(this.idForm.phone.value))}verifyGift(){return new Promise(e=>{sessionStorage.getItem("viewCookieGift")?(this.commomService.finishLoadComponent("onProductAddedToCart",{detail:[this.valueToEvent]}),e(!0)):this.commomService.getGiftCookieByModal().subscribe(n=>{n.exists?(this.commomService.finishLoadComponent("onProductAddedToCart",{detail:[this.valueToEvent]}),e(!0)):(0===this.campaigns.length&&this.getCampaigns(!0),e(!0))},n=>{this.commomService.finishLoadComponent("onProductAddedToCart",{detail:[this.valueToEvent]}),e(!0)})})}getGiftsToInsert(){var e=this;return(0,Zs.Z)(function*(){if(e.campaigns.filter(n=>0===n.campaignType).length>0){let n=e.campaigns.filter(r=>0===r.campaignType&&1===r.giftQuantities&&0===r.giftQuantitiesChosen&&0===r.valueToAchieveGift);n.length>
30&&(yield e.listAddedOnCart(),n.forEach(function(){var r=(0,Zs.Z)(function*(o){if(yield e.viewModalProducts(o.campaignId),1===e.giftsByCampaign[o.campaignId].length){var u=e.giftsByCampaign[o.campaignId].pop();0===u.quantityAddOnCart&&(!u.hasVariation&&u.stock>0?e.addOrRemoveGift(u,!1):u.hasVariation&&e.autoSelectSkuAndInsert(u))}});return function(o){return r.apply(this,arguments)}}()))}})()}autoSelectSkuAndInsert(e){this.checkoutService.getGiftVariations(e.productId).pipe(Ru(1)).subscribe(n=>{if(!n)return;const r=n.combinations||[],o=r.filter(P=>P.stock>0),s=n.references||[],u=s.length>0&&s.every(P=>1===(P.gridVariations||[]).length),v=1===o.length?o[0]:u?o[0]||r[0]:null;if(!v)return;const w={...e,productSkuId:v.idSku,quantity:1};this.addOrRemoveGift(w,!1)})}openModalClient(){var e=this;return(0,Zs.Z)(function*(){if(e.existsGiftByModal=!0,e.formByModal(),1===e.campaigns.filter(r=>1===r.campaignType).length){const r=e.campaigns.find(o=>1===o.campaignType).campaignId;if(yield e.viewModalProducts(r),1===e.giftsByCampaign[r].length){var n=e.giftsByCampaign[r].pop();e.dataTextGiftTitle=e.dataTextGiftTitle.replace("{brinde}",n.name),n.hasVariation||(e.jsonToAdd.push({campaignId:n.campaignId,productId:n.productId,productSkuId:n.productSkuId,quantity:1}),sessionStorage.setItem("viewCookieGift","true"))}else e.dataTextGiftTitle=e.dataTextGiftTitle.replace("{brinde}","brinde")}else e.dataTextGiftTitle=e.dataTextGiftTitle.replace("{brinde}","brinde");e.commomService.finishLoadComponent("onJetShowGiftByModalLoaded"),e.showModal=!0})()}addGift(){if(!this.formGift.valid)return Object.keys(this.formGift.controls).forEach(r=>{this.formGift.controls[r].markAsDirty()}),!1;this.loading=!0;let e=this.campaigns.filter(r=>1===r.campaignType).pop().campaignId;var n={name:this.idForm.name.value,email:this.idForm.email.value,phone:this.idForm.phone.value,campaignId:e,productId:this.valueIdProduct,productSkuId:this.valueIdSku};this.checkoutService.registerGiftClient(n).subscribe(r=>{this.showModal=!1,this.loading=!1,this.jsonToAdd.length>0&&this.insertGift(),sessionStorage.setItem("addByDetail","true"),this.commomService.finishLoadComponent("onRegisterClientByGift",{detail:n}),this.commomService.finishLoadComponent("onProductAddedToCart",{detail:[this.valueToEvent]})},r=>{this.commomService.finishLoadComponent("onProductAddedToCart",{detail:[this.valueToEvent]}),this.showModal=!1,this.loading=!1})}closeModalClient(){this.showModal=!1,this.loading=!1,sessionStorage.setItem("viewCookieGift","true"),this.campaigns=this.campaigns.filter(e=>1!==e.campaignType),this.commomService.finishLoadComponent("onProductAddedToCart",{detail:[this.valueToEvent]})}static#e=this.\u0275fac=function(n){return new(n||t)($(Ss),$(qt),$(yn),$($h),$(ao))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-gift"]],viewQuery:function(n,r){if(1&n&&Tu(UD,5),2&n){let o;_d(o=Cd())&&(r.campaignsList=o.first)}},inputs:{dataTextGiftTitle:["data-text-gift-title","dataTextGiftTitle"],dataTextGiftDescription:["data-text-gift-description","dataTextGiftDescription"],dataButtonGiftText:["data-button-gift-text","dataButtonGiftText"],dataTextGiftClose:["data-text-gift-close","dataTextGiftClose"],dataShowGiftImage:["data-show-gift-image","dataShowGiftImage"],dataImageGiftSourceDesktop:["data-image-gift-source-desktop","dataImageGiftSourceDesktop"],dataImageGiftSourceMobile:["data-image-gift-source-mobile","dataImageGiftSourceMobile"]},decls:2,vars:2,consts:[["class","jet-gift",4,"ngIf"],["class","jet-modal jet-gift-by-modal",4,"ngIf"],[1,"jet-gift"],["class","campaigns",4,"ngIf"],[1,"jet-modal","jet-gift-campaign","hideme"],[1,"jet-modal-content","modal-content","content-center"],["type","button",1,"jet-modal-close","modal-close",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 352 512",1,"icon"],["fill","currentColor","d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z",1,""],[1,"title"],[3,"innerHTML"],["class","step-gift",4,"ngIf"],[1,"campaigns-list",3,"ngClass"],[4,"ngFor","ngForOf"],[1,"jet-modal","jet-gift-variations","hideme"],["class","gift-variation",4,"ngIf"],[1,"jet-modal-actions"],["type","button",1,"btn-cancel","modal
3-close",3,"click"],["type","button",1,"btn-save",3,"disabled","click"],[1,"campaigns"],["class","congrutulations",4,"ngIf"],["class","pending",4,"ngIf"],[1,"congrutulations"],["xmlns","http://www.w3.org/2000/svg","width","15","height","15","viewBox","0 0 15 15","fill","none"],["d","M13.125 3.75006H12.8284C13.1949 3.04641 13.2826 2.16677 12.7393 1.22848C12.2789 0.433448 11.436 -0.00755804 10.5173 0.000176335C9.31459 0.0102545 8.53187 0.637442 7.5293 2.00323C6.52646 0.637032 5.7399 0.0098443 4.53656 0.000176335C3.61822 -0.00726507 2.77576 0.433799 2.3156 1.22859C1.77234 2.16677 1.86012 3.04641 2.22656 3.75006H1.875C0.839473 3.75006 0 4.58947 0 5.62506V7.50006C0 8.01779 0.419766 8.43756 0.9375 8.43756V13.1251C0.9375 14.1606 1.77697 15.0001 2.8125 15.0001H12.1875C13.2231 15.0001 14.0625 14.1606 14.0625 13.1251V8.43756C14.5803 8.43756 15 8.01779 15 7.50006V5.62506C15 4.58947 14.1606 3.75006 13.125 3.75006ZM10.5469 1.40631C11.1914 1.40631 11.7188 1.93365 11.7188 2.57818C11.7188 3.22272 11.1914 3.75006 10.5469 3.75006H8.02368C9.52881 1.50885 9.94995 1.40631 10.5469 1.40631ZM4.50806 1.40631C5.09399 1.40631 5.52246 1.50152 7.03125 3.75006H4.50806C3.86353 3.75006 3.33618 3.22272 3.33618 2.57818C3.33618 1.93365 3.86353 1.40631 4.50806 1.40631ZM6.5625 13.5938H2.8125C2.55404 13.5938 2.34375 13.3835 2.34375 13.1251V8.43756H6.5625V13.5938ZM12.6562 13.1251C12.6562 13.3835 12.446 13.5938 12.1875 13.5938H8.4375V8.43756H12.6562V13.1251ZM13.5938 7.03131H1.40625V5.62506C1.40625 5.3666 1.61654 5.15631 1.875 5.15631H13.125C13.3835 5.15631 13.5938 5.3666 13.5938 5.62506V7.03131Z","fill","black"],[1,"message"],[3,"click"],[1,"pending"],["href","/","title","Continuar comprando",4,"ngIf"],[1,"progress-container"],[1,"progress-bar"],["href","/","title","Continuar comprando"],[1,"step-gift"],[1,"steps-title"],[1,"steps"],["class","progress-container",4,"ngFor","ngForOf"],[1,"step"],[1,"step-info"],[1,"step-icon"],[4,"ngIf"],[1,"campaign"],[1,"campaign-title"],["xmlns","http://www.w3.org/2000/svg","width","20","height","20","viewBox","0 0 43 43","fill","none"],["d","M30.0566 3.25601C28.6173 3.25601 27.2844 3.992 26.5239 5.21047L22.8439 11.1066H23.7516H30.2938C32.4608 11.1066 34.219 9.34836 34.219 7.18128C34.219 5.0142 32.4608 3.25601 30.2938 3.25601H30.0566ZM19.4257 11.1066L15.7457 5.21047C14.9852 3.992 13.6522 3.25601 12.213 3.25601H11.9758C9.80875 3.25601 8.05056 5.0142 8.05056 7.18128C8.05056 9.34836 9.80875 11.1066 11.9758 11.1066H18.5179H19.4257ZM21.1348 8.89859L24.3077 3.82844C25.5507 1.84945 27.7178 0.63916 30.0566 0.63916H30.2938C33.9083 0.63916 36.8359 3.56676 36.8359 7.18128C36.8359 8.65326 36.3452 10.0107 35.5275 11.1066H38.1443C40.3114 11.1066 42.0696 12.8647 42.0696 15.0318V20.2655C42.0696 21.9746 40.9738 23.4303 39.4527 23.97V24.1908V37.275C39.4527 40.1617 37.1057 42.5087 34.219 42.5087H8.05056C5.16385 42.5087 2.81686 40.1617 2.81686 37.275V24.1908V23.97C1.29582 23.4303 0.200012 21.9746 0.200012 20.2655V15.0318C0.200012 12.8647 1.95821 11.1066 4.12528 11.1066H6.74213C5.92437 10.0107 5.43371 8.65326 5.43371 7.18128C5.43371 3.56676 8.36131 0.63916 11.9758 0.63916H12.213C14.5518 0.63916 16.727 1.84127 17.9619 3.82844L21.1348 8.89859ZM11.9758 13.7234H4.12528C3.40565 13.7234 2.81686 14.3122 2.81686 15.0318V20.2655C2.81686 20.9852 3.40565 21.5739 4.12528 21.5739H5.43371H19.8264V13.7234H18.5179H11.9758ZM22.4432 13.7234V21.5739H36.8359H38.1443C38.8639 21.5739 39.4527 20.9852 39.4527 20.2655V15.0318C39.4527 14.3122 38.8639 13.7234 38.1443 13.7234H30.2938H23.7516H22.4432ZM19.8264 24.1908H5.43371V37.275C5.43371 38.7225 6.60311 39.8919 8.05056 39.8919H19.8264V24.1908ZM22.4432 39.8919H34.219C35.6665 39.8919 36.8359 38.7225 36.8359 37.275V24.1908H22.4432V39.8919Z","fill","black"],[1,"campaign-description"],[4,"ngIf","ngIfElse"],["selected",""],[1,"gift-list"],["class","gift",4,"ngFor","ngForOf"],[1,"gift"],[1,"gift-image","notranslate"],["onerror","this.src='./assets/no-image.png'","jet-image-size","","loading","lazy","fetchPriority","low",3,"src","alt","decode"],[1,"gift-info"],[1,"gift-name","notranslate"],["sold",""],["type","button","disabled","true",1,"sold"],["class","gift-number",4,"ngIf"],[1,"gift-number"],["type","button","class","gift-select",3,"ngClass","disabled","click",4,"ngIf"],["type","button","class","gift-variation",3,"ngClass","disabled","click",4,"ngIf"],["type","button",1,"gift-select",3,"ngClass","disabled","click"],["type","button",1,"gift-variation",3,"ngClass","disabled","click"],[1,"g
3ift-variation"],[1,"reference-list"],["class","reference",4,"ngFor","ngForOf"],[1,"reference"],[1,"variations"],["class","variation",4,"ngFor","ngForOf"],[1,"variation"],["class","variation-image","jet-image-size","","loading","lazy","fetchPriority","low",3,"src","alt","decode","click",4,"ngIf"],["class","variation-color",3,"background-color","click",4,"ngIf"],["class","variation-text",3,"click",4,"ngIf"],["jet-image-size","","loading","lazy","fetchPriority","low",1,"variation-image",3,"src","alt","decode","click"],[1,"variation-color",3,"click"],[1,"variation-text",3,"click"],[1,"jet-modal","jet-gift-by-modal"],[1,"content-modal"],[1,"form-gift",3,"formGroup","ngSubmit"],[1,"container-form"],[1,"container-field","name"],["for","name"],["placeholder","nome completo","formControlName","name","maxlength","100"],["name",""],["class","invalid-feedback",4,"ngIf"],[1,"container-field","email"],["placeholder","[email protected]","formControlName","email","maxlength","100"],["email",""],[1,"container-field","phone"],["for","phone"],["placeholder","telefone ou celular","formControlName","phone","maxlength","15","autocomplete","off",3,"keyup","blur","paste"],["phone",""],["type","submit",1,"btn-save",3,"ngClass"],[3,"src",4,"ngIf"],[3,"src"],[1,"invalid-feedback"]],template:function(n,r){1&n&&(C(0,IP,24,10,"div",0),C(1,BP,31,12,"div",1)),2&n&&(d("ngIf",r.campaigns&&r.campaigns.length>0&&r.percentToGift>0&&r.showCart()),c(1),d("ngIf",r.showModal))},dependencies:[ui,ei,en,Gr,mr,fr,Ur,Zo,Ir,Mr,bs]})}return t})();var jP=Wr(7822),VP=Wr(2983),sv=Wr.n(VP);function HP(t,i){if(1&t){const e=ve();a(0,"div",1)(1,"span"),h(2,"EXPORTAR EM:"),l(),a(3,"div",2)(4,"button",3),J("click",function(){return M(e),L(_().exportCart("csv"))}),we(),a(5,"svg",4),B(6,"path",5),l()(),Pe(),a(7,"button",6),J("click",function(){return M(e),L(_().exportCart("pdf"))}),we(),a(8,"svg",4),B(9,"path",7),l()()()()}}let zP=(()=>{class t{constructor(e,n){this.customerService=e,this.sharedDataCommomService=n,this.dataShowExportCart="false",this.showExportCart=!1}ngOnInit(){"/checkout"!=location.pathname&&"false"==this.dataShowExportCart||(this.sharedDataCommomService.cart$.subscribe(e=>{this.cart=e}),this.customerService.isLogged().subscribe(e=>{e&&e.data.authenticated&&(e.data.hasPassword||e.data.isCustomerRegister)&&(this.showExportCart=!0,this.customerService.getCustomer(e.data.idCustomer).subscribe(n=>{this.customer=n}))}))}exportCart(e){let n,r,o="0.00",s="0.00",u="0.00";if(this.customer&&this.cart){r="1"==this.customer.typeCustomer?"CNPJ":"CPF";let v=this.customer.address.findIndex(w=>1==w.default);if(-1==v&&(v=this.customer.address.findIndex(w=>1==w.addressType)),n=this.customer.address[v],this.cart.subTotal>0&&(o=this.cart.subTotal.toFixed(2).toString()),this.cart.totalDiscount>0&&(s=this.cart.totalDiscount.toFixed(2).toString()),this.cart.total>0&&(u=this.cart.total.toFixed(2).toString()),"csv"==e){let w=[["Nome",r,"E-mail","Rua","N\xfamero","Complemento","Bairro","Cidade","Estado","C\xf3digo","Nome","Quantidade","Valor Unit\xe1rio","Valor Total","Subtotal","Descontos","Total","Mensagem"]];this.cart.items.forEach(ne=>{let De=ne.productCode;ne.skuCode&&ne.skuCode.length>0&&(De+="-"+ne.skuCode),w.push([this.customer.name,this.customer.cpf_cnpj,this.customer.email,n.streetAddress,n.number,n.complement,n.neighbourhood,n.city,n.state,De,ne.originalName,ne.quantity.toString(),ne.price.toFixed(2).toString(),ne.priceTotal.toFixed(2).toString(),o,s,u,"Os valores do carrinho est\xe3o sujeitos a altera\xe7\xf5es at\xe9 o fechamento do pedido."])});const P="\ufeff"+w.map(ne=>ne.join(",")).join("\n"),F=new Blob([P],{type:"text/csv;charset=utf-8;"}),R=URL.createObjectURL(F),V=document.createElement("a");V.setAttribute("href",R),V.setAttribute("download","dados.csv"),V.style.visibility="hidden",document.body.appendChild(V),V.click(),document.body.removeChild(V)}else if("pdf"==e){const w=new jP.default;w.setFontSize(14),w.setFont("helvetica","bold"),w.text("Mensagem",15,20),w.setFontSize(10),w.setFont("helvetica","normal"),w.text("Os valores do carrinho est\xe3o sujeitos a altera\xe7\xf5es at\xe9 o fechamento do pedido.",15,26),w.setFont("helvetica","bold"),w.setFontSize(14),w.text("Cliente",15,35);let P=["Nome",r,"E-mail"];const R=[{nome:this.customer.name,document:this.customer.cpf_cnpj,email:this.customer.email}].map(Ie=>[Ie.nome,Ie.document,Ie.email]);sv()(w,{head:[P],body:R,startY:37,theme:"grid",styles:{fontSize:10},headStyles:{fillColor:[188,188,188]}}),w.text("Endere\xe7o",15,60);
3const V=["Rua","N\xfamero","Complemento","Bairro","Cidade","Estado"],De=[{street:n.streetAddress,number:n.number,complement:n.complement,neighbourhood:n.neighbourhood,city:n.city,state:n.state}].map(Ie=>[Ie.street,Ie.number,Ie.complement,Ie.neighbourhood,Ie.city,Ie.state]);sv()(w,{head:[V],body:De,startY:62,theme:"grid",styles:{fontSize:10},headStyles:{fillColor:[188,188,188]}}),w.text("Carrinho",15,85);const ke=["C\xf3digo","Nome","Quantidade","Valor Unit\xe1rio","Valor Total","Subtotal","Descontos","Total"];let je=[];this.cart.items.forEach(Ie=>{let xt=Ie.productCode;Ie.skuCode&&Ie.skuCode.length>0&&(xt+="-"+Ie.skuCode),je.push({code:xt,name:Ie.originalName,quantity:Ie.quantity.toString(),price:Ie.price.toFixed(2).toString(),priceTotal:Ie.priceTotal.toFixed(2).toString(),subtotal:o,discount:s,total:u})});const at=je.map(Ie=>[Ie.code,Ie.name,Ie.quantity,Ie.price,Ie.priceTotal,Ie.subtotal,Ie.discount,Ie.total]);sv()(w,{head:[ke],body:at,startY:87,theme:"grid",styles:{fontSize:10},headStyles:{fillColor:[188,188,188]}}),w.save("relatorio.pdf")}}}static#e=this.\u0275fac=function(n){return new(n||t)($(Ci),$(yn))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-export-cart"]],inputs:{dataShowExportCart:["data-show-export-cart","dataShowExportCart"]},decls:1,vars:1,consts:[["class","export-cart",4,"ngIf"],[1,"export-cart"],[1,"export-options"],[1,"csv",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M64 464H96v48H64c-35.3 0-64-28.7-64-64V64C0 28.7 28.7 0 64 0H229.5c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3V288H336V160H256c-17.7 0-32-14.3-32-32V48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16zM200 352h16c22.1 0 40 17.9 40 40v8c0 8.8-7.2 16-16 16s-16-7.2-16-16v-8c0-4.4-3.6-8-8-8H200c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h16c4.4 0 8-3.6 8-8v-8c0-8.8 7.2-16 16-16s16 7.2 16 16v8c0 22.1-17.9 40-40 40H200c-22.1 0-40-17.9-40-40V392c0-22.1 17.9-40 40-40zm133.1 0H368c8.8 0 16 7.2 16 16s-7.2 16-16 16H333.1c-7.2 0-13.1 5.9-13.1 13.1c0 5.2 3 9.9 7.8 12l37.4 16.6c16.3 7.2 26.8 23.4 26.8 41.2c0 24.9-20.2 45.1-45.1 45.1H304c-8.8 0-16-7.2-16-16s7.2-16 16-16h42.9c7.2 0 13.1-5.9 13.1-13.1c0-5.2-3-9.9-7.8-12l-37.4-16.6c-16.3-7.2-26.8-23.4-26.8-41.2c0-24.9 20.2-45.1 45.1-45.1zm98.9 0c8.8 0 16 7.2 16 16v31.6c0 23 5.5 45.6 16 66c10.5-20.3 16-42.9 16-66V368c0-8.8 7.2-16 16-16s16 7.2 16 16v31.6c0 34.7-10.3 68.7-29.6 97.6l-5.1 7.7c-3 4.5-8 7.1-13.3 7.1s-10.3-2.7-13.3-7.1l-5.1-7.7c-19.3-28.9-29.6-62.9-29.6-97.6V368c0-8.8 7.2-16 16-16z"],[1,"pdf",3,"click"],["d","M64 464l48 0 0 48-48 0c-35.3 0-64-28.7-64-64L0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 304l-48 0 0-144-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16zM176 352l32 0c30.9 0 56 25.1 56 56s-25.1 56-56 56l-16 0 0 32c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-48 0-80c0-8.8 7.2-16 16-16zm32 80c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0 0 48 16 0zm96-80l32 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-32 0c-8.8 0-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zm32 128c8.8 0 16-7.2 16-16l0-64c0-8.8-7.2-16-16-16l-16 0 0 96 16 0zm80-112c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 32 32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 48c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-64 0-64z"]],template:function(n,r){1&n&&C(0,HP,10,0,"div",0),2&n&&d("ngIf",r.showExportCart)},dependencies:[en]})}return t})();function qP(t,i){if(1&t){const e=ve();a(0,"span",4),J("click",function(){M(e);const r=_(2);return L(r.showInput=!r.showInput)}),h(1,"Adicionar"),l()}}function $P(t,i){if(1&t){const e=ve();a(0,"input",8,9),J("keyup.enter",function(){M(e);const r=Wt(1);return L(_(3).applyDiscount(r.value))})("keyup",function(){M(e);const r=Wt(1);return L(_(3).code=r.value)}),l()}2&t&&Ue("value",_(3).currentCoupon)}const ay=function(t){return{"jet-btn-loading":t}};function UP(t,i){if(1&t){const e=ve();ht(0),a(1,"span",10),h(2),l(),a(3,"button",11),J("click",function(){return M(e),L(_(3).removeCoupon(!0))}),we(),a(4,"svg",12),B(5,"path",13),l()(),mt()}if(2&t){const e=_(3);c(2),de(e.currentCoupon),c(1),d("ngClass",Oe(2,ay,e.loading))}}
3function GP(t,i){if(1&t){const e=ve();ht(0),a(1,"button",14),J("click",function(){M(e);const r=_(3);return L(r.applyDiscount(r.code))}),h(2,"Aplicar"),l(),mt()}if(2&t){const e=_(3);c(1),d("ngClass",Oe(2,ay,e.loading))("disabled",""==e.code)}}function WP(t,i){if(1&t&&(a(0,"div",5),C(1,$P,2,1,"input",6),C(2,UP,6,4,"ng-container",7),C(3,GP,3,4,"ng-container",7),l()),2&t){const e=_(2);c(1),d("ngIf",!e.activeCoupon),c(1),d("ngIf",e.activeCoupon),c(1),d("ngIf",!e.activeCoupon)}}function JP(t,i){if(1&t&&(a(0,"div",1),h(1," Cupom: "),C(2,qP,2,0,"span",2),C(3,WP,4,3,"div",3),l()),2&t){const e=_();c(2),d("ngIf",!e.showInput),c(1),d("ngIf",e.showInput)}}let ZP=(()=>{class t{constructor(e,n,r,o){this.sharedDataCommomService=e,this.commomService=n,this.customerService=r,this.checkoutService=o,this.dataShowCouponCart="false",this.showCouponCart=!1,this.activeCoupon=!1,this.loading=!1,this.isLogged=!1,this.currentCoupon="",this.code="",this.showInput=!1,this.functionAdd=this.handleJetDiscountCouponCart.bind(this),this.functionControlLocalStorage=this.handleJetControlLocalStorage.bind(this)}ngOnInit(){localStorage.getItem("couponAppliedOnCart")&&(this.currentCoupon=localStorage.getItem("couponAppliedOnCart"),this.activeCoupon=!0,this.showInput=!0,this.code=this.currentCoupon),document.removeEventListener("onJetDiscountCouponCartUpdateDiscount",this.functionAdd),document.addEventListener("onJetDiscountCouponCartUpdateDiscount",this.functionAdd,{passive:!0}),document.removeEventListener("onJetDiscountCouponCartRemoveLocalStorage",this.functionControlLocalStorage),document.addEventListener("onJetDiscountCouponCartRemoveLocalStorage",this.functionControlLocalStorage,{passive:!0}),setTimeout(()=>{this.sharedDataCommomService.cart$.subscribe(e=>{this.cart=e,this.cart&&0==this.cart.totalDiscount&&this.activeCoupon&&this.commomService.finishLoadComponent("onJetDiscountCouponCartUpdateDiscount"),this.cart&&this.cart.items&&this.cart.items[0].isRecurrent&&(this.showCouponCart=!1)}).unsubscribe()},2e3),this.customerService.isLogged().subscribe(e=>{e&&(e.data.authenticated&&(this.isLogged=!0),this.showCouponCart="true"==this.dataShowCouponCart,this.cart&&this.cart.items&&this.cart.items[0].isRecurrent&&(this.showCouponCart=!1),this.sharedDataCommomService.currentCompany$.pipe(Mu(n=>!!n),Ru(1)).subscribe(n=>{this.company=n,!0===this.company.enableMultipleCoupons&&(this.showCouponCart=!1)}))}),this.commomService.finishLoadComponent("onJetDiscountCouponCartLoaded")}onJetDiscountCouponCart(){this.currentCoupon&&this.checkoutService.removeDiscountCoupon().subscribe(e=>{e&&this.applyDiscount(this.currentCoupon,!1,!0)})}onJetControlLocalStorage(){this.currentCoupon="",localStorage.removeItem("couponAppliedOnCart")}handleJetDiscountCouponCart(e){this.onJetDiscountCouponCart()}handleJetControlLocalStorage(e){this.onJetControlLocalStorage()}applyDiscount(e,n=!0,r=!1){e?(r?document.getElementsByClassName("jet-cart-preview").length>0?this.commomService.showLoadingByClass("jet-cart-preview"):this.commomService.showLoading():this.loading=!0,this.isLogged?this.checkoutService.applyDiscount(e).subscribe(o=>{o&&this.actionsAfterCouponApplied(!0,"",e,n)},o=>{let s=o?.error?.error;this.actionsAfterCouponApplied(!1,s,"",n)}):this.checkoutService.applyCartDiscount(e).subscribe(o=>{o&&this.actionsAfterCouponApplied(!0,"",e,n)},o=>{let s=o?.error?.error;this.actionsAfterCouponApplied(!1,s,"",n)})):this.commomService.displayMessageUser("error","Informe um cupom")}actionsAfterCouponApplied(e=!0,n="",r="",o=!0){e?(this.activeCoupon=!0,localStorage.setItem("couponAppliedOnCart",r),this.currentCoupon=r,this.commomService.finishLoadComponent("onJetDiscountCouponCartApplied"),this.commomService.finishLoadComponent("onJetReloadCart"),this.loading=!1,o&&this.commomService.displayMessageUser("success","Cupom aplicado com sucesso")):(this.loading=!1,document.getElementsByClassName("jet-cart-preview").length>0?this.commomService.hideLoadingByClass("jet-cart-preview"):this.commomService.hideLoading(),localStorage.removeItem("couponAppliedOnCart"),this.activeCoupon=!1,this.currentCoupon="",this.commomService.finishLoadComponent("onJetReloadCart"),this.commomService.displayMessageUser("error",n||"Falha ao aplicar o cupom"))}
3removeCoupon(){this.loading=!0,this.checkoutService.removeDiscountCoupon().subscribe(e=>{e&&(this.activeCoupon=!1,localStorage.removeItem("couponAppliedOnCart"),this.currentCoupon="",this.commomService.finishLoadComponent("onJetDiscountCouponCartRemoved"),this.commomService.finishLoadComponent("onJetReloadCart"),this.loading=!1)})}ngOnDestroy(){document.removeEventListener("onJetDiscountCouponCartUpdateDiscount",this.functionAdd)}static#e=this.\u0275fac=function(n){return new(n||t)($(yn),$(qt),$(Ci),$(Ss))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-discount-coupon-cart"]],inputs:{dataShowCouponCart:["data-show-discount-coupon-cart","dataShowCouponCart"]},decls:1,vars:1,consts:[["class","jet-discount-coupon-cart",4,"ngIf"],[1,"jet-discount-coupon-cart"],["class","add",3,"click",4,"ngIf"],["class","coupon",4,"ngIf"],[1,"add",3,"click"],[1,"coupon"],["class","discount-key","type","text","placeholder","C\xf3digo do cupom",3,"value","keyup.enter","keyup",4,"ngIf"],[4,"ngIf"],["type","text","placeholder","C\xf3digo do cupom",1,"discount-key",3,"value","keyup.enter","keyup"],["coupon",""],[1,"code"],[1,"remove-discount",3,"ngClass","click"],["width","18","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 448 512"],["d","M432 64C440.8 64 448 71.16 448 80C448 88.84 440.8 96 432 96H413.7L388.2 452.6C385.9 486.1 357.1 512 324.4 512H123.6C90.01 512 62.15 486.1 59.75 452.6L34.29 96H16C7.164 96 0 88.84 0 80C0 71.16 7.164 64 16 64H111.1L137 22.56C145.8 8.526 161.2 0 177.7 0H270.3C286.8 0 302.2 8.526 310.1 22.56L336.9 64H432zM177.7 32C172.2 32 167.1 34.84 164.2 39.52L148.9 64H299.1L283.8 39.52C280.9 34.84 275.8 32 270.3 32H177.7zM381.6 96H66.37L91.67 450.3C92.87 467 106.8 480 123.6 480H324.4C341.2 480 355.1 467 356.3 450.3L381.6 96z"],[1,"apply-discount",3,"ngClass","disabled","click"]],template:function(n,r){1&n&&C(0,JP,4,2,"div",0),2&n&&d("ngIf",r.showCouponCart)},dependencies:[ui,en]})}return t})();function QP(t,i){if(1&t){const e=ve();a(0,"div",1)(1,"button",2),J("click",function(){return M(e),L(_().generateLink())}),we(),a(2,"svg",3),B(3,"path",4),l(),h(4),l()()}if(2&t){const e=_();c(4),dt(" ",e.dataButtonText," ")}}let ly=(()=>{class t{constructor(e){this.socialSellingService=e,this.dataButtonText="Compartilhar carrinho"}generateLink(){const e=document.querySelector("#modalSocialSelling");e&&e.classList.remove("hideme")}getIsSocialSellingActive(){return this.socialSellingService.mode?.active||!1}static#e=this.\u0275fac=function(n){return new(n||t)($(iv))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-social-selling-button"]],inputs:{dataButtonText:["data-button-text","dataButtonText"]},decls:1,vars:1,consts:[["class","jet-social-selling-button",4,"ngIf"],[1,"jet-social-selling-button"],["type","button",1,"social-selling-button",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","18","viewBox","0 0 16 18","fill","none"],["d","M16 4.5C16 6.36328 14.4643 7.875 12.5714 7.875C11.5393 7.875 10.6143 7.425 9.98571 6.71484L6.78214 8.29336C6.83214 8.52187 6.85714 8.75742 6.85714 9C6.85714 9.24258 6.83214 9.47813 6.78214 9.70664L9.98571 11.2852C10.6143 10.575 11.5393 10.125 12.5714 10.125C14.4643 10.125 16 11.6367 16 13.5C16 15.3633 14.4643 16.875 12.5714 16.875C10.6786 16.875 9.14286 15.3633 9.14286 13.5C9.14286 13.2574 9.16786 13.0219 9.21786 12.7934L6.01429 11.2148C5.38571 11.925 4.46071 12.375 3.42857 12.375C1.53571 12.375 0 10.8633 0 9C0 7.13672 1.53571 5.625 3.42857 5.625C4.46071 5.625 5.38571 6.075 6.01429 6.78516L9.21786 5.20664C9.16786 4.97813 9.14286 4.74258 9.14286 4.5C9.14286 2.63672 10.6786 1.125 12.5714 1.125C14.4643 1.125 16 2.63672 16 4.5ZM3.42857 10.6875C3.88323 10.6875 4.31926 10.5097 4.64075 10.1932C4.96225 9.87678 5.14286 9.44755 5.14286 9C5.14286 8.55245 4.96225 8.12322 4.64075 7.80676C4.31926 7.49029 3.88323 7.3125 3.42857 7.3125C2.97391 7.3125 2.53788 7.49029 2.21639 7.80676C1.8949 8.12322 1.71429 8.55245 1.71429 9C1.71429 9.44755 1.8949 9.87678 2.21639 10.1932C2.53788 10.5097 2.97391 10.6875 3.42857 10.6875ZM14.2857 4.5C14.2857 4.27839 14.2414 4.05896 14.1552 3.85422C14.0691 3.64948 13.9428 3.46346 13.7836 3.30676C13.6244 3.15006 13.4354 3.02576 13.2275 2.94095C13.0195 2.85615 12.7966 2.8125 12.5714 2.8125C12.3463 2.8125 12.1234 2.85615 11.9154 2.94095C11.7074 3.02576 11.5184 3.15006 11.3592 3.30676C11.2001 3.46346 11.0738 3.64948 10.9876 3.85422C10.9015 4.05896 10.8571 4.27839 10.8571 4.5C10.8571 4.72161 10.9015 4.94104 10.9876 5.14578C11.0738 5.35052 11.2001 5.53654 11.3592 5.69324C11.5184 5.84994 11.7074 5.97424 11.9154 6.05905C12.1234 6.14385 12.3463 6.1875 12.5714 6.1875C12.7966 6.1875 13.0195 6.14385 13.2275 6.05905C13.4354 5.97424 13.6244 5.84994 13.7836 5.69324C13.9428 5.53654 14.0691 5.35052 14.1552 5.14578C14.2414 4.94104 14.2857 4.72161 14.2857 4.5ZM12.5714 15.1875C13.0261 15.1875 13.4621 15.0097 13.7836 14.6932C14.1051 14.3768 14.2857 13.9476 14.2857 13.5C14.2857 13.0524 14.1051 12.6232 13.7836 12.3068C13.4621 11.9903 13.0261 11.8125 12.5714 11.8125C12.1168 11.8125 11.6807 11.9903 11.3592 12.3068C11.0378 12.6232 10.8571 13.0524 10.8571 13.5C10.8571 13.9476 11.0378 14.3768 11.3592 14.6932C11.6807 15.0097 12.1168 15.1875 12.5714 15.1875Z","fill","black"]],template:function(n,r){1&n&&C(0,QP,5,1,"div",0),2&n&&d("ngIf",r.getIsSocialSellingActive())},dependencies:[en],encapsulation:2})}return t})();function YP(t,i){if(1&t){const e=ve();a(0,"div",22)(1,"strong"),h(2,"Lista de presentes"),l(),a(3,"span"),h(4,"Voc\xea est\xe1 comprando em uma lista de presentes."),l(),a(5,"button",23),J("click",function(){return M(e),L(_().removeEventList())}),h(6,"N\xe3o \xe9 um presente"),l()()}}
3function KP(t,i){if(1&t&&(a(0,"div",24)(1,"span",25),h(2),l(),a(3,"p",26),h(4),l()()),2&t){const e=_();c(2),de(e.dataEmptyTitleText),c(2),de(e.dataEmptyDescriptionText)}}function XP(t,i){1&t&&(a(0,"div",30),we(),a(1,"svg",31),B(2,"path",32),l(),Pe(),a(3,"span",33),h(4," Caso opte pelo recebimento em vez da retirada, por favor, exclua os produtos exclusivos para "),a(5,"strong"),h(6,"retirada em loja."),l()()())}function eT(t,i){if(1&t&&(a(0,"div",34)(1,"span",35),h(2),l()()),2&t){const e=_(2);c(2),de(e.freeFreightMessage)}}function tT(t,i){if(1&t&&(ht(0),B(1,"div",59),mt()),2&t){const e=_().$implicit,n=_(2);c(1),d("innerHtml",n.formatHTML(e.personalization),ce)}}function nT(t,i){1&t&&B(0,"span",64),2&t&&d("innerHTML",_(2).$implicit.additionalValueDescription,ce)}function iT(t,i){if(1&t&&(ht(0),a(1,"div",60)(2,"span",61),h(3),l(),C(4,nT,1,1,"span",62),a(5,"span",63),h(6),l()(),mt()),2&t){const e=_().$implicit,n=_(2);c(3),de(e.additionalValueLabel),c(1),d("ngIf",e.additionalValueDescription),c(2),dt("+ ",n.commomService.priceMask(e.additionalValue),"")}}function rT(t,i){if(1&t&&(a(0,"div",67)(1,"span",68),h(2),l(),a(3,"span",69),h(4),l()()),2&t){const e=i.$implicit;c(2),dt("",e.quantity,"x "),c(2),de(e.name)}
3}function oT(t,i){if(1&t&&(a(0,"div",65),C(1,rT,5,2,"div",66),l()),2&t){const e=_().$implicit;c(1),d("ngForOf",e.productsKit)}}function sT(t,i){if(1&t&&(a(0,"div",72)(1,"span",73),h(2),a(3,"span",74),h(4),l()()()),2&t){const e=i.$implicit;c(2),dt("",e.nameReference,":"),c(2),de(e.nameVariation)}}function aT(t,i){if(1&t&&(a(0,"div",70),C(1,sT,5,2,"div",71),l()),2&t){const e=_().$implicit;c(1),d("ngForOf",e.cartItemVariations)}}function lT(t,i){if(1&t&&(ht(0),a(1,"span"),h(2),l(),mt()),2&t){const e=_(3).$implicit,n=_(2);c(2),de(n.commomService.priceMask(e.priceTotalWithDiscount))}}function cT(t,i){if(1&t&&(a(0,"span"),h(1),l()),2&t){const e=_(3).$implicit,n=_(2);c(1),de(n.commomService.priceMask(e.priceTotal))}}function dT(t,i){if(1&t&&(ht(0),a(1,"span",77),C(2,lT,3,1,"ng-container",78),C(3,cT,2,1,"ng-template",null,79,_i),l(),mt()),2&t){const e=Wt(4),n=_(2).$implicit;c(2),d("ngIf",n.priceTotalWithDiscount<n.priceTotal)("ngIfElse",e)}}function uT(t,i){if(1&t&&(ht(0),a(1,"span"),h(2),l(),mt()),2&t){const e=_(4).$implicit,n=_(2);c(2),de(n.commomService.priceMask(e.pricePromotion*e.quantity))}}function hT(t,i){if(1&t&&(a(0,"span"),h(1),l()),2&t){const e=_(4).$implicit,n=_(2);c(1),de(n.commomService.priceMask(e.price*e.quantity))}}function mT(t,i){if(1&t&&(a(0,"span",82),C(1,uT,3,1,"ng-container",78),C(2,hT,2,1,"ng-template",null,83,_i),l()),2&t){const e=Wt(3),n=_(3).$implicit;c(1),d("ngIf",n.priceTotalWithDiscount<n.priceTotal)("ngIfElse",e)}}function fT(t,i){if(1&t&&(a(0,"span",82)(1,"span"),h(2),l()()),2&t){const e=_(3).$implicit,n=_(2);c(2),de(n.commomService.priceMask(e.price*e.quantity))}}function pT(t,i){if(1&t&&(ht(0),a(1,"span"),h(2),l(),mt()),2&t){const e=_(3).$implicit,n=_(2);c(2),de(n.commomService.priceMask(e.priceTotalWithDiscount))}}function gT(t,i){if(1&t&&(a(0,"span"),h(1),l()),2&t){const e=_(3).$implicit,n=_(2);c(1),de(n.commomService.priceMask((null!=e.pricePromotion&&e.pricePromotion>0&&e.pricePromotion<e.price?e.pricePromotion:e.price)*e.quantity))}}function vT(t,i){if(1&t&&(ht(0),C(1,mT,4,2,"span",80),C(2,fT,3,1,"span",80),a(3,"span",77),C(4,pT,3,1,"ng-container",78),C(5,gT,2,1,"ng-template",null,81,_i),l(),mt()),2&t){const e=Wt(6),n=_(2).$implicit;c(1),d("ngIf",null!=n.pricePromotion&&n.pricePromotion>0&&(n.pricePromotion<n.price||n.priceTotalWithDiscount<n.priceTotal)),c(1),d("ngIf",n.priceTotalWithDiscount<n.priceTotal&&(null==n.pricePromotion||0==n.pricePromotion)),c(2),d("ngIf",n.priceTotalWithDiscount<n.priceTotal)("ngIfElse",e)}}function _T(t,i){if(1&t&&(a(0,"div",84),we(),a(1,"svg",85),B(2,"path",86),l(),h(3," ver impostos "),Pe(),a(4,"div",35)(5,"span",87),h(6,"Impostos:"),l(),a(7,"div",88)(8,"span",89),h(9),l(),a(10,"span",90),h(11),l()(),a(12,"span",91),h(13,"Valor final com impostos: "),a(14,"span",63),h(15),l()()()()),2&t){const e=_(2).$implicit,n=_(2);c(9),dt(" + ",e.taxes.ipi,"% IPI "),c(2),dt(" + ",e.taxes.st,"% ST "),c(4),de(n.commomService.priceMask(e.taxes.priceWithTaxes))}}function CT(t,i){if(1&t&&(a(0,"div",75),C(1,dT,5,2,"ng-container",44),C(2,vT,7,4,"ng-container",44),C(3,_T,16,3,"div",76),l()),2&t){const e=_().$implicit;c(1),d("ngIf",e.personalization),c(1),d("ngIf",!e.personalization),c(1),d("ngIf",e.taxes)}}function yT(t,i){1&t&&(a(0,"div",92),we(),a(1,"svg",93),B(2,"path",94)(3,"path",95)(4,"line",96),l()())}function bT(t,i){1&t&&(a(0,"div",97)(1,"span"),h(2,"Brinde"),l()())}
3function ST(t,i){if(1&t&&(a(0,"div",98)(1,"span",35),h(2),l()()),2&t){const e=_().$implicit;c(2),de(e.etiquetaDisponibilidade)}}function wT(t,i){if(1&t){const e=ve();a(0,"div",99)(1,"button",100),J("click",function(){M(e);const r=_().$implicit;return L(_(2).changeQuantityCart(r.idCartItem,r.quantity-(r.unitMultiplier>1?r.unitMultiplier:1),r.idCartPersonalization,r.idCartGift))}),a(2,"span"),h(3,"-"),l()(),a(4,"input",101),J("blur",function(r){M(e);const o=_().$implicit;return L(_(2).changeQuantityCart(o.idCartItem,r.target.value,o.idCartPersonalization,o.idCartGift))}),l(),a(5,"button",102),J("click",function(){M(e);const r=_().$implicit;return L(_(2).changeQuantityCart(r.idCartItem,r.quantity+(r.unitMultiplier>1?r.unitMultiplier:1),r.idCartPersonalization,r.idCartGift))}),a(6,"span"),h(7,"+"),l()()()}if(2&t){const e=_().$implicit;c(4),hr("id","qtd-",e.isGift?e.idCartGift:e.idCartItem,""),ii("value",e.quantity)("data-unitmultiplier",e.unitMultiplier)}}function IT(t,i){if(1&t&&(a(0,"div",103)(1,"small"),h(2),l()()),2&t){const e=_().$implicit;c(2),Eo("(",e.stock," unidade",e.stock>1?"s":"",")")}}function xT(t,i){1&t&&(a(0,"div",104)(1,"span"),h(2,"Produto esgotado"),l()())}function DT(t,i){1&t&&(a(0,"div",104)(1,"span"),h(2,"Produto indispon\xedvel"),l()())}function PT(t,i){if(1&t){const e=ve();a(0,"div",36)(1,"div",37)(2,"a",38),B(3,"img",39),l()(),a(4,"div",40)(5,"div",41)(6,"a",42),B(7,"span",43),l(),C(8,tT,2,1,"ng-container",44),C(9,iT,7,3,"ng-container",44),C(10,oT,2,1,"div",45),C(11,aT,2,1,"div",46),l(),C(12,CT,4,3,"div",47),C(13,yT,5,0,"div",48),C(14,bT,3,0,"div",49),C(15,ST,3,1,"div",50),a(16,"div",51),C(17,wT,8,3,"div",52),C(18,IT,3,2,"div",53),C(19,xT,3,0,"div",54),C(20,DT,3,0,"div",54),a(21,"div",55)(22,"button",56),J("click",function(){const o=M(e).$implicit;return L(_(2).deleteCartItem(o))}),a(23,"span"),h(24,"x"),l()()()(),B(25,"jet-cart-timer",57)(26,"jet-product-flash-offer",58),l()()}if(2&t){const e=i.$implicit,n=_(2);ii("data-id-product",null==e?null:e.idProduct)("data-sku",null==e?null:e.idSku),c(2),d("href",e.urlProduct?e.urlProduct:"",fe),c(1),Ue("alt",e.originalName),d("src",e.productImage.imageDefault,fe)("decode",!0),c(3),d("href",e.urlProduct,fe),c(1),d("innerHtml",e.originalName,ce),c(1),d("ngIf",e.personalization),c(1),d("ngIf",e.additionalValue&&e.additionalValue>0),c(1),d("ngIf",null!=e.productsKit&&e.productsKit.length>0),c(1),d("ngIf",null!=e.cartItemVariations&&e.cartItemVariations.length>0),c(1),d("ngIf",!e.isGift),c(1),d("ngIf",e.restrictedDelivery),c(1),d("ngIf",e.isGift),c(1),d("ngIf",null!=e.etiquetaDisponibilidade&&null!=e.etiquetaDisponibilidade),c(2),d("ngIf",e.stock>0&&1==e.flagExhausted),c(1),d("ngIf",n.showChangedQuantityAvailability&&e.stock>0&&e.quantity>e.stock),c(1),d("ngIf",0==e.stock||0==e.flagExhausted),c(1),d("ngIf",!e.availableForPurchase),c(5),d("data-current-date",e.currentSystemDate)("data-expiration-date",e.expirationDate)("data-description",n.dataTextProductTimer),c(1),d("data-product",e)}}function TT(t,i){if(1&t&&(a(0,"div",27),C(1,XP,7,0,"div",28),C(2,eT,3,1,"div",29),C(3,PT,27,24,"div",18),B(4,"jet-frequency-recurrency"),l()),2&t){const e=_();c(1),d("ngIf",e.hasRestrictedDelivery),c(1),d("ngIf",e.freeFreightMessage.length>0),c(1),d("ngForOf",e.cart.items)}}function ET(t,i){if(1&t&&(a(0,"option",125),h(1),l()),2&t){const e=i.$implicit;d("ngValue",e.id),c(1),dt(" ",e.name," ")}}function LT(t,i){if(1&t&&(a(0,"option",125),h(1),l()),2&t){const e=i.$implicit;d("ngValue",e.idCountryState),c(1),dt(" ",e.name," ")}}function kT(t,i){if(1&t){const e=ve();a(0,"div",122)(1,"label",129),h(2,"Estado*"),l(),a(3,"select",130),J("ngModelChange",function(r){return M(e),L(_(4).selectedStateId=r)}),a(4,"option",125),h(5,"Selecione o estado"),l(),C(6,LT,2,2,"option",126),l()()}if(2&t){const e=_(4);c(3),d("ngModel",e.selectedStateId),c(1),d("ngValue",null),c(2),d("ngForOf",e.statesOptions)}}const cy=function(t){return{"jet-btn-loading":t}};function MT(t,i){if(1&t){const e=ve();ht(0),a(1,"div",121)(2,"div",122)(3,"label",123),h(4,"Pa\xeds*"),l(),a(5,"select",124),J("ngModelChange",function(r){return M(e),L(_(3).selectedCountryId=r)})("change",function(){M(e);const r=_(3);return L(r.loadStatesByCountry(r.selectedCountryId))}),a(6,"option",125),h(7,"Selecione o pa\xeds"),l(),C(8,ET,2,2,"option",126),l()(),C(9,kT,7,3,"div",127),a(10,"button",128),J("click",function(){return M(e),L(_(3).calcFreight("",!1))}),h(11,"CALCULAR"),l()(),mt()}if(2&t){const e=_(3);c(5),d("ngModel",e.selectedCountryId),c(1),d("ngValue",null),c(2),d("ngForOf",e.countriesOptions),c(1),d("ngIf",e.selectedCountryId>0),c(1),d("ngClass",Oe(5,cy,e.loading))}}const dy=function(t){return{active:t}};function FT(t,i){if(1&t){const e=ve();a(0,"div",133)(1,"button",134),J("click",function(){M(e);const r=_(4);return L(r.calcFreight(r.zipcode,!1))}),h(2,"Receber"),l(),a(3,"button",135),J("click",function(){M(e);const r=_(4);return L(r.calcFreight(r.zipcode,!0))}),h(4,"Retirar"),l()()}if(2&t){const e=_(4);c(1),d("ngClass",Oe(2,dy,!e.isDeliveryWithPickup)),c(2),d("ngClass",Oe(4,dy,e.isDeliveryWithPickup))}}function AT(t,i){if(1&t){const e=ve();ht(0),a(1,"button",136),J("click",function(){return M(e),L(_(4).clearVariables())}),h(2,"Recalcular"),l(),mt()}}function NT(t,i){if(1&t){const e=ve();
3a(0,"div",137)(1,"span"),h(2,"CALCULE O FRETE:\xa0"),l(),a(3,"input",138,139),J("keypress",function(r){return M(e),L(_(4).commomService.cepMaskEvent(r))})("keyup.enter",function(){M(e);const r=Wt(4);return L(_(4).calcFreight(r.value,!1))})("keyup",function(){M(e);const r=Wt(4);return L(_(4).calcSubmit(r.value,!1))}),l(),a(5,"button",140),J("click",function(){M(e);const r=Wt(4);return L(_(4).calcFreight(r.value,!1))}),h(6,"Calcular"),l()()}if(2&t){const e=_(4);c(5),d("ngClass",Oe(1,cy,e.loading))}}function OT(t,i){if(1&t&&(ht(0),C(1,FT,5,6,"div",131),C(2,AT,3,0,"ng-container",78),C(3,NT,7,3,"ng-template",null,132,_i),mt()),2&t){const e=Wt(4),n=_(3);c(1),d("ngIf",n.useDeliveryWithPickup&&n.activatedButtonDeliveryWithPickup),c(1),d("ngIf",null!=n.freights&&n.freights.length>0||n.activatedButtonDeliveryWithPickup)("ngIfElse",e)}}function RT(t,i){if(1&t){const e=ve();a(0,"input",152),J("click",function(){M(e);const r=_().$implicit;return L(_(4).selectFreight(r.shippingMode.idShippingMode))}),l()}if(2&t){const e=_().$implicit;Ue("id",e.shippingMode.idShippingMode),Ue("value",e.shippingMode.idShippingMode)}}function BT(t,i){if(1&t&&(a(0,"div",153),we(),a(1,"svg",154),B(2,"path",155),l()()),2&t){const e=_().$implicit;ii("data-description",null==e.shippingMode?null:e.shippingMode.description)}}function jT(t,i){if(1&t&&(a(0,"div",156),h(1),l()),2&t){const e=_().$implicit,n=_(4);c(1),de(n.returnPickUpAddress(e.shippingMode.pickUpAddress))}}function VT(t,i){if(1&t){const e=ve();a(0,"div",157),J("click",function(){M(e);const r=_().$implicit;return L(_(4).outItems(r))}),l()}if(2&t){const e=_().$implicit;d("innerHTML",_(4).showMessageOutStock(e),ce)}}const HT=function(t,i){return{pickup:t,split:i}};function zT(t,i){if(1&t){const e=ve();ht(0),a(1,"div",143),J("change",function(){const o=M(e).$implicit;return L(_(4).onCheckboxChange(o.shippingMode.idShippingMode))}),C(2,RT,1,2,"input",144),a(3,"label",145)(4,"div",69),B(5,"span",146)(6,"span",147),C(7,BT,3,1,"div",148),l(),C(8,jT,2,1,"div",149),B(9,"div",150),C(10,VT,1,1,"div",151),l()(),mt()}if(2&t){const e=i.$implicit,n=_(4);c(1),d("ngClass",Us(10,HT,n.isDeliveryWithPickup,n.splitActive))("checked",n.selectedShippingId===e.shippingMode.idShippingMode),c(1),d("ngIf",!n.isDeliveryWithPickup),c(1),Ue("for",e.shippingMode.idShippingMode),c(2),d("innerHTML",n.getFreightDescription(e,"type"),ce),c(1),d("innerHTML",n.isDeliveryWithPickup?"Frete gr\xe1tis":n.getFreightDescription(e,"value"),ce),c(1),d("ngIf",null==e.shippingMode?null:e.shippingMode.description),c(1),d("ngIf",n.isDeliveryWithPickup&&(null==e.shippingMode?null:e.shippingMode.pickUpAddress)),c(1),d("innerHTML",n.getFreightDescription(e,"time"),ce),c(1),d("ngIf",n.isDeliveryWithPickup&&e.splitCartOutStockItem)}}const qT=function(t){return{overflow:t}};function $T(t,i){if(1&t&&(a(0,"div",141),C(1,zT,11,13,"ng-container",142),Wi(2,"slice"),l()),2&t){const e=_(3);d("ngClass",Oe(6,qT,e.freights.length>4)),c(1),d("ngForOf",Wf(2,2,e.freights,0,e.isDeliveryWithPickup?2:e.freights.length))}}function UT(t,i){1&t&&(a(0,"div",158),we(),a(1,"svg",159),B(2,"path",160),l(),h(3," Seu pedido poder\xe1 ser dividido em mais de uma entrega "),l())}function GT(t,i){if(1&t){const e=ve();a(0,"div",161),J("click",function(){return M(e),L(_(3).verifyClassModal("#modalAllFreightsPreview"))}),we(),a(1,"svg",162),B(2,"path",163),l(),h(3," Ver todas as op\xe7\xf5es de retirada "),l()}}function WT(t,i){if(1&t&&(ht(0),a(1,"div",164)(2,"strong"),h(3),l(),h(4," Informe outro CEP ou selecione outro m\xe9todo de entrega. "),l(),mt()),2&t){const e=_(3);c(3),dt(" Infelizmente ainda ",e.isDeliveryWithPickup?"n\xe3o temos nenhuma op\xe7\xe3o para retirada":"n\xe3o entregamos na sua regi\xe3o",". ")}}function JT(t,i){if(1&t&&(a(0,"div",117),C(1,MT,12,7,"ng-container",44),C(2,OT,5,3,"ng-container",44),C(3,$T,3,8,"div",118),C(4,UT,4,0,"div",119),C(5,GT,4,0,"div",120),C(6,WT,5,1,"ng-container",44),l()),2&t){const e=_(2);c(1),d("ngIf",e.isInternational),c(1),d("ngIf",!e.isInternational),c(1),d("ngIf",null!=e.freights&&e.freights.length>0),c(1),d("ngIf",e.hasSplit&&!e.isDeliveryWithPickup),c(1),d("ngIf",null!=e.freights&&e.freights.length>2&&e.isDeliveryWithPickup),c(1),d("ngIf",e.showShippingResult)}}function ZT(t,i){if(1&t&&(a(0,"div",165)(1,"span"),h(2,"Subtotal: "),a(3,"span",63),h(4),l()()()),2&t){const e=_(2);c(4),de(e.commomService.priceMask(e.cart.subTotal))}}function QT(t,i){if(1&t&&(a(0,"div",166)(1,"span"),h(2,"Frete: "),a(3,"span",114),h(4),l()()()),2&t){const e=_(2);c(4),de(e.commomService.priceMask(e.freightCalc))}}function YT(t,i){if(1&t&&(a(0,"div",167)(1,"span"),h(2,"Desconto: "),a(3,"span",63),h(4),l()()()),2&t){const e=_(2);c(4),de(e.commomService.priceMask(e.cart.totalDiscount))}}function KT(t,i){if(1&t&&(a(0,"div",84)(1,"span"),h(2,"Impostos: "),a(3,"span",63),h(4),l()()()),2&t){const e=_(2);c(4),de(e.commomService.priceMask(e.cart.totalTaxes))}}function XT(t,i){if(1&t){const e=ve();a(0,"div",105),C(1,JT,7,6,"div",106),B(2,"jet-export-cart",107),a(3,"div",108),C(4,ZT,5,1,"div",109),C(5,QT,5,1,"div",110),C(6,YT,5,1,"div",111),B(7,"jet-discount-coupon-cart",112),C(8,KT,5,1,"div",76),a(9,"div",113)(10,"span"),h(11,"Total a pagar: "),a(12,"span",114),h(13),l()()(),a(14,"button",115),J("click",function(){M(e);const r=_();return L(r.goToCheckout(r.isRecurrent))}),h(15),l(),B(16,"jet-social-selling-button"),a(17,"a",116),h(18),l()()()}if(2&t){const e=_();c(1),d("ngIf",!e.cart.isFullDigital),c(1),d("data-show-export-cart",e.dataShowExportCart),c(2),d("ngIf",null!=e.cart.totalDiscount&&e.cart.totalDiscount>0||e.freightCalc>0||e.cart.totalTaxes),c(1),d("ngIf",e.freightCalc>0),c(1),d("ngIf",null!=e.cart.totalDiscount&&e.cart.totalDiscount>0),c(1),d("data-show-discount-coupon-cart",e.dataShowDiscountCouponCart),c(1),d("ngIf",e.cart.totalTaxes),c(5),de(e.commomService.priceMask(e.cart.total+e.freightCalc-(null!=e.cart.totalShipping?e.cart.totalShipping:0))),c(2),de(e.dataBuyButtonText),c(2),Ue("title",e.dataCartButtonText),c(1),de(e.dataCartButtonText)}}function eE(t,i){if(1&t&&(a(0,"div",174),B(1,"img",39),a(2,"div",40),B(3,"a",175),l()()),2&t){const e=i.$implicit;c(1),Ue("alt",e.name),d("src",e.productImage.imageDefault,fe)("decode",!0),c(2),d("innerHtml",e.originalName,ce)}}function tE(t,i){if(1&t){const e=ve();a(0,"div",168)(1,"div",169)(2,"button",12),J("click",function(){return M(e),L(_().verifyClassModal())}),we(),a(3,"svg",13),B(4,"path",14),l(),Pe(),a(5,"span"),h(6,"Fechar"),l()(),a(7,"span",170),h(8),l(),C(9,eE,4,4,"div",171),a(10,"div",172)(11,"button",173),J("click",function(){return M(e),L(_().excluirProdutosEsgotados())}),h(12),l()()()()}if(2&t){const e=_();c(8),de(e.titleModal),c(1),d("ngForOf",e.items),c(3),de(e.titleButton)}}function nE(t,i){if(1&t){const e=ve();a(0,"div",176)(1,"div",177)(2,"button",12),J("click",function(){return M(e),L(_().verifyClassModal("#modalRecurrency"))}),we(),a(3,"svg",13),B(4,"path",14),l(),Pe(),a(5,"span"),h(6,"Fechar"),l()(),a(7,"span",178),h(8,"Termos de Aceite Compra Recorrente"),l(),a(9,"div",40),B(10,"p",179),Wi(11,"safeHtml"),l(),a(12,"div",180)(13,"input",181,182),J("ngModelChange",function(r){return M(e),L(_().isCheckedRecurrencyTerms=r)}
3),l(),a(15,"label",183),h(16,"Li e concordo com o termo de aceite"),l()(),a(17,"div",184)(18,"button",185),J("click",function(){return M(e),L(_().acceptTermsRecurrency())}),h(19,"Aceitar"),l()()()()}if(2&t){const e=_();c(10),d("innerHtml",Lo(11,3,e.acceptedTermRecurringPurchase),ce),c(3),d("ngModel",e.isCheckedRecurrencyTerms),c(5),d("disabled",!e.isCheckedRecurrencyTerms)}}function iE(t,i){if(1&t&&(a(0,"div",193)(1,"span",72),h(2),l(),a(3,"span",74),h(4),l()()),2&t){const e=i.$implicit;c(2),dt("",e.nameReference,": "),c(2),de(e.nameVariation)}}function rE(t,i){if(1&t&&(ht(0),C(1,iE,5,2,"div",192),mt()),2&t){const e=_().$implicit;c(1),d("ngForOf",e.productVariations)}}function oE(t,i){if(1&t&&(ht(0),B(1,"div",59),mt()),2&t){const e=_().$implicit,n=_();c(1),d("innerHtml",n.formatHTML(e.personalization),ce)}}function sE(t,i){if(1&t&&(a(0,"div",36)(1,"div",186),B(2,"img",187),l(),a(3,"div",188)(4,"span",189),h(5),l(),a(6,"div",190)(7,"div",63),h(8),l()(),C(9,rE,2,1,"ng-container",44),C(10,oE,2,1,"ng-container",44),a(11,"div",191),h(12),l()()()),2&t){const e=i.$implicit,n=_();c(2),Ue("src",e.productImage,fe),Ue("alt",e.originalProductName),c(3),dt(" ",e.originalProductName," "),c(3),dt(" ",n.commomService.priceMask(e.productPrice)," "),c(1),d("ngIf",e.productVariations),c(1),d("ngIf",e.personalization),c(2),dt(" Qtd.: ",e.productQuantity," ")}}function aE(t,i){if(1&t&&(a(0,"div",153),we(),a(1,"svg",154),B(2,"path",155),l()()),2&t){const e=_().$implicit;ii("data-description",null==e.shippingMode?null:e.shippingMode.description)}}function lE(t,i){if(1&t&&(a(0,"div",156),h(1),l()),2&t){const e=_().$implicit,n=_(2);c(1),de(n.returnPickUpAddress(e.shippingMode.pickUpAddress))}}function cE(t,i){if(1&t){const e=ve();a(0,"div",196),J("click",function(){M(e);const r=_().$implicit;return L(_(2).outItems(r,!0,"#modalAllFreightsPreview"))}),l()}if(2&t){const e=_().$implicit;d("innerHTML",_(2).showMessageOutStock(e),ce)}}function dE(t,i){if(1&t&&(ht(0),a(1,"div",166)(2,"label",145)(3,"div",69),B(4,"span",146),a(5,"span",63),h(6,"Frete gr\xe1tis"),l(),C(7,aE,3,1,"div",148),l(),C(8,lE,2,1,"div",149),B(9,"div",150),C(10,cE,1,1,"div",195),l()(),mt()),2&t){const e=i.$implicit,n=_(2);c(2),Ue("for",e.shippingMode.idShippingMode),c(2),d("innerHTML",n.getFreightDescription(e,"type"),ce),c(3),d("ngIf",null==e.shippingMode?null:e.shippingMode.description),c(1),d("ngIf",null==e.shippingMode?null:e.shippingMode.pickUpAddress),c(1),d("innerHTML",n.getFreightDescription(e,"time"),ce),c(1),d("ngIf",n.isDeliveryWithPickup&&e.splitCartOutStockItem)}}function uE(t,i){if(1&t&&(a(0,"div",194),C(1,dE,11,6,"ng-container",142),l()),2&t){const e=_();c(1),d("ngForOf",e.freights)}}let hE=(()=>{class t{constructor(e,n,r,o,s,u){this.checkoutService=e,this.shareDataCommom=n,this.commomService=r,this.sharedDataCommomService=o,this.sharedDataCheckoutService=s,this.socialSellingService=u,this.dataCartButtonText="Ir para o carrinho",this.dataBuyButtonText="Finalizar Compra",this.dataEmptyTitleText="Seu Carrinho est\xe1 vazio",this.dataEmptyDescriptionText="Voc\xea pode voltar a loja e aproveitar nossas ofertas!",this.dataTextProductTimer="Tempo restante: ",this.dataShowExportCart="false",this.dataShowDiscountCouponCart="false",this.dataTextGiftTitle="Quer ganhar um {brinde} de presente nessa compra?",this.dataTextGiftDescription="Preencha os campos abaixo e garanta j\xe1 seu brinde",this.dataButtonGiftText="ENVIAR",this.dataTextGiftClose="N\xe3o quero ganhar um brinde",this.dataShowGiftImage="false",this.dataImageGiftSourceDesktop="",this.dataImageGiftSourceMobile="",this.cart=void 0,this.freightCalc=0,this.freeFreightMessage="",this.zipcode="",this.items=[],this.loading=!1,this.action="",this.idEventList=Number(window.location.pathname.split("/")[1])||Number(sessionStorage.getItem("idEventList")),this.selectedShippingId=0,this.timeoutId=null,this.activeMultiCD=!1,this.lastFreight="",this.useDeliveryWithPickup=!1,this.isDeliveryWithPickup=!1,this.activatedButtonDeliveryWithPickup=!1,this.hasRestrictedDelivery=!1,this.acceptedTermRecurringPurchase="",this.isCheckedRecurrencyTerms=!1,this.isRecurrent=!1,this.zipCodeTax="",this.splitActive=!1,this.outShippingName="",this.outStockItems=[],this.showShippingResult=!1,this.hasS
3plit=!1,this.showChangedQuantityAvailability=!1,this.isInternational=!1,this.countriesOptions=[],this.statesOptions=[],this.selectedCountryId=null,this.selectedStateId=null}ngOnInit(){this.internationalSubs$=this.sharedDataCommomService.international$.subscribe(e=>{e&&(this.countrySelectedOnFlag=e.country,this.isInternational=e.isInternational,this.isInternational&&this.loadCountries())}),document.addEventListener("onJetCartPreview",()=>{this.loadPage("view_cart")},{passive:!0}),document.addEventListener("onProductAddedToCart",()=>{this.loadPage(void 0,void 0,void 0,!0)},{passive:!0}),document.addEventListener("onProductCartAdd",e=>{this.loadPage("add_to_cart",e.detail,void 0,!0)},{passive:!0}),document.addEventListener("onProductRemoveFromCart",e=>{this.loadPage("remove_from_cart",e.detail,void 0,!0)},{passive:!0}),document.addEventListener("onSessionIdEventListRemoved",e=>{this.idEventList=0},{passive:!0}),document.addEventListener("onJetReloadCart",()=>{this.loadPage()},{passive:!0}),this.sharedDataCommomService.currentCompany$.subscribe(e=>{e&&(this.acceptedTermRecurringPurchase=e.acceptedTermRecurringPurchase,this.activeMultiCD=e.activeMultiCD,this.useDeliveryWithPickup=e.useDeliveryWithPickup,this.splitActive=e.activeCartSplitMultiCD,this.minPurchaseAmount=e.minPurchaseAmount)}),this.commomService.getZipCodeTax().subscribe(e=>{e&&(this.zipCodeTax=e)}),document.addEventListener("onJetMultiCDUpdateCart",e=>{this.loadPage(null,null,!0)})}loadPage(e,n,r,o,s=!0){this.idEventList=null!=sessionStorage.getItem("idEventList")?Number(sessionStorage.getItem("idEventList")):0,this.items=[],s&&this.clearVariables(),(null==r||null==r||!r)&&(this.activatedButtonDeliveryWithPickup=!1),sessionStorage.removeItem("freightValue"),sessionStorage.removeItem("freightDeliveryWithPickup"),this.commomService.showLoadingByClass("jet-cart-preview"),this.cartSubs$=this.checkoutService.getCartUser().subscribe(u=>{if(Boolean(u?.warningMessage)){let v=u.warningMessage;setTimeout(()=>{this.commomService.displayMessageUser("error",v)},1e3)}null!=u&&null!=u.items&&u.items.length>0?(this.cart=u,this.hasRestrictedDelivery=void 0!==this.cart.items.find(v=>v.restrictedDelivery),this.isRecurrent=u.items[0].isRecurrent,u.items.forEach(v=>{(0==Number(v.flagExhausted)||v.stock<=0)&&this.items.push(v)}),this.items.length>0&&(this.titleModal=this.items.length>1?`Ops... existem ${this.items.length} produtos esgotados no seu carrinho.`:`Ops... existe ${this.items.length} produto esgotado no seu carrinho.`,this.titleButton=this.items.length>1?"Excluir Produtos":"Excluir Produto"),e&&this.commomService.finishLoadComponent("onJetPushDataLayerEvent",{detail:{type:e,products:n?[n]:u.items,sku:n?n?.idSku:void 0,params:"view_cart"!==e?{value:n.price}:void 0}}),this.sharedDataCommomService.changeValueCart(u)):(e&&"remove_from_cart"===e&&n&&this.commomService.finishLoadComponent("onJetPushDataLayerEvent",{detail:{type:e,products:[n],sku:n?.idSku,params:{value:n.price}}}),null!=sessionStorage.getItem("selectedFrequencyRecurrency")&&sessionStorage.removeItem("selectedFrequencyRecurrency"),this.cart=void 0),u&&u.items[0].isRecurrent&&this.commomService.finishLoadComponent("onJetLoadFrequencyRecurrency",{detail:{type:"cart",value:this.cart}}),this.commomService.hideLoadingByClass("jet-cart-preview"),this.commomService.finishLoadComponent("onJetCartPreviewLoaded"),this.sharedDataCommomService.changeValueCart(u),o&&u&&this.commomService.finishLoadComponent("onJetDiscountCouponCartUpdateDiscount"),u||this.commomService.finishLoadComponent("onJetDiscountCouponCartRemoveLocalStorage")})}ngOnDestroy(){this.cartSubs$.unsubscribe(),this.internationalSubs$?.unsubscribe()}changeQuantityCart(e,n,r=0,o){let s=this.cart.items.findIndex(o?v=>v.idCartGift==o:v=>v.idCartItem==e&&v.idCartPersonalization==r),u=1;if(this.cart.items[s].unitMultiplier>0){if(this.cart.items[s].unitMultiplier>n)return this.commomService.displayMessageUser("error",`Este produto s\xf3 pode ser comprado em quantidades m\xfaltiplas de ${this.cart.items[s].unitMultiplier}. Exemplo: ${this.cart.items[s].unitMultiplier}, ${2*this.cart.items[s].unitMultiplier}, ${3*this.cart.items[s].unitMultiplier} e etc.`),n=this.cart.items[s].unitMultiplier,void(document.getElementById("qtd-"+e).value=n);if(n%this.cart.items[s].unitMultiplier!=0)return this.commomService.displayMessageUser("error",`Este produto s\xf3 pode ser comprado em quantidades m\xfaltiplas de ${this.cart.items[s].unitMultiplier}. Exemplo: ${this.cart.items[s].unitMultiplier}, ${2*this.cart.items[s].unitMultiplier}, ${3*this.cart.items[s].unitMultiplier} e etc.`),n=Math.floor(n/this.cart.items[s].unitMultiplier)*this.cart.items[s].unitMultiplier,void(document.getElementById("qtd-"+e).value=n)}if(n<=0||n>9999||0==n.toString().length)this.commomService.displayMessageUser("error","Por favor, digite um valor entre 1 e 9999"),document.getElementById("qtd-"+(o??e)).value=this.cart.items[s].quantity;else{if(this.commomService.showLoadingByClass("jet-cart-preview"),this.cart.items[s].quantity===n)return;this.action=this.cart.items[s].quantity<n?"add":"remove";let v=this.cart.items[s];u=Math.abs(this.cart.items[s].quantity-Number(n)),0===o?(document.getElementById("qtd-"+e).value=n,this.cartSubs$=this.checkoutService.changeQuantityCart(e,n,this.cart.items[s].idCartPersonalization,this.cart.items[s].isRecurrent).subscribe(w=>{this.clearVariables(),this.freightCalc=0,s>-1&&(this.cart.items[s].quantity=n),v.quantity=Number(u),v.isEmpty=0==this.cart.items.length,this.commomService.finishLoadComponent("remove"===this.action?"onProductRemoveFromCart":"onProductCartAdd",{detail:v}),this.commomService.finishLoadComponent("onJetGiftReset")},w=>{s>-1&&(document.getElementById("qtd-"+e).value=this.cart.items[s].quantity),this.commomService.hideLoadingByClass("jet-cart-preview"),this.commomService.displayMessageUser("error",w.error.error)})):(this.commomService.hideLoadingByClass("jet-cart-preview"),this.commomService.finishLoadComponent("onJetGiftChangeQuantity",{detail:{idCartGift:o,qtd:n}}))}}deleteCartItem(e){if(this.commomService.showLoadingByClass("jet-cart-preview"),e.idCartGift>0)this.commomService.finishLoadComponent("onJetGiftDelete",{detail:{idCartGift:e.idCartGift}});else{let n=this.cart.items.findIndex(o=>o.idCartItem==e.idCartItem),r=this.cart.items[n];this.cartSubs$=this.checkoutService.deleteCartItem(e.idCartItem,e.i
3dCartPersonalization).subscribe(o=>{this.clearVariables(),this.freightCalc=0,this.cart.items.splice(n,1),r.isEmpty=!this.cart.items||0==this.cart.items.length,this.commomService.finishLoadComponent("onJetGiftReset"),this.commomService.finishLoadComponent("onProductRemoveFromCart",{detail:r}),this.commomService.hideLoadingByClass("jet-cart-preview")},o=>{this.commomService.hideLoadingByClass("jet-cart-preview"),this.commomService.displayMessageUser("error",o.error.error)})}}calcFreight(e,n){let r=this.selectedCountryId;if(!this.isInternational||r)if(!this.isInternational||this.selectedStateId)if(""!=e&&null!=e&&null!=e||r){sessionStorage.removeItem("freightValue"),this.freightCalc=0,this.zipcode=this.commomService.cepUnMask(e),this.loading=!0,this.clearVariables(),this.commomService.showLoadingByClass("cart-summary"),this.isDeliveryWithPickup=n,this.setFreightDeliveryWithPickup(this.isDeliveryWithPickup);let s=!1;this.activeMultiCD||this.zipCodeTax==this.zipcode?this.zipCodeTax!=this.zipcode&&(s=!0,this.zipCodeTax=this.zipcode,this.commomService.setZipCodeTax(this.zipcode).subscribe()):(s=!0,this.zipCodeTax=this.zipcode,this.commomService.setZipCodeTax(this.zipcode).subscribe(u=>{this.commomService.displayMessageUser("success","Pre\xe7os atualizados conforme sua regi\xe3o",""),this.commomService.finishLoadComponent("onJetReloadCart"),document.addEventListener("onJetCartPreviewLoaded",v=>{this.calcFreight(this.zipcode,this.isDeliveryWithPickup)},{passive:!0,once:!0})})),this.activeMultiCD?(this.zipCodeTax&&this.zipCodeTax!=this.zipcode&&(s=!0,this.zipCodeTax=this.zipcode,this.commomService.setZipCodeTax(this.zipcode).subscribe()),this.useDeliveryWithPickup&&(this.activatedButtonDeliveryWithPickup=!0),this.splitActive?this.getFreightFromSplit(this.zipcode):(this.commomService.finishLoadComponent("onJetChangedZipCode",{detail:{value:this.zipcode,isCheckout:!1,isDeliveryWithPickup:this.isDeliveryWithPickup,stateId:this.selectedStateId,idCountryToSimulate:this.selectedCountryId}}),document.addEventListener("changeShippingVisibility",u=>{u.detail.value?this.cartSubs$=this.checkoutService.getFreightsMiniCart(this.zipcode,!1,u.detail.idMultiCd,this.isRecurrent,this.isDeliveryWithPickup,u.detail.listIdMultiCd,null,this.selectedStateId,this.selectedCountryId).subscribe(P=>{this.freeFreightMessage="",this.freights=P,this.showShippingResult=!this.freights||0===this.freights.length,this.useDeliveryWithPickup&&(this.activatedButtonDeliveryWithPickup=!0),this.selectedCountryId?this.checkoutService.getFreeFreightTipInternational(this.selectedCountryId).subscribe(F=>{this.freights?.forEach(R=>{let V;V=F.find(4==R.shippingMode.hub||5==R.shippingMode.hub||6==R.shippingMode.hub||8==R.shippingMode.hub||9==R.shippingMode.hub?ne=>ne.idShippingHub.includes(R.shippingMode.hub.toString()):ne=>ne.idShipping.includes(R.shippingMode.idShippingMode.toString())),null!=V&&V.cartDisplayInfo&&null!=V.cartInformation&&V.cartInformation.length>0&&null!=V.remainingValue&&V.remainingValue>0&&(this.freeFreightMessage=V.cartInformation.includes("[valor]")?V.cartInformation.replace("[valor]",this.commomService.priceMask(V.remainingValue)):V.cartInformation),this.loading=!1}),this.commomService.finishLoadComponent("onJetPushDataLayerEvent",{detail:{type:"calculate_shipping",params:{page_location:"Mini Carrinho",shipping_cost:this.freights,destination_zip:e}}})}):this.checkoutService.getFreeFreightTip(this.zipcode).subscribe(F=>{this.freights?.forEach(R=>{let V;V=F.find(4==R.shippingMode.hub||5==R.shippingMode.hub||6==R.shippingMode.hub||9==R.shippingMode.hub?ne=>ne.idShippingHub.includes(R.shippingMode.hub.toString()):ne=>ne.idShipping.includes(R.shippingMode.idShippingMode.toString())),null!=V&&V.cartDisplayInfo&&null!=V.cartInformation&&V.cartInformation.length>0&&null!=V.remainingValue&&V.remainingValue>0&&(this.freeFreightMessage=V.cartInformation.includes("[Valor]")?V.cartInformation.replace("[Valor]",this.commomService.priceMask(V.remainingValue)):V.cartInformation),this.loading=!1}),this.commomService.finishLoadComponent("onJetPushDataLayerEvent",{detail:{type:"calculate_shipping",params:{page_location:"Mini Carrinho",shipping_cost:this.freights,destination_zip:e}}})}),this.commomService.hideLoadingByClass("cart-summary"),this.commomService.finishLoadComponent("onJetRemoveCDAfter")},P=>{this.loading=!1,this.clearVariables(),this.commomService.hideLoadingByClass("cart-summary"),this.showShippingResult=!0,this.commomService.finishLoadComponent("onJetRemoveCDAfter"),this.useDeliveryWithPickup&&(this.activatedButtonDeliveryWithPickup=!0)}):this.loading=!1},{passive:!0,once:!0}))):s||(this.cartSubs$=this.checkoutService.getFreightsMiniCart(this.zipcode,!1,0,this.isRecurrent,this.isDeliveryWithPickup,"",null,this.selectedStateId,this.selectedCountryId).subscribe(u=>{this.freeFreightMessage="",this.freights=u,this.showShippingResult=!this.freights||0===this.freights.length,this.useDeliveryWithPickup&&(this.activatedButtonDeliveryWithPickup=!0),this.selectedCountryId?this.checkoutService.getFreeFreightTipInternational(this.selectedCountryId).subscribe(v=>{this.freights?.forEach(w=>{let P;P=v.find(4==w.shippingMode.hub||5==w.shippingMode.hub||6==w.shippingMode.hub||8==w.shippingMode.hub||9==w.shippingMode.hub?F=>F.idShippingHub.includes(w.shippingMode.hub.toString()):F=>F.idShipping.includes(w.shippingMode.idShippingMode.toString())),null!=P&&P.cartDisplayInfo&&null!=P.cartInformation&&P.cartInformation.length>0&&null!=P.remainingValue&&P.remainingValue>0&&(this.freeFreightMessage=P.cartInformation.includes("[valor]")?P.cartInformation.replace("[valor]",this.commomService.priceMask(P.remainingValue)):P.cartInformation),this.commomService.hideLoadingByClass("cart-summary"),this.loading=!1})},v=>{this.loading=!1,this.commomService.hideLoadingByClass("cart-summary"),this.commomService.displayMessageUser("error",v.error.error)}):this.checkoutService.getFreeFreightTip(this.zipcode).subscribe(v=>{this.freights?.forEach(w=>{let P;P=v.find(4==w.shippingMode.hub||5==w.shippingMode.hub||6==w.shippingMode.hub||6==w.shippingMode.hub||9==w.shippingMode.hub?F=>F.idShippingHub.includes(w.shippingMode.hub.toString()):F=>F.idShipping.includes(w.shippingMode.idShippingMode.toString())),null!=P&&P.cartDisplayInfo&&null!=P.cartInformation&&P.cartInformation.length>0&&null!=P.remainingValue&&P.remainingValue>0&&(this.freeFreightMessage=P.cartInformation.includes("[Valor]")?P.cartInformation.replace("[Valor]",this.commomService.priceMask(P.remainingValue)):P.cartInformation),this.commomService.hideLoadingByClass("cart-summary"),this.loading=!1})},v=>{this.loading=!1,this.commomService.hideLoadingByClass("cart-summary"),this.commomService.displayMessageUser("error",v.error.error)})},u=>{this.loading=!1,this.freights=void 0,this.commomService.hideLoadingByClass("cart-summary"),this.showShippingResult=!0,this.useDeliveryWithPickup&&(this.activatedButtonDeliveryWithPickup=!0)})),document.addEventListener("onJetChangeCD",()=>{this.loadPage()},{once:!0,passive:!0})}else this.commomService.displayMessageUser("error","Por favor, insira um cep.");else this.commomService.displayMessageUser("error","Selecione um estado para calcular o frete.");else this.commomService.displayMessageUser("error","Selecione um pa\xeds para calcular o frete.")}calcSubmit(e,n){""!=e&&null!=e&&null!=e&&9===e.toString().length&&this.calcFreight(e,n)}selectFreight(e){let n=this.freights.findIndex(r=>r.shippingMode.idShippingMode==e);n>-1&&(this.freightCalc=this.freights[n].valueShipping,null!=sessionStorage.getItem("freightV
3alue")&&sessionStorage.removeItem("freightValue"),sessionStorage.setItem("freightValue",this.freightCalc.toString()),null!=sessionStorage.getItem("freightDeliveryWithPickup")&&sessionStorage.removeItem("freightDeliveryWithPickup"),sessionStorage.setItem("freightDeliveryWithPickup",this.freights[n].shippingMode?.isDeliveryWithPickup.toString()))}onInternationalFreightSelected(e){this.freightCalc=e.valueShipping}onCheckboxChange(e){this.timeoutId&&clearTimeout(this.timeoutId),this.selectedShippingId=e,this.timeoutId=setTimeout(()=>{this.selectedShippingId=null},3e3)}getFreightDescription(e,n){switch(n){case"type":return e.shippingMode.name+(e.shippingMode.partnerName?` (${e.shippingMode.partnerName})`:"");case"time":return e.shippingMode.ScheduledDelivery?"(*)":null===e.shippingMode.deliveryTime||0===e.shippingMode.deliveryTime?"Previs\xe3o: Envio imediato":`Previs\xe3o: ${this.formatDeliveryEstimate(e.shippingMode)}`;case"value":return 0===e.valueShipping?"Frete gr\xe1tis":this.commomService.priceMask(e.valueShipping);default:return""}}formatDeliveryEstimate(e){const{deliveryEstimateDate:n,deliveryTime:r,isDeliveryWithPickup:s}=e;let u="",v="",w="";return null!==n&&(u=new Date(n).toLocaleDateString("pt-BR",{timeZone:"UTC"})),s?v=0==r?"Imediata":r>1?"horas":"hora":(v=r>1?"dias":"dia",w=r>1||0===r?"\xfateis":"\xfatil"),`<span class='delivery-estimate'>${u}</span> <span class='delivery-time'>${r} ${v} ${w}</span>`}goToCheckout(e=!1){var n=this;return(0,Zs.Z)(function*(){if(n.showChangedQuantityAvailability=!1,n.minPurchaseAmount&&n.minPurchaseAmount>n.cart.total){const r=n.minPurchaseAmount.toFixed(2).toString().replace(".",",");n.commomService.displayMessageUser("error",`O valor m\xednimo de compras da loja \xe9 R$ ${r}`)}else{if(e){let r=null;if(null!=sessionStorage.getItem("selectedFrequencyRecurrency")&&(r=parseInt(sessionStorage.getItem("selectedFrequencyRecurrency"))),null==r||null==r||Number.isNaN(r)||0==r)return n.loading=!1,void n.commomService.displayMessageUser("error","Selecione uma frequ\xeancia de entrega para continuar.")}e&&""!=n.acceptedTermRecurringPurchase&&null==sessionStorage.getItem("acceptedTermsRecurrency")?n.verifyClassModal("#modalRecurrency"):n.hasProductUnavailableForPurchase()?n.commomService.displayMessageUser("error","Alguns produtos n\xe3o est\xe3o dispon\xedveis para compra!","Exclua-os do carrinho para prosseguir"):n.hasProductRestrictedDelivery()?n.commomService.displayMessageUser("error","Ops.. N\xe3o \xe9 poss\xedvel seguir com a entrega, devido a produtos restritos no seu carrinho."):n.hasProductOutStock()?n.commomService.displayMessageUser("error","Ops.. Exclua os produtos esgotados do carrinho."):(yield n.hasProductChangedQuantity())?n.commomService.displayMessageUser("error","Alguns produtos do seu carrinho tiveram a quantidade alterada","Atualize os produtos para a quantidade dispon\xedvel",!0,5e3):n.items.length>0?n.verifyClassModal():window.location.href="/checkout/identification"}})()}hasProductChangedQuantity(){var e=this;return(0,Zs.Z)(function*(){return new Promise(n=>{e.checkoutService.getCartUser().subscribe(r=>{e.cart=r;const o=r?.items?.some(s=>s.quantity>s.stock)??!1;e.showChangedQuantityAvailability=o,n(o)},r=>{e.showChangedQuantityAvailability=!1,n(!1)})})})()}hasProductOutStock(){if(null!=this.cart){let e=!1;return this.cart.items.forEach(n=>{0==n.stock&&(e=!0)}),e}return!1}hasProductRestrictedDelivery(){if(null!=this.cart){let e=void 0!==this.cart.items.find(n=>n.restrictedDelivery);if(null!=sessionStorage.getItem("freightDeliveryWithPickup")){let n=JSON.parse(sessionStorage.getItem("freightDeliveryWithPickup"));return!(!e||n)}return!1}return!1}hasProductUnavailableForPurchase(){return null!=this.cart&&void 0!==this.cart.items.find(n=>!n.availableForPurchase)}excluirProdutosEsgotados(){this.items.forEach(e=>{this.deleteCartItem(e),this.verifyClassModal()})}verifyClassModal(e="#modalExhausted",n=!1,r="#modalAllFreightsPreview"){if(n){let o=document.querySelector(e),s=document.querySelector(r);o.classList.contains("hideme")?(s.classList.add("hideme"),o.classList.remove("hideme")):(o.classList.add("hideme"),s.classList.contains("toggle")&&(s.classList.remove("hideme"),s.classList.remove("toggle")))}else{let o=document.querySelector(e);o.classList.contains("hideme")?o.classList.remove("hideme"):o.classList.add("hideme")}}removeEventList(){sessionStorage.removeItem("idEventList"),this.idEventList=0}onElementVisible(){this.shareDataCommom.currentCompany$.subscribe(e=>{null!=e&&(this.company=e)})}showCart(){return null!=this.cart&&this.cart.toString().length>0&&null!=this.cart.items&&this.cart.items.length>0}formatHTML(e){return e.replace(/<div><span>\s*(.*?)\s*<\/span><\/div>/,'<div class="title">$1</div>').replace(/<div><span>\s*(.*?)\s*<\/span>\s*(.*?)\s*<\/div>/g,(r,o,s)=>""===s.trim()?`<div class="option"><span class="option-value">${o}</span></div>`:`<div class="option"><span class="option-title">${o}</span><span class="option-value">${s}</span></div>`)}returnPickUpAddress(e){let n=e.streetAddress,r="";return""!==e.number&&null!==e.number&&(n+=`, ${e.number}`),""!==e.neighbourhood&&null!==e.neighbourhood&&(n+=` - ${e.neighbourhood}`),""!==e.city&&null!==e.city&&(r=e.city),""!==e.state&&null!==e.state&&""!==r&&(r+=` - ${e.state}`),""!==e.zipCode&&null!==e.zipCode&&(r+=`${""!==r?", ":""}${e.zipCode}`),n+=`${""!==r?", ":""}${r}`,n}setFreightDeliveryWithPickup(e){null!=sessionStorage.getItem("freightDeliveryWithPickup")&&sessionStorage.removeItem("freightDeliveryWithPickup"),sessionStorage.setItem("freightDeliveryWithPickup",e.toString())}getFreightDeliveryWithPickup(){let e=!1;return null!=sessionStorage.getItem("freightDeliveryWithPickup")&&(e=JSON.parse(sessionStorage.getItem("freightDeliveryWithPickup"))),e}acceptTermsRecurrency(){sessionStorage.setItem("acceptedTermsRecurrency","true"),this.goToCheckout()}getFreightFromSplit(e){this.cartSubs$=this.isDeliveryWithPickup?this.checkoutService.getFreightsProductSplitPickup(e,this.isRecurrent,!1).subscribe(n=>{this.loading=!1,this.freights=n,this.showShippingResult=!this.freights||0===this.freights.length,this.freeFreightMessage="",this.checkoutService.getFreeFreightTip(this.zipcode).subscribe(r=>{this.freights?.forEach(o=>{let s;s=r.find(4==o.shippingMode.hub||5==o.shippingMode.hub||6==o.shippingMode.hub||9==o.shippingMode.hub?u=>u.idShippingHub.includes(o.shippingMode.hub.toString()):u=>u.idShipping.includes(o.shippingMode.idShippingMode.toString())),null!=s&&s.cartDisplayInfo&&null!=s.cartInformation&&s.cartInformation.length>0&&null!=s.remainingValue&&s.remainingValue>0&&(this.freeFreightMessage=s.cartInformation.includes("[Valor]")?s.cartInformation.replace("[Valor]",this.commomService.priceMask(s.remainingValue)):s.cartInformation)})}),this.commomService.hideLoadingByClass("cart-summary"),this.commomService.finishLoadComponent("onJetProductFreightResultLoaded"),this.commomService.finishLoadComponent("onJetPushDataLayerEvent",{detail:{type:"calculate_shipping",params:{page_location:"Mini carrinho",shipping_cost:this.freights,destination_zip:e}}}),this.loadPage(null,null,!0,null,!1)},n=>{this.loading=!1,this.clearVariables(),this.commomService.hideLoadingByClass("cart-summary"),this.commomService.displayMessageUser("error",n.error.error)}):this.checkoutService.getFreightsProductSplit(e,this.isRecurrent,this.isDeliveryWithPickup,this.selectedStateId,this.selectedCountryId).subscribe(n=>{this.loading=!1,this.freights=n[0].shipping,this.showShippingResult=!this.freights||0===this.freights.length,this.hasS
3plit=n[0].hasSplit,this.commomService.hideLoadingByClass("cart-summary"),this.commomService.finishLoadComponent("onJetProductFreightResultLoaded"),this.freeFreightMessage="",this.selectedCountryId?this.checkoutService.getFreeFreightTipInternational(this.selectedCountryId).subscribe(r=>{this.freights?.forEach(o=>{let s;s=r.find(4==o.shippingMode.hub||5==o.shippingMode.hub||6==o.shippingMode.hub||8==o.shippingMode.hub||9==o.shippingMode.hub?u=>u.idShippingHub.includes(o.shippingMode.hub.toString()):u=>u.idShipping.includes(o.shippingMode.idShippingMode.toString())),null!=s&&s.cartDisplayInfo&&null!=s.cartInformation&&s.cartInformation.length>0&&null!=s.remainingValue&&s.remainingValue>0&&(this.freeFreightMessage=s.cartInformation.includes("[valor]")?s.cartInformation.replace("[valor]",this.commomService.priceMask(s.remainingValue)):s.cartInformation)})}):this.checkoutService.getFreeFreightTip(this.zipcode).subscribe(r=>{this.freights?.forEach(o=>{let s;s=r.find(4==o.shippingMode.hub||5==o.shippingMode.hub||6==o.shippingMode.hub||9==o.shippingMode.hub?u=>u.idShippingHub.includes(o.shippingMode.hub.toString()):u=>u.idShipping.includes(o.shippingMode.idShippingMode.toString())),null!=s&&s.cartDisplayInfo&&null!=s.cartInformation&&s.cartInformation.length>0&&null!=s.remainingValue&&s.remainingValue>0&&(this.freeFreightMessage=s.cartInformation.includes("[Valor]")?s.cartInformation.replace("[Valor]",this.commomService.priceMask(s.remainingValue)):s.cartInformation)})}),this.commomService.finishLoadComponent("onJetPushDataLayerEvent",{detail:{type:"calculate_shipping",params:{page_location:"Mini carrinho",shipping_cost:this.freights,destination_zip:e}}}),this.loadPage(null,null,!0,null,!1)},n=>{this.loading=!1,this.freights=void 0,this.hasSplit=!1,this.commomService.hideLoadingByClass("cart-summary"),this.commomService.displayMessageUser("error",n.error.error)})}showMessageOutStock(e){let n=0;return e.splitCartOutStockItem.forEach(r=>{n+=r.productQuantity}),`${n} ${n>1?" itens indispon\xedveis ":" item indispon\xedvel "} para retirada`}outItems(e,n=!1,r="#modalAllFreightsPreview"){this.outStockItems=[],this.outStockItems=e.splitCartOutStockItem,this.outShippingName=e.shippingMode.name,n&&document.querySelector(r).classList.add("toggle"),this.verifyClassModal("#modalOutStockPreview",n,r)}clearVariables(){this.freights=void 0,this.activatedButtonDeliveryWithPickup=!1,this.showShippingResult=!1,this.hasSplit=!1}loadCountries(){this.commomService.getCountriesShipSmart().subscribe(e=>{e&&(this.countriesOptions=e.filter(n=>1!==n.id).sort((n,r)=>n.nameGeolocalization.localeCompare(r.nameGeolocalization,this.countrySelectedOnFlag.currencyAcronym)))})}loadStatesByCountry(e){this.commomService.showLoadingByClass("jet-product-freight-calculation"),this.statesOptions=[],this.selectedStateId=void 0,this.commomService.getCountryStates(e).subscribe(n=>{this.commomService.hideLoadingByClass("jet-product-freight-calculation"),this.statesOptions=n},n=>{this.commomService.hideLoadingByClass("jet-product-freight-calculation")})}static#e=this.\u0275fac=function(n){return new(n||t)($(Ss),$(yn),$(qt),$(yn),$($h),$(iv))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-cart-preview"]],inputs:{dataCartButtonText:["data-cart-button-text","dataCartButtonText"],dataBuyButtonText:["data-buy-button-text","dataBuyButtonText"],dataEmptyTitleText:["data-empty-title-text","dataEmptyTitleText"],dataEmptyDescriptionText:["data-empty-description-text","dataEmptyDescriptionText"],dataTextProductTimer:["data-description","dataTextProductTimer"],dataShowExportCart:["data-show-export-cart","dataShowExportCart"],dataShowDiscountCouponCart:["data-show-discount-coupon-cart","dataShowDiscountCouponCart"],dataTextGiftTitle:["data-text-gift-title","dataTextGiftTitle"],dataTextGiftDescription:["data-text-gift-description","dataTextGiftDescription"],dataButtonGiftText:["data-button-gift-text","dataButtonGiftText"],dataTextGiftClose:["data-text-gift-close","dataTextGiftClose"],dataShowGiftImage:["data-show-gift-image","dataShowGiftImage"],dataImageGiftSourceDesktop:["data-image-gift-source-desktop","dataImageGiftSourceDesktop"],dataImageGiftSourceMobile:["data-image-gift-source-mobile","dataImageGiftSourceMobile"]},decls:35,vars:16,consts:[["jetVisibilityCheck","",1,"jet-cart-preview",3,"elementVisible"],[1,"content","cart-preview"],[1,"cart-preview"],["class","event-list",4,"ngIf"],[3,"data-text-gift-title","data-text-gift-description","data-button-gift-text","data-text-gift-close","data-show-gift-image","data-image-gift-source-desktop","data-image-gift-source-mobile"],["class","no-products-cart",4,"ngIf"],["class","cart-products",4,"ngIf"],["class","cart-summary",4,"ngIf"],["id","modalExhausted","class","jet-modal jet-summary-outstock hideme",4,"ngIf"],["id","modalRecurrency","class","jet-modal jet-recurrency-modal hideme",4,"ngIf"],["id","modalOutStockPreview",1,"jet-modal","jet-out-stock","hideme"],[1,"jet-modal-content","modal
3-content","content-center","small","auto-height"],[1,"jet-modal-close","modal-close",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 352 512",1,"icon"],["fill","currentColor","d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z",1,""],[1,"title-out-stock"],[1,"content"],[1,"out-products"],["class","product",4,"ngFor","ngForOf"],["id","modalAllFreightsPreview",1,"jet-modal","jet-all-freights","hideme"],[1,"title-freights"],["class","result",4,"ngIf"],[1,"event-list"],[1,"remove-list",3,"click"],[1,"no-products-cart"],[1,"title"],[1,"text"],[1,"cart-products"],["class","cart-has-product-restricted",4,"ngIf"],["class","freight-tip",4,"ngIf"],[1,"cart-has-product-restricted"],["width","30","height","15","viewBox","0 0 19 15","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M17.947 12.8906L10.8053 0.703125C10.5307 0.234375 10.0486 0 9.56645 0C9.0843 0 8.60216 0.234375 8.29747 0.703125L1.15908 12.8906C0.640443 13.8248 1.32485 15 2.42605 15H16.7095C17.8064 15 18.4928 13.8281 17.947 12.8906ZM2.75551 13.3929L9.53631 1.76786L16.3767 13.3929H2.75551ZM9.56645 10.2154C8.9852 10.2154 8.51377 10.6868 8.51377 11.2681C8.51377 11.8493 8.9862 12.3208 9.56779 12.3208C10.1494 12.3208 10.6191 11.8493 10.6191 11.2681C10.6178 10.6875 10.149 10.2154 9.56645 10.2154ZM8.76288 5.08929V8.30357C8.76288 8.74888 9.12448 9.10714 9.56645 9.10714C10.0084 9.10714 10.37 8.74721 10.37 8.30357V5.08929C10.37 4.64732 10.0118 4.28571 9.56645 4.28571C9.12113 4.28571 8.76288 4.64732 8.76288 5.08929Z","fill","black"],[1,"message"],[1,"freight-tip"],[1,"description"],[1,"product"],[1,"image"],["title","",3,"href"],["onerror","this.src='./assets/no-image.png'","jet-image-size","","loading","lazy","fetchPriority","low",3,"src","alt","decode"],[1,"info"],[1,"data"],["title","",1,"name-product",3,"href"],[1,"notranslate",3,"innerHtml"],[4,"ngIf"],["class","kit",4,"ngIf"],["class","sku",4,"ngIf"],["class","values",4,"ngIf"],["class","restrictedDelivery",4,"ngIf"],["class","gift",4,"ngIf"],["class","product-availability",4,"ngIf"],[1,"action"],["class","action-qtd",4,"ngIf"],["class","qtd-available",4,"ngIf"],["class","sold",4,"ngIf"],[1,"action-remove"],[1,"remove",3,"click"],[3,"data-current-date","data-expiration-date","data-description"],["data-only-timer","true","data-refresh-when-expired","false",3,"data-product"],[1,"product-personalization",3,"innerHtml"],[1,"product-additional-value"],[1,"label"],["class","description",3,"innerHTML",4,"ngIf"],[1,"value"],[1,"description",3,"innerHTML"],[1,"kit"],["class","kit-item",4,"ngFor","ngForOf"],[1,"kit-item"],[1,"quantity"],[1,"name"],[1,"sku"],["class","reference",4,"ngFor","ngForOf"],[1,"reference"],[1,"reference-name"],[1,"variation"],[1,"values"],["class","taxes",4,"ngIf"],[1,"best-price"],[4,"ngIf","ngIfElse"],["regularBestPricePersonalization",""],["class","old-price",4,"ngIf"],["regularBestPrice",""],[1,"old-price"],["regularOldPrice",""],[1,"taxes"],["xmlns","http://www.w3.org/2000/svg","width","13","height","16","viewBox","0 0 13 16","fill","none"],["d","M11.9167 14V6H8.125C7.22786 6 6.5 5.32813 6.5 4.5V1H2.16667C1.56745 1 1.08333 1.44688 1.08333 2V14C1.08333 14.5531 1.56745 15 2.16667 15H10.8333C11.4326 15 11.9167 14.5531 11.9167 14ZM11.8997 5C11.876 4.9125 11.8286 4.83125 11.7575 4.76875L7.83385 1.14688C7.76276 1.08125 7.67812 1.0375 7.58333 1.01563V4.5C7.58333 4.775 7.82708 5 8.125 5H11.8997ZM0 2C0 0.896875 0.971615 0 2.16667 0H7.4513C7.88125 0 8.29427 0.159375 8.59896 0.440625L12.5227 4.05937C12.8273 4.34062 13 4.72188 13 5.11875V14C13 15.1031 12.0284 16 10.8333 16H2.16667C0.971615 16 0 15.1031 0 14V2ZM2.16667 2.5C2.16667 2.225 2.41042 2 2.70833 2H4.875C5.17292 2 5.41667 2.225 5.41667 2.5C5.41667 2.775 5.17292 3 4.875 3H2.70833C2.41042 3 2.16667 2.775 2.16667 2.5ZM2.16667 4.5C2.16667 4.225 2.41042 4 2.70833 4H4.875C5.17292 4 5.41667 4.225 5.41667 4.5C
35.41667 4.775 5.17292 5 4.875 5H2.70833C2.41042 5 2.16667 4.775 2.16667 4.5ZM7.04167 7.6125V8.0375C7.32266 8.07188 7.59349 8.12188 7.84401 8.17813C8.13516 8.24063 8.31458 8.5125 8.24688 8.78125C8.17917 9.05 7.88464 9.21562 7.59349 9.15312C7.21432 9.07187 6.84193 9.00938 6.49323 9.00313C6.1987 9 5.88724 9.05625 5.67057 9.1625C5.46406 9.2625 5.42005 9.35938 5.42005 9.45625C5.42005 9.50313 5.42682 9.56875 5.64349 9.675C5.88047 9.79063 6.21224 9.875 6.6388 9.98125L6.65573 9.98438C7.03828 10.0781 7.50885 10.1969 7.87786 10.3875C8.27734 10.5938 8.6599 10.9406 8.67005 11.5094C8.68021 12.1 8.3112 12.5 7.87109 12.725C7.61719 12.8531 7.33281 12.9313 7.04505 12.9719V13.3938C7.04505 13.6688 6.8013 13.8938 6.50339 13.8938C6.20547 13.8938 5.96172 13.6688 5.96172 13.3938V12.95C5.59271 12.8906 5.24401 12.7938 4.93594 12.7063C4.86484 12.6844 4.79375 12.6656 4.72604 12.6469C4.43828 12.5688 4.27578 12.2906 4.36042 12.025C4.44505 11.7594 4.74635 11.6094 5.03411 11.6875C5.11536 11.7094 5.19661 11.7313 5.27448 11.7531C5.7349 11.8813 6.11406 11.9875 6.52031 12C6.83854 12.0094 7.14661 11.95 7.34635 11.8469C7.52917 11.7531 7.5901 11.6531 7.58672 11.5219C7.58672 11.4469 7.55964 11.3687 7.34974 11.2594C7.11615 11.1375 6.78099 11.05 6.3612 10.9469L6.30703 10.9344C5.93464 10.8406 5.48776 10.7312 5.13568 10.5562C4.74635 10.3625 4.34687 10.0281 4.34349 9.45938C4.3401 8.86563 4.74635 8.48125 5.17292 8.275C5.42005 8.15625 5.69427 8.08125 5.9651 8.04062V7.6125C5.9651 7.3375 6.20885 7.1125 6.50677 7.1125C6.80469 7.1125 7.04844 7.3375 7.04844 7.6125H7.04167Z","fill","black"],[1,"taxes-title"],[1,"tip-values"],[1,"ipi"],[1,"st"],[1,"total-value"],[1,"restrictedDelivery"],["width","135","height","15","viewBox","0 0 135 15","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M21.74 4.01V5.15H19.09V6.9H21.44V8.01H19.09V9.86H21.74V11H17.69V4.01H21.74ZM26.0723 11L24.9323 9.28L23.9223 11H22.4223L24.2323 8.22L22.4023 5.46H23.9823L25.1123 7.17L26.1323 5.46H27.6323L25.8123 8.22L27.6523 11H26.0723ZM28.0527 8.23C28.0527 6.49 29.1927 5.37 30.7927 5.37C32.1727 5.37 33.1027 6.09 33.4027 7.33H31.8927C31.7327 6.86 31.3627 6.56 30.7827 6.56C30.0027 6.56 29.4827 7.15 29.4827 8.23C29.4827 9.31 30.0027 9.89 30.7827 9.89C31.3627 9.89 31.7227 9.63 31.8927 9.13H33.4027C33.1027 10.31 32.1727 11.09 30.7927 11.09C29.1927 11.09 28.0527 9.97 28.0527 8.23ZM34.4283 11V3.6H35.8283V11H34.4283ZM42.4415 5.46V11H41.0315V10.3C40.6815 10.77 40.0715 11.07 39.3815 11.07C38.0915 11.07 37.1615 10.23 37.1615 8.71V5.46H38.5615V8.51C38.5615 9.4 39.0515 9.88 39.7915 9.88C40.5515 9.88 41.0315 9.4 41.0315 8.51V5.46H42.4415ZM48.1228 9.42C48.1228 10.37 47.2928 11.09 45.9428 11.09C44.5528 11.09 43.5828 10.28 43.5228 9.25H44.9328C44.9828 9.67 45.3728 9.99 45.9328 9.99C46.4828 9.99 46.7828 9.74 46.7828 9.42C46.7828 8.43 43.6528 9.06 43.6528 7.03C43.6528 6.11 44.4728 5.37 45.8428 5.37C47.1828 5.37 47.9928 6.1 48.0728 7.2H46.7328C46.6928 6.77 46.3528 6.48 45.8028 6.48C45.2828 6.48 45.0128 6.69 45.0128 7.01C45.0128 8.02 48.0828 7.39 48.1228 9.42ZM49.272 11V5.46H50.672V11H49.272ZM49.982 4.8C49.482 4.8 49.122 4.44 49.122 3.98C49.122 3.52 49.482 3.16 49.982 3.16C50.472 3.16 50.842 3.52 50.842 3.98C50.842 4.44 50.472 4.8 49.982 4.8ZM51.4652 5.46H52.9652L54.3652 9.71L55.7652 5.46H57.2552L55.2052 11H53.5052L51.4652 5.46ZM63.3916 8.23C63.3916 9.97 62.1116 11.09 60.5016 11.09C58.9016 11.09 57.6916 9.97 57.6916 8.23C57.6916 6.48 58.9416 5.37 60.5416 5.37C62.1416 5.37 63.3916 6.48 63.3916 8.23ZM59.1116 8.23C59.1116 9.33 59.7516 9.87 60.5016 9.87C61.2416 9.87 61.9516 9.33 61.9516 8.23C61.9516 7.12 61.2616 6.59 60.5216 6.59C59.7816 6.59 59.1116 7.12 59.1116 8.23ZM68.2013 6.26C68.5313 5.79 69.1713 5.37 70.0313 5.37C71.4513 5.37 72.5613 6.48 72.5613 8.21C72.5613 9.94 71.4513 11.09 70.0313 11.09C69.1613 11.09 68.5413 10.66 68.2013 10.21V13.64H66.8013V5.46H68.2013V6.26ZM71.1313 8.21C71.1313 7.16 70.4213 6.6 69.6613 6.6C68.9113 6.6 68.2013 7.18 68.2013 8.23C68.2013 9.28 68.9113 9.86 69.6613 9.86C70.4213 9.86 71.1313 9.26 71.1313 8.21ZM73.2187 8.21C73.2187 6.48 74.3387 5.37 75.7487 5.37C76.6387 5.37 77.2487 5.79 77.5787 6.25V5.46H78.9887V11H77.5787V10.19C77.2487 10.67 76.6187 11.09 75.7387 11.09C74.3387 11.09 73.2187 9.94 73.2187 8.21ZM77.5787 8.23C77.5787 7.18 76.8787 6.6 76.1087 6.6C75.3587 6.6 74.6487 7.16 74.6487 8.21C74.6487 9.26 75.3587 9.86 76.1087 9.86C76.8787 9.86 77.5787 9.28 77.5787 8.23ZM81.756 8.24V11H80.356V5.46H81.756V6.32C82.106 5.75 82.686 5.38 83.456 5.38V6.85H83.086C82.256 6.85 81.756 7.17 81.756 8.24ZM84.039 8.21C84.039 6.48 85.159 5.37 86.569 5.37C87.459 5.37 88.069 5.79 88.399 6.25V5.46H89.809V11H88.399V10.19C88.069 10.67 87.439 11.09 86.559 11.09C85.159 11.09 84.039 9.94 84.039 8.21ZM88.399 8.23C88.399 7.18 87.699 6.6 86.929 6.6C86.179 6.6 85.469 7.16 85.469 8.21C85.469 9.26 86.179 9.86 86.929 9.86C87.699 9.86 88.399 9.28 88.399 8.23ZM94.9591 8.24V11H93.5591V5.46H94.9591V6.32C95.3091 5.75 95.8891 5.38 96.6591 5.38V6.85H96.2891C95.4591 6.85 94.9591 7.17 94.9591 8.24ZM99.9821 6.52C99.3121 6.52 98.7821 6.95 98.6721 7.71H101.302C101.282 6.98 100.702 6.52 99.9821 6.52ZM102.612 9.26C102.312 10.28 101.392 11.09 100.022 11.09C98.4121 11.09 97.2421 9.97 97.2421 8.23C97.2421 6.48 98.3821 5.37 100.022 5.37C101.622 5.37 102.752 6.46 102.752 8.11C102.752 8.29 102.742 8.47 102.712 8.65H98.6621C98.7321 9.47 99.2921 9.93 99.9921 9.93C100.592 9.93 100.922 9.63 101.102 9.26H102.612ZM103.994 9.28V6.61H103.334V5.46H103.994V4.09H105.404V5.46H106.644V6.61H105.404V9.29C105.404 9.66 105.554 9.82 105.994 9.82H106.644V11H105.764C104.704 11 103.994 10.55 103.994 9.28ZM107.651 11V5.46H109.051V11H107.651ZM108.361 4.8C107.861 4.8 10
37.501 4.44 107.501 3.98C107.501 3.52 107.861 3.16 108.361 3.16C108.851 3.16 109.221 3.52 109.221 3.98C109.221 4.44 108.851 4.8 108.361 4.8ZM111.834 8.24V11H110.434V5.46H111.834V6.32C112.184 5.75 112.764 5.38 113.534 5.38V6.85H113.164C112.334 6.85 111.834 7.17 111.834 8.24ZM114.117 8.21C114.117 6.48 115.237 5.37 116.647 5.37C117.537 5.37 118.147 5.79 118.477 6.25V5.46H119.887V11H118.477V10.19C118.147 10.67 117.517 11.09 116.637 11.09C115.237 11.09 114.117 9.94 114.117 8.21ZM118.477 8.23C118.477 7.18 117.777 6.6 117.007 6.6C116.257 6.6 115.547 7.16 115.547 8.21C115.547 9.26 116.257 9.86 117.007 9.86C117.777 9.86 118.477 9.28 118.477 8.23ZM120.894 8.21C120.894 6.48 122.014 5.37 123.434 5.37C124.164 5.37 124.864 5.71 125.244 6.23V3.6H126.664V11H125.244V10.18C124.914 10.69 124.294 11.09 123.424 11.09C122.014 11.09 120.894 9.94 120.894 8.21ZM125.254 8.23C125.254 7.18 124.554 6.6 123.784 6.6C123.034 6.6 122.324 7.16 122.324 8.21C122.324 9.26 123.034 9.86 123.784 9.86C124.554 9.86 125.254 9.28 125.254 8.23ZM127.672 8.21C127.672 6.48 128.792 5.37 130.202 5.37C131.092 5.37 131.702 5.79 132.032 6.25V5.46H133.442V11H132.032V10.19C131.702 10.67 131.072 11.09 130.192 11.09C128.792 11.09 127.672 9.94 127.672 8.21ZM132.032 8.23C132.032 7.18 131.332 6.6 130.562 6.6C129.812 6.6 129.102 7.16 129.102 8.21C129.102 9.26 129.812 9.86 130.562 9.86C131.332 9.86 132.032 9.28 132.032 8.23Z","fill","#D65D5D"],["d","M12.2922 11.5938L7.53104 3.46875C7.348 3.15625 7.02658 3 6.70515 3C6.38372 3 6.06229 3.15625 5.85916 3.46875L1.10024 11.5938C0.754477 12.2165 1.21075 13 1.94488 13H11.4672C12.1985 13 12.656 12.2188 12.2922 11.5938ZM2.16452 11.9286L6.68506 4.17857L11.2453 11.9286H2.16452ZM6.70515 9.81027C6.31765 9.81027 6.00336 10.1246 6.00336 10.5121C6.00336 10.8996 6.31832 11.2138 6.70604 11.2138C7.09376 11.2138 7.40693 10.8996 7.40693 10.5121C7.40604 10.125 7.09354 9.81027 6.70515 9.81027ZM6.16943 6.39286V8.53571C6.16943 8.83259 6.4105 9.07143 6.70515 9.07143C6.99979 9.07143 7.24086 8.83147 7.24086 8.53571V6.39286C7.24086 6.09821 7.00202 5.85714 6.70515 5.85714C6.40827 5.85714 6.16943 6.09821 6.16943 6.39286Z","fill","#D65D5D"],["x1","18","y1","14.5","x2","134","y2","14.5","stroke","#D65D5D","stroke-dasharray","2 2"],[1,"gift"],[1,"product-availability"],[1,"action-qtd"],[1,"minus",3,"click"],["type","tel","min","1","step","1","size","3","name","",3,"id","blur"],[1,"plus",3,"click"],[1,"qtd-available"],[1,"sold"],[1,"cart-summary"],["class","freight",4,"ngIf"],[3,"data-show-export-cart"],[1,"cartTotal"],["class","subtotal",4,"ngIf"],["class","shipping",4,"ngIf"],["class","discount",4,"ngIf"],[3,"data-show-discount-coupon-cart"],[1,"total"],[1,"value","notranslate"],[1,"cart-button-finish",3,"click"],["href","/checkout",1,"cart-checkout",3,"title"],[1,"freight"],["class","result",3,"ngClass",4,"ngIf"],["class","package-info",4,"ngIf"],["class","view-freights",3,"click",4,"ngIf"],[1,"international-shipping-fields"],[1,"international-shipping-select"],["for","country"],["name","country",3,"ngModel","ngModelChange","change"],[3,"ngValue"],[3,"ngValue",4,"ngFor","ngForOf"],["class","international-shipping-select",4,"ngIf"],[1,"international-shipping-button",3,"ngClass","click"],["for","state"],["name","state",3,"ngModel","ngModelChange"],["class","btns-pickup",4,"ngIf"],["recalculate",""],[1,"btns-pickup"],[1,"btn-not-with-pickup",3,"ngClass","click"],[1,"btn-with-pickup",3,"ngClass","click"],[1,"btn-recalculate",3,"click"],[1,"input-container"],["type","tel","placeholder","00000-000","maxlength","9","value","",1,"zipcode",3,"keypress","keyup.enter","keyup"],["zipcode",""],[1,"calc-freight",3,"ngClass","click"],[1,"result",3,"ngClass"],[4,"ngFor","ngForOf"],[1,"shipping",3,"ngClass","checked","change"],["name","freight","type","radio",3,"id","value","click",4,"ngIf"],[1,"info",3,"for"],[1,"type",3,"innerHTML"],[1,"value",3,"innerHTML"],["class","tooltip",4,"ngIf"],["class","address",4,"ngIf"],[1,"time",3,"innerHTML"],["class","out-stock",3,"innerHTML","click",4,"ngIf"],["name","freight","type","radio",3,"id","value","click"],[1,"tooltip"],["xmlns","http://www.w3.org/2000/svg","width","12","height","12","viewBox","0 0 12 12","fill","none"],["d","M6 0C2.68594 0 0 2.68594 0 6C0 9.31406 2.68594 12 6 12C9.31406 12 12 9.31406 12 6C12 2.68594 9.31406 0 6 0ZM6 3C6.41414 3 6.75 3.33586 6.75 3.75C6.75 4.16414 6.41414 4.5 6 4.5C5.58586 4.5 5.25 4.16484 5.25 3.75C5.25 3.33516 5.58516 3 6 3ZM6.9375 9H5.0625C4.75313 9 4.5 8.74922 4.5 8.4375C4.5 8.12578 4.75195 7.875 5.0625 7.875H5.4375V6.375H5.25C4.93945 6.375 4.6875 6.12305 4.6875 5.8125C4.6875 5.50195 4.94063 5.25 5.25 5.25H6C6.31055 5.25 6.5625 5.50195 6.5625 5.8125V7.875H6.9375C7.24805 7.875 7.5 8.12695 7.5 8.4375C7.5 8.74805 7.24922 9 6.9375 9Z","fill","black"],[1,"address"],[1,"out-stock",3,"innerHTML","click"],[1,"package-info"],["xmlns","http://www.w3.org/2000/svg","width","10","height","10","viewBox","0 0 10 10","fill","none"],["d","M5 0.9375C6.07744 0.9375 7.11075 1.36551 7.87262 2.12738C8.63449 2.88925 9.0625 3.92256 9.0625 5C9.0625 6.07744 8.63449 7.11075 7.87262 7.87262C7.11075 8.63449 6.07744 9.0625 5 9.0625C3.92256 9.0625 2.88925 8.63449 2.12738 7.87262C1.36551 7.11075 0.9375 6.07744 0.9375 5C0.9375 3.92256 1.36551 2.88925 2.12738 2.12738C2.88925 1.36551 3.92256 0.9375 5 0.9375ZM5 10C6.32608 10 7.59785 9.47322 8.535
353 8.53553C9.47322 7.59785 10 6.32608 10 5C10 3.67392 9.47322 2.40215 8.53553 1.46447C7.59785 0.526784 6.32608 0 5 0C3.67392 0 2.40215 0.526784 1.46447 1.46447C0.526784 2.40215 0 3.67392 0 5C0 6.32608 0.526784 7.59785 1.46447 8.53553C2.40215 9.47322 3.67392 10 5 10ZM4.21875 6.5625C3.95898 6.5625 3.75 6.77148 3.75 7.03125C3.75 7.29102 3.95898 7.5 4.21875 7.5H5.78125C6.04102 7.5 6.25 7.29102 6.25 7.03125C6.25 6.77148 6.04102 6.5625 5.78125 6.5625H5.625V4.84375C5.625 4.58398 5.41602 4.375 5.15625 4.375H4.21875C3.95898 4.375 3.75 4.58398 3.75 4.84375C3.75 5.10352 3.95898 5.3125 4.21875 5.3125H4.6875V6.5625H4.21875ZM5 3.75C5.16576 3.75 5.32473 3.68415 5.44194 3.56694C5.55915 3.44973 5.625 3.29076 5.625 3.125C5.625 2.95924 5.55915 2.80027 5.44194 2.68306C5.32473 2.56585 5.16576 2.5 5 2.5C4.83424 2.5 4.67527 2.56585 4.55806 2.68306C4.44085 2.80027 4.375 2.95924 4.375 3.125C4.375 3.29076 4.44085 3.44973 4.55806 3.56694C4.67527 3.68415 4.83424 3.75 5 3.75Z","fill","black"],[1,"view-freights",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","11","height","15","viewBox","0 0 11 15","fill","none"],["d","M10.0833 5.5C10.0833 2.96771 8.03229 0.916667 5.5 0.916667C2.96771 0.916667 0.916667 2.96771 0.916667 5.5C0.916667 5.94688 1.07135 6.5599 1.39219 7.31615C1.70443 8.05807 2.14271 8.86302 2.64115 9.66797C3.61797 11.2521 4.7724 12.7674 5.50286 13.6784C6.23047 12.7674 7.38776 11.2521 8.36458 9.66797C8.86016 8.86302 9.3013 8.05521 9.61354 7.31615C9.92865 6.5599 10.0833 5.94688 10.0833 5.5ZM11 5.5C11 8.00365 7.64844 12.4609 6.17891 14.3C5.82656 14.7383 5.17344 14.7383 4.82109 14.3C3.35156 12.4609 0 8.00365 0 5.5C0 2.46354 2.46354 0 5.5 0C8.53646 0 11 2.46354 11 5.5ZM4.125 5.5C4.125 5.86467 4.26987 6.21441 4.52773 6.47227C4.78559 6.73013 5.13533 6.875 5.5 6.875C5.86467 6.875 6.21441 6.73013 6.47227 6.47227C6.73013 6.21441 6.875 5.86467 6.875 5.5C6.875 5.13533 6.73013 4.78559 6.47227 4.52773C6.21441 4.26987 5.86467 4.125 5.5 4.125C5.13533 4.125 4.78559 4.26987 4.52773 4.52773C4.26987 4.78559 4.125 5.13533 4.125 5.5ZM5.5 7.79167C4.89221 7.79167 4.30932 7.55022 3.87955 7.12045C3.44978 6.69068 3.20833 6.10779 3.20833 5.5C3.20833 4.89221 3.44978 4.30932 3.87955 3.87955C4.30932 3.44978 4.89221 3.20833 5.5 3.20833C6.10779 3.20833 6.69068 3.44978 7.12045 3.87955C7.55022 4.30932 7.79167 4.89221 7.79167 5.5C7.79167 6.10779 7.55022 6.69068 7.12045 7.12045C6.69068 7.55022 6.10779 7.79167 5.5 7.79167Z","fill","black"],[1,"not-shipping"],[1,"subtotal"],[1,"shipping"],[1,"discount"],["id","modalExhausted",1,"jet-modal","jet-summary-outstock","hideme"],[1,"jet-modal-content","modal-content","content-center"],[1,"title-outstock"],["class","list-products-outstock",4,"ngFor","ngForOf"],[1,"button-outstock"],[1,"buy-button","ui","button",3,"click"],[1,"list-products-outstock"],["href","","title","",1,"name-product","notranslate",3,"innerHtml"],["id","modalRecurrency",1,"jet-modal","jet-recurrency-modal","hideme"],[1,"jet-modal-content","modal-content","content-center","auto-height"],[1,"title-terms-recurrency"],[3,"innerHtml"],[1,"check-accept-term"],["type","checkbox","id","flagAcceptTermRecurrency",3,"ngModel","ngModelChange"],["flagAcceptTermRecurrency",""],["for","flagAcceptTermRecurrency"],[1,"button-accept-recurrency"],[1,"button",3,"disabled","click"],[1,"product-image"],["width","60","onerror","this.src='./assets/no-image.png'",3,"src","alt"],[1,"product-data"],[1,"product-name"],[1,"product-value"],[1,"product-quantity"],["class","product-variation",4,"ngFor","ngForOf"],[1,"product-variation"],[1,"result"],["class","out-stock link",3,"innerHTML","click",4,"ngIf"],[1,"out-stock","link",3,"innerHTML","click"]],template:function(n,r){1&n&&(a(0,"div",0),J("elementVisible",function(){return r.onElementVisible()}),a(1,"div",1)(2,"div",2),C(3,YP,7,0,"div",3),B(4,"jet-gift",4),C(5,KP,5,2,"div",5),C(6,TT,5,3,"div",6),C(7,XT,19,11,"div",7),C(8,tE,13,3,"div",8),C(9,nE,20,5,"div",9),a(10,"div",10)(11,"div",11)(12,"button",12),J("click",function(){return r.verifyClassModal("#modalOutStockPreview",!0,"#modalAllFreightsPreview")}),we(),a(13,"svg",13),B(14,"path",14),l(),Pe(),a(15,"span"),h(16,"Fechar"),l()(),a(17,"div",15),h(18," Itens indispon\xedveis para retirada em: "),a(19,"strong"),h(20),l()(),a(21,"div",16)(22,"div",17),C(23,sE,13,7,"div",18),l()()()()()()(),a(24,"div",19)(25,"div",11)(26,"button",12),J("click",function(){return r.verifyClassModal("#modalAllFreightsPreview")}),we(),a(27,"svg",13),B(28,"path",14),l(),Pe(),a(29,"span"),h(30,"Fechar"),l()(),a(31,"div",20),h(32," Op\xe7\xf5es dispon\xedveis para retirada "),l(),a(33,"div",16),C(34,uE,2,1,"div",21),l()()()),2&n&&(c(3),d("ngIf",r.idEventList>0),c(1),d("data-text-gift-title",r.dataTextGiftTitle)("data-text-gift-description",r.dataTextGiftDescription)("data-button-gift-text",r.dataButtonGiftText)("data-text-gift-close",r.dataTextGiftClose)("data-show-gift-image",r.dataShowGiftImage)("data-image-gift-source-desktop",r.dataImageGiftSourceDesktop)("data-image-gift-source-mobile",r.dataImageGiftSourceMobile),c(1),d("ngIf",null==r.cart||0==r.cart.toString().length||null==r.cart.items||0==r.cart.items.length),c(1),d("ngIf",r.showCart()),c(1),d("ngIf",null!=r.cart&&0!=r.cart.toString().length&&r.cart.items.length>0),c(1),d("ngIf",r.items&&r.items.length>0),c(1),d("ngIf",r.isRecurrent&&""!=r.acceptedTermRecurringPurchase),c(11),de(r.outShippingName),c(3),d("ngForOf",r.outStockItems),c(11),d("ngIf",null!=r.freights&&r.freights.length>0))},dependencies:[ui,ei,en,Ws,Js,um,ma,fr,zh,ND,bs,Yo,VD,rv,sy,zP,ZP,ly,mp,za],encapsulation:2})}return t})();function mE(t,i){if(1&t){const e=ve();ht(0),a(1,"a",8),J("click",function(){M(e);const r=_(2).$implicit;return L(_().commomService.pushSelectContentEventGTM("imagem",r.name))}
3),B(2,"img",9),l(),mt()}if(2&t){const e=_(2).$implicit;c(1),Ue("href",e.link,fe),Ue("title",e.image.split("/").pop()),c(1),Ue("alt",e.image.split("/").pop()),d("src",e.image,fe)("decode",!0)}}function fE(t,i){if(1&t&&(ht(0),B(1,"img",9),mt()),2&t){const e=_(2).$implicit;c(1),Ue("alt",e.image.split("/").pop()),d("src",e.image,fe)("decode",!0)}}function pE(t,i){if(1&t&&(a(0,"div",6),C(1,mE,3,5,"ng-container",7),C(2,fE,2,3,"ng-container",7),l()),2&t){const e=_().$implicit;c(1),d("ngIf",e.link),c(1),d("ngIf",!e.link)}}function gE(t,i){if(1&t){const e=ve();a(0,"li",1)(1,"a",8),J("click",function(){const o=M(e).$implicit;return L(_(5).onCategoryClick(o.urlFriendly))}),h(2),l()()}if(2&t){const e=i.$implicit,n=_(5);d("className",n.dataClassChildrenItem),c(1),Ue("href",n.urlStore+e.urlFriendly,fe),Ue("title",e.name),ii("data-level",e.level),c(1),de(e.name)}}function vE(t,i){if(1&t&&(a(0,"div",14)(1,"div",11)(2,"ul",1),C(3,gE,3,5,"li",2),l()()()),2&t){const e=_().$implicit,n=_(3);c(2),d("className",n.dataClassChildrenContainer),c(1),d("ngForOf",e.childMenu)}}const _E=function(t){return{"has-submenu":t}};function CE(t,i){if(1&t){const e=ve();a(0,"li",1)(1,"a",12),J("click",function(){const o=M(e).$implicit;return L(_(3).onCategoryClick(o.urlFriendly))}),h(2),l(),C(3,vE,4,2,"div",13),l()}if(2&t){const e=i.$implicit,n=_(3);d("className",n.dataClassChildrenItem+(e.childMenu.length>0?" has-submenu":"")),c(1),Ue("href",n.urlStore+e.urlFriendly,fe),Ue("title",e.name),d("ngClass",Oe(7,_E,e.childMenu.length>0)),ii("data-level",e.level),c(1),dt(" ",e.name," "),c(1),d("ngIf",e.childMenu.length>0)}}function yE(t,i){if(1&t){const e=ve();ht(0),a(1,"a",8),J("click",function(){M(e);const r=_(3).$implicit;return L(_().commomService.pushSelectContentEventGTM("imagem",r.name))}),B(2,"img",9),l(),mt()}if(2&t){const e=_(3).$implicit;c(1),Ue("href",e.link,fe),Ue("title",e.image.split("/").pop()),c(1),Ue("alt",e.image.split("/").pop()),d("src",e.image,fe)("decode",!0)}}function bE(t,i){if(1&t&&(ht(0),B(1,"img",9),mt()),2&t){const e=_(3).$implicit;c(1),Ue("alt",e.image.split("/").pop()),d("src",e.image,fe)("decode",!0)}}function SE(t,i){if(1&t&&(a(0,"div",6),C(1,yE,3,5,"ng-container",7),C(2,bE,2,3,"ng-container",7),l()),2&t){const e=_(2).$implicit;c(1),d("ngIf",e.link),c(1),d("ngIf",!e.link)}}function wE(t,i){if(1&t&&(a(0,"div",10)(1,"div",11)(2,"ul",1),C(3,CE,4,9,"li",2),l(),C(4,SE,3,2,"div",4),l()()),2&t){const e=_().$implicit,n=_();c(2),d("className",n.dataClassChildrenContainer),c(1),d("ngForOf",e.childMenu),c(1),d("ngIf","true"==n.dataShowImage&&(!n.isMobile||n.isMobile&&"true"==n.dataShowImageMobile)&&"bottom"===n.dataShowImagePosition&&e.image)}}function IE(t,i){if(1&t){const e=ve();a(0,"li",1)(1,"a",3),J("click",function(){const o=M(e).$implicit;return L(_().onCategoryClick(o.urlFriendly))}),C(2,pE,3,2,"div",4),h(3),l(),C(4,wE,5,3,"div",5),l()}if(2&t){const e=i.$implicit,n=_();d("className",n.dataClassItem+(e.childMenu.length>0?" has-submenu":"")),c(1),Ue("title",e.name),d("href",n.urlStore+e.urlFriendly,fe),ii("data-level",e.level),c(1),d("ngIf","true"==n.dataShowImage&&(!n.isMobile||n.isMobile&&"true"==n.dataShowImageMobile)&&"top"===n.dataShowImagePosition&&e.image),c(1),dt(" ",e.name," "),c(1),d("ngIf","true"==n.dataShowChildren&&e.childMenu.length>0)}}let xE=(()=>{class t{constructor(e,n){this.sharedDataCommom=e,this.commomService=n,this.dataClassContainer="",this.dataClassItem="",this.dataClassChildrenContainer="",this.dataClassChildrenItem="",this.dataShowChildren="true",this.dataShowImage="true",this.dataShowImageMobile="true",this.dataShowImagePosition="bottom",this.dataDevice="",this.dataFireMainEvent="false",this.categorias=[],this.urlStore="",this.isMobile=!1,this.isMobile=this.commomService.isDevice()}ngOnInit(){this.dataClassContainer=""!==this.dataClassContainer?"jet-menu-itens "+this.dataClassContainer:"jet-menu-itens",this.dataClassItem=""!==this.dataClassItem?"jet-item "+this.dataClassItem:"jet-item",this.companySubs$=this.sharedDataCommom.currentCompany$.subscribe(e=>{e&&(this.company=e)}),"true"==this.dataFireMainEvent&&this.mainEvent()}ngOnDestroy(){this.categoriasSubs$.unsubscribe(),null!=this.companySubs$&&this.companySubs$.unsubscribe()}onElementVisible(){"false"==this.dataFireMainEvent&&this.mainEvent()}onCategoryClick(e){if(this.company?.infiniteScrolling)try{const n=sessionStorage.getItem("filterChoosed");if(!n)return;const r=JSON.parse(n);r?.path===e&&r.pageNumber>1&&(r.pageNumber=1,sessionStorage.setItem("filterChoosed",JSON.stringify(r)))}catch{}}mainEvent(){""!==this.dataDevice&&("mobile"===this.dataDevice.toLowerCase()&&!this.commomService.isDevice()||"desktop"===this.dataDevice.toLowerCase()&&this.commomService.isDevice())||(this.categoriasSubs$=this.sharedDataCommom.currentCategorias$.subscribe(e=>{e&&(this.categorias=this.filterVisibleCategories(e),this.commomService.finishLoadComponent("onJetMenuLoaded",{detail:{dataDevice:this.dataDevice}}))}
3),this.urlStore=document.location.origin)}filterVisibleCategories(e=[]){return e.filter(n=>this.isVisibleCategory(n)).map(n=>({...n,childMenu:this.filterVisibleCategories(n.childMenu)}))}isVisibleCategory(e){return 0!=e?.visible}static#e=this.\u0275fac=function(n){return new(n||t)($(yn),$(qt))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-menu"]],inputs:{dataClassContainer:["data-class-container","dataClassContainer"],dataClassItem:["data-class-item","dataClassItem"],dataClassChildrenContainer:["data-class-children-container","dataClassChildrenContainer"],dataClassChildrenItem:["data-class-children-item","dataClassChildrenItem"],dataShowChildren:["data-show-children","dataShowChildren"],dataShowImage:["data-show-image","dataShowImage"],dataShowImageMobile:["data-show-image-mobile","dataShowImageMobile"],dataShowImagePosition:["data-show-image-position","dataShowImagePosition"],dataDevice:["data-device","dataDevice"],dataFireMainEvent:["data-fire-main-event","dataFireMainEvent"]},decls:4,vars:2,consts:[["jetVisibilityCheck","",1,"jet-menu",3,"elementVisible"],[3,"className"],[3,"className",4,"ngFor","ngForOf"],[1,"title",3,"href","title","click"],["class","category-image",4,"ngIf"],["class","submenu",4,"ngIf"],[1,"category-image"],[4,"ngIf"],[3,"href","title","click"],["jet-image-size","","loading","lazy","fetchPriority","low",3,"src","alt","decode"],[1,"submenu"],[1,"container"],[1,"title",3,"href","title","ngClass","click"],["class","submenu last",4,"ngIf"],[1,"submenu","last"]],template:function(n,r){1&n&&(a(0,"div",0),J("elementVisible",function(){return r.onElementVisible()}),a(1,"nav")(2,"ul",1),C(3,IE,5,7,"li",2),l()()()),2&n&&(c(2),d("className",r.dataClassContainer),c(1),d("ngForOf",r.categorias))},dependencies:[ui,ei,en,bs,Yo],encapsulation:2})}return t})(),ym=(()=>{class t{constructor(e){this.zone=e,this.windowGrecaptcha="grecaptcha",this.windowOnLoadCallbackProperty="ngx_captcha_onload_callback",this.globalDomain="recaptcha.net",this.defaultDomain="google.com"}registerCaptchaScript(e,n,r,o){if(this.grecaptchaScriptLoaded())return void this.zone.run(()=>{r(window[this.windowGrecaptcha])});window[this.windowOnLoadCallbackProperty]=()=>this.zone.run(r.bind(this,window[this.windowGrecaptcha]));const s=document.createElement("script");s.innerHTML="",s.src=this.getCaptchaScriptUrl(e,n,o),s.async=!0,s.defer=!0,document.getElementsByTagName("head")[0].appendChild(s)}cleanup(){window[this.windowOnLoadCallbackProperty]=void 0,window[this.windowGrecaptcha]=void 0}grecaptchaScriptLoaded(){return!(!window[this.windowOnLoadCallbackProperty]||!window[this.windowGrecaptcha])}getLanguageParam(e){return e?`&hl=${e}`:""}getCaptchaScriptUrl(e,n,r){return`https://www.${e?this.globalDomain:this.defaultDomain}/recaptcha/api.js?onload=${this.windowOnLoadCallbackProperty}&render=${n}${this.getLanguageParam(r)}`}}return t.\u0275fac=function(e){return new(e||t)(Mt($r))},t.\u0275prov=sn({token:t,factory:t.\u0275fac}),t})();const Uh={InvisibleReCaptcha:0,ReCaptcha2:1};Uh[Uh.InvisibleReCaptcha]="InvisibleReCaptcha",Uh[Uh.ReCaptcha2]="ReCaptcha2";let my=(()=>{class t{constructor(e,n){this.scriptService=e,this.zone=n}execute(e,n,r,o,s){this.executeAsPromise(e,n,o).then(r).catch(u=>s?s(u):console.error(u))}executeAsPromise(e,n,r){return new Promise((o,s)=>{this.scriptService.registerCaptchaScript(!(!r||!r.useGlobalDomain),e,w=>{this.zone.runOutsideAngular(()=>{try{w.execute(e,{action:n}).then(P=>this.zone.run(()=>o(P)))}catch(P){s(P)}})})})}}return t.\u0275fac=function(e){return new(e||t)(Mt(ym),Mt($r))},t.\u0275prov=sn({token:t,factory:t.\u0275fac}),t})(),DE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=uo({type:t}),t.\u0275inj=Mo({providers:[ym,my],imports:[om]}),t})(),xd=(()=>{class t{constructor(e,n){this.http=e,this.reCaptchaV3Service=n}getCredentialsRecapctcha(){return this.http.post("/api",{request:"674e7d84-5f1e-48f3-b059-0e284bea1c0a/5c7c71da-fc60-4a6e-97e5-dfb467555ed3",json:null})}getCaptcha(e){return this.http.post("/api/recaptcha",{request:"674e7d84-5f1e-48f3-b059-0e284bea1c0a/aabbe01a-f853-46e5-adc3-cdc14726e54f",json:{response:e}})}sendRecaptcha(e,n){return new Se(r=>{this.getCredentialsRecapctcha().subscribe(o=>{if(o.status){let u;u=o.tipo.split(",").findIndex(v=>v.trim()==e),u>=0?this.reCaptchaV3Service.execute(o.siteKey,n,v=>{r.next(v)},{useGlobalDomain:!1}):r.next("")}else r.next("")})})}static#e=this.\u0275fac=function(n){return new(n||t)(Mt(ko),Mt(my))};static#t=this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function PE(t,i){1&t&&(a(0,"span"),h(1,"Informe o Nome"),l())}function TE(t,i){1&t&&(a(0,"span"),h(1,"Informe o nome corretamente"),l())}function EE(t,i){if(1&t&&(a(0,"div",9),C(1,PE,2,0,"span",10),C(2,TE,2,0,"span",10),l()),2&t){const e=_(2);c(1),d("ngIf",e.f.name.errors.required),c(1),d("ngIf",null==e.f.name.errors?null:e.f.name.errors.pattern)}}function LE(t,i){if(1&t&&(a(0,"div",1),B(1,"input",7,8),C(3,EE,3,2,"div",5),l()),2&t){const e=_();d("className",e.dataClassInput),c(3),d("ngIf",e.f.name.errors&&(e.f.name.dirty||e.f.name.touched))}}function kE(t,i){1&t&&(a(0,"span"),h(1,"Informe o Email"),l())}function ME(t,i){1&t&&(a(0,"span"),h(1,"E-mail Inv\xe1lido"),l())}function FE(t,i){if(1&t&&(a(0,"div",9),C(1,kE,2,0,"span",10),C(2,ME,2,0,"span",10),l()),2&t){const e=_();c(1),d("ngIf",e.f.email.errors.required),c(1),d("ngIf",null==e.f.email.errors?null:e.f.email.errors.pattern)}}function AE(t,i){1&t&&(a(0,"span"),h(1,"Informe o Telefone"),l())}function NE(t,i){1&t&&(a(0,"span"),h(1,"Informe um telefone v\xe1lido"),l())}function OE(t,i){if(1&t&&(a(0,"div",9),C(1,AE,2,0,"span",10),C(2,NE,2,0,"span",10),l()),2&t){const e=_(2);c(1),d("ngIf",e.f.phone.errors.required),c(1),d("ngIf",null==e.f.phone.errors?null:e.f.phone.errors.minlength)}}function RE(t,i){if(1&t){const e=ve();a(0,"div",1)(1,"input",11,12),J("input",function(r){return M(e),L(_().phoneNumberMask(r.target.value))})("blur",function(r){return M(e),L(_().phoneNumberMask(r.target.value))})("paste",function(r){return r.preventDefault()}),l(),C(3,OE,3,2,"div",5),l()}if(2&t){const e=_();d("className",e.dataClassInput),c(3),d("ngIf",e.f.phone.errors&&(e.f.phone.dirty||e.f.ph
3one.touched))}}function BE(t,i){1&t&&(a(0,"span"),h(1,"M\xe1ximo de 300 caracteres"),l())}function jE(t,i){if(1&t&&(a(0,"div",9),C(1,BE,2,0,"span",10),l()),2&t){const e=_(2);c(1),d("ngIf",null==e.f.observation.errors?null:e.f.observation.errors.maxlength)}}function VE(t,i){if(1&t&&(a(0,"div",1),B(1,"textarea",13,14),C(3,jE,2,1,"div",5),l()),2&t){const e=_();d("className",e.dataClassInput),c(3),d("ngIf",e.f.observation.errors&&(e.f.observation.dirty||e.f.observation.touched))}}const HE=function(t){return{"jet-btn-loading":t}};let zE=(()=>{class t{constructor(e,n,r,o){this.customerService=e,this.commomService=n,this.googleRecaptcha=r,this.fb=o,this.dataClassContainer="",this.dataClassInput="",this.dataClassButton="",this.dataNewsButtonText="Cadastrar",this.dataShowName="true",this.dataShowObservation="false",this.dataShowPhone="false",this.formModel={name:"",email:"",observation:"",phone:""},this.loading=!1}ngOnInit(){this.dataClassContainer=""!==this.dataClassContainer?"jet-news-itens "+this.dataClassContainer:"jet-news-itens",this.dataClassInput=""!==this.dataClassInput?"jet-input "+this.dataClassInput:"jet-input",this.dataClassButton=""!==this.dataClassButton?"jet-button "+this.dataClassButton:"jet-button",this.newsletterForm=this.fb.group({name:[""],email:["",[oe.required,oe.pattern(/^(([^<>()[\]\\.,;:\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,}))$/)]],observation:[""],phone:[""]}),"true"==this.dataShowName&&this.f.name.setValidators([oe.required,oe.pattern(/^[A-z\xc0-\xff'][A-z\xc0-\xff']+\s([A-z\xc0-\xff']\s?)*[A-z\xc0-\xff'][A-z\xc0-\xff'](\s?)+$/)]),"true"==this.dataShowObservation&&this.f.observation.setValidators([oe.maxLength(300)]),"true"==this.dataShowPhone&&this.f.phone.setValidators([oe.required,oe.minLength(14)]),this.commomService.finishLoadComponent("onJetNewsletterLoaded")}get f(){return this.newsletterForm.controls}ngOnDestroy(){this.newsletterCategoriesObs$.unsubscribe()}phoneNumberMask(e){this.f.phone.setValue(this.commomService.phoneNumberMask(e))}sendNewsletter(){if(!this.newsletterForm.valid)return;this.loading=!0,this.newsletterCategoriesObs$=this.customerService.getNewslleterCategories().subscribe(u=>{this.categories=u});let e="true"==this.dataShowName?this.f.name.value:"Sem nome",n=this.f.email.value,r="true"==this.dataShowObservation?this.f.observation.value:"",o="true"==this.dataShowPhone?this.commomService.phoneNumberUnMask(this.f.phone.value):"",s={idEmailInfo:0,name:e,email:n,emailInfoCategory:this.categories,gender:"Masculino",observation:r,phone:o};this.googleRecaptcha.sendRecaptcha("Newsletter","Newsletter").subscribe(u=>{s.tokenRecaptcha=u,this.newsletterRegisterObs$=this.customerService.registerNewsletter(s).subscribe(v=>{v?(this.commomService.displayMessageUser("success","E-mail cadastrado com sucesso"),this.newsletterForm.reset(),this.commomService.finishLoadComponent("onJetPushDataLayerEvent",{detail:{type:"sign_up",params:{method:"Newsletter",email:s.email,name:s.name,phone:""}}})):this.commomService.displayMessageUser("error","Erro ao cadastrar email","Ocorreu um erro ao adicionar seu email."),this.loading=!1},v=>{this.commomService.displayMessageUser("error","Erro ao cadastrar email",v.error.error),this.loading=!1})})}static#e=this.\u0275fac=function(n){return new(n||t)($(Ci),$(qt),$(xd),$(ao))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-newsletter"]],inputs:{dataClassContainer:["data-class-container","dataClassContainer"],dataClassInput:["data-class-input","dataClassInput"],dataClassButton:["data-class-button","dataClassButton"],dataNewsButtonText:["data-news-button-text","dataNewsButtonText"],dataShowName:["data-show-name","dataShowName"],dataShowObservation:["data-show-observation","dataShowObservation"],dataShowPhone:["data-show-phone","dataShowPhone"]},decls:11,vars:13,consts:[["novalidate","",1,"jet-newsletter",3,"formGroup","ngSubmit"],[3,"className"],[3,"className",4,"ngIf"],["placeholder","[email protected]","formControlName","email","id","jet-newsletter-mail","autocomplete","email"],["email",""],["class","invali
3d-feedback",4,"ngIf"],["id","sendNews",3,"className","disabled","ngClass"],["placeholder","seu nome","formControlName","name","id","jet-newsletter-name","autocomplete","off"],["name",""],[1,"invalid-feedback"],[4,"ngIf"],["placeholder","(00) 00000-0000","formControlName","phone","id","jet-newsletter-phone","maxlength","15","autocomplete","off",3,"input","blur","paste"],["phone",""],["placeholder","Observa\xe7\xe3o","formControlName","observation","id","jet-newsletter-observation","maxlength","300","autocomplete","off","rows","3"],["observation",""]],template:function(n,r){1&n&&(a(0,"form",0),J("ngSubmit",function(){return r.sendNewsletter()}),a(1,"div",1),C(2,LE,4,2,"div",2),a(3,"div",1),B(4,"input",3,4),C(6,FE,3,2,"div",5),l(),C(7,RE,4,2,"div",2),C(8,VE,4,2,"div",2),a(9,"button",6),h(10),l()()()),2&n&&(d("formGroup",r.newsletterForm),c(1),d("className",r.dataClassContainer),c(1),d("ngIf","true"==r.dataShowName),c(1),d("className",r.dataClassInput),c(3),d("ngIf",r.f.email.errors&&(r.f.email.dirty||r.f.email.touched)),c(1),d("ngIf","true"==r.dataShowPhone),c(1),d("ngIf","true"==r.dataShowObservation),c(1),d("className",r.dataClassButton)("disabled",!r.newsletterForm.valid)("ngClass",Oe(11,HE,r.loading)),c(1),de(r.dataNewsButtonText))},dependencies:[ui,en,Gr,mr,fr,Ur,Zo,Ir,Mr],encapsulation:2})}return t})();function qE(t,i){1&t&&(B(0,"div",10),Wi(1,"safeHtml")),2&t&&d("innerHtml",Lo(1,1,_().$implicit.code),ce)}function $E(t,i){if(1&t&&B(0,"img",14),2&t){const e=_(2).$implicit;Ue("alt",e.name),d("src",e.image,fe)("decode",!0)}}function UE(t,i){if(1&t&&(a(0,"a",11)(1,"span",12),h(2),l(),C(3,$E,1,3,"img",13),l()),2&t){const e=_().$implicit;Ue("href",e.link,fe),Ue("title",e.name),c(2),de(e.name),c(1),d("ngIf",""!==e.image.split("/").pop())}}function GE(t,i){if(1&t&&B(0,"img",14),2&t){const e=_(2).$implicit;Ue("alt",e.name),d("src",e.image,fe)("decode",!0)}}function WE(t,i){if(1&t&&(a(0,"span")(1,"span",12),h(2),l(),C(3,GE,1,3,"img",13),l()),2&t){const e=_().$implicit;c(2),de(e.name),c(1),d("ngIf",""!==e.image.split("/").pop())}}function JE(t,i){if(1&t&&(a(0,"div",6),C(1,qE,2,3,"div",7),C(2,UE,4,4,"a",8),C(3,WE,4,2,"span",9),l()),2&t){const e=i.$implicit;c(1),d("ngIf",e.code),c(1),d("ngIf",e.link&&""!==e.link&&!e.code),c(1),d("ngIf",!(""!==e.link&&e.link||e.code))}}function ZE(t,i){if(1&t&&(a(0,"div",2)(1,"div",3)(2,"div",4),C(3,JE,4,3,"div",5),l()()()),2&t){const e=_();c(3),d("ngForOf",e.stamps)}}let QE=(()=>{class t{constructor(e,n,r,o,s){this.sharedDataCommom=e,this.companyService=n,this.commomService=r,this.renderer=o,this.sanitizer=s}ngOnInit(){}convertToHtml(e){return this.sanitizer.bypassSecurityTrustHtml(e)}onElementVisible(){this.stampsSubs$=this.companyService.getSealCompany().subscribe(e=>{e&&(this.stamps=e,this.commomService.finishLoadComponent("onJetStampsLoaded"))})}static#e=this.\u0275fac=function(n){return new(n||t)($(yn),$(Qo),$(qt),$(ps),$(gl))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-stamps"]],decls:2,vars:1,consts:[["jetVisibilityCheck","",1,"jetlazyload",3,"elementVisible"],["class","jet-stamps",4,"ngIf"],[1,"jet-stamps"],[1,"content","stamps"],[1,"stamps"],["class","stamp",4,"ngFor","ngForOf"],[1,"stamp"],["jetRunScripts","",3,"innerHtml",4,"ngIf"],["target","_blank",3,"href","title",4,"ngIf"],[4,"ngIf"],["jetRunScripts","",3,"innerHtml"],["target","_blank",3,"href","title"],[1,"stamp-name"],["jet-image-size","","loading","lazy","fetchPriority","low",3,"src","alt","decode",4,"ngIf"],["jet-image-size","","loading","lazy","fetchPriority","low",3,"src","alt","decode"]],template:function(n,r){1&n&&(a(0,"div",0),J("elementVisible",function(){return r.onElementVisible()}),C(1,ZE,4,1,"div",1),l()),2&n&&(c(1),d("ngIf",r.stamps))},dependencies:[ei,en,tv,bs,Yo,za],encapsulation:2})}return t})();function YE(t,i){if(1&t&&(a(0,"div",19)(1,"span",20),h(2),l()()),2&t){const e=_(2);c(2),de(e.dataStore.fantasyName)}}function KE(t,i){if(1&t&&(a(0,"span",21),h(1),l()),2&t){const e=_(2);c(1),de(e.dataStore.emailContact)}}function XE(t,i){if(1&t&&(a(0,"span",22),h(1),l()),2&t){const e=_(2);c(1),de(e.dataStore.phone1)}}function eL(t,i){if(1&t&&(a(0,"span",23),h(1),l()),2&t){const e=_(2);c(1),de(e.dataStore.address)}}function tL(t,i){if(1&t&&(a(0,"span",24),h(1),l()),2&t){const e=_(2);c(1),de(e.dataStore.complement)}}function nL(t,i){if(1&t&&(a(0,"span",25),h(1),l()),2&t){const e=_(2);c(1),de(e.dataStore.neighbourhood)}}function iL(t,i){if(1&t&&(a(0,"span",26),h(1),l()),2&t){const e=_(2);c(1),de(e.dataStore.cep)}}function rL(t,i){if(1&t&&(a(0,"span",27),h(1),l()),2&t){const e=_(2);c(1),de(e.dataStore.city)}}function oL(t,i){if(1&t&&(a(0,"span",28),h(1),l()),2&t){const e=_(2);c(1),de(e.dataStore.state)}}
3function sL(t,i){if(1&t&&(a(0,"div",29)(1,"span",30),h(2),l()()),2&t){const e=_(2);c(2),de(e.dataStore.cnpj)}}function aL(t,i){if(1&t&&(a(0,"div",5)(1,"div",31),h(2),l()()),2&t){const e=_(2);c(2),dt(" ",e.dataStore.complementText," ")}}function lL(t,i){if(1&t&&(a(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5),C(4,YE,3,1,"div",6),a(5,"div",7),C(6,KE,2,1,"span",8),C(7,XE,2,1,"span",9),l(),a(8,"div",10),C(9,eL,2,1,"span",11),C(10,tL,2,1,"span",12),C(11,nL,2,1,"span",13),C(12,iL,2,1,"span",14),C(13,rL,2,1,"span",15),C(14,oL,2,1,"span",16),l(),C(15,sL,3,1,"div",17),l(),C(16,aL,3,1,"div",18),l()()()),2&t){const e=_();c(1),d("className",e.dataClassContainer),c(1),d("className",e.dataClassColumn),c(2),d("ngIf",e.dataStore.fantasyName),c(2),d("ngIf",e.dataStore.emailContact),c(1),d("ngIf",e.dataStore.phone1),c(2),d("ngIf",e.dataStore.address),c(1),d("ngIf",e.dataStore.complement),c(1),d("ngIf",e.dataStore.neighbourhood),c(1),d("ngIf",e.dataStore.cep),c(1),d("ngIf",e.dataStore.city),c(1),d("ngIf",e.dataStore.state),c(1),d("ngIf",e.dataStore.cnpj),c(1),d("ngIf",e.dataStore.complementText)}}let cL=(()=>{class t{constructor(e,n){this.sharedDataCommom=e,this.commomService=n,this.dataClassContainer="",this.dataClassColumn=""}
3ngOnInit(){this.dataClassContainer=""!==this.dataClassContainer?"content jet-container "+this.dataClassContainer:"content jet-container ",this.dataClassColumn=""!==this.dataClassColumn?"content jet-column "+this.dataClassColumn:"content jet-column "}ngOnDestroy(){this.dataStoreSubs$.unsubscribe()}onElementVisible(){this.dataStoreSubs$=this.sharedDataCommom.currentCompany$.subscribe(e=>{e&&(this.dataStore=e,this.commomService.finishLoadComponent("onJetDataStoreLoaded"))})}static#e=this.\u0275fac=function(n){return new(n||t)($(yn),$(qt))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-data-store"]],inputs:{dataClassContainer:["data-class-container","dataClassContainer"],dataClassColumn:["data-class-column","dataClassColumn"]},decls:2,vars:1,consts:[["jetVisibilityCheck","",1,"jetlazyload",3,"elementVisible"],["class","jet-data-store",4,"ngIf"],[1,"jet-data-store"],[3,"className"],[1,"content","store",3,"className"],[1,"data","notranslate"],["class","data-info",4,"ngIf"],[1,"data-contact"],["class","email-contact",4,"ngIf"],["class","phone",4,"ngIf"],[1,"data-address"],["class","address",4,"ngIf"],["class","complement",4,"ngIf"],["class","neighbourhood",4,"ngIf"],["class","cep",4,"ngIf"],["class","city",4,"ngIf"],["class","state",4,"ngIf"],["class","data-company",4,"ngIf"],["class","data notranslate",4,"ngIf"],[1,"data-info"],[1,"fantasy-name"],[1,"email-contact"],[1,"phone"],[1,"address"],[1,"complement"],[1,"neighbourhood"],[1,"cep"],[1,"city"],[1,"state"],[1,"data-company"],[1,"cnpj"],[1,"data-complement"]],template:function(n,r){1&n&&(a(0,"div",0),J("elementVisible",function(){return r.onElementVisible()}),C(1,lL,17,13,"div",1),l()),2&n&&(c(1),d("ngIf",null!=r.dataStore))},dependencies:[en,Yo],encapsulation:2})}return t})();function dL(t,i){if(1&t&&(a(0,"div",12),B(1,"div",13),Wi(2,"safeHtml"),l()),2&t){const e=_(5).$implicit;c(1),d("innerHTML",Lo(2,1,e.description),ce)}}function uL(t,i){if(1&t){const e=ve();a(0,"a",8),J("click",function(){M(e);const r=_(4).$implicit;return L(_(2).sendEventPromotion(r.idBanner))}),a(1,"div",9),B(2,"img",10),l(),C(3,dL,3,3,"div",11),l()}if(2&t){const e=_(4),n=e.$implicit,r=e.index,o=_(2);Ue("href",n.link,fe),Ue("title",n.name),c(2),Ue("alt",n.name),d("src",(o.isMobile&&""!=o.dataTextPreImageMobile?o.dataTextPreImageMobile:o.dataTextPreImage)+(o.isMobile?n.nameFileImageMobile:n.nameFileImage),fe)("decode",!0)("loading",o.typeBanner>0||r>0?"lazy":"eager")("fetchPriority",o.typeBanner>0||r>0?"low":"high"),c(1),d("ngIf",""!==n.description)}}function hL(t,i){if(1&t&&(a(0,"div",12),B(1,"div",13),Wi(2,"safeHtml"),l()),2&t){const e=_(5).$implicit;c(1),d("innerHTML",Lo(2,1,e.description),ce)}}function mL(t,i){if(1&t&&(ht(0),a(1,"div",9),B(2,"img",10),l(),C(3,hL,3,3,"div",11),mt()),2&t){const e=_(4),n=e.$implicit,r=e.index,o=_(2);c(2),Ue("alt",n.name),d("src",(o.isMobile&&""!=o.dataTextPreImageMobile?o.dataTextPreImageMobile:o.dataTextPreImage)+(o.isMobile?n.nameFileImageMobile:n.nameFileImage),fe)("decode",!0)("loading",o.typeBanner>0||r>0?"lazy":"eager")("fetchPriority",o.typeBanner>0||r>0?"low":"high"),c(1),d("ngIf",""!==n.description)}}function fL(t,i){if(1&t&&(ht(0),C(1,uL,4,8,"a",7),C(2,mL,4,6,"ng-container",6),mt()),2&t){const e=_(3).$implicit;c(1),d("ngIf",e.link),c(1),d("ngIf",!e.link)}}function pL(t,i){if(1&t&&(ht(0),C(1,fL,3,2,"ng-container",6),mt()),2&t){const e=_(2).$implicit,n=_(2);c(1),d("ngIf",n.isMobile&&e.nameFileImageMobile||!n.isMobile&&e.nameFileImage)}}function gL(t,i){if(1&t){const e=ve();ht(0),a(1,"div",14),J("click",function(){M(e);const r=_(2).$implicit;return L(_(2).sendEventPromotion(r.idBanner))}),B(2,"iframe",15),l(),mt()}if(2&t){const e=_(2).$implicit,n=_(2);c(2),Ue("title",e.name),d("src",n.normalizeUrlVideo(n.isMobile?e.urlVideoMobile:e.urlVideo),Pt)("loading",0==n.typeBanner?"eager":"lazy")}}function vL(t,i){if(1&t&&(a(0,"div",3),C(1,pL,2,1,"ng-container",6),C(2,gL,3,3,"ng-container",6),l()),2&t){const e=_().$implicit,n=_(2);d("className",n.dataClassChildren),c(1),d("ngIf","video"!=e.contentType.toLowerCase()),c(1),d("ngIf",n.isMobile&&e.urlVideoMobile||!n.isMobile&&e.urlVideo)}}function _L(t,i){if(1&t&&(ht(0),C(1,vL,3,3,"div",5),mt()),2&t){const e=i.$implicit,n=_(2);c(1),d("ngIf",n.returnContent(e))}}function CL(t,i){if(1&t&&(a(0,"div",2)(1,"div",3)(2,"div",3),C(3,_L,2,1,"ng-container",4),l()()()),2&t){const e=_();c(1),d("className",e.dataClassContainer),c(1),d("className",e.dataClassChildrenContainer),c(1),d("ngForOf",e.banners)}}let yL=(()=>{class t{constructor(e,n,r,o){this.companyService=e,this.commomService=n,this.productService=r,this.sanitizer=o,this.dataClassContainer="",this.dataClassChildrenContainer="",this.dataClassChildren="",this.dataType="",this.dataModel="full",this.dataPage="home",this.dataDevice="",this.dataVideoAutoPlay="true",this.dataVideoControls="true",this.dataVideoLoop="true",this.dataTextPreImage="",this.dataTextPreImageMobile="",this.showBanner=!1,this.isMobile=!1,this.typeBanner=0,this.titlePage="",this.isMobile=this.commomService.isDevice()}ngOnInit(){var e=this;this.dataClassContainer=""!==this.dataClassContainer?"jet-container "+this.dataClassContainer:"jet-container",this.dataClassChildrenContainer=""!==this.dataClassChildrenContainer?"jet-children-container "+this.dataClassChildrenContainer:"jet-children-container",this.dataClassChildren=""!==this.dataClassChildren?"jet-children "+this.dataClassChildren:"jet-children",this.dataVideoAutoPlay="true"==this.dataVideoAutoPlay.toLocaleLowerCase()?"1":"0",this.dataVideoControls="true"==this.dataVideoControls.toLocaleLowerCase()?"1":"0",this.dataVideoLoop="true"==this.dataVideoLoop.toLocaleLowerCase()?"1":"0",document.addEventListener("onJetTitleLoaded",(0,Zs.Z)(function*(){e.titlePage=document.getElementsByTagName("title")[0].textContent}),{once:!0,passive:!0})}validateBanner(){this.showBanner=!!(this.isMobile&&this.banners.filter(e=>e.nameFileImageMobile).length||this.banners.filter(e=>e.urlVideoMobile).length||!this.isMobile&&this.banners.filter(e=>e.nameFileImage).length||this.banners.filter(e=>e.urlVideo).length)}sendEventPromotion(e=0){this.banners.length&&this.commomService.finishLoadComponent("onJetPushDataLayerEvent",{detail:{type:e>0?"select_promotion":"view_promotion",params:{promotion_id:e>0?e:this.banners[0].idBanner,creative_name:e>0?this.banners.filter(n=>n.idBanner===e)[0].name:this.banners[0].name,items:[{item_id:window.location.pathname.replace(/^\//,"").replace(/\//g,"_")||`home_${this.banners[0].idBanner}`,item_name:this.titlePage}]}}})}normalizeUrlVideo(e){let r=e.replace(/^(https?:\/\/)?(www\.)?(youtube\.com\/watch\?v=|youtube\.com\/embed\/|youtube\.com\/shorts\/)([\w-]+).*$/,"https://www.youtube-nocookie.com/embed/$4");return this.sanitizer.bypassSecurityTrustResourceUrl(r+`?autoplay=${this.dataVideoAutoPlay}&mute=${"1"==this.dataVideoAutoPlay?1:0}&controls=${this.dataVideoControls}&loop=${this.dataVideoLoop}&showinfo=0&modestbranding=1&autohide=0&start=0&rel=0&playsinline=1`)}getHomeBanner(e){switch(e){case"full":this.subscriptionBanner$=this.companyService.getBanner("F").subscribe(n=>{n&&n.length>0&&(this.banners=n,""!==this.dataType&&(this.banners=this.banners.filter("random"==this.dataType?r=>1==r.random:r=>0==r.random)),this.dataId&&(this.banners=this.banners.filter(r=>r.idBanner==this.dataId)),this.validateBanner(),this.showBanner&&this.sendEventPromotion(),this.commomService.finishLoadComponent("onJetBannerLoaded"),this.subscriptionBanner$.unsubscribe())});break;
3case"central":this.subscriptionBanner$=this.companyService.getBanner("C").subscribe(n=>{n&&n.length>0&&(this.banners=n,this.typeBanner=1,""!==this.dataType&&(this.banners=this.banners.filter("random"==this.dataType?r=>1==r.random:r=>0==r.random)),this.dataId&&(this.banners=this.banners.filter(r=>r.idBanner==this.dataId)),this.validateBanner(),this.showBanner&&this.sendEventPromotion(),this.commomService.finishLoadComponent("onJetBannerCentralLoaded"),this.subscriptionBanner$.unsubscribe())});break;case"side":this.subscriptionBanner$=this.companyService.getBanner("L").subscribe(n=>{n&&n.length>0&&(this.banners=n,this.typeBanner=2,""!==this.dataType&&(this.banners=this.banners.filter("random"==this.dataType?r=>1==r.random:r=>0==r.random)),this.dataId&&(this.banners=this.banners.filter(r=>r.idBanner==this.dataId)),this.validateBanner(),this.showBanner&&this.sendEventPromotion(),this.commomService.finishLoadComponent("onJetBannerSideLoaded"),this.subscriptionBanner$.unsubscribe())});break;case"footer":this.subscriptionBanner$=this.companyService.getBanner("R").subscribe(n=>{n&&n.length>0&&(this.banners=n,this.typeBanner=3,""!==this.dataType&&(this.banners=this.banners.filter("random"==this.dataType?r=>1==r.random:r=>0==r.random)),this.dataId&&(this.banners=this.banners.filter(r=>r.idBanner==this.dataId)),this.validateBanner(),this.showBanner&&this.sendEventPromotion(),this.commomService.finishLoadComponent("onJetBannerFooterLoaded"),this.subscriptionBanner$.unsubscribe())})}}getCategoryBanner(e){let n="F",r="";switch(e){case"full":n="F",r="onJetBannerLoaded";break;case"side":n="L",r="onJetBannerSideLoaded";break;case"central":n="C",r="onJetBannerCentralLoaded";break;case"footer":n="R",r="onJetBannerFooterLoaded"}let o="",s=location.pathname.substring(0,location.pathname.length-2),u=s.split("/")[1];null!=u&&u.length>0&&(o+=u);let v=s.split("/")[2];null!=v&&v.length>0&&(o+="/"+v);let w=s.split("/")[3];null!=w&&w.length>0&&(o+="/"+w),o+="/c",this.subscriptionBanner$=this.companyService.getCategoryBanners(n,o).subscribe(P=>{P&&P.length>0&&(this.banners=P,""!==this.dataType&&(this.banners=this.banners.filter("random"==this.dataType?F=>1==F.random:F=>0==F.random)),this.validateBanner(),this.showBanner&&this.sendEventPromotion(),this.commomService.finishLoadComponent(r))})}getGroupBanner(e){let n="F",r="";switch(e){case"full":n="F",r="onJetBannerLoaded";break;case"side":n="L",r="onJetBannerSideLoaded";break;case"central":n="C",r="onJetBannerCentralLoaded";break;case"footer":n="R",r="onJetBannerFooterLoaded"}let o="",u=location.pathname.substring(0,location.pathname.length-2).split("/")[1];null!=u&&u.length>0&&(o+=u),o+="/g",this.subscriptionBanner$=this.companyService.getGroupBanners(n,o).subscribe(v=>{v&&v.length>0&&(this.banners=v,""!==this.dataType&&(this.banners=this.banners.filter("random"==this.dataType?w=>1==w.random:w=>0==w.random)),this.validateBanner(),this.showBanner&&this.sendEventPromotion(),this.commomService.finishLoadComponent(r),this.subscriptionBanner$.unsubscribe())})}getBrandBanner(e){let n="F",r="";switch(e){case"full":n="F",r="onJetBannerLoaded";break;case"side":n="L",r="onJetBannerSideLoaded";break;case"central":n="C",r="onJetBannerCentralLoaded";break;case"footer":n="R",r="onJetBannerFooterLoaded"}let o="",u=location.pathname.substring(0,location.pathname.length-2).split("/")[1];null!=u&&u.length>0&&(o+=u),o+="/m",this.subscriptionBanner$=this.companyService.getGroupBanners(n,o).subscribe(v=>{v&&v.length>0&&(this.banners=v,""!==this.dataType&&(this.banners=this.banners.filter("random"==this.dataType?w=>1==w.random:w=>0==w.random)),this.validateBanner(),this.showBanner&&this.sendEventPromotion(),this.commomService.finishLoadComponent(r),this.subscriptionBanner$.unsubscribe())})}getPartnerBanner(e){let n="F",r="";switch(e){case"full":n="F",r="onJetBannerLoaded";break;case"side":n="L",r="onJetBannerSideLoaded";break;case"central":n="C",r="onJetBannerCentralLoaded";break;case"footer":n="R",r="onJetBannerFooterLoaded"}let o="",u=location.pathname.substring(0,location.pathname.length-2).split("/")[1];null!=u&&u.length>0&&(o+=u),o+="/s",this.subscriptionBanner$=this.companyService.getPartnerBanners(n,o).subscribe(v=>{v&&v.length>0&&(this.banners=v,""!==this.dataType&&(this.banners=this.banners.filter("random"==this.dataType?w=>1==w.random:w=>0==w.random)),this.validateBanner(),this.showBanner&&this.sendEventPromotion(),this.commomService.finishLoadComponent(r),this.subscriptionBanner$.unsubscribe())})}returnContent(e){return this.isMobile?"video"!==e.contentTypeMobile.toLowerCase()&&e.nameFileImageMobile||"video"===e.contentTypeMobile.toLowerCase()&&e.urlVideoMobile:"video"!==e.contentType.toLowerCase()&&e.nameFileImage||!this.isMobile&&"video"===e.contentType.toLowerCase()&&e.urlVideo}onElementVisible(){const e=setInterval(()=>{if(""!==this.titlePage){if(""!==this.dataDevice&&("mobile"===this.dataDevice.toLowerCase()&&!this.isMobile||"desktop"===this.dataDevice.toLowerCase()&&this.isMobile))return;switch(this.dataPage){case"home":this.getHomeBanner(this.dataModel);break;case"category":this.getCategoryBanner(this.dataModel);break;case"group":this.getGroupBanner(this.dataModel);break;case"brand":this.getBrandBanner(this.dataModel);break;case"partner":this.getPartnerBanner(this.dataModel)}clearInterval(e)}},100)}static#e=this.\u0275fac=function(n){return new(n||t)($(Qo),$(qt),$(Ou),$(gl))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-banner"]],inputs:{dataClassContainer:["data-class-container","dataClassContainer"],dataClassChildrenContainer:["data-class-children-container","dataClassChildrenContainer"],dataClassChildren:["data-class-children","dataClassChildren"],dataId:["data-id","dataId"],dataType:["data-type","dataType"],dataModel:["data-model","dataModel"],dataPage:["data-page","dataPage"],dataDevice:["data-device","dataDevice"],dataVideoAutoPlay:["data-vi
3deo-autoplay","dataVideoAutoPlay"],dataVideoControls:["data-video-controls","dataVideoControls"],dataVideoLoop:["data-video-loop","dataVideoLoop"],dataTextPreImage:["data-text-pre-image","dataTextPreImage"],dataTextPreImageMobile:["data-text-pre-image-mobile","dataTextPreImageMobile"]},decls:2,vars:1,consts:[["jetVisibilityCheck","",1,"jetlazyload",3,"elementVisible"],["class","jet-banner",4,"ngIf"],[1,"jet-banner"],[3,"className"],[4,"ngFor","ngForOf"],[3,"className",4,"ngIf"],[4,"ngIf"],[3,"href","title","click",4,"ngIf"],[3,"href","title","click"],[1,"image"],["jet-image-size","",3,"alt","src","decode","loading","fetchPriority"],["class","description",4,"ngIf"],[1,"description"],[1,"content",3,"innerHTML"],[1,"image","video",3,"click"],["width","100%","height","100%","frameborder","0",3,"title","src","loading"]],template:function(n,r){1&n&&(a(0,"div",0),J("elementVisible",function(){return r.onElementVisible()}),C(1,CL,4,3,"div",1),l()),2&n&&(c(1),d("ngIf",r.banners&&r.banners.length>0&&r.showBanner))},dependencies:[ei,en,bs,Yo,za],encapsulation:2})}return t})();function bL(t,i){if(1&t&&(a(0,"div",9),h(1),l()),2&t){const e=_().$implicit;c(1),de(e.metaDescription)}}function SL(t,i){if(1&t&&(a(0,"div",4)(1,"a",6),B(2,"img",7),C(3,bL,2,1,"div",8),l()()),2&t){const e=i.$implicit,n=_(2);d("className",n.dataClassChildren),c(1),Ue("href",e.urlFriendly,fe),Ue("title",(null==e.title?null:e.title.length)>0?e.title:e.name),c(1),Ue("alt",(null==e.title?null:e.title.length)>0?e.title:e.name),d("src",(n.isMobile?n.dataTextPreImageMobile:n.dataTextPreImage)+e.logo,fe)("decode",!0),c(1),d("ngIf",(null==e.metaDescription?null:e.metaDescription.length)>0)}}function wL(t,i){if(1&t&&(a(0,"div",2)(1,"div",3),h(2),l(),a(3,"div",4),C(4,SL,4,7,"div",5),l()()),2&t){const e=_();c(2),dt(" ",e.dataTextTitle," "),c(1),d("className",e.dataClassContainer),c(1),d("ngForOf",e.brands)}}let IL=(()=>{class t{constructor(e,n,r){this.sharedDataCommom=e,this.productService=n,this.commomService=r,this.dataTextTitle="Compre pela Marca",this.dataClassContainer="",this.dataClassChildren="",this.dataDevice="",this.dataTextPreImage="",this.dataTextPreImageMobile="",this.isMobile=!1,this.isMobile=this.commomService.isDevice()}ngOnInit(){this.dataClassContainer=""!==this.dataClassContainer?"jet-brands-itens "+this.dataClassContainer:"jet-brands-itens",this.dataClassChildren=""!==this.dataClassChildren?"jet-item "+this.dataClassChildren:"jet-item"}onElementVisible(){""!==this.dataDevice&&("mobile"===this.dataDevice.toLowerCase()&&!this.commomService.isDevice()||"desktop"===this.dataDevice.toLowerCase()&&this.commomService.isDevice())||(this.subscriptionBrands$=this.productService.getBrands(!0).subscribe(e=>{e&&(this.brands=e.filter(n=>!!n.logo),this.commomService.finishLoadComponent("onJetBrandsLoaded"))}))}static#e=this.\u0275fac=function(n){return new(n||t)($(yn),$(Ou),$(qt))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-brands"]],inputs:{dataTextTitle:["data-text-title","dataTextTitle"],dataClassContainer:["data-class-container","dataClassContainer"],dataClassChildren:["data-class-children","dataClassChildren"],dataDevice:["data-device","dataDevice"],dataTextPreImage:["data-text-pre-image","dataTextPreImage"],dataTextPreImageMobile:["data-text-pre-image-mobile","dataTextPreImageMobile"]},decls:2,vars:1,consts:[["jetVisibilityCheck","",1,"jetlazyload",3,"elementVisible"],["class","jet-brands",4,"ngIf"],[1,"jet-brands"],[1,"title-brands"],[3,"className"],[3,"className",4,"ngFor","ngForOf"],[3,"href","title"],["jet-image-size","","loading","lazy","fetchPriority","low",3,"src","alt","decode"],["class","description",4,"ngIf"],[1,"description"]],template:function(n,r){1&n&&(a(0,"div",0),J("elementVisible",function(){return r.onElementVisible()}),C(1,wL,5,3,"div",1),l()),2&n&&(c(1),d("ngIf",r.brands&&r.brands.length>0))},dependencies:[ei,en,bs,Yo],encapsulation:2})}return t})(),xL=(()=>{class t{constructor(e){this.commomService=e,this.title=""}ngOnInit(){document.addEventListener("onJetCategoryProductsLoaded",e=>{this.title=e.detail.value.name,this.commomService.finishLoadComponent("onJetTitlePageLoaded")},{passive:!0}),document.addEventListener("onJetBrandProductsLoaded",e=>{this.title=e.detail.value.name,this.commomService.finishLoadComponent("onJetTitlePageLoaded")},{passive:!0}),document.addEventListener("onJetCatalogProductsLoaded",e=>{this.title=e.detail.value.name,this.commomService.finishLoadComponent("onJetTitlePageLoaded")},{passive:!0}),document.addEventListener("onJetGroupProductsLoaded",e=>{this.title=e.detail.value.name,this.commomService.finishLoadComponent("onJetTitlePageLoaded")},{passive:!0}),document.addEventListener("onJetPartnerProductsLoaded",e=>{this.title=e.detail.value.name,this.commomService.finishLoadComponent("onJetTitlePageLoaded")},{passive:!0}),document.addEventListener("onJetSearchProductsLoaded",e=>{this.title=e.detail.value.name.toUpperCase(),this.commomService.finishLoadComponent("onJetTitlePageLoaded")},{passive:!0})}static#e=this.\u0275fac=function(n){return new(n||t)($(qt))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-title-page"]],decls:2,vars:1,consts:[[1,"jet-title-page"]],template:function(n,r){1&n&&(a(0,"span",0),h(1),l()),2&n&&(c(1),de(r.title))},encapsulation:2})}return t})();
3function DL(t,i){if(1&t&&(a(0,"a",7)(1,"span"),h(2),l()()),2&t){const e=_().$implicit;d("href",e.href,fe)("title",e.name),c(2),de(e.name)}}function PL(t,i){if(1&t&&(a(0,"span"),h(1),l()),2&t){const e=_().$implicit;c(1),dt(" ",e.name," ")}}const TL=function(t){return{notranslate:t}};function EL(t,i){if(1&t&&(ht(0),a(1,"span",8),h(2),l(),mt()),2&t){const e=_().$implicit;let n;c(1),d("ngClass",Oe(2,TL,null!==(n=null==e?null:e.isNoTranslate)&&void 0!==n&&n)),c(1),de(e.name)}}function LL(t,i){1&t&&B(0,"span",9)}function kL(t,i){if(1&t&&(a(0,"li"),C(1,DL,3,3,"a",4),C(2,PL,2,1,"span",5),C(3,EL,3,4,"ng-container",5),C(4,LL,1,0,"span",6),l()),2&t){const e=i.$implicit,n=i.index,r=_();c(1),d("ngIf",n<r.breadcrumbs.length-1&&!1!==e.hasLink),c(1),d("ngIf",n<r.breadcrumbs.length-1&&!1===e.hasLink),c(1),d("ngIf",n==r.breadcrumbs.length-1),c(1),d("ngIf",n<r.breadcrumbs.length-1)}}let ML=(()=>{class t{constructor(e,n,r,o){this.sharedDataCommom=e,this.sharedDataDetail=n,this.commomService=r,this.snippet=o,this.dataClassContainer="",this.dataUseJsonldScript="true",this.breadcrumbs=[],this.urlStore=""}ngOnInit(){this.dataClassContainer=""!==this.dataClassContainer?"jet-container "+this.dataClassContainer:"jet-container",document.addEventListener("onJetCategoryProductsLoaded",e=>{this.breadcrumbs=[];let n=e.detail.value;this.companySubs$=this.sharedDataCommom.currentCompany$.subscribe(r=>{this.categoriasSubs$=this.sharedDataCommom.currentCategorias$.subscribe(o=>{if(o){this.breadcrumbs.push({href:"/",name:"Home",level:"01"});for(var s=0;s<=n.level.length/2;s++)if(null!=o&&o.length>0&&n.level.length>=2*(s+1)){let u=o.findIndex(v=>v.level==n.level.substring(0,2*(s+1)));if(u>-1){let v=o[u];this.breadcrumbs.push({href:this.urlStore+v.urlFriendly,name:v.name,level:v.level}),o=v.childMenu}}this.snippet.snippetBreadCrumb(this.urlStore,this.breadcrumbs,this.dataUseJsonldScript),this.commomService.finishLoadComponent("onJetBreadcrumbsLoaded",{detail:this.breadcrumbs})}})})},{passive:!0}),document.addEventListener("onJetBrandProductsLoaded",e=>{this.companySubs$=this.sharedDataCommom.currentCompany$.subscribe(n=>{this.breadcrumbs=[];let r=e.detail.value;this.breadcrumbs.push({href:"/",name:"Home"},{href:this.urlStore+r.urlFriendly,name:r.name}),this.snippet.snippetBreadCrumb(this.urlStore,this.breadcrumbs,this.dataUseJsonldScript),this.commomService.finishLoadComponent("onJetBreadcrumbsLoaded")})},{passive:!0}),document.addEventListener("onJetPartnerProductsLoaded",e=>{this.companySubs$=this.sharedDataCommom.currentCompany$.subscribe(n=>{this.breadcrumbs=[];let r=e.detail.value;this.breadcrumbs.push({href:"/",name:"Home"},{href:this.urlStore+r.urlFriendly,name:r.name}),this.snippet.snippetBreadCrumb(this.urlStore,this.breadcrumbs,this.dataUseJsonldScript),this.commomService.finishLoadComponent("onJetBreadcrumbsLoaded")})},{passive:!0}),document.addEventListener("onJetCatalogProductsLoaded",e=>{this.companySubs$=this.sharedDataCommom.currentCompany$.subscribe(n=>{this.breadcrumbs=[],this.breadcrumbs.push({href:"/",name:"Home"},{name:e.detail.value.name}),this.snippet.snippetBreadCrumb(this.urlStore,this.breadcrumbs,this.dataUseJsonldScript),this.commomService.finishLoadComponent("onJetBreadcrumbsLoaded")})},{passive:!0}),document.addEventListener("onJetGroupProductsLoaded",e=>{this.companySubs$=this.sharedDataCommom.currentCompany$.subscribe(n=>{this.breadcrumbs=[];let r=e.detail.value;this.breadcrumbs.push({href:"/",name:"Home"},{href:this.urlStore+r.urlFriendly,name:r.name}),this.snippet.snippetBreadCrumb(this.urlStore,this.breadcrumbs,this.dataUseJsonldScript),this.commomService.finishLoadComponent("onJetBreadcrumbsLoaded")})},{passive:!0}),document.addEventListener("onJetSearchProductsLoaded",e=>{this.companySubs$=this.sharedDataCommom.currentCompany$.subscribe(n=>{this.breadcrumbs=[];let r=e.detail.value;this.breadcrumbs.push({href:"/",name:"Home"},{href:this.urlStore+r.urlFriendly,name:r.name.toUpperCase()}),this.snippet.snippetBreadCrumb(this.urlStore,this.breadcrumbs,this.dataUseJsonldScript),this.commomService.finishLoadComponent("onJetBreadcrumbsLoaded")})},{passive:!0}),document.addEventListener("onJetCustomerLoaded",e=>{this.companySubs$=this.sharedDataCommom.currentCompany$.subscribe(n=>{this.breadcrumbs=[];let r=e.detail.value;this.breadcrumbs.push({href:"/",name:"Home"},{href:"/customer",name:"\xc1rea do Cliente"},{href:r.urlFriendly,name:r.name}),this.snippet.snippetBreadCrumb(this.urlStore,this.breadcrumbs,this.dataUseJsonldScript),this.commomService.finishLoadComponent("onJetBreadcrumbsLoaded")})},{passive:!0}),document.addEventListener("onJetDetailProductsLoaded",e=>{this.companySubs$=this.sharedDataCommom.currentCompany$.subscribe(n=>{this.breadcrumbs=[],this.sharedDataDetail.currentDetail$.subscribe(r=>{let o=r.categories||[];if(o.length>0){this.breadcrumbs.push({href:"/",name:"Home",hasLink:!0,includeInSchema:!0}
3);let s=o.find(u=>u.default);if(s){let u=o.find(v=>v.level===s.level.substring(0,2));if(u?.active&&this.breadcrumbs.push({href:u.urlFriendly,name:u.name,hasLink:u.visible,includeInSchema:u.visible}),s.level.length>2){let v=o.find(w=>w.level===s.level.substring(0,4));v?.active&&this.breadcrumbs.push({href:v.urlFriendly,name:v.name,hasLink:v.visible,includeInSchema:v.visible})}if(s.level.length>4){let v=o.find(w=>w.level===s.level.substring(0,6));v?.active&&this.breadcrumbs.push({href:v.urlFriendly,name:v.name,hasLink:v.visible,includeInSchema:v.visible})}}this.breadcrumbs.push({href:r.urlFriendly,name:r.nameWithoutHtml,isNoTranslate:!0,hasLink:!1,includeInSchema:!0}),this.snippet.snippetBreadCrumb(this.urlStore,this.breadcrumbs,this.dataUseJsonldScript),this.commomService.finishLoadComponent("onJetBreadcrumbsLoaded")}})})},{passive:!0})}ngOnDestroy(){this.companySubs$.unsubscribe(),this.categoriasSubs$.unsubscribe()}addBreadcrumbCategory(e){e?.active&&this.breadcrumbs.push({href:e.urlFriendly,name:e.name,hasLink:e.visible,includeInSchema:e.visible})}static#e=this.\u0275fac=function(n){return new(n||t)($(yn),$(Cm),$(qt),$(Hp))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-breadcrumbs"]],inputs:{dataClassContainer:["data-class-container","dataClassContainer"],dataUseJsonldScript:["data-use-jsonld","dataUseJsonldScript"]},decls:4,vars:2,consts:[[1,"jet-breadcrumbs"],[3,"className"],[1,"ui","breadcrumb"],[4,"ngFor","ngForOf"],[3,"href","title",4,"ngIf"],[4,"ngIf"],["class","divider",4,"ngIf"],[3,"href","title"],[3,"ngClass"],[1,"divider"]],template:function(n,r){1&n&&(a(0,"div",0)(1,"div",1)(2,"ul",2),C(3,kL,5,4,"li",3),l()()()),2&n&&(c(1),d("className",r.dataClassContainer),c(2),d("ngForOf",r.breadcrumbs))},dependencies:[ui,ei,en],encapsulation:2})}return t})();function FL(t,i){1&t&&B(0,"span",5)}function AL(t,i){1&t&&B(0,"span",6)}function NL(t,i){if(1&t){const e=ve();a(0,"div",1)(1,"div",2),J("click",function(){M(e);const r=_();return L(r.addRemoveWishList(r.product))}),C(2,FL,1,0,"span",3),C(3,AL,1,0,"span",4),l()()}if(2&t){const e=_();d("ngClass",e.showPriceB2C?"":"hideme"),c(2),d("ngIf",!e.product.isOnWishList),c(1),d("ngIf",e.product.isOnWishList)}}function OL(t,i){if(1&t&&(a(0,"div",5)(1,"span"),h(2),l()()),2&t){const e=_(2);c(2),de(e.dataTextAdd)}}function RL(t,i){if(1&t&&(a(0,"div",6)(1,"span"),h(2),l()()),2&t){const e=_(2);c(2),de(e.dataTextRemove)}}function BL(t,i){if(1&t){const e=ve();a(0,"div",1)(1,"div",2),J("click",function(){M(e);const r=_();return L(r.addRemoveWishList(r.detail))}),C(2,OL,3,1,"div",3),C(3,RL,3,1,"div",4),l()()}if(2&t){const e=_();d("ngClass",e.showPriceB2C?"":"hideme"),c(2),d("ngIf",!e.detail.isOnWishList),c(1),d("ngIf",e.detail.isOnWishList)}}let fy=(()=>{class t{constructor(e,n,r,o){this.sharedDataCommom=e,this.customerService=n,this.commomService=r,this.sharedDataDetailService=o,this.dataTextAdd="ADICIONAR \xc0 LISTA DE DESEJOS",this.dataTextRemove="REMOVER DA LISTA DE DESEJOS",this.dataIsCard="false",this.isLoggedB2B=!1}ngOnInit(){this.sharedDataCommom.currentCompany$.subscribe(e=>{null!=e&&(this.company=e,this.sharedDataCommom.authorizedB2B$.subscribe(n=>{null!=n&&(this.isLoggedB2B=n,this.showPriceB2C=!!this.isLoggedB2B||this.company.showPriceB2C,this.commomService.finishLoadComponent("onJetWishlistAddLoaded"))}))}),document.addEventListener("onJetWishlistCountLoaded",e=>{"true"==this.dataIsCard?this.isOnWishlist(this.product):this.sharedDataDetailService.currentDetail$.subscribe(n=>{null!=n&&(this.detail=n,this.isOnWishlist(this.detail))})})}addRemoveWishList(e){this.customerService.isLogged().subscribe(n=>{n.data.authenticated?this.customerService.isLoggedB2B().subscribe(r=>{var o=r,s=!r;(e.isOnWishList?this.customerService.removeItemToWishList(this.getWishlistId(e)):this.customerService.postItemToWishList(o,s,e.idProduct)).subscribe(v=>{this.commomService.finishLoadComponent(e.isOnWishList?"onJetRemovedToWishList":"onJetAddedToWishList"),this.commomService.displayMessageUser("success","Produto "+(e.isOnWishList?"removido da":"adicionado \xe0")+" lista de desejos."),e.isOnWishList=!e.isOnWishList,this.commomService.finishLoadComponent("onJetPushDataLayerEvent",{detail:{type:e.isOnWishList?"add_to_wishlist":"remove_to_wishlist",products:[e],params:{value:e.price}}})},v=>{this.commomService.displayMessageUser("error","N\xe3o foi poss\xedvel "+(e.isOnWishList?"remover o produto da":"adicionar o produto na")+" lista de desejos.")})}):document.location.href="/customer/login?idProductWishlist="+e.idProduct+"&returnUrl="+document.location.href})}isOnWishlist(e){var n=sessionStorage.getItem("wishlist");if(n){var r=JSON.parse(n);e.isOnWishList=null!=r.find(o=>o.idProduct==e.idProduct)}}getWishlistId(e){var n=sessionStorage.getItem("wishlist");if(n)return JSON.parse(n).find(o=>o.idProduct==e.idProduct)?.idWishlistItem}static#e=this.\u0275fac=function(n){return new(n||t)($(yn),$(Ci),$(qt),$(Cm))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-wishlist-add"],["jet-wishlist-add-detail"]],inputs:{product:"product",detail:"detail",dataTextAdd:["data-text-add","dataTextAdd"],dataTextRemove:["data-text-remove","dataTextRemove"],dataIsCard:["data-is-card","dataIsCard"]},decls:2,vars:2,consts:[["class","jet-wishlist-add",3,"ngClass",4,"ngIf"],[1,"jet-wishlist-add",3,"ngClass"],[1,"product-wishlist",3,"click"],["class","add-wish",4,"ngIf"],["class","remove-wish",4,"ngIf"],[1,"add-wish"],[1,"remove-wish"]],template:function(n,r){1&n&&(C(0,NL,4,3,"div",0),C(1,BL,4,3,"div",0)),2&n&&(d("ngIf",r.product&&!r.product.hasConjunct&&!r.isLoggedB2B&&"true"==r.dataIsCard),c(1),d("ngIf",r.detail&&!r.detail.hasConjunct&&!r.isLoggedB2B&&"false"==r.dataIsCard))},dependencies:[ui,en]})}return t})();function jL(t,i){if(1&t&&(a(0,"div",44),h(1),l()),2&t){const e=_(2);c(1),dt(" ",e.automaticDiscount()," ")}}
3function VL(t,i){if(1&t&&(a(0,"div",47)(1,"span",48),h(2),l(),B(3,"img",49),l()),2&t){const e=_().$implicit;c(2),de(e.name),c(1),Ue("alt",e.name),d("src",e.image,fe)("decode",!0)}}function HL(t,i){if(1&t&&(ht(0),C(1,VL,4,4,"div",46),mt()),2&t){const e=i.$implicit;c(1),d("ngIf",null!=e&&"normal"!=e.name.toLowerCase())}}function zL(t,i){if(1&t&&(ht(0),C(1,HL,2,1,"ng-container",45),mt()),2&t){const e=_(2);c(1),d("ngForOf",e.produto.sealsStatus)}}function qL(t,i){if(1&t&&(ht(0),a(1,"div",50),B(2,"img",51),l(),mt()),2&t){const e=_(2);c(2),d("src",e.produto.progressiveDiscount&&e.produto.progressiveDiscount.image,fe)("decode",!0)}}function $L(t,i){if(1&t&&(ht(0),a(1,"div",52),B(2,"img",49),l(),mt()),2&t){const e=_(2);c(2),Ue("alt",e.produto.takeXPayY.nameTakeXPayY),d("src",e.produto.takeXPayY&&e.produto.takeXPayY.image,fe)("decode",!0)}}function UL(t,i){if(1&t&&(ht(0),a(1,"div",53),B(2,"img",49),l(),mt()),2&t){const e=_(2);c(2),Ue("alt",e.produto.flashOfferCampaignName),d("src",e.produto.flashOfferCampaignFlag,fe)("decode",!0)}}function GL(t,i){if(1&t&&(a(0,"div",41)(1,"div",42),C(2,jL,2,1,"div",43),C(3,zL,2,1,"ng-container",25),C(4,qL,3,2,"ng-container",25),C(5,$L,3,3,"ng-container",25),C(6,UL,3,3,"ng-container",25),l()()),2&t){const e=_();c(2),d("ngIf",null!=e.produto.pricePromotion&&e.produto.pricePromotion>0&&e.produto.pricePromotion<e.produto.price&&e.automaticDiscount()&&e.showPriceB2C),c(1),d("ngIf",null!=e.produto.sealsStatus&&e.produto.sealsStatus.length>0),c(1),d("ngIf",e.produto.progressiveDiscount&&e.produto.progressiveDiscount.image),c(1),d("ngIf",e.produto.takeXPayY&&e.produto.takeXPayY.image),c(1),d("ngIf",e.showFlagFlashOffer)}}function WL(t,i){if(1&t){const e=ve();a(0,"div",54)(1,"img",55),J("error",function(r){return M(e),L(_().ImageError(r))}),l()()}if(2&t){const e=_();c(1),jf("src","",e.isMobile&&""!=e.dataTextPreImageMobile?e.dataTextPreImageMobile:e.dataTextPreImage,"",e.produto.imageHome,"",e.dataTextPostImage,"",fe),Ue("alt",e.produto.alternativeTextImage?e.produto.alternativeTextImage:e.produto.name),d("decode",!0)("loading",0===e.dataIndex?"eager":e.dataIndex>2?"lazy":"auto")("fetchPriority",e.dataIndex>=1?"low":"high")}}function JL(t,i){if(1&t){const e=ve();a(0,"div",56)(1,"img",57),J("error",function(r){return M(e),L(_().ImageError(r))}),l()()}if(2&t){const e=_();c(1),jf("src","",e.isMobile&&""!=e.dataTextPreImageMobile?e.dataTextPreImageMobile:e.dataTextPreImage,"",e.produto.alternativeImage,"",e.dataTextPostImage,"",fe),Ue("alt",e.produto.alternativeTextAlternativeImage?e.produto.alternativeTextAlternativeImage:e.produto.name),d("decode",!0)}}function ZL(t,i){1&t&&B(0,"jet-wishlist-add",58),2&t&&d("product",_().produto)}function QL(t,i){if(1&t&&(ht(0),a(1,"a",6)(2,"span",61),h(3),l()(),mt()),2&t){const e=_(2);c(1),Ue("href",e.produto.mainCategoryUrlFriendly,fe),Ue("title",e.produto.mainCategoryName),c(2),de(e.produto.mainCategoryName)}}function YL(t,i){if(1&t&&(a(0,"div",59)(1,"div",60),C(2,QL,4,3,"ng-container",25),l()()),2&t){const e=_();c(2),d("ngIf",e.produto.mainCategoryUrlFriendly)}}function KL(t,i){if(1&t&&B(0,"img",68),2&t){const e=_(3);Ue("alt",e.produto.brand.name),d("src",e.produto.brand.logo,fe)("decode",!0)}}function XL(t,i){if(1&t&&(ht(0),a(1,"a",6),C(2,KL,1,3,"img",66),a(3,"span",67),h(4),l()(),mt()),2&t){const e=_(2);c(1),Ue("href",e.produto.brand.urlFriendly,fe),Ue("title",e.produto.brand.name),c(1),d("ngIf",e.produto.brand.logo),c(2),de(e.produto.brand.name)}}function ek(t,i){if(1&t&&B(0,"img",68),2&t){const e=_(3);Ue("alt",e.produto.brand.name),d("src",e.produto.brand.logo,fe)("decode",!0)}}function tk(t,i){if(1&t&&(C(0,ek,1,3,"img",66),a(1,"span",67),h(2),l()),2&t){const e=_(2);d("ngIf",e.produto.brand.logo),c(2),de(e.produto.brand.name)}}function nk(t,i){if(1&t&&(a(0,"div",62)(1,"div",63),C(2,XL,5,4,"ng-container",64),C(3,tk,3,2,"ng-template",null,65,_i),l()()),2&t){const e=Wt(4),n=_();c(2),d("ngIf",n.produto.brand.urlFriendly)("ngIfElse",e)}}function ik(t,i){if(1&t&&B(0,"img",73),2&t){const e=_(3);Ue("alt",e.produto.partner.name),d("src",e.produto.partner.logo,fe)("decode",!0)}}function rk(t,i){if(1&t&&(ht(0),a(1,"a",6),C(2,ik,1,3,"img",72),a(3,"span",67),h(4),l()(),mt()),2&t){const e=_(2);c(1),Ue("href",e.produto.partner.urlFriendly,fe),Ue("title",e.produto.partner.name),c(1),d("ngIf",e.produto.partner.logo),c(2),de(e.produto.partner.name)}
3}function ok(t,i){if(1&t&&B(0,"img",73),2&t){const e=_(3);Ue("alt",e.produto.partner.name),d("src",e.produto.partner.logo,fe)("decode",!0)}}function sk(t,i){if(1&t&&(C(0,ok,1,3,"img",72),a(1,"span",74),h(2),l()),2&t){const e=_(2);d("ngIf",e.produto.partner.logo),c(2),de(e.produto.partner.name)}}function ak(t,i){if(1&t&&(a(0,"div",69)(1,"div",70),C(2,rk,5,4,"ng-container",64),C(3,sk,3,2,"ng-template",null,71,_i),l()()),2&t){const e=Wt(4),n=_();c(2),d("ngIf",n.produto.partner.urlFriendly)("ngIfElse",e)}}function lk(t,i){if(1&t&&(a(0,"div",75)(1,"span"),h(2),l()()),2&t){const e=_();c(2),de(e.produto.code)}}const ck=function(t){return{active:t}};function dk(t,i){if(1&t&&B(0,"span",76),2&t){const e=i.index,n=_();d("ngClass",Oe(1,ck,n.produto.rate>=e+1))}}function uk(t,i){if(1&t&&(a(0,"span",82),h(1),l()),2&t){const e=_(2);c(1),de(e.automaticDiscountRecurrency())}}function hk(t,i){if(1&t&&(a(0,"div",77)(1,"span",78),h(2," Comprando na assinatura "),l(),a(3,"div",79)(4,"span",80),h(5),l(),C(6,uk,2,1,"span",81),l()()),2&t){const e=_();c(5),dt("",e.commomService.priceMask(void 0===e.sku?e.produto.pricePromotionRecurrent:e.sku.pricePromotionCA)," "),c(1),d("ngIf",e.automaticDiscountRecurrency())}}function mk(t,i){if(1&t&&(ht(0),a(1,"div",83),B(2,"div",84),a(3,"span",85),h(4),l()(),mt()),2&t){const e=_();c(2),d("innerHTML",e.calcPaymentDiscount(void 0===e.sku?e.produto.pricePromotion>0&&e.produto.pricePromotion<e.produto.price?e.produto.pricePromotion:e.produto.price:e.sku.pricePromotion>0?e.sku.pricePromotion:e.sku.price),ce),c(2),dt("com ",e.higherDiscount,"% de desconto")}}function fk(t,i){if(1&t&&(a(0,"span"),h(1),l()),2&t){const e=_();c(1),dt("",e.commomService.priceMask(void 0===e.sku?e.produto.price:e.sku.price)," ")}}function pk(t,i){if(1&t&&(a(0,"span",87),h(1," Valor final com impostos: "),a(2,"span",88),h(3),l()()),2&t){const e=_(2);c(3),dt(" ",e.commomService.priceMask((null==e.produto.skUs||null==e.produto.skUs[0]||null==e.produto.skUs[0].taxes?null:e.produto.skUs[0].taxes.priceWithTaxes)>0?e.produto.skUs[0].taxes.priceWithTaxes:e.produto.taxes.priceWithTaxes)," ")}}function gk(t,i){if(1&t&&(ht(0),C(1,pk,4,1,"span",86),mt()),2&t){const e=_();c(1),d("ngIf",(null==e.produto.skUs||null==e.produto.skUs[0]||null==e.produto.skUs[0].taxes?null:e.produto.skUs[0].taxes.priceWithTaxes)>0||(null==e.produto.taxes?null:e.produto.taxes.priceWithTaxes)>0)}}function vk(t,i){if(1&t&&(a(0,"span",89)(1,"span",90),h(2),l(),a(3,"span",91),h(4),l(),a(5,"span",92),h(6),l()()),2&t){const e=_();c(2),dt("",e.sku&&e.sku.installmentMax&&e.sku.installmentMax.maxNumber>0?e.sku.installmentMax.maxNumber:e.produto.installmentMax.maxNumber,"x de\xa0"),c(2),de(e.commomService.priceMask(e.sku&&e.sku.installmentMax&&e.sku.installmentMax.value>0?e.sku.installmentMax.value:e.produto.installmentMax.value)),c(2),dt("(",e.sku&&e.sku.installmentMax&&e.sku.installmentMax.description?e.sku.installmentMax.description:e.produto.installmentMax.description,")")}}function _k(t,i){if(1&t&&(a(0,"div",93)(1,"span",94),h(2),l()()),2&t){const e=_();c(2),de(e.produto.descriptionAvailabilityStatus)}}function Ck(t,i){if(1&t){const e=ve();a(0,"img",106),J("click",function(r){M(e);const o=_().$implicit,s=_(2).$implicit;return L(_(2).changeVariation(s.idReference,o.idVariation,r.target))}),l()}if(2&t){const e=_().$implicit;Ue("alt",e.name),d("src",e.image,fe)("decode",!0)}}function yk(t,i){if(1&t){const e=ve();a(0,"span",107),J("click",function(r){M(e);const o=_().$implicit,s=_(2).$implicit;return L(_(2).changeVariation(s.idReference,o.idVariation,r.target))}),l()}2&t&&zl("background-color",_().$implicit.color)}function bk(t,i){if(1&t){const e=ve();a(0,"span",108),J("click",function(r){M(e);const o=_().$implicit,s=_(2).$implicit;return L(_(2).changeVariation(s.idReference,o.idVariation,r.target))}),h(1),l()}if(2&t){const e=_().$implicit;c(1),de(e.name)}}const Sk=function(t,i){return{active:t,sold:i}};function wk(t,i){if(1&t&&(a(0,"div",102),C(1,Ck,1,3,"img",103),C(2,yk,1,2,"span",104),C(3,bk,2,1,"span",105),l()),2&t){const e=i.$implicit,n=_(2),r=n.$implicit,o=n.index,s=_(2);d("ngClass",Us(6,Sk,s.verifySelectVariation(r.idReference,e.idVariation),"true"==s.dataShowSoldClassCard&&s.setSoldClass(r.idReference,e.idVariation,o))),ii("data-id-variation",e.idVariation)("data-reference",r.idReference),c(1),d("ngIf",e.image),c(1),d("ngIf",!e.image&&e.color),c(1),d("ngIf",!e.image&&!e.color)}}function Ik(t,i){if(1&t&&(ht(0),C(1,wk,4,9,"div",101),mt()),2&t){const e=_().$implicit;c(1),d("ngForOf",e.variations)}}function xk(t,i){if(1&t&&(a(0,"option",112),h(1),l()),2&t){const e=i.$implicit,n=_(2),r=n.$implicit,o=n.index,s=_(2);Ue("value",e.idVariation),ii("data-id-variation",e.idVariation)("data-reference",r.idReference)("disabled",!("true"!=s.dataShowSoldClassCard||!s.setSoldClass(r.idReference,e.idVariation,o))||null),
3c(1),de(e.name)}}function Dk(t,i){if(1&t){const e=ve();a(0,"div",109)(1,"select",110),J("change",function(r){M(e);const o=_().$implicit;return L(_(2).changeVariation(o.idReference,r.target.value,r.target.selectedOptions[0]))}),C(2,xk,2,5,"option",111),l()()}if(2&t){const e=_().$implicit,n=_(2);c(1),d("ngModel",n.getSelectedVariationId(e.idReference)),c(1),d("ngForOf",e.variations)}}function Pk(t,i){if(1&t&&(a(0,"div",98)(1,"span",99),h(2),l(),C(3,Ik,2,1,"ng-container",64),C(4,Dk,3,2,"ng-template",null,100,_i),l()),2&t){const e=i.$implicit,n=Wt(5),r=_(2);c(2),de(e.name),c(1),d("ngIf","true"!=r.dataShowVariationDropdown)("ngIfElse",n)}}function Tk(t,i){if(1&t&&(a(0,"div",95)(1,"div",96),C(2,Pk,6,3,"div",97),l()()),2&t){const e=_();c(2),d("ngForOf",e.produto.availableReferences)}}function Ek(t,i){if(1&t&&(a(0,"div",113),h(1),l()),2&t){const e=_();let n;c(1),dt(" ",null!==(n=e.produto.descriptionDetailSummary)&&void 0!==n?n:""," ")}}function Lk(t,i){if(1&t){const e=ve();a(0,"div",116)(1,"button",117),J("click",function(){return M(e),L(_(2).quantityMinus())}),h(2,"-"),l(),a(3,"input",118),J("keydown",function(r){return M(e),L(_(2).inputKeyDownQuantity(r))})("blur",function(r){return M(e),L(_(2).leaveQuantity(r.target.value))})("ngModelChange",function(r){return M(e),L(_(2).quantity=r)}),l(),a(4,"button",119),J("click",function(){return M(e),L(_(2).quantityPlus())}),h(5,"+"),l()()}if(2&t){const e=_(2);c(3),d("ngModel",e.quantity)}}function kk(t,i){1&t&&(a(0,"option",122),h(1,"00"),l())}function Mk(t,i){if(1&t&&(a(0,"option",112),h(1),l()),2&t){const e=i.index;Ue("value",e+1),c(1),dt(" ",e+1<10?"0"+(e+1):e+1," ")}}const py=function(){return[]};function Fk(t,i){if(1&t){const e=ve();a(0,"div",116)(1,"select",120),J("change",function(r){return M(e),L(_(2).leaveQuantity(r.target.value))})("ngModelChange",function(r){return M(e),L(_(2).quantity=r)}),C(2,kk,2,0,"option",121),C(3,Mk,2,2,"option",111),Wi(4,"slice"),l()()}if(2&t){const e=_(2);c(1),d("ngModel",e.quantity),c(1),d("ngIf",void 0===e.sku),c(1),d("ngForOf",vd(4,3,Q1(6,py).constructor(5),1))}}function Ak(t,i){if(1&t&&(a(0,"div",114),C(1,Lk,6,1,"div",115),C(2,Fk,5,7,"div",115),l()),2&t){const e=_();c(1),d("ngIf","true"==e.dataShowQuantity&&"dropdown"!=e.dataTypeQuantity),c(1),d("ngIf","true"==e.dataShowQuantity&&"dropdown"==e.dataTypeQuantity)}}const av=function(t,i){return{"jet-btn-loading":t,"block-action":i}};function Nk(t,i){if(1&t){const e=ve();a(0,"button",123),J("click",function(){return M(e),L(_().verifyQuantityCart())}),h(1),l()}if(2&t){const e=_();Ue("aria-label",e.dataBuyButtonText),Ue("title",e.produto.name),d("ngClass",Us(5,av,e.loading,e.isProcessing))("className",e.dataClassButton),c(1),dt(" ",e.dataBuyButtonText," ")}}function Ok(t,i){if(1&t&&(a(0,"a",124),h(1),l()),2&t){const e=_();Ue("href",e.urlStore,fe),Ue("title",e.produto.name),d("ngClass",Us(5,av,e.loading,e.isProcessing))("className",e.dataClassButton),c(1),dt(" ",e.dataBuyButtonText," ")}}function Rk(t,i){if(1&t){const e=ve();a(0,"button",123),J("click",function(){return M(e),L(_().buyProduct())}),h(1),l()}if(2&t){const e=_();Ue("aria-label",e.dataTextRecurrent),Ue("title",e.produto.name),d("ngClass",Us(5,av,e.loading,e.isProcessing))("className",e.dataClassButtonRecurrency),c(1),dt(" ",e.dataTextRecurrent," ")}}function Bk(t,i){if(1&t){const e=ve();a(0,"span",125),J("click",function(){return M(e),L(_().openAlertMe())}),h(1),l()}if(2&t){const e=_();c(1),dt(" ",e.dataSoldButtonText," ")}}function jk(t,i){if(1&t&&(a(0,"a",126),h(1),l()),2&t){const e=_();Ue("href",e.urlStore,fe),c(1),dt(" ",e.dataSoldButtonText," ")}}const Vk=function(t){return{"has-alternate":t}};let gy=(()=>{class t{constructor(e,n,r,o,s){this.commomService=e,this.sharedDataCommom=n,this.checkoutService=r,this.productService=o,this.customerService=s,this.isMobile=!1,this.isProcessing=!1,this.dataIndex=0,this.dataBuyButtonText="Adicionar ao Carrinho",this.dataGiftButtonText="Presentear",this.dataSoldButtonText="Esgotado",this.dataTextRecurrent="Assinar Produto",this.dataClassButton="",this.dataClassButtonRecurrency="",this.dataShowVariations="true",this.dataShowVariationDropdown="false",this.dataShowQuantity="false",this.dataTypeQuantity="button",this.dataTextPercent="{percent} OFF",this.dataView="grid",this.dataShowWishlist="true",this.dataShowPriceNotLoggedB2B="true",this.dataShowPriceNotLoggedB2C="true",this.dataShowAlternativeImageMobile="true",this.dataShowCategory="false",this.dataTextPreImage="",this.dataTextPreImageMobile="",this.dataTextPostImage="",this.dataShowProductCode="false",this.dataShowSoldClassCard="false",this.selectedVariation=[],this.sku=void 0,this.stock=void 0,this.loading=!1,this.skuPadrao=void 0,this.json=void 0,this.references=void 0,this.quantity=1,this.flagE
3xhausted=void 0,this.urlStore="",this.isLoggedB2B=!1,this.isLoggedB2C=!1,this.lazyLoad="IntersectionObserver"in window&&!window.navigator.userAgent.includes("JET-TRON"),this.defaultImage="/assets/loading.svg",this.showPriceWithDiscount=!1,this.descriptionHigherDiscount="",this.higherDiscount=0,this.idEventList=Number(window.location.pathname.split("/")[1])||Number(sessionStorage.getItem("idEventList")),this.showFlagFlashOffer=!1,this.ListImages=[],this.national=!0,this.commomService=e,this.productService=o,this.isMobile=this.commomService.isDevice(),this.commomService.isProcessing$.subscribe(u=>{this.isProcessing=u})}ngOnInit(){this.buyButtonText=this.dataBuyButtonText,this.idEventList>0&&(this.dataBuyButtonText=this.dataGiftButtonText),this.sharedDataCommom.international$.subscribe(e=>{if(e){let n=e.country;null!=n&&"BR"!=n.nameGeolocalization&&(this.national=!1)}}),this.sharedDataCommom.currentCompany$.subscribe(e=>{null!=e&&(this.company=e,this.urlStore=this.produto.urlFriendly,this.idEventList>0?this.dataShowVariations="true":(!e.showSkuFacilitator||this.produto.minimumQuantityPurchaseLimit>1&&"false"==this.dataShowQuantity)&&(this.dataShowVariations="false"),this.sharedDataCommom.authorizedB2B$.subscribe(n=>{null!=n&&(this.isLoggedB2B=n),this.applyProductInstallment(),this.showPriceWithDiscount=e.showPriceWithDiscount,this.updateDiscountPrice()}),this.sharedDataCommom.userLogged$.subscribe(n=>{n&&n.data.authenticated&&(this.isLoggedB2C=!0)}),this.commomService.finishLoadComponent("onJetCardLoaded",{detail:this.produto}))}),this.flagExhausted=this.produto.flagExhausted,this.produto.rate=-Math.round(-this.produto.rate),this.stock=this.produto.stock<0?0:this.produto.stock,this.dataClassButton=""!==this.dataClassButton?"buy-button "+this.dataClassButton:"buy-button",this.dataClassButtonRecurrency=""!==this.dataClassButtonRecurrency?"buy-button-recurrency "+this.dataClassButtonRecurrency:"buy-button-recurrency",this.json=this.getTreeReference(this.produto.availableReferences,this.produto.skUs,1),this.references=this.produto.availableReferences,this.dataView+=0==this.stock||this.produto.flagExhausted?" sold":this.produto.hasConjunct?" conjunct":"",null!=this.produto.skUs&&this.produto.skUs.length>0&&(null!=this.skuPadrao?this.selectStandardVariation(this.skuPadrao,!0):void 0===this.produto.skUs.find(e=>e.stock>0)?this.selectStandardVariation(this.produto.skUs[0],!0):this.selectStandardVariation(this.produto.skUs.find(e=>e.stock>0),!0)),"true"!=this.dataShowAlternativeImageMobile&&this.isMobile&&(this.produto.alternativeImage=null),document.addEventListener("onProductRemoveFromCart",e=>{e.detail.isEmpty&&(sessionStorage.removeItem("idEventList"),this.commomService.finishLoadComponent("onSessionIdEventListRemoved"),this.dataBuyButtonText=this.buyButtonText)},{passive:!0}),this.produto.flashOfferCampaignStatus&&Date.parse(this.produto.flashOfferEndDateCampaign)>=(new Date).getDate()&&this.produto.flashOfferCampaignFlag&&(this.show
3FlagFlashOffer=!0)}updateDiscountPrice(){if(this.showPriceWithDiscount){const e=void 0===this.sku?this.produto.pricePromotion>0&&this.produto.pricePromotion<this.produto.price?this.produto.pricePromotion:this.produto.price:this.sku.pricePromotion>0?this.sku.pricePromotion:this.sku.price;this.produto?.discountPaymentFormCampaign&&e>=this.produto.discountPaymentFormCampaign.minimalValue?(this.higherDiscount=this.produto.discountPaymentFormCampaign.discountValue,this.descriptionHigherDiscount=this.produto.discountPaymentFormCampaign.descriptionPaymentForms):(this.higherDiscount=this.commomService.getHigherDiscountPaymentMethods(this.company,e,this.isLoggedB2B),this.descriptionHigherDiscount=this.commomService.getDescriptionPaymentMethods(this.company,this.higherDiscount,e),(""==this.descriptionHigherDiscount||this.higherDiscount<=0)&&(this.showPriceWithDiscount=!1))}}applyProductInstallment(){let e=void 0!==this.sku,n=e?this.sku.pricePromotion>0?this.sku.pricePromotion:this.sku.price:this.produto.pricePromotion>0&&this.produto.pricePromotion<this.produto.price?this.produto.pricePromotion:this.produto.price,r=this.company.highestInstallmentNumberWithoutInterestB2C,o=this.company.minimalInstallmentValueB2C;if(this.isLoggedB2B&&(r=this.company.highestInstallmentNumberWithoutInterestB2B,o=this.company.minimalInstallmentValueB2B),r&&r>1){let s={};if(o&&o>0){let u=Math.trunc(n/o);s.maxNumber=u>r?r:u>1?u:1}else s.maxNumber=r;s.value=s.maxNumber>1?n/s.maxNumber:n,s.description="sem juros",e?this.sku.installmentMax=s:this.produto.installmentMax=s}}changeVariation(e,n,r){n=Number(n);var o=this.selectedVariation.findIndex(s=>s.idReference==e);o>-1?this.selectedVariation[o].idVariation=n:this.selectedVariation.push({idReference:e,idVariation:n}),this.selectedVariation.length==this.produto.skUs[0].variations.length?this.verifySku():this.getOneSku(n),this.quantity=1,this.loadMainAndSecondaryImages(),this.commomService.pushSelectItemEventGTM(this.produto.name,r.textContent)}convertFromReference(e){return{idReference:e.idReference,name:e.name,ordinationOfReferences:e.ordinationOfReferences,referenceType:e.referenceType,variations:[]}}convertFromVariation(e){return{idVariation:e.idVariation,name:e.name,image:e.image,color:e.color,displayOrder:e.displayOrder}}verifySku(){var n=!1;this.produto.skUs.forEach(r=>{var o=0;this.selectedVariation.forEach(s=>{r.variations.findIndex(v=>v.idVariation===s.idVariation)>-1&&o++}),o===this.selectedVariation.length&&(this.sku=r,n=!0)}),n?(this.stock=this.sku.stock||0,this.selectStandardVariation(this.sku)):this.stock=0}getTreeReference(e,n,r,o){var s=void 0;if(null!=e&&null!=n){var u=e.filter(v=>v.ordinationOfReferences==r)[0];null!=u&&(s=this.convertFromReference(u),u.variations.length>0&&(s.variations=[],u.variations.forEach(w=>{var P=void 0;if(1==r)o=[],P=n.filter(ke=>ke.variations.filter(je=>je.idVariation==w.idVariation).length>0);else if(r>1){o=o.filter(ke=>ke.ordem<r),P=n.filter(ke=>ke.variations.filter(je=>je.idVariation==w.idVariation).length>0);for(var F=r-1;F>0;){var R=o.filter(ke=>ke.ordem==F)[0];null!=R&&(P=P.filter(ke=>ke.variations.filter(je=>je.idVariation==R.idVariation).length>0)),F-=1}}if((P=P.filter(ke=>1==ke.visible)).length>0){var V=this.convertFromVariation(w);if(null!=o&&o.length>0){let ke=1;for(;ke<r;){var ne=o.filter(je=>je.ordem==ke)[0];null!=ne&&(V.idVariationFather+=(null!=V.idVariationFather||""!=V.idVariationFather?"":"-")+ne.idVariation.toString()),ke++}}null!=o&&0==o.filter(ke=>ke.ordem==r).length&&o.push({ordem:r,idVariation:w.idVariation});var De=this.getTreeReference(e,n,r+1,o);null==De&&1==P.length&&(V.sku=P[0],1==P[0].standard&&P[0].stock>0&&(this.skuPadrao=P[0])),V.subTreeReference=De,s.variations.push(V)}})))}return s}getOneSku(e){const n=this.produto.skUs.find(r=>r.variations.findIndex(o=>o.idVariation===e)>-1);n&&this.selectStandardVariation(n)}selectStandardVariation(e,n=!1){let r=this.json;e.variations.forEach(o=>{this.produto.availableReferences.forEach(s=>{if(s.variations.findIndex(v=>v.idVariation==o.idVariation)>-1){n&&this.selectedVariation.push({idReference:s.idReference,idVariation:o.idVariation});let v=r.variations.findIndex(w=>w.idVariation==o.idVariation);if(v>-1&&null!=r.variations[v]&&null!=r.variations[v].subTreeReference){let w=this.references.findIndex(P=>P.idReference==r.variations[v].subTreeReference.idReference);w>-1&&(this.references[w].variations=r.variations[v].subTreeReference.variations,r=r.variations[v].subTreeReference)}else null!=r.variations[v]&&null==r.variations[v].subTreeReference&&this.selectedVariation.length==r.variations[v].sku.variations.length&&(this.sku=r.variations[v].sku,this.applyProductInstallment(),this.commomService.finishLoadComponent("onJetCloseAlertMe",{detail:{sku:this.sku}}))}})})}verifySelectVariation(e,n){return this.selectedVariation.findIndex(r=>
3r.idVariation==n&&r.idReference==e)>-1}getSelectedVariationId(e){return this.selectedVariation.find(n=>n.idReference==e)?.idVariation}buyProduct(){if(!this.isProcessing){if(this.loading=!0,this.commomService.setProcessingState(!0),this.produto.hasPersonalization||this.produto.hasConjunct)return this.idEventList>0&&(sessionStorage.setItem("idEventList-buyProduct_"+this.produto.idProduct,this.idEventList.toString()),sessionStorage.setItem("idEventList-buyProduct_"+this.produto.idProduct+"_expires",new Date((new Date).getTime()+18e5).toString())),this.loading=!1,this.commomService.setProcessingState(!1),void(window.location.href=this.urlStore);null!=this.sku||null==this.produto.availableReferences||0==this.produto.availableReferences.length?this.commomService.getValidSession(!1).subscribe(e=>{this.checkoutService.addProductToCart(this.produto.idProduct,null!=this.sku?this.sku.idSku:null,this.quantity,this.produto.productSignature).subscribe(n=>{n?(this.commomService.displayMessageUser("success","Adicionado ao Carrinho","Produto adicionado no carrinho com sucesso!"),this.produto.productSignature?this.commomService.finishLoadComponent("onProductAddedToCart",{detail:[this.produto]}):this.commomService.finishLoadComponent("onJetVerifyGiftModal",{detail:{value:this.produto,idProduct:this.produto.idProduct,idSku:this.produto?.idSku,openModal:!1}}),this.produto.quantity=Number(this.quantity),this.commomService.finishLoadComponent("onJetPushDataLayerEvent",{detail:{type:"add_to_cart",products:[this.produto],sku:this.sku?.idSku}})):this.commomService.displayMessageUser("error","N\xe3o foi poss\xedvel adicionar o produto ao carrinho"),this.loading=!1,this.commomService.setProcessingState(!1)},n=>{this.loading=!1,this.commomService.setProcessingState(!1),this.commomService.displayMessageUser("error",n.error.error)},()=>{this.idEventList>0&&sessionStorage.setItem("idEventList",this.idEventList.toString())})},e=>{this.loading=!1,this.commomService.setProcessingState(!1),this.commomService.displayMessageUser("error",e.error.error)}):(this.loading=!1,this.commomService.setProcessingState(!1),this.commomService.displayMessageUser("error","Selecione as varia\xe7\xf5es do produto para compra-lo."))}}quantityMinus(){null!=this.sku||null==this.produto.availableReferences||0==this.produto.availableReferences.length?this.quantity<=1?this.quantity=1:this.quantity-=1:this.commomService.displayMessageUser("error","Selecione primeiro as varia\xe7\xf5es")}quantityPlus(){null!=this.sku||null==this.produto.availableReferences||0==this.produto.availableReferences.length?this.quantity+=1:this.commomService.displayMessageUser("error","Selecione primeiro as varia\xe7\xf5es")}leaveQuantity(e){null!=this.sku||null==this.produto.availableReferences||0==this.produto.availableReferences.length?this.quantity=Math.round(e):(this.commomService.displayMessageUser("error","Selecione primeiro as varia\xe7\xf5es"),this.quantity=1)}inputKeyDownQuantity(e){(69==e.keyCode||188==e.keyCode||190==e.keyCode)&&e.preventDefault()}verifyQuantityCart(){null!=this.sku||null==this.produto.availableReferences||0==this.produto.availableReferences.length?this.buyProduct():(this.commomService.displayMessageUser("error","Selecione primeiro as varia\xe7\xf5es"),this.quantity=1)}openAlertMe(){this.commomService.finishLoadComponent("onJetShowAlertMe",null==this.sku?{detail:{idProduct:this.produto.idProduct,productName:this.produto.name,productImage:this.produto.imageHome}}:{detail:{idProduct:this.produto.idProduct,productName:this.produto.name,productImage:this.produto.imageHome,sku:this.sku,hasSku:!0}})}automaticDiscount(){let r,e=0,n=0;if(this.produto.productSignature?this.sku?(e=this.sku.pricePromotion>0&&this.sku.pricePromotion<this.sku.price?this.sku.pricePromotion:this.sku.price,n=this.sku.pricePromotionCA):(e=this.produto.pricePromotion>0&&this.produto.pricePromotion<this.produto.price?this.produto.pricePromotion:this.produto.price,n=this.produto.pricePromotionRecurrent):null!=this.sku&&null!=this.sku?(e=this.sku.price,n=this.sku.pricePromotion):(e=this.produto.price,n=this.produto.pricePromotion),this.showPriceWithDiscount&&(n-=n/100*this.higherDiscount),n>0){let s=Math.round((e-n)/e*100);if(s>0)return r=this.dataTextPercent.replace("{percent}",s+"%"),r}}automaticDiscountRecurrency(){let n=null==this.sku?this.produto.pricePromotion>0&&this.produto.pricePromotion<this.produto.price?this.produto.pricePromotion:this.produto.price:this.sku.pricePromotion>0&&this.sku.pricePromotion<this.sku.price?this.sku.pricePromotion:this.sku.price,o=Math.round((n-(null==this.sku?this.produto.pricePromotionRecurrent:this.sku.pricePromotionCA))/n*100);if(o>0)return"-"+o+"%"}calcPaymentDiscount(e){let n=this.commomService.roundUp(e*(this.higherDiscount/100));return`${this.commomService.priceMask(e-n)} <span class="textDiscount">no ${this.descriptionHigherDiscount}</span>`}showPrices(){return this.isLoggedB2C||this.isLoggedB2B?!(this.isLoggedB2C&&!this.isLoggedB2B)||"true"==this.dataShowPriceNotLoggedB2B:"true"==this.dataShowPriceNotLoggedB2B&&"true"==this.dataShowPriceNotLoggedB2C}ImageError(e){this.lazyLoad&&(e.target.src="./assets/no-image.png")}setSoldClass(e,n,r){if(r===this.references.length-1){const o=this.produto.availableReferences.find(s=>s.idReference===e);if(o){const s=o.variations.find(u=>u.idVariation===n);if(s&&s.sku)return 0===s.sku.stock}return this.produto.skUs.some(s=>s.variations.some(u=>u.idVariation===n&&0===s.stock))}}loadMainAndSecondaryImages(){const e=this.selectedVariation.map(s=>s.idVariation).sort(),n=(s,u)=>{if(!s||!u||s.length!==u.length)return!1;const v=[...s].sort(),w=[...u].sort();return v.every((P,F)=>P===w[F])},r=(s,u)=>{let v=s.find(w=>n(w.variationIds,u));if(v)return v;for(const w of u)if(v=s.find(P=>1===P.variationIds?.length&&P.variationIds[0]===w),v)return v;return s.find(w=>
3n(w.variationIds,[0]))},o=s=>{s&&s.mainImage?.trim()&&(this.produto.imageHome=s.mainImage,this.produto.alternativeImage=s.secondaryImage??"")};if(0===this.ListImages.length)this.productService.getProductMainSecondaryImages(this.produto.idProduct).subscribe({next:s=>{this.ListImages=s||[];const u=r(this.ListImages,e);o(u)},error:s=>{console.error("Erro ao carregar imagens principal/secund\xe1ria:",s)}});else{const s=r(this.ListImages,e);o(s)}}static#e=this.\u0275fac=function(n){return new(n||t)($(qt),$(yn),$(Ss),$(Ou),$(Ci))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-card"]],inputs:{produto:"produto",showPriceB2C:"showPriceB2C",dataIndex:["index","dataIndex"],dataClassContainer:["data-class-container","dataClassContainer"],dataClassContainerChildren:["data-class-container-children","dataClassContainerChildren"],dataClassChildren:["data-class-children","dataClassChildren"],dataBuyButtonText:["data-buy-button-text","dataBuyButtonText"],dataGiftButtonText:["data-gift-button-text","dataGiftButtonText"],dataSoldButtonText:["data-sold-button-text","dataSoldButtonText"],dataTextRecurrent:["data-text-recurrent","dataTextRecurrent"],dataClassButton:["data-class-button","dataClassButton"],dataClassButtonRecurrency:["data-class-button-recurrency","dataClassButtonRecurrency"],dataShowVariations:["data-show-variations","dataShowVariations"],dataShowVariationDropdown:["data-show-variation-dropdown","dataShowVariationDropdown"],dataShowQuantity:["data-show-quantity","dataShowQuantity"],dataTypeQuantity:["data-type-quantity","dataTypeQuantity"],dataTextPercent:["data-text-percent","dataTextPercent"],dataView:["data-view","dataView"],dataShowWishlist:["data-show-wishlist","dataShowWishlist"],dataShowPriceNotLoggedB2B:["data-show-price-not-logged-b2b","dataShowPriceNotLoggedB2B"],dataShowPriceNotLoggedB2C:["data-show-price-not-logged-b2c","dataShowPriceNotLoggedB2C"],dataShowAlternativeImageMobile:["data-show-alternative-image-mobile","dataShowAlternativeImageMobile"],dataShowCategory:["data-show-category","dataShowCategory"],dataTextPreImage:["data-text-pre-image","dataTextPreImage"],dataTextPreImageMobile:["data-text-pre-image-mobile","dataTextPreImageMobile"],dataTextPostImage:["data-text-post-image","dataTextPostImage"],dataShowProductCode:["data-show-product-code","dataShowProductCode"],dataShowSoldClassCard:["data-show-sold-class-card","dataShowSoldClassCard"]},decls:49,vars:40,consts:[[1,"jet-card",3,"ngClass"],[1,"jet-container"],[1,"content","images"],["class","content product-flag",4,"ngIf"],[1,"content","product-image"],[1,"product-image",3,"ngClass"],[3,"href","title"],["class","main-image",4,"ngIf"],["class","alternate-image",4,"ngIf"],["data-is-card","true",3,"product",4,"ngIf"],[1,"content","data"],["class","content product-category",4,"ngIf"],["class","content product-brand",4,"ngIf"],["class","content product-partner",4,"ngIf"],[1,"content","product-info"],[1,"product-info"],["class","product-code",4,"ngIf"],[1,"product-name","notranslate",3,"href","title"],[1,"product-rating"],[1,"rating"],[3,"ngClass",4,"ngFor","ngForOf"],["class","product-recurrency",4,"ngIf"],[1,"product-values",3,"ngClass"],[1,"product-price"],[1,"price"],[4,"ngIf"],[1,"old-price","notranslate"],[1,"best-price","notranslate"],["class","installment",4,"ngIf"],["class","product-availability",4,"ngIf"],["class","content product-variation",4,"ngIf"],["class","content product-description",4,"ngIf"],[1,"content","action"],["class","content quantity",4,"ngIf"],[1,"content","product-buy"],[1,"product-buy",3,"ngClass"],[3,"aria-label","title","ngClass","className","click",4,"ngIf"],[3,"href","title","ngClass","className",4,"ngIf"],["class","sold-button",3,"click",4,"ngIf"],["class","sold-button",3,"href",4,"ngIf"],["data-only-timer","true",3,"data-product"],[1,"content","product-flag"],[1,"product-flag"],["class","flag-discount",4,"ngIf"],[1,"flag-discount"],[4,"ngFor","ngForOf"],["class","flag-seal",4,"ngIf"],[1,"flag-seal"],[1,"flag-name"],["jet-image-size","","loading","lazy","fetchPriority","low",1,"flag-image",3,"src","alt","decode"],[1,"flag-progressive-discount"],["alt","Desconto Progressivo","jet-image-size","","loading","lazy","fetchPriority","low",1,"flag-image",3,"src","decode"],[1,"flag-take-x-pay-y"],[1,"flag-flash-offer"],[1,"main-image"],["jet-image-size","",3,"src","alt","decode","loading","fetchPriority","error"],[1,"alternate-image"],["jet-image-size","","loading","lazy","fetchPriority","low",3,"src","alt","decode","error"],["data-is-card","true",3,"product"],[1,"content","product-category"],[1,"product-category"],[1,"category-name"],[1,"content","product-brand"],[1,"product-brand"],[4,"ngIf","ngIfElse"],["notLinkBrand",""],["class","brand-image","jet-image-size","","loading","lazy","fetchPriority","low",3,"src","alt","decode",4,"ngIf"],[1,"brand-name"],["jet-image-size","","loading","lazy","fetchPriority","low",1,"brand-image",3,"src","alt","decode"],[1,"content","product-partner"],[1,"product-partner"],["notLinkPartner",""],["class","partner-image","jet-image-size","","loading","lazy","fetchPriority","low",3,"src","alt","decode",4,"ngIf"],["jet-image-size","","loading","lazy","fetchPriority","low",1,"partner-image",3,"src","alt","decode"],[1,"partner-name"],[1,"product-code"],[3,"ngClass"],[1,"product-recurrency"],[1,"recurrency-info"],[1,"recurrency-prices"],[1,"recurrency-discount"],["class","recurrency-percentage",4,"ngIf"],[1,"recurrency-percentage"],[1,"baseDiscount"],[1,"priceDiscount",3,"innerHTML"],[1,"descriptionDiscount"],["class","descriptionTax",4,"ngIf"],[1,"descriptionTax"],[1,"tax-value"],[1,"installment"],[1,"number-installment"],[1,"value-installment","notranslate"],[1,"description-installment"],[1,"product-availability"],[1,"description"],[1,"content","product-variation"],[1,"product-variation"],["class","reference",4,"ngFor","ngForOf"],[1,"reference"],[1,"title"],["variationDropdown",""],["class","variation",3,"ngClass",4,"ngFor","ngForOf"],[1,"variation",3,"ngClass"],["class","variation-image","jet-image-size","","loading","lazy","fetchPriority","low",3,"src","alt","decode","click",4,"ngIf"],["class","variation-color",3,"background-color","click",4,"ngIf"],["class","variation-text",3,"click",4,"ngIf"],["jet-image-size","","loading","lazy","fetchPriority","low",1,"variation-image",3,"src","alt","decode","click"],[1,"variation-color",3,"click"],[1,"variation-text",3,"click"],[1,"variation","dropdown"],[3,"ngModel","change"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"content","product-description"],[1,"content","quantity"],["class","quantity",4,"ngIf"],[1,"quantity"],[1,"minus",3,"click"],["type","tel",3,"ngModel","keydown","blur","ngModelChange"],[1,"plus",3,"click"],[3,"ngModel","change","ngModelChange"],["selected","","value","",4,"ngIf"],["selected","","value",""],[3,"aria-label","t
3itle","ngClass","className","click"],[3,"href","title","ngClass","className"],[1,"sold-button",3,"click"],[1,"sold-button",3,"href"]],template:function(n,r){1&n&&(a(0,"div",0)(1,"div",1)(2,"div",2),C(3,GL,7,5,"div",3),a(4,"div",4)(5,"div",5)(6,"a",6),C(7,WL,2,7,"div",7),C(8,JL,2,5,"div",8),l()()(),C(9,ZL,1,1,"jet-wishlist-add",9),l(),a(10,"div",10),C(11,YL,3,1,"div",11),C(12,nk,5,2,"div",12),C(13,ak,5,2,"div",13),a(14,"div",14)(15,"div",15),C(16,lk,3,1,"div",16),a(17,"a",17)(18,"h3"),h(19),l()(),a(20,"div",18)(21,"div",19),C(22,dk,1,3,"span",20),l()(),C(23,hk,7,2,"div",21),a(24,"div",22)(25,"div",23)(26,"a",6)(27,"div",24),C(28,mk,5,2,"ng-container",25),a(29,"span",26),C(30,fk,2,1,"span",25),l(),a(31,"span",27)(32,"span"),h(33),l()(),C(34,gk,2,1,"ng-container",25),C(35,vk,7,3,"span",28),l()()()(),C(36,_k,3,1,"div",29),l()(),C(37,Tk,3,1,"div",30),C(38,Ek,2,1,"div",31),l(),a(39,"div",32),C(40,Ak,3,2,"div",33),a(41,"div",34)(42,"div",35),C(43,Nk,2,8,"button",36),C(44,Ok,2,8,"a",37),C(45,Rk,2,8,"button",36),C(46,Bk,2,1,"span",38),C(47,jk,2,2,"a",39),l()()(),B(48,"jet-product-flash-offer",40),l()()),2&n&&(d("ngClass",r.dataView),ii("data-product-id",r.produto.idProduct),c(3),d("ngIf",null!=r.produto.pricePromotion&&r.produto.pricePromotion>0&&r.produto.pricePromotion<r.produto.price&&r.automaticDiscount()||r.produto.sealsStatus||r.produto.progressiveDiscount&&r.produto.progressiveDiscount.image||r.showFlagFlashOffer||r.produto.takeXPayY&&r.produto.takeXPayY.image),c(2),d("ngClass",Oe(37,Vk,r.produto.alternativeImage)),c(1),Ue("href",r.urlStore,fe),Ue("title",r.produto.alternativeTextImage?r.produto.alternativeTextImage:r.produto.name),c(1),d("ngIf",r.produto.imageHome),c(1),d("ngIf",r.produto.alternativeImage),c(1),d("ngIf",0==r.isLoggedB2B&&(!r.idEventList||0==r.idEventList)),c(2),d("ngIf",r.produto.mainCategoryName&&"true"==r.dataShowCategory),c(1),d("ngIf",r.produto.brand),c(1),d("ngIf",r.produto.partner),c(3),d("ngIf","true"==r.dataShowProductCode),c(1),Ue("href",r.urlStore,fe),Ue("title",r.produto.name),c(2),de(r.produto.name),c(3),d("ngForOf",Q1(39,py).constructor(5)),c(1),d("ngIf",r.produto.purchaseRecurring&&0==r.isLoggedB2B),c(1),d("ngClass",r.showPrices()&&r.showPriceB2C?"":"hideme"),c(2),Ue("href",r.urlStore,fe),Ue("title",r.produto.name),c(2),d("ngIf",r.showPriceWithDiscount&&!r.produto.productSignature),c(2),d("ngIf",void 0===r.sku?r.produto.pricePromotion>0&&r.produto.pricePromotion<r.produto.price:r.sku.pricePromotion>0&&r.sku.pricePromotion<r.sku.price),c(3),dt("",r.commomService.priceMask(void 0===r.sku?r.produto.pricePromotion>0&&r.produto.pricePromotion<r.produto.price?r.produto.pricePromotion:r.produto.price:r.sku.pricePromotion>0&&r.sku.pricePromotion<r.sku.price?r.sku.pricePromotion:r.sku.price)," "),c(1),d("ngIf",!r.produto.productSignature),c(1),d("ngIf",r.national&&r.produto.installmentMax&&r.produto.installmentMax.maxNumber>1&&!r.produto.productSignature),c(1),d("ngIf",r.produto.descriptionAvailabilityStatus&&""!=r.produto.descriptionAvailabilityStatus),c(1),d("ngIf",r.produto.availableReferences&&r.produto.availableReferences.length>0&&!1===r.produto.hasConjunct&&"true"==r.dataShowVariations&&(!r.produto.flagExhausted||r.company.showProductOutOfStockFiltersAndVariations)&&r.company.showPriceB2C),c(1),d("ngIf",r.produto.descriptionDetailSummary),c(2),d("ngIf",r.stock>0&&!1===r.produto.hasConjunct&&!1===r.produto.isKit&&"true"==r.dataShowVariations&&r.company.showPriceB2C&&"true"==r.dataShowQuantity&&!r.produto.flagExhausted&&(null==r.produto.unitMultiplier||r.produto.unitMultiplier<=1)),c(2),d("ngClass",r.showPriceB2C?"":"hideme"),c(1),d("ngIf",r.stock>0&&0==r.produto.flagExhausted&&"true"==r.dataShowVariations&&(r.produto.minimumQuantityPurchaseLimit>1&&"true"==r.dataShowQuantity||r.produto.minimumQuantityPurchaseLimit<=1)&&0==r.produto.productSignature&&(null==r.produto.unitMultiplier||r.produto.unitMultiplier<=1)),c(1),d("ngIf",r.stock>0&&0==r.produto.flagExhausted&&("false"==r.dataShowVariations||r.produto.unitMultiplier>1)&&0==r.produto.productSignature),c(1),d("ngIf",r.stock>
30&&0==r.produto.flagExhausted&&0==r.isLoggedB2B&&r.produto.productSignature),c(1),d("ngIf",(0==r.stock||r.produto.flagExhausted)&&"true"==r.dataShowVariations),c(1),d("ngIf",(0==r.stock||r.produto.flagExhausted)&&"false"==r.dataShowVariations),c(1),d("data-product",r.produto))},dependencies:[ui,ei,en,Ws,Js,mr,ma,fr,zh,bs,fy,rv,mp],encapsulation:2})}return t})();function Hk(t,i){if(1&t&&B(0,"jet-card",5),2&t){const e=i.$implicit,n=_(2);d("className",n.dataClassChildren)("produto",e)("showPriceB2C",n.showPriceB2C)("data-buy-button-text",n.dataBuyButtonText)("data-gift-button-text",n.dataGiftButtonText)("data-sold-button-text",n.dataSoldButtonText)("data-text-recurrent",n.dataTextRecurrent)("data-class-button",n.dataClassButton)("data-class-button-recurrency",n.dataClassButtonRecurrency)("data-show-variations",n.dataShowVariations)("data-show-variation-dropdown",n.dataShowVariationDropdown)("data-show-quantity",n.dataShowQuantity)("data-type-quantity",n.dataTypeQuantity)("data-text-percent",n.dataTextPercent)("data-show-wishlist",n.dataShowWishlist)("data-show-price-not-logged-b2b",n.dataShowPriceNotLoggedB2B)("data-show-price-not-logged-b2c",n.dataShowPriceNotLoggedB2C)("data-show-alternative-image-mobile",n.dataShowAlternativeImageMobile)("data-show-category",n.dataShowCategory)("data-text-pre-image",n.dataTextPreImage)("data-text-pre-image-mobile",n.dataTextPreImageMobile)("data-text-post-image",n.dataTextPostImage)("data-buy-b2b-button-text",n.dataBuyB2BButtonText)("data-show-product-code",n.dataShowProductCode)("data-show-sold-class-card",n.dataShowSoldClassCard)}}function zk(t,i){if(1&t&&(a(0,"div",3)(1,"div",3),C(2,Hk,1,25,"jet-card",4),l()()),2&t){const e=_();d("className",e.dataClassContainer),c(1),d("className",e.dataClassContainerChildren),c(1),d("ngForOf",e.produtos.products)}}function qk(t,i){if(1&t&&B(0,"jet-card",10),2&t){const e=i.$implicit,n=_(3);d("className",n.dataClassChildren)("produto",e)("showPriceB2C",n.showPriceB2C)("data-buy-button-text",n.dataBuyButtonText)("data-sold-button-text",n.dataSoldButtonText)("data-text-recurrent",n.dataTextRecurrent)("data-class-button",n.dataClassButton)("data-class-button-recurrency",n.dataClassButtonRecurrency)("data-show-variations",n.dataShowVariations)("data-show-variation-dropdown",n.dataShowVariationDropdown)("data-show-quantity",n.dataShowQuantity)("data-type-quantity",n.dataTypeQuantity)("data-text-percent",n.dataTextPercent)("data-show-price-not-logged-b2b",n.dataShowPriceNotLoggedB2B)("data-show-price-not-logged-b2c",n.dataShowPriceNotLoggedB2C)("data-show-category",n.dataShowCategory)("data-show-alternative-image-mobile",n.dataShowAlternativeImageMobile)("data-text-pre-image",n.dataTextPreImage)("data-text-pre-image-mobile",n.dataTextPreImageMobile)("data-text-post-image",n.dataTextPostImage)("data-buy-b2b-button-text",n.dataBuyB2BButtonText)("data-show-product-code",n.dataShowProductCode)("data-show-sold-class-card",n.dataShowSoldClassCard)}}function $k(t,i){if(1&t&&(a(0,"div",3)(1,"a",8)(2,"span"),h(3),l()(),a(4,"div",3),C(5,qk,1,23,"jet-card",9),l()()),2&t){const e=i.$implicit,n=_(2);d("className",n.dataClassContainer),c(1),Ah("group-title group-",e.idGroup,""),Ue("href",e.url,fe),Ue("title",e.name),c(2),de(e.name),c(1),d("className",n.dataClassContainerChildren+" group-"+e.idGroup),c(1),d("ngForOf",e.products)}}function Uk(t,i){if(1&t&&(a(0,"div",6),C(1,$k,6,9,"div",7),l()),2&t){const e=_();c(1),d("ngForOf",e.grupos)}}let Gk=(()=>{class t{constructor(e,n,r){this.productService=e,this.commomService=n,this.sharedDataCommom=r,this.dataType="showcase",this.dataId=void 0,this.dataQuantity=12,this.dataBuyButtonText="Adicionar ao Carrinho",this.dataGiftButtonText="Presente",this.dataSoldButtonText="Esgotado",this.dataClassButton="",this.dataShowVariations="true",this.dataShowVariationDropdown="false",this.dataShowQuantity="false",this.dataTypeQuantity="button",this.dataTextPercent="{percent} OFF",this.dataShowWishlist="true",this.dataShowPriceNotLoggedB2B="true",this.dataShowPriceNotLoggedB2C="true",this.dataShowAlternativeImageMobile="true",this.dataShowCategory="false",this.dataTextPreImage="",this.dataTextPreImageMobile="",this.dataTextPostImage="",this.dataBuyB2BButtonText="Detalhes",this.dataShowProductCode="false",this.dataShowSoldClassCard="false",this.dataTextRecurrent="Assinar Produto",this.grupos=[],this.gruposObs$=_l(this.grupos),this.groupsQuantity=0,this.receivedGroups=0,this.randomClass=`jet-showcase-${Math.floor(1e4*Math.random())}`,this.isLoggedB2B=!1,this.showPriceB2C=!0}ngOnInit(){var e=this;this.dataClassContainer=""!==this.dataClassContainer?"jet-container "+this.dataClassContainer:"jet-container",this.dataClassContainerChildren=""!==this.dataClassContainerChildren?"jet-children "+this.dataClassContainerChildren:"jet-children",this.dataClassChildren=""!==this.dataClassChildren?"jet-item "+this.dataClassChildren:"jet-item",document.addEventListener("onJetChangeCD",function(){var n=(0,Zs.Z)(function*(r){document.querySelector(".jet-showcase."+e.randomClass)?.classList.add("jet-loading-specific"),e.onElementVisible()});return function(r){return n.apply(this,arguments)}}(),{passive:!0})}ngOnDestroy(){this.subscriptionShowcase$.unsubscribe(),this.subscriptionGroup$.unsubscribe(),this.subscriptionMostSelled$.unsubscribe(),this.subscriptionAllGroups$.unsubscribe()}onElementVisible(){switch(this.sharedDataCommom.currentCompany$.subscribe(e=>{e&&(this.company=e,this.sharedDataCommom.authorizedB2B$.subscribe(n=>{null!=n&&(this.isLoggedB2B=n,this.showPriceB2C=!!this.isLoggedB2B||this.company.showPriceB2C)}))}),this.dataQuantity>60&&(this.dataQuantity=60),this.dataType){case"showcase":this.subscriptionShowcase$=this.productService.getShowcase(this.dataQuantity).subscribe(e=>{e?(this.produtos=e,this.commomService.finishLoadComponent("onJetPushDataLayerEvent",{detail:{type:"view_item_list",products:this.produtos.products,name:"Produtos em Destaque",id:"showcase"}}),document.querySelector(".jet-showcase."+this.randomClass)?.classList.remove("jet-loading-specific"),this.commomService.finishLoadComponent("onJetShowcaseLoaded"),this.subscriptionShowcase$.unsubscribe()):document.querySelector(".jet-products")?.classList.remove("jet-loading-specific")});break;case"group":this.grupos=[],this.subscriptionGroup$=this.productService.getGroupProductsShowcase(this.dataQuantity,this.dataId).subscribe(e=>{0==e.length&&(document.querySelector(".jet-showcase."+this.randomClass)?.classList.remove("jet-loading-specific"),this.grupos=[]),e.forEach(n=>{this.dataId&&n.idGroup!=this.dataId||(this.grupos.push({idGroup:n.idGroup,name:n.name,url:n.urlGroup,products:n.productShowCases}),this.produtos=n,this.commomService.finishLoadComponent("onJetPushDataLayerEvent",{detail:{type:"view_item_list",products:n.productShowCases,name:n.name,id:"group_"+n.idGroup}}),document.querySelector(".jet-showcase."+this.randomClass)?.classList.remove("jet-loading-specific"))}),this.commomService.finishLoadComponent("onJetGroupLoaded"),this.subscriptionGroup$.unsubscribe()});break;case"mostSelled":this.subscriptionMostSelled$=this.productService.getMostSelled(this.dataQuantity).subscribe(e=>{e?(this.produtos=e,this.commomService.finishLoadComponent("onJetMostSelledLoaded"),this.subscriptionMostSelled$.unsubscribe(),document.querySelector(".jet-showcase."+this.randomClass)?.classList.remove("jet-loading-specific")):document.querySelector(".jet-products")?.classList.remove("jet-loading-specific")})}}static#e=this.\u0275fac=function(n){return new(n||t)($(Ou),$(qt),$(yn))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-showcase"]],inputs:{dataType:["data-type","dataType"],dataId:["data-id","dataId"],dataQuantity:["data-quantity","dataQuantity"],dataClassContainer:["data-class-container","dataClassContainer"],dataClassContainerChildren:["data-class-container-children","dataClassContainerChildren"],dataClassChildren:["data-class-children","dataClassChildren"],dataBuyButtonText:["data-buy-button-text","dataBuyButtonText"],dataGiftButtonText:["data-gift-button-text","dataGiftButtonText"],dataSoldButtonText:["data-sold-button-text","dataSoldButtonText"],dataClassButton:["data-class-button","dataClassButton"],dataShowVariations:["data-show-variations","dataShowVariations"],dataShowVariationDropdown:["data-show-variation-dropdown","dataShowVariationDropdown"],dataShowQuantity:["data-show-quantity","dataShowQuantity"],dataTypeQuantity:["data-type-quantity","dataTypeQuantity"],dataTextPercent:["data-text-percent","dataTextPercent"],dataShowWishlist:["data-show-wishlist","dataShowWishlist"],dataShowPriceNotLoggedB2B:["data-show-price-not-logged-b2b","dataShowPriceNotLoggedB2B"],dataShowPriceNotLoggedB2C:["data-show-price-not-logged-b2c","dataShowPriceNotLoggedB2C"],dataShowAlternativeImageMobile:["data-show-alternative-image-mobile","dataShowAlternativeImageMobile"],dataShowCategory:["data-show-category","dataShowCategory"],dataTextPreImage:["data-text-pre-image","dataTextPreImage"],dataTextPreImageMobile:["data-text-pre-image-mobile","dataTextPreImageMobile"],dataTextPostImage:["data-text-post-image","dataTextPostImage"],dataBuyB2BButtonText:["data-buy-b2b-button-text","dataBuyB2BButtonText"],dataShowProductCode:["data-show-product-code","dataShowProductCode"],dataShowSoldClassCard:["data-show-sold-class-card","dataShowSoldClassCard"],dataTextRecurrent:["data-text-recurrent","dataTextRecurrent"]},decls:3,vars:2,consts:[["jetVisibilityCheck","",1,"jet-showcase",3,"elementVisible"],[3,"className",4,"ngIf"],["class","group-container",4,"ngIf"],[3,"className"],[3,"className","produto","showPriceB2C","data-buy-button-text","data-gift-button-text","data-sold-button-text","data-text-recurrent","data-class-button","data-class-button-recurrency","data-show-variations","data-show-variation-dropdown","data-show-quantity","data-type-quantity","data-text-percent","data-show-wishlist","data-show-price-not-logged-b2b","data-show-price-not-logged-b2c","data-show-alternative-image-mobile","data-show-category","data-text-pre-image","data-text-pre-image-mobile","data-text-post-image","data-buy-b2b-button-text","data-show-product-code","data-show-sold-class-card",4,"ngFor","ngForOf"],[3,"className","produto","showPriceB2C","data-buy-button-text","data-gift-button-text","data-sold-button-text","data-text-recurrent","data-class-button","data-class-button-recurrency","data-show-variations","data-show-variation-dropdown","data-show-quantity","data-type-quantity","data-text-percent","data-show-wishlist","data-show-price-not-logged-b2b","data-show-price-not-logged-b2c","data-show-alternative-image-mobile","data-show-category","data-text-pre-image","data-text-pre-image-mobile","data-text-post-image","data-buy-b2b-button-text","data-show-product-code","data-show-sold-class-card"],[1,"group-container"],[3,"className",4,"ngFor","ngForOf"],[3,"href","title"],[3,"className","produto","showPriceB2C","data-buy-button-text","data-sold-button-text","data-text-recurrent","data-class-button","data-class-button-recurrency","data-show-variations","data-show-variation-dropdown","data-show-quantity","data-type-quantity","data-text-percent","data-show-price-not-logged-b2b","data-show-price-not-logged-b2c","data-show-category","data-show-alternative-image-mobile","data-text-pre-image","data-text-pre-image-mobile","data-text-post-image","data-buy-b2b-button-text","data-show-product-code","data-show-sold-class-card",4,"ngFor","ngForOf"],[3,"className","produto","showPriceB2C","data-buy-button-text","data-sold-button-text","data-text-recurrent","data-class-button","data-class-button-recurrency","data-show-variations","data-show-variation-dropdown","data-show-quantity","data-type-quantity","data-text-percent","data-show-price-not-logged-b2b","data-show-price-not-logged-b2c","data-show-category","data-show-alternative-image-mobile","data-text-pre-image","data-text-pre-image-mobile","data-text-post-image","data-buy-b2b-button-text","data-show-product-code","data-show-sold-class-card"]],template:function(n,r){1&n&&(a(0,"div",0),J("elementVisible",function(){return r.onElementVisible()}),C(1,zk,3,3,"div",1),C(2,Uk,2,1,"div",2),l()),2&n&&(c(1),d("ngIf",null!=r.produtos&&void 0!==r.produtos.products&&r.produtos.products.length>0),c(1),d("ngIf",r.grupos&&void 0!==r.grupos&&r.grupos.length>0))},dependencies:[ei,en,gy,Yo],encapsulation:2})}return t})();function Wk(t,i){if(1&t&&(a(0,"span",8),h(1),l()),2&t){const e=_(2).$implicit;c(1),de(e.name)}
3}function Jk(t,i){if(1&t&&(a(0,"li")(1,"a",10),h(2),l()()),2&t){const e=i.$implicit;c(1),hr("href","",e.textLink,"/i",fe),Ue("title",e.name),c(1),dt(" ",e.name," ")}}function Zk(t,i){if(1&t&&(a(0,"ul",9),C(1,Jk,3,3,"li",3),l()),2&t){const e=_(2).$implicit;c(1),d("ngForOf",e.customPagesContent)}}function Qk(t,i){if(1&t&&(ht(0),a(1,"div",5),C(2,Wk,2,1,"span",6),C(3,Zk,2,1,"ul",7),l(),mt()),2&t){const e=_().$implicit,n=_(2);c(1),d("className",n.dataClassContainer),c(1),d("ngIf",e.customPagesContent.length>0),c(1),d("ngIf",e.customPagesContent.length>0)}}function Yk(t,i){if(1&t&&(ht(0),C(1,Qk,4,3,"ng-container",4),mt()),2&t){const e=i.$implicit;c(1),d("ngIf",e.customPagesContent.length>0)}}function Kk(t,i){if(1&t&&(a(0,"div",2),C(1,Yk,2,1,"ng-container",3),l()),2&t){const e=_();c(1),d("ngForOf",e.paginas)}}let Xk=(()=>{class t{constructor(e,n,r){this.sharedDataCommom=e,this.commomService=n,this.companyService=r,this.dataClassContainer="",this.dataFlag=""}ngOnInit(){this.dataClassContainer=""!==this.dataClassContainer?"content jet-custom "+this.dataClassContainer:"content jet-custom"}ngOnDestroy(){this.customPagesSubscription$?.unsubscribe()}onElementVisible(){let e="true"==this.dataFlag;this.customPagesSubscription$=this.companyService.getInstitutionalPages().subscribe(n=>{if(n){switch(Number(this.dataFilter)){case 1:this.paginas=n.filter(r=>1==r.order);break;case 2:this.paginas=n.filter(r=>2==r.order);break;default:this.paginas=n}null!=this.dataHidden&&this.dataHidden.split(",").forEach(o=>{this.paginas.forEach(s=>{var u=s.customPagesContent.findIndex(v=>v.idCustomPageContent==Number(o.trim()));u>-1&&s.customPagesContent.splice(u,1)})}),this.paginas=this.paginas.map(e?r=>({...r,customPagesContent:r.customPagesContent.filter(o=>!0===o.showTop)}):r=>({...r,customPagesContent:r.customPagesContent.filter(o=>!1===o.showTop)})),this.commomService.finishLoadComponent("onJetCustomPagesLoaded")}})}static#e=this.\u0275fac=function(n){return new(n||t)($(yn),$(qt),$(Qo))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-custom-pages"]],inputs:{dataClassContainer:["data-class-container","dataClassContainer"],dataFilter:["data-filter","dataFilter"],dataHidden:["data-hidden","dataHidden"],dataFlag:["data-flag","dataFlag"]},decls:2,vars:1,consts:[["jetVisibilityCheck","",1,"jetlazyload",3,"elementVisible"],["class","jet-custom-pages",4,"ngIf"],[1,"jet-custom-pages"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"className"],["class","title-custom",4,"ngIf"],["class","custom-itens",4,"ngIf"],[1,"title-custom"],[1,"custom-itens"],[3,"href","title"]],template:function(n,r){1&n&&(a(0,"div",0),J("elementVisible",function(){return r.onElementVisible()}),C(1,Kk,2,1,"div",1),l()),2&n&&(c(1),d("ngIf",r.paginas))},dependencies:[ei,en,Yo],encapsulation:2})}return t})();function vy(t,i,e,n){return Gn(e)&&(n=e,e=void 0),n?vy(t,i,e).pipe(Xe(r=>vn(r)?n(...r):n(r))):new Se(r=>{_y(t,i,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,e)})}function _y(t,i,e,n,r){let o;if(function nM(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const s=t;t.addEventListener(i,e,r),o=()=>s.removeEventListener(i,e,r)}else if(function tM(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const s=t;t.on(i,e),o=()=>s.off(i,e)}else if(function eM(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const s=t;t.addListener(i,e),o=()=>s.removeListener(i,e)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,u=t.length;s<u;s++)_y(t[s],i,e,n,r)}n.add(o)}function iM(t,i){if(1&t&&(a(0,"span",8),h(1),l()),2&t){const e=_(2);c(1),dt(" ",e.dataTitleProducts," ")}}function rM(t,i){if(1&t&&B(0,"jet-card",9),2&t){const e=i.$implicit,n=i.index,r=_(2);d("className",r.dataClassChildren)("produto",e)("showPriceB2C",r.showPriceB2C)("index",n)("data-buy-button-text",r.dataBuyButtonText)("data-sold-button-text",r.dataSoldButtonText)("data-text-recurrent",r.dataTextRecurrent)("data-class-button",r.dataClassButton)("data-class-button-recurrency",r.dataClassButtonRecurrency)("data-show-variations",r.dataShowVariations)("data-show-variation-dropdown",r.dataShowVariationDropdown)("data-show-quantity",r.dataShowQuantity)("data-text-percent",r.dataTextPercent)("data-show-wishlist",r.dataShowWishlist)("data-view",null!=r.filtersChoosed.viewList?"g"==r.filtersChoosed.viewList?"grid":"list":"grid")("data-show-price-not-logged-b2b",r.dataShowPriceNotLoggedB2B)("data-show-price-not-logged-b2c",r.dataShowPriceNotLoggedB2C)("data-show-alternative-image-mobile",r.dataShowAlternativeImageMobile)("data-show-category",r.dataShowCategory)("data-text-pre-image",r.dataTextPreImage)("data-text-pre-image-mobile",r.dataTextPreImageMobile)("data-text-post-image",r.dataTextPostImage)("data-buy-b2b-button-text",r.dataBuyB2BButtonText)("data-show-product-code",r.dataShowProductCode)("data-show-sold-class-card",r.dataShowSoldClassCard)}}function oM(t,i){if(1&t&&(a(0,"div",5),C(1,iM,2,1,"span",6),a(2,"div",5),C(3,rM,1,25,"jet-card",7),l()()),2&t){const e=_();d("className",e.dataClassContainer),c(1),d("ngIf",null!=e.dataTitleProducts&&""!=e.dataTitleProducts),c(1),d("className",null!=e.f
3iltersChoosed.viewList?"g"==e.filtersChoosed.viewList?e.dataClassContainerChildren:e.dataClassContainerChildrenList:e.dataClassContainerChildren),c(1),d("ngForOf",e.produtos.products)}}function sM(t,i){1&t&&B(0,"div",10)}function aM(t,i){if(1&t&&(a(0,"a",19),h(1,"<<"),l()),2&t){const e=_(2);vs("disabled",1==e.produtos.settings.pageNumber),d("href",e.pageUrls[1],fe)}}function lM(t,i){if(1&t&&(a(0,"a",20),h(1,"<"),l()),2&t){const e=_(2);vs("disabled",1==e.produtos.settings.pageNumber),d("href",e.pageUrls[e.produtos.settings.pageNumber-1],fe)}}const cM=function(t){return{active:t}};function dM(t,i){if(1&t&&(a(0,"a",21)(1,"span"),h(2),l()()),2&t){const e=i.$implicit,n=_(2);hr("title","P\xe1gina ",e,""),d("href",n.pageUrls[e],fe)("ngClass",Oe(6,cM,e==n.produtos.settings.pageNumber)),ii("aria-label","P\xe1gina "+e)("aria-current",e==n.produtos.settings.pageNumber),c(2),de(e)}}function uM(t,i){if(1&t&&(a(0,"a",22),h(1,">"),l()),2&t){const e=_(2);vs("disabled",e.produtos.settings.pageNumber==e.produtos.settings.pageCount),d("href",e.pageUrls[e.produtos.settings.pageNumber+1],fe)}}function hM(t,i){if(1&t&&(a(0,"a",23),h(1,">>"),l()),2&t){const e=_(2);vs("disabled",e.produtos.settings.pageNumber==e.produtos.settings.pageCount),d("href",e.pageUrls[e.produtos.settings.pageCount],fe)}}function mM(t,i){if(1&t&&(a(0,"div",11)(1,"div",12)(2,"div",13),C(3,aM,2,3,"a",14),C(4,lM,2,3,"a",15),C(5,dM,3,8,"a",16),C(6,uM,2,3,"a",17),C(7,hM,2,3,"a",18),l()()()),2&t){const e=_();c(3),d("ngIf",e.produtos.settings.pageNumber>1),c(1),d("ngIf",e.produtos.settings.pageNumber>1),c(1),d("ngForOf",e.showPage()),c(1),d("ngIf",e.produtos.settings.pageNumber<e.produtos.settings.pageCount),c(1),d("ngIf",e.produtos.settings.pageNumber<e.produtos.settings.pageCount)}}function fM(t,i){if(1&t&&(a(0,"div",5)(1,"div",24)(2,"span"),h(3),l()()()),2&t){const e=_();d("className",e.dataClassContainer),c(3),de(e.dataTextWithoutResults)}}let pM=(()=>{class t{constructor(e,n,r,o,s){this.commomService=e,this.sharedDataCommom=n,this.sharedDataDetail=r,this.productService=o,this.customerService=s,this.dataTitleProducts="",this.dataClassContainer="",this.dataClassContainerChildren="",this.dataClassContainerChildrenList="",this.dataClassChildren="",this.dataBuyButtonText="Adicionar ao Carrinho",this.dataSoldButtonText="Esgotado",this.dataClassButton="",this.dataClassButtonRecurrency="",this.dataShowVariations="true",this.dataShowVariationDropdown="false",this.dataShowQuantity="false",this.dataTextPercent="{percent} OFF",this.dataShowWishlist="true",this.dataShowPriceNotLoggedB2B="true",this.dataShowPriceNotLoggedB2C="true",this.dataShowAlternativeImageMobile="true",this.dataShowCategory="false",this.dataTextWithoutResults="Nenhum produto encontrado!",this.dataTextPreImage="",this.dataTextPreImageMobile="",this.dataTextPostImage="",this.dataBuyB2BButtonText="Detalhes",this.dataShowProductCode="false",this.dataShowSoldClassCard="false",this.dataTextRecurrent="Assinar Produto",this.dataUseDynamicFilter="false",this.filters=void 0,this.filtersChoosed={path:window.location.pathname,infinity:!1,viewList:"g",textLink:"",pageNumber:1,pageSize:12,order:null,brand:"",catalog:"",category:"",group:"",keyWord:"",initialPrice:"",finalPrice:"",variations:"",idAttribute:"",idEventList:"",idCategories:"",idGroupingType:"",selectedFilter:[]},this.dataQuantity=0,this.produtos=void 0,this.isLoggedB2B=!1,this.showPriceB2C=!0,this.isBusy=!1,this.isScrolling=void 0,this.redo=!1,this.pageUrls={}}ngOnInit(){var e=this;this.dataClassContainer=""!==this.dataClassContainer?"jet-container "+this.dataClassContainer:"jet-container",this.dataClassContainerChildren=""!==this.dataClassContainerChildren?"jet-children "+this.dataClassContainerChildren:"jet-children",this.dataClassChildren=""!==this.dataClassChildren?"jet-card "+this.dataClassChildren:"jet-card",this.dataClassContainerChildrenList=""!==this.dataClassContainerChildrenList?"jet-item "+this.dataClassContainerChildrenList:"jet-item",document.addEventListener("onJetDepartamentFilterChanged",n=>{this.getProducts(n.detail?.value??!1,n.detail?.remove??!1)},{passive:!0}),document.addEventListener("onJetDepartamentFilterOrderChanged",()=>{this.getProducts(!1,!0)},{passive:!0}),document.addEventListener("onJetDepartamentFilterViewChanged",n=>{this.filtersChoosed.viewList=n.detail.view},{passive:!0}),document.addEventListener("onJetChangeCD",function(){var n=(0,Zs.Z)(function*(r){document.querySelector(".jet-products")?.classList.add("jet-loading-specific"),document.removeEventListener("onJetDepartamentFilterChanged",()=>{}),document.removeEventListener("onJetDepartamentFilterOrderChanged",()=>{}),document.removeEventListener("onJetDepartamentFilterViewChanged",()=>{}),e.redo=!0,e.onElementVisible()});return function(r){return n.apply(this,arguments)}}(),{passive:!0,once:!0})}ngAfterViewInit(){const e=document.querySelector("body");vy(e,"scroll").pipe(Xe(()=>e)).subscribe(r=>{this.onMouseWheel()})}getFilters(e=!0,n=!1){if("alsoPurchased"!=this.dataType&&"related"!=this.dataType){let r=JSON.parse(sessionStorage.getItem("filterChoosed"));n&&(this.filtersChoosed=r);let o="";if("search"==this.dataType||window.location.search.includes("pageNumber")){const s=new URLSearchParams(window.location.search),u=s.get("pageNumber");s.get("n")&&(this.busca=s.get("n"),o+="?n="+this.busca),u&&(this.filtersChoosed.pageNumber=Number(u),sessionStorage.setItem("filterChoosed",JSON.stringify(this.filtersChoosed)))}this.company&&this.company.viewProductFiltersUrl&&"/busca"===window.location.pathname?this.applyFiltersFromUrl():(sessionStorage.setItem("filterChoosed",JSON.stringify(this.filtersChoosed)),e&&sessionStorage.removeItem("filters"))}}getProducts(e,n=!1,r=!1){switch(this.getFilters(e,n),this.dataType){case"brand":this.subscriptionBrands$=this.productService.getBrands().subscribe(F=>{if(isNaN(Number(this.dataId))){let R=F.findIndex(V=>V.urlFriendly==this.filtersChoosed.path);if(R>-1){this.commomService.setMetaTags(null!=F[R].title&&F[R].title.length>0?F[R].title:F[R].name,null!=F[R].metadata&&F[R].metadata.length>0?F[R].metadata:"",null!=F[R].metaDescription&&F[R].metaDescription.length>0?F[R].metaDescription:"");let V=[];null!=F[R].urlFriendly&&(V=F[R].urlFriendly.split("/")),this.filtersChoosed.textLink=V[1].toString(),this.obs$=this.productService.getBrandProducts(this.filtersChoosed).subscribe(ne=>{const De=F[R].name,ke=F[R].urlFriendly.substring(0,F[R].urlFriendly.length-2).substring(1);this.updateProducts(ne,r,e,De,ke),this.filtersChoosed.brand=String(F[R].idBrand),this.commomService.finishLoadComponent("onJetBrandProductsLoaded",{detail:{type:"brand",value:F[R]}})})}else window.location.href="/404"}else this.obs$=this.productService.getBrandProducts(this.filtersChoosed).subscribe(R=>{let V=F.findIndex(ke=>ke.idBrand==Number(this.dataId));const ne=F[V].name,De=F[V].urlFriendly.substring(0,F[V].urlFriendly.length-2).substring(1);this.updateProducts(R,r,e,ne,De),this.filtersChoosed.brand=String(this.dataId),this.commomService.finishLoadComponent("onJetBrandProductsLoaded",{detail:{type:"brand",value:F[V]}})})});break;case"catalog":var o=window.location.pathname.split("/")[1].toString();this.productService.getCatalogDetail(o).subscribe(F=>{F?(this.commomService.setMetaTags(F.name,"",""),this.commomService.createCookieCatalogOpen(F.idCatolog).subscribe(),this.filtersChoosed.textLink=o,this.obs$=this.productService.getCatalogProducts(this.filtersChoosed).subscribe(R=>{const V=F.name,ne=F.idCatolog.toString();sessionStorage.setItem("sellerCode",this.commomService.getQueryVar("hashSeller").toString()),this.updateProducts(R,r,e,V,ne),this.commomService.finishLoadComponent("onJetCatalogProductsLoaded",{detail:{type:"catalog",value:F}})})):document.location.href="/?msgError="+btoa("Link indispon\xedvel")});break;case"group":this.subscriptionBrands$=this.productService.getAllGroups().subscribe(F=>{if(isNaN(Number(this.dataId))){let R=F.findIndex(ne=>ne.urlFriendly==this.filtersChoosed.path),V=[];R>-1?(null!=F[R].urlFriendly&&(V=F[R].urlFriendly.split("/")),this.filtersChoosed.textLink=V[1].toString(),this.commomService.setMetaTags(null!=F[R].title&&F[R].title.trim().length>0?F[R].title:F[R].name,"",null!=F[R].metaDescription&&F[R].metaDescription.length>0?F[R].metaDescription:""),this.obs$=this.productService.getGroupProducts(F[R].idGroup,this.filtersChoosed).subscribe(ne=>{const De=F[R].name,ke=F[R].urlFriendly.substring(0,F[R].urlFriendly.length-2).substring(1);this.updateProducts(ne,r,e,De,ke),this.commomService.finishLoadComponent("onJetGroupProductsLoaded",{detail:{type:"group",value:F[R]}})})):window.location.href="/404"}else this.obs$=this.productService.getGroupProducts(this.dataId,this.filtersChoosed).subscribe(R=>{let V=F.findIndex(ke=>ke.idGroup==Number(this.dataId));const ne=F[V].name,De=F[V].urlFriendly.substring(0,F[V].urlFriendly.length-2).substring(1);this.updateProducts(R,r,e,ne,De),this.commomService.finishLoadComponent("onJetGroupProductsLoaded",{detail:{type:"group",value:F[V]}})})});break;case"partner":this.subscriptionPartners$=this.productService.getAllPartners().subscribe(F=>{if(isNaN(Number(this.dataId))){let R=F.findIndex(ne=>ne.urlFriendly===this.filtersChoosed.path),V=[];R>-1?(void 0!==F[R].urlFriendly&&(V=F[R].urlFriendly.split("/")),this.filtersChoosed.textLink=V[1]?.toString()??"",this.commomService.setMetaTags((null!=F[R].name&&F[R].name.trim(),F[R].name),"",null!=F[R].name&&F[R].name.length>0?F[R].name:""),this.obs$=this.productService.getPartnerProducts(F[R].idPartner,this.filtersChoosed).subscribe(ne=>{const De=F[R].name,ke=F[R].urlFriendly.substring(0,F[R].urlFriendly.length-2).substring(1);this.updateProducts(ne,r,e,De,ke),this.commomService.finishLoadComponent("onJetPartnerProductsLoaded",{detail:{type:"partner",value:F[R]}})})):window.location.href="/404"}else this.obs$=this.productService.getPartnerProducts(this.dataId,this.filtersChoosed).subscribe(R=>{let V=F.findIndex(ke=>ke.idPartner===Number(this.dataId));const ne=F[V].name,De=F[V].urlFriendly.substring(0,F[V].urlFriendly.length-2).substring(1);this.updateProducts(R,r,e,ne,De),this.commomService.finishLoadComponent("onJetPartnerProductsLoaded",{detail:{type:"partner",value:F[V]}})})});break;case"category":this.categoriasSubs$=this.sharedDataCommom.currentCategorias$.subscribe(F=>{if(isNaN(Number(this.dataId))){if(F){let R,V=location.pathname.substring(1,location.pathname.length).split("/").length;if(4===V?F.filter(ne=>ne.childMenu.filter(De=>De.childMenu.filter(function(ke){if(ke.urlFriendly===window.location.pathname)return R=ke}))):3===V?F.filter(ne=>ne.childMenu.filter(function(De){if(De.urlFriendly===window.location.pathname)return R=De})):2===V?F.filter(function(ne){if(ne.urlFriendly===window.location.pathname)return R=ne}):window.location.href="/404",R&&R.urlFriendly===window.location.pathname){let ne=R.urlFriendly.substring(0,location.pathname.length-2).substring(1);this.filtersChoosed.textLink=ne,this.obs$=this.productService.getCategoryProducts(this.filtersChoosed).subscribe(De=>{const ke=R.name,je=R.urlFriendly.substring(0,R.urlFriendly.length-2).substring(1);this.updateProducts(De,r,e,ke,je),this.filtersChoosed.category=String(R.childMenu),this.commomService.finishLoadComponent("onJetCategoryProductsLoaded",{detail:{type:"category",value:R}})})}else window.location.href="/404"}}else this.obs$=this.productService.getCategoryProducts(this.filtersChoosed).subscribe(R=>{let V=F.findIndex(ke=>ke.idCategory==this.dataId);const ne=F[V].name,De=F[V].urlFriendly.substring(0,F[V].urlFriendly.length-2).substring(1);this.updateProducts(R,r,e,ne,De),this.filtersChoosed.category=String(this.dataId),V>-1&&this.commomService.finishLoadComponent("onJetCategoryProductsLoaded",{detail:{type:"category",value:F[V]}})})});break;case"related":this.detailSubs$=this.sharedDataDetail.currentDetail$.subscribe(F=>{F?.relatedProducts&&(this.produtos={products:F.relatedProducts,settings:void 0,filters:void 0},this.produtos.products.length&&(this.commomService.finishLoadComponent("onJetPushDataLayerEvent",{detail:{type:"view_item_list",products:this.produtos.products,name:"Produtos Relacionados",id:"product_related"}}),document.querySelector(".jet-products")?.classList.remove("jet-loading-specific"))),this.commomService.finishLoadComponent("onJetRelatedProductsLoaded"),this.returnToNormal()});break;case"alsoPurchased":this.detailSubs$=this.sharedDataDetail.currentDetail$.subscribe(F=>{F&&F.hasAlsoPurchasedRelatedProduct&&this.productService.getAlsoPurchasedProducts(F.idProduct).subscribe(R=>{this.produtos={products:R,settings:void 0,filters:void 0},this.produtos.products.length&&(this.commomService.finishLoadComponent("onJetPushDataLayerEvent",{detail:{type:"view_item_list",products:this.produtos.products,name:"Tamb\xe9m Compraram",id:"alsoPurchased"}}),document.querySelector(".jet-products")?.classList.remove("jet-loading-specific")),this.commomService.finishLoadComponent("onJetAlsoPurchasedProductsLoaded"),this.returnToNormal()})});break;case"search":const u=new URLSearchParams(window.location.search).get("n");if(this.commomService.urlBlackList(u)){if(Boolean(sessionStorage.getItem("carParts"))&&(null==u||null==u))return void this.getProductsByCode(r,e);sessionStorage.removeItem("carParts"),this.commomService.setMetaTags("Resultado da Busca","",""),this.obs$=this.productService.searchProductsFilters(decodeURIComponent(u),this.filtersChoosed).subscribe(F=>{this.updateProducts(F,r,e,"Busca","search"),Boolean(sessionStorage.getItem("sendTerm"))&&(this.productService.sendTerm({term:sessionStorage.getItem("sendTerm"),returnedResult:F.products.length>0}).subscribe(),sessionStorage.removeItem("sendTerm")),this.commomService.finishLoadComponent("onJetSearchProductsLoaded",{detail:{type:"search",value:{name:decodeURIComponent(u),href:this.filtersChoosed.path}}})})}else this.produtos={products:[],filters:void 0,settings:void 0};break;case"eventlist":let w=window.location.pathname.split("/")[1].toString();this.customerService.eventListClient({idEventList:w}).subscribe(F=>{F?(0==F.length&&(document.location.href="/busca-lista-eventos"),this.sharedDataCommom.changeValueEventList(F),this.commomService.setMetaTags(F[0].name1,"",""),this.filtersChoosed.idEventList=w,this.obs$=this.productService.searchProductsFilters(null,this.filtersChoosed).subscribe(R=>{if(R.products.length){const V=F[0].title,ne=F[0].idEventList.toString();this.updateProducts(R,r,e,V,ne),this.filtersChoosed.idEventList=String(F[0].idEventList),this.commomService.finishLoadComponent("onJetEventListProductsLoaded",{detail:{type:"eventList",value:F[0]}})}else document.location.href="/?msgError="+btoa("Erro ao carregar a lista")})):document.location.href="/?msgError="+btoa("Link indispon\xedvel")})}}showPage(){let e=[];for(var n=this.produtos.settings.pageNumber-1;n<this.produtos.settings.pageNumber+1+1;n++)n>0&&n<=this.produtos.settings.pageCount&&e.push(n);return e}scrollTo(e){e.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}returnToNormal(){document.getElementsByClassName("jet-department-filter").length>0&&document.getElementsByClassName("jet-department-filter")[0].classList.remove("jet-loading")}onMouseWheel(){if(this.company?.infiniteScrolling){var e=window.scrollY||document.documentElement.scrollTop;sessionStorage.setItem("positionY",e.toString());var n=document.getElementsByClassName("jet-products")[0];if(null!=n){var r=n.getBoundingClientRect();e+window.innerHeight>=r.top+r.height&&this.produtos&&this.produtos.settings?.hasNextPage&&!this.isBusy&&(this.isBusy=!0,JSON.parse(sessionStorage.getItem("filterChoosed")).path==window.location.pathname&&(this.filtersChoosed=JSON.parse(sessionStorage.getItem("filterChoosed"))),this.filtersChoosed.pageNumber=this.filtersChoosed.pageNumber+1,this.filtersChoosed.pageNumber>1&&!this.company?.infiniteScrolling?this.generatePageUrl(this.filtersChoosed.pageNumber,!0):document.title=`${document.title.split("- P\xe1gina")[0].trim()} - P\xe1gina ${this.filtersChoosed.pageNumber}`,this.commomService.finishLoadComponent("onJetPageNumberChanged",{detail:{value:this.filtersChoosed.pageNumber}}),sessionStorage.setItem("filterChoosed",JSON.stringify(this.filtersChoosed)),this.getProducts(!1,!1,!0))}}}ngOnDestroy(){null!=this.obs$&&this.obs$.unsubscribe(),null!=this.categoriasSubs$&&this.categoriasSubs$.unsubscribe(),null!=this.detailSubs$&&this.de
3tailSubs$.unsubscribe(),null!=this.subscriptionCompany$&&this.subscriptionCompany$.unsubscribe(),null!=this.subscriptionBrands$&&this.subscriptionBrands$.unsubscribe(),null!=this.subscriptionPartners$&&this.subscriptionPartners$.unsubscribe()}onElementVisible(){this.subscriptionCompany$=this.sharedDataCommom.currentCompany$.subscribe(e=>{if(e){if(this.company=e,this.filtersChoosed.pageSize=this.company.quantityItemsPage||12,this.sharedDataCommom.authorizedB2B$.subscribe(n=>{null!=n&&(this.isLoggedB2B=n,this.showPriceB2C=!!this.isLoggedB2B||this.company.showPriceB2C)}),"search"==this.dataType||window.location.search.includes("pageNumber")){const n=new URLSearchParams(window.location.search),r=n.get("pageNumber");this.busca=n.get("n"),"search"==this.dataType&&""!=this.busca&&(this.filtersChoosed.path=window.location.pathname+"?n="+this.busca),r&&(this.filtersChoosed.pageNumber=Number(r))}if(sessionStorage.getItem("filterChoosed")){let n=JSON.parse(sessionStorage.getItem("filterChoosed")),r=window.location.pathname;if("search"==this.dataType||window.location.search.includes("pageNumber")){const o=new URLSearchParams(window.location.search),s=o.get("pageNumber");"search"==this.dataType&&(this.busca=o.get("n"),""!=this.busca&&(r+="?n="+this.busca)),s&&(this.filtersChoosed.pageNumber=Number(s))}n.path==r&&(this.filtersChoosed=n,this.filtersChoosed.infinity!==this.company.infiniteScrolling?(this.filtersChoosed.pageNumber=1,this.filtersChoosed.infinity=this.company.infiniteScrolling,sessionStorage.setItem("filterChoosed",JSON.stringify(this.filtersChoosed)),this.getProducts(!0)):this.company.infiniteScrolling&&(this.company&&!this.company.viewProductFiltersUrl&&"/busca"===window.location.pathname&&(this.filtersChoosed.pageNumber=1),this.filtersChoosed.infinity=this.company.infiniteScrolling,sessionStorage.setItem("filterChoosed",JSON.stringify(this.filtersChoosed))))}else this.applyFiltersFromUrl();(!this.produtos||this.redo)&&(sessionStorage.removeItem("filters"),this.redo=!1,this.getProducts(!0))}})}applyFiltersFromUrl(){const e=new URLSearchParams(window.location.search);e.has("path")&&e.delete("path"),this.filters=JSON.parse(sessionStorage.getItem("filters"));let n=!1;this.filtersChoosed.selectedFilter=[],e.forEach((r,o)=>{if(this.filtersChoosed.hasOwnProperty(o)){this.filtersChoosed[o]=r;let u=r.split(",");var s=["initialPrice","finalPrice","n","pageNumber","pageSize","fetchLength","viewList"];u.forEach(v=>{-1==s.indexOf(o)?this.filtersChoosed.selectedFilter.push({id:v,type:o}):("initialPrice"==o||"finalPrice"==o)&&(n=!0)})}}),n&&this.filtersChoosed.selectedFilter.push({id:"price",type:"price",name:"Pre\xe7o "+this.commomService.priceMask(e.get("initialPrice"))+" \xe0 "+this.commomService.priceMask(e.get("finalPrice"))}),sessionStorage.setItem("filterChoosed",JSON.stringify(this.filtersChoosed))}updateProducts(e,n,r,o,s){this.returnToNormal(),n&&this.produtos&&this.produtos.filters?(this.produtos.products=this.produtos.products.concat(e.products),this.produtos.settings=e.settings,this.isBusy=!1):(this.produtos=e,this.buildPageUrls()),e.products.length&&this.commomService.finishLoadComponent("onJetPushDataLayerEvent",{detail:{type:"view_item_list",products:e.products,name:o,id:s}}),r&&(null==sessionStorage.getItem("filters")&&0==this.produtos.products.length&&null!=sessionStorage.getItem("filterChoosed")&&JSON.parse(sessionStorage.getItem("filterChoosed"))?.selectedFilter?.length>0&&(this.commomService.finishLoadComponent("onJetClearAllFilters"),setTimeout(()=>{document.location.reload()},500)),"false"==this.dataUseDynamicFilter&&sessionStorage.setItem("filters",JSON.stringify(this.produtos.filters))),"false"!=this.dataUseDynamicFilter&&sessionStorage.setItem("filters",JSON.stringify(this.produtos.filters)),this.commomService.hideLoadingByClass("jet-products")}buildPageUrls(){this.pageUrls={};for(let e=1;e<=this.produtos.settings.pageCount;e++)this.pageUrls[e]=this.generatePageUrl(e)}generatePageUrl(e,n=!1){const r=new URL(window.location.href);
3let o=r.pathname,s=new URLSearchParams(r.search);s.delete("pageNumber"),e>1?s.set("pageNumber",e.toString()):sessionStorage.getItem("filterChoosed")&&(this.filtersChoosed.pageNumber=1,sessionStorage.setItem("filterChoosed",JSON.stringify(this.filtersChoosed)));const u=r.searchParams.get("n");u&&s.set("n",u);const v=`${o}${s.toString()?"?"+s.toString():""}`;return n&&history.replaceState(null,"",v),v}getProductsByCode(e,n){this.commomService.setMetaTags("Resultado da Busca","","");let r=sessionStorage.getItem("carParts");this.obs$=this.productService.searchProductsByCode(this.filtersChoosed,r).subscribe(o=>{this.updateProducts(o,e,n,"Busca","search"),this.commomService.finishLoadComponent("onJetSearchProductsLoaded",{detail:{type:"search",value:{name:"",href:this.filtersChoosed.path}}})})}static#e=this.\u0275fac=function(n){return new(n||t)($(qt),$(yn),$(Cm),$(Ou),$(Ci))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-products"]],hostBindings:function(n,r){1&n&&J("scroll",function(s){return r.onMouseWheel(s)},0,Ch)},inputs:{dataType:["data-type","dataType"],dataId:["data-id","dataId"],dataTitleProducts:["data-title-products","dataTitleProducts"],dataClassContainer:["data-class-container","dataClassContainer"],dataClassContainerChildren:["data-class-container-children","dataClassContainerChildren"],dataClassContainerChildrenList:["data-class-container-children-list","dataClassContainerChildrenList"],dataClassChildren:["data-class-children","dataClassChildren"],dataBuyButtonText:["data-buy-button-text","dataBuyButtonText"],dataSoldButtonText:["data-sold-button-text","dataSoldButtonText"],dataClassButton:["data-class-button","dataClassButton"],dataClassButtonRecurrency:["data-class-button-recurrency","dataClassButtonRecurrency"],dataShowVariations:["data-show-variations","dataShowVariations"],dataShowVariationDropdown:["data-show-variation-dropdown","dataShowVariationDropdown"],dataShowQuantity:["data-show-quantity","dataShowQuantity"],dataTextPercent:["data-text-percent","dataTextPercent"],dataShowWishlist:["data-show-wishlist","dataShowWishlist"],dataShowPriceNotLoggedB2B:["data-show-price-not-logged-b2b","dataShowPriceNotLoggedB2B"],dataShowPriceNotLoggedB2C:["data-show-price-not-logged-b2c","dataShowPriceNotLoggedB2C"],dataShowAlternativeImageMobile:["data-show-alternative-image-mobile","dataShowAlternativeImageMobile"],dataShowCategory:["data-show-category","dataShowCategory"],dataTextWithoutResults:["data-text-without-results","dataTextWithoutResults"],dataTextPreImage:["data-text-pre-image","dataTextPreImage"],dataTextPreImageMobile:["data-text-pre-image-mobile","dataTextPreImageMobile"],dataTextPostImage:["data-text-post-image","dataTextPostImage"],dataBuyB2BButtonText:["data-buy-b2b-button-text","dataBuyB2BButtonText"],dataShowProductCode:["data-show-product-code","dataShowProductCode"],dataShowSoldClassCard:["data-show-sold-class-card","dataShowSoldClassCard"],dataTextRecurrent:["data-text-recurrent","dataTextRecurrent"],dataUseDynamicFilter:["data-use-dynamic-filter","dataUseDynamicFilter"]},decls:6,vars:4,consts:[["jetVisibilityCheck","",1,"jetlazyload",3,"elementVisible"],[1,"jet-products"],[3,"className",4,"ngIf"],["class","jet-infinity-scroll",4,"ngIf"],["class","jet-pagination",4,"ngIf"],[3,"className"],["class","title-container",4,"ngIf"],[3,"className","produto","showPriceB2C","index","data-buy-button-text","data-sold-button-text","data-text-recurrent","data-class-button","data-class-button-recurrency","data-show-variations","data-show-variation-dropdown","data-show-quantity","data-text-percent","data-show-wishlist","data-view","data-show-price-not-logged-b2b","data-show-price-not-logged-b2c","data-show-alternative-image-mobile","data-show-category","data-text-pre-image","data-text-pre-image-mobile","data-text-post-image","data-buy-b2b-button-text","data-show-product-code","data-show-sold-class-card",4,"ngFor","ngForOf"],[1,"title-container"],[3,"className","produto","showPriceB2C","index","data-buy-button-text","data-sold-button-text","data-text-recurrent","data-class-button","data-class-button-recurrency","data-show-variations","data-show-variation-dropdown","data-show-quantity","data-text-percent","data-show-wishlist","data-view","data-show-price-not-logged-b2b","data-show-price-not-logged-b2c","data-show-alternative-image-mobile","data-show-category","data-text-pre-image","data-text-pre-image-mobile","data-text-post-image","data-buy-b2b-button-text","data-show-product-code","data-show-sold-class-card"],[1,"jet-infinity-scroll"],[1,"jet-pagination"],[1,"pagination"],["aria-label","Pagination","role","navigation"],["title","Primeira P\xe1gina","aria-label","Primeira p\xe1gina","aria-current","false","class","item first-page",3,"disabled","href",4,"ngIf"],["title","P\xe1gina Anterior","aria-label","P\xe1gina anterior","aria-current","false","class","item prev-page",3,"disabled","href",4,"ngIf"],["class","item",3,"title","href","ngClass",4,"ngFor","ngForOf"],["t
3itle","Pr\xf3xima P\xe1gina","aria-label","Pr\xf3xima p\xe1gina","aria-current","false","class","item next-page",3,"disabled","href",4,"ngIf"],["title","\xdaltima P\xe1gina","aria-label","\xdaltima p\xe1gina","aria-current","false","class","item last-page",3,"disabled","href",4,"ngIf"],["title","Primeira P\xe1gina","aria-label","Primeira p\xe1gina","aria-current","false",1,"item","first-page",3,"href"],["title","P\xe1gina Anterior","aria-label","P\xe1gina anterior","aria-current","false",1,"item","prev-page",3,"href"],[1,"item",3,"title","href","ngClass"],["title","Pr\xf3xima P\xe1gina","aria-label","Pr\xf3xima p\xe1gina","aria-current","false",1,"item","next-page",3,"href"],["title","\xdaltima P\xe1gina","aria-label","\xdaltima p\xe1gina","aria-current","false",1,"item","last-page",3,"href"],[1,"jet-nothing-found"]],template:function(n,r){1&n&&(a(0,"div",0),J("elementVisible",function(){return r.onElementVisible()}),a(1,"div",1),C(2,oM,4,4,"div",2),C(3,sM,1,0,"div",3),C(4,mM,8,5,"div",4),C(5,fM,4,2,"div",2),l()()),2&n&&(c(2),d("ngIf",r.produtos&&void 0!==r.produtos.products&&r.produtos.products.length>0),c(1),d("ngIf",r.isBusy),c(1),d("ngIf",r.produtos&&void 0!==r.produtos.products&&r.produtos.products.length>0&&null!=r.produtos.settings&&!(null!=r.company&&r.company.infiniteScrolling)),c(1),d("ngIf",r.produtos&&void 0!==r.produtos.products&&0==r.produtos.products.length&&"related"!=r.dataType&&"alsoPurchased"!=r.dataType))},dependencies:[ui,ei,en,gy,Yo],encapsulation:2})}return t})();function gM(t,i){1&t&&(a(0,"span"),h(1,"Informe seu Nome"),l())}function vM(t,i){1&t&&(a(0,"span"),h(1,"Informe ao menos 3 caracteres"),l())}function _M(t,i){if(1&t&&(a(0,"div",22),C(1,gM,2,0,"span",23),C(2,vM,2,0,"span",23),l()),2&t){const e=_();c(1),d("ngIf",e.f.name.errors.required),c(1),d("ngIf",e.f.name.errors.minlength)}}function CM(t,i){1&t&&(a(0,"span"),h(1,"Informe o Email"),l())}function yM(t,i){1&t&&(a(0,"span"),h(1,"E-mail Inv\xe1lido"),l())}function bM(t,i){if(1&t&&(a(0,"div",22),C(1,CM,2,0,"span",23),C(2,yM,2,0,"span",23),l()),2&t){const e=_();c(1),d("ngIf",e.f.email.errors.required),c(1),d("ngIf",null==e.f.email.errors?null:e.f.email.errors.pattern)}}function SM(t,i){1&t&&(a(0,"span"),h(1,"Informe o Telefone"),l())}function wM(t,i){if(1&t&&(a(0,"div",22),C(1,SM,2,0,"span",23),l()),2&t){const e=_();c(1),d("ngIf",e.f.phone.errors.required)}}function IM(t,i){1&t&&(a(0,"span"),h(1,"Selecione o Estado"),l())}function xM(t,i){if(1&t&&(a(0,"div",22),C(1,IM,2,0,"span",23),l()),2&t){const e=_(2);c(1),d("ngIf",e.f.state.errors.required)}}function DM(t,i){if(1&t&&(a(0,"div",1)(1,"label"),h(2,"Estado*"),l(),a(3,"select",24,25)(5,"option",26),h(6,"Selecione"),l(),a(7,"option",27),h(8,"Acre"),l(),a(9,"option",28),h(10,"Alagoas"),l(),a(11,"option",29),h(12,"Amap\xe1"),l(),a(13,"option",30),h(14,"Amazonas"),l(),a(15,"option",31),h(16,"Bahia"),l(),a(17,"option",32),h(18,"Cear\xe1"),l(),a(19,"o
3ption",33),h(20,"Distrito Federal"),l(),a(21,"option",34),h(22,"Esp\xedrito Santo"),l(),a(23,"option",35),h(24,"Goi\xe1s"),l(),a(25,"option",36),h(26,"Maranh\xe3o"),l(),a(27,"option",37),h(28,"Mato Grosso"),l(),a(29,"option",38),h(30,"Mato Grosso do Sul"),l(),a(31,"option",39),h(32,"Minas Gerais"),l(),a(33,"option",40),h(34,"Par\xe1"),l(),a(35,"option",41),h(36,"Para\xedba"),l(),a(37,"option",42),h(38,"Paran\xe1"),l(),a(39,"option",43),h(40,"Pernambuco"),l(),a(41,"option",44),h(42,"Piau\xed"),l(),a(43,"option",45),h(44,"Rio de Janeiro"),l(),a(45,"option",46),h(46,"Rio Grande do Norte"),l(),a(47,"option",47),h(48,"Rio Grande do Sul"),l(),a(49,"option",48),h(50,"Rond\xf4nia"),l(),a(51,"option",49),h(52,"Roraima"),l(),a(53,"option",50),h(54,"Santa Catarina"),l(),a(55,"option",51),h(56,"S\xe3o Paulo"),l(),a(57,"option",52),h(58,"Sergipe"),l(),a(59,"option",53),h(60,"Tocantins"),l()(),C(61,xM,2,1,"div",7),l()),2&t){const e=_();d("className",e.dataClassInput+" state"),c(61),d("ngIf",e.f.state.errors&&(e.f.state.dirty||e.f.state.touched))}}function PM(t,i){1&t&&(a(0,"span"),h(1,"Informe a Cidade"),l())}function TM(t,i){if(1&t&&(a(0,"div",22),C(1,PM,2,0,"span",23),l()),2&t){const e=_(2);c(1),d("ngIf",e.f.city.errors.required)}}function EM(t,i){if(1&t&&(a(0,"div",1)(1,"label"),h(2,"Cidade*"),l(),B(3,"input",54,55),C(5,TM,2,1,"div",7),l()),2&t){const e=_();d("className",e.dataClassInput+" city"),c(5),d("ngIf",e.f.city.errors&&(e.f.city.dirty||e.f.city.touched))}}function LM(t,i){if(1&t&&(a(0,"option",56),h(1),l()),2&t){const e=i.$implicit;z1("value","",e.idContactTopic," | ",e.description,""),c(1),dt(" ",e.description," ")}}function kM(t,i){1&t&&(a(0,"span"),h(1,"Selecione um Assunto"),l())}function MM(t,i){if(1&t&&(a(0,"div",22),C(1,kM,2,0,"span",23),l()),2&t){const e=_();c(1),d("ngIf",e.f.contactTopic.errors.required)}}function FM(t,i){1&t&&(a(0,"span"),h(1,"Informe o titulo"),l())}function AM(t,i){if(1&t&&(a(0,"div",22),C(1,FM,2,0,"span",23),l()),2&t){const e=_();c(1),d("ngIf",e.f.subject.errors.required)}}function NM(t,i){1&t&&(a(0,"span"),h(1,"Informe uma mensagem"),l())}function OM(t,i){if(1&t&&(a(0,"div",22),C(1,NM,2,0,"span",23),l()),2&t){const e=_();c(1),d("ngIf",e.f.message.errors.required)}}const RM=function(t){return{"jet-btn-loading":t}};let BM=(()=>{class t{constructor(e,n,r,o){this.fb=e,this.commomService=n,this.customerService=r,this.googleRecaptcha=o,this.dataClassContainer="",this.dataClassChildren="",this.dataClassInput="",this.dataButtonSend="",this.loading=!1,this.international=!1,this.form=this.fb.group({name:["",oe.compose([oe.minLength(3),oe.required])],email:["",[oe.required,oe.pattern(/^(([^<>()[\]\\.,;:\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,}))$/)]],city:["",oe.compose([oe.minLength(3),oe.required])],state:["",oe.compose([oe.required])],phone:["",oe.compose([oe.minLength(3),oe.maxLength(15),oe.required])],subject:["",oe.compose([oe.minLength(3),oe.required])],message:["",oe.compose([oe.minLength(3),oe.required])],contactTopic:["",oe.compose([oe.required,oe.minLength(1)])]}),this.commomService.finishLoadComponent("onJetContactUsLoaded")}ngOnInit(){this.dataClassContainer=""!==this.dataClassContainer?"jet-container "+this.dataClassContainer:"jet-container",this.dataClassChildren=""!==this.dataClassChildren?"jet-class-children "+this.dataClassChildren:"jet-class-children",this.dataClassInput=""!==this.dataClassInput?"container-field "+this.dataClassInput:"container-field",this.dataButtonSend=""!==this.dataButtonSend?"jet-button-send "+this.dataButtonSend:"jet-button-send",this.contactSubs$=this.customerService.listTopics().subscribe(e=>{null!=e&&(this.topicsList=e)}),this.commomService.setMetaTags("Fale Conosco","",""),this.commomService.getCountryCookie().subscribe(e=>{"BR"!=e.nameGeolocalization&&(this.international=!0,this.form.get("city").setValidators([oe.minLength(3)]),this.form.get("city").updateValueAndValidity(),this.form.get("state").setValidators([oe.minLength(3)]),this.form.get("state").updateValueAndValidity())})}get f(){return this.form.controls}ngOnDestroy(){this.contactSubs$.unsubscribe()}populaContactForm(e){let r=document.querySelector("#slct-description-topic").value.split("|");return{name:this.form.controls.name.value,email:this.form.controls.email.value,city:1==this.international?"Internacional":this.form.controls.city.value,state:1==this.international?"IN":this.form.controls.state.value,phone:this.form.controls.phone.value,subject:this.form.controls.subject.value,message:this.form.controls.message.value,contactTopic:{idContactTopic:r[0].trim(),description:r[1].trim()},tokenRecaptcha:e}}phoneNumberMask(e){this.f.phone.setValue(this.international?e:this.commomService.ph
3oneNumberMask(e))}submit(){this.form.valid?(this.loading=!0,this.googleRecaptcha.sendRecaptcha("Contact","ContactUs").subscribe(e=>{let n=this.populaContactForm(e);this.contactSubs$=this.customerService.sendFormContactUs(n).subscribe(r=>{this.loading=!1,this.commomService.displayMessageUser("success","Mensagem enviada com sucesso","Responderemos sua mensagem o mais breve poss\xedvel"),this.commomService.finishLoadComponent("onJetContactUsLoaded"),this.commomService.finishLoadComponent("onJetPushDataLayerEvent",{detail:{type:"generate_lead",params:{lead_source:"Contact Form",value:0,email:n.email,name:n.name,phone:n.phone}}}),this.form.reset()},r=>{this.loading=!1,this.commomService.displayMessageUser("error","N\xe3o foi poss\xedvel enviar o formul\xe1rio","Tente novamente em alguns instantes")})})):Object.keys(this.form.controls).forEach(e=>{this.form.controls[e].markAsDirty()})}static#e=this.\u0275fac=function(n){return new(n||t)($(ao),$(qt),$(Ci),$(xd))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-contact-us"]],inputs:{dataClassContainer:["data-class-container","dataClassContainer"],dataClassChildren:["data-class-children","dataClassChildren"],dataClassInput:["data-class-input","dataClassInput"],dataButtonSend:["data-button-send","dataButtonSend"]},decls:48,vars:23,consts:[[1,"jet-contact-us"],[3,"className"],[3,"formGroup","ngSubmit"],[1,"container-form"],[1,"name"],["placeholder","Seu Nome","formControlName","name"],["name",""],["class","invalid-feedback",4,"ngIf"],["placeholder","[email protected]","formControlName","email"],["email",""],["type","text","formControlName","phone","maxlength","15","autocomplete","off",3,"placeholder","input","blur","paste"],["phone",""],[3,"className",4,"ngIf"],["name","","id","slct-description-topic","formControlName","contactTopic"],["contactTopic",""],["value","","disabled","","selected",""],[3,"value",4,"ngFor","ngForOf"],["type","text","formControlName","subject","placeholder","Titulo"],["subject",""],["type","text","rows","5","formControlName","message"],["message",""],[3,"className","ngClass"],[1,"invalid-feedback"],[4,"ngIf"],["id","","name","","formControlName","state"],["state",""],["value","","selected",""],["value","AC"],["value","AL"],["value","AP"],["value","AM"],["value","BA"],["value","CE"],["value","DF"],["value","ES"],["value","GO"],["value","MA"],["value","MT"],["value","MS"],["value","MG"],["value","PA"],["value","PB"],["value","PR"],["value","PE"],["value","PI"],["value","RJ"],["value","RN"],["value","RS"],["value","RO"],["value","RR"],["value","SC"],["value","SP"],["value","SE"],["value","TO"],["type","text","formControlName","city","placeholder","Cidade"],["city",""],[3,"value"]],template:function(n,r){1&n&&(a(0,"div",0)(1,"div",1)(2,"div",1)(3,"form",2),J("ngSubmit",function(){return r.submit()}),a(4,"div",3)(5,"div",1)(6,"label",4),h(7,"Name*"),l(),B(8,"input",5,6),C(10,_M,3,2,"div",7),l(),a(11,"div",1)(12,"label"),h(13,"E-mail*"),l(),B(14,"input",8,9),C(16,bM,3,2,"div",7),l(),a(17,"div",1)(18,"label"),h(19,"Telefone*"),l(),a(20,"input",10,11),J("input",function(s){return r.phoneNumberMask(s.target.value)})("blur",function(s){return r.phoneNumberMask(s.target.value)})("paste",function(s){return s.preventDefault()}),l(),C(22,wM,2,1,"div",7),l(),C(23,DM,62,2,"div",12),C(24,EM,6,2,"div",12),a(25,"div",1)(26,"label"),h(27,"Assunto*"),l(),a(28,"select",13,14)(30,"option",15),h(31,"Selecione"),l(),C(32,LM,2,3,"option",16),l(),C(33,MM,2,1,"div",7),l(),a(34,"div",1)(35,"label"),h(36,"Titulo*"),l(),B(37,"input",17,18),C(39,AM,2,1,"div",7),l(),a(40,"div",1)(41,"label"),h(42,"Mensagem*"),l(),B(43,"textarea",19,20),C(45,OM,2,1,"div",7),l(),a(46,"button",21),h(47,"ENVIAR"),l()()()()()()),2&n&&(c(1),d("className",r.dataClassContainer),c(1),d("className",r.dataClassChildren),c(1),d("formGroup",r.form),c(2),d("className",r.dataClassInput+" name"),c(5),d("ngIf",r.f.name.errors&&(r.f.name.dirty||r.f.name.touched)),c(1),d("className",r.dataClassInput+" email"),c(5),d("ngIf",r.f.email.errors&&(r.f.email.dirty||r.f.email.touched)),c(1),d("className",r.dataClassInput+" phone"),c(3),d("placeholder",r.international?"":"(00) 00000-0000"),c(2),d("ngIf",r.f.phone.errors&&(r.f.ph
3one.dirty||r.f.phone.touched)),c(1),d("ngIf",!r.international),c(1),d("ngIf",!r.international),c(1),d("className",r.dataClassInput+" contact-topic"+(r.international?" international":"")),c(7),d("ngForOf",r.topicsList),c(1),d("ngIf",r.f.contactTopic.errors&&(r.f.contactTopic.dirty||r.f.contactTopic.touched)),c(1),d("className",r.dataClassInput+" subject"+(r.international?" international":"")),c(5),d("ngIf",r.f.subject.errors&&(r.f.subject.dirty||r.f.subject.touched)),c(1),d("className",r.dataClassInput+" message"),c(5),d("ngIf",r.f.message.errors&&(r.f.message.dirty||r.f.message.touched)),c(1),d("className",r.dataButtonSend)("ngClass",Oe(21,RM,r.loading)))},dependencies:[ui,ei,en,Gr,Ws,Js,mr,ma,fr,Ur,Zo,Ir,Mr],encapsulation:2})}return t})();function jM(t,i){1&t&&(B(0,"div",5),Wi(1,"safeHtml")),2&t&&d("innerHTML",Lo(1,1,_(2).page.content),ce)}function VM(t,i){if(1&t&&(a(0,"div",1)(1,"div",2)(2,"div",2)(3,"div",3)(4,"h1"),h(5),l()(),C(6,jM,2,3,"div",4),l()()()),2&t){const e=_();c(1),d("className",e.dataClassContainer),c(1),d("className",e.dataClassChildren),c(3),de(e.page.name),c(1),d("ngIf",null!=e.page)}}let HM=(()=>{class t{constructor(e,n){this.companyService=e,this.commomService=n,this.dataClassContainer="",this.dataClassChildren="",this.page=null}ngOnInit(){this.dataClassContainer=""!==this.dataClassContainer?"jet-container "+this.dataClassContainer:"jet-container",this.dataClassChildren=""!==this.dataClassChildren?"jet-class-children "+this.dataClassChildren:"jet-class-children";var e=document.location.pathname.split("/");this.customPagesSubs$=this.companyService.getInstitutionalPageDetail(e[1]).subscribe(r=>{r?(this.page=r,this.commomService.finishLoadComponent("onJetCustomPagesDetailLoaded"),this.commomService.setMetaTags(null!=this.page.titlePage&&this.page.titlePage.length>0?this.page.titlePage:this.page.name,null!=this.page.keywords&&this.page.keywords.length>0?this.page.keywords:"",null!=this.page.metatag&&this.page.metatag.length>0?this.page.metatag:"")):window.location.href="/404"})}ngOnDestroy(){this.customPagesSubs$.unsubscribe()}static#e=this.\u0275fac=function(n){return new(n||t)($(Qo),$(qt))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-custom-pages-detail"]],inputs:{dataClassContainer:["data-class-container","dataClassContainer"],dataClassChildren:["data-class-children","dataClassChildren"]},decls:1,vars:1,consts:[["class","jet-custom-pages-detail",4,"ngIf"],[1,"jet-custom-pages-detail"],[3,"className"],[1,"title-page"],["class","page-content",3,"innerHTML",4,"ngIf"],[1,"page-content",3,"innerHTML"]],template:function(n,r){1&n&&C(0,VM,7,4,"div",0),2&n&&d("ngIf",null!=r.page)},dependencies:[en,za],encapsulation:2})}return t})();const zM=function(t){return{hidden:t}};function qM(t,i){if(1&t&&(a(0,"div",2)(1,"div",4),h(2),l(),a(3,"div",5)(4,"p"),h(5),l()()()),2&t){const e=i.$implicit,n=_(2);d("className",n.dataClassChildren),c(2),de(e.question),c(1),d("ngClass",Oe(4,zM,1==n.dataAnsweractive)),c(2),de(e.answer)}}function $M(t,i){if(1&t&&(a(0,"div",1)(1,"div",2),C(2,qM,6,6,"div",3),l()()),2&t){const e=_();c(1),d("className",e.dataClassContainer),c(1),d("ngForOf",e.faqs)}}let UM=(()=>{class t{constructor(e,n,r){this.companyService=e,this.commomService=n,this.snippet=r,this.dataClassContainer="",this.dataClassChildren="",this.dataAnsweractive=!0,this.faqs=null}ngOnInit(){this.dataClassContainer=""!==this.dataClassContainer?"jet-container "+this.dataClassContainer:"jet-container",this.dataClassChildren=""!==this.dataClassChildren?"jet-class-children "+this.dataClassChildren:"jet-class-children",this.faqSubs$=this.companyService.listFaqs().subscribe(e=>{null!=e&&(this.faqs=e,this.snippet.structureSnippetFAQ(this.faqs),this.commomService.finishLoadComponent("onJetFaqLoaded"),this.commomService.setMetaTags("Perguntas Frequentes","",""))},e=>{})}ngOnDestroy(){this.faqSubs$.unsubscribe()}static#e=this.\u0275fac=function(n){return new(n||t)($(Qo),$(qt),$(Hp))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-faq"]],inputs:{dataClassContainer:["data-class-container","dataClassContainer"],dataClassChildren:["data-class-children","dataClassChildren"],dataAnsweractive:["data-answer-active","dataAnsweractive"]},decls:1,vars:1,consts:[["class","jet-faq",4,"ngIf"],[1,"jet-faq"],[3,"className"],[3,"className",4,"ngFor","ngForOf"],[1,"answer"],[1,"answer-content",3,"ngClass"]],template:function(n,r){1&n&&C(0,$M,3,2,"div",0),2&n&&d("ngIf",null!=r.faqs)},dependencies:[ui,ei,en],encapsulation:2})}return t})();let Bu=(()=>{class t{constructor(){this.companySource=new Ai(null),this.currentCompany$=this.companySource.asObservable()}changeValueCompany(e){this.companySource.next(e)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function GM(t,i){if(1&t&&(a(0,"div",2)(1,"a",3),B(2,"img",4),l()()),2&t){const e=_();
3c(1),Ue("href",e.urlStore,fe),Ue("title",e.nameStore),c(1),d("src",e.urlLogo,fe)("decode",!0)}}let WM=(()=>{class t{constructor(e,n,r,o){this.sharedDataCommomService=e,this.commomService=n,this.sharedDataCheckoutService=r,this.sharedDataCustomerCenterService=o,this.urlStore="",this.nameStore=void 0,this.urlLogo="/assets/logo.png?jetev="+Math.random().toFixed(15).replace(".",""),this.dataDevice=""}ngOnInit(){}ngOnDestroy(){this.subscriptionCompany$.unsubscribe(),this.sharedDataCheckoutService$.unsubscribe(),this.sharedDataCustomerCenterService$.unsubscribe()}onElementVisible(){""!==this.dataDevice&&("mobile"===this.dataDevice.toLowerCase()&&!this.commomService.isDevice()||"desktop"===this.dataDevice.toLowerCase()&&this.commomService.isDevice())||(-1==window.location.href.indexOf("localhost")&&(this.urlLogo=document.location.origin+"/custom/logo.png?jetev="+Math.random().toFixed(15).replace(".","")),this.urlStore=document.location.origin,this.subscriptionCompany$=this.sharedDataCommomService.currentCompany$.subscribe(e=>{e&&(this.nameStore=e.nameStore)}),this.sharedDataCheckoutService$=this.sharedDataCheckoutService.currentCompany$.subscribe(e=>{e&&(this.nameStore=e.nameStore)}),this.sharedDataCustomerCenterService$=this.sharedDataCustomerCenterService.currentCompany$.subscribe(e=>{e&&(this.nameStore=e.nameStore)}))}static#e=this.\u0275fac=function(n){return new(n||t)($(yn),$(qt),$($h),$(Bu))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-logo"]],inputs:{dataDevice:["data-device","dataDevice"]},decls:2,vars:1,consts:[["jetVisibilityCheck","",1,"jetlazyload",3,"elementVisible"],["class","jet-logo",4,"ngIf"],[1,"jet-logo"],[3,"href","title"],["alt","logo","jet-image-size","","loading","eager","fetchPriority","high",3,"src","decode"]],template:function(n,r){1&n&&(a(0,"div",0),J("elementVisible",function(){return r.onElementVisible()}),C(1,GM,3,4,"div",1),l()),2&n&&(c(1),d("ngIf",null!=r.nameStore))},dependencies:[en,bs,Yo],encapsulation:2})}return t})();function ZM(t,i){1&t&&(a(0,"div",2)(1,"a",3),h(2," Perguntas Frequentes "),l()())}let QM=(()=>{class t{constructor(e,n){this.companyService=e,this.commomService=n,this.faqs=!1}ngOnInit(){}ngOnDestroy(){this.faqSubs$.unsubscribe()}onElementVisible(){this.faqSubs$=this.companyService.listFaqs().subscribe(e=>{null!=e&&e.toString().length&&(this.faqs=!0,this.commomService.finishLoadComponent("onJetFaqListLoaded"))},e=>{})}static#e=this.\u0275fac=function(n){return new(n||t)($(Qo),$(qt))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-faq-list"]],decls:2,vars:1,consts:[["jetVisibilityCheck","",1,"jetlazyload",3,"elementVisible"],["class","jet-faq-list",4,"ngIf"],[1,"jet-faq-list"],["href","/perguntas-frequentes","title","Perguntas Frequentes"]],template:function(n,r){1&n&&(a(0,"div",0),J("elementVisible",function(){return r.onElementVisible()}),C(1,ZM,3,0,"div",1),l()),2&n&&(c(1),d("ngIf",r.faqs))},dependencies:[en,Yo],encapsulation:2})}return t})();var qi=(()=>(function(t){t[t.eRede=1]="eRede",t[t.itauShopline=2]="itauShopline",t[t.maxiPago=3]="maxiPago",t[t.pagamentoOffline=4]="pagamentoOffline",t[t.marketPlace=5]="marketPlace",t[t.pagSeguro=6]="pagSeguro",t[t.valeCompra=7]="valeCompra",t[t.brasPag=8]="brasPag",t[t.pagHiper=9]="pagHiper",t[t.zapCommerce=10]="zapCommerce",t[t.ebanx=11]="ebanx",t[t.pagamentoDesconto=12]="pagamentoDesconto",t[t.mundipagg=13]="mundipagg",t[t.multiCartoes=14]="multiCartoes",t[t.pagseguroV4=15]="pagseguroV4",t[t.payPal=16]="payPal",t[t.pagSeguroApp=17]="pagSeguroApp",t[t.linkPagamento=18]="linkPagamento",t[t.mercadoPago=19]="mercadoPago",t[t.pagSeguroConnectV4=20]="pagSeguroConnectV4",t[t.pagarMePSP=21]="pagarMePSP",t[t.picPay=22]="picPay",t[t.itauPix=23]="itauPix",t[t.cieloV1=24]="cieloV1",t[t.appMax=25]="appMax",t[t.lyrapay=26]="lyrapay",t[t.pagaleve=27]="pagaleve",t[t.fiserv=28]="fiserv",t[t.iugu=29]="iugu",t[t.paymee=30]="paymee",t[t.payPalStandard=31]="payPalStandard",t[t.payPalEnterprise=32]="payPalEnterprise",t[t.itauBoleto=34]="itauBoleto",t[t.antom=35]="antom"}(qi||(qi={})),qi))(),bt=(()=>(function(t){t[t.credit=1]="credit",t[t.offline=2]="offline",t[t.billet=3]="billet",t[t.deposit=4]="deposit",t[t.paypal=5]="paypal",t[t.cielo=6]="cielo",t[t.bcash=7]="bcash",t[t.furniturecard=8]="furniturecard",t[t.debitOnline=9]="debitOnline",t[t.redecard=10]="redecard",t[t.oneBuy=11]="oneBuy",t[t.pagSeguro=12]="pagSeguro",t[t.debit=14]="debit",t[t.safetyPay=15]="safetyPay",t[t.marketPlace=16]="marketPlace",t[t.voucher=17]="voucher",t[t.zapCommerce=18]="zapCommerce",t[t.discount=19]="discount",t[t.multiCard=20]="multiCard",t[t.payPalCheckout=21]="payPalCheckout",t[t.payPalCheckoutCart=22]="payPalCheckoutCart",t[t.payPalCheckoutTransparent=23]="payPalCheckoutTransparent",t[t.payPalWallet=24]="payPalWallet",t[t.paymentLink=25]="paymentLink",t[t.mercadoPago=26]="mercadoPago",t[t.pix=27]="pix",t[t.picPay=28]="picPay",t[t.pixSplit=29]="pixSplit",t[t.payPalStandardDigitalWallet=30]="payPalStandardDigitalWallet",t[t.payPalStandardCreditDebit=31]="payPalStandardCreditDebit",t[t.payPalEnterpriseGooglePay=32]="payPalEnterpriseGooglePay",t[t.payPalEnterpriseApplePay=33]="payPalEnterpriseApplePay",t[t.payPalEnterpriseCredit=34]="payPalEnterpriseCredit",t[t.payPalEnterpriseWallet=35]="payPalEnterpriseWallet",t[t.payPalEnterpriseDebit=36]="payPalEnterpriseDebit",t[t.pagarMePSPGooglePay=38]="pagarMePSPGooglePay",t[t.pagarMePSPApplePay=39]="pagarMePSPApplePay",t[t.foodVoucher=40]="foodVoucher",t[t.mealVoucher=41]="mealVoucher",t[t.cardPaymentElementInstallment=42]="cardPaymentElementInstallment",t[t.antomApplePay=43]="antomApplePay",t[t.antomGooglePay=44]="antomGooglePay",t[t.cardPaymentElement=45]="cardPaymentElement"}(bt||(bt={})),bt))();class YM{constructor(){this.gateways=[],this.listPaymentMethod=[],this.paymentDiscountText=[],this.hasPagSeguroApp=!1,this.hasMercadoPago=!1,this.hasAppMax=!1,this.hasIugu=!1,this.hasPaymee=!1,this.hasPayPalStandard=!1,this.hasPayPalEnterprise=!1,this.hasPayPalPagarMePSP=!1,this.maximumInstallmentWithoutInterestPagSeguroApp=0,this.informationBoleto="",this.parcelOptionsPagSeguroApp=[],this.loadInstallmentPagSeguroAppExec=!1,this.installmentId=0,this.installmentsByBrand=[],this.installmentsByBrand2=[],this.installmentNumber=0,this.installmentValue=0,this.installmentDiscountValue=0,this.installmentTotal=0,this.interestValue=0,this.installmentNumber2=0,this.installmentDiscountValue2=0,this.installmentValue2=0,this.installmentTotal2=0,this.valueFirstCard=0,this.valueSecondCard=0,this.interestValue2=0,this.debitOnlineSelected=0,this.activeTab=1,this.showVoucher=!1,this.voucherClicked=!1,this.freeShippingVoucher=!1,this.activeGift=!1,this.giftMessage="",this.todayDate=new Date,this.dateMax=new Date,this.dateMin=new Date,this.yearLimitMax=10,this.yearLimitMin=100,this.loading=!1,this.selectedPaymentMethod=void 0,this.typeMethod=bt,this.typeGateway=qi,this.cardTokenMP=null,this.cardTokenIugu=null,this.cardTokenPayPalEnterprise=null,this.selectedIdBrand=0,this.selectedIdBrand2=0,this.numberField=null,this.idSeller=0,this.twoCards=!1,this.canUseTwoCards=!1,this.cardNumber=1,this.segment="B2C",this.hasBonus=!1,this.applyBonus=!1,this.arrayEventListener=[],this.giftInCart=!1,this.isDeliveryWithPickup=!1,this.responsibleForPickup="",this.parcelasPixSplit=Array.from({length:24},(i,e)=>e+1),this.showParcelPaymee=!1,this.showIFramePaymee=!1,this.cellPhonePaymee=null,this.parcelPaymee=null,this.urlIFramePaymee="",this.ignoreClearParcelPaymee=!1,this.idPreOrder=null,this.installmentsOffline=[],this.offlineDiscount=0,this.showModalDistributionCenterStock=!1,this.orderCustomFieldsBind=[],this.installmentsPayPalEnterprise=[],this.installmentsPagarMePSPGooglePay=[],this.installmentsPagarMePSPApplePay=[],this.cavv=null,this.eci=null,this.version=null,this.deviceData=null,this.bin=null,this.lastFourDigits=null,this.showPaymentLink=!1,this.activeCoupons=[],this.enableMultipleCoupons=!1}get activeCoupon(){return this.activeCoupons?.[0]}set activeCoupon(i){this.activeCoupons=i?[i]:[]}addCoupon(i){this.activeCoupons=this.activeCoupons||[],this.activeCoupons.includes(i)||(this.activeCoupons.push(i),localStorage.setItem("couponsAppliedOnCart",JSON.stringify(this.activeCoupons)))}
3removeCoupon(i){this.activeCoupons&&(this.activeCoupons=this.activeCoupons.filter(e=>e!==i),localStorage.setItem("couponsAppliedOnCart",JSON.stringify(this.activeCoupons)))}clearCoupons(){this.activeCoupons=[]}get formCredit(){return this.creditCardForm.controls}get formCredit2(){return this.creditCardForm2.controls}get formPixSplit(){return this.pixSplitForm.controls}validFormCredit(){return this.twoCards?(this.selectedPaymentMethod==bt.credit||this.selectedPaymentMethod==bt.debit)&&this.creditCardForm&&this.creditCardForm.valid&&this.creditCardForm2&&this.creditCardForm2.valid:(this.selectedPaymentMethod==bt.credit||this.selectedPaymentMethod==bt.debit)&&this.creditCardForm&&this.creditCardForm.valid}verifyIfIsComplete(i){let e=!1;var n="";if(void 0!==this.selectedPaymentMethod){if(this.cart&&this.cart.totalShoppingVoucher>0&&0==this.cart.total)e=!0;else if(this.selectedPaymentMethod==bt.paymentLink)e=!0;else if(this.validFormCredit())(null!=this.pagSeguroAppClass&&this.pagSeguroAppClass.showFieldsPagSeguroApp()&&this.commomService.validCPF(this.formCredit.cpf.value)||null!=this.pagSeguroAppClass||!this.pagSeguroAppClass.showFieldsPagSeguroApp()||null!=this.appMaxClass&&this.appMaxClass.showFieldsAppMax()&&this.commomService.validCPF(this.formCredit.cpfCnpj.value))&&(e=!0),this.selectedPaymentMethod==bt.debit&&(e=!(!(r=this.listPaymentMethod.find(o=>o.idPaymentMethod==this.selectedPaymentMethod))||r.paymentBrands.find(o=>o.idBrand==this.selectedIdBrand)?.minimumValue>this.cart.total));else if(this.selectedPaymentMethod==bt.pixSplit&&null!=this.paymeeClass&&this.paymeeClass.showFieldsPaymee()){this.commomService.validCellPhone(this.customer.phone.phoneAdditional)&&""==this.pixSplitForm.controls.phone.value?this.pixSplitForm.controls.phone.setValue(this.customer.phone.phoneAdditional):this.commomService.validCellPhone(this.customer.phone.phone1)&&""==this.pixSplitForm.controls.phone.value?this.pixSplitForm.controls.phone.setValue(this.customer.phone.phone1):this.commomService.validCellPhone(this.customer.phone.phone2)&&""==this.pixSplitForm.controls.phone.value&&this.pixSplitForm.controls.phone.setValue(this.customer.phone.phone2);let o=this.formPixSplit.phone.value.replace("(","").replace(")","").replace("-","").replace(/ /g,"").substring(0,11);if(this.commomService.validCellPhone(o))if(this.paymeeClass.setMaxNumberInstalments(),this.showParcelPaymee=!0,Number(this.formPixSplit.parcel.value)>0)if(r=this.listPaymentMethod.find(u=>u.idPaymentMethod==this.selectedPaymentMethod)){if(r.paymentBrands[0].minimumValue>this.cart.subTotal)e=!1;else if(this.cellPhonePaymee!=o||this.parcelPaymee!=this.formPixSplit.parcel.value){let u=this.listPaymentMethod.findIndex(P=>P.idPaymentMethod==this.selectedPaymentMethod),v=this.customer.address.find(P=>1==P.default);v||(v=this.customer.address.find(P=>0==P.addressType)),this.cellPhonePaymee=o,this.parcelPaymee=this.formPixSplit.parcel.value,this.paymeeClass.setExecutedGeneratePreOrder(!1);let w={idCustomer:this.customer.idCustomer,idAddress:v.idAddress,sessionID:"{sessionID}",message:"",gift:!1,idPaymentBrand:this.listPaymentMethod[u].paymentBrands[0].idPaymentBrand,idInstallment:null,valueFirstCard:0,numberInstallment:this.formPixSplit.parcel.value,valueInstallment:0,valueTotalInstallment:this.cart.total,valueTotalInstallment1:this.cart.total,mobile:!1,metaData:"",idSeller:0,deliveryTime:null,usefulDay:null,orderCreateMultiCard:null,interestValue:0,interestValue2:0,originApp:!1,idPreOrder:null,idEventList:sessionStorage.getItem("idEventList")?Number(sessionStorage.getItem("idEventList")):null,brandBank:"",hash:"",isRecurrent:!1,selectedRecurrentTime:null,typeGateway:qi.paymee,kind:"pixSplit",URLCurrent:location.origin.includes("localhost")?"https://frameworkneo-v3-dev.plataformaneo.com.br":location.origin,userAgent:window.navigator.userAgent,IP:"{ip}",phone:this.formPixSplit.phone.value.trim()};this.paymeeClass.generatePreOrder(w),e=!0}}else e=!1;else e=!1;else e=!1}else if(this.selectedPaymentMethod==bt.offline||this.selectedPaymentMethod==bt.mercadoPago||this.selectedPaymentMethod==bt.pix||this.selectedPaymentMethod==bt.picPay||this.selectedPaymentMethod==bt.billet||this.selectedPaymentMethod==bt.debitOnline||this.selectedPaymentMethod==bt.pixSplit||this.selectedPaymentMethod==bt.payPalStandardDigitalWallet||this.selectedPaymentMethod==bt.payPalStandardCreditDebit||this.selectedPaymentMethod==bt.payPalEnterpriseCredit||this.selectedPaymentMethod==bt.payPalEnterpriseWallet||this.selectedPaymentMethod==bt.payPalEnterpriseGooglePay||this.selectedPaymentMethod==bt.payPalEnterpriseApplePay||this.selectedPaymentMethod==bt.payPalEnterpriseDebit||this.selectedPaymentMethod==bt.pagarMePSPGooglePay||this.selectedPaymentMethod==bt.pagarMePSPApplePay)if(this.selectedPaymentMethod==bt.offline||this.selectedPaymentMethod==bt.pix||this.selectedPaymentMethod==bt.billet||this.selectedPaymentMethod==bt.picPay||this.selectedPaymentMethod==this.typeMethod.pixSplit||this.selectedPaymentMethod==bt.mercadoPago||this.selectedPaymentMethod==bt.payPalStandardDigitalWallet||this.selectedPaymentMethod==bt.payPalStandardCreditDebit||this.selectedPaymentMethod==bt.payPalEnterpriseCredit||this.selectedPaymentMethod==bt.payPalEnterpriseWallet||this.selectedPaymentMethod==bt.payPalEnterpriseGooglePay||this.selectedPaymentMethod==bt.payPalEnterpriseApplePay||this.selectedPaymentMethod==bt.payPalEnterpriseDebit||this.selectedPaymentMethod==bt.pagarMePSPGooglePay||this.selectedPaymentMethod==bt.pagarMePSPApplePay){var r;e=!(!(r=this.listPaymentMethod.find(s=>s.idPaymentMethod==this.selectedPaymentMethod))||(this.selectedPaymentMethod==this.typeMethod.offline&&this.selectedIdBrand?r.paymentBrands.filter(u=>u.idPaymentBrand==this.selectedIdBrand)[0].minimumValue>this.cart.total:r.paymentBrands[0].minimumValue>this.cart.total))}else e=!0;else this.selectedPaymentMethod==bt.discount&&0==this.cart.total&&this.canPayWithDiscount&&(e=!0);if(e){if(this.sharedDataCheckoutService.changeValueActiveTab(3),i){if
3(!document.getElementsByClassName("payment-method active"))return;let o;o=1===document.getElementsByClassName("payment-method active").length?document.getElementsByClassName("payment-method active")[document.getElementsByClassName("payment-method active").length-1]:document.querySelectorAll(".payment-method:not(.shopping-voucher-button).active")[document.querySelectorAll(".payment-method:not(.shopping-voucher-button).active").length-1];let s=o.dataset.id,u=o.dataset.brand,v=o.dataset.brand2;document.querySelector(".jet-payment-summary .payment-method").classList.remove("column"),document.querySelector(".jet-payment-summary .payment-method .value").classList.remove("column"),this.cart.totalShoppingVoucher>0&&0==this.cart.total?(n="shoppingVoucher",document.querySelector(".payment-method .value").innerText="Vale Compra"):this.selectedPaymentMethod==bt.offline?(n="offlinePayment",document.querySelector(".payment-method .value").innerText=""==o?.innerText?"Pagamento Offline":o.innerText+(o.dataset.nameselected?" ("+o.dataset.nameselected+")":"")):this.selectedPaymentMethod==bt.billet?(n="bankslip",document.querySelector(".payment-method .value").innerText="Boleto"):this.selectedPaymentMethod==bt.pix?(n="pix",document.querySelector(".payment-method .value").innerText="Pix"):this.selectedPaymentMethod==bt.pixSplit?(n="pixSplit",document.querySelector(".payment-method .value").innerText="Pix Parcelado"):this.selectedPaymentMethod==bt.picPay?(n="picPay",document.querySelector(".payment-method .value").innerText="PicPay"):this.selectedPaymentMethod==bt.mercadoPago?(n="MPCheckoutVPro",document.querySelector(".payment-method .value").innerText="Mercado Pago"):this.selectedPaymentMethod==bt.debitOnline?(0==this.debitOnlineSelected&&(this.debitOnlineSelected=this.listPaymentMethod.find(w=>w.idPaymentMethod==this.selectedPaymentMethod).paymentBrands[0].idPaymentBrand),n="onlinedebit",document.querySelector(".payment-method .value").innerText="D\xe9bito Online"):this.selectedPaymentMethod==bt.discount?(n="discount",document.querySelector(".payment-method .value").innerText="Cupom de Desconto"):this.selectedPaymentMethod==bt.payPalStandardDigitalWallet?(n="paypal-digital-wallet",document.querySelector(".payment-method .value").innerText="Carteira Digital"):this.selectedPaymentMethod==bt.payPalStandardCreditDebit?(n="paypal-credit-debit",document.querySelector(".payment-method .value").innerText="Cart\xe3o Cr\xe9dito e D\xe9bito"):this.selectedPaymentMethod==bt.payPalEnterpriseCredit?(n="credit",document.querySelector(".payment-method .value").innerText="Cart\xe3o de Cr\xe9dito"):this.selectedPaymentMethod==bt.payPalEnterpriseWallet?(n="wallet",document.querySelector(".payment-method .value").innerText="Carteira Digital"):this.selectedPaymentMethod==bt.payPalEnterpriseGooglePay?(n="google-pay",document.querySelector(".payment-method .value").innerText="Google Pay"):this.selectedPaymentMethod==bt.payPalEnterpriseApplePay?(n="apple-pay",document.querySelector(".payment-method .value").innerText="Apple Pay"):this.selectedPaymentMethod==bt.payPalEnterpriseDebit?(n="debit",document.querySelector(".payment-method .value").innerText="Cart\xe3o de D\xe9bito"):this.selectedPaymentMethod==bt.pagarMePSPGooglePay?(n="googlepay",document.querySelector(".payment-method .value").innerText="Google Pay"):this.selectedPaymentMethod==bt.pagarMePSPApplePay?(n="applepay",document.querySelector(".payment-method .value").innerText="Apple Pay"):this.selectedPaymentMethod==bt.paymentLink?(n="payment-link",document.querySelector(".payment-method .value").innerText="Link de Pagamento"):this.creditCardForm.valid&&(this.selectedPaymentMethod==bt.credit?(n="credit",document.querySelector(".jet-payment-summary .payment-method").classList.add("column"),document.querySelector(".jet-payment-summary .payment-method .value").classList.add("column"),setTimeout(()=>{this.blockInfoInstallmentSummary()},500),document.addEventListener("onJetInstallmentChosedUpdated",w=>{this.blockInfoInstallmentSummary()},{passive:!0,once:!0})):this.selectedPaymentMethod==bt.debit&&(n="debit",document.querySelector(".payment-method .value").innerText="Cart\xe3o de D\xe9bito")),this.getInfoPayment(n,s,u,v)}}else this.putInfoPayment(),setTimeout(()=>{document.querySelector(".payment-method.credit-card.active")&&(document.querySelector(".jet-payment-summary .payment-method .value").textContent="Cart\xe3o de Cr\xe9dito")},50);return e}}blockInfoInstallmentSummary(){if(""!=this.formCredit2.number.value&&this.formCredit2.number.valid){var e=`<span>1\xba Cart\xe3o de Cr\xe9dito${this.formCredit.parcel&&""!=this.formCredit.parcel.value?`: <span> ${this.formCredit.parcel.value}x ${this.commomService.priceMask(this.installmentValue)}</span>`:""}</span>`,r=`<span>2\xba Cart\xe3o de Cr\xe9dito${this.formCredit2.parcel&&""!=this.formCredit2.parcel.value?`: <span> ${this.formCredit2.parcel.value}x ${this.commomService.priceMask(this.installmentValue2)}</span>`:""}</span>`;document.querySelector(".payment-method .value").innerHTML=e+r}else{var o=this.formCredit.parcel&&""!=this.formCredit.parcel.value?`: <span> ${this.formCredit.parcel.value}x ${this.commomService.priceMask(this.installmentValue)}</span>`:"";document.querySelector(".payment-method .value").innerHTML=`<span>Cart\xe3o de Cr\xe9dito${o}</span>`}}getInfoPayment(i,e,n,r){let o,s=this.listPaymentMethod.findIndex(Sm=>Sm.idPaymentMethod==this.selectedPaymentMethod);switch(parseInt(e)){case 7:null!=this.voucher&&null!=this.voucher.idPaymentBrand&&(o={idInstallment:0,idPaymentBrand:this.voucher.idPaymentBrand,message:this.activeGift?this.giftMessage:"",gift:this.activeGift?"on":"off",card:"",nameCard:"",expDateCard:"",cvvCard:"",brandCard:"",installmentNumber:"",kind:"",document:"",idOneClick:0,saveC
3ardOneClick:!1,userAgent:"",hasScheduledDelivery:!1,paymentSession:"",paymentHash:"",dateOfBirth:null,phone:null,installmentValue:0,installmentTotal:0,cardToken:null,googleResponse:null,selectedRecurrentTime:null,labelOneClick:null,quantityInstallment:0,typeGateway:qi.valeCompra},this.sharedDataCheckoutService.changeValuePayment({name:i,gateway:e,json:o}));break;case 18:o={idInstallment:0,idPaymentBrand:324,message:this.activeGift?this.giftMessage:"",gift:this.activeGift?"on":"off",card:"",nameCard:"",expDateCard:"",cvvCard:"",brandCard:"",installmentNumber:"",kind:"",document:"",idOneClick:0,saveCardOneClick:!1,userAgent:"",hasScheduledDelivery:!1,paymentSession:"",paymentHash:"",dateOfBirth:null,phone:null,installmentValue:0,installmentTotal:0,cardToken:null,googleResponse:null,selectedRecurrentTime:null,labelOneClick:null,quantityInstallment:0,typeGateway:qi.linkPagamento},this.sharedDataCheckoutService.changeValuePayment({name:i,gateway:e,json:o});break;case 4:s>-1&&(u=this.listPaymentMethod[s].paymentBrands.filter(Sm=>Sm.idPaymentBrand==n)[0].idPaymentBrand,o={idInstallment:this.installmentId,idPaymentBrand:u,message:this.activeGift?this.giftMessage:"",gift:this.activeGift?"on":"off",card:"",nameCard:"",expDateCard:"",cvvCard:"",brandCard:"",installmentNumber:this.installmentNumber,kind:"",document:"",idOneClick:0,saveCardOneClick:!1,userAgent:"",hasScheduledDelivery:!1,paymentSession:"",paymentHash:"",dateOfBirth:null,phone:null,installmentValue:this.installmentValue,installmentTotal:this.installmentTotal,cardToken:null,googleResponse:null,selectedRecurrentTime:null,labelOneClick:null,quantityInstallment:0,typeGateway:qi.pagamentoOffline},this.sharedDataCheckoutService.changeValuePayment({name:i,gateway:e,json:o}));break;case 17:if("credit"==i){let Sm=this.installmentNumber,fQ=this.installmentValue,pQ=this.installmentTotal,gQ=this.interestValue;if(""==n)this.commomService.displayMessageUser("error","N\xfamero do Cart\xe3o inv\xe1lido ou bandeira n\xe3o dispon\xedvel na loja");else{let Oy=this.listPaymentMethod[s].paymentBrands.findIndex(Dd=>Dd.name.toLowerCase()==n);if(-1==Oy)this.commomService.displayMessageUser("error","N\xfamero do Cart\xe3o inv\xe1lido ou bandeira n\xe3o dispon\xedvel na loja");else if(s>-1){var u=this.listPaymentMethod[s].paymentBrands[Oy].idPaymentBrand,v=this.formCredit.number.value.replace(/ /g,""),w=this.formCredit.name.value.trim(),P=this.formCredit.validDate.value.trim(),F=this.formCredit.cvv.value.trim(),R=this.formCredit.cpf.value.trim().replaceAll(".","").replace("-",""),V=this.formCredit.dateOfBirth.value.trim(),ne=new Date(V.split("/")[2],V.split("/")[1]-1,V.split("/")[0]),De=this.formCredit.phone.value.trim(),ke=this.activeGift,je=this.giftMessage;PagSeguroDirectPayment.createCardToken({cardNumber:this.formCredit.number.value.replace(/ /g,""),brand:n,cvv:this.formCredit.cvv.value,expirationMonth:this.formCredit.validDate.value.split("/")[0],expirationYear:2==this.formCredit.validDate.value.split("/")[1].length?"20"+this.formCredit.validDate.value.split("/")[1]:this.formCredit.validDate.value.split("/")[1],success:Dd=>{o={idInstallment:0,idPaymentBrand:u,message:ke?je:"",gift:ke?"on":"off",card:v,nameCard:w,expDateCard:P,cvvCard:F,brandCard:n,installmentNumber:Sm,interestValue:gQ,kind:"credit",document:R,idOneClick:0,saveCardOneClick:!1,userAgent:"",hasScheduledDelivery:!1,paymentSession:"",paymentHash:PagSeguroDirectPayment.getSenderHash(),dateOfBirth:ne,phone:De,installmentValue:fQ,installmentTotal:pQ,cardToken:Dd.card.token,googleResponse:null,selectedRecurrentTime:null,labelOneClick:null,typeGateway:qi.pagSeguroApp},this.sharedDataCheckoutService.changeValuePayment({name:i,gateway:e,json:o})},error:function(Dd){this.commomService.displayMessageUser("error","N\xe3o foi poss\xedvel gerar o token do cart\xe3o no Pagseguro.")}})}}}else"bankslip"==i?(o={idInstallment:0,idPaymentBrand:this.listPaymentMethod[s].paymentBrands[0].idPaymentBrand,message:this.activeGift?this.giftMessage:"",gift:this.activeGift?"on":"off",card:"",nameCard:"",expDateCard:"",cvvCard:"",brandCard:"",installmentNumber:"",kind:"boleto",document:"",idOneClick:0,saveC
3ardOneClick:!1,userAgent:"",hasScheduledDelivery:!1,paymentSession:"",paymentHash:PagSeguroDirectPayment.getSenderHash(),dateOfBirth:null,phone:null,installmentValue:0,installmentTotal:0,cardToken:null,googleResponse:null,selectedRecurrentTime:null,labelOneClick:null,quantityInstallment:0,typeGateway:17},this.sharedDataCheckoutService.changeValuePayment({name:i,gateway:e,json:o})):"onlinedebit"==i&&(o={idInstallment:0,idPaymentBrand:this.debitOnlineSelected,message:this.activeGift?this.giftMessage:"",gift:this.activeGift?"on":"off",card:"",nameCard:"",expDateCard:"",cvvCard:"",brandCard:"",installmentNumber:"",kind:"debit",document:"",idOneClick:0,saveCardOneClick:!1,userAgent:"",hasScheduledDelivery:!1,paymentSession:"",paymentHash:PagSeguroDirectPayment.getSenderHash(),dateOfBirth:null,phone:null,installmentValue:0,installmentTotal:0,cardToken:null,googleResponse:null,selectedRecurrentTime:null,labelOneClick:null,quantityInstallment:0,typeGateway:17},this.sharedDataCheckoutService.changeValuePayment({name:i,gateway:e,json:o}));break;case 12:this.canPayWithDiscount&&(o={idInstallment:0,idPaymentBrand:this.listPaymentMethod[s].paymentBrands[0].idPaymentBrand,message:this.activeGift?this.giftMessage:"",gift:this.activeGift?"on":"off",card:"",nameCard:"",expDateCard:"",cvvCard:"",brandCard:"",installmentNumber:"",kind:"",document:"",idOneClick:0,saveCardOneClick:!1,userAgent:"",hasScheduledDelivery:!1,paymentSession:"",paymentHash:"",dateOfBirth:null,phone:null,installmentValue:0,installmentTotal:0,cardToken:null,googleResponse:null,selectedRecurrentTime:null,labelOneClick:null,quantityInstallment:0,typeGateway:12},this.sharedDataCheckoutService.changeValuePayment({name:i,gateway:e,json:o}));break;case 1:if(s>-1){var Sn=null;if(this.selectedPaymentMethod==bt.credit||this.selectedPaymentMethod==bt.debit?(v=this.formCredit.number.value.replace(/ /g,""),w=this.formCredit.name.value.trim(),P=this.formCredit.validDate.value.trim(),F=this.formCredit.cvv.value.trim(),at=this.formCredit.number.value.replace(/ /g,""),Ie=this.formCredit.cvv.value.trim(),xt=this.formCredit.validDate.value.trim(),u=this.listPaymentMethod[s].paymentBrands.filter(Dd=>Dd.name.toLowerCase()===n)[0].idPaymentBrand):(u=this.listPaymentMethod[s].paymentBrands[0].idPaymentBrand,v="",w="",P="",at="",Ie="",xt="","bankslip"===i&&(i="boleto")),ke=this.activeGift,je=this.giftMessage,this.selectedPaymentMethod==bt.credit&&this.formCredit.parcel&&""!=this.formCredit.parcel.value&&this.installmentsByBrand.length>0)var ti=(Jt=this.installmentsByBrand.filter(Dd=>Dd.installmentNumber===parseInt(this.formCredit.parcel.value))[0]).idInstallment,ri=Jt.installmentNumber,oi=Jt.value,li=Jt.total,fi=null;else ti=null,ri=null,oi=null,li=this.cart.total,fi=null;o={message:this.activeGift?this.giftMessage:"",gift:this.activeGift?"on":"off",idPaymentBrand:u,idInstallment:ti,installmentNumber:ri,installmentValue:oi,installmentTotal:li,orderCreateMultiCard:null,interestValue:fi,originApp:!0,idPreOrder:null,brandBank:"",paymentHash:"",isRecurrent:!1,selectedRecurrentTime:null,typeGateway:qi.eRede,cardNumber:at,expirationDate:xt,cardCVV:Ie,cardBrand:n,nameCard:w,dateOfBirth:"",document:"",phone:"",cardToken:null,kind:i,urlCurrent:location.origin,userAgent:window.navigator.userAgent},this.sharedDataCheckoutService.changeValuePayment({name:i,gateway:e,json:o})}break;case 19:if(s>-1){if(Sn=null,ke=this.activeGift,je=this.giftMessage,ti=null,ri=null,oi=null,li=this.cart.total,fi=null,"bankslip"===i||"pix"===i||"picPay"===i||"MPCheckoutVPro"===i)u=this.listPaymentMethod[s].paymentBrands[0].idPaymentBrand,v="",w="",P="",at="",Ie="",xt="","bankslip"===i&&(i="boleto");else if(v=this.formCredit.number.value.replace(/ /g,""),w=this.formCredit.name.value.trim(),P=this.formCredit.validDate.value.trim(),at=this.formCredit.number.value.replace(/ /g,""),Ie=this.formCredit.cvv.value.trim(),xt=this.formCredit.validDate.value.trim(),u=this.listPaymentMethod[s].paymentBrands.filter(Qp=>Qp.name.toLowerCase()===n)[0].idPaymentBrand,ti=this.installmentId,ri=this.installmentNumber,oi=this.installmentValue,li=this.installmentTotal,fi=this.interestValue,n=this.paymentMethodId??this.paymentMethodId,this.mercadoPagoClass.show
3FieldsMercadoPago()&&!this.cardTokenMP){let Qp="CPF",Ry=this.formCredit.docNumber.value.replace(/\D+/g,"");Ry.length>11&&(Qp="CNPJ"),this.mercadoPagoClass.getCardToken(this.customer.email,v,Ie,P.split("/")[0],P.split("/")[1],w,Qp,Ry,this.formCredit.issuer.value,this.installmentNumber,this.installmentTotal,this.paymentMethodId,"")}null==Sn&&this.mercadoPagoClass.showFieldsMercadoPago()&&this.cardTokenMP&&(Sn=this.cardTokenMP),o={message:this.activeGift?this.giftMessage:"",gift:this.activeGift?"on":"off",idPaymentBrand:u,idInstallment:ti,installmentNumber:ri,installmentValue:oi,installmentTotal:"MPCheckoutVPro"===i?this.updateDiscount(n,!0):li,orderCreateMultiCard:null,interestValue:fi,originApp:!0,idPreOrder:null,brandBank:"",paymentHash:"",isRecurrent:!1,selectedRecurrentTime:null,typeGateway:qi.mercadoPago,cardNumber:at,expirationDate:xt,cardCVV:Ie,cardBrand:n,nameCard:w,dateOfBirth:"",document:"",phone:"",cardToken:Sn,kind:i,urlCurrent:location.origin,userAgent:window.navigator.userAgent},this.sharedDataCheckoutService.changeValuePayment({name:i,gateway:e,json:o})}break;case 20:s>-1&&(Sn=null,this.selectedPaymentMethod==bt.credit||this.selectedPaymentMethod==bt.debit?(v=this.formCredit.number.value.replace(/ /g,""),w=this.formCredit.name.value.trim(),P=this.formCredit.validDate.value.trim(),F=this.formCredit.cvv.value.trim(),at=this.formCredit.number.value.replace(/ /g,""),Ie=this.formCredit.cvv.value.trim(),xt=this.formCredit.validDate.value.trim(),u=this.listPaymentMethod[s].paymentBrands.filter(wm=>wm.name.toLowerCase()===n)[0].idPaymentBrand):(u=this.listPaymentMethod[s].paymentBrands[0].idPaymentBrand,v="",w="",P="",at="",Ie="",xt="","bankslip"===i&&(i="boleto")),ke=this.activeGift,je=this.giftMessage,this.selectedPaymentMethod==bt.credit&&this.formCredit.parcel&&""!=this.formCredit.parcel.value&&this.installmentsByBrand.length>0?(ti=(Jt=this.installmentsByBrand.filter(Im=>Im.installmentNumber===parseInt(this.formCredit.parcel.value))[0]).idInstallment,ri=Jt.installmentNumber,oi=Jt.value,li=Jt.total,fi=null):(ti=null,ri=null,oi=null,li=this.cart.total,fi=null),o={message:this.activeGift?this.giftMessage:"",gift:this.activeGift?"on":"off",idPaymentBrand:u,idInstallment:ti,installmentNumber:ri,installmentValue:oi,installmentTotal:li,orderCreateMultiCard:null,interestValue:fi,originApp:!0,idPreOrder:null,brandBank:"",paymentHash:"",isRecurrent:!1,selectedRecurrentTime:null,typeGateway:qi.pagSeguroConnectV4,cardNumber:at,expirationDate:xt,cardCVV:Ie,cardBrand:n,nameCard:w,dateOfBirth:"",document:"",phone:"",cardToken:null,kind:i,urlCurrent:location.origin,userAgent:window.navigator.userAgent},this.sharedDataCheckoutService.changeValuePayment({name:i,gateway:e,json:o}));break;case 13:if(s>-1){if(Sn=null,this.selectedPaymentMethod==bt.credit||this.selectedPaymentMethod==bt.debit?(v=this.formCredit.number.value.replace(/ /g,""),w=this.formCredit.name.value.trim(),P=this.formCredit.validDate.value.trim(),F=this.formCredit.cvv.value.trim(),at=this.formCredit.number.value.replace(/ /g,""),Ie=this.formCredit.cvv.value.trim(),xt=this.formCredit.validDate.value.trim(),u=this.listPaymentMethod[s].paymentBrands.filter(wm=>wm.name.toLowerCase()===n)[0].idPaymentBrand,this.twoCards?(Ji=this.valueFirstCard,Zi=this.valueSecondCard,Ii=this.formCredit2.name.value.trim(),xi=this.formCredit2.number.value.replace(/ /g,""),Di=this.formCredit2.cvv.value.trim(),si=this.formCredit2.validDate.value.trim(),Pi=this.listPaymentMethod[s].paymentBrands.filter(wm=>wm.name.toLowerCase()===r)[0].idPaymentBrand):(Ji=void 0,Zi=void 0,Ii=void 0,xi=void 0,Di=void 0,si=void 0,Pi=void 0)):(u=this.listPaymentMethod[s].paymentBrands[0].idPaymentBrand,Ji="",Zi="",v="",w="",P="",at="",Ie="",xt="","bankslip"===i&&(i="boleto")),ke=this.activeGift,je=this.giftMessage,this.selectedPaymentMethod==bt.credit&&this.formCredit.parcel&&""!=this.formCredit.parcel.value&&this.installmentsByBrand.length>0){if(ti=(Jt=this.installmentsByBrand.filter(Im=>Im.installmentNumber===parseInt(this.formCredit.parcel.value))[0]).idInstallment,ri=Jt.installmentNumber,oi=Jt.value,li=Jt.total,fi=null,this.twoCards)var ws=(hi=this.installmentsByBrand2.filter(Im=>Im.installmentNumber===parseInt(this.formCredit2.parcel.value))[0]).idInstallment,Is=hi.installmentNumber,xs=hi.value,fa=
3hi.total,pa=null}else ti=null,ri=null,oi=null,li=this.cart.total,fi=null;o={message:this.activeGift?this.giftMessage:"",gift:this.activeGift?"on":"off",idPaymentBrand:u,idPaymentBrand2:Pi,idInstallment:ti,idInstallment2:ws,installmentNumber:ri,installmentNumber2:Is,installmentValue:oi,installmentValue2:xs,installmentTotal:li,installmentTotal2:fa,orderCreateMultiCard:null,interestValue:fi,interestValue2:pa,originApp:!0,idPreOrder:null,brandBank:"",paymentHash:"",isRecurrent:!1,selectedRecurrentTime:null,typeGateway:qi.mundipagg,valueFirstCard:Ji,valueSecondCard:Zi,cardNumber:at,cardNumber2:xi,expirationDate:xt,expirationDate2:si,cardCVV:Ie,cardCVV2:Di,cardBrand:n,cardBrand2:r,nameCard:w,nameCard2:Ii,dateOfBirth:"",document:"",phone:"",cardToken:null,kind:i,urlCurrent:location.origin,userAgent:window.navigator.userAgent,twoCards:this.twoCards},this.sharedDataCheckoutService.changeValuePayment({name:i,gateway:e,json:o})}break;case 21:s>-1&&(Sn=null,this.selectedPaymentMethod==bt.credit||this.selectedPaymentMethod==bt.debit?(v=this.formCredit.number.value.replace(/ /g,""),w=this.formCredit.name.value.trim(),P=this.formCredit.validDate.value.trim(),F=this.formCredit.cvv.value.trim(),at=this.formCredit.number.value.replace(/ /g,""),Ie=this.formCredit.cvv.value.trim(),xt=this.formCredit.validDate.value.trim(),u=this.listPaymentMethod[s].paymentBrands.filter(Ds=>Ds.name.toLowerCase()===n)[0].idPaymentBrand,this.twoCards?(Ji=this.valueFirstCard,Zi=this.valueSecondCard,Ii=this.formCredit2.name.value.trim(),xi=this.formCredit2.number.value.replace(/ /g,""),Di=this.formCredit2.cvv.value.trim(),si=this.formCredit2.validDate.value.trim(),Pi=this.listPaymentMethod[s].paymentBrands.filter(Ds=>Ds.name.toLowerCase()===r)[0].idPaymentBrand):(Ji=void 0,Zi=void 0,Ii=void 0,xi=void 0,Di=void 0,si=void 0,Pi=void 0)):(u=this.listPaymentMethod[s].paymentBrands[0].idPaymentBrand,Ji="",Zi="",v="",w="",P="",at="",Ie="",xt="","bankslip"===i&&(i="boleto"),"googlepay"==i?Sn=this.tokenGooglePayPagarMePSP:"applepay"==i&&(Sn=this.tokenApplePayPagarMePSP)),ke=this.activeGift,je=this.giftMessage,this.selectedPaymentMethod==bt.credit&&this.formCredit.parcel&&""!=this.formCredit.parcel.value&&this.installmentsByBrand.length>0?(ti=(Jt=this.installmentsByBrand.filter(Dm=>Dm.installmentNumber===parseInt(this.formCredit.parcel.value))[0]).idInstallment,ri=Jt.installmentNumber,oi=Jt.value,li=Jt.total,fi=null,this.twoCards&&(ws=(hi=this.installmentsByBrand2.filter(Tm=>Tm.installmentNumber===parseInt(this.formCredit2.parcel.value))[0]).idInstallment,Is=hi.installmentNumber,xs=hi.value,fa=hi.total,pa=null)):this.selectedPaymentMethod==bt.pagarMePSPGooglePay||this.selectedPaymentMethod==bt.pagarMePSPApplePay?(ti=this.installmentId,ri=this.installmentNumber,oi=this.installmentValue,li=this.installmentTotal,fi=this.interestValue):(ti=null,ri=null,oi=null,li=this.cart.total,fi=null),o={message:this.activeGift?this.giftMessage:"",gift:this.activeGift?"on":"off",idPaymentBrand:u,idPaymentBrand2:Pi,idInstallment:ti,idInstallment2:ws,installmentNumber:ri,installmentNumber2:Is,installmentValue:oi,installmentValue2:xs,installmentTotal:li,installmentTotal2:fa,orderCreateMultiCard:null,interestValue:fi,interestValue2:pa,originApp:!0,idPreOrder:null,brandBank:"",paymentHash:"",isRecurrent:!1,selectedRecurrentTime:null,typeGateway:qi.pagarMePSP,valueFirstCard:Ji,valueSecondCard:Zi,cardNumber:at,cardNumber2:xi,expirationDate:xt,expirationDate2:si,cardCVV:Ie,cardCVV2:Di,cardBrand:n,cardBrand2:r,nameCard:w,nameCard2:Ii,dateOfBirth:"",document:"",phone:"",cardToken:Sn,kind:i,urlCurrent:location.origin,userAgent:window.navigator.userAgent,twoCards:this.twoCards},this.sharedDataCheckoutService.changeValuePayment({name:i,gateway:e,json:o}));break;case 9:"bankslip"===i&&(i="boleto"),o={idInstallment:0,idPaymentBrand:this.listPaymentMethod[s].paymentBrands[0].idPaymentBrand,message:this.activeGift?this.giftMessage:"",gift:this.activeGift?"on":"off",card:"",nameCard:"",expDateCard:"",cvvCard:"",brandCard:"",installmentNumber:"",kind:i,document:"",idOneClick:0,saveCardOneClick:!1,userAgent:"",hasScheduledDelivery:!1,paymentSession:"",paymentHash:"",dateOfBirth:null,phone:null,installmentValue:0,installmentTotal:0,cardToken:null,googleResponse:null,selectedRecurrentTime:null,labelOneClick:null,quantityInstallment:0,typeGateway:qi.pagHiper};break;case 8:s>-1&&(Sn=null,this.selectedPaymentMethod==bt.credit||this.selectedPaymentMethod==bt.debit?(v=this.formCredit.number.value.replace(/ /g,""),w=this.formCredit.name.value.trim(),P=this.formCredit.validDate.value.trim(),F=this.formCredit.cvv.value.trim(),at=this.formCredit.number.value.replace(/ /g,""),Ie=this.formCredit.cvv.value.trim(),xt=this.formCredit.validDate.value.trim(),u=this.listPaymentMethod[s].paymentBrands.filter(Ds=>Ds.name.toLowerCase()===n)[0].idPaymentBrand,this.twoCards?(Ji=this.valueFirstCard,Zi=this.valueSecondCard,Ii=this.formCredit2.name.value.trim(),xi=this.formCredit2.number.value.replace(/ /g,""),Di=this.formCredit2.cvv.value.trim(),si=this.formCredit2.validDate.value.trim(),Pi=this.listPaymentMethod[s].paymentBrands.filter(Ds=>Ds.name.toLowerCase()===r)[0].idPaymentBrand):(Ji=void 0,Zi=void 0,Ii=void 0,xi=void 0,Di=void 0,si=void 0,Pi=void 0)):(u=this.listPaymentMethod[s].paymentBrands[0].idPaymentBrand,Ji="",Zi="",v="",w="",P="",at="",Ie="",xt="","bankslip"===i&&(i="boleto")),ke=this.activeGift,je=this.giftMessage,this.selectedPaymentMethod==bt.credit&&this.formCredit.parcel&&""!=this.formCredit.parcel.value&&this.installmentsByBrand.length>0?(ti=(Jt=this.installmentsByBrand.filter(Dm=>Dm.installmentNumber===parseInt(this.formCredit.parcel.value))[0]).idInstallment,ri=Jt.installmentNumber,oi=Jt.value,li=Jt.total,fi=null,this.twoCards&&(ws=(hi=this.installmentsByBrand2.filter(Tm=>Tm.installmentNumber===parseInt(this.formCredit2.parcel.value))[0]).idInstallment,Is=hi.installmentNumber,xs=hi.value,fa=
3hi.total,pa=null)):(ti=null,ri=null,oi=null,li=this.cart.total,fi=null),o={message:this.activeGift?this.giftMessage:"",gift:this.activeGift?"on":"off",idPaymentBrand:u,idPaymentBrand2:Pi,idInstallment:ti,idInstallment2:ws,installmentNumber:ri,installmentNumber2:Is,installmentValue:oi,installmentValue2:xs,installmentTotal:li,installmentTotal2:fa,orderCreateMultiCard:null,interestValue:fi,interestValue2:pa,originApp:!0,idPreOrder:null,brandBank:"",paymentHash:"",isRecurrent:!1,selectedRecurrentTime:null,typeGateway:qi.brasPag,valueFirstCard:Ji,valueSecondCard:Zi,cardNumber:at,cardNumber2:xi,expirationDate:xt.split("/")[0]+"/20"+xt.split("/")[1],expirationDate2:si?.split("/")[0]+"/20"+si?.split("/")[1],cardCVV:Ie,cardCVV2:Di,cardBrand:n,cardBrand2:r,nameCard:w,nameCard2:Ii,dateOfBirth:"",document:"",phone:"",cardToken:null,kind:i,urlCurrent:location.origin,userAgent:window.navigator.userAgent,twoCards:this.twoCards},this.sharedDataCheckoutService.changeValuePayment({name:i,gateway:e,json:o}));break;case 2:"bankslip"===i&&(i="boleto"),o={idInstallment:0,idPaymentBrand:this.listPaymentMethod[s].paymentBrands[0].idPaymentBrand,message:this.activeGift?this.giftMessage:"",gift:this.activeGift?"on":"off",card:"",nameCard:"",expDateCard:"",cvvCard:"",brandCard:"",installmentNumber:"",kind:i,document:"",idOneClick:0,saveCardOneClick:!1,userAgent:"",hasScheduledDelivery:!1,paymentSession:"",paymentHash:"",dateOfBirth:null,phone:null,installmentValue:0,installmentTotal:0,cardToken:null,googleResponse:null,selectedRecurrentTime:null,labelOneClick:null,quantityInstallment:0,typeGateway:qi.itauShopline},this.sharedDataCheckoutService.changeValuePayment({name:i,gateway:e,json:o});break;case 22:"bankslip"===i&&(i="boleto"),o={idInstallment:0,idPaymentBrand:this.listPaymentMethod[s].paymentBrands[0].idPaymentBrand,message:this.activeGift?this.giftMessage:"",gift:this.activeGift?"on":"off",card:"",nameCard:"",expDateCard:"",cvvCard:"",brandCard:"",installmentNumber:"",kind:i,document:"",idOneClick:0,saveCardOneClick:!1,userAgent:"",hasScheduledDelivery:!1,paymentSession:"",paymentHash:"",dateOfBirth:null,phone:null,installmentValue:0,installmentTotal:0,cardToken:null,googleResponse:null,selectedRecurrentTime:null,labelOneClick:null,quantityInstallment:0,typeGateway:qi.picPay};break;case 23:o={idInstallment:0,idPaymentBrand:this.listPaymentMethod[s].paymentBrands[0].idPaymentBrand,message:this.activeGift?this.giftMessage:"",gift:this.activeGift?"on":"off",card:"",nameCard:"",expDateCard:"",cvvCard:"",brandCard:"",installmentNumber:"",kind:i,document:"",idOneClick:0,saveCardOneClick:!1,userAgent:"",hasScheduledDelivery:!1,paymentSession:"",paymentHash:"",dateOfBirth:null,phone:null,installmentValue:0,installmentTotal:0,cardToken:null,googleResponse:null,selectedRecurrentTime:null,labelOneClick:null,quantityInstallment:0,typeGateway:qi.itauPix};break;case 24:s>-1&&(Sn=null,this.selectedPaymentMethod==bt.credit||this.selectedPaymentMethod==bt.debit?(v=this.formCredit.number.value.replace(/ /g,""),w=this.formCredit.name.value.trim(),P=this.formCredit.validDate.value.trim(),F=this.formCredit.cvv.value.trim(),at=this.formCredit.number.value.replace(/ /g,""),Ie=this.formCredit.cvv.value.trim(),xt=this.formCredit.validDate.value.trim(),u=this.listPaymentMethod[s].paymentBrands.filter(Ds=>Ds.name.toLowerCase()===n)[0].idPaymentBrand,this.twoCards?(Ji=this.valueFirstCard,Zi=this.valueSecondCard,Ii=this.formCredit2.name.value.trim(),xi=this.formCredit2.number.value.replace(/ /g,""),Di=this.formCredit2.cvv.value.trim(),si=this.formCredit2.validDate.value.trim(),Pi=this.listPaymentMethod[s].paymentBrands.filter(Ds=>Ds.name.toLowerCase()===r)[0].idPaymentBrand):(Ji=void 0,Zi=void 0,Ii=void 0,xi=void 0,Di=void 0,si=void 0,Pi=void 0)):(u=this.listPaymentMethod[s].paymentBrands[0].idPaymentBrand,Ji="",Zi="",v="",w="",P="",at="",Ie="",xt="","bankslip"===i&&(i="boleto")),ke=this.activeGift,je=this.giftMessage,this.selectedPaymentMethod==bt.credit&&this.formCredit.parcel&&""!=this.formCredit.parcel.value&&this.installmentsByBrand.length>0?(ti=(Jt=this.installmentsByBrand.filter(Dm=>Dm.installmentNumber===parseInt(this.formCredit.parcel.value))[0]).idInstallment,ri=Jt.installmentNumber,oi=Jt.value,li=Jt.total,fi=null,this.twoCards&&(ws=(hi=this.installmentsByBrand2.filter(Tm=>Tm.installmentNumber===parseInt(this.formCredit2.parcel.value))[0]).idInstallment,Is=hi.installmentNumber,xs=hi.value,fa=
3hi.total,pa=null)):(ti=null,ri=null,oi=null,li=this.cart.total,fi=null),o={message:this.activeGift?this.giftMessage:"",gift:this.activeGift?"on":"off",idPaymentBrand:u,idPaymentBrand2:Pi,idInstallment:ti,idInstallment2:ws,installmentNumber:ri,installmentNumber2:Is,installmentValue:oi,installmentValue2:xs,installmentTotal:li,installmentTotal2:fa,orderCreateMultiCard:null,interestValue:fi,interestValue2:pa,originApp:!0,idPreOrder:null,brandBank:"",paymentHash:"",isRecurrent:!1,selectedRecurrentTime:null,typeGateway:qi.cieloV1,valueFirstCard:Ji,valueSecondCard:Zi,cardNumber:at,cardNumber2:xi,expirationDate:xt.split("/")[0]+"/20"+xt.split("/")[1],expirationDate2:si?.split("/")[0]+"/20"+si?.split("/")[1],cardCVV:Ie,cardCVV2:Di,cardBrand:n,cardBrand2:r,nameCard:w,nameCard2:Ii,dateOfBirth:"",document:"",phone:"",cardToken:null,kind:i,urlCurrent:location.origin,userAgent:window.navigator.userAgent,twoCards:this.twoCards},this.sharedDataCheckoutService.changeValuePayment({name:i,gateway:e,json:o}));break;case 25:var Ji,Zi,pv;if(s>-1)Sn=null,this.selectedPaymentMethod==bt.credit||this.selectedPaymentMethod==bt.debit?(v=this.formCredit.number.value.replace(/ /g,""),w=this.formCredit.name.value.trim(),P=this.formCredit.validDate.value.trim(),F=this.formCredit.cvv.value.trim(),at=this.formCredit.number.value.replace(/ /g,""),Ie=this.formCredit.cvv.value.trim(),xt=this.formCredit.validDate.value.trim(),u=this.listPaymentMethod[s].paymentBrands.filter(Ds=>Ds.name.toLowerCase()===n)[0].idPaymentBrand,pv=this.formCredit.cpfCnpj.value.trim().replaceAll(".","").replace("-",""),this.twoCards?(Ji=this.valueFirstCard,Zi=this.valueSecondCard,Ii=this.formCredit2.name.value.trim(),xi=this.formCredit2.number.value.replace(/ /g,""),Di=this.formCredit2.cvv.value.trim(),si=this.formCredit2.validDate.value.trim(),Pi=this.listPaymentMethod[s].paymentBrands.filter(Ds=>Ds.name.toLowerCase()===r)[0].idPaymentBrand):(Ji=void 0,Zi=void 0,Ii=void 0,xi=void 0,Di=void 0,si=void 0,Pi=void 0)):(u=this.listPaymentMethod[s].paymentBrands[0].idPaymentBrand,Ji="",Zi="",v="",w="",P="",at="",Ie="",xt="",pv="","bankslip"===i&&(i="boleto")),ke=this.activeGift,je=this.giftMessage,o={message:this.activeGift?this.giftMessage:"",gift:this.activeGift?"on":"off",idPaymentBrand:u,idPaymentBrand2:Pi,idInstallment:ti,installmentNumber:this.installmentNumber,installmentValue:this.installmentValue,installmentTotal:this.installmentTotal,orderCreateMultiCard:null,interestValue:this.interestValue,originApp:!0,idPreOrder:null,brandBank:"",paymentHash:"",isRecurrent:!1,selectedRecurrentTime:null,typeGateway:qi.appMax,valueFirstCard:Ji,valueSecondCard:Zi,cardNumber:at,cardNumber2:xi,expirationDate:xt.split("/")[0]+"/20"+xt.split("/")[1],expirationDate2:si?.split("/")[0]+"/20"+si?.split("/")[1],cardCVV:Ie,cardCVV2:Di,cardBrand:n,cardBrand2:r,nameCard:w,nameCard2:Ii,dateOfBirth:"",document:pv,phone:"",cardToken:null,kind:i,urlCurrent:location.origin,userAgent:window.navigator.userAgent,twoCards:this.twoCards},this.sharedDataCheckoutService.changeValuePayment({name:i,gateway:e,json:o});break;case 26:s>-1&&(Sn=null,this.selectedPaymentMethod==bt.credit||this.selectedPaymentMethod==bt.debit?(v=this.formCredit.number.value.replace(/ /g,""),w=this.formCredit.name.value.trim(),P=this.formCredit.validDate.value.trim(),F=this.formCredit.cvv.value.trim(),at=this.formCredit.number.value.replace(/ /g,""),Ie=this.formCredit.cvv.value.trim(),xt=this.formCredit.validDate.value.trim(),u=this.listPaymentMethod[s].paymentBrands.filter(kc=>kc.name.toLowerCase()===n)[0].idPaymentBrand,this.twoCards?(Ii=this.formCredit2.name.value.trim(),xi=this.formCredit2.number.value.replace(/ /g,""),Di=this.formCredit2.cvv.value.trim(),si=this.formCredit2.validDate.value.trim(),Pi=this.listPaymentMethod[s].paymentBrands.filter(kc=>kc.name.toLowerCase()===r)[0].idPaymentBrand):(Ii=void 0,xi=void 0,Di=void 0,si=void 0,Pi=void 0)):(u=this.listPaymentMethod[s].paymentBrands[0].idPaymentBrand,v="",w="",P="",at="",Ie="",xt="","bankslip"===i&&(i="boleto")),ke=this.activeGift,je=this.giftMessage,this.selectedPaymentMethod==bt.credit&&this.formCredit.parcel&&""!=this.formCredit.parcel.value&&this.installmentsByBrand.length>0?(ti=(Jt=this.installmentsByBrand.filter(xm=>xm.installmentNumber===parseInt(this.formCredit.parcel.value))[0]).idInstallment,ri=Jt.installmentNumber,oi=Jt.value,li=Jt.total,fi=null,this.twoCards&&(ws=(hi=this.installmentsByBrand2.filter(Pm=>Pm.installmentNumber===parseInt(this.formCredit2.parcel.value))[0]).idInstallment,Is=hi.installmentNumber,xs=hi.value,fa=
3hi.total,pa=null)):(ti=null,ri=null,oi=null,li=this.cart.total,fi=null),o={message:this.activeGift?this.giftMessage:"",gift:this.activeGift?"on":"off",idPaymentBrand:u,idPaymentBrand2:Pi,idInstallment:ti,idInstallment2:ws,installmentNumber:ri,installmentNumber2:Is,installmentValue:oi,installmentValue2:xs,installmentTotal:li,installmentTotal2:fa,orderCreateMultiCard:null,interestValue:fi,interestValue2:pa,originApp:!0,idPreOrder:null,brandBank:"",paymentHash:"",isRecurrent:!1,selectedRecurrentTime:null,typeGateway:qi.lyrapay,cardNumber:at,cardNumber2:xi,expirationDate:xt.split("/")[0]+"/20"+xt.split("/")[1],expirationDate2:si?.split("/")[0]+"/20"+si?.split("/")[1],cardCVV:Ie,cardCVV2:Di,cardBrand:n,cardBrand2:r,nameCard:w,nameCard2:Ii,dateOfBirth:"",document:"",phone:"",cardToken:null,kind:i,urlCurrent:location.origin,userAgent:window.navigator.userAgent,twoCards:this.twoCards},this.sharedDataCheckoutService.changeValuePayment({name:i,gateway:e,json:o}));break;case 27:o={idInstallment:0,idPaymentBrand:this.listPaymentMethod[s].paymentBrands[0].idPaymentBrand,message:this.activeGift?this.giftMessage:"",gift:this.activeGift?"on":"off",card:"",nameCard:"",expDateCard:"",cvvCard:"",brandCard:"",installmentNumber:"",kind:i,document:"",idOneClick:0,saveCardOneClick:!1,userAgent:"",hasScheduledDelivery:!1,paymentSession:"",paymentHash:"",dateOfBirth:null,phone:null,installmentValue:0,installmentTotal:0,cardToken:null,googleResponse:null,selectedRecurrentTime:null,labelOneClick:null,quantityInstallment:0,typeGateway:qi.pagaleve};break;case 28:s>-1&&(Sn=null,this.selectedPaymentMethod==bt.credit||this.selectedPaymentMethod==bt.debit?(v=this.formCredit.number.value.replace(/ /g,""),w=this.formCredit.name.value.trim(),P=this.formCredit.validDate.value.trim(),F=this.formCredit.cvv.value.trim(),at=this.formCredit.number.value.replace(/ /g,""),Ie=this.formCredit.cvv.value.trim(),xt=this.formCredit.validDate.value.trim(),u=this.listPaymentMethod[s].paymentBrands.filter(kc=>kc.name.toLowerCase()===n)[0].idPaymentBrand,this.twoCards?(Ii=this.formCredit2.name.value.trim(),xi=this.formCredit2.number.value.replace(/ /g,""),Di=this.formCredit2.cvv.value.trim(),si=this.formCredit2.validDate.value.trim(),Pi=this.listPaymentMethod[s].paymentBrands.filter(kc=>kc.name.toLowerCase()===r)[0].idPaymentBrand):(Ii=void 0,xi=void 0,Di=void 0,si=void 0,Pi=void 0)):(u=this.listPaymentMethod[s].paymentBrands[0].idPaymentBrand,v="",w="",P="",at="",Ie="",xt="","bankslip"===i&&(i="boleto")),ke=this.activeGift,je=this.giftMessage,this.selectedPaymentMethod==bt.credit&&this.formCredit.parcel&&""!=this.formCredit.parcel.value&&this.installmentsByBrand.length>0?(ti=(Jt=this.installmentsByBrand.filter(xm=>xm.installmentNumber===parseInt(this.formCredit.parcel.value))[0]).idInstallment,ri=Jt.installmentNumber,oi=Jt.value,li=Jt.total,fi=null,this.twoCards&&(ws=(hi=this.installmentsByBrand2.filter(Pm=>Pm.installmentNumber===parseInt(this.formCredit2.parcel.value))[0]).idInstallment,Is=hi.installmentNumber,xs=hi.value,fa=hi.total,pa=null)):(ti=null,ri=null,oi=null,li=this.cart.total,fi=null),o={message:this.activeGift?this.giftMessage:"",gift:this.activeGift?"on":"off",idPaymentBrand:u,idPaymentBrand2:Pi,idInstallment:ti,idInstallment2:ws,installmentNumber:ri,installmentNumber2:Is,installmentValue:oi,installmentValue2:xs,installmentTotal:li,installmentTotal2:fa,orderCreateMultiCard:null,interestValue:fi,interestValue2:pa,originApp:!0,idPreOrder:null,brandBank:"",paymentHash:"",isRecurrent:!1,selectedRecurrentTime:null,typeGateway:qi.fiserv,cardNumber:at,cardNumber2:xi,expirationDate:xt.split("/")[0]+"/20"+xt.split("/")[1],expirationDate2:si?.split("/")[0]+"/20"+si?.split("/")[1],cardCVV:Ie,cardCVV2:Di,cardBrand:n,cardBrand2:r,nameCard:w,nameCard2:Ii,dateOfBirth:"",document:"",phone:"",cardToken:null,kind:i,urlCurrent:location.origin,userAgent:window.navigator.userAgent,twoCards:this.twoCards},this.sharedDataCheckoutService.changeValuePayment({name:i,gateway:e,json:o}));break;case 29:if(s>-1){var at,Ie,xt,Ii,xi,Di,si,Pi,hi;if(Sn=null,this.selectedPaymentMethod==bt.credit||this.selectedPaymentMethod==bt.debit?(v=this.formCredit.number.value.replace(/ /g,""),w=this.formCredit.name.value.trim(),P=this.formCredit.validDate.value.trim(),F=this.formCredit.cvv.value.trim(),at=this.formCredit.number.value.replace(/ /g,""),Ie=this.formCredit.cvv.value.trim(),xt=this.formCredit.validDate.value.trim(),u=this.listPaymentMethod[s].paymentBrands.filter(kc=>kc.name.toLowerCase()===n)[0].idPaymentBrand,Ii=void 0,xi=void 0,Di=void 0,si=void 0,Pi=void 0,this.cardTokenIugu||this.iuguClass.getCardToken(v,Ie,P,w)):(u=this.listPaymentMethod[s].paymentBrands[0].idPaymentBrand,v="",w="",P="",at="",Ie="",xt="","bankslip"===i&&(i="boleto")),ke=this.activeGift,je=this.giftMessage,this.selectedPaymentMethod==bt.credit&&this.formCredit.parcel&&""!=this.formCredit.parcel.value&&this.installmentsByBrand.length>0){if(ti=(Jt=this.installmentsByBrand.filter(xm=>xm.installmentNumber===parseInt(this.formCredit.parcel.value))[0]).idInstallment,ri=Jt.installmentNumber,oi=Jt.value,li=Jt.total,fi=null,this.twoCards)ws=(hi=this.installmentsByBrand2.filter(Pm=>Pm.installmentNumber===parseInt(this.formCredit2.parcel.value))[0]).idInstallment,Is=hi.installmentNumber,xs=hi.value,fa=
3hi.total,pa=null}else ti=null,ri=null,oi=null,li=this.cart.total,fi=null;null==Sn&&this.cardTokenIugu&&(Sn=this.cardTokenIugu,v="",w="",P="",at="",Ie="",xt=""),o={message:this.activeGift?this.giftMessage:"",gift:this.activeGift?"on":"off",idPaymentBrand:u,idPaymentBrand2:Pi,idInstallment:ti,idInstallment2:ws,installmentNumber:ri,installmentNumber2:Is,installmentValue:oi,installmentValue2:xs,installmentTotal:li,installmentTotal2:fa,orderCreateMultiCard:null,interestValue:fi,interestValue2:pa,originApp:!0,idPreOrder:null,brandBank:"",paymentHash:"",isRecurrent:!1,selectedRecurrentTime:null,typeGateway:qi.iugu,cardNumber:at,cardNumber2:xi,expirationDate:xt.split("/")[0]+"/20"+xt.split("/")[1],expirationDate2:si?.split("/")[0]+"/20"+si?.split("/")[1],cardCVV:Ie,cardCVV2:Di,cardBrand:n,cardBrand2:r,nameCard:w,nameCard2:Ii,dateOfBirth:"",document:"",phone:"",cardToken:Sn,kind:i,urlCurrent:location.origin,userAgent:window.navigator.userAgent,twoCards:this.twoCards},this.sharedDataCheckoutService.changeValuePayment({name:i,gateway:e,json:o})}break;case 30:var Fy=null,Ay="";s>-1&&this.selectedPaymentMethod==bt.pixSplit&&null!=this.paymeeClass&&this.paymeeClass.showFieldsPaymee()&&(Fy=this.formPixSplit.phone.value.trim(),Ay=this.formPixSplit.parcel.value),o={idPreOrder:this.idPreOrder,idInstallment:0,idPaymentBrand:this.listPaymentMethod[s].paymentBrands[0].idPaymentBrand,message:this.activeGift?this.giftMessage:"",gift:this.activeGift?"on":"off",card:"",nameCard:"",expDateCard:"",cvvCard:"",brandCard:"",installmentNumber:Ay,kind:i,document:"",idOneClick:0,saveCardOneClick:!1,userAgent:"",hasScheduledDelivery:!1,paymentSession:"",paymentHash:"",dateOfBirth:null,phone:Fy,installmentValue:0,installmentTotal:this.cart.total,cardToken:null,googleResponse:null,selectedRecurrentTime:null,labelOneClick:null,quantityInstallment:0,typeGateway:qi.paymee};break;case 31:"bankslip"===i&&(i="boleto"),o={idInstallment:0,idPaymentBrand:this.listPaymentMethod[s].paymentBrands[0].idPaymentBrand,message:this.activeGift?this.giftMessage:"",gift:this.activeGift?"on":"off",card:"",nameCard:"",expDateCard:"",cvvCard:"",brandCard:"",installmentNumber:"",kind:i,document:"",idOneClick:0,saveCardOneClick:!1,userAgent:"",hasScheduledDelivery:!1,paymentSession:"",paymentHash:"",dateOfBirth:null,phone:null,installmentValue:0,installmentTotal:0,cardToken:null,googleResponse:null,selectedRecurrentTime:null,labelOneClick:null,quantityInstallment:0,typeGateway:qi.payPalStandard};break;case 32:var Jt,Ny=null;if(this.cardTokenPayPalEnterprise&&(Ny=this.cardTokenPayPalEnterprise),ti=0,ri=0,oi=0,li=this.cart.total,this.selectedPaymentMethod==bt.payPalEnterpriseCredit&&this.installmentNumber>0)ti=(Jt=this.installmentsPayPalEnterprise.filter(vQ=>vQ.installmentNumber===this.installmentNumber)[0]).idInstallment,ri=Jt.installmentNumber,oi=Jt.value,li=Jt.total,fi=null;else this.selectedPaymentMethod==bt.payPalEnterpriseWallet&&this.installmentNumber>0&&(ri=this.installmentNumber,oi=this.installmentValue);o={idPaymentBrand:this.listPaymentMethod[s].paymentBrands[0].idPaymentBrand,message:this.activeGift?this.giftMessage:"",gift:this.activeGift?"on":"off",card:"",nameCard:"",expDateCard:"",cvvCard:"",brandCard:"",idInstallment:ti,installmentNumber:ri,installmentValue:oi,installmentTotal:li,kind:i,document:"",idOneClick:0,saveCardOneClick:!1,userAgent:"",hasScheduledDelivery:!1,paymentSession:"",paymentHash:"",dateOfBirth:null,phone:null,cardToken:Ny,googleResponse:null,selectedRecurrentTime:null,labelOneClick:null,quantityInstallment:0,typeGateway:qi.payPalEnterprise,cavv:this.cavv,eci:this.eci,version:this.version,deviceData:this.deviceData,bin:this.bin,lastFourDigits:this.lastFourDigits};break;case 34:"bankslip"===i&&(i="boleto"),o={idInstallment:0,idPaymentBrand:this.listPaymentMethod[s].paymentBrands[0].idPaymentBrand,message:this.activeGift?this.giftMessage:"",gift:this.activeGift?"on":"off",card:"",nameCard:"",expDateCard:"",cvvCard:"",brandCard:"",installmentNumber:"",kind:i,document:"",idOneClick:0,saveCardOneClick:!1,userAgent:"",hasScheduledDelivery:!1,paymentSession:"",paymentHash:"",dateOfBirth:null,phone:null,installmentValue:0,installmentTotal:0,cardToken:null,googleResponse:null,selectedRecurrentTime:null,labelOneClick:null,quantityInstallment:0,typeGateway:qi.itauBoleto}}this.sharedDataCheckoutService.changeValuePayment({name:i,gateway:e,json:o})}
3updateDiscount(i,e,n=!0){null==i&&(this.interestValue=0,this.interestValue2=0),this.sharedDataCheckoutService.changeInterestValue(this.interestValue+this.interestValue2);var r=document.querySelector(".jet-payment-summary .summary>.discount>.value"),o=document.querySelector(".jet-payment-summary .summary>.total>.value"),s=this.cart.total,u=this.cart.subTotal-(this.cart.totalDiscount+this.cart.totalFanmember)-this.cart.totalShoppingVoucher,v=0,w=0,P=this.cart.total;if(this.cart.items[0].isRecurrent)this.putInfoPayment();else{if(this.updatePriceTotalProductWithDiscount(0),this.paymentDiscountText.length>0){var R=void 0;if(this.paymentDiscountText.filter(V=>V.method===this.selectedPaymentMethod).length>0&&(R=i?this.paymentDiscountText.filter(V=>V.method===this.selectedPaymentMethod)[0].data.filter(V=>V.brand.toLowerCase()===i)[0]:this.selectedIdBrand?this.paymentDiscountText.filter(V=>V.method===this.selectedPaymentMethod)[0].data.filter(V=>Number(V.idPaymentBrand)===this.selectedIdBrand)[0]:this.selectedPaymentMethod!=bt.credit?this.paymentDiscountText.filter(V=>V.method===this.selectedPaymentMethod)[0].data[0]:void 0),this.twoCards){let V=this.commomService.roundUp(this.valueFirstCard+this.interestValue-this.installmentNumber*this.installmentValue),ne=this.commomService.roundUp(this.valueSecondCard+this.interestValue2-this.installmentNumber2*this.installmentValue2);w=s+this.interestValue+this.interestValue2-(V+ne)+this.cart.totalTaxes,P=s-(V+ne)+this.cart.totalTaxes,(v=V+ne+this.cart.totalDiscount)<0&&(v=0),r.textContent=this.commomService.priceMask(v),o.textContent=this.commomService.priceMask(w)}else if(R)if(Number(R.valueToReachDiscount)<=0)if(void 0!==R&&R.toString().length>0&&!R.type||R?.type&&1==R.type&&1==this.installmentNumber||0==R?.type)if(R.isDiscountGeneral&&!R.hasDifferentDiscountCampaigns||1==this.selectedPaymentMethod&&this.installmentNumber&&this.installmentNumber>1&&0==R.typeDiscountGeneral&&Number(R.valueToReachDiscountGeneral)<=0)if(1==this.selectedPaymentMethod&&this.installmentNumber>1){let V=0,ne=R.discountValueGeneral;ne>0?(this.company.descontoTotalProduto?(V=this.commomService.roundUp(u*(ne/100)),w=u+this.interestValue-V+this.cart.totalShipping+this.cart.totalTaxes,P=u-V+this.cart.totalShipping+this.cart.totalTaxes,v=V+this.cart.totalDiscount,this.updatePriceTotalProductWithDiscount(ne)):(V=this.commomService.roundUp(s*(ne/100)),w=s-V+this.interestValue+this.cart.totalTaxes,P=s-V+this.cart.totalTaxes,v=V+this.cart.totalDiscount),v<0&&(v=0),r.textContent=this.commomService.priceMask(v),o.textContent=this.commomService.priceMask(w),this.updateDiscountOffline()):this.putInfoPayment()}else this.checkoutService.getDiscountPaymentFormGeneral(R.idPaymentBrand).subscribe(V=>{let ne=n;if(n=!1,V&&V.length>0){var De=V[0];De&&(w=De.cartTotal+this.interestValue,P=De.cartTotal,v=De.discountTotal,V.forEach(ke=>{this.updatePriceTotalProductWithDiscountCampaign(ke)}))}r.textContent=this.commomService.priceMask(v),o.textContent=this.commomService.priceMask(w),this.updateDiscountOffline(),ne&&this.commomService.finishLoadComponent("onJetUpdateDiscountCompleted",{detail:{cartTotal:P,discount:v}})});else{let V=!0;if(1==this.selectedPaymentMethod&&this.installmentNumber>1&&(V=!1),V){let ne=n;n=!1,this.commomService.showLoading(),this.checkoutService.getDiscountsCampaignByPaymentForm(R.idPaymentBrand,0).subscribe(De=>{if(De&&De.length>0){for(let ke=0;ke<De.length;ke++){const je=De[ke];je&&(0==ke&&(w=je.cartTotal+this.interestValue,P=je.cartTotal,v=je.discountTotal),this.updatePriceTotalProductWithDiscountCampaign(je))}r.textContent=this.commomService.priceMask(v),o.textContent=this.commomService.priceMask(w),this.updateDiscountOffline(),ne&&this.commomService.finishLoadComponent("onJetUpdateDiscountCompleted",{detail:{cartTotal:P,discount:v}})}this.commomService.hideLoading()},De=>{this.commomService.hideLoading(),console.log(De)})}else this.putInfoPayment()}else this.putInfoPayment();else this.putInfoPayment();else this.putInfoPayment()}else this.putInfoPayment();n&&this.commomService.finishLoadComponent("onJetUpdateDiscountCompleted",{detail:{cartTotal:P,discount:v}})}}putInfoPayment(){var i=document.querySelector(".jet-payment-summary .summary>.discount>.value"),e=document.querySelector(".jet-payment-summary .summary>.total>.value"),r=0,o=0;if(o=this.cart.subTotal-(this.cart.totalDiscount+this.cart.totalFanmember)-this.cart.totalShoppingVoucher+this.interestValue+this.interestValue2+this.cart.totalShipping+this.cart.totalTaxes,r=this.cart.totalDiscount,this.formCredit.parcel.value&&this.installmentValue&&this.installmentValue>0){let s=this.installmentDiscountValue+this.installmentDiscountValue2,u=this.installmentTotal+this.installmentTotal2;u+s!=o&&(s=o-u),r+=s,o=u}else if((this.selectedPaymentMethod==bt.pagarMePSPGooglePay||this.selectedPaymentMethod==bt.pagarMePSPApplePay)&&this.installmentValue&&this.installmentValue>0){let s=this.installmentDiscountValue+this.installmentDiscountValue2,u=this.installmentTotal+this.installmentTotal2;u+s!=o&&(s=o-u),r+=s,o=u}i.textContent=this.commomService.priceMask(r),this.selectedPaymentMethod==bt.pixSplit&&null!=this.paymeeClass&&this.paymeeClass.show
3FieldsPaymee()&&e.textContent!=o.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})?(this.parcelPaymee=0,this.urlIFramePaymee="",this.showIFramePaymee=!1,this.ignoreClearParcelPaymee||this.pixSplitForm.controls.parcel.setValue(""),this.ignoreClearParcelPaymee=!1):this.selectedPaymentMethod==bt.payPalStandardCreditDebit&&e.textContent!=o.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})?this.commomService.finishLoadComponent("onJetLoadFormPayPalStandard"):this.selectedPaymentMethod==bt.payPalEnterpriseCredit&&e.textContent!=o.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})?this.commomService.finishLoadComponent("onJetLoadPayPalEnterpriseCredit"):this.selectedPaymentMethod==bt.payPalEnterpriseDebit&&e.textContent!=o.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})?this.commomService.finishLoadComponent("onJetLoadPayPalEnterpriseDebit"):this.selectedPaymentMethod==bt.payPalEnterpriseWallet&&e.textContent!=o.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})?this.commomService.finishLoadComponent("onJetLoadPayPalEnterpriseWallet"):this.selectedPaymentMethod==bt.payPalEnterpriseGooglePay&&e.textContent!=o.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})?this.commomService.finishLoadComponent("onJetLoadPayPalEnterpriseGooglePay"):this.selectedPaymentMethod==bt.payPalEnterpriseApplePay&&e.textContent!=o.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})&&this.commomService.finishLoadComponent("onJetLoadPayPalEnterpriseApplePay"),this.selectedPaymentMethod==bt.payPalStandardCreditDebit&&e.textContent!=this.commomService.priceMask(o)&&this.commomService.finishLoadComponent("onJetLoadFormPayPalStandard"),e.textContent=this.commomService.priceMask(o)}changeCellPhonePixSplit(){let i=this.formPixSplit.phone.value.replace("(","").replace(")","").replace("-","").replace(/ /g,"").substring(0,11);this.commomService.validCellPhone(i)?this.verifyIfIsComplete():(this.urlIFramePaymee="",this.showIFramePaymee=!1,this.cellPhonePaymee="")}keyPressCellPhone(){let i=this.formPixSplit.phone.value.replace("(","").replace(")","").replace("-","").replace(/ /g,"").substring(0,11);this.commomService.validCellPhone(i)?this.verifyIfIsComplete():(this.urlIFramePaymee="",this.showIFramePaymee=!1,this.cellPhonePaymee="")}changeParcelPixSplit(){let i=this.formPixSplit.phone.value.replace("(","").replace(")","").replace("-","").replace(/ /g,"").substring(0,11);if(this.commomService.validCellPhone(i)&&Number(this.formPixSplit.parcel.value)>0){if(this.showIFramePaymee=!1,this.ignoreClearParcelPaymee=!0,!this.verifyIfIsComplete()&&(this.selectedPaymentMethod==bt.billet||this.selectedPaymentMethod==bt.pix||this.selectedPaymentMethod==bt.pixSplit)){var n=this.listPaymentMethod.find(v=>v.idPaymentMethod==this.selectedPaymentMethod);if(n)return void this.commomService.displayMessageUser("error","O valor m\xednimo da compra para essa forma de pagamento \xe9 de "+this.commomService.priceMask(n.paymentBrands[0].minimumValue))}let r;this.sharedDataCheckoutService.changeValueActiveTab(3),setTimeout(()=>{this.sharedDataCheckoutService.changeClickActiveTab(3,!0),this.sharedDataCheckoutService.changeValueActiveTab(3)},100),document.querySelector(".payment-method .value").innerText="Pix Parcelado",document.getElementById("action-checkout").innerHTML="Pix Parcelado",r=1===document.getElementsByClassName("payment-method active").length?document.getElementsByClassName("payment-method active")[document.getElementsByClassName("payment-method active").length-1]:document.querySelectorAll(".payment-method:not(.shopping-voucher-button).active")[document.querySelectorAll(".payment-method:not(.shopping-voucher-button).active").length-1];let o=r.dataset.id,s=r.dataset.brand,u=r.dataset.brand2;document.querySelector(".jet-payment-summary .payment-method").classList.remove("column"),document.querySelector(".jet-payment-summary .payment-method .value").classList.remove("column"),this.getInfoPayment("pixSplit",o,s,u)}}setInfoPayment(){let i;i=1===document.getElementsByClassName("payment-method active").length?document.getElementsByClassName("payment-method active")[document.getElementsByClassName("payment-method active").length-1]:document.querySelectorAll(".payment-method:not(.shopping-voucher-button).active")[document.querySelectorAll(".payment-method:not(.shopping-voucher-button).active").length-1];let e=i.dataset.id,n=i.dataset.brand,r=i.dataset.brand2;document.querySelector(".jet-payment-summary .payment-method").classList.remove("column"),document.querySelector(".jet-payment-summary .payment-method .value").
3classList.remove("column"),this.getInfoPayment("pixSplit",e,n,r)}selectInstallmentOffline(i){if(null!=i&&null!=i){let e=this.installmentsOffline.filter(n=>n.idInstallment==i)[0];e&&(this.installmentId=e.idInstallment,this.installmentNumber=e.installmentNumber,this.installmentValue=e.value,this.installmentTotal=e.total,this.getInfoPayment("Pagamento (Offline)",4,this.selectedIdBrand))}else this.installmentId=0,this.installmentNumber=0,this.installmentValue=0,this.installmentTotal=0}updateDiscountOffline(){let i=this.listPaymentMethod.reduce((v,w)=>v.concat(w.paymentBrands.filter(P=>P.idPaymentBrand==this.selectedIdBrand)),[]);if(i[0]){var e=document.querySelector(".jet-payment-summary .summary>.discount>.value"),n=document.querySelector(".jet-payment-summary .summary>.total>.value"),s=0,u=0;i[0].discount&&i[0].discount>0||i[0].discountCampaignCheckout?!i[0].discountCampaignCheckout||i[0].discountCampaignCheckout.isGeneral?this.checkoutService.getDiscountPaymentFormGeneral(this.selectedIdBrand).subscribe(w=>{if(w&&w.length>0){var P=w[0];P&&(u=P.cartTotal+this.interestValue,s=P.discountTotal,this.updatePriceTotalProductWithDiscountCampaign(P))}e.textContent=this.commomService.priceMask(s),n.textContent=this.commomService.priceMask(u)}):(this.commomService.showLoading(),this.checkoutService.getDiscountsCampaignByPaymentForm(i[0].idPaymentBrand,0).subscribe(w=>{if(w&&w.length>0){for(let P=0;P<w.length;P++){const F=w[P];F&&(0==P&&(u=F.cartTotal,s=F.discountTotal),this.updatePriceTotalProductWithDiscountCampaign(F))}e.textContent=this.commomService.priceMask(s),n.textContent=this.commomService.priceMask(u)}this.commomService.hideLoading()},w=>{this.commomService.hideLoading(),console.log(w)})):(this.updatePriceTotalProductWithDiscount(0),this.putInfoPayment())}}loadOfflineInstallments(){if(null==this.selectedIdBrand&&null==this.selectedIdBrand&&0==this.selectedIdBrand||null==this.listPaymentMethod&&this.listPaymentMethod.length<=0)return;let i=this.listPaymentMethod.reduce((e,n)=>e.concat(n.paymentBrands.filter(r=>r.idPaymentBrand==this.selectedIdBrand)),[]);if(i[0]&&null!=i[0]&&i[0].idInstallment){let e;e=this.cart.total,this.checkoutService.getInstallmentsOffline(this.selectedIdBrand).subscribe(o=>{o&&(this.installmentsOffline=o,this.installmentsOffline.length<=0&&this.installmentsOffline.push({idInstallment:1,installmentNumber:1,value:e,rate:0}))})}}updatePriceTotalProductWithDiscount(i){this.cart.items.forEach(0==i?e=>{null!=e.priceTotalWithDiscountDataBase&&null!=e.priceTotalWithDiscountDataBase&&e.priceTotalWithDiscountDataBase>0?e.priceTotalWithDiscount=e.priceTotalWithDiscountDataBase:e.priceTotalWithDiscountDataBase=e.priceTotalWithDiscount,e.taxes&&this.cart.totalTaxes&&this.cart.totalTaxes>0&&(null!=e.taxes.priceWithTaxesDataBase&&null!=e.taxes.priceWithTaxesDataBase&&e.taxes.priceWithTaxesDataBase>0?e.taxes.priceWithTaxes=e.taxes.priceWithTaxesDataBase:e.taxes.priceWithTaxesDataBase=e.taxes.priceWithTaxes,e.taxes.priceWithTaxes=e.priceTotalWithDiscount+(e.taxes.priceWithTaxesDataBase-e.priceTotalWithDiscountDataBase))}:e=>{(null==e.priceTotalWithDiscountDataBase||null==e.priceTotalWithDiscountDataBase||0==e.priceTotalWithDiscountDataBase)&&(e.priceTotalWithDiscountDataBase=e.priceTotalWithDiscount),e.priceTotalWithDiscount=e.priceTotalWithDiscountDataBase-this.commomService.roundUp(e.priceTotalWithDiscountDataBase*i/100),e.taxes&&this.cart.totalTaxes&&this.cart.totalTaxes>0&&(null!=e.taxes.priceWithTaxesDataBase&&null!=e.taxes.priceWithTaxesDataBase&&e.taxes.priceWithTaxesDataBase>0?e.taxes.priceWithTaxes=e.taxes.priceWithTaxesDataBase:e.taxes.priceWithTaxesDataBase=e.taxes.priceWithTaxes,e.taxes.priceWithTaxes=e.priceTotalWithDiscount+(e.taxes.priceWithTaxesDataBase-e.priceTotalWithDiscountDataBase))})}updatePriceTotalProductWithDiscountCampaign(i){for(const e of this.cart.items)if(e.idProduct==i.idProduct&&e.idSku==i.idSku){e.priceTotalWithDiscount=i.priceProductWithDiscount,e.priceTotalWithDiscountDataBase||(e.priceTotalWithDiscountDataBase=e.priceTotalWithDiscount),e.taxes&&this.cart.totalTaxes&&this.cart.totalTaxes>0&&(e.taxes.priceWithTaxesDataBase&&e.taxes.priceWithTaxesDataBase>0?e.taxes.priceWithTaxes=e.taxes.priceWithTaxesDataBase:e.taxes.priceWithTaxesDataBase=e.taxes.priceWithTaxes,e.taxes.priceWithTaxes=e.priceTotalWithDiscount+(e.taxes.priceWithTaxesDataBase-e.priceTotalWithDiscountDataBase));break}}}function KM(t,i){if(1&t&&(a(0,"span",7),h(1),l()),2&t){const e=_(2);c(1),de(e.dataTitle)}}function XM(t,i){if(1&t&&B(0,"img",11),2&t){const e=i.$implicit,n=_(3);Ue("alt",e.nameFlagPayment),d("src",n.urlPath+e.nameImageFlag,fe)("className",e.className)("decode",!0)}}function eF(t,i){if(1&t&&(a(0,"div",4)(1,"span",8),h(2,"Cart\xe3o de Cr\xe9dito"),l(),a(3,"div",9),C(4,XM,1,4,"img",10),l()()),2&t){const e=_(2);d("className",e.dataClassColumn+" credit"),c(4),d("ngForOf",e.options.creditCard)}}function tF(t,i){if(1&t&&B(0,"img",11),2&t){const e=i.$implicit,n=_(3);Ue("alt",e.nameFlagPayment),d("src",n.urlPath+e.nameImageFlag,fe)("className",e.className)("decode",!0)}}function nF(t,i){if(1&t&&(a(0,"div",4)(1,"span",8),h(2,"Cart\xe3o de D\xe9bito"),l(),a(3,"div",9),C(4,tF,1,4,"img",10),l()()),2&t){const e=_(2);d("className",e.dataClassColumn+" debit"),c(4),d("ngForOf",e.options.debitCard)}}function iF(t,i){if(1&t&&B(0,"img",11),2&t){const e=i.$implicit,n=_(3);Ue("alt",e.nameFlagPayment),d("src",n.urlPath+e.nameImageFlag,fe)("className",e.className)("decode",!0)}}function rF(t,i){if(1&t&&(a(0,"div",4)(1,"span",8),h(2,"PayPal"),l(),a(3,"div",9),C(4,iF,1,4,"img",10),l()()),2&t){const e=_(2);d("className",e.dataClassColumn+" paypal"),c(4),d("ngForOf",e.options.payPalEnterprise)}}function oF(t,i){if(1&t&&B(0,"img",11),2&t){const e=i.$implicit,n=_(3);Ue("alt",e.nameFlagPayment),d("src",n.urlPath+e.nameImageFlag,fe)("className",e.className)("decode",!0)}}function sF(t,i){if(1&t&&(a(0,"div",4)(1,"span",8),h(2,"Vale Refei\xe7\xe3o"),l(),a(3,"div",9),C(4,oF,1,4,"img",10),l()()),2&t){const e=_(2);d("className",e.dataClassColumn+" credit"),c(4),d("ngForOf",e.options.mealVoucher)}}function aF(t,i){if(1&t&&B(0,"img",11),2&t){const e=i.$implicit,n=_(3);Ue("alt",e.nameFlagPayment),d("src",n.urlPath+e.nameImageFlag,fe)("className",e.className)("decode",!0)}}function lF(t,i){if(1&t&&(a(0,"div",4)(1,"span",8),h(2,"Vale Alimenta\xe7\xe3o"),l(),a(3,"div",9),C(4,aF,1,4,"img",10),l()()),2&t){const e=_(2);d("className",e.dataClassColumn+" food"),c(4),d("ngForOf",e.options.foodVoucher)}}function cF(t,i){if(1&t&&(a(0,"span",8),h(1),l()),2&t){const e=_().$implicit,n=_(3);c(1),dt(" ",n.getPaymentTitle(e.idFlagPayment)," ")}}function dF(t,i){if(1&t&&(a(0,"div",4),C(1,cF,2,1,"span",13),a(2,"div",9),B(3,"img",11),l()()),2&t){const e=i.$implicit,n=_(3);d("className",n.dataClassColumn+" "+e.className),c(1),d("ngIf",n.showPaymentTitle(e.idFlagPayment)),c(2),Ue("alt",e.nameFlagPayment),d("src",n.urlPath+e.nameImageFlag,fe)("className",e.className)("decode",!0)}}function uF(t,i){if(1&t&&(ht(0),C(1,dF,4,6,"div",12),mt()),2&t){const e=_(2);c(1),d("ngForOf",e.getOthersToDisplay())}}function hF(t,i){if(1&t&&(a(0,"div",2),C(1,KM,2,1,"span",3),a(2,"div",4),C(3,eF,5,2,"div",5),C(4,nF,5,2,"div",5),C(5,rF,5,2,"div",5),C(6,sF,5,2,"div",5),C(7,lF,5,2,"div",5),C(8,uF,2,1,"ng-container",6),l()()),2&t){const e=_();c(1),d("ngIf",""!=e.dataTitle),c(1),d("className",e.dataClassContainer),c(1),d("ngIf",e.options.creditCard&&e.options.creditCard.length>0),c(1),d("ngIf",e.options.debitCard&&e.options.debitCard.length>0),c(1),d("ngIf",e.options.payPalEnterprise&&e.options.payPalEnterprise.length>0),c(1),d("ngIf",e.options.mealVoucher&&e.options.mealVoucher.length>0),c(1),d("ngIf",e.options.foodVoucher&&e.options.foodVoucher.length>0),c(1),d("ngIf",e.options.others&&e.options.others.length>0)}}let mF=(()=>{class t{constructor(e,n){this.companyService=e,this.commomService=n,this.dataClassContainer="",this.dataClassColumn="",this.dataTitle="",this.urlPath="/custom/brands/",this.options=[],this.shared=new YM}ngOnInit(){this.dataClassContainer=""!==this.dataClassContainer?"content jet-container "+this.dataClassContainer:"content jet-container ",this.dataClassColumn=""!==this.dataClassColumn?"content jet-column "+this.dataClassColumn:"content jet-column ",window.location.href.indexOf("localhost")>-1&&(this.urlPath="/assets/brands/")}showPaymentTitle(e){return[this.shared.typeMethod.billet,this.shared.typeMethod.pix,this.shared.typeMethod.pixSplit,this.shared.typeMethod.picPay,this.shared.typeMethod.payPalStandardDigitalWallet,this.shared.typeMethod.payPalStandardCreditDebit,this.shared.typeMethod.mealVoucher,this.shared.typeMethod.foodVoucher,this.shared.typeMethod.cardPaymentElement,this.shared.typeMethod.cardPaymentElementInstallment].includes(e)}getPaymentTitle(e){switch(e){case this.shared.typeMethod.billet:return"Boleto Banc\xe1rio";case this.shared.typeMethod.pix:return"Pague com PIX";case this.shared.typeMethod.pixSplit:return"Pague com Pix Parcelado";case this.shared.typeMethod.picPay:return"Pague com PicPay";case this.shared.typeMethod.payPalStandardDigitalWallet:return"Pague com Carteira Digital";case this.shared.typeMethod.payPalStandardCreditDebit:return"Pague com Cr\xe9dito e D\xe9bito";case this.shared.typeMethod.mealVoucher:return"Pague com Vale Refei\xe7\xe3o";case this.shared.typeMethod.foodVoucher:return"Pague com Vale Alimenta\xe7\xe3o";case this.shared.typeMethod.cardPaymentElement:case this.shared.typeMethod.cardPaymentElementInstallment:return"Pague com Cart\xe3o";default:return""}}getOthersToDisplay(){const e=this.options?.others||[],n=e.some(r=>r.idFlagPayment===this.shared.typeMethod.cardPaymentElement);return e.filter(r=>!(r.idFlagPayment===this.shared.typeMethod.cardPaymentElementInstallment&&n))}onElementVisible(){this.companySubs$=this.companyService.getPaymentOptions().subscribe(e=>{if(e){for(var n in this.options=JSON.parse(JSON.stringify(e)),this.options)for(var r in this.options[n])this.options[n][r].nameImageFlag&&(this.options[n][r].className=this.options[n][r].nameImageFlag.replace(/(.svg)|(.jpg)|(.png)/g,""));this.commomService.finishLoadComponent("onJetPaymentOptionsLoaded")}})}static#e=this.\u0275fac=function(n){return new(n||t)($(Qo),$(qt))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-payment-options"]],inputs:{dataClassContainer:["data-class-container","dataClassContainer"],dataClassColumn:["data-class-column","dataClassColumn"],dataTitle:["data-title","dataTitle"]},decls:2,vars:1,consts:[["jetVisibilityCheck","",1,"jetlazyload",3,"elementVisible"],["class","jet-payment-options",4,"ngIf"],[1,"jet-payment-options"],["class","title-payment",4,"ngIf"],[3,"className"],[3,"className",4,"ngIf"],[4,"ngIf"],[1,"title-payment"],[1,"title-option"],[1,"content","options"],["jet-image-size","","loading","lazy","fetchPriority","low",3,"src","alt","className","decode",4,"ngFor","ngForOf"],["jet-image-size","","loading","lazy","fetchPriority","low",3,"src","alt","className","decode"],[3,"className",4,"ngFor","ngForOf"],["class","title-option",4,"ngIf"]],template:function(n,r){1&n&&(a(0,"div",0),J("elementVisible",function(){return r.onElementVisible()}),C(1,hF,9,8,"div",1),l()),2&n&&(c(1),d("ngIf",r.options&&r.options.toString().length>0))},dependencies:[ei,en,bs,Yo],encapsulation:2})}return t})(),fF=(()=>{class t{constructor(e){this.commomService=e}ngOnInit(){this.commomService.finishLoadComponent("onJetHealthCheckLoaded")}static#e=this.\u0275fac=function(n){return new(n||t)($(qt))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-health-check"]],decls:1,vars:0,template:function(n,r){1&n&&h(0,"Healthy\n")},encapsulation:2})}return t})(),pF=(()=>{class t{constructor(e){this.http=e}getIntagramMedias(){return this.http.post("/api",{request:"674e7d84-5f1e-48f3-b059-0e284bea1c0a/9baed775-4f4b-4c73-96f1-e286f3eac1ea",json:null})}static#e=this.\u0275fac=function(n){return new(n||t)(Mt(ko))};static#t=this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();
3function gF(t,i){if(1&t&&(a(0,"div",6)(1,"a",4),B(2,"img",9),l()()),2&t){const e=_().$implicit;d("className",_(2).dataClassChildren),c(1),Ue("href",e.permalink,fe),Ue("title",e.permalink),c(1),Ue("alt",e.permalink),d("src",e.media_url,fe)("decode",!0)}}function vF(t,i){if(1&t&&(a(0,"video",12),B(1,"source",13),h(2," Seu navegador n\xe3o suporta a exibi\xe7\xe3o de v\xeddeo. "),l()),2&t){const e=_(2).$implicit,n=_(2);d("muted",n.dataVideoMuted),ii("autoplay",n.dataVideoAutoPlay)("controls","true"==n.dataVideoControls||null)("loop",n.dataVideoLoop),c(1),Ue("src",e.media_url,fe)}}function _F(t,i){if(1&t&&B(0,"img",9),2&t){const e=_(2).$implicit;Ue("alt",e.thumbnail_url),d("src",e.thumbnail_url,fe)("decode",!0)}}function CF(t,i){if(1&t&&(a(0,"div",6)(1,"a",4),C(2,vF,3,5,"video",10),C(3,_F,1,3,"img",11),l()()),2&t){const e=_().$implicit,n=_(2);d("className",n.dataClassChildren),c(1),Ue("href",e.permalink,fe),Ue("title",e.permalink),c(1),d("ngIf","true"==n.dataVideoUse),c(1),d("ngIf","false"==n.dataVideoUse)}}function yF(t,i){if(1&t&&(ht(0),C(1,gF,3,6,"div",8),C(2,CF,4,5,"div",8),mt()),2&t){const e=i.$implicit;c(1),d("ngIf","VIDEO"!=e.media_type),c(1),d("ngIf","VIDEO"==e.media_type)}}function bF(t,i){if(1&t&&(a(0,"div",2)(1,"div",3)(2,"a",4)(3,"span",5),h(4),l()()(),a(5,"div",6),C(6,yF,3,2,"ng-container",7),l()()),2&t){const e=_();c(2),hr("href","https://www.instagram.com/",e.instagramMedias[0].username,"",fe),Ue("title",e.dataTextTitle),c(2),de(e.dataTextTitle),c(1),d("className",e.dataClassContainer),c(1),d("ngForOf",e.instagramMedias)}}let SF=(()=>{class t{constructor(e,n){this.commomService=e,this.instagramService=n,this.dataTextTitle="{Nick}",this.dataClassContainer="",this.dataClassChildren="",this.dataVideoUse="false",this.dataVideoAutoPlay="true",this.dataVideoControls="true",this.dataVideoLoop="true",this.dataVideoMuted="true"}ngOnInit(){this.dataClassContainer=""!==this.dataClassContainer?"jet-instagram-medias-itens "+this.dataClassContainer:"jet-instagram-medias-itens",this.dataClassChildren=""!==this.dataClassChildren?"jet-item "+this.dataClassChildren:"jet-item"}getInstagramMedias(){this.instagramService.getIntagramMedias().subscribe(e=>{e&&e.length&&(this.instagramMedias=e,this.dataVideoMuted="true"==this.dataVideoMuted.toLocaleLowerCase()?"muted":"",this.dataTextTitle=this.dataTextTitle.replace("{Nick}",this.instagramMedias[0].username),this.commomService.finishLoadComponent("onJetInstagramMediasLoaded"))})}onElementVisible(){this.getInstagramMedias()}static#e=this.\u0275fac=function(n){return new(n||t)($(qt),$(pF))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-instagram-media"]],inputs:{dataTextTitle:["data-text-title","dataTextTitle"],dataClassContainer:["data-class-container","dataClassContainer"],dataClassChildren:["data-class-children","dataClassChildren"],dataVideoUse:["data-video-use","dataVideoUse"],dataVideoAutoPlay:["data-video-autoplay","dataVideoAutoPlay"],dataVideoControls:["data-video-controls","dataVideoControls"],dataVideoLoop:["data-video-loop","dataVideoLoop"],dataVideoMuted:["data-video-muted","dataVideoMuted"]},decls:2,vars:1,consts:[["jetVisibilityCheck","",1,"jetlazyload",3,"elementVisible"],["class","jet-instagram-media",4,"ngIf"],[1,"jet-instagram-media"],[1,"title-instagram-media"],["target","_blank",3,"href","title"],[1,"instagram-user"],[3,"className"],[4,"ngFor","ngForOf"],[3,"className",4,"ngIf"],["jet-image-size","","loading","lazy","fetchPriority","low",3,"src","alt","decode"],[3,"muted",4,"ngIf"],["jet-image-size","","loading","lazy","fetchPriority","low",3,"src","alt","decode",4,"ngIf"],[3,"muted"],["type","video/mp4",3,"src"]],template:function(n,r){1&n&&(a(0,"div",0),J("elementVisible",function(){return r.onElementVisible()}),C(1,bF,7,5,"div",1),l()),2&n&&(c(1),d("ngIf",r.instagramMedias&&r.instagramMedias.length))},dependencies:[ei,en,bs,Yo],encapsulation:2})}return t})();function wF(t,i){if(1&t&&(a(0,"div",1)(1,"div",2)(2,"a",3),h(3),l()()()),2&t){const e=_();c(1),d("className",e.dataClassContainer),c(1),Ue("title",e.dataTitle),c(1),dt(" ",e.dataTitle," ")}}let IF=(()=>{class t{constructor(e,n,r){this.sharedDataCommom=e,this.customerService=n,this.commomService=r,this.dataClassContainer="",this.dataTitle="Lista de Presentes",this.activeMultiCD=!1}ngOnInit(){this.subscriptionCurrentCompany$=this.sharedDataCommom.currentCompany$.subscribe(e=>{null!=e&&(this.activeMultiCD=e.activeMultiCD,this.activeMultiCD||(this.subscriptionEventList$=this.customerService.getEventList().subscribe(n=>{n&&(this.eventLists=n,null!=this.dataHidden&&this.dataHidden.split(",").forEach(o=>{var s=n.findIndex(u=>u.idType==Number(o.trim()));s>-1&&n.splice(s,1)}),this.commomService.finishLoadComponent("onJetEventListLoaded"))})))})}ngOnDestroy(){this.subscriptionEventList$.unsubscribe(),this.subscriptionCurrentCompany$.unsubscribe()}static#e=this.\u0275fac=function(n){return new(n||t)($(yn),$(Ci),$(qt))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-event-list-footer"]],inputs:{dataClassContainer:["data-class-container","dataClassContainer"],dataHidden:["data-hidden","dataHidden"],dataTitle:["data-title","dataTitle"]},decls:1,vars:1,consts:[["class","jet-event-list-footer",4,"ngIf"],[1,"jet-event-list-footer"],[3,"className"],["href","/busca-lista-eventos",3,"title"]],template:function(n,r){1&n&&C(0,wF,4,3,"div",0),2&n&&d("ngIf",!r.activeMultiCD&&r.eventLists&&r.eventLists.length>0)},dependencies:[en],encapsulation:2})}return t})();function xF(t,i){1&t&&(a(0,"span"),h(1,"Informe um nome"),l())}function DF(t,i){if(1&t&&(a(0,"div",13),C(1,xF,2,0,"span",14),l()),2&t){const e=_();c(1),d("ngIf",e.searchForm.controls.name.errors.required)}}function PF(t,i){1&t&&(a(0,"span"),h(1,"Informe uma data"),l())}function TF(t,i){if(1&t&&(a(0,"div",13),C(1,PF,2,0,"span",14),l()),2&t){const e=_();c(1),d("ngIf",e.searchForm.controls.eventDate.errors.required)}}function EF(t,i){if(1&t&&(a(0,"span"),h(1),l()),2&t){const e=_().$implicit;c(1),Eo("",e.name1," & ",e.name4,"")}}function LF(t,i){if(1&t&&(a(0,"span"),h(1),l()),2&t){const e=_().$implicit;c(1),de(e.creatorName)}}function kF(t,i){if(1&t&&(a(0,"span"),h(1),l()),2&t){const e=_().$implicit;c(1),de(e.creatorName)}}function MF(t,i){if(1&t&&(a(0,"span"),h(1),l()),2&t){const e=_().$implicit;c(1),de(e.name1)}}function FF(t,i){if(1&t&&(a(0,"span"),h(1),l()),2&t){const e=_().$implicit;c(1),de(e.creatorName)}}function AF(t,i){if(1&t&&(a(0,"span",28),h(1),l()),2&t){const e=_(2).$implicit;c(1),de(e.numberOfGuests>1?e.numberOfGuests+" convidados":e.numberOfGuests+" convidado")}}function NF(t,i){if(1&t&&(a(0,"span",29),h(1),l()),2&t){const e=_(2).$implicit;c(1),de(e.numberOfProducts>1?e.numberOfProducts+" produtos":e.numberOfProducts+" produto")}}function OF(t,i){if(1&t&&(a(0,"div",25),C(1,AF,2,1,"span",26),C(2,NF,2,1,"span",27),l()),2&t){const e=_().$implicit;c(1),d("ngIf",e.numberOfGuests>1),c(1),d("ngIf",e.numberOfProducts>1)}}function RF(t,i){if(1&t&&(a(0,"div",2)(1,"div",15),B(2,"img",16),l(),a(3,"div",17),B(4,"img",16),l(),a(5,"div",18)(6,"span",19),C(7,EF,2,2,"span",20),C(8,LF,2,1,"span",20),C(9,kF,2,1,"span",20),C(10,MF,2,1,"span",20),C(11,FF,2,1,"span",20),l(),a(12,"span",21),h(13),Wi(14,"date"),l(),C(15,OF,3,2,"div",22),a(16,"p",23),h(17),l()(),a(18,"a",24),h(19),l()()),2&t){const e=i.$implicit,n=_();d("className",n.dataClassChildrenResult),c(2),d("src",e.urlInvitationPicture,fe),c(2),d("src",e.urlPicture,fe),c(2),d("ngSwitch",e.type),c(1),d("ngSwitchCase",1),c(1),d("ngSwitchCase",2),c(1),d("ngSwitchCase",3),c(1),d("ngSwitchCase",4),c(1),d("ngSwitchCase",5),c(2),de(vd(14,14,e.eventDate,"dd/MM/yyyy")),c(2),d("ngIf",e.numberOfGuests>1||e.numberOfProducts>1),c(2),de(e.message),c(1),hr("href","",e.idEventList,"/e",fe),c(1),de(n.dataTextLink)}}function BF(t,i){1&t&&(a(0,"div",30),h(1," Nenhuma lista encontrada com os termos informados. "),l())}const jF=function(t){return{"jet-btn-loading":t}};let VF=(()=>{class t{constructor(e,n,r,o){this.sharedDataCommom=e,this.commomService=n,this.fb=r,this.customerService=o,this.dataButtonSearch="Buscar",this.dataClassContainer="",this.dataClassChildren="",this.dataClassContainerResult="",this.dataClassChildrenResult="",this.dataClassInput="",this.dataTextLink="Visualizar lista",this.loading=!1,this.filtered=!1,this.activeMultiCD=!1}ngOnInit(){this.sharedDataCommom.currentCompany$.subscribe(e=>{null!=e&&(this.activeMultiCD=e.activeMultiCD,this.activeMultiCD&&(document.location.href="/"))}),this.dataClassButton=""!==this.dataClassButton?"jet-button "+this.dataClassButton:"jet-button",this.dataClassContainer=""!==this.dataClassContainer?"jet-container "+this.dataClassContainer:"jet-container",this.dataClassChildren=""!==this.dataClassChildren?"jet-class-children "+this.dataClassChildren:"jet-class-children",this.dataClassContainerResult=""!==this.dataClassContainerResult?"jet-container jet-container-result "+this.dataClassContainerResult:"jet-container jet-container-result",this.dataClassChildrenResult=""!==this.dataClassChildrenResult?"jet-class-children "+this.dataClassChildrenResult:"jet-class-children",this.dataClassInput=""!==this.dataClassInput?"jet-input "+this.dataClassInput:"jet-input",this.searchForm=this.fb.group({name:["",oe.required],eventDate:["",oe.required]}),this.commomService.finishLoadComponent("onJetEventListSearchLoaded")}get searchFormControll(){return this.searchForm.controls}checkDate(e){this.searchForm.controls.eventDate.setValue(e)}searchEventsList(){if(!this.searchForm.valid)return Object.keys(this.searchForm.controls).forEac
3h(n=>{this.searchForm.controls[n].markAsDirty()}),!1;this.loading=!0;var e={name:this.searchForm.controls.name.value,eventDate:this.convertToDate(this.searchForm.controls.eventDate.value)};this.customerService.eventListClient(e).subscribe(n=>{n&&(this.eventList=n.filter(r=>r.status),this.loading=!1,0==n.length&&(this.filtered=!0))})}convertToDate(e){var n=e.replace(/(\d+[/])(\d+[/])/,"$2$1");return new Date(n).toISOString()}static#e=this.\u0275fac=function(n){return new(n||t)($(yn),$(qt),$(ao),$(Ci))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-event-list-search"]],inputs:{dataClassButton:["data-class-button","dataClassButton"],dataButtonSearch:["data-text-button","dataButtonSearch"],dataClassContainer:["data-class-container","dataClassContainer"],dataClassChildren:["data-class-children","dataClassChildren"],dataClassContainerResult:["data-class-container-result","dataClassContainerResult"],dataClassChildrenResult:["data-class-children-result","dataClassChildrenResult"],dataClassInput:["data-class-input","dataClassInput"],dataTextLink:["data-text-link","dataTextLink"]},decls:21,vars:15,consts:[[1,"jet-event-list-search"],["novalidate","",3,"formGroup","ngSubmit"],[3,"className"],["for","name"],["placeholder","Jos\xe9 e Maria","type","text","formControlName","name"],["name",""],["class","invalid-feedback",4,"ngIf"],["for","eventDate"],["placeholder","00/00/0000","type","date","formControlName","eventDate","maxlength","10"],["eventDate",""],["type","submit",3,"className","ngClass"],[3,"className",4,"ngFor","ngForOf"],["class","no-results",4,"ngIf"],[1,"invalid-feedback"],[4,"ngIf"],[1,"image-preview"],["alt","imageList","loading","lazy","fetchPriority","low",3,"src"],[1,"image-list"],[1,"event-content"],[1,"event-title",3,"ngSwitch"],[4,"ngSwitchCase"],[1,"event-date"],["class","event-numbers",4,"ngIf"],[1,"event-message"],[1,"event-link",3,"href"],[1,"event-numbers"],["class","event-guests",4,"ngIf"],["class","event-products",4,"ngIf"],[1,"event-guests"],[1,"event-products"],[1,"no-results"]],template:function(n,r){1&n&&(a(0,"div",0)(1,"form",1),J("ngSubmit",function(){return r.searchEventsList()}),a(2,"div",2)(3,"div",2)(4,"div",2)(5,"label",3),h(6,"Nome do criador ou anfitri\xf5es"),l(),B(7,"input",4,5),C(9,DF,2,1,"div",6),l(),a(10,"div",2)(11,"label",7),h(12,"Data do Evento"),l(),B(13,"input",8,9),C(15,TF,2,1,"div",6),l(),a(16,"button",10),h(17),l()()()(),a(18,"div",2),C(19,RF,20,17,"div",11),C(20,BF,2,0,"div",12),l()()),2&n&&(c(1),d("formGroup",r.searchForm),c(1),d("className",r.dataClassContainer),c(1),d("className",r.dataClassChildren),c(1),d("className",r.dataClassInput+" name"),c(5),d("ngIf",r.searchForm.controls.name.errors&&(r.searchForm.controls.name.dirty||r.searchForm.controls.name.touched)),c(1),d("className",r.dataClassInput+" eventDate"),c(5),d("ngIf",r.searchForm.controls.eventDate.errors&&(r.searchForm.controls.eventDate.dirty||r.searchForm.controls.eventDate.touched)),c(1),d("className",r.dataClassButton)("ngClass",Oe(13,jF,r.loading)),c(1),de(r.dataButtonSearch),c(1),d("className",r.dataClassContainerResult),c(1),d("ngForOf",r.eventList),c(1),d("ngIf",r.eventList&&0==r.eventList.length))},dependencies:[ui,ei,en,ku,rm,Gr,mr,fr,Ur,Zo,Ir,Mr,bd]})}return t})();function HF(t,i){if(1&t&&(a(0,"span"),h(1),l()),2&t){const e=_(3);c(1),Eo("",e.eventList.name1," & ",e.eventList.name4,"")}}function zF(t,i){if(1&t&&(a(0,"span"),h(1),l()),2&t){const e=_(3);c(1),de(e.eventList.creatorName)}}function qF(t,i){if(1&t&&(a(0,"span"),h(1),l()),2&t){const e=_(3);c(1),de(e.eventList.creatorName)}}function $F(t,i){if(1&t&&(a(0,"span"),h(1),l()),2&t){const e=_(3);c(1),de(e.eventList.name1)}}function UF(t,i){if(1&t&&(a(0,"span"),h(1),l()),2&t){const e=_(3);c(1),de(e.eventList.creatorName)}}function GF(t,i){if(1&t&&(a(0,"span",16),h(1),l()),2&t){const e=_(4);c(1),de(e.eventList.numberOfGuests>1?e.eventList.numberOfGuests+" convidados":e.eventList.numberOfGuests+" convidado")}}function WF(t,i){if(1&t&&(a(0,"span",17),h(1),l()),2&t){const e=_(4);c(1),de(e.eventList.numberOfProducts>1?e.eventList.numberOfProducts+" produtos":e.eventList.numberOfProducts+" produto")}}function JF(t,i){if(1&t&&(a(0,"div",13),C(1,GF,2,1,"span",14),C(2,WF,2,1,"span",15),l()),2&t){const e=_(3);c(1),d("ngIf",e.eventList.numberOfGuests>1),c(1),d("ngIf",e.eventList.numberOfProducts>1)}}function ZF(t,i){if(1&t&&(a(0,"div",3)(1,"div",3)(2,"div",4),B(3,"img",5),l(),a(4,"div",6),B(5,"img",5),l(),a(6,"div",7)(7,"span",8),C(8,HF,2,2,"span",9),C(9,zF,2,1,"span",9),C(10,qF,2,1,"span",9),C(11,$F,2,1,"span",9),C(12,UF,2,1,"span",9),l(),a(13,"span",10),h(14),Wi(15,"date"),l(),C(16,JF,3,2,"div",11),a(17,"p",12),h(18),l()()()()),2&t){const e=_(2);d("className",e.dataClassContainer),c(1),d("className",e.dataClassChildren),c(2),Ue("src",e.eventList.urlInvitationPicture,fe),c(2),Ue("src",e.eventList.urlPicture,fe),c(2),d("ngSwitch",e.eventList.type),c(1),d("ngSwitchCase",1),c(1),d("ngSwitchCase",2),c(1),d("ngSwitchCase",3),c(1),d("ngSwitchCase",4),c(1),d("ngSwitchCase",5),c(2),de(vd(15,13,e.eventList.eventDate,"dd/MM/yyyy")),c(2),d("ngIf",e.eventList.numberOfGuests>1||e.eventList.numberOfProducts>1),c(2),de(e.eventList.message)}}function QF(t,i){if(1&t&&(a(0,"div",1),C(1,ZF,19,16,"div",2),l()),2&t){const e=_();c(1),d("ngIf",e.eventList)}}let YF=(()=>{class t{constructor(e,n){this.commomService=e,this.sharedDataCommom=n,this.dataButtonSearch="Buscar",this.dataClassContainer="",this.dataClassChildren="",this.dataClassContainerResult="",this.dataClassChildrenResult="",this.dataClassInput="",this.dataTextLink="Visualizar lista",this.loading=!1}ngOnInit(){this.dataClassButton=""!==this.dataClassButton?"jet-button "+this.dataClassButton:"jet-button",this.dataClassContainer=""!==this.dataClassContainer?"jet-container "+this.dataClassContainer:"jet-container",this.dataClassChildren=""!==this.dataClassChildren?"jet-class-children "+this.dataClassChildren:"jet-class-children",this.dataClassContainerResult=""!==this.dataClassContainerResult?"jet-container jet-container-result "+this.dataClassContainerResult:"jet-container jet-container-result",this.dataClassChildrenResult=""!==this.dataClassChildrenResult?"jet-class-children "+this.dataClassChildrenResult:"jet-class-children",this.dataClassInput=""!==this.dataClassInput?"jet-input "+this.dataClassInput:"jet-input",this.eventsSubs$=this.sharedDataCommom.eventList$.subscribe(e=>{e&&(0==e.length&&(document.location.href="/busca-lista-eventos"),e[0].status?this.eventList=e[0]:window.location.href="/busca-lista-eventos")}),this.commomService.finishLoadComponent("onJetEventListInfoLoaded")}static#e=this.\u0275fac=function(n){return new(n||t)($(qt),$(yn))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-event-list-info"]],inputs:{dataClassButton:["data-class-button","dataClassButton"],dataButtonSearch:["data-text-button","dataButtonSearch"],dataClassContainer:["data-class-container","dataClassContainer"],dataClassChildren:["data-class-children","dataClassChildren"],dataClassContainerResult:["data-class-container-result","dataClassContainerResult"],dataClassChildrenResult:["data-class-children-result","dataClassChildrenResult"],dataClassInput:["data-class-in
3put","dataClassInput"],dataTextLink:["data-text-link","dataTextLink"]},decls:1,vars:1,consts:[["class","jet-event-list-info",4,"ngIf"],[1,"jet-event-list-info"],[3,"className",4,"ngIf"],[3,"className"],[1,"image-preview"],["alt","imageList","loading","lazy",3,"src"],[1,"image-list"],[1,"event-content"],[1,"event-title",3,"ngSwitch"],[4,"ngSwitchCase"],[1,"event-date"],["class","event-numbers",4,"ngIf"],[1,"event-message"],[1,"event-numbers"],["class","event-guests",4,"ngIf"],["class","event-products",4,"ngIf"],[1,"event-guests"],[1,"event-products"]],template:function(n,r){1&n&&C(0,QF,2,1,"div",0),2&n&&d("ngIf",r.eventList)},dependencies:[en,ku,rm,bd]})}return t})();class KF extends Tt{notifyNext(i,e,n,r,o){this.destination.next(e)}notifyError(i,e){this.destination.error(i)}notifyComplete(i){this.destination.complete()}}class XF extends Tt{constructor(i,e,n){super(),this.parent=i,this.outerValue=e,this.outerIndex=n,this.index=0}_next(i){this.parent.notifyNext(this.outerValue,i,this.outerIndex,this.index++,this)}_error(i){this.parent.notifyError(i,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function eA(t,i,e,n,r=new XF(t,e,n)){if(!r.closed)return i instanceof Se?i.subscribe(r):gr(i)(r)}const Sy={};function cv(...t){let i,e;return Dn(t[t.length-1])&&(e=t.pop()),"function"==typeof t[t.length-1]&&(i=t.pop()),1===t.length&&vn(t[0])&&(t=t[0]),va(t,e).lift(new tA(i))}class tA{constructor(i){this.resultSelector=i}call(i,e){return e.subscribe(new nA(i,this.resultSelector))}}class nA extends KF{constructor(i,e){super(i),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(i){this.values.push(Sy),this.observables.push(i)}_complete(){const i=this.observables,e=i.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++)this.add(eA(this,i[n],void 0,n))}}notifyComplete(i){0==(this.active-=1)&&this.destination.complete()}notifyNext(i,e,n){const r=this.values,s=this.toRespond?r[n]===Sy?--this.toRespond:this.toRespond:0;r[n]=e,0===s&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(i){let e;try{e=this.resultSelector.apply(this,i)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}class iA{constructor(i,e,n,r,o,s,u,v,w,P,F,R,V){this.sharedDataCommom=i,this.customerService=e,this.checkoutService=n,this.commomService=r,this.fb=o,this.dataShow=s,this.idCustomer=u,this.isDeliveryWithPickup=v,this.showMultiCd=w,this.useBondCustomerMultiCD=P,this.showModalMultiCd=F,this.updateCartMultiCD=R,this.useDeliveryWithPickup=V,this.location="Informe o CEP",this.hasMultiCD=!1,this.listIdMultiCd="",this.showModalZipCode=!1,this.isJetTronUserAgent=/JET-TRON/.test(navigator.userAgent),this.events=["onJetCartPreviewLoaded","onJetitemsLoaded"]}get f(){return this.zipCodeForm.controls}initFlow(){this.isJetTronUserAgent||(this.customerService.getCD().subscribe(i=>{(!i||!this.showMultiCd)&&(localStorage.removeItem("location"),this.customerService.removeCDFromCookie().subscribe()),i&&this.showMultiCd&&(localStorage.getItem("location")||this.useBondCustomerMultiCD||-1!=document.location.href.indexOf("checkout/payment")?(localStorage.getItem("location")&&this.showModalMultiCd&&(this.location=JSON.parse(localStorage.getItem("location")).location,this.sharedDataCommom.changeValueMultiCdEvents({event:"location",value:this.location})),this.hasMultiCD=!0,this.idMultiCD=i):this.customerService.removeCDFromCookie().subscribe())}),this.showMultiCd&&(this.initForm(),this.instanciateEvent(),this.instanciateEventchangeCDPickup(),document.addEventListener("onJetRemoveCDAfter",i=>{(!this.idMultiCD||0==this.idMultiCD)&&this.customerService.removeCDFromCookie().subscribe(e=>{})})))}initForm(){this.zipCodeForm=this.fb.group({zipCode:["",[oe.required,oe.minLength(9)]]}),this.sharedDataCommom.changeValueMultiCdEvents({event:"zipCodeForm",value:this.zipCodeForm})}instanciateEvent(){document.addEventListener("onJetChangedZipCode",i=>{this.searchZipCode(i.detail.value,!0,i.detail.isCheckout,i.detail.isDeliveryWithPickup,!1,!0,i.detail.stateId,i.detail.idCountryToSimulate)},{passive:!0,once:!0})}instanciateEventchangeCDPickup(){document.addEventListener("onJetChangedCDPickup",i=>{this.changeCDPickup(i.detail.zipCode,i.detail.idShippingMode)},{passive:!0,once:!0})}verifyCD(i,e,n,r,o,s,u,v,w){this.customerService.getCustomerCD(i,null,this.idCustomer,this.isDeliveryWithPickup,void 0,w).subscribe(P=>{if(P){if(P.idMultiCD<=0)return e?void this.searchZipCode(i,!1,!1,!0,!1):void this.handleErrorFindingCD(n,!1,v);this.updateCartMultiCD?this.executeChangeCD(P,n,r,o,i,s):this.checkoutService.changeCDValidate(P.idMultiCD,n).subscribe(F=>{0==F.length?this.executeChangeCD(P,n,r,o,i,s):document.location.href.indexOf("/checkout?showDistributionCenterStock=true")>-1&&u?this.commomService.finishLoadComponent("updateCartToFinish"):n?(this.commomService.hideLoading(),this.commomService.finishLoadComponent("changeShippingVisibility",{detail:{value:!1,idMultiCD:P.idMultiCD,activeModalDistributionCenterStock:!0}})):document.location.href="/checkout?showDistributionCenterStock=true&idMultiCd="+P.idMultiCD+"&cep="+i})}else this.handleErrorFindingCD(n)},P=>{this.handleErrorFindingCD(n)})}searchZipCode(i,e=!1,n=!1,r=!1,o=!1,s=!0,u,v){this.isDeliveryWithPickup=r;var P=i??document.querySelector("#multicd-cep").value;P=P.replace("-",""),o=!!this.useDeliveryWithPickup&&o;var F=JSON.parse(localStorage.getItem("location"))?.zipCode;F=F?.replace("-",""),document.body.classList.add("jet-loading"),u?this.verifyCD(P,o,n,e,null,!1,r,this.useDeliveryWithPickup,v):this.customerService.buscaCep(this.commomService.cepUnMask(P)).subscribe(R=>{if(null==R)return this.commomService.displayMessageUser("error","CEP inexistente.","Por favor, digite um CEP v\xe1lido."),void this.commomService.hideLoading();this.verifyCD(P,o,n,e,R,!1,r,this.useDeliveryWithPickup)}),s&&this.instanciateEvent()}handleErrorFindingCD(i,e=!0,n=!1){if(e&&(this.idMultiCD=0,this.listIdMultiCd=""),n||document.querySelector(".btn-recalculate")?.click(),this.commomService.hideLoadingByClass("cart-summary"),setTimeout(()=>{document.querySelector(".calc-freight.jet-btn-loading")?.classList.remove("jet-btn-loading")},200),this.commomService.hideLoading(),i)this.commomService.finishLoadComponent("changeShippingVisibility",{detail:{value:!1}});else{var r=this.getDescriptionNoResults();this.commomService.displayMessageUser("error","Indispon\xedvel para sua regi\xe3o",r)}}executeChangeCD(i,e,n,r,o,s){if(this.useBondCustomerMultiCD&&this.showMultiCd)return this.checkoutService.changeCD(i.idMultiCD,e).subscribe(u=>{if(u){if(this.commomService.finishLoadComponent("MultiCDNoResults"),"[SOMENTE_VALIDACAO]"==u)return e||this.commomService.displayMessageUser("error","Indispon\xedvel para sua regi\xe3o","N\xe3o existem op\xe7\xf5es de frete dispon\xedveis para o seu endere\xe7o. Contate a loja."),void this.commomService.finishLoadComponent("changeShippingVisibility",{detail:{value:!1}});this.commomService.finishLoadComponent("onJetChangeCD"),e||this.commomService.displayMessageUser("error","Indisponibilidade",u)}}),document.querySelector(".calc-freight.jet-btn-loading")?.classList.remove("jet-btn-loading"),this.commomService.hideLoading(),void this.commomService.finishLoadComponent("changeShippingVisibility",{detail:{value:!0,idMultiCd:i.idMultiCD,listIdMultiCd:i.listIdMultiCd}});cv([this.customerService.changeCD(i.idMultiCD,this.idCustomer),this.checkoutService.changeCD(i.idMultiCD,e)]).subscribe(u=>{if(u){if((n&&this.idMultiCD&&this.idMultiCD>0&&!e||!n)&&(this.location=r.city+" - "+r.state,this.sharedDataCommom.changeValueMultiCdEvents({event:"location",value:this.location}),localStorage.setItem("location",JSON.stringify({location:this.location,zipCode:o})),this.idMultiCD!=i.idMultiCD)){if(this.idMultiCD=i.idMultiCD,this.listIdMultiCd=i.listIdMultiCd,this.commomService.finishLoadComponent("onJetChangeCD"),!e&&this.useDeliveryWithPickup)return this.commomService.hideLoading(),this.commomService.displayMessageUser("success","Endere\xe7o alterado","Carrinho atualizado para quantidade e pre\xe7o dispon\xedveis em seu CEP."),void this.searchZipCode(o,!0,!1,this.isDeliveryWithPickup,!1,!1);this.commomService.displayMessageUser("success","Endere\xe7o alterado","Carrinho atualizado para quantidade e pre\xe7o dispon\xedveis em seu CEP."),e&&(s=!0)}this.commomService.hideLoading(),this.idMultiCD!=i.idMultiCD&&(e&&(this.commomService.finishLoadComponent("onJetChangeCD"),s=!0),this.commomService.displayMessageUser("success","Endere\xe7o alterado","Carrinho atualizado para quantidade e pre\xe7o dispon\xedveis em seu CEP.")),this.dataShow&&(document.getElementsByClassName("modal-change-cd")[0]?.classList.add("hide"),this.showModalZipCode=!1),this.commomService.finishLoadComponent("onJetMultiCDUpdateCart"),!e&&!this.showModalMultiCd&&this.customerService.removeCDFromCookie().subscribe(v=>{}),e&&"[SOMENTE_VALIDACAO]"==u[1]?(this.commomService.finishLoadComponent("MultiCDNoResults"),this.commomService.finishLoadComponent("changeShippingVisibility",{detail:{value:!1}})):s||(e?this.commomService.finishLoadComponent("changeShippingVisibility",{detail:{value:!0,idMultiCd:i.idMultiCD,listIdMultiCd:i.listIdMultiCd}}
3):this.events.forEach(v=>{document.addEventListener(v,w=>{this.commomService.finishLoadComponent("changeShippingVisibility",{detail:{value:!0,idMultiCd:i.idMultiCD,listIdMultiCd:i.listIdMultiCd}})},{passive:!0,once:!0})}))}else this.idMultiCD=0,this.listIdMultiCd="",this.commomService.finishLoadComponent("MultiCDNoResults"),e||this.commomService.displayMessageUser("error","Indispon\xedvel para sua regi\xe3o",this.isDeliveryWithPickup?"Infelizmente ainda n\xe3o temos nenhuma op\xe7\xe3o para retirada.":"Infelizmente ainda n\xe3o entregamos nessa regi\xe3o."),document.querySelector(".calc-freight.jet-btn-loading")?.classList.remove("jet-btn-loading"),this.commomService.hideLoadingByClass("cart-summary"),this.commomService.hideLoading(),this.commomService.finishLoadComponent("changeShippingVisibility",{detail:{value:!1}})})}changeCDPickup(i,e){this.customerService.getCustomerCD(i,null,this.idCustomer,this.isDeliveryWithPickup,e).subscribe(n=>{n&&this.idMultiCD!=n.idMultiCD&&cv([this.customerService.changeCD(n.idMultiCD,this.idCustomer),this.checkoutService.changeCD(n.idMultiCD,!0)]).subscribe(r=>{r&&(this.idMultiCD=n.idMultiCD)})}),this.instanciateEventchangeCDPickup()}getDescriptionNoResults(){this.commomService.finishLoadComponent("MultiCDNoResults");var i="Infelizmente ainda n\xe3o entregamos nessa regi\xe3o.";return this.useBondCustomerMultiCD&&(i="N\xe3o existem op\xe7\xf5es de frete dispon\xedveis para o seu endere\xe7o. Contate a loja."),this.isDeliveryWithPickup&&(i="Infelizmente ainda n\xe3o temos nenhuma op\xe7\xe3o para retirada."),i}}class rA{constructor(i,e,n){this.commomService=i,this.checkoutService=e,this.company=n}initFlow(){var i=!1;"/checkout/payment"==document.location.pathname&&(i=!0),document.addEventListener("onJetChangedZipCode",e=>{e.detail.isDeliveryWithPickup?this.checkoutService.getFreightsProductSplitPickup(e.detail.value,!1,void 0,i).subscribe(n=>{this.commomService.finishLoadComponent("onJetSplitShippingLoaded",{detail:{value:n}})},n=>{this.commomService.finishLoadComponent("onJetSplitShippingLoaded",{detail:{value:[]}})}):this.splitFlow(e)},{passive:!0}),document.addEventListener("onJetSplitPickUpSelected",e=>{this.splitFlow(e,!0)})}splitFlow(i,e=!1){this.checkoutService.getFreightsWithSplit(i.detail.value,i.detail.freeShippingVoucher,i.detail.isCheckout,i.detail.isDeliveryWithPickup,i.detail.idShippingMode,i.detail?.idAddress,i.detail?.stateId).subscribe(n=>(n[0].returnGeneralMessageSplit&&n[0].returnGeneralMessageSplit.length>0&&this.commomService.displayMessageUser("error",n[0].returnGeneralMessageSplit),this.commomService.finishLoadComponent("onJetChangeDigitalCart",(!n[0].idSplitPackageCart||0==n[0].idSplitPackageCart)&&n.length>0&&n[0].shipping?.length>0&&n[0].shipping[0].shippingMode?.isDigitalCart?{detail:{value:!0}}:{detail:{value:!1}}),n[0].shouldRecalculateDiscount&&this.commomService.finishLoadComponent("onJetCallRemoveAndApplyDiscounts"),n[0].returnMessageSplit.indexOf("parcialmente")>-1||i.detail.isDeliveryWithPickup&&n[1]&&n[1].returnMessageSplit.indexOf("parcialmente")>-1?(this.commomService.hideLoading(),void this.commomService.finishLoadComponent("changeShippingVisibility",{detail:{value:!1,activeModalDistributionCenterStock:!0}})):n[0].returnMessageSplit.indexOf("Nenhum CD atende o carrinho")>-1?(this.commomService.hideLoading(),void this.commomService.finishLoadComponent("changeShippingVisibility",{detail:{value:!1,activeModalDistributionCenterStock:!1}})):(n[0].idSplitPackageCart&&0!=n[0].idSplitPackageCart||e?(!e||e&&n[0].idSplitPackageCart&&n[0].idSplitPackageCart>0)&&this.commomService.finishLoadComponent("onJetWithSplitShippingLoaded",{detail:{value:n}}):this.commomService.finishLoadComponent("onJetSplitShippingLoaded",{detail:{value:n[0].shipping}}),void((!n[0].idSplitPackageCart||0==n[0].idSplitPackageCart)&&e&&this.commomService.finishLoadComponent("onJetWithSplitOnlySelectLoaded")))),n=>{document.body.classList.remove("jet-loading"),this.commomService.hideLoading(),this.commomService.finishLoadComponent("changeShippingVisibility",{detail:{value:!1,activeModalDistributionCenterStock:!1}})})}}function oA(t,i){if(1&t){const e=ve();a(0,"div",6),J("click",function(){return M(e),L(_(2).changeCd())}),h(1),l()}if(2&t){const e=_(2);c(1),dt(" ",e.location," ")}}function sA(t,i){if(1&t){const e=ve();a(0,"div",7),J("click",function(){return M(e),L(_(2).changeCd())}),h(1," Alterar "),l()}}function aA(t,i){if(1&t){const e=ve();a(0,"form",13),J("ngSubmit",function(){M(e);const r=_(3);return L(r.verifyZipCodeTaxAndSearchZipCode(r.multiCdNoSplit.searchZipCode(null,!1,!1,!1,!0)))})("keypress",function(r){M(e);const o=_(3);return L(o.commomService.disableSubmit(r,!o.zipCodeForm.valid))}),a(1,"input",14,15),J("keyup",function(){return M(e),L(_(3).maskZipCode())}),l(),a(3,"button",16),h(4,"OK"),l()()}
32&t&&d("formGroup",_(3).zipCodeForm)}function lA(t,i){if(1&t&&(a(0,"div",8)(1,"span",9),h(2,"Para uma melhor experi\xeancia dentro do site nos informe o "),a(3,"b"),h(4,"CEP"),l(),h(5," do local de entrega"),l(),a(6,"div",10),C(7,aA,5,1,"form",11),l(),a(8,"span",12),h(9,"* A quantidade e pre\xe7o dos produtos ser\xe3o atualizados para sua regi\xe3o."),l()()),2&t){const e=_(2);c(7),d("ngIf",e.zipCodeForm)}}function cA(t,i){if(1&t){const e=ve();a(0,"div")(1,"div",1),J("click",function(){return M(e),L(_().changeCd())}),hg(2),l(),a(3,"div",2),C(4,oA,2,1,"div",3),C(5,sA,2,0,"div",4),C(6,lA,10,1,"div",5),l()()}if(2&t){const e=_();q1(e.dataClassContainer),c(4),d("ngIf",1!=e.dataMobile),c(1),d("ngIf",1!=e.dataMobile),c(1),d("ngIf",e.showModalZipCode)}}const dA=["*"];let uA=(()=>{class t{constructor(e,n,r,o,s){this.sharedDataCommomService=e,this.commomService=n,this.customerService=r,this.fb=o,this.checkoutService=s,this.dataClassContainer="",this.showMultiCd=!1,this.showModalMultiCd=!1,this.useBondCustomerMultiCD=!1,this.updateCartMultiCD=!0,this.useDeliveryWithPickup=!1,this.isDeliveryWithPickup=!1,this.dataRenderMobile=!1,this.dataRenderDesktop=!1,this.location="Informe o CEP",this.showModalZipCode=!1}get f(){return this.zipCodeForm.controls}ngOnInit(){this.dataClassContainer="jet-multicd "+this.dataClassContainer,this.dataShow="true"===this.dataShow,this.dataMobile="true"===this.dataMobile,this.dataSameDevice="true"===this.dataSameDevice,this.dataRenderMobile=this.commomService.isDevice()&&1==this.dataMobile,this.dataRenderDesktop=!(this.commomService.isDevice()||this.dataMobile&&1==this.dataMobile),this.dataShow=this.dataShow?this.dataRenderMobile||this.dataRenderDesktop||this.dataSameDevice:this.dataShow,this.customerService.isLogged().subscribe(e=>{e&&(this.idCustomer=e.data.idCustomer)}),cv([this.sharedDataCommomService.currentCompany$,this.sharedDataCommomService.international$]).pipe(Mu(([e,n])=>null!=e&&null!=n),Ru(1)).subscribe(([e,n])=>{e&&(this.showMultiCd=e.activeMultiCD,this.showModalMultiCd=!n?.isInternational&&e.activeModalMultiCD,this.useBondCustomerMultiCD=e.useBondCustomerMultiCD,this.updateCartMultiCD=e.updateCartMultiCD,this.useDeliveryWithPickup=e.useDeliveryWithPickup,this.showMultiCd&&(e.activeCartSplitMultiCD?(this.customerService.removeCDFromCookie().subscribe(),this.multiCdWithSplit=new rA(this.commomService,this.checkoutService,e),this.multiCdWithSplit.initFlow()):(this.multiCdNoSplit=new iA(this.sharedDataCommomService,this.customerService,this.checkoutService,this.commomService,this.fb,this.dataShow,this.idCustomer,this.isDeliveryWithPickup,this.showMultiCd,this.useBondCustomerMultiCD,this.showModalMultiCd,this.updateCartMultiCD,this.useDeliveryWithPickup),this.multiCdNoSplit.initFlow())))}),this.sharedDataCommomService.multiCdEvents$.subscribe(e=>{if(null!=e)switch(e.event){case"location":this.location=e.value;break;case"zipCodeForm":this.zipCodeForm=e.value}})}changeCd(){0==this.showModalZipCode?(this.showModalZipCode=!0,setTimeout(()=>{document.getElementsByClassName("modal-change-cd")[0].classList.remove("hide"),this.commomService.finishLoadComponent("onJetModalChanceOpen")},100)):(document.getElementsByClassName("modal-change-cd")[0].classList.add("hide"),this.commomService.finishLoadComponent("onJetModalChanceClose"),setTimeout(()=>{this.showModalZipCode=!1},500))}maskZipCode(){this.f.zipCode.setValue(this.commomService.cepMask(this.f.zipCode.value))}verifyZipCodeTaxAndSearchZipCode(){this.sharedDataCommomService.currentCompany$.pipe(Mu(e=>null!=e),Ru(1)).subscribe(e=>{if(e){var n=document.querySelector("#multicd-cep").value;n=n.replace("-",""),this.commomService.setZipCodeTax(n).subscribe(),this.multiCdNoSplit.searchZipCode(null,!1,!1,!1,!0)}})}static#e=this.\u0275fac=function(n){return new(n||t)($(yn),$(qt),$(Ci),$(ty),$(Ss))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-multicd"]],inputs:{dataClassContainer:["data-class-container","dataClassContainer"],dataShow:["data-show","dataShow"],dataMobile:["data-mobile","dataMobile"],dataSameDevice:["data-same-device","dataSameDevice"]},ngContentSelectors:dA,decls:1,vars:1,consts:[[3,"class",4,"ngIf"],[1,"icon",3,"click"],[1,"text"],["class","location",3,"click",4,"ngIf"],["class","action",3,"click",4,"ngIf"],["class","modal-change-cd hide",4,"ngIf"],[1,"location",3,"click"],[1,"action",3,"click"],[1,"modal-change-cd","hide"],[1,"description-cep"],[1,"input"],["novalidate","",3,"formGroup","ngSubmit","keypress",4,"ngIf"],[1,"observation"],["novalidate","",3,"formGroup","ngSubmit","keypress"],["type","text","id","multicd-cep","placeholder","CEP","formControlName","zipCode","maxlength","9",3,"keyup"],["zipCode",""],["type","submit"]],template:function(n,r){1&n&&(ug(),C(0,cA,7,5,"div",0)),2&n&&d("ngIf",r.showMultiCd&&r.showModalMultiCd&&r.dataShow)},dependencies:[en,Gr,mr,fr,Ur,Zo,Ir,Mr]})}return t})(),hA=(()=>{class t{constructor(e){this.http=e}getImageTablePrice(){return this.http.post("/api",{request:"111d873e-0fb6-4e48-88af-082c64b65e66/10fd29aa-bae6-4996-8c19-2b6aedc2913f",json:null})}static#e=this.\u0275fac=function(n){return new(n||t)(Mt(ko))};static#t=this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function mA(t,i){if(1&t&&(a(0,"div",2)(1,"a",3),B(2,"img",4),l()()),2&t){const e=_();c(1),Ue("href",e.urlStore,fe),Ue("title",e.altImage),c(1),Ue("alt",e.altImage),d("src",e.urlImage,fe)("decode",!0)}}let fA=(()=>{class t{constructor(e,n,r,o,s){this.sharedDataCommomService=e,this.commomService=n,this.tablePriceService=r,this.sharedDataCheckoutService=o,this.sharedDataCustomerCenterService=s,this.urlStore="",this.altImage=void 0,this.urlImage=void 0,this.isLoggedB2B=!1,this.dataDevice="",this.altImageExt="",this.linkImageExt=""}ngOnInit(){}ngOnDestroy(){null!=this.subscriptionTablePrice$&&this.subscriptionTablePrice$.unsubscribe()}onElementVisible(){""!==this.dataDevice&&("mobile"===this.dataDevice.toLowerCase()&&!this.commomService.isDevice()||"desktop"===this.dataDevice.toLowerCase()&&this.commomService.isDevice())||this.sharedDataCommomService.authorizedB2B$.subscribe(e=>{null!=e&&(this.isLoggedB2B=e,this.isLoggedB2B&&(this.urlStore=d
3ocument.location.origin,""!=this.linkImageExt&&(this.urlStore=this.linkImageExt),this.subscriptionTablePrice$=this.tablePriceService.getImageTablePrice().subscribe(n=>{n&&(this.altImage=n.alt,""!=this.altImageExt&&(this.altImage=this.altImageExt),n.image&&""!=n.image&&(this.urlImage=n.image),this.commomService.finishLoadComponent("onJetImageTablePriceLoaded"))})))})}static#e=this.\u0275fac=function(n){return new(n||t)($(yn),$(qt),$(hA),$($h),$(Bu))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-image-table-price"]],inputs:{dataDevice:["data-device","dataDevice"],altImageExt:["alt-image","altImageExt"],linkImageExt:["link-image","linkImageExt"]},decls:2,vars:1,consts:[["jetVisibilityCheck","",1,"jetlazyload",3,"elementVisible"],["class","jet-image-table-price",4,"ngIf"],[1,"jet-image-table-price"],[3,"href","title"],["jet-image-size","","loading","eager","fetchPriority","high",3,"src","alt","decode"]],template:function(n,r){1&n&&(a(0,"div",0),J("elementVisible",function(){return r.onElementVisible()}),C(1,mA,3,5,"div",1),l()),2&n&&(c(1),d("ngIf",null!=r.urlImage))},dependencies:[en,bs,Yo],encapsulation:2})}return t})(),dv=(()=>{class t{constructor(e){this.http=e}getCustomFields(e=!1){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/e51e751e-8d39-4e1f-b0bf-6f3096c5528c",params:e?"?idCustomer={idCustomer}":"",json:null})}updateCustomFields(e){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/994885ab-18d1-4dbf-a9c7-fc4c3ad86a05",params:"?idCustomer={idCustomer}",json:e})}resetControlOfCustomFields(e,n){for(let r=0;r<n.length;r++){const o=n[r];o&&e.controls[o._id]&&e.removeControl(o._id.toString())}e.updateValueAndValidity()}createControlOfCustomFields(e,n,r,o=!1){for(let s=0;s<r.length;s++){const u=r[s];if(u){let v="";"caixa-selecao"==u.type?u.optionsSelect.split(",").findIndex(w=>w==u.value)>-1&&(v=u.value):v=u.value,e.addControl(u._id.toString(),n.control(v??"")),u.mandatoryField&&e.controls[u._id].setValidators(oe.required),"upload-arquivo"==u.type&&u.file&&(e.addControl("file_"+u._id,n.control(u.file)),e.controls["file_"+u._id].updateValueAndValidity()),!v&&o&&e.controls[u._id].markAsTouched(),e.controls[u._id].updateValueAndValidity()}}}static#e=this.\u0275fac=function(n){return new(n||t)(Mt(ko))};static#t=this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function pA(t,i){if(1&t&&B(0,"input",15),2&t){const e=_(2).$implicit;d("formControlName",e._id.toString())("id",e._id)("placeholder",e.placeHolder),ii("maxlength",e.charactersLimit||null)}}function gA(t,i){if(1&t&&(a(0,"option",19),h(1),l()),2&t){const e=i.$implicit;Ue("value",e),c(1),dt(" ",e," ")}}function vA(t,i){if(1&t&&(a(0,"select",16)(1,"option",17),h(2),l(),C(3,gA,2,2,"option",18),l()),2&t){const e=_(2).$implicit;d("placeholder",e.placeHolder)("formControlName",e._id.toString()),c(2),de(e.placeHolder),c(1),d("ngForOf",e.optionsSelect.split(","))}}function _A(t,i){if(1&t&&B(0,"textarea",20),2&t){const e=_(2).$implicit;d("formControlName",e._id.toString())("id",e._id)("placeholder",e.placeHolder),ii("maxlength",e.charactersLimit||null)}}function CA(t,i){if(1&t&&(a(0,"span",21),h(1),l()),2&t){const e=_(2).$implicit,n=_(2);c(1),dt("",e.charactersLimit-n.form.get(e._id.toString()).value.length," caracteres restantes")}}function yA(t,i){1&t&&(a(0,"span"),h(1," Campo obrigat\xf3rio "),l())}function bA(t,i){if(1&t&&(a(0,"span"),h(1),l()),2&t){const e=_(3).$implicit;c(1),dt(" Ultrapassou o limite de ",e.charactersLimit," caracteres ")}}function SA(t,i){1&t&&(a(0,"span"),h(1," Extens\xe3o inv\xe1lida "),l())}function wA(t,i){1&t&&(a(0,"span"),h(1," Excedeu tamanho limite permitido "),l())}function IA(t,i){if(1&t&&(a(0,"div",22),C(1,yA,2,0,"span",7),C(2,bA,2,1,"span",7),C(3,SA,2,0,"span",7),C(4,wA,2,0,"span",7),l()),2&t){const e=_(2).$implicit,n=_(2);let r,o;c(1),d("ngIf",null==(r=n.form.get(e._id.toString()))||null==r.errors?null:r.errors.required),c(1),d("ngIf",null==(o=n.form.get(e._id.toString()))||null==o.errors?null:o.errors.maxlength),c(1),d("ngIf",null==n.idForm[e._id].errors?null:n.idForm[e._id].errors.extensionInvalid),c(1),d("ngIf",null==n.idForm[e._id].errors?null:n.idForm[e._id].errors.sizeFileExceed)}}const xA=function(t,i){return{success:t,"custom-input-file":i}};function DA(t,i){if(1&t&&(ht(0),a(1,"div",8)(2,"label",9),h(3),l(),C(4,pA,1,4,"input",10),C(5,vA,4,4,"select",11),C(6,_A,1,4,"textarea",12),C(7,CA,2,1,"span",13),C(8,IA,5,4,"div",14),l(),mt()),2&t){const e=_().$implicit,n=_(2);let r,o;c(1),Ah("",n.fieldClass," additional_field"),d("ngClass",Us(12,xA,null==(r=n.form.get(e._id.toString()))?null:r.valid,"upload-arquivo"==e.type)),c(1),d("for",e._id),c(1),Eo("",e.name,"",e.mandatoryField?"*":"",""),c(1),d("ngIf","texto"==e.type),c(1),d("ngIf","caixa-selecao"==e.type),c(1),d("ngIf","area-texto"==e.type),c(1),d("ngIf","area-texto"==e.type),c(1),d("ngIf",(null==(o=n.form.get(e._id.toString()))?null:o.touched)&&(null==(o=n.form.get(e._id.toString()))?null:o.invalid))}}function PA(t,i){if(1&t&&(ht(0),C(1,DA,9,15,"ng-container",7),mt()),2&t){const e=i.$implicit,n=_(2);c(1),d("ngIf",n.idForm[e._id.toString()])}}function TA(t,i){if(1&t){const e=ve();ht(0),we(),a(1,"svg",27),B(2,"path",28)(3,"path",29),l(),Pe(),a(4,"strong"),h(5,"Nenhum arquivo enviado at\xe9 o momento."),l(),a(6,"span"),h(7," Permitidos: jpg, jpeg, png, webp, pdf, xls, xlsx, csv, doc, docx, txt"),B(8,"br"),h(9," Tamanho m\xe1ximo de 5MB "),l(),a(10,"button",30),J("click",function(){M(e);const r=_(3).$implicit;return L(_(3).openFileDialog(r._id))}),h(11," Anexar arquivo "),l(),a(12,"input",31),J("change",function(r){M(e);const o=_(3).$implicit;return L(_(3).uploadFile(r.target,o._id.toString()))}),l(),mt()}if(2&t){const e=_(3).$implicit;c(12),d("id",e._id)}}function EA(t,i){if(1&t){const e=ve();ht(0),a(1,"div",32)(2,"span",33),h(3),l(),a(4,"a",34),J("click",function(){M(e);const r=_(3).$implicit;return L(_(3).deleteFile(r._id))}),we(),a(5,"svg",35),B(6,"path",36),l(),Pe(),a(7,"span"),h(8,"remover"),l()()(),a(9,"button",37),J("click",function(){M(e);const r=_(3).$implicit,o=_(3);return L(o.downloadFile(o.idForm["file_"+r._id].value,o.idForm[r._id].value))}
3),a(10,"a",38),h(11,"Download do arquivo"),l()(),mt()}if(2&t){const e=_(3).$implicit,n=_(3);c(3),de(n.idForm[e._id].value)}}function LA(t,i){if(1&t&&(a(0,"div",26),C(1,TA,13,1,"ng-container",7),C(2,EA,12,1,"ng-container",7),l()),2&t){const e=_(2).$implicit,n=_(3);c(1),d("ngIf",""==n.idForm[e._id].value||null==n.idForm[e._id].value),c(1),d("ngIf",""!==n.idForm[e._id].value&&null!=n.idForm[e._id].value)}}function kA(t,i){1&t&&(a(0,"span"),h(1," Campo obrigat\xf3rio "),l())}function MA(t,i){if(1&t&&(a(0,"span"),h(1),l()),2&t){const e=_(3).$implicit;c(1),dt(" Ultrapassou o limite de ",e.charactersLimit," caracteres ")}}function FA(t,i){1&t&&(a(0,"span"),h(1," Extens\xe3o inv\xe1lida "),l())}function AA(t,i){1&t&&(a(0,"span"),h(1," Excedeu tamanho limite permitido "),l())}function NA(t,i){if(1&t&&(a(0,"div",39),C(1,kA,2,0,"span",7),C(2,MA,2,1,"span",7),C(3,FA,2,0,"span",7),C(4,AA,2,0,"span",7),l()),2&t){const e=_(2).$implicit,n=_(3);let r,o;c(1),d("ngIf",null==(r=n.form.get(e._id.toString()))||null==r.errors?null:r.errors.required),c(1),d("ngIf",null==(o=n.form.get(e._id.toString()))||null==o.errors?null:o.errors.maxlength),c(1),d("ngIf",null==n.idForm[e._id].errors?null:n.idForm[e._id].errors.extensionInvalid),c(1),d("ngIf",null==n.idForm[e._id].errors?null:n.idForm[e._id].errors.sizeFileExceed)}}function OA(t,i){if(1&t&&(ht(0),a(1,"div",23)(2,"label",9),h(3),l(),C(4,LA,3,2,"div",24),C(5,NA,5,4,"div",25),l(),mt()),2&t){const e=_().$implicit,n=_(3);let r;c(2),d("for",e._id),c(1),Eo("",e.name,"",e.mandatoryField?"*":"",""),c(1),d("ngIf","upload-arquivo"==e.type),c(1),d("ngIf",(null==(r=n.form.get(e._id.toString()))?null:r.touched)&&(null==(r=n.form.get(e._id.toString()))?null:r.invalid))}}
3function RA(t,i){if(1&t&&(ht(0),C(1,OA,6,5,"ng-container",7),mt()),2&t){const e=i.$implicit,n=_(3);c(1),d("ngIf",n.idForm[e._id.toString()])}}function BA(t,i){if(1&t&&(a(0,"div"),C(1,RA,2,1,"ng-container",5),l()),2&t){const e=_(2);Ah("",e.fieldClass," additional_field_file"),c(1),d("ngForOf",e.fieldsWithInputFile)}}function jA(t,i){if(1&t&&(a(0,"form",4),C(1,PA,2,1,"ng-container",5),C(2,BA,2,4,"div",6),l()),2&t){const e=_();d("formGroup",e.form),c(1),d("ngForOf",e.fieldsWithoutInputFile),c(1),d("ngIf",e.fieldsWithInputFile&&e.fieldsWithInputFile.length>0)}}function VA(t,i){if(1&t){const e=ve();a(0,"button",43),J("click",function(){return M(e),L(_(2).btnCancel())}),h(1,"Cancelar"),l()}}const HA=function(t){return{"jet-btn-loading":t}};function zA(t,i){if(1&t){const e=ve();a(0,"button",44),J("click",function(){return M(e),L(_(2).submitCustomForm())}),h(1,"Alterar"),l()}if(2&t){const e=_(2);d("ngClass",Oe(1,HA,e.loading))}}function qA(t,i){if(1&t&&(a(0,"div",40),C(1,VA,2,0,"button",41),C(2,zA,2,3,"button",42),l()),2&t){const e=_();c(1),d("ngIf",e.selfCancelButton),c(1),d("ngIf",e.selfSubmitButton)}}let uv=(()=>{class t{constructor(e,n,r){this.fb=e,this.commomService=n,this.customerCustomService=r,this.fields=[],this.selfSubmitButton=!1,this.selfCancelButton=!1,this.fieldClass="",this.fieldsWithInputFile=[],this.fieldsWithoutInputFile=[]}ngOnInit(){if(this.externalForm)this.form=this.externalForm;else{this.form=this.fb.group({});let e=[];this.customer&&(e=this.fields.filter("0"==this.customer.typeCustomer?n=>0==n.profile||1==n.profile:n=>0==n.profile||2==n.profile)),this.customerCustomService.createControlOfCustomFields(this.form,this.fb,e,!0)}this.fieldsWithInputFile=this.fields.filter(e=>"upload-arquivo"==e.type),this.fieldsWithoutInputFile=this.fields.filter(e=>"upload-arquivo"!=e.type)}get idForm(){return this.form.controls}uploadFile(e,n){this.commomService.showLoading();const r=e.files.item(0);if(!r)return void this.commomService.hideLoading();let o="";o=r.name.split(".").length>2?r.name.split(".")[r.name.split(".").length-1].toLowerCase():r.name.split(".")[1].toLowerCase();let s=r.name.replace("."+o,"");if(s=s.replace(/[^a-zA-Z0-9]/g,""),s.length>10&&(s=s.substring(0,10)),s=this.generateFileName(s)+"."+o,this.form.controls[n]?this.form.controls[n].setValue(s):this.form.addControl(n,this.fb.control(s)),this.form.controls[n].updateValueAndValidity(),!["jpg","jpeg","png","pdf","xls","xlsx","csv","webp","doc","docx","txt"].includes(o))return this.commomService.hideLoading(),e.value="",this.form.controls[n].setValue(""),this.form.controls[n].setErrors({extensionInvalid:!0}),void this.form.controls[n].markAsTouched();if(Number((r.size/1048576).toFixed(2))>5)return this.commomService.hideLoading(),e.value="",this.form.controls[n].setValue(""),void this.form.controls[n].setErrors({sizeFileExceed:!0});this.form.controls[n].setErrors(null),this.form.controls[n].markAsTouched();const w=new FileReader;w.readAsDataURL(r),w.onload=()=>{this.form.controls["file_"+n]?this.form.controls["file_"+n].setValue(w.result):this.form.addControl("file_"+n,this.fb.control(w.result)),this.commomService.hideLoading()},e.value=""}randomLetters(e){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";return Array.from({length:e},()=>n[Math.floor(Math.random()*n.length)]).join("")}deleteFile(e){this.form.controls[e].setValue(""),this.form.controls[e].markAsTouched(),this.form.controls["file_"+e].setValue(""),this.form.controls["file_"+e].markAsTouched()}downloadFile(e,n){var r=this;return(0,Zs.Z)(function*(){if(r.commomService.showLoading(),e.indexOf("api/downloadFile?")>-1){const s=yield(yield fetch(e)).json();if(s){if(1==s||0==s)return r.commomService.displayMessageUser("error","Aten\xe7\xe3o!","N\xe3o foi poss\xedvel realizar o download do arquivo. <br/> Por seguran\xe7a h\xe1 um prazo de 5 minutos ap\xf3s o carregamento da p\xe1gina para realizar o download. <br/>A p\xe1gina ser\xe1 recarregada para nova tentativa"),void setTimeout(()=>{document.location.reload()},5e3);const u=atob(s.base64File),v=new Array(u.length).fill(0).map((R,V)=>u.charCodeAt(V)),w=new Uint8Array(v),P=new Blob([w]),F=document.createElement("a");F.href=URL.createObjectURL(P),F.download=n,F.click(),URL.revokeObjectURL(F.href)}}else{const s=yield(yield fetch(e)).blob(),u=document.createElement("a");u.href=URL.createObjectURL(s),u.download=n,u.click()}r.commomService.hideLoading()})()}generateFileName(e){return`${e}${this.randomLetters(5)}${this.formatDate(new Date)}`}formatDate(e){let n;return n="string"==typeof e?new Date(e):e,n.toLocaleDateString().replace(/\//gi,"")+n.toLocaleTimeString().replace(/:/gi,"")}formatHour(e){let n;return n="string"==typeof e?new Date(e):e,n.toLocaleTimeString().replace(/:/gi,"")}openFileDialog(e){document.getElementById(e).click()}submitCustomForm(){this.commomService.showLoading(),this.form.valid?this.commomService.finishLoadComponent("onJetCustomerCustomFieldsBtnSubmit",{detail:this.form.value}):this.commomService.hideLoading()}btnCancel(){this.commomService.finishLoadComponent("onJetCustomerCustomFieldsBtnCancel")}static#e=this.\u0275fac=function(n){return new(n||t)($(ao),$(qt),$(dv))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-customer-custom-fields"]],inputs:{fields:"fields",externalForm:"externalForm",customer:"customer",selfSubmitButton:"selfSubmitButton",selfCancelButton:"selfCancelButton",fieldClass:"fieldClass"},decls:4,vars:2,consts:[[1,"jet-customer-custom-field"],[1,"container-form"],[3,"formGroup",4,"ngIf"],["class","actions",4,"ngIf"],[3,"formGroup"],[4,"ngFor","ngForOf"],[3,"class",4,"ngIf"],[4,"ngIf"],[3,"ngClass"],[3,"for"],["type","text",3,"formControlName","id","placeholder",4,"ngIf"],[3,"placeholder","formControlName",4,"ngIf"],["cols","30","rows","10",3,"formControlName","id","placeholder",4,"ngIf"],["class","length",4,"ngIf"],["class","invali
3d-feedback",4,"ngIf"],["type","text",3,"formControlName","id","placeholder"],[3,"placeholder","formControlName"],["value",""],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["cols","30","rows","10",3,"formControlName","id","placeholder"],[1,"length"],[1,"invalid-feedback"],[1,"custom-input-file"],["class","content",4,"ngIf"],["class","invalid-feedback invalid-feedback-custom",4,"ngIf"],[1,"content"],["xmlns","http://www.w3.org/2000/svg","width","80","height","64","viewBox","0 0 80 64","fill","none"],["d","M26.8749 31.875L37.8749 20.875C38.1999 20.5625 38.9374 20 39.9999 20C41.0624 20 41.7999 20.5584 42.1211 20.8789L53.1211 31.8789C54.293 33.0508 54.293 34.9489 53.1211 36.1214C51.9493 37.2939 50.0511 37.2933 48.8786 36.1214L42.9999 30.2375V49C42.9999 50.6562 41.6561 52 39.9999 52C38.3436 52 36.9999 50.6562 36.9999 49V30.2375L31.0124 36.0125C29.8405 37.1844 27.9424 37.1844 26.7699 36.0125C25.5974 34.8406 25.7124 33.05 26.8749 31.875Z","fill","black"],["opacity","0.4","d","M67.2 28.325C67.7125 26.9875 68 25.525 68 24C68 17.375 62.625 12 56 12C53.5387 12 51.2388 12.75 49.3363 14.025C45.875 8.025 39.4125 4 32 4C20.95 4 12 12.95 12 24C12 24.3379 12.0137 24.6806 12.0254 25.0166C5.025 27.475 0 34.15 0 42C0 51.9375 8.0625 60 18 60H64C72.8363 60 80 52.8375 80 44C80 36.2625 74.5 29.8 67.2 28.325ZM26.875 31.875L37.875 20.875C38.2 20.5625 38.9375 20 40 20C41.0625 20 41.8 20.5584 42.1213 20.8789L53.1213 31.8789C54.2931 33.0508 54.2931 34.9489 53.1213 36.1214C51.9494 37.2939 50.0513 37.2933 48.8787 36.1214L43 30.2375V49C43 50.6562 41.6562 52 40 52C38.3438 52 37 50.6562 37 49V30.2375L31.0125 36.0125C29.8406 37.1844 27.9425 37.1844 26.77 36.0125C25.5975 34.8406 25.7125 33.05 26.875 31.875Z","fill","black","fill-opacity","0.4"],[1,"file-send",3,"click"],["type","file","accept",".jpg,.jpeg,.png,.pdf,.xls,.xlsx,.csv,.webp,.doc,.docx,.txt",1,"btn-add",3,"id","change"],[1,"file-info"],[1,"file-name"],["href","javascript:void(0);",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","11","height","12","viewBox","0 0 11 12","fill","none"],["d","M10.6071 1.875H8.58442L7.7496 0.544922C7.51585 0.206883 7.15491 0 6.74241 0H4.25759C3.84509 0 3.46205 0.206883 3.25089 0.544922L2.41558 1.875H0.392857C0.174944 1.875 0 2.04211 0 2.25V2.625C0 2.83359 0.174944 3 0.392857 3H0.785714V10.5C0.785714 11.3285 1.48917 12 2.35714 12H8.64286C9.51083 12 10.2143 11.3285 10.2143 10.5V3H10.6071C10.8257 3 11 2.83359 11 2.625V2.25C11 2.04211 10.8257 1.875 10.6071 1.875ZM4.22076 1.1925C4.24531 1.15148 4.29442 1.125 4.34598 1.125H6.65402C6.70619 1.125 6.7553 1.15137 6.77985 1.19238L7.20893 1.875H3.79107L4.22076 1.1925ZM8.64286 10.875H2.35714C2.14016 10.875 1.96429 10.7071 1.96429 10.5V3H9.03571V10.5C9.03571 10.7063 8.85893 10.875 8.64286 10.875ZM5.5 9.75C5.71715 9.75 5.89286 9.58228 5.89286 9.375V4.5C5.89286 4.29272 5.71715 4.125 5.5 4.125C5.28285 4.125 5.10714 4.29375 5.10714 4.5V9.375C5.10714 9.58125 5.28393 9.75 5.5 9.75ZM3.53571 9.75C3.75179 9.75 3.92857 9.58125 3.92857 9.375V4.5C3.92857 4.29272 3.75287 4.125 3.53571 4.125C3.31856 4.125 3.14286 4.29375 3.14286 4.5V9.375C3.14286 9.58125 3.31964 9.75 3.53571 9.75ZM7.46429 9.75C7.68144 9.75 7.85714 9.58228 7.85714 9.375V4.5C7.85714 4.29272 7.68144 4.125 7.46429 4.125C7.24713 4.125 7.07143 4.29375 7.07143 4.5V9.375C7.07143 9.58125 7.24821 9.75 7.46429 9.75Z","fill","black"],["type","button",1,"download-file",3,"click"],["href","javascript:void(0);"],[1,"invalid-feedback","invalid-feedback-custom"],[1,"actions"],["class","btn-cancel","type","button",3,"click",4,"ngIf"],["class","btn-change","type","button",3,"ngClass","click",4,"ngIf"],["type","button",1,"btn-cancel",3,"click"],["type","button",1,"btn-change",3,"ngClass","click"]],template:function(n,r){1&n&&(a(0,"div",0)(1,"div",1),C(2,jA,3,3,"form",2),l(),C(3,qA,3,2,"div",3),l()),2&n&&(c(2),d("ngIf",r.fields),c(1),d("ngIf",r.selfSubmitButton||r.selfCancelButton))},dependencies:[ui,ei,en,Gr,Ws,Js,mr,ma,fr,Ur,Zo,Ir,Mr]})}return t})(),$A=(()=>{class t{constructor(e){this.http=e}createPartner(e){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/420fd378-3098-4938-bf69-51f79b24c742",params:"",json:e})}buscaCep(e){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/3a049dfd-6f63-460c-97af-2791a6d8b062",params:e,json:null})}static#e=this.\u0275fac=function(n){return new(n||t)(Mt(ko))};static#t=this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function UA(t,i){1&t&&(a(0,"span"),h(1,"Informe o nome de exibi\xe7\xe3o"),l())}function GA(t,i){if(1&t&&(a(0,"div",53),C(1,UA,2,0,"span",10),l()),2&t){const e=_();c(1),d("ngIf",e.f.displayName.errors.required)}}function WA(t,i){1&t&&(a(0,"span"),h(1,"Informe o nome fantasia"),l())}function JA(t,i){if(1&t&&(a(0,"div",53),C(1,WA,2,0,"span",10),l()),2&t){const e=_();c(1),d("ngIf",e.f.tradeName.errors.required)}}function ZA(t,i){1&t&&(a(0,"span"),h(1,"Informe a raz\xe3o social"),l())}function QA(t,i){if(1&t&&(a(0,"div",53),C(1,ZA,2,0,"span",10),l()),2&t){const e=_();c(1),d("ngIf",e.f.companyName.errors.required)}}function YA(t,i){if(1&t){const e=ve();ht(0),a(1,"strong"),h(2,"Nenhum arquivo enviado."),l(),a(3,"span"),h(4,"Permitidos: jpg, jpeg, png, gif, webp - M\xe1ximo: 1MB"),l(),a(5,"button",54),J("click",function(){return M(e),L(_().openFileDialog("logo"))}),h(6,"Anexar"),l(),a(7,"input",55),J("change",function(r){return M(e),L(_().uploadFile(r.target,"logo"))}),l(),mt()}}function KA(t,i){if(1&t){const e=ve();ht(0),a(1,"div",56)(2,"span",57),h(3),l(),a(4,"a",58),J("click",function(){return M(e),L(_().deleteFile("logo"))}),h(5," remover"),l()(),a(6,"button",59),J("click",function(){M(e);const r=_();return L(r.downloadFile(r.getFileFieldValue("logo"),r.idForm.logo.value))}
3),a(7,"a",60),h(8,"Download do arquivo"),l()(),mt()}if(2&t){const e=_();c(3),de(e.idForm.logo.value)}}function XA(t,i){1&t&&(a(0,"span"),h(1,"Campo obrigat\xf3rio"),l())}function eN(t,i){1&t&&(a(0,"span"),h(1,"Extens\xe3o inv\xe1lida"),l())}function tN(t,i){1&t&&(a(0,"span"),h(1,"Tamanho excede 1MB"),l())}function nN(t,i){if(1&t&&(a(0,"div",53),C(1,XA,2,0,"span",10),C(2,eN,2,0,"span",10),C(3,tN,2,0,"span",10),l()),2&t){const e=_();c(1),d("ngIf",null==e.idForm.logo.errors?null:e.idForm.logo.errors.required),c(1),d("ngIf",null==e.idForm.logo.errors?null:e.idForm.logo.errors.extensionInvalid),c(1),d("ngIf",null==e.idForm.logo.errors?null:e.idForm.logo.errors.sizeFileExceed)}}function iN(t,i){1&t&&(a(0,"span"),h(1,"Informe o e-mail"),l())}function rN(t,i){1&t&&(a(0,"span"),h(1,"E-mail inv\xe1lido"),l())}function oN(t,i){if(1&t&&(a(0,"div",53),C(1,iN,2,0,"span",10),C(2,rN,2,0,"span",10),l()),2&t){const e=_();c(1),d("ngIf",e.f.email.errors.required),c(1),d("ngIf",e.f.email.errors.email)}}function sN(t,i){1&t&&(a(0,"span"),h(1,"Informe o CNPJ"),l())}function aN(t,i){1&t&&(a(0,"span"),h(1,"CNPJ inv\xe1lido"),l())}function lN(t,i){if(1&t&&(a(0,"div",53),C(1,sN,2,0,"span",10),C(2,aN,2,0,"span",10),l()),2&t){const e=_();c(1),d("ngIf",e.f.cnpj.errors.required),c(1),d("ngIf",e.f.cnpj.errors.pattern)}}function cN(t,i){1&t&&(a(0,"span"),h(1,"Informe o telefone"),l())}function dN(t,i){1&t&&(a(0,"span"),h(1,"Telefone inv\xe1lido"),l())}function uN(t,i){1&t&&(a(0,"span"),h(1,"M\xednimo 10 d\xedgitos"),l(
3))}function hN(t,i){1&t&&(a(0,"span"),h(1,"M\xe1ximo 15 d\xedgitos"),l())}function mN(t,i){if(1&t&&(a(0,"div",53),C(1,cN,2,0,"span",10),C(2,dN,2,0,"span",10),C(3,uN,2,0,"span",10),C(4,hN,2,0,"span",10),l()),2&t){const e=_();c(1),d("ngIf",e.f.phone.errors.required),c(1),d("ngIf",e.f.phone.errors.pattern),c(1),d("ngIf",e.f.phone.errors.minlength),c(1),d("ngIf",e.f.phone.errors.maxlength)}}function fN(t,i){1&t&&(a(0,"span"),h(1,"Informe o CEP"),l())}function pN(t,i){1&t&&(a(0,"span"),h(1,"CEP inv\xe1lido"),l())}function gN(t,i){if(1&t&&(a(0,"div",53),C(1,fN,2,0,"span",10),C(2,pN,2,0,"span",10),l()),2&t){const e=_();c(1),d("ngIf",e.f.zipCode.errors.required),c(1),d("ngIf",e.f.zipCode.errors.pattern)}}function vN(t,i){1&t&&(a(0,"span"),h(1,"Informe a rua"),l())}function _N(t,i){if(1&t&&(a(0,"div",53),C(1,vN,2,0,"span",10),l()),2&t){const e=_();c(1),d("ngIf",e.f.street.errors.required)}}function CN(t,i){1&t&&(a(0,"span"),h(1,"Informe o n\xfamero"),l())}function yN(t,i){if(1&t&&(a(0,"div",53),C(1,CN,2,0,"span",10),l()),2&t){const e=_();c(1),d("ngIf",e.f.number.errors.required)}}function bN(t,i){1&t&&(a(0,"span"),h(1,"Informe o bairro"),l())}function SN(t,i){if(1&t&&(a(0,"div",53),C(1,bN,2,0,"span",10),l()),2&t){const e=_();c(1),d("ngIf",e.f.neighborhood.errors.required)}}function wN(t,i){1&t&&(a(0,"span"),h(1,"Informe a cidade"),l())}function IN(t,i){if(1&t&&(a(0,"div",53),C(1,wN,2,0,"span",10),l()),2&t){const e=_();c(1),d("ngIf",e.f.city.errors.required)}}function xN(t,i){1&t&&(a(0,"span"),h(1,"Informe o estado"),l())}function DN(t,i){if(1&t&&(a(0,"div",53),C(1,xN,2,0,"span",10),l()),2&t){const e=_();c(1),d("ngIf",e.f.state.errors.required)}}function PN(t,i){1&t&&(a(0,"span"),h(1,"*"),l())}function TN(t,i){1&t&&(a(0,"span"),h(1,"Campo obrigat\xf3rio"),l())}function EN(t,i){1&t&&(a(0,"span"),h(1,"M\xe1ximo 500 caracteres"),l())}function LN(t,i){if(1&t&&(a(0,"div",53),C(1,TN,2,0,"span",10),C(2,EN,2,0,"span",10),l()),2&t){const e=_(2);c(1),d("ngIf",e.f.additionalField1.errors.required),c(1),d("ngIf",e.f.additionalField1.errors.maxlength)}}function kN(t,i){if(1&t&&(a(0,"div",1)(1,"label"),h(2),C(3,PN,2,0,"span",10),l(),B(4,"textarea",61),C(5,LN,3,2,"div",5),l()),2&t){const e=_();d("className",e.dataClassInput+" additionalField1"),c(2),dt(" ",(null==e.additionalField1Config?null:e.additionalField1Config.label)||"Campo Adicional 1"," "),c(1),d("ngIf",null==e.additionalField1Config?null:e.additionalField1Config.required),c(1),d("placeholder",(null==e.additionalField1Config?null:e.additionalField1Config.placeholder)||"Digite informa\xe7\xf5es adicionais..."),c(1),d("ngIf",e.f.additionalField1.errors&&(e.f.additionalField1.dirty||e.f.additionalField1.touched))}}function MN(t,i){1&t&&(a(0,"span"),h(1,"*"),l())}function FN(t,i){1&t&&(a(0,"span"),h(1,"Campo obrigat\xf3rio"),l())}function AN(t,i){1&t&&(a(0,"span"),h(1,"M\xe1ximo 500 caracteres"),l())}function NN(t,i){if(1&t&&(a(0,"div",53),C(1,FN,2,0,"span",10),C(2,AN,2,0,"span",10),l()),2&t){const e=_(2);c(1),d("ngIf",e.f.additionalField2.errors.required),c(1),d("ngIf",e.f.additionalField2.errors.maxlength)}}function ON(t,i){if(1&t&&(a(0,"div",1)(1,"label"),h(2),C(3,MN,2,0,"span",10),l(),B(4,"input",62),C(5,NN,3,2,"div",5),l()),2&t){const e=_();d("className",e.dataClassInput+" additionalField2"),c(2),dt(" ",(null==e.additionalField2Config?null:e.additionalField2Config.label)||"Campo Adicional 2"," "),c(1),d("ngIf",null==e.additionalField2Config?null:e.additionalField2Config.required),c(1),d("placeholder",(null==e.additionalField2Config?null:e.additionalField2Config.placeholder)||"Digite informa\xe7\xf5es adicionais..."),c(1),d("ngIf",e.f.additionalField2.errors&&(e.f.additionalField2.dirty||e.f.additionalField2.touched))}}const RN=function(t){return{"jet-btn-loading":t}};let BN=(()=>{class t{constructor(e,n,r){this.fb=e,this.commomService=n,this.partnerService=r,this.dataClassContainer="",this.dataClassChildren="",this.dataClassInput="",this.dataButtonSend="",this.selfSubmitButton=!1,this.selfCancelButton=!1,this.loading=!1}ngOnInit(){this._additionalField1Config=this.parseAdditionalField(this.dataAdditionalField1,1),this._additionalField2Config=this.parseAdditionalField(this.dataAdditionalField2,2),this.initForm(),setTimeout(()=>{this.updateFieldConfig("additionalField1",this._additionalField1Config),this.updateFieldConfig("additionalField2",this._additionalField2Config),this.form.updateValueAndValidity({onlySelf:!1,emitEvent:!1})}),this.dataClassContainer=this.dataClassContainer?"jet-container "+this.dataClassContainer:"jet-container",this.dataClassChildren=this.dataClassChildren?"jet-class-children "+this.dataClassChildren:"jet-class-children",this.dataClassInput=this.dataClassInput?"container-field "+this.dataClassInput:"container-field",this.dataButtonSend=this.dataButtonSend?"jet-button-send "+this.dataButtonSend:"jet-button-send",this.commomService.finishLoadComponent("onJetPartnerRegisterLoaded")}ngOnChanges(e){e.dataAdditionalField1&&(this._additionalField1Config=this.parseAdditionalField(this.dataAdditionalField1,1),this.updateFieldConfig("additionalField1",this._additionalField1Config)),e.dataAdditionalField2&&(this._additionalField2Config=this.parseAdditionalField(this.dataAdditionalField2,2),this.updateFieldConfig("additionalField2",this._additionalField2Config)),this.form&&this.form.updateValueAndValidity({onlySelf:!1,emitEvent:!1})}parseAdditionalField(e,n){if(!e)return this.prepareConfig({},n);let r;try{const o=e.replace(/[\n\r\t]/g," ").replace(/(^|{|,)\s*(\w+)\s*:/g,'$1"$2":').replace(/'/g,'"').replace(/\btrue\b/gi,"true").replace(/\bfalse\b/gi,"false").trim();r=JSON.parse(o)}catch{r={}}return this.prepareConfig(r,n)}prepareConfig(e,n){const r=1===n?{label:"Campo Adicional 1",placeholder:"Digite informa\xe7\xf5es adicionais...",required:!1,visible:!1}:{label:"Campo Adicional 2",placeholder:"Digite informa\xe7\xf5es adicionais...",required:!1,visible:!1};return(e={...r,...e}).required=this.toBool(e.required,r.required),e.visible=this.toBool(e.visible,r.visible),e}toBool(e,n){if(null==e)return n;if("boolean"==typeof e)return e;if("string"==typeof e){const r=e.trim().toLowerCase();if("true"===r)return!0;
3if("false"===r)return!1}return"number"==typeof e?1===e:n}initForm(){const e=[oe.maxLength(500)];this._additionalField1Config.required&&e.unshift(oe.required);const n=[oe.maxLength(500)];this._additionalField2Config.required&&n.unshift(oe.required),this.form=this.externalForm||this.fb.group({displayName:["",oe.required],tradeName:["",oe.required],companyName:["",oe.required],logo:[""],logoFile:[""],email:["",[oe.required,oe.email]],cnpj:["",oe.required],stateRegistration:[""],phone:["",oe.required],zipCode:["",oe.required],street:["",oe.required],number:["",oe.required],neighborhood:["",oe.required],complement:[""],city:["",oe.required],state:["",oe.required],additionalField1:[""],additionalField2:[""]})}updateFieldConfig(e,n){if(this.form&&this.form.controls[e]){const r=this.form.controls[e];if(n&&!1===n.visible)return r.setValidators([]),r.setErrors(null),r.setValue(""),r.markAsPristine(),r.markAsUntouched(),void r.updateValueAndValidity({onlySelf:!0,emitEvent:!1});const o=[oe.maxLength(500)];n&&n.required&&o.unshift(oe.required),r.setValidators(o),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}}ngOnDestroy(){this.commomService.finishLoadComponent("onJetPartnerRegisterDestroyed")}get f(){return this.form.controls}get idForm(){return this.form.controls}getFileFieldValue(e){return this.form.controls["file_"+e]?.value??this.form.controls[e+"File"]?.value??null}setFileFieldValue(e,n){this.form.controls["file_"+e]&&(this.form.controls["file_"+e].setValue(n),this.form.controls["file_"+e].markAsTouched()),this.form.controls[e+"File"]&&(this.form.controls[e+"File"].setValue(n),this.form.controls[e+"File"].markAsTouched())}uploadFile(e,n){this.commomService.showLoading();const r=e.files.item(0);if(!r)return void this.commomService.hideLoading();const o=r.name.split(".").pop().toLowerCase();if(!["jpg","jpeg","png","gif","webp"].includes(o))return void this.handleFileError(n,e,{extensionInvalid:!0});if(r.size/1048576>1)return void this.handleFileError(n,e,{sizeFileExceed:!0});const v=this.generateFileName(r.name,o);this.form.controls[n]&&(this.form.controls[n].setValue(v),this.form.controls[n].setErrors(null),this.form.controls[n].markAsTouched());const w=new FileReader;w.onload=()=>{this.setFileFieldValue(n,w.result),this.commomService.hideLoading()},w.readAsDataURL(r),e.value=""}handleFileError(e,n,r){this.commomService.hideLoading(),n.value="",this.form.controls[e]&&(this.form.controls[e].setValue(""),this.form.controls[e].setErrors(r),this.form.controls[e].markAsTouched()),this.setFileFieldValue(e,"")}deleteFile(e){this.form.controls[e]&&(this.form.controls[e].setValue(""),this.form.controls[e].markAsTouched()),this.setFileFieldValue(e,"")}downloadFile(e,n){var r=this;return(0,Zs.Z)(function*(){if(e){r.commomService.showLoading();try{if(e&&e.indexOf("api/downloadFile?")>-1){const s=yield(yield fetch(e)).json();if(s){if(1==s||0==s)return r.commomService.displayMessageUser("error","Aten\xe7\xe3o!","N\xe3o foi poss\xedvel realizar o download do arquivo."),void setTimeout(()=>{document.location.reload()},5e3);const u=atob(s.base64File),v=new Array(u.length).fill(0).map((R,V)=>u.charCodeAt(V)),w=new Uint8Array(v),P=new Blob([w]),F=document.createElement("a");F.href=URL.createObjectURL(P),F.download=n,F.click(),URL.revokeObjectURL(F.href)}}else if(e&&e.indexOf("base64,")>-1){const o=e.split(","),s=o[0].match(/:(.*?);/)[1],u=atob(o[1]);let v=u.length;const w=new Uint8Array(v);for(;v--;)w[v]=u.charCodeAt(v);const P=new Blob([w],{type:s}),F=document.createElement("a");F.href=URL.createObjectURL(P),F.download=n,F.click(),URL.revokeObjectURL(F.href)}else{const s=yield(yield fetch(e)).blob(),u=document.createElement("a");u.href=URL.createObjectURL(s),u.download=n,u.click(),URL.revokeObjectURL(u.href)}}catch{r.commomService.displayMessageUser("error","Erro","Erro ao baixar arquivo.")}r.commomService.hideLoading()}else r.commomService.displayMessageUser("error","Erro","Arquivo n\xe3o dispon\xedvel para download.")})()}openFileDialog(e){document.getElementById(e).click()}generateFileName(e,n){return`${e.replace(/\.[^/.]+$/,"").replace(/[^a-zA-Z0-9]/g,"").substring(0,10)}${this.randomLetters(5)}${this.formatDate(new Date)}.${n}`}randomLetters(e){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";return Array.from({length:e},()=>n[Math.floor(Math.random()*n.length)]).join("")}formatDate(e){const n="string"==typeof e?new Date(e):e;return n.toLocaleDateString().replace(/\//g,"")+n.toLocaleTimeString().replace(/:/g,"")}
3phoneNumberMask(e){this.f.phone.setValue(this.commomService.phoneNumberMask(e))}maskCnpj(){var e=this.commomService.formatCnpj(this.idForm.cnpj.value);this.idForm.cnpj.setValue(e)}maskCEP(e){this.idForm[e].setValue(this.commomService.cepMask(this.idForm[e].value))}buscaCep(){if(!this.idForm.zipCode.value||this.idForm.zipCode.value.length<9)return;const e=this.commomService.cepUnMask?this.commomService.cepUnMask(this.idForm.zipCode.value):this.idForm.zipCode.value.replace(/\D/g,"");this.partnerService.buscaCep(e).subscribe(n=>{null!=n?(this.idForm.street.setValue(n.streetAddress||""),this.idForm.neighborhood.setValue(n.neighbourhood||""),this.idForm.city.setValue(n.city||""),this.idForm.state.setValue(n.state||""),setTimeout(()=>{const r=document.querySelector('[formcontrolname="number"]');r&&r.focus()},100)):(this.idForm.street.setValue(""),this.idForm.neighborhood.setValue(""),this.idForm.city.setValue(""),this.idForm.state.setValue(""))},n=>{this.idForm.street.setValue(""),this.idForm.neighborhood.setValue(""),this.idForm.city.setValue(""),this.idForm.state.setValue("")})}submitForm(){if(this.form.controls.email.setValue((this.form.controls.email.value||"").trim()),!this.form.valid)return Object.keys(this.form.controls).forEach(n=>{this.form.controls[n].markAsDirty()}),void this.commomService.displayMessageUser("error","Erro","Preencha todos os campos obrigat\xf3rios corretamente.");this.loading=!0,this.partnerService.createPartner(this.form.value).subscribe({next:n=>{this.loading=!1,"number"==typeof n&&n>0?(this.commomService.displayMessageUser("success","Sucesso","Parceiro cadastrado com sucesso!"),this.commomService.finishLoadComponent("onPartnerRegisterSubmit",{detail:n}),this.form.reset()):this.commomService.displayMessageUser("error","Erro",n?.message??"Erro ao cadastrar parceiro.")},error:n=>{this.loading=!1;let r="Erro ao cadastrar parceiro.";n?.error&&"object"==typeof n.error&&"error"in n.error?r=n.error.error:"string"==typeof n?.error&&n.error.length>0?r=n.error:n?.error?.message?r=n.error.message:n?.message&&(r=n.message),this.commomService.displayMessageUser("error","Erro",r)}})}get additionalField1Config(){return this._additionalField1Config}get additionalField2Config(){return this._additionalField2Config}static#e=this.\u0275fac=function(n){return new(n||t)($(ao),$(qt),$($A))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-partner-register"]],inputs:{dataClassContainer:["data-class-container","dataClassContainer"],dataClassChildren:["data-class-children","dataClassChildren"],dataClassInput:["data-class-input","dataClassInput"],dataButtonSend:["data-button-send","dataButtonSend"],dataAdditionalField1:["data-additional-field1","dataAdditionalField1"],dataAdditionalField2:["data-additional-field2","dataAdditionalField2"],externalForm:"externalForm",selfSubmitButton:"selfSubmitButton",selfCancelButton:"selfCancelButton"},features:[br],decls:141,vars:39,consts:[[1,"jet-partner-register"],[3,"className"],[3,"formGroup","ngSubmit"],[1,"container-form"],["placeholder","Nome de exibi\xe7\xe3o","formControlName","displayName"],["class","invalid-feedback",4,"ngIf"],["placeholder","Nome fantasia","formControlName","tradeName"],["placeholder","Raz\xe3o social","formControlName","companyName"],["for","logo"],[1,"content"],[4,"ngIf"],["placeholder","[email protected]","formControlName","email"],["placeholder","00.000.000/0000-00","maxlength","18","formControlName","cnpj",3,"input"],["placeholder","Inscri\xe7\xe3o estadual","formControlName","stateRegistration"],["placeholder","(00) 00000-0000","maxlength","15","formControlName","phone",3,"input","blur","paste"],["placeholder","CEP","formControlName","zipCode",3,"keyup","blur","paste"],["placeholder","Rua","formControlName","street"],["placeholder","N\xfamero","formControlName","number"],["placeholder","Bairro","formControlName","neighborhood"],["placeholder","Complemento","formControlName","complement"],["placeholder","Cidade","formControlName","city"],["formControlName","state"],["value","","disabled",""],["value","AC"],["value","AL"],["value","AP"],["value","AM"],["value","BA"],["value","CE"],["value","DF"],["value","ES"],["value","GO"],["value","MA"],["value","MT"],["value","MS"],["value","MG"],["value","PA"],["value","PB"],["value","PR"],["value","PE"],["value","PI"],["value","RJ"],["value","RN"],["value","RS"],["value","RO"],["value","RR"],["value","SC"],["value","SP"],["value","SE"],["value","TO"],[3,"className",4,"ngIf"],[1,"form-buttons"],["type","submit",3,"className","ngClass"],[1,"invalid-feedback"],["type","button",1,"file-send",3,"click"],["id","logo","type","file","accept",".jpg,.jpeg,.png,.gif,.webp",1,"hidden-input",3,"change"],[1,"file-info"],[1,"file-name"],["href","javascript:void(0);",3,"click"],["type","button",1,"download-file",3,"click"],["href","javascript:void(0);"],["formControlName","additionalField1","rows","3","maxlength","500",3,"placeholder"],["type","text","formControlName","additionalField2","maxlength","500",3,"placeholder"]],template:function(n,r){1&n&&(a(0,"div",0)(1,"div",1)(2,"div",1)(3,"form",2),J("ngSubmit",function(){return r.submitForm(
3)}),a(4,"div",3)(5,"div",1)(6,"label"),h(7,"Nome de exibi\xe7\xe3o*"),l(),B(8,"input",4),C(9,GA,2,1,"div",5),l(),a(10,"div",1)(11,"label"),h(12,"Nome fantasia*"),l(),B(13,"input",6),C(14,JA,2,1,"div",5),l(),a(15,"div",1)(16,"label"),h(17,"Raz\xe3o social*"),l(),B(18,"input",7),C(19,QA,2,1,"div",5),l(),a(20,"div",1)(21,"label",8),h(22,"Logomarca"),l(),a(23,"div",9),C(24,YA,8,0,"ng-container",10),C(25,KA,9,1,"ng-container",10),C(26,nN,4,3,"div",5),l()(),a(27,"div",1)(28,"label"),h(29,"E-mail*"),l(),B(30,"input",11),C(31,oN,3,2,"div",5),l(),a(32,"div",1)(33,"label"),h(34,"CNPJ*"),l(),a(35,"input",12),J("input",function(){return r.maskCnpj()}),l(),C(36,lN,3,2,"div",5),l(),a(37,"div",1)(38,"label"),h(39,"Inscri\xe7\xe3o estadual"),l(),B(40,"input",13),l(),a(41,"div",1)(42,"label"),h(43,"Telefone*"),l(),a(44,"input",14),J("input",function(s){return r.phoneNumberMask(s.target.value)})("blur",function(s){return r.phoneNumberMask(s.target.value)})("paste",function(s){return s.preventDefault()}),l(),C(45,mN,5,4,"div",5),l(),a(46,"div",1)(47,"label"),h(48,"CEP*"),l(),a(49,"input",15),J("keyup",function(){return r.maskCEP("zipCode")})("blur",function(){return r.buscaCep()})("paste",function(s){return s.preventDefault()}),l(),C(50,gN,3,2,"div",5),l(),a(51,"div",1)(52,"label"),h(53,"Rua*"),l(),B(54,"input",16),C(55,_N,2,1,"div",5),l(),a(56,"div",1)(57,"label"),h(58,"N\xfamero*"),l(),B(59,"input",17),C(60,yN,2,1,"div",5),l(),a(61,"div",1)(62,"label"),h(63,"Bairro*"),l(),B(64,"input",18),C(65,SN,2,1,"div",5),l(),a(66,"div",1)(67,"label"),h(68,"Complemento"),l(),B(69,"input",19),l(),a(70,"div",1)(71,"label"),h(72,"Cidade*"),l(),B(73,"input",20),C(74,IN,2,1,"div",5),l(),a(75,"div",1)(76,"label"),h(77,"Estado*"),l(),a(78,"select",21)(79,"option",22),h(80,"Selecione"),l(),a(81,"option",23),h(82,"Acre"),l(),a(83,"option",24),h(84,"Alagoas"),l(),a(85,"option",25),h(86,"Amap\xe1"),l(),a(87,"option",26),h(88,"Amazonas"),l(),a(89,"option",27),h(90,"Bahia"),l(),a(91,"option",28),h(92,"Cear\xe1"),l(),a(93,"option",29),h(94,"Distrito Federal"),l(),a(95,"option",30),h(96,"Esp\xedrito Santo"),l(),a(97,"option",31),h(98,"Goi\xe1s"),l(),a(99,"option",32),h(100,"Maranh\xe3o"),l(),a(101,"option",33),h(102,"Mato Grosso"),l(),a(103,"option",34),h(104,"Mato Grosso do Sul"),l(),a(105,"option",35),h(106,"Minas Gerais"),l(),a(107,"option",36),h(108,"Par\xe1"),l(),a(109,"option",37),h(110,"Para\xedba"),l(),a(111,"option",38),h(112,"Paran\xe1"),l(),a(113,"option",39),h(114,"Pernambuco"),l(),a(115,"option",40),h(116,"Piau\xed"),l(),a(117,"option",41),h(118,"Rio de Janeiro"),l(),a(119,"option",42),h(120,"Rio Grande do Norte"),l(),a(121,"option",43),h(122,"Rio Grande do Sul"),l(),a(123,"option",44),h(124,"Rond\xf4nia"),l(),a(125,"option",45),h(126,"Roraima"),l(),a(127,"option",46),h(128,"Santa Catarina"),l(),a(129,"option",47),h(130,"S\xe3o Paulo"),l(),a(131,"option",48),h(132,"Sergipe"),l(),a(133,"option",49),h(134,"Tocantins"),l()(),C(135,DN,2,1,"div",5),l(),C(136,kN,6,5,"div",50),C(137,ON,6,5,"div",50),a(138,"div",51)(139,"button",52),h(140,"Cadastrar"),l()()()()()()()),2&n&&(c(1),d("className",r.dataClassContainer),c(1),d("className",r.dataClassChildren),c(1),d("formGroup",r.form),c(2),d("className",r.dataClassInput+" displayName"),c(4),d("ngIf",r.f.displayName.errors&&(r.f.displayName.dirty||r.f.displayName.touched)),c(1),d("className",r.dataClassInput+" tradeName"),c(4),d("ngIf",r.f.tradeName.errors&&(r.f.tradeName.dirty||r.f.tradeName.touched)),c(1),d("className",r.dataClassInput+" companyName"),c(4),d("ngIf",r.f.companyName.errors&&(r.f.companyName.dirty||r.f.companyName.touched)),c(1),d("className",r.dataClassInput+" logo custom-input-file"),c(4),d("ngIf",!r.idForm.logo.value),c(1),d("ngIf",r.idForm.logo.value),c(1),d("ngIf",r.idForm.logo.touched&&r.idForm.logo.invalid),c(1),d("className",r.dataClassInput+" email"),c(4),d("ngIf",r.f.email.errors&&(r.f.email.dirty||r.f.email.touched)),c(1),d("className",r.dataClassInput+" cnpj"),c(4),d("ngIf",r.f.cnpj.errors&&(r.f.cnpj.dirty||r.f.cnpj.touched)),c(1),d("className",r.dataClassInput+" stateRegistration"),c(4),d("className",r.dataClassInput+" phone"),c(4),d("ngIf",r.f.phone.errors&&(r.f.ph
3one.dirty||r.f.phone.touched)),c(1),d("className",r.dataClassInput+" zipCode"),c(4),d("ngIf",r.f.zipCode.errors&&(r.f.zipCode.dirty||r.f.zipCode.touched)),c(1),d("className",r.dataClassInput+" street"),c(4),d("ngIf",r.f.street.errors&&(r.f.street.dirty||r.f.street.touched)),c(1),d("className",r.dataClassInput+" number"),c(4),d("ngIf",r.f.number.errors&&(r.f.number.dirty||r.f.number.touched)),c(1),d("className",r.dataClassInput+" neighborhood"),c(4),d("ngIf",r.f.neighborhood.errors&&(r.f.neighborhood.dirty||r.f.neighborhood.touched)),c(1),d("className",r.dataClassInput+" complement"),c(4),d("className",r.dataClassInput+" city"),c(4),d("ngIf",r.f.city.errors&&(r.f.city.dirty||r.f.city.touched)),c(1),d("className",r.dataClassInput+" state"),c(60),d("ngIf",r.f.state.errors&&(r.f.state.dirty||r.f.state.touched)),c(1),d("ngIf",!1!==(null==r.additionalField1Config?null:r.additionalField1Config.visible)),c(1),d("ngIf",!1!==(null==r.additionalField2Config?null:r.additionalField2Config.visible)),c(2),d("className",r.dataButtonSend)("ngClass",Oe(37,RN,r.loading)))},dependencies:[ui,en,Gr,Ws,Js,mr,ma,fr,Ur,Zo,Ir,Mr],encapsulation:2})}return t})(),jN=(()=>{class t{constructor(e){this.injector=e;{const n=dn(lD,{injector:this.injector});customElements.define("jet-user-login",n);const r=dn(cD,{injector:this.injector});customElements.define("jet-assisted-sale",r);const o=dn(uD,{injector:this.injector});customElements.define("jet-b2b",o);const s=dn(pD,{injector:this.injector});customElements.define("jet-social-network",s);const u=dn(ED,{injector:this.injector});customElements.define("jet-search",u);const v=dn(kD,{injector:this.injector});customElements.define("jet-wishlist-count",v);const w=dn(MD,{injector:this.injector});customElements.define("jet-cart-count",w);const P=dn(hE,{injector:this.injector});customElements.define("jet-cart-preview",P);const F=dn(xE,{injector:this.injector});customElements.define("jet-menu",F);const R=dn(zE,{injector:this.injector});customElements.define("jet-newsletter",R);const V=dn(Xk,{injector:this.injector});customElements.define("jet-custom-pages",V);const ne=dn(IF,{injector:this.injector});customElements.define("jet-event-list-footer",ne);const De=dn(QE,{injector:this.injector});customElements.define("jet-stamps",De);const ke=dn(cL,{injector:this.injector});customElements.define("jet-data-store",ke);const je=dn(yL,{injector:this.injector});customElements.define("jet-banner",je);const at=dn(IL,{injector:this.injector});customElements.define("jet-brands",at);const Ie=dn(SF,{injector:this.injector});customElements.define("jet-instagram-media",Ie);const xt=dn(xL,{injector:this.injector});customElements.define("jet-title-page",xt);const Sn=dn(ML,{injector:this.injector});customElements.define("jet-breadcrumbs",Sn);const Jt=dn(Gk,{injector:this.injector});customElements.define("jet-showcase",Jt);const ti=dn(pM,{injector:this.injector});customElements.define("jet-products",ti);const ri=dn(oD,{injector:this.injector});customElements.define("jet-e-bit",ri);const oi=dn(HM,{injector:this.injector});customElements.define("jet-custom-pages-detail",oi);const li=dn(BM,{injector:this.injector});customElements.define("jet-contact-us",li);const fi=dn(iD,{injector:this.injector});customElements.define("jet-text-policy-privacy",fi);const Ji=dn(WM,{injector:this.injector});customElements.define("jet-logo",Ji);const Zi=dn(fA,{injector:this.injector});customElements.define("jet-image-table-price",Zi);const Ii=dn(QM,{injector:this.injector});customElements.define("jet-faq-list",Ii);const xi=dn(UM,{injector:this.injector});customElements.define("jet-faq",xi);const Di=dn(mF,{injector:this.injector});customElements.define("jet-payment-options",Di);const si=dn(fF,{injector:this.injector});customElements.define("jet-health-check",si);const Pi=dn(VF,{injector:this.injector});customElements.define("jet-event-list-search",Pi);const hi=dn(YF,{injector:this.injector});customElements.define("jet-event-list-info",hi);const ws=dn(uA,{injector:this.injector});customElements.define("jet-multicd",ws);const Is=dn(uv,{injector:this.injector});customElements.define("jet-customer-custom-fields-external",Is);const xs=dn(BN,{injector:this.injector});customElements.define("jet-partner-register",xs)}}static#e=this.\u0275fac=function(n){return new(n||t)(Mt(gs))};static#t=this.\u0275mod=uo({type:t});static#n=this.\u0275inj=Mo({imports:[om,ny,iy,DE]})}return t})();const Gh=function(t){return{active:t}};function VN(t,i){if(1&t){const e=ve();a(0,"span",8),J("click",function(){return M(e),L(_().changeTab(3))}
3),h(1,"Informa\xe7\xf5es adicionais"),l()}if(2&t){const e=_();d("ngClass",Oe(1,Gh,3==e.currentPage))}}function HN(t,i){if(1&t&&(a(0,"option",36),h(1),l()),2&t){const e=i.$implicit;Ue("value",e.id),c(1),de(e.name)}}function zN(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function qN(t,i){if(1&t&&(a(0,"div",37),C(1,zN,2,0,"span",38),l()),2&t){const e=_(4);c(1),d("ngIf",e.customerControll.countryId.errors.required)}}function $N(t,i){if(1&t){const e=ve();a(0,"div",31)(1,"label",32),h(2,"Pa\xeds*"),l(),a(3,"select",33),J("change",function(){M(e);const r=_(3);return L(r.changeCountry(r.customerControll.countryId.value))}),a(4,"option",34),h(5,"Selecione um pa\xeds"),l(),C(6,HN,2,2,"option",35),l(),C(7,qN,2,1,"div",21),l()}if(2&t){const e=_(3);c(6),d("ngForOf",e.countries),c(1),d("ngIf",e.customerControll.countryId.errors&&(e.customerControll.countryId.dirty||e.customerControll.countryId.touched))}}function UN(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function GN(t,i){1&t&&(a(0,"span"),h(1,"Informe ao menos 3 caracteres"),l())}function WN(t,i){1&t&&(a(0,"span"),h(1,"Informe nome v\xe1lido"),l())}function JN(t,i){if(1&t&&(a(0,"div",37),C(1,UN,2,0,"span",38),C(2,GN,2,0,"span",38),C(3,WN,2,0,"span",38),l()),2&t){const e=_(4);c(1),d("ngIf",e.customerControll.name.errors.required),c(1),d("ngIf",e.customerControll.name.errors.minlength),c(1),d("ngIf",e.customerControll.name.errors.pattern)}}const Wl=function(t){return{success:t}};function ZN(t,i){if(1&t&&(a(0,"div",39)(1,"label",18),h(2,"Nome Completo*"),l(),B(3,"input",40,41),C(5,JN,4,3,"div",21),l()),2&t){const e=_(3);d("ngClass",Oe(2,Wl,e.customerControll.name.valid)),c(5),d("ngIf",e.customerControll.name.errors&&(e.customerControll.name.dirty||e.customerControll.name.touched))}}function QN(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function YN(t,i){1&t&&(a(0,"span"),h(1,"Informe um email v\xe1lido"),l())}function KN(t,i){if(1&t&&(a(0,"div",37),C(1,QN,2,0,"span",38),C(2,YN,2,0,"span",38),l()),2&t){const e=_(3);c(1),d("ngIf",e.customerControll.email.errors.required),c(1),d("ngIf",null==e.customerControll.email.errors?null:e.customerControll.email.errors.pattern)}}function XN(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function eO(t,i){1&t&&(a(0,"span"),h(1,"Informe um "),a(2,"span",46),h(3," CPF "),l(),h(4," V\xe1lido"),l())}function tO(t,i){if(1&t&&(a(0,"div",37),C(1,XN,2,0,"span",38),C(2,eO,5,0,"span",38),l()),2&t){const e=_(4);c(1),d("ngIf",e.customerControll.cpfCnpj.errors.required),c(1),d("ngIf",e.customerControll.cpfCnpj.errors.invalid||e.customerControll.cpfCnpj.errors.minlength&&!e.isInternational)}}function nO(t,i){1&t&&(a(0,"span"),h(1,"Informe um "),a(2,"span",46),h(3," CPF "),l(),h(4," V\xe1lido"),l())}function iO(t,i){if(1&t&&(a(0,"div",37),C(1,nO,5,0,"span",38),l()),2&t){const e=_(4);c(1),d("ngIf",!e.commomService.validCPF(e.customerControll.cpfCnpj.value))}}function rO(t,i){if(1&t){const e=ve();a(0,"div",42)(1,"label",43),h(2),l(),a(3,"input",44,45),J("keyup",function(){M(e);const r=_(3);return L(r.isInternational?null:r.maskCpfCnpj("cpf"))}),l(),C(5,tO,3,2,"div",21),C(6,iO,2,1,"div",21),l()}if(2&t){const e=_(3);d("ngClass",Oe(5,Wl,e.customerControll.cpfCnpj.valid)),c(2),dt("",e.isInternationalNavigation?"Document":"CPF","*"),c(1),hr("placeholder","",e.isInternationalNavigation?"Document":"CPF","*"),c(2),d("ngIf",e.customerControll.cpfCnpj.errors&&(e.customerControll.cpfCnpj.dirty||e.customerControll.cpfCnpj.touched)),c(1),d("ngIf",e.customerControll.cpfCnpj.valid&&!e.isInternational)}}function oO(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function sO(t,i){1&t&&(a(0,"span"),h(1,"Data Inv\xe1lida"),l())}function aO(t,i){if(1&t&&(a(0,"div",37),C(1,oO,2,0,"span",38),C(2,sO,2,0,"span",38),l()),2&t){const e=_(4);c(1),d("ngIf",e.customerControll.dateOfBirth.errors.required),c(1),d("ngIf",(null==e.customerControll.dateOfBirth.errors?null:e.customerControll.dateOfBirth.errors.pattern)||e.customerControll.dateOfBirth.errors.incorrect)}}function lO(t,i){if(1&t){const e=ve();a(0,"div",47)(1,"label",43),h(2,"Nascimento"),l(),a(3,"input",48,49),J("keyup",function(r){M(e);const o=_(3);return o.maskBirthDate(r),L(o.checkBirthDate(r.target.value))})("blur",function(r){M(e);const o=_(3);return o.maskBirthDate(r),L(o.checkBirthDate(r.target.value))}),l(),C(5,aO,3,2,"div",21),l()}if(2&t){const e=_(3);d("ngClass",Oe(3,Wl,e.customerControll.dateOfBirth.valid)),c(3),Ue("placeholder",e.isInternational?"YYYY-MM-DD":"DD/MM/AAAA"),c(2),d("ngIf",e.customerControll.dateOfBirth.errors&&(e.customerControll.dateOfBirth.dirty||e.customerControll.dateOfBirth.touched))}}function cO(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function dO(t,i){1&t&&(a(0,"span"),h(1,"Informe ao menos 3 caracteres"),l())}function uO(t,i){1&t&&(a(0,"span"),h(1,"Informe nome v\xe1lido"),l())}function hO(t,i){if(1&t&&(a(0,"div",37),C(1,cO,2,0,"span",38),C(2,dO,2,0,"span",38),C(3,uO,2,0,"span",38),l()),2&t){const e=_(4);c(1),d("ngIf",e.customerControll.contact.errors.required),c(1),d("ngIf",e.customerControll.contact.errors.minlength),c(1),d("ngIf",e.customerControll.contact.errors.pattern)}}function mO(t,i){if(1&t&&(a(0,"div",39)(1,"label",50),h(2,"Respons\xe1vel pela Empresa*"),l(),B(3,"input",51,52),C(5,hO,4,3,"div",21),l()),2&t){const e=_(3);d("ngClass",Oe(2,Wl,e.customerControll.contact.valid)),c(5),d("ngIf",e.customerControll.contact.errors&&(e.customerControll.contact.dirty||e.customerControll.contact.touched))}}function fO(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function pO(t,i){1&t&&(a(0,"span"),h(1,"Informe ao menos 3 caracteres"),l())}function gO(t,i){if(1&t&&(a(0,"div",37),C(1,fO,2,0,"span",38),C(2,pO,2,0,"span",38),l()),2&t){const e=_(4);
3c(1),d("ngIf",e.customerControll.name.errors.required),c(1),d("ngIf",e.customerControll.name.errors.minlength)}}function vO(t,i){if(1&t&&(a(0,"div",53)(1,"label",18),h(2,"Raz\xe3o Social*"),l(),B(3,"input",54,41),C(5,gO,3,2,"div",21),l()),2&t){const e=_(3);d("ngClass",Oe(2,Wl,e.customerControll.name.valid)),c(5),d("ngIf",e.customerControll.name.errors&&(e.customerControll.name.dirty||e.customerControll.name.touched))}}function _O(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function CO(t,i){1&t&&(a(0,"span"),h(1,"Informe ao menos 3 caracteres"),l())}function yO(t,i){if(1&t&&(a(0,"div",37),C(1,_O,2,0,"span",38),C(2,CO,2,0,"span",38),l()),2&t){const e=_(4);c(1),d("ngIf",e.customerControll.fantasyName.errors.required),c(1),d("ngIf",e.customerControll.fantasyName.errors.minlength)}}function bO(t,i){if(1&t&&(a(0,"div",55)(1,"label",18),h(2,"Nome Fantasia*"),l(),B(3,"input",56,57),C(5,yO,3,2,"div",21),l()),2&t){const e=_(3);d("ngClass",Oe(2,Wl,e.customerControll.fantasyName.valid)),c(5),d("ngIf",e.customerControll.fantasyName.errors&&(e.customerControll.fantasyName.dirty||e.customerControll.fantasyName.touched))}}function SO(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function wO(t,i){1&t&&(a(0,"span"),h(1,"Informe um CNPJ V\xe1lido"),l())}function IO(t,i){if(1&t&&(a(0,"div",37),C(1,SO,2,0,"span",38),C(2,wO,2,0,"span",38),l()),2&t){const e=_(4);c(1),d("ngIf",e.customerControll.cpfCnpj.errors.required),c(1),d("ngIf",!e.commomService.validCNPJ(e.customerControll.cpfCnpj.value)&&!e.isInternational)}}function xO(t,i){1&t&&(a(0,"span"),h(1,"Informe um "),a(2,"span",46),h(3," CPF "),l(),h(4," V\xe1lido"),l())}function DO(t,i){1&t&&(a(0,"span"),h(1,"Informe um "),a(2,"span",46),h(3," CNPJ "),l(),h(4," V\xe1lido"),l())}function PO(t,i){if(1&t&&(a(0,"div",37),C(1,xO,5,0,"span",38),C(2,DO,5,0,"span",38),l()),2&t){const e=_(4);c(1),d("ngIf",0==e.customer.typeCustomer&&!e.commomService.validCNPJ(e.customerControll.cpfCnpj.value)),c(1),d("ngIf",0!=e.customer.typeCustomer&&!e.commomService.validCNPJ(e.customerControll.cpfCnpj.value))}}function TO(t,i){if(1&t){const e=ve();a(0,"div",42)(1,"label",43),h(2),l(),a(3,"input",58,45),J("keyup",function(){return M(e),L(_(3).maskCpfCnpj("cnpj"))}),l(),C(5,IO,3,2,"div",21),C(6,PO,3,2,"div",21),l()}if(2&t){const e=_(3);d("ngClass",Oe(5,Wl,e.customerControll.cpfCnpj.valid)),c(2),dt("",e.isInternationalNavigation?"Document":"CNPJ","*"),c(1),hr("placeholder","",e.isInternationalNavigation?"Document":"CNPJ","*"),c(2),d("ngIf",e.customerControll.cpfCnpj.errors&&(e.customerControll.cpfCnpj.dirty||e.customerControll.cpfCnpj.touched)),c(1),d("ngIf",e.customerControll.cpfCnpj.valid&&!e.isInternational)}}function EO(t,i){if(1&t&&(a(0,"div",59)(1,"label",60),h(2,"IE"),l(),B(3,"input",61,62),l()),2&t){const e=_(3);d("ngClass",Oe(1,Wl,e.customerControll.rg_ie.valid))}}function LO(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function kO(t,i){1&t&&(a(0,"span"),h(1,"Informe um Telefone V\xe1lido"),l())}function MO(t,i){if(1&t&&(a(0,"div",37),C(1,LO,2,0,"span",38),C(2,kO,2,0,"span",38),l()),2&t){const e=_(3);c(1),d("ngIf",e.customerControll.phone1.errors.required),c(1),d("ngIf",e.customerControll.phone1.errors.pattern||e.customerControll.phone1.errors.minlength)}}function FO(t,i){1&t&&(a(0,"span"),h(1,"Informe um Telefone V\xe1lido"),l())}function AO(t,i){if(1&t&&(a(0,"div",37),C(1,FO,2,0,"span",38),l()),2&t){const e=_(3);c(1),d("ngIf",e.commomService.phoneNumberUnMask(e.customerControll.phone1.value).length<10)}}function NO(t,i){if(1&t){const e=ve();a(0,"div",14),C(1,$N,8,2,"div",15),C(2,ZN,6,4,"div",16),a(3,"div",17)(4,"label",18),h(5,"Email*"),l(),B(6,"input",19,20),C(8,KN,3,2,"div",21),l(),C(9,rO,7,7,"div",22),C(10,lO,6,5,"div",23),C(11,mO,6,4,"div",16),C(12,vO,6,4,"div",24),C(13,bO,6,4,"div",25),C(14,TO,7,7,"div",22),C(15,EO,5,3,"div",26),a(16,"div",27)(17,"label",28),h(18,"Telefone*"),l(),a(19,"input",29,30),J("keyup",function(){return M(e),L(_(2).maskPhone("phone1"))})("blur",function(){return M(e),L(_(2).maskPhone("phone1"))})("paste",function(r){return r.preventDefault()}),l(),C(21,MO,3,2,"div",21),C(22,AO,2,1,"div",21),l()()}if(2&t){const e=_(2);c(1),d("ngIf",e.isInternationalNavigation||e.isInternational),c(1),d("ngIf",1!=e.customer.typeCustomer),c(1),d("ngClass",Oe(15,Wl,e.customerControll.email.valid)),c(5),d("ngIf",e.customerControll.email.errors&&(e.customerControll.email.dirty||e.customerControll.email.touched)),c(1),d("ngIf",1!=e.customer.typeCustomer),c(1),d("ngIf",1!=e.customer.typeCustomer),c(1),d("ngIf",0!=e.customer.typeCustomer),c(1),d("ngIf",0!=e.customer.typeCustomer),c(1),d("ngIf",0!=e.customer.typeCustomer),c(1),d("ngIf",0!=e.customer.typeCustomer),c(1),d("ngIf",0!=e.customer.typeCustomer&&!e.isInternational),c(1),d("ngClass",Oe(17,Wl,e.customerControll.phone1.valid)),c(3),Ue("placeholder",e.isInternational?"000000":"(00) 00000-0000"),c(2),d("ngIf",e.customerControll.phone1.errors&&(e.customerControll.phone1.dirty||e.customerControll.phone1.touched)),c(1),d("ngIf",e.customerControll.phone1.valid&&!e.isInternational)}}const wy=function(t){return{"jet-btn-loading":t}};function OO(t,i){if(1&t){const e=ve();a(0,"form",9),J("ngSubmit",function(){return M(e),L(_().submitCustomer())})("keypress",function(r){M(e);const o=_();return L(o.commomService.disableSubmit(r,!o.customerForm.valid))}),C(1,NO,23,19,"div",10),a(2,"div",11)(3,"button",12),J("click",function(){return M(e),L(_().btnCancel())}),h(4,"Cancelar"),l(),a(5,"button",13),h(6,"Alterar"),l()()()}if(2&t){const e=_();d("formGroup",e.customerForm),c(1),d("ngIf",1==e.currentPage),c(4),d("ngClass",Oe(4,wy,e.loading))("disabled",!e.customerForm.valid)}}function RO(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function BO(t,i){if(1&t&&(a(0,"div",37),C(1,RO,2,0,"span",38),l()),2&t){const e=_(2);c(1),d("ngIf",e.addressControll.cep.errors.required)}}function jO(t,i){1&t&&(a(0,"div",37)(1,"span"),h(2,"CEP Inv\xe1lido"),l()())}function VO(t,i){1&t&&(a(0,"div",94),h(1," N\xe3o sabe o seu CEP? "),a(2,"a",95),h(3,"Consulte Aqui"),l(),h(4,". "),l())}function HO(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function zO(t,i){1&t&&(a(0,"span"),h(1,"Endere\xe7o inv\xe1lido"),l())}function qO(t,i){if(1&t&&(a(0,"div",37),C(1,HO,2,0,"span",38),C(2,zO,2,0,"span",38),l()),2&t){const e=_(2);c(1),d("ngIf",e.addressControll.streetAddress.errors.required),c(1),d("ngIf",null==e.addressControll.streetAddress.errors?null:e.addressControll.streetAddress.errors.pattern)}}function $O(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function UO(t,i){1&t&&(a(0,"span"),h(1,"N\xfamero inv\xe1lido"),l())}function GO(t,i){if(1&t&&(a(0,"div",37),C(1,$O,2,0,"span",38),C(2,UO,2,0,"span",38),l()),2&t){const e=_(2);c(1),d("ngIf",e.addressControll.addressNumber.errors.required),c(1),d("ngIf",null==e.addressControll.addressNumber.errors?null:e.addressControll.addressNumber.errors.pattern)}}function WO(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function JO(t,i){if(1&t&&(a(0,"div",37),C(1,WO,2,0,"span",38),l()),2&t){const e=_(2);c(1),d("ngIf",e.addressControll.complement.errors.required)}}function ZO(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function QO(t,i){1&t&&(a(0,"span"),h(1,"Bairro inv\xe1lido"),l())}function YO(t,i){if(1&t&&(a(0,"div",37),C(1,ZO,2,0,"span",38),C(2,QO,2,0,"span",38),l()),2&t){const e=_(2);
vendor: 1,035 bytes, line 3
3c(1),d("ngIf",e.addressControll.neighbourhood.errors.required),c(1),d("ngIf",null==e.addressControll.neighbourhood.errors?null:e.addressControll.neighbourhood.errors.pattern)}}function KO(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function XO(t,i){if(1&t&&(a(0,"div",37),C(1,KO,2,0,"span",38),l()),2&t){const e=_(2);c(1),d("ngIf",e.addressControll.city.errors.required)}}function eR(t,i){1&t&&(ht(0),a(1,"option",96),h(2,"Acre"),l(),a(3,"option",96),h(4,"Alagoas"),l(),a(5,"option",96),h(6,"Amap\xe1"),l(),a(7,"option",96),h(8,"Amazonas"),l(),a(9,"option",96),h(10,"Bahia"),l(),a(11,"option",96),h(12,"Cear\xe1"),l(),a(13,"option",96),h(14,"Distrito Federal"),l(),a(15,"option",96),h(16,"Esp\xedrito Santo"),l(),a(17,"option",96),h(18,"Goi\xe1s"),l(),a(19,"option",96),h(20,"Maranh\xe3o"),l(),a(21,"option",96),h(22,"Mato Grosso"),l(),a(23,"option",96),h(24,"Mato Grosso do Sul"),l(),a(25,"option",96),h(26,"Minas Gerais"),l(),a(27,"option",96),h(28,"Par\xe1"),l(),a(29,"option",96),h(30,"Para\xedba"),l(),a(31,"option",96
3),h(32,"Paran\xe1"),l(),a(33,"option",96),h(34,"Pernambuco"),l(),a(35,"option",96),h(36,"Piau\xed"),l(),a(37,"option",96),h(38,"Rio de Janeiro"),l(),a(39,"option",96),h(40,"Rio Grande do Norte"),l(),a(41,"option",96),h(42,"Rio Grande do Sul"),l(),a(43,"option",96),h(44,"Rond\xf4nia"),l(),a(45,"option",96),h(46,"Roraima"),l(),a(47,"option",96),h(48,"Santa Catarina"),l(),a(49,"option",96),h(50,"S\xe3o Paulo"),l(),a(51,"option",96),h(52,"Sergipe"),l(),a(53,"option",96),h(54,"Tocantins"),l(),mt()),2&t&&(c(1),d("ngValue","AC"),c(2),d("ngValue","AL"),c(2),d("ngValue","AP"),c(2),d("ngValue","AM"),c(2),d("ngValue","BA"),c(2),d("ngValue","CE"),c(2),d("ngValue","DF"),c(2),d("ngValue","ES"),c(2),d("ngValue","GO"),c(2),d("ngValue","MA"),c(2),d("ngValue","MT"),c(2),d("ngValue","MS"),c(2),d("ngValue","MG"),c(2),d("ngValue","PA"),c(2),d("ngValue","PB"),c(2),d("ngValue","PR"),c(2),d("ngValue","PE"),c(2),d("ngValue","PI"),c(2),d("ngValue","RJ"),c(2),d("ngValue","RN"),c(2),d("ngValue","RS"),c(2),d("ngValue","RO"),c(2),d("ngValue","RR"),c(2),d("ngValue","SC"),c(2),d("ngValue","SP"),c(2),d("ngValue","SE"),c(2),d("ngValue","TO"))}function tR(t,i){if(1&t&&(a(0,"option",36),h(1),l()),2&t){const e=i.$implicit;Ue("value",e.code),c(1),de(e.name)}}function nR(t,i){1&t&&C(0,tR,2,2,"option",35),2&t&&d("ngForOf",_(2).states)}function iR(t,i){1&t&&(a(0,"span"),h(1,"Informe o Estado"),l())}function rR(t,i){if(1&t&&(a(0,"div",37),C(1,iR,2,0,"span",38),l()),2&t){const e=_(2);c(1),d("ngIf",e.addressControll.state.errors.required)}}function oR(t,i){if(1&t){const e=ve();a(0,"form",9),J("ngSubmit",function(){return M(e),L(_().submitAddress())})("keypress",function(r){M(e);const o=_();return L(o.commomService.disableSubmit(r,!o.addressForm.valid))}),a(1,"div",14)(2,"div",63)(3,"label",64),h(4),l(),a(5,"input",65,66),J("keyup",function(r){M(e);const o=_();return L(o.isInternational?"":o.commomService.cepMaskEvent(r))})("blur",function(){M(e);const r=Wt(6),o=_();return L(o.isInternational?"":o.searchByZipCode(r.value))})("paste",function(r){return r.preventDefault()}),l(),C(7,BO,2,1,"div",21),C(8,jO,3,0,"div",21),l(),C(9,VO,5,0,"div",67),a(10,"div",68)(11,"label",69),h(12,"Endere\xe7o *"),l(),B(13,"input",70,71),C(15,qO,3,2,"div",21),l(),a(16,"div",72)(17,"label",73),h(18,"N\xfamero *"),l(),B(19,"input",74,75),C(21,GO,3,2,"div",21),l(),a(22,"div",76)(23,"label",77),h(24,"Complemento"),l(),B(25,"input",78,79),C(27,JO,2,1,"div",21),l(),a(28,"div",80)(29,"label",81),h(30,"Bairro *"),l(),B(31,"input",82,83),C(33,YO,3,2,"div",21),l(),a(34,"div",84)(35,"label",85),h(36,"Cidade *"),l(),B(37,"input",86,87),C(39,XO,2,1,"div",21),l(),a(40,"div",88)(41,"label",89),h(42),l(),a(43,"select",90,91)(45,"option",34),h(46),l(),C(47,eR,55,27,"ng-container",92),C(48,nR,1,1,"ng-template",null,93,_i),l(),C(50,rR,2,1,"div",21),l()(),a(51,"div",11)(52,"button",12),J("click",function(){return M(e),L(_().btnCancel())}),h(53,"Cancelar"),l(),a(54,"button",13),h(55,"Alterar"),l()()()}if(2&t){const e=Wt(49),n=_();d("formGroup",n.addressForm),c(4),de(n.isInternationalNavigation?"C\xf3digo Postal*":"CEP*"),c(1),Ue("placeholder",n.isInternational?"Postal Code":"00000-000"),ii("maxlength",n.isInternational?15:9),c(2),d("ngIf",n.addressControll.cep.errors&&(n.addressControll.cep.dirty||n.addressControll.cep.touched)),c(1),d("ngIf",!n.verifyCep),c(1),d("ngIf",!n.isInternational),c(6),d("ngIf",n.addressControll.streetAddress.errors&&(n.addressControll.streetAddress.dirty||n.addressControll.streetAddress.touched)),c(6),d("ngIf",n.addressControll.addressNumber.errors&&(n.addressControll.addressNumber.dirty||n.addressControll.addressNumber.touched)),c(6),d("ngIf",n.addressControll.complement.errors&&(n.addressControll.complement.dirty||n.addressControll.complement.touched)),c(6),d("ngIf",n.addressControll.neighbourhood.errors&&(n.addressControll.neighbourhood.dirty||n.addressControll.neighbourhood.touched)),c(6),d("ngIf",n.addressControll.city.errors&&(n.addressControll.city.dirty||n.addressControll.city.touched)),c(3),dt("",n.isInternational?"Estado ou Regi\xe3o":"Estado","*"),c(4),de(n.isInternational?"Selecione o Estado ou Regi\xe3o":"Selecione o Estado"),c(1),d("ngIf",!n.isInternational)("ngIfElse",e),c(3),d("ngIf",n.addressControll.state.errors&&(n.addressControll.state.dirty||n.addressControll.state.touched)),c(4),d("ngClass",Oe(19,wy,n.loading))("disabled",!n.addressForm.valid)}}function sR(t,i){if(1&t&&(a(0,"div",5),B(1,"jet-customer-custom-fields",97),l()),2&t){const e=_();d("ngClass",Oe(5,Gh,3==e.currentPage)),c(1),d("fields",e.lstCustomFields)("customer",e.customer)("selfSubmitButton",!0)("selfCancelButton",!0)}}let aR=(()=>{class t{constructor(e,n,r,o,s,u){this._customerService=e,this.commomService=n,this.fb=r,this.cdr=o,this.customerCustomService=s,this.sharedDataCommomService=u,this.verifyCep=!0,this.isCpf=!1,this.currentPage=1,this.loading=!1,this.lstCustomFields=[],this.hasCustomFields=!1,this.isInternationalNavigation=!1,this.isInternational=!1,this.countryId=1,this.countries=[],this.states=[],this.customerService=e}ngOnInit(){this.commomService.showLoading(),this.sharedDataCommomService.international$.subscribe(e=>{e&&(this.isInternationalNavigation=e.isInternational&&e.country?.id>1,this.customerService.isLogged().subscribe(n=>{n.data.authenticated&&n.data.hasPassword&&(this.customerId=n.data.idCustomer,this.obs$=this.customerService.getCustomer(this.customerId).subscribe(r=>{this.commomService.finishLoadComponent("onJetCustomerLoaded",{detail:{type:"customer",value:{name:decodeURIComponent("Alterar Dados Cadastrais"),href:window.location.href}}}),this.customer=r,this.customer.address=[this.customer.address[0]],this.countryId=this.customer?.address?.[0]?.countryId??1,this.isInternational=this.countryId>1,this.isInternational||this.isInternationalNavigation?(this.getCountries(),this.isInternational&&this.get
3States(this.countryId)):this.buildForms(),this.getCustomFields()}))}))}),document.addEventListener("onJetCustomerCustomFieldsBtnCancel",e=>{this.btnCancel()},{passive:!0,once:!0}),this.functionAdd=e=>{this.fncBtnSubmit(e)},document.removeEventListener("onJetCustomerCustomFieldsBtnSubmit",this.functionAdd),document.addEventListener("onJetCustomerCustomFieldsBtnSubmit",this.functionAdd,{passive:!0})}fncBtnSubmit(e){let n=[];if(e.detail){let r=Object.keys(e.detail);for(let o=0;o<Object.keys(e.detail).length;o++){const s=r[o];if(s&&-1==s.indexOf("file_")){let u=this.lstCustomFields.find(v=>v._id==s);if(u){s.indexOf("file_");let v={_id:u._id,value:e.detail[s],type:u.type};e.detail["file_"+u._id]&&(v.file=e.detail["file_"+u._id]),n.push(v)}}}}n&&n.length>0&&this.customerCustomService.updateCustomFields(n).subscribe(r=>{this.commomService.hideLoading(),r&&this.commomService.displayMessageUser("success","Informa\xe7\xf5es adicionais alteradas com sucesso.","")},r=>{this.commomService.hideLoading(),this.commomService.displayMessageUser("error","Falha ao alterar o cliente.","")})}callApiTry(e){}buildForms(){let e="",n=this.customer.dateBirth?this.customer.dateBirth?.split("T")[0]:null;e=this.isInternational?this.customer.cpf_cnpj:this.commomService.stripCnpj(this.customer.cpf_cnpj).length>11?this.commomService.formatCnpj(this.customer.cpf_cnpj):this.commomService.formatCpf(this.customer.cpf_cnpj);let r=this.customer.address[0];this.customerForm=this.fb.group({email:[this.customer.email,[oe.required,oe.pattern(/^(([^<>()[\]\\.,;:\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,}))$/)]],name:[this.customer.name,[oe.required,oe.minLength(3),oe.pattern(/^[A-z\xc0-\xff'][A-z\xc0-\xff']+\s([A-z\xc0-\xff']\s?)*[A-z\xc0-\xff'][A-z\xc0-\xff'](\s?)+$/)]],cpfCnpj:[e,[oe.required,oe.minLength(14)]],dateOfBirth:[this.isInternational?n.replace(/-/g,"/"):this.commomService.formatDatePtBR(n)],phone1:[this.customer.phone.phone1,[oe.required,oe.minLength(11)]],contact:[this.customer.contact,[oe.required,oe.pattern(/^[A-z\xc0-\xff'][A-z\xc0-\xff']+\s([A-z\xc0-\xff']\s?)*[A-z\xc0-\xff'][A-z\xc0-\xff'](\s?)+$/)]],rg_ie:[this.customer.rg_ie],fantasyName:[this.customer.fantasyName,[oe.required]],country:[r.country??""],countryId:[this.countryId],stateId:[r.stateId??0]}),"1"!=this.customer.typeCustomer&&(this.customerForm.controls.contact.clearValidators(),this.customerForm.controls.fantasyName.clearValidators(),this.customerForm.controls.dateOfBirth.setValidators([oe.required])),this.customerForm.controls.dateOfBirth.updateValueAndValidity(),this.addressForm=this.fb.group({cep:[r.zipCode.trim(),oe.required],streetAddress:[r.streetAddress,[oe.required,oe.pattern(/.*\S.*/)]],addressNumber:[r.number,[oe.required,oe.pattern(/.*\S.*/)]],complement:[r.complement],neighbourhood:[r.neighbourhood,[oe.required,oe.pattern(/.*\S.*/)]],city:[r.city,[oe.required,oe.minLength(1)]],state:[r.state.trim(),[oe.required,oe.minLength(1)]]}),this.applyCountryValidators(!1)}get customerControll(){return this.customerForm.controls}get addressControll(){return this.addressForm.controls}submitCustomer(){if(this.addressForm.invalid)return void this.changeTab(2);this.loading=!0;let e=this.buildCustomerForm();this.customerService.updateCustomerBasicInfo(e).subscribe(n=>{this.loading=!1,this.commomService.displayMessageUser("success",null!=n.message?n.message:"Dados cadastrais alterados com sucesso.")},n=>{this.loading=!1,this.commomService.displayMessageUser("error",null!=n.error.error?n.error.error:"Dados cadastrais alterados com sucesso.")})}
3submitAddress(){if(this.loading=!0,this.customerForm.invalid)return void this.changeTab(1);let e=this.buildAddressForm();e.address=e.address.filter(n=>n.default),this.customerService.updateCustomerBasicInfo(e).subscribe(n=>{this.loading=!1,this.commomService.displayMessageUser("success",null!=n.message?n.message:"Dados cadastrais alterados com sucesso.")},n=>{this.loading=!1,this.commomService.displayMessageUser("error",null!=n.error.error?n.error.error:"Dados cadastrais alterados com sucesso.")})}buildCustomerForm(){let e=this.customer;"0"!=this.customer.typeCustomer&&(e.contact=this.customerControll.contact.value,e.fantasyName=this.customerControll.fantasyName.value,e.rg_ie=this.customerControll.rg_ie.value),e.name=this.customerControll.name.value,e.cpf_cnpj=this.customerControll.cpfCnpj.value,e.email=this.customerControll.email.value,e.idCountry=this.countryId,e.address[0].country=this.isInternational?this.filterCountry(this.countryId)?.name:"Brasil",e.address[0].countryId=this.countryId,this.tratedBirth=this.customerControll.dateOfBirth.value?this.customerControll.dateOfBirth.value.trim():null,e.dateBirth=this.tratedBirth?this.isInternational?this.tratedBirth:this.tratedBirth.split("/")[2]+"-"+this.tratedBirth.split("/")[1]+"-"+this.tratedBirth.split("/")[0]:null,e.phone.phone1=this.customerControll.phone1.value;var n=e.address.findIndex(r=>1==r.addressType);return n>-1&&(e.address[n].phoneContact=this.customerControll.phone1.value),e}buildAddressForm(){let e=this.buildCustomerForm();return e.address[0].zipCode=this.addressControll.cep.value.trim(),e.address[0].streetAddress=this.addressControll.streetAddress.value,e.address[0].number=String(this.addressControll.addressNumber.value),e.address[0].complement=this.addressControll.complement.value,e.address[0].neighbourhood=this.addressControll.neighbourhood.value,e.address[0].city=this.addressControll.city.value,e.address[0].state=this.addressControll.state.value.trim(),e.address[0].country=this.isInternational?this.filterCountry(this.countryId)?.name:"Brasil",e.address[0].countryId=this.isInternational?this.countryId:1,e.address[0].stateId=this.isInternational?this.filterState(this.addressControll.state.value.trim())?.idCountryState:0,e}btnCancel(){window.location.href=document.location.href.substring(0,document.location.href.lastIndexOf("/"))}changeTab(e){this.currentPage=e}searchByZipCode(e){e.length>8&&this.customerService.buscaCep(e).subscribe(r=>{null!=r?(this.addressControll.streetAddress.setValue(r.streetAddress),this.addressControll.city.setValue(r.city),this.addressControll.state.setValue(r.state),this.addressControll.neighbourhood.setValue(r.neighbourhood),this.verifyCep=!0):(this.addressControll.streetAddress.setValue(""),this.addressControll.city.setValue(""),this.addressControll.state.setValue(""),this.addressControll.neighbourhood.setValue(""),this.verifyCep=!1)})}maskCpfCnpj(){if(this.commomService.stripCnpj(this.customerControll.cpfCnpj.value).length>11)var e=this.commomService.formatCnpj(this.customerControll.cpfCnpj.value);else e=this.commomService.formatCpf(this.customerControll.cpfCnpj.value);this.customerControll.cpfCnpj.setValue(e)}maskCEP(e){this.customerControll[e].setValue(this.commomService.cepMask(this.customerControll[e].value))}maskPhone(e){let n=this.customerControll[e].value;if(this.isInternational){if(!n)return;n.replace(/\D/g,"").length<6&&this.customerControll[e].setErrors({pattern:!0})}else this.customerControll[e].setValue(this.commomService.phoneNumberMask(this.customerControll[e].value))}ngOnDestroy(){this.obs$.unsubscribe()}checkBirthDate(e){this.commomService.dateMaxValid(e,this.customerControll.dateOfBirth,this.isInternational)}maskBirthDate(e){this.customerControll.dateOfBirth.setValue(this.commomService.birthDateMask(e,this.isInternational))}ngAfterViewChecked(){this.cdr.detectChanges()}findInvalidControls(){if(null!=this.customerForm){const e=[],n=this.customerForm.controls;for(const r in n)n[r].invalid&&e.push(r)}}getCustomFields(){this.customerCustomService.getCustomFields(this.customer.idCustomer>0).subscribe(e=>{if(e&&e.length>0&&(this.lstCustomFields=e,this.lstCustomFields&&this.lstCustomFields.length>0)){let n=this.lstCustomFields.filter(s=>0==s.profile),r=this.lstCustomFields.filter(s=>1==s.profile),o=this.lstCustomFields.filter(s=>2==s.profile);n&&0==n.length?"0"==this.customer.typeCustomer?this.hasCustomFields=r&&r.length>0:"1"==this.customer.typeCustomer&&(this.hasCustomFields=o&&o.length>0):this.hasCustomFields=n&&n.length>0}setTimeout(()=>{this.commomService.hideLoading()},500)},e=>{this.commomService.hideLoading()})}getCountries(){this.commomService.getCountries().subscribe(e=>{this.countries=e,this.buildForms()})}getStates(e){this.commomService.getCountryStates(e).subscribe(n=>{n&&(this.states=n)})}changeCountry(e){if(e<=1||1==this.countryId&&1!=e)return this.commomService.displayMessageUser("info","Os campos ser\xe3o apagados, pois voc\xea est\xe1 selecionando um pa\xeds com outros requisitos de preenchimento.","Deseja continuar?",!1),document.addEventListener("onJetConfirm",()=>{this.isInternational=e>
31,this.countryId=e,this.applyCountryValidators(),this.getStates(e)},{passive:!0}),void document.addEventListener("onJetCancel",()=>{document.querySelector('select[formControlName="countryId"]').value=this.countryId.toString(),this.customerControll.countryId.setValue(this.countryId)},{passive:!0});this.isInternational=e>1,this.countryId=e,this.getStates(e),this.addressControll.state.reset(),this.addressControll.state.markAsDirty()}applyCountryValidators(e=!0){e&&(Object.keys(this.customerControll).forEach(o=>{"name"!==o&&"email"!==o&&"countryId"!==o&&(this.customerControll[o]?.reset(""),this.customerControll[o]?.markAsDirty())}),Object.keys(this.addressControll).forEach(o=>{this.addressControll[o]?.reset(""),this.addressControll[o]?.markAsDirty()}));const n=this.isInternational?{cpfCnpj:3,phone1:6}:{cpfCnpj:14,phone1:14},r=this.isInternational?{cep:3,city:1,state:1}:{cep:9,city:1,state:1};Object.keys(n).forEach(o=>{this.setFieldValidatorCustomer(o,n[o])}),Object.keys(r).forEach(o=>{this.setFieldValidatorAddress(o,r[o])}),this.isInternational?(this.addressControll.city.enable(),this.addressControll.state.enable(),this.customerControll.countryId.setValidators([oe.required]),this.customerControll.countryId.setValue(this.countryId)):(this.addressControll.city.disable(),this.addressControll.state.disable(),this.customerControll.countryId.clearValidators(),this.customerControll.countryId.setValue(1)),this.customerControll.countryId.updateV
3alueAndValidity()}filterCountry(e){return this.countries.find(n=>n.id==e)}filterState(e){return this.states.find(n=>n.code==e)}setFieldValidatorCustomer(e,n){const r=this.customerForm.get(e);r&&(r.setValidators([oe.required,oe.minLength(n)]),r.updateValueAndValidity({onlySelf:!0}))}setFieldValidatorAddress(e,n){const r=this.addressForm.get(e);r&&(r.setValidators([oe.required,oe.minLength(n)]),r.updateValueAndValidity({onlySelf:!0}))}static#e=this.\u0275fac=function(n){return new(n||t)($(Ci),$(qt),$(ao),$(Gl),$(dv),$(yn))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-customer-info"]],decls:12,vars:16,consts:[[1,"jet-customer-info"],[1,"tab-menu"],["data-tab","first",1,"item",3,"ngClass","click"],["data-tab","second",1,"item",3,"ngClass","click"],["class","item","data-tab","third",3,"ngClass","click",4,"ngIf"],[1,"tab-item",3,"ngClass"],[3,"formGroup","ngSubmit","keypress",4,"ngIf"],["class","tab-item",3,"ngClass",4,"ngIf"],["data-tab","third",1,"item",3,"ngClass","click"],[3,"formGroup","ngSubmit","keypress"],["class","container-form",4,"ngIf"],[1,"actions"],["type","button",1,"btn-cancel",3,"click"],["type","button","type","submit",1,"btn-change",3,"ngClass","disabled"],[1,"container-form"],["class","container-field country",4,"ngIf"],["class","container-field name",3,"ngClass",4,"ngIf"],[1,"container-field","email",3,"ngClass"],["for","name"],["placeholder","Email","formControlName","email","readonly",""],["email",""],["class","invalid-feedback",4,"ngIf"],["class","container-field cpf-cnpj",3,"ngClass",4,"ngIf"],["class","container-field birth-date",3,"ngClass",4,"ngIf"],["class","container-field social-name",3,"ngClass",4,"ngIf"],["class","container-field fantasy-name",3,"ngClass",4,"ngIf"],["class","container-field ie",3,"ngClass",4,"ngIf"],[1,"container-field","phone",3,"ngClass"],["for","phone1"],["formControlName","phone1","autocomplete","off",3,"placeholder","keyup","blur","paste"],["phone1",""],[1,"container-field","country"],["for","country"],["formControlName","countryId","id","countryId",3,"change"],["value",""],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"invalid-feedback"],[4,"ngIf"],[1,"container-field","name",3,"ngClass"],["placeholder","Nome Completo","formControlName","name","maxlength","50"],["name",""],[1,"container-field","cpf-cnpj",3,"ngClass"],["for","cpfCnpj"],["formControlName","cpfCnpj","maxlength","14",3,"placeholder","keyup"],["cpfCnpj",""],[1,"notranslate"],[1,"container-field","birth-date",3,"ngClass"],["formControlName","dateOfBirth","type","tel","maxlength","10",3,"placeholder","keyup","blur"],["birthDate",""],["for","contact"],["placeholder","Respons\xe1vel pela Empresa","formControlName","contact","maxlength","50"],["contact",""],[1,"container-field","social-name",3,"ngClass"],["placeholder","Raz\xe3o Social da Empresa","formControlName","name"],[1,"container-field","fantasy-name",3,"ngClass"],["placeholder","Nome Fantasia da Empresa","formControlName","fantasyName"],["fantasyName",""],["formControlName","cpfCnpj","maxlength","18",3,"placeholder","keyup"],[1,"container-field","ie",3,"ngClass"],["for","rg_ie"],["placeholder","Inscri\xe7\xe3o Estadual","formControlName","rg_ie","maxlength","30"],["rg_ie",""],[1,"container-field","cep"],["for","cep"],["type","text","formControlName","cep","autocomplete","off",3,"placeholder","keyup","blur","paste"],["cep",""],["class","container-field cep-find",4,"ngIf"],[1,"container-field","address"],["for","streetAddress"],["placeholder","Endere\xe7o","type","text","formControlName","streetAddress","autocomplete","off"],["streetAddress",""],[1,"container-field","number"],["for","addressNumber"],["placeholder","N\xfamero","type","number","formControlName","addressNumber","autocomplete","off"],["addressNumber",""],[1,"container-field","complement"],["for","complement"],["placeholder","Complemento","type","text","formControlName","complement","autocomplete","off"],["complement",""],[1,"container-field","neighbourhood"],["for","neighbourhood"],["placeholder","Bairro","type","text","formControlName","neighbourhood","autocomplete","off"],["neighbourhood",""],[1,"container-field","city"],["for","city"],["placeholder","Cidade","type","text","formControlName","city","autocomplete","off"],["city",""],[1,"container-field","state"],["for","estado"],["placeholder","Estado","formControlName","state","autocomplete","off"],["state",""],[4,"ngIf","ngIfElse"],["stateInternational",""],[1,"container-field","cep-find"],["href","http://www.buscacep.correios.com.br/sistemas/buscacep/","target","_blank"],[3,"ngValue"],[3,"fields","customer","selfSubmitButton","selfCancelButton"]],template:function(n,r){1&n&&(a(0,"div",0)(1,"div",1)(2,"span",2),J("click",function(){return r.changeTab(1)}),h(3,"Seus dados"),l(),a(4,"span",3),J("click",function(){return r.changeTab(2)}),h(5,"Endere\xe7o"),l(),C(6,VN,2,3,"span",4),l(),a(7,"div",5),C(8,OO,7,6,"form",6),l(),a(9,"div",5),C(10,oR,56,21,"form",6),l(),C(11,sR,2,7,"div",7),l()),2&n&&(c(2),d("ngClass",Oe(8,Gh,1==r.currentPage)),c(2),d("ngClass",Oe(10,Gh,2==r.currentPage)),c(2),d("ngIf",r.hasCu
3stomFields),c(1),d("ngClass",Oe(12,Gh,1==r.currentPage)),c(1),d("ngIf",r.customer&&r.customerForm),c(1),d("ngClass",Oe(14,Gh,2==r.currentPage)),c(1),d("ngIf",(null==r.customer?null:r.customer.address.length)>0&&r.addressForm),c(1),d("ngIf",r.hasCustomFields))},dependencies:[ui,ei,en,uv,Gr,Ws,Js,mr,Op,ma,fr,Ur,Zo,Ir,Mr],encapsulation:2})}return t})();function lR(t,i){1&t&&(a(0,"button",28),we(),a(1,"svg",29),B(2,"path",30),l(),h(3," Entrega "),l())}function cR(t,i){1&t&&(a(0,"button",28),we(),a(1,"svg",31),B(2,"path",32),l(),h(3," Cobran\xe7a "),l())}const qp=function(t){return{"jet-btn-loading":t}};function dR(t,i){if(1&t){const e=ve();a(0,"button",33),J("click",function(){M(e);const r=_(2).$implicit;return L(_(3).btnSetDefault(r.idAddress))}),we(),a(1,"svg",22),B(2,"path",34),l(),h(3," Entrega "),l()}if(2&t){const e=_(5);d("ngClass",Oe(1,qp,e.loading))}}function uR(t,i){if(1&t){const e=ve();a(0,"button",35),J("click",function(){M(e);const r=_(2).$implicit;return L(_(3).btnSetBilling(r.idAddress))}),we(),a(1,"svg",22),B(2,"path",34),l(),h(3," Cobran\xe7a "),l()}if(2&t){const e=_(5);d("ngClass",Oe(1,qp,e.loading))}}function hR(t,i){if(1&t&&(a(0,"div",24),C(1,lR,4,0,"button",25),C(2,cR,4,0,"button",25),C(3,dR,4,3,"button",26),C(4,uR,4,3,"button",27),l()),2&t){const e=_().$implicit,n=_(3);c(1),d("ngIf",e.default),c(1),d("ngIf",e.billing&&!n.eventReturn),c(1),d("ngIf",!e.default),c(1),d("ngIf",!e.billing&&!n.eventReturn)}}function mR(t,i){1&t&&(a(0,"button",28),we(),a(1,"svg",29),B(2,"path",30),l(),h(3," Entrega "),l())}function fR(t,i){if(1&t){const e=ve();a(0,"button",33),J("click",function(){M(e);const r=_(2).$implicit;return L(_(3).btnSetDefault(r.idAddress))}),we(),a(1,"svg",22),B(2,"path",34),l(),h(3," Entrega "),l()}if(2&t){const e=_(5);d("ngClass",Oe(1,qp,e.loading))}}function pR(t,i){if(1&t&&(a(0,"div",24),C(1,mR,4,0,"button",25),C(2,fR,4,3,"button",26),l()),2&t){const e=_().$implicit,n=_(3);c(1),d("ngIf",e.idAddress===n.eventListAddress.idAddress),c(1),d("ngIf",e.idAddress!==n.eventListAddress.idAddress)}}function gR(t,i){if(1&t){const e=ve();a(0,"button",36),J("click",function(){M(e);const r=_().$implicit;return L(_(3).btnEdit(r.idAddress))}),we(),a(1,"svg",31),B(2,"path",37),l(),h(3," Editar "),l()}}function vR(t,i){if(1&t){const e=ve();a(0,"div",7)(1,"div",9)(2,"div",10),h(3),l(),a(4,"div",11)(5,"span",12),h(6),l(),a(7,"span",13),h(8),l(),a(9,"span",14),h(10),l(),a(11,"span",15),h(12),l(),a(13,"span",16),h(14),l()(),a(15,"div",17),C(16,hR,5,4,"div",18),C(17,pR,3,2,"div",18),a(18,"div",19),C(19,gR,4,0,"button",20),a(20,"button",21),J("click",function(){const o=M(e).$implicit;return L(_(3).btnExclude(o.idAddress))}),we(),a(21,"svg",22),B(22,"path",23),l(),h(23," Excluir "),l()()()()()}if(2&t){const e=i.$implicit,n=_(3);d("className",n.dataClassChildren),c(3),de(e.identification),c(3),de(e.receiver?e.receiver:n.customer.name),c(2),Ra("",e.streetAddress,", ",e.number,", ",e.complement,""),c(2),de(e.neighbourhood),c(2),Eo("",e.city," - ",e.state,""),c(2),de(e.zipCode),c(2),d("ngIf",!n.eventListAddress),c(1),d("ngIf",n.eventListAddress),c(2),d("ngIf",n.canEditAddress(e))}}function _R(t,i){if(1&t&&(a(0,"div",7),C(1,vR,24,13,"div",8),l()),2&t){const e=_(2);d("className",e.dataClassContainer),c(1),d("ngForOf",e.filteredAddresses)}}const $p=function(t){return{active:t}};function CR(t,i){if(1&t&&(a(0,"div",5),C(1,_R,2,2,"div",6),l()),2&t){const e=_();d("ngClass",Oe(2,$p,1==e.currentPage)),c(1),d("ngIf",null!=e.customer&&null!=e.filteredAddresses&&e.filteredAddresses.length>0)}}function yR(t,i){if(1&t&&(a(0,"option",94),h(1),l()),2&t){const e=i.$implicit;d("value",e.id),c(1),de(e.name)}}function bR(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function SR(t,i){if(1&t&&(a(0,"div",95),C(1,bR,2,0,"span",96),l()),2&t){const e=_(4);c(1),d("ngIf",null==e.addressControll.country||null==e.addressControll.country.errors?null:e.addressControll.country.errors.required)}}function wR(t,i){if(1&t){const e=ve();a(0,"div",89)(1,"label",90),h(2,"Pa\xeds *"),l(),a(3,"select",91),J("change",function(r){return M(e),L(_(3).onCountryChange(r.target.value))}),a(4,"option",92),h(5,"Selecione o pa\xeds"),l(),C(6,yR,2,2,"option",93),l(
3),C(7,SR,2,1,"div",46),l()}if(2&t){const e=_(3);c(6),d("ngForOf",e.countries),c(1),d("ngIf",(null==e.addressControll.country?null:e.addressControll.country.errors)&&((null==e.addressControll.country?null:e.addressControll.country.dirty)||(null==e.addressControll.country?null:e.addressControll.country.touched)))}}function IR(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function xR(t,i){if(1&t&&(a(0,"div",95),C(1,IR,2,0,"span",96),l()),2&t){const e=_(3);c(1),d("ngIf",e.addressControll.identification.errors.required)}}function DR(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function PR(t,i){if(1&t&&(a(0,"div",95),C(1,DR,2,0,"span",96),l()),2&t){const e=_(3);c(1),d("ngIf",e.addressControll.addressType.errors.required)}}function TR(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function ER(t,i){if(1&t&&(a(0,"div",95),C(1,TR,2,0,"span",96),l()),2&t){const e=_(3);c(1),d("ngIf",e.addressControll.receiver.errors.required)}}function LR(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function kR(t,i){1&t&&(a(0,"span"),h(1,"Informe um telefone v\xe1lido"),l())}function MR(t,i){1&t&&(a(0,"span"),h(1,"Informe um telefone v\xe1lido"),l())}function FR(t,i){if(1&t&&(a(0,"div",95),C(1,LR,2,0,"span",96),C(2,kR,2,0,"span",96),C(3,MR,2,0,"span",96),l()),2&t){const e=_(3);c(1),d("ngIf",e.addressControll.phone.errors.required),c(1),d("ngIf",e.addressControll.phone.errors.pattern&&e.isSelectedCountryBrazil),c(1),d("ngIf",e.addressControll.phone.errors.minlength)}}function AR(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function NR(t,i){if(1&t&&(a(0,"div",95),C(1,AR,2,0,"span",96),l()),2&t){const e=_(3);c(1),d("ngIf",e.addressControll.cep.errors.required)}}function OR(t,i){1&t&&(a(0,"div",95)(1,"span"),h(2,"CEP Inv\xe1lido"),l()())}function RR(t,i){1&t&&(a(0,"div",97),h(1," N\xe3o sabe o seu CEP? "),a(2,"a",98),h(3,"Consulte Aqui"),l(),h(4,". "),l())}function BR(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function jR(t,i){1&t&&(a(0,"span"),h(1,"Endere\xe7o inv\xe1lido"),l())}function VR(t,i){if(1&t&&(a(0,"div",95),C(1,BR,2,0,"span",96),C(2,jR,2,0,"span",96),l()),2&t){const e=_(3);c(1),d("ngIf",e.addressControll.streetAddress.errors.required),c(1),d("ngIf",null==e.addressControll.streetAddress.errors?null:e.addressControll.streetAddress.errors.pattern)}}function HR(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function zR(t,i){1&t&&(a(0,"span"),h(1,"N\xfamero inv\xe1lido"),l())}function qR(t,i){if(1&t&&(a(0,"div",95),C(1,HR,2,0,"span",96),C(2,zR,2,0,"span",96),l()),2&t){const e=_(3);c(1),d("ngIf",e.addressControll.addressNumber.errors.required),c(1),d("ngIf",null==e.addressControll.addressNumber.errors?null:e.addressControll.addressNumber.errors.pattern)}}function $R(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function UR(t,i){if(1&t&&(a(0,"div",95),C(1,$R,2,0,"span",96),l()),2&t){const e=_(3);c(1),d("ngIf",e.addressControll.complement.errors.required)}}function GR(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function WR(t,i){1&t&&(a(0,"span"),h(1,"Bairro inv\xe1lido"),l())}function JR(t,i){if(1&t&&(a(0,"div",95),C(1,GR,2,0,"span",96),C(2,WR,2,0,"span",96),l()),2&t){const e=_(3);c(1),d("ngIf",e.addressControll.neighbourhood.errors.required),c(1),d("ngIf",null==e.addressControll.neighbourhood.errors?null:e.addressControll.neighbourhood.errors.pattern)}}function ZR(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function QR(t,i){if(1&t&&(a(0,"div",95),C(1,ZR,2,0,"span",96),l()),2&t){const e=_(3);c(1),d("ngIf",e.addressControll.city.errors.required)}}function YR(t,i){1&t&&(a(0,"select",99,100)(2,"option",101),h(3,"Selecione"),l(),a(4,"option",102),h(5,"Acre"),l(),a(6,"option",103),h(7,"Alagoas"),l(),a(8,"option",104),h(9,"Amap\xe1"),l(),a(10,"option",105),h(11,"Amazonas"),l(),a(12,"option",106),h(13,"Bahia"),l(),a(14,"option",107),h(15,"Cear\xe1"),l(),a(16,"option",108),h(17,"Distrito Federal"),l(),a(18,"option",109),h(19,"Esp\xedrito Santo"),l(),a(20,"option",110),h(21,"Goi\xe1s"),l(),a(22,"option",111),h(23,"Maranh\xe3o"),l(),a(24,"option",112),h(25,"Mato Grosso"),l(),a(26,"option",113),h(27,"Mato Grosso do Sul"),l(),a(28,"option",114),h(29,"Minas Gerais"),l(),a(30,"option",115),h(31,"Par\xe1"),l(),a(32,"option",116),h(33,"Para\xedba"),l(),a(34,"option",117),h(35,"Paran\xe1"),l(),a(36,"option",118),h(37,"Pernambuco"),l(),a(38,"option",119),h(39,"Piau\xed"),l(),a(40,"option",120),h(41,"Rio de Janeiro"),l(),a(42,"option",121),h(43,"Rio Grande do Norte"),l(),a(44,"option",122),h(45,"Rio Grande do Sul"),l(),a(46,"option",123),h(47,"Rond\xf4nia"),l(),a(48,"option",124),h(49,"Roraima"),l(),a(50,"option",125),h(51,"Santa Catarina"),l(),a(52,"option",126),h(53,"S\xe3o Paulo"),l(),a(54,"option",127),h(55,"Sergipe"),l(),a(56,"option",128),h(57,"Tocantins"),l(
3)())}function KR(t,i){if(1&t&&(a(0,"option",94),h(1),l()),2&t){const e=i.$implicit;d("value",e.code),c(1),de(e.name)}}function XR(t,i){if(1&t&&(a(0,"select",99)(1,"option",101),h(2,"Selecione"),l(),C(3,KR,2,2,"option",93),l()),2&t){const e=_(3);c(3),d("ngForOf",e.states)}}function eB(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function tB(t,i){if(1&t&&(a(0,"div",95),C(1,eB,2,0,"span",96),l()),2&t){const e=_(3);c(1),d("ngIf",e.addressControll.state.errors.required)}}const Iy=function(t){return{success:t}};function nB(t,i){if(1&t){const e=ve();a(0,"form",39),J("ngSubmit",function(){return M(e),L(_(2).btnSubmitAddress())}),a(1,"div",40),C(2,wR,8,2,"div",41),a(3,"div",42)(4,"label",43),h(5,"Identifica\xe7\xe3o *"),l(),B(6,"input",44,45),C(8,xR,2,1,"div",46),l(),a(9,"div",47)(10,"label",48),h(11,"Tipo do Endere\xe7o *"),l(),a(12,"select",49,50)(14,"option",51),h(15,"Residencial"),l(),a(16,"option",52),h(17,"Comercial"),l()(),C(18,PR,2,1,"div",46),l(),a(19,"div",53)(20,"label",54),h(21,"Destinat\xe1rio *"),l(),B(22,"input",55,56),C(24,ER,2,1,"div",46),l(),a(25,"div",57)(26,"label",58),h(27,"Telefone *"),l(),a(28,"input",59,60),J("keyup",function(){M(e);const r=_(2);return L(r.isSelectedCountryBrazil?r.maskPhone():null)})("blur",function(){M(e);const r=_(2);return L(r.isSelectedCountryBrazil?r.maskPhone():null)})("paste",function(r){return M(e),L(_(2).isSelectedCountryBrazil?r.preventDefault():null)}),l(),C(30,FR,4,3,"div",46),l(),a(31,"div",61)(32,"label",62),h(33),l(),a(34,"input",63,64),J("keyup",function(r){M(e);const o=_(2);return L(o.isSelectedCountryBrazil?o.commomService.cepMaskEvent(r):null)})("blur",function(){M(e);const r=Wt(35),o=_(2);return L(o.isSelectedCountryBrazil?o.searchByZipCode(r.value):null)})("paste",function(r){return M(e),L(_(2).isSelectedCountryBrazil?r.preventDefault():null)}),l(),C(36,NR,2,1,"div",46),C(37,OR,3,0,"div",46),l(),C(38,RR,5,0,"div",65),a(39,"div",66)(40,"label",67),h(41,"Endere\xe7o *"),l(),B(42,"input",68,69),C(44,VR,3,2,"div",46),l(),a(45,"div",70)(46,"label",71),h(47,"N\xfamero *"),l(),B(48,"input",72,73),C(50,qR,3,2,"div",46),l(),a(51,"div",74)(52,"label",71),h(53,"Complemento"),l(),B(54,"input",75,76),C(56,UR,2,1,"div",46),l(),a(57,"div",77)(58,"label",78),h(59,"Bairro *"),l(),B(60,"input",79,80),C(62,JR,3,2,"div",46),l(),a(63,"div",81)(64,"label",82),h(65,"Cidade *"),l(),B(66,"input",83,84),C(68,QR,2,1,"div",46),l(),a(69,"div",85)(70,"label",86),h(71,"Estado *"),l(),C(72,YR,58,0,"select",87),C(73,XR,4,1,"select",87),C(74,tB,2,1,"div",46),l(),a(75,"button",88),h(76,"Salvar Endere\xe7o"),l()()()}if(2&t){const e=_(2);d("formGroup",e.addressForm),c(2),d("ngIf",e.isInternationalNavigation&&!e.isEditingFirstAddress),c(6),d("ngIf",e.addressControll.identification.errors&&(e.addressControll.identification.dirty||e.addressControll.identification.touched)),c(10),d("ngIf",e.addressControll.addressType.errors&&(e.addressControll.addressType.dirty||e.addressControll.addressType.touched)),c(6),d("ngIf",e.addressControll.receiver.errors&&(e.addressControll.receiver.dirty||e.addressControll.receiver.touched)),c(4),d("placeholder",e.isSelectedCountryBrazil?"(00) 00000-0000":"Telefone"),c(2),d("ngIf",e.addressControll.phone.errors&&(e.addressControll.phone.dirty||e.addressControll.phone.touched)),c(3),dt("",e.isSelectedCountryBrazil?"CEP":"C\xf3digo Postal"," *"),c(1),d("placeholder",e.isSelectedCountryBrazil?"00000-000":"C\xf3digo Postal")("maxlength",e.isSelectedCountryBrazil?9:20),c(2),d("ngIf",e.addressControll.cep.errors&&(e.addressControll.cep.dirty||e.addressControll.cep.touched)),c(1),d("ngIf",!e.verifyCep&&e.isSelectedCountryBrazil),c(1),d("ngIf",e.isSelectedCountryBrazil),c(6),d("ngIf",e.addressControll.streetAddress.errors&&(e.addressControll.streetAddress.dirty||e.addressControll.streetAddress.touched)),c(6),d("ngIf",e.addressControll.addressNumber.errors&&(e.addressControll.addressNumber.dirty||e.addressControll.addressNumber.touched)),c(6),d("ngIf",e.addressControll.complement.errors&&(e.addressControll.complement.dirty||e.addressControll.complement.touched)),c(6),d("ngIf",e.addressControll.
3neighbourhood.errors&&(e.addressControll.neighbourhood.dirty||e.addressControll.neighbourhood.touched)),c(1),d("ngClass",Oe(24,Iy,e.addressControll.city.valid)),c(5),d("ngIf",e.addressControll.city.errors&&(e.addressControll.city.dirty||e.addressControll.city.touched)),c(1),d("ngClass",Oe(26,Iy,e.addressControll.state.valid)),c(3),d("ngIf",e.isSelectedCountryBrazil),c(1),d("ngIf",!e.isSelectedCountryBrazil),c(1),d("ngIf",e.addressControll.state.errors&&(e.addressControll.state.dirty||e.addressControll.state.touched)),c(1),d("ngClass",Oe(28,qp,e.loading))}}function iB(t,i){if(1&t&&(a(0,"div",5)(1,"div",7),C(2,nB,77,30,"form",38),l()()),2&t){const e=_();d("ngClass",Oe(3,$p,2==e.currentPage)),c(1),d("className",e.dataClassContainer),c(1),d("ngIf",e.addressForm)}}let rB=(()=>{class t{get isSelectedCountryBrazil(){return 1===this.selectedCountryId}constructor(e,n,r,o){this.commomService=e,this.customerService=n,this.fb=r,this.sharedDataCommomService=o,this.dataClassContainer="",this.dataClassChildren="",this.verifyCep=!0,this.currentPage=1,this.loading=!1,this.eventListAddress=null,this.eventReturn=document.location.hash,this.isInternationalNavigation=!1,this.isInternational=!1,this.countryId=1,this.countries=[],this.states=[],this.selectedCountryId=1,this.isEditingFirstAddress=!1}ngOnInit(){this.dataClassContainer=""!=this.dataClassContainer?"jet-container "+this.dataClassContainer:"jet-container",this.dataClassChildren=""!=this.dataClassChildren?"jet-item "+this.dataClassChildren:"jet-item",this.sharedDataCommomService.international$.subscribe(e=>{e&&(this.isInternationalNavigation=e.isInternational&&e.country?.id>1,this.isInternational=e.country?.id>1,this.countryId=e.country?.id,this.isInternational&&(this.getCountries(),this.getStates(this.countryId)),this.customerService.isLogged().subscribe(n=>{n.data.authenticated&&n.data.hasPassword&&(this.customerId=n.data.idCustomer,this.obs$=this.customerService.getCustomer(this.customerId).subscribe(r=>{const o=this.eventReturn.replace("event-","").split("-")[1];this.eventReturn&&this.customerService.getAddressEventList(o).subscribe(s=>{s&&(this.eventListAddress=s)},s=>{}),this.customer=r,this.commomService.finishLoadComponent("onJetCustomerLoaded",{detail:{type:"customer",value:{name:decodeURIComponent("Gest\xe3o de Endere\xe7os"),href:window.location.href}}})}))}))})}get addressControll(){return this.addressForm.controls}redirectEventList(e){this.eventReturn&&(this.commomService.displayMessageUser("success","Voc\xea est\xe1 retornando para a sua lista"),setTimeout(function(){var n=document.location.hash.replace("#event-","").split("-").join("/");window.location.href=`/customer/eventlist/create/${n}#address-${e}`},2e3))}getSelectedStateId(){const e=this.addressControll.state.value.trim();if(!this.isSelectedCountryBrazil&&this.states.length>0){const n=this.states.find(r=>r.code===e);return n?n.idCountryState:void 0}}getSelectedCountryInfo(){if(this.isInternationalNavigation&&this.addressControll.country){const e=Number(this.addressControll.country.value),n=this.countries.find(r=>r.id===e);return{name:n?n.name:"BRASIL",id:e}}return{name:"BRASIL",id:1}}btnSubmitAddress(){if(this.isSelectedCountryBrazil&&(this.validPhone(this.addressControll.phone.value),this.validCep(this.addressControll.cep.value)),!this.addressForm.valid)return void this.addressForm.markAllAsTouched();this.loading=!0;const e=this.getSelectedCountryInfo(),n=this.getSelectedStateId();if(null!=this.addressControll.id&&this.addressControll.id.valid){let r=this.customer.address.find(s=>s.idAddress==this.addressControll.id.value),o={idCustomer:Number(this.customerId),identification:this.addressControll.identification.value,receiver:this.addressControll.receiver.value,phoneContact:this.addressControll.phone.value,default:this.addressControll.default.value,billing:this.addressControll.billing.value,zipCode:this.addressControll.cep.value,streetAddress:this.addressControll.streetAddress.value,number:this.addressControll.addressNumber.value,complement:this.addressControll.complement.value,neighbourhood:this.addressControll.
3neighbourhood.value,city:this.addressControll.city.value,state:this.addressControll.state.value.trim(),stateId:n,addressType:r.addressType,country:e.name,countryId:e.id,externalId:"",idAddress:this.addressControll.id.value,referencePoint:"",commercialResidentialAddress:Number(this.addressControll.addressType.value),addressBefore:r};this.customerService.changeAddress(o).subscribe(s=>{this.loading=!1,this.commomService.displayMessageUser("success","Endere\xe7o alterado com sucesso!")},s=>{this.loading=!1,this.commomService.displayMessageUser("error",s.error.error)},()=>{window.location.href=document.location.href})}else{let r={idCustomer:Number(this.customerId),identification:this.addressControll.identification.value,receiver:this.addressControll.receiver.value,phoneContact:this.addressControll.phone.value,default:!1,billing:!1,zipCode:this.addressControll.cep.value,streetAddress:this.addressControll.streetAddress.value,number:this.addressControll.addressNumber.value,complement:this.addressControll.complement.value,neighbourhood:this.addressControll.neighbourhood.value,city:this.addressControll.city.value,state:this.addressControll.state.value.trim(),stateId:n,addressType:0,country:e.name,countryId:e.id,externalId:"",idAddress:0,referencePoint:"",commercialResidentialAddress:Number(this.addressControll.addressType.value),addressBefore:null};this.customerService.createCustomerAddress(this.customerId,r).subscribe(o=>{this.loading=!1,this.commomService.displayMessageUser("success","Endere\xe7o cadastrado com sucesso!"),setTimeout(function(){window.location.reload()},2e3)},o=>{this.loading=!1,this.commomService.displayMessageUser("error",o.error.error)},()=>{window.location.href=document.location.href})}}btnEdit(e){let n=this.customer.address.find(r=>r.idAddress==e);!n||this.canEditAddress(n)?this.changeTab(2,e):this.commomService.displayMessageUser("error","Este endere\xe7o internacional n\xe3o pode ser editado. Por favor, cadastre um novo endere\xe7o.")}btnExclude(e){this.customerService.deleteCustomerAddress(this.customerId,e).subscribe(n=>{this.customer.address=this.customer.address.filter(r=>r.idAddress!=e),this.commomService.displayMessageUser("success","Endere\xe7o exclu\xeddo!")},n=>{this.commomService.displayMessageUser("error",n.error.error)},()=>{window.location.href=document.location.href})}btnSetDefault(e){this.loading=!0;let n=this.customer.address.filter(r=>r.idAddress==e)[0];this.eventReturn?(this.customer.address.filter(r=>1==r.default)[0].default=!1,this.customer.address.filter(r=>r.idAddress==e)[0].default=!0,this.redirectEventList(e)):this.customerService.changeAddressFlag(this.customer.idCustomer,n.idAddress,!0,null).subscribe(r=>{this.commomService.displayMessageUser("success","Endere\xe7o de entrega alterado!"),this.customer.address.filter(o=>1==o.default)[0].default=!1,this.customer.address.filter(o=>o.idAddress==e)[0].default=!0,this.loading=!1},r=>{this.commomService.displayMessageUser("error",r.error.error),this.loading=!1})}btnSetBilling(e){this.loading=!0;let n=this.customer.address.filter(r=>r.idAddress==e)[0];this.customerService.changeAddressFlag(this.customer.idCustomer,n.idAddress,null,!0).subscribe(r=>{this.commomService.displayMessageUser("success","Endere\xe7o de cobran\xe7a alterado!"),this.customer.address.filter(o=>1==o.billing)[0].billing=!1,this.customer.address.filter(o=>o.idAddress==e)[0].billing=!0,this.loading=!1},r=>{this.commomService.displayMessageUser("error",r.error.error),this.loading=!1})}changeTab(e,n=null){if(this.currentPage=e,null!=n){let r=this.customer.address.filter(o=>o.idAddress==n)[0];this.isEditingFirstAddress=0===this.customer.address.findIndex(o=>o.idAddress==n),this.addressForm=this.fb.group({id:[r.idAddress],identification:[r.identification??"",oe.required],receiver:[r.receiver,oe.required],phone:[this.maskPhone(r.phoneContact),oe.required],addressType:[r.commercialResidentialAddress,oe.required],default:[r.default],billing:[r.billing],cep:[r.zipCode.trim(),oe.required],streetAddress:[r.streetAddress,[oe.required,oe.pattern(/.*\S.*/)]],addressNumber:[r.number,[oe.required,oe.pattern(/.*\S.*/)]],complement:[r.complement],neighbourhood:[r.neighbourhood,[oe.required,oe.pattern(/.*\S.*/)]],city:[r.city,oe.required],state:[r.state.trim(),oe.required]}),this.isInternationalNavigation&&(this.addressForm.addControl("country",this.fb.control(r.countryId||1,oe.required)),this.selectedCountryId=r.countryId||1,1!==this.selectedCountryId&&this.get
3States(this.selectedCountryId,r.state.trim(),r.stateId))}else this.isEditingFirstAddress=!1,this.addressForm=this.fb.group({identification:["",oe.required],receiver:["",oe.required],phone:["",oe.required],addressType:["",oe.required],cep:["",oe.required],streetAddress:["",[oe.required,oe.pattern(/.*\S.*/)]],addressNumber:["",[oe.required,oe.pattern(/.*\S.*/)]],complement:[""],neighbourhood:["",[oe.required,oe.pattern(/.*\S.*/)]],city:["",oe.required],state:["",oe.required]}),this.isInternationalNavigation&&(this.addressForm.addControl("country",this.fb.control(this.countryId,oe.required)),this.selectedCountryId!=this.countryId&&(this.selectedCountryId=this.countryId,1!==this.selectedCountryId&&this.getStates(this.selectedCountryId)),0===this.countries.length&&this.getCountries());this.applyCountryValidators(null==n)}validCep(e){this.commomService.validateCep(e)||this.addressControll.cep.setErrors({pattern:!0})}searchByZipCode(e){let n=e;this.commomService.validateCep(n)?this.customerService.buscaCep(n).subscribe(o=>{null!=o?(this.addressControll.streetAddress.setValue(o.streetAddress),this.addressControll.city.setValue(o.city),this.addressControll.state.setValue(o.state),this.addressControll.neighbourhood.setValue(o.neighbourhood),this.verifyCep=!0):(this.addressControll.streetAddress.setValue(""),this.addressControll.city.setValue(""),this.addressControll.state.setValue(""),this.addressControll.neighbourhood.setValue(""),this.verifyCep=!1)}):(this.addressControll.streetAddress.setValue(""),this.addressControll.city.setValue(""),this.addressControll.state.setValue(""),this.addressControll.neighbourhood.setValue(""),this.verifyCep=!1)}ngOnDestroy(){this.obs$.unsubscribe()}validPhone(e){this.commomService.validPhoneSize(e,this.addressControll.phone),this.commomService.validPhoneNumber(e,this.addressControll.phone)}maskPhone(e){return null!=e?this.commomService.phoneNumberMask(e):this.addressControll.phone.setValue(this.commomService.phoneNumberMask(this.addressControll.phone.value))}onCountryChange(e){if(e<=1||1==this.selectedCountryId&&1!=e)return this.commomService.displayMessageUser("info","Os campos ser\xe3o apagados, pois voc\xea est\xe1 selecionando um pa\xeds com outros requisitos de preenchimento.","Deseja continuar?",!1),document.addEventListener("onJetConfirm",()=>{this.isInternational=e>1,this.countryId=e,this.selectedCountryId=Number(e),this.addressControll.state.setValue(""),this.applyCountryValidators(),1!==this.selectedCountryId&&this.getStates(this.selectedCountryId)},{passive:!0}),void document.addEventListener("onJetCancel",()=>{document.querySelector('select[formControlName="country"]').value=this.selectedCountryId.toString(),this.addressControll.country.setValue(this.selectedCountryId)},{passive:!0})}applyCountryValidators(e=!0){e&&Object.keys(this.addressControll).forEach(r=>{"receiver"!==r&&"country"!==r&&this.addressControll[r]?.reset("")});const n=this.isInternational?{phone:6,cep:3}:{phone:14,cep:9};Object.keys(n).forEach(r=>{this.setFieldValidator(r,n[r])}),this.isInternational?(this.addressControll.city.enable(),this.addressControll.state.enable()):(this.addressControll.city.disable(),this.addressControll.state.disable())}setFieldValidator(e,n){const r=this.addressControll[e];r.setValidators([oe.required,oe.minLength(n)]),r.updateValueAndValidity()}getCountries(){this.commomService.getCountries().subscribe(e=>{this.countries=e})}getStates(e,n,r){this.commomService.getCountryStates(e).subscribe(o=>{o&&(this.states=o,this.countryId=e,(n||r)&&this.addressForm&&setTimeout(()=>{const s=this.states.find(u=>u.code===n||u.name===n||r&&u.idCountryState===r);s&&this.addressControll.state.setValue(s.code)}))})}get filteredAddresses(){return this.customer?.address?this.isInternationalNavigation?this.customer.address:this.customer.address.filter(e=>this.isAddressBrazilian(e)||e.default):[]}isAddressBrazilian(e){return null!=e.countryId?1===e.countryId:!e.country||"BRASIL"===e.country.toUpperCase()}canEditAddress(e){return!(!this.isInternationalNavigation&&e.default&&!this.isAddressBrazilian(e))}static#e=this.\u0275fac=function(n){return new(n||t)($(qt),$(Ci),$(a
vendor: 4,603 bytes, line 3
3o),$(yn))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-address-management"]],inputs:{dataClassContainer:["data-class-container","dataClassContainer"],dataClassChildren:["data-class-children","dataClassChildren"]},decls:8,vars:8,consts:[[1,"jet-address-management"],[1,"tab-menu"],["data-tab","first",1,"item",3,"ngClass","click"],["data-tab","second",1,"item",3,"ngClass","click"],["class","tab-item",3,"ngClass",4,"ngIf"],[1,"tab-item",3,"ngClass"],[3,"className",4,"ngIf"],[3,"className"],[3,"className",4,"ngFor","ngForOf"],[1,"address-container"],[1,"address-title","notranslate"],[1,"address-info","notranslate"],[1,"name"],[1,"address"],[1,"neighbourhood"],[1,"city"],[1,"zipcode"],[1,"adress-action"],["class","apply",4,"ngIf"],[1,"change"],["class","btn-edit","type","button",3,"click",4,"ngIf"],["type","button",1,"btn-remove",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 448 512",1,"icon"],["fill","currentColor","d","M296 432h16a8 8 0 0 0 8-8V152a8 8 0 0 0-8-8h-16a8 8 0 0 0-8 8v272a8 8 0 0 0 8 8zm-160 0h16a8 8 0 0 0 8-8V152a8 8 0 0 0-8-8h-16a8 8 0 0 0-8 8v272a8 8 0 0 0 8 8zM440 64H336l-33.6-44.8A48 48 0 0 0 264 0h-80a48 48 0 0 0-38.4 19.2L112 64H8a8 8 0 0 0-8 8v16a8 8 0 0 0 8 8h24v368a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V96h24a8 8 0 0 0 8-8V72a8 8 0 0 0-8-8zM171.2 38.4A16.1 16.1 0 0 1 184 32h80a16.1 16.1 0 0 1 12.8 6.4L296 64H152zM384 464a16 16 0 0 1-16 16H80a16 16 0 0 1-16-16V96h320zm-168-32h16a8 8 0 0 0 8-8V152a8 8 0 0 0-8-8h-16a8 8 0 0 0-8 8v272a8 8 0 0 0 8 8z",1,""],[1,"apply"],["class","label",4,"ngIf"],["class","btn-address","type","button",3,"ngClass","click",4,"ngIf"],["class","btn-billing","type","button",3,"ngClass","click",4,"ngIf"],[1,"label"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512",1,"icon"],["fill","currentColor","d","M632 384h-24V275.9c0-16.8-6.8-33.3-18.8-45.2l-83.9-83.9c-11.8-12-28.3-18.8-45.2-18.8H416V78.6c0-25.7-22.2-46.6-49.4-46.6H49.4C22.2 32 0 52.9 0 78.6v290.8C0 395.1 22.2 416 49.4 416h16.2c-1.1 5.2-1.6 10.5-1.6 16 0 44.2 35.8 80 80 80s80-35.8 80-80c0-5.5-.6-10.8-1.6-16h195.2c-1.1 5.2-1.6 10.5-1.6 16 0 44.2 35.8 80 80 80s80-35.8 80-80c0-5.5-.6-10.8-1.6-16H632c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8zM460.1 160c8.4 0 16.7 3.4 22.6 9.4l83.9 83.9c.8.8 1.1 1.9 1.8 2.8H416v-96h44.1zM144 480c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm63.6-96C193 364.7 170 352 144 352s-49 12.7-63.6 32h-31c-9.6 0-17.4-6.5-17.4-14.6V78.6C32 70.5 39.8 64 49.4 64h317.2c9.6 0 17.4 6.5 17.4 14.6V384H207.6zM496 480c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm0-128c-26.1 0-49 12.7-63.6 32H416v-96h160v96h-16.4c-14.6-19.3-37.5-32-63.6-32z",1,""],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 576 512",1,"icon"],["fill","currentColor","d","M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM48 64h480c8.8 0 16 7.2 16 16v48H32V80c0-8.8 7.2-16 16-16zm480 384H48c-8.8 0-16-7.2-16-16V224h512v208c0 8.8-7.2 16-16 16zm-336-84v8c0 6.6-5.4 12-12 12h-72c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h72c6.6 0 12 5.4 12 12zm192 0v8c0 6.6-5.4 12-12 12H236c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h136c6.6 0 12 5.4 12 12z",1,""],["type","button",1,"btn-address",3,"ngClass","click"],["fill","currentColor","d","M413.505 91.951L133.49 371.966l-98.995-98.995c-4.686-4.686-12.284-4.686-16.971 0L6.211 284.284c-4.686 4.686-4.686 12.284 0 16.971l118.794 118.794c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-11.314-11.314c-4.686-4.686-12.284-4.686-16.97 0z",1,""],["type","button",1,"btn-billing",3,"ngClass","click"],["type","button",1,"btn-edit",3,"click"],["fill","currentColor","d","M417.8 315.5l20-20c3.8-3.8 10.2-1.1 10.2 4.2V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h292.3c5.3 0 8 6.5 4.2 10.2l-20 20c-1.1 1.1-2.7 1.8-4.2 1.8H48c-8.8 0-16 7.2-16 16v352c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V319.7c0-1.6.6-3.1 1.8-4.2zm145.9-191.2L251.2 436.8l-99.9 11.1c-13.4 1.5-24.7-9.8-23.2-23.2l11.1-99.9L451.7 12.3c16.4-16.4 43-16.4 59.4 0l52.6 52.6c16.4 16.4 16.4 43 0 59.4zm-93.6 48.4L403.4 106 169.8 339.5l-8.3 75.1 75.1-8.3 233.5-233.6zm71-85.2l-52.6-52.6c-3.8-3.8-10.2-4-14.1 0L426 83.3l66.7 66.7 48.4-48.4c3.9-3.8 3.9-10.2 0-14.1z",1,""],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"formGroup","ngSubmit"],[1,"container-form"],["class","container-field country",4,"ngIf"],[1,"container-field","identification"],["for","identification"],["placeholder","Ex: Casa, Trabalho, etc...","type","text","formControlName","identification"],["identification",""],["class","invali
3d-feedback",4,"ngIf"],[1,"container-field","address-type"],["for","addressType"],["formControlName","addressType",1,"custom-select"],["addressType",""],["value","0"],["value","1"],[1,"container-field","receiver"],["for","receiver"],["placeholder","Nome do Destinat\xe1rio","type","text","formControlName","receiver"],["receiver",""],[1,"container-field","phone"],["for","phone"],["autocomplete","off","type","text","formControlName","phone",3,"placeholder","keyup","blur","paste"],["phone",""],[1,"container-field","cep"],["for","cep"],["type","text","formControlName","cep","autocomplete","off",3,"placeholder","maxlength","keyup","blur","paste"],["cep",""],["class","container-field cep-find",4,"ngIf"],[1,"container-field","address"],["for","address"],["placeholder","Endere\xe7o","type","text","formControlName","streetAddress","autocomplete","off"],["streetAddress",""],[1,"container-field","number"],["for","addressNumber"],["placeholder","N\xfamero","type","text","formControlName","addressNumber","autocomplete","off","type","text"],["addressNumber",""],[1,"container-field","complement"],["placeholder","Complemento","type","text","formControlName","complement","autocomplete","off"],["complement",""],[1,"container-field","neighbourhood"],["for","neighbourhood"],["placeholder","Bairro","type","text","formControlName","neighbourhood","autocomplete","off"],["neighbourhood",""],[1,"container-field","city",3,"ngClass"],["for","city"],["placeholder","Cidade","type","text","formControlName","city","autocomplete","off"],["city",""],[1,"container-field","state",3,"ngClass"],["for","state"],["formControlName","state","autocomplete","off",4,"ngIf"],["type","submit",1,"btn-save",3,"ngClass"],[1,"container-field","country"],["for","country"],["formControlName","country",1,"custom-select",3,"change"],["value","","disabled",""],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"invalid-feedback"],[4,"ngIf"],[1,"container-field","cep-find"],["href","http://www.buscacep.correios.com.br/sistemas/buscacep/","target","_blank"],["formControlName","state","autocomplete","off"],["state",""],["value","","selected",""],["value","AC"],["value","AL"],["value","AP"],["value","AM"],["value","BA"],["value","CE"],["value","DF"],["value","ES"],["value","GO"],["value","MA"],["value","MT"],["value","MS"],["value","MG"],["value","PA"],["value","PB"],["value","PR"],["value","PE"],["value","PI"],["value","RJ"],["value","RN"],["value","RS"],["value","RO"],["value","RR"],["value","SC"],["value","SP"],["value","SE"],["value","TO"]],template:function(n,r){1&n&&(a(0,"div",0)(1,"div",1)(2,"span",2),J("click",function(){return r.changeTab(1)}),h(3,"Lista de Endere\xe7os"),l(),a(4,"span",3),J("click",function(){return r.changeTab(2)}),h(5,"Novo Endere\xe7o"),l()(),C(6,CR,2,4,"div",4),C(7,iB,3,5,"div",4),l()),2&n&&(c(2),d("ngClass",Oe(4,$p,1==r.currentPage)),c(2),d("ngClass",Oe(6,$p,2==r.currentPage)),c(2),d("ngIf",1==r.currentPage),c(1),d("ngIf",2==r.currentPage))},dependencies:[ui,ei,en,Gr,Ws,Js,mr,ma,fr,Ur,Zo,Ir,Mr]})}return t})();function oB(t,i){if(1&t){const e=ve();a(0,"span",2),J("click",function(){return M(e),L(_().changeTab(3))}),h(1,"Informa\xe7\xf5es adicionais"),l()}2&t&&vs("active",3==_().currentPage)}function sB(t,i){if(1&t&&(a(0,"option",89),h(1),l()),2&t){const e=i.$implicit;Ue("value",e.id),c(1),de(e.name)}}function aB(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function lB(t,i){if(1&t&&(a(0,"div",90),C(1,aB,2,0,"span",65),l()),2&t){const e=_(3);c(1),d("ngIf",e.idForm.countryId.errors.required)}}function cB(t,i){if(1&t){const e=ve();a(0,"div",84)(1,"label",85),h(2,"Pa\xeds*"),l(),a(3,"select",86),J("change",function(){M(e);const r=_(2);return L(r.changeCountry(r.idForm.countryId.value))}),a(4,"option",87),h(5,"Selecione um pa\xeds"),l(),C(6,sB,2,2,"option",88),l(),C(7,lB,2,1,"div",24),l()}if(2&t){const e=_(2);c(6),d("ngForOf",e.countries),c(1),d("ngIf",e.idForm.countryId.errors&&(e.idForm.countryId.dirty||e.idForm.countryId.touched))}}function dB(t,i){1&t&&(a(0,"span"),h(1,"Informe seu nome"),l())}function uB(t,i){1&t&&(a(0,"span"),h(1,"Informe o nome corretamente"),l())}function hB(t,i){if(1&t&&(a(0,"div",90),C(1,dB,2,0,"span",65),C(2,uB,2,0,"span",65),l()),2&t){const e=_(3);c(1),d("ngIf",e.idForm.name.errors.required),c(1),d("ngIf",e.idForm.name.errors.pattern)}}const pr=function(t){return{success:t}};function mB(t,i){if(1&t&&(a(0,"div",91)(1,"label",67),h(2,"Nome Completo*"),l(),B(3,"input",92,93),C(5,hB,3,2,"div",24),l()),2&t){const e=_(2);d("ngClass",Oe(2,pr,e.idForm.name.valid)),c(5),d("ngIf",e.idForm.name.errors&&(e.idForm.name.dirty||e.idForm.name.touched))}}function fB(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function pB(t,i){1&t&&(a(0,"span"),h(1,"Informe um "),a(2,"span",98),h(3,"CPF"),l(),h(4," v\xe1lido"),l())}function gB(t,i){if(1&t&&(a(0,"div",90),C(1,fB,2,0,"span",65),C(2,pB,5,0,"span",65),l()),2&t){const e=_(4);c(1),d("ngIf",e.idForm.cpf.errors.required),c(1),d("ngIf",e.idForm.cpf.errors.invalid||e.idForm.cpf.errors.minlength)}}function vB(t,i){1&t&&(a(0,"span"),h(1,"Informe um "),a(2,"span",98),h(3,"CPF"),l(),h(4," v\xe1lido"),l())}function _B(t,i){if(1&t&&(a(0,"div",90),C(1,vB,5,0,"span",65),l()),2&t){const e=_(4);c(1),d("ngIf",!e.commomService.validCPF(e.idForm.cpf.value))}}function CB(t,i){if(1&t){const e=ve();a(0,"div",95)(1,"label",96),h(2,"CPF*"),l(),a(3,"input",97),J("keyup",function(){return M(e),L(_(3).maskCpf())}),l(),C(4,gB,3,2,"div",24),C(5,_B,2,1,"div",24),l()}if(2&t){const e=_(3);d("ngClass",Oe(3,pr,e.idForm.cpf.valid)),c(4),d("ngIf",e.idForm.cpf.errors&&(e.idForm.cpf.dirty||e.idForm.cpf.touched)),c(1),d("ngIf",e.idForm.cpf.valid&&e.idForm.cpf.touched)}}function yB(t,i){if(1&t&&(ht(0),C(1,CB,6,5,"div",94),mt()),2&t){const e=_(2);c(1),d("ngIf","fisica"==e.customerType)}}function bB(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function SB(t,i){1&t&&(a(0,"span"),h(1,"Informe ao menos 3 caracteres"),l())}function wB(t,i){if(1&t&&(a(0,"div",90),C(1,bB,2,0,"span",65),C(2,SB,2,0,"span",65),l()),2&t){const e=_(4);c(1),d("ngIf",e.idForm.cnpj.errors.required),c(1),d("ngIf",e.idForm.cnpj.errors.invalid||e.idForm.cnpj.errors.minlength)}}function IB(t,i){if(1&t&&(a(0,"div",95)(1,"label",99),h(2,"Document*"),l(),B(3,"input",100),C(4,wB,3,2,"div",24),l()),2&t){const e=_(3);d("ngClass",Oe(2,pr,e.idForm.cnpj.valid)),c(4),d("ngIf",e.idForm.cnpj.errors&&(e.idForm.cnpj.dirty||e.idForm.cnpj.touched))}}function xB(t,i){1&t&&C(0,IB,5,4,"div",94),2&t&&d("ngIf","fisica"==_(2).customerType)}function DB(t,i){1&t&&(a(0,"span"),h(1,"Data Inv\xe1lida"),l())}function PB(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function TB(t,i){if(1&t&&(a(0,"div",90),C(1,DB,2,0,"span",65),C(2,PB,2,0,"span",65),l()),2&t){const e=_(3);c(1),d("ngIf",(null==e.idForm.dateOfBirth.errors?null:e.idForm.dateOfBirth.errors.pattern)||e.idForm.dateOfBirth.errors.incorrect),c(1),d("ngIf",e.idForm.dateOfBirth.errors.required)}}function EB(t,i){if(1&t){const e=ve();a(0,"div",101)(1,"label",102),h(2,"Nascimento"),l(),a(3,"input",103,104),J("keyup",function(r){M(e);const o=_(2);return o.maskBirthDate(r),L(o.checkBirthDate(r.target.value))})("blur",function(r){M(e);const o=_(2);return o.maskBirthDate(r),L(o.checkBirthDate(r.target.value))}),l(),C(5,TB,3,2,"div",24),l()}if(2&t){const e=_(2);d("ngClass",Oe(3,pr,e.idForm.dateOfBirth.valid)),c(3),Ue("placeholder",e.isInternational?"YYYY-MM-DD":"DD/MM/AAAA"),c(2),d("ngIf",e.idForm.dateOfBirth.errors&&(e.idForm.dateOfBirth.dirty||e.idForm.dateOfBirth.touched))}}function LB(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function kB(t,i){1&t&&(a(0,"span"),h(1,"Informe um "),a(2,"span",98),h(3,"CNPJ"),l(),h(4," v\xe1lido"),l())}function MB(t,i){if(1&t&&(a(0,"div",90),C(1,LB,2,0,"span",65),C(2,kB,5,0,"span",65),l()),2&t){const e=_(4);c(1),d("ngIf",e.idForm.cnpj.errors.required),c(1),d("ngIf",!e.commomService.validCNPJ(e.idForm.cnpj.value))}}function AB(t,i){1&t&&(a(0,"span"),h(1,"Informe um "),a(2,"span",98),h(3,"CNPJ"),l(),h(4," v\xe1lido"),l())}function NB(t,i){if(1&t&&(a(0,"div",90),C(1,AB,5,0,"span",65),l()),2&t){const e=_(4);c(1),d("ngIf",!e.commomService.validCNPJ(e.idForm.cnpj.value))}}function OB(t,i){if(1&t){const e=ve();a(0,"div",95)(1,"label",99),h(2,"CNPJ*"),l(),a(3,"input",105),J("keyup",function(){return M(e),L(_(3).maskCnpj())})("blur",function(){return M(e),L(_(3).getCnpjCompany())}),l(),C(4,MB,3,2,"div",24),C(5,NB,2,1,"div",24),l()}if(2&t){const e=_(3);d("ngClass",Oe(3,pr,e.idForm.cnpj.valid)),c(4),d("ngIf",e.idForm.cnpj.errors&&(e.idForm.cnpj.dirty||e.idForm.cnpj.touched)),c(1),d("ngIf",e.idForm.cnpj.valid&&e.idForm.cnpj.touched)}}function RB(t,i){if(1&t&&(ht(0),C(1,OB,6,5,"div",94),mt()),2&t){const e=_(2);c(1),d("ngIf","juridica"==e.customerType)}}function BB(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function jB(t,i){1&t&&(a(0,"span"),h(1,"Informe ao menos 3 caracteres"),l())}function VB(t,i){if(1&t&&(a(0,"div",90),C(1,BB,2,0,"span",65),C(2,jB,2,0,"span",65),l()),2&t){const e=_(4);c(1),d("ngIf",e.idForm.cnpj.errors.required),c(1),d("ngIf",e.idForm.cnpj.errors.invalid||e.idForm.cnpj.errors.minlength)}}function HB(t,i){if(1&t&&(a(0,"div",95)(1,"label",99),h(2,"Document*"),l(),B(3,"input",100),C(4,VB,3,2,"div",24),l()),2&t){const e=_(3);d("ngClass",Oe(2,pr,e.idForm.cnpj.valid)),c(4),d("ngIf",e.idForm.cnpj.errors&&(e.idForm.cnpj.dirty||e.idForm.cnpj.touched))}}function zB(t,i){1&t&&C(0,HB,5,4,"div",94),2&t&&d("ngIf","juridica"==_(2).customerType)}function qB(t,i){1&t&&(a(0,"span"),h(1,"Informe ao menos 3 caracteres"),l())}function $B(t,i){if(1&t&&(a(0,"div",90),C(1,qB,2,0,"span",65),l()),2&t){const e=_(3);c(1),d("ngIf",e.idForm.rg_ie.errors.minlength)}}function UB(t,i){if(1&t&&(a(0,"div",106)(1,"label",107),h(2,"IE"),l(),B(3,"input",108,109),C(5,$B,2,1,"div",24),l()),2&t){const e=_(2);d("ngClass",Oe(2,pr,e.idForm.rg_ie.valid)),c(5),d("ngIf",e.idForm.rg_ie.errors&&(e.idForm.rg_ie.dirty||e.idForm.rg_ie.touched))}}function GB(t,i){1&t&&(a(0,"span"),h(1,"Informe seu telefone"),l())}function WB(t,i){1&t&&(a(0,"span"),h(1," Informe um Telefone V\xe1lido "),l())}function JB(t,i){if(1&t&&(a(0,"div",90),C(1,GB,2,0,"span",65),C(2,WB,2,0,"span",65),l()),2&t){const e=_(2);c(1),d("ngIf",e.idForm.phone1.errors.required),c(1),d("ngIf",e.idForm.phone1.errors.incorrect||e.idForm.phone1.errors.minlength)}}function ZB(t,i){1&t&&(a(0,"span"),h(1," Informe um Telefone V\xe1lido "),l())}function QB(t,i){if(1&t&&(a(0,"div",90),C(1,ZB,2,0,"span",65),l()),2&t){const e=_(2);
3c(1),d("ngIf",e.commomService.phoneNumberUnMask(e.idForm.phone1.value).length<10)}}function YB(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function KB(t,i){1&t&&(a(0,"span"),h(1,"Informe ao menos 3 caracteres"),l())}function XB(t,i){1&t&&(a(0,"span"),h(1,"Informe a raz\xe3o social correntamente"),l())}function ej(t,i){if(1&t&&(a(0,"div",90),C(1,YB,2,0,"span",65),C(2,KB,2,0,"span",65),C(3,XB,2,0,"span",65),l()),2&t){const e=_(3);c(1),d("ngIf",e.idForm.name.errors.required),c(1),d("ngIf",e.idForm.name.errors.minlength),c(1),d("ngIf",e.idForm.name.errors.pattern)}}function tj(t,i){if(1&t&&(a(0,"div",110)(1,"label",67),h(2,"Raz\xe3o Social*"),l(),B(3,"input",111,93),C(5,ej,4,3,"div",24),l()),2&t){const e=_(2);d("ngClass",Oe(2,pr,e.idForm.name.valid)),c(5),d("ngIf",e.idForm.name.errors&&(e.idForm.name.dirty||e.idForm.name.touched))}}function nj(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function ij(t,i){1&t&&(a(0,"span"),h(1,"Informe ao menos 3 caracteres"),l())}function rj(t,i){if(1&t&&(a(0,"div",90),C(1,nj,2,0,"span",65),C(2,ij,2,0,"span",65),l()),2&t){const e=_(3);c(1),d("ngIf",e.idForm.fantasyName.errors.required),c(1),d("ngIf",e.idForm.fantasyName.errors.minlength)}}function oj(t,i){if(1&t&&(a(0,"div",112)(1,"label",67),h(2),l(),B(3,"input",113,114),C(5,rj,3,2,"div",24),l()),2&t){const e=_(2);d("ngClass",Oe(4,pr,e.idForm.fantasyName.valid)),c(2),de(e.isInternational?"Company Name*":"Nome Fantasia*"),c(1),Ue("placeholder",e.isInternational?"Company Name":"Nome Fantasia da Empresa"),c(2),d("ngIf",e.idForm.fantasyName.errors&&(e.idForm.fantasyName.dirty||e.idForm.fantasyName.touched))}}function sj(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function aj(t,i){1&t&&(a(0,"span"),h(1,"Informe ao menos 3 caracteres"),l())}function lj(t,i){1&t&&(a(0,"span"),h(1,"Informe nome v\xe1lido"),l())}function cj(t,i){if(1&t&&(a(0,"div",90),C(1,sj,2,0,"span",65),C(2,aj,2,0,"span",65),C(3,lj,2,0,"span",65),l()),2&t){const e=_(3);c(1),d("ngIf",e.idForm.contact.errors.required),c(1),d("ngIf",e.idForm.contact.errors.minlength),c(1),d("ngIf",e.idForm.contact.errors.pattern)}}const dj=function(t,i,e){return{success:t,name:i,"fantasy-name":e}};function uj(t,i){if(1&t&&(a(0,"div",70)(1,"label",115),h(2,"Respons\xe1vel pela Empresa*"),l(),B(3,"input",116,117),C(5,cj,4,3,"div",24),l()),2&t){const e=_(2);d("ngClass",Dg(2,dj,e.idForm.contact.valid,!e.isInternational,e.isInternational)),c(5),d("ngIf",e.idForm.contact.errors&&(e.idForm.contact.dirty||e.idForm.contact.touched))}}function hj(t,i){1&t&&(a(0,"span"),h(1,"Informe o CEP"),l())}function mj(t,i){1&t&&(a(0,"span"),h(1,"CEP inv\xe1lido"),l())}function fj(t,i){if(1&t&&(a(0,"div",90),C(1,hj,2,0,"span",65),C(2,mj,2,0,"span",65),l()),2&t){const e=_(2);c(1),d("ngIf",e.idForm.cep.errors.required),c(1),d("ngIf",(null==e.idForm.cep.errors?null:e.idForm.cep.errors.pattern)&&!e.verifyCep)}}function pj(t,i){1&t&&(a(0,"div",118),h(1," N\xe3o sabe o seu CEP? "),a(2,"a",119),h(3,"Consulte Aqui"),l()())}function gj(t,i){1&t&&(a(0,"span"),h(1,"Informe o Endere\xe7o"),l())}function vj(t,i){1&t&&(a(0,"span"),h(1,"Endere\xe7o inv\xe1lido"),l())}function _j(t,i){if(1&t&&(a(0,"div",90),C(1,gj,2,0,"span",65),C(2,vj,2,0,"span",65),l()),2&t){const e=_(2);c(1),d("ngIf",e.idForm.address.errors.required),c(1),d("ngIf",null==e.idForm.address.errors?null:e.idForm.address.errors.pattern)}}function Cj(t,i){1&t&&(a(0,"span"),h(1,"Informe o N\xfamero"),l())}function yj(t,i){1&t&&(a(0,"span"),h(1,"N\xfamero inv\xe1lido"),l())}function bj(t,i){if(1&t&&(a(0,"div",90),C(1,Cj,2,0,"span",65),C(2,yj,2,0,"span",65),l()),2&t){const e=_(2);c(1),d("ngIf",e.idForm.number.errors.required),c(1),d("ngIf",e.idForm.number.errors.pattern)}}function Sj(t,i){1&t&&(a(0,"span"),h(1,"Informe o Bairro"),l())}function wj(t,i){1&t&&(a(0,"span"),h(1,"Bairro inv\xe1lido"),l())}function Ij(t,i){if(1&t&&(a(0,"div",90),C(1,Sj,2,0,"span",65),C(2,wj,2,0,"span",65),l()),2&t){const e=_(2);c(1),d("ngIf",e.idForm.neighbourhood.errors.required),c(1),d("ngIf",e.idForm.neighbourhood.errors.pattern)}}function xj(t,i){1&t&&(a(0,"span"),h(1,"Informe a Cidade"),l())}function Dj(t,i){if(1&t&&(a(0,"div",90),C(1,xj,2,0,"span",65),l()),2&t){const e=_(2);c(1),d("ngIf",e.idForm.city.errors.required)}}function Pj(t,i){1&t&&(ht(0),a(1,"option",120),h(2,"Acre"),l(),a(3,"option",121),h(4,"Alagoas"),l(),a(5,"option",122),h(6,"Amap\xe1"),l(),a(7,"option",123),h(8,"Amazonas"),l(),a(9,"o
3ption",124),h(10,"Bahia"),l(),a(11,"option",125),h(12,"Cear\xe1"),l(),a(13,"option",126),h(14,"Distrito Federal"),l(),a(15,"option",127),h(16,"Esp\xedrito Santo"),l(),a(17,"option",128),h(18,"Goi\xe1s"),l(),a(19,"option",129),h(20,"Maranh\xe3o"),l(),a(21,"option",130),h(22,"Mato Grosso"),l(),a(23,"option",131),h(24,"Mato Grosso do Sul"),l(),a(25,"option",132),h(26,"Minas Gerais"),l(),a(27,"option",133),h(28,"Par\xe1"),l(),a(29,"option",134),h(30,"Para\xedba"),l(),a(31,"option",135),h(32,"Paran\xe1"),l(),a(33,"option",136),h(34,"Pernambuco"),l(),a(35,"option",137),h(36,"Piau\xed"),l(),a(37,"option",138),h(38,"Rio de Janeiro"),l(),a(39,"option",139),h(40,"Rio Grande do Norte"),l(),a(41,"option",140),h(42,"Rio Grande do Sul"),l(),a(43,"option",141),h(44,"Rond\xf4nia"),l(),a(45,"option",142),h(46,"Roraima"),l(),a(47,"option",143),h(48,"Santa Catarina"),l(),a(49,"option",144),h(50,"S\xe3o Paulo"),l(),a(51,"option",145),h(52,"Sergipe"),l(),a(53,"option",146),h(54,"Tocantins"),l(),mt())}function Tj(t,i){if(1&t&&(a(0,"option",89),h(1),l()),2&t){const e=i.$implicit;Ue("value",e.code),c(1),de(e.name)}}function Ej(t,i){1&t&&C(0,Tj,2,2,"option",88),2&t&&d("ngForOf",_(2).states)}function Lj(t,i){1&t&&(a(0,"span"),h(1,"Informe o Estado"),l())}function kj(t,i){if(1&t&&(a(0,"div",90),C(1,Lj,2,0,"span",65),l()),2&t){const e=_(2);c(1),d("ngIf",e.idForm.state.errors.required)}}function Mj(t,i){1&t&&(a(0,"span"),h(1,"Informe o CEP"),l())}function Fj(t,i){if(1&t&&(a(0,"div",90),C(1,Mj,2,0,"span",65),l()),2&t){const e=_(3);c(1),d("ngIf",e.idForm.billingCep.errors.required)}}function Aj(t,i){1&t&&(a(0,"div",90)(1,"span"),h(2,"CEP Inv\xe1lido"),l()())}function Nj(t,i){1&t&&(a(0,"div",118),h(1," N\xe3o sabe o seu CEP? "),a(2,"a",119),h(3,"Consulte Aqui"),l()())}function Oj(t,i){1&t&&(a(0,"span"),h(1,"Informe o Endere\xe7o"),l())}function Rj(t,i){1&t&&(a(0,"span"),h(1,"Endere\xe7o inv\xe1lido"),l())}function Bj(t,i){if(1&t&&(a(0,"div",90),C(1,Oj,2,0,"span",65),C(2,Rj,2,0,"span",65),l()),2&t){const e=_(3);c(1),d("ngIf",e.idForm.billingAddress.errors.required),c(1),d("ngIf",null==e.idForm.billingAddress.errors?null:e.idForm.billingAddress.errors.pattern)}}function jj(t,i){1&t&&(a(0,"span"),h(1,"Informe o N\xfamero"),l())}function Vj(t,i){1&t&&(a(0,"span"),h(1,"N\xfamero inv\xe1lido"),l())}function Hj(t,i){if(1&t&&(a(0,"div",90),C(1,jj,2,0,"span",65),C(2,Vj,2,0,"span",65),l()),2&t){const e=_(3);c(1),d("ngIf",e.idForm.billingNumber.errors.required),c(1),d("ngIf",e.idForm.billingNumber.errors.pattern)}}function zj(t,i){1&t&&(a(0,"span"),h(1,"Informe o Bairro"),l())}function qj(t,i){1&t&&(a(0,"span"),h(1,"Bairro inv\xe1lido"),l())}function $j(t,i){if(1&t&&(a(0,"div",90),C(1,zj,2,0,"span",65),C(2,qj,2,0,"span",65),l()),2&t){const e=_(3);c(1),d("ngIf",e.idForm.billingNeighbourhood.errors.required),c(1),d("ngIf",e.idForm.billingNeighbourhood.errors.pattern)}}function Uj(t,i){1&t&&(a(0,"span"),h(1,"Informe a Cidade"),l())}function Gj(t,i){if(1&t&&(a(0,"div",90),C(1,Uj,2,0,"span",65),l()),2&t){const e=_(3);c(1),d("ngIf",e.idForm.billingCity.errors.required)}}function Wj(t,i){1&t&&(ht(0),a(1,"option",120),h(2,"Acre"),l(),a(3,"option",121),h(4,"Alagoas"),l(),a(5,"option",122),h(6,"Amap\xe1"),l(),a(7,"option",123),h(8,"Amazonas"),l(),a(9,"option",124),h(10,"Bahia"),l(),a(11,"option",125),h(12,"Cear\xe1"),l(),a(13,"option",126),h(14,"Distrito Federal"),l(),a(15,"option",127),h(16,"Esp\xedrito Santo"),l(),a(17,"option",128),h(18,"Goi\xe1s"),l(),a(19,"o
3ption",129),h(20,"Maranh\xe3o"),l(),a(21,"option",130),h(22,"Mato Grosso"),l(),a(23,"option",131),h(24,"Mato Grosso do Sul"),l(),a(25,"option",132),h(26,"Minas Gerais"),l(),a(27,"option",133),h(28,"Par\xe1"),l(),a(29,"option",134),h(30,"Para\xedba"),l(),a(31,"option",135),h(32,"Paran\xe1"),l(),a(33,"option",136),h(34,"Pernambuco"),l(),a(35,"option",137),h(36,"Piau\xed"),l(),a(37,"option",138),h(38,"Rio de Janeiro"),l(),a(39,"option",139),h(40,"Rio Grande do Norte"),l(),a(41,"option",140),h(42,"Rio Grande do Sul"),l(),a(43,"option",141),h(44,"Rond\xf4nia"),l(),a(45,"option",142),h(46,"Roraima"),l(),a(47,"option",143),h(48,"Santa Catarina"),l(),a(49,"option",144),h(50,"S\xe3o Paulo"),l(),a(51,"option",145),h(52,"Sergipe"),l(),a(53,"option",146),h(54,"Tocantins"),l(),mt())}function Jj(t,i){if(1&t&&(a(0,"option",89),h(1),l()),2&t){const e=i.$implicit;Ue("value",e.code),c(1),de(e.name)}}function Zj(t,i){1&t&&C(0,Jj,2,2,"option",88),2&t&&d("ngForOf",_(3).states)}function Qj(t,i){1&t&&(a(0,"span"),h(1,"Informe o Estado"),l())}function Yj(t,i){if(1&t&&(a(0,"div",90),C(1,Qj,2,0,"span",65),l()),2&t){const e=_(3);c(1),d("ngIf",e.idForm.billingState.errors.required)}}const Up=function(t,i){return{success:t,disabled:i}};function Kj(t,i){if(1&t){const e=ve();a(0,"div",147)(1,"div",60)(2,"span",148),h(3,"Endere\xe7o de Cobran\xe7a"),l()(),a(4,"div",29)(5,"label",30),h(6),l(),a(7,"input",149,150),J("keyup",function(){M(e);const r=_(2);return L(r.isInternational?"":r.maskCEP("billingCep"))})("blur",function(){M(e);const r=_(2);return L(r.isInternational?"":r.buscaCep("billing"))}),l(),C(9,Fj,2,1,"div",24),C(10,Aj,3,0,"div",24),l(),C(11,Nj,4,0,"div",33),a(12,"div",34)(13,"label",35),h(14,"Endere\xe7o*"),l(),B(15,"input",151,152),C(17,Bj,3,2,"div",24),l(),a(18,"div",38)(19,"label",39),h(20,"N\xfamero*"),l(),B(21,"input",153,154),C(23,Hj,3,2,"div",24),l(),a(24,"div",42)(25,"label",43),h(26,"Complemento"),l(),B(27,"input",155,156),l(),a(29,"div",46)(30,"label",47),h(31,"Bairro*"),l(),B(32,"input",157,158),C(34,$j,3,2,"div",24),l(),a(35,"div",50)(36,"label",51),h(37,"Cidade*"),l(),B(38,"input",159,160),C(40,Gj,2,1,"div",24),l(),a(41,"div",54)(42,"label",55),h(43),l(),a(44,"select",161,162)(46,"option",58),h(47),l(),C(48,Wj,55,0,"ng-container",15),C(49,Zj,1,1,"ng-template",null,163,_i),l(),C(51,Yj,2,1,"div",24),l()()}if(2&t){const e=Wt(50),n=_(2);c(4),d("ngClass",Oe(21,pr,n.idForm.billingCep.valid)),c(2),de(n.isInternationalNavigation?"C\xf3digo Postal*":"CEP*"),c(1),Ue("placeholder",n.isInternational?"Postal Code":"00000-000"),c(2),d("ngIf",n.idForm.billingCep.errors&&(n.idForm.billingCep.dirty||n.idForm.billingCep.touched)),c(1),d("ngIf",!n.verifyCep),c(1),d("ngIf",!n.isInternational),c(1),d("ngClass",Oe(23,pr,n.idForm.billingAddress.valid)),c(5),d("ngIf",n.idForm.billingAddress.errors&&(n.idForm.billingAddress.dirty||n.idForm.billingAddress.touched)),c(1),d("ngClass",Oe(25,pr,n.idForm.billingNumber.valid)),c(5),d("ngIf",n.idForm.billingNumber.errors&&(n.idForm.billingNumber.dirty||n.idForm.billingNumber.touched)),c(1),d("ngClass",Oe(27,pr,n.idForm.billingComplement.valid)),c(5),d("ngClass",Oe(29,pr,n.idForm.billingNeighbourhood.valid)),c(5),d("ngIf",n.idForm.billingNeighbourhood.errors&&(n.idForm.billingNeighbourhood.dirty||n.idForm.billingNeighbourhood.touched)),c(1),d("ngClass",Us(31,Up,n.idForm.billingCity.valid,!n.isInternational&&n.verifyCep&&n.idForm.billingCity.valid)),c(5),d("ngIf",n.idForm.billingCity.errors&&(n.idForm.billingCity.dirty||n.idForm.billingCity.touched)),c(1),d("ngClass",Us(34,Up,n.idForm.billingState.valid,!n.isInternational&&n.verifyCep&&n.idForm.billingState.valid)),c(2),dt("",n.isInternational?"Estado ou Regi\xe3o":"Estado","*"),c(4),de(n.isInternational?"Selecione o Estado ou Regi\xe3o":"Selecione o Estado"),c(1),d("ngIf",!n.isInternational)("ngIfElse",e),c(3),d("ngIf",n.idForm.billingState.errors&&(n.idForm.billingState.dirty||n.idForm.billingState.touched))}}function Xj(t,i){if(1&t&&(ht(0),B(1,"jet-customer-custom-fields",164),mt()),2&t){const e=_(2);c(1),d("fields",e.lstCustomFields)("externalForm",e.registerForm)}}function eV(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function tV(t,i){1&t&&(a(0,"span"),h(1,"Informe um email v\xe1lido"),l())}function nV(t,i){if(1&t&&(a(0,"div",90),C(1,eV,2,0,"span",65),C(2,tV,2,0,"span",65),l()),2&t){const e=_(2);c(1),d("ngIf",e.idForm.email.errors.required),c(1),d("ngIf",null==e.idForm.email.errors?null:e.idForm.email.errors.pattern)}}function iV(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function rV(t,i){1&t&&(a(0,"span"),h(1,"Informe ao menos 3 caracteres"),l())}function oV(t,i){if(1&t&&(we(),Pe(),a(0,"div",90),C(1,iV,2,0,"span",65),C(2,rV,2,0,"span",65),l()),2&t){const e=_(2);c(1),d("ngIf",e.idForm.password.errors.required),c(1),d("ngIf",e.idForm.password.errors.minlength)}}function sV(t,i){if(1&t){const e=ve();a(0,"div",61)(1,"input",166),J("change",function(){const o=M(e).$implicit;return L(o.checked=!o.checked)}),l(),a(2,"label",167),h(3),l()()}if(2&t){const e=i.$implicit;c(1),d("id",e.idEmailInfoCategory)("checked",e.checked),c(1),d("for",e.idEmailInfoCategory),c(1),de(e.name)}
3}function aV(t,i){if(1&t&&(we(),Pe(),a(0,"div",60)(1,"span",148),h(2,"Selecione as categorias que deseja receber por e-mail"),l(),C(3,sV,4,4,"div",165),l()),2&t){const e=_(2);c(3),d("ngForOf",e.newsletterCategories)}}function lV(t,i){1&t&&(a(0,"span"),h(1,"\xc9 necess\xe1rio ler e aceitar os termos."),l())}function cV(t,i){if(1&t&&(a(0,"div",90),C(1,lV,2,0,"span",65),l()),2&t){const e=_(3);c(1),d("ngIf",e.idForm.flagAcceptTerm.errors.required)}}function dV(t,i){1&t&&(a(0,"div",90)(1,"span"),h(2,"\xc9 necess\xe1rio ler e aceitar os termos."),l()())}const hv=function(t){return{hideme:t}};function uV(t,i){if(1&t){const e=ve();we(),Pe(),a(0,"div",168)(1,"div",169),B(2,"input",170,171),a(4,"label",172),h(5,"Li e concordo com o "),a(6,"strong",173),J("click",function(){return M(e),L(_(2).showTerms=!0)}),h(7,"termo de aceite"),l(),h(8,"?*"),l()(),C(9,cV,2,1,"div",24),C(10,dV,3,0,"div",24),a(11,"div",174)(12,"div",175),B(13,"p",176),Wi(14,"safeHtml"),a(15,"div",177)(16,"button",178),J("click",function(){return M(e),L(_(2).showTerms=!1)}),h(17,"Fechar"),l()()()()()}if(2&t){const e=_(2);d("ngClass",Oe(7,pr,e.idForm.flagAcceptTerm.valid)),c(9),d("ngIf",e.idForm.flagAcceptTerm.errors&&(e.idForm.flagAcceptTerm.dirty||e.idForm.flagAcceptTerm.touched)),c(1),d("ngIf",!e.idForm.flagAcceptTerm.value&&(e.idForm.flagAcceptTerm.dirty||e.idForm.flagAcceptTerm.touched)),c(1),d("ngClass",Oe(9,hv,!e.showTerms)),c(2),d("innerHtml",Lo(14,5,e.company.termToAcceptText),ce)}}function hV(t,i){1&t&&(a(0,"span"),h(1,"\xc9 necess\xe1rio ler e aceitar os termos B2B."),l())}function mV(t,i){if(1&t&&(a(0,"div",90),C(1,hV,2,0,"span",65),l()),2&t){const e=_(3);c(1),d("ngIf",e.idForm.flagAcceptTermB2BV.errors.required)}}function fV(t,i){1&t&&(a(0,"div",90)(1,"span"),h(2,"\xc9 necess\xe1rio ler e aceitar os termos B2B."),l()())}function pV(t,i){if(1&t){const e=ve();we(),Pe(),a(0,"div",168)(1,"div",169),B(2,"input",179,180),a(4,"label",181),h(5,"Li e concordo com o "),a(6,"strong",173),J("click",function(){return M(e),L(_(2).showTermsB2B=!0)}),h(7,"termo de aceite B2B"),l(),h(8,"?*"),l()(),C(9,mV,2,1,"div",24),C(10,fV,3,0,"div",24),a(11,"div",174)(12,"div",175),B(13,"p",176),Wi(14,"safeHtml"),a(15,"div",177)(16,"button",178),J("click",function(){return M(e),L(_(2).showTermsB2B=!1)}),h(17,"Fechar"),l()()()()()}if(2&t){const e=_(2);d("ngClass",Oe(7,pr,e.idForm.flagAcceptTermB2B.valid)),c(9),d("ngIf",e.idForm.flagAcceptTermB2B.errors&&(e.idForm.flagAcceptTermB2B.dirty||e.idForm.flagAcceptTermB2B.touched)),c(1),d("ngIf",!e.idForm.flagAcceptTermB2B.value&&(e.idForm.flagAcceptTermB2B.dirty||e.idForm.flagAcceptTermB2B.touched)),c(1),d("ngClass",Oe(9,hv,!e.showTermsB2B)),c(2),d("innerHtml",Lo(14,5,e.company.termToAcceptTextB2B),ce)}}function gV(t,i){1&t&&(a(0,"div",90)(1,"span"),h(2,"\xc9 necess\xe1rio ler e aceitar a pol\xedtica de privacidade."),l()())}function vV(t,i){if(1&t){const e=ve();we(),Pe(),a(0,"div",182)(1,"div",183),B(2,"input",184,185),a(4,"label",186),h(5,"Li e concordo com a "),a(6,"strong",173),J("click",function(){return M(e),L(_(2).showPolicy=!0)}),h(7,"Pol\xedtica de Privacidade"),l()(),a(8,"div",187)(9,"div",175),B(10,"p",176),Wi(11,"safeHtml"),a(12,"div",177)(13,"button",178),J("click",function(){return M(e),L(_(2).showPolicy=!1)}),h(14,"Fechar"),l()()()()(),C(15,gV,3,0,"div",24),l()}if(2&t){const e=_(2);d("ngClass",Oe(6,pr,e.idForm.flagPrivacyPolicy.valid)),c(8),d("ngClass",Oe(8,hv,!e.showPolicy)),c(2),d("innerHtml",Lo(11,4,e.company.privacyPolicy.policyPrivacy),ce),c(5),d("ngIf",null!=e.company&&e.company.privacyPolicy.statusPolicyPrivacy&&!e.idForm.flagPrivacyPolicy.value&&(e.idForm.flagPrivacyPolicy.dirty||e.idForm.flagPrivacyPolicy.touched))}}function _V(t,i){if(1&t){const e=ve();we(),Pe(),a(0,"button",188),J("click",function(){return M(e),L(_(2).cleanCookies(!0))}),h(1,"CANCELAR"),l()}}function CV(t,i){if(1&t){const e=ve();we(),Pe(),a(0,"button",188),J("click",function(){M(e);const r=_(2);return L(r.changeTab(r.currentPage-1,!0))}),h(1,"ANTERIOR"),l()}}function yV(t,i){1&t&&(we(),Pe(),a(0,"button",189),h(1,"CADASTRAR"),l())}function bV(t,i){if(1&t){const e=ve();we(),Pe(),a(0,"button",190),J("click",function(){M(e);const r=_(2);return L(r.changeTab(r.currentPage+1))}),h(1,"PR\xd3XIMO"),l()}}const Gp=function(t){return{active:t}};function SV(t,i){if(1&t){const e=ve();a(0,"form",5),J("ngSubmit",function(){return M(e),L(_().sendRegister())}),a(1,"div",6)(2,"div",7),C(3,cB,8,2,"div",8),a(4,"div",9)(5,"label",10),h(6,"Perfil*"),l(),a(7,"select",11),J("change",function(r){return M(e),L(_().onProfileChange(r))}),a(8,"option",12),h(9,"Pessoa F\xedsica"),l(),a(10,"option",13),h(11,"Pessoa Jur\xeddica"),l()()(),C(12,mB,6,4,"div",14),C(13,yB,2,1,"ng-container",15),C(14,xB,1,1,"ng-template",null,16,_i),C(16,EB,6,5,"div",17),C(17,RB,2,1,"ng-container",15),C(18,zB,1,1,"ng-template",null,18,_i),C(20,UB,6,4,"div",19),a(21,"div",20)(22,"label",21),h(23,"Telefone*"),l(
3),a(24,"input",22,23),J("keyup",function(){return M(e),L(_().maskPhone("phone1"))})("blur",function(){return M(e),L(_().maskPhone("phone1"))})("paste",function(r){return r.preventDefault()}),l(),C(26,JB,3,2,"div",24),C(27,QB,2,1,"div",24),l(),C(28,tj,6,4,"div",25),C(29,oj,6,6,"div",26),C(30,uj,6,6,"div",27),l(),a(31,"div",7)(32,"div",28)(33,"div",29)(34,"label",30),h(35),l(),a(36,"input",31,32),J("keyup",function(){M(e);const r=_();return L(r.isInternational?"":r.maskCEP("cep"))})("blur",function(){M(e);const r=_();return L(r.isInternational?"":r.buscaCep())})("paste",function(r){return r.preventDefault()}),l(),C(38,fj,3,2,"div",24),l(),C(39,pj,4,0,"div",33),a(40,"div",34)(41,"label",35),h(42,"Endere\xe7o*"),l(),B(43,"input",36,37),C(45,_j,3,2,"div",24),l(),a(46,"div",38)(47,"label",39),h(48,"N\xfamero*"),l(),B(49,"input",40,41),C(51,bj,3,2,"div",24),l(),a(52,"div",42)(53,"label",43),h(54,"Complemento"),l(),B(55,"input",44,45),l(),a(57,"div",46)(58,"label",47),h(59,"Bairro*"),l(),B(60,"input",48,49),C(62,Ij,3,2,"div",24),l(),a(63,"div",50)(64,"label",51),h(65,"Cidade*"),l(),B(66,"input",52,53),C(68,Dj,2,1,"div",24),l(),a(69,"div",54)(70,"label",55),h(71),l(),a(72,"select",56,57)(74,"option",58),h(75),l(),C(76,Pj,55,0,"ng-container",15),C(77,Ej,1,1,"ng-template",null,59,_i),l(),C(79,kj,2,1,"div",24),l(),a(80,"div",60)(81,"div",61)(82,"input",62),J("change",function(){M(e);const r=_();return L(r.sameAddress=!r.sameAddress)}),l(),a(83,"label",63),h(84,"O endere\xe7o de cobran\xe7a \xe9 o mesmo que o endere\xe7o de entrega?"),l()()()(),C(85,Kj,52,37,"div",64),l(),a(86,"div",7),C(87,Xj,2,2,"ng-container",65),l(),a(88,"div",7)(89,"div",66)(90,"label",67),h(91,"Email*"),l(),B(92,"input",68,69),C(94,nV,3,2,"div",24),l(),a(95,"div",70)(96,"label",71),h(97,"Senha*"),l(),B(98,"input",72,73),we(),a(100,"svg",74),J("click",function(){return M(e),L(_().showHiddenPass("password"))}),B(101,"path",75),l(),a(102,"svg",76),J("click",function(){return M(e),L(_().showHiddenPass("password"))}),B(103,"path",77),l(),C(104,oV,3,2,"div",24),l(),C(105,aV,4,1,"div",78),C(106,uV,18,11,"div",79),C(107,pV,18,11,"div",79),C(108,vV,16,10,"div",80),l(),C(109,_V,2,0,"button",81),C(110,CV,2,0,"button",81),C(111,yV,2,0,"button",82),C(112,bV,2,0,"button",83),l()()}if(2&t){const e=Wt(15),n=Wt(19),r=Wt(78),o=_();d("formGroup",o.registerForm),c(2),d("ngClass",Oe(58,Gp,1==o.currentPage)),c(1),d("ngIf",o.isInternationalNavigation),c(5),d("selected","fisica"==o.customerType),c(2),d("selected","juridica"==o.customerType),c(2),d("ngIf","fisica"==o.customerType||"juridica"==o.customerType&&o.isInternational),c(1),d("ngIf",!o.isInternational)("ngIfElse",e),c(3),d("ngIf","fisica"==o.customerType),c(1),d("ngIf",!o.isInternational)("ngIfElse",n),c(3),d("ngIf","juridica"==o.customerType&&!o.isInternational),c(1),d("ngClass",Oe(60,pr,o.idForm.phone1.valid)),c(3),Ue("placeholder",o.isInternational?"000000":"(00) 00000-0000"),c(2),d("ngIf",o.idForm.phone1.errors&&(o.idForm.phone1.dirty||o.idForm.phone1.touched)),c(1),d("ngIf",!o.isInternational&&o.idForm.phone1.valid),c(1),d("ngIf","juridica"==o.customerType&&!o.isInternational),c(1),d("ngIf","juridica"==o.customerType),c(1),d("ngIf","juridica"==o.customerType),c(1),d("ngClass",Oe(62,Gp,2==o.currentPage)),c(2),d("ngClass",Oe(64,pr,o.idForm.cep.valid)),c(2),de(o.isInternationalNavigation?"C\xf3digo Postal*":"CEP*"),c(1),Ue("placeholder",o.isInternational?"Postal Code":"00000-000"),ii("maxlength",o.isInternational?15:9),c(2),d("ngIf",o.idForm.cep.errors&&(o.idForm.cep.dirty||o.idForm.cep.touched)),c(1),d("ngIf",!o.isInternational),c(1),d("ngClass",Oe(66,pr,o.idForm.address.valid)),c(5),d("ngIf",o.idForm.address.errors&&(o.idForm.address.dirty||o.idForm.address.touched)),c(1),d("ngClass",Oe(68,pr,o.idForm.number.valid)),c(5),d("ngIf",o.idForm.number.errors&&(o.idForm.number.dirty||o.idForm.number.touched)),c(1),d("ngClass",Oe(70,pr,o.idForm.complement.valid)),c(5),d("ngClass",Oe(72,pr,o.idForm.neighbourhood.valid)),c(5),d("ngIf",o.idForm.neighbourhood.errors&&(o.idForm.neighbourhood.dirty||o.idForm.neighbourhood.touched)),c(1),d("ngClass",Us(74,Up,o.idForm.city.valid,!o.isInternational&&o.verifyCep&&o.idForm.city.valid)),c(5),d("ngIf",o.idForm.city.errors&&(o.idForm.city.dirty||o.idForm.city.touched)),c(1),d("ngClass",Us(77,Up,o.idForm.state.valid,!o.isInternational&&o.verifyCep&&o.idForm.state.valid)),c(2),dt("",o.isInternational?"Estado ou Regi\xe3o":"Estado","*"),c(4),de(o.isInternational?"Selecione o Estado ou Regi\xe3o":"Selecione o Estado"),c(1),d("ngIf",!o.isInternational)("ngIfElse",r),c(3),d("ngIf",o.idForm.state.errors&&(o.idForm.state.dirty||o.idForm.state.touched)),c(3),d("checked",o.sameAddress),c(3),d("ngIf",!o.sameAddress),c(1),d("ngClass",Oe(80,Gp,3==o.currentPage)),c(1),d("ngIf",o.hasCustomFields),c(1),d("ngClass",Oe(82,Gp,4==o.currentPage)),c(1),d("ngClass",Oe(84,pr,o.idForm.email.valid)),c(5),d("ngIf",o.idForm.email.errors&&(o.idForm.email.dirty||o.idForm.email.touched)),c(1),d("ngClass",Oe(86,pr,o.idForm.password.valid)),c(9),d("ngIf",o.idForm.password.errors&&(o.idForm.password.dirty||o.idForm.password.touched)),c(1),d("ngIf",o.newsletterCategories&&o.newsletterCategories.length>0),c(1),d("ngIf",null!=o.company&&o.company.termToAccept),c(1),d("ngIf",null!=o.company&&o.company.statusUseTermToAcceptB2B&&o.loginB2b),c(1),d("ngIf",null!=o.company&&o.company.privacyPolicy.statusPolicyPrivacy),c(1),d("ngIf",1==o.currentPage),c(1),d("ngIf",o.currentPage>1),c(1),d("ngIf",4==o.currentPage),c(1),d("ngIf",o.currentPage<4)}}let wV=(()=>{class t{constructor(e,n,r,o,s,u,v,w,P,F){this.fb=e,this.socialNetworkService=r,this.customerService=o,this.googleRecaptcha=s,this.sharedDataCustomerCenter=u,this.detectChanges=v,this.companyService=w,this.customerCustomService=P,this.sharedDataCommomService=F,this.company=null,this.currentPage=1,this.sameAddress=!0,this.showPolicy=!1,this.verifyCep=!0,this.showTerms=!1,this.customRegister=!1,this.loginB2b=!1,this.lstCustomFields=[],this.hasCustomFields=!1,this.dynamicFields={},this.dynamicFieldsStep=0,this.customerType="fisica",this.isInternationalNavigation=!1,this.isInternational=!1,this.countryId=1,this.countries=[],this.states=[],this.statesBilling=[],this.commomService=n}ngOnInit(){this.commomService.showLoadingByClass("jet-customer-register"),this.internationalSubs$=this.sharedDataCommomService.international$.subscribe(e=>{if(e){this.isInternationalNavigation=e.isInternational&&e.country?.id>1,this.isInternational=e.country?.id>1,this.countryId=e.country?.id,this.isInternational&&(this.getCountries(),this.get
3States(this.countryId)),this.commomService.getQueryVar("b2b")&&(this.loginB2b=!0);let n="",r="",o="";sessionStorage.getItem("email")&&(n=sessionStorage.getItem("email"),this.hasEmail=!0,this.show=!0),sessionStorage.getItem("name")&&(r=sessionStorage.getItem("name"),r&&(this.hasName=!0,this.show=!0)),sessionStorage.getItem("cpfCnpj")&&!this.isInternationalNavigation?(o=sessionStorage.getItem("cpfCnpj"),this.commomService.validCPF(o)?(o=this.commomService.formatCpf(o),this.hasCpfCnpj=!0):this.commomService.validCNPJ(o)&&(o=this.commomService.formatCnpj(o),this.hasCpfCnpj=!0,this.customerType="juridica")):this.commomService.getQueryVar("b2b")&&(this.customerType="juridica"),this.registerForm=this.fb.group({email:[n,[oe.required,oe.pattern(/^(([^<>()[\]\\.,;:\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,}))$/)]],name:[r,[oe.required,oe.minLength(3),oe.pattern(/^[A-z\xc0-\xff'][A-z\xc0-\xff']+\s([A-z\xc0-\xff']\s?)*[A-z\xc0-\xff'][A-z\xc0-\xff'](\s?)+$/)]],password:["",[oe.required,oe.minLength(3)]],cpf:[o],cnpj:[o],dateOfBirth:[""],phone1:["",[oe.required]],cep:["",[oe.required]],address:["",[oe.required]],number:["",[oe.required,oe.pattern(/.*\S.*/)]],complement:[""],neighbourhood:["",[oe.required,oe.pattern(/.*\S.*/)]],city:[{value:"",disabled:this.countryId<=1},[oe.required,oe.minLength(1)]],state:[{value:"",disabled:this.countryId<=1},[oe.required,oe.minLength(1)]],flagAcceptTerm:[!1],flagAcceptTermB2B:[!1],flagPrivacyPolicy:[!1],rg_ie:[""],contact:["",[oe.required,oe.pattern(/^[A-z\xc0-\xff'][A-z\xc0-\xff']+\s([A-z\xc0-\xff']\s?)*[A-z\xc0-\xff'][A-z\xc0-\xff'](\s?)+$/)]],fantasyName:["",[oe.required]],billingCep:["",[oe.required,oe.minLength(this.isInternational?3:9)]],billingAddress:["",[oe.required]],billingNumber:["",[oe.required,oe.pattern(/.*\S.*/)]],billingComplement:[""],billingNeighbourhood:["",[oe.required,oe.pattern(/.*\S.*/)]],billingCity:[{value:"",disabled:this.countryId<=1},[oe.required,oe.minLength(1)]],billingState:[{value:"",disabled:this.countryId<=1},[oe.required,oe.minLength(1)]],country:[""],countryId:[this.countryId],stateName:[""],stateId:[""]}),this.customerService.getNewsletter().subscribe(s=>{this.newsletterCategories=s,this.newsletterCategories.forEach(u=>{u.checked=!1})}),this.companySubs$=this.sharedDataCustomerCenter.currentCompany$.subscribe(s=>{null!=s&&(this.company=s,s.privacyPolicy.statusPolicyPrivacy&&this.idForm.flagPrivacyPolicy.setValidators([oe.requiredTrue]),s.termToAccept&&this.idForm.flagAcceptTerm.setValidators([oe.requiredTrue]),s.statusUseTermToAcceptB2B&&this.loginB2b&&this.idForm.flagAcceptTermB2B.setValidators([oe.requiredTrue]))},s=>{}),this.getCustomFields(),"juridica"==this.customerType&&(this.addJuridicFieldToForm(),this.getCnpjCompany()),this.commomService.finishLoadComponent("onJetFormRegisterLoaded")}}),document.addEventListener("onCustomRegisterEnd",e=>{this.customRegister=!0}),document.addEventListener("onJetFormRegisterInsert",e=>{e.detail?.value&&(this.dynamicFieldsStep=e.detail?.step??0,this.insertFormFields(e.detail.value))})}applyCountryValidators(e=!0){e&&Object.keys(this.idForm).forEach(r=>{"name"!==r&&"email"!==r&&"countryId"!==r&&this.idForm[r]?.reset("")});const n=this.isInternational?{cpf:3,cnpj:3,phone1:6,cep:3}:{cpf:11,cnpj:14,phone1:14,cep:9};Object.keys(n).forEach(r=>{this.setFieldValidator(r,n[r])}),this.isInternational?(this.idForm.city.enable(),this.idForm.state.enable(),this.idForm.countryId.setValue(this.countryId)):(this.idForm.city.disable(),this.idForm.state.disable()),this.idForm.flagAcceptTerm.setValue(!1),this.idForm.flagPrivacyPolicy.setValue(!1),this.idForm.flagAcceptTermB2B.setValue(!1)}setFieldValidator(e,n){const r=this.idForm[e];r.setValidators([oe.required,oe.minLength(n)]),r.updateValueAndValidity()}cleanBillingAddressFields(){["billingCep","billingNumber","billingComplement","billingNeighbourhood","billingCity","billingState"].forEach(e=>{this.idForm[e]&&this.registerForm.removeControl(e)})}addBillingAddressFieldToForm(){const e={billingCep:["",[oe.required,oe.minLength(this.isInternational?3:9)]],billingAddress:["",[oe.required,oe.pattern(/.*\S.*/)]],billingNumber:["",[oe.required,oe.pattern(/.*\S.*/)]],billingComplement:[""],billingNeighbourhood:["",[oe.required,oe.pattern(/.*\S.*/)]],billingCity:[{value:"",disabled:this.countryId<=1},[oe.required,oe.minLength(1)]],billingState:[{value:"",disabled:this.countryId<=1},[oe.required,oe.minLength(1)]]};Object.keys(e).forEach(n=>{if(!this.idForm[n]){const[r,o]=e[n];this.registerForm.addControl(n,this.fb.control(r,o||[]))}})}clearJuridicFields(){["rg_ie","contact","fantasyName"].forEach(e
3=>{this.idForm[e]&&this.registerForm.removeControl(e)})}addJuridicFieldToForm(){this.idForm.rg_ie||this.registerForm.addControl("rg_ie",this.fb.control("")),this.idForm.contact||(this.registerForm.addControl("contact",this.fb.control("")),this.idForm.contact.setValidators([oe.required,oe.pattern(/^[A-z\xc0-\xff'][A-z\xc0-\xff']+\s([A-z\xc0-\xff']\s?)*[A-z\xc0-\xff'][A-z\xc0-\xff'](\s?)+$/)])),this.idForm.fantasyName||(this.registerForm.addControl("fantasyName",this.fb.control("")),this.idForm.fantasyName.setValidators([oe.required]))}insertFormFields(e){const n=[];Object.keys(e).forEach(r=>{if(!this.registerForm.contains(r)){this.dynamicFields[r]=e[r],n.push(r);const o=e[r],s=[];o.required&&s.push(oe.required),o.minLength&&s.push(oe.minLength(o.minLength)),o.maxLength&&s.push(oe.maxLength(o.maxLength)),o.pattern&&s.push(oe.pattern(o.pattern)),this.registerForm.addControl(r,this.fb.control("",s))}}),this.exposeDynamicFields(n)}exposeDynamicFields(e){window.dynamicFieldList||(window.dynamicFieldList=[]),window.dynamicFieldList.push(...e),this.listenToDynamicFieldChanges()}listenToDynamicFieldChanges(){document.addEventListener("onJetDynamicFieldChange",e=>{const{field:n,value:r}=e.detail;this.dynamicFields[n]&&this.registerForm.controls[n]&&(this.registerForm.controls[n].setValue(r),this.registerForm.controls[n].markAsDirty(),this.registerForm.controls[n].updateValueAndValidity())}),this.commomService.finishLoadComponent("onJetCustomerRegisterDynamicLoaded")}validateDynamicFields(e){if(this.dynamicFieldsStep===e){const n={};if(Object.keys(this.dynamicFields).forEach(r=>{const o=this.registerForm.controls[r];o.markAsDirty(),o.errors&&(n[r]=o.errors)}),Object.keys(n).length>0)return this.commomService.finishLoadComponent("onJetDynamicValidationError",{detail:n}),!1}return!0}ngOnDestroy(){this.registerSubs$.unsubscribe(),this.registerSocialSubs$.unsubscribe(),this.companySubs$.unsubscribe()}get idForm(){return this.registerForm?.controls}cleanCookies(e=!1,n=!1){sessionStorage.removeItem("email"),sessionStorage.removeItem("name"),sessionStorage.removeItem("cpfCnpj"),n?this.customerService.logout().subscribe(r=>{window.location.href="/"}):(!this.customRegister||e)&&(window.location.href="/customer")}maskCpfCnpj(){if(this.commomService.stripCnpj(this.idForm.cpfCnpj.value).length>11)var e=this.commomService.formatCnpj(this.idForm.cpfCnpj.value);else e=this.commomService.formatCpf(this.idForm.cpfCnpj.value);this.idForm.cpfCnpj.setValue(e)}maskCpf(){if(""!=this.idForm.cpf.value){var e=this.commomService.formatCpf(this.idForm.cpf.value);this.idForm.cpf.setValue(e)}}maskCnpj(){var e=this.commomService.formatCnpj(this.idForm.cnpj.value);this.idForm.cnpj.setValue(e)}maskCEP(e){this.idForm[e].setValue(this.commomService.cepMask(this.idForm[e].value))}maskPhone(e){let n=this.idForm[e].value;if(this.isInternational){if(!n)return;n.replace(/\D/g,"").length<6&&this.idForm[e].setErrors({incorrect:!0})}else this.idForm[e].setValue(this.commomService.phoneNumberMask(n))}maskBirthDate(e){this.idForm.dateOfBirth.setValue(this.commomService.birthDateMask(e,this.isInternational))}checkBirthDate(e){""!=e&&this.commomService.dateMaxValid(e,this.idForm.dateOfBirth,this.isInternational)}buscaCep(e=null){"billing"==e?this.customerService.buscaCep(this.commomService.cepUnMask(this.idForm.billingCep.value)).subscribe(n=>{null!=n?(this.idForm.billingAddress.setValue(n.streetAddress),this.idForm.billingNeighbourhood.setValue(n.neighbourhood),this.idForm.billingCity.setValue(n.city),this.idForm.billingState.setValue(n.state),document.querySelector('[formcontrolname="billingNumber"]')?.focus(),this.verifyCep=!0):(this.idForm.billingAddress.setValue(""),this.idForm.billingNeighbourhood.setValue(""),this.idForm.billingCity.setValue(""),this.idForm.billingState.setValue(""),this.verifyCep=!1)},n=>{this.idForm.billingAddress.setValue(""),this.idForm.billingNeighbourhood.setValue(""),this.idForm.billingCity.setValue(""),this.idForm.billingState.setValue(""),this.verifyCep=!1}):this.customerService.buscaCep(this.commomService.cepUnMask(this.idForm.cep.value)).subscribe(n=>{null!=n?(this.idForm.address.setValue(n.streetAddress),this.idForm.neighbourhood.setValue(n.neighbourhood),this.idForm.city.setValue(n.city),this.idForm.state.setValue(n.state),document.querySelector('[formcontrolname="number"]')?.focus(),this.verifyCep=!0):(this.idForm.address.setValue(""),this.idForm.neighbourhood.setValue(""),this.idForm.city.setValue(""),this.idForm.state.setValue(""),this.verifyCep=!1)},n=>{this.idForm.address.setValue(""),this.idForm.neighbourhood.setValue(""),this.idForm.city.setValue(""),this.idForm.state.setValue(""),this.verifyCep=!1})}sendRegister(){this.nextValidade(this.currentPage)&&(this.commomService.showLoadingByClass("jet-customer-register"),this.commomService.getValidSession(!1).subscribe(e=>{""!=this.idForm.dateOfBirth.value&&(this.tratedBirth=this.isInternational?this.idForm.dateOfBirth.value.toString().replaceAll("/","-"):this.idForm.dateOfBirth.value.toString().replace(/^(\d{2})\/(\d{2})\/(\d{4})/,"$3-$2-$1")),this.googleRecaptcha.sendRecaptcha("Register","Register").subscribe(n=>{var r={email:this.idForm.email.value,password:this.idForm.password.value,user:{userName:this.idForm.email.value},cpf_cnpj:this.isInternational?this.idForm.cnpj.value:"juridica"==this.customerType?this.commomService.stripCnpj(this.idForm.cnpj.value):this.commomService.stripCpf(this.idForm.cpf.value),name:this.idForm.name.value,dateBirth:"fisica"==this.customerType?this.tratedBirth:null,phone:{phone1:this.idForm.phone1.value},address:[{identification:this.idForm.name.value,zipCode:this.idForm.cep.value,streetAddress:this.idForm.address.value,
3number:this.idForm.number.value.toString(),complement:this.idForm.complement.value,neighbourhood:this.idForm.neighbourhood.value,city:this.idForm.city.value,state:this.idForm.state.value.trim(),addressType:1,default:!0,billing:!!this.sameAddress,country:this.isInternational?this.filterCountry(this.idForm.countryId.value).name:"Brasil",countryId:this.isInternational?this.filterCountry(this.idForm.countryId.value).id:1,stateName:this.isInternational?this.filterState(this.idForm.state.value.trim()).name:"",stateId:this.isInternational?this.filterState(this.idForm.state.value.trim()).idCountryState:0}],termAccepted:this.idForm.flagAcceptTerm.value,termAcceptedB2B:this.idForm.flagAcceptTermB2B.value,policyPrivacyData:{resolution:window.innerWidth+"x"+window.innerHeight,version:this.company.privacyPolicy.policyPrivacyVersion},typeCustomer:"juridica"==this.customerType?1:0,emailInfoCategory:[],customFields:[],rg_ie:"juridica"==this.customerType?this.idForm.rg_ie.value:"",fantasyName:"juridica"==this.customerType?this.idForm.fantasyName.value:"",contact:"juridica"==this.customerType?this.idForm.contact.value:"",sellerHash:sessionStorage.getItem("seller_utm")??void 0,tokenRecaptcha:n};const o=window.jetStoreCustom?.state;o?.idTablePrice&&(r.idTablePrice=o.idTablePrice),o?.mainAddressExternalId&&r.address?.[0]&&(r.address[0].externalId=o.mainAddressExternalId),this.newsletterCategories?.filter(s=>s.checked).forEach(s=>{r.emailInfoCategory.push(s)}),this.sameAddress||r.address.push({identification:this.idForm.name.value,zipCode:this.idForm.billingCep.value,streetAddress:this.idForm.billingAddress.value,number:this.idForm.billingNumber.value.toString(),complement:this.idForm.billingComplement.value,neighbourhood:this.idForm.billingNeighbourhood.value,city:this.idForm.billingCity.value,state:this.isInternational?this.filterState(this.idForm.billingState.value.trim(),!0).code:this.idForm.billingState.value.trim(),addressType:0,default:!1,billing:!0,country:this.isInternational?this.filterCountry(this.idForm.countryId.value).name:"Brasil",countryId:this.isInternational?this.filterCountry(this.idForm.countryId.value).id:1,stateName:this.isInternational?this.filterState(this.idForm.billingState.value.trim(),!0).name:"",stateId:this.isInternational?this.filterState(this.idForm.billingState.value.trim(),!0).idCountryState:0}),this.lstCustomFields.forEach(s=>{if(this.idForm[s._id]){let u={_id:s._id,value:this.idForm[s._id].value,type:s.type};this.idForm["file_"+s._id]&&(u.file=this.idForm["file_"+s._id].value),r.customFields.push(u)}}),sessionStorage.setItem("emailGTM",this.idForm.email.value),this.registerSubs$=this.customerService.register(r).subscribe(s=>{let u=s,v=null!=sessionStorage.getItem("isLoginSocial")&&null!=sessionStorage.getItem("isLoginSocial")&&"true"==sessionStorage.getItem("isLoginSocial");const w=()=>{this.commomService.finishLoadComponent("onJetCustomerRegisterLoaded",{detail:{value:r,id_customer:u.idCustomer}}),this.commomService.hideLoadingByClass("jet-customer-register");let F=!1;0==this.company.allowPJB2C&&1==r.typeCustomer?(F=!0,this.commomService.displayMessageUser("success","Cadastro realizado com sucesso. Seu cadastro foi recebido e est\xe1 em processo de an\xe1lise. Assim que sua conta estiver liberada, voc\xea ser\xe1 notificado por e-mail.")):this.commomService.displayMessageUser("success","Cadastro realizado com sucesso"),this.customRegister||setTimeout(()=>{this.cleanCookies(!0,F)},3e3)},P=()=>{if(Object.keys(this.dynamicFields).length>0){const F=Object.keys(this.dynamicFields).reduce((R,V)=>(R[V]=this.idForm[V]?.value,R),{});this.customerService.updateCustomerAdditionalFields(F).subscribe(()=>w(),()=>w())}else w()};if(v){let F=this.montaJsonLoginSocial(u.idCustomer);this.registerSocialSubs$=this.socialNetworkService.registerSocialLogin(F).subscribe(R=>{sessionStorage.setItem("isLoginSocial","false"),this.commomService.finishLoadComponent("onJetCustomerRegisterSocialFinished"),P()},R=>{this.commomService.hideLoadingByClass("jet-customer-register"),this.commomService.displayMessageUser("error",R.error.error)})}else P();r.emailInfoCategory.length>0&&this.commomService.finishLoadComponent("onJetPushDataLayerEvent",{detail:{type:"sign_up",params:{method:"Newsletter",email:r.email,name:r.name,phone:r.phone.phone1}}})},s=>{this.commomService.hideLoadingByClass("jet-customer-register"),this.commomService.displayMessageUser("error",s.error.error)})})},e=>{this.commomService.hideLoadingByClass("jet-customer-register"),this.commomService.displayMessageUser("error",e.error.error)}))}montaJsonLoginSocial(e){let n=sessionStorage.getItem("appName");return n=n[0].toUpperCase()+n.substr(1),{idCustomer:e,appId:sessionStorage.getItem("appId"),appName:n,nameCustomer:this.idForm.name.value,emailCustomer:this.idForm.email.value}}changeTab(e,n=!1){3==e&&!this.hasCustomFields&&!n&&e++,3==e&&!this.hasCustomFields&&n&&e--,(this.nextValidade(this.currentPage)||n||e<this.currentPage)&&(this.currentPage=e,this.commomService.finishLoadComponent("onJetFormRegisterTabChanged",{detail:{value:this.currentPage}}))}nextValidade(e){let n=!0;switch(e){case 1:if(this.idForm.name.markAsDirty(),this.idForm.phone1.markAsDirty(),this.idForm.dateOfBirth.markAsDirty(),this.isInternational&&this.idForm.country.markAsDirty(),n=this.validateDynamicFields(e),!n)return!1;let s="fisica"===this.customerType,u=this.isInternational||!s?"cnpj":"cpf",v=this.idForm[u].value;this.idForm[u].markAsDirty(),s||(this.idForm.contact.markAsDirty(),this.idForm.fantasyName.markAsDirty()),this.isInternational||!s?this.idForm.cnpj.markAsDirty():this.idForm.cpf.markAsDirty();let w=this.isInternational?!!v:"cpf"===u?this.commomService.validCPF(v):this.commomService.validCNPJ(v);if(this.idForm.name.valid&&this.idForm.phone1.valid&&(s||this.idForm.contact.valid&&this.idForm.fantasyName.valid)&&w)return!0;
3if(!w)return this.idForm[u].setErrors({invalid:!0}),!1;break;case 2:this.idForm.cep.markAsDirty(),this.idForm.address.markAsDirty(),this.idForm.number.markAsDirty(),this.idForm.neighbourhood.markAsDirty(),this.idForm.city.markAsDirty(),this.idForm.state.markAsDirty();const R=!(!this.idForm.city.value||!this.idForm.city.value.toString().trim()),V=!(!this.idForm.state.value||!this.idForm.state.value.toString().trim());if(!this.sameAddress){this.idForm.billingCep.markAsDirty(),this.idForm.billingAddress.markAsDirty(),this.idForm.billingNumber.markAsDirty(),this.idForm.billingNeighbourhood.markAsDirty(),this.idForm.billingCity.markAsDirty(),this.idForm.billingState.markAsDirty();var r=!(!this.idForm.billingCity.value||!this.idForm.billingCity.value.toString().trim()),o=!(!this.idForm.billingState.value||!this.idForm.billingState.value.toString().trim())}return this.sameAddress?!!(this.idForm.cep.valid&&this.idForm.address.valid&&this.idForm.number.valid&&this.idForm.neighbourhood.valid&&R&&V):!!(this.idForm.cep.valid&&this.idForm.address.valid&&this.idForm.number.valid&&this.idForm.neighbourhood.valid&&this.idForm.billingCep.valid&&this.idForm.billingAddress.valid&&this.idForm.billingNumber.valid&&this.idForm.billingNeighbourhood.valid&&R&&V&&r&&o);case 3:let ne=!0;for(let ke=0;ke<this.lstCustomFields.length;ke++){const je=this.lstCustomFields[ke];je&&this.idForm[je._id]&&(this.idForm[je._id].markAsTouched(),this.idForm[je._id]?.valid||(ne=!1))}return ne;case 4:return this.idForm.email.markAsDirty(),this.idForm.password.markAsDirty(),this.idForm.flagPrivacyPolicy.markAsDirty(),this.idForm.flagAcceptTerm.markAsDirty(),this.idForm.flagAcceptTermB2B.markAsDirty(),!!(this.commomService.validEmail(this.idForm.email.value)&&this.idForm.password.valid&&this.idForm.flagAcceptTerm.valid&&this.idForm.flagPrivacyPolicy.valid&&this.idForm.flagAcceptTermB2B.valid)}}showHiddenPass(e){"password"==document.getElementById(e).type?(document.getElementById(e).type="text",document.getElementsByClassName("pass-show")[0].classList.remove("active"),document.getElementsByClassName("pass-hidden")[0].classList.add("active")):(document.getElementById(e).type="password",document.getElementsByClassName("pass-hidden")[0].classList.remove("active"),document.getElementsByClassName("pass-show")[0].classList.add("active"))}changeValidators(){Object.keys(this.idForm).forEach(o=>{this.idForm[o].markAsPristine()});let e=this.lstCustomFields.filter(o=>0==o.profile),n=this.lstCustomFields.filter(o=>1==o.profile),r=this.lstCustomFields.filter(o=>2==o.profile);this.customerCustomService.resetControlOfCustomFields(this.registerForm,this.lstCustomFields),this.customerCustomService.createControlOfCustomFields(this.registerForm,this.fb,e),"fisica"==this.customerType?(this.idForm.name.setValidators([oe.required,oe.minLength(3),oe.pattern(/^[A-z\xc0-\xff'][A-z\xc0-\xff']+\s([A-z\xc0-\xff']\s?)*[A-z\xc0-\xff'][A-z\xc0-\xff'](\s?)+$/)]),this.customerCustomService.createControlOfCustomFields(this.registerForm,this.fb,n)):"juridica"==this.customerType&&(this.idForm.name.setValidators([oe.required]),this.customerCustomService.createControlOfCustomFields(this.registerForm,this.fb,r)),this.commomService.finishLoadComponent("onJetFormProfileChanged",{detail:{value:this.customerType}}),e&&0==e.length?"fisica"==this.customerType?this.hasCustomFields=n&&n.length>0:"juridica"==this.customerType&&(this.hasCustomFields=r&&r.length>0):this.hasCustomFields=e&&e.length>0}ngAfterViewChecked(){this.detectChanges.detectChanges()}getCnpjCompany(){let e=this.idForm.cnpj.value;null==e||null==e||""==e||(this.commomService.finishLoadComponent("onCnpjChanged",{detail:{value:e.replaceAll(".","").replaceAll("-","").replaceAll("/","")}}),this.commomService.showLoadingByClass("jet-customer-register"),this.companyService.getCompany().subscribe(n=>{n&&n.cnpjws&&1==n.cnpjws.status?(e=e.replaceAll(".","").replaceAll("-","").replaceAll("/",""),this.customerService.getCnpjCompany(e).subscribe(r=>{if(r&&1==r.status){let o="",s="",u="",v="";r.company.estabelecimento.inscricoes_estaduais.length>0&&(null!=r.company.estabelecimento.inscricoes_estaduais[0].inscricao_estadual||null!=r.company.estabelecimento.inscricoes_estaduais[0].inscricao_estadual)&&(o=r.company.estabelecimento.inscricoes_estaduais[0].inscricao_estadual),(null!=r.company.estabelecimento.complemento||null!=r.company.estabelecimento.complemento)&&(s=r.company.estabelecimento.complemento),r.company.socios.length>0&&(null!=r.company.socios[0].nome||null!=r.company.socios[0].nome)&&(u=r.company.socios[0].nome),(null!=r.company.estabelecimento.ddd1||null!=r.company.estabelecimento.ddd1)&&(null!=r.company.estabelecimento.telefone1||null!=r.company.estabelecimento.telefone1)&&(v=(r.company.estabelecimento.ddd1+r.company.estabelecimento.telefone1).toString()),this.registerForm.patchValue({rg_ie:o,phone1:v,name:r.company.razao_social,fantasyName:r.company.estabelecimento.nome_fantasia,contact:u,cep:r.company.estabelecimento.cep,address:r.company.estabelecimento.tipo_logradouro+" "+r.company.estabelecimento.logradouro,number:r.company.estabelecimento.numero,complement:s,neighbourhood:r.company.estabelecimento.bairro,city:r.company.estabelecimento.cidade.nome,state:r.company.estabelecimento.estado.sigla}),this.maskPhone("phone1"),this.maskCEP("cep"),this.registerForm.controls.rg_ie.markAsTouched(),this.registerForm.controls.phone1.markAsTouched(),this.registerForm.controls.name.markAsTouched(),this.registerForm.controls.fantasyName.markAsTouched(),this.registerForm.controls.contact.markAsTouched(),this.registerForm.controls.cep.markAsTouched(),this.registerForm.controls.address.markAsTouched(),this.registerForm.controls.number.markAsTouched(),this.registerForm.controls.complement.markAsTouched(),this.registerForm.controls.neighbourhood.markAsTouched(),this.registerForm.controls.city.markAsTouched(),this.registerForm.controls.state.markAsTouched()}this.commomService.hideLoadingByClass("jet-customer-register")},r=>{this.commomService.hideLoadingByClass("jet-customer-register")})):this.commomService.hideLoadingByClass("jet-customer-register")},n=>{this.commomService.hideLoadingByClass("jet-customer-register")}))}blurCPFCNPJEvents(){this.changeValidators(),"juridica"==this.customerType?(this.addJuridicFieldToForm(),this.isInternational||this.getCnpjCompany()):this.clearJuridicFields()}getCustomFields(){this.customerCustomService.getCustomFields().subscribe(e=>{e&&e.length>0?(this.lstCustomFields=e,this.changeValidators()):this.changeValidators(),this.commomService.hideLoadingByClass("jet-customer-register")},e=>{this.commomService.hideLoadingByClass("jet-customer-register")})}onProfileChange(e){this.customerType=e.target.value,this.sameAddress=!0,this.blurCPFCNPJEvents()}getCountries(){this.commomService.getCountries().subscribe(e=>{this.countries=e})}changeCountry(e){if(e<=1||1==this.countryId&&1!=e)return this.commomService.displayMessageUser("info","Os campos ser\xe3o apagados, pois voc\xea est\xe1 selecionando um pa\xeds com outros requisitos de preenchimento.","Deseja continuar?",!1),document.addEventListener("onJetConfirm",()=>{this.isInternational=e>1,this.countryId=e,this.verifyCep=!0,this.sameAddress=!0,this.applyCountryValidators(),this.get
3States(e)},{passive:!0}),void document.addEventListener("onJetCancel",()=>{document.querySelector('select[formControlName="countryId"]').value=this.countryId.toString()},{passive:!0});this.isInternational=e>1,this.countryId=e,this.getStates(e)}getStates(e){this.commomService.getCountryStates(e).subscribe(n=>{n&&(this.states=n,this.idForm.state.setValue(""),this.statesBilling=n,this.idForm.billingState?.setValue(""),this.countryId=e)})}filterCountry(e){return this.countries.find(n=>n.id==e)}filterState(e,n=!1){return n?this.statesBilling.find(r=>r.code==e):this.states.find(r=>r.code==e)}static#e=this.\u0275fac=function(n){return new(n||t)($(ao),$(qt),$(qh),$(Ci),$(xd),$(Bu),$(Gl),$(Qo),$(dv),$(yn))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-customer-register"]],decls:10,vars:8,consts:[[1,"jet-customer-register"],[1,"tab-menu"],[1,"item",3,"click"],["class","item",3,"active","click",4,"ngIf"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"formGroup","ngSubmit"],[1,"container-form"],[1,"tab-item",3,"ngClass"],["class","container-field country",4,"ngIf"],[1,"container-field","profile"],["for","profile"],["name","profile",3,"change"],["value","fisica",3,"selected"],["value","juridica",3,"selected"],["class","container-field name",3,"ngClass",4,"ngIf"],[4,"ngIf","ngIfElse"],["documentInternational",""],["class","container-field birth-date",3,"ngClass",4,"ngIf"],["documentCompany",""],["class","container-field ie",3,"ngClass",4,"ngIf"],[1,"container-field","phone",3,"ngClass"],["for","phone1"],["formControlName","phone1","autocomplete","off",3,"placeholder","keyup","blur","paste"],["phone1",""],["class","invalid-feedback",4,"ngIf"],["class","container-field social-name",3,"ngClass",4,"ngIf"],["class","container-field fantasy-name",3,"ngClass",4,"ngIf"],["class","container-field",3,"ngClass",4,"ngIf"],[1,"default-address"],[1,"container-field","cep",3,"ngClass"],["for","cep"],["formControlName","cep","autocomplete","off",3,"placeholder","keyup","blur","paste"],["cep",""],["class","container-field cep-find",4,"ngIf"],[1,"container-field","address",3,"ngClass"],["for","address"],["placeholder","Endere\xe7o","formControlName","address","autocomplete","off"],["address",""],[1,"container-field","number",3,"ngClass"],["for","number"],["placeholder","N\xfamero","formControlName","number","autocomplete","off","type","text"],["number",""],[1,"container-field","complement",3,"ngClass"],["for","complement"],["placeholder","Complemento","formControlName","complement","autocomplete","off"],["complement",""],[1,"container-field","neighbourhood",3,"ngClass"],["for","bairro"],["placeholder","Bairro","formControlName","neighbourhood","autocomplete","off"],["neighbourhood",""],[1,"container-field","city",3,"ngClass"],["for","cidade"],["placeholder","Cidade","formControlName","city","autocomplete","off"],["city",""],[1,"container-field","state",3,"ngClass"],["for","estado"],["placeholder","Estado","formControlName","state","autocomplete","off"],["state",""],["value","","selected",""],["stateInternational",""],[1,"container-field"],[1,"news-categories"],["type","checkbox","id","sameAddressInput",3,"checked","change"],["for","sameAddressInput"],["class","billing-address",4,"ngIf"],[4,"ngIf"],[1,"container-field","email",3,"ngClass"],["for","name"],["placeholder","Email","formControlName","email"],["email",""],[1,"container-field",3,"ngClass"],["for","password"],["type","password","placeholder","Senha","formControlName","password","id","password"],["password",""],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 576 512",1,"pass-change","pass-show","active",3,"click"],["fill","currentColor","d","M288 144a110.94 110.94 0 0 0-31.24 5 55.4 55.4 0 0 1 7.24 27 56 56 0 0 1-56 56 55.4 55.4 0 0 1-27-7.24A111.71 111.71 0 1 0 288 144zm284.52 97.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400c-98.65 0-189.09-55-237.93-144C98.91 167 189.34 112 288 112s189.09 55 237.93 144C477.1 345 386.66 400 288 400z",1,""],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512",1,"pass-change","pass-hidden",3,"click"],["fill","currentColor","d","M637 485.25L23 1.75A8 8 0 0 0 11.76 3l-10 12.51A8 8 0 0 0 3 26.75l614 483.5a8 8 0 0 0 11.25-1.25l10-12.51a8 8 0 0 0-1.25-11.24zM320 96a128.14 128.14 0 0 1 128 128c0 21.62-5.9 41.69-15.4 59.57l25.45 20C471.
365 280.09 480 253.14 480 224c0-36.83-12.91-70.31-33.78-97.33A294.88 294.88 0 0 1 576.05 256a299.73 299.73 0 0 1-67.77 87.16l25.32 19.94c28.47-26.28 52.87-57.26 70.93-92.51a32.35 32.35 0 0 0 0-29.19C550.3 135.59 442.94 64 320 64a311.23 311.23 0 0 0-130.12 28.43l45.77 36C258.24 108.52 287.56 96 320 96zm60.86 146.83A63.15 63.15 0 0 0 320 160c-1 0-1.89.24-2.85.29a45.11 45.11 0 0 1-.24 32.19zm-217.62-49.16A154.29 154.29 0 0 0 160 224a159.39 159.39 0 0 0 226.27 145.29L356.69 346c-11.7 3.53-23.85 6-36.68 6A128.15 128.15 0 0 1 192 224c0-2.44.59-4.72.72-7.12zM320 416c-107.36 0-205.47-61.31-256-160 17.43-34 41.09-62.72 68.31-86.72l-25.86-20.37c-28.48 26.28-52.87 57.25-70.93 92.5a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448a311.25 311.25 0 0 0 130.12-28.43l-29.25-23C389.06 408.84 355.15 416 320 416z",1,""],["class","container-field",4,"ngIf"],["class","container-field flagAcceptTerm",3,"ngClass",4,"ngIf"],["class","container-field flagPrivacyPolicy",3,"ngClass",4,"ngIf"],["class","btn-cancel","type","button",3,"click",4,"ngIf"],["class","btn-next","type","submit","id","btn-register",4,"ngIf"],["class","btn-next","type","button","id","btn-next","id","btn-register",3,"click",4,"ngIf"],[1,"container-field","country"],["for","country"],["formControlName","countryId","id","countryId",3,"change"],["value",""],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"invalid-feedback"],[1,"container-field","name",3,"ngClass"],["placeholder","Nome Completo","formControlName","name","maxlength","50"],["name",""],["class","container-field cpf-cnpj",3,"ngClass",4,"ngIf"],[1,"container-field","cpf-cnpj",3,"ngClass"],["for","cpf"],["placeholder","CPF","formControlName","cpf","maxlength","14",3,"keyup"],[1,"notranslate"],["for","cnpj"],["placeholder","Document","formControlName","cnpj","maxlength","18","minlength","3"],[1,"container-field","birth-date",3,"ngClass"],["for","dateOfBirth"],["formControlName","dateOfBirth","type","tel","maxlength","10",3,"placeholder","keyup","blur"],["dateOfBirth",""],["placeholder","CNPJ","formControlName","cnpj","maxlength","18",3,"keyup","blur"],[1,"container-field","ie",3,"ngClass"],["for","rg_ie"],["placeholder","Inscri\xe7\xe3o Estadual","formControlName","rg_ie"],["rg_ie",""],[1,"container-field","social-name",3,"ngClass"],["placeholder","Raz\xe3o Social da Empresa","formControlName","name"],[1,"container-field","fantasy-name",3,"ngClass"],["formControlName","fantasyName",3,"placeholder"],["fantasyName",""],["for","contact"],["placeholder","Respons\xe1vel pela Empresa","formControlName","contact","maxlength","50"],["contact",""],[1,"container-field","cep-find"],["href","http://www.buscacep.correios.com.br/sistemas/buscacep/","target","_blank"],["value","AC"],["value","AL"],["value","AP"],["value","AM"],["value","BA"],["value","CE"],["value","DF"],["value","ES"],["value","GO"],["value","MA"],["value","MT"],["value","MS"],["value","MG"],["value","PA"],["value","PB"],["value","PR"],["value","PE"],["value","PI"],["value","RJ"],["value","RN"],["value","RS"],["value","RO"],["value","RR"],["value","SC"],["value","SP"],["value","SE"],["value","TO"],[1,"billing-address"],[1,"news-title"],["formControlName","billingCep","autocomplete","off","maxlength","9",3,"placeholder","keyup","blur"],["billingCep",""],["placeholder","Endere\xe7o","formControlName","billingAddress","autocomplete","off"],["billingAddress",""],["placeholder","N\xfamero","formControlName","billingNumber","autocomplete","off","type","text"],["billingNumber",""],["placeholder","Complemento","formControlName","billingComplement","autocomplete","off"],["billingComplement",""],["placeholder","Bairro","formControlName","billingNeighbourhood","autocomplete","off"],["billingNeighbourhood",""],["placeholder","Cidade","formControlName","billingCity","autocomplete","off"],["billingCity",""],["placeholder","Estado","formControlName","billingState","autocomplete","off"],["billingState",""],["stateBillingInternational",""],[3,"fields","externalForm"],["class","news-categories",4,"ngFor","ngForOf"],["type","checkbox",3,"id","checked","change"],[3,"for"],[1,"container-field","flagAcceptTerm",3,"ngClass"],[1,"flagAcceptTerm"],["type","checkbox","formControlName","flagAcceptTerm","id","flagAcceptTerm"],["flagAcceptTerm",""],["for","flagAcceptTerm"],[3,"click"],[1,"jet-modal","modal
3-terms",3,"ngClass"],[1,"jet-modal-content","modal-content"],[3,"innerHtml"],[1,"jet-modal-actions"],["type","button",1,"ui","button","large","btn-cancel","modal-close",3,"click"],["type","checkbox","formControlName","flagAcceptTermB2B","id","flagAcceptTermB2B"],["flagAcceptTermB2B",""],["for","flagAcceptTermB2B"],[1,"container-field","flagPrivacyPolicy",3,"ngClass"],[1,"flagPrivacyPolicy"],["type","checkbox","formControlName","flagPrivacyPolicy","id","flagPrivacyPolicy"],["flagPrivacyPolicy",""],["for","flagPrivacyPolicy"],[1,"jet-modal","modal-policy",3,"ngClass"],["type","button",1,"btn-cancel",3,"click"],["type","submit","id","btn-register",1,"btn-next"],["type","button","id","btn-next","id","btn-register",1,"btn-next",3,"click"]],template:function(n,r){1&n&&(a(0,"div",0)(1,"div",1)(2,"span",2),J("click",function(){return r.changeTab(1)}),h(3,"Informa\xe7\xf5es Pessoais"),l(),a(4,"span",2),J("click",function(){return r.changeTab(2)}),h(5,"Endere\xe7o"),l(),C(6,oB,2,2,"span",3),a(7,"span",2),J("click",function(){return r.changeTab(4)}),h(8,"Crie sua conta"),l()(),C(9,SV,113,88,"form",4),l()),2&n&&(c(2),vs("active",1==r.currentPage),c(2),vs("active",2==r.currentPage),c(2),d("ngIf",r.hasCustomFields),c(1),vs("active",4==r.currentPage),c(2),d("ngIf",r.registerForm))},dependencies:[ui,ei,en,uv,Gr,Ws,Js,mr,um,ma,fr,Ur,Rp,Zo,Ir,Mr,za],encapsulation:2})}return t})();function IV(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function xV(t,i){1&t&&(a(0,"span"),h(1,"A senha deve ter no m\xednimo 8 d\xedgitos"),l(
3))}function DV(t,i){if(1&t&&(a(0,"div",19),C(1,IV,2,0,"span",20),C(2,xV,2,0,"span",20),l()),2&t){const e=_(3);c(1),d("ngIf",e.f.oldPassword.errors.required),c(1),d("ngIf",null==e.f.oldPassword.errors?null:e.f.oldPassword.errors.minlength)}}function PV(t,i){if(1&t&&(a(0,"div",7)(1,"label",16),h(2,"Senha Atual*"),l(),B(3,"input",17,18),C(5,DV,3,2,"div",11),l()),2&t){const e=_(2);c(5),d("ngIf",e.f.oldPassword.errors&&(e.f.oldPassword.dirty||e.f.oldPassword.touched))}}function TV(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function EV(t,i){1&t&&(a(0,"span"),h(1,"A senha deve ter no m\xednimo 8 d\xedgitos"),l())}function LV(t,i){if(1&t&&(a(0,"div",19),C(1,TV,2,0,"span",20),C(2,EV,2,0,"span",20),l()),2&t){const e=_(2);c(1),d("ngIf",e.f.password.errors.required),c(1),d("ngIf",e.f.password.errors.minlength)}}function kV(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function MV(t,i){1&t&&(a(0,"span"),h(1,"A senha deve ter no m\xednimo 8 d\xedgitos"),l())}function FV(t,i){if(1&t&&(a(0,"div",19),C(1,kV,2,0,"span",20),C(2,MV,2,0,"span",20),l()),2&t){const e=_(2);c(1),d("ngIf",e.f.passwordConfirm.errors.required),c(1),d("ngIf",e.f.passwordConfirm.errors.minlength)}}function AV(t,i){if(1&t){const e=ve();a(0,"form",2),J("ngSubmit",function(){return M(e),L(_().changePassword())}),a(1,"div",3)(2,"div",4)(3,"label"),h(4,"Email Atual"),l(),B(5,"input",5),l(),C(6,PV,6,1,"div",6),a(7,"div",7)(8,"label",8),h(9,"Nova senha*"),l(),B(10,"input",9,10),C(12,LV,3,2,"div",11),l(),a(13,"div",7)(14,"label",12),h(15,"Confirme nova senha*"),l(),B(16,"input",13,14),C(18,FV,3,2,"div",11),l(),a(19,"button",15),h(20,"ALTERAR SENHA"),l()()()}if(2&t){const e=_();d("formGroup",e.recoverForm),c(5),d("value",null==e.email?"":e.email),c(1),d("ngIf",e.isAuth),c(6),d("ngIf",e.f.password.errors&&(e.f.password.dirty||e.f.password.touched)),c(6),d("ngIf",e.f.passwordConfirm.errors&&(e.f.passwordConfirm.dirty||e.f.passwordConfirm.touched))}}let NV=(()=>{class t{constructor(e,n,r){this.fb=e,this.customerService=n,this.commomService=r,this.show=!1,this.isAuth=!1}ngOnInit(){var e=window.location.href.split("/"),n=e[e.length-1];this.token=n,this.recoverForm=this.fb.group({oldPassword:[""],password:["",[oe.required,oe.minLength(8)]],passwordConfirm:["",[oe.required,oe.minLength(8)]]}),this.commomService.finishLoadComponent("onJetCustomerLoaded",{detail:{type:"customer",value:{name:decodeURIComponent("Alterar Senha"),href:window.location.href}}}),window.location.href.includes("ChangePasswordToken")?this.customerService.validarTokenRedefinirSenha(n).subscribe(r=>{null==r.email?window.location.href="/customer":(this.customer=r,this.email=r.email,this.customerId=String(r.idCustomer),this.show=!0)},r=>{this.commomService.displayMessageUser("error",null!=r.error.error?r.error.error:"Erro ao realizar a solicita\xe7\xe3o"),setTimeout(()=>{window.location.href="/customer/forgot"},3e3)}):this.customerService.isLogged().subscribe(r=>{r.data.authenticated&&r.data.hasPassword&&(this.f.oldPassword.setValidators([oe.required]),this.show=!0,this.isAuth=!0,this.customerId=r.data.idCustomer,this.customerService.getCustomer(this.customerId).subscribe(o=>{this.email=o.email}))})}get f(){return this.recoverForm.controls}changePassword(){if(this.recoverForm.valid)return this.f.password.value!=this.f.passwordConfirm.value?this.commomService.displayMessageUser("error","As senhas digitadas s\xe3o diferentes"):void this.customerService.changePassword(this.email,this.f.oldPassword.value,this.f.password.value,this.f.passwordConfirm.value,this.token,this.location).subscribe(e=>{this.commomService.displayMessageUser("success",null!=e.message?e.message:"Senha alterada com sucesso! \n Voc\xea ser\xe1 redirecionado para a p\xe1gina de login."),window.location.href="/customer/login"},e=>{this.commomService.displayMessageUser("error",null!=e.error.error?e.error.error:"Erro ao realizar a solicita\xe7\xe3o")});this.recoverForm.markAllAsTouched()}static#e=this.\u0275fac=function(n){return new(n||t)($(ao),$(Ci),$(qt))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-change-password"]],decls:2,vars:1,consts:[[1,"jet-change-password"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"formGroup","ngSubmit"],[1,"container-form"],[1,"container-field","disabled"],["placeholder","E-mail","disabled","",3,"value"],["class","container-field",4,"ngIf"],[1,"container-field"],["for","password"],["placeholder","Nova senha","type","password","formControlName","password"],["password",""],["class","invali
3d-feedback",4,"ngIf"],["for","passwordConfirm"],["placeholder","Confirme nova senha","type","password","formControlName","passwordConfirm"],["passwordConfirm",""],["type","submit"],["for","oldPassword"],["placeholder","Senha Atual","type","password","formControlName","oldPassword"],["oldPassword",""],[1,"invalid-feedback"],[4,"ngIf"]],template:function(n,r){1&n&&(a(0,"div",0),C(1,AV,21,5,"form",1),l()),2&n&&(c(1),d("ngIf",r.show))},dependencies:[en,Gr,mr,fr,Ur,Ir,Mr],encapsulation:2})}return t})();function OV(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function RV(t,i){if(1&t&&(a(0,"div",11),C(1,OV,2,0,"span",12),l()),2&t){const e=_(2);c(1),d("ngIf",e.f.cpfCnpj.errors.required)}}function BV(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function jV(t,i){if(1&t&&(a(0,"div",11),C(1,BV,2,0,"span",12),l()),2&t){const e=_(2);c(1),d("ngIf",e.f.password.errors.required)}}const VV=function(t){return{"jet-btn-loading":t}};function HV(t,i){if(1&t){const e=ve();a(0,"div",1)(1,"form",2),J("ngSubmit",function(){return M(e),L(_().sendEmail())}),a(2,"div",3)(3,"div",4)(4,"input",5,6),J("keyup",function(){return M(e),L(_().maskCpfCnpj())}),l(),C(6,RV,2,1,"div",7),l(),a(7,"div",4),B(8,"input",8,9),C(10,jV,2,1,"div",7),l(),a(11,"button",10),h(12,"RECUPERAR E-MAIL"),l()()()()}if(2&t){const e=_();c(1),d("formGroup",e.recoverForm),c(5),d("ngIf",e.f.cpfCnpj.errors&&(e.f.cpfCnpj.dirty||e.f.cpfCnpj.touched)),c(4),d("ngIf",e.f.password.errors&&(e.f.password.dirty||e.f.password.touched)),c(1),d("disabled",!e.recoverForm.valid)("ngClass",Oe(5,VV,e.loading))}}let zV=(()=>{class t{constructor(e,n,r,o){this.fb=e,this.customerService=n,this.commomService=r,this.sharedDataCommomService=o,this.loading=!1,this.isInternational=!1}ngOnInit(){this.internationalSubs$=this.sharedDataCommomService.international$.subscribe(e=>{e&&(this.isInternational=e.country?.id>1)}),this.recoverForm=this.fb.group({cpfCnpj:["",[oe.required,oe.minLength(11)]],password:["",[oe.required]]})}get f(){return this.recoverForm.controls}
3sendEmail(){if(this.recoverForm.invalid)return this.recoverForm.controls.cpfCnpj.markAsDirty(),this.recoverForm.controls.password.markAsDirty(),!1;this.loading=!0;let e=this.commomService.stripCnpj(this.f.cpfCnpj.value);this.commomService.validCPF(e)||this.commomService.validCNPJ(e)?this.customerService.recoverEmail(e,this.f.password.value).subscribe(n=>{this.loading=!1,null!=n&&n.toString().length>0?this.commomService.displayMessageUser("success",'O seu e-mail de cadastro \xe9: "'+n+'"',void 0,!1):this.commomService.displayMessageUser("error","N\xe3o foi poss\xedvel encontrar o seu e-mail.")},n=>{this.loading=!1,this.commomService.displayMessageUser("error","N\xe3o foi poss\xedvel encontrar o seu e-mail.")}):(this.loading=!1,this.commomService.displayMessageUser("error","CPF ou CNPJ inv\xe1lido"))}maskCpfCnpj(){if(this.commomService.stripCnpj(this.f.cpfCnpj.value).length>11)var e=this.commomService.formatCnpj(this.f.cpfCnpj.value);else e=this.commomService.formatCpf(this.f.cpfCnpj.value);this.f.cpfCnpj.setValue(e)}static#e=this.\u0275fac=function(n){return new(n||t)($(ao),$(Ci),$(qt),$(yn))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-recover-email"]],decls:1,vars:1,consts:[["class","jet-recover-email",4,"ngIf"],[1,"jet-recover-email"],[3,"formGroup","ngSubmit"],[1,"container-form"],[1,"container-field"],["placeholder","CPF ou CNPJ","formControlName","cpfCnpj","maxlength","18",3,"keyup"],["cpfCnpj",""],["class","invalid-feedback",4,"ngIf"],["placeholder","Senha","formControlName","password","type","password"],["password",""],["type","submit",3,"disabled","ngClass"],[1,"invalid-feedback"],[4,"ngIf"]],template:function(n,r){1&n&&C(0,HV,13,7,"div",0),2&n&&d("ngIf",!r.isInternational)},dependencies:[ui,en,Gr,mr,fr,Ur,Zo,Ir,Mr],encapsulation:2})}return t})();function qV(t,i){if(1&t){const e=ve();a(0,"div",9)(1,"button",10),J("click",function(){return M(e),L(_().hide(!0))}),h(2,"Cancelar"),l(),a(3,"button",11),J("click",function(){return M(e),L(_().confirm())}),h(4,"Confirmar"),l()()}}let $V=(()=>{class t{constructor(e){this.commomService=e}ngOnInit(){this.commomService.finishLoadComponent("onJetAlertLoaded")}verifyConfirm(){return document.getElementById("jet-alert").classList.contains("confirm")||document.getElementById("jet-alert").classList.contains("info")}hide(e=!1){e&&this.commomService.finishLoadComponent("onJetCancel"),document.getElementById("jet-alert").classList.add("close"),document.getElementById("jet-alert").classList.add("hidden")}confirm(){this.commomService.finishLoadComponent("onJetConfirm"),this.hide()}static#e=this.\u0275fac=function(n){return new(n||t)($(qt))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-alert"]],decls:11,vars:1,consts:[["id","jet-alert",1,"hidden"],[1,"close-alert",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 352 512",1,"icon"],["fill","currentColor","d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z",1,""],[1,"container","jet-alert-message"],[1,"jet-alert-message"],["id","jet-alert-title"],["id","jet-alert-description"],["class","jet-action",4,"ngIf"],[1,"jet-action"],[1,"cancel",3,"click"],[1,"confirm",3,"click"]],template:function(n,r){1&n&&(a(0,"div",0)(1,"button",1),J("click",function(){return r.hide()}),we(),a(2,"svg",2),B(3,"path",3),l(),Pe(),a(4,"span"),h(5,"Fechar"),l()(),a(6,"div",4)(7,"div",5),B(8,"strong",6)(9,"p",7),l(),C(10,qV,5,0,"div",8),l()()),2&n&&(c(10),d("ngIf",r.verifyConfirm()))},dependencies:[en],encapsulation:2})}return t})(),UV=(()=>{class t{constructor(e){this.http=e}setPolicyCookie(e){return this.http.post("/api/policyprivacy",{request:"674e7d84-5f1e-48f3-b059-0e284bea1c0a/8dce3f1e-267b-4e98-b8b1-2fcf623a3c5f",json:{type:e}})}static#e=this.\u0275fac=function(n){return new(n||t)(Mt(ko))};static#t=this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function GV(t,i){if(1&t){const e=ve();a(0,"div",1)(1,"div",2),B(2,"p",3),Wi(3,"safeHtml"),a(4,"button",4),J("click",function(){return M(e),L(_().accepted())}),h(5,"Entendi"),l()()()}if(2&t){const e=_();c(2),d("innerHtml",Lo(3,1,e.alertText),ce)}}let WV=(()=>{class t{constructor(e,n,r,o){this.companyService=e,this.policyPrivacyService=n,this.sharedDataCommomService=r,this.commomService=o,this.company=null,this.verifyPolicyPrivacyAccepted=!1,this.loaded=!1}ngOnInit(){this.sharedDataCommomService.currentCompany$.subscribe(e=>{this.company=e,null!=this.company&&e.privacyPolicy.alertText&&(this.alertText=e.privacyPolicy.alertText.replace("[linkPolitica]","<a href='"+e.urlStore+"politica-de-privacidade' target='_blank'><u>Pol\xedtica de Privacidade</u></a>"),e.privacyPolicy.statusPolicyPrivacy&&this.policyPrivacyService.setPolicyCookie("verify").subscribe(r=>{this.verifyPolicyPrivacyAccepted=r.exist,r.exist||(this.loaded=!0,this.commomService.finishLoadComponent("onJetPolicyPrivacyLoaded"))},r=>{}))})}accepted(){this.policyPrivacyService.setPolicyCookie("create").subscribe(e=>{this.verifyPolicyPrivacyAccepted=!0},e=>{})}static#e=this.\u0275fac=function(n){return new(n||t)($(Qo),$(UV),$(yn),$(qt))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-policy-privacy"]],decls:1,vars:1,consts:[["class","jet-policy-privacy",4,"ngIf"],[1,"jet-policy-privacy"],[1,"content","policy-container"],[3,"innerHtml"],[1,"accept",3,"click"]],template:function(n,r){1&n&&C(0,GV,6,3,"div",0),2&n&&d("ngIf",null!=r.company&&r.company.privacyPolicy.statusPolicyPrivacy&&0==r.verifyPolicyPrivacyAccepted&&r.loaded)},dependencies:[en,za],encapsulation:2})}return t})();function JV(t,i){if(1&t){const e=ve();
3a(0,"div",9)(1,"span",10),h(2),l(),a(3,"button",11),J("click",function(){return M(e),L(_(2).endSession())}),h(4),l()()}if(2&t){const e=_(2);c(2),de(e.dataTopbarMessage),c(2),de(e.dataTopbarEndSession)}}function ZV(t,i){if(1&t&&(a(0,"p"),h(1,"O link ser\xe1 criado para o cliente: "),a(2,"strong"),h(3),l(),h(4,"."),l()),2&t){const e=_(3);c(3),dt(" ",e.customerName,"")}}const QV=function(t){return{"jet-btn-loading":t}};function YV(t,i){if(1&t){const e=ve();ht(0),a(1,"span",12),h(2,"Compartilhar carrinho"),l(),a(3,"div",13)(4,"p"),h(5,"Depois que o link do carrinho for gerado, ele "),a(6,"strong"),h(7,"n\xe3o refletir\xe1"),l(),h(8," mudan\xe7as feitas no carrinho pelo vendedor."),l(),C(9,ZV,5,1,"p",0),l(),a(10,"div",14)(11,"button",15),J("click",function(){return M(e),L(_(2).closeModal())}),h(12," Cancelar "),l(),a(13,"button",16),J("click",function(){return M(e),L(_(2).generateLink())}),h(14," Criar link "),l()(),mt()}if(2&t){const e=_(2);c(9),d("ngIf",e.idCustomer),c(4),d("ngClass",Oe(3,QV,e.loading))("disabled",e.loading)}}function KV(t,i){1&t&&(a(0,"span"),we(),a(1,"svg",20),B(2,"path",21),l(),h(3," Copiar link "),l())}function XV(t,i){1&t&&(a(0,"span"),h(1,"Link copiado"),l())}function eH(t,i){if(1&t){const e=ve();ht(0),a(1,"span",12),h(2,"Link criado com sucesso!"),l(),a(3,"div",17)(4,"p"),h(5,"Link para compartilhamento:"),l(),a(6,"p",18),h(7),l(),a(8,"button",19),J("click",function(){return M(e),L(_(2).copyLink())}),C(9,KV,4,0,"span",0),C(10,XV,2,0,"span",0),l()(),mt()}if(2&t){const e=_(2);c(7),de(e.paymentLink),c(2),d("ngIf",!e.linkCopied),c(1),d("ngIf",e.linkCopied)}}function tH(t,i){if(1&t){const e=ve();ht(0),a(1,"div",1),C(2,JV,5,2,"div",2),l(),a(3,"div",3)(4,"div",4)(5,"button",5),J("click",function(){return M(e),L(_().closeModal())}),we(),a(6,"svg",6),B(7,"path",7),l(),Pe(),a(8,"span"),h(9,"Fechar"),l()(),a(10,"div",8),C(11,YV,15,5,"ng-container",0),C(12,eH,11,3,"ng-container",0),l()()(),mt()}if(2&t){const e=_();c(2),d("ngIf",(null==e.dataTopbarMessage?null:e.dataTopbarMessage.length)>0),c(9),d("ngIf",!e.linkGenerated),c(1),d("ngIf",e.linkGenerated)}}let nH=(()=>{class t{constructor(e,n,r){this.commomService=e,this.socialSellingService=n,this.customerService=r,this.dataTopbarMessage="{name}, voc\xea est\xe1 navegando como vendedor.",this.dataTopbarEndSession="Encerrar sess\xe3o",this.topbarReady=!1,this.paymentLink="",this.linkCopied=!1,this.loading=!1,this.linkGenerated=!1,this.sellerName="",this.redirectToCart=!1}ngOnInit(){const e=this.commomService.getQueryVar("socialSelling"),n=e?Cp(e):this.socialSellingService.getSocialSellingCodeFromCookie();this.commomService.finishLoadComponent("onJetSocialSellingReady"),n.pipe(M0(r=>r?(this.observeAttributeChanges(),this.code=r,this.socialSellingService.setSocialSellingCodeInCookie(r).subscribe(o=>{}),tC({config:this.socialSellingService.getAssistedSaleConfig(),seller:this.socialSellingService.getSellerByCode(r),customer:this.customerService.isLogged()})):Cp(null))).subscribe(r=>{if(!r||!r?.config?.isSocialSellingActive)return;this.isSocialSellingSession=r?.config?.isSocialSellingActive,this.idCustomer=r?.customer?.data?.idCustomer,this.customerName=r?.customer?.data?.name,this.sellerName=r?.seller?.sellerName,this.updateTopbarMessage(),this.updateTopbarEndSession(),this.socialSellingService.setActive(r?.config?.isSocialSellingActive);let o=sessionStorage.getItem("sellerCode"),s=!1;this.code&&o!=this.code&&(sessionStorage.setItem("sellerCode",this.code),s=!0),this.topbarReady=!0,this.commomService.finishLoadComponent("onJetSocialSellingLoaded"),s&&document.location.reload()},r=>{this.endSession()}),this.resetModal()}observeAttributeChanges(){this.observer=new MutationObserver(e=>{let n=!1;for(const r of e)if("attributes"===r.type){const o=r.attributeName;"data-topbar-message"===o&&(this.dataTopbarMessage=r.target.getAttribute(o)||"",this.updateTopbarMessage(),n=!0),"data-tobar-end-session"===o&&(this.dataTopbarEndSession=r.target.getAttribute(o)||"",this.updateTopbarEndSession(),n=!0)}n&&this.observer&&this.observer.disconnect()}),this.observer.observe(document.querySelector("jet-social-selling"),{attributes:!0,attributeFilter:["data-topbar-message","data-tobar-end-session"]})}updateTopbarMessage(){this.dataTopbarMessage=this.dataTopbarMessage.replace(/{name}/g,this.sellerName.split(" ")[0]||"")}updateTopbarEndSession(){this.dataTopbarEndSession=this.dataTopbarEndSession.trim()}closeModal(){this.toggleModal(!1),this.resetModal(),this.redirectToCart&&(this.redirectToCart=!1,window.location.href="/checkout")}toggleModal(e){const n=document.querySelector("#modalSocialSelling");n&&(e?n.classList.remove("hideme"):n.classList.add("hideme"))}resetModal(){this.linkGenerated=!1,this.loading=!1,this.linkCopied=!1,this.paymentLink=""}generateLink(){this.loading=!0,this.socialSellingService.createPaymentLink(this.code,this.idCustomer).subscribe(e=>{e?(this.paymentLink=e,this.linkGenerated=!0,this.idCustomer&&(this.customerService.logout().subscribe(n=>{}),this.customerName="","/checkout/payment"==document.location.pathname&&(this.redirectToCart=!0)),this.loading=!1):(this.commomService.displayMessageUser("error","Falha ao gerar link de pagamento"),this.loading=!1)},e=>{this.loading=!1,this.commomService.displayMessageUser("error","Falha ao gerar link de pagamento")})}copyLink(){this.linkCopied=!0,navigator.clipboard.writeText(this.paymentLink),setTimeout(()=>{this.linkCopied=!1},2e3)}endSession(){this.socialSellingService.endSession().subscribe(()=>{sessionStorage.removeItem("sellerCode"),this.isSocialSellingSession=!1,this.socialSellingService.setActive(!1),document.location.reload()})}static#e=this.\u0275fac=function(n){return new(n||t)($(qt),$(iv),$(Ci))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-social-selling"]],inputs:{dataTopbarMessage:["data-topbar-message","dataTopbarMessage"],dataTopbarEndSession:["data-tobar-end-session","dataTopbarEndSession"]},decls:1,vars:1,consts:[[4,"ngIf"],[1,"jet-social-selling-topbar"],["class","selling-topbar",4,"ngIf"],["id","modalSocialSelling",1,"jet-modal","modal
3-social-selling","hideme"],[1,"jet-modal-content","modal-content","content-center","small","auto-height"],["aria-label","Fechar",1,"jet-modal-close","modal-close",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 352 512",1,"icon"],["fill","currentColor","d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z",1,""],[1,"content"],[1,"selling-topbar"],[1,"selling-topbar-message"],[1,"selling-topbar-session",3,"click"],[1,"jet-modal-title"],[1,"selling-info"],[1,"selling-actions"],[1,"jet-button","btn-cancel",3,"click"],[1,"jet-button","btn-generate",3,"ngClass","disabled","click"],[1,"selling-link"],[1,"selling-link-text"],[1,"jet-button","btn-copy",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","viewBox","0 0 16 16","fill","none"],["d","M2 14.5H9C9.275 14.5 9.5 14.275 9.5 14V12H11V14C11 15.1031 10.1031 16 9 16H2C0.896875 16 0 15.1031 0 14V7C0 5.89687 0.896875 5 2 5H4V6.5H2C1.725 6.5 1.5 6.725 1.5 7V14C1.5 14.275 1.725 14.5 2 14.5ZM7 9.5H14C14.275 9.5 14.5 9.275 14.5 9V2C14.5 1.725 14.275 1.5 14 1.5H7C6.725 1.5 6.5 1.725 6.5 2V9C6.5 9.275 6.725 9.5 7 9.5ZM5 9V2C5 0.896875 5.89687 0 7 0H14C15.1031 0 16 0.896875 16 2V9C16 10.1031 15.1031 11 14 11H7C5.89687 11 5 10.1031 5 9Z","fill","black"]],template:function(n,r){1&n&&C(0,tH,13,3,"ng-container",0),2&n&&d("ngIf",r.isSocialSellingSession&&r.topbarReady)},dependencies:[ui,en],encapsulation:2})}return t})();function iH(t,i){if(1&t&&(a(0,"span",5),h(1),l()),2&t){const e=_(2);c(1),de(e.dataTitle)}}function rH(t,i){if(1&t){const e=ve();a(0,"div",3)(1,"div",6)(2,"img",7),J("click",function(){const o=M(e).$implicit;return L(_(2).changeLanguage(o))}),l()()()}if(2&t){const e=i.$implicit,n=_(2);d("className",n.dataClassColumn+" "+e.nameGeolocalization),c(2),Ue("alt",e.name),Ue("title",e.name),d("id",e.nameGeolocalization)("src",n.urlPath+e.flag,fe)("className",e.nameGeolocalization)("decode",!0)}}function oH(t,i){if(1&t&&(a(0,"div",1),C(1,iH,2,1,"span",2),a(2,"div",3),C(3,rH,3,7,"div",4),l()()),2&t){const e=_();c(1),d("ngIf",""!=e.dataTitle),c(1),d("className",e.dataClassContainer),c(1),d("ngForOf",e.countries)}}let sH=(()=>{class t{constructor(e,n,r){this.companyService=e,this.commomService=n,this.sharedDataCommomService=r,this.dataClassContainer="",this.dataClassColumn="",this.dataTitle="",this.urlPath="/custom/countries/",this.options=[],this.countries=[],this.hideCountries=!1}ngOnInit(){this.dataClassContainer=""!==this.dataClassContainer?"content jet-container "+this.dataClassContainer:"content jet-container ",this.dataClassColumn=""!==this.dataClassColumn?"content jet-column "+this.dataClassColumn:"content jet-column ",window.location.href.indexOf("localhost")>-1&&(this.urlPath="/assets/countries/"),document.addEventListener("onJetGoogleTradutorScriptLoad",()=>{this.sharedDataCommomService.currentCompany$.subscribe(e=>{if(e){this.countries=e.countries;let n=!0;setTimeout(()=>{if(this.countries){let r=this.countries.find(s=>s.standard),o=this.commomService.getCookie("googtrans");if(this.commomService.getCountryCookieCommom()){let s=this.commomService.getCountryCookieCommom(),u=o?o.split("/")[2]:"";s&&u!=s.languageCode&&this.changeLanguage(this.commomService.getCountryCookieCommom(),!1)}else{let s=!0;s&&(n=!1),this.changeLanguage(r,s)}n&&this.commomService.finishLoadComponent("onJetCountryOptionsLoaded",{detail:{countries:this.countries,countrySelected:this.commomService.getCountryCookieCommom()}})}},500)}})},{once:!0,passive:!0}),document.addEventListener("onJetSetCountryOption",e=>{if(e.detail&&this.countries&&this.countries.length>0){this.hideCountries=e.detail.hideCountries;let n=this.countries.find(o=>o.id==e.detail.idCountry);n||(n=this.countries.find(o=>o.standard));let r=this.commomService.getCountryCookieCommom();n&&n?.id!=r?.id&&this.changeLanguage(n)}},{passive:!0})}changeLanguage(e,n=!0){let r=e.languageCode;var o=this,s=setInterval(function(){var u=document.querySelector(".goog-te-combo");u&&(u.value=r,u.dispatchEvent(new Event("change")),setTimeout(()=>{var v=document.querySelector(".goog-te-combo");v&&(v.value!=r?o.changeLanguage(e,n):o.commomService.setCountryInCookie(e).subscribe(w=>{n?setTimeout(()=>{document.location.reload()},200):o.commomService.setCountryCookieCommom(e)}))},500),clearInterval(s))},500)}static#e=this.\u0275fac=function(n){return new(n||t)($(Qo),$(qt),$(yn))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-country-options"]],inputs:{dataClassContainer:["data-class-container","dataClassContainer"],dataClassColumn:["data-class-column","dataClassColumn"],dataTitle:["data-title","dataTitle"]},decls:1,vars:1,consts:[["class","jet-country-options",4,"ngIf"],[1,"jet-country-options"],["class","title-country",4,"ngIf"],[3,"className"],[3,"className",4,"ngFor","ngForOf"],[1,"title-country"],[1,"content","options"],["jet-image-size","","loading","lazy","fetchPriority","low",3,"id","src","alt","title","className","decode","click"]],template:function(n,r){1&n&&C(0,oH,4,3,"div",0),2&n&&d("ngIf",r.countries&&r.countries.length>0&&!r.hideCountries)},dependencies:[ei,en,bs],encapsulation:2})}return t})(),aH=(()=>{class t{constructor(e,n,r,o,s,u,v,w){this.commomService=e,this.companyService=n,this.sharedDataCustomerCenter=r,this.sharedDataCommom=o,this.storeEventsService=s,this.snippet=u,this.customerService=v,this.checkoutService=w,this.page=window.location.href.replace(document.location.origin,""),this.isLogged=!1}ngOnInit(){this.checkoutService.removeSellerAuth().subscribe(),this.commomService.updateLocalStorageDiscount("voucher",void 0,!0),document.getElementsByTagName("body")[0].classList.add("jet-customer"),this.commomService.getValidSession(!0).subscribe(e=>{},e=>{document.location.reload()}),this.companyService.getCompany().subscribe(e=>{this.commomService.setMetaTagsDefault(!1),1===document.getElementsByTagName("h1").length&&this.commomService.setMetaTags(document.getElementsByTagName("h1")[0].textContent,"",""),e.isTestStore&&this.commomService.createTestStoreStripe(),this.commomService.setInternationalStoreConfiguration(e),this.sharedDataCustomerCenter.changeValueCompany(e),this.sharedDataCommom.changeValueCompany(e)}),this.commomService.layoutManagerPrepare(),this.storeEventsService.startParams(),document.getElementsByClassName("customer-toggle-menu open").length>0&&(document.getElementsByClassName("customer-toggle-menu open")[0].addEventListener("click",e=>{document.getElementsByClassName("customer-toggle-menu close")[0].classList.remove("inactive"),document.getElementsByClassName("customer-toggle-menu close")[0].classList.add("active"),document.getElementsByTagName("body")[0].classList.add("overflow"),document.getElementsByTagName("body")[0].classList.add("active-menu-customer"),document.getElementsByClassName("customer-toggle-menu open")[0].classList.add("inactive"),document.getElementsByClassName("jet-menu-bg")[0].classList.add("active")},{passive:!0}),document.getElementsByClassName("customer-toggle-menu close")[0].addEventListener("click",()=>{document.getElementsByClassName("customer-toggle-menu open")[0].classList.remove("inactive"),document.getElementsByClassName("customer-toggle-menu open")[0].classList.add("active"),document.getElementsByClassName("customer-toggle-menu close")[0].classList.add("inactive"),document.getElementsByClassName("jet-menu-bg")[0].classList.add("inactive"),document.getElementsByTagName("body")[0].classList.add("inactive-menu-customer"),setTimeout(function(){document.getElementsByClassName("jet-menu-bg")[0].classList.remove("active"),document.getElementsByClassName("jet-menu-bg")[0].classList.remove("inactive"),document.getElementsByTagName("body")[0].classList.remove("overflow"),document.getElementsByTagName("body")[0].classList.remove("active-menu-customer"),document.getElementsByTagName("body")[0].classList.remove("inactive-menu-customer")},800)},{passive:!0})),this.customerService.isLoggedB2B().subscribe(e=>{this.sharedDataCommom.changeValueB2B(e)}),this.customerService.isLogged().subscribe(e=>{e&&e.data.authenticated&&(this.isLogged=!0),localStorage.getItem("couponAppliedOnCart")&&(this.commomService.isDevice()?this.commomService.showLoadingByQuerySelector(".mobile-header .cart-container"):this.commomService.showLoading("header")),this.checkoutService.removeAppliedDiscounts().subscribe(n=>{this.commomService.finishLoadComponent("onJetRemoveAppliedDiscounts")})}),document.addEventListener("onJetRemoveAppliedDiscounts",()=>{if(localStorage.getItem("couponAppliedOnCart")){let e=localStorage.getItem("couponAppliedOnCart");this.isLogged?this.checkoutService.applyDiscount(e).subscribe(n=>{this.hideLoadingApplyDiscounts()},n=>{this.hideLoadingApplyDiscounts(),localStorage.removeItem("couponAppliedOnCart");let r=n?.error?.error;this.commomService.displayMessageUser("error",r||"Falha ao aplicar o cupom")}):this.checkoutService.applyCartDiscount(e).subscribe(n=>{this.hideLoadingApplyDiscounts()},n=>{this.hideLoadingApplyDiscounts(),localStorage.removeItem("couponAppliedOnCart");let r=n?.error?.error;this.commomService.displayMessageUser("error",r||"Falha ao aplicar o cupom")})}},{once:!0,passive:!0})}hideLoadingApplyDiscounts(){this.commomService.isDevice()?this.commomService.hideLoadingByQuerySelector(".mobile-header .cart-container"):this.commomService.hideLoading("header")}static#e=this.\u0275fac=function(n){return new(n||t)($(qt),$(Qo),$(Bu),$(yn),$(nv),$(Hp),$(Ci),$(Ss))};
3static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-api-data-customer"]],decls:4,vars:0,template:function(n,r){1&n&&B(0,"jet-social-selling")(1,"jet-alert")(2,"jet-policy-privacy")(3,"jet-country-options")},dependencies:[$V,WV,nH,sH],encapsulation:2})}return t})();function lH(t,i){if(1&t){const e=ve();a(0,"div",45),J("click",function(){return M(e),L(_(2).navigateTo("/eventlist"))}),a(1,"div",10),we(),a(2,"svg",46),B(3,"path",47),l(),Pe(),a(4,"div",16)(5,"p",17),h(6,"Lista de Eventos"),l(),a(7,"span",18),h(8,"Crie listas de presentes para diversos tipos de eventos."),l()()()()}}function cH(t,i){if(1&t){const e=ve();a(0,"div",48),J("click",function(){return M(e),L(_(2).navigateTo("/wishlist"))}),a(1,"div",10),we(),a(2,"svg",23),B(3,"rect",30)(4,"path",49),l(),Pe(),a(5,"div",16)(6,"p",17),h(7,"Lista de Desejos"),l(),a(8,"span",18),h(9,"Gerencie os produtos adicionados \xe0 sua lista."),l()()()()}}function dH(t,i){if(1&t){const e=ve();a(0,"div",50),J("click",function(){return M(e),L(_(2).showModalTermB2B())}),a(1,"div",10),we(),a(2,"svg",51),B(3,"path",52),l(),Pe(),a(4,"div",16)(5,"p",17),h(6,"Termos de Aceite B2B"),l(),a(7,"span",18),h(8,"Visualize os Termos de Aceite para B2B"),l()()()()}}function uH(t,i){if(1&t){const e=ve();a(0,"div",53),J("click",function(){return M(e),L(_(2).navigateTo("/changepassword"))}),a(1,"div",10),we(),a(2,"svg",23),B(3,"rect",30)(4,"path",54)(5,"path",55),l(),Pe(),a(6,"div",16)(7,"p",17),h(8,"Alterar senha"),l(),a(9,"span",18),h(10,"Crie uma nova senha para seu cadastro em nossa loja."),l()()()()}}function hH(t,i){if(1&t){const e=ve();a(0,"div",56),J("click",function(){return M(e),L(_(2).navigateTo("/custom/report"))}),a(1,"div",10),we(),a(2,"svg",11),B(3,"path",20),l(),Pe(),a(4,"div",16)(5,"p",17),h(6,"Relat\xf3rio de Vendas"),l(),a(7,"span",18),h(8,"Consulte os pedidos vinculados \xe0 sua escola realizados em nossa loja."),l()()()()}}function mH(t,i){if(1&t){const e=ve();a(0,"div",57),J("click",function(){return M(e),L(_(2).navigateTo("/recurrency"))}),a(1,"div",10),we(),a(2,"svg",58),B(3,"path",59),l(),Pe(),a(4,"div",16)(5,"p",17),h(6,"Minhas assinaturas"),l(),a(7,"span",18),h(8,"Acompanhe todas as assinaturas de produtos."),l()()()()}}function fH(t,i){1&t&&(a(0,"div",60)(1,"div",10),we(),a(2,"svg",58),B(3,"path",59),l(),Pe(),a(4,"div",16)(5,"p",17),h(6,"Minhas Assinaturas Rits"),l(),a(7,"span",18),h(8,"Acompanhe todas as assinaturas de produtos."),l()()()())}function pH(t,i){if(1&t){const e=ve();a(0,"div",3)(1,"div",4)(2,"span",5),h(3,"Ol\xe1,\xa0"),a(4,"strong",6),h(5),l(),a(6,"a",7),J("click",function(){return M(e),L(_().logout())}),h(7,"(sair)"),l()()(),a(8,"div",8)(9,"div",8)(10,"div",8)(11,"div",9),J("click",function(){return M(e),L(_().navigateTo("/order/details"))}),a(12,"div",10),we(),a(13,"svg",11)(14,"g",12),B(15,"path",13)(16,"circle",14)(17,"circle",15),l()(),Pe(),a(18,"div",16)(19,"p",17),h(20,"\xdaltimo pedido"),l(),a(21,"span",18),h(22,"Consulte seu \xfaltimo pedido realizado em nossa loja."),l()()()(),a(23,"div",19),J("click",function(){return M(e),L(_().navigateTo("/order"))}),a(24,"div",10),we(),a(25,"svg",11),B(26,"path",20),l(),Pe(),a(27,"div",16)(28,"p",17),h(29,"Consultar meus pedidos"),l(),a(30,"span",18),h(31,"Consulte seu \xfaltimo pedido realizado em nossa loja."),l()()()(),C(32,lH,9,0,"div",21),a(33,"div",22),J("click",function(){return M(e),L(_().navigateTo("/shoppingVoucherDetails"))}),a(34,"div",10),we(),a(35,"svg",23),B(36,"rect",24)(37,"path",25)(38,"path",26),l(),Pe(),a(39,"div",16)(40,"p",17),h(41,"Vale Compra"),l(),a(42,"span",18),h(43,"Consulte o extrato de Vale Compras de sua conta."),l()()()(),C(44,cH,10,0,"div",27),C(45,dH,9,0,"div",28),l(),a(46,"div",8)(47,"div",29),J("click",function(){return M(e),L(_().navigateTo("/edit"))}),a(48,"div",10),we(),a(49,"svg",23),B(50,"rect",30)(51,"path",31)(52,"path",32),l(),Pe(),a(53,"div",16)(54,"p",17),h(55,"Dados Cadastrais"),l(),a(56,"span",18),h(57,"Voc\xea poder\xe1 alterar seus dados cadastrais."),l()()()(),a(58,"div",33),J("click",function(){return M(e),L(_().navigateTo("/address"))}),a(59,"div",10),we(),a(60,"svg",23),B(61,"rect",30)(62,"path",34)(63,"path",35),l(),Pe(),a(64,"div",16)(65,"p",17),h(66,"Gest\xe3o de Endere\xe7os"),l(),a(67,"span",18),h(68,"Gerencie seus endere\xe7os de entrega em nosso sistema."),l()()()(),C(69,uH,11,0,"div",36),a(70,"div",37),J("click",function(){return M(e),L(_().navigateTo("/alterEmail"))}),a(71,"div",10),we(),a(72,"svg",23),B(73,"rect",30)(74,"path",38),l(),Pe(),a(75,"div",16)(76,"p",17),h(77,"Alterar e-mail"),l(),a(78,"span",18),h(79,"Crie um novo e-mail para o seu cadastro em nossa loja."),l()()()(),C(80,hH,9,0,"div",39),C(81,mH,9,0,"div",40),C(82,fH,9,0,"div",41),a(83,"div",42),J("click",function(){return M(e),L(_().navigateTo("/savedcards"))}),a(84,"div",10),we(),a(85,"svg",11),B(86,"path",43)(87,"path",44),l(),Pe(),a(88,"div",16)(89,"p",17),h(90,"Meus Cart\xf5es"),l(),a(91,"span",18),h(92,"Gerencie os cart\xf5es salvos em sua conta."),l()()()()()()()()}if(2&t){const e=_();c(5),dt("",e.userName,"!"),c(3),d("className",e.dataClassContainer),c(1),d("className",e.dataClassChildrenContainer),c(1),d("className",e.dataClassChildren),c(22),d("ngIf",!e.isLoggedB2B&&!e.activeMultiCD),c(12),d("ngIf",!e.isLoggedB2B),c(1),d("ngIf",e.isLoggedB2B),c(1),d("className",e.dataClassChildren),c(23),d("ngIf",e.company&&0==e.company.loginOTP),c(11),d("ngIf",e.isLoggedB2B),c(1),d("ngIf",e.company&&e.company.isRecurrentPurchaseActive),c(1),d("ngIf",e.rits)}}const gH=function(t){return{hideme:t}};function vH(t,i){if(1&t){const e=ve();a(0,"div",61)(1,"div",62,63)(3,"div",64)(4,"button",65),J("click",function(){return M(e),L(_().hidePolicyPrivacy())}),we(),a(5,"svg",66),B(6,"path",67),l(),Pe(),a(7,"span"),h(8,"Fechar"),l()(),B(9,"p",68),Wi(10,"safeHtml"),a(11,"button",69),J("click",function(){return M(e),L(_().hidePolicyPrivacy())}),h(12,"Confirmar"),l()()(),a(13,"span",70),h(14,"Pol\xedtica de Privacidade"),l(),a(15,"p"),h(16,"Os Termos da nossa Pol\xedtica de Privacidade foram atualizados em "),a(17,"strong"),h(18),Wi(19,"date"),l()(),a(20,"p"),h(21,"Para continuar, \xe9 necess\xe1rio ler e aceitar o documento atualizado."),l(),a(22,"div",71),J("click",function(){M(e);const r=Wt(24),o=Wt(31),s=Wt(2);return L(_().checkPolicyPrivacy(r,o,s))}),a(23,"input",72,73),J("click",function(){M(e);const r=Wt(24),o=Wt(31),s=Wt(2);return L(_().checkPolicyPrivacy(r,o,s))}),l(),a(25,"label",74),h(26,"Declaro que li e aceito os termos da "),a(27,"strong"),h(28,"Pol\xedtica de Privacidade"),l(),h(29,"."),l()(),a(30,"button",75,76),J("click",function(){return M(e),L(_().confirmPolicyPrivacy())}),h(32,"Confirmar"),l()()}if(2&t){const e=_();c(1),d("ngClass",Oe(8,gH,!e.showTextPrivacy)),c(8),d("innerHtml",Lo(10,3,e.policyPrivacy),ce),c(9),de(vd(19,5,e.dateUpdatePolicyPrivacy,"dd/MM/yyyy"))}}function _H(t,i){if(1&t){const e=ve();a(0,"div",77)(1,"div",78)(2,"button",79),J("click",function(){return M(e),L(_().hideTermB2B())}),we(),a(3,"svg",66),B(4,"path",67),l(),Pe(),a(5,"span"),h(6,"Fechar"),l()(),a(7,"div",80),B(8,"p",68),Wi(9,"safeHtml"),l(),a(10,"button",69),J("click",function(){return M(e),L(_().hideTermB2B())}),h(11,"Confirmar"),l()()()}if(2&t){const e=_();c(8),d("innerHtml",Lo(9,1,e.termToAcceptTextB2B),ce)}}let CH=(()=>{class t{constructor(e,n,r,o,s){this.customerService=e,this.companyService=n,this.commomService=r,this.sharedDataCustomerCenter=o,this.sharedDataCommom=s,this.dataClassContainer="",this.dataClassChildrenContainer="",this.dataClassChildren="",this.policyPrivacy="",this.showPolicyPrivacy=!1,this.loaded=!1,this.showTextPrivacy=!1,this.showTermB2B=!1,this.termToAcceptTextB2B="",this.isLoggedB2B=!1,this.activeMultiCD=!1,this.rits=!1}ngOnInit(){this.dataClassContainer=""!==this.dataClassContainer?"jet-container "+this.dataClassContainer:"jet-container",this.dataClassChildrenContainer=""!==this.dataClassChildrenContainer?"jet-itens "+this.dataClassChildrenContainer:"jet-itens",this.dataClassChildren=""!==this.dataClassChildren?"jet-item "+this.dataClassChildren:"jet-item",this.obs$=this.customerService.isLogged().subscribe(e=>{e.data.authenticated&&e.data.hasPassword&&(this.userName=e.data.name.split(" ")[0],this.idCustomer=e.data.idCustomer,this.customerService.getCustomer(this.idCustomer).subscribe(n=>{0==n.termAccepted&&this.sharedDataCustomerCenter.currentCompany$.subscribe(r=>{null!=r&&(this.company=r,this.policyPrivacyVersion=r.privacyPolicy.policyPrivacyVersion,r.privacyPolicy.statusPolicyPrivacy&&n.policyPrivacyData.version!=r.privacyPolicy.policyPrivacyVersion?(this.policyPrivacy=r.privacyPolicy.policyPrivacy,this.dateUpdatePolicyPrivacy=r.privacyPolicy.modifiedDate,this.showPolicyPrivacy=!0,this.commomService.finishLoadComponent("onJetCustomerPolicyLoaded")):(this.loaded=!0,this.commomService.finishLoadComponent("onJetCustomerMenuLoaded")),this.activeMultiCD=r.activeMultiCD)})}))}),this.sharedDataCommom.authorizedB2B$.subscribe(e=>{null!=e&&(this.isLoggedB2B=e)}),this.injectRits()}checkPolicyPrivacy(e,n,r){1==e.checked?(e.checked=!1,n.disabled=!0,this.showTextPrivacy=!1):(e.checked=!0,n.disabled=!1,this.showTextPrivacy=!0)}hidePolicyPrivacy(){this.showTextPrivacy=!1}confirmPolicyPrivacy(){let e={resolution:screen.width.toString()+"x"+screen.height.toString(),version:this.policyPrivacyVersion};this.customerService.updatePolicyPrivacy(this.idCustomer,e).subscribe(n=>{this.showPolicyPrivacy=!1,this.loaded=!0,this.commomService.finishLoadComponent("onJetCustomerMenuLoaded")},n=>{})}logout(){this.customerService.logout().subscribe(e=>{this.commomService.finishLoadComponent("onJetUserLogout"),window.location.href="/"},e=>{console.log(e),this.commomService.displayMessageUser("error","Erro ao realizar o logout")})}navigateTo(e){null!=e&&"#"!=e&&(window.location.href=document.location.href+e)}showModalTermB2B(){this.companyService.getCompany().subscribe(e=>{this.termToAcceptTextB2B=e.termToAcceptTextB2B,this.showTermB2B=!0})}hideTermB2B(){this.showTermB2B=!1}injectRits(){this.commomService.getRits().subscribe({next:e=>{if(this.config=e,this.config.active){this.rits=!0;let n=document.createElement("script");n.type="text/javascript",n.innerHTML=`(function(w, d, s, o, f, js, fjs) {w['RitsWidget'] = o; w[o] = w[o] || function() { (w[o].q = w[o].q || []).push(arguments); }; js = d.createElement(s); js.id = o; js.src = f; js.async = true; fjs = d.getElementsByTagName(s)[0]; fjs.parentNode.insertBefore(js, fjs); })(window, document, 'script', 'rw', '${this.config.baseUrl}/widget/v1/sdk.js');`,document.getElementsByTagName("body")[0].appendChild(n),window.rw("init",{storefront:this.config.baseUrl}),this.commomService.finishLoadComponent("onJetRitsWidgetSignatureLoaded")}}})}static#e=this.\u0275fac=function(n){return new(n||t)($(Ci),$(Qo),$(qt),$(Bu),$(yn))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-customer-page"]],inputs:{dataClassContainer:["data-class-container","dataClassContainer"],dataClassChildrenContainer:["data-class-children-container","dataClassChildrenContainer"],dataClassChildren:["data-class-children","dataClassChildren"]},decls:3,vars:3,consts:[["class","jet-customer-page",4,"ngIf"],["class","jet-policy-customer",4,"ngIf"],["class","jet-modal modal-policy",4,"ngIf"],[1,"jet-customer-page"],[1,"customer"],[1,"user-logged"],[1,"n
3otranslate"],[1,"logout",3,"click"],[3,"className"],["id","customerCenterBoxLastOrder",1,"item-menu",3,"click"],[1,"option"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",1,"icon"],["data-name","shopping-cart"],["d","M21.08 7a2 2 0 0 0-1.7-1H6.58L6 3.74A1 1 0 0 0 5 3H3a1 1 0 0 0 0 2h1.24L7 15.26A1 1 0 0 0 8 16h9a1 1 0 0 0 .89-.55l3.28-6.56A2 2 0 0 0 21.08 7zm-4.7 7H8.76L7.13 8h12.25z"],["cx","7.5","cy","19.5","r","1.5"],["cx","17.5","cy","19.5","r","1.5"],[1,"content"],[1,"menu-title"],[1,"menu-sub-title"],["id","customerCenterBoxOrderList",1,"item-menu",3,"click"],["d","m20.71 19.29-3.4-3.39A7.92 7.92 0 0 0 19 11a8 8 0 1 0-8 8 7.92 7.92 0 0 0 4.9-1.69l3.39 3.4a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM5 11a6 6 0 1 1 6 6 6 6 0 0 1-6-6z","data-name","search"],["class","item-menu","id","customerCenterBoxEventList",3,"click",4,"ngIf"],["id","customerCenterBoxShoppingVoucher",1,"item-menu",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","100%","height","100%","viewBox","0 0 24 24",1,"icon"],["width","24","height","24","transform","rotate(-90 12 12)","opacity","0"],["d","M4 9h13l-1.6 1.2a1 1 0 0 0-.2 1.4 1 1 0 0 0 .8.4 1 1 0 0 0 .6-.2l4-3a1 1 0 0 0 0-1.59l-3.86-3a1 1 0 0 0-1.23 1.58L17.08 7H4a1 1 0 0 0 0 2z"],["d","M20 16H7l1.6-1.2a1 1 0 0 0-1.2-1.6l-4 3a1 1 0 0 0 0 1.59l3.86 3a1 1 0 0 0 .61.21 1 1 0 0 0 .79-.39 1 1 0 0 0-.17-1.4L6.92 18H20a1 1 0 0 0 0-2z"],["class","item-menu","id","customerCenterBoxWishlist",3,"click",4,"ngIf"],["class","item-menu","id","customerCenterBoxB2BTerms",3,"click",4,"ngIf"],["id","customerCenterBoxEditData",1,"item-menu",3,"click"],["width","24","height","24","opacity","0"],["d","M12 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0-6a2 2 0 1 1-2 2 2 2 0 0 1 2-2z"],["d","M12 13a7 7 0 0 0-7 7 1 1 0 0 0 2 0 5 5 0 0 1 10 0 1 1 0 0 0 2 0 7 7 0 0 0-7-7z"],["id","customerCenterBoxManageAddress",1,"item-menu",3,"click"],["d","M12 2a8 8 0 0 0-8 7.92c0 5.48 7.05 11.58 7.35 11.84a1 1 0 0 0 1.3 0C13 21.5 20 15.4 20 9.92A8 8 0 0 0 12 2zm0 17.65c-1.67-1.59-6-6-6-9.73a6 6 0 0 1 12 0c0 3.7-4.33 8.14-6 9.73z"],["d","M12 6a3.5 3.5 0 1 0 3.5 3.5A3.5 3.5 0 0 0 12 6zm0 5a1.5 1.5 0 1 1 1.5-1.5A1.5 1.5 0 0 1 12 11z"],["class","item-menu","id","customerCenterBoxChangePassword",3,"click",4,"ngIf"],["id","customerCenterBoxChangeEmail",1,"item-menu",3,"click"],["d","M19 4H5a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3zm-.67 2L12 10.75 5.67 6zM19 18H5a1 1 0 0 1-1-1V7.25l7.4 5.55a1 1 0 0 0 .6.2 1 1 0 0 0 .6-.2L20 7.25V17a1 1 0 0 1-1 1z"],["class","item-menu hideme","id","customerCenterBoxCustomReport",3,"click",4,"ngIf"],["class","item-menu","id","customerCenterBoxRecurrency",3,"click",4,"ngIf"],["class","item-menu rits-action","data-action","account-subscriptions","id","customerCenterBoxRits",4,"ngIf"],["id","customerCenterBoxSavedCards",1,"item-menu",3,"click"],["d","M19 5H5a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V8a3 3 0 0 0-3-3zM4 8a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v1H4zm16 8a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-5h16z"],["d","M7 15h4a1 1 0 0 0 0-2H7a1 1 0 0 0 0 2zm8 0h2a1 1 0 0 0 0-2h-2a1 1 0 0 0 0 2z"],["id","customerCenterBoxEventList",1,"item-menu",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 448 512",1,"icon"],["fill","currentColor","d","M320 332v8c0 6.6-5.4 12-12 12h-68v68c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12v-68h-68c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h68v-68c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v68h68c6.6 0 12 5.4 12 12zm128-220v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v52h192V12c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-416 0v48h384v-48c0-8.8-7.2-16-16-16H48c-8.8 0-16 7.2-16 16zm384 352V192H32v272c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16z",1,""],["id","customerCenterBoxWishlist",1,"item-menu",3,"click"],["d","M12 21a1 1 0 0 1-.71-.29l-7.77-7.78a5.26 5.26 0 0 1 0-7.4 5.24 5.24 0 0 1 7.4 0L12 6.61l1.08-1.08a5.24 5.24 0 0 1 7.4 0 5.26 5.26 0 0 1 0 7.4l-7.77 7.78A1 1 0 0 1 12 21zM7.22 6a3.2 3.2 0 0 0-2.28.94 3.24 3.24 0 0 0 0 4.57L12 18.58l7.06-7.07a3.24 3.24 0 0 0 0-4.57 3.32 3.32 0 0 0-4.56 0l-1.79 1.8a1 1 0 0 1-1.42 0L9.5 6.94A3.2 3.2 0 0 0 7.22 6z"],["id","customerCenterBoxB2BTerms",1,"item-menu",3,"click"],["aria-hidden","true","focusable","false","data-prefix","fal","data-icon","signature","role","img","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512",1,"icon"],["d","M365.3 125.3l-106.5-106.5C246.7 6.742 230.5 0 213.5 0L64-.0001c-35.35 0-64 28.65-64 64l.0065 384c0 35.35 28.65 64 64 64H320c35.35 0 64-28.65 64-64v-277.5C384 153.5 377.3 137.3 365.3 125.3zM342.6 147.9C346.1 151.3 348.4 155.5 349.9 160H240C231.2 160 224 152.8 224 144V34.08c4.477 1.566 8.666 3.846 12.12 7.299L342.6 147.9zM352 448c0 17.64-14.36 32-32 32H64c-17.64 0-32-14.36-32-32V64c0-17.64 14.36-32 32-32h128v112C192 170.5 213.5 192 240 192H352V448z"],["id","customerCenterBoxChangePassword",1,"item-menu",3,"click"],["d","M17 8h-1V6.11a4 4 0 1 0-8 0V8H7a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3v-8a3 3 0 0 0-3-3zm-7-1.89A2.06 2.06 0 0 1 12 4a2.06 2.06 0 0 1 2 2.11V8h-4zM18 19a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1z"],["d","M12 12a3 3 0 1 0 3 3 3 3 0 0 0-3-3zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"],["id","customerCenterBoxCustomReport",1,"item-menu","hideme",3,"click"],["id","customerCenterBoxRecurrency",1,"item-menu",3,"click"],["data-icon","signature","role","img","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512",1,"icon"],["fill","currentColor","d","M432 224C352.4 224 288 288.4 288 368s64.38 144 144 144S576 447.6 576 368S511.6 224 432 224zM480 384h-54.25C420.4 384 416 379.6 416 374.3V304C416 295.2 423.2 288 432 288C440.8 288 448 295.2 448 304V352h32c8.838 0 16 7.164 16 16S488.8 384 480 384zM284.6 464H64c-8.822 0-16-7.176-16-16V192H448V128c0-35.35-28.65-64-64-64h-40V24c0-13.25-10.75-24-23.1-24S296 10.75 296 24V64h-144V24C152 10.75 141.3 0 128 0S104 10.75 104 24V64H64C28.65 64 0 92.65 0 128v320c0 35.35 28.65 64 64 64h267C312.6 499.1 296.9 482.8 284.6 464z"],["data-action","account-subscriptions","i
3d","customerCenterBoxRits",1,"item-menu","rits-action"],[1,"jet-policy-customer"],[1,"jet-modal","modal-policy",3,"ngClass"],["textPolicyPrivacy",""],[1,"jet-modal-content","modal-content"],[1,"jet-modal-close","modal-close",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 352 512",1,"icon"],["fill","currentColor","d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z",1,""],[3,"innerHtml"],[1,"btn-policy",3,"click"],[1,"title-policy"],[1,"check-policy",3,"click"],["type","checkbox",3,"click"],["checkPolicy",""],["for","checkPolicy"],["disabled","",1,"btn-policy",3,"click"],["btnConfirm",""],[1,"jet-modal","modal-policy"],[1,"jet-modal-content","modal-content","auto-height"],["type","button",1,"jet-modal-close","modal-close",3,"click"],[1,"term-b2b-login"]],template:function(n,r){1&n&&(C(0,pH,93,12,"div",0),C(1,vH,33,10,"div",1),C(2,_H,12,3,"div",2)),2&n&&(d("ngIf",0==r.showPolicyPrivacy&&r.loaded),c(1),d("ngIf",r.showPolicyPrivacy),c(1),d("ngIf",r.showTermB2B))},dependencies:[ui,en,bd,za],encapsulation:2})}return t})();var bm=(()=>(function(t){t.newOrder="01",t.onApproval="02",t.approved="03",t.dispatched="04",t.tracking="07",t.calledOff="06",t.concluded="05",t.inProduction="09",t.awaitingPayment="02",t.riskAnalysis="08"}(bm||(bm={})),bm))();let Wh=(()=>{class t{constructor(e){this.http=e}getOrder_(e){return this.http.post("/api",{request:"9d6978a7-7e90-442c-b39e-5ae56f0b731b/555859c3-53ae-4292-a618-c6dc318b62fa",params:`${e}`,json:null})}getOrder(e){return this.http.post("/api",{request:"9d6978a7-7e90-442c-b39e-5ae56f0b731b/555859c3-53ae-4292-a618-c6dc318b62fa",params:`${e}`,json:null})}getOrdersHistory(e,n,r){return this.http.post("/api",{request:"9d6978a7-7e90-442c-b39e-5ae56f0b731b/c7688673-2f88-4999-8751-5fa9020d87c8",params:"?page="+e+"&pageSize="+n+(r?"&idOrder="+r:""),json:null})}getAftersale(){return this.http.post("/api",{request:"9d6978a7-7e90-442c-b39e-5ae56f0b731b/93e8f08d-0c9d-413a-bd03-918ac3a3d850",json:null})}getTroquecommerce(){return this.http.post("/api",{request:"9d6978a7-7e90-442c-b39e-5ae56f0b731b/d01b484d-9513-41b0-ab8e-7437d38a8c90",json:null})}generateOrderComplete(e){return this.http.post("/api",{request:"9d6978a7-7e90-442c-b39e-5ae56f0b731b/c9772402-c654-4721-891a-52c966102185",json:e})}generatePreOrderComplete(e){return this.http.post("/api",{request:"9d6978a7-7e90-442c-b39e-5ae56f0b731b/96c30fae-905a-4271-8f55-7566b1984ab9",json:e})}processMercadoPago(e){return this.http.post("/api/processMercadoPago"+e,{request:"9d6978a7-7e90-442c-b39e-5ae56f0b731b/555859c3-53ae-4292-a618-c6dc318b62fa",json:null})}getNfeContent(e){return this.http.post("/api",{request:"9d6978a7-7e90-442c-b39e-5ae56f0b731b/95ebccc7-e8c0-42ba-9c84-f559836869a6",json:null,params:e})}getNfePdf(e){return this.http.post("https://ws.meudanfe.com/api/v1/get/nfe/xmltodanfepdf/API",e)}returnUrlCustomReport(){return this.http.post("/api/generateTokenForCustomReport",{request:"674e7d84-5f1e-48f3-b059-0e284bea1c0a/f28842b4-450d-43e4-acc0-54a3b7268c64",json:null})}getAllRecurrency(e,n,r){return this.http.post("/api",{request:"9d6978a7-7e90-442c-b39e-5ae56f0b731b/eb87bf61-68fb-46a7-896b-3ce83d834b38",params:"?page="+e+"&pageSize="+n+"&searchTerm="+r,json:null})}getRecurrentDetails(e){return this.http.post("/api",{request:"9d6978a7-7e90-442c-b39e-5ae56f0b731b/6b3902a5-4874-4cd7-a0ec-1ef189f50b73",params:"?IdRecurrentPlan="+e,json:null})}getFrequencyAvailable(e){return this.http.post("/api",{request:"9d6978a7-7e90-442c-b39e-5ae56f0b731b/88c6d257-67d0-44bd-839c-860bba77c7a7",params:"?idProducts="+e,json:null})}cancelRecurrency(e,n){return this.http.post("/api",{request:"9d6978a7-7e90-442c-b39e-5ae56f0b731b/5a1dce36-6c01-4df5-aa7a-e594d76c09f3",json:null,params:`${n}?idCompraAutomaticaCliente=`+e})}setNewFrequencyRecurrency(e,n,r){return this.http.post("/api",{request:"9d6978a7-7e90-442c-b39e-5ae56f0b731b/674f0894-6b2a-47cb-aee8-7eef24ef7dc2",json:null,params:`${n}?idCompraAutomaticaCliente=`+e+"&interval="+r})}setNewDayRecurrency(e,n,r){return this.http.post("/api",{request:"9d6978a7-7e90-442c-b39e-5ae56f0b731b/719f7b30-5a6b-4f34-bb15-353635f9457e",json:null,params:`${n}?idCompraAutomaticaCliente=`+e+"&day="+r})}setNewPaymentRecurrent(e,n,r){return this.http.post("/api",{request:"9d6978a7-7e90-442c-b39e-5ae56f0b731b/a94d9297-8a11-42aa-89c4-64270133a4e9",json:r,params:`${n}?idCompraAutomaticaCliente=`+e})}getOrderByToken(e){return this.http.post("/api",{request:"9d6978a7-7e90-442c-b39e-5ae56f0b731b/a019d609-d4ca-4346-a851-7b1a9011cb18",params:`${e}`,json:null})}getOrderAssistedSale(e,n){return this.http.post("/api",{request:"9d6978a7-7e90-442c-b39e-5ae56f0b731b/78c31414-80a5-43d5-a7df-ae5901ef61c7",params:`?idOrder=${e}&paymentLink=${n}`,json:null})}updateOrderAssistedSale(e){return this.http.post("/api",{request:"9d6978a7-7e90-442c-b39e-5ae56f0b731b/d01b484d-9513-41b0-ab8e-7437d38a8c91",json:e})}
3getPixStatus(e,n){return this.http.post("/api",{request:"9d6978a7-7e90-442c-b39e-5ae56f0b731b/50f30826-3442-470a-b7f9-cdfc5a29f965",params:`?idOrder=${e}&idGateway=${n}`})}static#e=this.\u0275fac=function(n){return new(n||t)(Mt(ko))};static#t=this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),yH=(()=>{class t{constructor(e){this.http=e}generateBilletItau(e){return this.http.post("/api",{request:"074e23d1-135b-497c-8841-28879af85fcc/0b7ca926-e196-4487-9da3-be2ebc21bcde",json:e})}static#e=this.\u0275fac=function(n){return new(n||t)(Mt(ko))};static#t=this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mv=(()=>{class t{get formCredit(){return this.creditCardForm.controls}get formCredit2(){return this.creditCardForm2.controls}constructor(e){this.paymentService=e,this.numberField=null,this.selectedIdBrand=0,this.selectedPaymentMethod=void 0,this.gateways=[],this.listPaymentMethod=[],this.paymentDiscountText=[],this.arrayEventListener=[],this.hasPagSeguroApp=!1,this.hasMercadoPago=!1,this.hasAppMax=!1,this.hasIugu=!1,this.twoCards=!1,this.valueFirstCard=0,this.valueSecondCard=0,this.installmentsByBrand=[],this.installmentsByBrand2=[],this.installmentNumber=0,this.installmentValue=0,this.installmentTotal=0,this.interestValue=0,this.installmentNumber2=0,this.installmentValue2=0,this.installmentTotal2=0,this.interestValue2=0,this.selectedIdBrand2=0}generateBilletItau(e){let n=new Date(e.dateOrder);n.setHours(n.getHours()+3);var r={idOrder:e.idOrder,amount:e.total,comment:"",nameDrawee:e.nameCustomer,documentNumberDrawee:e.cpf_cnpj,streetAddressDrawee:e.address.streetAddress+","+e.address.number+(e.address.complement??""),neighbourhoodDrawee:e.address.neighbourhood,zipCodeDrawee:e.address.zipCode,cityDrawee:e.address.city,stateDrawee:e.address.state,paymentDueDate:n.toISOString().split("T")[0],returnURL:"",additionalComment1:"",additionalComment2:"",additionalComment3:""};this.paymentService.generateBilletItau(r).subscribe(o=>{var s=document.createElement("form");s.action="https://shopline.itau.com.br/shopline/shopline.aspx",s.method="post",s.target="openShopline",s.id="openShopline",s.hidden=!0;var u=document.createElement("input");u.type="hidden",u.name="DC",u.id="DC",u.value=o.toString(),s.appendChild(u),document.getElementsByTagName("body")[0].appendChild(s),s.submit()},o=>{this.commomService.displayMessageUser("error","Erro ao gerar o boleto","Tente novamente ap\xf3s alguns segundos.")})}static#e=this.\u0275fac=function(n){return new(n||t)(Mt(yH))};static#t=this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function bH(t,i){if(1&t){const e=ve();a(0,"div",10)(1,"div",1)(2,"input",11,12),J("blur",function(){M(e);const r=Wt(3);return L(_(2).ordersFilter(r.value))})("keyup.enter",function(){M(e);const r=Wt(3);return L(_(2).ordersFilter(r.value))}),l()()()}if(2&t){const e=_(2);c(1),d("className",e.dataClassInput)}}function SH(t,i){if(1&t&&(a(0,"a",42),h(1,"Realizar Pagamento"),l()),2&t){const e=_(4).$implicit;d("className",_(3).dataClassButton+" btn-payment")("href",e.orderPayment.linkPayment,fe)}}function wH(t,i){if(1&t&&(ht(0),C(1,SH,2,2,"a",41),mt()),2&t){const e=_(3).$implicit;c(1),d("ngIf",null!=e.orderPayment.linkPayment&&e.orderPayment.linkPayment.length)}}function IH(t,i){if(1&t){const e=ve();a(0,"button",34),J("click",function(){M(e);const r=_(3).$implicit;return L(_(3).sharedCustomer.generateBilletItau(r))}),h(1," Realizar pagamento "),l()}2&t&&d("className",_(6).dataClassButton+" btn-payment")}function xH(t,i){if(1&t&&(ht(0),C(1,wH,2,1,"ng-container",2),C(2,IH,2,1,"ng-template",null,40,_i),mt()),2&t){const e=Wt(3),n=_(2).$implicit;c(1),d("ngIf",2!=n.orderPayment.idPaymentGateway)("ngIfElse",e)}}function DH(t,i){if(1&t&&(a(0,"div",38)(1,"span",39),h(2),l(),C(3,xH,4,2,"ng-container",30),l()),2&t){const e=_().$implicit,n=_(3);c(2),Ra(" Este \xe9 um dos pacotes do pedido ",e.orderCD.idSplitAgreegate," (",n.pad(e.orderCD.packageIdentification)," de ",n.pad(e.orderCD.packageQuantity),"). "),c(1),d("ngIf",3==e.idTypePayment&&("01"==e.statusCode||"02"==e.statusCode))}}
3function PH(t,i){if(1&t&&(ht(0),a(1,"strong"),h(2),l(),h(3," - "),mt()),2&t){const e=_(2).$implicit,n=_(3);c(2),dt("#Pacote ",n.pad(e.orderCD.packageIdentification),"")}}function TH(t,i){if(1&t&&(ht(0),a(1,"div",43),C(2,PH,4,1,"ng-container",30),h(3," Retirar em "),a(4,"strong"),h(5),a(6,"a",44),we(),a(7,"svg",45),B(8,"path",46),l()()()(),mt()),2&t){const e=_().$implicit,n=_(3);c(2),d("ngIf",e.orderCD.idSplitAgreegate),c(3),dt(" ",e.orderCD.name," "),c(1),hr("href","https://www.google.com/maps/place/",n.generatePlace(e.pickUpAddress),"",fe)}}function EH(t,i){if(1&t&&(a(0,"div",43),h(1," Receba sua encomenda at\xe9 "),a(2,"strong"),h(3),Wi(4,"date"),l(),h(5," via "),a(6,"strong"),h(7),l()()),2&t){const e=_(2).$implicit,n=_(3);c(3),de(vd(4,2,n.getDeliveryDateFormatted(e.dateOrder,e.deliveryTime),"dd/MM/yyyy")),c(4),de(e.shippingDescription)}}function LH(t,i){if(1&t&&(a(0,"div",43),h(1," Prazo para retirada: "),a(2,"strong"),h(3),l()()),2&t){const e=_(2).$implicit;c(3),dt(" ",0===(null==e.pickUpAddress?null:e.pickUpAddress.deliveryPickUpTime)?"Imediato":(null==e.pickUpAddress?null:e.pickUpAddress.deliveryPickUpTime)+((null==e.pickUpAddress?null:e.pickUpAddress.deliveryPickUpTime)>1?" Horas":" Hora")," ")}}function kH(t,i){if(1&t&&(C(0,EH,8,5,"div",47),C(1,LH,4,1,"div",47)),2&t){const e=_().$implicit,n=_(3);d("ngIf",!e.isDeliveryWithPickup&&n.shouldShowDeliveryDate(e.dateOrder,e.deliveryTime)),c(1),d("ngIf",e.isDeliveryWithPickup)}}function MH(t,i){if(1&t&&(a(0,"div",57),h(1),l()),2&t){const e=_().$implicit,n=_().$implicit,r=_(3);c(1),dt(" ",r.commomService.priceMask(e.priceTotalProductWithDiscount,n.orderInternational)," ")}}function FH(t,i){1&t&&(a(0,"span",58),h(1,"Brinde"),l())}function AH(t,i){if(1&t&&(a(0,"div",60)(1,"span",61),h(2),l(),a(3,"span",62),h(4),l()()),2&t){const e=i.$implicit;c(2),dt("",e.nameReference,": "),c(2),de(e.nameVariation)}}function NH(t,i){if(1&t&&(ht(0),C(1,AH,5,2,"div",59),mt()),2&t){const e=_().$implicit;c(1),d("ngForOf",e.orderItemVariations)}}function OH(t,i){if(1&t&&(ht(0),B(1,"div",63),mt()),2&t){const e=_().$implicit,n=_(4);c(1),d("innerHtml",n.formatHTML(e.personalization),ce)}}function RH(t,i){if(1&t&&(a(0,"div",48)(1,"div",49),B(2,"img",50),l(),a(3,"div",51)(4,"span",52),h(5),l(),a(6,"div",53),C(7,MH,2,1,"div",54),C(8,FH,2,0,"span",55),l(),C(9,NH,2,1,"ng-container",30),C(10,OH,2,1,"ng-container",30),a(11,"div",56),h(12),l()()()),2&t){const e=i.$implicit;c(2),Ue("src",e.image,fe),Ue("alt",e.nameProduct),c(3),dt(" ",e.nameProduct," "),c(2),d("ngIf",!e.isGift),c(1),d("ngIf",e.isGift),c(1),d("ngIf",e.orderItemVariations),c(1),d("ngIf",e.personalization),c(2),dt(" Qtd.: ",e.quantity," ")}}function BH(t,i){1&t&&(ht(0),a(1,"a",64),h(2," Visualizar todos os produtos "),l(),mt())}function jH(t,i){if(1&t&&(a(0,"a",42),h(1,"Realizar Pagamento"),l()),2&t){const e=_(4).$implicit;d("className",_(3).dataClassButton+" btn-payment")("href",e.orderPayment.linkPayment,fe)}}function VH(t,i){if(1&t&&(ht(0),C(1,jH,2,2,"a",41),mt()),2&t){const e=_(3).$implicit;c(1),d("ngIf",null!=e.orderPayment.linkPayment&&e.orderPayment.linkPayment.length)}}function HH(t,i){if(1&t){const e=ve();a(0,"button",34),J("click",function(){M(e);const r=_(3).$implicit;return L(_(3).sharedCustomer.generateBilletItau(r))}),h(1," Realizar pagamento "),l()}2&t&&d("className",_(6).dataClassButton+" btn-payment")}function zH(t,i){if(1&t&&(ht(0),C(1,VH,2,1,"ng-container",2),C(2,HH,2,1,"ng-template",null,40,_i),mt()),2&t){const e=Wt(3),n=_(2).$implicit;c(1),d("ngIf",2!=n.orderPayment.idPaymentGateway)("ngIfElse",e)}}function qH(t,i){if(1&t&&(a(0,"div",33),C(1,zH,4,2,"ng-container",30),l()),2&t){const e=_().$implicit;c(1),d("ngIf",3==e.idTypePayment&&("01"==e.statusCode||"02"==e.statusCode))}}function $H(t,i){if(1&t){const e=ve();a(0,"button",34),J("click",function(){M(e);const r=_().$implicit;return L(_(3).btnReOrder(r.idOrder))}),we(),a(1,"svg",65),B(2,"path",66)(3,"path",67),l(),h(4," Comprar novamente "),l()}2&t&&d("className",_(4).dataClassButton+" btn-add")}function UH(t,i){if(1&t){const e=ve();a(0,"div",15)(1,"div",16)(2,"div",17)(3,"span",18),h(4,"Data do Pedido"),l(),a(5,"span",19),h(6),l()(),a(7,"div",20)(8,"span",18),h(9,"Valor"),l(),a(10,"span",19),h(11),l()(),a(12,"div",21)(13,"span",18),h(14,"Pedido"),l(),a(15,"span",19)(16,"strong"),h(17),l()()(),a(18,"div",22)(19,"span",23),h(20),l()()(),a(21,"div",24),C(22,DH,4,4,"div",25),C(23,TH,9,3,"ng-container",2),C(24,kH,2,2,"ng-template",null,26,_i),l(),a(26,"div",27)(27,"div",28),C(28,RH,13,8,"div",29),Wi(29,"slice"),C(30,BH,3,0,"ng-container",30),l(),a(31,"div",31),C(32,qH,2,1,"div",32),a(33,"div",33)(34,"button",34),J("click",function(){const o=M(e).$implicit;return L(_(3).goToDetails(o.idOrder))}),h(35," Ver detalhes do pedido "),l()(),a(36,"div",33)(37,"button",34),J("click",function(){const o=M(e).$implicit;return L(_(3).btnPrintOrder(o.idOrder))}),we(),a(38,"svg",35),B(39,"path",36),l(),h(40," Imprimir pedido "),l()(),Pe(),a(41,"div",33),C(42,$H,5,1,"button",37),l()()()()}if(2&t){const e=i.$implicit,n=Wt(25),r=_(3);c(6),de(r.formatDate(e.dateOrder)),c(5),de(r.commomService.priceMask(e.total,e.orderInternational)),c(6),dt("# ",e.idOrder,""),c(2),zl("background-color",e.statusColor),c(1),de(e.nameStatus),c(2),d("ngIf",e.orderCD&&e.orderCD.idSplitAgreegate),c(1),d("ngIf",e.isDeliveryWithPickup&&e.orderCD)("ngIfElse",n),c(5),d("ngForOf",Wf(29,15,e.orderItems,0,4)),c(2),d("ngIf",e.orderItems.length>4),c(2),d("ngIf",!e.orderCD||!e.orderCD.idSplitAgreegate),c(2),d("className",r.dataClassButton+" btn-preview"),c(3),d("className",r.dataClassButton+" btn-print"),c(5),d("ngIf",r.showPriceB2C)}}function GH(t,i){if(1&t&&(a(0,"div",13),C(1,UH,43,19,"div",14),l()),2&t){const e=_(2);c(1),d("ngForOf",e.filteredOrderHistory)}}function WH(t,i){1&t&&(a(0,"div",1)(1,"div",68),h(2,"Nenhum pedido encontrado!"),l()()),2&t&&d("className",_(2).dataClassContainer+" no-orders")}function JH(t,i){if(1&t){const e=ve();a(0,"button",77),J("click",function(){return M(e),L(_(3).changePage(1))}
3),h(1,"<<"),l()}}function ZH(t,i){if(1&t){const e=ve();a(0,"button",78),J("click",function(){M(e);const r=_(3);return L(r.changePage(r.pagerSettings.pageNumber-1))}),h(1,"<"),l()}2&t&&d("value",_(3).pagerSettings.pageNumber-1)}const QH=function(t){return{active:t}};function YH(t,i){if(1&t){const e=ve();a(0,"button",79),J("click",function(){const o=M(e).$implicit;return L(_(3).changePage(o))}),a(1,"span"),h(2),l()()}if(2&t){const e=i.$implicit,n=_(3);d("ngClass",Oe(2,QH,e==n.pagerSettings.pageNumber)),c(2),de(e)}}function KH(t,i){if(1&t){const e=ve();a(0,"button",80),J("click",function(){M(e);const r=_(3);return L(r.changePage(r.pagerSettings.pageNumber+1))}),h(1,">"),l()}2&t&&d("value",_(3).pagerSettings.pageNumber+1)}function XH(t,i){if(1&t){const e=ve();a(0,"button",81),J("click",function(){M(e);const r=_(3);return L(r.changePage(r.pagerSettings.pageCount))}),h(1,">>"),l()}2&t&&d("value",_(3).pagerSettings.pageCount)}function ez(t,i){if(1&t&&(a(0,"div",69)(1,"div",70)(2,"div",71),C(3,JH,2,0,"button",72),C(4,ZH,2,1,"button",73),C(5,YH,3,4,"button",74),C(6,KH,2,1,"button",75),C(7,XH,2,1,"button",76),l()()()),2&t){const e=_(2);c(3),d("ngIf",e.pagerSettings.pageNumber>1),c(1),d("ngIf",e.pagerSettings.pageNumber>1),c(1),d("ngForOf",e.showPage()),c(1),d("ngIf",e.pagerSettings.pageNumber<e.pagerSettings.pageCount),c(1),d("ngIf",e.pagerSettings.pageNumber<e.pagerSettings.pageCount)}}function tz(t,i){if(1&t&&(ht(0),C(1,bH,4,1,"div",6),C(2,GH,2,1,"div",7),C(3,WH,3,1,"div",8),C(4,ez,8,5,"div",9),mt()),2&t){const e=_();c(1),d("ngIf",e.orderHistory&&void 0!==(null==e.orderHistory?null:e.orderHistory.orderSimples)&&(null==e.orderHistory?null:e.orderHistory.orderSimples.length)>0),c(1),d("ngIf",e.orderHistory&&void 0!==(null==e.orderHistory?null:e.orderHistory.orderSimples)&&(null==e.orderHistory?null:e.orderHistory.orderSimples.length)>0),c(1),d("ngIf",!(e.orderHistory&&0!=e.orderHistory.orderSimples.length||e.loading)),c(1),d("ngIf",e.orderHistory&&void 0!==(null==e.orderHistory?null:e.orderHistory.orderSimples)&&(null==e.orderHistory?null:e.orderHistory.orderSimples.length)>0)}}function nz(t,i){1&t&&(a(0,"div",13)(1,"div",15)(2,"div",82)(3,"div",83),B(4,"div",84)(5,"div",84)(6,"div",84)(7,"div",84),l(),B(8,"div",85),a(9,"div",83),B(10,"div",86),a(11,"div",87),B(12,"div",84)(13,"div",84)(14,"div",84),l()()()(),a(15,"div",15)(16,"div",82)(17,"div",83),B(18,"div",84)(19,"div",84)(20,"div",84)(21,"div",84),l(),B(22,"div",85),a(23,"div",83),B(24,"div",86),a(25,"div",87),B(26,"div",84)(27,"div",84)(28,"div",84),l()()()()())}function iz(t,i){if(1&t){const e=ve();a(0,"div",88)(1,"div",89)(2,"button",90),J("click",function(){return M(e),L(_().closeModalAftersale())}),we(),a(3,"svg",91),B(4,"path",92),l(),Pe(),a(5,"span"),h(6,"Fechar"),l()(),B(7,"div",93),l()()}if(2&t){const e=_();c(7),d("innerHTML",e.aftersaleEmbed,ce)}}function rz(t,i){if(1&t){const e=ve();a(0,"div",94)(1,"div",89)(2,"button",90),J("click",function(){return M(e),L(_().closeModalTroquecommerce())}),we(),a(3,"svg",91),B(4,"path",92),l(),Pe(),a(5,"span"),h(6,"Fechar"),l()(),B(7,"div",93),l()()}if(2&t){const e=_();c(7),d("innerHTML",e.troquecommerceEmbed,ce)}}let oz=(()=>{class t{constructor(e,n,r,o,s,u){this.orderService=e,this.checkoutService=n,this.sanitizer=o,this.shareDataCommom=s,this.sharedCustomer=u,this.dataClassContainer="",this.dataClassButton="",this.dataClassTable="",this.dataClassInput="",this.pagerSettings={path:window.location.pathname,pageNumber:1,pageSize:10,pageCount:0,totalItems:0},this.loading=!0,this.filterString="",this.aftersaleStatus=!1,this.aftersaleEmbed=void 0,this.troquecommerceStatus=!1,this.troquecommerceEmbed=void 0,this.emailCustomer="",this.isLoggedB2B=!1,this.typeStatus=bm,this.commomService=r}ngOnInit(){this.dataClassContainer=""!=this.dataClassContainer?"jet-container "+this.dataClassContainer:"jet-container",this.dataClassInput=""!=this.dataClassInput?"jet-input "+this.dataClassInput:"jet-input",this.dataClassButton=""!=this.dataClassButton?"jet-button "+this.dataClassButton:"jet-button",this.shareDataCommom.currentCompany$.subscribe(e=>{null!=e&&(this.company=e,this.shareDataCommom.authorizedB2B$.subscribe(n=>{null!=n&&(this.isLoggedB2B=n,this.showPriceB2C=!!this.isLoggedB2B||this.company.showPriceB2C)}))}),this.commomService.finishLoadComponent("onJetCustomerLoaded",{detail:{type:"customer",value:{name:decodeURIComponent("Hist\xf3rico de Pedidos"),href:window.location.href}}}
3),this.getOrders(),this.getAftersale(),this.getTroquecommerce()}getAftersale(){this.orderService.getAftersale().subscribe(e=>{if(this.aftersaleStatus=e?.status,this.aftersaleStatus){let n;n=e.url.replace(/\/$/,""),!n.startsWith("http://")&&!n.startsWith("https://")&&(n="https://"+n),this.aftersaleUrl=n}})}getTroquecommerce(){this.orderService.getTroquecommerce().subscribe(e=>{if(this.troquecommerceStatus=e?.status,this.troquecommerceStatus){let n;n=e.url.replace(/\/$/,""),!n.startsWith("http://")&&!n.startsWith("https://")&&(n="https://"+n),this.troquecommerceUrl=n}})}getOrders(e=1,n=10){this.ordersSubs$=this.orderService.getOrdersHistory(e,n).subscribe(r=>{this.orderHistory=r,this.filteredOrderHistory=this.orderHistory.orderSimples,this.setupPageSettings(this.orderHistory.settings.totalItemCount,this.orderHistory.settings.pageCount,e),window.scrollTo({top:0,behavior:"smooth"}),this.commomService.finishLoadComponent("onJetCustomerOrdersLoaded"),this.loading=!1},r=>{this.loading=!1})}getOrderById(e){this.ordersSubs$=this.orderService.getOrdersHistory(1,10,e).subscribe(n=>{let r=JSON.parse(JSON.stringify(n));this.orderHistory=r,this.filteredOrderHistory=this.orderHistory.orderSimples,this.setupPageSettings(1,1,1)},n=>{this.orderHistory={orderSimples:[],settings:void 0,filters:void 0},this.filteredOrderHistory=this.orderHistory.orderSimples,this.setupPageSettings(0,0,0)})}btnAftersale(e){this.orderService.getOrder(e).subscribe(n=>{this.aftersaleEmbed=this.sanitizer.bypassSecurityTrustHtml(`<iframe border="0" src="${this.aftersaleUrl??""}/order/${e}/${n.email}" width="100%" height="100%" scrolling="auto" frameborder="0"></iframe>`)})}closeModalAftersale(){this.aftersaleEmbed=void 0}btnTroquecommerce(e){this.orderService.getOrder(e).subscribe(n=>{window.open(`${this.troquecommerceUrl}?order=${e}&client=${n.email}`,"_blank")})}closeModalTroquecommerce(){this.troquecommerceEmbed=void 0}goToDetails(e){window.location.href=document.location.href+"/details/"+e}btnPrintOrder(e){var n=window.open(`/customer/order/details/${e}`,"Print","left=200, top=200, width=950, height=500, toolbar=0, resizable=0");n.addEventListener("load",()=>{setTimeout(function(){n.document.querySelectorAll("jet-order-data .title-box")[0].click(),n.document.querySelectorAll("jet-order-data .title-box")[1].click(),n.print(),n.close()},1e3)},{passive:!0})}btnReOrder(e){var n=this;return(0,Zs.Z)(function*(){n.reOrderSubs$=yield n.orderService.getOrder(e).subscribe(function(){var r=(0,Zs.Z)(function*(o){if(o){let s="",u=0,v=o.orderItems.length;const w=o.orderItems;for(const P of w){u++;try{let F=null!=P.idSku?P.idSku:0;(yield n.checkoutService.addProductToCart(P.idProduct,F,P.quantity,!1).toPromise())?n.commomService.finishLoadComponent("onJetPushDataLayerEvent",{detail:{type:"add_to_cart",products:[P],sku:F}}):s+=P.idProduct+","}catch{s+=P.idProduct+","}u==v&&n.showMessageReOrder(v,s)}}});return function(o){return r.apply(this,arguments)}}())})()}showMessageReOrder(e,n){let r="Produtos adicionados no carrinho com sucesso";n.length>0&&(r="O produto "+(n=n.substring(0,n.length-1))+" n\xe3o p\xf4de ser adicionado ao carrinho.",n.length>1&&(r="Os produtos "+n+" n\xe3o foram adicionados ao carrinho.")),1==e&&n.length>0||n.indexOf(",")>-1&&n.split(",").length==e?this.commomService.displayMessageUser("error","Produtos n\xe3o adicionados ao Carrinho",r):(r+="<br>Voc\xea ser\xe1 redirecionado para o checkout.",this.commomService.displayMessageUser("success","Adicionado ao Carrinho",r),setTimeout(()=>{window.location.href="/checkout"},4001))}changePage(e){e>this.pagerSettings.pageCount||e<1||this.getOrders(e,this.pagerSettings.pageSize)}showPage(){let e=[];for(var n=this.pagerSettings.pageNumber-2;n<this.pagerSettings.pageNumber+2+1;n++)n>0&&n<=this.pagerSettings.pageCount&&e.push(n);return e}formatDate(e){let n=new Date(e);return n.toLocaleDateString()+" "+n.toLocaleTimeString()}setupPageSettings(e,n,r){this.pagerSettings.pageNumber=r,this.pagerSettings.totalItems=e,this.pagerSettings.pageCount=n}ordersFilter(e){e.length>0?(e=e.replace(/[^0-9]/g,""),this.getOrderById(e)):this.getOrders(1,10)}normalizeText(e){return e.replace(/(.+?)\s*-\s*((?:.+?:.+?(?:,|$))+)/g,(o,s,u)=>{const v=/(.+?):(.+?)(?:,|$)/g;let P,w="";for(;null!==(P=v.exec(u));)w+=`<div class="variation"><span class="name-reference">${P[1].trim()}: </span><span class="value-reference">${P[2].trim()}</span></div>`;return`<span class="name-product">${s}</span><div class="variations">${w}</div>`})}pad(e){return null==e&&(e=0),e<10?"0"+e.toString():e.toString()}addBusinessDays(e,n){const r=new Date(e);for(;n>0;){r.setDate(r.getDate()+1);const o=r.getDay();0!==o&&6!==o&&n--}return r}getDeliveryDateFormatted(e,n){return this.addBusinessDays(e,n||0).toISOString().split("T")[0]}shouldShowDeliveryDate(e,n){const r=this.addBusinessDays(e,n||0),o=new Date;return r.setHours(0,0,0,0),o.setHours(0,0,0,0),r>o}generatePlace(e){const{streetAddress:n,number:r,complement:o,zipCode:s,city:u,state:v}=e;
3return[n,r,o,s,u,v].filter(Boolean).map(w=>w.trim().replace(/ /g,"+").replace(/[^\w+]/g,"")).join("+")}formatHTML(e){return e.replace(/<div><span>\s*(.*?)\s*<\/span><\/div>/,'<div class="title">$1</div>').replace(/<div><span>\s*(.*?)\s*<\/span>\s*(.*?)\s*<\/div>/g,(r,o,s)=>""===s.trim()?`<div class="option"><span class="option-value">${o}</span></div>`:`<div class="option"><span class="option-title">${o}: </span><span class="option-value">${s}</span></div>`)}ngOnDestroy(){this.ordersSubs$.unsubscribe(),this.reOrderSubs$.unsubscribe()}static#e=this.\u0275fac=function(n){return new(n||t)($(Wh),$(Ss),$(qt),$(gl),$(yn),$(mv))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-order-history"]],inputs:{dataClassContainer:["data-class-container","dataClassContainer"],dataClassButton:["data-class-button","dataClassButton"],dataClassTable:["data-class-table","dataClassTable"],dataClassInput:["data-class-input","dataClassInput"]},decls:7,vars:5,consts:[[1,"jet-order-history"],[3,"className"],[4,"ngIf","ngIfElse"],["loadingFake",""],["class","jet-aftersale jet-modal",4,"ngIf"],["class","jet-troquecommerce jet-modal",4,"ngIf"],["class","search",4,"ngIf"],["class","order-list",4,"ngIf"],[3,"className",4,"ngIf"],["class","jet-pagination",4,"ngIf"],[1,"search"],["type","tel","placeholder","Buscar por pedido",3,"blur","keyup.enter"],["orderInput",""],[1,"order-list"],["class","order-item",4,"ngFor","ngForOf"],[1,"order-item"],[1,"order-header"],[1,"item","date"],[1,"item-name"],[1,"item-value"],[1,"item","total"],[1,"item","order"],[1,"item","status"],[1,"status-name"],[1,"order-split"],["class","split-count",4,"ngIf"],["receive",""],[1,"order-items"],[1,"order-products"],["class","product",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"order-actions"],["class","item",4,"ngIf"],[1,"item"],[3,"className","click"],["xmlns","http://www.w3.org/2000/svg","width","15","height","15","viewBox","0 0 15 15","fill","none"],["d","M2.34375 4.6875H1.875V1.875C1.875 0.84082 2.71582 0 3.75 0H10.4736C10.9717 0 11.4492 0.196289 11.8008 0.547852L12.5771 1.32422C12.9287 1.67578 13.125 2.15332 13.125 2.65137V4.6875H12.6562V2.65137C12.6562 2.2793 12.5068 1.92188 12.2432 1.6582L11.4668 0.881836C11.2031 0.618164 10.8457 0.46875 10.4736 0.46875H3.75C2.97363 0.46875 2.34375 1.09863 2.34375 1.875V4.6875ZM13.125 6.09375H1.875C1.09863 6.09375 0.46875 6.72363 0.46875 7.5V11.25C0.46875 11.5078 0.679688 11.7188 0.9375 11.7188H1.875V10.3125C1.875 9.79395 2.29395 9.375 2.8125 9.375H12.1875C12.7061 9.375 13.125 9.79395 13.125 10.3125V11.7188H14.0625C14.3203 11.7188 14.5312 11.5078 14.5312 11.25V7.5C14.5312 6.72363 13.9014 6.09375 13.125 6.09375ZM13.125 12.1875V14.0625C13.125 14.5811 12.7061 15 12.1875 15H2.8125C2.29395 15 1.875 14.5811 1.875 14.0625V12.1875H0.9375C0.418945 12.1875 0 11.7686 0 11.25V7.5C0 6.46582 0.84082 5.625 1.875 5.625H13.125C14.1592 5.625 15 6.46582 15 7.5V11.25C15 11.7686 14.5811 12.1875 14.0625 12.1875H13.125ZM2.8125 9.84375C2.55469 9.84375 2.34375 10.0547 2.34375 10.3125V14.0625C2.34375 14.3203 2.55469 14.5312 2.8125 14.5312H12.1875C12.4453 14.5312 12.6562 14.3203 12.6562 14.0625V10.3125C12.6562 10.0547 12.4453 9.84375 12.1875 9.84375H2.8125ZM12.6562 7.5C12.7806 7.5 12.8998 7.54939 12.9877 7.63729C13.0756 7.7252 13.125 7.84443 13.125 7.96875C13.125 8.09307 13.0756 8.2123 12.9877 8.30021C12.8998 8.38811 12.7806 8.4375 12.6562 8.4375C12.5319 8.4375 12.4127 8.38811 12.3248 8.30021C12.2369 8.2123 12.1875 8.09307 12.1875 7.96875C12.1875 7.84443 12.2369 7.7252 12.3248 7.63729C12.4127 7.54939 12.5319 7.5 12.6562 7.5Z","fill","black"],[3,"className","click",4,"ngIf"],[1,"split-count"],[1,"split-text"],["billetItau",""],["target","_blank",3,"className","href",4,"ngIf"],["target","_blank",3,"className","href"],[1,"split-location"],["title","Visualizar ponto de retirada","target","_blank",3,"href"],["xmlns","http://www.w3.org/2000/svg","width","11","height","15","viewBox","0 0 11 15","fill","none"],["d","M10.0833 5.5C10.0833 2.96771 8.03229 0.916667 5.5 0.916667C2.96771 0.916667 0.916667 2.96771 0.916667 5.5C0.916667 5.94688 1.07135 6.5599 1.39219 7.31615C1.70443 8.05807 2.14271 8.86302 2.64115 9.66797C3.61797 11.2521 4.7724 12.7674 5.50286 13.6784C6.23047 12.7674 7.38776 11.2521 8.36458 9.66797C8.86016 8.86302 9.3013 8.05521 9.61354 7.31615C9.92865 6.5599 10.0833 5.94688 10.0833 5.5ZM11 5.5C11 8.00365 7.64844 12.4609 6.17891 14.3C5.82656 14.7383 5.17344 14.7383 4.82109
314.3C3.35156 12.4609 0 8.00365 0 5.5C0 2.46354 2.46354 0 5.5 0C8.53646 0 11 2.46354 11 5.5ZM4.125 5.5C4.125 5.86467 4.26987 6.21441 4.52773 6.47227C4.78559 6.73013 5.13533 6.875 5.5 6.875C5.86467 6.875 6.21441 6.73013 6.47227 6.47227C6.73013 6.21441 6.875 5.86467 6.875 5.5C6.875 5.13533 6.73013 4.78559 6.47227 4.52773C6.21441 4.26987 5.86467 4.125 5.5 4.125C5.13533 4.125 4.78559 4.26987 4.52773 4.52773C4.26987 4.78559 4.125 5.13533 4.125 5.5ZM5.5 7.79167C4.89221 7.79167 4.30932 7.55022 3.87955 7.12045C3.44978 6.69068 3.20833 6.10779 3.20833 5.5C3.20833 4.89221 3.44978 4.30932 3.87955 3.87955C4.30932 3.44978 4.89221 3.20833 5.5 3.20833C6.10779 3.20833 6.69068 3.44978 7.12045 3.87955C7.55022 4.30932 7.79167 4.89221 7.79167 5.5C7.79167 6.10779 7.55022 6.69068 7.12045 7.12045C6.69068 7.55022 6.10779 7.79167 5.5 7.79167Z","fill","black"],["class","split-location",4,"ngIf"],[1,"product"],[1,"product-image"],["width","60","onerror","this.src='./assets/no-image.png'",3,"src","alt"],[1,"product-data"],[1,"product-name","notranslate"],[1,"product-value"],["class","value",4,"ngIf"],["class","product-gift",4,"ngIf"],[1,"product-quantity"],[1,"value"],[1,"product-gift"],["class","product-variation",4,"ngFor","ngForOf"],[1,"product-variation"],[1,"reference"],[1,"variation"],[1,"product-personalization",3,"innerHtml"],["href","/customer/order/details/order.idOrder","title","Visualizar todos os produtos",1,"view-all"],["xmlns","http://www.w3.org/2000/svg","width","17","height","18","viewBox","0 0 17 18","fill","none"],["d","M7.23335 5.12697V5.7811H9.85753V5.12697C9.85753 4.40537 9.26914 3.81869 8.54544 3.81869C7.82174 3.81869 7.23335 4.40537 7.23335 5.12697ZM6.57731 6.43524H4.93719C4.75678 6.43524 4.60917 6.58242 4.60917 6.76231V11.6683C4.60917 12.3899 5.19756 12.9766 5.92126 12.9766H11.1696C11.8933 12.9766 12.4817 12.3899 12.4817 11.6683V6.76231C12.4817 6.58242 12.3341 6.43524 12.1537 6.43524H10.5136V8.07059C10.5136 8.25048 10.366 8.39766 10.1856 8.39766C10.0051 8.39766 9.85753 8.25048 9.85753 8.07059V6.43524H7.23335V8.07059C7.23335 8.25048 7.08574 8.39766 6.90533 8.39766C6.72492 8.39766 6.57731 8.25048 6.57731 8.07059V6.43524ZM6.57731 5.7811V5.12697C6.57731 4.04355 7.45887 3.16455 8.54544 3.16455C9.63202 3.16455 10.5136 4.04355 10.5136 5.12697V5.7811H12.1537C12.697 5.7811 13.1378 6.2206 13.1378 6.76231V11.6683C13.1378 12.7518 12.2562 13.6308 11.1696 13.6308H5.92126C4.83469 13.6308 3.95312 12.7518 3.95312 11.6683V6.76231C3.95312 6.2206 4.39391 5.7811 4.93719 5.7811H6.57731Z","fill","black"],["d","M16.5672 7.28962C16.7532 7.28962 16.8975 7.12638 16.8633 6.94036C16.4951 4.97385 15.4397 3.12883 13.7389 1.80391C10.0375 -1.0889 4.69227 -0.432131 1.79946 3.2693L1.79567 3.2731L0.607414 4.85996V3.65515C0.607414 3.48811 0.470746 3.35144 0.303707 3.35144C0.136668 3.35144 0 3.48811 0 3.65515V5.77109C0 5.93812 0.136668 6.07479 0.303707 6.07479H2.41964C2.58668 6.07479 2.72335 5.93812 2.72335 5.77109C2.72335 5.60405 2.58668 5.46738 2.41964 5.46738H0.911121L2.2816 3.64134C4.96561 0.205654 9.92742 -0.40176 13.3631 2.28225C14.9348 3.50847 15.9142 5.21302 16.2597 7.03147C16.2863 7.17953 16.4154 7.28962 16.5672 7.28962ZM16.6963 10.9341H14.5804C14.4133 10.9341 14.2767 11.0708 14.2767 11.2378C14.2767 11.4049 14.4133 11.5415 14.5804 11.5415H16.1382L14.7678 13.3676C12.0837 16.8032 7.12193 17.4107 3.68624 14.7266C2.11456 13.4966 1.13511 11.7921 0.789638 9.97743C0.763064 9.82937 0.633988 9.71928 0.482135 9.71928C0.296114 9.71928 0.151854 9.88252 0.186021 10.0685C0.554265 12.035 1.60965 13.8801 3.31041 15.2088C7.01184 18.1016 12.3571 17.4448 15.2461 13.7434L15.2499 13.7396L16.3926 12.2211V13.3538C16.3926 13.5208 16.5293 13.6575 16.6963 13.6575C16.8633 13.6575 17 13.5208 17 13.3538V11.2378C17 11.0708 16.8633 10.9341 16.6963 10.9341Z","fill","black"],[1,"order-empty"],[1,"jet-pagination"],[1,"pagination"],["aria-label","Pagination","role","navigation"],["aria-label","Primeira P\xe1gina","aria-current","false","tabindex","0","value","1","class","item",3,"click",4,"ngIf"],["aria-label","P\xe1gina Anterior","aria-current","false","tabindex","0","class","item",3,"value","click",4,"ngIf"],["aria-current","true","aria-disabled","false","tabindex","0","type","pageItem","class","item",3,"ngClass","click",4,"ngFor","ngForOf"],["aria-label","Pr\xf3xima P\xe1gina","aria-current","false","tabindex","0","class","item",3,"value","click",4,"ngIf"],["aria-label","\xdaltima P\xe1gina","aria-current","false","tabindex","0","class","item",3,"value","click",4,"ngIf"],["aria-label","Primeira P\xe1gina","aria-current","false","tabindex","0","value","1",1,"item",3,"click"],["aria-label","P\xe1gina Anterior","aria-current","false","tabindex","0",1,"item",3,"value","click"],["aria-current","true","aria-disabled","false","tabindex","0","type","pageItem",1,"item",3,"ngClass","click"],["aria-label","Pr\xf3xima P\xe1gina","aria-current","false","tabindex","0",1,"item",3,"value","click"],["aria-label","\xdaltima P\xe1gina","aria-current","false","tabindex","0",1,"item",3,"value","click"],[1,"skeleton-wrapper","transparent"],[1,"skeleton-actions"],[1,"skeleton-box","tiny"],[1,"skeleton-text","short"],[1,"skeleton-box","mini"],[1,"skeleton-box","transparent","mini"],[1,"jet-aftersale","jet-modal"],[1,"jet-modal-content","modal
3-content","content-center"],[1,"jet-modal-close","modal-close",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 352 512",1,"icon"],["fill","currentColor","d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z",1,""],[1,"content-center",3,"innerHTML"],[1,"jet-troquecommerce","jet-modal"]],template:function(n,r){if(1&n&&(a(0,"div",0)(1,"div",1),C(2,tz,5,4,"ng-container",2),C(3,nz,29,0,"ng-template",null,3,_i),l(),C(5,iz,8,1,"div",4),C(6,rz,8,1,"div",5),l()),2&n){const o=Wt(4);c(1),d("className",r.dataClassContainer),c(1),d("ngIf",r.orderHistory&&void 0!==(null==r.orderHistory?null:r.orderHistory.orderSimples))("ngIfElse",o),c(3),d("ngIf",r.aftersaleEmbed),c(1),d("ngIf",r.troquecommerceEmbed)}},dependencies:[ui,ei,en,mp,bd],encapsulation:2})}return t})();function sz(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function az(t,i){1&t&&(a(0,"span"),h(1,"Informe um email v\xe1lido"),l())}function lz(t,i){if(1&t&&(a(0,"div",9),C(1,sz,2,0,"span",10),C(2,az,2,0,"span",10),l()),2&t){const e=_();c(1),d("ngIf",e.f.email.errors.required),c(1),d("ngIf",null==e.f.email.errors?null:e.f.email.errors.pattern)}}function cz(t,i){1&t&&(a(0,"div",11)(1,"span"),h(2,"ou"),l()())}const dz=function(t){return{"jet-btn-loading":t}};let uz=(()=>{class t{constructor(e,n,r,o){this.fb=e,this.customerService=n,this.commomService=r,this.sharedDataCommomService=o,this.loading=!1,this.isInternational=!1}ngOnInit(){this.internationalSubs$=this.sharedDataCommomService.international$.subscribe(e=>{e&&(this.isInternational=e.country?.id>1)}),this.recoverForm=this.fb.group({email:["",[oe.required,oe.pattern(/^(([^<>()[\]\\.,;:\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,}))$/)]]})}get f(){return this.recoverForm.controls}
3sendEmail(){if(this.recoverForm.invalid)return this.recoverForm.controls.email.markAsDirty(),!1;this.loading=!0,this.customerService.sendEmailRecover(this.f.email.value).subscribe(e=>{this.loading=!1,this.commomService.displayMessageUser("success","Caso exista uma conta com o email "+this.f.email.value+", voc\xea receber\xe1 um email com as instru\xe7\xf5es e o link para voc\xea trocar a senha.","Se voc\xea n\xe3o receber o e-mail em alguns minutos, verifique a sua caixa de spam ou tente novamente.",!0,15e3)},e=>{this.loading=!1,this.commomService.displayMessageUser("success","Caso exista uma conta com o email "+this.f.email.value+", voc\xea receber\xe1 um email com as instru\xe7\xf5es e o link para voc\xea trocar a senha.","Se voc\xea n\xe3o receber o e-mail em alguns minutos, verifique a sua caixa de spam ou tente novamente.",!0,15e3)})}static#e=this.\u0275fac=function(n){return new(n||t)($(ao),$(Ci),$(qt),$(yn))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-recover-password-email"]],decls:10,vars:7,consts:[[1,"jet-recover-password-email"],[3,"formGroup","ngSubmit"],[1,"container-form"],[1,"container-field"],["placeholder","E-mail","formControlName","email"],["email",""],["class","invalid-feedback",4,"ngIf"],["type","submit",3,"disabled","ngClass"],["class","divider-login",4,"ngIf"],[1,"invalid-feedback"],[4,"ngIf"],[1,"divider-login"]],template:function(n,r){1&n&&(a(0,"div",0)(1,"form",1),J("ngSubmit",function(){return r.sendEmail()}),a(2,"div",2)(3,"div",3),B(4,"input",4,5),C(6,lz,3,2,"div",6),l(),a(7,"button",7),h(8,"RECUPERAR SENHA"),l()()()(),C(9,cz,3,0,"div",8)),2&n&&(c(1),d("formGroup",r.recoverForm),c(5),d("ngIf",r.f.email.errors&&(r.f.email.dirty||r.f.email.touched)),c(1),d("disabled",!r.recoverForm.valid)("ngClass",Oe(5,dz,r.loading)),c(2),d("ngIf",!r.isInternational))},dependencies:[ui,en,Gr,mr,fr,Ur,Ir,Mr],encapsulation:2})}return t})();function hz(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function mz(t,i){1&t&&(a(0,"span"),h(1,"Informe um email v\xe1lido"),l())}function fz(t,i){if(1&t&&(a(0,"div",14),C(1,hz,2,0,"span",15),C(2,mz,2,0,"span",15),l()),2&t){const e=_();c(1),d("ngIf",e.f.newemail.errors.required),c(1),d("ngIf",null==e.f.newemail.errors?null:e.f.newemail.errors.pattern)}}function pz(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function gz(t,i){1&t&&(a(0,"span"),h(1,"Informe um email v\xe1lido"),l())}function vz(t,i){if(1&t&&(a(0,"div",14),C(1,pz,2,0,"span",15),C(2,gz,2,0,"span",15),l()),2&t){const e=_();c(1),d("ngIf",e.f.confirmemail.errors.required),c(1),d("ngIf",null==e.f.confirmemail.errors?null:e.f.confirmemail.errors.pattern)}}let _z=(()=>{class t{constructor(e,n,r){this.commomService=e,this.customerService=n,this.fb=r,this.form=this.fb.group({newemail:["",[oe.required,oe.pattern(/^(([^<>()[\]\\.,;:\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,}))$/)]],confirmemail:["",[oe.required,oe.pattern(/^(([^<>()[\]\\.,;:\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,}))$/)]]})}ngOnInit(){this.emailSubs$=this.customerService.getDataCustomer().subscribe(e=>{let n=e;this.idCustomer=n.data.idCustomer,n.data.idCustomer&&n.data.hasPassword?this.customerService.getCustomer(this.idCustomer).subscribe(r=>{this.emailCurrently=r.user.userName,this.commomService.finishLoadComponent("onJetCustomerLoaded",{detail:{type:"customer",value:{name:decodeURIComponent("Alterar E-mail"),href:document.location.href}}})},r=>{document.location.href="/customer"}):document.location.href="/customer"},e=>{document.location.href="/customer"})}get f(){return this.form.controls}ngOnDestroy(){this.emailSubs$.unsubscribe()}validEmail(e,n){this.commomService.validEmail(n)||this.form.controls[e].setErrors({pattern:!0})}submit(){this.validEmail("newemail",this.form.controls.newemail.value),this.validEmail("confirmemail",this.form.controls.confirmemail.value),this.form.valid?this.form.controls.newemail.value==this.form.controls.confirmemail.value?this.emailSubs$=this.customerService.alterEmailClient(this.idCustomer,this.form.controls.confirmemail.value).subscribe(e=>{this.commomService.displayMessageUser("success","E-mail alterado com sucesso"),this.commomService.finishLoadComponent("onJetAlter
3EmailLoaded"),setTimeout(()=>{document.location.reload()},1e3)},e=>{this.commomService.displayMessageUser("error","Erro ao alterar o e-mail")}):this.commomService.displayMessageUser("error","Os endere\xe7os de e-mail n\xe3o conferem."):(this.form.markAllAsTouched(),this.commomService.displayMessageUser("error","Favor preencher os campos corretamente."))}return(){window.location.href="/customer"}static#e=this.\u0275fac=function(n){return new(n||t)($(qt),$(Ci),$(ao))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-alter-email"]],decls:21,vars:4,consts:[[1,"jet-alter-email"],[3,"formGroup"],[1,"container-form"],[1,"container-field","disabled"],["type","email","name","email","placeholder","[email protected]","disabled","",3,"value"],[1,"container-field"],["for","new-email"],["type","email","name","new-email","formControlName","newemail","placeholder","Novo e-mail"],["newemail",""],["class","invalid-feedback",4,"ngIf"],["for","confirm-email"],["type","email","name","confirm-email","formControlName","confirmemail","placeholder","Confirma\xe7\xe3o do e-mail"],["confirmemail",""],["type","submit",3,"click"],[1,"invalid-feedback"],[4,"ngIf"]],template:function(n,r){1&n&&(a(0,"div",0)(1,"form",1)(2,"div",2)(3,"div",3)(4,"label"),h(5,"E-mail atual"),l(),B(6,"input",4),l(),a(7,"div",5)(8,"label",6),h(9,"Novo e-mail*"),l(),B(10,"input",7,8),C(12,fz,3,2,"div",9),l(),a(13,"div",5)(14,"label",10),h(15,"Confirma\xe7\xe3o do e-mail*"),l(),B(16,"input",11,12),C(18,vz,3,2,"div",9),l(),a(19,"button",13),J("click",function(){return r.submit()}),h(20,"ALTERAR E-MAIL"),l()()()()),2&n&&(c(1),d("formGroup",r.form),c(5),Ue("value",r.emailCurrently),c(6),d("ngIf",r.f.newemail.errors&&(r.f.newemail.dirty||r.f.newemail.touched)),c(6),d("ngIf",r.f.confirmemail.errors&&(r.f.confirmemail.dirty||r.f.confirmemail.touched)))},dependencies:[en,Gr,mr,fr,Ur,Ir,Mr],encapsulation:2})}return t})();function Cz(t,i){if(1&t&&(a(0,"span",32),h(1,"C\xf3digo: "),a(2,"span",10),h(3),l()()),2&t){const e=_(2).$implicit;c(3),de(e.productCode)}}function yz(t,i){if(1&t&&(a(0,"span",33),h(1,"Sku: "),a(2,"span",10),h(3),l()()),2&t){const e=_(2).$implicit;c(3),de(e.skuCode)}}function bz(t,i){if(1&t&&(a(0,"span",34),h(1,"Parceiro: "),a(2,"span",10),h(3),l()()),2&t){const e=_(2).$implicit;ii("data-partner-id",null==e?null:e.partnerId),c(3),de(e.partnerLabel)}}function Sz(t,i){if(1&t&&(a(0,"div",28),C(1,Cz,4,1,"span",29),C(2,yz,4,1,"span",30),C(3,bz,4,2,"span",31),l()),2&t){const e=_().$implicit;c(1),d("ngIf",(null==e.productCode?null:e.productCode.length)>0),c(1),d("ngIf",(null==e.skuCode?null:e.skuCode.length)>0),c(1),d("ngIf",e.partnerLabel&&(null==e.partnerLabel?null:e.partnerLabel.length)>0)}}function wz(t,i){if(1&t&&(a(0,"div",35)(1,"p")(2,"strong"),h(3),l(),h(4),l()()),2&t){const e=i.$implicit;c(3),dt(" ",e.nameReference," "),c(1),dt(" : ",e.nameVariation," ")}}function Iz(t,i){1&t&&B(0,"span",39),2&t&&d("innerHTML",_(2).$implicit.additionalValueDescription,ce)}function xz(t,i){if(1&t&&(ht(0),a(1,"div",36)(2,"span",37),h(3),l(),C(4,Iz,1,1,"span",38),a(5,"span",10),h(6),l()(),mt()),2&t){const e=_().$implicit,n=_(2);c(3),de(e.additionalValueLabel),c(1),d("ngIf",e.additionalValueDescription),c(2),dt("+ ",n.commomService.priceMask(e.additionalValue),"")}}function Dz(t,i){if(1&t&&(a(0,"div",41)(1,"span",42),h(2),l(),B(3,"div",43),l()),2&t){const e=i.$implicit,n=_(4);c(2),dt("",e.quantity,"x "),c(1),d("innerHtml",n.normalizeText(e.name),ce)}}function Pz(t,i){if(1&t&&(ht(0),C(1,Dz,4,2,"div",40),mt()),2&t){const e=_().$implicit;c(1),d("ngForOf",e.productsKit)}}function Tz(t,i){if(1&t&&(ht(0),B(1,"div",44),mt()),2&t){const e=_().$implicit,n=_(2);c(1),d("innerHtml",n.formatHTML(e.personalization),ce)}}function Ez(t,i){if(1&t&&(ht(0),a(1,"span",46),h(2),l(),B(3,"br"),h(4),mt()),2&t){const e=_(2).$implicit,n=_(2);c(2),de(n.commomService.priceMask(e.unitPrice*e.quantity)),c(2),dt(" ",n.commomService.priceMask(e.priceTotalProductWithDiscount)," ")}}function Lz(t,i){if(1&t&&h(0),2&t){const e=_(2).$implicit;dt(" ",_(2).commomService.priceMask(e.unitPrice*e.quantity)," ")}}function kz(t,i){if(1&t&&(ht(0),C(1,Ez,5,2,"ng-container",1),C(2,Lz,1,1,"ng-template",null,45,_i),mt()),2&t){const e=Wt(3),n=_().$implicit;c(1),d("ngIf",n.priceTotalProductWithDiscount&&n.priceTotalProductWithDiscount>0&&n.priceTotalProductWithDiscount<n.unitPrice*n.quantity)("ngIfElse",e)}}function Mz(t,i){1&t&&(a(0,"span",47),h(1,"Brinde"),l())}function Fz(t,i){if(1&t&&(a(0,"div",18)(1,"div",19),B(2,"img",20),l(),a(3,"div",21)(4,"span",22),h(5),l(),C(6,Sz,4,3,"div",23),C(7,wz,5,2,"div",24),C(8,xz,7,3,"ng-container",12),C(9,Pz,2,1,"ng-container",12),C(10,Tz,2,1,"ng-container",12),a(11,"div",25),C(12,kz,4,2,"ng-container",12),C(13,Mz,2,0,"span",26),l(),a(14,"div",27),h(15),l()()()),2&t){const e=i.$implicit,n=_(2);c(2),Ue("src",e.image,fe),Ue("alt",e.nameProduct),c(3),dt(" ",e.nameProduct," "),c(1),d("ngIf",(null==e.productC
3ode?null:e.productCode.length)>0||(null==e.skuCode?null:e.skuCode.length)>0),c(1),d("ngForOf",e.orderItemVariations),c(1),d("ngIf",e.additionalValue&&e.additionalValue>0),c(1),d("ngIf",null!=e.productsKit&&e.productsKit.length>0),c(1),d("ngIf",e.personalization),c(2),d("ngIf",!e.isGift),c(1),d("ngIf",e.isGift),c(2),dt(" Qtd.: ",n.pad(e.quantity)," ")}}function Az(t,i){if(1&t&&(ht(0),a(1,"span",55),h(2," Imposto: \xa0"),a(3,"span",50),h(4),l()(),mt()),2&t){const e=_(4);c(4),de(e.commomService.priceMask(e.orderDetails.taxHubValue))}}function Nz(t,i){if(1&t&&(ht(0),a(1,"span",55),h(2," Seguro: \xa0"),a(3,"span",50),h(4),l()(),mt()),2&t){const e=_(4);c(4),de(e.commomService.priceMask(e.orderDetails.insuranceHubValue))}}function Oz(t,i){if(1&t&&(a(0,"span",51),we(),a(1,"svg",52),B(2,"path",53),l(),Pe(),a(3,"span",54)(4,"strong"),h(5,"Incluso:"),l(),C(6,Az,5,1,"ng-container",12),C(7,Nz,5,1,"ng-container",12),l()()),2&t){const e=_(3);c(6),d("ngIf",e.orderDetails.taxHubValue&&e.orderDetails.taxHubValue>0),c(1),d("ngIf",e.orderDetails.insuranceHubValue&&e.orderDetails.insuranceHubValue>0)}}function Rz(t,i){if(1&t&&(ht(0),a(1,"div",9)(2,"span",48),h(3,"Frete: "),a(4,"span",11),C(5,Oz,8,2,"span",49),a(6,"span",50),h(7),l()()()(),mt()),2&t){const e=_(2);c(5),d("ngIf",e.orderDetails.totalShipping&&e.orderDetails.totalShipping>0&&(e.orderDetails.taxHubValue&&e.orderDetails.taxHubValue>0||e.orderDetails.insuranceHubValue&&e.orderDetails.insuranceHubValue>0)),c(2),de(e.commomService.priceMask(e.orderDetails.totalShipping))}}function Bz(t,i){if(1&t&&(a(0,"div",9)(1,"span",48),h(2,"Vale Compra: "),a(3,"span",11),h(4),l()()()),2&t){const e=_(2);c(4),de(e.commomService.priceMask(e.orderDetails.totalShoppingVoucher))}}function jz(t,i){if(1&t&&(a(0,"div",9)(1,"span",56),h(2,"Juros: "),a(3,"span",11),h(4),l()()()),2&t){const e=_(2);c(4),de(e.commomService.priceMask(null==e.orderDetails.interestValue?0:e.orderDetails.interestValue))}}function Vz(t,i){if(1&t&&(a(0,"div",9)(1,"span",57),h(2,"B\xf4nus: "),a(3,"span",11),h(4),l()()()),2&t){const e=_(2);c(4),de(e.commomService.priceMask(e.orderDetails.totalBonus))}}function Hz(t,i){if(1&t&&(a(0,"div",9)(1,"span",57),h(2,"S\xf3cio Torcedor: "),a(3,"span",11),h(4),l()()()),2&t){const e=_(2);c(4),de(e.commomService.priceMask(e.orderDetails.totalFanmember))}}function zz(t,i){if(1&t&&(a(0,"div",9)(1,"span",57),h(2,"Impostos: "),B(3,"span",11),h(4),l()()),2&t){const e=_(2);c(4),de(e.commomService.priceMask(e.orderDetails.totalTaxes))}}function qz(t,i){if(1&t){const e=ve();a(0,"button",60),J("click",function(){M(e);const r=_(3);return L(r.btnReOrder(r.orderDetails.idOrder))}),we(),a(1,"svg",61),B(2,"path",62)(3,"path",63),l(),h(4," Comprar novamente "),l()}2&t&&d("className",_(3).dataClassButton+" btn-add")}function $z(t,i){if(1&t){const e=ve();a(0,"button",60),J("click",function(){M(e);const r=_(3);return L(r.openWindow(r.getUrlAftersaleSac()))}),h(1," Troca ou Devolu\xe7\xe3o "),l()}2&t&&d("className",_(3).dataClassButton+" btn-aftersale-view")}function Uz(t,i){if(1&t&&(a(0,"div",58),C(1,qz,5,1,"button",59),C(2,$z,2,1,"button",59),l()),2&t){const e=_(2);c(1),d("ngIf",e.showPriceB2C),c(1),d("ngIf",null!=e.aftersaleUrl)}}function Gz(t,i){if(1&t){const e=ve();a(0,"div",58)(1,"button",64),J("click",function(){M(e);const r=_(2);return L(r.openWindow(r.getUrlTroquecommerceRequest()))}),h(2," Troca ou Devolu\xe7\xe3o "),l()()}}function Wz(t,i){if(1&t&&(ht(0),h(1),mt()),2&t){const e=_().$implicit;c(1),dt(" ",e.response," ")}}function Jz(t,i){1&t&&(a(0,"i"),h(1,"sem resposta"),l())}function Zz(t,i){if(1&t&&(ht(0),a(1,"div",9)(2,"span")(3,"b"),h(4),l(),C(5,Wz,2,1,"ng-container",1),C(6,Jz,2,0,"ng-template",null,69,_i),l()(),mt()),2&t){const e=i.$implicit,n=Wt(7);c(4),dt("",e.question,":"),c(1),d("ngIf",e.response&&e.response.length>0)("ngIfElse",n)}}function Qz(t,i){if(1&t&&(a(0,"div",3)(1,"div",3)(2,"div",65)(3,"div",6),h(4,"Informa\xe7\xf5es Adicionais"),l(),a(5,"div",66)(6,"div",67),C(7,Zz,8,3,"ng-container",68),l()()()()()),2&t){const e=_(2);d("className",e.dataClassContainer),c(1),d("className",e.dataClassContainerChildren),c(6),d("ngForOf",e.orderDetails.orderCustomFields)}}function Yz(t,i){if(1&t&&(ht(0),a(1,"div",3)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6),h(6,"Itens do pedido"),l(),C(7,Fz,16,11,"div",7),l(),a(8,"div",8)(9,"div",6),h(10,"Resumo da compra"),l(),a(11,"div",9)(12,"span",10),h(13,"Subtotal: "),a(14,"span",11),h(15),l()()(),C(16,Rz,8,2,"ng-container",12),C(17,Bz,5,
31,"div",13),C(18,jz,5,1,"div",13),a(19,"div",9)(20,"span",14),h(21,"Desconto: "),a(22,"span",11),h(23),l()()(),C(24,Vz,5,1,"div",13),C(25,Hz,5,1,"div",13),C(26,zz,5,1,"div",13),a(27,"div",9)(28,"span",15),h(29,"Total: "),a(30,"span",11),h(31),l()()(),C(32,Uz,3,2,"div",16),l()()(),C(33,Gz,3,0,"div",16),l(),C(34,Qz,8,3,"div",17),mt()),2&t){const e=_();c(1),d("className",e.dataClassContainer),c(1),d("className",e.dataClassContainerChildren),c(5),d("ngForOf",e.orderDetails.orderItems),c(8),de(e.commomService.priceMask(e.orderDetails.totalItens)),c(1),d("ngIf",!e.orderDetails.isDigitalOrder),c(1),d("ngIf",null!=e.orderDetails.totalShoppingVoucher&&e.orderDetails.totalShoppingVoucher>0),c(1),d("ngIf",null!=e.orderDetails.interestValue&&e.orderDetails.interestValue>0),c(5),de(e.commomService.priceMask(e.orderDetails.totalDiscount-e.orderDetails.totalBonus-e.orderDetails.totalFanmember)),c(1),d("ngIf",null!=e.orderDetails.totalBonus&&e.orderDetails.totalBonus>0),c(1),d("ngIf",null!=e.orderDetails.totalFanmember&&e.orderDetails.totalFanmember>0),c(1),d("ngIf",null!=e.orderDetails.totalTaxes&&e.orderDetails.totalTaxes>0),c(5),de(e.commomService.priceMask(e.orderDetails.total)),c(1),d("ngIf",e.showPriceB2C||null!=e.aftersaleUrl),c(1),d("ngIf",null!=e.troquecommerceUrl),c(1),d("ngIf",null==e.orderDetails.orderCustomFields?null:e.orderDetails.orderCustomFields.length)}}function Kz(t,i){if(1&t&&(a(0,"div",3)(1,"div",3)(2,"div",70)(3,"div",71)(4,"div",72),B(5,"div",73)(6,"div",74),l(),a(7,"div",75),B(8,"div",73)(9,"div",76)(10,"div",77)(11,"div",76)(12,"div",77)(13,"div",76)(14,"div",77)(15,"div",76),l()()()()()),2&t){const e=_();d("className",e.dataClassContainer),c(1),d("className",e.dataClassContainerChildren)}}let Xz=(()=>{class t{constructor(e,n,r,o,s){this.orderService=e,this.sanitizer=n,this.checkoutService=r,this.shareDataCommom=s,this.dataClassContainer="",this.dataClassContainerChildren="",this.dataClassButton="",this.hasTaxes=!1,this.commomService=o}ngOnInit(){this.dataClassContainer=""!=this.dataClassContainer?"jet-container "+this.dataClassContainer:"jet-container",this.dataClassContainerChildren=""!=this.dataClassContainerChildren?"jet-item "+this.dataClassContainerChildren:"jet-item",this.dataClassButton=""!=this.dataClassButton?"jet-button "+this.dataClassButton:"jet-button",this.shareDataCommom.currentCompany$.subscribe(e=>{null!=e&&this.shareDataCommom.authorizedB2B$.subscribe(n=>{null!=n&&(this.showPriceB2C=!!n||e.showPriceB2C)})}),this.routeParameters(),"details"!=this.orderId.toLowerCase()?this.obs$=this.orderService.getOrder(this.orderId).subscribe(e=>{e?(this.commomService.setCountryOrderCommom(e.orderInternational),this.orderDetails=e,this.hasTaxes=null!=e.orderItems.find(n=>null!=n.taxes),this.commomService.finishLoadComponent("onJetOrderLoaded",{detail:e}),this.commomService.finishLoadComponent("onJetOrderStatusLoaded",{detail:this.orderDetails.historyListOrderStatus}),this.commomService.finishLoadComponent("onJetCustomerLoaded",{detail:{type:"customer",value:{name:decodeURIComponent("Informa\xe7\xf5es do Pedido"),href:window.location.href}}}),this.getTroqueCommerce()):(this.commomService.displayMessageUser("error","Oops, o pedido #"+this.orderId+" n\xe3o foi localizado."),setTimeout(()=>{window.location.href="/customer/order"},3e3))},e=>{this.commomService.displayMessageUser("error","Oops, o pedido #"+this.orderId+" n\xe3o foi localizado."),setTimeout(()=>{window.location.href="/customer/order"},3e3)}):this.orderService.getOrdersHistory(1,1).subscribe(e=>{window.location.href=e.orderSimples&&e.orderSimples.length>0?"/customer/order/details/"+e.orderSimples[0].idOrder:"/customer/order"}),this.obs$=this.orderService.getAftersale().subscribe(e=>{if(null!=e&&e.status){let n=e.url.replace(/\/$/,"");!n.startsWith("http://")&&!n.startsWith("https://")&&(n="https://"+n),this.aftersaleUrl=n}}),document.addEventListener("onJetPrintOrder",e=>{this.expandData(!0)},{passive:!0})}routeParameters(){let e=window.location.href.split("/").pop();null!=e&&(this.orderId=e)}
3expandData(e=!1){document.getElementById("expanded-details");var r=document.querySelector("jet-side-customer-menu").firstElementChild;r.style.maxHeight=r.style.maxHeight&&!e?null:r.scrollHeight+"px"}getTroqueCommerce(){let e=this.orderDetails.historyListOrderStatus.filter(n=>null!=n.dateRegisterStatus).sort(function(n,r){return new Date(n.dateRegisterStatus).getTime()-new Date(r.dateRegisterStatus).getTime()});"01"!=e[e.length-1].statusCode&&"02"!=e[e.length-1].statusCode&&this.orderService.getTroquecommerce().subscribe(n=>{if(null!=n&&n.status){let r=n.url.replace(/\/$/,"");!r.startsWith("http://")&&!r.startsWith("https://")&&(r="https://"+r),this.troquecommerceUrl=r}})}getUrlAftersaleRequest(){return`${this.aftersaleUrl??""}/order/${this.orderDetails.idOrder}/${this.orderDetails.email}/`}getUrlAftersaleSac(){return`${this.aftersaleUrl??""}`}openWindow(e){window.open(`${e}`,"_blank")}getUrlTroquecommerceRequest(){return`${this.troquecommerceUrl??""}?order=${this.orderDetails.idOrder}&client=${this.orderDetails.email}`}pad(e){return null==e&&(e=0),e<10?"0"+e.toString():e.toString()}normalizeText(e){return e.replace(/(.+?)\s*-\s*((?:.+?:.+?(?:,|$))+)/g,(o,s,u)=>{const v=/(.+?):(.+?)(?:,|$)/g;let P,w="";for(;null!==(P=v.exec(u));)w+=`<div class="variation"><span class="name-reference">${P[1].trim()}: </span><span class="value-reference">${P[2].trim()}</span></div>`;return`<span class="name-product">${s}</span><div class="variations">${w}</div>`})}formatHTML(e){return e.replace(/<div><span>\s*(.*?)\s*<\/span><\/div>/,'<div class="title">$1</div>').replace(/<div><span>\s*(.*?)\s*<\/span>\s*(.*?)\s*<\/div>/g,(r,o,s)=>""===s.trim()?`<div class="option"><span class="option-value">${o}</span></div>`:`<div class="option"><span class="option-title">${o}: </span><span class="option-value">${s}</span></div>`)}showMessageReOrder(e,n){let r="Produtos adicionados no carrinho com sucesso";n.length>0&&(r="O produto "+(n=n.substring(0,n.length-1))+" n\xe3o p\xf4de ser adicionado ao carrinho.",n.length>1&&(r="Os produtos "+n+" n\xe3o foram adicionados ao carrinho.")),1==e&&n.length>0||n.indexOf(",")>-1&&n.split(",").length==e?this.commomService.displayMessageUser("error","Produtos n\xe3o adicionados ao Carrinho",r):(r+="<br>Voc\xea ser\xe1 redirecionado para o checkout.",this.commomService.displayMessageUser("success","Adicionado ao Carrinho",r),setTimeout(()=>{window.location.href="/checkout"},4001))}btnReOrder(e){var n=this;return(0,Zs.Z)(function*(){n.reOrderSubs$=yield n.orderService.getOrder(e).subscribe(function(){var r=(0,Zs.Z)(function*(o){if(o){let s="",u=0,v=o.orderItems.length;const w=o.orderItems;for(const P of w){u++;try{let F=null!=P.idSku?P.idSku:0;(yield n.checkoutService.addProductToCart(P.idProduct,F,P.quantity,!1).toPromise())?n.commomService.finishLoadComponent("onJetPushDataLayerEvent",{detail:{type:"add_to_cart",products:[P],sku:F}}):s+=P.idProduct+","}catch{s+=P.idProduct+","}u==v&&n.showMessageReOrder(v,s)}}});return function(o){return r.apply(this,arguments)}}())})()}ngOnDestroy(){this.reOrderSubs$.unsubscribe()}static#e=this.\u0275fac=function(n){return new(n||t)($(Wh),$(gl),$(Ss),$(qt),$(yn))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-order-details"]],inputs:{dataClassContainer:["data-class-container","dataClassContainer"],dataClassContainerChildren:["data-class-container-children","dataClassContainerChildren"],dataClassButton:["data-class-button","dataClassButton"]},decls:4,vars:2,consts:[[1,"jet-order-details"],[4,"ngIf","ngIfElse"],["loadingFake",""],[3,"className"],[1,"order-items"],[1,"order-products"],[1,"title-box"],["class","product",4,"ngFor","ngForOf"],[1,"order-summary"],[1,"item"],[1,"value"],[1,"total"],[4,"ngIf"],["class","item",4,"ngIf"],[1,"discount"],[1,"total-value"],["class","actions",4,"ngIf"],[3,"className",4,"ngIf"],[1,"product"],[1,"product-image"],["width","60","onerror","this.src='./assets/no-image.png'",3,"src","alt"],[1,"product-data"],[1,"product-name","notranslate"],["class","product-code",4,"ngIf"],["class","product-variation",4,"ngFor","ngForOf"],[1,"product-value"],["class","product-gift",4,"ngIf"],[1,"product-quantity"],[1,"product-code"],["class","code",4,"ngIf"],["class","skuCode",4,"ngIf"],["class","partner",4,"ngIf"],[1,"code"],[1,"skuCode"],[1,"partner"],[1,"product-variation"],[1,"product-additional-value"],[1,"label"],["class","description",3,"innerHTML",4,"ngIf"],[1,"description",3,"innerHTML"],["class","kit-item",4,"ngFor","ngForOf"],[1,"kit-item"],[1,"quantity"],[1,"item",3,"innerHtml"],[1,"product-personalization",3,"innerHtml"],["regularTotalPrice",""],[1,"old-price"],[1,"product-gift"],[1,"shipping"],["class","tooltip",4,"ngIf"],[1,"notranslate"],[1,"tooltip"],["xmlns","http://www.w3.org/2000/svg","width","12","height","12","viewBox","0 0 12 12","fill","none"],["d","M6 0C2.68594 0 0 2.68594 0 6C0 9.31406 2.68594 12 6 12C9.31406 12 12 9.31406 12 6C12 2.68594 9.31406 0 6 0ZM6 3C6.41414 3 6.75 3.33586 6.75 3.75C6.75 4.16414 6.41414 4.5 6 4.5C5.58586 4.5 5.25 4.16484 5.25 3.75C5.25 3.33516 5.58516 3 6 3ZM6.9375 9H5.0625C4.75313 9 4.5 8.74922 4.5 8.4375C4.5 8.12578 4.75195 7.875 5.0625 7.875H5.4375V6.375H5.25C4.93945 6.375 4.6875 6.12305 4.6875 5.8125C4.6875 5.50195 4.94063 5.25 5.25 5.25H6C6.31055 5.25 6.5625 5.50195 6.5625 5.8125V7.875H6.9375C7.24805 7.875 7.5 8.12695 7.5 8.4375C7.5 8.74805 7.24922 9 6.9375 9Z","fill","black"],[1,"tooltip-description"],[1,"title-include"],[1,"tax"],[1,"bonus"],[1,"actions"],[3,"className","click",4,"ngIf"],[3,"className","click"],["xmlns","http://www.w3.org/2000/svg","width","17","height","18","viewBox","0 0 17 18","fill","none"],["d","M7.23335 5.12697V5.7811H9.85753V5.12697C9.85753 4.40537 9.26914 3.81869 8.54544 3.81869C7.82174 3.81869 7.23335 4.40537 7.23335 5.12697ZM6.57731 6.43524H4.93719C4.756
378 6.43524 4.60917 6.58242 4.60917 6.76231V11.6683C4.60917 12.3899 5.19756 12.9766 5.92126 12.9766H11.1696C11.8933 12.9766 12.4817 12.3899 12.4817 11.6683V6.76231C12.4817 6.58242 12.3341 6.43524 12.1537 6.43524H10.5136V8.07059C10.5136 8.25048 10.366 8.39766 10.1856 8.39766C10.0051 8.39766 9.85753 8.25048 9.85753 8.07059V6.43524H7.23335V8.07059C7.23335 8.25048 7.08574 8.39766 6.90533 8.39766C6.72492 8.39766 6.57731 8.25048 6.57731 8.07059V6.43524ZM6.57731 5.7811V5.12697C6.57731 4.04355 7.45887 3.16455 8.54544 3.16455C9.63202 3.16455 10.5136 4.04355 10.5136 5.12697V5.7811H12.1537C12.697 5.7811 13.1378 6.2206 13.1378 6.76231V11.6683C13.1378 12.7518 12.2562 13.6308 11.1696 13.6308H5.92126C4.83469 13.6308 3.95312 12.7518 3.95312 11.6683V6.76231C3.95312 6.2206 4.39391 5.7811 4.93719 5.7811H6.57731Z","fill","black"],["d","M16.5672 7.28962C16.7532 7.28962 16.8975 7.12638 16.8633 6.94036C16.4951 4.97385 15.4397 3.12883 13.7389 1.80391C10.0375 -1.0889 4.69227 -0.432131 1.79946 3.2693L1.79567 3.2731L0.607414 4.85996V3.65515C0.607414 3.48811 0.470746 3.35144 0.303707 3.35144C0.136668 3.35144 0 3.48811 0 3.65515V5.77109C0 5.93812 0.136668 6.07479 0.303707 6.07479H2.41964C2.58668 6.07479 2.72335 5.93812 2.72335 5.77109C2.72335 5.60405 2.58668 5.46738 2.41964 5.46738H0.911121L2.2816 3.64134C4.96561 0.205654 9.92742 -0.40176 13.3631 2.28225C14.9348 3.50847 15.9142 5.21302 16.2597 7.03147C16.2863 7.17953 16.4154 7.28962 16.5672 7.28962ZM16.6963 10.9341H14.5804C14.4133 10.9341 14.2767 11.0708 14.2767 11.2378C14.2767 11.4049 14.4133 11.5415 14.5804 11.5415H16.1382L14.7678 13.3676C12.0837 16.8032 7.12193 17.4107 3.68624 14.7266C2.11456 13.4966 1.13511 11.7921 0.789638 9.97743C0.763064 9.82937 0.633988 9.71928 0.482135 9.71928C0.296114 9.71928 0.151854 9.88252 0.186021 10.0685C0.554265 12.035 1.60965 13.8801 3.31041 15.2088C7.01184 18.1016 12.3571 17.4448 15.2461 13.7434L15.2499 13.7396L16.3926 12.2211V13.3538C16.3926 13.5208 16.5293 13.6575 16.6963 13.6575C16.8633 13.6575 17 13.5208 17 13.3538V11.2378C17 11.0708 16.8633 10.9341 16.6963 10.9341Z","fill","black"],[1,"btn-troquecommerce-view",3,"click"],[1,"order-box"],[1,"content-box"],[1,"ui","relaxed","list"],[4,"ngFor","ngForOf"],["semResposta",""],[1,"skeleton-wrapper"],[1,"skeleton-actions","start"],[1,"skeleton-box","transparent"],[1,"skeleton-title"],[1,"skeleton-box","short"],[1,"skeleton-box","short","transparent","auto"],[1,"skeleton-text"],[1,"skeleton-line"]],template:function(n,r){if(1&n&&(a(0,"div",0),C(1,Yz,35,15,"ng-container",1),C(2,Kz,16,2,"ng-template",null,2,_i),l()),2&n){const o=Wt(3);c(1),d("ngIf",null!=r.orderDetails)("ngIfElse",o)}},dependencies:[ei,en],encapsulation:2})}return t})();const eq=function(t,i){return{active:t,hide:i}};function tq(t,i){if(1&t&&(a(0,"li")(1,"a",4),B(2,"span",5),h(3),l()()),2&t){const e=_().$implicit;c(1),Ue("id",e.id),Ue("href",e.href,fe),Ue("title",e.text),d("ngClass",Us(6,eq,null!=e.active,e.hide)),c(1),d("innerHTML",e.icon,ce),c(1),dt(" ",e.text," ")}}function nq(t,i){if(1&t){const e=ve();a(0,"a",7),J("click",function(){return M(e),L(_(3).logout())}),B(1,"span",5),h(2),l()}if(2&t){const e=_(2).$implicit;Ue("id",e.id),Ue("title",e.text),c(1),d("innerHTML",e.icon,ce),c(1),dt(" ",e.text," ")}}function iq(t,i){if(1&t&&(a(0,"li"),C(1,nq,3,4,"a",6),l()),2&t){const e=_().$implicit;c(1),d("ngIf",e.logout)}}function rq(t,i){if(1&t&&(ht(0),C(1,tq,4,9,"li",3),C(2,iq,2,1,"li",3),mt()),2&t){const e=i.$implicit,n=_();c(1),d("ngIf",!(void 0!==e.logout||void 0!==e.b2b&&e.b2b!==n.isLoggedB2B||void 0!==e.multiCD&&e.multiCD!==n.activeMultiCD)),c(1),d("ngIf",e.logout)}}let oq=(()=>{class t{constructor(e,n,r,o){this.sanitizer=e,this.customerService=n,this.commomService=r,this.sharedDataCommom=o,this.dataClassMenu="",this.isLoggedB2B=!1,this.activeMultiCD=!1,this.rits=!1,this.menuitems=[{id:"sideMenuLastOrder",text:"\xdaltimo pedido",icon:this.sanitizer.bypassSecurityTrustHtml('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g data-name="shopping-cart"><path d="M21.08 7a2 2 0 0 0-1.7-1H6.58L6 3.74A1 1 0 0 0 5 3H3a1 1 0 0 0 0 2h1.24L7 15.26A1 1 0 0 0 8 16h9a1 1 0 0 0 .89-.55l3.28-6.56A2 2 0 0 0 21.08 7zm-4.7 7H8.76L7.13 8h12.25z"/><circle cx="7.5" cy="19.5" r="1.5"/><circle cx="17.5" cy="19.5" r="1.5"/></g></svg>
3'),href:"/customer/order/details",order:1},{id:"sideMenuOrderList",text:"Consultar meus pedidos",icon:this.sanitizer.bypassSecurityTrustHtml('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m20.71 19.29-3.4-3.39A7.92 7.92 0 0 0 19 11a8 8 0 1 0-8 8 7.92 7.92 0 0 0 4.9-1.69l3.39 3.4a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM5 11a6 6 0 1 1 6 6 6 6 0 0 1-6-6z" data-name="search"/></svg>'),href:"/customer/order",order:2},{id:"sideMenuCustomReport",text:"Relat\xf3rio de Vendas",icon:this.sanitizer.bypassSecurityTrustHtml('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m20.71 19.29-3.4-3.39A7.92 7.92 0 0 0 19 11a8 8 0 1 0-8 8 7.92 7.92 0 0 0 4.9-1.69l3.39 3.4a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM5 11a6 6 0 1 1 6 6 6 6 0 0 1-6-6z" data-name="search"/></svg>'),href:"/customer/custom/report",b2b:!0,hide:!0,order:3},{id:"sideMenuEventList",text:"Lista de Eventos",icon:this.sanitizer.bypassSecurityTrustHtml('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M320 332v8c0 6.6-5.4 12-12 12h-68v68c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12v-68h-68c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h68v-68c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v68h68c6.6 0 12 5.4 12 12zm128-220v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v52h192V12c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-416 0v48h384v-48c0-8.8-7.2-16-16-16H48c-8.8 0-16 7.2-16 16zm384 352V192H32v272c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16z" class=""></path></svg>'),href:"/customer/eventlist",b2b:!1,multiCD:!1,order:4},{id:"sideMenuShoppingVoucher",text:"Vale Compra",icon:this.sanitizer.bypassSecurityTrustHtml('<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"></rect><path d="M4 9h13l-1.6 1.2a1 1 0 0 0-.2 1.4 1 1 0 0 0 .8.4 1 1 0 0 0 .6-.2l4-3a1 1 0 0 0 0-1.59l-3.86-3a1 1 0 0 0-1.23 1.58L17.08 7H4a1 1 0 0 0 0 2z"></path><path d="M20 16H7l1.6-1.2a1 1 0 0 0-1.2-1.6l-4 3a1 1 0 0 0 0 1.59l3.86 3a1 1 0 0 0 .61.21 1 1 0 0 0 .79-.39 1 1 0 0 0-.17-1.4L6.92 18H20a1 1 0 0 0 0-2z"></path></svg>'),href:"/customer/shoppingVoucherDetails",order:5},{id:"sideMenuWishlist",text:"Lista de Desejos",icon:this.sanitizer.bypassSecurityTrustHtml('<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24"><rect width="24" height="24" opacity="0"></rect><path d="M12 21a1 1 0 0 1-.71-.29l-7.77-7.78a5.26 5.26 0 0 1 0-7.4 5.24 5.24 0 0 1 7.4 0L12 6.61l1.08-1.08a5.24 5.24 0 0 1 7.4 0 5.26 5.26 0 0 1 0 7.4l-7.77 7.78A1 1 0 0 1 12 21zM7.22 6a3.2 3.2 0 0 0-2.28.94 3.24 3.24 0 0 0 0 4.57L12 18.58l7.06-7.07a3.24 3.24 0 0 0 0-4.57 3.32 3.32 0 0 0-4.56 0l-1.79 1.8a1 1 0 0 1-1.42 0L9.5 6.94A3.2 3.2 0 0 0 7.22 6z"></path></svg>'),href:"/customer/wishlist",b2b:!1,order:6},{id:"sideMenuEditData",text:"Alterar dados cadastrais",icon:this.sanitizer.bypassSecurityTrustHtml('<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24"><rect width="24" height="24" opacity="0"></rect><path d="M12 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0-6a2 2 0 1 1-2 2 2 2 0 0 1 2-2z"></path><path d="M12 13a7 7 0 0 0-7 7 1 1 0 0 0 2 0 5 5 0 0 1 10 0 1 1 0 0 0 2 0 7 7 0 0 0-7-7z"></path></svg>'),href:"/customer/edit",order:7},{id:"sideMenuManageAddress",text:"Gest\xe3o de Endere\xe7os",icon:this.sanitizer.bypassSecurityTrustHtml('<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24"><rect width="24" height="24" opacity="0"></rect><path d="M12 2a8 8 0 0 0-8 7.92c0 5.48 7.05 11.58 7.35 11.84a1 1 0 0 0 1.3 0C13 21.5 20 15.4 20 9.92A8 8 0 0 0 12 2zm0 17.65c-1.67-1.59-6-6-6-9.73a6 6 0 0 1 12 0c0 3.7-4.33 8.14-6 9.73z"></path><path d="M12 6a3.5 3.5 0 1 0 3.5 3.5A3.5 3.5 0 0 0 12 6zm0 5a1.5 1.5 0 1 1 1.5-1.5A1.5 1.5 0 0 1 12 11z"></path></svg>'),href:"/customer/address",order:8},{id:"sideMenuChangePassword",text:"Alterar senha",icon:this.sanitizer.bypassSecurityTrustHtml('<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewB
3ox="0 0 24 24"><rect width="24" height="24" opacity="0"></rect><path d="M17 8h-1V6.11a4 4 0 1 0-8 0V8H7a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3v-8a3 3 0 0 0-3-3zm-7-1.89A2.06 2.06 0 0 1 12 4a2.06 2.06 0 0 1 2 2.11V8h-4zM18 19a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1z"></path><path d="M12 12a3 3 0 1 0 3 3 3 3 0 0 0-3-3zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"></path></svg>'),href:"/customer/changepassword",order:9},{id:"sideMenuChangeEmail",text:"Alterar e-mail",icon:this.sanitizer.bypassSecurityTrustHtml('<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24"><rect width="24" height="24" opacity="0"></rect><path d="M19 4H5a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3zm-.67 2L12 10.75 5.67 6zM19 18H5a1 1 0 0 1-1-1V7.25l7.4 5.55a1 1 0 0 0 .6.2 1 1 0 0 0 .6-.2L20 7.25V17a1 1 0 0 1-1 1z"></path></svg>'),href:"/customer/alterEmail",order:10},{id:"sideMenuSavedCards",text:"Meus Cart\xf5es",icon:this.sanitizer.bypassSecurityTrustHtml('<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24"><path d="M19 5H5a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V8a3 3 0 0 0-3-3zM4 8a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v1H4zm16 8a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-5h16z"/><path d="M7 15h4a1 1 0 0 0 0-2H7a1 1 0 0 0 0 2zm8 0h2a1 1 0 0 0 0-2h-2a1 1 0 0 0 0 2z"/></svg>'),href:"/customer/savedcards",order:11},{id:"sideMenuLogoff",text:"Desconectar",icon:this.sanitizer.bypassSecurityTrustHtml('<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"></rect><path d="M19 4h-2a1 1 0 0 0 0 2h1v12h-1a1 1 0 0 0 0 2h2a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1z"></path><path d="M11.8 7.4a1 1 0 0 0-1.6 1.2L12 11H4a1 1 0 0 0 0 2h8.09l-1.72 2.44a1 1 0 0 0 .24 1.4 1 1 0 0 0 .58.18 1 1 0 0 0 .81-.42l2.82-4a1 1 0 0 0 0-1.18z"></path></svg>'),href:"#",logout:!0,order:99}],this.ritsMenuItem={id:"sideMenuRits",text:"Minhas Assinaturas Rits",icon:this.sanitizer.bypassSecurityTrustHtml('<svg data-icon="signature" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512" class="icon"><path fill="currentColor" d="M432 224C352.4 224 288 288.4 288 368s64.38 144 144 144S576 447.6 576 368S511.6 224 432 224zM480 384h-54.25C420.4 384 416 379.6 416 374.3V304C416 295.2 423.2 288 432 288C440.8 288 448 295.2 448 304V352h32c8.838 0 16 7.164 16 16S488.8 384 480 384zM284.6 464H64c-8.822 0-16-7.176-16-16V192H448V128c0-35.35-28.65-64-64-64h-40V24c0-13.25-10.75-24-23.1-24S296 10.75 296 24V64h-144V24C152 10.75 141.3 0 128 0S104 10.75 104 24V64H64C28.65 64 0 92.65 0 128v320c0 35.35 28.65 64 64 64h267C312.6 499.1 296.9 482.8 284.6 464z"/></svg>'),href:"#",rits:!0,order:11}}injectRits(){this.commomService.getRits().subscribe({next:e=>{if(this.config=e,this.config.active){this.rits=!0;let n=document.createElement("script");n.type="text/javascript",n.innerHTML=`(function(w, d, s, o, f, js, fjs) {w['RitsWidget'] = o; w[o] = w[o] || function() { (w[o].q = w[o].q || []).push(arguments); }; js = d.createElement(s); js.id = o; js.src = f; js.async = true; fjs = d.getElementsByTagName(s)[0]; fjs.parentNode.insertBefore(js, fjs); })(window, document, 'script', 'rw', '${this.config.baseUrl}/widget/v1/sdk.js');`,document.getElementsByTagName("body")[0].appendChild(n),window.rw("init",{storefront:this.config.baseUrl}),this.commomService.finishLoadComponent("onJetRitsWidgetSignatureLoaded"),this.menuitems.find(r=>"sideMenuRits"===r.id)||this.menuitems.splice(this.menuitems.length-1,0,this.ritsMenuItem)}else this.menuitems=this.menuitems.filter(n=>"sideMenuRits"!==n.id)}})}logout(){this.customerService.logout().subscribe(e=>{this.commomService.finishLoadComponent("onJetUserLogout"),window.location.href="/"},e=>{this.commomService.displayMessageUser("error","Erro ao realizar o logout")})}ngOnInit(){this.injectRits(),this.dataClassMenu=""!=this.dataClassMenu?"jet-customer-menu "+this.dataClassMenu:"jet-customer-menu",this.sharedDataCommom.authorizedB2B$.subscribe(e=>{null!=e&&(this.isLoggedB2B=e)}
3),this.menuitems.forEach(e=>{const n=document.location.pathname,r=e.href;(n===r||!r.endsWith("/order")&&n.startsWith(r))&&(e.active=!0)}),this.sharedDataCommom.currentCompany$.subscribe(e=>{null!=e&&(this.company=e,this.activeMultiCD=e.activeMultiCD,this.company.loginOTP&&(this.menuitems=this.menuitems.filter(n=>"sideMenuChangePassword"!==n.id)),this.company.isRecurrentPurchaseActive&&this.menuitems.push({id:"myRecurrentPurchases",text:"Minhas assinaturas",icon:this.sanitizer.bypassSecurityTrustHtml('<svg data-icon="signature" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512" class="icon"><path fill="currentColor" d="M432 224C352.4 224 288 288.4 288 368s64.38 144 144 144S576 447.6 576 368S511.6 224 432 224zM480 384h-54.25C420.4 384 416 379.6 416 374.3V304C416 295.2 423.2 288 432 288C440.8 288 448 295.2 448 304V352h32c8.838 0 16 7.164 16 16S488.8 384 480 384zM284.6 464H64c-8.822 0-16-7.176-16-16V192H448V128c0-35.35-28.65-64-64-64h-40V24c0-13.25-10.75-24-23.1-24S296 10.75 296 24V64h-144V24C152 10.75 141.3 0 128 0S104 10.75 104 24V64H64C28.65 64 0 92.65 0 128v320c0 35.35 28.65 64 64 64h267C312.6 499.1 296.9 482.8 284.6 464z"/></svg>'),href:"/customer/recurrency",order:11}),this.menuitems=this.menuitems.sort((n,r)=>n.order-r.order))}),this.commomService.finishLoadComponent("onJetCustomerMenuLoaded")}static#e=this.\u0275fac=function(n){return new(n||t)($(gl),$(Ci),$(qt),$(yn))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-side-customer-menu"]],inputs:{dataClassMenu:["data-class-menu","dataClassMenu"]},decls:4,vars:2,consts:[[1,"jet-side-customer-menu"],[3,"className"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"menu-link",3,"id","href","title","ngClass"],[3,"innerHTML"],["class","menu-link",3,"id","title","click",4,"ngIf"],[1,"menu-link",3,"id","title","click"]],template:function(n,r){1&n&&(a(0,"div",0)(1,"div",1)(2,"ul"),C(3,rq,3,2,"ng-container",2),l()()()),2&n&&(c(1),d("className",r.dataClassMenu),c(2),d("ngForOf",r.menuitems))},dependencies:[ui,ei,en],encapsulation:2})}return t})();function sq(t,i){if(1&t&&(a(0,"option",33),h(1),l()),2&t){const e=i.$implicit;d("value",e.id),c(1),de(e.name)}}function aq(t,i){if(1&t){const e=ve();a(0,"div",29)(1,"label",30),h(2,"Pa\xeds*"),l(),a(3,"select",31),J("change",function(r){return M(e),L(_(3).changeCountry(r.target.value))}),C(4,sq,2,2,"option",32),l()()}if(2&t){const e=_(3);c(4),d("ngForOf",e.countries)}}function lq(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function cq(t,i){1&t&&(a(0,"span"),h(1,"Informe ao menos 3 caracteres"),l())}function dq(t,i){1&t&&(a(0,"span"),h(1,"Informe nome v\xe1lido"),l())}function uq(t,i){if(1&t&&(a(0,"div",46),C(1,lq,2,0,"span",20),C(2,cq,2,0,"span",20),C(3,dq,2,0,"span",20),l()),2&t){const e=_(4);c(1),d("ngIf",e.idForm.name.errors.required),c(1),d("ngIf",e.idForm.name.errors.minlength),c(1),d("ngIf",e.idForm.contact.errors.pattern)}}function hq(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function mq(t,i){1&t&&(a(0,"span"),h(1,"Informe um "),a(2,"span",47),h(3," CPF "),l(),h(4," ou "),a(5,"span",47),h(6," CNPJ "),l(),h(7," V\xe1lido"),l())}function fq(t,i){if(1&t&&(a(0,"div",46),C(1,hq,2,0,"span",20),C(2,mq,8,0,"span",20),l()),2&t){const e=_(4);c(1),d("ngIf",e.idForm.cpfCnpj.errors.required),c(1),d("ngIf",e.idForm.cpfCnpj.errors.minlength)}}function pq(t,i){1&t&&(a(0,"span"),h(1,"Data Inv\xe1lida"),l())}function gq(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function vq(t,i){if(1&t&&(a(0,"div",46),C(1,pq,2,0,"span",20),C(2,gq,2,0,"span",20),l()),2&t){const e=_(4);c(1),d("ngIf",(null==e.idForm.birthDate.errors?null:e.idForm.birthDate.errors.pattern)||e.idForm.birthDate.errors.incorrect),c(1),d("ngIf",e.idForm.birthDate.errors.required)}}const lo=function(t){return{success:t}};function _q(t,i){if(1&t){const e=ve();a(0,"div")(1,"div",34)(2,"label",35),h(3,"Nome Completo*"),l(),B(4,"input",36,37),C(6,uq,4,3,"div",25),l(),a(7,"div",38)(8,"label",39),h(9),l(),a(10,"input",40,41),J("input",function(){M(e);const r=_(3);return L(r.isInternational?null:r.maskCpfCnpj())}),l(),C(12,fq,3,2,"div",25),l(),a(13,"div",42)(14,"label",43),h(15,"Nascimento"),l(),a(16,"input",44,45),J("keyup",function(r){M(e);const o=_(3);return o.maskBirthDate(r),L(o.checkBirthDate(r.target.value))})("blur",function(r){M(e);const o=_(3);return o.maskBirthDate(r),L(o.checkBirthDate(r.target.value))}),l(),C(18,vq,3,2,"div",25),l()()}if(2&t){const e=_(3);c(1),d("ngClass",Oe(9,lo,e.idForm.name.valid)),c(5),d("ngIf",e.idForm.name.errors&&(e.idForm.name.dirty||e.idForm.name.touched)),c(1),d("ngClass",Oe(11,lo,e.idForm.cpfCnpj.valid)),c(2),de(e.isInternationalNavigation?"Document*":"CPF*"),c(1),d("placeholder",e.isInternationalNavigation?"Document":"CPF"),c(2),d("ngIf",(null==e.idForm.cpfCnpj?null:e.idForm.cpfCnpj.errors)&&(e.idForm.cpfCnpj.dirty||e.idForm.cpfCnpj.touched)),c(1),d("ngClass",Oe(13,lo,e.idForm.birthDate.valid)),c(3),Ue("placeholder",e.isInternational?"YYYY-MM-DD":"DD/MM/AAAA"),c(2),d("ngIf",e.idForm.birthDate.errors&&(e.idForm.birthDate.dirty||e.idForm.birthDate.touched))}}
3function Cq(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function yq(t,i){1&t&&(a(0,"span"),h(1,"Informe um "),a(2,"span",47),h(3,"CPF"),l(),h(4," ou "),a(5,"span",47),h(6,"CNPJ"),l(),h(7," V\xe1lido"),l())}function bq(t,i){if(1&t&&(a(0,"div",46),C(1,Cq,2,0,"span",20),C(2,yq,8,0,"span",20),l()),2&t){const e=_(4);c(1),d("ngIf",e.idForm.cpfCnpj.errors.required),c(1),d("ngIf",e.idForm.cpfCnpj.errors.minlength)}}function Sq(t,i){if(1&t&&(a(0,"div",57)(1,"label",58),h(2,"IE"),l(),B(3,"input",59,60),l()),2&t){const e=_(4);d("ngClass",Oe(1,lo,e.idForm.rg_ie.valid))}}function wq(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function Iq(t,i){1&t&&(a(0,"span"),h(1,"Informe ao menos 3 caracteres"),l())}function xq(t,i){1&t&&(a(0,"span"),h(1,"Informe nome v\xe1lido"),l())}function Dq(t,i){if(1&t&&(a(0,"div",46),C(1,wq,2,0,"span",20),C(2,Iq,2,0,"span",20),C(3,xq,2,0,"span",20),l()),2&t){const e=_(4);c(1),d("ngIf",e.idForm.contact.errors.required),c(1),d("ngIf",e.idForm.contact.errors.minlength),c(1),d("ngIf",e.idForm.contact.errors.pattern)}}function Pq(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function Tq(t,i){1&t&&(a(0,"span"),h(1,"Informe ao menos 3 caracteres"),l())}function Eq(t,i){if(1&t&&(a(0,"div",46),C(1,Pq,2,0,"span",20),C(2,Tq,2,0,"span",20),l()),2&t){const e=_(5);c(1),d("ngIf",e.idForm.name.errors.required),c(1),d("ngIf",e.idForm.name.errors.minlength)}}function Lq(t,i){if(1&t&&(a(0,"div",61)(1,"label",35),h(2,"Raz\xe3o Social*"),l(),B(3,"input",62,37),C(5,Eq,3,2,"div",25),l()),2&t){const e=_(4);d("ngClass",Oe(2,lo,e.idForm.name.valid)),c(5),d("ngIf",e.idForm.name.errors&&(e.idForm.name.dirty||e.idForm.name.touched))}}function kq(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function Mq(t,i){1&t&&(a(0,"span"),h(1,"Informe ao menos 3 caracteres"),l())}function Fq(t,i){if(1&t&&(a(0,"div",46),C(1,kq,2,0,"span",20),C(2,Mq,2,0,"span",20),l()),2&t){const e=_(4);c(1),d("ngIf",e.idForm.fantasyName.errors.required),c(1),d("ngIf",e.idForm.fantasyName.errors.minlength)}}function Aq(t,i){if(1&t){const e=ve();a(0,"div")(1,"div",38)(2,"label",39),h(3),l(),a(4,"input",40,41),J("input",function(){M(e);const r=_(3);return L(r.isInternational?null:r.maskCpfCnpj())}),l(),C(6,bq,3,2,"div",25),l(),C(7,Sq,5,3,"div",48),a(8,"div",49)(9,"label",50),h(10,"Respons\xe1vel pela Empresa*"),l(),B(11,"input",51,52),C(13,Dq,4,3,"div",25),l(),C(14,Lq,6,4,"div",53),a(15,"div",54)(16,"label",35),h(17),l(),B(18,"input",55,56),C(20,Fq,3,2,"div",25),l()()}if(2&t){const e=_(3);c(1),d("ngClass",Oe(12,lo,e.idForm.cpfCnpj.valid)),c(2),de(e.isInternationalNavigation?"Document*":"CNPJ*"),c(1),d("placeholder",e.isInternationalNavigation?"Document":"CNPJ"),c(2),d("ngIf",e.idForm.cpfCnpj.errors&&(e.idForm.cpfCnpj.dirty||e.idForm.cpfCnpj.touched)),c(1),d("ngIf",!e.isInternational),c(1),d("ngClass",Oe(14,lo,e.idForm.contact.valid)),c(5),d("ngIf",e.idForm.contact.errors&&(e.idForm.contact.dirty||e.idForm.contact.touched)),c(1),d("ngIf",!e.isInternational),c(1),d("ngClass",Oe(16,lo,e.idForm.fantasyName.valid)),c(2),de(e.isInternational?"Company Name*":"Nome Fantasia*"),c(1),Ue("placeholder",e.isInternational?"Company Name":"Nome Fantasia da Empresa"),c(2),d("ngIf",e.idForm.fantasyName.errors&&(e.idForm.fantasyName.dirty||e.idForm.fantasyName.touched))}}function Nq(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function Oq(t,i){1&t&&(a(0,"span"),h(1,"Informe um telefone v\xe1lido"),l())}function Rq(t,i){if(1&t&&(a(0,"div",46),C(1,Nq,2,0,"span",20),C(2,Oq,2,0,"span",20),l()),2&t){const e=_(3);c(1),d("ngIf",e.idForm.phone1.errors.required),c(1),d("ngIf",e.idForm.phone1.errors.pattern||e.idForm.phone1.errors.minlength)}}function Bq(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function jq(t,i){1&t&&(a(0,"span"),h(1,"Informe um telefone v\xe1lido"),l())}function Vq(t,i){if(1&t&&(a(0,"div",46),C(1,Bq,2,0,"span",20),C(2,jq,2,0,"span",20),l()),2&t){const e=_(3);c(1),d("ngIf",e.idForm.phone2.errors.required),c(1),d("ngIf",e.idForm.phone2.errors.pattern)}}function Hq(t,i){if(1&t){const e=ve();a(0,"div",18),C(1,aq,5,1,"div",19),C(2,_q,19,15,"div",20),C(3,Aq,21,18,"div",20),a(4,"div",21)(5,"label",22),h(6,"Telefone*"),l(
3),a(7,"input",23,24),J("input",function(){return M(e),L(_(2).maskPhone("phone1"))})("blur",function(){return M(e),L(_(2).maskPhone("phone1"))})("paste",function(r){return r.preventDefault()}),l(),C(9,Rq,3,2,"div",25),l(),a(10,"div",21)(11,"label",26),h(12,"Celular*"),l(),a(13,"input",27,28),J("input",function(){return M(e),L(_(2).maskPhone("phone2"))})("blur",function(){return M(e),L(_(2).maskPhone("phone2"))})("paste",function(r){return r.preventDefault()}),l(),C(15,Vq,3,2,"div",25),l()()}if(2&t){const e=_(2);c(1),d("ngIf",e.isInternationalNavigation),c(1),d("ngIf","fisica"==e.idForm.profile.value),c(1),d("ngIf","juridica"==e.idForm.profile.value),c(1),d("ngClass",Oe(9,lo,e.idForm.phone1.valid)),c(3),d("placeholder",e.isInternational?"Telefone":"(00) 00000-0000"),c(2),d("ngIf",e.idForm.phone1.errors&&(e.idForm.phone1.dirty||e.idForm.phone1.touched)),c(1),d("ngClass",Oe(11,lo,e.idForm.phone2.valid)),c(3),d("placeholder",e.isInternational?"Celular":"(00) 00000-0000"),c(2),d("ngIf",e.idForm.phone2.errors&&(e.idForm.phone2.dirty||e.idForm.phone2.touched))}}function zq(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function qq(t,i){1&t&&(a(0,"span"),h(1,"Informe um CEP v\xe1lido"),l())}function $q(t,i){if(1&t&&(a(0,"div",46),C(1,zq,2,0,"span",20),C(2,qq,2,0,"span",20),l()),2&t){const e=_(3);c(1),d("ngIf",e.idForm.cep.errors.required),c(1),d("ngIf",null==e.idForm.cep.errors?null:e.idForm.cep.errors.pattern)}}function Uq(t,i){1&t&&(a(0,"div",46)(1,"span"),h(2,"CEP Inv\xe1lido"),l()())}function Gq(t,i){1&t&&(a(0,"div",93),h(1," N\xe3o sabe o seu CEP? "),a(2,"a",94),h(3,"Consulte Aqui"),l()())}function Wq(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function Jq(t,i){1&t&&(a(0,"span"),h(1,"Endere\xe7o inv\xe1lido"),l())}function Zq(t,i){if(1&t&&(a(0,"div",46),C(1,Wq,2,0,"span",20),C(2,Jq,2,0,"span",20),l()),2&t){const e=_(3);c(1),d("ngIf",e.idForm.address.errors.required),c(1),d("ngIf",null==e.idForm.address.errors?null:e.idForm.address.errors.pattern)}}function Qq(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function Yq(t,i){1&t&&(a(0,"span"),h(1,"N\xfamero inv\xe1lido"),l())}function Kq(t,i){if(1&t&&(a(0,"div",46),C(1,Qq,2,0,"span",20),C(2,Yq,2,0,"span",20),l()),2&t){const e=_(3);c(1),d("ngIf",e.idForm.number.errors.required),c(1),d("ngIf",null==e.idForm.number.errors?null:e.idForm.number.errors.pattern)}}function Xq(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function e$(t,i){if(1&t&&(a(0,"div",46),C(1,Xq,2,0,"span",20),l()),2&t){const e=_(3);c(1),d("ngIf",e.idForm.complement.errors.required)}}function t$(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function n$(t,i){1&t&&(a(0,"span"),h(1,"Bairro inv\xe1lido"),l())}function i$(t,i){if(1&t&&(a(0,"div",46),C(1,t$,2,0,"span",20),C(2,n$,2,0,"span",20),l()),2&t){const e=_(3);c(1),d("ngIf",e.idForm.neighbourhood.errors.required),c(1),d("ngIf",null==e.idForm.neighbourhood.errors?null:e.idForm.neighbourhood.errors.pattern)}}function r$(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function o$(t,i){if(1&t&&(a(0,"div",46),C(1,r$,2,0,"span",20),l()),2&t){const e=_(3);c(1),d("ngIf",e.idForm.city.errors.required)}}function s$(t,i){1&t&&(a(0,"select",95,96)(2,"option",97),h(3,"Selecione o Estado"),l(),a(4,"option",98),h(5,"Acre"),l(),a(6,"option",99),h(7,"Alagoas"),l(),a(8,"option",100),h(9,"Amap\xe1"),l(),a(10,"option",101),h(11,"Amazonas"),l(),a(12,"option",102),h(13,"Bahia"),l(),a(14,"option",103),h(15,"Cear\xe1"),l(),a(16,"option",104),h(17,"Distrito Federal"),l(),a(18,"option",105),h(19,"Esp\xedrito Santo"),l(),a(20,"option",106),h(21,"Goi\xe1s"),l(),a(22,"option",107),h(23,"Maranh\xe3o"),l(),a(24,"option",108),h(25,"Mato Grosso"),l(),a(26,"option",109),h(27,"Mato Grosso do Sul"),l(),a(28,"option",110),h(29,"Minas Gerais"),l(),a(30,"option",111),h(31,"Par\xe1"),l(),a(32,"option",112),h(33,"Para\xedba"),l(),a(34,"option",113),h(35,"Paran\xe1"),l(),a(36,"option",114),h(37,"Pernambuco"),l(),a(38,"option",115),h(39,"Piau\xed"),l(),a(40,"option",116),h(41,"Rio de Janeiro"),l(),a(42,"option",117),h(43,"Rio Grande do Norte"),l(),a(44,"option",118),h(45,"Rio Grande do Sul"),l(),a(46,"option",119),h(47,"Rond\xf4nia"),l(),a(48,"option",120),h(49,"Roraima"),l(),a(50,"option",121),h(51,"Santa Catarina"),l(),a(52,"option",122),h(53,"S\xe3o Paulo"),l(),a(54,"option",123),h(55,"Sergipe"),l(),a(56,"option",124),h(57,"Tocantins"),l(
3)())}function a$(t,i){if(1&t&&(a(0,"option",33),h(1),l()),2&t){const e=i.$implicit;Ue("value",e.code),c(1),de(e.name)}}function l$(t,i){if(1&t&&(a(0,"select",95,96)(2,"option",97),h(3,"Selecione o Estado ou Regi\xe3o"),l(),C(4,a$,2,2,"option",32),l()),2&t){const e=_(3);c(4),d("ngForOf",e.states)}}function c$(t,i){1&t&&(a(0,"span"),h(1,"Informe o Estado"),l())}function d$(t,i){if(1&t&&(a(0,"div",46),C(1,c$,2,0,"span",20),l()),2&t){const e=_(3);c(1),d("ngIf",e.idForm.state.errors.required)}}const u$=function(t,i){return{success:t,disabled:i}};function h$(t,i){if(1&t){const e=ve();a(0,"div",63)(1,"div",64)(2,"label",65),h(3),l(),a(4,"input",66,67),J("keyup",function(){M(e);const r=_(2);return L(r.isInternational?null:r.maskCEP())})("blur",function(){M(e);const r=_(2);return L(r.isInternational?null:r.searchByZipCode())})("paste",function(r){return r.preventDefault()}),l(),C(6,$q,3,2,"div",25),C(7,Uq,3,0,"div",25),l(),C(8,Gq,4,0,"div",68),a(9,"div",69)(10,"label",70),h(11,"Endere\xe7o*"),l(),B(12,"input",71,72),C(14,Zq,3,2,"div",25),l(),a(15,"div",73)(16,"label",74),h(17,"N\xfamero*"),l(),B(18,"input",75,76),C(20,Kq,3,2,"div",25),l(),a(21,"div",77)(22,"label",78),h(23,"Complemento"),l(),B(24,"input",79,80),C(26,e$,2,1,"div",25),l(),a(27,"div",81)(28,"label",82),h(29,"Bairro*"),l(),B(30,"input",83,84),C(32,i$,3,2,"div",25),l(),a(33,"div",85)(34,"label",86),h(35,"Cidade*"),l(),B(36,"input",87,88),C(38,o$,2,1,"div",25),l(),a(39,"div",89)(40,"label",90),h(41),l(),C(42,s$,58,0,"select",91),C(43,l$,5,1,"select",92),C(44,d$,2,1,"div",25),l()()}if(2&t){const e=_(2);c(1),d("ngClass",Oe(22,lo,e.idForm.cep.valid)),c(2),de(e.isInternationalNavigation?"C\xf3digo Postal*":"CEP*"),c(1),d("placeholder",e.isInternational?"Postal Code":"00000-000"),c(2),d("ngIf",e.idForm.cep.errors&&(e.idForm.cep.dirty||e.idForm.cep.touched)),c(1),d("ngIf",!e.isInternational&&!e.verifyCep),c(1),d("ngIf",!e.isInternational),c(1),d("ngClass",Oe(24,lo,e.idForm.address.valid)),c(5),d("ngIf",e.idForm.address.errors&&(e.idForm.address.dirty||e.idForm.address.touched)),c(1),d("ngClass",Oe(26,lo,e.idForm.number.valid)),c(5),d("ngIf",e.idForm.number.errors&&(e.idForm.number.dirty||e.idForm.number.touched)),c(1),d("ngClass",Oe(28,lo,e.idForm.complement.valid)),c(5),d("ngIf",e.idForm.complement.errors&&(e.idForm.complement.dirty||e.idForm.complement.touched)),c(1),d("ngClass",Oe(30,lo,e.idForm.neighbourhood.valid)),c(5),d("ngIf",e.idForm.neighbourhood.errors&&(e.idForm.neighbourhood.dirty||e.idForm.neighbourhood.touched)),c(1),d("ngClass",Oe(32,lo,e.idForm.city.valid)),c(5),d("ngIf",e.idForm.city.errors&&(e.idForm.city.dirty||e.idForm.city.touched)),c(1),d("ngClass",Us(34,u$,e.idForm.state.valid,!e.isInternational&&e.verifyCep&&e.idForm.state.valid)),c(2),dt("",e.isInternational?"Estado ou Regi\xe3o":"Estado","*"),c(1),d("ngIf",!e.isInternational)("ngIfElse",e.stateInternational),c(1),d("ngIf",e.isInternational),c(1),d("ngIf",e.idForm.state.errors&&(e.idForm.state.dirty||e.idForm.state.touched))}}function m$(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function f$(t,i){1&t&&(a(0,"span"),h(1,"Informe um email v\xe1lido"),l())}function p$(t,i){if(1&t&&(a(0,"div",46),C(1,m$,2,0,"span",20),C(2,f$,2,0,"span",20),l()),2&t){const e=_(3);c(1),d("ngIf",e.idForm.email.errors.required),c(1),d("ngIf",null==e.idForm.email.errors?null:e.idForm.email.errors.pattern)}}function g$(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function v$(t,i){1&t&&(a(0,"span"),h(1,"Informe uma senha v\xe1lida"),l())}function _$(t,i){if(1&t&&(a(0,"div",46),C(1,g$,2,0,"span",20),C(2,v$,2,0,"span",20),l()),2&t){const e=_(3);c(1),d("ngIf",e.idForm.password.errors.required),c(1),d("ngIf",null==e.idForm.password.errors?null:e.idForm.password.errors.pattern)}}function C$(t,i){if(1&t){const e=ve();a(0,"div",137)(1,"input",138),J("change",function(){const o=M(e).$implicit;return L(o.checked=!o.checked)}),l(),a(2,"label",139),h(3),l()()}if(2&t){const e=i.$implicit;c(1),d("id",e.idEmailInfoCategory)("checked",e.checked),c(1),d("for",e.idEmailInfoCategory),c(1),de(e.name)}}function y$(t,i){if(1&t&&(a(0,"div",29)(1,"span",135),h(2,"Selecione as categorias que deseja receber por e-mail"),l(),C(3,C$,4,4,"div",136),l()),2&t){const e=_(3);c(3),d("ngForOf",e.newsletterCategories)}}function b$(t,i){1&t&&(a(0,"span"),h(1,"\xc9 necess\xe1rio ler e aceitar os termos."),l())}function S$(t,i){if(1&t&&(a(0,"div",46),C(1,b$,2,0,"span",20),l()),2&t){const e=_(4);c(1),d("ngIf",e.idForm.flagAcceptTerm.errors.required)}}function w$(t,i){1&t&&(a(0,"div",46)(1,"span"),h(2,"\xc9 necess\xe1rio ler e aceitar os termos."),l()())}const xy=function(t){return{hideme:t}};function I$(t,i){if(1&t){const e=ve();a(0,"div",140)(1,"div",141),B(2,"input",142,143),a(4,"label",144),h(5,"Li e c
3oncordo com o "),a(6,"strong",145),J("click",function(){return M(e),L(_(3).showTerms=!0)}),h(7,"termo de aceite"),l(),h(8,"?*"),l()(),C(9,S$,2,1,"div",25),C(10,w$,3,0,"div",25),a(11,"div",146)(12,"div",147),B(13,"p",148),Wi(14,"safeHtml"),a(15,"div",149)(16,"button",150),J("click",function(){return M(e),L(_(3).showTerms=!1)}),h(17,"Fechar"),l()()()()()}if(2&t){const e=_(3);d("ngClass",Oe(7,lo,e.idForm.flagAcceptTerm.valid)),c(9),d("ngIf",e.idForm.flagAcceptTerm.errors&&(e.idForm.flagAcceptTerm.dirty||e.idForm.flagAcceptTerm.touched)),c(1),d("ngIf",!e.idForm.flagAcceptTerm.value&&(e.idForm.flagAcceptTerm.dirty||e.idForm.flagAcceptTerm.touched)),c(1),d("ngClass",Oe(9,xy,!e.showTerms)),c(2),d("innerHtml",Lo(14,5,e.company.termToAcceptText),ce)}}function x$(t,i){1&t&&(a(0,"div",46)(1,"span"),h(2,"\xc9 necess\xe1rio ler e aceitar a pol\xedtica de privacidade."),l()())}function D$(t,i){if(1&t){const e=ve();a(0,"div",151)(1,"div",152),B(2,"input",153,154),a(4,"label",155),h(5,"Li e concordo com a "),a(6,"strong",145),J("click",function(){return M(e),L(_(3).showPolicy=!0)}),h(7,"Pol\xedtica de Privacidade"),l()(),a(8,"div",156)(9,"div",147),B(10,"p",148),Wi(11,"safeHtml"),a(12,"div",149)(13,"button",150),J("click",function(){return M(e),L(_(3).showPolicy=!1)}),h(14,"Fechar"),l()()()()(),C(15,x$,3,0,"div",25),l()}if(2&t){const e=_(3);d("ngClass",Oe(6,lo,e.idForm.flagPrivacyPolicy.valid)),c(8),d("ngClass",Oe(8,xy,!e.showPolicy)),c(2),d("innerHtml",Lo(11,4,e.company.privacyPolicy.policyPrivacy),ce),c(5),d("ngIf",null!=e.company&&e.company.privacyPolicy.statusPolicyPrivacy&&!e.idForm.flagPrivacyPolicy.value&&(e.idForm.flagPrivacyPolicy.dirty||e.idForm.flagPrivacyPolicy.touched))}}function P$(t,i){if(1&t&&(a(0,"div",125)(1,"div",126)(2,"label",35),h(3,"Email*"),l(),B(4,"input",127,128),C(6,p$,3,2,"div",25),l(),a(7,"div",129)(8,"label",130),h(9,"Senha*"),l(),B(10,"input",131,132),C(12,_$,3,2,"div",25),l(),C(13,y$,4,1,"div",19),C(14,I$,18,11,"div",133),C(15,D$,16,10,"div",134),l()),2&t){const e=_(2);c(1),d("ngClass",Oe(7,lo,e.idForm.email.valid)),c(5),d("ngIf",e.idForm.email.errors&&(e.idForm.email.dirty||e.idForm.email.touched)),c(1),d("ngClass",Oe(9,lo,e.idForm.password.valid)),c(5),d("ngIf",e.idForm.password.errors&&(e.idForm.password.dirty||e.idForm.password.touched)),c(1),d("ngIf",e.newsletterCategories&&e.newsletterCategories.length>0),c(1),d("ngIf",null!=e.company&&e.company.termToAccept),c(1),d("ngIf",null!=e.company&&e.company.privacyPolicy.statusPolicyPrivacy)}}function T$(t,i){if(1&t){const e=ve();a(0,"button",157),J("click",function(){return M(e),L(_(2).cleanCookies())}),h(1,"CANCELAR"),l()}}function E$(t,i){if(1&t){const e=ve();a(0,"button",157),J("click",function(){M(e);const r=_(2);return L(r.changeTab(r.currentPage-1))}),h(1,"ANTERIOR"),l()}}const L$=function(t){return{"jet-btn-loading":t}};function k$(t,i){if(1&t&&(a(0,"button",158),h(1,"CADASTRAR"),l()),2&t){const e=_(2);d("ngClass",Oe(1,L$,e.loading))}}function M$(t,i){if(1&t){const e=ve();a(0,"button",159),J("click",function(){M(e);const r=_(2);return L(r.changeTab(r.currentPage+1))}),h(1,"PR\xd3XIMO"),l()}}const fv=function(t){return{active:t}};function F$(t,i){if(1&t){const e=ve();a(0,"form",7),J("ngSubmit",function(){return M(e),L(_().customerRegister())}),a(1,"div",8)(2,"div",9),C(3,Hq,16,13,"div",10),l(),a(4,"div",11),C(5,h$,45,37,"div",12),l(),a(6,"div",13),C(7,P$,16,11,"div",14),l(),a(8,"div"),C(9,T$,2,0,"button",15),C(10,E$,2,0,"button",15),C(11,k$,2,3,"button",16),C(12,M$,2,0,"button",17),l()()()}if(2&t){const e=_();d("formGroup",e.identificationForm),c(2),d("ngClass",Oe(11,fv,1==e.currentPage)),c(1),d("ngIf",1==e.currentPage),c(1),d("ngClass",Oe(13,fv,2==e.currentPage)),c(1),d("ngIf",2==e.currentPage),c(1),d("ngClass",Oe(15,fv,3==e.currentPage)),c(1),d("ngIf",3==e.currentPage),c(2),d("ngIf",1==e.currentPage),c(1),d("ngIf",e.currentPage>1),c(1),d("ngIf",3==e.currentPage),c(1),d("ngIf",e.currentPage<3)}}let A$=(()=>{class t{constructor(e,n,r,o,s,u,v){this.commomService=e,this.fb=n,this.googleRecaptcha=r,this.customerService=o,this.sharedDataCustomerCenter=s,this.detectChanges=u,this.sharedDataCommomService=v,this.currentPage=1,this.showPolicy=!1,this.showTermAccept=!1,this.verifyCep=!0,this.location="finishregistration",this.company=null,this.todayDate=new Date,this.dateMax=new Date,this.dateMin=new Date,this.yearLimitMax=10,this.yearLimitMin=100,this.loading=!1,this.showTerms=!1,this.dynamicFields={},this.dynamicFieldsStep=0,this.isInternationalNavigation=!1,this.isInternational=!1,this.countryId=1,this.countries=[],this.states=[]}ngOnInit(){this.dateMax=new Date(this.todayDate.getFullYear()-this.yearLimitMax,this.todayDate.getMonth(),this.todayDate.getDate()),this.dateMin=new Date(this.todayDate.getFullYear()-this.yearLimitMin,this.todayDate.getMonth(),this.todayDate.getDate()),this.sharedDataCommomService.international$.subscribe(e=>{if(e){let n;this.isInternationalNavigation=e.isInternational&&e.country?.id>1,this.isInternational=e.country?.id>1,document.location.pathname.split("/").length<4&&(document.location.href="/customer/login?v=1");let r=document.location.pathname.split("/")[3];null!=r&&""!=r?this.customerService.getClientByEmailWhenCodeWasSent(r).subscribe(o=>{this.customerService.getClientByIdWhenCodeWasSent(r,o).subscribe(s=>{n=s,this.customerId=n.idCustomer,this.customer=n,this.addressId=n.address[0].idAddress,this.isInternational=n.idCountry>1,this.countryId=n.idCountry,(this.isInternationalNavigation||this.isInternational)&&(this.getCountries(),this.get
3States(this.countryId)),this.builderForm(n),this.customerService.getNewsletter().subscribe(u=>{this.newsletterCategories=u,this.newsletterCategories.forEach(v=>{v.checked=!1})})})},o=>{document.location.href="/customer/login?v=2"}):document.location.href="/customer/login?v=3"}}),document.addEventListener("onJetFormRegisterInsert",e=>{e.detail?.value&&(this.dynamicFieldsStep=e.detail?.step??0,this.insertFormFields(e.detail.value))})}insertFormFields(e){const n=[];Object.keys(e).forEach(r=>{if(!this.identificationForm.contains(r)){this.dynamicFields[r]=e[r],n.push(r);const o=e[r],s=[];o.required&&s.push(oe.required),o.minLength&&s.push(oe.minLength(o.minLength)),o.maxLength&&s.push(oe.maxLength(o.maxLength)),o.pattern&&s.push(oe.pattern(o.pattern)),this.identificationForm.addControl(r,this.fb.control("",s))}}),this.exposeDynamicFields(n)}exposeDynamicFields(e){window.dynamicFieldList||(window.dynamicFieldList=[]),window.dynamicFieldList.push(...e),this.listenToDynamicFieldChanges()}listenToDynamicFieldChanges(){document.addEventListener("onJetDynamicFieldChange",e=>{const{field:n,value:r}=e.detail;this.dynamicFields[n]&&this.identificationForm.controls[n]&&(this.identificationForm.controls[n].setValue(r),this.identificationForm.controls[n].markAsDirty(),this.identificationForm.controls[n].updateValueAndValidity())}),this.commomService.finishLoadComponent("onJetCustomerRegisterDynamicLoaded")}validateDynamicFields(e){if(this.dynamicFieldsStep===e){const n={};if(Object.keys(this.dynamicFields).forEach(r=>{const o=this.identificationForm.controls[r];o.markAsDirty(),o.errors&&(n[r]=o.errors)}),Object.keys(n).length>0)return this.commomService.finishLoadComponent("onJetDynamicValidationError",{detail:n}),!1}return!0}builderForm(e){let n="0"==e.typeCustomer?this.commomService.formatDatePtBR(e.dateBirth):null,r=e.address[0];this.identificationForm=this.fb.group({profile:["0"==e.typeCustomer?"fisica":"juridica",oe.required],email:[e.email,[oe.required,oe.pattern(/^(([^<>()[\]\\.,;:\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,}))$/)]],name:[e.name,[oe.required,oe.minLength(3)]],birthDate:[n],password:["",[oe.required,oe.minLength(3)]],cpfCnpj:[e.cpf_cnpj?.trim()??""],phone1:[e.phone?.phone1??""],phone2:[e.phone?.phone2??""],cep:[r.zipCode?.trim()??""],address:[r.streetAddress,[oe.required,oe.pattern(/.*\S.*/)]],number:[r.number,[oe.required,oe.pattern(/.*\S.*/)]],complement:[r.complement],neighbourhood:[r.neighbourhood,[oe.required,oe.pattern(/.*\S.*/)]],city:[{value:r.city,disabled:this.countryId<=1},[oe.required,oe.minLength(1)]],state:[{value:r.state.trim(),disabled:this.countryId<=1},[oe.required,oe.minLength(1)]],flagAcceptTerm:[!1],flagPrivacyPolicy:[!1],rg_ie:[e.rg_ie?e.rg_ie.trim():""],contact:[e.contact?e.contact.trim():"",[oe.required,oe.pattern(/^[A-z\xc0-\xff'][A-z\xc0-\xff']+\s([A-z\xc0-\xff']\s?)*[A-z\xc0-\xff'][A-z\xc0-\xff'](\s?)+$/)]],fantasyName:[e.fantasyName?e.fantasyName.trim():"",[oe.required]],countryId:[this.countryId,oe.required],country:[""],stateName:[""],stateId:[""]}),this.idForm.birthDate.setValidators([oe.required]),this.companySubs$=this.sharedDataCustomerCenter.currentCompany$.subscribe(o=>{null!=o&&(this.company=o,o.privacyPolicy.statusPolicyPrivacy&&this.idForm.flagPrivacyPolicy.setValidators([oe.requiredTrue]),o.termToAccept&&this.idForm.flagAcceptTerm.setValidators([oe.requiredTrue]))}),this.applyCountryValidators(!1),this.commomService.finishLoadComponent("onJetFormFinishRegisterLoaded")}applyCountryValidators(e=!0){e&&Object.keys(this.idForm).forEach(o=>{"name"!==o&&"email"!==o&&"countryId"!==o&&"profile"!==o&&this.idForm[o]?.reset("")});const n=this.isInternational?{cpfCnpj:3,phone1:6,phone2:6,cep:3}:{cpfCnpj:14,phone1:14,phone2:14,cep:9};Object.keys(n).forEach(o=>{this.setFieldValidator(o,n[o])}),this.isInternational?(this.idForm.city.enable(),this.idForm.state.enable(),this.idForm.countryId.setValue(this.countryId)):(this.idForm.city.disable(),this.idForm.state.disable());const r=(this.idForm.cpfCnpj.value||"").toString();if(!this.isInternational){r&&this.maskCpfCnpj();const o=this.idForm.phone1.value||"",s=this.idForm.phone2.value||"";
3o&&this.idForm.phone1.setValue(this.commomService.phoneNumberMask(o)),s&&this.idForm.phone2.setValue(this.commomService.phoneNumberMask(s));const u=this.idForm.cep.value||"";u&&this.idForm.cep.setValue(this.commomService.cepMask(u))}}setFieldValidator(e,n){const r=this.idForm[e];r&&(r.setValidators([oe.required,oe.minLength(n)]),r.updateValueAndValidity())}get idForm(){return this.identificationForm?.controls}cleanCookies(){sessionStorage.removeItem("email"),sessionStorage.removeItem("name"),sessionStorage.removeItem("customer"),window.location.href="/customer"}maskPhone(e){let n=this.idForm[e].value;if(this.isInternational){if(!n)return;n.replace(/\D/g,"").length<6&&this.idForm[e].setErrors({pattern:!0})}else this.idForm[e].setValue(this.commomService.phoneNumberMask(n))}validPhone(e){this.isInternational?(this.idForm[e].value||"").replace(/\D/g,"").length<6&&this.idForm[e].setErrors({pattern:!0}):(this.commomService.validPhoneSize(this.idForm[e].value,this.idForm[e]),this.commomService.validPhoneNumber(this.idForm[e].value,this.idForm[e]))}validEmail(e){this.commomService.validEmail(e)||this.idForm.email.setErrors({pattern:!0})}maskCpfCnpj(n=null){if(null!=n)return this.commomService.stripCnpj(n).length>11?this.commomService.formatCnpj(n):this.commomService.formatCpf(n);n=this.commomService.stripCnpj(this.idForm.cpfCnpj.value).length>11?this.commomService.formatCnpj(this.idForm.cpfCnpj.value):this.commomService.formatCpf(this.idForm.cpfCnpj.value),this.idForm.cpfCnpj.setValue(n)}maskCEP(){this.idForm.cep.setValue(this.commomService.cepMask(this.idForm.cep.value))}validCep(){this.commomService.validateCep(this.idForm.cep.value)||this.idForm.cep.setErrors({pattern:!0})}searchByZipCode(){this.commomService.validateCep(this.idForm.cep.value)?this.customerService.buscaCep(this.commomService.cepUnMask(this.idForm.cep.value)).subscribe(n=>{null!=n?(this.idForm.address.setValue(n.streetAddress),this.idForm.neighbourhood.setValue(n.neighbourhood),this.idForm.city.setValue(n.city),this.idForm.state.setValue(n.state),this.verifyCep=!0):(this.idForm.address.setValue(""),this.idForm.neighbourhood.setValue(""),this.idForm.state.setValue(""),this.idForm.city.setValue(""),this.verifyCep=!1)}):(this.idForm.address.setValue(""),this.idForm.neighbourhood.setValue(""),this.idForm.state.setValue(""),this.idForm.city.setValue(""),this.verifyCep=!1)}changeTab(e){let n=this.nextValidade(this.currentPage);(e<this.currentPage||e<=this.currentPage+1&&n)&&(this.currentPage=e)}maskBirthDate(e){this.idForm.birthDate.setValue(this.commomService.birthDateMask(e,this.isInternational))}checkBirthDate(e){""!=e&&this.commomService.dateMaxValid(e,this.idForm.birthDate,this.isInternational)}customerRegister(){this.idForm.name.markAsDirty(),this.idForm.email.markAsDirty(),this.idForm.cpfCnpj.markAsDirty(),this.idForm.phone1.markAsDirty(),this.idForm.phone2.markAsDirty(),this.idForm.cep.markAsDirty(),this.idForm.address.markAsDirty(),this.idForm.number.markAsDirty(),this.idForm.neighbourhood.markAsDirty(),this.idForm.city.markAsDirty(),this.idForm.state.markAsDirty(),this.idForm.contact.markAsDirty(),this.idForm.fantasyName.markAsDirty(),this.idForm.flagAcceptTerm.markAsDirty(),this.idForm.flagPrivacyPolicy.markAsDirty(),this.idForm.password.markAsDirty(),this.idForm.birthDate.markAsDirty(),this.nextValidade(this.currentPage)&&this.googleRecaptcha.sendRecaptcha("FirstAccess","FinishRegistration").subscribe(e=>{this.loading=!0,""!=this.idForm.birthDate.value&&"fisica"==this.idForm.profile.value&&(this.tratedBirth=this.isInternational?this.idForm.birthDate.value.toString().replaceAll("/","-"):this.idForm.birthDate.value.toString().replace(/^(\d{2})\/(\d{2})\/(\d{4})/,"$3-$2-$1"));var n={email:this.idForm.email.value,password:this.idForm.password.value,user:{userName:this.idForm.email.value,password:this.idForm.password.value},cpf_cnpj:this.isInternational?this.idForm.cpfCnpj.value:"juridica"==this.idForm.profile.value?this.commomService.stripCnpj(this.idForm.cpfCnpj.value):this.commomService.stripCpf(this.idForm.cpfCnpj.value),name:this.idForm.name.value,phone:{phone1:this.idForm.phone1.value,phone2:this.idForm.phone2.value},dateBirth:"fisica"==this.idForm.profile.value?this.tratedBirth:null,address:[{idAddress:this.addressId,zipCode:this.idForm.cep.value,streetAddress:this.idForm.address.value,
3number:this.idForm.number.value.toString(),complement:this.idForm.complement.value??"",neighbourhood:this.idForm.neighbourhood.value,city:this.idForm.city.value,state:this.idForm.state.value.trim(),addressType:1,country:this.isInternational?this.filterCountry(this.idForm.countryId.value)?.name:"Brasil",countryId:this.isInternational?this.filterCountry(this.idForm.countryId.value)?.id:1,stateName:this.isInternational?this.filterState(this.idForm.state.value.trim())?.name:"",stateId:this.isInternational?this.filterState(this.idForm.state.value.trim())?.idCountryState:0,default:!0,billing:0===this.customer.address.filter(r=>r.billing).length}],termAccepted:this.idForm.flagAcceptTerm.value,policyPrivacyData:{resolution:window.innerWidth+"x"+window.innerHeight,version:this.company.privacyPolicy.policyPrivacyVersion},typeCustomer:"juridica"==this.idForm.profile.value?1:0,emailInfoCategory:[],idCustomer:this.customerId,rg_ie:"juridica"==this.idForm.profile.value?this.idForm.rg_ie.value:"",fantasyName:"juridica"==this.idForm.profile.value?this.idForm.fantasyName.value:"",contact:"juridica"==this.idForm.profile.value?this.idForm.contact.value:""};this.newsletterCategories.filter(r=>r.checked).forEach(r=>{n.emailInfoCategory.push(r)}),this.commomService.getValidSession(!1).subscribe(r=>{this.customerService.changePassword(n.email,"jetCheckout",n.password,n.password,e,this.location).subscribe(o=>{this.customerService.updateCustomerBasicInfo(n).subscribe(s=>{this.cleanCookies();const u=()=>{this.commomService.displayMessageUser("success","Cadastro realizado com sucesso"),setTimeout(()=>window.location.href="/customer",2e3)};if(Object.keys(this.dynamicFields).length>0){const v=Object.keys(this.dynamicFields).reduce((w,P)=>(w[P]=this.idForm[P]?.value,w),{});this.customerService.updateCustomerAdditionalFields(v).subscribe(()=>u(),()=>u())}else u();this.loading=!1})},o=>{this.loading=!1,this.commomService.displayMessageUser("error",o.error.error)})},r=>{this.commomService.displayMessageUser("error",r.error.error)})})}nextValidade(e){let n=!0;switch(e){case 1:if(this.idForm.name.markAsDirty(),this.idForm.cpfCnpj.markAsDirty(),this.idForm.phone1.markAsDirty(),this.idForm.phone2.markAsDirty(),this.idForm.contact.markAsDirty(),this.idForm.fantasyName.markAsDirty(),this.idForm.birthDate.markAsDirty(),this.isInternational&&this.idForm.countryId.markAsDirty(),this.validPhone("phone1"),this.validPhone("phone2"),n=this.validateDynamicFields(e),!n)return!1;const r=this.idForm.name.valid&&this.idForm.phone1.valid&&this.idForm.phone2.valid,o=this.idForm.cpfCnpj.valid,s=!this.isInternational||this.idForm.countryId.valid;if("fisica"==this.idForm.profile.value)return r&&o&&this.idForm.birthDate.valid&&s;if("juridica"==this.idForm.profile.value)return r&&o&&this.idForm.contact.valid&&this.idForm.fantasyName.valid&&s;break;case 2:this.idForm.cep.markAsDirty(),this.idForm.address.markAsDirty(),this.idForm.number.markAsDirty(),this.idForm.neighbourhood.markAsDirty(),this.idForm.city.markAsDirty(),this.idForm.state.markAsDirty(),this.isInternational||this.validCep();const u=!(!this.idForm.city.value||!this.idForm.city.value.toString().trim()),v=!(!this.idForm.state.value||!this.idForm.state.value.toString().trim());return!!(this.idForm.cep.valid&&this.idForm.address.valid&&this.idForm.number.valid&&this.idForm.neighbourhood.valid&&u&&v);case 3:return this.idForm.email.markAsDirty(),this.idForm.flagAcceptTerm.markAsDirty(),this.idForm.flagPrivacyPolicy.markAsDirty(),this.idForm.password.markAsDirty(),!!(this.commomService.validEmail(this.idForm.email.value)&&this.idForm.password.valid&&this.idForm.flagAcceptTerm.valid&&this.idForm.flagPrivacyPolicy.valid)}}getCountries(){this.commomService.getCountries().subscribe(e=>{this.countries=e})}changeCountry(e){const n=Number(e);if(n<=1||1==this.countryId&&1!=n)return this.commomService.displayMessageUser("info","Os campos ser\xe3o apagados, pois voc\xea est\xe1 selecionando um pa\xeds com outros requisitos de preenchimento.","Deseja continuar?",!1),document.addEventListener("onJetConfirm",()=>{this.isInternational=n>1,this.countryId=n,this.verifyCep=!0,this.applyCountryValidators(),this.isInternational&&this.get
3States(n)},{passive:!0}),void document.addEventListener("onJetCancel",()=>{document.querySelector('select[formControlName="countryId"]').value=this.countryId.toString(),this.idForm.countryId.setValue(this.countryId)},{passive:!0});this.isInternational=e>1,this.countryId=n,this.applyCountryValidators(),this.isInternational&&this.getStates(n)}getStates(e){this.commomService.getCountryStates(e).subscribe(n=>{n&&(this.states=n,this.countryId=e)})}filterCountry(e){return this.countries.find(n=>n.id==e)}filterState(e){return this.states.find(n=>n.code==e)}ngOnDestroy(){this.obs$.unsubscribe(),this.companySubs$.unsubscribe()}ngAfterViewChecked(){this.detectChanges.detectChanges()}static#e=this.\u0275fac=function(n){return new(n||t)($(qt),$(ao),$(xd),$(Ci),$(Bu),$(Gl),$(yn))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-finish-registration"]],decls:10,vars:7,consts:[[1,"jet-finish-register"],[1,"column"],[1,"tab-menu"],["data-tab","first",1,"item",3,"click"],["data-tab","second",1,"item",3,"click"],["data-tab","third",1,"item",3,"click"],["novalidate","",3,"formGroup","ngSubmit",4,"ngIf"],["novalidate","",3,"formGroup","ngSubmit"],[1,"container-form"],["data-tab","first",1,"ui","tab","tab-item",3,"ngClass"],["class","personal",4,"ngIf"],["data-tab","second",1,"ui","tab","tab-item",3,"ngClass"],["class","address",4,"ngIf"],["data-tab","third",1,"ui","tab","tab-item",3,"ngClass"],["class","account",4,"ngIf"],["class","btn-cancel","type","button",3,"click",4,"ngIf"],["class","btn-next","type","submit",3,"ngClass",4,"ngIf"],["class","btn-next","type","button",3,"click",4,"ngIf"],[1,"personal"],["class","container-field",4,"ngIf"],[4,"ngIf"],[1,"container-field","phone",3,"ngClass"],["for","phone1"],["formControlName","phone1","autocomplete","off","maxlength","25",3,"placeholder","input","blur","paste"],["phone1",""],["class","invalid-feedback",4,"ngIf"],["for","phone2"],["formControlName","phone2","autocomplete","off",3,"placeholder","input","blur","paste"],["phone2",""],[1,"container-field"],["for","countryId"],["formControlName","countryId",3,"change"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"container-field","name","readonly",3,"ngClass"],["for","name"],["placeholder","Nome Completo","formControlName","name","maxlength","50"],["name",""],[1,"container-field","cpf-cnpj",3,"ngClass"],["for","cpfCnpj"],["formControlName","cpfCnpj",3,"placeholder","input"],["cpfCnpj",""],[1,"container-field","birth-date",3,"ngClass"],["for","birthDate"],["formControlName","birthDate","type","tel","maxlength","10",3,"placeholder","keyup","blur"],["birthDate",""],[1,"invalid-feedback"],[1,"notranslate"],["class","container-field ie",3,"ngClass",4,"ngIf"],[1,"container-field","name",3,"ngClass"],["for","contact"],["placeholder","Respons\xe1vel pela Empresa","formControlName","contact","maxlength","50"],["contact",""],["class","container-field social-name",3,"ngClass",4,"ngIf"],[1,"container-field","fantasy-name",3,"ngClass"],["formControlName","fantasyName",3,"placeholder"],["fantasyName",""],[1,"container-field","ie",3,"ngClass"],["for","rg_ie"],["placeholder","Inscri\xe7\xe3o Estadual","formControlName","rg_ie","maxlength","10"],["rg_ie",""],[1,"container-field","social-name",3,"ngClass"],["placeholder","Raz\xe3o Social da Empresa","formControlName","name"],[1,"address"],[1,"container-field","cep",3,"ngClass"],["for","cep"],["formControlName","cep","autocomplete","off",3,"placeholder","keyup","blur","paste"],["cep",""],["class","container-field cep-find",4,"ngIf"],[1,"container-field","address",3,"ngClass"],["for","address"],["placeholder","Endere\xe7o","formControlName","address","autocomplete","off"],["address",""],[1,"container-field","number",3,"ngClass"],["for","number"],["placeholder","N\xfamero","formControlName","number","type","number","autocomplete","off"],["number",""],[1,"container-field","complement",3,"ngClass"],["for","complement"],["placeholder","Complemento","formControlName","complement","autocomplete","off"],["complement",""],[1,"container-field","neighbourhood",3,"ngClass"],["for","bairro"],["placeholder","Bairro","formControlName","neighbourhood","autocomplete","off"],["neighbourhood",""],[1,"container-field","city",3,"ngClass"],["for","cidade"],["placeholder","Cidade","formControlName","city","autocomplete","off"],["city",""],[1,"container-field","state",3,"ngClass"],["for","estado"],["placeholder","Estado","formControlName","state","autocomplete","off",4,"ngIf","ngIfElse"],["placeholder","Estado","formControlName","state","autocomplete","off",4,"ngIf"],[1,"container-field","cep-find"],["href","http://www.buscacep.correios.com.br/sistemas/buscacep/","target","_blank"],["placeholder","Estado","formControlName","state","autocomplete","off"],["state",""],["value","","selected",""],["value","AC"],["value","AL"],["value","AP"],["value","AM"],["value","BA"],["value","CE"],["value","DF"],["value","ES"],["value","GO"],["value","MA"],["value","MT"],["value","MS"],["value","MG"],["value","PA"],["value","PB"],["value","PR"],["value","PE"],["value","PI"],["value","RJ"],["value","RN"],["value","RS"],["value","RO"],["value","RR"],["value","SC"],["value","SP"],["value","SE"],["value","TO"],[1,"account"],[1,"container-field","email","readonly",3,"ngClass"],["placeholder","Email","formControlName","email","readonly",""],["email",""],[1,"container-field",3,"ngClass"],["for","password"],["type","password","placeholder","Senha","formControlName","password"],["password",""],["class","container-field flagAcceptTerm",3,"ngClass",4,"ngIf"],["class","container-field flagPrivacyPolicy",3,"ngClass",4,"ngIf"],[1,"news-title"],["class","news-categories",4,"ngFor","ngForOf"],[1,"news-categories"],["type","checkbox",3,"id","checked","change"],[3,"for"],[1,"container-field","flagAcceptTerm",3,"ngClass"],[1,"flagAcceptTerm"],["type","checkbox","formControlName","flagAcceptTerm","id","flagAcceptTerm"],["flagAcceptTerm",""],["for","flagAcceptTerm"],[3,"click"],[1,"jet-modal","modal
3-terms",3,"ngClass"],[1,"jet-modal-content","modal-content"],[3,"innerHtml"],[1,"jet-modal-actions"],["type","button",1,"ui","button","large","btn-cancel","modal-close",3,"click"],[1,"container-field","flagPrivacyPolicy",3,"ngClass"],[1,"flagPrivacyPolicy"],["type","checkbox","formControlName","flagPrivacyPolicy","id","flagPrivacyPolicy"],["flagPrivacyPolicy",""],["for","flagPrivacyPolicy"],[1,"jet-modal","modal-policy",3,"ngClass"],["type","button",1,"btn-cancel",3,"click"],["type","submit",1,"btn-next",3,"ngClass"],["type","button",1,"btn-next",3,"click"]],template:function(n,r){1&n&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),J("click",function(){return r.changeTab(1)}),h(4,"Informa\xe7\xf5es Pessoais"),l(),a(5,"span",4),J("click",function(){return r.changeTab(2)}),h(6,"Endere\xe7o"),l(),a(7,"span",5),J("click",function(){return r.changeTab(3)}),h(8,"Crie sua conta"),l()(),C(9,F$,13,17,"form",6),l()()),2&n&&(c(3),vs("active",1==r.currentPage),c(2),vs("active",2==r.currentPage),c(2),vs("active",3==r.currentPage),c(2),d("ngIf",r.identificationForm))},dependencies:[ui,ei,en,Gr,Ws,Js,mr,Op,um,ma,fr,Ur,Zo,Ir,Mr,za],styles:["#btn-cancel[_ngcontent-%COMP%]{background-color:#fff;color:#000;float:left;border:.5px solid black}.btn-next[_ngcontent-%COMP%]{float:right!important}"]})}return t})();class N${}class Dy{constructor(i=null,e,n,r,o=null,s){this.expirationDate=i,this.amount=e,this.registerDate=n,this.note=r,this.idOrder=o,this.type=s}}function O$(t,i){if(1&t&&(ht(0),a(1,"div",10),h(2),l(),a(3,"div",17),h(4," Situa\xe7\xe3o: "),a(5,"span",18)(6,"strong"),h(7),l()()(),mt()),2&t){const e=_().$implicit,n=_(2);c(2),dt("Data de Expira\xe7\xe3o: ",n.getExpirationDate(e.expirationDate),""),c(3),d("ngClass",n.getStatus(e.expirationDate).class),c(2),de(n.getStatus(e.expirationDate).text)}}function R$(t,i){if(1&t&&(a(0,"div",19),h(1),l()),2&t){const e=_().$implicit;c(1),dt("Observa\xe7\xf5es: ",e.note,"")}}function B$(t,i){1&t&&(a(0,"span",20),h(1,"+"),l())}function j$(t,i){1&t&&(a(0,"span",21),h(1,"-"),l())}function V$(t,i){if(1&t){const e=ve();a(0,"span",22),J("click",function(){M(e);const r=_().$implicit;return L(_(2).navigateToOrder(r.idOrder))}),h(1,"Visualizar pedido"),l()}}const H$=function(){return{timeZone:"UTC"}};function z$(t,i){if(1&t&&(a(0,"div",6)(1,"div",7),h(2),l(),a(3,"div",8)(4,"div",9)(5,"div",10),h(6),l(),C(7,O$,8,3,"ng-container",4),C(8,R$,2,1,"div",11),l(),a(9,"div",12)(10,"div",13),C(11,B$,2,0,"span",14),C(12,j$,2,0,"span",15),h(13),l(),C(14,V$,2,0,"span",16),l()()()),2&t){const e=i.$implicit,n=_(2);d("ngClass",n.getStatusBackgroundClass(e.expirationDate)),c(2),dt(" ",e.type," "),c(4),dt("Data de Lan\xe7amento: ",e.registerDate.toLocaleDateString("pt-BR",Q1(9,H$))," "),c(1),d("ngIf","Cr\xe9dito"==e.type),c(1),d("ngIf",""!=e.note),c(3),d("ngIf","Cr\xe9dito"==e.type),c(1),d("ngIf","D\xe9bito"==e.type),c(1),dt(" ",n.commomService.priceMask(e.amount)," "),c(1),d("ngIf",null!=e.idOrder)}}function q$(t,i){if(1&t&&(ht(0),C(1,z$,15,10,"div",5),mt()),2&t){const e=_();c(1),d("ngForOf",e.shoppingVoucher.cards)}}let $$=(()=>{class t{constructor(e,n){this.customerService=n,this.commomService=e}ngOnInit(){this.commomService.finishLoadComponent("onJetCustomerLoaded",{detail:{type:"customer",value:{name:decodeURIComponent("
3Vale Compra"),href:window.location.href}}}),this.customerService.isLogged().subscribe(e=>{e.data.authenticated&&e.data.hasPassword&&(this.customerId=e.data.idCustomer,this.customerService.getGiftBalance(this.customerId).subscribe(n=>{this.totalBalance=this.commomService.priceMask(n)}),this.customerService.getGiftCards(this.customerId).subscribe(n=>{this.shoppingVoucher=n,null!=n&&this.buildShoppingVoucherArray(n)}))})}buildShoppingVoucherArray(e){let n=new N$;n.cards=[],null!=e.credits&&e.credits.forEach(r=>{n.cards.push(new Dy(r.expirationDate,r.amount,new Date(r.registerDate),r.note,null,"Cr\xe9dito"))}),null!=e.debits&&e.debits.forEach(r=>{n.cards.push(new Dy(null,r.amount,new Date(r.registerDate),r.note,r.idOrder,"D\xe9bito"))}),n.cards=n.cards.slice().sort((r,o)=>o.registerDate-r.registerDate),this.shoppingVoucher=n}navigateToOrder(e){window.location.href="customer/order/details/"+e}getExpirationDate(e){if(!e||""===e.trim()||"01/01/1"===e)return"Indeterminado";const n=new Date(e);return isNaN(n.getTime())||1===n.getFullYear()?"Indeterminado":n.toLocaleDateString("pt-BR")}getStatus(e){if(!e||""===e.trim()||"01/01/1"===e||e.startsWith("0001-01-01"))return{text:"Vigente",class:"vigente-text vigente-bg"};const n=new Date(e),r=new Date;return isNaN(n.getTime())||1===n.getFullYear()?{text:"Vigente",class:"vigente-text vigente-bg"}:n.getTime()<r.getTime()?{text:"Expirado",class:"expirado-text expirado-bg"}:{text:"Vigente",class:"vigente-text vigente-bg"}}getStatusBackgroundClass(e){if(!e||""===e.trim()||"01/01/1"===e||e.startsWith("0001-01-01"))return"vigente-bg";const n=new Date(e),r=new Date;return isNaN(n.getTime())||1===n.getFullYear()?"vigente-bg":n.getTime()<r.getTime()?"expirado-bg":"vigente-bg"}static#e=this.\u0275fac=function(n){return new(n||t)($(qt),$(Ci))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-shopping-voucher"]],decls:7,vars:2,consts:[[1,"jet-shopping-voucher"],[1,"balance"],[1,"balance-item"],[1,"balance-value"],[4,"ngIf"],["class","shopping-voucher-item",3,"ngClass",4,"ngFor","ngForOf"],[1,"shopping-voucher-item",3,"ngClass"],[1,"item-type"],[1,"item-data"],[1,"item-info"],[1,"date"],["class","note",4,"ngIf"],[1,"item-amount"],[1,"item-value"],["class","greenIcon",4,"ngIf"],["class","redIcon",4,"ngIf"],["class","view-order",3,"click",4,"ngIf"],[1,"status"],[3,"ngClass"],[1,"note"],[1,"greenIcon"],[1,"redIcon"],[1,"view-order",3,"click"]],template:function(n,r){if(1&n&&(a(0,"div",0)(1,"div",1)(2,"span",2),h(3," Saldo: "),a(4,"span",3),h(5),l()()(),C(6,q$,2,1,"ng-container",4),l()),2&n){let o;c(5),de(null!==(o=r.totalBalance)&&void 0!==o?o:"R$ 0,00"),c(1),d("ngIf",r.shoppingVoucher)}},dependencies:[ui,ei,en],encapsulation:2})}return t})(),U$=(()=>{class t{constructor(e){this.http=e}getTrackingShippingSmartEnvios(e){return this.http.post("/api",{request:"dd06a992-5a74-44d5-991d-e43a30ca81e7/286a3afd-bf41-4e49-b710-f78258235b77",json:null,params:e})}getTrackingShippingShipSmart(e){return this.http.post("/api",{request:"dd06a992-5a74-44d5-991d-e43a30ca81e7/eb772d6a-96da-4294-ba95-d9b28ea8d55c",json:null,params:e})}static#e=this.\u0275fac=function(n){return new(n||t)(Mt(ko))};static#t=this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function G$(t,i){if(1&t&&(a(0,"span",27),h(1,"Forma de Pagamento: "),a(2,"strong"),h(3),l()()),2&t){const e=_(2);c(3),de(e.pedido.namePaymentMethodGateway)}}function W$(t,i){if(1&t&&(a(0,"span",27),h(1,"Forma de Pagamento: "),a(2,"strong"),h(3),l()()),2&t){const e=_(2);c(3),Ra("",e.pedido.namePaymentMethodGateway," - ",e.pedido.numberOfInstallments,"x ",e.commomService.priceMask(e.pedido.valueOfInstallment),"")}}function J$(t,i){if(1&t&&(a(0,"span",27),h(1,"Formas de Pagamento: "),B(2,"br"),a(3,"strong"),h(4),l(),B(5,"br"),a(6,"strong"),h(7),l()()),2&t){const e=_(2);c(4),Ra("1\xba ",e.pedido.orderPayment.multiCards[0].paymentMethod," - ",e.pedido.orderPayment.multiCards[0].numberOfInstallments,"x ",e.commomService.priceMask(e.pedido.orderPayment.multiCards[0].valueOfInstallments),""),c(3),Ra("2\xba ",e.pedido.orderPayment.multiCards[1].paymentMethod," - ",e.pedido.orderPayment.multiCards[1].numberOfInstallments,"x ",e.commomService.priceMask(e.pedido.orderPayment.multiCards[1].valueOfInstallments),"")}}function Z$(t,i){if(1&t&&(a(0,"span",27),h(1,"Formas de Pagamento: "),B(2,"br"),a(3,"strong"),h(4),l(),B(5,"br"),a(6,"strong"),h(7),l()()),2&t){const e=_(2);c(4),Ra("1\xba ",e.pedido.orderPayment.multiPayments[0].name," - ",e.pedido.orderPayment.multiPayments[0].installments,"x ",e.commomService.priceMask(e.pedido.orderPayment.multiPayments[0].installmentsValue),""),c(3),Eo("2\xba ",e.pedido.orderPayment.multiPayments[1].name," - ",e.commomService.priceMask(e.pedido.orderPayment.multiPayments[1].total),"")}}function Q$(t,i){1&t&&(a(0,"a",30),h(1,"Realizar Pagamento"),l()),2&t&&d("href",_(4).pedido.paymentLink,fe)}function Y$(t,i){if(1&t&&(ht(0),C(1,Q$,2,1,"a",29),mt()),2&t){const e=_(3);c(1),d("ngIf",null!=e.pedido.paymentLink&&e.pedido.paymentLink.length)}}function K$(t,i){if(1&t){const e=ve();a(0,"a",31),J("click",function(){M(e);const r=_(3);return L(r.sharedCustomer.generateBilletItau(r.pedido))}),h(1,"Realizar Pagamento"),l()}}
3function X$(t,i){if(1&t&&(a(0,"div"),C(1,Y$,2,1,"ng-container",1),C(2,K$,2,0,"ng-template",null,28,_i),l()),2&t){const e=Wt(3),n=_(2);c(1),d("ngIf",2!=n.pedido.orderPayment.idPaymentGateway)("ngIfElse",e)}}function eU(t,i){1&t&&B(0,"img",35),2&t&&hr("src","data:image/png;base64,",_(3).pedido.imagePix,"",fe)}function tU(t,i){1&t&&B(0,"img",35),2&t&&Ue("src",_(3).pedido.imagePix,fe)}function nU(t,i){1&t&&(a(0,"span"),h(1,"Aponte a c\xe2mera do seu celular para o QR Code acima e realize o pagamento."),l())}function iU(t,i){1&t&&(a(0,"span"),h(1,"Abra o aplicativo PicPay em seu celular e escaneie o c\xf3digo acima para realizar o pagamento."),l())}function rU(t,i){if(1&t&&(a(0,"small"),h(1),l()),2&t){const e=_(3);c(1),dt("Este c\xf3digo expira em ",e.formatDate(e.hoursValidPIX),".")}}function oU(t,i){if(1&t){const e=ve();a(0,"button",36),J("click",function(r){return M(e),L(_(3).copyPix(r))}),h(1," Copiar C\xf3digo "),we(),a(2,"svg",37),B(3,"path",38),l()()}2&t&&Ue("value",_(3).pedido.textPix)}function sU(t,i){if(1&t&&(a(0,"div",32),C(1,eU,1,1,"img",33),C(2,tU,1,1,"img",33),C(3,nU,2,0,"span",22),C(4,iU,2,0,"span",22),C(5,rU,2,1,"small",22),C(6,oU,4,1,"button",34),l()),2&t){const e=_(2);c(1),d("ngIf",null!=e.pedido&&342!=e.pedido.idPaymentBrand&&353!=e.pedido.idPaymentBrand&&368!=e.pedido.idPaymentBrand&&370!=e.pedido.idPaymentBrand&&410!=e.pedido.idPaymentBrand),c(1),d("ngIf",null!=e.pedido&&(342==e.pedido.idPaymentBrand||353==e.pedido.idPaymentBrand||368==e.pedido.idPaymentBrand||370==e.pedido.idPaymentBrand||410==e.pedido.idPaymentBrand)),c(1),d("ngIf",370!=e.pedido.idPaymentBrand),c(1),d("ngIf",370==e.pedido.idPaymentBrand),c(1),d("ngIf",e.hoursValidPIX),c(1),d("ngIf",e.pedido.textPix&&""!=e.pedido.textPix)}}function aU(t,i){if(1&t){const e=ve();a(0,"div",39)(1,"a",31),J("click",function(){return M(e),L(_(2).openMercadoVPro())}),h(2,"Realizar Pagamento"),l()()}}function lU(t,i){if(1&t){const e=ve();a(0,"div",40)(1,"a",31),J("click",function(){return M(e),L(_(2).openPagaLeve())}),h(2,"Realizar Pagamento"),l()()}}function cU(t,i){if(1&t&&(a(0,"span",41),h(1),l()),2&t){const e=_(4);c(1),de(e.pedido.nameCarrying)}}function dU(t,i){if(1&t&&(a(0,"span")(1,"b"),h(2,"Entrega Agendada para: "),l(),h(3),l()),2&t){const e=_(4);c(3),de(null==e.pedido.deliveryShipping?null:e.pedido.deliveryShipping.replace("Data: ",""))}}function uU(t,i){if(1&t){const e=ve();a(0,"button",44),J("click",function(){return M(e),L(_(4).trackingPackageOrder())}),a(1,"span"),h(2,"Rastrear Encomenda"),l()()}}function hU(t,i){if(1&t&&(ht(0),a(1,"div",17),h(2,"Local de Entrega"),l(),a(3,"div",18)(4,"span",41),h(5),l(),a(6,"span",41),h(7),l(),a(8,"span",41),h(9),l(),a(10,"span",41),h(11),l(),C(12,cU,2,1,"span",42),C(13,dU,4,1,"span",22),C(14,uU,3,0,"button",43),l(),mt()),2&t){const e=_(3);c(5),de(e.pedido.address.receiver),c(2),vg("",e.pedido.address.streetAddress,", ",e.pedido.address.number,". ",e.pedido.address.neighbourhood,", ",e.pedido.address.zipCode,""),c(2),Eo("",e.pedido.address.city," - ",e.pedido.address.state,""),c(2),de(e.pedido.address.phoneContact),c(1),d("ngIf",e.pedido.nameCarrying&&e.pedido.nameCarrying.length>0),c(1),d("ngIf",e.pedido.deliveryShipping&&e.pedido.deliveryShipping.length>0),c(1),d("ngIf",e.pedido.trackingUrl)}}function mU(t,i){if(1&t&&(we(),Pe(),a(0,"span"),h(1),l()),2&t){const e=_(4);c(1),zf("",e.pedido.pickUpAddress.streetAddress,"",e.pedido.pickUpAddress.number?", "+e.pedido.pickUpAddress.number:"","",e.pedido.pickUpAddress.complement?" - "+e.pedido.pickUpAddress.complement+".":"."," ",null==e.pedido.pickUpAddress?null:e.pedido.pickUpAddress.neighbourhood,", ",e.pedido.pickUpAddress.zipCode,"")}}function fU(t,i){if(1&t&&(a(0,"span",51),h(1,"Prazo de Entrega: "),a(2,"strong"),h(3),l()()),2&t){const e=_(4);c(3),zf("",null==e.pedido.deliveryEstimateDate?null:e.pedido.deliveryEstimateDate.split(" ")[0]," ",e.pedido.deliveryEstimateDate?"(":" ","",e.pedido.deliveryTime," ",e.pedido.deliveryTime>1?"dias \xfateis":"dia \xfatil","",e.pedido.deliveryEstimateDate?")":"",".")}}function pU(t,i){if(1&t&&(a(0,"span",51),h(1,"Prazo da Retirada: "),a(2,"strong"),h(3),l()()),2&t){const e=_(4);c(3),dt("",0==e.pedido.deliveryTime?"Imediato":e.pedido.deliveryTime+" hora"+(e.pedido.deliveryTime>1?"s":""),".")}}function gU(t,i){if(1&t&&(a(0,"span",52),h(1,"Observa\xe7\xe3o: "),a(2,"strong"),h(3),l()()),2&t){const e=_(4);c(3),de(e.pedido.shippingDescription)}}function vU(t,i){if(1&t&&(ht(0),a(1,"div",17),h(2,"Local de Retirada"),l(),a(3,"div",18)(4,"div",45),h(5," Retirar em "),a(6,"strong"),h(7),a(8,"a",46),we(),a(9,"svg",47),B(10,"path",48),l()()()(),C(11,mU,2,5,"span",22),Pe(),a(12,"span"),h(13),l(),a(14,"span"),h(15),l(),a(16,"span")(17,"strong"),h(18,"Respons\xe1vel pela retirada:"),l(),h(19),l(),C(20,fU,4,5,"span",49),C(21,pU,4,1,"span",49),C(22,gU,4,1,"span",50),a(23,"em"),h(24,"*Ap\xf3s a data de confirma\xe7\xe3o de pagamento."),l()(),mt()),2&t){const e=_(3);c(7),dt(" ",e.pedido.nameShipping," "),c(1),hr("href","https://www.google.com/maps/place/",e.place,"",fe),c(3),d("ngIf",null==e.pedido.pickUpAddress?null:e.pedido.pickUpAddress.streetAddress),c(2),Eo("",null==e.pedido.pickUpAddress?null:e.pedido.pickUpAddress.city," - ",null==e.pedido.pickUpAddress?null:e.pedido.pickUpAddress.state,""),c(2),de(null==e.pedido.pickUpAddress?null:e.pedido.pickUpAddress.shippingDescription),c(4),dt(" ",e.pedido.pickUpAddress.responsibleForPickup?e.pedido.pickUpAddress.responsibleForPickup:e.pedido.nameCustomer,""),c(1),d("ngIf",!e.pedido.isDeliveryWithPickup),c(1),d("ngIf",e.pedido.isDeliveryWithPickup),c(1),d("ngIf",!e.pedido.isDeliveryWithPickup)}}function _U(t,i){if(1&t&&(ht(0),a(1,"div",4)(2,"div",16),C(3,hU,15,11,"ng-container",22),C(4,vU,25,10,"ng-container",22),l()(),mt()),2&t){const e=_(2);c(1),d("className",e.dataClassContainerChildren),c(2),d("ngIf",!e.pedido.isDeliveryWithPickup),c(1),d("ngIf",e.pedido.isDeliveryWithPickup)}}function CU(t,i){if(1&t&&(a(0,"div",53)(1,"a",54),h(2,"Rastrear Pedido"),l()()),2&t){const e=_(2);c(1),Ue("href",e.pedido.trackingLink,fe)}}function yU(t,i){if(1&t){const e=ve();a(0,"div",53)(1,"button",55),J("click",function(){return M(e),L(_(2).trackingShipping())}),h(2,"Rastrear Pedido"),l()()}}function bU(t,i){if(1&t){const e=ve();a(0,"div",53)(1,"button",55),J("click",function(){return M(e),L(_(2).trackingShippingShipSmart())}),h(2,"Rastrear Pedido"),l()()}}function SU(t,i){if(1&t){const e=ve();ht(0),a(1,"div",4)(2,"div",4)(3,"div",5)(4,"div",6)(5,"span",7),h(6,"Pedido"),l(),a(7,"span",8)(8,"strong"),h(9),l()()(),a(10,"div",9)(11,"span",7),h(12,"Data do Pedido"),l(),a(13,"span",8),h(14),l()(),a(15,"div",10)(16,"button",11),J("click",function(){return M(e),L(_().printOrder())}),we(),a(17,"svg",12),B(18,"path",13),l(),Pe(),a(19,"span"),h(20,"Imprimir Pedido"),l()()(),a(21,"div",14)(22,"span",15),h(23),l()()()()(),a(24,"div",4)(25,"div",4)(26,"div",16)(27,"div",17),h(28,"Dados do Pagamento"),l(),a(29,"div",18),C(30,G$,4,1,"span",19),C(31,W$,4,3,"span",19),C(32,J$,8,6,"span",19),C(33,Z$,8,5,"span",19),a(34,"span",20),h(35,"Valor: "),a(36,"strong"),h(37),l()(),a(38,"div",21),C(39,X$,4,2,"div",22),l(),C(40,sU,7,6,"div",23),C(41,aU,3,0,"div",24),C(42,lU,3,0,"div",25),l()()(),C(43,_U,5,3,"ng-container",22),l(),C(44,CU,3,1,"div",26),C(45,yU,3,0,"div",26),C(46,bU,3,0,"div",26),mt()}if(2&t){const e=_();c(1),d("className",e.dataClassContainer),c(1),d("className",e.dataClassContainerChildren),c(7),dt("# ",e.pedido.idOrder,""),c(5),de(e.formatDate(e.pedido.dateOrder)),c(8),zl("background-color",e.statusOrder.statusColor),c(1),de(e.statusOrder.statusName),c(1),d("className",e.dataClassContainer),c(1),d("className",e.dataClassContainerChildren),c(5
3),d("ngIf","MultiCartoes"!==e.pedido.namePaymentMethodGateway&&"Cart\xe3o + PIX"!==e.pedido.namePaymentMethodGateway&&(0==e.pedido.numberOfInstallments||null==e.pedido.numberOfInstallments)),c(1),d("ngIf","MultiCartoes"!==e.pedido.namePaymentMethodGateway&&"Cart\xe3o + PIX"!==e.pedido.namePaymentMethodGateway&&e.pedido.numberOfInstallments>0),c(1),d("ngIf","MultiCartoes"==e.pedido.namePaymentMethodGateway),c(1),d("ngIf","Cart\xe3o + PIX"==e.pedido.namePaymentMethodGateway),c(4),de(e.commomService.priceMask(e.pedido.total)),c(2),d("ngIf",null!=e.pedido&&3==e.pedido.idTypePayment&&("01"==e.pedido.statusCode||"02"==e.pedido.statusCode)),c(1),d("ngIf",("01"==e.statusOrder.statusCode||"02"==e.statusOrder.statusCode)&&e.validPix&&(27==e.pedido.idTypePayment||28==e.pedido.idTypePayment||37==e.pedido.idTypePayment)),c(1),d("ngIf",("01"==e.statusOrder.statusCode||"02"==e.statusOrder.statusCode)&&333==e.pedido.idPaymentBrand),c(1),d("ngIf",!("01"!=e.statusOrder.statusCode&&"02"!=e.statusOrder.statusCode||399!=e.pedido.idPaymentBrand&&398!=e.pedido.idPaymentBrand)),c(1),d("ngIf",!e.pedido.isDigitalOrder),c(1),d("ngIf",e.pedido.trackingLink.toString().length>0),c(1),d("ngIf","SmartEnvios"==e.pedido.nameShipping&&("04"==e.statusOrder.statusCode||"05"==e.statusOrder.statusCode||"07"==e.statusOrder.statusCode)),c(1),d("ngIf","ShipSmart"==e.pedido.nameShipping&&("04"==e.statusOrder.statusCode||"05"==e.statusOrder.statusCode||"07"==e.statusOrder.statusCode))}}function wU(t,i){if(1&t&&(a(0,"div",4)(1,"div",4)(2,"div",56)(3,"div",57),B(4,"div",58)(5,"div",58)(6,"div",58)(7,"div",58),l()()()(),a(8,"div",4)(9,"div",4)(10,"div",56),B(11,"div",59)(12,"div",60)(13,"div",60)(14,"div",60),l()(),a(15,"div",4)(16,"div",56),B(17,"div",59)(18,"div",60)(19,"div",60)(20,"div",60),l()()(),a(21,"div",4)(22,"div",4)(23,"div",56)(24,"div",57),B(25,"div",61)(26,"div",62)(27,"div",61)(28,"div",62)(29,"div",61)(30,"div",62)(31,"div",61),l()()()()),2&t){const e=_();d("className",e.dataClassContainer),c(1),d("className",e.dataClassContainerChildren),c(7),d("className",e.dataClassContainer),c(1),d("className",e.dataClassContainerChildren),c(6),d("className",e.dataClassContainerChildren),c(6),d("className",e.dataClassContainer),c(1),d("className",e.dataClassContainerChildren)}}function IU(t,i){1&t&&(a(0,"div",71)(1,"div",72),B(2,"i",73),a(3,"div",74)(4,"div",75),h(5,"Nenhuma informa\xe7\xe3o a ser exibida"),l(),a(6,"p"),h(7,"N\xe3o existem altera\xe7\xf5es no status desse pedido por parte da transportadora"),l()()()())}function xU(t,i){if(1&t&&(a(0,"span"),h(1),l()),2&t){const e=_().$implicit;c(1),dt("\xa0Observa\xe7\xf5es: ",e.message,"")}}function DU(t,i){if(1&t&&(ht(0),a(1,"div",81)(2,"div",74)(3,"strong"),h(4),l(),a(5,"small"),h(6),Wi(7,"date"),l(),C(8,xU,2,1,"span",22),l()(),mt()),2&t){const e=i.$implicit;c(4),de(e.description.toUpperCase()),c(2),Eo("",Wf(7,4,e.date,"shortDate","GMT")," - ",e.time,""),c(2),d("ngIf",e.message)}}function PU(t,i){if(1&t&&(a(0,"div",71)(1,"div",76),h(2,"Altera\xe7\xf5es de status do pedido at\xe9 o momento"),l(),a(3,"div",77),B(4,"div",78),a(5,"div",71)(6,"div",79),C(7,DU,9,8,"ng-container",80),l()()()()),2&t){const e=_(2);c(7),d("ngForOf",e.timelineTrackingShipping)}}function TU(t,i){if(1&t){const e=ve();a(0,"div",63)(1,"div",64)(2,"button",65),J("click",function(){return M(e),L(_().closeModalTrackingShipping())}),we(),a(3,"svg",66),B(4,"path",67),l(),Pe(),a(5,"span"),h(6,"Fechar"),l()(),a(7,"div",68)(8,"div",69),C(9,IU,8,0,"div",70),C(10,PU,8,1,"div",70),l()()()()}if(2&t){const e=_();c(9),d("ngIf",!e.timelineTrackingShipping||0===e.timelineTrackingShipping.length),c(1),d("ngIf",e.timelineTrackingShipping&&e.timelineTrackingShipping.length>0)}}let EU=(()=>{class t{constructor(e,n,r,o,s){this.checkoutService=n,this.shippingService=r,this.companyService=o,this.sharedCustomer=s,this.typeStatus=bm,this.dataClassContainer="",this.dataClassContainerChildren="",this.isExpanded=!1,this.statusOrder="",this.validPix=!1,this.hoursValidPIX=0,this.company=null,this.place="",this.mercadoPagoScriptPromise=null,this.commomService=e}ngOnInit(){this.dataClassContainer=""!=this.dataClassContainer?"jet-container "+this.dataClassContainer:"jet-container",this.dataClassContainerChildren=""!=this.dataClassContainerChildren?"jet-item "+this.dataClassContainerChildren:"jet-item",document.addEventListener("onJetOrderLoaded",e=>{this.commomService.setCountryOrderCommom(e.detail.orderInternational),this.pedido=e.detail,this.pedido.orderPayment.linkPayment&&(this.pedido.paymentLink=this.pedido.orderPayment.linkPayment.replace('"',"")),this.pedido.isDeliveryWithPickup&&this.generatePlace(),(27==this.pedido.idTypePayment||28==this.pedido.idTypePayment)&&(this.pedido.orderPayment.textPIX&&(this.pedido.textPix=this.pedido.orderPayment.textPIX),this.pedido.orderPayment.imagePIX&&(this.pedido.imagePix=this.pedido.orderPayment.imagePIX),this.pedido.orderPayment.textPIX&&(this.pedido.textPix=this.pedido.orderPayment.textPIX),this.pedido.orderPayment.dateValidatePIX&&(this.pedido.dateValidatePix=this.pedido.orderPayment.dateValidatePIX),this.pedido.paymentLink=""),37==this.pedido.idTypePayment&&("PIX"==this.pedido.orderPayment.multiPayments[0].name&&([this.pedido.orderPayment.multiPayments[0],this.pedido.orderPayment.multiPayments[1]]=[this.pedido.orderPayment.multiPayments[1],this.pedido.orderPayment.multiPayments[0]]),this.pedido.textPix=this.pedido.orderPayment.multiPayments[1].textPIX,this.pedido.imagePix=this.pedido.orderPayment.multiPayments[1].imagePIX),this.statusOrder=this.getOrderStatus(this.pedido.historyListOrderStatus).slice(-1)[0],this.dateValidPIX=new Date(this.pedido.dateValidatePix),this.dateOrder=new Date(this.pedido.dateOrder),this.hoursValidPIX=this.dateValidPIX>this.dateOrder?this.dateValidPIX:null,this.validPix=new Date<=this.dateValidPIX,27==this.pedido.idTypePayment&&24==this.pedido.orderPayment.idPaymentGateway&&(this.validPix=!0),37==this.pedido.idTypePayment&&(this.validPix=!0),25==this.pedido.orderPayment.idPaymentGateway&&(this.hoursValidPIX=null)},{passive:!0}),this.companyService.getCompany().subscribe(e=>{this.company=e})}getOrderStatus(e){return e.filter(n=>null!=n.dateRegisterStatus).sort(function(n,r){return new Date(n.dateRegisterStatus).getTime()-new Date(r.dateRegisterStatus).getTime()})}formatDate(e){let n=new Date(e);return n.toLocaleDateString()+" "+n.toLocaleTimeString()}
3printOrder(){var e=window.open(`/customer/order/details/${this.pedido.idOrder}`,"Print","left=200, top=200, width=950, height=500, toolbar=0, resizable=0");e.addEventListener("load",()=>{setTimeout(function(){e.document.querySelectorAll("jet-order-data .title-box")[0].click(),e.document.querySelectorAll("jet-order-data .title-box")[1].click(),e.print(),e.close()},1e3)},{passive:!0})}copyPix(e){const n=document.createElement("textarea");n.style.position="fixed",n.style.opacity="0",n.value=e.target.value,document.body.appendChild(n),n.focus(),n.select(),document.execCommand("copy"),document.body.removeChild(n),this.commomService.displayMessageUser("success","C\xf3digo copiado com sucesso!")}trackingShipping(){this.commomService.showLoading(),this.shippingService.getTrackingShippingSmartEnvios(this.pedido.idOrder).subscribe(e=>{e&&(this.timelineTrackingShipping=null!=e.trackings&&e.trackings.length>0?e.trackings.map(n=>({date:new Date(n.date),time:new Date(n.date).toLocaleTimeString("it-IT").substr(0,5),description:n.code.name,message:n.code.description})):[],this.commomService.hideLoading())},e=>{this.commomService.displayMessageUser("error",e.error.error),this.commomService.hideLoading()},()=>{this.commomService.hideLoading()})}trackingShippingShipSmart(){this.commomService.showLoading(),this.shippingService.getTrackingShippingShipSmart(this.pedido.idOrder).subscribe(e=>{e&&(this.timelineTrackingShipping="success"==e.status&&e.data&&e.data.carrier&&e.data.carrier.timeline.length>0?e.data.carrier.timeline.map(n=>({date:n.update_date,time:n.update_time,description:"",message:n.status_description})):[],this.commomService.hideLoading())},e=>{this.commomService.displayMessageUser("error",e.error.error),this.commomService.hideLoading()},()=>{this.commomService.hideLoading()})}closeModalTrackingShipping(){this.timelineTrackingShipping=void 0}openPagaLeve(){document.getElementById("pagaleve-transparent-checkout-root")&&document.getElementById("pagaleve-transparent-checkout-root").remove();var e=document.createElement("div");e.id="pagaleve-transparent-checkout-root",document.body.appendChild(e);let n=document.createElement("script");n.src="https://transparent-checkout.pagaleve.com.br/pagaleve-transparent-checkout-installer.js",document.getElementsByTagName("head")[0].append(n);const o=this.pedido.orderPayment.textPIX+"&t=pagaleve";setTimeout(()=>{parent.postMessage({action:"pagaleve-checkout-init",url:o},"*")},500),window.addEventListener("message",u=>{})}loadMercadoPagoScript(){return this.mercadoPagoScriptPromise||(this.mercadoPagoScriptPromise=new Promise((e,n)=>{if(document.getElementById("mp-sdk-script"))return void e();const o=document.createElement("script");o.id="mp-sdk-script",o.src="https://sdk.mercadopago.com/js/v2",o.addEventListener("load",()=>e(),{passive:!0}),o.addEventListener("error",()=>n(),{passive:!0}),document.getElementsByTagName("body")[0].append(o)})),this.mercadoPagoScriptPromise}initializeScriptMercadoPago(){this.checkoutService.getMercadoPagoConfig().subscribe(e=>{e&&this.loadMercadoPagoScript().then(()=>{MercadoPago.setPublishableKey(e),this.mercadoPagoPublicKey=e})},e=>{this.commomService.displayMessageUser("success","O Mercado Pago est\xe1 indispon\xedvel no momento","Entre em contato o suporte da loja.")})}openMercadoVPro(){this.checkoutService.getMercadoPagoPreferendeId(this.pedido.idPreOrder,this.company.nameStore,this.pedido.total,location.origin).subscribe(e=>{this.commomService.hideLoading(),this.loadMercadoPagoScript().then(()=>{new MercadoPago(this.mercadoPagoPublicKey,{locale:"pt-BR"}).checkout({preference:{id:e.preferenceId},autoOpen:!0})})},e=>{this.commomService.displayMessageUser("error","Erro ao processar seu pedido, n\xe3o conseguimos concluir a comunica\xe7\xe3o com o Mercado Pago.")})}validClass(e){var n="";return e===this.typeStatus.newOrder&&(n="yellow"),e===this.typeStatus.onApproval&&(n="blue"),e===this.typeStatus.approved&&(n="info"),e===this.typeStatus.dispatched&&(n="orange"),e===this.typeStatus.tracking&&(n="dark"),e===this.typeStatus.calledOff&&(n="red"),e===this.typeStatus.concluded&&(n="green"),e===this.typeStatus.inProduction&&(n="purple"),e===this.typeStatus.awaitingPayment&&(n="blue"),e===this.typeStatus.riskAnalysis&&(n="yellow"),n}generatePlace(){const{streetAddress:e,number:n,complement:r,neighbourhood:o,zipCode:s,city:u,state:v}=this.pedido.pickUpAddress;
3this.place=[e,n,r,o,s,u,v].filter(Boolean).map(w=>w.trim().replace(/ /g,"+")).join("+")}trackingPackageOrder(){const e=document.createElement("a");e.href=this.pedido.trackingUrl,e.target="blank",e.click(),e.remove()}static#e=this.\u0275fac=function(n){return new(n||t)($(qt),$(Ss),$(U$),$(Qo),$(mv))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-order-data"]],inputs:{dataClassContainer:["data-class-container","dataClassContainer"],dataClassContainerChildren:["data-class-container-children","dataClassContainerChildren"]},decls:5,vars:3,consts:[[1,"jet-order-data"],[4,"ngIf","ngIfElse"],["loadingFake",""],["class","jet-tracking-shipping jet-modal",4,"ngIf"],[3,"className"],[1,"order-header"],[1,"item","order"],[1,"item-name"],[1,"item-value"],[1,"item","date"],[1,"item","print-order"],[1,"print-order",3,"click"],["aria-hidden","true","focusable","false","data-prefix","fal","data-icon","print","role","img","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"icon"],["fill","currentColor","d","M432 192h-16v-82.75c0-8.49-3.37-16.62-9.37-22.63L329.37 9.37c-6-6-14.14-9.37-22.63-9.37H126.48C109.64 0 96 14.33 96 32v160H80c-44.18 0-80 35.82-80 80v96c0 8.84 7.16 16 16 16h80v112c0 8.84 7.16 16 16 16h288c8.84 0 16-7.16 16-16V384h80c8.84 0 16-7.16 16-16v-96c0-44.18-35.82-80-80-80zM320 45.25L370.75 96H320V45.25zM128.12 32H288v64c0 17.67 14.33 32 32 32h64v64H128.02l.1-160zM384 480H128v-96h256v96zm96-128H32v-80c0-26.47 21.53-48 48-48h352c26.47 0 48 21.53 48 48v80zm-80-88c-13.25 0-24 10.74-24 24 0 13.25 10.75 24 24 24s24-10.75 24-24c0-13.26-10.75-24-24-24z",1,""],[1,"item","status"],[1,"status-name"],[1,"order-box"],[1,"title-box"],[1,"content-box"],["class","payment-method",4,"ngIf"],[1,"order-value"],[1,"print-order"],[4,"ngIf"],["class","print-pix",4,"ngIf"],["class","mercado-pago-vpro",4,"ngIf"],["class","pagaleve-pix",4,"ngIf"],["class","tracking",4,"ngIf"],[1,"payment-method"],["billetItau",""],["class","btn btn-payment","target","_blank",3,"href",4,"ngIf"],["target","_blank",1,"btn","btn-payment",3,"href"],[1,"btn","btn-payment",3,"click"],[1,"print-pix"],["alt","","width","100","height","100",3,"src",4,"ngIf"],["class","btn btn-payment copyPix",3,"value","click",4,"ngIf"],["alt","","width","100","height","100",3,"src"],[1,"btn","btn-payment","copyPix",3,"value","click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 448 512"],["fill","currentColor","d","M433.941 65.941l-51.882-51.882A48 48 0 0 0 348.118 0H176c-26.51 0-48 21.49-48 48v48H48c-26.51 0-48 21.49-48 48v320c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48v-48h80c26.51 0 48-21.49 48-48V99.882a48 48 0 0 0-14.059-33.941zM352 32.491a15.88 15.88 0 0 1 7.431 4.195l51.882 51.883A15.885 15.885 0 0 1 415.508 96H352V32.491zM288 464c0 8.822-7.178 16-16 16H48c-8.822 0-16-7.178-16-16V144c0-8.822 7.178-16 16-16h80v240c0 26.51 21.49 48 48 48h112v48zm128-96c0 8.822-7.178 16-16 16H176c-8.822 0-16-7.178-16-16V48c0-8.822 7.178-16 16-16h144v72c0 13.2 10.8 24 24 24h72v240z",1,""],[1,"mercado-pago-vpro"],[1,"pagaleve-pix"],[1,"notranslate"],["class","notranslate",4,"ngIf"],["class","tracking-url",3,"click",4,"ngIf"],[1,"tracking-url",3,"click"],[1,"delivery-location"],["title","Visualizar ponto de retirada","target","_blank",3,"href"],["xmlns","http://www.w3.org/2000/svg","width","11","height","15","viewBox","0 0 11 15","fill","none"],["d","M10.0833 5.5C10.0833 2.96771 8.03229 0.916667 5.5 0.916667C2.96771 0.916667 0.916667 2.96771 0.916667 5.5C0.916667 5.94688 1.07135 6.5599 1.39219 7.31615C1.70443 8.05807 2.14271 8.86302 2.64115 9.66797C3.61797 11.2521 4.7724 12.7674 5.50286 13.6784C6.23047 12.7674 7.38776 11.2521 8.36458 9.66797C8.86016 8.86302 9.3013 8.05521 9.61354 7.31615C9.92865 6.5599 10.0833 5.94688 10.0833 5.5ZM11 5.5C11 8.00365 7.64844 12.4609 6.17891 14.3C5.82656 14.7383 5.17344 14.7383 4.82109 14.3C3.35156 12.4609 0 8.00365 0 5.5C0 2.46354 2.46354 0 5.5 0C8.53646 0 11 2.46354 11 5.5ZM4.125 5.5C4.125 5.86467 4.26987 6.21441 4.52773 6.47227C4.78559 6.73013 5.13533 6.875 5.5 6.875C5.86467 6.875 6.21441 6.73013 6.47227 6.47227C6.73013 6.21441 6.875 5.86467 6.875 5.5C6.875 5.13533 6.73013 4.78559 6.47227 4.52773C6.21441 4.26987 5.86467 4.125 5.5 4.125C5.13533 4.125 4.78559 4.26987 4.52773 4.52773C4.26987 4.78559 4.125 5.13533 4.125 5.5ZM5.5 7.79167C4.89221 7.79167 4.30932 7.55022 3.87955 7.12045C3.44978 6.69068 3.20833 6.10779 3.20833 5.5C3.20833 4.89221 3.44978 4.30932 3.87955 3.87955C4.30932 3.44978 4.89221 3.20833 5.5 3.20833C6.10779 3.20833 6.69068 3.44978 7.12045 3.87955C7.55022 4.30932 7.79167 4.89221 7.79167 5.5C7.79167 6.10
3779 7.55022 6.69068 7.12045 7.12045C6.69068 7.55022 6.10779 7.79167 5.5 7.79167Z","fill","black"],["class","delivery-time",4,"ngIf"],["class","order-observation",4,"ngIf"],[1,"delivery-time"],[1,"order-observation"],[1,"tracking"],["target","_blank",1,"btn","btn-tracking",3,"href"],[1,"btn","btn-tracking",3,"click"],[1,"skeleton-wrapper"],[1,"skeleton-actions"],[1,"skeleton-box","tiny"],[1,"skeleton-title"],[1,"skeleton-text","short"],[1,"skeleton-circle"],[1,"skeleton-line","short"],[1,"jet-tracking-shipping","jet-modal"],[1,"jet-modal-content","modal-content","content-center"],[1,"jet-modal-close","modal-close",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 352 512",1,"icon"],["fill","currentColor","d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z",1,""],[1,"content","scrolling"],[1,"ui","grid","one","column"],["class","column",4,"ngIf"],[1,"column"],[1,"ui","icon","message","info"],[1,"icon","ban"],[1,"content"],[1,"header"],[1,"ui","header"],["id","timeline",1,"ui","grid","one","column"],[1,"line"],[1,"ui","list","very","relaxed"],[4,"ngFor","ngForOf"],[1,"item"]],template:function(n,r){if(1&n&&(a(0,"div",0),C(1,SU,47,22,"ng-container",1),C(2,wU,32,7,"ng-template",null,2,_i),l(),C(4,TU,11,2,"div",3)),2&n){const o=Wt(3);c(1),d("ngIf",null!=r.pedido)("ngIfElse",o),c(3),d("ngIf",r.timelineTrackingShipping)}},dependencies:[ei,en,bd],styles:['.jet-modal[_ngcontent-%COMP%] .ui.header[_ngcontent-%COMP%]{font-size:var(--font-lg);font-weight:600;border-bottom:1px solid var(--gray-light);padding-bottom:var(--space-md);margin-bottom:var(--space-lg)}.jet-modal[_ngcontent-%COMP%] .ui.header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:var(--font-md);font-weight:400;margin-top:var(--space-sm)}.jet-modal[_ngcontent-%COMP%] #timeline[_ngcontent-%COMP%]{position:relative;overflow:hidden;padding-left:var(--space-md)}.jet-modal[_ngcontent-%COMP%] #timeline[_ngcontent-%COMP%] .line[_ngcontent-%COMP%]{width:1px;height:100%;position:absolute;top:var(--space-sm);border-right:1px dashed var(--gray-dark)}.jet-modal[_ngcontent-%COMP%] #timeline[_ngcontent-%COMP%] .ui.list[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;padding-left:var(--space-md)}.jet-modal[_ngcontent-%COMP%] #timeline[_ngcontent-%COMP%] .ui.list[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{display:inline-flex;align-items:center;position:relative;padding-left:var(--space-md)}.jet-modal[_ngcontent-%COMP%] #timeline[_ngcontent-%COMP%] .ui.list[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:before{content:"";width:10px;height:10px;position:absolute;top:50%;left:0;transform:translate(-50%,-50%);border-radius:50rem;background-color:var(--gray-dark)}.jet-modal[_ngcontent-%COMP%] #timeline[_ngcontent-%COMP%] .ui.list[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;min-width:50px;margin-right:var(--space-sm)}.jet-modal[_ngcontent-%COMP%] #timeline[_ngcontent-%COMP%] .ui.list[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{z-index:1}.jet-modal[_ngcontent-%COMP%] #timeline[_ngcontent-%COMP%] .ui.list[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:var(--gray-dark)}.jet-modal[_ngcontent-%COMP%] #timeline[_ngcontent-%COMP%] .ui.list[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]:after{content:"";width:45px;height:45px;opacity:1;position:absolute;border-radius:50rem;background-color:var(--gray)}.jet-modal[_ngcontent-%COMP%] #timeline[_ngcontent-%COMP%] .ui.list[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:block}.jet-modal[_ngcontent-%COMP%] #timeline[_ngcontent-%COMP%] .ui.list[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-top:var(--font-sm)}.jet-modal[_ngcontent-%COMP%] #timeline[_ngcontent-%COMP%] .ui.list[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .jet-modal[_ngcontent-%COMP%] #timeline[_ngcontent-%COMP%] .ui.list[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-bottom:0;color:var(--gray-dark);font-size:var(--font-sm)}.jet-modal[_ngcontent-%COMP%] #timeline[_ngcontent-%COMP%] .ui.list[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{color:var(--gray-dark);opacity:.8}']})}return t})();var Wp=(()=>(function(t){t.newOrder="01",t.onApproval="02",t.approved="03",t.dispatched="04",t.tracking="07",t.calledOff="06",t.concluded="05",t.inProduction="09",t.awaitingPayment="02",t.riskAnalysis="08"}(Wp||(Wp={})),Wp))();function LU(t,i){1&t&&(we(),a(0,"svg",17),B(1,"path",18)(2,"path",19),l())}function kU(t,i){1&t&&(we(),a(0,"svg",20),B(1,"path",21)(2,"path",22),l())}function MU(t,i){1&t&&(we(),a(0,"svg",23),B(1,"path",24),l())}function FU(t,i){1&t&&(we(),a(0,"svg",25),B(1,"path",26)(2,"path",27),l())}function AU(t,i){1&t&&(we(),a(0,"svg",28),B(1,"path",29)(2,"path",30),l())}function NU(t,i){1&t&&(we(),a(0,"svg",31),B(1,"path",32),l())}function OU(t,i){1&t&&(we(),a(0,"svg",23),B(1,"path",33)(2,"path",34),l())}function RU(t,i){1&t&&(we(),a(0,"svg",17),B(1,"path",35)(2,"path",36),l())}function BU(t,i){1&t&&(we(),a(0,"svg",23),B(1,"path",37)(2,"path",38),l())}function jU(t,i){if(1&t&&(a(0,"strong",39),h(1),l()),2&t){const e=_().$implicit;c(1),de(e.statusName)}}function VU(t,i){if(1&t&&(a(0,"p",40),h(1),l()),2&t){const e=_().$implicit;c(1),de(e.message)}}function HU(t,i){if(1&t&&(a(0,"p",40),h(1),l()),2&t){const e=_().$implicit,n=_(2);c(1),Eo(" ",n.isMobile?"":"C\xf3digo de ","Rastreio: ",e.orderInfo.trackingNumber," ")}}function zU(t,i){1&t&&(a(0,"a",41),h(1," Visualizar NFE "),l()),2&t&&hr("href","/order/GetPDFNFe/",_(3).orderId,"",fe)}const qU=function(t,i,e){return{active:t,past:i,fake:e}};function $U(t,i){if(1&t&&(a(0,"div",5)(1,"span",6),ht(2,7),C(3,LU,3,0,"svg",8),C(4,kU,3,0,"svg",9),C(5,MU,2,0,"svg",10),C(6,FU,3,0,"svg",11),C(7,AU,3,0,"svg",12),C(8,NU,2,0,"svg",13),C(9,OU,3,0,"svg",10),C(10,RU,3,0,"svg",8),C(11,BU,3,0,"svg",10),mt(),l(),C(12,jU,2,1,"strong",14),C(13,VU,2,1,"p",15),C(14,HU,2,2,"p",15),C(15,zU,2,1,"a",16),l()),2&t){const e=i.$implicit,n=_(2);d("ngClass",Dg(15,qU,e.current,e.past,e.fake)),c(2),d("ngSwitch",e.statusCode),c(1),d("ngSwitchCase",n.typeStatus.newOrder),c(1),d("ngSwitchCase",n.typeStatus.onApproval),c(1),d("ngSwitchCase",n.typeStatus.approved),c(1),d("ngSwitchCase",n.typeStatus.dispatched),c(1),d("ngSwitchCase",n.typeStatus.tracking),c(1),d("ngSwitchCase",n.typeStatus.calledOff),c(1),d("ngSwitchCase",n.typeStatus.concluded),c(1),d("ngSwitchCase",n.typeStatus.inProduction),c(1),d("ngSwitchCase",n.typeStatus.riskAnalysis),c(1),d("ngIf",e.statusName),c(1),d("ngIf",e.message&&"07"==e.statusCode),c(1),d("ngIf",(null==e.orderInfo?null:e.orderInfo.trackingNumber)&&"04"==e.statusCode),c(1),d("ngIf",(null==e.orderInfo?null:e.orderInfo.hasXMLNfe)&&"04"==e.statusCode)}}function UU(t,i){if(1&t&&(a(0,"div",1)(1,"div",2)(2,"div",3),C(3,$U,16,19,"div",4),l()()()),2&t){const e=_();c(3),d("ngForOf",e.historyListOrderStatus)}}let GU=(()=>{class t{constructor(e){this.commomService=e,this.typeStatus=Wp,this.orderId=Number(location.href?.split("/").pop()),this.isMobile=!1,this.isMobile=this.commomService.isDevice()}ngOnInit(){document.addEventListener("onJetOrderStatusLoaded",e=>{const n=e.detail,r=n.filter(u=>null!=u.dateRegisterStatus).sort((u,v)=>new Date(u.dateRegisterStatus).getTime()-new Date(v.dateRegisterStatus).getTime()),o=[...r];r.forEach((u,v)=>{u.past=v<r.length-1,u.current=v===r.length-1}),1===r.length&&o.push({statusCode:"FAKE_STEP_1",statusName:"",fake:!0},{statusCode:"FAKE_STEP_2",statusName:"",fake:!0}),2===r.length&&o.push({statusCode:"FAKE_STEP_1",statusName:"",fake:!0}),n.some(u=>["05","06"].includes(u.statusCode)&&null!=u.dateRegisterStatus)||o.push({statusCode:"FAKE_FINISH",statusName:"Conclu\xeddo",dateRegisterStatus:"9999-12-31T23:59:59",fake:!0}),this.historyListOrderStatus=o},{passive:!0})}static#e=this.\u0275fac=function(n){return new(n||t)($(qt))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-order-status"]],decls:1,vars:1,consts:[["class","jet-order-status",4,"ngIf"],[1,"jet-order-status"],[1,"status-steps"],[1,"step-order"],["class","step",3,"ngClass",4,"ngFor","ngForOf"],[1,"step",3,"ngClass"],[1,"status-icon"],[3,"ngSwitch"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 576 512",4,"ngSwitchCase"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 384 512",4,"ngSwitchCase"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",4,"ngSwitchCase"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 448 512",4,"ngSwitchCase"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512",4,"ngSwitchCase"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",4,"ngSwitchCase"],["class","status-name",4,"ngIf"],["class","step-message",4,"ngIf"],["title","Visualizar NFE","class","view-nfe","target","_blank",3,"href",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 576 512"],["d","M176 416c-26.51 0-47.1 21.49-47.1 48S149.5 512 176 512s47.1-21.49 47.1-48S202.5 416 176 416zM276.6 180.6h38.86v38.85C315.4 230.7 324.7 240 336 240s20.57-9.257 20.57-20.57V180.6h38.86C406.7 180.6 416 171.3 416 160c0-11.31-9.256-20.57-20.57-20.57h-38.86V100.6c0-11.31-9.26-20.57-20.57-20.57s-20.57 9.256-20.57 20.57v38.85H276.6C265.3 139.4 256 148.7 256 160C256 171.3 265.3 180.6 276.6 180.6zM488 336H179.9L119.6 19.51C117.4 8.19 107.5 0 96 0H23.1C10.75 0 0 10.75 0 23.1S10.75 48 23.1 48h52.14l60.28 316.5C138.6 375.8 148.5 384 160 384H488c13.25 0 24-10.75 24-23.1C512 346.7 501.3 336 488 336zM463.1 416c-26.51 0-47.1 21.49-47.1 48s21.49 48 47.1 48s47.1-21.49 47.1-48S490.5 416 463.1 416z"],["d","M569.5 44.73C563.4 36.64 554.1 32 543.1 32H121.1l48.76 256h318.4c14.23 0 26.88-9.557 30.7
37-23.21l54.86-191.1C577.5 63.05 575.6 52.83 569.5 44.73zM395.4 180.6h-38.86v38.85C356.6 230.7 347.3 240 336 240s-20.57-9.257-20.57-20.57V180.6H276.6C265.3 180.6 256 171.3 256 160C256 148.7 265.3 139.4 276.6 139.4h38.86V100.6c0-11.31 9.259-20.57 20.57-20.57s20.57 9.256 20.57 20.57v38.85h38.86C406.7 139.4 416 148.7 416 160C416 171.3 406.7 180.6 395.4 180.6z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 384 512"],["d","M32 64h64v21.34c0 13.75 4.545 27.39 12.8 38.4L192 234.7l83.2-110.9C283.5 112.7 288 99.09 288 85.34V64h64c17.67 0 32-14.33 32-32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32C0 49.67 14.33 64 32 64zM352 448H32c-17.67 0-32 14.33-32 32c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32C384 462.3 369.7 448 352 448z"],["d","M96 448H32v-21.33c0-27.7 8.982-54.64 25.6-76.8L128 256L57.6 162.1C40.98 139.1 32 113 32 85.34V64h64v21.34c0 13.75 4.545 27.39 12.8 38.4L192 234.7l83.2-110.9C283.5 112.7 288 99.09 288 85.34V64h64v21.34c0 27.7-8.982 54.64-25.6 76.8L256 256l70.4 93.87C343 372 352 398.1 352 426.7V448h-64v-21.33c0-13.76-4.545-27.39-12.8-38.4L192 277.3l-83.2 110.9C100.5 399.3 96 412.9 96 426.7V448z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M480 128c0 8.188-3.125 16.38-9.375 22.62l-256 256C208.4 412.9 200.2 416 192 416s-16.38-3.125-22.62-9.375l-128-128C35.13 272.4 32 264.2 32 256c0-18.28 14.95-32 32-32c8.188 0 16.38 3.125 22.62 9.375L192 338.8l233.4-233.4C431.6 99.13 439.8 96 448 96C465.1 96 480 109.7 480 128z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 448 512"],["d","M448 160v272c0 26.51-21.49 48-48 48h-352C21.49 480 0 458.5 0 432V160h160v112C160 280.8 167.2 288 176 288h96C280.8 288 288 280.8 288 272L287.1 160H448z"],["d","M391.3 53.88C386.9 40.75 374.8 32 360.9 32H256l31.97 128h158.8c.375-.5 .5-.75 .875-1.25L391.3 53.88zM87.13 32c-13.88 0-26 8.75-30.38 21.88L.375 158.8C.75 159.3 .875 159.5 1.25 160H160l32-128H87.13zM160 272C160 281.6 166.4 288 176 288h96C281.6 288 288 281.6 288 272L287.1 160H160V272z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512"],["d","M624 352H608V237.3c0-17.09-6.65-33.15-18.74-45.24l-77.26-77.26C500.1 102.8 483.6 96 466.8 96H416V48C416 21.5 394.5 0 368 0H109.8c-26.5 0-48 21.5-48 48V96H272C280.8 96 288 103.2 288 112S280.8 128 272 128H61.84v32H240C248.8 160 256 167.2 256 176S248.8 192 240 192H61.84v32H208C216.8 224 224 231.2 224 240S216.8 256 208 256H61.84v112c0 10.25 3.277 19.7 8.756 27.5C85.79 351.7 126.1 320 176 320c56.38 0 102.6 41.79 110.4 96h67.23C361.5 361.9 407.7 320 464 320c56.22 0 101.1 41.93 109.8 96H624c8.812 0 16-7.203 16-16v-32C640 359.2 632.8 352 624 352zM544 256h-128V160h50.75L544 237.3V256z"],["d","M176 352C131.8 352 96 387.8 96 432C96 476.2 131.8 512 176 512S256 476.2 256 432C256 387.8 220.2 352 176 352zM464 352c-44.18 0-80 35.82-80 80c0 44.18 35.82 80 80 80s80-35.82 80-80C544 387.8 508.2 352 464 352zM240 160h-192C39.16 160 32 167.2 32 176S39.16 192 47.1 192h192C248.8 192 256 184.8 256 176S248.8 160 240 160zM224 240C224 231.2 216.8 224 208 224h-192C7.164 224 0 231.2 0 240S7.164 256 15.1 256h192C216.8 256 224 248.8 224 240zM272 96h-256C7.164 96 0 103.2 0 111.1S7.164 128 15.1 128h256C280.8 128 288 120.8 288 112S280.8 96 272 96z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512"],["d","M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"],["d","M224 512h64l0-224h-64L224 512zM361 0c-50.82 0-86.34 43.35-105 73.51C237.3 43.35 201.8 0 150.1 0C94.48 0 64 41.39 64 80.33c0 16.26 5.129 31.89 14.83 45.22C94.53 147.1 121.6 160 151.3 160h72.7v96h64V160h72.7c29.68 0 56.77-12.88 72.46-34.44c9.705-13.33 14.83-28.97 14.83-45.22C448 41.39 417.5 0 361 0zM151.3 112c-27.16 0-39.3-17.15-39.3-31.67C112 67.33 122.3 48 150.1 48c30.09 0 57.56 36.5 71.9 64H151.3zM360.7 112h-71.58c14.34-27.5 41.8-64 71.9-64c28.68 0 38.98 19.33 38.98 32.33
3C400 94.85 387.9 112 360.7 112z"],["d","M224 288l0 224H64c-17.69 0-32-14.3-32-32L32 288H224zM224 256V160H151.3C122.9 160 97.1 147.9 81.16 128H32c-17.67 0-32 14.33-32 32v64c0 17.6 14.4 31.97 31.1 31.97L224 256zM288 512h160c17.69 0 32-14.3 32-32l-.0001-192h-191.1L288 512zM480 128h-49.16c-15.94 19.94-41.72 32-70.14 32h-72.7v96l191.1-.0332c17.6 0 32-14.37 32-31.97V160C512 142.3 497.7 128 480 128z"],["d","M568.1 196.3l-22.62-22.62c-4.533-4.533-10.56-7.029-16.97-7.029s-12.44 2.496-16.97 7.029l-5.654 5.656l-20.12-20.12c4.596-23.46-2.652-47.9-19.47-64.73l-45.25-45.25C390.2 17.47 347.1 0 303.1 0C258.2 0 216 17.47 184.3 49.21L176.5 57.05L272.5 105.1v13.81c0 18.95 7.688 37.5 21.09 50.91l49.16 49.14c13.44 13.45 31.39 20.86 50.54 20.86c4.758 0 9.512-.4648 14.18-1.387l20.12 20.12l-5.654 5.654c-9.357 9.357-9.357 24.58-.002 33.94l22.62 22.62c4.535 4.533 10.56 7.031 16.97 7.031s12.44-2.498 16.97-7.031l90.53-90.5C578.3 220.8 578.3 205.6 568.1 196.3z"],["d","M353.1 227.5L122.9 490.9C108.8 504.1 90.44 512 71.1 512s-36.88-7-50.94-21.06c-28.13-28.12-28.09-73.72 .0371-101.8l263.5-230.3c2.598 3.906 5.611 7.619 8.951 10.96l49.16 49.14C345.9 222.1 349.5 224.1 353.1 227.5z"],["d","M256 320C269.3 320 280 309.3 280 296v-128c0-13.25-10.75-24-23.1-24S232 154.8 232 168v128C232 309.3 242.8 320 256 320zM256 353.1c-17.36 0-31.44 14.08-31.44 31.44C224.6 401.9 238.6 416 256 416s31.44-14.08 31.44-31.44C287.4 367.2 273.4 353.1 256 353.1z"],["d","M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z"],[1,"status-name"],[1,"step-message"],["title","Visualizar NFE","target","_blank",1,"view-nfe",3,"href"]],template:function(n,r){1&n&&C(0,UU,4,1,"div",0),2&n&&d("ngIf",r.historyListOrderStatus&&r.historyListOrderStatus.length>0)},dependencies:[ui,ei,en,ku,rm],encapsulation:2})}return t})();function WU(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function JU(t,i){1&t&&(a(0,"span"),h(1,"Informe um E-mail v\xe1lido"),l())}function ZU(t,i){if(1&t&&(a(0,"div",11),C(1,WU,2,0,"span",12),C(2,JU,2,0,"span",12),l()),2&t){const e=_();c(1),d("ngIf",e.f.identification.errors.required),c(1),d("ngIf",e.f.identification.errors.email)}}function QU(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function YU(t,i){if(1&t&&(a(0,"div",11),C(1,QU,2,0,"span",12),l()),2&t){const e=_(2);c(1),d("ngIf",e.loginf.username.errors.required)}}function KU(t,i){1&t&&(a(0,"span"),h(1,"Informe a Senha"),l())}function XU(t,i){if(1&t&&(a(0,"div",11),C(1,KU,2,0,"span",12),l()),2&t){const e=_(2);c(1),d("ngIf",e.loginf.password.errors.required)}}function eG(t,i){if(1&t){const e=ve();a(0,"div",13)(1,"div",14)(2,"button",15),J("click",function(){return M(e),L(_().closeLoginForm())}),we(),a(3,"svg",16),B(4,"path",17),l(),Pe(),a(5,"span"),h(6,"Fechar"),l()(),a(7,"form",18),J("ngSubmit",function(){return M(e),L(_().recaptchaLogin("login"))}),a(8,"div",19)(9,"div",20)(10,"div",21)(11,"label",22),h(12,"Informe sua senha para prosseguir"),l(),B(13,"input",23,24),C(15,YU,2,1,"div",8),l()(),a(16,"div",4)(17,"div",25),B(18,"input",26,27),C(20,XU,2,1,"div",8),l()(),a(21,"div",28)(22,"a",29),h(23,"Esqueceu sua senha? "),a(24,"span"),h(25,"Recuperar"),l()()(),a(26,"div",30)(27,"button",31),J("click",function(){return M(e),L(_().closeLoginForm())}),h(28,"Cancelar"),l(),a(29,"button",32),h(30,"Entrar"),l()()()()()()}if(2&t){const e=_();c(7),d("formGroup",e.loginForm),c(6),ii("type",e.isInternational?"email":"text")("placeholder",e.isInternational?"E-mail":"E-mail, CPF ou CNPJ"),c(2),d("ngIf",e.loginf.username.errors&&(e.loginf.username.dirty||e.loginf.username.touched)),c(5),d("ngIf",e.loginf.password.errors&&(e.loginf.password.dirty||e.loginf.password.touched))}}const tG=function(t){return{"jet-btn-loading":t}};let nG=(()=>{class t{constructor(e,n,r,o,s,u){this.customerService=e,this.sharedDataCommomService=n,this.fb=o,this.googleRecaptcha=s,this.detectChanges=u,this.loading=!1,this.seller="",this.loginB2b=!1,this.isInternational=!1,this.commomService=r}ngOnInit(){this.seller=this.commomService.getQueryVar("utm_seller"),this.sharedDataCommomService.currentCompany$.subscribe(e=>{e&&(this.company=e)}),this.seller&&sessionStorage.setItem("seller_utm",this.seller),sessionStorage.setItem("email",""),this.identificationForm=this.fb.group({identification:["",[oe.required]]}),this.loginForm=this.fb.group({username:["",[oe.required,oe.minLength(3)]],password:["",[oe.required]]}),this.internationalSubs$=this.sharedDataCommomService.international$.subscribe(e=>{if(e){this.isInternational=e.country?.id>1;const n=this.identificationForm.get("identification"),r=this.loginForm.get("username");this.isInternational?(n?.setValidators([oe.required,oe.pattern(/^(([^<>()[\]\\.,;:\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,}))$/)]),r?.setValidators([oe.required,oe.pattern(/^(([^<>()[\]\\.,;:\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,}))$/)])):(n?.setValidators([oe.required,oe.minLength(3)]),r?.setValidators([oe.required,oe.minLength(3)])),n?.updateValueAndValidity(),r?.updateValueAndValidity()}}),this.commomService.getQueryVar("b2b")&&(this.loginB2b=!0)}ngAfterViewInit(){if(sessionStorage.getItem("customer")){document.body.classList.add("jet-loading");let e=JSON.parse(sessionStorage.getItem("customer"));sessionStorage.removeItem("customer"),this.identificationForm.controls.identification.setValue(e.email),this.detectChanges.detectChanges(),this.recaptcha()}}get f(){return this.identificationForm.controls}get loginf(){return this.loginForm.controls}sendIdentification(e){this.loading=!0,sessionStorage.setItem("cpfCnpj",""),sessionStorage.setItem("email","");
3var n=this.f.identification.value.trim(),r=this.commomService.validEmail(n),o=this.commomService.validCPF(n),s=this.commomService.validCNPJ(n);if(""===n)this.loading=!1,this.commomService.displayMessageUser("error","Informe um E-mail, CPF ou CNPJ.");else if(r||o||s){let u=r?"email":"cpf_cnpj";"cpf_cnpj"==u&&(n=o?this.commomService.stripCpf(n):this.commomService.stripCnpj(n)),this.customerService.getIdentificationEmail(n,u,e).subscribe(v=>{if(this.company.loginOTP)return this.loading=!1,void(window.location.href="customer/checkaccesskey?email="+v.email+"&otp=1");v.automaticSecurePasswordGeneration?this.customerService.sendCodeChangeAddress(v.email).subscribe(w=>{this.loading=!1,window.location.href="customer/checkaccesskey?email="+v.email}):(this.loading=!1,this.displayLoginForm=!0,this.loginf.username.setValue(n),this.identificationForm.disable())},v=>{this.loading=!1,sessionStorage.setItem(r?"email":"cpfCnpj",n),window.location.href="customer/register"+(this.loginB2b?"?b2b=1":"")})}else this.loading=!1,this.commomService.displayMessageUser("error","Informe um E-mail, CPF ou CNPJ v\xe1lido.")}login(e){if(!this.loginForm.valid)return void((this.loginf.username.invalid||this.loginf.password.invalid)&&this.commomService.displayMessageUser("error","Preencha os campos corretamente"));let n=this.loginf.username.value,r=this.loginf.password.value;var o=this.commomService.validEmail(n),s=this.commomService.validCPF(n),u=this.commomService.validCNPJ(n);o||s||u?(this.commomService.showLoading(),this.commomService.getValidSession(!1).subscribe(v=>{this.loginCustomer(n,r,e,o,s)},v=>{this.commomService.displayMessageUser("error",v.error.error)}),this.commomService.hideLoading()):this.commomService.displayMessageUser("error","Informe um E-mail, CPF ou CNPJ v\xe1lido.")}loginCustomer(e,n,r,o,s){this.customerService.login(e,n,r,this.loginB2b,this.company.allowPJB2C).subscribe(u=>{o&&sessionStorage.setItem("emailGTM",e),this.commomService.finishLoadComponent("onJetPushDataLayerEvent",{detail:{type:"login",params:{method:o?"email":s?"cpf":"cnpj"}}}),this.loginB2b?this.commomService.finishLoadComponent("onJetUserB2BLogged",{detail:{value:u.nameTablePrice}}):this.commomService.finishLoadComponent("onJetUserLogged");let v=1e3;u.cartRecovered&&(this.commomService.displayMessageUser("success","Os produtos que voc\xea adicionou anteriormente est\xe3o de volta no seu carrinho. Continue sua compra!."),v=2e3),setTimeout(()=>{window.location.href="/customer"},v)},u=>{this.commomService.displayMessageUser("error",u.error.error)})}recaptcha(){this.identificationForm.invalid||this.googleRecaptcha.sendRecaptcha("FirstAccess","FirstAccess").subscribe(e=>{this.sendIdentification(e)})}recaptchaLogin(e){this.googleRecaptcha.sendRecaptcha("Login","login").subscribe(n=>{this.login(n)})}closeLoginForm(){this.displayLoginForm=!1,this.identificationForm.enable()}static#e=this.\u0275fac=function(n){return new(n||t)($(Ci),$(yn),$(qt),$(ao),$(xd),$(Gl))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-access-key"]],decls:13,vars:10,consts:[[1,"jet-access-key"],[1,"identification"],["novalidate","",3,"formGroup","ngSubmit","keypress"],[1,"container-form"],[1,"container-field"],["for","field"],["formControlName","identification","autocomplete","off"],["identification",""],["class","invalid-feedback",4,"ngIf"],["id","btn-identification",1,"jet-button",3,"disabled","ngClass"],["class","login-modal jet-modal",4,"ngIf"],[1,"invalid-feedback"],[4,"ngIf"],[1,"login-modal","jet-modal"],[1,"jet-modal-content","modal-content","content-center","auto-height"],[1,"jet-modal-close","modal-close",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 352 512",1,"icon"],["fill","currentColor","d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z",1,""],[3,"formGroup","ngSubmit"],[1,"container-form","jet-exists-email"],[1,"container-field","disabled"],[1,"username"],["for","username"],["formControlName","username","readonly","","disabled",""],["username",""],[1,"password"],["placeholder","Senha","formControlName","password","type","password"],["password",""],[1,"recover-password"],["href","/customer/forgot","title","Clique para recuperar sua senha"],[1,"container-buttons"],["type","button",1,"btn-cancel",3,"click"],["type","submit"]],template:function(n,r){1&n&&(a(0,"div",0)(1,"div",1)(2,"form",2),J("ngSubmit",function(){return r.recaptcha()})("keypress",function(s){return r.commomService.disableSubmit(s,!r.identificationForm.valid)}),a(3,"div",3)(4,"div",4)(5,"label",5),h(6),l(),B(7,"input",6,7),C(9,ZU,3,2,"div",8),l(),a(10,"button",9),h(11,"Continuar"),l()()()(),C(12,eG,31,5,"div",10),l()),2&n&&(c(2),d("formGroup",r.identificationForm),c(4),de(r.isInternational?"E-mail":"E-mail, CPF ou CNPJ"),c(1),ii("type",r.isInternational?"email":"text")("placeholder",r.isInternational?"E-mail":"E-mail, CPF ou CNPJ"),c(2),d("ngIf",r.f.identification.errors&&(r.f.identification.dirty||r.f.identification.touched)),c(1),d("disabled",!r.f.identification.valid)("ngClass",Oe(8,tG,r.loading)),c(2),d("ngIf",r.displayLoginForm))},dependencies:[ui,en,Gr,mr,fr,Ur,Ir,Mr],encapsulation:2})}return t})();function iG(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function rG(t,i){if(1&t&&(a(0,"div",14),C(1,iG,2,0,"span",15),l()),2&t){const e=_(3);c(1),d("ngIf",e.loginOtpForm.controls.email.errors.required)}}function oG(t,i){if(1&t&&(a(0,"div",9)(1,"label",10),h(2,"E-mail"),l(),B(3,"input",11,12),C(5,rG,2,1,"div",13),l()),2&t){const e=_(2);c(5),d("ngIf",e.loginOtpForm.controls.email.errors&&(e.loginOtpForm.controls.email.dirty||e.loginOtpForm.controls.email.touched))}}function sG(t,i){if(1&t&&(a(0,"span",22),h(1," N\xe3o recebeu o c\xf3digo? Reenviar em "),a(2,"strong",23),h(3),l(),B(4,"br"),h(5," Verifique tamb\xe9m sua caixa de spam. "),l()),2&t){const e=_(3);
3c(3),Eo("",e.minutes,":",e.seconds,"")}}function aG(t,i){if(1&t){const e=ve();a(0,"span",22)(1,"strong",24),J("click",function(){return M(e),L(_(3).resendOtpToken())}),h(2,"Clique aqui"),l(),h(3," para reenviar o token de acesso."),B(4,"br"),h(5," Verifique tamb\xe9m sua caixa de spam. "),l()}}function lG(t,i){if(1&t&&(a(0,"div",4),C(1,sG,6,2,"span",16),C(2,aG,6,0,"ng-template",null,17,_i),B(4,"p"),a(5,"div",18)(6,"label",19),h(7,"Token de acesso"),l(),B(8,"input",20,21),l()()),2&t){const e=Wt(3),n=_(2);c(1),d("ngIf",n.countDownTimer>0)("ngIfElse",e)}}function cG(t,i){if(1&t){const e=ve();a(0,"div",25)(1,"div",26)(2,"input",27),J("change",function(){M(e);const r=_(2);return L(r.loginB2b=!r.loginB2b)}),l(),B(3,"label",28),l(),a(4,"span"),h(5),l()()}if(2&t){const e=_(2);c(2),d("checked",e.loginB2b),c(3),dt("",e.isMobile?"":"Acesso a ","\xc1rea Restrita")}}const Py=function(t){return{"jet-btn-loading":t}};function dG(t,i){if(1&t){const e=ve();a(0,"button",29),J("click",function(){return M(e),L(_(2).recaptcha())}),h(1,"Enviar"),l()}if(2&t){const e=_(2);d("ngClass",Oe(1,Py,e.loading))}}function uG(t,i){if(1&t){const e=ve();a(0,"button",29),J("click",function(){return M(e),L(_(2).validadeOtpToken())}),h(1,"Confirmar"),l()}if(2&t){const e=_(2);d("ngClass",Oe(1,Py,e.loading))}}function hG(t,i){if(1&t){const e=ve();a(0,"form",2),J("keyup.enter",function(){M(e);const r=_();return L(r.showTokenOtp?r.validadeOtpToken():r.recaptcha())}),a(1,"div",3)(2,"h3"),h(3,"Receber c\xf3digo de acesso por e-mail"),l(),a(4,"div",4),C(5,oG,6,1,"div",5),C(6,lG,10,2,"div",6),l(),C(7,cG,6,2,"div",7),C(8,dG,2,3,"button",8),C(9,uG,2,3,"button",8),l()()}if(2&t){const e=_();d("formGroup",e.loginOtpForm),c(5),d("ngIf",0==e.showTokenOtp),c(1),d("ngIf",e.showTokenOtp),c(1),d("ngIf",e.showB2BCheckbox&&0==e.showTokenOtp&&"CustomerCenter"==e.displayMode),c(1),d("ngIf",0==e.showTokenOtp),c(1),d("ngIf",e.showTokenOtp)}}function mG(t,i){if(1&t){const e=ve();a(0,"div",30)(1,"div",31)(2,"p")(3,"strong"),h(4,"Para prosseguir este acesso, \xe9 necessario ler e concordar com nossos Termos e Condi\xe7\xf5es"),l()(),a(5,"div",32),B(6,"p",33),Wi(7,"safeHtml"),l(),a(8,"div")(9,"div",34)(10,"input",35),J("change",function(){M(e);const r=_();return L(r.TermB2BAccepted=!r.TermB2BAccepted)}),l(),a(11,"label",36)(12,"strong"),h(13," Li e estou de acordo com os Termos e Condi\xe7\xf5es"),l()()(),a(14,"button",37),J("click",function(){return M(e),L(_().AcceptTermB2B())}),h(15,"Continuar"),l()()()()}if(2&t){const e=_();c(6),d("innerHtml",Lo(7,2,e.companyData.termToAcceptTextB2B),ce),c(4),d("checked",e.TermB2BAccepted)}}let Ty=(()=>{class t{constructor(e,n,r,o,s,u){this.sharedDataCommomService=e,this.sharedDataCheckoutService=n,this.fb=r,this.customerService=o,this.commomService=s,this.googleRecaptcha=u,this.displayMode="CustomerCenter",this.loginOrigin="CustomerCenter",this.loading=!1,this.loginB2b=!1,this.showB2BCheckbox=!1,this.showTermB2B=!1,this.TermB2BAccepted=!1,this.isMobile=!1,this.showTokenOtp=!1,this.countDownTimer=120,this.minutes="00",this.seconds="00",this.isMobile=this.commomService.isDevice()}ngOnInit(){"CustomerCenter"!=this.displayMode&&"Checkout"!=this.displayMode&&"AccessKey"!=this.displayMode&&"CheckoutV2"!=this.displayMode&&(this.displayMode="CustomerCenter"),this.loginOtpForm=this.fb.group({email:["",[oe.required,oe.minLength(3)]],token:[""]}),this.sharedDataCommomService.currentCompany$.subscribe(e=>{e&&(this.companyData=e,this.companyData.statusB2B&&(this.showB2BCheckbox=!0),this.showB2BCheckbox&&this.commomService.getQueryVar("b2b")&&(this.loginB2b=!0))}),this.sharedDataCheckoutService.currentCustomer$.subscribe(e=>{e&&this.loginOtpForm.controls.email.setValue(e.email)}),document.addEventListener("onJetLoginOtpCheckoutV2",e=>{this.loginOtpForm.controls.email.setValue(e.detail.customer.email),this.typeLoginCheckoutV2=e.detail.typeLogin},{passive:!0}),document.addEventListener("onJetLoginOtpCheckAccessKey",e=>{setTimeout(()=>{this.loginOtpForm.controls.email.setValue(e.detail.email),this.recaptcha()},500)},{passive:!0})}ngOnDestroy(){clearInterval(this.intervalOtp)}recaptcha(){if(!this.loginOtpForm.valid)return Object.keys(this.loginOtpForm.controls).forEac
3h(e=>{this.loginOtpForm.controls[e].markAsDirty()}),void this.commomService.displayMessageUser("error","Informe um E-mail v\xe1lido.");this.loading=!0,this.googleRecaptcha.sendRecaptcha("Login","loginOTP").subscribe(e=>{this.sendEmailLoginOtp(e)})}sendEmailLoginOtp(e){if(0==this.commomService.validEmail(this.loginOtpForm.controls.email.value))return this.loading=!1,void this.commomService.displayMessageUser("error","Informe um E-mail v\xe1lido.");this.loading=!0,this.customerService.generateOtpToken(this.loginOtpForm.controls.email.value,e,this.loginB2b).subscribe(r=>r&&1==r.exists?1==r.blocked?(this.loading=!1,void this.commomService.displayMessageUser("error","N\xe3o foi poss\xedvel acessar sua conta. Tente novamente mais tarde ou entre em contato com nosso atendimento.")):(this.startCountDownOtpToken(),this.showTokenOtp=!0,void(this.loading=!1)):(this.loading=!1,this.loginB2b?void this.commomService.displayMessageUser("error","Usu\xe1rio n\xe3o encontrado."):void(window.location.href="/customer/register")),r=>{this.loading=!1})}validadeOtpToken(){if(null==this.loginOtpForm.controls.token.value||null==this.loginOtpForm.controls.token.value||""==this.loginOtpForm.controls.token.value)return this.loading=!1,void this.commomService.displayMessageUser("error","Informe um token v\xe1lido.");this.loading=!0,this.commomService.getValidSession(!1).subscribe(e=>{this.customerService.validateOtpToken(this.loginOtpForm.controls.token.value,this.loginB2b).subscribe(n=>{if(n){sessionStorage.setItem("emailGTM",this.loginOtpForm.controls.email.value),this.commomService.finishLoadComponent("onJetPushDataLayerEvent",{detail:{type:"login",params:{method:"email"}}});let s=1e3;if(this.loginB2b){if(this.companyData.statusUseTermToAcceptB2B&&0==n.acceptTermB2B)return void(this.showTermB2B=!0);this.commomService.finishLoadComponent("onJetUserB2BLogged",{detail:{value:n.nameTablePrice}})}else switch(this.loginOrigin){case"Checkout":return void this.customerService.getCustomerInfo().subscribe(u=>{this.sharedDataCheckoutService.changeValueCustomer(u),this.customerService.isLogged().subscribe(v=>{this.commomService.finishLoadComponent("onJetLoginOtpCheckout",{detail:{customer:u,loginCookie:v}})})});case"CheckoutV2":return void this.commomService.finishLoadComponent("onJetVeriyLogin",{detail:{type:this.typeLoginCheckoutV2,changeAddress:!0}});case"Voucher":return void this.customerService.getCustomerInfo().subscribe(u=>{this.sharedDataCheckoutService.changeValueCustomer(u),this.customerService.isLogged().subscribe(v=>{this.commomService.finishLoadComponent("onJetLoginOtpCheckout",{detail:{customer:u,loginCookie:v}}),this.commomService.finishLoadComponent("onJetLoginOtpVoucher",{detail:{customer:u}})})});case"AccessKey":var r=this.commomService.getQueryVar("idProductWishlist"),o=this.commomService.getQueryVar("returnUrl").toString();0!=r?(this.loading=!1,this.addWishList(r,o)):(this.commomService.finishLoadComponent("onJetUserLogged"),n.cartRecovered&&(this.commomService.displayMessageUser("success","Os produtos que voc\xea adicionou anteriormente est\xe3o de volta no seu carrinho. Continue sua compra!."),s=2e3));break;default:r=this.commomService.getQueryVar("idProductWishlist"),o=this.commomService.getQueryVar("returnUrl").toString(),0!=r?(this.loading=!1,this.addWishList(r,o)):(this.commomService.finishLoadComponent("onJetUserLogged"),n.cartRecovered&&(this.commomService.displayMessageUser("success","Os produtos que voc\xea adicionou anteriormente est\xe3o de volta no seu carrinho. Continue sua compra!."),s=2e3))}setTimeout(()=>{this.loading=!1,window.location.href="/customer"},s)}else this.loading=!1,this.commomService.displayMessageUser("error","Informe um token v\xe1lido.")},n=>{this.loading=!1,this.commomService.displayMessageUser("error","Informe um token v\xe1lido.")})},e=>{this.loading=!1,this.commomService.displayMessageUser("error",e.error.error)})}startCountDownOtpToken(){this.updateCountDownOtpTimer(),this.intervalOtp=setInterval(()=>{this.countDownTimer>0?(this.countDownTimer--,this.updateCountDownOtpTimer()):clearInterval(this.intervalOtp)},1e3)}updateCountDownOtpTimer(){const e=Math.floor(this.countDownTimer/60),n=this.countDownTimer%60;this.minutes=this.formatTime(e),this.seconds=this.formatTime(n)}formatTime(e){return e<10?`0${e}`:`${e}`}resendOtpToken(){this.customerService.resendOtpToken(this.loginOtpForm.controls.email.value,this.loginB2b).subscribe(e=>{this.countDownTimer=120,this.startCountDownOtpToken()},e=>{})}AcceptTermB2B(){this.customerService.isLogged().subscribe(e=>{this.customerService.getCustomer(e.data.idCustomer).subscribe(r=>{this.customer=r,this.TermB2BAccepted&&(this.customer.user.acceptTermB2B=!0),this.customerService.updateCustomerBasicInfo(this.customer).subscribe(o=>{this.loading=!1,window.location.href="/customer"},o=>{this.loading=!1,this.commomService.displayMessageUser("error",o.error.error)})})})}addWishList(e,n){this.customerService.isLoggedB2B().subscribe(r=>{this.customerService.postItemToWishList(r,!r,Number(e)).subscribe(u=>{document.location.href=n+"?msgSuccess="+btoa("Produto adicionado \xe0 lista de desejos")},u=>{document.location.href=n+"?msgSuccess="+btoa("Produto adicionado \xe0 lista de desejos")})})}static#e=this.\u0275fac=function(n){return new(n||t)($(yn),$($h),$(ao),$(Ci),$(qt),$(xd))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-login-otp"]],inputs:{displayMode:["data-display-mode","displayMode"],loginOrigin:["data-login-origin","loginOrigin"]},decls:2,vars:2,consts:[[3,"formGroup","keyup.enter",4,"ngIf"],["class","jet-modal modal-policy",4,"ngIf"],[3,"formGroup","keyup.enter"],[1,"container-form"],[1,"container-field"],["class","email",4,"ngIf"],["class","container-field",4,"ngIf"],["class","login-restricted-checkbox",4,"ngIf"],["type","button",3,"ngClass","click",4,"ngIf"],[1,"email"],["for","email"],["placeholder","E-mail","formControlName","email"],["email",""],["class","invali
3d-feedback",4,"ngIf"],[1,"invalid-feedback"],[4,"ngIf"],["class","description",4,"ngIf","ngIfElse"],["resend",""],[1,"token"],["for","token"],["placeholder","Token de acesso","formControlName","token","type","token"],["token",""],[1,"description"],[1,"notranslate"],[1,"link",3,"click"],[1,"login-restricted-checkbox"],[1,"input"],["type","checkbox","id","checkLoginB2B","name","checkLoginB2B",3,"checked","change"],["for","checkLoginB2B"],["type","button",3,"ngClass","click"],[1,"jet-modal","modal-policy"],[1,"jet-modal-content","modal-content","auto-height"],[1,"term-b2b-login"],[3,"innerHtml"],[1,"term-b2b-checkbox"],["type","checkbox","id","termToAcceptTextB2B",3,"checked","change"],["for","termToAcceptTextB2B"],["type","button","title","Continuar",1,"term-b2b-btn-login",3,"click"]],template:function(n,r){1&n&&(C(0,hG,10,6,"form",0),C(1,mG,16,4,"div",1)),2&n&&(d("ngIf",r.companyData&&r.companyData.loginOTP),c(1),d("ngIf",null!=r.companyData&&r.showTermB2B))},dependencies:[ui,en,Gr,mr,fr,Ur,Ir,Mr,za]})}return t})();function fG(t,i){1&t&&(a(0,"div",5)(1,"strong"),h(2,"Voc\xea j\xe1 fez uma compra em nossa loja."),l(),a(3,"p"),h(4,"Cheque seu email, pois foi enviado um c\xf3digo de acesso para recuperar as informa\xe7\xf5es da sua compra anterior."),l()())}function pG(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function gG(t,i){if(1&t&&(a(0,"div",21),C(1,pG,2,0,"span",22),l()),2&t){const e=_(2);c(1),d("ngIf",e.f.username.errors.required)}}function vG(t,i){1&t&&(a(0,"span"),h(1,"Informe uma chave de acesso"),l())}function _G(t,i){if(1&t&&(a(0,"div",21),C(1,vG,2,0,"span",22),l()),2&t){const e=_(2);c(1),d("ngIf",e.f.accessToken.errors.required)}}function CG(t,i){if(1&t){const e=ve();a(0,"form",6),J("ngSubmit",function(){return M(e),L(_().sendAcess())}),a(1,"div",7)(2,"div",8)(3,"div",9),B(4,"input",10,11),C(6,gG,2,1,"div",12),l()(),a(7,"div",13)(8,"div",14),B(9,"input",15,16),C(11,_G,2,1,"div",12),l()(),a(12,"div",17)(13,"a",18),J("click",function(){return M(e),L(_().resendEmail())}),h(14,"N\xe3o recebeu ainda sua chave? "),a(15,"strong"),h(16,"Re-envie o c\xf3digo de acesso."),l()()(),a(17,"button",19),h(18,"Entrar"),l(),a(19,"button",20),J("click",function(){return M(e),L(_().goToUrl("/customer/accesskey"))}),h(20,"Voltar"),l()()()}if(2&t){const e=_();d("formGroup",e.identificationForm),c(6),d("ngIf",e.f.username.errors&&(e.f.username.dirty||e.f.username.touched)),c(5),d("ngIf",e.f.accessToken.errors&&(e.f.accessToken.dirty||e.f.accessToken.touched))}}let yG=(()=>{class t{constructor(e,n,r,o,s){this.customerService=e,this.sharedDataCommomService=n,this.commomService=r,this.fb=o,this.googleRecaptcha=s}ngOnInit(){let e=this.getEmailFromUrl(),n=this.getLoginOtpFromUrl();""==e&&(window.location.href="customer/accesskey"),this.identificationForm=this.fb.group({username:[e,[oe.required]],accessToken:["",[oe.required]]}),this.sharedDataCommomService.currentCompany$.subscribe(r=>{r&&(this.company=r)}),n&&this.commomService.finishLoadComponent("onJetLoginOtpCheckAccessKey",{detail:{email:e}})}get f(){return this.identificationForm.controls}sendAcess(){this.identificationForm.valid?this.customerService.validaAccessKeyEmail(0,this.f.username.value,this.f.accessToken.value).subscribe(e=>{e?this.customerService.retornaCookieValidaAccessKeyEmail(this.f.username.value).subscribe(n=>{n?document.location.href="customer/finishregistration/"+this.f.username.value:this.commomService.displayMessageUser("error","Chave de acesso inv\xe1lida.")}):this.commomService.displayMessageUser("error","Chave de acesso inv\xe1lida.")}):this.identificationForm.markAllAsTouched()}getEmailFromUrl(){const e=window.location.search;return new URLSearchParams(e).get("email")??""}getLoginOtpFromUrl(){const e=window.location.search;return new URLSearchParams(e).get("otp")??null}resendEmail(){this.customerService.sendCodeChangeAddress(this.f.username.value).subscribe(e=>{this.commomService.displayMessageUser("success","C\xf3digo de acesso reenviado!")})}goToUrl(e){window.location.href=e}static#e=this.\u0275fac=function(n){return new(n||t)($(Ci),$(yn),$(qt),$(ao),$(x
3d))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-check-access-key"]],decls:5,vars:4,consts:[[1,"jet-check-access-key"],["class","message message-buyer",4,"ngIf"],[1,"identification"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"data-display-mode","data-login-origin"],[1,"message","message-buyer"],[3,"formGroup","ngSubmit"],[1,"container-form","jet-exists-email"],[1,"container-field","disabled"],[1,"username"],["placeholder","E-mail, CPF ou CNPJ","formControlName","username","readonly","","disabled",""],["username",""],["class","invalid-feedback",4,"ngIf"],[1,"container-field"],[1,"token"],["placeholder","C\xf3digo de Acesso","formControlName","accessToken"],["accessToken",""],[1,"recover-password"],["title","Clique para recuperar sua senha",3,"click"],["type","submit"],["title","voltar","type","button",1,"btn-cancel",3,"click"],[1,"invalid-feedback"],[4,"ngIf"]],template:function(n,r){1&n&&(a(0,"div",0),C(1,fG,5,0,"div",1),a(2,"div",2),C(3,CG,21,3,"form",3),B(4,"jet-login-otp",4),l()()),2&n&&(c(1),d("ngIf",r.company&&0==r.company.loginOTP),c(2),d("ngIf",r.company&&0==r.company.loginOTP),c(1),d("data-display-mode","AccessKey")("data-login-origin","AccessKey"))},dependencies:[en,Ty,Gr,mr,fr,Ur,Ir,Mr]})}return t})();function bG(t,i){1&t&&B(0,"div",16)}function SG(t,i){if(1&t){const e=ve();a(0,"button",17),J("click",function(){return M(e),L(_(3).recaptcha("facebook"))}),we(),a(1,"svg",18),B(2,"path",19),l()()}2&t&&d("disabled",!_(3).itsLoaded)}function wG(t,i){if(1&t&&(a(0,"div",13),C(1,bG,1,0,"div",14),C(2,SG,3,1,"button",15),l()),2&t){const e=i.$implicit;c(1),d("ngIf","Google"==e.name),c(1),d("ngIf","Facebook"==e.name)}}function IG(t,i){if(1&t&&(a(0,"div",10)(1,"div",11),C(2,wG,3,2,"div",12),l()()),2&t){const e=_();c(2),d("ngForOf",e.socialCompany)}}function xG(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function DG(t,i){1&t&&(a(0,"span"),h(1,"Informe um E-mail v\xe1lido"),l())}function PG(t,i){if(1&t&&(a(0,"div",38),C(1,xG,2,0,"span",39),C(2,DG,2,0,"span",39),l()),2&t){const e=_(2);c(1),d("ngIf",e.f.username.errors.required),c(1),d("ngIf",e.f.username.errors.email)}}function TG(t,i){1&t&&(a(0,"span"),h(1,"Informe a Senha"),l())}function EG(t,i){if(1&t&&(a(0,"div",38),C(1,TG,2,0,"span",39),l()),2&t){const e=_(2);c(1),d("ngIf",e.f.password.errors.required)}}function LG(t,i){if(1&t){const e=ve();a(0,"div",40)(1,"div",41)(2,"input",42),J("change",function(){M(e);const r=_(2);return L(r.loginB2b=!r.loginB2b)}),l(),B(3,"label",43),l(),a(4,"span"),h(5),l()()}if(2&t){const e=_(2);c(2),d("checked",e.loginB2b),c(3),dt("",e.isMobile?"":"Acesso a ","\xc1rea Restrita")}}const kG=function(t){return{"jet-btn-loading":t}};function MG(t,i){if(1&t){const e=ve();a(0,"form",20),J("ngSubmit",function(){return M(e),L(_().recaptcha("login"))}),a(1,"div",21)(2,"div",22)(3,"div",23)(4,"label",24),h(5),l(),B(6,"input",25,26),C(8,PG,3,2,"div",27),l()(),a(9,"div",22)(10,"div",28)(11,"label",29),h(12,"Senha"),l(),B(13,"input",30,31),C(15,EG,2,1,"div",27),l()(),a(16,"div",32)(17,"div",33),C(18,LG,6,2,"div",34),a(19,"div",35)(20,"a",36),h(21,"Esqueceu sua senha? "),a(22,"span"),h(23,"Recuperar"),l()()()()(),a(24,"button",37),h(25,"Entrar"),l()()()}if(2&t){const e=_();d("formGroup",e.loginForm),c(5),de(e.isInternational?"E-mail":"E-mail, CPF ou CNPJ"),c(1),ii("type",e.isInternational?"email":"text")("placeholder",e.isInternational?"E-mail":"E-mail, CPF ou CNPJ"),c(2),d("ngIf",e.f.username.errors&&(e.f.username.dirty||e.f.username.touched)),c(7),d("ngIf",e.f.password.errors&&(e.f.password.dirty||e.f.password.touched)),c(3),d("ngIf",e.showB2BCheckbox),c(6),d("ngClass",Oe(8,kG,e.loading))}}function FG(t,i){if(1&t&&(a(0,"div",6)(1,"a",44),h(2,"Comprou e n\xe3o possui senha? "),a(3,"span"),h(4,"Cadastre-se"),l()()()),2&t){const e=_();c(1),hr("href","/customer/accesskey",e.loginB2b?"?b2b=1":"","",fe)}}function AG(t,i){if(1&t){const e=ve();a(0,"div",45)(1,"div",46)(2,"p")(3,"strong"),h(4,"Para prosseguir este acesso, \xe9 necessario ler e concordar com nossos Termos e Condi\xe7\xf5es"),l()(),a(5,"div",47),B(6,"p",48),Wi(7,"safeHtml"),l(),a(8,"div")(9,"div",49)(10,"input",50),J("change",function(){M(e);const r=_();return L(r.TermB2BAccepted=!r.TermB2BAccepted)}),l(),a(11,"label",51)(12,"strong"),h(13," Li e estou de acordo com os Termos e Condi\xe7\xf5es"),l()()(),a(14,"button",52),J("click",function(){return M(e),L(_().AcceptTermB2B())}),h(15,"Continuar"),l()()()()}if(2&t){const e=_();c(6),d("innerHtml",Lo(7,2,e.companyData.termToAcceptTextB2B),ce),c(4),d("checked",e.TermB2BAccepted)}}let NG=(()=>{class t{constructor(e,n,r,o,s,u,v,w,P,F){this.fb=e,this.socialNetworkService=n,this.customerService=r,this.commomService=o,this.authService=s,this.googleRecaptcha=u,this.storeEventsService=v,this.companyService=w,this.sharedDataCustomerService=P,this.sharedDataCommomService=F,this.socialCompany=[],this.checked=!0,this.itsLoaded=!1,this.loading=!1,this.loginB2b=!1,this.showB2BCheckbox=!1,this.showTermB2B=!1,this.TermB2BAccepted=!1,this.isMobile=!1,this.isInternational=!1,this.isMobile=this.commomService.isDevice()}ngOnInit(){this.loginForm=this.fb.group({username:["",[oe.required,oe.minLength(3)]],password:["",[oe.required]]}),this.internationalSubs$=this.sharedDataCommomService.international$.subscribe(e=>{if(e){this.isInternational=e.country?.id>1;const n=this.loginForm.get("username");n?.setValidators(this.isInternational?[oe.required,oe.pattern(/^(([^<>()[\]\\.,;:\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,}))$/)]:[oe.required,oe.minLength(3)]),n?.updateValueAndValidity()}}),this.companySubs$=this.sharedDataCustomerService.currentCompany$.subscribe(e=>{e&&(this.companyData=e),this.authService.authState.subscribe(n=>{"facebook"==n.provider.toLocaleLowerCase()&&this.commomService.getValidSession(!1).subscribe(r=>{this.socialNetworkService.loginSocial(n.id,n.provider.toLocaleLowerCase(),n.name,n.email).subscribe(o=>
3{sessionStorage.setItem("emailGTM",n.email),this.storeEventsService.pushDataLayer([{event:"login",method:"facebook"}]);var u=this.commomService.getQueryVar("idProductWishlist"),v=this.commomService.getQueryVar("returnUrl").toString();if(0!=u)this.addWishList(u,v);else{this.commomService.finishLoadComponent("onJetUserLogged");let w=1e3;o.cartRecovered&&(this.commomService.displayMessageUser("success","Os produtos que voc\xea adicionou anteriormente est\xe3o de volta no seu carrinho. Continue sua compra!."),w=2e3),setTimeout(()=>{this.loading=!1,window.location.href="/customer"},w)}},o=>{this.commomService.getValidSession(!1).subscribe(s=>{if(""!=n.email&&null!=n.email&&null!=n.email){this.insertInSession(n.email,n.name,n.id,n.provider.toLocaleLowerCase(),"true");let u=this.montaJsonLoginSocial(n.id,n.provider.toLocaleLowerCase(),n.email);this.customerService.checksExistenceAndLinkEmail(u).subscribe(v=>{if(v.exist){sessionStorage.setItem("emailGTM",n.email),this.storeEventsService.pushDataLayer([{event:"login",method:"facebook"}]);var P=this.commomService.getQueryVar("idProductWishlist"),F=this.commomService.getQueryVar("returnUrl").toString();0!=P?this.addWishList(P,F):window.location.href="/customer"}else window.location.href="/customer/register"})}else sessionStorage.setItem("isLoginSocial","false")},s=>{this.commomService.displayMessageUser("error",s.error.error),this.loading=!1})})})}),this.socialNetworkService.getCompanySocialMedia().subscribe(n=>{null!=n&&(this.itsLoaded=!0,this.socialCompany=n,this.socialCompany.filter(r=>"google"===r.name.toLocaleLowerCase()).length>0&&this.injectGoogle())},n=>{}),e&&this.companyData?.statusB2B&&(this.showB2BCheckbox=!0),this.showB2BCheckbox&&this.commomService.getQueryVar("b2b")&&(this.loginB2b=!0)})}get f(){return this.loginForm.controls}injectGoogle(){const e=document.createElement("script");e.src="https://accounts.google.com/gsi/client",e.async=!0,e.defer=!0,document.head.appendChild(e),this.waitForGoogle()}insertInSession(e,n,r,o,s){sessionStorage.setItem("email",e),sessionStorage.setItem("name",n),sessionStorage.setItem("appId",r),sessionStorage.setItem("appName",o),sessionStorage.setItem("isLoginSocial",s)}login(e){if(!this.loginForm.valid)return Object.keys(this.loginForm.controls).forEach(v=>{this.loginForm.controls[v].markAsDirty()}),!1;let n=this.f.username.value,r=this.f.password.value;var o=this.commomService.validEmail(n),s=this.commomService.validCPF(n),u=this.commomService.validCNPJ(n);if(!o&&!s&&!u)return this.loading=!1,this.commomService.displayMessageUser("error","Informe um E-mail, CPF ou CNPJ v\xe1lido."),!1;this.commomService.getValidSession(!1).subscribe(v=>{this.customerService.login(n,r,e,this.loginB2b,this.companyData.allowPJB2C).subscribe(w=>{this.loginGate(()=>
3{o&&sessionStorage.setItem("emailGTM",n),this.commomService.finishLoadComponent("onJetPushDataLayerEvent",{detail:{type:"login",params:{method:o?"email":s?"cpf":"cnpj"}}});var F=this.commomService.getQueryVar("idProductWishlist"),R=this.commomService.getQueryVar("returnUrl").toString();if(0!=F)this.loading=!1,this.addWishList(F,R);else{if(this.loginB2b&&this.companyData.statusUseTermToAcceptB2B&&0==w.acceptTermB2B)return this.showTermB2B=!0,void this.commomService.finishLoadComponent("onJetUserB2BLogged",{detail:{value:w.nameTablePrice}});this.loginB2b?this.commomService.finishLoadComponent("onJetUserB2BLogged",{detail:{value:w.nameTablePrice}}):this.commomService.finishLoadComponent("onJetUserLogged");let V=1e3;w.cartRecovered&&(this.commomService.displayMessageUser("success","Os produtos que voc\xea adicionou anteriormente est\xe3o de volta no seu carrinho. Continue sua compra!."),V=2e3),setTimeout(()=>{this.loading=!1,window.location.href="/customer"},V)}})},w=>{this.loading=!1,this.commomService.displayMessageUser("error",w.error.error)})},v=>{this.loading=!1,this.commomService.displayMessageUser("error",v.error.error)})}loginGate(e){const n=window;if(!n.jetStoreCustom||!n.jetStoreCustom.loginGate)return void e();let r=!1;const o=(u,v)=>{r||(r=!0,document.removeEventListener("onJetLoginGateResult",s),u?(this.loading=!1,this.customerService.logout().subscribe(()=>{},()=>{}),this.commomService.displayMessageUser("error",v||"N\xe3o foi poss\xedvel acessar sua conta. Entre em contato com o atendimento.")):e())},s=u=>o(!!(u&&u.detail&&u.detail.blocked),u&&u.detail&&u.detail.message);document.addEventListener("onJetLoginGateResult",s,{once:!0}),this.commomService.finishLoadComponent("onJetLoginGateAttempt"),setTimeout(()=>o(!1),8e3)}waitForGoogle(){const e=setInterval(()=>{typeof google<"u"&&(clearInterval(e),google.accounts.id.initialize({client_id:this.socialCompany.filter(n=>"google"===n.name.toLocaleLowerCase())[0].appId,callback:this.googleResponse.bind(this)}),google.accounts.id.renderButton(document.getElementById("googleBtn"),{type:"icon",theme:"outline",size:"large",logo_alignment:"center"}))},300)}googleResponse(e){const n=JSON.parse(atob(e.credential.split(".")[1]));let r=n.given_name+" "+n.family_name;this.commomService.getValidSession(!1).subscribe(o=>{this.socialNetworkService.loginSocial(n.sub,"google",r,n.email).subscribe(s=>
3{sessionStorage.setItem("emailGTM",n.email),this.storeEventsService.pushDataLayer([{event:"login",method:"google"}]);var v=this.commomService.getQueryVar("idProductWishlist"),w=this.commomService.getQueryVar("returnUrl").toString();if(0!=v)this.addWishList(v,w);else{this.commomService.finishLoadComponent("onJetUserLogged");let P=1e3;s.cartRecovered&&(this.commomService.displayMessageUser("success","Os produtos que voc\xea adicionou anteriormente est\xe3o de volta no seu carrinho. Continue sua compra!."),P=2e3),setTimeout(()=>{this.loading=!1,window.location.href="/customer"},P)}},s=>{this.commomService.getValidSession(!1).subscribe(u=>{if(""!=n.email&&null!=n.email&&null!=n.email){this.insertInSession(n.email,r,n.sub,"google","true");let v=this.montaJsonLoginSocial(n.sub,"google",n.email);this.customerService.checksExistenceAndLinkEmail(v).subscribe(w=>{if(w.exist){sessionStorage.setItem("emailGTM",n.email),this.storeEventsService.pushDataLayer([{event:"login",method:"google"}]),window.location.href="/customer";var F=this.commomService.getQueryVar("idProductWishlist"),R=this.commomService.getQueryVar("returnUrl").toString();0!=F?this.addWishList(F,R):window.location.href="/customer"}else window.location.href="/customer/register"})}else sessionStorage.setItem("isLoginSocial","false")},u=>{this.commomService.displayMessageUser("error",u.error.error),this.loading=!1})})})}addWishList(e,n){this.customerService.isLoggedB2B().subscribe(r=>{this.customerService.postItemToWishList(r,!r,Number(e)).subscribe(u=>{document.location.href=n+"?msgSuccess="+btoa("Produto adicionado \xe0 lista de desejos")},u=>{document.location.href=n+"?msgSuccess="+btoa("Produto adicionado \xe0 lista de desejos")})})}signInWithGoogle(){this.authService.initState.subscribe(e=>{this.authService.signIn(jp.PROVIDER_ID),this.commomService.finishLoadComponent("onJetPushDataLayerEvent",{detail:{type:"login",params:{method:"Google"}}})})}signInWithFB(){this.authService.initState.subscribe(e=>{this.authService.signIn(X0.PROVIDER_ID),this.commomService.finishLoadComponent("onJetPushDataLayerEvent",{detail:{type:"login",params:{method:"Facebook"}}})})}signOut(){this.authService.signOut()}recaptcha(e){this.loginForm.valid?(("login"===e||"loginOtp"==e)&&(this.loading=!0),this.googleRecaptcha.sendRecaptcha("Login","login").subscribe(n=>{this.returnFunctionTypeLogin(e,n)})):this.returnFunctionTypeLogin(e,"")}returnFunctionTypeLogin(e,n){switch(e){case"login":return this.login(n);case"facebook":return this.signInWithFB();case"google":return this.signInWithGoogle()}}montaJsonLoginSocial(e,n,r){let o=n;return o=o[0].toUpperCase()+o.substr(1),{appId:e,appName:o,emailCustomer:r}}limpaDadosSocialLogin(){sessionStorage.setItem("email",""),sessionStorage.setItem("name",""),sessionStorage.setItem("appId",""),sessionStorage.setItem("appName",""),sessionStorage.setItem("isLoginSocial","false")}AcceptTermB2B(){this.customerService.isLogged().subscribe(e=>{this.customerService.getCustomer(e.data.idCustomer).subscribe(r=>{this.customer=r,this.TermB2BAccepted&&(this.customer.user.acceptTermB2B=!0),this.customerService.updateCustomerBasicInfo(this.customer).subscribe(o=>{this.loading=!1,window.location.href="/customer"},o=>{this.loading=!1,this.commomService.displayMessageUser("error",o.error.error)})})})}static#e=this.\u0275fac=function(n){return new(n||t)($(ao),$(qh),$(Ci),$(qt),$(K0),$(xd),$(nv),$(Qo),$(Bu),$(yn))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-login"]],decls:14,vars:7,consts:[[1,"jet-customer-login"],["class","social-buttons-container",4,"ngIf"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"data-display-mode","data-login-origin"],[1,"ui","divider","horizontal"],[1,"container-social-login"],[1,"container-social"],["title","Primeiro Acesso? Cadastre-se",1,"btn-first",3,"href","click"],["class","container-social",4,"ngIf"],["class","jet-modal modal-policy",4,"ngIf"],[1,"social-buttons-container"],[1,"social-icons"],["class","social-icon",4,"ngFor","ngForOf"],[1,"social-icon"],["id","googleBtn",4,"ngIf"],["type","button","title","Fazer login com o Facebook","class","btn-facebook",3,"disabled","click",4,"ngIf"],["id","googleBtn"],["type","button","title","Fazer login com o Facebook",1,"btn-facebook",3,"disabled","click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24","width","20","height","20","aria-hidden","true"],["fill","#1877F2","d","M24 12.073C24 5.405 18.627 0 12 0S0 5.405 0 12.073c0 6.019 4.388 11.009 10.125 11.927v-8.437H7.078v-3.49h3.047V9.41c0-3.017 1.792-4.683 4.533-4.683 1.313 0 2.686.235 2.686.235v2.963h-1.514c-1.491 0-1.956.928-1.956 1.879v2.255h3.328l-.532 3.49h-2.796V24C19.612 23.082 24 18.092 24 12.073z"],[3,"formGroup","ngSubmit"],[1,"container-form"],[1,"container-field"],[1,"username"],["for","username"],["formControlName","username"],["username",""],["class","invali
3d-feedback",4,"ngIf"],[1,"password"],["for","password"],["placeholder","Senha","formControlName","password","type","password"],["password",""],[1,"row"],[1,"column"],["class","login-restricted-checkbox",4,"ngIf"],[1,"recover-password"],["href","/customer/forgot","title","Clique para recuperar sua senha"],["type","submit",3,"ngClass"],[1,"invalid-feedback"],[4,"ngIf"],[1,"login-restricted-checkbox"],[1,"input"],["type","checkbox","id","checkLoginB2B","name","checkLoginB2B",3,"checked","change"],["for","checkLoginB2B"],["title","Comprou e n\xe3o possui senha? Cadastre-se",1,"btn-first","pass",3,"href"],[1,"jet-modal","modal-policy"],[1,"jet-modal-content","modal-content","auto-height"],[1,"term-b2b-login"],[3,"innerHtml"],[1,"term-b2b-checkbox"],["type","checkbox","id","termToAcceptTextB2B",3,"checked","change"],["for","termToAcceptTextB2B"],["type","button","title","Continuar",1,"term-b2b-btn-login",3,"click"]],template:function(n,r){1&n&&(a(0,"div",0),C(1,IG,3,1,"div",1),C(2,MG,26,10,"form",2),B(3,"jet-login-otp",3),a(4,"div",4),h(5,"ou"),l(),a(6,"div",5)(7,"div",6)(8,"a",7),J("click",function(){return r.limpaDadosSocialLogin()}),h(9,"Primeiro Acesso? "),a(10,"span"),h(11,"Cadastre-se"),l()()(),C(12,FG,5,1,"div",8),l(),C(13,AG,16,4,"div",9),l()),2&n&&(c(1),d("ngIf",null!=r.socialCompany&&0==r.loginB2b),c(1),d("ngIf",r.checked&&r.companyData&&0==r.companyData.loginOTP),c(1),d("data-display-mode","CustomerCenter")("data-login-origin","CustomerCenter"),c(5),hr("href","/customer/accesskey",r.loginB2b?"?b2b=1":"","",fe),c(4),d("ngIf",r.companyData&&0==r.companyData.loginOTP),c(1),d("ngIf",null!=r.companyData&&r.showTermB2B))},dependencies:[ui,ei,en,Ty,Gr,mr,fr,Ur,Ir,Mr,za],encapsulation:2})}return t})();function OG(t,i){1&t&&B(0,"iframe",1),2&t&&d("src",_().valueXML,Pt)}let RG=(()=>{class t{constructor(e,n,r){this.commomService=e,this.orderService=n,this._sanitizer=r}ngOnInit(){this.orderId=window.location.href.split("/").pop(),this.orderService.getOrder(this.orderId).subscribe(e=>{this.orderService.getNfeContent(this.orderId).subscribe(n=>{this.orderService.getNfePdf(n).pipe(oy(5e3)).subscribe(r=>{this.valueXML=this._sanitizer.bypassSecurityTrustResourceUrl(`data:application/pdf;base64,${r}`)},r=>{this.commomService.displayMessageUser("error","Infelizmente n\xe3o conseguimos gerar sua NFE","Tente novamente dentro de alguns segundos")})},n=>{this.commomService.displayMessageUser("error","Infelizmente n\xe3o conseguimos gerar sua NFE","Tente novamente dentro de alguns segundos")})},e=>{this.commomService.displayMessageUser("error","Infelizmente n\xe3o conseguimos gerar sua NFE","Tente novamente dentro de alguns segundos")})}static#e=this.\u0275fac=function(n){return new(n||t)($(qt),$(Wh),$(gl))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-order-pdf"]],decls:1,vars:1,consts:[["width","100%","height","100%",3,"src",4,"ngIf"],["width","100%","height","100%",3,"src"]],template:function(n,r){1&n&&C(0,OG,1,1,"iframe",0),2&n&&d("ngIf",r.valueXML)},dependencies:[en]})}return t})(),BG=(()=>{class t{constructor(e){this.http=e}getWishlist(){return this.http.post("/api",{request:"7bee9132-c048-4fe2-922a-08d6d4a51d89/531c8a9b-748b-41b7-b0b9-ce9967058720",json:null})}static#e=this.\u0275fac=function(n){return new(n||t)(Mt(ko))};static#t=this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function jG(t,i){if(1&t&&(ht(0),a(1,"li",24),h(2),l(),a(3,"li")(4,"strong"),h(5),l()(),mt()),2&t){const e=_(2).$implicit,n=_(4);c(2),de(n.commomService.priceMask(e.price)),c(3),dt(" ",n.commomService.priceMask(e.pricePromotion)," ")}}function VG(t,i){if(1&t&&(a(0,"li")(1,"strong"),h(2),l()()),2&t){const e=_(2).$implicit,n=_(4);c(2),dt(" ",n.commomService.priceMask(e.price)," ")}}function HG(t,i){if(1&t&&(ht(0),C(1,jG,6,2,"ng-container",22),C(2,VG,3,1,"ng-template",null,23,_i),a(4,"li"),h(5),l(),mt()),2&t){const e=Wt(3),n=_().$implicit,r=_(4);c(1),d("ngIf",n.pricePromotion&&n.pricePromotion<n.price)("ngIfElse",e),c(4),Ra(" em ",n.installmentMax.MaxNumber,"x de ",r.commomService.priceMask(n.installmentMax.Value)," ",n.installmentMax.Description," ")}}function zG(t,i){if(1&t){const e=ve();a(0,"div",25),J("click",function(){M(e);const r=_().$implicit;return L(_(4).verifyQuantityCart(r))}),we(),a(1,"svg",26),B(2,"path",27),l()()}2&t&&d("className",_(5).dataClassButton+" btn-add")}function qG(t,i){if(1&t){const e=ve();a(0,"div",28),J("click",function(){M(e);const r=_().$implicit;return L(_(4).redirectToProduct(r.urlFriendly))}),we(),a(1,"svg",29),B(2,"path",30),l()()}2&t&&d("className",_(5).dataClassButton)}function $G(t,i){if(1&t){const e=ve();a(0,"tr")(1,"td")(2,"a",10)(3,"div",11),B(4,"img",12),a(5,"div",13)(6,"ul")(7,"li",14)(8,"strong"),h(9),l()(),a(10,"li",15),h(11),l(),C(12,HG,6,5,"ng-container",6),l()()()()(),a(13,"td",16),C(14,zG,3,1,"div",17),C(15,qG,3,1,"div",18),a(16,"div",19),J("click",function(){const o=M(e).$implicit;return L(_(4).removeWishList(o))}),we(),a(17,"svg",20),B(18,"path",21),l()()()()}if(2&t){const e=i.$implicit,n=_(4);c(2),Ue("href",e.urlFriendly,fe),Ue("title",e.productName),c(2),Ue("src",e.imageHome,fe),Ue("alt",e.productName),c(5),dt(" ",e.productName," "),c(2),dt(" Adicionado em ",n.formatDate(e.dateInsert)," "),c(1),d("ngIf",n.showPriceB2C),c(2),d("ngIf",n.showPriceB2C&&(null==e.unitMultiplier||e.unitMultiplier<=1)),c(1),d("ngIf",n.showPriceB2C&&e.unitMultiplier>1),c(1),d("className",n.dataClassButton+" btn-print")}}
3function UG(t,i){if(1&t&&(a(0,"tbody"),C(1,$G,19,10,"tr",9),l()),2&t){const e=_(3);c(1),d("ngForOf",e.wishlist)}}function GG(t,i){if(1&t){const e=ve();a(0,"div",5)(1,"table",2),C(2,UG,2,1,"tbody",6),l(),a(3,"div",7)(4,"button",8),J("click",function(){M(e);const r=_(2);return L(r.deleteAllItems(r.wishlist[0].idWishlist))}),h(5,"Excluir todos"),l()()()}if(2&t){const e=_(2);c(1),d("className",e.dataClassTable),c(1),d("ngIf",""!=e.orderInput)}}function WG(t,i){1&t&&(a(0,"div",2)(1,"div",31),h(2,"Nenhum produto adicionado a lista de desejos!"),l()()),2&t&&d("className",_(2).dataClassContainer+" no-orders")}function JG(t,i){if(1&t&&(a(0,"div",1)(1,"div",2),C(2,GG,6,2,"div",3),C(3,WG,3,1,"div",4),l()()),2&t){const e=_();c(1),d("className",e.dataClassContainer),c(1),d("ngIf",e.wishlist&&e.wishlist.length>0),c(1),d("ngIf",!e.wishlist||0==e.wishlist.length)}}let ZG=(()=>{class t{constructor(e,n,r,o,s){this.customerService=e,this.checkoutService=n,this.wishlistService=r,this.sharedDataCommom=s,this.dataClassContainer="",this.dataClassButton="",this.dataClassTable="",this.dataClassInput="",this.isLoggedB2B=!1,this.commomService=o}ngOnInit(){this.sharedDataCommom.currentCompany$.subscribe(e=>{null!=e&&(this.company=e,this.sharedDataCommom.authorizedB2B$.subscribe(n=>{null!=n&&(this.isLoggedB2B=n,this.showPriceB2C=!!this.isLoggedB2B||this.company.showPriceB2C,this.isLoggedB2B?window.location.href="/customer":(this.dataClassContainer=""!=this.dataClassContainer?"jet-container "+this.dataClassContainer:"jet-container",this.dataClassInput=""!=this.dataClassInput?"jet-input "+this.dataClassInput:"jet-input",this.dataClassButton=""!=this.dataClassButton?"jet-button "+this.dataClassButton:"jet-button",this.commomService.finishLoadComponent("onJetCustomerLoaded",{detail:{type:"customer",value:{name:decodeURIComponent("Lista de Desejos"),href:window.location.href}}}),this.obs$=this.wishlistService.getWishlist().subscribe(r=>{this.wishlist=r,this.commomService.finishLoadComponent("onJetOrderLoaded",{detail:r})})))}))})}formatDate(e){let n=new Date(e);return n.toLocaleDateString()+" "+n.toLocaleTimeString()}getWishlistId(e){if(e)return e.idWishlistItem}removeWishList(e){this.commomService.displayMessageUser("confirm","Deseja mesmo remover o item da lista de desejos?","Essa a\xe7\xe3o n\xe3o poder\xe1 ser desfeita",!1),document.addEventListener("onJetConfirm",()=>{this.customerService.isLoggedB2B().subscribe(n=>{this.customerService.removeItemToWishList(this.getWishlistId(e)).subscribe(o=>{let s=this.wishlist.findIndex(u=>u.idProduct===e.idProduct);s>-1&&this.wishlist.splice(s,1)},o=>{this.commomService.displayMessageUser("error","N\xe3o foi poss\xedvel "+(e.isOnWishList?"remover o produto da":"adicionar o produto na")+" lista de desejos.")})})},{passive:!0})}verifyQuantityCart(e){e.productSignature||e.hasVariation?window.location.href=e.urlFriendly:e.flagExhausted?this.commomService.displayMessageUser("error","N\xe3o foi poss\xedvel adicionar o produto ao carrinho"):this.checkoutService.getCartUser().subscribe(n=>{if(n&&""!=n.toString()){let r=0,o=[];r=e.stock,o=n.items.filter(s=>s.idProduct==e.idProduct),o.length>0?o[0].quantity<r?this.buyProduct(e.idProduct):this.commomService.displayMessageUser("error","N\xe3o foi poss\xedvel adicionar o produto ao carrinho","Quantidade indispon\xedvel em estoque"):this.buyProduct(e.idProduct)}else this.buyProduct(e.idProduct)},n=>{this.commomService.displayMessageUser("error","N\xe3o foi poss\xedvel adicionar o produto no carrinho.")})}buyProduct(e){this.checkoutService.addProductToCart(e,null,1,!1).subscribe(n=>{n?this.commomService.displayMessageUser("success","Adicionado ao Carrinho","Produto adicionado no carrinho com sucesso!"):this.commomService.displayMessageUser("error","N\xe3o foi poss\xedvel adicionar o produto ao carrinho")},n=>{this.commomService.displayMessageUser("error",n.error.error)})}deleteAllItems(e){this.customerService.deleteAllItems(e).subscribe(n=>{n?(this.wishlist=[],this.commomService.displayMessageUser("success","Itens removidos com sucesso da lista de desejos.")):this.commomService.displayMessageUser("error","N\xe3o foi poss\xedvel excluir os produtos da lista de desejos.")},n=>{this.commomService.displayMessageUser("error",n.error.error)})}redirectToProduct(e){window.location.href=e}static#e=this.\u0275fac=function(n){return new(n||t)($(Ci),$(Ss),$(BG),$(qt),$(yn))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-wishlist"]],inputs:{dataClassContainer:["data-class-container","dataClassContainer"],dataClassButton:["data-class-button","dataClassButton"],dataClassTable:["data-class-table","dataClassTable"],dataClassInput:["data-class-in
3put","dataClassInput"]},decls:1,vars:1,consts:[["class","jet-wishlist",4,"ngIf"],[1,"jet-wishlist"],[3,"className"],["class","order-list",4,"ngIf"],[3,"className",4,"ngIf"],[1,"order-list"],[4,"ngIf"],[1,"actions"],[3,"click"],[4,"ngFor","ngForOf"],[3,"href","title"],[1,"product-detail"],["onerror","this.src='./assets/no-image.png'",3,"src","alt"],[1,"desc"],[1,"notranslate"],[1,"date"],[1,"left","aligned"],["data-tooltip","Adicionar ao carrinho",3,"className","click",4,"ngIf"],["data-tooltip","Visualizar produto",3,"className","click",4,"ngIf"],["data-tooltip","Excluir",3,"className","click"],["aria-hidden","true","focusable","false","data-prefix","fal","data-icon","remove","role","img","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"svg-inline--fa","fa-print","fa-w-16"],["fill","currentColor","d","M296 432h16a8 8 0 0 0 8-8V152a8 8 0 0 0-8-8h-16a8 8 0 0 0-8 8v272a8 8 0 0 0 8 8zm-160 0h16a8 8 0 0 0 8-8V152a8 8 0 0 0-8-8h-16a8 8 0 0 0-8 8v272a8 8 0 0 0 8 8zM440 64H336l-33.6-44.8A48 48 0 0 0 264 0h-80a48 48 0 0 0-38.4 19.2L112 64H8a8 8 0 0 0-8 8v16a8 8 0 0 0 8 8h24v368a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V96h24a8 8 0 0 0 8-8V72a8 8 0 0 0-8-8zM171.2 38.4A16.1 16.1 0 0 1 184 32h80a16.1 16.1 0 0 1 12.8 6.4L296 64H152zM384 464a16 16 0 0 1-16 16H80a16 16 0 0 1-16-16V96h320zm-168-32h16a8 8 0 0 0 8-8V152a8 8 0 0 0-8-8h-16a8 8 0 0 0-8 8v272a8 8 0 0 0 8 8z",1,""],[4,"ngIf","ngIfElse"],["noPricePromotion",""],[1,"old-price"],["data-tooltip","Adicionar ao carrinho",3,"className","click"],["aria-hidden","true","focusable","false","data-prefix","fal","data-icon","shopping-cart","role","img","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 576 512",1,"svg-inline--fa","fa-shopping-cart","fa-w-18"],["fill","currentColor","d","M551.991 64H129.28l-8.329-44.423C118.822 8.226 108.911 0 97.362 0H12C5.373 0 0 5.373 0 12v8c0 6.627 5.373 12 12 12h78.72l69.927 372.946C150.305 416.314 144 431.42 144 448c0 35.346 28.654 64 64 64s64-28.654 64-64a63.681 63.681 0 0 0-8.583-32h145.167a63.681 63.681 0 0 0-8.583 32c0 35.346 28.654 64 64 64 35.346 0 64-28.654 64-64 0-17.993-7.435-34.24-19.388-45.868C506.022 391.891 496.76 384 485.328 384H189.28l-12-64h331.381c11.368 0 21.177-7.976 23.496-19.105l43.331-208C578.592 77.991 567.215 64 551.991 64zM240 448c0 17.645-14.355 32-32 32s-32-14.355-32-32 14.355-32 32-32 32 14.355 32 32zm224 32c-17.645 0-32-14.355-32-32s14.355-32 32-32 32 14.355 32 32-14.355 32-32 32zm38.156-192H171.28l-36-192h406.876l-40 192z",1,""],["data-tooltip","Visualizar produto",3,"className","click"],["aria-hidden","true","focusable","false","data-prefix","fal","data-icon","eye","role","img","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 576 512",1,"svg-inline--fa","fa-eye","fa-w-18"],["fill","currentColor","d","M572.52 241.4C518.36 135.16 410.14 64 288 64S57.64 135.16 3.48 241.4a32 32 0 0 0 0 29.2C57.64 376.84 165.86 448 288 448s230.36-71.16 284.52-177.4a32 32 0 0 0 0-29.2zM288 400c-105 0-195.3-58.1-238.6-144C92.7 170.1 183 112 288 112s195.3 58.1 238.6 144c-43.3 85.9-133.6 144-238.6 144zm0-240a96 96 0 1 0 96 96 96.11 96.11 0 0 0-96-96zm0 160a64 64 0 1 1 64-64 64.07 64.07 0 0 1-64 64z"],[1,"order-empty"]],template:function(n,r){1&n&&C(0,JG,4,3,"div",0),2&n&&d("ngIf",!r.isLoggedB2B)},dependencies:[ei,en],encapsulation:2})}return t})();function QG(t,i){if(1&t&&(ht(0),a(1,"div",36)(2,"span",37),h(3),l()(),mt()),2&t){const e=_().$implicit;c(2),d("ngClass",e.status?"active":"inactive"),c(1),de(e.status?"Ativo":"Inativo")}}function YG(t,i){1&t&&(ht(0),we(),a(1,"svg",38),B(2,"path",39),l(),mt())}function KG(t,i){1&t&&(ht(0),we(),a(1,"svg",40),B(2,"path",41),l(),mt())}function XG(t,i){1&t&&(ht(0),we(),a(1,"svg",42),B(2,"path",43),l(),mt())}function eW(t,i){1&t&&(ht(0),we(),a(1,"svg",42),B(2,"path",44),l(),mt())}function tW(t,i){1&t&&(ht(0),we(),a(1,"svg",42),B(2,"path",45),l(),mt())}function nW(t,i){1&t&&dg(0)}function iW(t,i){1&t&&(ht(0),a(1,"button",46),we(),a(2,"svg",47),B(3,"path",48),l(),h(4," Encerrado "),l(),mt())}function rW(t,i){if(1&t){const e=ve();a(0,"button",49),J("click",function(){M(e);const r=_().$implicit;return L(_(2).btnEdit(r))}),we(),a(1,"svg",50),B(2,"path",51),l(),h(3," Alterar "),l()}}function oW(t,i){if(1&t&&(a(0,"div",16)(1,"div",18),C(2,QG,4,2,"ng-container",19),a(3,"span",20),ht(4,21),C(5,YG,3,0,"ng-container",22),C(6,KG,3,0,"ng-container",22),C(7,XG,3,0,"ng-container",22),C(8,eW,3,0,"ng-container",22),C(9,tW,3,0,"ng-container",22),C(10,nW,1,0,"ng-container",23),mt(),h(11),l(),a(12,"span",24),h(13),Wi(14,"date"),l(),a(15,"div",25)(16,"div",26)(17,"span",27),h(18),l(),h(19," Convidados"),l(),a(20,"div",28)(21,"span",29),h(22),l(),h(23," Produtos"),l()(),a(24,"div",30),C(25,iW,5,0,"ng-container",31),C(26,rW,4,0,"ng-template",null,32,_i),a(28,"a",33),we(),a(29,"svg",34),B(30,"path",35),l(),h(31," Visualizar "),l()()()()),2&t){const e=i.$implicit,n=Wt(27),r=_(2);d("className",r.dataClassChildren),c(2),d("ngIf",e.eventDate>=r.currentDate),c(2),d("ngSwitch",e.type),c(1),d("ngSwitchCase","1"),c(1),d("ngSwitchCase","2"),c(1),d("ngSwitchCase","3"),c(1),d("ngSwitchCase","4"),c(1),d("ngSwitchCase","5"),
3c(2),dt(" ",e.title," "),c(2),de(vd(14,15,e.eventDate,"dd/MM/yyyy")),c(5),de(e.numberOfGuests),c(4),de(e.numberOfProducts),c(3),d("ngIf",e.eventDate<r.currentDate)("ngIfElse",n),c(3),hr("href","/",e.idEventList,"/e",fe)}}function sW(t,i){if(1&t&&(a(0,"div",16),C(1,oW,32,18,"div",17),l()),2&t){const e=_();d("className",e.dataClassContainer),c(1),d("ngForOf",e.listaEventos)}}function aW(t,i){1&t&&(a(0,"div",52)(1,"strong"),h(2,"Nenhuma lista de evento at\xe9 o momento."),l(),a(3,"span"),h(4,"Voc\xea poder\xe1 utilizar as op\xe7\xf5es abaixo para criar a sua primeira lista."),l()())}function lW(t,i){1&t&&(a(0,"div",53)(1,"span"),h(2,"ou"),l()())}function cW(t,i){if(1&t&&(a(0,"option"),h(1),l()),2&t){const e=i.$implicit;let n;ii("value",e.idType),c(1),de(null!==(n=e.title)&&void 0!==n?n:e.name)}}function dW(t,i){if(1&t){const e=ve();a(0,"div",54),J("click",function(){return M(e),L(_().showModalTerm=!0)}),a(1,"input",55,56),J("click",function(){return M(e),L(_().showModalTerm=!0)}),l(),a(3,"label",57),h(4,"Li e estou de acordo com o "),a(5,"strong"),h(6,"regulamento"),l(),h(7,"."),l()()}}const uW=function(t){return{hideme:t}};let hW=(()=>{class t{constructor(e,n,r){this.commomService=e,this.sharedDataCommom=n,this.customerService=r,this.dataClassContainer="",this.dataClassChildren="",this.isLoggedB2B=!1,this.productsLength=0,this.currentDate=new Date,this.showDivulgation=!1,this.hasTerm=!1,this.showModalTerm=!1}ngOnInit(){this.dataClassContainer=""!=this.dataClassContainer?"jet-container "+this.dataClassContainer:"jet-container",this.dataClassChildren=""!=this.dataClassChildren?"jet-item "+this.dataClassChildren:"jet-item",this.sharedDataCommom.authorizedB2B$.subscribe(e=>{null!=e&&(this.isLoggedB2B=e,this.isLoggedB2B?window.location.href="/customer":this.customerService.isLogged().subscribe(n=>{if(n.data.authenticated&&n.data.hasPassword){this.customerId=n.data.idCustomer;let r={idClient:this.customerId};this.commomService.finishLoadComponent("onJetCustomerLoaded",{detail:{type:"customer",value:{name:decodeURIComponent("Lista de Eventos"),href:window.location.href}}}),this.customerService.eventListClient(r).subscribe(o=>{o&&(this.listaEventos=o,this.productsLength=this.listaEventos.filter(s=>s.products).length,this.showDivulgation=this.listaEventos.filter(s=>!s.dateDivugaltionList).length>0),this.commomService.finishLoadComponent("onJetEventListsLoaded")}),this.obs$=this.customerService.getEventList().subscribe(o=>{o&&(this.typeLists=o,this.commomService.finishLoadComponent("onJetEventListTypesLoaded"))})}}))})}createList(e){if(0==e)return this.commomService.displayMessageUser("error","Para criar uma lista \xe9 necess\xe1rio selecionar o tipo desejado");let n=this.typeLists.filter(r=>r.idType==e)[0];n.acceptance.trim().length>0?(this.hasTerm=!0,this.acceptance=n.acceptance):(this.hasTerm=!1,window.location.href="/customer/eventlist/create/"+e+"/0")}hideTerm(e){this.showModalTerm=!1,this.hasTerm=!1,window.location.href="/customer/eventlist/create/"+e+"/0"}btnEdit(e){if(!e.type||!e.idEventList)return this.commomService.displayMessageUser("error","Erro");window.location.href="/customer/eventlist/create/"+e.type+"/"+e.idEventList}static#e=this.\u0275fac=function(n){return new(n||t)($(qt),$(yn),$(Ci))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-list-event-list"]],inputs:{dataClassContainer:["data-class-container","dataClassContainer"],dataClassChildren:["data-class-children","dataClassChildren"]},decls:23,vars:12,consts:[[1,"jet-list-event-list"],[3,"className",4,"ngIf","ngIfElse"],["noItens",""],["class","divider-item",4,"ngIf"],[1,"event-list-creation"],[1,"event-list-options"],["optionValue",""],[4,"ngFor","ngForOf"],["type","button",1,"btn-create",3,"click"],["class","check-term",3,"click",4,"ngIf"],[1,"jet-modal","modal-term",3,"ngClass"],[1,"jet-modal-content","modal-content"],[1,"jet-modal-close","modal-close",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 352 512",1,"icon"],["fill","currentColor","d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z",1,""],[3,"innerHtml"],[3,"className"],[3,"className",4,"ngFor","ngForOf"],[1,"event-list","content"],[4,"ngIf"],[1,"event-title"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"event-date"],[1,"event-info"],[1,"guest"],[1,"guest-number"],[1,"product"],[1,"product-number"],[1,"event-action"],[4,"ngIf","ngIfElse"],["active",""],["target","_blank",1,"btn-view",3,"href"],["xmlns","http://www.w3.org/2000/svg","height","1em","viewBox","0 0 512 512"],["d","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"],[1,"status"],[3,"ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 120 121"],["d","M87.1711 38.3702C89.5455 42.7065 91.3316 47.3639 92.4168 52.1994C102.057 57.1803 108.738 67.142 108.738 78.7328C108.738 95.3161 95.3186 108.735 78.7353 108.735C62.1519 108.735 48.7329 95.3161 48.7329 78.7328C48.7329 65.9279 56.8195 55.0356 68.1595 50.7228C70.1518 54.766 71.2066 59.2195 71.237 63.7316C71.237 72.4909 67.3977 80.3149 61.3925 85.7927C62.8575 89.3672 65.4077 92.3839 68.6587 94.4653C79.1478 85.1481 84.1592 71.1127 81.9605 57.267C79.7631 43.3792 70.6511 31.6009 57.7946 25.9755L67.4938 10.4469L54.4732 0H27.9867L14.9779 10.4586L24.6466 25.9872C6.8046 33.8464 -3.129 53.1136 0.885463 72.2166C4.89992 91.3197 21.7184 104.985 41.2246 105.008C43.0118 104.979 44.7991 104.862 46.5875 104.569C57.9556 118.75 77.2931 123.82 94.1694 117.02C111.018 110.253 121.453 93.2054 119.835 75.0868C118.218 56.9682 104.962 42.0736 87.1711 38.3702ZM29.9791 12.9784L31.9714 11.2497H50.4885L52.4809 12.9784L46.5038 22.8815C43.0161 22.3834 39.4416 22.3834 35.9561 22.8815L29.9791 12.9784ZM11.2276 63.5441C11.2569 46.9912 24.6771 33.5652 41.23 33.5417C48.965 33.5417 55.9686 36.5607 61.3011 41.3939C47.2656 47.9569 37.4867 62.0205 37.4867 78.5453C37.4867 83.6433 38.4536 88.7133 40.2994 93.4597C24.213 93.1714 11.2276 79.9751 11.2276 63.5441Z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 121 107"],["d","M120.003 30C120.003 46.5625 106.566 60 90.1909 60C84.4868 60 79.2014 58.3073 74.6451 55.5458L81.9889 48.2021C84.3368 49.3333 87.0868 50 90.0035 50C101.02 50 109.816 41.0417 109.816 30C109.816 18.9583 100.833 10 90.0035 10C82.6326 10 76.441 14.0625 72.791 20H61.8535C65.968 8.38542 76.9576 0 89.9993 0C106.566 0 120.003 13.4375 120.003 30ZM66.6701 101.667C66.6701 104.427 64.4305 106.667 61.6701 106.667H25.0035C22.2535 106.667 20.0035 104.437 20.0035 101.667C20.0035 98.8958 22.243 96.6667 25.0035 96.6667H38.3368V72.2292L1.50345 35.4167C-1.71509 32.1875 0.576578 26.6667 5.1347 26.6667H81.5305C86.0889 26.6667 88.3785 32.1875 85.1493 35.4167L48.3368 72.25V96.6667H61.6701C64.441 96.6667 66.6701 98.9167 66.6701 101.667ZM43.3368 63.1042L69.7743 36.6667H16.9055L43.3368 63.1042Z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M435.9 0c-33.22 0-84.63 34.02-113.1 90.94c-20.41 40.83-43.13 124.7 34 227.5c7.906 10.59 23 12.77 33.59 4.797c10.59-7.953 12.75-23 4.781-33.61c-58.53-78.05-48.31-139.4-29.44-177.2C385.8 72.27 418.1 52.22 432 48.59V488c0 13.25 10.75 24 23.1 24C469.2 512 480 501.3 480 488V46.5C480 20.86 460.2 0 435.9 0zM112 160c13.25 0 24-10.75 24-24v-112C136 10.75 125.3 0 112 0S88 10.75 88 24v112C88 149.3 98.75 160 112 160zM176 160c13.25 0 24-10.75 24-24v-112C200 10.75 189.3 0 176 0S152 10.75 152 24v112C152 149.3 162.8 160 176 160zM248 0C234.8 0 224 10.75 224 24v144C224 190.1 206.1 208 184 208H176.3c-6.5 0-12.72 2.625-17.22 7.281C154.5 219.1 152.1 226.2 152.3 232.7L159.3 464h-30.5l7-231.3C135.9 226.2 133.5 219.1 128.1 215.3C124.5 210.6 118.3 208 111.8 208H104C81.94 208 64 190.1 64 168v-144C64 10.75 53.25 0 40 0S16 10.75 16 24v144c0 42.73 30.62 78.45 71.06 86.36L80.5 470.8c-.3125 10.75 3.781 21.34 11.28 29.06C99.25 507.6 109.7 512 120.5 512h47c10.78 0 21.25-4.438 28.72-12.17c7.5-7.719 11.59-18.31 11.28-29.03L200.9 254.4C241.4 246.5 272 210.7 272 168v-144C272 10.75 261.3 0 248 0z"],["d","M488 95.94h-32c-30.93 0-56 25.08-56 56.01v40.01h-106.8L189.1 28.18C179.9 13.68 164.8 3.68 147.2 .8044C130.1-1.946 112.9 2.43 99.75 12.81C41.12 59.69-.25 138.7 0 215.1c.25 50.13 17.62 99.52 60.25 138.8c-39.24 10.1-67.16 48.98-58.75 92.92c5.961 31.12 30.86 56.49 61.93 62.69C114.1 520.6 160 481.7 160 431.1c0-8.876-1.75-17.25-4.375-25.25C177.2 412.7 200.3 415.1 224 415.1s46.88-3.256 68.38-9.257c-5.806 17.7-7.332 37.23 4.895 59.95c14.37 26.71 41.59 45.74 71.91 45.3C412.9 511.4 448 475.9 448 431.1c0-37.26-25.75-68.38-60.25-77.26C425 320.4 448 274.6 448 223.1V151.1c0-4.401 3.6-8.023 8-8.023h32c13.2 0 24-10.78 24-23.98S501.2 95.94 488 95.94zM80 463.1c-17.62 0-32-14.38-32-32s14.38-32 32-32s32 14.38 32 32S97.62 463.1 80 463.1zM400 431.1c0 17.63-14.38 32-32 32s-32-14.38-32-32s14.38-32 32-32S400 414.4 400 431.1zM224 367.1c-90.38 0-165.2-56.
313-174.9-128h349.8C389.2 311.8 314.4 367.1 224 367.1z"],["d","M448 128h-10.14c12.51-24.02 15.51-54.04-3.03-86.07c-15.71-27.14-44.49-42.19-75.84-41.93C317.9 .3477 291.2 21.76 257 68.38C222.8 21.74 195.9 .334 154.8 .0039C123.5-.25 94.75 14.8 79.04 41.93C60.5 73.96 63.49 103.1 76 128H64C28.65 128 0 156.7 0 192v64c0 17.67 14.33 32 32 32L32 448c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64l.0001-160C497.7 288 512 273.7 512 256V192C512 156.7 483.3 128 448 128zM360 48c21.1 0 40 18 40 40S381.1 128 360 128h-86.13C325.3 51.5 339.6 48 360 48zM153.9 48C173.9 48 188.5 51.25 240 128H153.9c-22 0-40-18-40-40S131.9 48 153.9 48zM224 464H96c-8.822 0-16-7.178-16-16V288h144L224 464zM432 448c0 8.822-7.178 16-16 16h-128L288 288H432V448zM464 240h-416V192c0-8.822 7.178-16 16-16h384c8.822 0 16 7.178 16 16V240z"],["type","button","disabled","",1,"btn-disabled"],["xmlns","http://www.w3.org/2000/svg","width","13","height","13","viewBox","0 0 13 13","fill","none"],["d","M12.8081 12.8081C12.5541 13.0621 12.1431 13.0621 11.8889 12.8081L6.49989 7.41789L1.10971 12.8081C0.855717 13.0621 0.444771 13.0621 0.190494 12.8081C-0.0634982 12.5541 -0.0634982 12.1431 0.190494 11.8889L5.5819 6.49989L0.191307 1.10971C-0.0626858 0.855717 -0.0626858 0.444771 0.191307 0.190494C0.445299 -0.0634982 0.856245 -0.0634982 1.11052 0.190494L6.49989 5.5819L11.8901 0.191713C12.1441 -0.0622796 12.555 -0.0622796 12.8093 0.191713C13.0633 0.445706 13.0633 0.856651 12.8093 1.11093L7.41789 6.49989L12.8081 11.8901C13.064 12.1419 13.064 12.5562 12.8081 12.8081Z"],["type","button",1,"btn-edit",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","viewBox","0 0 16 16","fill","none"],["d","M15.4127 1.75812L14.2405 0.585938C13.8502 0.195375 13.3377 0 12.8283 0C12.3164 0 11.8046 0.195312 11.4139 0.585938L0.970183 11.0031C0.900371 11.0729 0.852808 11.1618 0.833402 11.2586L0.0102771 15.3743C-0.0530354 15.6906 0.192558 16 0.498621 16C0.531402 16 0.564777 15.9968 0.59859 15.99L4.71421 15.1669C4.81103 15.1475 4.89987 15.1 4.96971 15.0302L15.4158 4.58437C16.1971 3.80312 16.1939 2.53937 15.4127 1.75812ZM3.50018 9.9125L9.85331 3.55938L12.4396 6.14563L6.08456 12.5H3.50018V9.9125ZM4.36893 14.2156L1.13768 14.8622L1.78393 11.6309L2.50018 10.9125V13.5H5.08581L4.36893 14.2156ZM14.7096 3.875L13.1752 5.4375L10.5889 2.85125L12.1486 1.29156C12.3096 1.10406 12.5596 1 12.8283 1C13.0971 1 13.3464 1.104 13.5352 1.29291L14.7064 2.46531C15.0971 2.855 15.0971 3.4875 14.7096 3.875Z"],[1,"no-results"],[1,"divider-item"],[1,"check-term",3,"click"],["type","checkbox",3,"click"],["checkTerm",""],["for","checkTerm"]],template:function(n,r){if(1&n){const o=ve();a(0,"div",0),C(1,sW,2,2,"div",1),C(2,aW,5,0,"ng-template",null,2,_i),C(4,lW,3,0,"div",3),a(5,"div",4)(6,"select",5,6)(8,"option"),h(9,"Selecione a lista desejada"),l(),C(10,cW,2,2,"option",7),l(),a(11,"button",8),J("click",function(){M(o);const u=Wt(7);return L(r.createList(u.value))}),h(12," Criar lista "),l()(),C(13,dW,8,0,"div",9),a(14,"div",10)(15,"div",11)(16,"button",12),J("click",function(){M(o);const u=Wt(7);return L(r.hideTerm(u.value))}),we(),a(17,"svg",13),B(18,"path",14),l(),Pe(),a(19,"span"),h(20,"Fechar"),l()(),B(21,"p",15),Wi(22,"safeHtml"),l()()()}if(2&n){const o=Wt(3);c(1),d("ngIf",r.listaEventos&&r.listaEventos.length>0)("ngIfElse",o),c(3),d("ngIf",r.listaEventos&&r.listaEventos.length>0),c(4),ii("value",0),c(2),d("ngForOf",r.typeLists),c(3),d("ngIf",r.hasTerm),c(1),d("ngClass",Oe(10,uW,!r.showModalTerm)),c(7),d("innerHtml",Lo(22,8,r.acceptance),ce)}},dependencies:[ui,ei,en,ku,rm,s4,Ws,Js,bd,za]})}return t})();const mW=["contentRef"],fW=["*"];let Ey=(()=>{class t{constructor(e){this.display="inline-block",this._dragDisabled=!1,this._elementRef=e}get dragDisabled(){return this._dragDisabled}set dragDisabled(e){this._dragDisabled=e}}return t.\u0275fac=function(e){return new(e||t)($(To))},t.\u0275dir=Ft({type:t,selectors:[["","drag-scroll-item",""]],hostVars:2,hostBindings:function(e,n){2&e&&zl("display",n.display)},inputs:{dragDisabled:["drag-disabled","dragDisabled"]}}),t})(),Ly=(()=>{class t{constructor(e,n,r){this._elementRef=e,this._renderer=n,this._document=r,this._index=0,this._scrollbarHidden=!1,this._disabled=!1,this._xDisabled=!1,this._xWheelEnabled=!1,this._yDisabled=!1,this._dragDisabled=!1,this._snapDisabled=!1,this._snapOffset=0,this._snapDuration=500,this._isDragging=!1,this.isPressed=!1,this.isScrolling=!1,this.scrollTimer=-1,this.scrollToTimer=-1,this.downX=0,this.downY=0,this.displayType="block",this.elWidth=null,this.elHeight=null,this._pointerEvents="auto",this.scrollbarWidth=null,this.isAnimating=!1,this.prevChildrenLength=0,this.indexBound=0,this.rtl=!1,this.dsInitialized=new pi,this.indexChanged=new pi,this.reachesLeftBound=new pi,this.reachesRightBound=new pi,this.snapAnimationFinished=new pi,this.dragStart=new pi,this.dragEnd=new pi,this.scrollbarWidth=`${this.get
3ScrollbarWidth()}px`}get isDragging(){return this._isDragging}get currIndex(){return this._index}set currIndex(e){e!==this._index&&(this._index=e,this.indexChanged.emit(e))}get scrollbarHidden(){return this._scrollbarHidden}set scrollbarHidden(e){this._scrollbarHidden=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get xDisabled(){return this._xDisabled}set xDisabled(e){this._xDisabled=e}get yDisabled(){return this._yDisabled}set yDisabled(e){this._yDisabled=e}get xWheelEnabled(){return this._xWheelEnabled}set xWheelEnabled(e){this._xWheelEnabled=e}get dragDisabled(){return this._dragDisabled}set dragDisabled(e){this._dragDisabled=e}get snapDisabled(){return this._snapDisabled}set snapDisabled(e){this._snapDisabled=e}get snapOffset(){return this._snapOffset}set snapOffset(e){this._snapOffset=e}get snapDuration(){return this._snapDuration}set snapDuration(e){this._snapDuration=e}ngOnChanges(){this.setScrollBar(),this.xDisabled||this.disabled||this._scrollbarHidden?this.disableScroll("x"):this.enableScroll("x"),this.yDisabled||this.disabled?this.disableScroll("y"):this.enableScroll("y")}ngAfterViewInit(){this._renderer.setAttribute(this._contentRef.nativeElement,"drag-scroll","true"),this.displayType=typeof window<"u"?window.getComputedStyle(this._elementRef.nativeElement).display:"block",this._renderer.setStyle(this._contentRef.nativeElement,"display",this.displayType),this._renderer.setStyle(this._contentRef.nativeElement,"whiteSpace","noWrap"),this.markElDimension(),this._renderer.setStyle(this._contentRef.nativeElement,"width",this.elWidth),this._renderer.setStyle(this._contentRef.nativeElement,"height",this.elHeight),this.wrapper&&this.checkScrollbar(),this._onMouseDownListener=this._renderer.listen(this._contentRef.nativeElement,"mousedown",this.onMouseDownHandler.bind(this)),this._onScrollListener=this._renderer.listen(this._contentRef.nativeElement,"scroll",this.onScrollHandler.bind(this)),this._onDragStartListener=this._renderer.listen(this._contentRef.nativeElement,"dragstart",e=>{e.preventDefault()}),this.checkNavStatus(),this.dsInitialized.emit(),this.adjustMarginToLastChild(),this.rtl="rtl"===getComputedStyle(this._contentRef.nativeElement).getPropertyValue("direction")}ngAfterViewChecked(){this._children.length!==this.prevChildrenLength&&(this.markElDimension(),this.checkScrollbar(),this.prevChildrenLength=this._children.length,this.checkNavStatus())}ngOnDestroy(){this._renderer.setAttribute(this._contentRef.nativeElement,"drag-scroll","false"),this._onMouseDownListener&&(this._onMouseDownListener=this._onMouseDownListener()),this._onScrollListener&&(this._onScrollListener=this._onScrollListener()),this._onDragStartListener&&(this._onDragStartListener=this._onDragStartListener())}onMouseMoveHandler(e){this.onMouseMove(e)}onMouseMove(e){if((e.clientX!==this.downX||e.clientY!==this.downY)&&this.isPressed&&!this.disabled){if(!e.buttons&&!e.which)return this.onMouseUpHandler(e);if(this._pointerEvents="none",this._setIsDragging(!0),!this.xDisabled&&!this.dragDisabled){const n=e.clientX;this._contentRef.nativeElement.scrollLeft=this._contentRef.nativeElement.scrollLeft-n+this.downX,this.downX=n}if(!this.yDisabled&&!this.dragDisabled){const n=e.clientY;this._contentRef.nativeElement.scrollTop=this._contentRef.nativeElement.scrollTop-n+this.downY,this.downY=n}}}onMouseDownHandler(e){const n=this.locateDragScrollItem(e.target);if(n&&n.dragDisabled)return;this._startGlobalListening("touchstart"===e.type),this.isPressed=!0;const o=e;this.downX=o.clientX,this.downY=o.clientY,clearTimeout(this.scrollToTimer)}onScrollHandler(){this.checkNavStatus(),this.isPressed||this.isAnimating||this.snapDisabled?this.locateCurrentIndex():(this.isScrolling=!0,clearTimeout(this.scrollTimer),this.scrollTimer=setTimeout(()=>{this.isScrolling=!1,this.locateCurrentIndex(!0)},500))}onMouseUpHandler(e){this.isPressed&&(this.isPressed=!1,this._pointerEvents="auto",this._setIsDragging(!1),this.snapDisabled?this.locateCurrentIndex():this.locateCurrentIndex(!0),this._stopGlobalListening())}moveLeft(){(0!==this.currIndex||this.snapDisabled)&&(this.currIndex--,clearTimeout(this.scrollToTimer),this.scrollTo(this._contentRef.nativeElement,this.toChildrenLocation(),this.snapDuration))}moveRight(){const e=this.wrapper||this.parentNode,n=e?e.clientWidth:0;!this.isScrollReachesRightEnd()&&this.currIndex<this.maximumIndex(n,this._children.toArray())&&(this.currIndex++,clearTimeout(this.scrollToTimer),this.scrollTo(this._contentRef.nativeElement,this.toChildrenLocation(),this.snapDuration))}moveTo(e){const n=this.wrapper||this.parentNode,r=n?n.clientWidth:0;e>=0&&e!==this.currIndex&&this.currIndex<=this.maximumIndex(r,this._children.toArray())&&(this.currIndex=Math.min(e,this.maximumIndex(r,this._children.toArray())),clearTimeout(this.scrollToTimer),this.scrollTo(this._contentRef.nativeElement,this.toChildrenLocation(),this.snapDuration))}checkNavStatus(){setTimeout(()=>{const e=Boolean(this._children.length<=1),n=Boolean(this._contentRef.nativeElement.scrollWidth<=this._contentRef.nativeElement.clientWidth);e||n?(this.reachesLeftBound.emit(!0),this.reachesRightBound.emit(!0)):this.isScrollReachesRightEnd()?(this.reachesLeftBound.emit(!1),this.reachesRightBound.emit(!0)):0===this._contentRef.nativeElement.scrollLeft&&this._contentRef.nativeElement.scrollWidth>this._contentRef.nativeElement.clientWidth?(this.reachesLeftBound.emit(!0),this.reachesRightBound.emit(!1)):(this.reachesLeftBound.emit(!1),this.reachesRightBound.emit(!1))}
3,0)}onWheel(e){this._xWheelEnabled&&(e.preventDefault(),this._snapDisabled?this._contentRef.nativeElement.scrollBy(e.deltaY,0):e.deltaY<0?this.moveLeft():e.deltaY>0&&this.moveRight())}onWindowResize(){this.refreshWrapperDimensions(),this.checkNavStatus()}_setIsDragging(e){this._isDragging!==e&&(this._isDragging=e,e?this.dragStart.emit():this.dragEnd.emit())}_startGlobalListening(e){this._onMouseMoveListener||(this._onMouseMoveListener=this._renderer.listen("document",e?"touchmove":"mousemove",this.onMouseMoveHandler.bind(this))),this._onMouseUpListener||(this._onMouseUpListener=this._renderer.listen("document",e?"touchend":"mouseup",this.onMouseUpHandler.bind(this)))}_stopGlobalListening(){this._onMouseMoveListener&&(this._onMouseMoveListener=this._onMouseMoveListener()),this._onMouseUpListener&&(this._onMouseUpListener=this._onMouseUpListener())}disableScroll(e){this._renderer.setStyle(this._contentRef.nativeElement,`overflow-${e}`,"hidden")}enableScroll(e){this._renderer.setStyle(this._contentRef.nativeElement,`overflow-${e}`,"auto")}hideScrollbar(){"none"!==this._contentRef.nativeElement.style.display&&!this.wrapper&&(this.parentNode=this._contentRef.nativeElement.parentNode,this.wrapper=this._renderer.createElement("div"),this._renderer.setAttribute(this.wrapper,"class","drag-scroll-wrapper"),this._renderer.addClass(this.wrapper,"drag-scroll-container"),this.refreshWrapperDimensions(),this._renderer.setStyle(this.wrapper,"overflow","hidden"),this._renderer.setStyle(this._contentRef.nativeElement,"width",`calc(100% + ${this.scrollbarWidth})`),this._renderer.setStyle(this._contentRef.nativeElement,"height",`calc(100% + ${this.scrollbarWidth})`),this._renderer.appendChild(this._elementRef.nativeElement,this.wrapper),this._renderer.appendChild(this.wrapper,this._contentRef.nativeElement),this.adjustMarginToLastChild())}showScrollbar(){this.wrapper&&(this._renderer.setStyle(this._contentRef.nativeElement,"width","100%"),this._renderer.setStyle(this._contentRef.nativeElement,"height",this.wrapper.style.height),null!==this.parentNode&&(this.parentNode.removeChild(this.wrapper),this.parentNode.appendChild(this._contentRef.nativeElement)),this.wrapper=null,this.adjustMarginToLastChild())}checkScrollbar(){this._renderer.setStyle(this._contentRef.nativeElement,"height",this._contentRef.nativeElement.scrollWidth<=this._contentRef.nativeElement.clientWidth?"100%":`calc(100% + ${this.scrollbarWidth})`),this._renderer.setStyle(this._contentRef.nativeElement,"width",this._contentRef.nativeElement.scrollHeight<=this._contentRef.nativeElement.clientHeight?"100%":`calc(100% + ${this.scrollbarWidth})`)}setScrollBar(){this.scrollbarHidden?this.hideScrollbar():this.showScrollbar()}getScrollbarWidth(){const e=this._renderer.createElement("div");this._renderer.setStyle(e,"visibility","hidden"),this._renderer.setStyle(e,"width","100px"),this._renderer.setStyle(e,"msOverflowStyle","scrollbar"),this._renderer.appendChild(this._document.body,e);const n=e.offsetWidth;this._renderer.setStyle(e,"overflow","scroll");const r=this._renderer.createElement("div");this._renderer.setStyle(r,"width","100%"),this._renderer.appendChild(e,r);const o=r.offsetWidth;return this._renderer.removeChild(this._document.body,e),n-o||20}refreshWrapperDimensions(){this.wrapper&&(this._renderer.setStyle(this.wrapper,"width","100%"),this._renderer.setStyle(this.wrapper,"height",this._elementRef.nativeElement.style.height>0||this._elementRef.nativeElement.offsetHeight>0?this._elementRef.nativeElement.style.height||this._elementRef.nativeElement.offsetHeight+"px":"100%"))}scrollTo(e,n,r){const o=this;o.isAnimating=!0;const u=e.scrollLeft,v=(this.rtl?-1:1)*n-u-this.snapOffset;let P=0;const R=function(){var V,ne,De;P+=20,e.scrollLeft=(V=P,ne=u,De=v,(V/=r/2)<1?De/2*V*V+ne:-De/2*(--V*(V-2)-1)+ne),P<r?o.scrollToTimer=setTimeout(R,20):setTimeout(()=>{o.isAnimating=!1,o.snapAnimationFinished.emit(o.currIndex)},20)};R()}locateCurrentIndex(e){const n=Math.abs(this._contentRef.nativeElement.scrollLeft);this.currentChildWidth((r,o,s,u,v)=>{n>=s&&n<=o?(o-n>r/2&&!this.isScrollReachesRightEnd()?(this.isAnimating||(this.currIndex=u),e&&this.scrollTo(this._contentRef.nativeElement,s,this.snapDuration)):0!==n&&(this.isAnimating||(this.currIndex=u+1),e&&this.scrollTo(this._contentRef.nativeElement,s+r,this.snapDuration)),v()):u+1===this._children.length-1&&(this.isAnimating||(this.currIndex=u+1),v())})}currentChildWidth(e){let n=0,r=!1;const o=function(){r=!0},s=this._children.toArray();for(let u=0;u<s.length&&u!==s.length-1&&!r;u++){const w=s[u]._elementRef.nativeElement.clientWidth;e(w,n+s[u+1]._elementRef.nativeElement.clientWidth,n,u,o),n+=w}}toChildrenLocation(){let e=0;const n=this._children.toArray();for(let r=0;r<this.currIndex;r++)e+=n[r]._elementRef.nativeElement.clientWidth;return e}locateDragScrollItem(e){let n=null;const r=this._children.toArray();for(let o=0;o<r.length;o++)e===r[o]._elementRef.nativeElement&&(n=r[o]);return n}markElDimension(){this.wrapper?(this.elWidth=this.wrapper.style.width,this.elHeight=this.wrapper.style.height):(this.elWidth=this._elementRef.nativeElement.style.width||this._elementRef.nativeElement.offsetWidth+"px",this.elHeight=this._elementRef.nativeElement.style.height||this._elementRef.nativeElement.offsetHeight+"px");const e=this.wrapper||this.parentNode;this._children.length>1&&(this.indexBound=this.maximumIndex(e?e.clientWidth:0,this._children.toArray()))}maximumIndex(e,n){let r=0,o=0;for(let s=0;s<=n.length;s++){const u=n[n.length-1-s];if(!u)break;{const v=u._elementRef.nativeElement;let w=v.clientWidth;if(0===w&&v.firstElementChild&&(w=u._elementRef.nativeElement.firstElementChild.clientWidth),o+=w,!(o<e))break;r++}}return n.length-r}isScrollReachesRightEnd(){return Math.abs(this._contentRef.nativeElement.scrollLeft)+this._contentRef.nativeElement.offsetWidth>=this._contentRef.nativeElement.scrollWidth}adjustMarginToLastChild(){if(this._children&&this._children.length>0&&this.hideScrollbar){const e=this._children.toArray();this._renderer.setStyle(e[e.length-1]._elementRef.nativeElement,"margin-right",this.wrapper&&e.length>1?this.scrollbarWidth:0)}}}return t.\u0275fac=function(e){return new(e||t)($(To),$(ps),$(vo))},t.\u0275cmp=Ot({type:t,selectors:[["drag-scroll"]],contentQueries:function(e,n,r){if(1&e&&function Q3(t,i,e,n){const r=K();if(r.firstCreatePass){const o=re();K3(r,new J3(i,e,n),o.index),function V7(t,i){const e=t.contentQueries||(t.contentQueries=[]);i!==(e.length?e[e.length-1]:-1)&&e.push(t.queries.length-1,i)}(r,t),2==(2&e)&&(r.staticContentQueries=!0)}Y3(r,G(),e)}(r,Ey,5),2&e){let o;_d(o=Cd())&&(n._children=o)}},viewQuery:function(e,n){if(1&e&&Tu(mW,7),2&e){let r;_d(r=Cd())&&(n._contentRef=r.first)}},hostVars:2,hostBindings:function(e,n){1&e&&J("wheel",function(o){return n.onWheel(o)})("resize",function(){return n.onWindowResize()},!1,Ch),2&e&&zl("pointer-events",n._pointerEvents)},inputs:{scrollbarHidden:["scrollbar-hidden","scrollbarHidden"],disabled:["drag-scroll-disabled","disabled"],xDisabled:["drag-scroll-x-disabled","xDisabled"],yDisabled:["drag-scroll-y-disabled","yDisabled"],xWheelEnabled:["scroll-x-wheel-enabled","xWheelEnabled"],dragDisabled:["drag-disabled","dragDisabled"],snapDisabled:["snap-disabled","snapDisabled"],snapOffset:["snap-offset","snapOffset"],snapDuration:["snap-duration","snapDuration"]},outputs:{dsInitialized:"dsInitialized",indexChanged:"indexChanged",reachesLeftBound:"reachesLeftBound",reachesRightBound:"reachesRightBound",snapAnimationFinished:"snapAnimationFinished",dragStart:"dragStart",dragEnd:"dragEnd"},features:[br],ngContentSelectors:fW,decls:3,vars:0,consts:[[1,"drag-scroll-content"],["contentRef",""]],template:function(e,n){1&e&&(ug(),a(0,"div",0,1),hg(2),l())},styles:["[_nghost-%COMP%]{overflow:hidden;display:block}.drag-scroll-content[_ngcontent-%COMP%]{height:100%;overflow:auto;white-space:nowrap}"]}),t})(),pW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=uo({type:t}),t.\u0275inj=Mo({}),t})();const gW=["nav"],ju=function(t){return{active:t}};function vW(t,i){if(1&t){const e=ve();a(0,"div",18),J("click",function(){const o=M(e).$implicit;return L(_(3).changeTab(o.step))}),a(1,"div",19),B(2,"span",20),a(3,"div",21)(4,"strong"),h(5),l(),a(6,"span"),h(7),l()()()()}if(2&t){const e=i.$implicit,n=_(3);d("className",n.dataClassStepItem)("ngClass",Oe(5,ju,n.currentPage==e.step)),c(2),d("innerHTML",e.icon,
3ce),c(3),de(e.title),c(2),de(e.description)}}function _W(t,i){if(1&t&&(a(0,"drag-scroll",15,16),C(2,vW,8,7,"div",17),l()),2&t){const e=_(2);d("className",e.dataClassStep)("scrollbar-hidden",!0),c(2),d("ngForOf",e.stepOptions)}}function CW(t,i){if(1&t){const e=ve();ht(0),C(1,_W,3,3,"drag-scroll",12),a(2,"button",13),J("click",function(){M(e);const r=_();return L(r.moveLeft(1==r.currentPage?r.currentPage:r.currentPage-1))}),h(3,"Anterior"),l(),a(4,"button",14),J("click",function(){M(e);const r=_();return L(r.moveRight(5==r.currentPage?r.currentPage:r.currentPage+1))}),h(5,"Pr\xf3ximo"),l(),mt()}if(2&t){const e=_();c(1),d("ngIf","false"!=e.dataEnableScroll),c(1),d("disabled",1==e.currentPage),c(2),d("disabled",5==e.currentPage)}}function yW(t,i){if(1&t){const e=ve();a(0,"div",18),J("click",function(){const o=M(e).$implicit;return L(_(2).changeTab(o.step))}),a(1,"div",19),B(2,"span",20),a(3,"div",21)(4,"strong"),h(5),l(),a(6,"span"),h(7),l()()()()}if(2&t){const e=i.$implicit,n=_(2);d("className",n.dataClassStepItem)("ngClass",Oe(5,ju,n.currentPage==e.step)),c(2),d("innerHTML",e.icon,ce),c(3),de(e.title),c(2),de(e.description)}}function bW(t,i){if(1&t&&(a(0,"div",22),C(1,yW,8,7,"div",17),l()),2&t){const e=_();d("className",e.dataClassStep),c(1),d("ngForOf",e.stepOptions)}}function SW(t,i){if(1&t&&(a(0,"div",81)(1,"label",64),h(2,"Nome do criador"),l(),B(3,"input",82),l()),2&t){const e=_(3);c(3),Ue("value",e.customer.name)}}function wW(t,i){1&t&&(a(0,"span"),h(1,"Data Inv\xe1lida"),l())}function IW(t,i){1&t&&(a(0,"span"),h(1,"A data deve ser pelo menos um dia ap\xf3s a data atual."),l())}function xW(t,i){if(1&t&&(a(0,"div",83),C(1,wW,2,0,"span",1),C(2,IW,2,0,"span",1),l()),2&t){const e=_(3);c(1),d("ngIf",null==e.eventListControll.eventDate.errors?null:e.eventListControll.eventDate.errors.pattern),c(1),d("ngIf",null==e.eventListControll.eventDate.errors?null:e.eventListControll.eventDate.errors.minDate)}}function DW(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function PW(t,i){1&t&&(a(0,"span"),h(1,"Informe ao menos 3 caracteres"),l())}function TW(t,i){1&t&&(a(0,"span"),h(1,"Informe nome v\xe1lido"),l())}function EW(t,i){if(1&t&&(a(0,"div",83),C(1,DW,2,0,"span",1),C(2,PW,2,0,"span",1),C(3,TW,2,0,"span",1),l()),2&t){const e=_(4);c(1),d("ngIf",e.eventListControll.name1.errors.required),c(1),d("ngIf",e.eventListControll.name1.errors.minlength),c(1),d("ngIf",e.eventListControll.name1.errors.pattern)}}function LW(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function kW(t,i){1&t&&(a(0,"span"),h(1,"Informe ao menos 3 caracteres"),l())}function MW(t,i){1&t&&(a(0,"span"),h(1,"Informe nome v\xe1lido"),l())}function FW(t,i){if(1&t&&(a(0,"div",83),C(1,LW,2,0,"span",1),C(2,kW,2,0,"span",1),C(3,MW,2,0,"span",1),l()),2&t){const e=_(4);c(1),d("ngIf",e.eventListControll.name4.errors.required),c(1),d("ngIf",e.eventListControll.name4.errors.minlength),c(1),d("ngIf",e.eventListControll.name4.errors.pattern)}}const qa=function(t){return{success:t}};function AW(t,i){if(1&t&&(ht(0),a(1,"div",84)(2,"label",85),h(3,"Nome do noivo *"),l(),B(4,"input",86,87),C(6,EW,4,3,"div",67),l(),a(7,"div",88)(8,"label",89),h(9,"Nome da noiva *"),l(),B(10,"input",90,91),C(12,FW,4,3,"div",67),l(),mt()),2&t){const e=_(3);c(1),d("ngClass",Oe(4,qa,e.eventListControll.name1.valid)),c(5),d("ngIf",e.eventListControll.name1.errors&&(e.eventListControll.name1.dirty||e.eventListControll.name1.touched)),c(1),d("ngClass",Oe(6,qa,e.eventListControll.name4.valid)),c(5),d("ngIf",e.eventListControll.name4.errors&&(e.eventListControll.name4.dirty||e.eventListControll.name4.touched))}}function NW(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function OW(t,i){1&t&&(a(0,"span"),h(1,"Informe ao menos 3 caracteres"),l())}function RW(t,i){1&t&&(a(0,"span"),h(1,"Informe nome v\xe1lido"),l())}function BW(t,i){if(1&t&&(a(0,"div",83),C(1,NW,2,0,"span",1),C(2,OW,2,0,"span",1),C(3,RW,2,0,"span",1),l()),2&t){const e=_(4);c(1),d("ngIf",e.eventListControll.name1.errors.required),c(1),d("ngIf",e.eventListControll.name1.errors.minlength),c(1),d("ngIf",e.eventListControll.
3name1.errors.pattern)}}function jW(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function VW(t,i){1&t&&(a(0,"span"),h(1,"Informe ao menos 3 caracteres"),l())}function HW(t,i){1&t&&(a(0,"span"),h(1,"Informe nome v\xe1lido"),l())}function zW(t,i){if(1&t&&(a(0,"div",83),C(1,jW,2,0,"span",1),C(2,VW,2,0,"span",1),C(3,HW,2,0,"span",1),l()),2&t){const e=_(4);c(1),d("ngIf",e.eventListControll.name2.errors.required),c(1),d("ngIf",e.eventListControll.name2.errors.minlength),c(1),d("ngIf",e.eventListControll.name2.errors.pattern)}}function qW(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function $W(t,i){1&t&&(a(0,"span"),h(1,"Informe ao menos 3 caracteres"),l())}function UW(t,i){1&t&&(a(0,"span"),h(1,"Informe nome v\xe1lido"),l())}function GW(t,i){if(1&t&&(a(0,"div",83),C(1,qW,2,0,"span",1),C(2,$W,2,0,"span",1),C(3,UW,2,0,"span",1),l()),2&t){const e=_(4);c(1),d("ngIf",e.eventListControll.name3.errors.required),c(1),d("ngIf",e.eventListControll.name3.errors.minlength),c(1),d("ngIf",e.eventListControll.name3.errors.pattern)}}function WW(t,i){if(1&t&&(ht(0),a(1,"div",84)(2,"label",85),h(3,"Nome do beb\xea *"),l(),B(4,"input",92,87),C(6,BW,4,3,"div",67),l(),a(7,"div",93)(8,"label",94),h(9,"Nome do pai *"),l(),B(10,"input",95,96),C(12,zW,4,3,"div",67),l(),a(13,"div",97)(14,"label",98),h(15,"Nome da m\xe3e *"),l(),B(16,"input",99,100),C(18,GW,4,3,"div",67),l(),mt()),2&t){const e=_(3);c(1),d("ngClass",Oe(6,qa,e.eventListControll.name1.valid)),c(5),d("ngIf",e.eventListControll.name1.errors&&(e.eventListControll.name1.dirty||e.eventListControll.name1.touched)),c(1),d("ngClass",Oe(8,qa,e.eventListControll.name2.valid)),c(5),d("ngIf",e.eventListControll.name2.errors&&(e.eventListControll.name2.dirty||e.eventListControll.name2.touched)),c(1),d("ngClass",Oe(10,qa,e.eventListControll.name3.valid)),c(5),d("ngIf",e.eventListControll.name3.errors&&(e.eventListControll.name3.dirty||e.eventListControll.name3.touched))}}function JW(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function ZW(t,i){1&t&&(a(0,"span"),h(1,"Informe ao menos 3 caracteres"),l())}function QW(t,i){1&t&&(a(0,"span"),h(1,"Informe nome v\xe1lido"),l())}function YW(t,i){if(1&t&&(a(0,"div",83),C(1,JW,2,0,"span",1),C(2,ZW,2,0,"span",1),C(3,QW,2,0,"span",1),l()),2&t){const e=_(3);c(1),d("ngIf",e.eventListControll.message.errors.required),c(1),d("ngIf",e.eventListControll.message.errors.minlength),c(1),d("ngIf",e.eventListControll.message.errors.pattern)}}function KW(t,i){if(1&t){const e=ve();a(0,"div",101),J("click",function(){M(e),_();const r=Wt(36);return _(2).eventPictureImg=null,L(r.click())}),B(1,"img",102),l()}if(2&t){const e=_(3);c(1),d("src",e.eventPictureImg,fe)}}function XW(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function eJ(t,i){1&t&&(a(0,"span"),h(1,"Informe ao menos 3 caracteres"),l())}function tJ(t,i){1&t&&(a(0,"span"),h(1,"Informe nome v\xe1lido"),l())}function nJ(t,i){if(1&t&&(a(0,"div",83),C(1,XW,2,0,"span",1),C(2,eJ,2,0,"span",1),C(3,tJ,2,0,"span",1),l()),2&t){const e=_(3);c(1),d("ngIf",e.eventListControll.picture.errors.required),c(1),d("ngIf",e.eventListControll.picture.errors.minlength),c(1),d("ngIf",e.eventListControll.picture.errors.pattern)}}function iJ(t,i){if(1&t){const e=ve();a(0,"div",29)(1,"div",34)(2,"strong"),h(3,"Dados da lista"),l(),a(4,"span"),h(5,"Informa\xe7\xf5es como data do evento"),l()(),a(6,"div",58)(7,"div",59)(8,"input",60),J("change",function(){M(e);const r=_(2);return L(r.statusList=!r.statusList)}),l(),B(9,"label",61),l(),a(10,"span"),h(11,"Ativo"),l()(),C(12,SW,4,1,"div",62),a(13,"div",63)(14,"label",64),h(15,"Data do Evento *"),l(),B(16,"input",65,66),C(18,xW,3,2,"div",67),l(),C(19,AW,13,8,"ng-container",1),C(20,WW,19,12,"ng-container",1),a(21,"div",68)(22,"label",69),h(23,"Mensagem aos convidados *"),l(),B(24,"textarea",70,71),a(26,"span",72),h(27),l(),C(28,YW,4,3,"div",67),l(),a(29,"div",73)(30,"label",74),h(31," Imagem do evento * "),we(),a(32,"svg",75),J("click",function(){return M(e),L(Wt(36).click())}),B(33,"path",76)(34,"path",77),l()(),Pe(),a(35,"input",78,79),J("change",function(r){return M(e),L(_(2).btnAddImage(r.target.files,"eventPicture"))}),l(),C(37,KW,2,1,"div",80),C(38,nJ,4,3,"div",67),l()()}if(2&t){const e=Wt(25),n=_(2);c(8),d("checked",n.statusList),c(4),d("ngIf",n.customer&&n.customer.name),c(1),d("ngClass",Oe(14,qa,n.eventListControll.eventDate.valid)),c(3),d("min",n.minDate)("value",n.eventListControll.eventDate.value),c(2),d("ngIf",n.eventListControll.eventDate.errors&&(n.eventListControll.eventDate.dirty||n.eventListControll.eventDate.touched)),c(1),d("ngIf",1==n.typeList),c(1),d("ngIf",4==n.typeList),c(1),d("ngClass",Oe(16,qa,n.eventListControll.message.valid)),c(6),dt("",250-e.value.toString().length," caracteres restantes"),c(1),d("ngIf",n.eventListControll.message.errors&&(n.eventListControll.message.dirty||n.eventListControll.message.touched)),c(1),d("ngClass",Oe(18,qa,n.eventListControll.picture.valid)),c(8),d("ngIf",n.eventPictureImg),c(1),d("ngIf",n.eventListControll.picture.errors&&(n.eventListControll.picture.dirty||n.eventListControll.picture.touched))}}const Lc=function(t){return{"jet-btn-loading":t}};function rJ(t,i){if(1&t){const e=ve();a(0,"div",103)(1,"button",104),J("click",function(){return M(e),L(_(2).btnCancel())}),we(),a(2,"svg",105),B(3,"path",106),l(),Pe(),a(4,"span"),h(5,"Cancelar"),l()(),a(6,"button",107),we(),a(7,"svg",108),B(8,"path",109),l(),Pe(),a(9,"span"),h(10,"Salvar"),l()()()}if(2&t){const e=_(2);c(6),d("ngClass",Oe(2,Lc,e.loading))("disabled",!e.eventListForm.valid)}}function oJ(t,i){1&t&&(a(0,"div",112)(1,"span"),h(2,"Selecionado"),l()())}
3function sJ(t,i){if(1&t&&(a(0,"div",118)(1,"div",119),h(2),l(),a(3,"span",120),h(4),l(),a(5,"span",121),h(6),l(),a(7,"span",122),h(8),l(),a(9,"span",123),h(10),l(),a(11,"span",124),h(12),l()()),2&t){const e=_(4);c(2),de(e.addressEventList.identification),c(2),de(e.customer.name),c(2),Ra("",e.addressEventList.streetAddress,", ",e.addressEventList.number,", ",e.addressEventList.complement,""),c(2),de(e.addressEventList.neighbourhood),c(2),Eo("",e.addressEventList.city," - ",e.addressEventList.state,""),c(2),de(e.addressEventList.zipCode)}}function aJ(t,i){if(1&t&&(a(0,"div",118)(1,"div",119),h(2),l(),a(3,"span",120),h(4),l(),a(5,"span",121),h(6),l(),a(7,"span",122),h(8),l(),a(9,"span",123),h(10),l(),a(11,"span",124),h(12),l()()),2&t){const e=_(4);c(2),de(e.newAddressEventList.identification),c(2),de(e.customer.name),c(2),Ra("",e.newAddressEventList.streetAddress,", ",e.newAddressEventList.number,", ",e.newAddressEventList.complement,""),c(2),de(e.newAddressEventList.neighbourhood),c(2),Eo("",e.newAddressEventList.city," - ",e.newAddressEventList.state,""),c(2),de(e.newAddressEventList.zipCode)}}function lJ(t,i){if(1&t&&(a(0,"div",118)(1,"div",119),h(2),l(),a(3,"span",120),h(4),l(),a(5,"span",121),h(6),l(),a(7,"span",122),h(8),l(),a(9,"span",123),h(10),l(),a(11,"span",124),h(12),l()()),2&t){const e=_(4);c(2),de(e.customerAddress.identification),c(2),de(e.customer.name),c(2),Ra("",e.customerAddress.streetAddress,", ",e.customerAddress.number,", ",e.customerAddress.complement,""),c(2),de(e.customerAddress.neighbourhood),c(2),Eo("",e.customerAddress.city," - ",e.customerAddress.state,""),c(2),de(e.customerAddress.zipCode)}}function cJ(t,i){if(1&t){const e=ve();ht(0),a(1,"span",31),h(2,"Entrega no meu endere\xe7o"),l(),a(3,"div",113),C(4,sJ,13,9,"div",114),C(5,aJ,13,9,"div",114),C(6,lJ,13,9,"div",114),l(),a(7,"div",103)(8,"button",115),J("click",function(){return M(e),L(_(3).btnEditAddress())}),we(),a(9,"svg",116),B(10,"path",117),l(),Pe(),a(11,"span"),h(12,"Alterar ou adicionar endere\xe7o"),l()()(),mt()}if(2&t){const e=_(3);c(4),d("ngIf",!e.newAddressEventList&&e.addressEventList),c(1),d("ngIf",e.newAddressEventList),c(1),d("ngIf",!e.addressEventList&&!e.newAddressEventList),c(2),d("ngClass",Oe(4,Lc,e.loading))}}function dJ(t,i){if(1&t){const e=ve();a(0,"button",125),J("click",function(){return M(e),L(_(3).changeDeliveryAddressGuest(!1))}),we(),a(1,"svg",108),B(2,"path",109),l(),Pe(),a(3,"span"),h(4,"Entrega no meu endere\xe7o"),l()()}if(2&t){const e=_(3);d("ngClass",Oe(1,Lc,e.loading))}}function uJ(t,i){if(1&t&&(a(0,"div",22)(1,"div",29),C(2,oJ,3,0,"div",30),a(3,"div",34)(4,"strong"),h(5,"Endere\xe7os"),l(),a(6,"span"),h(7,"Local de entrega dos produtos"),l()(),C(8,cJ,13,6,"ng-container",110),C(9,dJ,5,3,"ng-template",null,111,_i),l()()),2&t){const e=Wt(10),n=_(2);d("className",n.dataClassContainer),c(2),d("ngIf",!n.eventList||!n.eventList.deliveryAddressGuest),c(6),d("ngIf",!n.eventList||!n.eventList.deliveryAddressGuest)("ngIfElse",e)}}function hJ(t,i){1&t&&(a(0,"div",112)(1,"span"),h(2,"Selecionado"),l()())}function mJ(t,i){if(1&t){const e=ve();ht(0),a(1,"button",125),J("click",function(){return M(e),L(_(2).changeDeliveryAddressGuest(!0))}),we(),a(2,"svg",108),B(3,"path",109),l(),h(4," Entrega no endere\xe7o do convidado "),l(),mt()}if(2&t){const e=_(2);c(1),d("ngClass",Oe(1,Lc,e.loading))}}function fJ(t,i){if(1&t){const e=ve();a(0,"div",103)(1,"button",126),J("click",function(){M(e);const r=_(2);return r.changeTab(1),L(r.moveLeft())}),we(),a(2,"svg",127),B(3,"path",128),l(),Pe(),a(4,"span"),h(5,"Voltar"),l()(),a(6,"button",129),J("click",function(){M(e);const r=_(2);return r.changeTab(3),L(r.moveRight())}),we(),a(7,"svg",127),B(8,"path",130),l(),Pe(),a(9,"span"),h(10,"Avan\xe7ar"),l()()()}if(2&t){const e=_(2);c(6),d("ngClass",Oe(1,Lc,e.loading))}}function pJ(t,i){1&t&&(a(0,"div",131),we(),a(1,"svg",132),B(2,"path",133),l()())}function gJ(t,i){if(1&t){const e=ve();a(0,"div",143)(1,"input",154),J("click",function(){const o=M(e).$implicit;return L(_(3).selectCheckbox("categories",o.idCategory))}),l(),a(2,"label",155),h(3),l()()}if(2&t){const e=i.$implicit;c(1),hr("id","category-",e.idCategory,""),Ue("value",e.idCategory),c(1),hr("for","category-",e.idCategory,""),c(1),dt(" ",e.name," ")}}function vJ(t,i){if(1&t){const e=ve();a(0,"div",143)(1,"input",156),J("click",function(){const o=M(e).$implicit;return L(_(3).selectCheckbox("brands",o.idBrand))}),l(),a(2,"label",155),h(3),l()()}if(2&t){const e=i.$implicit;c(1),hr("id","brand-",e.idBrand,""),Ue("value",e.idBrand),c(1),hr("for","brand-",e.idBrand,""),c(1),de(e.name)}
3}function _J(t,i){if(1&t){const e=ve();a(0,"div",143)(1,"input",161),J("click",function(){const o=M(e).$implicit,s=_().$implicit;return L(_(4).selectCheckbox("variations",s.idReference+":"+o.idVariation))}),l(),a(2,"label",155),h(3),l()()}if(2&t){const e=i.$implicit,n=_().$implicit;c(1),z1("id","reference-",n.idReference,":",e.idVariation,"")("name","",n.idReference,":",e.idVariation,"")("value","",n.idReference,":",e.idVariation,""),c(1),z1("for","reference-",n.idReference,":",e.idVariation,""),c(1),de(e.name)}}function CJ(t,i){if(1&t){const e=ve();a(0,"div",158)(1,"label",159),h(2),l(),a(3,"div")(4,"div",143)(5,"input",160),J("change",function(r){const s=M(e).$implicit;return L(_(4).selectAllCheckbox("reference-"+s.idReference,r))}),l(),a(6,"label",155),h(7,"Selecionar todos"),l()(),C(8,_J,4,9,"div",146),l()()}if(2&t){const e=i.$implicit;c(2),de(e.name),c(1),Ah("checkbox-group reference-",e.idReference,""),c(2),hr("id","select-all-reference-",e.idReference,"")("name","reference-",e.idReference,""),c(1),hr("for","select-all-reference-",e.idReference,""),c(2),d("ngForOf",e.variations)}}function yJ(t,i){if(1&t&&(ht(0),C(1,CJ,9,8,"div",157),mt()),2&t){const e=_(3);c(1),d("ngForOf",e.productResult.filters.references)}}const bJ=function(t){return{hidden:t}};function SJ(t,i){if(1&t){const e=ve();a(0,"div",134)(1,"div",135)(2,"label",136),h(3,"Faixa de pre\xe7o"),l(),a(4,"div",59)(5,"input",137),J("keyup",function(r){return M(e),L(_(2).commomService.priceEventMask(r,!0))})("blur",function(r){M(e);const o=_(2);return o.commomService.priceEventMask(r),L(o.changePrices("ofPrice",r.target.value))}),l(),a(6,"span"),h(7,"at\xe9"),l(),a(8,"input",138),J("keyup",function(r){return M(e),L(_(2).commomService.priceEventMask(r,!0))})("blur",function(r){M(e);const o=_(2);return o.commomService.priceEventMask(r),L(o.changePrices("toPrice",r.target.value))}),l()()(),a(9,"div",139)(10,"div",140)(11,"label",141),h(12,"Categorias"),l(),a(13,"div",142)(14,"div",143)(15,"input",144),J("change",function(r){return M(e),L(_(2).selectAllCheckbox("categories",r))}),l(),a(16,"label",145),h(17,"Selecionar todos"),l()(),C(18,gJ,4,4,"div",146),l()(),a(19,"div",147)(20,"label",148),h(21,"Marcas"),l(),a(22,"div",142)(23,"div",143)(24,"input",149),J("change",function(r){return M(e),L(_(2).selectAllCheckbox("brands",r))}),l(),a(25,"label",150),h(26,"Selecionar todos"),l()(),C(27,vJ,4,4,"div",146),l()(),C(28,yJ,2,1,"ng-container",1),l(),a(29,"div",151)(30,"button",152),J("click",function(){return M(e),L(_(2).clearFilters())}),h(31,"Limpar filtros"),l(),a(32,"button",153),J("click",function(){M(e),_();const r=Wt(35);return L(_().searchProduct(r.value))}),h(33,"Filtrar produtos"),l()()()}if(2&t){const e=_(2);d("ngClass",Oe(4,bJ,!e.filterSearchActive)),c(18),d("ngForOf",e.productResult.filters.categories),c(9),d("ngForOf",e.productResult.filters.brands),c(1),d("ngIf",e.productResult.filters.references)}}function wJ(t,i){if(1&t&&(a(0,"span",175),h(1),l()),2&t){const e=_().$implicit,n=_(3);c(1),dt(" ",n.commomService.priceMask(e.price)," ")}}function IJ(t,i){1&t&&(a(0,"span",176),h(1," Produto indispon\xedvel "),l())}function xJ(t,i){if(1&t){const e=ve();a(0,"button",177),J("click",function(){M(e);const r=_().$implicit;return L(_(3).productAction(1,r.idProduct))}),we(),a(1,"svg",178),B(2,"path",179),l(),h(3," Adicionar \xe0 lista "),l()}}function DJ(t,i){if(1&t){const e=ve();a(0,"button",180),J("click",function(){M(e);const r=_().$implicit;return L(_(3).viewProductVariation(r.idProduct))}),we(),a(1,"svg",108),B(2,"path",109),l(),h(3," Selecionar Varia\xe7\xe3o "),l()}}function PJ(t,i){if(1&t&&(a(0,"div",164)(1,"div",165),B(2,"img",166),a(3,"div",167)(4,"a",168),h(5),l(),a(6,"span",169),C(7,wJ,2,1,"span",170),a(8,"span",171),h(9),l()(),C(10,IJ,2,0,"span",172),C(11,xJ,4,0,"button",173),C(12,DJ,4,0,"button",174),l()()()),2&t){const e=i.$implicit,n=_(3);c(2),Ue("alt",e.imageHome),Ue("src",e.imageHome,fe),c(2),Ue("href",e.urlFriendly,fe),Ue("title",e.name),c(1),dt(" ",e.name," "),c(2),d("ngIf",e.pricePromotion>0),c(2),dt(" ",n.commomService.priceMask(e.pricePromotion>0?e.pricePromotion:e.price)," "),c(1),d("ngIf",0==e.stock||e.flagExhausted),c(1),d("ngIf",!e.skUs||0==e.skUs.length),c(1),d("ngIf",e.skUs&&e.skUs.length>0)}}function TJ(t,i){if(1&t&&(a(0,"div",162),C(1,PJ,13,10,"div",163),l()),2&t){const e=_(2);c(1),d("ngForOf",e.productResult.products)}}const ky=function(t){return{active:t}};function EJ(t,i){if(1&t){const e=ve();a(0,"button",198),J("click",function(){const o=M(e).$implicit;_(3);const s=Wt(35);return L(_().searchProduct(s.value,!0,o))}),h(1),l()}if(2&t){const e=i.$implicit,n=_(4);d("ngClass",Oe(2,ky,n.productResult.settings.pageNumber==e)),c(1),dt(" ",e," ")}}const Jp=function(t){return{disabled:t}};function LJ(t,i){if(1&t){const e=ve();a(0,"div",184)(1,"button",185),J("click",function(){M(e),_(2);const r=Wt(35);return L(_().searchProduct(r.value,!0,1))}),we(),a(2,"svg",186),B(3,"path",187)(4,"path",188),l()(),Pe(),a(5,"button",189),J("click",function(){M(e),_(2);const r=Wt(35),o=_();return L(o.searchProduct(r.value,!0,o.productResult.settings.pageNumber-1))}),we(),a(6,"svg",190),B(7,"path",191),l()(),Pe(),a(8,"div",192),C(9,EJ,2,4,"button",193),l(),a(10,"button",194),J("click",function(){M(e),_(2);const r=Wt(35),o=_();return L(o.searchProduct(r.value,!0,o.productResult.settings.pageNumber+1))}),we(),a(11,"svg",190),B(12,"path",195),l()(),Pe(),a(13,"button",196),J("click",function(){M(e),_(2);const r=Wt(35),o=_();return L(o.searchProduct(r.value,!0,o.productResult.settings.pageCount))}),we(),a(14,"svg",186),B(15,"path",197)(16,"path",195),l()()()}if(2&t){const e=_(3);c(1),d("ngClass",Oe(9,Jp,1==e.pages[0]))("disabled",1==e.productResult.settings.pageNumber),c(4),d("ngClass",Oe(11,Jp,1==e.productResult.settings.pageNumber))("disabled",1==e.productResult.settings.pageNumber),c(4),d("ngForOf",e.pages),c(1),d("ngClass",Oe(13,Jp,e.productResult.settings.pageNumber==e.productResult.settings.pageCount))("disabled",e.productResult.settings.pageNumber==e.productResult.settings.pageCount),c(3),d("ngClass",Oe(15,Jp,e.pages[e.pages.length-1]==e.productResult.settings.pageCount))("disabled",e.productResult.settings.pageNumber==e.productResult.settings.pageCount)}}
3function kJ(t,i){if(1&t&&(a(0,"div",181)(1,"span",182),h(2),l(),C(3,LJ,17,17,"div",183),l()),2&t){const e=_(2);c(2),de("Total de registros: "+e.productResult.settings.totalItemCount),c(1),d("ngIf",(null==e.productResult||null==e.productResult.settings?null:e.productResult.settings.pageCount)>1)}}function MJ(t,i){1&t&&(a(0,"div",199),h(1," Nenhum produto encontrado! "),l())}function FJ(t,i){1&t&&(a(0,"div",34)(1,"strong"),h(2,"Produtos em sua lista"),l(),a(3,"span"),h(4,"Voc\xea pode atualizar a quantidade solicitada, visualizar os itens j\xe1 obtidos ou remov\xea-los da sua lista"),l()())}function AJ(t,i){if(1&t&&(a(0,"span",175),h(1),l()),2&t){const e=_().$implicit,n=_(3);c(1),dt(" ",n.commomService.priceMask(e.price)," ")}}function NJ(t,i){if(1&t&&B(0,"div",219),2&t){const e=_().$implicit;d("innerHtml",_(3).normalizeText(e.descriptionSku),ce)}}function OJ(t,i){1&t&&(a(0,"span",176),h(1," Produto indispon\xedvel "),l())}function RJ(t,i){if(1&t){const e=ve();a(0,"div",202)(1,"div",164)(2,"div",165),B(3,"img",205),a(4,"div",167)(5,"a",168),h(6),l(),a(7,"span",169),C(8,AJ,2,1,"span",170),a(9,"span",171),h(10),l()(),C(11,NJ,1,1,"div",206),C(12,OJ,2,0,"span",172),l()()(),a(13,"div",164)(14,"div",207)(15,"button",208),J("click",function(){const o=M(e).$implicit;return L(_(3).editQuantity(o.idProduct,o.idSku,o.quantity-1))}),h(16,"-"),l(),a(17,"input",209),J("blur",function(r){const s=M(e).$implicit;return L(_(3).editQuantity(s.idProduct,s.idSku,r.target.value))}),l(),a(18,"button",210),J("click",function(){const o=M(e).$implicit;return L(_(3).editQuantity(o.idProduct,o.idSku,o.quantity+1))}),h(19,"+"),l()()(),a(20,"div",164)(21,"div",211)(22,"span",212),h(23),l(),a(24,"button",213),J("click",function(){const o=M(e).$implicit;return L(_(3).viewGuests(o.idProduct,o.idSku))}),we(),a(25,"svg",214),B(26,"path",215),l()()()(),Pe(),a(27,"div",164)(28,"button",216),J("click",function(){const o=M(e).$implicit;return L(_(3).deleteProduct(o.idEventListProduct,o.idProduct,o.idSku))}),we(),a(29,"svg",217),B(30,"path",218),l()()()()}if(2&t){const e=i.$implicit,n=_(3);c(3),Ue("src",e.imageHome,fe),Ue("alt",n.cleanName(e.productName)),c(2),hr("href","",e.textLink,"/p",fe),Ue("title",n.cleanName(e.productName)),c(1),dt(" ",n.cleanName(e.productName)," "),c(2),d("ngIf",e.pricePromotion>0),c(2),dt(" ",n.commomService.priceMask(e.pricePromotion>0?e.pricePromotion:e.price)," "),c(1),d("ngIf",""!=e.descriptionSku),c(1),d("ngIf",0==e.stock||e.flagExhausted),c(5),d("value",e.quantity),c(6),de(e.quantityBuy),c(1),d("disabled",0==e.quantityBuy)}}
3function BJ(t,i){if(1&t&&(a(0,"div",200)(1,"div",201)(2,"div",202)(3,"div",164),h(4,"Produto"),l(),a(5,"div",164),h(6,"Solicitados"),l(),a(7,"div",164),h(8,"Comprados"),l(),a(9,"div",164),h(10,"A\xe7\xe3o"),l()()(),a(11,"div",203),C(12,RJ,31,12,"div",204),l()()),2&t){const e=_(2);c(12),d("ngForOf",e.products)}}function jJ(t,i){1&t&&(a(0,"div",199),h(1," Nenhum produto adicionado em sua lista at\xe9 o momento! "),l())}function VJ(t,i){if(1&t){const e=ve();a(0,"div",103)(1,"button",126),J("click",function(){M(e);const r=_(2);return r.changeTab(2),L(r.moveLeft())}),we(),a(2,"svg",127),B(3,"path",128),l(),Pe(),a(4,"span"),h(5,"Voltar"),l()(),a(6,"button",129),J("click",function(){M(e);const r=_(2);return r.changeTab(4),L(r.moveRight())}),we(),a(7,"svg",127),B(8,"path",130),l(),Pe(),a(9,"span"),h(10,"Avan\xe7ar"),l()()()}if(2&t){const e=_(2);c(6),d("ngClass",Oe(1,Lc,e.loading))}}function HJ(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function zJ(t,i){1&t&&(a(0,"span"),h(1,"Informe ao menos 3 caracteres"),l())}function qJ(t,i){1&t&&(a(0,"span"),h(1,"Informe nome v\xe1lido"),l())}function $J(t,i){if(1&t&&(a(0,"div",83),C(1,HJ,2,0,"span",1),C(2,zJ,2,0,"span",1),C(3,qJ,2,0,"span",1),l()),2&t){const e=_(3);c(1),d("ngIf",e.eventListControll.invitationMessage.errors.required),c(1),d("ngIf",e.eventListControll.invitationMessage.errors.minlength),c(1),d("ngIf",e.eventListControll.invitationMessage.errors.pattern)}}function UJ(t,i){if(1&t){const e=ve();a(0,"div",101),J("click",function(){M(e),_();const r=Wt(22);return _(2).invitationPictureImg=null,L(r.click())}),B(1,"img",102),l()}if(2&t){const e=_(3);c(1),d("src",e.invitationPictureImg,fe)}}function GJ(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function WJ(t,i){1&t&&(a(0,"span"),h(1,"Informe ao menos 3 caracteres"),l())}function JJ(t,i){1&t&&(a(0,"span"),h(1,"Informe nome v\xe1lido"),l())}function ZJ(t,i){if(1&t&&(a(0,"div",83),C(1,GJ,2,0,"span",1),C(2,WJ,2,0,"span",1),C(3,JJ,2,0,"span",1),l()),2&t){const e=_(3);c(1),d("ngIf",e.eventListControll.invitationPicture.errors.required),c(1),d("ngIf",e.eventListControll.invitationPicture.errors.minlength),c(1),d("ngIf",e.eventListControll.invitationPicture.errors.pattern)}}function QJ(t,i){if(1&t){const e=ve();a(0,"div",22)(1,"div",29)(2,"div",34)(3,"strong"),h(4,"Configurar convites"),l(),a(5,"span"),h(6,"Divulgue a lista para seus convidados"),l()(),a(7,"div",68)(8,"label",220),h(9,"Mensagem aos convidados *"),l(),B(10,"textarea",221,222),a(12,"span",72),h(13),l(),C(14,$J,4,3,"div",67),l(),a(15,"div",73)(16,"label",223),h(17," Banner do evento * "),we(),a(18,"svg",75),J("click",function(){return M(e),L(Wt(22).click())}),B(19,"path",76)(20,"path",77),l()(),Pe(),a(21,"input",78,224),J("change",function(r){return M(e),L(_(2).btnAddImage(r.target.files,"invitationPicture"))}),l(),C(23,UJ,2,1,"div",80),C(24,ZJ,4,3,"div",67),l()()()}if(2&t){const e=Wt(11),n=_(2);d("className",n.dataClassContainer),c(7),d("ngClass",Oe(7,qa,n.eventListControll.invitationMessage.valid)),c(6),dt("",250-e.value.toString().length," caracteres restantes"),c(1),d("ngIf",n.eventListControll.invitationMessage.errors&&(n.eventListControll.invitationMessage.dirty||n.eventListControll.invitationMessage.touched)),c(1),d("ngClass",Oe(9,qa,n.eventListControll.invitationPicture.valid)),c(8),d("ngIf",n.invitationPictureImg),c(1),d("ngIf",n.eventListControll.invitationPicture.errors&&(n.eventListControll.invitationPicture.dirty||n.eventListControll.invitationPicture.touched))}}function YJ(t,i){if(1&t){const e=ve();a(0,"div",103)(1,"button",126),J("click",function(){M(e);const r=_(2);return r.changeTab(3),L(r.moveLeft())}),we(),a(2,"svg",127),B(3,"path",128),l(),Pe(),a(4,"span"),h(5,"Voltar"),l()(),a(6,"button",107),we(),a(7,"svg",108),B(8,"path",109),l(),Pe(),a(9,"span"),h(10,"Salvar"),l()()()}if(2&t){const e=_(2);c(6),d("ngClass",Oe(2,Lc,e.loading))("disabled",!e.eventListForm.valid)}}function KJ(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function XJ(t,i){1&t&&(a(0,"span"),h(1,"Informe nome v\xe1lido"),l())}function eZ(t,i){if(1&t&&(a(0,"div",83),C(1,KJ,2,0,"span",1),C(2,XJ,2,0,"span",1),l()),2&t){const e=_(3);
3c(1),d("ngIf",e.eventListControll.nameGuest.errors.required),c(1),d("ngIf",e.eventListControll.nameGuest.errors.pattern)}}function tZ(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function nZ(t,i){1&t&&(a(0,"span"),h(1,"Informe email v\xe1lido"),l())}function iZ(t,i){if(1&t&&(a(0,"div",83),C(1,tZ,2,0,"span",1),C(2,nZ,2,0,"span",1),l()),2&t){const e=_(3);c(1),d("ngIf",e.eventListControll.emailGuest.errors.required),c(1),d("ngIf",e.eventListControll.emailGuest.errors.pattern)}}function rZ(t,i){if(1&t){const e=ve();a(0,"div",22)(1,"div",29)(2,"div",34)(3,"strong"),h(4,"Lista de convidados"),l(),a(5,"span"),h(6,"Gerencie os convidados do evento"),l()(),a(7,"div",225)(8,"label",226),h(9,"Nome do convidado *"),l(),B(10,"input",227,228),C(12,eZ,3,2,"div",67),l(),a(13,"div",229)(14,"label",230),h(15,"E-mail do convidado *"),l(),B(16,"input",231,232),C(18,iZ,3,2,"div",67),l(),a(19,"button",233),J("click",function(){return M(e),L(_(2).addGuestEventList())}),we(),a(20,"svg",178),B(21,"path",234),l(),Pe(),a(22,"span"),h(23,"Adicionar"),l()()()()}if(2&t){const e=_(2);d("className",e.dataClassContainer),c(7),d("ngClass",Oe(7,qa,e.eventListControll.nameGuest.valid)),c(5),d("ngIf",e.eventListControll.nameGuest.errors&&(e.eventListControll.nameGuest.dirty||e.eventListControll.nameGuest.touched)),c(1),d("ngClass",Oe(9,qa,e.eventListControll.emailGuest.valid)),c(5),d("ngIf",e.eventListControll.emailGuest.errors&&(e.eventListControll.emailGuest.dirty||e.eventListControll.emailGuest.touched)),c(1),d("ngClass",Oe(11,Lc,e.loading))("disabled",e.eventListControll.nameGuest.errors||e.eventListControll.emailGuest.errors)}}function oZ(t,i){if(1&t){const e=ve();ht(0),a(1,"div",34)(2,"strong"),h(3,"Procurar convidado"),l()(),a(4,"div",235)(5,"div",36)(6,"div",41)(7,"label",236),h(8,"Procurar convidado"),l(),a(9,"input",237,238),J("input",function(){M(e);const r=Wt(10);return L(_(2).searchGuest(r.value))}),l()(),a(11,"div",239)(12,"button",44),J("click",function(){M(e);const r=Wt(10);return L(_(2).searchGuest(r.value))}),a(13,"span"),h(14,"Pesquisar"),l()()()()(),mt()}if(2&t){const e=_(2);c(9),hr("placeholder","",e.isMobile?"":"Busque por ","nome ou e-mail do convidado")}}function sZ(t,i){if(1&t){const e=ve();a(0,"div",202)(1,"div",240),h(2),l(),a(3,"div",241),h(4),l(),a(5,"div",244),h(6),l(),a(7,"div",243)(8,"button",216),J("click",function(){const o=M(e).$implicit;return L(_(3).deleteGuest(o.idGuest))}),we(),a(9,"svg",217),B(10,"path",218),l()()()()}if(2&t){const e=i.$implicit;c(2),de(e.name),c(2),de(e.email),c(1),d("ngClass",e.invitationSent?"sent":""),c(1),de(e.invitationSent?"Sim":"N\xe3o")}}function aZ(t,i){if(1&t&&(a(0,"div",200)(1,"div",201)(2,"div",202)(3,"div",240),h(4,"Convidado"),l(),a(5,"div",241),h(6,"E-mail"),l(),a(7,"div",242),h(8),l(),a(9,"div",243),h(10,"A\xe7\xe3o"),l()()(),a(11,"div",203),C(12,sZ,11,4,"div",204),l()()),2&t){const e=_(2);c(8),de(e.isMobile?"Convites":"Convite enviado"),c(4),d("ngForOf",e.guestList)}}function lZ(t,i){1&t&&(a(0,"div",199)(1,"strong"),h(2,"Nenhum convidado at\xe9 o momento."),l(),a(3,"span"),h(4,"Voc\xea poder\xe1 utilizar as op\xe7\xf5es acima para adicionar a seu primeira convidado."),l()())}function cZ(t,i){if(1&t&&(a(0,"div",199),h(1," Nenhum convidado encontrado com o termo "),a(2,"strong"),h(3),l()()),2&t){const e=_(3);c(3),dt("",e.searchFilter,".")}}function dZ(t,i){if(1&t&&(C(0,lZ,5,0,"div",245),C(1,cZ,4,1,"div",245)),2&t){const e=_(2);d("ngIf",!e.filtered),c(1),d("ngIf",e.filtered)}}function uZ(t,i){if(1&t){const e=ve();a(0,"button",247),J("click",function(){return M(e),L(_(3).sendInvitation())}),we(),a(1,"svg",248),B(2,"path",249),l(),h(3," Enviar convites "),l()}if(2&t){const e=_(3);d("ngClass",Oe(1,Lc,e.loading))}}function hZ(t,i){if(1&t){const e=ve();a(0,"div",103)(1,"button",126),J("click",function(){M(e);const r=_(2);return r.changeTab(4),L(r.moveLeft())}),we(),a(2,"svg",127),B(3,"path",128),l(),Pe(),a(4,"span"),h(5,"Voltar"),l()(),C(6,uZ,4,3,"button",246),l()}if(2&t){const e=_(2);c(6),d("ngIf",e.showSendButton)}}const mZ=function(t){return{"jet-loading":t}};function fZ(t,i){if(1&t){const e=ve();a(0,"form",23),J("ngSubmit",function(){return M(e),L(_().submitEventList())})("keydown.enter",function(r){return r.preventDefault()}),a(1,"div",24),C(2,iJ,39,20,"div",25),C(3,rJ,11,4,"div",26),l(),a(4,"div",27),C(5,uJ,11,4,"div",2),a(6,"div",28)(7,"span"),h(8,"ou"),l()(),a(9,"div",29),C(10,hJ,3,0,"div",30),a(11,"span",31),h(12,"Entrega no endere\xe7o do convidado"),l(),a(13,"span",32),h(14,"Ao selecionar esta op\xe7\xe3o, os produtos ser\xe3o enviados ao endere\xe7o identificado pelo convidado no momento de sua compra."),l(),C(15,mJ,5,3,"ng-container",1),l(),C(16,fJ,11,3,"div",26),l(),a(17,"div",33)(18,"div",22)(19,"div",29)(20,"div",34)(21,"strong"),h(22,"Produtos"),l(),a(23,"span"),h(24,"Gerencie os itens que estar\xe3o dispon\xedveis para compra"),l()(),a(25,"div",35)(26,"div",36)(27,"div",37),J("click",function(){return M(e),L(_().filterSearch())}),a(28,"button",38)(29,"span"),h(30,"Filtros"),l(),we(),a(31,"svg",39),B(32,"path",40),l()()(),Pe(),a(33,"div",41)(34,"input",42,43),J("keyup.enter",function(){M(e);const r=Wt(35);return L(_().searchProduct(r.value))}),l(),a(36,"button",44),J("click",function(){M(e);const r=Wt(35);return L(_().searchProduct(r.value))}),a(37,"span"),h(38,"Pesquisar"),l(),C(39,pJ,3,0,"div",45),l()()(),C(40,SJ,34,6,"div",46),C(41,TJ,2,1,"div",47),C(42,kJ,4,2,"div",48),C(43,MJ,2,0,"ng-template",null,49,_i),l()(),a(45,"div",50),C(46,FJ,5,0,"div",51),C(47,BJ,13,1,"div",52),C(48,jJ,2,0,"ng-template",null,53,_i),l()(),C(50,VJ,11,3,"div",26),l(),a(51,"div",54),C(52,QJ,25,
311,"div",2),C(53,YJ,11,4,"div",26),l(),a(54,"div",55),C(55,rZ,24,13,"div",2),a(56,"div",56),C(57,oZ,15,1,"ng-container",1),C(58,aZ,13,2,"div",52),l(),C(59,dZ,2,2,"ng-template",null,57,_i),C(61,hZ,7,1,"div",26),l()()}if(2&t){const e=Wt(44),n=Wt(49),r=Wt(60),o=_();d("formGroup",o.eventListForm)("ngClass",Oe(32,mZ,o.loading)),c(1),d("ngClass",Oe(34,ju,1==o.currentPage)),c(1),d("ngIf",1==o.currentPage),c(1),d("ngIf",1==o.currentPage),c(1),d("ngClass",Oe(36,ju,2==o.currentPage)),c(1),d("ngIf",null!=o.customer&&null!=o.customer.address&&o.customer.address.length>0),c(5),d("ngIf",o.eventList&&o.eventList.deliveryAddressGuest),c(5),d("ngIf",!o.eventList||!o.eventList.deliveryAddressGuest||o.deliveryAddressGuest),c(1),d("ngIf",2==o.currentPage),c(1),d("ngClass",Oe(38,ju,3==o.currentPage)),c(1),d("className",o.dataClassContainer),c(10),d("ngClass",Oe(40,ky,o.filterSearchActive)),c(6),d("placeholder",o.isMobile?"C\xf3d. ou nome do produto":"Pesquise por nome ou c\xf3digo do produto"),c(5),d("ngIf",o.isMobile),c(1),d("ngIf",o.productResult),c(1),d("ngIf",(null==o.productResult||null==o.productResult.products?null:o.productResult.products.length)>0)("ngIfElse",e),c(1),d("ngIf",null==o.productResult||null==o.productResult.settings?null:o.productResult.settings.totalItemCount),c(4),d("ngIf",o.products&&o.products.toString().length>0),c(1),d("ngIf",o.products&&o.products.toString().length>0)("ngIfElse",n),c(3),d("ngIf",3==o.currentPage),c(1),d("ngClass",Oe(42,ju,4==o.currentPage)),c(1),d("ngIf",null!=o.customer&&null!=o.customer.address&&o.customer.address.length>0),c(1),d("ngIf",4==o.currentPage),c(1),d("ngClass",Oe(44,ju,5==o.currentPage)),c(1),d("ngIf",null!=o.customer&&null!=o.customer.address&&o.customer.address.length>0),c(2),d("ngIf",o.guestList&&o.guestList.toString().length>0||o.filtered),c(1),d("ngIf",o.guestList&&o.guestList.toString().length>0)("ngIfElse",r),c(3),d("ngIf",5==o.currentPage)}}function pZ(t,i){if(1&t&&(a(0,"span",175),h(1),l()),2&t){const e=_(2);c(1),dt(" ",e.commomService.priceMask(e.productVariationSelected.price)," ")}}function gZ(t,i){if(1&t&&(a(0,"option",260),h(1),l()),2&t){const e=i.index;Ue("value",e+1),c(1),dt("",e+1<10?"0"+(e+1):e+1," ")}}const vZ=function(){return[]};function _Z(t,i){if(1&t){const e=ve();a(0,"div",255),B(1,"div",256),a(2,"select",257),J("change",function(r){const s=M(e).$implicit,u=_(2);return L(u.productAction(1,u.productVariationSelected.idProduct,s.idProductVariation,r.target.value))}),a(3,"option",258),h(4,"Quantidade desejada"),l(),C(5,gZ,2,2,"option",259),l()()}if(2&t){const e=i.$implicit,n=_(2);c(1),d("innerHtml",n.normalizeText(e.variations),ce),c(4),d("ngForOf",Q1(2,vZ).constructor(10))}}function CZ(t,i){if(1&t){const e=ve();a(0,"div",165)(1,"div",250),B(2,"img",251),l(),a(3,"div",167)(4,"span",252),h(5),l(),a(6,"div",169),C(7,pZ,2,1,"span",170),a(8,"span",171),h(9),l()(),C(10,_Z,6,3,"div",253),a(11,"button",254),J("click",function(){M(e);const r=_();return L(r.showModalVariation=!r.showModalVariation)}),we(),a(12,"svg",108),B(13,"path",109),l(),h(14," FECHAR "),l()()()}if(2&t){const e=_();c(2),Ue("src",e.productVariationSelected.nameImage,fe),Ue("alt",e.productVariationSelected.name),c(3),de(e.productVariationSelected.name),c(2),d("ngIf",e.productVariationSelected.pricePromotion>0),c(2),dt(" ",e.commomService.priceMask(e.productVariationSelected.pricePromotion>0?e.productVariationSelected.pricePromotion:e.productVariationSelected.price)," "),c(1),d("ngForOf",e.productVariation)}}function yZ(t,i){if(1&t&&(a(0,"div",262)(1,"div",263),h(2),l(),a(3,"div",264),h(4),l()()),2&t){const e=i.$implicit;c(2),de(e.name),c(2),de(e.email)}}function bZ(t,i){if(1&t&&(a(0,"div",165),C(1,yZ,5,2,"div",261),l()),2&t){const e=_();c(1),d("ngForOf",e.productsGuest)}}const My=function(t){return{hideme:t}};let SZ=(()=>{class t{constructor(e,n,r,o,s,u,v){this.commomService=e,this.sharedDataCommom=n,this.customerService=r,this.fb=o,this.cdr=s,this.sanitizer=u,this.productService=v,this.dataClassContainer="",this.dataClassChildren="",this.dataClassStep="",this.dataClassStepItem="",this.dataEnableScroll="true",this.currentPage=1,this.addressEventList=null,this.typeList=1,this.idEventList=0,this.loading=!1,this.statusList=!0,this.today=new Date,this.deliveryAddressGuest=!1,this.nameProduct="",this.bound=[],this.showModalVariation=!1,this.showModalGuest=!1,this.guestList=[],this.filtered=!1,this.searchFilter="",this.showSendButton=!1,this.isMobile=!1,this.addressReturn=document.location.hash,this.filterSearchActive=!1,this.firstLoadFilter=!0,this.filterProducts={ofPrice:0,toPrice:0,categories:[],brands:[],variations:[]},this.pages=[],this.stepOptions=[{step:1,icon:this.sanitizer.bypassSecurityTrustHtml('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 23"><path d="M17.86 2.88H15.7V1.4a1.42 1.42 0 0 0-2.86 0v1.48h-5.7V1.4C7.14.64 6.5 0 5.7 0 4.92 0 4.3.64 4.3 1.4v1.48H2.14C.96 2.88 0 3.83 0 5.03v3.6h20v-3.6c0-1.19-.96-2.16-2.14-2.16Z"/><path opacity=".4" d="M0 8.63v12.21C0 22.04.96 23 2.14 23h15.72c1.18 0 2.14-.97 2.14-2.16V8.63H0ZM5.71 19.4c0 .4-.32.71-.71.71H3.57a.72.72 0 0 1-.71-.71v-1.44c0-.4.32-.72.71-.72H5c.4 0 .71.32.71.72v1.44Zm0-5.75c0 .4-.32.71-.71.71H3.57a.72.72 0 0 1-.71-.71v-1.44c0-.4.32-.72.71-.72H5c.4 0 .71.32.71.72v1.44Zm5.72 5.75c0 .4-.32.71-.72.71H9.3a.72.72 0 0 1-.72-.71v-1.44c0-.4.32-.72.72-.72h1.42c.4 0 .72.32.72.72v1.44Zm0-5.75c0 .4-.32.71-.72.71H9.3a.72.72 0 0 1-.72-.71v-1.44c0-.4.32-.72.72-.72h1.42c.4 0 .72.32.72.72v1.44Zm5.71 5.75c0 .4-.32.71-.71.71H15a.72.72 0 0 1-.71-.71v-1.44c0-.4.32-.72.71-.72h1.43c.4 0 .71.32.71.72v1.44Zm0-5.75c0 .4-.32.71-.71.71H15a.72.72 0 0 1-.71-.71v-1.44c0-.4.32-.72.71-.72h1.43c.4 0 .71.32.71.72v1.44Z" fill-opacity=".5"/><defs><clipPath id="a"><path fill="#fff" d="M0 0h20v23H0z"/></clipPath></defs></svg>'),title:"Dados da lista",description:"Informa\xe7\xf5es como data do evento"},{step:2,icon:this.sanitizer.bypassSecurityTrustHtml('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 29 23"><path d="M28.03 15.81h-.72v-5.15c0-.77-.3-1.49-.84-2.03L23 5.16a2.88 2.88 0 0 0-2.03-.85h-2.28V2.16c0-1.2-.97-2.16-2.16-2.16H4.93C3.74 0 2.78.97 2.78 2.16V4.3h9.44a.72.72 0 0 1 0 1.44H2.78v1.44h8a.72.72 0 0 1 0 1.44h-8v1.43h6.56a.72.72 0 0 1 0 1.44H2.78v5.03c0 .46.15.89.4 1.24a5.02 5.02 0 0 1 9.7.92h3a5.02 5.02 0 0 1 4.96-4.32 5.03 5.03 0 0 1 4.94 4.32h2.25c.4 0 .72-.33.72-.72v-1.44c0-.4-.32-.72-.72-.72Zm-3.6-4.31H18.7V7.19h2.28l3.47 3.47v.84Z"/><path opacity=".4" d="M7.9 15.81a3.6 3.6 0 1 0 0 7.19 3.6 3.6 0 0 0 0-7.19Zm12.94 0a3.6 3.6 0 1 0 0 7.19 3.6 3.6 0 0 0 0-7.19ZM10.78 7.2H2.16c-.4 0-.72.32-.72.72 0 .4.32.71.68.71h8.62c.44 0 .76-.32.76-.71 0-.4-.32
3-.72-.72-.72Zm-.72 3.6c0-.4-.32-.73-.72-.73H.72c-.4 0-.72.33-.72.72 0 .4.32.72.68.72H9.3c.44 0 .76-.32.76-.72Zm2.16-6.48H.72c-.4 0-.72.33-.72.68 0 .36.32.76.68.76h11.5c.43 0 .76-.32.76-.72 0-.4-.33-.72-.72-.72Z" fill-opacity=".4"/><defs><clipPath id="a"><path fill="#fff" d="M0 0h28.75v23H0z"/></clipPath></defs></svg>'),title:"Endere\xe7os",description:"Local de entrega dos produtos"},{step:3,icon:this.sanitizer.bypassSecurityTrustHtml('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 21 23"><path d="M3.6 7.19h1.43c.4 0 .72-.33.72-.72V5.03c0-.39-.32-.72-.72-.72H3.6c-.39 0-.72.33-.72.72v1.44c0 .4.33.72.72.72Zm1.43 8.62H3.6c-.39 0-.72.33-.72.72v1.44c0 .4.33.72.72.72h1.44c.4 0 .72-.33.72-.72v-1.44c0-.39-.32-.72-.72-.72Zm2.3-6.61a.72.72 0 0 0-1.01 0l-2 2-.58-.57a.72.72 0 1 0-1.01 1.02l1.07 1.08a.72.72 0 0 0 1.02 0l2.52-2.52a.71.71 0 0 0 0-1.01Z"/><path opacity=".4" d="M17.25 0H2.87A2.87 2.87 0 0 0 0 2.88v17.25A2.87 2.87 0 0 0 2.88 23h14.37a2.87 2.87 0 0 0 2.88-2.88V2.88A2.88 2.88 0 0 0 17.25 0ZM2.87 5.03c0-.39.33-.72.72-.72h1.44c.4 0 .72.33.72.72v1.44c0 .4-.32.72-.72.72H3.6a.72.72 0 0 1-.71-.72V5.03Zm2.88 12.94c0 .4-.32.72-.72.72H3.6a.72.72 0 0 1-.71-.72v-1.44c0-.39.32-.72.71-.72h1.44c.4 0 .72.33.72.72v1.44Zm1.59-7.76-2.52 2.52a.72.72 0 0 1-1.02 0l-1.07-1.08a.72.72 0 1 1 1.01-1.02l.57.57 2.01-2a.72.72 0 0 1 1.02 1.01Zm9.2 7.76h-7.2a.72.72 0 0 1 0-1.44h7.2a.72.72 0 0 1 0 1.44Zm0-5.75h-7.2a.72.72 0 0 1 0-1.44h7.2a.72.72 0 0 1 0 1.44Zm0-5.75h-7.2a.72.72 0 0 1 0-1.44h7.2a.72.72 0 0 1 0 1.44Z" fill-opacity=".4"/><defs><clipPath id="a"><path fill="#fff" d="M0 0h20.13v23H0z"/></clipPath></defs></svg>'),title:"Produtos",description:"Gerenciar os itens para compra"},{step:4,icon:this.sanitizer.bypassSecurityTrustHtml('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 26 23"><path d="M18.69 4.31 8.93 16.86c-.2.21-.3.57-.3.84L8.57 23 5.5 16.19 18.7 4.3Z"/><path opacity=".4" d="M22.98 1.66 20.11 20.3a1.44 1.44 0 0 1-1.98 1.11l-5.5-2.3L8.58 23l.04-5.3c0-.32.11-.63.3-.88l9.77-12.5-13.2 11.87-4.6-1.93C.37 14.06.03 13.58 0 13a1.4 1.4 0 0 1 .72-1.34L20.85.19a1.44 1.44 0 0 1 2.13 1.47Z" fill-opacity=".4"/><defs><clipPath id="a"><path fill="#fff" d="M0 0h25.55v23H0z"/></clipPath></defs></svg>'),title:"Configurar convites",description:"Divulgue a lista para seus convidados"},{step:5,icon:this.sanitizer.bypassSecurityTrustHtml('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 23 23"><path d="M7.19 7.19H4.3a2.88 2.88 0 0 0-2.87 2.87v4.31c0 .8.64 1.44 1.44 1.44v5.75c0 .8.64 1.44 1.43 1.44H7.2c.8 0 1.43-.64 1.43-1.44v-5.75c.8 0 1.44-.64 1.44-1.44v-4.3A2.88 2.88 0 0 0 7.2 7.18Zm15.78 9.14-2.16-7.58a2.17 2.17 0 0 0-2.12-1.56h-2.96c-.97 0-1.81.64-2.08 1.56l-2.16 7.58c-.1.46.25.92.73.92h2.15v4.31c0 .8.65 1.44 1.44 1.44h2.88c.8 0 1.43-.64 1.43-1.44v-4.31h2.16c.48 0 .82-.46.7-.92Z"/><path opacity=".4" d="M5.75 0a2.87 2.87 0 1 0 0 5.75 2.87 2.87 0 0 0 0-5.75Zm11.5 0a2.87 2.87 0 1 0 0 5.75 2.87 2.87 0 0 0 0-5.75Z" fill-opacity=".4"/><defs><clipPath id="a"><path fill="#fff" d="M0 0h23v23H0z"/></clipPath></defs></svg>'),title:"Lista de convidados",description:"Gerencie os convidados do eventos"}],this.isMobile=this.commomService.isDevice()}ngOnInit(){this.dataClassContainer=""!=this.dataClassContainer?"jet-container "+this.dataClassContainer:"jet-container",this.dataClassChildren=""!=this.dataClassChildren?"jet-item "+this.dataClassChildren:"jet-item",this.dataClassStep=""!=this.dataClassStep?"jet-step "+this.dataClassStep:"jet-step",this.dataClassStepItem=""!=this.dataClassStepItem?"jet-step-item "+this.dataClassStepItem:"jet-step-item",this.routeParameters(),this.minDate=new Date(this.today.setDate(this.today.getDate()+1)).toISOString().split("T")[0],this.customerService.isLogged().subscribe(e=>{this.loading=!0,e.data.authenticated&&e.data.hasPassword&&(this.customerId=e.data.idCustomer,this.obs$=this.customerService.getCustomer(this.customerId).subscribe(n=>{this.customer=n;const r=Number(this.addressReturn.replace("#address-",""));this.newAddressEventList=n.address.filter(o=>o.idAddress==r)[0],this.newAddressEventList||(this.customerAddress=n.address.filter(o=>1==o.default)[0]),this.idEventList>0?this.customerService.eventListClient({idClient:this.customerId,idEventList:this.idEventList}).subscribe(s=>{s&&(s.length||(window.location.href="/customer/eventlist/"),this.customerService.getAddressEventList(s[0].idEventList).subscribe(u=>{u&&(this.addressEventList=u),this.eventList=s[0],this.statusList=this.eventList?.status,this.loading=!1,this.buildForms(),Boolean(document.location.hash)&&(this.currentPage=2),this.searchProduct("",!0)},u=>{}))}):(this.loading=!1,this.buildForms())}))}),this.commomService.finishLoadComponent("onJetCustomerLoaded",{detail:{type:"customer",value:{name:decodeURIComponent("Gerenciar Lista de Eventos"),href:window.location.href}}})}ngAfterViewChecked(){this.cdr.detectChanges()}buildForms(){this.eventListForm=this.fb.group({eventDate:[this.eventList?.eventDate?this.convertToDate(this.eventList?.eventDate):"",[oe.required,this.minDateValidator()]],message:[this.eventList?.message,[oe.required,oe.minLength(3)]],picture:[""],invitationPicture:[""],nameGuest:["",[oe.minLength(3),oe.pattern(/^[A-z\xc0-\xff'][A-z\xc0-\xff']+\s([A-z\xc0-\xff']\s?)*[A-z\xc0-\xff'][A-z\xc0-\xff'](\s?)+$/)]],emailGuest:["",[oe.pattern(/^(([^<>()[\]\\.,;:\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,}))$/)]],invitationMessage:[this.eventList?.invitationMessage,[oe.minLength(3)]]}),1==this.typeList&&(this.eventListForm.setControl("name1",this.fb.control(this.eventList?.name1,[oe.required,oe.minLength(3),oe.pattern(/^[A-z\xc0-\xff'][A-z\xc0-\xff']+\s([A-z\xc0-\xff']\s?)*[A-z\xc0-\xff'][A-z\xc0-\xff'](\s?)+$/)])),this.eventListForm.setControl("name4",this.fb.control(this.eventList?.name4,[oe.required,oe.minLength(3),oe.pattern(/^[A-z\xc0-\xff'][A-z\xc0-\xff']+\s([A-z\xc0-\xff']\s?)*[A-z\xc0-\xff'][A-z\xc0-\xff'](\s?)+$/)]))),4==this.typeList&&(this.eventListForm.setControl("name1",this.fb.control(this.eventList?.name1,[oe.required,oe.minLength(3),oe.pattern(/^[A-z\xc0-\xff'][A-z\xc0-\xff']+\s([A-z\xc0-\xff']\s?)*[A-z\xc0-\xff'][A-z\xc0-\xff'](\s?)+$/)])),this.eventListForm.setControl("name2",this.fb.control(this.eventList?.name2,[oe.required,oe.minLength(3),oe.pattern(/^[A-z\xc0-\xff'][A-z\xc0-\xff']+\s([A-z\xc0-\xff']\s?)*[A-z\xc0-\xff'][A-z\xc0-\xff'](\s?)+$/)])),this.eventListForm.setControl("name3",this.fb.control(this.eventList?.name3,[oe.required,oe.minLength(3),oe.pattern(/^[A-z\xc0-\xff'][A-z\xc0-\xff']+\s([A-z\xc0-\xff']\s?)*[A-z\xc0-\xff'][A-z\xc0-\xff'](\s?)+$/)]))),this.eventPictureImg=this.eventList?.urlPicture,this.invitationPictureImg=this.eventList?.urlInvitationPicture}
3minDateValidator(){const e=new Date;return e.setDate(e.getDate()+1),n=>new Date(n.value)<e?{minDate:!0}:null}changeTab(e){if(0==this.idEventList&&e>1)return!1;this.currentPage=e,5==this.currentPage&&this.getGuestList(),3==this.currentPage&&this.idEventList>0&&(this.productResult||this.searchProduct("",!0),this.getProductsEventList())}moveLeft(e){this.ds.moveLeft()}moveRight(e){this.ds.moveRight()}moveTo(e){this.ds.moveTo(e)}btnCancel(){window.location.href="/customer/eventlist/"}getGuestList(){this.loading=!0,this.customerService.getEventGuestList(this.idEventList).subscribe(e=>{e&&(this.guestList=this.guestListOrigin=e.guests,this.showSendButton=this.guestListOrigin.filter(n=>!n.invitationSent).length>0,this.loading=!1)})}get eventListControll(){return this.eventListForm.controls}submitEventList(){if(this.eventListForm.controls.picture.clearValidators(),this.eventListForm.controls.invitationPicture.clearValidators(),!this.eventListForm.valid)return void this.eventListForm.markAllAsTouched();if(!this.eventPictureImg&&1==this.currentPage)return this.eventListForm.controls.picture.setErrors({required:!0}),void this.eventListForm.markAllAsTouched();if(!this.invitationPictureImg&&4==this.currentPage)return this.eventListForm.controls.invitationPicture.setErrors({required:!0}),void this.eventListForm.markAllAsTouched();this.loading=!0;let e={eventDate:this.convertToDate(this.eventListControll.eventDate.value)??void 0,creatorName:this.customer.name,idEventList:this.idEventList??void 0,idClient:this.customerId,type:this.t
3ypeList,name1:this.eventListControll.name1?.value??void 0,name2:this.eventListControll.name2?.value??void 0,name3:this.eventListControll.name3?.value??void 0,name4:this.eventListControll.name4?.value??void 0,name5:this.eventListControll.name5?.value??void 0,name6:this.eventListControll.name6?.value??void 0,email1:this.eventListControll.email1?.value??void 0,email2:this.eventListControll.email2?.value??void 0,picture:this.eventPicture,urlPicture:void 0,numberOfGuests:this.guestList?this.guestList.length:void 0,message:this.eventListControll.message?.value??void 0,invitationTemplate:void 0,dateDivugaltionList:void 0,invitationMessage:this.eventListControll.invitationMessage?.value??void 0,invitationPicture:this.invitationPicture,urlInvitationPicture:void 0,randomGifts:!1,deliveryAddressGuest:this.eventList?.deliveryAddressGuest??void 0,status:this.statusList??void 0,products:void 0,guests:void 0,acceptance:void 0};this.customerService.createUpdateEventList(e).subscribe(n=>{n&&(this.commomService.displayMessageUser("success",`Lista ${0==this.idEventList?"cadastrada":"atualizada"} com sucesso! `),0==this.idEventList&&(this.eventList=e,this.idEventList=Number(n)),!e.deliveryAddressGuest)&&this.customerService.changeAddressEventList(this.idEventList,(this.newAddressEventList?this.newAddressEventList:this.customerAddress).idAddress).subscribe(),this.currentPage<5&&(this.currentPage++,this.ds.moveRight())},n=>{this.commomService.displayMessageUser("error",n.error.error)},()=>{this.loading=!1})}routeParameters(){let e=window.location.href.replace(/#.*/,"").split("/"),n=e.pop(),r=e.pop();null!=n&&(this.idEventList=Number(n)),null!=r&&(this.typeList=Number(r))}convertToDateFormated(e){return new Date(e).toLocaleDateString()}convertToDate(e){var n=e.replace(/(\d+[/])(\d+[/])/,"$2$1");return new Date(n).toISOString().split("T")[0]}checkEventDate(e){let n=e.replace(/^(\d{2})\/(\d{2})\/(\d{4})/,"$2/$1/$3"),r=new Date(n),o=!isNaN(r.getTime());this.eventListControll.eventDate.setErrors(o&&r>new Date?null:{incorrect:!0})}changeDeliveryAddressGuest(e){this.eventList.deliveryAddressGuest=e,this.submitEventList()}btnEditAddress(){window.location.href=`/customer/address#event-${this.typeList}-${this.idEventList}`}searchProduct(e,n=!1,r=1){this.nameProduct=e,this.loading=!0,this.filterSearchActive=!1,this.productService.searchProductsFilters(e,{pageNumber:r,pageSize:10,word:e,idCategories:this.filterProducts.categories,idBrand:this.filterProducts.brands,variations:this.filterProducts.variations,initialPrice:this.filterProducts.ofPrice,finalPrice:this.filterProducts.toPrice}).subscribe(o=>{o&&(n?(this.productResult=o,this.sortCategoryTree()):this.productResult&&(this.productResult.products=o?.products,this.productResult.settings=o?.settings),this.makePagination())},o=>{this.commomService.displayMessageUser("error",o?.error?.error||o?.message),this.loading=!1},()=>{document?.getElementById("products").scrollIntoView(),this.loading=!1})}sortCategoryTree(){const e=this.productResult.filters.categories.slice().sort((n,r)=>n.level.localeCompare(r.level));this.productResult.filters.categories=e}filterSearch(){this.filterSearchActive=!this.filterSearchActive,setTimeout(()=>{this.firstLoadFilter&&(document.getElementById("select-all-category").indeterminate=!0,document.getElementById("select-all-brand").indeterminate=!0,this.productResult.filters.references.forEach(e=>{document.getElementById("select-all-reference-"+e.idReference).indeterminate=!0}),this.firstLoadFilter=!1)},200)}productAction(e,n,r=0,o){if(0!=o)if(0===e)this.bound=this.bound.filter(s=>s.idProduct!==n||s.idProductVariation!==r);else if(1===e){let s=this.bound.find(u=>u.idProduct===n&&u.idProductVariation===r);s?(o?s.qtd=o:s.qtd++,this.editQuantity(n,r,s.qtd)):this.insertUpdateProduct(1,n,r,o||1)}}insertUpdateProduct(e,n,r=0,o){this.loading=!this.showModalVariation,1==e&&this.customerService.insertProduct(this.idEventList,n,r,o).subscribe(s=>{s&&(this.bound.push({idProduct:n,idProductVariation:r,qtd:o||1}),this.commomService.displayMessageUser("success","Produto adicionado com sucesso!"),this.getProductsEventList()),this.loading=!1},s=>{this.commomService.displayMessageUser("error",s.error.error),this.loading=!1})}deleteProduct(e,n,r){this.commomService.displayMessageUser("confirm","Deseja mesmo remover este produto da sua lista?","Essa a\xe7\xe3o n\xe3o poder\xe1 ser desfeita",!1),document.addEventListener("onJetConfirm",()=>{this.loading=!0,this.customerService.deleteProduct(this.idEventList,e).subscribe(o=>{o&&(this.commomService.displayMessageUser("success","Produto exclu\xeddo com sucesso!"),this.bound=this.bound.filter(s=>s.idProduct!==n||s.idProductVariation!==r),this.getProductsEventList()),this.loading=!1},o=>{this.commomService.displayMessageUser("error",o.error.error),this.loading=!1})},{once:!0,passive:!0})}viewProductVariation(e){this.loading=!0,this.customerService.searchProductVariation(e).subscribe(n=>{n&&(this.productVariation=n,this.productVariationSelected=this.productVariation.filter(r=>r.idProductVariation==n[0].idProductVariation)[0],this.productVariationSelected.idProduct=e,this.showModalVariation=this.productVariation.length>0)},n=>{this.commomService.displayMessageUser("error",n.error.error)},()=>{this.loading=!1})}editQuantity(e,n=0,r){this.products.filter(o=>o.idProduct==e&&o.idSku==n)[0].quantity!=r&&(this.loading=!this.showModalVariation,r<=1&&(r=1),this.customerService.updateProduct(this.idEventList,e,n,r).subscribe(o=>{o&&(this.commomService.displayMessageUser("success","Quantidade desejada atualizada com sucesso!"),this.getProductsEventList()),this.loading=!1},o=>{this.commomService.displayMessageUser("error",o.error.error),this.loading=!1}))}getProductsEventList(){this.loading=!this.showModalVariation,this.customerService.getProductsEventList(this.idEventList).subscribe(e=>{e&&(this.products=e.products)},e=>{this.commomService.displayMessageUser("error",e.error.error),this.loading=!1},()=>{this.loading=!1})}viewGuests(e,n){this.loading=!0,this.customerService.getProductsGuest(this.idEventList,e,n).subscribe(r=>{r&&(this.showModalGuest=!0,this.productsGuest=r)},r=>{this.commomService.displayMessageUser("error",r.error.error),this.loading=!1},()=>{this.loading=!1})}cleanName(e){return e.split("<br>")[0]}normalizeText(e){const n=/(.+?):(.+?)(?:,|$)/g;let o,r="";for(;null!==(o=n.exec(e));)r+=`<div class="variation"><span class="name-reference">${o[1].trim()}: </span><span class="value-reference">${o[2].trim()}</span></div>`;return`<div class="variations">${r}</div>`}btnAddImage(e,n){const r=e.item(0);
3if(!r||!r.type||!["image/gif","image/png","image/jpeg","image/bmp","image/webp"].includes(r.type))return;if(r.size>1e6)return void this.commomService.displayMessageUser("error","O tamanho m\xe1ximo para imagens \xe9 de 1MB","");const s=new FileReader;s.readAsDataURL(r),s.onload=()=>{"eventPicture"==n&&(this.eventPictureImg=s.result.toString(),this.eventPicture=encodeURIComponent(s.result.toString().split(",")[1]),this.eventListForm.controls.picture.setErrors(null)),"invitationPicture"==n&&(this.invitationPictureImg=s.result.toString(),this.invitationPicture=encodeURIComponent(s.result.toString().split(",")[1]),this.eventListForm.controls.invitationPicture.setErrors(null))}}addGuestEventList(){if(!this.eventListControll.nameGuest.value)return this.eventListForm.controls.nameGuest.setErrors({required:!0}),void this.eventListForm.markAllAsTouched();if(!this.eventListControll.emailGuest.value)return this.eventListForm.controls.emailGuest.setErrors({required:!0}),void this.eventListForm.markAllAsTouched();if(this.guestList?.filter(n=>n.email==this.eventListControll.emailGuest.value).length)return void this.commomService.displayMessageUser("error","E-mail j\xe1 cadastrado");this.loading=!0;let e={idGuest:0,name:this.eventListControll.nameGuest?this.eventListControll.nameGuest.value:void 0,email:this.eventListControll.emailGuest?this.eventListControll.emailGuest.value:void 0,invitationSent:!1};this.customerService.addGuestEventList(this.idEventList,e).subscribe(n=>{this.commomService.displayMessageUser("success","Convidado cadastrado com sucesso!"),this.guestList&&this.guestList.push(e),this.showSendButton=!0,this.eventListControll.nameGuest.setValue(null),this.eventListControll.emailGuest.setValue(null)},n=>{this.commomService.displayMessageUser("error",n.error.error),this.loading=!1},()=>{this.loading=!1})}deleteGuest(e){this.loading=!0,this.customerService.deleteGuestEventList(this.idEventList,e).subscribe(n=>{this.commomService.displayMessageUser("success","Convidado removido com sucesso!")},n=>{this.commomService.displayMessageUser("error",n.error.error),this.loading=!1},()=>{this.loading=!1;var n=this.guestList.findIndex(r=>
3r.idGuest==e);n>-1&&this.guestList.splice(n,1),this.showSendButton=this.guestList.filter(r=>!r.invitationSent).length>0})}searchGuest(e){this.searchFilter=e,e.length<1?(this.filtered=!1,this.guestList=this.guestListOrigin):(this.filtered=!0,this.guestList=this.guestListOrigin.filter(n=>n.email.includes(this.searchFilter)||n.name.includes(this.searchFilter)))}sendInvitation(){this.loading=!0,this.customerService.sendInvitation(this.idEventList).subscribe(e=>{this.commomService.displayMessageUser("success","Convites enviados com sucesso!"),setTimeout(function(){this.btnCancel()},3e3)},e=>{this.commomService.displayMessageUser("error",e.error.error),this.loading=!1},()=>{this.loading=!1})}selectCheckbox(e,n){this.filterProducts[e]||(this.filterProducts[e]=[]),this.filterProducts[e].includes(n)?this.filterProducts[e].splice(this.filterProducts[e].indexOf(n),1):this.filterProducts[e].push(n),"variations"==e&&(e="reference-"+n.split(":")[0]),this.setIndeterminateCheckbox(e)}changePrices(e,n){this.filterProducts[e]=this.commomService.priceUnMask(n)}clearFilters(){this.filterProducts={ofPrice:0,toPrice:0,categories:[],brands:[],variations:[]},this.nameProduct="",document.querySelectorAll(".filter-input input").forEach(e=>e.value=""),document.querySelectorAll(".price .input input").forEach(e=>e.value=""),document.querySelectorAll(".checkbox-item input").forEach(e=>{e.checked=!1}),document.getElementById("select-all-category").indeterminate=!0,document.getElementById("select-all-brand").indeterminate=!0,this.productResult.filters.references.forEach(e=>{document.getElementById("select-all-reference-"+e.idReference).indeterminate=!0}),this.searchProduct(this.nameProduct)}selectAllCheckbox(e,n){switch(e){case"categories":n.target.checked?(this.filterProducts.categories=this.productResult.filters.categories.map(o=>o.idCategory),document.querySelectorAll(".checkbox-item input[id*=category]").forEach(o=>{o.checked=!0})):(this.filterProducts.categories=[],document.querySelectorAll(".checkbox-item input[id*=category]").forEach(o=>{o.checked=!1}));break;case"brands":n.target.checked?(this.filterProducts.brands=this.productResult.filters.brands.map(o=>o.idBrand),document.querySelectorAll(".checkbox-item input[id*=brand]").forEach(o=>{o.checked=!0})):(this.filterProducts.brands=[],document.querySelectorAll(".checkbox-item input[id*=brand]").forEach(o=>{o.checked=!1}));break;default:var r=e.split("-")[1];n.target.checked?(this.filterProducts.variations=this.filterProducts.variations.filter(o=>-1==o.indexOf(r+":")),this.productResult.filters.references.find(o=>o.idReference==r).variations.forEach(o=>{this.filterProducts.variations.push(r+":"+o.idVariation)}),document.querySelectorAll(".checkbox-item input[id*=reference-"+r+"]").forEach(o=>{o.checked=!0})):(this.filterProducts.variations=this.filterProducts.variations.filter(o=>-1==o.indexOf(r+":")),document.querySelectorAll(".checkbox-item input[id*=reference-"+r+"]").forEach(o=>{o.checked=!1}))}this.setIndeterminateCheckbox(e)}setIndeterminateCheckbox(e){switch(e){case"categories":var r=!1;document.querySelectorAll(".checkbox-item input[id*=category]").forEach(o=>{o.checked||(r=!0)}),document.querySelector("#select-all-category").indeterminate=!!r;break;case"brands":r=!1,document.querySelectorAll(".checkbox-item input[id*=brand]").forEach(o=>{o.checked||(r=!0)}),document.querySelector("#select-all-brand").indeterminate=!!r;break;default:var n=e.split("-")[1];r=!1,document.querySelectorAll(".checkbox-item input[id*=reference-"+n+"]").forEach(o=>{o.checked||(r=!0)}),document.querySelector("#select-all-reference-"+n).indeterminate=!!r}}makePagination(){if(this.pages=[],this.productResult.settings.pageCount>1){for(let e=1;e<=this.productResult.settings.pageCount;e++)this.pages.push(e);this.pages=this.pages.filter(e=>Number(e)>this.productResult.settings.pageNumber-2&&Number(e)<=this.productResult.settings.pageNumber+2)}}static#e=this.\u0275fac=function(n){return new(n||t)($(qt),$(yn),$(Ci),$(ao),$(Gl),$(gl),$(Ou))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-create-event-list"]],viewQuery:function(n,r){if(1&n&&Tu(gW,5,Ly),2&n){let o;_d(o=Cd())&&(r.ds=o.first)}},inputs:{dataClassContainer:["data-class-container","dataClassContainer"],dataClassChildren:["data-class-children","dataClassChildren"],dataClassStep:["data-class-step","dataClassStep"],dataClassStepItem:["data-class-step-item","dataClassStepItem"],dataEnableScroll:["data-enable-scroll","dataEnableScroll"]},decls:28,vars:11,consts:[[1,"jet-create-event-list"],[4,"ngIf"],[3,"className",4,"ngIf"],[3,"formGroup","ngClass","ngSubmit","keydown.enter",4,"ngIf"],[1,"jet-modal","modal
3-product-variation",3,"ngClass"],[1,"jet-modal-content","modal-content"],[1,"jet-modal-close","modal-close",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 352 512",1,"icon"],["fill","currentColor","d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z",1,""],[1,"jet-modal-title"],["class","content",4,"ngIf"],[1,"jet-modal","modal-guest",3,"ngClass"],[3,"className","scrollbar-hidden",4,"ngIf"],["type","button",1,"drag-button","prev",3,"disabled","click"],["type","button",1,"drag-button","next",3,"disabled","click"],[3,"className","scrollbar-hidden"],["nav",""],["drag-scroll-item","",3,"className","ngClass","click",4,"ngFor","ngForOf"],["drag-scroll-item","",3,"className","ngClass","click"],[1,"step-container"],[3,"innerHTML"],[1,"step-info"],[3,"className"],[3,"formGroup","ngClass","ngSubmit","keydown.enter"],[1,"tab-item","create",3,"ngClass"],["class","container-form",4,"ngIf"],["class","actions",4,"ngIf"],[1,"tab-item","address",3,"ngClass"],[1,"divider-item"],[1,"container-form"],["class","status",4,"ngIf"],[1,"delivery-place"],[1,"delivery-description"],["id","products",1,"tab-item","products",3,"ngClass"],[1,"tab-info"],[1,"container-field","search"],[1,"content","search-input"],[1,"content","filter-search",3,"click"],["type","button",1,"btn-filter",3,"ngClass"],["xmlns","http://www.w3.org/2000/svg","width","13","height","7","viewBox","0 0 13 7","fill","none"],["d","M6.50376 6.5625C6.26388 6.5625 6.02388 6.47095 5.84106 6.28784L1.15356 1.60034C0.787354 1.23413 0.787354 0.640869 1.15356 0.274658C1.51978 -0.0915527 2.11304 -0.0915527 2.47925 0.274658L6.50376 4.30078L10.5292 0.27539C10.8954 -0.0908205 11.4886 -0.0908205 11.8548 0.27539C12.221 0.641601 12.221 1.23486 11.8548 1.60107L7.16733 6.28857C6.98423 6.47168 6.74399 6.5625 6.50376 6.5625Z","fill","black"],[1,"content","filter-input"],["maxlength","50",3,"placeholder","keyup.enter"],["nameProduct",""],["type","button",1,"btn-search",3,"click"],["class","search-icon",4,"ngIf"],["class","content filter-result",3,"ngClass",4,"ngIf"],["class","content search-result",4,"ngIf","ngIfElse"],["class","pagination",4,"ngIf"],["noProducts",""],[1,"products-list"],["class","tab-info",4,"ngIf"],["class","list-container",4,"ngIf","ngIfElse"],["noProductsList",""],[1,"tab-item",3,"ngClass"],[1,"tab-item","guests",3,"ngClass"],[1,"guest-list"],["noGuests",""],[1,"container-field","checkbox"],[1,"input"],["type","checkbox","id","statusList","name","statusList",3,"checked","change"],["for","statusList"],["class","container-field creator",4,"ngIf"],[1,"container-field","date",3,"ngClass"],["for","eventDate"],["placeholder","00/00/0000","formControlName","eventDate","type","date","maxlength","10",3,"min","value"],["eventDate",""],["class","invalid-feedback",4,"ngIf"],[1,"container-field","message",3,"ngClass"],["for","message"],["placeholder","Digite aqui sua mensagem","formControlName","message","maxlength","250","cols","30","rows","10"],["message",""],[1,"length"],[1,"container-field","picture",3,"ngClass"],["for","picture"],["xmlns","http://www.w3.org/2000/svg","width","80","height","64","viewBox","0 0 80 64","fill","none",3,"click"],["d","M26.8749 31.875L37.8749 20.875C38.1999 20.5625 38.9374 20 39.9999 20C41.0624 20 41.7999 20.5584 42.1211 20.8789L53.1211 31.8789C54.293 33.0508 54.293 34.9489 53.1211 36.1214C51.9493 37.2939 50.0511 37.2933 48.8786 36.1214L42.9999 30.2375V49C42.9999 50.6562 41.6561 52 39.9999 52C38.3436 52 36.9999 50.6562 36.9999 49V30.2375L31.0124 36.0125C29.8405 37.1844 27.9424 37.1844 26.7699 36.0125C25.5974 34.8406 25.7124 33.05 26.8749 31.875Z","fill","black"],["opacity","0.4","d","M67.2 28.325C67.7125 26.9875 68 25.525 68 24C68 17.375 62.625 12 56 12C53.5387 12 51.2388 12.75 49.3363 14.025C45.875 8.025 39.4125 4 32 4C20.95 4 12 12.95 12 24C12 24.3379 12.0137 24.6806 12.0254 25.0166C5.025 27.475 0 34.15 0 42C0 51.9375 8.0625 60 18 60H64C72.8363 60 80 52.8375 80 44C80 36.2625 74.5 29.8 67.2 28.325ZM26.875 31.875L37.875 20.875C38.2 20.5625 38.9375 20 40 20C41.0625 20 41.8 20.5584 42.1213 20.8789L53.1213 31.8789C54.2931 33.0508 54.2931 34.9489 53.1213 36.1214C51.9494 37.2939 50.0513 37.2933 48.8787 36.1214L43 30.2375V49C43 50.6562 41.6562 52 40 52C38.3438 52 37 50.6562 37 49V30.2375L31.0125 36.0125C29.8406 37.1844 27.9425 37.1844 26.77 36.0125C25.5975 34.8406 25.7125 33.05 26.875 31.875Z","fill","black","fill-opacity","0.4"],["type","file","accept","image/gif, image/png, image/jpeg, image/bmp, image/webp",1,"btn-add",3,"change"],["filePicture",""],["class","image-preview",3,"click",4,"ngIf"],[1,"container-field","creator"],["placeholder","Jos\xe9 da Silva","type","text","disabled","",3,"value"],[1,"invalid-feedback"],[1,"container-field","name1",3,"ngClass"],["for","name1"],["placeholder","Nome do noivo","formControlName","name1","maxlength","50"],["name1",""],[1,"container-field","name4",3,"ngClass"],["for","name4"],["placeholder","Nome da noiva","formControlName","name4","maxlength","50"],["name4",""],["placeholder","Nome do beb\xea","formControlName","name1","maxlength","50"],[1,"container-field","name2",3,"ngClass"],["for","name2"],["placeholder","Nome do pai","formControlName","name2","maxlength","50"],["name2",""],[1,"container-field","name3",3,"ngClass"],["for","name3"],["placeholder","Nome da m\xe3e","formControlName","name3","maxlength","50"],["name3",""],[1,"image-preview",3,"click"],[3,"src"],[1,"actions"],["type","button",1,"btn-cancel",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","13","height","13","viewBox","0 0 13 13","fill","none"],["d","M12.8081 12.8081C12.5
3541 13.0621 12.1431 13.0621 11.8889 12.8081L6.49989 7.41789L1.10971 12.8081C0.855717 13.0621 0.444771 13.0621 0.190494 12.8081C-0.0634982 12.5541 -0.0634982 12.1431 0.190494 11.8889L5.5819 6.49989L0.191307 1.10971C-0.0626858 0.855717 -0.0626858 0.444771 0.191307 0.190494C0.445299 -0.0634982 0.856245 -0.0634982 1.11052 0.190494L6.49989 5.5819L11.8901 0.191713C12.1441 -0.0622796 12.555 -0.0622796 12.8093 0.191713C13.0633 0.445706 13.0633 0.856651 12.8093 1.11093L7.41789 6.49989L12.8081 11.8901C13.064 12.1419 13.064 12.5562 12.8081 12.8081Z"],["type","submit",1,"btn-change",3,"ngClass","disabled"],["xmlns","http://www.w3.org/2000/svg","width","22","height","15","viewBox","0 0 22 15"],["d","M21.3843 1.87687L8.6316 14.6296C8.45344 14.8922 8.16744 15 7.87675 15C7.58606 15 7.301 14.8901 7.08111 14.6704L0.329661 7.9189C-0.109887 7.47935 -0.109887 6.7674 0.329661 6.32762C0.769208 5.88784 1.48116 5.88807 1.92094 6.32762L7.87675 12.2854L19.8324 0.329661C20.272 -0.109887 20.9839 -0.109887 21.4237 0.329661C21.8635 0.769208 21.8626 1.47835 21.3843 1.87687Z"],[4,"ngIf","ngIfElse"],["deliveryGuest",""],[1,"status"],[1,"address-container"],["class","address-info",4,"ngIf"],["type","button",1,"btn-edit-add",3,"ngClass","click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","viewBox","0 0 16 16","fill","none"],["d","M15.4127 1.75812L14.2405 0.585938C13.8502 0.195375 13.3377 0 12.8283 0C12.3164 0 11.8046 0.195312 11.4139 0.585938L0.970183 11.0031C0.900371 11.0729 0.852808 11.1618 0.833402 11.2586L0.0102771 15.3743C-0.0530354 15.6906 0.192558 16 0.498621 16C0.531402 16 0.564777 15.9968 0.59859 15.99L4.71421 15.1669C4.81103 15.1475 4.89987 15.1 4.96971 15.0302L15.4158 4.58437C16.1971 3.80312 16.1939 2.53937 15.4127 1.75812ZM3.50018 9.9125L9.85331 3.55938L12.4396 6.14563L6.08456 12.5H3.50018V9.9125ZM4.36893 14.2156L1.13768 14.8622L1.78393 11.6309L2.50018 10.9125V13.5H5.08581L4.36893 14.2156ZM14.7096 3.875L13.1752 5.4375L10.5889 2.85125L12.1486 1.29156C12.3096 1.10406 12.5596 1 12.8283 1C13.0971 1 13.3464 1.104 13.5352 1.29291L14.7064 2.46531C15.0971 2.855 15.0971 3.4875 14.7096 3.875Z"],[1,"address-info"],[1,"address-title"],[1,"name"],[1,"address"],[1,"neighbourhood"],[1,"city"],[1,"zipcode"],["type","button",1,"btn-change",3,"ngClass","click"],["type","button",1,"btn-back",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","15","height","20","viewBox","0 0 256 512"],["d","M166.5 424.5l-143.1-152c-4.375-4.625-6.562-10.56-6.562-16.5c0-5.938 2.188-11.88 6.562-16.5l143.1-152c9.125-9.625 24.31-10.03 33.93-.9375c9.688 9.125 10.03 24.38 .9375 33.94l-128.4 135.5l128.4 135.5c9.094 9.562 8.75 24.75-.9375 33.94C190.9 434.5 175.7 434.1 166.5 424.5z"],["type","submit",1,"btn-next",3,"ngClass","click"],["d","M89.45 87.5l143.1 152c4.375 4.625 6.562 10.56 6.562 16.5c0 5.937-2.188 11.87-6.562 16.5l-143.1 152C80.33 434.1 65.14 434.5 55.52 425.4c-9.688-9.125-10.03-24.38-.9375-33.94l128.4-135.5l-128.4-135.5C45.49 110.9 45.83 95.75 55.52 86.56C65.14 77.47 80.33 77.87 89.45 87.5z"],[1,"search-icon"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["fill","currentColor","d","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"],[1,"content","filter-result",3,"ngClass"],[1,"item","price"],["for","price-off"],["type","input","placeholder","0,00","id","price-off",3,"keyup","blur"],["type","input","placeholder","0,00","id","price-to",3,"keyup","blur"],[1,"content","row"],[1,"item","category"],["for","category"],[1,"checkbox-group"],[1,"checkbox-item"],["type","checkbox","id","select-all-category","name","category",3,"change"],["for","select-all-category"],["class","checkbox-item",4,"ngFor","ngForOf"],[1,"item","brand"],["for","brand"],["type","checkbox","id","select-all-brand","name","brand",3,"change"],["for","select-all-brand"],[1,"action"],["type","button",1,"clear-filters",3,"click"],["type","button",1,"search-products",3,"click"],["type","checkbox","name","category",3,"id","value","click"],[3,"for"],["type","checkbox","name","brand",3,"id","value","click"],["class","item reference",4,"ngFor","ngForOf"],[1,"item","reference"],["for","reference"],["type","checkbox",3,"id","name","change"],["type","checkbox",3,"id","name","value","click"],[1,"content","search-result"],["class","item",4,"ngFor","ngForOf"],[1,"item"],[1,"content"],["onerror","this.src='./assets/no-image.png'","jet-image-size","",3,"alt","src"],[1,"info"],["target","_blank",1,"product-name","notranslate",3,"href","title"],[1,"product-values"],["class","old-price",4,"ngIf"],[1,"best-price"],["class","sold",4,"ngIf"],["class","btn-add","type","button",3,"click",4,"ngIf"],["class","btn-select","type","button",3,"click",4,"ngIf"],[1,"old-price"],[1,"sold"],["type","button",1,"btn-add",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","17","viewBox","0 0 16 17","fill","none"],["d","M16 8.27273C16 8.97631 15.4488 9.54585 14.7692 9.54585H9.23077V15.2731C9.23077 15.9767 8.67962 16.5455 8 16.5455C7.32038 16.5455 6.76923 15.9767 6.76923 15.2731V9.54585H1.23077C0.551154 9.54585 0 8.97631 0 8.27273C0 7.56915 0.551154 7.0004 1.23077 7.0004H6.76923V1.27313C6.76923 0.569546 7.32038 0 8 0C8.67962 0 9.23077 0.569546 9.23077 1.27313V7.0004H14.7692C15.45 7 16 7.56875 16 8.27273Z","fill","black"],["type","button",1,"btn-select",3,"click"],[1,"pagination"],[1,"total"],["class","pages",4,"ngIf"],[1,"pages"],["type","button",1,"first",3,"ngClass","disabled","click"],["xmlns","http://www.w3.org/2000/svg","width","12","height","12","viewBox","0 0 12 12","fill","none"],["d","M-2.4587e-07 5.62485C-2.35385e-07 5.38497 0.0915525 5.14497 0.274658 4.962
316L4.96216 0.274658C5.32837 -0.0915528 5.92163 -0.0915528 6.28784 0.274658C6.65405 0.640869 6.65405 1.23413 6.28784 1.60034L2.26172 5.62485L6.28711 9.65024C6.65332 10.0165 6.65332 10.6097 6.28711 10.9759C5.9209 11.3421 5.32764 11.3421 4.96143 10.9759L0.273926 6.28843C0.09082 6.10532 -2.56371e-07 5.86509 -2.4587e-07 5.62485Z","fill","#999999"],["d","M5 5.62485C5 5.38497 5.09155 5.14497 5.27466 4.96216L9.96216 0.274658C10.3284 -0.0915528 10.9216 -0.0915528 11.2878 0.274658C11.6541 0.640869 11.6541 1.23413 11.2878 1.60034L7.26172 5.62485L11.2871 9.65024C11.6533 10.0165 11.6533 10.6097 11.2871 10.9759C10.9209 11.3421 10.3276 11.3421 9.96143 10.9759L5.27393 6.28843C5.09082 6.10532 5 5.86509 5 5.62485Z","fill","#999999"],["type","button",1,"prev",3,"ngClass","disabled","click"],["xmlns","http://www.w3.org/2000/svg","width","7","height","12","viewBox","0 0 7 12","fill","none"],["d","M0.4375 5.62485C0.4375 5.38497 0.529053 5.14497 0.712158 4.96216L5.39966 0.274658C5.76587 -0.0915528 6.35913 -0.0915528 6.72534 0.274658C7.09155 0.640869 7.09155 1.23413 6.72534 1.60034L2.69922 5.62485L6.72461 9.65024C7.09082 10.0165 7.09082 10.6097 6.72461 10.9759C6.3584 11.3421 5.76514 11.3421 5.39893 10.9759L0.711426 6.28843C0.52832 6.10532 0.4375 5.86509 0.4375 5.62485Z","fill","#999999"],[1,"numbers"],["type","button",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button",1,"next",3,"ngClass","disabled","click"],["d","M6.5625 5.62576C6.5625 5.86564 6.47095 6.10564 6.28784 6.28845L1.60034 10.976C1.23413 11.3422 0.640869 11.3422 0.274658 10.976C-0.0915527 10.6097 -0.0915527 10.0165 0.274658 9.65027L4.30078 5.62576L0.275391 1.60037C-0.0908204 1.23416 -0.0908204 0.640894 0.275391 0.274683C0.641602 -0.0915279 1.23486 -0.0915279 1.60107 0.274683L6.28857 4.96218C6.47168 5.14529 6.5625 5.38552 6.5625 5.62576Z","fill","black"],["type","button",1,"last",3,"ngClass","disabled","click"],["d","M11.5625 5.62576C11.5625 5.86564 11.4709 6.10564 11.2878 6.28845L6.60034 10.976C6.23413 11.3422 5.64087 11.3422 5.27466 10.976C4.90845 10.6097 4.90845 10.0165 5.27466 9.65027L9.30078 5.62576L5.27539 1.60037C4.90918 1.23416 4.90918 0.640894 5.27539 0.274683C5.6416 -0.0915279 6.23486 -0.0915279 6.60107 0.274683L11.2886 4.96218C11.4717 5.14529 11.5625 5.38552 11.5625 5.62576Z","fill","black"],["type","button",3,"ngClass","click"],[1,"no-results"],[1,"list-container"],[1,"list","header"],[1,"items"],[1,"list","body"],["class","items",4,"ngFor","ngForOf"],["onerror","this.src='./assets/no-image.png'",3,"src","alt"],["class","product-variations",3,"innerHtml",4,"ngIf"],[1,"product-quantity"],["type","button",1,"btn-minus",3,"click"],["type","tel",1,"quantity",3,"value","blur"],["type","button",1,"btn-plus",3,"click"],[1,"product-view"],[1,"quantity"],["type","button",1,"btn-view",3,"disabled","click"],["xmlns","http://www.w3.org/2000/svg","width","13","height","10","viewBox","0 0 13 10","fill","none"],["id","Vector","d","M12.779 4.60045C11.5692 1.86384 9.17188 0 6.42857 0C3.68527 0 1.28772 1.86607 0.077433 4.60045C0.0348884 4.71875 0 4.88839 0 5C0 5.11109 0.0348661 5.28125 0.077433 5.38013C1.28839 8.13616 3.68527 10 6.42857 10C9.17188 10 11.5692 8.13437 12.779 5.39955C12.8214 5.28125 12.8571 5.09152 12.8571 5C12.8571 4.88839 12.8214 4.71875 12.779 4.60045ZM6.42857 8.92857C4.20804 8.92857 2.16071 7.42188 1.08036 5.02009C2.1654 2.57589 4.20982 1.07143 6.42857 1.07143C8.64911 1.07143 10.6964 2.57813 11.7768 4.97991C10.6719 7.42411 8.64732 8.92857 6.42857 8.92857ZM6.42857 2.14286C4.85045 2.14286 3.57143 3.42188 3.57143 5C3.57143 6.57813 4.85112 7.85714 6.42857 7.85714C8.00536 7.85714 9.28571 6.57768 9.28571 5.00223C9.28571 3.42411 8.0067 2.14286 6.42857 2.14286ZM6.42857 6.78571C5.44397 6.78571 4.64286 5.9846 4.64286 5C4.64286 4.9833 4.6473 4.96783 4.64778 4.95125C4.76116 4.97991 4.87723 5 5 5C5.78906 5 6.42857 4.36049 6.42857 3.57143C6.42857 3.44911 6.40904 3.33214 6.37982 3.2192C6.39732 3.21875 6.41295 3.21429 6.42857 3.21429C7.41317 3.21429 8.21429 4.0154 8.21429 5.00112C8.21429 5.98437 7.41295 6.78571 6.42857 6.78571Z"],["type","button",1,"btn-remove",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","22","height","25","viewBox","0 0 22 25","fill","none"],["id","Vector","d","M21.0938 3.125H16.4062L14.7642 0.939941C14.3262 0.3479 13.6279 0 12.8906 0H8.98438C8.24707 0 7.54883 0.3479 7.
310938 0.939941L5.46875 3.125H0.78125C0.351611 3.125 0 3.47656 0 3.90625C0 4.33589 0.351611 4.6875 0.78125 4.6875H21.0938C21.5235 4.6875 21.875 4.33589 21.875 3.90625C21.875 3.47656 21.5234 3.125 21.0938 3.125ZM7.42188 3.125L8.36182 1.87402C8.51074 1.67871 8.74023 1.5625 8.98438 1.5625H12.8906C13.1348 1.5625 13.3667 1.67847 13.5132 1.87378L14.4531 3.125H7.42188ZM19.5312 6.25C19.1016 6.25 18.75 6.60156 18.75 7.03125V21.0938C18.75 22.3862 17.6987 23.4375 16.4062 23.4375H5.46875C4.17627 23.4375 3.125 22.3877 3.125 21.0938V7.03125C3.125 6.60156 2.77539 6.25 2.34375 6.25C1.91211 6.25 1.5625 6.60156 1.5625 7.03125V21.0938C1.5625 23.2471 3.31494 25 5.46875 25H16.4062C18.5601 25 20.3125 23.2476 20.3125 21.0938V7.03125C20.3125 6.60156 19.9609 6.25 19.5312 6.25ZM7.03125 20.3125V9.375C7.03125 8.94316 6.68184 8.59375 6.25 8.59375C5.81816 8.59375 5.46875 8.94531 5.46875 9.375V20.3125C5.46875 20.7443 5.81816 21.0938 6.25 21.0938C6.68184 21.0938 7.03125 20.7422 7.03125 20.3125ZM11.7188 20.3125V9.375C11.7188 8.94316 11.3693 8.59375 10.9375 8.59375C10.5057 8.59375 10.1562 8.94531 10.1562 9.375V20.3125C10.1562 20.7443 10.5057 21.0938 10.9375 21.0938C11.3693 21.0938 11.7188 20.7422 11.7188 20.3125ZM16.4062 20.3125V9.375C16.4062 8.94316 16.0568 8.59375 15.625 8.59375C15.1932 8.59375 14.8438 8.94531 14.8438 9.375V20.3125C14.8438 20.7443 15.1932 21.0938 15.625 21.0938C16.0568 21.0938 16.4062 20.7422 16.4062 20.3125Z","fill","black"],[1,"product-variations",3,"innerHtml"],["for","invitationMessage"],["placeholder","Digite aqui sua mensagem","formControlName","invitationMessage","maxlength","250","cols","30","rows","10"],["invitationMessage",""],["for","invitationPicture"],["fileInvitation",""],[1,"container-field","nameGuest",3,"ngClass"],["for","nameGuest"],["placeholder","Nome do convidado","formControlName","nameGuest","maxlength","50"],["nameGuest",""],[1,"container-field","emailGuest",3,"ngClass"],["for","emailGuest"],["placeholder","E-mail do convidado","formControlName","emailGuest","maxlength","50"],["emailGuest",""],["type","button",1,"btn-change",3,"ngClass","disabled","click"],["d","M16 8.27273C16 8.97631 15.4488 9.54585 14.7692 9.54585H9.23077V15.2731C9.23077 15.9767 8.67962 16.5455 8 16.5455C7.32038 16.5455 6.76923 15.9767 6.76923 15.2731V9.54585H1.23077C0.551154 9.54585 0 8.97631 0 8.27273C0 7.56915 0.551154 7.0004 1.23077 7.0004H6.76923V1.27313C6.76923 0.569546 7.32038 0 8 0C8.67962 0 9.23077 0.569546 9.23077 1.27313V7.0004H14.7692C15.45 7 16 7.56875 16 8.27273Z"],[1,"container-field"],["for","searchFilter"],["maxlength","50",3,"placeholder","input"],["searchFilter",""],[1,"content","filter-button"],[1,"item","name"],[1,"item","mail"],[1,"item","invitation"],[1,"item","action"],[1,"item","invitation",3,"ngClass"],["class","no-results",4,"ngIf"],["class","btn-send","type","button",3,"ngClass","click",4,"ngIf"],["type","button",1,"btn-send",3,"ngClass","click"],["xmlns","http://www.w3.org/2000/svg","width","20","height","15","viewBox","0 0 20 15"],["d","M17.5 0H2.5C1.11914 0 0 1.11914 0 2.5V12.5C0 13.8809 1.11914 15 2.5 15H17.5C18.8809 15 20 13.8809 20 12.5V2.5C20 1.11914 18.8789 0 17.5 0ZM2.5 1.25H17.5C18.1891 1.25 18.75 1.81094 18.75 2.5V3.90664L11.125 9.62539C10.4609 10.1223 9.53789 10.1223 8.87383 9.62539L1.25 3.90625V2.5C1.25 1.8125 1.81094 1.25 2.5 1.25ZM18.75 12.5C18.75 13.1891 18.1891 13.75 17.5 13.75H2.5C1.81094 13.75 1.25 13.1891 1.25 12.5V5.43359L8.125 10.625C8.67656 11.0395 9.33828 11.2508 10 11.2508C10.6617 11.2508 11.3242 11.0391 11.875 10.625L18.75 5.43359V12.5Z","fill","black"],[1,"image"],[3,"src","alt"],[1,"product-name"],["class","product-variations",4,"ngFor","ngForOf"],["type","button",1,"btn-save",3,"click"],[1,"product-variations"],[1,"variation",3,"innerHtml"],[3,"change"],["selected","","value","0"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["class","guest",4,"ngFor","ngForOf"],[1,"guest"],[1,"guest-name"],[1,"guest-email"]],template:function(n,r){1&n&&(a(0,"div",0),C(1,CW,6,3,"ng-container",1),C(2,bW,2,2,"div",2),C(3,fZ,62,46,"form",3),a(4,"div",4)(5,"div",5)(6,"button",6),J("click",function(){return r.showModalVariation=!r.showModalVariation}),we(),a(7,"svg",7),B(8,"path",8),l(),Pe(),a(9,"span"),h(10,"Fechar"),l()(),a(11,"div",9)(12,"strong"),h(13,"Selecione a varia\xe7\xe3o desejada"),l(),a(14,"p"),h(15,"Selecione abaixo a varia\xe7\xe3o e a quantidade desejada do produto para adicion\xe1-lo \xe0 sua lista"),l()(),C(16,CZ,15,6,"div",10),l()(),a(17,"div",11)(18,"div",5)(19,"button",6),J("click",function(){return r.showModalGuest=!r.showModalGuest}),we(),a(20,"svg",7),B(21,"path",8),l(),Pe(),a(22,"span"),h(23,"Fechar"),l()(),a(24,"div",9)(25,"strong"),h(26,"Convidados que compraram o produto"),l()(),C(27,bZ,2,1,"div",10),l()()()),2&n&&(c(1),d("ngIf","false"!=r.dataEnableScroll),c(1),d("ngIf","false"==r.dataEnableScroll),c(1),d("ngIf",r.eventListForm),c(1),d("ngClass",Oe(7,My,!r.showModalVariation)),c(12),d("ngIf",r.productVariation&&r.productVariationSelected),c(1),d("ngClass",Oe(9,My,!r.showModalGuest)),c(10),d("ngIf",r.productsGuest))},dependencies:[ui,ei,en,bs,Gr,Ws,Js,mr,fr,Ur,Zo,Ir,Mr,Ly,Ey]})}return t})();function wZ(t,i){1&t&&B(0,"div",2),2&t&&d("innerHtml",_().script,ce)}let IZ=(()=>{class t{constructor(e,n,r){this.orderService=e,this.sanitizer=n,this.dataReportName="orderReportB2BCustom",this.commomService=r}ngOnInit(){"orderReportB2BCustom"===this.dataReportName?this.fncOrderReportB2BCustom():document.location.href="/customer"}fncOrderReportB2BCustom(){let e=!0;if(localStorage.getItem("logged")){let n=JSON.parse(localStorage.getItem("logged"));n&&"B2B"==n.type.toUpperCase()&&(e=!1,this.orderService.returnUrlCustomReport().subscribe(r=>{r&&r.result&&r.result.url&&(this.urlIframe=r.result.url,this.script=this.sanitizer.bypassSecurityTrustHtml(`<iframe id="iFrameReport" src="${this.urlIframe}" style="border:0;height:100%;width:100%"></iframe>`),this.commomService.finishLoadComponent("onJetCustomerLoaded",{detail:{type:"customer",value:{name:decodeURIComponent("Relat\xf3rio de Vendas"),href:window.location.href}}}))},r=>{document.location.href="/customer"}))}e&&(document.location.href="/customer")}static#e=this.\u0275fac=function(n){return new(n||t)($(Wh),$(gl),$(qt))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-order-custom-report"]],inputs:{dataReportName:["data-report-name","dataReportName"]},decls:2,vars:1,consts:[[1,"jet-order-custom-report"],["jetRunScripts","",3,"innerHtml",4,"ngIf"],["jetRunScripts","",3,"innerHtml"]],template:function(n,r){1&n&&(a(0,"div",0),C(1,wZ,1,1,"div",1),l()),2&n&&(c(1),d("ngIf",null!=r.urlIframe))},dependencies:[en,tv],encapsulation:2})}return t})();function xZ(t,i){if(1&t){const e=ve();a(0,"div",6)(1,"div",1)(2,"input",7,8),J("blur",function(){M(e);const r=Wt(3);return L(_().recurrentSearch(r.value))})("keyup.enter",function(){M(e);const r=Wt(3);return L(_().recurrentSearch(r.value))}),l()()()}if(2&t){const e=_();c(1),d("className",e.dataClassInput)}}function DZ(t,i){if(1&t){const e=ve();
3a(0,"tr")(1,"td",11),h(2),l(),a(3,"td",12),h(4),l(),a(5,"td",13),h(6),l(),a(7,"td",14),h(8),l(),a(9,"td",15)(10,"b"),h(11),l()(),a(12,"td",16)(13,"div",17),J("click",function(){const o=M(e).$implicit;return L(_(2).btnPrintRecurrent(o.idRecurrentClient))}),we(),a(14,"svg",18),B(15,"path",19),l()(),Pe(),a(16,"div",20),J("click",function(){const o=M(e).$implicit;return L(_(2).goToDetails(o.idRecurrentClient))}),we(),a(17,"svg",21),B(18,"path",22),l()()()()}if(2&t){const e=i.$implicit,n=_(2);c(2),de(e.numberSignature),c(2),de(n.formatDate(e.dateRecurrent)),c(2),de(n.commomService.priceMask(e.total)),c(2),de(e.namePaymentMethodGateway),c(1),d("ngClass",e.status?"text-green":"text-red"),c(2),de(1==e.status?"Ativa":"Cancelada"),c(2),d("className",n.dataClassButton+" btn-print"),c(3),d("className",n.dataClassButton+" btn-preview")}}function PZ(t,i){if(1&t&&(a(0,"div",9)(1,"table",1)(2,"thead")(3,"tr")(4,"th"),h(5,"C\xf3digo do plano"),l(),a(6,"th"),h(7,"Ades\xe3o"),l(),a(8,"th"),h(9,"Total"),l(),a(10,"th"),h(11,"Pagamento"),l(),a(12,"th"),h(13,"Status"),l(),B(14,"th"),l()(),a(15,"tbody"),C(16,DZ,19,8,"tr",10),l()()()),2&t){const e=_();c(1),d("className",e.dataClassTable),c(15),d("ngForOf",e.recurrentList.recurrentPurchaseSimple)}}function TZ(t,i){1&t&&(a(0,"div",1)(1,"div",23),h(2,"Nenhuma Assinatura encontrada!"),l()()),2&t&&d("className",_().dataClassContainer+" no-recurrent")}const EZ=function(t){return{active:t}};function LZ(t,i){if(1&t){const e=ve();a(0,"button",32),J("click",function(){const o=M(e).$implicit;return L(_(2).changePage(o))}),a(1,"span"),h(2),l()()}if(2&t){const e=i.$implicit,n=_(2);d("ngClass",Oe(2,EZ,e==n.pagerSettings.pageNumber)),c(2),de(e)}}function kZ(t,i){if(1&t){const e=ve();a(0,"div",24)(1,"div",25)(2,"div",26)(3,"button",27),J("click",function(){return M(e),L(_().changePage(1))}),h(4,"<<"),l(),a(5,"button",28),J("click",function(){M(e);const r=_();return L(r.changePage(r.pagerSettings.pageNumber-1))}),h(6,"<"),l(),C(7,LZ,3,4,"button",29),a(8,"button",30),J("click",function(){M(e);const r=_();return L(r.changePage(r.pagerSettings.pageNumber+1))}),h(9,">"),l(),a(10,"button",31),J("click",function(){M(e);const r=_();return L(r.changePage(r.pagerSettings.pageCount))}),h(11,">>"),l()()()()}if(2&t){const e=_();c(3),d("disabled",e.pagerSettings.pageNumber<=1),c(2),d("value",e.pagerSettings.pageNumber-1)("disabled",e.pagerSettings.pageNumber<=1),c(2),d("ngForOf",e.showPage()),c(1),d("value",e.pagerSettings.pageNumber+1)("disabled",e.pagerSettings.pageNumber==e.pagerSettings.pageCount),c(2),d("value",e.pagerSettings.pageCount)("disabled",e.pagerSettings.pageNumber==e.pagerSettings.pageCount)}}let MZ=(()=>{class t{constructor(e,n,r){this.orderService=e,this.commomService=n,this.sharedDataCommom=r,this.dataClassContainer="",this.dataClassButton="",this.dataClassTable="",this.dataClassInput="",this.pagerSettings={path:window.location.pathname,pageNumber:1,pageSize:10,pageCount:0,totalItems:0},this.searchTerm=""}ngOnInit(){this.dataClassContainer=""!=this.dataClassContainer?"jet-container "+this.dataClassContainer:"jet-container",this.dataClassInput=""!=this.dataClassInput?"jet-input "+this.dataClassInput:"jet-input",this.dataClassButton=""!=this.dataClassButton?"jet-button "+this.dataClassButton:"jet-button",this.sharedDataCommom.currentCompany$.subscribe(e=>{null!=e&&(this.company=e,this.company.isRecurrentPurchaseActive?this.getAllRecurrency(1,10,""):document.location="/customer")})}getAllRecurrency(e=1,n=10,r){this.recurrentList=null,this.orderService.getAllRecurrency(e,n,r).subscribe(o=>{o&&(this.recurrentList=o,this.commomService.finishLoadComponent("onJetCustomerLoaded",{detail:{type:"customer",value:{name:decodeURIComponent("Minhas assinaturas"),href:window.location.href}}}),this.setupPageSettings(this.recurrentList.settings.totalItemCount,this.recurrentList.settings.pageCount,e))})}setupPageSettings(e,n,r){this.pagerSettings.pageNumber=r,this.pagerSettings.totalItems=e,this.pagerSettings.pageCount=n}changePage(e){e>this.pagerSettings.pageCount||e<1||this.getAllRecurrency(e,this.pagerSettings.pageSize,this.searchTerm)}recurrentSearch(e){e.length>0?(this.searchTerm=e,this.getAllRecurrency(1,10,e)):this.getAllRecurrency(1,10,"")}
3btnPrintRecurrent(e){var n=window.open(`/customer/recurrency/details/${e}`,"Print","left=200, top=200, width=950, height=500, toolbar=0, resizable=0");n.addEventListener("load",()=>{setTimeout(function(){n.print(),n.close()},1e3)},{passive:!0})}goToDetails(e){window.location.href=document.location.href+"/details/"+e}showPage(){let e=[];for(var n=this.pagerSettings.pageNumber-2;n<this.pagerSettings.pageNumber+2+1;n++)n>0&&n<=this.pagerSettings.pageCount&&e.push(n);return e}formatDate(e){let n=new Date(e);return n.toLocaleDateString()+" "+n.toLocaleTimeString()}static#e=this.\u0275fac=function(n){return new(n||t)($(Wh),$(qt),$(yn))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-recurrent-list"]],inputs:{dataClassContainer:["data-class-container","dataClassContainer"],dataClassButton:["data-class-button","dataClassButton"],dataClassTable:["data-class-table","dataClassTable"],dataClassInput:["data-class-input","dataClassInput"]},decls:6,vars:5,consts:[[1,"jet-recurrent-history"],[3,"className"],["class","search",4,"ngIf"],["class","recurrent-list",4,"ngIf"],[3,"className",4,"ngIf"],["class","jet-pagination",4,"ngIf"],[1,"search"],["type","text","placeholder","Buscar por c\xf3digo do plano",3,"blur","keyup.enter"],["recurrentSearch1",""],[1,"recurrent-list"],[4,"ngFor","ngForOf"],["data-label","C\xf3digo do plano"],["data-label","Ades\xe3o"],["data-label","Total"],["data-label","Pagamento"],["data-label","Status",3,"ngClass"],[1,"right","aligned"],["data-tooltip","Imprimir",3,"className","click"],["aria-hidden","true","focusable","false","data-prefix","fal","data-icon","print","role","img","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"svg-inline--fa","fa-print","fa-w-16"],["fill","currentColor","d","M432 192h-16v-82.75c0-8.49-3.37-16.62-9.37-22.63L329.37 9.37c-6-6-14.14-9.37-22.63-9.37H126.48C109.64 0 96 14.33 96 32v160H80c-44.18 0-80 35.82-80 80v96c0 8.84 7.16 16 16 16h80v112c0 8.84 7.16 16 16 16h288c8.84 0 16-7.16 16-16V384h80c8.84 0 16-7.16 16-16v-96c0-44.18-35.82-80-80-80zM320 45.25L370.75 96H320V45.25zM128.12 32H288v64c0 17.67 14.33 32 32 32h64v64H128.02l.1-160zM384 480H128v-96h256v96zm96-128H32v-80c0-26.47 21.53-48 48-48h352c26.47 0 48 21.53 48 48v80zm-80-88c-13.25 0-24 10.74-24 24 0 13.25 10.75 24 24 24s24-10.75 24-24c0-13.26-10.75-24-24-24z",1,""],["data-tooltip","Visualizar",3,"className","click"],["aria-hidden","true","focusable","false","data-prefix","far","data-icon","eye","role","img","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 576 512",1,"svg-inline--fa","fa-eye","fa-w-18"],["fill","currentColor","d","M288 144a110.94 110.94 0 0 0-31.24 5 55.4 55.4 0 0 1 7.24 27 56 56 0 0 1-56 56 55.4 55.4 0 0 1-27-7.24A111.71 111.71 0 1 0 288 144zm284.52 97.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400c-98.65 0-189.09-55-237.93-144C98.91 167 189.34 112 288 112s189.09 55 237.93 144C477.1 345 386.66 400 288 400z",1,""],[1,"recurrent-empty"],[1,"jet-pagination"],[1,"pagination"],["aria-label","Pagination","role","navigation"],["aria-label","Primeira P\xe1gina","aria-current","false","tabindex","0","value","1",1,"item",3,"disabled","click"],["aria-label","P\xe1gina Anterior","aria-current","false","tabindex","0",1,"item",3,"value","disabled","click"],["aria-current","true","aria-disabled","false","tabindex","0","type","pageItem","class","item",3,"ngClass","click",4,"ngFor","ngForOf"],["aria-label","Pr\xf3xima P\xe1gina","aria-current","false","tabindex","0",1,"item",3,"value","disabled","click"],["aria-label","\xdaltima P\xe1gina","aria-current","false","tabindex","0",1,"item",3,"value","disabled","click"],["aria-current","true","aria-disabled","false","tabindex","0","type","pageItem",1,"item",3,"ngClass","click"]],template:function(n,r){1&n&&(a(0,"div",0)(1,"div",1),C(2,xZ,4,1,"div",2),C(3,PZ,17,2,"div",3),C(4,TZ,3,1,"div",4),C(5,kZ,12,8,"div",5),l()()),2&n&&(c(1),d("className",r.dataClassContainer),c(1),d("ngIf",r.recurrentList&&void 0!==(null==r.recurrentList?null:r.recurrentList.recurrentPurchaseSimple)&&(null==r.recurrentList?null:r.recurrentList.recurrentPurchaseSimple.length)>0),c(1),d("ngIf",r.recurrentList&&void 0!==(null==r.recurrentList?null:r.recurrentList.recurrentPurchaseSimple)&&(null==r.recurrentList?null:r.recurrentList.recurrentPurchaseSimple.length)>0),c(1),d("ngIf",!r.recurrentList||0==r.recurrentList.recurrentPurchaseSimple.length),c(1),d("ngIf",r.recurrentList&&void 0!==(null==r.recurrentList?null:r.recurrentList.recurrentPurchaseSimple)&&(null==r.recurrentList?null:r.recurrentList.recurrentPurchaseSimple.length)>0))},dependencies:[ui,ei,en]})}return t})();const FZ=function(t,i){return{found:t,flip:i}};let AZ=(()=>{class t{constructor(e,n,r){this.checkoutService=e,this.sharedDataCommom=n,this.commomService=r,this.dataIsSecondCard=!1,this.dataTwoCards=!1,this.dataTwoMethods=!1,this.isRecurrent=!1,this.newNumber
3Event=new pi,this.newCVVEvent=new pi,this.newExpiresEvent=new pi,this.setBrandSelected=new pi,this.found=!1,this.defaultFormat=/(\d{1,4})/g,this.defaultPlaceholder="\u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022",this.defaultExpiresPlaceholder="\u2022\u2022/\u2022\u2022",this.defaultCVVPlaceholder="\u2022\u2022\u2022",this.textName="Nome Impresso",this.auxCardNameBool=!1,this.select=0,this.flip=!1,this.cards=[{name:"amex",pattern:null,format:/(\d{1,4})(\d{1,6})?(\d{1,5})?/,placeholder:"\u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022\u2022",mask:"$1 $2 $3",minimumValue:0,idBrand:0,usaTokenization:!1},{name:"aura",pattern:null,format:this.defaultFormat,placeholder:this.defaultPlaceholder,mask:"$1 $2 $3",minimumValue:0,idBrand:0,usaTokenization:!1},{name:"mastercard",pattern:null,format:this.defaultFormat,placeholder:this.defaultPlaceholder,mask:"$1 $2 $3 $4",minimumValue:0,idBrand:0,usaTokenization:!1},{name:"discover",pattern:null,format:this.defaultFormat,placeholder:this.defaultPlaceholder,mask:"$1 $2 $3 $4",minimumValue:0,idBrand:0,usaTokenization:!1},{name:"jcb",pattern:null,format:this.defaultFormat,placeholder:this.defaultPlaceholder,mask:"$1 $2 $3 $4",minimumValue:0,idBrand:0,usaTokenization:!1},{name:"elo",pattern:null,format:this.defaultFormat,placeholder:this.defaultPlaceholder,mask:"$1 $2 $3 $4",minimumValue:0,idBrand:0,usaTokenization:!1},{name:"visa",pattern:null,format:this.defaultFormat,placeholder:this.defaultPlaceholder,mask:"$1 $2 $3 $4",minimumValue:0,idBrand:0,usaTokenization:!1},{name:"hiper",pattern:null,format:this.defaultFormat,placeholder:this.defaultPlaceholder,mask:"$1 $2 $3 $4",minimumValue:0,idBrand:0,usaTokenization:!1},{name:"hipercard",pattern:null,format:this.defaultFormat,placeholder:this.defaultPlaceholder,mask:"$1 $2 $3 $4",minimumValue:0,idBrand:0,usaTokenization:!1},{name:"diners",pattern:null,format:this.defaultFormat,placeholder:this.defaultPlaceholder,mask:"$1 $2 $3 $4",minimumValue:0,idBrand:0,usaTokenization:!1},{name:"credz",pattern:null,format:this.defaultFormat,placeholder:this.defaultPlaceholder,mask:"$1 $2 $3 $4",minimumValue:0,idBrand:0,usaTokenization:!1}]}ngOnInit(){this.dataNumberCard=this.defaultPlaceholder,this.dataExpiresCard=this.defaultExpiresPlaceholder,this.dataCVVCard=this.defaultCVVPlaceholder,this.dataNameCard=this.textName,this.installmentFunction=e=>{this.loadInstallments()},document.removeEventListener("onJetLoadParcel",this.installmentFunction),document.addEventListener("onJetLoadParcel",this.installmentFunction)}ngOnDestroy(){this.dataShared?.creditCardForm?.reset(),this.dataShared?.creditCardForm2?.reset(),this.dataShared?.creditCardFormTwoMethods?.reset(),this.dataShared?.creditCardForm?.controls.parcel?.setValue(""),this.dataShared?.creditCardForm2?.controls.parcel?.setValue(""),this.dataShared?.creditCardFormTwoMethods?.controls.parcel?.setValue(""),document.removeEventListener("onJetLoadParcel",this.installmentFunction),this.dataShared.arrayEventListener=[]}ngOnChanges(){if(0!=this.select&&!this.isPaymentMethodSelected(this.select)&&(this.dataForm.reset(),this.found=!1,this.dataTwoMethods&&(document.querySelector(".container-card-two-methods .jet-virtual-card .virtual-card").className="virtual-card"),this.dataIsSecondCard&&(document.querySelector(".container-card-2 .jet-virtual-card .virtual-card").className="virtual-card"),0==this.dataIsSecondCard&&(document.querySelector(".jet-virtual-card .virtual-card").className="virtual-card"),this.dataNumberCard=this.defaultPlaceholder,this.cards.forEach(e=>{e.pattern=null})),this.dataShared.isAssistedSaleContext){if(!this.dataShared.assistedSaleReady)return;this.dataShared.gateways&&this.dataShared.gateways.length>0&&this.returnGateway(this.dataShared.gateways)}else this.dataShared.gateways$=this.checkoutService.getGateways().subscribe(e=>{this.returnGateway(e)},e=>{this.dataShared?.commomService?.displayMessageUser("error","Erro ao recuperar as formas de pagamento.")});"object"==typeof this.dataNumberCard&&((!this.dataShared.arrayEventListener.dataNumberCardBlur||this.dataTwoCards)&&(this.dataNumberCard.addEventListener("blur",e=>{var n=!1;!this.dataIsSecondCard&&(!this.dataTwoCards||this.dataTwoCards&&this.dataShared.formCredit.valueFirstCard.value&&this.dataShared.formCredit.valueFirstCard.value.replace(/\D+/g,"")),n=!0,this.dataTwoCards&&this.dataShared.formCredit.number.value.replace(/\D+/g,"")==this.dataShared.formCredit2.number.value.replace(/\D+/g,"")&&(n=!1),n&&setTimeout(()=>{""!=e.target.value.replace(/\D+/g,"")&&this.loadInstallments(e)},200)},!1),this.dataShared.arrayEventListener.dataNumberCardBlur=!0),(!this.dataShared.arrayEventListener.dataNumberCardkeyup||this.dataTwoCards)&&(this.dataNumberCard.addEventListener("keyup",e=>{this.handleValueChange(e)},!1),this.dataShared.arrayEventListener.dataNumberCardkeyup=!0)),"object"==typeof this.dataValueCard&&this.dataTwoCards&&(this.dataShared.arrayEventListener.dataValueCardBlur||(this.dataValueCard.addEventListener("blur",e=>{""!=this.dataShared.formCredit.valueFirstCard.value.replace(/\D+/g,"")?(document.getElementById("action-checkout").setAttribute("disabled","disabled"),setTimeout(()=>{""!=e.target.value.replace(/\D+/g,"")&&this.loadInstallments()},200),setTimeout(()=>{document.getElementById("action-checkout").removeAttribute("disabled")},300),this.dataShared.formCredit.valueFirstCard.setErrors(null)):(document.getElementById("slParcelamento").innerHTML='<option value="">Informe o valor do cart\xe3o primeiro</option>',this.dataShared.formCredit.valueFirstCard.setErrors({required:"Campo Obrigat\xf3rio"}))},!1),this.dataShared.arrayEventListener.dataValueCardBlur=!0)),"object"==typeof this.dataCVVCard&&(this.dataShared.arrayEventListener.dataCVVCardKeyup||(this.dataCVVCard.addEventListener("keyup",e=>{this.dataCVVCard=""==e.target.value.replace(/\D+/g,"")?this.defaultCVVPlaceholder:e.target.value.replace(/\D+/g,""),this.newCVVEvent.emit(e.target.value.replace(/\D+/g,""))},!1),this.dataShared.arrayEventListener.dataCVVCardKeyup=!0),this.dataShared.arrayEventListener.dataCVVCardBlur||(this.dataCVVCard.addEventListener("blur",e=>{this.flip=!1,this.dataCVVCard=this.defaultCVVPlaceholder},!1),this.dataShared.arrayEventListener.dataCVVCardBlur=!0),this.dataShared.arrayEventListener.dataCVVCardFocus||(this.dataCVVCard.addEventListener("focus",e=>{this.flip=!0,this.dataCVVCard=""==e.target.value.replace(/\D+/g,"")?this.defaultCVVPlaceholder:e.target.value.replace(/\D+/g,"")},!1),this.dataShared.arrayEventListener.dataCVVCardFocus=!0)),"object"==typeof this.dataExpiresCard&&(this.dataShared.arrayEventListener.dataExpiresCardKeyup||(this.dataExpiresCard.addEventListener("keyup",e=>{let n=new Date,r=!0,o=e.keyCode||e.charCode,s=e.target.value.replace(/[^0-9/]/g,""),u=e.target.value.replace("/","").replace(/[^0-9/]/g,"");if(""==s)this.dataExpiresCard=this.defaultExpiresPlaceholder;else{if(2===u.length&&8!=o&&46!=o)Number(s)>12&&(r=!1),s=s.replace("/","")+"/";else if(4==u.length){let w=Number(u.substring(0,2)),P=Number(u.substring(2,4)),F=Number(n.getFullYear().toString().substring(2)),R=Number(n.getMonth().toString())+1;(w>12||0==w||Number(P)<F||Number(P)==F&&Number(w)<R)&&(r=!1)}this.dataExpiresCard=s}this.newExpiresEvent.emit({valid:r,value:s})},!1),this.dataShared.arrayEventListener.dataExpiresCardKeyup=!0))}returnGateway(e){this.dataShared.gateways=e,this.dataShared.gateways.length>0&&this.dataShared.gateways.forEach(n=>
3{n.status&&n.paymentMethods.forEach(r=>{null!=r.paymentBrands&&this.isPaymentMethodSelected(r.idPaymentMethod)&&r.paymentBrands.filter(o=>""!=o.regExp).forEach(o=>{var s=this.cards.filter(u=>u.name==o.name.toLowerCase());1==s.length&&(s[0].pattern=new RegExp(o.regExp),s[0].minimumValue=o.minimumValue,s[0].idBrand=o.idPaymentBrand,s[0].usaTokenization=o.usaTokenization,this.dataTwoMethods&&(this.select=r.idPaymentMethod))})})}),this.dataTwoMethods||(this.select=[1,14].includes(this.select)?this.dataMethod:0)}handleValueChange(e){var n=e.target.value=e.target.value.replace(/\D+/g,"");if(!n||1==n.length||this.auxCardNameBool)return e.target.setAttribute("data-placeholder",this.placeholder),this.found=!1,this.auxCardName=null,this.auxCardNameBool=!1,this.dataIsSecondCard?document.querySelector(".container-card-2 .jet-virtual-card .virtual-card").className="virtual-card":document.querySelector(".jet-virtual-card .virtual-card").className="virtual-card",this.dataNumberCard=this.defaultPlaceholder,void(this.dataIsSecondCard?document.querySelector('.payment-method[class*="-card"].active').removeAttribute("data-brand2"):document.querySelector('.payment-method[class*="-card"].active').removeAttribute("data-brand"));this.setCreditCardType(e)}setCreditCardType(e,n,r){if(r)return this.setCreditCardTypeProcess(e,n,r);this.dataShared.sharedDataCommomService.cart$.pipe(Mu(o=>!!o),Ru(1)).subscribe(o=>this.setCreditCardTypeProcess(e,n,o))}setCreditCardTypeProcess(e,n,r){this.numberCard=e.target.value.replace(/\D+/g,""),this.dataForm.controls.number?.setErrors({incorrect:!1});for(var o=0,s=0;s<this.cards.length;s++){if(null!=this.cards[s].pattern&&this.cards[s].pattern.test(this.numberCard)){if(this.found=!0,this.setBrandSelected.emit({idBrand:this.cards[s].idBrand,usaTokenization:this.cards[s].usaTokenization}),e.target.parentNode.parentNode.classList.add(this.cards[s].name),e.target.setAttribute("pattern",this.cards[s].pattern),e.target.setAttribute("placeholder",this.cards[s].placeholder),this.dataIsSecondCard?document.querySelector('.payment-method[class*="-card"].active').setAttribute("data-brand2",this.cards[s].name):document.querySelector('.payment-method[class*="-card"].active').setAttribute("data-brand",this.cards[s].name),!this.auxCardName&&this.cards[s].name&&(this.auxCardName=this.cards[s].name),this.auxCardName&&this.auxCardName!=this.cards[s].name&&(this.auxCardName=this.cards[s].name,this.auxCardNameBool=!0,this.handleValueChange(e)),this.dataIsSecondCard?document.querySelector(".container-card-2 .jet-virtual-card .virtual-card").classList.add(this.cards[s].name):document.querySelector(".jet-virtual-card .virtual-card").classList.add(this.cards[s].name),this.dataNumberCard=this.applyFormatMask(e,this.numberCard,this.cards[s].placeholder),this.newNumberEvent.emit(this.dataNumberCard),this.dataTwoMethods){if(this.cards[s].minimumValue>this.dataShared.valueCardTwoMethods){if(o=this.cards[s].minimumValue,n)return!1;break}}else if(this.cards[s].minimumValue>r.total){if(o=this.cards[s].minimumValue,n)return!1;break}if(this.cards[s]&&(this.auxCard=this.cards[s]),n)return this.cards[s];break}s==this.cards.length-1&&(this.auxCardNameBool=!0,this.handleValueChange(e))}if(this.found&&o>0&&this.numberCard.length>12)if(this.dataTwoMethods){this.dataShared.valueCardTwoMethods=o,this.dataShared.valuePixTwoMethods=r.total-o;let u=this.dataShared.listPaymentMethod.filter(w=>w.idPaymentMethod==bt.pix)[0].paymentBrands[0];this.dataShared.discountPixTwoMethods=u.discount;let v=0;if(u.valMinDiscount<=this.dataShared.valuePixTwoMethods&&(v=this.dataShared.commomService.roundUp(this.dataShared.valuePixTwoMethods*(this.dataShared.discountPixTwoMethods/100))),this.dataShared.valueDiscountPixTwoMethods=v,u.minimumValue>this.dataShared.valuePixTwoMethods)return this.dataShared.resetValuesTwoMethods(),this.dataShared.commomService.displayMessageUser("error","Sua compra n\xe3o atingiu o valor m\xednimo da forma de pagamento."),void setTimeout(()=>document.getElementById("credit-two-methods").focus(),500);this.dataShared.commomService.displayMessageUser("error","O pagamento no cart\xe3o foi ajustado atender o valor m\xednimo da bandeira.")}else this.dataShared.commomService.displayMessageUser("error","O valor m\xednimo da compra para essa forma de pagamento \xe9 de "+this.dataShared.commomService.priceMask(o));!this.found&&n&&(e.target.setAttribute("data-placeholder",this.placeholder),this.dataIsSecondCard?document.querySelector('.payment-method[class*="-card"].active').removeAttribute("data-brand2"):document.querySelector('.payment-method[class*="-card"].active').removeAttribute("data-brand"),this.dataIsSecondCard?document.querySelector(".container-card-2 .jet-virtual-card .virtual-card").className="virtual-card":d
3ocument.querySelector(".jet-virtual-card .virtual-card").className="virtual-card",this.dataShared.commomService.displayMessageUser("error","N\xfamero do Cart\xe3o inv\xe1lido ou bandeira n\xe3o dispon\xedvel na loja"),this.dataForm.controls.number?.setErrors({incorrect:!0}))}loadInstallments(e){this.dataShared.sharedDataCommomService.cart$.pipe(Mu(n=>!!n),Ru(1)).subscribe(n=>{this.calcFirstReturn(e,n)})}calcFirstReturn(e,n){var r,o;if(!this.dataTwoCards||this.dataShared.formCredit.valueFirstCard.value&&0!=Number(this.dataShared.commomService.priceUnMask(this.dataShared.formCredit.valueFirstCard.value)))if(this.dataIsSecondCard?document.getElementById("slParcelamento2")&&(document.getElementById("slParcelamento2").innerHTML=""):document.getElementById("slParcelamento")&&(document.getElementById("slParcelamento").innerHTML=""),e?r=this.setCreditCardType(e,!0,n):(r=this.auxCard)&&r.name&&(this.dataIsSecondCard?document.querySelectorAll(".payment-method:not(.shopping-voucher-button).active")[0].getAttribute("data-brand2")||document.querySelectorAll(".payment-method:not(.shopping-voucher-button).active")[0].setAttribute("data-brand2",r.name):document.querySelectorAll(".payment-method:not(.shopping-voucher-button).active")[0].getAttribute("data-brand")||document.querySelectorAll(".payment-method:not(.shopping-voucher-button).active")[0].setAttribute("data-brand",r.name)),r)if(this.dataShared.hasPagSeguroApp&&this.dataPagSeguroApp.showFieldsPagSeguroApp())this.dataPagSeguroApp.loadInstallmentsPagSeguroApp(r.name);else if(this.dataShared.hasMercadoPago&&this.dataShared.mercadoPagoClass.showFieldsMercadoPago()){if(this.dataNumberCard.replace(/\D+/g,"").length>=6){let P=0,F=n.total-n.totalTaxes,R=n.subTotal-(n.totalDiscount+n.totalFanmember)-n.totalShoppingVoucher-n.totalTaxes,V=F;var u=this.dataShared.paymentDiscountText.filter(ne=>ne.method===this.dataShared.selectedPaymentMethod).length>0?r?.name?this.dataShared.paymentDiscountText.filter(ne=>ne.method===this.dataShared.selectedPaymentMethod)[0].data.filter(ne=>ne.brand.toLowerCase()===r?.name)[0]:this.dataShared.selectedPaymentMethod!=bt.credit?this.dataShared.paymentDiscountText.filter(ne=>ne.method===this.dataShared.selectedPaymentMethod)[0].data[0]:void 0:void 0;if(u&&u.valueToReachDiscount<=0&&(void 0!==u&&u.toString().length>0&&!u.type||u?.type&&1==u.type&&1==this.dataShared.installmentNumber||0==u?.type)){let ne=0;this.dataShared.company.descontoTotalProduto?(ne=this.commomService.roundUp(R*(u.discount/100)),V=R+this.dataShared.interestValue+this.dataShared.interestValue2-ne+n.totalShipping+n.totalTaxes):(ne=this.commomService.roundUp(n.total*(u.discount/100)),V=F-ne+this.dataShared.interestValue+this.dataShared.interestValue2+n.totalTaxes),P=ne}this.dataMercadoPago.loadInstallmentsMercadoPago(this.dataNumberCard.replace(/\D+/g,"").substring(0,8),P)}}else if(this.dataShared.hasAppMax&&this.dataShared.selectedIdGateway===qi.appMax)this.checkoutService.getInstallmentPayment(o=n.total).subscribe(P=>{P.forEach(F=>{F.status&&F.paymentMethods.forEach(R=>{if(R.idPaymentMethod===parseInt(document.querySelector('.payment-method[class*="-card"].active').dataset.method))for(let V=0;V<R.paymentBrands.length;V++)R.paymentBrands[V].name.toLowerCase()===r.name&&this.dataAppMax.loadInstallmentsAppMax(o,(R.paymentBrands[V].discount/100*o).toFixed(2))})})},P=>{this.dataShared.commomService.displayMessageUser("error","N\xe3o foi poss\xedvel carregar o parcelamento")});else if(this.dataIsSecondCard)this.calcSecondCard(r);else{if(o=0,this.dataTwoMethods)o=this.dataShared.valueCardTwoMethods;else if(this.dataTwoCards){if((o=Number(this.dataShared.commomService.priceUnMask(this.dataShared.formCredit.valueFirstCard.value)))>=n.total)return void this.dataShared.commomService.displayMessageUser("error","Valor acima do total \xe0 pagar com dois cart\xf5es. Confira o valor \xe0 pagar de cada cart\xe3o.");this.dataShared.valueFirstCard=o}else o=n.total;if(this.dataShared.formCredit.number.valid&&this.isPaymentMethodSelected(bt.credit)){var w=this.checkoutService.getInstallments(void 0,this.dataShared.isAssistedSaleContext?this.dataShared.sessionID:void 0);(this.dataTwoCards||this.dataTwoMethods)&&(w=this.checkoutService.getInstallmentPayment(o)),w.subscribe(P=>{P&&P.forEach(F=>{F.status&&F.paymentMethods.forEach(R=>{if(R.idPaymentMethod===parseInt(document.querySelector('.payment-method[class*="-card"].active').dataset.method))for(let ne=0;ne<R.paymentBrands.length;ne++)if(R.paymentBrands[ne].name.toLowerCase()===r.name){if(0!==R.paymentBrands[ne].installments.length){this.dataShared.installmentsByBrand=R.paymentBrands[ne].installments;var V="<option value=''>Selecione o parcelamento desejado</option>";this.isRecurrent?V+="<option value='"+R.paymentBrands[ne].installments[0].installmentNumber+"' data-InstallmentValue='"+R.paymentBrands[ne].installments[0].value+"' data-InstallmentNumber='"+R.paymentBrands[ne].installments[0].installmentNumber+"' data-InstallmentTotal='"+R.paymentBrands[ne].installments[0].total+"'>"+R.paymentBrands[ne].installments[0].installmentNumber+"x de "+this.dataShared.commomService.priceMask(R.paymentBrands[ne].installments[0].value)+" ("+(0==R.paymentBrands[ne].installments[0].rate?"Sem juros":"Com juros")+")</option>
3":R.paymentBrands[ne].installments.forEach(De=>{V+="<option value='"+De.installmentNumber+"' data-InstallmentValue='"+De.value+"' data-InstallmentNumber='"+De.installmentNumber+"' data-InstallmentDiscount='"+De.valueDiscount+"' data-InstallmentInterest='"+De.valueRate+"' data-InstallmentTotal='"+De.total+"'>"+De.installmentNumber+"x de "+this.dataShared.commomService.priceMask(De.value)+" ("+(0==De.rate?"Sem juros":"Com juros")+")</option>"}),document.getElementById("slParcelamento").innerHTML=V,this.dataShared.installmentNumber=R.paymentBrands[ne].installments[0].installmentNumber,this.dataShared.installmentValue=R.paymentBrands[ne].installments[0].value,this.dataShared.interestValue=R.paymentBrands[ne].installments[0].valueRate,this.dataShared.installmentTotal=R.paymentBrands[ne].installments[0].total,this.dataShared.formCredit.parcel.setValue(""),this.dataTwoCards&&this.dataShared.formCredit2.number.valid&&this.isPaymentMethodSelected(bt.credit)&&this.dataShared.selectedBrand2&&this.calcSecondCard(this.dataShared.selectedBrand2);break}this.dataShared.commomService.displayMessageUser("error","N\xe3o foi poss\xedvel carregar o parcelamento")}})})},P=>{this.dataShared.commomService.displayMessageUser("error","N\xe3o foi poss\xedvel carregar o parcelamento")})}}else void 0===r&&(this.dataShared.commomService.displayMessageUser("error","N\xfamero do Cart\xe3o inv\xe1lido ou bandeira n\xe3o dispon\xedvel na loja"),this.dataForm.controls.number?.setErrors({incorrect:!0}))}calcSecondCard(e){this.sharedDataCommom.cart$.pipe(Mu(n=>!!n),Ru(1)).subscribe(n=>{this.calcSecondCardReturn(e,n)})}calcSecondCardReturn(e,n){var r=this.dataShared.commomService.roundUp(n.total-Number(this.dataShared.commomService.priceUnMask(this.dataShared.formCredit.valueFirstCard.value)));this.dataShared.formCredit2.number.valid&&this.isPaymentMethodSelected(bt.credit)&&(e&&(this.dataShared.selectedBrand2=e),this.checkoutService.getInstallmentPayment(r).subscribe(o=>{o&&o.forEach(s=>{s.status&&s.paymentMethods.forEach(u=>{if(u.idPaymentMethod===parseInt(document.querySelector('.payment-method[class*="-card"].active').dataset.method))for(let w=0;w<u.paymentBrands.length;w++)if(u.paymentBrands[w].name.toLowerCase()===e.name){if(0!==u.paymentBrands[w].installments.length){this.dataShared.installmentsByBrand2=u.paymentBrands[w].installments;var v="<option value=''>Selecione o parcelamento desejado</option>";u.paymentBrands[w].installments.forEach(P=>{v+="<option value='"+P.installmentNumber+"' data-InstallmentValue='"+P.value+"' data-InstallmentNumber='"+P.installmentNumber+"' data-InstallmentTotal='"+P.total+"' data-InstallmentInterest='"+P.valueRate+"'>"+P.installmentNumber+"x de "+this.dataShared.commomService.priceMask(P.value)+" ("+(0==P.rate?"Sem juros":"Com juros")+")</option>"}),document.getElementById("slParcelamento2")&&(document.getElementById("slParcelamento2").innerHTML=v),this.dataShared.valueSecondCard=r,this.dataShared.installmentNumber2=u.paymentBrands[w].installments[0].installmentNumber,this.dataShared.installmentValue2=u.paymentBrands[w].installments[0].value,this.dataShared.interestValue2=u.paymentBrands[w].installments[0].valueRate,this.dataShared.installmentTotal2=u.paymentBrands[w].installments[0].total,this.dataShared.formCredit2.parcel.setValue("");break}this.dataShared.commomService.displayMessageUser("error","N\xe3o foi poss\xedvel carregar o parcelamento")}})})},o=>{this.dataShared.commomService.displayMessageUser("error","N\xe3o foi poss\xedvel carregar o parcelamento")}))}applyFormatMask(e,n,r){for(var o="",s=0,u=0;u<r.length;u++){var v=r[u];if("\u2022"==v){if(!n.charAt(s))break;o+=n.charAt(s),s++}else" "===v&&8===e.keyCode?o.slice(0,-1):o+=v}return o}isPaymentMethodSelected(e){if(this.dataTwoMethods){if("string"==typeof this.dataMethod)return this.dataMethod.split(",").map(r=>parseInt(r.trim())).includes(e);if(Array.isArray(this.dataMethod))return this.dataMethod.includes(e)}return Number(this.dataMethod)===e}static#e=this.\u0275fac=function(n){return new(n||t)($(Ss),$(yn),$(qt))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-virtual-card"]],inputs:{dataNumberCard:["data-number-card","dataNumberCard"],dataNameCard:["data-name-card","dataNameCard"],dataExpiresCard:["data-expires-card","dataExpiresCard"],dataCVVCard:["data-cvv-card","dataCVVCard"],dataMethod:["data-method","dataMethod"],dataIsSecondCard:["data-is-second-card","dataIsSecondCard"],dataShared:["data-shared","dataShared"],dataForm:["data-form","dataForm"],dataValueCard:["data-value-card","dataValueCard"],dataTwoCards:["data-two-cards","dataTwoCards"],dataTwoMethods:["data-two-methods","dataTwoMethods"],isRecurrent:["data-is-recurrent","isRecurrent"],dataPagSeguroApp:["data-pagseguroapp","dataPagSeguroApp"],dataMercadoPago:["data-mercadoPago","dataMercadoPago"],dataAppMax:["data-appMax","dataAppMax"]}
3,outputs:{newNumberEvent:"newNumberEvent",newCVVEvent:"newCVVEvent",newExpiresEvent:"newExpiresEvent",setBrandSelected:"setBrandSelected"},features:[br],decls:155,vars:8,consts:[[1,"jet-virtual-card"],[1,"jet-container"],[1,"virtual-card",3,"ngClass"],[1,"front"],[1,"logo","logo-amex"],["xmlns","http://www.w3.org/2000/svg","width","100%","height","100%","data-name","Capa 1","viewBox","0 0 115.41 79.59"],["d","M115.41 73a6.82 6.82 0 01-6.82 6.82H6.82A6.82 6.82 0 010 73V7.09A6.82 6.82 0 016.82.27h101.77a6.82 6.82 0 016.82 6.82V73z","transform","translate(0 -.27)","fill","#306fc5"],["d","M4.85 73V7.09A6.82 6.82 0 0111.67.27H6.82A6.82 6.82 0 000 7.09V73a6.82 6.82 0 006.82 6.82h4.85A6.82 6.82 0 014.85 73z","transform","translate(0 -.27)","fill","#202121","opacity",".15",2,"isolation","isolate"],["d","M16.81 31.85h3.45l-1.72-4.39-1.73 4.39zM35.15 46.58v2.04h5.8v2.2h-5.8v2.35h6.43l2.98-3.29-2.82-3.3h-6.59zM80.45 27.46l-1.88 4.39h3.6l-1.72-4.39zM51.92 54.42v-8.93l-4.07 4.39 4.07 4.54z",1,"cls-3"],["d","M59.6 48.26a1.57 1.57 0 00-1.72-1.41h-3.29v2.82H58c1 0 1.6-.47 1.6-1.41zM70.58 49.36a1.24 1.24 0 00.47-1.1.89.89 0 00-.47-1.1 3.23 3.23 0 00-1.26-.16h-3.13v2.51h3.13a3 3 0 001.26-.15zM93.15 23.65v1.88l-.94-1.88h-7.37v1.88l-.94-1.88h-10a9.61 9.61 0 00-4.39.94v-.94h-7.08v.94a4.58 4.58 0 00-3-.94H34.21l-1.72 3.92-1.73-3.92h-8v1.88L22 23.65h-6.9L12 31l-3.6 8-.07.16h8.16l.01-.16.94-2.35h2l.94 2.51h9.09v-1.87l.78 1.88h4.55l.78-1.88v1.88h21.83v-4.08h.31c.32 0 .32 0 .32.48V39h11.28v-.94a9.39 9.39 0 004.23.94h4.71l.94-2.5h2.19l.94 2.5h9.09v-2.34L92.83 39h7.37V23.65zM40 36.82h-2.5V28.2l-.15.36-3.65 8.26h-2.31l-3.76-8.62v8.62H22.3l-1.1-2.35h-5.33l-1.09 2.35H12l4.64-11h3.92L25 36.35v-10.5h4.16l.07.15 2 4.31 1.42 3.22v-.16l3.14-7.52H40v11zm10.83-8.62h-6.12v2h6v2.19h-6v2.2h6.12V37h-8.78V25.85h8.78v2.35zm11.18 4a1.25 1.25 0 01.15.19 3 3 0 01.56 1.83v.09a2.26 2.26 0 010 .27v2.19h-2.33v-1.2a3.75 3.75 0 00-.47-2.2 1.44 1.44 0 00-.46-.31A3 3 0 0058 32.9h-2.79v3.92h-2.66v-11h6a6 6 0 013.13.47 2.64 2.64 0 011.25 2.43A3.12 3.12 0 0161 31.65a2.06 2.06 0 011 .59zm5.27 4.58h-2.66v-11h2.66zm30.57 0H94.4l-5-8.31v8.34h-5.34l-.94-2.35h-5.49L76.69 37h-3A5.48 5.48 0 0170 35.72a5.5 5.5 0 01-1.41-4.23A6.4 6.4 0 0170 27.1c.78-.94 2.19-1.25 3.92-1.25h2.51v2.35h-2.56a2.86 2.86 0 00-2 .63 3.67 3.67 0 00-.78 2.5 3.41 3.41 0 00.74 2.67 2.5 2.5 0 001.88.63h1.1l3.6-8.63h3.92l4.39 10.51V26h3.92l4.54 7.68V26h2.67v10.82z","transform","translate(0 -.27)",1,"cls-3"],["d","M59.77 30.42a.66.66 0 00.12-.17 1.64 1.64 0 00.22-1.18.77.77 0 000-.15.89.89 0 00-.48-.54 3.15 3.15 0 00-1.25-.15h-3.17v2.51h3.14a3 3 0 001.25-.16.6.6 0 00.13-.09zM107.1 52.49a6 6 0 00-.79-3V42h-7.55a4.43 4.43 0 00-2.16.94V42h-7.21a5 5 0 00-3.14.94V42H73.4v.94A6.1 6.1 0 0070 42h-8.51v.94c-.79-.78-2.67-.94-3.61-.94h-9.4l-2.2 2.35-2-2.35H30.14v15.82h13.79l2.27-2.26 2 2.26h8.78v-3.6h.78a9.56 9.56 0 003.61-.47V58h7v-4.1h.31c.48 0 .48 0 .48.47V58h21.32a6.15 6.15 0 003.61-1v1h6.74a7.1 7.1 0 003.76-.78 5.3 5.3 0 002.49-4.22.88.88 0 010-.16c.01-.
314.02-.24.02-.35zm-49.38-.94h-3.13v4.08h-5.15l-3-3.45-.16-.18-3.45 3.61h-10v-11H43l2.78 3.05.59.63.08-.08 3.29-3.6H58c1.61 0 3.41.39 4.1 2a4.46 4.46 0 01.13 1.09c.04 3.23-2.16 3.85-4.51 3.85zm15.68-.15a3.56 3.56 0 01.47 2v2.2H71.2v-1.38a3.51 3.51 0 00-.47-2.2c-.31-.47-.94-.47-1.88-.47H66v4.08h-2.63V44.5h5.95a6.33 6.33 0 013.14.47 2.78 2.78 0 011.41 2.51 3.14 3.14 0 01-1.88 3 2.65 2.65 0 011.41.92zm10.81-4.55H78.1v2h6v2.19h-6v2.2h6.11v2.35h-8.77V44.5h8.77zm6.59 8.78h-5v-2.35h5a1.29 1.29 0 001.09-.28 1.11 1.11 0 000-1.56 1.3 1.3 0 00-.94-.32c-2.51-.15-5.48 0-5.48-3.44 0-1.57.94-3.3 3.76-3.3h5.17V47h-4.86a2.45 2.45 0 00-1.1.15c-.31.16-.31.48-.31.79 0 .47.31.63.63.78a2 2 0 00.94.16h1.41a4 4 0 013 .94 3.24 3.24 0 01.78 2.35c-.02 2.36-1.43 3.46-4.09 3.46zm13.48-1.1a4.58 4.58 0 01-3.3 1.1H96v-2.35h5a1.31 1.31 0 001.1-.32 1.14 1.14 0 000-1.56 1.31 1.31 0 00-.94-.32c-2.51-.15-5.49 0-5.49-3.44a3.21 3.21 0 013-3.24 6.69 6.69 0 01.81-.06h5.17V47h-4.92a2.45 2.45 0 00-1.1.15 1.26 1.26 0 00-.31.79c0 .47.16.63.63.78a1.93 1.93 0 00.94.16h1.41a4.78 4.78 0 011.67.25 3.37 3.37 0 012.2 2.48 3.36 3.36 0 01-.89 2.91z","transform","translate(0 -.27)",1,"cls-3"],[1,"logo","logo-aura"],["xmlns","http://www.w3.org/2000/svg","width","100%","height","100%","viewBox","0 0 221.68 146.39"],["d","M0 0h221.45l.23 69C195 58.84 109.9 34.51 0 64.83z","fill-rule","evenodd","fill","#2c328c"],["d","M0 146.39h221.45V91.18C181.51 77.81 110.51 57.78 0 86.16z",1,"cls-2"],["d","M221.45 91.18C181.51 77.81 110.51 57.78 0 86.16V64.83c109.9-30.32 195-6 221.68 4.18z","fill","#ed1c24","fill-rule","evenodd"],["d","M70.54 51.83c5.48-15.14 18-28.22 39.81-28s36.33 12.57 40.25 28.86c-28.08-2.98-46.8-3.49-80.06-.86z",1,"cls-2"],["d","M49.47 118.42L64.3 96.33h5.51l15.8 22.09h-5.83l-4.5-6.69H59.14l-4.24 6.69zm11.14-9.07h13.1l-4-6.12a47.11 47.11 0 01-2.73-4.58 20.18 20.18 0 01-2.09 4.22l-4.24 6.48zm50.93 9.07v-2.35q-3.27 2.72-8.88 2.71a18.94 18.94 0 01-4.62-.54 8.67 8.67 0 01-3.18-1.36 4.39 4.39 0 01-1.47-2 8.6 8.6 0 01-.28-2.54v-9.91h4.73v8.87a9.38 9.38 0 00.29 2.87 3.37 3.37 0 001.9 1.68 9.22 9.22 0 003.59.61 12.51 12.51 0 004-.63 5.08 5.08 0 002.64-1.7A5.3 5.3 0 00111 111v-8.57h4.74v16zm15.74 0v-16h4.26v2.42a9.08 9.08 0 013-2.24 8.3 8.3 0 013-.55 14.73 14.73 0 014.88.88l-1.64 2.52a10.5 10.5 0 00-3.47-.59 7.13 7.13 0 00-2.8.53 3.51 3.51 0 00-1.76 1.49A6.42 6.42 0 00132 110v8.38zm40.39-2a23.35 23.35 0 01-5.07 1.81 24.87 24.87 0 01-5.23.52 15.79 15.79 0 01-7.08-1.28c-1.65-.86-2.48-2-2.48-3.3a3 3 0 01.94-2.15 6.66 6.66 0 012.44-1.56 16.88 16.88 0 013.42-.89c.93-.13 2.33-.27 4.21-.4a70.48 70.48 0 008.46-.94v-.7a2.4 2.4 0 00-1.35-2.34 12.21 12.21 0 00-5.39-.92 13.51 13.51 0 00-4.94.67 4.44 4.44 0 00-2.36 2.38l-4.63-.37a5.87 5.87 0 012.08-2.75 10.8 10.8 0 014.19-1.61 31.26 31.26 0 016.34-.57 28.48 28.48 0 015.82.49 9.5 9.5 0 013.3 1.21 3.88 3.88 0 011.47 1.85 8.72 8.72 0 01.24 2.5v3.61a22.36 22.36 0 00.3 4.79 4.66 4.66 0 001.2 1.92h-4.95a4.08 4.08 0 01-1-2zm-.39-6.06a58.1 58.1 0 01-7.74 1 29.6 29.6 0 00-4.14.54 4.41 4.41 0 00-1.87.89 1.69 1.69 0 00-.66 1.29c0 .72.48 1.32 1.43 1.81a9.67 9.67 0 004.2.72 15.89 15.89 0 004.88-.69 6.7 6.7 0 003.13-1.87 4.18 4.18 0 00.77-2.72z","stroke","#2c328c","stroke-miterlimit","22.93","stroke-width",".22","fill","#2c328c"],[1,"logo","logo-elo"],["xmlns","http://www.w3.org/2000/svg","width","100%","height","100%","viewBox","0 0 221.5 84.87"],["d","M34.48 18.67a25 25 0 0132.38 18.71L84 33.89A42.49 42.49 0 0028.93 2.11z","transform","translate(.05 .07)","fill","#ffcc04"],["d","M14.27 74.16l11.58-13.09a25 25 0 010-37.4l-11.58-13.1a42.46 42.46 0 000 63.59","transform","translate(.05 .07)","fill","#15a4dd"],["d","M66.86 47.37a25 25 0 01-24.46 20A24.4 24.4 0 0134.48 66l-5.55 16.62A42.5 42.5 0 0084 50.88z","transform","translate(.05 .07)","fill","#ef4423"],["d","M99 61.61a28.46 28.46 0 01-1.78-3.44 25.19 25.19 0 01-.56-19.06 25.22 25.22 0 0113.55-14.79 26.11 26.11 0 0123.94 1.74c4.75 2.73 8.12 6.94 10.68 12.91.32.76.61 1.57.9 2.27zm15.61-27.17c-5.56 2.39-8.42 7.6-7.82 13.69L130.25 38c-4.05-4.73-9.25-6.31-15.68-3.56zm18.61 22l-.48-.34a13.74 13.74 0 01-6.35 5.32c-5.26 2.29-10.12 1.7-13.63-1.37l-.32.49-6 8.92a25.86 25.86 0 004.73 2.59 25.84 25.84 0 0031.1-9.55zM162 11.2v49.59l7.72 3.12-4.38 10.22-8.51-3.54a9.58 9.58 0 01-4.19-3.53 11.08 11.08 0 01-1.64-6.14V11.2z","transform","translate(.05 .07)",1,"cls-4"],["d","M182 48.16a14 14 0 014.82-10.58l-7.91-8.82a25.9 25.9 0 000 38.79l7.91-8.82A14 14 0 01182 48.16zM196 62.23a14.21 14.21 0 01-4.45-.73l-3.78 11.23a25.93 25.93 0 0033.62-19.34L209.82 51A14 14 0 01196 62.23zM196.07 22.26a26.2 26.2 0 00-8.21 1.32l3.75 11.24a14.06 14.06 0 0118.22 10.55L221.45 43a25.94 25.94 0 00-25.38-20.74z","transform","translate(.05 .07)",1,"cls-4"],[1,"logo","logo-mastercard"],["xmlns","http://www.w3.org/2000/svg","height","100%","width","100%"],["d","M63.5 32c0 10.4-8.4 18.9-18.9 18.9-10.4 0-18.9-8.5-18.9-18.9 0-10.4 8.4-18.9 18.8-18.9 10.6 0 19 8.5 19 18.9z","fill","#FFB600"],["d","M44.6 13.1c10.4 0 18.9 8.5 18.9 18.9 0 10.4-8.4 18.9-18.9 18.9-10.4 0-18.9-8.5-18.9-18.9","fill","#F7981D"],["d","M44.6 13.1c10.4 0 18.9 8.5 18.9 18.9 0 10.4-8.4 18.9-18.9 18.9","fill","#FF8500"],["d","M19.2 13.1C8.9 13.2.5 21.6.5 32c0 10.4 8.4 18.9 18.9 18.9 4.9 0 9.3-1.9 12.7-4.9.7-.6 1.3-1.3 1.9-2h-3.9c-.5-.6-1-1.3-1.4-1.9h6.7c.4-.6.8-1.3 1.1-2h-8.9c-.3-.6-.6-1.3-.8-2h10.4c.6-1.9 1-3.9 1-6 0-1.4-.2-2.7-.4-4H26.2c.1-.7.3-1.3.5-2h10.4c-.2-.7-.5-1.4-.8-2h-8.8c.3-.7.7-1.3 1.1-2h6.7c-.4-.7-.9-1.4-1.5-2h-3.7c.6-.7 1.2-1.3 1.9-1.9-3.3-3.1-7.8-4.9-12.7-4.9 0-.2 0-.2-.1-.2z","fill","#FF5050"],["d","M.5 32c0 10.4 8.4 18.9 18.9 18.9 4.9 0 9.3-1.9 12.7-4.9.7-.6 1.3-1.3 1.9-2h-3.9c-.5-.6-1-1.3-1.4-1.9h6.7c.4-.6.8-1.3 1.1-2h-8.9c-.3-.6-.6-1.3-.8-2h10.4c.6-1.9 1-3.9 1-6 0-1.4-.2-2.7-.4-4H26.2c.1-.7.3-1.3.5-2h10.4c-.2-.7-.5-1.4-.8-2h-8.8c.3-.7.7-1.3 1.1-2h6.7c-.4-.7-.9-1.4-1.5-2h-3.7c.6-.7 1.2-1.3 1.9-1.9-3.3-3.1-7.8-4.9-12.7-4.9h-.1","fill","#E52836"],["d","M19.4 50.9
3c4.9 0 9.3-1.9 12.7-4.9.7-.6 1.3-1.3 1.9-2h-3.9c-.5-.6-1-1.3-1.4-1.9h6.7c.4-.6.8-1.3 1.1-2h-8.9c-.3-.6-.6-1.3-.8-2h10.4c.6-1.9 1-3.9 1-6 0-1.4-.2-2.7-.4-4H26.2c.1-.7.3-1.3.5-2h10.4c-.2-.7-.5-1.4-.8-2h-8.8c.3-.7.7-1.3 1.1-2h6.7c-.4-.7-.9-1.4-1.5-2h-3.7c.6-.7 1.2-1.3 1.9-1.9-3.3-3.1-7.8-4.9-12.7-4.9h-.1","fill","#CB2026"],["d","M26.1 36.8l.3-1.7c-.1 0-.3.1-.5.1-.7 0-.8-.4-.7-.6l.6-3.5h1.1l.3-1.9h-1l.2-1.2h-2s-1.2 6.6-1.2 7.4c0 1.2.7 1.7 1.6 1.7.6 0 1.1-.2 1.3-.3zM26.8 33.6c0 2.8 1.9 3.5 3.5 3.5 1.5 0 2.1-.3 2.1-.3l.4-1.9s-1.1.5-2.1.5c-2.2 0-1.8-1.6-1.8-1.6H33s.3-1.3.3-1.8c0-1.3-.7-2.9-2.9-2.9-2.1-.2-3.6 2-3.6 4.5zm3.5-2.9c1.1 0 .9 1.3.9 1.4H29c0-.1.2-1.4 1.3-1.4zM43 36.8l.4-2.2s-1 .5-1.7.5c-1.4 0-2-1.1-2-2.3 0-2.4 1.2-3.7 2.6-3.7 1 0 1.8.6 1.8.6l.3-2.1s-1.2-.5-2.3-.5c-2.3 0-4.6 2-4.6 5.8 0 2.5 1.2 4.2 3.6 4.2.8 0 1.9-.3 1.9-.3zM15.1 28.9c-1.4 0-2.4.4-2.4.4l-.3 1.7s.9-.4 2.2-.4c.7 0 1.3.1 1.3.7 0 .4-.1.5-.1.5h-.9c-1.7 0-3.6.7-3.6 3 0 1.8 1.2 2.2 1.9 2.2 1.4 0 2-.9 2.1-.9l-.1.8H17l.8-5.5c0-2.4-2-2.5-2.7-2.5zm.4 4.5c0 .3-.2 1.9-1.4 1.9-.6 0-.8-.5-.8-.8 0-.5.3-1.2 1.8-1.2.3.1.4.1.4.1zM19.7 37c.5 0 3 .1 3-2.6 0-2.5-2.4-2-2.4-3 0-.5.4-.7 1.1-.7.3 0 1.4.1 1.4.1l.3-1.8s-.7-.2-1.9-.2c-1.5 0-3 .6-3 2.6 0 2.3 2.5 2.1 2.5 3 0 .6-.7.7-1.2.7-.9 0-1.8-.3-1.8-.3l-.3 1.8c.1.2.6.4 2.3.4zM59.6 27.3l-.4 2.7s-.8-1-1.9-1c-1.8 0-3.4 2.2-3.4 4.8 0 1.6.8 3.3 2.5 3.3 1.2 0 1.9-.8 1.9-.8l-.1.7h2l1.5-9.6-2.1-.1zm-.9 5.3c0 1.1-.5 2.5-1.6 2.5-.7 0-1.1-.6-1.1-1.6 0-1.6.7-2.6 1.6-2.6.7 0 1.1.5 1.1 1.7zM4.2 36.9l1.2-7.2.2 7.2H7l2.6-7.2-1.1 7.2h2.1l1.6-9.6H8.9l-2 5.9-.1-5.9H3.9l-1.6 9.6h1.9zM35.2 36.9c.6-3.3.7-6 2.1-5.5.2-1.3.5-1.8.7-2.3h-.4c-.9 0-1.6 1.2-1.6 1.2l.2-1.1h-1.9L33 37h2.2zM47.6 28.9c-1.4 0-2.4.4-2.4.4l-.3 1.7s.9-.4 2.2-.4c.7 0 1.3.1 1.3.7 0 .4-.1.5-.1.5h-.9c-1.7 0-3.6.7-3.6 3 0 1.8 1.2 2.2 1.9 2.2 1.4 0 2-.9 2.1-.9l-.1.8h1.8l.8-5.5c.1-2.4-2-2.5-2.7-2.5zm.5 4.5c0 .3-.2 1.9-1.4 1.9-.6 0-.8-.5-.8-.8 0-.5.3-1.2 1.8-1.2.3.1.3.1.4.1zM52 36.9c.6-3.3.7-6 2.1-5.5.2-1.3.5-1.8.7-2.3h-.4c-.9 0-1.6 1.2-1.6 1.2l.2-1.1h-1.9L49.8 37H52z","fill","#FFF"],["d","M23 35.4c0 1.2.7 1.7 1.6 1.7.7 0 1.3-.2 1.5-.3l.3-1.7c-.1 0-.3.1-.5.1-.7 0-.8-.4-.7-.6l.6-3.5h1.1l.3-1.9h-1l.2-1.2M27.8 33.6c0 2.8.9 3.5 2.5 3.5 1.5 0 2.1-.3 2.1-.3l.4-1.9s-1.1.5-2.1.5c-2.2 0-1.8-1.6-1.8-1.6H33s.3-1.3.3-1.8c0-1.3-.7-2.9-2.9-2.9-2.1-.2-2.6 2-2.6 4.5zm2.5-2.9c1.1 0 1.3 1.3 1.3 1.4H29c0-.1.2-1.4 1.3-1.4zM43 36.8l.4-2.2s-1 .5-1.7.5c-1.4 0-2-1.1-2-2.3 0-2.4 1.2-3.7 2.6-3.7 1 0 1.8.6 1.8.6l.3-2.1s-1.2-.5-2.3-.5c-2.3 0-3.6 2-3.6 5.8 0 2.5.2 4.2 2.6 4.2.8 0 1.9-.3 1.9-.3zM12.4 31.1s.9-.4 2.2-.4c.7 0 1.3.1 1.3.7 0 .4-.1.5-.1.5h-.9c-1.7 0-3.6.7-3.6 3 0 1.8 1.2 2.2 1.9 2.2 1.4 0 2-.9 2.1-.9l-.1.8H17l.8-5.5c0-2.3-2-2.4-2.8-2.4m1.5 4.3c0 .3-1.2 1.9-2.4 1.9-.6 0-.8-.5-.8-.8 0-.5.3-1.2 1.8-1.2.3.1 1.4.1 1.4.1zM17.5 36.8s.6.2 2.3.2c.5 0 3 .1 3-2.6 0-2.5-2.4-2-2.4-3 0-.5.4-.7 1.1-.7.3 0 1.4.1 1.4.1l.3-1.8s-.7-.2-1.9-.2c-1.5 0-2 .6-2 2.6 0 2.3 1.5 2.1 1.5 3 0 .6-.7.7-1.2.7M59.2 30s-.8-1-1.9-1c-1.8 0-2.4 2.2-2.4 4.8 0 1.6-.2 3.3 1.5 3.3 1.2 0 1.9-.8 1.9-.8l-.1.7h2l1.5-9.6m-2.6 5.2c0 1.1-.9 2.5-2 2.5-.7 0-1.1-.6-1.1-1.6 0-1.6.7-2.6 1.6-2.6.7 0 1.5.5 1.5 1.7zM4.2 36.9l1.2-7.2.2 7.2H7l2.6-7.2-1.1 7.2h2.1l1.6-9.6H9.7l-2.8 5.9-.1-5.9H5.7l-3.4 9.6h1.9zM33.1 36.9h2.1c.6-3.3.7-6 2.1-5.5.2-1.3.5-1.8.7-2.3h-.4c-.9 0-1.6 1.2-1.6 1.2l.2-1.1M44.9 31.1s.9-.4 2.2-.4c.7 0 1.3.1 1.3.7 0 .4-.1.5-.1.5h-.9c-1.7 0-3.6.7-3.6 3 0 1.8 1.2 2.2 1.9 2.2 1.4 0 2-.9 2.1-.9l-.1.8h1.8l.8-5.5c0-2.3-2-2.4-2.8-2.4m1.5 4.3c0 .3-1.2 1.9-2.4 1.9-.6 0-.8-.5-.8-.8 0-.5.3-1.2 1.8-1.2.4.1 1.4.1 1.4.1zM49.9 36.9H52c.6-3.3.7-6 2.1-5.5.2-1.3.5-1.8.7-2.3h-.4c-.9 0-1.6 1.2-1.6 1.2l.2-1.1","fill","#DCE5E5"],[1,"logo","logo-maestro"],["clip-rule","evenodd","d","M32 46c3.8-3.4 6.2-8.4 6.2-14S35.8 21.5 32 18c-3.3-3-7.8-4.9-12.6-4.9C9 13.1.5 21.6.5 32 .5 42.4 9 50.8 19.4 50.8c4.8.1 9.3-1.8 12.6-4.8z","fill","#07A9E2","fill-rule","evenodd"],["clip-rule","evenodd","d","M.5 32C.5 42.4 9 50.8 19.4 50.8c4.9 0 9.3-1.8 12.6-4.9 3.8-3.4 6.2-8.4 6.2-14S35.8 21.5 32 18c-3.3-3-7.8-4.9-12.6-4.9","fill","#009DDD","fill-rule","evenodd"],["clip-rule","evenodd","d","M32 18c-3.3-3-7.8-4.9-12.6-4.9h-.9C12.6 17.4 8.8 24.3 8.8 32s3.8 14.6 9.6 18.8h.9c4.9 0 9.3-1.8 12.6-4.9 3.8-3.4 6.2-8.4 6.2-14S35.8 21.5 32 18z","fill","#0284CC","fill-rule","evenodd"],["clip-rule","evenodd","d","M44.7 13.1c-4.9 0-9.3 1.8-12.7 4.9-.7.6-1.3 1.3-1.9 2h3.8c.5.6 1 1.3 1.4 2h-6.7c-.4.7-.8 1.3-1.1 2h8.9c.3.7.6 1.3.8 2H26.8c-.2.7-.4 1.3-.6 2h11.6c.3 1.3.4 2.6.4 4 0 2.1-.3 4.1-1 6H26.8c.2.7.5 1.3.8 2h8.9c-.3.7-.7 1.4-1.1 2h-6.7c.4.7.9 1.4 1.4 2h3.8c-.6.7-1.2 1.4-1.9 2 3.4 3 7.8 4.9 12.7 4.9 10.4 0 18.8-8.4 18.8-18.8 0-10.5-8.4-19-18.8-19z","fill","#FF2957","fill-rule","evenodd"],["clip-rule","evenodd","d","M44.7 13.1c-4.9 0-9.3 1.8-12.7 4.9-.7.6-1.3 1.3-1.9 2h3.8c.5.6 1 1.3 1.4 2h-6.7c-.4.7-.8 1.3-1.1 2h8.9c.3.7.6 1.3.8 2H26.8c-.2.7-.4 1.3-.6 2h11.6c.3 1.3.4 2.6.4 4 0 2.1-.3 4.1-1 6H26.8c.2.7.5 1.3.8 2h8.9c-.3.7-.7 1.4-1.1 2h-6.7c.4.7.9 1.4 1.4 2h3.8c-.6.7-1.2 1.4-1.9 2 3.4 3 7.8 4.9 12.7 4.9 10.4 0 18.8-8.4 18.8-18.8","fill","#ED1C2E","fill-rule","evenodd"],["clip-rule","evenodd","d","M32 46c3.8-3.4 6.2-8.4 6.2-14S35.8 21.5 32 18v28z","fill","#0466B5","fill-rule","evenodd"],["clip-rule","evenodd","d","M57 36.1c0-.3.3-.6.6-.6s.6.3.6.6-.3.6-.6.6-.6-.3-.6-.6zm.6.5c.3 0 .4-.2.4-.5s-.2-.4-.4-.4c-.3 0-.5.2-.5.4
3s.3.5.5.5zm0-.3h-.1v-.5H57.8l.1.1c0 .1 0 .1-.1.1l.1.2h-.1l-.1-.2h-.1v.3zm0-.3h.1v-.1h-.1v.1z","fill","#FFF","fill-rule","evenodd"],["clip-rule","evenodd","d","M32 18c-.7.6-1.3 1.3-1.9 2h3.8c.5.6 1 1.3 1.4 2h-6.7c-.4.7-.8 1.3-1.1 2h8.9c.3.7.6 1.3.8 2H26.8c-.2.7-.4 1.3-.6 2h11.6c.3 1.3.4 2.6.4 4 0 2.1-.3 4.1-1 6H26.8c.2.7.5 1.3.8 2h8.9c-.3.7-.7 1.4-1.1 2h-6.7c.4.7.9 1.4 1.4 2h3.8c-.6.7-1.2 1.4-1.9 2 3.4 3 7.8 4.9 12.7 4.9h.9c5.8-4.2 9.6-11.1 9.6-18.8 0-7.7-3.8-14.6-9.6-18.8h-.9C39.8 13.1 35.4 15 32 18z","fill","#D1094B","fill-rule","evenodd"],["clip-rule","evenodd","fill","#FFF","fill-rule","evenodd","d","M17 36.7h-2.4l1.4-7.3-3.2 7.3h-2.1l-.4-7.3-1.4 7.3H6.8l1.8-9.6h3.7l.2 6 2.6-6h3.8L17 36.7z"],["clip-rule","evenodd","d","M14.7 32.5l1.4-3.1-1.1 5.8c.1.5.2 1.1.4 1.6H17l1.8-9.6h-3.5c-.4 1.5-.7 3.2-.7 4.9.1.1.1.2.1.4zM43.2 36.6c-.7.2-1.1.3-1.7.3-1.2 0-1.8-.6-1.8-1.7 0-.2 0-.4.1-.7l.1-.8.1-.6 1.1-5.9h2.3l-.3 1.8h1.2l-.3 1.8h-1.2l-.6 3.2c0 .1-.1.3-.1.3 0 .4.3.6.8.6.3 0 .5 0 .6-.1l-.3 1.8zM50.1 29c-.2-.1-.2-.1-.3-.1-.1 0-.2 0-.2-.1h-.3c-.8 0-1.3.3-2 1.3l.2-1.2h-2.1L44 36.7h2.4c.8-4.8 1.2-5.6 2.3-5.6h.3l.3.1.8-2.2zM33.9 31.4c0 1 .6 1.7 1.8 2.1 1 .4 1.1.5 1.1.9 0 .5-.4.7-1.4.7-.7 0-1.4-.1-2.1-.3l-.3 1.8h.1l.4.1h.6c.6.1 1 .1 1.3.1 2.5 0 3.7-.8 3.7-2.6 0-1.1-.5-1.7-1.7-2.2-1-.4-1.1-.5-1.1-.8 0-.4.4-.6 1.2-.6.4 0 1.1 0 1.7.1l.3-1.8c-.6-.1-1.5-.1-2.1-.1-2.6 0-3.5 1.2-3.5 2.6zM24.6 36.7h-1.9v-.8c-.6.6-1.4.9-2.5.9-1.3 0-2.1-.9-2.1-2.1 0-1.9 1.5-3 4.1-3h1c.1-.3.1-.4.1-.5 0-.5-.4-.7-1.5-.7-.7 0-1.4.1-1.9.2l-.3.1h-.2l.3-1.7c1.2-.3 1.9-.4 2.8-.4 2 0 3.1.8 3.1 2.3 0 .4 0 .7-.2 1.6l-.5 2.8-.1.5-.1.4v.3l-.1.1zm-1.7-3.5h-.5c-1.3 0-2 .4-2 1.2 0 .5.3.8.8.8 1 0 1.7-.8 1.7-2zM32.3 36.5c-.8.2-1.6.3-2.4.3-2.6 0-4-1.2-4-3.5 0-2.7 1.7-4.6 4.1-4.6 1.9 0 3.1 1.1 3.1 2.8 0 .6-.1 1.1-.3 1.9h-4.7v.3c0 .9.7 1.4 2 1.4.9 0 1.6-.1 2.4-.5l-.2 1.9zm-1.2-4.6v-.4c0-.6-.4-1-1.1-1-.7 0-1.3.5-1.5 1.4h2.6z","fill","#DCE5E5","fill-rule","evenodd"],["clip-rule","evenodd","d","M57.4 33.2c-.4 2.6-2.2 3.7-4.6 3.7-2.6 0-3.7-1.6-3.7-3.6 0-2.7 1.8-4.6 4.6-4.6 2.4 0 3.7 1.6 3.7 3.5v1zm-2.5-1c0-.8-.3-1.5-1.3-1.5-1.2 0-1.9 1.4-1.9 2.7 0 1 .5 1.7 1.3 1.7.5 0 1.6-.7 1.8-1.9.1-.4.1-.7.1-1z","fill","#FFF","fill-rule","evenodd"],["clip-rule","evenodd","d","M49.2 34.2c.1-.7.2-1.5.2-2.2v-.2c-.1.5-.2 1-.2 1.6-.1.2-.1.5 0 .8z","fill","#FFF","fill-rule","evenodd"],[1,"logo","logo-credz"],["xmlns","http://www.w3.org/2000/svg","height","100%","width","100%","viewBox","0 0 318.26 63.38"],["d","M295.82 0H22.44C10.07 0 0 3.12 0 7v49.42c0 3.84 10.07 7 22.44 7h273.38c12.37 0 22.44-3.12 22.44-7V7c0-3.88-10.07-7-22.44-7z","fill","none"],["d","M187.7 59.72c7.35-.16 14.87 0 22.23 0 6 0 16.22.58 21.71-.39 11.56-2 16.29-13.78 17.84-26.47 1.33-10.77 1.38-28.34-12-31.36-4.42-1-36.41-.3-43.88-.43zm17-14.71c6.49.35 14.73.21 21.23 0 8.91-.22 11.92-26.76 3.17-29.12-2.3-.62-18.12-.3-21.54-.2zm-143 14.72h16.43l1.75-18.29h19.33L107 59.73c3.27 0 14.77.42 17.08-.15-1.42-4.44-6-13.55-7.94-18.95 5.18-4.45 7.86-8.16 9.45-17.42 1.54-9-2.3-15.41-7.32-18.78-6.77-4.52-14.42-3.37-23.41-3.37s-18.23.25-27.13 0zm19.59-33c3 0 22.61.33 24.63-.31a5.51 5.51 0 003.74-4.71c1-7.32-6.81-6-10.34-6-5.54 0-11.4-.18-16.9 0zm102.36 33l1.41-14.64c-3.8-.32-8.65-.05-12.55-.05-5.88 0-20.53.28-25.31 0-3.91-.23-4.54-4.31-4-8.17h38.54L183.13 24h-38.45c.39-3.7 2.06-7.13 4.73-8 1.73-.59 33.79-.08 38.58-.29.37-1.81 1.57-13.16 1.4-14.59h-22.08c-6.22 0-16.1-.57-21.86.32C133.83 3.22 129 15.53 127.55 28c-1.57 13.14-.72 29.3 11.72 31.45 3.91.64 39.41.25 44.45.28zm126.28-48.65v-3.7c-1.6-3-1.59-6.18-9.52-6.26-5.08-.05-45.16-.29-46.71.08l-1.3 14.52h31.55l-15.9 13.58c-3.55 3.33-13.6 11.08-16 13.8-2.87 3.19-5.39 7.62-3.15 12.2a6.93 6.93 0 004.64 3.91c3.46 1 12.47.5 16.58.5 2.85 0 32.16.19 34.16-.09l1.39-14.59h-31.55a17.28 17.28 0 012.27-2.11l26.09-22c1-.73 1.47-1.36 2.36-2.14 3.72-3.23 3.47-4.38 5.09-7.7zM57.8 59.7L59.3 45H29.97c-5.36 0-9.13.89-11.3-3.12-3.65-6.76-1.3-26 6.78-26.22 6.36-.14 34.22.38 36.78-.12l1.4-14.5c-4.63 0-40.56-.3-44.12.23C6.84 3.18 3.42 17.18 1.8 28.06.22 38.69.47 56.37 13.66 59.25c4.85 1.06 16.24.45 21.82.45 7.42 0 14.91.11 22.32 0z","fill","#fff","fill-rule","evenodd"],[1,"logo","logo-visa"],["xmlns","http://www.w3.org/2000/svg","width","100%","height","100%","viewBox","0 0 6.827 6.827","shape-rendering","geometricPrecision","text-rendering","geometricPrecision","image-rendering","optimizeQuality","fill-rule","evenodd","clip-rule","evenodd"],["id","Layer_x0020_1"],["id","_380519952"],["id","_380520792","d","M2.769 2.66L2.12 4.17h-.436l-.37-1.264-.03-.095.003.001.004.003-.004-.002.006.003c.067.035.362.203.544.475.028.139.054.265.092.4l.403-1.03h.437z",1,"fil0"],["id","_380520192","d","M4.523 3.677c-.003.314-.284.516-.717.516a1.307 1.307 0 01-.459-.08l.058-.339.053.025c.136.056.223.079.388.079.119 0 .246-.047.246-.148 0-.066-.053-.113-.213-.187-.156-.073-.363-.194-.36-.411.001-.294.288-.499.696-.499.159 0 .287.033.368.064l-.055.327-.038-.017a.76.76 0 00-.308-.058c-.16 0-.236.067-.236.13 0 .07.088.118.231.187.238.108.348.239.346.41z",1,"fil0"],["id","_380520096","d","M5.64 2.66h-.318c-.099 0-.173.028-.216.126l-.612 1.385h.433s.07-.186.087-.227l.527.001.05.226h.382l-.333-1.51zm-.508.975c.074-.188.148-.377.219-.567.04.19.082.378.123.567h-.342z",1,"fil0"],["id","_380520432","d","M2.935 2.66h.412L3.09 4.17h-.412z",1,"fil0"],["id","_380520408","d","M.853 2.646h.697c.086.003.155.03.18.123l.107.522a1.616 1.616 0 00-.544-.475l-.006-.004.004.003-.004-.003a1.773 1.773 0 00-.434-.167z","fill","#faa841"],["fill","none","d","M0 0h6.827v6.827H0z"],[1,"logo","logo-hiper"],["xmlns","http://www.w3.org/2000/svg","width","100%","height","100%","viewBox","0 0 478.4 383.4"],["id","a"],["d","M7 6h469v377.398H7zm0 0"],["clip-path","url(#a)"],["d","M62.805 69.703l263.832-60.91c38.5-8.89 77.27 15.336 86.156 53.836l60.91 263.832c4.703 20.371.133 40.816-10.918 56.875H61.488l-52.52-227.48C.083 117.358 24.309 78.59 62.806 69.702zm0 0","fill-rule","evenodd","fill","#f07c00"],["d","M148.004 290.746h-21.742v-47.39H81.91v47.39H60.172
3V181.313H81.91v42.73h44.352v-42.73h21.742zm0 0","fill-rule","evenodd","fill","#fff"],["d","M191.09 185.45c0 1.8-.34 3.488-1.07 5.062a13.254 13.254 0 01-2.868 4.133c-1.21 1.183-2.644 2.109-4.304 2.785-1.63.703-3.375 1.039-5.172 1.039-1.774 0-3.434-.336-5.008-1.04a13.215 13.215 0 01-4.106-2.784c-1.183-1.18-2.109-2.56-2.812-4.133-.676-1.575-1.016-3.262-1.016-5.063 0-1.828.34-3.515 1.016-5.117.703-1.578 1.629-2.984 2.813-4.164a13.282 13.282 0 014.105-2.785c1.574-.703 3.234-1.04 5.008-1.04 1.797 0 3.543.337 5.172 1.04 1.66.676 3.093 1.605 4.304 2.785 1.211 1.18 2.164 2.586 2.868 4.164.73 1.602 1.07 3.29 1.07 5.117zm0 0","fill-rule","evenodd","fill","#ffec00"],["d","M208.89 317.266v-25.293l-1.093.011c-5.656 0-10.914-.93-15.809-2.812a36.176 36.176 0 01-3.457-1.524c-12.988-6.683-19.527-20.355-20.926-39.593v-36.446h20.926c0 10.211.61 27.621 0 41.223 0 3.125.957 7.402 2.051 10.324 1.098 2.895 2.559 5.285 4.36 7.145a16.879 16.879 0 006.44 4.16c2.274.855 4.763 1.3 7.509 1.367V211.61h12.855c1.32 0 2.453.301 3.344.899.906.61 1.465 1.554 1.773 2.812l1.742 7.172a51.848 51.848 0 015.176-5.035 31.553 31.553 0 015.906-3.965 31.105 31.105 0 016.836-2.558c2.442-.602 5.09-.903 7.93-.903 4.36 0 8.32.942 11.953 2.813 3.621 1.867 6.77 4.566 9.39 8.101 7.411 9.985 8.325 15.594 8.325 28.262 0 6.102-.812 11.754-2.473 16.984-1.632 5.204-3.964 9.73-7.003 13.559a32.585 32.585 0 01-10.91 8.973c-4.25 2.164-9.028 3.261-14.29 3.261-4.441 0-8.21-.675-11.304-2.027a29.632 29.632 0 01-8.325-5.484v32.793zm38.419-93.344c-3.91 0-7.2.789-9.899 2.336-2.7 1.574-5.234 3.851-7.594 6.804v36.25c2.11 2.532 4.36 4.305 6.805 5.317 2.445 1.016 5.063 1.52 7.875 1.52 2.7 0 5.149-.536 7.371-1.602 2.219-1.07 4.133-2.703 5.735-4.895 1.574-2.195 2.812-4.976 3.656-8.351.844-3.406 1.293-7.426 1.293-12.094 0-4.613-.363-8.523-1.067-11.73-.734-3.204-1.746-5.82-3.066-7.817-1.32-2.027-2.898-3.46-4.781-4.387-1.856-.902-3.965-1.351-6.328-1.351zm0 0M333.734 210.285c5.176 0 9.934.836 14.258 2.504 4.332 1.672 8.067 4.117 11.195 7.258 3.137 3.152 5.586 4.39 7.34 8.992 1.758 4.617 2.645 9.875 2.645 15.809 0 1.601-.086 2.894-.254 3.906-.168 1.016-.422 1.832-.79 2.45a2.925 2.925 0 01-1.46 1.265c-.648.254-1.434.363-2.363.363H315.37c.336 3.969 1.04 7.398 2.137 10.324 1.094 2.895 2.558 5.285 4.36 7.145a16.864 16.864 0 006.437 4.16c2.476.93 5.203 1.379 8.242 1.379 3.008 0 5.625-.367 7.848-1.125a42.237 42.237 0 005.875-2.39c1.66-.845 3.152-1.634 4.472-2.391 1.324-.73 2.617-1.098 3.883-1.098 1.547 0 2.785.617 3.797 1.883l6.02 7.734c-2.282 2.645-4.755 4.84-7.512 6.555-2.758 1.742-5.598 3.12-8.52 4.133a50.24 50.24 0 01-8.945 2.195c-3.04.422-5.934.648-8.746.648-37.473 0-48.188-43.101-29.7-69.8 2.833-4.09 7.485-6.559 12.317-8.692 4.836-2.137 10.297-3.207 16.398-3.207zm.422 12.23c-5.344 0-9.504 1.548-12.543 4.669-3.011 3.093-4.949 7.48-5.851 13.136h34.62c0-2.363-.308-4.613-.956-6.75-.617-2.136-1.602-4.05-2.95-5.683-1.351-1.657-3.038-2.953-5.062-3.938-2.055-.953-4.473-1.433-7.258-1.433zm0 0M383.348 290.746V211.61h12.289c2.136 0 3.625.403 4.468 1.153.864.758 1.473 2.113 1.72 4.02l1.066 8.323c2.476-4.667 5.355-8.347 8.632-11.023 3.293-2.687 7.118-4.05 11.45-4.05 3.57 0 6.523.847 8.832 2.562l-1.578 12.988c-.114.973-.438 1.676-.985 2.082-.539.399-1.293.617-2.222.617-.813 0-1.997-.113-3.54-.367a26.672 26.672 0 00-4.277-.363c-1.941 0-3.656.281-5.144.816a12.408 12.408 0 00-4.051 2.446c-1.184 1.07-2.25 2.363-3.18 3.91-.926 1.52-1.773 3.289-2.558 5.257v50.766zm0 0","fill-rule","evenodd","fill","#fff"],[1,"logo","logo-jcb"],["d","M9.5 9.6C4.7 9.6 1 12.7 1 18.1v15.4c.4 1.9 2.4 3.3 4.6 3.3 2.5 0 4.3-1.8 4.3-4V25h6.8v7.7c0 4.3-5.5 6.5-9.5 6.5-2.3 0-4.5-.7-6.1-1.9v17h10.8c3.8 0 8.2-3.6 8.2-8.2V9.6H9.5z","fill","#1174CE"],["d","M1 18.1v15.4c.4 1.9 2.4 3.3 4.6 3.3 2.5 0 4.3-1.8 4.3-4V25h6.8v7.7c0 4.3-5.5 6.5-9.5 6.5-2.3 0-4.5-.7-6.1-1.9v17h10.8c3.8 0 8.2-3.6 8.2-8.2V9.6","fill","#0F549D"],["d","M16.6 25v7.7c0 4.3-5.5 6.5-9.5 6.5-2.3 0-4.5-.7-6.1-1.9v17h10.8c3.8 0 8.2-3.6 8.2-8.2","fill","#02375E"],["d","M47.3 36.6H52c1.2 0 2.3-1.1 2.3-2.3S53.2 32 52 32h-4.7v4.6z","fill","#146643"],["d","M52.6 9.6c-4.9 0-8.5 3.1-8.5 8.4v7h12.6c1.8 0 3.3 1.5 3.3 3.3s-1.5 3.3-3.3 3.3c2 0 3.6 1.4 3.6 3.2 0 1.8-1.5 3.2-3.6 3.2H44v16.3h10.8c3.8 0 8.2-3.6 8.2-8.2V9.6H52.6z","fill","#1BCC38"],["d","M44 18.1V25h12.6c1.8 0 3.3 1.5 3.3 3.3s-1.5 3.3-3.3 3.3c2 0 3.6 1.4 3.6 3.2 0 1.8-1.5 3.2-3.6 3.2H44v16.3h10.8c3.8 0 8.2-3.6 8.2-8.2V9.6","fill","#329947"],["d","M59.9 28.3c0 1.8-1.5 3.3-3.3 3.3 2 0 3.6 1.4 3.6 3.2 0 1.8-1.5 3.2-3.6 3.2H44v16.3h10.8c3.8 0 8.2-3.6 8.2-8.2M54.2 28.7c0-1.2-1.1-2.3-2.3-2.3h-4.6v4.5H52c1.2 0 2.2-1 2.2-2.2z","fill","#146643"],["d","M30.9 9.6c-4.9 0-8.5 3.1-8.5 8.4v8.6c1.2-1 2.7-1.7 4.3-1.7h11.4v2.4c-2.7-.6-5.3-.9-6.6-.9-2.8 0-5.1 2.3-5.1 5.1s2.3 5.1 5.1 5.1c1.3 0 3.9-.2 6.6-.8V38H26.7c-1.6 0-3.2-.6-4.3-1.7v18h10.8c3.8 0 8.2-3.6 8.2-8.2V9.6H30.9z","fill","#E20E37"],["d","M22.4
318.1v8.6c1.2-1 2.7-1.7 4.3-1.7h11.4v2.4c-2.7-.6-5.3-.9-6.6-.9-2.8 0-5.1 2.3-5.1 5.1s2.3 5.1 5.1 5.1c1.3 0 3.9-.2 6.6-.8V38H26.7c-1.6 0-3.2-.6-4.3-1.7v18h10.8c3.8 0 8.2-3.6 8.2-8.2V9.6","fill","#B41F36"],["d","M38.1 25v2.4c-2.7-.6-5.3-.9-6.6-.9-2.8 0-5.1 2.3-5.1 5.1s2.3 5.1 5.1 5.1c1.3 0 3.9-.2 6.6-.8V38H26.7c-1.6 0-3.2-.6-4.3-1.7v18h10.8c3.8 0 8.2-3.6 8.2-8.2","fill","#720A1E"],[1,"logo","logo-visaelectron"],["xmlns","http://www.w3.org/2000/svg","width","100%","height","100%","viewBox","0 0 900 575","fill-rule","evenodd","clip-rule","evenodd","stroke-linejoin","round","stroke-miterlimit","1.414"],["fill-rule","nonzero"],["fill","#fff","d","M0 3.3h899.992V575H0z"],["fill","#fcb315","d","M14.983 482.1H884.98v78.009H14.983z"],["fill","#0d357f","d","M14.983 18.3H884.98v77.996H14.983zM432.692 166.721l-43.604 203.821h-52.73l43.6-203.821h52.734zm221.834 131.608l27.766-76.541 15.95 76.541h-43.716zm58.862 72.213h48.754l-42.596-203.821h-44.979c-10.15 0-18.675 5.887-22.458 14.946l-79.121 188.875h55.375l10.98-30.442H707l6.387 30.442zm-137.654-66.546c.22-53.783-74.367-56.767-73.88-80.8.18-7.304 7.138-15.083 22.371-17.07 7.546-.976 28.392-1.755 52.005 9.124l9.237-43.246c-12.687-4.587-29.012-9-49.32-9-52.13 0-88.8 27.684-89.092 67.363-.342 29.35 26.191 45.708 46.145 55.483 20.555 9.984 27.446 16.4 27.355 25.321-.15 13.675-16.417 19.73-31.542 19.954-26.521.421-41.896-7.166-54.158-12.879l-9.571 44.68c12.337 5.653 35.075 10.566 58.629 10.816 55.412 0 91.658-27.37 91.82-69.746zM357.338 166.721l-85.434 203.821H216.16l-42.042-162.667c-2.55-9.996-4.763-13.675-12.521-17.9-12.68-6.887-33.617-13.329-52.025-17.337l1.246-5.917h89.737c11.421 0 21.705 7.604 24.313 20.77l22.217 117.955 54.85-138.725h55.404zM500.18 426.646h-21.425v19.942h23.966v5.992h-31.187v-55.321h29.958v5.995h-22.737v17.48h21.425v5.912zM513.792 394.304h7.22v58.276h-7.22zM560.4 428.859c.084-4.513-1.887-11.654-10.012-11.654-7.388 0-10.508 6.65-11.08 11.654H560.4zm-21.175 5.17c.
3163 9.771 6.321 13.792 13.625 13.792 5.171 0 8.371-.904 11-2.054l1.313 5.175c-2.546 1.146-6.975 2.542-13.3 2.542-12.225 0-19.53-8.125-19.53-20.109 0-11.983 7.055-21.341 18.63-21.341 13.05 0 16.417 11.325 16.417 18.629 0 1.479-.084 2.546-.25 3.367h-27.905zM606.68 451.184c-1.892.904-6.075 2.3-11.413 2.3-11.983 0-19.779-8.125-19.779-20.275 0-12.23 8.37-21.175 21.337-21.175 4.271 0 8.046 1.066 10.017 2.137l-1.642 5.496c-1.725-.904-4.433-1.887-8.375-1.887-9.108 0-14.033 6.808-14.033 15.02 0 9.192 5.908 14.859 13.792 14.859 4.1 0 6.808-.988 8.862-1.892l1.234 5.417zM626.938 403.334v9.52h10.338v5.5h-10.338v21.421c0 4.93 1.396 7.713 5.417 7.713 1.966 0 3.12-.163 4.187-.492l.33 5.504c-1.396.492-3.617.984-6.405.984-3.366 0-6.075-1.15-7.8-3.038-1.967-2.216-2.787-5.741-2.787-10.425v-21.666h-6.159v-5.5h6.159v-7.388l7.058-2.133zM647.363 425.25c0-4.679-.083-8.7-.33-12.396h6.322l.329 7.88h.242c1.808-5.334 6.237-8.7 11.083-8.7.737 0 1.312.083 1.97.162v6.817c-.741-.167-1.474-.167-2.466-.167-5.083 0-8.696 3.775-9.683 9.196-.163.983-.242 2.213-.242 3.363v21.175h-7.225v-27.33zM679.938 432.8c0 8.7 4.92 15.267 11.983 15.267 6.896 0 12.063-6.483 12.063-15.433 0-6.73-3.367-15.184-11.9-15.184-8.454 0-12.146 7.88-12.146 15.35zm31.433-.412c0 14.692-10.258 21.096-19.783 21.096-10.667 0-19.037-7.884-19.037-20.438 0-13.216 8.783-21.012 19.7-21.012 11.408 0 19.12 8.287 19.12 20.354zM722.442 423.605c0-4.18-.087-7.463-.329-10.75h6.4l.408 6.57h.163c1.975-3.696 6.57-7.391 13.137-7.391 5.496 0 14.034 3.283 14.034 16.904v23.642h-7.221v-22.9c0-6.4-2.383-11.738-9.192-11.738-4.683 0-8.375 3.367-9.687 7.388-.33.904-.492 2.133-.492 3.366v23.884h-7.22v-28.975z"],[1,"logo","logo-hipercard"],["xmlns","http://www.w3.org/2000/svg","width","100%","height","100%","viewBox","0 0 422.47 101.09"],["d","M308.69 66.71c-5.73 5.61-21.81 7.2-20.17-6.21 1.37-11.13 13.49-13.5 26.63-11.89-.95 6.09-2.07 13.82-6.46 18.1zm-18.1-43.44c-.54 3.07-1.39 5.85-2.07 8.79 6.56-1.64 27-6.69 29 2.07.66 2.91-.47 6-1.29 8.27-18.49-1.75-33.54 1.32
3-37.54 14.48-2.65 8.82.3 17.49 6 19.91 10.88 4.66 24.11-.68 28.7-8a33.55 33.55 0 00-.8 8.31h9.57c.1-9.16 1.43-16.58 2.84-24.82 1.2-7 3.46-14 3.1-20.17-.82-14.24-24.33-9.22-37.49-8.84zm95.95 47.83c-7.49.16-11.21-4.47-11.38-12.15-.3-13.45 5.6-28.39 17.58-29.73 5.58-.63 9.62.67 13.7 2.06-3.75 15.11-2.39 39.45-19.9 39.82zM411.36 0c-1 8.35-2.23 16.39-3.88 24-27.27-8.63-44 11.44-43.7 36.2.06 4.79.89 9.54 3.88 12.93 5.16 5.84 19.95 7.23 27.41 2.33a19.53 19.53 0 003.88-3.88c.72-.9 1.86-3.27 2.06-2.59a59 59 0 00-1 8h10.08c1.95-27.88 8-51.69 12.41-77zM126.69 66.97c-6 6.29-20.57 6.2-21.72-4.4-.5-4.61 1.22-9.45 2.07-14.22s1.48-9.46 2.33-13.71c5.86-7.15 23.07-8 24.82 3.88 1.5 10.33-2.57 23.23-7.5 28.45zm8.79-43.7c-9.41-3.54-20.88.68-25.85 4.7 0 .17-.12.2-.26.21l.26-.21v-.05c.08-1.72.69-2.92.77-4.65h-9.56c-4 26.52-8.72 52.3-13.71 77.82h11.12c1.61-9.94 2.67-20.42 4.91-29.73 2.54 9.79 19.12 7.92 26.12 4.14 14.41-7.81 25.56-44.96 6.2-52.23zm52.75 18.62h-26.12a15.41 15.41 0 0114.74-12.93c8.01-.31 13.74 2.94 11.38 12.93zm-10.61-19.65c-8 .61-14.82 2.93-19.64 8-5.92 6.24-10.72 20-9.31 32.58 2 17.91 24.3 17.27 42.14 12.93.3-3.15 1.07-5.84 1.55-8.79-7.35 2.74-20.1 6.58-27.66 1.81-5.71-3.61-5.74-12.75-3.88-20.69 12-.38 24.45-.31 36.45 0 .77-5.63 2.95-11.76 1-17.32-2.48-7.33-11.48-9.23-20.65-8.52zm-97.73 1c-.3 0-.28.41-.26.77-2.45 18.33-5.76 35.78-9.3 53h11.11c2.67-18.45 5.73-36.5 9.57-53.78zm290.1.26c-9.83-4.91-18 3.33-21.2 8.27.91-2.54 1-5.93 1.81-8.53h-9.83q-4 27.71-9.57 53.78h11.38c.07-7.13 1.47-12.4 2.59-19.39 2.37-14.93 5.86-31.3 23.27-26.38.57-2.49.81-5.35 1.55-7.72zM245.11 64.38c-1-2.65-1.29-7-1-10.34.58-7.47 3.3-16.57 7.5-20.69 5.8-5.68 17.24-4.74 26.37-1.55.29-3.08.9-5.82 1.3-8.79-15-2.44-29.19-.92-36.72 7-7.37 7.74-12.21 25.53-8.79 36.72 3.92 13.07 21.92 13.78 36.42 8.77.64-2.63 1-5.57 1.55-8.28-7.94 4.13-23.11 6.27-26.63-2.84zm-6.21-41.11c-9.86-4-17.61 2.75-21.2 9 .82-2.81 1.15-6.09 1.81-9h-9.82c-2.41 18.63-5.95 36.12-9.31 53.78h11.12c1.55-10.49 2.23-24.62 5.68-34.65 2.77-8 10-14.84 20.43-11.12.15-2.95.99-5.18 1.29-8.01zM59.69 1.55c-1.55 10.31-3.34 20.41-5.14 30.55-11.51.12-23.27.57-34.38-.26 2.1-9.88 3.6-20.35 5.68-30.25H13.44C9 26.76 4.96 52.36 0 77.1h12.69c2-12.67 3.84-25.46 6.46-37.49 10.8-.27 23.75-.73 34.13.26-2.16 12.46-4.75 24.52-6.74 37.23h12.67c4.07-25.63 8.36-51 13.48-75.55zm31.58 11.38c2.22-1.53 5.07-8.48 1.81-11.38-1-.92-2.76-1.18-5.17-.77a6.24 6.24 0 00-4.4 2.32c-1.4 1.92-2.69 7.68-.52 9.83s6.87 1 8.28 0z","fill","#fff"],[1,"logo","logo-diners"],["xmlns","http://www.w3.org/2000/svg","width","100%","height","100%","viewBox","0 0 234.16 60.97"],["d","M45.18 60.97c16.7.08 31.94-13.59 31.94-30.22C77.12 12.57 61.88 0 45.18 0H30.81C13.91 0 0 12.57 0 30.75c0 16.64 13.91 30.3 30.81 30.22h14.37","fill","#006095"],["d","M37.22 46.95v-33a17.67 17.67 0 010 33M13.15 30.43a17.74 17.74 0 0111.38-16.51v33a17.72 17.72 0 01-11.38-16.49M30.87 2.52a27.91 27.91 0 1028 27.91 27.94 27.94 0 00-28-27.91","fill","#fff"],["d","M86.91 13.12c0-2.88-1.5-2.69-3-2.72v-.84c1.25.06 2.54.06 3.79.06s3.18-.06 5.56-.06c8.32 0 12.85 5.55 12.85 11.23 0 3.17-1.86 11.15-13.24 11.15-1.63 0-3.15-.06-4.65-.06s-2.86 0-4.31.06v-.83c1.93-.19 2.86-.26 3-2.44zm3.15 15c0 2.47 1.77 2.76 3.34 2.76 7 0 9.22-5.23 9.22-10 0-6-3.85-10.32-10-10.32-1.32 0-1.93.09-2.51.13zm17.26 2.99h.61c.89 0 1.54 0 1.54-1.06v-8.69c0-1.41-.48-1.6-1.67-2.24v-.52c1.51-.45 3.31-1.05 3.43-1.15a1.13 1.13 0 01.58-.16c.16 0 .23.19.23.45v12.31c0 1.06.7 1.06 1.61 1.06h.54v.83c-1.09 0-2.22-.06-3.37-.06s-2.32 0-3.5.06zm3.43-18.76a1.65 1.65 0 01-1.57-1.6 1.64 1.64 0 011.54-1.54 1.57 1.57 0 011.6 1.54 1.6 1.6 0 01-1.6 1.6zm6.49 9.2c0-1.18-.35-1.5-1.86-2.11v-.61a44.54 44.54 0 004.24-1.54c.1 0 .19.06.19.32v2.08c1.83-1.31 3.41-2.4 5.56-2.4 2.73 0 3.7 2 3.7 4.49v8.27c0 1.06.7 1.06 1.6 1.06h.58v.83c-1.13 0-2.25-.06-3.4-.06s-2.32 0-3.47.06v-.83h.57c.9 0 1.54 0 1.54-1.06v-8.3c0-1.83-1.12-2.73-2.95-2.73a8.51 8.51 0 00-3.73 1.54v9.49c0 1.06.71 1.06 1.61 1.06h.58v.83c-1.13 0-2.25-.06-3.41-.06s-2.31 0-3.47.06v-.83h.58c.9 0 1.54 0 1.54-1.06zm16.45 1.54a8.64 8.64 0 000 1.86c.19 3.05 2.16 5.55 4.72 5.55a6.14 6.14 0 004.34-2.15l.45.45c-1.48 2-3.31 3.62-5.94 3.62-5.11 0-6.14-4.93-6.14-7 0-6.28 4.24-8.14 6.49-8.14 2.61 0 5.4 1.63 5.43 5a3.69 3.69 0 010 .58l-.29.19zm5.69-1c.8 0 .9-.42.9-.8a2.72 2.72 0 00-2.8-2.95c-2 0-3.3 1.44-3.69 3.75zm4.4 9h.87c.9 0 1.54 0 1.54-1.06v-9c0-1-1.19-1.19-1.67-1.44v-.48c2.34-1 3.63-1.83 3.92-1.83s.29.1.29.42v2.88h.07c.8-1.25 2.15-3.3 4.11-3.3a1.75 1.75 0 011.83 1.7 1.56 1.56 0 01-1.51 1.64c-1 0-1-.78-2.12-.78a2.71 2.71 0 00-2.35 2.67v7.53c0 1.06.64 1.06 1.54 1.06h1.8v.83c-1.77 0-3.11-.06-4.49-.06s-2.67 0-3.83.06zm12.37-3.62c.42 2.11 1.7 3.91 4 3.91 1.89 0 2.6-1.16 2.6-2.28 0-3.78-7-2.56-7-7.73 0-1.79 1.45-4.1 5-4.1a8.49 8.49 0 013.66.93l.22 3.27h-.73c-.33-2-1.45-3.17-3.51-3.17a2.25 2.25 0 00-2.5 2.11c0 3.76 7.45 2.6 7.45 7.63 0 2.12-1.7 4.37-5.53 4.37a8.45 8.45 0 01-3.91-1.09l-.36-3.69zm38.17-12.11h-.8c-.61-3.74-3.28-5.25-6.87-5.25s-9.07 2.46-9.07 10.16c0 6.48 4.63 11.13 9.58 11.13a6.54 6.54 0 006.46-5.55l.74.19-.74 4.68a18 18 0 01-7.1 1.7c-7.52 0-12.27-4.84-12.27-12 0-6.58 5.87-11.29 12.17-11.29a23.35 23.35 0 017.58 1.7zm1.16 15.75h.61c.9 0 1.54 0 1.54-1.06V12.21c0-2.08-.48-2.15-1.7-2.5v-.5a21 21 0 003.39-1.41 3.76 3.76 0 01.7-.36c.2 0 .26.2.26.46v22.15c0 1.06.71 1.06 1.61 1.06h.54v.83c-1.09 0-2.21-.06-3.37-.06s-2.31 0-3.5.06zm20.66-.9c0 .58.35.61.9.61h1.28v.67a31.8 31.8 0 00-4.62 1l-.17-.1v-2.6c-1.92 1.57-3.4 2.7-5.69 2.7a3.47 3.47 0 01-3.52-3.88V20.4c0-.83-.13-1.64-1.92-1.8V18c1.16 0 3.72-.23 4.14-.23s.36.23.36.93v8.27c0 1 0 3.72 2.79 3.72a7.19 7.19 0 003.89-1.95v-8.63c0-.64-1.55-1-2.7-1.31v
3-.59c2.89-.19 4.69-.45 5-.45s.26.23.26.58zm6.39-10.58c1.29-1.09 3-2.31 4.79-2.31 3.73 0 6 3.24 6 6.73 0 4.2-3.08 8.41-7.68 8.41a9.5 9.5 0 01-4.46-1.13l-1 .74-.68-.35a37.17 37.17 0 00.45-5.71v-13.8c0-2.08-.48-2.15-1.7-2.5v-.5a21.39 21.39 0 003.31-1.38 3.44 3.44 0 01.71-.36c.19 0 .25.2.25.46zm0 8.72a3.45 3.45 0 003.31 3.27c3.44 0 4.88-3.37 4.88-6.22 0-3.46-2.63-6.35-5.14-6.35a5 5 0 00-3 1.51zM83.92 50.59h.25c.63 0 1.29-.09 1.29-1v-9.14c0-.91-.66-1-1.29-1h-.25v-.53c.69 0 1.74.07 2.59.07s1.92-.07 2.75-.07v.53h-.25c-.63 0-1.29.08-1.29 1v9.14c0 .91.66 1 1.29 1h.25v.52c-.84 0-1.89-.07-2.76-.07s-1.89.07-2.58.07zm17.4-2.92V41.1a1.44 1.44 0 00-1.52-1.64h-.38v-.53c.82 0 1.62.07 2.44.07s1.44-.07 2.15-.07v.53h-.26c-.73 0-1.56.14-1.56 2.21v7.94a11 11 0 00.11 1.76h-.67l-9-10v7.19c0 1.52.3 2 1.64 2h.3v.52c-.75 0-1.5-.07-2.25-.07s-1.59.07-2.38.07v-.52h.25c1.2 0 1.57-.82 1.57-2.22v-7.31a1.57 1.57 0 00-1.59-1.57h-.25v-.53c.66 0 1.35.07 2 .07s1-.07 1.56-.07zm5.34-7.86c-1.31 0-1.36.31-1.62 1.58h-.53c.07-.49.16-1 .21-1.48a10.42 10.42 0 00.11-1.48h.42c.14.52.57.5 1.05.5h9c.47 0 .9 0 .94-.54l.42.07c-.07.47-.14.94-.19 1.42s0 .94 0 1.41l-.52.19c0-.64-.12-1.67-1.29-1.67h-2.94v9.28c0 1.34.61 1.5 1.45 1.5h.33v.52c-.68 0-1.91-.07-2.85-.07s-2.27.07-3 .07v-.52h.33c1 0 1.45-.09 1.45-1.47v-9.31zm10.58 10.78h.24c.63 0 1.3-.09 1.3-1v-9.14c0-.91-.67-1-1.3-1h-.24v-.53c1.06 0 2.88.07 4.35.07s3.29-.07 4.47-.07v2.67l-.53.14c-.08-1.13-.29-2-2.13-2h-2.42v4.57h2.07c1 0 1.28-.59 1.39-1.53h.52v4l-.52.1c-.11-1-.16-1.72-1.37-1.72h-2.09v4.06c0 1.13 1 1.13 2.13 1.13 2.09 0 3-.14 3.55-2.12l.48.12c-.22.92-.43 1.85-.59 2.77-1.12 0-3.13-.07-4.7-.07s-3.66.07-4.65.07zm12.3-9.81c0-1.27-.7-1.32-1.24-1.32h-.31v-.53c.56 0 1.64.07 2.71.07s1.88-.07 2.81-.07c2.2 0 4.16.6 4.16 3.08a3.31 3.31 0 01-2.43 3.07l3 4.46a1.94 1.94 0 001.7 1.05v.52c-.58 0-1.14-.07-1.72-.07s-1.1.07-1.64.07a48.32 48.32 0 01-3.64-5.65h-1.15v3.75c0 1.35.63 1.4 1.43 1.4h.32v.52c-1 0-2-.07-3-.07-.84 0-1.66.07-2.53.07v-.52h.31c.65 0 1.24-.3 1.24-.94zm2.24 4h.86c1.68.05 2.68-.57 2.68-2.67a2.39 2.39 0 00-2.56-2.55c-.52 0-.74.06-1 .07zm20 2.84V41.1a1.44 1.44 0 00-1.52-1.64h-.39v-.53c.83 0 1.63.07 2.45.07s1.43-.07 2.15-.07v.53h-.26c-.73 0-1.56.14-1.56 2.21v7.94a11 11 0 00.11 1.76h-.66l-9-10v7.19c0 1.52.3 2 1.64 2h.3v.52c-.75 0-1.5-.07-2.25-.07s-1.59.07-2.38.07v-.52h.24c1.21 0 1.58-.82 1.58-2.22v-7.31a1.57 1.57 0 00-1.59-1.57h-.23v-.53c.66 0 1.35.07 2 .07s1-.07 1.56-.07zm5.54.95a6.78 6.78 0 00-.39 1.36c0 .52.73.61 1.31.61h.19v.52c-.7 0-1.41-.06-2.12-.06s-1.25 0-1.88.06v-.52h.1a1.57 1.57 0 001.52-1.14l2.8-8a13.76 13.76 0 00.65-2.17 8.82 8.82 0 001.59-.75.32.32 0 01.14 0 .12.12 0 01.12.05c.06.14.1.3.16.44l3.22 9.12c.21.61.41 1.26.64 1.78a1.12 1.12 0 001.16.7h.1v.52c-.78 0-1.57-.06-2.41-.06s-1.73 0-2.62.06v-.52h.19c.4 0 1.08-.07 1.08-.51a5.32 5.32 0 00-.35-1.25l-.68-2h-4zm2.55-7.73l-1.62 4.94h3.26zm7.53-1.08c-1.31 0-1.36.31-1.63 1.58h-.52c.07-.49.16-1 .21-1.48a10.41 10.41 0 00.1-1.48h.42c.14.52.58.5 1.05.5h9c.47 0 .91 0 1-.54l.42.07c-.07.47-.14.94-.19 1.42s0 .94 0 1.41l-.53.19c0-.64-.12-1.67-1.29-1.67h-2.86v9.28c0 1.34.61 1.5 1.45 1.5h.33v.52c-.68 0-1.91-.07-2.85-.07s-2.27.07-3 .07v-.52h.34c1 0 1.45-.09 1.45-1.47v-9.26zm10.66 10.78h.26c.63 0 1.29-.09 1.29-1v-9.09c0-.91-.66-1-1.29-1h-.25v-.53c.68 0 1.73.07 2.59.07s1.92-.07 2.74-.07v.53h-.24c-.63 0-1.3.08-1.3 1v9.14c0 .91.67 1 1.3 1h.16v.52c-.84 0-1.89-.07-2.76-.07s-1.89.07-2.57.07zm12.26-11.87c3.72 0 6.69 2.31 6.69 6a6.4 6.4 0 01-6.6 6.68c-3.71 0-6.54-2.51-6.54-6.26a6.35 6.35 0 016.45-6.42zm.26 11.94c3.39 0 4-3 4-5.53s-1.37-5.64-4.28-5.64c-3.06 0-4 2.72-4 5.06.02 3.12 1.47 6.11 4.3 6.11zm18.21-2.94V41.1a1.44 1.44 0 00-1.47-1.64h-.37v-.53c.81 0 1.62.07 2.44.07s1.43-.07 2.15-.07v.53h-.22c-.73 0-1.56.14-1.56 2.21v7.94a11 11 0 00.11 1.76h-.67l-9-10v7.19c0 1.52.3 2 1.64 2h.3v.52c-.75 0-1.5-.07-2.25-.07s-1.6.07-2.38.07v-.52h.24c1.21 0 1.57-.82 1.57-2.22v-7.31a1.56 1.56 0 00-1.59-1.57h-.22v-.53c.66 0 1.34.07 2 .07s1-.07 1.55-.07zm5.54.95a7.33 7.33 0 00-.38 1.36c0 .52.73.61 1.31.61h.19v.52c-.7 0-1.42-.06-2.11-.06s-1.26 0-1.89.06v-.52h.1a1.58 1.58 0 001.52-1.14l2.8-8a13.76 13.76 0 00.65-2.17 8.82 8.82 0 001.59-.75.35.35 0 01.
314 0 .12.12 0 01.12.05l.16.44 3.21 9.12c.21.61.42 1.26.65 1.78a1.12 1.12 0 001.16.7h.1v.52c-.79 0-1.57-.06-2.41-.06s-1.73 0-2.63.06v-.52h.2c.4 0 1.08-.07 1.08-.51a5.88 5.88 0 00-.35-1.25l-.68-2h-4zm2.56-7.73l-1.63 4.94h3.27zm11.17 8.51c0 .7.48.91 1 1a13.81 13.81 0 002.31 0 2.51 2.51 0 001.68-1 4 4 0 00.54-1.25h.51c-.19 1-.44 2-.65 3-1.53 0-3.08-.06-4.61-.06s-3.08.06-4.62.06v-.52h.24c.63 0 1.32-.09 1.32-1.17v-9c0-.91-.69-1-1.32-1h-.14v-.53c.93 0 1.84.07 2.76.07s1.77-.07 2.66-.07v.53h-.44c-.66 0-1.18 0-1.18.94z","fill","#1a1918"],[1,"logo","logo-discover"],["xmlns","http://www.w3.org/2000/svg","width","100%","height","100%",0,"xmlns","xlink","http://www.w3.org/1999/xlink","version","1.0","viewBox","0 0 251.15 158.68"],["id","a","d","M242.646 158.68H8.504c-4.677 0-8.504-3.827-8.504-8.504V8.504C0 3.827 3.827 0 8.504 0h234.142c4.677 0 8.504 3.827 8.504 8.504v141.672c0 4.677-3.827 8.504-8.504 8.504z"],["id","b"],[0,"xlink","href","#a","overflow","visible"],["clip-path","url(#b)","fill","#FFF","d","M-1.208-1.149l253.535-.014v161.47l-253.499.005z"],["clip-path","url(#b)","fill","#F48120","d","M251.432 88.638s-69.28 48.886-196.164 70.766h196.164V88.638z"],["clip-path","url(#b)","fill","#231F20","d","M20.224 47.886H9.644v36.951h10.524c5.596 0 9.637-1.32 13.184-4.266 4.215-3.488 6.708-8.746 6.708-14.184.001-10.904-8.147-18.501-19.836-18.501zm8.42 27.758c-2.265 2.045-5.206 2.937-9.863 2.937h-1.934V54.147h1.934c4.657 0 7.483.833 9.863 2.988 2.493 2.219 3.992 5.659 3.992 9.198 0 3.548-1.499 7.093-3.992 9.311zM43.377 47.886h7.208v36.951h-7.208zM68.209 62.066c-4.325-1.6-5.595-2.656-5.595-4.652 0-2.328 2.263-4.096 5.369-4.096 2.16 0 3.934.887 5.812 2.992l3.771-4.938c-3.099-2.711-6.807-4.097-10.858-4.097-6.538 0-11.525 4.54-11.525 10.588 0 5.091 2.322 7.697 9.091 10.133 2.822.995 4.258 1.658 4.983 2.104 1.44.94 2.161 2.272 2.161 3.823 0 2.994-2.38 5.212-5.596 5.212-3.438 0-6.207-1.719-7.866-4.928L53.3 78.691c3.321 4.874 7.309 7.035 12.793 7.035 7.49 0 12.744-4.98 12.744-12.133 0-5.871-2.429-8.529-10.628-11.527zM81.111 66.387c0 10.861 8.529 19.283 19.504 19.283 3.103 0 5.76-.61 9.037-2.153v-8.485c-2.882 2.884-5.434 4.047-8.701 4.047-7.259 0-12.411-5.263-12.411-12.746 0-7.094 5.315-12.691 12.076-12.691 3.438 0 6.04 1.227 9.037 4.158v-8.481c-3.164-1.605-5.765-2.27-8.867-2.27-10.921.002-19.675 8.595-19.675 19.338zM166.799 72.706l-9.854-24.82h-7.874l15.682 37.899h3.878l15.963-37.899h-7.813zM187.853 84.837h20.441v-6.255h-13.239v-9.974h12.751v-6.259h-12.751v-8.202h13.239v-6.261h-20.441zM236.831 58.795c0-6.918-4.765-10.909-13.077-10.909h-10.687v36.951h7.199V69.993h.94l9.976 14.844h8.864L228.414 69.27c5.428-1.104 8.417-4.817 8.417-10.475zm-14.459 6.103h-2.105V53.706h2.219c4.489 0 6.929 1.881 6.929 5.477 0 3.715-2.44 5.715-7.043 5.715z"],["clip-path","url(#b)"],["id","c","gradientUnits","userSpaceOnUse","x1","141.724","y1","76.436","x2","128.113","y2","97.746","gradientTransform","matrix(1 0 0 -1 0 158.68)"],["offset","0","stop-color","#f89f20"],["offset",".25","stop-color","#f79a20"],["offset",".533","stop-color","#f68d20"],["offset",".62","stop-color","#f58720"],["offset",".723","stop-color","#f48120"],["offset","1","stop-color","#f37521"],["fill","url(#c)","cx","131.662","cy","66.49","r","19.657"],["id","d","gradientUnits","userSpaceOnUse","x1","139.574","y1","76.726","x2","119.682","y2","115.606","gradientTransform","matrix(1 0 0 -1 0 158.68)"],["offset","0","stop-color","#f58720","stop-opacity","0"],["offset",".359","stop-color","#e16f27","stop-opacity",".27"],["offset",".703","stop-color","#d4602c","stop-opacity",".53"],["offset",".982","stop-color","#d05b2e","stop-opacity",".74"],["opacity",".65","fill","url(#d)","cx","131.662","cy","66.49","r","19.657"],["clip-path","url(#b)","fill","#231F20"],["d","M241.432 49.275c0-.648-.446-1.002-1.23-1.002h-1.043v3.248h.775v-1.26l.909 1.26h.946l-1.068-1.339c.459-.123.711-.456.711-.907zm-1.366.444h-.131v-.849h.139c.383 0 .583.138.583.418 0 .286-.202.431-.591.431z"],["d","M240.359 47.06a2.815 2.815 0 00-2.829 2.831 2.825 2.825 0 002.829 2.832c1.536 0 2.795-1.274 2.795-2.832 0-1.551-1.259-2.831-2.795-2.831zm-.012 5.157c-1.241 0-2.256-1.033-2.256-2.322 0-1.293 1.002-2.325 2.256-2.325 1.235 0 2.242 1.056 2.242 2.325 0 1.278-1.006 2.322-2.242 2.322z"],[1,"data"],[1,"chip"],[1,"number"],[1,"name"],["data-before","mm/aa","data-after","v\xe1lido at\xe9",1,"expire"],[1,"back"],[1,"bar"],[1,"cvv"]],template:function(n,r){1&n&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),we(),a(5,"svg",5)(6,"def
3s")(7,"style"),h(8,".cls-3{fill:#fff}"),l()(),B(9,"path",6)(10,"path",7)(11,"path",8)(12,"path",9)(13,"path",10),l()(),Pe(),a(14,"div",11),we(),a(15,"svg",12)(16,"defs")(17,"style"),h(18,".cls-2{fill-rule:evenodd;fill:#fff200}"),l()(),B(19,"path",13)(20,"path",14)(21,"path",15)(22,"path",16)(23,"path",17),l()(),Pe(),a(24,"div",18),we(),a(25,"svg",19)(26,"defs")(27,"style"),h(28,".cls-4{fill:#010101}"),l()(),B(29,"path",20)(30,"path",21)(31,"path",22)(32,"path",23)(33,"path",24),l()(),Pe(),a(34,"div",25),we(),a(35,"svg",26),B(36,"path",27)(37,"path",28)(38,"path",29)(39,"path",30)(40,"path",31)(41,"path",32)(42,"path",33),a(43,"g"),B(44,"path",34),l()()(),Pe(),a(45,"div",35),we(),a(46,"svg",26),B(47,"path",36)(48,"path",37)(49,"path",38)(50,"path",39)(51,"path",40)(52,"path",41)(53,"path",42)(54,"path",43)(55,"path",44)(56,"path",45)(57,"path",46)(58,"path",47),l()(),Pe(),a(59,"div",48),we(),a(60,"svg",49),B(61,"path",50)(62,"path",51),l()(),Pe(),a(63,"div",52),we(),a(64,"svg",53)(65,"defs")(66,"style"),h(67,".fil0{fill:#fff}"),l()(),a(68,"g",54)(69,"g",55),B(70,"path",56)(71,"path",57)(72,"path",58)(73,"path",59)(74,"path",60),l()(),B(75,"path",61),l()(),Pe(),a(76,"div",62),we(),a(77,"svg",63)(78,"defs")(79,"clipPath",64),B(80,"path",65),l()(),a(81,"g",66),B(82,"path",67),l(),B(83,"path",68)(84,"path",69)(85,"path",70),l()(),Pe(),a(86,"div",71),we(),a(87,"svg",26),B(88,"path",72)(89,"path",73)(90,"path",74)(91,"path",75)(92,"path",76)(93,"path",77)(94,"path",78),a(95,"g"),B(96,"path",79),l(),a(97,"g"),B(98,"path",80),l(),a(99,"g"),B(100,"path",81),l()()(),Pe(),a(101,"div",82),we(),a(102,"svg",83)(103,"g",84),B(104,"path",85)(105,"path",86)(106,"path",87),l()()(),Pe(),a(107,"div",88),we(),a(108,"svg",89),B(109,"path",90),l()(),Pe(),a(110,"div",91),we(),a(111,"svg",92),B(112,"path",93)(113,"path",94)(114,"path",95),l()(),Pe(),a(115,"div",96),we(),a(116,"svg",97)(117,"defs"),B(118,"path",98),l(),a(119,"clipPath",99),B(120,"use",100),l(),B(121,"path",101)(122,"path",102)(123,"path",103),a(124,"g",104)(125,"linearGradient",105),B(126,"stop",106)(127,"stop",107)(128,"stop",108)(129,"stop",109)(130,"stop",110)(131,"stop",111),l(),B(132,"circle",112),a(133,"linearGradient",113),B(134,"stop",114)(135,"stop",115)(136,"stop",116)(137,"stop",117),l(),B(138,"circle",118),l(),a(139,"g",119),B(140,"path",120)(141,"path",121),l()()(),Pe(),a(142,"div",122),B(143,"div",123),a(144,"div",124),h(145),l(),a(146,"div",125),h(147),l(),a(148,"div",126),h(149),l()()(),a(150,"div",127),B(151,"div",128),a(152,"div",129),h(153),l(),B(154,"div",123),l()()()()),2&n&&(c(2),d("ngClass",Us(5,FZ,r.found,r.flip)),c(143),de(r.dataNumberCard),c(2),de(r.dataNameCard),c(2),de(r.dataExpiresCard),c(4),de(r.dataCVVCard))},dependencies:[ui],encapsulation:2})}return t})();const NZ=["number"],Zp=function(t){return{"jet-btn-loading":t}};function OZ(t,i){if(1&t){const e=ve();a(0,"div",89)(1,"div",90),we(),a(2,"svg",91),B(3,"path",92),l()(),Pe(),a(4,"div",93)(5,"span",94),h(6),Wi(7,"date"),l(),a(8,"span"),h(9,"Pr\xf3xima recorr\xeancia"),l(),a(10,"button",95),J("click",function(){return M(e),L(_(2).showModal("#modalDate"))}),h(11,"Alterar Data"),l()(),a(12,"div",96)(13,"button",97),J("click",function(){return M(e),L(_(2).cancelRecurrency())}),h(14,"Cancelar Assinatura"),l()()()}if(2&t){const e=_(2);c(6),de(vd(7,4,e.recurrentDetail.recurrencyDay,"dd/MM/yyyy")),c(4),d("className",e.dataClassButton),c(3),d("className",e.dataClassButton)("ngClass",Oe(7,Zp,e.loading))}}function RZ(t,i){if(1&t){const e=ve();a(0,"button",98),J("click",function(){return M(e),L(_(2).showModal("#modalFrequency"))}),we(),a(1,"svg",99),B(2,"path",100),l(),h(3),l()}if(2&t){const e=_(2);c(3),dt(" ",e.recurrentDetail.interval.toUpperCase()," ")}}function BZ(t,i){if(1&t&&(a(0,"span",101),h(1),l()),2&t){const e=_(2);c(1),de(e.recurrentDetail.interval.toUpperCase())}}function jZ(t,i){if(1&t){const e=ve();a(0,"button",102),J("click",function(){return M(e),L(_(2).showModal("#modalPayment"))}),we(),a(1,"svg",99),B(2,"path",100),l(),h(3),l()}if(2&t){const e=_(2);c(3),dt(" ",e.formatBrand(e.recurrentDetail.recurrentPaymentBrand)," ")}}function VZ(t,i){if(1&t&&(a(0,"span",103),h(1),l()),2&t){const e=_(2);c(1),de(e.formatBrand(e.recurrentDetail.recurrentPaymentBrand))}}function HZ(t,i){if(1&t&&(a(0,"span")(1,"p")(2,"strong"),h(3),l(),h(4),l()()),2&t){const e=i.$implicit;c(3),dt(" ",e.nameReference," "),c(1),dt(" : ",e.nameVariation," ")}}function zZ(t,i){if(1&t&&(a(0,"tr")(1,"td")(2,"div",104),B(3,"img",105),a(4,"div",106)(5,"span")(6,"strong"),h(7),l()(),C(8,HZ,5,2,"span",34),l()()(),a(9,"td",33),h(10),l(),a(11,"td",33),h(12),l(),a(13,"td",33),h(14),l()()),2&t){const e=i.$implicit,n=_(2);c(3),Ue("src",e.imagem,fe),Ue("alt",e.name),c(4),de(e.name),c(1),d("ngForOf",e.orderItemVariations),c(2),de(n.commomService.priceMask(e.priceRecurrent)),c(2),de(n.pad(e.quantity)),c(2),de(n.commomService.priceMask(e.priceTotalRecurrent))}}function qZ(t,i){if(1&t&&(a(0,"tr")(1,"td",35)(2,"span",107),h(3),l()()()),2&t){const e=_(2);c(3),dt("Juros: ",e.commomService.priceMask(null==e.recurrentDetail.interestValue?0:e.recurrentDetail.interestValue),"")}}function $Z(t,i){if(1&t){const e=ve();a(0,"div",110),J("click",function(){M(e);const r=_().$implicit;return L(_(2).goToOrder(r.idOrder))}),we(),a(1,"svg",111),B(2,"path",112),l()()}2&t&&d("className",_(3).dataClassButton+" btn-preview")}
3function UZ(t,i){if(1&t&&(a(0,"tr")(1,"td"),h(2),l(),a(3,"td"),h(4),l(),a(5,"td"),h(6),l(),a(7,"td"),h(8),l(),a(9,"td"),h(10),l(),a(11,"td",108),C(12,$Z,3,1,"div",109),l()()),2&t){const e=i.$implicit,n=_(2);c(2),de(0==e.idOrder?" - ":e.idOrder),c(2),de(n.formatDate(0==e.idOrder?e.nextDayRecurrent:e.date)),c(2),de(e.total?n.commomService.priceMask(e.total):""),c(2),de(e.paymentName),c(2),de(e.status),c(2),d("ngIf",0!=e.idOrder)}}function GZ(t,i){if(1&t&&(a(0,"option",113),h(1),l()),2&t){const e=i.$implicit;d("value",e.idCompraAutomaticaTipoEntrega),c(1),dt(" ",e.tipoEntrega," ")}}function WZ(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function JZ(t,i){1&t&&(a(0,"span"),h(1,"Cart\xe3o inv\xe1lido"),l())}function ZZ(t,i){if(1&t&&(a(0,"div",114),C(1,WZ,2,0,"span",38),C(2,JZ,2,0,"span",38),l()),2&t){const e=_(2);c(1),d("ngIf",e.shared.formCredit.number.errors.required),c(1),d("ngIf",e.shared.formCredit.number.errors.incorrect)}}function QZ(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function YZ(t,i){1&t&&(a(0,"span"),h(1,"Campo Inv\xe1lido"),l())}function KZ(t,i){if(1&t&&(a(0,"div",114),C(1,QZ,2,0,"span",38),C(2,YZ,2,0,"span",38),l()),2&t){const e=_(2);c(1),d("ngIf",e.shared.formCredit.validDate.errors.required),c(1),d("ngIf",e.shared.formCredit.validDate.errors.incorrect)}}function XZ(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function eQ(t,i){1&t&&(a(0,"span"),h(1,"CVV incorreto"),l())}function tQ(t,i){if(1&t&&(a(0,"div",114),C(1,XZ,2,0,"span",38),C(2,eQ,2,0,"span",38),l()),2&t){const e=_(2);c(1),d("ngIf",e.shared.formCredit.cvv.errors.required),c(1),d("ngIf",e.shared.formCredit.cvv.errors.maxlength)}}function nQ(t,i){1&t&&(a(0,"span"),h(1,"Campo Obrigat\xf3rio"),l())}function iQ(t,i){if(1&t&&(a(0,"div",114),C(1,nQ,2,0,"span",38),l()),2&t){const e=_(2);c(1),d("ngIf",e.shared.formCredit.name.errors.required)}}function rQ(t,i){if(1&t){const e=ve();a(0,"div",2),C(1,OZ,15,9,"div",3),a(2,"div",4)(3,"div",5)(4,"div",6),h(5," Dados da Assinatura "),l(),a(6,"div",7),h(7,"C\xf3digo do Plano: "),a(8,"span",8),h(9),l()(),a(10,"div",9),h(11,"Ades\xe3o: "),a(12,"span",10),h(13),l()(),a(14,"div",11),h(15,"Per\xedodo de Entrega: "),C(16,RZ,4,1,"button",12),C(17,BZ,2,1,"span",13),l(),a(18,"div",14),h(19,"Forma de Pagamento: "),C(20,jZ,4,1,"button",15),C(21,VZ,2,1,"span",16),l(),a(22,"div",17),h(23,"Valor: "),a(24,"span",18),h(25),l()(),a(26,"div",19),h(27,"Status: "),a(28,"span",20),h(29),l()()(),a(30,"div",21)(31,"div",6),h(32," Local de Entrega "),l(),a(33,"div",22),h(34,"Endere\xe7o: "),a(35,"span",23),h(36),l()(),a(37,"div",24),h(38,"CEP: "),a(39,"span",25),h(40),l()(),a(41,"div",26),h(42,"Cidade: "),a(43,"span",27),h(44),l()(),a(45,"div",28),h(46,"Telefone: "),a(47,"span",29),h(48),l()(),a(49,"div",30),h(50,"Forma de Entrega: "),a(51,"span",31),h(52),l()()()(),a(53,"div",32)(54,"table",2)(55,"thead")(56,"tr")(57,"th"),h(58,"Produto"),l(),a(59,"th",33),h(60,"Valor Unit\xe1rio"),l(),a(61,"th",33),h(62,"QTD"),l(),a(63,"th",33),h(64,"Valor"),l()()(),a(65,"tbody"),C(66,zZ,15,7,"tr",34),l(),a(67,"tfoot")(68,"tr")(69,"td",35)(70,"span",36),h(71),l()()(),a(72,"tr")(73,"td",35)(74,"span",37),h(75),l()()(),C(76,qZ,4,1,"tr",38),a(77,"tr")(78,"td",35)(79,"span",39),h(80),l()()(),a(81,"tr")(82,"td",35)(83,"span",40),h(84,"Total: "),a(85,"strong"),h(86),l()()()()()()(),a(87,"div",41)(88,"table",2)(89,"thead")(90,"tr")(91,"th"),h(92,"Pedido"),l(),a(93,"th"),h(94,"Data do Pedido"),l(),a(95,"th"),h(96,"Total"),l(),a(97,"th"),h(98,"Pagamento"),l(),a(99,"th"),h(100,"Status"),l(),B(101,"th"),l()(),a(102,"tbody"),C(103,UZ,13,6,"tr",34),l()()(),a(104,"div",42)(105,"div",43)(106,"button",44),J("click",function(){return M(e),L(_().hideModal("#modalDate"))}),we(),a(107,"svg",45),B(108,"path",46),l(),Pe(),a(109,"span"),h(110,"Fechar"),l()(),a(111,"div",47)(112,"div",48)(113,"strong"),h(114,"Altera\xe7\xe3o do dia da recorr\xeancia"),l(),a(115,"p"),h(116,"Utilize o campo abaixo para escolher o dia desejado."),l()(),a(117,"div",49)(118,"input",50,51),J("ngModelChange",function(r){return M(e),L(_().selectedNewDate=r)}),l(),a(120,"div",52),J("click",function(){return M(e),L(_().expandData("expanded-content-data"))}),a(121,"strong"),h(122,"Clique aqui"),l(),h(123," para entender como a nova recorr\xeancia ser\xe1 aplicada."),l()(),a(124,"div",53)(125,"p")(126,"strong"),h(127,"1. Se o novo dia informado for depois do dia atual, iremos atualizar o dia da recorr\xeancia com efeito na pr\xf3xima recorr\xeancia."),l(),h(128," Ex.: Hoje \xe9 dia 05/05 e a pr\xf3xima recorr\xeancia \xe9 dia 25/05. Quando atualizado para o dia 10, a data da pr\xf3xima recorr\xeancia ser\xe1 dia 10/05. "),l(),a(129,"p")(130,"strong"),h(131,"2. Se o novo dia informado for antes do dia atual, iremos atualizar o dia da recorr\xeancia, mas este s\xf3 ter\xe1 efeito depois que a pr\xf3xima recorr\xeancia for executada com sucesso."),l(),h(132," Ex.: Hoje \xe9 dia 05/05 e a pr\xf3xima recorr\xeancia \xe9 dia 25/05. Quando atualizado para o dia 03, a data da pr\xf3xima recorr\xeancia permanecer\xe1 dia 25/05. Ap\xf3s sua execu\xe7\xe3o, a recorr\xeancia seguinte ser\xe1 agendada para o dia 03/06. "),l(),a(133,"p")(134,"strong"),h(135,"3. Se o novo dia informado for antes do dia atual, mas a pr\xf3xima recorr\xeancia for em outro m\xeas, iremos atualizar o dia da recorr\xeancia com efeito na pr\xf3xima recorr\xeancia."),l(),h(136," Ex.: Hoje \xe9 dia 05/05 e a pr\xf3xima recorr\xeancia \xe9 dia 25/09. Quando atualizado para o dia 03, a data da pr\xf3xima recorr\xeancia ser\xe1 03/09. "),l()()(),a(137,"div",54)(138,"button",55),J("click",function(){return M(e),L(_().hideModal("#modalDate"))}),h(139,"Cancelar"),l(),a(140,"button",56),J("click",function(){return M(e),L(_().saveNewDay())}),h(141,"Salvar Informa\xe7\xf5es"),l()()()(),a(142,"div",57)(143,"div",43)(144,"button",44),J("click",function(){return M(e),L(_().hideModal("#modalFrequency"))}),we(),a(145,"svg",45),B(146,"path",46),l(),Pe(),a(147,"span"),h(148,"Fechar"),l()(),a(149,"div",47)(1
350,"div",48)(151,"strong"),h(152,"Altera\xe7\xe3o de per\xedodo de entrega"),l(),a(153,"p"),h(154,"Selecione abaixo um novo per\xedodo de entrega"),l()(),a(155,"select",58),J("change",function(r){return M(e),L(_().setFrequencyRecurrency(r.target.value))}),a(156,"option",59),h(157,"Selecione"),l(),C(158,GZ,2,2,"option",60),l()(),a(159,"div",54)(160,"button",61),J("click",function(){return M(e),L(_().hideModal("#modalFrequency"))}),h(161,"Cancelar"),l(),a(162,"button",62),J("click",function(){return M(e),L(_().saveNewFrequency())}),h(163,"Salvar Informa\xe7\xf5es"),l()()()(),a(164,"div",63)(165,"div",43)(166,"button",44),J("click",function(){return M(e),L(_().hideModal("#modalPayment"))}),we(),a(167,"svg",45),B(168,"path",46),l(),Pe(),a(169,"span"),h(170,"Fechar"),l()(),a(171,"div",47)(172,"div",48)(173,"strong"),h(174,"Altera\xe7\xe3o da forma de pagamento"),l(),a(175,"p"),h(176,"Preencha os campos abaixo para atualizar a forma de pagamento"),l()(),a(177,"div",64),B(178,"button",65)(179,"select",66,67),a(181,"jet-virtual-card",68),J("newNumberEvent",function(r){return M(e),L(_().maskNumber(r,!1))})("newExpiresEvent",function(r){return M(e),L(_().maskExpires(r,!1))})("newCVVEvent",function(r){return M(e),L(_().maskCVV(r,!1))})("setBrandSelected",function(r){return M(e),L(_().setBrandSelected(r,!1))}),l(),a(182,"form",69)(183,"div",70)(184,"div",71)(185,"label",72),h(186,"N\xfamero:*"),l(),B(187,"input",73,74),C(189,ZZ,3,2,"div",75),l(),a(190,"div",76)(191,"div",77)(192,"label",78),h(193,"Data de Validade:*"),l(),B(194,"input",79,80),C(196,KZ,3,2,"div",75),l(),a(197,"div",81)(198,"label",82),h(199,"CVV:*"),l(),B(200,"input",83,84),C(202,tQ,3,2,"div",75),l()(),a(203,"div",85)(204,"label",86),h(205,"Nome:*"),l(),a(206,"input",87,88),J("keyup",function(r){return M(e),L(_().formatName(r.target.value))}),l(),C(208,iQ,2,1,"div",75),l()()()()(),a(209,"div",54)(210,"button",61),J("click",function(){return M(e),L(_().hideModal("#modalPayment"))}),h(211,"Cancelar"),l(),a(212,"button",62),J("click",function(){return M(e),L(_().saveNewPayment())}),h(213,"Salvar Informa\xe7\xf5es"),l()()()()()}if(2&t){const e=Wt(188),n=Wt(195),r=Wt(201),o=Wt(207),s=_();d("className",s.dataClassContainer),c(1),d("ngIf",s.recurrentDetail.status),c(8),de(s.recurrentDetail.planCode),c(4),de(s.recurrentDetail.createDate),c(3),d("ngIf",s.recurrentDetail.status),c(1),d("ngIf",0==s.recurrentDetail.status),c(3),d("ngIf",s.recurrentDetail.status),c(1),d("ngIf",0==s.recurrentDetail.status),c(4),de(s.commomService.priceMask(s.recurrentDetail.amount)),c(3),d("ngClass",s.recurrentDetail.status?"active":""),c(1),dt(" ",1==s.recurrentDetail.status?"Ativa":"Cancelada"," "),c(7),de(s.recurrentDetail.recurrentCustomer.recurrentAddress.address),c(4),de(s.recurrentDetail.recurrentCustomer.recurrentAddress.cep),c(4),de(s.recurrentDetail.recurrentCustomer.recurrentAddress.city),c(4),de(s.recurrentDetail.recurrentCustomer.telephone),c(4),de(s.recurrentDetail.shippingName),c(2),d("className",s.dataClassTable),c(12),d("ngForOf",s.recurrentDetail.recurrentItens),c(5),dt("Subtotal: ",s.commomService.priceMask(s.recurrentDetail.amountProducts),""),c(4),Eo("Frete ",s.recurrentDetail.shippingName,": ",s.commomService.priceMask(s.recurrentDetail.amountShipping),""),c(1),d("ngIf",null!=s.recurrentDetail.interestValue&&s.recurrentDetail.interestValue>0),c(4),dt("Desconto: ",s.commomService.priceMask(s.recurrentDetail.amountDiscount),""),c(6),de(s.commomService.priceMask(s.recurrentDetail.amount)),c(2),d("className",s.dataClassTable),c(15),d("ngForOf",s.recurrentDetail.recurrentOrders),c(15),d("ngModel",s.selectedNewDate),c(22),d("ngClass",Oe(46,Zp,s.loading)),c(16),ii("value",0),c(2),d("ngForOf",s.frequencyAvailable),c(4),d("ngClass",Oe(48,Zp,s.loading)),c(17),d("value",1),c(2),d("data-number-card",e)("data-name-card",o.value)("data-expires-card",n)("data-cvv-card",r)("data-shared",s.shared)("data-form",s.shared.creditCardForm)("data-method",s.shared.selectedPaymentMethod)("data-value-card",s.valueFirstCard),c(1),d("formGroup",s.shared.creditCardForm),c(7),d("ngIf",s.shared.formCredit.number.errors&&(s.shared.formCredit.number.dirty||s.shared.formCredit.number.touched)),c(7),d("ngIf",s.shared.formCredit.validDate.errors&&(s.shared.formCredit.validDate.dirty||s.shared.formCredit.validDate.touched)),c(6),d("ngIf",s.shared.formCredit.cvv.errors&&(s.shared.formCredit.cvv.dirty||s.shared.formCredit.cvv.touched)),c(6),d("ngIf",s.shared.formCredit.name.errors&&(s.shared.formCredit.name.dirty||s.shared.formCredit.name.touched)),c(4),d("ngClass",Oe(50,Zp,s.loading))}}let oQ=(()=>{class t{constructor(e,n,r,o,s,u,v){this.orderService=e,this.cdr=o,this.checkoutService=s,this.fb=u,this.sharedDataCommom=v,this.dataClassContainer="",this.dataClassTable="",this.dataClassButton="",this.selectedNewDate=null,this.loading=!1,this.commomService=n,this.shared=r,this.shared.commomService=n}ngOnInit(){this.dataClassContainer=""!=this.dataClassContainer?"jet-container "+this.dataClassContainer:"jet-container",this.dataClassButton=""!=this.dataClassButton?"jet-button "+this.dataClassButton:"jet-button",this.sharedDataCommom.currentCompany$.subscribe(e=>{null!=e&&(this.company=e,this.company.isRecurrentPurchaseActive?(this.shared.creditCardForm=this.fb.group({number:["",[oe.minLength(13),oe.required]],name:["",[oe.required]],validDate:["",[oe.required]],cvv:["",[oe.required,oe.maxLength(4)]],valueFirstCard:[""],parcel:[""]}),this.routeParameters(),this.getRecurrentDetails(),this.getPaymentMethods(),this.commomService.finishLoadComponent("onJetCustomerLoaded",{detail:{type:"customer",value:{name:decodeURIComponent("Detalhes da assinatura"),href:window.location.href}}}),this.getPaymentMethods(),this.shared.commomService.finishLoadComponent("onJetPaymentMethodsLoaded")):document.location="/customer")})}ngAfterViewChecked(){this.cdr.detectChanges(),this.shared.numberField=this.numberField}getRecurrentDetails(){this.orderService.getRecurrentDetails(this.recurrentID).subscribe(e=>{e&&(this.recurrentDetail=e,0==this.recurrentDetail.status&&(this.recurrentDetail.recurrentOrders=this.recurrentDetail.recurrentOrders.filter(n=>0!=n.idOrder)),this.getFrequencyAvailable())},e=>{this.commomService.displayMessageUser("error","Oops, est\xe1 assinatura n\xe3o foi localizada.")})}routeParameters(){let e=window.location.href.split("/").pop();null!=e&&(this.recurrentID=e)}pad(e){return null==e&&(e=0),e<10?"0"+e.toString():e.toString()}formatDate(e){let n=new Date(e);return n.toLocaleDateString()+" "+n.toLocaleTimeString()}
3goToOrder(e){window.location.href="/customer/order/details/"+e}showModal(e){document.querySelector(e).classList.remove("hideme")}hideModal(e){document.querySelector(e).classList.add("hideme"),"#modalPayment"==e&&this.shared.creditCardForm.reset()}saveNewDay(){if(this.loading=!0,null==this.selectedNewDate||null==this.selectedNewDate||this.selectedNewDate<=0||this.selectedNewDate>31)return this.loading=!1,void this.commomService.displayMessageUser("error","Dia da assinatura deve estar entre 01 e 31");this.orderService.setNewDayRecurrency(this.recurrentDetail.idRecurrentClient,this.recurrentDetail.recurrentPaymentId,this.selectedNewDate).subscribe(e=>{this.commomService.displayMessageUser("success","Data de entrega de sua Assinatura foi atualizada com sucesso."),this.loading=!1,this.hideModal("#modalDate"),this.getRecurrentDetails()},e=>{this.commomService.displayMessageUser("error","Oops, n\xe3o foi possivel atualizar a Data de sua assinatura."),this.loading=!1})}saveNewFrequency(){if(this.loading=!0,null==this.selectedFrequencyRecurrency||null==this.selectedFrequencyRecurrency||0==this.selectedFrequencyRecurrency)return this.loading=!1,void this.commomService.displayMessageUser("error","Selecione uma frequencia para atualizar a assinatura.");this.orderService.setNewFrequencyRecurrency(this.recurrentDetail.idRecurrentClient,this.recurrentDetail.recurrentPaymentId,this.selectedFrequencyRecurrency).subscribe(e=>{this.commomService.displayMessageUser("success","Periodo de entrega de sua Assinatura foi atualizada com sucesso."),this.loading=!1,this.hideModal("#modalFrequency"),this.getRecurrentDetails()},e=>{this.loading=!1,this.commomService.displayMessageUser("error","Oops, n\xe3o foi possivel atualizar sua assinatura.")})}expandData(e,n=!1){var r=document.getElementById(e);null!=r&&(r.style.maxHeight=r.style.maxHeight&&!n?null:r.scrollHeight+"px")}getFrequencyAvailable(){let e="";this.recurrentDetail.recurrentItens.forEach(n=>{e+=n.idProduct+","}),e=e.slice(0,-1),this.orderService.getFrequencyAvailable(e).subscribe(n=>{n&&(this.frequencyAvailable=n)})}setFrequencyRecurrency(e){this.selectedFrequencyRecurrency=e}cancelRecurrency(){this.commomService.displayMessageUser("confirm","Deseja mesmo cancelar sua assinatura?","",!1),document.addEventListener("onJetConfirm",()=>{this.loading=!0,this.orderService.cancelRecurrency(this.recurrentDetail.idRecurrentClient,this.recurrentDetail.recurrentPaymentId).subscribe(e=>{this.commomService.displayMessageUser("success","Sua Assinatura foi cancelada com sucesso."),this.loading=!1,this.getRecurrentDetails()},e=>{this.commomService.displayMessageUser("error","Oops, n\xe3o foi possivel cancelar sua assinatura."),this.loading=!1})},{passive:!0})}saveNewPayment(){if(0==this.shared.creditCardForm.valid)return void this.shared.creditCardForm.markAllAsTouched();this.loading=!0;let r={brand:document.querySelectorAll(".payment-method.active")[document.querySelectorAll(".payment-method.active").length-1].getAttribute("data-brand"),number:this.shared.creditCardForm.controls.number.value,expirationDate:this.shared.creditCardForm.controls.validDate.value,securityCode:this.shared.creditCardForm.controls.cvv.value,holder:this.shared.creditCardForm.controls.name.value};this.orderService.setNewPaymentRecurrent(this.recurrentDetail.idRecurrentClient,this.recurrentDetail.recurrentPaymentId,r).subscribe(o=>{this.commomService.displayMessageUser("success","Dados de pagamento de sua Assinatura foi atualizado com sucesso."),this.loading=!1,this.hideModal("#modalPayment"),this.getRecurrentDetails()},o=>{this.commomService.displayMessageUser("error","Oops, n\xe3o foi possivel atualizar dados de pagamento da sua assinatura."),this.loading=!1})}maskNumber(e,n){n?(this.shared.formCredit2.number.setValue(e),this.cdr.detectChanges()):(this.shared.formCredit.number.setValue(e),this.cdr.detectChanges())}maskExpires(e,n){n?(this.shared.formCredit2.validDate.setValue(e.value),e.valid||this.shared.formCredit2.validDate.setErrors({incorrect:!0}),this.cdr.detectChanges()):(this.shared.formCredit.validDate.setValue(e.value),e.valid||this.shared.formCredit.validDate.setErrors({incorrect:!0}),this.cdr.detectChanges())}
3maskCVV(e,n){n?(this.shared.formCredit2.cvv.setValue(e),this.cdr.detectChanges()):(this.shared.formCredit.cvv.setValue(e),this.cdr.detectChanges())}setBrandSelected(e,n){n?this.shared.selectedIdBrand2=e:this.shared.selectedIdBrand=e}formatName(e,n=!1){const r={a:"\xe1|\xe0|\xe3|\xe2|\xe4|\xc1|\xc0|\xc3|\xc2|\xc4",e:"\xe9|\xe8|\xea|\xeb|\xc9|\xc8|\xca|\xcb",i:"\xed|\xec|\xee|\xef|\xcd|\xcc|\xce|\xcf",o:"\xf3|\xf2|\xf5|\xf4|\xf6|\xd3|\xd2|\xd5|\xd4|\xd6",u:"\xfa|\xf9|\xfb|\xfc|\xda|\xd9|\xdb|\xdc",c:"\xe7|\xc7",n:"\xf1|\xd1"};for(const s in r){const u=new RegExp(r[s],"gi");e=e.replace(u,s)}e=e.replace(/[^A-Za-z\s.\-]/g,""),n?this.shared.formCredit2.name.setValue(e):this.shared.formCredit.name.setValue(e)}getPaymentMethods(){this.shared.selectedPaymentMethod=1,this.shared.selectedIdGateway=8,this.shared.cart={},this.shared.gateways$=this.checkoutService.getGateways().subscribe(e=>{this.shared.gateways=e,this.shared.listPaymentMethod=[],this.shared.gateways.length>0?document.addEventListener("paymentGetwayFinishLoad",n=>{this.shared.listPaymentMethod=[],this.shared.paymentDiscountText=[];let r=document.querySelectorAll(".payment-method:not(.shopping-voucher-button).active")[document.querySelectorAll(".payment-method:not(.shopping-voucher-button).active").length-1];this.shared.gateways.forEach(o=>{o.status&&o.paymentMethods.forEach(s=>{var u=this.shared.listPaymentMethod.filter(v=>v.idPaymentMethod==s.idPaymentMethod)[0];null!=u?s.paymentBrands.forEach(v=>{if(null==u.paymentBrands.filter(w=>w.idPaymentBrand==v.idPaymentBrand)[0]){let w=this.shared.listPaymentMethod.findIndex(P=>P.idPaymentMethod==s.idPaymentMethod);w>-1&&this.shared.listPaymentMethod[w].paymentBrands.push(v)}}):(s.idGateway=o.idPaymentGateway,s.gateway=o.name,this.shared.listPaymentMethod.push(s))})}),setTimeout(()=>{if(null!=r&&null!=r){let o=document.querySelectorAll(".payment-method:not(.shopping-voucher-button).active")[document.querySelectorAll(".payment-method:not(.shopping-voucher-button).active").length-1];r.dataset?.brand&&(o.getAttribute("data-brand")||o.setAttribute("data-brand",r.dataset?.brand))}},250)}):this.shared.commomService.displayMessageUser("error","N\xe3o existem formas de pagamento dispon\xedveis para finalizar sua compra")},e=>{this.shared.commomService.displayMessageUser("error","Erro ao recuperar as formas de pagamento.")})}formatBrand(e){let n=e.toUpperCase().split("CART\xc3O DE CR\xc9DITO").pop(),r=n;return"MASTER"===n&&(r="MASTERCARD"),r}static#e=this.\u0275fac=function(n){return new(n||t)($(Wh),$(qt),$(mv),$(Gl),$(Ss),$(ao),$(yn))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-recurrent-details"]],viewQuery:function(n,r){if(1&n&&Tu(NZ,5),2&n){let o;_d(o=Cd())&&(r.numberField=o.first)}},inputs:{dataClassContainer:["data-class-container","dataClassContainer"],dataClassTable:["data-class-table","dataClassTable"],dataClassButton:["data-class-button","dataClassButton"]},decls:2,vars:1,consts:[[1,"jet-recurrent-details"],[3,"className",4,"ngIf"],[3,"className"],["class","recurrent-day",4,"ngIf"],[1,"recurrent-data"],[1,"content","info"],[1,"title"],[1,"plan-code"],[1,"plan-code-value"],[1,"subscription-date"],[1,"subscription-date-value"],[1,"delivery-period"],["class","delivery-period-value",3,"click",4,"ngIf"],["class","delivery-period-value",4,"ngIf"],[1,"payment-method"],["class","payment-method-value",3,"click",4,"ngIf"],["class","payment-method-value",4,"ngIf"],[1,"price"],[1,"price-value"],[1,"status"],[1,"status-value",3,"ngClass"],[1,"content","address"],[1,"address"],[1,"address-value"],[1,"cep"],[1,"cep-value"],[1,"city"],[1,"city-value"],[1,"telephone"],[1,"telephone-value"],[1,"shipping-method"],[1,"shipping-method-value"],[1,"recurrent-products"],[1,"center"],[4,"ngFor","ngForOf"],["colspan","5","align","right"],[1,"value"],[1,"shipping"],[4,"ngIf"],[1,"discount"],[1,"total"],[1,"recurrent-orders"],["id","modalDate",1,"jet-modal","modalRecurrent","hideme"],[1,"jet-modal-content","modal-content","content-center"],[1,"jet-modal-close","modal-close",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 352 512",1,"icon"],["fill","currentColor","d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z",1,""],[1,"content"],[1,"jet-modal-title"],[1,"input-container"],["type","tel","maxlength","2","placeholder","Informe o dia da recorr\xeancia","autocomplete","off",3,"ngModel","ngModelChange"],["recurrentNewDate",""],[1,"text-small",3,"click"],["id","expanded-content-data",1,"content-box"],[1,"jet-modal-actions"],["type","button",1,"btn-cancel","modal
3-close",3,"click"],["type","button",1,"btn-save",3,"ngClass","click"],["id","modalFrequency",1,"jet-modal","modalRecurrent","hideme"],[3,"change"],["selected",""],[3,"value",4,"ngFor","ngForOf"],["type","button",1,"ui","button","btn-cancel","modal-close",3,"click"],["type","button",1,"ui","button","btn-save",3,"ngClass","click"],["id","modalPayment",1,"jet-modal","modalRecurrent","hideme"],[1,"card-recurrent"],["title","brand","data-id","8","data-name","BrasPag","data-method","1","data-brand","",1,"payment-method","credit-card","bulletGreen","active","hideme"],["id","slParcelamento","title","installment",1,"hideme",3,"value"],["slParcelamento",""],[3,"data-number-card","data-name-card","data-expires-card","data-cvv-card","data-shared","data-form","data-method","data-value-card","newNumberEvent","newExpiresEvent","newCVVEvent","setBrandSelected"],["novalidate","",3,"formGroup"],[1,"container-form"],[1,"container-field","credit-number"],["for","number"],["placeholder","N\xfamero do cart\xe3o","formControlName","number","minlength","13","id","cc"],["number",""],["class","invalid-feedback",4,"ngIf"],[1,"inline"],[1,"container-field","credit-valid-date"],["for","validDate"],["placeholder","00/00","formControlName","validDate","maxlength","5"],["validDate",""],[1,"container-field","credit-cvv"],["for","cvv"],["placeholder","CVV","formControlName","cvv","maxlength","4"],["cvv",""],[1,"container-field","credit-name"],["for","name"],["placeholder","Nome do Cart\xe3o","formControlName","name","maxlength","35",3,"keyup"],["name",""],[1,"recurrent-day"],[1,"icon-recurrent"],["data-icon","signature","role","img","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512",1,"icon"],["fill","currentColor","d","M432 224C352.4 224 288 288.4 288 368s64.38 144 144 144S576 447.6 576 368S511.6 224 432 224zM480 384h-54.25C420.4 384 416 379.6 416 374.3V304C416 295.2 423.2 288 432 288C440.8 288 448 295.2 448 304V352h32c8.838 0 16 7.164 16 16S488.8 384 480 384zM284.6 464H64c-8.822 0-16-7.176-16-16V192H448V128c0-35.35-28.65-64-64-64h-40V24c0-13.25-10.75-24-23.1-24S296 10.75 296 24V64h-144V24C152 10.75 141.3 0 128 0S104 10.75 104 24V64H64C28.65 64 0 92.65 0 128v320c0 35.35 28.65 64 64 64h267C312.6 499.1 296.9 482.8 284.6 464z"],[1,"info"],[1,"day"],["type","button",3,"className","click"],[1,"cancel"],["type","button",3,"className","ngClass","click"],[1,"delivery-period-value",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","10","height","10","viewBox","0 0 10 10","fill","none"],["d","M9.63258 1.09883L8.89998 0.366211C8.65604 0.122109 8.33573 0 8.01738 0C7.69746 0 7.37755 0.12207 7.13341 0.366211L0.881013 6.61914C0.713673 6.78645 0.59723 6.99785 0.545474 7.22871L0.00622785 9.62715C-0.0332244 9.80664 0.120249 10 0.311495 10C0.331943 10 0.352822 9.99798 0.373954 9.99375C0.373954 9.99375 2.02646 9.64316 2.77234 9.46777C2.99772 9.4147 3.19948 9.3013 3.36315 9.13769L9.63645 2.86425C10.1228 2.37695 10.1208 1.58711 9.63258 1.09883ZM2.91984 8.69531C2.83744 8.77771 2.73914 8.83279 2.62765 8.85904C2.14563 8.97254 1.26753 9.16275 0.724181 9.27936L1.15464 7.3651C1.18066 7.24951 1.23868 7.1442 1.32249 7.06041L6.15832 2.22447L7.77469 3.84088L2.91984 8.69531ZM9.19314 2.42188L8.21601 3.39883L6.59964 1.78242L7.57481 0.807227C7.69317 0.690039 7.84941 0.625 8.01738 0.625C8.18534 0.625 8.3412 0.690039 8.45936 0.808105L9.19196 1.54072C9.43532 1.78457 9.43532 2.17969 9.19314 2.42188Z","fill","black"],[1,"delivery-period-value"],[1,"payment-method-value",3,"click"],[1,"payment-method-value"],[1,"product-detail"],["onerror","this.src='./assets/no-image.png'",3,"src","alt"],[1,"desc"],[1,"tax"],[1,"right","aligned"],["data-tooltip","Visualizar",3,"className","click",4,"ngIf"],["data-tooltip","Visualizar",3,"className","click"],["aria-hidden","true","focusable","false","data-prefix","far","data-icon","eye","role","img","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 576 512",1,"svg-inline--fa","fa-eye","fa-w-18"],["fill","currentColor","d","M288 144a110.94 110.94 0 0 0-31.24 5 55.4 55.4 0 0 1 7.24 27 56 56 0 0 1-56 56 55.4 55.4 0 0 1-27-7.24A111.71 111.71 0 1 0 288 144zm284.52 97.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400c-98.65 0-189.09-55-237.93-144C98.91 167 189.34 112 288 112s189.09 55 237.93 144C477.1 345 386.66 400 288 400z",1,""],[3,"value"],[1,"invalid-feedback"]],template:function(n,r){1&n&&(a(0,"div",0),C(1,rQ,214,52,"div",1),l()),2&n&&(c(1),d("ngIf",r.recurrentDetail))},dependencies:[ui,ei,en,AZ,Gr,Ws,Js,mr,fr,Ur,Rp,Zo,Ir,Mr,zh,bd]})}return t})();function sQ(t,i){if(1&t&&B(0,"img",13),2&t){const e=_().$implicit;q1(null==e.tokenBrand?null:e.tokenBrand.toLowerCase()),d("alt",e.tokenBrand)("src",e.brandImg,fe)}}function aQ(t,i){if(1&t){const e=ve();a(0,"div",5)(1,"div",6),C(2,sQ,1,4,"img",7),l(),a(3,"div",8)(4,"p",9),h(5,"Terminado em "),a(6,"strong"),h(7),l()(),a(8,"span",10),h(9),l()(),a(10,"div",11)(11,"button",12),J("click",function(){const o=M(e).$implicit;
3return L(_(2).deleteCard(o))}),h(12,"Excluir cart\xe3o"),l()()()}if(2&t){const e=i.$implicit;c(2),d("ngIf",e.brandImg),c(5),de(e.last4),c(2),dt("Vencimento: ",e.tokenExpiration,"")}}function lQ(t,i){if(1&t&&(a(0,"div",3),C(1,aQ,13,3,"div",4),l()),2&t){const e=_();c(1),d("ngForOf",e.savedCards)}}function cQ(t,i){1&t&&(a(0,"div",14)(1,"span"),h(2,"N\xe3o h\xe1 nenhum cart\xe3o salvo"),l()())}let dQ=(()=>{class t{constructor(e,n){this.customerService=e,this.commomService=n,this.savedCards=[],this.loaded=!1,this.cardToDelete=null}ngOnInit(){this.commomService.finishLoadComponent("onJetCustomerLoaded",{detail:{type:"customer",value:{name:decodeURIComponent("Meus cart\xf5es"),href:window.location.href}}}),this.loadSavedCards(),document.addEventListener("onJetConfirm",()=>{this.cardToDelete&&(this.confirmDelete(this.cardToDelete),this.cardToDelete=null)},{passive:!0}),document.addEventListener("onJetCancel",()=>{this.cardToDelete=null},{passive:!0})}loadSavedCards(){this.customerService.getAllCustomerCardTokens(!1).subscribe(e=>{this.loaded=!0,e&&(this.savedCards=e,this.savedCards.forEach(n=>{n.brandImg=this.getBrandImg(n.tokenBrand)}))},e=>{this.loaded=!0})}getBrandImg(e){let n=(e||"").toLowerCase();return n.indexOf("mastercard")>-1?"/assets/brands/mastercard.svg":n.indexOf("visa")>-1?"/assets/brands/visa.svg":""}deleteCard(e){this.cardToDelete=e,this.commomService.displayMessageUser("confirm","Excluir cart\xe3o",`Deseja mesmo excluir o cart\xe3o terminado em ${e.last4}?`,!1)}confirmDelete(e){this.customerService.deleteCardTokenByID(e.idCardTokenCustomer).subscribe(()=>{let n=this.savedCards.findIndex(r=>
3r.idCardTokenCustomer==e.idCardTokenCustomer);n>-1&&this.savedCards.splice(n,1),this.commomService.displayMessageUser("success","Cart\xe3o exclu\xeddo com sucesso.")},n=>{this.commomService.displayMessageUser("error","N\xe3o foi poss\xedvel excluir o cart\xe3o.")})}static#e=this.\u0275fac=function(n){return new(n||t)($(Ci),$(qt))};static#t=this.\u0275cmp=Ot({type:t,selectors:[["jet-customer-saved-card"]],decls:3,vars:2,consts:[[1,"jet-customer-saved-card"],["class","saved-card-list",4,"ngIf"],["class","no-cards",4,"ngIf"],[1,"saved-card-list"],["class","saved-card-item",4,"ngFor","ngForOf"],[1,"saved-card-item"],[1,"card-brand"],["jet-image-size","","loading","lazy","fetchpriority","low","width","38","height","25",3,"alt","src","class",4,"ngIf"],[1,"card-info"],[1,"card-number"],[1,"card-expiration"],[1,"card-actions"],["type","button",1,"delete-card",3,"click"],["jet-image-size","","loading","lazy","fetchpriority","low","width","38","height","25",3,"alt","src"],[1,"no-cards"]],template:function(n,r){1&n&&(a(0,"div",0),C(1,lQ,2,1,"div",1),C(2,cQ,3,0,"div",2),l()),2&n&&(c(1),d("ngIf",r.savedCards&&r.savedCards.length>0),c(1),d("ngIf",r.loaded&&(!r.savedCards||0==r.savedCards.length)))},dependencies:[ei,en,bs],encapsulation:2})}return t})();const uQ=t=>t.getCompanySocialMedia().pipe(Xe(i=>{let e=[];return i.forEach(r=>{"Google"==r.name&&e.push({id:jp.PROVIDER_ID,provider:new jp(r.appId,{scope:"email",plugin_name:"jet-social-login"})}),"Facebook"==r.name&&e.push({id:X0.PROVIDER_ID,provider:new X0(r.appId,{scope:"email",return_scopes:!0})})}),{autoLogin:!1,providers:e}})).toPromise();let hQ=(()=>{class t{constructor(e){this.injector=e;{const n=dn(NG,{injector:this.injector});customElements.define("jet-login",n);const r=dn(uz,{injector:this.injector});customElements.define("jet-recover-password-email",r);const o=dn(oz,{injector:this.injector});customElements.define("jet-order-history",o);const s=dn(CH,{injector:this.injector});customElements.define("jet-customer-page",s);const u=dn(aH,{injector:this.injector});customElements.define("jet-api-data-customer",u);const v=dn(zV,{injector:this.injector});customElements.define("jet-recover-email",v);const w=dn(NV,{injector:this.injector});customElements.define("jet-change-password",w);const P=dn(wV,{injector:this.injector});customElements.define("jet-customer-register",P);const F=dn(aR,{injector:this.injector});customElements.define("jet-customer-info",F);const R=dn(rB,{injector:this.injector});customElements.define("jet-address-management",R);const V=dn(_z,{injector:this.injector});customElements.define("jet-alter-email",V);const ne=dn(Xz,{injector:this.injector});customElements.define("jet-order-details",ne);const De=dn(oq,{injector:this.injector});customElements.define("jet-side-customer-menu",De);const ke=dn(A$,{injector:this.injector});customElements.define("jet-finish-registration",ke);const je=dn($$,{injector:this.injector});customElements.define("jet-shopping-voucher",je);const at=dn(EU,{injector:this.injector});customElements.define("jet-order-data",at);const Ie=dn(GU,{injector:this.injector});customElements.define("jet-order-status",Ie);const xt=dn(nG,{injector:this.injector});customElements.define("jet-access-key",xt);const Sn=dn(yG,{injector:this.injector});customElements.define("jet-check-access-key",Sn);const Jt=dn(RG,{injector:this.injector});customElements.define("jet-order-pdf",Jt);const ti=dn(ZG,{injector:this.injector});customElements.define("jet-wishlist",ti);const ri=dn(hW,{injector:this.injector});customElements.define("jet-list-event-list",ri);const oi=dn(SZ,{injector:this.injector});customElements.define("jet-create-event-list",oi);const li=dn(IZ,{injector:this.injector});customElements.define("jet-order-custom-report",li);const fi=dn(MZ,{injector:this.injector});customElements.define("jet-recurrent-list",fi);const Ji=dn(oQ,{injector:this.injector});customElements.define("jet-recurrent-details",Ji);const Zi=dn(dQ,{injector:this.injector});customElements.define("jet-customer-saved-card",Zi)}}static#e=this.\u0275fac=function(n){return new(n||t)(Mt(gs))};static#t=this.\u0275mod=uo({type:t});static#n=this.\u0275inj=Mo({providers:[{provide:"SocialAuthServiceConfig",useFactory:uQ,deps:[qh]}],imports:[om,jN,F4,Yx,iy,ny,pW]})}return t})(),mQ=(()=>{class t{ngDoBootstrap(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=uo({type:t});static#n=this.\u0275inj=Mo({imports:[F4,hQ,LI]})}return t})();Qw().bootstrapModule(mQ).catch(t=>console.error(t))},2983:function(Pd,Mc,Wr){var Gn;typeof globalThis<"u"?globalThis:typeof this<"u"||(typeof window<"u"?window:typeof self<"u"?self:global),Pd.exports=(Gn=function(){try{return Wr(7822)}catch{}}(),function(){"use strict";var $a={172:function(vn,Dt){var Ct,Zt=this&&this.__extends||(Ct=function(At,We){return(Ct=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Tt,It){Tt.__proto__=It}||function(Tt,It){for(var ut in It)Object.prototype.hasOwnProperty.call(It,ut)&&(Tt[ut]=It[ut])})(At,We)},function(At,We){if("function"!=typeof We&&null!==We)throw new TypeError("Class extends value "+String(We)+" is not a constructor or null");function Tt(){this.constructor=At}Ct(At,We),At.prototype=null===We?Object.create(We):(Tt.prototype=We.prototype,new Tt)});
vendor: 39,589 bytes, line 3
3Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.CellHookData=Dt.HookData=void 0;var hn=function Ct(At,We,Tt){this.table=We,this.pageNumber=We.pageNumber,this.pageCount=this.pageNumber,this.settings=We.settings,this.cursor=Tt,this.doc=At.getDocument()};Dt.HookData=hn;var vt=function(Ct){function At(We,Tt,It,ut,qe,he){var Le=Ct.call(this,We,Tt,he)||this;return Le.cell=It,Le.row=ut,Le.column=qe,Le.section=ut.section,Le}return Zt(At,Ct),At}(hn);Dt.CellHookData=vt},340:function(vn,Dt,Zt){Object.defineProperty(Dt,"__esModule",{value:!0});var hn=Zt(4),vt=Zt(136),Ct=Zt(744),At=Zt(776),We=Zt(664),Tt=Zt(972);Dt.default=function It(ut){ut.API.autoTable=function(){for(var qe=[],he=0;he<arguments.length;he++)qe[he]=arguments[he];var Le;1===qe.length?Le=qe[0]:(console.error("Use of deprecated autoTable initiation"),(Le=qe[2]||{}).columns=qe[0],Le.body=qe[1]);var Je=(0,At.parseInput)(this,Le),nt=(0,Tt.createTable)(this,Je);return(0,We.drawTable)(this,nt),this},ut.API.lastAutoTable=!1,ut.API.previousAutoTable=!1,ut.API.autoTable.previous=!1,ut.API.autoTableText=function(qe,he,Le,Je){(0,vt.default)(qe,he,Le,Je,this)},ut.API.autoTableSetDefaults=function(qe){return Ct.DocHandler.setDefaults(qe,this),this},ut.autoTableSetDefaults=function(qe,he){Ct.DocHandler.setDefaults(qe,he)},ut.API.autoTableHtmlToJson=function(qe,he){var Le;if(void 0===he&&(he=!1),typeof window>"u")return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var Je=new Ct.DocHandler(this),nt=(0,hn.parseHtml)(Je,qe,window,he,!1),it=nt.body;return{columns:(null===(Le=nt.head[0])||void 0===Le?void 0:Le.map(function(pt){return pt.content}))||[],rows:it,data:it}},ut.API.autoTableEndPosY=function(){console.error("Use of deprecated function: autoTableEndPosY. Use doc.lastAutoTable.finalY instead.");var qe=this.lastAutoTable;return qe&&qe.finalY?qe.finalY:0},ut.API.autoTableAddPageContent=function(qe){return console.error("Use of deprecated function: autoTableAddPageContent. Use jsPDF.autoTableSetDefaults({didDrawPage: () => {}}) instead."),ut.API.autoTable.globalDefaults||(ut.API.autoTable.globalDefaults={}),ut.API.autoTable.globalDefaults.addPageContent=qe,this},ut.API.autoTableAddPage=function(){return console.error("Use of deprecated function: autoTableAddPage. Use doc.addPage()"),this.addPage(),this}}},136:function(vn,Dt){Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.default=function Zt(hn,vt,Ct,At,We){At=At||{};var It=We.internal.scaleFactor,ut=We.internal.getFontSize()/It,he=ut*(We.getLineHeightFactor?We.getLineHeightFactor():1.15),Je="",nt=1;if(("middle"===At.valign||"bottom"===At.valign||"center"===At.halign||"right"===At.halign)&&(nt=(Je="string"==typeof hn?hn.split(/\r\n|\r|\n/g):hn).length||1),Ct+=ut*(2-1.15),"middle"===At.valign?Ct-=nt/2*he:"bottom"===At.valign&&(Ct-=nt*he),"center"===At.halign||"right"===At.halign){var Se=ut;if("center"===At.halign&&(Se*=.5),Je&&nt>=1){for(var it=0;it<Je.length;it++)We.text(Je[it],vt-We.getStringUnitWidth(Je[it])*Se,Ct),Ct+=he;return We}vt-=We.getStringUnitWidth(hn)*Se}return"justify"===At.halign?We.text(hn,vt,Ct,{maxWidth:At.maxWidth||100,align:"justify"}):We.text(hn,vt,Ct),We}},420:function(vn,Dt){function vt(We,Tt){var It=We>0,ut=Tt||0===Tt;return It&&ut?"DF":It?"S":ut?"F":null}function Ct(We,Tt){var It,ut,qe,he;if(We=We||Tt,Array.isArray(We)){if(We.length>=4)return{top:We[0],right:We[1],bottom:We[2],left:We[3]};if(3===We.length)return{top:We[0],right:We[1],bottom:We[2],left:We[1]};if(2===We.length)return{top:We[0],right:We[1],bottom:We[0],left:We[1]};We=1===We.length?We[0]:Tt}return"object"==typeof We?("number"==typeof We.vertical&&(We.top=We.vertical,We.bottom=We.vertical),"number"==typeof We.horizontal&&(We.right=We.horizontal,We.left=We.horizontal),{left:null!==(It=We.left)&&void 0!==It?It:Tt,top:null!==(ut=We.top)&&void 0!==ut?ut:Tt,right:null!==(qe=We.right)&&void 0!==qe?qe:Tt,bottom:null!==(he=We.bottom)&&void 0!==he?he:Tt}):("number"!=typeof We&&(We=Tt),{top:We,right:We,bottom:We,left:We})}Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.getPageAvailableWidth=Dt.parseSpacing=Dt.getFillStyle=Dt.addTableBorder=Dt.getStringWidth=void 0,Dt.getStringWidth=function Zt(We,Tt,It){return It.applyStyles(Tt,!0),(Array.isArray(We)?We:[We]).map(function(he){return It.getTextWidth(he)}).reduce(function(he,Le){return Math.max(he,Le)},0)},Dt.addTableBorder=function hn(We,Tt,It,ut){var qe=Tt.settings.tableLineWidth;We.applyStyles({lineWidth:qe,lineColor:Tt.settings.tableLineColor});var Le=vt(qe,!1);Le&&We.rect(It.x,It.y,Tt.getWidth(We.pageSize().width),ut.y-It.y,Le)},Dt.getFillStyle=vt,Dt.parseSpacing=Ct,Dt.getPageAvailableWidth=function At(We,Tt){var It=Ct(Tt.settings.margin,0);return We.pageSize().width-(It.left+It.right)}},796:function(vn,Dt){var At,Zt=this&&this.__extends||(At=function(We,Tt){return(At=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(It,ut){It.__proto__=ut}||function(It,ut){for(var qe in ut)Object.prototype.hasOwnProperty.call(ut,qe)&&(It[qe]=ut[qe])})(We,Tt)},function(We,Tt){if("function"!=typeof Tt&&null!==Tt)throw new TypeError("Class extends value "+String(Tt)+" is not a constructor or null");function It(){this.constructor=We}At(We,Tt),We.prototype=null===Tt?Object.create(Tt):(It.prototype=Tt.prototype,new It)});Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.getTheme=Dt.defaultStyles=Dt.HtmlRowInput=void 0;var hn=function(At){function We(Tt){var It=At.call(this)||this;return It._element=Tt,It}return Zt(We,At),We}(Array);Dt.HtmlRowInput=hn,Dt.defaultStyles=function vt(At){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/At,lineColor:200,lineWidth:0,cellWidth:"auto",minCellHeight:0,minCellWidth:0}},Dt.getTheme=function Ct(At){return{striped:{table:{fillColor:255,textColor:80,fontStyle:"normal"},head:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},body:{},foot:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1},head:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},body:{},foot:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},alternateRow:{}},plain:{head:{fontStyle:"bold"},foot:{fontStyle:"bold"}}}[At]}},903:function(vn,Dt,Zt){Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.parseCss=void 0;var hn=Zt(420);function At(It,ut){var qe=We(It,ut);if(!qe)return null;var he=qe.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!he||!Array.isArray(he))return null;var Le=[parseInt(he[1]),parseInt(he[2]),parseInt(he[3])];return 0===parseInt(he[4])||isNaN(Le[0])||isNaN(Le[1])||isNaN(Le[2])?null:Le}function We(It,ut){var qe=ut(It);return"rgba(0, 0, 0, 0)"===qe||"transparent"===qe||"initial"===qe||"inherit"===qe?null==It.parentElement?null:We(It.parentElement,ut):qe}Dt.parseCss=function vt(It,ut,qe,he,Le){var Je={},nt=1.3333333333333333,Se=At(ut,function(Ve){return Le.getComputedStyle(Ve).backgroundColor});null!=Se&&(Je.fillColor=Se);var it=At(ut,function(Ve){return Le.getComputedStyle(Ve).color});null!=it&&(Je.textColor=it);var St=function Tt(It,ut){var qe=[It.paddingTop,It.paddingRight,It.paddingBottom,It.paddingLeft],he=96/(72/ut),Le=(parseInt(It.lineHeight)-parseInt(It.fontSize))/ut/2,Je=qe.map(function(Se){return parseInt(Se||"0")/he}),nt=(0,hn.parseSpacing)(Je,0);return Le>nt.top&&(nt.top=Le),Le>nt.bottom&&(nt.bottom=Le),nt}(he,qe);St&&(Je.cellPadding=St);var pt="borderTopColor",gt=nt*qe,Ze=he.borderTopWidth;if(he.borderBottomWidth===Ze&&he.borderRightWidth===Ze&&he.borderLeftWidth===Ze){var Lt=(parseFloat(Ze)||0)/gt;Lt&&(Je.lineWidth=Lt)}else Je.lineWidth={top:(parseFloat(he.borderTopWidth)||0)/gt,right:(parseFloat(he.borderRightWidth)||0)/gt,bottom:(parseFloat(he.borderBottomWidth)||0)/gt,left:(parseFloat(he.borderLeftWidth)||0)/gt},Je.lineWidth.top||(Je.lineWidth.right?pt="borderRightColor":Je.lineWidth.bottom?pt="borderBottomColor":Je.lineWidth.left&&(pt="borderLeftColor"));var cn=At(ut,function(Ve){return Le.getComputedStyle(Ve)[pt]});null!=cn&&(Je.lineColor=cn);var Dn=["left","right","center","justify"];-1!==Dn.indexOf(he.textAlign)&&(Je.halign=he.textAlign),-1!==(Dn=["middle","bottom","top"]).indexOf(he.verticalAlign)&&(Je.valign=he.verticalAlign);var Xe=parseInt(he.fontSize||"");isNaN(Xe)||(Je.fontSize=Xe/nt);var Qe=function Ct(It){var ut="";return("bold"===It.fontWeight||"bolder"===It.fontWeight||parseInt(It.fontWeight)>=700)&&(ut="bold"),("italic"===It.fontStyle||"oblique"===It.fontStyle)&&(ut+="italic"),ut}(he);Qe&&(Je.fontStyle=Qe);var Nt=(he.fontFamily||"").toLowerCase();return-1!==It.indexOf(Nt)&&(Je.font=Nt),Je}},744:function(vn,Dt){Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.DocHandler=void 0;var Zt={},hn=function(){function vt(Ct){this.jsPDFDocument=Ct,this.userStyles={textColor:Ct.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:Ct.internal.getFontSize(),fontStyle:Ct.internal.getFont().fontStyle,font:Ct.internal.getFont().fontName,lineWidth:Ct.getLineWidth?this.jsPDFDocument.getLineWidth():0,lineColor:Ct.getDrawColor?this.jsPDFDocument.getDrawColor():0}}return vt.setDefaults=function(Ct,At){void 0===At&&(At=null),At?At.__autoTableDocumentDefaults=Ct:Zt=Ct},vt.unifyColor=function(Ct){return Array.isArray(Ct)?Ct:"number"==typeof Ct?[Ct,Ct,Ct]:"string"==typeof Ct?[Ct]:null},vt.prototype.applyStyles=function(Ct,At){var We,Tt,It;void 0===At&&(At=!1),Ct.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(Ct.fontStyle);var ut=this.jsPDFDocument.internal.getFont(),qe=ut.fontStyle,he=ut.fontName;if(Ct.font&&(he=Ct.font),Ct.fontStyle){qe=Ct.fontStyle;var Le=this.getFontList()[he];Le&&-1===Le.indexOf(qe)&&(this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(Le[0]),qe=Le[0])}if(this.jsPDFDocument.setFont(he,qe),Ct.fontSize&&this.jsPDFDocument.setFontSize(Ct.fontSize),!At){var Je=vt.unifyColor(Ct.fillColor);Je&&(We=this.jsPDFDocument).setFillColor.apply(We,Je),(Je=vt.unifyColor(Ct.textColor))&&(Tt=this.jsPDFDocument).setTextColor.apply(Tt,Je),(Je=vt.unifyColor(Ct.lineColor))&&(It=this.jsPDFDocument).setDrawColor.apply(It,Je),"number"==typeof Ct.lineWidth&&this.jsPDFDocument.setLineWidth(Ct.lineWidth)}},vt.prototype.splitTextToSize=function(Ct,At,We){return this.jsPDFDocument.splitTextToSize(Ct,At,We)},vt.prototype.rect=function(Ct,At,We,Tt,It){return this.jsPDFDocument.rect(Ct,At,We,Tt,It)},vt.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},vt.prototype.getTextWidth=function(Ct){return this.jsPDFDocument.getTextWidth(Ct)},vt.prototype.getDocument=function(){return this.jsPDFDocument},vt.prototype.setPage=function(Ct){this.jsPDFDocument.setPage(Ct)},vt.prototype.addPage=function(){return this.jsPDFDocument.addPage()},vt.prototype.getFontList=function(){return this.jsPDFDocument.getFontList()},vt.prototype.getGlobalOptions=function(){return Zt||{}},vt.prototype.getDocumentOptions=function(){return this.jsPDFDocument.__autoTableDocumentDefaults||{}},vt.prototype.pageSize=function(){var Ct=this.jsPDFDocument.internal.pageSize;return null==Ct.width&&(Ct={width:Ct.getWidth(),height:Ct.getHeight()}),Ct},vt.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},vt.prototype.getLineHeightFactor=function(){var Ct=this.jsPDFDocument;return Ct.getLineHeightFactor?Ct.getLineHeightFactor():1.15},vt.prototype.getLineHeight=function(Ct){return Ct/this.scaleFactor()*this.getLineHeightFactor()},vt.prototype.pageNumber=function(){var Ct=this.jsPDFDocument.internal.getCurrentPageInfo();return Ct?Ct.pageNumber:this.jsPDFDocument.internal.getNumberOfPages()},vt}();Dt.DocHandler=hn},4:function(vn,Dt,Zt){Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.parseHtml=void 0;var hn=Zt(903),vt=Zt(796);function At(Tt,It,ut,qe,he,Le){for(var Je=new vt.HtmlRowInput(qe),nt=0;nt<qe.cells.length;nt++){var Se=qe.cells[nt],it=ut.getComputedStyle(Se);if(he||"none"!==it.display){var St=void 0;Le&&(St=(0,hn.parseCss)(Tt,Se,It,it,ut)),Je.push({rowSpan:Se.rowSpan,colSpan:Se.colSpan,styles:St,_element:Se,content:We(Se)})}}var pt=ut.getComputedStyle(qe);if(Je.length>0&&(he||"none"!==pt.display))return Je}function We(Tt){var It=Tt.cloneNode(!0);return It.innerHTML=It.innerHTML.replace(/\n/g,"").replace(/ +/g," "),It.innerHTML=It.innerHTML.split(/<br.*?>/).map(function(ut){return ut.trim()}).join("\n"),It.innerText||It.textContent||""}Dt.parseHtml=function Ct(Tt,It,ut,qe,he){var Le,Je,nt;void 0===qe&&(qe=!1),void 0===he&&(he=!1),nt="string"==typeof It?ut.document.querySelector(It):It;var Se=Object.keys(Tt.getFontList()),it=Tt.scaleFactor(),St=[],pt=[],gt=[];if(!nt)return console.error("Html table could not be found with input: ",It),{head:St,body:pt,foot:gt};for(var Ze=0;Ze<nt.rows.length;Ze++){var Lt=nt.rows[Ze],cn=null===(Je=null===(Le=Lt?.parentElement)||void 0===Le?void 0:Le.tagName)||void 0===Je?void 0:Je.toLowerCase(),Dn=At(Se,it,ut,Lt,qe,he);Dn&&("thead"===cn?St.push(Dn):"tfoot"===cn?gt.push(Dn):pt.push(Dn))}return{head:St,body:pt,foot:gt}}},776:function(vn,Dt,Zt){Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.parseInput=void 0;var hn=Zt(4),vt=Zt(356),Ct=Zt(420),At=Zt(744),We=Zt(792);function Je(nt,Se,it){var St=nt[0]||Se[0]||it[0]||[],pt=[];return Object.keys(St).filter(function(gt){return"_element"!==gt}).forEach(function(gt){var Lt,Ze=1;"object"==typeof(Lt=Array.isArray(St)?St[parseInt(gt)]:St[gt])&&!Array.isArray(Lt)&&(Ze=Lt?.colSpan||1);for(var cn=0;cn<Ze;cn++){var Dn;Dn=Array.isArray(St)?pt.length:gt+(cn>0?"_".concat(cn):""),pt.push({dataKey:Dn})}}),pt}Dt.parseInput=function Tt(nt,Se){var it=new At.DocHandler(nt),St=it.getDocumentOptions(),pt=it.getGlobalOptions();(0,We.default)(it,pt,St,Se);var Ze,gt=(0,vt.assign)({},pt,St,Se);typeof window<"u"&&(Ze=window);var Lt=function It(nt,Se,it){for(var St={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},pt=function(cn){if("columnStyles"===cn)St.columnStyles=(0,vt.assign)({},nt[cn],Se[cn],it[cn]);else{var Ve=[nt,Se,it].map(function(tn){return tn[cn]||{}});St[cn]=(0,vt.assign)({},Ve[0],Ve[1],Ve[2])}},gt=0,Ze=Object.keys(St);gt<Ze.length;gt++)pt(Ze[gt]);return St}(pt,St,Se),cn=function ut(nt,Se,it){for(var pt={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},gt=0,Ze=[nt,Se,it];gt<Ze.length;gt++){var Lt=Ze[gt];Lt.didParseCell&&pt.didParseCell.push(Lt.didParseCell),Lt.willDrawCell&&pt.willDrawCell.push(Lt.willDrawCell),Lt.didDrawCell&&pt.didDrawCell.push(Lt.didDrawCell),Lt.willDrawPage&&pt.willDrawPage.push(Lt.willDrawPage),Lt.didDrawPage&&pt.didDrawPage.push(Lt.didDrawPage)}return pt}(pt,St,Se),Dn=function qe(nt,Se){var it,St,pt,gt,Ze,Lt,cn,Dn,Xe,Qe,Nt,Ve,Xt,fn,tn=(0,Ct.parseSpacing)(Se.margin,40/nt.scaleFactor()),Bt=null!==(it=function he(nt,Se){var it=nt.getLastAutoTable(),St=nt.scaleFactor(),pt=nt.pageNumber(),gt=!1;return it&&it.startPageNumber&&(gt=it.startPageNumber+it.pageNumber-1===pt),"number"==typeof Se?Se:null!=Se&&!1!==Se||!gt||null==it?.finalY?null:it.finalY+20/St}(nt,Se.startY))&&void 0!==it?it:tn.top;Xt=!0===Se.showFoot?"everyPage":!1===Se.showFoot?"never":null!==(St=Se.showFoot)&&void 0!==St?St:"everyPage",fn=!0===Se.showHead?"everyPage":!1===Se.showHead?"never":null!==(pt=Se.showHead)&&void 0!==pt?pt:"everyPage";var Fn=null!==(gt=Se.useCss)&&void 0!==gt&>,xr=null!==(Ze=Se.horizontalPageBreakRepeat)&&void 0!==Ze?Ze:null;return{includeHiddenHtml:null!==(Lt=Se.includeHiddenHtml)&&void 0!==Lt&&Lt,useCss:Fn,theme:Se.theme||(Fn?"plain":"striped"),startY:Bt,margin:tn,pageBreak:null!==(cn=Se.pageBreak)&&void 0!==cn?cn:"auto",rowPageBreak:null!==(Dn=Se.rowPageBreak)&&void 0!==Dn?Dn:"auto",tableWidth:null!==(Xe=Se.tableWidth)&&void 0!==Xe?Xe:"auto",showHead:fn,showFoot:Xt,tableLineWidth:null!==(Qe=Se.tableLineWidth)&&void 0!==Qe?Qe:0,tableLineColor:null!==(Nt=Se.tableLineColor)&&void 0!==Nt?Nt:200,horizontalPageBreak:!!Se.horizontalPageBreak,horizontalPageBreakRepeat:xr,horizontalPageBreakBehaviour:null!==(Ve=Se.horizontalPageBreakBehaviour)&&void 0!==Ve?Ve:"afterAllRows"}}(it,gt),Xe=function Le(nt,Se,it){var St=Se.head||[],pt=Se.body||[],gt=Se.foot||[];if(Se.html)if(it){var Lt=(0,hn.parseHtml)(nt,Se.html,it,Se.includeHiddenHtml,Se.useCss)||{};St=Lt.head||St,pt=Lt.body||St,gt=Lt.foot||St}else console.error("Cannot parse html in non browser environment");return{columns:Se.columns||Je(St,pt,gt),head:St,body:pt,foot:gt}}(it,gt,Ze);return{id:Se.tableId,content:Xe,hooks:cn,styles:Lt,settings:Dn}}},792:function(vn,Dt){function hn(vt){vt.rowHeight?(console.error("Use of deprecated style rowHeight. It is renamed to minCellHeight."),vt.minCellHeight||(vt.minCellHeight=vt.rowHeight)):vt.columnWidth&&(console.error("Use of deprecated style columnWidth. It is renamed to cellWidth."),vt.cellWidth||(vt.cellWidth=vt.columnWidth))}Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.default=function Zt(vt,Ct,At,We){for(var Tt=function(he){he&&"object"!=typeof he&&console.error("The options parameter should be of type object, is: "+typeof he),typeof he.extendWidth<"u"&&(he.tableWidth=he.extendWidth?"auto":"wrap",console.error("Use of deprecated option: extendWidth, use tableWidth instead.")),typeof he.margins<"u"&&(typeof he.margin>"u"&&(he.margin=he.margins),console.error("Use of deprecated option: margins, use margin instead.")),he.startY&&"number"!=typeof he.startY&&(console.error("Invalid value for startY option",he.startY),delete he.startY),!he.didDrawPage&&(he.afterPageContent||he.beforePageContent||he.afterPageAdd)&&(console.error("The afterPageContent, beforePageContent and afterPageAdd hooks are deprecated. Use didDrawPage instead"),he.didDrawPage=function(gt){vt.applyStyles(vt.userStyles),he.beforePageContent&&he.beforePageContent(gt),vt.applyStyles(vt.userStyles),he.afterPageContent&&he.afterPageContent(gt),vt.applyStyles(vt.userStyles),he.afterPageAdd&>.pageNumber>1&>.afterPageAdd(gt),vt.applyStyles(vt.userStyles)}),["createdHeaderCell","drawHeaderRow","drawRow","drawHeaderCell"].forEach(function(gt){he[gt]&&console.error('The "'.concat(gt,'" hook has changed in version 3.0, check the changelog for how to migrate.'))}),[["showFoot","showFooter"],["showHead","showHeader"],["didDrawPage","addPageContent"],["didParseCell","createdCell"],["headStyles","headerStyles"]].forEach(function(gt){var Ze=gt[0],Lt=gt[1];he[Lt]&&(console.error("Use of deprecated option ".concat(Lt,". Use ").concat(Ze," instead")),he[Ze]=he[Lt])}),[["padding","cellPadding"],["lineHeight","rowHeight"],"fontSize","overflow"].forEach(function(gt){var Ze="string"==typeof gt?gt:gt[0],Lt="string"==typeof gt?gt:gt[1];typeof he[Ze]<"u"&&(typeof he.styles[Lt]>"u"&&(he.styles[Lt]=he[Ze]),console.error("Use of deprecated option: "+Ze+", use the style "+Lt+" instead."))});for(var Le=0,Je=["styles","bodyStyles","headStyles","footStyles"];Le<Je.length;Le++)hn(he[Je[Le]]||{});for(var Se=he.columnStyles||{},it=0,St=Object.keys(Se);it<St.length;it++)hn(Se[St[it]]||{})},It=0,ut=[Ct,At,We];It<ut.length;It++)Tt(ut[It])}},260:function(vn,Dt,Zt){Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.Column=Dt.Cell=Dt.Row=Dt.Table=void 0;var hn=Zt(796),vt=Zt(172),Ct=Zt(420),At=function(){function ut(qe,he){this.pageNumber=1,this.pageCount=1,this.id=qe.id,this.settings=qe.settings,this.styles=qe.styles,this.hooks=qe.hooks,this.columns=he.columns,this.head=he.head,this.body=he.body,this.foot=he.foot}return ut.prototype.getHeadHeight=function(qe){return this.head.reduce(function(he,Le){return he+Le.getMaxCellHeight(qe)},0)},ut.prototype.getFootHeight=function(qe){return this.foot.reduce(function(he,Le){return he+Le.getMaxCellHeight(qe)},0)},ut.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},ut.prototype.callCellHooks=function(qe,he,Le,Je,nt,Se){for(var it=0,St=he;it<St.length;it++){var Ze=!1===(0,St[it])(new vt.CellHookData(qe,this,Le,Je,nt,Se));if(Le.text=Array.isArray(Le.text)?Le.text:[Le.text],Ze)return!1}return!0},ut.prototype.callEndPageHooks=function(qe,he){qe.applyStyles(qe.userStyles);for(var Le=0,Je=this.hooks.didDrawPage;Le<Je.length;Le++)(0,Je[Le])(new vt.HookData(qe,this,he))},ut.prototype.callWillDrawPageHooks=function(qe,he){for(var Le=0,Je=this.hooks.willDrawPage;Le<Je.length;Le++)(0,Je[Le])(new vt.HookData(qe,this,he))},ut.prototype.getWidth=function(qe){if("number"==typeof this.settings.tableWidth)return this.settings.tableWidth;if("wrap"===this.settings.tableWidth)return this.columns.reduce(function(Je,nt){return Je+nt.wrappedWidth},0);var Le=this.settings.margin;return qe-Le.left-Le.right},ut}();Dt.Table=At;var We=function(){function ut(qe,he,Le,Je,nt){void 0===nt&&(nt=!1),this.height=0,this.raw=qe,qe instanceof hn.HtmlRowInput&&(this.raw=qe._element,this.element=qe._element),this.index=he,this.section=Le,this.cells=Je,this.spansMultiplePages=nt}return ut.prototype.getMaxCellHeight=function(qe){var he=this;return qe.reduce(function(Le,Je){var nt;return Math.max(Le,(null===(nt=he.cells[Je.index])||void 0===nt?void 0:nt.height)||0)},0)},ut.prototype.hasRowSpan=function(qe){var he=this;return qe.filter(function(Le){var Je=he.cells[Le.index];return!!Je&&Je.rowSpan>1}).length>0},ut.prototype.canEntireRowFit=function(qe,he){return this.getMaxCellHeight(he)<=qe},ut.prototype.getMinimumRowHeight=function(qe,he){var Le=this;return qe.reduce(function(Je,nt){var Se=Le.cells[nt.index];if(!Se)return 0;var it=he.getLineHeight(Se.styles.fontSize),pt=Se.padding("vertical")+it;return pt>Je?pt:Je},0)},ut}();Dt.Row=We;var Tt=function(){function ut(qe,he,Le){var Je,nt;this.contentHeight=0,this.contentWidth=0,this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.height=0,this.x=0,this.y=0,this.styles=he,this.section=Le,this.raw=qe;var Se=qe;null==qe||"object"!=typeof qe||Array.isArray(qe)?(this.rowSpan=1,this.colSpan=1):(this.rowSpan=qe.rowSpan||1,this.colSpan=qe.colSpan||1,Se=null!==(nt=null!==(Je=qe.content)&&void 0!==Je?Je:qe.title)&&void 0!==nt?nt:qe,qe._element&&(this.raw=qe._element)),this.text=(null!=Se?""+Se:"").split(/\r\n|\r|\n/g)}return ut.prototype.getTextPos=function(){var qe,Le;if("top"===this.styles.valign)qe=this.y+this.padding("top");else if("bottom"===this.styles.valign)qe=this.y+this.height-this.padding("bottom");else{var he=this.height-this.padding("vertical");qe=this.y+he/2+this.padding("top")}if("right"===this.styles.halign)Le=this.x+this.width-this.padding("right");else if("center"===this.styles.halign){var Je=this.width-this.padding("horizontal");Le=this.x+Je/2+this.padding("left")}else Le=this.x+this.padding("left");return{x:Le,y:qe}},ut.prototype.getContentHeight=function(qe,he){void 0===he&&(he=1.15);var nt=(Array.isArray(this.text)?this.text.length:1)*(this.styles.fontSize/qe*he)+this.padding("vertical");return Math.max(nt,this.styles.minCellHeight)},ut.prototype.padding=function(qe){var he=(0,Ct.parseSpacing)(this.styles.cellPadding,0);return"vertical"===qe?he.top+he.bottom:"horizontal"===qe?he.left+he.right:he[qe]},ut}();Dt.Cell=Tt;var It=function(){function ut(qe,he,Le){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=qe,this.raw=he,this.index=Le}return ut.prototype.getMaxCustomCellWidth=function(qe){for(var he=0,Le=0,Je=qe.allRows();Le<Je.length;Le++){var Se=Je[Le].cells[this.index];Se&&"number"==typeof Se.styles.cellWidth&&(he=Math.max(he,Se.styles.cellWidth))}return he},ut}();Dt.Column=It},356:function(vn,Dt){Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.assign=void 0,Dt.assign=function Zt(hn,vt,Ct,At,We){if(null==hn)throw new TypeError("Cannot convert undefined or null to object");for(var Tt=Object(hn),It=1;It<arguments.length;It++){var ut=arguments[It];if(null!=ut)for(var qe in ut)Object.prototype.hasOwnProperty.call(ut,qe)&&(Tt[qe]=ut[qe])}return Tt}},972:function(vn,Dt,Zt){Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.createTable=void 0;var hn=Zt(744),vt=Zt(260),Ct=Zt(324),At=Zt(796),We=Zt(356);function ut(nt,Se,it,St,pt,gt){var Ze={};return Se.map(function(cn,Dn){for(var Xe=0,Qe={},Nt=0,Ve=0,tn=0,Bt=it;tn<Bt.length;tn++){var Xt=Bt[tn];if(null==Ze[Xt.index]||0===Ze[Xt.index].left)if(0===Ve){var fn,Fn={};"object"==typeof(fn=Array.isArray(cn)?cn[Xt.index-Nt-Xe]:cn[Xt.dataKey])&&!Array.isArray(fn)&&(Fn=fn?.styles||{});var Tn=Je(nt,Xt,Dn,pt,St,gt,Fn),un=new vt.Cell(fn,Tn,nt);Qe[Xt.dataKey]=un,Qe[Xt.index]=un,Ze[Xt.index]={left:un.rowSpan-1,times:Ve=un.colSpan-1}}else Ve--,Nt++;else Ze[Xt.index].left--,Ve=Ze[Xt.index].times,Xe++}return new vt.Row(cn,Dn,nt,Qe)})}function qe(nt,Se){var it={};return nt.forEach(function(St){if(null!=St.raw){var pt=function he(nt,Se){if("head"===nt){if("object"==typeof Se)return Se.header||Se.title||null;if("string"==typeof Se||"number"==typeof Se)return Se}else if("foot"===nt&&"object"==typeof Se)return Se.footer;return null}(Se,St.raw);null!=pt&&(it[St.dataKey]=pt)}}),Object.keys(it).length>0?it:null}function Je(nt,Se,it,St,pt,gt,Ze){var cn,Lt=(0,At.getTheme)(St);"head"===nt?cn=pt.headStyles:"body"===nt?cn=pt.bodyStyles:"foot"===nt&&(cn=pt.footStyles);var Dn=(0,We.assign)({},Lt.table,Lt[nt],pt.styles,cn),Qe="body"===nt&&(pt.columnStyles[Se.dataKey]||pt.columnStyles[Se.index])||{},Nt="body"===nt&&it%2==0?(0,We.assign)({},Lt.alternateRow,pt.alternateRowStyles):{},Ve=(0,At.defaultStyles)(gt),tn=(0,We.assign)({},Ve,Dn,Nt,Qe);return(0,We.assign)(tn,Ze)}Dt.createTable=function Tt(nt,Se){var it=new hn.DocHandler(nt),St=function It(nt,Se){var pt,it=nt.content,St=function Le(nt){return nt.map(function(Se,it){var St,pt,gt;return gt="object"==typeof Se&&null!==(pt=null!==(St=Se.dataKey)&&void 0!==St?St:Se.key)&&void 0!==pt?pt:it,new vt.Column(gt,Se,it)})}(it.columns);0===it.head.length&&(pt=qe(St,"head"))&&it.head.push(pt),0===it.foot.length&&(pt=qe(St,"foot"))&&it.foot.push(pt);var gt=nt.settings.theme,Ze=nt.styles;return{columns:St,head:ut("head",it.head,St,Ze,gt,Se),body:ut("body",it.body,St,Ze,gt,Se),foot:ut("foot",it.foot,St,Ze,gt,Se)}}(Se,it.scaleFactor()),pt=new vt.Table(Se,St);return(0,Ct.calculateWidths)(it,pt),it.applyStyles(it.userStyles),pt}},664:function(vn,Dt,Zt){Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.addPage=Dt.drawTable=void 0;var hn=Zt(420),vt=Zt(260),Ct=Zt(744),At=Zt(356),We=Zt(136),Tt=Zt(224);function qe(Xe,Qe,Nt,Ve){var tn=Qe.settings;Xe.applyStyles(Xe.userStyles),("firstPage"===tn.showHead||"everyPage"===tn.showHead)&&Qe.head.forEach(function(Bt){return pt(Xe,Qe,Bt,Nt,Ve)})}function Le(Xe,Qe,Nt,Ve,tn,Bt){Xe.applyStyles(Xe.userStyles),Bt=Bt??Qe.body.length;var Xt=Math.min(Nt+Bt,Qe.body.length),fn=-1;return Qe.body.slice(Nt,Xt).forEach(function(Fn,Tn){var xr=Lt(Xe,Qe,Nt+Tn===Qe.body.length-1,Ve);Fn.canEntireRowFit(xr,tn)&&(pt(Xe,Qe,Fn,Ve,tn),fn=Nt+Tn)}),fn}function Je(Xe,Qe,Nt,Ve){var tn=Qe.settings;Xe.applyStyles(Xe.userStyles),("lastPage"===tn.showFoot||"everyPage"===tn.showFoot)&&Qe.foot.forEach(function(Bt){return pt(Xe,Qe,Bt,Nt,Ve)})}function nt(Xe,Qe,Nt){var Ve=Nt.getLineHeight(Xe.styles.fontSize),tn=Xe.padding("vertical"),Bt=Math.floor((Qe-tn)/Ve);return Math.max(0,Bt)}function St(Xe,Qe,Nt,Ve,tn,Bt,Xt){var fn=Lt(Xe,Qe,Ve,Bt);if(Nt.canEntireRowFit(fn,Xt))pt(Xe,Qe,Nt,Bt,Xt);else if(function it(Xe,Qe,Nt,Ve){var tn=Xe.pageSize().height,Bt=Ve.settings.margin,fn=tn-(Bt.top+Bt.bottom);"body"===Qe.section&&(fn-=Ve.getHeadHeight(Ve.columns)+Ve.getFootHeight(Ve.columns));var Fn=Qe.getMinimumRowHeight(Ve.columns,Xe),Tn=Fn<Nt;if(Fn>fn)return console.error("Will not be able to print row ".concat(Qe.index," correctly since it's minimum height is larger than page height")),!0;if(!Tn)return!1;var un=Qe.hasRowSpan(Ve.columns);return Qe.getMaxCellHeight(Ve.columns)>fn?(un&&console.error("The content of row ".concat(Qe.index," will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported.")),!0):!(un||"avoid"===Ve.settings.rowPageBreak)}(Xe,Nt,fn,Qe)){var Fn=function Se(Xe,Qe,Nt,Ve){var tn={};Xe.spansMultiplePages=!0,Xe.height=0;for(var Bt=0,Xt=0,fn=Nt.columns;Xt<fn.length;Xt++)if(Tn=Xe.cells[(Fn=fn[Xt]).index]){Array.isArray(Tn.text)||(Tn.text=[Tn.text]);var un=new vt.Cell(Tn.raw,Tn.styles,Tn.section);(un=(0,At.assign)(un,Tn)).text=[];var xr=nt(Tn,Qe,Ve);Tn.text.length>xr&&(un.text=Tn.text.splice(xr,Tn.text.length));var gr=Ve.scaleFactor(),Qs=Ve.getLineHeightFactor();Tn.contentHeight=Tn.getContentHeight(gr,Qs),Tn.contentHeight>=Qe&&(Tn.contentHeight=Qe,un.styles.minCellHeight-=Qe),Tn.contentHeight>Xe.height&&(Xe.height=Tn.contentHeight),un.contentHeight=un.getContentHeight(gr,Qs),un.contentHeight>Bt&&(Bt=un.contentHeight),tn[Fn.index]=un}var ga=new vt.Row(Xe.raw,-1,Xe.section,tn,!0);ga.height=Bt;for(var vl=0,Td=Nt.columns;vl<Td.length;vl++){var Fn,Tn;(un=ga.cells[(Fn=Td[vl]).index])&&(un.height=ga.height),(Tn=Xe.cells[Fn.index])&&(Tn.height=Xe.height)}return ga}(Nt,fn,Qe,Xe);pt(Xe,Qe,Nt,Bt,Xt),cn(Xe,Qe,tn,Bt,Xt),St(Xe,Qe,Fn,Ve,tn,Bt,Xt)}else cn(Xe,Qe,tn,Bt,Xt),St(Xe,Qe,Nt,Ve,tn,Bt,Xt)}function pt(Xe,Qe,Nt,Ve,tn){Ve.x=Qe.settings.margin.left;for(var Bt=0,Xt=tn;Bt<Xt.length;Bt++){var fn=Xt[Bt],Fn=Nt.cells[fn.index];if(Fn)if(Xe.applyStyles(Fn.styles),Fn.x=Ve.x,Fn.y=Ve.y,!1!==Qe.callCellHooks(Xe,Qe.hooks.willDrawCell,Fn,Nt,fn,Ve)){gt(Xe,Fn,Ve);var un=Fn.getTextPos();(0,We.default)(Fn.text,un.x,un.y,{halign:Fn.styles.halign,valign:Fn.styles.valign,maxWidth:Math.ceil(Fn.width-Fn.padding("left")-Fn.padding("right"))},Xe.getDocument()),Qe.callCellHooks(Xe,Qe.hooks.didDrawCell,Fn,Nt,fn,Ve),Ve.x+=fn.width}else Ve.x+=fn.width;else Ve.x+=fn.width}Ve.y+=Nt.height}function gt(Xe,Qe,Nt){var Ve=Qe.styles;if(Xe.getDocument().setFillColor(Xe.getDocument().getFillColor()),"number"==typeof Ve.lineWidth){var tn=(0,hn.getFillStyle)(Ve.lineWidth,Ve.fillColor);tn&&Xe.rect(Qe.x,Nt.y,Qe.width,Qe.height,tn)}else"object"==typeof Ve.lineWidth&&(Ve.fillColor&&Xe.rect(Qe.x,Nt.y,Qe.width,Qe.height,"F"),function Ze(Xe,Qe,Nt,Ve){var tn,Bt,Xt,fn;function Fn(Tn,un,xr,gr,Qs){Xe.getDocument().setLineWidth(Tn),Xe.getDocument().line(un,xr,gr,Qs,"S")}Ve.top&&(tn=Nt.x,Xt=Nt.x+Qe.width,Ve.right&&(Xt+=.5*Ve.right),Ve.left&&(tn-=.5*Ve.left),Fn(Ve.top,tn,Bt=Nt.y,Xt,fn=Nt.y)),Ve.bottom&&(tn=Nt.x,Xt=Nt.x+Qe.width,Ve.right&&(Xt+=.5*Ve.right),Ve.left&&(tn-=.5*Ve.left),Fn(Ve.bottom,tn,Bt=Nt.y+Qe.height,Xt,fn=Nt.y+Qe.height)),Ve.left&&(Bt=Nt.y,fn=Nt.y+Qe.height,Ve.top&&(Bt-=.5*Ve.top),Ve.bottom&&(fn+=.5*Ve.bottom),Fn(Ve.left,tn=Nt.x,Bt,Xt=Nt.x,fn)),Ve.right&&(Bt=Nt.y,fn=Nt.y+Qe.height,Ve.top&&(Bt-=.5*Ve.top),Ve.bottom&&(fn+=.5*Ve.bottom),Fn(Ve.right,tn=Nt.x+Qe.width,Bt,Xt=Nt.x+Qe.width,fn))}(Xe,Qe,Nt,Ve.lineWidth))}function Lt(Xe,Qe,Nt,Ve){var tn=Qe.settings.margin.bottom,Bt=Qe.settings.showFoot;return("everyPage"===Bt||"lastPage"===Bt&&Nt)&&(tn+=Qe.getFootHeight(Qe.columns)),Xe.pageSize().height-Ve.y-tn}function cn(Xe,Qe,Nt,Ve,tn,Bt){void 0===tn&&(tn=[]),void 0===Bt&&(Bt=!1),Xe.applyStyles(Xe.userStyles),"everyPage"===Qe.settings.showFoot&&!Bt&&Qe.foot.forEach(function(fn){return pt(Xe,Qe,fn,Ve,tn)}),Qe.callEndPageHooks(Xe,Ve);var Xt=Qe.settings.margin;(0,hn.addTableBorder)(Xe,Qe,Nt,Ve),Dn(Xe),Qe.pageNumber++,Qe.pageCount++,Ve.x=Xt.left,Ve.y=Xt.top,Nt.y=Xt.top,Qe.callWillDrawPageHooks(Xe,Ve),"everyPage"===Qe.settings.showHead&&(Qe.head.forEach(function(fn){return pt(Xe,Qe,fn,Ve,tn)}),Xe.applyStyles(Xe.userStyles))}function Dn(Xe){var Qe=Xe.pageNumber();return Xe.setPage(Qe+1),Xe.pageNumber()===Qe&&(Xe.addPage(),!0)}Dt.drawTable=function It(Xe,Qe){var Nt=Qe.settings,Ve=Nt.startY,tn=Nt.margin,Bt={x:tn.left,y:Ve},Xt=Qe.getHeadHeight(Qe.columns)+Qe.getFootHeight(Qe.columns),fn=Ve+tn.bottom+Xt;"avoid"===Nt.pageBreak&&(fn+=Qe.body.reduce(function(gr,Qs){return gr+Qs.height},0));var un=new Ct.DocHandler(Xe);("always"===Nt.pageBreak||null!=Nt.startY&&fn>un.pageSize().height)&&(Dn(un),Bt.y=tn.top),Qe.callWillDrawPageHooks(un,Bt);var xr=(0,At.assign)({},Bt);Qe.startPageNumber=un.pageNumber(),Nt.horizontalPageBreak?function ut(Xe,Qe,Nt,Ve){var tn=(0,Tt.calculateAllColumnsCanFitInPage)(Xe,Qe);if("afterAllRows"===Qe.settings.horizontalPageBreakBehaviour)tn.forEach(function(Tn,un){Xe.applyStyles(Xe.userStyles),un>0?cn(Xe,Qe,Nt,Ve,Tn.columns,!0):qe(Xe,Qe,Ve,Tn.columns),function he(Xe,Qe,Nt,Ve,tn){Xe.applyStyles(Xe.userStyles),Qe.body.forEach(function(Bt,Xt){St(Xe,Qe,Bt,Xt===Qe.body.length-1,Nt,Ve,tn)})}(Xe,Qe,Nt,Ve,Tn.columns),Je(Xe,Qe,Ve,Tn.columns)});else for(var Xt=-1,fn=tn[0],Fn=function(){var Tn=Xt;if(fn){Xe.applyStyles(Xe.userStyles);var un=fn.columns;Xt>=0?cn(Xe,Qe,Nt,Ve,un,!0):qe(Xe,Qe,Ve,un),Tn=Le(Xe,Qe,Xt+1,Ve,un),Je(Xe,Qe,Ve,un)}var xr=Tn-Xt;tn.slice(1).forEach(function(gr){Xe.applyStyles(Xe.userStyles),cn(Xe,Qe,Nt,Ve,gr.columns,!0),Le(Xe,Qe,Xt+1,Ve,gr.columns,xr),Je(Xe,Qe,Ve,gr.columns)}),Xt=Tn};Xt<Qe.body.length-1;)Fn()}(un,Qe,xr,Bt):(un.applyStyles(un.userStyles),("firstPage"===Nt.showHead||"everyPage"===Nt.showHead)&&Qe.head.forEach(function(gr){return pt(un,Qe,gr,Bt,Qe.columns)}),un.applyStyles(un.userStyles),Qe.body.forEach(function(gr,Qs){St(un,Qe,gr,Qs===Qe.body.length-1,xr,Bt,Qe.columns)}),un.applyStyles(un.userStyles),("lastPage"===Nt.showFoot||"everyPage"===Nt.showFoot)&&Qe.foot.forEach(function(gr){return pt(un,Qe,gr,Bt,Qe.columns)})),(0,hn.addTableBorder)(un,Qe,xr,Bt),Qe.callEndPageHooks(un,Bt),Qe.finalY=Bt.y,Xe.lastAutoTable=Qe,Xe.previousAutoTable=Qe,Xe.autoTable&&(Xe.autoTable.previous=Qe),un.applyStyles(un.userStyles)},Dt.addPage=cn},224:function(vn,Dt,Zt){Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.calculateAllColumnsCanFitInPage=void 0;var hn=Zt(420);function vt(At,We,Tt){var It;void 0===Tt&&(Tt={});var ut=(0,hn.getPageAvailableWidth)(At,We),qe=new Map,he=[],Le=[],Je=[];Array.isArray(We.settings.horizontalPageBreakRepeat)?Je=We.settings.horizontalPageBreakRepeat:("string"==typeof We.settings.horizontalPageBreakRepeat||"number"==typeof We.settings.horizontalPageBreakRepeat)&&(Je=[We.settings.horizontalPageBreakRepeat]),Je.forEach(function(St){var pt=We.columns.find(function(gt){return gt.dataKey===St||gt.index===St});pt&&!qe.has(pt.index)&&(qe.set(pt.index,!0),he.push(pt.index),Le.push(We.columns[pt.index]),ut-=pt.wrappedWidth)});for(var nt=!0,Se=null!==(It=Tt?.start)&&void 0!==It?It:0;Se<We.columns.length;)if(qe.has(Se))Se++;else{var it=We.columns[Se].wrappedWidth;if(!(nt||ut>=it))break;nt=!1,he.push(Se),Le.push(We.columns[Se]),ut-=it,Se++}return{colIndexes:he,columns:Le,lastIndex:Se-1}}Dt.calculateAllColumnsCanFitInPage=function Ct(At,We){for(var Tt=[],It=0;It<We.columns.length;It++){var ut=vt(At,We,{start:It});ut.columns.length&&(Tt.push(ut),It=ut.lastIndex)}return Tt}},324:function(vn,Dt,Zt){Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.ellipsize=Dt.resizeColumns=Dt.calculateWidths=void 0;var hn=Zt(420);function At(he,Le,Je){for(var nt=Le,Se=he.reduce(function(Xe,Qe){return Xe+Qe.wrappedWidth},0),it=0;it<he.length;it++){var St=he[it],Ze=St.width+nt*(St.wrappedWidth/Se),Lt=Je(St),cn=Ze<Lt?Lt:Ze;Le-=cn-St.width,St.width=cn}if(Le=Math.round(1e10*Le)/1e10){var Dn=he.filter(function(Xe){return!(Le<0)||Xe.width>Je(Xe)});Dn.length&&(Le=At(Dn,Le,Je))}return Le}function ut(he,Le,Je,nt,Se){return he.map(function(it){return function qe(he,Le,Je,nt,Se){var it=1e4*nt.scaleFactor();if((Le=Math.ceil(Le*it)/it)>=(0,hn.getStringWidth)(he,Je,nt))return he;for(;Le<(0,hn.getStringWidth)(he+Se,Je,nt)&&!(he.length<=1);)he=he.substring(0,he.length-1);return he.trim()+Se}(it,Le,Je,nt,Se)})}Dt.calculateWidths=function vt(he,Le){!function Ct(he,Le){var Je=he.scaleFactor(),nt=Le.settings.horizontalPageBreak,Se=(0,hn.getPageAvailableWidth)(he,Le);Le.allRows().forEach(function(it){for(var St=0,pt=Le.columns;St<pt.length;St++){var gt=pt[St],Ze=it.cells[gt.index];if(Ze){Le.callCellHooks(he,Le.hooks.didParseCell,Ze,it,gt,null);var cn=Ze.padding("horizontal");Ze.contentWidth=(0,hn.getStringWidth)(Ze.text,Ze.styles,he)+cn;var Dn=(0,hn.getStringWidth)(Ze.text.join(" ").split(/[^\S\u00A0]+/),Ze.styles,he);Ze.minReadableWidth=Dn+Ze.padding("horizontal"),"number"==typeof Ze.styles.cellWidth?(Ze.minWidth=Ze.styles.cellWidth,Ze.wrappedWidth=Ze.styles.cellWidth):"wrap"===Ze.styles.cellWidth||!0===nt?Ze.contentWidth>Se?(Ze.minWidth=Se,Ze.wrappedWidth=Se):(Ze.minWidth=Ze.contentWidth,Ze.wrappedWidth=Ze.contentWidth):(Ze.minWidth=Ze.styles.minCellWidth||10/Je,Ze.wrappedWidth=Ze.contentWidth,Ze.minWidth>Ze.wrappedWidth&&(Ze.wrappedWidth=Ze.minWidth))}}}),Le.allRows().forEach(function(it){for(var St=0,pt=Le.columns;St<pt.length;St++){var gt=pt[St],Ze=it.cells[gt.index];if(Ze&&1===Ze.colSpan)gt.wrappedWidth=Math.max(gt.wrappedWidth,Ze.wrappedWidth),gt.minWidth=Math.max(gt.minWidth,Ze.minWidth),gt.minReadableWidth=Math.max(gt.minReadableWidth,Ze.minReadableWidth);else{var Lt=Le.styles.columnStyles[gt.dataKey]||Le.styles.columnStyles[gt.index]||{},cn=Lt.cellWidth||Lt.minCellWidth;cn&&"number"==typeof cn&&(gt.minWidth=cn,gt.wrappedWidth=cn)}Ze&&(Ze.colSpan>1&&!gt.minWidth&&(gt.minWidth=Ze.minWidth),Ze.colSpan>1&&!gt.wrappedWidth&&(gt.wrappedWidth=Ze.minWidth))}})}(he,Le);var Je=[],nt=0;Le.columns.forEach(function(it){var St=it.getMaxCustomCellWidth(Le);St?it.width=St:(it.width=it.wrappedWidth,Je.push(it)),nt+=it.width});var Se=Le.getWidth(he.pageSize().width)-nt;Se&&(Se=At(Je,Se,function(it){return Math.max(it.minReadableWidth,it.minWidth)})),Se&&(Se=At(Je,Se,function(it){return it.minWidth})),Se=Math.abs(Se),!Le.settings.horizontalPageBreak&&Se>.1/he.scaleFactor()&&(Se=Se<1?Se:Math.round(Se),console.warn("Of the table content, ".concat(Se," units width could not fit page"))),function Tt(he){for(var Le=he.allRows(),Je=0;Je<Le.length;Je++)for(var nt=Le[Je],Se=null,it=0,St=0,pt=0;pt<he.columns.length;pt++){var gt=he.columns[pt];if((St-=1)>1&&he.columns[pt+1])it+=gt.width,delete nt.cells[gt.index];else if(Se){var Ze=Se;delete nt.cells[gt.index],Se=null,Ze.width=gt.width+it}else{if(!(Ze=nt.cells[gt.index]))continue;if(St=Ze.colSpan,it=0,Ze.colSpan>1){Se=Ze,it+=gt.width;continue}Ze.width=gt.width+it}}}(Le),function It(he,Le){for(var Je={count:0,height:0},nt=0,Se=he.allRows();nt<Se.length;nt++){for(var it=Se[nt],St=0,pt=he.columns;St<pt.length;St++){var Ze=it.cells[pt[St].index];if(Ze){Le.applyStyles(Ze.styles,!0);var Lt=Ze.width-Ze.padding("horizontal");if("linebreak"===Ze.styles.overflow)Ze.text=Le.splitTextToSize(Ze.text,Lt+1/Le.scaleFactor(),{fontSize:Ze.styles.fontSize});else if("ellipsize"===Ze.styles.overflow)Ze.text=ut(Ze.text,Lt,Ze.styles,Le,"...");else if("hidden"===Ze.styles.overflow)Ze.text=ut(Ze.text,Lt,Ze.styles,Le,"");else if("function"==typeof Ze.styles.overflow){var cn=Ze.styles.overflow(Ze.text,Lt);Ze.text="string"==typeof cn?[cn]:cn}Ze.contentHeight=Ze.getContentHeight(Le.scaleFactor(),Le.getLineHeightFactor());var Dn=Ze.contentHeight/Ze.rowSpan;Ze.rowSpan>1&&Je.count*Je.height<Dn*Ze.rowSpan?Je={height:Dn,count:Ze.rowSpan}:Je&&Je.count>0&&Je.height>Dn&&(Dn=Je.height),Dn>it.height&&(it.height=Dn)}}Je.count--}}(Le,he),function We(he){for(var Le={},Je=1,nt=he.allRows(),Se=0;Se<nt.length;Se++)for(var it=nt[Se],St=0,pt=he.columns;St<pt.length;St++){var gt=pt[St],Ze=Le[gt.index];if(Je>1)Je--,delete it.cells[gt.index];else if(Ze)Ze.cell.height+=it.height,Je=Ze.cell.colSpan,delete it.cells[gt.index],Ze.left--,Ze.left<=1&&delete Le[gt.index];else{var Lt=it.cells[gt.index];if(!Lt)continue;if(Lt.height=it.height,Lt.rowSpan>1){var cn=nt.length-Se;Le[gt.index]={cell:Lt,left:Lt.rowSpan>cn?cn:Lt.rowSpan,row:it}}}}}(Le)},Dt.resizeColumns=At,Dt.ellipsize=ut},964:function(vn){if(typeof Gn>"u"){var Dt=new Error("Cannot find module 'undefined'");throw Dt.code="MODULE_NOT_FOUND",Dt}vn.exports=Gn}},Fr={};function Pn(vn){var Dt=Fr[vn];if(void 0!==Dt)return Dt.exports;
3var Zt=Fr[vn]={exports:{}};return $a[vn].call(Zt.exports,Zt,Zt.exports,Pn),Zt.exports}var Ui={};return function(){var vn=Ui;Object.defineProperty(vn,"__esModule",{value:!0}),vn.Cell=vn.Column=vn.Row=vn.Table=vn.CellHookData=vn.__drawTable=vn.__createTable=vn.applyPlugin=void 0;var Dt=Pn(340),Zt=Pn(776),hn=Pn(664),vt=Pn(972),Ct=Pn(260);Object.defineProperty(vn,"Table",{enumerable:!0,get:function(){return Ct.Table}});var At=Pn(172);Object.defineProperty(vn,"CellHookData",{enumerable:!0,get:function(){return At.CellHookData}});var We=Pn(260);function Tt(Le){(0,Dt.default)(Le)}Object.defineProperty(vn,"Cell",{enumerable:!0,get:function(){return We.Cell}}),Object.defineProperty(vn,"Column",{enumerable:!0,get:function(){return We.Column}}),Object.defineProperty(vn,"Row",{enumerable:!0,get:function(){return We.Row}}),vn.applyPlugin=Tt,vn.__createTable=function ut(Le,Je){var nt=(0,Zt.parseInput)(Le,Je);return(0,vt.createTable)(Le,nt)},vn.__drawTable=function qe(Le,Je){(0,hn.drawTable)(Le,Je)};try{var he=Pn(964);he.jsPDF&&(he=he.jsPDF),Tt(he)}catch{}vn.default=function It(Le,Je){var nt=(0,Zt.parseInput)(Le,Je),Se=(0,vt.createTable)(Le,nt);(0,hn.drawTable)(Le,Se)}}(),Ui}())},7822:(Pd,Mc,Wr)=>{"use strict";function Gn(g){return(Gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(m){return typeof m}:function(m){return m&&"function"==typeof Symbol&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m})(g)}Wr.r(Mc),Wr.d(Mc,{AcroForm:()=>jc,AcroFormAppearance:()=>ln,AcroFormButton:()=>Oi,AcroFormCheckBox:()=>Zu,AcroFormChoiceField:()=>ks,AcroFormComboBox:()=>Xs,AcroFormEditBox:()=>ya,AcroFormListBox:()=>yr,AcroFormPasswordField:()=>Bc,AcroFormPushButton:()=>Ja,AcroFormRadioButton:()=>yl,AcroFormTextField:()=>ba,GState:()=>Wa,ShadingPattern:()=>Ot,TilingPattern:()=>Kl,default:()=>S2,jsPDF:()=>xn});var Pn=Uint8Array,Ui=Uint16Array,vn=Int32Array,Dt=new Pn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Zt=new Pn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),hn=new Pn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),vt=function(g,m){for(var p=new Ui(31),y=0;y<31;++y)p[y]=m+=1<<g[y-1];var I=new vn(p[30]);for(y=1;y<30;++y)for(var b=p[y];b<p[y+1];++b)I[b]=b-p[y]<<5|y;return{b:p,r:I}},Ct=vt(Dt,2),At=Ct.b,We=Ct.r;At[28]=258,We[258]=28;for(var Tt=vt(Zt,0),It=Tt.b,ut=Tt.r,qe=new Ui(32768),he=0;he<32768;++he){var Le=(43690&he)>>1|(21845&he)<<1;qe[he]=((65280&(Le=(61680&(Le=(52428&Le)>>2|(13107&Le)<<2))>>4|(3855&Le)<<4))>>8|(255&Le)<<8)>>1}var Je=function(g,m,p){for(var y=g.length,I=0,b=new Ui(m);I<y;++I)g[I]&&++b[g[I]-1];var E,D=new Ui(m);for(I=1;I<m;++I)D[I]=D[I-1]+b[I-1]<<1;if(p){E=new Ui(1<<m);var k=15-m;for(I=0;I<y;++I)if(g[I])for(var O=I<<4|g[I],j=m-g[I],H=D[g[I]-1]++<<j,Q=H|(1<<j)-1;H<=Q;++H)E[qe[H]>>k]=O}else for(E=new Ui(y),I=0;I<y;++I)g[I]&&(E[I]=qe[D[g[I]-1]++]>>15-g[I]);return E},nt=new Pn(288);for(he=0;he<144;++he)nt[he]=8;for(he=144;he<256;++he)nt[he]=9;for(he=256;he<280;++he)nt[he]=7;for(he=280;he<288;++he)nt[he]=8;var Se=new Pn(32);for(he=0;he<32;++he)Se[he]=5;var it=Je(nt,9,0),St=Je(nt,9,1),pt=Je(Se,5,0),gt=Je(Se,5,1),Ze=function(g){for(var m=g[0],p=1;p<g.length;++p)g[p]>m&&(m=g[p]);return m},Lt=function(g,m,p){var y=m/8|0;return(g[y]|g[y+1]<<8)>>(7&m)&p},cn=function(g,m){var p=m/8|0;return(g[p]|g[p+1]<<8|g[p+2]<<16)>>(7&m)},Dn=function(g){return(g+7)/8|0},Xe=function(g,m,p){return(null==m||m<0)&&(m=0),(null==p||p>g.length)&&(p=g.length),new Pn(g.subarray(m,p))}
vendor: 4,400 bytes, line 3
3,Nt=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Ve=function(g,m,p){var y=new Error(m||Nt[g]);if(y.code=g,Error.captureStackTrace&&Error.captureStackTrace(y,Ve),!p)throw y;return y},tn=function(g,m,p,y){var I=g.length,b=y?y.length:0;if(!I||m.f&&!m.l)return p||new Pn(0);var D=!p,E=D||2!=m.i,k=m.i;D&&(p=new Pn(3*I));var O=function(kt){var Gt=p.length;if(kt>Gt){var Ht=new Pn(Math.max(2*Gt,kt));Ht.set(p),p=Ht}},j=m.f||0,H=m.p||0,Q=m.b||0,N=m.l,G=m.d,K=m.m,M=m.n,L=8*I;do{if(!N){j=Lt(g,H,1);var re=Lt(g,H+1,3);if(H+=3,!re){var Me=g[(be=Dn(H)+4)-4]|g[be-3]<<8,Ge=be+Me;if(Ge>I){k&&Ve(0);break}E&&O(Q+Me),p.set(g.subarray(be,Ge),Q),m.b=Q+=Me,m.p=H=8*Ge,m.f=j;continue}if(1==re)N=St,G=gt,K=9,M=5;else if(2==re){var wt=Lt(g,H,31)+257,Ne=Lt(g,H+10,15)+4,pe=wt+Lt(g,H+5,31)+1;H+=14;for(var He=new Pn(pe),st=new Pn(19),ee=0;ee<Ne;++ee)st[hn[ee]]=Lt(g,H+3*ee,7);H+=3*Ne;var te=Ze(st),ye=(1<<te)-1,me=Je(st,te,1);for(ee=0;ee<pe;){var be,Ye=me[Lt(g,H,ye)];if(H+=15&Ye,(be=Ye>>4)<16)He[ee++]=be;else{var tt=0,rt=0;for(16==be?(rt=3+Lt(g,H,3),H+=2,tt=He[ee-1]):17==be?(rt=3+Lt(g,H,7),H+=3):18==be&&(rt=11+Lt(g,H,127),H+=7);rt--;)He[ee++]=tt}}var ze=He.subarray(0,wt),lt=He.subarray(wt);K=Ze(ze),M=Ze(lt),N=Je(ze,K,1),G=Je(lt,M,1)}else Ve(1);if(H>L){k&&Ve(0);break}}E&&O(Q+131072);for(var ft=(1<<K)-1,$t=(1<<M)-1,Z=H;;Z=H){var se=(tt=N[cn(g,H)&ft])>>4;if((H+=15&tt)>L){k&&Ve(0);break}if(tt||Ve(2),se<256)p[Q++]=se;else{if(256==se){Z=H,N=null;break}var ue=se-254;se>264&&(ue=Lt(g,H,(1<<(_e=Dt[ee=se-257]))-1)+At[ee],H+=_e);var Ee=G[cn(g,H)&$t],$e=Ee>>4;if(Ee||Ve(3),H+=15&Ee,lt=It[$e],$e>3){var _e=Zt[$e];lt+=cn(g,H)&(1<<_e)-1,H+=_e}if(H>L){k&&Ve(0);break}E&&O(Q+131072);var Ke=Q+ue;if(Q<lt){var et=b-lt,Rt=Math.min(lt,Ke);for(et+Q<0&&Ve(3);Q<Rt;++Q)p[Q]=y[et+Q]}for(;Q<Ke;++Q)p[Q]=p[Q-lt]}}m.l=N,m.p=Z,m.b=Q,m.f=j,N&&(j=1,m.m=K,m.d=G,m.n=M)}while(!j);return Q!=p.length&&D?Xe(p,0,Q):p.subarray(0,Q)},Bt=function(g,m,p){var y=m/8|0;g[y]|=p<<=7&m,g[y+1]|=p>>8},Xt=function(g,m,p){var y=m/8|0;g[y]|=p<<=7&m,g[y+1]|=p>>8,g[y+2]|=p>>16},fn=function(g,m){for(var p=[],y=0;y<g.length;++y)g[y]&&p.push({s:y,f:g[y]});var I=p.length,b=p.slice();if(!I)return{t:ga,l:0};if(1==I){var D=new Pn(p[0].s+1);return D[p[0].s]=1,{t:D,l:1}}p.sort(function(Ge,wt){return Ge.f-wt.f}),p.push({s:-1,f:25001});var E=p[0],k=p[1],O=0,j=1,H=2;for(p[0]={s:-1,f:E.f+k.f,l:E,r:k};j!=I-1;)E=p[p[O].f<p[H].f?O++:H++],k=p[O!=j&&p[O].f<p[H].f?O++:H++],p[j++]={s:-1,f:E.f+k.f,l:E,r:k};var Q=b[0].s;for(y=1;y<I;++y)b[y].s>Q&&(Q=b[y].s);var N=new Ui(Q+1),G=Fn(p[j-1],N,0);if(G>m){y=0;var K=0,M=G-m,L=1<<M;for(b.sort(function(wt,Ne){return N[Ne.s]-N[wt.s]||wt.f-Ne.f});y<I;++y){var re=b[y].s;if(!(N[re]>m))break;K+=L-(1<<G-N[re]),N[re]=m}for(K>>=M;K>0;){var be=b[y].s;N[be]<m?K-=1<<m-N[be]++-1:++y}for(;y>=0&&K;--y){var Me=b[y].s;N[Me]==m&&(--N[Me],++K)}G=m}return{t:new Pn(N),l:G}},Fn=function(g,m,p){return-1==g.s?Math.max(Fn(g.l,m,p+1),Fn(g.r,m,p+1)):m[g.s]=p},Tn=function(g){for(var m=g.length;m&&!g[--m];);for(var p=new Ui(++m),y=0,I=g[0],b=1,D=function(k){p[y++]=k},E=1;E<=m;++E)if(g[E]==I&&E!=m)++b;else{if(!I&&b>2){for(;b>138;b-=138)D(32754);b>2&&(D(b>10?b-11<<5|28690:b-3<<5|12305),b=0)}else if(b>3){for(D(I),--b;b>6;b-=6)D(8304);b>2&&(D(b-3<<5|8208),b=0)}for(;b--;)D(I);b=1,I=g[E]}return{c:p.subarray(0,y),n:m}},un=function(g,m){for(var p=0,y=0;y<m.length;++y)p+=g[y]*m[y];return p},xr=function(g,m,p){var y=p.length,I=Dn(m+2);g[I]=255&y,g[I+1]=y>>8,g[I+2]=255^g[I],g[I+3]=255^g[I+1];for(var b=0;b<y;++b)g[I+b+4]=p[b];return 8*(I+4+y)},gr=function(g,m,p,y,I,b,D,E,k,O,j){Bt(m,j++,p),++I[256];for(var H=fn(I,15),Q=H.t,N=H.l,G=fn(b,15),K=G.t,M=G.l,L=Tn(Q),re=L.c,be=L.n,Me=Tn(K),Ge=Me.c,wt=Me.n,Ne=new Ui(19),pe=0;pe<re.length;++pe)++Ne[31&re[pe]];for(pe=0;pe<Ge.length;++pe)++Ne[31&Ge[pe]];for(var He=fn(Ne,7),st=He.t,ee=He.l,te=19;te>4&&!st[hn[te-1]];--te);var tt,rt,ze,lt,ye=O+5<<3,me=un(I,nt)+un(b,Se)+D,Ye=un(I,Q)+un(b,K)+D+14+3*te+un(Ne,st)+2*Ne[16]+3*Ne[17]+7*Ne[18];if(k>=0&&ye<=me&&ye<=Ye)return xr(m,j,g.subarray(k,k+O));if(Bt(m,j,1+(Ye<me)),j+=2,Ye<me){tt=Je(Q,N,0),rt=Q,ze=Je(K,M,0),lt=K;var ft=Je(st,ee,0);for(Bt(m,j,be-257),Bt(m,j+5,wt-1),Bt(m,j+10,te-4),j+=14,pe=0;pe<te;++pe)Bt(m,j+3*pe,st[hn[pe]]);j+=3*te;
vendor: 4,220 bytes, line 3
3for(var $t=[re,Ge],Z=0;Z<2;++Z){var se=$t[Z];for(pe=0;pe<se.length;++pe)Bt(m,j,ft[ue=31&se[pe]]),j+=st[ue],ue>15&&(Bt(m,j,se[pe]>>5&127),j+=se[pe]>>12)}}else tt=it,rt=nt,ze=pt,lt=Se;for(pe=0;pe<E;++pe){var _e=y[pe];if(_e>255){var ue;Xt(m,j,tt[257+(ue=_e>>18&31)]),j+=rt[ue+257],ue>7&&(Bt(m,j,_e>>23&31),j+=Dt[ue]);var Ee=31&_e;Xt(m,j,ze[Ee]),j+=lt[Ee],Ee>3&&(Xt(m,j,_e>>5&8191),j+=Zt[Ee])}else Xt(m,j,tt[_e]),j+=rt[_e]}return Xt(m,j,tt[256]),j+rt[256]},Qs=new vn([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),ga=new Pn(0),Jh=function(){var g=1,m=0;return{p:function(p){for(var y=g,I=m,b=0|p.length,D=0;D!=b;){for(var E=Math.min(D+2655,b);D<E;++D)I+=y+=p[D];y=(65535&y)+15*(y>>16),I=(65535&I)+15*(I>>16)}g=y,m=I},d:function(){return(255&(g%=65521))<<24|(65280&g)<<8|(255&(m%=65521))<<8|m>>8}}},Hu=function(g,m,p,y,I){if(!I&&(I={l:1},m.dictionary)){var b=m.dictionary.subarray(-32768),D=new Pn(b.length+g.length);D.set(b),D.set(g,b.length),g=D,I.w=b.length}return function(g,m,p,y,I,b){var D=b.z||g.length,E=new Pn(y+D+5*(1+Math.ceil(D/7e3))+I),k=E.subarray(y,E.length-I),O=b.l,j=7&(b.r||0);if(m){j&&(k[0]=b.r>>3);for(var H=Qs[m-1],Q=H>>13,N=8191&H,G=(1<<p)-1,K=b.p||new Ui(32768),M=b.h||new Ui(G+1),L=Math.ceil(p/3),re=2*L,be=function(mn){return(g[mn]^g[mn+1]<<L^g[mn+2]<<re)&G},Me=new vn(25e3),Ge=new Ui(288),wt=new Ui(32),Ne=0,pe=0,He=b.i||0,st=0,ee=b.w||0,te=0;He+2<D;++He){var ye=be(He),me=32767&He,Ye=M[ye];if(K[me]=Ye,M[ye]=me,ee<=He){var tt=D-He;if((Ne>7e3||st>24576)&&(tt>423||!O)){j=gr(g,k,0,Me,Ge,wt,pe,st,te,He-te,j),st=Ne=pe=0,te=He;for(var rt=0;rt<286;++rt)Ge[rt]=0;for(rt=0;rt<30;++rt)wt[rt]=0}var ze=2,lt=0,ft=N,$t=me-Ye&32767;if(tt>2&&ye==be(He-$t))for(var Z=Math.min(Q,tt)-1,se=Math.min(32767,He),ue=Math.min(258,tt);$t<=se&&--ft&&me!=Ye;){if(g[He+ze]==g[He+ze-$t]){for(var _e=0;_e<ue&&g[He+_e]==g[He+_e-$t];++_e);if(_e>ze){if(ze=_e,lt=$t,_e>Z)break;var Ee=Math.min($t,_e-2),$e=0;for(rt=0;rt<Ee;++rt){var Ke=He-$t+rt&32767,Rt=Ke-K[Ke]&32767;Rt>$e&&($e=Rt,Ye=Ke)}}}$t+=(me=Ye)-(Ye=K[me])&32767}if(lt){Me[st++]=268435456|We[ze]<<18|ut[lt];var kt=31&We[ze],Gt=31&ut[lt];pe+=Dt[kt]+Zt[Gt],++Ge[257+kt],++wt[Gt],ee=He+ze,++Ne}else Me[st++]=g[He],++Ge[g[He]]}}for(He=Math.max(He,ee);He<D;++He)Me[st++]=g[He],++Ge[g[He]];j=gr(g,k,O,Me,Ge,wt,pe,st,te,He-te,j),O||(b.r=7&j|k[j/8|0]<<3,j-=7,b.h=M,b.p=K,b.i=He,b.w=ee)}else{for(He=b.w||0;He<D+O;He+=65535){var Ht=He+65535;Ht>=D&&(k[j/8|0]=O,Ht=D),j=xr(k,j+1,g.subarray(He,Ht))}b.i=D}return Xe(E,0,y+Dn(j)+I)}(g,null==m.level?6:m.level,null==m.mem?I.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(g.length)))):20:12+m.mem,p,y,I)},or=function(g,m,p){for(;p;++m)g[m]=p,p>>>=8},Fm=function(g,m){var p=m.level,y=0==p?0:p<6?1:9==p?3:2;if(g[0]=120,g[1]=y<<6|(m.dictionary&&32),g[1]|=31-(g[0]<<8|g[1])%31,m.dictionary){var I=Jh();I.p(m.dictionary),or(g,2,I.d())}},Ni=function(g,m){return(8!=(15&g[0])||g[0]>>4>7||(g[0]<<8|g[1])%31)&&Ve(6,"invalid zlib data"),(g[1]>>5&1)==+!m&&Ve(6,"invalid zlib data: "+(32&g[1]?"need":"unexpected")+" dictionary"),2+(g[1]>>3&4)};function kd(g,m){m||(m={});var p=Jh();p.p(g);var y=Hu(g,m,m.dictionary?6:2,4);return Fm(y,m),or(y,y.length-4,p.d()),y}var Ro=typeof TextDecoder<"u"&&new TextDecoder;try{Ro.decode(ga,{stream:!0})}catch{}"function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout&&setTimeout;var bn=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function Od(){bn.console&&"function"==typeof bn.console.log&&bn.console.log.apply(bn.console,arguments)}var bi={log:Od,warn:function(g){bn.console&&("function"==typeof bn.console.warn?bn.console.warn.apply(bn.console,arguments):Od.call(null,arguments))},error:function(g){bn.console&&("function"==typeof bn.console.error?bn.console.error.apply(bn.console,arguments):Od(g))}};function o1(g,m,p){var y=new XMLHttpRequest;y.open("GET",g),y.responseType="blob",y.onload=function(){Ts(y.response,m,p)},y.onerror=function(){bi.error("could not download file")},y.send()}function Vm(g){var m=new XMLHttpRequest;m.open("HEAD",g,!1);try{m.send()}catch{}return m.status>=200&&m.status<=299}function Gu(g){try{g.dispatchEvent(new MouseEvent("click"))}catch{var m=document.createEvent("MouseEvents");
vendor: 3,234 bytes, line 3
3m.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),g.dispatchEvent(m)}}var Fc,Ql,Ts=bn.saveAs||("object"!==(typeof window>"u"?"undefined":Gn(window))||window!==bn?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(g,m,p){var y=bn.URL||bn.webkitURL,I=document.createElement("a");I.download=m=m||g.name||"download",I.rel="noopener","string"==typeof g?(I.href=g,I.origin!==location.origin?Vm(I.href)?o1(g,m,p):Gu(I,I.target="_blank"):Gu(I)):(I.href=y.createObjectURL(g),setTimeout(function(){y.revokeObjectURL(I.href)},4e4),setTimeout(function(){Gu(I)},0))}:"msSaveOrOpenBlob"in navigator?function(g,m,p){if(m=m||g.name||"download","string"==typeof g)if(Vm(g))o1(g,m,p);else{var y=document.createElement("a");y.href=g,y.target="_blank",setTimeout(function(){Gu(y)})}else navigator.msSaveOrOpenBlob((I=g,void 0===(b=p)?b={autoBom:!1}:"object"!==Gn(b)&&(bi.warn("Deprecated: Expected third argument to be a object"),b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(I.type)?new Blob([String.fromCharCode(65279),I],{type:I.type}):I),m);var I,b}:function(g,m,p,y){if((y=y||open("","_blank"))&&(y.document.title=y.document.body.innerText="downloading..."),"string"==typeof g)return o1(g,m,p);var I="application/octet-stream"===g.type,b=/constructor/i.test(bn.HTMLElement)||bn.safari,D=/CriOS\/[\d]+/.test(navigator.userAgent);if((D||I&&b)&&"object"===(typeof FileReader>"u"?"undefined":Gn(FileReader))){var E=new FileReader;E.onloadend=function(){var j=E.result;j=D?j:j.replace(/^data:[^;]*;/,"data:attachment/file;"),y?y.location.href=j:location=j,y=null},E.readAsDataURL(g)}else{var k=bn.URL||bn.webkitURL,O=k.createObjectURL(g);y?y.location=O:location.href=O,y=null,setTimeout(function(){k.revokeObjectURL(O)},4e4)}});function Hm(g){var m;g=g||"",this.ok=!1,"#"==g.charAt(0)&&(g=g.substr(1,6)),g={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee9
30",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[g=(g=g.replace(/ /g,"")).toLowerCase()]||g;for(var p=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(E){return[parseInt(E[1]),parseInt(E[2]),parseInt(E[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(E){return[parseInt(E[1],16),parseInt(E[2],16),parseInt(E[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(E){return[parseInt(E[1]+E[1],16),parseInt(E[2]+E[2],16),parseInt(E[3]+E[3],16)]}}],y=0;y<p.length;y++){var b=p[y].process,D=p[y].re.exec(g);D&&(m=b(D),this.r=m[0],this.g=m[1],this.b=m[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var E=this.r.toString(16),k=this.g.toString(16),O=this.b.toString(16);return 1==E.length&&(E="0"+E),1==k.length&&(k="0"+k),1==O.length&&(O="0"+O),"#"+E+k+O}}function Mt(g,m){var p=g[0],y=g[1],I=g[2],b=g[3];p=Dr(p,y,I,b,m[0],7,-680876936),b=Dr(b,p,y,I,m[1],12,-389564586),I=Dr(I,b,p,y,m[2],17,606105819),y=Dr(y,I,b,p,m[3],22,-1044525330),p=Dr(p,y,I,b,m[4],7,-176418897),b=Dr(b,p,y,I,m[5],12,1200080426),I=Dr(I,b,p,y,m[6],17,-1473231341),y=Dr(y,I,b,p,m[7],22,-45705983),p=Dr(p,y,I,b,m[8],7,1770035416),b=Dr(b,p,y,I,m[9],12,-1958414417),I=Dr(I,b,p,y,m[10],17,-42063),y=Dr(y,I,b,p,m[11],22,-1990404162),p=Dr(p,y,I,b,m[12],7,1804603682),b=Dr(b,p,y,I,m[13],12,-40341101),I=Dr(I,b,p,y,m[14],17,-1502002290),p=Jr(p,y=Dr(y,I,b,p,m[15],22,1236535329),I,b,m[1],5,-165796510),b=Jr(b,p,y,I,m[6],9,-1069501632),I=Jr(I,b,p,y,m[11],14,643717713),y=Jr(y,I,b,p,m[0],20,-373897302),p=Jr(p,y,I,b,m[5],5,-701558691),b=Jr(b,p,y,I,m[10],9,38016083),I=Jr(I,b,p,y,m[15],14,-660478335),y=Jr(y,I,b,p,m[4],20,-405537848),p=Jr(p,y,I,b,m[9],5,568446438),b=Jr(b,p,y,I,m[14],9,-1019803690),I=Jr(I,b,p,y,m[3],14,-187363961),y=Jr(y,I,b,p,m[8],20,1163531501),p=Jr(p,y,I,b,m[13],5,-1444681467),b=Jr(b,p,y,I,m[2],9,-51403784),I=Jr(I,b,p,y,m[7],14,1735328473),p=Xr(p,y=Jr(y,I,b,p,m[12],20,-1926607734),I,b,m[5],4,-378558),b=Xr(b,p,y,I,m[8],11,-2022574463),I=Xr(I,b,p,y,m[11],16,1839030562),y=Xr(y,I,b,p,m[14],23,-35309556),p=Xr(p,y,I,b,m[1],4,-1530992060),b=Xr(b,p,y,I,m[4],11,1272893353),I=Xr(I,b,p,y,m[7],16,-155497632),y=Xr(y,I,b,p,m[10],23,-1094730640),p=Xr(p,y,I,b,m[13],4,681279174),b=Xr(b,p,y,I,m[0],11,-358537222),I=Xr(I,b,p,y,m[3],16,-722521979),y=Xr(y,I,b,p,m[6],23,76029189),p=Xr(p,y,I,b,m[9],4,-640364487),b=Xr(b,p,y,I,m[12],11,-421815835),I=Xr(I,b,p,y,m[15],16,530742520),p=Ar(p,y=Xr(y,I,b,p,m[2],23,-995338651),I,b,m[0],6,-198630844),b=Ar(b,p,y,I,m[7],10,1126891415),I=Ar(I,b,p,y,m[14],15,-1416354905),y=Ar(y,I,b,p,m[5],21,-57434055),p=Ar(p,y,I,b,m[12],6,1700485571),b=Ar(b,p,y,I,m[3],10,-1894986606),I=Ar(I,b,p,y,m[10],15,-1051523),y=Ar(y,I,b,p,m[1],21,-2054922799),p=Ar(p,y,I,b,m[8],6,1873313359),b=Ar(b,p,y,I,m[15],10,-30611744),I=Ar(I,b,p,y,m[6],15,-1560198380),y=Ar(y,I,b,p,m[13],21,1309151649),p=Ar(p,y,I,b,m[4],6,-145523070),b=Ar(b,p,y,I,m[11],10,-1120210379),I=Ar(I,b,p,y,m[2],15,718787259),y=Ar(y,I,b,p,m[9],21,-343485551),g[0]=Yn(p,g[0]),g[1]=Yn(y,g[1]),g[2]=Yn(I,g[2]),g[3]=Yn(b,g[3])}function Rd(g,m,p,y,I,b){return m=Yn(Yn(m,g),Yn(y,b)),Yn(m<<I|m>>>32-I,p)}function Dr(g,m,p,y,I,b,D){return Rd(m&p|~m&y,g,m,I,b,D)}function Jr(g,m,p,y,I,b,D){return Rd(m&y|p&~y,g,m,I,b,D)}function Xr(g,m,p,y,I,b,D){return Rd(m^p^y,g,m,I,b,D)}function Ar(g,m,p,y,I,b,D){return Rd(p^(m|~y),g,m,I,b,D)}function zm(g){var m,p=g.length,y=[1732584193,-271733879,-1732584194,271733878];for(m=64;m<=g.length;m+=64)Mt(y,s2(g.substring(m-64,m)));g=g.substring(m-64);var I=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(m=0;m<g.length;m++)I[m>>2]|=g.charCodeAt(m)<<(m%4<<3);if(I[m>>
vendor: 4,093 bytes, line 3
32]|=128<<(m%4<<3),m>55)for(Mt(y,I),m=0;m<16;m++)I[m]=0;return I[14]=8*p,Mt(y,I),y}function s2(g){var m,p=[];for(m=0;m<64;m+=4)p[m>>2]=g.charCodeAt(m)+(g.charCodeAt(m+1)<<8)+(g.charCodeAt(m+2)<<16)+(g.charCodeAt(m+3)<<24);return p}Fc=bn.atob.bind(bn),Ql=bn.btoa.bind(bn);var qm="0123456789abcdef".split("");function Ua(g){for(var m="",p=0;p<4;p++)m+=qm[g>>8*p+4&15]+qm[g>>8*p&15];return m}function _a(g){return String.fromCharCode((255&g)>>0,(65280&g)>>8,(16711680&g)>>16,(4278190080&g)>>24)}function Es(g){return zm(g).map(_a).join("")}var Ga="5d41402abc4b2a76b9719d911017c592"!=function(g){for(var m=0;m<g.length;m++)g[m]=Ua(g[m]);return g.join("")}(zm("hello"));function Yn(g,m){if(Ga){var p=(65535&g)+(65535&m);return(g>>16)+(m>>16)+(p>>16)<<16|65535&p}return g+m&4294967295}function Ac(g,m){var p,y,I;if(g!==p){for(var D=(I=g,new Array(1+(256/g.length>>0)+1).join(I)),E=[],k=0;k<256;k++)E[k]=k;var O=0;for(k=0;k<256;k++){var j=E[k];O=(O+j+D.charCodeAt(k))%256,E[k]=E[O],E[O]=j}p=g,y=E}else E=y;var H=m.length,Q=0,N=0,G="";for(k=0;k<H;k++)N=(N+(j=E[Q=(Q+1)%256]))%256,E[Q]=E[N],E[N]=j,D=E[(E[Q]+E[N])%256],G+=String.fromCharCode(m.charCodeAt(k)^D);return G}var Wu={print:4,modify:8,copy:16,"annot-forms":32};function Cl(g,m,p,y){this.v=1,this.r=2;var I=192;g.forEach(function(E){if(void 0!==Wu.perm)throw new Error("Invalid permission: "+E);I+=Wu[E]}),this.padding="(\xbfN^Nu\x8aAd\0NV\xff\xfa\x01\b..\0\xb6\xd0h>\x80/\f\xa9\xfedSiz";var b=(m+this.padding).substr(0,32),D=(p+this.padding).substr(0,32);this.O=this.processOwnerPassword(b,D),this.P=-(1+(255^I)),this.encryptionKey=Es(b+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(y)).substr(0,5),this.U=Ac(this.encryptionKey,this.padding)}function Yl(g){if(/[^\u0000-\u00ff]/.test(g))throw new Error("Invalid PDF Name Object: "+g+", Only accept ASCII characters.");for(var m="",p=g.length,y=0;y<p;y++){var I=g.charCodeAt(y);m+=I<33||35===I||37===I||40===I||41===I||47===I||60===I||62===I||91===I||93===I||123===I||125===I||I>126?"#"+("0"+I.toString(16)).slice(-2):g[y]}return m}function Ca(g){if("object"!==Gn(g))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var m={};this.subscribe=function(p,y,I){if(I=I||!1,"string"!=typeof p||"function"!=typeof y||"boolean"!=typeof I)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");m.hasOwnProperty(p)||(m[p]={});var b=Math.random().toString(35);return m[p][b]=[y,!!I],b},this.unsubscribe=function(p){for(var y in m)if(m[y][p])return delete m[y][p],0===Object.keys(m[y]).length&&delete m[y],!0;return!1},this.publish=function(p){if(m.hasOwnProperty(p)){var y=Array.prototype.slice.call(arguments,1),I=[];for(var b in m[p]){var D=m[p][b];try{D[0].apply(g,y)}catch(E){bn.console&&bi.error("jsPDF PubSub Error",E.message,E)}D[1]&&I.push(b)}I.length&&I.forEach(this.unsubscribe)}},this.getTopics=function(){return m}}function Wa(g){if(!(this instanceof Wa))return new Wa(g);var m="opacity,stroke-opacity".split(",");for(var p in g)g.hasOwnProperty(p)&&m.indexOf(p)>=0&&(this[p]=g[p]);this.id="",this.objectNumber=-1}function $m(g,m){this.gState=g,this.matrix=m,this.id="",this.objectNumber=-1}function Ot(g,m,p,y,I){if(!(this instanceof Ot))return new Ot(g,m,p,y,I);this.type="axial"===g?2:3,this.coords=m,this.colors=p,$m.call(this,y,I)}function Kl(g,m,p,y,I){if(!(this instanceof Kl))return new Kl(g,m,p,y,I);this.boundingBox=g,this.xStep=m,this.yStep=p,this.stream="",this.cloneIndex=0,$m.call(this,y,I)}function xn(g){var m,p="string"==typeof arguments[0]?arguments[0]:"p",y=arguments[1],I=arguments[2],b=arguments[3],D=[],E=1,k=16,O="S",j=null;"object"===Gn(g=g||{})&&(p=g.orientation,y=g.unit||y,I=g.format||I,b=g.compress||g.compressPdf||b,null!==(j=g.encryption||null)&&(j.userPassword=j.userPassword||"",j.ownerPassword=j.ownerPassword||"",j.userPermissions=j.userPermissions||[]),E="number"==typeof g.userUnit?Math.abs(g.userUnit):1,void 0!==g.precision&&(m=g.precision),void 0!==g.floatPrecision&&(k=g.floatPrecision),O=g.defaultPathOperation||"S"),D=g.filters||(!0===b?["FlateEncode"]:D),y=y||"mm",p=(""+(p||"P")).toLowerCase();
vendor: 4,806 bytes, line 3
3var H=g.putOnlyUsedFonts||!1,Q={},N={internal:{},__private__:{}};N.__private__.PubSub=Ca;var G="1.3",K=N.__private__.getPdfVersion=function(){return G};N.__private__.setPdfVersion=function(x){G=x};var M={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};N.__private__.getPageFormats=function(){return M};var L=N.__private__.getPageFormat=function(x){return M[x]};I=I||"a4";var re={COMPAT:"compat",ADVANCED:"advanced"},be=re.COMPAT;function Me(){this.saveGraphicsState(),le(new kn(Kt,0,0,-Kt,0,Ml()*Kt).toString()+" cm"),this.setFontSize(this.getFontSize()/Kt),O="n",be=re.ADVANCED}function Ge(){this.restoreGraphicsState(),O="S",be=re.COMPAT}var wt=N.__private__.combineFontStyleAndFontWeight=function(x,q){if("bold"==x&&"normal"==q||"bold"==x&&400==q||"normal"==x&&"italic"==q||"bold"==x&&"italic"==q)throw new Error("Invalid Combination of fontweight and fontstyle");return q&&(x=400==q||"normal"===q?"italic"===x?"italic":"normal":700!=q&&"bold"!==q||"normal"!==x?(700==q?"bold":q)+""+x:"bold"),x};N.advancedAPI=function(x){var q=be===re.COMPAT;return q&&Me.call(this),"function"!=typeof x||(x(this),q&&Ge.call(this)),this},N.compatAPI=function(x){var q=be===re.ADVANCED;return q&&Ge.call(this),"function"!=typeof x||(x(this),q&&Me.call(this)),this},N.isAdvancedAPI=function(){return be===re.ADVANCED};var Ne,pe=function(x){if(be!==re.ADVANCED)throw new Error(x+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},He=N.roundToPrecision=N.__private__.roundToPrecision=function(x,q){var ae=m||q;if(isNaN(x)||isNaN(ae))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return x.toFixed(ae).replace(/0+$/,"")};Ne=N.hpf=N.__private__.hpf="number"==typeof k?function(x){if(isNaN(x))throw new Error("Invalid argument passed to jsPDF.hpf");return He(x,k)}:"smart"===k?function(x){if(isNaN(x))throw new Error("Invalid argument passed to jsPDF.hpf");return He(x,x>-1&&x<1?16:5)}:function(x){if(isNaN(x))throw new Error("Invalid argument passed to jsPDF.hpf");return He(x,16)};var st=N.f2=N.__private__.f2=function(x){if(isNaN(x))throw new Error("Invalid argument passed to jsPDF.f2");return He(x,2)},ee=N.__private__.f3=function(x){if(isNaN(x))throw new Error("Invalid argument passed to jsPDF.f3");return He(x,3)},te=N.scale=N.__private__.scale=function(x){if(isNaN(x))throw new Error("Invalid argument passed to jsPDF.scale");return be===re.COMPAT?x*Kt:be===re.ADVANCED?x:void 0},me=function(x){return te(function(x){return be===re.COMPAT?Ml()-x:be===re.ADVANCED?x:void 0}(x))};N.__private__.setPrecision=N.setPrecision=function(x){"number"==typeof parseInt(x,10)&&(m=parseInt(x,10))};var Ye,tt="00000000000000000000000000000000",rt=N.__private__.getFileId=function(){return tt},ze=N.__private__.setFileId=function(x){return tt=void 0!==x&&/^[a-fA-F0-9]{32}$/.test(x)?x.toUpperCase():tt.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),null!==j&&(jr=new Cl(j.userPermissions,j.userPassword,j.ownerPassword,tt)),tt};N.setFileId=function(x){return ze(x),this},N.getFileId=function(){return rt()};var lt=N.__private__.convertDateToPDFDate=function(x){var q=x.getTimezoneOffset(),ae=q<0?"+":"-",ge=Math.floor(Math.abs(q/60)),Fe=Math.abs(q%60),ct=[ae,ue(ge),"'",ue(Fe),"'"].join("");return["D:",x.getFullYear(),ue(x.getMonth()+1),ue(x.getDate()),ue(x.getHours()),ue(x.getMinutes()),ue(x.getSeconds()),ct].join("")},ft=N.__private__.convertPDFDateToDate=function(x){var q=parseInt(x.substr(2,4),10),ae=parseInt(x.substr(6,2),10)-1,ge=parseInt(x.substr(8,2),10),Fe=parseInt(x.substr(10,2),10),ct=parseInt(x.substr(12,2),10),Et=parseInt(x.substr(14,2),10);return new Date(q,ae,ge,Fe,ct,Et,0)},$t=N.__private__.setCreationDate=function(x){var q;if(void 0===x&&(x=new Date),x instanceof Date)q=lt(x);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(x))throw new Error("Invalid argument passed to
3jsPDF.setCreationDate");q=x}return Ye=q},Z=N.__private__.getCreationDate=function(x){var q=Ye;return"jsDate"===x&&(q=ft(Ye)),q};N.setCreationDate=function(x){return $t(x),this},N.getCreationDate=function(x){return Z(x)};var se,ue=N.__private__.padd2=function(x){return("0"+parseInt(x)).slice(-2)},_e=N.__private__.padd2Hex=function(x){return("00"+(x=x.toString())).substr(x.length)},Ee=0,$e=[],Ke=[],et=0,Rt=[],kt=[],Gt=!1,Ht=Ke;N.__private__.setCustomOutputDestination=function(x){Gt=!0,Ht=x};var ot=function(x){Gt||(Ht=x)};N.__private__.resetCustomOutputDestination=function(){Gt=!1,Ht=Ke};var le=N.__private__.out=function(x){return x=x.toString(),et+=x.length+1,Ht.push(x),Ht},we=N.__private__.write=function(x){return le(1===arguments.length?x.toString():Array.prototype.join.call(arguments," "))},pn=N.__private__.getArrayBuffer=function(x){for(var q=x.length,ae=new ArrayBuffer(q),ge=new Uint8Array(ae);q--;)ge[q]=x.charCodeAt(q);return ae},Pe=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];N.__private__.getStandardFonts=function(){return Pe};var jt=g.fontSize||16;N.__private__.setFontSize=N.setFontSize=function(x){return jt=be===re.ADVANCED?x/Kt:x,this};var Yt,Ut=N.__private__.getFontSize=N.getFontSize=function(){return be===re.COMPAT?jt:jt*Kt},gn=g.R2L||!1;N.__private__.setR2L=N.setR2L=function(x){return gn=x,this},N.__private__.getR2L=N.getR2L=function(){return gn};var An,Hn=N.__private__.setZoomMode=function(x){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(x))Yt=x;else if(isNaN(x)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(x))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+x+'" is not recognized.');Yt=x}else Yt=parseInt(x,10)};N.__private__.getZoomMode=function(){return Yt};var Zn,ci=N.__private__.setPageMode=function(x){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(x))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+x+'" is not recognized.');An=x};N.__private__.getPageMode=function(){return An};var Bi=N.__private__.setLayoutMode=function(x){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(x))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+x+'" is not recognized.');Zn=x};N.__private__.getLayoutMode=function(){return Zn},N.__private__.setDisplayMode=N.setDisplayMode=function(x,q,ae){return Hn(x),Bi(q),ci(ae),this};var wn={title:"",subject:"",author:"",keywords:"",creator:""};N.__private__.getDocumentProperty=function(x){if(-1===Object.keys(wn).indexOf(x))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return wn[x]},N.__private__.getDocumentProperties=function(){return wn},N.__private__.setDocumentProperties=N.setProperties=N.setDocumentProperties=function(x){for(var q in wn)wn.hasOwnProperty(q)&&x[q]&&(wn[q]=x[q]);return this},N.__private__.setDocumentProperty=function(x,q){if(-1===Object.keys(wn).indexOf(x))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return wn[x]=q};var Jn,Kt,Fo,di,Ia,$i={},tr={},Za=[],Li={},Qa={},ar={},Ns={},ts=null,lr=0,Bn=[],mi=new Ca(N),nc=g.hotfixes||[],Nr={},Os={},ns=[],kn=function x(q,ae,ge,Fe,ct,Et){if(!(this instanceof x))return new x(q,ae,ge,Fe,ct,Et);isNaN(q)&&(q=1),isNaN(ae)&&(ae=0),isNaN(ge)&&(ge=0),isNaN(Fe)&&(Fe=1),isNaN(ct)&&(ct=0),isNaN(Et)&&(Et=0),this._matrix=[q,ae,ge,Fe,ct,Et]};Object.defineProperty(kn.prototype,"sx",{get:function(){return this._matrix[0]},set:function(x){this._matrix[0]=x}}),Object.defineProperty(kn.prototype,"shy",{get:function(){return this._matrix[
vendor: 4,350 bytes, line 3
31]},set:function(x){this._matrix[1]=x}}),Object.defineProperty(kn.prototype,"shx",{get:function(){return this._matrix[2]},set:function(x){this._matrix[2]=x}}),Object.defineProperty(kn.prototype,"sy",{get:function(){return this._matrix[3]},set:function(x){this._matrix[3]=x}}),Object.defineProperty(kn.prototype,"tx",{get:function(){return this._matrix[4]},set:function(x){this._matrix[4]=x}}),Object.defineProperty(kn.prototype,"ty",{get:function(){return this._matrix[5]},set:function(x){this._matrix[5]=x}}),Object.defineProperty(kn.prototype,"a",{get:function(){return this._matrix[0]},set:function(x){this._matrix[0]=x}}),Object.defineProperty(kn.prototype,"b",{get:function(){return this._matrix[1]},set:function(x){this._matrix[1]=x}}),Object.defineProperty(kn.prototype,"c",{get:function(){return this._matrix[2]},set:function(x){this._matrix[2]=x}}),Object.defineProperty(kn.prototype,"d",{get:function(){return this._matrix[3]},set:function(x){this._matrix[3]=x}}),Object.defineProperty(kn.prototype,"e",{get:function(){return this._matrix[4]},set:function(x){this._matrix[4]=x}}),Object.defineProperty(kn.prototype,"f",{get:function(){return this._matrix[5]},set:function(x){this._matrix[5]=x}}),Object.defineProperty(kn.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(kn.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(kn.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(kn.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),kn.prototype.join=function(x){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Ne).join(x)},kn.prototype.multiply=function(x){return new kn(x.sx*this.sx+x.shy*this.shx,x.sx*this.shy+x.shy*this.sy,x.shx*this.sx+x.sy*this.shx,x.shx*this.shy+x.sy*this.sy,x.tx*this.sx+x.ty*this.shx+this.tx,x.tx*this.shy+x.ty*this.sy+this.ty)},kn.prototype.decompose=function(){var x=this.sx,q=this.shy,ae=this.shx,ge=this.sy,Fe=this.tx,ct=this.ty,Et=Math.sqrt(x*x+q*q),nn=(x/=Et)*ae+(q/=Et)*ge;ae-=x*nn,ge-=q*nn;var Cn=Math.sqrt(ae*ae+ge*ge);return nn/=Cn,x*(ge/=Cn)<q*(ae/=Cn)&&(x=-x,q=-q,nn=-nn,Et=-Et),{scale:new kn(Et,0,0,Cn,0,0),translate:new kn(1,0,0,1,Fe,ct),rotate:new kn(x,q,-q,x,0,0),skew:new kn(1,0,nn,1,0,0)}},kn.prototype.toString=function(x){return this.join(" ")},kn.prototype.inversed=function(){var x=this.sx,q=this.shy,ae=this.shx,ge=this.sy,Fe=this.tx,ct=this.ty,Et=1/(x*ge-q*ae),nn=ge*Et,Cn=-q*Et,qn=-ae*Et,Vn=x*Et;return new kn(nn,Cn,qn,Vn,-nn*Fe-qn*ct,-Cn*Fe-Vn*ct)},kn.prototype.applyToPoint=function(x){return new Jc(x.x*this.sx+x.y*this.shx+this.tx,x.x*this.shy+x.y*this.sy+this.ty)},kn.prototype.applyToRectangle=function(x){var q=this.applyToPoint(x),ae=this.applyToPoint(new Jc(x.x+x.w,x.y+x.h));return new Ll(q.x,q.y,ae.x-q.x,ae.y-q.y)},kn.prototype.clone=function(){return new kn(this.sx,this.shy,this.shx,this.sy,this.tx,this.ty)},N.Matrix=kn;var Rs=N.matrixMult=function(x,q){return q.multiply(x)},ea=new kn(1,0,0,1,0,0);N.unitMatrix=N.identityMatrix=ea;var Ho=function(x,q){if(!Qa[x]){var ae=(q instanceof Ot?"Sh":"P")+(Object.keys(Li).length+1).toString(10);q.id=ae,Qa[x]=ae,Li[ae]=q,mi.publish("addPattern",q)}};N.ShadingPattern=Ot,N.TilingPattern=Kl,N.addShadingPattern=function(x,q){return pe("addShadingPattern()"),Ho(x,q),this},N.beginTilingPattern=function(x){pe("beginTilingPattern()"),rh(x.boundingBox[0],x.boundingBox[1],x.boundingBox[2]-x.boundingBox[0],x.boundingBox[3]-x.boundingBox[1],x.matrix)},N.endTilingPattern=function(x,q){pe("endTilingPattern()"),q.stream=kt[se].join("\n"),Ho(x,q),mi.publish("endTilingPattern",q),ns.pop().restore()};var x,ji=N.__private__.newObject=function(){var x=Or();return bo(x,!0),x},Or=N.__private__.newObjectDeferred=function(){return Ee++,$e[Ee]=function(){return et},Ee},bo=function(x,q){return q="boolean"==typeof q&&q,$e[x]=et,q&&le(x+" 0 obj"),x},Sl=N.__private__.newAdditionalObject=function(){var x={objId:Or(),content:""};return Rt.push(x),x},xa=Or(),is=Or(),rs=N.__private__.decodeColorString=function(x){var q=x.split(" ");if(2!==q.length||"g"!==q[1]&&"G"!==q[1])5===q.length&&("k"===q[4]||"K"===q[4])&&(q=[(1-q[0])*(1-q[3]),(1-q[1])*(1-q[3]),(1-q[2])*(1-q[3]),"r"]);else{var ae=parseFloat(q[0]);q=[ae,ae,ae,"r"]}
vendor: 5,176 bytes, line 3
3for(var ge="#",Fe=0;Fe<3;Fe++)ge+=("0"+Math.floor(255*parseFloat(q[Fe])).toString(16)).slice(-2);return ge},ta=N.__private__.encodeColorString=function(x){var q;"string"==typeof x&&(x={ch1:x});var ae=x.ch1,ge=x.ch2,Fe=x.ch3,ct=x.ch4,Et="draw"===x.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof ae&&"#"!==ae.charAt(0)){var nn=new Hm(ae);if(nn.ok)ae=nn.toHex();else if(!/^\d*\.?\d*$/.test(ae))throw new Error('Invalid color "'+ae+'" passed to jsPDF.encodeColorString.')}if("string"==typeof ae&&/^#[0-9A-Fa-f]{3}$/.test(ae)&&(ae="#"+ae[1]+ae[1]+ae[2]+ae[2]+ae[3]+ae[3]),"string"==typeof ae&&/^#[0-9A-Fa-f]{6}$/.test(ae)){var Cn=parseInt(ae.substr(1),16);ae=Cn>>16&255,ge=Cn>>8&255,Fe=255&Cn}if(void 0===ge||void 0===ct&&ae===ge&&ge===Fe)q="string"==typeof ae?ae+" "+Et[0]:2===x.precision?st(ae/255)+" "+Et[0]:ee(ae/255)+" "+Et[0];else if(void 0===ct||"object"===Gn(ct)){if(ct&&!isNaN(ct.a)&&0===ct.a)return["1.","1.","1.",Et[1]].join(" ");q="string"==typeof ae?[ae,ge,Fe,Et[1]].join(" "):2===x.precision?[st(ae/255),st(ge/255),st(Fe/255),Et[1]].join(" "):[ee(ae/255),ee(ge/255),ee(Fe/255),Et[1]].join(" ")}else q="string"==typeof ae?[ae,ge,Fe,ct,Et[2]].join(" "):2===x.precision?[st(ae),st(ge),st(Fe),st(ct),Et[2]].join(" "):[ee(ae),ee(ge),ee(Fe),ee(ct),Et[2]].join(" ");return q},na=N.__private__.getFilters=function(){return D},os=N.__private__.putStream=function(x){var q=(x=x||{}).data||"",ae=x.filters||na(),ge=x.alreadyAppliedFilters||[],Fe=x.addLength1||!1,ct=q.length,Et=x.objectId,nn=function(ki){return ki};if(null!==j&&void 0===Et)throw new Error("ObjectId must be passed to putStream for file encryption");null!==j&&(nn=jr.encryptor(Et,0));var Cn={};!0===ae&&(ae=["FlateEncode"]);var qn=x.additionalKeyValues||[],Vn=(Cn=void 0!==xn.API.processDataByFilters?xn.API.processDataByFilters(q,ae):{data:q,reverseChain:[]}).reverseChain+(Array.isArray(ge)?ge.join(" "):ge.toString());if(0!==Cn.data.length&&(qn.push({key:"Length",value:Cn.data.length}),!0===Fe&&qn.push({key:"Length1",value:ct})),0!=Vn.length)if(Vn.split("/").length-1==1)qn.push({key:"Filter",value:Vn});else{qn.push({key:"Filter",value:"["+Vn+"]"});for(var ni=0;ni<qn.length;ni+=1)if("DecodeParms"===qn[ni].key){for(var nr=[],dr=0;dr<Cn.reverseChain.split("/").length-1;dr+=1)nr.push("null");nr.push(qn[ni].value),qn[ni].value="["+nr.join(" ")+"]"}}le("<<");for(var Tr=0;Tr<qn.length;Tr++)le("/"+qn[Tr].key+" "+qn[Tr].value);le(">>"),0!==Cn.data.length&&(le("stream"),le(nn(Cn.data)),le("endstream"))},ia=N.__private__.putPage=function(x){var q=x.number,ae=x.data,ge=x.objId,Fe=x.contentsObjId;bo(ge,!0),le("<</Type /Page"),le("/Parent "+x.rootDictionaryObjId+" 0 R"),le("/Resources "+x.resourceDictionaryObjId+" 0 R"),le("/MediaBox ["+parseFloat(Ne(x.mediaBox.bottomLeftX))+" "+parseFloat(Ne(x.mediaBox.bottomLeftY))+" "+Ne(x.mediaBox.topRightX)+" "+Ne(x.mediaBox.topRightY)+"]"),null!==x.cropBox&&le("/CropBox ["+Ne(x.cropBox.bottomLeftX)+" "+Ne(x.cropBox.bottomLeftY)+" "+Ne(x.cropBox.topRightX)+" "+Ne(x.cropBox.topRightY)+"]"),null!==x.bleedBox&&le("/BleedBox ["+Ne(x.bleedBox.bottomLeftX)+" "+Ne(x.bleedBox.bottomLeftY)+" "+Ne(x.bleedBox.topRightX)+" "+Ne(x.bleedBox.topRightY)+"]"),null!==x.trimBox&&le("/TrimBox ["+Ne(x.trimBox.bottomLeftX)+" "+Ne(x.trimBox.bottomLeftY)+" "+Ne(x.trimBox.topRightX)+" "+Ne(x.trimBox.topRightY)+"]"),null!==x.artBox&&le("/ArtBox ["+Ne(x.artBox.bottomLeftX)+" "+Ne(x.artBox.bottomLeftY)+" "+Ne(x.artBox.topRightX)+" "+Ne(x.artBox.topRightY)+"]"),"number"==typeof x.userUnit&&1!==x.userUnit&&le("/UserUnit "+x.userUnit),mi.publish("putPage",{objId:ge,pageContext:Bn[q],pageNumber:q,page:ae}),le("/Contents "+Fe+" 0 R"),le(">>"),le("endobj");var ct=ae.join("\n");return be===re.ADVANCED&&(ct+="\nQ"),bo(Fe,!0),os({data:ct,filters:na(),objectId:Fe}),le("endobj"),ge},wl=N.__private__.putPages=function(){var x,q,ae=[];for(x=1;x<=lr;x++)Bn[x].objId=Or(),Bn[x].contentsObjId=Or();for(x=1;x<=lr;x++)ae.push(ia({number:x,data:kt[x],objId:Bn[x].objId,contentsObjId:Bn[x].contentsObjId,mediaBox:Bn[x].mediaBox,cropBox:Bn[x].cropBox,bleedBox:Bn[x].bleedBox,trimBox:Bn[x].trimBox,artBox:Bn[x].artBox,userUnit:Bn[x].userUnit,rootDictionaryObjId:xa,resourceDictionaryObjId:is}));bo(xa,!0),le("<</Type /Pages");var ge="/Kids [";for(q=0;q<lr;q++)ge+=ae[q]+" 0 R ";le(ge+"]"),le("/Count "+lr),le(">>"),le("endobj"),mi.publish("postPutPages")},zc=function(x){mi.publish("putFont",{font:x,out:le,newObject:ji,putStream:os}),!0!==x.isAlreadyPutted&&(x.objectNumber=ji(),le("<<"),le("/Type /Font"),le("/BaseFont /"+Yl(x.postScriptName)),le("/Subtype /Type1"),"string"==typeof x.encoding&&le("/Encoding /"+x.encoding),le("/FirstChar 32"),le("/LastChar 255"),le(">>"),le("endobj"))},Bs=function(x){x.objectNumber=ji();var q=[];q.push({key:"Type",value:"/XObject"}),q.push({key:"Subtype",value:"/Form"}),q.push({key:"BBox",value:"["+[Ne(x.x),Ne(x.y),Ne(x.x+x.width),Ne(x.y+x.height)].join(" ")+"]"}),q.push({key:"Matrix",value:"["+x.matrix.toString()+"]"});var ae=x.pages[1].join("\n");os({data:ae,additionalKeyValues:q,objectId:x.objectNumber}),le("endobj")},Ku=function(x,q){q||(q=21);var ae=ji(),ge=function(x,q){var ae,ge=[],Fe=1/(q-1);for(ae=0;ae<1;ae+=Fe)ge.push(ae);
vendor: 12,648 bytes, line 3
3ge.push(1),0!=x[0].offset&&x.unshift({offset:0,color:x[0].color}),1!=x[x.length-1].offset&&x.push({offset:1,color:x[x.length-1].color});for(var nn="",Cn=0,qn=0;qn<ge.length;qn++){for(ae=ge[qn];ae>x[Cn+1].offset;)Cn++;var Vn=x[Cn].offset,ni=(ae-Vn)/(x[Cn+1].offset-Vn),nr=x[Cn].color,dr=x[Cn+1].color;nn+=_e(Math.round((1-ni)*nr[0]+ni*dr[0]).toString(16))+_e(Math.round((1-ni)*nr[1]+ni*dr[1]).toString(16))+_e(Math.round((1-ni)*nr[2]+ni*dr[2]).toString(16))}return nn.trim()}(x.colors,q),Fe=[];Fe.push({key:"FunctionType",value:"0"}),Fe.push({key:"Domain",value:"[0.0 1.0]"}),Fe.push({key:"Size",value:"["+q+"]"}),Fe.push({key:"BitsPerSample",value:"8"}),Fe.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Fe.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),os({data:ge,additionalKeyValues:Fe,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:ae}),le("endobj"),x.objectNumber=ji(),le("<< /ShadingType "+x.type),le("/ColorSpace /DeviceRGB");var ct="/Coords ["+Ne(parseFloat(x.coords[0]))+" "+Ne(parseFloat(x.coords[1]))+" ";ct+=2===x.type?Ne(parseFloat(x.coords[2]))+" "+Ne(parseFloat(x.coords[3])):Ne(parseFloat(x.coords[2]))+" "+Ne(parseFloat(x.coords[3]))+" "+Ne(parseFloat(x.coords[4]))+" "+Ne(parseFloat(x.coords[5])),le(ct+="]"),x.matrix&&le("/Matrix ["+x.matrix.toString()+"]"),le("/Function "+ae+" 0 R"),le("/Extend [true true]"),le(">>"),le("endobj")},Il=function(x,q){var ae=Or(),ge=ji();q.push({resourcesOid:ae,objectOid:ge}),x.objectNumber=ge;var Fe=[];Fe.push({key:"Type",value:"/Pattern"}),Fe.push({key:"PatternType",value:"1"}),Fe.push({key:"PaintType",value:"1"}),Fe.push({key:"TilingType",value:"1"}),Fe.push({key:"BBox",value:"["+x.boundingBox.map(Ne).join(" ")+"]"}),Fe.push({key:"XStep",value:Ne(x.xStep)}),Fe.push({key:"YStep",value:Ne(x.yStep)}),Fe.push({key:"Resources",value:ae+" 0 R"}),x.matrix&&Fe.push({key:"Matrix",value:"["+x.matrix.toString()+"]"}),os({data:x.stream,additionalKeyValues:Fe,objectId:x.objectNumber}),le("endobj")},Rr=function(x){for(var q in x.objectNumber=ji(),le("<<"),x)switch(q){case"opacity":le("/ca "+st(x[q]));break;case"stroke-opacity":le("/CA "+st(x[q]))}le(">>"),le("endobj")},Sr=function(x){bo(x.resourcesOid,!0),le("<<"),le("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var x in le("/Font <<"),$i)$i.hasOwnProperty(x)&&(!1===H||!0===H&&Q.hasOwnProperty(x))&&le("/"+x+" "+$i[x].objectNumber+" 0 R");le(">>")}(),function(){if(Object.keys(Li).length>0){for(var x in le("/Shading <<"),Li)Li.hasOwnProperty(x)&&Li[x]instanceof Ot&&Li[x].objectNumber>=0&&le("/"+x+" "+Li[x].objectNumber+" 0 R");mi.publish("putShadingPatternDict"),le(">>")}}(),function(x){if(Object.keys(Li).length>0){for(var q in le("/Pattern <<"),Li)Li.hasOwnProperty(q)&&Li[q]instanceof N.TilingPattern&&Li[q].objectNumber>=0&&Li[q].objectNumber<x&&le("/"+q+" "+Li[q].objectNumber+" 0 R");mi.publish("putTilingPatternDict"),le(">>")}}(x.objectOid),function(){if(Object.keys(ar).length>0){var x;for(x in le("/ExtGState <<"),ar)ar.hasOwnProperty(x)&&ar[x].objectNumber>=0&&le("/"+x+" "+ar[x].objectNumber+" 0 R");mi.publish("putGStateDict"),le(">>")}}(),function(){for(var x in le("/XObject <<"),Nr)Nr.hasOwnProperty(x)&&Nr[x].objectNumber>=0&&le("/"+x+" "+Nr[x].objectNumber+" 0 R");mi.publish("putXobjectDict"),le(">>")}(),le(">>"),le("endobj")},d1=function(x){tr[x.fontName]=tr[x.fontName]||{},tr[x.fontName][x.fontStyle]=x.id},Gd=function(x,q,ae,ge,Fe){var ct={id:"F"+(Object.keys($i).length+1).toString(10),postScriptName:x,fontName:q,fontStyle:ae,encoding:ge,isStandardFont:Fe||!1,metadata:{}};return mi.publish("addFont",{font:ct,instance:this}),$i[ct.id]=ct,d1(ct),ct.id},ss=N.__private__.pdfEscape=N.pdfEscape=function(x,q){return function(x,q){var ae,ge,Fe,ct,Et,nn,Cn,qn,Vn;if(Fe=(q=q||{}).sourceEncoding||"Unicode",Et=q.outputEncoding,(q.autoencode||Et)&&$i[Jn].metadata&&$i[Jn].metadata[Fe]&&$i[Jn].metadata[Fe].encoding&&(ct=$i[Jn].metadata[Fe].encoding,!Et&&$i[Jn].encoding&&(Et=$i[Jn].encoding),!Et&&ct.codePages&&(Et=ct.codePages[0]),"string"==typeof Et&&(Et=ct[Et]),Et)){for(Cn=!1,nn=[],ae=0,ge=x.length;ae<ge;ae++)(qn=Et[x.charCodeAt(ae)])?nn.push(String.fromCharCode(qn)):nn.push(x[ae]),nn[ae].charCodeAt(0)>>8&&(Cn=!0);x=nn.join("")}for(ae=x.length;void 0===Cn&&0!==ae;)x.charCodeAt(ae-1)>>8&&(Cn=!0),ae--;if(!Cn)return x;for(nn=q.noBOM?[]:[254,255],ae=0,ge=x.length;ae<ge;ae++){if((Vn=(qn=x.charCodeAt(ae))>>8)>>8)throw new Error("Character at position "+ae+" of string '"+x+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");nn.push(Vn),nn.push(qn-(Vn<<8))}return String.fromCharCode.apply(void 0,nn)}(x,q).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},eh=N.__private__.beginPage=function(x){kt[++lr]=[],Bn[lr]={objId:0,contentsObjId:0,userUnit:Number(E),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(x[0]),topRightY:Number(x[1])}},h1(lr),ot(kt[se])},u1=function(x,q){var ae,ge,Fe;switch(p=q||p,"string"==typeof x&&(ae=L(x.toLowerCase()),Array.isArray(ae)&&(ge=ae[0],Fe=ae[1])),Array.isArray(x)&&(ge=x[0]*Kt,Fe=x[1]*Kt),isNaN(ge)&&(ge=I[0],Fe=I[1]),(ge>14400||Fe>14400)&&(bi.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),ge=Math.min(14400,ge),Fe=Math.min(14400,Fe)),I=[ge,Fe],p.substr(0,1)){case"l":Fe>ge&&(I=[Fe,ge]);break;case"p":ge>Fe&&(I=[Fe,ge])}eh(I),dc(Pl),le(So),0!==nh&&le(nh+" J"),0!==Kd&&le(Kd+" j"),mi.publish("addPage",{pageNumber:lr})},rf=function(x){x>0&&x<=lr&&(kt.splice(x,1),Bn.splice(x,1),lr--,se>lr&&(se=lr),this.setPage(se))},h1=function(x){x>0&&x<=lr&&(se=x)},ic=N.__private__.getNumberOfPages=N.getNumberOfPages=function(){return kt.length-1},m1=function(x,q,ae){var ge,Fe=void 0;return ae=ae||{},q=void 0!==q?q:$i[Jn].fontStyle,ge=(x=void 0!==x?x:$i[Jn].fontName).toLowerCase(),void 0!==tr[ge]&&void 0!==tr[ge][q]?Fe=tr[ge][q]:void 0!==tr[x]&&void 0!==tr[x][q]?Fe=tr[x][q]:!1===ae.disableWarning&&bi.warn("Unable to look up font label for font '"+x+"', '"+q+"'. Refer to getFontList() for available fonts."),Fe||ae.noFallback||null==(Fe=tr.times[q])&&(Fe=tr.times.normal),Fe},of=N.__private__.putInfo=function(){var x=ji(),q=function(ge){return ge};for(var ae in null!==j&&(q=jr.encryptor(x,0)),le("<<"),le("/Producer ("+ss(q("jsPDF "+xn.version))+")"),wn)wn.hasOwnProperty(ae)&&wn[ae]&&le("/"+ae.substr(0,1).toUpperCase()+ae.substr(1)+" ("+ss(q(wn[ae]))+")");le("/CreationDate ("+ss(q(Ye))+")"),le(">>"),le("endobj")},cr=N.__private__.putCatalog=function(x){var q=(x=x||{}).rootDictionaryObjId||xa;switch(ji(),le("<<"),le("/Type /Catalog"),le("/Pages "+q+" 0 R"),Yt||(Yt="fullwidth"),Yt){case"fullwidth":le("/OpenAction [3 0 R /FitH null]");break;case"fullheight":le("/OpenAction [3 0 R /FitV null]");break;case"fullpage":le("/OpenAction [3 0 R /Fit]");break;case"original":le("/OpenAction [3 0 R /XYZ null null 1]");break;default:var ae=""+Yt;"%"===ae.substr(ae.length-1)&&(Yt=parseInt(Yt)/100),"number"==typeof Yt&&le("/OpenAction [3 0 R /XYZ null null "+st(Yt)+"]")}switch(Zn||(Zn="continuous"),Zn){case"continuous":le("/PageLayout /OneColumn");break;case"single":le("/PageLayout /SinglePage");break;case"two":case"twoleft":le("/PageLayout /TwoColumnLeft");break;case"tworight":le("/PageLayout /TwoColumnRight")}An&&le("/PageMode /"+An),mi.publish("putCatalog"),le(">>"),le("endobj")},Jd=N.__private__.putTrailer=function(){le("trailer"),le("<<"),le("/Size "+(Ee+1)),le("/Root "+Ee+" 0 R"),le("/Info "+(Ee-1)+" 0 R"),null!==j&&le("/Encrypt "+jr.oid+" 0 R"),le("/ID [ <"+tt+"> <"+tt+"> ]"),le(">>")},rc=N.__private__.putHeader=function(){le("%PDF-"+G),le("%\xba\xdf\xac\xe0")},f1=N.__private__.putXRef=function(){var x="0000000000";le("xref"),le("0 "+(Ee+1)),le("0000000000 65535 f ");for(var q=1;q<=Ee;q++)le("function"==typeof $e[q]?(x+$e[q]()).slice(-10)+" 00000 n ":void 0!==$e[q]?(x+$e[q]).slice(-10)+" 00000 n ":"0000000000 00000 n ")},Br=N.__private__.buildDocument=function(){Ee=0,et=0,Ke=[],$e=[],Rt=[],xa=Or(),is=Or(),ot(Ke),mi.publish("buildDocument"),rc(),wl(),function(){mi.publish("putAdditionalObjects");for(var x=0;x<Rt.length;x++){var q=Rt[x];bo(q.objId,!0),le(q.content),le("endobj")}mi.publish("postPutAdditionalObjects")}(),function(){var x=[];(function(){for(var x in $i)$i.hasOwnProperty(x)&&(!1===H||!0===H&&Q.hasOwnProperty(x))&&zc($i[x])})(),function(){var x;for(x in ar)ar.hasOwnProperty(x)&&Rr(ar[x])}(),function(){for(var x in Nr)Nr.hasOwnProperty(x)&&Bs(Nr[x])}(),function(x){var q;for(q in Li)Li.hasOwnProperty(q)&&(Li[q]instanceof Ot?Ku(Li[q]):Li[q]instanceof Kl&&Il(Li[q],x))}(x),mi.publish("putResources"),x.forEach(Sr),Sr({resourcesOid:is,objectOid:Number.MAX_SAFE_INTEGER}),mi.publish("postPutResources")}(),null!==j&&(jr.oid=ji(),le("<<"),le("/Filter /Standard"),le("/V "+jr.v),le("/R "+jr.r),le("/U <"+jr.toHexString(jr.U)+">"),le("/O <"+jr.toHexString(jr.O)+">"),le("/P "+jr.P),le(">>"),le("endobj")),of(),cr();var x=et;return f1(),Jd(),le("startxref"),le(""+x),le("%%EOF"),ot(kt[se]),Ke.join("\n")},js=N.__private__.getBlob=function(x){return new Blob([pn(x)],{type:"application/pdf"})},oc=N.output=N.__private__.output=((x=function(x,q){switch("string"==typeof(q=q||{})?q={filename:q}:q.filename=q.filename||"generated.pdf",x){case void 0:return Br();case"save":N.save(q.filename);break;case"arraybuffer":return pn(Br());case"blob":return js(Br());case"bloburi":case"bloburl":if(void 0!==bn.URL&&"function"==typeof bn.URL.createObjectURL)return bn.URL&&bn.URL.createObjectURL(js(Br()))||void 0;bi.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var ae="",ge=Br();try{ae=Ql(ge)}catch{ae=Ql(unescape(encodeURIComponent(ge)))}return"data:application/pdf;filename="+q.filename+";base64,"+ae;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(bn)){var Fe="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ct=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';q.pdfObjectUrl&&(Fe=q.pdfObjectUrl,ct="");var Et='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+Fe+'"'+ct+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(q)+");<\/script></body></html>",nn=bn.open();return null!==nn&&nn.document.write(Et),nn}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(bn)){var Cn='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(q.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+q.filename+'" width="500px" height="400px" /></body></html>',qn=bn.open();if(null!==qn){qn.document.write(Cn);var Vn=this;qn.document.documentElement.querySelector("#pdfViewer").onload=function(){qn.document.title=q.filename,qn.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Vn.output("bloburl"))}}return qn}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(bn))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var ni='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",q)+'"></iframe></body></html>',nr=bn.open();if(null!==nr&&(nr.document.write(ni),nr.document.title=q.filename),nr||typeof safari>"u")return nr;break;case"datauri":case"dataurl":return bn.document.location.href=this.output("datauristring",q);default:return null}}).foo=function(){try{return x.apply(this,arguments)}catch(ge){var q=ge.stack||"";~q.indexOf(" at ")&&(q=q.split(" at ")[1]);var ae="Error in function "+q.split("\n")[0].split("<")[0]+": "+ge.message;if(!bn.console)throw new Error(ae);bn.console.error(ae,ge),bn.alert&&alert(ae)}},x.foo.bar=x,x.foo),sc=function(x){return!0===Array.isArray(nc)&&nc.indexOf(x)>-1};switch(y){case"pt":Kt=1;break;case"mm":Kt=72/25.4;break;case"cm":Kt=72/2.54;break;case"in":Kt=72;break;case"px":Kt=1==sc("px_scaling")?.75:96/72;break;case"pc":case"em":Kt=12;break;case"ex":Kt=6;break;default:if("number"!=typeof y)throw new Error("Invalid unit: "+y);Kt=y}var jr=null;$t(),ze();var g1=N.__private__.getPageInfo=N.getPageInfo=function(x){if(isNaN(x)||x%1!=0)throw new Error("Invalid argument passed to
3jsPDF.getPageInfo");return{objId:Bn[x].objId,pageNumber:x,pageContext:Bn[x]}},jn=N.__private__.getPageInfoByObjId=function(x){if(isNaN(x)||x%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var q in Bn)if(Bn[q].objId===x)break;return g1(q)},sf=N.__private__.getCurrentPageInfo=N.getCurrentPageInfo=function(){return{objId:Bn[se].objId,pageNumber:se,pageContext:Bn[se]}};N.addPage=function(){return u1.apply(this,arguments),this},N.setPage=function(){return h1.apply(this,arguments),ot.call(this,kt[se]),this},N.insertPage=function(x){return this.addPage(),this.movePage(se,x),this},N.movePage=function(x,q){var ae,ge;if(x>q){ae=kt[x],ge=Bn[x];for(var Fe=x;Fe>q;Fe--)kt[Fe]=kt[Fe-1],Bn[Fe]=Bn[Fe-1];kt[q]=ae,Bn[q]=ge,this.setPage(q)}else if(x<q){ae=kt[x],ge=Bn[x];for(var ct=x;ct<q;ct++)kt[ct]=kt[ct+1],Bn[ct]=Bn[ct+1];kt[q]=ae,Bn[q]=ge,this.setPage(q)}return this},N.deletePage=function(){return rf.apply(this,arguments),this},N.__private__.text=N.text=function(x,q,ae,ge,Fe){var ct,Et,nn,Cn,qn,Vn,ni,nr,dr,Tr=(ge=ge||{}).scope||this;if("number"==typeof x&&"number"==typeof q&&("string"==typeof ae||Array.isArray(ae))){var ki=ae;ae=q,q=x,x=ki}if(arguments[3]instanceof kn?(pe("The transform parameter of text() with a Matrix value"),dr=Fe):(nn=arguments[4],Cn=arguments[5],"object"===Gn(ni=arguments[3])&&null!==ni||("string"==typeof nn&&(Cn=nn,nn=null),"string"==typeof ni&&(Cn=ni,ni=null),"number"==typeof ni&&(nn=ni,ni=null),ge={flags:ni,angle:nn,align:Cn})),isNaN(q)||isNaN(ae)||null==x)throw new Error("Invalid arguments passed to jsPDF.text");if(0===x.length)return Tr;var oa,eo="",ls="number"==typeof ge.lineHeightFactor?ge.lineHeightFactor:el,sa=Tr.internal.scaleFactor;function Qc(Vi){return Vi=Vi.split("\t").join(Array(ge.TabLen||9).join(" ")),ss(Vi,ni)}function tu(Vi){for(var Gi,Er=Vi.concat(),Hr=[],La=Er.length;La--;)"string"==typeof(Gi=Er.shift())?Hr.push(Gi):Array.isArray(Vi)&&(1===Gi.length||void 0===Gi[1]&&void 0===Gi[2])?Hr.push(Gi[0]):Hr.push([Gi[0],Gi[1],Gi[2]]);return Hr}function nu(Vi,Gi){var Er;if("string"==typeof Vi)Er=Gi(Vi)[0];else if(Array.isArray(Vi)){for(var Hr,La,aa=Vi.concat(),Cc=[],au=aa.length;au--;)"string"==typeof(Hr=aa.shift())?Cc.push(Gi(Hr)[0]):Array.isArray(Hr)&&"string"==typeof Hr[0]&&(La=Gi(Hr[0],Hr[1],Hr[2]),Cc.push([La[0],La[1],La[2]]));Er=Cc}return Er}var Yc=!1,Kc=!0;if("string"==typeof x)Yc=!0;else if(Array.isArray(x)){var iu=x.concat();Et=[];for(var Xc,Si=iu.length;Si--;)("string"!=typeof(Xc=iu.shift())||Array.isArray(Xc)&&"string"!=typeof Xc[0])&&(Kc=!1);Yc=Kc}if(!1===Yc)throw new Error('Type of text must be string or Array. "'+x+'" is not recognized.');"string"==typeof x&&(x=x.match(/[\r?\n]/)?x.split(/\r\n|\r|\n/g):[x]);var Fl=jt/Tr.internal.scaleFactor,mc=Fl*(ls-1);switch(ge.baseline){case"bottom":ae-=mc;break;case"top":ae+=Fl-mc;break;case"hanging":ae+=Fl-2*mc;break;case"middle":ae+=Fl/2-mc}if((Vn=ge.maxWidth||0)>0&&("string"==typeof x?x=Tr.splitTextToSize(x,Vn):"[object Array]"===Object.prototype.toString.call(x)&&(x=x.reduce(function(Vi,Gi){return Vi.concat(Tr.splitTextToSize(Gi,Vn))},[]))),mi.publish("preProcessText",ct={text:x,x:q,y:ae,options:ge,mutex:{pdfEscape:ss,activeFontKey:Jn,fonts:$i,activeFontSize:jt}}),x=ct.text,nn=(ge=ct.options).angle,dr instanceof kn||!nn||"number"!=typeof nn)nn&&nn instanceof kn&&(dr=nn);else{nn*=Math.PI/180,0===ge.rotationDirection&&(nn=-nn),be===re.ADVANCED&&(nn=-nn);var Al=Math.cos(nn),Vr=Math.sin(nn);dr=new kn(Al,Vr,-Vr,Al,0,0)}be!==re.ADVANCED||dr||(dr=ea),void 0!==(qn=ge.charSpace||hc)&&(eo+=Ne(te(qn))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(nr=ge.horizontalScale)&&(eo+=Ne(100*nr)+" Tz\n");var to=-1,ah=void 0!==ge.renderingMode?ge.renderingMode:ge.stroke,ed=Tr.internal.getCurrentPageInfo().pageContext;switch(ah){case 0:case!1:case"fill":to=0;break;case 1:case!0:case"stroke":to=1;break;case 2:case"fillThenStroke":to=2;break;case 3:case"invisible":to=3;break;case 4:case"fillAndAddForClipping":to=4;break;case 5:case"strokeAndAddPathForClipping":to=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":to=6;break;
3case 7:case"addToPathForClipping":to=7}-1!==to?eo+=to+" Tr\n":-1!==(void 0!==ed.usedRenderingMode?ed.usedRenderingMode:-1)&&(eo+="0 Tr\n"),-1!==to&&(ed.usedRenderingMode=to),Cn=ge.align||"left";var cs,td=jt*ls,ru=Tr.internal.pageSize.getWidth(),ch=$i[Jn];qn=ge.charSpace||hc,Vn=ge.maxWidth||0,ni=Object.assign({autoencode:!0,noBOM:!0},ge.flags);var nl=[],fc=function(Vi){return Tr.getStringUnitWidth(Vi,{font:ch,charSpace:qn,fontSize:jt,doKerning:!1})*jt/sa};if("[object Array]"===Object.prototype.toString.call(x)){var zo;Et=tu(x),"left"!==Cn&&(cs=Et.map(fc));var fo,Ea=0;if("right"===Cn){q-=cs[0],x=[],Si=Et.length;for(var il=0;il<Si;il++)0===il?(fo=as(q),zo=Ta(ae)):(fo=te(Ea-cs[il]),zo=-td),x.push([Et[il],fo,zo]),Ea=cs[il]}else if("center"===Cn){q-=cs[0]/2,x=[],Si=Et.length;for(var ds=0;ds<Si;ds++)0===ds?(fo=as(q),zo=Ta(ae)):(fo=te((Ea-cs[ds])/2),zo=-td),x.push([Et[ds],fo,zo]),Ea=cs[ds]}else if("left"===Cn){x=[],Si=Et.length;for(var nd=0;nd<Si;nd++)x.push(Et[nd])}else if("justify"===Cn&&"Identity-H"===ch.encoding){x=[],Si=Et.length,Vn=0!==Vn?Vn:ru;for(var rl=0,ur=0;ur<Si;ur++)if(zo=0===ur?Ta(ae):-td,fo=0===ur?as(q):rl,ur<Si-1){var pc=te((Vn-cs[ur])/(Et[ur].split(" ").length-1)),wo=Et[ur].split(" ");x.push([wo[0]+" ",fo,zo]),rl=0;for(var po=1;po<wo.length;po++){var Nl=(fc(wo[po-1]+" "+wo[po])-fc(wo[po]))*sa+pc;x.push(po==wo.length-1?[wo[po],Nl,0]:[wo[po]+" ",Nl,0]),rl-=Nl}}else x.push([Et[ur],fo,zo]);x.push(["",rl,0])}else{if("justify"!==Cn)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(x=[],Si=Et.length,Vn=0!==Vn?Vn:ru,ur=0;ur<Si;ur++)zo=0===ur?Ta(ae):-td,fo=0===ur?as(q):0,nl.push(ur<Si-1?Ne(te((Vn-cs[ur])/(Et[ur].split(" ").length-1))):0),x.push([Et[ur],fo,zo])}}!0===("boolean"==typeof ge.R2L?ge.R2L:gn)&&(x=nu(x,function(Vi,Gi,Er){return[Vi.split("").reverse().join(""),Gi,Er]})),mi.publish("postProcessText",ct={text:x,x:q,y:ae,options:ge,mutex:{pdfEscape:ss,activeFontKey:Jn,fonts:$i,activeFontSize:jt}}),x=ct.text,oa=ct.mutex.isHex||!1;var su=$i[Jn].encoding;"WinAnsiEncoding"!==su&&"StandardEncoding"!==su||(x=nu(x,function(Vi,Gi,Er){return[Qc(Vi),Gi,Er]})),Et=tu(x),x=[];for(var ol,gc,Ol,_c=Array.isArray(Et[0])?1:0,Rl="",rd=function(Vi,Gi,Er){var Hr="";return Er instanceof kn?(Er="number"==typeof ge.angle?Rs(Er,new kn(1,0,0,1,Vi,Gi)):Rs(new kn(1,0,0,1,Vi,Gi),Er),be===re.ADVANCED&&(Er=Rs(new kn(1,0,0,-1,0,0),Er)),Hr=Er.join(" ")+" Tm\n"):Hr=Ne(Vi)+" "+Ne(Gi)+" Td\n",Hr},qo=0;qo<Et.length;qo++){switch(Rl="",_c){case 1:Ol=(oa?"<":"(")+Et[qo][0]+(oa?">":")"),ol=parseFloat(Et[qo][1]),gc=parseFloat(Et[qo][2]);break;case 0:Ol=(oa?"<":"(")+Et[qo]+(oa?">":")"),ol=as(q),gc=Ta(ae)}void 0!==nl&&void 0!==nl[qo]&&(Rl=nl[qo]+" Tw\n"),0===qo?x.push(Rl+rd(ol,gc,dr)+Ol):0===_c?x.push(Rl+Ol):1===_c&&x.push(Rl+rd(ol,gc,dr)+Ol)}x=x.join(0===_c?" Tj\nT* ":" Tj\n"),x+=" Tj\n";var us="BT\n/";return us+=Jn+" "+jt+" Tf\n",us+=Ne(jt*ls)+" TL\n",us+=uc+"\n",us+=eo,us+=x,le(us+="ET"),Q[Jn]=!0,Tr};var Ao=N.__private__.clip=N.clip=function(x){return le("evenodd"===x?"W*":"W"),this};N.clipEvenOdd=function(){return Ao("evenodd")},N.__private__.discardPath=N.discardPath=function(){return le("n"),this};var Vs=N.__private__.isValidStyle=function(x){var q=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(x)&&(q=!0),q};N.__private__.setDefaultPathOperation=N.setDefaultPathOperation=function(x){return Vs(x)&&(O=x),this};var Xa=N.__private__.getStyle=N.getStyle=function(x){var q=O;switch(x){case"D":case"S":q="S";break;case"F":q="f";break;case"FD":case"DF":q="B";break;case"f":case"f*":case"B":case"B*":q=x}return q},v1=N.close=function(){return le("h"),this};N.stroke=function(){return le("S"),this},N.fill=function(x){return ac("f",x),this},N.fillEvenOdd=function(x){return ac("f*",x),this},N.fillStroke=function(x){return ac("B",x),this},N.fillStrokeEvenOdd=function(x){return ac("B*",x),this};var ac=function(x,q){"object"===Gn(q)?C1(q,x):le(x)},Zd=function(x){null===x||be===re.ADVANCED&&void 0===x||(x=Xa(x),le(x))};function _1(x,q,ae,ge,Fe){var ct=new Kl(q||this.boundingBox,ae||this.xStep,ge||this.yStep,this.gState,Fe||this.matrix
vendor: 4,522 bytes, line 3
3);ct.stream=this.stream;var Et=x+"$$"+this.cloneIndex+++"$$";return Ho(Et,ct),ct}var C1=function(x,q){var ae=Qa[x.key],ge=Li[ae];if(ge instanceof Ot)le("q"),le(y1(q)),ge.gState&&N.setGState(ge.gState),le(x.matrix.toString()+" cm"),le("/"+ae+" sh"),le("Q");else if(ge instanceof Kl){var Fe=new kn(1,0,0,-1,0,Ml());x.matrix&&(Fe=Fe.multiply(x.matrix||ea),ae=_1.call(ge,x.key,x.boundingBox,x.xStep,x.yStep,Fe).id),le("q"),le("/Pattern cs"),le("/"+ae+" scn"),ge.gState&&N.setGState(ge.gState),le(q),le("Q")}},y1=function(x){switch(x){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Qd=N.moveTo=function(x,q){return le(Ne(te(x))+" "+Ne(me(q))+" m"),this},lc=N.lineTo=function(x,q){return le(Ne(te(x))+" "+Ne(me(q))+" l"),this},Pa=N.curveTo=function(x,q,ae,ge,Fe,ct){return le([Ne(te(x)),Ne(me(q)),Ne(te(ae)),Ne(me(ge)),Ne(te(Fe)),Ne(me(ct)),"c"].join(" ")),this};N.__private__.line=N.line=function(x,q,ae,ge,Fe){if(isNaN(x)||isNaN(q)||isNaN(ae)||isNaN(ge)||!Vs(Fe))throw new Error("Invalid arguments passed to jsPDF.line");return be===re.COMPAT?this.lines([[ae-x,ge-q]],x,q,[1,1],Fe||"S"):this.lines([[ae-x,ge-q]],x,q,[1,1]).stroke()},N.__private__.lines=N.lines=function(x,q,ae,ge,Fe,ct){var Et,nn,Cn,qn,Vn,ki,eo,oa;if("number"==typeof x&&(oa=ae,ae=q,q=x,x=oa),ge=ge||[1,1],ct=ct||!1,isNaN(q)||isNaN(ae)||!Array.isArray(x)||!Array.isArray(ge)||!Vs(Fe)||"boolean"!=typeof ct)throw new Error("Invalid arguments passed to jsPDF.lines");for(Qd(q,ae),Et=ge[0],nn=ge[1],qn=x.length,ki=q,eo=ae,Cn=0;Cn<qn;Cn++)2===(Vn=x[Cn]).length?lc(ki=Vn[0]*Et+ki,eo=Vn[1]*nn+eo):Pa(Vn[0]*Et+ki,Vn[1]*nn+eo,Vn[2]*Et+ki,Vn[3]*nn+eo,ki=Vn[4]*Et+ki,eo=Vn[5]*nn+eo);return ct&&v1(),Zd(Fe),this},N.path=function(x){for(var q=0;q<x.length;q++){var ae=x[q],ge=ae.c;switch(ae.op){case"m":Qd(ge[0],ge[1]);break;case"l":lc(ge[0],ge[1]);break;case"c":Pa.apply(this,ge);break;case"h":v1()}}return this},N.__private__.rect=N.rect=function(x,q,ae,ge,Fe){if(isNaN(x)||isNaN(q)||isNaN(ae)||isNaN(ge)||!Vs(Fe))throw new Error("Invalid arguments passed to jsPDF.rect");return be===re.COMPAT&&(ge=-ge),le([Ne(te(x)),Ne(me(q)),Ne(te(ae)),Ne(te(ge)),"re"].join(" ")),Zd(Fe),this},N.__private__.triangle=N.triangle=function(x,q,ae,ge,Fe,ct,Et){if(isNaN(x)||isNaN(q)||isNaN(ae)||isNaN(ge)||isNaN(Fe)||isNaN(ct)||!Vs(Et))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[ae-x,ge-q],[Fe-ae,ct-ge],[x-Fe,q-ct]],x,q,[1,1],Et,!0),this},N.__private__.roundedRect=N.roundedRect=function(x,q,ae,ge,Fe,ct,Et){if(isNaN(x)||isNaN(q)||isNaN(ae)||isNaN(ge)||isNaN(Fe)||isNaN(ct)||!Vs(Et))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var nn=4/3*(Math.SQRT2-1);return Fe=Math.min(Fe,.5*ae),ct=Math.min(ct,.5*ge),this.lines([[ae-2*Fe,0],[Fe*nn,0,Fe,ct-ct*nn,Fe,ct],[0,ge-2*ct],[0,ct*nn,-Fe*nn,ct,-Fe,ct],[2*Fe-ae,0],[-Fe*nn,0,-Fe,-ct*nn,-Fe,-ct],[0,2*ct-ge],[0,-ct*nn,Fe*nn,-ct,Fe,-ct]],x+Fe,q,[1,1],Et,!0),this},N.__private__.ellipse=N.ellipse=function(x,q,ae,ge,Fe){if(isNaN(x)||isNaN(q)||isNaN(ae)||isNaN(ge)||!Vs(Fe))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ct=4/3*(Math.SQRT2-1)*ae,Et=4/3*(Math.SQRT2-1)*ge;return Qd(x+ae,q),Pa(x+ae,q-Et,x+ct,q-ge,x,q-ge),Pa(x-ct,q-ge,x-ae,q-Et,x-ae,q),Pa(x-ae,q+Et,x-ct,q+ge,x,q+ge),Pa(x+ct,q+ge,x+ae,q+Et,x+ae,q),Zd(Fe),this},N.__private__.circle=N.circle=function(x,q,ae,ge){if(isNaN(x)||isNaN(q)||isNaN(ae)||!Vs(ge))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(x,q,ae,ae,ge)},N.setFont=function(x,q,ae){return ae&&(q=wt(q,ae)),Jn=m1(x,q,{disableWarning:!1}),this};var Wc=N.__private__.getFont=N.getFont=function(){return $i[m1.apply(N,arguments)]};N.__private__.getFontList=N.getFontList=function(){var x,q,ae={};for(x in tr)if(tr.hasOwnProperty(x))for(q in ae[x]=[],tr[x])tr[x].hasOwnProperty(q)&&ae[x].push(q);return ae},N.addFont=function(x,q,ae,ge,Fe){var ct=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==ct.indexOf(arguments[3])?Fe=arguments[3]:arguments[3]&&-1==ct.indexOf(arguments[3])&&(ae=wt(ae,ge)),Gd.call(this,x,q,ae,Fe=Fe||"Identity-H")};var el,Pl=g.lineWidth||.200025,cc=N.__private__.getLineWidth=N.getLineWidth=function(){return Pl},dc=N.__private__.setLineWidth=N.setLineWidth=function(x){return Pl=x,le(Ne(te(x))+" w"),this};N.__private__.setLineDash=xn.API.setLineDash=xn.API.setLineDashPattern=function(x,q){if(x=x||[],q=q||0,isNaN(q)||!Array.isArray(x))throw new Error("Invalid arguments passed to
3jsPDF.setLineDash");return x=x.map(function(ae){return Ne(te(ae))}).join(" "),q=Ne(te(q)),le("["+x+"] "+q+" d"),this};var th=N.__private__.getLineHeight=N.getLineHeight=function(){return jt*el};N.__private__.getLineHeight=N.getLineHeight=function(){return jt*el};var Yd=N.__private__.setLineHeightFactor=N.setLineHeightFactor=function(x){return"number"==typeof(x=x||1.15)&&(el=x),this},Tl=N.__private__.getLineHeightFactor=N.getLineHeightFactor=function(){return el};Yd(g.lineHeight);var as=N.__private__.getHorizontalCoordinate=function(x){return te(x)},Ta=N.__private__.getVerticalCoordinate=function(x){return be===re.ADVANCED?x:Bn[se].mediaBox.topRightY-Bn[se].mediaBox.bottomLeftY-te(x)},b1=N.__private__.getHorizontalCoordinateString=N.getHorizontalCoordinateString=function(x){return Ne(as(x))},El=N.__private__.getVerticalCoordinateString=N.getVerticalCoordinateString=function(x){return Ne(Ta(x))},So=g.strokeColor||"0 G";N.__private__.getStrokeColor=N.getDrawColor=function(){return rs(So)},N.__private__.setStrokeColor=N.setDrawColor=function(x,q,ae,ge){return So=ta({ch1:x,ch2:q,ch3:ae,ch4:ge,pdfColorType:"draw",precision:2}),le(So),this};var tl=g.fillColor||"0 g";N.__private__.getFillColor=N.getFillColor=function(){return rs(tl)},N.__private__.setFillColor=N.setFillColor=function(x,q,ae,ge){return tl=ta({ch1:x,ch2:q,ch3:ae,ch4:ge,pdfColorType:"fill",precision:2}),le(tl),this};var uc=g.textColor||"0 g",af=N.__private__.getTextColor=N.getTextColor=function(){return rs(uc)};N.__private__.setTextColor=N.setTextColor=function(x,q,ae,ge){return uc=ta({ch1:x,ch2:q,ch3:ae,ch4:ge,pdfColorType:"text",precision:3}),this};var hc=g.charSpace,S1=N.__private__.getCharSpace=N.getCharSpace=function(){return parseFloat(hc||0)};N.__private__.setCharSpace=N.setCharSpace=function(x){if(isNaN(x))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return hc=x,this};var nh=0;N.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},N.__private__.setLineCap=N.setLineCap=function(x){var q=N.CapJoinStyles[x];if(void 0===q)throw new Error("Line cap style of '"+x+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return nh=q,le(q+" J"),this};var Kd=0;N.__private__.setLineJoin=N.setLineJoin=function(x){var q=N.CapJoinStyles[x];if(void 0===q)throw new Error("Line join style of '"+x+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Kd=q,le(q+" j"),this},N.__private__.setLineMiterLimit=N.__private__.setMiterLimit=N.setLineMiterLimit=N.setMiterLimit=function(x){if(x=x||0,isNaN(x))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return le(Ne(te(x))+" M"),this},N.GState=Wa,N.setGState=function(x){(x="string"==typeof x?ar[Ns[x]]:ih(null,x)).equals(ts)||(le("/"+x.id+" gs"),ts=x)};var ih=function(x,q){if(!x||!Ns[x]){var ae=!1;for(var ge in ar)if(ar.hasOwnProperty(ge)&&ar[ge].equals(q)){ae=!0;break}if(ae)q=ar[ge];else{var Fe="GS"+(Object.keys(ar).length+1).toString(10);ar[Fe]=q,q.id=Fe}return x&&(Ns[x]=q.id),mi.publish("addGState",q),q}};N.addGState=function(x,q){return ih(x,q),this},N.saveGraphicsState=function(){return le("q"),Za.push({key:Jn,size:jt,color:uc}),this},N.restoreGraphicsState=function(){le("Q");var x=Za.pop();return Jn=x.key,jt=x.size,uc=x.color,ts=null,this},N.setCurrentTransformationMatrix=function(x){return le(x.toString()+" cm"),this},N.comment=function(x){return le("#"+x),this};var Jc=function(x,q){var ae=x||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return ae},set:function(ct){isNaN(ct)||(ae=parseFloat(ct))}});var ge=q||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return ge},set:function(ct){isNaN(ct)||(ge=parseFloat(ct))}});var Fe="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Fe},set:function(ct){Fe=ct.toString()}}),this},Ll=function(x,q,ae,ge){Jc.call(this,x,q),this.type="rect";var Fe=ae||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Fe},set:function(Et){isNaN(Et)||(Fe=parseFloat(Et))}});var ct=ge||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return ct},set:function(Et){isNaN(Et)||(ct=parseFloat(Et))}}),this},Zc=function(){this.page=lr,this.currentPage=se,this.pages=kt.slice(0),this.pagesContext=Bn.slice(0),this.x=Fo,this.y=di,this.matrix=Ia,this.width=kl(se),this.height=Ml(se),this.outputDestination=Ht,this.id="",this.objectNumber=-1};Zc.prototype.restore=function(){lr=this.page,Bn=this.pagesContext,kt=this.pages,Fo=this.x,di=this.y,Ia=this.matrix,sh(se=this.currentPage,this.width),eu(se,this.height),Ht=this.outputDestination};var rh=function(x,q,ae,ge,Fe){ns.push(new Zc),lr=se=0,kt=[],Fo=x,di=q,Ia=Fe,eh([ae,ge])};for(var Xd in N.beginFormObject=function(x,q,ae,ge,Fe){return rh(x,q,ae,ge,Fe),this}
vendor: 4,528 bytes, line 3
3,N.endFormObject=function(x){return function(x){if(Os[x])ns.pop().restore();else{var q=new Zc,ae="Xo"+(Object.keys(Nr).length+1).toString(10);q.id=ae,Os[x]=ae,Nr[ae]=q,mi.publish("addFormObject",q),ns.pop().restore()}}(x),this},N.doFormObject=function(x,q){var ae=Nr[Os[x]];return le("q"),le(q.toString()+" cm"),le("/"+ae.id+" Do"),le("Q"),this},N.getFormObject=function(x){var q=Nr[Os[x]];return{x:q.x,y:q.y,width:q.width,height:q.height,matrix:q.matrix}},N.save=function(x,q){return x=x||"generated.pdf",(q=q||{}).returnPromise=q.returnPromise||!1,!1===q.returnPromise?(Ts(js(Br()),x),"function"==typeof Ts.unload&&bn.setTimeout&&setTimeout(Ts.unload,911),this):new Promise(function(ae,ge){try{var Fe=Ts(js(Br()),x);"function"==typeof Ts.unload&&bn.setTimeout&&setTimeout(Ts.unload,911),ae(Fe)}catch(ct){ge(ct.message)}})},xn.API)xn.API.hasOwnProperty(Xd)&&("events"===Xd&&xn.API.events.length?function(x,q){var ge,Fe;for(Fe=q.length-1;-1!==Fe;Fe--)x.subscribe.apply(x,[q[Fe][0]].concat("function"==typeof(ge=q[Fe][1])?[ge]:ge))}(mi,xn.API.events):N[Xd]=xn.API[Xd]);var kl=N.getPageWidth=function(x){return(Bn[x=x||se].mediaBox.topRightX-Bn[x].mediaBox.bottomLeftX)/Kt},sh=N.setPageWidth=function(x,q){Bn[x].mediaBox.topRightX=q*Kt+Bn[x].mediaBox.bottomLeftX},Ml=N.getPageHeight=function(x){return(Bn[x=x||se].mediaBox.topRightY-Bn[x].mediaBox.bottomLeftY)/Kt},eu=N.setPageHeight=function(x,q){Bn[x].mediaBox.topRightY=q*Kt+Bn[x].mediaBox.bottomLeftY};return N.internal={pdfEscape:ss,getStyle:Xa,getFont:Wc,getFontSize:Ut,getCharSpace:S1,getTextColor:af,getLineHeight:th,getLineHeightFactor:Tl,getLineWidth:cc,write:we,getHorizontalCoordinate:as,getVerticalCoordinate:Ta,getCoordinateString:b1,getVerticalCoordinateString:El,collections:{},newObject:ji,newAdditionalObject:Sl,newObjectDeferred:Or,newObjectDeferredBegin:bo,getFilters:na,putStream:os,events:mi,scaleFactor:Kt,pageSize:{getWidth:function(){return kl(se)},setWidth:function(x){sh(se,x)},getHeight:function(){return Ml(se)},setHeight:function(x){eu(se,x)}},encryptionOptions:j,encryption:jr,getEncryptor:function(x){return null!==j?jr.encryptor(x,0):function(q){return q}},output:oc,getNumberOfPages:ic,pages:kt,out:le,f2:st,f3:ee,getPageInfo:g1,getPageInfoByObjId:jn,getCurrentPageInfo:sf,getPDFVersion:K,Point:Jc,Rectangle:Ll,Matrix:kn,hasHotfix:sc},Object.defineProperty(N.internal.pageSize,"width",{get:function(){return kl(se)},set:function(x){sh(se,x)},enumerable:!0,configurable:!0}),Object.defineProperty(N.internal.pageSize,"height",{get:function(){return Ml(se)},set:function(x){eu(se,x)},enumerable:!0,configurable:!0}),function(x){for(var q=0,ae=Pe.length;q<ae;q++){var ge=Gd.call(this,x[q][0],x[q][1],x[q][2],Pe[q][3],!0);!1===H&&(Q[ge]=!0);var Fe=x[q][0].split("-");d1({id:ge,fontName:Fe[0],fontStyle:Fe[1]||""})}mi.publish("addFonts",{fonts:$i,dictionary:tr})}.call(N,Pe),Jn="F1",u1(I,p),mi.publish("initialized"),N}Cl.prototype.lsbFirstWord=function(g){return String.fromCharCode(g>>0&255,g>>8&255,g>>16&255,g>>24&255)},Cl.prototype.toHexString=function(g){return g.split("").map(function(m){return("0"+(255&m.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Cl.prototype.hexToBytes=function(g){for(var m=[],p=0;p<g.length;p+=2)m.push(String.fromCharCode(parseInt(g.substr(p,2),16)));return m.join("")},Cl.prototype.processOwnerPassword=function(g,m){return Ac(Es(m).substr(0,5),g)},Cl.prototype.encryptor=function(g,m){var p=Es(this.encryptionKey+String.fromCharCode(255&g,g>>8&255,g>>16&255,255&m,m>>8&255)).substr(0,10);return function(y){return Ac(p,y)}},Wa.prototype.equals=function(g){var m,p="id,objectNumber,equals";if(!g||Gn(g)!==Gn(this))return!1;var y=0;for(m in this)if(!(p.indexOf(m)>=0)){if(this.hasOwnProperty(m)&&!g.hasOwnProperty(m)||this[m]!==g[m])return!1;y++}for(m in g)g.hasOwnProperty(m)&&p.indexOf(m)<0&&y--;return 0===y},xn.API={events:[]},xn.version="2.5.2";var vr=xn.API,uo=1,Xl=function(g){return g.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ec=function(g){return g.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Ft=function(g){return g.toFixed(2)},_r=function(g){return g.toFixed(5)};vr.__acroform__={};var zn=function(g,m){g.prototype=Object.create(m.prototype),g.prototype.constructor=g},ho=function(g){return g*uo},sr=function(g){var m=new Ju,p=ln.internal.getHeight(g)||0,y=ln.internal.getWidth(g)||0;return m.BBox=[0,0,Number(Ft(y)),Number(Ft(p))],m},Bd=vr.__acroform__.setBit=function(g,m){if(g=g||0,m=m||0,isNaN(g)||isNaN(m))throw new Error("Invalid arguments passed to
3jsPDF.API.__acroform__.setBit");return g|1<<m},Ko=vr.__acroform__.clearBit=function(g,m){if(g=g||0,m=m||0,isNaN(g)||isNaN(m))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return g&~(1<<m)},Um=vr.__acroform__.getBit=function(g,m){if(isNaN(g)||isNaN(m))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return g&1<<m?1:0},Cr=vr.__acroform__.getBitForPdf=function(g,m){if(isNaN(g)||isNaN(m))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Um(g,m-1)},Xi=vr.__acroform__.setBitForPdf=function(g,m){if(isNaN(g)||isNaN(m))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Bd(g,m-1)},Ei=vr.__acroform__.clearBitForPdf=function(g,m){if(isNaN(g)||isNaN(m))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Ko(g,m-1)},an=vr.__acroform__.calculateCoordinates=function(g,m){var p=m.internal.getHorizontalCoordinate,y=m.internal.getVerticalCoordinate,I=g[0],b=g[1],D=g[2],E=g[3],k={};return k.lowerLeft_X=p(I)||0,k.lowerLeft_Y=y(b+E)||0,k.upperRight_X=p(I+D)||0,k.upperRight_Y=y(b)||0,[Number(Ft(k.lowerLeft_X)),Number(Ft(k.lowerLeft_Y)),Number(Ft(k.upperRight_X)),Number(Ft(k.upperRight_Y))]},Wn=function(g){if(g.appearanceStreamContent)return g.appearanceStreamContent;if(g.V||g.DV){var m=[],y=er(g,g._V||g.DV),I=g.scope.internal.getFont(g.fontName,g.fontStyle).id;m.push("/Tx BMC"),m.push("q"),m.push("BT"),m.push(g.scope.__private__.encodeColorString(g.color)),m.push("/"+I+" "+Ft(y.fontSize)+" Tf"),m.push("1 0 0 1 0 0 Tm"),m.push(y.text),m.push("ET"),m.push("Q"),m.push("EMC");var b=sr(g);return b.scope=g.scope,b.stream=m.join("\n"),b}},er=function(g,m){var p=0===g.fontSize?g.maxFontSize:g.fontSize,y={text:"",fontSize:""},I=(m=")"==(m="("==m.substr(0,1)?m.substr(1):m).substr(m.length-1)?m.substr(0,m.length-1):m).split(" ");I=I.map(g.multiline?function(ee){return ee.split("\n")}:function(ee){return[ee]});var b=p,D=ln.internal.getHeight(g)||0;D=D<0?-D:D;var ee,E=ln.internal.getWidth(g)||0;E=E<0?-E:E,b++;e:for(;b>0;){m="",b--;var O,j,H=Bo("3",g,b).height,Q=g.multiline?D-b:(D-H)/2,N=Q+=2,G=0,K=0,M=0;if(b<=0){m="(...) Tj\n",m+="% Width of Text: "+Bo(m,g,b=12).width+", FieldWidth:"+E+"\n";break}for(var L="",re=0,be=0;be<I.length;be++)if(I.hasOwnProperty(be)){var Me=!1;if(1!==I[be].length&&M!==I[be].length-1){if((H+2)*(re+2)+2>D)continue e;L+=I[be][M],Me=!0,K=be,be--}else{L=" "==(L+=I[be][M]+" ").substr(L.length-1)?L.substr(0,L.length-1):L;var Ge=parseInt(be),wt=(ee=Ge)+1<I.length&&Bo(L+" "+I[ee+1][0],g,b).width<=E-4,Ne=be>=I.length-1;if(wt&&!Ne){L+=" ",M=0;continue}if(wt||Ne){if(Ne)K=Ge;else if(g.multiline&&(H+2)*(re+2)+2>D)continue e}else{if(!g.multiline||(H+2)*(re+2)+2>D)continue e;K=Ge}}for(var pe="",He=G;He<=K;He++){var st=I[He];if(g.multiline){if(He===K){pe+=st[M]+" ",M=(M+1)%st.length;continue}if(He===G){pe+=st[st.length-1]+" ";continue}}pe+=st[0]+" "}switch(pe=" "==pe.substr(pe.length-1)?pe.substr(0,pe.length-1):pe,j=Bo(pe,g,b).width,g.textAlign){case"right":O=E-j-2;break;case"center":O=(E-j)/2;break;default:O=2}m+=Ft(O)+" "+Ft(N)+" Td\n",m+="("+Xl(pe)+") Tj\n",m+=-Ft(O)+" 0 Td\n",N=-(b+2),j=0,G=Me?K:K+1,re++,L=""}break}return y.text=m,y.fontSize=b,y},Bo=function(g,m,p){var y=m.scope.internal.getFont(m.fontName,m.fontStyle),I=m.scope.getStringUnitWidth(g,{font:y,fontSize:parseFloat(p),charSpace:0})*parseFloat(p);return{height:m.scope.getStringUnitWidth("3",{font:y,fontSize:parseFloat(p),charSpace:0})*parseFloat(p)*1.5,width:I}},tc={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Co=function(g,m){var p={type:"reference",object:g};void 0===m.internal.getPageInfo(g.page).pageContext.annotations.find(function(y){return y.type===p.type&&y.object===p.object})&&m.internal.getPageInfo(g.page).pageContext.annotations.push(p)},jd=vr.__acroform__.arrayToPdfArray=function(g,m,p){var y=function(D){return D};if(Array.isArray(g)){for(var I="[",b=0;b<g.length;b++)switch(0!==b&&(I+=" "),Gn(g[b])){case"boolean":case"number":case"object":I+=g[b].toString();break;case"string":"/"!==g[b].substr(0,1)?(void 0!==m&&p&&(y=p.internal.getEncryptor(m)),I+="("+Xl(y(g[b].toString()))+")"):I+=g[b].toString()}return I+"]"}
vendor: 4,952 bytes, line 3
3throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Oc=function(g,m,p){var y=function(I){return I};return void 0!==m&&p&&(y=p.internal.getEncryptor(m)),(g=g||"").toString(),"("+Xl(y(g))+")"},Ln=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(g){this._objId=g}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Ln.prototype.toString=function(){return this.objId+" 0 R"},Ln.prototype.putStream=function(){var g=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:g,objectId:this.objId}),this.scope.internal.out("endobj")},Ln.prototype.getKeyValueListForStream=function(){var g=[],m=Object.getOwnPropertyNames(this).filter(function(b){return"content"!=b&&"appearanceStreamContent"!=b&&"scope"!=b&&"objId"!=b&&"_"!=b.substring(0,1)});for(var p in m)if(!1===Object.getOwnPropertyDescriptor(this,m[p]).configurable){var y=m[p],I=this[y];I&&(Array.isArray(I)?g.push({key:y,value:jd(I,this.objId,this.scope)}):I instanceof Ln?(I.scope=this.scope,g.push({key:y,value:I.objId+" 0 R"})):"function"!=typeof I&&g.push({key:y,value:I}))}return g};var Ju=function(){Ln.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var g,m=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return m},set:function(p){m=p}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(p){g=p.trim()},get:function(){return g||null}})};zn(Ju,Ln);var Rc=function(){Ln.call(this);var g,m=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return m.length>0?m:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return m}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(g){var p=function(y){return y};return this.scope&&(p=this.scope.internal.getEncryptor(this.objId)),"("+Xl(p(g))+")"}},set:function(p){g=p}})};zn(Rc,Ln);var Ls=function g(){Ln.call(this);var m=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return m},set:function(L){if(isNaN(L))throw new Error('Invalid value "'+L+'" for attribute F supplied.');m=L}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(Cr(m,3))},set:function(L){this.F=!0===Boolean(L)?Xi(m,3):Ei(m,3)}});var p=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return p},set:function(L){if(isNaN(L))throw new Error('Invalid value "'+L+'" for attribute Ff supplied.');p=L}});var y=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==y.length)return y},set:function(L){y=void 0!==L?L:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!y||isNaN(y[0])?0:y[0]},set:function(L){y[0]=L}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!y||isNaN(y[1])?0:y[1]},set:function(L){y[1]=L}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!y||isNaN(y[2])?0:y[2]},set:function(L){y[2]=L}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!y||isNaN(y[3])?0:y[3]},set:function(L){y[3]=L}});var I="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return I},set:function(L){switch(L){case"/Btn":case"/Tx":case"/Ch":case"/Sig":I=L;break;default:throw new Error('Invalid value "'+L+'" for attribute FT supplied.')}}});var b=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!b||b.length<1){if(this instanceof Ri)return;b="FieldObject"+g.FieldNum++}var L=function(re){return re};return this.scope&&(L=this.scope.internal.getEncryptor(this.objId)),"("+Xl(L(b))+")"},set:function(L){b=L.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return b},set:function(L){b=L}});var D="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return D},set:function(L){D=L}});var E="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return E},set:function(L){E=L}});var k=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return k},set:function(L){k=L}});var O=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===O?50/uo:O},set:function(L){O=L}});var j="black";
vendor: 6,228 bytes, line 3
3Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return j},set:function(L){j=L}});var H="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!H||this instanceof Ri||this instanceof ba))return Oc(H,this.objId,this.scope)},set:function(L){L=L.toString(),H=L}});var Q=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(Q)return this instanceof Oi?Q:Oc(Q,this.objId,this.scope)},set:function(L){L=L.toString(),Q=this instanceof Oi?L:"("===L.substr(0,1)?ec(L.substr(1,L.length-2)):ec(L)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Oi?ec(Q.substr(1,Q.length-1)):Q},set:function(L){L=L.toString(),Q=this instanceof Oi?"/"+L:L}});var N=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(N)return N},set:function(L){this.V=L}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(N)return this instanceof Oi?N:Oc(N,this.objId,this.scope)},set:function(L){L=L.toString(),N=this instanceof Oi?L:"("===L.substr(0,1)?ec(L.substr(1,L.length-2)):ec(L)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Oi?ec(N.substr(1,N.length-1)):N},set:function(L){L=L.toString(),N=this instanceof Oi?"/"+L:L}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var G,K=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return K},set:function(L){L=Boolean(L),K=L}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(G)return G},set:function(L){G=L}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(Cr(this.Ff,1))},set:function(L){this.Ff=!0===Boolean(L)?Xi(this.Ff,1):Ei(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(Cr(this.Ff,2))},set:function(L){this.Ff=!0===Boolean(L)?Xi(this.Ff,2):Ei(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(Cr(this.Ff,3))},set:function(L){this.Ff=!0===Boolean(L)?Xi(this.Ff,3):Ei(this.Ff,3)}});var M=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==M)return M},set:function(L){if(-1===[0,1,2].indexOf(L))throw new Error('Invalid value "'+L+'" for attribute Q supplied.');M=L}}),Object.defineProperty(this,"textAlign",{get:function(){var L;switch(M){case 0:default:L="left";break;case 1:L="center";break;case 2:L="right"}return L},configurable:!0,enumerable:!0,set:function(L){switch(L){case"right":case 2:M=2;break;case"center":case 1:M=1;break;default:M=0}}})};zn(Ls,Ln);var ks=function(){Ls.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var g=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return g},set:function(p){g=p}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return g},set:function(p){g=p}});var m=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return jd(m,this.objId,this.scope)},set:function(p){var y,I;I=[],"string"==typeof(y=p)&&(I=function(b,D,E){E||(E=1);for(var k,O=[];k=D.exec(b);)O.push(k[E]);return O}(y,/\((.*?)\)/g)),m=I}}),this.getOptions=function(){return m},this.setOptions=function(p){m=p,this.sort&&m.sort()},this.addOption=function(p){p=(p=p||"").toString(),m.push(p),this.sort&&m.sort()},this.removeOption=function(p,y){for(y=y||!1,p=(p=p||"").toString();-1!==m.indexOf(p)&&(m.splice(m.indexOf(p),1),!1!==y););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(Cr(this.Ff,18))},set:function(p){this.Ff=!0===Boolean(p)?Xi(this.Ff,18):Ei(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(Cr(this.Ff,19))},set:function(p){!0===this.combo&&(this.Ff=!0===Boolean(p)?Xi(this.Ff,19):Ei(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(Cr(this.Ff,20))},set:function(p){!0===Boolean(p)?(this.Ff=Xi(this.Ff,20),m.sort()):this.Ff=Ei(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Cr(this.Ff,22))},set:function(p){this.Ff=!0===Boolean(p)?Xi(this.Ff,22):Ei(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Cr(this.Ff,23))},set:function(p){this.Ff=!0===Boolean(p)?Xi(this.Ff,23):Ei(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(Cr(this.Ff,27))},set:function(p){this.Ff=!0===Boolean(p)?Xi(this.Ff,27):Ei(this.Ff,27)}}),this.hasAppearanceStream=!1};zn(ks,Ls);var yr=function(){ks.call(this),this.fontName="helvetica",this.combo=!1};zn(yr,ks);var Xs=function(){yr.call(this),this.combo=!0};zn(Xs,yr);var ya=function(){Xs.call(this),this.edit=!0};zn(ya,Xs);var Oi=function(){Ls.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(Cr(this.Ff,15))},set:function(p){this.Ff=!0===Boolean(p)?Xi(this.Ff,15):Ei(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(Cr(this.Ff,16))},set:function(p){this.Ff=!0===Boolean(p)?Xi(this.Ff,16):Ei(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(Cr(this.Ff,17))},set:function(p){this.Ff=!0===Boolean(p)?Xi(this.Ff,17):Ei(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(Cr(this.Ff,26))},set:function(p){this.Ff=!0===Boolean(p)?Xi(this.Ff,26):Ei(this.Ff,26)}});var g,m={};
vendor: 4,509 bytes, line 3
3Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var p=function(b){return b};if(this.scope&&(p=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(m).length){var y,I=[];for(y in I.push("<<"),m)I.push("/"+y+" ("+Xl(p(m[y]))+")");return I.push(">>"),I.join("\n")}},set:function(p){"object"===Gn(p)&&(m=p)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return m.CA||""},set:function(p){"string"==typeof p&&(m.CA=p)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return g},set:function(p){g=p}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return g.substr(1,g.length-1)},set:function(p){g="/"+p}})};zn(Oi,Ls);var Ja=function(){Oi.call(this),this.pushButton=!0};zn(Ja,Oi);var yl=function(){Oi.call(this),this.radio=!0,this.pushButton=!1;var g=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return g},set:function(m){g=void 0!==m?m:[]}})};zn(yl,Oi);var Ri=function(){var g,m;Ls.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return g},set:function(I){g=I}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return m},set:function(I){m=I}});var p,y={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var I=function(E){return E};this.scope&&(I=this.scope.internal.getEncryptor(this.objId));var b,D=[];for(b in D.push("<<"),y)D.push("/"+b+" ("+Xl(I(y[b]))+")");return D.push(">>"),D.join("\n")},set:function(I){"object"===Gn(I)&&(y=I)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return y.CA||""},set:function(I){"string"==typeof I&&(y.CA=I)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return p},set:function(I){p=I}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return p.substr(1,p.length-1)},set:function(I){p="/"+I}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=ln.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};zn(Ri,Ls),yl.prototype.setAppearance=function(g){if(!("createAppearanceStream"in g)||!("getCA"in g))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var m in this.Kids)if(this.Kids.hasOwnProperty(m)){var p=this.Kids[m];p.appearanceStreamContent=g.createAppearanceStream(p.optionName),p.caption=g.getCA()}},yl.prototype.createOption=function(g){var m=new Ri;return m.Parent=this,m.optionName=g,this.Kids.push(m),Qu.call(this.scope,m),m};var Zu=function(){Oi.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ln.CheckBox.createAppearanceStream()};zn(Zu,Oi);var ba=function(){Ls.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(Cr(this.Ff,13))},set:function(m){this.Ff=!0===Boolean(m)?Xi(this.Ff,13):Ei(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Cr(this.Ff,21))},set:function(m){this.Ff=!0===Boolean(m)?Xi(this.Ff,21):Ei(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Cr(this.Ff,23))},set:function(m){this.Ff=!0===Boolean(m)?Xi(this.Ff,23):Ei(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(Cr(this.Ff,24))},set:function(m){this.Ff=!0===Boolean(m)?Xi(this.Ff,24):Ei(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(Cr(this.Ff,25))},set:function(m){this.Ff=!0===Boolean(m)?Xi(this.Ff,25):Ei(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(Cr(this.Ff,26))},set:function(m){this.Ff=!0===Boolean(m)?Xi(this.Ff,26):Ei(this.Ff,26)}});var g=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return g},set:function(m){g=m}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return g},set:function(m){Number.isInteger(m)&&(g=m)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};zn(ba,Ls);
vendor: 9,305 bytes, line 3
3var Bc=function(){ba.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(Cr(this.Ff,14))},set:function(g){this.Ff=!0===Boolean(g)?Xi(this.Ff,14):Ei(this.Ff,14)}}),this.password=!0};zn(Bc,ba);var ln={CheckBox:{createAppearanceStream:function(){return{N:{On:ln.CheckBox.YesNormal},D:{On:ln.CheckBox.YesPushDown,Off:ln.CheckBox.OffPushDown}}},YesPushDown:function(g){var m=sr(g);m.scope=g.scope;var p=[],y=g.scope.internal.getFont(g.fontName,g.fontStyle).id,I=g.scope.__private__.encodeColorString(g.color),b=er(g,g.caption);return p.push("0.749023 g"),p.push("0 0 "+Ft(ln.internal.getWidth(g))+" "+Ft(ln.internal.getHeight(g))+" re"),p.push("f"),p.push("BMC"),p.push("q"),p.push("0 0 1 rg"),p.push("/"+y+" "+Ft(b.fontSize)+" Tf "+I),p.push("BT"),p.push(b.text),p.push("ET"),p.push("Q"),p.push("EMC"),m.stream=p.join("\n"),m},YesNormal:function(g){var m=sr(g);m.scope=g.scope;var p=g.scope.internal.getFont(g.fontName,g.fontStyle).id,y=g.scope.__private__.encodeColorString(g.color),I=[],b=ln.internal.getHeight(g),D=ln.internal.getWidth(g),E=er(g,g.caption);return I.push("1 g"),I.push("0 0 "+Ft(D)+" "+Ft(b)+" re"),I.push("f"),I.push("q"),I.push("0 0 1 rg"),I.push("0 0 "+Ft(D-1)+" "+Ft(b-1)+" re"),I.push("W"),I.push("n"),I.push("0 g"),I.push("BT"),I.push("/"+p+" "+Ft(E.fontSize)+" Tf "+y),I.push(E.text),I.push("ET"),I.push("Q"),m.stream=I.join("\n"),m},OffPushDown:function(g){var m=sr(g);m.scope=g.scope;var p=[];return p.push("0.749023 g"),p.push("0 0 "+Ft(ln.internal.getWidth(g))+" "+Ft(ln.internal.getHeight(g))+" re"),p.push("f"),m.stream=p.join("\n"),m}},RadioButton:{Circle:{createAppearanceStream:function(g){var m={D:{Off:ln.RadioButton.Circle.OffPushDown},N:{}};return m.N[g]=ln.RadioButton.Circle.YesNormal,m.D[g]=ln.RadioButton.Circle.YesPushDown,m},getCA:function(){return"l"},YesNormal:function(g){var m=sr(g);m.scope=g.scope;var p=[],y=ln.internal.getWidth(g)<=ln.internal.getHeight(g)?ln.internal.getWidth(g)/4:ln.internal.getHeight(g)/4;y=Number((.9*y).toFixed(5));var b=Number((y*ln.internal.Bezier_C).toFixed(5));return p.push("q"),p.push("1 0 0 1 "+_r(ln.internal.getWidth(g)/2)+" "+_r(ln.internal.getHeight(g)/2)+" cm"),p.push(y+" 0 m"),p.push(y+" "+b+" "+b+" "+y+" 0 "+y+" c"),p.push("-"+b+" "+y+" -"+y+" "+b+" -"+y+" 0 c"),p.push("-"+y+" -"+b+" -"+b+" -"+y+" 0 -"+y+" c"),p.push(b+" -"+y+" "+y+" -"+b+" "+y+" 0 c"),p.push("f"),p.push("Q"),m.stream=p.join("\n"),m},YesPushDown:function(g){var m=sr(g);m.scope=g.scope;var p=[],y=ln.internal.getWidth(g)<=ln.internal.getHeight(g)?ln.internal.getWidth(g)/4:ln.internal.getHeight(g)/4;y=Number((.9*y).toFixed(5));var I=Number((2*y).toFixed(5)),b=Number((I*ln.internal.Bezier_C).toFixed(5)),D=Number((y*ln.internal.Bezier_C).toFixed(5));return p.push("0.749023 g"),p.push("q"),p.push("1 0 0 1 "+_r(ln.internal.getWidth(g)/2)+" "+_r(ln.internal.getHeight(g)/2)+" cm"),p.push(I+" 0 m"),p.push(I+" "+b+" "+b+" "+I+" 0 "+I+" c"),p.push("-"+b+" "+I+" -"+I+" "+b+" -"+I+" 0 c"),p.push("-"+I+" -"+b+" -"+b+" -"+I+" 0 -"+I+" c"),p.push(b+" -"+I+" "+I+" -"+b+" "+I+" 0 c"),p.push("f"),p.push("Q"),p.push("0 g"),p.push("q"),p.push("1 0 0 1 "+_r(ln.internal.getWidth(g)/2)+" "+_r(ln.internal.getHeight(g)/2)+" cm"),p.push(y+" 0 m"),p.push(y+" "+D+" "+D+" "+y+" 0 "+y+" c"),p.push("-"+D+" "+y+" -"+y+" "+D+" -"+y+" 0 c"),p.push("-"+y+" -"+D+" -"+D+" -"+y+" 0 -"+y+" c"),p.push(D+" -"+y+" "+y+" -"+D+" "+y+" 0 c"),p.push("f"),p.push("Q"),m.stream=p.join("\n"),m},OffPushDown:function(g){var m=sr(g);m.scope=g.scope;var p=[],y=ln.internal.getWidth(g)<=ln.internal.getHeight(g)?ln.internal.getWidth(g)/4:ln.internal.getHeight(g)/4;y=Number((.9*y).toFixed(5));var I=Number((2*y).toFixed(5)),b=Number((I*ln.internal.Bezier_C).toFixed(5));return p.push("0.749023 g"),p.push("q"),p.push("1 0 0 1 "+_r(ln.internal.getWidth(g)/2)+" "+_r(ln.internal.getHeight(g)/2)+" cm"),p.push(I+" 0 m"),p.push(I+" "+b+" "+b+" "+I+" 0 "+I+" c"),p.push("-"+b+" "+I+" -"+I+" "+b+" -"+I+" 0 c"),p.push("-"+I+" -"+b+" -"+b+" -"+I+" 0 -"+I+" c"),p.push(b+" -"+I+" "+I+" -"+b+" "+I+" 0 c"),p.push("f"),p.push("Q"),m.stream=p.join("\n"),m}},Cross:{createAppearanceStream:function(g){var m={D:{Off:ln.RadioButton.Cross.OffPushDown},N:{}};return m.N[g]=ln.RadioButton.Cross.YesNormal,m.D[g]=ln.RadioButton.Cross.YesPushDown,m},getCA:function(){return"8"},YesNormal:function(g){var m=sr(g);m.scope=g.scope;var p=[],y=ln.internal.calculateCross(g);return p.push("q"),p.push("1 1 "+Ft(ln.internal.getWidth(g)-2)+" "+Ft(ln.internal.getHeight(g)-2)+" re"),p.push("W"),p.push("n"),p.push(Ft(y.x1.x)+" "+Ft(y.x1.y)+" m"),p.push(Ft(y.x2.x)+" "+Ft(y.x2.y)+" l"),p.push(Ft(y.x4.x)+" "+Ft(y.x4.y)+" m"),p.push(Ft(y.x3.x)+" "+Ft(y.x3.y)+" l"),p.push("s"),p.push("Q"),m.stream=p.join("\n"),m},YesPushDown:function(g){var m=sr(g);m.scope=g.scope;var p=ln.internal.calculateCross(g),y=[];return y.push("0.749023 g"),y.push("0 0 "+Ft(ln.internal.getWidth(g))+" "+Ft(ln.internal.getHeight(g))+" re"),y.push("f"),y.push("q"),y.push("1 1 "+Ft(ln.internal.getWidth(g)-2)+" "+Ft(ln.internal.getHeight(g)-2)+" re"),y.push("W"),y.push("n"),y.push(Ft(p.x1.x)+" "+Ft(p.x1.y)+" m"),y.push(Ft(p.x2.x)+" "+Ft(p.x2.y)+" l"),y.push(Ft(p.x4.x)+" "+Ft(p.x4.y)+" m"),y.push(Ft(p.x3.x)+" "+Ft(p.x3.y)+" l"),y.push("s"),y.push("Q"),m.stream=y.join("\n"),m},OffPushDown:function(g){var m=sr(g);m.scope=g.scope;var p=[];return p.push("0.749023 g"),p.push("0 0 "+Ft(ln.internal.getWidth(g))+" "+Ft(ln.internal.getHeight(g))+" re"),p.push("f"),m.stream=p.join("\n"),m}}},createDefaultAppearanceStream:function(g){var m=g.scope.internal.getFont(g.fontName,g.fontStyle).id,p=g.scope.__private__.encodeColorString(g.color);return"/"+m+" "+g.fontSize+" Tf "+p}};ln.internal={Bezier_C:.551915024494,calculateCross:function(g){var m=ln.internal.getWidth(g),p=ln.internal.getHeight(g),y=Math.min(m,p);return{x1:{x:(m-y)/2,y:(p-y)/2+y},x2:{x:(m-y)/2+y,y:(p-y)/2},x3:{x:(m-y)/2,y:(p-y)/2},x4:{x:(m-y)/2+y,y:(p-y)/2+y}}}},ln.internal.getWidth=function(g){var m=0;return"object"===Gn(g)&&(m=ho(g.Rect[2])),m},ln.internal.getHeight=function(g){var m=0;return"object"===Gn(g)&&(m=ho(g.Rect[3])),m};var Qu=vr.addField=function(g){if(function(g,m){if(m.scope=g,void 0!==g.internal&&(void 0===g.internal.acroformPlugin||!1===g.internal.acroformPlugin.isInitialized)){if(Ls.FieldNum=0,g.internal.acroformPlugin=JSON.parse(JSON.stringify(tc)),g.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");uo=g.internal.scaleFactor,g.internal.acroformPlugin.acroFormDictionaryRoot=new Rc,g.internal.acroformPlugin.acroFormDictionaryRoot.scope=g,g.internal.acroformPlugin.acroFormDictionaryRoot._eventID=g.internal.events.subscribe("postPutResources",function(){var p;(p=g).internal.events.unsubscribe(p.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete p.internal.acroformPlugin.acroFormDictionaryRoot._eventID,p.internal.acroformPlugin.printedOut=!0}),g.internal.events.subscribe("buildDocument",function(){!function(p){p.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var y=p.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var I in y)if(y.hasOwnProperty(I)){var b=y[I];b.objId=void 0,b.hasAnnotation&&Co(b,p)}}(g)}),g.internal.events.subscribe("putCatalog",function(){!function(p){if(void 0===p.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");p.internal.write("/AcroForm "+p.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(g)}),g.internal.events.subscribe("postPutPages",function(p){!function(y,I){var b=!y;for(var D in y||(I.internal.newObjectDeferredBegin(I.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),I.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),y=y||I.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(y.hasOwnProperty(D)){var E=y[D],k=[],O=E.Rect;if(E.Rect&&(E.Rect=an(E.Rect,I)),I.internal.newObjectDeferredBegin(E.objId,!0),E.DA=ln.createDefaultAppearanceStream(E),"object"===Gn(E)&&"function"==typeof E.getKeyValueListForStream&&(k=E.getKeyValueListForStream()),E.Rect=O,E.hasAppearanceStream&&!E.appearanceStreamContent){var j=Wn(E);k.push({key:"AP",value:"<</N "+j+">>"}),I.internal.acroformPlugin.xForms.push(j)}if(E.appearanceStreamContent){var H="";for(var Q in E.appearanceStreamContent)if(E.appearanceStreamContent.hasOwnProperty(Q)){var N=E.appearanceStreamContent[Q];if(H+="/"+Q+" ",H+="<<",Object.keys(N).length>=1||Array.isArray(N)){for(var D in N)if(N.hasOwnProperty(D)){var G=N[D];"function"==typeof G&&(G=G.call(I,E)),H+="/"+D+" "+G+" ",I.internal.acroformPlugin.xForms.indexOf(G)>=0||I.internal.acroformPlugin.xForms.push(G)}}else"function"==typeof(G=N)&&(G=G.call(I,E)),H+="/"+D+" "+G,I.internal.acroformPlugin.xForms.indexOf(G)>=0||I.internal.acroformPlugin.xForms.push(G);H+=">>"}k.push({key:"AP",value:"<<\n"+H+">>"})}I.internal.putStream({additionalKeyValues:k,objectId:E.objId}),I.internal.out("endobj")}b&&function(g,m){for(var p in g)if(g.hasOwnProperty(p)){var y=p,I=g[p];m.internal.newObjectDeferredBegin(I.objId,!0),"object"===Gn(I)&&"function"==typeof I.putStream&&I.putStream(),delete g[y]}}(I.internal.acroformPlugin.xForms,I)}(p,g)}),g.internal.acroformPlugin.isInitialized=!0}}(this,g),!(g instanceof Ls))throw new Error("Invalid argument passed to
3jsPDF.addField.");var m;return(m=g).scope.internal.acroformPlugin.printedOut&&(m.scope.internal.acroformPlugin.printedOut=!1,m.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),m.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(m),g.page=g.scope.internal.getCurrentPageInfo().pageNumber,this};vr.AcroFormChoiceField=ks,vr.AcroFormListBox=yr,vr.AcroFormComboBox=Xs,vr.AcroFormEditBox=ya,vr.AcroFormButton=Oi,vr.AcroFormPushButton=Ja,vr.AcroFormRadioButton=yl,vr.AcroFormCheckBox=Zu,vr.AcroFormTextField=ba,vr.AcroFormPasswordField=Bc,vr.AcroFormAppearance=ln,vr.AcroForm={ChoiceField:ks,ListBox:yr,ComboBox:Xs,EditBox:ya,Button:Oi,PushButton:Ja,RadioButton:yl,CheckBox:Zu,TextField:ba,PasswordField:Bc,Appearance:ln};var g,m,jc=xn.AcroForm={ChoiceField:ks,ListBox:yr,ComboBox:Xs,EditBox:ya,Button:Oi,PushButton:Ja,RadioButton:yl,CheckBox:Zu,TextField:ba,PasswordField:Bc,Appearance:ln};function yo(g){return g.reduce(function(m,p,y){return m[p]=y,m},{})}(function(g){g.__addimage__={};var m="UNKNOWN",p={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},y=g.__addimage__.getImageFileTypeByImageData=function(ee,te){var ye,me,Ye,tt,rt,ze=m;if("RGBA"===(te=te||m)||void 0!==ee.data&&ee.data instanceof Uint8ClampedArray&&"height"in ee&&"width"in ee)return"RGBA";if(wt(ee))for(rt in p)for(Ye=p[rt],ye=0;ye<Ye.length;ye+=1){for(tt=!0,me=0;me<Ye[ye].length;me+=1)if(void 0!==Ye[ye][me]&&Ye[ye][me]!==ee[me]){tt=!1;break}if(!0===tt){ze=rt;break}}else for(rt in p)for(Ye=p[rt],ye=0;ye<Ye.length;ye+=1){for(tt=!0,me=0;me<Ye[ye].length;me+=1)if(void 0!==Ye[ye][me]&&Ye[ye][me]!==ee.charCodeAt(me)){tt=!1;break}if(!0===tt){ze=rt;break}}return ze===m&&te!==m&&(ze=te),ze},I=function ee(te){for(var ye=this.internal.write,me=this.internal.putStream,Ye=(0,this.internal.getFilters)();-1!==Ye.indexOf("FlateEncode");)Ye.splice(Ye.indexOf("FlateEncode"),1);te.objectId=this.internal.newObject();var tt=[];if(tt.push({key:"Type",value:"/XObject"}),tt.push({key:"Subtype",value:"/Image"}),tt.push({key:"Width",value:te.width}),tt.push({key:"Height",value:te.height}),te.colorSpace===M.INDEXED?tt.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(te.palette.length/3-1)+" "+("sMask"in te&&void 0!==te.sMask?te.objectId+2:te.objectId+1)+" 0 R]"}):(tt.push({key:"ColorSpace",value:"/"+te.colorSpace}),te.colorSpace===M.DEVICE_CMYK&&tt.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),tt.push({key:"BitsPerComponent",value:te.bitsPerComponent}),"decodeParameters"in te&&void 0!==te.decodeParameters&&tt.push({key:"DecodeParms",value:"<<"+te.decodeParameters+">>"}),"transparency"in te&&Array.isArray(te.transparency)){for(var rt="",ze=0,lt=te.transparency.length;ze<lt;ze++)rt+=te.transparency[ze]+" "+te.transparency[ze]+" ";tt.push({key:"Mask",value:"["+rt+"]"})}if(void 0!==te.sMask&&tt.push({key:"SMask",value:te.objectId+1+" 0 R"}),me({data:te.data,additionalKeyValues:tt,alreadyAppliedFilters:void 0!==te.filter?["/"+te.filter]:void 0,objectId:te.objectId}),ye("endobj"),"sMask"in te&&void 0!==te.sMask){var Z={width:te.width,height:te.height,colorSpace:"DeviceGray",bitsPerComponent:te.bitsPerComponent,decodeParameters:"/Predictor "+te.predictor+" /Colors 1 /BitsPerComponent "+te.bitsPerComponent+" /Columns "+te.width,data:te.sMask};"filter"in te&&(Z.filter=te.filter),ee.call(this,Z)}if(te.colorSpace===M.INDEXED){var se=this.internal.newObject();me({data:pe(new Uint8Array(te.palette)),objectId:se}),ye("endobj")}},b=function(){var ee=this.internal.collections.addImage_images;for(var te in ee)I.call(this,ee[te])},D=function(){var ee,te=this.internal.collections.addImage_images,ye=this.internal.write;for(var me in te)ye("/I"+(ee=te[me]).index,ee.objectId,"0","R")},E=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",b),this.internal.events.subscribe("putXobjectDict",D))},k=function(){var ee=this.internal.collections.addImage_images;return E.call(this),ee},O=function(){return Object.keys(this.internal.collections.addImage_images).length},j=function(ee){return"function"==typeof g["process"+ee.toUpperCase()]},H=function(ee){return"object"===Gn(ee)&&1===ee.nodeType},Q=function(ee,te){if("IMG"===ee.nodeName&&ee.hasAttribute("src")){var ye=""+ee.getAttribute("src");if(0===ye.indexOf("data:image/"))return Fc(unescape(ye).split("base64,").pop());var me=g.loadFile(ye,!0);if(void 0!==me)return me}if("CANVAS"===ee.nodeName){if(0===ee.width||0===ee.height)throw new Error("Given canvas must have data. Canvas width: "+ee.width+", height: "+ee.height);var Ye;switch(te){case"PNG":Ye="image/png";break;case"WEBP":Ye="image/webp";break;default:Ye="image/jpeg"}return Fc(ee.toDataURL(Ye,1).split("base64,").pop())}},N=function(ee){var te=this.internal.collections.addImage_images;if(te)for(var ye in te)if(ee===te[ye].alias)return te[ye]},G=function(ee,te,ye){return ee||te||(ee=-96,te=-96),ee<0&&(ee=-1*ye.width*72/ee/this.internal.scaleFactor),te<0&&(te=-1*ye.height*72/te/this.internal.scaleFactor),0===ee&&(ee=te*ye.width/ye.height),0===te&&(te=ee*ye.height/ye.width),[ee,te]},K=function(ee,te,ye,me,Ye,tt){var rt=G.call(this,ye,me,Ye),ze=this.internal.getCoordinateString,lt=this.internal.getVerticalCoordinateString,ft=k.call(this);if(ye=rt[0],me=rt[1],ft[Ye.index]=Ye,tt){tt*=Math.PI/180;var $t=Math.cos(tt),Z=Math.sin(tt),se=function(_e){return _e.toFixed(4)},ue=[se($t),se(Z),se(-1*Z),se($t),0,0,"cm"]}this.internal.write("q"),tt?(this.internal.write([1,"0","0",1,ze(ee),lt(te+me),"cm"].join(" ")),this.internal.write(ue.join(" ")),this.internal.write([ze(ye),"0","0",ze(me),"0","0","cm"].join(" "))):this.internal.write([ze(ye),"0","0",ze(me),ze(ee),lt(te+me),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Ye.index+" Do"),this.internal.write("Q")},M=g.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};g.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var L=g.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},re=g.__addimage__.sHashCode=function(ee){var te,ye,me=0;if("string"==typeof ee)for(ye=ee.length,te=0;te<ye;te++)me=(me<<5)-me+ee.charCodeAt(te),me|=0;else if(wt(ee))for(ye=ee.byteLength/2,te=0;te<ye;te++)me=(me<<5)-me+ee[te],me|=0;return me}
vendor: 16,142 bytes, lines 3-27
3,be=g.__addimage__.validateStringAsBase64=function(ee){(ee=ee||"").toString().trim();var te=!0;return 0===ee.length&&(te=!1),ee.length%4!=0&&(te=!1),!1===/^[A-Za-z0-9+/]+$/.test(ee.substr(0,ee.length-2))&&(te=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(ee.substr(-2))&&(te=!1),te},Me=g.__addimage__.extractImageFromDataUrl=function(ee){var te=(ee=ee||"").split("base64,"),ye=null;if(2===te.length){var me=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(te[0]);Array.isArray(me)&&(ye={mimeType:me[1],charset:me[2],data:te[1]})}return ye},Ge=g.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};g.__addimage__.isArrayBuffer=function(ee){return Ge()&&ee instanceof ArrayBuffer};var wt=g.__addimage__.isArrayBufferView=function(ee){return Ge()&&typeof Uint32Array<"u"&&(ee instanceof Int8Array||ee instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&ee instanceof Uint8ClampedArray||ee instanceof Int16Array||ee instanceof Uint16Array||ee instanceof Int32Array||ee instanceof Uint32Array||ee instanceof Float32Array||ee instanceof Float64Array)},Ne=g.__addimage__.binaryStringToUint8Array=function(ee){for(var te=ee.length,ye=new Uint8Array(te),me=0;me<te;me++)ye[me]=ee.charCodeAt(me);return ye},pe=g.__addimage__.arrayBufferToBinaryString=function(ee){for(var te="",ye=wt(ee)?ee:new Uint8Array(ee),me=0;me<ye.length;me+=8192)te+=String.fromCharCode.apply(null,ye.subarray(me,me+8192));return te};g.addImage=function(){var ee,te,ye,me,Ye,tt,rt,ze,lt;if("number"==typeof arguments[1]?(te=m,ye=arguments[1],me=arguments[2],Ye=arguments[3],tt=arguments[4],rt=arguments[5],ze=arguments[6],lt=arguments[7]):(te=arguments[1],ye=arguments[2],me=arguments[3],Ye=arguments[4],tt=arguments[5],rt=arguments[6],ze=arguments[7],lt=arguments[8]),"object"===Gn(ee=arguments[0])&&!H(ee)&&"imageData"in ee){var ft=ee;ee=ft.imageData,te=ft.format||te||m,ye=ft.x||ye||0,me=ft.y||me||0,Ye=ft.w||ft.width||Ye,tt=ft.h||ft.height||tt,rt=ft.alias||rt,ze=ft.compression||ze,lt=ft.rotation||ft.angle||lt}var $t=this.internal.getFilters();if(void 0===ze&&-1!==$t.indexOf("FlateEncode")&&(ze="SLOW"),isNaN(ye)||isNaN(me))throw new Error("Invalid coordinates passed to jsPDF.addImage");E.call(this);var Z=He.call(this,ee,te,rt,ze);return K.call(this,ye,me,Ye,tt,Z,lt),this};var He=function(ee,te,ye,me){var Ye,tt,rt,lt;if("string"==typeof ee&&y(ee)===m){ee=unescape(ee);var ze=st(ee,!1);(""!==ze||void 0!==(ze=g.loadFile(ee,!0)))&&(ee=ze)}if(H(ee)&&(ee=Q(ee,te)),te=y(ee,te),!j(te))throw new Error("addImage does not support files of type '"+te+"', please ensure that a plugin for '"+te+"' support is added.");if((null==(rt=ye)||0===rt.length)&&(ye="string"==typeof(lt=ee)||wt(lt)?re(lt):wt(lt.data)?re(lt.data):null),(Ye=N.call(this,ye))||(Ge()&&(ee instanceof Uint8Array||"RGBA"===te||(tt=ee,ee=Ne(ee))),Ye=this["process"+te.toUpperCase()](ee,O.call(this),ye,function(lt){return lt&&"string"==typeof lt&&(lt=lt.toUpperCase()),lt in g.image_compression?lt:L.NONE}(me),tt)),!Ye)throw new Error("An unknown error occurred whilst processing the image.");return Ye},st=g.__addimage__.convertBase64ToBinaryString=function(ee,te){var ye;te="boolean"!=typeof te||te;var me,Ye="";if("string"==typeof ee){me=null!==(ye=Me(ee))?ye.data:ee;try{Ye=Fc(me)}catch(tt){if(te)throw be(me)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+tt.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return Ye};g.getImageProperties=function(ee){var te,ye,me="";if(H(ee)&&(ee=Q(ee)),"string"==typeof ee&&y(ee)===m&&(""===(me=st(ee,!1))&&(me=g.loadFile(ee)||""),ee=me),ye=y(ee),!j(ye))throw new Error("addImage does not support files of type '"+ye+"', please ensure that a plugin for '"+ye+"' support is added.");if(!Ge()||ee instanceof Uint8Array||(ee=Ne(ee)),!(te=this["process"+ye.toUpperCase()](ee)))throw new Error("An unknown error occurred whilst processing the image");return te.fileType=ye,te}})(xn.API), 4/** 5 * @license 6 * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) [email protected] 7 * 8 * Licensed under the MIT License. 9 * http://opensource.org/licenses/mit-license 10 */ 11g=xn.API,m=function(p){if(void 0!==p&&""!=p)return!0},xn.API.events.push(["addPage",function(p){this.internal.getPageInfo(p.pageNumber).pageContext.annotations=[]}]),g.events.push(["putPage",function(p){for(var y,I,b,D=this.internal.getCoordinateString,E=this.internal.getVerticalCoordinateString,k=this.internal.getPageInfoByObjId(p.objId),O=p.pageContext.annotations,j=!1,H=0;H<O.length&&!j;H++)switch((y=O[H]).type){case"link":(m(y.options.url)||m(y.options.pageNumber))&&(j=!0);break;case"reference":case"text":case"freetext":j=!0}if(0!=j){this.internal.write("/Annots [");for(var Q=0;Q<O.length;Q++){y=O[Q];var N=this.internal.pdfEscape,G=this.internal.getEncryptor(p.objId);switch(y.type){case"reference":this.internal.write(" "+y.object.objId+" 0 R ");break;case"text":var K=this.internal.newAdditionalObject(),M=this.internal.newAdditionalObject(),L=this.internal.getEncryptor(K.objId),re=y.title||"Note";b="<</Type /Annot /Subtype /Text "+(I="/Rect ["+D(y.bounds.x)+" "+E(y.bounds.y+y.bounds.h)+" "+D(y.bounds.x+y.bounds.w)+" "+E(y.bounds.y)+"] ")+"/Contents ("+N(L(y.contents))+")",b+=" /Popup "+M.objId+" 0 R",b+=" /P "+k.objId+" 0 R",b+=" /T ("+N(L(re))+") >>",K.content=b;var be=K.objId+" 0 R";b="<</Type /Annot /Subtype /Popup "+(I="/Rect ["+D(y.bounds.x+30)+" "+E(y.bounds.y+y.bounds.h)+" "+D(y.bounds.x+y.bounds.w+30)+" "+E(y.bounds.y)+"] ")+" /Parent "+be,y.open&&(b+=" /Open true"),M.content=b+=" >>",this.internal.write(K.objId,"0 R",M.objId,"0 R");break;case"freetext":I="/Rect ["+D(y.bounds.x)+" "+E(y.bounds.y)+" "+D(y.bounds.x+y.bounds.w)+" "+E(y.bounds.y+y.bounds.h)+"] ";var Me=y.color||"#000000";b="<</Type /Annot /Subtype /FreeText "+I+"/Contents ("+N(G(y.contents))+")",b+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+Me+")",b+=" /Border [0 0 0]",this.internal.write(b+=" >>");break;case"link":if(y.options.name){var Ge=this.annotations._nameMap[y.options.name];y.options.pageNumber=Ge.page,y.options.top=Ge.y}else y.options.top||(y.options.top=0);if(I="/Rect ["+y.finalBounds.x+" "+y.finalBounds.y+" "+y.finalBounds.w+" "+y.finalBounds.h+"] ",b="",y.options.url)b="<</Type /Annot /Subtype /Link "+I+"/Border [0 0 0] /A <</S /URI /URI ("+N(G(y.options.url))+") >>";else if(y.options.pageNumber)switch(b="<</Type /Annot /Subtype /Link "+I+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(y.options.pageNumber).objId+" 0 R",y.options.magFactor=y.options.magFactor||"XYZ",y.options.magFactor){case"Fit":b+=" /Fit]";break;case"FitH":b+=" /FitH "+y.options.top+"]";break;case"FitV":y.options.left=y.options.left||0,b+=" /FitV "+y.options.left+"]";break;default:var wt=E(y.options.top);y.options.left=y.options.left||0,void 0===y.options.zoom&&(y.options.zoom=0),b+=" /XYZ "+y.options.left+" "+wt+" "+y.options.zoom+"]"}""!=b&&this.internal.write(b+=" >>")}}this.internal.write("]")}}]),g.createAnnotation=function(p){var y=this.internal.getCurrentPageInfo();switch(p.type){case"link":this.link(p.bounds.x,p.bounds.y,p.bounds.w,p.bounds.h,p);break;case"text":case"freetext":y.pageContext.annotations.push(p)}},g.link=function(p,y,I,b,D){var E=this.internal.getCurrentPageInfo(),k=this.internal.getCoordinateString,O=this.internal.getVerticalCoordinateString;E.pageContext.annotations.push({finalBounds:{x:k(p),y:O(y),w:k(p+I),h:O(y+b)},options:D,type:"link"})},g.textWithLink=function(p,y,I,b){var D,E,k=this.getTextWidth(p),O=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==b.maxWidth){var j=this.splitTextToSize(p,E=b.maxWidth).length;D=Math.ceil(O*j)}else E=k,D=O;return this.text(p,y,I,b),"center"===b.align&&(y-=k/2),"right"===b.align&&(y-=k),this.link(y,(I+=.2*O)-O,E,D,b),k},g.getTextWidth=function(p){var y=this.internal.getFontSize();return this.getStringUnitWidth(p)*y/this.internal.scaleFactor}, 12/** 13 * @license 14 * Copyright (c) 2017 Aras Abbasi 15 * 16 * Licensed under the MIT License. 17 * http://opensource.org/licenses/mit-license 18 */ 19function(g){var m={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},p={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},y={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},I=[1570,1571,1573,1575];g.__arabicParser__={};var b=g.__arabicParser__.isInArabicSubstitutionA=function(K){return void 0!==m[K.charCodeAt(0)]},D=g.__arabicParser__.isArabicLetter=function(K){return"string"==typeof K&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(K)},E=g.__arabicParser__.isArabicEndLetter=function(K){return D(K)&&b(K)&&m[K.charCodeAt(0)].length<=2},k=g.__arabicParser__.isArabicAlfLetter=function(K){return D(K)&&I.indexOf(K.charCodeAt(0))>=0};g.__arabicParser__.arabicLetterHasIsolatedForm=function(K){return D(K)&&b(K)&&m[K.charCodeAt(0)].length>=1};var O=g.__arabicParser__.arabicLetterHasFinalForm=function(K){return D(K)&&b(K)&&m[K.charCodeAt(0)].length>=2};g.__arabicParser__.arabicLetterHasInitialForm=function(K){return D(K)&&b(K)&&m[K.charCodeAt(0)].length>=3};var j=g.__arabicParser__.arabicLetterHasMedialForm=function(K){return D(K)&&b(K)&&4==m[K.charCodeAt(0)].length},H=g.__arabicParser__.resolveLigatures=function(K){var M=0,L=p,re="",be=0;for(M=0;M<K.length;M+=1)void 0!==L[K.charCodeAt(M)]?(be++,"number"==typeof(L=L[K.charCodeAt(M)])&&(re+=String.fromCharCode(L),L=p,be=0),M===K.length-1&&(L=p,re+=K.charAt(M-(be-1)),M-=be-1,be=0)):(L=p,re+=K.charAt(M-be),M-=be,be=0);return re};g.__arabicParser__.isArabicDiacritic=function(K){return void 0!==K&&void 0!==y[K.charCodeAt(0)]};var Q=g.__arabicParser__.getCorrectForm=function(K,M,L){return D(K)?!1===b(K)?-1:!O(K)||!D(M)&&!D(L)||!D(L)&&E(M)||E(K)&&!D(M)||E(K)&&k(M)||E(K)&&E(M)?0:j(K)&&D(M)&&!E(M)&&D(L)&&O(L)?3:E(K)||!D(L)?1:2:-1},N=function(K){var M=0,L=0,re=0,be="",Me="",Ge="",wt=(K=K||"").split("\\s+"),Ne=[];for(M=0;M<wt.length;M+=1){for(Ne.push(""),L=0;L<wt[M].length;L+=1)Me=wt[M][L-1],Ge=wt[M][L+1],D(be=wt[M][L])?(re=Q(be,Me,Ge),Ne[M]+=-1!==re?String.fromCharCode(m[be.charCodeAt(0)][re]):be):Ne[M]+=be;Ne[M]=H(Ne[M])}return Ne.join(" ")},G=g.__arabicParser__.processArabic=g.processArabic=function(){var K,M="string"==typeof arguments[0]?arguments[0]:arguments[0].text,L=[];if(Array.isArray(M)){var re=0;for(L=[],re=0;re<M.length;re+=1)Array.isArray(M[re])?L.push([N(M[re][0]),M[re][1],M[re][2]]):L.push([N(M[re])]);K=L}else K=N(M);return"string"==typeof arguments[0]?K:(arguments[0].text=K,arguments[0])};g.events.push(["preProcessText",G])}(xn.API),xn.API.autoPrint=function(g){var m;return"javascript"===((g=g||{}).variant=g.variant||"non-conform",g.variant)?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){m=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+m+" 0 R")})),this}, 20/** 21 * @license 22 * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) [email protected] 23 * 24 * Licensed under the MIT License. 25 * http://opensource.org/licenses/mit-license 26 */ 27function(g){var m=function(){var p=void 0;Object.defineProperty(this,"pdf",{get:function(){return p},set:function(E){p=E}});var y=150;Object.defineProperty(this,"width",{get:function(){return y},set:function(E){y=isNaN(E)||!1===Number.isInteger(E)||E<0?150:E,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=y+1)}});var I=300;Object.defineProperty(this,"height",{get:function(){return I},set:function(E){I=isNaN(E)||!1===Number.isInteger(E)||E<0?300:E,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=I+1)}});var b=[];Object.defineProperty(this,"childNodes",{get:function(){return b},set:function(E){b=E}});var D={};Object.defineProperty(this,"style",{get:function(){return D},set:function(E){D=E}}),Object.defineProperty(this,"parentNode",{})};m.prototype.getContext=function(p,y){var I;if("2d"!==(p=p||"2d"))return null;for(I in y)this.pdf.context2d.hasOwnProperty(I)&&(this.pdf.context2d[I]=y[I]);return this.pdf.context2d._canvas=this,this.pdf.context2d},m.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},g.events.push(["initialized",function(){this.canvas=new m,this.canvas.pdf=this}])}(xn.API),function(g){var m={left:0,top:0,bottom:0,right:0},p=!1,y=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},m),this.internal.__cell__.margins.width=this.getPageWidth(),I.call(this))},I=function(){this.internal.__cell__.lastCell=new b,this.internal.__cell__.pages=1},b=function(){var k=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return k},set:function(K){k=K}});var O=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return O},set:function(K){O=K}});var j=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return j},set:function(K){j=K}});var H=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return H},set:function(K){H=K}});var Q=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return Q},set:function(K){Q=K}});var N=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return N},set:function(K){N=K}});var G=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return G},set:function(K){G=K}}),this};b.prototype.clone=function(){return new b(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},b.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]}
vendor: 4,115 bytes, line 27
27,g.setHeaderFunction=function(k){return y.call(this),this.internal.__cell__.headerFunction="function"==typeof k?k:void 0,this},g.getTextDimensions=function(k,O){y.call(this);var j=(O=O||{}).fontSize||this.getFontSize(),H=O.font||this.getFont(),Q=O.scaleFactor||this.internal.scaleFactor,N=0,G=0,K=0,M=this;if(!Array.isArray(k)&&"string"!=typeof k){if("number"!=typeof k)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");k=String(k)}var L=O.maxWidth;L>0?"string"==typeof k?k=this.splitTextToSize(k,L):"[object Array]"===Object.prototype.toString.call(k)&&(k=k.reduce(function(be,Me){return be.concat(M.splitTextToSize(Me,L))},[])):k=Array.isArray(k)?k:[k];for(var re=0;re<k.length;re++)N<(K=this.getStringUnitWidth(k[re],{font:H})*j)&&(N=K);return 0!==N&&(G=k.length),{w:N/=Q,h:Math.max((G*j*this.getLineHeightFactor()-j*(this.getLineHeightFactor()-1))/Q,0)}},g.cellAddPage=function(){y.call(this),this.addPage();var k=this.internal.__cell__.margins||m;return this.internal.__cell__.lastCell=new b(k.left,k.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var D=g.cell=function(){var k;k=arguments[0]instanceof b?arguments[0]:new b(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),y.call(this);var O=this.internal.__cell__.lastCell,j=this.internal.__cell__.padding,H=this.internal.__cell__.margins||m,Q=this.internal.__cell__.tableHeaderRow,N=this.internal.__cell__.printHeaders;return void 0!==O.lineNumber&&(O.lineNumber===k.lineNumber?(k.x=(O.x||0)+(O.width||0),k.y=O.y||0):O.y+O.height+k.height+H.bottom>this.getPageHeight()?(this.cellAddPage(),k.y=H.top,N&&Q&&(this.printHeaderRow(k.lineNumber,!0),k.y+=Q[0].height)):k.y=O.y+O.height||k.y),void 0!==k.text[0]&&(this.rect(k.x,k.y,k.width,k.height,!0===p?"FD":void 0),"right"===k.align?this.text(k.text,k.x+k.width-j,k.y+j,{align:"right",baseline:"top"}):"center"===k.align?this.text(k.text,k.x+k.width/2,k.y+j,{align:"center",baseline:"top",maxWidth:k.width-j-j}):this.text(k.text,k.x+j,k.y+j,{align:"left",baseline:"top",maxWidth:k.width-j-j})),this.internal.__cell__.lastCell=k,this};g.table=function(k,O,j,H,Q){if(y.call(this),!j)throw new Error("No data for PDF table.");var N,G,K,M,L=[],re=[],be=[],Me={},Ge={},wt=[],Ne=[],pe=(Q=Q||{}).autoSize||!1,He=!1!==Q.printHeaders,st=Q.css&&void 0!==Q.css["font-size"]?16*Q.css["font-size"]:Q.fontSize||12,ee=Q.margins||Object.assign({width:this.getPageWidth()},m),te="number"==typeof Q.padding?Q.padding:3,ye=Q.headerBackgroundColor||"#c8c8c8",me=Q.headerTextColor||"#000";if(I.call(this),this.internal.__cell__.printHeaders=He,this.internal.__cell__.margins=ee,this.internal.__cell__.table_font_size=st,this.internal.__cell__.padding=te,this.internal.__cell__.headerBackgroundColor=ye,this.internal.__cell__.headerTextColor=me,this.setFontSize(st),null==H)re=L=Object.keys(j[0]),be=L.map(function(){return"left"});else if(Array.isArray(H)&&"object"===Gn(H[0]))for(L=H.map(function(ft){return ft.name}),re=H.map(function(ft){return ft.prompt||ft.name||""}),be=H.map(function(ft){return ft.align||"left"}),N=0;N<H.length;N+=1)Ge[H[N].name]=H[N].width*(19.049976/25.4);else Array.isArray(H)&&"string"==typeof H[0]&&(re=L=H,be=L.map(function(){return"left"}));if(pe||Array.isArray(H)&&"string"==typeof H[0])for(N=0;N<L.length;N+=1){for(Me[M=L[N]]=j.map(function(ft){return ft[M]}),this.setFont(void 0,"bold"),wt.push(this.getTextDimensions(re[N],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),G=Me[M],this.setFont(void 0,"normal"),K=0;K<G.length;K+=1)wt.push(this.getTextDimensions(G[K],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Ge[M]=Math.max.apply(null,wt)+te+te,wt=[]}if(He){var Ye={};for(N=0;N<L.length;N+=1)Ye[L[N]]={},Ye[L[N]].text=re[N],Ye[L[N]].align=be[N];var tt=E.call(this,Ye,Ge);Ne=L.map(function(ft){return new b(k,O,Ge[ft],tt,Ye[ft].text,void 0,Ye[ft].align)}),this.setTableHeaderRow(Ne),this.printHeaderRow(1,!1)}var rt=H.reduce(function(ft,$t){return ft[$t.name]=$t.align,ft},{});for(N=0;N<j.length;
vendor: 14,236 bytes, line 27
27N+=1){"rowStart"in Q&&Q.rowStart instanceof Function&&Q.rowStart({row:N,data:j[N]},this);var ze=E.call(this,j[N],Ge);for(K=0;K<L.length;K+=1){var lt=j[N][L[K]];"cellStart"in Q&&Q.cellStart instanceof Function&&Q.cellStart({row:N,col:K,data:lt},this),D.call(this,new b(k,O,Ge[L[K]],ze,lt,N+2,rt[L[K]]))}}return this.internal.__cell__.table_x=k,this.internal.__cell__.table_y=O,this};var E=function(k,O){var j=this.internal.__cell__.padding,H=this.internal.__cell__.table_font_size,Q=this.internal.scaleFactor;return Object.keys(k).map(function(N){var G=k[N];return this.splitTextToSize(G.hasOwnProperty("text")?G.text:G,O[N]-j-j)},this).map(function(N){return this.getLineHeightFactor()*N.length*H/Q+j+j},this).reduce(function(N,G){return Math.max(N,G)},0)};g.setTableHeaderRow=function(k){y.call(this),this.internal.__cell__.tableHeaderRow=k},g.printHeaderRow=function(k,O){if(y.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var j;if(p=!0,"function"==typeof this.internal.__cell__.headerFunction){var H=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new b(H[0],H[1],H[2],H[3],void 0,-1)}this.setFont(void 0,"bold");for(var Q=[],N=0;N<this.internal.__cell__.tableHeaderRow.length;N+=1){j=this.internal.__cell__.tableHeaderRow[N].clone(),O&&(j.y=this.internal.__cell__.margins.top||0,Q.push(j)),j.lineNumber=k;var G=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),D.call(this,j),this.setTextColor(G)}Q.length>0&&this.setTableHeaderRow(Q),this.setFont(void 0,"normal"),p=!1}}(xn.API);var a2={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},jo=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Xo=yo(jo),Yu=[100,200,300,400,500,600,700,800,900],Vd=yo(Yu);function Vc(g){var b,m=g.family.replace(/"|'/g,"").toLowerCase(),p=a2[b=(b=g.style)||"normal"]?b:"normal",y=function(b){return b?"number"==typeof b?b>=100&&b<=900&&b%100==0?b:400:/^\d00$/.test(b)?parseInt(b):"bold"===b?700:400:400}(g.weight),I=function(b){return"number"==typeof Xo[b=b||"normal"]?b:"normal"}(g.stretch);return{family:m,style:p,weight:y,stretch:I,src:g.src||[],ref:g.ref||{name:m,style:[I,p,y].join(" ")}}}function Ms(g,m,p,y){var I;for(I=p;I>=0&&I<m.length;I+=y)if(g[m[I]])return g[m[I]];for(I=p;I>=0&&I<m.length;I-=y)if(g[m[I]])return g[m[I]]}var l2={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},c2={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Gm(g){return[g.stretch,g.style,g.weight,g.family].join(" ")}function u2(g){return g.trimLeft()}function Pv(g,m){for(var p=0;p<g.length;){if(g.charAt(p)===m)return[g.substring(0,p),g.substring(p+1)];p+=1}return null}function Tv(g){var m=g.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===m?null:[m[0],g.substring(m[0].length)]}var s1,h2,m2,Wm=["times"];(function(g){var m,p,y,I,b,D,E,k,O,j=function(Z){return this.isStrokeTransparent=(Z=Z||{}).isStrokeTransparent||!1,this.strokeOpacity=Z.strokeOpacity||1,this.strokeStyle=Z.strokeStyle||"#000000",this.fillStyle=Z.fillStyle||"#000000",this.isFillTransparent=Z.isFillTransparent||!1,this.fillOpacity=Z.fillOpacity||1,this.font=Z.font||"10px sans-serif",this.textBaseline=Z.textBaseline||"alphabetic",this.textAlign=Z.textAlign||"left",this.lineWidth=Z.lineWidth||1,this.lineJoin=Z.lineJoin||"miter",this.lineCap=Z.lineCap||"butt",this.path=Z.path||[],this.transform=void 0!==Z.transform?Z.transform.clone():new k,this.globalCompositeOperation=Z.globalCompositeOperation||"normal",this.globalAlpha=Z.globalAlpha||1,this.clip_path=Z.clip_path||[],this.currentPoint=Z.currentPoint||new D,this.miterLimit=Z.miterLimit||10,this.lastPoint=Z.lastPoint||new D,this.lineDashOffset=Z.lineDashOffset||0,this.lineDash=Z.lineDash||[],this.margin=Z.margin||[0,0,0,0],this.prevPageLastElemOffset=Z.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof Z.ignoreClearRect||Z.ignoreClearRect,this};g.events.push(["initialized",function(){this.context2d=new H(this),m=this.internal.f2,p=this.internal.getCoordinateString,y=this.internal.getVerticalCoordinateString,I=this.internal.getHorizontalCoordinate,b=this.internal.getVerticalCoordinate,D=this.internal.Point,E=this.internal.Rectangle,k=this.internal.Matrix,O=new j}]);var H=function(Z){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var se=Z;Object.defineProperty(this,"pdf",{get:function(){return se}});var ue=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return ue},set:function(ot){ue=Boolean(ot)}});var _e=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return _e},set:function(ot){_e=Boolean(ot)}});var Ee=0;Object.defineProperty(this,"posX",{get:function(){return Ee},set:function(ot){isNaN(ot)||(Ee=ot)}});var $e=0;Object.defineProperty(this,"posY",{get:function(){return $e},set:function(ot){isNaN(ot)||($e=ot)}}),Object.defineProperty(this,"margin",{get:function(){return O.margin},set:function(ot){var le;"number"==typeof ot?le=[ot,ot,ot,ot]:((le=new Array(4))[0]=ot[0],le[1]=ot.length>=2?ot[1]:le[0],le[2]=ot.length>=3?ot[2]:le[0],le[3]=ot.length>=4?ot[3]:le[1]),O.margin=le}});var Ke=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Ke},set:function(ot){Ke=ot}});var et=0;Object.defineProperty(this,"lastBreak",{get:function(){return et},set:function(ot){et=ot}});var Rt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Rt},set:function(ot){Rt=ot}}),Object.defineProperty(this,"ctx",{get:function(){return O},set:function(ot){ot instanceof j&&(O=ot)}}),Object.defineProperty(this,"path",{get:function(){return O.path},set:function(ot){O.path=ot}});var kt=[];Object.defineProperty(this,"ctxStack",{get:function(){return kt},set:function(ot){kt=ot}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(ot){var le;le=Q(ot),this.ctx.fillStyle=le.style,this.ctx.isFillTransparent=0===le.a,this.ctx.fillOpacity=le.a,this.pdf.setFillColor(le.r,le.g,le.b,{a:le.a}),this.pdf.setTextColor(le.r,le.g,le.b,{a:le.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(ot){var le=Q(ot);this.ctx.strokeStyle=le.style,this.ctx.isStrokeTransparent=0===le.a,this.ctx.strokeOpacity=le.a,0===le.a?this.pdf.setDrawColor(255,255,255):this.pdf.setDrawColor(le.r,le.g,le.b)}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(ot){-1!==["butt","round","square"].indexOf(ot)&&(this.ctx.lineCap=ot,this.pdf.setLineCap(ot))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(ot){isNaN(ot)||(this.ctx.lineWidth=ot,this.pdf.setLineWidth(ot))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(ot){-1!==["bevel","round","miter"].indexOf(ot)&&(this.ctx.lineJoin=ot,this.pdf.setLineJoin(ot))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(ot){isNaN(ot)||(this.ctx.miterLimit=ot,this.pdf.setMiterLimit(ot))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(ot){this.ctx.textBaseline=ot}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(ot){-1!==["right","end","center","left","start"].indexOf(ot)&&(this.ctx.textAlign=ot)}});var Gt=null,mn=null;Object.defineProperty(this,"fontFaces",{get:function(){return mn},set:function(ot){Gt=null,mn=ot}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(ot){var le;if(this.ctx.font=ot,null!==(le=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(ot))){var we=le[1],pn=le[3],Pe=le[4],jt=le[6],Yt=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Pe)[2];Pe=Math.floor("px"===Yt?parseFloat(Pe)*this.pdf.internal.scaleFactor:"em"===Yt?parseFloat(Pe)*this.pdf.getFontSize():parseFloat(Pe)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Pe);var Ut=function(wn){var Jn,Kt,Fo=[],di=wn.trim();if(""===di)return Wm;if(di in c2)return[c2[di]];for(;""!==di;){switch(Kt=null,Jn=(di=u2(di)).charAt(0)){case'"':case"'":Kt=Pv(di.substring(1),Jn);break;default:Kt=Tv(di)}if(null===Kt||(Fo.push(Kt[0]),""!==(di=u2(Kt[1]))&&","!==di.charAt(0)))return Wm;di=di.replace(/^,/,"")}return Fo}(jt);if(this.fontFaces){var gn=function d2(g,m,p){for(var y=(p=p||{}).defaultFontFamily||"times",I=Object.assign({},l2,p.genericFontFamilies||{}),b=null,D=null,E=0;E<m.length;++E)if(I[(b=Vc(m[E])).family]&&(b.family=I[b.family]),g.hasOwnProperty(b.family)){D=g[b.family];break}if(!(D=D||g[y]))throw new Error("Could not find a font-family for the rule '"+Gm(b)+"' and default family '"+y+"'.");if(D=function(k,O){if(O[k])return O[k];var j=Xo[k],Q=Ms(O,jo,j,j<=Xo.normal?-1:1);if(!Q)throw new Error("Could not find a matching font-stretch value for "+k);return Q}(b.stretch,D),D=function(k,O){if(O[k])return O[k];for(var j=a2[k],H=0;H<j.length;++H)if(O[j[H]])return O[j[H]];throw new Error("Could not find a matching font-style for "+k)}(b.style,D),!(D=function(k,O){if(O[k])return O[k];if(400===k&&O[500])return O[500];if(500===k&&O[400])return O[400];var H=Ms(O,Yu,Vd[k],k<400?-1:1);if(!H)throw new Error("Could not find a matching font-weight for value "+k);return H}(b.weight,D)))throw new Error("Failed to resolve a font for the rule '"+Gm(b)+"'.");return D}(function Ht(ot,le){if(null===Gt){var we=(pn=ot.getFontList(),Pe=[],Object.keys(pn).forEach(function(jt){pn[jt].forEach(function(Yt){var Ut=null;switch(Yt){case"bold":Ut={family:jt,weight:"bold"};break;case"italic":Ut={family:jt,style:"italic"};break;case"bolditalic":Ut={family:jt,weight:"bold",style:"italic"};break;case"":case"normal":Ut={family:jt}}null!==Ut&&(Ut.ref={name:jt,style:Yt},Pe.push(Ut))})}),Pe);Gt=function(pn){for(var Pe={},jt=0;jt<pn.length;++jt){var Yt=Vc(pn[jt]),Ut=Yt.family,gn=Yt.stretch,An=Yt.style,Hn=Yt.weight;Pe[Ut]=Pe[Ut]||{},Pe[Ut][gn]=Pe[Ut][gn]||{},Pe[Ut][gn][An]=Pe[Ut][gn][An]||{},Pe[Ut][gn][An][Hn]=Yt}return Pe}(we.concat(le))}var pn,Pe;return Gt}(this.pdf,this.fontFaces),Ut.map(function(wn){return{family:wn,stretch:"normal",weight:pn,style:we}}));this.pdf.setFont(gn.ref.name,gn.ref.style)}else{var An="";("bold"===pn||parseInt(pn,10)>=700||"bold"===we)&&(An="bold"),"italic"===we&&(An+="italic"),0===An.length&&(An="normal");for(var Hn="",Zn={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},ci=0;ci<Ut.length;ci++){if(void 0!==this.pdf.internal.getFont(Ut[ci],An,{noFallback:!0,disableWarning:!0})){Hn=Ut[ci];break}if("bolditalic"===An&&void 0!==this.pdf.internal.getFont(Ut[ci],"bold",{noFallback:!0,disableWarning:!0}))Hn=Ut[ci],An="bold";else if(void 0!==this.pdf.internal.getFont(Ut[ci],"normal",{noFallback:!0,disableWarning:!0})){Hn=Ut[ci],An="normal";break}}if(""===Hn)for(var Bi=0;Bi<Ut.length;Bi++)if(Zn[Ut[Bi]]){Hn=Zn[Ut[Bi]];break}this.pdf.setFont(Hn=""===Hn?"Times":Hn,An)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(ot){this.ctx.globalCompositeOperation=ot}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(ot){this.ctx.globalAlpha=ot}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(ot){this.ctx.lineDashOffset=ot,$t.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(ot){this.ctx.lineDash=ot,$t.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(ot){this.ctx.ignoreClearRect=Boolean(ot)}})};H.prototype.setLineDash=function(Z){this.lineDash=Z},H.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},H.prototype.fill=function(){Me.call(this,"fill",!1)},H.prototype.stroke=function(){Me.call(this,"stroke",!1)},H.prototype.beginPath=function(){this.path=[{type:"begin"}]},H.prototype.moveTo=function(Z,se){if(isNaN(Z)||isNaN(se))throw bi.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var ue=this.ctx.transform.applyToPoint(new D(Z,se));this.path.push({type:"mt",x:ue.x,y:ue.y}),this.ctx.lastPoint=new D(Z,se)},H.prototype.closePath=function(){var Z=new D(0,0),se=0;for(se=this.path.length-1;-1!==se;se--)if("begin"===this.path[se].type&&"object"===Gn(this.path[se+1])&&"number"==typeof this.path[se+1].x){Z=new D(this.path[se+1].x,this.path[se+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new D(Z.x,Z.y)},H.prototype.lineTo=function(Z,se){if(isNaN(Z)||isNaN(se))throw bi.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var ue=this.ctx.transform.applyToPoint(new D(Z,se));this.path.push({type:"lt",x:ue.x,y:ue.y}),this.ctx.lastPoint=new D(ue.x,ue.y)},H.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),Me.call(this,null,!0)},H.prototype.quadraticCurveTo=function(Z,se,ue,_e){if(isNaN(ue)||isNaN(_e)||isNaN(Z)||isNaN(se))throw bi.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Ee=this.ctx.transform.applyToPoint(new D(ue,_e)),$e=this.ctx.transform.applyToPoint(new D(Z,se));
vendor: 5,111 bytes, line 27
27this.path.push({type:"qct",x1:$e.x,y1:$e.y,x:Ee.x,y:Ee.y}),this.ctx.lastPoint=new D(Ee.x,Ee.y)},H.prototype.bezierCurveTo=function(Z,se,ue,_e,Ee,$e){if(isNaN(Ee)||isNaN($e)||isNaN(Z)||isNaN(se)||isNaN(ue)||isNaN(_e))throw bi.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Ke=this.ctx.transform.applyToPoint(new D(Ee,$e)),et=this.ctx.transform.applyToPoint(new D(Z,se)),Rt=this.ctx.transform.applyToPoint(new D(ue,_e));this.path.push({type:"bct",x1:et.x,y1:et.y,x2:Rt.x,y2:Rt.y,x:Ke.x,y:Ke.y}),this.ctx.lastPoint=new D(Ke.x,Ke.y)},H.prototype.arc=function(Z,se,ue,_e,Ee,$e){if(isNaN(Z)||isNaN(se)||isNaN(ue)||isNaN(_e)||isNaN(Ee))throw bi.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if($e=Boolean($e),!this.ctx.transform.isIdentity){var Ke=this.ctx.transform.applyToPoint(new D(Z,se));Z=Ke.x,se=Ke.y;var et=this.ctx.transform.applyToPoint(new D(0,ue)),Rt=this.ctx.transform.applyToPoint(new D(0,0));ue=Math.sqrt(Math.pow(et.x-Rt.x,2)+Math.pow(et.y-Rt.y,2))}Math.abs(Ee-_e)>=2*Math.PI&&(_e=0,Ee=2*Math.PI),this.path.push({type:"arc",x:Z,y:se,radius:ue,startAngle:_e,endAngle:Ee,counterclockwise:$e})},H.prototype.arcTo=function(Z,se,ue,_e,Ee){throw new Error("arcTo not implemented.")},H.prototype.rect=function(Z,se,ue,_e){if(isNaN(Z)||isNaN(se)||isNaN(ue)||isNaN(_e))throw bi.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(Z,se),this.lineTo(Z+ue,se),this.lineTo(Z+ue,se+_e),this.lineTo(Z,se+_e),this.lineTo(Z,se),this.lineTo(Z+ue,se),this.lineTo(Z,se)},H.prototype.fillRect=function(Z,se,ue,_e){if(isNaN(Z)||isNaN(se)||isNaN(ue)||isNaN(_e))throw bi.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!N.call(this)){var Ee={};"butt"!==this.lineCap&&(Ee.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(Ee.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(Z,se,ue,_e),this.fill(),Ee.hasOwnProperty("lineCap")&&(this.lineCap=Ee.lineCap),Ee.hasOwnProperty("lineJoin")&&(this.lineJoin=Ee.lineJoin)}},H.prototype.strokeRect=function(Z,se,ue,_e){if(isNaN(Z)||isNaN(se)||isNaN(ue)||isNaN(_e))throw bi.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");G.call(this)||(this.beginPath(),this.rect(Z,se,ue,_e),this.stroke())},H.prototype.clearRect=function(Z,se,ue,_e){if(isNaN(Z)||isNaN(se)||isNaN(ue)||isNaN(_e))throw bi.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(Z,se,ue,_e))},H.prototype.save=function(Z){Z="boolean"!=typeof Z||Z;for(var se=this.pdf.internal.getCurrentPageInfo().pageNumber,ue=0;ue<this.pdf.internal.getNumberOfPages();ue++)this.pdf.setPage(ue+1),this.pdf.internal.out("q");if(this.pdf.setPage(se),Z){this.ctx.fontSize=this.pdf.internal.getFontSize();var _e=new j(this.ctx);this.ctxStack.push(this.ctx),this.ctx=_e}},H.prototype.restore=function(Z){Z="boolean"!=typeof Z||Z;for(var se=this.pdf.internal.getCurrentPageInfo().pageNumber,ue=0;ue<this.pdf.internal.getNumberOfPages();ue++)this.pdf.setPage(ue+1),this.pdf.internal.out("Q");this.pdf.setPage(se),Z&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},H.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var Q=function(Z){var se,ue,_e,Ee;if(!0===Z.isCanvasGradient&&(Z=Z.getColor()),!Z)return{r:0,g:0,b:0,a:0,style:Z};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(Z))se=0,ue=0,_e=0,Ee=0;else{var $e=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(Z);if(null!==$e)se=parseInt($e[1]),ue=parseInt($e[2]),_e=parseInt($e[3]),Ee=1;else if(null!==($e=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(Z)))se=parseInt($e[1]),ue=parseInt($e[2]),_e=parseInt($e[3]),Ee=parseFloat($e[4]);else{if(Ee=1,"string"==typeof Z&&"#"!==Z.charAt(0)){var Ke=new Hm(Z);Z=Ke.ok?Ke.toHex():"#000000"}4===Z.length?(se=Z.substring(1,2),se+=se,ue=Z.substring(2,3),ue+=ue,_e=Z.substring(3,4),_e+=_e):(se=Z.substring(1,3),ue=Z.substring(3,5),_e=Z.substring(5,7)),se=parseInt(se,16),ue=parseInt(ue,16),_e=parseInt(_e,16)}}return{r:se,g:ue,b:_e,a:Ee,style:Z}},N=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},G=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};H.prototype.fillText=function(Z,se,ue,_e){if(isNaN(se)||isNaN(ue)||"string"!=typeof Z)throw bi.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to
27jsPDF.context2d.fillText");if(_e=isNaN(_e)?void 0:_e,!N.call(this)){var Ee=ze(this.ctx.transform.rotation);te.call(this,{text:Z,x:se,y:ue,scale:this.ctx.transform.scaleX,angle:Ee,align:this.textAlign,maxWidth:_e})}},H.prototype.strokeText=function(Z,se,ue,_e){if(isNaN(se)||isNaN(ue)||"string"!=typeof Z)throw bi.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!G.call(this)){_e=isNaN(_e)?void 0:_e;var Ee=ze(this.ctx.transform.rotation);te.call(this,{text:Z,x:se,y:ue,scale:this.ctx.transform.scaleX,renderingMode:"stroke",angle:Ee,align:this.textAlign,maxWidth:_e})}},H.prototype.measureText=function(Z){if("string"!=typeof Z)throw bi.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var se=this.pdf,ue=this.pdf.internal.scaleFactor,_e=se.internal.getFontSize(),Ee=se.getStringUnitWidth(Z)*_e/se.internal.scaleFactor;return new function(Ke){var et=(Ke=Ke||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return et}}),this}({width:Ee*=Math.round(96*ue/72*1e4)/1e4})},H.prototype.scale=function(Z,se){if(isNaN(Z)||isNaN(se))throw bi.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var ue=new k(Z,0,0,se,0,0);this.ctx.transform=this.ctx.transform.multiply(ue)},H.prototype.rotate=function(Z){if(isNaN(Z))throw bi.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var se=new k(Math.cos(Z),Math.sin(Z),-Math.sin(Z),Math.cos(Z),0,0);this.ctx.transform=this.ctx.transform.multiply(se)},H.prototype.translate=function(Z,se){if(isNaN(Z)||isNaN(se))throw bi.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var ue=new k(1,0,0,1,Z,se);this.ctx.transform=this.ctx.transform.multiply(ue)},H.prototype.transform=function(Z,se,ue,_e,Ee,$e){if(isNaN(Z)||isNaN(se)||isNaN(ue)||isNaN(_e)||isNaN(Ee)||isNaN($e))throw bi.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Ke=new k(Z,se,ue,_e,Ee,$e);this.ctx.transform=this.ctx.transform.multiply(Ke)},H.prototype.setTransform=function(Z,se,ue,_e,Ee,$e){Z=isNaN(Z)?1:Z,se=isNaN(se)?0:se,ue=isNaN(ue)?0:ue,_e=isNaN(_e)?1:_e,Ee=isNaN(Ee)?0:Ee,$e=isNaN($e)?0:$e,this.ctx.transform=new k(Z,se,ue,_e,Ee,$e)};var K=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};H.prototype.drawImage=function(Z,se,ue,_e,Ee,$e,Ke,et,Rt){var kt=this.pdf.getImageProperties(Z),Gt=1,Ht=1,mn=1,ot=1;void 0!==_e&&void 0!==et&&(mn=et/_e,ot=Rt/Ee,Gt=kt.width/_e*et/_e,Ht=kt.height/Ee*Rt/Ee),void 0===$e&&($e=se,Ke=ue,se=0,ue=0),void 0!==_e&&void 0===et&&(et=_e,Rt=Ee),void 0===_e&&void 0===et&&(et=kt.width,Rt=kt.height);for(var le,we=this.ctx.transform.decompose(),pn=ze(we.rotate.shx),Pe=new k,jt=(Pe=(Pe=(Pe=Pe.multiply(we.translate)).multiply(we.skew)).multiply(we.scale)).applyToRectangle(new E($e-se*mn,Ke-ue*ot,_e*Gt,Ee*Ht)),Yt=M.call(this,jt),Ut=[],gn=0;gn<Yt.length;gn+=1)-1===Ut.indexOf(Yt[gn])&&Ut.push(Yt[gn]);if(be(Ut),this.autoPaging)for(var An=Ut[0],Hn=Ut[Ut.length-1],Zn=An;Zn<Hn+1;Zn++){this.pdf.setPage(Zn);var ci=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Bi=1===Zn?this.posY+this.margin[0]:this.margin[0],Jn=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Kt=1===Zn?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(Zn-2)*Jn;if(0!==this.ctx.clip_path.length){var Fo=this.path;le=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=re(le,this.posX+this.margin[3],-Kt+Bi+this.ctx.prevPageLastElemOffset),Ge.call(this,"fill",!0),this.path=Fo}var di=JSON.parse(JSON.stringify(jt));di=re([di],this.posX+this.margin[3],-Kt+Bi+this.ctx.prevPageLastElemOffset)[0];var Ia=(Zn>An||Zn<Hn)&&K.call(this);Ia&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ci,Jn,null).clip().discardPath()),this.pdf.addImage(Z,"JPEG",di.x,di.y,di.w,di.h,null,null,pn),Ia&&this.pdf.restoreGraphicsState()}
vendor: 96,605 bytes, lines 27-60
27else this.pdf.addImage(Z,"JPEG",jt.x,jt.y,jt.w,jt.h,null,null,pn)};var M=function(Z,se,ue){var _e=[];se=se||this.pdf.internal.pageSize.width,ue=ue||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Ee=this.posY+this.ctx.prevPageLastElemOffset;switch(Z.type){default:case"mt":case"lt":_e.push(Math.floor((Z.y+Ee)/ue)+1);break;case"arc":_e.push(Math.floor((Z.y+Ee-Z.radius)/ue)+1),_e.push(Math.floor((Z.y+Ee+Z.radius)/ue)+1);break;case"qct":var $e=lt(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Z.x1,Z.y1,Z.x,Z.y);_e.push(Math.floor(($e.y+Ee)/ue)+1),_e.push(Math.floor(($e.y+$e.h+Ee)/ue)+1);break;case"bct":var Ke=ft(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Z.x1,Z.y1,Z.x2,Z.y2,Z.x,Z.y);_e.push(Math.floor((Ke.y+Ee)/ue)+1),_e.push(Math.floor((Ke.y+Ke.h+Ee)/ue)+1);break;case"rect":_e.push(Math.floor((Z.y+Ee)/ue)+1),_e.push(Math.floor((Z.y+Z.h+Ee)/ue)+1)}for(var et=0;et<_e.length;et+=1)for(;this.pdf.internal.getNumberOfPages()<_e[et];)L.call(this);return _e},L=function(){var Z=this.fillStyle,se=this.strokeStyle,ue=this.font,_e=this.lineCap,Ee=this.lineWidth,$e=this.lineJoin;this.pdf.addPage(),this.fillStyle=Z,this.strokeStyle=se,this.font=ue,this.lineCap=_e,this.lineWidth=Ee,this.lineJoin=$e},re=function(Z,se,ue){for(var _e=0;_e<Z.length;_e++)switch(Z[_e].type){case"bct":Z[_e].x2+=se,Z[_e].y2+=ue;case"qct":Z[_e].x1+=se,Z[_e].y1+=ue;default:Z[_e].x+=se,Z[_e].y+=ue}return Z},be=function(Z){return Z.sort(function(se,ue){return se-ue})},Me=function(Z,se){for(var ue,_e,Ee=this.fillStyle,$e=this.strokeStyle,Ke=this.lineCap,et=this.lineWidth,Rt=Math.abs(et*this.ctx.transform.scaleX),kt=this.lineJoin,Gt=JSON.parse(JSON.stringify(this.path)),Ht=JSON.parse(JSON.stringify(this.path)),mn=[],ot=0;ot<Ht.length;ot++)if(void 0!==Ht[ot].x)for(var le=M.call(this,Ht[ot]),we=0;we<le.length;we+=1)-1===mn.indexOf(le[we])&&mn.push(le[we]);for(var pn=0;pn<mn.length;pn++)for(;this.pdf.internal.getNumberOfPages()<mn[pn];)L.call(this);if(be(mn),this.autoPaging)for(var Pe=mn[0],jt=mn[mn.length-1],Yt=Pe;Yt<jt+1;Yt++){this.pdf.setPage(Yt),this.fillStyle=Ee,this.strokeStyle=$e,this.lineCap=Ke,this.lineWidth=Rt,this.lineJoin=kt;var Ut=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],gn=1===Yt?this.posY+this.margin[0]:this.margin[0],Hn=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Zn=1===Yt?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(Yt-2)*Hn;if(0!==this.ctx.clip_path.length){var ci=this.path;ue=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=re(ue,this.posX+this.margin[3],-Zn+gn+this.ctx.prevPageLastElemOffset),Ge.call(this,Z,!0),this.path=ci}if(_e=JSON.parse(JSON.stringify(Gt)),this.path=re(_e,this.posX+this.margin[3],-Zn+gn+this.ctx.prevPageLastElemOffset),!1===se||0===Yt){var Bi=(Yt>Pe||Yt<jt)&&K.call(this);Bi&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ut,Hn,null).clip().discardPath()),Ge.call(this,Z,se),Bi&&this.pdf.restoreGraphicsState()}this.lineWidth=et}else this.lineWidth=Rt,Ge.call(this,Z,se),this.lineWidth=et;this.path=Gt},Ge=function(Z,se){if(("stroke"!==Z||se||!G.call(this))&&("stroke"===Z||se||!N.call(this))){for(var ue,_e,Ee=[],$e=this.path,Ke=0;Ke<$e.length;Ke++){var et=$e[Ke];switch(et.type){case"begin":Ee.push({begin:!0});break;case"close":Ee.push({close:!0});break;case"mt":Ee.push({start:et,deltas:[],abs:[]});break;case"lt":var Rt=Ee.length;if($e[Ke-1]&&!isNaN($e[Ke-1].x)&&(ue=[et.x-$e[Ke-1].x,et.y-$e[Ke-1].y],Rt>0))for(;Rt>=0;Rt--)if(!0!==Ee[Rt-1].close&&!0!==Ee[Rt-1].begin){Ee[Rt-1].deltas.push(ue),Ee[Rt-1].abs.push(et);break}break;case"bct":Ee[Ee.length-1].deltas.push(ue=[et.x1-$e[Ke-1].x,et.y1-$e[Ke-1].y,et.x2-$e[Ke-1].x,et.y2-$e[Ke-1].y,et.x-$e[Ke-1].x,et.y-$e[Ke-1].y]);break;case"qct":Ee[Ee.length-1].deltas.push(ue=[$e[Ke-1].x+2/3*(et.x1-$e[Ke-1].x)-$e[Ke-1].x,$e[Ke-1].y+2/3*(et.y1-$e[Ke-1].y)-$e[Ke-1].y,et.x+2/3*(et.x1-et.x)-$e[Ke-1].x,et.y+2/3*(et.y1-et.y)-$e[Ke-1].y,et.x-$e[Ke-1].x,et.y-$e[Ke-1].y]);break;case"arc":Ee.push({deltas:[],abs:[],arc:!0}),Array.isArray(Ee[Ee.length-1].abs)&&Ee[Ee.length-1].abs.push(et)}}_e=se?null:"stroke"===Z?"stroke":"fill";for(var we=!1,pn=0;pn<Ee.length;pn++)if(Ee[pn].arc)for(var Pe=Ee[pn].abs,jt=0;jt<Pe.length;jt++){var Yt=Pe[jt];"arc"===Yt.type?pe.call(this,Yt.x,Yt.y,Yt.radius,Yt.startAngle,Yt.endAngle,Yt.counterclockwise,void 0,se,!we):ye.call(this,Yt.x,Yt.y),we=!0}else!0===Ee[pn].close?(this.pdf.internal.out("h"),we=!1):!0!==Ee[pn].begin&&(me.call(this,Ee[pn].deltas,Ee[pn].start.x,Ee[pn].start.y),we=!0);_e&&He.call(this,_e),se&&st.call(this)}},wt=function(Z){var se=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,ue=se*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return Z-ue;case"top":return Z+se-ue;case"hanging":return Z+se-2*ue;case"middle":return Z+se/2-ue;default:return Z}},Ne=function(Z){return Z+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};H.prototype.createLinearGradient=function(){var Z=function(){};return Z.colorStops=[],Z.addColorStop=function(se,ue){this.colorStops.push([se,ue])},Z.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},Z.isCanvasGradient=!0,Z},H.prototype.createPattern=function(){return this.createLinearGradient()},H.prototype.createRadialGradient=function(){return this.createLinearGradient()};var pe=function(Z,se,ue,_e,Ee,$e,Ke,et,Rt){for(var kt=tt.call(this,ue,_e,Ee,$e),Gt=0;Gt<kt.length;Gt++){var Ht=kt[Gt];0===Gt&&(Rt?ee.call(this,Ht.x1+Z,Ht.y1+se):ye.call(this,Ht.x1+Z,Ht.y1+se)),Ye.call(this,Z,se,Ht.x2,Ht.y2,Ht.x3,Ht.y3,Ht.x4,Ht.y4)}et?st.call(this):He.call(this,Ke)},He=function(Z){switch(Z){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},st=function(){this.pdf.clip(),this.pdf.discardPath()},ee=function(Z,se){this.pdf.internal.out(p(Z)+" "+y(se)+" m")},te=function(Z){var se;switch(Z.align){case"right":case"end":se="right";break;case"center":se="center";break;default:se="left"}var ue=this.pdf.getTextDimensions(Z.text),_e=wt.call(this,Z.y),Ee=Ne.call(this,_e)-ue.h,$e=this.ctx.transform.applyToPoint(new D(Z.x,_e)),Ke=this.ctx.transform.decompose(),et=new k;et=(et=(et=et.multiply(Ke.translate)).multiply(Ke.skew)).multiply(Ke.scale);for(var Rt,kt,Gt,Ht=this.ctx.transform.applyToRectangle(new E(Z.x,_e,ue.w,ue.h)),mn=et.applyToRectangle(new E(Z.x,Ee,ue.w,ue.h)),ot=M.call(this,mn),le=[],we=0;we<ot.length;we+=1)-1===le.indexOf(ot[we])&&le.push(ot[we]);if(be(le),this.autoPaging)for(var pn=le[0],Pe=le[le.length-1],jt=pn;jt<Pe+1;jt++){this.pdf.setPage(jt);var Yt=1===jt?this.posY+this.margin[0]:this.margin[0],gn=this.pdf.internal.pageSize.height-this.margin[2],An=gn-this.margin[0],Hn=this.pdf.internal.pageSize.width-this.margin[1],Zn=Hn-this.margin[3],ci=1===jt?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(jt-2)*An;if(0!==this.ctx.clip_path.length){var Bi=this.path;Rt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=re(Rt,this.posX+this.margin[3],-1*ci+Yt),Ge.call(this,"fill",!0),this.path=Bi}var wn=re([JSON.parse(JSON.stringify(mn))],this.posX+this.margin[3],-ci+Yt+this.ctx.prevPageLastElemOffset)[0];Z.scale>=.01&&(kt=this.pdf.internal.getFontSize(),this.pdf.setFontSize(kt*Z.scale),this.lineWidth=(Gt=this.lineWidth)*Z.scale);var Jn="text"!==this.autoPaging;if(Jn||wn.y+wn.h<=gn){if(Jn||wn.y>=Yt&&wn.x<=Hn){var Kt=Jn?Z.text:this.pdf.splitTextToSize(Z.text,Z.maxWidth||Hn-wn.x)[0],Fo=re([JSON.parse(JSON.stringify(Ht))],this.posX+this.margin[3],-ci+Yt+this.ctx.prevPageLastElemOffset)[0],di=Jn&&(jt>pn||jt<Pe)&&K.call(this);di&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Zn,An,null).clip().discardPath()),this.pdf.text(Kt,Fo.x,Fo.y,{angle:Z.angle,align:se,renderingMode:Z.renderingMode}),di&&this.pdf.restoreGraphicsState()}}else wn.y<gn&&(this.ctx.prevPageLastElemOffset+=gn-wn.y);Z.scale>=.01&&(this.pdf.setFontSize(kt),this.lineWidth=Gt)}else Z.scale>=.01&&(kt=this.pdf.internal.getFontSize(),this.pdf.setFontSize(kt*Z.scale),this.lineWidth=(Gt=this.lineWidth)*Z.scale),this.pdf.text(Z.text,$e.x+this.posX,$e.y+this.posY,{angle:Z.angle,align:se,renderingMode:Z.renderingMode,maxWidth:Z.maxWidth}),Z.scale>=.01&&(this.pdf.setFontSize(kt),this.lineWidth=Gt)},ye=function(Z,se,ue,_e){_e=_e||0,this.pdf.internal.out(p(Z+(ue=ue||0))+" "+y(se+_e)+" l")},me=function(Z,se,ue){return this.pdf.lines(Z,se,ue,null,null)},Ye=function(Z,se,ue,_e,Ee,$e,Ke,et){this.pdf.internal.out([m(I(ue+Z)),m(b(_e+se)),m(I(Ee+Z)),m(b($e+se)),m(I(Ke+Z)),m(b(et+se)),"c"].join(" "))},tt=function(Z,se,ue,_e){for(var Ee=2*Math.PI,$e=Math.PI/2;se>ue;)se-=Ee;var Ke=Math.abs(ue-se);Ke<Ee&&_e&&(Ke=Ee-Ke);for(var et=[],Rt=_e?-1:1,kt=se;Ke>1e-5;){var Gt=kt+Rt*Math.min(Ke,$e);et.push(rt.call(this,Z,kt,Gt)),Ke-=Math.abs(Gt-kt),kt=Gt}return et},rt=function(Z,se,ue){var _e=(ue-se)/2,Ee=Z*Math.cos(_e),$e=Z*Math.sin(_e),Ke=Ee,et=-$e,Rt=Ke*Ke+et*et,kt=Rt+Ke*Ee+et*$e,Gt=4/3*(Math.sqrt(2*Rt*kt)-kt)/(Ke*$e-et*Ee),Ht=Ke-Gt*et,mn=et+Gt*Ke,ot=Ht,le=-mn,we=_e+se,pn=Math.cos(we),Pe=Math.sin(we);return{x1:Z*Math.cos(se),y1:Z*Math.sin(se),x2:Ht*pn-mn*Pe,y2:Ht*Pe+mn*pn,x3:ot*pn-le*Pe,y3:ot*Pe+le*pn,x4:Z*Math.cos(ue),y4:Z*Math.sin(ue)}},ze=function(Z){return 180*Z/Math.PI},lt=function(Z,se,ue,_e,Ee,$e){var Ke=Z+.5*(ue-Z),et=se+.5*(_e-se),Rt=Ee+.5*(ue-Ee),kt=$e+.5*(_e-$e),Gt=Math.min(Z,Ee,Ke,Rt),Ht=Math.max(Z,Ee,Ke,Rt),mn=Math.min(se,$e,et,kt),ot=Math.max(se,$e,et,kt);return new E(Gt,mn,Ht-Gt,ot-mn)},ft=function(Z,se,ue,_e,Ee,$e,Ke,et){var Rt,kt,Gt,Ht,mn,ot,le,we,pn,Pe,jt,Yt,Ut,gn,An=ue-Z,Hn=_e-se,Zn=Ee-ue,ci=$e-_e,Bi=Ke-Ee,wn=et-$e;for(kt=0;kt<41;kt++)pn=(le=(Gt=Z+(Rt=kt/40)*An)+Rt*((mn=ue+Rt*Zn)-Gt))+Rt*(mn+Rt*(Ee+Rt*Bi-mn)-le),Pe=(we=(Ht=se+Rt*Hn)+Rt*((ot=_e+Rt*ci)-Ht))+Rt*(ot+Rt*($e+Rt*wn-ot)-we),0==kt?(jt=pn,Yt=Pe,Ut=pn,gn=Pe):(jt=Math.min(jt,pn),Yt=Math.min(Yt,Pe),Ut=Math.max(Ut,pn),gn=Math.max(gn,Pe));return new E(Math.round(jt),Math.round(Yt),Math.round(Ut-jt),Math.round(gn-Yt))},$t=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var ue=JSON.stringify({lineDash:this.ctx.lineDash,lineDashOffset:this.ctx.lineDashOffset});this.prevLineDash!==ue&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=ue)}}})(xn.API), 28/** 29 * @license 30 * jsPDF filters PlugIn 31 * Copyright (c) 2014 Aras Abbasi 32 * 33 * Licensed under the MIT License. 34 * http://opensource.org/licenses/mit-license 35 */ 36function(g){var m=function(b){var D,E,k,O,j,H,Q,N,G,K;for(/[^\x00-\xFF]/.test(b),E=[],k=0,O=(b+=D="\0\0\0\0".slice(b.length%4||4)).length;O>k;k+=4)0!==(j=(b.charCodeAt(k)<<24)+(b.charCodeAt(k+1)<<16)+(b.charCodeAt(k+2)<<8)+b.charCodeAt(k+3))?(H=(j=((j=((j=((j=(j-(K=j%85))/85)-(G=j%85))/85)-(N=j%85))/85)-(Q=j%85))/85)%85,E.push(H+33,Q+33,N+33,G+33,K+33)):E.push(122);return function(M,L){for(var re=L;re>0;re--)M.pop()}(E,D.length),String.fromCharCode.apply(String,E)+"~>"},p=function(b){var D,E,k,O,j,H=String,Q="length",N=255,G="charCodeAt",K="slice",M="replace";for(b[K](-2),b=b[K](0,-2)[M](/\s/g,"")[M]("z","!!!!!"),k=[],O=0,j=(b+=D="uuuuu"[K](b[Q]%5||5))[Q];j>O;O+=5)E=52200625*(b[G](O)-33)+614125*(b[G](O+1)-33)+7225*(b[G](O+2)-33)+85*(b[G](O+3)-33)+(b[G](O+4)-33),k.push(N&E>>24,N&E>>16,N&E>>8,N&E);return function(L,re){for(var be=re;be>0;be--)L.pop()}(k,D[Q]),H.fromCharCode.apply(H,k)},y=function(b){var D=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(b=b.replace(/\s/g,"")).indexOf(">")&&(b=b.substr(0,b.indexOf(">"))),b.length%2&&(b+="0"),!1===D.test(b))return"";for(var E="",k=0;k<b.length;k+=2)E+=String.fromCharCode("0x"+(b[k]+b[k+1]));return E},I=function(b){for(var D=new Uint8Array(b.length),E=b.length;E--;)D[E]=b.charCodeAt(E);return(D=kd(D)).reduce(function(k,O){return k+String.fromCharCode(O)},"")};g.processDataByFilters=function(b,D){var E=0,k=b||"",O=[];for("string"==typeof(D=D||[])&&(D=[D]),E=0;E<D.length;E+=1)switch(D[E]){case"ASCII85Decode":case"/ASCII85Decode":k=p(k),O.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":k=m(k),O.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":k=y(k),O.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":k=k.split("").map(function(j){return("0"+j.charCodeAt().toString(16)).slice(-2)}).join("")+">",O.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":k=I(k),O.push("/FlateDecode");break;default:throw new Error('The filter: "'+D[E]+'" is not implemented')}return{data:k,reverseChain:O.reverse().join(" ")}}}(xn.API), 37/** 38 * @license 39 * jsPDF fileloading PlugIn 40 * Copyright (c) 2018 Aras Abbasi ([email protected]) 41 * 42 * Licensed under the MIT License. 43 * http://opensource.org/licenses/mit-license 44 */ 45function(g){g.loadFile=function(m,p,y){return function(I,b,D){b=!1!==b,D="function"==typeof D?D:function(){};var E=void 0;try{E=function(k,O,j){var H=new XMLHttpRequest,Q=0,N=function(G){var K=G.length,M=[],L=String.fromCharCode;for(Q=0;Q<K;Q+=1)M.push(L(255&G.charCodeAt(Q)));return M.join("")};if(H.open("GET",k,!O),H.overrideMimeType("text/plain; charset=x-user-defined"),!1===O&&(H.onload=function(){j(200===H.status?N(this.responseText):void 0)}),H.send(null),O&&200===H.status)return N(H.responseText)}(I,b,D)}catch{}return E}(m,p,y)},g.loadImageFile=g.loadFile}(xn.API),function(g){function m(){return(bn.html2canvas?Promise.resolve(bn.html2canvas):Wr.e(159).then(Wr.t.bind(Wr,4159,23))).catch(function(D){return Promise.reject(new Error("Could not load html2canvas: "+D))}).then(function(D){return D.default?D.default:D})}function p(){return(bn.DOMPurify?Promise.resolve(bn.DOMPurify):Wr.e(735).then(Wr.t.bind(Wr,2735,23))).catch(function(D){return Promise.reject(new Error("Could not load dompurify: "+D))}).then(function(D){return D.default?D.default:D})}var y=function(D){var E=Gn(D);return"undefined"===E?"undefined":"string"===E||D instanceof String?"string":"number"===E||D instanceof Number?"number":"function"===E||D instanceof Function?"function":D&&D.constructor===Array?"array":D&&1===D.nodeType?"element":"object"===E?"object":"unknown"},I=function(D,E){var k=document.createElement(D);for(var O in E.className&&(k.className=E.className),E.innerHTML&&E.dompurify&&(k.innerHTML=E.dompurify.sanitize(E.innerHTML)),E.style)k.style[O]=E.style[O];return k},b=function D(E){var k=Object.assign(D.convert(Promise.resolve()),JSON.parse(JSON.stringify(D.template))),O=D.convert(Promise.resolve(),k);return(O=O.setProgress(1,D,1,[D])).set(E)};(b.prototype=Object.create(Promise.prototype)).constructor=b,b.convert=function(D,E){return D.__proto__=E||b.prototype,D},b.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},b.prototype.from=function(D,E){return this.then(function(){switch(E=E||function(k){switch(y(k)){case"string":return"string";case"element":return"canvas"===k.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(D)){case"string":return this.then(p).then(function(k){return this.set({src:I("div",{innerHTML:D,dompurify:k})})});case"element":return this.set({src:D});case"canvas":return this.set({canvas:D});case"img":return this.set({img:D});default:return this.error("Unknown source type.")}})},b.prototype.to=function(D){switch(D){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},b.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var D={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},E=function k(O,j){for(var H=3===O.nodeType?document.createTextNode(O.nodeValue):O.cloneNode(!1),Q=O.firstChild;Q;Q=Q.nextSibling)!0!==j&&1===Q.nodeType&&"SCRIPT"===Q.nodeName||H.appendChild(k(Q,j));return 1===O.nodeType&&("CANVAS"===O.nodeName?(H.width=O.width,H.height=O.height,H.getContext("2d").drawImage(O,0,0)):"TEXTAREA"!==O.nodeName&&"SELECT"!==O.nodeName||(H.value=O.value),H.addEventListener("load",function(){H.scrollTop=O.scrollTop,H.scrollLeft=O.scrollLeft},!0)),H}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===E.tagName&&(D.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=I("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=I("div",{className:"html2pdf__container",style:D}),this.prop.container.appendChild(E),this.prop.container.firstChild.appendChild(I("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},b.prototype.toCanvas=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(m).then(function(E){var k=Object.assign({},this.opt.html2canvas);return delete k.onrendered,E(this.prop.container,k)}).then(function(E){(this.opt.html2canvas.onrendered||function(){})(E),this.prop.canvas=E,document.body.removeChild(this.prop.overlay)})},b.prototype.toContext2d=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(m).then(function(E){var k=this.opt.jsPDF,O=this.opt.fontFaces,j="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,H=Object.assign({async:!0,allowTaint:!0,scale:j,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete H.onrendered,k.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,k.context2d.posX=this.opt.x,k.context2d.posY=this.opt.y,k.context2d.margin=this.opt.margin,k.context2d.fontFaces=O,O)for(var Q=0;Q<O.length;++Q){var N=O[Q],G=N.src.find(function(K){return"truetype"===K.format});G&&k.addFont(G.url,N.ref.name,N.ref.style)}return H.windowHeight=H.windowHeight||0,H.windowHeight=0==H.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):H.windowHeight,k.context2d.save(!0),E(this.prop.container,H)}).then(function(E){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(E),this.prop.canvas=E,document.body.removeChild(this.prop.overlay)})},b.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var D=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=D})},b.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},b.prototype.output=function(D,E,k){return"img"===(k=k||"pdf").toLowerCase()||"image"===k.toLowerCase()?this.outputImg(D,E):this.outputPdf(D,E)},b.prototype.outputPdf=function(D,E){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(D,E)})},b.prototype.outputImg=function(D){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(D){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+D+'" is not supported.'}})},b.prototype.save=function(D){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(D?{filename:D}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},b.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},b.prototype.set=function(D){if("object"!==y(D))return this;var E=Object.keys(D||{}).map(function(k){if(k in b.template.prop)return function(){this.prop[k]=D[k]};switch(k){case"margin":return this.setMargin.bind(this,D.margin);case"jsPDF":return function(){return this.opt.jsPDF=D.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,D.pageSize);default:return function(){this.opt[k]=D[k]}}},this);return this.then(function(){return this.thenList(E)})},b.prototype.get=function(D,E){return this.then(function(){var k=D in b.template.prop?this.prop[D]:this.opt[D];return E?E(k):k})},b.prototype.setMargin=function(D){return this.then(function(){switch(y(D)){case"number":D=[D,D,D,D];case"array":if(2===D.length&&(D=[D[0],D[1],D[0],D[1]]),4===D.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=D}).then(this.setPageSize)},b.prototype.setPageSize=function(D){function E(k,O){return Math.floor(k*O/72*96)}return this.then(function(){(D=D||xn.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(D.inner={width:D.width-this.opt.margin[1]-this.opt.margin[3],height:D.height-this.opt.margin[0]-this.opt.margin[2]},D.inner.px={width:E(D.inner.width,D.k),height:E(D.inner.height,D.k)},D.inner.ratio=D.inner.height/D.inner.width),this.prop.pageSize=D})},b.prototype.setProgress=function(D,E,k,O){return null!=D&&(this.progress.val=D),null!=E&&(this.progress.state=E),null!=k&&(this.progress.n=k),null!=O&&(this.progress.stack=O),this.progress.ratio=this.progress.val/this.progress.state,this},b.prototype.updateProgress=function(D,E,k,O){return this.setProgress(D?this.progress.val+D:null,E||null,k?this.progress.n+k:null,O?this.progress.stack.concat(O):null)},b.prototype.then=function(D,E){var k=this;return this.thenCore(D,E,function(O,j){return k.updateProgress(null,null,1,[O]),Promise.prototype.then.call(this,function(H){return k.updateProgress(null,O),H}).then(O,j).then(function(H){return k.updateProgress(1),H})})},b.prototype.thenCore=function(D,E,k){k=k||Promise.prototype.then,D&&(D=D.bind(this)),E&&(E=E.bind(this));var O=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:b.convert(Object.assign({},this),Promise.prototype),j=k.call(O,D,E);return b.convert(j,this.__proto__)},b.prototype.thenExternal=function(D,E){return Promise.prototype.then.call(this,D,E)},b.prototype.thenList=function(D){var E=this;return D.forEach(function(k){E=E.thenCore(k)}),E},b.prototype.catch=function(D){D&&(D=D.bind(this));var E=Promise.prototype.catch.call(this,D);return b.convert(E,this)},b.prototype.catchExternal=function(D){return Promise.prototype.catch.call(this,D)},b.prototype.error=function(D){return this.then(function(){throw new Error(D)})},b.prototype.using=b.prototype.set,b.prototype.saveAs=b.prototype.save,b.prototype.export=b.prototype.output,b.prototype.run=b.prototype.then,xn.getPageSize=function(D,E,k){if("object"===Gn(D)){var O=D;D=O.orientation,E=O.unit||E,k=O.format||k}E=E||"mm",k=k||"a4",D=(""+(D||"P")).toLowerCase();var j,H=(""+k).toLowerCase(),Q={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(E){case"pt":j=1;break;case"mm":j=72/25.4;break;case"cm":j=72/2.54;break;case"in":j=72;break;case"px":j=.75;break;case"pc":case"em":j=12;break;case"ex":j=6;break;default:throw"Invalid unit: "+E}var N,G=0,K=0;if(Q.hasOwnProperty(H))G=Q[H][1]/j,K=Q[H][0]/j;else try{G=k[1],K=k[0]}catch{throw new Error("Invalid format: "+k)}if("p"===D||"portrait"===D)D="p",K>G&&(N=K,K=G,G=N);else{if("l"!==D&&"landscape"!==D)throw"Invalid orientation: "+D;D="l",G>K&&(N=K,K=G,G=N)}return{width:K,height:G,unit:E,k:j,orientation:D}},g.html=function(D,E){(E=E||{}).callback=E.callback||function(){},E.html2canvas=E.html2canvas||{},E.html2canvas.canvas=E.html2canvas.canvas||this.canvas,E.jsPDF=E.jsPDF||this,E.fontFaces=E.fontFaces?E.fontFaces.map(Vc):null;var k=new b(E);return E.worker?k:k.from(D).doCallback()}}(xn.API),xn.API.addJS=function(g){return m2=g,this.internal.events.subscribe("postPutResources",function(){s1=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(s1+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),h2=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+m2+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==s1&&void 0!==h2&&this.internal.out("/Names <</JavaScript "+s1+" 0 R>>")}),this}, 46/** 47 * @license 48 * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) [email protected] 49 * 50 * Licensed under the MIT License. 51 * http://opensource.org/licenses/mit-license 52 */ 53function(g){var m;g.events.push(["postPutResources",function(){var p=this,y=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var I=p.outline.render().split(/\r\n/),b=0;b<I.length;b++){var D=I[b],E=y.exec(D);null!=E&&p.internal.newObjectDeferredBegin(E[1],!1),p.internal.write(D)}if(this.outline.createNamedDestinations){var O=this.internal.pages.length,j=[];for(b=0;b<O;b++){var H=p.internal.newObject();j.push(H);var Q=p.internal.getPageInfo(b+1);p.internal.write("<< /D["+Q.objId+" 0 R /XYZ null null null]>> endobj")}var N=p.internal.newObject();for(p.internal.write("<< /Names [ "),b=0;b<j.length;b++)p.internal.write("(page_"+(b+1)+")"+j[b]+" 0 R");p.internal.write(" ] >>","endobj"),m=p.internal.newObject(),p.internal.write("<< /Dests "+N+" 0 R"),p.internal.write(">>","endobj")}}]),g.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+m+" 0 R"))}]),g.events.push(["initialized",function(){var p=this;p.outline={createNamedDestinations:!1,root:{children:[]}},p.outline.add=function(y,I,b){var D={title:I,options:b,children:[]};return null==y&&(y=this.root),y.children.push(D),D},p.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=p,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},p.outline.genIds_r=function(y){y.id=p.internal.newObjectDeferred();for(var I=0;I<y.children.length;I++)this.genIds_r(y.children[I])},p.outline.renderRoot=function(y){this.objStart(y),this.line("/Type /Outlines"),y.children.length>0&&(this.line("/First "+this.makeRef(y.children[0])),this.line("/Last "+this.makeRef(y.children[y.children.length-1]))),this.line("/Count "+this.count_r({count:0},y)),this.objEnd()},p.outline.renderItems=function(y){for(var I=this.ctx.pdf.internal.getVerticalCoordinateString,b=0;b<y.children.length;b++){var D=y.children[b];this.objStart(D),this.line("/Title "+this.makeString(D.title)),this.line("/Parent "+this.makeRef(y)),b>0&&this.line("/Prev "+this.makeRef(y.children[b-1])),b<y.children.length-1&&this.line("/Next "+this.makeRef(y.children[b+1])),D.children.length>0&&(this.line("/First "+this.makeRef(D.children[0])),this.line("/Last "+this.makeRef(D.children[D.children.length-1])));var E=this.count=this.count_r({count:0},D);if(E>0&&this.line("/Count "+E),D.options&&D.options.pageNumber){var k=p.internal.getPageInfo(D.options.pageNumber);this.line("/Dest ["+k.objId+" 0 R /XYZ 0 "+I(0)+" 0]")}this.objEnd()}for(var O=0;O<y.children.length;O++)this.renderItems(y.children[O])},p.outline.line=function(y){this.ctx.val+=y+"\r\n"},p.outline.makeRef=function(y){return y.id+" 0 R"},p.outline.makeString=function(y){return"("+p.internal.pdfEscape(y)+")"},p.outline.objStart=function(y){this.ctx.val+="\r\n"+y.id+" 0 obj\r\n<<\r\n"},p.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},p.outline.count_r=function(y,I){for(var b=0;b<I.children.length;b++)y.count++,this.count_r(y,I.children[b]);return y.count}}])}(xn.API), 54/** 55 * @license 56 * 57 * Licensed under the MIT License. 58 * http://opensource.org/licenses/mit-license 59 */ 60function(g){var m=[192,193,194,195,196,197,198,199];g.processJPEG=function(p,y,I,b,D,E){var k,O=this.decode.DCT_DECODE,j=null;if("string"==typeof p||this.__addimage__.isArrayBuffer(p)||this.__addimage__.isArrayBufferView(p)){switch(p=this.__addimage__.isArrayBuffer(p=D||p)?new Uint8Array(p):p,(k=function(H){for(var Q,N=256*H.charCodeAt(4)+H.charCodeAt(5),G=H.length,K={width:0,height:0,numcomponents:1},M=4;M<G;M+=2){if(-1!==m.indexOf(H.charCodeAt((M+=N)+1))){Q=256*H.charCodeAt(M+5)+H.charCodeAt(M+6),K={width:256*H.charCodeAt(M+7)+H.charCodeAt(M+8),height:Q,numcomponents:H.charCodeAt(M+9)};break}N=256*H.charCodeAt(M+2)+H.charCodeAt(M+3)}return K}(p=this.__addimage__.isArrayBufferView(p)?this.__addimage__.arrayBufferToBinaryString(p):p)).numcomponents){case 1:E=this.color_spaces.DEVICE_GRAY;break;case 4:E=this.color_spaces.DEVICE_CMYK;break;case 3:E=this.color_spaces.DEVICE_RGB}j={data:p,width:k.width,height:k.height,colorSpace:E,bitsPerComponent:8,filter:O,index:y,alias:I}}return j}}(xn.API);var Hd,a1,f2,p2,g2,Jm=function(){var g,m,p;function y(b){var D,k,O,j,H,Q,N,G,K,M,L,re,be;for(this.data=b,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},H=null;;){switch(D=this.readUInt32(),G=function(){var Me,Ge;for(Ge=[],Me=0;Me<4;++Me)Ge.push(String.fromCharCode(this.data[this.pos++]));return Ge}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(D);break;case"fcTL":H&&this.animation.frames.push(H),this.pos+=4,H={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},j=this.readUInt16(),O=this.readUInt16()||100,H.delay=1e3*j/O,H.disposeOp=this.data[this.pos++],H.blendOp=this.data[this.pos++],H.data=[];break;case"IDAT":case"fdAT":for("fdAT"===G&&(this.pos+=4,D-=4),b=H?.data||this.imgData,L=0;0<=D?L<D:L>D;0<=D?++L:--L)b.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(k=this.palette.length/3,this.transparency.indexed=this.read(D),this.transparency.indexed.length>k)throw new Error("More transparent colors than palette size");if((K=k-this.transparency.indexed.length)>0)for(re=0;0<=K?re<K:re>K;0<=K?++re:--re)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(D)[0];break;case 2:this.transparency.rgb=this.read(D)}break;case"tEXt":Q=(M=this.read(D)).indexOf(0),N=String.fromCharCode.apply(String,M.slice(0,Q)),this.text[N]=String.fromCharCode.apply(String,M.slice(Q+1));break;case"IEND":return H&&this.animation.frames.push(H),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(be=this.colorType)||6===be,this.pixelBitlength=this.bits*(this.colors+(this.hasAlphaChannel?1:0)),this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=D}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}y.prototype.read=function(b){var D,E;for(E=[],D=0;0<=b?D<b:D>b;0<=b?++D:--D)E.push(this.data[this.pos++]);return E},y.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},y.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},y.prototype.decodePixels=function(b){var D=this.pixelBitlength/8,E=new Uint8Array(this.width*this.height*D),k=0,O=this;if(null==b&&(b=this.imgData),0===b.length)return new Uint8Array(0);function j(H,Q,N,G){var K,M,L,re,be,Me,Ge,wt,pe,He,st,ee,te,ye,me,Ye,tt,rt,ze,lt,ft=Math.ceil((O.width-H)/N),$t=Math.ceil((O.height-Q)/G),Z=O.width==ft&&O.height==$t;for(te=D*ft,st=Z?E:new Uint8Array(te*$t),Me=b.length,ee=0,M=0;ee<$t&&k<Me;){switch(b[k++]){case 0:for(re=Ye=0;Ye<te;re=Ye+=1)st[M++]=b[k++];break;case 1:for(re=tt=0;tt<te;re=tt+=1)K=b[k++],be=re<D?0:st[M-D],st[M++]=(K+be)%256;break;case 2:for(re=rt=0;rt<te;re=rt+=1)K=b[k++],L=(re-re%D)/D,st[M++]=((ye=ee&&st[(ee-1)*te+L*D+re%D])+K)%256;break;case 3:for(re=ze=0;ze<te;re=ze+=1)K=b[k++],L=(re-re%D)/D,be=re<D?0:st[M-D],ye=ee&&st[(ee-1)*te+L*D+re%D],st[M++]=(K+Math.floor((be+ye)/2))%256;break;case 4:for(re=lt=0;lt<te;re=lt+=1)K=b[k++],L=(re-re%D)/D,0===ee?ye=me=0:(ye=st[(ee-1)*te+L*D+re%D],me=L&&st[(ee-1)*te+(L-1)*D+re%D]),Ge=(be=re<D?0:st[M-D])+ye-me,wt=Math.abs(Ge-be),pe=Math.abs(Ge-ye),He=Math.abs(Ge-me),st[M++]=(K+(wt<=pe&&wt<=He?be:pe<=He?ye:me))%256;break;default:throw new Error("Invalid filter algorithm: "+b[k-1])}if(!Z){var se=((Q+ee*G)*O.width+H)*D,ue=ee*te;for(re=0;re<ft;re+=1){for(var _e=0;_e<D;_e+=1)E[se++]=st[ue++];se+=(N-1)*D}}ee++}}return b=function n1(g,m){return tn(g.subarray(Ni(g,m&&m.dictionary),-4),{i:2},m&&m.out,m&&m.dictionary)}(b),1==O.interlaceMethod?(j(0,0,8,8),j(4,0,8,8),j(0,4,4,8),j(2,0,4,4),j(0,2,2,4),j(1,0,2,2),j(0,1,1,2)):j(0,0,1,1),E},y.prototype.decodePalette=function(){var b,D,E,k,O,j,H,Q,N;for(E=this.palette,j=this.transparency.indexed||[],O=new Uint8Array((j.length||0)+E.length),k=0,b=0,D=H=0,Q=E.length;H<Q;D=H+=3)O[k++]=E[D],O[k++]=E[D+1],O[k++]=E[D+2],O[k++]=null!=(N=j[b++])?N:255;return O},y.prototype.copyToImageData=function(b,D){var E,k,O,j,H,Q,N,G,K,M,L;if(k=this.colors,K=null,E=this.hasAlphaChannel,this.palette.length&&(K=null!=(L=this._decodedPalette)?L:this._decodedPalette=this.decodePalette(),k=4,E=!0),G=(O=b.data||b).length,H=K||D,j=Q=0,1===k)for(;j<G;)N=K?4*D[j/4]:Q,M=H[N++],O[j++]=M,O[j++]=M,O[j++]=M,O[j++]=E?H[N++]:255,Q=N;else for(;j<G;)N=K?4*D[j/4]:Q,O[j++]=H[N++],O[j++]=H[N++],O[j++]=H[N++],O[j++]=E?H[N++]:255,Q=N},y.prototype.decode=function(){var b;return b=new Uint8Array(this.width*this.height*4),this.copyToImageData(b,this.decodePixels()),b};var I=function(){if("[object Window]"===Object.prototype.toString.call(bn)){try{m=bn.document.createElement("canvas"),p=m.getContext("2d")}catch{return!1}return!0}return!1};return I(),g=function(b){var D;if(!0===I())return p.width=b.width,p.height=b.height,p.clearRect(0,0,b.width,b.height),p.putImageData(b,0,0),(D=new Image).src=m.toDataURL(),D;throw new Error("This method requires a Browser with Canvas-capability.")},y.prototype.decodeFrames=function(b){var D,E,k,O,j,H,Q,N;if(this.animation){for(N=[],E=j=0,H=(Q=this.animation.frames).length;j<H;E=++j)k=b.createImageData((D=Q[E]).width,D.height),O=this.decodePixels(new Uint8Array(D.data)),this.copyToImageData(k,O),D.imageData=k,N.push(D.image=g(k));return N}},y.prototype.renderFrame=function(b,D){var E,k,O;return E=(k=this.animation.frames)[D],O=k[D-1],0===D&&b.clearRect(0,0,this.width,this.height),1===O?.disposeOp?b.clearRect(O.xOffset,O.yOffset,O.width,O.height):2===O?.disposeOp&&b.putImageData(O.imageData,O.xOffset,O.yOffset),0===E.blendOp&&b.clearRect(E.xOffset,E.yOffset,E.width,E.height),b.drawImage(E.image,E.xOffset,E.yOffset)},y.prototype.animate=function(b){var D,E,k,O,j,H,Q=this;return E=0,O=(H=this.animation).numFrames,k=H.frames,j=H.numPlays,(D=function(){var N,G;if(N=E++%O,G=k[N],Q.renderFrame(b,N),O>1&&E/O<j)return Q.animation._timeout=setTimeout(D,G.delay)})()},y.prototype.stopAnimation=function(){var b;return clearTimeout(null!=(b=this.animation)?b._timeout:void 0)},y.prototype.render=function(b){var D,E;return b._png&&b._png.stopAnimation(),b._png=this,b.width=this.width,b.height=this.height,D=b.getContext("2d"),this.animation?(this.decodeFrames(D),this.animate(D)):(E=D.createImageData(this.width,this.height),this.copyToImageData(E,this.decodePixels()),D.putImageData(E,0,0))},y}();function Zm(g){var m=0;if(71!==g[m++]||73!==g[m++]||70!==g[m++]||56!==g[m++]||56!=(g[m++]+1&253)||97!==g[m++])throw new Error("Invalid GIF 87a/89a header.");var p=g[m++]|g[m++]<<8,y=g[m++]|g[m++]<<8,I=g[m++],D=1<<1+(7&I);m++,m++;var E=null,k=null;I>>7&&(E=m,k=D,m+=3*D);var O=!0,j=[],H=0,Q=null,N=0,G=null;for(this.width=p,this.height=y;O&&m<g.length;)switch(g[m++]){case 33:switch(g[m++]){case 255:if(11!==g[m]||78==g[m+1]&&69==g[m+2]&&84==g[m+3]&&83==g[m+4]&&67==g[m+5]&&65==g[m+6]&&80==g[m+7]&&69==g[m+8]&&50==g[m+9]&&46==g[m+10]&&48==g[m+11]&&3==g[m+12]&&1==g[m+13]&&0==g[m+16])m+=14,G=g[m++]|g[m++]<<8,m++;else for(m+=12;;){if(!((ee=g[m++])>=0))throw Error("Invalid block size");if(0===ee)break;m+=ee}break;case 249:if(4!==g[m++]||0!==g[m+4])throw new Error("Invalid graphics extension block.");var K=g[m++];H=g[m++]|g[m++]<<8,Q=g[m++],!(1&K)&&(Q=null),N=K>>2&7,m++;break;case 254:for(;;){if(!((ee=g[m++])>=0))throw Error("Invalid block size");if(0===ee)break;m+=ee}break;default:throw new Error("Unknown graphic control label: 0x"+g[m-1].toString(16))}break;case 44:var M=g[m++]|g[m++]<<8,L=g[m++]|g[m++]<<8,re=g[m++]|g[m++]<<8,be=g[m++]|g[m++]<<8,Me=g[m++],Ge=Me>>6&1,wt=1<<1+(7&Me),Ne=E,pe=k,He=!1;Me>>7&&(He=!0,Ne=m,pe=wt,m+=3*wt);var st=m;for(m++;;){var ee;if(!((ee=g[m++])>=0))throw Error("Invalid block size");if(0===ee)break;m+=ee}j.push({x:M,y:L,width:re,height:be,has_local_palette:He,palette_offset:Ne,palette_size:pe,data_offset:st,data_length:m-st,transparent_index:Q,interlaced:!!Ge,delay:H,disposal:N});break;case 59:O=!1;break;default:throw new Error("Unknown gif block: 0x"+g[m-1].toString(16))}this.numFrames=function(){return j.length},this.loopCount=function(){return G},this.frameInfo=function(te){if(te<0||te>=j.length)throw new Error("Frame index out of range.");return j[te]},this.decodeAndBlitFrameBGRA=function(te,ye){var me=this.frameInfo(te),Ye=me.width*me.height,tt=new Uint8Array(Ye);v2(g,me.data_offset,tt,Ye);var rt=me.palette_offset,ze=me.transparent_index;null===ze&&(ze=256);var lt=me.width,ft=p-lt,$t=lt,Z=4*(me.y*p+me.x),se=4*((me.y+me.height)*p+me.x),ue=Z,_e=4*ft;!0===me.interlaced&&(_e+=4*p*7);for(var Ee=8,$e=0,Ke=tt.length;$e<Ke;++$e){var et=tt[$e];if(0===$t&&($t=lt,(ue+=_e)>=se&&(_e=4*ft+4*p*(Ee-1),ue=Z+(lt+ft)*(Ee<<1),Ee>>=1)),et===ze)ue+=4;else{var Rt=g[rt+3*et],kt=g[rt+3*et+1];ye[ue++]=g[rt+3*et+2],ye[ue++]=kt,ye[ue++]=Rt,ye[ue++]=255}--$t}},this.decodeAndBlitFrameRGBA=function(te,ye){var me=this.frameInfo(te),Ye=me.width*me.height,tt=new Uint8Array(Ye);v2(g,me.data_offset,tt,Ye);var rt=me.palette_offset,ze=me.transparent_index;null===ze&&(ze=256);var lt=me.width,ft=p-lt,$t=lt,Z=4*(me.y*p+me.x),se=4*((me.y+me.height)*p+me.x),ue=Z,_e=4*ft;!0===me.interlaced&&(_e+=4*p*7);for(var Ee=8,$e=0,Ke=tt.length;$e<Ke;++$e){var et=tt[$e];if(0===$t&&($t=lt,(ue+=_e)>=se&&(_e=4*ft+4*p*(Ee-1),ue=Z+(lt+ft)*(Ee<<1),Ee>>=1)),et===ze)ue+=4;else{var kt=g[rt+3*et+1],Gt=g[rt+3*et+2];ye[ue++]=g[rt+3*et],ye[ue++]=kt,ye[ue++]=Gt,ye[ue++]=255}--$t}}}function v2(g,m,p,y){for(var I=g[m++],b=1<<I,D=b+1,E=D+1,k=I+1,O=(1<<k)-1,j=0,H=0,Q=0,N=g[m++],G=new Int32Array(4096),K=null;;){for(;j<16&&0!==N;)H|=g[m++]<<j,j+=8,1===N?N=g[m++]:--N;if(j<k)break;var M=H&O;if(H>>=k,j-=k,M!==b){if(M===D)break;for(var L=M<E?M:K,re=0,be=L;be>b;)be=G[be]>>8,++re;var Me=be;if(Q+re+(L!==M?1:0)>y)return void bi.log("Warning, gif stream longer than expected.");p[Q++]=Me;var Ge=Q+=re;for(L!==M&&(p[Q++]=Me),be=L;re--;)p[--Ge]=255&(be=G[be]),be>>=8;null!==K&&E<4096&&(G[E++]=K<<8|Me,E>=O+1&&k<12&&(++k,O=O<<1|1)),K=M}else E=D+1,O=(1<<(k=I+1))-1,K=null}return Q!==y&&bi.log("Warning, gif stream shorter than expected."),p}function Qm(g){var m,p,y,I,b,D=Math.floor,E=new Array(64),k=new Array(64),O=new Array(64),j=new Array(64),H=new Array(65535),Q=new Array(65535),N=new Array(64),G=new Array(64),K=[],M=0,L=7,re=new Array(64),be=new Array(64),Me=new Array(64),Ge=new Array(256),wt=new Array(2048),Ne=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],pe=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],He=[0,1,2,3,4,5,6,7,8,9,10,11],st=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],ee=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],te=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],ye=[0,1,2,3,4,5,6,7,8,9,10,11],me=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Ye=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function tt(Z,se){for(var ue=0,_e=0,Ee=new Array,$e=1;$e<=16;$e++){for(var Ke=1;Ke<=Z[$e];Ke++)Ee[se[_e]]=[],Ee[se[_e]][0]=ue,Ee[se[_e]][1]=$e,_e++,ue++;ue*=2}return Ee}function rt(Z){for(var se=Z[0],ue=Z[1]-1;ue>=0;)se&1<<ue&&(M|=1<<L),ue--,--L<0&&(255==M?(ze(255),ze(0)):ze(M),L=7,M=0)}function ze(Z){K.push(Z)}function lt(Z){ze(Z>>8&255),ze(255&Z)}function ft(Z,se,ue,_e,Ee){for(var $e,Ke=Ee[0],et=Ee[240],Rt=function(Pe,jt){var Yt,Ut,gn,An,Hn,Zn,ci,Bi,wn,Jn,Kt=0;for(wn=0;wn<8;++wn){var Fo=(Yt=Pe[Kt])+(Bi=Pe[Kt+7]),di=Yt-Bi,Ia=(Ut=Pe[Kt+1])+(ci=Pe[Kt+6]),$i=Ut-ci,tr=(gn=Pe[Kt+2])+(Zn=Pe[Kt+5]),Za=gn-Zn,Li=(An=Pe[Kt+3])+(Hn=Pe[Kt+4]),Qa=An-Hn,ar=Fo+Li,Ns=Fo-Li,ts=Ia+tr,lr=Ia-tr;Pe[Kt]=ar+ts,Pe[Kt+4]=ar-ts;var Bn=.707106781*(lr+Ns);Pe[Kt+2]=Ns+Bn,Pe[Kt+6]=Ns-Bn;var mi=.382683433*((ar=Qa+Za)-(lr=$i+di)),nc=.5411961*ar+mi,Nr=1.306562965*lr+mi,Os=.707106781*(ts=Za+$i),ns=di+Os,kn=di-Os;Pe[Kt+5]=kn+nc,Pe[Kt+3]=kn-nc,Pe[Kt+1]=ns+Nr,Pe[Kt+7]=ns-Nr,Kt+=8}for(Kt=0,wn=0;wn<8;++wn){var Rs=(Yt=Pe[Kt])+(Bi=Pe[Kt+56]),ea=Yt-Bi,Ho=(Ut=Pe[Kt+8])+(ci=Pe[Kt+48]),ji=Ut-ci,Or=(gn=Pe[Kt+16])+(Zn=Pe[Kt+40]),bo=gn-Zn,Sl=(An=Pe[Kt+24])+(Hn=Pe[Kt+32]),xa=An-Hn,is=Rs+Sl,rs=Rs-Sl,ta=Ho+Or,na=Ho-Or;Pe[Kt]=is+ta,Pe[Kt+32]=is-ta;var os=.707106781*(na+rs);Pe[Kt+16]=rs+os,Pe[Kt+48]=rs-os;var ia=.382683433*((is=xa+bo)-(na=ji+ea)),wl=.5411961*is+ia,zc=1.306562965*na+ia,Ya=.707106781*(ta=bo+ji),Bs=ea+Ya,qc=ea-Ya;Pe[Kt+40]=qc+wl,Pe[Kt+24]=qc-wl,Pe[Kt+8]=Bs+zc,Pe[Kt+56]=Bs-zc,Kt++}for(wn=0;wn<64;++wn)N[wn]=(Jn=Pe[wn]*jt[wn])>0?Jn+.5|0:Jn-.5|0;return N}(Z,se),kt=0;kt<64;++kt)G[Ne[kt]]=Rt[kt];var Gt=G[0]-ue;ue=G[0],0==Gt?rt(_e[0]):(rt(_e[Q[$e=32767+Gt]]),rt(H[$e]));for(var Ht=63;Ht>0&&0==G[Ht];)Ht--;if(0==Ht)return rt(Ke),ue;for(var mn,ot=1;ot<=Ht;){for(var le=ot;0==G[ot]&&ot<=Ht;)++ot;var we=ot-le;if(we>=16){mn=we>>4;for(var pn=1;pn<=mn;++pn)rt(et);we&=15}rt(Ee[(we<<4)+Q[$e=32767+G[ot]]]),rt(H[$e]),ot++}return 63!=Ht&&rt(Ke),ue}function $t(Z){Z=Math.min(Math.max(Z,1),100),b!=Z&&(function(se){for(var ue=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],_e=0;_e<64;_e++){var Ee=D((ue[_e]*se+50)/100);Ee=Math.min(Math.max(Ee,1),255),E[Ne[_e]]=Ee}for(var $e=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],Ke=0;Ke<64;Ke++){var et=D(($e[Ke]*se+50)/100);et=Math.min(Math.max(et,1),255),k[Ne[Ke]]=et}for(var Rt=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],kt=0,Gt=0;Gt<8;Gt++)for(var Ht=0;Ht<8;Ht++)O[kt]=1/(E[Ne[kt]]*Rt[Gt]*Rt[Ht]*8),j[kt]=1/(k[Ne[kt]]*Rt[Gt]*Rt[Ht]*8),kt++}(Z<50?Math.floor(5e3/Z):Math.floor(200-2*Z)),b=Z)}this.encode=function(Z,se){var Ut,gn;se&&$t(se),K=new Array,M=0,L=7,lt(65496),lt(65504),lt(16),ze(74),ze(70),ze(73),ze(70),ze(0),ze(1),ze(1),ze(0),lt(1),lt(1),ze(0),ze(0),function(){lt(65499),lt(132),ze(0);for(var Ut=0;Ut<64;Ut++)ze(E[Ut]);ze(1);for(var gn=0;gn<64;gn++)ze(k[gn])}(),Ut=Z.width,gn=Z.height,lt(65472),lt(17),ze(8),lt(gn),lt(Ut),ze(3),ze(1),ze(17),ze(0),ze(2),ze(17),ze(1),ze(3),ze(17),ze(1),function(){lt(65476),lt(418),ze(0);for(var Ut=0;Ut<16;Ut++)ze(pe[Ut+1]);for(var gn=0;gn<=11;gn++)ze(He[gn]);ze(16);for(var An=0;An<16;An++)ze(st[An+1]);for(var Hn=0;Hn<=161;Hn++)ze(ee[Hn]);ze(1);for(var Zn=0;Zn<16;Zn++)ze(te[Zn+1]);for(var ci=0;ci<=11;ci++)ze(ye[ci]);ze(17);for(var Bi=0;Bi<16;Bi++)ze(me[Bi+1]);for(var wn=0;wn<=161;wn++)ze(Ye[wn])}(),lt(65498),lt(12),ze(3),ze(1),ze(0),ze(2),ze(17),ze(3),ze(17),ze(0),ze(63),ze(0);var ue=0,_e=0,Ee=0;M=0,L=7,this.encode.displayName="_encode_";for(var $e,Ke,et,Rt,kt,Gt,Ht,mn,ot,le=Z.data,pn=Z.height,Pe=4*Z.width,jt=0;jt<pn;){for($e=0;$e<Pe;){for(kt=Pe*jt+$e,Ht=-1,mn=0,ot=0;ot<64;ot++)Gt=kt+(mn=ot>>3)*Pe+(Ht=4*(7&ot)),jt+mn>=pn&&(Gt-=Pe*(jt+1+mn-pn)),$e+Ht>=Pe&&(Gt-=$e+Ht-Pe+4),Ke=le[Gt++],et=le[Gt++],Rt=le[Gt++],re[ot]=(wt[Ke]+wt[et+256>>0]+wt[Rt+512>>0]>>16)-128,be[ot]=(wt[Ke+768>>0]+wt[et+1024>>0]+wt[Rt+1280>>0]>>16)-128,Me[ot]=(wt[Ke+1280>>0]+wt[et+1536>>0]+wt[Rt+1792>>0]>>16)-128;ue=ft(re,O,ue,m,y),_e=ft(be,j,_e,p,I),Ee=ft(Me,j,Ee,p,I),$e+=32}jt+=8}if(L>=0){var Yt=[];Yt[1]=L+1,Yt[0]=(1<<L+1)-1,rt(Yt)}return lt(65497),new Uint8Array(K)},g=g||50,function(){for(var Z=String.fromCharCode,se=0;se<256;se++)Ge[se]=Z(se)}(),m=tt(pe,He),p=tt(te,ye),y=tt(st,ee),I=tt(me,Ye),function(){for(var Z=1,se=2,ue=1;ue<=15;ue++){for(var _e=Z;_e<se;_e++)Q[32767+_e]=ue,H[32767+_e]=[],H[32767+_e][1]=ue,H[32767+_e][0]=_e;for(var Ee=-(se-1);Ee<=-Z;Ee++)Q[32767+Ee]=ue,H[32767+Ee]=[],H[32767+Ee][1]=ue,H[32767+Ee][0]=se-1+Ee;Z<<=1,se<<=1}}(),function(){for(var Z=0;Z<256;Z++)wt[Z]=19595*Z,wt[Z+256>>0]=38470*Z,wt[Z+512>>0]=7471*Z+32768,wt[Z+768>>0]=-11059*Z,wt[Z+1024>>0]=-21709*Z,wt[Z+1280>>0]=32768*Z+8421375,wt[Z+1536>>0]=-27439*Z,wt[Z+1792>>0]=-5329*Z}(),$t(g)}function Sa(g,m){if(this.pos=0,this.buffer=g,this.datav=new DataView(g.buffer),this.is_with_alpha=!!m,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function bl(g){function m(pe){if(!pe)throw Error("assert :P")}function p(pe,He,st){for(var ee=0;4>ee;ee++)if(pe[He+ee]!=st.charCodeAt(ee))return!0;return!1}function y(pe,He,st,ee,te){for(var ye=0;ye<te;ye++)pe[He+ye]=st[ee+ye]}function I(pe,He,st,ee){for(var te=0;te<ee;te++)pe[He+te]=st}function b(pe){return new Int32Array(pe)}function D(pe,He){for(var st=[],ee=0;ee<pe;ee++)st.push(new He);return st}function E(pe,He){var st=[];return function ee(te,ye,me){for(var Ye=me[ye],tt=0;tt<Ye&&(te.push(me.length>ye+1?[]:new He),!(me.length<ye+1));tt++)ee(te[tt],ye+1,me)}(st,0,pe),st}var k=function(){var pe=this;function He(f,S){for(var T=1<<S-1>>>0;f&T;)T>>>=1;return T?(f&T-1)+T:f}function st(f,S,T,A,z){m(!(A%T));do{f[S+(A-=T)]=z}while(0<A)}function ee(f,S,T,A,z){if(m(2328>=z),512>=z)var U=b(512);else if(null==(U=b(z)))return 0;return function(W,Y,X,ie,Ce,Ae){var Re,Te,yt=Y,Be=1<<X,ce=b(16),xe=b(16);for(m(0!=Ce),m(null!=ie),m(null!=W),m(0<X),Te=0;Te<Ce;++Te){if(15<ie[Te])return 0;++ce[ie[Te]]}if(ce[0]==Ce)return 0;for(xe[1]=0,Re=1;15>Re;++Re){if(ce[Re]>1<<Re)return 0;xe[Re+1]=xe[Re]+ce[Re]}for(Te=0;Te<Ce;++Te)Re=ie[Te],0<ie[Te]&&(Ae[xe[Re]++]=Te);if(1==xe[15])return(ie=new te).g=0,ie.value=Ae[0],st(W,yt,1,Be,ie),Be;var fe,Pt=-1,_t=Be-1,rn=0,Vt=1,In=1,zt=1<<X;for(Te=0,Re=1,Ce=2;Re<=X;++Re,Ce<<=1){if(Vt+=In<<=1,0>(In-=ce[Re]))return 0;for(;0<ce[Re];--ce[Re])(ie=new te).g=Re,ie.value=Ae[Te++],st(W,yt+rn,Ce,zt,ie),rn=He(rn,Re)}for(Re=X+1,Ce=2;15>=Re;++Re,Ce<<=1){if(Vt+=In<<=1,0>(In-=ce[Re]))return 0;for(;0<ce[Re];--ce[Re]){if(ie=new te,(rn&_t)!=Pt){for(yt+=zt,fe=1<<(Pt=Re)-X;15>Pt&&!(0>=(fe-=ce[Pt]));)++Pt,fe<<=1;Be+=zt=1<<(fe=Pt-X),W[Y+(Pt=rn&_t)].g=fe+X,W[Y+Pt].value=yt-Y-Pt}ie.g=Re-X,ie.value=Ae[Te++],st(W,yt+(rn>>X),Ce,zt,ie),rn=He(rn,Re)}}return Vt!=2*xe[15]-1?0:Be}(f,S,T,A,z,U)}function te(){this.value=this.g=0}function ye(){this.value=this.g=0}function me(){this.G=D(5,te),this.H=b(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=D(Si,ye)}function Ye(f,S,T,A){m(null!=f),m(null!=S),m(2147483648>A),f.Ca=254,f.I=0,f.b=-8,f.Ka=0,f.oa=S,f.pa=T,f.Jd=S,f.Yc=T+A,f.Zc=4<=A?T+A-4+1:T,$e(f)}function tt(f,S){for(var T=0;0<S--;)T|=et(f,128)<<S;return T}function rt(f,S){var T=tt(f,S);return Ke(f)?-T:T}function ze(f,S,T,A){var z,U=0;for(m(null!=f),m(null!=S),m(4294967288>A),f.Sb=A,f.Ra=0,f.u=0,f.h=0,4<A&&(A=4),z=0;z<A;++z)U+=S[T+z]<<8*z;f.Ra=U,f.bb=A,f.oa=S,f.pa=T}function lt(f){for(;8<=f.u&&f.bb<f.Sb;)f.Ra>>>=8,f.Ra+=f.oa[f.pa+f.bb]<<Al-8>>>0,++f.bb,f.u-=8;ue(f)&&(f.h=1,f.u=0)}function ft(f,S){if(m(0<=S),!f.h&&S<=mc){var T=se(f)&Fl[S];return f.u+=S,lt(f),T}return f.h=1,f.u=0}function $t(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function Z(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function se(f){return f.Ra>>>(f.u&Al-1)>>>0}function ue(f){return m(f.bb<=f.Sb),f.h||f.bb==f.Sb&&f.u>Al}function _e(f,S){f.u=S,f.h=ue(f)}function Ee(f){f.u>=Vr&&(m(f.u>=Vr),lt(f))}function $e(f){m(null!=f&&null!=f.oa),f.pa<f.Zc?(f.I=(f.oa[f.pa++]|f.I<<8)>>>0,f.b+=8):(m(null!=f&&null!=f.oa),f.pa<f.Yc?(f.b+=8,f.I=f.oa[f.pa++]|f.I<<8):f.Ka?f.b=0:(f.I<<=8,f.b+=8,f.Ka=1))}function Ke(f){return tt(f,1)}function et(f,S){var T=f.Ca;0>f.b&&$e(f);var A=f.b,z=T*S>>>8,U=(f.I>>>A>z)+0;for(U?(T-=z,f.I-=z+1<<A>>>0):T=z+1,A=T,z=0;256<=A;)z+=8,A>>=8;return f.b-=A=7^z+to[A],f.Ca=(T<<A)-1,U}function Rt(f,S,T){f[S+0]=T>>24&255,f[S+1]=T>>16&255,f[S+2]=T>>8&255,f[S+3]=T>>0&255}function kt(f,S){return f[S+0]<<0|f[S+1]<<8}function Gt(f,S){return kt(f,S)|f[S+2]<<16}function Ht(f,S){return kt(f,S)|kt(f,S+2)<<16}function mn(f,S){var T=1<<S;return m(null!=f),m(0<S),f.X=b(T),null==f.X?0:(f.Mb=32-S,f.Xa=S,1)}function ot(f,S){m(null!=f),m(null!=S),m(f.Xa==S.Xa),y(S.X,0,f.X,0,1<<S.Xa)}function le(){this.X=[],this.Xa=this.Mb=0}function we(f,S,T,A){m(null!=T),m(null!=A);var z=T[0],U=A[0];return 0==z&&(z=(f*U+S/2)/S),0==U&&(U=(S*z+f/2)/f),0>=z||0>=U?0:(T[0]=z,A[0]=U,1)}function pn(f,S){return f+(1<<S)-1>>>S}function Pe(f,S){return((4278255360&f)+(4278255360&S)>>>0&4278255360)+((16711935&f)+(16711935&S)>>>0&16711935)>>>0}function jt(f,S){pe[S]=function(T,A,z,U,W,Y,X){var ie;for(ie=0;ie<W;++ie){var Ce=pe[f](Y[X+ie-1],z,U+ie);Y[X+ie]=Pe(T[A+ie],Ce)}}}function Yt(){this.ud=this.hd=this.jd=0}function Ut(f,S){return((4278124286&(f^S))>>>1)+(f&S)>>>0}function gn(f){return 0<=f&&256>f?f:0>f?0:255<f?255:void 0}function An(f,S){return gn(f+(f-S+.5>>1))}function Hn(f,S,T){return Math.abs(S-T)-Math.abs(f-T)}function Zn(f,S,T,A,z,U,W){for(A=U[W-1],T=0;T<z;++T)U[W+T]=A=Pe(f[S+T],A)}function ci(f,S,T,A,z){var U;for(U=0;U<T;++U){var W=f[S+U],Y=W>>8&255,X=16711935&(X=(X=16711935&W)+((Y<<16)+Y));A[z+U]=(4278255360&W)+X>>>0}}function Bi(f,S){S.jd=f>>0&255,S.hd=f>>8&255,S.ud=f>>16&255}function wn(f,S,T,A,z,U){var W;for(W=0;W<A;++W){var Y=S[T+W],X=Y>>>8,ie=Y,Ce=255&(Ce=(Ce=Y>>>16)+((f.jd<<24>>24)*(X<<24>>24)>>>5));ie=255&(ie=(ie+=(f.hd<<24>>24)*(X<<24>>24)>>>5)+((f.ud<<24>>24)*(Ce<<24>>24)>>>5)),z[U+W]=(4278255360&Y)+(Ce<<16)+ie}}function Jn(f,S,T,A,z){pe[S]=function(U,W,Y,X,ie,Ce,Ae,Re,Te){for(X=Ae;X<Re;++X)for(Ae=0;Ae<Te;++Ae)ie[Ce++]=z(Y[A(U[W++])])},pe[f]=function(U,W,Y,X,ie,Ce,Ae){var Re=8>>U.b,Te=U.Ea,yt=U.K[0],Be=U.w;if(8>Re)for(U=(1<<U.b)-1,Be=(1<<Re)-1;W<Y;++W){var ce,xe=0;for(ce=0;ce<Te;++ce)ce&U||(xe=A(X[ie++])),Ce[Ae++]=z(yt[xe&Be]),xe>>=Re}else pe["VP8LMapColor"+T](X,ie,yt,Be,Ce,Ae,W,Y,Te)}}function Kt(f,S,T,A,z){for(T=S+T;S<T;){var U=f[S++];A[z++]=U>>16&255,A[z++]=U>>8&255,A[z++]=U>>0&255}}function Fo(f,S,T,A,z){for(T=S+T;S<T;){var U=f[S++];A[z++]=U>>16&255,A[z++]=U>>8&255,A[z++]=U>>0&255,A[z++]=U>>24&255}}function di(f,S,T,A,z){for(T=S+T;S<T;){var U=(W=f[S++])>>16&240|W>>12&15,W=W>>0&240|W>>28&15;A[z++]=U,A[z++]=W}}function Ia(f,S,T,A,z){for(T=S+T;S<T;){var U=(W=f[S++])>>16&248|W>>13&7,W=W>>5&224|W>>3&31;A[z++]=U,A[z++]=W}}function $i(f,S,T,A,z){for(T=S+T;S<T;){var U=f[S++];A[z++]=U>>0&255,A[z++]=U>>8&255,A[z++]=U>>16&255}}function tr(f,S,T,A,z,U){if(0==U)for(T=S+T;S<T;)Rt(A,((U=f[S++])[0]>>24|U[1]>>8&65280|U[2]<<8&16711680|U[3]<<24)>>>0),z+=32;else y(A,z,f,S,T)}function Za(f,S){pe[S][0]=pe[f+"0"],pe[S][1]=pe[f+"1"],pe[S][2]=pe[f+"2"],pe[S][3]=pe[f+"3"],pe[S][4]=pe[f+"4"],pe[S][5]=pe[f+"5"],pe[S][6]=pe[f+"6"],pe[S][7]=pe[f+"7"],pe[S][8]=pe[f+"8"],pe[S][9]=pe[f+"9"],pe[S][10]=pe[f+"10"],pe[S][11]=pe[f+"11"],pe[S][12]=pe[f+"12"],pe[S][13]=pe[f+"13"],pe[S][14]=pe[f+"0"],pe[S][15]=pe[f+"0"]}function Li(f){return f==dh||f==hu||f==ad||f==mu}function Qa(){this.eb=[],this.size=this.A=this.fb=0}function ar(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function Ns(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Qa,this.f.kb=new ar,this.sd=null}function ts(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function lr(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Bn(f){return alert("todo:WebPSamplerProcessPlane"),f.T}function mi(f,S){var T=f.T,A=S.ba.f.RGBA,z=A.eb,U=A.fb+f.ka*A.A,W=zs[S.ba.S],Y=f.y,X=f.O,ie=f.f,Ce=f.N,Ae=f.ea,Re=f.W,Te=S.cc,yt=S.dc,Be=S.Mc,ce=S.Nc,xe=f.ka,fe=f.ka+f.T,Pt=f.U,_t=Pt+1>>1;for(0==xe?W(Y,X,null,null,ie,Ce,Ae,Re,ie,Ce,Ae,Re,z,U,null,null,Pt):(W(S.ec,S.fc,Y,X,Te,yt,Be,ce,ie,Ce,Ae,Re,z,U-A.A,z,U,Pt),++T);xe+2<fe;xe+=2)W(Y,(X+=2*f.fa)-f.fa,Y,X,Te=ie,yt=Ce,Be=Ae,ce=Re,ie,Ce+=f.Rc,Ae,Re+=f.Rc,z,(U+=2*A.A)-A.A,z,U,Pt);return X+=f.fa,f.j+fe<f.o?(y(S.ec,S.fc,Y,X,Pt),y(S.cc,S.dc,ie,Ce,_t),y(S.Mc,S.Nc,Ae,Re,_t),T--):1&fe||W(Y,X,null,null,ie,Ce,Ae,Re,ie,Ce,Ae,Re,z,U+A.A,null,null,Pt),T}function nc(f,S,T){var A=f.F,z=[f.J];if(null!=A){var U=f.U,W=S.ba.S,Y=W==du||W==ad;S=S.ba.f.RGBA;var X=[0],ie=f.ka;X[0]=f.T,f.Kb&&(0==ie?--X[0]:(--ie,z[0]-=f.width),f.j+f.ka+f.T==f.o&&(X[0]=f.o-f.j-ie));var Ce=S.eb;f=Gi(A,z[0],f.width,U,X,Ce,(ie=S.fb+ie*S.A)+(Y?0:3),S.A),m(T==X),f&&Li(W)&&us(Ce,ie,Y,U,X,S.A)}return 0}function Nr(f){var S=f.ma,T=S.ba.S,A=11>T,z=T==cu||T==od||T==du||T==sd||12==T||Li(T);if(S.memory=null,S.Ib=null,S.Jb=null,S.Nd=null,!Kc(S.Oa,f,z?11:12))return 0;if(z&&Li(T)&&Et(),f.da)alert("todo:use_scaling");else{if(A){if(S.Ib=Bn,f.Kb){if(S.memory=b(f.U+2*(T=f.U+1>>1)),null==S.memory)return 0;S.ec=S.memory,S.fc=0,S.cc=S.ec,S.dc=S.fc+f.U,S.Mc=S.cc,S.Nc=S.dc+T,S.Ib=mi,Et()}}else alert("todo:EmitYUV");z&&(S.Jb=nc,A&&Fe())}if(A&&!gf){for(f=0;256>f;++f)N2[f]=89858*(f-128)+hh>>uh,mh[f]=-22014*(f-128)+hh,R2[f]=-45773*(f-128),O2[f]=113618*(f-128)+hh>>uh;for(f=gu;f<E1;++f)sl[f-gu]=ls(S=76283*(f-16)+hh>>uh,255),vu[f-gu]=ls(S+8>>4,15);gf=1}return 1}function Os(f){var S=f.ma,T=f.U,A=f.T;return m(!(1&f.ka)),0>=T||0>=A?0:(T=S.Ib(f,S),null!=S.Jb&&S.Jb(f,S,T),S.Dc+=T,1)}function ns(f){f.ma.memory=null}function kn(f,S,T,A){return 47!=ft(f,8)?0:(S[0]=ft(f,14)+1,T[0]=ft(f,14)+1,A[0]=ft(f,1),0!=ft(f,3)?0:!f.h)}function Rs(f,S){if(4>f)return f+1;var T=f-2>>1;return(2+(1&f)<<T)+ft(S,T)+1}function ea(f,S){return 120<S?S-120:1<=(T=((T=D2[S-1])>>4)*f+(8-(15&T)))?T:1;var T}function Ho(f,S,T){var A=se(T),z=f[S+=255&A].g-8;return 0<z&&(_e(T,T.u+8),A=se(T),S+=f[S].value,S+=A&(1<<z)-1),_e(T,T.u+f[S].g),f[S].value}function ji(f,S,T){return T.g+=f.g,T.value+=f.value<<S>>>0,m(8>=T.g),f.g}function Or(f,S,T){var A=f.xc;return m((S=0==A?0:f.vc[f.md*(T>>A)+(S>>A)])<f.Wb),f.Ya[S]}function bo(f,S,T,A){var z=f.ab,U=f.c*S,W=f.C;S=W+S;var Y=T,X=A;for(A=f.Ta,T=f.Ua;0<z--;){var ie=f.gc[z],Ce=W,Ae=S,Re=Y,Te=X,yt=(X=A,Y=T,ie.Ea);switch(m(Ce<Ae),m(Ae<=ie.nc),ie.hc){case 2:lh(Re,Te,(Ae-Ce)*yt,X,Y);break;case 0:var Be=Ce,ce=Ae,xe=X,fe=Y,Pt=(zt=ie).Ea;0==Be&&(ah(Re,Te,null,null,1,xe,fe),Zn(Re,Te+1,0,0,Pt-1,xe,fe+1),Te+=Pt,fe+=Pt,++Be);for(var _t=1<<zt.b,rn=_t-1,Vt=pn(Pt,zt.b),In=zt.K,zt=zt.w+(Be>>zt.b)*Vt;Be<ce;){var wi=In,Hi=zt,Kn=1;for(ed(Re,Te,xe,fe-Pt,1,xe,fe);Kn<Pt;){var Xn=(Kn&~rn)+_t;Xn>Pt&&(Xn=Pt),(0,nl[wi[Hi++]>>8&15])(Re,Te+ +Kn,xe,fe+Kn-Pt,Xn-Kn,xe,fe+Kn),Kn=Xn}Te+=Pt,fe+=Pt,++Be&rn||(zt+=Vt)}Ae!=ie.nc&&y(X,Y-yt,X,Y+(Ae-Ce-1)*yt,yt);break;case 1:for(yt=Re,ce=Te,Pt=(Re=ie.Ea)-(fe=Re&~(xe=(Te=1<<ie.b)-1)),Be=pn(Re,ie.b),_t=ie.K,ie=ie.w+(Ce>>ie.b)*Be;Ce<Ae;){for(rn=_t,Vt=ie,In=new Yt,zt=ce+fe,wi=ce+Re;ce<zt;)Bi(rn[Vt++],In),fc(In,yt,ce,Te,X,Y),ce+=Te,Y+=Te;ce<wi&&(Bi(rn[Vt++],In),fc(In,yt,ce,Pt,X,Y),ce+=Pt,Y+=Pt),++Ce&xe||(ie+=Be)}break;case 3:if(Re==X&&Te==Y&&0<ie.b){for(ce=X,Re=yt=Y+(Ae-Ce)*yt-(fe=(Ae-Ce)*pn(ie.Ea,ie.b)),Te=X,xe=Y,Be=[],fe=(Pt=fe)-1;0<=fe;--fe)Be[fe]=Te[xe+fe];for(fe=Pt-1;0<=fe;--fe)ce[Re+fe]=Be[fe];cs(ie,Ce,Ae,X,yt,X,Y)}else cs(ie,Ce,Ae,Re,Te,X,Y)}Y=A,X=T}X!=T&&y(A,T,Y,X,U)}function Sl(f,S){var T=f.V,A=f.Ba+f.c*f.C,z=S-f.C;if(m(S<=f.l.o),m(16>=z),0<z){var U=f.l,W=f.Ta,Y=f.Ua,X=U.width;if(bo(f,z,T,A),z=Y=[Y],m((T=f.C)<(A=S)),m(U.v<U.va),A>U.o&&(A=U.o),T<U.j){var ie=U.j-T;T=U.j,z[0]+=ie*X}if(T>=A?T=0:(z[0]+=4*U.v,U.ka=T-U.j,U.U=U.va-U.v,U.T=A-T,T=1),T){if(Y=Y[0],11>(T=f.ca).S){var Ce=T.f.RGBA,Ae=(A=T.S,z=U.U,U=U.T,ie=Ce.eb,Ce.A),Re=U;for(Ce=Ce.fb+f.Ma*Ce.A;0<Re--;){var Te=W,yt=Y,Be=z,ce=ie,xe=Ce;switch(A){case lu:zo(Te,yt,Be,ce,xe);break;case cu:fo(Te,yt,Be,ce,xe);break;case dh:fo(Te,yt,Be,ce,xe),us(ce,xe,0,Be,1,0);break;case x1:ds(Te,yt,Be,ce,xe);break;case od:tr(Te,yt,Be,ce,xe,1);break;case hu:tr(Te,yt,Be,ce,xe,1),us(ce,xe,0,Be,1,0);break;case du:tr(Te,yt,Be,ce,xe,0);break;case ad:tr(Te,yt,Be,ce,xe,0),us(ce,xe,1,Be,1,0);break;case sd:Ea(Te,yt,Be,ce,xe);break;case mu:Ea(Te,yt,Be,ce,xe),Vi(ce,xe,Be,1,0);break;case uu:il(Te,yt,Be,ce,xe);break;default:m(0)}Y+=X,Ce+=Ae}f.Ma+=U}else alert("todo:EmitRescaledRowsYUVA");m(f.Ma<=T.height)}}f.C=S,m(f.C<=f.i)}function xa(f){var S;if(0<f.ua)return 0;for(S=0;S<f.Wb;++S){var T=f.Ya[S].G,A=f.Ya[S].H;if(0<T[1][A[1]+0].g||0<T[2][A[2]+0].g||0<T[3][A[3]+0].g)return 0}return 1}function is(f,S,T,A,z,U){if(0!=f.Z){var W=f.qd,Y=f.rd;for(m(null!=$o[f.Z]);S<T;++S)$o[f.Z](W,Y,A,z,A,z,U),W=A,Y=z,z+=U;f.qd=W,f.rd=Y}}function rs(f,S){var T=f.l.ma,A=0==T.Z||1==T.Z?f.l.j:f.C;if(A=f.C<A?A:f.C,m(S<=f.l.o),S>A){var z=f.l.width,U=T.ca,W=T.tb+z*A,Y=f.V,X=f.Ba+f.c*A,ie=f.gc;m(1==f.ab),m(3==ie[0].hc),ru(ie[0],A,S,Y,X,U,W),is(T,A,S,U,W,z)}f.C=f.Ma=S}function ta(f,S,T,A,z,U,W){var Y=f.$/A,X=f.$%A,ie=f.m,Ce=f.s,Ae=T+f.$,Re=Ae;z=T+A*z;var Te=T+A*U,yt=280+Ce.ua,Be=f.Pb?Y:16777216,ce=0<Ce.ua?Ce.Wa:null,xe=Ce.wc,fe=Ae<Te?Or(Ce,X,Y):null;m(f.C<U),m(Te<=z);var Pt=!1;e:for(;;){for(;Pt||Ae<Te;){var _t=0;if(Y>=Be){var rn=Ae-T;m((Be=f).Pb),Be.wd=Be.m,Be.xd=rn,0<Be.s.ua&&ot(Be.s.Wa,Be.s.vb),Be=Y+cf}if(X&xe||(fe=Or(Ce,X,Y)),m(null!=fe),fe.Qb&&(S[Ae]=fe.qb,Pt=!0),!Pt)if(Ee(ie),fe.jc){rn=S;var Vt=Ae,In=fe.pd[se(_t=ie)&Si-1];m(fe.jc),256>In.g?(_e(_t,_t.u+In.g),rn[Vt]=In.value,_t=0):(_e(_t,_t.u+In.g-256),m(256<=In.value),_t=In.value),0==_t&&(Pt=!0)}else _t=Ho(fe.G[0],fe.H[0],ie);if(ie.h)break;if(Pt||256>_t){if(!Pt)if(fe.nd)S[Ae]=(fe.qb|_t<<8)>>>0;else{if(Ee(ie),Pt=Ho(fe.G[1],fe.H[1],ie),Ee(ie),rn=Ho(fe.G[2],fe.H[2],ie),Vt=Ho(fe.G[3],fe.H[3],ie),ie.h)break;S[Ae]=(Vt<<24|Pt<<16|_t<<8|rn)>>>0}if(Pt=!1,++Ae,++X>=A&&(X=0,++Y,null!=W&&Y<=U&&!(Y%16)&&W(f,Y),null!=ce))for(;Re<Ae;)_t=S[Re++],ce.X[(506832829*_t&4294967295)>>>ce.Mb]=_t}else if(280>_t){if(_t=Rs(_t-256,ie),rn=Ho(fe.G[4],fe.H[4],ie),Ee(ie),rn=ea(A,rn=Rs(rn,ie)),ie.h)break;if(Ae-T<rn||z-Ae<_t)break e;for(Vt=0;Vt<_t;++Vt)S[Ae+Vt]=S[Ae+Vt-rn];for(Ae+=_t,X+=_t;X>=A;)X-=A,++Y,null!=W&&Y<=U&&!(Y%16)&&W(f,Y);if(m(Ae<=z),X&xe&&(fe=Or(Ce,X,Y)),null!=ce)for(;Re<Ae;)_t=S[Re++],ce.X[(506832829*_t&4294967295)>>>ce.Mb]=_t}else{if(!(_t<yt))break e;for(Pt=_t-280,m(null!=ce);Re<Ae;)_t=S[Re++],ce.X[(506832829*_t&4294967295)>>>ce.Mb]=_t;_t=Ae,m(!(Pt>>>(rn=ce).Xa)),S[_t]=rn.X[Pt],Pt=!0}Pt||m(ie.h==ue(ie))}if(f.Pb&&ie.h&&Ae<z)m(f.m.h),f.a=5,f.m=f.wd,f.$=f.xd,0<f.s.ua&&ot(f.s.vb,f.s.Wa);else{if(ie.h)break e;W?.(f,Y>U?U:Y),f.a=0,f.$=Ae-T}return 1}return f.a=3,0}function na(f){m(null!=f),f.vc=null,f.yc=null,f.Ya=null;var S=f.Wa;null!=S&&(S.X=null),f.vb=null,m(null!=f)}function os(){var f=new oh;return null==f?null:(f.a=0,f.xb=T1,Za("Predictor","VP8LPredictors"),Za("Predictor","VP8LPredictors_C"),Za("PredictorAdd","VP8LPredictorsAdd"),Za("PredictorAdd","VP8LPredictorsAdd_C"),lh=ci,fc=wn,zo=Kt,fo=Fo,Ea=di,il=Ia,ds=$i,pe.VP8LMapColor32b=td,pe.VP8LMapColor8b=ch,f)}function ia(f,S,T,A,z){var U=1,W=[f],Y=[S],X=A.m,ie=A.s,Ce=null,Ae=0;e:for(;;){if(T)for(;U&&ft(X,1);){var Re=W,Te=Y,yt=A,Be=1,ce=yt.m,xe=yt.gc[yt.ab],fe=ft(ce,2);if(yt.Oc&1<<fe)U=0;else{switch(yt.Oc|=1<<fe,xe.hc=fe,xe.Ea=Re[0],xe.nc=Te[0],xe.K=[null],++yt.ab,m(4>=yt.ab),fe){case 0:case 1:xe.b=ft(ce,3)+2,Be=ia(pn(xe.Ea,xe.b),pn(xe.nc,xe.b),0,yt,xe.K),xe.K=xe.K[0];break;case 3:var Pt,_t=ft(ce,8)+1,rn=16<_t?0:4<_t?1:2<_t?2:3;if(Re[0]=pn(xe.Ea,rn),xe.b=rn,Pt=Be=ia(_t,1,0,yt,xe.K)){var Vt,In=_t,zt=xe,wi=1<<(8>>zt.b),Hi=b(wi);if(null==Hi)Pt=0;else{var Kn=zt.K[0],Xn=zt.w;for(Hi[0]=zt.K[0][0],Vt=1;Vt<1*In;++Vt)Hi[Vt]=Pe(Kn[Xn+Vt],Hi[Vt-1]);for(;Vt<4*wi;++Vt)Hi[Vt]=0;zt.K[0]=null,zt.K[0]=Hi,Pt=1}}Be=Pt;break;case 2:break;default:m(0)}U=Be}}if(W=W[0],Y=Y[0],U&&ft(X,1)&&!(U=1<=(Ae=ft(X,4))&&11>=Ae)){A.a=3;break e}var zi;if(zi=U)t:{var Mi,$n,zr,Go=A,Lr=W,No=Y,vi=Ae,qs=T,Oo=Go.m,no=Go.s,Zr=[null],xo=1,ms=0,Do=lf[vi];n:for(;;){if(qs&&ft(Oo,1)){var io=ft(Oo,3)+2,da=pn(Lr,io),Fa=pn(No,io),cd=da*Fa;if(!ia(da,Fa,0,Go,Zr))break n;for(Zr=Zr[0],no.xc=io,Mi=0;Mi<cd;++Mi){var Aa=Zr[Mi]>>8&65535;Zr[Mi]=Aa,Aa>=xo&&(xo=Aa+1)}}if(Oo.h)break n;for($n=0;5>$n;++$n){var Yi=D1[$n];!$n&&0<vi&&(Yi+=1<<vi),ms<Yi&&(ms=Yi)}var al=D(xo*Do,te),k1=xo,fh=D(k1,me);if(null==fh)var ph=null;else m(65536>=k1),ph=fh;var Cu=b(ms);if(null==ph||null==Cu||null==al){Go.a=1;break n}var yu=al;for(Mi=zr=0;Mi<xo;++Mi){var Po=ph[Mi],dd=Po.G,ud=Po.H,_f=0,hd=1,Cf=0;for($n=0;5>$n;++$n){Yi=D1[$n],dd[$n]=yu,ud[$n]=zr,!$n&&0<vi&&(Yi+=1<<vi);r:{var bu,M1=Yi,Su=Go,gh=Cu,j2=yu,md=zr,F1=0,fs=Su.m,To=ft(fs,1);if(I(gh,0,0,M1),To){var V2=ft(fs,1)+1,yf=ft(fs,1),ps=ft(fs,0==yf?1:8);gh[ps]=1,2==V2&&(gh[ps=ft(fs,8)]=1);var vh=1}else{var bf=b(19),fd=ft(fs,4)+4;if(19<fd){Su.a=3;var _h=0;break r}for(bu=0;bu<fd;++bu)bf[x2[bu]]=ft(fs,3);var wu=void 0,yc=void 0,Sf=Su,A1=bf,ll=M1,wf=gh,N1=0,Bl=Sf.m,If=8,Ch=D(128,te);i:for(;ee(Ch,0,7,A1,19);){if(ft(Bl,1)){var H2=2+2*ft(Bl,3);if((wu=2+ft(Bl,H2))>ll)break i}else wu=ll;for(yc=0;yc<ll&&wu--;){Ee(Bl);var xf=Ch[0+(127&se(Bl))];_e(Bl,Bl.u+xf.g);var ua=xf.value;if(16>ua)wf[yc++]=ua,0!=ua&&(If=ua);else{var cl=16==ua,Df=ua-16,z2=w2[Df],q2=ft(Bl,fu[Df])+z2;if(yc+q2>ll)break i;for(var Lv=cl?If:0;0<q2--;)wf[yc++]=Lv}}N1=1;break i}N1||(Sf.a=3),vh=N1}(vh=vh&&!fs.h)&&(F1=ee(j2,md,8,gh,M1)),vh&&0!=F1?_h=F1:(Su.a=3,_h=0)}if(0==_h)break n;if(hd&&1==I2[$n]&&(hd=0==yu[zr].g),_f+=yu[zr].g,zr+=_h,3>=$n){var pd,Pf=Cu[0];for(pd=1;pd<Yi;++pd)Cu[pd]>Pf&&(Pf=Cu[pd]);Cf+=Pf}}if(Po.nd=hd,Po.Qb=0,hd&&(Po.qb=(dd[3][ud[3]+0].value<<24|dd[1][ud[1]+0].value<<16|dd[2][ud[2]+0].value)>>>0,0==_f&&256>dd[0][ud[0]+0].value&&(Po.Qb=1,Po.qb+=dd[0][ud[0]+0].value<<8)),Po.jc=!Po.Qb&&6>Cf,Po.jc){var Iu,Na=Po;for(Iu=0;Iu<Si;++Iu){var jl=Iu,dl=Na.pd[jl],yh=Na.G[0][Na.H[0]+jl];256<=yh.value?(dl.g=yh.g+256,dl.value=yh.value):(dl.g=0,dl.value=0,jl>>=ji(yh,8,dl),jl>>=ji(Na.G[1][Na.H[1]+jl],16,dl),jl>>=ji(Na.G[2][Na.H[2]+jl],0,dl),ji(Na.G[3][Na.H[3]+jl],24,dl))}}}no.vc=Zr,no.Wb=xo,no.Ya=ph,no.yc=al,zi=1;break t}zi=0}if(!(U=zi)){A.a=3;break e}if(0<Ae){if(ie.ua=1<<Ae,!mn(ie.Wa,Ae)){A.a=1,U=0;break e}}else ie.ua=0;var O1=A,$s=W,$2=Y,bh=O1.s,R1=bh.xc;if(O1.c=$s,O1.i=$2,bh.md=pn($s,R1),bh.wc=0==R1?-1:(1<<R1)-1,T){A.xb=uf;break e}if(null==(Ce=b(W*Y))){A.a=1,U=0;break e}U=(U=ta(A,Ce,0,W,Y,Y,null))&&!X.h;break e}return U?(null!=z?z[0]=Ce:(m(null==Ce),m(T)),A.$=0,T||na(ie)):na(ie),U}function wl(f,S){var T=f.c*f.i,A=T+S+16*S;return m(f.c<=S),f.V=b(A),null==f.V?(f.Ta=null,f.Ua=0,f.a=1,0):(f.Ta=f.V,f.Ua=f.Ba+T+S,1)}function zc(f,S){var T=f.C,A=S-T,z=f.V,U=f.Ba+f.c*T;for(m(S<=f.l.o);0<A;){var W=16<A?16:A,Y=f.l.ma,X=f.l.width,ie=X*W,Ce=Y.ca,Ae=Y.tb+X*T,Re=f.Ta,Te=f.Ua;bo(f,W,z,U),Er(Re,Te,Ce,Ae,ie),is(Y,T,T+W,Ce,Ae,X),A-=W,z+=W*f.c,T+=W}m(T==S),f.C=f.Ma=S}function Ya(){this.ub=this.yd=this.td=this.Rb=0}function Bs(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function qc(){this.Fb=this.Bb=this.Cb=0,this.Zb=b(4),this.Lb=b(4)}function qd(){var f;this.Yb=(function S(T,A,z){for(var U=z[A],W=0;W<U&&(T.push(z.length>A+1?[]:0),!(z.length<A+1));W++)S(T[W],A+1,z)}(f=[],0,[3,11]),f)}function Ku(){this.jb=b(3),this.Wc=E([4,8],qd),this.Xc=E([4,17],qd)}function Il(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new b(4),this.od=new b(4)}function $c(){this.ld=this.La=this.dd=this.tc=0}function Rr(){this.Na=this.la=0}function $d(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ud(){this.ad=b(384),this.Za=0,this.Ob=b(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Xu(){this.uc=this.M=this.Nb=0,this.wa=Array(new $c),this.Y=0,this.ya=Array(new Ud),this.aa=0,this.l=new ra}function Uc(){this.y=b(16),this.f=b(8),this.ea=b(8)}function xl(){this.cb=this.a=0,this.sc="",this.m=new $t,this.Od=new Ya,this.Kc=new Bs,this.ed=new Il,this.Qa=new qc,this.Ic=this.$c=this.Aa=0,this.D=new Xu,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=D(8,$t),this.ia=0,this.pb=D(4,$d),this.Pa=new Ku,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Uc),this.Hd=0,this.rb=Array(new Rr),this.sb=0,this.wa=Array(new $c),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Ud),this.L=this.aa=0,this.gd=E([4,2],$c),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function ra(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Dl(){var f=new xl;return null!=f&&(f.a=0,f.sc="OK",f.cb=0,f.Xb=0,ka||(ka=d1)),f}function Sr(f,S,T){return 0==f.a&&(f.a=S,f.sc=T,f.cb=0),0}function Gc(f,S,T){return 3<=T&&157==f[S+0]&&1==f[S+1]&&42==f[S+2]}function Ka(f,S){if(null==f)return 0;if(f.a=0,f.sc="OK",null==S)return Sr(f,2,"null VP8Io passed to VP8GetHeaders()");var T=S.data,A=S.w,z=S.ha;if(4>z)return Sr(f,7,"Truncated header.");var U=T[A+0]|T[A+1]<<8|T[A+2]<<16,W=f.Od;if(W.Rb=!(1&U),W.td=U>>1&7,W.yd=U>>4&1,W.ub=U>>5,3<W.td)return Sr(f,3,"Incorrect keyframe parameters.");if(!W.yd)return Sr(f,4,"Frame not displayable.");A+=3,z-=3;var Y=f.Kc;if(W.Rb){if(7>z)return Sr(f,7,"cannot parse picture header");if(!Gc(T,A,z))return Sr(f,3,"Bad code word");Y.c=16383&(T[A+4]<<8|T[A+3]),Y.Td=T[A+4]>>6,Y.i=16383&(T[A+6]<<8|T[A+5]),Y.Ud=T[A+6]>>6,A+=7,z-=7,f.za=Y.c+15>>4,f.Ub=Y.i+15>>4,S.width=Y.c,S.height=Y.i,S.Da=0,S.j=0,S.v=0,S.va=S.width,S.o=S.height,S.da=0,S.ib=S.width,S.hb=S.height,S.U=S.width,S.T=S.height,I((U=f.Pa).jb,0,255,U.jb.length),m(null!=(U=f.Qa)),U.Cb=0,U.Bb=0,U.Fb=1,I(U.Zb,0,0,U.Zb.length),I(U.Lb,0,0,U.Lb)}if(W.ub>z)return Sr(f,7,"bad partition length");Ye(U=f.m,T,A,W.ub),A+=W.ub,z-=W.ub,W.Rb&&(Y.Ld=Ke(U),Y.Kd=Ke(U)),Y=f.Qa;var X,ie=f.Pa;if(m(null!=U),m(null!=Y),Y.Cb=Ke(U),Y.Cb){if(Y.Bb=Ke(U),Ke(U)){for(Y.Fb=Ke(U),X=0;4>X;++X)Y.Zb[X]=Ke(U)?rt(U,7):0;for(X=0;4>X;++X)Y.Lb[X]=Ke(U)?rt(U,6):0}if(Y.Bb)for(X=0;3>X;++X)ie.jb[X]=Ke(U)?tt(U,8):255}else Y.Bb=0;if(U.Ka)return Sr(f,3,"cannot parse segment header");if((Y=f.ed).zd=Ke(U),Y.Tb=tt(U,6),Y.wb=tt(U,3),Y.Pc=Ke(U),Y.Pc&&Ke(U)){for(ie=0;4>ie;++ie)Ke(U)&&(Y.vd[ie]=rt(U,6));for(ie=0;4>ie;++ie)Ke(U)&&(Y.od[ie]=rt(U,6))}if(f.L=0==Y.Tb?0:Y.zd?1:2,U.Ka)return Sr(f,3,"cannot parse filter header");var Ce=z;if(z=X=A,A=X+Ce,Y=Ce,f.Xb=(1<<tt(f.m,2))-1,Ce<3*(ie=f.Xb))T=7;else{for(X+=3*ie,Y-=3*ie,Ce=0;Ce<ie;++Ce){var Ae=T[z+0]|T[z+1]<<8|T[z+2]<<16;Ae>Y&&(Ae=Y),Ye(f.Jc[+Ce],T,X,Ae),X+=Ae,Y-=Ae,z+=3}Ye(f.Jc[+ie],T,X,Y),T=X<A?0:5}if(0!=T)return Sr(f,T,"cannot parse partitions");for(T=tt(X=f.m,7),z=Ke(X)?rt(X,4):0,A=Ke(X)?rt(X,4):0,Y=Ke(X)?rt(X,4):0,ie=Ke(X)?rt(X,4):0,X=Ke(X)?rt(X,4):0,Ce=f.Qa,Ae=0;4>Ae;++Ae){if(Ce.Cb){var Re=Ce.Zb[Ae];Ce.Fb||(Re+=T)}else{if(0<Ae){f.pb[Ae]=f.pb[0];continue}Re=T}var Te=f.pb[Ae];Te.Sc[0]=ld[ls(Re+z,127)],Te.Sc[1]=pu[ls(Re+0,127)],Te.Eb[0]=2*ld[ls(Re+A,127)],Te.Eb[1]=101581*pu[ls(Re+Y,127)]>>16,8>Te.Eb[1]&&(Te.Eb[1]=8),Te.Qc[0]=ld[ls(Re+ie,117)],Te.Qc[1]=pu[ls(Re+X,127)],Te.lc=Re+X}if(!W.Rb)return Sr(f,4,"Not a key frame.");for(Ke(U),W=f.Pa,T=0;4>T;++T){for(z=0;8>z;++z)for(A=0;3>A;++A)for(Y=0;11>Y;++Y)ie=et(U,k2[T][z][A][Y])?tt(U,8):L2[T][z][A][Y],W.Wc[T][z].Yb[A][Y]=ie;for(z=0;17>z;++z)W.Xc[T][z]=W.Wc[T][df[z]]}return f.kc=Ke(U),f.kc&&(f.Bd=tt(U,8)),f.cb=1}function d1(f,S,T,A,z,U,W){var Y=S[z].Yb[T];for(T=0;16>z;++z){if(!et(f,Y[T+0]))return z;for(;!et(f,Y[T+1]);)if(Y=S[++z].Yb[0],T=0,16==z)return 16;var X=S[z+1].Yb;if(et(f,Y[T+2])){var ie=f,Ce=0;if(et(ie,(Re=Y)[(Ae=T)+3]))if(et(ie,Re[Ae+6])){for(Y=0,Ae=2*(Ce=et(ie,Re[Ae+8]))+(Re=et(ie,Re[Ae+9+Ce])),Ce=0,Re=P2[Ae];Re[Y];++Y)Ce+=Ce+et(ie,Re[Y]);Ce+=3+(8<<Ae)}else et(ie,Re[Ae+7])?(Ce=7+2*et(ie,165),Ce+=et(ie,145)):Ce=5+et(ie,159);else Ce=et(ie,Re[Ae+4])?3+et(ie,Re[Ae+5]):2;Y=X[2]}else Ce=1,Y=X[1];X=W+T2[z],0>(ie=f).b&&$e(ie);var Ae,Re=ie.b,Te=(Ae=ie.Ca>>1)-(ie.I>>Re)>>31;--ie.b,ie.Ca+=Te,ie.Ca|=1,ie.I-=(Ae+1&Te)<<Re,U[X]=((Ce^Te)-Te)*A[(0<z)+0]}return 16}function Gd(f){var S=f.rb[f.sb-1];S.la=0,S.Na=0,I(f.zc,0,0,f.zc.length),f.ja=0}function Da(f,S,T,A,z){f[S+T+32*A]=-256&(z=f[S+T+32*A]+(z>>3))?0>z?0:255:z}function Wd(f,S,T,A,z,U){Da(f,S,0,T,A+z),Da(f,S,1,T,A+U),Da(f,S,2,T,A-U),Da(f,S,3,T,A-z)}function ss(f){return(20091*f>>16)+f}function eh(f,S,T,A){var z,U=0,W=b(16);for(z=0;4>z;++z){var Y=f[S+0]+f[S+8],X=f[S+0]-f[S+8],ie=(35468*f[S+4]>>16)-ss(f[S+12]),Ce=ss(f[S+4])+(35468*f[S+12]>>16);W[U+0]=Y+Ce,W[U+1]=X+ie,W[U+2]=X-ie,W[U+3]=Y-Ce,U+=4,S++}for(z=U=0;4>z;++z)Y=(f=W[U+0]+4)+W[U+8],X=f-W[U+8],ie=(35468*W[U+4]>>16)-ss(W[U+12]),Da(T,A,0,0,Y+(Ce=ss(W[U+4])+(35468*W[U+12]>>16))),Da(T,A,1,0,X+ie),Da(T,A,2,0,X-ie),Da(T,A,3,0,Y-Ce),U++,A+=32}function u1(f,S,T,A){var z=f[S+0]+4,U=35468*f[S+4]>>16,W=ss(f[S+4]),Y=35468*f[S+1]>>16;Wd(T,A,0,z+W,f=ss(f[S+1]),Y),Wd(T,A,1,z+U,f,Y),Wd(T,A,2,z-U,f,Y),Wd(T,A,3,z-W,f,Y)}function rf(f,S,T,A,z){eh(f,S,T,A),z&&eh(f,S+16,T,A+4)}function h1(f,S,T,A){rl(f,S+0,T,A,1),rl(f,S+32,T,A+128,1)}function ic(f,S,T,A){var z;for(f=f[S+0]+4,z=0;4>z;++z)for(S=0;4>S;++S)Da(T,A,S,z,f)}function m1(f,S,T,A){f[S+0]&&wo(f,S+0,T,A),f[S+16]&&wo(f,S+16,T,A+4),f[S+32]&&wo(f,S+32,T,A+128),f[S+48]&&wo(f,S+48,T,A+128+4)}function of(f,S,T,A){var z,U=b(16);for(z=0;4>z;++z){var W=f[S+0+z]+f[S+12+z],Y=f[S+4+z]+f[S+8+z],X=f[S+4+z]-f[S+8+z],ie=f[S+0+z]-f[S+12+z];U[0+z]=W+Y,U[8+z]=W-Y,U[4+z]=ie+X,U[12+z]=ie-X}for(z=0;4>z;++z)W=(f=U[0+4*z]+3)+U[3+4*z],X=U[1+4*z]-U[2+4*z],ie=f-U[3+4*z],T[A+0]=W+(Y=U[1+4*z]+U[2+4*z])>>3,T[A+16]=ie+X>>3,T[A+32]=W-Y>>3,T[A+48]=ie-X>>3,A+=64}function cr(f,S,T){var A,z=S-32,U=Io,W=255-f[z-1];for(A=0;A<T;++A){var Y,X=U,ie=W+f[S-1];for(Y=0;Y<T;++Y)f[S+Y]=X[ie+f[z+Y]];S+=32}}function Jd(f,S){cr(f,S,4)}function rc(f,S){cr(f,S,8)}function f1(f,S){cr(f,S,16)}function Br(f,S){var T;for(T=0;16>T;++T)y(f,S+32*T,f,S-32,16)}function js(f,S){var T;for(T=16;0<T;--T)I(f,S,f[S-1],16),S+=32}function oc(f,S,T){var A;for(A=0;16>A;++A)I(S,T+32*A,f,16)}function sc(f,S){var T,A=16;for(T=0;16>T;++T)A+=f[S-1+32*T]+f[S+T-32];oc(A>>5,f,S)}function jr(f,S){var T,A=8;for(T=0;16>T;++T)A+=f[S-1+32*T];oc(A>>4,f,S)}function p1(f,S){var T,A=8;for(T=0;16>T;++T)A+=f[S+T-32];oc(A>>4,f,S)}function g1(f,S){oc(128,f,S)}function jn(f,S,T){return f+2*S+T+2>>2}function sf(f,S){var T,A=S-32;for(A=new Uint8Array([jn(f[A-1],f[A+0],f[A+1]),jn(f[A+0],f[A+1],f[A+2]),jn(f[A+1],f[A+2],f[A+3]),jn(f[A+2],f[A+3],f[A+4])]),T=0;4>T;++T)y(f,S+32*T,A,0,A.length)}function Ao(f,S){var T=f[S-1],A=f[S-1+32],z=f[S-1+64],U=f[S-1+96];Rt(f,S+0,16843009*jn(f[S-1-32],T,A)),Rt(f,S+32,16843009*jn(T,A,z)),Rt(f,S+64,16843009*jn(A,z,U)),Rt(f,S+96,16843009*jn(z,U,U))}function Vs(f,S){var T,A=4;for(T=0;4>T;++T)A+=f[S+T-32]+f[S-1+32*T];for(A>>=3,T=0;4>T;++T)I(f,S+32*T,A,4)}function Xa(f,S){var T=f[S-1+0],A=f[S-1+32],z=f[S-1+64],U=f[S-1-32],W=f[S+0-32],Y=f[S+1-32],X=f[S+2-32],ie=f[S+3-32];f[S+0+96]=jn(A,z,f[S-1+96]),f[S+1+96]=f[S+0+64]=jn(T,A,z),f[S+2+96]=f[S+1+64]=f[S+0+32]=jn(U,T,A),f[S+3+96]=f[S+2+64]=f[S+1+32]=f[S+0+0]=jn(W,U,T),f[S+3+64]=f[S+2+32]=f[S+1+0]=jn(Y,W,U),f[S+3+32]=f[S+2+0]=jn(X,Y,W),f[S+3+0]=jn(ie,X,Y)}function v1(f,S){var T=f[S+1-32],A=f[S+2-32],z=f[S+3-32],U=f[S+4-32],W=f[S+5-32],Y=f[S+6-32],X=f[S+7-32];f[S+0+0]=jn(f[S+0-32],T,A),f[S+1+0]=f[S+0+32]=jn(T,A,z),f[S+2+0]=f[S+1+32]=f[S+0+64]=jn(A,z,U),f[S+3+0]=f[S+2+32]=f[S+1+64]=f[S+0+96]=jn(z,U,W),f[S+3+32]=f[S+2+64]=f[S+1+96]=jn(U,W,Y),f[S+3+64]=f[S+2+96]=jn(W,Y,X),f[S+3+96]=jn(Y,X,X)}function ac(f,S){var T=f[S-1+0],A=f[S-1+32],z=f[S-1+64],U=f[S-1-32],W=f[S+0-32],Y=f[S+1-32],X=f[S+2-32],ie=f[S+3-32];f[S+0+0]=f[S+1+64]=U+W+1>>1,f[S+1+0]=f[S+2+64]=W+Y+1>>1,f[S+2+0]=f[S+3+64]=Y+X+1>>1,f[S+3+0]=X+ie+1>>1,f[S+0+96]=jn(z,A,T),f[S+0+64]=jn(A,T,U),f[S+0+32]=f[S+1+96]=jn(T,U,W),f[S+1+32]=f[S+2+96]=jn(U,W,Y),f[S+2+32]=f[S+3+96]=jn(W,Y,X),f[S+3+32]=jn(Y,X,ie)}function Zd(f,S){var T=f[S+0-32],A=f[S+1-32],z=f[S+2-32],U=f[S+3-32],W=f[S+4-32],Y=f[S+5-32],X=f[S+6-32],ie=f[S+7-32];f[S+0+0]=T+A+1>>1,f[S+1+0]=f[S+0+64]=A+z+1>>1,f[S+2+0]=f[S+1+64]=z+U+1>>1,f[S+3+0]=f[S+2+64]=U+W+1>>1,f[S+0+32]=jn(T,A,z),f[S+1+32]=f[S+0+96]=jn(A,z,U),f[S+2+32]=f[S+1+96]=jn(z,U,W),f[S+3+32]=f[S+2+96]=jn(U,W,Y),f[S+3+64]=jn(W,Y,X),f[S+3+96]=jn(Y,X,ie)}function _1(f,S){var T=f[S-1+0],A=f[S-1+32],z=f[S-1+64],U=f[S-1+96];f[S+0+0]=T+A+1>>1,f[S+2+0]=f[S+0+32]=A+z+1>>1,f[S+2+32]=f[S+0+64]=z+U+1>>1,f[S+1+0]=jn(T,A,z),f[S+3+0]=f[S+1+32]=jn(A,z,U),f[S+3+32]=f[S+1+64]=jn(z,U,U),f[S+3+64]=f[S+2+64]=f[S+0+96]=f[S+1+96]=f[S+2+96]=f[S+3+96]=U}function C1(f,S){var T=f[S-1+0],A=f[S-1+32],z=f[S-1+64],U=f[S-1+96],W=f[S-1-32],Y=f[S+0-32],X=f[S+1-32],ie=f[S+2-32];f[S+0+0]=f[S+2+32]=T+W+1>>1,f[S+0+32]=f[S+2+64]=A+T+1>>1,f[S+0+64]=f[S+2+96]=z+A+1>>1,f[S+0+96]=U+z+1>>1,f[S+3+0]=jn(Y,X,ie),f[S+2+0]=jn(W,Y,X),f[S+1+0]=f[S+3+32]=jn(T,W,Y),f[S+1+32]=f[S+3+64]=jn(A,T,W),f[S+1+64]=f[S+3+96]=jn(z,A,T),f[S+1+96]=jn(U,z,A)}function y1(f,S){var T;for(T=0;8>T;++T)y(f,S+32*T,f,S-32,8)}function Qd(f,S){var T;for(T=0;8>T;++T)I(f,S,f[S-1],8),S+=32}function lc(f,S,T){var A;for(A=0;8>A;++A)I(S,T+32*A,f,8)}function Pa(f,S){var T,A=8;for(T=0;8>T;++T)A+=f[S+T-32]+f[S-1+32*T];lc(A>>4,f,S)}function Wc(f,S){var T,A=4;for(T=0;8>T;++T)A+=f[S+T-32];lc(A>>3,f,S)}function el(f,S){var T,A=4;for(T=0;8>T;++T)A+=f[S-1+32*T];lc(A>>3,f,S)}function Pl(f,S){lc(128,f,S)}function cc(f,S,T){var A=f[S-T],z=f[S+0],U=3*(z-A)+w1[1020+f[S-2*T]-f[S+T]],W=I1[112+(U+4>>3)];f[S-T]=Io[255+A+I1[112+(U+3>>3)]],f[S+0]=Io[255+z-W]}function dc(f,S,T,A){return Hs[255+f[S-2*T]-f[S-T]]>A||Hs[255+f[S+T]-f[S+0]]>A}function th(f,S,T,A){return 4*Hs[255+f[S-T]-f[S+0]]+Hs[255+f[S-2*T]-f[S+T]]<=A}function Yd(f,S,T,A,z){var U=f[S-3*T],W=f[S-2*T],Y=f[S-T],X=f[S+0],ie=f[S+T],Ce=f[S+2*T];return 4*Hs[255+Y-X]+Hs[255+W-ie]>A?0:Hs[255+f[S-4*T]-U]<=z&&Hs[255+U-W]<=z&&Hs[255+W-Y]<=z&&Hs[255+f[S+3*T]-Ce]<=z&&Hs[255+Ce-ie]<=z&&Hs[255+ie-X]<=z}function Tl(f,S,T,A){var z=2*A+1;for(A=0;16>A;++A)th(f,S+A,T,z)&&cc(f,S+A,T)}function as(f,S,T,A){var z=2*A+1;for(A=0;16>A;++A)th(f,S+A*T,1,z)&&cc(f,S+A*T,1)}function Ta(f,S,T,A){var z;for(z=3;0<z;--z)Tl(f,S+=4*T,T,A)}function b1(f,S,T,A){var z;for(z=3;0<z;--z)as(f,S+=4,T,A)}function El(f,S,T,A,z,U,W,Y){for(U=2*U+1;0<z--;){if(Yd(f,S,T,U,W))if(dc(f,S,T,Y))cc(f,S,T);else{var X=f,ie=S,Ce=T,Ae=X[ie-2*Ce],Re=X[ie-Ce],Te=X[ie+0],yt=X[ie+Ce],Be=X[ie+2*Ce],ce=27*(fe=w1[1020+3*(Te-Re)+w1[1020+Ae-yt]])+63>>7,xe=18*fe+63>>7,fe=9*fe+63>>7;X[ie-3*Ce]=Io[255+X[ie-3*Ce]+fe],X[ie-2*Ce]=Io[255+Ae+xe],X[ie-Ce]=Io[255+Re+ce],X[ie+0]=Io[255+Te-ce],X[ie+Ce]=Io[255+yt-xe],X[ie+2*Ce]=Io[255+Be-fe]}S+=A}}function So(f,S,T,A,z,U,W,Y){for(U=2*U+1;0<z--;){if(Yd(f,S,T,U,W))if(dc(f,S,T,Y))cc(f,S,T);else{var X=f,ie=S,Ce=T,Ae=X[ie-Ce],Re=X[ie+0],Te=X[ie+Ce],yt=I1[112+(4+(Be=3*(Re-Ae))>>3)],Be=I1[112+(Be+3>>3)],ce=yt+1>>1;X[ie-2*Ce]=Io[255+X[ie-2*Ce]+ce],X[ie-Ce]=Io[255+Ae+Be],X[ie+0]=Io[255+Re-yt],X[ie+Ce]=Io[255+Te-ce]}S+=A}}function tl(f,S,T,A,z,U){El(f,S,T,1,16,A,z,U)}function uc(f,S,T,A,z,U){El(f,S,1,T,16,A,z,U)}function af(f,S,T,A,z,U){var W;for(W=3;0<W;--W)So(f,S+=4*T,T,1,16,A,z,U)}function hc(f,S,T,A,z,U){var W;for(W=3;0<W;--W)So(f,S+=4,1,T,16,A,z,U)}function S1(f,S,T,A,z,U,W,Y){El(f,S,z,1,8,U,W,Y),El(T,A,z,1,8,U,W,Y)}function nh(f,S,T,A,z,U,W,Y){El(f,S,1,z,8,U,W,Y),El(T,A,1,z,8,U,W,Y)}function Kd(f,S,T,A,z,U,W,Y){So(f,S+4*z,z,1,8,U,W,Y),So(T,A+4*z,z,1,8,U,W,Y)}function ih(f,S,T,A,z,U,W,Y){So(f,S+4,1,z,8,U,W,Y),So(T,A+4,1,z,8,U,W,Y)}function Jc(){this.ba=new Ns,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new lr,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Ll(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Zc(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function rh(){this.ua=0,this.Wa=new le,this.vb=new le,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new me,this.yc=new te}function oh(){this.xb=this.a=0,this.l=new ra,this.ca=new Ns,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new Z,this.Pb=0,this.wd=new Z,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new rh,this.ab=0,this.gc=D(4,Zc),this.Oc=0}function Xd(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new ra,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function kl(f,S,T,A,z,U,W){for(f=null==f?0:f[S+0],S=0;S<W;++S)z[U+S]=f+T[A+S]&255,f=z[U+S]}function sh(f,S,T,A,z,U,W){var Y;if(null==f)kl(null,null,T,A,z,U,W);else for(Y=0;Y<W;++Y)z[U+Y]=f[S+Y]+T[A+Y]&255}function Ml(f,S,T,A,z,U,W){if(null==f)kl(null,null,T,A,z,U,W);else{var Y,X=f[S+0],ie=X,Ce=X;for(Y=0;Y<W;++Y)ie=Ce+(X=f[S+Y])-ie,Ce=T[A+Y]+(-256&ie?0>ie?0:255:ie)&255,ie=X,z[U+Y]=Ce}}function eu(f,S,T,A){var z=S.width,U=S.o;if(m(null!=f&&null!=S),0>T||0>=A||T+A>U)return null;if(!f.Cc){if(null==f.ga){var W;if(f.ga=new Xd,(W=null==f.ga)||(W=S.width*S.o,m(0==f.Gb.length),f.Gb=b(W),f.Uc=0,null==f.Gb?W=0:(f.mb=f.Gb,f.nb=f.Uc,f.rc=null,W=1),W=!W),!W){var Y=f.Fa,X=f.P,ie=f.qc,Ce=f.mb,Ae=f.nb,Re=X+1,Te=ie-1,yt=(W=f.ga).l;if(m(null!=Y&&null!=Ce&&null!=S),$o[0]=null,$o[1]=kl,$o[2]=sh,$o[3]=Ml,W.ca=Ce,W.tb=Ae,W.c=S.width,W.i=S.height,m(0<W.c&&0<W.i),1>=ie)S=0;else if(W.$a=Y[X+0]>>0&3,W.Z=Y[X+0]>>2&3,W.Lc=Y[X+0]>>4&3,X=Y[X+0]>>6&3,0>W.$a||1<W.$a||4<=W.Z||1<W.Lc||X)S=0;else if(yt.put=Os,yt.ac=Nr,yt.bc=ns,yt.ma=W,yt.width=S.width,yt.height=S.height,yt.Da=S.Da,yt.v=S.v,yt.va=S.va,yt.j=S.j,yt.o=S.o,W.$a)e:{m(1==W.$a),S=os();t:for(;;){if(null==S){S=0;break e}if(m(null!=W),W.mc=S,S.c=W.c,S.i=W.i,S.l=W.l,S.l.ma=W,S.l.width=W.c,S.l.height=W.i,S.a=0,ze(S.m,Y,Re,Te),!ia(W.c,W.i,1,S,null)||(1==S.ab&&3==S.gc[0].hc&&xa(S.s)?(W.ic=1,Y=S.c*S.i,S.Ta=null,S.Ua=0,S.V=b(Y),S.Ba=0,null==S.V?(S.a=1,S=0):S=1):(W.ic=0,S=wl(S,W.c)),!S))break t;S=1;break e}W.mc=null,S=0}else S=Te>=W.c*W.i;W=!S}if(W)return null;1!=f.ga.Lc?f.Ga=0:A=U-T}m(null!=f.ga),m(T+A<=U);e:{if(S=(Y=f.ga).c,U=Y.l.o,0==Y.$a){if(Re=f.rc,Te=f.Vc,yt=f.Fa,ie=f.mb,Ce=f.nb+T*S,m((X=f.P+1+T*S)<=f.P+f.qc),0!=Y.Z)for(m(null!=$o[Y.Z]),W=0;W<A;++W)$o[Y.Z](Re,Te,yt,X,ie,Ce,S),Re=ie,Te=Ce,Ce+=S,X+=S;else for(W=0;W<A;++W)y(ie,Ce,yt,X,S),Re=ie,Te=Ce,Ce+=S,X+=S;f.rc=Re,f.Vc=Te}else{if(m(null!=Y.mc),S=T+A,m(null!=(W=Y.mc)),m(S<=W.i),W.C>=S)S=1;else if(Y.ic||Fe(),Y.ic){Y=W.V,Re=W.Ba;var Be=W.i,ce=(yt=1,X=W.$/(Te=W.c),ie=W.$%Te,Ce=W.m,Ae=W.s,W.$),xe=Te*Be,fe=Te*S,Pt=Ae.wc,_t=ce<fe?Or(Ae,ie,X):null;m(ce<=xe),m(S<=Be),m(xa(Ae));t:for(;;){for(;!Ce.h&&ce<fe;){if(ie&Pt||(_t=Or(Ae,ie,X)),m(null!=_t),Ee(Ce),256>(Be=Ho(_t.G[0],_t.H[0],Ce)))Y[Re+ce]=Be,++ce,++ie>=Te&&(ie=0,++X<=S&&!(X%16)&&rs(W,X));else{if(!(280>Be)){yt=0;break t}Be=Rs(Be-256,Ce);var rn,Vt=Ho(_t.G[4],_t.H[4],Ce);if(Ee(Ce),!(ce>=(Vt=ea(Te,Vt=Rs(Vt,Ce)))&&xe-ce>=Be)){yt=0;break t}for(rn=0;rn<Be;++rn)Y[Re+ce+rn]=Y[Re+ce+rn-Vt];for(ce+=Be,ie+=Be;ie>=Te;)ie-=Te,++X<=S&&!(X%16)&&rs(W,X);ce<fe&&ie&Pt&&(_t=Or(Ae,ie,X))}m(Ce.h==ue(Ce))}rs(W,X>S?S:X);break t}!yt||Ce.h&&ce<xe?(yt=0,W.a=Ce.h?5:3):W.$=ce,S=yt}else S=ta(W,W.V,W.Ba,W.c,W.i,S,zc);if(!S){A=0;break e}}T+A>=U&&(f.Cc=1),A=1}if(!A)return null;if(f.Cc&&(null!=(A=f.ga)&&(A.mc=null),f.ga=null,0<f.Ga))return alert("todo:WebPDequantizeLevels"),null}return f.nb+T*z}function x(f,S,T,A,z,U){for(;0<z--;){var W,Y=f,X=S+(T?1:0),ie=f,Ce=S+(T?0:3);for(W=0;W<A;++W){var Ae=ie[Ce+4*W];255!=Ae&&(Y[X+4*W+0]=Y[X+4*W+0]*(Ae*=32897)>>23,Y[X+4*W+1]=Y[X+4*W+1]*Ae>>23,Y[X+4*W+2]=Y[X+4*W+2]*Ae>>23)}S+=U}}function q(f,S,T,A,z){for(;0<A--;){var U;for(U=0;U<T;++U){var W=f[S+2*U+0],Y=15&(ie=f[S+2*U+1]),X=4369*Y,ie=(240&ie|ie>>4)*X>>16;f[S+2*U+0]=(240&W|W>>4)*X>>16&240|(15&W|W<<4)*X>>16>>4&15,f[S+2*U+1]=240&ie|Y}S+=z}}function ae(f,S,T,A,z,U,W,Y){var X,ie,Ce=255;for(ie=0;ie<z;++ie){for(X=0;X<A;++X){var Ae=f[S+X];U[W+4*X]=Ae,Ce&=Ae}S+=T,W+=Y}return 255!=Ce}function ge(f,S,T,A,z){var U;for(U=0;U<z;++U)T[A+U]=f[S+U]>>8}function Fe(){us=x,Vi=q,Gi=ae,Er=ge}function ct(f,S,T){pe[f]=function(A,z,U,W,Y,X,ie,Ce,Ae,Re,Te,yt,Be,ce,xe,fe,Pt){var _t,rn=Pt-1>>1,Vt=Y[X+0]|ie[Ce+0]<<16,In=Ae[Re+0]|Te[yt+0]<<16;m(null!=A);var zt=3*Vt+In+131074>>2;for(S(A[z+0],255&zt,zt>>16,Be,ce),null!=U&&S(U[W+0],255&(zt=3*In+Vt+131074>>2),zt>>16,xe,fe),_t=1;_t<=rn;++_t){var wi=Y[X+_t]|ie[Ce+_t]<<16,Hi=Ae[Re+_t]|Te[yt+_t]<<16,Kn=Vt+wi+In+Hi+524296,Xn=Kn+2*(wi+In)>>3;zt=Xn+Vt>>1,Vt=(Kn=Kn+2*(Vt+Hi)>>3)+wi>>1,S(A[z+2*_t-1],255&zt,zt>>16,Be,ce+(2*_t-1)*T),S(A[z+2*_t-0],255&Vt,Vt>>16,Be,ce+(2*_t-0)*T),null!=U&&(Vt=Xn+Hi>>1,S(U[W+2*_t-1],255&(zt=Kn+In>>1),zt>>16,xe,fe+(2*_t-1)*T),S(U[W+2*_t+0],255&Vt,Vt>>16,xe,fe+(2*_t+0)*T)),Vt=wi,In=Hi}1&Pt||(S(A[z+Pt-1],255&(zt=3*Vt+In+131074>>2),zt>>16,Be,ce+(Pt-1)*T),null!=U&&S(U[W+Pt-1],255&(zt=3*In+Vt+131074>>2),zt>>16,xe,fe+(Pt-1)*T))}}function Et(){zs[lu]=M2,zs[cu]=hf,zs[x1]=F2,zs[od]=mf,zs[du]=Uo,zs[sd]=ca,zs[uu]=A2,zs[dh]=hf,zs[hu]=mf,zs[ad]=Uo,zs[mu]=ca}function nn(f){return f&~pf?0>f?0:255:f>>ff}function Cn(f,S){return nn((19077*f>>8)+(26149*S>>8)-14234)}function qn(f,S,T){return nn((19077*f>>8)-(6419*S>>8)-(13320*T>>8)+8708)}function Vn(f,S){return nn((19077*f>>8)+(33050*S>>8)-17685)}function ni(f,S,T,A,z){A[z+0]=Cn(f,T),A[z+1]=qn(f,S,T),A[z+2]=Vn(f,S)}function nr(f,S,T,A,z){A[z+0]=Vn(f,S),A[z+1]=qn(f,S,T),A[z+2]=Cn(f,T)}function dr(f,S,T,A,z){var U=qn(f,S,T);S=U<<3&224|Vn(f,S)>>3,A[z+0]=248&Cn(f,T)|U>>5,A[z+1]=S}function Tr(f,S,T,A,z){var U=240&Vn(f,S)|15;A[z+0]=240&Cn(f,T)|qn(f,S,T)>>4,A[z+1]=U}function ki(f,S,T,A,z){A[z+0]=255,ni(f,S,T,A,z+1)}function eo(f,S,T,A,z){nr(f,S,T,A,z),A[z+3]=255}function oa(f,S,T,A,z){ni(f,S,T,A,z),A[z+3]=255}function ls(f,S){return 0>f?0:f>S?S:f}function sa(f,S,T){pe[f]=function(A,z,U,W,Y,X,ie,Ce,Ae){for(var Re=Ce+(-2&Ae)*T;Ce!=Re;)S(A[z+0],U[W+0],Y[X+0],ie,Ce),S(A[z+1],U[W+0],Y[X+0],ie,Ce+T),z+=2,++W,++X,Ce+=2*T;1&Ae&&S(A[z+0],U[W+0],Y[X+0],ie,Ce)}}function Qc(f,S,T){return 0==T?0==f?0==S?6:5:0==S?4:0:T}function tu(f,S,T,A,z){switch(f>>>30){case 3:rl(S,T,A,z,0);break;case 2:ur(S,T,A,z);break;case 1:wo(S,T,A,z)}}function nu(f,S){var T,A,z=S.M,U=S.Nb,W=f.oc,Y=f.pc+40,X=f.oc,ie=f.pc+584,Ce=f.oc,Ae=f.pc+600;for(T=0;16>T;++T)W[Y+32*T-1]=129;for(T=0;8>T;++T)X[ie+32*T-1]=129,Ce[Ae+32*T-1]=129;for(0<z?W[Y-1-32]=X[ie-1-32]=Ce[Ae-1-32]=129:(I(W,Y-32-1,127,21),I(X,ie-32-1,127,9),I(Ce,Ae-32-1,127,9)),A=0;A<f.za;++A){var Re=S.ya[S.aa+A];if(0<A){for(T=-1;16>T;++T)y(W,Y+32*T-4,W,Y+32*T+12,4);for(T=-1;8>T;++T)y(X,ie+32*T-4,X,ie+32*T+4,4),y(Ce,Ae+32*T-4,Ce,Ae+32*T+4,4)}var Te=f.Gd,yt=f.Hd+A,Be=Re.ad,ce=Re.Hc;if(0<z&&(y(W,Y-32,Te[yt].y,0,16),y(X,ie-32,Te[yt].f,0,8),y(Ce,Ae-32,Te[yt].ea,0,8)),Re.Za){var xe=W,fe=Y-32+16;for(0<z&&(A>=f.za-1?I(xe,fe,Te[yt].y[15],4):y(xe,fe,Te[yt+1].y,0,4)),T=0;4>T;T++)xe[fe+128+T]=xe[fe+256+T]=xe[fe+384+T]=xe[fe+0+T];for(T=0;16>T;++T,ce<<=2)hs[Re.Ob[T]](xe=W,fe=Y+L1[T]),tu(ce,Be,16*+T,xe,fe)}else if(xe=Qc(A,z,Re.Ob[0]),la[xe](W,Y),0!=ce)for(T=0;16>T;++T,ce<<=2)tu(ce,Be,16*+T,W,Y+L1[T]);for(T=Re.Gc,xe=Qc(A,z,Re.Dd),Ma[xe](X,ie),Ma[xe](Ce,Ae),ce=Be,xe=X,fe=ie,255&(Re=T>>0)&&(170&Re?pc(ce,256,xe,fe):po(ce,256,xe,fe)),Re=Ce,ce=Ae,255&(T>>=8)&&(170&T?pc(Be,320,Re,ce):po(Be,320,Re,ce)),z<f.Ub-1&&(y(Te[yt].y,0,W,Y+480,16),y(Te[yt].f,0,X,ie+224,8),y(Te[yt].ea,0,Ce,Ae+224,8)),Te=f.sa,yt=f.ta+16*A+16*U*f.R,Be=f.qa,Re=f.ra+8*A+(T=8*U*f.B),ce=f.Ha,xe=f.Ia+8*A+T,T=0;16>T;++T)y(Te,yt+T*f.R,W,Y+32*T,16);for(T=0;8>T;++T)y(Be,Re+T*f.B,X,ie+32*T,8),y(ce,xe+T*f.B,Ce,Ae+32*T,8)}}function Yc(f,S,T,A,z,U,W,Y,X){var ie=[0],Ce=[0],Ae=0,Re=null!=X?X.kd:0,Te=X??new Ll;if(null==f||12>T)return 7;Te.data=f,Te.w=S,Te.ha=T,S=[S],T=[T],Te.gb=[Te.gb];e:{var yt=S,Be=T,ce=Te.gb;if(m(null!=f),m(null!=Be),m(null!=ce),ce[0]=0,12<=Be[0]&&!p(f,yt[0],"RIFF")){if(p(f,yt[0]+8,"WEBP")){ce=3;break e}var xe=Ht(f,yt[0]+4);if(12>xe||4294967286<xe){ce=3;break e}if(Re&&xe>Be[0]-8){ce=7;break e}ce[0]=xe,yt[0]+=12,Be[0]-=12}ce=0}if(0!=ce)return ce;for(xe=0<Te.gb[0],T=T[0];;){e:{var fe=f;Be=S,ce=T;var Pt=ie,_t=Ce,rn=yt=[0];if((zt=Ae=[Ae])[0]=0,8>ce[0])ce=7;else{if(!p(fe,Be[0],"VP8X")){if(10!=Ht(fe,Be[0]+4)){ce=3;break e}if(18>ce[0]){ce=7;break e}var Vt=Ht(fe,Be[0]+8),In=1+Gt(fe,Be[0]+12);if(2147483648<=In*(fe=1+Gt(fe,Be[0]+15))){ce=3;break e}null!=rn&&(rn[0]=Vt),null!=Pt&&(Pt[0]=In),null!=_t&&(_t[0]=fe),Be[0]+=18,ce[0]-=18,zt[0]=1}ce=0}}if(Ae=Ae[0],0!=ce)return ce;if(Be=!!(2&(yt=yt[0])),!xe&&Ae)return 3;if(null!=U&&(U[0]=!!(16&yt)),null!=W&&(W[0]=Be),null!=Y&&(Y[0]=0),W=ie[0],yt=Ce[0],Ae&&Be&&null==X){ce=0;break}if(4>T){ce=7;break}if(xe&&Ae||!xe&&!Ae&&!p(f,S[0],"ALPH")){T=[T],Te.na=[Te.na],Te.P=[Te.P],Te.Sa=[Te.Sa];e:{ce=S,xe=T;var zt=Te.gb;Pt=Te.na,_t=Te.P,rn=Te.Sa,In=22,m(null!=(Vt=f)),m(null!=xe),fe=ce[0];var wi=xe[0];for(m(null!=Pt),m(null!=rn),Pt[0]=null,_t[0]=null,rn[0]=0;;){if(ce[0]=fe,xe[0]=wi,8>wi){ce=7;break e}var Hi=Ht(Vt,fe+4);if(4294967286<Hi){ce=3;break e}var Kn=8+Hi+1&-2;if(In+=Kn,0<zt&&In>zt){ce=3;break e}if(!p(Vt,fe,"VP8 ")||!p(Vt,fe,"VP8L")){ce=0;break e}if(wi[0]<Kn){ce=7;break e}p(Vt,fe,"ALPH")||(Pt[0]=Vt,_t[0]=fe+8,rn[0]=Hi),fe+=Kn,wi-=Kn}}if(T=T[0],Te.na=Te.na[0],Te.P=Te.P[0],Te.Sa=Te.Sa[0],0!=ce)break}T=[T],Te.Ja=[Te.Ja],Te.xa=[Te.xa];e:if(zt=f,ce=S,xe=T,Pt=Te.gb[0],_t=Te.Ja,rn=Te.xa,Vt=ce[0],fe=!p(zt,Vt,"VP8 "),In=!p(zt,Vt,"VP8L"),m(null!=zt),m(null!=xe),m(null!=_t),m(null!=rn),8>xe[0])ce=7;else{if(fe||In){if(zt=Ht(zt,Vt+4),12<=Pt&&zt>Pt-12){ce=3;break e}if(Re&&zt>xe[0]-8){ce=7;break e}_t[0]=zt,ce[0]+=8,xe[0]-=8,rn[0]=In}else rn[0]=5<=xe[0]&&47==zt[Vt+0]&&!(zt[Vt+4]>>5),_t[0]=xe[0];ce=0}if(T=T[0],Te.Ja=Te.Ja[0],Te.xa=Te.xa[0],S=S[0],0!=ce)break;if(4294967286<Te.Ja)return 3;if(null==Y||Be||(Y[0]=Te.xa?2:1),W=[W],yt=[yt],Te.xa){if(5>T){ce=7;break}Y=W,Re=yt,Be=U,null==f||5>T?f=0:5<=T&&47==f[S+0]&&!(f[S+4]>>5)?(xe=[0],zt=[0],Pt=[0],ze(_t=new Z,f,S,T),kn(_t,xe,zt,Pt)?(null!=Y&&(Y[0]=xe[0]),null!=Re&&(Re[0]=zt[0]),null!=Be&&(Be[0]=Pt[0]),f=1):f=0):f=0}else{if(10>T){ce=7;break}Y=yt,null==f||10>T||!Gc(f,S+3,T-3)?f=0:(Re=f[S+0]|f[S+1]<<8|f[S+2]<<16,Be=16383&(f[S+7]<<8|f[S+6]),f=16383&(f[S+9]<<8|f[S+8]),1&Re||3<(Re>>1&7)||!(Re>>4&1)||Re>>5>=Te.Ja||!Be||!f?f=0:(W&&(W[0]=Be),Y&&(Y[0]=f),f=1))}if(!f||(W=W[0],yt=yt[0],Ae&&(ie[0]!=W||Ce[0]!=yt)))return 3;null!=X&&(X[0]=Te,X.offset=S-X.w,m(4294967286>S-X.w),m(X.offset==X.ha-T));break}return 0==ce||7==ce&&Ae&&null==X?(null!=U&&(U[0]|=null!=Te.na&&0<Te.na.length),null!=A&&(A[0]=W),null!=z&&(z[0]=yt),0):ce}function Kc(f,S,T){var A=S.width,z=S.height,U=0,W=0,Y=A,X=z;if(S.Da=null!=f&&0<f.Da,S.Da&&(Y=f.cd,X=f.bd,U=f.v,W=f.j,11>T||(U&=-2,W&=-2),0>U||0>W||0>=Y||0>=X||U+Y>A||W+X>z))return 0;if(S.v=U,S.j=W,S.va=U+Y,S.o=W+X,S.U=Y,S.T=X,S.da=null!=f&&0<f.da,S.da){if(!we(Y,X,T=[f.ib],U=[f.hb]))return 0;S.ib=T[0],S.hb=U[0]}return S.ob=null!=f&&f.ob,S.Kb=null==f||!f.Sd,S.da&&(S.ob=S.ib<3*A/4&&S.hb<3*z/4,S.Kb=0),1}function iu(f){if(null==f)return 2;if(11>f.S){var S=f.f.RGBA;S.fb+=(f.height-1)*S.A,S.A=-S.A}else(S=f.f.kb).O+=((f=f.height)-1)*S.fa,S.fa=-S.fa,S.N+=(f-1>>1)*S.Ab,S.Ab=-S.Ab,S.W+=(f-1>>1)*S.Db,S.Db=-S.Db,null!=S.F&&(S.J+=(f-1)*S.lb,S.lb=-S.lb);return 0}function Xc(f,S,T,A){if(null==A||0>=f||0>=S)return 2;if(null!=T){if(T.Da){var z=T.cd,U=T.bd,W=-2&T.v,Y=-2&T.j;if(0>W||0>Y||0>=z||0>=U||W+z>f||Y+U>S)return 2;f=z,S=U}if(T.da){if(!we(f,S,z=[T.ib],U=[T.hb]))return 2;f=z[0],S=U[0]}}A.width=f,A.height=S;e:{var X=A.width,ie=A.height;if(f=A.S,0>=X||0>=ie||!(f>=lu&&13>f))f=2;else{if(0>=A.Rd&&null==A.sd){W=U=z=S=0;var Ce=(Y=X*B2[f])*ie;if(11>f||(U=(ie+1)/2*(S=(X+1)/2),12==f&&(W=(z=X)*ie)),null==(ie=b(Ce+2*U+W))){f=1;break e}A.sd=ie,11>f?((X=A.f.RGBA).eb=ie,X.fb=0,X.A=Y,X.size=Ce):((X=A.f.kb).y=ie,X.O=0,X.fa=Y,X.Fd=Ce,X.f=ie,X.N=0+Ce,X.Ab=S,X.Cd=U,X.ea=ie,X.W=0+Ce+U,X.Db=S,X.Ed=U,12==f&&(X.F=ie,X.J=0+Ce+2*U),X.Tc=W,X.lb=z)}if(S=1,U=A.width,W=A.height,(z=A.S)>=lu&&13>z)if(11>z)f=A.f.RGBA,S&=(Y=Math.abs(f.A))*(W-1)+U<=f.size,S&=Y>=U*B2[z],S&=null!=f.eb;else{f=A.f.kb,Y=(U+1)/2,Ce=(W+1)/2,X=Math.abs(f.fa),ie=Math.abs(f.Ab);var Ae=Math.abs(f.Db),Re=Math.abs(f.lb);S&=X*(W-1)+U<=f.Fd,S&=ie*(Ce-1)+Y<=f.Cd,S=(S&=Ae*(Ce-1)+Y<=f.Ed)&X>=U&ie>=Y&Ae>=Y,S&=null!=f.y,S&=null!=f.f,S&=null!=f.ea,12==z&&(S&=Re>=U,S&=Re*(W-1)+U<=f.Tc,S&=null!=f.F)}else S=0;f=S?0:2}}return 0!=f||null!=T&&T.fd&&(f=iu(A)),f}var Si=64,Fl=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],mc=24,Al=32,Vr=8,to=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];jt("Predictor0","PredictorAdd0"),pe.Predictor0=function(){return 4278190080},pe.Predictor1=function(f){return f},pe.Predictor2=function(f,S,T){return S[T+0]},pe.Predictor3=function(f,S,T){return S[T+1]},pe.Predictor4=function(f,S,T){return S[T-1]},pe.Predictor5=function(f,S,T){return Ut(Ut(f,S[T+1]),S[T+0])},pe.Predictor6=function(f,S,T){return Ut(f,S[T-1])},pe.Predictor7=function(f,S,T){return Ut(f,S[T+0])},pe.Predictor8=function(f,S,T){return Ut(S[T-1],S[T+0])},pe.Predictor9=function(f,S,T){return Ut(S[T+0],S[T+1])},pe.Predictor10=function(f,S,T){return Ut(Ut(f,S[T-1]),Ut(S[T+0],S[T+1]))},pe.Predictor11=function(f,S,T){var A=S[T+0];return 0>=Hn(A>>24&255,f>>24&255,(S=S[T-1])>>24&255)+Hn(A>>16&255,f>>16&255,S>>16&255)+Hn(A>>8&255,f>>8&255,S>>8&255)+Hn(255&A,255&f,255&S)?A:f},pe.Predictor12=function(f,S,T){var A=S[T+0];return(gn((f>>24&255)+(A>>24&255)-((S=S[T-1])>>24&255))<<24|gn((f>>16&255)+(A>>16&255)-(S>>16&255))<<16|gn((f>>8&255)+(A>>8&255)-(S>>8&255))<<8|gn((255&f)+(255&A)-(255&S)))>>>0},pe.Predictor13=function(f,S,T){var A=S[T-1];return(An((f=Ut(f,S[T+0]))>>24&255,A>>24&255)<<24|An(f>>16&255,A>>16&255)<<16|An(f>>8&255,A>>8&255)<<8|An(f>>0&255,A>>0&255))>>>0};var ah=pe.PredictorAdd0;pe.PredictorAdd1=Zn,jt("Predictor2","PredictorAdd2"),jt("Predictor3","PredictorAdd3"),jt("Predictor4","PredictorAdd4"),jt("Predictor5","PredictorAdd5"),jt("Predictor6","PredictorAdd6"),jt("Predictor7","PredictorAdd7"),jt("Predictor8","PredictorAdd8"),jt("Predictor9","PredictorAdd9"),jt("Predictor10","PredictorAdd10"),jt("Predictor11","PredictorAdd11"),jt("Predictor12","PredictorAdd12"),jt("Predictor13","PredictorAdd13");var ed=pe.PredictorAdd2;Jn("ColorIndexInverseTransform","MapARGB","32b",function(f){return f>>8&255},function(f){return f}),Jn("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(f){return f},function(f){return f>>8&255});var lh,cs=pe.ColorIndexInverseTransform,td=pe.MapARGB,ru=pe.VP8LColorIndexInverseTransformAlpha,ch=pe.MapAlpha,nl=pe.VP8LPredictorsAdd=[];nl.length=16,(pe.VP8LPredictors=[]).length=16,(pe.VP8LPredictorsAdd_C=[]).length=16,(pe.VP8LPredictors_C=[]).length=16;var fc,zo,fo,Ea,il,ds,nd,rl,ur,pc,wo,po,Nl,ou,su,ol,gc,Ol,vc,id,_c,Rl,rd,qo,us,Vi,Gi,Er,Hr=b(511),La=b(2041),aa=b(225),Cc=b(767),au=0,w1=La,I1=aa,Io=Cc,Hs=Hr,lu=0,cu=1,x1=2,od=3,du=4,sd=5,uu=6,dh=7,hu=8,ad=9,mu=10,fu=[2,3,7],w2=[3,3,11],D1=[280,256,256,256,40],I2=[0,1,1,1,0],x2=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],D2=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],lf=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],cf=8,ld=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],pu=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],ka=null,P2=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],T2=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],E2=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],L2=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,25
605,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],P1=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,25
605,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],k2=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,25
vendor: 2,547 bytes, line 60
605,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],df=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],la=[],hs=[],Ma=[],uf=1,T1=2,$o=[],zs=[];ct("UpsampleRgbLinePair",ni,3),ct("UpsampleBgrLinePair",nr,3),ct("UpsampleRgbaLinePair",oa,4),ct("UpsampleBgraLinePair",eo,4),ct("UpsampleArgbLinePair",ki,4),ct("UpsampleRgba4444LinePair",Tr,2),ct("UpsampleRgb565LinePair",dr,2);var M2=pe.UpsampleRgbLinePair,F2=pe.UpsampleBgrLinePair,hf=pe.UpsampleRgbaLinePair,mf=pe.UpsampleBgraLinePair,Uo=pe.UpsampleArgbLinePair,ca=pe.UpsampleRgba4444LinePair,A2=pe.UpsampleRgb565LinePair,uh=16,hh=1<<uh-1,gu=-227,E1=482,ff=6,pf=(256<<ff)-1,gf=0,N2=b(256),O2=b(256),R2=b(256),mh=b(256),sl=b(E1-gu),vu=b(E1-gu);sa("YuvToRgbRow",ni,3),sa("YuvToBgrRow",nr,3),sa("YuvToRgbaRow",oa,4),sa("YuvToBgraRow",eo,4),sa("YuvToArgbRow",ki,4),sa("YuvToRgba4444Row",Tr,2),sa("YuvToRgb565Row",dr,2);var L1=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],_u=[0,2,8],vf=[8,7,6,4,4,2,2,2,1,1,1,1];this.WebPDecodeRGBA=function(f,S,T,A,z){var U=cu,W=new Jc,Y=new Ns;W.ba=Y,Y.S=U,Y.width=[Y.width],Y.height=[Y.height];var X=Y.width,ie=Y.height,Ce=new ts;if(null==Ce||null==f)var Ae=2;else m(null!=Ce),Ae=Yc(f,S,T,Ce.width,Ce.height,Ce.Pd,Ce.Qd,Ce.format,null);if(0!=Ae?X=0:(null!=X&&(X[0]=Ce.width[0]),null!=ie&&(ie[0]=Ce.height[0]),X=1),X){Y.width=Y.width[0],Y.height=Y.height[0],null!=A&&(A[0]=Y.width),null!=z&&(z[0]=Y.height);e:{if(A=new ra,(z=new Ll).data=f,z.w=S,z.ha=T,z.kd=1,S=[0],m(null!=z),(0==(f=Yc(z.data,z.w,z.ha,null,null,null,S,null,z))||7==f)&&S[0]&&(f=4),0==(S=f)){if(m(null!=W),A.data=z.data,A.w=z.w+z.offset,A.ha=z.ha-z.offset,A.put=Os,A.ac=Nr,A.bc=ns,A.ma=W,z.xa){if(null==(f=os())){W=1;break e}if(function(Re,Te){var yt=[0],Be=[0],ce=[0];t:for(;;){if(null==Re)return 0;if(null==Te)return Re.a=2,0;
vendor: 29,888 bytes, lines 60-85
60if(Re.l=Te,Re.a=0,ze(Re.m,Te.data,Te.w,Te.ha),!kn(Re.m,yt,Be,ce)){Re.a=3;break t}if(Re.xb=T1,Te.width=yt[0],Te.height=Be[0],!ia(yt[0],Be[0],1,Re,null))break t;return 1}return m(0!=Re.a),0}(f,A)){if(A=0==(S=Xc(A.width,A.height,W.Oa,W.ba))){t:{A=f;n:for(;;){if(null==A){A=0;break t}if(m(null!=A.s.yc),m(null!=A.s.Ya),m(0<A.s.Wb),m(null!=(T=A.l)),m(null!=(z=T.ma)),0!=A.xb){if(A.ca=z.ba,A.tb=z.tb,m(null!=A.ca),!Kc(z.Oa,T,od)){A.a=2;break n}if(!wl(A,T.width)||T.da)break n;if((T.da||Li(A.ca.S))&&Fe(),11>A.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=A.ca.f.kb.F&&Fe()),A.Pb&&0<A.s.ua&&null==A.s.vb.X&&!mn(A.s.vb,A.s.Wa.Xa)){A.a=1;break n}A.xb=0}if(!ta(A,A.V,A.Ba,A.c,A.i,T.o,Sl))break n;z.Dc=A.Ma,A=1;break t}m(0!=A.a),A=0}A=!A}A&&(S=f.a)}else S=f.a}else{if(null==(f=new Dl)){W=1;break e}if(f.Fa=z.na,f.P=z.P,f.qc=z.Sa,Ka(f,A)){if(0==(S=Xc(A.width,A.height,W.Oa,W.ba))){if(f.Aa=0,T=W.Oa,m(null!=(z=f)),null!=T){if(0<(X=0>(X=T.Md)?0:100<X?255:255*X/100)){for(ie=Ce=0;4>ie;++ie)12>(Ae=z.pb[ie]).lc&&(Ae.ia=X*vf[0>Ae.lc?0:Ae.lc]>>3),Ce|=Ae.ia;Ce&&(alert("todo:VP8InitRandom"),z.ia=1)}z.Ga=T.Id,100<z.Ga?z.Ga=100:0>z.Ga&&(z.Ga=0)}(function _n(f,S){if(null==f)return 0;if(null==S)return Sr(f,2,"NULL VP8Io parameter in VP8Decode().");if(!f.cb&&!Ka(f,S))return 0;if(m(f.cb),null==S.ac||S.ac(S)){S.ob&&(f.L=0);var T=_u[f.L];if(2==f.L?(f.yb=0,f.zb=0):(f.yb=S.v-T>>4,f.zb=S.j-T>>4,0>f.yb&&(f.yb=0),0>f.zb&&(f.zb=0)),f.Va=S.o+15+T>>4,f.Hb=S.va+15+T>>4,f.Hb>f.za&&(f.Hb=f.za),f.Va>f.Ub&&(f.Va=f.Ub),0<f.L){var A=f.ed;for(T=0;4>T;++T){var z;if(f.Qa.Cb){var U=f.Qa.Lb[T];f.Qa.Fb||(U+=A.Tb)}else U=A.Tb;for(z=0;1>=z;++z){var W=f.gd[T][z],Y=U;if(A.Pc&&(Y+=A.vd[0],z&&(Y+=A.od[0])),0<(Y=0>Y?0:63<Y?63:Y)){var X=Y;0<A.wb&&(X=4<A.wb?X>>2:X>>1)>9-A.wb&&(X=9-A.wb),1>X&&(X=1),W.dd=X,W.tc=2*Y+X,W.ld=40<=Y?2:15<=Y?1:0}else W.tc=0;W.La=z}}}T=0}else Sr(f,6,"Frame setup failed"),T=f.a;if(T=0==T){if(T){f.$c=0,0<f.Aa||(f.Ic=1);e:{A=4*(X=f.za);var ie=32*X,Ce=X+1,Ae=0<f.L?X*(0<f.Aa?2:1):0,Re=(2==f.Aa?2:1)*X;if((W=A+832+(z=3*(16*(T=f.Ic)+_u[f.L])/2*ie)+(U=null!=f.Fa&&0<f.Fa.length?f.Kc.c*f.Kc.i:0))!=W)T=0;else{if(W>f.Vb){if(f.Vb=0,f.Ec=b(W),f.Fc=0,null==f.Ec){T=Sr(f,1,"no memory during frame initialization.");break e}f.Vb=W}Y=f.Fc,f.Ac=W=f.Ec,f.Bc=Y,Y+=A,f.Gd=D(ie,Uc),f.Hd=0,f.rb=D(Ce+1,Rr),f.sb=1,f.wa=Ae?D(Ae,$c):null,f.Y=0,f.D.Nb=0,f.D.wa=f.wa,f.D.Y=f.Y,0<f.Aa&&(f.D.Y+=X),m(!0),f.oc=W,f.pc=Y,Y+=832,f.ya=D(Re,Ud),f.aa=0,f.D.ya=f.ya,f.D.aa=f.aa,2==f.Aa&&(f.D.aa+=X),f.R=16*X,f.B=8*X,X=(ie=_u[f.L])*f.R,ie=ie/2*f.B,f.sa=W,f.ta=Y+X,f.qa=f.sa,f.ra=f.ta+16*T*f.R+ie,f.Ha=f.qa,f.Ia=f.ra+8*T*f.B+ie,f.$c=0,Y+=z,f.mb=U?W:null,f.nb=U?Y:null,m(Y+U<=f.Fc+f.Vb),Gd(f),I(f.Ac,f.Bc,0,A),T=1}}if(T){if(S.ka=0,S.y=f.sa,S.O=f.ta,S.f=f.qa,S.N=f.ra,S.ea=f.Ha,S.Vd=f.Ia,S.fa=f.R,S.Rc=f.B,S.F=null,S.J=0,!au){for(T=-255;255>=T;++T)Hr[255+T]=0>T?-T:T;for(T=-1020;1020>=T;++T)La[1020+T]=-128>T?-128:127<T?127:T;for(T=-112;112>=T;++T)aa[112+T]=-16>T?-16:15<T?15:T;for(T=-255;510>=T;++T)Cc[255+T]=0>T?0:255<T?255:T;au=1}nd=of,rl=rf,pc=h1,wo=ic,po=m1,ur=u1,Nl=tl,ou=uc,su=S1,ol=nh,gc=af,Ol=hc,vc=Kd,id=ih,_c=Tl,Rl=as,rd=Ta,qo=b1,hs[0]=Vs,hs[1]=Jd,hs[2]=sf,hs[3]=Ao,hs[4]=Xa,hs[5]=ac,hs[6]=v1,hs[7]=Zd,hs[8]=C1,hs[9]=_1,la[0]=sc,la[1]=f1,la[2]=Br,la[3]=js,la[4]=jr,la[5]=p1,la[6]=g1,Ma[0]=Pa,Ma[1]=rc,Ma[2]=y1,Ma[3]=Qd,Ma[4]=el,Ma[5]=Wc,Ma[6]=Pl,T=1}else T=0}T&&(T=function(Te,yt){for(Te.M=0;Te.M<Te.Va;++Te.M){var Be,ce=Te.Jc[Te.M&Te.Xb],xe=Te.m,fe=Te;for(Be=0;Be<fe.za;++Be){var Pt=xe,_t=fe,rn=_t.Ac,Vt=_t.Bc+4*Be,In=_t.zc,zt=_t.ya[_t.aa+Be];if(zt.$b=_t.Qa.Bb?et(Pt,_t.Pa.jb[0])?2+et(Pt,_t.Pa.jb[2]):et(Pt,_t.Pa.jb[1]):0,_t.kc&&(zt.Ad=et(Pt,_t.Bd)),zt.Za=!et(Pt,145)+0,zt.Za){var wi=zt.Ob,Hi=0;for(_t=0;4>_t;++_t){var Kn,Xn=In[0+_t];for(Kn=0;4>Kn;++Kn){for(var zi=E2[et(Pt,(Xn=P1[rn[Vt+Kn]][Xn])[0])];0<zi;)zi=E2[2*zi+et(Pt,Xn[zi])];rn[Vt+Kn]=Xn=-zi}y(wi,Hi,rn,Vt,4),Hi+=4,In[0+_t]=Xn}}else Xn=et(Pt,156)?et(Pt,128)?1:3:et(Pt,163)?2:0,zt.Ob[0]=Xn,I(rn,Vt,Xn,4),I(In,0,Xn,4);zt.Dd=et(Pt,142)?et(Pt,114)?et(Pt,183)?1:3:2:0}if(fe.m.Ka)return Sr(Te,7,"Premature end-of-partition0 encountered.");for(;Te.ja<Te.za;++Te.ja){if(fe=ce,Pt=(xe=Te).rb[xe.sb-1],rn=xe.rb[xe.sb+xe.ja],Be=xe.ya[xe.aa+xe.ja],Vt=xe.kc?Be.Ad:0)Pt.la=rn.la=0,Be.Za||(Pt.Na=rn.Na=0),Be.Hc=0,Be.Gc=0,Be.ia=0;else{var Mi,$n;if(Pt=rn,rn=fe,Vt=xe.Pa.Xc,zt=xe.pb[(In=xe.ya[xe.aa+xe.ja]).$b],Hi=xe.rb[xe.sb-1],Xn=Kn=0,I(_t=In.ad,wi=0,0,384),In.Za)var zr=0,Go=Vt[3];else{zi=b(16);var Lr=Pt.Na+Hi.Na;if(Lr=ka(rn,Vt[1],Lr,zt.Eb,0,zi,0),Pt.Na=Hi.Na=(0<Lr)+0,1<Lr)nd(zi,0,_t,wi);else{var No=zi[0]+3>>3;for(zi=0;256>zi;zi+=16)_t[wi+zi]=No}zr=1,Go=Vt[0]}var vi=15&Pt.la,qs=15&Hi.la;for(zi=0;4>zi;++zi){var Oo=1&qs;for(No=$n=0;4>No;++No)vi=vi>>1|(Oo=(Lr=ka(rn,Go,Lr=Oo+(1&vi),zt.Sc,zr,_t,wi))>zr)<<7,$n=$n<<2|(3<Lr?3:1<Lr?2:0!=_t[wi+0]),wi+=16;vi>>=4,qs=qs>>1|Oo<<7,Kn=(Kn<<8|$n)>>>0}for(Go=vi,zr=qs>>4,Mi=0;4>Mi;Mi+=2){for($n=0,vi=Pt.la>>4+Mi,qs=Hi.la>>4+Mi,zi=0;2>zi;++zi){for(Oo=1&qs,No=0;2>No;++No)vi=vi>>1|(Oo=0<(Lr=ka(rn,Vt[2],Lr=Oo+(1&vi),zt.Qc,0,_t,wi)))<<3,$n=$n<<2|(3<Lr?3:1<Lr?2:0!=_t[wi+0]),wi+=16;vi>>=2,qs=qs>>1|Oo<<5}Xn|=$n<<4*Mi,Go|=vi<<4<<Mi,zr|=(240&qs)<<Mi}Pt.la=Go,Hi.la=zr,In.Hc=Kn,In.Gc=Xn,In.ia=43690&Xn?0:zt.ia,Vt=!(Kn|Xn)}if(0<xe.L&&(xe.wa[xe.Y+xe.ja]=xe.gd[Be.$b][Be.Za],xe.wa[xe.Y+xe.ja].La|=!Vt),fe.Ka)return Sr(Te,7,"Premature end-of-file encountered.")}if(Gd(Te),xe=yt,fe=1,Be=(ce=Te).D,Pt=0<ce.L&&ce.M>=ce.zb&&ce.M<=ce.Va,0==ce.Aa)e:{if(Be.M=ce.M,Be.uc=Pt,nu(ce,Be),fe=1,Be=($n=ce.D).Nb,Pt=(Xn=_u[ce.L])*ce.R,Vt=ce.sa,In=ce.ta-Pt+(zi=16*Be*ce.R),zt=ce.qa,_t=ce.ra-(rn=Xn/2*ce.B)+(No=8*Be*ce.B),wi=ce.Ha,Hi=ce.Ia-rn+No,qs=0==(vi=$n.M),Kn=vi>=ce.Va-1,2==ce.Aa&&nu(ce,$n),$n.uc)for(Oo=(Lr=ce).D.M,m(Lr.D.uc),$n=Lr.yb;$n<Lr.Hb;++$n){Go=Oo;var no=(Zr=(Yi=Lr).D).Nb,Zr=Zr.wa[Zr.Y+(zr=$n)],xo=Yi.sa,ms=Yi.ta+16*no*(Mi=Yi.R)+16*zr,Do=Zr.dd,io=Zr.tc;if(0!=io)if(m(3<=io),1==Yi.L)0<zr&&Rl(xo,ms,Mi,io+4),Zr.La&&qo(xo,ms,Mi,io),0<Go&&_c(xo,ms,Mi,io+4),Zr.La&&rd(xo,ms,Mi,io);else{var da=Yi.B,Fa=Yi.qa,cd=Yi.ra+8*no*da+8*zr,Aa=Yi.Ha,Yi=Yi.Ia+8*no*da+8*zr;no=Zr.ld,0<zr&&(ou(xo,ms,Mi,io+4,Do,no),ol(Fa,cd,Aa,Yi,da,io+4,Do,no)),Zr.La&&(Ol(xo,ms,Mi,io,Do,no),id(Fa,cd,Aa,Yi,da,io,Do,no)),0<Go&&(Nl(xo,ms,Mi,io+4,Do,no),su(Fa,cd,Aa,Yi,da,io+4,Do,no)),Zr.La&&(gc(xo,ms,Mi,io,Do,no),vc(Fa,cd,Aa,Yi,da,io,Do,no))}}if(ce.ia&&alert("todo:DitherRow"),null!=xe.put){if($n=16*vi,vi=16*(vi+1),qs?(xe.y=ce.sa,xe.O=ce.ta+zi,xe.f=ce.qa,xe.N=ce.ra+No,xe.ea=ce.Ha,xe.W=ce.Ia+No):($n-=Xn,xe.y=Vt,xe.O=In,xe.f=zt,xe.N=_t,xe.ea=wi,xe.W=Hi),Kn||(vi-=Xn),vi>xe.o&&(vi=xe.o),xe.F=null,xe.J=null,null!=ce.Fa&&0<ce.Fa.length&&$n<vi&&(xe.J=eu(ce,xe,$n,vi-$n),xe.F=ce.mb,null==xe.F&&0==xe.F.length)){fe=Sr(ce,3,"Could not decode alpha data.");break e}$n<xe.j&&(Xn=xe.j-$n,$n=xe.j,m(!(1&Xn)),xe.O+=ce.R*Xn,xe.N+=ce.B*(Xn>>1),xe.W+=ce.B*(Xn>>1),null!=xe.F&&(xe.J+=xe.width*Xn)),$n<vi&&(xe.O+=xe.v,xe.N+=xe.v>>1,xe.W+=xe.v>>1,null!=xe.F&&(xe.J+=xe.v),xe.ka=$n-xe.j,xe.U=xe.va-xe.v,xe.T=vi-$n,fe=xe.put(xe))}Be+1!=ce.Ic||Kn||(y(ce.sa,ce.ta-Pt,Vt,In+16*ce.R,Pt),y(ce.qa,ce.ra-rn,zt,_t+8*ce.B,rn),y(ce.Ha,ce.Ia-rn,wi,Hi+8*ce.B,rn))}if(!fe)return Sr(Te,6,"Output aborted.")}return 1}(f,S)),null!=S.bc&&S.bc(S),T&=1}return T?(f.cb=0,T):0})(f,A)||(S=f.a)}}else S=f.a}0==S&&null!=W.Oa&&W.Oa.fd&&(S=iu(W.ba))}W=S}U=0!=W?null:11>U?Y.f.RGBA.eb:Y.f.kb.y}else U=null;return U};var B2=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function O(pe,He){for(var st="",ee=0;ee<4;ee++)st+=String.fromCharCode(pe[He++]);return st}function j(pe,He){return(pe[He+0]<<0|pe[He+1]<<8|pe[He+2]<<16)>>>0}function H(pe,He){return(pe[He+0]<<0|pe[He+1]<<8|pe[He+2]<<16|pe[He+3]<<24)>>>0}new k;var Q=[0],N=[0],G=[],K=new k,M=g,L=function(pe,He){var st={},ee=0,te=!1,ye=0,me=0;if(st.frames=[],! 61/** @license 62 * Copyright (c) 2017 Dominik Homberger 63 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 64 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 65 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 66 https://webpjs.appspot.com 67 WebPRiffParser [email protected] 68 */ 69function(se,ue,_e,Ee){for(var $e=0;$e<4;$e++)if(se[ue+$e]!="RIFF".charCodeAt($e))return!0;return!1}(pe,He)){var Ye,tt;for(H(pe,He+=4),He+=8;He<pe.length;){var rt=O(pe,He),ze=H(pe,He+=4);He+=4;var lt=ze+(1&ze);switch(rt){case"VP8 ":case"VP8L":void 0===st.frames[ee]&&(st.frames[ee]={}),(Z=st.frames[ee]).src_off=te?me:He-8,Z.src_size=ye+ze+8,ee++,te&&(te=!1,ye=0,me=0);break;case"VP8X":(Z=st.header={}).feature_flags=pe[He];var ft=He+4;Z.canvas_width=1+j(pe,ft),Z.canvas_height=1+j(pe,ft+=3),ft+=3;break;case"ALPH":te=!0,ye=lt+8,me=He-8;break;case"ANIM":(Z=st.header).bgcolor=H(pe,He),Z.loop_count=(Ye=pe)[(tt=ft=He+4)+0]<<0|Ye[tt+1]<<8,ft+=2;break;case"ANMF":var $t,Z;(Z=st.frames[ee]={}).offset_x=2*j(pe,He),Z.offset_y=2*j(pe,He+=3),Z.width=1+j(pe,He+=3),Z.height=1+j(pe,He+=3),Z.duration=j(pe,He+=3),He+=3,$t=pe[He++],Z.dispose=1&$t,Z.blend=$t>>1&1}"ANMF"!=rt&&(He+=lt)}return st}}(M,0);L.response=M,L.rgbaoutput=!0,L.dataurl=!1;var re=L.header?L.header:null,be=L.frames?L.frames:null;if(re){re.loop_counter=re.loop_count,Q=[re.canvas_height],N=[re.canvas_width];for(var Me=0;Me<be.length&&0!=be[Me].blend;Me++);}var Ge=be[0],wt=K.WebPDecodeRGBA(M,Ge.src_off,Ge.src_size,N,Q);Ge.rgba=wt,Ge.imgwidth=N[0],Ge.imgheight=Q[0];for(var Ne=0;Ne<N[0]*Q[0]*4;Ne++)G[Ne]=wt[Ne];return this.width=N,this.height=Q,this.data=G,this}(function(g){var p=function(Q,N,G,K){var M=4,L=D;switch(K){case g.image_compression.FAST:M=1,L=b;break;case g.image_compression.MEDIUM:M=6,L=E;break;case g.image_compression.SLOW:M=9,L=k}var re=kd(Q=y(Q,N,G,L),{level:M});return g.__addimage__.arrayBufferToBinaryString(re)},y=function(Q,N,G,K){for(var M,L,re,be=Q.length/N,Me=new Uint8Array(Q.length+be),Ge=j(),wt=0;wt<be;wt+=1){if(M=Q.subarray(re=wt*N,re+N),K)Me.set(K(M,G,L),re+wt);else{for(var Ne,pe=Ge.length,He=[];Ne<pe;Ne+=1)He[Ne]=Ge[Ne](M,G,L);var st=H(He.concat());Me.set(He[st],re+wt)}L=M}return Me},I=function(Q){var N=Array.apply([],Q);return N.unshift(0),N},b=function(Q,N){var K=[],M=Q.length;K[0]=1;for(var L=0;L<M;L+=1)K[L+1]=Q[L]-(Q[L-N]||0)+256&255;return K},D=function(Q,N,G){var M=[],L=Q.length;M[0]=2;for(var re=0;re<L;re+=1)M[re+1]=Q[re]-(G&&G[re]||0)+256&255;return M},E=function(Q,N,G){var L=[],re=Q.length;L[0]=3;for(var be=0;be<re;be+=1)L[be+1]=Q[be]+256-((Q[be-N]||0)+(G&&G[be]||0)>>>1)&255;return L},k=function(Q,N,G){var re,be=[],Me=Q.length;be[0]=4;for(var Ge=0;Ge<Me;Ge+=1)re=O(Q[Ge-N]||0,G&&G[Ge]||0,G&&G[Ge-N]||0),be[Ge+1]=Q[Ge]-re+256&255;return be},O=function(Q,N,G){if(Q===N&&N===G)return Q;var K=Math.abs(N-G),M=Math.abs(Q-G),L=Math.abs(Q+N-G-G);return K<=M&&K<=L?Q:M<=L?N:G},j=function(){return[I,b,D,E,k]},H=function(Q){var N=Q.map(function(G){return G.reduce(function(K,M){return K+Math.abs(M)},0)});return N.indexOf(Math.min.apply(null,N))};g.processPNG=function(Q,N,G,K){var M,L,re,be,Me,Ge,wt,Ne,pe,He,st,ee,te,ye,me,Ye=this.decode.FLATE_DECODE,tt="";if(this.__addimage__.isArrayBuffer(Q)&&(Q=new Uint8Array(Q)),this.__addimage__.isArrayBufferView(Q)){if(Q=(re=new Jm(Q)).imgData,L=re.bits,M=re.colorSpace,Me=re.colors,-1!==[4,6].indexOf(re.colorType)){if(8===re.bits){pe=(Ne=32==re.pixelBitlength?new Uint32Array(re.decodePixels().buffer):16==re.pixelBitlength?new Uint16Array(re.decodePixels().buffer):new Uint8Array(re.decodePixels().buffer)).length,st=new Uint8Array(pe*re.colors),He=new Uint8Array(pe);var rt,ze=re.pixelBitlength-re.bits;for(ye=0,me=0;ye<pe;ye++){for(te=Ne[ye],rt=0;rt<ze;)st[me++]=te>>>rt&255,rt+=re.bits;He[ye]=te>>>rt&255}}if(16===re.bits){pe=(Ne=new Uint32Array(re.decodePixels().buffer)).length,st=new Uint8Array(pe*(32/re.pixelBitlength)*re.colors),He=new Uint8Array(pe*(32/re.pixelBitlength)),ee=re.colors>1,ye=0,me=0;for(var lt=0;ye<pe;)te=Ne[ye++],st[me++]=te>>>0&255,ee&&(st[me++]=te>>>16&255,te=Ne[ye++],st[me++]=te>>>0&255),He[lt++]=te>>>16&255;L=8}K!==g.image_compression.NONE?(Q=p(st,re.width*re.colors,re.colors,K),wt=p(He,re.width,1,K)):(Q=st,wt=He,Ye=void 0)}if(3===re.colorType&&(M=this.color_spaces.INDEXED,Ge=re.palette,re.transparency.indexed)){var ft=re.transparency.indexed,$t=0;for(ye=0,pe=ft.length;ye<pe;++ye)$t+=ft[ye];if(($t/=255)==pe-1&&-1!==ft.indexOf(0))be=[ft.indexOf(0)];else if($t!==pe){for(Ne=re.decodePixels(),He=new Uint8Array(Ne.length),ye=0,pe=Ne.length;ye<pe;ye++)He[ye]=ft[Ne[ye]];wt=p(He,re.width,1)}}var Z=function(se){var ue;switch(se){case g.image_compression.FAST:ue=11;break;case g.image_compression.MEDIUM:ue=13;break;case g.image_compression.SLOW:ue=14;break;default:ue=12}return ue}(K);return Ye===this.decode.FLATE_DECODE&&(tt="/Predictor "+Z+" "),tt+="/Colors "+Me+" /BitsPerComponent "+L+" /Columns "+re.width,(this.__addimage__.isArrayBuffer(Q)||this.__addimage__.isArrayBufferView(Q))&&(Q=this.__addimage__.arrayBufferToBinaryString(Q)),(wt&&this.__addimage__.isArrayBuffer(wt)||this.__addimage__.isArrayBufferView(wt))&&(wt=this.__addimage__.arrayBufferToBinaryString(wt)),{alias:G,data:Q,index:N,filter:Ye,decodeParameters:tt,transparency:be,palette:Ge,sMask:wt,predictor:Z,width:re.width,height:re.height,bitsPerComponent:L,colorSpace:M}}}})(xn.API),function(g){g.processGIF89A=function(m,p,y,I){var b=new Zm(m),D=b.width,E=b.height,k=[];b.decodeAndBlitFrameRGBA(0,k);var O={data:k,width:D,height:E},j=new Qm(100).encode(O,100);return g.processJPEG.call(this,j,p,y,I)},g.processGIF87A=g.processGIF89A}(xn.API),Sa.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var g=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(g);for(var m=0;m<g;m++){var p=this.datav.getUint8(this.pos++,!0),y=this.datav.getUint8(this.pos++,!0),I=this.datav.getUint8(this.pos++,!0),b=this.datav.getUint8(this.pos++,!0);this.palette[m]={red:I,green:y,blue:p,quad:b}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Sa.prototype.parseBGR=function(){this.pos=this.offset;try{var g="bit"+this.bitPP;this.data=new Uint8Array(this.width*this.height*4),this[g]()}catch(p){bi.log("bit decode error:"+p)}},Sa.prototype.bit1=function(){var g,m=Math.ceil(this.width/8),p=m%4;for(g=this.height-1;g>=0;g--){for(var y=this.bottom_up?g:this.height-1-g,I=0;I<m;I++)for(var b=this.datav.getUint8(this.pos++,!0),D=y*this.width*4+8*I*4,E=0;E<8&&8*I+E<this.width;E++){var k=this.palette[b>>7-E&1];this.data[D+4*E]=k.blue,this.data[D+4*E+1]=k.green,this.data[D+4*E+2]=k.red,this.data[D+4*E+3]=255}0!==p&&(this.pos+=4-p)}},Sa.prototype.bit4=function(){for(var g=Math.ceil(this.width/2),m=g%4,p=this.height-1;p>=0;p--){for(var y=this.bottom_up?p:this.height-1-p,I=0;I<g;I++){var b=this.datav.getUint8(this.pos++,!0),D=y*this.width*4+2*I*4,k=15&b,O=this.palette[b>>4];if(this.data[D]=O.blue,this.data[D+1]=O.green,this.data[D+2]=O.red,this.data[D+3]=255,2*I+1>=this.width)break;this.data[D+4]=(O=this.palette[k]).blue,this.data[D+4+1]=O.green,this.data[D+4+2]=O.red,this.data[D+4+3]=255}0!==m&&(this.pos+=4-m)}},Sa.prototype.bit8=function(){for(var g=this.width%4,m=this.height-1;m>=0;m--){for(var p=this.bottom_up?m:this.height-1-m,y=0;y<this.width;y++){var I=this.datav.getUint8(this.pos++,!0),b=p*this.width*4+4*y;if(I<this.palette.length){var D=this.palette[I];this.data[b]=D.red,this.data[b+1]=D.green,this.data[b+2]=D.blue,this.data[b+3]=255}else this.data[b]=255,this.data[b+1]=255,this.data[b+2]=255,this.data[b+3]=255}0!==g&&(this.pos+=4-g)}},Sa.prototype.bit15=function(){for(var g=this.width%3,m=parseInt("11111",2),p=this.height-1;p>=0;p--){for(var y=this.bottom_up?p:this.height-1-p,I=0;I<this.width;I++){var b=this.datav.getUint16(this.pos,!0);this.pos+=2;var D=(b&m)/m*255|0,E=(b>>5&m)/m*255|0,O=b>>15?255:0,j=y*this.width*4+4*I;this.data[j]=(b>>10&m)/m*255|0,this.data[j+1]=E,this.data[j+2]=D,this.data[j+3]=O}this.pos+=g}},Sa.prototype.bit16=function(){for(var g=this.width%3,m=parseInt("11111",2),p=parseInt("111111",2),y=this.height-1;y>=0;y--){for(var I=this.bottom_up?y:this.height-1-y,b=0;b<this.width;b++){var D=this.datav.getUint16(this.pos,!0);this.pos+=2;var E=(D&m)/m*255|0,k=(D>>5&p)/p*255|0,j=I*this.width*4+4*b;this.data[j]=(D>>11)/m*255|0,this.data[j+1]=k,this.data[j+2]=E,this.data[j+3]=255}this.pos+=g}},Sa.prototype.bit24=function(){for(var g=this.height-1;g>=0;g--){for(var m=this.bottom_up?g:this.height-1-g,p=0;p<this.width;p++){var y=this.datav.getUint8(this.pos++,!0),I=this.datav.getUint8(this.pos++,!0),b=this.datav.getUint8(this.pos++,!0),D=m*this.width*4+4*p;this.data[D]=b,this.data[D+1]=I,this.data[D+2]=y,this.data[D+3]=255}this.pos+=this.width%4}},Sa.prototype.bit32=function(){for(var g=this.height-1;g>=0;g--)for(var m=this.bottom_up?g:this.height-1-g,p=0;p<this.width;p++){var y=this.datav.getUint8(this.pos++,!0),I=this.datav.getUint8(this.pos++,!0),b=this.datav.getUint8(this.pos++,!0),D=this.datav.getUint8(this.pos++,!0),E=m*this.width*4+4*p;this.data[E]=b,this.data[E+1]=I,this.data[E+2]=y,this.data[E+3]=D}},Sa.prototype.getData=function(){return this.data}, 70/** 71 * @license 72 * Copyright (c) 2018 Aras Abbasi 73 * 74 * Licensed under the MIT License. 75 * http://opensource.org/licenses/mit-license 76 */ 77function(g){g.processBMP=function(m,p,y,I){var b=new Sa(m,!1),D=b.width,E=b.height,k={data:b.getData(),width:D,height:E},O=new Qm(100).encode(k,100);return g.processJPEG.call(this,O,p,y,I)}}(xn.API),bl.prototype.getData=function(){return this.data}, 78/** 79 * @license 80 * Copyright (c) 2019 Aras Abbasi 81 * 82 * Licensed under the MIT License. 83 * http://opensource.org/licenses/mit-license 84 */ 85function(g){g.processWEBP=function(m,p,y,I){var b=new bl(m,!1),D=b.width,E=b.height,k={data:b.getData(),width:D,height:E},O=new Qm(100).encode(k,100);return g.processJPEG.call(this,O,p,y,I)}}(xn.API),xn.API.processRGBA=function(g,m,p){for(var y=g.data,I=y.length,b=new Uint8Array(I/4*3),D=new Uint8Array(I/4),E=0,k=0,O=0;O<I;O+=4){var H=y[O+1],Q=y[O+2],N=y[O+3];b[E++]=y[O],b[E++]=H,b[E++]=Q,D[k++]=N}var G=this.__addimage__.arrayBufferToBinaryString(b);return{alpha:this.__addimage__.arrayBufferToBinaryString(D),data:G,index:m,alias:p,colorSpace:"DeviceRGB",bitsPerComponent:8,width:g.width,height:g.height}},xn.API.setLanguage=function(g){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[g]&&(this.internal.languageSettings.languageCode=g,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},a1=(Hd=xn.API).getCharWidthsArray=function(g,m){var p,y,I=(m=m||{}).font||this.internal.getFont(),b=m.fontSize||this.internal.getFontSize(),D=m.charSpace||this.internal.getCharSpace(),E=m.widths?m.widths:I.metadata.Unicode.widths,k=E.fof?E.fof:1,O=m.kerning?m.kerning:I.metadata.Unicode.kerning,j=O.fof?O.fof:1,H=!1!==m.doKerning,Q=0,N=g.length,G=0,K=E[0]||k,M=[];for(p=0;p<N;p++)y=g.charCodeAt(p),"function"==typeof I.metadata.widthOfString?M.push((I.metadata.widthOfGlyph(I.metadata.characterToGlyph(y))+D*(1e3/b)||0)/1e3):(Q=H&&"object"===Gn(O[y])&&!isNaN(parseInt(O[y][G],10))?O[y][G]/j:0,M.push((E[y]||K)/k+Q)),G=y;return M},f2=Hd.getStringUnitWidth=function(g,m){var p=(m=m||{}).fontSize||this.internal.getFontSize(),y=m.font||this.internal.getFont(),I=m.charSpace||this.internal.getCharSpace();return Hd.processArabic&&(g=Hd.processArabic(g)),"function"==typeof y.metadata.widthOfString?y.metadata.widthOfString(g,p,I)/p:a1.apply(this,arguments).reduce(function(b,D){return b+D},0)},p2=function(g,m,p,y){for(var I=[],b=0,D=g.length,E=0;b!==D&&E+m[b]<p;)E+=m[b],b++;I.push(g.slice(0,b));var k=b;for(E=0;b!==D;)E+m[b]>y&&(I.push(g.slice(k,b)),E=0,k=b),E+=m[b],b++;return k!==b&&I.push(g.slice(k,b)),I},g2=function(g,m,p){p||(p={});var y,I,b,D,E,k,j=[],H=[j],Q=p.textIndent||0,N=0,G=0,K=g.split(" "),M=a1.apply(this,[" ",p])[0];if(k=-1===p.lineIndent?K[0].length+2:p.lineIndent||0){var L=Array(k).join(" "),re=[];K.map(function(Me){(Me=Me.split(/\s*\n/)).length>1?re=re.concat(Me.map(function(Ge,wt){return(wt&&Ge.length?"\n":"")+Ge})):re.push(Me[0])}),K=re,k=f2.apply(this,[L,p])}for(b=0,D=K.length;b<D;b++){var be=0;if(y=K[b],k&&"\n"==y[0]&&(y=y.substr(1),be=1),Q+N+(G=(I=a1.apply(this,[y,p])).reduce(function(Me,Ge){return Me+Ge},0))>m||be){if(G>m){for(E=p2.apply(this,[y,I,m-(Q+N),m]),j.push(E.shift()),j=[E.pop()];E.length;)H.push([E.shift()]);G=I.slice(y.length-(j[0]?j[0].length:0)).reduce(function(Me,Ge){return Me+Ge},0)}else j=[y];H.push(j),Q=G+k,N=M}else j.push(y),Q+=N+G,N=M}return H.map(k?function(Me,Ge){return(Ge?L:"")+Me.join(" ")}:function(Me){return Me.join(" ")})},Hd.splitTextToSize=function(g,m,p){var y,I=(p=p||{}).fontSize||this.internal.getFontSize(),b=function(j){if(j.widths&&j.kerning)return{widths:j.widths,kerning:j.kerning};var H=this.internal.getFont(j.fontName,j.fontStyle);return H.metadata.Unicode?{widths:H.metadata.Unicode.widths||{0:1},kerning:H.metadata.Unicode.kerning||{}}:{font:H.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,p);y=Array.isArray(g)?g:String(g).split(/\r?\n/);var D=1*this.internal.scaleFactor*m/I;b.textIndent=p.textIndent?1*p.textIndent*this.internal.scaleFactor/I:0,b.lineIndent=p.lineIndent;var E,k,O=[];for(E=0,k=y.length;E<k;E++)O=O.concat(g2.apply(this,[y[E],D,b]));return O},function(g){g.__fontmetrics__=g.__fontmetrics__||{};for(var m="klmnopqrstuvwxyz",p={},y={},I=0;I<m.length;I++)p[m[I]]="0123456789abcdef"[I],y["0123456789abcdef"[I]]=m[I];var b=function(H){return"0x"+parseInt(H,10).toString(16)},D=g.__fontmetrics__.compress=function(H){var Q,N,G,K,M=["{"];for(var L in H){if(Q=H[L],isNaN(parseInt(L,10))?N="'"+L+"'":(L=parseInt(L,10),N=(N=b(L).slice(2)).slice(0,-1)+y[N.slice(-1)]),"number"==typeof Q)Q<0?(G=b(Q).slice(3),K="-"):(G=b(Q).slice(2),K=""),G=K+G.slice(0,-1)+y[G.slice(-1)];else{if("object"!==Gn(Q))throw new Error("Don't know what to do with value type "+Gn(Q)+".");G=D(Q)}M.push(N+G)}return M.push("}"),M.join("")},E=g.__fontmetrics__.uncompress=function(H){if("string"!=typeof H)throw new Error("Invalid argument passed to uncompress.");for(var Q,N,G,K,M={},L=1,re=M,be=[],Me="",Ge="",wt=H.length-1,Ne=1;Ne<wt;Ne+=1)"'"==(K=H[Ne])?Q?(G=Q.join(""),Q=void 0):Q=[]:Q?Q.push(K):"{"==K?(be.push([re,G]),re={},G=void 0):"}"==K?((N=be.pop())[0][N[1]]=re,G=void 0,re=N[0]):"-"==K?L=-1:void 0===G?p.hasOwnProperty(K)?(Me+=p[K],G=parseInt(Me,16)*L,L=1,Me=""):Me+=K:p.hasOwnProperty(K)?(Ge+=p[K],re[G]=parseInt(Ge,16)*L,L=1,G=void 0,Ge=""):Ge+=K;return M},k={codePages:["WinAnsiEncoding"],WinAnsiEncoding:E("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},O={Unicode:{Courier:k,"Courier-Bold":k,"Courier-BoldOblique":k,"Courier-Oblique":k,Helvetica:k,"Helvetica-Bold":k,"Helvetica-BoldOblique":k,"Helvetica-Oblique":k,"Times-Roman":k,"Times-Bold":k,"Times-BoldItalic":k,"Times-Italic":k}},j={Unicode:{"Courier-Oblique":E("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":E("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}
855r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":E("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4y
85dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:E("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":E("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":E("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:E("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:E("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4y
85dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":E("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4y
85dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:E("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":E("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":E("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}
85fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":E("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":E("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4y
vendor: 9,461 bytes, lines 85-117
85dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};g.events.push(["addFont",function(H){var Q=H.font,N=j.Unicode[Q.postScriptName];N&&(Q.metadata.Unicode={},Q.metadata.Unicode.widths=N.widths,Q.metadata.Unicode.kerning=N.kerning);var G=O.Unicode[Q.postScriptName];G&&(Q.metadata.Unicode.encoding=G,Q.encoding=G.codePages[0])}])}(xn.API), 86/** 87 * @license 88 * Licensed under the MIT License. 89 * http://opensource.org/licenses/mit-license 90 */ 91function(g){var m=function(p){for(var y=p.length,I=new Uint8Array(y),b=0;b<y;b++)I[b]=p.charCodeAt(b);return I};g.API.events.push(["addFont",function(p){var D,E,y=void 0,I=p.font,b=p.instance;if(!I.isStandardFont){if(void 0===b)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+I.postScriptName+"').");if("string"!=typeof(y=!1===b.existsFileInVFS(I.postScriptName)?b.loadFile(I.postScriptName):b.getFileFromVFS(I.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+I.postScriptName+"').");D=I,E=/^\x00\x01\x00\x00/.test(E=y)?m(E):m(Fc(E)),D.metadata=g.API.TTFFont.open(E),D.metadata.Unicode=D.metadata.Unicode||{encoding:{},kerning:{},widths:[]},D.metadata.glyIdsUsed=[0]}}])}(xn),xn.API.addSvgAsImage=function(p,y,I,b,D,E,k,O){if(isNaN(y)||isNaN(I))throw bi.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(b)||isNaN(D))throw bi.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var j=document.createElement("canvas");j.width=b,j.height=D;var H=j.getContext("2d");H.fillStyle="#fff",H.fillRect(0,0,j.width,j.height);var Q={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},N=this;return function m(){return(bn.canvg?Promise.resolve(bn.canvg):Wr.e(603).then(Wr.bind(Wr,1603))).catch(function(p){return Promise.reject(new Error("Could not load canvg: "+p))}).then(function(p){return p.default?p.default:p})}().then(function(G){return G.fromString(H,p,Q)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(G){return G.render(Q)}).then(function(){N.addImage(j.toDataURL("image/jpeg",1),y,I,b,D,k,O)})},xn.API.putTotalPages=function(g){var m,p=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(m=new RegExp(g,"g"),p=this.internal.getNumberOfPages()):(m=new RegExp(this.pdfEscape16(g,this.internal.getFont()),"g"),p=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var y=1;y<=this.internal.getNumberOfPages();y++)for(var I=0;I<this.internal.pages[y].length;I++)this.internal.pages[y][I]=this.internal.pages[y][I].replace(m,p);return this},xn.API.viewerPreferences=function(g,m){var p;g=g||{},m=m||!1;var y,I,b,D={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},E=Object.keys(D),k=[],O=0,j=0,H=0;function Q(G,K){var M,L=!1;for(M=0;M<G.length;M+=1)G[M]===K&&(L=!0);return L}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(D)),this.internal.viewerpreferences.isSubscribed=!1),p=this.internal.viewerpreferences.configuration,"reset"===g||!0===m){var N=E.length;for(H=0;H<N;H+=1)p[E[H]].value=p[E[H]].defaultValue,p[E[H]].explicitSet=!1}if("object"===Gn(g))for(I in g)if(b=g[I],Q(E,I)&&void 0!==b){if("boolean"===p[I].type&&"boolean"==typeof b)p[I].value=b;else if("name"===p[I].type&&Q(p[I].valueSet,b))p[I].value=b;else if("integer"===p[I].type&&Number.isInteger(b))p[I].value=b;else if("array"===p[I].type){for(O=0;O<b.length;O+=1)if(y=!0,1===b[O].length&&"number"==typeof b[O][0])k.push(String(b[O]-1));else if(b[O].length>1){for(j=0;j<b[O].length;j+=1)"number"!=typeof b[O][j]&&(y=!1);!0===y&&k.push([b[O][0]-1,b[O][1]-1].join(" "))}p[I].value="["+k.join(" ")+"]"}else p[I].value=p[I].defaultValue;p[I].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){var G,K=[];for(G in p)!0===p[G].explicitSet&&K.push("name"===p[G].type?"/"+G+" /"+p[G].value:"/"+G+" "+p[G].value);0!==K.length&&this.internal.write("/ViewerPreferences\n<<\n"+K.join("\n")+"\n>>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=p,this}, 92/** ==================================================================== 93 * @license 94 * jsPDF XMP metadata plugin 95 * Copyright (c) 2016 Jussi Utunen, [email protected] 96 * 97 * Permission is hereby granted, free of charge, to any person obtaining 98 * a copy of this software and associated documentation files (the 99 * "Software"), to deal in the Software without restriction, including 100 * without limitation the rights to use, copy, modify, merge, publish, 101 * distribute, sublicense, and/or sell copies of the Software, and to 102 * permit persons to whom the Software is furnished to do so, subject to 103 * the following conditions: 104 * 105 * The above copyright notice and this permission notice shall be 106 * included in all copies or substantial portions of the Software. 107 * 108 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 109 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 110 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 111 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 112 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 113 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 114 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 115 * ==================================================================== 116 */ 117function(g){var m=function(){var y='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',I=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),b=unescape(encodeURIComponent(y)),D=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),E=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),k=unescape(encodeURIComponent("</x:xmpmeta>
117")),O=b.length+D.length+E.length+I.length+k.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+O+" >>"),this.internal.write("stream"),this.internal.write(I+b+D+E+k),this.internal.write("endstream"),this.internal.write("endobj")},p=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};g.addMetadata=function(y,I){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:y,namespaceuri:I||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",p),this.internal.events.subscribe("postPutResources",m)),this}}(xn.API),function(g){var m=g.API,p=m.pdfEscape16=function(b,D){for(var E,k=D.metadata.Unicode.widths,O=["","0","00","000","0000"],j=[""],H=0,Q=b.length;H<Q;++H){if(E=D.metadata.characterToGlyph(b.charCodeAt(H)),D.metadata.glyIdsUsed.push(E),D.metadata.toUnicode[E]=b.charCodeAt(H),-1==k.indexOf(E)&&(k.push(E),k.push([parseInt(D.metadata.widthOfGlyph(E),10)])),"0"==E)return j.join("");E=E.toString(16),j.push(O[4-E.length],E)}return j.join("")},y=function(b){var D,E,k,O,j,H,Q;for(j="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",k=[],H=0,Q=(E=Object.keys(b).sort(function(N,G){return N-G})).length;H<Q;H++)D=E[H],k.length>=100&&(j+="\n"+k.length+" beginbfchar\n"+k.join("\n")+"\nendbfchar",k=[]),null!=b[D]&&"function"==typeof b[D].toString&&(O=("0000"+b[D].toString(16)).slice(-4),D=("0000"+(+D).toString(16)).slice(-4),k.push("<"+D+"><"+O+">"));return k.length&&(j+="\n"+k.length+" beginbfchar\n"+k.join("\n")+"\nendbfchar\n"),j+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};m.events.push(["putFont",function(b){!function(D){var E=D.font,k=D.out,O=D.newObject,j=D.putStream;if(E.metadata instanceof g.API.TTFFont&&"Identity-H"===E.encoding){for(var H=E.metadata.Unicode.widths,Q=E.metadata.subset.encode(E.metadata.glyIdsUsed,1),N="",G=0;G<Q.length;G++)N+=String.fromCharCode(Q[G]);var K=O();j({data:N,addLength1:!0,objectId:K}),k("endobj");var M=O();j({data:y(E.metadata.toUnicode),addLength1:!0,objectId:M}),k("endobj");var L=O();k("<<"),k("/Type /FontDescriptor"),k("/FontName /"+Yl(E.fontName)),k("/FontFile2 "+K+" 0 R"),k("/FontBBox "+g.API.PDFObject.convert(E.metadata.bbox)),k("/Flags "+E.metadata.flags),k("/StemV "+E.metadata.stemV),k("/ItalicAngle "+E.metadata.italicAngle),k("/Ascent "+E.metadata.ascender),k("/Descent "+E.metadata.decender),k("/CapHeight "+E.metadata.capHeight),k(">>"),k("endobj");var re=O();k("<<"),k("/Type /Font"),k("/BaseFont /"+Yl(E.fontName)),k("/FontDescriptor "+L+" 0 R"),k("/W "+g.API.PDFObject.convert(H)),k("/CIDToGIDMap /Identity"),k("/DW 1000"),k("/Subtype /CIDFontType2"),k("/CIDSystemInfo"),k("<<"),k("/Supplement 0"),k("/Registry (Adobe)"),k("/Ordering ("+E.encoding+")"),k(">>"),k(">>"),k("endobj"),E.objectNumber=O(),k("<<"),k("/Type /Font"),k("/Subtype /Type0"),k("/ToUnicode "+M+" 0 R"),k("/BaseFont /"+Yl(E.fontName)),k("/Encoding /"+E.encoding),k("/DescendantFonts ["+re+" 0 R]"),k(">>"),k("endobj"),E.isAlreadyPutted=!0}}(b)}]),m.events.push(["putFont",function(b){!function(D){var E=D.font,k=D.out,O=D.newObject,j=D.putStream;if(E.metadata instanceof g.API.TTFFont&&"WinAnsiEncoding"===E.encoding){for(var H=E.metadata.rawData,Q="",N=0;N<H.length;N++)Q+=String.fromCharCode(H[N]);var G=O();j({data:Q,addLength1:!0,objectId:G}),k("endobj");var K=O();j({data:y(E.metadata.toUnicode),addLength1:!0,objectId:K}),k("endobj");var M=O();k("<<"),k("/Descent "+E.metadata.decender),k("/CapHeight "+E.metadata.capHeight),k("/StemV "+E.metadata.stemV),k("/Type /FontDescriptor"),k("/FontFile2 "+G+" 0 R"),k("/Flags 96"),k("/FontBBox "+g.API.PDFObject.convert(E.metadata.bbox)),k("/FontName /"+Yl(E.fontName)),k("/ItalicAngle "+E.metadata.italicAngle),k("/Ascent "+E.metadata.ascender),k(">>"),k("endobj"),E.objectNumber=O();for(var L=0;L<E.metadata.hmtx.widths.length;L++)E.metadata.hmtx.widths[L]=parseInt(E.metadata.hmtx.widths[L]*(1e3/E.metadata.head.unitsPerEm));k("<</Subtype/TrueType/Type/Font/ToUnicode "+K+" 0 R/BaseFont/"+Yl(E.fontName)+"/FontDescriptor "+M+" 0 R/Encoding/"+E.encoding+" /FirstChar 29 /LastChar 255 /Widths "+g.API.PDFObject.convert(E.metadata.hmtx.widths)+">>"),k("endobj"),E.isAlreadyPutted=!0}}(b)}]);var I=function(b){var D,E=b.text||"",k=b.x,O=b.y,j=b.options||{},H=b.mutex||{},Q=H.pdfEscape,N=H.activeFontKey,G=H.fonts,K=N,M="",L=0,re="",be=G[K].encoding;if("Identity-H"!==G[K].encoding)return{text:E,x:k,y:O,options:j,mutex:H};for(re=E,K=N,Array.isArray(E)&&(re=E[0]),L=0;L<re.length;L+=1)G[K].metadata.hasOwnProperty("cmap")&&(D=G[K].metadata.cmap.unicode.codeMap[re[L].charCo
vendor: 37,902 bytes, lines 117-131
117deAt(0)]),D||re[L].charCodeAt(0)<256&&G[K].metadata.hasOwnProperty("Unicode")?M+=re[L]:M+="";var Me="";return parseInt(K.slice(1))<14||"WinAnsiEncoding"===be?Me=Q(M,K).split("").map(function(Ge){return Ge.charCodeAt(0).toString(16)}).join(""):"Identity-H"===be&&(Me=p(M,G[K])),H.isHex=!0,{text:Me,x:k,y:O,options:j,mutex:H}};m.events.push(["postProcessText",function(b){var D=b.text||"",E=[],k={text:D,x:b.x,y:b.y,options:b.options,mutex:b.mutex};if(Array.isArray(D)){var O=0;for(O=0;O<D.length;O+=1)Array.isArray(D[O])&&3===D[O].length?E.push([I(Object.assign({},k,{text:D[O][0]})).text,D[O][1],D[O][2]]):E.push(I(Object.assign({},k,{text:D[O]})).text);b.text=E}else b.text=I(Object.assign({},k,{text:D})).text}])}(xn), 118/** 119 * @license 120 * jsPDF virtual FileSystem functionality 121 * 122 * Licensed under the MIT License. 123 * http://opensource.org/licenses/mit-license 124 */ 125function(g){var m=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};g.existsFileInVFS=function(p){return m.call(this),void 0!==this.internal.vFS[p]},g.addFileToVFS=function(p,y){return m.call(this),this.internal.vFS[p]=y,this},g.getFileFromVFS=function(p){return m.call(this),void 0!==this.internal.vFS[p]?this.internal.vFS[p]:null}}(xn.API), 126/** 127 * @license 128 * Unicode Bidi Engine based on the work of Alex Shensis (@asthensis) 129 * MIT License 130 */ 131function(g){g.__bidiEngine__=g.prototype.__bidiEngine__=function(y){var I,b,D,E,k,O,j,H=m,Q=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],N=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],G={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},K={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},M=["(",")","(","<",">","<","[","]","[","{","}","{","\xab","\xbb","\xab","\u2039","\u203a","\u2039","\u2045","\u2046","\u2045","\u207d","\u207e","\u207d","\u208d","\u208e","\u208d","\u2264","\u2265","\u2264","\u2329","\u232a","\u2329","\ufe59","\ufe5a","\ufe59","\ufe5b","\ufe5c","\ufe5b","\ufe5d","\ufe5e","\ufe5d","\ufe64","\ufe65","\ufe64"],L=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),re=!1,be=0;this.__bidiEngine__={};var Me=function(ee){var te=ee.charCodeAt(),ye=te>>8,me=K[ye];return void 0!==me?H[256*me+(255&te)]:252===ye||253===ye?"AL":L.test(ye)?"L":8===ye?"R":"N"},Ge=function(ee){for(var te,ye=0;ye<ee.length;ye++){if("L"===(te=Me(ee.charAt(ye))))return!1;if("R"===te)return!0}return!1},wt=function(ee,te,ye,me){var Ye,tt,rt,ze,lt=te[me];switch(lt){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":re=!1;break;case"N":case"AN":break;case"EN":re&&(lt="AN");break;case"AL":re=!0,lt="R";break;case"WS":case"BN":lt="N";break;case"CS":me<1||me+1>=te.length||"EN"!==(Ye=ye[me-1])&&"AN"!==Ye||"EN"!==(tt=te[me+1])&&"AN"!==tt?lt="N":re&&(tt="AN"),lt=tt===Ye?tt:"N";break;case"ES":lt="EN"===(Ye=me>0?ye[me-1]:"B")&&me+1<te.length&&"EN"===te[me+1]?"EN":"N";break;case"ET":if(me>0&&"EN"===ye[me-1]){lt="EN";break}if(re){lt="N";break}for(rt=me+1,ze=te.length;rt<ze&&"ET"===te[rt];)rt++;lt=rt<ze&&"EN"===te[rt]?"EN":"N";break;case"NSM":if(D&&!E){for(ze=te.length,rt=me+1;rt<ze&&"NSM"===te[rt];)rt++;if(rt<ze){var ft=ee[me];if(Ye=te[rt],(ft>=1425&&ft<=2303||64286===ft)&&("R"===Ye||"AL"===Ye)){lt="R";break}}}lt=me<1||"B"===(Ye=te[me-1])?"N":ye[me-1];break;case"B":re=!1,I=!0,lt=be;break;case"S":b=!0,lt="N"}return lt},Ne=function(ee,te,ye){var me=ee.split("");return ye&&pe(me,ye,{hiLevel:be}),me.reverse(),te&&te.reverse(),me.join("")},pe=function(ee,te,ye){var me,Ye,tt,rt,ze,lt=-1,ft=ee.length,$t=0,Z=[],se=be?N:Q,ue=[];for(re=!1,I=!1,b=!1,Ye=0;Ye<ft;Ye++)ue[Ye]=Me(ee[Ye]);for(tt=0;tt<ft;tt++){if(ze=$t,Z[tt]=wt(ee,ue,Z,tt),me=240&($t=se[ze][G[Z[tt]]]),te[tt]=rt=se[$t&=15][5],me>0)if(16===me){for(Ye=lt;Ye<tt;Ye++)te[Ye]=1;lt=-1}else lt=-1;if(se[$t][6])-1===lt&&(lt=tt);else if(lt>-1){for(Ye=lt;Ye<tt;Ye++)te[Ye]=rt;lt=-1}"B"===ue[tt]&&(te[tt]=0),ye.hiLevel|=rt}b&&function(_e,Ee,$e){for(var Ke=0;Ke<$e;Ke++)if("S"===_e[Ke]){Ee[Ke]=be;for(var et=Ke-1;et>=0&&"WS"===_e[et];et--)Ee[et]=be}}(ue,te,ft)},He=function(ee,te,ye,me,Ye){if(!(Ye.hiLevel<ee)){if(1===ee&&1===be&&!I)return te.reverse(),void(ye&&ye.reverse());for(var tt,rt,ze,lt,ft=te.length,$t=0;$t<ft;){if(me[$t]>=ee){for(ze=$t+1;ze<ft&&me[ze]>=ee;)ze++;for(lt=$t,rt=ze-1;lt<rt;lt++,rt--)tt=te[lt],te[lt]=te[rt],te[rt]=tt,ye&&(tt=ye[lt],ye[lt]=ye[rt],ye[rt]=tt);$t=ze}$t++}}},st=function(ee,te,ye){var me=ee.split(""),Ye={hiLevel:be};return ye||(ye=[]),pe(me,ye,Ye),function(tt,rt,ze){if(0!==ze.hiLevel&&j)for(var lt,ft=0;ft<tt.length;ft++)1===rt[ft]&&(lt=M.indexOf(tt[ft]))>=0&&(tt[ft]=M[lt+1])}(me,ye,Ye),He(2,me,te,ye,Ye),He(1,me,te,ye,Ye),me.join("")};return this.__bidiEngine__.doBidiReorder=function(ee,te,ye){if(function(Ye,tt){if(tt)for(var rt=0;rt<Ye.length;rt++)tt[rt]=rt;void 0===E&&(E=Ge(Ye)),void 0===O&&(O=Ge(Ye))}(ee,te),D||!k||O)if(D&&k&&E^O)be=E?1:0,ee=Ne(ee,te,ye);else if(!D&&k&&O)be=E?1:0,ee=st(ee,te,ye),ee=Ne(ee,te);else if(!D||E||k||O){if(D&&!k&&E^O)ee=Ne(ee,te),E?(be=0,ee=st(ee,te,ye)):(be=1,ee=st(ee,te,ye),ee=Ne(ee,te));else if(D&&E&&!k&&O)be=1,ee=st(ee,te,ye),ee=Ne(ee,te);else if(!D&&!k&&E^O){var me=j;E?(be=1,ee=st(ee,te,ye),be=0,j=!1,ee=st(ee,te,ye),j=me):(be=0,ee=st(ee,te,ye),ee=Ne(ee,te),be=1,j=!1,ee=st(ee,te,ye),j=me,ee=Ne(ee,te))}}else be=0,ee=st(ee,te,ye);else be=E?1:0,ee=st(ee,te,ye);return ee},this.__bidiEngine__.setOptions=function(ee){ee&&(D=ee.isInputVisual,k=ee.isOutputVisual,E=ee.isInputRtl,O=ee.isOutputRtl,j=ee.isSymmetricSwapping)},this.__bidiEngine__.setOptions(y),this.__bidiEngine__};var m=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],p=new g.__bidiEngine__({isInputVisual:!0});g.API.events.push(["postProcessText",function(y){var I=y.text,b=y.options||{},D=[];if(b.isInputVisual="boolean"!=typeof b.isInputVisual||b.isInputVisual,p.setOptions(b),"[object Array]"===Object.prototype.toString.call(I)){var E=0;for(D=[],E=0;E<I.length;E+=1)"[object Array]"===Object.prototype.toString.call(I[E])?D.push([p.doBidiReorder(I[E][0]),I[E][1],I[E][2]]):D.push([p.doBidiReorder(I[E])]);y.text=D}else y.text=p.doBidiReorder(I);p.setOptions({isInputVisual:!0})}])}(xn),xn.API.TTFFont=function(){function g(m){var p;if(this.rawData=m,p=this.contents=new br(m),this.contents.pos=4,"ttcf"===p.readString(4))throw new Error("TTCF not supported.");p.pos=0,this.parse(),this.subset=new Vo(this),this.registerTTF()}return g.open=function(m){return new g(m)},g.prototype.parse=function(){return this.directory=new Ym(this.contents),this.head=new Km(this),this.name=new tf(this),this.cmap=new Xm(this),this.toUnicode={},this.hhea=new c1(this),this.maxp=new mo(this),this.hmtx=new y2(this),this.post=new As(this),this.os2=new C2(this),this.loca=new Hc(this),this.glyf=new es(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},g.prototype.registerTTF=function(){var p,y,I,b;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var D,E,k,O;for(O=[],D=0,E=(k=this.bbox).length;D<E;D++)O.push(Math.round(k[D]*this.scaleFactor));return O}.call(this),this.stemV=0,this.post.exists?(y=255&(I=this.post.italic_angle),32768&(p=I>>16)&&(p=-(1+(65535^p))),this.italicAngle=+(p+"."+y)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(b=this.familyClass)||2===b||3===b||4===b||5===b||7===b,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},g.prototype.characterToGlyph=function(m){var p;return(null!=(p=this.cmap.unicode)?p.codeMap[m]:void 0)||0},g.prototype.widthOfGlyph=function(m){var p;return p=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(m).advance*p},g.prototype.widthOfString=function(m,p,y){var I,b,D,E;for(D=0,b=0,E=(m=""+m).length;0<=E?b<E:b>E;b=0<=E?++b:--b)I=m.charCodeAt(b),D+=this.widthOfGlyph(this.characterToGlyph(I))+y*(1e3/p)||0;return D*(p/1e3)},g.prototype.lineHeight=function(m,p){return null==p&&(p=!1),(this.ascender+(p?this.lineGap:0)-this.decender)/1e3*m},g}();var Fs,br=function(){function g(m){this.data=m??[],this.pos=0,this.length=this.data.length}return g.prototype.readByte=function(){return this.data[this.pos++]},g.prototype.writeByte=function(m){return this.data[this.pos++]=m},g.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},g.prototype.writeUInt32=function(m){return this.writeByte(m>>>24&255),this.writeByte(m>>16&255),this.writeByte(m>>8&255),this.writeByte(255&m)},g.prototype.readInt32=function(){var m;return(m=this.readUInt32())>=2147483648?m-4294967296:m},g.prototype.writeInt32=function(m){return m<0&&(m+=4294967296),this.writeUInt32(m)},g.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},g.prototype.writeUInt16=function(m){return this.writeByte(m>>8&255),this.writeByte(255&m)},g.prototype.readInt16=function(){var m;return(m=this.readUInt16())>=32768?m-65536:m},g.prototype.writeInt16=function(m){return m<0&&(m+=65536),this.writeUInt16(m)},g.prototype.readString=function(m){var p,y;for(y=[],p=0;0<=m?p<m:p>m;p=0<=m?++p:--p)y[p]=String.fromCharCode(this.readByte());return y.join("")},g.prototype.writeString=function(m){var p,y,I;for(I=[],p=0,y=m.length;0<=y?p<y:p>y;p=0<=y?++p:--p)I.push(this.writeByte(m.charCodeAt(p)));return I},g.prototype.readShort=function(){return this.readInt16()},g.prototype.writeShort=function(m){return this.writeInt16(m)},g.prototype.readLongLong=function(){var m,p,y,I,b,D,E,k;return m=this.readByte(),p=this.readByte(),y=this.readByte(),I=this.readByte(),b=this.readByte(),D=this.readByte(),E=this.readByte(),k=this.readByte(),128&m?-1*(72057594037927940*(255^m)+281474976710656*(255^p)+1099511627776*(255^y)+4294967296*(255^I)+16777216*(255^b)+65536*(255^D)+256*(255^E)+(255^k)+1):72057594037927940*m+281474976710656*p+1099511627776*y+4294967296*I+16777216*b+65536*D+256*E+k},g.prototype.writeLongLong=function(m){var p,y;return p=Math.floor(m/4294967296),y=4294967295&m,this.writeByte(p>>24&255),this.writeByte(p>>16&255),this.writeByte(p>>8&255),this.writeByte(255&p),this.writeByte(y>>24&255),this.writeByte(y>>16&255),this.writeByte(y>>8&255),this.writeByte(255&y)},g.prototype.readInt=function(){return this.readInt32()},g.prototype.writeInt=function(m){return this.writeInt32(m)},g.prototype.read=function(m){var p,y;for(p=[],y=0;0<=m?y<m:y>m;y=0<=m?++y:--y)p.push(this.readByte());return p},g.prototype.write=function(m){var y,I,b;for(b=[],y=0,I=m.length;y<I;y++)b.push(this.writeByte(m[y]));return b},g}(),Ym=function(){var g;function m(p){var y,I,b;for(this.scalarType=p.readInt(),this.tableCount=p.readShort(),this.searchRange=p.readShort(),this.entrySelector=p.readShort(),this.rangeShift=p.readShort(),this.tables={},I=0,b=this.tableCount;0<=b?I<b:I>b;I=0<=b?++I:--I)y={tag:p.readString(4),checksum:p.readInt(),offset:p.readInt(),length:p.readInt()},this.tables[y.tag]=y}return m.prototype.encode=function(p){var y,I,D,E,k,O,j,H,Q,N,G,K;for(K in N=Object.keys(p).length,k=Math.log(2),H=16*Math.floor(Math.log(N)/k),D=Math.floor(H/k),j=16*N-H,(I=new br).writeInt(this.scalarType),I.writeShort(N),I.writeShort(H),I.writeShort(D),I.writeShort(j),O=I.pos+16*N,E=null,G=[],p)for(Q=p[K],I.writeString(K),I.writeInt(g(Q)),I.writeInt(O),I.writeInt(Q.length),G=G.concat(Q),"head"===K&&(E=O),O+=Q.length;O%4;)G.push(0),O++;return I.write(G),y=2981146554-g(I.data),I.pos=E+8,I.writeUInt32(y),I.data},g=function(p){var y,I,b,D;for(p=zd.call(p);p.length%4;)p.push(0);for(b=new br(p),I=0,y=0,D=p.length;y<D;y=y+=4)I+=b.readUInt32();return 4294967295&I},m}(),_2={}.hasOwnProperty,wa=function(g,m){for(var p in m)_2.call(m,p)&&(g[p]=m[p]);function y(){this.constructor=g}return y.prototype=m.prototype,g.prototype=new y,g.__super__=m.prototype,g};Fs=function(){function g(m){var p;this.file=m,this.exists=!!(p=this.file.directory.tables[this.tag]),p&&(this.offset=p.offset,this.length=p.length,this.parse(this.file.contents))}return g.prototype.parse=function(){},g.prototype.encode=function(){},g.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},g}();var Km=function(g){function m(){return m.__super__.constructor.apply(this,arguments)}return wa(m,Fs),m.prototype.tag="head",m.prototype.parse=function(p){return p.pos=this.offset,this.version=p.readInt(),this.revision=p.readInt(),this.checkSumAdjustment=p.readInt(),this.magicNumber=p.readInt(),this.flags=p.readShort(),this.unitsPerEm=p.readShort(),this.created=p.readLongLong(),this.modified=p.readLongLong(),this.xMin=p.readShort(),this.yMin=p.readShort(),this.xMax=p.readShort(),this.yMax=p.readShort(),this.macStyle=p.readShort(),this.lowestRecPPEM=p.readShort(),this.fontDirectionHint=p.readShort(),this.indexToLocFormat=p.readShort(),this.glyphDataFormat=p.readShort()},m.prototype.encode=function(p){var y;return(y=new br).writeInt(this.version),y.writeInt(this.revision),y.writeInt(this.checkSumAdjustment),y.writeInt(this.magicNumber),y.writeShort(this.flags),y.writeShort(this.unitsPerEm),y.writeLongLong(this.created),y.writeLongLong(this.modified),y.writeShort(this.xMin),y.writeShort(this.yMin),y.writeShort(this.xMax),y.writeShort(this.yMax),y.writeShort(this.macStyle),y.writeShort(this.lowestRecPPEM),y.writeShort(this.fontDirectionHint),y.writeShort(p),y.writeShort(this.glyphDataFormat),y.data},m}(),l1=function(){function g(m,p){var y,I,b,D,E,k,O,j,H,Q,N,G,K,M,L,re,be;switch(this.platformID=m.readUInt16(),this.encodingID=m.readShort(),this.offset=p+m.readInt(),H=m.pos,m.pos=this.offset,this.format=m.readUInt16(),this.length=m.readUInt16(),this.language=m.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(k=0;k<256;++k)this.codeMap[k]=m.readByte();break;case 4:for(N=m.readUInt16(),Q=N/2,m.pos+=6,b=function(){var Me,Ge;for(Ge=[],k=Me=0;0<=Q?Me<Q:Me>Q;k=0<=Q?++Me:--Me)Ge.push(m.readUInt16());return Ge}(),m.pos+=2,K=function(){var Me,Ge;for(Ge=[],k=Me=0;0<=Q?Me<Q:Me>Q;k=0<=Q?++Me:--Me)Ge.push(m.readUInt16());return Ge}(),O=function(){var Me,Ge;for(Ge=[],k=Me=0;0<=Q?Me<Q:Me>Q;k=0<=Q?++Me:--Me)Ge.push(m.readUInt16());return Ge}(),j=function(){var Me,Ge;for(Ge=[],k=Me=0;0<=Q?Me<Q:Me>Q;k=0<=Q?++Me:--Me)Ge.push(m.readUInt16());return Ge}(),I=(this.length-m.pos+this.offset)/2,E=function(){var Me,Ge;for(Ge=[],k=Me=0;0<=I?Me<I:Me>I;k=0<=I?++Me:--Me)Ge.push(m.readUInt16());return Ge}(),k=L=0,be=b.length;L<be;k=++L)for(M=b[k],y=re=G=K[k];G<=M?re<=M:re>=M;y=G<=M?++re:--re)0===j[k]?D=y+O[k]:0!==(D=E[j[k]/2+(y-G)-(Q-k)]||0)&&(D+=O[k]),this.codeMap[y]=65535&D}m.pos=H}return g.encode=function(m,p){var y,I,b,D,E,k,O,j,H,Q,N,G,K,M,L,re,be,Ge,wt,Ne,pe,He,st,ee,te,ye,me,Ye,tt,rt,ze,lt,ft,$t,Z,se,ue,_e,Ee,$e,Ke,et,Rt,kt,Gt;switch(me=new br,D=Object.keys(m).sort(function(Ht,mn){return Ht-mn}),p){case"macroman":for(K=0,M=function(){var Ht=[];for(G=0;G<256;++G)Ht.push(0);return Ht}(),re={0:0},b={},Ye=0,lt=D.length;Ye<lt;Ye++)null==re[et=m[I=D[Ye]]]&&(re[et]=++K),b[I]={old:m[I],new:re[m[I]]},M[I]=re[m[I]];return me.writeUInt16(1),me.writeUInt16(0),me.writeUInt32(12),me.writeUInt16(0),me.writeUInt16(262),me.writeUInt16(0),me.write(M),{charMap:b,subtable:me.data,maxGlyphID:K+1};case"unicode":for(te=[],H=[],be=0,re={},y={},L=O=null,tt=0,ft=D.length;tt<ft;tt++)null==re[Ge=m[I=D[tt]]]&&(re[Ge]=++be),y[I]={old:Ge,new:re[Ge]},E=re[Ge]-I,null!=L&&E===O||(L&&H.push(L),te.push(I),O=E),L=I;for(L&&H.push(L),H.push(65535),te.push(65535),st=2*(He=te.length),pe=2*Math.pow(Math.log(He)/Math.LN2,2),Q=Math.log(pe/2)/Math.LN2,Ne=2*He-pe,k=[],wt=[],N=[],G=rt=0,$t=te.length;rt<$t;G=++rt){if(j=H[G],65535===(ee=te[G])){k.push(0),wt.push(0);break}if(ee-(ye=y[ee].new)>=32768)for(k.push(0),wt.push(2*(N.length+He-G)),I=ze=ee;ee<=j?ze<=j:ze>=j;I=ee<=j?++ze:--ze)N.push(y[I].new);else k.push(ye-ee),wt.push(0)}for(me.writeUInt16(3),me.writeUInt16(1),me.writeUInt32(12),me.writeUInt16(4),me.writeUInt16(16+8*He+2*N.length),me.writeUInt16(0),me.writeUInt16(st),me.writeUInt16(pe),me.writeUInt16(Q),me.writeUInt16(Ne),$e=0,Z=H.length;$e<Z;$e++)me.writeUInt16(I=H[$e]);for(me.writeUInt16(0),Ke=0,se=te.length;Ke<se;Ke++)me.writeUInt16(I=te[Ke]);for(Rt=0,ue=k.length;Rt<ue;Rt++)me.writeUInt16(E=k[Rt]);for(kt=0,_e=wt.length;kt<_e;kt++)me.writeUInt16(wt[kt]);for(Gt=0,Ee=N.length;Gt<Ee;Gt++)me.writeUInt16(K=N[Gt]);return{charMap:y,subtable:me.data,maxGlyphID:be+1}}},g}(),Xm=function(g){function m(){return m.__super__.constructor.apply(this,arguments)}return wa(m,Fs),m.prototype.tag="cmap",m.prototype.parse=function(p){var y,I,b;for(p.pos=this.offset,this.version=p.readUInt16(),b=p.readUInt16(),this.tables=[],this.unicode=null,I=0;0<=b?I<b:I>b;I=0<=b?++I:--I)y=new l1(p,this.offset),this.tables.push(y),y.isUnicode&&null==this.unicode&&(this.unicode=y);return!0},m.encode=function(p,y){var I,b;return null==y&&(y="macroman"),I=l1.encode(p,y),(b=new br).writeUInt16(0),b.writeUInt16(1),I.table=b.data.concat(I.subtable),I},m}(),c1=function(g){function m(){return m.__super__.constructor.apply(this,arguments)}return wa(m,Fs),m.prototype.tag="hhea",m.prototype.parse=function(p){return p.pos=this.offset,this.version=p.readInt(),this.ascender=p.readShort(),this.decender=p.readShort(),this.lineGap=p.readShort(),this.advanceWidthMax=p.readShort(),this.minLeftSideBearing=p.readShort(),this.minRightSideBearing=p.readShort(),this.xMaxExtent=p.readShort(),this.caretSlopeRise=p.readShort(),this.caretSlopeRun=p.readShort(),this.caretOffset=p.readShort(),p.pos+=8,this.metricDataFormat=p.readShort(),this.numberOfMetrics=p.readUInt16()},m}(),C2=function(g){function m(){return m.__super__.constructor.apply(this,arguments)}return wa(m,Fs),m.prototype.tag="OS/2",m.prototype.parse=function(p){if(p.pos=this.offset,this.version=p.readUInt16(),this.averageCharWidth=p.readShort(),this.weightClass=p.readUInt16(),this.widthClass=p.readUInt16(),this.type=p.readShort(),this.ySubscriptXSize=p.readShort(),this.ySubscriptYSize=p.readShort(),this.ySubscriptXOffset=p.readShort(),this.ySubscriptYOffset=p.readShort(),this.ySuperscriptXSize=p.readShort(),this.ySuperscriptYSize=p.readShort(),this.ySuperscriptXOffset=p.readShort(),this.ySuperscriptYOffset=p.readShort(),this.yStrikeoutSize=p.readShort(),this.yStrikeoutPosition=p.readShort(),this.familyClass=p.readShort(),this.panose=function(){var y,I;for(I=[],y=0;y<10;++y)I.push(p.readByte());return I}(),this.charRange=function(){var y,I;for(I=[],y=0;y<4;++y)I.push(p.readInt());return I}(),this.vendorID=p.readString(4),this.selection=p.readShort(),this.firstCharIndex=p.readShort(),this.lastCharIndex=p.readShort(),this.version>0&&(this.ascent=p.readShort(),this.descent=p.readShort(),this.lineGap=p.readShort(),this.winAscent=p.readShort(),this.winDescent=p.readShort(),this.codePageRange=function(){var y,I;for(I=[],y=0;y<2;y=++y)I.push(p.readInt());return I}(),this.version>1))return this.xHeight=p.readShort(),this.capHeight=p.readShort(),this.defaultChar=p.readShort(),this.breakChar=p.readShort(),this.maxContext=p.readShort()},m}(),As=function(g){function m(){return m.__super__.constructor.apply(this,arguments)}return wa(m,Fs),m.prototype.tag="post",m.prototype.parse=function(p){var y,I,b;switch(p.pos=this.offset,this.format=p.readInt(),this.italicAngle=p.readInt(),this.underlinePosition=p.readShort(),this.underlineThickness=p.readShort(),this.isFixedPitch=p.readInt(),this.minMemType42=p.readInt(),this.maxMemType42=p.readInt(),this.minMemType1=p.readInt(),this.maxMemType1=p.readInt(),this.format){case 65536:case 196608:break;case 131072:var D;for(I=p.readUInt16(),this.glyphNameIndex=[],D=0;0<=I?D<I:D>I;D=0<=I?++D:--D)this.glyphNameIndex.push(p.readUInt16());for(this.names=[],b=[];p.pos<this.offset+this.length;)y=p.readByte(),b.push(this.names.push(p.readString(y)));return b;case 151552:return I=p.readUInt16(),this.offsets=p.read(I);case 262144:return this.map=function(){var E,k,O;for(O=[],D=E=0,k=this.file.maxp.numGlyphs;0<=k?E<k:E>k;D=0<=k?++E:--E)O.push(p.readUInt32());return O}.call(this)}},m}(),ef=function(g,m){this.raw=g,this.length=g.length,this.platformID=m.platformID,this.encodingID=m.encodingID,this.languageID=m.languageID},tf=function(g){function m(){return m.__super__.constructor.apply(this,arguments)}return wa(m,Fs),m.prototype.tag="name",m.prototype.parse=function(p){var y,I,b,D,E,k,O,j,H,Q,N;for(p.pos=this.offset,p.readShort(),y=p.readShort(),k=p.readShort(),I=[],D=0;0<=y?D<y:D>y;D=0<=y?++D:--D)I.push({platformID:p.readShort(),encodingID:p.readShort(),languageID:p.readShort(),nameID:p.readShort(),length:p.readShort(),offset:this.offset+k+p.readShort()});for(O={},D=H=0,Q=I.length;H<Q;D=++H)p.pos=(b=I[D]).offset,j=p.readString(b.length),E=new ef(j,b),null==O[N=b.nameID]&&(O[N]=[]),O[b.nameID].push(E);this.strings=O,this.copyright=O[0],this.fontFamily=O[1],this.fontSubfamily=O[2],this.uniqueSubfamily=O[3],this.fontName=O[4],this.version=O[5];try{this.postscriptName=O[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=O[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=O[7],this.manufacturer=O[8],this.designer=O[9],this.description=O[10],this.vendorUrl=O[11],this.designerUrl=O[12],this.license=O[13],this.licenseUrl=O[14],this.preferredFamily=O[15],this.preferredSubfamily=O[17],this.compatibleFull=O[18],this.sampleText=O[19]},m}(),mo=function(g){function m(){return m.__super__.constructor.apply(this,arguments)}return wa(m,Fs),m.prototype.tag="maxp",m.prototype.parse=function(p){return p.pos=this.offset,this.version=p.readInt(),this.numGlyphs=p.readUInt16(),this.maxPoints=p.readUInt16(),this.maxContours=p.readUInt16(),this.maxCompositePoints=p.readUInt16(),this.maxComponentContours=p.readUInt16(),this.maxZones=p.readUInt16(),this.maxTwilightPoints=p.readUInt16(),this.maxStorage=p.readUInt16(),this.maxFunctionDefs=p.readUInt16(),this.maxInstructionDefs=p.readUInt16(),this.maxStackElements=p.readUInt16(),this.maxSizeOfInstructions=p.readUInt16(),this.maxComponentElements=p.readUInt16(),this.maxComponentDepth=p.readUInt16()},m}(),y2=function(g){function m(){return m.__super__.constructor.apply(this,arguments)}return wa(m,Fs),m.prototype.tag="hmtx",m.prototype.parse=function(p){var y,I,b,E,k,O;for(p.pos=this.offset,this.metrics=[],y=0,k=this.file.hhea.numberOfMetrics;0<=k?y<k:y>k;y=0<=k?++y:--y)this.metrics.push({advance:p.readUInt16(),lsb:p.readInt16()});for(b=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var j,H;for(H=[],y=j=0;0<=b?j<b:j>b;y=0<=b?++j:--j)H.push(p.readInt16());return H}(),this.widths=function(){var j,H,Q,N;for(N=[],j=0,H=(Q=this.metrics).length;j<H;j++)N.push(Q[j].advance);return N}.call(this),I=this.widths[this.widths.length-1],O=[],y=E=0;0<=b?E<b:E>b;y=0<=b?++E:--E)O.push(this.widths.push(I));return O},m.prototype.forGlyph=function(p){return p in this.metrics?this.metrics[p]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[p-this.metrics.length]}},m}(),zd=[].slice,es=function(g){function m(){return m.__super__.constructor.apply(this,arguments)}return wa(m,Fs),m.prototype.tag="glyf",m.prototype.parse=function(){return this.cache={}},m.prototype.glyphFor=function(p){var y,I,b,D,E,k,O,j,H,Q;return p in this.cache?this.cache[p]:(y=this.file.contents,I=(D=this.file.loca).indexOf(p),0===(b=D.lengthOf(p))?this.cache[p]=null:(y.pos=this.offset+I,E=(k=new br(y.read(b))).readShort(),j=k.readShort(),Q=k.readShort(),O=k.readShort(),H=k.readShort(),this.cache[p]=-1===E?new nf(k,j,Q,O,H):new b2(k,E,j,Q,O,H),this.cache[p]))},m.prototype.encode=function(p,y,I){var b,D,E,k,O;for(E=[],D=[],k=0,O=y.length;k<O;k++)b=p[y[k]],D.push(E.length),b&&(E=E.concat(b.encode(I)));return D.push(E.length),{table:E,offsets:D}},m}(),b2=function(){function g(m,p,y,I,b,D){this.raw=m,this.numberOfContours=p,this.xMin=y,this.yMin=I,this.xMax=b,this.yMax=D,this.compound=!1}return g.prototype.encode=function(){return this.raw.data},g}(),nf=function(){function g(m,p,y,I,b){var D,E;for(this.raw=m,this.xMin=p,this.yMin=y,this.xMax=I,this.yMax=b,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],D=this.raw;E=D.readShort(),this.glyphOffsets.push(D.pos),this.glyphIDs.push(D.readUInt16()),32&E;)D.pos+=1&E?4:2,128&E?D.pos+=8:64&E?D.pos+=4:8&E&&(D.pos+=2)}return g.prototype.encode=function(){var m,p,y;for(p=new br(zd.call(this.raw.data)),m=0,y=this.glyphIDs.length;m<y;++m)p.pos=this.glyphOffsets[m];return p.data},g}(),Hc=function(g){function m(){return m.__super__.constructor.apply(this,arguments)}return wa(m,Fs),m.prototype.tag="loca",m.prototype.parse=function(p){var I;return p.pos=this.offset,this.offsets=0===this.file.head.indexToLocFormat?function(){var b,D;for(D=[],I=0,b=this.length;I<b;I+=2)D.push(2*p.readUInt16());return D}.call(this):function(){var b,D;for(D=[],I=0,b=this.length;I<b;I+=4)D.push(p.readUInt32());return D}.call(this)},m.prototype.indexOf=function(p){return this.offsets[p]},m.prototype.lengthOf=function(p){return this.offsets[p+1]-this.offsets[p]},m.prototype.encode=function(p,y){for(var I=new Uint32Array(this.offsets.length),b=0,D=0,E=0;E<I.length;++E)if(I[E]=b,D<y.length&&y[D]==E){++D,I[E]=b;var O=this.offsets[E+1]-this.offsets[E];O>0&&(b+=O)}for(var j=new Array(4*I.length),H=0;H<I.length;++H)j[4*H+3]=255&I[H],j[4*H+2]=(65280&I[H])>>8,j[4*H+1]=(16711680&I[H])>>16,j[4*H]=(4278190080&I[H])>>24;return j},m}(),Vo=function(){function g(m){this.font=m,this.subset={},this.unicodes={},this.next=33}return g.prototype.generateCmap=function(){var m,p,I,b;for(p in I=this.font.cmap.tables[0].codeMap,m={},b=this.subset)m[p]=I[b[p]];return m},g.prototype.glyphsFor=function(m){var p,y,I,b,D,E,k;for(I={},D=0,E=m.length;D<E;D++)I[b=m[D]]=this.font.glyf.glyphFor(b);for(b in p=[],I)null!=(y=I[b])&&y.compound&&p.push.apply(p,y.glyphIDs);if(p.length>0)for(b in k=this.glyphsFor(p))I[b]=y=k[b];return I},g.prototype.encode=function(m,p){var y,I,b,D,k,O,j,H,Q,N,G,K,M,L;for(I in y=Xm.encode(this.generateCmap(),"unicode"),D=this.glyphsFor(m),N={0:0},L=y.charMap)N[(k=L[I]).old]=k.new;for(G in Q=y.maxGlyphID,D)G in N||(N[G]=Q++);return j=function(re){var be,Me;for(be in Me={},re)Me[re[be]]=be;return Me}(N),H=Object.keys(j).sort(function(re,be){return re-be}),K=function(){var re,be,Me;for(Me=[],re=0,be=H.length;re<be;re++)Me.push(j[H[re]]);return Me}(),b=this.font.glyf.encode(D,K,N),O=this.font.loca.encode(b.offsets,K),M={cmap:this.font.cmap.raw(),glyf:b.table,loca:O,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(p)},this.font.os2.exists&&(M["OS/2"]=this.font.os2.raw()),this.font.directory.encode(M)},g}();xn.API.PDFObject=function(){var g;function m(){}return g=function(p,y){return(Array(y+1).join("0")+p).slice(-y)},m.convert=function(p){var I,b;if(Array.isArray(p))return"["+function(){var E,k,O;for(O=[],E=0,k=p.length;E<k;E++)O.push(m.convert(p[E]));return O}().join(" ")+"]";if("string"==typeof p)return"/"+p;if(p?.isString)return"("+p+")";if(p instanceof Date)return"(D:"+g(p.getUTCFullYear(),4)+g(p.getUTCMonth(),2)+g(p.getUTCDate(),2)+g(p.getUTCHours(),2)+g(p.getUTCMinutes(),2)+g(p.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(p)){for(I in b=["<<"],p)b.push("/"+I+" "+m.convert(p[I]));return b.push(">>"),b.join("\n")}return""+p},m}();const S2=xn},5861:(Pd,Mc,Wr)=>{"use strict";function Gn(Fr,Pn,Ui,vn,Dt,Zt,hn){try{var vt=Fr[Zt](hn),Ct=vt.value}catch(At){return void Ui(At)}vt.done?Pn(Ct):Promise.resolve(Ct).then(vn,Dt)}function $a(Fr){return function(){var Pn=this,Ui=arguments;return new Promise(function(vn,Dt){var Zt=Fr.apply(Pn,Ui);function hn(Ct){Gn(Zt,vn,Dt,hn,vt,"next",Ct)}function vt(Ct){Gn(Zt,vn,Dt,hn,vt,"throw",Ct)}hn(void 0)})}}Wr.d(Mc,{Z:()=>$a})}},Pd=>{Pd(Pd.s=4271)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.