PageSourceSearch

https://mon.astrocenter.fr/155.688b50808cce0be7.js

js astrocenter.fr collected 2026-09-26 04:30:13 UTC 5,088 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkpublisher_front=self.webpackChunkpublisher_front||[]).push([[155],{713:(b,M,n)=>{n.d(M,{B:()=>h});var t=n(467),g=n(9330),v=n(9030),E=n(8810),u=n(5312),m=n(9437),C=n(6354),P=n(5558),f=n(8141),c=n(2615),D=n(7303),a=n(9617),O=n(3745),s=n(1617);let h=(()=>{class o{constructor(e,i,_,r,d){this.http=e,this.platformLocation=i,this.globalVariablesService=_,this.utmService=r,this.localStorageService=d,this.httpHeaders={headers:new g.Lr({Accept:"application/json"})}}downloadPdfStream(e){const i=`${u.c.apiEndPoint}newsletter/download-pdf?email=${encodeURIComponent(e)}&domain=${encodeURIComponent(this.platformLocation.hostname)}`;return(0,v.v)(()=>fetch(i,{method:"GET",headers:{Accept:"application/json"}}))}subscribeNewsletter(e,i,_,r){return this.http.post(`${u.c.apiEndPoint}newsletter/subscribe`,{horoscope_daily:e.optionsCheckboxes.horoscope,horoscope_weekly:e.optionsCheckboxes.newsletter,blurb:e.optionsCheckboxes.blurb,partners:e.promotions,wengood_newsletter:e.optionsCheckboxes.wengood_newsletter,tarot:e.optionsCheckboxes.tarot,gender:e.gender,firstname:e.firstname,birth_day:e.birthDay,birth_month:e.birthMonth,birth_year:e.birthYear,birth_hour:e.birthHours,birth_minute:e.birthMinutes,birth_country:e.birthCountry,birth_state:e.birthState,birth_city:e.birthCity,email:e.email,accept_cgu:e.cgv,pixel_tracking:e.pixel_tracking,domain:this.platformLocation.hostname,path:this.platformLocation.pathname,isAuthenticated:i,oid:_,h:r},this.httpHeaders).pipe((0,f.M)(p=>p),(0,m.W)(p=>(0,E.$)(p)))}subscribeNewsletterCatchmail(e,i,_=!0,r=!1,d){let p={email:e,next:i,domain:this.platformLocation.hostname,path:this.platformLocation.pathname,pageId:this.globalVariablesService.getPageId(),force:_};null!=d&&(p.module_id=d);const U=this.utmService.getCurrentUtmList({...this.utmService.getDefaultUtmList(),utmSource:i.includes("wengood")?"wengood":"astrocenter"});return U&&(p={...p,...this.utmService.urlFormat(U)}),this.http.post(`${u.c.apiEndPoint}${r?"newsletter/subscribe/catchEmailBubblebot":"newsletter/subscribe/catchEmail"}`,p,this.httpHeaders).pipe((0,P.n)(l=>(0,v.v)(()=>this.sha1(e)).pipe((0,C.T)(L=>({response:l,hash:L})))),(0,f.M)(({response:l,hash:L})=>("error"!==l.status&&(window.dataLayer&&window.dataLayer.push({event:"CatchMail",event_name:"CatchMailSuccess",is_new:!(l.data&&l.data.already_known_email),hash_email:L}),this.localStorageService.setCatchMailStatus(e)),l)),(0,C.T)(({response:l})=>l),(0,m.W)(l=>(0,E.$)(()=>l)))}unsubscribeNewsletter(e,i){return this.http.post(`${u.c.apiEndPoint}newsletter/unsubscribe`,{oid:e,h:i,domain:this.platformLocation.hostname},this.httpHeaders).pipe((0,f.M)(r=>r),(0,m.W)(r=>(0,E.$)(r)))}sha1(e){return(0,t.A)(function*(){const i=(new TextEncoder).encode(e),_=yield crypto.subtle.digest("SHA-1",i);return Array.from(new Uint8Array(_)).map(d=>d.toString(16).padStart(2,"0")).join("")})()}static{this.\u0275fac=function(i){return new(i||o)(c.KVO(g.Qq),c.KVO(D.Vw),c.KVO(a._),c.KVO(O.q),c.KVO(s.s))}}static{this.\u0275prov=c.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})()},5155:(b,M,n)=>{n.r(M),n.d(M,{NewsletterUnsubscribeComponent:()=>D});var t=n(3664),g=n(177),v=n(2200),E=n(9330),u=n(2101),m=n(2615),C=n(713);function P(a,O){if(1&a&&(t.j41(0,"div",0),t.nrm(1,"p",2),t.k0s()),2&a){const s=t.XpG();t.Y8G("ngClass",s.isValidResponse?"flash-message-success":"flash-message-error"),t.R7$(),t.Y8G("innerHTML",s.flashMessage,t.npT)}}function f(a,O){if(1&a){const s=t.RV6();t.j41(0,"button",3),t.bIt("click",function(){m.eBV(s);const o=t.XpG();return m.Njj(o.unsubscribeNewsletter())}),t.EFF(1),t.k0s()}if(2&a){const s=t.XpG();t.R7$(),t.JRh(s.item.translations.UNSUBSCRIBE_CTA)}}function c(a,O){1&a&&t.nrm(0,"app-mini-loader")}let D=(()=>{class a{constructor(s,h,o){this.platformId=s,this.item=h,this.newsletterService=o,this.isLoading=!1,this.isValidResponse=null,this.flashMessage=null}ngOnInit(){(0,g.UE)(this.platformId)&&!this.item.context.isOptin&&(window.location.href="/newsletter/")}unsubscribeNewsletter(){this.isLoading=!0,this.newsletterService.unsubscribeNewsletter(this.item.context.oid,this.item.context.h).subscribe(s=>{0===s.errors.length&&s.success.length>0?(this.flashMessage=s.success.join(".<br/>"),this.isValidResponse=!0):s.errors.length>0&&(this.flashMessage=s.errors.join(".<br/>"),this.isValidResponse=!1),this.isLoading=!1},s=>{this.isValidResponse=!1,this.flashMessage=s instanceof E.yz?s.statusText:"Something went wrong",this.isLoading=!1})}static{this.\u0275fac=function(h){return new(h||a)(t.rXU(t.Agw),t.rXU("moduleData"),t.rXU(C.B))}}static{this.\u0275cmp=t.VBU({type:a,selectors:[["app-newsletter-unsubscribe"]],decls:3,vars:3,consts:[[1,"flash-message",3,"ngClass"],[1,"btn","btn-no-arrow"],[3,"innerHTML"],[1,"btn","btn-no-arrow",3,"click"]],template:function(h,o){1&h&&(t.nVh(0,P,2,2,"div",0),t.nVh(1,f,2,1,"button",1),t.nVh(2,c,1,0,"app-mini-loader")),2&h&&(t.vxM(null!==o.isValidResponse?0:-1),t.R7$(),t.vxM(o.isLoading||null!==o.isValidResponse?-1:1),t.R7$(),t.vxM(o.isLoading?2:-1))},dependencies:[v.YU,u.s],encapsulation:2})}}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.