whoami7 - Manager
:
/
home
/
qbizpnmr
/
arif.umairtax.com
/
public
/
Upload File:
files >> /home/qbizpnmr/arif.umairtax.com/public/Client-Cf8uVe16.js
import{u as v,a as $,j as e,a$ as G,ci as W,bq as I,i as u,cw as ne,t as re,I as oe,d as Y,d6 as ce,aW as J,aX as ie,a_ as de,ap as me,d7 as ue,p as y,ad as Z,ae as K,b2 as F,d8 as xe,d9 as he,da as pe,ay as E,db as fe,dc as U,ax as H,aT as O,bK as q,bf as B,r as V,e as L,$ as D,H as ee,M as ye,Y as se,bt as te,bS as ae,bT as be,dd as je,w as R,b1 as le,y as _e,b4 as ge,be as T,b$ as ve,E as Ne,b7 as we,b8 as Ce,b9 as $e,ba as Q,bb as X,bd as ke,bg as De,bh as Pe,L as Se,de as Te,cY as Be,a9 as Ie,a3 as Fe,O as A,Q as Ee,S as Ae,bV as Me,bW as Ve,a7 as Le,a8 as Re,bE as ze}from"./bundle.OlIVtvc7.js";import{I as k}from"./InfoCard-BvC2FhUQ.js";import{P as Ge}from"./PreviousNextNavigation-zAd8_mLU.js";function We(i){const[t]=v(),s=$(),{client:l}=i;return e.jsx(e.Fragment,{children:l&&e.jsx(k,{title:t("contacts"),className:"col-span-12 lg:col-span-6 xl:col-span-4 2xl:col-span-3 shadow-sm h-full 2xl:h-max p-4",style:{borderColor:s.$24},withoutPadding:!0,children:e.jsx("div",{className:"flex flex-col h-44 w-full overflow-y-auto",children:l.contacts.map((a,c)=>{var r,x;return!!(a.first_name||a.last_name||a.phone||a.email)&&e.jsxs("div",{className:"flex justify-between items-center first:pt-1 py-4 border-b border-dashed",style:{borderColor:s.$21},children:[e.jsxs("div",{className:"flex flex-col space-y-1 text-sm",children:[!!(a.first_name||a.last_name)&&e.jsxs("span",{className:"font-medium",style:{color:s.$3},children:[a.first_name," ",a.last_name]}),!!a.phone&&e.jsx("span",{className:"font-medium",style:{color:s.$22},children:a.phone}),!!a.email&&e.jsxs("div",{className:"flex space-x-2",children:[e.jsx("span",{className:"font-medium",style:{color:s.$22},children:a.email}),e.jsx(G,{message:t("copy"),placement:"top",width:"auto",centerVertically:!0,children:e.jsx(W,{text:a.email})})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(I,{className:"cursor-pointer",to:u(`${(r=l.contacts[c])==null?void 0:r.link}?silent=true&client_hash=:clientHash`,{clientHash:l.client_hash}),external:!0,withoutExternalIcon:!0,children:t("client_portal")}),e.jsx(G,{message:t("copy_link"),placement:"top",width:"auto",centerVertically:!0,children:e.jsx(W,{text:u(`${(x=l.contacts[c])==null?void 0:x.link}?silent=true`)})})]})]}),a.is_locked&&e.jsx(ne,{})]},c)})})})})}function Ue(i){var h;const[t]=v(),{client:s}=i,l=$(),a=re();oe();const c=Y(),r=ce();J();const x=ie(),d=()=>["client1","client2","client3","client4"].some(b=>{const f=r(b).label(),N=s[`custom_value${b.slice(-1)}`];return!!(f&&N)});return e.jsx(e.Fragment,{children:s&&e.jsx(k,{title:t("details"),className:"h-full 2xl:h-max col-span-12 lg:col-span-6 xl:col-span-4 2xl:col-span-3 shadow-sm p-4",style:{borderColor:l.$24},withoutPadding:!0,children:e.jsxs("div",{className:"flex flex-col pt-1 space-y-3 h-44 overflow-y-auto",children:[e.jsxs("div",{className:"flex flex-col space-y-1",children:[e.jsx("span",{className:"text-sm font-medium",style:{color:l.$22},children:t("status")}),e.jsx("div",{children:e.jsx(de,{entity:s})})]}),e.jsxs("div",{className:"flex flex-col space-y-1",children:[e.jsx("span",{className:"text-sm font-medium",style:{color:l.$22},children:t("number")}),e.jsx("span",{className:"text-sm font-medium",style:{color:l.$3},children:s.number})]}),s.group_settings_id&&e.jsxs("div",{className:"flex flex-col space-y-1",children:[e.jsx("span",{className:"text-sm font-medium",style:{color:l.$22},children:t("group")}),e.jsx(I,{className:"font-medium",to:u("/settings/group_settings/:id/edit",{id:s.group_settings_id}),children:(h=s.group_settings)==null?void 0:h.name})]}),s.website&&e.jsxs("div",{className:"flex flex-col space-y-1",children:[e.jsx("span",{className:"text-sm font-medium",style:{color:l.$22},children:t("website")}),e.jsx(I,{className:"font-medium",to:s.website,external:!0,style:{textAlign:"left"},children:s.website})]}),s.vat_number.length>1&&e.jsxs("div",{className:"flex flex-col space-y-1",children:[e.jsx("span",{className:"text-sm font-medium",style:{color:l.$22},children:t("vat_number")}),e.jsx("span",{className:"text-sm font-medium",style:{color:l.$3},children:s.vat_number})]}),s.phone.length>1&&e.jsxs("div",{className:"flex flex-col space-y-1",children:[e.jsx("span",{className:"text-sm font-medium",style:{color:l.$22},children:t("phone")}),e.jsx("span",{className:"text-sm font-medium",style:{color:l.$3},children:s.phone})]}),parseFloat(s.settings.default_task_rate)>0&&e.jsxs("div",{className:"flex flex-col space-y-1",children:[e.jsx("span",{className:"text-sm font-medium",style:{color:l.$22},children:t("task_rate")}),e.jsx("span",{className:"text-sm font-medium font-mono",style:{color:l.$3},children:s.settings.default_task_rate?c(s.settings.default_task_rate,s.country_id,s.settings.currency_id):c(a.settings.default_task_rate,s.country_id,a.settings.currency_id)})]}),!1,d()&&e.jsx("div",{className:"flex flex-col space-y-1",children:["client1","client2","client3","client4"].map(j=>{const b=r(j).label(),f=s[`custom_value${j.slice(-1)}`];return!!(b&&f)&&e.jsxs("div",{className:"flex flex-col space-y-1",children:[e.jsx("span",{className:"text-sm font-medium",style:{color:l.$22},children:b}),e.jsx("span",{className:"text-sm font-medium",style:{color:l.$3},children:x(j,f)})]},j)})})]})})})}function He(i){const{client:t}=i,[s]=v(),l=$(),a=Y();return e.jsx(e.Fragment,{children:t&&e.jsx(k,{title:s("standing"),className:"col-span-12 lg:col-span-6 xl:col-span-4 2xl:col-span-3 shadow-sm h-full 2xl:h-max p-4",style:{borderColor:l.$24},withoutPadding:!0,children:e.jsxs("div",{className:"flex flex-col h-44 overflow-y-auto",children:[e.jsxs("div",{className:"flex justify-between border-b border-dashed pt-1.5 pb-3",style:{borderColor:l.$24},children:[e.jsx("span",{className:"text-sm font-medium",style:{color:l.$17},children:s("paid_to_date")}),e.jsx("span",{className:"text-sm font-mono",children:a(t.paid_to_date,t.country_id,t.settings.currency_id)})]}),e.jsxs("div",{className:"flex justify-between border-b border-dashed py-3",style:{borderColor:l.$24},children:[e.jsx("span",{className:"text-sm font-medium",style:{color:l.$17},children:s("outstanding")}),e.jsx("span",{className:"text-sm font-mono",children:a(t.balance,t.country_id,t.settings.currency_id)})]}),e.jsxs("div",{className:"flex justify-between border-b border-dashed py-3",style:{borderColor:l.$24},children:[e.jsx("span",{className:"text-sm font-medium",style:{color:l.$17},children:s("credit_balance")}),e.jsx("span",{className:"text-sm font-mono",children:a(t.credit_balance,t.country_id,t.settings.currency_id)})]}),e.jsxs("div",{className:"flex justify-between border-b border-dashed py-3",style:{borderColor:l.$24},children:[e.jsx("span",{className:"text-sm font-medium",style:{color:l.$17},children:s("payment_balance")}),e.jsx("span",{className:"text-sm font-mono",children:a(t.payment_balance,t.country_id,t.settings.currency_id)})]})]})})})}const M=ee.div` &:hover { background-color: ${i=>i.theme.hoverBgColor}; } `;function Oe(i){const[t]=v(),{client:s}=i,{isAdmin:l}=me(),a=$(),{data:c}=ue(),[r,x]=y.useState(!1),[d,h]=y.useState(),[j,b]=y.useState(!1),[f,N]=y.useState(""),_=n=>d==null?void 0:d.find(({id:g})=>g===n),w=n=>!!(n&&(n==="d14dd26a37cecc30fdd65700bfb55b23"||n==="d14dd26a47cecc30fdd65700bfb67b34")),o=()=>{f&&!j&&(B.processing(),b(!0),V("DELETE",L("/api/v1/client_gateway_tokens/:id",{id:f})).then(()=>{B.success("success"),D(["clients"]),N(""),x(!1)}).finally(()=>b(!1)))},m=n=>{V("POST",L("/api/v1/client_gateway_tokens/:id/setAsDefault",{id:n})).then(()=>{B.success("success"),D(["clients"])})};return y.useEffect(()=>{c&&h(c.data.data)},[c]),y.useEffect(()=>{f&&x(!0)},[f]),e.jsxs(e.Fragment,{children:[e.jsx(Z,{title:t("are_you_sure"),visible:r,onClose:()=>x(!1),children:e.jsxs("div",{className:"flex flex-col space-y-6",children:[e.jsx("span",{className:"font-medium text-sm",children:t("are_you_sure")}),e.jsx(K,{behavior:"button",onClick:()=>o(),disabled:!1,disableWithoutIcon:!0,children:t("continue")})]})}),e.jsx(k,{title:t("payment_methods"),className:"h-full 2xl:h-max col-span-12 lg:col-span-6 xl:col-span-5 2xl:col-span-4 shadow-sm p-4",style:{borderColor:a.$24},withoutPadding:!0,children:e.jsx("div",{className:"flex flex-col h-44 overflow-y-auto text-sm",children:s.gateway_tokens.map(n=>{var g,C,P,p,S;return e.jsx("div",{className:F("flex flex-col space-y-1.5 border-b border-dashed py-4",{"h-22":!n.is_default,"h-20":n.is_default}),style:{borderColor:a.$24},children:e.jsxs("div",{className:"flex items-center justify-between h-12",children:[e.jsxs("div",{className:"flex flex-col space-y-1.5",children:[e.jsxs("div",{className:"inline-flex items-center space-x-1",children:[e.jsx("div",{children:e.jsx(xe,{fontSize:22})}),e.jsxs("div",{className:"inline-flex items-center",children:[e.jsx("span",{children:t("gateway")}),e.jsx(he,{size:20}),e.jsx(I,{to:u("/settings/gateways/:id/edit",{id:n.company_gateway_id}),children:(g=_(n.company_gateway_id))==null?void 0:g.label})]})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(pe,{name:n.meta.brand}),e.jsxs("div",{className:"flex items-center",style:{color:a.$17},children:[e.jsx("span",{className:"mt-1",children:"****"}),e.jsx("span",{className:"ml-1",children:n.meta.last4})]}),e.jsxs("span",{style:{color:a.$17},children:[n.meta.exp_month,"/",n.meta.exp_year]})]})]}),e.jsxs("div",{className:F("flex flex-col items-end h-full",{"justify-center":!w((C=_(n.company_gateway_id))==null?void 0:C.gateway_key)&&n.is_default,"justify-between":w((P=_(n.company_gateway_id))==null?void 0:P.gateway_key)&&(n.is_default||!n.is_default),"justify-end":!n.is_default&&!w((p=_(n.company_gateway_id))==null?void 0:p.gateway_key)}),children:[w((S=_(n.company_gateway_id))==null?void 0:S.gateway_key)&&e.jsx(I,{external:!0,to:u("https://dashboard.stripe.com/customers/:customerReference",{customerReference:n.gateway_customer_reference}),withoutExternalIcon:!0,children:e.jsx(E,{element:fe,size:18})}),n.is_default?e.jsxs("div",{className:"inline-flex items-center text-xs",style:{height:"1.5rem"},children:[e.jsx("div",{className:"flex items-center border pr-2 pl-3 rounded-l-full h-full",style:{borderColor:a.$5,backgroundColor:a.$5},children:t("default")}),l&&e.jsx(U,{className:"rounded-bl-none rounded-tl-none h-full px-1 border-gray-200 border-l-1 border-y-0 border-r-0",customLabel:e.jsx(M,{className:"cursor-pointer pl-1 pr-2 border border-l-0 rounded-r-full h-full",style:{borderColor:a.$5,paddingTop:"0.24rem",paddingBottom:"0.24rem"},theme:{hoverBgColor:a.$4},children:e.jsx(q,{size:"0.9rem",color:a.$3})}),minWidth:"9rem",maxWidth:"11rem",children:e.jsx(H,{icon:e.jsx(E,{element:O}),onClick:()=>N(n.id),children:t("delete")})})]}):e.jsxs("div",{className:"inline-flex items-center text-xs cursor-pointer self-end",style:{height:"1.5rem"},children:[e.jsx(M,{className:"flex items-center border pr-2 pl-3 rounded-l-full h-full",onClick:()=>m(n.id),style:{borderColor:a.$5},theme:{hoverBgColor:a.$5},children:t("save_as_default")}),l&&e.jsx(U,{className:"rounded-bl-none rounded-tl-none h-full px-1 border-l-1 border-y-0 border-r-0",customLabel:e.jsx(M,{className:"cursor-pointer pl-1 pr-2 border border-l-0 rounded-r-full h-full",style:{borderColor:a.$5,paddingTop:"0.26rem",paddingBottom:"0.26rem"},theme:{hoverBgColor:a.$4},children:e.jsx(q,{size:"0.9rem",color:a.$3})}),minWidth:"10rem",maxWidth:"12rem",style:{borderColor:a.$5},children:e.jsx(H,{icon:e.jsx(E,{element:O}),onClick:()=>N(n.id),children:t("delete")})})]})]})]})},n.id)})})})]})}function qe(i){const[t]=v(),s=ye(),l=se(),a=te(),{id:c}=ae(),{client:r}=i;let x=[{name:t("invoices"),href:u("/clients/:id",{id:c})},{name:t("quotes"),href:u("/clients/:id/quotes",{id:c})},{name:t("payments"),href:u("/clients/:id/payments",{id:c})},{name:t("recurring_invoices"),href:u("/clients/:id/recurring_invoices",{id:c})},{name:t("credits"),href:u("/clients/:id/credits",{id:c})},{name:t("projects"),href:u("/clients/:id/projects",{id:c})},{name:t("tasks"),href:u("/clients/:id/tasks",{id:c})},{name:t("expenses"),href:u("/clients/:id/expenses",{id:c})},{name:t("recurring_expenses"),href:u("/clients/:id/recurring_expenses",{id:c})},{name:`${t("history")} / ${t("activity")}`,href:u("/clients/:id/history_and_activities",{id:c})},{name:t("documents"),href:u("/clients/:id/documents_overview",{id:c}),enabled:l("view_client")||l("edit_client")||a(r),formatName:()=>{var d;return e.jsx(be,{numberOfDocuments:(d=r==null?void 0:r.documents)==null?void 0:d.length})}},{name:t("settings"),href:u("/clients/:id/settings_configuration",{id:c})}];return je.forEach(d=>{s(d.bitmask)||(x=x.filter(h=>h.name!==t(d.label)))}),x}function Qe(i){const[t]=v(),{client:s}=i,l=$(),a=R();return e.jsx(e.Fragment,{children:!!(s&&s.public_notes)&&e.jsx(k,{title:t("public_notes"),className:"h-full 2xl:h-max col-span-12 lg:col-span-6 xl:col-span-4 2xl:col-span-3 shadow-sm p-4",style:{borderColor:l.$24},withoutPadding:!0,children:e.jsx("div",{className:"whitespace-normal h-44 overflow-y-auto pt-1",children:e.jsx("article",{className:F("prose prose-sm",{"prose-invert":a==null?void 0:a.dark_mode}),dangerouslySetInnerHTML:{__html:le(s.public_notes)}})})})})}function Xe(i){const[t]=v(),{client:s}=i,l=$(),a=R();return e.jsx(e.Fragment,{children:!!(s&&s.private_notes)&&e.jsx(k,{title:t("private_notes"),className:"h-full 2xl:h-max col-span-12 lg:col-span-6 xl:col-span-4 2xl:col-span-3 shadow-sm p-4",style:{borderColor:l.$24},withoutPadding:!0,children:e.jsx("div",{className:"whitespace-normal h-44 overflow-y-auto pt-1",children:e.jsx("article",{className:F("prose prose-sm",{"prose-invert":a==null?void 0:a.dark_mode}),dangerouslySetInnerHTML:{__html:le(s.private_notes)}})})})})}function Ye(i){var c,r;const{t}=v(),{client:s}=i,l=$(),a=J();return e.jsx(e.Fragment,{children:s&&e.jsx(k,{title:t("address"),withoutTruncate:!0,className:"shadow-sm h-full 2xl:h-max col-span-12 lg:col-span-6 xl:col-span-4 2xl:col-span-3 p-4",style:{borderColor:l.$24},withoutPadding:!0,children:e.jsxs("div",{className:"flex flex-col pt-1 h-44 overflow-y-auto",children:[(s.address1||s.address2)&&e.jsxs("span",{className:"break-all text-sm font-medium",style:{color:l.$3},children:[s.address1.length>0&&s.address1,s.address1.length>0&&e.jsx("br",{}),s.address2]}),(s.city||s.state||s.postal_code)&&e.jsxs("span",{className:"break-all text-sm font-medium",style:{color:l.$3},children:[s.city.length>0&&s.city," ",s.state," ",s.postal_code.length>0&&s.postal_code]}),((c=a(s.country_id))==null?void 0:c.name)&&e.jsx("span",{className:"break-all text-sm font-medium",style:{color:l.$3},children:(r=a(s.country_id))==null?void 0:r.name})]})})})}const Je=ee.div` background-color: ${i=>i.theme.backgroundColor}; border-color: ${i=>i.theme.borderColor}; &:hover { background-color: ${i=>i.theme.hoverColor}; } `,Ze=["details","address","contacts","standing","gateways","public_notes","private_notes"];function Ke(){var _,w;const[i]=v(),t=_e(),s=$(),l=ge(),[a,c]=y.useState(!1),[r,x]=y.useState(!1),[d,h]=y.useState([]),j=o=>{h(m=>m.filter(n=>n!==o))},b=()=>{var o,m;(m=(o=t==null?void 0:t.company_user)==null?void 0:o.react_settings)!=null&&m.client_show_cards?h(T.cloneDeep(t.company_user.react_settings.client_show_cards)):h(["details","address","contacts","standing"]),c(!1)},f=()=>{if(!r){B.processing(),x(!0);const o=T.cloneDeep(t);T.set(o,"company_user.react_settings.client_show_cards",d),V("PUT",L("/api/v1/company_users/:id",{id:o.id}),o).then(m=>{T.set(o,"company_user",m.data.data),D(["company_users"]),l(De(o)),l(Pe()),B.success(),c(!1)}).finally(()=>{x(!1)})}};y.useEffect(()=>{var o,m;(m=(o=t==null?void 0:t.company_user)==null?void 0:o.react_settings)!=null&&m.client_show_cards?h(T.cloneDeep(t.company_user.react_settings.client_show_cards.filter(n=>n!=="email_history"))):h(["details","address","contacts","standing"])},[(w=(_=t==null?void 0:t.company_user)==null?void 0:_.react_settings)==null?void 0:w.client_show_cards]);const N=o=>{var n;const m=ke(d,o.source.index,(n=o.destination)==null?void 0:n.index);h(m)};return e.jsxs(e.Fragment,{children:[e.jsx(Je,{className:"p-1.5 sm:p-[0.6rem] border rounded-md shadow-sm cursor-pointer",theme:{hoverColor:s.$4,backgroundColor:s.$1,borderColor:s.$24},onClick:()=>c(!0),children:e.jsx(ve,{size:"1.2rem",color:s.$3})}),e.jsx(Z,{title:i("edit_columns"),visible:a,onClose:b,overflowVisible:!0,children:e.jsxs("div",{className:"flex flex-col space-y-6",children:[e.jsx(Ne,{label:"",value:"",onValueChange:o=>h(m=>[...m,o]),clearAfterSelection:!0,customSelector:!0,children:Ze.filter(o=>!d.includes(o)).map(o=>e.jsx("option",{value:o,children:i(o)},o))}),d.length?e.jsx(we,{onDragEnd:N,children:e.jsx(Ce,{droppableId:"client-show-cards",renderClone:(o,m,n)=>e.jsxs("div",{className:"flex items-center justify-between text-sm",...o.draggableProps,...o.dragHandleProps,ref:o.innerRef,children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Q,{size:"1.2rem",color:s.$17}),e.jsx("span",{className:"font-medium",children:i((d||[])[n.source.index])})]}),e.jsx("div",{children:e.jsx(X,{color:s.$16,hoverColor:s.$3,borderColor:s.$5,hoverBorderColor:s.$17,size:"1.6rem"})})]}),children:o=>e.jsxs("div",{className:"flex flex-col",...o.droppableProps,ref:o.innerRef,children:[(d||[]).map((m,n)=>e.jsx($e,{draggableId:n.toString(),index:n,children:g=>y.createElement("div",{className:"flex items-center justify-between py-1.5",...g.draggableProps,ref:g.innerRef,key:n},e.jsxs("div",{className:"flex flex-1 items-center space-x-2 cursor-pointer",...g.dragHandleProps,children:[e.jsx("div",{children:e.jsx(Q,{size:"1.2rem",color:s.$17})}),e.jsx("span",{className:"font-medium",children:i(m)})]}),e.jsx("div",{className:"cursor-pointer",onClick:()=>j(m),children:e.jsx(X,{color:s.$16,hoverColor:s.$3,borderColor:s.$5,hoverBorderColor:s.$17,size:"1.6rem"})}))},n)),o.placeholder]})})}):e.jsxs("span",{className:"text-sm font-medium",style:{color:s.$3},children:[i("no_cards_selected"),"."]}),e.jsx(K,{behavior:"button",disableWithoutIcon:!0,disabled:r,onClick:f,children:i("save")})]})})]})}function as(){var P;const{documentTitle:i,setDocumentTitle:t}=Se("view_client"),[s]=v(),[l,a]=y.useState(!1),{id:c}=ae(),{data:r,isLoading:x}=Te({id:c,enabled:!!c&&!l}),d=R(),h=[{name:s("clients"),href:"/clients"},{name:i,href:u("/clients/:id",{id:c})}],j=qe({client:r}),b=Be({setIsPurgeOrMergeActionCalled:a}),f=Ie(),N=se(),_=te(),w=p=>{var z;const S=d.client_show_cards||["details","address","contacts","standing"];return p==="gateways"?(((z=r==null?void 0:r.gateway_tokens)==null?void 0:z.length)??0)>0&&S.includes(p):S.includes(p)},o=p=>{if(!r)return e.jsx(e.Fragment,{});switch(p){case"details":return e.jsx(Ue,{client:r});case"address":return e.jsx(Ye,{client:r});case"contacts":return e.jsx(We,{client:r});case"standing":return e.jsx(He,{client:r});case"gateways":return e.jsx(Oe,{client:r});case"public_notes":return e.jsx(Qe,{client:r});case"private_notes":return e.jsx(Xe,{client:r})}};y.useEffect(()=>(t((r==null?void 0:r.display_name)||"view_client"),()=>{a(!1)}),[r]);const{changeTemplateVisible:m,setChangeTemplateVisible:n,changeTemplateResources:g,changeTemplateEntityContext:C}=Fe();return A({on:"App\\Events\\Invoice\\InvoiceWasPaid",callback:()=>D(["invoices"])}),A({on:"App\\Events\\Payment\\PaymentWasUpdated",callback:()=>D(["payments"])}),A({on:["App\\Events\\Credit\\CreditWasCreated","App\\Events\\Credit\\CreditWasUpdated"],callback:()=>D(["credits"])}),e.jsxs(Ee,{title:i,breadcrumbs:h,navigationTopRight:r&&(N("edit_client")||_(r))&&e.jsx(ze,{resource:r,actions:b,saveButtonLabel:s("edit"),onSaveClick:()=>f(u("/clients/:id/edit",{id:c})),cypressRef:"clientActionDropdown"}),afterBreadcrumbs:e.jsxs("div",{className:"flex flex-1 justify-end items-center gap-2",children:[e.jsx(Ge,{entity:"client"}),e.jsx(Ke,{})]}),children:[x&&e.jsx(Ae,{}),r&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"grid grid-cols-12 lg:space-y-0 gap-4",children:(P=d.client_show_cards)==null?void 0:P.filter(p=>w(p)).map(p=>o(p))}),e.jsx(Me,{tabs:j,className:"mt-6"}),e.jsx("div",{className:"my-4",children:e.jsx(Ve,{context:{isPurgeOrMergeActionCalled:l,displayName:r.display_name}})}),e.jsx(Le,{entity:(C==null?void 0:C.entity)??"client",entities:g,visible:m,setVisible:n,labelFn:p=>e.jsxs("div",{className:"flex flex-col space-y-1",children:[e.jsx(Re,{children:s("number")}),e.jsx("span",{children:p.number})]}),bulkUrl:(C==null?void 0:C.endpoint)??"/api/v1/clients/bulk"})]})]})}export{as as default};
Copyright ©2021 || Defacer Indonesia