"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _ui = require("@mirai/ui");
var _react = _interopRequireDefault(require("react"));
var _shared__ = require("../__shared__");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
const SPACE = 'var(--mirai-ui-space-M)';
var _default = () => {
  const {
    isDesktop,
    isMobile
  } = (0, _ui.useDevice)();
  const sectionProps = {
    base: true,
    style: {
      gap: SPACE,
      padding: SPACE
    }
  };
  const renderSummary = () => /*#__PURE__*/_react.default.createElement(_ui.View, {
    style: {
      flex: 1,
      gap: SPACE,
      maxWidth: 'calc(var(--mirai-ui-breakpoint-S) - var(--mirai-ui-space-M) * 4)'
    }
  }, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    base: true
  }, /*#__PURE__*/_react.default.createElement(_ui.View, sectionProps, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    headline: isDesktop,
    words: 2
  }), /*#__PURE__*/_react.default.createElement(_ui.View, {
    row: true
  }, /*#__PURE__*/_react.default.createElement(_ui.View, {
    wide: true
  }, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    words: 1
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    action: true,
    words: 3
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    small: true,
    words: 2
  })), /*#__PURE__*/_react.default.createElement(_ui.View, {
    wide: true
  }, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    words: 1
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    action: true,
    words: 3
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    small: true,
    words: 2
  }))), /*#__PURE__*/_react.default.createElement(_ui.View, null, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    words: 2
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    action: true,
    words: 4
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    small: true,
    words: 2
  })), /*#__PURE__*/_react.default.createElement(_ui.View, null, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    words: 1
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    action: true,
    words: 3
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    small: true,
    words: 8
  })), /*#__PURE__*/_react.default.createElement(_ui.View, {
    row: true,
    style: {
      justifyContent: 'space-between'
    }
  }, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    small: true,
    words: 2
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    small: true,
    words: 2
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    small: true,
    words: 2
  }))), /*#__PURE__*/_react.default.createElement(_ui.View, {
    style: {
      backgroundColor: 'var(--mirai-ui-content-background)',
      height: 'var(--mirai-ui-border-width)'
    }
  }), /*#__PURE__*/_react.default.createElement(_ui.View, sectionProps, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    headline: isDesktop,
    words: 2
  }), /*#__PURE__*/_react.default.createElement(_ui.View, {
    style: {
      gap: 'var(--mirai-ui-space-S)'
    }
  }, Array.from({
    length: 4
  }).map((_, index) => /*#__PURE__*/_react.default.createElement(_ui.View, {
    key: index,
    row: true,
    style: {
      justifyContent: 'space-between'
    }
  }, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    action: index < 3,
    words: 2
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    action: index < 3,
    words: 1
  })))), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    small: true,
    words: 10
  }))), isDesktop && /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    base: true
  }, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    button: true,
    large: true,
    wide: true,
    words: 1
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    button: true,
    large: true,
    wide: true,
    words: 2
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    button: true,
    large: true,
    wide: true,
    words: 2
  })));
  return /*#__PURE__*/_react.default.createElement(_ui.View, {
    wide: true,
    style: {
      alignItems: 'center',
      gap: '2rem'
    }
  }, /*#__PURE__*/_react.default.createElement(_ui.View, {
    row: true,
    wide: true,
    style: {
      alignItems: 'start',
      alignSelf: 'center',
      gap: SPACE,
      maxWidth: 'var(--mirai-ui-breakpoint-content)'
    }
  }, /*#__PURE__*/_react.default.createElement(_ui.View, {
    style: {
      flex: 1,
      gap: SPACE
    }
  }, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, _extends({}, sectionProps, {
    row: true
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    icon: true
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    action: true,
    words: 12
  })), !isDesktop && renderSummary(), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, sectionProps, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    headline: true,
    words: 2
  }), Array.from({
    length: 6
  }).map((_, index) => /*#__PURE__*/_react.default.createElement(_ui.View, {
    key: index,
    row: !isMobile
  }, /*#__PURE__*/_react.default.createElement(_ui.View, {
    style: {
      minWidth: '10vw'
    }
  }, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    words: 1
  })), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    words: 2
  })))), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, sectionProps, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    headline: isDesktop,
    words: 2
  }), /*#__PURE__*/_react.default.createElement(_ui.View, {
    row: true,
    style: {
      gap: SPACE
    }
  }, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    style: {
      height: 'var(--mirai-ui-space-XXL)',
      width: 'var(--mirai-ui-space-XXL)'
    }
  }), /*#__PURE__*/_react.default.createElement(_ui.View, null, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    words: 2
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    action: true,
    words: 2
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    small: true,
    words: 5
  }))), /*#__PURE__*/_react.default.createElement(_ui.View, null, Array.from({
    length: 2
  }).map((_, index) => /*#__PURE__*/_react.default.createElement(_ui.View, {
    key: index,
    row: true,
    style: {
      borderBottom: 'solid var(--mirai-ui-border-width) var(--mirai-ui-content-background)',
      padding: "".concat(SPACE, " 0")
    }
  }, /*#__PURE__*/_react.default.createElement(_ui.View, {
    style: {
      width: '40%'
    }
  }, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    action: true,
    words: 4
  })), /*#__PURE__*/_react.default.createElement(_ui.View, {
    style: {
      width: '30%'
    }
  }, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    action: true,
    words: 2
  })), /*#__PURE__*/_react.default.createElement(_ui.View, {
    style: {
      flex: 1,
      alignItems: 'flex-end'
    }
  }, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    action: true,
    words: 1
  }))))), /*#__PURE__*/_react.default.createElement(_ui.View, {
    row: true,
    style: {
      justifyContent: 'center',
      gap: SPACE
    }
  }, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    icon: true
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    action: true,
    words: 2
  }))), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, sectionProps, /*#__PURE__*/_react.default.createElement(_ui.View, null, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    small: true,
    words: 6
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    small: true,
    words: 24
  })), /*#__PURE__*/_react.default.createElement(_ui.View, null, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    small: true,
    words: 2
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    small: true,
    words: 32
  })), /*#__PURE__*/_react.default.createElement(_ui.View, null, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    small: true,
    words: 2
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    small: true,
    words: 8
  })), /*#__PURE__*/_react.default.createElement(_ui.View, null, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    small: true,
    words: 2
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    small: true,
    words: 6
  })))), isDesktop && renderSummary()));
};
exports.default = _default;
//# sourceMappingURL=Booking.skeleton.js.map