PageSourceSearch

https://www.kik.cz/_nuxt/BuSyfiGM.js

js kik.cz collected 2026-09-24 20:13:18 UTC 12,549 bytes, 1 lines download raw bytes

1import{fL as G,iI as $e,iL as se,jg as ce,j4 as W,iT as tt,hb as st,hf as ae,hd as ue,hh as o,ft as S,aX as Fe,fz as H,cy as pe,fq as M,ig as O,h6 as at,iF as t,hF as c,h0 as me,jm as ve,iJ as Ie,j9 as Ee,iR as Be,iQ as Te,fn as i,aT as de,jk as De,gK as Me,fs as $,iP as nt,jo as ot,iO as it,jB as rt,f4 as z,fr as h,jE as ee,gz as lt,ct,fx as dt,h5 as ut,hC as pt,ff as mt,i4 as xe}from"./LTt4gKt9.js";import{_ as vt}from"./4MRGwgGm.js";import{_ as ht}from"./CeYUxI1R.js";import{S as ft}from"./yAyaJdLP.js";import{A as gt,u as _t}from"./LDeESisK.js";import{_ as yt}from"./DVXMhN1v.js";import"./BB8-aGQP.js";import"./Di_LHVb6.js";import"./tebxEq02.js";const kt={class:"mb-8 font-light"},bt=["title"],At=G({__name:"ClickAndCollect",setup(L){const{locale:f}=$e(),{cart:n}=se(),{send:l}=ve(),{save:b,loadShippingMethodByCart:A,shippingMethodsByCart:g,error:F}=ce(),{$i18n:C}=W(),{isMobile:N}=tt(),v=c("900px"),d=c("0px"),I=c(),E=c(),P=c(),w=()=>{const s=N?1.1:1.5;v.value=`${(I.value?.contentDocument.body.scrollHeight||0)*s}px`},p=s=>{const u=s.search(/\s\d/),R=s.substring(0,u),U=s.substring(u+1);return[R,U]},r=async s=>{const u=s.detail,[R,U]=p(u.address),q={firstName:n.value?.billingAddress?.firstName,lastName:n.value?.billingAddress?.lastName,company:C.t("KiK Store"),streetName:R,streetNumber:U,postalCode:u.zip,city:u.city,country:u.country,externalId:u.filiale},K=g.value?.find(({type:ne})=>ne==="shop");if(!K){l({message:"click&collect call failed",type:"danger"});return}await b(K,q),F.save?l({message:"click&collect call failed",type:"danger"}):await me("/checkout/payment")};return st(async()=>{g.value||await A()}),ae(()=>{I.value=P.value,d.value=`${E.value.clientWidth}px`,I.value.addEventListener("load",w,!1),window.storefinderSettings={locale:f,showButtons:["callback"],isCheckout:!0},window.document.addEventListener("selectStoreEvent",r,!1)}),ue(()=>{I.value.removeEventListener("load",w),window.document.removeEventListener("selectStoreEvent",r)}),(s,u)=>{const R=pe;return o(),S(Fe,null,[H(R,{level:2,title:s.$t("Click and collect"),class:"mb-2","data-testid":"storefinder__heading"},null,8,["title"]),M("p",kt,O(s.$t("Save delivery costs and collect your order in a store nearby")),1),M("div",{ref_key:"storefinderComponent",ref:E},[M("iframe",{id:"storefinder-frame",ref_key:"storefinderFrame",ref:P,title:s.$t("StoreFinder"),src:"/storefinderAssets","data-testid":"storefinder__frame",style:at({height:t(v),width:t(d)})},null,12,bt)],512)],64)}}}),Ct=Object.assign(At,{__name:"CheckoutClickAndCollect"}),wt=()=>{const{$config:L}=W(),{$checkout:f}=Ie(),{cart:n,refresh:l}=se(),{send:b}=ve(),A=Ee(),{paymentPaths:g}=Be(A.meta?.type),{shipping:{nextState:F,setShippingInfo:C}}
1=Te(),N=c(),v=c(!1),d=c(),I=i(()=>F.value===de.TO_PAYMENT),E=i(()=>({firstName:n.value?.billingAddress?.firstName||n.value?.billingAddress?.custom?.customFieldsRaw?.find(({name:p})=>p==="companyName")?.value,lastName:n.value?.billingAddress?.lastName||n.value?.billingAddress?.custom?.customFieldsRaw?.find(({name:p})=>p==="vatId")?.value})),P=async p=>{if(!L.public.parcelshop?.dhl.url.startsWith(p.origin))return;const r=JSON.parse(p.data),s={id:r.id,sap:r.sap,name:r.name,postalCode:r.zip,streetName:r.street,city:r.city,streetNumber:r.streetNo,houseNumber:r.houseNo,email:n.value?.billingAddress?.email};I&&(await w(s),d.value||me({path:g.value}))},w=async p=>{v.value=!0,d.value=null;try{const r={selectedShop:p,cart:{id:n.value?.id,version:n.value?.version},user:{salutation:n.value?.billingAddress?.salutation,firstName:E.value?.firstName,lastName:E.value?.lastName}};await f.saveDhlShippingInfo(r),await l(),C(n.value?.shippingAddress)}catch(r){d.value=!0,r instanceof Error&&b({message:r.message,type:"danger"})}finally{v.value=!1}};return ae(()=>{window.addEventListener("message",P)}),ue(()=>{window.removeEventListener("message",P)}),{selectedShop:i(()=>N.value),loading:i(()=>v.value),saveParcelShopErrors:i(()=>d.value),saveParcelShop:w,getDhlIframeUrl:({country:p,type:r})=>`${L.public.parcelshop?.dhl.url}?country=${p}&ptype=${r}`}},St={key:0,class:"relative mb-[-600px] flex h-[600px] w-full items-center justify-center overflow-hidden bg-neutral-500/50 transition-opacity"},Nt={key:1,class:"mx-auto size-full h-[600px] animate-pulse text-neutral-900 md:max-w-screen-md lg:max-w-screen-lg xl:max-w-screen-xl mobile:m-3"},Pt=["title","src"],xt=G({__name:"Dhl",setup(L){const{$domain:f,$config:n}=W(),{getDhlIframeUrl:l,loading:b}=wt(),A=De("dhlFrame"),g=c(!0),F=n.public.parcelshop?.dhl.type||"packStation",C=()=>{g.value=!1};return ae(()=>{A.value?.addEventListener("load",C)}),ue(()=>{A.value?.removeEventListener("load",C)}),(N,v)=>(o(),S("div",null,[t(b)?(o(),S("div",St,[H(t(Me),{class:"text-center",size:"2xl"})])):$("",!0),t(g)?(o(),S("div",Nt,[...v[0]||(v[0]=[M("div",{class:"relative size-full min-h-14 rounded-lg bg-gray-200"},null,-1)])])):$("",!0),t(g)?$("",!0):(o(),S("iframe",{key:2,id:"dhl-frame",ref:"dhlFrame",allow:"geolocation",sandbox:"allow-same-origin allow-scripts allow-modals",referrerpolicy:"no-referrer",title:N.$t("Map to select Packstation"),src:t(l)({country:t(f).countryCode,type:t(F)}),class:"h-[600px] w-full"},null,8,Pt))]))}}),$t=Object.assign(xt,{__name:"CheckoutParcelShopDhl"}),Ft=G({__name:"index",setup(L){return(f,n)=>{const l=pe;return o(),S(Fe,null,[H(l,{title:"Deliver in Packstation",description:"Collect your order in a packstation nearby"}),H($t)],64)}}}),It=Object.assign(Ft,{__name:"CheckoutParcelShop"}),Et={class:"grid grid-cols-[2fr_1fr] items-start gap-8 mobile:grid-cols-1"},Bt={key:0},Tt={key:1},te="sr-3356",Dt="sr-4806",Mt=G({__name:"Shipping",setup(L){const f=Ee(),{isVisible:n,toggleVisibility:l,resetForm:b,updateForm:A}=nt("shipping"),{loadingByCart:g}=ce(),{$config:F,$flags:C,$i18n:N}=W(),v=i(()=>F.public.i18n?.countries??[]),d=e=>C.has(e),{$carts:I}=Ie(),{send:E}=ve(),{isAuthenticated:P,user:w,updateAddress:p,error:r}=ot(),{cart:s}=se(),{country:u}=$e(),{saveShippingStep:R,errors:U}=it(),{shipping:{nextState:q,setShippingInfo:K}}=Te(),{loadShippingMethodByCart:ne,shippingMethodsByCart:oe}=ce(),{paymentPaths:Le}=Be(f.meta?.type),{safeRng:Re}=_t(),B=c(""),ie=c(!1),he=c(!1),fe=pt({saving:!1}),x=c(!1),k=c(),T=c(null),re=De("formContainer"),J=i(()=>s.value?mt.isPackstationShipping(s.value):!1),_=i(()=>w.value?.shippingAddresses?J.value?w.value.shippingAddresses.filter(e=>z.isPackstationAddress(e))||[]:w.value.shippingAddresses.filter(e=>!z.isPackstationAddress(e))||[]:[]),D=c(!1),ge=i(()=>N.t("Post number or packstation address may be incorrect. Please check both values or choose a new packstation.")),Y=i(()=>!d(te)||!n.value||!J.value?!1:D.value),je=i(()=>T.value?.postalCode?T.value.postalCode:_.value.find(a=>a.id===B.value)?.postalCode??k.value?.postalCode??""),Ke=i(()=>{if(T.value?.packstationNumber)return T.value.packstationNumber;const e=_.value.find(y=>y.id===B.value),a=e?z.packstationRelevantFields(e):void 0,m=k.value?z.packstationRelevantFields(k.value):void 0;return a?.packstationNumber??m?.packstationNumber??""}),Ue=()=>{if(!_.value.length||!s.value?.shippingAddress)return;const e=["firstName","lastName","postalCode","streetName","streetNumber"],a=_.value?.find(m=>e.every(y=>m?.[y]===s.value?.shippingAddress?.[y]))||_.value?.find(m=>m.id===w.value?.defaultShippingAddressId)||_.value[0];be(a)},_e=i(()=>!_.value.length||!P.value),Ve=e=>{l(!0),x.value=!0,k.value=_.value.find(a=>e===a.id),D.value=!1,T.value=null,setTimeout(()=>{re.value?.offsetTop&&window.scrollTo({top:re.value?.offsetTop-75,behavior:"smooth"})},10)};ae(async()=>
1{l(_e.value),_e.value||Ue(),oe.value||await ne()});const ze=()=>{fe.saving=!1},le=i(()=>q.value===de.TO_PAYMENT),Oe=async e=>{await p({address:e,isDefault:!1})},He=async e=>{const a=n.value?{...e,key:x.value?e.key:Ae(),country:u}:_.value?.find(({id:m})=>B.value===m);await R({address:{...a,email:a?.email||s.value?.billingAddress?.email},isNewAddress:x.value?!1:n.value})},Ge=async e=>{const a=n.value?{...e,key:x.value?e.key:Ae(),country:u}:_.value?.find(({id:y})=>B.value===y),m=s.value?.key;if(m)try{if(!(await I.validateCart(m))?.data?.valid){k.value=a??e,E({message:ge.value,type:"danger"}),D.value=!1,l(!0);return}}catch{k.value=a??e,E({message:ge.value,type:"danger"}),D.value=!1,l(!0);return}},ye=async({address:e})=>{if(ze(),!le.value)return;const a=!!e?.id;x.value&&a&&(await Oe(e),r.value.updateAddress)||(await He(e),!U.value&&(x.value&&a&&K(e),J.value&&!d(te)&&!d(Dt)&&await Ge(e),me({path:Le.value})))},We=()=>{b(),l(!0),B.value="",K(void 0),x.value=!1,D.value=!1,k.value=void 0,T.value=null},qe=()=>{d(te)&&(D.value=!0,l(!0))},Je=()=>{d(te)&&(D.value=!0)},ke=()=>{x.value=!1,b(),l(!1),T.value=null,window.scrollTo({top:0,behavior:"smooth"})},be=e=>{!e||e.id===B.value||(K(e),B.value=e.id,ke())};rt(s,()=>{const e=s.value?.shippingAddress??void 0;A(z.transformToFormAddress(e,v.value))});const Ye=e=>{const a=k.value??we.value,{id:m,storeId:y,...Q}=e,j=Array.isArray(a?.custom?.customFieldsRaw)?[...a.custom.customFieldsRaw]:[];((V,Z)=>{if(Z===void 0)return;const Ne=j.findIndex(et=>et.name===V),Pe={name:V,value:Z};if(Ne>=0){j[Ne]=Pe;return}j.push(Pe)})("packstationNumber",Q.packstationNumber);const X={...a,...Q,country:u,...a.custom?{custom:{...a.custom,customFieldsRaw:j}}:{}};X.storeId=y??m,k.value=X,x.value=!!a?.id,D.value=!1,l(!0)},Qe=e=>{T.value=e},Ae=()=>globalThis?.crypto?.randomUUID?globalThis.crypto.randomUUID():`${Date.now()}-${Re()}`,Ce=i(()=>q.value===de.LOADING),Xe=i(()=>s.value?.billingAddress?.country?.toUpperCase()!==u),we=i(()=>({country:u,...P.value?{}:s.value?.shippingAddress??{}})),Ze=i(()=>k.value?k.value:we.value);return(e,a)=>{const m=pe,y=vt,Q=ht,j=ct,Se=ft,X=gt,V=yt;return o(),S("div",Et,[M("div",{class:ut({"pointer-events-none":t(he),"col-span-2":t(Y)})},[H(m,{title:e.$t("Shipping details"),class:"mb-4"},null,8,["title"]),t(Xe)?(o(),h(y,{key:0,type:"info"},{default:ee(()=>[M("p",null,O(e.$t("Please specify an address in {country} for your order.")),1)]),_:1})):$("",!0),t(P)?(o(),h(Q,{key:1,modelValue:t(ie),"onUpdate:modelValue":a[0]||(a[0]=Z=>lt(ie)?ie.value=Z:null),class:"grid grid-cols-2 mobile:grid-cols-1",editable:!0,addresses:t(_),"current-address-id":t(B),onSetCurrentAddress:be,onToggleEditForm:Ve},null,8,["modelValue","addresses","current-address-id"])):$("",!0),!t(n)&&!t(g)?(o(),h(j,{key:2,variant:"secondary",uppercase:!0,class:"min-w-72 mobile:w-full","data-testid":"shipping__add-new-address",onClick:We},{default:ee(()=>[dt(O(e.$t("Add new address")),1)]),_:1})):$("",!0),M("div",{ref_key:"formContainer",ref:re,class:"mt-5"},[t(n)?(o(),S("div",Bt,[t(Y)?(o(),h(Se,{key:0,"initial-search":t(je),"initial-packstation-number":t(Ke),onSetPackstation:Ye},null,8,["initial-search","initial-packstation-number"])):(o(),h(X,{key:1,class:"mb-5 rounded border border-neutral-100 p-6 mobile:px-4","submit-label":"Continue","dismiss-label":t(_).length?"Cancel":void 0,address:t(Ze),"is-new":!1,type:"shipping","is-packstation":t(J),"show-back-to-map":!1,"active-submit":t(le),"enable-default-check":!1,disabled:t(Ce),onSubmit:ye,onDismiss:ke,onBack:Je,onChoosePackstation:qe,onFormChange:Qe},null,8,["dismiss-label","address","is-packstation","active-submit","disabled"]))])):(o(),h(j,{key:1,class:"min-w-72 mobile:w-full",variant:"primary",type:"submit",uppercase:!0,"data-testid":"shipping__continue",disabled:!t(le)||t(Ce),onClick:ye},{default:ee(()=>[t(he)?(o(),h(t(Me),{key:0})):(o(),S("span",Tt,O(e.$t("Continue")),1))]),_:1},8,["disabled"]))],512),t(fe).saving?(o(),h(y,{key:3,type:"error","has-border":!0},{default:ee(()=>[M("p",null,O(e.$t("There was some error while saving your shipping address. We are sorry, please try again later.")),1)]),_:1})):$("",!0)],2),t(s)&&!t(Y)&&t(C).has("sr-5497")&&!e.$device.isMobile?(o(),h(V,{key:0,class:"mt-[60px]",cart:t(s),"shipping-methods":t(oe)},null,8,["cart","shipping-methods"])):t(s)&&!t(Y)?(o(),h(V,{key:1,class:"mt-[60px] mobile:hidden",cart:t(s),"shipping-methods":t(oe)},null,8,["cart","shipping-methods"])):$("",!0)])}}}),Lt=Object.assign(Mt,{__name:"CheckoutShipping"}),Rt={key:0},qt=G({__name:"Shipping",setup(L){const{cart:f}=se(),{$config:n,$domain:{countryCode:l}}
1=W(),b=i(()=>xe.isClickAndCollect(f.value?.shippingInfo?.shippingMethod)),A=i(()=>!!f.value?.shippingInfo?.shippingMethod?.id),g=i(()=>n.public.parcelshop?.allowedCountries.includes(l)&&xe.isPackstation(f.value?.shippingInfo?.shippingMethod));return(F,C)=>{const N=Ct,v=It,d=Lt;return t(A)?(o(),S("div",Rt,[t(b)?(o(),h(N,{key:0})):t(g)?(o(),h(v,{key:1})):(o(),h(d,{key:2}))])):$("",!0)}}});export{qt as default};

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.