@burdenoff/microfe-product 2026.1126.1 → 2026.1201.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ProductPlans.js","names":["_Fragment","GET_ALL_PLANS","GET_ALL_QUOTAS","CREATE_QUOTA","CREATE_PLAN","UPDATE_PLAN","TOGGLE_PLAN","ProductPlans","_productName","tr","useTr","plans","setPlans","useState","availableQuotas","setAvailableQuotas","loading","setLoading","error","setError","showForm","setShowForm","editingPlan","setEditingPlan","submitting","setSubmitting","showQuotaForm","setShowQuotaForm","newQuotaName","setNewQuotaName","formData","setFormData","fetchGraphQL","useCallback","result","graphqlFetch","queryPlans","plansResult","quotasResult","p","productId","reportLoadFailure","err","fetchPlans","active","resetForm","handleSubmit","handleToggle","plan","handleEdit","f","handleCreateQuota","isEnterprisePlan","n","name","individualPlans","enterprisePlansList","monthlyPlans","yearlyPlans","audienceTab","setAudienceTab","DollarSign","readOnly","Plus","List","Fragment","isSelected","q","quota","e","Loader2","IllustratedEmptyState","g","group","a","b","currencySymbol","isPopular","ToggleRight","ToggleLeft","Edit","label","parts","readableName","c","value","Check"],"sources":["../../../../../src/product-management/modules/products/components/ProductPlans.tsx"],"sourcesContent":["/**\n * Product Plans Management Component\n *\n * Displays and manages pricing plans for a product.\n * Fetches plans from the billing service via the global gateway.\n */\nimport { useState, useEffect, useCallback } from 'react';\nimport { graphqlFetch } from '@burdenoff/fe-libs/shared/graphql/fetch';\nimport { IllustratedEmptyState } from '@burdenoff/fe-libs/ui';\nimport {\n Plus,\n Edit,\n ToggleLeft,\n ToggleRight,\n DollarSign,\n Loader2,\n List,\n Check,\n} from 'lucide-react';\nimport { useTr } from '../../../shared/hooks/useTr';\n\n// ============================================================================\n// Types\n// ============================================================================\n\ninterface PlanQuota {\n id: string;\n quotaId: string;\n quota: {\n id: string;\n name: string;\n limits: Record<string, unknown> | null;\n } | null;\n}\n\ninterface Plan {\n id: string;\n name: string;\n price: number;\n currency: string;\n duration: 'monthly' | 'yearly';\n isActive: boolean;\n productID: string | null;\n features: PlanQuota[];\n createdAt: string;\n}\n\ninterface PlanFormData {\n name: string;\n price: string;\n currency: string;\n duration: 'monthly' | 'yearly';\n quotas: Array<{ quotaId: string; quantity: number }>;\n}\n\ninterface Quota {\n id: string;\n name: string;\n limits: Record<string, unknown> | null;\n}\n\n// ============================================================================\n// GraphQL Operations\n// ============================================================================\n\nconst GET_ALL_PLANS = `\n query GetAllPlans {\n getAllPlans {\n id\n name\n price\n currency\n duration\n isActive\n productID\n features {\n id\n quotaId\n quota {\n id\n name\n limits\n }\n }\n createdAt\n }\n }\n`;\n\nconst GET_ALL_QUOTAS = `\n query GetAllQuotas {\n getAllQuotas {\n id\n name\n limits\n }\n }\n`;\n\nconst CREATE_QUOTA = `\n mutation CreateQuota($input: createQuotaInput!) {\n createQuota(input: $input)\n }\n`;\n\nconst CREATE_PLAN = `\n mutation CreatePlan($input: createPlanInput!) {\n createPlan(input: $input)\n }\n`;\n\nconst UPDATE_PLAN = `\n mutation UpdatePlan($input: updatePlanInput!) {\n updatePlan(input: $input)\n }\n`;\n\nconst TOGGLE_PLAN = `\n mutation TogglePlan($planID: ID!, $status: Boolean!) {\n togglePlan(planID: $planID, status: $status)\n }\n`;\n\n// ============================================================================\n// Component\n// ============================================================================\n\ninterface ProductPlansProps {\n productId: string;\n productName: string;\n readOnly?: boolean;\n}\n\nexport function ProductPlans({\n productId,\n productName: _productName,\n readOnly = false,\n}: ProductPlansProps) {\n const tr = useTr();\n\n const [plans, setPlans] = useState<Plan[]>([]);\n const [availableQuotas, setAvailableQuotas] = useState<Quota[]>([]);\n const [loading, setLoading] = useState(true);\n const [error, setError] = useState<string | null>(null);\n const [showForm, setShowForm] = useState(false);\n const [editingPlan, setEditingPlan] = useState<Plan | null>(null);\n const [submitting, setSubmitting] = useState(false);\n const [showQuotaForm, setShowQuotaForm] = useState(false);\n const [newQuotaName, setNewQuotaName] = useState('');\n const [formData, setFormData] = useState<PlanFormData>({\n name: '',\n price: '',\n currency: 'USD',\n duration: 'monthly',\n quotas: [],\n });\n\n const fetchGraphQL = useCallback(\n async <T,>(query: string, variables?: Record<string, unknown>): Promise<T | null> => {\n const result = await graphqlFetch<T>({\n gateway: 'global',\n query,\n variables,\n });\n if (result.errors?.length) throw new Error(result.errors[0].message);\n return result.data ?? null;\n },\n []\n );\n\n const queryPlans = useCallback(async () => {\n const [plansResult, quotasResult] = await Promise.all([\n fetchGraphQL<{ getAllPlans: Plan[] }>(GET_ALL_PLANS),\n fetchGraphQL<{ getAllQuotas: Quota[] }>(GET_ALL_QUOTAS),\n ]);\n const allPlans = plansResult?.getAllPlans || [];\n return {\n plans: allPlans.filter((p: Plan) => p.productID === productId),\n quotas: quotasResult?.getAllQuotas || [],\n };\n }, [productId, fetchGraphQL]);\n\n const reportLoadFailure = useCallback(\n (err: unknown) => {\n setError(tr('products.failedToLoadPlans', 'Failed to load plans'));\n console.error('Failed to fetch plans:', err);\n },\n [tr]\n );\n\n // Re-fetch after a mutation, showing the loading state again.\n const fetchPlans = useCallback(async () => {\n setLoading(true);\n try {\n const result = await queryPlans();\n setPlans(result.plans);\n setAvailableQuotas(result.quotas);\n setError(null);\n } catch (err) {\n reportLoadFailure(err);\n } finally {\n setLoading(false);\n }\n }, [queryPlans, reportLoadFailure]);\n\n // Initial load: `loading` starts true, so state is only set once the request settles.\n useEffect(() => {\n let active = true;\n queryPlans()\n .then((result) => {\n if (!active) return;\n setPlans(result.plans);\n setAvailableQuotas(result.quotas);\n setError(null);\n })\n .catch((err: unknown) => {\n if (active) reportLoadFailure(err);\n })\n .finally(() => {\n if (active) setLoading(false);\n });\n return () => {\n active = false;\n };\n }, [queryPlans, reportLoadFailure]);\n\n const resetForm = () => {\n setFormData({ name: '', price: '', currency: 'USD', duration: 'monthly', quotas: [] });\n setEditingPlan(null);\n setShowForm(false);\n };\n\n const handleSubmit = async (e: React.FormEvent) => {\n e.preventDefault();\n setSubmitting(true);\n\n try {\n if (editingPlan) {\n await fetchGraphQL(UPDATE_PLAN, {\n input: {\n id: editingPlan.id,\n name: formData.name,\n price: parseFloat(formData.price),\n currency: formData.currency,\n duration: formData.duration,\n quotas: formData.quotas,\n },\n });\n } else {\n await fetchGraphQL(CREATE_PLAN, {\n input: {\n name: formData.name,\n price: parseFloat(formData.price),\n currency: formData.currency,\n duration: formData.duration,\n productId: productId,\n quotas: formData.quotas,\n },\n });\n }\n\n resetForm();\n await fetchPlans();\n } catch (err) {\n console.error('Failed to save plan:', err);\n setError(tr('products.failedToSavePlan', 'Failed to save plan'));\n } finally {\n setSubmitting(false);\n }\n };\n\n const handleToggle = async (plan: Plan) => {\n try {\n await fetchGraphQL(TOGGLE_PLAN, { planID: plan.id, status: !plan.isActive });\n await fetchPlans();\n } catch (err) {\n console.error('Failed to toggle plan:', err);\n }\n };\n\n const handleEdit = (plan: Plan) => {\n setEditingPlan(plan);\n setFormData({\n name: plan.name,\n price: plan.price.toString(),\n currency: plan.currency,\n duration: plan.duration,\n quotas: (plan.features || []).map((f) => ({\n quotaId: f.quotaId,\n quantity: 1,\n })),\n });\n setShowForm(true);\n };\n\n const handleCreateQuota = async () => {\n if (!newQuotaName.trim()) return;\n try {\n setSubmitting(true);\n await fetchGraphQL(CREATE_QUOTA, {\n input: {\n name: newQuotaName.trim(),\n quotaType: 'PRODUCT_SPECIFIC',\n limits: {},\n reusable: true,\n },\n });\n setNewQuotaName('');\n setShowQuotaForm(false);\n await fetchPlans(); // refreshes quotas too\n } catch (err) {\n console.error('Failed to create quota:', err);\n setError(tr('products.failedToCreateFeature', 'Failed to create feature'));\n } finally {\n setSubmitting(false);\n }\n };\n\n // Split plans by audience\n const isEnterprisePlan = (name: string) => {\n const n = name.toLowerCase();\n return n.includes('team') || n.includes('business') || n.includes('enterprise');\n };\n const individualPlans = plans.filter((p) => !isEnterprisePlan(p.name));\n const enterprisePlansList = plans.filter((p) => isEnterprisePlan(p.name));\n\n const monthlyPlans = individualPlans.filter((p) => p.duration === 'monthly');\n const yearlyPlans = individualPlans.filter((p) => p.duration === 'yearly');\n const [audienceTab, setAudienceTab] = useState<'individual' | 'enterprise'>('individual');\n\n return (\n <div className=\"bg-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-[var(--shadow-pop)] lg:col-span-2\">\n <div className=\"flex items-center justify-between mb-4\">\n <h2 className=\"text-lg font-semibold text-text-primary flex items-center gap-2\">\n <DollarSign size={18} />\n {tr('products.pricingPlans', 'Pricing Plans')}\n </h2>\n {!readOnly && (\n <button\n type=\"button\"\n onClick={() => {\n resetForm();\n setShowForm(!showForm);\n }}\n className=\"\n inline-flex items-center gap-1.5 px-3 py-1.5\n bg-[var(--color-bg-accent)] text-[var(--color-text-on-accent)]\n rounded-lg text-sm font-medium\n hover:opacity-90 transition-all duration-200\n \"\n >\n <Plus size={14} />\n {tr('products.addPlan', 'Add Plan')}\n </button>\n )}\n </div>\n\n {/* Create/Edit Form */}\n {showForm && !readOnly && (\n <form\n onSubmit={handleSubmit}\n className=\"mb-6 p-4 bg-bg-sunken rounded-lg border border-default\"\n >\n <h3 className=\"text-sm font-semibold text-text-primary mb-3\">\n {editingPlan\n ? tr('products.editPlan', 'Edit Plan')\n : tr('products.createNewPlan', 'Create New Plan')}\n </h3>\n <div className=\"grid grid-cols-2 sm:grid-cols-4 gap-3\">\n <div>\n <label className=\"block text-xs font-medium text-text-secondary mb-1\">\n {tr('products.planName', 'Name')} *\n </label>\n <input\n type=\"text\"\n value={formData.name}\n onChange={(e) => setFormData({ ...formData, name: e.target.value })}\n placeholder=\"e.g. Basic\"\n required\n className=\"w-full px-3 py-2 text-sm rounded-md border border-default bg-surface text-text-primary\"\n />\n </div>\n <div>\n <label className=\"block text-xs font-medium text-text-secondary mb-1\">\n {tr('products.planPrice', 'Price')} *\n </label>\n <input\n type=\"number\"\n step=\"0.01\"\n min=\"0\"\n value={formData.price}\n onChange={(e) => setFormData({ ...formData, price: e.target.value })}\n placeholder=\"9.99\"\n required\n className=\"w-full px-3 py-2 text-sm rounded-md border border-default bg-surface text-text-primary\"\n />\n </div>\n <div>\n <label className=\"block text-xs font-medium text-text-secondary mb-1\">\n {tr('products.planDuration', 'Duration')} *\n </label>\n <select\n value={formData.duration}\n onChange={(e) =>\n setFormData({ ...formData, duration: e.target.value as 'monthly' | 'yearly' })\n }\n className=\"w-full px-3 py-2 text-sm rounded-md border border-default bg-surface text-text-primary scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary\"\n >\n <option value=\"monthly\">{tr('products.monthly', 'Monthly')}</option>\n <option value=\"yearly\">{tr('products.yearly', 'Yearly')}</option>\n </select>\n </div>\n <div>\n <label className=\"block text-xs font-medium text-text-secondary mb-1\">\n {tr('products.currency', 'Currency')}\n </label>\n <select\n value={formData.currency}\n onChange={(e) => setFormData({ ...formData, currency: e.target.value })}\n className=\"w-full px-3 py-2 text-sm rounded-md border border-default bg-surface text-text-primary scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary\"\n >\n <option value=\"USD\">USD</option>\n <option value=\"EUR\">EUR</option>\n <option value=\"GBP\">GBP</option>\n <option value=\"INR\">INR</option>\n </select>\n </div>\n </div>\n {/* Quotas/Features */}\n <div className=\"mt-3\">\n <label className=\"block text-xs font-medium text-text-secondary mb-1\">\n <List size={12} className=\"inline mr-1\" />\n {tr('products.featuresQuotas', 'Features / Quotas')}\n </label>\n {availableQuotas.length > 0 ? (\n <>\n <div className=\"space-y-1.5 max-h-32 overflow-y-auto\">\n {availableQuotas.map((quota) => {\n const isSelected = formData.quotas.some((q) => q.quotaId === quota.id);\n return (\n <label\n key={quota.id}\n className=\"flex items-center gap-2 text-xs text-text-primary cursor-pointer hover:bg-bg-sunken/50 px-2 py-1 rounded\"\n >\n <input\n type=\"checkbox\"\n checked={isSelected}\n onChange={(e) => {\n if (e.target.checked) {\n setFormData({\n ...formData,\n quotas: [...formData.quotas, { quotaId: quota.id, quantity: 1 }],\n });\n } else {\n setFormData({\n ...formData,\n quotas: formData.quotas.filter((q) => q.quotaId !== quota.id),\n });\n }\n }}\n className=\"rounded border-default\"\n />\n {quota.name}\n </label>\n );\n })}\n </div>\n <div className=\"flex items-center gap-2 mt-2\">\n <p className=\"text-xs text-text-secondary\">\n {formData.quotas.length}{' '}\n {tr('products.featuresSelected', 'feature(s) selected')}\n </p>\n <span className=\"text-xs text-text-secondary\">|</span>\n {!showQuotaForm ? (\n <button\n type=\"button\"\n onClick={() => setShowQuotaForm(true)}\n className=\"text-xs text-[var(--color-action-primary-bg)] hover:underline\"\n >\n {tr('products.createNewFeature', '+ Create new feature')}\n </button>\n ) : (\n <div className=\"flex items-center gap-1.5\">\n <input\n type=\"text\"\n value={newQuotaName}\n onChange={(e) => setNewQuotaName(e.target.value)}\n placeholder={tr('products.featureNamePlaceholder', 'Feature name')}\n className=\"px-2 py-1 text-xs rounded border border-default bg-surface text-text-primary w-36\"\n onKeyDown={(e) => {\n if (e.key === 'Enter') {\n e.preventDefault();\n handleCreateQuota();\n }\n }}\n />\n <button\n type=\"button\"\n onClick={handleCreateQuota}\n disabled={submitting || !newQuotaName.trim()}\n className=\"px-2 py-1 text-xs bg-[var(--color-bg-accent)] text-[var(--color-text-on-accent)] rounded hover:opacity-90 disabled:opacity-50\"\n >\n {tr('productCommon.add', 'Add')}\n </button>\n <button\n type=\"button\"\n onClick={() => {\n setShowQuotaForm(false);\n setNewQuotaName('');\n }}\n className=\"px-1.5 py-1 text-xs text-text-secondary hover:text-text-primary\"\n >\n {tr('productCommon.cancel', 'Cancel')}\n </button>\n </div>\n )}\n </div>\n </>\n ) : (\n <div className=\"text-xs text-text-secondary\">\n {tr('products.noFeaturesCreated', 'No features created yet.')}{' '}\n {!showQuotaForm ? (\n <button\n type=\"button\"\n onClick={() => setShowQuotaForm(true)}\n className=\"text-[var(--color-action-primary-bg)] hover:underline\"\n >\n {tr('products.createYourFirstFeature', 'Create your first feature')}\n </button>\n ) : (\n <div className=\"flex items-center gap-1.5 mt-1.5\">\n <input\n type=\"text\"\n value={newQuotaName}\n onChange={(e) => setNewQuotaName(e.target.value)}\n placeholder=\"Feature name\"\n className=\"px-2 py-1 text-xs rounded border border-default bg-surface text-text-primary w-36\"\n onKeyDown={(e) => {\n if (e.key === 'Enter') {\n e.preventDefault();\n handleCreateQuota();\n }\n }}\n />\n <button\n type=\"button\"\n onClick={handleCreateQuota}\n disabled={submitting || !newQuotaName.trim()}\n className=\"px-2 py-1 text-xs bg-[var(--color-bg-accent)] text-[var(--color-text-on-accent)] rounded hover:opacity-90 disabled:opacity-50\"\n >\n Add\n </button>\n <button\n type=\"button\"\n onClick={() => {\n setShowQuotaForm(false);\n setNewQuotaName('');\n }}\n className=\"px-1.5 py-1 text-xs text-text-secondary hover:text-text-primary\"\n >\n Cancel\n </button>\n </div>\n )}\n </div>\n )}\n </div>\n\n <div className=\"flex gap-2 mt-3\">\n <button\n type=\"submit\"\n disabled={submitting}\n className=\"\n inline-flex items-center gap-1.5 px-4 py-2\n bg-[var(--color-bg-accent)] text-[var(--color-text-on-accent)]\n rounded-md text-sm font-medium\n hover:opacity-90 transition-all duration-200\n disabled:opacity-50\n \"\n >\n {submitting && <Loader2 size={14} className=\"animate-spin\" />}\n {editingPlan\n ? tr('products.updatePlan', 'Update Plan')\n : tr('products.createPlan', 'Create Plan')}\n </button>\n <button\n type=\"button\"\n onClick={resetForm}\n className=\"px-4 py-2 text-sm text-text-secondary hover:text-text-primary transition-colors\"\n >\n {tr('productCommon.cancel', 'Cancel')}\n </button>\n </div>\n </form>\n )}\n\n {/* Error */}\n {error && (\n <div className=\"mb-4 p-3 bg-[var(--color-status-error-subtle)] border border-[var(--color-status-error-border)] rounded-lg text-sm text-[var(--color-status-error)]\">\n {error}\n </div>\n )}\n\n {/* Loading */}\n {loading ? (\n <div className=\"flex items-center justify-center py-8\">\n <Loader2 size={20} className=\"animate-spin text-text-secondary\" />\n <span className=\"ml-2 text-sm text-text-secondary\">\n {tr('products.loadingPlans', 'Loading plans...')}\n </span>\n </div>\n ) : plans.length === 0 ? (\n <IllustratedEmptyState\n illustration=\"empty-data\"\n title={tr('products.noPricingPlans', 'No pricing plans yet')}\n description={tr('products.clickAddPlan', 'Click \"Add Plan\" to create your first plan')}\n />\n ) : (\n <div className=\"space-y-6\">\n {/* Audience Tabs */}\n {enterprisePlansList.length > 0 && (\n <div className=\"flex gap-2 mb-2\">\n <button\n type=\"button\"\n onClick={() => setAudienceTab('individual')}\n className={`px-4 py-1.5 rounded-lg text-sm font-medium transition-all ${\n audienceTab === 'individual'\n ? 'bg-[var(--color-action-primary-bg)] text-[var(--color-action-primary-text)]'\n : 'bg-[var(--color-bg-muted)] text-text-secondary hover:text-text-primary'\n }`}\n >\n Individual ({individualPlans.length})\n </button>\n <button\n type=\"button\"\n onClick={() => setAudienceTab('enterprise')}\n className={`px-4 py-1.5 rounded-lg text-sm font-medium transition-all ${\n audienceTab === 'enterprise'\n ? 'bg-[var(--color-action-primary-bg)] text-[var(--color-action-primary-text)]'\n : 'bg-[var(--color-bg-muted)] text-text-secondary hover:text-text-primary'\n }`}\n >\n Enterprise ({enterprisePlansList.length})\n </button>\n </div>\n )}\n\n {/* Plan Groups */}\n {(audienceTab === 'individual' || enterprisePlansList.length === 0\n ? [\n { label: tr('products.monthlyPlans', 'Monthly Plans'), plans: monthlyPlans },\n { label: tr('products.yearlyPlans', 'Yearly Plans'), plans: yearlyPlans },\n ]\n : [\n {\n label: tr('products.enterprisePlans', 'Enterprise Plans'),\n plans: enterprisePlansList,\n },\n ]\n )\n .filter((g) => g.plans.length > 0)\n .map((group) => (\n <div key={group.label}>\n <h3 className=\"text-xs font-semibold text-text-secondary uppercase tracking-wider mb-3\">\n {group.label}\n </h3>\n <div className=\"grid grid-cols-1 md:grid-cols-3 gap-4\">\n {group.plans\n .sort((a, b) => a.price - b.price)\n .map((plan) => {\n const currencySymbol =\n plan.currency === 'USD'\n ? '$'\n : plan.currency === 'EUR'\n ? '\\u20AC'\n : plan.currency === 'GBP'\n ? '\\u00A3'\n : '\\u20B9';\n const isPopular =\n plan.name.toLowerCase().includes('professional') ||\n plan.name.toLowerCase().includes('pro');\n return (\n <div\n key={plan.id}\n className={`\n relative rounded-xl border p-5 transition-all duration-200\n ${plan.isActive ? 'border-default bg-surface hover:shadow-md' : 'border-default bg-bg-sunken/30 opacity-60'}\n ${isPopular ? 'border-[var(--color-action-primary-bg)] ring-1 ring-[var(--color-action-primary-bg)]/20' : ''}\n `}\n >\n {isPopular && (\n <span className=\"absolute -top-2.5 left-1/2 -translate-x-1/2 px-3 py-0.5 text-xs font-semibold bg-[var(--color-action-primary-bg)] text-[var(--color-action-primary-text)] rounded-full\">\n {tr('products.popular', 'Popular')}\n </span>\n )}\n\n {/* Header */}\n <div className=\"flex items-start justify-between mb-3\">\n <div>\n <h4 className=\"text-base font-semibold text-text-primary\">\n {plan.name}\n </h4>\n <span\n className={`inline-flex items-center px-1.5 py-0.5 text-xs font-medium rounded-full mt-1 ${\n plan.isActive\n ? 'bg-[var(--color-status-success-subtle)] text-[var(--color-status-success)]'\n : 'bg-bg-sunken text-text-secondary'\n }`}\n >\n {plan.isActive\n ? tr('products.statusActive', 'Active')\n : tr('products.statusInactive', 'Inactive')}\n </span>\n </div>\n {!readOnly && (\n <div className=\"flex items-center gap-0.5\">\n <button\n type=\"button\"\n onClick={() => handleToggle(plan)}\n title={\n plan.isActive\n ? tr('products.deactivate', 'Deactivate')\n : tr('products.activate', 'Activate')\n }\n className=\"p-1.5 rounded-lg hover:bg-bg-sunken transition-colors text-text-secondary hover:text-text-primary\"\n >\n {plan.isActive ? (\n <ToggleRight\n size={16}\n className=\"text-[var(--color-status-success)]\"\n />\n ) : (\n <ToggleLeft size={16} />\n )}\n </button>\n <button\n type=\"button\"\n onClick={() => handleEdit(plan)}\n title={tr('products.edit', 'Edit')}\n className=\"p-1.5 rounded-lg hover:bg-bg-sunken transition-colors text-text-secondary hover:text-text-primary\"\n >\n <Edit size={14} />\n </button>\n </div>\n )}\n </div>\n\n {/* Price */}\n <div className=\"mb-4\">\n <span className=\"text-2xl md:text-3xl font-semibold tracking-tight text-text-primary\">\n {currencySymbol}\n {plan.price}\n </span>\n <span className=\"text-sm text-text-secondary ml-1\">\n /{plan.duration === 'monthly' ? 'month' : 'year'}\n </span>\n </div>\n\n {/* Features */}\n {plan.features && plan.features.length > 0 ? (\n <div className=\"space-y-2 border-t border-border-seam pt-3\">\n {plan.features.slice(0, 6).map((f) => {\n const quota = f.quota;\n let label = f.quotaId;\n if (quota) {\n // Extract readable name from dotted quota name\n const parts = quota.name.split('.');\n const resource =\n parts.length >= 3\n ? parts[parts.length - 2]\n : parts[parts.length - 1];\n const readableName = (resource || quota.name)\n .replace(/[-_]/g, ' ')\n .replace(/\\b\\w/g, (c: string) => c.toUpperCase());\n const value =\n quota.limits && typeof quota.limits === 'object'\n ? (quota.limits as Record<string, unknown>).value\n : null;\n label =\n typeof value === 'number'\n ? `${value.toLocaleString()} ${readableName}`\n : readableName;\n }\n return (\n <div\n key={f.id}\n className=\"flex items-center gap-2 text-sm text-text-primary\"\n >\n <Check\n size={14}\n className=\"text-[var(--color-status-success)] flex-shrink-0\"\n />\n <span>{label}</span>\n </div>\n );\n })}\n {plan.features.length > 6 && (\n <p className=\"text-xs text-text-secondary pl-5\">\n +{plan.features.length - 6} more\n </p>\n )}\n </div>\n ) : (\n <div className=\"border-t border-border-seam pt-3\">\n <p className=\"text-xs text-text-secondary italic\">\n {tr('products.noFeaturesAssigned', 'No features assigned')}\n </p>\n </div>\n )}\n </div>\n );\n })}\n </div>\n </div>\n ))}\n </div>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;;;AAiEA,IAAMC,KAAgB,qTAwBhBC,IAAiB,kGAUjBC,IAAe,gGAMfC,KAAc,6FAMdC,IAAc,6FAMdC,KAAc;AAgBpB,SAAgBC,EAAa,EAC3B,cACA,aAAaC,IACb,cAAW,MAC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U,MAAcgB,EAAE,YAAY,CAAC,GAC5CC,IACJjB,EAAM,UAAU,OAAOA,EAAM,UAAW,WACnCA,EAAM,OAAmC,QAC1C;WACN,IACE,OAAOiB,KAAU,WACb,GAAGA,EAAM,eAAe,EAAE,GAAGF,MAC7BA;UACR;UACA,OACE,kBAAC,OAAD;WAEE,WAAU;WAFZ,UAAA,CAIE,kBAACG,GAAD;YACE,MAAM;YACN,WAAU;WACX,CAAA,GACD,kBAAC,QAAD,EAAA,UAAOL,EAAY,CAAA,CAChB;UARE,GAAA/B,EAAE,EAQJ;SAET,CAAC,GACAF,EAAK,SAAS,SAAS,KACtB,kBAAC,KAAD;UAAG,WAAU;UAAb,UAAA;WAAgD;WAC5CA,EAAK,SAAS,SAAS;WAAE;UAC1B;SAEF,CAAA,CAAA;QAEL,CAAA,IAAA,kBAAC,OAAD;SAAK,WAAU;SACb,UAAA,kBAAC,KAAD;UAAG,WAAU;UACV,UAAAvC,EAAG,+BAA+B,sBAAsB;SACxD,CAAA;QACA,CAAA;OAEJ;MA9HE,GAAAuC,EAAK,EA8HP;KAET,CAAC;IACA,CAAA,CACF,EAAA,GAvJKyB,EAAM,KAuJX,CACN,CACA;;EAEJ;;AAET"}
1
+ {"version":3,"file":"ProductPlans.js","names":["_Fragment","PLAN_BASE_CURRENCY","GET_ALL_PLANS","GET_ALL_QUOTAS","CREATE_QUOTA","CREATE_PLAN","UPDATE_PLAN","TOGGLE_PLAN","ProductPlans","_productName","tr","useTr","plans","setPlans","useState","availableQuotas","setAvailableQuotas","loading","setLoading","error","setError","showForm","setShowForm","editingPlan","setEditingPlan","submitting","setSubmitting","showQuotaForm","setShowQuotaForm","newQuotaName","setNewQuotaName","formData","setFormData","fetchGraphQL","useCallback","result","graphqlFetch","queryPlans","plansResult","quotasResult","p","productId","reportLoadFailure","err","fetchPlans","active","resetForm","handleSubmit","handleToggle","plan","handleEdit","f","handleCreateQuota","isEnterprisePlan","n","name","individualPlans","enterprisePlansList","monthlyPlans","yearlyPlans","audienceTab","setAudienceTab","DollarSign","readOnly","Plus","List","Fragment","isSelected","q","quota","e","Loader2","IllustratedEmptyState","g","group","a","b","isPopular","ToggleRight","ToggleLeft","Edit","formatPrice","label","parts","readableName","c","value","Check"],"sources":["../../../../../src/product-management/modules/products/components/ProductPlans.tsx"],"sourcesContent":["/**\n * Product Plans Management Component\n *\n * Displays and manages pricing plans for a product.\n * Fetches plans from the billing service via the global gateway.\n */\nimport { useState, useEffect, useCallback } from 'react';\nimport { graphqlFetch } from '@burdenoff/fe-libs/shared/graphql/fetch';\nimport { IllustratedEmptyState } from '@burdenoff/fe-libs/ui';\nimport {\n Plus,\n Edit,\n ToggleLeft,\n ToggleRight,\n DollarSign,\n Loader2,\n List,\n Check,\n} from 'lucide-react';\nimport { useTr } from '../../../shared/hooks/useTr';\nimport { formatPrice } from '../../../shared/utils/formatPrice';\n\n/**\n * Billing plans use USD as their base currency. A plan's currency is also\n * immutable once created (updatePlan throws CURRENCY_CHANGE_NOT_ALLOWED), so\n * this form shows the currency instead of offering a choice, and updates never\n * send it (BOFF-17385).\n */\nconst PLAN_BASE_CURRENCY = 'USD';\n\n// ============================================================================\n// Types\n// ============================================================================\n\ninterface PlanQuota {\n id: string;\n quotaId: string;\n quota: {\n id: string;\n name: string;\n limits: Record<string, unknown> | null;\n } | null;\n}\n\ninterface Plan {\n id: string;\n name: string;\n price: number;\n currency: string;\n duration: 'monthly' | 'yearly';\n isActive: boolean;\n productID: string | null;\n features: PlanQuota[];\n createdAt: string;\n}\n\ninterface PlanFormData {\n name: string;\n price: string;\n duration: 'monthly' | 'yearly';\n quotas: Array<{ quotaId: string; quantity: number }>;\n}\n\ninterface Quota {\n id: string;\n name: string;\n limits: Record<string, unknown> | null;\n}\n\n// ============================================================================\n// GraphQL Operations\n// ============================================================================\n\nconst GET_ALL_PLANS = `\n query GetAllPlans {\n getAllPlans {\n id\n name\n price\n currency\n duration\n isActive\n productID\n features {\n id\n quotaId\n quota {\n id\n name\n limits\n }\n }\n createdAt\n }\n }\n`;\n\nconst GET_ALL_QUOTAS = `\n query GetAllQuotas {\n getAllQuotas {\n id\n name\n limits\n }\n }\n`;\n\nconst CREATE_QUOTA = `\n mutation CreateQuota($input: createQuotaInput!) {\n createQuota(input: $input)\n }\n`;\n\nconst CREATE_PLAN = `\n mutation CreatePlan($input: createPlanInput!) {\n createPlan(input: $input)\n }\n`;\n\nconst UPDATE_PLAN = `\n mutation UpdatePlan($input: updatePlanInput!) {\n updatePlan(input: $input)\n }\n`;\n\nconst TOGGLE_PLAN = `\n mutation TogglePlan($planID: ID!, $status: Boolean!) {\n togglePlan(planID: $planID, status: $status)\n }\n`;\n\n// ============================================================================\n// Component\n// ============================================================================\n\ninterface ProductPlansProps {\n productId: string;\n productName: string;\n readOnly?: boolean;\n}\n\nexport function ProductPlans({\n productId,\n productName: _productName,\n readOnly = false,\n}: ProductPlansProps) {\n const tr = useTr();\n\n const [plans, setPlans] = useState<Plan[]>([]);\n const [availableQuotas, setAvailableQuotas] = useState<Quota[]>([]);\n const [loading, setLoading] = useState(true);\n const [error, setError] = useState<string | null>(null);\n const [showForm, setShowForm] = useState(false);\n const [editingPlan, setEditingPlan] = useState<Plan | null>(null);\n const [submitting, setSubmitting] = useState(false);\n const [showQuotaForm, setShowQuotaForm] = useState(false);\n const [newQuotaName, setNewQuotaName] = useState('');\n const [formData, setFormData] = useState<PlanFormData>({\n name: '',\n price: '',\n duration: 'monthly',\n quotas: [],\n });\n\n const fetchGraphQL = useCallback(\n async <T,>(query: string, variables?: Record<string, unknown>): Promise<T | null> => {\n const result = await graphqlFetch<T>({\n gateway: 'global',\n query,\n variables,\n });\n if (result.errors?.length) throw new Error(result.errors[0].message);\n return result.data ?? null;\n },\n []\n );\n\n const queryPlans = useCallback(async () => {\n const [plansResult, quotasResult] = await Promise.all([\n fetchGraphQL<{ getAllPlans: Plan[] }>(GET_ALL_PLANS),\n fetchGraphQL<{ getAllQuotas: Quota[] }>(GET_ALL_QUOTAS),\n ]);\n const allPlans = plansResult?.getAllPlans || [];\n return {\n plans: allPlans.filter((p: Plan) => p.productID === productId),\n quotas: quotasResult?.getAllQuotas || [],\n };\n }, [productId, fetchGraphQL]);\n\n const reportLoadFailure = useCallback(\n (err: unknown) => {\n setError(tr('products.failedToLoadPlans', 'Failed to load plans'));\n console.error('Failed to fetch plans:', err);\n },\n [tr]\n );\n\n // Re-fetch after a mutation, showing the loading state again.\n const fetchPlans = useCallback(async () => {\n setLoading(true);\n try {\n const result = await queryPlans();\n setPlans(result.plans);\n setAvailableQuotas(result.quotas);\n setError(null);\n } catch (err) {\n reportLoadFailure(err);\n } finally {\n setLoading(false);\n }\n }, [queryPlans, reportLoadFailure]);\n\n // Initial load: `loading` starts true, so state is only set once the request settles.\n useEffect(() => {\n let active = true;\n queryPlans()\n .then((result) => {\n if (!active) return;\n setPlans(result.plans);\n setAvailableQuotas(result.quotas);\n setError(null);\n })\n .catch((err: unknown) => {\n if (active) reportLoadFailure(err);\n })\n .finally(() => {\n if (active) setLoading(false);\n });\n return () => {\n active = false;\n };\n }, [queryPlans, reportLoadFailure]);\n\n const resetForm = () => {\n setFormData({ name: '', price: '', duration: 'monthly', quotas: [] });\n setEditingPlan(null);\n setShowForm(false);\n };\n\n const handleSubmit = async (e: React.FormEvent) => {\n e.preventDefault();\n setSubmitting(true);\n\n try {\n if (editingPlan) {\n await fetchGraphQL(UPDATE_PLAN, {\n input: {\n id: editingPlan.id,\n name: formData.name,\n price: parseFloat(formData.price),\n duration: formData.duration,\n quotas: formData.quotas,\n },\n });\n } else {\n await fetchGraphQL(CREATE_PLAN, {\n input: {\n name: formData.name,\n price: parseFloat(formData.price),\n currency: PLAN_BASE_CURRENCY,\n duration: formData.duration,\n productId: productId,\n quotas: formData.quotas,\n },\n });\n }\n\n resetForm();\n await fetchPlans();\n } catch (err) {\n console.error('Failed to save plan:', err);\n setError(tr('products.failedToSavePlan', 'Failed to save plan'));\n } finally {\n setSubmitting(false);\n }\n };\n\n const handleToggle = async (plan: Plan) => {\n try {\n await fetchGraphQL(TOGGLE_PLAN, { planID: plan.id, status: !plan.isActive });\n await fetchPlans();\n } catch (err) {\n console.error('Failed to toggle plan:', err);\n }\n };\n\n const handleEdit = (plan: Plan) => {\n setEditingPlan(plan);\n setFormData({\n name: plan.name,\n price: plan.price.toString(),\n duration: plan.duration,\n quotas: (plan.features || []).map((f) => ({\n quotaId: f.quotaId,\n quantity: 1,\n })),\n });\n setShowForm(true);\n };\n\n const handleCreateQuota = async () => {\n if (!newQuotaName.trim()) return;\n try {\n setSubmitting(true);\n await fetchGraphQL(CREATE_QUOTA, {\n input: {\n name: newQuotaName.trim(),\n quotaType: 'PRODUCT_SPECIFIC',\n limits: {},\n reusable: true,\n },\n });\n setNewQuotaName('');\n setShowQuotaForm(false);\n await fetchPlans(); // refreshes quotas too\n } catch (err) {\n console.error('Failed to create quota:', err);\n setError(tr('products.failedToCreateFeature', 'Failed to create feature'));\n } finally {\n setSubmitting(false);\n }\n };\n\n // Split plans by audience\n const isEnterprisePlan = (name: string) => {\n const n = name.toLowerCase();\n return n.includes('team') || n.includes('business') || n.includes('enterprise');\n };\n const individualPlans = plans.filter((p) => !isEnterprisePlan(p.name));\n const enterprisePlansList = plans.filter((p) => isEnterprisePlan(p.name));\n\n const monthlyPlans = individualPlans.filter((p) => p.duration === 'monthly');\n const yearlyPlans = individualPlans.filter((p) => p.duration === 'yearly');\n const [audienceTab, setAudienceTab] = useState<'individual' | 'enterprise'>('individual');\n\n return (\n <div className=\"bg-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-[var(--shadow-pop)] lg:col-span-2\">\n <div className=\"flex items-center justify-between mb-4\">\n <h2 className=\"text-lg font-semibold text-text-primary flex items-center gap-2\">\n <DollarSign size={18} />\n {tr('products.pricingPlans', 'Pricing Plans')}\n </h2>\n {!readOnly && (\n <button\n type=\"button\"\n onClick={() => {\n resetForm();\n setShowForm(!showForm);\n }}\n className=\"\n inline-flex items-center gap-1.5 px-3 py-1.5\n bg-[var(--color-bg-accent)] text-[var(--color-text-on-accent)]\n rounded-lg text-sm font-medium\n hover:opacity-90 transition-all duration-200\n \"\n >\n <Plus size={14} />\n {tr('products.addPlan', 'Add Plan')}\n </button>\n )}\n </div>\n\n {/* Create/Edit Form */}\n {showForm && !readOnly && (\n <form\n onSubmit={handleSubmit}\n className=\"mb-6 p-4 bg-bg-sunken rounded-lg border border-default\"\n >\n <h3 className=\"text-sm font-semibold text-text-primary mb-3\">\n {editingPlan\n ? tr('products.editPlan', 'Edit Plan')\n : tr('products.createNewPlan', 'Create New Plan')}\n </h3>\n <div className=\"grid grid-cols-2 sm:grid-cols-4 gap-3\">\n <div>\n <label className=\"block text-xs font-medium text-text-secondary mb-1\">\n {tr('products.planName', 'Name')} *\n </label>\n <input\n type=\"text\"\n value={formData.name}\n onChange={(e) => setFormData({ ...formData, name: e.target.value })}\n placeholder=\"e.g. Basic\"\n required\n className=\"w-full px-3 py-2 text-sm rounded-md border border-default bg-surface text-text-primary\"\n />\n </div>\n <div>\n <label className=\"block text-xs font-medium text-text-secondary mb-1\">\n {tr('products.planPrice', 'Price')} *\n </label>\n <input\n type=\"number\"\n step=\"0.01\"\n min=\"0\"\n value={formData.price}\n onChange={(e) => setFormData({ ...formData, price: e.target.value })}\n placeholder=\"9.99\"\n required\n className=\"w-full px-3 py-2 text-sm rounded-md border border-default bg-surface text-text-primary\"\n />\n </div>\n <div>\n <label className=\"block text-xs font-medium text-text-secondary mb-1\">\n {tr('products.planDuration', 'Duration')} *\n </label>\n <select\n value={formData.duration}\n onChange={(e) =>\n setFormData({ ...formData, duration: e.target.value as 'monthly' | 'yearly' })\n }\n className=\"w-full px-3 py-2 text-sm rounded-md border border-default bg-surface text-text-primary scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary\"\n >\n <option value=\"monthly\">{tr('products.monthly', 'Monthly')}</option>\n <option value=\"yearly\">{tr('products.yearly', 'Yearly')}</option>\n </select>\n </div>\n <div>\n <span\n id=\"plan-currency-label\"\n className=\"block text-xs font-medium text-text-secondary mb-1\"\n >\n {tr('products.currency', 'Currency')}\n </span>\n <output\n aria-labelledby=\"plan-currency-label\"\n aria-describedby=\"plan-currency-hint\"\n className=\"block w-full px-3 py-2 text-sm rounded-md border border-default bg-bg-sunken text-text-primary\"\n >\n {editingPlan?.currency ?? PLAN_BASE_CURRENCY}\n </output>\n <p id=\"plan-currency-hint\" className=\"mt-1 text-xs text-text-secondary\">\n {editingPlan\n ? tr(\n 'products.planCurrencyLocked',\n \"A plan's currency can't be changed after it is created.\"\n )\n : tr(\n 'products.planCurrencyBase',\n 'Plans are priced in USD, the billing base currency.'\n )}\n </p>\n </div>\n </div>\n {/* Quotas/Features */}\n <div className=\"mt-3\">\n <label className=\"block text-xs font-medium text-text-secondary mb-1\">\n <List size={12} className=\"inline mr-1\" />\n {tr('products.featuresQuotas', 'Features / Quotas')}\n </label>\n {availableQuotas.length > 0 ? (\n <>\n <div className=\"space-y-1.5 max-h-32 overflow-y-auto\">\n {availableQuotas.map((quota) => {\n const isSelected = formData.quotas.some((q) => q.quotaId === quota.id);\n return (\n <label\n key={quota.id}\n className=\"flex items-center gap-2 text-xs text-text-primary cursor-pointer hover:bg-bg-sunken/50 px-2 py-1 rounded\"\n >\n <input\n type=\"checkbox\"\n checked={isSelected}\n onChange={(e) => {\n if (e.target.checked) {\n setFormData({\n ...formData,\n quotas: [...formData.quotas, { quotaId: quota.id, quantity: 1 }],\n });\n } else {\n setFormData({\n ...formData,\n quotas: formData.quotas.filter((q) => q.quotaId !== quota.id),\n });\n }\n }}\n className=\"rounded border-default\"\n />\n {quota.name}\n </label>\n );\n })}\n </div>\n <div className=\"flex items-center gap-2 mt-2\">\n <p className=\"text-xs text-text-secondary\">\n {formData.quotas.length}{' '}\n {tr('products.featuresSelected', 'feature(s) selected')}\n </p>\n <span className=\"text-xs text-text-secondary\">|</span>\n {!showQuotaForm ? (\n <button\n type=\"button\"\n onClick={() => setShowQuotaForm(true)}\n className=\"text-xs text-[var(--color-action-primary-bg)] hover:underline\"\n >\n {tr('products.createNewFeature', '+ Create new feature')}\n </button>\n ) : (\n <div className=\"flex items-center gap-1.5\">\n <input\n type=\"text\"\n value={newQuotaName}\n onChange={(e) => setNewQuotaName(e.target.value)}\n placeholder={tr('products.featureNamePlaceholder', 'Feature name')}\n className=\"px-2 py-1 text-xs rounded border border-default bg-surface text-text-primary w-36\"\n onKeyDown={(e) => {\n if (e.key === 'Enter') {\n e.preventDefault();\n handleCreateQuota();\n }\n }}\n />\n <button\n type=\"button\"\n onClick={handleCreateQuota}\n disabled={submitting || !newQuotaName.trim()}\n className=\"px-2 py-1 text-xs bg-[var(--color-bg-accent)] text-[var(--color-text-on-accent)] rounded hover:opacity-90 disabled:opacity-50\"\n >\n {tr('productCommon.add', 'Add')}\n </button>\n <button\n type=\"button\"\n onClick={() => {\n setShowQuotaForm(false);\n setNewQuotaName('');\n }}\n className=\"px-1.5 py-1 text-xs text-text-secondary hover:text-text-primary\"\n >\n {tr('productCommon.cancel', 'Cancel')}\n </button>\n </div>\n )}\n </div>\n </>\n ) : (\n <div className=\"text-xs text-text-secondary\">\n {tr('products.noFeaturesCreated', 'No features created yet.')}{' '}\n {!showQuotaForm ? (\n <button\n type=\"button\"\n onClick={() => setShowQuotaForm(true)}\n className=\"text-[var(--color-action-primary-bg)] hover:underline\"\n >\n {tr('products.createYourFirstFeature', 'Create your first feature')}\n </button>\n ) : (\n <div className=\"flex items-center gap-1.5 mt-1.5\">\n <input\n type=\"text\"\n value={newQuotaName}\n onChange={(e) => setNewQuotaName(e.target.value)}\n placeholder=\"Feature name\"\n className=\"px-2 py-1 text-xs rounded border border-default bg-surface text-text-primary w-36\"\n onKeyDown={(e) => {\n if (e.key === 'Enter') {\n e.preventDefault();\n handleCreateQuota();\n }\n }}\n />\n <button\n type=\"button\"\n onClick={handleCreateQuota}\n disabled={submitting || !newQuotaName.trim()}\n className=\"px-2 py-1 text-xs bg-[var(--color-bg-accent)] text-[var(--color-text-on-accent)] rounded hover:opacity-90 disabled:opacity-50\"\n >\n Add\n </button>\n <button\n type=\"button\"\n onClick={() => {\n setShowQuotaForm(false);\n setNewQuotaName('');\n }}\n className=\"px-1.5 py-1 text-xs text-text-secondary hover:text-text-primary\"\n >\n Cancel\n </button>\n </div>\n )}\n </div>\n )}\n </div>\n\n <div className=\"flex gap-2 mt-3\">\n <button\n type=\"submit\"\n disabled={submitting}\n className=\"\n inline-flex items-center gap-1.5 px-4 py-2\n bg-[var(--color-bg-accent)] text-[var(--color-text-on-accent)]\n rounded-md text-sm font-medium\n hover:opacity-90 transition-all duration-200\n disabled:opacity-50\n \"\n >\n {submitting && <Loader2 size={14} className=\"animate-spin\" />}\n {editingPlan\n ? tr('products.updatePlan', 'Update Plan')\n : tr('products.createPlan', 'Create Plan')}\n </button>\n <button\n type=\"button\"\n onClick={resetForm}\n className=\"px-4 py-2 text-sm text-text-secondary hover:text-text-primary transition-colors\"\n >\n {tr('productCommon.cancel', 'Cancel')}\n </button>\n </div>\n </form>\n )}\n\n {/* Error */}\n {error && (\n <div className=\"mb-4 p-3 bg-[var(--color-status-error-subtle)] border border-[var(--color-status-error-border)] rounded-lg text-sm text-[var(--color-status-error)]\">\n {error}\n </div>\n )}\n\n {/* Loading */}\n {loading ? (\n <div className=\"flex items-center justify-center py-8\">\n <Loader2 size={20} className=\"animate-spin text-text-secondary\" />\n <span className=\"ml-2 text-sm text-text-secondary\">\n {tr('products.loadingPlans', 'Loading plans...')}\n </span>\n </div>\n ) : plans.length === 0 ? (\n <IllustratedEmptyState\n illustration=\"empty-data\"\n title={tr('products.noPricingPlans', 'No pricing plans yet')}\n description={tr('products.clickAddPlan', 'Click \"Add Plan\" to create your first plan')}\n />\n ) : (\n <div className=\"space-y-6\">\n {/* Audience Tabs */}\n {enterprisePlansList.length > 0 && (\n <div className=\"flex gap-2 mb-2\">\n <button\n type=\"button\"\n onClick={() => setAudienceTab('individual')}\n className={`px-4 py-1.5 rounded-lg text-sm font-medium transition-all ${\n audienceTab === 'individual'\n ? 'bg-[var(--color-action-primary-bg)] text-[var(--color-action-primary-text)]'\n : 'bg-[var(--color-bg-muted)] text-text-secondary hover:text-text-primary'\n }`}\n >\n Individual ({individualPlans.length})\n </button>\n <button\n type=\"button\"\n onClick={() => setAudienceTab('enterprise')}\n className={`px-4 py-1.5 rounded-lg text-sm font-medium transition-all ${\n audienceTab === 'enterprise'\n ? 'bg-[var(--color-action-primary-bg)] text-[var(--color-action-primary-text)]'\n : 'bg-[var(--color-bg-muted)] text-text-secondary hover:text-text-primary'\n }`}\n >\n Enterprise ({enterprisePlansList.length})\n </button>\n </div>\n )}\n\n {/* Plan Groups */}\n {(audienceTab === 'individual' || enterprisePlansList.length === 0\n ? [\n { label: tr('products.monthlyPlans', 'Monthly Plans'), plans: monthlyPlans },\n { label: tr('products.yearlyPlans', 'Yearly Plans'), plans: yearlyPlans },\n ]\n : [\n {\n label: tr('products.enterprisePlans', 'Enterprise Plans'),\n plans: enterprisePlansList,\n },\n ]\n )\n .filter((g) => g.plans.length > 0)\n .map((group) => (\n <div key={group.label}>\n <h3 className=\"text-xs font-semibold text-text-secondary uppercase tracking-wider mb-3\">\n {group.label}\n </h3>\n <div className=\"grid grid-cols-1 md:grid-cols-3 gap-4\">\n {group.plans\n .sort((a, b) => a.price - b.price)\n .map((plan) => {\n const isPopular =\n plan.name.toLowerCase().includes('professional') ||\n plan.name.toLowerCase().includes('pro');\n return (\n <div\n key={plan.id}\n className={`\n relative rounded-xl border p-5 transition-all duration-200\n ${plan.isActive ? 'border-default bg-surface hover:shadow-md' : 'border-default bg-bg-sunken/30 opacity-60'}\n ${isPopular ? 'border-[var(--color-action-primary-bg)] ring-1 ring-[var(--color-action-primary-bg)]/20' : ''}\n `}\n >\n {isPopular && (\n <span className=\"absolute -top-2.5 left-1/2 -translate-x-1/2 px-3 py-0.5 text-xs font-semibold bg-[var(--color-action-primary-bg)] text-[var(--color-action-primary-text)] rounded-full\">\n {tr('products.popular', 'Popular')}\n </span>\n )}\n\n {/* Header */}\n <div className=\"flex items-start justify-between mb-3\">\n <div>\n <h4 className=\"text-base font-semibold text-text-primary\">\n {plan.name}\n </h4>\n <span\n className={`inline-flex items-center px-1.5 py-0.5 text-xs font-medium rounded-full mt-1 ${\n plan.isActive\n ? 'bg-[var(--color-status-success-subtle)] text-[var(--color-status-success)]'\n : 'bg-bg-sunken text-text-secondary'\n }`}\n >\n {plan.isActive\n ? tr('products.statusActive', 'Active')\n : tr('products.statusInactive', 'Inactive')}\n </span>\n </div>\n {!readOnly && (\n <div className=\"flex items-center gap-0.5\">\n <button\n type=\"button\"\n onClick={() => handleToggle(plan)}\n title={\n plan.isActive\n ? tr('products.deactivate', 'Deactivate')\n : tr('products.activate', 'Activate')\n }\n className=\"p-1.5 rounded-lg hover:bg-bg-sunken transition-colors text-text-secondary hover:text-text-primary\"\n >\n {plan.isActive ? (\n <ToggleRight\n size={16}\n className=\"text-[var(--color-status-success)]\"\n />\n ) : (\n <ToggleLeft size={16} />\n )}\n </button>\n <button\n type=\"button\"\n onClick={() => handleEdit(plan)}\n title={tr('products.edit', 'Edit')}\n className=\"p-1.5 rounded-lg hover:bg-bg-sunken transition-colors text-text-secondary hover:text-text-primary\"\n >\n <Edit size={14} />\n </button>\n </div>\n )}\n </div>\n\n {/* Price */}\n <div className=\"mb-4\">\n <span className=\"text-2xl md:text-3xl font-semibold tracking-tight text-text-primary\">\n {formatPrice(plan.price, plan.currency)}\n </span>\n <span className=\"text-sm text-text-secondary ml-1\">\n /{plan.duration === 'monthly' ? 'month' : 'year'}\n </span>\n </div>\n\n {/* Features */}\n {plan.features && plan.features.length > 0 ? (\n <div className=\"space-y-2 border-t border-border-seam pt-3\">\n {plan.features.slice(0, 6).map((f) => {\n const quota = f.quota;\n let label = f.quotaId;\n if (quota) {\n // Extract readable name from dotted quota name\n const parts = quota.name.split('.');\n const resource =\n parts.length >= 3\n ? parts[parts.length - 2]\n : parts[parts.length - 1];\n const readableName = (resource || quota.name)\n .replace(/[-_]/g, ' ')\n .replace(/\\b\\w/g, (c: string) => c.toUpperCase());\n const value =\n quota.limits && typeof quota.limits === 'object'\n ? (quota.limits as Record<string, unknown>).value\n : null;\n label =\n typeof value === 'number'\n ? `${value.toLocaleString()} ${readableName}`\n : readableName;\n }\n return (\n <div\n key={f.id}\n className=\"flex items-center gap-2 text-sm text-text-primary\"\n >\n <Check\n size={14}\n className=\"text-[var(--color-status-success)] flex-shrink-0\"\n />\n <span>{label}</span>\n </div>\n );\n })}\n {plan.features.length > 6 && (\n <p className=\"text-xs text-text-secondary pl-5\">\n +{plan.features.length - 6} more\n </p>\n )}\n </div>\n ) : (\n <div className=\"border-t border-border-seam pt-3\">\n <p className=\"text-xs text-text-secondary italic\">\n {tr('products.noFeaturesAssigned', 'No features assigned')}\n </p>\n </div>\n )}\n </div>\n );\n })}\n </div>\n </div>\n ))}\n </div>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;;;;AA4BA,IAAMC,IAAqB,OA6CrBC,IAAgB,qTAwBhBC,IAAiB,kGAUjBC,IAAe,gGAMfC,IAAc,6FAMdC,IAAc,6FAMdC,KAAc;AAgBpB,SAAgBC,EAAa,EAC3B,cACA,aAAaC,IACb,cAAW,MACS;CACpB,IAAMC,IAAKC,EAAM,GAEX,CAACC,GAAOC,KAAYC,EAAiB,CAAC,CAAC,GACvC,CAACC,GAAiBC,KAAsBF,EAAkB,CAAC,CAAC,GAC5D,CAACG,GAASC,KAAcJ,EAAS,EAAI,GACrC,CAACK,GAAOC,KAAYN,EAAwB,IAAI,GAChD,CAACO,GAAUC,KAAeR,EAAS,EAAK,GACxC,CAACS,GAAaC,KAAkBV,EAAsB,IAAI,GAC1D,CAACW,GAAYC,KAAiBZ,EAAS,EAAK,GAC5C,CAACa,GAAeC,KAAoBd,EAAS,EAAK,GAClD,CAACe,GAAcC,KAAmBhB,EAAS,EAAE,GAC7C,CAACiB,GA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,CACA;;EAEJ;;AAET"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Formats an amount in its ISO 4217 currency, with that currency's own symbol
3
+ * and minor units (e.g. `$9.99`, `A$9.99`, `₹999.00`).
4
+ *
5
+ * An unknown or malformed code makes Intl throw a RangeError; the amount is
6
+ * then shown with the raw code instead of a wrong symbol.
7
+ */
8
+ export declare function formatPrice(amount: number, currency: string): string;
@@ -0,0 +1,14 @@
1
+ // src/product-management/shared/utils/formatPrice.ts
2
+ function e(e, t) {
3
+ try {
4
+ return new Intl.NumberFormat("en-US", {
5
+ style: "currency",
6
+ currency: t
7
+ }).format(e);
8
+ } catch {
9
+ return `${e} ${t}`;
10
+ }
11
+ }
12
+ export { e as formatPrice };
13
+
14
+ //# sourceMappingURL=formatPrice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatPrice.js","names":["formatPrice","amount","currency"],"sources":["../../../../src/product-management/shared/utils/formatPrice.ts"],"sourcesContent":["/**\n * Formats an amount in its ISO 4217 currency, with that currency's own symbol\n * and minor units (e.g. `$9.99`, `A$9.99`, `₹999.00`).\n *\n * An unknown or malformed code makes Intl throw a RangeError; the amount is\n * then shown with the raw code instead of a wrong symbol.\n */\nexport function formatPrice(amount: number, currency: string): string {\n try {\n return new Intl.NumberFormat('en-US', { style: 'currency', currency }).format(amount);\n } catch {\n return `${amount} ${currency}`;\n }\n}\n"],"mappings":";AAOA,SAAgBA,EAAY,GAAgB,GAA0B;CACpE,IAAI;EACF,OAAO,IAAI,KAAK,aAAa,SAAS;GAAE,OAAO;GAAY;EAAS,CAAC,CAAC,CAAC,OAAOC,CAAM;CACtF,QAAQ;EACN,OAAO,GAAGA,EAAO,GAAGC;CACtB;AACF"}
@@ -491,6 +491,8 @@ export declare const enTranslations: {
491
491
  ogImagePreview: string;
492
492
  ogImageUrl: string;
493
493
  phone: string;
494
+ planCurrencyBase: string;
495
+ planCurrencyLocked: string;
494
496
  planDuration: string;
495
497
  planName: string;
496
498
  planPrice: string;
@@ -490,6 +490,8 @@ var e = {
490
490
  ogImagePreview: "OG Image preview",
491
491
  ogImageUrl: "OG Image URL",
492
492
  phone: "Phone",
493
+ planCurrencyBase: "Plans are priced in USD, the billing base currency.",
494
+ planCurrencyLocked: "A plan's currency can't be changed after it is created.",
493
495
  planDuration: "Duration",
494
496
  planName: "Name",
495
497
  planPrice: "Price",
@@ -1 +1 @@
1
- {"version":3,"file":"en.js","names":["enTranslations"],"sources":["../../src/translations/en.ts"],"sourcesContent":["export const enTranslations = {\n auditHistory: {\n actorFallback: 'system',\n loading: 'Loading activity history…',\n noActivityDescription:\n 'Changes to this item — who edited what and when — will appear here as they happen.',\n noActivityTitle: 'No activity yet',\n },\n confirmDialog: {\n cancel: 'Cancel',\n ok: 'OK',\n },\n contentPageView: {\n backToProducts: 'Back to Products',\n lastUpdated: 'Last updated:',\n loading: 'Loading content...',\n notFound: 'Content page not found',\n purpose:\n 'This is published product content — a guide, policy, or announcement for this product. Read it through, then head back to the catalog to explore more.',\n version: 'Version',\n },\n contentPages: {\n activityHistory: 'Activity History',\n author: 'Author',\n backTo: 'Back to',\n backToContentPages: 'Back to Content Pages',\n basicInformation: 'Basic Information',\n category: 'Category',\n columnActions: 'Actions',\n columnLastUpdated: 'Last Updated',\n columnPage: 'Page',\n columnSlug: 'Slug',\n columnStatus: 'Status',\n columnVersion: 'Version',\n confirmDelete: 'Are you sure you want to delete this content page?',\n contentEditor: 'Content Editor',\n contentFormat: 'Content Format',\n contentLastUpdated: 'Content Last Updated',\n contentPageNotFound: 'Content page not found',\n contentPages: 'content pages',\n contentPreview: 'Content Preview',\n createContentPage: 'Create Content Page',\n createContentPageSubtitle: 'Add a new content page',\n createPurpose:\n 'Write a new page users will see — a blog post, legal page, doc, or announcement. Choose markdown or HTML, set a clean slug and SEO fields, and leave it unpublished until you are ready to make it live.',\n created: 'Created',\n delete: 'Delete',\n draft: 'Draft',\n edit: 'Edit',\n editContentPage: 'Edit Content Page',\n editContentPageSubtitle: 'Update content page information',\n editPage: 'Edit Page',\n editPurpose:\n 'Update this page — rewrite the content, refine the SEO, or flip its published state. Each save records a new version, so you can change copy safely and only publish when it is ready for users.',\n enterPageTitle: 'Enter page title',\n excerpt: 'Excerpt',\n exportCsv: 'Export as CSV',\n extraDetailFields: 'Article Details',\n featured: 'Featured',\n filterAll: 'All',\n lastUpdated: 'Last Updated',\n loadingContentPage: 'Loading content page...',\n loadingContentPages: 'Loading content pages...',\n metadata: 'Metadata',\n navContentPages: 'Content Pages',\n newPage: 'New Page',\n next: 'Next',\n nextPage: 'Next page',\n noContentPagesFound: 'No content pages found',\n notFeatured: 'Not Featured',\n of: 'of',\n pageTitle: 'Title',\n pageType: 'Page Type',\n pageTypeHint:\n 'Sets the primary tag and which fields apply. Blog Posts and Press Releases get the extra Article Details section below.',\n prev: 'Prev',\n prevPage: 'Previous page',\n productAssociation: 'Product Association',\n productId: 'Product ID',\n productIdHint: 'Associate this content page with a specific product.',\n productIdPlaceholder: 'Optional product association',\n productName: 'Product Name',\n productSlug: 'Product Slug',\n published: 'Published',\n publishedAt: 'Publish Date',\n publishedOnly: 'Published Only',\n publishing: 'Publishing',\n purpose:\n 'Content pages are the published text your products show users — blog posts, legal pages, docs, and announcements. Write them in markdown or HTML, version each change, and publish only when they are ready to go live.',\n readingTime: 'Reading Time (min)',\n searchPlaceholder: 'Search content pages...',\n seoDescription: 'SEO Description',\n seoDescriptionPlaceholder: 'Brief description for search engine results',\n seoInformation: 'SEO Information',\n seoKeywords: 'SEO Keywords',\n seoMetadata: 'SEO Metadata',\n seoTitle: 'SEO Title',\n seoTitlePlaceholder: 'Page title for search engines',\n showing: 'Showing',\n slug: 'Slug',\n slugHint: 'Lowercase letters, numbers, and hyphens only. Cannot be changed after creation.',\n sortOrder: 'Sort Order',\n sortOrderHint: 'Lower numbers appear first. Default is 0.',\n steps: {\n back: 'Back to all content pages',\n backDesc: 'Return to the list to manage the rest of your content.',\n edit: 'Edit this page',\n editDesc:\n 'Update the content, SEO, or publish status. A new version is recorded on each save.',\n seo: 'Check SEO & metadata',\n seoDesc: 'Make sure the slug, title, and SEO fields are right before this page goes public.',\n },\n subtitle: 'Manage content pages and documentation',\n tags: 'Tags',\n thumbnail: 'Thumbnail URL',\n title: 'Content Pages',\n typeBlog: 'Blog Post',\n typeDocs: 'Documentation',\n typeLegal: 'Legal',\n typePage: 'General Page',\n typePress: 'Press Release',\n unpublished: 'Unpublished',\n updateContentPage: 'Update Content Page',\n version: 'Version',\n viewDetails: 'View details',\n visibility: 'Visibility',\n visibilityAuthenticated: 'Authenticated — signed-in users only',\n visibilityHint: 'Public is required for blog posts and legal pages to appear on the website.',\n visibilityInternal: 'Internal — staff/admin only',\n visibilityPublic: 'Public — visible to everyone',\n writeContentPlaceholder: 'Write your content in markdown...',\n },\n errorState: {\n deniedMessage: 'This area is restricted to platform administrators.',\n deniedTitle: \"You don't have access\",\n title: 'Something went wrong',\n },\n featureFlags: {\n activityHistory: 'Activity History',\n allCategories: 'All Categories',\n allProducts: 'All Products',\n allProductsGlobal: 'All products (global)',\n allStatuses: 'All Statuses',\n allowUserPreviewOptIn: 'Allow user preview opt-in',\n allowed: 'Allowed',\n auditTrail: 'Audit Trail',\n backToFeatureFlags: 'Back to Feature Flags',\n backToFlagDetails: 'Back to Flag Details',\n basicInformation: 'Basic Information',\n blocked: 'Blocked',\n category: 'Category',\n columnCategory: 'Category',\n columnKey: 'Key',\n columnName: 'Name',\n columnPreview: 'Preview',\n columnProduct: 'Product',\n columnStatus: 'Status',\n columnType: 'Type',\n columnUpdated: 'Updated',\n configuration: 'Configuration',\n createFeatureFlag: 'Create Feature Flag',\n createFirstFlagDescription:\n 'Create your first feature flag to control feature rollout across products.',\n createFlag: 'Create Flag',\n createFlagSubtitle:\n 'Define a new feature flag to control feature rollout across products and workspaces.',\n createPurpose:\n 'Pick a stable key, set whether the feature defaults on or off, and decide if users can opt in via Feature Previews. Once created, you can override the default per workspace — so you can ship code dark and flip it on when ready.',\n created: 'Created',\n createdBy: 'Created By',\n defaultValue: 'Default Value',\n delete: 'Delete',\n description: 'Description',\n descriptionPlaceholder: 'Describe what this feature flag controls...',\n edit: 'Edit',\n editFeatureFlag: 'Edit Feature Flag',\n editPurpose:\n 'Adjust how this flag behaves — its default value, status, category, and whether users can preview it. Saving takes effect immediately, so changing the default can switch the feature on or off for everyone who relies on it.',\n enabled: 'Enabled',\n exportCsv: 'Export as CSV',\n featureFlagNotFound: 'Feature flag not found',\n flagKey: 'Flag Key',\n flagKeyHint:\n 'Lowercase alphanumeric, separated by dots or hyphens. Cannot be changed after creation.',\n flagTotal: 'flag total',\n flagType: 'Flag Type',\n flagsTotal: 'flags total',\n lastUpdated: 'Last Updated',\n loadingFeatureFlag: 'Loading feature flag...',\n loadingFeatureFlags: 'Loading feature flags...',\n navFeatureFlags: 'Feature Flags',\n no: 'No',\n noFeatureFlagsFound: 'No feature flags found',\n noOverridesTitle: 'No workspace overrides',\n noWorkspaceOverrides:\n 'No workspace overrides configured. All workspaces use the platform default.',\n platform: 'Platform',\n platformAllProducts: 'Platform (all products)',\n platformOnly: 'Platform only',\n previewOptInHint: 'Users can opt-in to try this feature before it is fully rolled out',\n previewable: 'Previewable',\n product: 'Product',\n productFilter: 'Product',\n productHint:\n 'Scope this flag to a single product, or leave as Platform to make it available across all products.',\n saving: 'Saving...',\n scopeFilter: 'Scope',\n searchPlaceholder: 'Search by key, name, or description...',\n seedDefaults: 'Seed Defaults',\n seeding: 'Seeding...',\n status: 'Status',\n statusActive: 'Active',\n statusArchived: 'Archived',\n statusDisabled: 'Disabled',\n statusEnabled: 'Enabled',\n steps: {\n back: 'Back to all flags',\n backDesc: 'Return to the full list to manage other feature flags.',\n edit: 'Edit this flag',\n editDesc: 'Change its default value, status, category, or who can preview it.',\n overrides: 'Review workspace overrides',\n overridesDesc: 'Check which workspaces opt out of (or into) the platform default below.',\n },\n subtitle: 'Manage platform-wide feature flags.',\n subtitleScopedPrefix: 'Feature flags for',\n subtitleScopedSuffix: 'plus platform-wide flags.',\n tags: 'Tags',\n tagsHint: 'Press Enter or comma to add a tag.',\n title: 'Feature Flags',\n tryAdjustingFilters: 'Try adjusting your search or filters.',\n typeBoolean: 'Boolean',\n typeJson: 'JSON',\n typeNumber: 'Number',\n typeString: 'String',\n updateConfigurationFor: 'Update the configuration for',\n updateFlag: 'Update Flag',\n updated: 'Updated',\n updatedBy: 'Updated By',\n userOptIn: 'User Opt-In',\n viewDetails: 'View details',\n workspaceId: 'Workspace ID',\n workspaceOverrides: 'Workspace Overrides',\n yes: 'Yes',\n yesUsersCanOptIn: 'Yes — users can opt-in',\n },\n loadingState: {\n message: 'Loading...',\n },\n markdownEditor: {\n edit: 'Edit',\n nothingToPreview: 'Nothing to preview yet.',\n placeholder: {\n bold: 'bold text',\n code: 'code',\n heading: 'Heading',\n italic: 'italic text',\n linkText: 'link text',\n listItem: 'list item',\n quoteText: 'quote text',\n },\n preview: 'Preview',\n toolbar: {\n bold: 'Bold',\n bulletList: 'Bullet List',\n codeBlock: 'Code Block',\n heading: 'Heading',\n italic: 'Italic',\n link: 'Link',\n numberedList: 'Numbered List',\n quote: 'Quote',\n },\n },\n pressKit: {\n assetNotFound: 'Press kit asset not found',\n backTo: 'Back to',\n backToPressKit: 'Back to Press Kit',\n basicInformation: 'Basic Information',\n columnActions: 'Actions',\n columnAsset: 'Asset',\n columnCategory: 'Category',\n columnFile: 'File',\n columnUpdated: 'Updated',\n columnVisibility: 'Visibility',\n confirmDelete: 'Delete this press kit asset?',\n createAsset: 'Add Press Kit Asset',\n createAssetSubtitle: 'Add a downloadable logo, banner, brochure or document',\n createPurpose:\n 'Upload an asset others can download — a logo, banner, screenshot, brochure, or brand guide. Categorize it so it shows under the right tab, and set its visibility to control whether it is shared publicly or kept internal.',\n delete: 'Delete',\n descriptionPlaceholder: 'Short description / usage notes',\n details: 'Details',\n download: 'Download',\n edit: 'Edit',\n editAsset: 'Edit Press Kit Asset',\n editAssetSubtitle: 'Update press kit asset information',\n editPurpose:\n 'Update this asset — swap the file for a newer version, fix its title or description, recategorize it, or change its visibility. Saved changes apply wherever this asset is downloaded or linked.',\n exportCsv: 'Export as CSV',\n fieldCategory: 'Category',\n fieldDescription: 'Description',\n fieldFileName: 'File Name',\n fieldFileSize: 'File Size (bytes)',\n fieldFileUrl: 'File URL',\n fieldMimeType: 'MIME Type',\n fieldProduct: 'Product',\n fieldSlug: 'Slug',\n fieldSortOrder: 'Sort Order',\n fieldTags: 'Tags',\n fieldThumbnail: 'Thumbnail / Preview URL',\n fieldTitle: 'Title',\n fieldVersion: 'Version',\n fieldVisibility: 'Visibility',\n fileSection: 'File',\n fileUploadHint: 'Upload the file (drag & drop or click), or paste a public CDN/file URL below.',\n loadingAsset: 'Loading press kit asset...',\n loadingAssets: 'Loading press kit assets...',\n navPressKit: 'Press Kit',\n newAsset: 'New Asset',\n noAssetsFound: 'No press kit assets found',\n publishing: 'Publishing',\n purpose:\n 'The press kit is everything journalists, partners, and marketers need to represent your product — logos, banners, screenshots, brochures, and brand guides. Upload assets here, set their visibility, and share the public ones externally.',\n searchPlaceholder: 'Search press kit assets...',\n selectProduct: 'Select a product…',\n slugHint: 'Lowercase, numbers, hyphens. Cannot change after creation.',\n steps: {\n back: 'Back to the press kit',\n backDesc: 'Return to the full asset list to manage the rest of your kit.',\n download: 'Download the asset',\n downloadDesc: 'Grab the file to use it, or copy the file URL to share externally.',\n edit: 'Edit this asset',\n editDesc: 'Replace the file, change its category, or adjust who can see it.',\n },\n subtitle: 'Manage downloadable press & media assets',\n tags: 'Tags',\n title: 'Press Kit',\n titlePlaceholder: 'e.g. Logo — Dark',\n updateAsset: 'Update Asset',\n uploadCta: 'Drag & drop a file, or click to choose',\n uploadNeedsProduct: 'Select a product first',\n uploading: 'Uploading…',\n viewDetails: 'View details',\n visAuth: 'Authenticated — signed-in',\n visHint: 'Public is required to show on the website press page.',\n visInternal: 'Internal — staff',\n visPublic: 'Public — everyone',\n },\n productCatalog: {\n columnActions: 'Actions',\n columnProduct: 'Product',\n columnStatus: 'Status',\n columnWebsite: 'Website',\n emptyDescription: 'Check back soon for available platform products.',\n emptyDescriptionFiltered: 'Try adjusting your search or filters.',\n emptyTitle: 'No products found',\n loading: 'Loading products...',\n purpose:\n 'This is the public product catalog — explore every platform product available to you, see whether each is live or coming soon, and open one to view its full details and shortcuts.',\n refresh: 'Refresh',\n retry: 'Retry',\n searchPlaceholder: 'Search products...',\n statusActive: 'Active',\n statusAll: 'All Statuses',\n statusComingSoon: 'Coming Soon',\n subtitle: 'Browse available platform products',\n title: 'Products',\n viewDetails: 'View details',\n websiteEmpty: '-',\n },\n productCombobox: {\n loading: 'Loading…',\n noProductsFound: 'No products found.',\n none: 'None',\n placeholder: 'Select a product…',\n searchPlaceholder: 'Search products…',\n searching: 'Searching…',\n },\n productCommon: {\n add: 'Add',\n cancel: 'Cancel',\n refresh: 'Refresh',\n retry: 'Retry',\n },\n productUser: {\n footerVersion: 'Products v0.1.0',\n navProducts: 'Products',\n },\n productView: {\n about: 'About',\n added: 'Added',\n app: 'App',\n appleAppStore: 'Apple App Store',\n backToProducts: 'Back to Products',\n contact: 'Contact',\n contactEmail: 'Contact Email',\n details: 'Details',\n documentation: 'Documentation',\n download: 'Download',\n github: 'GitHub',\n googlePlayStore: 'Google Play Store',\n lastUpdated: 'Last Updated',\n links: 'Links',\n loading: 'Loading product details...',\n notFound: 'Product not found',\n socialMedia: 'Social Media',\n statusPage: 'Status Page',\n steps: {\n browseMore: 'Browse more products',\n browseMoreDesc: 'Return to the catalog to discover other platform products.',\n getHelp: 'Get in touch',\n getHelpDesc: 'Reach out to the team with questions or for support.',\n openApp: 'Open the app',\n openAppDesc: 'Jump straight into the product and start using it.',\n readDocs: 'Read the documentation',\n readDocsDesc: 'Learn how it works and what it can do.',\n },\n supportEmail: 'Support Email',\n },\n products: {\n accessDeniedDetail: 'The product catalog is restricted to platform administrators.',\n activate: 'Activate',\n active: 'active',\n activeProducts: 'Active Products',\n activityHistory: 'Activity History',\n addPlan: 'Add Plan',\n addResourceLink: 'Add Resource Link',\n addSocialLink: 'Add Social Link',\n address: 'Address',\n allProducts: 'All products',\n allStatuses: 'All Statuses',\n appStoreLinks: 'App Store Links',\n appUrl: 'App URL',\n appleAppStore: 'Apple App Store',\n appleAppStoreUrl: 'Apple App Store URL',\n backTo: 'Back to',\n backToProducts: 'Back to Products',\n basicInformation: 'Basic Information',\n betaProducts: 'Beta Products',\n columnActions: 'Actions',\n columnCategory: 'Category',\n columnProduct: 'Product',\n columnStatus: 'Status',\n columnVersion: 'Version',\n confirmDeleteProduct: 'Are you sure you want to delete this product?',\n contactAddress: 'Contact Address',\n contactEmail: 'Contact Email',\n contactInformation: 'Contact Information',\n contactPhone: 'Contact Phone',\n contentPages: 'Content Pages',\n createNewFeature: '+ Create new feature',\n createNewPlan: 'Create New Plan',\n createPlan: 'Create Plan',\n createProduct: 'Create Product',\n createProductSubtitle: 'Add a new product to the platform',\n createPurpose:\n 'Register a new product so it can appear in the catalog. Give it a name and slug, set its launch status, and add as much detail as you have — you can always come back and refine it later.',\n createYourFirstFeature: 'Create your first feature',\n created: 'Created',\n createdOn: 'Created',\n currency: 'Currency',\n deactivate: 'Deactivate',\n delete: 'Delete',\n description: 'Description',\n documentationUrl: 'Documentation URL',\n edit: 'Edit',\n editPlan: 'Edit Plan',\n editProduct: 'Edit Product',\n enterProductDescription: 'Enter product description',\n enterProductName: 'Enter product name',\n enterSecretKeyPlaceholder: 'Enter secret key (leave empty to keep existing)',\n enterprisePlans: 'Enterprise Plans',\n exportCsv: 'Export as CSV',\n failedToCreateFeature: 'Failed to create feature',\n failedToLoadPlans: 'Failed to load plans',\n failedToSavePlan: 'Failed to save plan',\n featureNamePlaceholder: 'Feature name',\n featuresQuotas: 'Features / Quotas',\n featuresSelected: 'feature(s) selected',\n footerVersion: 'Product Management v0.1.0',\n githubUrl: 'GitHub URL',\n googlePlayStore: 'Google Play Store',\n googlePlayStoreUrl: 'Google Play Store URL',\n hiddenSetViaEdit: 'Hidden — set via Edit page',\n inTestingPhase: 'In testing phase',\n integrations: 'Integrations',\n keywords: 'Keywords',\n lastUpdated: 'Last Updated',\n loadingPlans: 'Loading plans...',\n loadingProduct: 'Loading product...',\n loadingProductDetails: 'Loading product details...',\n loadingProducts: 'Loading products...',\n logoUrl: 'Logo URL',\n manageContentPages: 'Manage content pages associated with this product.',\n metadata: 'Metadata',\n monthly: 'Monthly',\n monthlyPlans: 'Monthly Plans',\n name: 'Name',\n navProducts: 'Products',\n next: 'Next',\n nextPage: 'Next page',\n noFeaturesAssigned: 'No features assigned',\n noFeaturesCreated: 'No features created yet.',\n noMatchingProducts: 'No products match your search',\n noPricingPlans: 'No pricing plans yet',\n noProductsFound: 'No products found',\n notConfigured: 'Not configured',\n of: 'of',\n ogImage: 'OG Image',\n ogImageHint: 'Open Graph image used when sharing on social media.',\n ogImagePreview: 'OG Image preview',\n ogImageUrl: 'OG Image URL',\n phone: 'Phone',\n planDuration: 'Duration',\n planName: 'Name',\n planPrice: 'Price',\n platform: 'Platform',\n popular: 'Popular',\n prev: 'Prev',\n prevPage: 'Previous page',\n pricingPlans: 'Pricing Plans',\n productName: 'Product Name',\n productNotFound: 'Product not found',\n products: 'products',\n purpose:\n 'This is your product registry — the single source of truth for every product on the platform. Create products, set their status (draft, waitlist, coming soon, active), and manage the details users see in the catalog.',\n recaptcha: '(reCAPTCHA)',\n recaptchaDescription:\n 'reCAPTCHA v2 keys for bot protection on website forms (newsletter, contact). Site key is public, secret key is used for server-side verification only.',\n recaptchaSecretKey: 'reCAPTCHA Secret Key',\n recaptchaSecretKeyHint: 'Secret key — server-side only, never exposed via public API',\n recaptchaSiteKey: 'reCAPTCHA Site Key',\n recaptchaSiteKeyHint:\n 'Public key — exposed in frontend. Register at google.com/recaptcha/admin',\n removeResourceLink: 'Remove resource link',\n removeSocialLink: 'Remove social link',\n requiredForProductSwitcher: '(Required for product switcher)',\n resource: 'Resource',\n resourceLinks: 'Resource Links',\n searchPlaceholder: 'Search products...',\n seoDescription: 'SEO Description',\n seoDescriptionPlaceholder: 'Brief description for search engines',\n seoKeywords: 'SEO Keywords',\n seoKeywordsHint: 'Comma-separated keywords for search engine optimization.',\n seoMetadata: 'SEO Metadata',\n seoTitle: 'SEO Title',\n showing: 'Showing',\n slug: 'Slug',\n slugHint: 'Lowercase letters, numbers, and hyphens only. Cannot be changed after creation.',\n socialMediaLinks: 'Social Media Links',\n status: 'Status',\n statusActive: 'Active',\n statusBeta: 'Beta',\n statusBreakdown: 'Status Breakdown',\n statusComingSoon: 'Coming Soon',\n statusDeprecated: 'Deprecated',\n statusDraft: 'Draft',\n statusInactive: 'Inactive',\n statusPageUrl: 'Status Page URL',\n statusWaitlist: 'Waitlist',\n steps: {\n content: 'Manage content pages',\n contentDesc: 'Add guides, policies, or announcements shown for this product.',\n edit: 'Edit product details',\n editDesc: 'Update the name, description, status, links and metadata.',\n status: 'Confirm the launch status',\n statusDesc:\n 'Make sure draft / waitlist / coming-soon / active reflects reality before users see it.',\n },\n subtitle: 'Manage platform products and features',\n supportEmail: 'Support Email',\n tags: 'Tags',\n tagsHint: 'Press Enter or comma to add a tag.',\n timestamps: 'Timestamps',\n title: 'Products',\n totalProducts: 'Total Products',\n updatePlan: 'Update Plan',\n updateProduct: 'Update Product',\n updateProductInfo: 'Update product information',\n url: 'URL',\n urlsAndLinks: 'URLs & Links',\n viewContentPages: 'View Content Pages',\n viewDetails: 'View details',\n websiteUrl: 'Website URL',\n yearly: 'Yearly',\n yearlyPlans: 'Yearly Plans',\n },\n searchInput: {\n clearAriaLabel: 'Clear search',\n placeholder: 'Search...',\n },\n shortcuts: {\n allCategories: 'All Categories',\n allStatus: 'All Status',\n backToShortcut: 'Back to Shortcut',\n backToShortcuts: 'Back to Shortcuts',\n basicInformation: 'Basic Information',\n category: 'Category',\n columnActions: 'Actions',\n columnCategory: 'Category',\n columnEnabled: 'Enabled',\n columnEvent: 'Event',\n columnLabel: 'Label',\n columnProduct: 'Product',\n columnShortcut: 'Shortcut',\n confirmDelete: 'Are you sure you want to delete this shortcut?',\n confirmSeedDefaults: 'This will create default global shortcuts. Continue?',\n createKeyboardShortcut: 'Create Keyboard Shortcut',\n createPurpose:\n 'Bind a key combination (or sequence) to an event your app listens for. Add Mac and Windows/Linux variants if the keys differ, pick a category so it groups nicely, and scope it to one product or leave it global.',\n createShortcut: 'Create Shortcut',\n createShortcutSubtitle: 'Add a new keyboard shortcut for the platform',\n created: 'Created',\n defaultKey: 'Default Key',\n delete: 'Delete',\n description: 'Description',\n descriptionPlaceholder: 'Enter a description for this shortcut',\n disable: 'Disable',\n disabled: 'Disabled',\n edit: 'Edit',\n editKeyboardShortcut: 'Edit Keyboard Shortcut',\n editPurpose:\n 'Adjust this shortcut — rebind its keys, change the event it fires, update per-platform variants, or move it to a different category. Changes apply across the products that use this shortcut.',\n editShortcutSubtitle: 'Update the keyboard shortcut configuration',\n enable: 'Enable',\n enabled: 'Enabled',\n eventName: 'Event Name',\n eventNameHint: 'The event name to emit when this shortcut is triggered.',\n global: 'Global',\n globalAllProducts: 'Global (All Products)',\n globalShortcutHint: 'Leave empty for global shortcuts that work across all products.',\n goBack: 'Go Back',\n keyCombination: 'Key Combination',\n keySequence: 'Key Sequence',\n label: 'Label',\n loadingShortcut: 'Loading shortcut...',\n loadingShortcuts: 'Loading keyboard shortcuts...',\n macKey: 'Mac Key',\n macKeyOverride: 'Mac Key Override',\n noShortcutsFound: 'No keyboard shortcuts found',\n options: 'Options',\n platformKeys: 'Platform Keys',\n platformSpecificKeys: 'Platform-Specific Keys (Optional)',\n product: 'Product',\n sameAsDefault: 'Same as default',\n searchPlaceholder: 'Search shortcuts...',\n seedDefaults: 'Seed Defaults',\n shortcutDetails: 'Shortcut Details',\n shortcutKey: 'Shortcut Key',\n shortcutKeyHint: 'Use space for sequences (g h), use + for modifiers (Cmd+K, Ctrl+Shift+P)',\n shortcutNotFound: 'Shortcut not found',\n sortOrder: 'Sort Order',\n steps: {\n back: 'Back to all shortcuts',\n backDesc: 'Return to the list to manage the rest of your shortcuts.',\n disable: 'Disable this shortcut',\n edit: 'Edit this shortcut',\n editDesc: 'Change the key combination, event, category, or per-platform keys.',\n enable: 'Enable this shortcut',\n toggleDesc: 'Turn it on or off without deleting it — useful while testing.',\n },\n subtitle: 'Manage keyboard shortcuts across all Burdenoff products',\n timestamps: 'Timestamps',\n title: 'Keyboard Shortcuts',\n type: 'Type',\n updateShortcut: 'Update Shortcut',\n updated: 'Updated',\n viewDetails: 'View details',\n windowsKeyOverride: 'Windows Key Override',\n windowsLinuxKey: 'Windows/Linux Key',\n },\n tagInput: {\n placeholder: 'Add a tag…',\n removeTagAriaLabel: 'Remove tag {{tag}}',\n },\n};\n"],"mappings":";AAAA,IAAaA,IAAiB;CAC5B,cAAc;EACZ,eAAe;EACf,SAAS;EACT,uBACE;EACF,iBAAiB;CACnB;CACA,eAAe;EACb,QAAQ;EACR,IAAI;CACN;CACA,iBAAiB;EACf,gBAAgB;EAChB,aAAa;EACb,SAAS;EACT,UAAU;EACV,SACE;EACF,SAAS;CACX;CACA,cAAc;EACZ,iBAAiB;EACjB,QAAQ;EACR,QAAQ;EACR,oBAAoB;EACpB,kBAAkB;EAClB,UAAU;EACV,eAAe;EACf,mBAAmB;EACnB,YAAY;EACZ,YAAY;EACZ,cAAc;EACd,eAAe;EACf,eAAe;EACf,eAAe;EACf,eAAe;EACf,oBAAoB;EACpB,qBAAqB;EACrB,cAAc;EACd,gBAAgB;EAChB,mBAAmB;EACnB,2BAA2B;EAC3B,eACE;EACF,SAAS;EACT,QAAQ;EACR,OAAO;EACP,MAAM;EACN,iBAAiB;EACjB,yBAAyB;EACzB,UAAU;EACV,aACE;EACF,gBAAgB;EAChB,SAAS;EACT,WAAW;EACX,mBAAmB;EACnB,UAAU;EACV,WAAW;EACX,aAAa;EACb,oBAAoB;EACpB,qBAAqB;EACrB,UAAU;EACV,iBAAiB;EACjB,SAAS;EACT,MAAM;EACN,UAAU;EACV,qBAAqB;EACrB,aAAa;EACb,IAAI;EACJ,WAAW;EACX,UAAU;EACV,cACE;EACF,MAAM;EACN,UAAU;EACV,oBAAoB;EACpB,WAAW;EACX,eAAe;EACf,sBAAsB;EACtB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,eAAe;EACf,YAAY;EACZ,SACE;EACF,aAAa;EACb,mBAAmB;EACnB,gBAAgB;EAChB,2BAA2B;EAC3B,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,UAAU;EACV,qBAAqB;EACrB,SAAS;EACT,MAAM;EACN,UAAU;EACV,WAAW;EACX,eAAe;EACf,OAAO;GACL,MAAM;GACN,UAAU;GACV,MAAM;GACN,UACE;GACF,KAAK;GACL,SAAS;EACX;EACA,UAAU;EACV,MAAM;EACN,WAAW;EACX,OAAO;EACP,UAAU;EACV,UAAU;EACV,WAAW;EACX,UAAU;EACV,WAAW;EACX,aAAa;EACb,mBAAmB;EACnB,SAAS;EACT,aAAa;EACb,YAAY;EACZ,yBAAyB;EACzB,gBAAgB;EAChB,oBAAoB;EACpB,kBAAkB;EAClB,yBAAyB;CAC3B;CACA,YAAY;EACV,eAAe;EACf,aAAa;EACb,OAAO;CACT;CACA,cAAc;EACZ,iBAAiB;EACjB,eAAe;EACf,aAAa;EACb,mBAAmB;EACnB,aAAa;EACb,uBAAuB;EACvB,SAAS;EACT,YAAY;EACZ,oBAAoB;EACpB,mBAAmB;EACnB,kBAAkB;EAClB,SAAS;EACT,UAAU;EACV,gBAAgB;EAChB,WAAW;EACX,YAAY;EACZ,eAAe;EACf,eAAe;EACf,cAAc;EACd,YAAY;EACZ,eAAe;EACf,eAAe;EACf,mBAAmB;EACnB,4BACE;EACF,YAAY;EACZ,oBACE;EACF,eACE;EACF,SAAS;EACT,WAAW;EACX,cAAc;EACd,QAAQ;EACR,aAAa;EACb,wBAAwB;EACxB,MAAM;EACN,iBAAiB;EACjB,aACE;EACF,SAAS;EACT,WAAW;EACX,qBAAqB;EACrB,SAAS;EACT,aACE;EACF,WAAW;EACX,UAAU;EACV,YA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X,eAAe;EACf,kBAAkB;EAClB,eAAe;EACf,eAAe;EACf,cAAc;EACd,eAAe;EACf,cAAc;EACd,WAAW;EACX,gBAAgB;EAChB,WAAW;EACX,gBAAgB;EAChB,YAAY;EACZ,cAAc;EACd,iBAAiB;EACjB,aAAa;EACb,gBAAgB;EAChB,cAAc;EACd,eAAe;EACf,aAAa;EACb,UAAU;EACV,eAAe;EACf,YAAY;EACZ,SACE;EACF,mBAAmB;EACnB,eAAe;EACf,UAAU;EACV,OAAO;GACL,MAAM;GACN,UAAU;GACV,UAAU;GACV,cAAc;GACd,MAAM;GACN,UAAU;EACZ;EACA,UAAU;EACV,MAAM;EACN,OAAO;EACP,kBAAkB;EAClB,aAAa;EACb,WAAW;EACX,oBAAoB;EACpB,WAAW;EACX,aAAa;EACb,SAAS;EACT,SAAS;EACT,aAAa;EACb,WAAW;CACb;CACA,gBAAgB;EACd,eAAe;EACf,eAAe;EACf,cAAc;EACd,eAAe;EACf,kBAAkB;EAClB,0BAA0B;EAC1B,YAAY;EACZ,SAAS;EACT,SACE;EACF,SAAS;EACT,OAAO;EACP,mBAAmB;EACnB,cAAc;EACd,WAAW;EACX,kBAAkB;EAClB,UAAU;EACV,OAAO;EACP,aAAa;EACb,cAAc;CAChB;CACA,iBAAiB;EACf,SAAS;EACT,iBAAiB;EACjB,MAAM;EACN,aAAa;EACb,mBAAmB;EACnB,WAAW;CACb;CACA,eAAe;EACb,KAAK;EACL,QAAQ;EACR,SAAS;EACT,OAAO;CACT;CACA,aAAa;EACX,eAAe;EACf,aAAa;CACf;CACA,aAAa;EACX,OAAO;EACP,OAAO;EACP,KAAK;EACL,eAAe;EACf,gBAAgB;EAChB,SAAS;EACT,cAAc;EACd,SAAS;EACT,eAAe;EACf,UAAU;EACV,QAAQ;EACR,iBAAiB;EACjB,aAAa;EACb,OAAO;EACP,SAAS;EACT,UAAU;EACV,aAAa;EACb,YAAY;EACZ,OAAO;GACL,YAAY;GACZ,gBAAgB;GAChB,SAAS;GACT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,sBAAsB;EACtB,QAAQ;EACR,SAAS;EACT,WAAW;EACX,eAAe;EACf,QAAQ;EACR,mBAAmB;EACnB,oBAAoB;EACpB,QAAQ;EACR,gBAAgB;EAChB,aAAa;EACb,OAAO;EACP,iBAAiB;EACjB,kBAAkB;EAClB,QAAQ;EACR,gBAAgB;EAChB,kBAAkB;EAClB,SAAS;EACT,cAAc;EACd,sBAAsB;EACtB,SAAS;EACT,eAAe;EACf,mBAAmB;EACnB,cAAc;EACd,iBAAiB;EACjB,aAAa;EACb,iBAAiB;EACjB,kBAAkB;EAClB,WAAW;EACX,OAAO;GACL,MAAM;GACN,UAAU;GACV,SAAS;GACT,MAAM;GACN,UAAU;GACV,QAAQ;GACR,YAAY;EACd;EACA,UAAU;EACV,YAAY;EACZ,OAAO;EACP,MAAM;EACN,gBAAgB;EAChB,SAAS;EACT,aAAa;EACb,oBAAoB;EACpB,iBAAiB;CACnB;CACA,UAAU;EACR,aAAa;EACb,oBAAoB;CACtB;AACF"}
1
+ {"version":3,"file":"en.js","names":["enTranslations"],"sources":["../../src/translations/en.ts"],"sourcesContent":["export const enTranslations = {\n auditHistory: {\n actorFallback: 'system',\n loading: 'Loading activity history…',\n noActivityDescription:\n 'Changes to this item — who edited what and when — will appear here as they happen.',\n noActivityTitle: 'No activity yet',\n },\n confirmDialog: {\n cancel: 'Cancel',\n ok: 'OK',\n },\n contentPageView: {\n backToProducts: 'Back to Products',\n lastUpdated: 'Last updated:',\n loading: 'Loading content...',\n notFound: 'Content page not found',\n purpose:\n 'This is published product content — a guide, policy, or announcement for this product. Read it through, then head back to the catalog to explore more.',\n version: 'Version',\n },\n contentPages: {\n activityHistory: 'Activity History',\n author: 'Author',\n backTo: 'Back to',\n backToContentPages: 'Back to Content Pages',\n basicInformation: 'Basic Information',\n category: 'Category',\n columnActions: 'Actions',\n columnLastUpdated: 'Last Updated',\n columnPage: 'Page',\n columnSlug: 'Slug',\n columnStatus: 'Status',\n columnVersion: 'Version',\n confirmDelete: 'Are you sure you want to delete this content page?',\n contentEditor: 'Content Editor',\n contentFormat: 'Content Format',\n contentLastUpdated: 'Content Last Updated',\n contentPageNotFound: 'Content page not found',\n contentPages: 'content pages',\n contentPreview: 'Content Preview',\n createContentPage: 'Create Content Page',\n createContentPageSubtitle: 'Add a new content page',\n createPurpose:\n 'Write a new page users will see — a blog post, legal page, doc, or announcement. Choose markdown or HTML, set a clean slug and SEO fields, and leave it unpublished until you are ready to make it live.',\n created: 'Created',\n delete: 'Delete',\n draft: 'Draft',\n edit: 'Edit',\n editContentPage: 'Edit Content Page',\n editContentPageSubtitle: 'Update content page information',\n editPage: 'Edit Page',\n editPurpose:\n 'Update this page — rewrite the content, refine the SEO, or flip its published state. Each save records a new version, so you can change copy safely and only publish when it is ready for users.',\n enterPageTitle: 'Enter page title',\n excerpt: 'Excerpt',\n exportCsv: 'Export as CSV',\n extraDetailFields: 'Article Details',\n featured: 'Featured',\n filterAll: 'All',\n lastUpdated: 'Last Updated',\n loadingContentPage: 'Loading content page...',\n loadingContentPages: 'Loading content pages...',\n metadata: 'Metadata',\n navContentPages: 'Content Pages',\n newPage: 'New Page',\n next: 'Next',\n nextPage: 'Next page',\n noContentPagesFound: 'No content pages found',\n notFeatured: 'Not Featured',\n of: 'of',\n pageTitle: 'Title',\n pageType: 'Page Type',\n pageTypeHint:\n 'Sets the primary tag and which fields apply. Blog Posts and Press Releases get the extra Article Details section below.',\n prev: 'Prev',\n prevPage: 'Previous page',\n productAssociation: 'Product Association',\n productId: 'Product ID',\n productIdHint: 'Associate this content page with a specific product.',\n productIdPlaceholder: 'Optional product association',\n productName: 'Product Name',\n productSlug: 'Product Slug',\n published: 'Published',\n publishedAt: 'Publish Date',\n publishedOnly: 'Published Only',\n publishing: 'Publishing',\n purpose:\n 'Content pages are the published text your products show users — blog posts, legal pages, docs, and announcements. Write them in markdown or HTML, version each change, and publish only when they are ready to go live.',\n readingTime: 'Reading Time (min)',\n searchPlaceholder: 'Search content pages...',\n seoDescription: 'SEO Description',\n seoDescriptionPlaceholder: 'Brief description for search engine results',\n seoInformation: 'SEO Information',\n seoKeywords: 'SEO Keywords',\n seoMetadata: 'SEO Metadata',\n seoTitle: 'SEO Title',\n seoTitlePlaceholder: 'Page title for search engines',\n showing: 'Showing',\n slug: 'Slug',\n slugHint: 'Lowercase letters, numbers, and hyphens only. Cannot be changed after creation.',\n sortOrder: 'Sort Order',\n sortOrderHint: 'Lower numbers appear first. Default is 0.',\n steps: {\n back: 'Back to all content pages',\n backDesc: 'Return to the list to manage the rest of your content.',\n edit: 'Edit this page',\n editDesc:\n 'Update the content, SEO, or publish status. A new version is recorded on each save.',\n seo: 'Check SEO & metadata',\n seoDesc: 'Make sure the slug, title, and SEO fields are right before this page goes public.',\n },\n subtitle: 'Manage content pages and documentation',\n tags: 'Tags',\n thumbnail: 'Thumbnail URL',\n title: 'Content Pages',\n typeBlog: 'Blog Post',\n typeDocs: 'Documentation',\n typeLegal: 'Legal',\n typePage: 'General Page',\n typePress: 'Press Release',\n unpublished: 'Unpublished',\n updateContentPage: 'Update Content Page',\n version: 'Version',\n viewDetails: 'View details',\n visibility: 'Visibility',\n visibilityAuthenticated: 'Authenticated — signed-in users only',\n visibilityHint: 'Public is required for blog posts and legal pages to appear on the website.',\n visibilityInternal: 'Internal — staff/admin only',\n visibilityPublic: 'Public — visible to everyone',\n writeContentPlaceholder: 'Write your content in markdown...',\n },\n errorState: {\n deniedMessage: 'This area is restricted to platform administrators.',\n deniedTitle: \"You don't have access\",\n title: 'Something went wrong',\n },\n featureFlags: {\n activityHistory: 'Activity History',\n allCategories: 'All Categories',\n allProducts: 'All Products',\n allProductsGlobal: 'All products (global)',\n allStatuses: 'All Statuses',\n allowUserPreviewOptIn: 'Allow user preview opt-in',\n allowed: 'Allowed',\n auditTrail: 'Audit Trail',\n backToFeatureFlags: 'Back to Feature Flags',\n backToFlagDetails: 'Back to Flag Details',\n basicInformation: 'Basic Information',\n blocked: 'Blocked',\n category: 'Category',\n columnCategory: 'Category',\n columnKey: 'Key',\n columnName: 'Name',\n columnPreview: 'Preview',\n columnProduct: 'Product',\n columnStatus: 'Status',\n columnType: 'Type',\n columnUpdated: 'Updated',\n configuration: 'Configuration',\n createFeatureFlag: 'Create Feature Flag',\n createFirstFlagDescription:\n 'Create your first feature flag to control feature rollout across products.',\n createFlag: 'Create Flag',\n createFlagSubtitle:\n 'Define a new feature flag to control feature rollout across products and workspaces.',\n createPurpose:\n 'Pick a stable key, set whether the feature defaults on or off, and decide if users can opt in via Feature Previews. Once created, you can override the default per workspace — so you can ship code dark and flip it on when ready.',\n created: 'Created',\n createdBy: 'Created By',\n defaultValue: 'Default Value',\n delete: 'Delete',\n description: 'Description',\n descriptionPlaceholder: 'Describe what this feature flag controls...',\n edit: 'Edit',\n editFeatureFlag: 'Edit Feature Flag',\n editPurpose:\n 'Adjust how this flag behaves — its default value, status, category, and whether users can preview it. Saving takes effect immediately, so changing the default can switch the feature on or off for everyone who relies on it.',\n enabled: 'Enabled',\n exportCsv: 'Export as CSV',\n featureFlagNotFound: 'Feature flag not found',\n flagKey: 'Flag Key',\n flagKeyHint:\n 'Lowercase alphanumeric, separated by dots or hyphens. Cannot be changed after creation.',\n flagTotal: 'flag total',\n flagType: 'Flag Type',\n flagsTotal: 'flags total',\n lastUpdated: 'Last Updated',\n loadingFeatureFlag: 'Loading feature flag...',\n loadingFeatureFlags: 'Loading feature flags...',\n navFeatureFlags: 'Feature Flags',\n no: 'No',\n noFeatureFlagsFound: 'No feature flags found',\n noOverridesTitle: 'No workspace overrides',\n noWorkspaceOverrides:\n 'No workspace overrides configured. All workspaces use the platform default.',\n platform: 'Platform',\n platformAllProducts: 'Platform (all products)',\n platformOnly: 'Platform only',\n previewOptInHint: 'Users can opt-in to try this feature before it is fully rolled out',\n previewable: 'Previewable',\n product: 'Product',\n productFilter: 'Product',\n productHint:\n 'Scope this flag to a single product, or leave as Platform to make it available across all products.',\n saving: 'Saving...',\n scopeFilter: 'Scope',\n searchPlaceholder: 'Search by key, name, or description...',\n seedDefaults: 'Seed Defaults',\n seeding: 'Seeding...',\n status: 'Status',\n statusActive: 'Active',\n statusArchived: 'Archived',\n statusDisabled: 'Disabled',\n statusEnabled: 'Enabled',\n steps: {\n back: 'Back to all flags',\n backDesc: 'Return to the full list to manage other feature flags.',\n edit: 'Edit this flag',\n editDesc: 'Change its default value, status, category, or who can preview it.',\n overrides: 'Review workspace overrides',\n overridesDesc: 'Check which workspaces opt out of (or into) the platform default below.',\n },\n subtitle: 'Manage platform-wide feature flags.',\n subtitleScopedPrefix: 'Feature flags for',\n subtitleScopedSuffix: 'plus platform-wide flags.',\n tags: 'Tags',\n tagsHint: 'Press Enter or comma to add a tag.',\n title: 'Feature Flags',\n tryAdjustingFilters: 'Try adjusting your search or filters.',\n typeBoolean: 'Boolean',\n typeJson: 'JSON',\n typeNumber: 'Number',\n typeString: 'String',\n updateConfigurationFor: 'Update the configuration for',\n updateFlag: 'Update Flag',\n updated: 'Updated',\n updatedBy: 'Updated By',\n userOptIn: 'User Opt-In',\n viewDetails: 'View details',\n workspaceId: 'Workspace ID',\n workspaceOverrides: 'Workspace Overrides',\n yes: 'Yes',\n yesUsersCanOptIn: 'Yes — users can opt-in',\n },\n loadingState: {\n message: 'Loading...',\n },\n markdownEditor: {\n edit: 'Edit',\n nothingToPreview: 'Nothing to preview yet.',\n placeholder: {\n bold: 'bold text',\n code: 'code',\n heading: 'Heading',\n italic: 'italic text',\n linkText: 'link text',\n listItem: 'list item',\n quoteText: 'quote text',\n },\n preview: 'Preview',\n toolbar: {\n bold: 'Bold',\n bulletList: 'Bullet List',\n codeBlock: 'Code Block',\n heading: 'Heading',\n italic: 'Italic',\n link: 'Link',\n numberedList: 'Numbered List',\n quote: 'Quote',\n },\n },\n pressKit: {\n assetNotFound: 'Press kit asset not found',\n backTo: 'Back to',\n backToPressKit: 'Back to Press Kit',\n basicInformation: 'Basic Information',\n columnActions: 'Actions',\n columnAsset: 'Asset',\n columnCategory: 'Category',\n columnFile: 'File',\n columnUpdated: 'Updated',\n columnVisibility: 'Visibility',\n confirmDelete: 'Delete this press kit asset?',\n createAsset: 'Add Press Kit Asset',\n createAssetSubtitle: 'Add a downloadable logo, banner, brochure or document',\n createPurpose:\n 'Upload an asset others can download — a logo, banner, screenshot, brochure, or brand guide. Categorize it so it shows under the right tab, and set its visibility to control whether it is shared publicly or kept internal.',\n delete: 'Delete',\n descriptionPlaceholder: 'Short description / usage notes',\n details: 'Details',\n download: 'Download',\n edit: 'Edit',\n editAsset: 'Edit Press Kit Asset',\n editAssetSubtitle: 'Update press kit asset information',\n editPurpose:\n 'Update this asset — swap the file for a newer version, fix its title or description, recategorize it, or change its visibility. Saved changes apply wherever this asset is downloaded or linked.',\n exportCsv: 'Export as CSV',\n fieldCategory: 'Category',\n fieldDescription: 'Description',\n fieldFileName: 'File Name',\n fieldFileSize: 'File Size (bytes)',\n fieldFileUrl: 'File URL',\n fieldMimeType: 'MIME Type',\n fieldProduct: 'Product',\n fieldSlug: 'Slug',\n fieldSortOrder: 'Sort Order',\n fieldTags: 'Tags',\n fieldThumbnail: 'Thumbnail / Preview URL',\n fieldTitle: 'Title',\n fieldVersion: 'Version',\n fieldVisibility: 'Visibility',\n fileSection: 'File',\n fileUploadHint: 'Upload the file (drag & drop or click), or paste a public CDN/file URL below.',\n loadingAsset: 'Loading press kit asset...',\n loadingAssets: 'Loading press kit assets...',\n navPressKit: 'Press Kit',\n newAsset: 'New Asset',\n noAssetsFound: 'No press kit assets found',\n publishing: 'Publishing',\n purpose:\n 'The press kit is everything journalists, partners, and marketers need to represent your product — logos, banners, screenshots, brochures, and brand guides. Upload assets here, set their visibility, and share the public ones externally.',\n searchPlaceholder: 'Search press kit assets...',\n selectProduct: 'Select a product…',\n slugHint: 'Lowercase, numbers, hyphens. Cannot change after creation.',\n steps: {\n back: 'Back to the press kit',\n backDesc: 'Return to the full asset list to manage the rest of your kit.',\n download: 'Download the asset',\n downloadDesc: 'Grab the file to use it, or copy the file URL to share externally.',\n edit: 'Edit this asset',\n editDesc: 'Replace the file, change its category, or adjust who can see it.',\n },\n subtitle: 'Manage downloadable press & media assets',\n tags: 'Tags',\n title: 'Press Kit',\n titlePlaceholder: 'e.g. Logo — Dark',\n updateAsset: 'Update Asset',\n uploadCta: 'Drag & drop a file, or click to choose',\n uploadNeedsProduct: 'Select a product first',\n uploading: 'Uploading…',\n viewDetails: 'View details',\n visAuth: 'Authenticated — signed-in',\n visHint: 'Public is required to show on the website press page.',\n visInternal: 'Internal — staff',\n visPublic: 'Public — everyone',\n },\n productCatalog: {\n columnActions: 'Actions',\n columnProduct: 'Product',\n columnStatus: 'Status',\n columnWebsite: 'Website',\n emptyDescription: 'Check back soon for available platform products.',\n emptyDescriptionFiltered: 'Try adjusting your search or filters.',\n emptyTitle: 'No products found',\n loading: 'Loading products...',\n purpose:\n 'This is the public product catalog — explore every platform product available to you, see whether each is live or coming soon, and open one to view its full details and shortcuts.',\n refresh: 'Refresh',\n retry: 'Retry',\n searchPlaceholder: 'Search products...',\n statusActive: 'Active',\n statusAll: 'All Statuses',\n statusComingSoon: 'Coming Soon',\n subtitle: 'Browse available platform products',\n title: 'Products',\n viewDetails: 'View details',\n websiteEmpty: '-',\n },\n productCombobox: {\n loading: 'Loading…',\n noProductsFound: 'No products found.',\n none: 'None',\n placeholder: 'Select a product…',\n searchPlaceholder: 'Search products…',\n searching: 'Searching…',\n },\n productCommon: {\n add: 'Add',\n cancel: 'Cancel',\n refresh: 'Refresh',\n retry: 'Retry',\n },\n productUser: {\n footerVersion: 'Products v0.1.0',\n navProducts: 'Products',\n },\n productView: {\n about: 'About',\n added: 'Added',\n app: 'App',\n appleAppStore: 'Apple App Store',\n backToProducts: 'Back to Products',\n contact: 'Contact',\n contactEmail: 'Contact Email',\n details: 'Details',\n documentation: 'Documentation',\n download: 'Download',\n github: 'GitHub',\n googlePlayStore: 'Google Play Store',\n lastUpdated: 'Last Updated',\n links: 'Links',\n loading: 'Loading product details...',\n notFound: 'Product not found',\n socialMedia: 'Social Media',\n statusPage: 'Status Page',\n steps: {\n browseMore: 'Browse more products',\n browseMoreDesc: 'Return to the catalog to discover other platform products.',\n getHelp: 'Get in touch',\n getHelpDesc: 'Reach out to the team with questions or for support.',\n openApp: 'Open the app',\n openAppDesc: 'Jump straight into the product and start using it.',\n readDocs: 'Read the documentation',\n readDocsDesc: 'Learn how it works and what it can do.',\n },\n supportEmail: 'Support Email',\n },\n products: {\n accessDeniedDetail: 'The product catalog is restricted to platform administrators.',\n activate: 'Activate',\n active: 'active',\n activeProducts: 'Active Products',\n activityHistory: 'Activity History',\n addPlan: 'Add Plan',\n addResourceLink: 'Add Resource Link',\n addSocialLink: 'Add Social Link',\n address: 'Address',\n allProducts: 'All products',\n allStatuses: 'All Statuses',\n appStoreLinks: 'App Store Links',\n appUrl: 'App URL',\n appleAppStore: 'Apple App Store',\n appleAppStoreUrl: 'Apple App Store URL',\n backTo: 'Back to',\n backToProducts: 'Back to Products',\n basicInformation: 'Basic Information',\n betaProducts: 'Beta Products',\n columnActions: 'Actions',\n columnCategory: 'Category',\n columnProduct: 'Product',\n columnStatus: 'Status',\n columnVersion: 'Version',\n confirmDeleteProduct: 'Are you sure you want to delete this product?',\n contactAddress: 'Contact Address',\n contactEmail: 'Contact Email',\n contactInformation: 'Contact Information',\n contactPhone: 'Contact Phone',\n contentPages: 'Content Pages',\n createNewFeature: '+ Create new feature',\n createNewPlan: 'Create New Plan',\n createPlan: 'Create Plan',\n createProduct: 'Create Product',\n createProductSubtitle: 'Add a new product to the platform',\n createPurpose:\n 'Register a new product so it can appear in the catalog. Give it a name and slug, set its launch status, and add as much detail as you have — you can always come back and refine it later.',\n createYourFirstFeature: 'Create your first feature',\n created: 'Created',\n createdOn: 'Created',\n currency: 'Currency',\n deactivate: 'Deactivate',\n delete: 'Delete',\n description: 'Description',\n documentationUrl: 'Documentation URL',\n edit: 'Edit',\n editPlan: 'Edit Plan',\n editProduct: 'Edit Product',\n enterProductDescription: 'Enter product description',\n enterProductName: 'Enter product name',\n enterSecretKeyPlaceholder: 'Enter secret key (leave empty to keep existing)',\n enterprisePlans: 'Enterprise Plans',\n exportCsv: 'Export as CSV',\n failedToCreateFeature: 'Failed to create feature',\n failedToLoadPlans: 'Failed to load plans',\n failedToSavePlan: 'Failed to save plan',\n featureNamePlaceholder: 'Feature name',\n featuresQuotas: 'Features / Quotas',\n featuresSelected: 'feature(s) selected',\n footerVersion: 'Product Management v0.1.0',\n githubUrl: 'GitHub URL',\n googlePlayStore: 'Google Play Store',\n googlePlayStoreUrl: 'Google Play Store URL',\n hiddenSetViaEdit: 'Hidden — set via Edit page',\n inTestingPhase: 'In testing phase',\n integrations: 'Integrations',\n keywords: 'Keywords',\n lastUpdated: 'Last Updated',\n loadingPlans: 'Loading plans...',\n loadingProduct: 'Loading product...',\n loadingProductDetails: 'Loading product details...',\n loadingProducts: 'Loading products...',\n logoUrl: 'Logo URL',\n manageContentPages: 'Manage content pages associated with this product.',\n metadata: 'Metadata',\n monthly: 'Monthly',\n monthlyPlans: 'Monthly Plans',\n name: 'Name',\n navProducts: 'Products',\n next: 'Next',\n nextPage: 'Next page',\n noFeaturesAssigned: 'No features assigned',\n noFeaturesCreated: 'No features created yet.',\n noMatchingProducts: 'No products match your search',\n noPricingPlans: 'No pricing plans yet',\n noProductsFound: 'No products found',\n notConfigured: 'Not configured',\n of: 'of',\n ogImage: 'OG Image',\n ogImageHint: 'Open Graph image used when sharing on social media.',\n ogImagePreview: 'OG Image preview',\n ogImageUrl: 'OG Image URL',\n phone: 'Phone',\n planCurrencyBase: 'Plans are priced in USD, the billing base currency.',\n planCurrencyLocked: \"A plan's currency can't be changed after it is created.\",\n planDuration: 'Duration',\n planName: 'Name',\n planPrice: 'Price',\n platform: 'Platform',\n popular: 'Popular',\n prev: 'Prev',\n prevPage: 'Previous page',\n pricingPlans: 'Pricing Plans',\n productName: 'Product Name',\n productNotFound: 'Product not found',\n products: 'products',\n purpose:\n 'This is your product registry — the single source of truth for every product on the platform. Create products, set their status (draft, waitlist, coming soon, active), and manage the details users see in the catalog.',\n recaptcha: '(reCAPTCHA)',\n recaptchaDescription:\n 'reCAPTCHA v2 keys for bot protection on website forms (newsletter, contact). Site key is public, secret key is used for server-side verification only.',\n recaptchaSecretKey: 'reCAPTCHA Secret Key',\n recaptchaSecretKeyHint: 'Secret key — server-side only, never exposed via public API',\n recaptchaSiteKey: 'reCAPTCHA Site Key',\n recaptchaSiteKeyHint:\n 'Public key — exposed in frontend. Register at google.com/recaptcha/admin',\n removeResourceLink: 'Remove resource link',\n removeSocialLink: 'Remove social link',\n requiredForProductSwitcher: '(Required for product switcher)',\n resource: 'Resource',\n resourceLinks: 'Resource Links',\n searchPlaceholder: 'Search products...',\n seoDescription: 'SEO Description',\n seoDescriptionPlaceholder: 'Brief description for search engines',\n seoKeywords: 'SEO Keywords',\n seoKeywordsHint: 'Comma-separated keywords for search engine optimization.',\n seoMetadata: 'SEO Metadata',\n seoTitle: 'SEO Title',\n showing: 'Showing',\n slug: 'Slug',\n slugHint: 'Lowercase letters, numbers, and hyphens only. Cannot be changed after creation.',\n socialMediaLinks: 'Social Media Links',\n status: 'Status',\n statusActive: 'Active',\n statusBeta: 'Beta',\n statusBreakdown: 'Status Breakdown',\n statusComingSoon: 'Coming Soon',\n statusDeprecated: 'Deprecated',\n statusDraft: 'Draft',\n statusInactive: 'Inactive',\n statusPageUrl: 'Status Page URL',\n statusWaitlist: 'Waitlist',\n steps: {\n content: 'Manage content pages',\n contentDesc: 'Add guides, policies, or announcements shown for this product.',\n edit: 'Edit product details',\n editDesc: 'Update the name, description, status, links and metadata.',\n status: 'Confirm the launch status',\n statusDesc:\n 'Make sure draft / waitlist / coming-soon / active reflects reality before users see it.',\n },\n subtitle: 'Manage platform products and features',\n supportEmail: 'Support Email',\n tags: 'Tags',\n tagsHint: 'Press Enter or comma to add a tag.',\n timestamps: 'Timestamps',\n title: 'Products',\n totalProducts: 'Total Products',\n updatePlan: 'Update Plan',\n updateProduct: 'Update Product',\n updateProductInfo: 'Update product information',\n url: 'URL',\n urlsAndLinks: 'URLs & Links',\n viewContentPages: 'View Content Pages',\n viewDetails: 'View details',\n websiteUrl: 'Website URL',\n yearly: 'Yearly',\n yearlyPlans: 'Yearly Plans',\n },\n searchInput: {\n clearAriaLabel: 'Clear search',\n placeholder: 'Search...',\n },\n shortcuts: {\n allCategories: 'All Categories',\n allStatus: 'All Status',\n backToShortcut: 'Back to Shortcut',\n backToShortcuts: 'Back to Shortcuts',\n basicInformation: 'Basic Information',\n category: 'Category',\n columnActions: 'Actions',\n columnCategory: 'Category',\n columnEnabled: 'Enabled',\n columnEvent: 'Event',\n columnLabel: 'Label',\n columnProduct: 'Product',\n columnShortcut: 'Shortcut',\n confirmDelete: 'Are you sure you want to delete this shortcut?',\n confirmSeedDefaults: 'This will create default global shortcuts. Continue?',\n createKeyboardShortcut: 'Create Keyboard Shortcut',\n createPurpose:\n 'Bind a key combination (or sequence) to an event your app listens for. Add Mac and Windows/Linux variants if the keys differ, pick a category so it groups nicely, and scope it to one product or leave it global.',\n createShortcut: 'Create Shortcut',\n createShortcutSubtitle: 'Add a new keyboard shortcut for the platform',\n created: 'Created',\n defaultKey: 'Default Key',\n delete: 'Delete',\n description: 'Description',\n descriptionPlaceholder: 'Enter a description for this shortcut',\n disable: 'Disable',\n disabled: 'Disabled',\n edit: 'Edit',\n editKeyboardShortcut: 'Edit Keyboard Shortcut',\n editPurpose:\n 'Adjust this shortcut — rebind its keys, change the event it fires, update per-platform variants, or move it to a different category. Changes apply across the products that use this shortcut.',\n editShortcutSubtitle: 'Update the keyboard shortcut configuration',\n enable: 'Enable',\n enabled: 'Enabled',\n eventName: 'Event Name',\n eventNameHint: 'The event name to emit when this shortcut is triggered.',\n global: 'Global',\n globalAllProducts: 'Global (All Products)',\n globalShortcutHint: 'Leave empty for global shortcuts that work across all products.',\n goBack: 'Go Back',\n keyCombination: 'Key Combination',\n keySequence: 'Key Sequence',\n label: 'Label',\n loadingShortcut: 'Loading shortcut...',\n loadingShortcuts: 'Loading keyboard shortcuts...',\n macKey: 'Mac Key',\n macKeyOverride: 'Mac Key Override',\n noShortcutsFound: 'No keyboard shortcuts found',\n options: 'Options',\n platformKeys: 'Platform Keys',\n platformSpecificKeys: 'Platform-Specific Keys (Optional)',\n product: 'Product',\n sameAsDefault: 'Same as default',\n searchPlaceholder: 'Search shortcuts...',\n seedDefaults: 'Seed Defaults',\n shortcutDetails: 'Shortcut Details',\n shortcutKey: 'Shortcut Key',\n shortcutKeyHint: 'Use space for sequences (g h), use + for modifiers (Cmd+K, Ctrl+Shift+P)',\n shortcutNotFound: 'Shortcut not found',\n sortOrder: 'Sort Order',\n steps: {\n back: 'Back to all shortcuts',\n backDesc: 'Return to the list to manage the rest of your shortcuts.',\n disable: 'Disable this shortcut',\n edit: 'Edit this shortcut',\n editDesc: 'Change the key combination, event, category, or per-platform keys.',\n enable: 'Enable this shortcut',\n toggleDesc: 'Turn it on or off without deleting it — useful while testing.',\n },\n subtitle: 'Manage keyboard shortcuts across all Burdenoff products',\n timestamps: 'Timestamps',\n title: 'Keyboard Shortcuts',\n type: 'Type',\n updateShortcut: 'Update Shortcut',\n updated: 'Updated',\n viewDetails: 'View details',\n windowsKeyOverride: 'Windows Key Override',\n windowsLinuxKey: 'Windows/Linux Key',\n },\n tagInput: {\n placeholder: 'Add a tag…',\n removeTagAriaLabel: 'Remove tag {{tag}}',\n },\n};\n"],"mappings":";AAAA,IAAaA,IAAiB;CAC5B,cAAc;EACZ,eAAe;EACf,SAAS;EACT,uBACE;EACF,iBAAiB;CACnB;CACA,eAAe;EACb,QAAQ;EACR,IAAI;CACN;CACA,iBAAiB;EACf,gBAAgB;EAChB,aAAa;EACb,SAAS;EACT,UAAU;EACV,SACE;EACF,SAAS;CACX;CACA,cAAc;EACZ,iBAAiB;EACjB,QAAQ;EACR,QAAQ;EACR,oBAAoB;EACpB,kBAAkB;EAClB,UAAU;EACV,eAAe;EACf,mBAAmB;EACnB,YAAY;EACZ,YAAY;EACZ,cAAc;EACd,eAAe;EACf,eAAe;EACf,eAAe;EACf,eAAe;EACf,oBAAoB;EACpB,qBAAqB;EACrB,cAAc;EACd,gBAAgB;EAChB,mBAAmB;EACnB,2BAA2B;EAC3B,eACE;EACF,SAAS;EACT,QAAQ;EACR,OAAO;EACP,MAAM;EACN,iBAAiB;EACjB,yBAAyB;EACzB,UAAU;EACV,aACE;EACF,gBAAgB;EAChB,SAAS;EACT,WAAW;EACX,mBAAmB;EACnB,UAAU;EACV,WAAW;EACX,aAAa;EACb,oBAAoB;EACpB,qBAAqB;EACrB,UAAU;EACV,iBAAiB;EACjB,SAAS;EACT,MAAM;EACN,UAAU;EACV,qBAAqB;EACrB,aAAa;EACb,IAAI;EACJ,WAAW;EACX,UAAU;EACV,cACE;EACF,MAAM;EACN,UAAU;EACV,oBAAoB;EACpB,WAAW;EACX,eAAe;EACf,sBAAsB;EACtB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,eAAe;EACf,YAAY;EACZ,SACE;EACF,aAAa;EACb,mBAAmB;EACnB,gBAAgB;EAChB,2BAA2B;EAC3B,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,UAAU;EACV,qBAAqB;EACrB,SAAS;EACT,MAAM;EACN,UAAU;EACV,WAAW;EACX,eAAe;EACf,OAAO;GACL,MAAM;GACN,UAAU;GACV,MAAM;GACN,UACE;GACF,KAAK;GACL,SAAS;EACX;EACA,UAAU;EACV,MAAM;EACN,WAAW;EACX,OAAO;EACP,UAAU;EACV,UAAU;EACV,WAAW;EACX,UAAU;EACV,WAAW;EACX,aAAa;EACb,mBAAmB;EACnB,SAAS;EACT,aAAa;EACb,YAAY;EACZ,yBAAyB;EACzB,gBAAgB;EAChB,oBAAoB;EACpB,kBAAkB;EAClB,yBAAyB;CAC3B;CACA,YAAY;EACV,eAAe;EACf,aAAa;EACb,OAAO;CACT;CACA,cAAc;EACZ,iBAAiB;EACjB,eAAe;EACf,aAAa;EACb,mBAAmB;EACnB,aAAa;EAC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AQ;GACR,UAAU;GACV,UAAU;GACV,WAAW;EACb;EACA,SAAS;EACT,SAAS;GACP,MAAM;GACN,YAAY;GACZ,WAAW;GACX,SAAS;GACT,QAAQ;GACR,MAAM;GACN,cAAc;GACd,OAAO;EACT;CACF;CACA,UAAU;EACR,eAAe;EACf,QAAQ;EACR,gBAAgB;EAChB,kBAAkB;EAClB,eAAe;EACf,aAAa;EACb,gBAAgB;EAChB,YAAY;EACZ,eAAe;EACf,kBAAkB;EAClB,eAAe;EACf,aAAa;EACb,qBAAqB;EACrB,eACE;EACF,QAAQ;EACR,wBAAwB;EACxB,SAAS;EACT,UAAU;EACV,MAAM;EACN,WAAW;EACX,mBAAmB;EACnB,aACE;EACF,WAAW;EACX,eAAe;EACf,kBAAkB;EAClB,eAAe;EACf,eAAe;EACf,cAAc;EACd,eAAe;EACf,cAAc;EACd,WAAW;EACX,gBAAgB;EAChB,WAAW;EACX,gBAAgB;EAChB,YAAY;EACZ,cAAc;EACd,iBAAiB;EACjB,aAAa;EACb,gBAAgB;EAChB,cAAc;EACd,eAAe;EACf,aAAa;EACb,UAAU;EACV,eAAe;EACf,YAAY;EACZ,SACE;EACF,mBAAmB;EACnB,eAAe;EACf,UAAU;EACV,OAAO;GACL,MAAM;GACN,UAAU;GACV,UAAU;GACV,cAAc;GACd,MAAM;GACN,UAAU;EACZ;EACA,UAAU;EACV,MAAM;EACN,OAAO;EACP,kBAAkB;EAClB,aAAa;EACb,WAAW;EACX,oBAAoB;EACpB,WAAW;EACX,aAAa;EACb,SAAS;EACT,SAAS;EACT,aAAa;EACb,WAAW;CACb;CACA,gBAAgB;EACd,eAAe;EACf,eAAe;EACf,cAAc;EACd,eAAe;EACf,kBAAkB;EAClB,0BAA0B;EAC1B,YAAY;EACZ,SAAS;EACT,SACE;EACF,SAAS;EACT,OAAO;EACP,mBAAmB;EACnB,cAAc;EACd,WAAW;EACX,kBAAkB;EAClB,UAAU;EACV,OAAO;EACP,aAAa;EACb,cAAc;CAChB;CACA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cAAc;EACd,kBAAkB;EAClB,aAAa;EACb,YAAY;EACZ,QAAQ;EACR,aAAa;CACf;CACA,aAAa;EACX,gBAAgB;EAChB,aAAa;CACf;CACA,WAAW;EACT,eAAe;EACf,WAAW;EACX,gBAAgB;EAChB,iBAAiB;EACjB,kBAAkB;EAClB,UAAU;EACV,eAAe;EACf,gBAAgB;EAChB,eAAe;EACf,aAAa;EACb,aAAa;EACb,eAAe;EACf,gBAAgB;EAChB,eAAe;EACf,qBAAqB;EACrB,wBAAwB;EACxB,eACE;EACF,gBAAgB;EAChB,wBAAwB;EACxB,SAAS;EACT,YAAY;EACZ,QAAQ;EACR,aAAa;EACb,wBAAwB;EACxB,SAAS;EACT,UAAU;EACV,MAAM;EACN,sBAAsB;EACtB,aACE;EACF,sBAAsB;EACtB,QAAQ;EACR,SAAS;EACT,WAAW;EACX,eAAe;EACf,QAAQ;EACR,mBAAmB;EACnB,oBAAoB;EACpB,QAAQ;EACR,gBAAgB;EAChB,aAAa;EACb,OAAO;EACP,iBAAiB;EACjB,kBAAkB;EAClB,QAAQ;EACR,gBAAgB;EAChB,kBAAkB;EAClB,SAAS;EACT,cAAc;EACd,sBAAsB;EACtB,SAAS;EACT,eAAe;EACf,mBAAmB;EACnB,cAAc;EACd,iBAAiB;EACjB,aAAa;EACb,iBAAiB;EACjB,kBAAkB;EAClB,WAAW;EACX,OAAO;GACL,MAAM;GACN,UAAU;GACV,SAAS;GACT,MAAM;GACN,UAAU;GACV,QAAQ;GACR,YAAY;EACd;EACA,UAAU;EACV,YAAY;EACZ,OAAO;EACP,MAAM;EACN,gBAAgB;EAChB,SAAS;EACT,aAAa;EACb,oBAAoB;EACpB,iBAAiB;CACnB;CACA,UAAU;EACR,aAAa;EACb,oBAAoB;CACtB;AACF"}
package/package.json CHANGED
@@ -1,6 +1,10 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-product",
3
- "version": "2026.1126.1",
3
+ "version": "2026.1201.1",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "git+https://github.com/Algoshred/microfe-product.git"
7
+ },
4
8
  "description": "Product management microfrontend for Burdenoff products",
5
9
  "type": "module",
6
10
  "files": [