1ds-bundle.js

https://docucdn-a.akamaihd.net/production/1ds/widgets/@ds/prepare/1.138.944-16/js/1ds-bundle.js

Analyzed: 3/24/2026, 1:05:43 AM

View Scan Result

Script Analysis Summary

Summary: 1ds-bundle.js is a 9.74 MB external identified as lit. Contains 37809 functions with complexity score of 26182. SHA-256: ad6dd193a75615f1...

external9.74 MBlitML Embeddings Available

Code Metrics

File Size
9.74 MB
Functions
37,809*
Complexity
26,182
AST Nodes
2,326,058
AST Depth
77
Function Calls
0
Normalized Size
101.3 KB

Obfuscation Analysis

No obfuscation data available

Library Detection

lit

Bundle Analysis

Not a bundled file

Copyright & License

License
"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"});var tk=tS.exports,tR=function(e,t){return tk[e]||(tk[e]=t||{})},tO=eV,tP=Object,tM=function(e){return tP(tO(e))},tN=tM,tF=ep({}.hasOwnProperty),tL=Object.hasOwn||function(e,t){return tF(tN(e),t)},tB=0,tV=Math.random(),tU=ep(1..toString),tY=function(e){return"Symbol("+(void 0===e?"":e)+")_"+tU(++tB+tV,36)},tG=tR,tH=tL,tq=tY,tz=te,tW=tn,tj=ee.Symbol,t$=tG("wks"),tJ=tW?tj.for||tj:tj&&tj.withoutSetter||tq,tK=function(e){return tH(t$,e)||(t$[e]=tz&&tH(tj,e)?tj[e]:tJ("Symbol."+e)),t$[e]},tX=eC,tZ=eq,tQ=tl,t0=tv,t1=tA,t2=TypeError,t3=tK("toPrimitive"),t4=function(e,t){if(!tZ(e)||tQ(e))return e;var n,i=t0(e,t3);if(i){if(void 0===t&&(t="default"),!tZ(n=tX(i,e,t))||tQ(n))return n;throw new t2("Can't convert object to primitive value")}return void 0===t&&(t="number"),t1(e,t)},t5=t4,t6=tl,t8=function(e){var t=t5(e,"string");return t6(t)?t:t+""},t7=eq,t9=ee.document,ne=t7(t9)&&t7(t9.createElement),nt=function(e){return ne?t9.createElement(e):{}},nn=et,ni=nt,nr=!eS&&!nn(function(){return 7!==Object.defineProperty(ni("div"),"a",{get:function(){return 7}}).a}),na=eC,no=ex,ns=ek,nl=eG,nc=t8,nu=tL,nd=nr,np=Object.getOwnPropertyDescriptor;eA.f=eS?np:function(e,t){if(e=nl(e),t=nc(t),nd)try{return np(e,t)}catch(e){}if(nu(e,t))return ns(!na(no.f,e,t),e[t])};var nh=et,nm=eT,ng=/#|\.prototype\./,nf=function(e,t){var n=ny[nv(e)];return n===n_||n!==nb&&(nm(t)?nh(t):!!t)},nv=nf.normalize=function(e){return String(e).replace(ng,".").toLowerCase()},ny=nf.data={},nb=nf.NATIVE="N",n_=nf.POLYFILL="P",nT=nf,nA=eb,nS=tm,nE=en,nw=nA(nA.bind),nC=function(e,t){return nS(e),void 0===t?e:nE?nw(e,t):function(){return e.apply(t,arguments)}},nx={},nI=et,nD=eS&&nI(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),nk=eq,nR=String,nO=TypeError,nP=function(e){if(nk(e))return e;throw new nO(nR(e)+" is not an object")},nM=nr,nN=nD,nF=nP,nL=t8,nB=TypeError,nV=Object.defineProperty,nU=Object.getOwnPropertyDescriptor,nY="enumerable",nG="configurable",nH="writable";nx.f=eS?nN?function(e,t,n){if(nF(e),t=nL(t),nF(n),"function"==typeof e&&"prototype"===t&&"value"in n&&nH in n&&!n[nH]){var i=nU(e,t);i&&i[nH]&&(e[t]=n.value,n={configurable:nG in n?n[nG]:i[nG],enumerable:nY in n?n[nY]:i[nY],writable:!1})}return nV(e,t,n)}:nV:function(e,t,n){if(nF(e),t=nL(t),nF(n),nM)try{return nV(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new nB("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var nq=nx,nz=ek,nW=eS?function(e,t,n){return nq.f(e,t,nz(1,n))}:function(e,t,n){return e[t]=n,e};function nj(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function n$(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var nJ=ee,nK=es,nX=eb,nZ=eT,nQ=eA.f,n0=nT,n1=ez,n2=nC,n3=nW,n4=tL,n5=function(e){var t=function(n,i,r){if(nj(this,t)){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,i)}return new e(n,i,r)}return nK(e,this,arguments)};return t.prototype=e.prototype,t},n6=function(e,t){var n,i,r,a,o,s,l,c,u,d=e.target,p=e.global,m=e.stat,g=e.proto,f=p?nJ:m?nJ[d]:nJ[d]&&nJ[d].prototype,v=p?n1:n1[d]||n3(n1,d,{})[d],y=v.prototype;for(a in t)i=!(n=n0(p?a:d+(m?".":"#")+a,e.forced))&&f&&n4(f,a),s=v[a],i&&(l=e.dontCallGetSet?(u=nQ(f,a))&&u.value:f[a]),o=i&&l?l:t[a],(n||g||(void 0===s?"undefined":n$(s))!=(void 0===o?"undefined":n$(o)))&&(c=e.bind&&i?n2(o,nJ):e.wrap&&i?n5(o):g&&nZ(o)?nX(o):o,(e.sham||o&&o.sham||s&&s.sham)&&n3(c,"sham",!0),n3(v,a,c),g&&(n4(n1,r=d+"Prototype")||n3(n1,r,{}),n3(n1[r],a,o),e.real&&y&&(n||!y[a])&&n3(y,a,o)))},n8=Math.ceil,n7=Math.floor,n9=Math.trunc||function(e){var t=+e;return(t>0?n7:n8)(t)},it=function(e){var t=+e;return t!=t||0===t?0:n9(t)},ii=it,ir=Math.max,ia=Math.min,io=function(e,t){var n=ii(e);return n<0?ir(n+t,0):ia(n,t)},is=it,il=Math.min,ic=function(e){var t=is(e);return t>0?il(t,0x1fffffffffffff):0},iu=ic,id=function(e){return iu(e.length)},ip=eG,ih=io,im=id,ig=function(e){return function(t,n,i){var r,a=ip(t),o=im(a);if(0===o)return!e&&-1;var s=ih(i,o);if(e&&n!=n){for(;o>s;)if((r=a[s++])!=r)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},iv={includes:ig(!0),indexOf:ig(!1)},iy={},ib=ep,i_=tL,iT=eG,iA=iv.indexOf,iS=iy,iE=ib([].push),iw=function(e,t){var n,i=iT(e),r=0,a=[];for(n in i)!i_(iS,n)&&i_(i,n)&&iE(a,n);for(;t.length>r;)i_(i,n=t[r++])&&(~iA(a,n)||iE(a,n));return a},iC=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ix=iw,iI=iC,iD=Object.keys||function(e){return ix(e,iI)},ik={};ik.f=Object.getOwnPropertySymbols;var iR=eS,iO=eC,iP=et,iM=iD,iN=ik,iF=ex,iL=tM,iB=eN,iV=Object.assign,iU=Object.defineProperty,iY=ep([].concat),iG=!iV||iP(function(){if(iR&&1!==iV({b:1},iV(iU({},"a",{enumerable:!0,get:function(){iU(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!==iV({},e)[n]||iM(iV({},t)).join("")!==i})?function(e,t){for(var n=iL(e),i=arguments.length,r=1,a=iN.f,o=iF.f;i>r;)for(var s,l=iB(arguments[r++]),c=a?iY(iM(l),a(l)):iM(l),u=c.length,d=0;u>d;)s=c[d++],(!iR||iO(o,l,s))&&(n[s]=l[s]);return n}:iV;n6({target:"Object",stat:!0,arity:2,forced:Object.assign!==iG},{assign:iG}),ez.Object.assign;var iH=null,iq=ep([].slice);function iz(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var iW=ep,ij=tm,i$=eq,iJ=tL,iK=iq,iX=en,iZ=Function,iQ=iW([].concat),i0=iW([].join),i1={},i2=function(e,t,n){if(!iJ(i1,t)){for(var i=[],r=0;r<t;r++)i[r]="a["+r+"]";i1[t]=iZ("C,a","return new C("+i0(i,",")+")")}return i1[t](e,n)},i3=iX?iZ.bind:function(e){var t=ij(this),n=t.prototype,i=iK(arguments,1),r=function(){var n=iQ(i,iK(arguments));return iz(this,r)?i2(t,n.length,n):t.apply(e,n)};return i$(n)&&(r.prototype=n),r},i4=i3;n6({target:"Function",proto:!0,forced:Function.bind!==i4},{bind:i4});var i5=ee,i6=ez,i8=function(e,t){var n=i6[e+"Prototype"],i=n&&n[t];if(i)return i;var r=i5[e],a=r&&r.prototype;return a&&a[t]},i7=i8("Function","bind"),i9=eX,re=i7,rt=Function.prototype,rn=function(e){var t=e.bind;return e===rt||i9(rt,e)&&t===rt.bind?re:t},ri=ef,rr=Array.isArray||function(e){return"Array"===ri(e)};n6({target:"Array",stat:!0},{isArray:rr});var ra=ez.Array.isArray;function ro(e){if(ra(e))return e}var rs=TypeError,rl=0x1fffffffffffff,rc=function(e){if(e>rl)throw rs("Maximum allowed index exceeded");return e},ru=eS,rd=nx,rp=ek,rh=function(e,t,n){ru?rd.f(e,t,rp(0,n)):e[t]=n},rm=tK("toStringTag"),rg={};rg[rm]="z";var rf="[object z]"===String(rg),rv=rf,ry=eT,rb=ef,r_=tK("toStringTag"),rT=Object,rA="Arguments"===rb(function(){return arguments}()),rS=function(e,t){try{return e[t]}catch(e){}},rE=rv?rb:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=rS(t=rT(e),r_))?n:rA?rb(t):"Object"===(i=rb(t))&&ry(t.callee)?"Arguments":i},rw=ep,rC=eT,rx=tS.exports,rI=rw(Function.toString);rC(rx.inspectSource)||(rx.inspectSource=function(e){return rI(e)});var rD=rx.inspectSource,rk=ep,rR=et,rO=eT,rP=rE,rM=rD,rN=function(){},rF=eK("Reflect","construct"),rL=/^\s, Number",type:"Text",friendlyDataLabel:"designatedbuyerAgent.licenseNum"}],"Buyer's Agent Two":[{dataLabel:"room.details.buyerAgent2.name",label:"Buyer Agent Two Full Name",type:"Text",recipientDataMap:{roleName:"Buyer Agent Two",attribute:"name"},friendlyDataLabel:"buyerAgent2.name"},{dataLabel:"room.details.buyerAgent2.address1",label:"Street Address",type:"Text",friendlyDataLabel:"buyerAgent2.address1"},{dataLabel:"room.details.buyerAgent2.address2",label:"Apt / Suite / Other",type:"Text",friendlyDataLabel:"buyerAgent2.address2"},{dataLabel:"room.details.buyerAgent2.city",label:"City",type:"Text",friendlyDataLabel:"buyerAgent2.city"},{dataLabel:"room.details.buyerAgent2.state",label:"State",type:"Dropdown",friendlyDataLabel:"buyerAgent2.state"},{dataLabel:"room.details.buyerAgent2.postalCode",label:"ZIP Code",type:"Text",friendlyDataLabel:"buyerAgent2.postalCode"},{dataLabel:"room.details.buyerAgent2.cellPhone",label:"Cell Phone Number",type:"Text",friendlyDataLabel:"buyerAgent2.cellPhone"},{dataLabel:"room.details.buyerAgent2.email",label:"Email Address",type:"Text",recipientDataMap:{roleName:"Buyer Agent Two",attribute:"email"},friendlyDataLabel:"buyerAgent2.email"},{dataLabel:"room.details.designatedbuyerAgent2.licenseNum",label:"Buyer Agent License Number",type:"Text",friendlyDataLabel:"buyerAgent2.licenseNum"}],"Buyer's Brokerage":[{dataLabel:"room.details.buyerBrokerage.name",label:"Buyer's Brokerage/Selling Broker Firm Name",type:"Text",recipientDataMap:{roleName:"Buyer's Brokerage/Selling Broker",attribute:"name"},friendlyDataLabel:"buyerBrokerage.name"},{dataLabel:"room.details.buyerBrokerage.address",label:"Address",type:"Text",friendlyDataLabel:"buyerBrokerage.address"},{dataLabel:"room.details.buyerBrokerage.city",label:"City",type:"Text",friendlyDataLabel:"buyerBrokerage.city"},{dataLabel:"room.details.buyerBrokerage.state",label:"State",type:"Dropdown",friendlyDataLabel:"buyerBrokerage.state"},{dataLabel:"room.details.buyerBrokerage.postalCode",label:"ZIP Code",type:"Text",friendlyDataLabel:"buyerBrokerage.postalCode"},{dataLabel:"room.details.buyerBrokerage.OfficePhone",label:"Office Phone Number",type:"Text",friendlyDataLabel:"buyerBrokerage.officePhone"},{dataLabel:"room.details.buyerBrokerage.email",label:"Email Address",type:"Text",recipientDataMap:{roleName:"Buyer's Brokerage/Selling Broker",attribute:"email"},friendlyDataLabel:"buyerBrokerage.email"},{dataLabel:"room.details.buyerBrokerage.fax",label:"Fax",type:"Text",friendlyDataLabel:"buyerBrokerage.fax"},{dataLabel:"room.details.buyerBrokerage.licenseNum",label:"Buyer Brokerage State License Number",type:"Text",friendlyDataLabel:"buyerBrokerage.licenseNum"}],"Seller One":[{dataLabel:"room.details.seller1.name",label:"Seller One Full Name",type:"Text",recipientDataMap:{roleName:"Seller One",attribute:"name"},friendlyDataLabel:"seller1.name"},{dataLabel:"room.details.seller1.address1",label:"Street Address",type:"Text",friendlyDataLabel:"seller1.address1"},{dataLabel:"room.details.seller1.address2",label:"Apt / Suite / Other",type:"Text",friendlyDataLabel:"seller1.address2"},{dataLabel:"room.details.seller1.city",label:"City",type:"Text",friendlyDataLabel:"seller1.city"},{dataLabel:"room.details.seller1.state",label:"State",type:"Dropdown",friendlyDataLabel:"seller1.state"},{dataLabel:"room.details.seller1.postalCode",label:"ZIP Code",type:"Text",friendlyDataLabel:"seller1.postalCode"},{dataLabel:"room.details.seller1.cellPhone",label:"Cell Phone Number",type:"Text",friendlyDataLabel:"seller1.cellPhone"},{dataLabel:"room.details.seller1.email",label:"Email Address",type:"Text",recipientDataMap:{roleName:"Seller One",attribute:"email"},friendlyDataLabel:"seller1.email"}],"Seller Two":[{dataLabel:"room.details.seller2.name",label:"Seller Two Full Name",type:"Text",recipientDataMap:{roleName:"Seller Two",attribute:"name"},friendlyDataLabel:"seller2.name"},{dataLabel:"room.details.seller2.address1",label:"Street Address",type:"Text",friendlyDataLabel:"seller2.address1"},{dataLabel:"room.details.seller2.address2",label:"Apt / Suite / Other",type:"Text",friendlyDataLabel:"seller2.address2"},{dataLabel:"room.details.seller2.city",label:"City",type:"Text",friendlyDataLabel:"seller2.city"},{dataLabel:"room.details.seller2.state",label:"State",type:"Dropdown",friendlyDataLabel:"seller2.state"},{dataLabel:"room.details.seller2.postalCode",label:"ZIP Code",type:"Text",friendlyDataLabel:"seller2.postalCode"},{dataLabel:"room.details.seller2.cellPhone",label:"Cell Phone Number",type:"Text",friendlyDataLabel:"seller2.cellPhone"},{dataLabel:"room.details.seller2.email",label:"Email Address",type:"Text",recipientDataMap:{roleName:"Seller Two",attribute:"email"},friendlyDataLabel:"seller2.email"}],"Seller Three":[{dataLabel:"room.details.seller3.name",label:"Seller Three Full Name",type:"Text",recipientDataMap:{roleName:"Seller Three",attribute:"name"},friendlyDataLabel:"seller3.name"},{dataLabel:"room.details.seller3.address1",label:"Street Address",type:"Text",friendlyDataLabel:"seller3.address1"},{dataLabel:"room.details.seller3.address2",label:"Apt / Suite / Other",type:"Text",friendlyDataLabel:"seller3.address2"},{dataLabel:"room.details.seller3.city",label:"City",type:"Text",friendlyDataLabel:"seller3.city"},{dataLabel:"room.details.seller3.state",label:"State",type:"Dropdown",friendlyDataLabel:"seller3.state"},{dataLabel:"room.details.seller3.postalCode",label:"ZIP Code",type:"Text",friendlyDataLabel:"seller3.postalCode"},{dataLabel:"room.details.seller3.cellPhone",label:"Cell Phone Number",type:"Text",friendlyDataLabel:"seller3.cellPhone"},{dataLabel:"room.details.seller3.email",label:"Email Address",type:"Text",recipientDataMap:{roleName:"Seller Three",attribute:"email"},friendlyDataLabel:"seller3.email"}],"Seller Four":[{dataLabel:"room.details.seller4.name",label:"Seller Four Full Name",type:"Text",recipientDataMap:{roleName:"Seller Four",attribute:"name"},friendlyDataLabel:"seller4.name"},{dataLabel:"room.details.seller4.address1",label:"Street Address",type:"Text",friendlyDataLabel:"seller4.address1"},{dataLabel:"room.details.seller4.address2",label:"Apt / Suite / Other",type:"Text",friendlyDataLabel:"seller4.address2"},{dataLabel:"room.details.seller4.city",label:"City",type:"Text",friendlyDataLabel:"seller4.city"},{dataLabel:"room.details.seller4.state",label:"State",type:"Dropdown",friendlyDataLabel:"seller4.state"},{dataLabel:"room.details.seller4.postalCode",label:"ZIP Code",type:"Text",friendlyDataLabel:"seller4.postalCode"},{dataLabel:"room.details.seller4.email",label:"Email Address",type:"Text",recipientDataMap:{roleName:"Seller Four",attribute:"email"},friendlyDataLabel:"seller4.email"}],"Listing Agent One":[{dataLabel:"room.details.listingAgent1.name",label:"Listing Agent One Full Name",type:"Text",recipientDataMap:{roleName:"Listing Agent One",attribute:"name"},friendlyDataLabel:"listingAgent1.name"},{dataLabel:"room.details.listingAgent1.address1",label:"Street Address",type:"Text",friendlyDataLabel:"listingAgent1.address1"},{dataLabel:"room.details.listingAgent1.address2",label:"Apt / Suite / Other",type:"Text",friendlyDataLabel:"listingAgent1.address2"},{dataLabel:"room.details.listingAgent1.city",label:"City",type:"Text",friendlyDataLabel:"listingAgent1.city"},{dataLabel:"room.details.listingAgent1.state",label:"State",type:"Dropdown",friendlyDataLabel:"listingAgent1.state"},{dataLabel:"room.details.listingAgent1.postalCode",label:"ZIP Code",type:"Text",friendlyDataLabel:"listingAgent1.postalCode"},{dataLabel:"room.details.listingAgent1.cellPhone",label:"Cell Phone Number",type:"Text",friendlyDataLabel:"listingAgent1.cellPhone"},{dataLabel:"room.details.listingAgent1.email",label:"Email Address",type:"Text",recipientDataMap:{roleName:"Listing Agent One",attribute:"email"},friendlyDataLabel:"listingAgent1.email"},{dataLabel:"room.details.designatedsellerAgent.licenseNum",label:"Listing Agent License Number",type:"Text",friendlyDataLabel:"designatedsellerAgent.licenseNum"}],"Listing Agent Two":[{dataLabel:"room.details.listingAgent2.name",label:"Listing Agent Two Full Name",type:"Text",recipientDataMap:{roleName:"Listing Agent Two",attribute:"name"},friendlyDataLabel:"listingAgent2.name"},{dataLabel:"room.details.listingAgent2.address1",label:"Street Address",type:"Text",friendlyDataLabel:"listingAgent2.address1"},{dataLabel:"room.details.listingAgent2.address2",label:"Apt / Suite / Other",type:"Text",friendlyDataLabel:"listingAgent2.address2"},{dataLabel:"room.details.listingAgent2.city",label:"City",type:"Text",friendlyDataLabel:"listingAgent2.city"},{dataLabel:"room.details.listingAgent2.state",label:"State",type:"Dropdown",friendlyDataLabel:"listingAgent2.state"},{dataLabel:"room.details.listingAgent2.postalCode",label:"ZIP Code",type:"Text",friendlyDataLabel:"listingAgent2.postalCode"},{dataLabel:"room.details.listingAgent2.cellPhone",label:"Cell Phone Number",type:"Text",friendlyDataLabel:"listingAgent2.cellPhone"},{dataLabel:"room.details.listingAgent2.email",label:"Email Address",type:"Text",recipientDataMap:{roleName:"Listing Agent Two",attribute:"email"},friendlyDataLabel:"listingAgent2.email"},{dataLabel:"room.details.designatedsellerAgent2.licenseNum",label:"Listing Agent Two License Number",type:"Text",friendlyDataLabel:"designatedsellerAgent2.licenseNum"}],"Listing Brokerage":[{dataLabel:"room.details.sellerBrokerage.name",label:"Seller's Brokerage/Listing Broker Firm Name",type:"Text",recipientDataMap:{roleName:"Seller's Brokerage/Listing Broker",attribute:"name"},friendlyDataLabel:"sellerBrokerage.name"},{dataLabel:"room.details.sellerBrokerage.address",label:"Address",type:"Text",friendlyDataLabel:"sellerBrokerage.address"},{dataLabel:"room.details.sellerBrokerage.city",label:"City",type:"Text",friendlyDataLabel:"sellerBrokerage.city"},{dataLabel:"room.details.sellerBrokerage.state",label:"State",type:"Dropdown",friendlyDataLabel:"sellerBrokerage.state"},{dataLabel:"room.details.sellerBrokerage.postalCode",label:"ZIP Code",type:"Text",friendlyDataLabel:"sellerBrokerage.postalCode"},{dataLabel:"room.details.sellerBrokerage.officePhone",label:"Office Phone Number",type:"Text",friendlyDataLabel:"sellerBrokerage.officePhone"},{dataLabel:"room.details.sellerBrokerage.email",label:"Email Address",type:"Text",recipientDataMap:{roleName:"Seller's Brokerage/Listing Broker",attribute:"email"},friendlyDataLabel:"sellerBrokerage.email"},{dataLabel:"room.details.sellerBrokerage.fax",label:"Fax",type:"Text",friendlyDataLabel:"sellerBrokerage.fax"},{dataLabel:"room.details.sellerBrokerage.LicenseNum",label:"Listing Brokerage State License Number",type:"Text",friendlyDataLabel:"sellerBrokerage.LicenseNum"}],Property:[{dataLabel:"room.property.location.address1",label:"Street Address",type:"Text",friendlyDataLabel:"address1"},{dataLabel:"room.property.location.address2",label:"Apt / Suite / Other",type:"Text",friendlyDataLabel:"address2"},{dataLabel:"room.property.location.city",label:"City",type:"Text",friendlyDataLabel:"city"},{dataLabel:"room.property.location.county",label:"County",type:"Text",friendlyDataLabel:"county"},{dataLabel:"room.property.location.state",label:"State",type:"Dropdown",friendlyDataLabel:"state"},{dataLabel:"room.property.location.postalCode",label:"ZIP Code",type:"Text",friendlyDataLabel:"postalCode"},{dataLabel:"room.offer.contractAmount",label:"Purchase Price",type:"Text",friendlyDataLabel:"contractAmount"},{dataLabel:"room.offer.earnestMoneyAmount",label:"Earnest Money Amount",type:"Text",friendlyDataLabel:"earnestMoneyAmount"},{dataLabel:"room.offer.expectedClosingDate",label:"Closing Date",type:"Text",friendlyDataLabel:"expectedClosingDate"}],Escrow:[{dataLabel:"room.offer.entityHoldingEarnestMoney",label:"Escrow Holder",type:"Text",friendlyDataLabel:"entityHoldingEarnestMoney"},{dataLabel:"room.details.escrowCompany.address",label:"Address",type:"Text",friendlyDataLabel:"escrowCompany.address"},{dataLabel:"room.details.escrowCompany.city",label:"City",type:"Text",friendlyDataLabel:"escrowCompany.city"},{dataLabel:"room.details.escrowCompany.state",label:"State",type:"Dropdown",friendlyDataLabel:"escrowCompany.state"},{dataLabel:"room.details.escrowCompany.postalCode",label:"ZIP Code",type:"Text",friendlyDataLabel:"escrowCompany.postalCode"},{dataLabel:"room.details.escrowCompany.officePhone",label:"Phone Number",type:"Text",friendlyDataLabel:"escrowCompany.officePhone"},{dataLabel:"room.details.escrowCompany.number",label:"Escrow Number",type:"Text",friendlyDataLabel:"escrowCompany.number"}]},G3=["Buyer One","Buyer Two","Buyer Three","Buyer Four","Buyer Agent One","Buyer Agent Two","Buyer's Brokerage/Selling Broker","Seller One","Seller Two","Seller Three","Seller Four","Listing Agent One","Listing Agent Two","Seller's Brokerage/Listing Broker"],G4=n(8334);class G5 extends LR.A{getActionName(){return"autoSelectGhostField"}_shouldAutoSelectView(e,t){return this.isEnabled()&&e.viewport&&(t==bf.B.selectAndScroll||t==bf.B.selectOnly&&e.isOnScreen())}_scrollToView(e){var t,n=-140,i=e.getPosition();null==(t=e.viewport)||t.changeScrollPosition(i.x,i.y+n)}constructor(e,t,n){super(e,t,n),this.listenTo(this.viewCollections.GhostFieldView,"change:autoSelectField",e=>{var t=e.get("autoSelectField");t&&t!==bf.B.none&&(e.setAutoSelect(bf.B.none),this._shouldAutoSelectView(e,t)&&(this.viewCollections.selectedViews.reset([e]),t===bf.B.selectAndScroll&&this._scrollToView(e)))})}}(0,G._)(G5,"accessors",["selectedViews","GhostFieldView"]);var G6=G5;class G8 extends LR.A{getActionName(){return"extensionGroupActions"}isFirstViewPartOfExtensionGroup(e){return e&&e.model.isAdmTab()&&e.model.get("extensionData")}isTabInGroup(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n=>{if(!n.model.isAdmTab())return!1;if(j.mg.getInstance()("enableDvPackagedAppsInstall")){if(!t&&!n.model.get("extensionData"))return!1}else if(!n.model.get("extensionData"))return!1;if(e.model.get("recipientId")!==n.model.get("recipientId"))return!1;var i=NO.Ay.FromModel(e.model),r=i.getParent(),a=NO.Ay.FromModel(n.model);return a.shouldGroupByNamespace()?a.isSameNamespace(i.getNamespace())&&a.getCollectionName()===i.getCollectionName()&&a.getCollectionIndex()===i.getCollectionIndex():!!a.hasParent(r)}}updateExtensionGroup(){var e,t,n,i=this.selectedTabViews.first();if(!this.isFirstViewPartOfExtensionGroup(i))return[];var r=this.isTabInGroup(i),a=null!=(n=null==(t=this.viewCollections)||null==(e=t.TabView)?void 0:e.filter(r))?n:[],o=this.getTabThatIsNotCurrentlySelectedInGroup(a,this.selectedTabViews),s=(0,H.ir)();return a.map(e=>{var t=e.model.get("extensionData"),n=null==t?void 0:t.connectedFieldsData;return e.model.set("extensionData",(0,k._)((0,Y._)((0,k._)({},o||t),{extensionGroupId:s,actionInputKey:t.actionInputKey}),j.mg.getInstance()("enableCustomDataVerification")&&n?{connectedFieldsData:n}:{})),e})}createExtensionData(e,t,n){var i=this.isTabInGroup(n,!0);return this.viewCollections.TabView.filter(i).map(n=>{var i,r,a=(0,am.k7)(n.model),o=null==a||null==(r=a.getPath())||null==(i=r.split("."))?void 0:i.at(-1);if(a&&o){var s=(0,Y._)((0,k._)({},e),{extensionGroupId:t,actionInputKey:o,requiredForExtension:a.isRequired()});n.model.set({extensionData:s})}return n})}getTabThatIsNotCurrentlySelectedInGroup(e,t){var n,i=t.map(e=>e.model.get("extensionData").extensionGroupId);return e.every(e=>{var t=e.model.get("extensionData");return!!i.includes(null==t?void 0:t.extensionGroupId)||(n=t,!1)}),n}updateExtensionApplicationDetails(e){var t=this.selectedTabViews.first();if(!this.isFirstViewPartOfExtensionGroup(t))return[];var n=this.isTabInGroup(t);return this.viewCollections.TabView.filter(n).map(t=>{var n=t.model.get("extensionData");return t.model.set({extensionData:(0,k._)({},n,e),required:(null==e?void 0:e.extensionPolicy)===hN.oH.MustVerifyToSign||t.model.get("required")}),t})}constructor(e,t,n){super(e,t,n),(0,G._)(this,"selectedTabViews",el.U.getInstance()),this.listenTo(this.selectedTabViews,"changeAdmTabGroup",()=>{this.updateExtensionGroup()}),this.listenTo(this.selectedTabViews,"changeExtensionApplicationData",e=>{this.updateExtensionApplicationDetails(e)}),this.listenTo(this.viewCollections.TabView,"createExtensionApplicationData",(e,t,n)=>{this.createExtensionData(e,t,n)})}}(0,G._)(G8,"accessors",["AdmGroupView","TabView","selectedTabViews"]);var G7=G8,G9=n(68729);class He extends LR.A{onEnable(){super.onEnable(),this.observer.listenToObservableStateCollection(this.viewCollections.DocumentTemplateView,"domEvent:mousedown:viewButtonWrapper",e=>{if(e.model instanceof s_.A){var t;null==(t=e.model)||t.setPreviewable(!0),this.taggerViewState.setPreviewVisibility(!0),this.taggerViewState.triggerPreviewHandler()}}),this.observer.listenToObservableStateCollection(this.viewCollections.DocumentTemplateView,"domEvent:mouseenter:viewButtonWrapper",e=>{e.set("viewButtonHovered",!0)}),this.observer.listenToObservableStateCollection(this.viewCollections.DocumentTemplateView,"domEvent:mouseleave:viewButtonWrapper",e=>{e.set("viewButtonHovered",!1)})}getActionName(){return"viewDocumentTemplate"}constructor(...e){super(...e),(0,G._)(this,"taggerViewState",iM.K.getInstance())}}(0,G._)(He,"accessors",["DocumentTemplateView"]);var Ht=He,Hn=n(17203);class Hi{get showTablessRecipientConfirmationModal(){return this.getModalVisibility(vq.V.tablessRecipientConfirmationModal)}get showCollaborativeFormulaConflictConfirmModal(){return this.getModalVisibility(vq.V.collaborativeFormulaConflictConfirmModal)}get showGhostFieldMissingTypeModal(){return this.getModalVisibility(vq.V.ghostFieldMissingTypeModal)}setUnifiedSuggestedFieldsFlow(){return(0,D._)(function(){var e,t,n,i;return(0,L.__generator)(this,function(r){switch(r.label){case 0:return[4,(0,NM.LG)(this.envelopeDataManager)];case 1:return e=r.sent(),[4,(0,NM.YO)(this.envelopeModerator)];case 2:return n=(t=r.sent()).existingFieldAssistTabsFromTheDocument,i=t.existingAutoplaceTabsFromTheDocument,!e&&(this.fieldAssistTabsNumber>0||this.autoplaceTabsNumber>0||this.fieldAssistTabsNotFound||this.autoplaceTabsNotFound||this.showFieldAssistTabsNotFoundBanner||this.noMoreFieldsToPlace)||(null==n?void 0:n.length)>0||(null==i?void 0:i.length)>0?(this.unifiedSuggestedFieldsFlow=NM.q3.INTERRUPTED,this.handleInterruptedFlow()):this.unifiedSuggestedFieldsFlow=e,this.unifiedSuggestedFieldsFlow||(this.notEligibleForUnifiedFlow=!0),[2]}})}).call(this)}autotagging(e){return(0,D._)(function(){var t,n,i,r,a,o,s,l,c,u,d,p,m;return(0,L.__generator)(this,function(g){switch(g.label){case 0:if(this.featureFlags("enableDocumentTemplate")&&this.isDocumentTemplate)return[2];if(this.router.isCorrect())return[3,15];if(!(this.featureFlags("enableAutoTaggingForNDSE")||this.featureFlags("enableSuggestedFieldsAutoPlace")||(0,NM.$o)()))return[3,14];if(!(0,NM.$o)())return[3,9];return[4,this.envelopeCompletelyFetched()];case 1:return g.sent(),t=!!this.envelopeModerator.getTemplates().getLength(),[4,(0,NM.lb)(this.envelopeModerator)];case 2:return n=g.sent(),[4,(0,NM.YO)(this.envelopeModerator)];case 3:if(r=(i=g.sent()).existingFieldAssistTabsFromTheDocument,a=i.existingAutoplaceTabsFromTheDocument,!((null==r?void 0:r.length)>0||(null==a?void 0:a.length)>0))return[3,6];return[4,(0,NM.Pu)(this.envelopeModerator,this.envelope.isTemplate())];case 4:return g.sent()&&(this.unifiedSuggestedFieldsFlow=NM.q3.INTERRUPTED,this.notEligibleForUnifiedFlow=!0),this.handleInitialTelemetryLogs(),[4,this.startUnifiedSuggestedFieldsFlow()];case 5:return g.sent(),[2];case 6:if(n&&0===r.length&&0===a.length||this.autoplaceTabsNotFound&&this.fieldAssistTabsNotFound||t||this.autoplaceTabsNotFound&&this.fieldAssistTabsNotFound)return this.notEligibleForUnifiedFlow=!0,this.hideBanner(0,0,!0),[2];g.label=7;case 7:return this.handleInitialTelemetryLogs(),[4,this.startUnifiedSuggestedFieldsFlow()];case 8:return g.sent(),[2];case 9:l=(s=(o=(0,fL.Bx)())===fL.RA.noIcon&&!e&&!(this.featureFlags("enableDocumentTemplate")&&this.isDocumentTemplate))?fL.tp.toast:void 0,s&&(this.isApplyingSuggestedTabs=!0),g.label=10;case 10:return g.trys.push([10,12,,13]),[4,this.getAutoTaggingSuggestions(l)];case 11:return c=g.sent(),(0,e$.isEmpty)(c)?(this.isApplyingSuggestedTabs=!1,this.taggerViewState.updateAutoTaggingStatus(v2.f.noFieldsDetected)):(this.taggerViewState.updateAutoTaggingStatus(v2.f.readyForAutoTagging),(0,fL.uR)(fL.Xw.available),s?this.applyAutoTaggingAutomatically():o!==fL.RA.icon||e||this.redux.dispatch(null==(d=this.redux.interactions)||null==(u=d.thunks)?void 0:u.startTutorialByName("NDSE_FIELD_ASSIST_USE_ICON_TUTORIAL"))),[3,13];case 12:return p=g.sent(),m={Description:"Error from TaggerController",ComponentName:"Tagger",ErrorProperties:(0,eF.zC)(p)},this.kazmon.push(this.kazmon.TYPE.ERROR,m),[3,13];case 13:return[3,15];case 14:this.featureFlags("enableAutoTaggingOptInForNDSE")&&!(0,NM.$o)()&&this.taggerViewState.updateAutoTaggingStatus(v2.f.readyForAutoTaggingOptIn),g.label=15;case 15:return(0,NM.$o)()&&this.router.isCorrect()&&(this.notEligibleForUnifiedFlow=!0,this.hideBanner(0,0,!0)),[2]}})}).call(this)}handleInitialTelemetryLogs(){var e=this.envelope.isTemplate(),t=this.envelope.get("unifiedFieldsMetadata")||{},n=t.hasOwnProperty("initial_envelope_eligible_for_fieldSuggestions"),i=t.hasOwnProperty("initial_template_eligible_for_fieldSuggestions"),r=!!t.hasOwnProperty("remove_field_suggestion")&&t.remove_field_suggestion,a=(0,NM.Rd)(this.envelopeModerator),o=(0,NM.KL)(this.envelopeModerator),s=!(a||o);this.unifiedFieldsMixpanelLog({initial_envelope_eligible_for_fieldSuggestions:n?t.initial_envelope_eligible_for_fieldSuggestions:Number(s&&!e),initial_template_eligible_for_fieldSuggestions:i?t.initial_template_eligible_for_fieldSuggestions:Number(s&&e),envelope_eligible_for_fieldSuggestions:this.notEligibleForUnifiedFlow?0:Number(s&&!e),template_eligible_for_fieldSuggestions:this.notEligibleForUnifiedFlow?0:Number(s&&e),remove_field_suggestion:r}),(0,NM.mW)("envelopeEligible",{name:e?"Template eligible for Field Suggestions":"Envelope eligible for Field Suggestions",flow:this.unifiedSuggestedFieldsFlow,action:"Tagger Load"})}unifiedFieldsMixpanelLog(e){var t,n=null!=(t=this.envelope.get("unifiedFieldsMetadata"))?t:{};this.envelope.set("unifiedFieldsMetadata",(0,k._)((0,Y._)((0,k._)({},n),{flow:this.unifiedSuggestedFieldsFlow,notEligibleForUnifiedFlow:this.notEligibleForUnifiedFlow}),e))}handlePlaceMoreFieldsUserClick(e){e?(0,NM.mW)("bannerShown",{name:"Field Suggestions - No Signing Fields Placed with Input Fields Detected",flow:this.unifiedSuggestedFieldsFlow,action:"Place Input Fields"}):(0,NM.mW)("bannerShown",{name:"Field Suggestions - Signing Fields Placed with Input Fields Detected",flow:this.unifiedSuggestedFieldsFlow,action:"Place Input Fields"})}handleThumbUpUserClick(){(0,NM.mW)("bannerShown",{name:"All Field Suggestions Placed",flow:this.unifiedSuggestedFieldsFlow,action:"Thumbs Up"})}handleThumbDownUserClick(){(0,NM.mW)("bannerShown",{name:"All Field Suggestions Placed",flow:this.unifiedSuggestedFieldsFlow,action:"Thumbs Down"})}envelopeCompletelyFetched(){return(0,D._)(function(){return(0,L.__generator)(this,function(e){switch(e.label){case 0:return[4,Promise.race([this.envelopeDataManager.getPersister().completelyFetchEnvelope().catch(()=>{}),new Promise(e=>setTimeout(e,3e3))])];case 1:return e.sent(),[2]}})}).call(this)}displayUnifiedNotification(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;"AI_FIELDS_REMOVED"===e?(this.notification.info("AI_FIELDS_REMOVED",{},{autoClose:!0,autoCloseTimeout:1e4}),(0,NM.mW)("toastNotificationShown",{name:"Field Suggestions Removed",flow:this.unifiedSuggestedFieldsFlow,action:"Open"})):"AUTOPLACING_NO_RESULT"===e?(this.notification.info("AUTOPLACING_NO_RESULT",{},{autoClose:!0,autoCloseTimeout:1e4}),(0,NM.mW)("toastNotificationShown",{name:"No Field Suggestions Found",flow:this.unifiedSuggestedFieldsFlow,action:"Open"}),this.unifiedFieldsMixpanelLog({})):(this.notification.info("AUTOPLACING_NOT_ELIGIBLE",{},{autoClose:!0,autoCloseTimeout:1e4}),this.unifiedFieldsMixpanelLog({envelope_eligible_for_fieldSuggestions:0,template_eligible_for_fieldSuggestions:0}),(0,NM.mW)("toastNotificationShown",{name:"Not available after an envelope has been edited",flow:this.unifiedSuggestedFieldsFlow,action:"Open"}))}handleCloseBannerClick(){return(0,D._)(function(){return(0,L.__generator)(this,function(e){return this.closeAutoplacingInlineBanner=!0,[2]})}).call(this)}handleAdvancedFlow(){return(0,D._)(function(){var e,t,n,i,r,a,o,s,l,c;return(0,L.__generator)(this,function(u){switch(u.label){case 0:return[4,(0,NM.Pu)(this.envelopeModerator,this.envelope.isTemplate())];case 1:return e=u.sent(),[4,(0,NM.YO)(this.envelopeModerator)];case 2:if(n=(t=u.sent()).existingFieldAssistTabsFromTheDocument,i=t.existingAutoplaceTabsFromTheDocument,r=(0,NM.XM)(this.autoplaceTabsResponse,this.unifiedSuggestedFieldsFlow),a=[...i,...n],!(0,e$.isEmpty)(a))return this.showSuccessBanner(0,a.length,!0),[2];if(!r)return[3,12];if(!(this.fieldAssistTabsNotFound&&this.autoplaceTabsNotFound))return[3,3];return this.hideBanner(0,0,!0),this.displayUnifiedNotification("AUTOPLACING_NO_RESULT"),[2];case 3:if(this.isApplyingAutoplaceFields=!0,this.autoplaceTabsNotFound)return[3,5];return[4,this.fetchAutoplaceTabs()];case 4:u.sent(),u.label=5;case 5:if(this.fieldAssistTabsNotFound)return[3,7];return[4,this.fetchFieldAssistTabs()];case 6:u.sent(),u.label=7;case 7:if((0,NM.XM)(this.autoplaceTabsResponse,this.unifiedSuggestedFieldsFlow))return this.notEligibleForUnifiedFlow=!0,this.hideBanner(0,0,!0),this.displayUnifiedNotification("AUTOPLACING_NO_RESULT"),[2];if(e)return this.hideBanner(0,(0,NM.I0)(this.autoplaceTabsResponse,this.unifiedSuggestedFieldsFlow),!1),this.notEligibleForUnifiedFlow=!0,this.displayUnifiedNotification(e),[2];if(0===(o=(0,NM.I0)(this.autoplaceTabsResponse,this.unifiedSuggestedFieldsFlow)))return this.hideBanner(0,0,!0),[2];u.label=8;case 8:return u.trys.push([8,10,,11]),this.autoplaceTabsNotFound=!1,[4,this.placeAutoplaceTabsOnTheDocument()];case 9:return u.sent(),this.showSuccessBanner(0,o,!0),[3,11];case 10:return s=u.sent(),this.hideBanner(0,o,!1),[2];case 11:return[3,16];case 12:if(e)return this.hideBanner(0,(0,NM.I0)(this.autoplaceTabsResponse,this.unifiedSuggestedFieldsFlow),!1),this.notEligibleForUnifiedFlow=!0,this.displayUnifiedNotification(e),[2];if(this.isApplyingAutoplaceFields=!0,0===(l=(0,NM.I0)(this.autoplaceTabsResponse,this.unifiedSuggestedFieldsFlow)))return this.hideBanner(0,0,!0),[2];u.label=13;case 13:return u.trys.push([13,15,,16]),this.autoplaceTabsNotFound=!1,[4,this.placeAutoplaceTabsOnTheDocument()];case 14:return u.sent(),this.showSuccessBanner(0,l,!0),[3,16];case 15:return c=u.sent(),this.hideBanner(0,l,!1),[2];case 16:return[2]}})}).call(this)}handleBasicFlow(){return(0,D._)(function(){var e,t,n,i,r,a,o,s,l,c;return(0,L.__generator)(this,function(u){switch(u.label){case 0:return[4,(0,NM.Pu)(this.envelopeModerator,this.envelope.isTemplate())];case 1:return e=u.sent(),[4,(0,NM.YO)(this.envelopeModerator)];case 2:if(n=(t=u.sent()).existingFieldAssistTabsFromTheDocument,i=t.existingAutoplaceTabsFromTheDocument,r=(0,NM.XM)(this.autoplaceTabsResponse,this.unifiedSuggestedFieldsFlow),a=(0,NM.O6)(this.fieldAssistTabsResponse),!(0,e$.isEmpty)(i)&&!(0,e$.isEmpty)(n))return this.showSuccessBanner(n.length,n.length+i.length,!0),e&&(this.notEligibleForUnifiedFlow=!0,this.displayUnifiedNotification(e)),[2];if((0,e$.isEmpty)(i))return[3,8];if(!(0,NM.O6)(this.fieldAssistTabsResponse))return[3,5];if(!this.fieldAssistTabsNotFound)return[3,3];return this.showFieldAssistNotFoundBanner(!0),[2];case 3:return this.isApplyingAutoplaceFields=!0,[4,this.fetchFieldAssistTabs()];case 4:u.sent(),u.label=5;case 5:if(this.fieldAssistTabsNotFound)return[3,7];if(e)return this.hideBanner(0,i.length,!1),this.notEligibleForUnifiedFlow=!0,this.displayUnifiedNotification(e),[2];return[4,this.placeFieldAssistTabsOnTheDocument()];case 6:u.sent(),u.label=7;case 7:return e&&(this.notEligibleForUnifiedFlow=!0,this.displayUnifiedNotification(e)),this.showSuccessBanner((0,NM.jC)(this.fieldAssistTabsResponse),i.length+(0,NM.jC)(this.fieldAssistTabsResponse),!0),[2];case 8:if((0,e$.isEmpty)(n))return[3,16];if(!(0,NM.XM)(this.autoplaceTabsResponse,this.unifiedSuggestedFieldsFlow))return[3,12];if(this.autoplaceTabsNumber=0,!this.autoplaceTabsNotFound)return[3,9];if(e)return this.showFieldAssistPlacedBanner(n.length,!!(0,NM.XM)(this.autoplaceTabsResponse,this.unifiedSuggestedFieldsFlow)),this.notEligibleForUnifiedFlow=!0,this.displayUnifiedNotification(e),[2];return this.autoplaceTabsNumber=0,this.showFieldAssistPlacedBanner(n.length,!0),[2];case 9:return this.isApplyingAutoplaceFields=!0,[4,this.fetchAutoplaceTabs()];case 10:return u.sent(),this.showFieldAssistPlacedBanner(n.length,!!(0,NM.XM)(this.autoplaceTabsResponse,this.unifiedSuggestedFieldsFlow)),[2];case 11:return[3,16];case 12:if(e)return this.hideBanner(n.length,0,!1),this.deletingTabs=!1,this.notEligibleForUnifiedFlow=!0,this.displayUnifiedNotification(e),[2];if(0===(o=(0,NM.I0)(this.autoplaceTabsResponse,this.unifiedSuggestedFieldsFlow)))return this.showFieldAssistPlacedBanner(n.length,!0),[2];u.label=13;case 13:return u.trys.push([13,15,,16]),[4,this.placeAutoplaceTabsOnTheDocument()];case 14:return u.sent(),this.showSuccessBanner(n.length,n.length+o,!0),[2];case 15:return s=u.sent(),this.showFieldAssistPlacedBanner(n.length,!1),this.deletingTabs=!1,[2];case 16:if(!((0,e$.isEmpty)(i)&&(0,e$.isEmpty)(n)))return[3,30];if(!(r&&!this.autoplaceTabsNotFound))return[3,18];return this.isApplyingAutoplaceFields=!0,[4,this.fetchAutoplaceTabs()];case 17:u.sent(),u.label=18;case 18:if(!(a&&!this.fieldAssistTabsNotFound))return[3,20];return this.isApplyingAutoplaceFields=!0,[4,this.fetchFieldAssistTabs()];case 19:u.sent(),u.label=20;case 20:if(this.autoplaceTabsNotFound&&this.fieldAssistTabsNotFound||(0,NM.O6)(this.fieldAssistTabsResponse)&&(0,NM.XM)(this.autoplaceTabsResponse,this.unifiedSuggestedFieldsFlow))return this.hideBanner(0,0,!0),this.displayUnifiedNotification("AUTOPLACING_NO_RESULT"),[2];if(!(this.fieldAssistTabsNotFound&&!(0,NM.XM)(this.autoplaceTabsResponse,this.unifiedSuggestedFieldsFlow)))return[3,26];if(e)return this.hideBanner(0,0,!1),this.notEligibleForUnifiedFlow=!0,this.displayUnifiedNotification(e),[2];if(!this.showFieldAssistTabsNotFoundBanner)return[3,25];if(0===(l=(0,NM.I0)(this.autoplaceTabsResponse,this.unifiedSuggestedFieldsFlow)))return this.hideBanner(0,0,!0),[2];u.label=21;case 21:return u.trys.push([21,23,,24]),[4,this.placeAutoplaceTabsOnTheDocument()];case 22:return u.sent(),this.showSuccessBanner(0,l,!0),[2];case 23:return c=u.sent(),this.hideBanner(0,0,!1),[2];case 24:return[3,26];case 25:return this.showFieldAssistNotFoundBanner(!1),[2];case 26:if(!(this.autoplaceTabsNotFound&&!(0,NM.O6)(this.fieldAssistTabsResponse)))return[3,28];if(e)return n.length>0?this.showFieldAssistPlacedBanner((0,NM.jC)(this.fieldAssistTabsResponse),!0):this.hideBanner(0,0,!1),this.notEligibleForUnifiedFlow=!0,this.displayUnifiedNotification(e),[2];return[4,this.placeFieldAssistTabsOnTheDocument()];case 27:return u.sent(),this.autoplaceTabsNumber=0,this.showFieldAssistPlacedBanner((0,NM.jC)(this.fieldAssistTabsResponse),!0),[2];case 28:if(!(!(0,NM.XM)(this.autoplaceTabsResponse,this.unifiedSuggestedFieldsFlow)&&!(0,NM.O6)(this.fieldAssistTabsResponse)))return[3,30];if(e)return this.fieldAssistTabsNumber=0,this.autoplaceTabsNumber=0,this.notEligibleForUnifiedFlow=!0,this.hideBanner(0,0,!1),this.displayUnifiedNotification(e),[2];return[4,this.placeFieldAssistTabsOnTheDocument()];case 29:return u.sent(),this.autoplaceTabsNumber=0,this.showFieldAssistPlacedBanner((0,NM.jC)(this.fieldAssistTabsResponse),!1),[2];case 30:return[2]}})}).call(this)}handleInterruptedFlow(){return(0,D._)(function(){return(0,L.__generator)(this,function(e){switch(e.label){case 0:if(this.unifiedSuggestedFieldsFlow===NM.q3.INTERRUPTED)return[3,2];return[4,this.setUnifiedSuggestedFieldsFlow()];case 1:e.sent(),e.label=2;case 2:return this.startUnifiedSuggestedFieldsFlow(),[2]}})}).call(this)}showSuccessBanner(e,t,n){if(this.closeAutoplacingInlineBanner=!1,this.fieldAssistTabsNumber=e,this.autoplaceTabsNumber=t,this.isApplyingAutoplaceFields=!1,this.noMoreFieldsToPlace=n,n){var i;this.unifiedFieldsMixpanelLog({field_suggestion_success_banner:!0}),0===t&&e>0?i="Field Suggestions - Signing Fields Placed with No Input Fields Detected":t>0&&0===e?i=this.unifiedSuggestedFieldsFlow===NM.q3.ADVANCED?"All Field Suggestions Placed":"Field Suggestions - Input Fields Placed":t>0&&e>0&&(i="All Field Suggestions Placed"),(0,NM.mW)("bannerShown",{name:i,flow:this.unifiedSuggestedFieldsFlow,action:"Open"})}}showFieldAssistNotFoundBanner(e){this.isApplyingAutoplaceFields=!1,this.showFieldAssistTabsNotFoundBanner=!0,this.noMoreFieldsToPlace=e,(0,NM.mW)("bannerShown",{name:"Field Suggestions - No Signing Fields Placed with Input Fields Detected",flow:this.unifiedSuggestedFieldsFlow,action:"Open"})}showFieldAssistPlacedBanner(e,t){(this.closeAutoplacingInlineBanner=!1,this.fieldAssistTabsNumber=e,this.isApplyingAutoplaceFields=!1,this.noMoreFieldsToPlace=t,t)?this.showSuccessBanner(e,0,t):(0,NM.mW)("bannerShown",{name:"Field Suggestions - Signing Fields Placed with Input Fields Detected",flow:this.unifiedSuggestedFieldsFlow,action:"Open"})}hideBanner(e,t,n){this.closeAutoplacingInlineBanner=!0,this.fieldAssistTabsNumber=e,this.autoplaceTabsNumber=t,this.isApplyingAutoplaceFields=!1,this.noMoreFieldsToPlace=n}startUnifiedSuggestedFieldsFlow(){return(0,D._)(function(){return(0,L.__generator)(this,function(e){switch(e.label){case 0:if(this.unifiedSuggestedFieldsFlow)return[3,2];return[4,this.setUnifiedSuggestedFieldsFlow()];case 1:e.sent(),e.label=2;case 2:return this.closeAutoplacingInlineBanner=!1,this.isApplyingAutoplaceFields=!0,this.unifiedSuggestedFieldsFlow===NM.q3.BASIC?this.handleBasicFlow():this.unifiedSuggestedFieldsFlow===NM.q3.ADVANCED?this.handleAdvancedFlow():this.unifiedSuggestedFieldsFlow===NM.q3.INTERRUPTED&&(this.featureFlags("enableAISuggestedFields")&&(this.unifiedSuggestedFieldsFlow=NM.q3.BASIC),this.featureFlags("enableAISuggestedFieldsAutoPlace")&&(this.unifiedSuggestedFieldsFlow=NM.q3.ADVANCED),this.startUnifiedSuggestedFieldsFlow()),[2]}})}).call(this)}fetchAutoplaceTabs(){return(0,D._)(function(){var e,t,n,i,r,a,o,s,l,c,u;return(0,L.__generator)(this,function(d){switch(d.label){case 0:if(this.autoplaceTabsNotFound)return[2];if(!(t=null==(e=this.envelopeModerator.getDocuments())?void 0:e.getProxies())||0===t.length)return[2,null];n=performance.now(),d.label=1;case 1:return d.trys.push([1,3,,4]),[4,Promise.all(t.map(e=>(0,D._)(function(){var t,n,i;return(0,L.__generator)(this,function(r){switch(r.label){case 0:t=e.getDocumentId(),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.getAutoplaceFields(t)];case 2:return n=r.sent(),[2,{docProxyId:t,autoplaceTabs:n}];case 3:return i=r.sent(),this.autoplaceTabsNumber=0,this.autoplaceTabsNotFound=!0,this.isApplyingAutoplaceFields=!1,[2,null];case 4:return[2]}})}).call(this)))];case 2:return i=d.sent(),r=performance.now(),a=t.map(e=>e.getDocumentId()),o={Description:"Suggested Fields - Fetch all autoplace tabs performance",ComponentName:"Tagger controller",UserFlow:"Tagger",EventSpecificContext:{startTime:n,endTime:r,durationMs:Math.round(r-n),documentCount:t.length,documentIds:a}},this.kazmon.push(this.kazmon.TYPE.CLIENT,o),s=i.reduce((e,t)=>{var n=t.autoplaceTabs;return e.signHereTabs.push(...n.signHereTabs||[]),e.dateSignedTabs.push(...n.dateSignedTabs||[]),e.textTabs.push(...n.textTabs||[]),e.checkBoxTabs.push(...n.checkBoxTabs||[]),e},{signHereTabs:[],dateSignedTabs:[],textTabs:[],checkBoxTabs:[]}),this.autoplaceTabsResponse=s,(0,NM.XM)(this.autoplaceTabsResponse,this.unifiedSuggestedFieldsFlow)&&this.unifiedSuggestedFieldsFlow===NM.q3.BASIC&&(this.autoplaceTabsNumber=0,this.autoplaceTabsNotFound=!0),[3,4];case 3:return l=d.sent(),this.autoplaceTabsNumber=0,this.autoplaceTabsNotFound=!0,this.isApplyingAutoplaceFields=!1,c=eF.CJ.getInstance(),u={Description:"Suggested Fields - Failed to fetch recommended fields",ComponentName:"Tagger controller",UserFlow:"Tagger",ErrorProperties:(0,eF.zC)(l)},c.push(c.TYPE.ERROR,u),[3,4];case 4:return[2]}})}).call(this)}fetchFieldAssistTabs(){return(0,D._)(function(){var e,t;return(0,L.__generator)(this,function(n){switch(n.label){case 0:if(this.fieldAssistTabsNotFound)return[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.envelopePersistenceManager.fetchAutoTaggingSuggestion()];case 2:return e=n.sent(),this.fieldAssistTabsResponse={dateSignedTabs:e.dateSignedTabs||[],signHereTabs:e.signHereTabs||[]},this.unifiedSuggestedFieldsFlow===NM.q3.ADVANCED&&(this.autoplaceTabsResponse.dateSignedTabs=e.dateSignedTabs||[],this.autoplaceTabsResponse.signHereTabs=e.signHereTabs||[]),(0,NM.O6)(this.fieldAssistTabsResponse)&&(this.fieldAssistTabsNumber=0,this.fieldAssistTabsNotFound=!0),[3,4];case 3:return t=n.sent(),this.fieldAssistTabsNumber=0,this.fieldAssistTabsNotFound=!0,this.isApplyingAutoplaceFields=!1,[3,4];case 4:return[2]}})}).call(this)}placeAutoplaceTabsOnTheDocument(){return(0,D._)(function(){var e,t,n,i,r,a,o,s,l,c,u,d,p,m,g;return(0,L.__generator)(this,function(f){switch(f.label){case 0:if(this.autoplaceTabsNotFound)return[2];f.label=1;case 1:if(f.trys.push([1,8,,9]),s=null==(e=this.activeRecipient.get())?void 0:e.get("recipientId"),l=[],this.autoplaceTabsResponse.textTabs.forEach(e=>{e.yPosition=Math.round(e.yPosition),e.xPosition=Math.round(e.xPosition),e.width=Math.round(e.width),e.height=Math.round(e.height),!e.fieldAssistTabId&&e.tabId&&(e.fieldAssistTabId=e.tabId),e.source=NM.B9,e.name="",e.locked=!1,e.value.length>0&&(e.placeholderText=e.value,e.value=""),e.tabGroupLabels=null,l.push("Text")}),this.autoplaceTabsResponse.checkBoxTabs.forEach(e=>{e.yPosition=Math.round(e.yPosition),e.xPosition=Math.round(e.xPosition),e.width=25,e.height=25;var t,n,i=(null==(t=e.tabGroupLabels)?void 0:t[0])||"";e.tabGroupLabels=["".concat(i)],!e.fieldAssistTabId&&e.tabId&&(e.fieldAssistTabId=e.tabId),(null==(n=e.caption)?void 0:n.length)>200&&(e.caption=e.caption.substring(0,199)),e.source=NM.B9,l.push("Checkbox")}),null==(t=this.autoplaceTabsResponse.dateSignedTabs)||t.forEach(e=>{e.yPosition=Math.round(e.yPosition),e.xPosition=Math.round(e.xPosition),e.source=NM.B9,this.unifiedSuggestedFieldsFlow===NM.q3.ADVANCED&&l.push("Date Signed")}),null==(n=this.autoplaceTabsResponse.signHereTabs)||n.forEach(e=>{e.yPosition=Math.round(e.yPosition),e.xPosition=Math.round(e.xPosition),e.source=NM.B9,this.unifiedSuggestedFieldsFlow===NM.q3.ADVANCED&&l.push("Signature")}),this.unifiedSuggestedFieldsFlow!==NM.q3.BASIC)return[3,3];return[4,(0,NM.YO)(this.envelopeModerator)];case 2:f.sent().existingFieldAssistTabsFromTheDocument.forEach(e=>{l.push(e.getTabType())}),f.label=3;case 3:if(this.unifiedFieldsMixpanelLog({place_field_suggestion:Array.from(new Set(l))}),!(((null==(i=(c=this.unifiedSuggestedFieldsFlow===NM.q3.ADVANCED?{textTabs:this.autoplaceTabsResponse.textTabs||[],checkBoxTabs:this.autoplaceTabsResponse.checkBoxTabs||[],dateSignedTabs:this.autoplaceTabsResponse.dateSignedTabs||[],signHereTabs:this.autoplaceTabsResponse.signHereTabs||[]}:{textTabs:this.autoplaceTabsResponse.textTabs,checkBoxTabs:this.autoplaceTabsResponse.checkBoxTabs}).textTabs)?void 0:i.length)||0)+((null==(r=c.checkBoxTabs)?void 0:r.length)||0)+((null==(a=c.dateSignedTabs)?void 0:a.length)||0)+((null==(o=c.signHereTabs)?void 0:o.length)||0)>0))return this.isApplyingAutoplaceFields=!1,[2];u=this.envelopeModerator.getTabGroups(),(0,NM.ZT)(this.autoplaceTabsResponse.checkBoxTabs).forEach(e=>{u.createTabGroup({recipientId:s,documentId:e.documentId,groupLabel:e.groupLabel})}),f.label=4;case 4:return f.trys.push([4,6,,7]),[4,this.envelopePersistenceManager.applyAutoPlacement(c,s)];case 5:return f.sent(),[3,7];case 6:throw d=f.sent(),this.isApplyingAutoplaceFields=!1,d;case 7:return[3,9];case 8:return p=f.sent(),m=eF.CJ.getInstance(),g={Description:"Failed to place recommended fields on the document",ComponentName:"Tagger controller",UserFlow:"Tagger",ErrorProperties:(0,eF.zC)(p)},m.push(m.TYPE.ERROR,g),[3,9];case 9:return[2]}})}).call(this)}placeFieldAssistTabsOnTheDocument(){return(0,D._)(function(){var e,t,n,i;return(0,L.__generator)(this,function(r){switch(r.label){case 0:this.isApplyingAutoplaceFields=!0,t=[],this.fieldAssistTabsResponse.dateSignedTabs.forEach(e=>{e.source=NM.B9,t.push("Date Signed")}),this.fieldAssistTabsResponse.signHereTabs.forEach(e=>{e.source=NM.B9,t.push("Signature")}),this.unifiedFieldsMixpanelLog({place_field_suggestion:Array.from(new Set(t))}),n=this.applyAutoTaggingSuggestions(this.fieldAssistTabsResponse,null==(e=this.activeRecipient.get())?void 0:e.get("recipientId")),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,n];case 2:return r.sent(),[3,4];case 3:return i=r.sent(),this.isApplyingAutoplaceFields=!1,[3,4];case 4:return this.isApplyingAutoplaceFields=!1,[2]}})}).call(this)}getAutoplaceFields(e){return(0,D._)(function(){var t,n,i,r,a,o,s,l,c,u,d,p;return(0,L.__generator)(this,function(m){switch(m.label){case 0:t=performance.now(),m.label=1;case 1:return m.trys.push([1,3,,4]),i=new hv.r,a=(r=this.envelope.isTemplate())?this.envelope.get("templateId"):this.envelope.get("envelopeId"),[4,i.autoplaceTabsApi(a,e,r,null==(n=this.envelope.lock)?void 0:n.getLockHeader())];case 2:if(o=m.sent(),s=performance.now(),l={Description:"Suggested Fields - Autoplace API call performance per document",ComponentName:"Tagger controller",UserFlow:"Tagger",EventSpecificContext:{startTime:t,endTime:s,durationMs:Math.round(s-t),documentId:e}},this.kazmon.push(this.kazmon.TYPE.CLIENT,l),!(null==o?void 0:o.data))return[2,null];if("esignTabs"in o.data)return[2,o.data.esignTabs];return[2,null];case 3:return c=m.sent(),u=performance.now(),d=eF.CJ.getInstance(),p={Description:"Suggested Fields - Failed to fetch recommended fields",ComponentName:"Tagger controller",UserFlow:"Tagger",ErrorProperties:(0,eF.zC)(c),EventSpecificContext:{durationMs:Math.round(u-t),documentId:e}},d.push(d.TYPE.ERROR,p),[3,4];case 4:return[2]}})}).call(this)}removeAutoplacedTabs(){return(0,D._)(function(){var e,t,n,i;return(0,L.__generator)(this,function(r){switch(r.label){case 0:return this.deletingTabs=!0,this.isApplyingAutoplaceFields=!0,[4,(0,NM.YO)(this.envelopeModerator)];case 1:return t=(e=r.sent()).existingAutoplaceTabsFromTheDocument,n=e.existingFieldAssistTabsFromTheDocument,[4,(0,NM.Pu)(this.envelopeModerator,this.envelope.isTemplate())];case 2:return i=r.sent(),this.unifiedFieldsMixpanelLog({remove_field_suggestion:!0}),[4,(0,fK.w_)(t)];case 3:return r.sent(),[4,(0,fK.w_)(n)];case 4:return r.sent(),[4,this.envelopePersistenceManager.undoAutoPlacement()];case 5:return r.sent(),[4,this.handleAutoTaggingUndo()];case 6:return r.sent(),[4,this.envelopePersistenceManager.finishSaves()];case 7:return r.sent(),i&&(this.notEligibleForUnifiedFlow=!0),this.fieldAssistTabsNumber=0,this.autoplaceTabsNumber=0,this.autoplaceTabsNotFound=!1,this.fieldAssistTabsNotFound=!1,this.showFieldAssistTabsNotFoundBanner=!1,this.autoplaceTabsResponse={textTabs:[],checkBoxTabs:[],dateSignedTabs:[],signHereTabs:[]},this.fieldAssistTabsResponse={dateSignedTabs:[],signHereTabs:[]},this.displayUnifiedNotification("AI_FIELDS_REMOVED"),this.hideBanner(0,0,!1),this.deletingTabs=!1,[2]}})}).call(this)}initialize(){if(this.isInitialized)throw Error("Cannot initialize the tagger twice");this.isInitialized=!0;var e=!1;if(this.envelopeModerator.tabProxyCollection.on("saveError.taggerGlobalError deleteError.taggerGlobalError",(0,e$.debounce)((e,t)=>{var n="en"===this.featureFlags("localeSending"),i=this.translator.instant("Save Error: Some fields might be out of sync. {{SAVE_ERROR_MESSAGE}}",{SAVE_ERROR_MESSAGE:n?t.message:""});return this.notification.error("TAGGER_TAB_SAVE_ERROR_MESSAGE",{},{message:i,key:"taggerTabSaveError",persist:!1})}),this),!this.featureFlags("enableDocGenBulkSupport")||this.maybeShowBulkGenWarning()||(null==(n=this.envelopeModerator)||null==(t=n.getRecipients())?void 0:t.length)||null==(o=this.envelopeModerator)||null==(a=o.getRecipients())||a.on("add",(0,e$.debounce)(()=>{var e,t;this.maybeShowBulkGenWarning(),null==(t=this.envelopeModerator)||null==(e=t.getRecipients())||e.off(void 0,void 0,this)})),!(0,pB.k2)()&&this.featureFlags("enableScheduledSending")&&this.redux.dispatch(null==(l=this.redux.interactions)||null==(s=l.thunks)?void 0:s.startTutorialByName("NDSE_SEND_LATER_CALLOUT_TUTORIAL")),this.featureFlags("enableFormsForRealtors")&&(this.setAutofillFields(),this.containsValidAutofillFields(!1)&&(this.taggerViewState.setCanUseAutofill(!0),!this.containsValidAutofillFields(!0)||this.fieldsDisabled||this.featureFlags("removeAutoFillForm")||(e=!0,setTimeout(()=>{this.setIsAutoFillOverlayVisible(!0),this.mixpanel.trackEvent("formAutofillModal",{action:"Open - Auto"})},this.autoFillOverlayDelay)))),ec.k.getInstance().set(this.envelopeModerator.getRecipients()),this.selectDefaultRecipient(),this.ensureAnActiveRecipientIsAlwaysSelected(),this.featureFlags("enableFieldUnification")&&this.activeDocument.setDefault(this.envelopeModerator.getDocuments()),(0,y7.q)(this.envelopePersistenceManager,this.envelopeModerator)?(this.notEligibleForUnifiedFlow=!0,this.showAssignPdfFormFieldsModalReact=!0,this.hasAppliedTemplates=!!this.envelopeModerator.getTemplates().getLength()):this.featureFlags("enableAutotaggingOnEmbedded")&&this.isEmbeddedFlow&&!this.activeRecipient.get()&&!this.router.isCorrect()?this.notEligibleForUnifiedFlow||null==(u=this.envelopeModerator)||null==(c=u.getRecipients())||c.once("add",()=>{this.autotagging(e)}):this.notEligibleForUnifiedFlow||this.autotagging(e),!e&&(0,pB.FT)({envelopeModerator:this.envelopeModerator})&&!this.envelope.isTemplate()&&this.handleTaggerObWalkthroughCallouts(),!e&&!(0,pB.k2)()){this.featureFlags("enableStrikethroughTutorial")&&this.envelopeModerator.canManipulateAnnotations()&&(this.featureFlags("enableStrikethroughSimpleTutorial")&&!this.featureFlags("limitCalloutsInPrepare")?this.redux.dispatch(null==(p=this.redux.interactions)||null==(d=p.thunks)?void 0:d.startTutorialByName("STRIKETHROUGH_SIMPLE_TUTORIAL")):this.redux.dispatch(null==(g=this.redux.interactions)||null==(m=g.thunks)?void 0:m.startTutorialByName("MEERKAT_MARKUP_TOOLS"))),this.featureFlags("enableNAROnboarding")&&!this.featureFlags("limitCalloutsInPrepare")&&1===this.featureFlags("envelopesSent")&&this.redux.dispatch(null==(v=this.redux.interactions)||null==(f=v.thunks)?void 0:f.startTutorialByName("REAL_ESTATE_STRIKETHROUGH_TUTORIAL")),this.featureFlags("paymentsEnabled")&&!this.featureFlags("limitCalloutsInPrepare")&&this.featureFlags("enableFuturePayments")&&this.redux.dispatch(null==(b=this.redux.interactions)||null==(y=b.thunks)?void 0:y.startTutorialByName("SAVE_PAYMENT_CALLOUT_TUTORIAL")),this.featureFlags("enableNotaryGroupRecipients")&&!this.featureFlags("limitCalloutsInPrepare")&&this.redux.dispatch(null==(T=this.redux.interactions)||null==(_=T.thunks)?void 0:_.startTutorialByName("NDSE_NOTARY_FIELDS_TAB_CALLOUT_TUTORIAL")),this.featureFlags("enableAdmHealthcare")&&!this.featureFlags("limitCalloutsInPrepare")&&this.redux.dispatch(null==(S=this.redux.interactions)||null==(A=S.thunks)?void 0:A.startTutorialByName("HEALTHCARE_FIELDS_TAB_CALLOUT_TUTORIAL")),this.featureFlags("enableMeerkat")&&this.envelopeModerator.getRecipients().length>=2&&yl.T.getInstance().setCallout("switchRecipients",!0);var t,n,i,r,a,o,s,l,c,u,d,p,m,g,f,v,y,b,_,T,A,S,E=new G9.p;E.isFeatureEnabled()&&E.isCalloutEnabled("DATA_VERIFICATION_FIELDS_CALLOUT")&&E.handleFieldsExplorerCallout(this.envelopeModerator.getExtensionAppsHandler)}return null==(i=(r=this).stopWatchingForPageLoad)?void 0:i.call(r)}maybeShowBulkGenWarning(){var e,t,n,i,r;return!!(this.showBulkGenWarning&&(null==(n=this.envelopeModerator)||null==(t=n.docGenFormFieldsProxyCollection)||null==(e=t.getProxies())?void 0:e.length)&&(null==(r=this.envelopeModerator)||null==(i=r.getRecipients())?void 0:i.hasBulkRecipient()))&&(this.showBulkGenWarning=!1,this.notification.info("BULK_SEND_GEN_WARNING",{modal:!0}),!0)}handleTaggerObWalkthroughCallouts(){var e,t,n,i,r;this.obWalkthroughCallouts.handleTaggerObWalkthroughCallouts(!0,null==(t=this.envelopeModerator)||null==(e=t.getRecipients())?void 0:e.length,(null==(n=(0,on.tablessRecipients)(this.envelopeModerator))?void 0:n.length)===0,(null==(r=this.envelopeModerator)||null==(i=r.getTabs())?void 0:i.getLength())>=1,this.envelopeModerator)}getSelectedTabViewBeforeActionDisable(){var e;return null==(e=this.actionManagerSingleton.self)?void 0:e.getSelectedTabViewBeforeActionDisable()}getSiteBannerViewState(){return(0,G4._)(this.isXOnBehalfOf,this.router.isCorrect())}displayDocumentVisibility(){var e;return this.envelope.isUsingDocumentVisibility()&&!!(null==(e=this.featureFlags("appConfig"))?void 0:e.showEditDocumentVisibility)}showTabPalette(){var e;return(null==(e=this.featureFlags("appConfig"))?void 0:e.showTabPalette)!==!1}closeEditDocumentsModal(){this.envelopeDataManager.getPersister().finishSaves().then(()=>{this.assignPdfFormFields()})}assignPdfFormFields(){this.hasAppliedTemplates=!!this.envelopeModerator.getTemplates().getLength(),this.showAssignPdfFormFieldsModalReact=(0,y7.q)(this.envelopeDataManager.getPersister(),this.envelopeDataManager.getModerator())}openEditDocumentsModal(){return(0,D._)(function(){var e;return(0,L.__generator)(this,function(t){switch(t.label){case 0:return[4,bw({onEscape:tq.noop,onComplete:tq.noop,envelopeDataManager:this.envelopeDataManager,validationGroup:this.validationForms.documents})];case 1:return e=t.sent(),this.closeEditDocumentsModal(),[2,e]}})}).call(this)}showDocuments(){var e;return!!((this.envelope.isTemplate()||!this.featureFlags("enableMeerkat"))&&(null==(e=this.featureFlags("appConfig"))?void 0:e.showEditDocuments)&&!this.featureFlags("enableMeerkat"))}getDocuments(){var e;return null==(e=this.envelopeModerator)?void 0:e.getDocuments()}hasDocuments(){return!this.getDocuments().isEmpty()}canEditIDR(){return this.envelope.isTemplate()&&this.hasDocuments()}showAdvancedOptions(){return(!this.featureFlags("hideActionsOnEmbeddedFlow")||!this.isEmbeddedFlow)&&(this.canEditIDR()||this.showDocuments()||this.displayDocumentVisibility())}openDocumentVisibilityModalReact(){this.showDocumentVisibilityModalReact=!0}openDocumentVisibilityModal(){return(0,D._)(function(){return(0,L.__generator)(this,function(e){switch(e.label){case 0:if(!(this.envelopeModerator.getIsDocumentVisibilityEnabled()&&this.envelopeModerator.hasComments()))return[3,2];return[4,(0,GX.JX)().catch(()=>{})];case 1:if(!e.sent())return[2];e.label=2;case 2:return this.openDocumentVisibilityModalReact(),[2]}})}).call(this)}meerkatValidation(){return(0,D._)(function(){var e,t,n;return(0,L.__generator)(this,function(i){switch(i.label){case 0:if(!(e=this.validationForms.tabs).isValid())return[3,2];return[4,(0,on.taggerCheck)(this.envelopeModerator)];case 1:return i.sent(),[3,3];case 2:throw e.showInvalid(),t=e.getErrorMessages(),this.notification.error("PREPARE_FORM_ERROR",{},{message:t[0],allowUnsafeHtml:!0}),this.mixpanel.trackEvent("prepareValidationError",{messages:t}),n={Description:"Recipient Preview Opening",ComponentName:"Tagger",ErrorProperties:{errorType:eF.n6.User},EventSpecificContext:{validationFindings:JSON.stringify(t)}},this.kazmon.push(this.kazmon.TYPE.ERROR,n),Error();case 3:return[2]}})}).call(this)}showDocumentThumbnails(){return this.taggerViewState.get("showDocumentThumbnails")}shouldShowComments(){return this.taggerViewState.get("showComments")}shouldShowDocumentThumbnails(){return!this.getDocuments().isEmpty()}envelopeHasIdrs(){return!!this.envelopeModerator.matchBoxProxyCollection.getLength()}containsValidAutofillFields(e){return!!this.featureFlags("enableFormsForRealtors")&&(e?Object.keys(this.autofillFields).some(e=>this.autofillFields[e].some(e=>{var t;return(null==(t=e.tabProxy)?void 0:t.get("value"))===""})):!(0,e$.isEmpty)(this.autofillFields))}destroy(){ec.k.getInstance().thatCanHaveTabChanges.off(void 0,void 0,this),this.envelopeModerator.tabProxyCollection.off(void 0,void 0,this),this.actionManagerSingleton.reset(),this.taggerViewState.resetToDefaults(),this.activeRecipient.reset(),this.featureFlags("enableFieldUnification")&&this.activeDocument.reset(),this.selectedTabViews.reset(),(this.featureFlags("enableAutoTaggingForNDSE")||(0,NM.$o)())&&!(this.featureFlags("enableDocumentTemplate")&&this.isDocumentTemplate)&&(this.discardAutoTaggingSuggestions(),this.enableGhostFieldsExperiment&&this.notification.close("AUTO_TAGGING_GHOST_FIELDS_PLACING_SUCCESS"),this.notification.close("AUTO_TAGGING_FIELDS_PLACING_SUCCESS"))}track(e,t){this.mixpanel.trackEvent(e,t);var n={Description:e,ComponentName:"Tagger",EventSpecificContext:t};this.kazmon.push(this.kazmon.TYPE.CLIENT,n)}getModalVisibility(e){var t=this.savingValidationPrompts.getValidationPromptModalProps(e);return!!t&&t.showModal&&this.featureFlags("enableMeerkat")}selectDefaultRecipient(){this.activeRecipient.setDefault(this.taggerRecipients.thatCanHaveTabChanges)}ensureAnActiveRecipientIsAlwaysSelected(){this.taggerRecipients.thatCanHaveTabChanges.on("add remove reset",()=>{this.selectDefaultRecipient()},this)}applyAutoTaggingAutomatically(){return(0,D._)(function(){var e,t,n;return(0,L.__generator)(this,function(i){switch(i.label){case 0:if(this.featureFlags("enableDocumentTemplate")&&this.isDocumentTemplate)return[2];i.label=1;case 1:return i.trys.push([1,6,7,8]),[4,this.getAutoTaggingSuggestions()];case 2:if(e=i.sent(),t=this.activeRecipient.get(),!((0,e$.isEmpty)(e)||this.envelopeModerator.getTabs().getLength()>0||!t||!this.hasDocuments()))return[3,3];return this.showAutoTaggingNoFieldsNotification("AUTO_TAGGING_NO_FIELD_PLACED"),this.taggerViewState.updateAutoTaggingStatus(v2.f.noFieldsDetected),[3,5];case 3:return(0,fL.uR)(fL.Xw.invoked),[4,this.applyAutoTaggingSuggestions(e,t.get("recipientId"))];case 4:i.sent(),(0,fL.uR)(fL.Xw.applied),(0,NM.$o)()||(this.enableGhostFieldsExperiment?(0,fL.Vc)(e,this.envelopeModerator):this.showAutoTaggingFieldsPlacedNotification()),this.taggerViewState.updateAutoTaggingStatus(v2.f.executed),this.hasExecutedAutoTagging=!0,i.label=5;case 5:return[3,8];case 6:return n=i.sent(),this.showAutoTaggingNoFieldsNotification("AUTO_TAGGING_NO_FIELD_PLACED"),this.taggerViewState.updateAutoTaggingStatus(v2.f.noFieldsDetected),[3,8];case 7:return this.discardAutoTaggingSuggestions(),[7];case 8:return[2]}})}).call(this)}showAutoTaggingFieldsPlacedNotification(){if(this.featureFlags("enableNotificationReactContent")&&(this.featureFlags("enableUndoAutoTaggingFields")||(0,NM.$o)())){var e,t;this.notification.success("AUTO_TAGGING_FIELDS_PLACING_SUCCESS",{},{autoClose:!0,autoCloseTimeout:1e4,content:(0,N7.V)(this.featureFlags("enableSuggestedFieldsAutoPlace")||(0,NM.$o)()?this.translate("SuggestedFields.TabPalette.signDateFieldsAddedReview"):(null==(t=this.envelopeModerator.getRecipients())||null==(e=t.getSigners())?void 0:e.length)>1?this.translator.translate("SuggestedFields.AutoTagging.Notification"):this.translator.instant("Fields were added. Before you send, review all fields."),this.translator.instant("Undo"),this.boundHandleAutoTaggingUndo)})}else this.notification.success("AUTO_TAGGING_FIELDS_PLACING_SUCCESS",{},{autoClose:!0})}showAutoTaggingNoFieldsNotification(e){this.featureFlags("enableSuggestedFieldsAutoPlace")||(0,NM.$o)()||(this.enableGhostFieldsExperiment?(0,fL.Py)(e):this.notification.info(e,{},{autoClose:!0}))}handleAutoTaggingUndo(){return(0,D._)(function(){var e,t;return(0,L.__generator)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),(0,fL.uR)(fL.Xw.undo),[4,this.deleteAutoTaggedTabs()];case 1:return n.sent(),(0,NM.$o)()||(this.notification.close("AUTO_TAGGING_FIELDS_PLACING_SUCCESS"),this.notification.success("AUTO_TAGGING_DELETE_FIELDS_SUCCESS",{},{autoClose:!0})),this.featureFlags("logAutoTaggingAnalyzeDataToKazmon")&&(e={Description:"Web Auto Tagging: undo suggested tabs placement.",ComponentName:"Tagger",UserFacingMessage:"AUTO_TAGGING_DELETE_FIELDS_SUCCESS"},this.kazmon.push(this.kazmon.TYPE.CLIENT,e)),[3,3];case 2:return t=n.sent(),this.notification.error("AUTO_TAGGING_DELETE_FIELDS_ERROR",{},{autoClose:!0}),[3,3];case 3:return[2]}})}).call(this)}deleteAutoTaggedTabs(){return(0,D._)(function(){var e,t;return(0,L.__generator)(this,function(n){switch(n.label){case 0:if(!(0,NM.$o)())return[3,2];return e=this.envelopeModerator.tabProxyCollection.getAutoTaggedTabs().filter(e=>"datesigned"===e.get("tabType")||"signhere"===e.get("tabType")),[4,(0,fK.w_)(e)];case 1:return n.sent(),[3,4];case 2:return t=this.envelopeModerator.tabProxyCollection.getAutoTaggedTabs(),[4,(0,fK.w_)(t)];case 3:n.sent(),n.label=4;case 4:return[2]}})}).call(this)}getTaggerPlugins(){var e=[GG,U6,GB,Yu,Yp,YE,YC,YO,YF,YG,Yq,Y$,YK,LF,Y0,Y2,Ge,Gs,Gu,GC,GD,GF,GK,YU,G7],t=[GG,UZ,U1,U4,U6,GB,U7,Yu,Yp,Yg,YE,YC,YO,YM,YF,YG,U$,Yq,YW,Y$,YK,YZ,LF,Y0,Y2,Y4,Y6,Y7,Gq,Ge,Ht,Gs,Gu,Gp,Gy,G_,GA,GE,GC,GD,GM,GF,GZ.A,G0,YU,G7];return t.push(YB),e.push(YB),this.featureFlags("expressSend")||(t.push(YA),t.push(this.featureFlags("enableTouchDragToAdd")?G$:Yl),t.push(YI),t.push(Yk),e.push(YA),e.push(G$)),this.featureFlags("enableCollapsibleSection")&&(t.push(MW.Ay),t.push(GW),e.push(GW)),(0,fL.Qi)()&&(t.push(GU),t.push(G6)),(0,iZ.eG)()&&this.featureFlags("enableTouchSupport")?e:t}constructor(e){var t=this;(0,G._)(this,"addEmbeddedHeaderClass",!1),(0,G._)(this,"translator",eY.m.getInstance()),(0,G._)(this,"featureFlags",j.mg.getInstance()),(0,G._)(this,"obWalkthroughCallouts",eV.Y.getInstance()),(0,G._)(this,"isEmbeddedFlow",!!this.featureFlags("embeddedSendingInfo")),(0,G._)(this,"enableGhostFieldsExperiment",this.featureFlags("enableGhostFieldsExperiment")&&!this.featureFlags("enableSuggestedFieldsAutoPlace")),(0,G._)(this,"boundMeerkatValidation",this.meerkatValidation.bind(this)),(0,G._)(this,"boundHandleAutoTaggingUndo",this.handleAutoTaggingUndo.bind(this)),(0,G._)(this,"envelopeDataManager",void 0),(0,G._)(this,"doneLoading",void 0),(0,G._)(this,"getAutoTaggingSuggestions",void 0),(0,G._)(this,"discardAutoTaggingSuggestions",void 0),(0,G._)(this,"applyAutoTaggingSuggestions",void 0),(0,G._)(this,"options",void 0),(0,G._)(this,"validationForms",void 0),(0,G._)(this,"fieldsDisabled",void 0),(0,G._)(this,"envelopePersistenceManager",void 0),(0,G._)(this,"envelope",void 0),(0,G._)(this,"envelopeModerator",void 0),(0,G._)(this,"isDocumentTemplate",!1),(0,G._)(this,"translate",void 0),(0,G._)(this,"archetypeConfigurations",[]),(0,G._)(this,"autoplaceTabsResponse",{textTabs:[],checkBoxTabs:[],signHereTabs:[],dateSignedTabs:[]}),(0,G._)(this,"fieldAssistTabsResponse",{signHereTabs:[],dateSignedTabs:[]}),(0,G._)(this,"unifiedSuggestedFieldsFlow",""),(0,G._)(this,"notEligibleForUnifiedFlow",!1),(0,G._)(this,"autoplaceTabsNotFound",!1),(0,G._)(this,"fieldAssistTabsNotFound",!1),(0,G._)(this,"showFieldAssistTabsNotFoundBanner",!1),(0,G._)(this,"fieldAssistTabsNumber",0),(0,G._)(this,"autoplaceTabsNumber",0),(0,G._)(this,"isApplyingAutoplaceFields",!1),(0,G._)(this,"closeAutoplacingInlineBanner",!1),(0,G._)(this,"deletingTabs",!1),(0,G._)(this,"noMoreFieldsToPlace",!1),(0,G._)(this,"isXOnBehalfOf",!1),(0,G._)(this,"showPaymentsCallout",!1),(0,G._)(this,"isAutofillOverlayVisible",!1),(0,G._)(this,"autofillFields",{}),(0,G._)(this,"autofillSections",[]),(0,G._)(this,"prefillTabObjects",{}),(0,G._)(this,"showAssignPdfFormFieldsModalReact",!1),(0,G._)(this,"hasAppliedTemplates",!1),(0,G._)(this,"showDocumentVisibilityModalReact",!1),(0,G._)(this,"showRecipientPreviewModal",!1),(0,G._)(this,"scrollToTabIDOnPreview",void 0),(0,G._)(this,"isInitialized",!1),(0,G._)(this,"showConditionalRulesValidation",!1),(0,G._)(this,"hasExecutedAutoTagging",void 0),(0,G._)(this,"isApplyingSuggestedTabs",void 0),(0,G._)(this,"showBulkGenWarning",void 0),(0,G._)(this,"showEditCustomTabModal",!1),(0,G._)(this,"taggerViewState",iM.K.getInstance()),(0,G._)(this,"redux",eI.Iq.getInstance()),(0,G._)(this,"actionManagerSingleton",ep.D.getInstance()),(0,G._)(this,"activeRecipient",rp.r.getInstance()),(0,G._)(this,"activeDocument",Hn.J.getInstance()),(0,G._)(this,"selectedTabViews",el.U.getInstance()),(0,G._)(this,"taggerRecipients",ec.k.getInstance()),(0,G._)(this,"notification",ew.v.getInstance()),(0,G._)(this,"router",np.r.getInstance()),(0,G._)(this,"mixpanel",nh.C9.getInstance()),(0,G._)(this,"kazmon",eF.CJ.getInstance()),(0,G._)(this,"savingValidationPrompts",es.K.getInstance()),(0,G._)(this,"brandingApiClient",eM.$Q.getInstance()),(0,G._)(this,"autoFillOverlayDelay",2e3),(0,G._)(this,"stopWatchingForPageLoad",void 0),(0,G._)(this,"currentlyAvailableTabModels",new gs.A),(0,G._)(this,"handleEditCustomTabModalClose",e=>{"save"===e?U.platformProps.utils.eventBus.publish({eventName:"FieldModified",data:{modificationType:"CREATE",data:{library:"Custom Fields"}},targetWidgetId:"@extensions/field-library"}):"delete"===e&&U.platformProps.utils.eventBus.publish({eventName:"FieldModified",data:{modificationType:"DELETE",data:{library:"Custom Fields"}},targetWidgetId:"@extensions/field-library"}),this.showEditCustomTabModal=!1}),(0,G._)(this,"openEditCustomTabModal",e=>nH.k.renderDialog(t=>{var n=t.onClose;return this.showEditCustomTabModal?gW({onClose:e=>{n(!0),this.handleEditCustomTabModalClose(e)},customTab:null!=e?e:new gq.A,canChangeCustomTabType:!0}):null}).resolution),(0,G._)(this,"assignPdfFormFieldsModalHandledClose",()=>{this.showAssignPdfFormFieldsModalReact=!1,(0,y7.n)(this.envelopePersistenceManager,this.envelopeModerator)}),(0,G._)(this,"checkForPdfFormFields",()=>{(0,y7.q)(this.envelopePersistenceManager,this.envelopeModerator)&&(this.showAssignPdfFormFieldsModalReact=!0,this.hasAppliedTemplates=!!this.envelopeModerator.getTemplates().getLength())}),(0,G._)(this,"tablessRecipientConfirmationModalHandleClose",e=>{var t=this.savingValidationPrompts.getValidationPromptModalProps(vq.V.tablessRecipientConfirmationModal);t&&(e===vq.f.cancel?t.reject():e===vq.f.send&&t.resolve(),t.showModal=!1)}),(0,G._)(this,"isUserExistingCustomer",()=>this.featureFlags("userCustomSettings").existingUser),(0,G._)(this,"collaborativeFormulaConflictConfirmModalHandleClose",e=>{var t=this.savingValidationPrompts.getValidationPromptModalProps(vq.V.collaborativeFormulaConflictConfirmModal);t&&(e===vq.f.cancel?t.reject():e===vq.f.ok&&t.resolve(),t.showModal=!1)}),(0,G._)(this,"ghostFieldMissingTypeModalHandleClose",e=>{var t=this.savingValidationPrompts.getValidationPromptModalProps(vq.V.ghostFieldMissingTypeModal);t&&(e===vq.f.cancel?t.reject():e===vq.f.send&&t.resolve(),t.showModal=!1)}),(0,G._)(this,"clickToApplyAutoTagging",(e,t)=>(0,D._)(function(){var n,i,r,a,o;return(0,L.__generator)(this,function(s){switch(s.label){case 0:if(this.featureFlags("enableDocumentTemplate")&&this.isDocumentTemplate)return[2];if(!this.activeRecipient.get())return[2,this.notification.info("AUTO_TAGGING_FIELDS_PLACING_NO_RECIPIENT_ERROR",{modal:!0})];n=e?fL.tp.modal:void 0,s.label=1;case 1:return s.trys.push([1,6,7,8]),[4,this.getAutoTaggingSuggestions(n)];case 2:if(i=s.sent(),!((0,e$.isEmpty)(i)||!this.hasDocuments()))return[3,3];return this.displayUnifiedNotification("AUTOPLACING_NO_RESULT"),[3,5];case 3:return t&&(0,fL.uR)(fL.Xw.invoked),a=this.applyAutoTaggingSuggestions(i,null==(r=this.activeRecipient.get())?void 0:r.get("recipientId")),(0,ch.A)(this.translator.instant("Adding {{numOfSuggestedTabs}} fields...",{numOfSuggestedTabs:(0,fL.E$)(i)}),a),[4,a];case 4:s.sent(),this.hasExecutedAutoTagging=!0,t&&(0,fL.uR)(fL.Xw.applied),this.enableGhostFieldsExperiment?(0,fL.Vc)(i,this.envelopeModerator):this.showAutoTaggingFieldsPlacedNotification(),s.label=5;case 5:return[3,8];case 6:return o=s.sent(),this.notification.info("AUTO_TAGGING_NO_FIELD_PLACED"),[3,8];case 7:return this.discardAutoTaggingSuggestions(),[7];case 8:return[2]}})}).call(this)),(0,G._)(this,"documentVisibilityModalHandleClose",()=>{this.showDocumentVisibilityModalReact=!1}),(0,G._)(this,"setIsAutoFillOverlayVisible",function(e){var n,i,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=j.mg.getInstance();t.isAutofillOverlayVisible=e,e&&r&&t.setAutofillFields(),e||a("limitCalloutsInPrepare")||(0,pB.k2)()||t.redux.dispatch(null==(i=t.redux.interactions)||null==(n=i.thunks)?void 0:n.startTutorialByName("NDSE_AUTOFILL_USE_ICON_TUTORIAL"))}),(0,G._)(this,"setAutofillFields",()=>{var e=this.envelopeModerator.getPrefilledTabs().getProxies(),t={};e.map(e=>{t[e.get("tabLabel")]=e});var n={},i=[],r=this.envelopeModerator.getRecipients().models.reduce((e,t)=>(G3.includes(t.get("roleName"))&&(e[t.get("roleName")]={name:t.get("name"),email:t.get("email")}),e),{});G1.map(e=>{G2[e].map(a=>{var o="";if(a.dataLabel in t?o=a.dataLabel:this.featureFlags("dsformsDataLabelSchemaSync")&&a.friendlyDataLabel in t&&(o=a.friendlyDataLabel),!(0,e$.isEmpty)(o)){var s=n[e],l=t[o];!a.recipientDataMap||(0,e$.isEmpty)(r[a.recipientDataMap.roleName])||l.get("value")||l.set({value:r[a.recipientDataMap.roleName][a.recipientDataMap.attribute]});var c=(0,Y._)((0,k._)({},a),{tabProxy:l});s?n[e]=[...s,c]:(n[e]=[c],i.push(e))}})}),this.autofillFields=n,this.autofillSections=i,this.prefillTabObjects=t}),(0,G._)(this,"handleRecipientPreviewModalClose",()=>{this.showRecipientPreviewModal=!1}),(0,G._)(this,"openRecipientsPreviewOverlay",e=>(0,D._)(function(){var t;return(0,L.__generator)(this,function(n){switch(n.label){case 0:return this.activeRecipient.get()||this.activeRecipient.setDefault(this.envelopeModerator.getRecipients()),[4,(0,on.saveForPreview)(this.envelopeModerator)];case 1:return n.sent(),this.mixpanel.trackEvent("prepareRecipientPreview",{}),t={Description:"Recipient Preview Opening",ComponentName:"Tagger"},this.kazmon.push(this.kazmon.TYPE.CLIENT,t),this.scrollToTabIDOnPreview=e,this.showRecipientPreviewModal=!0,[2]}})}).call(this)),(0,G._)(this,"validateConditionalRules",()=>(this.showConditionalRulesValidation=!0,this.envelopeModerator.conditionalRecipientRuleProxyCollection.rulesAreAllSaveable())),(0,G._)(this,"handleConditionalRulesWizardClose",()=>{this.showConditionalRulesValidation=!1}),(0,et.Gn)(this),this.translate=e.translate,this.isDocumentTemplate=e.isDocumentTemplate,this.envelopeDataManager=e.envelopeDataManager,this.doneLoading=e.doneLoading,this.getAutoTaggingSuggestions=e.getAutoTaggingSuggestions,this.discardAutoTaggingSuggestions=e.discardAutoTaggingSuggestions,this.applyAutoTaggingSuggestions=e.applyAutoTaggingSuggestions,this.options=e.options,this.validationForms=e.validationForms,this.hasExecutedAutoTagging=e.hasExecutedAutoTagging,this.isApplyingSuggestedTabs=e.isApplyingSuggestedTabs,this.showBulkGenWarning=this.featureFlags("enableDocGenBulkSupport"),this.isXOnBehalfOf=eq.A.getInstance().getIsActive(this.redux.getState()),this.envelopeModerator=null==(i=this.envelopeDataManager)?void 0:i.getModerator(),this.envelope=null==(r=this.envelopeModerator)?void 0:r.getEnvelope(),this.envelopePersistenceManager=null==(a=this.envelopeDataManager)?void 0:a.getPersister(),this.featureFlags("enableAiAgentForSend")&&this.router.hasFromAgentSearchParam()&&this.envelope.set("createdWithAi",!0),this.fieldsDisabled=null==(s=this.envelopeModerator)||null==(o=s.getRecipients())?void 0:o.hasCompletedRecipients(),this.brandingApiClient.fetchActiveSendingBrand().then(e=>{var t=(0,e$.get)(e,["isHeaderBackgroundModified"]);this.addEmbeddedHeaderClass=!!this.featureFlags("embeddedSendingInfo")&&!t}),this.mixpanel.trackEvent("preparePageView",{page:"Tagger",envelopeId:null==(l=this.envelope)?void 0:l.id});var n={Description:"Page View: Tagger",ComponentName:"Tagger",UserFlow:"Tagger"};if(this.kazmon.push(this.kazmon.TYPE.CLIENT,n),!(this.featureFlags("enableDocumentTemplate")&&this.isDocumentTemplate)){this.actionManagerSingleton.set(this.getTaggerPlugins(),this.envelopeModerator,this.envelopePersistenceManager);var i,r,a,o,s,l,c,u,d=this.envelope.isTemplate()?"TEMPLATE_TAGGER":"TAGGER";this.redux.dispatch(null==(u=this.redux.interactions)||null==(c=u.actionCreators)?void 0:c.setTutorialPage({page:d}))}this.featureFlags("enableFieldUnification")&&(this.archetypeConfigurations=(0,e$.map)(this.currentlyAvailableTabModels,e=>(0,e$.extend)({archetype:new e.model},e)))}}(0,L.__decorate)([et.sH],Hi.prototype,"autoplaceTabsResponse",void 0),(0,L.__decorate)([et.sH],Hi.prototype,"fieldAssistTabsResponse",void 0),(0,L.__decorate)([et.sH],Hi.prototype,"unifiedSuggestedFieldsFlow",void 0),(0,L.__decorate)([et.sH],Hi.prototype,"notEligibleForUnifiedFlow",void 0),(0,L.__decorate)([et.sH],Hi.prototype,"autoplaceTabsNotFound",void 0),(0,L.__decorate)([et.sH],Hi.prototype,"fieldAssistTabsNotFound",void 0),(0,L.__decorate)([et.sH],Hi.prototype,"showFieldAssistTabsNotFoundBanner",void 0),(0,L.__decorate)([et.sH],Hi.prototype,"fieldAssistTabsNumber",void 0),(0,L.__decorate)([et.sH],Hi.prototype,"autoplaceTabsNumber",void 0),(0,L.__decorate)([et.sH],Hi.prototype,"isApplyingAutoplaceFields",void 0),(0,L.__decorate)([et.sH],Hi.prototype,"closeAutoplacingInlineBanner",void 0),(0,L.__decorate)([et.sH],Hi.prototype,"deletingTabs",void 0),(0,L.__decorate)([et.sH],Hi.prototype,"noMoreFieldsToPlace",void 0),(0,L.__decorate)([et.sH],Hi.prototype,"isXOnBehalfOf",void 0),(0,L.__decorate)([et.sH],Hi.prototype,"showPaymentsCallout",void 0),(0,L.__decorate)([et.sH],Hi.prototype,"isAutofillOverlayVisible",void 0),(0,L.__decorate)([et.sH],Hi.prototype,"autofillFields",void 0),(0,L.__decorate)([et.sH],Hi.prototype,"autofillSections",void 0),(0,L.__decorate)([et.sH],Hi.prototype,"prefillTabObjects",void 0),(0,L.__decorate)([et.sH],Hi.prototype,"showAssignPdfFormFieldsModalReact",void 0),(0,L.__decorate)([et.sH],Hi.prototype,"hasAppliedTemplates",void 0),(0,L.__decorate)([et.sH],Hi.prototype,"showDocumentVisibilityModalReact",void 0),(0,L.__decorate)([et.sH],Hi.prototype,"showRecipientPreviewModal",void 0),(0,L.__decorate)([et.sH],Hi.prototype,"scrollToTabIDOnPreview",void 0),(0,L.__decorate)([et.sH],Hi.prototype,"isInitialized",void 0),(0,L.__decorate)([et.sH],Hi.prototype,"showConditionalRulesValidation",void 0),(0,L.__decorate)([et.sH],Hi.prototype,"hasExecutedAutoTagging",void 0),(0,L.__decorate)([et.sH],Hi.prototype,"isApplyingSuggestedTabs",void 0),(0,L.__decorate)([et.sH],Hi.prototype,"showBulkGenWarning",void 0),(0,L.__decorate)([et.sH],Hi.prototype,"showEditCustomTabModal",void 0),(0,L.__decorate)([et.XI],Hi.prototype,"assignPdfFormFieldsModalHandledClose",void 0),(0,L.__decorate)([et.XI],Hi.prototype,"documentVisibilityModalHandleClose",void 0);var Hr=n(34269);class Ha extends Hr.A{defaults(){return{documentTemplateId:"",name:"",status:"",agreementTypeId:"",isAceGenTemplate:!1,isDocGenTemplate:!1,createdTime:"",owner:{userName:"",userId:""},lastModifiedTime:"",lastModifiedUser:{userName:"",userId:""},document:{documentId:"",fileExtension:"",tabs:{},docGenFormFields:[],documentBase64:"",originalDocumentBase64:""},recipients:{},envelopeTemplates:[]}}urlRoot(){return super.urlRoot()+"/templates"}isDocumentTemplate(){return!0}isAtbFlow(){return this.featureFlags("enableDocumentTemplateATBMockFlow")||this.featureFlags("enableDocumentTemplate")&&this.get("isAceGenTemplate")}generateDocumentTemplateName(){return"Untitled ".concat(new Date)}}(0,G._)(Ha,"schema",Hr.A.schema);var Ho=Ha,Hs="45f76e92-b9cb-4ab0-add1-04dc58921658";class Hl extends Hi{updateAdfDocument(e){return(0,D._)(function(){var t,n,i,r,a,o,s;return(0,L.__generator)(this,function(l){switch(l.label){case 0:return l.trys.push([0,3,,4]),t=this.documents.getFirstDocument(),n=this.featureFlags("enableDocumentTemplateATBMockFlow")&&Hs||this.envelope.get("documentTemplateId"),[4,(0,ss.lt)(e)];case 1:return i=l.sent(),this.envelope.set("document",{documentBase64:i,envelopeTemplateDocumentId:"",envelopeTemplateId:"",fileExtension:"adf",name:t.get("name")||"DocumentTemplateDocument"}),[4,this.envelopePersistenceManager.updateDocumentTemplate()];case 2:return l.sent(),[3,4];case 3:return r=l.sent(),a=eF.CJ.getInstance(),o=r instanceof Error?r.stack:String(r),s={Description:"Unable to save document template",ComponentName:"DocumentTemplate > updateAfDocument",UserFlow:"Document Template",ErrorProperties:(0,eF.zC)(r)},a.push(a.TYPE.ERROR,s),[3,4];case 4:return[2]}})}).call(this)}constructor(e){var t;super(e),t=this,(0,G._)(t,"models",void 0),(0,G._)(t,"documentTemplateModelStore",eO.c.getInstance()),(0,G._)(t,"documents",void 0),(0,G._)(t,"recipients",void 0),(0,G._)(t,"_doneLoading",!1),(0,G._)(t,"isAtbFlow",!1),(0,G._)(t,"activeAceDocumentId",""),(0,G._)(t,"isDocumentEditor",()=>!0),(0,G._)(t,"setActiveAceDocumentId",e=>{t.activeAceDocumentId=e}),(0,G._)(t,"refreshState",()=>(0,D._)(function(){var e,n;return(0,L.__generator)(this,function(i){switch(i.label){case 0:e=eY.m.getInstance().instant,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,t.envelopePersistenceManager.completelyFetchDocumentTemplate()];case 2:return i.sent(),t.models.recipients.sort(),t.recipients=t.envelopeModerator.getRecipients(),t.documents=t.envelopeModerator.documentProxyCollection,t.isAtbFlow=t.envelope.isAtbFlow(),t._doneLoading=!0,[3,4];case 3:return n=i.sent(),t.notification.error("",{},{message:e("Error fetching document template")}),[3,4];case 4:return[2]}})})()),(0,G._)(t,"cleanUp",()=>{(0,e$.each)(t.models,e=>{e&&(e.off(),e.stopListening())}),$(window).off("focus.lockTimerCheck"),t.taggerRecipients.reset(),t.activeRecipient.reset(),t.featureFlags("disableAsyncIncorrectCleanupFix")?t.documentTemplateModelStore.reset():t.documentTemplateModelStore.reset(void 0,t.envelope.id)}),(0,et.Gn)(t),t.envelope=new Ho({envelopeId:e.entityId||t.router.getEnvelopeId(),versionId:e.versionId}),t.envelopeDataManager=new m8.A(t.envelope,t.envelope.get("password"),!1,e.prepareInUB),t.envelopeModerator=t.envelopeDataManager.getModerator(),t.envelopePersistenceManager=t.envelopeDataManager.getPersister(),t.models=t.envelope.getRootModels(),t.documentTemplateModelStore.reset(t.envelopeDataManager),t.doneLoading=()=>t._doneLoading,t.options={showMeerkat:t.featureFlags("enableMeerkat")},t.validationForms=(0,m7.me)(t.envelopeModerator),t.refreshState(),t.taggerRecipients.set(t.envelope.recipients),t.actionManagerSingleton.set(t.getTaggerPlugins(),t.envelopeModerator,t.envelopePersistenceManager)}}(0,L.__decorate)([et.sH],Hl.prototype,"_doneLoading",void 0),(0,L.__decorate)([et.sH],Hl.prototype,"isAtbFlow",void 0),(0,L.__decorate)([et.sH],Hl.prototype,"activeAceDocumentId",void 0);var Hc=n(57315),Hu="recommendedFieldsInfoBanner",Hd="https://support.docusign.com/s/document-item?language=en_US&bundleId=gbo1643332197980&topicId=con55e2c41a-3b29-48d6-a195-1f5eeb67131b.html&_LANG=enus",Hp=()=>{var e=j.mg.getInstance(),t=(0,ii.W)(),n=nw(e("userId")),i=n.getTourStatus,r=n.setTourCompleted,a=(0,M._)((0,ed.useState)(()=>i(Hu)),2),o=a[0],s=a[1],l=(0,ed.useCallback)(()=>{r(Hu),s(!0)},[r]);return o?null:(0,B.FD)(nS.Banner,{visible:!0,kind:"subtle",startElement:(0,B.Y)(Hc.A,{}),closeButton:(0,B.Y)(nS.Banner.Close,{"data-qa":"close-recommended-fields-info-banner",onClick:l}),"data-qa":"recommended-fields-info-banner",children:[t("SenderDiscoverabilityBanners.RecommendedFieldsInfoBanner.Message")," ",(0,B.Y)(nS.Link,{href:Hd,target:"_blank",text:t("SenderDiscoverabilityBanners.RecommendedFieldsInfoBanner.LearnMoreLink")})]})},Hh="senderRoleInfoBanner",Hm="https://support.docusign.com/s/document-item?language=en_US&bundleId=gbo1643332197980&topicId=con55e2c41a-3b29-48d6-a195-1f5eeb67131b.html&_LANG=enus",Hg=()=>{var e=j.mg.getInstance(),t=(0,ii.W)(),n=nw(e("userId")),i=n.getTourStatus,r=n.setTourCompleted,a=(0,M._)((0,ed.useState)(()=>i(Hh)),2),o=a[0],s=a[1],l=(0,ed.useCallback)(()=>{r(Hh),s(!0)},[r]);return o?null:(0,B.FD)(nS.Banner,{visible:!0,kind:"subtle",startElement:(0,B.Y)(Hc.A,{}),closeButton:(0,B.Y)(nS.Banner.Close,{"data-qa":"close-sender-role-info-banner",onClick:l}),"data-qa":"sender-role-info-banner",children:[t("SenderDiscoverabilityBanners.SenderRoleInfoBanner.Message")," ",(0,B.Y)(nS.Link,{href:Hm,target:"_blank",text:t("SenderDiscoverabilityBanners.SenderRoleInfoBanner.LearnMoreLink")})]})},Hf=n(2527),Hv={"com.docusign.extensibilityplatform.action.verify.postaladdress@1.0.0":"com.docusign.extensibilityplatform.action.verify.postaladdress@0.3.0"},Hy=(e,t)=>{try{if(!e)throw Error("Recipient id not provided");if(!t)throw Error("Object model info not provided");var n=t.fields;if(!(null==n?void 0:n.length))throw Error("ObjectModelInfo fields is empty");var i=eO.c.getInstance().envelopeModerator.tabProxyCollection.getByRecipientId(e).filter(e=>e.isAdmTab()),r=n[0].passthroughInfo;if(r){var a=r.data,o=JSON.parse(a);if(!Array.isArray(o))throw Error("Invalid passthroughInfo, expected array but received ".concat(typeof o));var s=HT(o[0]);if(!s)throw Error("Failed to build extensionData from passthroughInfo");return H_(n,s,i)}return H_(n,void 0,i)}catch(e){var l,c=eF.CJ.getInstance();return c.push(c.TYPE.ERROR,{Description:"Data Verification tab models not created",ComponentName:"dataVerificationTabBuilderUtil",UserFlow:"Adding tabs to document.",ErrorProperties:(0,Y._)((0,k._)({},(0,eF.zC)(e)),{errorType:eF.n6.UnexpectedState}),EventSpecificContext:{library:null==t?void 0:t.kind,tabFullyQualifiedPath:null==t||null==(l=t.fields[0])?void 0:l.fqp}}),[]}},Hb=e=>{try{if(!e||!e.fields)throw Error("Invalid object model info provided. Could not resolve data verification fields");return e.fields.every(e=>{var t=e.sops;return Array.isArray(t)&&t.includes("verify")})}catch(i){var t,n=eF.CJ.getInstance();return n.push(n.TYPE.ERROR,{Description:"Could not determine data verification fields",ComponentName:"dataVerificationTabBuilderUtil",UserFlow:"Adding tabs to document.",ErrorProperties:(0,Y._)((0,k._)({},(0,eF.zC)(i)),{errorType:eF.n6.UnexpectedState}),EventSpecificContext:{library:null==e?void 0:e.kind,tabFullyQualifiedPath:null==e||null==(t=e.fields[0])?void 0:t.fqp}}),!1}},H_=(e,t,n)=>{var i=!!t,r=!!(null==t?void 0:t.connectedFieldsData),a=HE(e.filter(e=>Array.isArray(e.sops)&&e.sops.includes("verify")).map(e=>{var t=Hw(e),i=HC(e,t,n);i.set("tabFullyQualifiedPath",e.fqp);var a={tabModel:i,propertyName:t.propertyName};return r&&(a.typeName=t.namespace,a.propertyPath=HR(t.admEntityKey)),a}));return i?HA(a,t,n):HS(a)},HT=e=>{if(e){var t=e.appMetadata,n=t.connectorInfo,i=t.actionName,r=t.actionContract,a=t.extensionContract,o={publisherName:n.publisher.name,applicationName:n.name,applicationId:n.connectorId,actionContract:r,extensionContract:a.contractName,extensionName:a.extensionName,actionName:i,requiredForExtension:!0,extensionPolicy:"None"},s=["publisherName","applicationName","applicationId","actionContract","extensionName","extensionContract","actionName"],l=s.filter(e=>!o[e]);if(l.length>0)throw Error("Failed to construct extensionData. Missing required properties: ".concat(l.join(", ")));return o}},HA=(e,t,n)=>{var i=[],r=!0,a=!1,o=void 0;try{for(var s,l=e[Symbol.iterator]();!(r=(s=l.next()).done);r=!0){var c,u=s.value,d=u.tabModel,p=u.propertyName,m=u.typeName,g=u.propertyPath,f=NO.Ay.FromModel(d),v=p||"",y=m||"",b=g||v,_=[...n,...i],T=!!(null==t?void 0:t.connectedFieldsData),A=HI(T?b:v,t,f,_,T?(0,Y._)((0,k._)({},t.connectedFieldsData),{typeName:y,propertyName:v,supportedUri:"/connected-data/v1/connected-objects/".concat(null==(c=t.connectedFieldsData)?void 0:c.typeSystemNamespace,"/").concat(y,"/verify")}):void 0);A.requiredForExtension=f.isRequired(),d.set("extensionData",A),i.push(d)}}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return i},HS=e=>e.map(e=>e.tabModel),HE=e=>{var t=e.map(e=>NO.Ay.FromModel(e.tabModel)),n=(0,e$.groupBy)(t.filter(e=>e.isCollection()),e=>e.getCollectionName());return e.map(e=>{var t=e.tabModel,i=NO.Ay.FromModel(t),r=Math.max(...(n[i.getCollectionName()]||[]).map(e=>e.getCollectionIndex()));return i.isCollection()&&i.setCollectionIndex(r),t.set("mergeFieldXml",i.toMergeFieldXml()),e})},Hw=e=>{var t,n=e.fqp;if(!n||"string"!=typeof n)throw Error("Invalid fqp provided");var i=n.split("/");if(i.length<3)throw Error("Invalid fqp provided. Must have a namespace, concept, and property name");var r=i[0].split("@");if(2!==r.length)throw Error("Could not parse namespace and version from fqp");var a=j.mg.getInstance()("enableAdmPostalAddressVersionControl")?i[0]:null!=(t=Hv[i[0]])?t:i[0],o="".concat(i[0],".").concat(i.slice(1).join(".")),s="$.".concat(i.slice(2).join(".")),l=i[i.length-1],c="$.".concat(i.slice(1).join(".")),u=!!e.isOptional,d=Hk(e),p=r[1],m=c.split(".")[1];return{isOptional:u,namespace:a,name:e.label,key:c,type:d,rootFqn:o,admEntityKey:s,propertyName:l,folder:m,version:p}},HC=(e,t,n)=>{var i={prepareSettings:{name:t.name,legacyPath:t.key,type:t.type,required:!t.isOptional,initialValue:"checkboxTabs"===t.type?"false":t.propertyName,namespace:t.namespace,folder:t.folder,folderProperty:t.name,modelType:NO.e3.DataVerification},admBindings:[{fqn:t.rootFqn,path:t.admEntityKey,position:"0"}]},r=new NO.Ay(i,!0);if(Hx(r),r.initialize(),r.isCollection()&&r.assignGroup(n),"radioGroupTabs"===r.getType()){if(!Array.isArray(e.options))throw Error("Expected array for radioGroupTabs");r.setOptions(HD(e.fqp,e.options))}if("listTabs"===r.getType()){var a,o=null==(a=e.metadata)?void 0:a.Term_properties,s=null==o?void 0:o[0],l=(null==s?void 0:s.map(e=>{var t=(0,M._)(Object.entries(e),1),n=(0,M._)(t[0],2),i=n[0],r=n[1];return new gd.A({text:"string"==typeof r&&r.length>20?r.substring(0,20)+"...":r,value:i})}))||[];r.setDropdownOptions(l)}var c=HO(e,t,r),u=new ND.A(c);return(0,M7.fN)(u)},Hx=e=>{var t=e.getPath(),n=(0,Ft._)(t.split(".")),i=n[0],r=n[1],a=n.slice(2),o="";o=i&&r?0===a.length?"".concat(i,".").concat(r,"[0]"):"".concat(i,".").concat(r,"[0].").concat(a.join(".")):t,e.setPath(o)},HI=(e,t,n,i,r)=>{var a,o=n.getCollectionIndex(),s=i.filter(e=>{if(!e.isAdmTab())return!1;var t=NO.Ay.FromModel(e);return t.isCollection()?t.isSameNamespace(n.getNamespace())&&t.isSameCollection(n.getCollectionName())&&t.getCollectionIndex()===o:!n.isCollection()}),l=null==s||null==(a=s[0])?void 0:a.get("extensionData"),c=null!=l?l:(0,Y._)((0,k._)({},t),{extensionGroupId:(0,H.ir)()});return(0,Y._)((0,k._)({},c),{connectedFieldsData:r?(0,k._)({},r):null,actionInputKey:e})},HD=(e,t)=>e.startsWith("com.docusign.extensibilityplatform.action.verify.bankaccount")?t.map(e=>{var t;return null==(t=e.v.split(" ").at(0))?void 0:t.toLowerCase()}):t.map(e=>e.v),Hk=e=>{var t,n=e.typeName,i=!!e.isEnum,r=j.mg.getInstance();if(r("enableAdmPostalAddressVersionControl")&&e.fqp.startsWith("com.docusign.extensibilityplatform.action.verify.postaladdress")&&e.fqp.includes("countryOrRegion")&&i&&Array.isArray(null==(t=e.metadata)?void 0:t.Term_properties))return"listTabs";if(!r("enableAdmPostalAddressVersionControl")&&e.fqp.startsWith("com.docusign.extensibilityplatform.action.verify.postaladdress"))return"martiniDataTabs";if(i)return"radioGroupTabs";switch(n){case"[email protected]":return"checkboxTabs";case"[email protected]":return"radioGroupTabs";default:return"martiniDataTabs"}},HR=e=>e.replace(/^\$\.?/,"").replace(/\[/g,".").replace(/\]/g,"").replace(/\./g,"/").replace(/^\/+/,""),HO=(e,t,n)=>{var i={martiniType:t.type,fontSize:9,mergeFieldXml:n.toMergeFieldXml(),required:!t.isOptional,namespace:t.namespace,tabLabel:n.getTabLabel(),name:t.name,validationType:"text"},r=null==(s=e.uiGroup)?void 0:s.key,a=e.fqp.split("/").at(-1);if("socialSecurityNumber"===a&&"Identity"===r)return i.validationType="ssn",i;if("email"===a&&"ContactInformation"===r)return i.validationType="email",i;var o=e.validationInfo;if(o){var s,l,c,u=Array.isArray(o)?null==(l=o.find(e=>!!e.pattern))?void 0:l.pattern:void 0,d=null==(c=e.metadata)?void 0:c.Term_ValidationMessage;i.validationMessage=(Array.isArray(d)?d[0]:"")||"Invalid validation for ".concat(t.name),i.validationPattern=u}return i};function HP(){var e=(0,nk._)(["\n display: flex;\n flex-direction: column;\n height: 100%;\n padding: ",";\n width: ",";\n"]);return HP=function(){return e},e}var HM=(0,nT.AH)(HP(),nZ.Gpd.spacingXXS,AT),HN=(0,iA.PA)(e=>{var t,n,i,r,a,o,s,l,c=e.props,u=nV(),d=u.startTour,p=u.tourConfig,m=u.skipTour,g=u.showTourCallout,f="@extensions/field-library",v=j.mg.getInstance(),y=v("enableUpdatedTaggerOnboardingExperience"),b=v("enableTaggerModernizationWalkthrough"),_=v("enablePrefillTabsInTagger"),T=Hn.J.getInstance(),A=(0,nC.W)(),S=nh.C9.getInstance().trackEvent,E=eF.CJ.getInstance(),w=(0,M._)((0,ed.useState)(""),2),C=(w[0],w[1]),I=null==(t=c.taggerController)?void 0:t.envelopeModerator,D=null==I?void 0:I.getDocuments(),R=ec.k.getInstance(),L=ed.useRef(null),Y=ed.useRef(null),G=(0,ed.useMemo)(()=>null==I?void 0:I.getEnvelope(),[I]);ed.useEffect(()=>{var e=en.N.getInstance().subscribe("TAGGER:tabScaleChange",e=>{var t=e;"signHereTabs"===t.tabGroupType?L.current=t:"initialHereTabs"===t.tabGroupType&&(Y.current=t)});return()=>{e()}},[]);var H=(null==G?void 0:G.get("uSigState"))===Hf.y.SbsPerformed;T.get()||T.setDefault(D);var q=R.thatCanHaveTabChanges,K=null===U.platformProps||void 0===U.platformProps||null==(i=U.platformProps.utils)||null==(n=i.widgets)?void 0:n.get(f),Z=(0,ed.useCallback)(e=>{e?C(e.get("tabFullyQualifiedPath")||""):C("")},[C]),Q=ed.useRef(),ee=(0,mG.W)(q),et=null!=(a=null==(r=R.self)?void 0:r.hasCompletedRecipients())&&a,ei=(0,ed.useCallback)((e,t)=>(0,mG.sk)(e,t),[]),er=(0,ed.useCallback)((e,t)=>{if(e.type&&t&&"fields"in t&&(null==(o=t.fields)?void 0:o.length)!==0){"mousedown"===e.type&&e.preventDefault(),y&&d(p.ContextualMenuTour);var n=["double","number","integer","currency"],i=["datetime","date"];Q.current&&Q.current.destroy();var r=rp.r.getInstance();if((0,mG.oT)(t)){var a={type:"outline",ViewClass:FD.A,disabled:!1};Q.current=(0,e$.extend)(new Ot.A(null,{name:"annotationPaletteItem",model:a,$element:$(e.target)}),{model:a}),Q.current.trigger("domEvent:".concat(e.type),Q.current,e);return}if(e.type&&t&&"fields"in t&&(null==(s=t.fields)?void 0:s.length)>0){var o,s,l,u="",m=!r.get()&&r.getIsSenderRole(),g=!1;if("AgreementField"===t.kind){var f,v,b,_,T="text",S="text",w="",C="",I=(null==t?void 0:t.fields)&&(null==t||null==(b=t.fields[0])||null==(v=b.typeName)?void 0:v.toLowerCase()),D=(null==t||null==(_=t.fields[0])?void 0:_.metadata)&&(null==t?void 0:t.fields[0].metadata.Term_fieldType);n.some(e=>(null==I?void 0:I.indexOf(e))!==-1)?(S="number",w="^\\d+$"):i.some(e=>(null==I?void 0:I.indexOf(e))!==-1)?(S="date",w=gp.tF):Array.isArray(D)&&D.length>0&&"duration"===D[0].toLowerCase()&&(w="^\\d+\\s
Version (from header)
3.37.1

ML Analysis

CodeBERT (768d)GraphCodeBERT (768d)AST Features (128d)Handcrafted (64d)
Composite Vector1728 dimensions

Used for semantic similarity search across the database

Module Information

Module Pattern
script
Is Module
No