1import{c as k,r as n,j as e,L as w,I as z,X as O}from"./index-kf0RRqQ6.js";import{u as W}from"./useTranslation-Bw2i4kRp.js";import{C as $}from"./circle-check-BKcutWxf.js";import{F as v}from"./frown-B6CwjpTq.js";import{M as B}from"./message-square-BxHSh8-f.js";import{A as F}from"./arrow-left-CCbKd3r6.js";import{C as K}from"./circle-help-C2Ej7XU8.js";/** 2 * @license lucide-react v0.468.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 N=k("Meh",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"8",x2:"16",y1:"15",y2:"15",key:"1xb1d9"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);/** 7 * @license lucide-react v0.468.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const R=k("Smile",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]),H=[{id:"not_useful",icon:v,labelKey:"uninstall.reasons.notUseful"},{id:"broken",icon:v,labelKey:"uninstall.reasons.broken"},{id:"slow",icon:N,labelKey:"uninstall.reasons.slow"},{id:"too_expensive",icon:N,labelKey:"uninstall.reasons.tooExpensive"},{id:"found_alternative",icon:R,labelKey:"uninstall.reasons.foundAlternative"},{id:"other",icon:B,labelKey:"uninstall.reasons.other"}];function Y(){const{t}=W(),[r,S]=n.useState(""),[x,C]=n.useState(""),[h,I]=n.useState(""),[b,E]=n.useState(""),[T,L]=n.useState(!1),[g,f]=n.useState(!1),[c,m]=n.useState(0),[p,d]=n.useState(null),[M,u]=n.useState(!1),a=[{url:"/images/uninstall/cc_button.png",label:"Enable CC / Activar CC"},{url:"/images/uninstall/cc_dropdown.png",label:"Select Subtitles / Seleccionar SubtÃtulos"},{url:"/images/uninstall/loom_settings.png",label:"Loom Closed Captions / SubtÃtulos en Loom"}],_=async s=>{var l;if(s.preventDefault(),!!r){f(!0);try{const o=localStorage.getItem("token"),A=localStorage.getItem("userId"),U=localStorage.getItem("userEmail"),P=localStorage.getItem("language")||navigator.language||"unknown";let y=null;try{const j=localStorage.getItem("user");if(j){const i=JSON.parse(j);y=((l=i==null?void 0:i.subscription)==null?void 0:l.plan)||(i==null?void 0:i.plan)||null}}catch{}await fetch("/api/feedback/uninstall",{method:"POST",headers:{"Content-Type":"application/json",...o?{Authorization:`Bearer ${o}`}:{}},body:JSON.stringify({reason:r,comment:x,email:b||U||null,source:"uninstall",user_id:A||null,language:P,plan:y,page_url:window.location.href,referrer:document.referrer||null,screen_resolution:`${window.screen.width}x${window.screen.height}`,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,video_url:h||null})})}catch{}finally{f(!1),L(!0)}}};return T?e.jsx("div",{className:"min-h-screen bg-gradient-to-br from-gray-50 to-blue-50 flex items-center justify-center p-4",children:e.jsxs("div",{className:"max-w-md w-full bg-white rounded-2xl shadow-xl p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx($,{className:"w-8 h-8 text-green-600"})}),e.jsx("h1",{className:"text-2xl font-bold text-gray-900 mb-2",children:t("uninstall.thanksTitle",{},"Thanks for the feedback!")}),e.jsx("p",{className:"text-gray-600 mb-6",children:t("uninstall.thanksDesc",{},"Your response helps us improve SkoolTranslate. We hope to see you again soon!")}),e.jsx(w,{to:"/",className:"text-blue-600 hover:underline text-sm",children:t("uninstall.backHome",{},"â Back to homepage")})]})}):e.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-gray-50 to-blue-50 flex items-center justify-center p-4 md:p-8",children:[e.jsxs("div",{className:"max-w-4xl w-full bg-white rounded-2xl shadow-xl overflow-hidden grid grid-cols-1 md:grid-cols-12 gap-0",children:[e.jsx("div",{className:"md:col-span-7 p-6 md:p-8 border-b md:border-b-0 md:border-r border-gray-100 flex flex-col justify-between",children:e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 rounded-full flex items-center justify-center bg-orange-50 shrink-0",children:e.jsx("img",{src:"/favicon.ico",alt:"SkoolTranslate",className:"w-7 h-7 object-contain"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:t("uninstall.title",{},"Sorry to see you go!")}),e.jsx("p",{className:"text-sm text-gray-500",children:t("uninstall.subtitle",{},"Help us improve SkoolTranslate")})]})]}),e.jsxs("form",{onSubmit:_,className:"space-y-5",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-3",children:t("uninstall.reasonLabel",{},"Why did you uninstall? *")}),e.jsx("div",{className:"grid grid-cols-2 gap-2",children:H.map(({id:s,icon:l,labelKey:o})=>e.jsxs("button",{type:"button",onClick:()=>{S(s),s==="too_expensive"&&u(!0)},className:`flex items-center gap-2 p-3 rounded-lg border text-left text-sm transition-colors ${r===s?"border-blue-500 bg-blue-50 text-blue-700":"border-gray-200 hover:border-gray-300 text-gray-700"}`,children:[e.jsx(l,{className:"w-4 h-4 shrink-0"}),e.jsx("span",{children:t(o,s)})]},s))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:t("uninstall.commentLabel",{},"Anything else? (optional)")}),e.jsx("textarea",{value:x,onChange:s=>C(s.target.value),rows:3,maxLength:500,placeholder:t("uninstall.commentPlaceholder",{},"Tell us more..."),className:"w-full border border-gray-300 rounded-lg p-3 text-sm focus:ring-2 focus:ring-blue-500 focus:border-blue-500 outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:t("uninstall.videoUrlLabel",{},"Video URL (optional)")}),e.jsx("input",{type:"url",value:h,onChange:s=>I(s.target.value),placeholder:"https://skool.com/...",className:"w-full border border-gray-300 rounded-lg p-3 text-sm focus:ring-2 focus:ring-blue-500 focus:border-blue-500 outline-none"}),r==="broken"&&e.jsxs("p",{className:"mt-1 text-xs text-blue-600 flex items-start gap-1",children:[e.jsx("span",{className:"shrink-0",children:"ð¡"}),e.jsx("span",{children:t("uninstall.videoUrlHint",{}
11,"If the extension didn't work on a specific video, please share the URL â it helps us fix the issue in future versions.")})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:t("uninstall.emailLabel",{},"Email (optional, if you want us to follow up)")}),e.jsx("input",{type:"email",value:b,onChange:s=>E(s.target.value),placeholder:"[email protected]",className:"w-full border border-gray-300 rounded-lg p-3 text-sm focus:ring-2 focus:ring-blue-500 focus:border-blue-500 outline-none"})]}),e.jsx("p",{className:"text-xs text-gray-400 text-center leading-relaxed",children:t("uninstall.privacyNotice",{},"By submitting, we collect your account and usage data to help us understand how to improve SkoolTranslate.")}),e.jsx("button",{type:"submit",disabled:!r||g,className:"w-full bg-blue-600 text-white py-3 rounded-lg font-medium hover:bg-blue-700 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:g?t("uninstall.submitting",{},"Sending..."):t("uninstall.submit",{},"Send feedback")}),e.jsxs(w,{to:"/",className:"flex items-center justify-center gap-1 text-sm text-gray-400 hover:text-gray-600 mt-3",children:[e.jsx(F,{className:"w-3 h-3"}),t("uninstall.skip",{},"Skip â take me to homepage")]})]})]})}),e.jsx("div",{className:"md:col-span-5 bg-gradient-to-br from-blue-50/70 to-indigo-50/50 p-6 md:p-8 flex flex-col justify-between",children:e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 text-blue-900 font-bold mb-2",children:[e.jsx(K,{className:"w-5 h-5 text-blue-600 shrink-0"}),e.jsx("h2",{className:"text-lg",children:t("uninstall.troubleshooting.title",{},"Not working?")})]}),e.jsx("p",{className:"text-sm text-blue-700 font-medium mb-6",children:t("uninstall.troubleshooting.subtitle",{},"Almost always it is fixed in a minute.")}),e.jsxs("ul",{className:"space-y-4",children:[e.jsxs("li",{className:"flex flex-col gap-2",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"flex items-center justify-center w-5 h-5 rounded-full bg-blue-100 text-blue-700 text-xs font-semibold shrink-0 mt-0.5",children:"1"}),e.jsx("p",{className:"text-sm text-gray-700 leading-relaxed",children:t("uninstall.troubleshooting.step1",{},"If you don't see subtitles, make sure you are logged in (if not, log out and log back in) and make sure the 'Activate SkoolTranslate' switch is active.")})]}),e.jsx("div",{className:"pl-8 max-w-xs",children:e.jsx("div",{className:"rounded-lg border border-blue-100 overflow-hidden bg-white shadow-sm cursor-zoom-in hover:opacity-95 transition-all duration-200",onClick:()=>d("/images/uninstall/enable_switch.png"),children:e.jsx("img",{src:"/images/uninstall/enable_switch.png",alt:"Activate SkoolTranslate Switch",className:"w-full h-auto object-contain"})})})]}),e.jsxs("li",{className:"flex flex-col gap-2",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"flex items-center justify-center w-5 h-5 rounded-full bg-blue-100 text-blue-700 text-xs font-semibold shrink-0 mt-0.5",children:"2"}),e.jsx("p",{className:"text-sm text-gray-700 leading-relaxed",children:t("uninstall.troubleshooting.step2",{},"Click CC on the video player and activate the original subtitles.")})]}),e.jsxs("div",{className:"text-xs text-orange-600 font-medium pl-8 flex items-start gap-1",children:[e.jsx("span",{className:"shrink-0",children:"â ï¸"}),e.jsx("span",{children:t("uninstall.troubleshooting.loomNote",{},"On Loom, turn off the 'Closed Captions' option to display our subtitles in front.")})]}),e.jsx("div",{className:"pl-8 max-w-sm w-full mt-1",children:e.jsxs("div",{className:"border border-blue-100 rounded-xl bg-white p-2 shadow-sm overflow-hidden flex flex-col gap-2",children:[e.jsxs("div",{className:"relative aspect-[3/1.6] bg-gray-50 flex items-center justify-center overflow-hidden rounded-lg cursor-zoom-in hover:opacity-95 transition-all duration-200",onClick:()=>d(a[c].url),children:[e.jsx("img",{src:a[c].url,alt:a[c].label,className:"w-full h-full object-contain p-1"}),e.jsx("button",{type:"button",onClick:s=>{s.stopPropagation(),m(l=>l===0?a.length-1:l-1)},className:"absolute left-1.5 top-1/2 -translate-y-1/2 bg-black/40 hover:bg-black/60 text-white w-6 h-6 rounded-full flex items-center justify-center text-xs transition-colors font-bold outline-none select-none",children:"â¹"}),e.jsx("button",{type:"button",onClick:s=>{s.stopPropagation(),m(l=>l===a.length-1?0:l+1)},className:"absolute right-1.5 top-1/2 -translate-y-1/2 bg-black/40 hover:bg-black/60 text-white w-6 h-6 rounded-full flex items-center justify-center text-xs transition-colors font-bold outline-none select-none",children:"âº"})]}),e.jsx("p",{className:"text-[10px] text-center text-gray-500 font-medium mt
11-0.5",children:a[c].label}),e.jsx("div",{className:"flex justify-center gap-1.5 mb-0.5",children:a.map((s,l)=>e.jsx("button",{type:"button",onClick:o=>{o.stopPropagation(),m(l)},className:`w-1.5 h-1.5 rounded-full transition-all outline-none ${c===l?"bg-blue-600 w-3":"bg-gray-300"}`},l))})]})})]}),e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"flex items-center justify-center w-5 h-5 rounded-full bg-blue-100 text-blue-700 text-xs font-semibold shrink-0 mt-0.5",children:"3"}),e.jsx("p",{className:"text-sm text-gray-700 leading-relaxed",children:t("uninstall.troubleshooting.step3",{},'If the extension shows "no subtitles", that video may not include a subtitle track.')})]}),e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"flex items-center justify-center w-5 h-5 rounded-full bg-blue-100 text-blue-700 text-xs font-semibold shrink-0 mt-0.5",children:"4"}),e.jsx("p",{className:"text-sm text-gray-700 leading-relaxed",children:t("uninstall.troubleshooting.step4",{},'If the translation is activated but nothing appears, reload the page (F5 several times if necessary) and toggle the "Activate SkoolTranslate" switch.')})]}),e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"flex items-center justify-center w-5 h-5 rounded-full bg-blue-100 text-blue-700 text-xs font-semibold shrink-0 mt-0.5",children:"5"}),e.jsx("p",{className:"text-sm text-gray-700 leading-relaxed",children:t("uninstall.troubleshooting.step5",{},"If your session expired, log in again inside the extension and retry.")})]}),e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"flex items-center justify-center w-5 h-5 rounded-full bg-blue-100 text-blue-700 text-xs font-semibold shrink-0 mt-0.5",children:"6"}),e.jsx("p",{className:"text-sm text-gray-700 leading-relaxed",children:t("uninstall.troubleshooting.step6",{},"If it still doesn't work, please leave us the URL of the video that failed in the form so we can study it and make future improvements.")})]}),e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"flex items-center justify-center w-5 h-5 rounded-full bg-blue-100 text-blue-700 text-xs font-semibold shrink-0 mt-0.5",children:"7"}),e.jsx("p",{className:"text-sm text-gray-700 leading-relaxed",children:t("uninstall.troubleshooting.step7",{},"If the voice (TTS) doesn't work or cuts off, reload the tab. If it still fails, restart your browser to reset the speech engine.")})]})]})]})})]}),p&&e.jsx("div",{className:"fixed inset-0 z-[100] bg-black/80 flex items-center justify-center p-4 cursor-zoom-out animate-fade-in",onClick:()=>d(null),children:e.jsxs("div",{className:"relative max-w-4xl w-full max-h-[90vh] flex flex-col items-center justify-center",children:[e.jsx("img",{src:p,alt:"Zoomed View",className:"max-w-full max-h-[85vh] object-contain rounded-lg shadow-2xl border border-white/10"}),e.jsx("button",{type:"button",onClick:()=>d(null),className:"absolute top-4 right-4 bg-black/50 hover:bg-black/75 text-white rounded-full w-8 h-8 flex items-center justify-center transition-colors border border-white/20 text-sm font-bold",children:"â"})]})}),M&&e.jsx("div",{className:"fixed inset-0 z-[110] bg-black/70 flex items-center justify-center p-4 animate-fade-in",onClick:()=>u(!1),children:e.jsxs("div",{className:"bg-white rounded-2xl shadow-2xl max-w-lg w-full overflow-hidden",onClick:s=>s.stopPropagation(),children:[e.jsxs("div",{className:"bg-gradient-to-r from-amber-500 to-orange-500 p-5 flex items-start justify-between gap-3",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(z,{className:"w-6 h-6 text-white shrink-0 mt-0.5"}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-lg font-bold text-white",children:t("uninstall.tooExpensiveModal.title",{},"We hear you â let's be transparent")}),e.jsx("p",{className:"text-sm text-amber-50 mt-0.5",children:t("uninstall.tooExpensiveModal.subtitle",{},"Why we can't go lower than our current plans")})]})]}),e.jsx("button",{type:"button",onClick:()=>u(!1),"aria-label":"Close",className:"text-white/80 hover:text-white shrink-0",children:e.jsx(O,{className:"w-5 h-5"})})]}),e.jsxs("div",{className:"p-6 space-y-4",children:[e.jsx("p",{className:"text-sm text-gray-700 leading-relaxed",children:t("uninstall.tooExpensiveMod
11al.body1",{},"We completely understand â translation should be affordable. But AI translation isn't free, and neither is the GPU time we use to render subtitles in real time.")}),e.jsx("p",{className:"text-sm text-gray-700 leading-relaxed",children:t("uninstall.tooExpensiveModal.body2",{},"We use translation APIs that charge around $20 per million characters. We pass most of that cost to you and add a small margin for infrastructure, support, and the work to render real-time subtitles in 110 languages.")}),e.jsx("p",{className:"text-sm text-gray-700 leading-relaxed",children:t("uninstall.tooExpensiveModal.body3",{},"Our paid plans include a Free tier with 5,000 chars/month so you can try before spending. If that doesn't fit your needs, the Lite plan starts at $2.99/mo â the cheapest we can offer without losing money on every translation.")}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-2 pt-2",children:[e.jsx("button",{type:"button",onClick:()=>u(!1),className:"flex-1 px-4 py-2.5 rounded-lg bg-gray-100 hover:bg-gray-200 text-gray-700 font-medium text-sm transition-colors",children:t("uninstall.tooExpensiveModal.closeButton",{},"I understand")}),e.jsx("a",{href:"/pricing",className:"flex-1 px-4 py-2.5 rounded-lg bg-gradient-to-r from-orange-500 to-amber-500 hover:from-orange-400 hover:to-amber-400 text-white font-medium text-sm text-center transition-colors shadow-md",children:t("uninstall.tooExpensiveModal.seePlansButton",{},"See plans")})]})]})]})})]})}export{Y 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.