PageSourceSearch

https://www.moulinex.es/chunk-2FBO3PMC.js

js moulinex.es collected 2026-09-24 19:18:01 UTC 4,643 bytes, 1 lines download raw bytes

1import{P as O,V as F}from"./chunk-AVFLSLTV.js";import{a as B}from"./chunk-FLVLCJTS.js";import{m as U}from"./chunk-DJPGZFBY.js";import{Qa as M,Va as z,Z as A}from"./chunk-2THTJ2V7.js";import{c as b,k as v}from"./chunk-XVZXOWV7.js";import{Aa as y,Ea as s,R as S,W as l,Wa as N,d as x,da as K,e as L,f as R,n as p,qa as H,ra as w,v as I,w as f}from"./chunk-VDJNVHIP.js";import{a as u,b as m}from"./chunk-NAIKXHWT.js";var _="https://challenges.cloudflare.com/turnstile/v0/api.js",oe=(()=>{class o{get captchaTurnstileKey$(){return this.captchaTurnstileKey.asObservable().pipe(K(e=>e!==void 0))}constructor(e,t,i,a,r){this.occEndpointsService=e,this.http=t,this.customScriptLoader=i,this.zone=a,this.destroy$=new x,this.turnstileReady$=new R(1),this.turnstileLoadStarted=!1,this.captchaTurnstileKey=new L(void 0),r.getStable("backend","context").pipe(w(this.destroy$)).subscribe(()=>{this.getCaptchaKey(),this.loadTurnstileScript()})}verifyCaptcha(e){let t=this.occEndpointsService.buildUrl("verifyCaptcha"),i=new b({"Content-Type":"application/json"});return this.http.post(t,e,{headers:i}).pipe(I(a=>(a?.response??[]).map(n=>({key:n.key??"",value:{value:!!n.value?.value}})).find(n=>n.key==="success")?.value.value??!1))}verify(e,t,i){if(!e){this.zone.run(()=>i(new Error("Captcha element is missing.")));return}let a=()=>this.zone.run(()=>t()),r=n=>this.zone.run(()=>i(n));f([this.captchaTurnstileKey$,this.waitForTurnstile()]).pipe(l(1),S(n=>(r(n),p(null)))).subscribe(n=>{if(!n)return;let[g]=n;if(!this.isTurnstileReady()){r(new Error("Turnstile is not ready."));return}let d=!1,h={sitekey:g,theme:"auto",appearance:"execute",callback:c=>{if(!d)return d=!0,this.zone.run(()=>this.handleToken(c,a,r))},"error-callback":()=>r(new Error("Captcha failed to execute.")),"expired-callback":()=>r(new Error("Captcha expired."))};try{window.turnstile.execute(e.nativeElement,h)}catch(c){r(c)}})}getCaptchaKey(){let e=this.occEndpointsService.buildUrl("captchaKey");this.http.get(e).pipe(w(this.destroy$)).subscribe(t=>this.captchaTurnstileKey.next(t.key))}loadTurnstileScript(){if(!this.turnstileLoadStarted){if(this.turnstileLoadStarted=!0,this.isTurnstileReady()){this.turnstileReady$.next(),this.turnstileReady$.complete();return}this.customScriptLoader.embedScript({src:_,params:{render:"explicit"},callback:()=>{this.turnstileReady$.next(),this.turnstileReady$.complete()},errorCallback:()=>this.turnstileReady$.error(new Error("Turnstile script failed to load."))})}}waitForTurnstile(){return typeof window>"u"?p(void 0):this.isTurnstileReady()?p(void 0):this.turnstileReady$.asObservable()}isTurnstileReady(){return typeof window<"u"&&!!window.turnstile}handleToken(e,t,i){this.verifyCaptcha(e).pipe(l(1)).subscribe({next:a=>{a?t():i(new Error("Captcha verification failed."))},error:i})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(t){return new(t||o)(s(A),s(v),s(F),s(N),s(M))}}static{this.\u0275prov=y({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var ge=(()=>{class o{constructor(e,t,i,a,r){this.http=e,this.configService=t,this.baseStoreService=i,this.languageService=a,this.hobStateService=r}subscribeToNewsletter(e,t){let i=this.languageService.getActive().pipe(l(1)),a=this.hobStateService.hobState$;return f([i,a]).pipe(H(([r,{isHob:n,liveBrand:g,siteBrand:d}])=>{let h=this.baseStoreService.baseStore,c=this.configService.config,k=h.languages?.find(J=>J.isocode===r)?.langue_SF,E=h.market,Q="Sovendus",C=(n?g||d:c.myAccount?.brand)?.toLowerCase(),D=[u(u({brand:C,isActive:!0},e.prefComEmail&&{prefComEmail:e.prefComEmail}),e.prefComSMS&&{prefComSMS:e.prefComSMS})],T="WEB",P="WEBSITE",j=c.myAccount?.subscriptionKey,$=c.myAccount?.baseUrl;if(!j||!$)return p(void 0);let W=`${$}/profiles/enriched`,Z=new b({"Ocp-Apim-Subscription-Key":j}),q=e.firstName||e.lastName?{firstName:e.firstName,lastName:e.lastName}:{},G=m(u({profile:m(u(m(u({},q),{email:e.email,emailQualityScore:e.emailQualityScore,emailQualityScoreModifiedDate:e.emailQualityScoreModifiedDate,phone:e.phone,gender:e.gender,brand:C,market:E,language:k,touchpoint:T}),e.birthdate&&{birthdate:e.birthdate}),{householdMembers:e.householdMembers})},e.postalCode&&e.city?{addresses:[{postalCode:e.postalCode,city:e.city,isMainAddress:!0}]}:{}),{newsletters:{market:E,language:k,context:t,optinPartner:Q,optins:D,touchpoint:T,touchpointBrand:C,touchpointSource:P}});return this.http.post(W,G,{headers:Z})}),S(()=>p(void 0)))}static{this.\u0275fac=function(t){return new(t||o)(s(v),s(U),s(B),s(z),s(O))}}static{this.\u0275prov=y({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o}
1)();export{oe as a,ge as b};

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.