PageSourceSearch

https://www.stjernen.no/assets/SubscriptionLevelFlag--dINqJ_M.js

js stjernen.no collected 2026-09-25 08:40:43 UTC 1,653 bytes, 1 lines download raw bytes

1import{a1 as L,a as f,f as b,T as h,o as g,w as C,t as p,j as a,h as w,A,z as N,B as y,C as F,D as k,E as r,N as B,F as I,J as x}from"./index-D-81gIvX.js";import{F as D}from"./helpers-HqOV8sUK.js";import"./article.api-3vDZakxD.js";import"./shop.api-DkXFrWBF.js";import"./fetch-videos-utils-C3ja4Xtw.js";import"./ecal.api-BUfZ0Pdz.js";const E={name:"SubscriptionLevelFlag",components:{SdpStreamLineIcon:L},props:{layout:{type:Object,default:()=>({})}},setup(i){const n=f(),l=b(),{layout:e}=h(i),d=a(()=>n.accessLevel),o=a(()=>n.isUserLoggedIn),t=a(()=>l.isAddonEnabledForCurrentSite(A.SUBSCRIPTIONS)),c=w([]),m=a(()=>{var s;return p(c.value)?"":(s=c.value.find(S=>{var v;return S.value===((v=e==null?void 0:e.value)==null?void 0:v.accessLevel)}))==null?void 0:s.name}),_=a(()=>{var s;return!!(t!=null&&t.value&&(o!=null&&o.value)&&((s=e==null?void 0:e.value)==null?void 0:s.accessLevel)>-1)}),u=async()=>{try{const s=await D();c.value=s}catch(s){console.warn(s)}};return g(()=>{t.value&&u()}),C(t,s=>{s&&u()}),{isEmpty:p,getUserAccessLevel:d,isUserLoggedIn:o,plusServicesEnabled:t,isShowSubDetails:_,subscriptionLevelList:c,getContentAccessLevel:m}}},U={key:0,class:"subs-container"},V={class:"subs-level"},j={class:"subs-label"},z={class:"locked-star-icon background-star main-star-container"};function O(i,n,l,e,d,o){const t=y("sdp-stream-line-icon");return e.isShowSubDetails&&!e.isEmpty(e.getContentAccessLevel)?(F(),k("div",U,[r("div",V,[r("div",j,B(e.getContentAccessLevel),1)]),r("div",z,[I(t,{icon:"starFilled",size:30,class:"text-white star-icon"})])])):x("",!0)}const G=N(E,[["render",O],["__scopeId","data-v-d196d7d6"]]);export{G 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.