PageSourceSearch

https://www.fielmann.at/_nuxt/hvP80pW92.js

js fielmann.at collected 2026-09-28 12:39:28 UTC 6,083 bytes, 1 lines download raw bytes

1import{n as pe}from"./kjsH4l9N.js";import{i as fe}from"./W8yBmbHj.js";import{Ct as be,D as u,E as M,Ht as ve,On as e,Qn as k,Yt as L,_ as n,b as y,bt as ge,et as I,g as s,in as _e,k as ke,mt as i,nr as R,o as j,pn as ye,qt as c,un as he,v as b,vn as h,xt as q,y as f}from"./CMma-7Vx.js";import{w as we,x as xe}from"./C6SiKk5q.js";import{n as Ce}from"./DZrRgJ-1.js";import{g as Ne,r as Se,t as Ie}from"./DFOnntE8.js";import{t as Re}from"./X7qtgBEQ.js";import{t as P}from"./DG7sPv5b.js";import{n as ze}from"./BBau2tMe.js";import{i as Te,n as $e}from"./DErm9OOm.js";import{m as Y}from"./DG3aEyU_.js";import{o as Be,s as Ee}from"./BFsQiLOF2.js";import{l as z,s as w}from"./C2x3Az-d2.js";import{t as Ue}from"./CZu5gRnK2.js";import{t as He}from"./Cmc9vSz9.js";import{t as Ve}from"./CmOIa94w.js";import{t as De}from"./DPlY_dYR.js";import{t as Oe}from"./BouI-t782.js";import{n as Fe,t as Ae}from"./B3n1HHKH.js";import{t as Me}from"./CuD1vBv3.js";import{t as Le}from"./69neW8WK.js";import{n as Q,r as je}from"./D-IA5GmO.js";import{t as qe}from"./BnErjWmn2.js";var Pe=()=>{const r=Re("user-email-state",()=>"");return[s(()=>r.value),t=>{r.value=t}]},Ye={key:2,class:"mb-4"},Qe={class:"mb-6 flex h-11 justify-between"},Ge={class:"relative mx-auto my-0 mr-2 grow"},Je={class:"absolute inset-y-0 left-0 flex items-center justify-center border-r border-neutral-30 px-2 py-1"},Ke=["placeholder"],We={class:"sr-only"},Xe={class:"relative flex max-h-64 w-full lg:max-h-none"},Ze=ke({__name:"Newsletter",props:{blok:{type:Object,default:()=>{}},uuid:{type:String,default:""},layout:{type:String,default:"horizontal"}},emits:["update:open"],setup(r){const t=r,G=Ce(),T=_e();ye(()=>T.stop());const[,J]=Pe(),v=Ie(),{$validation:$}=fe(),B=Se(),{alert:K}=Fe(),{trackNewsletter:W}=P(),{subscribe:X}=je(),l=h(""),d=h(!1),x=h(!0),E=s(()=>!!$.rule.required.$validator(l.value,void 0,void 0)&&!!$.rule.email.$validator(l.value,void 0,void 0)),C=s(()=>{const o=Q(t.blok.subscribe_redirect_url,v.value,B.origin),a=Q(t.blok.unsubscribe_redirect_url,v.value,B.origin);if(!(!o||!a))return{redirectUrl:o,unsubscribeRedirectUrl:a}}),Z=s(()=>!!C.value),U=s(()=>t.blok.theme==="dark"?"dark":"light");T.run(()=>{ve(l,o=>{o===""&&(x.value=!0)})});const ee=o=>{l.value=o.target.value},g=h(!1),te=async()=>{if(!E.value||!C.value)return;const{redirectUrl:o,unsubscribeRedirectUrl:a}=C.value;g.value=!0;try{const m=$e(v.value.locale);await X({occurredAt:new Date,email:l.value,source:t.blok.source,unsubscribeRedirectUrl:a,redirectUrl:o,countryCode:m,languageCode:Te(v.value.locale,"_")}),W(l.value),J(l.value),d.value=!0}catch(m){ze.error("Failed to subscribe to newsletter",{err:m,domain:"newsletter",event:"newsletter.subscribe_failed",source:"Newsletter"}),K(G.t("error.connection"),Ae.error)}finally{g.value=!1}},oe=s(()=>t.layout==="horizontal"?["order-2","bg-gray-200","px-6","pt-10","pb-16","lg:px-20","lg:py-24","lg:order-0"]:["order-2","bg-white","px-5 py-8","md:p-11"]),_={tag:Be.H2},N=s(()=>d.value?w(t.blok.confirmation_headline_ref,_):w(t.blok.headline_ref,_)),S=s(()=>d.value?w(t.blok.confirmation_subline_ref,_):w(t.blok.subline_ref,_)),H=s(()=>d.value?z(t.blok.confirmation_description_ref):z(t.blok.description_ref)),re=s(()=>d.value?t.blok.confirmation_images:t.blok.images),V=s(()=>z(t.blok.annotations_ref)),{trackPromotionView:ae,trackPromotionClick:se}=P(),le=(o,a)=>{Y(t.blok)&&ae(t.blok),a()},D=()=>{Y(t.blok)&&se(t.blok)};return(o,a)=>{const m=He,O=De,F=Ne,ne=Le,ie=Me,A=Ve,ue=Oe,ce=qe,de=Ue,me=be("editable");return L((i(),b(de,I({...r.blok.id?{id:r.blok.id}:{}},{"data-testid":`newsletter-${r.uuid}`,threshold:e(Ee),onEnter:le}),{default:c(()=>[n("div",{class:k(["sb-blok-newsletter grid grid-cols-1 place-content-center",[r.layout==="horizontal"&&"lg:grid-cols-2"]])},[n("div",{class:k(["relative",e(oe)])},[e(N)?(i(),b(m,I({key:0},{...e(N)},{class:["tracking-[-0.3px]",[r.layout==="horizontal"?"mb-4 text-3xl":"mb-1 text-lg"]]}),{default:c(()=>[M(R(e(N).text),1)]),_:1},16,["class"])):f("",!0),e(S)?(i(),b(m,I({key:1},{...e(S)},{class:["leading-none! tracking-[-0.3px]",[r.layout==="horizontal"?"mb-8 text-5xl lg:text-6xl":"mb-5 text-2xl lg:text-3xl"]]}),{default:c(()=>[M(R(e(S).text),1)]),_:1},16,["class"])):f("",!0),e(H)?(i(),y("div",Ye,[q(o.$slots,"description",{},()=>[u(F,null,{default:c(()=>[u(O,{document:e(H).body},null,8,["document"])]),_:1})])])):f("",!0),!e(d)&&e(Z)?(i(),y(j,{key:3},[n("form",{onSubmit:we(te,["prevent"])},[n("div",Qe,[n("div",Ge,[n("span",Je,[u(ne,{class:"size-8"})]),L(n("input",{id:"newsletter-email-input","onUpdate:modelValue":a[0]||(a[0]=p=>he(l)?l.value=p:null),class:k([{"text-red-600":!e(E)&&!e(x)},"size-full rounded border border-neutral-30 bg-white py-1.5 pr-10 pl-3 text-lg outline-none focus:border-black focus:ring-0"]),placeholder:o.$t("newsletter.email"),autocomplete:"off",type:"email",onInput:ee,onBlur:a[1]||(a[1]=p=>x.value=!1)}
1,null,42,Ke),[[xe,e(l)]])]),u(A,{type:"primary",class:"gap-0! p-2","no-padding":"",theme:e(U),loading:e(g),disabled:e(g),onMousedown:D},{icon:c(()=>[u(ie,{class:"size-6"})]),default:c(()=>[n("span",We,R(o.$t("dialog.confirm")),1)]),_:1},8,["theme","loading","disabled"])])],32),e(V)?(i(),y("div",{key:0,class:k([r.layout==="horizontal"?"text-sm leading-4.5 text-gray-600":"text-sm leading-4.5 text-neutral-40"])},[q(o.$slots,"description",{},()=>[u(F,null,{default:c(()=>[u(O,{document:e(V).body},null,8,["document"])]),_:1})])],2)):f("",!0)],64)):f("",!0)],2),n("div",Xe,[r.layout==="vertical"?(i(),b(A,{key:0,"aria-label":o.$t("banner.close"),class:"absolute top-3 right-3 z-10 p-2","no-padding":"",type:"secondary",theme:e(U),"data-testid":"newsletter-close",onClick:a[2]||(a[2]=p=>o.$emit("update:open",!1)),onMousedown:D},{icon:c(()=>[u(ue,{class:"size-6"})]),_:1},8,["aria-label","theme"])):f("",!0),(i(!0),y(j,null,ge(e(re),p=>(i(),b(ce,{key:p._uid,class:"w-full",loading:"lazy",blok:p,sizes:"(max-width: 1023px) 100vw, 70vw"},null,8,["blok"]))),128))])],2)]),_:3},16,["data-testid","threshold"])),[[me,r.blok]])}}}),Ct=pe({default:()=>et}),et=Object.assign(Ze,{__name:"Newsletter"});export{Ct as n,et as t};

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.