/******/ (() => { // webpackBootstrap
/******/ 	"use strict";
/******/ 	var __webpack_modules__ = ({

/***/ "./package.json":
/*!**********************!*\
  !*** ./package.json ***!
  \**********************/
/***/ ((module) => {

module.exports = /*#__PURE__*/JSON.parse('{"name":"@formbird/sc-script-tag","version":"1.0.0","private":true,"scripts":{"test":"echo \\"Error: no test specified\\" && exit 1","build":"npx webpack && npx copyfiles dist/* ../../dist/sc-script-tag","build:prod":"npx webpack && npx copyfiles dist/* ../../dist/sc-script-tag","deploy":"webpack && npx copyfiles dist/* ../../../fieldtec-web/server/public/vendor/custom-component-modules/dist/sc-script-tag","watch":"webpack --watch --output-path ../../../fieldtec-web/server/public/vendor/custom-component-modules/dist/sc-script-tag/dist"},"devDependencies":{"@formbird/types":"5.0.5","ts-loader":"9.5.4","webpack":"5.102.1","webpack-cli":"4.9.1"}}');

/***/ }),

/***/ "./src/components/ScScriptTag.ts":
/*!***************************************!*\
  !*** ./src/components/ScScriptTag.ts ***!
  \***************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../package.json */ "./package.json");

let version = 'NOT-SET';
if (_package_json__WEBPACK_IMPORTED_MODULE_0__?.version) {
    version = _package_json__WEBPACK_IMPORTED_MODULE_0__.version;
}
class ScScriptTag extends HTMLElement {
    componentDefinition;
    constructor() {
        // Always call super first in constructor
        super();
    }
    connectedCallback() {
        // write element functionality in here   
        this.setAttribute('fb-component-version', version);
        const scriptEle = document.createRange().createContextualFragment(this.componentDefinition.html);
        document.body.append(scriptEle);
    }
}
customElements.define('sc-script-tag', ScScriptTag);
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ScScriptTag);


/***/ })

/******/ 	});
/************************************************************************/
/******/ 	// The module cache
/******/ 	var __webpack_module_cache__ = {};
/******/ 	
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/ 		// Check if module is in cache
/******/ 		var cachedModule = __webpack_module_cache__[moduleId];
/******/ 		if (cachedModule !== undefined) {
/******/ 			return cachedModule.exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = __webpack_module_cache__[moduleId] = {
/******/ 			// no module.id needed
/******/ 			// no module.loaded needed
/******/ 			exports: {}
/******/ 		};
/******/ 	
/******/ 		// Execute the module function
/******/ 		__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/ 	
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/ 	
/************************************************************************/
/******/ 	/* webpack/runtime/define property getters */
/******/ 	(() => {
/******/ 		// define getter functions for harmony exports
/******/ 		__webpack_require__.d = (exports, definition) => {
/******/ 			for(var key in definition) {
/******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ 				}
/******/ 			}
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
/******/ 	(() => {
/******/ 		__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/make namespace object */
/******/ 	(() => {
/******/ 		// define __esModule on exports
/******/ 		__webpack_require__.r = (exports) => {
/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 			}
/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
/******/ 		};
/******/ 	})();
/******/ 	
/************************************************************************/
var __webpack_exports__ = {};
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
(() => {
/*!**********************!*\
  !*** ./src/index.ts ***!
  \**********************/
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _components_ScScriptTag__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/ScScriptTag */ "./src/components/ScScriptTag.ts");


})();

/******/ })()
;
//# sourceMappingURL=sc-script-tag.js.map