PageSourceSearch

https://mobcityvolleyball.com/shop-customer-detail.component-XN7HT3NM.js

js mobcityvolleyball.com collected 2026-09-28 10:01:17 UTC 7,433 bytes, 2 lines download raw bytes

1import{d as c}from"./chunk-6QC45PC7.js";import{a as Q}from"./chunk-6X56YFIP.js";import"./chunk-IVW2N2QS.js";import"./chunk-UXZC53DC.js";import"./chunk-WDSU2INV.js";import"./chunk-QE2EB3MU.js";import{a as z,d as G,g as J,k as K}from"./chunk-QB35ISUD.js";import"./chunk-TPWBKR5T.js";import"./chunk-MAMG26DH.js";import"./chunk-S43XRXZW.js";import"./chunk-HDZZRM2M.js";import"./chunk-QQEPAJQ6.js";import"./chunk-REOLKVZA.js";import"./chunk-4WRARVBQ.js";import"./chunk-TGRBT4WK.js";import{a as b}from"./chunk-HKESKKTN.js";import"./chunk-B5GJ42QH.js";import"./chunk-IRO2TKYC.js";import"./chunk-ZODBMDVC.js";import{d as R,l as j}from"./chunk-ST3O4A2Y.js";import"./chunk-T5CHBPBL.js";import"./chunk-UCUZP7UP.js";import"./chunk-Y75ZLUWW.js";import"./chunk-VAND4FLG.js";import"./chunk-PG3N3OH3.js";import"./chunk-OH3XPIE7.js";import"./chunk-F52YO2KE.js";import{k as V,l as U}from"./chunk-WL2AKVEY.js";import"./chunk-VTC5CDGU.js";import"./chunk-4TCMQCZ6.js";import{H,X as q}from"./chunk-RZJZCBNV.js";import"./chunk-CGVZASLH.js";import"./chunk-KYKWM2QE.js";import"./chunk-TQE26OVK.js";import"./chunk-ZY52JLQ2.js";import"./chunk-WUHLWO3B.js";import"./chunk-E6N7HR7J.js";import{ha as F,la as L,sa as $}from"./chunk-B2X2NDPJ.js";import"./chunk-FPPZ4BUR.js";import{Ad as o,Bd as C,Cd as d,Ed as A,Ib as k,Ja as f,Mc as p,Ob as a,Oc as u,Pc as w,Qa as y,Qc as O,Ra as T,Rc as v,Sc as S,Tc as I,Uc as n,Vc as i,Wc as B,be as _,cd as N,ce as P,de as h,fc as M,jd as g,ld as m,ne as D}from"./chunk-A2T27MTO.js";import"./chunk-DAZ3MHQI.js";import"./chunk-JQE4WEKA.js";import"./chunk-QHBN7R45.js";import"./chunk-WYFIINDB.js";import"./chunk-XFB3PWAV.js";var W=(e,r)=>r.id;function X(e,r){if(e&1&&B(0,"img",4),e&2){let t=m();I("src",t.photoURL,k)("alt",t.displayName)}}function Y(e,r){e&1&&(n(0,"mat-icon",5),o(1,"person"),i())}function Z(e,r){if(e&1&&(n(0,"p",7),o(1),i()),e&2){let t=m();a(),C(t.email)}}function tt(e,r){if(e&1&&(n(0,"p",8),o(1),i()),e&2){let t=m();a(),C(t.phone)}}function et(e,r){if(e&1&&(n(0,"mat-chip"),o(1),i()),e&2){let t=r.$implicit;a(),C(t)}}function it(e,r){if(e&1&&(n(0,"div",14)(1,"h3",18),o(2,"Tags"),i(),n(3,"mat-chip-set"),v(4,et,2,1,"mat-chip",null,O),i()()),e&2){let t=m();a(4),S(t.tags)}}function nt(e,r){if(e&1&&(n(0,"div",15)(1,"h3",18),o(2,"Notes"),i(),n(3,"p",19),o(4),i()()),e&2){let t=m();a(4),C(t.notes)}}function ot(e,r){if(e&1&&o(0),e&2){let t=r.$implicit,l=r.$index,s=r.$count;A(" ",t.quantity,"x ",t.productName,"",l===s-1?"":", "," ")}}function rt(e,r){if(e&1){let t=N();n(0,"div",20),g("click",function(){let s=y(t).$implicit,x=m(2);return T(x.viewOrder(s.id))}),n(1,"div",21)(2,"div",22)(3,"span",23),o(4),i(),n(5,"mat-chip-set")(6,"mat-chip",24)(7,"mat-icon",25),o(8),i(),o(9),_(10,"titlecase"),i()()(),n(11,"div",26),v(12,ot,1,3,null,null,w),i(),n(14,"div",27),o(15),_(16,"date"),i()(),n(17,"div",28)(18,"div",29),o(19),_(20,"currency"),i()()()}if(e&2){let t=r.$implicit,l=m(2);a(4),d(" #",t.id.slice(0,8)," "),a(2),I("color",l.statusColor(t.status)),a(2),C(l.statusIcon(t.status)),a(),d(" ",P(10,6,t.status)," "),a(3),S(t.items),a(3),d(" ",h(16,8,t.createdAt,"medium")," "),a(4),d(" ",h(20,11,t.total,t.currency)," ")}}function at(e,r){e&1&&(n(0,"p",30),o(1," No orders found for this customer. "),i())}function lt(e,r){if(e&1&&p(0,at,2,0,"p",30),e&2){let t=m(2);u(t.customerOrders()!==null?0:-1)}}function st(e,r){if(e&1&&(n(0,"div",2)(1,"div",3),p(2,X,1,2,"img",4)(3,Y,2,0,"mat-icon",5),i(),n(4,"div")(5,"h2",6),o(6),i(),p(7,Z,2,1,"p",7),p(8,tt,2,1,"p",8),i()(),n(9,"div",9)(10,"div",10)(11,"p",11),o(12,"Total Spent"),i(),n(13,"p",12),o(14),_(15,"currency"),i()(),n(16,"div",10)(17,"p",11),o(18,"Orders"),i(),n(19,"p",12),o(20),i()(),n(21,"div",10)(22,"p",11),o(23,"First Order"),i(),n(24,"p",13),o(25),_(26,"date"),i()(),n(27,"div",10)(28,"p",11),o(29,"Last Order"),i(),n(30,"p",13),o(31),_(32,"date"),i()()(),p(33,it,6,0,"div",14),p(34,nt,5,1,"div",15),n(35,"div")(36,"h3",16),o(37,"Order History"),i(),v(38,rt,21,14,"div",17,W,!1,lt,1,1),i()),e&2){let t=r,l=m();a(2),u(t.photoURL?2:3),a(4),d(" ",t.displayName||t.email," "),a(),u(t.displayName?7:-1),a(),u(t.phone?8:-1),a(6),d(" ",h(15,11,t.totalSpent,t.currency)," "),a(6),d(" ",t.totalOrders," "),a(5),d(" ",h(26,14,t.firstOrderAt,"mediumDate")," "),a(6),d(" ",h(32,17,t.lastOrderAt,"mediumDate")," "),a(2),u(t.tags!=null&&t.tags.length?33:-1),a(),u(t.notes?34:-1),a(4),S(l.customerOrders())}}function mt(e,r){e&1&&(n(0,"p",1),o(1," Customer not found. "),i())}var Dt=(()=>
1{let r=class r{constructor(){this.route=f(H),this.router=f(q),this.shopService=f(Q),this.customerId=decodeURIComponent(this.route.snapshot.paramMap.get("customerId")??""),this.shopId=this.shopService.shopId,this.customer=D(()=>{let l=this.shopService.customers();return l?l.find(s=>s.id===this.customerId)??null:null}),this.customerOrders=D(()=>{let l=this.shopService.orders(),s=this.customer();return!l||!s?null:l.filter(x=>s.userId&&x.userId===s.userId||s.email&&x.buyerEmail===s.email)})}statusIcon(l){switch(l){case c.PENDING:return"hourglass_empty";case c.PAID:return"paid";case c.SHIPPED:return"local_shipping";case c.DELIVERED:return"check_circle";case c.CANCELLED:return"cancel";default:return"help"}}statusColor(l){switch(l){case c.PAID:return"primary";case c.SHIPPED:return"accent";case c.DELIVERED:return"";case c.CANCELLED:return"warn";default:return""}}goBack(){let l=this.shopId();l&&this.router.navigate([b.shop.customers(l)])}viewOrder(l){let s=this.shopId();s&&this.router.navigate([b.shop.orderDetail(s,l)])}};r.\u0275fac=function(s){return new(s||r)},r.\u0275cmp=M({type:r,selectors:[["app-shop-customer-detail"]],decls:6,vars:1,consts:[["mat-button","",1,"mb-4",3,"click"],[1,"py-8","text-sm","text-center","text-slate-500"],[1,"flex","items-center","gap-4","mb-6"],[1,"flex","items-center","justify-center","w-16","h-16","rounded-full","bg-slate-200","text-slate-600","shrink-0"],[1,"object-cover","w-16","h-16","rounded-full",3,"src","alt"],[1,"!text-3xl"],[1,"text-xl","font-semibold","text-slate-900"],[1,"text-sm","text-slate-500"],[1,"text-sm","text-slate-400"],[1,"grid","grid-cols-2","gap-4","mb-6","lg:grid-cols-4"],[1,"p-4","border","rounded"],[1,"text-xs","font-medium","text-slate-500"],[1,"mt-1","text-lg","font-semibold","text-slate-900"],[1,"mt-1","text-sm","font-semibold","text-slate-900"],[1,"mb-6"],[1,"p-4","mb-6","border","rounded"],[1,"mb-3","text-sm","font-semibold","text-slate-700"],[1,"flex","items-center","justify-between","gap-4","p-4","mt-2","border","rounded","cursor-pointer","hover:bg-slate-50"],[1,"mb-2","text-sm","font-semibold","text-slate-700"],[1,"text-sm","text-slate-600"],[1,"flex","items-center","justify-between","gap-4","p-4","mt-2","border","rounded","cursor-pointer","hover:bg-slate-50",3,"click"],[1,"flex-1","min-w-0"],[1,"flex","items-center","gap-2"],[1,"text-sm","font-medium","text-slate-900"],["highlighted","",3,"color"],["matChipAvatar",""],[1,"mt-1","text-sm","text-slate-600"],[1,"mt-1","text-xs","text-slate-400"],[1,"text-right","shrink-0"],[1,"text-lg","font-semibold","text-slate-900"],[1,"py-4","text-sm","text-center","text-slate-500"]],template:function(s,x){if(s&1&&(n(0,"button",0),g("click",function(){return x.goBack()}),n(1,"mat-icon"),o(2,"arrow_back"),i(),o(3,` Back to Customers
2`),i(),p(4,st,41,20)(5,mt,2,0,"p",1)),s&2){let E;a(4),u((E=x.customer())?4:5,E)}},dependencies:[j,R,K,G,z,J,U,V,$,L,F],encapsulation:2});let e=r;return e})();export{Dt as ShopCustomerDetailComponent};

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.