1import{r as C,j as e}from"./vendor-react-BzXAup97.js";import{A as U}from"./AdminPageWrapper-Uq3LcqGL.js";import{C as o,a as m}from"./Card-Czp7NDRY.js";import{L as d,S as h,B as w}from"./app-BcVXXONv.js";import{I as _}from"./Input-Cg7VKGAS.js";import{T as E,a as B,b as x,c as f}from"./Tabs-BqjmlK_T.js";import{c as V,H as q,L as M}from"./vendor-inertia-C6ujBw2R.js";import{bf as W,bK as Y,aU as g,aQ as F,y as I,aP as S,Z as P,b0 as O,W as R,A as G,a2 as $}from"./vendor-lucide-1jXEw7Bh.js";import"./AuthenticatedLayout-CluqGnv5.js";import"./vendor-radix-Bha8dDJB.js";import"./vendor-tiptap-CF47o3zI.js";import"./pushNotifications-BVHqr3g7.js";import"./vendor-firebase-CCnLmBjb.js";import"./UpgradeModal-H1XLTufz.js";import"./upgradeFeatureCatalog-DQsdO-8d.js";import"./AppModal-Bf_aZlPN.js";import"./transition-Cx0OHrt1.js";import"./dialog-D_ql7LVY.js";import"./Sheet-BZ90mOOl.js";import"./rememberedProfile-pkm-wW4S.js";import"./vendor-framer-DOQvBjnK.js";import"./vendor-dnd-aV9yv6Pg.js";import"./useRoutePulse-Cu98qn9H.js";import"./vendor-ably-DQ6H01js.js";import"./vendor-recharts-MX9_f30n.js";import"./vendor-assistant-ui-rpsJ9Qdc.js";import"./vendor-voip-BKCre8sD.js";function H(s){return s?{name:s.name,slug:s.slug,paddle_price_id:s.paddle_price_id??"",max_notes:s.max_notes,max_storage_mb:s.max_storage_mb,ai_chat_tokens_monthly:s.ai_chat_tokens_monthly??0,voice_transcript_tokens_monthly:s.voice_transcript_tokens_monthly??0,ai_enabled:s.ai_enabled,ai_chat_enabled:s.ai_chat_enabled,voice_enabled:s.voice_enabled,attach_enabled:s.attach_enabled,ads_enabled:s.ads_enabled,web_clipper_enabled:s.web_clipper_enabled,pdf_enabled:s.pdf_enabled,office_docs_enabled:s.office_docs_enabled??!1,office_sheets_enabled:s.office_sheets_enabled??!1,office_slides_enabled:s.office_slides_enabled??!1,office_slides_limit_monthly:s.office_slides_limit_monthly??-1,office_slides_limit_yearly:s.office_slides_limit_yearly??-1,office_diagrams_enabled:s.office_diagrams_enabled??!1,office_pdf_enabled:s.office_pdf_enabled??!1,office_pdf_create_limit_monthly:s.office_pdf_create_limit_monthly??-1,office_pdf_create_limit_yearly:s.office_pdf_create_limit_yearly??-1,office_pdf_edit_limit_monthly:s.office_pdf_edit_limit_monthly??-1,office_pdf_edit_limit_yearly:s.office_pdf_edit_limit_yearly??-1,workspace_docs_limit_monthly:s.workspace_docs_limit_monthly??-1,workspace_docs_limit_yearly:s.workspace_docs_limit_yearly??-1,office_pdf_export_enabled:s.office_pdf_export_enabled??!1,office_xlsx_export_enabled:s.office_xlsx_export_enabled??!1,office_pptx_export_enabled:s.office_pptx_export_enabled??!1,office_ai_enabled:s.office_ai_enabled??!1,slides_ai_enabled:s.slides_ai_enabled??!1,autopilot_ai_enabled:s.autopilot_ai_enabled??!1,office_ai_professor_enabled:s.office_ai_professor_enabled??!1,office_ai_image_limit_monthly:s.office_ai_image_limit_monthly??-1,office_ai_image_limit_yearly:s.office_ai_image_limit_yearly??-1,mail_enabled:s.mail_enabled,calendar_enabled:s.calendar_enabled,contacts_enabled:s.contacts_enabled,voip_enabled:s.voip_enabled??!1,sms_enabled:s.sms_enabled??!1,shared_enabled:s.shared_enabled,drawpad_enabled:s.drawpad_enabled,reminders_enabled:s.reminders_enabled,projects_enabled:s.projects_enabled,quick_todos_enabled:s.quick_todos_enabled,task_management_enabled:s.task_management_enabled,realtime_chat_enabled:s.realtime_chat_enabled,biometric_enabled:s.biometric_enabled,voice_transcript_enabled:s.voice_transcript_enabled,kanban_enabled:s.kanban_enabled,meetings_enabled:s.meetings_enabled??!1,meetings_limit_minutes_monthly:s.meetings_limit_minutes_monthly??-1,meetings_max_participants:s.meetings_max_participants??-1,autopilot_scheduled_shares_limit_monthly:s.autopilot_scheduled_shares_limit_monthly??-1,autopilot_scheduled_shares_limit_yearly:s.autopilot_scheduled_shares_limit_yearly??-1,social_media_enabled:s.social_media_enabled??!0,creative_suite_enabled:s.creative_suite_enabled??!0,creative_suite_create_limit_monthly:s.creative_suite_create_limit_monthly??-1,creative_suite_create_limit_yearly:s.creative_suite_create_limit_yearly??-1,per_user_priced:s.per_user_priced,is_popular:s.is_popular,min_seats:s.min_seats??1,max_seats:s.max_seats??"",price_monthly:s.price_monthly,price_yearly:s.price_yearly,discount_yearly_percent:s.discount_yearly_percent??"",sort_order:s.sort_order,mybusiness_enabled:s.mybusiness_enabled??!1,mb_messaging_enabled:s.mb_messaging_enabled??!1,mb_analytics_enabled:s.mb_analytics_enabled??!1,mb_analytics_full_history:s.mb_analytics_full_history??!1,mb_products_enabled:s.mb_products_enabled??!1,mb_posts_enabled:s.mb_posts_enabled??!1,mb_landing_basic_enabled:s.mb_landing_basic_enabled??!1,mb_landing_builder_enabled:s.mb_landing_builder_enabled??!1,mb_landing_custom_html_enabled:s.mb_landing_custom_html_enabled??!1,mb_landing_animations_enabled:s.mb_landing_animations_enabled??!1,mb_custom_domain_enabled:s.mb_custom_domain_enabled??!1,mb_subdomain_enabled:s.mb_subdomain_enabled??!1,mb_appointments_enabled:s.mb_appointments_enabled??!1,mb_lead_forms_enabled:s.mb_lead_forms_enabled??!1,mb_locations_enabled:s.mb_locations_enabled??!1,mb_team_enabled:s.mb_team_enabled??!1,mb_verified_badge_enabled:s.mb_verified_badge_enabled??!1,mb_featured_placement_enabled:s.mb_featured_placement_enabled??!1,mb_owner_reply_enabled:s.mb_owner_reply_enabled??!1,mb_business_website_enabled:s.mb_business_website_enabled??!1,mb_business_email_enabled:s.mb_business_email_enabled??!1,mb_notify_email_enabled:s.mb_notify_email_enabled??!0,mb_notify_owner_telegram_enabled:s.mb_notify_owner_telegram_enabled??!1,mb_notify_weekly_digest_enabled:s.mb_notify_weekly_digest_enabled??!1,mb_max_businesses:s.mb_max_businesses??-1,mb_max_ph
1otos:s.mb_max_photos??-1,mb_max_products:s.mb_max_products??-1,mb_max_posts_per_month:s.mb_max_posts_per_month??-1,mb_max_locations:s.mb_max_locations??-1,mb_max_team_members:s.mb_max_team_members??-1,mb_max_custom_domains:s.mb_max_custom_domains??-1,mb_max_lead_forms:s.mb_max_lead_forms??-1,mb_max_services:s.mb_max_services??-1,mb_max_staff:s.mb_max_staff??-1,mb_max_appointments_per_month:s.mb_max_appointments_per_month??-1,mb_max_messages_per_month:s.mb_max_messages_per_month??-1,mb_max_leads_per_month:s.mb_max_leads_per_month??-1,mb_max_attachment_mb:s.mb_max_attachment_mb??-1,mb_analytics_retention_days:s.mb_analytics_retention_days??-1,mb_max_page_versions:s.mb_max_page_versions??-1}:{name:"",slug:"",paddle_price_id:"",max_notes:-1,max_storage_mb:5120,ai_chat_tokens_monthly:0,voice_transcript_tokens_monthly:0,ai_enabled:!1,ai_chat_enabled:!1,voice_enabled:!1,attach_enabled:!1,ads_enabled:!1,web_clipper_enabled:!1,pdf_enabled:!1,office_docs_enabled:!1,office_sheets_enabled:!1,office_slides_enabled:!1,office_slides_limit_monthly:-1,office_slides_limit_yearly:-1,office_diagrams_enabled:!1,office_pdf_enabled:!1,office_pdf_create_limit_monthly:-1,office_pdf_create_limit_yearly:-1,office_pdf_edit_limit_monthly:-1,office_pdf_edit_limit_yearly:-1,workspace_docs_limit_monthly:-1,workspace_docs_limit_yearly:-1,office_pdf_export_enabled:!1,office_xlsx_export_enabled:!1,office_pptx_export_enabled:!1,office_ai_enabled:!1,slides_ai_enabled:!1,autopilot_ai_enabled:!1,office_ai_professor_enabled:!1,office_ai_image_limit_monthly:-1,office_ai_image_limit_yearly:-1,mail_enabled:!1,calendar_enabled:!1,contacts_enabled:!1,voip_enabled:!1,sms_enabled:!1,shared_enabled:!1,drawpad_enabled:!1,reminders_enabled:!1,projects_enabled:!1,quick_todos_enabled:!1,task_management_enabled:!1,realtime_chat_enabled:!1,biometric_enabled:!1,voice_transcript_enabled:!1,kanban_enabled:!1,meetings_enabled:!1,meetings_limit_minutes_monthly:-1,meetings_max_participants:-1,autopilot_scheduled_shares_limit_monthly:-1,autopilot_scheduled_shares_limit_yearly:-1,social_media_enabled:!0,creative_suite_enabled:!0,creative_suite_create_limit_monthly:-1,creative_suite_create_limit_yearly:-1,per_user_priced:!1,is_popular:!1,min_seats:1,max_seats:"",price_monthly:"0",price_yearly:"0",discount_yearly_percent:"",sort_order:0,mybusiness_enabled:!1,mb_messaging_enabled:!1,mb_analytics_enabled:!1,mb_analytics_full_history:!1,mb_products_enabled:!1,mb_posts_enabled:!1,mb_landing_basic_enabled:!1,mb_landing_builder_enabled:!1,mb_landing_custom_html_enabled:!1,mb_landing_animations_enabled:!1,mb_custom_domain_enabled:!1,mb_subdomain_enabled:!1,mb_appointments_enabled:!1,mb_lead_forms_enabled:!1,mb_locations_enabled:!1,mb_team_enabled:!1,mb_verified_badge_enabled:!1,mb_featured_placement_enabled:!1,mb_owner_reply_enabled:!1,mb_business_website_enabled:!1,mb_business_email_enabled:!1,mb_notify_email_enabled:!0,mb_notify_owner_telegram_enabled:!1,mb_notify_weekly_digest_enabled:!1,mb_max_businesses:-1,mb_max_photos:-1,mb_max_products:-1,mb_max_posts_per_month:-1,mb_max_locations:-1,mb_max_team_members:-1,mb_max_custom_domains:-1,mb_max_lead_forms:-1,mb_max_services:-1,mb_max_staff:-1,mb_max_appointments_per_month:-1,mb_max_messages_per_month:-1,mb_max_leads_per_month:-1,mb_max_attachment_mb:-1,mb_analytics_retention_days:-1,mb_max_page_versions:-1}}function je({plan:s}){const c=s===null,{data:i,setData:t,post:y,put:u,processing:p,errors:b}=V(H(s)),[j,v]=C.useState("general"),D={name:"general",slug:"general",paddle_price_id:"general",sort_order:"general",price_monthly:"pricing",price_yearly:"pricing",discount_yearly_percent:"pricing",per_user_priced:"pricing",is_popular:"pricing",min_seats:"pricing",max_seats:"pricing",trial_days:"pricing",max_notes:"pricing",max_storage_mb:"pricing",ai_chat_tokens_monthly:"pricing",voice_transcript_tokens_monthly:"pricing",ai_enabled:"productivity",ai_chat_enabled:"productivity",pdf_enabled:"productivity",attach_enabled:"productivity",biometric_enabled:"productivity",calendar_enabled:"productivity",contacts_enabled:"productivity",projects_enabled:"productivity",kanban_enabled:"productivity",task_management_enabled:"productivity",drawpad_enabled:"productivity",reminders_enabled:"productivity",quick_todos_enabled:"productivity",ads_enabled:"productivity",web_clipper_enabled:"productivity",mail_enabled:"communication",realtime_chat_enabled:"communication",voip_enabled:"communication",sms_enabled:"communication",shared_enabled:"communication",voice_enabled:"communication",voice_transcript_enabled:"communication",meetings_enabled:"communication",meetings_limit_minutes_monthly:"communication",meetings_max_participants:"communication",autopilot_scheduled_shares_limit_monthly:"communication",autopilot_scheduled_shares_limit_yearly:"communication",social_media_enabled:"communication",creative_suite_enabled:"communication",creative_suite_create_limit_monthly:"communication",creative_suite_create_limit_yearly:"communication",office_docs_enabled:"office",office_sheets_enabled:"office",office_slides_enabled:"office",office_diagrams_enabled:"office",office_pdf_enabled:"office",office_ebook_enabled:"office",office_forms_enabled:"office",office_ai_enabled:"office",slides_ai_enabled:"office",autopilot_ai_enabled:"office",office_ai_professor_enabled:"office",office_slides_limit_monthly:"office",office_slides_limit_yearly:"office",office_pdf_create_limit_monthly:"office",office_pdf_create_limit_yearly:"office",office_pdf_edit_limit_monthly:"office",office_pdf_edit_limit_yearly:"office",workspace_docs_limit_monthly:"office",workspace_docs_limit_yearly:"office",office_ai_image_limit_monthly:"office",office_ai_image_limit_yearly:"office",office_pdf_export_enabled:"office",office_xlsx_exp
1ort_enabled:"office",office_pptx_export_enabled:"office",mybusiness_enabled:"mybusiness",mb_messaging_enabled:"mybusiness",mb_analytics_enabled:"mybusiness",mb_analytics_full_history:"mybusiness",mb_products_enabled:"mybusiness",mb_posts_enabled:"mybusiness",mb_landing_basic_enabled:"mybusiness",mb_landing_builder_enabled:"mybusiness",mb_landing_custom_html_enabled:"mybusiness",mb_landing_animations_enabled:"mybusiness",mb_custom_domain_enabled:"mybusiness",mb_subdomain_enabled:"mybusiness",mb_appointments_enabled:"mybusiness",mb_lead_forms_enabled:"mybusiness",mb_locations_enabled:"mybusiness",mb_team_enabled:"mybusiness",mb_verified_badge_enabled:"mybusiness",mb_featured_placement_enabled:"mybusiness",mb_owner_reply_enabled:"mybusiness",mb_business_website_enabled:"mybusiness",mb_business_email_enabled:"mybusiness",mb_notify_email_enabled:"mybusiness",mb_notify_owner_telegram_enabled:"mybusiness",mb_notify_weekly_digest_enabled:"mybusiness",mb_max_businesses:"mybusiness",mb_max_photos:"mybusiness",mb_max_products:"mybusiness",mb_max_posts_per_month:"mybusiness",mb_max_locations:"mybusiness",mb_max_team_members:"mybusiness",mb_max_custom_domains:"mybusiness",mb_max_lead_forms:"mybusiness",mb_max_services:"mybusiness",mb_max_staff:"mybusiness",mb_max_appointments_per_month:"mybusiness",mb_max_messages_per_month:"mybusiness",mb_max_leads_per_month:"mybusiness",mb_max_attachment_mb:"mybusiness",mb_analytics_retention_days:"mybusiness",mb_max_page_versions:"mybusiness"};C.useEffect(()=>{const a=Object.keys(b)[0];if(!a)return;const n=D[a];n&&n!==j&&v(n)},[b]);const A=()=>{const a=parseFloat(String(i.price_monthly))||0,n=parseFloat(String(i.discount_yearly_percent))||0;if(a>0&&n>0){const T=Math.round(a*12*(1-n/100)*100)/100;t("price_yearly",String(T))}},N=a=>{a.preventDefault(),c?y(route("admin.plans.store")):u(route("admin.plans.update",s.id))},k=c?"Create Plan - Admin":`Edit Plan: ${s.name} - Admin`,L=c?"Create subscription plan":`Edit Plan: ${s.name}`;return e.jsxs(U,{title:k,header:e.jsxs("div",{className:"flex items-center justify-between w-full pr-4",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(M,{href:route("admin.plans.index"),className:"text-muted-foreground hover:text-foreground",children:e.jsx(G,{className:"h-5 w-5"})}),e.jsx("h1",{className:"text-xl font-semibold leading-tight text-foreground",children:L})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(w,{type:"button",variant:"ghost",asChild:!0,children:e.jsx(M,{href:route("admin.plans.index"),children:"Cancel"})}),e.jsx(w,{type:"button",disabled:p,onClick:N,className:"min-w-[140px] shadow-lg shadow-primary/20",children:p?"Saving...":e.jsxs(e.Fragment,{children:[e.jsx($,{className:"h-4 w-4 mr-2"}),c?"Create plan":"Save Changes"]})})]})]}),children:[e.jsx(q,{title:k}),e.jsx("div",{className:"p-4 md:p-6",children:e.jsx("form",{onSubmit:N,className:"max-w-4xl mx-auto space-y-6",children:e.jsxs(E,{value:j,onValueChange:a=>v(a),children:[e.jsxs(B,{className:"grid w-full grid-cols-2 sm:grid-cols-3 md:grid-cols-6 gap-1 h-auto",children:[e.jsxs(x,{value:"general",className:"gap-1.5",children:[e.jsx(W,{className:"h-4 w-4"}),"General"]}),e.jsxs(x,{value:"pricing",className:"gap-1.5",children:[e.jsx(Y,{className:"h-4 w-4"}),"Pricing"]}),e.jsxs(x,{value:"productivity",className:"gap-1.5",children:[e.jsx(g,{className:"h-4 w-4"}),"Productivity"]}),e.jsxs(x,{value:"communication",className:"gap-1.5",children:[e.jsx(F,{className:"h-4 w-4"}),"Communication"]}),e.jsxs(x,{value:"office",className:"gap-1.5",children:[e.jsx(I,{className:"h-4 w-4"}),"Office"]}),e.jsxs(x,{value:"mybusiness",className:"gap-1.5",children:[e.jsx(S,{className:"h-4 w-4"}),"My Business"]})]}),e.jsxs(f,{value:"general",className:"space-y-6 mt-6",children:[e.jsx(o,{className:"border-border/50 shadow-sm",children:e.jsxs(m,{className:"pt-6 space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"name",children:"Plan Name"}),e.jsx(_,{id:"name",value:i.name,onChange:a=>t("name",a.target.value)}),b.name&&e.jsx("p",{className:"text-xs text-destructive",children:b.name})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"slug",children:"Slug (Unique Identifier)"}),e.jsx(_,{id:"slug",value:i.slug,onChange:a=>t("slug",a.target.value),className:"font-mono text-xs"}),b.slug&&e.jsx("p",{className:"text-xs text-destructive",children:b.slug})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"paddle_price_id",children:"Paddle Price ID"}),e.jsx(_,{id:"paddle_price_id",value:i.paddle_price_id,onChange:a=>t("paddle_price_id",a.target.value),className:"font-mono text-xs",placeholder:"pri_..."})]})]})}),e.jsxs("div",{className:"space-y-2 px-1",children:[e.jsx(d,{htmlFor:"sort_order",className:"text-xs font-bold uppercase tracking-wider text-muted-foreground",children:"Display Order"}),e.jsx(_,{id:"sort_order",type:"number",value:i.sort_order,onChange:a=>{const n=a.target.value===""?"":parseInt(a.target.value);t("sort_order",n)},className:"w-24 h-8"})]})]}),e.jsx(f,{value:"pricing",className:"space-y-6 mt-6",children:e.jsx(o,{className:"border-border/50 shadow-sm overflow-hidden",children:e.jsxs(m,{className:"pt-6 space-y-6",children:[e.jsxs("div",{className:"flex items-center justify-between border-b border-border/40 pb-4",children:[e.jsxs("div",{className:"flex items-center gap-2 font-bold text-foreground",children:[e.jsx(P,{className:"h-4 w-4 text-amber-500"}),e.jsx("span",{children:"Pricing & User Model"})]}),e.jsxs("div",{className:"flex items-center gap-2 bg-blue-500/5 px-3 py-1.5 rounded-lg border border-blue-500/10",children:[e.jsx(d,{htmlFor:"per_user_priced",className:"text-[11px] font-bold uppercase tracking-wider text-blue-600 dar
1k:text-blue-400 cursor-pointer",children:"Per-User Based Pricing"}),e.jsx(h,{id:"per_user_priced",checked:i.per_user_priced,onCheckedChange:a=>t("per_user_priced",a)})]}),e.jsxs("div",{className:"flex items-center gap-2 bg-amber-500/5 px-3 py-1.5 rounded-lg border border-amber-500/10",children:[e.jsx(d,{htmlFor:"is_popular",className:"text-[11px] font-bold uppercase tracking-wider text-amber-600 dark:text-amber-400 cursor-pointer",children:"Mark as Popular"}),e.jsx(h,{id:"is_popular",checked:i.is_popular,onCheckedChange:a=>t("is_popular",a)})]})]}),i.per_user_priced&&e.jsxs("div",{className:"grid grid-cols-2 gap-4 p-4 rounded-xl bg-blue-500/5 border border-blue-500/10",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"min_seats",className:"text-xs font-semibold",children:"Min Seats (Requirement)"}),e.jsx(_,{id:"min_seats",type:"number",min:"1",value:i.min_seats,onChange:a=>{const n=parseInt(a.target.value);t("min_seats",isNaN(n)?1:n)}}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:"User cannot select fewer than this."})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"max_seats",className:"text-xs font-semibold",children:"Max Seats (Limit)"}),e.jsx(_,{id:"max_seats",type:"number",placeholder:"Unlimited",value:i.max_seats,onChange:a=>{const n=a.target.value===""?"":parseInt(a.target.value);t("max_seats",n)}}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:"Leave empty for no limit."})]})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-4 italic text-muted-foreground text-[10px] -mt-4 mb-2",children:[e.jsxs("p",{children:["Monthly Price ",i.per_user_priced?"(per user)":""]}),e.jsx("p",{children:"Yearly Discount (%)"}),e.jsxs("p",{children:["Yearly Price ",i.per_user_priced?"(per user)":""]})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[e.jsx("div",{className:"space-y-2",children:e.jsxs("div",{className:"relative",children:[e.jsx("span",{className:"absolute left-3 top-2.5 text-muted-foreground font-medium text-sm",children:"$"}),e.jsx(_,{id:"price_monthly",type:"number",step:"0.01",className:"pl-7",value:i.price_monthly,onChange:a=>t("price_monthly",a.target.value)})]})}),e.jsx("div",{className:"space-y-2",children:e.jsxs("div",{className:"relative",children:[e.jsx("span",{className:"absolute right-3 top-2.5 text-muted-foreground font-medium text-sm",children:"%"}),e.jsx(_,{id:"discount",type:"number",className:"pr-7",value:i.discount_yearly_percent,onChange:a=>t("discount_yearly_percent",a.target.value),onBlur:A,placeholder:"e.g. 17"})]})}),e.jsx("div",{className:"space-y-2",children:e.jsxs("div",{className:"relative",children:[e.jsx("span",{className:"absolute left-3 top-2.5 text-muted-foreground font-medium text-sm",children:"$"}),e.jsx(_,{id:"price_yearly",type:"number",step:"0.01",className:"pl-7 border-emerald-500/20 bg-emerald-500/5 dark:bg-emerald-500/10",value:i.price_yearly,onChange:a=>t("price_yearly",a.target.value)})]})})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-6 pt-4 border-t border-border/40",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"max_notes",className:"text-xs font-bold uppercase tracking-wider text-muted-foreground",children:"Max Notes"}),e.jsx(_,{id:"max_notes",type:"number",value:i.max_notes,onChange:a=>{const n=a.target.value===""?"":parseInt(a.target.value);t("max_notes",n)}}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:"-1 for unlimited"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"max_storage",className:"text-xs font-bold uppercase tracking-wider text-muted-foreground",children:"Storage Limit (MB)"}),e.jsx(_,{id:"max_storage",type:"number",value:i.max_storage_mb,onChange:a=>{const n=a.target.value===""?"":parseInt(a.target.value);t("max_storage_mb",n)}}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:"e.g. 5120 for 5GB"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"ai_chat_tokens",className:"text-xs font-bold uppercase tracking-wider text-muted-foreground",children:"AI Chat Tokens (Monthly)"}),e.jsx(_,{id:"ai_chat_tokens",type:"number",value:i.ai_chat_tokens_monthly,onChange:a=>{const n=a.target.value===""?"":parseInt(a.target.value);t("ai_chat_tokens_monthly",n)}}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:"0 for none"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"voice_transcript_tokens_monthly",className:"text-xs font-bold uppercase tracking-wider text-muted-foreground",children:"Voice Transcript Tokens (Monthly)"}),e.jsx(_,{id:"voice_transcript_tokens_monthly",type:"number",value:i.voice_transcript_tokens_monthly,onChange:a=>{const n=a.target.value===""?"":parseInt(a.target.value);t("voice_transcript_tokens_monthly",n)}}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:"0 for none"})]})]})]})})}),e.jsxs(f,{value:"productivity",className:"space-y-6 mt-6",children:[e.jsx(o,{className:"border-border/50 shadow-sm",children:e.jsxs(m,{className:"pt-6 space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 font-bold text-foreground border-b border-border/40 pb-3 mb-2",children:[e.jsx(O,{className:"h-4 w-4 text-emerald-500"}),e.jsx("span",{children:"Core Features"})]}),e.jsx(l,{id:"ai_enabled",label:"AI Assistant",checked:i.ai_enabled,onChange:a=>t("ai_enabled",a)}),e.jsx(l,{id:"ai_chat_enabled",label:"Octopus (AI Chat)",checked:i.ai_chat_enabled,onChange:a=>t("ai_chat_enabled",a)}),e.jsx(l,{id:"pdf_enabled",label:"PDF Viewer/Editor",checked:i.pdf_enabled,onChange:a=>t("pdf_enabled",a)}),e.jsx(l,{id:"attach_enabled",label:"File Attachments",checked:i.attach_enabled,onChange:a=>t("attach_enabled",a)}),e.jsx(l,{id:"biometric",label:"Biometric Login",checked:i.biometric_enabled,onChange:a=>t("biometric_enabled",a)})]})}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:e.jsx(o,{className:"border-border/50 shadow-sm hover:border-blue-500/20 transition-colors",children:e.jsxs(m,{className:"pt-6 space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 font-bold text-foreground border-b border-border/40 pb-3 mb-2",children:[e.jsx(g,{className:"h-4 w-4 text-blue-500"}),e.jsx("span",{children:"Productivity"})]}),e.jsx(l,{id:"calendar",label:"Calendar (WebDAV)",checked:i.calendar_enabled,onChange:a=>t("calendar_enabled",a)}),e.jsx(l,{id:"contacts",label:"Contacts (CardDAV)",checked:i.contacts_enabled,onChange:a=>t("contacts_enabled",a)}),e.jsx(l,{id:"projects",label:"Projects & Team Workspace",checked:i.projects_enabled,onChange:a=>t("projects_enabled",a)}),e.jsx(l,{id:"kanban",label:"Kanban Boards",checked:i.kanban_enabled,onChange:a=>t("kanban_enabled",a)}),e.jsx(l,{id:"task_management",label:"Advanced Tasks",checked:i.task_management_enabled,onChange:a=>t("task_management_enabled",a)})]})})})]}),e.jsx(f,{value:"communication",className:"space-y-6 mt-6",children:e.jsx(o,{className:"border-border/50 shadow-sm hover:border-purple-500/20 transition-colors",children:e.jsxs(m,{className:"pt-6 space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 font-bold text-foreground border-b border-border/40 pb-3 mb-2",children:[e.jsx(F,{className:"h-4 w-4 text-purple-500"}),e.jsx("span",{children:"Communication"})]}),e.jsx(l,{id:"mail",label:"Mail Client (M@il)",checked:i.mail_enabled,onChange:a=>t("mail_enabled",a)}),e.jsx(l,{id:"realtime_chat",label:"Real-time Team Chat",checked:i.realtime_chat_enabled,onChange:a=>t("realtime_chat_enabled",a)}),e.jsx(l,{id:"voip",label:"VoIP / Browser Calls",checked:i.voip_enabled,onChange:a=>t("voip_enabled",a)}),e.jsx(l,{id:"sms",label:"SMS (Single & Bulk)",checked:i.sms_enabled,onChange:a=>t("sms_enabled",a)}),e.jsx(l,{id:"shared",label:"Shared Notes & Collab",checked:i.shared_enabled,onChange:a=>t("shared_enabled",a)}),e.jsx(l,{id:"voice_notes",label:"Voice Notes",checked:i.voice_enabled,onChange:a=>t("voice_enabled",a)}),e.jsx(l,{id:"voice_transcript",label:"Voice-to-Text Transcript",checked:i.voice_transcript_enabled,onChange:a=>t("voice_transcript_enabled",a)}),e.jsx(l,{id:"meetings",label:"Video Meetings",checked:i.meetings_enabled,onChange:a=>t("meetings_enabled",a)}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 pt-3 border-t border-border/40",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"meetings_limit_minutes_monthly",className:"text-xs font-semibold",children:"Meetings Monthly Minutes"}),e.jsx(_,{id:"meetings_limit_minutes_monthly",type:"number",value:i.meetings_limit_minutes_monthly,onChange:a=>{const n=a.target.value===""?"":parseInt(a.target.value,10);t("meetings_limit_minutes_monthly",n)}}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:"Use -1 for unlimited"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"meetings_max_participants",className:"text-xs font-semibold",children:"Max Participants"}),e.jsx(_,{id:"meetings_max_participants",type:"number",value:i.meetings_max_participants,onChange:a=>{const n=a.target.value===""?"":parseInt(a.target.value,10);t("meetings_max_participants",n)}}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:"Use -1 for unlimited"})]})]}),e.jsxs("div",{className:"space-y-3 pt-3 border-t border-border/40",children:[e.jsxs("div",{className:"flex items-center gap-2 font-semibold text-foreground text-sm",children:[e.jsx(R,{className:"h-4 w-4 text-violet-500"}),e.jsx("span",{children:"Autopilot (scheduled social posts)"})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"autopilot_scheduled_shares_limit_monthly",className:"text-xs font-semibold",children:"Monthly scheduling cap"}),e.jsx(_,{id:"autopilot_scheduled_shares_limit_monthly",type:"number",value:i.autopilot_scheduled_shares_limit_monthly,onChange:a=>{const n=a.target.value===""?"":parseInt(a.target.value,10);t("autopilot_scheduled_shares_limit_monthly",n)}}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:"0 = none, -1 = unlimited"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"autopilot_scheduled_shares_limit_yearly",className:"text-xs font-semibold",children:"Yearly scheduling cap"}),e.jsx(_,{id:"autopilot_scheduled_shares_limit_yearly",type:"number",value:i.autopilot_scheduled_shares_limit_yearly,onChange:a=>{const n=a.target.value===""?"":parseInt(a.target.value,10);t("autopilot_scheduled_shares_limit_yearly",n)}}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:"0 = none, -1 = unlimited"})]})]}),e.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-lg border border-border/60 bg-muted/10 px-3 py-2",children:[e.jsx("span",{className:"text-sm font-medium text-foreground",children:"Social / Autopilot (user connections)"}),e.jsx(h,{id:"social_media_enabled",checked:i.social_media_enabled,onCheckedChange:a=>t("social_media_enabled",a)})]}),e.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-lg border border-border/60 bg-muted/10 px-3 py-2",children:[e.jsx("span",{className:"text-sm font-medium text-foreground",children:"Creative Studio (templates + designs editor)"}),e.jsx(h,{id:"creative_suite_enabled",checked:i.creative_suite_enabled,onCheckedChange:a=>t("creative_suite_enabled",a)})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 pt-3 border-t border-border/40",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"creative_suite_create_limit_monthly",className:"text-xs font-semibold",children:"Creative Studio Monthly Create Limit"}),e.jsx(_,{id:"creative_suite_create_limit_monthly",type:"number",value:i.creative_suite_create_limit_monthly,onChange:a=>{const n=a.target.value===""?"":parseInt(a.target.value,10);t("creative_suite_create_limit_monthly",n)}}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:"-1 = unlimited, 0 = blocked, N = monthly cap"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"creative_suite_create_limit_yearly",className:"text-xs font-semibold",children:"Creative Studio Yearly Create Limit"}),e.jsx(_,{id:"creative_suite_create_limit_yearly",type:"number",value:i.creative_suite_create_limit_yearly,onChange:a=>{const n=a.target.value===""?"":parseInt(a.target.value,10);t("creative_suite_create_limit_yearly",n)}}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:"-1 = unlimited, 0 = blocked, N = yearly cap"})]})]})]})]})})}),e.jsxs(f,{value:"office",className:"space-y-6 mt-6",children:[e.jsx(o,{className:"border-border/50 shadow-sm hover:border-pink-500/20 transition-colors",children:e.jsxs(m,{className:"pt-6 space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 font-bold text-foreground border-b border-border/40 pb-3 mb-2",children:[e.jsx(g,{className:"h-4 w-4 text-pink-500"}),e.jsx("span",{children:"Utility Tools"})]}),e.jsx(l,{id:"drawpad",label:"DrawPad (Digital Ink)",checked:i.drawpad_enabled,onChange:a=>t("drawpad_enabled",a)}),e.jsx(l,{id:"reminders",label:"Smart Reminders",checked:i.reminders_enabled,onChange:a=>t("reminders_enabled",a)}),e.jsx(l,{id:"quick_todos",label:"Quick Todos",checked:i.quick_todos_enabled,onChange:a=>t("quick_todos_enabled",a)}),e.jsx(l,{id:"ads_enabled",label:"Platform Ads",checked:i.ads_enabled,onChange:a=>t("ads_enabled",a)})]})}),e.jsx(o,{className:"border-border/50 shadow-sm hover:border-orange-500/20 transition-colors",children:e.jsxs(m,{className:"pt-6 space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 font-bold text-foreground border-b border-border/40 pb-3 mb-2",children:[e.jsx(I,{className:"h-4 w-4 text-orange-500"}),e.jsx("span",{children:"Office & Documents"})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-1",children:[e.jsx(l,{id:"office_docs",label:"Docs (Word)",checked:i.office_docs_enabled,onChange:a=>t("office_docs_enabled",a)}),e.jsx(l,{id:"office_sheets",label:"Sheets (Excel)",checked:i.office_sheets_enabled,onChange:a=>t("office_sheets_enabled",a)}),e.jsx(l,{id:"office_slides",label:"Slides (PPT)",checked:i.office_slides_enabled,onChange:a=>t("office_slides_enabled",a)}),e.jsx(l,{id:"office_diagrams",label:"Diagrams",checked:i.office_diagrams_enabled,onChange:a=>t("office_diagrams_enabled",a)}),e.jsx(l,{id:"office_pdf",label:"PDF Editor",checked:i.office_pdf_enabled,onChange:a=>t("office_pdf_enabled",a)}),e.jsx(l,{id:"office_ai",label:"Office Docs AI Writer",checked:i.office_ai_enabled,onChange:a=>t("office_ai_enabled",a)}),e.jsx(l,{id:"slides_ai",label:"Slides AI",checked:i.slides_ai_enabled,onChange:a=>t("slides_ai_enabled",a)}),e.jsx(l,{id:"autopilot_ai",label:"Autopilot AI",checked:i.autopilot_ai_enabled,onChange:a=>t("autopilot_ai_enabled",a)}),e.jsx(l,{id:"office_ai_professor",label:"AI Professor (Excel Assistant)",checked:i.office_ai_professor_enabled,onChange:a=>t("office_ai_professor_enabled",a)})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 pt-3 border-t border-border/40",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"office_slides_limit_monthly",className:"text-xs font-semibold",children:"Slides Monthly Limit"}),e.jsx(_,{id:"office_slides_limit_monthly",type:"number",value:i.office_slides_limit_monthly,onChange:a=>{const n=a.target.value===""?"":parseInt(a.target.value,10);t("office_slides_limit_monthly",n)}}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:"Use -1 for unlimited"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"office_slides_limit_yearly",className:"text-xs font-semibold",children:"Slides Yearly Limit"}),e.jsx(_,{id:"office_slides_limit_yearly",type:"number",value:i.office_slides_limit_yearly,onChange:a=>{const n=a.target.value===""?"":parseInt(a.target.value,10);t("office_slides_limit_yearly",n)}}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:"Use -1 for unlimited"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 pt-3 border-t border-border/40",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"office_pdf_create_limit_monthly",className:"text-xs font-semibold",children:"PDF Create Monthly Limit"}),e.jsx(_,{id:"office_pdf_create_limit_monthly",type:"number",value:i.office_pdf_create_limit_monthly,onChang
1e:a=>{const n=a.target.value===""?"":parseInt(a.target.value,10);t("office_pdf_create_limit_monthly",n)}}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:"Use -1 for unlimited"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"office_pdf_create_limit_yearly",className:"text-xs font-semibold",children:"PDF Create Yearly Limit"}),e.jsx(_,{id:"office_pdf_create_limit_yearly",type:"number",value:i.office_pdf_create_limit_yearly,onChange:a=>{const n=a.target.value===""?"":parseInt(a.target.value,10);t("office_pdf_create_limit_yearly",n)}}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:"Use -1 for unlimited"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"office_pdf_edit_limit_monthly",className:"text-xs font-semibold",children:"PDF Edit Monthly Limit"}),e.jsx(_,{id:"office_pdf_edit_limit_monthly",type:"number",value:i.office_pdf_edit_limit_monthly,onChange:a=>{const n=a.target.value===""?"":parseInt(a.target.value,10);t("office_pdf_edit_limit_monthly",n)}}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:"Use -1 for unlimited"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"office_pdf_edit_limit_yearly",className:"text-xs font-semibold",children:"PDF Edit Yearly Limit"}),e.jsx(_,{id:"office_pdf_edit_limit_yearly",type:"number",value:i.office_pdf_edit_limit_yearly,onChange:a=>{const n=a.target.value===""?"":parseInt(a.target.value,10);t("office_pdf_edit_limit_yearly",n)}}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:"Use -1 for unlimited"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 pt-3 border-t border-border/40",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"workspace_docs_limit_monthly",className:"text-xs font-semibold",children:"Workspace Docs Monthly Limit (Docs+Sheets+Diagrams+Drawpads)"}),e.jsx(_,{id:"workspace_docs_limit_monthly",type:"number",value:i.workspace_docs_limit_monthly,onChange:a=>{const n=a.target.value===""?"":parseInt(a.target.value,10);t("workspace_docs_limit_monthly",n)}}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:"Use -1 for unlimited"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"workspace_docs_limit_yearly",className:"text-xs font-semibold",children:"Workspace Docs Yearly Limit (Docs+Sheets+Diagrams+Drawpads)"}),e.jsx(_,{id:"workspace_docs_limit_yearly",type:"number",value:i.workspace_docs_limit_yearly,onChange:a=>{const n=a.target.value===""?"":parseInt(a.target.value,10);t("workspace_docs_limit_yearly",n)}}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:"Use -1 for unlimited"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 pt-3 border-t border-border/40",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"office_ai_image_limit_monthly",className:"text-xs font-semibold",children:"AI Image Generate Monthly Limit"}),e.jsx(_,{id:"office_ai_image_limit_monthly",type:"number",value:i.office_ai_image_limit_monthly,onChange:a=>{const n=a.target.value===""?"":parseInt(a.target.value,10);t("office_ai_image_limit_monthly",n)}}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:"Use -1 for unlimited"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:"office_ai_image_limit_yearly",className:"text-xs font-semibold",children:"AI Image Generate Yearly Limit"}),e.jsx(_,{id:"office_ai_image_limit_yearly",type:"number",value:i.office_ai_image_limit_yearly,onChange:a=>{const n=a.target.value===""?"":parseInt(a.target.value,10);t("office_ai_image_limit_yearly",n)}}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:"Use -1 for unlimited"})]})]}),e.jsxs("div",{className:"pt-2 border-t border-border/40",children:[e.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-muted-foreground mb-2",children:"Export"}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-x-6 gap-y-1",children:[e.jsx(l,{id:"office_pdf_export",label:"PDF Export",checked:i.office_pdf_export_enabled,onChange:a=>t("office_pdf_export_enabled",a)}
1),e.jsx(l,{id:"office_xlsx_export",label:"XLSX Export",checked:i.office_xlsx_export_enabled,onChange:a=>t("office_xlsx_export_enabled",a)}),e.jsx(l,{id:"office_pptx_export",label:"PPTX Export",checked:i.office_pptx_export_enabled,onChange:a=>t("office_pptx_export_enabled",a)})]})]})]})})]}),e.jsxs(f,{value:"mybusiness",className:"space-y-6 mt-6",children:[e.jsx(o,{className:"border-border/50 shadow-sm hover:border-primary/20 transition-colors",children:e.jsxs(m,{className:"pt-6 space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 font-bold text-foreground border-b border-border/40 pb-3 mb-2",children:[e.jsx(S,{className:"h-4 w-4 text-primary"}),e.jsx("span",{children:"My Business â Master"})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Master switch. Disabling this hides the My Business module from users on this plan, regardless of the sub-toggles below."}),e.jsx(l,{id:"mybusiness_enabled",label:"Enable My Business module",checked:i.mybusiness_enabled,onChange:a=>t("mybusiness_enabled",a)})]})}),e.jsx(o,{className:"border-border/50 shadow-sm hover:border-primary/20 transition-colors",children:e.jsxs(m,{className:"pt-6 space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 font-bold text-foreground border-b border-border/40 pb-3 mb-2",children:[e.jsx(P,{className:"h-4 w-4 text-primary"}),e.jsx("span",{children:"Feature toggles"})]}),e.jsxs("div",{className:i.mybusiness_enabled?"":"opacity-50 pointer-events-none",children:[e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-1",children:[e.jsx(l,{id:"mb_messaging_enabled",label:"Message inbox",checked:i.mb_messaging_enabled,onChange:a=>t("mb_messaging_enabled",a)}),e.jsx(l,{id:"mb_analytics_enabled",label:"Detailed analytics",checked:i.mb_analytics_enabled,onChange:a=>t("mb_analytics_enabled",a)}),e.jsx(l,{id:"mb_analytics_full_history",label:"Analytics > 7d + CSV export",checked:i.mb_analytics_full_history,onChange:a=>t("mb_analytics_full_history",a)}),e.jsx(l,{id:"mb_products_enabled",label:"Products (mini storefront)",checked:i.mb_products_enabled,onChange:a=>t("mb_products_enabled",a)}),e.jsx(l,{id:"mb_posts_enabled",label:"Announcements / campaigns",checked:i.mb_posts_enabled,onChange:a=>t("mb_posts_enabled",a)}),e.jsx(l,{id:"mb_owner_reply_enabled",label:"Reply to reviews",checked:i.mb_owner_reply_enabled,onChange:a=>t("mb_owner_reply_enabled",a)}),e.jsx(l,{id:"mb_business_website_enabled",label:"Publish business website URL (anti-spam: lock on free)",checked:i.mb_business_website_enabled,onChange:a=>t("mb_business_website_enabled",a)}),e.jsx(l,{id:"mb_business_email_enabled",label:"Publish business email (anti-spam: lock on free)",checked:i.mb_business_email_enabled,onChange:a=>t("mb_business_email_enabled",a)}),e.jsx(l,{id:"mb_landing_basic_enabled",label:"Basic landing page (1 default template)",checked:i.mb_landing_basic_enabled,onChange:a=>t("mb_landing_basic_enabled",a)}),e.jsx(l,{id:"mb_landing_builder_enabled",label:"Full page designer (all blocks)",checked:i.mb_landing_builder_enabled,onChange:a=>t("mb_landing_builder_enabled",a)}),e.jsx(l,{id:"mb_landing_animations_enabled",label:"Scroll animations + dividers",checked:i.mb_landing_animations_enabled,onChange:a=>t("mb_landing_animations_enabled",a)}),e.jsx(l,{id:"mb_landing_custom_html_enabled",label:"Custom HTML block (verified only)",checked:i.mb_landing_custom_html_enabled,onChange:a=>t("mb_landing_custom_html_enabled",a)}),e.jsx(l,{id:"mb_custom_domain_enabled",label:"Custom domain",checked:i.mb_custom_domain_enabled,onChange:a=>t("mb_custom_domain_enabled",a)}),e.jsx(l,{id:"mb_subdomain_enabled",label:"Free octofold.app subdomain",checked:i.mb_subdomain_enabled,onChange:a=>t("mb_subdomain_enabled",a)}),e.jsx(l,{id:"mb_appointments_enabled",label:"Appointments module",checked:i.mb_appointments_enabled,onChange:a=>t("mb_appointments_enabled",a)}),e.jsx(l,{id:"mb_lead_forms_enabled",label:"Lead forms",checked:i.mb_lead_forms_enabled,onChange:a=>t("mb_lead_forms_enabled",a)}),e.jsx(l,{id:"mb_locations_enabled",label:"Multiple locations",checked:i.mb_locations_enabled,onChange:a=>t("mb_locations_enabled",a)}),e.jsx(l,{id:"mb_team_enabled",label:"Team / staff management",checked:i.mb_team_enabled,onChange:a=>t("mb_team_enabled",a)}),e.jsx(l,{id:"mb_verified_badge_enabled",label:"Verified badge eligibility",checked:i.mb_verified_badge_enabled,onChange:a=>t("mb_verified_badge_enabled",a)}),e.jsx(l,{id:"mb_featured_placement_enabled",label:"Sponsored placement eligibility",checked:i.mb_featured_placement_enabled,onChange:a=>t("mb_featured_placement_enabled",a)})]}),e.jsxs("div",{className:"pt-3 mt-3 border-t border-border/40",children:[e.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-muted-foreground mb-2",children:"Notifications"}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-1",children:[e.jsx(l,{id:"mb_notify_email_enabled",label:"Email notifications",checked:i.mb_notify_email_enabled,onChange:a=>t("mb_notify_email_enabled",a)}),e.jsx(l,{id:"mb_notify_owner_telegram_enabled",label:"Owner Telegram (own bot)",checked:i.mb_notify_owner_telegram_enabled,onChange:a=>t("mb_notify_owner_telegram_enabled",a)}),e.jsx(l,{id:"mb_notify_weekly_digest_enabled",label:"Weekly digest email",checked:i.mb_notify_weekly_digest_enabled,onChange:a=>t("mb_notify_weekly_digest_enabled",a)})]})]})]})]})}),e.jsx(o,{className:"border-border/50 shadow-sm hover:border-primary/20 transition-colors",children:e.jsxs(m,{className:"pt-6 space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 font-bold text-foreground border-b border-border/40 pb-3 mb-2",children:[e.jsx(g,{className:"h-4 w-4 text-primary"}),e.jsx("span",{children:"Limits"})]}),e.jsxs("p",{className:"text-[11px] text-muted-foreground",children:["Use ",e.jsx("code",{className:"px-1 py-0.5 rounded bg-muted",children:"-1"})," for unlimited, ",e.jsx("code",{className:"px-1 py-0.5 rounded bg-muted",children:"0"})," to disable that capability for this plan."]}),e.jsx("div",{className:i.mybusiness_enabled?"":"opacity-50 pointer-events-none",children:e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:[e.jsx(r,{id:"mb_max_businesses",label:"Max businesses / user",value:i.mb_max_businesses,onChange:a=>t("mb_max_businesses",a)}
1),e.jsx(r,{id:"mb_max_photos",label:"Max photos / business",value:i.mb_max_photos,onChange:a=>t("mb_max_photos",a)}),e.jsx(r,{id:"mb_max_products",label:"Max products",value:i.mb_max_products,onChange:a=>t("mb_max_products",a)}),e.jsx(r,{id:"mb_max_posts_per_month",label:"Max announcements / month",value:i.mb_max_posts_per_month,onChange:a=>t("mb_max_posts_per_month",a)}),e.jsx(r,{id:"mb_max_locations",label:"Max locations / branches",value:i.mb_max_locations,onChange:a=>t("mb_max_locations",a)}),e.jsx(r,{id:"mb_max_team_members",label:"Max team members",value:i.mb_max_team_members,onChange:a=>t("mb_max_team_members",a)}),e.jsx(r,{id:"mb_max_custom_domains",label:"Max custom domains",value:i.mb_max_custom_domains,onChange:a=>t("mb_max_custom_domains",a)}),e.jsx(r,{id:"mb_max_lead_forms",label:"Max lead forms",value:i.mb_max_lead_forms,onChange:a=>t("mb_max_lead_forms",a)}),e.jsx(r,{id:"mb_max_services",label:"Max services (appointments)",value:i.mb_max_services,onChange:a=>t("mb_max_services",a)}),e.jsx(r,{id:"mb_max_staff",label:"Max staff (appointments)",value:i.mb_max_staff,onChange:a=>t("mb_max_staff",a)}),e.jsx(r,{id:"mb_max_appointments_per_month",label:"Max appointments / month",value:i.mb_max_appointments_per_month,onChange:a=>t("mb_max_appointments_per_month",a)}),e.jsx(r,{id:"mb_max_messages_per_month",label:"Max inbound messages / month",value:i.mb_max_messages_per_month,onChange:a=>t("mb_max_messages_per_month",a)}),e.jsx(r,{id:"mb_max_leads_per_month",label:"Max leads / month",value:i.mb_max_leads_per_month,onChange:a=>t("mb_max_leads_per_month",a)}),e.jsx(r,{id:"mb_max_attachment_mb",label:"Max message attachment (MB)",value:i.mb_max_attachment_mb,onCh
1ange:a=>t("mb_max_attachment_mb",a)}),e.jsx(r,{id:"mb_analytics_retention_days",label:"Analytics retention (days)",value:i.mb_analytics_retention_days,onChange:a=>t("mb_analytics_retention_days",a)}),e.jsx(r,{id:"mb_max_page_versions",label:"Max page versions kept",value:i.mb_max_page_versions,onChange:a=>t("mb_max_page_versions",a)})]})})]})})]})]})})})]})}function l({id:s,label:c,checked:i,onChange:t}){return e.jsxs("div",{className:"flex items-center justify-between py-1.5 group",children:[e.jsx(d,{htmlFor:s,className:"cursor-pointer font-medium text-sm text-muted-foreground group-hover:text-foreground transition-colors",children:c}),e.jsx(h,{id:s,checked:i,onCheckedChange:t})]})}function r({id:s,label:c,value:i,onChange:t}){return e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{htmlFor:s,className:"text-xs font-semibold",children:c}),e.jsx(_,{id:s,type:"number",value:i===""?"":i,onChange:y=>{const u=y.target.value;if(u===""){t("");return}const p=parseInt(u,10);t(Number.isFinite(p)?p:"")}}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:"-1 = unlimited · 0 = disabled"})]})}export{je as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.