@buildbase/sdk 0.0.89 → 0.0.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/AGENTS.md +7 -3
  2. package/CHANGELOG.md +505 -0
  3. package/README.md +120 -3
  4. package/dist/cli.mjs +1 -1
  5. package/dist/css/styles.css +1 -1
  6. package/dist/index.cjs +1 -1
  7. package/dist/index.d.ts +1350 -11
  8. package/dist/index.mjs +1 -1
  9. package/dist/mcp/index.cjs +1 -1
  10. package/dist/mcp/index.d.ts +120 -2
  11. package/dist/mcp/index.mjs +1 -1
  12. package/dist/react/chunks/SettingsDialog-BVyV5Zfm.mjs +2 -0
  13. package/dist/react/chunks/SettingsDialog-Ch8X6WXy.cjs +2 -0
  14. package/dist/react/chunks/{SubscriptionDialog-B8FTFRtp.cjs → SubscriptionDialog-CGIvMKpT.cjs} +1 -1
  15. package/dist/react/chunks/SubscriptionDialog-g0LwHhbe.mjs +2 -0
  16. package/dist/react/chunks/ar-3aqWucom.mjs +2 -0
  17. package/dist/react/chunks/ar-DQVB89r8.cjs +2 -0
  18. package/dist/react/chunks/de-DO10bhnU.cjs +2 -0
  19. package/dist/react/chunks/de-HXQk5D6k.mjs +2 -0
  20. package/dist/react/chunks/es-BZsmhBN3.mjs +2 -0
  21. package/dist/react/chunks/es-Cxg-qhUh.cjs +2 -0
  22. package/dist/react/chunks/fr-COCMy3vW.cjs +2 -0
  23. package/dist/react/chunks/fr-rdnNHzxy.mjs +2 -0
  24. package/dist/react/chunks/hi-BB0Z-Dgn.cjs +2 -0
  25. package/dist/react/chunks/hi-t3RH7ITu.mjs +2 -0
  26. package/dist/react/chunks/ja-CDyla2g0.mjs +2 -0
  27. package/dist/react/chunks/ja-D92JgUlk.cjs +2 -0
  28. package/dist/react/chunks/react-DTq7A_PT.mjs +2 -0
  29. package/dist/react/chunks/react-DeapSbq6.cjs +2 -0
  30. package/dist/react/chunks/zh-C5HABZZV.mjs +2 -0
  31. package/dist/react/chunks/zh-DK2yA5wB.cjs +2 -0
  32. package/dist/react/index.cjs +1 -1
  33. package/dist/react/index.d.ts +1517 -14
  34. package/dist/react/index.mjs +1 -1
  35. package/docs/ERROR_CODES.md +218 -0
  36. package/docs/THEMING.md +89 -21
  37. package/docs/UI-CONFIG.md +23 -4
  38. package/docs/USER-IMPORT.md +320 -0
  39. package/package.json +2 -1
  40. package/dist/react/chunks/SettingsDialog-CKVE1PpH.mjs +0 -2
  41. package/dist/react/chunks/SettingsDialog-DrDmxFEj.cjs +0 -2
  42. package/dist/react/chunks/SubscriptionDialog-UN7o9Hqb.mjs +0 -2
  43. package/dist/react/chunks/ar-B2l90OZJ.cjs +0 -2
  44. package/dist/react/chunks/ar-DVVNZhXD.mjs +0 -2
  45. package/dist/react/chunks/de-BspJtvAC.mjs +0 -2
  46. package/dist/react/chunks/de-dURUqbl0.cjs +0 -2
  47. package/dist/react/chunks/es-DArjREi5.cjs +0 -2
  48. package/dist/react/chunks/es-vu4BmI3g.mjs +0 -2
  49. package/dist/react/chunks/fr-DVm5WCvZ.mjs +0 -2
  50. package/dist/react/chunks/fr-DhYDaYrX.cjs +0 -2
  51. package/dist/react/chunks/hi-C_nv_c1T.cjs +0 -2
  52. package/dist/react/chunks/hi-VW8xCj_K.mjs +0 -2
  53. package/dist/react/chunks/ja-C-b88dvw.mjs +0 -2
  54. package/dist/react/chunks/ja-CqtDkLHr.cjs +0 -2
  55. package/dist/react/chunks/react-CHivaJhA.mjs +0 -2
  56. package/dist/react/chunks/react-Ch_Suxxy.cjs +0 -2
  57. package/dist/react/chunks/zh-D1yfhUf0.mjs +0 -2
  58. package/dist/react/chunks/zh-D_tMpsNt.cjs +0 -2
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";var e=require("react/jsx-runtime"),t=require("react"),r=require("./react-Ch_Suxxy.cjs"),s=require("./SettingsDialog-DrDmxFEj.cjs");require("clsx"),require("tailwind-merge"),require("intl-messageformat"),require("@radix-ui/react-slot"),require("class-variance-authority"),require("lucide-react"),require("@radix-ui/react-dialog"),require("@radix-ui/react-icons"),require("@hookform/resolvers/zod"),require("react-hook-form"),require("@radix-ui/react-label"),require("zod"),require("@radix-ui/react-avatar"),require("@radix-ui/react-radio-group"),require("@radix-ui/react-scroll-area"),require("@radix-ui/react-separator"),require("@radix-ui/react-accordion"),require("@radix-ui/react-alert-dialog"),require("@radix-ui/react-popover"),require("@radix-ui/react-switch"),require("cmdk"),require("@radix-ui/react-select");const i={[r.BillingIntervals.Monthly]:"subscription.billingInterval.perMonth",[r.BillingIntervals.Quarterly]:"subscription.billingInterval.perQuarter",[r.BillingIntervals.Yearly]:"subscription.billingInterval.perYear"},n=(e,t,s)=>{if(!e||0===e)return null;let i;switch(s){case r.BillingIntervals.Yearly:i=t/12;break;case r.BillingIntervals.Quarterly:i=t/3;break;default:return null}const n=(e-i)/e*100;return n>0?Math.round(n):null},a=(e,t)=>r.getPricingVariant(e,t)?t:e.plan?.currency??t??"",l=e=>e.renewOnPeriod?"reset"===e.mode?"subscription.items.creditModeReset":"subscription.items.creditModeTopup":"subscription.items.creditModeLifetime",d=({planVersion:t})=>{const{t:s,fmtNum:i}=r.useTranslation(),n=t.creditGrant;return n?.enabled&&"object"==typeof n.creditPackage&&null!==n.creditPackage?e.jsxs("div",{className:"mb-3",children:[e.jsx("div",{className:"text-xs font-semibold text-info uppercase tracking-wider mb-1.5",children:s("subscription.items.credits")}),e.jsxs("div",{className:"space-y-1 text-sm",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-muted-foreground",children:n.renewOnPeriod?s("subscription.items.creditsPerMonth"):s("subscription.items.creditsOneTime")}),e.jsx("span",{className:"font-semibold text-info",children:i(n.creditPackage.creditAmount)})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-muted-foreground",children:s("subscription.items.creditRenewal")}),e.jsx("span",{className:"font-medium text-foreground",children:s(l(n))})]})]})]}):null},c=({hasVariant:t,price:s,displayCurrency:i,selectedInterval:n,getIntervalLabel:a})=>{const{t:l,fmtCents:d}=r.useTranslation();return e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-2xl font-bold text-foreground",children:t&&null!==s?(c=s,o=i,(null==c||0===c?"":d(c,o))||l("pricing.free")):"—"}),null!==s&&s>0&&t&&e.jsx("span",{className:"text-sm text-muted-foreground",children:a(n)})]});var c,o},o=({planVersion:t,isCurrent:s,trialUsedAt:i,currentStripePriceId:n})=>{const{t:a}=r.useTranslation(),l=t.trial;return l?.enabled&&l.durationDays>0&&!s&&!i&&!n?e.jsx("span",{className:"shrink-0 rounded-md bg-success/15 text-success px-2 py-0.5 text-xs font-semibold uppercase tracking-wider",children:a("subscription.trialBadge",{days:l.durationDays})}):null};exports.default=({open:u,onOpenChange:m,source:x,planVersions:p,currentPlanVersionId:b,currentStripePriceId:g,billingCurrency:h,currentMemberCount:f,trialUsedAt:y,workspaceName:j,initialInterval:v,initialCurrency:N,onSelectPlan:k,loading:w=!1})=>{const[_,I]=t.useState(!1),{t:S,formattingLocale:P,dir:C,fmtNum:q,fmtCents:B}=r.useTranslation(),M=e=>S(i[e]??i[r.BillingIntervals.Monthly]),[T,D]=t.useState(null),F=t.useRef(!1),L=t.useMemo(()=>r.getBillingIntervalAndCurrencyFromPriceId(g,p),[g,p]),z=L?.interval??null,V=L?.currency??null,K=t.useMemo(()=>r.getAvailableCurrenciesFromPlans(p),[p]),O=t.useMemo(()=>{const e=h?.trim().toLowerCase();return e?K.includes(e)?[e]:[]:K},[h,K]),[Q,U]=t.useState(v||z||r.BillingIntervals.Monthly),A=t.useMemo(()=>s.getVisitorCurrency(),[]),[G,W]=t.useState(()=>r.pickDefaultCurrency(O,[N,V,A])),E=h?.trim()||G;t.useEffect(()=>{if(u){U(v||z||r.BillingIntervals.Monthly);const e=N||V;e&&O.includes(e)?W(e):O.length>0&&!O.includes(G)&&W(r.pickDefaultCurrency(O,[A]))}},[u,v,N,z,V,O,A]);const R=p,Y=t.useMemo(()=>r.getAvailableBillingIntervals(R,E),[R,E]);t.useEffect(()=>{Y.length&&!Y.includes(Q)&&U(Y[0])},[Y,Q]);const $=t.useMemo(()=>(e=>{const t=new Map;return e.forEach(e=>{e.subscriptionItems?.forEach(e=>{t.has(e._id)||t.set(e._id,e)})}),Array.from(t.values())})(R),[R]),H=$.filter(e=>e.type===r.SubscriptionItemType.Feature),J=$.filter(e=>e.type===r.SubscriptionItemType.Limit),X=$.filter(e=>e.type===r.SubscriptionItemType.Quota),{emit:Z,ready:ee}=r.useFunnel(),te=t.useRef(!1),re=t.useRef(!1);t.useEffect(()=>{if(!u)return te.current&&!re.current&&Z("plan_picker_dismissed",{source:x,billing_interval:Q}),te.current=!1,void(re.current=!1);!te.current&&ee&&(te.current=!0,Z("plan_picker_opened",{source:x,plan_count:p.length,has_subscription:!!b,current_plan_version_id:b,billing_interval:Q,currency:E?E.toUpperCase():void 0}))},[u,ee]);const se=e=>{if(!b)return"new";if(e._id===b)return"interval_change";const t=p.find(e=>e._id===b),s=t?r.getBasePriceCents(t,E,Q):null,i=r.getBasePriceCents(e,E,Q);return null==s||null==i?"change":i>=s?"upgrade":"downgrade"},ie=async e=>{if(e===b&&z===Q||w||_||F.current)return;const t=p.find(t=>t._id===e);if(t){const s=r.getBasePriceCents(t,E,Q);re.current=!0,Z("plan_selected",{source:x,plan_version_id:e,plan_slug:t.plan?.slug,billing_interval:Q,currency:E?E.toUpperCase():void 0,value:null==s?void 0:r.toMajorUnits(s,E),change:se(t),is_free:!!t.plan?.isFreemium})}F.current=!0,I(!0),D(e);try{await k(e,Q,E),m(!1)}catch(e){}finally{F.current=!1,I(!1),D(null)}},ne=e=>r.getBasePriceCents(e,E,Q),ae=e=>!!e.pricingVariants?.some(e=>e.currency?.toLowerCase()===E.toLowerCase()),le=w||_,de=e=>{switch(e){case r.BillingIntervals.Monthly:return S("subscription.billingInterval.monthly");case r.BillingIntervals.Quarterly:return S("subscription.billingInterval.quarterly");case r.BillingIntervals.Yearly:return S("subscription.billingInterval.yearly");default:return S("subscription.billingInterval.monthly")}},ce=e=>{const t=e._id===b,r=z===Q;if(t&&r)return{labelKey:"subscription.currentPlan",variant:"outline",disabled:!0};if(t&&!r)return e.plan?.isFreemium?{labelKey:"subscription.currentPlan",variant:"outline",disabled:!0}:{labelKey:"_dynamic",dynamicLabel:S("subscription.switchToInterval",{interval:de(Q)}),variant:"default",disabled:!1};const s=e.trial?.enabled&&e.trial.durationDays>0&&!y&&!g;if(!b)return s?{labelKey:"_dynamic",dynamicLabel:S("subscription.startTrialDays",{days:e.trial.durationDays}),variant:"default",disabled:!1}:{labelKey:e.plan?.isFreemium?"subscription.startFree":"subscription.subscribe",variant:"default",disabled:!1};const i=R.findIndex(e=>e._id===b),n=R.findIndex(t=>t._id===e._id);return-1===i||-1===n?s?{labelKey:"_dynamic",dynamicLabel:S("subscription.startTrialDays",{days:e.trial.durationDays}),variant:"default",disabled:!1}:{labelKey:"subscription.checkout.select",variant:"default",disabled:!1}:n<i?{labelKey:"subscription.checkout.downgrade",variant:"outline",disabled:!1}:n>i?s?{labelKey:"_dynamic",dynamicLabel:S("subscription.startTrialDays",{days:e.trial.durationDays}),variant:"default",disabled:!1}:{labelKey:"subscription.checkout.upgrade",variant:"default",disabled:!1}:{labelKey:"subscription.checkout.select",variant:"default",disabled:!1}},oe=(e,t,s=r.BillingIntervals.Monthly)=>{if(t.type===r.SubscriptionItemType.Feature)return e.features?.[t.slug]??!1;if(t.type===r.SubscriptionItemType.Limit)return e.limits?.[t.slug]??null;if(t.type===r.SubscriptionItemType.Quota){const i=r.getQuotaDisplayWithVariant(e,E,t.slug,s);return i||r.getQuotaDisplayValue(e.quotas?.[t.slug],s)}return null},ue=(e,t,s)=>{if(t.type===r.SubscriptionItemType.Feature)return!0===e?"✓":"—";if(t.type===r.SubscriptionItemType.Limit)return((e,t,r)=>null==e||"number"!=typeof e||Number.isNaN(e)?"—":e<0?t:0===e?"—":r(e))(e,S("subscription.items.unlimited"),q);if(t.type===r.SubscriptionItemType.Quota){const i="object"==typeof e&&null!==e&&"included"in e?e:null,n=r.getQuotaDisplayParts(i,t.name.toLowerCase(),{currency:s,locale:P});return n?n.allowOverage?n.hasOverage?S("quota.includedWithOverage",{count:n.included,price:n.price,unit:n.unit}):S("quota.includedOnly",{count:n.included}):S("quota.includedHardLimit",{count:n.included}):"—"}return"—"};return e.jsx(r.Dialog,{open:u,onOpenChange:m,children:e.jsxs(r.DialogContent,{dir:C,className:"inset-0 w-screen h-screen max-w-none rounded-none translate-x-0 translate-y-0 p-0 flex flex-col",children:[e.jsxs("div",{className:"flex-shrink-0 px-4 py-4 sm:px-6 sm:py-6 border-b space-y-3 sm:space-y-4",children:[e.jsxs("div",{children:[e.jsx(r.DialogTitle,{className:"text-xl font-semibold",children:S("pricing.title")}),e.jsxs(r.DialogDescription,{className:"mt-1 text-sm",children:[S("subscription.choosePlanDescription"),j&&e.jsx("span",{className:"ml-1 font-medium text-foreground",children:S("subscription.forWorkspace",{name:j})})]})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 sm:gap-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[!h?.trim()&&O.length>1&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:S("pricing.currency")}),e.jsxs(s.Select,{value:G,onValueChange:W,children:[e.jsx(s.SelectTrigger,{"aria-label":S("pricing.selectCurrency"),className:"w-auto min-w-[6rem] font-medium",children:e.jsx(s.SelectValue,{})}),e.jsx(s.SelectContent,{children:O.map(t=>{const i=r.getCurrencyFlag(t);return e.jsx(s.SelectItem,{value:t,textValue:t.toUpperCase(),children:i?`${i} ${t.toUpperCase()}`:t.toUpperCase()},t)})})]})]}),h?.trim()&&e.jsx("span",{className:"text-xs text-muted-foreground",children:S("subscription.billingInCurrency",{currency:h.toUpperCase()})})]}),Y.length>1&&e.jsx("div",{className:"flex items-center gap-0.5 sm:gap-1 p-1 bg-muted rounded-lg w-full sm:w-auto",role:"group","aria-label":S("pricing.billingInterval"),children:Y.map(t=>{const s=z===t;return e.jsx("button",{onClick:()=>(e=>{e!==Q&&Z("billing_interval_changed",{from:Q,to:e}),U(e)})(t),"aria-pressed":Q===t,className:"flex-1 sm:flex-initial px-3 sm:px-4 py-2 text-sm font-medium rounded-md transition-all relative "+(Q===t?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),children:e.jsxs("span",{className:"flex items-center justify-center gap-1 sm:gap-1.5",children:[t===r.BillingIntervals.Monthly&&S("subscription.billingInterval.monthly"),t===r.BillingIntervals.Quarterly&&S("subscription.billingInterval.quarterly"),t===r.BillingIntervals.Yearly&&S("subscription.billingInterval.yearly"),t===r.BillingIntervals.Yearly&&e.jsx("span",{className:"text-xs px-1 sm:px-1.5 py-0.5 bg-success/15 text-success rounded-full font-semibold",children:S("pricing.save")}),s&&b&&e.jsx("span",{className:"hidden sm:inline text-xs px-1.5 py-0.5 bg-info/15 text-info rounded-full font-semibold",children:S("pricing.current")})]})},t)})})]})]}),e.jsx("div",{className:"flex-1 min-h-0 flex flex-col",children:h?.trim()&&0===O.length?e.jsxs("div",{className:"text-center py-12 px-4",children:[e.jsx("p",{className:"text-muted-foreground font-medium",children:S("pricing.noPlansCurrency")}),e.jsx("p",{className:"text-muted-foreground text-sm mt-2",children:S("pricing.noPlansCurrencyHint")})]}):0===R.length?e.jsx("div",{className:"text-center py-12 text-muted-foreground",children:e.jsx("p",{children:S("pricing.noPlans")})}):e.jsxs("div",{className:"flex-1 min-h-0 overflow-hidden bg-background",children:[e.jsx("div",{className:"md:hidden overflow-auto h-full",style:{maxHeight:"calc(100vh - 13rem)"},children:e.jsx("div",{className:"p-4 space-y-4",children:R.map(t=>{const s=t._id===b,i=ce(t),l=le&&t._id===T,u=ne(t),m=ae(t),x=a(t,E),p=r.getBasePriceCents(t,E,r.BillingIntervals.Monthly)??0,h=Q!==r.BillingIntervals.Monthly&&null!==u?n(p,u,Q):null,j=r.getSeatPricing(t,E),v=j?r.getPerSeatPriceCents(t,E,Q):null;return e.jsxs("div",{className:"rounded-xl border-2 p-4 "+(s?"border-info bg-info/5":"border-border bg-background"),children:[e.jsxs("div",{className:"flex items-start justify-between mb-3",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("h3",{className:"text-lg font-bold text-foreground",children:t.plan.name}),e.jsx(o,{planVersion:t,isCurrent:s,trialUsedAt:y,currentStripePriceId:g})]}),t.plan.description&&e.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 line-clamp-2",children:t.plan.description})]}),s&&e.jsx("span",{className:"shrink-0 rounded-md bg-info px-2 py-0.5 text-xs font-semibold uppercase tracking-wider text-info-foreground",children:S("pricing.current")})]}),e.jsxs("div",{className:"mb-4",children:[e.jsx("div",{className:"flex items-baseline gap-1 whitespace-nowrap",children:e.jsx(c,{hasVariant:m,price:u,displayCurrency:x,selectedInterval:Q,getIntervalLabel:M})}),null!==h&&h>0&&m&&e.jsx("span",{className:"text-xs text-success font-medium",children:S("subscription.savingsPercent",{percent:h})}),j?.enabled&&v&&v>0&&e.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:S("subscription.seatPriceDisplay",{price:B(v,x),interval:M(Q),included:q(j.includedSeats),includedLabel:S("pricing.included")})})]}),H.length>0&&e.jsxs("div",{className:"mb-3",children:[e.jsx("div",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider mb-1.5",children:S("subscription.items.features")}),e.jsx("div",{className:"space-y-1",children:H.map(s=>{const i=oe(t,s,Q),n=s.type===r.SubscriptionItemType.Feature&&!0===i;return e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[s.type===r.SubscriptionItemType.Feature?n?e.jsx("span",{className:"text-success text-xs",children:"✓"}):e.jsx("span",{className:"text-muted-foreground/50 text-xs",children:"✕"}):null,e.jsx("span",{className:n?"text-foreground":"text-muted-foreground/70",children:s.name})]},s._id)})})]}),J.length>0&&e.jsxs("div",{className:"mb-3",children:[e.jsx("div",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider mb-1.5",children:S("subscription.items.limits")}),e.jsx("div",{className:"space-y-1",children:J.map(r=>{const s=oe(t,r,Q);return e.jsxs("div",{className:"flex items-center justify-between text-sm",children:[e.jsx("span",{className:"text-muted-foreground",children:r.name}),e.jsx("span",{className:"font-medium text-foreground",children:ue(s,r,a(t,E))})]},r._id)})})]}),j?.enabled&&e.jsxs("div",{className:"mb-3",children:[e.jsx("div",{className:"text-xs font-semibold text-success uppercase tracking-wider mb-1.5",children:S("subscription.seats.title")}),e.jsxs("div",{className:"space-y-1 text-sm",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-muted-foreground",children:S("subscription.seats.included")}),e.jsx("span",{className:"font-medium",children:q(j.includedSeats||0)})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-muted-foreground",children:S("subscription.seats.maxSeats")}),e.jsx("span",{className:"font-medium",children:(j?.maxSeats??0)>0?q(j.maxSeats):S("subscription.seats.unlimited")})]}),null!=f&&f>0&&(()=>{const t=Math.max(0,f-(j.includedSeats||0));return e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-muted-foreground",children:S("subscription.seats.billable")}),e.jsx("span",{className:"font-medium "+(0===t?"text-success":"text-warning"),children:0===t?S("subscription.seats.allIncluded"):`${q(t)} ${S("subscription.seats.extra")}`})]})})()]})]}),e.jsx(d,{planVersion:t}),e.jsx(r.Button,{className:"w-full mt-2",variant:i.variant,disabled:i.disabled||le||!m,progress:l,onClick:()=>ie(t._id),children:l?S("pricing.processing"):m?i.dynamicLabel??S(i.labelKey):S("pricing.unavailable")})]},t._id)})})}),e.jsx("div",{className:"hidden md:block overflow-auto h-full",style:{maxHeight:"calc(100vh - 12rem)"},children:e.jsxs("table",{"aria-label":S("subscription.choosePlan"),className:"w-full border-separate border-spacing-0",style:{minWidth:260+220*R.length+"px",borderCollapse:"separate"},children:[e.jsxs("colgroup",{children:[e.jsx("col",{style:{width:260,minWidth:260}}),R.map(t=>e.jsx("col",{style:{width:220,minWidth:220}},t._id))]}),e.jsx("thead",{children:e.jsxs("tr",{className:"align-top",children:[e.jsx("th",{className:"sticky top-0 start-0 z-30 p-0 bg-background text-start"}),R.map(t=>{const s=t._id===b,i=ce(t),l=le&&t._id===T,d=ne(t),u=r.getBasePriceCents(t,E,r.BillingIntervals.Monthly)??0,m=Q!==r.BillingIntervals.Monthly&&null!==d?n(u,d,Q):null,x=ae(t),p=a(t,E);return e.jsx("th",{className:"sticky top-0 z-20 border-b border-border p-3 shadow-sticky-row "+(t._id===b?"bg-info/10":"bg-background"),children:e.jsxs("div",{className:"flex h-full flex-col gap-2",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[e.jsx("h3",{className:"text-base font-bold text-foreground truncate",children:t.plan.name}),e.jsx(o,{planVersion:t,isCurrent:s,trialUsedAt:y,currentStripePriceId:g})]}),s&&e.jsx("span",{className:"shrink-0 rounded-md bg-info px-2 py-0.5 text-xs font-semibold uppercase tracking-wider text-info-foreground",children:S("pricing.current")})]}),e.jsxs("div",{className:"flex flex-col items-start min-h-[3rem]",children:[e.jsxs("div",{className:"flex items-baseline gap-1 flex-wrap",children:[e.jsx(c,{hasVariant:x,price:d,displayCurrency:p,selectedInterval:Q,getIntervalLabel:M}),null!==m&&m>0&&x&&e.jsx("span",{className:"text-xs px-1.5 py-0.5 bg-success/15 text-success rounded-full font-semibold whitespace-nowrap",children:S("subscription.savingsPercent",{percent:m})})]}),(()=>{const s=r.getSeatPricing(t,E);if(!s)return null;const i=r.getPerSeatPriceCents(t,E,Q);return!i||i<=0?null:e.jsx("div",{className:"text-xs text-muted-foreground mt-1.5 border-t border-border/60 pt-1 leading-tight",children:e.jsx("div",{children:S("subscription.seatPriceDisplay",{price:B(i,p),interval:M(Q),included:q(s.includedSeats),includedLabel:S("pricing.included")})})})})()]}),t.plan.description&&e.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2 leading-relaxed text-start",children:t.plan.description}),e.jsx(r.Button,{className:"mt-auto w-full",variant:i.variant,disabled:i.disabled||le||!x,progress:l,onClick:()=>ie(t._id),children:l?S("pricing.processing"):x?i.dynamicLabel??S(i.labelKey):S("pricing.unavailable")})]})},t._id)})]})}),e.jsxs("tbody",{children:[H.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("td",{className:"sticky start-0 z-10 border-t border-border bg-muted px-4 py-2.5 font-semibold text-xs uppercase tracking-wider text-muted-foreground shadow-sticky-col",children:S("subscription.items.features")}),e.jsx("td",{colSpan:R.length,className:"border-t border-border bg-muted"})]}),H.map(t=>e.jsxs("tr",{className:"group hover:bg-muted/30",children:[e.jsxs("td",{className:"sticky start-0 z-10 border-t border-border/60 bg-background p-4 shadow-sticky-col group-hover:bg-muted/50",children:[e.jsx("div",{className:"font-medium text-sm text-foreground",children:t.name}),t.description&&e.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:t.description})]}),R.map(s=>{const i=oe(s,t,Q),n=a(s,E),l=ue(i,t,n),d=t.type===r.SubscriptionItemType.Feature&&!0===i;return e.jsx("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(s._id===b?"bg-info/5":"bg-background"),children:e.jsx("span",{className:"text-sm font-medium "+(d?"text-success":"—"===l?"text-muted-foreground/70":"text-foreground"),children:l})},s._id)})]},t._id))]}),J.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("td",{className:"sticky start-0 z-10 border-t border-border bg-muted px-4 py-2.5 font-semibold text-xs uppercase tracking-wider text-muted-foreground shadow-sticky-col",children:S("subscription.items.limits")}),e.jsx("td",{colSpan:R.length,className:"border-t border-border bg-muted"})]}),J.map(t=>e.jsxs("tr",{className:"group hover:bg-muted/30",children:[e.jsxs("td",{className:"sticky start-0 z-10 border-t border-border/60 bg-background p-4 shadow-sticky-col group-hover:bg-muted/50",children:[e.jsx("div",{className:"font-medium text-sm text-foreground",children:t.name}),t.description&&e.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:t.description})]}),R.map(r=>{const s=oe(r,t,Q),i=a(r,E),n=ue(s,t,i);return e.jsx("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(r._id===b?"bg-info/5":"bg-background"),children:e.jsx("span",{className:"text-sm font-medium "+("—"===n?"text-muted-foreground/70":"text-foreground"),children:n})},r._id)})]},t._id))]}),X.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("td",{className:"sticky start-0 z-10 border-t border-border bg-muted px-4 py-2.5 font-semibold text-xs uppercase tracking-wider text-muted-foreground shadow-sticky-col",children:S("subscription.items.quotas")}),e.jsx("td",{colSpan:R.length,className:"border-t border-border bg-muted"})]}),X.map(t=>e.jsxs("tr",{className:"group hover:bg-muted/30",children:[e.jsxs("td",{className:"sticky start-0 z-10 border-t border-border/60 bg-background p-4 shadow-sticky-col group-hover:bg-muted/50",children:[e.jsx("div",{className:"font-medium text-sm text-foreground",children:t.name}),t.description&&e.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:t.description})]}),R.map(r=>{const s=oe(r,t,Q),i=a(r,E),n=ue(s,t,i);return e.jsx("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(r._id===b?"bg-info/5":"bg-background"),children:e.jsx("span",{className:"text-sm font-medium "+("—"===n?"text-muted-foreground/70":"text-foreground"),children:n})},r._id)})]},t._id))]}),R.some(e=>{const t=r.getSeatPricing(e,E);return t?.enabled})&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("td",{className:"sticky start-0 z-10 border-t border-success/20 bg-success/10 px-4 py-2.5 font-semibold text-xs uppercase tracking-wider text-success shadow-sticky-col",children:S("subscription.seats.title")}),e.jsx("td",{colSpan:R.length,className:"border-t border-success/20 bg-success/10"})]}),e.jsxs("tr",{className:"group hover:bg-muted/30",children:[e.jsxs("td",{className:"sticky start-0 z-10 border-t border-border/60 bg-background p-4 shadow-sticky-col group-hover:bg-muted/50",children:[e.jsx("div",{className:"font-medium text-sm text-foreground",children:S("subscription.seats.includedSeats")}),e.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:S("subscription.seats.freeWithBase")})]}),R.map(t=>{const s=r.getSeatPricing(t,E);return e.jsx("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(t._id===b?"bg-info/5":"bg-background"),children:e.jsx("span",{className:"text-sm font-medium text-foreground",children:s?.enabled?q(s.includedSeats||0):"—"})},t._id)})]}),e.jsxs("tr",{className:"group hover:bg-muted/30",children:[e.jsx("td",{className:"sticky start-0 z-10 border-t border-border/60 bg-background p-4 shadow-sticky-col group-hover:bg-muted/50",children:e.jsx("div",{className:"font-medium text-sm text-foreground",children:S("subscription.seats.maxSeats")})}),R.map(t=>{const s=r.getSeatPricing(t,E);return e.jsx("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(t._id===b?"bg-info/5":"bg-background"),children:e.jsx("span",{className:"text-sm font-medium text-foreground",children:s?.enabled?(s?.maxSeats??0)>0?q(s.maxSeats):S("subscription.seats.unlimited"):"—"})},t._id)})]}),e.jsxs("tr",{className:"group hover:bg-muted/30",children:[e.jsx("td",{className:"sticky start-0 z-10 border-t border-border/60 bg-background p-4 shadow-sticky-col group-hover:bg-muted/50",children:e.jsx("div",{className:"font-medium text-sm text-foreground",children:S("subscription.seats.perExtraSeat")})}),R.map(t=>{const s=r.getPerSeatPriceCents(t,E,Q),i=a(t,E);return e.jsx("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(t._id===b?"bg-info/5":"bg-background"),children:e.jsx("span",{className:"text-sm font-medium text-foreground",children:s&&s>0?`${B(s,i)}${M(Q)}`:"—"})},t._id)})]}),null!=f&&f>0&&e.jsxs("tr",{className:"group hover:bg-muted/30",children:[e.jsxs("td",{className:"sticky start-0 z-10 border-t border-border/60 bg-background p-4 shadow-sticky-col group-hover:bg-muted/50",children:[e.jsx("div",{className:"font-medium text-sm text-foreground",children:S("subscription.seats.billable")}),e.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:S("subscription.membersInWorkspace",{count:f})})]}),R.map(t=>{const s=r.getSeatPricing(t,E);if(!s?.enabled)return e.jsx("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(t._id===b?"bg-info/5":"bg-background"),children:e.jsx("span",{className:"text-sm text-muted-foreground/70",children:"—"})},t._id);const i=s.includedSeats||0,n=Math.max(0,f-i);return e.jsx("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(t._id===b?"bg-info/5":"bg-background"),children:0===n?e.jsx("span",{className:"text-sm font-medium text-success",children:S("subscription.seats.allIncluded")}):e.jsxs("span",{className:"text-sm font-medium text-warning",children:[q(n)," ",S("subscription.seats.extra")]})},t._id)})]})]}),R.some(e=>e.creditGrant?.enabled&&"object"==typeof e.creditGrant.creditPackage&&null!==e.creditGrant.creditPackage)&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("td",{className:"sticky start-0 z-10 border-t border-info/20 bg-info/10 px-4 py-2.5 font-semibold text-xs uppercase tracking-wider text-info shadow-sticky-col",children:S("subscription.items.credits")}),e.jsx("td",{colSpan:R.length,className:"border-t border-info/20 bg-info/10"})]}),e.jsxs("tr",{className:"group hover:bg-muted/30",children:[e.jsx("td",{className:"sticky start-0 z-10 border-t border-border/60 bg-background p-4 shadow-sticky-col group-hover:bg-muted/50",children:e.jsx("div",{className:"font-medium text-sm text-foreground",children:R.every(e=>!e.creditGrant?.enabled||!e.creditGrant.renewOnPeriod)?S("subscription.items.creditsOneTime"):S("subscription.items.creditsPerMonth")})}),R.map(t=>{const r=t.creditGrant,s=r?.enabled&&"object"==typeof r.creditPackage&&null!==r.creditPackage?r.creditPackage:null;return e.jsx("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(t._id===b?"bg-info/5":"bg-background"),children:s?e.jsx("span",{className:"text-sm font-semibold text-info",children:q(s.creditAmount)}):e.jsx("span",{className:"text-sm text-muted-foreground/70",children:"—"})},t._id)})]}),e.jsxs("tr",{className:"group hover:bg-muted/30",children:[e.jsx("td",{className:"sticky start-0 z-10 border-t border-border/60 bg-background p-4 shadow-sticky-col group-hover:bg-muted/50",children:e.jsx("div",{className:"font-medium text-sm text-foreground",children:S("subscription.items.creditRenewal")})}),R.map(t=>{const r=t.creditGrant;return e.jsx("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(t._id===b?"bg-info/5":"bg-background"),children:r?.enabled?e.jsx("span",{className:"text-sm font-medium text-foreground",children:S(l(r))}):e.jsx("span",{className:"text-sm text-muted-foreground/70",children:"—"})},t._id)})]})]})]})]})})]})})]})})};
2
+ "use strict";var e=require("react/jsx-runtime"),t=require("react"),r=require("./react-DeapSbq6.cjs"),s=require("./SettingsDialog-Ch8X6WXy.cjs");require("clsx"),require("tailwind-merge"),require("lucide-react"),require("intl-messageformat"),require("@radix-ui/react-slot"),require("class-variance-authority"),require("@radix-ui/react-dialog"),require("@radix-ui/react-icons"),require("@hookform/resolvers/zod"),require("react-hook-form"),require("@radix-ui/react-label"),require("zod"),require("@radix-ui/react-avatar"),require("@radix-ui/react-radio-group"),require("@radix-ui/react-scroll-area"),require("@radix-ui/react-separator"),require("@radix-ui/react-accordion"),require("@radix-ui/react-alert-dialog"),require("@radix-ui/react-popover"),require("@radix-ui/react-switch"),require("cmdk"),require("@radix-ui/react-select");const i={[r.BillingIntervals.Monthly]:"subscription.billingInterval.perMonth",[r.BillingIntervals.Quarterly]:"subscription.billingInterval.perQuarter",[r.BillingIntervals.Yearly]:"subscription.billingInterval.perYear"},n=(e,t,s)=>{if(!e||0===e)return null;let i;switch(s){case r.BillingIntervals.Yearly:i=t/12;break;case r.BillingIntervals.Quarterly:i=t/3;break;default:return null}const n=(e-i)/e*100;return n>0?Math.round(n):null},a=(e,t)=>r.getPricingVariant(e,t)?t:e.plan?.currency??t??"",l=e=>e.renewOnPeriod?"reset"===e.mode?"subscription.items.creditModeReset":"subscription.items.creditModeTopup":"subscription.items.creditModeLifetime",d=({planVersion:t})=>{const{t:s,fmtNum:i}=r.useTranslation(),n=t.creditGrant;return n?.enabled&&"object"==typeof n.creditPackage&&null!==n.creditPackage?e.jsxs("div",{className:"mb-3",children:[e.jsx("div",{className:"text-xs font-semibold text-info uppercase tracking-wider mb-1.5",children:s("subscription.items.credits")}),e.jsxs("div",{className:"space-y-1 text-sm",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-muted-foreground",children:n.renewOnPeriod?s("subscription.items.creditsPerMonth"):s("subscription.items.creditsOneTime")}),e.jsx("span",{className:"font-semibold text-info",children:i(n.creditPackage.creditAmount)})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-muted-foreground",children:s("subscription.items.creditRenewal")}),e.jsx("span",{className:"font-medium text-foreground",children:s(l(n))})]})]})]}):null},c=({hasVariant:t,price:s,displayCurrency:i,selectedInterval:n,getIntervalLabel:a})=>{const{t:l,fmtCents:d}=r.useTranslation();return e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-2xl font-bold text-foreground",children:t&&null!==s?(c=s,o=i,(null==c||0===c?"":d(c,o))||l("pricing.free")):"—"}),null!==s&&s>0&&t&&e.jsx("span",{className:"text-sm text-muted-foreground",children:a(n)})]});var c,o},o=({planVersion:t,isCurrent:s,trialUsedAt:i,currentStripePriceId:n})=>{const{t:a}=r.useTranslation(),l=t.trial;return l?.enabled&&l.durationDays>0&&!s&&!i&&!n?e.jsx("span",{className:"shrink-0 rounded-md bg-success/15 text-success px-2 py-0.5 text-xs font-semibold uppercase tracking-wider",children:a("subscription.trialBadge",{days:l.durationDays})}):null};exports.default=({open:u,onOpenChange:m,source:x,planVersions:p,currentPlanVersionId:b,currentStripePriceId:g,billingCurrency:h,currentMemberCount:f,trialUsedAt:y,workspaceName:j,initialInterval:v,initialCurrency:N,onSelectPlan:k,loading:w=!1})=>{const[_,I]=t.useState(!1),{t:S,formattingLocale:P,dir:C,fmtNum:q,fmtCents:B}=r.useTranslation(),M=e=>S(i[e]??i[r.BillingIntervals.Monthly]),[T,D]=t.useState(null),F=t.useRef(!1),L=t.useMemo(()=>r.getBillingIntervalAndCurrencyFromPriceId(g,p),[g,p]),z=L?.interval??null,V=L?.currency??null,K=t.useMemo(()=>r.getAvailableCurrenciesFromPlans(p),[p]),O=t.useMemo(()=>{const e=h?.trim().toLowerCase();return e?K.includes(e)?[e]:[]:K},[h,K]),[Q,U]=t.useState(v||z||r.BillingIntervals.Monthly),A=t.useMemo(()=>s.getVisitorCurrency(),[]),[G,W]=t.useState(()=>r.pickDefaultCurrency(O,[N,V,A])),E=h?.trim()||G;t.useEffect(()=>{if(u){U(v||z||r.BillingIntervals.Monthly);const e=N||V;e&&O.includes(e)?W(e):O.length>0&&!O.includes(G)&&W(r.pickDefaultCurrency(O,[A]))}},[u,v,N,z,V,O,A]);const R=p,Y=t.useMemo(()=>r.getAvailableBillingIntervals(R,E),[R,E]);t.useEffect(()=>{Y.length&&!Y.includes(Q)&&U(Y[0])},[Y,Q]);const $=t.useMemo(()=>(e=>{const t=new Map;return e.forEach(e=>{e.subscriptionItems?.forEach(e=>{t.has(e._id)||t.set(e._id,e)})}),Array.from(t.values())})(R),[R]),H=$.filter(e=>e.type===r.SubscriptionItemType.Feature),J=$.filter(e=>e.type===r.SubscriptionItemType.Limit),X=$.filter(e=>e.type===r.SubscriptionItemType.Quota),{emit:Z,ready:ee}=r.useFunnel(),te=t.useRef(!1),re=t.useRef(!1);t.useEffect(()=>{if(!u)return te.current&&!re.current&&Z("plan_picker_dismissed",{source:x,billing_interval:Q}),te.current=!1,void(re.current=!1);!te.current&&ee&&(te.current=!0,Z("plan_picker_opened",{source:x,plan_count:p.length,has_subscription:!!b,current_plan_version_id:b,billing_interval:Q,currency:E?E.toUpperCase():void 0}))},[u,ee]);const se=e=>{if(!b)return"new";if(e._id===b)return"interval_change";const t=p.find(e=>e._id===b),s=t?r.getBasePriceCents(t,E,Q):null,i=r.getBasePriceCents(e,E,Q);return null==s||null==i?"change":i>=s?"upgrade":"downgrade"},ie=async e=>{if(e===b&&z===Q||w||_||F.current)return;const t=p.find(t=>t._id===e);if(t){const s=r.getBasePriceCents(t,E,Q);re.current=!0,Z("plan_selected",{source:x,plan_version_id:e,plan_slug:t.plan?.slug,billing_interval:Q,currency:E?E.toUpperCase():void 0,value:null==s?void 0:r.toMajorUnits(s,E),change:se(t),is_free:!!t.plan?.isFreemium})}F.current=!0,I(!0),D(e);try{await k(e,Q,E),m(!1)}catch(e){}finally{F.current=!1,I(!1),D(null)}},ne=e=>r.getBasePriceCents(e,E,Q),ae=e=>!!e.pricingVariants?.some(e=>e.currency?.toLowerCase()===E.toLowerCase()),le=w||_,de=e=>{switch(e){case r.BillingIntervals.Monthly:return S("subscription.billingInterval.monthly");case r.BillingIntervals.Quarterly:return S("subscription.billingInterval.quarterly");case r.BillingIntervals.Yearly:return S("subscription.billingInterval.yearly");default:return S("subscription.billingInterval.monthly")}},ce=e=>{const t=e._id===b,r=z===Q;if(t&&r)return{labelKey:"subscription.currentPlan",variant:"outline",disabled:!0};if(t&&!r)return e.plan?.isFreemium?{labelKey:"subscription.currentPlan",variant:"outline",disabled:!0}:{labelKey:"_dynamic",dynamicLabel:S("subscription.switchToInterval",{interval:de(Q)}),variant:"default",disabled:!1};const s=e.trial?.enabled&&e.trial.durationDays>0&&!y&&!g;if(!b)return s?{labelKey:"_dynamic",dynamicLabel:S("subscription.startTrialDays",{days:e.trial.durationDays}),variant:"default",disabled:!1}:{labelKey:e.plan?.isFreemium?"subscription.startFree":"subscription.subscribe",variant:"default",disabled:!1};const i=R.findIndex(e=>e._id===b),n=R.findIndex(t=>t._id===e._id);return-1===i||-1===n?s?{labelKey:"_dynamic",dynamicLabel:S("subscription.startTrialDays",{days:e.trial.durationDays}),variant:"default",disabled:!1}:{labelKey:"subscription.checkout.select",variant:"default",disabled:!1}:n<i?{labelKey:"subscription.checkout.downgrade",variant:"outline",disabled:!1}:n>i?s?{labelKey:"_dynamic",dynamicLabel:S("subscription.startTrialDays",{days:e.trial.durationDays}),variant:"default",disabled:!1}:{labelKey:"subscription.checkout.upgrade",variant:"default",disabled:!1}:{labelKey:"subscription.checkout.select",variant:"default",disabled:!1}},oe=(e,t,s=r.BillingIntervals.Monthly)=>{if(t.type===r.SubscriptionItemType.Feature)return e.features?.[t.slug]??!1;if(t.type===r.SubscriptionItemType.Limit)return e.limits?.[t.slug]??null;if(t.type===r.SubscriptionItemType.Quota){const i=r.getQuotaDisplayWithVariant(e,E,t.slug,s);return i||r.getQuotaDisplayValue(e.quotas?.[t.slug],s)}return null},ue=(e,t,s)=>{if(t.type===r.SubscriptionItemType.Feature)return!0===e?"✓":"—";if(t.type===r.SubscriptionItemType.Limit)return((e,t,r)=>null==e||"number"!=typeof e||Number.isNaN(e)?"—":e<0?t:0===e?"—":r(e))(e,S("subscription.items.unlimited"),q);if(t.type===r.SubscriptionItemType.Quota){const i="object"==typeof e&&null!==e&&"included"in e?e:null,n=r.getQuotaDisplayParts(i,t.name.toLowerCase(),{currency:s,locale:P});return n?n.allowOverage?n.hasOverage?S("quota.includedWithOverage",{count:n.included,price:n.price,unit:n.unit}):S("quota.includedOnly",{count:n.included}):S("quota.includedHardLimit",{count:n.included}):"—"}return"—"};return e.jsx(r.Dialog,{open:u,onOpenChange:m,children:e.jsxs(r.DialogContent,{dir:C,className:"inset-0 w-screen h-screen max-w-none rounded-none translate-x-0 translate-y-0 p-0 flex flex-col",children:[e.jsxs("div",{className:"flex-shrink-0 px-4 py-4 sm:px-6 sm:py-6 border-b space-y-3 sm:space-y-4",children:[e.jsxs("div",{children:[e.jsx(r.DialogTitle,{className:"text-xl font-semibold",children:S("pricing.title")}),e.jsxs(r.DialogDescription,{className:"mt-1 text-sm",children:[S("subscription.choosePlanDescription"),j&&e.jsx("span",{className:"ml-1 font-medium text-foreground",children:S("subscription.forWorkspace",{name:j})})]})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 sm:gap-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[!h?.trim()&&O.length>1&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:S("pricing.currency")}),e.jsxs(s.Select,{value:G,onValueChange:W,children:[e.jsx(s.SelectTrigger,{"aria-label":S("pricing.selectCurrency"),className:"w-auto min-w-[6rem] font-medium",children:e.jsx(s.SelectValue,{})}),e.jsx(s.SelectContent,{children:O.map(t=>{const i=r.getCurrencyFlag(t);return e.jsx(s.SelectItem,{value:t,textValue:t.toUpperCase(),children:i?`${i} ${t.toUpperCase()}`:t.toUpperCase()},t)})})]})]}),h?.trim()&&e.jsx("span",{className:"text-xs text-muted-foreground",children:S("subscription.billingInCurrency",{currency:h.toUpperCase()})})]}),Y.length>1&&e.jsx("div",{className:"flex items-center gap-0.5 sm:gap-1 p-1 bg-muted rounded-lg w-full sm:w-auto",role:"group","aria-label":S("pricing.billingInterval"),children:Y.map(t=>{const s=z===t;return e.jsx("button",{onClick:()=>(e=>{e!==Q&&Z("billing_interval_changed",{from:Q,to:e}),U(e)})(t),"aria-pressed":Q===t,className:"flex-1 sm:flex-initial px-3 sm:px-4 py-2 text-sm font-medium rounded-md transition-all relative "+(Q===t?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),children:e.jsxs("span",{className:"flex items-center justify-center gap-1 sm:gap-1.5",children:[t===r.BillingIntervals.Monthly&&S("subscription.billingInterval.monthly"),t===r.BillingIntervals.Quarterly&&S("subscription.billingInterval.quarterly"),t===r.BillingIntervals.Yearly&&S("subscription.billingInterval.yearly"),t===r.BillingIntervals.Yearly&&e.jsx("span",{className:"text-xs px-1 sm:px-1.5 py-0.5 bg-success/15 text-success rounded-full font-semibold",children:S("pricing.save")}),s&&b&&e.jsx("span",{className:"hidden sm:inline text-xs px-1.5 py-0.5 bg-info/15 text-info rounded-full font-semibold",children:S("pricing.current")})]})},t)})})]})]}),e.jsx("div",{className:"flex-1 min-h-0 flex flex-col",children:h?.trim()&&0===O.length?e.jsxs("div",{className:"text-center py-12 px-4",children:[e.jsx("p",{className:"text-muted-foreground font-medium",children:S("pricing.noPlansCurrency")}),e.jsx("p",{className:"text-muted-foreground text-sm mt-2",children:S("pricing.noPlansCurrencyHint")})]}):0===R.length?e.jsx("div",{className:"text-center py-12 text-muted-foreground",children:e.jsx("p",{children:S("pricing.noPlans")})}):e.jsxs("div",{className:"flex-1 min-h-0 overflow-hidden bg-background",children:[e.jsx("div",{className:"md:hidden overflow-auto h-full",style:{maxHeight:"calc(100vh - 13rem)"},children:e.jsx("div",{className:"p-4 space-y-4",children:R.map(t=>{const s=t._id===b,i=ce(t),l=le&&t._id===T,u=ne(t),m=ae(t),x=a(t,E),p=r.getBasePriceCents(t,E,r.BillingIntervals.Monthly)??0,h=Q!==r.BillingIntervals.Monthly&&null!==u?n(p,u,Q):null,j=r.getSeatPricing(t,E),v=j?r.getPerSeatPriceCents(t,E,Q):null;return e.jsxs("div",{className:"rounded-xl border-2 p-4 "+(s?"border-info bg-info/5":"border-border bg-background"),children:[e.jsxs("div",{className:"flex items-start justify-between mb-3",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("h3",{className:"text-lg font-bold text-foreground",children:t.plan.name}),e.jsx(o,{planVersion:t,isCurrent:s,trialUsedAt:y,currentStripePriceId:g})]}),t.plan.description&&e.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 line-clamp-2",children:t.plan.description})]}),s&&e.jsx("span",{className:"shrink-0 rounded-md bg-info px-2 py-0.5 text-xs font-semibold uppercase tracking-wider text-info-foreground",children:S("pricing.current")})]}),e.jsxs("div",{className:"mb-4",children:[e.jsx("div",{className:"flex items-baseline gap-1 whitespace-nowrap",children:e.jsx(c,{hasVariant:m,price:u,displayCurrency:x,selectedInterval:Q,getIntervalLabel:M})}),null!==h&&h>0&&m&&e.jsx("span",{className:"text-xs text-success font-medium",children:S("subscription.savingsPercent",{percent:h})}),j?.enabled&&v&&v>0&&e.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:S("subscription.seatPriceDisplay",{price:B(v,x),interval:M(Q),included:q(j.includedSeats),includedLabel:S("pricing.included")})})]}),H.length>0&&e.jsxs("div",{className:"mb-3",children:[e.jsx("div",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider mb-1.5",children:S("subscription.items.features")}),e.jsx("div",{className:"space-y-1",children:H.map(s=>{const i=oe(t,s,Q),n=s.type===r.SubscriptionItemType.Feature&&!0===i;return e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[s.type===r.SubscriptionItemType.Feature?n?e.jsx("span",{className:"text-success text-xs",children:"✓"}):e.jsx("span",{className:"text-muted-foreground/50 text-xs",children:"✕"}):null,e.jsx("span",{className:n?"text-foreground":"text-muted-foreground/70",children:s.name})]},s._id)})})]}),J.length>0&&e.jsxs("div",{className:"mb-3",children:[e.jsx("div",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider mb-1.5",children:S("subscription.items.limits")}),e.jsx("div",{className:"space-y-1",children:J.map(r=>{const s=oe(t,r,Q);return e.jsxs("div",{className:"flex items-center justify-between text-sm",children:[e.jsx("span",{className:"text-muted-foreground",children:r.name}),e.jsx("span",{className:"font-medium text-foreground",children:ue(s,r,a(t,E))})]},r._id)})})]}),j?.enabled&&e.jsxs("div",{className:"mb-3",children:[e.jsx("div",{className:"text-xs font-semibold text-success uppercase tracking-wider mb-1.5",children:S("subscription.seats.title")}),e.jsxs("div",{className:"space-y-1 text-sm",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-muted-foreground",children:S("subscription.seats.included")}),e.jsx("span",{className:"font-medium",children:q(j.includedSeats||0)})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-muted-foreground",children:S("subscription.seats.maxSeats")}),e.jsx("span",{className:"font-medium",children:(j?.maxSeats??0)>0?q(j.maxSeats):S("subscription.seats.unlimited")})]}),null!=f&&f>0&&(()=>{const t=Math.max(0,f-(j.includedSeats||0));return e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-muted-foreground",children:S("subscription.seats.billable")}),e.jsx("span",{className:"font-medium "+(0===t?"text-success":"text-warning"),children:0===t?S("subscription.seats.allIncluded"):`${q(t)} ${S("subscription.seats.extra")}`})]})})()]})]}),e.jsx(d,{planVersion:t}),e.jsx(r.Button,{className:"w-full mt-2",variant:i.variant,disabled:i.disabled||le||!m,progress:l,onClick:()=>ie(t._id),children:l?S("pricing.processing"):m?i.dynamicLabel??S(i.labelKey):S("pricing.unavailable")})]},t._id)})})}),e.jsx("div",{className:"hidden md:block overflow-auto h-full",style:{maxHeight:"calc(100vh - 12rem)"},children:e.jsxs("table",{"aria-label":S("subscription.choosePlan"),className:"w-full border-separate border-spacing-0",style:{minWidth:260+220*R.length+"px",borderCollapse:"separate"},children:[e.jsxs("colgroup",{children:[e.jsx("col",{style:{width:260,minWidth:260}}),R.map(t=>e.jsx("col",{style:{width:220,minWidth:220}},t._id))]}),e.jsx("thead",{children:e.jsxs("tr",{className:"align-top",children:[e.jsx("th",{className:"sticky top-0 start-0 z-30 p-0 bg-background text-start"}),R.map(t=>{const s=t._id===b,i=ce(t),l=le&&t._id===T,d=ne(t),u=r.getBasePriceCents(t,E,r.BillingIntervals.Monthly)??0,m=Q!==r.BillingIntervals.Monthly&&null!==d?n(u,d,Q):null,x=ae(t),p=a(t,E);return e.jsx("th",{className:"sticky top-0 z-20 border-b border-border p-3 shadow-sticky-row "+(t._id===b?"bg-info/10":"bg-background"),children:e.jsxs("div",{className:"flex h-full flex-col gap-2",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[e.jsx("h3",{className:"text-base font-bold text-foreground truncate",children:t.plan.name}),e.jsx(o,{planVersion:t,isCurrent:s,trialUsedAt:y,currentStripePriceId:g})]}),s&&e.jsx("span",{className:"shrink-0 rounded-md bg-info px-2 py-0.5 text-xs font-semibold uppercase tracking-wider text-info-foreground",children:S("pricing.current")})]}),e.jsxs("div",{className:"flex flex-col items-start min-h-[3rem]",children:[e.jsxs("div",{className:"flex items-baseline gap-1 flex-wrap",children:[e.jsx(c,{hasVariant:x,price:d,displayCurrency:p,selectedInterval:Q,getIntervalLabel:M}),null!==m&&m>0&&x&&e.jsx("span",{className:"text-xs px-1.5 py-0.5 bg-success/15 text-success rounded-full font-semibold whitespace-nowrap",children:S("subscription.savingsPercent",{percent:m})})]}),(()=>{const s=r.getSeatPricing(t,E);if(!s)return null;const i=r.getPerSeatPriceCents(t,E,Q);return!i||i<=0?null:e.jsx("div",{className:"text-xs text-muted-foreground mt-1.5 border-t border-border/60 pt-1 leading-tight",children:e.jsx("div",{children:S("subscription.seatPriceDisplay",{price:B(i,p),interval:M(Q),included:q(s.includedSeats),includedLabel:S("pricing.included")})})})})()]}),t.plan.description&&e.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2 leading-relaxed text-start",children:t.plan.description}),e.jsx(r.Button,{className:"mt-auto w-full",variant:i.variant,disabled:i.disabled||le||!x,progress:l,onClick:()=>ie(t._id),children:l?S("pricing.processing"):x?i.dynamicLabel??S(i.labelKey):S("pricing.unavailable")})]})},t._id)})]})}),e.jsxs("tbody",{children:[H.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("td",{className:"sticky start-0 z-10 border-t border-border bg-muted px-4 py-2.5 font-semibold text-xs uppercase tracking-wider text-muted-foreground shadow-sticky-col",children:S("subscription.items.features")}),e.jsx("td",{colSpan:R.length,className:"border-t border-border bg-muted"})]}),H.map(t=>e.jsxs("tr",{className:"group hover:bg-muted/30",children:[e.jsxs("td",{className:"sticky start-0 z-10 border-t border-border/60 bg-background p-4 shadow-sticky-col group-hover:bg-muted/50",children:[e.jsx("div",{className:"font-medium text-sm text-foreground",children:t.name}),t.description&&e.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:t.description})]}),R.map(s=>{const i=oe(s,t,Q),n=a(s,E),l=ue(i,t,n),d=t.type===r.SubscriptionItemType.Feature&&!0===i;return e.jsx("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(s._id===b?"bg-info/5":"bg-background"),children:e.jsx("span",{className:"text-sm font-medium "+(d?"text-success":"—"===l?"text-muted-foreground/70":"text-foreground"),children:l})},s._id)})]},t._id))]}),J.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("td",{className:"sticky start-0 z-10 border-t border-border bg-muted px-4 py-2.5 font-semibold text-xs uppercase tracking-wider text-muted-foreground shadow-sticky-col",children:S("subscription.items.limits")}),e.jsx("td",{colSpan:R.length,className:"border-t border-border bg-muted"})]}),J.map(t=>e.jsxs("tr",{className:"group hover:bg-muted/30",children:[e.jsxs("td",{className:"sticky start-0 z-10 border-t border-border/60 bg-background p-4 shadow-sticky-col group-hover:bg-muted/50",children:[e.jsx("div",{className:"font-medium text-sm text-foreground",children:t.name}),t.description&&e.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:t.description})]}),R.map(r=>{const s=oe(r,t,Q),i=a(r,E),n=ue(s,t,i);return e.jsx("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(r._id===b?"bg-info/5":"bg-background"),children:e.jsx("span",{className:"text-sm font-medium "+("—"===n?"text-muted-foreground/70":"text-foreground"),children:n})},r._id)})]},t._id))]}),X.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("td",{className:"sticky start-0 z-10 border-t border-border bg-muted px-4 py-2.5 font-semibold text-xs uppercase tracking-wider text-muted-foreground shadow-sticky-col",children:S("subscription.items.quotas")}),e.jsx("td",{colSpan:R.length,className:"border-t border-border bg-muted"})]}),X.map(t=>e.jsxs("tr",{className:"group hover:bg-muted/30",children:[e.jsxs("td",{className:"sticky start-0 z-10 border-t border-border/60 bg-background p-4 shadow-sticky-col group-hover:bg-muted/50",children:[e.jsx("div",{className:"font-medium text-sm text-foreground",children:t.name}),t.description&&e.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:t.description})]}),R.map(r=>{const s=oe(r,t,Q),i=a(r,E),n=ue(s,t,i);return e.jsx("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(r._id===b?"bg-info/5":"bg-background"),children:e.jsx("span",{className:"text-sm font-medium "+("—"===n?"text-muted-foreground/70":"text-foreground"),children:n})},r._id)})]},t._id))]}),R.some(e=>{const t=r.getSeatPricing(e,E);return t?.enabled})&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("td",{className:"sticky start-0 z-10 border-t border-success/20 bg-success/10 px-4 py-2.5 font-semibold text-xs uppercase tracking-wider text-success shadow-sticky-col",children:S("subscription.seats.title")}),e.jsx("td",{colSpan:R.length,className:"border-t border-success/20 bg-success/10"})]}),e.jsxs("tr",{className:"group hover:bg-muted/30",children:[e.jsxs("td",{className:"sticky start-0 z-10 border-t border-border/60 bg-background p-4 shadow-sticky-col group-hover:bg-muted/50",children:[e.jsx("div",{className:"font-medium text-sm text-foreground",children:S("subscription.seats.includedSeats")}),e.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:S("subscription.seats.freeWithBase")})]}),R.map(t=>{const s=r.getSeatPricing(t,E);return e.jsx("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(t._id===b?"bg-info/5":"bg-background"),children:e.jsx("span",{className:"text-sm font-medium text-foreground",children:s?.enabled?q(s.includedSeats||0):"—"})},t._id)})]}),e.jsxs("tr",{className:"group hover:bg-muted/30",children:[e.jsx("td",{className:"sticky start-0 z-10 border-t border-border/60 bg-background p-4 shadow-sticky-col group-hover:bg-muted/50",children:e.jsx("div",{className:"font-medium text-sm text-foreground",children:S("subscription.seats.maxSeats")})}),R.map(t=>{const s=r.getSeatPricing(t,E);return e.jsx("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(t._id===b?"bg-info/5":"bg-background"),children:e.jsx("span",{className:"text-sm font-medium text-foreground",children:s?.enabled?(s?.maxSeats??0)>0?q(s.maxSeats):S("subscription.seats.unlimited"):"—"})},t._id)})]}),e.jsxs("tr",{className:"group hover:bg-muted/30",children:[e.jsx("td",{className:"sticky start-0 z-10 border-t border-border/60 bg-background p-4 shadow-sticky-col group-hover:bg-muted/50",children:e.jsx("div",{className:"font-medium text-sm text-foreground",children:S("subscription.seats.perExtraSeat")})}),R.map(t=>{const s=r.getPerSeatPriceCents(t,E,Q),i=a(t,E);return e.jsx("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(t._id===b?"bg-info/5":"bg-background"),children:e.jsx("span",{className:"text-sm font-medium text-foreground",children:s&&s>0?`${B(s,i)}${M(Q)}`:"—"})},t._id)})]}),null!=f&&f>0&&e.jsxs("tr",{className:"group hover:bg-muted/30",children:[e.jsxs("td",{className:"sticky start-0 z-10 border-t border-border/60 bg-background p-4 shadow-sticky-col group-hover:bg-muted/50",children:[e.jsx("div",{className:"font-medium text-sm text-foreground",children:S("subscription.seats.billable")}),e.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:S("subscription.membersInWorkspace",{count:f})})]}),R.map(t=>{const s=r.getSeatPricing(t,E);if(!s?.enabled)return e.jsx("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(t._id===b?"bg-info/5":"bg-background"),children:e.jsx("span",{className:"text-sm text-muted-foreground/70",children:"—"})},t._id);const i=s.includedSeats||0,n=Math.max(0,f-i);return e.jsx("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(t._id===b?"bg-info/5":"bg-background"),children:0===n?e.jsx("span",{className:"text-sm font-medium text-success",children:S("subscription.seats.allIncluded")}):e.jsxs("span",{className:"text-sm font-medium text-warning",children:[q(n)," ",S("subscription.seats.extra")]})},t._id)})]})]}),R.some(e=>e.creditGrant?.enabled&&"object"==typeof e.creditGrant.creditPackage&&null!==e.creditGrant.creditPackage)&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("td",{className:"sticky start-0 z-10 border-t border-info/20 bg-info/10 px-4 py-2.5 font-semibold text-xs uppercase tracking-wider text-info shadow-sticky-col",children:S("subscription.items.credits")}),e.jsx("td",{colSpan:R.length,className:"border-t border-info/20 bg-info/10"})]}),e.jsxs("tr",{className:"group hover:bg-muted/30",children:[e.jsx("td",{className:"sticky start-0 z-10 border-t border-border/60 bg-background p-4 shadow-sticky-col group-hover:bg-muted/50",children:e.jsx("div",{className:"font-medium text-sm text-foreground",children:R.every(e=>!e.creditGrant?.enabled||!e.creditGrant.renewOnPeriod)?S("subscription.items.creditsOneTime"):S("subscription.items.creditsPerMonth")})}),R.map(t=>{const r=t.creditGrant,s=r?.enabled&&"object"==typeof r.creditPackage&&null!==r.creditPackage?r.creditPackage:null;return e.jsx("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(t._id===b?"bg-info/5":"bg-background"),children:s?e.jsx("span",{className:"text-sm font-semibold text-info",children:q(s.creditAmount)}):e.jsx("span",{className:"text-sm text-muted-foreground/70",children:"—"})},t._id)})]}),e.jsxs("tr",{className:"group hover:bg-muted/30",children:[e.jsx("td",{className:"sticky start-0 z-10 border-t border-border/60 bg-background p-4 shadow-sticky-col group-hover:bg-muted/50",children:e.jsx("div",{className:"font-medium text-sm text-foreground",children:S("subscription.items.creditRenewal")})}),R.map(t=>{const r=t.creditGrant;return e.jsx("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(t._id===b?"bg-info/5":"bg-background"),children:r?.enabled?e.jsx("span",{className:"text-sm font-medium text-foreground",children:S(l(r))}):e.jsx("span",{className:"text-sm text-muted-foreground/70",children:"—"})},t._id)})]})]})]})]})})]})})]})})};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{useState as s,useMemo as n,useEffect as a}from"react";import{bs as d,aO as l,c,a$ as o,bt as u,p as m,bu as p,aP as b,a_ as g,D as h,k as x,l as f,m as y,ad as N,b0 as v,b1 as k,b2 as w,B as _,aQ as C,aR as I,aN as P,bv as S}from"./react-DTq7A_PT.mjs";import{g as M,S as L,a as z,b as j,c as D,d as K}from"./SettingsDialog-BVyV5Zfm.mjs";import"clsx";import"tailwind-merge";import"lucide-react";import"intl-messageformat";import"@radix-ui/react-slot";import"class-variance-authority";import"@radix-ui/react-dialog";import"@radix-ui/react-icons";import"@hookform/resolvers/zod";import"react-hook-form";import"@radix-ui/react-label";import"zod";import"@radix-ui/react-avatar";import"@radix-ui/react-radio-group";import"@radix-ui/react-scroll-area";import"@radix-ui/react-separator";import"@radix-ui/react-accordion";import"@radix-ui/react-alert-dialog";import"@radix-ui/react-popover";import"@radix-ui/react-switch";import"cmdk";import"@radix-ui/react-select";const V={[l.Monthly]:"subscription.billingInterval.perMonth",[l.Quarterly]:"subscription.billingInterval.perQuarter",[l.Yearly]:"subscription.billingInterval.perYear"},O=(e,r,t)=>{if(!e||0===e)return null;let i;switch(t){case l.Yearly:i=r/12;break;case l.Quarterly:i=r/3;break;default:return null}const s=(e-i)/e*100;return s>0?Math.round(s):null},F=(e,r)=>d(e,r)?r:e.plan?.currency??r??"",U=e=>e.renewOnPeriod?"reset"===e.mode?"subscription.items.creditModeReset":"subscription.items.creditModeTopup":"subscription.items.creditModeLifetime",Q=({planVersion:t})=>{const{t:i,fmtNum:s}=c(),n=t.creditGrant;return n?.enabled&&"object"==typeof n.creditPackage&&null!==n.creditPackage?e("div",{className:"mb-3",children:[r("div",{className:"text-xs font-semibold text-info uppercase tracking-wider mb-1.5",children:i("subscription.items.credits")}),e("div",{className:"space-y-1 text-sm",children:[e("div",{className:"flex justify-between",children:[r("span",{className:"text-muted-foreground",children:n.renewOnPeriod?i("subscription.items.creditsPerMonth"):i("subscription.items.creditsOneTime")}),r("span",{className:"font-semibold text-info",children:s(n.creditPackage.creditAmount)})]}),e("div",{className:"flex justify-between",children:[r("span",{className:"text-muted-foreground",children:i("subscription.items.creditRenewal")}),r("span",{className:"font-medium text-foreground",children:i(U(n))})]})]})]}):null},G=({hasVariant:i,price:s,displayCurrency:n,selectedInterval:a,getIntervalLabel:d})=>{const{t:l,fmtCents:o}=c();return e(t,{children:[r("span",{className:"text-2xl font-bold text-foreground",children:i&&null!==s?(u=s,m=n,(null==u||0===u?"":o(u,m))||l("pricing.free")):"—"}),null!==s&&s>0&&i&&r("span",{className:"text-sm text-muted-foreground",children:d(a)})]});var u,m},q=({planVersion:e,isCurrent:t,trialUsedAt:i,currentStripePriceId:s})=>{const{t:n}=c(),a=e.trial;return a?.enabled&&a.durationDays>0&&!t&&!i&&!s?r("span",{className:"shrink-0 rounded-md bg-success/15 text-success px-2 py-0.5 text-xs font-semibold uppercase tracking-wider",children:n("subscription.trialBadge",{days:a.durationDays})}):null},A=({open:d,onOpenChange:A,source:R,planVersions:T,currentPlanVersionId:W,currentStripePriceId:$,billingCurrency:Y,currentMemberCount:H,trialUsedAt:B,workspaceName:E,initialInterval:J,initialCurrency:X,onSelectPlan:Z,loading:ee=!1})=>{const[re,te]=s(!1),{t:ie,formattingLocale:se,dir:ne,fmtNum:ae,fmtCents:de}=c(),le=e=>ie(V[e]??V[l.Monthly]),[ce,oe]=s(null),ue=i.useRef(!1),me=n(()=>o($,T),[$,T]),pe=me?.interval??null,be=me?.currency??null,ge=n(()=>u(T),[T]),he=n(()=>{const e=Y?.trim().toLowerCase();return e?ge.includes(e)?[e]:[]:ge},[Y,ge]),[xe,fe]=s(J||pe||l.Monthly),ye=n(()=>M(),[]),[Ne,ve]=s(()=>m(he,[X,be,ye])),ke=Y?.trim()||Ne;a(()=>{if(d){fe(J||pe||l.Monthly);const e=X||be;e&&he.includes(e)?ve(e):he.length>0&&!he.includes(Ne)&&ve(m(he,[ye]))}},[d,J,X,pe,be,he,ye]);const we=T,_e=n(()=>p(we,ke),[we,ke]);a(()=>{_e.length&&!_e.includes(xe)&&fe(_e[0])},[_e,xe]);const Ce=n(()=>(e=>{const r=new Map;return e.forEach(e=>{e.subscriptionItems?.forEach(e=>{r.has(e._id)||r.set(e._id,e)})}),Array.from(r.values())})(we),[we]),Ie=Ce.filter(e=>e.type===b.Feature),Pe=Ce.filter(e=>e.type===b.Limit),Se=Ce.filter(e=>e.type===b.Quota),{emit:Me,ready:Le}=g(),ze=i.useRef(!1),je=i.useRef(!1);a(()=>{if(!d)return ze.current&&!je.current&&Me("plan_picker_dismissed",{source:R,billing_interval:xe}),ze.current=!1,void(je.current=!1);!ze.current&&Le&&(ze.current=!0,Me("plan_picker_opened",{source:R,plan_count:T.length,has_subscription:!!W,current_plan_version_id:W,billing_interval:xe,currency:ke?ke.toUpperCase():void 0}))},[d,Le]);const De=e=>{if(!W)return"new";if(e._id===W)return"interval_change";const r=T.find(e=>e._id===W),t=r?v(r,ke,xe):null,i=v(e,ke,xe);return null==t||null==i?"change":i>=t?"upgrade":"downgrade"},Ke=async e=>{if(e===W&&pe===xe||ee||re||ue.current)return;const r=T.find(r=>r._id===e);if(r){const t=v(r,ke,xe);je.current=!0,Me("plan_selected",{source:R,plan_version_id:e,plan_slug:r.plan?.slug,billing_interval:xe,currency:ke?ke.toUpperCase():void 0,value:null==t?void 0:S(t,ke),change:De(r),is_free:!!r.plan?.isFreemium})}ue.current=!0,te(!0),oe(e);try{await Z(e,xe,ke),A(!1)}catch(e){}finally{ue.current=!1,te(!1),oe(null)}},Ve=e=>v(e,ke,xe),Oe=e=>!!e.pricingVariants?.some(e=>e.currency?.toLowerCase()===ke.toLowerCase()),Fe=ee||re,Ue=e=>{switch(e){case l.Monthly:return ie("subscription.billingInterval.monthly");case l.Quarterly:return ie("subscription.billingInterval.quarterly");case l.Yearly:return ie("subscription.billingInterval.yearly");default:return ie("subscription.billingInterval.monthly")}},Qe=e=>{const r=e._id===W,t=pe===xe;if(r&&t)return{labelKey:"subscription.currentPlan",variant:"outline",disabled:!0};if(r&&!t)return e.plan?.isFreemium?{labelKey:"subscription.currentPlan",variant:"outline",disabled:!0}:{labelKey:"_dynamic",dynamicLabel:ie("subscription.switchToInterval",{interval:Ue(xe)}),variant:"default",disabled:!1};const i=e.trial?.enabled&&e.trial.durationDays>0&&!B&&!$;if(!W)return i?{labelKey:"_dynamic",dynamicLabel:ie("subscription.startTrialDays",{days:e.trial.durationDays}),variant:"default",disabled:!1}:{labelKey:e.plan?.isFreemium?"subscription.startFree":"subscription.subscribe",variant:"default",disabled:!1};const s=we.findIndex(e=>e._id===W),n=we.findIndex(r=>r._id===e._id);return-1===s||-1===n?i?{labelKey:"_dynamic",dynamicLabel:ie("subscription.startTrialDays",{days:e.trial.durationDays}),variant:"default",disabled:!1}:{labelKey:"subscription.checkout.select",variant:"default",disabled:!1}:n<s?{labelKey:"subscription.checkout.downgrade",variant:"outline",disabled:!1}:n>s?i?{labelKey:"_dynamic",dynamicLabel:ie("subscription.startTrialDays",{days:e.trial.durationDays}),variant:"default",disabled:!1}:{labelKey:"subscription.checkout.upgrade",variant:"default",disabled:!1}:{labelKey:"subscription.checkout.select",variant:"default",disabled:!1}},Ge=(e,r,t=l.Monthly)=>{if(r.type===b.Feature)return e.features?.[r.slug]??!1;if(r.type===b.Limit)return e.limits?.[r.slug]??null;if(r.type===b.Quota){const i=C(e,ke,r.slug,t);return i||I(e.quotas?.[r.slug],t)}return null},qe=(e,r,t)=>{if(r.type===b.Feature)return!0===e?"✓":"—";if(r.type===b.Limit)return((e,r,t)=>null==e||"number"!=typeof e||Number.isNaN(e)?"—":e<0?r:0===e?"—":t(e))(e,ie("subscription.items.unlimited"),ae);if(r.type===b.Quota){const i=P("object"==typeof e&&null!==e&&"included"in e?e:null,r.name.toLowerCase(),{currency:t,locale:se});return i?i.allowOverage?i.hasOverage?ie("quota.includedWithOverage",{count:i.included,price:i.price,unit:i.unit}):ie("quota.includedOnly",{count:i.included}):ie("quota.includedHardLimit",{count:i.included}):"—"}return"—"};return r(h,{open:d,onOpenChange:A,children:e(x,{dir:ne,className:"inset-0 w-screen h-screen max-w-none rounded-none translate-x-0 translate-y-0 p-0 flex flex-col",children:[e("div",{className:"flex-shrink-0 px-4 py-4 sm:px-6 sm:py-6 border-b space-y-3 sm:space-y-4",children:[e("div",{children:[r(f,{className:"text-xl font-semibold",children:ie("pricing.title")}),e(y,{className:"mt-1 text-sm",children:[ie("subscription.choosePlanDescription"),E&&r("span",{className:"ml-1 font-medium text-foreground",children:ie("subscription.forWorkspace",{name:E})})]})]}),e("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 sm:gap-4",children:[e("div",{className:"flex items-center gap-2",children:[!Y?.trim()&&he.length>1&&e(t,{children:[r("span",{className:"text-sm text-muted-foreground",children:ie("pricing.currency")}),e(L,{value:Ne,onValueChange:ve,children:[r(z,{"aria-label":ie("pricing.selectCurrency"),className:"w-auto min-w-[6rem] font-medium",children:r(j,{})}),r(D,{children:he.map(e=>{const t=N(e);return r(K,{value:e,textValue:e.toUpperCase(),children:t?`${t} ${e.toUpperCase()}`:e.toUpperCase()},e)})})]})]}),Y?.trim()&&r("span",{className:"text-xs text-muted-foreground",children:ie("subscription.billingInCurrency",{currency:Y.toUpperCase()})})]}),_e.length>1&&r("div",{className:"flex items-center gap-0.5 sm:gap-1 p-1 bg-muted rounded-lg w-full sm:w-auto",role:"group","aria-label":ie("pricing.billingInterval"),children:_e.map(t=>{const i=pe===t;return r("button",{onClick:()=>(e=>{e!==xe&&Me("billing_interval_changed",{from:xe,to:e}),fe(e)})(t),"aria-pressed":xe===t,className:"flex-1 sm:flex-initial px-3 sm:px-4 py-2 text-sm font-medium rounded-md transition-all relative "+(xe===t?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),children:e("span",{className:"flex items-center justify-center gap-1 sm:gap-1.5",children:[t===l.Monthly&&ie("subscription.billingInterval.monthly"),t===l.Quarterly&&ie("subscription.billingInterval.quarterly"),t===l.Yearly&&ie("subscription.billingInterval.yearly"),t===l.Yearly&&r("span",{className:"text-xs px-1 sm:px-1.5 py-0.5 bg-success/15 text-success rounded-full font-semibold",children:ie("pricing.save")}),i&&W&&r("span",{className:"hidden sm:inline text-xs px-1.5 py-0.5 bg-info/15 text-info rounded-full font-semibold",children:ie("pricing.current")})]})},t)})})]})]}),r("div",{className:"flex-1 min-h-0 flex flex-col",children:Y?.trim()&&0===he.length?e("div",{className:"text-center py-12 px-4",children:[r("p",{className:"text-muted-foreground font-medium",children:ie("pricing.noPlansCurrency")}),r("p",{className:"text-muted-foreground text-sm mt-2",children:ie("pricing.noPlansCurrencyHint")})]}):0===we.length?r("div",{className:"text-center py-12 text-muted-foreground",children:r("p",{children:ie("pricing.noPlans")})}):e("div",{className:"flex-1 min-h-0 overflow-hidden bg-background",children:[r("div",{className:"md:hidden overflow-auto h-full",style:{maxHeight:"calc(100vh - 13rem)"},children:r("div",{className:"p-4 space-y-4",children:we.map(t=>{const i=t._id===W,s=Qe(t),n=Fe&&t._id===ce,a=Ve(t),d=Oe(t),c=F(t,ke),o=v(t,ke,l.Monthly)??0,u=xe!==l.Monthly&&null!==a?O(o,a,xe):null,m=k(t,ke),p=m?w(t,ke,xe):null;return e("div",{className:"rounded-xl border-2 p-4 "+(i?"border-info bg-info/5":"border-border bg-background"),children:[e("div",{className:"flex items-start justify-between mb-3",children:[e("div",{children:[e("div",{className:"flex items-center gap-2",children:[r("h3",{className:"text-lg font-bold text-foreground",children:t.plan.name}),r(q,{planVersion:t,isCurrent:i,trialUsedAt:B,currentStripePriceId:$})]}),t.plan.description&&r("p",{className:"text-xs text-muted-foreground mt-0.5 line-clamp-2",children:t.plan.description})]}),i&&r("span",{className:"shrink-0 rounded-md bg-info px-2 py-0.5 text-xs font-semibold uppercase tracking-wider text-info-foreground",children:ie("pricing.current")})]}),e("div",{className:"mb-4",children:[r("div",{className:"flex items-baseline gap-1 whitespace-nowrap",children:r(G,{hasVariant:d,price:a,displayCurrency:c,selectedInterval:xe,getIntervalLabel:le})}),null!==u&&u>0&&d&&r("span",{className:"text-xs text-success font-medium",children:ie("subscription.savingsPercent",{percent:u})}),m?.enabled&&p&&p>0&&r("div",{className:"text-xs text-muted-foreground mt-1",children:ie("subscription.seatPriceDisplay",{price:de(p,c),interval:le(xe),included:ae(m.includedSeats),includedLabel:ie("pricing.included")})})]}),Ie.length>0&&e("div",{className:"mb-3",children:[r("div",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider mb-1.5",children:ie("subscription.items.features")}),r("div",{className:"space-y-1",children:Ie.map(i=>{const s=Ge(t,i,xe),n=i.type===b.Feature&&!0===s;return e("div",{className:"flex items-center gap-2 text-sm",children:[i.type===b.Feature?r("span",n?{className:"text-success text-xs",children:"✓"}:{className:"text-muted-foreground/50 text-xs",children:"✕"}):null,r("span",{className:n?"text-foreground":"text-muted-foreground/70",children:i.name})]},i._id)})})]}),Pe.length>0&&e("div",{className:"mb-3",children:[r("div",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider mb-1.5",children:ie("subscription.items.limits")}),r("div",{className:"space-y-1",children:Pe.map(i=>{const s=Ge(t,i,xe);return e("div",{className:"flex items-center justify-between text-sm",children:[r("span",{className:"text-muted-foreground",children:i.name}),r("span",{className:"font-medium text-foreground",children:qe(s,i,F(t,ke))})]},i._id)})})]}),m?.enabled&&e("div",{className:"mb-3",children:[r("div",{className:"text-xs font-semibold text-success uppercase tracking-wider mb-1.5",children:ie("subscription.seats.title")}),e("div",{className:"space-y-1 text-sm",children:[e("div",{className:"flex justify-between",children:[r("span",{className:"text-muted-foreground",children:ie("subscription.seats.included")}),r("span",{className:"font-medium",children:ae(m.includedSeats||0)})]}),e("div",{className:"flex justify-between",children:[r("span",{className:"text-muted-foreground",children:ie("subscription.seats.maxSeats")}),r("span",{className:"font-medium",children:(m?.maxSeats??0)>0?ae(m.maxSeats):ie("subscription.seats.unlimited")})]}),null!=H&&H>0&&(()=>{const t=Math.max(0,H-(m.includedSeats||0));return e("div",{className:"flex justify-between",children:[r("span",{className:"text-muted-foreground",children:ie("subscription.seats.billable")}),r("span",{className:"font-medium "+(0===t?"text-success":"text-warning"),children:0===t?ie("subscription.seats.allIncluded"):`${ae(t)} ${ie("subscription.seats.extra")}`})]})})()]})]}),r(Q,{planVersion:t}),r(_,{className:"w-full mt-2",variant:s.variant,disabled:s.disabled||Fe||!d,progress:n,onClick:()=>Ke(t._id),children:n?ie("pricing.processing"):d?s.dynamicLabel??ie(s.labelKey):ie("pricing.unavailable")})]},t._id)})})}),r("div",{className:"hidden md:block overflow-auto h-full",style:{maxHeight:"calc(100vh - 12rem)"},children:e("table",{"aria-label":ie("subscription.choosePlan"),className:"w-full border-separate border-spacing-0",style:{minWidth:260+220*we.length+"px",borderCollapse:"separate"},children:[e("colgroup",{children:[r("col",{style:{width:260,minWidth:260}}),we.map(e=>r("col",{style:{width:220,minWidth:220}},e._id))]}),r("thead",{children:e("tr",{className:"align-top",children:[r("th",{className:"sticky top-0 start-0 z-30 p-0 bg-background text-start"}),we.map(t=>{const i=t._id===W,s=Qe(t),n=Fe&&t._id===ce,a=Ve(t),d=v(t,ke,l.Monthly)??0,c=xe!==l.Monthly&&null!==a?O(d,a,xe):null,o=Oe(t),u=F(t,ke);return r("th",{className:"sticky top-0 z-20 border-b border-border p-3 shadow-sticky-row "+(t._id===W?"bg-info/10":"bg-background"),children:e("div",{className:"flex h-full flex-col gap-2",children:[e("div",{className:"flex items-center justify-between gap-2",children:[e("div",{className:"flex items-center gap-2 min-w-0",children:[r("h3",{className:"text-base font-bold text-foreground truncate",children:t.plan.name}),r(q,{planVersion:t,isCurrent:i,trialUsedAt:B,currentStripePriceId:$})]}),i&&r("span",{className:"shrink-0 rounded-md bg-info px-2 py-0.5 text-xs font-semibold uppercase tracking-wider text-info-foreground",children:ie("pricing.current")})]}),e("div",{className:"flex flex-col items-start min-h-[3rem]",children:[e("div",{className:"flex items-baseline gap-1 flex-wrap",children:[r(G,{hasVariant:o,price:a,displayCurrency:u,selectedInterval:xe,getIntervalLabel:le}),null!==c&&c>0&&o&&r("span",{className:"text-xs px-1.5 py-0.5 bg-success/15 text-success rounded-full font-semibold whitespace-nowrap",children:ie("subscription.savingsPercent",{percent:c})})]}),(()=>{const e=k(t,ke);if(!e)return null;const i=w(t,ke,xe);return!i||i<=0?null:r("div",{className:"text-xs text-muted-foreground mt-1.5 border-t border-border/60 pt-1 leading-tight",children:r("div",{children:ie("subscription.seatPriceDisplay",{price:de(i,u),interval:le(xe),included:ae(e.includedSeats),includedLabel:ie("pricing.included")})})})})()]}),t.plan.description&&r("p",{className:"text-xs text-muted-foreground line-clamp-2 leading-relaxed text-start",children:t.plan.description}),r(_,{className:"mt-auto w-full",variant:s.variant,disabled:s.disabled||Fe||!o,progress:n,onClick:()=>Ke(t._id),children:n?ie("pricing.processing"):o?s.dynamicLabel??ie(s.labelKey):ie("pricing.unavailable")})]})},t._id)})]})}),e("tbody",{children:[Ie.length>0&&e(t,{children:[e("tr",{children:[r("td",{className:"sticky start-0 z-10 border-t border-border bg-muted px-4 py-2.5 font-semibold text-xs uppercase tracking-wider text-muted-foreground shadow-sticky-col",children:ie("subscription.items.features")}),r("td",{colSpan:we.length,className:"border-t border-border bg-muted"})]}),Ie.map(t=>e("tr",{className:"group hover:bg-muted/30",children:[e("td",{className:"sticky start-0 z-10 border-t border-border/60 bg-background p-4 shadow-sticky-col group-hover:bg-muted/50",children:[r("div",{className:"font-medium text-sm text-foreground",children:t.name}),t.description&&r("div",{className:"text-xs text-muted-foreground mt-0.5",children:t.description})]}),we.map(e=>{const i=Ge(e,t,xe),s=F(e,ke),n=qe(i,t,s),a=t.type===b.Feature&&!0===i;return r("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(e._id===W?"bg-info/5":"bg-background"),children:r("span",{className:"text-sm font-medium "+(a?"text-success":"—"===n?"text-muted-foreground/70":"text-foreground"),children:n})},e._id)})]},t._id))]}),Pe.length>0&&e(t,{children:[e("tr",{children:[r("td",{className:"sticky start-0 z-10 border-t border-border bg-muted px-4 py-2.5 font-semibold text-xs uppercase tracking-wider text-muted-foreground shadow-sticky-col",children:ie("subscription.items.limits")}),r("td",{colSpan:we.length,className:"border-t border-border bg-muted"})]}),Pe.map(t=>e("tr",{className:"group hover:bg-muted/30",children:[e("td",{className:"sticky start-0 z-10 border-t border-border/60 bg-background p-4 shadow-sticky-col group-hover:bg-muted/50",children:[r("div",{className:"font-medium text-sm text-foreground",children:t.name}),t.description&&r("div",{className:"text-xs text-muted-foreground mt-0.5",children:t.description})]}),we.map(e=>{const i=Ge(e,t,xe),s=F(e,ke),n=qe(i,t,s);return r("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(e._id===W?"bg-info/5":"bg-background"),children:r("span",{className:"text-sm font-medium "+("—"===n?"text-muted-foreground/70":"text-foreground"),children:n})},e._id)})]},t._id))]}),Se.length>0&&e(t,{children:[e("tr",{children:[r("td",{className:"sticky start-0 z-10 border-t border-border bg-muted px-4 py-2.5 font-semibold text-xs uppercase tracking-wider text-muted-foreground shadow-sticky-col",children:ie("subscription.items.quotas")}),r("td",{colSpan:we.length,className:"border-t border-border bg-muted"})]}),Se.map(t=>e("tr",{className:"group hover:bg-muted/30",children:[e("td",{className:"sticky start-0 z-10 border-t border-border/60 bg-background p-4 shadow-sticky-col group-hover:bg-muted/50",children:[r("div",{className:"font-medium text-sm text-foreground",children:t.name}),t.description&&r("div",{className:"text-xs text-muted-foreground mt-0.5",children:t.description})]}),we.map(e=>{const i=Ge(e,t,xe),s=F(e,ke),n=qe(i,t,s);return r("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(e._id===W?"bg-info/5":"bg-background"),children:r("span",{className:"text-sm font-medium "+("—"===n?"text-muted-foreground/70":"text-foreground"),children:n})},e._id)})]},t._id))]}),we.some(e=>{const r=k(e,ke);return r?.enabled})&&e(t,{children:[e("tr",{children:[r("td",{className:"sticky start-0 z-10 border-t border-success/20 bg-success/10 px-4 py-2.5 font-semibold text-xs uppercase tracking-wider text-success shadow-sticky-col",children:ie("subscription.seats.title")}),r("td",{colSpan:we.length,className:"border-t border-success/20 bg-success/10"})]}),e("tr",{className:"group hover:bg-muted/30",children:[e("td",{className:"sticky start-0 z-10 border-t border-border/60 bg-background p-4 shadow-sticky-col group-hover:bg-muted/50",children:[r("div",{className:"font-medium text-sm text-foreground",children:ie("subscription.seats.includedSeats")}),r("div",{className:"text-xs text-muted-foreground mt-0.5",children:ie("subscription.seats.freeWithBase")})]}),we.map(e=>{const t=k(e,ke);return r("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(e._id===W?"bg-info/5":"bg-background"),children:r("span",{className:"text-sm font-medium text-foreground",children:t?.enabled?ae(t.includedSeats||0):"—"})},e._id)})]}),e("tr",{className:"group hover:bg-muted/30",children:[r("td",{className:"sticky start-0 z-10 border-t border-border/60 bg-background p-4 shadow-sticky-col group-hover:bg-muted/50",children:r("div",{className:"font-medium text-sm text-foreground",children:ie("subscription.seats.maxSeats")})}),we.map(e=>{const t=k(e,ke);return r("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(e._id===W?"bg-info/5":"bg-background"),children:r("span",{className:"text-sm font-medium text-foreground",children:t?.enabled?(t?.maxSeats??0)>0?ae(t.maxSeats):ie("subscription.seats.unlimited"):"—"})},e._id)})]}),e("tr",{className:"group hover:bg-muted/30",children:[r("td",{className:"sticky start-0 z-10 border-t border-border/60 bg-background p-4 shadow-sticky-col group-hover:bg-muted/50",children:r("div",{className:"font-medium text-sm text-foreground",children:ie("subscription.seats.perExtraSeat")})}),we.map(e=>{const t=w(e,ke,xe),i=F(e,ke);return r("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(e._id===W?"bg-info/5":"bg-background"),children:r("span",{className:"text-sm font-medium text-foreground",children:t&&t>0?`${de(t,i)}${le(xe)}`:"—"})},e._id)})]}),null!=H&&H>0&&e("tr",{className:"group hover:bg-muted/30",children:[e("td",{className:"sticky start-0 z-10 border-t border-border/60 bg-background p-4 shadow-sticky-col group-hover:bg-muted/50",children:[r("div",{className:"font-medium text-sm text-foreground",children:ie("subscription.seats.billable")}),r("div",{className:"text-xs text-muted-foreground mt-0.5",children:ie("subscription.membersInWorkspace",{count:H})})]}),we.map(t=>{const i=k(t,ke);if(!i?.enabled)return r("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(t._id===W?"bg-info/5":"bg-background"),children:r("span",{className:"text-sm text-muted-foreground/70",children:"—"})},t._id);const s=i.includedSeats||0,n=Math.max(0,H-s);return r("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(t._id===W?"bg-info/5":"bg-background"),children:0===n?r("span",{className:"text-sm font-medium text-success",children:ie("subscription.seats.allIncluded")}):e("span",{className:"text-sm font-medium text-warning",children:[ae(n)," ",ie("subscription.seats.extra")]})},t._id)})]})]}),we.some(e=>e.creditGrant?.enabled&&"object"==typeof e.creditGrant.creditPackage&&null!==e.creditGrant.creditPackage)&&e(t,{children:[e("tr",{children:[r("td",{className:"sticky start-0 z-10 border-t border-info/20 bg-info/10 px-4 py-2.5 font-semibold text-xs uppercase tracking-wider text-info shadow-sticky-col",children:ie("subscription.items.credits")}),r("td",{colSpan:we.length,className:"border-t border-info/20 bg-info/10"})]}),e("tr",{className:"group hover:bg-muted/30",children:[r("td",{className:"sticky start-0 z-10 border-t border-border/60 bg-background p-4 shadow-sticky-col group-hover:bg-muted/50",children:r("div",{className:"font-medium text-sm text-foreground",children:we.every(e=>!e.creditGrant?.enabled||!e.creditGrant.renewOnPeriod)?ie("subscription.items.creditsOneTime"):ie("subscription.items.creditsPerMonth")})}),we.map(e=>{const t=e.creditGrant,i=t?.enabled&&"object"==typeof t.creditPackage&&null!==t.creditPackage?t.creditPackage:null;return r("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(e._id===W?"bg-info/5":"bg-background"),children:r("span",i?{className:"text-sm font-semibold text-info",children:ae(i.creditAmount)}:{className:"text-sm text-muted-foreground/70",children:"—"})},e._id)})]}),e("tr",{className:"group hover:bg-muted/30",children:[r("td",{className:"sticky start-0 z-10 border-t border-border/60 bg-background p-4 shadow-sticky-col group-hover:bg-muted/50",children:r("div",{className:"font-medium text-sm text-foreground",children:ie("subscription.items.creditRenewal")})}),we.map(e=>{const t=e.creditGrant;return r("td",{className:"border-t border-border/60 p-4 text-center align-middle "+(e._id===W?"bg-info/5":"bg-background"),children:r("span",t?.enabled?{className:"text-sm font-medium text-foreground",children:ie(U(t))}:{className:"text-sm text-muted-foreground/70",children:"—"})},e._id)})]})]})]})]})})]})})]})})};export{A as default};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ const e={settings:{titles:{profile:"الحساب",security:"الأمان",devices:"الأجهزة والجلسات",general:"إعدادات مساحة العمل",users:"أعضاء مساحة العمل",subscription:"الخطة والفوترة",usage:"الاستخدام",credits:"الرصيد",features:"ميزات مساحة العمل",notifications:"الإشعارات",permissions:"الصلاحيات",danger:"منطقة الخطر"},sidebar:{account:"الحساب",workspace:"مساحة العمل",profile:"الحساب",security:"الأمان",devices:"الأجهزة",general:"الإعدادات",users:"الأعضاء",subscription:"الخطة والفوترة",usage:"الاستخدام",credits:"الرصيد",features:"الميزات",notifications:"الإشعارات",permissions:"الصلاحيات",danger:"منطقة الخطر"},common:{refresh:"تحديث",refreshing:"جارٍ التحديث...",retry:"إعادة المحاولة",retrying:"جارٍ إعادة المحاولة...",save:"حفظ",saving:"جارٍ الحفظ...",cancel:"إلغاء",delete:"حذف",dismiss:"تجاهل",loading:"جارٍ التحميل...",success:"تم",error:"حدث خطأ ما",refreshAction:"{loading, select, true {جارٍ التحديث...} other {تحديث}}",retryAction:"{loading, select, true {جارٍ إعادة المحاولة...} other {إعادة المحاولة}}",noPermissionTitle:"الوصول مقيد",noPermissionDescription:"ليس لديك إذن للوصول إلى هذا القسم. تواصل مع مسؤول مساحة العمل إذا كنت بحاجة إلى الوصول.",billingManageOnly:"فقط المستخدمون الذين لديهم أذونات إدارة الفواتير يمكنهم تنفيذ هذا الإجراء.",openSettings:"فتح الإعدادات",back:"رجوع",close:"إغلاق"}},subscription:{managePlan:"إدارة خطتك وفوترتك",changePlan:"تغيير الخطة",viewPricingPlans:"عرض خطط الأسعار",viewPlans:"عرض الخطط",upgradePlan:"ترقية الآن",subscribe:"اشتراك",startFree:"ابدأ مجانًا",currentPlan:"الخطة الحالية",noSubscription:"ليس لديك اشتراك نشط",choosePlan:"اختر خطتك",choosePlanDescription:"قارن بين الخطط واختر ما يناسب احتياجاتك",forWorkspace:"لـ {name}",planUpdateAvailable:"تحديث الخطة متوفر",updateSuccess:"تم تحديث الاشتراك بنجاح!",updateSuccessTrial:"تم تغيير الخطة. تستمر فترتك التجريبية على الخطة الجديدة حتى {date}.",paymentRequiredTitle:"أكمل الدفع لإتمام الترقية",paymentRequiredMessage:"تبدأ خطتك الجديدة بمجرد إتمام هذا الدفع. حتى ذلك الحين تبقى على خطتك الحالية، ويُلغى التغيير إذا لم يُدفع في الوقت المحدد.",completePayment:"إكمال الدفع",updateFailed:"فشل التحديث",cancelTitle:"إلغاء الاشتراك",cancelConfirm:"هل أنت متأكد من رغبتك في إلغاء اشتراكك؟",cancelKeep:"الاحتفاظ بالاشتراك",cancelButton:"نعم، إلغاء الاشتراك",cancelTrialTitle:"إلغاء التجربة",cancelTrialConfirm:"هل أنت متأكد من رغبتك في إلغاء فترتك التجريبية؟",cancelTrialAccess:"ستستمر فترتك التجريبية حتى",cancelTrialNoCharge:"لن يتم تحصيل أي رسوم منك، وستنتهي فترتك التجريبية ببساطة",cancelTrialResume:"يمكنك استئناف فترتك التجريبية في أي وقت قبل انتهائها",cancelTrialKeep:"الاحتفاظ بالتجربة",cancelTrialButton:"نعم، إلغاء التجربة",canceling:"جارٍ الإلغاء...",cancelSuccess:"سيتم إلغاء الاشتراك في نهاية فترة الفوترة.",cancelNotCharged:"لن يتم تحصيل رسوم منك مرة أخرى بعد الإلغاء",cancelResumeAnytime:"يمكنك استئناف اشتراكك في أي وقت قبل انتهائه",resumeTitle:"استئناف الاشتراك",resumeTrial:"استئناف التجربة",resumeConfirm:"هل أنت متأكد من رغبتك في استئناف اشتراكك؟",resumeKeep:"إبقاء الإلغاء",resumeButton:"نعم، استئناف الاشتراك",resuming:"جارٍ الاستئناف...",resumeSuccess:"تم استئناف الاشتراك.",managePayment:"إدارة الدفع",openingPortal:"جارٍ الفتح...",viewAllPlans:"عرض جميع الخطط",scheduledCancellation:"تم جدولة إلغاء الاشتراك",scheduledTrialCancellation:"تم جدولة إلغاء التجربة",paymentPastDue:"الدفع متأخر",paymentPastDueDescription:"يرجى تحديث طريقة الدفع لتجنب انقطاع الخدمة.",subscriptionPaused:"الاشتراك موقوف",subscriptionPausedDescription:"اشتراكك موقوف حالياً. استأنف لاستعادة الوصول الكامل.",errorLoading:"خطأ في تحميل بيانات الاشتراك",errorLoadingDescription:"يرجى التحقق من اتصالك والمحاولة مرة أخرى.",errorProcessing:"فشل في معالجة الاشتراك",errorCanceling:"فشل في إلغاء الاشتراك",errorResuming:"فشل في استئناف الاشتراك",invalidWorkspace:"معرّف مساحة العمل غير صالح",billingInterval:{monthly:"شهري",quarterly:"ربع سنوي",yearly:"سنوي",perMonth:"/شهر",perQuarter:"/ربع سنة",perYear:"/سنة"},seats:{title:"المقاعد",members:"الأعضاء",included:"مشمول",billable:"قابل للفوترة",perExtraSeat:"لكل مقعد إضافي",limit:"الحد",includedSeats:"المقاعد المشمولة",maxSeats:"الحد الأقصى للمقاعد",freeWithBase:"مجاني مع السعر الأساسي",allIncluded:"الكل مشمول",extra:"إضافي",unlimited:"غير محدود"},items:{unlimited:"غير محدود",features:"الميزات",limits:"الحدود",quotas:"حصص الاستخدام",credits:"رصيد الذكاء الاصطناعي",creditsPerMonth:"الرصيد شهرياً",creditsOneTime:"رصيد (يُمنح مرة واحدة)",creditRenewal:"تجديد الرصيد",creditModeLifetime:"يُمنح مرة واحدة",creditsPerPeriod:"الرصيد شهرياً",creditRollover:"تجديد الرصيد",creditModeReset:"يتجدد كل شهر",creditModeTopup:"يتراكم كل شهر"},checkout:{upgrade:"ترقية",downgrade:"تخفيض",switchTo:"التبديل إلى",select:"اختيار"},status:{active:"نشط",canceling:"جارٍ الإلغاء",trial:"تجريبي",canceled:"ملغى",pastDue:"متأخر",paused:"موقوف",deprecated:"قديم",unknown:"غير معروف"},plan:"الخطة",invoicesTab:"الفواتير",tabsLabel:"علامات تبويب الاشتراك",endsOn:"(ينتهي في {date})",versionLabel:"الإصدار {version}",changePlanButton:"تغيير الخطة",noPlanAssigned:"لم يتم تعيين خطة",free:"مجاني",perSeatDisplay:"+ {price}/مقعد{interval}",estTotalDisplay:"الإجمالي التقديري: {total}{interval} ({count, plural, zero {بدون مقاعد إضافية} one {مقعد إضافي واحد} two {مقعدان إضافيان} few {# مقاعد إضافية} many {# مقعداً إضافياً} other {# مقعد إضافي}})",nextBillingDisplay:"الفوترة التالية: {date}",membersInWorkspace:"{count, plural, zero {لا أعضاء} one {عضو واحد} two {عضوان} few {# أعضاء} many {# عضواً} other {# عضو}} في مساحة العمل",billingInCurrency:"الفوترة بـ {currency}",savingsPercent:"وفّر {percent, number}%",switchToInterval:"التبديل إلى {interval}",seatPriceDisplay:"+ {price}/مقعد{interval} ({included} {includedLabel})",trialEnded:"انتهت فترتك التجريبية.",trialEndsIn:"تنتهي فترتك التجريبية خلال {days, plural, zero {اليوم} one {يوم واحد} two {يومين} few {# أيام} many {# يوماً} other {# يوم}}.",onTrial:"أنت في فترة تجريبية.",upgradeToKeepAccess:"قم بالترقية للحفاظ على الوصول.",trialKeepAccess:"يستمر وصولك بعد الفترة التجريبية بمجرد إضافة طريقة دفع.",viewInvoices:"عرض الفواتير",cancelTrial:"إلغاء التجربة",dunningFinal:"تحذير أخير: سيتم تعليق الاشتراك",dunningSuspended:"الاشتراك معلق",dunningRecovery:"جارٍ استرداد الدفع",dunningSuspendedDescription:"تم تعليق اشتراكك بسبب فشل الدفع المتكرر. حدّث طريقة الدفع لاستعادة الوصول.",dunningRecoveryDescription:"لم نتمكن من معالجة دفعتك. يرجى تحديث طريقة الدفع لتجنب فقدان الوصول.",cancelEndDescription:"سينتهي اشتراكك في",trialEndDescription:"ستنتهي فترتك التجريبية في",cancelEndFallback:"سيتم إلغاء اشتراكك في نهاية فترة الفوترة الحالية. لن يتم تحصيل رسوم منك مرة أخرى.",resumeChargeDate:"سيتم تحصيل الرسوم منك مرة أخرى في",resumeChargeFallback:"تاريخ الفوترة التالي",resumeContinue:"سيستمر اشتراكك تلقائياً وسيتم فوترتك وفقاً لخطتك",resumeCancelAnytime:"يمكنك الإلغاء في أي وقت قبل تاريخ الفوترة التالي إذا غيرت رأيك",retainAccess:"ستحتفظ بالوصول الكامل إلى هذه الخطة حتى",retainAccessFallback:"نهاية فترة الفوترة الحالية",noPlansAvailable:"لا توجد مجموعات خطط متاحة لمساحة العمل هذه. يرجى الاتصال بالدعم إذا كنت تعتقد أن هذا خطأ.",noPlansAvailableHint:"لا توجد مجموعات خطط متاحة لمساحة العمل هذه.",startTrialDescription:"جرب الخطة الكاملة بدون التزام. يمكنك الترقية أو الإلغاء في أي وقت.",noSubscriptionDescription:"اختر خطة للبدء مع مساحة العمل الخاصة بك",startFreeTrial:"ابدأ التجربة المجانية",startTrialDays:"ابدأ تجربة مجانية لمدة {days} يوم",trialBadge:"تجربة {days} يوم"},users:{emailPlaceholder:"example@example.com",title:"أعضاء مساحة العمل",adminOnly:"فقط مسؤول مساحة العمل يمكنه إدارة المستخدمين والأدوار.",inviteByEmail:"دعوة عضو عبر البريد الإلكتروني",inviteButton:"دعوة",inviting:"جارٍ الدعوة...",inviteSuccess:"تمت دعوة المستخدم بنجاح",emailRequired:"البريد الإلكتروني مطلوب",invalidEmail:"صيغة البريد الإلكتروني غير صالحة",inviteFailed:"فشل في دعوة العضو",seatLimitReached:"تم الوصول لحد المقاعد",memberLimitReached:"تم الوصول لحد الأعضاء",role:"الدور",you:"أنت",owner:"المالك",noMembers:"لم يتم العثور على أعضاء في مساحة العمل هذه.",extraSeatCost:"كل عضو إضافي يضيف {price}/{interval, select, yearly {سنة} quarterly {ربع سنة} other {شهر}} لاشتراكك",unknownUser:"مستخدم غير معروف",seats:"المقاعد",members:"الأعضاء",included:"مشمول",perExtraSeat:"/مقعد إضافي",maxMembers:"الحد الأقصى للأعضاء",available:"متاح",noMemberLimit:"لا حد للأعضاء",seatHeading:"{hasSeatPricing, select, true {المقاعد} other {الأعضاء}}",limitReached:"{reason, select, seat_limit_reached {تم الوصول لحد المقاعد} other {تم الوصول لحد الأعضاء}}",memberCount:"{count, plural, zero {لا أعضاء} one {عضو واحد} two {عضوان} few {# أعضاء} many {# عضواً} other {# عضو}}",subscriptionRequired:"الاشتراك مطلوب لدعوة الأعضاء.",seatLimitMessage:"خطتك تسمح بحد أقصى {maxUsers, number} {maxUsers, plural, zero {أعضاء} one {عضو} two {عضوين} few {أعضاء} many {عضواً} other {عضو}}. قم بالترقية للحصول على مقاعد إضافية.",settingsLimitMessage:"مساحة العمل هذه تسمح بحد أقصى {maxUsers, number} {maxUsers, plural, zero {أعضاء} one {عضو} two {عضوين} few {أعضاء} many {عضواً} other {عضو}}.",memberLimitMessage:"تم الوصول لحد الأعضاء: {maxUsers, number}.",selectRole:"اختر دوراً",inviteAs:"دعوة كـ {role}",invitations:{title:"الدعوات المعلقة",pendingCount:"{count, plural, =0 {لا توجد دعوات معلقة} zero {لا توجد دعوات معلقة} one {دعوة واحدة معلقة} two {دعوتان معلقتان} few {# دعوات معلقة} many {# دعوة معلقة} other {# دعوة معلقة}}",sent:"تم إرسال الدعوة إلى {email}",resend:"إعادة الإرسال",resendIn:"إعادة الإرسال خلال {minutes, plural, zero {# دقيقة} one {دقيقة واحدة} two {دقيقتين} few {# دقائق} many {# دقيقة} other {# دقيقة}}",revoke:"سحب",revokeTitle:"سحب الدعوة؟",revokeConfirm:"هل تريد سحب الدعوة المرسلة إلى {email}؟ سيتم إبلاغهم بأنها لم تعد صالحة.",sentAt:"أُرسلت {date}",expiresAt:"تنتهي {date}",seatNote:"{count, plural, zero {لا توجد دعوات معلقة تُحتسب كمقاعد} one {دعوة معلقة واحدة تُحتسب كمقعد} two {دعوتان معلقتان تُحتسبان كمقعدين} few {# دعوات معلقة تُحتسب كمقاعد} many {# دعوة معلقة تُحتسب كمقاعد} other {# دعوة معلقة تُحتسب كمقاعد}} حتى يتم قبولها أو رفضها أو سحبها أو انتهاء صلاحيتها.",formerMember:"عضو سابق",loadFailed:"تعذر تحميل الدعوات",resendFailed:"تعذر إعادة إرسال الدعوة",revokeFailed:"تعذر سحب الدعوة",status:{invited:"معلقة",accepted:"مقبولة",rejected:"مرفوضة",expired:"منتهية"}}},invitations:{title:"تمت دعوتك",description:"دعاك {inviter} للانضمام إلى {workspace} بصفة {role}.",listDescription:"مساحات عمل بانتظار ردك.",titleJoined:"مرحبًا بك في {workspace}",titleUnavailable:"الدعوة غير متاحة",sentTo:"أُرسلت إلى {email}",invitedAs:"دعاك {inviter} بصفة {role}",accept:"قبول",decline:"رفض",accepted:"انضممت إلى {workspace}.",declined:"تم رفض الدعوة.",expired:"انتهت صلاحية هذه الدعوة. اطلب من {inviter} إرسال دعوة جديدة.",revoked:"هذه الدعوة لم تعد صالحة.",alreadyAccepted:"لقد قبلت هذه الدعوة بالفعل.",wrongAccount:"أُرسلت هذه الدعوة إلى {email}. سجّل الخروج ثم سجّل الدخول بهذا العنوان.",verifyFirst:"تحقق من بريدك الإلكتروني لقبول هذه الدعوة.",workspaceFull:"وصلت مساحة العمل هذه إلى حد الأعضاء. اطلب من مسؤول إفساح المجال.",disabled:"لم تعد مساحة العمل هذه تقبل الدعوات.",empty:"لا توجد دعوات بانتظارك",signInToAccept:"سجّل الدخول للقبول",dismiss:"إغلاق",signOut:"تسجيل الخروج",loadFailed:"تعذر تحميل الدعوة",acceptFailed:"تعذر قبول الدعوة",declineFailed:"تعذر رفض الدعوة"},invoices:{title:"سجل الفوترة",description:"عرض وتحميل فواتيرك",pay:"دفع",view:"عرض",viewDetails:"عرض التفاصيل",download:"PDF",errorLoading:"خطأ في تحميل الفواتير",noInvoices:"لا توجد فواتير بعد. اشترك في خطة لاستلام الفواتير.",noInvoicesWithSub:"لم يتم العثور على فواتير مع خيار التحميل",paidAmount:"المدفوع: {amount}",na:"غ/م",status:{draft:"مسودة",open:"مفتوح",paid:"مدفوع",uncollectible:"غير قابل للتحصيل",void:"ملغى"}},usage:{title:"الاستخدام",description:"راقب استهلاك مواردك وحصصك",totalResources:"إجمالي الموارد",overallUsage:"الاستخدام الإجمالي",inOverage:"تجاوز الحد",estOverageCost:"التكلفة التقديرية للتجاوز",overageDetected:"تم اكتشاف تجاوز",overageDescription:"سيتم فوترة الاستخدام الإضافي كتجاوز في فاتورتك التالية.",overageUnits:"وحدات التجاوز",rate:"المعدل",billableBlocks:"الكتل القابلة للفوترة",estimatedCharge:"الرسوم التقديرية",noData:"لا تتوفر بيانات استخدام الحصص لمساحة العمل هذه.",noDataHint:"ستظهر الحصص هنا عندما تتضمن خطتك موارد مقاسة.",used:"مستخدم",remaining:"متبقٍ",overLimit:"فوق الحد",percentUsed:"{percent, number}% مستخدم",availableRemaining:"{count} متبقٍ",overLimitCount:"{count} فوق الحد",overageWarning:"{count, plural, zero {لم تتجاوز أي موارد الحصة المشمولة.} one {مورد واحد تجاوز الحصة المشمولة.} two {مورداً تجاوزا الحصة المشمولة.} few {# موارد تجاوزت الحصة المشمولة.} many {# مورداً تجاوز الحصة المشمولة.} other {# مورد تجاوز الحصة المشمولة.}} سيتم فوترة الاستخدام الإضافي كتجاوز في فاتورتك التالية.",fullyUsed:"مستخدم بالكامل",renewingSoon:"يتجدد قريباً",almostFull:"ممتلئ تقريباً",overage:"تجاوز",errorLoading:"فشل في تحميل بيانات الاستخدام",perUnit:"/ وحدة",perUnits:"/ وحدات",rateDisplay:"{rate} {unitSize, plural, =1 {/ وحدة} other {/ {unitSize, number} وحدة}}",resourcesExceeded:"{count, plural, zero {لم تتجاوز أي موارد الحصة المشمولة.} one {مورد واحد تجاوز الحصة المشمولة.} two {مورداً تجاوزا الحصة المشمولة.} few {# موارد تجاوزت الحصة المشمولة.} many {# مورداً تجاوز الحصة المشمولة.} other {# مورد تجاوز الحصة المشمولة.}}",estOverageCharges:"الرسوم التقديرية للتجاوز في هذه الفترة: {amount}",overageRateDisplay:"معدل التجاوز: {rate}",resetDateDisplay:"يتم إعادة تعيين الاستخدام في {date}",daysRemainingDisplay:"{count, plural, zero {اليوم} one {يوم واحد متبقٍ} two {يومان متبقيان} few {# أيام متبقية} many {# يوماً متبقياً} other {# يوم متبقٍ}}"},profile:{email:"البريد الإلكتروني",name:"الاسم",language:"اللغة",country:"البلد",currency:"العملة",timezone:"المنطقة الزمنية",profileImage:"صورة الملف الشخصي",changePicture:"رفع صورة",removePicture:"إزالة الصورة",success:"تم حفظ الملف الشخصي بنجاح",nameMinLength:"يجب أن يتكون الاسم من حرفين على الأقل.",save:"حفظ",reset:"إعادة تعيين",changeEmail:"تغيير",changeEmailNewLabel:"عنوان البريد الإلكتروني الجديد",changeEmailNewHint:"سنرسل رمزًا إلى العنوان الجديد. لا يتغير بريدك الإلكتروني إلا بعد أن تُدخل الرمز.",changeEmailInvalid:"أدخل عنوان بريد إلكتروني صالحًا.",changeEmailSame:"هذا هو عنوان بريدك الإلكتروني الحالي.",changeEmailSend:"إرسال الرمز",changeEmailSentTo:"أرسلنا رمزًا إلى {email}.",changeEmailCodeLabel:"الرمز المكوّن من 6 أرقام الوارد في البريد الإلكتروني",changeEmailCodeInvalid:"أدخل الرمز المكوّن من 6 أرقام الوارد في البريد الإلكتروني.",changeEmailConfirm:"تغيير البريد الإلكتروني",changeEmailResend:"إعادة إرسال الرمز",changeEmailResendIn:"إعادة الإرسال خلال {seconds, plural, zero {# ثانية} one {ثانية واحدة} two {ثانيتين} few {# ثوانٍ} many {# ثانية} other {# ثانية}}",changeEmailResent:"أرسلنا رمزًا جديدًا إلى {email}.",changeEmailChanged:"أصبح بريدك الإلكتروني الآن {email}. وأبلغنا عنوانك القديم بذلك.",changeEmailBlockedSocial:"أنت تسجّل الدخول عبر Google أو مزوّد آخر يعثر على حسابك بهذا العنوان، لذا لا يمكن تغييره هنا. تغييره سيُنشئ لك حسابًا ثانيًا.",username:"اسم المستخدم",usernameHint:"يمكنك تسجيل الدخول به بدلًا من بريدك الإلكتروني.",usernameInvalid:"استخدم من 3 إلى 30 حرفًا: أحرف من a إلى z أو أرقام أو نقاط أو شرطات أو شرطات سفلية، على أن يبدأ وينتهي بحرف أو رقم.",usernameSave:"حفظ اسم المستخدم",usernameRemove:"إزالة",usernameSaved:"أصبح اسم المستخدم الخاص بك {username}.",usernameRemoved:"تمت إزالة اسم المستخدم الخاص بك.",usernameRequiredNote:"يتطلب هذا التطبيق اسم مستخدم، لذا يمكنك تغييره لكن لا يمكنك إزالته.",loadFailed:"تعذّر تحميل ملفك الشخصي. يُرجى المحاولة مرة أخرى."},general:{ownerOnly:"فقط مالك مساحة العمل يمكنه تغيير إعدادات مساحة العمل.",name:"الاسم",namePlaceholder:"مساحة العمل الرائعة",nameMinLength:"يجب أن يتكون اسم مساحة العمل من حرفين على الأقل.",billingCurrency:"عملة الفوترة",icon:"الأيقونة",iconDescription:"اختر رمزاً تعبيرياً أو حمّل صورة مخصصة لمساحة العمل.",imageUrl:"رابط الصورة",imageUrlPlaceholder:"https://example.com/image.png",imageUrlDescription:"أدخل رابطاً صالحاً لصورة مساحة العمل. الصيغ المدعومة: PNG و JPG و SVG.",previewLabel:"معاينة:",previewImageAlt:"معاينة مساحة العمل",success:"تم حفظ إعدادات مساحة العمل بنجاح",chooseEmoji:"اختر رمزاً تعبيرياً",customImageUrl:"رابط صورة مخصص",uploadImage:"رفع صورة",chooseImage:"اختر صورة",updateWorkspace:"تحديث مساحة العمل"},uploads:{description:"PNG أو JPG أو GIF أو WebP أو SVG، حتى {max}.",uploading:"جارٍ الرفع...",errorTooLarge:"هذه الصورة كبيرة جدًا. اختر صورة حتى {max}.",errorInvalid:"نوع الملف هذا غير مدعوم. استخدم PNG أو JPG أو GIF أو WebP أو SVG.",errorDisabled:"رفع الصور متوقف في هذا التطبيق.",errorUserLimit:"لقد بلغت الحد الأقصى للرفع في هذا التطبيق.",errorUnavailable:"الرفع غير متاح حاليًا. حاول مرة أخرى لاحقًا.",errorFailed:"تعذّر رفع الصورة. تحقق من اتصالك وحاول مرة أخرى."},features:{title:"ميزات مساحة العمل",ownerOnly:"فقط مالك مساحة العمل يمكنه تغيير الميزات.",noFeatures:"لا توجد ميزات لإدارتها.",enabled:"مفعّل",disabled:"معطّل",enabling:"جارٍ التفعيل",disabling:"جارٍ التعطيل",featureSuccess:"بنجاح",updateSuccess:"تم {enabled, select, true {تفعيل} other {تعطيل}} {feature} بنجاح",actionStatus:"{action, select, enabling {جارٍ التفعيل} disabling {جارٍ التعطيل} other {}}",fallbackName:"الميزة"},danger:{title:"حذف مساحة العمل",adminOnly:"فقط مسؤولو مساحة العمل يمكنهم حذف مساحات العمل.",deleteWorkspace:"حذف مساحة العمل",deleteConfirm:"هل أنت متأكد تماماً؟",deleteWarning:"لا يمكن التراجع عن هذا الإجراء. سيتم حذف مساحة العمل وجميع البيانات المرتبطة نهائياً.",deleting:"جارٍ الحذف...",deleteDescription:"بمجرد حذف مساحة العمل لا يمكن العودة. سيتم حذف مساحة العمل وجميع بياناتها نهائياً، بما في ذلك الأعضاء والإعدادات والميزات.",deleteConfirmDescription:"لا يمكن التراجع عن هذا الإجراء. سيتم حذف مساحة العمل وجميع بياناتها نهائياً.",failedToDelete:"فشل في حذف مساحة العمل"},notifications:{inbox:{title:"الإشعارات",description:"كل ما أرسله إليك هذا التطبيق.",bellLabel:"الإشعارات",bellUnread:"{count, plural, zero {لا توجد إشعارات غير مقروءة} one {إشعار واحد غير مقروء} two {إشعاران غير مقروءين} few {# إشعارات غير مقروءة} many {# إشعارًا غير مقروء} other {# إشعار غير مقروء}}",filterAll:"الكل",filterUnread:"غير المقروءة",markAllRead:"تحديد الكل كمقروء",markRead:"تحديد كمقروء",markUnread:"تحديد كغير مقروء",archive:"أرشفة",loadMore:"تحميل المزيد",empty:"لقد اطلعت على كل شيء.",emptyUnread:"لا توجد إشعارات غير مقروءة.",loadFailed:"تعذر تحميل الإشعارات",updateFailed:"تعذر تحديث الإشعار",channelEmail:"البريد الإلكتروني",channelPush:"إشعار فوري",opened:"تم الفتح",clicked:"تم النقر",notDelivered:"لم يتم التسليم"},title:"تفضيلات الإشعارات",permissionDenied:"تم رفض إذن الإشعارات",notSupported:"الإشعارات الفورية غير مدعومة في هذا المتصفح.",manageDescription:"أدِر كيفية تلقي الإشعارات من مساحة العمل هذه.",blocked:"الإشعارات محظورة",blockedDescription:"لقد حظرت الإشعارات لهذا الموقع سابقاً. لتفعيلها، حدّث إعدادات متصفحك:",pushTitle:"الإشعارات الفورية",pushEnabledDescription:"ستتلقى إشعارات المتصفح للتحديثات المهمة.",pushDisabledDescription:"احصل على إشعارات حول مشاكل الدفع وانتهاء التجربة والتحديثات المهمة الأخرى.",enabling:"جارٍ التفعيل...",disabling:"جارٍ التعطيل...",enable:"تفعيل",disable:"تعطيل",toggleAction:"{loading, select, true {{subscribed, select, true {جارٍ التعطيل...} other {جارٍ التفعيل...}}} other {{subscribed, select, true {تعطيل} other {تفعيل}}}}",pushDescription:"{subscribed, select, true {ستتلقى إشعارات المتصفح للتحديثات المهمة.} other {احصل على إشعارات حول مشاكل الدفع وانتهاء التجربة والتحديثات المهمة الأخرى.}}",deviceNote:"يتم إرسال الإشعارات إلى هذا الجهاز. فعّلها على الأجهزة الأخرى بشكل منفصل.",prefsSaved:"تم حفظ تفضيلات الإشعارات.",prefsSaveFailed:"تعذر حفظ إعدادات الإشعارات",yourTitle:"إشعاراتك",yourDescription:"كيف تُبلَّغ بكل حدث في مساحة العمل هذه. يظل كل شيء في صندوق الوارد لديك.",defaultsTitle:"الإعدادات الافتراضية لمساحة العمل",defaultsDescription:"ما يحصل عليه الأعضاء ما لم يختاروا غير ذلك. لا يمكن للأعضاء تغيير حدث إلزامي.",requiredLabel:"إلزامي",requiredHint:"إلزامي في مساحة العمل هذه",loadingPrefs:"جارٍ تحميل التفضيلات...",categories:{workspace:"مساحة العمل",billing:"الفوترة والمدفوعات"},events:{workspace_invite:"تمت دعوة عضو",workspace_invite_desc:"عند إضافة عضو جديد إلى مساحة العمل",workspace_removed:"تمت إزالة عضو",workspace_removed_desc:"عند إزالة عضو من مساحة العمل",workspace_role_changed:"تم تغيير الدور",workspace_role_changed_desc:"عند تحديث دور أحد الأعضاء",subscription_created:"تم إنشاء الاشتراك",subscription_created_desc:"عند تفعيل اشتراك جديد",subscription_upgraded:"تمت ترقية الخطة",subscription_upgraded_desc:"عند ترقية خطة الاشتراك",subscription_canceled:"تم إلغاء الاشتراك",subscription_canceled_desc:"عند إلغاء الاشتراك",subscription_suspended:"تم تعليق الوصول",subscription_suspended_desc:"عند تعليق الوصول بسبب فشل المدفوعات",trial_ending:"الفترة التجريبية على وشك الانتهاء",trial_ending_desc:"قبل انتهاء الفترة التجريبية بأيام قليلة",trial_expired:"انتهت الفترة التجريبية",trial_expired_desc:"عند انتهاء الفترة التجريبية",payment_failed:"فشل الدفع",payment_failed_desc:"عند تعذر معالجة إحدى الدفعات",payment_action_required:"إجراء الدفع مطلوب",payment_action_required_desc:"عندما تتطلب إحدى الدفعات تحققاً إضافياً",payment_succeeded:"تم استلام الدفعة",payment_succeeded_desc:"عند معالجة الدفعة بنجاح"},unblock:{firefox:{step1:"انقر على أيقونة القفل (أو الدرع) في شريط العنوان",step2:'ابحث عن "Notifications" في قائمة الأذونات',step3:'غيّر من "Blocked" إلى "Allow"',step4:"أعد تحميل هذه الصفحة"},safari:{step1:"افتح Safari ← الإعدادات ← مواقع الويب ← الإشعارات",step2:"ابحث عن هذا الموقع في القائمة",step3:'غيّر من "Deny" إلى "Allow"',step4:"أعد تحميل هذه الصفحة"},edge:{step1:"انقر على أيقونة القفل في شريط العنوان",step2:'انقر على "Permissions for this site"',step3:'اضبط "Notifications" على "Allow"',step4:"أعد تحميل هذه الصفحة"},chrome:{step1:"انقر على أيقونة القفل (أو الضبط) في شريط العنوان",step2:'انقر على "Site settings"',step3:'اضبط "Notifications" على "Allow"',step4:"أعد تحميل هذه الصفحة"}}},quota:{includedOnly:"{count, number} مشمول",includedWithOverage:"{count, number} مشمول، ثم {price} / {unit}",includedHardLimit:"{count, number} مشمول (حد أقصى)",unitFallback:"وحدة"},pricing:{title:"اختر خطتك",description:"قارن بين الخطط واختر ما يناسب احتياجاتك",currency:"العملة",billingIn:"الفوترة بـ",noPlansCurrency:"لا توجد خطط متاحة لعملة الفوترة الخاصة بك.",noPlansCurrencyHint:"حدث خطأ ما. يرجى الاتصال بالدعم.",noPlans:"لا توجد خطط متاحة",free:"مجاني",included:"مشمول",save:"وفّر",current:"الحالي",processing:"جارٍ المعالجة...",unavailable:"غير متاح",selectCurrency:"اختر عملة الفوترة",billingInterval:"فترة الفوترة"},beta:{logoAlt:"الشعار",nameLabel:"الاسم",emailLabel:"البريد الإلكتروني",submitText:"إرسال",submittingText:"جارٍ الإرسال...",errorMessage:"حدث خطأ",tryAgain:"حاول مرة أخرى",privacyConsent:"بإرسال هذا النموذج، فإنك توافق على",privacyPolicy:"سياسة الخصوصية",and:"و",termsOfService:"شروط الخدمة"},workspace:{switchTitle:"تبديل مساحة العمل",switchDescription:"اختر مساحة عمل للتبديل إليها أو أنشئ واحدة جديدة.",notLoggedIn:"يبدو أنك لم تسجل الدخول. يرجى تسجيل الدخول للمتابعة.",availableWorkspaces:"مساحات العمل المتاحة ({count, number})",loadingWorkspaces:"جارٍ تحميل مساحات العمل...",searchPlaceholder:"بحث في مساحات العمل...",noWorkspacesFound:"لم يتم العثور على مساحات عمل",noWorkspacesAvailable:"لا تتوفر مساحات عمل",switchTo:"التبديل إلى",membersCount:"{count, plural, zero {لا أعضاء} one {عضو واحد} two {عضوان} few {# أعضاء} many {# عضواً} other {# عضو}}",createNew:"إنشاء مساحة عمل جديدة",createTitle:"إنشاء مساحة عمل جديدة",createDescription:"أنشئ مساحة عمل جديدة للبدء.",workspaceName:"اسم مساحة العمل",workspaceNamePlaceholder:"مساحة العمل الرائعة",workspaceNameMinLength:"يجب أن يتكون اسم مساحة العمل من حرفين على الأقل.",workspaceIcon:"أيقونة مساحة العمل",iconDescription:"اختر رمزاً تعبيرياً أو حمّل صورة مخصصة لمساحة العمل.",chooseEmoji:"اختر رمزاً تعبيرياً",customImageUrl:"رابط صورة مخصص",imageUrl:"رابط الصورة",imageUrlPlaceholder:"https://example.com/image.png",imageUrlDescription:"أدخل رابطاً صالحاً لصورة مساحة العمل. الصيغ المدعومة: PNG و JPG و SVG.",invalidUrl:"يرجى إدخال رابط صالح",creating:"جارٍ الإنشاء...",createWorkspace:"إنشاء مساحة العمل"},dropdowns:{search:"بحث...",chooseOption:"اختر خياراً",chooseCountry:"اختر البلد",searchCountry:"اختر البلد...",chooseLanguage:"اختر اللغة",searchLanguage:"اختر اللغة...",chooseCurrency:"اختر العملة",searchCurrency:"اختر العملة...",chooseTimezone:"اختر المنطقة الزمنية",searchTimezone:"اختر المنطقة الزمنية...",noResults:"لم يتم العثور على نتائج"},push:{failedToSubscribe:"فشل في الاشتراك في الإشعارات الفورية",failedToUnsubscribe:"فشل في إلغاء الاشتراك من الإشعارات الفورية"},permissions:{title:"الصلاحيات",description:"قم بتكوين ما يمكن لكل دور القيام به في مساحة العمل هذه.",ownerOnly:"يمكن لمالك مساحة العمل فقط إدارة الصلاحيات.",save:"حفظ الصلاحيات",saving:"جارٍ الحفظ...",saveSuccess:"تم حفظ الصلاحيات بنجاح"},credits:{title:"الرصيد",description:"يمكن استخدام الرصيد للإجراءات المميزة مثل التوليد بالذكاء الاصطناعي.",balance:"رصيد الائتمان",available:"متاح",totalGranted:"إجمالي الممنوح",totalConsumed:"إجمالي المستهلك",totalExpired:"إجمالي المنتهي",noCredits:"لا يوجد رصيد بعد",noCreditsHint:"سيظهر الرصيد هنا عند منحه من خطتك أو شرائه.",buyCredits:"شراء رصيد",buyAmount:"شراء {count} رصيد",purchasing:"جارٍ إعادة التوجيه...",packages:"حزم الرصيد",noPackages:"لا تتوفر حزم رصيد.",creditsAmount:"{count} رصيد",validityDays:"صالح لمدة {count} يوم",validityUnlimited:"بدون انتهاء صلاحية",transactions:"المعاملات الأخيرة",noTransactions:"لا توجد معاملات بعد.",loadMore:"تحميل المزيد",viewAll:"عرض الكل",expiringSoon:"ينتهي قريباً",expiringInDays:"{count} رصيد ينتهي خلال {days} يوم",noExpiring:"لا يوجد رصيد ينتهي قريباً.",type:{plan_grant:"منحة الخطة",pack_purchased:"تم الشراء",consumed:"مستهلك",expired:"منتهي",admin_grant:"ممنوح",admin_revoke:"مسحوب",refund:"استرداد"},dialogTitle:"شراء حزم الرصيد",dialogDescription:"اختر حزمة رصيد للشراء.",dialogDescriptionWorkspace:"شراء رصيد لـ {workspace}.",perCredit:"{price} لكل وحدة رصيد",purchaseSuccess:"تم شراء الرصيد بنجاح! تم تحديث رصيدك.",purchaseCanceled:"تم إلغاء شراء الرصيد. لم يتم تحصيل أي رسوم.",purchaseFailed:"فشل شراء الرصيد. يرجى المحاولة مرة أخرى أو التواصل مع الدعم.",errorLoading:"فشل في تحميل بيانات الرصيد",insufficientCredits:"رصيد غير كافٍ",insufficientDetail:"رصيد غير كافٍ. المتاح: {available}، المطلوب: {requested}"},guest:{title:"أنشئ حسابك",description:"أنت تستخدم التطبيق كضيف. أضف بريدك الإلكتروني لتحتفظ بما قمت به هنا وتسجّل الدخول مرة أخرى لاحقًا.",emailLabel:"البريد الإلكتروني",nameLabel:"الاسم (اختياري)",passwordLabel:"كلمة المرور (اختيارية)",passwordHint:"8 أحرف على الأقل. اتركها فارغة لتسجيل الدخول بطريقة أخرى يوفرها التطبيق.",emailInvalid:"أدخل عنوان بريد إلكتروني صالحًا.",passwordMinLength:"استخدم 8 أحرف على الأقل.",send:"إرسال الرمز",sentTo:"أرسلنا رمزًا إلى {email}.",codeLabel:"الرمز الوارد في البريد الإلكتروني",codeInvalid:"أدخل الرمز المكوّن من 6 أرقام الوارد في البريد الإلكتروني.",resend:"إعادة إرسال الرمز",resendIn:"إعادة الإرسال خلال {seconds, plural, zero {# ثانية} one {ثانية واحدة} two {ثانيتين} few {# ثوانٍ} many {# ثانية} other {# ثانية}}",resent:"أرسلنا رمزًا جديدًا إلى {email}.",confirm:"إنشاء الحساب",done:"حسابك جاهز. يمكنك من الآن تسجيل الدخول باستخدام {email}."},loading:{restoringSession:"جارٍ استعادة الجلسة...",redirecting:"جارٍ إعادة التوجيه...",signingIn:"جارٍ تسجيل الدخول...",verifyingAccount:"جارٍ التحقق من حسابك...",almostThere:"أوشكنا على الانتهاء..."},errors:{networkError:"خطأ في الشبكة: يرجى التحقق من اتصالك بالإنترنت",unreachable:"تعذّر الوصول إلى الخادم. تحقّق من اتصالك وحاول مرة أخرى.",unauthorized:"انتهت جلستك. سجّل الدخول مرة أخرى.",notFound:"المورد غير موجود",generic:"حدث خطأ",fetchPlans:"فشل في جلب الخطط",fetchPlanGroup:"فشل في جلب مجموعة الخطط",fetchPlanGroupVersion:"فشل في جلب إصدار مجموعة الخطط",fetchPlanGroupVersions:"فشل في جلب إصدارات مجموعة الخطط",fetchSubscription:"فشل في جلب الاشتراك",createCheckout:"فشل في إنشاء جلسة الدفع",updateSubscription:"فشل في تحديث الاشتراك",fetchInvoices:"فشل في جلب الفواتير",fetchInvoice:"فشل في جلب الفاتورة",openBillingPortal:"فشل في فتح بوابة الفوترة",cancelSubscription:"فشل في إلغاء الاشتراك",resumeSubscription:"فشل في استئناف الاشتراك",recordUsage:"فشل في تسجيل الاستخدام",fetchQuotaUsage:"فشل في جلب حالة استخدام الحصص",fetchAllQuotaUsage:"فشل في جلب جميع استخدامات الحصص",fetchUsageLogs:"فشل في جلب سجلات الاستخدام",fetchCreditBalance:"فشل في جلب رصيد الائتمان",consumeCredits:"فشل في استهلاك الرصيد",purchaseCredits:"فشل في شراء الرصيد",fetchCreditPackages:"فشل في جلب حزم الرصيد",fetchCreditTransactions:"فشل في جلب معاملات الرصيد",fetchExpiringCredits:"فشل في جلب الرصيد المنتهي قريباً",fetchWorkspaces:"فشل في تحميل مساحات العمل"},security:{connectedAgentsTitle:"الوكلاء المتصلون",connectedAgentsDescription:"وكلاء الذكاء الاصطناعي الذين منحتهم حق الوصول إلى حسابك. افصل أي وكيل لم تعد تستخدمه، وسيُلغى الوصول فورًا.",connectedAgentsDisconnect:"قطع الاتصال",connectedAgentsEmpty:"لا يوجد وكلاء متصلون.",connectedAgentsAccess:"الوصول",connectedAgentsGranted:"مُنح",connectedAgentsLoadFailed:"فشل في تحميل الوكلاء المتصلين",connectedAgentsRevokeFailed:"فشل في قطع الاتصال",connectedAgentsConfirmTitle:"قطع الاتصال بـ {name}؟",connectedAgentsConfirmBody:"سيفقد الوصول إلى حسابك فورًا. يمكنك توصيله مرة أخرى في أي وقت.",connectedAgentsCancel:"إلغاء",connectedAgentsDisconnected:"تم قطع الاتصال بـ {name}.",mcpConnectAction:"توصيل وكيل",mcpGuideTitle:"توصيل وكيل ذكاء اصطناعي",mcpGuideDescription:"اسمح لمساعد ذكاء اصطناعي بالعمل بأمان في حسابك. اختر تطبيقك أدناه واتبع الخطوات. لن يستغرق الأمر سوى دقيقة.",mcpServerUrlLabel:"عنوان الخادم",mcpServerUrlHint:"بعض التطبيقات تطلب فقط لصق هذا العنوان.",mcpPromptLabel:"أو الصق هذا في الذكاء الاصطناعي",mcpPromptHint:"يعمل مع مساعدي الدردشة الذين يمكنهم إضافة أدوات. الصقه في الدردشة وأرسله.",mcpPromptTemplate:"يرجى الاتصال بحسابي على {{name}} باستخدام خادم MCP على {{url}}، ثم استخدم أدواته لمساعدتي.",mcpClientsLabel:"خطوة بخطوة للتطبيقات الشائعة",mcpAddToConfigFile:"افتح الملف {path} وأضِف هذا:",mcpClientChatgptInstructions:"في ChatGPT، انتقل إلى الإعدادات ← الموصّلات، اختر «إضافة موصّل مخصص»، والصق عنوان الخادم أعلاه.",mcpClientClaudeInstructions:"في Claude، انتقل إلى الإعدادات ← الموصّلات، اختر «إضافة موصّل مخصص»، والصق عنوان الخادم أعلاه.",mcpClientClineInstructions:"في Cline، افتح لوحة خوادم MCP، اختر «إضافة خادم بعيد»، والصق عنوان الخادم أعلاه.",mcpCopy:"نسخ",mcpCopied:"تم النسخ",mcpLearnMore:"اعرف المزيد",inactive:"غير نشط",inactiveHint:"سُجّل على نطاق تسجيل دخول سابق ولم يعد قابلاً للاستخدام. يمكنك إزالته.",passkeysTitle:"مفاتيح المرور",passkeysDescription:"تتيح مفاتيح المرور تسجيل الدخول ببصمة الإصبع أو الوجه أو رمز PIN للجهاز.",noPasskeys:"لا توجد مفاتيح مرور مسجلة",addHint:"بعد تسجيل الدخول، تعرض صفحة تسجيل الدخول إضافة مفتاح مرور على ذلك الجهاز، ولكن فقط ما دام حسابك لا يحتوي على أي مفتاح مرور.",rename:"إعادة تسمية",remove:"إزالة",removeTitle:"إزالة مفتاح المرور",removeDescription:"لن تتمكن من تسجيل الدخول بمفتاح المرور هذا بعد الآن.",renamePlaceholder:"اسم مفتاح المرور",lastUsed:"آخر استخدام",added:"أُضيف",passwordTitle:"كلمة المرور",passwordDescription:"غيّر كلمة المرور التي تسجّل الدخول بها. سيتم تسجيل الخروج من جميع الجلسات الأخرى.",currentPassword:"كلمة المرور الحالية",newPassword:"كلمة المرور الجديدة",passwordRequired:"أدخل كلمة المرور الحالية.",passwordMinLength:"استخدم 8 أحرف على الأقل.",changePassword:"تغيير كلمة المرور",passwordChanged:"تم تغيير كلمة المرور. تم تسجيل خروجك من جميع الأجهزة الأخرى.",passwordSocialHint:'إذا أنشأت حسابك باستخدام Google أو مزوّد آخر، أو باستخدام رمز أو رابط، فليست لديك كلمة مرور بعد. لتعيين واحدة، سجّل الخروج واستخدم "هل نسيت كلمة المرور؟" في صفحة تسجيل الدخول.',passwordNone:"أنت تسجّل الدخول بدون كلمة مرور.",passwordNoneHint:'لتعيين واحدة، سجّل الخروج واستخدم "هل نسيت كلمة المرور؟" في صفحة تسجيل الدخول.',twoStepTitle:"تسجيل الدخول بخطوتين",twoStepDescription:"يُطلب رمز من تطبيق المصادقة عند تسجيل الدخول، فلا تكفي كلمة مرور مسروقة وحدها.",twoStepSetUp:"إعداد",twoStepRequiredSetup:"يتطلب هذا التطبيق تسجيل الدخول بخطوتين. أعِدّه الآن، وإلا فسيُطلب منك ذلك عند تسجيل الدخول التالي.",twoStepScan:"امسح رمز QR هذا باستخدام تطبيق المصادقة.",twoStepQrAlt:"رمز QR لتطبيق المصادقة",twoStepManualKey:"لا يمكنك مسحه؟ اكتب هذا المفتاح في التطبيق بدلًا من ذلك.",twoStepCodeLabel:"الرمز المكوّن من 6 أرقام من التطبيق",twoStepCodeInvalid:"أدخل الرمز المكوّن من 6 أرقام الظاهر في التطبيق.",twoStepTurnOn:"تشغيل",twoStepEnabled:"تسجيل الدخول بخطوتين مفعّل.",twoStepBackupTitle:"احفظ رموزك الاحتياطية",twoStepBackupDescription:"يتيح لك كل رمز تسجيل الدخول مرة واحدة إذا فقدت هاتفك. احفظها في مكان آمن، فلن تظهر مرة أخرى.",twoStepCopy:"نسخ",twoStepCopied:"تم النسخ",twoStepDone:"تم",twoStepAppName:"تطبيق المصادقة",twoStepBackupLeft:"{count, plural, zero {لم يتبقَّ أي رمز احتياطي} one {تبقّى رمز احتياطي واحد} two {تبقّى رمزان احتياطيان} few {تبقّت # رموز احتياطية} many {تبقّى # رمزًا احتياطيًا} other {تبقّى # رمز احتياطي}}",twoStepNewCodes:"رموز احتياطية جديدة",twoStepTurnOff:"إيقاف",twoStepRequiredNote:"يتطلب هذا التطبيق تسجيل الدخول بخطوتين، لذا لا يمكن إيقافه.",twoStepCurrentCodeLabel:"رمز من تطبيق المصادقة أو رمز احتياطي",twoStepCurrentCodeRequired:"أدخل رمزًا للمتابعة.",twoStepTurnOffHint:"أدخل رمزًا حاليًا لإيقاف تسجيل الدخول بخطوتين.",twoStepNewCodesHint:"أدخل رمزًا حاليًا لإنشاء رموز احتياطية جديدة. ستتوقف الرموز القديمة عن العمل.",twoStepDisabled:"تم إيقاف تسجيل الدخول بخطوتين.",twoStepCodesRegenerated:"تم إنشاء رموز احتياطية جديدة. لم تعد الرموز القديمة تعمل.",twoStepOffDescription:"تسجيل الدخول بخطوتين متوقف في هذا التطبيق، لذا لا يُطلب أي رمز عند تسجيل الدخول. لا يزال بإمكانك إزالة ما أعددته من قبل.",twoStepRemoveHint:"أدخل رمزًا حاليًا لإزالة تطبيق المصادقة.",twoStepRemoved:"تمت إزالة تطبيق المصادقة.",connectedAccountsTitle:"الحسابات المرتبطة",connectedAccountsDescription:"يمكنك تسجيل الدخول بأي من هذه الحسابات. اربط حسابًا آخر، أو أزل حسابًا لم تعد تستخدمه.",connectedAccountsEmpty:"لا توجد حسابات مرتبطة بعد.",connectedAccountsAvailable:"ربط حساب آخر",connectedAccountsConnect:"ربط {provider}",connectedAccountsLastWay:"هذه هي الطريقة الوحيدة لتسجيل دخولك. أضف طريقة تسجيل دخول أخرى قبل إزالتها.",connectedAccountsRemoveTitle:"إزالة {provider}؟",connectedAccountsRemoveDescription:"لن تتمكن بعد الآن من تسجيل الدخول بحساب {provider} هذا. يمكنك ربطه مرة أخرى لاحقًا.",connectedAccountsRemoved:"تمت إزالة {provider} من حسابك.",connectedAccountsLinked:"تم ربط {provider}. يمكنك تسجيل الدخول به من الآن فصاعدًا.",connectedAccountsLinkedGeneric:"تم ربط الحساب. يمكنك تسجيل الدخول به من الآن فصاعدًا.",connectedAccountsReauth:"حفاظًا على أمانك، أكّد أنك أنت قبل إزالة حساب مرتبط.",connectedAccountsSignInAgain:"تسجيل الدخول مرة أخرى",connectedAccountsLinkConflict:"هذا الحساب مرتبط بالفعل بحساب آخر هنا، لذلك لم يتم ربطه بهذا الحساب.",connectedAccountsProviderError:"لم يسمح المزوّد بالربط، أو تم إلغاؤه. لم يتغير شيء.",connectedAccountsProviderFailed:"تعذّر ربط الحساب. يُرجى المحاولة مرة أخرى.",connectedAccountsSessionEnded:"انتهت جلستك قبل ربط الحساب. سجّل الدخول وحاول مرة أخرى.",connectedAccountsNoVerifiedEmail:"لا يحتوي ذلك الحساب على عنوان بريد إلكتروني موثّق. وثّق عنوان بريد إلكتروني لدى المزوّد، ثم حاول مرة أخرى.",connectedAccountsEmailUnverified:"لا يحتوي ذلك الحساب على عنوان بريد إلكتروني موثّق لإنشاء حسابك به. لم يتغير شيء.",connectedAccountsEmailUnavailable:"لا يمكن استخدام عنوان البريد الإلكتروني لذلك الحساب هنا. اربط حسابًا آخر، أو إذا كان لهذا العنوان حساب هنا بالفعل، فسجّل الدخول إلى ذلك الحساب بدلًا من ذلك.",connectedAccountsDisposableEmail:"يستخدم ذلك الحساب عنوان بريد إلكتروني مؤقتًا. اربط حسابًا بعنوان دائم.",connectedAccountsSignupClosed:"التسجيل غير مفعّل لهذا التطبيق، لذا لا يمكن إنشاء حسابك.",connectedAccountsSignupRestricted:"التسجيل غير متاح لعنوان البريد الإلكتروني لذلك الحساب.",connectedAccountsWaitlistRequired:"يسجّل هذا التطبيق الأشخاص من قائمة الانتظار الخاصة به. انضم إليها بذلك العنوان، ويمكنك إنشاء حسابك بعد الموافقة عليك.",connectedAccountsNotAGuest:"يحتوي حسابك بالفعل على عنوان بريد إلكتروني.",twoStepGuest:"أنشئ حسابك قبل إعداد تسجيل الدخول بخطوتين.",phoneTitle:"رقم الهاتف",phoneDescription:"أضف رقم هاتف لتلقي رموز تسجيل الدخول عبر رسالة نصية.",phoneEmpty:"لم تتم إضافة رقم هاتف بعد.",phoneAdd:"إضافة رقم هاتف",phoneChange:"تغيير",phoneCountryLabel:"الدولة",phoneNumberHint:"سنرسل رمزًا في رسالة نصية إلى هذا الرقم للتحقق من أنه رقمك. قد تُطبَّق رسوم الرسائل.",phoneNumberInvalid:"أدخل رقم هاتف مع رمز المنطقة.",phoneSendCode:"إرسال الرمز",phoneSentTo:"أرسلنا رمزًا إلى {phone}.",phoneCodeLabel:"الرمز من الرسالة النصية",phoneCodeInvalid:"أدخل الرمز من الرسالة النصية.",phoneResend:"إعادة إرسال الرمز",phoneResendIn:"إعادة الإرسال خلال {seconds, plural, zero {# ثانية} one {ثانية واحدة} two {ثانيتين} few {# ثوانٍ} many {# ثانية} other {# ثانية}}",phoneWait:"أُرسل رمز قبل لحظات. يمكنك إرسال رمز آخر خلال {seconds, plural, zero {# ثانية} one {ثانية واحدة} two {ثانيتين} few {# ثوانٍ} many {# ثانية} other {# ثانية}}.",phoneResent:"أرسلنا رمزًا جديدًا إلى {phone}.",phoneVerify:"التحقق",phoneVerified:"تم التحقق",phoneNotVerified:"لم يتم التحقق",phoneSaved:"تم التحقق من {phone} وإضافته إلى حسابك.",phoneRemoveTitle:"هل تريد إزالة رقم هاتفك؟",phoneRemoveDescription:"لن تُرسل الرموز إلى {phone} بعد الآن. يمكنك إضافة رقم مرة أخرى لاحقًا.",phoneRemoved:"تمت إزالة رقم هاتفك.",phoneReauth:"حفاظًا على أمانك، أكّد أنك أنت قبل إزالة رقم هاتفك.",phoneLastWay:"هذه هي الطريقة الوحيدة لتسجيل دخولك. أضف طريقة تسجيل دخول أخرى قبل إزالة رقم هاتفك.",phoneUsedForTwoStep:"يرسل تسجيل الدخول بخطوتين الرموز إلى هذا الرقم. أوقف رموز الرسائل النصية قبل إزالته.",phoneSmsUnavailable:"لا يمكن إرسال الرسائل النصية الآن. حاول مرة أخرى لاحقًا.",phoneCheckUnavailable:"لا يمكن التحقق من الرمز الآن. حاول مرة أخرى لاحقًا.",phoneTextUnavailable:"لا يرسل هذا التطبيق الرموز عبر الرسائل النصية، لذا لا يمكن إضافة رقم هاتف هنا.",twoStepSmsName:"رسالة نصية",twoStepSmsWeaker:"أقل أمانًا من تطبيق المصادقة، لأن رقم الهاتف يمكن نقله إلى شريحة SIM لشخص آخر.",twoStepSmsTo:"تُرسل الرموز إلى {phone}.",twoStepSmsNeedsPhone:"أضف رقم هاتف وتحقّق منه أولًا، ثم شغّل رموز الرسائل النصية.",twoStepSmsGoToPhone:"الانتقال إلى رقم الهاتف",twoStepSmsSentGeneric:"أرسلنا رمزًا إلى هاتفك.",twoStepSmsEnabled:"رموز الرسائل النصية مفعّلة.",twoStepSmsDisabled:"تم إيقاف رموز الرسائل النصية.",twoStepSmsTurnOffTitle:"هل تريد إيقاف رموز الرسائل النصية؟",twoStepSmsTurnOffDescription:"لن يُرسل رمز إلى هاتفك عند تسجيل الدخول بعد الآن.",twoStepSmsReauth:"حفاظًا على أمانك، أكّد أنك أنت قبل إيقاف رموز الرسائل النصية.",reauthConfirm:"أكّد أنك أنت",reauthConfirmed:"شكرًا، تم التأكيد. يمكنك المتابعة الآن.",reauthImpersonating:"لقد سجّلت الدخول بصفة هذا الشخص من لوحة التحكم، لذا لا يمكنك هنا تأكيد أنه هو. وحده يستطيع إجراء هذا التغيير.",deleteAccountTitle:"حذف الحساب",deleteAccountDescription:"احذف حسابك والبيانات الشخصية التي فيه. تُحذف معه مساحات العمل التي تستخدمها وحدك.",deleteAccountWarning:"تنتهي جلساتك الأخرى الآن. حسب التطبيق، يُحذف الحساب فورًا أو بعد مهلة تصل إلى 30 يومًا يمكنك خلالها تغيير رأيك. بعدها يُحذف الحساب وبياناته الشخصية نهائيًا.",deleteAccountWarningNow:"يُحذف حسابك وبياناته الشخصية فورًا، ويُسجَّل خروجك. لا يمكن التراجع عن ذلك.",deleteAccountWarningDays:"تنتهي جلساتك الأخرى الآن. أمامك {days, plural, zero {أقل من يوم} one {يوم واحد} two {يومان} few {# أيام} many {# يومًا} other {# يوم}} لتغيير رأيك؛ بعدها يُحذف الحساب وبياناته الشخصية نهائيًا.",deleteAccountTypeLabel:"اكتب {word} للتأكيد",deleteAccountWord:"حذف",deleteAccountConfirm:"حذف حسابي",deleteAccountScheduled:"سيُحذف حسابك في {date}. يمكنك إلغاء الحذف حتى ذلك الحين.",deleteAccountNotice:"سيُحذف حسابك في {date}.",deleteAccountCancel:"إلغاء الحذف",deleteAccountCancelled:"لن يُحذف حسابك.",deleteAccountReauth:"حفاظًا على أمانك، أكّد أنك أنت قبل حذف حسابك.",deleteAccountOwnsWorkspaces:"{count, plural, zero {مساحات العمل هذه فيها أعضاء آخرون أو اشتراك، لذا لا يمكن حذفها مع حسابك. أزل الأعضاء الآخرين وألغِ الاشتراكات، أو احذف مساحات العمل هذه، ثم حاول مرة أخرى:} one {مساحة العمل هذه فيها أعضاء آخرون أو اشتراك، لذا لا يمكن حذفها مع حسابك. أزل الأعضاء الآخرين وألغِ الاشتراك، أو احذف مساحة العمل، ثم حاول مرة أخرى:} two {مساحتا العمل هاتان فيهما أعضاء آخرون أو اشتراك، لذا لا يمكن حذفهما مع حسابك. أزل الأعضاء الآخرين وألغِ الاشتراكات، أو احذف مساحتَي العمل، ثم حاول مرة أخرى:} few {مساحات العمل هذه فيها أعضاء آخرون أو اشتراك، لذا لا يمكن حذفها مع حسابك. أزل الأعضاء الآخرين وألغِ الاشتراكات، أو احذف مساحات العمل هذه، ثم حاول مرة أخرى:} many {مساحات العمل هذه فيها أعضاء آخرون أو اشتراك، لذا لا يمكن حذفها مع حسابك. أزل الأعضاء الآخرين وألغِ الاشتراكات، أو احذف مساحات العمل هذه، ثم حاول مرة أخرى:} other {مساحات العمل هذه فيها أعضاء آخرون أو اشتراك، لذا لا يمكن حذفها مع حسابك. أزل الأعضاء الآخرين وألغِ الاشتراكات، أو احذف مساحات العمل هذه، ثم حاول مرة أخرى:}}",impersonationReadOnly:"أنت تعرض التطبيق بصفة {name}. سجّل {actor} الدخول بصفة هذا الشخص، للقراءة فقط حتى {time}.",impersonationFull:"أنت تعرض التطبيق بصفة {name}. سجّل {actor} الدخول بصفة هذا الشخص حتى {time}. تُحفظ التغييرات في حسابه.",impersonationSignInLocked:"لا يمكن تغيير طريقة تسجيل دخوله.",impersonationExit:"خروج",impersonationRegion:"العرض بصفة شخص آخر",walletConnectEthereum:"ربط محفظة Ethereum",walletConnectSolana:"ربط محفظة Solana",walletNotFound:"لم يتم العثور على محفظة {chain} في هذا المتصفح. ثبّت إضافة محفظة ثم حاول مرة أخرى.",walletRejected:"أُلغي الطلب في محفظتك.",walletBusy:"محفظتك تنتظر ردك بالفعل. افتحها للمتابعة.",walletWrongNetwork:"بدّل محفظتك إلى شبكة يقبلها هذا التطبيق، ثم حاول مرة أخرى.",walletNoAccount:"لم تشارك محفظتك أي عنوان. افتح قفلها وحاول مرة أخرى.",walletFailed:"تعذّر على محفظتك توقيع الطلب. يُرجى المحاولة مرة أخرى.",walletHint:"عند الربط، تطلب منك محفظتك توقيع رسالة. هذا مجاني ولا يرسل أي معاملة.",devicesTitle:"أجهزتك",devicesDescription:"الهواتف وأجهزة الكمبيوتر التي استخدمتها لتسجيل الدخول. سجّل الخروج من أي جهاز لا تعرفه أو أزِله.",devicesEmpty:"لم تسجّل الدخول من أي جهاز بعد.",devicesLoadFailed:"تعذّر تحميل أجهزتك. يُرجى المحاولة مرة أخرى.",deviceCurrent:"هذا الجهاز",deviceTrusted:"موثوق",deviceActiveSessions:"{count, plural, zero {لا جلسات نشطة} one {جلسة نشطة واحدة} two {جلستان نشطتان} few {# جلسات نشطة} many {# جلسة نشطة} other {# جلسة نشطة}}",devicePushEnabled:"الإشعارات مفعّلة",deviceLastActive:"آخر استخدام: {date}",deviceRename:"إعادة تسمية",deviceRenamePlaceholder:"اسم الجهاز",deviceRenameFailed:"تعذّرت إعادة تسمية الجهاز. يُرجى المحاولة مرة أخرى.",deviceSave:"حفظ",deviceCancel:"إلغاء",deviceSignOut:"تسجيل الخروج",deviceSignOutFailed:"تعذّر تسجيل خروج الجهاز. يُرجى المحاولة مرة أخرى.",deviceForget:"إزالة",deviceForgetFailed:"تعذّرت إزالة الجهاز. يُرجى المحاولة مرة أخرى.",deviceForgetConfirmTitle:"إزالة هذا الجهاز؟",deviceForgetConfirmBody:"يؤدي هذا إلى تسجيل خروج الجهاز وإزالته من قائمتك. إذا سجّلت الدخول منه مرة أخرى، فسيظهر هنا من جديد.",sessionsTitle:"أين سجّلت الدخول",sessionsDescription:"أنت مُسجَّل الدخول حاليًا على هذه الأجهزة. سجّل الخروج من أي جهاز لا تعرفه.",sessionsEmpty:"لست مُسجَّل الدخول في أي مكان آخر.",sessionsLoadFailed:"تعذّر تحميل جلساتك. يُرجى المحاولة مرة أخرى.",sessionCurrent:"هذه الجلسة",sessionExpires:"يُسجَّل الخروج: {date}",sessionLastActive:"آخر استخدام: {date}",sessionSignOut:"تسجيل الخروج",sessionSignOutFailed:"تعذّر تسجيل الخروج من تلك الجلسة. يُرجى المحاولة مرة أخرى."},help:{button:"مساعدة: {label}",linkNewTab:"{link} (يُفتح في علامة تبويب جديدة)",twoStep:"عند تسجيل الدخول، تُدخل أيضًا رمزًا قصيرًا لا يصل إلا إليك. لذلك لا يستطيع من يعرف كلمة مرورك الدخول إلى حسابك.",twoStepApp:"يعرض تطبيق المصادقة رمزًا جديدًا من 6 أرقام كل 30 ثانية، حتى دون اتصال بالشبكة. مثل Google Authenticator أو Microsoft Authenticator أو 1Password أو Authy. تمسح به رمز QR مرة واحدة.",twoStepSms:"مع رموز الرسائل النصية، يصل الرمز في رسالة نصية إلى رقم هاتفك الذي تم التحقق منه. وهي أكثر راحة، لكنها أقل أمانًا من التطبيق.",twoStepLostPhone:"هل فقدت هاتفك؟ سجّل الدخول بأحد رموزك الاحتياطية، ثم أوقف التطبيق هنا وأعد إعداده على هاتفك الجديد. إذا لم يتبقَّ لديك أي رمز احتياطي، أو لم تستطع إيقافه، فاطلب من فريق دعم هذا التطبيق إعادة تعيين تسجيل الدخول بخطوتين.",twoStepKeyPrivate:"احتفظ بهذا المفتاح سرًّا مثل كلمة المرور. أي شخص لديه يمكنه إنشاء رموز تسجيل الدخول الخاصة بك.",backupCodesLabel:"الرموز الاحتياطية",backupCodes:"تتيح لك الرموز الاحتياطية تسجيل الدخول عندما لا تستطيع استخدام تطبيق المصادقة، مثلًا بعد فقدان هاتفك. يعمل كل رمز مرة واحدة فقط.",backupCodesKeep:"احفظها في مكان آمن وخاص، مثل مدير كلمات المرور أو نسخة مطبوعة في المنزل. أي شخص لديه هذه الرموز وكلمة مرورك يمكنه تسجيل الدخول باسمك.",backupCodesNew:"إنشاء رموز احتياطية جديدة يستبدل كل الرموز القديمة: تتوقف عن العمل فورًا، سواء استُخدمت أم لا.",passkeys:"يتيح لك مفتاح المرور تسجيل الدخول ببصمة إصبعك أو وجهك أو قفل الشاشة (رمز PIN أو النمط الذي تفتح به جهازك)، بدلًا من كلمة المرور.",passkeysWhere:"يبقى على جهازك أو في مدير كلمات المرور، مثل سلسلة مفاتيح iCloud أو مدير كلمات المرور من Google. ولا يتلقى هذا التطبيق مفتاح المرور نفسه أبدًا.",passkeysRemove:"إزالة مفتاح المرور هنا تعني أنك لن تستطيع تسجيل الدخول به بعد ذلك. قد يظل ظاهرًا على جهازك أو في مدير كلمات المرور، ويمكنك حذفه من هناك أيضًا.",devicesThis:"{label}: الهاتف أو الكمبيوتر الذي تستخدمه الآن.",devicesTrusted:"{label}: اخترت تذكّر هذا الجهاز عند تسجيل الدخول، لذلك قد لا يُطلب عليه رمز الخطوة الثانية لفترة.",devicesSignOut:"{label}: ينهي كل عمليات تسجيل الدخول على ذلك الجهاز، فيضطر من يستخدمه بعدك إلى تسجيل الدخول من جديد. وإذا كان هو الجهاز الذي تستخدمه الآن، فإنه يسجّل خروجك من هنا أيضًا.",devicesRemove:"{label}: يسجّل خروج الجهاز ويزيله من هذه القائمة. ويظهر مجددًا إذا سجّلت الدخول عليه مرة أخرى.",sessionsWhat:"كل عنصر هو مكان سجّلت فيه الدخول، مثل متصفح أو تطبيق.",sessionsThis:"{label}: المكان الذي سجّلت فيه الدخول الآن.",sessionsSignOut:"{label}: ينهي تسجيل الدخول هذا فورًا.",sessionsEverywhere:"تغيير كلمة المرور يسجّل خروجك من كل مكان ما عدا هنا. افعل ذلك إذا رأيت تسجيل دخول لا تعرفه.",connectedAccounts:"ربط حساب آخر يتيح لك تسجيل الدخول به هنا، دون كلمة مرور. تؤكد ذلك في صفحة تسجيل الدخول الخاصة بذلك الحساب، ثم تعود إلى هنا.",connectedAccountsRemove:"إزالة حساب مرتبط تعني فقط أنك لن تستطيع تسجيل الدخول به هنا. أما الحساب نفسه فلا يتغير.",connectedAccountsLastWay:"تحتاج دائمًا إلى طريقة واحدة على الأقل لتسجيل الدخول، لذا لا يمكن إزالة آخر طريقة. قد تكون الطريقة حسابًا مرتبطًا أو مفتاح مرور أو كلمة مرور أو رمزًا يُرسل إلى بريدك الإلكتروني أو هاتفك الذي تم التحقق منه، إن كان هذا التطبيق يوفرها.",phone:"يمكن أن يتلقى رقم هاتفك رموزًا عبر رسالة نصية: لتسجيل الدخول، إن كان هذا التطبيق يوفر ذلك، ولتسجيل الدخول بخطوتين، إذا شغّلت رموز الرسائل النصية.",phoneCheck:"نرسل أولًا رمزًا إلى الرقم للتحقق من أنه لك. لا تُرسل رموز تسجيل الدخول إلا إلى رقم تم التحقق منه.",reauth:"بعض التغييرات، مثل إزالة طريقة لتسجيل الدخول أو حذف حسابك، تحتاج إلى تسجيل دخول خلال آخر 10 دقائق. هذا يمنع غيرك من إجرائها على جهاز تركت حسابك مفتوحًا عليه.",reauthHow:"تؤكد ذلك في صفحة تسجيل الدخول، ثم تعود إلى هنا مباشرة. بعدها أجرِ التغيير مرة أخرى.",email:"بريدك الإلكتروني هو ما يتعرّف به هذا التطبيق عليك، وإليه يرسل الرسائل الخاصة بحسابك.",emailChange:"لتغييره، أدخل العنوان الجديد، ثم الرمز المكوّن من 6 أرقام الذي نرسله إليه. نُبلغ عنوانك القديم بالتغيير، وتبقى مسجّلًا الدخول.",password:"تُدخل كلمة مرورك الحالية أولًا، حتى لا يستطيع أحد غيرك تغييرها على جهاز تركته مفتوحًا. تحتاج كلمة المرور الجديدة إلى 8 أحرف على الأقل. بضع كلمات لا علاقة بينها يصعب تخمينها، وتبقى في ذاكرتك.",passwordLeaks:"تُرفض كلمات المرور التي ظهرت في تسريبات بيانات معروفة. بعد التغيير، تبقى مسجّلًا الدخول هنا ويُسجَّل خروجك من كل مكان آخر.",passwordForgot:'نسيت كلمة مرورك الحالية؟ سجّل الخروج واستخدم "هل نسيت كلمة المرور؟" في صفحة تسجيل الدخول.',deleteAccountDays:'يُحذف حسابك بعد {days, plural, zero {# يوم} one {يوم واحد} two {يومين} few {# أيام} many {# يومًا} other {# يوم}} من تأكيدك. حتى ذلك الحين يظل يعمل: يمكنك تسجيل الدخول، وباختيار "{cancel}" هنا أو في أعلى الإعدادات تحتفظ بحسابك.',deleteAccountNow:"يحذف هذا التطبيق الحسابات فور التأكيد. لا توجد مدة انتظار، ولا يمكن التراجع عن ذلك.",deleteAccountRange:'حسب التطبيق، يُحذف حسابك فور التأكيد، أو بعد مدة انتظار تصل إلى 30 يومًا. وخلال هذه المدة يظل يعمل: يمكنك تسجيل الدخول، وباختيار "{cancel}" تحتفظ بحسابك.'}};export{e as ar};