PageSourceSearch

https://catalog.anythinklibraries.org/wise-apps/opac/chunk-G2ODWC3S.js

js anythinklibraries.org collected 2026-10-03 20:27:46 UTC 4,078 bytes, 1 lines download raw bytes

1import{a as V}from"./chunk-FKY6XFZH.js";import"./chunk-IRYSPCDL.js";import{a as y}from"./chunk-EHPAVI6C.js";import{a as R}from"./chunk-HTEGBX4U.js";import{a as T,b as Q,c as B,e as z}from"./chunk-4KZ6HQ2V.js";import{a as J,b as K}from"./chunk-5KPOYI7G.js";import"./chunk-YWBHBBQJ.js";import"./chunk-RHJPALKL.js";import{a as w,b as C,f as $}from"./chunk-II27KDSF.js";import"./chunk-HIFNALMF.js";import{d as O,e as P,f as H}from"./chunk-NHFFSLCE.js";import{$c as k,Ad as q,Ed as G,Hd as b,Nb as F,Va as c,Y as M,bb as v,bc as d,cc as U,db as j,dc as L,eb as E,la as g,md as D,nd as W,sa as S,ta as h,ub as A,uc as p,v as n,va as a,vb as l,vc as u,wb as f}from"./chunk-DQS6CJUW.js";var tt=w("[UNSUBSCRIBE_NEWSLETTER] unsubscribeFromNewsletter",C()),et=w("[UNSUBSCRIBE_NEWSLETTER] unsubscribeUnsuccessful",C()),s={unsubscribeFromNewsletter:tt,unsubscribeUnsuccessful:et};var X=(()=>{let t=class t{constructor(i,r){this.route=i,this.store=r}ngOnInit(){this.patronSystemId=this.route.snapshot.paramMap.get("patronSystemId")??"",this.newsletterUUID=this.route.snapshot.paramMap.get("newsletterUUID")??""}unsubscribe(){this.store.dispatch(s.unsubscribeFromNewsletter({patronSystemId:this.patronSystemId,newsletterUUID:this.newsletterUUID}))}};t.\u0275fac=function(r){return new(r||t)(v(q),v($))},t.\u0275cmp=j({type:t,selectors:[["app-newsletter-unsubscribe"]],standalone:!1,decls:16,vars:15,consts:[[1,"border-bottom","ps-2","pb-3","mb-4"],["data-test","unsubscribe-newsletter-button","type","button",1,"btn","btn-primary","rounded-3","text-white","text-nowrap",3,"click"],[1,"mt-4"],["data-test","unsubscribe-newsletter-preferences-link",3,"routerLink"]],template:function(r,I){r&1&&(l(0,"div")(1,"h2",0),d(2),p(3,"translate"),f()(),l(4,"div")(5,"p"),d(6),p(7,"translate"),f(),l(8,"button",1),F("click",function(){return I.unsubscribe()}),d(9),p(10,"translate"),f()(),l(11,"div",2)(12,"a",3),p(13,"namedRoute"),d(14),p(15,"translate"),f()()),r&2&&(c(2),U(u(3,5,"NEWSLETTER.UNSUBSCRIBE")),c(4),U(u(7,7,"NEWSLETTER.CONFIRM")),c(3),L(" ",u(10,9,"UNSUBSCRIBE.UNSUBSCRIBE")," "),c(3),A("routerLink",u(13,11,"my-account-notification-preferences-service-messages")),c(2),U(u(15,13,"UNSUBSCRIBE.TO_PREFERENCES")))},dependencies:[G,P,V],encapsulation:2});let e=t;return e})();var it=[{path:"patron/:patronSystemId/newsletter/:newsletterUUID",component:X}],Y=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=E({type:t}),t.\u0275inj=h({imports:[b.forChild(it),b]});let e=t;return e})();var Z=(()=>{let t=class t{constructor(i){this.httpClient=i}unsubscribeNewsletter(i,r){return this.httpClient.delete(`/restapi/patron/${i}/newslettersubscription/${r}`)}};t.\u0275fac=function(r){return new(r||t)(a(W))},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var ot=K(D.BadRequest),_=(()=>{let t=class t{constructor(i,r,I){this.actions=i,this.newsletterunsubscribeService=r,this.translateService=I,this.unsubscribeFromNewsletter=T(()=>this.actions.pipe(B(s.unsubscribeFromNewsletter),g(({patronSystemId:m,newsletterUUID:x})=>m===""||x===""?this.translateService.get("UNSUBSCRIBE.MISSING_PARAM").pipe(n(o=>s.unsubscribeUnsuccessful({error:o}))):this.newsletterunsubscribeService.unsubscribeNewsletter(m,x).pipe(M(()=>this.translateService.get("NEWSLETTER.SUCCESS").pipe(n(o=>y.addToast({toastMessage:o,toastLevel:R.SUCCESS})))),ot(()=>this.translateService.get("NEWSLETTER.BAD_REQUEST").pipe(n(o=>s.unsubscribeUnsuccessful({error:o})))),J(()=>this.translateService.get("ERRORS.TECHNICAL_FAILURE").pipe(n(o=>s.unsubscribeUnsuccessful({error:o})))))))),this.unsubscribeUnsuccessful=T(()=>this.actions.pipe(B(s.unsubscribeUnsuccessful),n(({error:m})=>y.addToast({toastMessage:m,toastLevel:R.DANGER}))))}};t.\u0275fac=function(r){return new(r||t)(a(Q),a(Z),a(O))},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})();var kt=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=E({type:t}),t.\u0275inj=h({imports:[k,Y,H,b,z.forFeature([_])]});let e=t;return e})();export{kt as NewsletterUnsubscribeModule};

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.