PageSourceSearch

https://mi.astrocentro.com/487.73544cb6de1a7498.js

js astrocentro.com collected 2026-10-07 13:38:14 UTC 8,233 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkpublisher_front=self.webpackChunkpublisher_front||[]).push([[487],{713:($,E,e)=>{e.d(E,{B:()=>b});var v=e(467),h=e(9330),M=e(9030),f=e(8810),l=e(5312),d=e(9437),p=e(6354),O=e(5558),t=e(8141),_=e(2615),P=e(7303),L=e(9617),D=e(3745),T=e(1617);let b=(()=>{class m{constructor(n,s,r,a,o){this.http=n,this.platformLocation=s,this.globalVariablesService=r,this.utmService=a,this.localStorageService=o,this.httpHeaders={headers:new h.Lr({Accept:"application/json"})}}downloadPdfStream(n){const s=`${l.c.apiEndPoint}newsletter/download-pdf?email=${encodeURIComponent(n)}&domain=${encodeURIComponent(this.platformLocation.hostname)}`;return(0,M.v)(()=>fetch(s,{method:"GET",headers:{Accept:"application/json"}}))}subscribeNewsletter(n,s,r,a){return this.http.post(`${l.c.apiEndPoint}newsletter/subscribe`,{horoscope_daily:n.optionsCheckboxes.horoscope,horoscope_weekly:n.optionsCheckboxes.newsletter,blurb:n.optionsCheckboxes.blurb,partners:n.promotions,wengood_newsletter:n.optionsCheckboxes.wengood_newsletter,tarot:n.optionsCheckboxes.tarot,gender:n.gender,firstname:n.firstname,birth_day:n.birthDay,birth_month:n.birthMonth,birth_year:n.birthYear,birth_hour:n.birthHours,birth_minute:n.birthMinutes,birth_country:n.birthCountry,birth_state:n.birthState,birth_city:n.birthCity,email:n.email,accept_cgu:n.cgv,pixel_tracking:n.pixel_tracking,domain:this.platformLocation.hostname,path:this.platformLocation.pathname,isAuthenticated:s,oid:r,h:a},this.httpHeaders).pipe((0,t.M)(i=>i),(0,d.W)(i=>(0,f.$)(i)))}subscribeNewsletterCatchmail(n,s,r=!0,a=!1,o){let i={email:n,next:s,domain:this.platformLocation.hostname,path:this.platformLocation.pathname,pageId:this.globalVariablesService.getPageId(),force:r};null!=o&&(i.module_id=o);const g=this.utmService.getCurrentUtmList({...this.utmService.getDefaultUtmList(),utmSource:s.includes("wengood")?"wengood":"astrocenter"});return g&&(i={...i,...this.utmService.urlFormat(g)}),this.http.post(`${l.c.apiEndPoint}${a?"newsletter/subscribe/catchEmailBubblebot":"newsletter/subscribe/catchEmail"}`,i,this.httpHeaders).pipe((0,O.n)(c=>(0,M.v)(()=>this.sha1(n)).pipe((0,p.T)(u=>({response:c,hash:u})))),(0,t.M)(({response:c,hash:u})=>("error"!==c.status&&(window.dataLayer&&window.dataLayer.push({event:"CatchMail",event_name:"CatchMailSuccess",is_new:!(c.data&&c.data.already_known_email),hash_email:u}),this.localStorageService.setCatchMailStatus(n)),c)),(0,p.T)(({response:c})=>c),(0,d.W)(c=>(0,f.$)(()=>c)))}unsubscribeNewsletter(n,s){return this.http.post(`${l.c.apiEndPoint}newsletter/unsubscribe`,{oid:n,h:s,domain:this.platformLocation.hostname},this.httpHeaders).pipe((0,t.M)(a=>a),(0,d.W)(a=>(0,f.$)(a)))}sha1(n){return(0,v.A)(function*(){const s=(new TextEncoder).encode(n),r=yield crypto.subtle.digest("SHA-1",s);return Array.from(new Uint8Array(r)).map(o=>o.toString(16).padStart(2,"0")).join("")})()}static{this.\u0275fac=function(s){return new(s||m)(_.KVO(h.Qq),_.KVO(P.Vw),_.KVO(L._),_.KVO(D.q),_.KVO(T.s))}}static{this.\u0275prov=_.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}}return m})()},2487:($,E,e)=>{e.r(E),e.d(E,{MailForLinkComponent:()=>I});var v=e(467),h=e(4412),M=e(7673),f=e(8810),l=e(9417),d=e(5558),p=e(2200),O=e(2101),t=e(3664),_=e(1617),P=e(713);const L=n=>({"ds-is-hidden":n});function D(n,s){if(1&n&&t.nrm(0,"p",5),2&n){const r=t.XpG();t.Y8G("innerHTML",r.item.translations.mailForLink.EMAIL_ERROR,t.npT)}}function T(n,s){1&n&&t.nrm(0,"app-mini-loader",6)}function b(n,s){if(1&n&&(t.j41(0,"p",10),t.EFF(1),t.nI1(2,"async"),t.nI1(3,"number"),t.k0s()),2&n){const r=t.XpG(2);t.R7$(),t.SpI("",t.i5U(3,3,t.bMT(2,1,r.progress$),"1.0-0"),"%")}}function m(n,s){if(1&n&&(t.j41(0,"div",7)(1,"div",9),t.nrm(2,"div"),t.nI1(3,"async"),t.k0s(),t.nVh(4,b,4,6,"p",10),t.nI1(5,"async"),t.k0s()),2&n){const r=t.XpG();t.R7$(2),t.xc7("width",t.bMT(3,3,r.progress$),"%"),t.R7$(2),t.vxM(t.bMT(5,5,r.progress$)>0?4:-1)}}let I=(()=>{class n{constructor(r,a,o,i){this.item=r,this.localStorageService=a,this.formBuilder=o,this.newsletterService=i,this.isLoading$=new h.t(!1),this.mailSubmitted$=new h.t(!1),this.catchMailStatus$=new h.t(this.localStorageService.getCatchMailStatus()),this.emailError$=new h.t(!1),this.form=this.formBuilder.group({catchMail:["",[]]}),this.progress$=new h.t(0),this.catchMailStatus$.subscribe(g=>{this.form=this.formBuilder.group({catchMail:["",[l.k0.required,l.k0.pattern("^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$")]]})})}submit(){var r=this;this.isLoading$.next(!0);let a=(0,M.of)(null);var o;this.mailSubmitted$.value||(a=this.newsletterService.subscribeNewsletterCatchmail(this.form.value.catchMail,"wengood_newsletter").pipe((0,d.n)(o=>"error"===o.status?(this.emailError$.next(!0),(0,f.$)(()=>{const i=new Error("Error occured with email submission");return i.timestamp=Date.now(),i})):(0,M.of)(null)))),a.pipe((0,d.n)(()=>(this.mailSubmitted$.next(!0),this.progress$.next(0),this.newsletterService.downloadPdfStream(this.form.value.catchMail)))).subscribe({next:(o=(0,v.A)(function*(i){
1if(r.isLoading$.next(!1),!i.ok)return void console.error("Erreur de t\xe9l\xe9chargement");const g=i.headers.get("Content-Disposition").match(/filename="(.+)"/)[1],x=i.body.getReader(),c=+i.headers.get("Content-Length");let u=0,C=[];for(;;){const{done:w,value:R}=yield x.read();if(w)break;C.push(R),u+=R.length,r.progress$.next(u/c*100)}const U=new Blob(C),y=document.createElement("a");y.href=URL.createObjectURL(U),y.download=g,y.click()}),function(g){return o.apply(this,arguments)}),error:o=>{this.isLoading$.next(!1)}})}static{this.\u0275fac=function(a){return new(a||n)(t.rXU("moduleData"),t.rXU(_.s),t.rXU(l.ok),t.rXU(P.B))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-mail-for-link"]],decls:14,vars:21,consts:[[1,"max-width-content"],[1,"ds-h4","ds-align-center","ds-margin-s",3,"innerHTML"],[3,"ngSubmit","formGroup"],[1,"ds-margin-s","ds-align-center",3,"ngClass"],["type","email","name","catchMail","id","catchMail","formControlName","catchMail",1,"ds-margin-auto",3,"placeholder"],[3,"innerHTML"],[1,"mini-loader"],[1,"ds-margin-auto","progress-container"],["type","submit",1,"ds-margin-auto","ds-button","primary",3,"disabled","innerHTML"],[1,"progress-bar"],[1,"ds-align-right"]],template:function(a,o){1&a&&(t.j41(0,"div",0),t.nrm(1,"p",1),t.j41(2,"form",2),t.bIt("ngSubmit",function(){return o.submit()}),t.j41(3,"div",3),t.nI1(4,"async"),t.nI1(5,"async"),t.nrm(6,"input",4),t.nVh(7,D,1,1,"p",5),t.nI1(8,"async"),t.k0s(),t.nVh(9,T,1,0,"app-mini-loader",6),t.nI1(10,"async"),t.nVh(11,m,6,7,"div",7),t.nI1(12,"async"),t.nrm(13,"button",8),t.k0s()()),2&a&&(t.R7$(),t.Y8G("innerHTML",o.item.translations.mailForLink.TITLE,t.npT),t.R7$(),t.Y8G("formGroup",o.form),t.R7$(),t.Y8G("ngClass",t.eq3(19,L,t.bMT(4,9,o.mailSubmitted$)||t.bMT(5,11,o.isLoading$))),t.R7$(3),t.Y8G("placeholder",o.item.translations.mailForLink.EMAIL_PLACEHOLDER),t.R7$(),t.vxM(t.bMT(8,13,o.emailError$)?7:-1),t.R7$(2),t.vxM(t.bMT(10,15,o.isLoading$)?9:-1),t.R7$(2),t.vxM(t.bMT(12,17,o.progress$)>0?11:-1),t.R7$(2),t.Y8G("disabled",o.form.invalid)("innerHTML",o.item.translations.mailForLink.CTA,t.npT))},dependencies:[l.X1,l.qT,l.me,l.BC,l.cb,l.j4,l.JD,p.YU,O.s,p.Jj,p.QX],styles:["[_nghost-%COMP%]{background-color:#f4ebf9;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;margin:20px auto;overflow:hidden;max-width:800px;min-height:250px}[_nghost-%COMP%]   .max-width-content[_ngcontent-%COMP%]{width:90%;margin-left:auto;margin-right:auto}[_nghost-%COMP%]   .progress-container[_ngcontent-%COMP%]{width:100%;max-width:600px;padding:0 12px;overflow:hidden;margin-top:10px;margin-bottom:10px}[_nghost-%COMP%]   .progress-container[_ngcontent-%COMP%]   .progress-bar[_ngcontent-%COMP%]{height:10px;background-color:#fff;margin-bottom:5px}[_nghost-%COMP%]   .progress-container[_ngcontent-%COMP%]   .progress-bar[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{border-radius:5px;height:100%;background:linear-gradient(90deg,#9d49c9bf,#d8327bbf);transition:width .2s}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{text-transform:none;font-size:1.4rem}[_nghost-%COMP%]   form[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}"]})}}return n})()}}]);

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.