import u from "../../@babel/runtime/helpers/esm/extends.mjs";
import i from "../../@babel/runtime/helpers/esm/defineProperty.mjs";
import a from "../../@babel/runtime/helpers/esm/objectSpread2.mjs";
import * as r from "react";
import y from "../../rc-resize-observer/es/index.mjs";
import z from "../../classnames/index.mjs";
var E = /* @__PURE__ */ r.forwardRef(function(e, m) {
  var h = e.height, o = e.offsetY, p = e.offsetX, c = e.children, s = e.prefixCls, l = e.onInnerResize, v = e.innerProps, d = e.rtl, g = e.extra, f = {}, n = {
    display: "flex",
    flexDirection: "column"
  };
  if (o !== void 0) {
    var t;
    f = {
      height: h,
      position: "relative",
      overflow: "hidden"
    }, n = a(a({}, n), {}, (t = {
      transform: "translateY(".concat(o, "px)")
    }, i(t, d ? "marginRight" : "marginLeft", -p), i(t, "position", "absolute"), i(t, "left", 0), i(t, "right", 0), i(t, "top", 0), t));
  }
  return /* @__PURE__ */ r.createElement("div", {
    style: f
  }, /* @__PURE__ */ r.createElement(y, {
    onResize: function(x) {
      var R = x.offsetHeight;
      R && l && l();
    }
  }, /* @__PURE__ */ r.createElement("div", u({
    style: n,
    className: z(i({}, "".concat(s, "-holder-inner"), s)),
    ref: m
  }, v), c, g)));
});
E.displayName = "Filler";
export {
  E as default
};
