PageSourceSearch

https://www.sparwelt.de/_nuxt/cc-gGEglmjl.js

js sparwelt.de collected 2026-10-03 22:56:32 UTC 6,385 bytes, 1 lines download raw bytes

1import{b as W,c as ee}from"./cc-DM-Z3Z0f.js";import{c as te,d as oe}from"./cc-oLkJiT0o.js";import{l as se,A as ne,a as le,e as ae}from"./cc-DDwpU1ec.js";import{m as re,o as a,j as u,l as r,b as M,g as e,B as c,n as C,A as b,aR as ie,t as w,s as L,S as ce,C as p,e as y,F as I,w as _,E as j,i as D,aC as ue,X as de}from"./cc-B5RKvQpP.js";import{a as pe}from"./cc-D1PqLfUK.js";const me={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:"1rem",width:"1rem"};function fe(n,i){return a(),u("svg",me,i[0]||(i[0]=[r("path",{d:"M384 352H224c-17.7 0-32-14.3-32-32V64c0-17.7 14.3-32 32-32H332.1c4.2 0 8.3 1.7 11.3 4.7l67.9 67.9c3 3 4.7 7.1 4.7 11.3V320c0 17.7-14.3 32-32 32zM433.9 81.9L366.1 14.1c-9-9-21.2-14.1-33.9-14.1H224c-35.3 0-64 28.7-64 64V320c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V115.9c0-12.7-5.1-24.9-14.1-33.9zM64 128c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H224c35.3 0 64-28.7 64-64V416H256v32c0 17.7-14.3 32-32 32H64c-17.7 0-32-14.3-32-32V192c0-17.7 14.3-32 32-32h64V128H64z"},null,-1)]))}const ge=re({name:"fal-copy",render:fe}),ve={EBAY:"ebay","EBAY.CH":"ebay.ch",AMAZON:"amazon",ALIEXPRESS:"aliexpress",ZALANDO:"zalando",OTTO:"otto"},he={EBAY:!0,"EBAY.CH":!0,AMAZON:!0,ALIEXPRESS:!1,ZALANDO:!1,OTTO:!1};function _e(){function n(l){return!l||typeof l!="string"?!1:Object.values(ve).includes(l.toLowerCase())}function i(l){return n(l)?he[l.toUpperCase()]??!1:!1}return{isShop:n,isAdsFlagEnabledForShop:i}}const be=M({__name:"AdsFlagIndicator",props:{shopTitle:null,bgColorClass:null,absolute:{type:Boolean,default:!0},text:{type:Boolean}},setup(n){const{isAdsFlagEnabledForShop:i}=_e();return(l,m)=>n.shopTitle&&e(i)(n.shopTitle)?(a(),u("span",{key:0,class:C(["w-[65px] py-[5px] text-sm text-center uppercase",[n.text?"text-gray-400":`${n.bgColorClass||"bg-gray-400"} text-white`,n.absolute?"absolute top-4 left-4":""]])},c(l.$t("general.add")),3)):b("",!0)}});function we(n){const i=ie(void 0),l=w(!1);{const{onConsent:m}=pe();m("analytics",()=>{const t=window.posthog;if(!t)return;const v=()=>{i.value=t.getFeatureFlag(n),l.value=!0};t.onFeatureFlags(v);const d=t.getFeatureFlag(n);d!==void 0&&(i.value=d,l.value=!0)})}return{value:i,isLoaded:l}}const ye={class:"relative bg-white text-ci-gray-600 overflow-hidden"},Ce={class:"p-4 flex flex-col items-center"},ke={class:"text-xl mb-5"},xe={class:"space-y-2 w-full md:w-96"},$e={key:1,class:"absolute text-sm text-sw-blue-400 font-normal right-1"},Ve={class:"flex justify-between"},Ae={class:"flex h-9 ml-4"},Se={key:1,class:"min-h-48 px-4 lg:pb-4"},Ee={key:0,class:"flex w-full pt-4 items-center justify-center mb-6"},Fe={key:2,class:"flex justify-center items-center py-20 px-5"},Be={class:"heading-lg text-center"},Te=M({__name:"VoucherDialog",props:{item:{default:()=>({})},code:{default:null}},emits:["close","share","copy","report"],setup(n,{emit:i}){const l=n,m=i,{item:t,code:v}=l,d=w(null),{cta:x}=se(t),{value:z,isLoaded:N}=we("singular-clickout-button"),R=L(()=>!N.value||z.value==="test"),f=w("details"),h=L(()=>({news:f.value==="news",details:f.value==="details",share:f.value==="share"})),k=w(!1),$=w(!1);let V;function P(){m("copy",v),k.value=!0,clearTimeout(V),V=setTimeout(()=>{k.value=!1},2e3)}return ce(()=>{d.value=document.referrer===""||document.referrer.includes(location.origin)}),(o,s)=>{var S,E,F,B,T,O,H;const U=ne,X=be,Y=de,Z=ge,q=W,G=ee,A=le,J=ae,K=te,Q=oe;return a(),u("div",ye,[p(U,{class:"fill-gray-600 absolute top-4 right-4 cursor-pointer hover:fill-gray-900 hover:scale-125 transition",onClick:s[0]||(s[0]=g=>m("close"))}),(E=(S=e(t))==null?void 0:S.shop)!=null&&E.title?(a(),y(X,{key:0,"shop-title":e(t).shop.title,"bg-color-class":"bg-ci-gray-400"},null,8,["shop-title"])):b("",!0),e(t).id?(a(),u(I,{key:1},[r("div",Ce,[p(Y,{plain:"",src:(B=(F=e(t).shop)==null?void 0:F.logo)==null?void 0:B.url,alt:(O=(T=e(t).shop)==null?void 0:T.logo)==null?void 0:O.alternativeText,title:o.$t("components.shop.defaultAlt",{shop:(H=e(t).shop)==null?void 0:H.title}),preset:"shop",class:"shop-logo w-[150px] mb-2",width:"150",height:"75"},null,8,["src","alt","title"]),r("div",ke,c(e(t).title),1),r("div",xe,[e(d)?(a(),u("div",{key:0,class:"border font-bold cursor-pointer px-3 h-10 w-full flex items-center justify-center text-sw-blue-500 border-ci-gray-300 relative",onClick:P},[p(q,null,{fallback:_(()=>s[7]||(s[7]=[j(" ... ")])),default:_(()=>[r("span",null,c(e(v)||o.$t("general.no_code_required")),1),e(v)?(a(),u(I,{key:0},[e(k)?(a(),u("span",$e,c(o.$t("components.voucher.copy_success")),1)):(a(),y(Z,{key:0,class:"absolute right-4"}))],64)):b("",!0)]),_:1})])):b("",!0),p(A,{class:"w-full",variant:"default",onClick:s[1]||(s[1]=g=>("useEvent"in o?o.useEvent:e(D))(e(d)?"clickout:voucher-overlay":"clickout:voucher",e(t)))},{default:_(()=>[r("span",null,c(e(d)?o.$t("components.voucher.cta.shop"):o.$t(e(x))),1),p(G)]
1),_:1})])]),r("div",Ve,[r("div",Ae,[r("div",{class:C(["leading-9 mr-4 text-center cursor-pointer",e(h).details?["text-sw-blue-400","border-b-2","border-sw-blue-400"]:[]]),onClick:s[2]||(s[2]=g=>f.value="details")},c(o.$t("general.terms")),3),r("div",{class:C(["leading-9 mr-4 text-center cursor-pointer",e(h).share?["text-sw-blue-400","border-b-2","border-sw-blue-400"]:[]]),onClick:s[3]||(s[3]=g=>f.value="share")},c(o.$t("general.share")),3),r("div",{class:C(["leading-9 mr-4 text-center cursor-pointer",e(h).news?["text-sw-blue-400","border-b-2","border-sw-blue-400"]:[]]),onClick:s[4]||(s[4]=g=>f.value="news")},c(o.$t("general.news")),3)]),r("span",{class:"text-sm text-sw-blue-400 leading-5 py-2 mr-4 cursor-pointer hover:bg-sw-blue-100 transition-colors",onClick:s[5]||(s[5]=g=>$.value=!0)},c(e($)?o.$t("general.non_functional_confirmation"):o.$t("general.non_functional_question")),1)]),p(ue,{mode:"out-in",duration:100},{default:_(()=>[e(h).news?(a(),y(J,{key:0})):e(h).details?(a(),u("div",Se,[p(K,{item:e(t)},null,8,["item"]),e(R)?b("",!0):(a(),u("div",Ee,[p(A,{variant:"default",class:"w-80",onClick:s[6]||(s[6]=g=>("useEvent"in o?o.useEvent:e(D))(e(d)?"clickout:voucher-overlay":"clickout:voucher",e(t)))},{default:_(()=>[j(c(o.$t(e(x))),1)]),_:1})]))])):(a(),y(Q,{key:2,item:e(t),class:"min-h-48"},null,8,["item"]))]),_:1})],64)):(a(),u("div",Fe,[r("span",Be,c(o.$t("components.voucher.not_found")),1)]))])}}}),De=Object.freeze(Object.defineProperty({__proto__:null,default:Te},Symbol.toStringTag,{value:"Module"}));export{De as V,ge as _};

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.