"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxDevRuntime = require("react/jsx-dev-runtime");
const reactBinding = require("@contember/react-binding");
const react = require("react");
const staticRenderFileKind = (fileKind, environment) => {
  const children = /* @__PURE__ */ jsxDevRuntime.jsxDEV(jsxDevRuntime.Fragment, { children: [
    !fileKind.baseEntity || !fileKind.childrenOutsideBaseEntity ? fileKind.children : null,
    fileKind.renderUploadedFile,
    fileKind.extractors.map((extractor, i) => /* @__PURE__ */ jsxDevRuntime.jsxDEV(react.Fragment, { children: extractor.staticRender({ environment }) }, i, false, {
      fileName: "/__w/interface/interface/packages/admin/src/components/bindingFacade/upload/fileHandler/utils/staticRenderFileKind.tsx",
      lineNumber: 12,
      columnNumber: 5
    }, void 0))
  ] }, void 0, true, {
    fileName: "/__w/interface/interface/packages/admin/src/components/bindingFacade/upload/fileHandler/utils/staticRenderFileKind.tsx",
    lineNumber: 8,
    columnNumber: 3
  }, void 0);
  return [
    fileKind.baseEntity === void 0 ? children : /* @__PURE__ */ jsxDevRuntime.jsxDEV(reactBinding.HasOne, { field: fileKind.baseEntity, children }, void 0, false, {
      fileName: "/__w/interface/interface/packages/admin/src/components/bindingFacade/upload/fileHandler/utils/staticRenderFileKind.tsx",
      lineNumber: 19,
      columnNumber: 6
    }, void 0),
    fileKind.childrenOutsideBaseEntity ? fileKind.children : null
  ];
};
exports.staticRenderFileKind = staticRenderFileKind;
//# sourceMappingURL=staticRenderFileKind.cjs.map
