1import{r as a,j as e}from"./index-DTlGp7Od.js";import{D as n,l as r}from"./docusignDigitalSignup-DsPoUdCz.js";function m(){return a.useEffect(()=>{if(sessionStorage.getItem(n)==="true"){sessionStorage.removeItem(n),r().then(()=>{window.DSDigitalSignup?.notifySignupActivation(!0)}).catch(o=>{console.error("[DocuSign Callback] Failed to notify referral activation:",o)});return}const i={type:"docusign-connected",success:!0,timestamp:Date.now()},s=()=>{if(window.opener&&!window.opener.closed)try{window.opener.postMessage(i,window.location.origin),console.log("[DocuSign Callback] Connection notification sent to parent")}catch(o){console.error("[DocuSign Callback] Failed to notify parent:",o)}},t=()=>{try{window.close()}catch{}try{window.location.replace("about:blank"),setTimeout(()=>{try{window.close()}catch{}},50)}catch{}try{window.open("","_self"),window.close()}catch{}};s(),setTimeout(s,50),setTimeout(s,100),t(),setTimeout(t,100),setTimeout(t,300),setTimeout(t,600),setTimeout(t,1e3),setTimeout(t,2e3);const c=setTimeout(()=>{const o=document.getElementById("status-message");o&&!window.closed&&(o.textContent="Connection successful! You can close this window now.")},3e3);return()=>clearTimeout(c)},[]),e.jsx("div",{className:"flex items-center justify-center min-h-screen bg-slate-50",children:e.jsxs("div",{className:"text-center p-8",children:[e.jsx("div",{className:"w-16 h-16 mx-auto mb-4 bg-green-500 rounded-full flex items-center justify-center",children:e.jsx("svg",{className:"w-8 h-8 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Success",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),e.jsx("h1",{className:"text-xl font-semibold text-slate-900 mb-2",children:"Successfully Connected!"}),e.jsx("p",{id:"status-message",className:"text-sm text-slate-600",children:"This window will close automatically..."})]})})}export{m as DocuSignCallback,m as default}; 2//# sourceMappingURL=DocuSignCallback-VcmbhoWR.js.map
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.