"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__, {
    renderLoadMoreProgressBar: ()=>renderLoadMoreProgressBar
});
const external_lit_namespaceObject = require("lit");
const style_map_js_namespaceObject = require("lit/directives/style-map.js");
const renderLoadMoreProgressBar = ({ props })=>{
    const { from, to } = props;
    const percentage = to > 0 ? Math.min(from / to * 100, 100) : 0;
    const width = `${Math.ceil(percentage)}%`;
    return (0, external_lit_namespaceObject.html)`
    <div part="progress-bar" class="bg-neutral relative my-2 h-1 w-72 rounded">
      <div
        class="progress-bar from-more-results-progress-bar-color-from to-more-results-progress-bar-color-to absolute top-0 left-0 z-1 h-full overflow-hidden rounded bg-linear-to-r"
        style=${(0, style_map_js_namespaceObject.styleMap)({
        width
    })}
      ></div>
    </div>
  `;
};
exports.renderLoadMoreProgressBar = __webpack_exports__.renderLoadMoreProgressBar;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "renderLoadMoreProgressBar"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
