1import{_ as g}from"./6HuN2jx9.js";import{u as L,_ as A}from"./p4CzZ_F5.js";import{_ as D}from"./DnMM_Yjt.js";import{u as B,m as v,d as k,q as I,r as N,e as s,f as i,B as h,h as t,t as n,g as l,k as w,p as $,C as x,D as V,j,a as F,w as M,b as q,i as y,l as C,E}from"./CFxGRstO.js";import{u as O}from"./_XV3GVHc.js";import{_ as R}from"./DlAUqK2U.js";import{_ as S}from"./Crz1aqcp.js";import"./B7ORbhYo.js";import"./CwOHyHLb.js";import"./owSR78tJ.js";import"./C5U6HIMD.js";import"./CbPSoDvq.js";import"./Db0QUOgG.js";import"./QjJsDpFa.js";import"./D4S0JsTk.js";import"./D7azwgAL.js";import"./CICNJ14-.js";import"./Cpj98o6Y.js";import"./RrkodjGr.js";import"./BWBHGvIx.js";import"./GtZFfx2K.js";import"./Bl79MI2C.js";function T(e){const{daysLeft:c,subscriptionActionLabel:r}=L(e),{t:a}=B(),u=v(()=>O(e.value.kind)),m=v(()=>e.value.kind==="license"?a("account.customer.subscription_action_label.lifetime_license"):e.value.lifetime?a("account.customer.subscription_action_label.lifetime_subscription"):a("account.customer.subscription_action_label.one_year_subscription"));return{type:u,title:m,daysLeft:c,subscriptionActionLabel:r}}const z={class:"tw-text-nowrap"},H={class:"tw-text-nowrap"},P={class:"features"},W={key:0,class:"tw-list-none tw-pl-0 list-features tw-mb-4"},G=["title"],J={class:"tw-inline",width:"20px",height:"20px"},K=["xlink:href"],Q=k({__name:"Item",props:{details:{},email:{}},setup(e){const c=e,r=I(),{type:a,title:u,daysLeft:m,subscriptionActionLabel:o}=T(N(c.details));return(_,b)=>{const f=A,p=D;return s(),i(h,null,[t("td",null,n(l(a)),1),t("td",z,n(l(u)),1),t("td",H,[e.details.lifetime?(s(),i(h,{key:0},[w(n(_.$t("account.customer.lifetime")),1)],64)):(s(),$(f,{key:1,"days-left":l(m)},null,8,["days-left"]))]),t("td",null,[t("div",P,[e.details.kind==="license"?(s(),i("ul",W,[(s(!0),i(h,null,x(e.details.available_features,d=>(s(),i("li",{key:d.name,class:V(["tw-inline-block [&:not(:last-child)]:tw-mr-2 tw-my-1",d.name]),title:d.title},[(s(),i("svg",J,[t("use",{"xlink:href":`#${d.name}`},null,8,K)]))],10,G))),128))])):(s(),i(h,{key:1},[w(" - ")],64))])]),t("td",null,[l(o)?(s(),$(p,{key:0,label:l(o),class:"btn btn-primary btn-sm tw-text-nowrap",onClick:b[0]||(b[0]=d=>l(r).push({path:"/checkout",query:{recipient_email:e.email,product_abbr:e.details.product.abbr}}))},null,8,["label"])):j("",!0)])],64)}}}),U=Object.assign(R(Q,[["__scopeId","data-v-e7d76397"]]),{__name:"AccountCustomerDetailsItem"}),X={class:"tw-py-4 lg:tw-px-6"},Y={class:"tw-mb-4"},Z={class:"table-responsive-lg orderlist-table"},tt={class:"table"},et={class:"orderlist-header"},st={scope:"col",width:"18%"},ot={scope:"col",width:"30%"},nt={scope:"col"},ct={scope:"col"},it={scope:"col",width:"10%"},at=k({__name:"List",async setup(e){let c,r;const a=F(),{details:u,customer:m}=([c,r]=M(()=>q(`/api/account/customer-details?user_id=${a.params.id}`)),c=await c,r(),c).value;return(o,_)=>{const b=g,f=U;return s(),i("div",X,[y(b,{label:o.$t("account.customer.back"),class:"btn btn-outline-primary tw-mb-12 icon-link !tw-pr-6",onClick:_[0]||(_[0]=E(p=>o.$router.push("/account/customers"),["prevent"]))},{default:C(()=>[_[1]||(_[1]=t("svg",{class:"tw-inline",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[t("path",{d:"M3.24268 8.24219H14.2427",stroke:"currentColor"}),t("path",{d:"M7.24268 4L3.00004 8.24264L7.24268 12.4853",stroke:"currentColor"})],-1)),w(" "+n(o.$t("account.customer.back")),1)]),_:1},8,["label"]),t("p",Y,[t("b",null,n(o.$t("account.customer.client"))+":",1),w(" "+n(l(m).email),1)]),t("div",Z,[t("table",tt,[t("thead",et,[t("tr",null,[t("th",st,n(o.$t("account.customer.type")),1),t("th",ot,n(o.$t("account.customer.title")),1),t("th",nt,n(o.$t("account.customer.term")),1),t("th",ct,n(o.$t("account.customer.details")),1),t("th",it,n(o.$t("account.customer.action")),1)])]),t("tbody",null,[(s(!0),i(h,null,x(l(u),p=>(s(),i("tr",{key:p.id},[y(f,{details:p,email:l(m).email},null,8,["details","email"])]))),128))])])])])}}}),lt=Object.assign(at,{__name:"AccountCustomerDetailsList"}),rt={class:"tw-text-h2 !tw-text-yellow tw-text-center tw-mb-2"},ut={class:"account-orders"},mt={class:"container"},_t={class:"tw-py-4 md:tw-pt-12"},Mt=k({__name:"[id]",setup(e){return(c,r)=>{const a=lt,u=S;return s(),$(u,{"active-item":"customers"},{default:C(()=>[t("h1",rt,n(c.$t("account.customer.details_header")),1),t("section",ut,[t("div",mt,[t("div",_t,[t("div",null,[y(a)])])])])]),_:1})}}});
1export{Mt 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.