PageSourceSearch

https://elevate-ip.ca/assets/MembersList-BzCxOuaV.js

js elevate-ip.ca collected 2026-10-08 06:31:17 UTC 57,660 bytes, 6 lines download raw bytes

1import{a4 as Ia,r as g,j as e,a5 as Ma,a6 as Tt,a7 as de,a8 as pe,a9 as me,aa as ue,ab as K,ac as kt,ad as Ta,ae as ka,af as Ea,ag as Oa,ah as Ut,ai as La,aj as Et,ak as Ra,B as xe,al as Ee,am as Fa,an as Ga,ao as W,ap as C,aq as za,ar as $a,as as Ha,at as Ba,au as Va,av as Ua,aw as Ka,ax as qa,ay as Wa,az as dt,aA as _a,aB as Qa,aC as Ya,aD as Ot,T as Xa,L as Za,aE as Ja,u as en,$ as tn,A as an,aF as nn,aG as sn,aH as rn,k as on,aI as ln,aJ as lt,aK as cn,aL as it,aM as dn,O as we,aN as pn,aO as mn,aP as un,aQ as xn,aR as hn,M as ke,F as fn,aS as gn,aT as yn,aU as Lt,aV as vn,aW as wn,aX as jn,aY as Sn,aZ as Nn}from"./index-BsxwfThh.js";import{g as bn}from"./applicationService-0nEKkDBL.js";import{s as Pn}from"./emailService-DZ_hoscm.js";import{t as An,u as Cn,a as Dn}from"./storedValues-C6u25TO7.js";import{L as In}from"./LegacyBadge-5cYDFkrV.js";import{s as j,P as Mn}from"./PdfBrandedHeader-BjrWGj_Z.js";import{g as Tn}from"./regionBranding-CboCiDYR.js";import{D as kn}from"./download-lLI0VG1J.js";import"./rejectionService-B8GKw7v0.js";import"./Communitech-Logo-RGB-Primary-DmJ2L545.js";/**
2 * @license lucide-react v1.7.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const En=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],On=Ia("refresh-cw",En),Ln=({filtersObj:a,searchTerm:t,filtersExpanded:n,activeFilterCount:s,userRegion:o,currentDate:r,ownerOptions:i,ipeOptions:u,serviceProviderOptions:h,onFilterChange:p,onSearchChange:d,onReset:f,onToggleExpanded:y})=>{var M;const P=g.useRef(null);return e.jsxs("div",{className:"w-full bg-white border border-borders rounded-lg p-4 mb-4 relative z-40",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsxs("button",{onClick:y,className:"text-sm font-medium text-text flex items-center gap-2 cursor-pointer hover:text-cSecondaryGreen transition-colors",children:[e.jsx("svg",{className:`h-4 w-4 transition-transform duration-200 ${n?"rotate-90":""}`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:e.jsx("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})}),"Filters",s>0&&e.jsx("span",{className:"inline-flex items-center justify-center w-5 h-5 text-xs font-semibold text-white bg-cPrimaryGreen rounded-full",children:s})]}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ma,{checked:a.needsAction,onCheckedChange:m=>p("needsAction",m)}),e.jsx("label",{className:"text-sm text-text/70 whitespace-nowrap",children:"Needs my action"})]}),s>0&&e.jsx("button",{onClick:f,className:"text-sm text-cPrimaryGreen hover:text-cSecondaryGreen transition-colors",children:"Clear all"})]})]}),e.jsxs("div",{className:`relative${n?" mb-3":""}`,children:[e.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:e.jsx("svg",{className:"h-4 w-4 text-text/40",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:e.jsx("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"})})}),e.jsx("input",{type:"text",value:t,onChange:m=>d(m.target.value),placeholder:"Search by company, contact, email, status...",className:"w-full pl-9 pr-9 py-2 text-sm border border-borders rounded focus:outline-none focus:ring-2 focus:ring-cPrimaryGreen"}),t&&e.jsx("button",{onClick:()=>d(""),className:"absolute inset-y-0 right-0 pr-3 flex items-center text-text/40 hover:text-text/70",children:e.jsx("svg",{className:"h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:e.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})})]}),e.jsx("div",{className:"overflow-hidden transition-[max-height] duration-300 ease-in-out",style:{maxHeight:n?`${((M=P.current)==null?void 0:M.scrollHeight)??300}px`:"0px"},children:e.jsxs("div",{ref:P,className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 pb-1",children:[Tt(o||"").length>1&&e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("label",{className:"text-xs font-medium text-text/70",children:"Delivery Partner"}),e.jsxs(de,{value:a.deliveryPartner,onValueChange:m=>p("deliveryPartner",m),children:[e.jsx(pe,{className:"text-sm",children:e.jsx(me,{})}),e.jsxs(ue,{children:[e.jsx(K,{value:"All",children:"All"}),Tt(o||"").map(m=>e.jsx(K,{value:m,children:kt(m)},m))]})]})]}),e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("label",{className:"text-xs font-medium text-text/70",children:"Application Phase"}),e.jsxs(de,{value:a.applicationPhase,onValueChange:m=>p("applicationPhase",m),children:[e.jsx(pe,{className:"text-sm",children:e.jsx(me,{})}),e.jsxs(ue,{children:[e.jsx(K,{value:"All",children:"All Stages"}),Ta.filter(m=>m.id!=="other").map(m=>e.jsxs(ka,{children:[e.jsx(Ea,{className:"text-xs font-semibold text-text/50 uppercase tracking-wider",children:m.label}),e.jsxs(K,{value:`phase:${m.id}`,children:["All ",m.label]}),m.stageIds.map(b=>e.jsx(K,{value:b,children:Oa(b)},b))]},m.id))]})]})]}),Ut(a.applicationPhase)&&e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("label",{className:"text-xs font-medium text-text/70",children:"SoW Status"}),e.jsxs(de,{value:a.sowSubstatus,onValueChange:m=>p("sowSubstatus",m),children:[e.jsx(pe,{className:"text-sm",children:e.jsx(me,{})}),e.jsx(ue,{children:La().map(m=>e.jsx(K,{value:m,children:m},m))})]})]}),e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("label",{className:"text-xs font-medium text-text/70",children:"Min Days in Stage"}),e.jsx("input",{type:"number",onWheel:m=>m.currentTarget.blur(),min:0,value:a.minAgingDays||"",onChange:m=>p("minAgingDays",parseInt(m.target.value,10)||0),placeholder:"0 = All",className:"text-sm border border-borders rounded px-3 py-2 focus:outline-none focus:ring-2 focus:ring-cPrimaryGreen"})]}),e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("label",{className:"text-xs font-medium text-text/70",children:"Account Owner"}),e.jsxs(de,{value:a.accountOwner,onValueChange:m=>p("accountOwner",m),children:[e.jsx(pe,{className:"text-sm",children:e.jsx(me,{})}),e.jsxs(ue,{children:[e.jsx(K,{value:"All",children:"All"}),i.map(m=>e.jsx(K,{value:m,children:m},m))]})]})]}),e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("label",{className:"text-xs font-medium text-text/70",children:"IPA"}),e.jsxs(de,{value:a.ipe,onValueChange:m=>p("ipe",m),children:[e.jsx(pe,{className:"text-sm",children:e.jsx(me,{})}),e.jsxs(ue,{children:[e.jsx(K,{value:"All",children:"All"}),u.map(m=>e.jsx(K,{value:m,children:m},m))]})]})]}),e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("label",{className:"text-xs font-medium text-text/70",children:"Service Provider"}),e.jsxs(de,{value:a.serviceProvider,onValueChange:m=>p("serviceProvider",m),children:[e.jsx(pe,{className:"text-sm",children:e.jsx(me,{})}),e.jsxs(ue,{children:[e.jsx(K,{value:"All",children:"All"}),h.map(m=>e.jsx(K,{value:m,children:m},m))]})]})]}),e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("label",{className:"text-xs font-medium text-text/70",children:"Min Application Date"}),e.jsx(Et,{id:"filter-min-date",selected:a.minDate,onChange:m=>p("minDate",m),dateFormat:"MMM d, yyyy",placeholderText:"No minimum",maxDate:r,isClearable:!0,className:"text-sm border border-borders rounded px-3 py-2 w-full focus:outline-none focus:ring-2 focus:ring-cPrimaryGreen",showYearDropdown:!0,yearDropdownItemNumber:10})]}),e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("label",{className:"text-xs font-medium text-text/70",children:"Max Application Date"}),e.jsx(Et,{id:"filter-max-date",selected:a.maxDate,onChange:m=>p("maxDate",m),dateFormat:"MMM d, yyyy",maxDate:r,placeholderText:"No maximum",isClearable:!0,className:"text-sm border border-borders rounded px-3 py-2 w-full focus:outline-none focus:ring-2 focus:ring-cPrimaryGreen",showYearDropdown:!0,yearDropdownItemNumber:10})]})]})}),s>0&&e.jsxs("div",{className:"flex flex-wrap gap-2 mt-3 pt-3 border-t border-borders",children:[a.needsAction&&e.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-cPrimaryGreen/10 text-cPrimaryGreen text-xs rounded",children:["Needs my action",e.jsx("button",{onClick:()=>p("needsAction",!1),className:"hover:text-cSecondaryGreen",children:"×"})]}),a.applicationPhase!=="All"&&e.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-cPrimaryGreen/10 text-cPrimaryGreen text-xs rounded",children:["Phase: ",Ra(a.applicationPhase),e.jsx("button",{onClick:()=>p("applicationPhase","All"),className:"hover:text-cSecondaryGreen",children:"×"})]}),a.sowSubstatus!=="All"&&e.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-cPrimaryGreen/10 text-cPrimaryGreen text-xs rounded",children:["SoW: ",a.sowSubstatus,e.jsx("button",{onClick:()=>p("sowSubstatus","All"),className:"hover:text-cSecondaryGreen",children:"×"})]}),a.minAgingDays>0&&e.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-cPrimaryGreen/10 text-cPrimaryGreen text-xs rounded",children:["Min Days in Stage: ",a.minAgingDays,"+",e.jsx("button",{onClick:()=>p("minAgingDays",0),className:"hover:text-cSecondaryGreen",children:"×"})]}),a.minDate&&e.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-cPrimaryGreen/10 text-cPrimaryGreen text-xs rounded",children:["From: ",a.minDate.toLocaleDateString(),e.jsx("button",{onClick:()=>p("minDate",null),className:"hover:text-cSecondaryGreen",children:"×"})]}),a.maxDate&&e.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-cPrimaryGreen/10 text-cPrimaryGreen text-xs rounded",children:["To: ",a.maxDate.toLocaleDateString(),e.jsx("button",{onClick:()=>p("maxDate",null),className:"hover:text-cSecondaryGreen",children:"×"})]}),a.deliveryPartner!=="All"&&e.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-cPrimaryGreen/10 text-cPrimaryGreen text-xs rounded",children:["Region: ",kt(a.deliveryPartner),e.jsx("button",{onClick:()=>p("deliveryPartner","All"),className:"hover:text-cSecondaryGreen",children:"×"})]}),a.accountOwner!=="All"&&e.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-cPrimaryGreen/10 text-cPrimaryGreen text-xs rounded",children:["Owner: ",a.accountOwner,e.jsx("button",{onClick:()=>p("accountOwner","All"),className:"hover:text-cSecondaryGreen",children:"×"})]}),a.ipe!=="All"&&e.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-cPrimaryGreen/10 text-cPrimaryGreen text-xs rounded",children:["IPE: ",a.ipe,e.jsx("button",{onClick:()=>p("ipe","All"),className:"hover:text-cSecondaryGreen",children:"×"})]}),a.serviceProvider!=="All"&&e.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-cPrimaryGreen/10 text-cPrimaryGreen text-xs rounded",children:["SP: ",a.serviceProvider,e.jsx("button",{onClick:()=>p("serviceProvider","All"),className:"hover:text-cSecondaryGreen",children:"×"})]}),t&&e.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-cPrimaryGreen/10 text-cPrimaryGreen text-xs rounded",children:['Search: "',t,'"',e.jsx("button",{onClick:()=>d(""),className:"hover:text-cSecondaryGreen",children:"×"})]})]})]})},Rn=({selectedUsers:a,exportSections:t,isExportLoading:n,onClose:s,onExport:o,onSectionChange:r})=>e.jsxs("div",{className:"flex flex-col p-4 gap-6 w-full",children:[e.jsx("p",{className:"bodyLarger",children:a.length>0?`Exporting ${a.length} selected ${a.length===1?"company":"companies"}:`:"Exporting all companies (matching filters):"}),e.jsx("p",{className:"text-sm text-text/60",children:"Select which data sections to include:"}),e.jsxs("label",{className:"flex items-start gap-3 cursor-pointer",children:[e.jsx("input",{type:"checkbox",checked:t.application,onChange:()=>r("application"),className:"mt-1"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold",children:"Application & Company Info"}),e.jsx("p",{className:"text-sm text-text/70",children:"Company name, industry, FTE, revenue, status, cohort, scores..."})]})]}),e.jsxs("label",{className:"flex items-start gap-3 cursor-pointer",children:[e.jsx("input",{type:"checkbox",checked:t.contact,onChange:()=>r("contact"),className:"mt-1"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold",children:"Founder Contact Details"}),e.jsx("p",{className:"text-sm text-text/70",children:"Contact name, email, phone"})]})]}),e.jsxs("label",{className:"flex items-start gap-3 cursor-pointer",children:[e.jsx("input",{type:"checkbox",checked:t.survey,onChange:()=>r("survey"),className:"mt-1"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold",children:"After-Service Survey"}),e.jsx("p",{className:"text-sm text-text/70",children:"One column per survey question. Values repeat across a company's SoW rows."})]})]}),e.jsxs("label",{className:"flex items-start gap-3 cursor-pointer",children:[e.jsx("input",{type:"checkbox",checked:t.sow,onChange:()=>r("sow"),className:"mt-1"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold",children:"Statement of Work (SoW)"}),e.jsx("p",{className:"text-sm text-text/70",children:"Service provider, tier, product, category, amounts"})]})]}),e.jsxs("label",{className:"flex items-start gap-3 cursor-pointer",children:[e.jsx("input",{type:"checkbox",checked:t.invoice,onChange:()=>r("invoice"),className:"mt-1"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold",children:"Invoice Details"}),e.jsx("p",{className:"text-sm text-text/70",children:"Product, status, amounts, filing numbers, approval dates"})]})]}),(t.sow||t.invoice)&&e.jsx("p",{className:"text-sm text-text/60 italic border-t border-borders pt-3",children:"SoW and Invoice sections produce multiple rows per company (one per item)."}),e.jsxs("div",{className:"flex gap-4 justify-end pt-2",children:[e.jsx(xe,{buttonType:"secondary",buttonText:"Cancel",actionHandler:s}
6),e.jsx(xe,{buttonType:"primary",buttonText:n?"Exporting...":"Export",disabled:n,actionHandler:o})]})]}),Kt="—";function be(a,t,n="eng"){const s=[];for(const[o,r]of Object.entries(a)){if(!Fn(r,t)||r.inputType==="htmlParser"||r.inputType==="undefined")continue;const i=n==="fr"&&r.frLabel?r.frLabel:r.label,{label:u,guidance:h}=$n(i);s.push({label:u,guidance:h,value:Gn(r,t==null?void 0:t[o],n),multiline:r.inputType==="textarea"||void 0})}return s}function Fn(a,t){const n=a.conditionalRenderDefinition;if(!n)return!0;const s=t==null?void 0:t[n.fieldKey];return s===void 0?!1:!!s==(n.renderWhenTrue!==!1)}function Gn(a,t,n){if(t==null||t==="")return Kt;switch(a.inputType){case"boolean":case"checkbox":return ct(t,n);case"dropdownSelect":case"customDropdownSelect":return typeof t=="boolean"?ct(t,n):qt(a,String(t),n);case"multiSelect":case"multiSelectNarrow":case"customMultiSelect":case"customMultiSelectNarrow":return Rt(a,t,n);case"date":return zn(t);default:return Array.isArray(t)?Rt(a,t,n):typeof t=="boolean"?ct(t,n):String(t)}}function ct(a,t){const n=a===!0||a==="yes"||a==="true";return t==="fr"?n?"Oui":"Non":n?"Yes":"No"}function Rt(a,t,n){const s=Array.isArray(t)?t:[t];return s.length===0?Kt:s.map(o=>qt(a,String(o),n)).join("; ")}function qt(a,t,n){var o,r;const s=(r=(o=a.additionalData)==null?void 0:o.selectionData)==null?void 0:r.find(i=>i.value===t);return s?n==="fr"&&s.frText?s.frText:s.text:t}function zn(a){try{const t=new Date(a);return isNaN(t.getTime())?String(a):Ee(t,"MMM do yyyy")}catch{return String(a)}}function Be(a){return a.replace(/<\/?(?:br|p|div|li|ul|ol|h[1-6])(?:\s[^>]*)?\/?>/gi," ").replace(/<[^>]*>/g,"").replace(/\s+/g," ").trim()}const Ft=20;function $n(a){const t=a.match(/<br\s*\/?>/i);if(t&&t.index!==void 0){const o=Be(a.slice(0,t.index)),r=Be(a.slice(t.index));return o&&r.length>=Ft?{label:o,guidance:r}:{label:Be(a)}}const n=Be(a),s=[];for(const o of["? ",". "]){let r=n.indexOf(o);for(;r>0;)s.push(r),r=n.indexOf(o,r+1)}s.sort((o,r)=>o-r);for(const o of s){const r=n.slice(0,o+1),i=n.slice(o+2).trim();if(i.length>=Ft&&Hn(r))return{label:r,guidance:i}}return{label:n}}function Hn(a){let t=0;for(const n of a)n==="("?t++:n===")"&&t--;return t===0}const Bn={eng:{title:"Program Application",pointOfContact:"Point of Contact",personalInfo:"Personal Info",address:"Address",companyInfo:"Company Info",needHelpWith:"Need Help With",legacyData:"Legacy Data (from a previous application version)",patentActivities:"Patent Activities",patentActivitiesOther:"Patent Activities (Other)",community:"Community, Culture & Climate",documents:"Documents",pitchDeck:"Pitch deck",submitted:"Submitted",notSubmitted:"Not submitted",submittedDate:"Submitted",email:"Email",phone:"Phone",applicant:"Applicant",noCompanyInfo:"Startup has not completed Company Information",noPersonalInfo:"Startup has not completed Personal Information",noApplication:"No application data",generated:"Generated",page:"Page",of:"of"},fr:{title:"Demande au programme",pointOfContact:"Personne-ressource",personalInfo:"Renseignements personnels",address:"Adresse",companyInfo:"Renseignements sur l'entreprise",needHelpWith:"Besoin d'aide avec",legacyData:"Données antérieures (version précédente de la demande)",patentActivities:"Activités de brevets",patentActivitiesOther:"Activités de brevets (autre)",community:"Communauté, culture et climat",documents:"Documents",pitchDeck:"Présentation (pitch deck)",submitted:"Soumis",notSubmitted:"Non soumis",submittedDate:"Soumise le",email:"Courriel",phone:"Téléphone",applicant:"Candidat(e)",noCompanyInfo:"L'entreprise n'a pas rempli les renseignements sur l'entreprise",noPersonalInfo:"L'entreprise n'a pas rempli les renseignements personnels",noApplication:"Aucune donnée de demande",generated:"Généré le",page:"Page",of:"de"}},Pe=({rows:a})=>e.jsx(W,{children:a.map((t,n)=>e.jsxs(W,{style:j.appFieldRow,wrap:!!t.multiline,children:[e.jsx(C,{style:j.appQuestion,children:t.label}),t.guidance&&e.jsx(C,{style:j.appGuidance,children:t.guidance}),e.jsx(C,{style:j.appAnswer,children:t.value})]},n))}),ie=({children:a})=>e.jsx(C,{style:j.appSectionTitle,minPresenceAhead:40,children:a}),Vn=({application:a,lang:t="eng"})=>{var G,v,S;const n=Bn[t],{profileSnapshot:s,resolvedFirm:o,region:r,email:i,submittedDate:u}=a,h=Tn(r),p=(G=s==null?void 0:s.companyInfo)==null?void 0:G.basicInfo,d=s==null?void 0:s.personalInfo,f=s==null?void 0:s.needHelpWith,y=(p==null?void 0:p.operatingName)||(p==null?void 0:p.legalName)||"",P=f==null?void 0:f.firmId,M=o.selected&&P&&P!=="Other"?[{value:String(P),text:o.selected}]:[],m=An(f==null?void 0:f.patentActivities),b=m.length>0||!!(f!=null&&f.patentActivitiesOther),O=Ee(new Date,"MMM do yyyy");return e.jsx(Fa,{children:e.jsxs(Ga,{size:"A4",style:j.page,wrap:!0,children:[e.jsx(Mn,{region:r,title:n.title,subtitle:y||void 0}),e.jsxs(W,{style:{marginBottom:8},children:[d?e.jsxs(W,{style:j.appMetaBlock,children:[e.jsxs(W,{style:j.appMetaRow,children:[e.jsx(C,{style:j.appMetaLabel,children:n.applicant}),e.jsxs(C,{style:j.appMetaValue,children:[`${d.firstName||""} ${d.lastName||""}`.trim(),d.title?` — ${d.title}`:""]})]}),e.jsxs(W,{style:j.appMetaRow,children:[e.jsx(C,{style:j.appMetaLabel,children:n.email}),e.jsx(C,{style:j.appMetaValue,children:i||"—"})]}),e.jsxs(W,{style:j.appMetaRow,children:[e.jsx(C,{style:j.appMetaLabel,children:n.phone}),e.jsx(C,{style:j.appMetaValue,children:d.phoneNumber||"—"})]})]}):e.jsx(C,{style:j.appPlaceholder,children:n.noPersonalInfo}),e.jsxs(W,{style:j.appMetaRow,children:[e.jsx(C,{style:j.appMetaLabel,children:n.submittedDate}),e.jsx(C,{style:j.appMetaValue,children:u?Ee(new Date(u),"MMM do yyyy"):"—"})]})]}),!s&&e.jsx(C,{style:j.appPlaceholder,children:n.noApplication}),s&&e.jsxs(W,{children:[s.pointOfContact&&e.jsxs(W,{children:[e.jsx(ie,{children:n.pointOfContact}),e.jsx(Pe,{rows:be(za,s.pointOfContact,t)})]}),e.jsx(ie,{children:n.personalInfo}),d?e.jsx(Pe,{rows:be(qa,d,t)}):e.jsx(C,{style:j.appPlaceholder,children:n.noPersonalInfo}),e.jsx(ie,{children:n.address}),(v=s.companyInfo)!=null&&v.mailingAddress?e.jsx(Pe,{rows:be(Ha,$a(s.companyInfo.mailingAddress),t)}):e.jsx(C,{style:j.appPlaceholder,children:n.noCompanyInfo}),e.jsx(ie,{children:n.companyInfo}),s.companyInfo?e.jsx(Pe,{rows:be(Va(s),Ba({basicInfo:s.companyInfo.basicInfo,registration:s.companyInfo.registration}),t)}
6):e.jsx(C,{style:j.appPlaceholder,children:n.noCompanyInfo}),e.jsx(ie,{children:n.needHelpWith}),f?e.jsx(Pe,{rows:be(Ua(s,M),f,t)}):e.jsx(C,{style:j.appPlaceholder,children:n.noApplication}),b&&e.jsxs(W,{style:j.appLegacyPanel,wrap:!1,children:[e.jsx(ie,{children:n.legacyData}),m.length>0&&e.jsxs(W,{style:j.appMetaRow,children:[e.jsx(C,{style:j.appMetaLabel,children:n.patentActivities}),e.jsx(C,{style:j.appMetaValue,children:m.join("; ")})]}),(f==null?void 0:f.patentActivitiesOther)&&e.jsxs(W,{style:j.appMetaRow,children:[e.jsx(C,{style:j.appMetaLabel,children:n.patentActivitiesOther}),e.jsx(C,{style:j.appMetaValue,children:f.patentActivitiesOther})]})]}),e.jsx(ie,{children:n.community}),s.programingEvaluation?e.jsx(Pe,{rows:be(Ka,s.programingEvaluation,t)}):e.jsx(C,{style:j.appPlaceholder,children:n.noApplication}),e.jsx(ie,{children:n.documents}),e.jsxs(W,{style:j.appMetaRow,children:[e.jsx(C,{style:j.appMetaLabel,children:n.pitchDeck}),e.jsx(C,{style:j.appMetaValue,children:(S=s.documents)!=null&&S.pitchdeck?n.submitted:n.notSubmitted})]})]}),e.jsxs(W,{style:j.appPageFooter,fixed:!0,children:[e.jsxs(C,{style:j.appFooterText,children:[h.orgName," · ElevateIP · ",n.generated," ",O]}),e.jsx(C,{style:j.appFooterText,render:({pageNumber:T,totalPages:A})=>`${n.page} ${T} ${n.of} ${A}`})]})]})})};var Gt={},Un=(function(a,t,n,s,o){var r=new Worker(Gt[t]||(Gt[t]=URL.createObjectURL(new Blob([a+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return r.onmessage=function(i){var u=i.data,h=u.$e$;if(h){var p=new Error(h[0]);p.code=h[1],p.stack=h[2],o(p,null)}else o(null,u)},r.postMessage(n,s),r}),q=Uint8Array,Y=Uint16Array,_e=Int32Array,Qe=new q([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Ye=new q([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),pt=new q([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Wt=function(a,t){for(var n=new Y(31),s=0;s<31;++s)n[s]=t+=1<<a[s-1];for(var o=new _e(n[30]),s=1;s<30;++s)for(var r=n[s];r<n[s+1];++r)o[r]=r-n[s]<<5|s;return{b:n,r:o}},_t=Wt(Qe,2),Kn=_t.b,Ke=_t.r;Kn[28]=258,Ke[258]=28;var qn=Wt(Ye,0),mt=qn.r,qe=new Y(32768);for(var D=0;D<32768;++D){var ce=(D&43690)>>1|(D&21845)<<1;ce=(ce&52428)>>2|(ce&13107)<<2,ce=(ce&61680)>>4|(ce&3855)<<4,qe[D]=((ce&65280)>>8|(ce&255)<<8)>>1}var De=(function(a,t,n){for(var s=a.length,o=0,r=new Y(t);o<s;++o)a[o]&&++r[a[o]-1];var i=new Y(t);for(o=1;o<t;++o)i[o]=i[o-1]+r[o-1]<<1;var u;if(n){u=new Y(1<<t);var h=15-t;for(o=0;o<s;++o)if(a[o])for(var p=o<<4|a[o],d=t-a[o],f=i[a[o]-1]++<<d,y=f|(1<<d)-1;f<=y;++f)u[qe[f]>>h]=p}else for(u=new Y(s),o=0;o<s;++o)a[o]&&(u[o]=qe[i[a[o]-1]++]>>15-a[o]);return u}),he=new q(288);for(var D=0;D<144;++D)he[D]=8;for(var D=144;D<256;++D)he[D]=9;for(var D=256;D<280;++D)he[D]=7;for(var D=280;D<288;++D)he[D]=8;var Oe=new q(32);for(var D=0;D<32;++D)Oe[D]=5;var Qt=De(he,9,0),Yt=De(Oe,5,0),ft=function(a){return(a+7)/8|0},gt=function(a,t,n){return(t==null||t<0)&&(t=0),(n==null||n>a.length)&&(n=a.length),new q(a.subarray(t,n))}
vendor: 6,073 bytes, line 6
6,Wn=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Ie=function(a,t,n){var s=new Error(t||Wn[a]);if(s.code=a,Error.captureStackTrace&&Error.captureStackTrace(s,Ie),!n)throw s;return s},ne=function(a,t,n){n<<=t&7;var s=t/8|0;a[s]|=n,a[s+1]|=n>>8},Ae=function(a,t,n){n<<=t&7;var s=t/8|0;a[s]|=n,a[s+1]|=n>>8,a[s+2]|=n>>16},Ue=function(a,t){for(var n=[],s=0;s<a.length;++s)a[s]&&n.push({s,f:a[s]});var o=n.length,r=n.slice();if(!o)return{t:vt,l:0};if(o==1){var i=new q(n[0].s+1);return i[n[0].s]=1,{t:i,l:1}}n.sort(function(T,A){return T.f-A.f}),n.push({s:-1,f:25001});var u=n[0],h=n[1],p=0,d=1,f=2;for(n[0]={s:-1,f:u.f+h.f,l:u,r:h};d!=o-1;)u=n[n[p].f<n[f].f?p++:f++],h=n[p!=d&&n[p].f<n[f].f?p++:f++],n[d++]={s:-1,f:u.f+h.f,l:u,r:h};for(var y=r[0].s,s=1;s<o;++s)r[s].s>y&&(y=r[s].s);var P=new Y(y+1),M=We(n[d-1],P,0);if(M>t){var s=0,m=0,b=M-t,O=1<<b;for(r.sort(function(A,L){return P[L.s]-P[A.s]||A.f-L.f});s<o;++s){var G=r[s].s;if(P[G]>t)m+=O-(1<<M-P[G]),P[G]=t;else break}for(m>>=b;m>0;){var v=r[s].s;P[v]<t?m-=1<<t-P[v]++-1:++s}for(;s>=0&&m;--s){var S=r[s].s;P[S]==t&&(--P[S],++m)}M=t}return{t:new q(P),l:M}},We=function(a,t,n){return a.s==-1?Math.max(We(a.l,t,n+1),We(a.r,t,n+1)):t[a.s]=n},ut=function(a){for(var t=a.length;t&&!a[--t];);for(var n=new Y(++t),s=0,o=a[0],r=1,i=function(h){n[s++]=h},u=1;u<=t;++u)if(a[u]==o&&u!=t)++r;else{if(!o&&r>2){for(;r>138;r-=138)i(32754);r>2&&(i(r>10?r-11<<5|28690:r-3<<5|12305),r=0)}else if(r>3){for(i(o),--r;r>6;r-=6)i(8304);r>2&&(i(r-3<<5|8208),r=0)}for(;r--;)i(o);r=1,o=a[u]}return{c:n.subarray(0,s),n:t}},Ce=function(a,t){for(var n=0,s=0;s<t.length;++s)n+=a[s]*t[s];return n},yt=function(a,t,n){var s=n.length,o=ft(t+2);a[o]=s&255,a[o+1]=s>>8,a[o+2]=a[o]^255,a[o+3]=a[o+1]^255;for(var r=0;r<s;++r)a[o+r+4]=n[r];return(o+4+s)*8},xt=function(a,t,n,s,o,r,i,u,h,p,d){ne(t,d++,n),++o[256];for(var f=Ue(o,15),y=f.t,P=f.l,M=Ue(r,15),m=M.t,b=M.l,O=ut(y),G=O.c,v=O.n,S=ut(m),T=S.c,A=S.n,L=new Y(19),N=0;N<G.length;++N)++L[G[N]&31];for(var N=0;N<T.length;++N)++L[T[N]&31];for(var w=Ue(L,7),k=w.t,J=w.l,$=19;$>4&&!k[pt[$-1]];--$);var Z=p+5<<3,H=Ce(o,he)+Ce(r,Oe)+i,B=Ce(o,y)+Ce(r,m)+i+14+3*$+Ce(L,k)+2*L[16]+3*L[17]+7*L[18];if(h>=0&&Z<=H&&Z<=B)return yt(t,d,a.subarray(h,h+p));var V,E,_,ee;if(ne(t,d,1+(B<H)),d+=2,B<H){V=De(y,P,0),E=y,_=De(m,b,0),ee=m;var Me=De(k,J,0);ne(t,d,v-257),ne(t,d+5,A-1),ne(t,d+10,$-4),d+=14;for(var N=0;N<$;++N)ne(t,d+3*N,k[pt[N]]);d+=3*$;for(var X=[G,T],fe=0;fe<2;++fe)for(var re=X[fe],N=0;N<re.length;++N){var Q=re[N]&31;ne(t,d,Me[Q]),d+=k[Q],Q>15&&(ne(t,d,re[N]>>5&127),d+=re[N]>>12)}}else V=Qt,E=he,_=Yt,ee=Oe;for(var N=0;N<u;++N){var z=s[N];if(z>255){var Q=z>>18&31;Ae(t,d,V[Q+257]),d+=E[Q+257],Q>7&&(ne(t,d,z>>23&31),d+=Qe[Q]);var se=z&31;Ae(t,d,_[se]),d+=ee[se],se>3&&(Ae(t,d,z>>5&8191),d+=Ye[se])}else Ae(t,d,V[z]),d+=E[z]}return Ae(t,d,V[256]),d+E[256]},Xt=new _e([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),vt=new q(0),Zt=function(a,t,n,s,o,r){var i=r.z||a.length,u=new q(s+i+5*(1+Math.ceil(i/7e3))+o),h=u.subarray(s,u.length-o),p=r.l,d=(r.r||0)&7;if(t){d&&(h[0]=r.r>>3);for(var f=Xt[t-1],y=f>>13,P=f&8191,M=(1<<n)-1,m=r.p||new Y(32768),b=r.h||new Y(M+1),O=Math.ceil(n/3),G=2*O,v=function(Ne){return(a[Ne]^a[Ne+1]<<O^a[Ne+2]<<G)&M},S=new _e(25e3),T=new Y(288),A=new Y(32),L=0,N=0,w=r.i||0,k=0,J=r.w||0,$=0;w+2<i;++w){var Z=v(w),H=w&32767,B=b[Z];if(m[H]=B,b[Z]=H,J<=w){var V=i-w;if((L>7e3||k>24576)&&(V>423||!p)){d=xt(a,h,0,S,T,A,N,k,$,w-$,d),k=L=N=0,$=w;for(var E=0;E<286;++E)T[E]=0;for(var E=0;E<30;++E)A[E]=0}var _=2,ee=0,Me=P,X=H-B&32767;if(V>2&&Z==v(w-X))for(var fe=Math.min(y,V)-1,re=Math.min(32767,w),Q=Math.min(258,V);X<=re&&--Me&&H!=B;){if(a[w+_]==a[w+_-X]){for(var z=0;z<Q&&a[w+z]==a[w+z-X];++z);if(z>_){if(_=z,ee=X,z>fe)break;for(var se=Math.min(X,z-2),ge=0,E=0;E<se;++E){var je=w-X+E&32767,Xe=m[je],Le=je-Xe&32767;Le>ge&&(ge=Le,B=je)}}}H=B,B=m[H],X+=H-B&32767}if(ee){S[k++]=268435456|Ke[_]<<18|mt[ee];var ye=Ke[_]&31,Re=mt[ee]&31;N+=Qe[ye]+Ye[Re],++T[257+ye],++A[Re],J=w+_,++L}else S[k++]=a[w],++T[a[w]]}}for(w=Math.max(w,J);w<i;++w)S[k++]=a[w],++T[a[w]];d=xt(a,h,p,S,T,A,N,k,$,w-$,d),p||(r.r=d&7|h[d/8|0]<<3,d-=7,r.h=b,r.p=m,r.i=w,r.w=J)}else{for(var w=r.w||0;w<i+p;w+=65535){var Se=w+65535;Se>=i&&(h[d/8|0]=p,Se=i),d=yt(h,d+1,a.subarray(w,Se))}r.i=i}return gt(u,0,s+ft(d)+o)},_n=(function(){for(var a=new Int32Array(256),t=0;t<256;++t){for(var n=t,s=9;--s;)n=(n&1&&-306674912)^n>>>1;a[t]=n}return a})(),Qn=function(){var a=-1;return{p:function(t){for(var n=a,s=0;s<t.length;++s)n=_n[n&255^t[s]]^n>>>8;a=n},d:function(){return~a}}},Jt=function(a,t,n,s,o){if(!o&&(o={l:1},t.dictionary)){var r=t.dictionary.subarray(-32768),i=new q(r.length+a.length);i.set(r),i.set(a,r.length),a=i,o.w=r.length}return Zt(a,t.level==null?6:t.level,t.mem==null?o.l?Math.ceil(Math.max(8,Math.min(13,Math.log(a.length)))*1.5):20:12+t.mem,n,s,o)},wt=function(a,t){var n={};for(var s in a)n[s]=a[s];for(var s in t)n[s]=t[s];return n},zt=function(a,t,n){for(var s=a(),o=a.toString(),r=o.slice(o.indexOf("[")+1,o.lastIndexOf("]")).replace(/\s+/g,"").split(","),i=0;i<s.length;++i){var u=s[i],h=r[i];if(typeof u=="function"){t+=";"+h+"=";var p=u.toString();if(u.prototype)if(p.indexOf("[native code]")!=-1){var d=p.indexOf(" ",8)+1;t+=p.slice(d,p.indexOf("(",d))}else{t+=p;for(var f in u.prototype)t+=";"+h+".prototype."+f+"="+u.prototype[f].toString()}else t+=p}else n[h]=u}return t},Ve=[],Yn=function(a){var t=[];for(var n in a)a[n].buffer&&t.push((a[n]=new a[n].constructor(a[n])).buffer);return t},Xn=function(a,t,n,s){if(!Ve[n]){for(var o="",r={},i=a.length-1,u=0;u<i;++u)o=zt(a[u],o,r);Ve[n]={c:zt(a[i],o,r),e:r}}var h=wt({},Ve[n].e);return Un(Ve[n].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",n,h,Yn(h),s)},Zn=function(){return[q,Y,_e,Qe,Ye,pt,Ke,mt,Qt,he,Yt,Oe,qe,Xt,vt,De,ne,Ae,Ue,We,ut,Ce,yt,xt,ft,gt,Zt,Jt,jt,ea]}
6,ea=function(a){return postMessage(a,[a.buffer])},Jn=function(a,t,n,s,o,r){var i=Xn(n,s,o,function(u,h){i.terminate(),r(u,h)});return i.postMessage([a,t],t.consume?[a.buffer]:[]),function(){i.terminate()}},U=function(a,t,n){for(;n;++t)a[t]=n,n>>>=8};function es(a,t,n){return n||(n=t,t={}),typeof n!="function"&&Ie(7),Jn(a,t,[Zn],function(s){return ea(jt(s.data[0],s.data[1]))},0,n)}function jt(a,t){return Jt(a,t||{},0,0)}var ta=function(a,t,n,s){for(var o in a){var r=a[o],i=t+o,u=s;Array.isArray(r)&&(u=wt(s,r[1]),r=r[0]),ArrayBuffer.isView(r)?n[i]=[r,u]:(n[i+="/"]=[new q(0),u],ta(r,i,n,s))}},$t=typeof TextEncoder<"u"&&new TextEncoder,ts=typeof TextDecoder<"u"&&new TextDecoder,as=0;try{ts.decode(vt,{stream:!0}),as=1}catch{}function Ht(a,t){var n;if($t)return $t.encode(a);for(var s=a.length,o=new q(a.length+(a.length>>1)),r=0,i=function(p){o[r++]=p},n=0;n<s;++n){if(r+5>o.length){var u=new q(r+8+(s-n<<1));u.set(o),o=u}var h=a.charCodeAt(n);h<128||t?i(h):h<2048?(i(192|h>>6),i(128|h&63)):h>55295&&h<57344?(h=65536+(h&1047552)|a.charCodeAt(++n)&1023,i(240|h>>18),i(128|h>>12&63),i(128|h>>6&63),i(128|h&63)):(i(224|h>>12),i(128|h>>6&63),i(128|h&63))}return gt(o,0,r)}var ht=function(a){var t=0;if(a)for(var n in a){var s=a[n].length;s>65535&&Ie(9),t+=s+4}return t},Bt=function(a,t,n,s,o,r,i,u){var h=s.length,p=n.extra,d=u&&u.length,f=ht(p);U(a,t,i!=null?33639248:67324752),t+=4,i!=null&&(a[t++]=20,a[t++]=n.os),a[t]=20,t+=2,a[t++]=n.flag<<1|(r<0&&8),a[t++]=o&&8,a[t++]=n.compression&255,a[t++]=n.compression>>8;var y=new Date(n.mtime==null?Date.now():n.mtime),P=y.getFullYear()-1980;if((P<0||P>119)&&Ie(10),U(a,t,P<<25|y.getMonth()+1<<21|y.getDate()<<16|y.getHours()<<11|y.getMinutes()<<5|y.getSeconds()>>1),t+=4,r!=-1&&(U(a,t,n.crc),U(a,t+4,r<0?-r-2:r),U(a,t+8,n.size)),U(a,t+12,h),U(a,t+14,f),t+=16,i!=null&&(U(a,t,d),U(a,t+6,n.attrs),U(a,t+10,i),t+=14),a.set(s,t),t+=h,f)for(var M in p){var m=p[M],b=m.length;U(a,t,+M),U(a,t+2,b),a.set(m,t+4),t+=4+b}return d&&(a.set(u,t),t+=d),t},ns=function(a,t,n,s,o){U(a,t,101010256),U(a,t+8,n),U(a,t+10,n),U(a,t+12,s),U(a,t+16,o)};function ss(a,t,n){n||(n=t,t={}),typeof n!="function"&&Ie(7);var s={};ta(a,"",s,t);var o=Object.keys(s),r=o.length,i=0,u=0,h=r,p=new Array(r),d=[],f=function(){for(var b=0;b<d.length;++b)d[b]()},y=function(b,O){Vt(function(){n(b,O)})};Vt(function(){y=n});var P=function(){var b=new q(u+22),O=i,G=u-i;u=0;for(var v=0;v<h;++v){var S=p[v];try{var T=S.c.length;Bt(b,u,S,S.f,S.u,T);var A=30+S.f.length+ht(S.extra),L=u+A;b.set(S.c,L),Bt(b,i,S,S.f,S.u,T,u,S.m),i+=16+A+(S.m?S.m.length:0),u=L+T}catch(N){return y(N,null)}}ns(b,i,p.length,G,O),y(null,b)};r||P();for(var M=function(b){var O=o[b],G=s[O],v=G[0],S=G[1],T=Qn(),A=v.length;T.p(v);var L=Ht(O),N=L.length,w=S.comment,k=w&&Ht(w),J=k&&k.length,$=ht(S.extra),Z=S.level==0?0:8,H=function(B,V){if(B)f(),y(B,null);else{var E=V.length;p[b]=wt(S,{size:A,crc:T.d(),c:V,f:L,m:k,u:N!=O.length||k&&w.length!=J,compression:Z}),i+=30+N+$+E,u+=76+2*(N+$)+(J||0)+E,--r||P()}};if(N>65535&&H(Ie(11,0,1),null),!Z)H(null,v);else if(A<16e4)try{H(null,jt(v,S))}catch(B){H(B,null)}else d.push(es(v,S,H))},m=0;m<h;++m)M(m);return f}var Vt=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(a){a()};function rs(a){return new Promise((t,n)=>{ss(a,{level:0},(s,o)=>{s?n(s):t(o)})})}function os(a,t){const n=new Blob([a.buffer],{type:"application/zip"}),s=URL.createObjectURL(n),o=document.createElement("a");o.href=s,o.download=`${t}.zip`,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(s)}function ls(a){var o,r;const t=(r=(o=a.profileSnapshot)==null?void 0:o.companyInfo)==null?void 0:r.basicInfo;return`${((t==null?void 0:t.operatingName)||(t==null?void 0:t.legalName)||"Application").replace(/[^\w\- ]/g,"").trim().replace(/\s+/g,"-")||"Application"}-Application-${a.applicationId.slice(-6)}`}async function is(a,t,n,s){var o;if(a.length===0){s.showToast({toastType:"failure",message:"Select at least one application to export",autoDisappearTimeInSeconds:5});return}s.showLoading();try{const i=(await Wa(a.slice(0,dt))).applications;if(i.length===0){s.showToast({toastType:"failure",message:"None of the selected applications are available for export",autoDisappearTimeInSeconds:8});return}i.length<a.length&&s.showToast({toastType:"info",message:`${a.length-i.length} application(s) not available for export`,autoDisappearTimeInSeconds:8});const u=[];for(let d=0;d<i.length;d++){const f=i[d],y=ls(f);try{const P=await _a(e.jsx(Vn,{application:f,lang:n}));u.push({label:y,bytes:P})}catch{u.push({label:y,bytes:null})}(o=s.onProgress)==null||o.call(s,d+1,i.length)}const h=Ee(new Date,"yyyy-MM-dd");let p;if(t==="combined"){const{pdfBytes:d,skippedDocs:f}=await Qa(u);if(p=f,u.length-f.length===0){s.showToast({toastType:"failure",message:"PDF generation failed for every selected application",autoDisappearTimeInSeconds:8});return}Ya(d,`ElevateIP-Applications-${h}`)}else{const d={};p=[];for(const y of u)y.bytes&&y.bytes.length>0?d[`${y.label}.pdf`]=y.bytes:p.push(y.label);if(Object.keys(d).length===0){s.showToast({toastType:"failure",message:"PDF generation failed for every selected application",autoDisappearTimeInSeconds:8});return}const f=await rs(d);os(f,`ElevateIP-Applications-${h}`)}p.length>0?s.showToast({toastType:"info",message:`Exported with ${p.length} application(s) skipped: ${p.join(", ")}`,autoDisappearTimeInSeconds:10}):s.showToast({toastType:"success",message:`Exported ${i.length} application(s) as PDF`,autoDisappearTimeInSeconds:5})}
6catch(r){const i=r instanceof Error?r.message:"PDF export failed";s.showToast({toastType:"failure",message:i,autoDisappearTimeInSeconds:8})}finally{s.hideLoading()}}const cs=50,ds=({selectedCount:a,mode:t,lang:n,isExporting:s,progress:o,onModeChange:r,onLangChange:i,onClose:u,onExport:h})=>{const p=a>dt;return e.jsxs("div",{className:"flex flex-col p-4 gap-6 w-full",children:[e.jsx("p",{className:"bodyLarger",children:`Exporting ${a} selected ${a===1?"company":"companies"} as PDF:`}),e.jsx("p",{className:"text-sm text-text/70",children:"Contains submitted application answers only — no internal assessment data."}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold mb-2",children:"Format"}),e.jsxs("label",{className:"flex items-start gap-3 cursor-pointer mb-3",children:[e.jsx("input",{type:"radio",name:"pdfExportMode",checked:t==="combined",onChange:()=>r("combined"),className:"mt-1"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold",children:"Single combined PDF"}),e.jsx("p",{className:"text-sm text-text/70",children:"All applications in one document, one after another"})]})]}),e.jsxs("label",{className:"flex items-start gap-3 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"pdfExportMode",checked:t==="zip",onChange:()=>r("zip"),className:"mt-1"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold",children:"Zip of individual PDFs"}),e.jsx("p",{className:"text-sm text-text/70",children:"One PDF file per application, bundled in a zip"})]})]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold mb-2",children:"Language"}),e.jsxs("div",{className:"flex gap-6",children:[e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"pdfExportLang",checked:n==="eng",onChange:()=>i("eng")}),e.jsx("p",{children:"English"})]}),e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"pdfExportLang",checked:n==="fr",onChange:()=>i("fr")}),e.jsx("p",{children:"Français"})]})]})]}),p&&e.jsx("p",{className:"text-sm text-red-700 border-t border-borders pt-3",children:`PDF export is limited to ${dt} applications at a time — please narrow your selection.`}),!p&&a>cs&&e.jsx("p",{className:"text-sm text-text/60 italic border-t border-borders pt-3",children:"Large exports may take a minute to generate."}),s&&o&&e.jsx("p",{className:"text-sm text-text/70",children:`Generating ${o.done} of ${o.total}…`}),e.jsxs("div",{className:"flex gap-4 justify-end pt-2",children:[e.jsx(xe,{buttonType:"secondary",buttonText:"Cancel",actionHandler:u,disabled:s}),e.jsx(xe,{buttonType:"primary",buttonText:s?"Exporting...":"Export",disabled:s||p,actionHandler:h})]})]})},ps=({companyName:a,ownerName:t,selectedStage:n,stageChangeReason:s,userRegion:o,onStageChange:r,onReasonChange:i,onConfirm:u,onClose:h})=>e.jsxs("div",{className:"flex flex-col p-4 gap-6 w-full",children:[e.jsxs("div",{className:"flex flex-col gap-1 bg-backgroundSecondary p-3 rounded",children:[e.jsx("p",{className:"bodyLarger font-semibold",children:a||"Unknown Company"}),e.jsxs("p",{className:"bodySmall text-text/70",children:["Account Owner: ",t||"Unassigned"]})]}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("label",{htmlFor:"stage-change-select",className:"bodySmall font-semibold",children:"Select Stage:"}),e.jsxs(de,{value:n||void 0,onValueChange:p=>r(p),children:[e.jsx(pe,{className:Ot,children:e.jsx(me,{placeholder:"-- Select Stage --"})}),e.jsxs(ue,{children:[e.jsx(K,{value:"flagged",children:"Rejection Flagged"}),e.jsx(K,{value:"rejected",children:"Application Rejected"}),e.jsx(K,{value:o==="investOttawa"||o==="northForge"?"partnerOrgProjectCompleted":"projectCompleted",children:"Project Completed"})]})]})]}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("label",{htmlFor:"stage-change-reason",className:"bodySmall font-semibold",children:"Reason (Optional):"}),e.jsx("textarea",{id:"stage-change-reason",value:s,onChange:p=>i(p.target.value),className:`${Ot} min-h-[100px]`,placeholder:"Enter reason for stage change..."})]}),e.jsxs("div",{className:"flex gap-4 justify-end pt-2",children:[e.jsx(xe,{buttonType:"secondary",buttonText:"Cancel",actionHandler:h}),e.jsx(xe,{buttonType:"primary",buttonText:"Change Stage",disabled:!n,actionHandler:u})]})]}),bs=[{header:"Company Name",key:"companyName"},{header:"Application Date",key:"submittedDate"},{header:"Application Stage",key:"applicationStage",sortOptions:[]},{header:"Account Owner",key:"owner"},{header:"IPA",key:"ipeName"},{header:"Service Provider",key:"serviceProviderName"},{header:"Region",key:"region"},{header:"Days in Stage",key:"daysInStage"},{header:"Action Item",key:"actionItem",sortOptions:[...yn("admin"),"No action required"]},{header:"SoWs",key:"sowCount"},{header:"IPA Status",key:"ipeStatus",sortOptions:["Not Invited","Invite Sent","In Progress","IPA Request Due Diligence","IPA Recommendation Ready","Recommended","Not Recommended"]},{header:"GC Status",key:"gcStatus",sortOptions:["Invited","No Concerns","Decline","N/A"]},{header:"Cohort",key:"cohort"},{header:"Persona Score",key:"personaScore"},{header:"Contact Name",key:"contact"},{header:"Contact Email",key:"email"},{header:"Actions",key:"actions"}],ms=new Set(["Cancelled","rejected","Project Closed"]);function Ps(){const a=new Date,t=g.useContext(Xa).showToast,{showLoading:n,hideLoading:s}=g.useContext(Za),o=Ja(),r=en();tn();const[i,u]=g.useState(!1),[h,p]=g.useState([]),{userRegion:d,userEmail:f}=g.useContext(an),[y]=nn(),P=y.get("phase"),M=y.get("region"),m=d==="communitech"?"communitech":"All",b=M||m,[O,G]=g.useState(b!=="All"||!!P),[v,S]=g.useState({applicationPhase:P||"All",sowSubstatus:"All",needsAction:!1,minAgingDays:0,maxDate:null,minDate:null,deliveryPartner:b,accountOwner:"All",ipe:"All",serviceProvider:"All"}),T=sn(),A=rn(d,T),L=Cn(),N=Dn(),[w,k]=g.useState(!1),[J,$]=g.useState(!1),[Z,H]=g.useState({application:A.defaultExportSections.application,contact:A.defaultExportSections.contact,survey:A.defaultExportSections.survey,sow:A.defaultExportSections.sow,invoice:A.defaultExportSections.invoice}),[B,V]=g.useState(!1),[E,_]=g.useState(!1),[ee,Me]=g.useState("combined"),[X,fe]=g.useState("eng"),[re,Q]=g.useState(null),[z,se]=g.useState(!1),[ge,je]=g.useState(""),[Xe,Le]=g.useState(!1),[ye,Re]=g.useState([]),[Se,Ne]=g.useState(!1),[aa,Ze]=g.useState(!1),[te,Je]=g.useState(null),[et,tt]=g.useState({}),[na,Fe]=g.useState(!1),[sa,ra]=g.useState(""),[oa,la]=g.useState(""),[ia,ca]=g.useState(""),[at,St]=g.useState(""),[Nt,bt]=g.useState(""),[Ge,ze]=g.useState({}),[nt,da]=g.useState(new Set),pa=l=>{da(c=>{const x=new Set(c);return x.has(l)?x.delete(l):x.add(l),x})},{data:ve}=on({queryKey:lt.members.list(),queryFn:()=>ln()});g.useEffect(()=>{(async()=>{try{Ne(!0);const c=await bn();c.success&&Re(c.owners)}catch{t({toastType:"failure",message:"Failed to load account owners",autoDisappearTimeInSeconds:5})}finally{Ne(!1)}})()},[]),g.useEffect(()=>{ve&&Object.keys(et).length>0&&tt({})},[ve]),g.useEffect(()=>{ve&&O&&$e(v,ge)},[ve,O]);
6const oe=((ve==null?void 0:ve.memberHeaders)??[]).map(l=>{var c,x;return{...l,applicationStage:it(["rejectedFlagged","rejectedInProgress","rejected","rejectedReapply","partnerOrgProjectCompleted","projectCompleted","closed"].includes((c=l.applicationDetails)==null?void 0:c.status)?l.applicationDetails.status:l.sowStage&&!ms.has(l.sowStage)?l.sowStage:(x=l.applicationDetails)==null?void 0:x.status),sowCount:l.sowCount??0,statements:l.statements??[],daysInStage:l.stageChangedAt?cn(new Date(l.stageChangedAt)):"-"}}),Pt=l=>{var c;return typeof l.owner=="string"?l.owner:((c=l.owner)==null?void 0:c.ownerName)||""},st=l=>Array.from(new Set(l.filter(c=>!!c))).sort((c,x)=>c.localeCompare(x)),ma=g.useMemo(()=>st(oe.map(Pt)),[oe]),ua=g.useMemo(()=>st(oe.map(l=>l.ipeName)),[oe]),xa=g.useMemo(()=>st(oe.map(l=>l.serviceProviderName)),[oe]),ha=(l,c)=>{const x=ye.find(R=>R.id===c);x&&(Je({applicationId:l,ownerId:c,ownerName:x.ownerName,ownerEmail:x.email}),Ze(!0))},fa=()=>{te&&(Ze(!1),tt(l=>({...l,[te.applicationId]:{id:te.ownerId,ownerName:te.ownerName}})),L.mutate({applicationId:te.applicationId,ownerId:te.ownerId},{onError:()=>{tt(l=>{const c={...l};return delete c[te.applicationId],c})},onSettled:()=>Je(null)}))},At=()=>{Ze(!1),Je(null),o.invalidateQueries({queryKey:lt.members.all})},ga=(l,c,x)=>{ra(l),la(c),ca(x),St(""),bt(""),Fe(!0)},ya=()=>{if(!at){t({toastType:"failure",message:"Please select a stage",autoDisappearTimeInSeconds:3});return}N.mutate({applicationId:sa,status:at,reason:Nt},{onSuccess:()=>Fe(!1)})},va=(l,c)=>{var F;if(!c)return!0;const x=c.toLowerCase(),R=typeof l.owner=="string"?l.owner:((F=l.owner)==null?void 0:F.ownerName)||"",I=l.submittedDate?new Date(l.submittedDate).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}):"";return[l.companyName,l.contact,l.email,l.applicationStage,l.actionItem,R,String(l.cohort),l.personaScore,l.gcStatus,l.ipeStatus,l.ipeName,I].some(He=>String(He||"").toLowerCase().includes(x))},$e=(l,c)=>{if(!(l.applicationPhase!=="All"||l.sowSubstatus!=="All"||l.needsAction||l.minAgingDays>0||l.minDate!==null||l.maxDate!==null||l.deliveryPartner!=="All"||l.accountOwner!=="All"||l.ipe!=="All"||l.serviceProvider!=="All"||c.length>0))p([]),G(!1);else{const R=dn(l.applicationPhase),I=oe.filter(F=>{var He,Dt,It;if(R){const le=(He=F.applicationDetails)==null?void 0:He.status,Te=(F.statements??[]).map(ot=>ot.sowStatus);if(![le,...Te].filter(Boolean).some(ot=>R.includes(ot)))return!1}if(l.sowSubstatus!=="All"&&!(F.statements??[]).some(Te=>it(Te.sowStatus)===l.sowSubstatus))return!1;if(l.needsAction){if(!F.actionItem||F.actionItem==="No action required")return!1;const le=(Dt=ye.find(Mt=>Mt.email===f))==null?void 0:Dt.id,Te=typeof F.owner=="object"?(It=F.owner)==null?void 0:It.id:F.owner;if(le&&Te!==le)return!1}if(l.minAgingDays>0&&(typeof F.daysInStage!="number"||F.daysInStage<l.minAgingDays))return!1;if(F.submittedDate){const le=new Date(F.submittedDate);if(l.minDate&&le<l.minDate||l.maxDate&&le>l.maxDate)return!1}return!(l.deliveryPartner!=="All"&&F.region!==l.deliveryPartner||l.accountOwner!=="All"&&Pt(F)!==l.accountOwner||l.ipe!=="All"&&(F.ipeName||"")!==l.ipe||l.serviceProvider!=="All"&&(F.serviceProviderName||"")!==l.serviceProvider||c&&!va(F,c))});p(I),G(!0)}ze({})},wa=l=>{je(l),$e(v,l)},ja=()=>{const l={applicationPhase:"All",sowSubstatus:"All",needsAction:!1,minAgingDays:0,maxDate:null,minDate:null,deliveryPartner:m,accountOwner:"All",ipe:"All",serviceProvider:"All"};S(l),je(""),$e(l,""),o.invalidateQueries({queryKey:lt.members.all})},Ct=(l,c)=>{const x={...v,[l]:c};l==="applicationPhase"&&!Ut(c)&&(x.sowSubstatus="All"),S(x),$e(x,ge)},Sa=[v.applicationPhase!=="All",v.sowSubstatus!=="All",v.needsAction,v.minAgingDays>0,v.minDate!==null,v.maxDate!==null,v.deliveryPartner!=="All",v.accountOwner!=="All",v.ipe!=="All",v.serviceProvider!=="All",ge.length>0].filter(Boolean).length,rt=(O?h:oe).map(l=>l.appId&&et[l.appId]?{...l,owner:et[l.appId]}:l),ae=g.useMemo(()=>{const l=new Set(rt.map(c=>c.appId));return Object.keys(Ge).filter(c=>Ge[c]&&l.has(c))},[Ge,rt]),Na=g.useMemo(()=>[{accessorKey:"companyName",header:({table:c})=>e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(Lt,{checked:c.getIsAllPageRowsSelected(),onCheckedChange:x=>c.toggleAllPageRowsSelected(!!x),onClick:x=>x.stopPropagation(),"aria-label":"Select all"}),e.jsx("span",{children:"Company Name"})]}),minSize:200,cell:({row:c,getValue:x})=>e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(Lt,{checked:c.getIsSelected(),onCheckedChange:R=>c.toggleSelected(!!R),onClick:R=>R.stopPropagation(),"aria-label":"Select row"}),e.jsxs("span",{className:"flex items-center gap-2 font-medium",children:[String(x()),e.jsx(In,{legacy:c.original.legacy})]})]})},{accessorKey:"submittedDate",header:"Application Date",minSize:120,cell:({getValue:c})=>{const x=c();if(!x)return"-";try{return Ee(vn(String(x)),"MMM do yyyy")}catch{return String(x)}}},{accessorKey:"applicationStage",header:"Application Stage",minSize:160,cell:({getValue:c})=>{const x=String(c());return e.jsx(we,{variant:"outline",children:x})}},{id:"owner",header:"Account Owner",minSize:160,accessorFn:c=>{var x;return typeof c.owner=="string"?c.owner:((x=c.owner)==null?void 0:x.ownerName)||""},cell:({row:c})=>{const x=c.original.owner,R=typeof x=="object"?x==null?void 0:x.id:"";return e.jsx("div",{onClick:I=>I.stopPropagation(),children:e.jsxs(de,{value:R||void 0,onValueChange:I=>ha(c.original.appId,I),disabled:Se,children:[e.jsx(pe,{className:"text-sm max-w-[160px]",children:e.jsx(me,{placeholder:"Unassigned"})}),e.jsx(ue,{children:ye.map(I=>
6e.jsx(K,{value:I.id,children:I.ownerName},I.id))})]})})},enableSorting:!0},{accessorKey:"ipeName",header:"IPA",minSize:100},{accessorKey:"serviceProviderName",header:"Service Provider",minSize:140,cell:({getValue:c})=>String(c()||"")||"-"},{accessorKey:"region",header:"Region",minSize:120,cell:({getValue:c})=>{const x=String(c()||"");return x?{communitech:"Communitech",northForge:"North Forge",investOttawa:"Invest Ottawa",launchLab:"Launch Lab",sparkCenter:"Spark Centre"}[x]||x:"-"}},{accessorKey:"daysInStage",header:"Days in Stage",minSize:80,cell:({getValue:c})=>e.jsx("span",{className:"text-right block",children:String(c())})},{accessorKey:"actionItem",header:"Action Item",minSize:160,cell:({getValue:c})=>{const x=String(c());return e.jsx(we,{variant:wn(x,"admin"),children:x})}},{id:"sowExpand",header:"SoWs",enableSorting:!1,minSize:60,cell:({row:c})=>{const x=c.original.sowCount;if(!x)return"-";const R=nt.has(c.original.appId);return e.jsxs("button",{onClick:I=>{I.stopPropagation(),pa(c.original.appId)},className:"flex items-center gap-1 text-sm hover:underline",children:[e.jsx(jn,{className:"h-4 w-4 transition-transform",style:R?{transform:"rotate(90deg)"}:void 0}),e.jsx(we,{variant:"outline",children:x})]})}},{accessorKey:"ipeStatus",header:"IPA Status",minSize:100,cell:({getValue:c})=>{const x=String(c());return!x||x==="-"?"-":e.jsx(we,{variant:"outline",children:x})}},{accessorKey:"gcStatus",header:"GC Status",minSize:80,cell:({getValue:c})=>{const x=String(c());return!x||x==="-"?"-":e.jsx(we,{variant:"outline",children:x})}},{accessorKey:"personaScore",header:"Persona Score",minSize:80},{accessorKey:"contact",header:"Contact Name",minSize:120},{accessorKey:"email",header:"Contact Email",minSize:200},{id:"actions",header:"Actions",enableSorting:!1,minSize:100,cell:({row:c})=>e.jsx("button",{onClick:x=>{var I;x.stopPropagation();const R=typeof c.original.owner=="string"?c.original.owner:((I=c.original.owner)==null?void 0:I.ownerName)||"";ga(c.original.appId,c.original.companyName||"",R)},className:"text-sm text-cSecondaryGreen hover:underline whitespace-nowrap",children:"Change Stage"})}].filter(c=>A.usesGrowthCoaches||c.accessorKey!=="gcStatus"),[ye,Se,nt,A.usesGrowthCoaches]),ba={buttonText:"Send Custom Email",actionHandler:async l=>{const c=l,x=c.respondTo,R=c.customMessage;n();const I=await Pn(R,ae,x);s(),I?(u(!1),ze({}),t({toastType:"success",message:"Custom Email Sent!",autoDisappearTimeInSeconds:8})):t({toastType:"failure",message:"Unable to send Custom Email. Please try again and if issue persists contact support.",autoDisappearTimeInSeconds:8})}},Pa=async()=>{const l=Object.entries(Z).filter(([c,x])=>x).map(([c])=>c);if(l.length===0){t({toastType:"failure",message:"Please select at least one section to export.",autoDisappearTimeInSeconds:5});return}$(!0);try{const c={sections:l.join(",")};ae.length>0?c.applicationIds=ae:(O&&h.length>0&&(c.applicationIds=h.map(F=>F.appId)),v.minDate&&(c.minDate=v.minDate.toISOString().split("T")[0]),v.maxDate&&(c.maxDate=v.maxDate.toISOString().split("T")[0]));const x=await Nn(c),R=window.URL.createObjectURL(x),I=document.createElement("a");I.href=R,I.download=`ElevateIP-Export-${new Date().toISOString().split("T")[0]}.csv`,document.body.appendChild(I),I.click(),I.remove(),window.URL.revokeObjectURL(R),k(!1),t({toastType:"success",message:"CSV exported successfully!",autoDisappearTimeInSeconds:5})}catch{t({toastType:"failure",message:"Failed to export CSV. Please try again.",autoDisappearTimeInSeconds:8})}finally{$(!1)}},Aa=async()=>{_(!0),Q(null);try{await is(ae,ee,X,{showLoading:()=>{},hideLoading:()=>{},showToast:t,onProgress:(l,c)=>Q({done:l,total:c})}),V(!1)}finally{_(!1),Q(null)}},Ca=async()=>{if(ae.length!==0){se(!0);try{const l=await Sn({applicationIds:ae});t({toastType:"success",message:`Successfully synced ${l.companiesSynced} ${l.companiesSynced===1?"company":"companies"} to Power Automate.`,autoDisappearTimeInSeconds:5})}catch(l){t({toastType:"failure",message:l.message||"Failed to sync to Power Automate. Please try again.",autoDisappearTimeInSeconds:8})}finally{se(!1)}}},Da=g.useCallback(l=>{var c;return(c=l.statements)!=null&&c.length?e.jsx("div",{className:"px-8 py-3 bg-backgrounds border-t border-borders",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"text-text/60 text-xs",children:[e.jsx("th",{className:"text-left py-1 px-2",children:"SoW #"}),e.jsx("th",{className:"text-left py-1 px-2",children:"Tier"}),e.jsx("th",{className:"text-left py-1 px-2",children:"Practitioner"}),e.jsx("th",{className:"text-left py-1 px-2",children:"SoW Stage"})]})}),e.jsx("tbody",{children:l.statements.map(x=>e.jsxs("tr",{className:"border-t border-borders/50",children:[e.jsx("td",{className:"py-1.5 px-2",children:x.sowNumber}),e.jsx("td",{className:"py-1.5 px-2",children:x.tier?`Tier ${x.tier}`:"-"}),e.jsx("td",{className:"py-1.5 px-2",children:x.practitionerName}),e.jsx("td",{className:"py-1.5 px-2",children:e.jsx(we,{variant:"outline",children:it(x.sowStatus)})})]},x.sowId))})]})}):null},[]);return e.jsxs("div",{children:[e.jsx(pn,{title:"All Applications"}),e.jsxs("div",{className:"px-14 pb-8",children:[d==="communitech"&&v.deliveryPartner==="communitech"&&e.jsxs("div",{className:"mb-3 flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(we,{variant:"secondary",children:"Filtered to Communitech"}),e.jsx("span",{children:"Showing your region by default."}),e.jsx("button",{className:"text-blue-600 hover:text-blue-800 hover:underline",onClick:()=>Ct("deliveryPartner","All"),children:"Show all regions"})]}),e.jsx(Ln,{filtersObj:v,searchTerm:ge,filtersExpanded:Xe,activeFilterCount:Sa,userRegion:d||"",currentDate:a,ownerOptions:ma,ipeOptions:ua,serviceProviderOptions:xa,onFilterChange:Ct,onSearchChange:wa,onReset:ja,onToggleExpanded:()=>Le(l=>!l)}),e.jsx(mn,{columns:Na,data:rt,onRowClick:l=>r(`/dashboard/memberships/${l.appId}`),getRowId:l=>l.appId,expandedRowIds:nt,renderExpandedRow:Da,enableSorting:!0,enablePagination:!0,allowAllRows:!0,enableRowSelection:!0,rowSelection:Ge,onRowSelectionChange:ze,stickyFirstColumn:!0,stickyHeader:!0,stickyMaxHeight:"calc(100vh - 340px)"}),ae.length>0&&e.jsxs("div",{className:"fixed bottom-4 left-1/2 -translate-x-1/2 z-50 flex items-center gap-3 bg-text text-white rounded-lg shadow-xl px-5 py-3",children:[e.jsxs("span",{className:"text-sm font-medium whitespace-nowrap",children:[ae.length," selected"]}),e.jsx("div",{className:"w-px h-5 bg-white/30"}),e.jsxs("button",{onClick:()=>k(!0),className:"flex items-center gap-1.5 text-sm hover:text-white/80 whitespace-nowrap",children:[e.jsx(kn,{className:"h-3.5 w-3.5"}),"Export CSV"]}),e.jsxs("button",{onClick:()=>V(!0),className:"flex items-center gap-1.5 text-sm hover:text-white/80 whitespace-nowrap",children:[e.jsx(un,{className:"h-3.5 w-3.5"}),"Export PDF"]}),A.canSyncPowerAutomate&&e.jsxs("button",{onClick:Ca,disabled:z,className:"flex items-center gap-1.5 text-sm hover:text-white/80 whitespace-nowrap disabled:opacity-50",children:[e.jsx(On,{className:`h-3.5 w-3.5 ${z?"animate-spin":""}`}),z?"Syncing...":"Sync PA"]}),A.hasFullPortal&&e.jsxs("button",{onClick:()=>u(!0),className:"flex items-center gap-1.5 text-sm hover:text-white/80 whitespace-nowrap",children:[e.jsx(xn,{className:"h-3.5 w-3.5"}),"Send Email"]}),e.jsx("div",{className:"w-px h-5 bg-white/30"}),e.jsxs("button",{onClick:()=>ze({}),className:"flex items-center gap-1 text-sm text-white/60 hover:text-white/80",children:[e.jsx(hn,{className:"h-3.5 w-3.5"}),"Clear"]})]}),e.jsx(ke,{isOpen:i,closeModal:()=>u(!1),modalHeader:"",contentLabel:"",modalHTML:e.jsx(fn,{formDefinition:gn,primaryButtonProp:ba,formData:null})}),e.jsx(ke,{isOpen:w,closeModal:()=>k(!1),modalHeader:"Export CSV",contentLabel:"Export CSV",modalHTML:e.jsx(Rn,{selectedUsers:ae,exportSections:Z,isExportLoading:J,onClose:()=>k(!1),onExport:Pa,onSectionChange:l=>H(c=>({...c,[l]:!c[l]}))})}),e.jsx(ke,{isOpen:B,closeModal:()=>{E||V(!1)},modalHeader:"Export PDF",contentLabel:"Export PDF",modalHTML:e.jsx(ds,{selectedCount:ae.length,mode:ee,lang:X,isExporting:E,progress:re,onModeChange:Me,onLangChange:fe,onClose:()=>V(!1),onExport:Aa})}),e.jsx(ke,{isOpen:na,closeModal:()=>Fe(!1),modalHeader:"Change Application Stage",contentLabel:"Change Stage",modalHTML:e.jsx(ps,{companyName:oa,ownerName:ia,selectedStage:at,stageChangeReason:Nt,userRegion:d||"",onStageChange:St,onReasonChange:bt,onConfirm:ya,onClose:()=>Fe(!1)})}),e.jsx(ke,{isOpen:aa,closeModal:At,modalHeader:"Confirm Account Owner Assignment",contentLabel:"Confirm Owner",modalHTML:te?e.jsxs("div",{className:"flex flex-col p-4 gap-6 w-full",children:[e.jsx("p",{className:"bodyLarger",children:"Assign this admin as the account owner?"}),e.jsxs("div",{className:"bg-backgrounds border border-borders rounded-lg p-4",children:[e.jsx("p",{className:"font-semibold text-text",children:te.ownerName}),e.jsx("p",{className:"text-sm text-text/70",children:te.ownerEmail})]}),e.jsxs("div",{className:"flex gap-4 justify-end pt-2",children:[e.jsx(xe,{buttonType:"secondary",buttonText:"Cancel",actionHandler:At}),e.jsx(xe,{buttonType:"primary",buttonText:"Assign Owner",actionHandler:fa})]})]}):e.jsx(e.Fragment,{})})]})]})}export{Ps as default,bs as membershipsColumnHeaderData};

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.