@tebuto/react-booking-widget
Version:
React Component for the Tebuto Booking Widget
3 lines (2 loc) • 1.44 kB
JavaScript
import{jsxs as t,jsx as r}from"react/jsx-runtime";var e=function(){return e=Object.assign||function(t){for(var r,e=1,o=arguments.length;e<o;e++)for(var i in r=arguments[e])Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);return t},e.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;function o(e){var o=e.noScriptText,n=void 0===o?"Widget konnte nicht geladen werden. Möglicherweise ist Skripting im Browser deaktiviert.":o,a=function(t,r){var e={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(e[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)r.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(e[o[i]]=t[o[i]])}return e}(e,["noScriptText"]);return t("div",{id:"tebuto-booking-widget","data-testid":"tebuto-booking-widget-container",children:[r(i,{config:a}),r("noscript",{"data-testid":"tebuto-booking-widget-noscript",children:n})]})}function i(t){var o=t.config;return r("script",e({src:"https://widget.tebuto.de/booking-widget.js","data-therapist-uuid":o.therapistUUID},o.backgroundColor?{"data-background-color":o.backgroundColor}:{},o.categories?{"data-categories":o.categories.join(",")}:{},void 0!==o.border?{"data-border":o.border?"true":"false"}:{},{"data-testid":"tebuto-booking-widget-script"}))}export{o as TebutoBookingWidget};
//# sourceMappingURL=index.js.map