1import{b as L,j as t}from"./vendor-react-Db0o_2QY.js";import{u as A,H as I}from"./app-BKG4hivw.js";import{I as G}from"./instructor-layout-uCoJIxKV.js";import{B as S}from"./bell-D8Hpund_.js";import{M as R}from"./mail-BqzCD901.js";import{Z as B}from"./zap-DV08TNut.js";/* empty css */import"./menu-CV_FroTN.js";import"./createLucideIcon-DIwWA-hv.js";import"./users-CiPR_PDo.js";import"./chart-column-CopQLYwx.js";import"./credit-card-XvAL9JFI.js";import"./star-3OwSVyC6.js";import"./x-PCuC7deo.js";import"./log-out-uvRM-i-o.js";function W(k){const e=L.c(35),{instructor:s,pricePence:E,days:l}=k;let p;e[0]===Symbol.for("react.memo_cache_sentinel")?(p={},e[0]=p):p=e[0];const r=A(p);let f;e[1]!==r?(f=function(){r.post("/instructor/priority-leads/checkout")},e[1]=r,e[2]=f):f=e[2];const N=f;let h;e[3]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(I,{title:"Priority Emergency Leads â TestSwap Instructor"}),e[3]=h):h=e[3];let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsxs("div",{children:[t.jsxs("h1",{className:"flex items-center gap-2 text-2xl font-black text-slate-900",children:[t.jsx(S,{className:"h-6 w-6 text-teal-500"}),"Priority Emergency Leads"]}),t.jsx("p",{className:"mt-1 text-sm font-medium text-slate-500",children:"Get emailed when a learner near your test centres submits an emergency-instructor request â before it's shown publicly."})]}),e[4]=u):u=e[4];let y;e[5]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx(R,{className:"mt-0.5 h-4 w-4 shrink-0 text-slate-400"}),e[5]=y):y=e[5];let _;e[6]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsxs("div",{className:"flex items-start gap-3 rounded-xl border border-slate-200 bg-slate-50 px-4 py-3",children:[y,t.jsxs("p",{className:"text-sm font-medium text-slate-600",children:["Alerts cover your linked test centres from your"," ",t.jsx("a",{href:"/instructor/profile",className:"underline",children:"Public Profile"})," ","page. Alerts are advance notice, not exclusive contact details."]})]}),e[6]=_):_=e[6];let g;e[7]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(B,{className:"h-4 w-4 text-teal-500"}),e[7]=g):g=e[7];const w=s.has_priority_emergency_leads?"Currently Active":"Priority Leads";let a;e[8]!==w?(a=t.jsxs("div",{className:"flex items-center gap-2 border-b border-teal-100 bg-teal-50 px-6 py-4",children:[g,t.jsx("h2",{className:"text-xs font-bold tracking-widest text-teal-700 uppercase",children:w})]}),e[8]=w,e[9]=a):a=e[9];let i;e[10]!==l||e[11]!==s.has_priority_emergency_leads||e[12]!==s.priority_emergency_leads_until?(i=s.has_priority_emergency_leads?t.jsxs("p",{className:"text-sm font-medium text-slate-600",children:["Active until"," ",t.jsx("strong",{children:s.priority_emergency_leads_until}),". Purchasing again will extend your access."]}):t.jsxs("p",{className:"text-sm font-medium text-slate-600",children:["Get a ",l,"-day head start on emergency leads at your test centres."]}),e[10]=l,e[11]=s.has_priority_emergency_leads,e[12]=s.priority_emergency_leads_until,e[13]=i):i=e[13];const v=E/100;let o;e[14]!==v?(o=v.toFixed(2),e[14]=v,e[15]=o):o=e[15];let c;e[16]!==o?(c=t.jsxs("span",{className:"text-3xl font-black text-slate-900",children:["£",o]}),e[16]=o,e[17]=c):c=e[17];let n;e[18]!==l?(n=t.jsxs("span",{className:"text-sm font-medium text-slate-400",children:["/ ",l," days"]}),e[18]=l,e[19]=n):n=e[19];let m;e[20]!==c||e[21]!==n?(m=t.jsxs("div",{className:"mt-4 flex items-baseline gap-1",children:[c,n]}),e[20]=c,e[21]=n,e[22]=m):m=e[22];let b;e[23]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(S,{className:"h-4 w-4"}),e[23]=b):b=e[23];const P=r.processing?"Redirectingâ¦":s.has_priority_emergency_leads?"Extend priority leads":"Get priority leads";let d;e[24]!==r.processing||e[25]!==N||e[26]!==P?(d=t.jsxs("button",{onClick:N,disabled:r.processing,className:"mt-6 flex w-full items-center justify-center gap-2 rounded-xl bg-teal-600 py-2.5 text-sm font-bold text-white shadow-md shadow-teal-500/20 transition-all hover:bg-teal-700 disabled:cursor-not-allowed disabled:opacity-60",children:[b,P]}),e[24]=r.processing,e[25]=N,e[26]=P,e[27]=d):d=e[27];let x;e[28]!==i||e[29]!==m||e[30]!==d?(x=t.jsxs("div",{className:"px-6 py-6",children:[i,m,d]}),e[28]=i,e[29]=m,e[30]=d,e[31]=x):x=e[31];let j;return e[32]!==x||e[33]!==a?(j=t.jsxs(G,{children:[h,t.jsxs("div",{className:"mx-auto flex w-full max-w-2xl flex-col gap-8 p-6 lg:p-8",children:[u,_,t.jsxs("div",{className:"overflow-hidden rounded-2xl border-2 border-teal-400 bg-white shadow-sm",children:[a,x]})]})]}),e[32]=x,e[33]=a,e[34]=j):j=e[34],j}export{W as default};
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.