PageSourceSearch

https://abonnement.teveblad.be/_nuxt/DBuXVBa_.js

js teveblad.be collected 2026-10-08 12:31:36 UTC 1,803 bytes, 2 lines download raw bytes

1import{a as e}from"./DsbpeGSj.js";import{g as t}from"./Ib1jYPSS.js";import{f as n,u as r}from"./EZtrNaeg.js";import{t as i}from"./DPZEm7k3.js";import{t as a}from"./BNJznW6X.js";import{t as o}from"./CYQ5SdQG2.js";import{u as s}from"./BWFELSK32.js";import{t as c}from"./DDb23DiP.js";function l(){let{$logger:l}=e(),u=n(),{setLead:d,lead:f}=c(),{fetchCatalog:p,brandCode:m}=o(),h=t(()=>u.query.otag===`sp2kub`),g=t(()=>u.query.otag===`idtsfu`),_=i(`authId`).value||``,v=i(`cookie-promo`,{default:()=>({actiecode:``,postcode:``,title:null,pwId:``})});async function y(){let e=typeof(u.query.leadId||u.query.lead_id||u.query.LEAD_ID)==`string`;if(h.value&&v.value?.actiecode&&u.name!==`actie`&&!e){let e=u.name||`index`,t=typeof u.query.destinationName==`string`?u.query.destinationName:e,{actiecode:n,postcode:i,title:o}=v.value;if(!o)throw Error(`Title is required`);try{let{data:e}=await s({actiecode:n,postcode:i,title:o,pwId:_});if(!e)throw Error(`Failed to fetch promotion code`);return d(e),e.mid&&await p({brandCodes:m.value,group:`default`,mid:e.mid}),r({name:t,query:{...u.query,mid:e.mid||a().mid.value,leadId:e.leadId,destinationName:void 0}})}catch(e){return l.log({title:`Failed to fetch promotion code`,error:e}),r({name:`index`,query:{...u.query}})}}if(h.value&&u.name!==`actie`&&!f.value.leadId){let e=typeof u.name==`string`?u.name:`index`;return r({name:`actie`,query:{...u.query,destinationName:e}})}}async function b({actiecode:e,postcode:t,title:n}){let r={actiecode:e,postcode:t,title:n,pwId:i(`authId`).value};try{return await s({actiecode:r.actiecode||``,postcode:r.postcode||``,title:r.title,pwId:r.pwId||``})}catch(e){l.log({error:e,title:`Failed to fetch promotion code`})}}return{isDM:h,isQRDM:g,initDM:y,fetchPromotionCode:b}}export{l as t};
2//# sourceMappingURL=DBuXVBa_.js.map

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.