Skip to content

Instantly share code, notes, and snippets.

@Ninja243
Created December 31, 2022 17:24
Show Gist options
  • Save Ninja243/ea7502f705e0ed2d15aa45c66b60d323 to your computer and use it in GitHub Desktop.
Save Ninja243/ea7502f705e0ed2d15aa45c66b60d323 to your computer and use it in GitHub Desktop.
The output of vc2c when crashing, seeming to suggest that prettier has an issue formatting the code generated by vc2c
mweyaruider@MacBook-Pro-4 cct-frontend % vc2c single /Users/mweyaruider/IdeaProjects/cct-frontend/src/modules/organization-admin/components/customer/customer/customer.component.ts
? You aren't using -o option to set output file path, It will replace original file content. Yes
prettier-eslint [ERROR]: prettier formatting failed due to a prettier error
/Users/mweyaruider/IdeaProjects/cct-frontend/node_modules/prettier/parser-typescript.js:1
(function(e){if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var i=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};i.prettierPlugins=i.prettierPlugins||{},i.prettierPlugins.typescript=e()}})(function(){"use strict";var wt=(a,c)=>()=>(c||a((c={exports:{}}).exports,c),c.exports);var di=wt((dT,Lf)=>{var Zu=function(a){return a&&a.Math==Math&&a};Lf.exports=Zu(typeof globalThis=="object"&&globalThis)||Zu(typeof window=="object"&&window)||Zu(typeof self=="object"&&self)||Zu(typeof global=="object"&&global)||function(){return this}()||Function("return this")()});var zo=wt((mT,Rf)=>{Rf.exports=function(a){try{return!!a()}catch{return!0}}});var S_=wt((gT,jf)=>{var Dh=zo();jf.exports=!Dh(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var el=wt((yT,Jf)=>{var xh=zo();Jf.exports=!xh(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})});var tl=wt((hT,Ff)=>{var wh=el(),rl=Function.prototype.call;Ff.exports=wh?rl.bind(rl):function(){return rl.apply(rl,arguments)}});var zf=wt(Uf=>{"use strict";var Bf={}.propertyIsEnumerable,qf=Object.getOwnPropertyDescriptor,Ah=qf&&!Bf.call({1:2},1);Uf.f=Ah?function(c){var A=qf(this,c);return!!A&&A.enumerable}:Bf});var Yl=wt((bT,Vf)=>{Vf.exports=function(a,c){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:c}}});var Ra=wt((ET,Hf)=>{var Wf=el(),Kf=Function.prototype,kh=Kf.bind,Zl=Kf.call,Ph=Wf&&kh.bind(Zl,Zl);Hf.exports=Wf?function(a){return a&&Ph(a)}:function(a){return a&&function(){return Zl.apply(a,arguments)}}});var nl=wt((TT,Xf)=>{var Gf=Ra(),Nh=Gf({}.toString),Ih=Gf("".slice);Xf.exports=function(a){return Ih(Nh(a),8,-1)}});var Qf=wt((ST,$f)=>{var Oh=di(),Mh=Ra(),Lh=zo(),Rh=nl(),ep=Oh.Object,jh=Mh("".split);$f.exports=Lh(function(){return!ep("z").propertyIsEnumerable(0)})?function(a){return Rh(a)=="String"?jh(a,""):ep(a)}:ep});var rp=wt((CT,Yf)=>{var Jh=di(),Fh=Jh.TypeError;Yf.exports=function(a){if(a==null)throw Fh("Can't call method on "+a);return a}});var il=wt((DT,Zf)=>{var Bh=Qf(),qh=rp();Zf.exports=function(a){return Bh(qh(a))}});var ja=wt((xT,ed)=>{ed.exports=function(a){return typeof a=="function"}});var C_=wt((wT,rd)=>{var Uh=ja();rd.exports=function(a){return typeof a=="object"?a!==null:Uh(a)}});var Iu=wt((AT,td)=>{var tp=di(),zh=ja(),Vh=function(a){return zh(a)?a:void 0};td.exports=function(a,c){return arguments.length<2?Vh(tp[a]):tp[a]&&tp[a][c]}});var id=wt((kT,nd)=>{var Wh=Ra();nd.exports=Wh({}.isPrototypeOf)});var od=wt((PT,ad)=>{var Kh=Iu();ad.exports=Kh("navigator","userAgent")||""});var fd=wt((NT,pd)=>{var ld=di(),np=od(),sd=ld.process,_d=ld.Deno,cd=sd&&sd.versions||_d&&_d.version,ud=cd&&cd.v8,Qa,al;ud&&(Qa=ud.split("."),al=Qa[0]>0&&Qa[0]<4?1:+(Qa[0]+Qa[1]));!al&&np&&(Qa=np.match(/Edge\/(\d+)/),(!Qa||Qa[1]>=74)&&(Qa=np.match(/Chrome\/(\d+)/),Qa&&(al=+Qa[1])));pd.exports=al});var ip=wt((IT,md)=>{var dd=fd(),Hh=zo();md.exports=!!Object.getOwnPropertySymbols&&!Hh(function(){var a=Symbol();return!String(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&dd&&dd<41})});var ap=wt((OT,gd)=>{var Gh=ip();gd.exports=Gh&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var op=wt((MT,yd)=>{var Xh=di(),$h=Iu(),Qh=ja(),Yh=id(),Zh=ap(),e0=Xh.Object;yd.exports=Zh?function(a){return typeof a=="symbol"}:function(a){var c=$h("Symbol");return Qh(c)&&Yh(c.prototype,e0(a))}});var vd=wt((LT,hd)=>{var r0=di(),t0=r0.String;hd.exports=function(a){try{return t0(a)}catch{return"Object"}}});var ol=wt((RT,bd)=>{var n0=di(),i0=ja(),a0=vd(),o0=n0.TypeError;bd.exports=function(a){if(i0(a))return a;throw o0(a0(a)+" is not a function")}});var Td=wt((jT,Ed)=>{var s0=ol();Ed.exports=function(a,c){var A=a[c];return A==null?void 0:s0(A)}});var Cd=wt((JT,Sd)=>{var _0=di(),sp=tl(),_p=ja(),cp=C_(),c0=_0.TypeError;Sd.exports=function(a,c){var A,T;if(c==="string"&&_p(A=a.toString)&&!cp(T=sp(A,a))||_p(A=a.valueOf)&&!cp(T=sp(A,a))||c!=="string"&&_p(A=a.toString)&&!cp(T=sp(A,a)))return T;throw c0("Can't convert object to primitive value")}});var xd=wt((FT,Dd)=>{Dd.exports=!1});var sl=wt((BT,Ad)=>{var wd=di(),u0=Object.defineProperty;Ad.exports=function(a,c){try{u0(wd,a,{value:c,configurable:!0,writable:!0})}catch{wd[a]=c}return c}});var _l=wt((qT,Pd)=>{var l0=di(),p0=sl(),kd="__core-js_shared__",f0=l0[kd]||p0(kd,{});Pd.exports=f0});var up=wt((UT,Id)=>{var d0=xd(),Nd=_l();(Id.exports=function(a,c){return Nd[a]||(Nd[a]=c!==void 0?c:{})})("versions",[]).push({version:"3.22.2",mode:d0?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.2/LICENSE",source:"https://github.com/zloirock/core-js"})});var lp=wt((zT,Od)=>{var m0=di(),g0=rp(),y0=m0.Object;Od.exports=function(a){return y0(g0(a))}});var As=wt((VT,Md)=>{var h0=Ra(),v0=lp(),b0=h0({}.hasOwnProperty);Md.exports=Object.hasOwn||function(c,A){return b0(v0(c),A)}});var pp=wt((WT,Ld)=>{var E0=Ra(),T0=0,S0=Math.random(),C0=E0(1 .toString);Ld.exports=function(a){return"Symbol("+(a===void 0?"":a)+")_"+C0(++T0+S0,36)}});var Ou=wt((KT,Bd)=>{var D0=di(),x0=up(),Rd=As(),w0=pp(),jd=ip(),Fd=ap(),Fc=x0("wks"),D_=D0.Symbol,Jd=D_&&D_.for,A0=Fd?D_:D_&&D_.withoutSetter||w0;Bd.exports=function(a){if(!Rd(Fc,a)||!(jd||typeof Fc[a]=="string")){var c="Symbol."+a;jd&&Rd(D_,a)?Fc[a]=D_[a]:Fd&&Jd?Fc[a]=Jd(c):Fc[a]=A0(c)}return Fc[a]}});var Vd=wt((HT,zd)=>{var k0=di(),P0=tl(),qd=C_(),Ud=op(),N0=Td(),I0=Cd(),O0=Ou(),M0=k0.TypeError,L0=O0("toPrimitive");zd.exports=function(a,c){if(!qd(a)||Ud(a))return a;var A=N0(a,L0),T;if(A){if(c===void 0&&(c="default"),T=P0(A,a,c),!qd(T)||Ud(T))return T;throw M0("Can't convert object to primitive value")}return c===void 0&&(c="number"),I0(a,c)}});var fp=wt((GT,Wd)=>{var R0=Vd(),j0=op();Wd.exports=function(a){var c=R0(a,"string");return j0(c)?c:c+""}});var Gd=wt((XT,Hd)=>{var J0=di(),Kd=C_(),dp=J0.document,F0=Kd(dp)&&Kd(dp.createElement);Hd.exports=function(a){return F0?dp.createElement(a):{}}});var mp=wt(($T,Xd)=>{var B0=S_(),q0=zo(),U0=Gd();Xd.exports=!B0&&!q0(function(){return Object.defineProperty(U0("div"),"a",{get:function(){return 7}}).a!=7})});var gp=wt(Qd=>{var z0=S_(),V0=tl(),W0=zf(),K0=Yl(),H0=il(),G0=fp(),X0=As(),$0=mp(),$d=Object.getOwnPropertyDescriptor;Qd.f=z0?$d:function(c,A){if(c=H0(c),A=G0(A),$0)try{return $d(c,A)}catch{}if(X0(c,A))return K0(!V0(W0.f,c,A),c[A])}});var Zd=wt((YT,Yd)=>{var Q0=S_(),Y0=zo();Yd.exports=Q0&&Y0(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})});var yp=wt((ZT,rm)=>{var em=di(),Z0=C_(),ev=em.String,rv=em.TypeError;rm.exports=function(a){if(Z0(a))return a;throw rv(ev(a)+" is not an object")}});var Tp=wt(nm=>{var tv=di(),nv=S_(),iv=mp(),av=Zd(),cl=yp(),tm=fp(),ov=tv.TypeError,hp=Object.defineProperty,sv=Object.getOwnPropertyDescriptor,vp="enumerable",bp="configurable",Ep="writable";nm.f=nv?av?function(c,A,T){if(cl(c),A=tm(A),cl(T),typeof c=="function"&&A==="prototype"&&"value"in T&&Ep in T&&!T[Ep]){var oe=sv(c,A);oe&&oe[Ep]&&(c[A]=T.value,T={configurable:bp in T?T[bp]:oe[bp],enumerable:vp in T?T[vp]:oe[vp],writable:!1})}return hp(c,A,T)}:hp:function(c,A,T){if(cl(c),A=tm(A),cl(T),iv)try{return hp(c,A,T)}catch{}if("get"in T||"set"in T)throw ov("Accessors not supported");return"value"in T&&(c[A]=T.value),c}});var ul=wt((r6,im)=>{var _v=S_(),cv=Tp(),uv=Yl();im.exports=_v?function(a,c,A){return cv.f(a,c,uv(1,A))}:function(a,c,A){return a[c]=A,a}});var ll=wt((t6,am)=>{var lv=Ra(),pv=ja(),Sp=_l(),fv=lv(Function.toString);pv(Sp.inspectSource)||(Sp.inspectSource=function(a){return fv(a)});am.exports=Sp.inspectSource});var _m=wt((n6,sm)=>{var dv=di(),mv=ja(),gv=ll(),om=dv.WeakMap;sm.exports=mv(om)&&/native code/.test(gv(om))});var lm=wt((i6,um)=>{var yv=up(),hv=pp(),cm=yv("keys");um.exports=function(a){return cm[a]||(cm[a]=hv(a))}});var Cp=wt((a6,pm)=>{pm.exports={}});var hm=wt((o6,ym)=>{var vv=_m(),gm=di(),Dp=Ra(),bv=C_(),Ev=ul(),xp=As(),wp=_l(),Tv=lm(),Sv=Cp(),fm="Object already initialized",kp=gm.TypeError,Cv=gm.WeakMap,pl,Mu,fl,Dv=function(a){return fl(a)?Mu(a):pl(a,{})},xv=function(a){return function(c){var A;if(!bv(c)||(A=Mu(c)).type!==a)throw kp("Incompatible receiver, "+a+" required");return A}};vv||wp.state?(ks=wp.state||(wp.state=new Cv),dm=Dp(ks.get),Ap=Dp(ks.has),mm=Dp(ks.set),pl=function(a,c){if(Ap(ks,a))throw new kp(fm);return c.facade=a,mm(ks,a,c),c},Mu=function(a){return dm(ks,a)||{}},fl=function(a){return Ap(ks,a)}):(x_=Tv("state"),Sv[x_]=!0,pl=function(a,c){if(xp(a,x_))throw new kp(fm);return c.facade=a,Ev(a,x_,c),c},Mu=function(a){return xp(a,x_)?a[x_]:{}},fl=function(a){return xp(a,x_)});var ks,dm,Ap,mm,x_;ym.exports={set:pl,get:Mu,has:fl,enforce:Dv,getterFor:xv}});var Em=wt((s6,bm)=>{var Pp=S_(),wv=As(),vm=Function.prototype,Av=Pp&&Object.getOwnPropertyDescriptor,Np=wv(vm,"name"),kv=Np&&function(){}.name==="something",Pv=Np&&(!Pp||Pp&&Av(vm,"name").configurable);bm.exports={EXISTS:Np,PROPER:kv,CONFIGURABLE:Pv}});var xm=wt((_6,Dm)=>{var Nv=di(),Tm=ja(),Iv=As(),Sm=ul(),Ov=sl(),Mv=ll(),Cm=hm(),Lv=Em().CONFIGURABLE,Rv=Cm.get,jv=Cm.enforce,Jv=String(String).split("String");(Dm.exports=function(a,c,A,T){var oe=T?!!T.unsafe:!1,z=T?!!T.enumerable:!1,I=T?!!T.noTargetGet:!1,E=T&&T.name!==void 0?T.name:c,N;if(Tm(A)&&(String(E).slice(0,7)==="Symbol("&&(E="["+String(E).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Iv(A,"name")||Lv&&A.name!==E)&&Sm(A,"name",E),N=jv(A),N.source||(N.source=Jv.join(typeof E=="string"?E:""))),a===Nv){z?a[c]=A:Ov(c,A);return}else oe?!I&&a[c]&&(z=!0):delete a[c];z?a[c]=A:Sm(a,c,A)})(Function.prototype,"toString",function(){return Tm(this)&&Rv(this).source||Mv(this)})});var Ip=wt((c6,wm)=>{var Fv=Math.ceil,Bv=Math.floor;wm.exports=function(a){var c=+a;return c!==c||c===0?0:(c>0?Bv:Fv)(c)}});var km=wt((u6,Am)=>{var qv=Ip(),Uv=Math.max,zv=Math.min;Am.exports=function(a,c){var A=qv(a);return A<0?Uv(A+c,0):zv(A,c)}});var Nm=wt((l6,Pm)=>{var Vv=Ip(),Wv=Math.min;Pm.exports=function(a){return a>0?Wv(Vv(a),9007199254740991):0}});var dl=wt((p6,Im)=>{var Kv=Nm();Im.exports=function(a){return Kv(a.length)}});var Lm=wt((f6,Mm)=>{var Hv=il(),Gv=km(),Xv=dl(),Om=function(a){return function(c,A,T){var oe=Hv(c),z=Xv(oe),I=Gv(T,z),E;if(a&&A!=A){for(;z>I;)if(E=oe[I++],E!=E)return!0}else for(;z>I;I++)if((a||I in oe)&&oe[I]===A)return a||I||0;return!a&&-1}};Mm.exports={includes:Om(!0),indexOf:Om(!1)}});var Jm=wt((d6,jm)=>{var $v=Ra(),Op=As(),Qv=il(),Yv=Lm().indexOf,Zv=Cp(),Rm=$v([].push);jm.exports=function(a,c){var A=Qv(a),T=0,oe=[],z;for(z in A)!Op(Zv,z)&&Op(A,z)&&Rm(oe,z);for(;c.length>T;)Op(A,z=c[T++])&&(~Yv(oe,z)||Rm(oe,z));return oe}});var Bm=wt((m6,Fm)=>{Fm.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Um=wt(qm=>{var e1=Jm(),r1=Bm(),t1=r1.concat("length","prototype");qm.f=Object.getOwnPropertyNames||function(c){return e1(c,t1)}});var Vm=wt(zm=>{zm.f=Object.getOwnPropertySymbols});var Km=wt((h6,Wm)=>{var n1=Iu(),i1=Ra(),a1=Um(),o1=Vm(),s1=yp(),_1=i1([].concat);Wm.exports=n1("Reflect","ownKeys")||function(c){var A=a1.f(s1(c)),T=o1.f;return T?_1(A,T(c)):A}});var Xm=wt((v6,Gm)=>{var Hm=As(),c1=Km(),u1=gp(),l1=Tp();Gm.exports=function(a,c,A){for(var T=c1(c),oe=l1.f,z=u1.f,I=0;I<T.length;I++){var E=T[I];!Hm(a,E)&&!(A&&Hm(A,E))&&oe(a,E,z(c,E))}}});var Qm=wt((b6,$m)=>{var p1=zo(),f1=ja(),d1=/#|\.prototype\./,Lu=function(a,c){var A=g1[m1(a)];return A==h1?!0:A==y1?!1:f1(c)?p1(c):!!c},m1=Lu.normalize=function(a){return String(a).replace(d1,".").toLowerCase()},g1=Lu.data={},y1=Lu.NATIVE="N",h1=Lu.POLYFILL="P";$m.exports=Lu});var Lp=wt((E6,Ym)=>{var Mp=di(),v1=gp().f,b1=ul(),E1=xm(),T1=sl(),S1=Xm(),C1=Qm();Ym.exports=function(a,c){var A=a.target,T=a.global,oe=a.stat,z,I,E,N,e,t;if(T?I=Mp:oe?I=Mp[A]||T1(A,{}):I=(Mp[A]||{}).prototype,I)for(E in c){if(e=c[E],a.noTargetGet?(t=v1(I,E),N=t&&t.value):N=I[E],z=C1(T?E:A+(oe?".":"#")+E,a.forced),!z&&N!==void 0){if(typeof e==typeof N)continue;S1(e,N)}(a.sham||N&&N.sham)&&b1(e,"sham",!0),E1(I,E,e,a)}}});var Zm=wt(()=>{var D1=Lp(),x1=di();D1({global:!0},{globalThis:x1})});var eg=wt(()=>{Zm()});var Rp=wt((x6,rg)=>{var w1=nl();rg.exports=Array.isArray||function(c){return w1(c)=="Array"}});var ig=wt((w6,ng)=>{var tg=Ra(),A1=ol(),k1=el(),P1=tg(tg.bind);ng.exports=function(a,c){return A1(a),c===void 0?a:k1?P1(a,c):function(){return a.apply(c,arguments)}}});var sg=wt((A6,og)=>{"use strict";var N1=di(),I1=Rp(),O1=dl(),M1=ig(),L1=N1.TypeError,ag=function(a,c,A,T,oe,z,I,E){for(var N=oe,e=0,t=I?M1(I,E):!1,x,s;e<T;){if(e in A){if(x=t?t(A[e],e,c):A[e],z>0&&I1(x))s=O1(x),N=ag(a,c,x,s,N,z-1)-1;else{if(N>=9007199254740991)throw L1("Exceed the acceptable array length");a[N]=x}N++}e++}return N};og.exports=ag});var ug=wt((k6,cg)=>{var R1=Ou(),j1=R1("toStringTag"),_g={};_g[j1]="z";cg.exports=String(_g)==="[object z]"});var pg=wt((P6,lg)=>{var J1=di(),F1=ug(),B1=ja(),ml=nl(),q1=Ou(),U1=q1("toStringTag"),z1=J1.Object,V1=ml(function(){return arguments}())=="Arguments",W1=function(a,c){try{return a[c]}catch{}};lg.exports=F1?ml:function(a){var c,A,T;return a===void 0?"Undefined":a===null?"Null":typeof(A=W1(c=z1(a),U1))=="string"?A:V1?ml(c):(T=ml(c))=="Object"&&B1(c.callee)?"Arguments":T}});var hg=wt((N6,yg)=>{var K1=Ra(),H1=zo(),fg=ja(),G1=pg(),X1=Iu(),$1=ll(),dg=function(){},Q1=[],mg=X1("Reflect","construct"),jp=/^\s*(?:class|function)\b/,Y1=K1(jp.exec),Z1=!jp.exec(dg),Ru=function(c){if(!fg(c))return!1;try{return mg(dg,Q1,c),!0}catch{return!1}},gg=function(c){if(!fg(c))return!1;switch(G1(c)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Z1||!!Y1(jp,$1(c))}catch{return!0}};gg.sham=!0;yg.exports=!mg||H1(function(){var a;return Ru(Ru.call)||!Ru(Object)||!Ru(function(){a=!0})||a})?gg:Ru});var Tg=wt((I6,Eg)=>{var eb=di(),vg=Rp(),rb=hg(),tb=C_(),nb=Ou(),ib=nb("species"),bg=eb.Array;Eg.exports=function(a){var c;return vg(a)&&(c=a.constructor,rb(c)&&(c===bg||vg(c.prototype))?c=void 0:tb(c)&&(c=c[ib],c===null&&(c=void 0))),c===void 0?bg:c}});var Cg=wt((O6,Sg)=>{var ab=Tg();Sg.exports=function(a,c){return new(ab(a))(c===0?0:c)}});var Dg=wt(()=>{"use strict";var ob=Lp(),sb=sg(),_b=ol(),cb=lp(),ub=dl(),lb=Cg();ob({target:"Array",proto:!0},{flatMap:function(c){var A=cb(this),T=ub(A),oe;return _b(c),oe=lb(A,0),oe.length=sb(oe,A,A,T,0,1,c,arguments.length>1?arguments[1]:void 0),oe}})});var pT=wt((R6,Ey)=>{eg();Dg();var Wp=Object.defineProperty,pb=Object.getOwnPropertyDescriptor,Kp=Object.getOwnPropertyNames,fb=Object.prototype.hasOwnProperty,Ju=(a,c)=>function(){return a&&(c=(0,a[Kp(a)[0]])(a=0)),c},Ur=(a,c)=>function(){return c||(0,a[Kp(a)[0]])((c={exports:{}}).exports,c),c.exports},bl=(a,c)=>{for(var A in c)Wp(a,A,{get:c[A],enumerable:!0})},db=(a,c,A,T)=>{if(c&&typeof c=="object"||typeof c=="function")for(let oe of Kp(c))!fb.call(a,oe)&&oe!==A&&Wp(a,oe,{get:()=>c[oe],enumerable:!(T=pb(c,oe))||T.enumerable});return a},Ja=a=>db(Wp({},"__esModule",{value:!0}),a),xg,wg,Ea,Jr=Ju({"<define:process>"(){xg={},wg=[],Ea={env:xg,argv:wg}}}),Ng=Ur({"src/common/parser-create-error.js"(a,c){"use strict";Jr();function A(T,oe){let z=new SyntaxError(T+" ("+oe.start.line+":"+oe.start.column+")");return z.loc=oe,z}c.exports=A}}),mb=Ur({"src/utils/try-combinations.js"(a,c){"use strict";Jr();function A(){let T;for(var oe=arguments.length,z=new Array(oe),I=0;I<oe;I++)z[I]=arguments[I];for(let[E,N]of z.entries())try{return{result:N()}}catch(e){E===0&&(T=e)}return{error:T}}c.exports=A}}),Ig={};bl(Ig,{EOL:()=>Bp,arch:()=>gb,cpus:()=>Fg,default:()=>Vg,endianness:()=>Og,freemem:()=>jg,getNetworkInterfaces:()=>zg,hostname:()=>Mg,loadavg:()=>Lg,networkInterfaces:()=>Ug,platform:()=>yb,release:()=>qg,tmpDir:()=>Jp,tmpdir:()=>Fp,totalmem:()=>Jg,type:()=>Bg,uptime:()=>Rg});function Og(){if(typeof gl>"u"){var a=new ArrayBuffer(2),c=new Uint8Array(a),A=new Uint16Array(a);if(c[0]=1,c[1]=2,A[0]===258)gl="BE";else if(A[0]===513)gl="LE";else throw new Error("unable to figure out endianess")}return gl}function Mg(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function Lg(){return[]}function Rg(){return 0}function jg(){return Number.MAX_VALUE}function Jg(){return Number.MAX_VALUE}function Fg(){return[]}function Bg(){return"Browser"}function qg(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function Ug(){}function zg(){}function gb(){return"javascript"}function yb(){return"browser"}function Jp(){return"/tmp"}var gl,Fp,Bp,Vg,hb=Ju({"node-modules-polyfills:os"(){Jr(),Fp=Jp,Bp=`
SyntaxError: ',' expected. (45:52)
43 | const customerService = inject<>(Types.CUSTOMER_SERVICE);
44 | const breadCrumbService = inject<>(Types.BREAD_CRUMB_SERVICE);
> 45 | const tabsErrorValidation = public (nextTab: string, currentTab: string): boolean => {
| ^
46 | const currTab = (<any>/* TODO: Check this convert result, it can work well in 80% case.*/ context.root.$refs[currentTab])?.$v;
47 | const invalid = currTab?.$invalid;
48 | if (invalid)
at A (/Users/mweyaruider/IdeaProjects/cct-frontend/node_modules/prettier/parser-typescript.js:1:15163)
at cT (/Users/mweyaruider/IdeaProjects/cct-frontend/node_modules/prettier/parser-typescript.js:257:10765)
at Object.uT [as parse] (/Users/mweyaruider/IdeaProjects/cct-frontend/node_modules/prettier/parser-typescript.js:257:11074)
at Object.parse (/Users/mweyaruider/IdeaProjects/cct-frontend/node_modules/prettier/index.js:7331:23)
at coreFormat (/Users/mweyaruider/IdeaProjects/cct-frontend/node_modules/prettier/index.js:8645:18)
at formatWithCursor2 (/Users/mweyaruider/IdeaProjects/cct-frontend/node_modules/prettier/index.js:8837:18)
at /Users/mweyaruider/IdeaProjects/cct-frontend/node_modules/prettier/index.js:37836:12
at Object.format (/Users/mweyaruider/IdeaProjects/cct-frontend/node_modules/prettier/index.js:37850:12)
at prettify (/Users/mweyaruider/IdeaProjects/cct-frontend/node_modules/vc2c/node_modules/prettier-eslint/dist/index.js:141:31)
at format (/Users/mweyaruider/IdeaProjects/cct-frontend/node_modules/vc2c/node_modules/prettier-eslint/dist/index.js:126:20) {
loc: { start: { line: 45, column: 52 } },
codeFrame: '\x1B[0m \x1B[90m 43 |\x1B[39m \x1B[36mconst\x1B[39m customerService \x1B[33m=\x1B[39m inject\x1B[33m<\x1B[39m\x1B[33m>\x1B[39m(\x1B[33mTypes\x1B[39m\x1B[33m.\x1B[39m\x1B[33mCUSTOMER_SERVICE\x1B[39m)\x1B[33m;\x1B[39m\x1B[0m\n' +
'\x1B[0m \x1B[90m 44 |\x1B[39m \x1B[36mconst\x1B[39m breadCrumbService \x1B[33m=\x1B[39m inject\x1B[33m<\x1B[39m\x1B[33m>\x1B[39m(\x1B[33mTypes\x1B[39m\x1B[33m.\x1B[39m\x1B[33mBREAD_CRUMB_SERVICE\x1B[39m)\x1B[33m;\x1B[39m\x1B[0m\n' +
'\x1B[0m\x1B[31m\x1B[1m>\x1B[22m\x1B[39m\x1B[90m 45 |\x1B[39m \x1B[36mconst\x1B[39m tabsErrorValidation \x1B[33m=\x1B[39m \x1B[36mpublic\x1B[39m (nextTab\x1B[33m:\x1B[39m string\x1B[33m,\x1B[39m currentTab\x1B[33m:\x1B[39m string)\x1B[33m:\x1B[39m boolean \x1B[33m=>\x1B[39m {\x1B[0m\n' +
'\x1B[0m \x1B[90m |\x1B[39m \x1B[31m\x1B[1m^\x1B[22m\x1B[39m\x1B[0m\n' +
'\x1B[0m \x1B[90m 46 |\x1B[39m \x1B[36mconst\x1B[39m currTab \x1B[33m=\x1B[39m (\x1B[33m<\x1B[39m\x1B[33many\x1B[39m\x1B[33m>\x1B[39m\x1B[90m/* TODO: Check this convert result, it can work well in 80% case.*/\x1B[39m context\x1B[33m.\x1B[39mroot\x1B[33m.\x1B[39m$refs[currentTab])\x1B[33m?\x1B[39m\x1B[33m.\x1B[39m$v\x1B[33m;\x1B[39m\x1B[0m\n' +
'\x1B[0m \x1B[90m 47 |\x1B[39m \x1B[36mconst\x1B[39m invalid \x1B[33m=\x1B[39m currTab\x1B[33m?\x1B[39m\x1B[33m.\x1B[39m$invalid\x1B[33m;\x1B[39m\x1B[0m\n' +
'\x1B[0m \x1B[90m 48 |\x1B[39m \x1B[36mif\x1B[39m (invalid)\x1B[0m'
}
mweyaruider@MacBook-Pro-4 cct-frontend %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment