PageSourceSearch

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

js nbmedical.com collected 2026-10-02 07:02:38 UTC 3,826 bytes, 1 lines download raw bytes

1import{a as E}from"./chunk-NIFF2UPW.js";import{a as T}from"./chunk-LZ4IU7MX.js";import{m as O}from"./chunk-S33CAPPZ.js";import"./chunk-2K2V3AF7.js";import"./chunk-C6TWE4FZ.js";import"./chunk-Q2YLND27.js";import"./chunk-NU4ZUM7K.js";import"./chunk-NLZC42V6.js";import"./chunk-ZBQW7NJG.js";import"./chunk-ZUSG72XP.js";import"./chunk-HJWJPZ5W.js";import{ra as U}from"./chunk-LQY2VBIU.js";import"./chunk-WRBQWUEI.js";import{n as B}from"./chunk-LRSFZQSP.js";import{Ab as n,Bb as o,Bd as y,D as _,Lb as x,Nb as P,Pb as m,Ra as u,Z as c,_c as k,ac as a,da as b,ea as v,eb as C,n as g,pa as d,sb as f,sc as N,tb as h,tc as S,ub as p}from"./chunk-IXJZIWF6.js";import"./chunk-IZQOVDKO.js";import"./chunk-6IZLXKZM.js";function w(e,r){if(e&1){let t=x();n(0,"div",3)(1,"h4",5),a(2,"You're eligible for an NB Plus upgrade offer!"),o(),n(3,"p"),a(4," If you are not automatically redirected, click below to add NB Plus to your basket "),n(5,"strong"),a(6," for your exclusive upgrade offer price (applied at checkout)"),o()(),n(7,"button",6),P("click",function(){let l;b(t);let s=m(4);return v(s.addNbPlusToBasket((l=s.priceInfo())==null?null:l.annual))}),a(8," Add to Basket "),o()()}}function D(e,r){e&1&&(n(0,"div",4)(1,"h4",5),a(2,"Sorry, we can't find your NB Plus upgrade offer"),o(),n(3,"p"),a(4," We're sorry, but we can't find your NB Plus upgrade offer. Please contact our customer service team and we'll be happy to help. "),o()())}function M(e,r){if(e&1&&(n(0,"div"),f(1,w,9,0,"div",3)(2,D,5,0,"div",4),o()),e&2){let t,i=m(3);u(),p((t=i.basket())!=null&&t.hasNBPlusUpgradeOffer?1:2)}}function I(e,r){e&1&&(n(0,"div",3)(1,"h4",5),a(2,"Sit tight, we're loading your exclusive NB Plus discount"),o()())}function L(e,r){if(e&1&&(n(0,"div",2),f(1,M,3,1,"div")(2,I,3,0,"div",3),o()),e&2){let t=m(2);u(),p(t.loadingPriceInfo()?2:1)}}function V(e,r){e&1&&(n(0,"div",2)(1,"div",3)(2,"h4",5),a(3,"Sit tight, we're loading your NB Plus upgrade offer"),o()()())}function $(e,r){if(e&1&&(n(0,"div"),f(1,L,3,1,"div",2)(2,V,4,0,"div",2),o()),e&2){let t=m();u(),p(t.loadingBasket()?2:1)}}function A(e,r){e&1&&(n(0,"div",1)(1,"p"),a(2,"Please login so we can retrieve your personal NB Plus upgrade offer"),o(),n(3,"button",7),a(4,"Login"),o()())}var Q=(()=>{class e{constructor(){this.basketService=c(U),this.nbPlusService=c(E),this.userService=c(y),this.router=c(B),this.basket=d(void 0),this.priceInfo=d(void 0),this.loadingBasket=d(!0),this.loadingPriceInfo=d(!0),this.processing=d(!1),this.user$=this.userService.currentUser$,g([this.basketService.getUserBasket(),this.nbPlusService.getNBPlusPricingInfo()]).pipe(_(1)).subscribe(([t,i])=>{this.loadingBasket.set(!1),this.loadingPriceInfo.set(!1),this.basket.set(t),this.priceInfo.set(i),t.hasNBPlusUpgradeOffer&&i.annual&&this.basketService.addToBasket(i.annual,i.annual.variants[0].id).pipe(_(1)).subscribe(l=>{l.success&&this.router.navigate(["/added-to-cart",i.annual.id]),this.processing.set(!1)})})}addNbPlusToBasket(t){this.processing.set(!0),this.basketService.addToBasket(t,t.variants[0].id,void 0,void 0).pipe(_(1)).subscribe(i=>{i.success&&this.router.navigate(["/added-to-cart",t.id]),this.processing.set(!1)})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=C({type:e,selectors:[["nbm-nb-plus-upgrade-offer"]],decls:4,vars:3,consts:[["title","NB Plus Upgrade Offer"],[1,"border","p-3","mb-4","text-center"],[1,"col-12","mb-3"],[1,"alert","alert-info","text-center"],[1,"alert","alert-danger","text-center"],[1,"alert-heading"],[1,"btn","btn-primary",3,"click"],["nbmLoginClick","",1,"btn","btn-primary"]],template:function(i,l){if(i&1&&(n(0,"nbm-site-page",0),f(1,$,3,1,"div"),N(2,"async"),h(3,A,5,0,"div",1),o()),i&2){let s;u(),p((s=S(2,1,l.user$))?1:3,s)}},dependencies:[O,T,k],encapsulation:2})}}return e})();export{Q as NbPlusUpgradeOfferComponent};

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.