1import{a as Y}from"./chunk-6BSL4YM3.js";import{a as Ee}from"./chunk-SZRQGWQI.js";import{a as ke}from"./chunk-JISM4AVB.js";import"./chunk-SPK32PII.js";import{a as Oe,b as we,i as y}from"./chunk-RHD6BBWP.js";import{a as be}from"./chunk-JH2GJLLD.js";import{hb as Se}from"./chunk-GNOMKHH2.js";import"./chunk-MIYW5325.js";import"./chunk-FJFH4XCE.js";import"./chunk-T52FVTMS.js";import{u as le,v as pe}from"./chunk-4I6Y24VE.js";import"./chunk-VHBEXHUY.js";import{e as fe}from"./chunk-IXNXTOPZ.js";import"./chunk-GGY6QDTV.js";import"./chunk-3WQEZLC2.js";import{a as ve}from"./chunk-DB7AUQFG.js";import"./chunk-GLFTJW2T.js";import{c as de,f as me,g as he,h as ue,i as _e,j as xe,w as ge,y as Ce}from"./chunk-BHLMCFFK.js";import"./chunk-NP4PC25X.js";import"./chunk-D6IOGJMO.js";import{m as ce}from"./chunk-MKJMCBBH.js";import"./chunk-KKDZHWJ2.js";import"./chunk-RS4X3CMD.js";import{a as q}from"./chunk-7DHSGR33.js";import{g as ae,i as B}from"./chunk-4KDBBJRG.js";import{f as re}from"./chunk-3SEIXLDK.js";import{b as se,c as U,d as F}from"./chunk-UIEAU6S2.js";import{k as N,l as H,r as oe,x as R}from"./chunk-H3Y6JSWE.js";import{Ea as Q,Ec as M,Fc as I,Gc as V,Hb as E,Lc as ne,Nc as G,Oc as K,Pc as W,Rb as d,Sb as i,Tb as o,Ub as v,Uc as c,Vc as l,Wc as T,Yb as ee,Zb as te,bc as w,cb as Z,db as t,gc as f,ic as p,kd as A,mb as O,oa as _,pa as x,qa as S,ra as b,sb as P,uc as k,vc as ie,wa as J,wc as a,xc as m,yb as C,yc as u,zc as z}from"./chunk-AHLRJ2EW.js";import"./chunk-AMJ4GB2S.js";import"./chunk-OXDKANHF.js";import"./chunk-WGJEEJGF.js";import"./chunk-6ACFICIG.js";import"./chunk-K7BHMZHH.js";import"./chunk-FE7444LI.js";import"./chunk-XUHYVR5R.js";var Te=(n,h)=>({done:n,total:h});function He(n,h){n&1&&(S(),i(0,"svg",25),v(1,"path",26),o())}function Re(n,h){n&1&&(i(0,"span",27),a(1),c(2,"translate"),o()),n&2&&(t(),u(" \u2014 ",l(2,1,"V2.SHOP_ACCOUNT.CHECKLIST.STEP_COMPLETE")," "))}function Be(n,h){if(n&1){let e=w();i(0,"button",28),f("click",function(){_(e);let r=p().$implicit,g=p(3);return x(g.onStepAction(r))}),a(1),c(2,"translate"),o()}if(n&2){let e=p().$implicit;t(),u(" ",l(2,1,e.i18nBase+".ACTION")," ")}}function Ue(n,h){n&1&&(i(0,"span",29),a(1),c(2,"translate"),o()),n&2&&(t(),u(" ",l(2,1,"V2.SHOP_ACCOUNT.CHECKLIST.OWNER_ONLY")," "))}function Fe(n,h){if(n&1&&(i(0,"li",16)(1,"span",17),C(2,He,2,0,"svg",18),o(),i(3,"div",19)(4,"p",20),a(5),c(6,"translate"),C(7,Re,3,3,"span",21),o(),i(8,"p",22),a(9),c(10,"translate"),o()(),C(11,Be,3,3,"button",23)(12,Ue,3,3,"span",24),o()),n&2){let e=h.$implicit;k("checklist-step--done",e.complete),t(),k("checklist-status--done",e.complete),t(),d("ngIf",e.complete),t(3),u(" ",l(6,10,e.i18nBase+".TITLE")," "),t(2),d("ngIf",e.complete),t(2),m(l(10,12,e.i18nBase+".DESC")),t(2),d("ngIf",!e.complete&&e.actionable),t(),d("ngIf",!e.complete&&!e.actionable)}}function Le(n,h){if(n&1&&(i(0,"ol",14),C(1,Fe,13,14,"li",15),o()),n&2){let e=p(2);t(),d("ngForOf",e.steps)}}function De(n,h){if(n&1){let e=w();i(0,"section",1),c(1,"translate"),i(2,"div",2)(3,"div",3)(4,"h2",4),a(5),c(6,"translate"),o(),i(7,"p",5),c(8,"translate"),a(9),c(10,"translate"),o()(),i(11,"div",6)(12,"button",7),c(13,"translate"),f("click",function(){_(e);let r=p();return x(r.toggleCollapse())}),S(),i(14,"svg",8),v(15,"path",9),o()(),b(),i(16,"button",7),c(17,"translate"),f("click",function(){_(e);let r=p();return x(r.dismiss())}),S(),i(18,"svg",10),v(19,"line",11)(20,"line",12),o()()()(),C(21,Le,2,1,"ol",13),o()}if(n&2){let e=p();E("aria-label",l(1,13,"V2.SHOP_ACCOUNT.CHECKLIST.TITLE")),t(5),m(l(6,15,"V2.SHOP_ACCOUNT.CHECKLIST.TITLE")),t(2),E("aria-valuenow",e.completedCount)("aria-valuemin",0)("aria-valuemax",e.totalSteps)("aria-valuetext",T(8,17,"V2.SHOP_ACCOUNT.CHECKLIST.PROGRESS",W(27,Te,e.completedCount,e.totalSteps))),t(2),u(" ",T(10,20,"V2.SHOP_ACCOUNT.CHECKLIST.PROGRESS",W(30,Te,e.completedCount,e.totalSteps))," "),t(3),E("aria-expanded",!e.collapsed)("aria-label",l(13,23,e.collapsed?"V2.SHOP_ACCOUNT.CHECKLIST.EXPAND":"V2.SHOP_ACCOUNT.CHECKLIST.COLLAPSE")),t(2),k("checklist-chevron--up",!e.collapsed),t(2),E("aria-label",l(17,25,"V2.SHOP_ACCOUNT.CHECKLIST.DISMISS")),t(5),d("ngIf",!e.collapsed)}}var je="mech-ai:v2:shop-checklist:v1:",ye=(()=>{class n{constructor(e,s){this.router=e,this.cdr=s,this.editProfile=new J,this.collapsed=!1,this.dismissed=!1,this.loadedForShopI
1d=null}ngOnChanges(e){e.shop&&this.shop&&this.shop.id!==this.loadedForShopId&&(this.loadedForShopId=this.shop.id,this.loadPrefs())}get profileComplete(){return!!this.shop.name?.trim()&&!!this.shop.address?.trim()&&!!this.shop.phone?.trim()}get customerVehicleComplete(){return(this.shop.activeCustomerVehicleCount??0)>=1}get repairOrderComplete(){return(this.shop.repairOrderCount??0)>=1}get invoiceComplete(){return(this.shop.invoiceCount??0)>=1}get isOwner(){return this.shop.currentUserRole==="Owner"}get steps(){let e="V2.SHOP_ACCOUNT.CHECKLIST.STEPS";return[{key:"profile",i18nBase:`${e}.PROFILE`,complete:this.profileComplete,actionable:this.isOwner},{key:"customerVehicle",i18nBase:`${e}.CUSTOMER_VEHICLE`,complete:this.customerVehicleComplete,actionable:!0},{key:"repairOrder",i18nBase:`${e}.REPAIR_ORDER`,complete:this.repairOrderComplete,actionable:!0},{key:"invoice",i18nBase:`${e}.INVOICE`,complete:this.invoiceComplete,actionable:!0}]}get totalSteps(){return 4}get completedCount(){return this.steps.filter(e=>e.complete).length}get allComplete(){return this.completedCount>=this.totalSteps}get shouldRender(){return!!this.shop&&!this.allComplete&&!this.dismissed}onStepAction(e){if(!(e.complete||!e.actionable))switch(e.key){case"profile":this.editProfile.emit();break;case"customerVehicle":this.router.navigate(["/v2/shop-account/customers"]);break;case"repairOrder":this.router.navigate(["/v2/shop-account/repair-orders"],{queryParams:{newRo:"1"}});break;case"invoice":this.router.navigate(["/v2/shop-account/invoices"]);break}}toggleCollapse(){this.collapsed=!this.collapsed,this.savePrefs(),this.cdr.markForCheck()}dismiss(){this.dismissed=!0,this.savePrefs(),this.cdr.markForCheck()}storageKey(){return`${je}${this.shop.id}`}loadPrefs(){this.collapsed=!1,this.dismissed=!1;let e=q.getItem(this.storageKey());if(e)try{let s=JSON.parse(e);this.collapsed=!!s.collapsed,this.dismissed=!!s.dismissed}catch{}}savePrefs(){q.setItem(this.storageKey(),JSON.stringify({collapsed:this.collapsed,dismissed:this.dismissed}))}static{this.\u0275fac=function(s){return new(s||n)(O(B),O(A))}}static{this.\u0275cmp=P({type:n,selectors:[["app-shop-activation-checklist"]],inputs:{shop:"shop"},outputs:{editProfile:"editProfile"},features:[Q],decls:1,vars:1,consts:[["class","checklist-card",4,"ngIf"],[1,"checklist-card"],[1,"checklist-head"],[1,"checklist-head__text"],[1,"checklist-title"],["role","progressbar",1,"checklist-progress"],[1,"checklist-head__actions"],["type","button",1,"checklist-icon-btn",3,"click"],["aria-hidden","true","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"checklist-chevron"],["d","m6 9 6 6 6-6"],["aria-hidden","true","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"checklist-x"],["x1","18","y1","6","x2","6","y2","18"],["x1","6","y1","6","x2","18","y2","18"],["class","checklist-steps",4,"ngIf"],[1,"checklist-steps"],["class","checklist-step",3,"checklist-step--done",4,"ngFor","ngForOf"],[1,"checklist-step"],["aria-hidden","true",1,"checklist-status"],["class","checklist-check","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","3","stroke-linecap","round","stroke-linejoin","round",4,"ngIf"],[1,"checklist-step__body"],[1,"checklist-step__title"],["class","tw-sr-only",4,"ngIf"],[1,"checklist-step__desc"],["type","button","class","checklist-step__action",3,"click",4,"ngIf"],["class","checklist-step__hint",4,"ngIf"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","3","stroke-linecap","round","stroke-linejoin","round",1,"checklist-check"],["d","M20 6 9 17l-5-5"],[1,"tw-sr-only"],["type","button",1,"checklist-step__action",3,"click"],[1,"checklist-step__hint"]],template:function(s,r){s&1&&C(0,De,22,33,"section",0),s&2&&d("ngIf",r.shouldRender)},dependencies:[R,N,H,F,U],styles:[".checklist-card[_ngcontent-%COMP%]{background:var(--color-surface);border:1px solid var(--color-primary-100);border-radius:16px;padding:20px 24px;margin-bottom:24px}.checklist-head[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.checklist-head__text[_ngcontent-%COMP%]{min-width:0}.checklist-head__actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;flex-shrink:0}.checklist-title[_ngcontent-%COMP%]{font-size:15px;font-weight:700;color:var(--color-text);margin:0 0 2px}.checklist-progress[_ngcontent-%COMP%]{font-size:13px;font-weight:600;color:var(--color-primary);margin:0}.checklist-icon-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:none;background:transparent;color:var(--color-text-muted);border-radius:12px;cursor:pointer;transition:background-color .15s,color .15s}.checklist-icon-btn[_ngcontent-%COMP%]:hover{background:var(--color-surface-2);color:var(--color-text)}.checklist-icon-btn[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.checklist-chevron[_ngcontent-%COMP%]{width:20px;height:20px;transition:transform .15s ease}.checklist-chevron--up[_ngcontent-%COMP%]{transform:rotate(180deg)}.checklist-x[_ngcontent-%COMP%]{width:18px;height:18px}.checklist-steps[_ngcontent-%COMP%]{list-style:none;margin:16px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}.checklist-step[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:8px 0}.checklist-step[_ngcontent-%COMP%] + .checklist-step[_ngcontent-%COMP%]{border-top:1px solid var(--color-border)}.checklist-status[_ngcontent-%COMP%]{flex-shrink:0;width:24px;height:24px;border-radius:9999px;border:2px solid var(--color-border-strong);background:var(--color-surface);display:flex;align-items:center;justify-content:center}.checklist-status--done[_ngcontent-%COMP%]{border-color:var(--color-primary);background:var(--color-primary);color:var(--color-text-inverse)}.checklist-check[_ngcontent-%COMP%]{width:14px;
1height:14px}.checklist-step__body[_ngcontent-%COMP%]{flex:1;min-width:0}.checklist-step__title[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:var(--color-text);margin:0}.checklist-step--done[_ngcontent-%COMP%] .checklist-step__title[_ngcontent-%COMP%]{color:var(--color-text-muted);text-decoration:line-through}.checklist-step__desc[_ngcontent-%COMP%]{font-size:12px;color:var(--color-text-muted);margin:2px 0 0}.checklist-step__action[_ngcontent-%COMP%]{flex-shrink:0;min-height:44px;padding:8px 16px;border-radius:12px;background:var(--color-primary);color:var(--color-text-inverse);border:none;font-size:13px;font-weight:600;cursor:pointer;transition:background-color .15s}.checklist-step__action[_ngcontent-%COMP%]:hover{background:var(--color-primary-hover)}.checklist-step__action[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.checklist-step__hint[_ngcontent-%COMP%]{flex-shrink:0;font-size:12px;font-style:italic;color:var(--color-text-faint)}@media(max-width:639.98px){.checklist-card[_ngcontent-%COMP%]{padding:16px}.checklist-step[_ngcontent-%COMP%]{flex-wrap:wrap}.checklist-step__action[_ngcontent-%COMP%]{width:100%}}"],changeDetection:0})}}return n})();var ze=()=>[1,2,3,4],Pe=n=>({count:n}),Ge=()=>[1,2,3];function Ke(n,h){if(n&1){let e=w();i(0,"button",19),f("click",function(){_(e);let r=p(2);return x(r.onEditShopInfo())}),a(1),c(2,"translate"),o()}n&2&&(t(),u(" ",l(2,1,"V2.SHOP_ACCOUNT.SETUP_BANNER_COMPLETE")," "))}function We(n,h){if(n&1){let e=w();i(0,"div",7)(1,"div",8),S(),i(2,"svg",9),v(3,"circle",10)(4,"path",11)(5,"path",12),o()(),b(),i(6,"div",13)(7,"h2",14),a(8),c(9,"translate"),o(),i(10,"p",15),a(11),c(12,"translate"),o()(),i(13,"div",16),C(14,Ke,3,3,"button",17),i(15,"button",18),f("click",function(){_(e);let r=p();return x(r.dismissSetupBanner())}),a(16),c(17,"translate"),o()()()}if(n&2){let e=p();t(8),m(l(9,4,"V2.SHOP_ACCOUNT.SETUP_BANNER_TITLE")),t(3),m(l(12,6,"V2.SHOP_ACCOUNT.SETUP_BANNER_BODY")),t(3),d("ngIf",e.isOwner),t(2),u(" ",l(17,8,"V2.SHOP_ACCOUNT.GOT_IT")," ")}}function qe(n,h){if(n&1){let e=w();i(0,"div",20)(1,"p",21),a(2),o(),i(3,"button",22),f("click",function(){_(e);let r=p();return x(r.onEditShopInfo())}),a(4),c(5,"translate"),o()()}if(n&2){let e=p();t(2),m(e.shop.name),t(2),u(" ",l(5,2,"V2.SHOP_ACCOUNT.EDIT_SHOP_INFO")," ")}}function Ye(n,h){n&1&&(i(0,"div",25),v(1,"div",26)(2,"div",27),o())}function $e(n,h){n&1&&(i(0,"div",23),C(1,Ye,3,0,"div",24),o()),n&2&&(t(),d("ngForOf",G(1,ze)))}function Xe(n,h){if(n&1){let e=w();i(0,"div",28)(1,"div",29),S(),i(2,"svg",30),v(3,"circle",10)(4,"line",31)(5,"line",32),o(),b(),i(6,"div",33)(7,"h2",34),a(8),c(9,"translate"),o(),i(10,"p",35),a(11),o(),i(12,"button",36),f("click",function(){_(e);let r=p();return x(r.onRetry())}),a(13),c(14,"translate"),o()()()()}if(n&2){let e=p();t(8),u(" ",l(9,3,"V2.SHOP_ACCOUNT.COULDNT_LOAD")," "),t(3),m(e.error),t(2),u(" ",l(14,5,"V2.SHOP_ACCOUNT.RETRY")," ")}}function Je(n,h){n&1&&(i(0,"p",82),a(1),c(2,"translate"),o()),n&2&&(t(),u(" ",l(2,1,"V2.SHOP_ACCOUNT.TEAM.EMPTY")," "))}function Qe(n,h){if(n&1&&(i(0,"li",85)(1,"div",86)(2,"span"),a(3),o()(),i(4,"div",87)(5,"p",88),a(6),o()(),i(7,"span"),c(8,"lowercase"),a(9),o()()),n&2){let e=h.$implicit,s=p(3);t(3),m(s.initials(s.safeName(e))),t(3),m(s.safeName(e)),t(),ie(ne("role-pill role-pill--",l(8,6,e.role))),t(2),m(e.role)}}function Ze(n,h){if(n&1&&(i(0,"ul",83),C(1,Qe,10,8,"li",84),o()),n&2){let e=p(2);t(),d("ngForOf",e.topMembers)}}function et(n,h){if(n&1&&(i(0,"p",89),a(1),c(2,"translate"),o()),n&2){let e=p(2);t(),u(" ",T(2,1,"V2.SHOP_ACCOUNT.TEAM.EXTRA",K(4,Pe,e.extraMemberCount))," ")}}function tt(n,h){n&1&&v(0,"div",92)}function it(n,h){n&1&&(i(0,"div",90),C(1,tt,1,0,"div",91),o()),n&2&&(t(),d("ngForOf",G(1,Ge)))}function nt(n,h){n&1&&(i(0,"div",93)(1,"p",82),a(2),c(3,"translate"),o(),i(4,"p",94),a(5),c(6,"translate"),o()()),n&2&&(t(2),m(l(3,2,"V2.SHOP_ACCOUNT.CUSTOMERS.EMPTY")),t(3),m(l(6,4,"V2.SHOP_ACCOUNT.CUSTOMERS.EMPTY_HINT")))}function ot(n,h){if(n&1&&(i(0,"span"),a(1),o()),n&2){let e=p().$implicit,s=p(3);t(),z("\xB7 ",e.openRoCount," ",s.openRoCountLabel(e.openRoCount))}}function rt(n,h){if(n&1){let e=w();i(0,"li",97),f("click",function(){let r=_(e).$implicit,g=p(3);
1return x(g.onViewCustomer(r.id))})("keydown.enter",function(){let r=_(e).$implicit,g=p(3);return x(g.onViewCustomer(r.id))}),i(1,"div",98)(2,"span"),a(3),o()(),i(4,"div",99)(5,"p",100),a(6),o(),i(7,"p",101),a(8),C(9,ot,2,2,"span",5),o()()()}if(n&2){let e=h.$implicit,s=p(3);t(3),m(s.initials(e.firstName)),t(3),m(s.fullName(e)),t(2),z(" ",e.vehicleCount," ",s.vehicleCountLabel(e.vehicleCount)," "),t(),d("ngIf",e.openRoCount>0)}}function at(n,h){if(n&1&&(i(0,"ul",95),C(1,rt,10,5,"li",96),o()),n&2){let e=p(2);t(),d("ngForOf",e.recentCustomers)}}function st(n,h){if(n&1&&(i(0,"p",89),a(1),c(2,"translate"),o()),n&2){let e=p(2);t(),u(" ",T(2,1,"V2.SHOP_ACCOUNT.CUSTOMERS.EXTRA",K(4,Pe,e.extraCustomerCount))," ")}}function ct(n,h){if(n&1){let e=w();ee(0),i(1,"app-shop-activation-checklist",37),f("editProfile",function(){_(e);let r=p();return x(r.onEditShopInfo("checklist"))}),o(),i(2,"div",38)(3,"div",39)(4,"div",40),S(),i(5,"svg",41),v(6,"path",42),o(),b(),i(7,"span",43),a(8),c(9,"translate"),o()(),i(10,"p",44),a(11),o(),i(12,"p",45),a(13),c(14,"translate"),o()(),i(15,"div",39)(16,"div",40),S(),i(17,"svg",41),v(18,"path",46)(19,"circle",47)(20,"path",48)(21,"path",49),o(),b(),i(22,"span",43),a(23),c(24,"translate"),o()(),i(25,"p",44),a(26),o(),i(27,"p",45),a(28),c(29,"translate"),o()(),i(30,"div",39)(31,"div",40),S(),i(32,"svg",41),v(33,"circle",50)(34,"circle",51)(35,"path",52),o(),b(),i(36,"span",43),a(37),c(38,"translate"),o()(),i(39,"p",44),a(40),o(),i(41,"p",45),a(42),c(43,"translate"),o()(),i(44,"div",39)(45,"div",40),S(),i(46,"svg",41),v(47,"path",53)(48,"circle",47)(49,"path",54)(50,"path",49),o(),b(),i(51,"span",43),a(52),c(53,"translate"),o()(),i(54,"p",44),a(55),o(),i(56,"p",45),a(57),c(58,"translate"),o()()(),i(59,"button",55),f("click",function(){_(e);let r=p();return x(r.onOpenRepairOrders())}),i(60,"div",56),S(),i(61,"svg",57),v(62,"rect",58)(63,"path",59)(64,"path",60)(65,"path",61)(66,"path",62)(67,"path",63),o(),b(),i(68,"span")(69,"span",64),a(70),c(71,"translate"),o(),i(72,"span",45),a(73),c(74,"translate"),o()()(),S(),i(75,"svg",65),v(76,"path",66),o()(),b(),i(77,"div",67)(78,"h2",68),a(79),c(80,"translate"),o(),i(81,"dl",69)(82,"div",70)(83,"dt",71),a(84),c(85,"translate"),o(),i(86,"dd",72),a(87),o()(),i(88,"div",70)(89,"dt",71),a(90),c(91,"translate"),o(),i(92,"dd",72),a(93),c(94,"translate"),o()(),i(95,"div",70)(96,"dt",71),a(97),c(98,"translate"),o(),i(99,"dd",72),a(100),c(101,"translate"),o()()()(),i(102,"div",67)(103,"div",73)(104,"h2",68),a(105),c(106,"translate"),o(),i(107,"button",74),f("click",function(){_(e);let r=p();return x(r.onManageTeam())}),a(108),c(109,"translate"),i(110,"span",75),a(111,"\u2192"),o()()(),C(112,Je,3,3,"p",76)(113,Ze,2,1,"ul",77)(114,et,3,6,"p",78),o(),i(115,"div",39)(116,"div",73)(117,"h2",68),a(118),c(119,"translate"),o(),i(120,"button",74),f("click",function(){_(e);let r=p();return x(r.onViewAllCustomers())}
1),a(121),c(122,"translate"),i(123,"span",75),a(124,"\u2192"),o()()(),C(125,it,2,2,"div",79)(126,nt,7,6,"div",80)(127,at,2,1,"ul",81)(128,st,3,6,"p",78),o(),te()}if(n&2){let e=p();t(),d("shop",e.shop),t(7),m(l(9,37,"V2.SHOP_ACCOUNT.STATS.OPEN_REPAIR_ORDERS")),t(3),m(e.shop.openRoCount??0),t(2),m(l(14,39,"V2.SHOP_ACCOUNT.STATS.OPEN_REPAIR_ORDERS_DESC")),t(10),m(l(24,41,"V2.SHOP_ACCOUNT.STATS.CUSTOMERS")),t(3),m(e.shop.customerCount??0),t(2),m(l(29,43,"V2.SHOP_ACCOUNT.STATS.CUSTOMERS_DESC")),t(9),m(l(38,45,"V2.SHOP_ACCOUNT.STATS.AWAITING_PARTS")),t(3),m(e.shop.awaitingPartsCount??0),t(2),m(l(43,47,"V2.SHOP_ACCOUNT.STATS.AWAITING_PARTS_DESC")),t(10),m(l(53,49,"V2.SHOP_ACCOUNT.STATS.TEAM_MEMBERS")),t(3),m(e.shop.members.length),t(2),m(l(58,51,"V2.SHOP_ACCOUNT.STATS.TEAM_MEMBERS_DESC")),t(13),m(l(71,53,"V2.SHOP_ACCOUNT.REPAIR_ORDERS.TITLE")),t(3),m(l(74,55,"V2.SHOP_ACCOUNT.REPAIR_ORDERS.DESC")),t(6),m(l(80,57,"V2.SHOP_ACCOUNT.INFO.TITLE")),t(5),m(l(85,59,"V2.SHOP_ACCOUNT.INFO.NAME")),t(3),m(e.shop.name),t(3),m(l(91,61,"V2.SHOP_ACCOUNT.INFO.ADDRESS")),t(2),k("info-value--muted",!e.shop.address),t(),u(" ",e.shop.address||l(94,63,"V2.SHOP_ACCOUNT.INFO.NOT_SET")," "),t(4),m(l(98,65,"V2.SHOP_ACCOUNT.INFO.PHONE")),t(2),k("info-value--muted",!e.shop.phone),t(),u(" ",e.shop.phone||l(101,67,"V2.SHOP_ACCOUNT.INFO.NOT_SET")," "),t(5),m(l(106,69,"V2.SHOP_ACCOUNT.TEAM.TITLE")),t(3),u(" ",l(109,71,"V2.SHOP_ACCOUNT.MANAGE_TEAM")," "),t(4),d("ngIf",e.topMembers.length<=1),t(),d("ngIf",e.topMembers.length>1),t(),d("ngIf",e.extraMemberCount>0),t(4),m(l(119,73,"V2.SHOP_ACCOUNT.CUSTOMERS.TITLE")),t(3),u(" ",l(122,75,"V2.SHOP_ACCOUNT.VIEW_ALL")," "),t(4),d("ngIf",e.isLoadingCustomers&&e.customers.length===0),t(),d("ngIf",!e.isLoadingCustomers&&e.recentCustomers.length===0),t(),d("ngIf",e.recentCustomers.length>0),t(),d("ngIf",e.extraCustomerCount>0)}}function lt(n,h){if(n&1&&(i(0,"p",123),a(1),o()),n&2){let e=p(2);t(),u(" ",e.editErrors.name," ")}}function pt(n,h){if(n&1&&(i(0,"p",123),a(1),o()),n&2){let e=p(2);t(),u(" ",e.editErrors.address," ")}}function dt(n,h){if(n&1&&(i(0,"p",123),a(1),o()),n&2){let e=p(2);t(),u(" ",e.editErrors.phone," ")}}function mt(n,h){if(n&1){let e=w();i(0,"div",102),f("click",function(){_(e);let r=p();return x(r.closeEditModal())}),i(1,"div",103),f("click",function(r){return r.stopPropagation()}),i(2,"div",104)(3,"h2",105),a(4),c(5,"translate"),o(),i(6,"button",106),c(7,"translate"),f("click",function(){_(e);let r=p();return x(r.closeEditModal())}),S(),i(8,"svg",107),v(9,"line",108)(10,"line",109),o()()(),b(),i(11,"form",110),f("ngSubmit",function(){_(e);let r=p();return x(r.onSubmitEdit())}),i(12,"div",111)(13,"div")(14,"label",112),a(15),c(16,"translate"),i(17,"span",113),a(18,"*"),o()(),i(19,"input",114),V("ngModelChange",function(r){_(e);let g=p();return I(g.editForm.name,r)||(g.editForm.name=r),x(r)}),o(),C(20,lt,2,1,"p",115),o(),i(21,"div")(22,"label",116),a(23),c(24,"translate"),o(),i(25,"input",117),V("ngModelChange",function(r){_(e);let g=p();return I(g.editForm.address,r)||(g.editForm.address=r),x(r)}),o(),C(26,pt,2,1,"p",115),o(),i(27,"div")(28,"label",118),a(29),c(30,"translate"),o(),i(31,"input",119),V("ngModelChange",function(r){_(e);let g=p();return I(g.editForm.phone,r)||(g.editForm.phone=r),x(r)}),o(),C(32,dt,2,1,"p",115),o()(),i(33,"div",120)(34,"button",121),f("click",function(){_(e);let r=p();return x(r.closeEditModal())}),a(35),c(36,"translate"),o(),i(37,"button",122),a(38),c(39,"translate"),c(40,"translate"),o()()()()()}if(n&2){let e=p();t(),d("cdkTrapFocusAutoCapture",!0),t(3),u(" ",l(5,23,"V2.SHOP_ACCOUNT.EDIT.TITLE")," "),t(2),d("disabled",e.isSavingShopInfo),E("aria-label",l(7,25,"V2.COMMON.CLOSE")),t(9),u(" ",l(16,27,"V2.SHOP_ACCOUNT.INFO.NAME")," "),t(4),k("modal-input--error",!!e.editErrors.name),M("ngModel",e.editForm.name),t(),d("ngIf",e.editErrors.name),t(3),u(" ",l(24,29,"V2.SHOP_ACCOUNT.INFO.ADDRESS")," "),t(2),k("modal-input--error",!!e.editErrors.address),M("ngModel",e.editForm.address),t(),d("ngIf",e.editErrors.address),t(3),u(" ",l(30,31,"V2.SHOP_ACCOUNT.INFO.PHONE")," "),t(2),k("modal-input--error",!!e.editErrors.phone),M("ngModel",e.editForm.phone),t(),d("ngIf",e.editErrors.phone),t(2),d("disabled",e.isSavingShopInfo),t(),u(" ",l(36,33,"V2.COMMON.CANCEL")," "),t(2),d("disabled",e.isSavingShopInfo),t(),u(" ",e.isSavingShopInfo?l(39,35,"V2.COMMON.SAVING"):l(40,37,"V2.COMMON.SAVE")," ")}}var $=4,X=5,Lt=(()=>{class n{constructor(e,s,r,g,L,D,j,Me){this.store=e,this.router=s,this.route=r,this.toastr=g,this.translate=L,this.analytics=D,this.cdr=j,this.locale=Me,this.shop=null,this.customers=[],this.isLoadingShop=!1,this.isLoadingCustomers=!1,this.isSavingShopInfo=!1,this.error=null,this.showSetupBanner=!1,this.showEditModal=!1,this.editForm={},this.editErrors={},this.profileEditSource="shop_account"}get isOwner(){return this.shop?.currentUserRole==="Owner"}ngOnInit(){this.queryParamsSub=this.route.queryParamMap.subscribe(e=>{this.showSetupBanner=e.get("setup")==="1",this.cdr.markForCheck()}),this.shopSub=this.store.select(y.selectShop).subscribe(e=>{this.shop=e,this.cdr.markForCheck()}),this.loadingShopSub=this.store.select(y.selectIsLoadingShop).subscribe(e=>{this.isLoadingShop=e,this.cdr.markForCheck()}),this.savingSub=this.store.select(y.selectIsSavingShopInfo).subscribe(e=>{this.isSavingShopInfo=e,this.cdr.markForCheck()}),this.errorSub=this.store.select(y.selectError).subscribe(e=>{e?this.error||(this.error=e):this.error=null,this.cdr.markForCheck()}),this.customersSub=this.store.select(Y.selectList).subscribe(e=>{this.customers=e,this.cdr.markForCheck()}),this.loadingCustomersSub=this.store.select(Y.selectLoadingList).subscribe(e=>{this.isLoadingCustomers=e,this.cdr.markForCheck()}),this.loadShop()}ngOnDestroy(){this.shopSub?.unsubscribe(),this.loadingShopSub?.unsubscribe(),this.savingSub?.unsubscribe(),this.errorSub?.unsubscribe(),this.customersSub?.unsubscribe(),this.loadingCustomersSub?.unsubscribe(),this.queryParamsSub?.unsubscribe()}onRetry(){this.loadShop()}onEditShopInfo(e="shop_account"){!this.shop||this.isSavingShopInfo||(this.profileEditSource=e,this.editForm={name:this.shop.name,address:this.shop.address??"",phone:this.shop.phone??""},this.editErrors={},this.showEditModal=!0,this.cdr.markForCheck())}closeEditModal(){this.isSavingShopInfo||this.teardownEditModal()}teardownEditModal(){this.showEditModal=!1,this.cdr.markForCheck()}onEscapeKey(){this.showEditModal&&this.closeEditModal()}onSubmitEdit(){if(!this.shop||this.isSavingShopInfo)return;this.editErrors={};let e=(this.editForm.name??"").trim();if(e?e.length>100&&(this.editErrors.name=this.translate.instant("V2.SHOP_ACCOUNT.EDIT.NAME_TOO_LONG")):this.editErrors.name=this.translate.instant("V2.SHOP_ACCOUNT.EDIT.NAME_REQUIRED"),(this.editForm.address??"").trim().length>200&&(this.editErrors.address=this.translate.instant("V2.SHOP_ACCOUNT.EDIT.ADDRESS_TOO_LONG")),(this.editForm.phone??"").trim().length>30&&(this.editErrors.phone=this.translate.instant("V2.SHOP_ACCOUNT.EDIT.PHONE_TOO_LONG")),Object.keys(this.editErrors).length>0){this.cdr.markForCheck();return}let s={};e!==this.shop.name&&(s.name=e);let r=(this.editForm.address??"").trim();r!==(this.shop.address??"")&&(s.address=r);let g=(this.editForm.phone??"").trim();if(g!==(this.shop.phone??"")&&(s.phone=g),Object.keys(s).length===0){this.closeEditModal();return}let L=!!e&&!!r&&!!g,D=this.profileEditSource,j=this.shop.currentUserRole;this.store.dispatch(new we(s)).subscribe({next:()=>{this.analytics.logShopProfileUpdated(D,j,L),this.toastr.success(this.translate.instant("V2.SHOP_ACCOUNT.EDIT.SAVED_TOAST"),this.translate.instant("V2.SHOP_ACCOUNT.EDIT.SAVED_TITLE")),this.teardownEditModal()},error:()=>{this.cdr.markForCheck()}})}
1onManageTeam(){this.router.navigate(["/v2/shop-account/team"])}onOpenRepairOrders(){this.router.navigate(["/v2/shop-account/repair-orders"])}onViewAllCustomers(){this.router.navigate(["/v2/shop-account/customers"])}onViewCustomer(e){this.router.navigate(["/v2/shop-account/customers",e])}dismissSetupBanner(){this.showSetupBanner=!1,this.router.navigate([],{relativeTo:this.route,queryParams:{setup:null},queryParamsHandling:"merge",replaceUrl:!0})}fullName(e){return Ee(e)}safeName(e){return e.displayName?.trim()||"Member"}initials(e){return(e||"?").trim().charAt(0).toUpperCase()}vehicleCountLabel(e){return this.translate.instant(this.countCategory(e)==="one"?"V2.SHOP_ACCOUNT.CUSTOMERS.VEHICLE_SINGULAR":"V2.SHOP_ACCOUNT.CUSTOMERS.VEHICLES")}openRoCountLabel(e){return this.translate.instant(this.countCategory(e)==="one"?"V2.SHOP_ACCOUNT.CUSTOMERS.OPEN_RO_SINGULAR":"V2.SHOP_ACCOUNT.CUSTOMERS.OPEN_ROS")}countCategory(e){return be(e,this.locale.current)}get topMembers(){return this.shop?.members.slice(0,$)??[]}get extraMemberCount(){let e=this.shop?.members.length??0;return e>$?e-$:0}get recentCustomers(){return[...this.customers].sort((e,s)=>s.createTime-e.createTime).slice(0,X)}get extraCustomerCount(){let e=this.customers.length;return e>X?e-X:0}loadShop(){this.error=null,this.store.dispatch(new Oe).subscribe({next:()=>{this.store.dispatch(new ke("",!1))},error:e=>{this.error=this.mapErrorMessage(e),this.cdr.markForCheck()}})}mapErrorMessage(e){let s=e instanceof re?e.status:e?.status;if(s===403)return this.translate.instant("V2.SHOP_ACCOUNT.ERROR_FORBIDDEN");if(typeof s=="number"&&s>=500&&s<600)return this.translate.instant("V2.SHOP_ACCOUNT.ERROR_RETRY");let r=e;return r?.error?.message??r?.message??this.translate.instant("V2.SHOP_ACCOUNT.ERROR_GENERIC")}static{this.\u0275fac=function(s){return new(s||n)(O(ce),O(B),O(ae),O(ve),O(se),O(Se),O(A),O(fe))}}static{this.\u0275cmp=P({type:n,selectors:[["app-v2-shop-account"]],hostBindings:function(s,r){s&1&&f("keydown.escape",function(){return r.onEscapeKey()},Z)},decls:7,vars:6,consts:[[1,"shop-account"],["class","setup-banner","role","status",4,"ngIf"],["class","tw-flex tw-items-center tw-justify-between tw-gap-4 tw-mb-6",4,"ngIf"],["class","tw-grid tw-grid-cols-2 lg:tw-grid-cols-4 tw-gap-4 tw-mb-8",4,"ngIf"],["class","shop-card tw-mb-8","role","alert",4,"ngIf"],[4,"ngIf"],["class","modal-backdrop",3,"click",4,"ngIf"],["role","status",1,"setup-banner"],["aria-hidden","true",1,"setup-banner__icon"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","12","r","10"],["d","M12 8v4"],["d","M12 16h.01"],[1,"setup-banner__body"],[1,"setup-banner__title"],[1,"setup-banner__text"],[1,"setup-banner__actions"],["type","button","class","setup-banner__primary",3,"click",4,"ngIf"],["type","button",1,"setup-banner__dismiss",3,"click"],["type","button",1,"setup-banner__primary",3,"click"],[1,"tw-flex","tw-items-center","tw-justify-between","tw-gap-4","tw-mb-6"],[1,"tw-text-sm","tw-text-mech-text-muted","tw-m-0","tw-min-w-0","tw-truncate"],["type","button",1,"shop-btn","shop-btn--secondary","tw-shrink-0",3,"click"],[1,"tw-grid","tw-grid-cols-2","lg:tw-grid-cols-4","tw-gap-4","tw-mb-8"],["class","shop-card tw-animate-pulse",4,"ngFor","ngForOf"],[1,"shop-card","tw-animate-pulse"],[1,"tw-h-4","tw-bg-mech-surface-2","tw-rounded","tw-w-2/3","tw-mb-4"],[1,"tw-h-8","tw-bg-mech-surface-2","tw-rounded","tw-w-1/3"],["role","alert",1,"shop-card","tw-mb-8"],[1,"tw-flex","tw-items-start","tw-gap-3"],["aria-hidden","true","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"tw-w-5","tw-h-5","tw-text-mech-text-muted","tw-flex-shrink-0","tw-mt-0.5"],["x1","12","y1","8","x2","12","y2","12"],["x1","12","y1","16","x2","12.01","y2","16"],[1,"tw-flex-1"],[1,"tw-text-lg","tw-font-bold","tw-text-mech-text","tw-mb-1"],[1,"tw-text-sm","tw-text-mech-text-muted","tw-mb-4"],["type","button",1,"shop-btn","shop-btn--primary",3,"click"],[3,"editProfile","shop"],[1,"tw-gri
1d","tw-grid-cols-2","lg:tw-grid-cols-4","tw-gap-4","tw-mb-6"],[1,"shop-card"],[1,"tw-flex","tw-items-center","tw-gap-2","tw-mb-3"],["aria-hidden","true","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"tw-w-4","tw-h-4","tw-text-mech-text-muted"],["d","M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"],[1,"stat-label"],[1,"stat-value"],[1,"stat-sub"],["d","M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"],["cx","9","cy","7","r","4"],["d","M22 21v-2a4 4 0 0 0-3-3.87"],["d","M16 3.13a4 4 0 0 1 0 7.75"],["cx","9","cy","21","r","1"],["cx","20","cy","21","r","1"],["d","M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"],["d","M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"],["d","M23 21v-2a4 4 0 0 0-3-3.87"],["type","button",1,"shop-card","tw-w-full","tw-text-left","tw-flex","tw-items-center","tw-justify-between","tw-gap-3","tw-mb-6","tw-cursor-pointer","tw-border-none",3,"click"],[1,"tw-flex","tw-items-center","tw-gap-3"],["aria-hidden","true","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"tw-w-5","tw-h-5","tw-text-mech-primary","tw-shrink-0"],["width","8","height","4","x","8","y","2","rx","1","ry","1"],["d","M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"],["d","M12 11h4"],["d","M12 16h4"],["d","M8 11h.01"],["d","M8 16h.01"],[1,"section-title","tw-block","tw-mb-0.5"],["aria-hidden","true","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"tw-w-4","tw-h-4","tw-text-mech-text-faint","tw-shrink-0"],["d","m9 18 6-6-6-6"],[1,"shop-card","tw-mb-6"],[1,"section-title"],[1,"info-grid"],[1,"info-row"],[1,"info-label"],[1,"info-value"],[1,"section-header"],["type","button",1,"section-link",3,"click"],["aria-hidden","true"],["class","empty-text",4,"ngIf"],["class","member-list",4,"ngIf"],["class","extra-text",4,"ngIf"],["class","tw-space-y-2",4,"ngIf"],["class","empty-block",4,"ngIf"],["class","customer-list",4,"ngIf"],[1,"empty-text"],[1,"member-list"],["class","member-row",4,"ngFor","ngForOf"],[1,"member-row"],[1,"member-avatar"],[1,"member-meta"],[1,"member-name"],[1,"extra-text"],[1,"tw-space-y-2"],["class","tw-h-10 tw-bg-mech-surface-2 tw-rounded-xl tw-animate-pulse",4,"ngFor","ngForOf"],[1,"tw-h-10","tw-bg-mech-surface-2","tw-rounded-xl","tw-animate-pulse"],[1,"empty-block"],[1,"empty-hint"],[1,"customer-list"],["class","customer-row","tabindex","0","role","button",3,"click","keydown.enter",4,"ngFor","ngForOf"],["tabindex","0","role","button",1,"customer-row",3,"click","keydown.enter"],[1,"customer-avatar"],[1,"customer-meta"],[1,"customer-name"],[1,"customer-sub"],[1,"modal-backdrop",3,"click"],["cdkTrapFocus","",1,"modal-surface",3,"click","cdkTrapFocusAutoCapture"],[1,"tw-flex","tw-items-center","tw-justify-between","tw-mb-6"],[1,"tw-text-xl","tw-font-bold","tw-text-mech-text"],["type","button",1,"modal-close",3,"click","disabled"],["aria-hidden","true","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"tw-w-5","tw-h-5"],["x1","18","y1","6","x2","6","y2","18"],["x1","6","y1","6","x2","18","y2","18"],["novalidate","",3,"ngSubmit"],[1,"tw-space-y-4"],["for","shop-name",1,"modal-label"],[1,"modal-required"],["id","shop-name","type","text","name","name","autocomplete","organization","maxlength","120",1,"modal-input",3,"ngModelChange","ngModel"],["class","modal-field-error",4,"ngIf"],["for","shop-address",1,"modal-label"],["id","shop-address","type","text","name","address","autocomplete","street-address","maxlength","220",1,"modal-input",3,"ngModelChange","ngModel"],["for","shop-phone",1,"modal-label"],["id","shop-phone","type","tel","name","phone","autocomplete","tel","maxlength","40",1,"modal-input",3,"ngModelChange","ngModel"],[1,"tw-flex","tw-gap-3","tw-mt-6"],["type","button",1,"shop-btn","shop-btn--secondary","tw-flex-1",3,"click","disabled"],["type","submit",1,"shop-btn","shop-btn--primary","tw-flex-1",3,"disabled"],[1,"modal-field-error"]],template:function(s,r){s&1&&(i(0,"div",0),C(1,We,18,10,"div",1)(2,qe,6,4,"div",2)(3,$e,2,2,"div",3)(4,Xe,15,7,"div",4)(5,ct,129,77,"ng-container",5),o(),C(6,mt,41,39,"div",6)),s&2&&(t(),d("ngIf",r.showSetupBanner),t(),d("ngIf",r.shop),t(),d("ngIf",r.isLoadingShop&&!r.shop),t(),d("ngIf",!r.isLoadingShop&&!r.shop&&r.error),t(),d("ngIf",r.shop),t(),d("ngIf",r.showEditModal))},dependencies:[R,N,H,Ce,xe,de,me,he,ge,_e,ue,pe,le,F,ye,oe,U],styles:[".shop-account[_ngcontent-%COMP%]{max-width:1200px}.shop-card[_ngcontent-%COMP%]{background:var(--color-surface);border:1px solid var(--color-border);border-radius:16px;padding:24px;box-shadow:0 1px 3px #0000000a}.shop-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:10px 20px;border-radius:12px;font-size:14px;font-weight:600;cursor:pointer;border:none;transition:background-color .15s cubic-bezier(.4,0,.2,1)}.shop-btn--primary[_ngcontent-%COMP%]{background:var(--color-primary);color:var(--color-text-inverse)}.shop-btn--primary[_ngcontent-%COMP%]:hover{background:var(--color-primary-hover)}.shop-btn--secondary[_ngcontent-%COMP%]{background:var(--color-surface);color:var(--color-text);border:1px solid var(--color-border-strong)}.shop-btn--secondary[_ngcontent-%COMP%]:hover{border-color:var(--color-primary)}.shop-btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.setup-banner[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:16px;background:var(--color-primary-50);border:1px solid var(--color-primary-100);border-radius:16px;padding:20px 24px;margin-bottom:24px}.setup-banner__icon[_ngcontent-%COMP%]{flex-shrink:0;width:32px;height:32px;border-radius:10px;background:var(--color-primary);color:var(--color-text-inverse);display:flex;align-items:center;justify-content:center}.setup-banner__icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:18px;height:18px}.setup-banner__body[_ngcontent-%COMP%]{flex:1;min-width:0}.setup-banner__title[_ngcontent-%COMP%]{font-size:15px;font-weight:700;color:var(--color-text);margin:0 0 4px}.setup-banner__text[_ngcontent-%COMP%]{font-size:13px;color:var(--color-text-secondary);margin:0}.setup-banner__actions[_ngcontent-%COMP%]{flex-shrink:0;align-self:center;display:flex;align-items:center;gap:8px}.setup-banner__primary[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-height:44px;background:var(--color-primary);color:var(--color-text-inverse);border:none;border-radius:12px;padding:8px 16px;font-size:13px;font-weight:600;cursor:pointer;transition:background-color .15s}.setup-banner__primary[_ngcontent-%COMP%]:hover{background:var(--color-primary-hover)}.setup-banner__primary[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.setup-banner__dismiss[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-height:44px;background:var(--color-surface);color:var(--color-text);border:1px solid var(--color-border-strong);border-radius:12px;padding:8px 16px;font-size:13px;font-weight:600;cursor:pointer;transition:border-color .15s}.setup-banner__dismiss[_ngcontent-%COMP%]:hover{border-color:var(--color-primary)}.setup-banner__dismiss[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}@media(max-width:639.98px){.setup-banner__actions[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}}.stat-label[_ngcontent-%COMP%]{font-size:11px;font-weight:600;color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.04em}.stat-value[_ngcontent-%COMP%]{font-size:clamp(22px,6vw,28px);font-weight:800;color:var(--color-text);line-height:1;margin:0}@media(max-width:639.98px){.shop-card[_ngcontent-%COMP%]{padding:16px}}.stat-sub[_ngcontent-%COMP%]{font-size:11px;color:var(--color-text-faint);margin:6px 0 0}.section-title[_ngcontent-%COMP%]{font-size:16px;font-weight:700;color:var(--color-text);margin:0 0 16px}.section-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.section-header[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%]{margin:0}.section-link[_ngcontent-%COMP%]{background:transparent;border:none;padding:0;font-size:13px;font-weight:600;color:var(--color-primary);cursor:pointer;display:inline-flex;align-items:center;gap:4px}.section-link[_ngcontent-%COMP%]:hover{color:var(--color-primary-hover)}.info-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:12px;margin:0}@media(min-width:640px){.info-grid[_ngcontent-%COMP%]{grid-template-columns:140px 1fr;gap:12px 24px}}.info-row[_ngcontent-%COMP%]{display:contents}.info-label[_ngcontent-%COMP%]{font-size:12px;font-weight:600;color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.04em;margin:0}.info-value[_ngcontent-%COMP%]{font-size:14px;color:var(--color-text);margin:0}.info-value--muted[_ngcontent-%COMP%]{color:var(--color-text-muted);font-style:italic}.member-list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}.member-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}
1.member-avatar[_ngcontent-%COMP%]{flex-shrink:0;width:32px;height:32px;border-radius:9999px;background:var(--color-primary-50);color:var(--color-primary);display:flex;align-items:center;justify-content:center}.member-avatar[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px;font-weight:700}.member-meta[_ngcontent-%COMP%]{flex:1;min-width:0}.member-name[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:var(--color-text);margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.role-pill[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:2px 10px;border-radius:9999px;font-size:12px;font-weight:600;flex-shrink:0}.role-pill--owner[_ngcontent-%COMP%]{background:var(--color-primary-50);color:var(--color-primary)}.role-pill--manager[_ngcontent-%COMP%]{background:var(--color-primary-100);color:var(--color-primary)}.role-pill--tech[_ngcontent-%COMP%]{background:var(--color-surface-2);color:var(--color-text-secondary)}.role-pill--frontdesk[_ngcontent-%COMP%]{background:var(--color-surface-2);color:var(--color-text-muted)}.customer-list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.customer-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;cursor:pointer;transition:background-color .15s}.customer-row[_ngcontent-%COMP%]:hover, .customer-row[_ngcontent-%COMP%]:focus-visible{background:var(--color-surface-2);outline:none}.customer-avatar[_ngcontent-%COMP%]{flex-shrink:0;width:32px;height:32px;border-radius:9999px;background:var(--color-surface-2);color:var(--color-text-secondary);display:flex;align-items:center;justify-content:center}.customer-avatar[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px;font-weight:700}.customer-meta[_ngcontent-%COMP%]{flex:1;min-width:0}.customer-name[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:var(--color-text);margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.customer-sub[_ngcontent-%COMP%]{font-size:12px;color:var(--color-text-muted);margin:2px 0 0}.empty-block[_ngcontent-%COMP%]{text-align:center;padding:16px 0}.empty-text[_ngcontent-%COMP%]{font-size:14px;color:var(--color-text-secondary);margin:0}.empty-hint[_ngcontent-%COMP%]{font-size:13px;color:var(--color-text-muted);margin:4px 0 0}.extra-text[_ngcontent-%COMP%]{font-size:12px;color:var(--color-text-muted);margin:12px 0 0;text-align:center}.modal-backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;background:#0006;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px}.modal-surface[_ngcontent-%COMP%]{background:var(--color-surface);border:1px solid var(--color-border-strong);border-radius:20px;padding:24px;width:100%;max-width:440px;box-shadow:0 20px 50px #0f172a33}.modal-close[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;border:none;background:transparent;color:var(--color-text-muted);cursor:pointer;transition:background-color .15s}.modal-close[_ngcontent-%COMP%]:hover{background:var(--color-surface-2);color:var(--color-text)}.modal-label[_ngcontent-%COMP%]{display:block;font-size:11px;font-weight:600;color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.04em;margin:0 0 6px}.modal-required[_ngcontent-%COMP%]{color:var(--color-danger)}.modal-input[_ngcontent-%COMP%]{width:100%;padding:10px 14px;border-radius:16px;border:1px solid var(--color-border-strong);background:var(--color-surface-2);color:var(--color-text);font-size:14px;outline:none;transition:border-color .15s;appearance:none;box-sizing:border-box}.modal-input[_ngcontent-%COMP%]:focus{border-color:var(--color-primary)}.modal-input--error[_ngcontent-%COMP%]{border-color:var(--color-danger)}.modal-field-error[_ngcontent-%COMP%]{font-size:12px;color:var(--color-danger);margin:4px 0 0}"],changeDetection:0})}}return n})();export{Lt as V2ShopAccountComponent};
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.