PageSourceSearch

https://www.billedbladet.dk/_nuxt/CrjhRO-v.js

js billedbladet.dk collected 2026-10-02 03:06:25 UTC 3,131 bytes, 1 lines download raw bytes

1import{d as E,V as H,x as R,u as B,f as D,I as L,h as y,i as U,B as A,o,b as u,m,q as l,n,c as w,w as x,a as C,r as d,F as j,k as P,L as z,t as G,z as b,e as O,N as M,A as q,C as K}from"./zYj6vDai.js";import{_ as Y}from"./CLz6-Txg.js";import{L as J,_ as Q,a as W}from"./BAi2ziDJ.js";import{S as X,F as Z}from"./DQb0k57L.js";import{u as ee}from"./YrovnIM5.js";const te={class:"text-center"},se=["innerHTML"],ae={class:"flex flex-col items-center -mt-30"},oe={key:0,class:"flex"},le={key:1},ne=E({__name:"Paywall",props:{hasAccess:{type:Boolean,default:!1},apiData:{type:Object},introText:{type:String},articleDisplay:{type:Boolean,default:!1}},async setup(a){let s,i;const g=a,{user:_}=H(),v=b(0),S=b(null);R(_,()=>{v.value=O().fullPath==="/plus"?0:window.scrollY-100,_.value&&(setTimeout(()=>{window.scrollTo(0,v.value)},400),M.success(ee("login.success")))});let f=g.introText||!1;if(!f){const{allerserviceBrandId:e}=B().public;f=([s,i]=D(()=>L().brandsites().byId(e,["*"])),s=await s,i(),s).value.labels.paywallArticleHTML||"Vil du læse videre?<br/>Med BILLED-BLADET+ får du ubegrænset adgang til alt indhold"}const p=y("start");if(typeof p.value>"u"){const e=([s,i]=D(()=>L().content().byPath("start",["*"])),s=await s,i(),s);y("settings",()=>X(e.value)),y("footer",()=>Z(e.value)),p.value=e.value}const{allerserviceBrandUrlPrefix:h}=B().public,V=()=>{const e=q("paywallArticle");e.value=g.apiData?.data.attributes.url,A().GTMPushCustom("element_click",{section_id:"paywall_gotoshop",element_id:"paywall_gotoshop_link",element_link:`/${h}`})},{labels:k}=J(p.value),F=e=>{M.error(e.message)},r=b(!1);return U(()=>{A().GTMPushCustom("element_view",{section_id:"paywall_teaser",section_text:"Paywall section"})}),(e,t)=>{const T=z,I=Y,N=Q,$=W;return o(),u("section",{class:"text-center flex items-center justify-center max-w-500",ref_key:"paywall",ref:S},[m("div",te,[m("h2",{class:n(["font-bold text-18 mb-15",{"text-white":a.articleDisplay}]),innerHTML:l(f)},null,10,se),a.hasAccess?d("",!0):(o(),w(T,{key:0,to:`/${l(h)}`,class:"mb-20 whitespace-nowrap",onClick:V},{default:x(()=>[...t[2]||(t[2]=[C("Vælg dit abonnement",-1)])]),_:1},8,["to"])),l(_)?d("",!0):(o(),u(j,{key:1},[m("h2",{class:n(["italic mb-5",{"text-white":a.articleDisplay}])},"Allerede medlem?",2),l(r)?d("",!0):(o(),w(N,{key:0,title:"",description:"",labels:l(k),"inline-reset":!0,class:n(["max-w-500 mx-auto text-left login-form",{"login-form--article":a.articleDisplay}]),onError:F,onResetPassword:t[0]||(t[0]=c=>r.value=!0)},{buttons:x(c=>[m("div",ae,[P(T,{type:"submit",disabled:c.formDisabled,class:n(["mb-10 !px-40",{"text-white":a.articleDisplay}]),secondary:""},{default:x(()=>[c.formDisabled?(o(),u("span",oe,[t[3]||(t[3]=C("Logger ind ",-1)),P(I)])):(o(),u("span",le,G(l(k).buttons.login),1))]),_:2},1032,["disabled","class"])])]),_:1},8,["labels","class"])),l(r)?(o(),w($,{key:1,"white-fields":"","return-to-checkout":"",onBack:t[1]||(t[1]=c=>r.value=!1),class:n({"login-form--article":a.articleDisplay})},null,8,["class"])):d("",!0)],64))])],512)}}}),de=Object.assign(K(ne,[["__scopeId","data-v-2010cfc9"]]),{__name:"Paywall"});export{de as _};

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.