PageSourceSearch

https://www.billedbladet.dk/_nuxt/Dhw9Yvyr.js

js billedbladet.dk collected 2026-09-24 17:42:25 UTC 10,062 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DXynLr2j.js","./DhrBc4Ol.js","./Ct8m0tvh.js","./entry.DzGDL_kh.css","./DD9yhAuG.js","./Container.C8EgRtHK.css","./BpevbjM5.js","./CGEi5-kP.js","./BsSmb1Ff.js","./DPgjjh14.js","./B9aoPnQZ.js","./BJrhELtZ.js","./BbGHOqXL.js","./gallery.Db__XaFr.css","./CvHUrtGh.js","./DWZFytvl.js","./G2jT3IzF.js","./videoJwplayer.CJk5hNFH.css","./BrgwlPqI.js","./4dXlp08i.js","./DA0ZNogn.js","./wysiwyg.CRcmesbD.css","./EuOqtFwd.js","./0iGduHfy.js","./AnimationLoading.CjaIZ-pj.css","./hDrd5_LC.js","./CaRddMfB.js","./IBuE4bR5.js","./WJDC4phd.js","./Paywall.y0bjUie8.css","./Dubmf8fG.js","./EU4bommw.js","./BW7MQJHe.js","./IOTrLuLZ.js","./CgpZ-WQ8.js","./SnapSlider.UFKqs8-h.css","./CqkleIqs.js","./Cmp7yX-V.js","./C8Y_YUgq.js","./c0zVLA-x.js","./aptoma.DOyi5ful.css","./Clv1U3Za.js","./DpPmLd53.js","./BZqndec1.js","./BPi_ldRh.js","./StoredUrlsButtonWrapper.CRMOtS4s.css","./Hc5KMG0U.js","./DXnlNl2s.js","./advertorialArticle.iyFoEOnF.css","./B7MLiU2i.js","./BsIBIQLq.js","./BwCLOI-M.js","./embed.qcQXERyC.css","./C9vFpRCO.js","./liveblog.RdlllPpJ.css"])))=>i.map(i=>d[i]);
2import{d as F,u as C,c as p,w as O,aN as te,o as d,k as M,a as ae,t as re,b as f,s as B,F as E,aP as ne,r as L,aQ as oe,q as u,aO as se,aR as ue,aS as D,e as W,g as ie,at as le,a1 as de,i as U,v as I,aE as ce,aF as pe,B as ge,f as me,a3 as _e,aJ as ye,aT as ve,ai as N,h as q,V as he,x as be,m as H,l as fe,a4 as m,a5 as _}from"./Ct8m0tvh.js";import{u as Te}from"./DD9yhAuG.js";import{u as Pe}from"./IBuE4bR5.js";const Ae=F({__name:"AllerSlugHead",props:{pageTitle:{type:String,required:!1},metaTags:{type:Array,required:!1},links:{type:Array,required:!1}},setup(e){const{public:a}=C();return(l,g)=>{const s=se,c=ne,t=oe,i=te;return d(),p(i,null,{default:O(()=>[M(s,null,{default:O(()=>[ae(re(e.pageTitle),1)]),_:1}),(d(!0),f(E,null,B(e.metaTags,o=>(d(),f(E,null,[o.property?(d(),p(c,{key:o.property,property:o.property,content:o.content},null,8,["property","content"])):o.name?(d(),p(c,{key:o.name,name:o.name,content:o.content},null,8,["name","content"])):L("",!0)],64))),256)),(d(!0),f(E,null,B(e.links,o=>(d(),p(t,{key:o.href,rel:o.rel,href:o.href.startsWith("http")?o.href:u(a).siteUrl+o.href},null,8,["rel","href"]))),128))]),_:1})}}}),ke=Object.assign(Ae,{__name:"AllerSlugHead"});function we(e){const a=e.data.attributes&&e.data.attributes.published?new Date(e.data.attributes.published*1e3):null,l=a?a.getFullYear().toString()+(a.getMonth()+1<10?"0":"")+(a.getMonth()+1).toString()+(a.getDate()<10?"0":"")+a.getDate().toString():void 0;return{date:a,formatted:l}}function xe(e){const{includedTags:a}=ue(e);if(a)return a.reduce((l,g,s,c)=>s===c.length-1?l+=g.attributes.name:l+=g.attributes.name+", ","")}function Ee(e){return e?.data?.attributes?.meta?.tags?.find(a=>a.name==="title")?.content||e?.data?.attributes?.title||""}function Le(e){if(e.data?.type&&e.data.type==="redirect")return;const{topParent:a}=D(e);if(a)return a?.name;if(!(e.data.type!=="category"&&!e.data.relationships?.category))return e.data.relationships.topParent?e.data.included.find(l=>l.type==="category"&&l.id===e?.data.relationships.topParent.data[0].id)?.attributes.name:e.data.type==="category"?e.data.attributes.name:e.data.relationships.category?e.data.included.find(l=>l.type==="category").attributes.name:void 0}const Ce=async()=>{const{public:e}=C(),a=W(),l=encodeURI(a.path).replace(/%25/gi,"%"),g=a.query?.token||a.query?.allerPreviewToken||null,s=g?"v1/preview-link/"+g:"v2/page?path="+l;let c={code:200,text:""};const{data:t}=await ie(`https://${e.dataApiUrl}/api/${s}`,{key:l,onResponseError({response:r}){c={code:r.status,text:r.statusText}}},"$4eJd64eXEL");if(!t.value)throw le({statusCode:c.code,statusMessage:c.text+' "'+a.path+'"'}),de({status:c.code,statusText:c.text+' "'+a.path+'"'});const i=t.value.data?.type&&t.value.data.type==="redirect"||!1,o=t.value.data.type.includes("advert")||t.value.data.attributes.customerLogo&&t.value.data.attributes.customerLogo!==null||!1,T=!(t.value.data.attributes.hideJwVideoAd||t.value.data.attributes.hasVideo)||!1,R=I(()=>{switch(t.value?.data?.type){case"category":return t.value?.data?.attributes?.topParent?"subCategory":"category";case"article":return"article";case"advertorial":return"advertorialArticle";case"tag":return"tag";case"recipe":return"recipe";case"longread":return"longread";case"advertorial_recipe":return"advertorialRecipe";case"page":return"page";case"frontpage":return"sectionPage";case"liveblog":return"liveblog"}return null}),v=r=>t.value?.data?.attributes?.meta?.tags?t.value.data.attributes.meta.tags.find(n=>n.name===r)?.content:"",h=()=>{const r=t.value.data.attributes.meta.tags.find(z=>z.property==="og:image")||null,{mediaSrc:n,defaultModifiers:x}=ce(r?{imageUrl:r.content}:t.value.data.attributes.media&&t.value.data.attributes.media.imageUrl?t.value.data.attributes.media:{imageUrl:"frontend/logo.png"},!r&&!t.value.data.attributes.media?"500:500":"940:530");return pe()(n,x)||""},b=()=>t.value.data.attributes.meta.tags.find(n=>n.property==="og:image:alt")||null||t.value.data.attributes.media&&t.value.data.attributes.media.alt?t.value.data.attributes.media.alt:"",P=Ee(t.value),A=xe(t.value),{date:S,formatted:k}=we(t.value),y=Le(t.value),V=I(()=>
2{if(i)return;const r=t.value.data.attributes.meta.tags.filter(n=>Object.prototype.hasOwnProperty.call(n,"name")&&n.name!=="title"||Object.prototype.hasOwnProperty.call(n,"property")&&!n.property?.includes("time")&&!n.property?.includes("og:image"));return r.some(n=>n.name==="robots")||r.push({name:"robots",content:"follow, index, max-image-preview:large"}),r.some(n=>n.property==="og:locale")||r.push({property:"og:locale",content:"da_DK"}),r.push({property:"og:image:width",content:t.value.data.attributes.metaTags.ogImage||t.value.data.attributes.media&&t.value.data.attributes.media.imageUrl?"940":"500"}),r.push({property:"og:image:height",content:t.value.data.attributes.metaTags.ogImage||t.value.data.attributes.media&&t.value.data.attributes.media.imageUrl?"530":"500"}),r.push({property:"og:image",content:h()}),r.push({property:"og:image:alt",content:b()}),r.push({name:"twitter:card",content:"summary_large_image"}),r.push({name:"twitter:title",content:v("title")}),r.push({name:"twitter:description",content:v("description")}),r.push({name:"twitter:image",content:h()}),r.push({name:"twitter:image:alt",content:b()}),r}),w=t.value?.data?.attributes?.meta?.links||void 0;return{token:g,data:t,native:o,videoAd:T,pageType:R,getTagContent:v,getImageContent:h,getImageAlt:b,pageTitle:P,implodedTags:A,date:S,publishedDate:k,primaryCategory:y,metaTags:V,headLinks:w,gtmSlugPush:()=>{i||U(()=>{const{GTMPush:r}=ge();r({pageID:t.value.data.id,author:(t.value.data.attributes?.authors||[]).map(n=>n.name),issueDate:k,pageTags:A,pageTitle:P,pageType:t.value.data.type,primaryCategory:y,uuid:t.value.data.uuid})})},redirect:i}},Ie=m(()=>_(()=>import("./DXynLr2j.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url).then(e=>e.default||e)),Re=m(()=>_(()=>import("./BpevbjM5.js"),__vite__mapDeps([6,2,3,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40]),import.meta.url).then(e=>e.default||e)),Se=m(()=>_(()=>import("./Clv1U3Za.js"),__vite__mapDeps([41,2,3,42,43,8,1,11,9,44,45,18,19]),import.meta.url).then(e=>e.default||e)),Ve=m(()=>_(()=>import("./Hc5KMG0U.js"),__vite__mapDeps([46,2,3,42,43,8,1,11,9,44,45,18,19]),import.meta.url).then(e=>e.default||e)),ze=m(()=>_(()=>import("./DXnlNl2s.js"),__vite__mapDeps([47,2,3,7,8,9,10,11,12,13,14,15,16,17,18,19,48]),import.meta.url).then(e=>e.default||e)),Oe=m(()=>_(()=>import("./B7MLiU2i.js"),__vite__mapDeps([49,2,3,7,8,9,10,11,12,13,14,15,16,17,18,19,4]),import.meta.url).then(e=>e.default||e)),Me=m(()=>_(()=>import("./BsIBIQLq.js"),__vite__mapDeps([50,2,3,51,38,52,53,30,19,31,32,16,33,34,35,36,11,37,39,40,1,10,54]),import.meta.url).then(e=>e.default||e)),Ue={id:"slug"},$e={id:"adnm-content"},Be={key:6,class:"bg-[#cccccc] z-60 fixed bottom-0 right-0 py-10 px-15 text-white text-20 rounded-tl-lg"},Ne={name:"Slug",template:"<div></div>"},De=F({...Ne,async setup(e){let a,l;const{token:g,data:s,native:c,videoAd:t,pageType:i,primaryCategory:o,pageTitle:T,metaTags:R,headLinks:v,redirect:h,publishedDate:b,implodedTags:P}=([a,l]=me(()=>Ce()),a=await a,l(),a),{topParent:A}=D(s.value);U(()=>{Te().trackArticleRead(`${C().public.kilkayaSiteUrl}${s.value.data.attributes.url}`)}),h&&_e(s.value.data.attributes.to,{replace:!0,external:s.value.data.attributes.to.startsWith("http")}),ye(()=>{ve(s.value,i.value,o)}),N("apiData",s.value),N("videoAd",t),q("native").value=c;const S=I(()=>!!s.value.data.attributes.premium),{user:k}=he(),y=q("userHasEntitlement"),V=I(()=>["article","page","advertorialArticle","category","subCategory","naughtyCategory"].includes(i.value||"")),w=A?.id||s.value.data.id,$=["category","subCategory"].includes(i.value||""),{siteUrl:r}=C().public,n=()=>Pe().pushPageView({page_id:s.value.data.id,author:(s.value.data.attributes?.authors||[]).map(x=>x.name),issue_date:b,page_tags:P,page_title:T,page_type:i.value,primary_category:o,page_url:`${r}${W().fullPath}`,page_content_uuid:s.value.data.uuid,page_paywall_status:S.value,user_logged_in:k.value,user_paywall_access:y.value});return be([y],async()=>{n()}),U(()=>{n()}),(x,j)=>{const z=Ie,G=fe,J=Re,K=Se,Q=Ve,X=ze,Y=Oe,Z=Me,ee=ke;return d(),f(E,null,[H("div",Ue,[H("div",$e,[M(G,null,{default:O(()=>[u(V)&&u(w)?(d(),p(z,{key:0,"category-id":u(w),"article-url":u($)?null:u(s).data?.attributes?.url},null,8,["category-id","article-url"])):L("",!0)]),_:1}),u(i)==="article"?(d(),p(J,{key:0,hasEntitlementAccess:u(y)},null,8,["hasEntitlementAccess"])):u(i)==="category"||u(i)==="subCategory"?(d(),p(K,{key:1})):u(i)==="tag"?(d(),p(Q,{key:2})):u(i)==="advertorialArticle"?(d(),p(X,{key:3})):u(i)==="page"?(d(),p(Y,{key:4})):u(i)==="liveblog"?(d(),p(Z,{key:5})):L("",!0),u(g)?(d(),f("div",Be,"Preview")):L("",!0)])]),M(ee,{"page-title":u(T),"meta-tags":u(R),links:u(v)},null,8,["page-title","meta-tags","links"])],64)}}});
2export{De 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.