1import{b as F,c as N}from"./chunk-OKH6EZI5.js";import"./chunk-IXWSU3C7.js";import{d as B}from"./chunk-RCUDUYYY.js";import"./chunk-QBKSJLGR.js";import{Vc as A,Wb as U,ga as q,l as j,vc as E}from"./chunk-CQ5D4WCL.js";import{Bc as S,Cc as T,Dc as C,Dd as z,G as _,Gb as c,Mb as h,Mc as D,Oc as R,Qc as s,Rc as p,Sc as m,ec as v,fc as P,fd as w,gc as y,gd as I,ic as b,id as d,jc as M,jd as u,kc as l,lc as i,mc as r,md as f,nc as O,xb as o,zc as x}from"./chunk-G2MBAB6T.js";var G=["*",[["","task-shell-footer",""]]],J=["*","[task-shell-footer]"],K=e=>({"--category-color":e}),L=(e,g)=>({name:e,color:g});function Q(e,g){if(e&1&&(i(0,"h1",5),s(1),r()),e&2){let n=S();o(),p(n.title)}}var H=(()=>{class e{static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275cmp=h({type:e,selectors:[["app-task-shell"]],inputs:{color:"color",icon:"icon",iconColor:"iconColor",title:"title"},ngContentSelectors:J,decls:10,vars:11,consts:[[1,"task-panel-background"],[1,"task-panel"],[1,"task-panel-header"],[1,"header-background"],[3,"params"],[1,"title"],[1,"task-panel-body"],[1,"footer","task-panel-footer"]],template:function(a,t){a&1&&(T(G),i(0,"div",0)(1,"div",1)(2,"div",2),O(3,"div",3)(4,"lib-svg-icon",4),v(5,Q,2,1,"h1",5),r(),i(6,"div",6),C(7),r(),i(8,"div",7),C(9,1),r()()()),a&2&&(R(w(6,K,t.color)),o(3),D("background-color",t.color),o(),l("params",I(8,L,t.icon,t.iconColor||t.color)),o(),P(t.title?5:-1))},dependencies:[A],styles:[".task-panel-background[_ngcontent-%COMP%]{box-sizing:border-box;position:relative;height:100%;width:100%;padding:30px 20px}.task-panel[_ngcontent-%COMP%]{height:100%;background-color:#fff;border-radius:8px;display:flex;flex-direction:column;overflow:hidden}.task-panel[_ngcontent-%COMP%] .task-panel-header[_ngcontent-%COMP%]{height:100px;display:flex;align-items:center;justify-content:center;position:relative}.task-panel[_ngcontent-%COMP%] .task-panel-header[_ngcontent-%COMP%] .header-background[_ngcontent-%COMP%]{pointer-events:none;position:absolute;height:100%;width:100%;opacity:.15}.task-panel[_ngcontent-%COMP%] .task-panel-header[_ngcontent-%COMP%] lib-svg-icon[_ngcontent-%COMP%]{--svg-size: 50px}.task-panel[_ngcontent-%COMP%] .task-panel-body[_ngcontent-%COMP%]{padding:1rem 2rem 0;overflow-y:auto;line-height:1.5}.task-panel[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{text-align:left;font-family:Roboto-bold,sans-serif;font-size:18px;letter-spacing:.53px;color:#064060;padding-bottom:1rem}.task-panel[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-top:2rem}.task-panel[_ngcontent-%COMP%] .task-panel-button[_ngcontent-%COMP%]{display:flex;color:#fff;justify-content:center;padding:.8rem 2rem;background-color:#064060;border-radius:4px;width:100%;box-sizing:border-box;font-family:Roboto-bold,sans-serif;align-items:center;cursor:pointer}.task-panel[_ngcontent-%COMP%] .task-panel-button[_ngcontent-%COMP%]:hover{opacity:.8}.task-panel[_ngcontent-%COMP%] .task-panel-button[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:2rem;height:2rem;margin-right:.5rem}.task-panel[_ngcontent-%COMP%] .task-panel-button[_ngcontent-%COMP%] lib-svg-icon[_ngcontent-%COMP%]{--svg-width: 2rem;--svg-height: 2rem;margin-right:.5rem}.task-panel[_ngcontent-%COMP%] .task-panel-button[disabled][_ngcontent-%COMP%]{cursor:default}.task-panel[_ngcontent-%COMP%] .task-panel-button[_ngcontent-%COMP%]{width:15rem;border-radius:8px;margin:1rem 0;text-transform:uppercase;font-size:.875rem}.task-panel[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]{background:none;color:#064060;text-transform:uppercase;font-size:.875rem;letter-spacing:.43px;margin:.75rem 0}@media(max-height:460px){.task-panel-background[_ngcontent-%COMP%]{padding:10px}.task-panel[_ngcontent-%COMP%] .task-panel-header[_ngcontent-%COMP%]{height:60px}.task-panel[_ngcontent-%COMP%] .task-panel-header[_ngcontent-%COMP%] lib-svg-icon[_ngcontent-%COMP%]{--svg-size: 30px}.task-panel[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:1rem}.task-panel[_ngcontent-%COMP%] .task-panel-body[_ngcontent-%COMP%]{padding:8px 8px 0}.task-panel[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%]{margin-top:8px}.task-panel[_ngcontent-%COMP%] .task-panel-button[_ngcontent-%COMP%], .task-panel[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]{margin:8px 0}}[_nghost-%COMP%]{--task-shell-header-border-bottom: none;--task-shell-header-icon-size: 50px;display:block;height:100%;width:100%}.task-panel-background[_ngcontent-%COMP%]{background:linear-gradient(164.52deg,var(--category-color),rgb(from var(--category-color) r g b/60%))}.task-panel[_ngcontent-%COMP%] .task-panel-header[_ngcontent-%COMP%]{box-sizing:border-box;justify-content:left;border-bottom:var(--task-shell-header-border-bottom);height:80px}.task-panel[_ngcontent-%COMP%] .task-panel-header[_ngcontent-%COMP%] lib-svg-icon[_ngcontent-%COMP%]{--svg-size: var(--task-shell-header-icon-size);margin-left:2rem}.task-panel[_ngcontent-%COMP%] .task-panel-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-left:1rem;padding-bottom:0;color:#505050}.task-panel[_ngcontent-%COMP%] .task-panel-footer[_ngcontent-%COMP%]:empty{display:none}"],changeDetection:0})}}return e})();function V(e,g){if(e&1&&(i(0,"div",3)(1,"span",8),s(2),r(),i(3,"span",9),s(4),d(5,"currency"),r()()),e&2){let n=g.$implicit;o(2),p(n.description),o(2),m(" ",f(5,2,n.amount,"USD","symbol","1.2-2")," ")}}var ge=(()=>{class e{constructor(n,a,t,k,Y){this.redirectService=n,this.departmentApiService=a,this.trustCommerceService=t,this.activatedRoute=k,this.cdr=Y}ngOnInit(){this.task=this.redirectService.getActiveTask(),this.departmentApiService.getDepartmentByUuid(this.task.clinicUuid,this.task.departmentUuid).pipe(_(n=>n.name)).subscribe(n=>{this.departmentName=n,this.cdr.markForCheck()}),this.task.processorData?.type==="trust_commerce"&&(this.trustCommerceUrl=this.trustCommerceService.prepareUrl(this.paymentRequestTotal,this.task.processorData),this.trustCommerceService.handleTrustC
1ommerceRedirect(this.activatedRoute,this.task))}get paymentRequestTotal(){return this.task.paymentRequest?.reduce((n,{amount:a})=>n+a,0)??0}goToPayment(){this.redirectService.navigate([this.redirectService.getBaseUrl()+"/copay-create"],{queryParamsHandling:"preserve"})}static{this.\u0275fac=function(a){return new(a||e)(c(B),c(E),c(F),c(q),c(z))}}static{this.\u0275cmp=h({type:e,selectors:[["app-self-pay"]],decls:16,vars:18,consts:[[3,"color","icon","iconColor","title"],[1,"task-description"],[1,"department-name"],[1,"payment-request-row"],[1,"total-amount-row"],[1,"total-amount-label"],[1,"total-amount-value"],[3,"cardPaymentTriggered","trustCommerceUrl"],[1,"payment-request-description"],[1,"payment-request-amount"]],template:function(a,t){a&1&&(i(0,"app-task-shell",0)(1,"p",1),s(2),d(3,"translate"),i(4,"span",2),s(5),r()(),b(6,V,6,7,"div",3,y),i(8,"div",4)(9,"div",5),s(10),d(11,"translate"),r(),i(12,"div",6),s(13),d(14,"currency"),r(),i(15,"app-payment-buttons",7),x("cardPaymentTriggered",function(){return t.goToPayment()}),r()()()),a&2&&(l("color",t.task.todo.category.backgroundColor||"#f4f4f4")("icon",t.task.todo.category.icon||"copay")("iconColor","#064060")("title",t.task.todo.category.title),o(2),m(" ",u(3,9,"You have a payment request from:")," "),o(3),p(t.departmentName),o(),M(t.task.paymentRequest),o(4),m(" ",u(11,11,"Total Amount:")," "),o(3),m(" ",f(14,13,t.paymentRequestTotal,"USD","symbol","1.2-2")," "),o(2),l("trustCommerceUrl",t.trustCommerceUrl))},dependencies:[N,H,j,U],styles:["[_nghost-%COMP%]{height:100%}app-task-shell[_ngcontent-%COMP%]{--task-shell-header-border-bottom: 1px solid #f4f4f4;--task-shell-header-icon-size: 36px}.task-description[_ngcontent-%COMP%]{margin-bottom:1rem}.department-name[_ngcontent-%COMP%]{display:inline-block;color:#064060}.payment-request-row[_ngcontent-%COMP%]{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin-bottom:1rem}.payment-request-amount[_ngcontent-%COMP%]{color:#064060;font-family:Roboto-bold,sans-serif}.total-amount-row[_ngcontent-%COMP%]{text-align:center}.total-amount-value[_ngcontent-%COMP%]{font-size:3rem;font-family:Roboto-light,sans-serif;line-height:1.5}app-payment-buttons[_ngcontent-%COMP%]{margin-top:1.5rem;margin-bottom:.5rem}"],changeDetection:0})}}return e})();export{ge as SelfPayComponent};
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.