PageSourceSearch

https://historienet.dk/_nuxt/vzbfe3Xe.js

js historienet.dk collected 2026-10-02 07:09:10 UTC 2,635 bytes, 1 lines download raw bytes

1import{_ as w}from"./CvgWK45e.js";import{d as D,s as R,u as j,M as E,v as G,r as C,E as H,J as n,q as c,i as o,g as s,k as J,l as i,ap as K,j as e,aa as M,K as U,_ as z,t as L,a8 as O,ay as Q,aA as W}from"./DAjrYPOy.js";import{_ as X,a as Y}from"./BwBzmccY.js";import{_ as Z}from"./B5LXraNg.js";import{_ as tt}from"./BTG-OCaE.js";import{_ as et}from"./CzhKwP9j.js";import{f as at}from"./Bt4hpOe5.js";import"./DuQNWMdT.js";import"./YVStbWxM.js";import"./Bib60CrR.js";import"./B-ujwiwB.js";import"./BIHddBUe.js";import"./CXURayOO.js";const nt={class:"full-content bp-main-grid"},St=D({__name:"Gradient",setup(ot){var _,d,p,f,y,h,g,k;const t=R(),{getTranslation:T}=j();E();const{userState:x}=G(),b=!(t.getInternalTags()||[]).map(a=>a.slug).includes("premium"),l=C(!1),u=H(()=>{var a;return!!((a=t.content)!=null&&a.audio)}),r=C(null),A=()=>{l.value=!0,W(()=>{if(r.value){if(!b&&x!=="Subscriber")return;r.value.trackInteraction("open"),r.value.play()}})},m={image:(_=t.content)==null?void 0:_.lead_image,title:(d=t.content)==null?void 0:d.title,authors:[(p=t.content)==null?void 0:p.author,...((f=t.content)==null?void 0:f.other_authors)||[]],updated:(y=t.content)==null?void 0:y.updated_at,created:(h=t.content)==null?void 0:h.published_at,description:(g=t.content)==null?void 0:g.description,commercial:(k=t.content)==null?void 0:k.commercial};return(a,S)=>{const N=w,V=z,F=O,I=M,P=Y,q=Z;return o(),n(q,null,{default:c(()=>{var v,$,B;return[m?(o(),n(N,{key:0,type:"composite.gradient",data:m})):s("",!0),J("article",nt,[e(u)?(o(),n(I,{key:0,onClick:A,type:"Primary",class:"center-content"},{default:c(()=>[i(F,null,{default:c(()=>[i(V,{class:"mr-2",name:"headphones"}),U(" "+L(e(T)("audio.listen")),1)]),_:1})]),_:1})):s("",!0),(v=e(t).getChaptersSummary())!=null&&v.length?s("",!0):(o(),n(tt,{key:1,data:e(at)()},null,8,["data"])),K(a.$slots,"default"),i(Q,{"enter-active-class":"transition duration-300 ease-out","enter-from-class":"transform translate-y-full","enter-to-class":"transform translate-y-0","leave-active-class":"transition duration-200 ease-in","leave-from-class":"transform translate-y-0","leave-to-class":"transform translate-y-full"},{default:c(()=>[e(u)&&e(l)?(o(),n(X,{key:0,ref_key:"audioPlayerRef",ref:r,onClose:S[0]||(S[0]=rt=>l.value=!1),autoplay:!0},null,512)):s("",!0)]),_:1})]),($=e(t).content.author)!=null&&$.name&&((B=e(t).content.author)!=null&&B.description)?(o(),n(et,{key:1,class:"center-content",data:{title:e(t).content.author.name,body:e(t).content.author_description,display_hint:"default",image:null,locked:!1,stick_to_next:!1}},null,8,["data"])):s("",!0),i(P)]}),_:3})}}});export{St 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.