const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ExperienceEditorComponent-C4n3M2Eo.js","assets/main-DtyiNRRn.js"])))=>i.map(i=>d[i]);
import{_ as f,i as u,G as h,B as y,R as v,U as g,r as t,o as a,a as o,w as c,ab as L,b as x,p as r,l as k,q as I,F as M,J as P}from"./main-DtyiNRRn.js";const C=L(()=>P(()=>import("./ExperienceEditorComponent-C4n3M2Eo.js"),__vite__mapDeps([0,1]))),E={name:"DataPrivacyFi",components:{ComponentWrapper:u,GridContainerFi:h,LoadingIndicator:y,RichtextFi:v,ExperienceEditorComponent:C},props:{fields:{type:Object,default:()=>({})}},data(){return{isLoading:!0,dataPrivacyHTML:null,jumpmarkReady:null}},computed:{documentId(){var e,i;return(i=(e=this.fields)==null?void 0:e.documentId)==null?void 0:i.value}},mounted(){this.documentId&&!this.isEditMode?this.jumpmarkReady=this.loadData():console.error("missing documentId for data privacy api")},methods:{async loadData(){try{const e=await g.get(`https://api.fischer.group/privacy-policies/${this.documentId}`);e.data&&(this.dataPrivacyHTML=e.data.replace("<h2>","<h1>").replace("</h2>","</h1>"))}catch(e){console.error(e)}this.isLoading=!1}}},T={class:"fi-col-start-1 md:fi-col-start-2 lg:fi-col-start-3 fi-col-end-13 md:fi-col-end-12 lg:fi-col-end-11"},F=["innerHTML"];function H(e,i,s,w,n,B){const d=t("experience-editor-component"),l=t("richtext-fi"),p=t("grid-container-fi"),_=t("loading-indicator"),m=t("component-wrapper");return a(),o(m,{class:"data-privacy-fi"},{default:c(()=>[e.isEditMode?(a(),o(d,{key:0,fields:s.fields},null,8,["fields"])):n.isLoading?(a(),o(_,{key:2,variant:"spinnerLocal"})):(a(),x(M,{key:1},[n.dataPrivacyHTML?(a(),o(p,{key:0},{default:c(()=>[r("div",T,[k(l,null,{default:c(()=>[r("div",{class:"data-privacy-fi__content",innerHTML:n.dataPrivacyHTML},null,8,F)]),_:1})])]),_:1})):I("",!0)],64))]),_:1})}const R=f(E,[["render",H],["__scopeId","data-v-c77b22d8"]]);export{R as default};