@hhgtech/hhg-components 1.21.32 → 1.21.34

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.
Files changed (84) hide show
  1. package/build/babyGrowth.js +1 -1
  2. package/build/cache.js +1 -1
  3. package/build/care.js +1 -1
  4. package/build/components/molecules/dueDateCalculator/dueDateFormConception.d.ts +2 -1
  5. package/build/components/molecules/dueDateCalculator/dueDateFormIVF.d.ts +2 -1
  6. package/build/components/molecules/dueDateCalculator/dueDateFormLastPeriod.d.ts +2 -1
  7. package/build/components/molecules/dueDateCalculator/index.d.ts +2 -1
  8. package/build/components/molecules/dueDateCalculator/index.styled.d.ts +0 -3
  9. package/build/components/molecules/embeddedHeathToolCards/due-date/dueDate.d.ts +2 -1
  10. package/build/components/molecules/embeddedHeathToolCards/ovulation/ovulation.d.ts +2 -1
  11. package/build/components/molecules/embeddedHeathToolCards/pwg/pwg.d.ts +2 -1
  12. package/build/components/molecules/ovulationCalculator/index.d.ts +2 -1
  13. package/build/components/molecules/ovulationCalculator/ovulationForm.d.ts +2 -1
  14. package/build/components/molecules/toolBannerCard/index.d.ts +2 -2
  15. package/build/components/molecules/weightGainForm/index.styled.d.ts +0 -1
  16. package/build/components/organisms/heroBannerHealthTool/healthToolBanner.d.ts +2 -2
  17. package/build/components/organisms/heroBannerHealthTool/index.d.ts +2 -3
  18. package/build/components.js +1 -1
  19. package/build/constants.js +1 -1
  20. package/build/core-97cd306c.js +1 -0
  21. package/build/ecom.js +1 -1
  22. package/build/esm/babyGrowth.js +1 -1
  23. package/build/esm/cache.js +1 -1
  24. package/build/esm/care.js +1 -1
  25. package/build/esm/components.js +1 -1
  26. package/build/esm/constants.js +1 -1
  27. package/build/esm/core-3b861395.js +1 -0
  28. package/build/esm/ecom.js +1 -1
  29. package/build/esm/gAssets.js +1 -1
  30. package/build/esm/getDynamicHealthTool-831ea86d.js +1 -0
  31. package/build/esm/{getSocialList-96e72b36.js → getSocialList-e91ed860.js} +0 -0
  32. package/build/esm/hooks.js +1 -1
  33. package/build/esm/index-454fe8ff.js +1 -0
  34. package/build/esm/index-463a8401.js +1 -0
  35. package/build/esm/index-9dd60ba6.js +1 -0
  36. package/build/esm/index-ab040301.js +1 -0
  37. package/build/esm/{index-e416266a.js → index-b8fa74ac.js} +1 -1
  38. package/build/esm/index.js +1 -1
  39. package/build/esm/isProduction-6fc0946c.js +1 -0
  40. package/build/esm/mantine.js +1 -1
  41. package/build/esm/misc.js +1 -1
  42. package/build/esm/navigation.js +1 -1
  43. package/build/esm/together.js +1 -1
  44. package/build/esm/types-7ad44869.js +1 -0
  45. package/build/esm/types-93c7470a.js +1 -0
  46. package/build/esm/unifyEnv.js +1 -0
  47. package/build/esm/{useHealthToolCache-79dda45b.js → useHealthToolCache-74a46d69.js} +1 -1
  48. package/build/gAssets.js +1 -1
  49. package/build/getDynamicHealthTool-1d292d71.js +1 -0
  50. package/build/{getSocialList-c36c1df1.js → getSocialList-19da0f19.js} +0 -0
  51. package/build/hooks.js +1 -1
  52. package/build/index-3430df2d.js +1 -0
  53. package/build/{index-6e818bcc.js → index-58a865b2.js} +1 -1
  54. package/build/index-5c5b6326.js +1 -0
  55. package/build/index-d0b10781.js +1 -0
  56. package/build/index-d28c27ca.js +1 -0
  57. package/build/index.js +1 -1
  58. package/build/isProduction-32e6a55a.js +1 -0
  59. package/build/mantine.js +1 -1
  60. package/build/misc/unifyEnv.d.ts +17 -0
  61. package/build/misc.js +1 -1
  62. package/build/navigation.js +1 -1
  63. package/build/together.js +1 -1
  64. package/build/types-2c1f3406.js +1 -0
  65. package/build/types-3cc8947f.js +1 -0
  66. package/build/unifyEnv.js +1 -0
  67. package/build/{useHealthToolCache-df134cc9.js → useHealthToolCache-ae750aac.js} +1 -1
  68. package/package.json +4 -1
  69. package/build/core-f0edff4f.js +0 -1
  70. package/build/esm/core-3e31237f.js +0 -1
  71. package/build/esm/getDynamicHealthTool-506a8dae.js +0 -1
  72. package/build/esm/index-58ae0705.js +0 -1
  73. package/build/esm/index-8406c0b7.js +0 -1
  74. package/build/esm/index-aff998a2.js +0 -1
  75. package/build/esm/index-cd91bec2.js +0 -1
  76. package/build/esm/types-cd546aee.js +0 -1
  77. package/build/esm/types-f6c7c962.js +0 -1
  78. package/build/getDynamicHealthTool-2103105f.js +0 -1
  79. package/build/index-36b7f9a6.js +0 -1
  80. package/build/index-64a79547.js +0 -1
  81. package/build/index-a891b16b.js +0 -1
  82. package/build/index-bce6f562.js +0 -1
  83. package/build/types-4370a2d6.js +0 -1
  84. package/build/types-9bdb3a42.js +0 -1
@@ -0,0 +1 @@
1
+ function I(I){var _=I.DISCOVER_API,A=I.INTERNAL_DISCOVER_API,e=I.TOGETHER_API,s=I.CARE_API,E=I.SIDIS_TEMPLATE_API,P=I.SIDIS_API,S=I.SIDIS_API_GET,N=I.SSO_API,U=I.LOCALE,T=I.DEPLOY_ENV,O=I.LEAD_API,n=I.SUBOT_API,o=I.INTERNAL_SUBOT_API,r=I.SUBOT_URL;process.env.UNIFY_DISCOVER_API=_,process.env.UNIFY_INTERNAL_DISCOVER_API=A,process.env.UNIFY_TOGETHER_API=e,process.env.UNIFY_CARE_API=s,process.env.UNIFY_SIDIS_TEMPLATE_API=E,process.env.UNIFY_SIDIS_API=P,process.env.UNIFY_SIDIS_API_GET=S,process.env.UNIFY_SSO_API=N,process.env.UNIFY_LOCALE=U,process.env.UNIFY_DEPLOY_ENV=T,process.env.UNIFY_LEAD_API=O,process.env.UNIFY_SUBOT_API=n,process.env.UNIFY_INTERNAL_SUBOT_API=o,process.env.UNIFY_SUBOT_URL=r}export{I as setupUnifyEnv};
@@ -1 +1 @@
1
- import{c as t,d as r}from"./tslib.es6-dcf36680.js";import{useState as n,useEffect as o,useCallback as i}from"react";import{h as a}from"./getDynamicHealthTool-506a8dae.js";var e=function(e){var l=n([]),s=l[0],u=l[1];o((function(){t(void 0,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return[4,a(e)];case 1:return t=r.sent(),u(t),[2]}}))}))}),[a,e]);var c=i((function(t){var r;return(null===(r=s.find((function(r){return r.template===t})))||void 0===r?void 0:r.link)||""}),[s]);return{allTools:s,getHealthToolLink:c}};export{e as u};
1
+ import{c as t,d as r}from"./tslib.es6-dcf36680.js";import{useState as n,useEffect as o,useCallback as i}from"react";import{h as e}from"./getDynamicHealthTool-831ea86d.js";var a=function(a){var l=n([]),s=l[0],u=l[1];o((function(){t(void 0,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return[4,e(a)];case 1:return t=r.sent(),u(t),[2]}}))}))}),[e,a]);var c=i((function(t){var r;return(null===(r=s.find((function(r){return r.template===t})))||void 0===r?void 0:r.link)||""}),[s]);return{allTools:s,getHealthToolLink:c}};export{a as u};
package/build/gAssets.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-bce6f562.js"),t="hellosehat.com",o=function(){function o(){var t=this;this.baseDomain="",this.subPath="",this.getAssetPath=function(o,s,n){var i="https://hhg-common."+[s||t.getBaseDomain(),n||t.subPath,o].join("/");return e.isProduction?i:i+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}return o.prototype.getBaseDomain=function(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){var e=window.location.host.split("."),o=e.slice(e.length-2),s=o.join(".");return s.includes("localhost")||s.includes("hellohealthgroup")||o.every((function(e){return t=e,!isNaN(parseFloat(t))&&isFinite(t);var t}))?t:o.join(".")}return t},o}(),s=new o;s.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(s.baseDomain=e.domainLocales[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]),exports.CommonGAssets=s,exports.GAssets=o;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-d28c27ca.js"),t=require("./isProduction-32e6a55a.js"),o="hellosehat.com",s=function(){function e(){var e=this;this.baseDomain="",this.subPath="",this.getAssetPath=function(o,s,n){var i="https://hhg-common."+[s||e.getBaseDomain(),n||e.subPath,o].join("/");return t.isProduction?i:i+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}return e.prototype.getBaseDomain=function(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){var e=window.location.host.split("."),t=e.slice(e.length-2),s=t.join(".");return s.includes("localhost")||s.includes("hellohealthgroup")||t.every((function(e){return t=e,!isNaN(parseFloat(t))&&isFinite(t);var t}))?o:t.join(".")}return o},e}(),n=new s;n.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(n.baseDomain=e.domainLocales[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]),exports.CommonGAssets=n,exports.GAssets=s;
@@ -0,0 +1 @@
1
+ "use strict";var t=require("./tslib.es6-e6f346c4.js"),e=require("./core-97cd306c.js"),n=require("./index-d28c27ca.js"),o=require("./isProduction-32e6a55a.js"),r=function(t){return"https://".concat(o.isProduction?"wp.":"staging.").concat(n.domainLocales[t])},i=function(t,e){var n,o;if(!t)return{};var r="tl-PH"===e?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(n=t.link)||void 0===n?void 0:n.startsWith("http"))?t.link:"".concat(r,"/health-tools")+(null===(o=t.link)||void 0===o?void 0:o.replace("".concat(r,"/"),"/")),subtitle:t.subtitle,title:t.title}},c=function(e){return t.__awaiter(void 0,void 0,void 0,(function(){var n,o,c,a,s,l,u;return t.__generator(this,(function(t){switch(t.label){case 0:return t.trys.push([0,8,,9]),"undefined"==typeof window?[3,1]:(n=window.fetch,[3,3]);case 1:return[4,require("node-fetch")];case 2:n=t.sent(),t.label=3;case 3:o="tl-PH"===e?"lang=fil":"",c=[],t.label=4;case 4:return t.trys.push([4,6,,7]),[4,n("".concat(r(e),"/wp-json/api/healthtools?ismenu=0").concat(o?"&"+o:"")).then((function(t){return t.json()}))];case 5:return a=t.sent(),c=(null===(u=null===(l=null==a?void 0:a.data)||void 0===l?void 0:l.map)||void 0===u?void 0:u.call(l,(function(t){return i(t,e)})))||[],[3,7];case 6:return t.sent(),[3,7];case 7:return[2,c];case 8:return s=t.sent(),console.error(s),[3,9];case 9:return[2]}}))}))};exports.formatHealthTool=i,exports.getCareApiDomain=function(){return"https://".concat(o.isProduction?"health-care.":"service-health-care.","hellohealthgroup.com")},exports.getCurrentBaseUrl=function(t,e){var r="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,i=!r&&!o.isProduction;return r?"http://localhost:3000":"https://".concat(i?e?"fe.":"discover.":e?"www.":"").concat(n.domainLocales[e?"vi-VN_MB":t])},exports.getCurrentSsoUrl=function(t,e){return"https://".concat(o.isProduction?"id.":"staging-id.").concat(n.domainLocales[e?"vi-VN_MB":t])},exports.getDiscoverApiDomain=r,exports.getDynamicHealthTool=c,exports.getDynamicHealthToolWithCache=function(n){return t.__awaiter(void 0,void 0,void 0,(function(){return t.__generator(this,(function(t){switch(t.label){case 0:return[4,e.getDataWithCache("all-health-tools",(function(){return c(n||"en-PH")}),(function(t){return!!(null==t?void 0:t.length)}),6e4)];case 1:return[2,t.sent()||[]]}}))}))},exports.getTogetherApiDomain=function(){return"https://".concat(o.isProduction?"together.":"staging-together.","hellohealthgroup.com")};
package/build/hooks.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./useTranslations-60d001df.js"),r=require("./useScrollbarSize-586f6706.js"),s=require("./useFbDataLayer-fbea3e5e.js"),a=require("./useHealthToolCache-df134cc9.js");require("react"),require("./en-PH-bc11cfc2.js"),require("./translationsContext-2d7ea471.js"),require("string-format"),require("lodash/debounce"),require("./tslib.es6-e6f346c4.js"),require("./cookieHelper-612b90fa.js"),require("./getDynamicHealthTool-2103105f.js"),require("./core-f0edff4f.js"),require("./index-bce6f562.js"),exports.useTranslations=e.useTranslations,exports.MEASURE_ELEMENT_CLASS=r.MEASURE_ELEMENT_CLASS,exports.useScrollbarSize=r.useScrollbarSize,exports.useFbDataLayer=s.useFbDataLayer,exports.useHealthToolsCache=a.useHealthToolsCache;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./useTranslations-60d001df.js"),r=require("./useScrollbarSize-586f6706.js"),s=require("./useFbDataLayer-fbea3e5e.js"),a=require("./useHealthToolCache-ae750aac.js");require("react"),require("./en-PH-bc11cfc2.js"),require("./translationsContext-2d7ea471.js"),require("string-format"),require("lodash/debounce"),require("./tslib.es6-e6f346c4.js"),require("./cookieHelper-612b90fa.js"),require("./getDynamicHealthTool-1d292d71.js"),require("./core-97cd306c.js"),require("./isProduction-32e6a55a.js"),require("./index-d28c27ca.js"),exports.useTranslations=e.useTranslations,exports.MEASURE_ELEMENT_CLASS=r.MEASURE_ELEMENT_CLASS,exports.useScrollbarSize=r.useScrollbarSize,exports.useFbDataLayer=s.useFbDataLayer,exports.useHealthToolsCache=a.useHealthToolsCache;