hplx-feature-library 1.0.218 → 1.0.220

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.
@@ -1,6 +1,6 @@
1
1
  import { j as jsxRuntimeExports, K as Ku, A as Ap, P as Ps, g as getDefaultExportFromCjs$2, f as getAugmentedNamespace$2, d as commonjsGlobal$1, l as requireObjectAssign, m as PropTypes, b as bs } from "./index-Bd0CDVpH.js";
2
2
  import React__default, { useState, useEffect, useRef, useCallback, Fragment, memo, createContext, useReducer, forwardRef, useImperativeHandle, useMemo, useContext, useLayoutEffect } from "react";
3
- import { h as hplxAPI, n as E_ENVIRONMENT, o as getDurationFormat, j as isValidDate, m as capitalizeFirstLetter, i as isJson, d as debounceFn } from "./common-utils-Dq5TMP7t.js";
3
+ import { h as hplxAPI, n as E_ENVIRONMENT, o as getDurationFormat, j as isValidDate, m as capitalizeFirstLetter, i as isJson, d as debounceFn } from "./common-utils-CprPMjtz.js";
4
4
  import { d as dayjs } from "./dayjs.min-D52_GdfV.js";
5
5
  import { g as genderList, D as DefinedLanguages } from "./CommonConstant-Bj7SvPfU.js";
6
6
  import { c as create$6 } from "./index.esm-Bn1Rklqj.js";
@@ -6956,7 +6956,23 @@ var renderElement = function(N, W) {
6956
6956
  var Y = W.ownerDocument, X = Y.documentElement ? parseColor$1(N, getComputedStyle(Y.documentElement).backgroundColor) : COLORS.TRANSPARENT, I = Y.body ? parseColor$1(N, getComputedStyle(Y.body).backgroundColor) : COLORS.TRANSPARENT, w = typeof M == "string" ? parseColor$1(N, M) : M === null ? COLORS.TRANSPARENT : 4294967295;
6957
6957
  return W === Y.documentElement ? isTransparent(X) ? isTransparent(I) ? w : I : X : w;
6958
6958
  };
6959
- const convertDaysToWeeksAndDays = (N) => {
6959
+ const findChangedProperties = (N, W, M = "") => {
6960
+ if (N === window || W === window || N === globalThis || W === globalThis)
6961
+ return {};
6962
+ let Y = {};
6963
+ console.log("444obj1, obj2", N, W);
6964
+ for (const X in N)
6965
+ if (W.hasOwnProperty(X))
6966
+ if (typeof N[X] == "object" && typeof W[X] == "object") {
6967
+ const I = findChangedProperties(N[X], W[X], `${M}.${X}`);
6968
+ Object.keys(I).length > 0 && (Y = { ...Y, ...I });
6969
+ } else N[X] !== W[X] && (Y[`${M}.${X}`] = { oldValue: N[X], newValue: W[X] });
6970
+ else
6971
+ Y[`${M}.${X}`] = { oldValue: N[X], newValue: void 0 };
6972
+ for (const X in W)
6973
+ N.hasOwnProperty(X) || (Y[`${M}.${X}`] = { oldValue: void 0, newValue: W[X] });
6974
+ return console.log("444changedProperties", Y), Y;
6975
+ }, convertDaysToWeeksAndDays = (N) => {
6960
6976
  if (!N) return { weeks: 0, days: 0 };
6961
6977
  const W = Math.floor(N / 7), M = N % 7;
6962
6978
  return { weeks: W, days: M };
@@ -120957,7 +120973,10 @@ const PrintPediaChartsPdf = memo(
120957
120973
  ),
120958
120974
  ht() && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "hfl-fixed hfl-inset-0 hfl-z-[51] hfl-bg-Black hfl-opacity-25" })
120959
120975
  ] });
120960
- }, PrintModal$1 = memo(PrintModal, () => !1);
120976
+ }, PrintModal$1 = memo(PrintModal, (N, W) => {
120977
+ const M = findChangedProperties(N, W);
120978
+ return !Object.keys(M).length;
120979
+ });
120961
120980
  export {
120962
120981
  GET_ABHA_CONSENT as A,
120963
120982
  GENERATE_OTP_BY_ABHA_ADDRESS as B,