import"./p-xbSOW78W.js";import"./p-BnVL_HEz.js";import"./p-Cj6DXhmQ.js";import{c as t}from"./p-BFTU3MAI.js";import"./p-CbvOgU0G.js";var n,o,r,e,c,i,s,u,a,p,f,l,j={exports:{}};function w(t){return" "===t.key}function v(t){return"Escape"===t.key}n||(n=1,o=j,i=(c=(e=(r=j.exports)&&!r.nodeType&&r)&&o&&!o.nodeType&&o)&&c.exports===e&&("object"==typeof t&&t&&t.Object===Object&&t).process,u=(s=function(){try{return i&&i.binding("util")}catch(t){}}())&&s.isDate,a=Object.prototype.toString,f=u?(p=u,function(t){return p(t)}):function(t){return function(t){return!!t&&"object"==typeof t}(t)&&"[object Date]"==a.call(t)},o.exports=f),function(t){t[t.INIT=0]="INIT",t[t.RUNNING=1]="RUNNING",t[t.SUCCESS=2]="SUCCESS",t[t.ERROR=3]="ERROR"}(l||(l={}));class b{constructor(t){this.key=t}}const d=(t,n="CH",o=m.FOOTER,r="v2")=>{let e=t.key;return o===m.ONETRUST?e="all":"DE"===n&&(e="de"),`${(()=>{const t=h();return t&&t.indexOf("www.baloise.ch")>=0?`https://${t}`:"https://www.baloise.ch"})()}/app-integration/${r}/${n.toLowerCase()}/${o}/${e}.json`},h=()=>{var t;return(null===(t=null===window||void 0===window?void 0:window.location)||void 0===t?void 0:t.host)||void 0};var m;!function(t){t.FOOTER="footer",t.SOCIAL_MEDIA="socialmediachannels",t.ONETRUST="onetrust"}(m||(m={}));const C=(t,n="CH")=>{const o=d(t,n,m.FOOTER);return fetch(o).then((t=>t.json())).then((t=>t))},$=(t,n="CH")=>{const o=d(t,n,m.SOCIAL_MEDIA,"v1");return fetch(o).then((t=>t.json())).then((t=>t))};export{b as L,$ as a,v as b,w as i,C as l}