(()=>{const e=["brackets","box"],t=t=>{Object.entries(t).forEach((([t,r])=>{if("theme"===t&&!e.includes(r))throw new Error(`Invalid theme "${r}"`);if("locale"===t&&Intl.getCanonicalLocales([r.replace(/_/g,"-")]),!r)throw new Error(`Missing required attribute ${t}`)}))},r=(e={})=>{const t=document.createElement("iframe"),r=`iframe-${e.salesforceId}`,a=new URL("salesforce/widget","https://www.romantikhotels.com");if(a.pathname+=`/${e.salesforceId}/${e.locale}/${e.theme}/`,t.src=a.href,t.id=r,t.style.width="170px",t.style.height="150px",t.style.border="none",document.getElementById(r))throw new Error("The widget can not be initialized more than once.");e.container&&e.container.appendChild(t)};(()=>{const e=document.currentScript,a={container:document.getElementById(e.getAttribute("data-container")||`reputation-${e.getAttribute("data-salesforce-id")}`),salesforceId:e.getAttribute("data-salesforce-id"),locale:e.getAttribute("data-locale")??"de_DE",theme:e.getAttribute("data-theme")??"brackets"};try{t(a),r(a)}catch(e){a.container.innerText=e}})()})();