mario-core 2.9.164-level → 2.9.166-level

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3655,9 +3655,11 @@ var BlockSelectTeacher = function BlockSelectTeacher(_ref) {
3655
3655
  var BlockSelectTeacher$1 = forwardRef(BlockSelectTeacher);
3656
3656
 
3657
3657
  var getStaticFileUrl = function getStaticFileUrl(url) {
3658
+ var STAGE_DOMAIN = "https://stage.marioforme.com";
3659
+ var isStage = STAGE_DOMAIN === location.origin;
3658
3660
  if (!url) return "";
3659
- if (url.startsWith("http")) return url;
3660
- if (url.startsWith("/")) return "" + MARIO_SUCCESS_BASE_URL + url;else return MARIO_SUCCESS_BASE_URL + "/" + url;
3661
+ if (isLocalhost && !isStage || url.startsWith("http")) return url;
3662
+ if (url.startsWith("/")) return "" + (isStage ? STAGE_DOMAIN : MARIO_SUCCESS_BASE_URL) + url;else return (isStage ? STAGE_DOMAIN : MARIO_SUCCESS_BASE_URL) + "/" + url;
3661
3663
  };
3662
3664
 
3663
3665
  var schema = object({
@@ -4071,7 +4073,7 @@ var BlockForgetPassword = function BlockForgetPassword() {
4071
4073
  md: 4,
4072
4074
  className: "" + styles["img-box"]
4073
4075
  }, React.createElement("img", {
4074
- src: "/images/img-login.jpg",
4076
+ src: getStaticFileUrl("/images/img-login.jpg"),
4075
4077
  className: "" + styles["img-login"]
4076
4078
  })));
4077
4079
  });
@@ -4183,7 +4185,7 @@ var BlockResetPassword = function BlockResetPassword() {
4183
4185
  md: 4,
4184
4186
  className: "" + styles["img-box"]
4185
4187
  }, React.createElement("img", {
4186
- src: "/images/img-login.jpg",
4188
+ src: getStaticFileUrl("/images/img-login.jpg"),
4187
4189
  className: "" + styles["img-login"]
4188
4190
  })));
4189
4191
  });
@@ -4250,7 +4252,7 @@ var IconContent = function IconContent(_ref) {
4250
4252
  }, React.createElement("div", {
4251
4253
  className: "" + styles["title-icon"]
4252
4254
  }, React.createElement("img", {
4253
- src: srcIcon,
4255
+ src: getStaticFileUrl(srcIcon),
4254
4256
  alt: "icon"
4255
4257
  })), React.createElement("div", {
4256
4258
  className: "" + styles["descriptions-icon"],