PageSourceSearch

https://www.kik.at/_nuxt/B6Y7oAVt.js

js kik.at collected 2026-10-04 11:52:01 UTC 11,693 bytes, 1 lines download raw bytes

1import{fe as ke,dt as we,hL as G,hh as a,fr as y,jE as f,fq as n,ig as i,fL as $e,jo as Le,j4 as Ve,j1 as Ae,iL as Ke,gn as W,hb as Me,jB as Be,hM as xe,iF as e,ft as l,fz as d,cy as Ie,aX as Y,hJ as Oe,cs as je,fs as c,jH as Ne,jF as I,gz as O,cF as Re,aW as Fe,ct as Ue,gW as q,gK as z,cC as Ee,fx as P,b2 as Te,hF as L,hC as Se,fn as b,g9 as He,jx as De}from"./DkruC5uJ.js";import{_ as We}from"./D0C21uGq.js";import{C as Z}from"./vGu3cBkb.js";const Ye={isLoyaltyApplicationEligible:r=>{const v=ke(new Date(r?.dateOfBirth));return{addressValid:r&&r?.billingAddresses.length>0,ageValid:r?.dateOfBirth&&!Number.isNaN(v)&&v>=18}}},qe={},ze=["href"],Pe=["href"];function Ze(r,v){const V=G("i18n-t");return a(),y(V,{tag:"p",keypath:"tosLoyalty",class:"mt-1 cursor-default font-light"},{default:f(()=>[n("a",{href:r.$t("Mykik conditions of participation Link"),alt:"$t('TOS - conditions of participation')",target:"_blank",rel:"noopener",class:"cursor-pointer underline"},i(r.$t("conditions of participation")),9,ze),n("a",{href:r.$t("MyKiK privacy Link"),alt:"$t('TOS - declaration of Data protection')",target:"_blank",rel:"noopener",class:"cursor-pointer underline"},i(r.$t("declaration of Data protection")),9,Pe)]),_:1})}const Ge=Object.assign(we(qe,[["render",Ze]]),{__name:"MyAccountLoyaltyCheckboxLegalText"}),Je={key:0},Qe={key:0,class:"my-4 text-sm lg:text-base"},Xe={class:"my-4 rounded-2xl bg-neutral-50 p-4 text-center"},et={class:"py-3"},tt={class:"flex justify-evenly gap-4 py-3"},st={key:0,class:"mb-3 text-primary-400"},at={key:1,class:"mb-3 text-primary-400"},nt={class:"mb-5"},ot={class:"mr-6 mt-3 flex cursor-pointer items-center gap-2 rounded"},it={class:"text-base"},lt={key:1},rt={class:"mr-6 mt-3 flex cursor-pointer items-start gap-2 rounded"},dt={class:"text-base"},ct=["innerHTML"],ut={key:1},mt={key:2},pt={class:"mt-4 flex w-full flex-col justify-between gap-4 text-4xl lg:flex-row"}
1,gt={key:0,class:"mb-4 w-1/2 rounded-2xl bg-neutral-100 p-4 px-5 py-6 mobile:w-full"},yt={key:1,class:"mb-4 w-1/2 rounded-2xl bg-neutral-100 p-4 px-5 py-6 mobile:w-full"},ft={class:"my-2 font-light"},ht={class:"my-2 font-light"},bt={key:1},_t={class:"list-inside list-disc"},vt={class:"mb-2"},Ct={class:"mb-2"},kt={class:"mb-2"},wt={class:"my-4 font-bold"},$t={key:3,class:"mt-16"},Lt=$e({__name:"LoyaltyCards",props:{showMagnoliaContent:{type:Boolean,default:!0}},setup(r){const{loading:v,saveAddress:V,user:h,isAuthenticated:j,load:J}=Le(),{$i18n:Q,$domain:X}=Ve(),{register:ee,unregister:te,synchronize:se,loading:A,address:p,result:ae,loadingTransactionsCount:ne,loadTransactionCount:N,transactionsCount:R,isTransactionsCountVisible:oe}=Ae(),{cart:_,updateQty:F}=Ke(),{isOpen:ie,open:le,close:U}=W({initialValue:!1}),{isOpen:re,open:de,close:E}=W({initialValue:!1}),u=L(!1),g=L(!1),C=L(""),ce=L(null),T=Se({register:void 0}),K=b(()=>({...h.value,...ae.value})),k=b(()=>K.value?.custom?.fields?.cardIds?K.value.custom.fields.cardIds.reduce((s,o)=>(o.startsWith("986")?s.digital=o:o.startsWith("985")&&(s.analog=o),s),{}):(h.value?.custom?.customFieldsRaw?.find(({name:s})=>s==="cardIds")?.value??[]).reduce((s,o)=>(o.startsWith("986")?s.digital=o:o.startsWith("985")&&(s.analog=o),s),{})),S=b(()=>h.value&&Ye.isLoyaltyApplicationEligible(h.value)),ue=async()=>{const t={};if(!u.value&&!g.value)return;u.value&&(t.cardNumber=C.value),g.value&&(t.newRegistration=!0);const o=(await ee(t))?.message;if(o){T.register=Q.t(He(o)).toString();return}p.value&&Object.keys(p.value).length===0||le(),_.value?.lineItems?.[0]&&await F(_.value.lineItems[0].id,_.value.lineItems[0].quantity),await Promise.all([J,se])},me=async()=>{await te(),_.value?.lineItems?.[0]&&await F(_.value.lineItems[0].id,_.value.lineItems[0].quantity),E()},pe=()=>{ge({address:{...p.value,key:De()}}),U()},ge=async({address:t})=>{ce.value=null,await V({address:t,type:"billing"})};Me(async()=>{h.value?.externalId&&await N()}),Be(h,async t=>{t?.externalId&&await N()});const w=b(()=>S.value?.addressValid||!1),$=b(()=>X.dateOfBirthRequired?S.value?.ageValid||!1:!0),H=T,ye=b(()=>Array.from({length:5},(t,s)=>({isFilled:s+1<=R.value}))),fe=b(()=>["five","four","three","two","one","zero"][R.value]),he=t=>{const s=new URL("data:image/svg+xml,%3csvg%20width='30'%20height='41'%20viewBox='0%200%2030%2041'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6%2015C6%2011.287%206.94821%207.72601%208.63604%205.1005C10.3239%202.475%2012.6131%201%2015%201C17.3869%201%2019.6761%202.475%2021.364%205.10051C23.0518%207.72601%2024%2011.287%2024%2015'%20stroke='%23F6B3BA'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M1%2012H29V37C29%2038.6569%2027.6569%2040%2026%2040H4C2.34315%2040%201%2038.6569%201%2037V12Z'%20stroke='%23F6B3BA'%20stroke-width='2'/%3e%3c/svg%3e",import.meta.url).href,o=new URL("data:image/svg+xml,%3csvg%20width='30'%20height='41'%20viewBox='0%200%2030%2041'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6%2015C6%2011.287%206.94821%207.72601%208.63604%205.1005C10.3239%202.475%2012.6131%201%2015%201C17.3869%201%2019.6761%202.475%2021.364%205.10051C23.0518%207.72601%2024%2011.287%2024%2015'%20stroke='%23E2001A'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M1%2012H29V37C29%2038.6569%2027.6569%2040%2026%2040H4C2.34315%2040%201%2038.6569%201%2037V12Z'%20fill='%23E2001A'%20stroke='%23E2001A'%20stroke-width='2'/%3e%3cpath%20d='M26.786%2016.0001C26.7299%2016.7655%2026.6692%2017.3654%2026.0538%2017.9382C23.5974%2020.2242%2021.2086%2022.5795%2018.8148%2024.9271C17.6725%2026.0478%2016.937%2027.4274%2016.1659%2028.777C15.486%2029.9666%2014.8022%2031.1549%2014.4158%2032.4663C14.2285%2033.1021%2013.8102%2033.5918%2013.1752%2033.887C12.6771%2034.1184%2012.1679%2034.3204%2011.6637%2034.5361C11.4066%2034.6466%2011.1816%2034.5776%2011.0194%2034.3982C10.7777%2034.1315%2010.504%2033.8665%2010.3559%2033.5531C9.83089%2032.4404%208.88968%2031.7104%207.89832%2031.0137C7.6685%2030.8482%207.46572%2030.6517%207.29611%2030.4304C6.99254%2030.0413%207.05463%2029.5345%207.44339%2029.2003C7.99783%2028.7173%208.68548%2028.3955%209.42082%2028.2747C9.7311%2028.2228%209.9763%2028.3313%2010.1466%2028.5709C10.4632%2029.0157%2010.768%2029.4708%2011.0861%2029.9155C11.2421%2030.1336%2011.4104%2030.3447%2011.5866%2030.5479C11.7505%2030.7362%2011.9438%2030.7768%2012.1305%2030.5597C12.6019%2030.0118%2013.1469%2029.5031%2013.5222%2028.9024C15.2399%2026.1559%2017.551%2023.8755%2019.8945%2021.6278C21.4304%2020.1524%2023.0751%2018.7771%2024.6877%2017.374C25.1155%2017.0015%2025.5967%2016.
16815%2026.0688%2016.3585C26.2727%2016.2195%2026.5154%2016.1333%2026.786%2016.0001Z'%20fill='white'/%3e%3c/svg%3e",import.meta.url).href;return t?o:s};return(t,s)=>{const o=Ie,be=je,D=Re,M=Ue,_e=Ee,ve=G("i18n-t"),Ce=We,B=xe("e2e");return!e(v)&&e(j)&&e(h)?(a(),l("div",Je,[d(o,{level:r.showMagnoliaContent?3:4,title:t.$t("mykik benefit cards")},null,8,["level","title"]),e(oe)&&!e(ne)?(a(),l("div",Qe,[n("div",Xe,[n("p",et,i(t.$t("purchaseBenefit",{count:t.$t(e(fe))})),1),n("div",tt,[(a(!0),l(Y,null,Oe(e(ye),(m,x)=>(a(),y(be,{key:x,width:"30",height:"42",src:he(m.isFilled),alt:m.isFilled?`${t.$t("filledBag")}${x}`:`${t.$t("emptyBag")}${x}`},null,8,["src","alt"]))),128))])])])):c("",!0),e(K).externalId?(a(),l("div",mt,[n("div",pt,[e(k).digital?(a(),l("div",gt,[d(o,{level:4,title:t.$t("Your digital benefit card number"),description:e(k).digital,"data-testid":"loyalty-cardnumber"},null,8,["title","description"])])):c("",!0),e(k).analog?(a(),l("div",yt,[d(o,{level:4,title:t.$t("Your benefit card number"),description:e(k).analog,"data-testid":"loyalty-cardnumber"},null,8,["title","description"])])):c("",!0)]),d(ve,{class:"mb-4 font-light text-primary-700",tag:"div",keypath:"loyaltyCardsFootnote"},{default:f(()=>[d(_e,{to:t.$t("MyKiK App Link"),class:"font-bold underline",target:"_blank",rel:"noopener"},{default:f(()=>[P(i(t.$t("here")),1)]),_:1},8,["to"])]),_:1}),n("div",ft,i(t.$t("You no longer want to be a KiK loyalty card member?")),1),n("div",ht,i(t.$t("We think that's a pity. You can unsubscribe here")),1),d(M,{class:"my-4",variant:"primary",uppercase:!0,"data-testid":"unregister-button",onClick:s[3]||(s[3]=m=>e(de)())},{default:f(()=>[P(i(t.$t("Unregister")),1)]),_:1}),d(Z,{"is-open":e(ie),"enable-accept":!(e(p)&&Object.keys(e(p)).length===0),title:t.$t("Import address from customer card"),onOnConfirmationCancel:e(U),onOnAddressSave:pe},{default:f(()=>[e(p)&&Object.keys(e(p)).length===0?(a(),l("p",bt,i(t.$t("You have no new addresses")),1)):(a(),y(Ce,{key:0,address:e(p)},null,8,["address"]))]),_:1},8,["is-open","enable-accept","title","onOnConfirmationCancel"]),d(Z,{"is-open":e(re),title:t.$t("If you want to unsubscribe from the myKiK program, you will lose all benefits, namely:"),"cancel-label":"No","save-label":"Yes, unsubscribe","enable-accept":!0,"accept-loading":e(A),onOnConfirmationCancel:e(E),onOnAddressSave:me},{default:f(()=>[n("ul",_t,[n("li",vt,i(t.$t("20% advantage on shipping costs")),1),n("li",Ct,i(t.$t("monthly myKiK promotions and discounts on selected products")),1),n("li",kt,i(t.$t("special individual offers")),1)]),n("p",wt,i(t.$t("Are you sure you want to unsubscribe from the program?")),1)]),_:1},8,["is-open","title","accept-loading","onOnConfirmationCancel"])])):(a(),l(Y,{key:1},[d(o,{level:r.showMagnoliaContent?4:5,title:t.$t("Secure benefits now with your free myKiK benefit card"),description:t.$t("Cheaper, more convenient & more exciting shopping")},null,8,["level","title","description"]),e(w)?c("",!0):(a(),l("p",st,i(t.$t("addressValidation")),1)),e($)?c("",!0):(a(),l("p",at,i(t.$t("ageValidation")),1)),n("form",{class:"mt-5",onSubmit:Ne(ue,["prevent"])},[n("div",nt,[n("label",ot,[I(d(D,{modelValue:e(u),"onUpdate:modelValue":s[0]||(s[0]=m=>O(u)?u.value=m:null),"data-testid":"login-modal-loyalty-registration",name:"loyalty-registration",class:"!size-7 !min-w-7",disabled:e(g)},null,8,["modelValue","disabled"]),[[B,"login-modal-loyalty-registration"]]),n("span",it,i(t.$t("I already have a KiK customer card or number (from a KiK branch or the KiK app)")),1)]),e(u)?I((a(),y(e(Fe),{key:0,modelValue:e(C),"onUpdate:modelValue":s[1]||(s[1]=m=>O(C)?C.value=m:null),"wrapper-class":"my-4 mx-1","data-testid":"sign-up-customerCardNumber",placeholder:t.$t("Your benefit card number"),name:"customerCardNumber"},null,8,["modelValue","placeholder"])),[[B,"sign-up-customerCardNumber"]]):c("",!0),e(u)?(a(),y(M,q({key:1,uppercase:!0},{type:"submit"},{disabled:!e(w)||!e($),class:"mb-3 min-w-48"}),{default:f(()=>[e(u)&&e(A)?(a(),y(e(z),{key:0})):(a(),l("span",lt,i(t.$t("Connect Account")),1))]),_:1},16,["disabled"])):c("",!0)]),n("div",null,[n("label",rt,[I(d(D,{modelValue:e(g),"onUpdate:modelValue":s[2]||(s[2]=m=>O(g)?g.value=m:null),"data-testid":"login-modal-loyalty-registration-new",name:"loyalty-registration",class:"!size-7 !min-w-7",disabled:e(u)||!e($)||!e(w)},null,8,["modelValue","disabled"]),[[B,"login-modal-loyalty-registration-new"]]),n("div",null,[n("span",dt,i(t.$t("I would like to receive a KiK customer card")),1),d(Ge)])])]),e(H).register?(a(),l("div",{key:0,class:"mb-3 text-primary-400",innerHTML:t.$t(e(H).register)},null,8,ct)):e(g)?(a(),y(M,q({key:1},{type:"submit"},{disabled:!e(w)||!e($),uppercase:!0,class:"mt-4 min-w-36","data-testid":"loyalty-submit-button"}),{default:f(()=>[e(g)&&e(A)?(a(),y(e(z),{key:0})):(a(),l("span",ut,i(t.$t("Request")),1))]),_:1},16,["disabled"])):c("",!0)],32)],64)),r.showMagnoliaContent&&e(j)?(a(),l("div",$t,[d(Te,{page:t.$t("MyKikContentLink"),area:"area2"},null,8,["page"])])):c("",!0)])):c("",!0)}}}),Mt=Object.assign(Lt,{__name:"MyAccountLoyaltyCards"});export{Mt as L};

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.