"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__, {
    AtomicResultTablePlaceholder: ()=>AtomicResultTablePlaceholder
});
const external_lit_namespaceObject = require("lit");
const decorators_js_namespaceObject = require("lit/decorators.js");
const map_js_namespaceObject = require("lit/directives/map.js");
const item_layout_utils_cjs_namespaceObject = require("../../common/layout/item-layout-utils.cjs");
const with_tailwind_styles_cjs_namespaceObject = require("../../../decorators/with-tailwind-styles.cjs");
function _ts_decorate(decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);
    else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
}
function _ts_metadata(k, v) {
    if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
}
class AtomicResultTablePlaceholder extends external_lit_namespaceObject.LitElement {
    getClasses() {
        return (0, item_layout_utils_cjs_namespaceObject.getItemDisplayClasses)('table', this.density, this.imageSize);
    }
    render() {
        return (0, external_lit_namespaceObject.html)`
      <table class="list-root animate-pulse ${this.getClasses().join(' ')}">
        <thead aria-hidden="true">
          <tr>
            <th>
              <div
                class="mt-2 h-8 block bg-neutral rounded"
                style="width: 14.5rem;"
              ></div>
            </th>
            <th>
              <div
                class="mt-2 h-8 block bg-neutral rounded"
                style="width: 9.75rem;"
              ></div>
            </th>
            <th>
              <div
                class="mt-2 h-8 block bg-neutral rounded"
                style="width: 6.5rem;"
              ></div>
            </th>
          </tr>
        </thead>
        <tbody>
          ${(0, map_js_namespaceObject.map)(Array.from({
            length: this.rows
        }), ()=>(0, external_lit_namespaceObject.html)`
              <tr>
                <td>
                  <div
                    class="mb-6 h-8 block bg-neutral rounded"
                    style="width: 22.875rem;"
                  ></div>
                  <div
                    class="mb-2 h-5 block bg-neutral rounded"
                    style="width: 23.75rem;"
                  ></div>
                  <div
                    class="h-5 block bg-neutral rounded"
                    style="width: 11.5rem;"
                  ></div>
                </td>
                <td>
                  <div
                    class="mt-1.5 h-5 block bg-neutral rounded"
                    style="width: 11rem;"
                  ></div>
                </td>
                <td>
                  <div
                    class="mt-1.5 h-5 block bg-neutral rounded"
                    style="width: 4.875rem;"
                  ></div>
                </td>
              </tr>
            `)}
        </tbody>
      </table>
    `;
    }
}
AtomicResultTablePlaceholder.styles = (0, external_lit_namespaceObject.css)`
    @reference '../../common/item-list/styles/mixins.css';
    :host {
      display: grid;
    }

    .list-root.display-table {
      @apply atomic-result-table border-neutral rounded-xl border;

      thead tr,
      tbody tr:not(:last-child) {
        position: relative;

        &::after {
          content: ' ';
          display: block;
          position: absolute;
          height: 1px;
          bottom: 0;
          left: var(--padding);
          right: var(--padding);
          @apply bg-neutral;
        }
      }

      th,
      td {
        border-color: transparent;
        border-radius: initial;
      }

      th {
        background-color: transparent;
      }
    }
  `;
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: String
    }),
    _ts_metadata("design:type", "u" < typeof ItemDisplayDensity ? Object : ItemDisplayDensity)
], AtomicResultTablePlaceholder.prototype, "density", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: String,
        attribute: 'image-size'
    }),
    _ts_metadata("design:type", "u" < typeof ItemDisplayImageSize ? Object : ItemDisplayImageSize)
], AtomicResultTablePlaceholder.prototype, "imageSize", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: Number
    }),
    _ts_metadata("design:type", Number)
], AtomicResultTablePlaceholder.prototype, "rows", void 0);
AtomicResultTablePlaceholder = _ts_decorate([
    (0, decorators_js_namespaceObject.customElement)('atomic-result-table-placeholder'),
    with_tailwind_styles_cjs_namespaceObject.withTailwindStyles
], AtomicResultTablePlaceholder);
exports.AtomicResultTablePlaceholder = __webpack_exports__.AtomicResultTablePlaceholder;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "AtomicResultTablePlaceholder"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
