1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4333],{84947:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return eb}});var i=n(52322),s=n(2784),a=n(39507),o=n.n(a),r=n(90047),l=n(34758),d=n(23925),c=n(76385),h=n(60218),g=n(6729),u=n(94668),m=n(3),x=n(45021),p=n(96643),f=n(10495),y=n(96577),v=n.n(y),b=n(3265),j=n(41859),C=n(99220),S=n(88896),N=n(81763),Z=n(54701),w=n(17625),A=n(94449),I=e=>{var t,n;let a=(0,s.useRef)(),{relationship:o}=(0,A.v9)(e=>e.relationship),[r,g]=s.useState(!1),[u,m]=s.useState(!1),[p,y]=s.useState(!0),[j,I]=s.useState(["".concat(o?(null==o?void 0:o.firstName)&&(null==o?void 0:o.lastName)?(null==o?void 0:o.firstName)+" "+(null==o?void 0:o.lastName):null==o?void 0:o.firstName:"")]),[E,D]=s.useState([]);(0,s.useEffect)(()=>{D([]),g(!1)},[e.state.showSignerSelectScreen]),(0,s.useEffect)(()=>{var t;(null===(t=e.esign.signers)||void 0===t?void 0:t.length)>1&&m(!1)},[e.esign.signers]);let k=()=>{g(!1)};return(0,i.jsx)(h.ZP,{item:!0,lg:3,md:3,sm:12,xs:12,className:"height-100 custom-grid-300","data-testid":"inputForm",children:(0,i.jsxs)(l.Z,{square:!0,elevation:0,className:"esign-leftsidebar-rc",children:[e.state.showSignerSelectScreen&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"esign-file-info flex items-center flex-wrap border-b border-[#EEEEEE] p-3 mb-7",children:[(0,i.jsx)("div",{className:"rentalpdf-rc-img flex items-center mr-3",children:(0,i.jsx)(v(),{src:b.fu,alt:"Client Point Logo"})}),(0,i.jsx)(c.Z,{variant:"h6",gutterBottom:!0,className:"text-gray800 truncate flex-1 text-[1.125rem] text-left",children:"Non Disclosure Agreement"})]}),(0,i.jsxs)(d.Z,{pl:6,pr:6,component:"div",className:"esign-documentssidebar-rc pt-[56px]",children:[(0,i.jsx)(d.Z,{className:"flex justify-center",component:"div",mb:3,children:(0,i.jsx)(v(),{src:b.D3,alt:""})}),(0,i.jsx)(d.Z,{mb:2.3,children:(0,i.jsx)(c.Z,{variant:"subtitle2","data-testid":"label",gutterBottom:!0,children:(0,i.jsx)("span",{children:"How many people will sign this document?"})})}),(0,i.jsxs)(d.Z,{className:"document-setup-first-rc",children:[(0,i.jsx)(d.Z,{mb:2,className:"max-w-[200px] mx-auto documrnt-count-textfield",children:(0,i.jsx)(C.Z,{inputRef:a,error:e.esign.errors.has_error,helperText:""!==e.esign.errors.message&&e.esign.errors.message,onChange:t=>{e.onSignerNumber(t)},className:"document-calculationfield-rc textfield-select-signature",id:"filled-number",type:"number",InputLabelProps:{shrink:!0},inputProps:{"data-testid":"input"},defaultValue:e.esign.count||1,variant:"outlined"})}),(0,i.jsx)(x.Z,{onClick:t=>{e.onSignerContinue(t,a)},variant:"contained",color:"primary","data-testid":"continueBtn",disableElevation:!0,className:"continue-btton-rc",endIcon:(0,i.jsx)(N.Z,{}),fullWidth:!0,children:"Continue"})]})]})]}),!e.state.showSignerSelectScreen&&(0,i.jsxs)(d.Z,{pl:6,pr:6,component:"div",className:"esign-documentssidebar-rc pt-[56px]",children:[(0,i.jsx)(d.Z,{className:"flex justify-center",component:"div",mb:3,children:(0,i.jsx)(v(),{src:b.D3,alt:""})}),(0,i.jsx)(d.Z,{mb:2.3,children:(0,i.jsxs)(c.Z,{variant:"subtitle2","data-testid":"label",gutterBottom:!0,children:[(null===(t=e.esign.signers)||void 0===t?void 0:t.length)===1&&(0,i.jsx)("span",{children:"Identify the signer of this document"}),(null===(n=e.esign.signers)||void 0===n?void 0:n.length)>1&&(0,i.jsx)("span",{children:"Identify the signers of this document"}),(0,i.jsx)(f.u,{title:'Enter identifying information in each box below (such as a name) which each signer can easily recognize, so that they can select their role as they begin signing this document. <br /> <br /> Examples: their name (i.e. "Kent Martin"), their company name (i.e. "ACME Inc.") or their role (i.e. "Customer").',arrow:!0,placement:"top",children:(0,i.jsx)(f.sz,{style:{fontSize:20},className:"text-gray50 ml-[2px]"})})]})}),(0,i.jsx)(w.Z,{in:p,children:(0,i.jsx)(d.Z,{mb:2.3,className:"info-identity-alert",children:(0,i.jsxs)(f.bZ,{severity:"info",onClose:()=>(y(!1),!1),children:["Enter identifying information in each box below (such as a name) which each signer can easily recognize, so that they can select their role as they begin signing this document.",(0,i.jsx)("br",{})," ",(0,i.jsx)("br",{}),'Examples: their name (i.e. "Kent Martin"), their company name (i.e. "ACME Inc.") or their role (i.e. "Customer").']})})}),(0,i.jsxs)(d.Z,{className:"document-setup-second-rc",children:[r&&(0,i.jsx)("div",{className:"mb-5",children:(0,i.jsx)(f.bZ,{severity:"error",className:"error-alert",children:"Please fill required fields"})}),(0,i.jsx)(d.Z,{mb:2,className:"max-w-[100%] mx-auto",children:e.esign.signers.map((t,n)=>!1!==t.status&&(0,i.jsxs)("div",{className:"relative identify-item",children:[(0,i.jsx)(C.Z,{onChange:n=>{k(),delete E[t.id-1],e.onSignerInput(n,t),I({...j,[t.id-1]:n.target.value?n.target.value.trim():""})},error:!!E[t.id-1],className:"document-calculationfield-rc !mb-3",id:"filled-number",type:"text",InputLabelProps:{shrink:!0},defaultValue:0===n&&o?(null==o?void 0:o.firstName)&&(null==o?void 0:o.lastName)?(null==o?void 0:o.firstName)+" "+(null==o?void 0:o.lastName):null==o?void 0:o.firstName:"",placeholder:"Identify signer ".concat(n+1),inputProps:{"data-testid":"input"},variant:"outlined",autoComplete:"off"}),(0,i.jsx)("button",{className:"delete-signer-btn w-10 h-[46px]",children:(0,i.jsx)(Z.Z,{onClick:()=>{var n;(null===(n=e.esign.signers)||void 0===n?void 0:n.length)>1?e.onDeleteNewSigner(t):m(!0)},style:{fontSize:22},className:"text-gray50"})})]},t.id))}),u&&(0,i.jsx)("div",{className:"mb-5 mt-[-10px]",children:(0,i.jsx)(d.Z,{className:"error-alert",children:"There must be atleast one signer"})}),(0,i.jsx)(x.Z,{onClick:t=>
1{e.esign.signers.forEach(function(t,n){0===n&&o&&e.onSignerInput(null,t,o?(null==o?void 0:o.firstName)&&(null==o?void 0:o.lastName)?(null==o?void 0:o.firstName)+" "+(null==o?void 0:o.lastName):null==o?void 0:o.firstName:"")});let n=!0,i=[];if(e.esign.signers.forEach(function(e){i[e.id-1]=!1,j[e.id-1]?""===j[e.id-1]&&(g(!0),i[e.id-1]=!0,n=!1):(g(!0),i[e.id-1]=!0,n=!1)}),D(i),n){let n={...j};e.onSignerNameContinue(t,n)}},variant:"contained",color:"primary","data-testid":"continueBtn",disableElevation:!0,className:"continue-btton-rc",endIcon:(0,i.jsx)(N.Z,{}),fullWidth:!0,children:"Continue"})]})]}),(0,i.jsx)(S.Z,{className:"esign-divider-rc",orientation:"vertical"})]})})},E=n(17191),D=n(54073),k=n.n(D),_=e=>{var t,n,a,o;let[r,g]=s.useState(1),u=(0,s.useRef)(null),[m,x]=(0,s.useState)(!1);(0,s.useEffect)(()=>{m?u&&u.current&&u.current.focus():u&&u.current&&(u.current.value="")},[m]);let p=(0,s.useRef)(k()(e=>{e()},1e3)).current;return(0,s.useEffect)(()=>{if(e&&e.instance){let{docViewer:t}=e.instance;t.on("pageNumberUpdated",()=>{g(e.instance.UI.getCurrentPageNumber())})}},[e,e.instance]),(0,i.jsx)(h.ZP,{item:!0,lg:e.state.fullPage?12:6,md:e.state.fullPage?12:6,sm:12,xs:12,className:e.state.fullPage?"height-100":"height-100 custom-grid-900",children:(0,i.jsxs)(l.Z,{square:!0,elevation:0,className:"esign-centerconatiner-rc",children:[(0,i.jsxs)(d.Z,{className:"rental-agreement-header bg-[#FFF] relative",display:"flex",alignItems:"center",children:[(0,i.jsxs)(d.Z,{className:"rentalpdf-rc-img flex items-center mr-3 !min-w-[24px]",children:["pdf"===e.esign.filetype&&(0,i.jsx)(v(),{src:b.fu,alt:""}),("doc"===e.esign.filetype||"docx"===e.esign.filetype)&&(0,i.jsx)(v(),{src:b.BZ,alt:""}),("ppt"===e.esign.filetype||"pptx"===e.esign.filetype)&&(0,i.jsx)(v(),{src:b.T8,alt:""}),("xls"===e.esign.filetype||"xlsx"===e.esign.filetype||"xlsm"===e.esign.filetype)&&(0,i.jsx)(v(),{src:b.wv,alt:""})]}),(0,i.jsx)(c.Z,{variant:"h6",gutterBottom:!0,className:"text-darkBlue truncate",children:e.esign.filename}),(0,i.jsxs)("div",{className:"ml-auto flex items-center",children:[(0,i.jsxs)("div",{className:m?"serachbox-pdftron search-pdftron-active relative flex items-center bg-white rounded-[5px] h-[36px] pt-[7px] pr-[7px] pb-[7px] max-w-[297px] w-full mx-[6px]":"serachbox-pdftron relative flex items-center bg-white rounded-[5px] h-[36px] pt-[7px] pr-[7px] pb-[7px] max-w-[297px] w-full mx-[6px]",children:[(0,i.jsx)("input",{id:"doc-field",type:"text",placeholder:"Search",ref:u,onChange:t=>{p(()=>{e.onSearchText(t.target.value)})},className:"bg-transparent focus:outline-none flex-1 h-6 pl-4"}),(0,i.jsx)("button",{onClick:()=>{x(!m),e.onSearchText("")},className:"min-w-[24px] h-6 rounded-[5px] flex items-center justify-center bg-white search-close-btn ml-[7px] mr-[5px]",children:(0,i.jsx)(j.Z,{style:{fontSize:16},className:"text-gray50"})})]}),(0,i.jsx)(E.Z,{title:"Search",arrow:!0,children:(0,i.jsx)("button",{onClick:()=>{x(!m)},className:m?"esign-option-button mr-[6px] cursor-pointer min-w-[36px] h-9 rounded-[5px] bg-white flex items-center justify-center":"esign-option-button search-esign-active mr-[6px] cursor-pointer min-w-[36px] h-9 rounded-[5px] bg-white flex items-center justify-center",children:(0,i.jsx)("span",{className:"material-icons",children:"search"})})}),(0,i.jsx)(E.Z,{title:"Zoom Out",arrow:!0,children:(0,i.jsx)("button",{onClick:()=>{e.onZoomDown()},className:"esign-option-button mr-[6px] cursor-pointer min-w-[36px] h-9 rounded-[5px] bg-white flex items-center justify-center btn-hide-mob",children:(0,i.jsx)("span",{className:"material-icons",children:"remove"})})}),(0,i.jsx)(E.Z,{title:"Zoom In",arrow:!0,children:(0,i.jsx)("button",{onClick:()=>{e.onZoomUp()},className:"esign-option-button mr-[6px] cursor-pointer min-w-[36px] h-9 rounded-[5px] bg-white flex items-center justify-center btn-hide-mob",children:(0,i.jsx)("span",{className:"material-icons",children:"add"})})}),(0,i.jsxs)("button",{onClick:()=>{e.onFullPage()},className:"esign-option-button mr-[6px] cursor-pointer min-w-[36px] h-9 rounded-[5px] bg-white flex items-center justify-center btn-hide-mob",children:[e.state.fullPage&&(0,i.jsx)(E.Z,{title:"Exit full screen",arrow:!0,children:(0,i.jsx)("span",{className:"material-icons",children:"fullscreen_exit"})}),!e.state.fullPage&&(0,i.jsx)(E.Z,{title:"Full Screen",arrow:!0,children:(0,i.jsx)("span",{className:"material-icons",children:"crop_free"})})]}),(0,i.jsxs)("button",{className:"esign-option-button page-count cursor-pointer px-2 min-w-[124px] h-9 rounded-[5px] bg-white flex items-center justify-center",children:[(0,i.jsx)(E.Z,{title:"Previous Page",arrow:!0,children:(0,i.jsx)("span",{onClick:()=>{g(r-1),e.onPrevPage()},className:"material-icons mr-1.5",children:"arrow_upward"})}),(0,i.jsxs)("p",{className:"text-[13px] font-medium text-gray700 whitespace-nowrap",children:["Page ",null===(n=e.instance)||void 0===n?void 0:null===(t=n.UI)||void 0===t?void 0:t.getCurrentPageNumber()," of"," ",null===(o=e.instance)||void 0===o?void 0:null===(a=o.UI)||void 0===a?void 0:a.getPageCount()]}),(0,i.jsx)(E.Z,{title:"Next Page",arrow:!0,children:(0,i.jsx)("span",{onClick:()=>{e.onNextPage(),g(r+1)},className:"material-icons ml-1.5",children:"arrow_downward"})})]},r),e.state.fullPage&&(0,i.jsx)("button",{onClick:()=>{e.onCloseEsignConfirm(!0)}
1,className:"esign-option-button mr-[6px] ml-[18px] cursor-pointer min-w-[36px] h-9 rounded-[5px] bg-primaryLight text-primary flex items-center justify-center",children:(0,i.jsx)(j.Z,{style:{fontSize:21},color:"inherit"})})]})]}),(0,i.jsx)(d.Z,{className:"agreement-content-box overflow-visible bg-[#F1F5FD]",children:(0,i.jsx)("div",{className:"webviewerContainerCustom z-20 relative",children:(0,i.jsx)("div",{className:"webviewer",ref:e.viewer,style:{height:"100vh"},"data-testid":"documentArea"})})})]})})},T=n(62301),P=n(53269),B=n(59568),F=n(38401),L=n(3914),z=n(98318),M=n(11664),O=n(6918),R=n(18697),W=n(3955),U=n(1054),H=n(60581),Y=e=>{let[t,n]=(0,s.useState)(!1),[a,o]=(0,s.useState)(!1);return(0,i.jsxs)(d.Z,{position:"relative",children:[(0,i.jsx)(d.Z,{className:t?"editoptions-hover editoptionsActive":"editoptions-hover",position:"absolute",top:"0",right:"0",height:"47px",display:"flex",children:(0,i.jsx)(d.Z,{onMouseEnter:()=>{o(!0)},onMouseLeave:()=>{o(!1)},position:"absolute",top:"13px",right:"0",display:"flex",children:(0,i.jsxs)(d.Z,{className:a?"editoptions-rc editoptionsInnerActive":"editoptions-rc",color:"grey.100",display:"flex",alignItems:"center",mr:1.9,children:[!e.signer.enable_text&&(0,i.jsx)(H.Z,{color:"inherit",style:{fontSize:22},onClick:()=>{e.onEditSignerClick(e.signer)},"data-testid":"editSignerNameIcon"}),(0,i.jsx)(d.Z,{bgcolor:"white",display:"flex",children:(0,i.jsx)(Z.Z,{className:"delete-marrgin-rc",color:"inherit",style:{fontSize:22},onClick:()=>{e.onDeleteSignerClick(e.signer)},"data-testid":"deleteSignerIcon"})})]})})}),(0,i.jsxs)(T.Z,{className:"accordion-custom-rc customAccordionParent",expanded:e.signer.active,onChange:()=>{e.onAccordionClick(e.signer)},children:[(0,i.jsx)(P.Z,{"aria-controls":"panel1a-content",id:"panel1a-header",onMouseEnter:()=>{n(!0)},onMouseLeave:()=>{n(!1)},"data-testid":"mouseHoverItem",children:(0,i.jsxs)(d.Z,{display:"flex",alignItems:"center",flex:1,maxWidth:"100%",children:[(0,i.jsx)(d.Z,{bgcolor:"primary.accordionPrimaryBg",width:3,height:48,className:"accordion-border-rc"}),(0,i.jsx)(d.Z,{mr:1.6,bgcolor:"primary.".concat(e.signer.color),width:10,height:10,borderRadius:"100%",zIndex:"9"}),(0,i.jsx)(d.Z,{color:"grey.700",className:"signeraccordion-heading-rc",children:(0,i.jsx)(c.Z,{color:"inherit",variant:"body2",gutterBottom:!0,"data-testid":"signerNameInput",children:e.onPreetyName(e.signer.name)})}),(0,i.jsx)(d.Z,{color:"grey.300",className:e.signer.field_status?"accordion-customarrow-rc check-greencolor-rc":"accordion-customarrow-rc",children:(0,i.jsx)(O.Z,{color:"inherit",style:{fontSize:15}})})]})}),(0,i.jsxs)(B.Z,{children:[(0,i.jsx)(d.Z,{mb:1,textAlign:"left",children:(0,i.jsx)(w.Z,{in:e.signer.notification,children:(0,i.jsxs)(U.Z,{"data-testid":"docAlert",className:"dragdrop-alert-rc",severity:"info",onClose:()=>{e.onNotificationClose(e.signer)},children:["Now it's time to add the items below that you would like \"",e.signer.name,'" to fill out and/or sign. Just ',(0,i.jsx)("b",{children:"drag and drop!"})]})})}),(0,i.jsxs)(F.Z,{disablePadding:!0,component:"div","aria-label":"main mailbox folders",className:"signature-listing-rc",children:[(0,i.jsx)(L.ZP,{disableGutters:!0,button:!0,selected:e.onCurrentFieldSelected("signature"),children:(0,i.jsx)("a",{href:"#",onClick:e=>{e.preventDefault()},type:"button",draggable:"true",onDragStart:t=>{e.onSignerDragStart(t,e.signer,"SIGNATURE","signature")},onDragEnd:t=>{e.onSignerDragend(t,e.signer,"SIGNATURE")},children:(0,i.jsxs)(d.Z,{bgcolor:"primary.esignCenterContainerBg",className:"esign-listbox-rc",px:1.5,py:1,flex:1,borderRadius:"4px",display:"flex",alignItems:"center",height:22,children:[(0,i.jsx)(d.Z,{color:"grey.50",mr:1,display:"flex",alignItems:"center",className:"esign-listIcon-rc",children:(0,i.jsx)(M.Z,{style:{fontSize:18},color:"inherit","data-testid":"editSignatureIcon"})}),(0,i.jsx)(d.Z,{color:"grey.700",className:"esign-listtext-rc",children:(0,i.jsx)(c.Z,{color:"inherit",variant:"caption",display:"block",gutterBottom:!0,"data-testid":"signerSignBtn",children:"Signature"})})]})})}),(0,i.jsx)(L.ZP,{disableGutters:!0,button:!0,selected:e.onCurrentFieldSelected("textbox"),children:(0,i.jsx)("a",{href:"#",onClick:e=>{e.preventDefault()},type:"button",draggable:"true",onDragStart:t=>
1{e.onSignerDragStart(t,e.signer,"TEXT","textbox")},onDragEnd:t=>{e.onSignerDragend(t,e.signer,"TEXT")},children:(0,i.jsxs)(d.Z,{bgcolor:"primary.esignCenterContainerBg",className:"esign-listbox-rc",px:1.5,py:1,flex:1,borderRadius:"4px",display:"flex",alignItems:"center",height:22,children:[(0,i.jsx)(d.Z,{color:"grey.50",mr:1,display:"flex",alignItems:"center",className:"esign-listIcon-rc",children:(0,i.jsx)(R.Z,{style:{fontSize:18},color:"inherit","data-testid":"editTextboxIcon"})}),(0,i.jsx)(d.Z,{color:"grey.700",className:"esign-listtext-rc",children:(0,i.jsx)(c.Z,{color:"inherit",variant:"caption",display:"block",gutterBottom:!0,"data-testid":"signerTextboxBtn",children:"Textbox"})})]})})}),(0,i.jsx)(L.ZP,{disableGutters:!0,button:!0,selected:e.onCurrentFieldSelected("initials"),children:(0,i.jsx)("a",{href:"#",onClick:e=>{e.preventDefault()},type:"button",draggable:"true",onDragStart:t=>{e.onSignerDragStart(t,e.signer,"INITIALS","initials")},onDragEnd:t=>{e.onSignerDragend(t,e.signer,"INITIALS")},children:(0,i.jsxs)(d.Z,{bgcolor:"primary.esignCenterContainerBg",className:"esign-listbox-rc",px:1.5,py:1,flex:1,borderRadius:"4px",display:"flex",alignItems:"center",height:22,children:[(0,i.jsx)(d.Z,{color:"grey.50",mr:1,display:"flex",alignItems:"center",className:"esign-listIcon-rc",children:(0,i.jsx)(W.Z,{style:{fontSize:18},color:"inherit"})}),(0,i.jsx)(d.Z,{color:"grey.700",className:"esign-listtext-rc",children:(0,i.jsx)(c.Z,{color:"inherit",variant:"caption",display:"block",gutterBottom:!0,children:"Initials"})})]})})})]}),!e.state.continueButtonDisable&&(0,i.jsx)(d.Z,{display:"flex",className:"continue-buttoncontainer-rc",width:120,mt:.3,children:(0,i.jsx)(x.Z,{disabled:e.esign.continueDisable,variant:"contained",color:"primary",disableElevation:!0,className:"continue-btton-rc",endIcon:(0,i.jsx)(N.Z,{"data-testid":"continueBtnIcon"}),onClick:t=>{e.onContinueClick(t,e.signer)},children:"Continue"})}),e.state.continueButtonDisable&&(0,i.jsx)(d.Z,{display:"flex",className:"continue-buttoncontainer-rc",width:180,mt:.3,children:(0,i.jsx)(x.Z,{variant:"contained",color:"primary",disableElevation:!0,disabled:!0,className:"disabled-btn-rc",children:"Please wait..."})})]})]}),(0,i.jsx)(d.Z,{bgcolor:"primary.editoptionsBgColor",position:"absolute",left:"0",top:"0",className:e.signer.enable_text?"inputfieldEditActive":"inputfieldEditInActive",children:(0,i.jsxs)(z.Z,{className:"inputfield-options-rc",children:[(0,i.jsx)(d.Z,{position:"absolute",left:"17px",top:"18px",mr:1.6,bgcolor:"primary.".concat(e.signer.color),width:10,height:10,borderRadius:"100%"}),(0,i.jsx)(C.Z,{inputProps:{"data-testid":"signerInputField",form:{autocomplete:"off"}},id:"outlined-primary",variant:"outlined",color:"primary",onChange:t=>{e.onSignerInput(t,e.signer)},onBlur:t=>{e.onSignerInputSave(t,e.signer)},defaultValue:e.signer.name}),(0,i.jsxs)(d.Z,{color:"grey.100",className:"edit-options-rc",display:"flex",alignItems:"center",position:"absolute",top:"13px",right:"15px",children:[!e.signer.enable_text&&(0,i.jsx)(H.Z,{color:"inherit",style:{fontSize:22}}),(0,i.jsx)(Z.Z,{className:"delete-marrgin-rc",color:"inherit",style:{fontSize:22},onClick:()=>{e.onDeleteSignerClick(e.signer)}})]})]})})]})},G=n(26275),X=n(60383),q=n(74930),K=n.n(q),V=e=>{let[t,n]=s.useState([]),[a,o]=s.useState(null),[r,m]=s.useState([]),[p,y]=s.useState(!1),v=(0,s.useRef)(null),b=()=>{y(!1)},[N,w]=s.useState(!1),A=()=>{w(!1)},[I,E]=s.useState(!1),D=()=>{n([{id:K()()+Math.round(new Date().getTime()/1e3).toString(),value:""}]),E(!0),y(!1)},k=()=>{E(!1)};return(0,s.useEffect)(()=>{(null==v?void 0:v.current)&&v.current.focus()},[a]),(0,i.jsx)(h.ZP,{item:!0,lg:3,md:3,sm:12,xs:12,className:"height-100 custom-grid-300",children:(0,i.jsxs)(l.Z,{square:!0,elevation:0,className:"esign-leftsidebar-rc",children:[(0,i.jsxs)(d.Z,{p:2.2,component:"div",className:"esign-documentssidebar-rc",children:[(0,i.jsxs)(d.Z,{className:"esign-signerheader-rc",display:"flex",alignItems:"center",color:"grey.800",children:[(0,i.jsx)(c.Z,{color:"inherit",variant:"subtitle1",gutterBottom:!0,"data-testid":"signersAccordion",children:(0,i.jsxs)(G.Z,{href:"#",onClick:()=>{w(!0)},color:"inherit",underline:"none",className:"linkbutton-icon-rc",children:[(0,i.jsx)(d.Z,{component:"span",mr:1.3,color:"primary.main",children:(0,i.jsx)(M.Z,{style:{fontSize:19},color:"inherit","data-testid":"signersHeaderIcon"})}),"EDIT SIGNERS"]})}),(0,i.jsx)(c.Z,{color:"primary",variant:"subtitle1",gutterBottom:!0,className:"esign-newlink-rc","data-testid":"newAccordion",children:(0,i.jsxs)(G.Z,{href:"",onClick:e=>{e.preventDefault(),D()},underline:"none",color:"inherit",className:"linkbutton-icon-rc newlink-rc",children:[(0,i.jsx)(d.Z,{component:"span",mr:.5,children:(0,i.jsx)(X.Z,{style:{fontSize:19},color:"inherit","data-testid":"signersAddNewIcon"})}),"NEW"]})})]}),e.esign.signers.map(t=>
1!1!==t.status&&(0,s.createElement)(Y,{...e,key:t.id,signer:t}))]}),(0,i.jsx)(S.Z,{className:"esign-divider-rc",orientation:"vertical"}),(0,i.jsx)(g.Z,{maxWidth:"sm",open:N,onClose:A,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",className:"common-dialog-rc edit-signer-dialog",children:(0,i.jsxs)(u.Z,{children:[(0,i.jsxs)("div",{className:"edit-signer-header mb-4 flex items-center flex-wrap",children:[(0,i.jsx)("h5",{className:"text-lg leading-[26px] text-gray800 font-medium edit-signer-heading",children:"Edit Signers"}),(0,i.jsx)("div",{className:"ml-auto",children:(0,i.jsx)(c.Z,{color:"primary",variant:"subtitle1",gutterBottom:!0,className:"esign-newlink-rc font-medium",children:(0,i.jsxs)(G.Z,{href:"#",color:"inherit",onClick:e=>{e.preventDefault(),D()},className:"linkbutton-icon-rc newlink-rc font-medium",children:[(0,i.jsx)(d.Z,{component:"span",mr:.5,children:(0,i.jsx)(X.Z,{style:{fontSize:19},color:"inherit","data-testid":"signersAddNewIcon"})}),"ADD ANOTHER SIGNER"]})})})]}),e.esign.signers.map(t=>!1!==t.status&&(0,i.jsxs)("div",{className:"signer-row mb-3 flex items-center flex-wrap h-[46px]",children:[(0,i.jsxs)("div",{className:a===t.id?"signer-content selected-signer mr-3 border border-[#E0E0E0] rounded px-[18px] py-[9px] h-[46px] flex items-center flex-wrap flex-1":"signer-content mr-3 border border-[#E0E0E0] rounded px-[18px] py-[9px] h-[46px] flex items-center flex-wrap flex-1",children:[a!==t.id&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{style:{backgroundColor:"rgb(".concat(e.esign.colors[t.color],")")},className:"signer-dot w-[10px] h-[10px] rounded-full mr-3"}),(0,i.jsx)("h6",{className:"text-sm font-medium leading-4 text-gray700 flex-1 text-left pr-2",children:e.onPreetyName(t.name)}),(0,i.jsx)("div",{className:t.field_status?"ml-auto check-greencolor-rc":"ml-auto",children:(0,i.jsx)(O.Z,{className:t.field_status?"text-checkIconColor signer-config-done":"text-checkIconColor",style:{fontSize:17}})})]}),a===t.id&&(0,i.jsx)("h6",{className:"text-sm font-medium leading-4 text-gray700 flex-1 text-left pr-2",children:(0,i.jsx)(C.Z,{className:"w-full",id:"filled-number",type:"text",autoFocus:!0,ref:v,onChange:n=>{e.onSignerInput(n,t)},onBlur:n=>{e.onSignerInputSave(n,t),o(0)},defaultValue:t.name,autoComplete:"off"})})]}),(0,i.jsxs)("div",{className:"signer-options-btn ml-auto border h-[46px] border-[#E0E0E0] rounded flex items-center",children:[(0,i.jsx)("button",{className:a===t.id?"edit-signer-btn w-10 h-[46px] text-[#A9ABBE] border-r border-[#E0E0E0] bg-primaryLightBg text-primary hover:bg-primaryLightBg hover:text-primary":"edit-signer-btn w-10 h-[46px] text-[#A9ABBE] border-r border-[#E0E0E0] hover:bg-primaryLightBg hover:text-primary",children:(0,i.jsx)(H.Z,{onClick:()=>{o(t.id)},style:{fontSize:22},color:"inherit"})}),(0,i.jsx)("button",{className:"delete-signer-btn text-[#A9ABBE] w-10 h-[46px] hover:bg-primaryLightBg hover:text-primary",children:(0,i.jsx)(Z.Z,{style:{fontSize:22},onClick:()=>{e.onDeleteSignerClick(t)},color:"inherit"})})]})]})),(0,i.jsx)(x.Z,{variant:"contained",color:"primary",className:"save-close-btn",fullWidth:!0,disableElevation:!0,onClick:A,children:"SAVE & CLOSE"})]})}),(0,i.jsx)(g.Z,{maxWidth:"sm",open:I,onClose:k,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",className:"common-dialog-rc add-signer-dialog",children:(0,i.jsxs)(u.Z,{children:[(0,i.jsxs)("div",{className:"edit-signer-header mb-4 flex items-center flex-wrap",children:[(0,i.jsx)("h5",{className:"text-lg leading-[26px] text-gray800 font-medium edit-signer-heading",children:"Add New Signer"}),(0,i.jsx)("button",{className:"addsigner-dialog-close absolute right-5 top-5",onClick:k,children:(0,i.jsx)(j.Z,{style:{fontSize:22},className:"text-closeIconColor"})})]}),p&&(0,i.jsx)("div",{className:"mb-5",children:(0,i.jsx)(f.bZ,{severity:"error",className:"error-alert",children:"Please fill required fields"})}),(0,i.jsx)("div",{className:"add-signer-textfield mb-3",children:t.map(e=>void 0!==e&&(0,i.jsxs)("div",{className:"mb-[10px] relative identify-item",children:[(0,i.jsx)(C.Z,{className:"document-calculationfield-rc w-full",id:"filled-number",type:"text",InputLabelProps:{shrink:!0},placeholder:"Identify signer",inputProps:{"data-testid":"input"},error:!!r[e.id],onChange:i=>{b(),r[e.id]=!1,m([]);let s=t.findIndex(t=>t.id===e.id);n(e=>(e[s].value=i.target.value?i.target.value.trim():"",e))},variant:"outlined",autoComplete:"off"}),(0,i.jsx)("button",{className:"delete-signer-btn w-10 h-[46px]",children:(0,i.jsx)(Z.Z,{onClick:()=>{n(()=>t.filter(t=>t.id!==e.id))},style:{fontSize:22},className:"text-gray50"})})]},e.id))}),(0,i.jsx)("div",{className:"add-another-signer mb-[18px] flex items-end justify-end",children:(0,i.jsx)("div",{children:(0,i.jsx)(c.Z,{color:"primary",variant:"subtitle1",gutterBottom:!0,className:"esign-newlink-rc font-medium",children:(0,i.jsxs)(G.Z,{href:"#",color:"inherit",onClick:()=>{n(e=>[...e,{id:K()()+Math.round(new Date().getTime()/1e3).toString(),value:""}])},className:"linkbutton-icon-rc newlink-rc font-medium",children:[(0,i.jsx)(d.Z,{component:"span",mr:.5,children:(0,i.jsx)(X.Z,{style:{fontSize:19},color:"inherit","data-testid":"signersAddNewIcon"})}),"ADD ANOTHER SIGNER"]})})})}),(0,i.jsx)(x.Z,{variant:"contained",color:"primary",className:"save-close-btn",fullWidth:!0,disableElevation:!0,onClick:()=>{let n=!0,i=[],s=t.filter(e=>void 0!==e);
1s.forEach(function(e){i[e.id]=!1,e?""===e.value&&(y(!0),i[e.id]=!0,n=!1):(y(!0),i[e.id]=!0,n=!1)}),m(i),n&&(E(!1),y(!1),e.handleAddMoreSigners(s))},children:"SAVE & CLOSE"})]})})]})})},J=e=>(0,i.jsx)(h.ZP,{item:!0,lg:3,md:3,sm:12,xs:12,className:"height-100 custom-grid-300",children:(0,i.jsxs)(l.Z,{square:!0,elevation:0,className:"esign-rightsidebar-rc",children:[(0,i.jsxs)(d.Z,{pt:8.6,pl:3.7,pr:3.7,component:"div",className:"esign-documentsrightsidebar-rc",children:[(0,i.jsx)(d.Z,{component:"div",mb:3,children:(0,i.jsx)(v(),{src:b.hF,alt:""})}),(0,i.jsx)(d.Z,{mb:1.1,children:(0,i.jsx)(c.Z,{variant:"h6",gutterBottom:!0,"data-testid":"setUpTipHeader",children:"Setup Tip"})}),(0,i.jsxs)(d.Z,{color:"grey.600",children:[0===e.esign.lastIndex&&e.state.showSignerSelectScreen&&(0,i.jsx)(c.Z,{color:"inherit",variant:"body2",gutterBottom:!0,"data-testid":"docSetUpTips",children:"In this step, choose how many different signers will sign this document. In the next step, you will identify each of the signers by name (or other identifier)."}),0===e.esign.lastIndex&&!e.state.showSignerSelectScreen&&(0,i.jsx)(c.Z,{color:"inherit",variant:"body2",gutterBottom:!0,"data-testid":"docSetUpTips",children:"When someone first arrives at a document they need to sign, they identify their role as a signer. Once theyâve done that, we make it easy for them to sign by taking them only to the fields they need to sign."}),e.esign.lastIndex>0&&(0,i.jsxs)(c.Z,{color:"inherit",variant:"body2",gutterBottom:!0,"data-testid":"docSetUpTips",children:["Drag & drop fields for each signer onto the document. Optionally click any field to set advanced options."," "]})]})]}),(0,i.jsx)(S.Z,{className:"esign-divider-rc",orientation:"vertical",light:!0})]})});n(62083);var Q=n(2530),$=n(94128),ee=n(61294),et=n(81869),en=n(91979),ei=n(40517),es=n(82603);let ea=(0,en.Z)(e=>({customWidth:{maxWidth:167,lineHeight:"14px"}}));var eo=e=>{let t=ea();return(0,i.jsx)(h.ZP,{item:!0,lg:3,md:3,sm:12,xs:12,className:"height-100 custom-grid-300",children:(0,i.jsxs)(l.Z,{square:!0,elevation:0,className:"esign-rightsidebar-rc",children:[(0,i.jsx)(h.ZP,{item:!0,lg:3,md:3,sm:12,xs:12,className:"height-100 custom-grid-300",children:(0,i.jsxs)(l.Z,{square:!0,elevation:0,className:"esign-rightsidebar-rc",children:[(0,i.jsxs)(d.Z,{pt:2.2,pl:3.7,pr:3.7,component:"div",className:"esign-documentsrightsidebar-rc full-width-sidebar",children:[void 0!==e.esign.selectedAnnot.list&&"TEXT"===e.esign.selectedAnnot.list.type&&(0,i.jsx)(d.Z,{className:"esign-signerheader-rc",display:"flex",alignItems:"center",color:"grey.800",children:(0,i.jsx)(c.Z,{color:"inherit",variant:"subtitle1",gutterBottom:!0,children:(0,i.jsxs)(G.Z,{href:"#",onClick:e=>(e.preventDefault(),null),color:"inherit",className:"linkbutton-icon-rc",children:[(0,i.jsx)(d.Z,{component:"span",mr:1.3,color:"primary.main",children:(0,i.jsx)(R.Z,{style:{fontSize:19},color:"inherit"})}),"Textbox"]})})}),void 0!==e.esign.selectedAnnot.list&&"INITIALS"===e.esign.selectedAnnot.list.type&&(0,i.jsx)(d.Z,{className:"esign-signerheader-rc",display:"flex",alignItems:"center",color:"grey.800",children:(0,i.jsx)(c.Z,{color:"inherit",variant:"subtitle1",gutterBottom:!0,children:(0,i.jsxs)(G.Z,{href:"#",onClick:e=>(e.preventDefault(),null),color:"inherit",className:"linkbutton-icon-rc",children:[(0,i.jsx)(d.Z,{component:"span",mr:1.3,color:"primary.main",children:(0,i.jsx)(W.Z,{style:{fontSize:22},color:"inherit"})}),"Initials"]})})}),void 0!==e.esign.selectedAnnot.list&&"DATE"===e.esign.selectedAnnot.list.type&&(0,i.jsx)(d.Z,{className:"esign-signerheader-rc",display:"flex",alignItems:"center",color:"grey.800",children:(0,i.jsx)(c.Z,{color:"inherit",variant:"subtitle1",gutterBottom:!0,children:(0,i.jsxs)(G.Z,{href:"#",onClick:e=>(e.preventDefault(),null),color:"inherit",className:"linkbutton-icon-rc",children:[(0,i.jsx)(d.Z,{component:"span",mr:1.3,color:"primary.main",children:(0,i.jsx)(es.Z,{style:{fontSize:22},color:"inherit"})}),"Date"]})})}),void 0!==e.esign.selectedAnnot.list&&"SIGNATURE"===e.esign.selectedAnnot.list.type&&(0,i.jsx)(d.Z,{className:"esign-signerheader-rc",display:"flex",alignItems:"center",color:"grey.800",children:(0,i.jsx)(c.Z,{color:"inherit",variant:"subtitle1",gutterBottom:!0,children:(0,i.jsxs)(G.Z,{href:"#",onClick:e=>(e.preventDefault(),null),color:"inherit",className:"linkbutton-icon-rc",children:[(0,i.jsx)(d.Z,{component:"span",mr:1.3,color:"primary.main",children:(0,i.jsx)(M.Z,{style:{fontSize:19},color:"inherit"})}),"Signature"]})})}),void 0!==e.esign.selectedAnnot.list&&"CHECK"===e.esign.selectedAnnot.list.type&&(0,i.jsx)(d.Z,{className:"esign-signerheader-rc",display:"flex",alignItems:"center",color:"grey.800",children:(0,i.jsx)(c.Z,{color:"inherit",variant:"subtitle1",gutterBottom:!0,children:(0,i.jsxs)(G.Z,{href:"#",onClick:e=>(e.preventDefault(),null),color:"inherit",className:"linkbutton-icon-rc",children:[(0,i.jsx)(d.Z,{component:"span",mr:1.3,color:"primary.main",children:(0,i.jsx)(ei.Z,{style:{fontSize:22},color:"inherit"})}),"Checkbox"]})})}),(0,i.jsxs)(z.Z,{className:"input-withlabel-rc margin-input-field-rc ",children:[(0,i.jsx)(Q.Z,{children:"(Advanced Feature) Field Name"}),(0,i.jsx)(d.Z,{color:"grey.50",display:"flex",alignItems:"center",position:"absolute",right:20,top:3,zIndex:5,children:(0,i.jsx)(E.Z,{title:"This box allows advanced users to assign a name to this particular text box for the purpose of doing fancy automation.",arrow:!0,placement:"top",children:(0,i.jsx)(ee.Z,{color:"inherit",style:{fontSize:16}})})}),(0,i.jsx)(C.Z,{id:"outlined-primary",variant:"outlined",color:"primary",style:{zIndex:2},value:e.onAdvanceConfigText("name"),onChange:t=>{e.onAdvanceConfigTextChange(t,"name")}})]}),void 0!==e.esign.selectedAnnot.list&&"TEXT"===e.esign.selectedAnnot.list.type&&(0,i.jsxs)(z.Z,{className:"input-withlabel-rc !mt-3",children:[(0,i.jsx)(Q.Z,{children:"Pre-filled Text"}),(0,i.jsx)(d.Z,{color:"grey.50",display:"flex",alignItems:"center",position:"absolute",left:90,top:3,zIndex:5,children:(0,i.jsx)(E.Z,{title:"If you want to pre-fill anything in this box for the signer, do that here!",arrow:!0,placement:"top",children:(0,i.jsx)(ee.Z,{color:"inherit",style:{fontSize:16}})})}),(0,i.jsx)(C.Z,{id:"outlined-primary-default",variant:"outlined",color:"primary",style:{zIndex:2},value:e.onAdvanceConfigText("default_value"),onChange:t=>{e.onAdvanceConfigTextChange(t,"default_value")},autoComplete:"off"})]}),void 0!==e.esign.selectedAnnot.list&&"INITIALS"===e.esign.selectedAnnot.list.type&&(0,i.jsxs)(z.Z,{className:"input-withlabel-rc",children:[(0,i.jsx)(Q.Z,{children:"Pre-filled Text"}),(0,i.jsx)(d.Z,{color:"grey.50",display:"flex",alignItems:"center",position:"absolute",left:90,top:3,zIndex:5,children:(0,i.jsx)(E.Z,{title:"If you want to pre-fill anything in this box for the signer, do that here!",arrow:!0,placement:"top",children:(0,i.jsx)(ee.Z,{color:"inherit",style:{fontSize:16}})})}),(0,i.jsx)(C.Z,{id:"outlined-primary-default",variant:"outlined",color:"primary",style:{zIndex:2},value:e.onAdvanceConfigText("default_value"),onChange:t=>{e.onAdvanceConfigTextChange(t,"default_value")},autoComplete:"off"})]}),void 0!==e.esign.selectedAnnot.list&&"DATE"===e.esign.selectedAnnot.list.type&&(0,i.jsxs)(z.Z,{className:"input-withlabel-rc",children:[(0,i.jsxs)(Q.Z,{children:["Default Date",(0,i.jsx)(d.Z,{color:"grey.50",display:"flex",alignItems:"center",ml:.8,children:(0,i.jsx)(E.Z,{title:"Add name",arrow:!0,placement:"top",children:(0,i.jsx)(ee.Z,{color:"inherit",style:{fontSize:16,zIndex:2}})})})]}),(0,i.jsx)(C.Z,{id:"outlined-primary-default",variant:"outlined",color:"primary",style:{zIndex:2},value:e.onAdvanceConfigText("default_value"),onChange:t=>{e.onAdvanceConfigTextChange(t,"default_value")},autoComplete:"off"})]}),void 0!==e.esign.selectedAnnot.list&&("TEXT"===e.esign.selectedAnnot.list.type||"INITIALS"===e.esign.selectedAnnot.list.type||"DATE"===e.esign.selectedAnnot.list.type)&&(0,i.jsxs)(d.Z,{mt:1.8,textAlign:"left",mb:-1,children:[(0,i.jsx)($.Z,{control:e.checkboxLoader("readonly"),label:"Read Only"}),(0,i.jsx)(d.Z,{color:"grey.50",display:"inline-flex",alignItems:"center",ml:-1,className:"tooltip-box-rc",children:(0,i.jsx)(E.Z,{classes:{tooltip:t.customWidth},title:"Clicking 'read only' prevents any signer from changing what you've pre-filled into the box above.",arrow:!0,placement:"top",children:(0,i.jsx)(ee.Z,{color:"inherit",style:{fontSize:16,zIndex:2}})})})]}),void 0!==e.esign.selectedAnnot.list&&"CHECK"===e.esign.selectedAnnot.list.type&&(0,i.jsxs)(d.Z,{mt:1.8,textAlign:"left",mb:-1,children:[(0,i.jsx)($.Z,{control:e.checkboxLoader("readonly"),label:"Read Only"}),(0,i.jsx)(d.Z,{color:"grey.50",display:"inline-flex",alignItems:"center",ml:-1,className:"tooltip-box-rc",children:(0,i.jsx)(E.Z,{classes:{tooltip:t.customWidth},title:"Clicking 'read only' prevents any signer from changing what you've pre-filled into the box above.",arrow:!0,placement:"top",children:(0,i.jsx)(ee.Z,{color:"inherit",style:{fontSize:16,zIndex:2}})})})]}),(0,i.jsxs)(d.Z,{mb:2,textAlign:"left",children:[(0,i.jsx)($.Z,{control:e.checkboxLoader("required"),label:(void 0!==e.esign.selectedAnnot.list&&e.esign.selectedAnnot.list.type,"Required")}),(0,i.jsx)(d.Z,{color:"grey.50",display:"inline-flex",alignItems:"center",ml:-1,className:"tooltip-box-rc",children:(0,i.jsx)(E.Z,{classes:{tooltip:t.customWidth},title:"By Checking this box, you are indicating that this field must be filled out before anyone can sign the document.",arrow:!0,placement:"top",children:(0,i.jsx)(ee.Z,{color:"inherit",style:{fontSize:16,zIndex:2}})})})]}),(0,i.jsx)(d.Z,{className:"action-delete-rc",color:"white",display:"flex",borderRadius:"4px",children:(0,i.jsx)(x.Z,{onClick:e.onFieldDelete,className:"delete-button-rc",variant:"contained",color:"inherit",disableElevation:!0,startIcon:(0,i.jsx)(et.Z,{}),style:{zIndex:2},children:"DELETE THIS FIELD"})})]}),(0,i.jsx)(S.Z,{className:"esign-divider-rc",orientation:"vertical",light:!0})]})}),(0,i.jsx)(S.Z,{className:"esign-divider-rc",orientation:"vertical",light:!0})]})})},er=e=>
1{let[t,n]=s.useState(!0),[a,o]=(0,s.useState)(!1),r=()=>{o(!a)};return(0,i.jsx)(s.Fragment,{children:(0,i.jsxs)(g.Z,{maxWidth:"sm",open:!0,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",className:a?"common-dialog-rc editdoc-config-dialog dialogDeactivate":"common-dialog-rc editdoc-config-dialog dialogActivate",children:[(0,i.jsx)(u.Z,{children:(0,i.jsx)(p.Z,{id:"alert-dialog-description",children:(0,i.jsxs)(d.Z,{display:"flex",alignItems:"center",flexDirection:"column",children:[(0,i.jsx)(v(),{alt:"",src:b.h9}),(0,i.jsx)(d.Z,{color:"grey.1100",mb:.6,children:(0,i.jsx)(c.Z,{color:"inherit",variant:"h6",gutterBottom:!0,children:"Edit Document Configuration"})}),(0,i.jsx)(d.Z,{color:"grey.800",children:(0,i.jsx)(c.Z,{color:"inherit",variant:"body2",gutterBottom:!0,children:"To configure a document for eSignature please use a desktop browser."})})]})})}),(0,i.jsx)(m.Z,{children:(0,i.jsx)(d.Z,{minWidth:"130px",bgcolor:"primary.editPrimayBgLight",color:"grey.800",display:"inline-flex",borderRadius:"4px",onClick:()=>{r(),e.onCloseEsign()},children:(0,i.jsx)(x.Z,{color:"secondary",className:"edit-btn-rc",variant:"contained",id:"esign-close-mob",disableElevation:!0,children:"CLOSE"})})})]})})},el=n(12910),ed=n(95207),ec=e=>{let t=(0,ed.ac)("(max-width:".concat(el.Wk,"px)"));return(0,i.jsx)("div",{className:e.state.showLoader?"esign-maincontainer-section zero-height":"esign-maincontainer-section",children:(0,i.jsx)("div",{className:e.state.fullPage?"relative top-[0px] esign-maincontainer-outer esign-fullpage-view":"relative top-[76px] esign-maincontainer-outer",children:(0,i.jsx)("div",{className:"relative mx-auto esign-maincontainer",children:(0,i.jsx)("div",{className:"flex flex-col lg:flex-row gap-10",children:(0,i.jsxs)("div",{className:"md:block basis-[100%]",children:[!e.state.showLoader&&!e.state.fullPage&&(0,i.jsx)(l.Z,{square:!0,elevation:0,className:"esign-header-rc",children:(0,i.jsxs)(d.Z,{component:"header",display:"flex",alignItems:"center",bgcolor:"white",className:"px-[16px] py-[16px] esign-header-container",children:[0===e.esign.lastIndex&&!e.state.showSignerSelectScreen&&(0,i.jsx)("a",{href:"#",onClick:t=>{e.signerSelectScreen()},className:"flex items-center cursor-pointer",children:(0,i.jsx)(f.NA,{color:"primary",style:{fontSize:20}})}),(0,i.jsx)(d.Z,{className:"esign-logo-rc flex",mr:1.5,children:(0,i.jsx)(v(),{src:b.Ip,alt:"Client Point Logo",className:"h-[30px]"})}),(0,i.jsx)(d.Z,{className:"setupdoc-heading-rc text.darkBlue",children:(0,i.jsx)(c.Z,{variant:"h6",gutterBottom:!0,color:"inherit","data-testid":"docHeader",children:"Set Up Signature"})}),(0,i.jsx)(d.Z,{onClick:()=>{e.onCloseEsignConfirm(!0)},component:"a",className:"close-esignicon-rc ml-auto bg-primaryLight text-primary cursor-pointer rounded-[5px] p-[10px] inline-flex items-center",children:(0,i.jsx)(j.Z,{style:{fontSize:24},color:"inherit","data-testid":"docHeaderCloseIcon"})})]})}),(0,i.jsxs)(h.ZP,{container:!0,spacing:0,className:e.state.showLoader?"center-container-rc invisible ":"center-container-rc ",children:[0===e.esign.lastIndex&&!e.state.fullPage&&(0,i.jsx)(I,{...e}),e.esign.lastIndex>0&&!e.state.fullPage&&(0,i.jsx)(V,{...e}),(0,i.jsx)(_,{...e}),!1===e.esign.openAdvanceConfig&&!e.state.fullPage&&(0,i.jsx)(J,{...e}),!0===e.esign.openAdvanceConfig&&!e.state.fullPage&&(0,i.jsx)(eo,{...e})]}),(0,i.jsxs)(g.Z,{maxWidth:"xs",open:e.esign.deletePopup,onClose:e.onDeletePopupClose,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",className:"common-dialog-rc delete-dialog-rc",children:[(0,i.jsx)(u.Z,{children:(0,i.jsxs)(d.Z,{display:"flex",flexDirection:"column",children:[(0,i.jsx)("h5",{className:"text-[1.125rem] font-semibold leading-[1.313rem] text-gray900 text-left mb-[
10.625rem]",children:"Are you sure?"}),(0,i.jsx)(d.Z,{color:"grey.800",textAlign:"left",children:(0,i.jsx)(c.Z,{color:"inherit",variant:"subtitle1",gutterBottom:!0,children:'If you delete this signer, you will also delete the work you did to set up the document for this person. If you want to keep your work, consider clicking "No" and editing this signer instead.'})})]})}),(0,i.jsxs)(m.Z,{children:[(0,i.jsx)(d.Z,{color:"warning.textDark",className:"edit-signer-btn",display:"inline-flex",borderRadius:"4px",bgcolor:"primary.greyBgColor",mr:.4,onClick:()=>"handleDeleteClose",children:(0,i.jsx)(x.Z,{id:"esign-edit-signer",variant:"outlined",color:"inherit",className:"yes-btn-rc",onClick:e.onDeletePopupClose,"data-testid":"signerDeleteAlertNoBtn",children:"NO, EDIT SIGNER"})}),(0,i.jsx)(d.Z,{className:"edit-signer-btn",bgcolor:"error.main",color:"white",display:"inline-flex",borderRadius:"4px",onClick:()=>"handleDeleteClose",children:(0,i.jsx)(x.Z,{id:"esign-delete-signer",color:"inherit",className:"continue-btn-rc",variant:"contained",disableElevation:!0,onClick:e.onDeleteSigner,"data-testid":"signerDeleteAlertYesBtn",children:"Delete"})})]})]}),(0,i.jsxs)(g.Z,{maxWidth:"sm",open:e.state.openConfirmConfig,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",className:"common-dialog-rc signature-dialog",children:[(0,i.jsx)(u.Z,{children:(0,i.jsxs)(p.Z,{id:"alert-dialog-description",children:[(0,i.jsx)(d.Z,{color:"grey.1200",children:(0,i.jsx)(j.Z,{color:"inherit",className:"modal-closeicon-rc",onClick:t=>{e.onContinueEdit(t)}})}),(0,i.jsxs)(d.Z,{display:"flex",alignItems:"center",flexDirection:"column",children:[(0,i.jsx)(v(),{alt:"",src:b.w0}),(0,i.jsx)(d.Z,{color:"grey.1100",mb:1,children:(0,i.jsx)(c.Z,{color:"inherit",variant:"h6",gutterBottom:!0,children:"Congratulations!"})}),(0,i.jsx)(d.Z,{color:"grey.800",children:(0,i.jsxs)(c.Z,{color:"inherit",variant:"body2",gutterBottom:!0,children:["Your document is ready for signing. ",(0,i.jsx)("br",{}),"Click 'share' to make it available for people to sign."]})})]})]})}),(0,i.jsxs)(m.Z,{children:[(0,i.jsx)(d.Z,{minWidth:"98px",bgcolor:"primary.editPrimayBgLight",color:"grey.800",display:"inline-flex",borderRadius:"4px",children:(0,i.jsx)(x.Z,{onClick:t=>{e.onContinueEdit(t)},id:"esign-edit-signer",color:"secondary",className:"edit-btn-rc incomplete-edit-btn !text-[13px]",variant:"contained",disableElevation:!0,children:"EDIT"})}),(0,i.jsx)(d.Z,{minWidth:"105px",color:"white",display:"inline-flex",borderRadius:"4px",children:(0,i.jsx)(x.Z,{id:"esign-share-btn",onClick:()=>{e.onConfirmConfig("share")},color:"primary",className:"continue-btn-rc saveas-draft-btn",variant:"contained",disableElevation:!0,children:"SHARE"})})]})]}),(0,i.jsxs)(g.Z,{maxWidth:"sm",open:e.state.openCloseConfirm&&e.esign.lastIndex>0,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",className:"common-dialog-rc signature-dialog",children:[(0,i.jsx)(u.Z,{children:(0,i.jsxs)(p.Z,{id:"alert-dialog-description",children:[(0,i.jsx)(d.Z,{color:"grey.1200",children:(0,i.jsx)(j.Z,{color:"inherit",className:"modal-closeicon-rc",onClick:()=>{e.onCloseEsignConfirm(!1)}})}),(0,i.jsxs)(d.Z,{display:"flex",alignItems:"center",flexDirection:"column",children:[(0,i.jsx)(v(),{alt:"",src:b.cG}),(0,i.jsx)(d.Z,{color:"grey.1100",mb:1,children:(0,i.jsx)(c.Z,{color:"inherit",variant:"h6",gutterBottom:!0,children:"Youâre not quite finished!"})}),(0,i.jsx)(d.Z,{color:"grey.800",children:(0,i.jsx)(c.Z,{color:"inherit",variant:"body2",gutterBottom:!0,children:"You're almost done. If you leave now, you'll lose your work. Click \"stay\" to finish setting up your document for signature."})})]})]})}),(0,i.jsxs)(m.Z,{children:[(0,i.jsx)(d.Z,{minWidth:"98px",bgcolor:"primary.editPrimayBgLight",color:"grey.800",display:"inline-flex",borderRadius:"4px",children:(0,i.jsx)(x.Z,{id:"esign-exit-btn",onClick:e.onSaveDraft,color:"secondary",className:"edit-btn-rc incomplete-edit-btn !text-[13px]",variant:"contained",disableElevation:!0,children:"EXIT"})}),(0,i.jsx)(d.Z,{minWidth:"105px",bgcolor:"primary.main",color:"white",display:"inline-flex",borderRadius:"4px",children:(0,i.jsx)(x.Z,{onClick:()=>{e.onCloseEsignConfirm(!1)},color:"inherit",id:"esign-exit-btn",className:"continue-btn-rc saveas-draft-btn",variant:"contained",disableElevation:!0,children:"STAY"})})]})]}),(0,i.jsxs)(g.Z,{maxWidth:"xs",open:e.state.openCloseConfirm&&0===e.esign.lastIndex,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",className:"common-dialog-rc delete-dialog-rc",children:[(0,i.jsx)(u.Z,{children:(0,i.jsxs)(d.Z,{display:"flex",flexDirection:"column",children:[(0,i.jsx)("h5",{className:"text-[1.125rem] font-semibold leading-[1.313rem] text-gray900 text-left mb-[
10.625rem]",children:"Are you sure?"}),(0,i.jsx)(d.Z,{color:"grey.800",textAlign:"left",children:(0,i.jsx)(c.Z,{color:"inherit",variant:"subtitle1",gutterBottom:!0,children:"if you leave now, you will lose your work setting up this document for signature. Click âContinueâ below to keep working on this document."})})]})}),(0,i.jsxs)(m.Z,{children:[(0,i.jsx)(d.Z,{color:"warning.textDark",className:"edit-signer-btn",display:"inline-flex",borderRadius:"4px",bgcolor:"primary.greyBgColor",mr:.4,children:(0,i.jsx)(x.Z,{variant:"outlined",color:"inherit",id:"esign-exit-btn",className:"yes-btn-rc",onClick:e.onSaveDraft,"data-testid":"signerDeleteAlertNoBtn",children:"EXIT"})}),(0,i.jsx)(d.Z,{className:"edit-signer-btn",bgcolor:"error.main",color:"white",display:"inline-flex",borderRadius:"4px",children:(0,i.jsx)(x.Z,{id:"esign-continue-btn",color:"inherit",className:"continue-btn-rc bg-orange-500",variant:"contained",onClick:()=>{e.onCloseEsignConfirm(!1)},disableElevation:!0,children:"CONTINUE"})})]})]}),(0,i.jsxs)(g.Z,{maxWidth:"sm",open:!1,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",className:"common-dialog-rc",children:[(0,i.jsx)(u.Z,{children:(0,i.jsxs)(p.Z,{id:"alert-dialog-description",children:[(0,i.jsx)(d.Z,{color:"grey.1200"}),(0,i.jsx)(d.Z,{display:"flex",alignItems:"center",flexDirection:"column",children:(0,i.jsx)(d.Z,{color:"grey.800",mt:2,className:"your-documents",children:(0,i.jsxs)(c.Z,{color:"inherit",variant:"subtitle1",gutterBottom:!0,children:["Your document has changed, please review if your eSign",(0,i.jsx)("br",{})," fields are still placed properly."]})})})]})}),(0,i.jsx)(m.Z,{children:(0,i.jsx)(x.Z,{id:"esign-continue-btn",className:"review-btn-rc",variant:"contained",disableElevation:!0,color:"primary",onClick:e.onContinueButtonConfirm,children:"Continue"})})]}),t&&(0,i.jsx)(er,{...e})]})})})})})},eh=n(71286);let eg=(0,en.Z)(e=>({root:{width:"100%","& > * + *":{marginTop:"16px"}}}));var eu=e=>{let t=eg();return(0,i.jsx)(s.Fragment,{children:(0,i.jsx)(l.Z,{elevation:0,className:"splash-signature-rc",children:(0,i.jsx)(d.Z,{component:"div",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",bgcolor:"white",className:"easysignature-outercontainer-rc",children:(0,i.jsxs)(d.Z,{component:"div",textAlign:"center",className:"easy-signaturecontent-rc",children:[(0,i.jsx)(d.Z,{component:"div",className:"easy-splash-img-rc",mb:5,children:(0,i.jsx)("img",{src:b.mn.src})}),(0,i.jsx)(d.Z,{className:"flex justify-center mb-4",children:(0,i.jsx)("img",{src:b.d$.src})}),(0,i.jsxs)(c.Z,{variant:"h6",gutterBottom:!0,children:[(0,i.jsx)(d.Z,{color:"grey.500",bgcolor:"white",className:"desktop-experience-rc",children:"Loading..."}),(0,i.jsx)("div",{className:t.root,children:(0,i.jsx)("div",{className:t.root,children:(0,i.jsx)(eh.Z,{})})})]})]})})})})},em=n(14204),ex=e=>(0,i.jsx)(g.Z,{maxWidth:"sm",open:!0,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",className:"common-dialog-rc loading-dialog",children:(0,i.jsx)(u.Z,{children:(0,i.jsx)(p.Z,{id:"alert-dialog-descriptionff",children:(0,i.jsxs)(d.Z,{display:"flex",alignItems:"center",flexDirection:"column",children:[(0,i.jsx)(f.aN,{}),(0,i.jsx)(d.Z,{display:"flex",alignItems:"center",mt:2,color:"grey.1100",children:(0,i.jsx)(c.Z,{variant:"h6",color:"inherit",children:"Almost done..."})}),(0,i.jsx)(d.Z,{color:"grey.800",mt:1,children:(0,i.jsx)(c.Z,{color:"inherit",variant:"body2",gutterBottom:!0,children:"Please wait a moment while your document processes."})})]})})})}),ep=n(76635),ef=n.n(ep),ey=n(94757);class ev extends s.Component{async componentDidMount(){this.changeAnnotSize(),this.instance=await this.loadPdfTron();let e=this.instance;e.loadDocument((0,ed.GE)(this.state.esign.filepath),{extension:"pdf"});let{docViewer:t}=e,n=t.getAnnotationManager();if(e.setFitMode(e.FitMode.FitWidth),e.disableElements(["highlightToolGroupButton","underlineToolGroupButton","strikeoutToolGroupButton","squigglyToolGroupButton","stickyToolGroupButton","freeTextToolGroupButton","shapeToolGroupButton","freeHandToolGroupButton","eraserToolButton","printButton","downloadButton","header","viewControl
1sButton","leftPanelButton","searchButton","searchPanel","searchOverlay","menuButton","pageNavOverlay",e.Feature.TextSelection,"panToolButton","annotationCommentButton","stickyToolButton","highlightToolButton","annotationStyleEditButton","linkButton","annotationDeleteButton","annotationGroupButton","contextMenuPopup","textPopup"]),e.setTheme("light"),t.setSearchHighlightColors({activeSearchResult:"rgba(0,159,253,0.35)",searchResult:"rgba(255, 152, 0, 0.35)"}),e.UI.addSearchListener((e,t,n)=>{"object"==typeof n&&((null==n?void 0:n.length)>=1?r.Am.success("You have one or more matching results, which are now highlighted. Scroll down to see them."):r.Am.warning("No matching results found."))}),e.hotkeys.off(e.hotkeys.Keys.CTRL_C),e.hotkeys.off(e.hotkeys.Keys.COMMAND_C),e.hotkeys.off(e.hotkeys.Keys.CTRL_V),e.hotkeys.off(e.hotkeys.Keys.COMMAND_V),e.hotkeys.off(e.hotkeys.Keys.CTRL_Z),e.hotkeys.off(e.hotkeys.Keys.COMMAND_Z),e.hotkeys.off(e.hotkeys.Keys.CTRL_Y),e.hotkeys.off(e.hotkeys.Keys.COMMAND_SHIFT_Z),this.viewer&&this.viewer.current){let e=this.viewer.current.querySelector("iframe");e&&(this.viewerWindow=e.contentWindow)}n.on("annotationChanged",(e,i,s)=>{if("delete"===i&&"delete"===this.CurrentKeyPress){let t={...this.state.esign};e.forEach(e=>{let n=!1,i="",s=t.annotations.list.filter(t=>t.uid!==e.Id||(i=t.signer_id,n=!0,!1));if(n){t.annotations.list=s;let e=t.signers.filter(e=>e.id===i).pop(),n=0;t.annotations.list.filter(e=>(e.signer_id===i&&++n,!1)),0===n&&(e.field_status=!1);let a=t.signers.indexOf(e);t.signers[a]={...e},this.handleSaveEsign(t,null,1)}}),this.CurrentKeyPress=""}if("add"===i&&this.allowAdd){let t={...this.state.esign},i=[];e.forEach(e=>{let n=!1;t.annotations.list.filter(t=>{t.uid===e.Id&&(n=!0)}),n||i.push(e)}),n.deleteAnnotation(i)}if("modify"===i){let i={...this.state.esign};e.forEach(e=>{let s=i.annotations.list.filter(t=>t.uid===e.Id).pop(),a=i.annotations.list.indexOf(s);s.position={page:e.PageNumber,x:e.getX(),y:e.getY(),width:e.getWidth(),height:e.getHeight()},i.annotations.list[a]={...s};let o=e.getY(),r=e.getY()+e.getHeight()+4,l=t.getPageHeight(e.getPageNumber()),d=l-e.getHeight()-10;if(r>l&&e.getPageNumber()<t.getPageCount()){let t=e.getPageNumber();e.setPageNumber(t+1),e.setY(10),s.position={page:e.PageNumber,x:e.getX(),y:e.getY(),width:e.getWidth(),height:e.getHeight()},n.deselectAllAnnotations(),n.redrawAnnotation(e),n.selectAnnotation(e)}if(o<3&&e.getPageNumber()>1){let t=e.getPageNumber();e.setPageNumber(t-1),e.setY(d),s.position={page:e.PageNumber,x:e.getX(),y:e.getY(),width:e.getWidth(),height:e.getHeight()},n.deselectAllAnnotations(),n.redrawAnnotation(e),n.selectAnnotation(e)}i.annotations.list[a]={...s},this.handleSaveEsign(i,null,2)})}}),n.on("annotationSelected",(e,t)=>{if("deselected"===t&&(!ef().isEmpty(this.state.esign.selectedAnnot)||!1!==this.state.esign.openAdvanceConfig)){let e={...this.state.esign};e.selectedAnnot={},e.openAdvanceConfig=!1,this.setState({esign:e})}}),t.on("documentLoaded",()=>{if(this.viewerWindow){let e=this.viewerWindow.document.querySelector(".HeaderToolsContainer");e&&e.setAttribute("style","display:none;")}let{docViewer:t}=e;if(e.setFitMode(e.FitMode.FitWidth),document){let e=document.querySelector(".agreement-content-box > div");e&&e.setAttribute("style","height: 100% !important;");let t=document.querySelector(".webviewer");t&&t.setAttribute("style","height: 100% !important; overflow: hidden;")}let n=!0===this.state.esign.continueButton;return this.setState({showLoader:!1,continueButtonAfterLoad:n}),this.loadAnnotation(),e.annotationPopup.add({type:"actionButton",img:b.Qi.src,title:"Delete",onClick:this.handleFieldDelete}),e.annotationPopup.add({type:"actionButton",img:b.CV.src,title:"Settings",onClick:this.handleAdvanceConfig}),this.viewerWindow&&(this.viewerWindow.document.body.addEventListener("dragover",e=>(e.preventDefault(),!1)),this.viewerWindow.document.body.addEventListener("keydown",e=>{"Delete"===e.key&&(this.CurrentKeyPress="delete")}),this.viewerWindow.document.body.addEventListener("drop",e=>{let n={...this.state.esign},i={},s=t.getScrollViewElement(),a=s.scrollLeft||0,o=s.scrollTop||0,l={x:e.pageX+a,y:e.pageY+o},d=t.getDisplayModeManager().getDisplayMode().getSelectedPages(l,l);if(l.x&&null==d.first){r.Am.error("Invalid page location");return}return i.page=null!==d.first?d.first:t.getCurrentPage(),i.pageX=e.pageX,i.scrollLeft=a,i.pageY=e.pageY,i.scrollTop=o,n.annotations.draw={...i},this.handleSaveEsign(n,null,4),e.preventDefault(),!1})),null})}handleCleanEsign(){let e={...this.state.esign};return delete e.colors,delete e.errors,e}render(){return(0,i.jsxs)(s.Fragment,{children:[this.state.showLoader&&(0,i.jsx)(eu,{}),this.state.openProcess&&(0,i.jsx)(ex,{}),(0,i.jsx)(ec,{...this.props,state:this.state,esign:this.state.esign,viewer:this.viewer,instance:this.instance,signerSelectScreen:this.handleSignerSelectScreen,onSignerNumber:this.handleSignerNumber,onSignerContinue:this.handleSignerContinue,onSignerNameContinue:this.handleSignerNameContinue,onNotificationClose:this.handleNotificationClose,onAccordionCl
1ick:this.handleAccordionClick,onNewClick:this.handleNewClick,handleAddMoreSigners:this.handleAddMoreSigners,onEditSignerClick:this.handleEditSignerClick,onSignerInput:this.handleSignerInput,onSignerInputSave:this.handleSignerInputSave,onDeleteSignerClick:this.handleDeleteSignerClick,onDeletePopupClose:this.handleDeletePopupClose,onDeleteSigner:this.onDeleteSigner,onDeleteNewSigner:this.handleDeleteNewSigner,onSignerDragStart:this.handleSignerDragStart,onSignerDragend:this.handleSignerDragend,onCurrentFieldSelected:this.handleCurrentFieldSelected,onFieldDelete:this.handleFieldDelete,onAdvanceConfigText:this.handleAdvanceConfigText,onAdvanceConfigTextChange:this.handleAdvanceConfigTextChange,checkboxLoader:this.handlecheckboxLoader,onContinueClick:this.handleContinueClick,onConfirmConfig:this.handleConfirmConfig,onContinueEdit:this.handleContinueEdit,onStartOver:this.handleStartOver,onCloseEsign:this.handleCloseEsign,onContinueButtonConfirm:this.handleContinueButtonConfirm,onPreetyName:this.handlePreetyName,onSafariClose:this.handleSafariClose,onCloseEsignConfirm:this.handleCloseEsignConfirm,onSaveDraft:this.handleSaveDraft,onFullPage:this.handleFullPage,onPrevPage:this.handleOnPrevPage,onNextPage:this.handleOnNextPage,onZoomUp:this.handleOnZoomUp,onZoomDown:this.handleOnZoomDown,onSearchText:this.handleOnSearchText})]})}constructor(e){var t;super(e),t=this,this.changeAnnotSize=()=>{if(window.innerWidth<1400){let e={...this.state.annot_size};e={TEXT:{width_drag:180,height_drag:30,width:150,height:25},DATE:{width_drag:180,height_drag:30,width:150,height:25},INITIALS:{width_drag:180,height_drag:30,width:150,height:25},SIGNATURE:{width_drag:180,height_drag:45,width:150,height:40},CHECK:{width_drag:28,height_drag:28,width:14,height:14}},this.setState({annot_size:e})}window.addEventListener("resize",()=>{if(window.innerWidth<1400){let e={...this.state.annot_size};e={TEXT:{width_drag:180,height_drag:30,width:150,height:25},DATE:{width_drag:180,height_drag:30,width:150,height:25},INITIALS:{width_drag:180,height_drag:30,width:150,height:25},SIGNATURE:{width_drag:180,height_drag:45,width:150,height:40},CHECK:{width_drag:28,height_drag:28,width:14,height:14}},this.setState({annot_size:e})}})},this.loadAnnotation=()=>{let{docViewer:e}=this.instance,t=e.getAnnotationManager(),n=t.getAnnotationsList();t.deleteAnnotation(n),this.state.esign.annotations.list.map(e=>{this.DrawNewAnnotation(e.field_name,e.type,"",{readOnly:e.is_read_only,required:e.is_required},!1,e)});let i={...this.state.esign};i.openAdvanceConfig=!1,this.handleSaveEsign(i,null,5)},this.pageFinder=(e,t)=>{for(let n=t;n>=1&&e!==t;n--)n>e&&(t-=1);return t},this.DrawNewAnnotation=function(e,n,i,s){let a=!(arguments.length>4)||void 0===arguments[4]||arguments[4],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},{docViewer:r,Annotations:l}=t.instance,d=r.getAnnotationManager(),c={...t.state.esign},h=new l.RectangleAnnotation,g=t.state.annot_size[n].width,u=t.state.annot_size[n].height,m=a?g:o.position.width,x=a?u:o.position.height,p=a?c.annotations.draw.pageX+c.annotations.draw.scrollLeft:o.position.x,f=a?c.annotations.draw.pageY+c.annotations.draw.scrollTop+4:o.position.y,y=a?c.annotations.draw.page:o.position.page;y>r.getPageCount()&&(y=t.pageFinder(r.getPageCount(),y));let v=c.signers.filter(e=>e.id===o.signer_id).shift(),b=a?c.currentSigner.color:v.color,j=r.getDocument(),C=r.getDisplayModeManager().getDisplayMode(),S=j.getPageInfo(y),N=C.windowToPage({x:p,y:f},y);h.setPageNumber(y),h.X=a?(N.x||S.width/2)-m/2:p,h.Y=a?(N.y||S.height/2)-x/2:f,h.Width=m,h.Height=x,h.StrokeThickness=2,h.StrokeColor=new l.Color(c.colors[b][0],c.colors[b][1],c.colors[b][2]);let Z=null;if(a)Z=t.SaveNewAnnotation(h,n,s);else{Z=c.annotations.list.filter(e=>e.id===o.id).pop();let e=c.annotations.list.indexOf(o);Z.uid=h.Id,c.annotations.list[e]={...Z},t.setState({esign:c})}return h=t.customDataMaker(h,Z),d.deselectAllAnnotations(),d.addAnnotation(h,!0),d.redrawAnnotation(h),d.selectAnnotation(h),!0},this.customDataMaker=(e,t)=>{switch(e.setCustomData("field_name",t.field_name),e.setCustomData("signer_id",t.signer_id
1),e.setCustomData("signer_name",t.signer_name),e.setCustomData("field_id",t.uid),e.setCustomData("field_default_value",t.default_value),e.setCustomData("name",t.name),e.setCustomData("type","INITIALS"===t.type||"DATE"===t.type?"TEXT":t.type),e.setCustomData("flag",{readOnly:t.is_read_only,required:t.is_required}),e.setCustomData("border_thickness",100),e.setCustomData("border_color",e.StrokeColor),"CHECK"===t.type||"SIGNATURE"===t.type?e.setCustomData("value",""):e.setCustomData("value",t.default_value),t.type){case"TEXT":e.setContents("Textbox");break;case"INITIALS":e.setContents("Initials");break;case"DATE":e.setContents("Date");break;case"SIGNATURE":e.setContents("Signature");break;case"CHECK":e.setContents("Checkbox")}return e},this.SaveNewAnnotation=(e,t,n)=>{var i,s;let a;let o={...this.state.esign},r={id:a=(null===(i=o.annotations.list)||void 0===i?void 0:i.length)===0?1:o.annotations.list[(null===(s=o.annotations.list)||void 0===s?void 0:s.length)-1].id+1,signer_id:o.currentSigner.id,signer_name:o.currentSigner.name,uid:e.Id,name:"",default_value:"",is_read_only:n.readOnly,is_required:n.required,placeholder:"",field_name:"signer_".concat(o.currentSigner.id,"_").concat(t.toLowerCase(),"_").concat(a),type:t,"data-testid":"dragedItem",position:{page:e.PageNumber,x:e.getX(),y:e.getY(),width:e.getWidth(),height:e.getHeight()}};o.annotations.list.push(r);let l=o.signers.filter(e=>e.id===o.currentSigner.id).pop();l.field_status=!0;let d=0;o.annotations.list.filter(e=>(e.signer_id===o.currentSigner.id&&++d,!1)),0===d&&(l.field_status=!0);let c=o.signers.indexOf(l);return o.signers[c]={...l},this.handleSaveEsign(o,null,7),r},this.handleSignerSelectScreen=()=>{this.setState({showSignerSelectScreen:!0})},this.handleSignerNumber=e=>{let t=window.parseInt(e.target.value),n={...this.state.esign};return t<=0?(e.target.value=1,n.errors={has_error:!0,message:"There must be at least 1 signer"}):t>200?(e.target.value=200,n.errors={has_error:!0,message:"Only 200 Signer are Allowed"}):n.errors={has_error:!1,message:""},this.setState({esign:n}),!0},this.handleSignerContinue=(e,t)=>{let n=window.parseInt(t.current.value),i={...this.state.esign};if(isNaN(n))return e.target.value=1,i.errors={has_error:!0,message:"Invalid Value"},this.setState({esign:i}),!1;if(n<=0)return e.target.value=1,i.errors={has_error:!0,message:"There must be at least 1 signer"},this.setState({esign:i}),!1;if(n>200)return e.target.value=200,i.errors={has_error:!0,message:"Only 200 Signer are Allowed"},this.setState({esign:i}),!1;i.count=n;let s=[],a=i.colorIndex;for(let e=1;e<=i.count;e++){let t=1===e;a>20&&(a=1);let n={id:e,label:"Signer ".concat(e),name:"Signer ".concat(e),status:!0,is_complete:!1,active:t,notification:!0,color:"color_signer".concat(a),enable_text:!1,field_status:!1};++a,s.push(n)}i.signers=s,i.colorIndex=a,this.setState({showSignerSelectScreen:!1}),this.handleSaveEsign(i,null,8)},this.handleSignerNameContinue=(e,t)=>{let n={...this.state.esign},i=1;n.signers.forEach((e,t)=>{e.id>i&&(i=e.id)}),n.lastIndex=i,this.setState({esign:n})},this.handleNotificationClose=e=>{let t={...this.state.esign},n=t.signers.indexOf(e);e.notification=!1,t.signers[n]=e,this.handleSaveEsign(t,null,9)},this.handleAccordionClick=e=>{let t={...this.state.esign},n=t.signers.indexOf(e),i={...e};t.signers.map(e=>e.active=!1),i.active=!i.active,t.signers[n]={...i},t.currentSigner={...i},this.handleSaveEsign(t,null,10)},this.handleNewClick=()=>{let e={...this.state.esign};if(e.count>200)return r.Am.info("Only 200 Signer are Allowed"),!1;let t=e.colorIndex,n=++e.lastIndex,i=[...e.signers],s=e.count,a=0===s;t>20&&(t=1);let o={id:n,label:"Signer ".concat(n),name:"Signer ".concat(n),status:!0,is_complete:!1,active:a,notification:!0,color:"color_signer".concat(t),enable_text:!1,field_status:!1};return++t,i.push(o),e.signers=i,e.count=++s,e.lastIndex=n,e.colorIndex=t,this.handleSaveEsign(e,null,11),!0},this.handleAddMoreSigners=e=>{let t={...this.state.esign};if(t.count>200)return r.Am.info("Only 200 Signer are Allowed"),!1;let n=t.colorIndex,i=++t.lastIndex,s=[...t.signers],a=t.count,o=0===a;n>20&&(n=1),e.forEach(function(e,t){let r={id:i,label:"Signer ".concat(i),name:e.value,status:!0,is_complete:!1,active:o,notification:!0,color:"color_signer".concat(n),enable_text:!1,field_status:!1};++n,i++,a++,s.push(r)}),t.signers=s,t.count=a,t.lastIndex=i,t.colorIndex=n,this.handleSaveEsign(t,null,11)},this.handleEditSignerClick=e=>{let t={...this.state.esign},n=t.signers.indexOf(e);e.enable_text=!0,t.signers[n]={...e},this.handleSaveEsign(t,null,12)},this.handleSignerInput=(e,t,n)=>{var i,s,a;let o={...this.state.esign},r=o.signers.indexOf(t);return(null==e?void 0:null===(i=e.target)||void 0===i?void 0:i.value)!==""&&(null==e?void 0:null===(s=e.target)||void 0===s?void 0:s.value.replace(/\s/g,""))!==""||n?(t.name=(null==e?void 0:null===(a=e.target)||void 0===a?void 0:a.value)?e.target.value:n,o.signers[r]={...t},this.handleSaveEsign(o,null,14)):(t.name=t.label,o.signers[r]={...t},this.handleSaveEsign(o,null,13)),!0},this.handleSignerInputSave=(e,t)=>
1{let n={...this.state.esign},i=n.signers.indexOf(t);t.enable_text=!1,n.signers[i]={...t},this.handleSaveEsign(n,null,16)},this.handleDeleteSignerClick=e=>{let t={...this.state.esign};t.deletePopup=!0,t.deleteSigner={...e},this.handleSaveEsign(t,null,17)},this.handleDeletePopupClose=()=>{let e={...this.state.esign};e.deletePopup=!1,e.deleteSigner={},this.handleSaveEsign(e,null,18)},this.handleDeleteNewSigner=e=>{let{docViewer:t}=this.instance,n=t.getAnnotationManager(),i={...this.state.esign},s=i.signers.filter(t=>t.id!==e.id),a=i.annotations.list.filter(t=>(t.signer_id===e.id&&n.getAnnotationsList().filter(e=>(t.uid===e.Id&&n.deleteAnnotation([e]),!1)),t.signer_id!==e.id));i.deletePopup=!1,i.deleteSigner={},i.count=--i.count,i.signers=s,i.annotations.list=a,this.handleSaveEsign(i,null,20)},this.onDeleteSigner=()=>{let{docViewer:e}=this.instance,t=e.getAnnotationManager(),n={...this.state.esign},s={...n.deleteSigner},a=n.signers.filter(e=>e.id!==s.id),o=n.annotations.list.filter(e=>(e.signer_id===s.id&&t.getAnnotationsList().filter(n=>(e.uid===n.Id&&t.deleteAnnotation([n]),!1)),e.signer_id!==s.id));n.deletePopup=!1,n.deleteSigner={},n.count=--n.count,n.signers=a,n.annotations.list=o,r.Am.success((0,i.jsxs)("div",{children:[s.name," has been deleted successfully"]})),this.handleSaveEsign(n,null,20)},this.loadPdfTron=async()=>{if(null!=this.viewer.current)return await o()({licenseKey:"ClientPoint Inc.:OEM:ClientPoint::B+:AMS(20240908):C9F584D16AF6830BAABBC8B253084F01404F0D24361B2EAD0533243C0EA60AFAB6F5C7",path:"/webviewer/lib"},this.viewer.current)},this.handleSignerDragStart=(e,t,n,i)=>{e.target.style.opacity=.5;let s=e.target.cloneNode(!1);s.id="form-build-drag-image-copy",s.style.width=this.state.annot_size[n].width_drag-4+"px",s.style.height=this.state.annot_size[n].height_drag-2+"px",s.style.borderRadius=0,s.style.backgroundColor="rgba(211,211,211, 0.5)",s.style.border="1px solid rgba(0,165,228)",s.classList.add("border_".concat(t.color)),s.style.padding=0,s.style.position="absolute",s.style.top="-500px",s.style.left="-500px",document.body.appendChild(s),e.dataTransfer.setDragImage(s,(this.state.annot_size[n].width_drag+4)/2,this.state.annot_size[n].height_drag/2),e.dataTransfer.setData("text","");let a={...this.state.esign};for(let e in a.currentSigner={...t,type:n},a.currentFieldSelected)e===i?a.currentFieldSelected[e]=!0:a.currentFieldSelected[e]=!1;this.handleSaveEsign(a,null,21)},this.handleSignerDragend=(e,t,n)=>{this.DrawNewAnnotation("custom_name",n,"",{readOnly:!1,required:"SIGNATURE"===n},!0),e.target.style.opacity=1;let i=document.getElementById("form-build-drag-image-copy");return i&&document.body.removeChild(i),e.preventDefault(),!0},this.handleCurrentFieldSelected=e=>this.state.esign.currentFieldSelected[e],this.handleFieldDelete=()=>{let{annotManager:e}=this.instance,t=e.getSelectedAnnotations().shift(),n=this.handleAdvanceConfig(null,!0),i=n.signers.indexOf(n.selectedAnnot.signer),s=n.annotations.list.filter(e=>e.uid!==t.Id),a=0;s.filter(e=>(e.signer_id===n.selectedAnnot.signer.id&&++a,!1)),0===a&&(n.selectedAnnot.signer.field_status=!1,n.signers[i]={...n.selectedAnnot.signer},n.selectedAnnot.list={},n.selectedAnnot.obj={},n.selectedAnnot.signer={}),n.annotations.list=[...s],e.deleteAnnotation([t]),n.openAdvanceConfig=!1,this.handleSaveEsign(n,null,22)},this.handleAdvanceConfig=function(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{annotManager:i}=t.instance,s=i.getSelectedAnnotations().shift(),a={...t.state.esign};i.deselectAllAnnotations(),i.selectAnnotation(s);let o=a.annotations.list.filter(e=>e.uid===s.Id).shift(),r=a.signers.filter(e=>e.id===o.signer_id).shift();if(a.selectedAnnot.obj=s,a.selectedAnnot.list=o,a.selectedAnnot.signer=r,n)return a;a.openAdvanceConfig=!0,t.handleSaveEsign(a,null,23)},this.handleAdvanceConfigText=e=>{let t={...this.state.esign};return void 0===t.selectedAnnot.list?"":t.selectedAnnot.list[e]},this.handleAdvanceConfigTextChange=(e,t)=>
1{let n={...this.state.esign},i=n.annotations.list.indexOf(n.selectedAnnot.list);n.annotations.list[i][t]=e.target.value,n.selectedAnnot.list[t]=e.target.value,this.handleSaveEsign(n,null,24)},this.handlecheckboxLoader=e=>{let t={...this.state.esign},n=t.selectedAnnot.list,s=t.annotations.list.indexOf(n);if(void 0===n||-1===s)return(0,i.jsx)(em.Z,{checked:!1,color:"primary",id:e,onChange:()=>{this.checkboxLoaderChange(e)},name:"checkbox_".concat(e)});let a="readonly"===e?"is_read_only":"is_required",o="readonly"===e?"is_required":"is_read_only",r=!!t.annotations.list[s][o];return(0,i.jsx)(em.Z,{checked:t.annotations.list[s][a],disabled:r,color:"primary",id:e,onChange:()=>{this.checkboxLoaderChange(e)},name:"checkbox_".concat(e)})},this.checkboxLoaderChange=e=>{let t={...this.state.esign},n=t.selectedAnnot.list,i=t.annotations.list.indexOf(n),s="readonly"===e?"is_read_only":"is_required",a=!t.annotations.list[i][s];t.annotations.list[i][s]=a,t.selectedAnnot.list[s]=a,this.handleSaveEsign(t,null,26)},this.handleContinueClick=(e,t)=>{r.Am.dismiss(),this.setState({openProcess:!0,continueButtonDisable:!0});let n=this.checkSignersConfig(e,t);!0===n.isMatch?!0===n.config?window.setTimeout(()=>{this.convertAnnotToFields()},3e3):(r.Am.error("Please set up eSign fields for each signer"),this.setState({continueButtonDisable:!1,openProcess:!1})):t.field_status&&r.Am.success((0,i.jsxs)("div",{children:["You've successfully set up this document for \"",t.name,'" to sign.']}))},this.checkSignersConfig=(e,t)=>{var n;let i={...this.state.esign},s=i.signers.indexOf(t),a=(null===(n=i.signers)||void 0===n?void 0:n.length)-1,o=i.signers[s],r=i.signers[a];if(o.id===r.id){let e=!0;return i.signers.filter(t=>{!1===t.field_status&&(e=!1)}),{isMatch:!0,config:e}}{i.signers.map(e=>e.active=!1);let e=i.signers[s+1];return e.active=!e.active,i.signers[s+1]={...e},i.currentSigner={...e},this.handleSaveEsign(i,null,29),this.setState({continueButtonDisable:!1,openProcess:!1}),{isMatch:!1,config:null}}},this.handleContinueEdit=async e=>{this.setState({openProcess:!0}),this.loadAnnotation();let t={...this.state.esign};t.continueDisable=!1,this.setState({continueButtonDisable:!1,openProcess:!1,openConfirmConfig:!1,esign:t})},this.convertAnnotToFields=()=>{this.allowAdd=!1;let{Annotations:e,annotManager:t}=this.instance,{WidgetFlags:n}=e,i=t.getFieldManager();this.loadAnnotation();let s=t.getAnnotationsList(),a=[],o=[];return s.forEach((s,r)=>{let l,d;if(""!==s.getCustomData("type")&&null!==s.Subject){{let i=this.state.esign.annotations.list.filter(e=>e.uid===s.Id).pop();s=this.customDataMaker(s,i);let o=new n;if(s.getCustomData("flag").readOnly&&o.set(n.READ_ONLY,!0),s.getCustomData("flag").required&&"CHECK"!==s.getCustomData("type")&&o.set(n.REQUIRED,!0),a.push(s),"TEXT"===s.getCustomData("type")||"INITIALS"===s.getCustomData("type")||"DATE"===s.getCustomData("type"))d=new e.Forms.Field(s.getCustomData("field_name"),{type:"Tx",value:s.getCustomData("field_default_value"),flags:o}),l=new e.TextWidgetAnnotation(d);else if("SIGNATURE"===s.getCustomData("type"))d=new e.Forms.Field(s.getCustomData("field_name"),{type:"Sig",flags:o}),l=new e.SignatureWidgetAnnotation(d,{appearance:"_DEFAULT",appearances:{_DEFAULT:{Normal:{data:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjEuMWMqnEsAAAANSURBVBhXY/j//z8DAAj8Av6IXwbgAAAAAElFTkSuQmCC",offset:{x:100,y:100}}}}});else if("CHECK"===s.getCustomData("type")){o.set(n.EDIT,!0);let t=new e.Font({name:"Helvetica"});d=new e.Forms.Field(s.getCustomData("field_name"),{type:"Btn",value:!0===s.getCustomData("flag").required?"Yes":"",flags:o,font:t}),l=new e.CheckButtonWidgetAnnotation(d,{appearance:!0===s.getCustomData("flag").required?"Yes":"",appearances:{Off:{},Yes:{}}})}else{t.deleteAnnotation(s,{imported:!1,force:!0});return}}l.PageNumber=s.getPageNumber(),l.X=s.getX(),l.Y=s.getY(),l.Width=s.getWidth(),l.Height=s.getHeight(),l.setCustomData("signer_id",s.getCustomData("signer_id")),l.setCustomData("signer_name",s.getCustomData("signer_name")),l.setCustomData("field_id",s.getCustomData("field_id")),l.setCustomData("field_name",s.getCustomData("field_name")),l.setCustomData("field_default_value",s.getCustomData("field_default_value")),l.setCustomData("field_flag",s.getCustomData("flag")),l.setCustomData("border_thickness",s.getCustomData("border_thickness")),l.setCustomData("border_color",s.getCustomData("border_color")),"CHECK"===s.getCustomData("type")||"SIGNATURE"===s.getCustomData("type")?l.setCustomData("field_value",""):l.setCustomData("field_value",s.getCustomData("value")),l.StrokeThickness=s.StrokeThickness,l.StrokeColor=s.StrokeColor,e.WidgetAnnotation.getCustomStyles=t=>t instanceof e.TextWidgetAnnotation?{"background-color":"#a5c7ff",color:"white","font-size":"20px",border:"2px s
1olid rgba(".concat(l.StrokeColor.R,",").concat(l.StrokeColor.G,",").concat(l.StrokeColor.B,",").concat(l.StrokeColor.A,") !importent")}:t instanceof e.SignatureWidgetAnnotation?{border:"2px solid rgba(".concat(l.StrokeColor.R,",").concat(l.StrokeColor.G,",").concat(l.StrokeColor.B,",").concat(l.StrokeColor.A,") !importent")}:void 0,e.WidgetAnnotation.getCustomStyles(l),t.addAnnotation(l),i.addField(d),o.push(l)}}),t.deleteAnnotations(a,{force:!0}),t.exportAnnotations({links:!1,fields:!0}).then(async e=>{this.loadAnnotation(),this.handleSaveContentMeta(e)})},this.handleStartOver=e=>{let{docViewer:t}=this.instance,n=t.getAnnotationManager(),i=n.getAnnotationsList();n.deleteAnnotation(i);let s={...this.state.esign};return s.annotations.list=[],s.isLocalEdit=!1,s.isAdvanceMerge=!1,this.handleSaveEsign(s),!0},this.handleConfirmConfig=e=>{"continue"===e&&this.handleCloseEsign(),"share"===e&&(this.setState({openConfirmConfig:!1,continueButtonDisable:!1}),this.props.onContinue())},this.handleCloseEsignConfirm=e=>{!0===e?this.setState({openCloseConfirm:!0}):this.setState({openCloseConfirm:!1})},this.handleSaveDraft=()=>{this.handleCloseEsign()},this.handleCloseEsign=()=>{this.viewerWindow=null,this.instance=null,this.setState({esign:null,openConfirmConfig:!1,openCloseConfirm:!1}),this.props.closeDocument()},this.handleContinueButtonConfirm=()=>{let e={...this.state.esign};e.continueButton=!1,this.setState({esign:e,continueButtonAfterLoad:!1})},this.handlePreetyName=e=>(null==e?void 0:e.length)>17?e.substring(0,20)+"...":e,this.handleSaveContentMeta=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=new DOMParser().parseFromString(e,"text/xml"),i=n.getElementsByTagName("widget");if((null==i?void 0:i.length)>0)for(let e=0;e<(null==i?void 0:i.length);e++)i[e].setAttribute("name",i[e].getAttribute("field")||"");let s=new XMLSerializer().serializeToString(n),a=t.handleCleanEsign(),o=await ed.zk.post(el.eb+"/utility/aws/file/upload",{entityName:ey.JH.Content,entityId:t.state.esign.contentId,filename:"form_fields.xfdf",fileContent:s});if(o.data.isSuccess){if(""===t.state.esignXFDFMetaID){let e=t.state.user.userId,n={meta:[{contentId:t.state.esign.contentId,name:ey.ch.ESignConfiguration,value:JSON.stringify(a),createdBy:e},{contentId:t.state.esign.contentId,name:ey.ch.SignerConfigurationFiles,value:JSON.stringify([o.data.data.filePath]),createdBy:e}]};ed.zk.post(el.eb+"/content/metadata",JSON.stringify(n)).then(e=>{t.allowAdd=!0;let n=e.data.data[0].contentMetaId,i=e.data.data[1].contentMetaId;t.setState({esignConfigMetaID:n,esignXFDFMetaID:i,openProcess:!1,openConfirmConfig:!0})}).catch(function(){})}else{let e=t.state.user.userId,n={contentMetaId:t.state.esignConfigMetaID,name:ey.ch.ESignConfiguration,value:JSON.stringify(a),modifiedBy:e};ed.zk.patch(el.eb+"/content/metadata",JSON.stringify(n)).then(n=>{let i={contentMetaId:t.state.esignXFDFMetaID,name:ey.ch.SignerConfigurationFiles,value:JSON.stringify([o.data.data.filePath]),modifiedBy:e};ed.zk.patch(el.eb+"/content/metadata",JSON.stringify(i)).then(e=>{t.allowAdd=!0,t.setState({openProcess:!1,openConfirmConfig:!0})}).catch(function(){})}).catch(function(){})}}},this.handleSaveEsign=async function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;arguments.length>2&&void 0!==arguments[2]&&arguments[2];let i={...e};t.setState({esign:i}),null!==n?t.setState({esign:e,openConfirmConfig:n}):t.setState({esign:e}),localStorage.setItem("esign",JSON.stringify(e))},this.handleFullPage=()=>{this.setState({fullPage:!this.state.fullPage})},this.handleOnPrevPage=()=>{this.instance.UI.goToPrevPage()},this.handleOnNextPage=()=>{this.instance.UI.goToNextPage()},this.handleOnZoomUp=()=>{this.zoomFactor=1.25*this.zoomFactor,this.instance.UI&&this.instance.UI.setZoomLevel(1.25*this.instance.UI.getZoomLevel())},this.handleOnZoomDown=()=>{this.zoomFactor=.8*this.zoomFactor,this.instance&&this.instance.UI&&this.instance.UI.setZoomLevel(.8*this.instance.UI.getZoomLevel())},this.handleOnSearchText=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,{docViewer:i}=t.instance;n?"up"===n?t.instance.UI.searchText(e,{searchUp:!0}):t.instance.UI.searchText(e,{searchUp:!1}):""!==e?t.instance.UI.searchTextFull(e):i.clearSearchResults()},this.viewer=(0,s.createRef)(),this.viewerWindow=null,this.instance=null,this.zoomFactor=1,this.allowAdd=!0,this.CurrentKeyPress="",this.state={esign:this.props.esign,user:this.props.user,openConfirmConfig:!1,openCloseConfirm:!1,openProcess:!1,showLoader:!0,continueButtonAfterLoad:!1,continueButtonDisable:!1,showSignerSelectScreen:!0,esignConfigMetaID:"",esignXFDFMetaID:"",fullPage:!1,annot_size:{TEXT:{width_drag:300,height_drag:50,width:150,height:25},DATE:{width_drag:300,height_drag:50,width:150,height:25},INITIALS:{width_drag:300,height_drag:50,width:150,height:25},SIGNATURE:{width_drag:300,height_drag:80,width:150,height:40},CHECK:{width_drag:28,height_drag:28,width:14,height:14}}}}}var eb=ev},53260:function(){}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.