@elliemae/ssf-guest 2.9.2 → 2.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>Credit Service</title><style>body{margin:0}</style><script src="https://qa.assets.rd.elliemae.io/pui-diagnostics@3"></script><script>window.addEventListener("DOMContentLoaded",(async()=>{window.__ICE__={diagnosticsUrl:"https://int.api.ellielabs.com/diagnostics/v2/logging"};const e=new URL(window.location),i=e?.searchParams?.get?.("src");window.__ICE__.ssfGuest=new ice.guest.SSFGuest({logger:{index:"creditServiceGuest",team:"ui platform",appName:"credit-service"}}),await window.__ICE__.ssfGuest.addScript(i,document.body)}))</script><script defer="defer" src="js/emuiSsfGuest.9130e23170c7f40514b8.js"></script></head><body></body></html>
1
+ <!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>Credit Service</title><style>body{margin:0}</style><script src="https://qa.assets.rd.elliemae.io/pui-diagnostics@3"></script><script>window.addEventListener("DOMContentLoaded",(async()=>{window.__ICE__={diagnosticsUrl:"https://int.api.ellielabs.com/diagnostics/v2/logging"};const e=new URL(window.location),i=e?.searchParams?.get?.("src");window.__ICE__.ssfGuest=new ice.guest.SSFGuest({logger:{index:"creditServiceGuest",team:"ui platform",appName:"credit-service"}}),await window.__ICE__.ssfGuest.addScript(i,document.body)}))</script><script defer="defer" src="js/emuiSsfGuest.218d4e4878ba0ff19506.js"></script></head><body></body></html>
@@ -1 +1 @@
1
- <!doctype html><html lang="en" style="height:100%"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Plugin</title><script src="https://cdn.tailwindcss.com?plugins=forms"></script><script defer="defer" src="js/emuiSsfGuest.9130e23170c7f40514b8.js"></script></head><body class="px-2 h-full"><main class="h-full"><h1 class="text-md font-bold">Credit Score Service</h1><div class="h-full mt-2"><output id="msg" class="mt-2 p-2"></output></div></main></body></html>
1
+ <!doctype html><html lang="en" style="height:100%"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Plugin</title><script src="https://cdn.tailwindcss.com?plugins=forms"></script><script defer="defer" src="js/emuiSsfGuest.218d4e4878ba0ff19506.js"></script></head><body class="px-2 h-full"><main class="h-full"><h1 class="text-md font-bold">Credit Score Service</h1><div class="h-full mt-2"><output id="msg" class="mt-2 p-2"></output></div></main></body></html>
@@ -26,4 +26,4 @@ function print() { __p += __j.call(arguments, '') }
26
26
  `)+w+`return __p
27
27
  }`;var P=yf(function(){return M(s,b+"return "+w).apply(o,f)});if(P.source=w,Pi(P))throw P;return P}function pd(n){return F(n).toLowerCase()}function _d(n){return F(n).toUpperCase()}function vd(n,e,t){if(n=F(n),n&&(t||e===o))return Lu(n);if(!n||!(e=An(e)))return n;var r=Hn(n),i=Hn(e),s=Ou(r,i),f=Cu(r,i)+1;return xe(r,s,f).join("")}function wd(n,e,t){if(n=F(n),n&&(t||e===o))return n.slice(0,Wu(n)+1);if(!n||!(e=An(e)))return n;var r=Hn(n),i=Cu(r,Hn(e))+1;return xe(r,0,i).join("")}function md(n,e,t){if(n=F(n),n&&(t||e===o))return n.replace(Wr,"");if(!n||!(e=An(e)))return n;var r=Hn(n),i=Ou(r,Hn(e));return xe(r,i).join("")}function xd(n,e){var t=yt,r=mr;if(Z(e)){var i="separator"in e?e.separator:i;t="length"in e?C(e.length):t,r="omission"in e?An(e.omission):r}n=F(n);var s=n.length;if(Ge(n)){var f=Hn(n);s=f.length}if(t>=s)return n;var l=t-qe(r);if(l<1)return r;var c=f?xe(f,0,l).join(""):n.slice(0,l);if(i===o)return c+r;if(f&&(l+=c.length-l),Wi(i)){if(n.slice(l).search(i)){var p,_=c;for(i.global||(i=kr(i.source,F(Ji.exec(i))+"g")),i.lastIndex=0;p=i.exec(_);)var w=p.index;c=c.slice(0,w===o?l:w)}}else if(n.indexOf(An(i),l)!=l){var y=c.lastIndexOf(i);y>-1&&(c=c.slice(0,y))}return c+r}function yd(n){return n=F(n),n&&Cf.test(n)?n.replace(Zi,Jo):n}var Ad=Ze(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),Bi=ys("toUpperCase");function xf(n,e,t){return n=F(n),e=t?o:e,e===o?zo(n)?jo(n):Bo(n):n.match(e)||[]}var yf=W(function(n,e){try{return xn(n,o,e)}catch(t){return Pi(t)?t:new L(t)}}),Ed=ie(function(n,e){return Cn(e,function(t){t=Jn(t),te(n,t,Oi(n[t],n))}),n});function bd(n){var e=n==null?0:n.length,t=I();return n=e?Y(n,function(r){if(typeof r[1]!="function")throw new Pn(mn);return[t(r[0]),r[1]]}):[],W(function(r){for(var i=-1;++i<e;){var s=n[i];if(xn(s[0],this,r))return xn(s[1],this,r)}})}function Id(n){return Jl(Un(n,Fn))}function Mi(n){return function(){return n}}function Sd(n,e){return n==null||n!==n?e:n}var Rd=Es(),Td=Es(!0);function wn(n){return n}function Fi(n){return ju(typeof n=="function"?n:Un(n,Fn))}function Ld(n){return es(Un(n,Fn))}function Od(n,e){return ts(n,Un(e,Fn))}var Cd=W(function(n,e){return function(t){return gt(t,n,e)}}),Pd=W(function(n,e){return function(t){return gt(n,t,e)}});function $i(n,e,t){var r=rn(e),i=Jt(e,r);t==null&&!(Z(e)&&(i.length||!r.length))&&(t=e,e=n,n=this,i=Jt(e,rn(e)));var s=!(Z(t)&&"chain"in t)||!!t.chain,f=se(n);return Cn(i,function(l){var c=e[l];n[l]=c,f&&(n.prototype[l]=function(){var p=this.__chain__;if(s||p){var _=n(this.__wrapped__),w=_.__actions__=pn(this.__actions__);return w.push({func:c,args:arguments,thisArg:n}),_.__chain__=p,_}return c.apply(n,de([this.value()],arguments))})}),n}function Wd(){return sn._===this&&(sn._=ul),this}function Gi(){}function Ud(n){return n=C(n),W(function(e){return rs(e,n)})}var Dd=vi(Y),Bd=vi(bu),Md=vi(Hr);function Af(n){return bi(n)?Nr(Jn(n)):ga(n)}function Fd(n){return function(e){return n==null?o:Le(n,e)}}var $d=Is(),Gd=Is(!0);function qi(){return[]}function Hi(){return!1}function qd(){return{}}function Hd(){return""}function Nd(){return!0}function Kd(n,e){if(n=C(n),n<1||n>Zn)return[];var t=m,r=on(n,m);e=I(e),n-=m;for(var i=Yr(r,e);++t<n;)e(t);return i}function zd(n){return O(n)?Y(n,Jn):En(n)?[n]:pn(qs(F(n)))}function Yd(n){var e=++rl;return F(n)+e}var Zd=tr(function(n,e){return n+e},0),Xd=wi("ceil"),kd=tr(function(n,e){return n/e},1),Jd=wi("floor");function Qd(n){return n&&n.length?kt(n,wn,ri):o}function Vd(n,e){return n&&n.length?kt(n,I(e,2),ri):o}function jd(n){return Ru(n,wn)}function np(n,e){return Ru(n,I(e,2))}function ep(n){return n&&n.length?kt(n,wn,fi):o}function tp(n,e){return n&&n.length?kt(n,I(e,2),fi):o}var rp=tr(function(n,e){return n*e},1),ip=wi("round"),up=tr(function(n,e){return n-e},0);function sp(n){return n&&n.length?zr(n,wn):0}function fp(n,e){return n&&n.length?zr(n,I(e,2)):0}return u.after=Lh,u.ary=Vs,u.assign=_g,u.assignIn=gf,u.assignInWith=pr,u.assignWith=vg,u.at=wg,u.before=js,u.bind=Oi,u.bindAll=Ed,u.bindKey=nf,u.castArray=qh,u.chain=ks,u.chunk=Ja,u.compact=Qa,u.concat=Va,u.cond=bd,u.conforms=Id,u.constant=Mi,u.countBy=sh,u.create=mg,u.curry=ef,u.curryRight=tf,u.debounce=rf,u.defaults=xg,u.defaultsDeep=yg,u.defer=Oh,u.delay=Ch,u.difference=ja,u.differenceBy=nc,u.differenceWith=ec,u.drop=tc,u.dropRight=rc,u.dropRightWhile=ic,u.dropWhile=uc,u.fill=sc,u.filter=oh,u.flatMap=ch,u.flatMapDeep=hh,u.flatMapDepth=gh,u.flatten=zs,u.flattenDeep=fc,u.flattenDepth=oc,u.flip=Ph,u.flow=Rd,u.flowRight=Td,u.fromPairs=lc,u.functions=Tg,u.functionsIn=Lg,u.groupBy=dh,u.initial=cc,u.intersection=hc,u.intersectionBy=gc,u.intersectionWith=dc,u.invert=Cg,u.invertBy=Pg,u.invokeMap=_h,u.iteratee=Fi,u.keyBy=vh,u.keys=rn,u.keysIn=vn,u.map=lr,u.mapKeys=Ug,u.mapValues=Dg,u.matches=Ld,u.matchesProperty=Od,u.memoize=cr,u.merge=Bg,u.mergeWith=df,u.method=Cd,u.methodOf=Pd,u.mixin=$i,u.negate=hr,u.nthArg=Ud,u.omit=Mg,u.omitBy=Fg,u.once=Wh,u.orderBy=wh,u.over=Dd,u.overArgs=Uh,u.overEvery=Bd,u.overSome=Md,u.partial=Ci,u.partialRight=uf,u.partition=mh,u.pick=$g,u.pickBy=pf,u.property=Af,u.propertyOf=Fd,u.pull=wc,u.pullAll=Zs,u.pullAllBy=mc,u.pullAllWith=xc,u.pullAt=yc,u.range=$d,u.rangeRight=Gd,u.rearg=Dh,u.reject=Ah,u.remove=Ac,u.rest=Bh,u.reverse=Ti,u.sampleSize=bh,u.set=qg,u.setWith=Hg,u.shuffle=Ih,u.slice=Ec,u.sortBy=Th,u.sortedUniq=Oc,u.sortedUniqBy=Cc,u.split=cd,u.spread=Mh,u.tail=Pc,u.take=Wc,u.takeRight=Uc,u.takeRightWhile=Dc,u.takeWhile=Bc,u.tap=Qc,u.throttle=Fh,u.thru=or,u.toArray=af,u.toPairs=_f,u.toPairsIn=vf,u.toPath=zd,u.toPlainObject=hf,u.transform=Ng,u.unary=$h,u.union=Mc,u.unionBy=Fc,u.unionWith=$c,u.uniq=Gc,u.uniqBy=qc,u.uniqWith=Hc,u.unset=Kg,u.unzip=Li,u.unzipWith=Xs,u.update=zg,u.updateWith=Yg,u.values=Je,u.valuesIn=Zg,u.without=Nc,u.words=xf,u.wrap=Gh,u.xor=Kc,u.xorBy=zc,u.xorWith=Yc,u.zip=Zc,u.zipObject=Xc,u.zipObjectDeep=kc,u.zipWith=Jc,u.entries=_f,u.entriesIn=vf,u.extend=gf,u.extendWith=pr,$i(u,u),u.add=Zd,u.attempt=yf,u.camelCase=Qg,u.capitalize=wf,u.ceil=Xd,u.clamp=Xg,u.clone=Hh,u.cloneDeep=Kh,u.cloneDeepWith=zh,u.cloneWith=Nh,u.conformsTo=Yh,u.deburr=mf,u.defaultTo=Sd,u.divide=kd,u.endsWith=Vg,u.eq=Kn,u.escape=jg,u.escapeRegExp=nd,u.every=fh,u.find=lh,u.findIndex=Ns,u.findKey=Ag,u.findLast=ah,u.findLastIndex=Ks,u.findLastKey=Eg,u.floor=Jd,u.forEach=Js,u.forEachRight=Qs,u.forIn=bg,u.forInRight=Ig,u.forOwn=Sg,u.forOwnRight=Rg,u.get=Ui,u.gt=Zh,u.gte=Xh,u.has=Og,u.hasIn=Di,u.head=Ys,u.identity=wn,u.includes=ph,u.indexOf=ac,u.inRange=kg,u.invoke=Wg,u.isArguments=Pe,u.isArray=O,u.isArrayBuffer=kh,u.isArrayLike=_n,u.isArrayLikeObject=Q,u.isBoolean=Jh,u.isBuffer=ye,u.isDate=Qh,u.isElement=Vh,u.isEmpty=jh,u.isEqual=ng,u.isEqualWith=eg,u.isError=Pi,u.isFinite=tg,u.isFunction=se,u.isInteger=sf,u.isLength=gr,u.isMap=ff,u.isMatch=rg,u.isMatchWith=ig,u.isNaN=ug,u.isNative=sg,u.isNil=og,u.isNull=fg,u.isNumber=of,u.isObject=Z,u.isObjectLike=k,u.isPlainObject=mt,u.isRegExp=Wi,u.isSafeInteger=lg,u.isSet=lf,u.isString=dr,u.isSymbol=En,u.isTypedArray=ke,u.isUndefined=ag,u.isWeakMap=cg,u.isWeakSet=hg,u.join=pc,u.kebabCase=ed,u.last=Bn,u.lastIndexOf=_c,u.lowerCase=td,u.lowerFirst=rd,u.lt=gg,u.lte=dg,u.max=Qd,u.maxBy=Vd,u.mean=jd,u.meanBy=np,u.min=ep,u.minBy=tp,u.stubArray=qi,u.stubFalse=Hi,u.stubObject=qd,u.stubString=Hd,u.stubTrue=Nd,u.multiply=rp,u.nth=vc,u.noConflict=Wd,u.noop=Gi,u.now=ar,u.pad=id,u.padEnd=ud,u.padStart=sd,u.parseInt=fd,u.random=Jg,u.reduce=xh,u.reduceRight=yh,u.repeat=od,u.replace=ld,u.result=Gg,u.round=ip,u.runInContext=a,u.sample=Eh,u.size=Sh,u.snakeCase=ad,u.some=Rh,u.sortedIndex=bc,u.sortedIndexBy=Ic,u.sortedIndexOf=Sc,u.sortedLastIndex=Rc,u.sortedLastIndexBy=Tc,u.sortedLastIndexOf=Lc,u.startCase=hd,u.startsWith=gd,u.subtract=up,u.sum=sp,u.sumBy=fp,u.template=dd,u.times=Kd,u.toFinite=fe,u.toInteger=C,u.toLength=cf,u.toLower=pd,u.toNumber=Mn,u.toSafeInteger=pg,u.toString=F,u.toUpper=_d,u.trim=vd,u.trimEnd=wd,u.trimStart=md,u.truncate=xd,u.unescape=yd,u.uniqueId=Yd,u.upperCase=Ad,u.upperFirst=Bi,u.each=Js,u.eachRight=Qs,u.first=Ys,$i(u,function(){var n={};return Xn(u,function(e,t){q.call(u.prototype,t)||(n[t]=e)}),n}(),{chain:!1}),u.VERSION=j,Cn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){u[n].placeholder=u}),Cn(["drop","take"],function(n,e){D.prototype[n]=function(t){t=t===o?1:en(C(t),0);var r=this.__filtered__&&!e?new D(this):this.clone();return r.__filtered__?r.__takeCount__=on(t,r.__takeCount__):r.__views__.push({size:on(t,m),type:n+(r.__dir__<0?"Right":"")}),r},D.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}}),Cn(["filter","map","takeWhile"],function(n,e){var t=e+1,r=t==At||t==Ar;D.prototype[n]=function(i){var s=this.clone();return s.__iteratees__.push({iteratee:I(i,3),type:t}),s.__filtered__=s.__filtered__||r,s}}),Cn(["head","last"],function(n,e){var t="take"+(e?"Right":"");D.prototype[n]=function(){return this[t](1).value()[0]}}),Cn(["initial","tail"],function(n,e){var t="drop"+(e?"":"Right");D.prototype[n]=function(){return this.__filtered__?new D(this):this[t](1)}}),D.prototype.compact=function(){return this.filter(wn)},D.prototype.find=function(n){return this.filter(n).head()},D.prototype.findLast=function(n){return this.reverse().find(n)},D.prototype.invokeMap=W(function(n,e){return typeof n=="function"?new D(this):this.map(function(t){return gt(t,n,e)})}),D.prototype.reject=function(n){return this.filter(hr(I(n)))},D.prototype.slice=function(n,e){n=C(n);var t=this;return t.__filtered__&&(n>0||e<0)?new D(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==o&&(e=C(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},D.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},D.prototype.toArray=function(){return this.take(m)},Xn(D.prototype,function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=u[r?"take"+(e=="last"?"Right":""):e],s=r||/^find/.test(e);i&&(u.prototype[e]=function(){var f=this.__wrapped__,l=r?[1]:arguments,c=f instanceof D,p=l[0],_=c||O(f),w=function(U){var B=i.apply(u,de([U],l));return r&&y?B[0]:B};_&&t&&typeof p=="function"&&p.length!=1&&(c=_=!1);var y=this.__chain__,b=!!this.__actions__.length,S=s&&!y,P=c&&!b;if(!s&&_){f=P?f:new D(this);var R=n.apply(f,l);return R.__actions__.push({func:or,args:[w],thisArg:o}),new Wn(R,y)}return S&&P?n.apply(this,l):(R=this.thru(w),S?r?R.value()[0]:R.value():R)})}),Cn(["pop","push","shift","sort","splice","unshift"],function(n){var e=Ut[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);u.prototype[n]=function(){var i=arguments;if(r&&!this.__chain__){var s=this.value();return e.apply(O(s)?s:[],i)}return this[t](function(f){return e.apply(O(f)?f:[],i)})}}),Xn(D.prototype,function(n,e){var t=u[e];if(t){var r=t.name+"";q.call(Ke,r)||(Ke[r]=[]),Ke[r].push({name:e,func:t})}}),Ke[er(o,Vn).name]=[{name:"wrapper",func:o}],D.prototype.clone=yl,D.prototype.reverse=Al,D.prototype.value=El,u.prototype.at=Vc,u.prototype.chain=jc,u.prototype.commit=nh,u.prototype.next=eh,u.prototype.plant=rh,u.prototype.reverse=ih,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=uh,u.prototype.first=u.prototype.head,st&&(u.prototype[st]=th),u},Wt=nl();sn._=Wt,Qe=function(){return Wt}.call(un,X,un,$),Qe!==o&&($.exports=Qe)}).call(this)},388:$=>{"use strict";$.exports=Ni}},Ae={};function Sn($){var un=Ae[$];if(un!==void 0)return un.exports;var X=Ae[$]={id:$,loaded:!1,exports:{}};return We[$].call(X.exports,X,X.exports,Sn),X.loaded=!0,X.exports}Sn.d=($,un)=>{for(var X in un)Sn.o(un,X)&&!Sn.o($,X)&&Object.defineProperty($,X,{enumerable:!0,get:un[X]})},Sn.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),Sn.o=($,un)=>Object.prototype.hasOwnProperty.call($,un),Sn.r=$=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty($,Symbol.toStringTag,{value:"Module"}),Object.defineProperty($,"__esModule",{value:!0})},Sn.nmd=$=>($.paths=[],$.children||($.children=[]),$);var _r={};return(()=>{"use strict";Sn.r(_r),Sn.d(_r,{SSFGuest:()=>Be});const un={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let X;const Qe=new Uint8Array(16);function o(){if(!X&&(X=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!X))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return X(Qe)}const j=[];for(let m=0;m<256;++m)j.push((m+256).toString(16).slice(1));function Ue(m,h=0){return j[m[h+0]]+j[m[h+1]]+j[m[h+2]]+j[m[h+3]]+"-"+j[m[h+4]]+j[m[h+5]]+"-"+j[m[h+6]]+j[m[h+7]]+"-"+j[m[h+8]]+j[m[h+9]]+"-"+j[m[h+10]]+j[m[h+11]]+j[m[h+12]]+j[m[h+13]]+j[m[h+14]]+j[m[h+15]]}function Ki(m,h=0){const v=Ue(m,h);if(!validate(v))throw TypeError("Stringified UUID is invalid");return v}const mn=null;function vr(m,h,v){if(un.randomUUID&&!h&&!m)return un.randomUUID();m=m||{};const x=m.random||(m.rng||o)();if(x[6]=x[6]&15|64,x[8]=x[8]&63|128,h){v=v||0;for(let A=0;A<16;++A)h[v+A]=x[A];return h}return Ue(x)}const le=vr;var wr=Sn(918);const Ee="elli:remoting",Fn="elli:remoting:response",Ve="elli:remoting:exception",Rn=({messageType:m,messageBody:h,onewayMsg:v=!1})=>({requestId:v?null:le(),source:Ee,type:m,body:h}),Qn=m=>{const{targetWin:h,targetOrigin:v,messageType:x,messageBody:A}=m,T=Rn({messageType:x,messageBody:A});h.postMessage(T,v)};class De{#o;#n;#e=new Map;#r=new Map;#i=null;#u=new Map;constructor(h,v){if(!h)throw new Error("logger is required");if(!v)throw new Error("correlationId is required");this.#o=v,this.#n=h}#l=()=>{const h=Date.now(),v=[];this.#r.forEach((x,A)=>{const{requestId:T,cancelTime:G}=x;this.#n.debug(`Checking response timeout for requestId: ${T}) @ ${G??""}`),x.cancelTime&&x.cancelTime<h&&(this.#n.debug(`Detected response timeout for requestId: ${T}...`),v.push(A),x.resolve(),this.#n.debug(`Aborted waiting for response to requestid: ${T})`))}),v.forEach(x=>{this.#n.debug(`removing invocations with requestId ${x} from cache since response time has expired`),this.#r.delete(x)}),this.#r.size===0&&(this.#n.debug("stopping response monitor"),this.#d())};#g=()=>{this.#i===null&&(this.#n.debug("Staring response timeout evaluator"),this.#i=window.setInterval(this.#l,200))};#d=()=>{this.#i!==null&&(window.clearInterval(this.#i),this.#i=null,this.#n.debug("Stopped response timeout evaluator"))};#a=h=>{const v=this.#r.get(h);return this.#n.debug(`serving requestId: ${h}`),this.#r.delete(h),v};#f=h=>{const{requestId:v}=h;this.#n.debug(`Response received for invocation requestId: ${v}`);const x=this.#a(v);return x?(x.resolve(h.body),!0):(this.#n.warn(`Received response to stale/invalid request with requestId: ${v}`),!1)};#s=h=>{this.#n.debug(`Exception received for invocation (requestId = ${h.requestId})`);const v=this.#a(h.requestId);return v?(v.reject(new Error(h.body)),!0):(this.#n.warn(`Received exception for stale/invalid request (requestId = ${h.requestId})`),!1)};#_=({sourceWin:h,sourceOrigin:v,message:x})=>{this.#n.debug(`Received message of type "${x.type}"`);const A=this.#e.get(x.type);return A?(A.forEach(T=>{this.#n.debug(`Invoking message handler ${T.name}`),T({sourceWin:h,sourceOrigin:v,requestId:x.requestId,type:x.type,body:x.body})}),!0):!1};#t=h=>{if(this.#n.debug(`Remoting: Received message ${JSON.stringify(h.data)}`),this.#u.size===0||!h.source)return!1;const v=this.#u.get(h.source);return!v||h?.data?.source!==Ee?!1:(h.data.type===Fn?this.#f(h.data):h.data.type===Ve?this.#s(h.data):this.#_({sourceWin:h.source,sourceOrigin:v,message:h.data}),!0)};addSender=h=>{const{origin:v,window:x}=h;if(!v)throw new Error("origin is required");if(!x)throw new Error("window is required");this.#u.set(x,v)};initialize=h=>{h.removeEventListener("message",this.#t),h.addEventListener("message",this.#t),this.#n.debug(`initialized remoting id: ${this.#o}`)};close=()=>{window.removeEventListener("message",this.#t),this.#n.debug(`closed remoting id: ${this.#o}`)};invoke=h=>{const{targetWin:v,targetOrigin:x,messageType:A,messageBody:T,responseTimeoutMs:G}=h;return new Promise((J,gn)=>{const dn=Rn({messageType:A,messageBody:T});this.#r.set(dn.requestId,{requestId:dn.requestId,resolve:J,reject:gn,cancelTime:G?Date.now()+Number.parseInt(G,10):null}),v.postMessage(dn,x);const{requestId:Ln}=dn;this.#n.debug(`Posted invocation message of type ${A} requestId: ${Ln||""}`),G&&(this.#n.debug(`starting response monitor for requestId: ${Ln||""} for ${G} ms`),this.#g())})};listen=h=>{const{messageType:v,callback:x}=h,A=this.#e.get(v)||[];A.push(x),this.#e.set(v,A)};send=h=>{const{targetWin:v,targetOrigin:x,messageType:A,messageBody:T}=h,G=Rn({messageType:A,messageBody:T,onewayMsg:!0});v.postMessage(G,x),this.#n.debug(`Posted one-way message of type "${A}"`)};removeSender=h=>{const{window:v}=h;v&&this.#u.delete(v)};respond=h=>{const{targetWin:v,targetOrigin:x,requestId:A,response:T}=h,G=Rn({messageType:Fn,messageBody:T});G.requestId=A,v.postMessage(G,x),this.#n.debug(`Response sent to caller for invocation requestId: ${A}`)};raiseException=h=>{const{targetWin:v,targetOrigin:x,requestId:A,ex:T}=h,G=Rn({messageType:Ve,messageBody:T});G.requestId=A,v.postMessage(G,x),this.#n.debug(`Exception sent to caller for invocation. requestId: ${A}`)}}var K=(m=>(m.GuestReady="guest:ready",m.GuestClose="guest:close",m.GuestReadyComplete="guest:readyComplete",m.GuestResize="guest:resize",m.GuestFocus="guest:focus",m.HandShake="handshake",m.HandShakeAck="handshake:ack",m.ObjectInvoke="object:invoke",m.ObjectGet="object:get",m.ObjectEvent="object:event",m.HostConfig="host:config",m.HostClose="host:close",m))(K||{});class Vn{scriptingObject;name;objectId;requiresFeedback;id;constructor(h){const{name:v,requiresFeedback:x=!1,so:A}=h;if(!v)throw new Error("Event name is required");if(!A)throw new Error("Scripting object is required");this.scriptingObject=A,this.objectId=A.id,this.name=v,this.id=`${this.objectId}.${this.name}`.toLowerCase(),this.requiresFeedback=x}}class xt{static[Symbol.hasInstance](h){return h.getType?.()==="ProxyEvent"}objectId;name;id;getType(){return"ProxyEvent"}constructor(h){const{name:v,objectId:x}=h;this.objectId=x,this.name=v,this.id=`${this.objectId}.${this.name}`.toLowerCase()}}const $n=m=>m instanceof Vn,ae=(m,h)=>`${m.toLowerCase()}.${h.toLowerCase()}`;var tn=Sn(388);class ce{id;objectType;constructor(h,v){this.id=h,this.objectType=v}}const Tn=()=>{const{parent:m}=window;try{return m?.location?.href}catch{return null}},he=m=>{if(!m||m==="about:blank")return"*";try{const{origin:h}=new URL(m);return h==="null"||!h?m:h}catch{const{origin:v}=new URL(m,document.baseURI);return v}},be=()=>window.self!==window.parent,yt=(m,h)=>{const v=h||document.body,x=document.defaultView?.getComputedStyle?.(v,null),A=x?x[m]:"0";return parseInt(A,10)},mr=new RegExp("^https?://(.*.elliemae.io|.*.ellielabs.com|.*.ellieservices.com|.*.encompassloconnect.com|.*.ice.com|localhost:[0-9]+)","i"),xr="elli:remoting",yr=()=>new Promise(m=>{if(be())m({origin:he(document.referrer||Tn()),window:window.parent});else{const h=window,v=x=>{if(mr.test(x.origin)){const{source:A,type:T}=x.data||{};if(A===xr&&T===K.HandShake){const{origin:G}=x,J=x.source;Qn({targetWin:J,targetOrigin:G,messageType:K.HandShakeAck,messageBody:{}}),h.removeEventListener("message",v),m({origin:G,window:J})}}};h.addEventListener("message",v)}});var At=(m=>(m.OBJECT="object",m.VALUE="value",m))(At||{});const Et=12e4,Ar={eventFeedback:!0},Yn=()=>{const{document:m}=window,h=m.body,v=m.documentElement,A={height:h.offsetHeight+yt("marginTop")+yt("marginBottom"),width:Math.max(h.scrollWidth,v.scrollWidth)};Qn({targetWin:window.parent,targetOrigin:he(m.referrer||Tn()),messageType:K.GuestResize,messageBody:A}),window.removeEventListener("load",Yn)};be()&&window.addEventListener("load",Yn);const Zn="https://api.elliemae.com/diagnostics/v2/logging",bt=["click","scroll","keypress","touchstart"];class Be{#o;#n;#e;#r=!1;#i=null;#u=!1;#l=new Map;#g=null;#d=null;#a=null;#f=null;#s=null;#_=!1;#t=null;#c=null;#p=null;#x=!0;#y=Et;#w;#v=null;constructor(h){const{console:v=!1,url:x=window.__ICE__?.diagnosticsUrl||Zn,index:A,team:T,appName:G}=h?.logger??{};this.#w=h?.logger,this.#_=h?.usesDevConnectAPI??!1,this.#x=h?.keepAlive??!0,this.#y=h?.keepAliveInterval??Et;const J=v?(0,tn.Console)():(0,tn.http)(x);this.#n=(0,tn.logger)({transport:J,index:A,team:T,appName:G}),(0,tn.webvitals)(this.#n),(0,tn.logUnhandledErrors)(this.#n),this.#o=le(),this.#e=new De(this.#n,this.#o),this.#n.audit({message:"Guest created",guestUrl:window.location.href,correlationId:this.#o})}#h=()=>({guestId:this.#g,guestTitle:this.#d,guestUrl:this.#a});#m=h=>{if(!h||!h.objectId)throw this.#n.error("Deserialization of scripting object failed. Object does not have an Object ID."),new Error("Cannot deserialize object JSON into proxy.");const v=new ce(h.objectId,h.objectType);return h.functions&&h.functions.forEach(x=>{Object.defineProperty(v,x,{value:async(...A)=>this.#A({objectId:v.id,functionName:x,functionParams:[].slice.call(A)}),enumerable:!0})}),h.events&&h.events.forEach(x=>{Object.defineProperty(v,x,{value:new xt({objectId:v.id,name:x}),enumerable:!0})}),this.#n.debug(`Created guest proxy for scripting object (id = "${v.id}")`),v};#A=async({objectId:h,functionName:v,functionParams:x})=>{this.#n.debug(`Invoking scripting object method ${h}.${v}()...`);const A=[];if(x)for(let J=0;J<x.length;J+=1){const gn=x[J];gn instanceof Promise&&A.push(gn.then(dn=>{x[J]=dn}))}await Promise.all(A);const T=await this.#e.invoke({targetWin:this.#s,targetOrigin:this.#f,messageType:K.ObjectInvoke,messageBody:{objectId:h,functionName:v,functionParams:x}}),G=this.#E(T);return this.#n.audit({message:"Guest proxy invoked Scripting Object method",scriptingObject:h,scriptingMethod:v,...this.#h()}),G};#E=h=>h?.type==="object"&&"object"in h?this.#m(h.object):h?.type==="value"?h.value:h;#b=({body:h})=>{h?.logLevel&&(this.#n.setLogLevel(h.logLevel),this.#n.debug(`Log level changed by host to ${h.logLevel}`)),this.#g=h?.guestId??null,this.#d=h?.guestTitle??null,this.#a=h?.guestUrl??null,this.#n.audit({message:"Received configuration from Host",...this.#h()})};#I=()=>{window.focus()};#S=async()=>{await this.close(),window.close()};#R=()=>{be()||setInterval(()=>{this.#s?.closed&&this.close().then(()=>{window.close()}).catch(()=>{})},1e3)};#T=async({sourceWin:h,sourceOrigin:v,requestId:x,body:A})=>{const T=this.#m(A.object);if(T){const G=ae(T.id,A.eventName);this.#n.debug(`Received event "${G}" from host`);let J;A.eventHandler?J=[{callback:window[A.eventHandler],token:le()}]:J=this.#l.get(G)||[];const gn=[];if(J.forEach(dn=>{if(dn?.callback){this.#n.debug(`Invoking event subscriber ${dn.callback.name} for event ${G}`);const Ln=dn.callback({obj:T,eventName:A.eventName,eventParams:A.eventParams,eventOptions:A.eventOptions});Ln instanceof Promise?gn.push(Ln):typeof Ln<"u"&&gn.push(Promise.resolve(Ln))}}),x){const dn=await Promise.all(gn);this.#e.respond({targetWin:h,targetOrigin:v,requestId:x,response:dn}),this.#n.audit({message:"Guest proxy processed event from host and responded",scriptingEventId:G,scriptingObject:T.id,...this.#h()})}else this.#n.audit({message:"Guest proxy processed event from host",scriptingEventId:G,scriptingObject:T.id,...this.#h()})}};#L=async()=>{!this.#t||!this.#c||!this.#p||await fetch(`${this.#p}/oauth2/v1/token/introspection?${new URLSearchParams({token:this.#t,client_id:this.#c}).toString()}`,{headers:{"content-type":"application/x-www-form-urlencoded;charset=UTF-8"},method:"POST"})};#O=async()=>{if(this.#t&&this.#c&&this.#p)try{await fetch(`${this.#p}/oauth2/v1/token/revocation?${new URLSearchParams({token:this.#t,client_id:this.#c}).toString()}`,{method:"POST"})}catch(h){this.#n.error(`Error revoking token. ${h.message}`)}finally{this.#t=null,this.#c=null}};#C=async()=>{if(this.#x)try{const h=await this.getObject("application");h?(this.#v=(0,wr.throttle)(async()=>{try{await h.keepSessionAlive(),await this.#L()}catch(v){this.#n.error(`Error keeping session alive. ${v.message}`)}},this.#y,{leading:!1}),bt.forEach(v=>{document.addEventListener(v,this.#v)})):this.#n.warn("Application object not available to send keep alive")}catch(h){this.#n.error(`Error getting application object. ${h.message}`)}};#P=async()=>{try{const h=await this.getObject("application");if(h?.log&&!this.#w.console){const{index:v,team:x,appName:A}=this.#w;this.#n=(0,tn.logger)({transport:(0,tn.parentApp)(h),index:v,team:x,appName:A})}}catch(h){this.#n.error(`Error getting application object. ${h.message}`)}};addScript=async(h,v)=>{if(!this.#r&&h){await this.connect();const x=document.createElement("script");x.setAttribute("src",h),await new Promise(A=>{const T=()=>{x?.removeEventListener?.("load",T),this.#r=!0,A()};x.addEventListener("load",T),this.#i=v.appendChild(x)})}};close=async()=>{this.#u&&(this.#e.send({targetWin:this.#s,targetOrigin:this.#f,messageType:K.GuestClose,messageBody:{}}),this.#e.removeSender({origin:this.#f,window:this.#s}),this.#e.close(),this.#v&&bt.forEach(h=>{document.removeEventListener(h,this.#v)}),await this.#O(),window.removeEventListener("beforeunload",this.close),this.#u=!1,this.#n.audit({message:"Guest disconnected from host",...this.#h()}),this.#g=null,this.#a=null,this.#d=null)};connect=async h=>{if(!this.#u){let v=window,x={...Ar};if(h){v=h.window||v;const T={...h};delete T.window,x=Object.assign(x,T)}const A=await yr();this.#f=A.origin,this.#s=A.window,this.#e.initialize(v),this.#e.addSender({origin:this.#f,window:this.#s}),this.#e.listen({messageType:K.ObjectEvent,callback:this.#T.bind(this)}),this.#e.listen({messageType:K.HostConfig,callback:this.#b.bind(this)}),this.#e.listen({messageType:K.GuestFocus,callback:this.#I.bind(this)}),this.#e.listen({messageType:K.HostClose,callback:this.#S.bind(this)}),this.#e.send({targetWin:this.#s,targetOrigin:this.#f,messageType:K.GuestReady,messageBody:x}),this.#u=!0,this.#R(),this.#_&&await this.getAuthToken(),await this.#C(),await this.#P(),window.addEventListener("beforeunload",this.close),this.#n.audit({message:"Guest connected to host",guestUrl:window.location.href})}};getAuthToken=async()=>{if(!this.#t&&this.#u)try{const h=await this.getObject("auth");if(h){const v=await h.getAccessToken();this.#t=v?.access_token,this.#p=v?.host_name,this.#c=v?.client_id}else this.#n.warn("Auth object not available to get access token from host")}catch(h){console.dir(h,{depth:null}),this.#n.error(`Error getting access token from auth object. ${h.message}`)}return this.#t};getObject=async h=>{this.#n.debug(`Retrieving scripting object "${h}" from host...`);const v=await this.#e.invoke({targetWin:this.#s,targetOrigin:this.#f,messageType:K.ObjectGet,messageBody:{objectId:h}}),x=this.#m(v.object);return this.#n.audit({message:"Received scripting object from host",scriptingObject:h,...this.#h()}),x};removeScript=()=>{if(this.#r&&this.#i){const{parentNode:h}=this.#i;h?.removeChild?.(this.#i)}};setLogLevel=h=>{this.#n.setLogLevel(h),this.#n.debug(`Log level changed by guest to ${h}`)};subscribe=h=>{const{eventId:v,callback:x}=h;this.#n.debug(`Registering subscription for event ${v}`);const A=this.#l.get(v)||[],T=le();return A.push({callback:x,token:T}),this.#l.set(v,A),T};unsubscribe=h=>{const{eventId:v,token:x}=h;let A=this.#l.get(v);A&&(A=A.filter(T=>T.token!==x),this.#l.set(v,A))}}})(),_r})());
28
28
 
29
- //# sourceMappingURL=emuiSsfGuest.9130e23170c7f40514b8.js.map
29
+ //# sourceMappingURL=emuiSsfGuest.218d4e4878ba0ff19506.js.map