PageSourceSearch

https://www.stjernen.no/assets/HtmlSection-CEbeSJWM.js

js stjernen.no collected 2026-09-25 08:41:44 UTC 2,104 bytes, 1 lines download raw bytes

1import{Q as x,T as S,e as H,a4 as k,w as I,r as _,j as o,t as w,n as T,z as B,B as v,C as i,D as d,F as E,J as L,I as b,ag as j,aa as z}from"./index-D-81gIvX.js";import D from"./MessageSection-B84KQyhU.js";import{s as M,a as N}from"./legacy-style-scoping-DLBkiVNm.js";const O={name:"HtmlSection",components:{SyHeading:x,MessageSection:D},props:{sectionData:{type:Object,default:()=>({})}},setup(r){const{sectionData:c}=S(r),u=H(),n=k("headerOffset",_(0)),f=o(()=>{var e;return u.getSectionIndex((e=c.value)==null?void 0:e.id)}),h=o(()=>{if(f.value===0)return n.value>0?{marginTop:`${n.value}px`}:void 0}),l=o(()=>{var e,s;return((s=(e=c.value)==null?void 0:e.config)==null?void 0:s.width)==="full"}),m=o(()=>["html-section-container",{"html-section-container--full-width":l.value}]),C=o(()=>{var s,t;const e=(t=(s=c.value)==null?void 0:s.config)==null?void 0:t.heading;return typeof e=="string"&&!w(e.trim())?e.trim():""}),p=o(()=>{var e,s;return M((s=(e=c.value)==null?void 0:e.config)==null?void 0:s.html)}),g=_(null);return I(p,()=>{T(()=>{const e=g.value;if(!e)return;N(e),e.querySelectorAll("script").forEach(t=>{var y;const a=document.createElement("script");t.src?a.src=t.src:a.textContent=t.textContent,t.type&&(a.type=t.type),t.async&&(a.async=!0),t.defer&&(a.defer=!0),(y=t.parentNode)==null||y.replaceChild(a,t)})})},{immediate:!0}),{containerClasses:m,containerStyle:h,sectionHeading:C,htmlContent:p,htmlContentRef:g}}},R={key:0,class:"section-title-container"},F=["innerHTML"];function V(r,c,u,n,f,h){const l=v("sy-heading"),m=v("message-section");return i(),d("div",{class:z(n.containerClasses),style:j(n.containerStyle)},[n.sectionHeading?(i(),d("div",R,[E(l,{primary:"","heading-label":n.sectionHeading,heading:"heading 3","is-section-heading":!0,uppercase:""},null,8,["heading-label"])])):L("",!0),n.htmlContent?(i(),d("div",{key:1,ref:"htmlContentRef",class:"html-section-content",innerHTML:n.htmlContent},null,8,F)):(i(),b(m,{key:2,message:r.$t("site.html_section_no_content")},null,8,["message"]))],6)}const W=B(O,[["render",V],["__scopeId","data-v-9f0d6785"]]);export{W 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.