1import{r as N,j as e,C as xe,a as b,b as d,c as t,e as pe,A as f,d as y,B as l,M as p,F as w,L as J,R as be}from"./bootstrap-vendor-BVnlr3j0.js";import{u as ue,H as je,L as v,r as I,b as S}from"./app-XqWmSGGq.js";import{A as ge}from"./AppLayout-C1D-6Vug.js";import{b as Q,E as M,G as X,H as _e,o as O,v as V,I as u,J as $,K as D,s as E,L as q,h as A,M as W,N as Ne,O as fe,t as ye,r as Z,n as ve,i as ke,P as we,Q as Ce,R as ze,S as ee,T as Se}from"./icons-vendor-C9Abni-h.js";import{_ as s}from"./Footer-DP5Vhz1J.js";import{F as Fe}from"./FeedbackButton-DDCYeXi3.js";/* empty css */function He({stats:j,recentActivity:G,usage:r,pendingInvitations:C=[]}){const{auth:g}=ue().props,h=g.user,x=g.shared_plan_info,o=!!x;o?x.plan_type:h.plan_type;const se=a=>a>=90?"bg-danger":a>=75?"bg-warning":"bg-success",ae=()=>h.is_premium||o?j.monthly_usage>=100:(r?.pages_used_today||0)>=3,[te,H]=N.useState(!1),[F,K]=N.useState(""),[T,R]=N.useState([]),[P,ne]=N.useState(""),[B,m]=N.useState(!1),[L,c]=N.useState({type:"",text:""}),[re,z]=N.useState(!1),[ie,le]=N.useState(()=>typeof window<"u"&&window.localStorage?localStorage.getItem("accountManagerSectionDismissed")!=="true":!0),de=()=>{console.log("Opening token modal"),H(!0),m(!0),c({type:"",text:""}),S.get("/api-tokens").then(a=>{console.log("Token list response:",a.data);const n=(a.data.tokens||[]).filter(i=>i.name!=="auth_token");R(n),m(!1)}).catch(a=>{console.error("Error fetching tokens:",a),console.error("Error response:",a.response?.data),c({type:"danger",text:a.response?.data?.message||s("dashboard.api_tokens.errors.load_failed")}),m(!1)})},ce=a=>{if(a.preventDefault(),F==="auth_token"){c({type:"danger",text:s("dashboard.api_tokens.errors.auth_token_not_allowed")});return}m(!0),c({type:"",text:""}),console.log("Creating token with name:",F);try{S.post("/api-tokens",{token_name:F}).then(n=>{console.log("Token creation response:",n.data);const i=n.data;i.token?(ne(i.token),K(""),c({type:"success",text:i.message||s("dashboard.api_tokens.errors.create_success")}),S.get("/api-tokens").then(_=>{console.log("Token list response:",_.data);const k=(_.data.tokens||[]).filter(he=>he.name!=="auth_token");R(k)}).catch(_=>{console.error("Error fetching tokens after creation:",_)})):c({type:"danger",text:i.message||s("dashboard.api_tokens.errors.create_failed")}),m(!1)}).catch(n=>{console.error("Error creating token:",n),console.error("Error response:",n.response?.data),c({type:"danger",text:n.response?.data?.message||s("dashboard.api_tokens.errors.create_failed")}),m(!1)})}catch(n){console.error("Exception in handleCreateToken:",n),c({type:"danger",text:s("dashboard.api_tokens.errors.unexpected_error")}),m(!1)}},oe=a=>{if(confirm(s("dashboard.api_tokens.errors.delete_confirm"))){console.log("Deleting token with ID:",a),m(!0);try{const n=document.querySelector('meta[name="csrf-token"]').getAttribute("content");console.log("CSRF Token for delete:",n),S.defaults.headers.common["X-CSRF-TOKEN"]=n,S.delete(`/api-tokens/${a}`).then(i=>{console.log("Token deletion response:",i.data);const _=i.data;c({type:"success",text:_.message||s("dashboard.api_tokens.errors.delete_success")}),R(T.filter(k=>k.id!==a)),m(!1)}).catch(i=>{console.error("Error deleting token:",i),console.error("Error response:",i.response?.data),c({type:"danger",text:i.response?.data?.message||s("dashboard.api_tokens.errors.delete_failed")}),m(!1)})}catch(n){console.error("Exception in handleDeleteToken:",n),c({type:"danger",text:s("dashboard.api_tokens.errors.unexpected_error")}),m(!1)}}},Y=()=>{le(!1),typeof window<"u"&&window.localStorage&&localStorage.setItem("accountManagerSectionDismissed","true")},me=a=>({FaFileAlt:Q,FaHistory:M,FaCreditCard:X,FaRegClock:Se,FaInfo:ee,FaFileInvoice:ze,FaReceipt:Ce})[a]||ee,U=({icon:a,stat:n,description:i,value:_,colorClass:k="primary"})=>e.jsx(t,{className:"border-0 shadow h-100",children:e.jsx(t.Body,{className:"p-4",children:e.jsxs("div",{className:"d-flex align-items-center",children:[e.jsx("div",{className:`bg-${k} bg-opacity-10 p-3 rounded-3 me-3`,children:be.cloneElement(a,{className:`text-${k}`,size:24})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-muted small mb-1",children:i}),e.jsx("h4",{className:"fw-bold mb-0",children:_})]})]})})});return e.jsxs(ge,{title:s("dashboard.meta.title"),description:s("dashboard.meta.description"),children:[e.jsx(je,{title:s("dashboard.meta.title")}),e.jsx("section",{className:"dashboard-section py-5",children:e.jsxs(xe,{children:[e.jsx(b,{className:"mb-4",children:e.jsx(d,{children:e.jsx("div",{className:"d-flex align-items-center justify-content-between",children:e.jsx("div",{children:e.jsx("h1",{className:"h3 fw-bold mb-2",children:s("dashboard.welcome.title",{name:g.user.name})})})})})}),e.jsxs(b,{className:"mb-4 g-3",children:[e.jsx(d,{sm:6,lg:3,children:e.jsx(U,{icon:e.jsx(Q,{}),stat:"pages",description:s("dashboard.stats.pages.title"),value:j.pages_converted,colorClass:"primary"})}),e.jsx(d,{sm:6,lg:3,children:e.jsx(U,{icon:e.jsx(M,{}),stat:"recent",description:s("dashboard.stats.recent.title"),value:j.recent_conversions,colorClass:"success"})}),e.jsx(d,{sm:6,lg:3,children:e.jsx(U,{icon:e.jsx(X,{}),stat:"credits",description:s("dashboard.stats.credits.title"),value:j.available_credits,colorClass:"info"})}),e.jsx(d,{sm:6,lg:3,children:e.jsx(t,{className:"border-0 shadow h-100",children:e.jsxs(t.Body,{className:"p-4",children:[e.jsxs("div",{className:"d-flex align-items-center mb-3",children:[e.jsx("div",{className:"bg-warning bg-opacity-10 p-3 rounded-3 me-3",children:e.jsx(_e,{className:"text-warning",size:24})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-muted small mb-1",children:s("dashboard.stats.usage.title")}),e.jsxs("h4",{className:"fw-bold mb-0",children:[h.is_premium||o?j.monthly_usage:Math.min(Math.round((r?.pages_used_today||0)/3*100),100),"%"]})]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"d-flex justify-content-between align-items-center small mb-2",children:[e.jsx("span",{className:"text-muted",children:h.is_premium||o?s("dashboard.usage_labels.monthly_usage"):s("dashboard.usage_labels.daily_usage")}),e.jsx("span",{className:(h.is_premium||o?j.monthly_usage:Math.min(Math.round((r?.pages_used_today||0)/3*100),100))>80?"text-danger fw-bold":"text-muted",children:h.is_premium?r?.shared_plan?`${r.shared_plan.total_plan_usage||0}/${r.monthly_limit||0} ${s("dashboard.usage_labels.pages")}`:`${r?.pages_this_month||0}/${r?.monthly_limit||0} ${s("dashboard.usage_labels.pages")}`:o?`${r.shared_plan.total_plan_usage||0}/${r?.monthly_limit||0} ${s("dashboard.usage_labels.pages")}`:`${r?.pages_used_today||0}/3 ${s("dashboard.usage_labels.daily_pages")}`})]}),e.jsx(pe,{now:h.is_premium||o?j.monthly_usage:Math.min(Math.round((r?.pages_used_today||0)/3*100),100),variant:se(h.is_premium||o?j.monthly_usage:Math.min(Math.round((r?.pages_used_today||0)/3*100),100)).replace("bg-",""),style:{height:"10px"}}),(h.is_premium||o)&&e.jsx("div",{className:"text-end mt-2",children:e.jsx("small",{className:"text-muted",children:h.is_premium&&r?.shared_plan?`${r.monthly_limit-(r.shared_plan.total_plan_usage||0)} ${s("dashboard.usage_labels.pages_remaining")}`:`${r?.premium_pages_remaining} ${s("dashboard.usage_labels.pages_remaining")}`})})]}),ae()&&e.jsx("div",{className:"mt-3",children:e.jsxs(v,{href:"/pricing",className:"btn btn-warning btn-sm w-100",children:[e.jsx(O,{className:"me-2"}),s("dashboard.actions.upgrade_limit_reached")]})})]})})})]}),C.length>0&&e.jsx(b,{className:"mb-4",children:e.jsx(d,{children:e.jsx(f,{variant:"info",className:"shadow-sm",children:e.jsxs("div",{className:"d-flex align-items-start",children:[e.jsx(V,{className:"text-info me-3 mt-1",size:24}),e.jsxs("div",{className:"flex-grow-1",children:[e.jsx(f.Heading,{className:"h5 mb-3",children:C.length===1?s("dashboard.invitations.heading_single",{count:C.length}
1):s("dashboard.invitations.heading_plural",{count:C.length})}),C.map(a=>e.jsx(t,{className:"mb-3 border-0 bg-light",children:e.jsx(t.Body,{className:"p-3",children:e.jsxs(b,{className:"align-items-center",children:[e.jsxs(d,{md:8,children:[e.jsx("h6",{className:"mb-1 fw-bold",children:a.admin_name}),e.jsx("p",{className:"mb-1 text-muted",children:a.admin_email}),e.jsx(y,{bg:"primary",className:"me-2",children:s("dashboard.invitations.plan_badge",{plan:a.plan_type.toUpperCase()})}),e.jsxs("small",{className:"text-muted",children:[s("dashboard.invitations.expires"),": ",a.expires_at]})]}),e.jsx(d,{md:4,className:"text-end",children:e.jsxs("div",{className:"d-grid gap-2 d-md-flex justify-content-md-end",children:[e.jsxs(l,{variant:"success",size:"sm",onClick:()=>{I.post("/shared-users/accept-invitation",{invitation_id:a.id})},children:[e.jsx(u,{className:"me-1"}),s("dashboard.invitations.accept")]}),e.jsx(l,{variant:"outline-danger",size:"sm",onClick:()=>{confirm(s("dashboard.invitations.confirm_decline",{name:a.admin_name}))&&I.post("/shared-users/decline-invitation",{invitation_id:a.id})},children:s("dashboard.invitations.decline")})]})})]})})},a.id))]})]})})})}),g.user.plan_type==="business"&&ie&&e.jsx(b,{className:"mb-4",children:e.jsx(d,{children:e.jsx(t,{className:"border-0 shadow-sm bg-gradient",style:{background:"linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%)"},children:e.jsxs(t.Body,{className:"p-4",children:[e.jsxs("div",{className:"d-none d-md-flex align-items-center justify-content-between",children:[e.jsxs("div",{className:"d-flex align-items-center",children:[e.jsx("div",{className:"bg-success rounded-circle p-3 me-3",style:{width:"60px",height:"60px",display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx($,{className:"text-white",size:24})}),e.jsxs("div",{children:[e.jsx("h5",{className:"fw-bold mb-1 text-dark",children:s("dashboard.account_manager.title")}),e.jsx("h4",{className:"text-success fw-bold mb-1",children:s("dashboard.account_manager.name")}),e.jsx("p",{className:"text-muted mb-2 small",children:s("dashboard.account_manager.description")}),e.jsxs("div",{className:"d-flex gap-2",children:[e.jsxs(y,{bg:"success",className:"px-2 py-1 d-flex align-items-center",children:[e.jsx(D,{size:12,className:"me-1"}),s("dashboard.account_manager.badges.priority_support")]}),e.jsxs(y,{bg:"outline-success",className:"px-2 py-1 text-success border-success d-flex align-items-center",children:[e.jsx(E,{size:12,className:"me-1"}),s("dashboard.account_manager.badges.available")]}),e.jsxs(y,{bg:"outline-primary",className:"px-2 py-1 text-primary border-primary d-flex align-items-center",children:[e.jsx(q,{size:12,className:"me-1"}),s("dashboard.account_manager.badges.optimization")]})]})]})]}),e.jsxs("div",{className:"d-flex gap-2 align-items-center",children:[e.jsxs("div",{className:"text-end me-2",children:[e.jsxs(l,{variant:"success",onClick:()=>z(!0),className:"fw-bold mb-1 d-flex align-items-center justify-content-center",children:[e.jsx(A,{className:"me-2",size:14}),s("dashboard.account_manager.contact_button")]}),e.jsx("div",{className:"small text-muted",children:s("dashboard.account_manager.response_time")}
1)]}),e.jsx(l,{variant:"outline-danger",size:"sm",onClick:Y,className:"p-2",children:e.jsx(W,{size:14})})]})]}),e.jsxs("div",{className:"d-md-none",children:[e.jsxs("div",{className:"d-flex justify-content-between align-items-start mb-3",children:[e.jsxs("div",{className:"d-flex align-items-center",children:[e.jsx("div",{className:"bg-success rounded-circle p-2 me-3",style:{width:"50px",height:"50px",display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx($,{className:"text-white",size:20})}),e.jsxs("div",{children:[e.jsx("h6",{className:"fw-bold mb-1 text-dark",children:s("dashboard.account_manager.title")}),e.jsx("h5",{className:"text-success fw-bold mb-0",children:s("dashboard.account_manager.name")})]})]}),e.jsx(l,{variant:"outline-danger",size:"sm",onClick:Y,className:"p-2",children:e.jsx(W,{size:12})})]}),e.jsx("p",{className:"text-muted mb-3 small",children:s("dashboard.account_manager.description")}),e.jsxs("div",{className:"d-flex flex-wrap gap-2 mb-3",children:[e.jsxs(y,{bg:"success",className:"px-2 py-1 d-flex align-items-center",children:[e.jsx(D,{size:10,className:"me-1"}),s("dashboard.account_manager.badges.priority_support")]}),e.jsxs(y,{bg:"outline-success",className:"px-2 py-1 text-success border-success d-flex align-items-center",children:[e.jsx(E,{size:10,className:"me-1"}),s("dashboard.account_manager.badges.available")]}),e.jsxs(y,{bg:"outline-primary",className:"px-2 py-1 text-primary border-primary d-flex align-items-center",children:[e.jsx(q,{size:10,className:"me-1"}),s("dashboard.account_manager.badges.optimization")]})]}),e.jsxs("div",{className:"d-grid",children:[e.jsxs(l,{variant:"success",onClick:()=>z(!0),className:"fw-bold d-flex align-items-center justify-content-center",children:[e.jsx(A,{className:"me-2",size:14}),s("dashboard.account_manager.contact_button")]}),e.jsx("div",{className:"small text-muted text-center mt-2",children:s("dashboard.account_manager.response_time")}
1)]})]})]})})})}),e.jsxs(b,{className:"g-4",children:[e.jsx(d,{lg:8,children:e.jsxs(t,{className:"border-0 shadow",children:[e.jsx(t.Header,{className:"bg-white border-bottom p-4",children:e.jsxs("div",{className:"d-flex justify-content-between align-items-center",children:[e.jsx("h2",{className:"h4 fw-bold mb-0",children:s("dashboard.activity.title")}),e.jsxs(v,{href:"/history",className:"btn btn-outline-primary btn-sm",children:[e.jsx(M,{className:"me-1",size:14}),s("dashboard.actions.history")," "]})]})}),e.jsx(t.Body,{className:"p-4",children:e.jsx("div",{className:"activity-timeline",children:G.length>0?G.map((a,n)=>{const i=me(a.icon);return e.jsxs("div",{className:"activity-item d-flex align-items-start mb-4",children:[e.jsx("div",{className:"activity-icon-container me-3 flex-shrink-0",children:e.jsx("div",{className:"activity-icon",children:e.jsx(i,{className:"text-primary",size:16})})}),e.jsxs("div",{className:"activity-content flex-grow-1",children:[e.jsx("h6",{className:"fw-bold mb-1",children:a.title}),e.jsx("p",{className:"text-muted text-break small mb-1",children:a.description}),e.jsx("span",{className:"text-muted smaller",children:a.time_ago})]})]},n)}):e.jsx("p",{className:"text-muted text-center",children:s("dashboard.activity.empty")})})})]})}),e.jsx(d,{lg:4,children:e.jsxs(t,{className:"border-0 shadow",children:[e.jsx(t.Header,{className:"bg-white border-bottom p-4",children:e.jsx("h2",{className:"h4 fw-bold mb-0",children:s("dashboard.actions.title")})}),e.jsx(t.Body,{className:"p-4",children:e.jsxs("div",{className:"d-grid gap-3",children:[e.jsxs(v,{href:"/",className:"btn btn-primary",children:[e.jsx(Ne,{className:"me-2"}),s("dashboard.actions.convert")]}),!g.user.is_premium&&e.jsxs(v,{href:"/pricing",className:"btn btn-success",children:[e.jsx(O,{className:"me-2"}),s("dashboard.actions.upgrade")]}),e.jsxs(v,{href:"/credits",className:"btn btn-outline-primary",children:[e.jsx(fe,{className:"me-2"}),s("dashboard.actions.credits")]}),g.user.is_premium&&e.jsxs(l,{variant:"outline-primary",onClick:de,children:[e.jsx(ye,{className:"me-2"}),s("dashboard.actions.manage_api_keys")]}),g.user.is_premium&&["premium","business"].includes(g.user.plan_type)&&e.jsxs(v,{href:"/shared-users",className:"btn btn-outline-primary",children:[e.jsx(V,{className:"me-2"}),s("navbar.user_menu.manage_users")]}),e.jsxs(v,{href:"/history",className:"btn btn-outline-primary",children:[e.jsx(M,{className:"me-2"}),s("dashboard.actions.history")]}),e.jsxs("div",{className:"d-flex align-items-center",children:[e.jsx("span",{className:"me-2",children:"Share feedback"}),e.jsx(Fe,{conversionId:"dashboard",fileName:"General Experience",format:"Dashboard"})]}),o&&e.jsxs(t,{className:"mt-3 border-info",children:[e.jsxs(t.Header,{className:"bg-info bg-opacity-10 d-flex align-items-center",children:[e.jsx(Z,{className:"me-2 text-info"}),e.jsx("span",{className:"fw-bold",children:s("dashboard.shared_plan.title")})]}),e.jsxs(t.Body,{className:"py-3",children:[e.jsx("div",{className:"text-muted mb-2",children:s("dashboard.shared_plan.description",{owner:x.admin_name})}),e.jsxs("div",{className:"d-flex align-items-center mt-2",children:[e.jsx(y,{bg:"primary",className:"me-2",children:s("dashboard.shared_plan.plan_type",{plan:x.plan_type})}),e.jsxs("span",{className:"small text-muted",children:[s("dashboard.shared_plan.admin"),": ",x.admin_name]})]}),e.jsx("div",{className:"mt-3",children:e.jsx(l,{variant:"outline-danger",size:"sm",onClick:()=>{confirm(`Are you sure you want to leave ${x.admin_name}'s shared plan?`)&&I.post("/shared-users/leave")},children:s("dashboard.shared_plan.leave_plan")})})]})]})]})})]})})]}),o&&e.jsx(b,{className:"mt-4",children:e.jsx(d,{children:e.jsxs(t,{className:"border-0 shadow-sm",children:[e.jsx(t.Header,{className:"bg-white border-0 p-4",children:e.jsxs("h2",{className:"h4 fw-bold d-flex align-items-center mb-0",children:[e.jsx(Z,{className:"me-2 text-primary"}),s("dashboard.shared_plan.title")]})}),e.jsxs(t.Body,{className:"p-4",children:[e.jsx(f,{variant:"info",className:"mb-3",children:e.jsxs("div",{className:"d-flex",children:[e.jsx("div",{className:"me-3",children:e.jsx(D,{size:36,className:"text-info"})}),e.jsxs("div",{children:[e.jsx("h5",{className:"alert-heading",children:s("dashboard.shared_plan.description",{owner:x.admin_name})}),e.jsx("p",{className:"mb-0",children:s("dashboard.shared_plan.access_explanation")})]})]})}
1),e.jsxs(b,{className:"g-3",children:[e.jsx(d,{md:6,children:e.jsx(t,{className:"h-100",children:e.jsxs(t.Body,{children:[e.jsx("h6",{className:"mb-3",children:s("dashboard.shared_plan.plan_details")}),e.jsxs("ul",{className:"list-unstyled mb-0",children:[e.jsxs("li",{className:"mb-2 d-flex align-items-center",children:[e.jsx(O,{className:"text-warning me-2"}),e.jsxs("span",{children:[e.jsxs("strong",{children:[s("dashboard.shared_plan.plan_type"),":"]})," ",x.plan_type.toUpperCase()]})]}),e.jsxs("li",{className:"mb-2 d-flex align-items-center",children:[e.jsx(ve,{className:"text-primary me-2"}),e.jsxs("span",{children:[e.jsxs("strong",{children:[s("dashboard.shared_plan.admin"),":"]})," ",x.admin_name]})]}),e.jsxs("li",{className:"d-flex align-items-center",children:[e.jsx(ke,{className:"text-success me-2"}),e.jsxs("span",{children:[e.jsxs("strong",{children:[s("dashboard.shared_plan.added_on"),":"]})," ",new Date(x.added_on).toLocaleDateString()]})]})]})]})})}),e.jsx(d,{md:6,children:e.jsx(t,{className:"h-100",children:e.jsxs(t.Body,{children:[e.jsx("h6",{className:"mb-3",children:s("dashboard.shared_plan.features_access")}),e.jsxs("ul",{className:"list-unstyled mb-0",children:[e.jsxs("li",{className:"mb-2 d-flex align-items-center",children:[e.jsx(u,{className:"text-success me-2"}),e.jsx("span",{children:s("dashboard.shared_plan.feature_premium")})]}),e.jsxs("li",{className:"mb-2 d-flex align-items-center",children:[e.jsx(u,{className:"text-success me-2"}),e.jsx("span",{children:s("dashboard.shared_plan.feature_formats")})]}),e.jsxs("li",{className:"d-flex align-items-center",children:[e.jsx(u,{className:"text-success me-2"}),e.jsx("span",{children:s("dashboard.shared_plan.feature_api")})]})]})]})})})]})]})]})})})]})}),e.jsxs(p,{show:te,onHide:()=>H(!1),size:"lg",children:[e.jsx(p.Header,{closeButton:!0,children:e.jsx(p.Title,{children:s("dashboard.api_tokens.modal_title")})}),e.jsxs(p.Body,{children:[L.text&&e.jsx(f,{variant:L.type,dismissible:!0,onClose:()=>c({type:"",text:""}),children:L.text}),P&&e.jsxs(f,{variant:"warning",children:[e.jsx(f.Heading,{children:s("dashboard.api_tokens.new_token_heading")}),e.jsx("p",{children:s("dashboard.api_tokens.new_token_warning")}),e.jsx(w.Control,{type:"text",value:P,readOnly:!0,onClick:a=>a.target.select(),className:"mb-2"}),e.jsx(l,{variant:"secondary",size:"sm",onClick:()=>{navigator.clipboard.writeText(P),c({type:"success",text:s("dashboard.api_tokens.token_copied")})},children:s("dashboard.api_tokens.copy_to_clipboard")})]}),e.jsx("h5",{children:s("dashboard.api_tokens.create_new_token")}),e.jsxs(w,{onSubmit:ce,className:"mb-4",children:[e.jsxs(w.Group,{className:"mb-3",children:[e.jsx(w.Label,{children:s("dashboard.api_tokens.token_name_label")}),e.jsx(w.Control,{type:"text",placeholder:s("dashboard.api_tokens.token_name_placeholder"),value:F,onChange:a=>K(a.target.value),required:!0}),e.jsx(w.Text,{className:"text-muted",children:s("dashboard.api_tokens.token_name_help")})]}),e.jsx(l,{variant:"primary",type:"submit",disabled:B,children:B?s("dashboard.api_tokens.creating"):s("dashboard.api_tokens.create_token")})]}),e.jsx("h5",{children:s("dashboard.api_tokens.your_tokens")}),B&&T.length===0?e.jsx("p",{children:s("dashboard.api_tokens.loading_tokens")}):T.length>0?e.jsx(J,{children:T.map(a=>e.jsxs(J.Item,{className:"d-flex justify-content-between align-items-center",children:[e.jsxs("div",{children:[e.jsx("strong",{children:a.name}),e.jsxs("div",{className:"text-muted small",children:[s("dashboard.api_tokens.created_label"),": ",new Date(a.created_at).toLocaleString()]})]}),e.jsx(l,{variant:"danger",size:"sm",onClick:()=>oe(a.id),disabled:B,children:s("dashboard.api_tokens.delete")})]},a.id))}):e.jsx("p",{children:s("dashboard.api_tokens.no_tokens")})]}),e.jsx(p.Footer,{children:e.jsx(l,{variant:"secondary",onClick:()=>H(!1),children:s("dashboard.api_tokens.close")})})]}),e.jsxs(p,{show:re,onHide:()=>z(!1),size:"lg",children:[e.jsx(p.Header,{closeButton:!0,children:e.jsxs(p.Title,{className:"d-flex align-items-center",children:[e.jsx($,{className:"me-2 text-success"}),s("dashboard.account_manager.modal.title")]})}),e.jsxs(p.Body,{children:[e.jsxs("div",{className:"text-center mb-4",children:[e.jsx("div",{className:"bg-success bg-opacity-10 p-4 rounded-circle d-inline-flex",children:e.jsx($,{className:"text-success",size:48})}),e.jsx("h4",{className:"mt-3 mb-1 text-success",children:s("dashboard.account_manager.name")}),e.jsx("p",{className:"text-muted mb-1",children:s("dashboard.account_manager.modal.subtitle")}),e.jsxs("div",{className:"d-flex align-items-center justify-content-center gap-2 mt-2",children:[e.jsx("small",{className:"text-muted",children:"[email protected]"}),e.jsx(l,{variant:"outline-secondary",size:"sm",onClick:()=>{navigator.clipboard.writeText("[email protected]"),alert("Email address copied to clipboard!")},className:"p-1",title:"Copy email address",children:e.jsx(we,{size:12})})]})]}),e.jsxs(f,{variant:"success",className:"border-success",children:[e.jsxs(f.Heading,{className:"h6",children:[e.jsx(E,{className:"me-2"}),s("dashboard.account_manager.modal.ready_heading")]}),e.jsx("p",{className:"mb-0 small",children:s("dashboard.account_manager.modal.ready_description")})]}
1),e.jsxs(b,{className:"g-3",children:[e.jsx(d,{md:6,children:e.jsx(t,{className:"h-100 border-success",children:e.jsxs(t.Body,{className:"text-center",children:[e.jsx(E,{className:"text-success mb-2",size:24}),e.jsx("h6",{children:s("dashboard.account_manager.modal.direct_contact.title")}),e.jsx("p",{className:"small text-muted mb-3",children:s("dashboard.account_manager.modal.direct_contact.description")}),e.jsxs(l,{variant:"success",size:"sm",className:"w-100",onClick:()=>window.open("mailto:[email protected]?subject=Business Plan Support Request","_blank"),children:[e.jsx(A,{className:"me-2"}),s("dashboard.account_manager.modal.direct_contact.button")]})]})})}),e.jsx(d,{md:6,children:e.jsx(t,{className:"h-100 border-success",children:e.jsxs(t.Body,{className:"text-center",children:[e.jsx(D,{className:"text-success mb-2",size:24}),e.jsx("h6",{children:s("dashboard.account_manager.modal.priority_support.title")}),e.jsx("p",{className:"small text-muted mb-3",children:s("dashboard.account_manager.modal.priority_support.description")}),e.jsxs(l,{variant:"outline-success",size:"sm",className:"w-100",onClick:()=>window.open("mailto:[email protected]?subject=Priority Business Support - Account Optimization","_blank"),children:[e.jsx(q,{className:"me-2"}),s("dashboard.account_manager.modal.priority_support.button")]})]})})})]}),e.jsxs("div",{className:"mt-4",children:[e.jsx("h6",{className:"mb-3",children:s("dashboard.account_manager.modal.services_heading")}),e.jsxs("ul",{className:"list-unstyled",children:[e.jsxs("li",{className:"mb-2 d-flex align-items-start",children:[e.jsx(u,{className:"text-success me-2 mt-1",size:14}),e.jsx("span",{className:"small",children:s("dashboard.account_manager.modal.services.optimization")})]}),e.jsxs("li",{className:"mb-2 d-flex align-items-start",children:[e.jsx(u,{className:"text-success me-2 mt-1",size:14}),e.jsx("span",{className:"small",children:s("dashboard.account_manager.modal.services.integration")})]}),e.jsxs("li",{className:"mb-2 d-flex align-items-start",children:[e.jsx(u,{className:"text-success me-2 mt-1",size:14}),e.jsx("span",{className:"small",children:s("dashboard.account_manager.modal.services.team_management")})]}),e.jsxs("li",{className:"mb-2 d-flex align-items-start",children:[e.jsx(u,{className:"text-success me-2 mt-1",size:14}),e.jsx("span",{className:"small",children:s("dashboard.account_manager.modal.services.feature_requests")})]}),e.jsxs("li",{className:"d-flex align-items-start",children:[e.jsx(u,{className:"text-success me-2 mt-1",size:14}),e.jsx("span",{className:"small",children:s("dashboard.account_manager.modal.services.billing")})]})]})]})]}),e.jsxs(p.Footer,{children:[e.jsx(l,{variant:"secondary",onClick:()=>z(!1),children:s("dashboard.account_manager.modal.close_button")}),e.jsxs(l,{variant:"success",onClick:()=>{window.open("mailto:[email protected]?subject=Business Plan Support Request&body=Hi Mory,%0D%0A%0D%0AI would like to discuss my Business plan account.%0D%0A%0D%0ARegards","_blank"),z(!1)},children:[e.jsx(A,{className:"me-2"}),s("dashboard.account_manager.modal.contact_now_button")]})]})]}),e.jsx("style",{children:` 2 .dashboard-section { 3 background-color: #f8f9fa; 4 min-height: 100vh; 5 } 6 7 .activity-timeline .activity-item { 8 position: relative; 9 } 10 11 .activity-timeline .activity-item:not(:last-child)::after { 12 content: ''; 13 position: absolute; 14 left: 12px; 15 top: 40px; 16 bottom: -16px; 17 width: 2px; 18 background: #e9ecef; 19 } 20 21 .activity-timeline .activity-item:hover { 22 background-color: #f8f9fa; 23 border-radius: 0.5rem; 24 margin: -0.5rem; 25 padding: 0.5rem; 26 } 27 28 .activity-icon-container { 29 width: 40px; 30 position: relative; 31 } 32 33 .activity-icon { 34 width: 24px; 35 height: 24px; 36 display: flex; 37 align-items: center; 38 justify-content: center; 39 background: rgba(13, 110, 253, 0.1); 40 border-radius: 50%; 41 border: 2px solid white; 42 position: relative; 43 z-index: 1; 44 } 45 46 .smaller { 47 font-size: 0.875rem; 48 } 49 50 /* Card hover effects */ 51 .card { 52 transition: all 0.3s ease; 53 } 54 55 .card:hover { 56 transform: translateY(-2px); 57 } 58 59 /* Button improvements */ 60 .btn { 61 font-weight: 500; 62 transition: all 0.2s ease; 63 } 64 65 .btn:hover { 66 transform: translateY(-1px); 67 } 68 69 /* Progress bar styling */ 70 .progress { 71 background-color: #e9ecef; 72 } 73 74 /* Tablet and iPad specific adjustments */ 75 @media (min-width: 768px) and (max-width: 1024px) { 76 .card-body { 77 padding: 1.25rem !important; 78 } 79 80 .h3, .h4 { 81 font-size: 1.25rem !important; 82 } 83 84 .small { 85 font-size: 0.85rem !important; 86 } 87 88 .btn-sm { 89 font-size: 0.8rem !important; 90 padding: 0.375rem 0.75rem !important; 91 } 92 93 .activity-content h6 { 94 font-size: 1rem !important; 95 } 96 97 .activity-content p { 98 font-size: 0.9rem !important; 99 line-height: 1.4 !important; 100 } 101 102 .text-break { 103 word-break: break-word !important; 104 overflow-wrap: break-word !important; 105 } 106 } 107 108 /* Mobile adjustments */ 109 @media (max-width: 767px) { 110 .activity-timeline .activity-item { 111 padding-left: 1.5rem; 112 } 113 114 .card-body { 115 padding: 1rem !important; 116 } 117 118 .btn-sm { 119 font-size: 0.75rem !important; 120 } 121 } 122 `})]})}
122export{He 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.