"use strict";
var __webpack_require__ = {};
(()=>{
    __webpack_require__.d = (exports1, definition)=>{
        for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
            enumerable: true,
            get: definition[key]
        });
    };
})();
(()=>{
    __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
})();
(()=>{
    __webpack_require__.r = (exports1)=>{
        if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
            value: 'Module'
        });
        Object.defineProperty(exports1, '__esModule', {
            value: true
        });
    };
})();
var __webpack_exports__ = {};
__webpack_require__.r(__webpack_exports__);
__webpack_require__.d(__webpack_exports__, {
    renderCarouselIndicator: ()=>renderCarouselIndicator
});
const external_lit_namespaceObject = require("lit");
const renderCarouselIndicator = ({ props: { numberOfImages, currentImage, navigateToImage, maxImagesBeforeAndAfter = 2 } })=>(0, external_lit_namespaceObject.html)`
    <ul
      part="indicators"
      class="absolute bottom-2 mt-6 mb-1 flex max-w-4/5 items-center justify-center gap-2"
    >
      ${Array.from({
        length: numberOfImages
    }, (_, index)=>{
        const isActive = index === currentImage % numberOfImages;
        const shouldDisplay = index >= Math.max(0, currentImage - maxImagesBeforeAndAfter) && index <= Math.min(currentImage + maxImagesBeforeAndAfter, numberOfImages - 1);
        const isLastDisplayed = index === currentImage + maxImagesBeforeAndAfter && index < numberOfImages - 1;
        const isFirstDisplayed = index === currentImage - maxImagesBeforeAndAfter && index > 0;
        return (0, external_lit_namespaceObject.html)`
          <li
            part=${`indicator${isActive ? ' active-indicator' : ''}`}
            class=${`hover:bg-primary-light cursor-pointer rounded-md shadow transition-all duration-200 ease-in-out ${isActive ? 'bg-primary' : 'bg-neutral'} ${isLastDisplayed || isFirstDisplayed ? 'mobile-only:w-2 mobile-only:h-2 h-1 w-1 scale-75 transform' : 'mobile-only:w-3 mobile-only:h-3 h-2 w-2 scale-100 transform'} ${shouldDisplay ? 'pointer-events-auto opacity-80' : 'pointer-events-none hidden opacity-0'}`}
            @click=${(event)=>{
            event.stopPropagation();
            navigateToImage(index);
        }}
          ></li>
        `;
    })}
    </ul>
  `;
exports.renderCarouselIndicator = __webpack_exports__.renderCarouselIndicator;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "renderCarouselIndicator"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
