1import{u as le,_ as ue}from"./useWorkspaceInsert-DY_2ip2F-29.js";import{_ as ce}from"./ReportContent-VdHEl8HJ-29.js";import de from"./Testimonials-kJisZ5MW-29.js";import he from"./Feature-DHNL6Ihq-29.js";import pe from"./HowToWork-DVsS-Zlt-29.js";import ye from"./FAQ-BxG5g6Hl-29.js";import ge from"./Benefits-BTRTaa0g-29.js";import{f as S,e as me,s as ke,c as W,a as fe,b as be,d as we}from"#entry";import{U as d,H as p,O as l,a8 as R,r as Y,$ as t,a0 as i,B as a,a1 as h,ag as ve,a9 as G,ae as xe,F,ab as Te,aa as _e,V as L,a3 as I,j as Ce,i as _}from"./lazy-qrcode-oXPcgXJC-29.js";import"./lazy-pdf-GO-7vVHk-29.js";import{_ as De}from"./_plugin-vue_export-helper-DlAUqK2U-29.js";import{r as $e}from"./ArrowPathIcon-CkyHREyi-29.js";import{r as qe}from"./DocumentDuplicateIcon-DdDKQlq1-29.js";import{r as Ne}from"./MicrophoneIcon-CFKRClWn-29.js";import{r as Ye}from"./PaperClipIcon-B41KEeML-29.js";import{r as Ie}from"./SparklesIcon-C8fouFii-29.js";import{r as Se}from"./ClipboardDocumentIcon-DfvaZB1o-29.js";import"./useWorkspaceHost-DU2TCSNo-29.js";import"./FeatureIcon-CGq9ZIrf-29.js";import"./nuxt-link-D_rgCK5z-29.js";import"./index-BvZBNbWF-29.js";const Pe={__name:"ThankYouLandingPage",setup(V){const{t:e}=S(),y=[{label:e("thankyou.features.instantCreation.label")||"Instant Note Creation",title:e("thankyou.features.instantCreation.title")||"Quickly Write Heartfelt Thank You Notes",description:e("thankyou.features.instantCreation.description")||"No more struggling for words. Just enter who you want to thank and whyâour tool instantly creates a warm, genuine thank you note. Perfect for busy days or last-minute gratitude.",linkText:e("thankyou.features.instantCreation.linkText")||"Start Your Thank You Note",link:"#",iconBgClass:"bg-rose-100",iconClass:"text-rose-600",iconType:"lightning",imageSrc:"https://project.deletetweets.ai/teachany_images/tools/thanks1.webp",imageAlt:e("thankyou.features.instantCreation.imageAlt")||"The picture shows a little girl writing a thank you letter",gradientClass:"from-rose-400 to-orange-300"},{label:e("thankyou.features.personalTouch.label")||"Personal Touch for Every Message",title:e("thankyou.features.personalTouch.title")||"Customize Notes for Any Occasion",description:e("thankyou.features.personalTouch.description")||"Easily adjust the tone and details to fit your situation. Whether you're expressing gratitude to a coworker, teacher, friend, or family member, your note will feel personal and sincere.",linkText:e("thankyou.features.personalTouch.linkText")||"Personalize Your Note",link:"#",iconBgClass:"bg-indigo-100",iconClass:"text-indigo-600",iconType:"user",imageSrc:"https://project.deletetweets.ai/teachany_images/tools/thanks2.webp",imageAlt:e("thankyou.features.personalTouch.imageAlt")||"Image showing customizable thank you note",gradientClass:"from-indigo-400 to-teal-300"}],g=[{title:e("thankyou.steps.enterDetails.title")||"Enter Recipient Details",description:e("thankyou.steps.enterDetails.description")||"Tell us who you want to thank and what they did. This helps make your thank you note more personal and meaningful.",iconType:"input",iconBgClass:"bg-green-100",iconClass:"text-green-600"},{title:e("thankyou.steps.chooseTone.title")||"Choose Tone and Occasion",description:e("thankyou.steps.chooseTone.description")||"Pick the right moodâformal, friendly, or casualâand select the occasion. This makes every note fit your relationship and message.",iconType:"check",iconBgClass:"bg-yellow-100",iconClass:"text-yellow-600"},{title:e("thankyou.steps.reviewSend.title")||"Review and Send",description:e("thankyou.steps.reviewSend.description")||"Get your thank you note, make any changes you want, then copy, download, or share it. Express your gratitude online in minutes.",iconType:"share",iconBgClass:"bg-teal-100",iconClass:"text-teal-600"}],m=[{title:e("thankyou.benefitsData.saveTime.title")||"Save Time and Effort",description:e("thankyou.benefitsData.saveTime.description")||"Create thoughtful thank you notes online in seconds. No templates, no stressâjust genuine messages.",points:[e("thankyou.benefitsData.saveTime.points.0")||"Ready-to-use in moments",e("thankyou.benefitsData.saveTime.points.1")||"No writing skills needed",e("thankyou.benefitsData.saveTime.points.2")||"Great for busy people"],iconName:"lightning",iconBgClass:"bg-green-50",iconColor:"text-green-600"},{title:e("thankyou.benefitsData.fits.title")||"Fits Any Situation",description:e("thankyou.benefitsData.fits.description")||"Every note is tailored to your relationship and occasion, so your gratitude always feels real.",points:[e("thankyou.benefitsData.fits.points.0")||"Personalized for work, school, or life",e("thankyou.benefitsData.fits.points.1")||"Adjusts to your style",e("thankyou.benefitsData.fits.points.2")||"Make
1s every thank you special"],iconName:"user",iconBgClass:"bg-blue-50",iconColor:"text-blue-600"},{title:e("thankyou.benefitsData.professional.title")||"Professional and Polished",description:e("thankyou.benefitsData.professional.description")||"Your thank you notes are clear, well-written, and leave a great impression.",points:[e("thankyou.benefitsData.professional.points.0")||"Error-free messages",e("thankyou.benefitsData.professional.points.1")||"Positive, friendly tone",e("thankyou.benefitsData.professional.points.2")||"Easy to copy or share"],iconName:"profession",iconBgClass:"bg-yellow-50",iconColor:"text-yellow-600"}],w=[{name:e("thankyou.testimonialsData.emily.name")||"Emily Chen",designation:e("thankyou.testimonialsData.emily.designation")||"Project Manager",quote:e("thankyou.testimonialsData.emily.quote")||"The thank you note generator made it easy to send sincere appreciation to my team after a big project. The messages sounded genuine and saved me so much time.",image:"https://video.deletetweets.ai/Transmonkey/homepage/user5.webp"},{name:e("thankyou.testimonialsData.james.name")||"James Lee",designation:e("thankyou.testimonialsData.james.designation")||"High School Teacher",quote:e("thankyou.testimonialsData.james.quote")||"I used this tool to thank students and colleagues. It saved me time and made every note feel personal. I love how easy it is to use.",image:"https://video.deletetweets.ai/Transmonkey/homepage/user6.webp"},{name:e("thankyou.testimonialsData.sarah.name")||"Sarah Patel",designation:e("thankyou.testimonialsData.sarah.designation")||"Graduate Student",quote:e("thankyou.testimonialsData.sarah.quote")||"Writing thank you notes for professors and mentors was so much easierâand the notes sounded heartfelt.",image:"https://video.deletetweets.ai/Transmonkey/homepage/user1.webp"}],b=[{question:e("thankyou.faqsData.howItWorks.question")||"How does this thank you note generator work?",answer:e("thankyou.faqsData.howItWorks.answer")||"Our online thank you note generator is simple to use. Just enter the recipient's name and the reason you want to thank them. The tool instantly creates a personalized thank you note for you. You can review the message, make edits, and use it however you likeâno writing experience needed.",isOpen:!0},{question:e("thankyou.faqsData.changeNote.question")||"Can I change the note after it's generated?",answer:e("thankyou.faqsData.changeNote.answer")||"Yes! Once the thank you note is created, you can edit the text to add your own touch. Adjust the tone, add extra details, or rewrite any part until it feels just right. You're always in control of the final message.",isOpen:!1},{question:e("thankyou.faqsData.kinds.question")||"What kinds of thank you notes can I create?",answer:e("thankyou.faqsData.kinds.answer")||"You can use this tool to write thank you notes for almost any occasion. It works great for thanking colleagues, teachers, friends, family, clients, or anyone who has helped or supported you. Whether it's for a gift, a job interview, an act of kindness, or daily support, you'll find it easy to express your gratitude.",isOpen:!1},{question:e("thankyou.faqsData.safety.question")||"Is my information safe when using the generator?",answer:e("thankyou.faqsData.safety.answer")||"Your privacy is important. The details you enter are only used to create your thank you note and are not stored or shared. You can use the tool with confidence, knowing your information stays private.",isOpen:!1},{question:e("thankyou.faqsData.writing.question")||"Do I need to be good at writing to use this tool?",answer:e("thankyou.faqsData.writing.answer")||"Not at all! This thank you note generator is made for everyone. You don't need to be a writer. Just share a few details, and the tool does the rest. You'll get a polished, thoughtful note every time.",isOpen:!1}];return(s,P)=>{const C=de;return d(),p("div",null,[l(he,{title:s.$t("thankyou.feature.title")||"Express Your Gratitude Online with Personalized Thank You Notes",description:s.$t("thankyou.feature.description")||"Easily create thoughtful, personalized thank you notes online for colleagues, teachers, friends, or any special moment. Our thank you note generator helps you express gratitude quickly and sincerely.",features:y},null,8,["title","description"]),l(pe,{title:s.$t("thankyou.howtowork.title")||"How to Create a Personalized Thank You Note Online",description:s.$t("thankyou.howtowork.description")||"Save time and make every thank you memorable. With just a few simple steps, you can craft a professional, heartfelt thank you note that leaves a lasting impression.",ctaText:s.$t("thankyou.howtowork.ctaText")||"Start Creating Your Thank You Note",steps:g,routePath:"/tools/thank-you-note"},null,8,["title","description","ctaText"]),l(ge,{title:s.$t("thankyou.benefits.title")||"Why Choose Our Online Thank You Note Generator?",subt
1itle:s.$t("thankyou.benefits.subtitle")||"Show your appreciation in any situationâquickly and sincerely",benefitsData:m},null,8,["title","subtitle"]),l(C,{title:s.$t("thankyou.testimonials.title")||"Trusted by Professionals, Teachers, and Individuals Worldwide",description:s.$t("thankyou.testimonials.description")||"See how our online thank you note generator helps users express gratitude effortlessly and make every message special.",testimonials:w},null,8,["title","description"]),l(ye,{title:s.$t("thankyou.faq.title")||"Frequently Asked Questions About Our Thank You Note Generator",subtitle:s.$t("thankyou.faq.subtitle")||"Everything you need to know about creating personalized, meaningful thank you notes online",customFaqs:b},null,8,["title","subtitle"])])}}},je={class:"px-4 py-8 md:py-12"},Oe={class:"p-6 md:p-10 max-w-3xl mx-auto bg-white dark:bg-gray-800 rounded-lg shadow-sm"},Ae={class:"text-center mb-10"},Be={class:"text-3xl font-bold text-gray-900 dark:text-gray-100 mb-3"},Me={class:"text-md text-gray-600 dark:text-gray-400"},Ee={class:"flex space-x-4 mb-6"},ze={for:"recipient-type",class:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2"},We={disabled:"",value:""},Re=["value"],Ge={for:"thanks-reason",class:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2"},Fe={class:"relative rounded-md shadow-sm"},Le=["placeholder"],Ve={class:"absolute top-3 left-3 flex items-center space-x-2 text-gray-400 dark:text-gray-500"},He=["aria-label"],Ue={class:"absolute top-3 right-3 flex items-center space-x-2 text-gray-400 dark:text-gray-500"},Je=["aria-label"],Qe={class:"pt-4"},Ke=["disabled"],Xe={key:0,class:"flex items-center"},Ze={key:1,class:"flex items-center"},et={key:0,class:"mt-10 p-6 border border-blue-100 dark:border-blue-900 rounded-lg bg-blue-50 dark:bg-blue-900/30 shadow-inner"},tt={class:"flex justify-between mb-4"},ot={class:"text-xl font-semibold text-gray-800 dark:text-gray-200"},at={class:"flex space-x-3"},nt={class:"prose prose-sm dark:prose-invert max-w-none whitespace-pre-wrap text-gray-700 dark:text-gray-300 bg-white dark:bg-gray-800 p-6 rounded-md border border-gray-100 dark:border-gray-700 shadow-sm"},st={__name:"thank-you-note",async setup(V){let e,y;const{t:g,locale:m}=S(),w=me(),{user:b,canUseNumber:s}=ke(w),P=_("loginModal"),C=_("payModal"),v=S(),j=_("isWorkspace"),O=_("isOffice");try{const{data:o}=([e,y]=R(()=>W(`i18n_thankyounote_${m.value}`,()=>$fetch(`https://project.deletetweets.ai/teachany_language/tools_generate_version1_new/${m.value}.json`))),e=await e,y(),e);v.mergeLocaleMessage(v.locale.value,o.value)}catch{}try{const{data:o}=([e,y]=R(()=>W(`i18n_content_thankyounote_${m.value}`,()=>$fetch(`https://project.deletetweets.ai/teachany_language/tools_content_version2/${m.value}.json`))),e=await e,y(),e);v.mergeLocaleMessage(v.locale.value,o.value)}catch{}const{openaiFetch:H}=we(),A=fe(),B=Y(["Teacher","Classmate","Friend","Family Member","Colleague","Manager","Client","Service Provider","Volunteer","Mentor","Other"].map((o,n)=>g(`thankyounote.recipientTypes[${n}]`)||o)),u=Ce({recipientType:"",reason:""});A.query.text&&(u.reason=A.query.text);const k=Y(!1),r=Y(null),{isInserting:U,insertStatusType:J,insertStatusMessage:Q,insertButtonLabel:K,canInsert:X,insertWorkspaceResult:Z,resetWorkspaceInsertStatus:M}=le({toolSlug:"thank-you-note",title:"Thank You Note",content:r,hasContent:()=>!!r.value}),ee=()=>{u.recipientType="",u.reason="",r.value=null,M()},te=()=>{u.recipientType=B.value[0],u.reason=g("thankyounote.demo.reason")||"Active participation in class, helping other students after completing work, surprises after class, and continued encouragement and support."},oe=()=>{r.value&&navigator.clipboard.writeText(r.value).then(()=>{alert("Thank you note copied to clipboard!")}).catch(o=>{})},ae=async()=>{if(!b.value){P.value.open();return}if(s.value===0&&!b.value.is_subscribed){C.value.open();return}k.value=!0,r.value=null,M();const o={payload:{messages:[{role:"system",content:`You are a professional writing assistant, especially good at writing genuine, warm thank you notes. Please generate a concise, genuine, and polite thank you note based on the user's provided recipient and reason. 2 3Please note: 41. Keep the thank you note short and powerful, no more than 200 characters 52. Use warm, genuine language, avoid being too formal or empty 63. Adjust the tone and address (e.g., more respectful to teachers, more friendly to friends) based on the recipient 74. Specifically mention the reason provided by the user, but can be slightly embellished 85. The ending should be polite and polite`},{role:"user",content:`Please generate a thank you note for the following situation: 9 10Recipient: ${u.recipientType} 11Reason: ${u.reason} 12 13Please provide the thank you note content directly without any additional explanation or annotation.`}],temperature:.7,top_p:1}};try{const n=await H.chat(o);if(n.ok){const D=n.body.getReader(),$=new TextDecoder;let f="",c="";try{for(;;){const{done:E,value:se}=await D.read();if(E)break;const re=$.decode(se,{stream:!0}),ie=c+re;c="";const x=ie.split(` 14`);for(let q=0;q<x.length-1;q++){const T=x[q].trim();if(T.startsWith("data: ")){const z=T.substring(6);if(z!=="[DONE]")try{const N=JSON.parse(z);N.content&&(f+=N.content,r.value=f)}catch{}}else T&&(f+=T)}c=x[x.length-1],r.value=f}
14w.addFreeUsageCnt()}catch{r.value="Error reading response data, please try again"}finally{k.value=!1}}else r.value="Request failed, please check your network connection and try again",k.value=!1}catch{r.value="Error generating thank you note, please try again",k.value=!1}},ne=o=>{};return be({title:g("thankyounote.webpage_title")||"Thank You Note Generator: Create Personalized Notes Online | TeachAny",meta:[{name:"keywords",content:""},{name:"description",content:g("thankyounote.webpage_des")||"Instantly create personalized thank you notes online. Make every message memorable and express your gratitude with ease for any occasion."},{property:"og-site_name",content:"Thank You Note Generator"},{property:"og:title",content:"Thank You Note Generator: Create Personalized Notes Online | TeachAny"},{property:"og:image",content:""},{property:"og:description",content:"Instantly create personalized thank you notes online. Make every message memorable and express your gratitude with ease for any occasion."}]}),(o,n)=>{const D=ue,$=ce,f=Pe;return d(),p(F,null,[t("div",je,[t("div",Oe,[t("div",Ae,[t("h1",Be,i(o.$t("thankyounote.page.title")||"Thank You Note"),1),t("p",Me,i(o.$t("thankyounote.page.description")||"Generate a customized thank you note to express your gratitude!"),1)]),t("div",Ee,[t("button",{onClick:ee,class:"text-sm flex items-center text-indigo-600 hover:text-indigo-800 dark:text-indigo-400 dark:hover:text-indigo-300 font-medium"},[l(a($e),{class:"w-4 h-4 mr-1"}),h(" "+i(o.$t("thankyounote.page.clearButton")||"Clear Input"),1)]),t("button",{onClick:te,class:"text-sm flex items-center text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-300 font-medium"},[l(a(qe),{class:"w-4 h-4 mr-1"}),h(" "+i(o.$t("thankyounote.page.demoButton")||"Example"),1)])]),t("form",{onSubmit:ve(ae,["prevent"]),class:"space-y-8"},[t("div",null,[t("label",ze,[h(i(o.$t("thankyounote.page.recipientType.label")||"Recipient Type:")+" ",1),n[2]||(n[2]=t("span",{class:"text-red-500"},"*",-1))]),G(t("select",{id:"recipient-type","onUpdate:modelValue":n[0]||(n[0]=c=>u.recipientType=c),required:"",class:"block w-full px-3 py-3 border border-gray-200 dark:border-gray-600 bg-gray-50 dark:bg-gray-700 rounded-lg shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent sm:text-sm dark:text-white"},[t("option",We,i(o.$t("thankyounote.page.recipientType.placeholder")||"Please select recipient type"),1),(d(!0),p(F,null,Te(B.value,c=>(d(),p("option",{key:c,value:c},i(c),9,Re))),128))],512),[[xe,u.recipientType]])]),t("div",null,[t("label",Ge,[h(i(o.$t("thankyounote.page.reasonLabel.label")||"Describe why you are thanking the recipient:")+" ",1),n[3]||(n[3]=t("span",{class:"text-red-500"},"*",-1))]),t("div",Fe,[G(t("textarea",{id:"thanks-reason","onUpdate:modelValue":n[1]||(n[1]=c=>u.reason=c),required:"",rows:"6",placeholder:o.$t("thankyounote.page.reasonLabel.placeholder")||"Active participation in class, helping other students after completing work, surprises after class, etc...",class:"block w-full pl-10 pr-10 py-3 border border-gray-200 dark:border-gray-600 bg-gray-50 dark:bg-gray-700 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent sm:text-sm dark:text-white placeholder-gray-400 dark:placeholder-gray-500 resize-none"},null,8,Le),[[_e,u.reason]]),t("div",Ve,[t("button",{type:"button",class:"hover:text-gray-600 dark:hover:text-gray-300","aria-label":o.$t("thankyounote.page.ariaLabels.useMicrophoneInput")||"Use microphone to input"},[l(a(Ne),{class:"h-5 w-5"})],8,He)]),t("div",Ue,[t("button",{type:"button",class:"hover:text-gray-600 dark:hover:text-gray-300","aria-label":o.$t("thankyounote.page.ariaLabels.attachFile")||"Attach file"},[l(a(Ye),{class:"h-5 w-5"})],8,Je)])])]),t("div",Qe,[t("button",{type:"submit",class:"w-full flex justify-center py-3 px-4 border border-transparent rounded-full shadow-md text-lg font-semibold text-white bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 dark:focus:ring-offset-gray-800 transition duration-150 ease-in-out transform hover:scale-[1.02] disabled:opacity-70 disabled:cursor-not-allowed",disabled:k.value},[k.value?(d(),p("span",Ze,[n[4]||(n[4]=t("svg",{class:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[t("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),t("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)),h(" "+i(o.$t("thankyounote.page.buttons.generating")||"Generating..."),1)])):(d(),p("span",Xe,[l(a(Ie),{class:"w-5 h-5 mr-2 -ml-1"}),h(" "+i(o.$t("thankyounote.page.buttons.generate")||"Generate"),1)]))],8,Ke)])],32),r.value?(d(),p("div",et,[t("div",tt,[t("h2",ot,i(o.$t("thankyounote.page.results.title")||"Your Thank You Note:"),1),t("div",at,[t("button",{onClick:oe,class:"text-sm flex items-center text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-300 font-medium"},[l(a(Se),{class:"w-4 h-4 mr-1"}),h(" "+i(o.$t("thankyounote.page.results.copyButton")||"Copy"),1)]),a(j)||a(O)?(d(),L(D,{key:0,disabled:!a(X),loading:a(U),label:a(K),"status-message":a(Q),"status-type":a(J),onInsert:a(
14Z)},null,8,["disabled","loading","label","status-message","status-type","onInsert"])):I("",!0),l($,{"content-type":"thank-you-note",onReported:ne})])]),t("div",nt,i(r.value),1)])):I("",!0)])]),!a(j)&&!a(O)&&!a(b)?(d(),L(f,{key:0})):I("",!0)],64)}}},$t=De(st,[["__scopeId","data-v-d665ce2b"]]);export{$t 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.