/*
 * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
 * This devtool is neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file in the browser devtools.
 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
 * or disable the default devtool with "devtool: false".
 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
 */
/******/ (() => { // webpackBootstrap
/******/ 	"use strict";
/******/ 	var __webpack_modules__ = ({

/***/ "./src/templates/views/content-awards/embed-by-project/component/view.content-awards.embed-by-project.js":
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _view_content_awards_embed_by_project_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\"./src/templates/views/content-awards/embed-by-project/component/view.content-awards.embed-by-project.scss\");\n\nDrupal.behaviors.viewAwardsEmbedByProject = {\n  attach: function attach(context) {\n    var HTML = document.documentElement;\n    var AWARDS = context.querySelectorAll('.view--content-awards.view--embed-by-project .view__award');\n    if (!AWARDS.length) return;\n    var resizeTimeout;\n\n    // Function to check and adjust positioning for award info tooltips\n    var updateTooltipPosition = function updateTooltipPosition(award) {\n      var awardInfo = award.querySelector('.view__award-info');\n      if (!awardInfo) return;\n\n      // Reset positioning to get natural dimensions\n      awardInfo.style.left = '0';\n      awardInfo.style.right = 'auto';\n\n      // Get the bounding rectangles\n      var awardRect = award.getBoundingClientRect();\n      var awardInfoRect = awardInfo.getBoundingClientRect();\n      var viewportWidth = HTML.getBoundingClientRect().width;\n\n      // Check if the tooltip would overflow the right edge of the viewport\n      var wouldOverflow = awardRect.left + awardInfoRect.width > viewportWidth;\n      if (wouldOverflow) {\n        awardInfo.style.left = 'auto';\n        awardInfo.style.right = '0';\n      } else {\n        awardInfo.style.left = '0';\n        awardInfo.style.right = 'auto';\n      }\n    };\n    var processAllAwardTooltips = function processAllAwardTooltips() {\n      AWARDS.forEach(function (award) {\n        updateTooltipPosition(award);\n      });\n    };\n\n    /**\n     * **************************************************\n     * Handlers\n     */\n\n    var handleResize = function handleResize() {\n      clearTimeout(resizeTimeout);\n      resizeTimeout = setTimeout(processAllAwardTooltips, 16);\n    };\n\n    /**\n     * **************************************************\n     * Listeners\n     */\n\n    window.addEventListener('resize', handleResize, {\n      passive: true\n    });\n\n    // Initialize\n    processAllAwardTooltips();\n  }\n};\n\n//# sourceURL=webpack://@naomi-2025/ui/./src/templates/views/content-awards/embed-by-project/component/view.content-awards.embed-by-project.js?\n}");

/***/ }),

/***/ "./src/templates/views/content-awards/embed-by-project/component/view.content-awards.embed-by-project.scss":
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://@naomi-2025/ui/./src/templates/views/content-awards/embed-by-project/component/view.content-awards.embed-by-project.scss?\n}");

/***/ })

/******/ 	});
/************************************************************************/
/******/ 	// 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/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 });
/******/ 		};
/******/ 	})();
/******/ 	
/************************************************************************/
/******/ 	
/******/ 	// startup
/******/ 	// Load entry module and return exports
/******/ 	// This entry module can't be inlined because the eval devtool is used.
/******/ 	var __webpack_exports__ = __webpack_require__("./src/templates/views/content-awards/embed-by-project/component/view.content-awards.embed-by-project.js");
/******/ 	
/******/ })()
;