PageSourceSearch

https://nbmedical.com/chunk-RDMZFODE.js

js nbmedical.com collected 2026-09-24 20:34:19 UTC 5,251 bytes, 1 lines download raw bytes

1import{a as D}from"./chunk-VGN2PCXF.js";import{a as j}from"./chunk-PPF4CICK.js";import{a as G}from"./chunk-X7C7TB3S.js";import{m as q}from"./chunk-PSH5TAI2.js";import"./chunk-W3NUKB7B.js";import"./chunk-KJJHSOFJ.js";import"./chunk-USN3IUD3.js";import"./chunk-AZUCPPFK.js";import"./chunk-SGQORKKV.js";import"./chunk-ZBQW7NJG.js";import"./chunk-C6O6I5LW.js";import"./chunk-O2P25Q5F.js";import{d as F,ja as M}from"./chunk-TPCL2XMH.js";import"./chunk-WRBQWUEI.js";import{k as V}from"./chunk-KSTBAVB4.js";import{Ab as t,Bb as n,Cb as p,D as g,Lb as A,N as y,Na as I,Nb as P,Pb as m,Ra as a,Z as x,ac as o,bc as C,bd as L,cc as d,da as E,ea as b,eb as T,sb as l,sc as v,sd as f,ub as s,uc as u,wb as w,xb as k,yb as B,zb as _}from"./chunk-P2OBJROK.js";import"./chunk-IZQOVDKO.js";import"./chunk-6IZLXKZM.js";function N(i,c){i&1&&(t(0,"h5",6),o(1,"A copy of this invoice has also been sent to the customer's email address."),n())}function U(i,c){if(i&1&&(t(0,"span"),o(1),n()),i&2){let e=m().$implicit;a(),d("x ",e.quantity)}}function $(i,c){if(i&1&&(t(0,"del"),o(1),v(2,"currency"),n(),p(3,"br")),i&2){let e=m().$implicit;a(),d(" ",u(2,1,e.amount,"GBP")," ")}}function R(i,c){if(i&1&&(t(0,"li",14)(1,"div",16)(2,"span",17),o(3),l(4,U,2,1,"span"),n(),t(5,"span",24),l(6,$,4,4),o(7),v(8,"currency"),n()()()),i&2){let e=c.$implicit;a(3),d("",e.description," "),a(),s(e.quantity>1?4:-1),a(2),s(e.discountAmount>0?6:-1),a(),d(" ",u(8,4,e.amount,"GBP")," ")}}function z(i,c){if(i&1&&(t(0,"li",14)(1,"div",16)(2,"strong",17),o(3,"Shipping"),n(),t(4,"strong",18),o(5),v(6,"currency"),n()()()),i&2){let e=m();a(5),C(u(6,1,e.shippingTotal,"GBP"))}}function H(i,c){if(i&1&&(t(0,"div",19)(1,"nbm-card-content",25),p(2,"nbm-user-address-display",26),n()()),i&2){let e=m();a(2),_("address",e.billingAddress)}}function J(i,c){if(i&1&&(t(0,"div",19)(1,"nbm-card-content",27),p(2,"nbm-user-address-display",26),n()()),i&2){let e=m();a(2),_("address",e.shippingAddress)}}function K(i,c){if(i&1){let e=A();t(0,"div",0)(1,"div",2),p(2,"i",3),n(),t(3,"div",4)(4,"h2",5),o(5,"Invoice created successfully!"),n(),l(6,N,2,0,"h5",6),t(7,"h3"),o(8),n(),t(9,"h5"),o(10," Payment Link: "),t(11,"a",7),o(12,"Here"),n(),t(13,"button",8),P("click",function(){E(e);let S=m();return b(S.copyLinkToClipboard())}),o(14,"Copy"),n()()(),t(15,"div",9)(16,"div",10)(17,"div",11)(18,"h4",12),o(19,"Items"),n(),t(20,"ul",13),k(21,R,9,7,"li",14,w),n(),t(23,"ul",15)(24,"li",14)(25,"div",16)(26,"strong",17),o(27,"Subtotal"),n(),t(28,"strong",18),o(29),v(30,"currency"),n()()(),l(31,z,7,4,"li",14),t(32,"li",14)(33,"div",16)(34,"strong",17),o(35,"Total"),n(),t(36,"strong",18),o(37),v(38,"currency"),n()()()()()()(),t(39,"div",9),l(40,H,3,1,"div",19),l(41,J,3,1,"div",19),n(),t(42,"h5",20),o(43,"Any questions?"),n(),t(44,"p")(45,"strong"),o(46,"Email:"),n(),t(47,"a",21),o(48," [email protected]"),n()(),t(49,"p",22)(50,"strong"),o(51,"Tel:"),n(),t(52,"a",23),o(53," +44 (0)191 603 1872"),n()()()}if(i&2){let e=c,r=m();a(6),s(r.isSentViaEmail?6:-1),a(2),d("Invoice Number - ",e.invoiceNumber),a(3),_("href",e.paymentLink,I),a(10),B(e.items),a(8),d(" ",u(30,8,e.total,"GBP")," "),a(2),s(e.shippingTotal?31:-1),a(6),C(u(38,11,e.total,"GBP")),a(3),s(e.billingAddress?40:-1),a(),s(e.shippingAddress?41:-1)}}function O(i,c){i&1&&(t(0,"div",1)(1,"div",28),p(2,"nbm-loading",29),n()())}var le=(()=>{class i{constructor(){this.route=x(V),this.invoiceService=x(D),this.toastService=x(F),this.invoice=f(this.route.queryParams.pipe(y(e=>this.invoiceService.getInvoice(e.id).pipe(g(1))))),this.wasSentViaEmail=f(this.route.queryParams,{initialValue:null})}get isSentViaEmail(){return this.wasSentViaEmail()?.wasSentViaEmail==="true"}copyLinkToClipboard(){let e=this.invoice();e?.paymentLink?navigator.clipboard.writeText(e.paymentLink).then(()=>{this.toastService.showSuccessMessage("Link copied to clipboard")}).catch(r=>{this.toastService.showErrorMessage("Failed to copy link: ",r)}):this.toastService.showErrorMessage("No invoice URL available to copy")}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275cmp=T({type:i,selectors:[["nbm-invoice-success"]],decls:3,vars:1,consts:[[1,"row","my-5"],[1,"d-flex","w-100","justify-content-between","align-items-center","loader"],[1,"col-lg-2","border-end","text-success","text-center","pt-lg-5"],[1,"icon-check","icon-5x"],[1,"col-lg-9","ps-lg-5","text-center","text-lg-start"],[1,"text-success","mt-3"],[1,"mt-2","mb-4"],[3,"href"],[1,"btn","btn-sm","btn-info","ms-2",3,"click"],[1,"row"],[1,"col","mb-3"],[1,"card","text-center"],[1,"card-header"],[1,"list-group","list-group-flush","pb-3"],[1,"list-group-item"],[1,"list-group","list-group-flush","border-0"],[1,"d-flex","w-100","justify-content-between","align-items-center"],[1,"m-0"],[1,"ms-3"],[1,"col-md-6","mb-3"],[1,"mt-3"],["href","mailto:[email protected]"],[1,"mb-5"],["href","tel:+441916031872"],[1,"ml-3","text-right"],["headerText","Billing Address"],[3,"address"],["headerText","Shipping Address"],[1,"col"],["text","Fetching..."]],template:function(r,S){if(r&1&&(t(0,"nbm-site-page"),l(1,K,54,14,"div",0)(2,O,3,0,"div",1),n()),r&2){let h;a(),s((h=S.invoice())?1:2,h)}},dependencies:[q,G,j,M,L],encapsulation:2})}}return i})();export{le as InvoiceSuccessComponent};

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.