1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[17263,60748],{17263:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(96417).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},60748:(e,t,s)=>{s.r(t),s.d(t,{default:()=>T});var a=s(34324),n=s(78712),i=s(44038),o=s(63899),r=s(37449),l=s(68993),d=s(30611);let c=(0,s(96417).A)("MicVocal",[["path",{d:"m11 7.601-5.994 8.19a1 1 0 0 0 .1 1.298l.817.818a1 1 0 0 0 1.314.087L15.09 12",key:"80a601"}],["path",{d:"M16.5 21.174C15.5 20.5 14.372 20 13 20c-2.058 0-3.928 2.356-6 2-2.072-.356-2.775-3.369-1.5-4.5",key:"j0ngtp"}],["circle",{cx:"16",cy:"7",r:"5",key:"d08jfb"}]]);var v=s(6488),x=s(77949),m=s(77660),h=s(17263),u=s(97158);let p={sent:"border-[var(--line)] bg-white text-[var(--soft)]",reminded:"border-amber-300 bg-amber-50 text-amber-800",opened:"border-[var(--ink)] bg-[var(--gold-soft)] text-[var(--ink)]",in_progress:"border-[var(--ink)] bg-[var(--gold-soft)] text-[var(--ink)]",writing:"border-[var(--orange)] bg-orange-50 text-[var(--orange-deep)]",review_ready:"border-emerald-600 bg-emerald-50 text-emerald-800",expired:"border-[var(--line)] bg-[rgba(23,20,15,0.04)] text-[var(--soft2)]"},f="px-3 py-2 text-left text-[11px] font-bold uppercase tracking-[0.12em] text-[var(--soft2)]",b="px-3 py-2.5 align-top text-sm text-[var(--ink)]";function g(){let{i18n:e}=(0,o.Bd)("dashboard");return(e.language||"en").split("-")[0]}function w(e,t){if(!e)return"";let s=new Date(e);return Number.isNaN(s.getTime())?"":s.toLocaleDateString(t,{day:"numeric",month:"short",year:"numeric"})}function j(e){var t;let{data:s}=e,{t:n}=(0,o.Bd)("dashboard"),i=g(),r=s.next_invite,l=!!(null==r?void 0:r.at)&&new Date(r.at).getTime()<Date.now(),v=s.period,x=[];return x.push({key:"next",icon:(0,a.jsx)(d.A,{className:"h-4 w-4"}),title:n("voice.ov.nextInvite","Next invitation"),body:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"text-base fd font-bold text-[var(--ink)]",children:(null==r?void 0:r.at)?l?n("voice.ov.nextInviteSoon","Any moment now"):w(r.at,i):n("voice.ov.nextInviteUnknown","Not scheduled yet")}),(null==r?void 0:r.recipient)&&(0,a.jsx)("p",{className:"mt-0.5 text-xs text-[var(--soft)] break-words",children:n("voice.ov.nextInviteTo","to {{name}}",{name:(t=r.recipient)?t.name?"".concat(t.name," (").concat(t.email,")"):t.email:""})})]})}),x.push({key:"period",icon:(0,a.jsx)(c,{className:"h-4 w-4"}),title:n("voice.ov.periodTitle","This period"),body:v&&null!==v.with_voice?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"text-base fd font-bold text-[var(--ink)]",children:n("voice.ov.periodBody","{{n}} of {{m}} articles sound like you",{n:v.with_voice,m:v.total})}),(0,a.jsxs)("p",{className:"mt-0.5 text-xs text-[var(--soft)]",children:[w(v.start,i),v.end?" - ".concat(w(v.end,i)):""]})]}):(0,a.jsx)("p",{className:"text-sm text-[var(--soft)]",children:n("voice.ov.periodUnknown","Not measured yet")})}),(0,a.jsx)("div",{className:"grid gap-3 sm:grid-cols-2",children:x.map(e=>(0,a.jsxs)("div",{className:"hard-flat rounded-2xl p-4 min-w-0",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-[11px] font-bold uppercase tracking-[0.12em] text-[var(--soft2)]",children:[(0,a.jsx)("span",{className:"flex h-6 w-6 items-center justify-center rounded-full bg-[var(--ink)] text-[var(--gold)]",children:e.icon}),e.title]}),(0,a.jsx)("div",{className:"mt-2",children:e.body})]},e.key))})}function y(e){let{rows:t,onReminded:s}=e,{t:i}=(0,o.Bd)("dashboard"),r=g(),[l,d]=(0,n.useState)(null),[c,v]=(0,n.use
1State)([]),[x,m]=(0,n.useState)(null),[h,u]=(0,n.useState)(null),[j,y]=(0,n.useState)([]),N=async e=>{if(h!==e.id)return void u(e.id);d(e.id),m(null);try{let t=await fetch("/api/backlinks/voice/outstanding",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({kind:e.kind,id:e.id})});if(!t.ok)throw Error("remove_".concat(t.status));y(t=>t.concat(e.id)),s()}catch(e){m(i("voice.ov.removeFailed","This could not be removed. Try again in a moment."))}finally{d(null),u(null)}},k=async e=>{d(e.id),m(null);try{let t=await fetch("/api/backlinks/voice/invites/".concat(e.id,"/remind"),{method:"POST"}),a=await t.json().catch(()=>({}));if(!t.ok)return void m((null==a?void 0:a.error)==="reminder_cooldown"?i("voice.ov.remindCooldown","A reminder was sent less than 24 hours ago."):i("voice.ov.remindFailed","The reminder could not be sent."));v(t=>t.concat(e.id)),s()}catch(e){m(i("voice.ov.remindFailed","The reminder could not be sent."))}finally{d(null)}};return(0,a.jsxs)("div",{className:"hard-flat rounded-2xl p-6",children:[(0,a.jsx)("h3",{className:"text-sm fd font-bold text-[var(--ink)]",children:i("voice.ov.outstandingTitle","Outstanding")}),0===t.length?(0,a.jsx)("p",{className:"mt-2 text-sm text-[var(--soft)]",children:i("voice.ov.outstandingEmpty","Nothing outstanding right now.")}):(0,a.jsx)("div",{className:"mt-3 -mx-3 overflow-x-auto",children:(0,a.jsxs)("table",{className:"w-full min-w-[640px] border-collapse",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"border-b border-[var(--line)]",children:[(0,a.jsx)("th",{className:f,children:i("voice.ov.colSubject","Topic")}),(0,a.jsx)("th",{className:f,children:i("voice.ov.colWho","Who")}),(0,a.jsx)("th",{className:f,children:i("voice.ov.colSent","Sent")}),(0,a.jsx)("th",{className:f,children:i("voice.ov.colStatus","Status")}),(0,a.jsx)("th",{className:f,children:(0,a.jsx)("span",{className:"sr-only",children:i("voice.ov.colActions","Actions")})})]})}),(0,a.jsx)("tbody",{children:t.filter(e=>!j.includes(e.id)).map(e=>{let t=c.includes(e.id);return(0,a.jsxs)("tr",{className:"border-b border-[var(--line)] last:border-b-0",children:[(0,a.jsx)("td",{className:b,children:(0,a.jsx)("span",{className:"font-semibold",children:e.subject||(0,a.jsx)("span",{className:"font-normal text-[var(--soft2)]",children:i("voice.ov.noSubject","Topic to be chosen")})})}),(0,a.jsx)("td",{className:b,children:(0,a.jsxs)("div",{className:"min-w-0",children:[e.who_name&&(0,a.jsx)("div",{className:"font-semibold",children:e.who_name}),e.who_email&&(0,a.jsx)("div",{className:"text-xs text-[var(--soft)] break-all",children:e.who_email})]})}),(0,a.jsx)("td",{className:"".concat(b," whitespace-nowrap"),children:w(e.sent_at,r)}),(0,a.jsx)("td",{className:b,children:(0,a.jsx)("span",{className:"".concat("inline-flex items-center whitespace-nowrap rounded-full border px-2 py-0.5 text-[10px] font-bold uppercase tracking-[0.12em]"," ").concat(p[e.status]),children:function(e,t){switch(e.status){case"reminded":return String(t("voice.ov.stReminded","Reminded"));case"opened":return String(t("voice.ov.stOpened","Opened"));case"in_progress":var s,a,n,i;return String(t("voice.ov.stInProgress","In progress, {{done}} of {{total}}",{done:null!=(n=null==(s=e.progress)?void 0:s.done)?n:0,total:null!=(i=null==(a=e.progress)?void 0:a.total)?i:0}));case"writing":return String(t("voice.ov.stWriting","Being written"));case"review_ready":return String(t("voice.ov.stReviewReady","Ready for review"));case"expired":return String(t("voice.ov.stExpired","Expired"));default:return String(t("voice.ov.stSent","Sent"))}}(e,i)})}),(0,a.jsx)("td",{className:"".concat(b," whitespace-nowrap"),children:(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:["invite"===e.kind&&e.can_remind&&(0,a.jsx)("button",{type:"button",onClick:()=>k(e),disabled:l===e.id||t,className:"rounded-full border-2 border-[var(--ink)] px-3 py-1 text-xs fd font-bold text-[var(--ink)] hover:bg-[var(--cream)] transition disabled:cursor-not-allowed disabled:opacity-60",children:t?i("voice.ov.actReminded","Reminder sent"):l===e.id?i("voice.busy","Working..."):i("voice.ov.actRemind","Remind")}),"invite"===e.kind&&e.invite_token&&"expired"!==e.status&&(0,a.jsx)("a",{href:"/voice/invite/".concat(e.invite_token),className:"rounded-full bg-[var(--orange)] hover:bg-[var(--orange-deep)] px-3 py-1 text-xs fd font-bold text-white transition pop",children:i("voice.ov.actSelf","Do it yourself")}),"session"===e.kind&&e.can_resume&&e.session_token&&(0,a.jsx)("a",{href:"/interview/".concat(e.session_token),className:"rounded-full bg-[var(--orange)] hover:bg-[var(--orange-deep)] px-3 py-1 text-xs fd font-bold text-white transition pop",children:i("voice.ov.actResume","Resume")}),"session"===e.kind&&"review_ready"===e.status&&e.session_token&&(0,a.jsx)("a",{href:"/interview/".concat(e.session_token,"/review"),className:"rounded-full bg-[var(--orange)] hover:bg-[var(--orange-deep)] px-3 py-1 text-xs fd font-bold text-white transition pop",children:i("voice.ov.actReview","View draft")}),(0,a.jsx)("button",{type:"button",onClick:()=>N(e),onBlur:()=>{h===e.id&&u(null)},disabled:l===e.id,className:"rounded-full px-3 py-1 text-xs fd font-bold transition disabled:cursor-not-allowed disabled:opacity-60 ".concat(h===e.id?"bg-red-600 text-white hover:bg-red-700":"text-[var(--soft)] hover:text-red-700"),children:h===e.id?i("voice.ov.actRemoveConfirm","Sure? Remove"):i("voice.ov.actRemove","Remove")})]})})]},"".concat(e.kind,"-").concat(e.id))})})]})}),x&&(0,a.jsx)("p",{className:"mt-3 text-sm text-red-600",children:x})]})}function N(e){let{rows:t,reuseTotal:s}=e,{t:n}=(0,o.Bd)("dashboard"),i=g();return(0,a.jsxs)("div",{className:"hard-flat rounded-2xl p-6",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-2",children:[(0,a.jsx)("h3",{className:"text-sm fd font-bold text-[var(--ink)]",children:n("voice.ov.completedTitle","Completed")}),null!==s&&s>0&&(0,a.jsx)("p",{className:"text-xs text-[var(--soft)]",children:n("voice.ov.reuseTotal","Your voice is used in {{n}} articles.",{n:s})})]}),0===t.length?(0,a.jsx)("p",{className:"mt-2 text-sm text-[var(--soft)]",children:n("voice.ov.completedEmpty","No published Q&A articles yet.")}):(0,a.jsx)("div",{className:"mt-3 -mx-3 overflow-x-auto",children:(0,a.jsxs)("table",{className:"w-full min-w-[560px] border-collapse",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"border-b border-[var(--line)]",children:[(0,a.jsx)("th",{className:f,children:n("voice.ov.colTitle","Article")}),(0,a.jsx)("th",{className:f,children:n("voice.ov.colLive","Live since")}),(0,a.jsx)("th",{className:f,children:n("voice.ov.colQuotes","Quotes")}
1)]})}),(0,a.jsx)("tbody",{children:t.map(e=>(0,a.jsxs)("tr",{className:"border-b border-[var(--line)] last:border-b-0",children:[(0,a.jsx)("td",{className:b,children:e.url?(0,a.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start gap-1.5 font-semibold text-[var(--ink)] hover:text-[var(--orange-deep)]",children:[(0,a.jsx)("span",{children:e.title||n("voice.ov.openArticle","Open article")}),(0,a.jsx)(v.A,{className:"mt-0.5 h-3.5 w-3.5 flex-shrink-0 text-[var(--soft2)]"})]}):(0,a.jsx)("span",{className:"font-semibold",children:e.title||n("voice.ov.openArticle","Open article")})}),(0,a.jsx)("td",{className:"".concat(b," whitespace-nowrap"),children:w(e.published_at,i)}),(0,a.jsx)("td",{className:"".concat(b," whitespace-nowrap"),children:(0,a.jsx)("span",{className:"text-xs text-[var(--soft)]",children:n("voice.ov.quotes","{{n}} quotes in the library",{n:e.quote_count})})})]},e.id))})]})})]})}let k=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,S=[{days:14,weeks:2},{days:21,weeks:3},{days:42,weeks:6}];function _(e){var t,s;let{settings:i,owner:r,onSaved:l}=e,{t:d}
1=(0,o.Bd)("dashboard"),[c,v]=(0,n.useState)(!1),[p,f]=(0,n.useState)(i.cycle_days),[b,g]=(0,n.useState)(i.recipients),[w,j]=(0,n.useState)(!1),[y,N]=(0,n.useState)(!1),[_,A]=(0,n.useState)(null),C=(e,t)=>{N(!1),g(s=>s.map((s,a)=>a===e?{...s,...t}:s))},T=async()=>{A(null),N(!1);let e=b.map(e=>({name:e.name.trim(),email:e.email.trim().toLowerCase()})).filter(e=>e.email.length>0);if(e.some(e=>!k.test(e.email)))return void A(d("voice.ov.settingsInvalidEmail","Check the email addresses."));j(!0);try{let t=await fetch("/api/backlinks/voice/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({cycle_days:p,recipients:e})}),s=await t.json().catch(()=>({}));if(!t.ok||!(null==s?void 0:s.settings))return void A(d("voice.ov.settingsSaveFailed","Could not save. Check the email addresses."));g(s.settings.recipients),f(s.settings.cycle_days),N(!0),l(s.settings)}catch(e){A(d("voice.ov.settingsSaveFailed","Could not save. Check the email addresses."))}finally{j(!1)}};return(0,a.jsxs)("div",{className:"hard-flat rounded-2xl",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>v(e=>!e),className:"flex w-full items-center gap-3 rounded-2xl p-6 text-left transition hover:bg-[rgba(23,20,15,0.04)]","aria-expanded":c,"aria-controls":"voice-settings-body",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("h3",{className:"text-sm fd font-bold text-[var(--ink)]",children:d("voice.ov.settingsTitle","Settings")}),(0,a.jsx)("p",{className:"mt-1 text-sm text-[var(--soft)]",children:d("voice.ov.settingsSummary","Every {{weeks}} weeks, {{n}} people on the list",{weeks:null!=(s=null==(t=S.find(e=>e.days===p))?void 0:t.weeks)?s:3,n:b.filter(e=>e.email.trim()).length})})]}),c?(0,a.jsx)(x.A,{className:"h-4 w-4 text-[var(--soft2)]"}):(0,a.jsx)(m.A,{className:"h-4 w-4 text-[var(--soft2)]"})]}),c&&(0,a.jsxs)("div",{id:"voice-settings-body",className:"border-t border-[var(--line)] px-6 pb-6 pt-4 space-y-5",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-[11px] font-bold uppercase tracking-[0.12em] text-[var(--soft2)]",children:d("voice.ov.settingsRecipients","Who receives the invitation")}),(0,a.jsx)("p",{className:"mt-1 text-xs text-[var(--soft)]",children:d("voice.ov.settingsRecipientsHint","Up to 5 people, each in turn. Leave empty and the invitation goes to {{email}}.",{email:r.email||d("voice.ov.settingsOwner","the account owner")})}),(0,a.jsxs)("div",{className:"mt-3 space-y-2",children:[b.map((e,t)=>(0,a.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center",children:[(0,a.jsx)("input",{type:"text",value:e.name,onChange:e=>C(t,{name:e.target.value}),placeholder:d("voice.ov.settingsName","Name"),maxLength:80,className:"w-full sm:w-48 border-2 border-[var(--ink)] rounded-xl bg-white text-[var(--ink)] px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-[var(--orange)]"}),(0,a.jsx)("input",{type:"email",value:e.email,onChange:e=>C(t,{email:e.target.value}),placeholder:d("voice.ov.settingsEmail","Email"),maxLength:254,className:"w-full flex-1 border-2 border-[var(--ink)] rounded-xl bg-white text-[var(--ink)] px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-[var(--orange)]"}),(0,a.jsx)("button",{type:"button",onClick:()=>{N(!1),g(e=>e.filter((e,s)=>s!==t))},className:"inline-flex items-center gap-1 self-start rounded-full px-2 py-1 text-xs text-[var(--soft)] hover:text-red-600","aria-label":d("voice.ov.settingsRemove","Remove"),children:(0,a.jsx)(h.A,{className:"h-4 w-4"})})]},t)),b.length<5&&(0,a.jsxs)("button",{type:"button",onClick:()=>{N(!1),g(e=>e.length>=5?e:e.concat({name:"",email:""}))},className:"inline-flex items-center gap-1.5 rounded-full border-2 border-[var(--ink)] px-3 py-1.5 text-xs fd font-bold text-[var(--ink)] hover:bg-[var(--cream)] transition",children:[(0,a.jsx)(u.A,{className:"h-3.5 w-3.5"}),d("voice.ov.settingsAdd","Add person")]})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-[11px] font-bold uppercase tracking-[0.12em] text-[var(--soft2)]",children:d("voice.ov.settingsCycle","How often")}),(0,a.jsx)("div",{className:"mt-2 flex flex-wrap gap-2",children:S.map(e=>(0,a.jsx)("button",{type:"button",onClick:()=>{f(e.days),N(!1)},className:"rounded-full border-2 px-3 py-1.5 text-xs fd font-bold transition ".concat(p===e.days?"border-[var(--ink)] bg-[var(--ink)] text-[var(--gold)]":"border-[var(--ink)] bg-white text-[var(--ink)] hover:bg-[var(--cream)]"),children:d("voice.ov.everyNWeeks","Every {{n}} weeks",{n:e.weeks})},e.days))})]}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,a.jsx)("button",{type:"button",onClick:T,disabled:w,className:"inline-flex items-center gap-2 fd pop bg-[var(--orange)] hover:bg-[var(--orange-deep)] text-white rounded-full font-bold px-4 py-2 text-sm transition disabled:cursor-not-allowed disabled:opacity-60",children:w?d("voice.busy","Working..."):d("voice.ov.settingsSave","Save")}),y&&(0,a.jsx)("span",{className:"text-xs text-emerald-700",children:d("voice.ov.settingsSaved","Saved")}),_&&(0,a.jsx)("span",{className:"text-xs text-red-600",children:_})]})]})]})}let A=(0,i.default)(()=>s.e(98619).then(s.bind(s,98619)),{loadableGenerated:{webpack:()=>[98619]},ssr:!1}),C={nl:"Nederlands",en:"English",de:"Deutsch",fr:"Fran\xe7ais",es:"Espa\xf1ol",it:"Italiano",hi:"हिà¤à¤¦à¥",pl:"Polski",da:"Dansk"};function T(e){var t,s,i,d;let{articleLanguages:c=[]}=e,{t:v}=(0,o.Bd)("dashboard"),x=c.map(e=>e.toLowerCase()).filter(e=>
1C[e]),m=null!=(s=x[0])?s:"nl",[h,u]=(0,n.useState)(null),[p,f]=(0,n.useState)(!0),[b,k]=(0,n.useState)(null),[S,T]=(0,n.useState)(!1),E=(0,n.useCallback)(async()=>{try{let e=await fetch("/api/backlinks/voice/overview",{cache:"no-store"});if(!e.ok)throw Error("overview_fetch_failed");let t=await e.json();u(t),k(null)}catch(e){console.error("Failed to load voice overview:",e),k(v("voice.ov.loadFailed","Could not load the Q&A overview."))}finally{f(!1)}},[v]);(0,n.useEffect)(()=>{E();let e=()=>{E()};return window.addEventListener("focus",e),()=>window.removeEventListener("focus",e)},[E]);let R=Math.round((null!=(i=null==h||null==(t=h.settings)?void 0:t.cycle_days)?i:21)/7),L=!!h&&!1===h.enabled,F=null!=(d=null==h?void 0:h.qa_cap)?d:null,O=!!F&&F.remaining<=0,B=g();return(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)("div",{className:"hard rounded-2xl p-6 bg-[var(--cream)]",children:(0,a.jsxs)("div",{className:"flex items-start gap-4",children:[(0,a.jsx)("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full bg-[var(--ink)] text-[var(--gold)]",children:(0,a.jsx)(r.A,{className:"h-5 w-5"})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("h2",{className:"text-lg fd font-bold text-[var(--ink)]",children:"Voice Engine"}),(0,a.jsx)("p",{className:"mt-1 text-sm leading-relaxed text-[var(--soft)]",children:v("voice.intro","Start a Q&A and we turn it into an article, in your own words. Pick a topic, choose who answers the questions (you or someone else), and we do the rest.")}),(0,a.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-[var(--ink)]",children:v("voice.ov.howOneLine","Every {{weeks}} weeks five questions, record or type, about five minutes. Live automatically after 48 hours unless you approve earlier.",{weeks:R})}),L?(0,a.jsx)("p",{className:"mt-4 text-sm text-[var(--soft)]",children:v("voice.ov.moduleOff","Q&A is part of the yearly plan. Ask us to switch it on for your account.")}):(0,a.jsxs)("div",{className:"mt-4 flex flex-wrap items-center gap-3",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>T(!0),disabled:O,className:"inline-flex items-center gap-2 fd pop bg-[var(--orange)] hover:bg-[var(--orange-deep)] text-white rounded-full font-bold px-4 py-2.5 text-sm transition disabled:cursor-not-allowed disabled:opacity-60",children:[(0,a.jsx)(l.A,{className:"h-4 w-4"}),v("voice.composeTitle","Compose a new Q&A")]}),F&&(0,a.jsx)("span",{className:"text-sm text-[var(--soft)]",children:O?v("voice.ov.capReached","All {{limit}} Q&A articles for this period are used. The next period opens on {{date}}.",{limit:F.limit,date:F.period_end?w(F.period_end,B):""}):v("voice.ov.capLeft","{{used}} of {{limit}} Q&A articles used this period, on top of your regular articles.",{used:F.used,limit:F.limit})})]}),b&&(0,a.jsx)("p",{className:"mt-3 text-sm text-red-600",children:b})]})]})}),p&&!h&&(0,a.jsx)("p",{className:"text-sm text-[var(--soft2)]",children:v("voice.ov.loading","Loading...")}),h&&h.enabled&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j,{data:h}),(0,a.jsx)(y,{rows:h.outstanding,onReminded:E}),(0,a.jsx)(N,{rows:h.completed,reuseTotal:h.reuse_total}),(0,a.jsx)(_,{settings:h.settings,owner:h.owner,onSaved:e=>{u(t=>t?{...t,settings:e}:t),E()}})]}),(0,a.jsx)(A,{open:S,onClose:()=>{T(!1),E()},defaultLanguage:m,availableLanguages:x})]})}},97158:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(96417).A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])}}]);
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.