PageSourceSearch

https://ctmpharma.com/7280.ff851e46032d086a.js

js ctmpharma.com collected 2026-09-24 14:42:33 UTC 6,908 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkctmpharma=self.webpackChunkctmpharma||[]).push([[7280],{97280:(P,d,c)=>{c.r(d),c.d(d,{SelectPharmacyComponent:()=>y});var i=c(45564),l=c(68018),t=c(41360),p=c(61201),h=c(45316),m=c(12141);const g=(a,o)=>({name:a,count:o});function u(a,o){if(1&a&&(t.qex(0),t.EFF(1),t.bVm()),2&a){const n=t.XpG().$implicit;t.R7$(),t.SpI(", ",n.city,"")}}function _(a,o){1&a&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&a&&(t.R7$(),t.SpI("",t.bMT(2,1,"pharmacy.selectPharmacy.open")," \u2192"))}function f(a,o){1&a&&t.nrm(0,"span",17)}function b(a,o){if(1&a){const n=t.RV6();t.j41(0,"button",9),t.bIt("click",function(){const r=t.eBV(n).$implicit,s=t.XpG();return t.Njj(s.selectPharmacy(r))}),t.j41(1,"div",10),t.EFF(2),t.k0s(),t.j41(3,"div",11)(4,"div",12),t.EFF(5),t.k0s(),t.j41(6,"div",13),t.EFF(7),t.DNE(8,u,2,1,"ng-container",14),t.k0s(),t.j41(9,"span"),t.EFF(10),t.k0s()(),t.j41(11,"div",15),t.DNE(12,_,3,3,"span",14)(13,f,1,0,"span",16),t.k0s()()}if(2&a){const n=o.$implicit,e=t.XpG();t.AVh("is-loading",e.loadingPharmacyId===n._id),t.Y8G("disabled",null!==e.loadingPharmacyId),t.R7$(2),t.JRh(e.getInitials(n.name)),t.R7$(3),t.JRh(n.name),t.R7$(2),t.SpI(" ",n.address,""),t.R7$(),t.Y8G("ngIf",n.city),t.R7$(),t.HbH(e.statusClass(n.status)),t.R7$(),t.JRh(e.statusLabel(n.status)),t.R7$(2),t.Y8G("ngIf",e.loadingPharmacyId!==n._id),t.R7$(),t.Y8G("ngIf",e.loadingPharmacyId===n._id)}}let y=(()=>{class a{constructor(n,e,r,s){this.authService=n,this.activePharmacy=e,this.router=r,this.translate=s,this.userDetails=null,this.pharmacies=[],this.loadingPharmacyId=null}ngOnInit(){this.userDetails=this.authService.getUserDetails(),this.pharmacies=this.userDetails?.allPharmaciesManaged||[],this.pharmacies.length<=1&&this.router.navigate(["/pharmacy/dashboard"])}selectPharmacy(n){const e=String(n?._id??n);!e||this.loadingPharmacyId||(this.loadingPharmacyId=e,this.activePharmacy.setActivePharmacy(e),window.location.assign("/pharmacy/dashboard"))}statusLabel(n){return["active","inactive","pending","suspended","rejected"].includes(n)?this.translate.instant(`pharmacy.settings.pharmacies.list.statuses.${n}`):n||"\u2014"}statusClass(n){return`status-badge status-${n||"unknown"}`}getInitials(n){return(n||"?").split(/\s+/).filter(Boolean).slice(0,2).map(e=>e.charAt(0).toUpperCase()).join("")}logout(){this.authService.logout()}static{this.\u0275fac=function(e){return new(e||a)(t.rXU(p.u),t.rXU(h.h),t.rXU(m.Ix),t.rXU(l.c$))}}static{this.\u0275cmp=t.VBU({type:a,selectors:[["app-select-pharmacy"]],decls:19,vars:14,consts:[[1,"select-pharmacy-page"],[1,"select-pharmacy-container"],[1,"select-header"],[1,"brand"],[1,"subtitle"],[1,"pharmacies-grid"],["type","button","class","pharmacy-card",3,"disabled","is-loading","click",4,"ngFor","ngForOf"],[1,"select-footer"],["type","button",1,"btn-logout",3,"click"],["type","button",1,"pharmacy-card",3,"click","disabled"],[1,"pharmacy-avatar"],[1,"pharmacy-info"],[1,"pharmacy-name"],[1,"pharmacy-address"],[4,"ngIf"],[1,"pharmacy-open"],["class","spinner-border spinner-border-sm",4,"ngIf"],[1,"spinner-border","spinner-border-sm"]],template:function(e,r){1&e&&(t.j41(0,"div",0)(1,"div",1)(2,"header",2)(3,"div",3),t.EFF(4,"CTM"),t.j41(5,"span"),t.EFF(6,"Pharma"),t.k0s()(),t.j41(7,"h1"),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.j41(10,"p",4),t.EFF(11),t.nI1(12,"translate"),t.k0s()(),t.j41(13,"div",5),t.DNE(14,b,14,12,"button",6),t.k0s(),t.j41(15,"footer",7)(16,"button",8),t.bIt("click",function(){return r.logout()}),t.EFF(17),t.nI1(18,"translate"),t.k0s()()()()),2&e&&(t.R7$(8),t.JRh(t.bMT(9,4,"pharmacy.selectPharmacy.title")),t.R7$(3),t.SpI(" ",t.i5U(12,6,"pharmacy.selectPharmacy.subtitle",t.l_i(11,g,null==r.userDetails?null:r.userDetails.name,r.pharmacies.length))," "),t.R7$(3),t.Y8G("ngForOf",r.pharmacies),t.R7$(3),t.JRh(t.bMT(18,9,"pharmacy.selectPharmacy.logout")))},dependencies:[i.MD,i.Sq,i.bT,l.h,l.D9],styles:[".select-pharmacy-page[_ngcontent-%COMP%]{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#f4f6f9;padding:24px}.select-pharmacy-container[_ngcontent-%COMP%]{width:100%;max-width:640px}.select-header[_ngcontent-%COMP%]{text-align:center;margin-bottom:32px}.select-header[_ngcontent-%COMP%]   .brand[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:800;color:#1f2937;letter-spacing:.5px;margin-bottom:16px}.select-header[_ngcontent-%COMP%]   .brand[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#007bff}.select-header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:1.5rem;font-weight:700;color:#111827;margin:0 0 8px}.select-header[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{color:#6b7280;font-size:.95rem;margin:0}.pharmacies-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.pharmacy-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;width:100%;padding:16px 20px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;cursor:pointer;text-align:left;
1transition:box-shadow .15s ease,transform .15s ease,border-color .15s ease}.pharmacy-card[_ngcontent-%COMP%]:hover:not(:disabled){border-color:#007bff;box-shadow:0 4px 16px #007bff1f;transform:translateY(-1px)}.pharmacy-card[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:default}.pharmacy-card.is-loading[_ngcontent-%COMP%]{opacity:1;border-color:#007bff}.pharmacy-avatar[_ngcontent-%COMP%]{flex-shrink:0;width:48px;height:48px;border-radius:10px;background:#007bff1a;color:#007bff;font-weight:700;font-size:1rem;display:flex;align-items:center;justify-content:center}.pharmacy-info[_ngcontent-%COMP%]{flex:1;min-width:0}.pharmacy-info[_ngcontent-%COMP%]   .pharmacy-name[_ngcontent-%COMP%]{font-weight:600;color:#111827;font-size:1rem;margin-bottom:2px}.pharmacy-info[_ngcontent-%COMP%]   .pharmacy-address[_ngcontent-%COMP%]{color:#6b7280;font-size:.85rem;margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-badge[_ngcontent-%COMP%]{display:inline-block;padding:2px 10px;border-radius:999px;font-size:.72rem;font-weight:600}.status-badge.status-active[_ngcontent-%COMP%]{background:#28a7451f;color:#28a745}.status-badge.status-inactive[_ngcontent-%COMP%]{background:#6c757d1f;color:#6c757d}.status-badge.status-pending[_ngcontent-%COMP%]{background:#ffc10726;color:#b8860b}.status-badge.status-suspended[_ngcontent-%COMP%], .status-badge.status-rejected[_ngcontent-%COMP%]{background:#dc35451f;color:#dc3545}.status-badge.status-unknown[_ngcontent-%COMP%]{background:#6c757d1f;color:#6c757d}.pharmacy-open[_ngcontent-%COMP%]{flex-shrink:0;color:#007bff;font-weight:600;font-size:.9rem}.select-footer[_ngcontent-%COMP%]{text-align:center;margin-top:28px}.select-footer[_ngcontent-%COMP%]   .btn-logout[_ngcontent-%COMP%]{background:none;border:none;color:#6b7280;font-size:.9rem;cursor:pointer;text-decoration:underline}.select-footer[_ngcontent-%COMP%]   .btn-logout[_ngcontent-%COMP%]:hover{color:#dc3545}"]})}}return a})()}}]);

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.