import{_ as S,i as F,G as b,L as N,R as x,r as n,o as a,a as m,w as l,p as o,b as i,q as s,l as c,f as C,F as g,v as p,e as R,u as B}from"./main-DtyiNRRn.js";import{S as w}from"./SelectInputFi-y7iX7osI.js";import{B as T}from"./BlockNotificationFi-BuUtmEX2.js";import{R as V}from"./ResultStatusFi-Azqh2Mdi.js";const A={name:"ReducedLayoutFi",components:{ComponentWrapper:F,GridContainerFi:b,BlockNotificationFi:T,LinkFi:N,SelectInputFi:w,RichtextFi:x,ResultStatusFi:V},props:{logoSrc:{type:String,default:null},logoAlt:{type:String,default:null},apiData:{type:Object,default:null},brand:{type:String,default:null},interfaceLanguage:{type:String,default:null}},emits:["change-language"]},I={class:"reduced-layout-fi__container"},E={class:"reduced-layout-fi__header"},G=["src","alt"],M={class:"reduced-layout-fi__content-container"},j={class:"reduced-layout-fi__content"},q={key:0,class:"reduced-layout-fi__maintenance-message"},z={key:0,class:"reduced-layout-fi__notification"},O={class:"reduced-layout-fi__page"},U={key:0,class:"reduced-layout-fi__footer"},W={class:"reduced-layout-fi__footer-content"},Y={key:0,class:"reduced-layout-fi__language"},H={class:"reduced-layout-fi__footer-item"};function J(r,_,e,K,P,Q){const d=n("richtext-fi"),y=n("result-status-fi"),h=n("block-notification-fi"),v=n("grid-container-fi"),k=n("select-input-fi"),L=n("link-fi"),D=n("component-wrapper");return a(),m(D,{class:"reduced-layout-fi","force-theme":e.brand},{default:l(()=>{var u;return[o("div",I,[o("div",E,[e.logoSrc?(a(),i("img",{key:0,class:"reduced-layout-fi__header-icon",src:e.logoSrc,alt:e.logoAlt},null,8,G)):s("",!0)]),o("div",M,[o("div",j,[c(v,{container:!1},{default:l(()=>{var t,f;return[(t=e.apiData)!=null&&t.Maintenance_Mode?(a(),i("div",q,[c(y,{"custom-icon":"alert-triangle"},{default:l(()=>[c(d,{"html-content":{value:e.apiData.Notification}},null,8,["html-content"])]),_:1})])):(a(),i(g,{key:1},[(f=e.apiData)!=null&&f.Notification?(a(),i("div",z,[c(h,{icon:"alert-triangle",type:"error"},{default:l(()=>[c(d,{"html-content":{value:e.apiData.Notification}},null,8,["html-content"])]),_:1})])):s("",!0),o("div",O,[C(r.$slots,"default",{},void 0,!0)])],64))]}),_:3})])]),e.apiData?(a(),i("div",U,[o("div",W,[(u=e.apiData.Available_Languages)!=null&&u.length?(a(),i("div",Y,[c(k,{value:"interfaceLanguage",name:e.apiData.Language_Selector_Label,options:e.apiData.Available_Languages.map(t=>({name:t.Title,value:t.Value})),class:"reduced-layout-fi__lang-selector",transparent:"",small:"",onChange:_[0]||(_[0]=t=>r.$emit("change-language",t))},null,8,["name","options"])])):s("",!0),o("span",H,p(r.$dict.replace(e.apiData.Company||"",[new Date().getFullYear()])),1),(a(!0),i(g,null,R(e.apiData.Elements||[],t=>(a(),m(L,{key:t.Id,href:t.Link.Url,target:t.Link.Target,size:14,class:"reduced-layout-fi__footer-item","text-link":"",thin:""},{default:l(()=>[B(p(t.Link.Title||t.Link.Text),1)]),_:2},1032,["href","target"]))),128))])])):s("",!0)])]}),_:3},8,["force-theme"])}const te=S(A,[["render",J],["__scopeId","data-v-5eda98f0"]]);export{te as R};