import { b as __awaiter, c as __generator, s as styleInject, f as __rest } from './index.js';
import { request } from '@lm_fe/utils';
import React__default, { lazy } from 'react';
function getRvisitInfoOfOutpatient(id) {
  return __awaiter(this, void 0, void 0, function () {
    var res;
    return __generator(this, function (_a) {
      switch (_a.label) {
        case 0:
          return [4, request.get('/api/doctor/getRvisitInfoOfOutpatient?id=' + id)];
        case 1:
          res = _a.sent();
          return [2, res.data];
      }
    });
  });
}
function updateRvisitInfoOfOutpatient(data) {
  return __awaiter(this, void 0, void 0, function () {
    var res;
    return __generator(this, function (_a) {
      switch (_a.label) {
        case 0:
          return [4, request.post('/api/doctor/updateRvisitRecordOfOutpatient', data)];
        case 1:
          res = _a.sent();
          return [2, res.data];
      }
    });
  });
}
function deleteDiagnosis(id) {
  return __awaiter(this, void 0, void 0, function () {
    var res;
    return __generator(this, function (_a) {
      switch (_a.label) {
        case 0:
          return [4, request["delete"]("/api/doctor/deleteDiagnosisOfOutpatient/".concat(id))];
        case 1:
          res = _a.sent();
          return [2, res.data];
      }
    });
  });
}
function sortDiagnoses(data) {
  return __awaiter(this, void 0, void 0, function () {
    var res;
    return __generator(this, function (_a) {
      switch (_a.label) {
        case 0:
          return [4, request.put('/api/doctor/sortDiagnosesOfOutpatient', data)];
        case 1:
          res = _a.sent();
          return [2, res.data];
      }
    });
  });
}
function newAddDiagnosis(data) {
  return __awaiter(this, void 0, void 0, function () {
    return __generator(this, function (_a) {
      switch (_a.label) {
        case 0:
          return [4, request.post("/api/doctor/newOrSaveDiagnosisOfOutpatient", data)];
        case 1:
          return [2, _a.sent().data];
      }
    });
  });
}
var requestMethods_further = {
  getRvisitInfoOfOutpatient: getRvisitInfoOfOutpatient,
  updateRvisitInfoOfOutpatient: updateRvisitInfoOfOutpatient,
  deleteDiagnosis: deleteDiagnosis,
  sortDiagnoses: sortDiagnoses,
  newAddDiagnosis: newAddDiagnosis
};
var Inner = /*#__PURE__*/lazy(function () {
  return import('./prenatal-visit.pregnancy.doctor-end18.js');
});
function DiagnosesItem(props) {
  return /*#__PURE__*/React__default.createElement(Inner, props);
}
var css_248z = ".firstDiag-new {\n  display: flex;\n  align-items: center;\n  margin: 7px 0px 10px 5px;\n  font-weight: 600;\n  color: #150f55;\n}\n.firstDiag-new .diagNum-new {\n  border-radius: 50%;\n  width: 20px;\n  height: 20px;\n  line-height: 20px;\n  text-align: center;\n  border: 2px solid #d7dce7;\n  background-color: #fff;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  color: #333541;\n  margin-right: 6px;\n  font-weight: 400;\n}\n.firstDiag-new .diagGP-new {\n  display: inline-block;\n  width: 12px;\n  height: 21px;\n  line-height: 21px;\n  border-bottom: 1px #fe708b solid;\n}\n.firstDiag-new .diagWeek-new {\n  width: 40px;\n  padding: 0 2px;\n}\n";
styleInject(css_248z);
function DiagnosesWeek(_a) {
  var first = _a.first,
    headerInfo = _a.headerInfo;
  __rest(_a, ["first", "headerInfo"]);
  return /*#__PURE__*/React__default.createElement("div", {
    className: "firstDiag-new"
  }, /*#__PURE__*/React__default.createElement("span", {
    className: "diagNum-new"
  }, "1"), "G", /*#__PURE__*/React__default.createElement("span", {
    className: "diagGP-new"
  }, headerInfo.g), "P", /*#__PURE__*/React__default.createElement("span", {
    className: "diagGP-new"
  }, headerInfo.p), "\u598A\u5A20", !first ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("span", {
    className: "diagGP-new diagWeek-new"
  }, headerInfo.curgesweek), "\u5468") : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("span", {
    className: "diagGP-new diagWeek-new"
  }, headerInfo.gesweek), "\u5468\uFF08\u9996\u68C0\u5B55\u5468\uFF09"));
}
export { DiagnosesWeek as D, DiagnosesItem as a, requestMethods_further as r };
//# sourceMappingURL=diagnoses-week.js.map
