@hhgtech/hhg-components 1.20.63 → 1.20.65

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 (109) hide show
  1. package/build/babyGrowth.js +1 -1
  2. package/build/care.js +1 -1
  3. package/build/components/atoms/slider/index.styled.d.ts +1 -1
  4. package/build/components/mantine/carousel/index.d.ts +10 -0
  5. package/build/components/mantine/carousel/index.styled.d.ts +1 -0
  6. package/build/components/mantine/checkbox/index.d.ts +8 -0
  7. package/build/components/mantine/checkbox/index.styled.d.ts +6 -0
  8. package/build/components/mantine/helpers.d.ts +2 -0
  9. package/build/components/mantine/index.d.ts +10 -0
  10. package/build/components/mantine/radio/index.d.ts +8 -0
  11. package/build/components/mantine/radio/index.styled.d.ts +6 -0
  12. package/build/components/mantine/slider/index.d.ts +8 -0
  13. package/build/components/mantine/slider/index.styled.d.ts +3 -0
  14. package/build/components/mantine/switch/index.d.ts +7 -0
  15. package/build/components.js +1 -1
  16. package/build/constants.js +1 -1
  17. package/build/core.js +1 -1
  18. package/build/ecom.js +1 -1
  19. package/build/{translationsContext-7030adbb.js → en-PH-0dae895f.js} +1 -1
  20. package/build/esm/babyGrowth.js +1 -1
  21. package/build/esm/care.js +1 -1
  22. package/build/esm/components.js +1 -1
  23. package/build/esm/constants.js +1 -1
  24. package/build/esm/core.js +1 -1
  25. package/build/esm/ecom.js +1 -1
  26. package/build/esm/en-PH-777d3fd2.js +1 -0
  27. package/build/esm/gAssets.js +1 -1
  28. package/build/esm/getDynamicHealthTool-f43c2db2.js +1 -0
  29. package/build/esm/hooks.js +1 -1
  30. package/build/esm/i18n.js +1 -1
  31. package/build/esm/index-165a5c19.js +1 -0
  32. package/build/esm/{index-17fca505.js → index-2b1b2c87.js} +1 -1
  33. package/build/esm/index-2e5247a0.js +1 -0
  34. package/build/esm/{index-b8401631.js → index-4f138882.js} +1 -1
  35. package/build/esm/index-58ae0705.js +1 -0
  36. package/build/esm/index-8cb2b54a.js +1 -0
  37. package/build/esm/index-bf58c0e8.js +1 -0
  38. package/build/esm/index-d9efeaea.js +1 -0
  39. package/build/esm/index-ef69144a.js +1 -0
  40. package/build/esm/{index-1c51d632.js → index-f7c111b3.js} +1 -1
  41. package/build/esm/index.js +1 -1
  42. package/build/esm/{index.styled-86e27baf.js → index.styled-161c1f98.js} +1 -1
  43. package/build/esm/{index.styled-69a7dc58.js → index.styled-3d119631.js} +1 -1
  44. package/build/esm/mantine.js +1 -1
  45. package/build/esm/misc.js +1 -1
  46. package/build/esm/navigation.js +1 -1
  47. package/build/esm/navigationLayout_deprecated.js +1 -1
  48. package/build/esm/together.js +1 -1
  49. package/build/esm/translationsContext-d658f58d.js +1 -0
  50. package/build/esm/translationsProvider-f2406d80.js +1 -0
  51. package/build/esm/types-2664b417.js +1 -0
  52. package/build/esm/{types-87287859.js → types-469eed56.js} +1 -1
  53. package/build/esm/{useHealthToolCache-6668e8c3.js → useHealthToolCache-e4e2778a.js} +1 -1
  54. package/build/esm/useTranslations-6696472c.js +1 -0
  55. package/build/esm/{utils-5ed9a485.js → utils-9a457ba0.js} +1 -1
  56. package/build/gAssets.js +1 -1
  57. package/build/getDynamicHealthTool-770421bc.js +1 -0
  58. package/build/hooks.js +1 -1
  59. package/build/i18n.js +1 -1
  60. package/build/index-2e8b8275.js +1 -0
  61. package/build/{index-4321cd25.js → index-65210841.js} +1 -1
  62. package/build/index-7d330b69.js +1 -0
  63. package/build/index-9b91ee37.js +1 -0
  64. package/build/index-bce6f562.js +1 -0
  65. package/build/{index-94c126f6.js → index-bde94e0b.js} +1 -1
  66. package/build/index-c21b1491.js +1 -0
  67. package/build/index-e15ec8a9.js +1 -0
  68. package/build/index-ea5c918f.js +1 -0
  69. package/build/{index-4888aa12.js → index-fa15aaf3.js} +1 -1
  70. package/build/index.js +1 -1
  71. package/build/index.styled-343a2168.js +1 -0
  72. package/build/{index.styled-6358651d.js → index.styled-46ca912c.js} +1 -1
  73. package/build/mantine.js +1 -1
  74. package/build/misc.js +1 -1
  75. package/build/navigation.js +1 -1
  76. package/build/navigationLayout_deprecated.js +1 -1
  77. package/build/together.js +1 -1
  78. package/build/translationsContext-2d7ea471.js +1 -0
  79. package/build/translationsProvider-841985cd.js +1 -0
  80. package/build/{types-dc978cd5.js → types-a1b0d2d4.js} +1 -1
  81. package/build/types-e5719a02.js +1 -0
  82. package/build/{useHealthToolCache-8a4c6859.js → useHealthToolCache-014adcd3.js} +1 -1
  83. package/build/useTranslations-0c221726.js +1 -0
  84. package/build/{utils-6fb915bc.js → utils-c05996cf.js} +1 -1
  85. package/package.json +3 -1
  86. package/build/esm/getDynamicHealthTool-86651d3e.js +0 -1
  87. package/build/esm/index-30372921.js +0 -1
  88. package/build/esm/index-6157a8d9.js +0 -1
  89. package/build/esm/index-67527752.js +0 -1
  90. package/build/esm/index-6fcace56.js +0 -1
  91. package/build/esm/index-9dd60ba6.js +0 -1
  92. package/build/esm/index-bea7d9e6.js +0 -1
  93. package/build/esm/isProduction-6fc0946c.js +0 -1
  94. package/build/esm/translationsContext-2a7c9f4a.js +0 -1
  95. package/build/esm/translationsProvider-8d997983.js +0 -1
  96. package/build/esm/types-a6eb6de6.js +0 -1
  97. package/build/esm/useTranslations-18bb1454.js +0 -1
  98. package/build/getDynamicHealthTool-3efcfc23.js +0 -1
  99. package/build/index-21ee2304.js +0 -1
  100. package/build/index-6c15aaed.js +0 -1
  101. package/build/index-af3a78da.js +0 -1
  102. package/build/index-d28c27ca.js +0 -1
  103. package/build/index-ec492b9f.js +0 -1
  104. package/build/index-ee8e90f7.js +0 -1
  105. package/build/index.styled-bdd83972.js +0 -1
  106. package/build/isProduction-32e6a55a.js +0 -1
  107. package/build/translationsProvider-31ab1b1e.js +0 -1
  108. package/build/types-aa8ffe51.js +0 -1
  109. package/build/useTranslations-22cc11a9.js +0 -1
@@ -1 +0,0 @@
1
- import{useContext as o,useMemo as a}from"react";import{T as n,d as r}from"./translationsContext-2a7c9f4a.js";import t from"string-format";function e(){var e=o(n)||{locale:"en-PH"},s=e.values,l=e.locale;return a((function(){return{t:function(o,a){return s?s[o]?a?t(s[o]||o,a):s[o]||o:(console.warn("[useTranslations] Missing translation for key ".concat(o," and locale ").concat(l)),a?t(r[o]||o,a):r[o]||o):(console.error("[useTranslations] t method called before translation values are loaded"),o)},locale:l}}),[s,l])}export{e as u};
@@ -1 +0,0 @@
1
- "use strict";var t=require("./tslib.es6-f7929e76.js"),e=require("./core-8fcc56eb.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")}))];case 1:return[2,t.sent()||[]]}}))}))},exports.getTogetherApiDomain=function(){return"https://".concat(o.isProduction?"together.":"staging-together.","hellohealthgroup.com")};