/**
 * KB seed content — Hebrew + English for 10 support articles.
 * Refund window: 30 days. Vendor-first resolution: 48h. AI auto-refund cap: ₪50.
 */

export const SUPPORT_KB_SEED: Array<{
  slug: string;
  category: 'faq' | 'policy' | 'refund_rules' | 'redemption_rules' | 'internal';
  visibility: 'public' | 'internal';
  tags: string[];
  locales: {
    he: { title: string; body_md: string };
    en: { title: string; body_md: string };
  };
}> = [
  {
    slug: 'refund-policy-general',
    category: 'refund_rules',
    visibility: 'public',
    tags: ['החזר', 'מדיניות', 'refund', 'policy'],
    locales: {
      he: {
        title: 'מדיניות החזרים כללית',
        body_md: `## מדיניות החזרים

מולטידיל מאפשרת לבקש החזר כספי מלא תוך **30 ימים** ממועד הרכישה, בתנאי שהשובר לא מומש.

### תנאים לקבלת החזר

- השובר לא נוצל (סטטוס: "לא מומש")
- עברו פחות מ-30 ימים מיום הרכישה
- הבקשה הוגשה דרך מרכז התמיכה באפליקציה

### תהליך ההחזר

1. פתחו פנייה במרכז התמיכה
2. בחרו "בקשת החזר" וציינו את מספר ההזמנה
3. הצוות שלנו יטפל בפנייה תוך 24 שעות
4. ההחזר יזוכה לאמצעי התשלום המקורי תוך 5–7 ימי עסקים

לשאלות נוספות, פנו לתמיכה בצ'אט.`,
      },
      en: {
        title: 'General Refund Policy',
        body_md: `## Refund Policy

Multideal allows a full refund request within **30 days** of purchase, provided the voucher has not been redeemed.

### Conditions for Refund

- Voucher has not been used (status: "Unredeemed")
- Less than 30 days have passed since purchase date
- Request submitted through the in-app support center

### Refund Process

1. Open a support ticket in the app
2. Select "Refund Request" and provide your order number
3. Our team will handle the request within 24 hours
4. The refund will be credited to your original payment method within 5–7 business days

For additional questions, contact us via chat.`,
      },
    },
  },
  {
    slug: 'refund-window-days',
    category: 'refund_rules',
    visibility: 'public',
    tags: ['החזר', 'חלון זמן', 'refund', 'window'],
    locales: {
      he: {
        title: 'חלון זמן להגשת בקשת החזר',
        body_md: `## חלון זמן להגשת בקשת החזר

ניתן להגיש בקשת החזר תוך **30 ימים קלנדריים** ממועד ביצוע הרכישה.

### מה קורה אחרי 30 יום?

לאחר חלון 30 הימים, הבקשה נבדקת ידנית על ידי צוות התמיכה. ייתכן שתתבקשו לספק הסבר נוסף.

### מקרים מיוחדים

- **כשל טכני** — אם לא הצלחתם לממש את השובר בגלל בעיה טכנית, נטפל בבקשה ללא הגבלת זמן.
- **ספק לא הגיע** — אם הספק לא פתח את העסק ביום המוסכם, הבקשה תיבדק בדחיפות.

פנו אלינו עם כל פרטי ההזמנה הרלוונטיים.`,
      },
      en: {
        title: 'Refund Window Period',
        body_md: `## Refund Window Period

You may submit a refund request within **30 calendar days** from the date of purchase.

### What Happens After 30 Days?

After the 30-day window, requests are reviewed manually by the support team. You may be asked to provide additional explanation.

### Special Cases

- **Technical failure** — If you could not redeem your voucher due to a technical issue, we will process the request regardless of the time limit.
- **Vendor no-show** — If the vendor did not open on the agreed day, the request will be reviewed urgently.

Contact us with all relevant order details.`,
      },
    },
  },
  {
    slug: 'redemption-rules-qr',
    category: 'redemption_rules',
    visibility: 'public',
    tags: ['מימוש', 'QR', 'redemption', 'qr-code'],
    locales: {
      he: {
        title: 'כיצד לממש שובר — קוד QR',
        body_md: `## מימוש שובר עם קוד QR

כל שובר שנרכש במולטידיל כולל קוד QR ייחודי שמשמש לאימות ומימוש.

### שלבי המימוש

1. פתחו את האפליקציה ועברו לרשימת ה**שוברים שלי**
2. בחרו את השובר הרצוי ולחצו על **הצג קוד QR**
3. הציגו את הקוד לנציג הספק — הוא יסרוק אותו עם מכשיר הספק
4. לאחר הסריקה, הסטטוס ישתנה ל**מומש** אוטומטית

### שימו לב

- כל קוד QR תקף לשימוש חד-פעמי בלבד
- אין לשתף את הקוד עם אחרים לפני המימוש
- אם הקוד אינו נסרק, בקשו מהספק לנסות שוב, או פנו לתמיכה`,
      },
      en: {
        title: 'How to Redeem a Voucher — QR Code',
        body_md: `## Redeeming a Voucher with QR Code

Every voucher purchased on Multideal includes a unique QR code used for verification and redemption.

### Redemption Steps

1. Open the app and navigate to **My Vouchers**
2. Select the desired voucher and tap **Show QR Code**
3. Present the code to the vendor's representative — they will scan it with the vendor's device
4. After scanning, the status automatically changes to **Redeemed**

### Please Note

- Each QR code is valid for one-time use only
- Do not share the code with others before redemption
- If the code doesn't scan, ask the vendor to try again, or contact support`,
      },
    },
  },
  {
    slug: 'vendor-no-show-policy',
    category: 'policy',
    visibility: 'public',
    tags: ['ספק', 'לא הגיע', 'vendor', 'no-show'],
    locales: {
      he: {
        title: 'מדיניות אי-הגעת הספק',
        body_md: `## מה קורה אם הספק לא היה זמין?

אם ניסיתם לממש שובר והספק לא היה פתוח או סירב לקבל אתכם, מולטידיל תטפל בכך בדחיפות.

### תהליך הטיפול

1. פתחו פנייה מסוג **"ספק לא הגיע"** תוך 48 שעות מהאירוע
2. צרפו ראיות: תמונה של הדלת הסגורה, צ'ט עם הספק, תדפיס שעת ביקור
3. הספק יקבל **48 שעות** להגיב ולהסביר
4. אם לא ניתנה תשובה מניחה הדעת — יינתן החזר מלא אוטומטי

### מה נחשב כ"אי-הגעה"?

- העסק סגור בשעות הפעילות המוצהרות
- הספק סירב לכבד את השובר ללא סיבה סבירה
- ביטול ברגע האחרון ללא הצעת אלטרנטיבה`,
      },
      en: {
        title: 'Vendor No-Show Policy',
        body_md: `## What Happens If the Vendor Wasn't Available?

If you tried to redeem a voucher and the vendor was closed or refused to honor it, Multideal will handle this urgently.

### Process

1. Open a case of type **"Vendor No-Show"** within 48 hours of the incident
2. Attach evidence: photo of the closed door, chat with the vendor, visit timestamp
3. The vendor receives **48 hours** to respond and explain
4. If no satisfactory response is given — a full automatic refund is issued

### What Counts as a "No-Show"?

- Business is closed during declared operating hours
- Vendor refused to honor the voucher without reasonable cause
- Last-minute cancellation without offering an alternative`,
      },
    },
  },
  {
    slug: 'cannot-redeem-troubleshooting',
    category: 'faq',
    visibility: 'public',
    tags: ['מימוש', 'בעיה', 'troubleshooting', 'cannot-redeem'],
    locales: {
      he: {
        title: 'לא מצליחים לממש שובר — מה לעשות?',
        body_md: `## בעיות נפוצות במימוש שוברים

### קוד QR לא נסרק

- ודאו שהמסך בהירותו מוגדרת למקסימום
- נסו להחזיק את הטלפון במרחק של 10–15 ס"מ מהסורק
- נסו לצלם צילום מסך של הקוד ולהציג אותו

### השובר מוצג כ"פג תוקף"

- בדקו את תאריך תפוגת השובר בפרטי ההזמנה
- אם לדעתכם מדובר בשגיאה, פנו לתמיכה עם מספר ההזמנה

### הספק אומר שהשובר "כבר מומש"

- אם לא מימשתם את השובר — זו שגיאה חמורה
- פנו לתמיכה מיד עם תאריך ושעת הניסיון

### האפליקציה קורסת בעת הצגת QR

- עדכנו לגרסה האחרונה של האפליקציה
- אם הבעיה נמשכת, שלחו לנו דוח שגיאה מהגדרות האפליקציה`,
      },
      en: {
        title: "Can't Redeem Voucher — Troubleshooting Guide",
        body_md: `## Common Voucher Redemption Issues

### QR Code Won't Scan

- Ensure your screen brightness is at maximum
- Try holding the phone 10–15 cm from the scanner
- Try taking a screenshot of the code and presenting it instead

### Voucher Shows as "Expired"

- Check the expiration date in your order details
- If you believe this is an error, contact support with your order number

### Vendor Says Voucher "Already Redeemed"

- If you haven't used the voucher — this is a serious error
- Contact support immediately with the date and time of the attempt

### App Crashes When Showing QR

- Update to the latest version of the app
- If the issue persists, send us an error report from the app settings`,
      },
    },
  },
  {
    slug: 'billing-charges-faq',
    category: 'faq',
    visibility: 'public',
    tags: ['חיוב', 'תשלום', 'billing', 'charges'],
    locales: {
      he: {
        title: 'שאלות נפוצות — חיובים ותשלומים',
        body_md: `## חיובים ותשלומים במולטידיל

### מתי החיוב מתבצע?

החיוב מתבצע מיד עם אישור הרכישה. אינכם מחויבים עד שלא לחצתם על "אשר רכישה".

### ראיתי חיוב שלא ביצעתי — מה לעשות?

1. בדקו אם מישהו אחר עם גישה לחשבונכם ביצע רכישה
2. אם לא — דווחו מיד לצוות התמיכה
3. החיוב יוקפא בזמן הבדיקה

### כיצד להשיג חשבונית?

חשבונית נשלחת אוטומטית לכתובת המייל הרשומה. ניתן גם להוריד אותה מ**ההזמנות שלי → פרטי הזמנה**.

### אמצעי תשלום מקובלים

ויזה, מסטרקארד, אמריקן אקספרס, Bit, PayPal, Google Pay.`,
      },
      en: {
        title: 'Billing & Charges FAQ',
        body_md: `## Billing & Payments on Multideal

### When Is the Charge Made?

The charge occurs immediately upon purchase confirmation. You are not billed until you press "Confirm Purchase."

### I See a Charge I Didn't Make — What Should I Do?

1. Check if someone else with access to your account made a purchase
2. If not — report it immediately to the support team
3. The charge will be frozen during the investigation

### How to Get an Invoice?

An invoice is automatically sent to the registered email address. You can also download it from **My Orders → Order Details**.

### Accepted Payment Methods

Visa, Mastercard, Amex, Bit, PayPal, Google Pay.`,
      },
    },
  },
  {
    slug: 'guest-to-user-migration',
    category: 'faq',
    visibility: 'public',
    tags: ['אורח', 'חשבון', 'guest', 'account'],
    locales: {
      he: {
        title: 'מעבר ממשתמש אורח לחשבון מלא',
        body_md: `## מעבר ממשתמש אורח לחשבון רשום

רכשתם כאורח? ניתן להמיר את ההזמנה לחשבון מלא בקלות.

### שלבי ההמרה

1. פתחו את הקישור ש*נשלח למייל שלכם* בזמן הרכישה
2. לחצו על **"צרו חשבון"** ומלאו סיסמה
3. כל ההזמנות הקודמות מהמייל שלכם יועברו אוטומטית

### יתרונות חשבון מלא

- גישה להיסטוריית קניות
- מועדון לקוחות אצל ספקים מועדפים
- התראות על עסקאות חדשות
- ניהול שוברים וסטטוס מימוש בזמן אמת

### נתקלתם בבעיה?

אם הקישור פג תוקפו, לחצו **"שלחו לי קישור חדש"** בדף ההתחברות.`,
      },
      en: {
        title: 'Upgrading from Guest to Full Account',
        body_md: `## Converting from Guest to Registered Account

Purchased as a guest? You can easily convert to a full account.

### Conversion Steps

1. Open the link *sent to your email* at the time of purchase
2. Click **"Create Account"** and set a password
3. All previous orders from your email will be transferred automatically

### Benefits of a Full Account

- Access to purchase history
- Club membership at preferred vendors
- Alerts for new deals
- Voucher management and real-time redemption status

### Encountering Issues?

If the link has expired, click **"Send Me a New Link"** on the login page.`,
      },
    },
  },
  {
    slug: 'account-recovery',
    category: 'faq',
    visibility: 'public',
    tags: ['חשבון', 'שחזור', 'account', 'recovery'],
    locales: {
      he: {
        title: 'שחזור גישה לחשבון',
        body_md: `## שחזור גישה לחשבון מולטידיל

### שכחתם סיסמה?

1. לחצו **"שכחתי סיסמה"** בדף ההתחברות
2. הזינו את כתובת המייל הרשומה
3. קבלו קישור לאיפוס סיסמה תוך מספר דקות
4. הסיסמה החדשה פעילה לאחר הגדרה מחודשת

### אין גישה למייל הרשום?

פנו לצוות התמיכה עם:
- שם מלא
- מספר טלפון שרשמתם בהרשמה
- פרטי הזמנה אחרונה לאימות זהות

### חשבון ננעל?

לאחר מספר ניסיונות כושלים, החשבון ננעל ל-15 דקות. המתינו ונסו שוב, או פנו לתמיכה.`,
      },
      en: {
        title: 'Account Recovery',
        body_md: `## Recovering Access to Your Multideal Account

### Forgot Your Password?

1. Click **"Forgot Password"** on the login page
2. Enter your registered email address
3. Receive a password reset link within a few minutes
4. Your new password is active once set

### No Access to Registered Email?

Contact the support team with:
- Full name
- Phone number used during registration
- Recent order details for identity verification

### Account Locked?

After several failed attempts, the account is locked for 15 minutes. Wait and try again, or contact support.`,
      },
    },
  },
  {
    slug: 'push-notifications-faq',
    category: 'faq',
    visibility: 'public',
    tags: ['התראות', 'push', 'notifications', 'faq'],
    locales: {
      he: {
        title: 'שאלות נפוצות — התראות Push',
        body_md: `## התראות Push במולטידיל

### למה לאפשר התראות?

התראות Push מאפשרות לכם:
- לקבל עדכון כשעסקה חדשה זמינה מספק שאתם עוקבים אחריו
- תזכורת כשהשובר קרוב לפוג תוקף
- אישור מיידי לרכישה או מימוש

### כיצד להפעיל התראות?

1. גשו ל**הגדרות → התראות** באפליקציה
2. הפעילו את הסוגים הרצויים
3. אם ניתנת הרשאה ברמת המערכת — מוכן!

### ביטול התראות

ניתן לנהל התראות בכל עת מ**הגדרות המכשיר** (iOS: מרכז ידיעות, Android: הגדרות אפליקציה) או מהאפליקציה עצמה.`,
      },
      en: {
        title: 'Push Notifications FAQ',
        body_md: `## Push Notifications on Multideal

### Why Enable Notifications?

Push notifications allow you to:
- Get notified when a new deal is available from a vendor you follow
- Receive a reminder when your voucher is about to expire
- Get immediate confirmation of purchases or redemptions

### How to Enable Notifications?

1. Go to **Settings → Notifications** in the app
2. Enable the desired notification types
3. If system-level permission is granted — you're all set!

### Disabling Notifications

Notifications can be managed at any time from **Device Settings** (iOS: Notification Center, Android: App Settings) or from within the app.`,
      },
    },
  },
  {
    slug: 'contact-support',
    category: 'faq',
    visibility: 'public',
    tags: ['תמיכה', 'צור קשר', 'support', 'contact'],
    locales: {
      he: {
        title: 'כיצד ליצור קשר עם התמיכה',
        body_md: `## יצירת קשר עם צוות התמיכה של מולטידיל

### ערוצי תמיכה זמינים

**צ'אט באפליקציה** — הדרך המהירה ביותר. זמין 24/7, תגובה תוך מספר דקות בשעות הפעילות.

**פנייה דרך מרכז התמיכה** — לבעיות מורכבות הדורשות בדיקה. SLA: 24 שעות.

### מה לכלול בפנייה?

- מספר הזמנה (נמצא ב"ההזמנות שלי")
- תיאור מפורט של הבעיה
- צילומי מסך רלוונטיים אם יש

### זמני תגובה

| עדיפות | זמן תגובה |
|--------|------------|
| דחוף (ביטחון / הונאה) | עד 2 שעות |
| גבוהה | עד 4 שעות |
| רגילה | עד 24 שעות |

אנחנו כאן לעזור — פנו אלינו בחופשיות!`,
      },
      en: {
        title: 'How to Contact Support',
        body_md: `## Contacting Multideal Support Team

### Available Support Channels

**In-App Chat** — Fastest way. Available 24/7, response within minutes during business hours.

**Support Center Ticket** — For complex issues requiring investigation. SLA: 24 hours.

### What to Include in Your Request?

- Order number (found in "My Orders")
- Detailed description of the issue
- Relevant screenshots if available

### Response Times

| Priority | Response Time |
|----------|--------------|
| Urgent (safety / fraud) | Up to 2 hours |
| High | Up to 4 hours |
| Normal | Up to 24 hours |

We're here to help — feel free to reach out!`,
      },
    },
  },
];
