@hhgtech/hhg-components 1.20.33 → 1.20.35
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.
- package/build/babyGrowth.js +1 -1
- package/build/care.js +1 -1
- package/build/components/atoms/babyGrowthRecord/index.d.ts +1 -0
- package/build/components/atoms/icons/FullScreen.d.ts +4 -0
- package/build/components/atoms/icons/index.d.ts +2 -0
- package/build/components/molecules/childCard/index.d.ts +5 -0
- package/build/components/organisms/navigationV2/components/molecules/navigationBar/index.styled.d.ts +1 -0
- package/build/components.js +1 -1
- package/build/core.js +1 -1
- package/build/esm/babyGrowth.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/core.js +1 -1
- package/build/esm/{index-d6d7517f.js → index-008add15.js} +1 -1
- package/build/esm/index-1b58ab03.js +1 -0
- package/build/esm/index-69ca5d78.js +1 -0
- package/build/esm/{index-54d677a7.js → index-727428e1.js} +1 -1
- package/build/esm/{index-1f599aed.js → index-7c4a4966.js} +1 -1
- package/build/esm/{index-131bebf4.js → index-8ef6e252.js} +1 -1
- package/build/esm/{index-eeded213.js → index-9194fc0e.js} +1 -1
- package/build/esm/{index-0cff8bf0.js → index-c55cd139.js} +1 -1
- package/build/esm/{index-85599e21.js → index-e32318ae.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-92e8c364.js → index.styled-2d31cc1a.js} +1 -1
- package/build/esm/{index.styled-9f4506c6.js → index.styled-c4c7e238.js} +1 -1
- package/build/esm/localizeNumberFormat-d7e81b5d.js +1 -0
- package/build/esm/navigation.js +1 -1
- package/build/esm/navigationLayout_deprecated.js +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{togetherComponentGlobalContext-99aebabc.js → togetherComponentGlobalContext-f48235f5.js} +1 -1
- package/build/esm/{types-72e5bcaa.js → types-4c01ad32.js} +1 -1
- package/build/esm/types-a160d23f.js +1 -0
- package/build/esm/useHealthToolCache-5bf5287f.js +1 -0
- package/build/{index-af569996.js → index-33e0a2b9.js} +1 -1
- package/build/{index-30e07fd7.js → index-426317de.js} +1 -1
- package/build/{index-0361370d.js → index-67bfa8bd.js} +1 -1
- package/build/{index-3ba7c609.js → index-77f4652a.js} +1 -1
- package/build/{index-8356c17d.js → index-ac28ad54.js} +1 -1
- package/build/{index-436fb19b.js → index-b42509c3.js} +1 -1
- package/build/{index-6d20f6ac.js → index-bbe22c01.js} +1 -1
- package/build/{index-c29524e9.js → index-c5ebc9e2.js} +1 -1
- package/build/{index-e15eef33.js → index-de37abbc.js} +1 -1
- package/build/index.js +1 -1
- package/build/index.styled-57ac8a10.js +1 -0
- package/build/{index.styled-4c09039d.js → index.styled-9a6a6cb0.js} +1 -1
- package/build/localizeNumberFormat-51180319.js +1 -0
- package/build/misc/localizeNumberFormat.d.ts +1 -1
- package/build/navigation.js +1 -1
- package/build/navigationLayout_deprecated.js +1 -1
- package/build/together/components/molecules/popupFrame/index.d.ts +2 -1
- package/build/together/components/molecules/popupFrame/index.styled.d.ts +5 -1
- package/build/together.js +1 -1
- package/build/{togetherComponentGlobalContext-4e633355.js → togetherComponentGlobalContext-a49cf47e.js} +1 -1
- package/build/types-3e4141be.js +1 -0
- package/build/{types-50f3c6c2.js → types-80b6e647.js} +1 -1
- package/build/useHealthToolCache-2456f283.js +1 -0
- package/package.json +1 -1
- package/build/ageGenerate-f9c10d8e.js +0 -1
- package/build/esm/ageGenerate-68676ab3.js +0 -1
- package/build/esm/index-3b1f1478.js +0 -1
- package/build/esm/index-5aa2e980.js +0 -1
- package/build/esm/localizeNumberFormat-1dee1af9.js +0 -1
- package/build/esm/types-56a126cd.js +0 -1
- package/build/index.styled-ae584a04.js +0 -1
- package/build/localizeNumberFormat-771991ba.js +0 -1
- package/build/types-dd054004.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{G as t,B as e,a as n,b as r,L as i}from"./lazyLoad-d80d3fd1.js";import{_ as o,a,b as u}from"./tslib.es6-ba283c01.js";import{useEffect as s,useState as c,useCallback as l}from"react";import{g as d}from"./cookieHelper-0e8521c3.js";import{g as f}from"./core-4aeeac34.js";import{c as v}from"./routing-9c5c342b.js";var h=Object.freeze({__proto__:null,get Gender(){return t},get BabyGrowthChartType(){return e},get BabyGrowthChartDuration(){return n},get BabyGrowthResultTab(){return r},get LOCALE(){return i}});function p(t){var e=(new TextEncoder).encode(t.trim().toLowerCase());return crypto.subtle.digest("SHA-256",e).then((function(t){return Array.from(new Uint8Array(t)).map((function(t){return t.toString(16).padStart(2,"0")})).join("")}))}var b=function(t){s((function(){var e=null;return(null==t?void 0:t.id)&&o(void 0,void 0,void 0,(function(){var n,r,i,s,c,l,f,v,h,b,m,w;return a(this,(function(g){switch(g.label){case 0:return[4,fetch("https://api.ipify.org").then((function(t){return t.text()}))];case 1:return(n=g.sent())?[3,3]:[4,fetch("https://icanhazip.com").then((function(t){return t.text()}))];case 2:n=g.sent(),g.label=3;case 3:return[4,Promise.all([t.email?p(t.email):null,t.phone?p(t.phone):null,t.birthday?p(t.birthday.split("-").join("")):null,p(t.gender?"m":"f"),t.city_name?p(t.city_name).then((function(t){return t.replace(/\s/g,"")})):null,t.name?p(t.name):null])];case 4:return r=g.sent(),i=r[0],s=r[1],c=r[2],l=r[3],f=r[4],v=r[5],h={fbc:d("_fbc")||"",fbp:d("_fbp")||"",client_ip_address:(null==n?void 0:n.replace("\n",""))||"",client_user_agent:navigator.userAgent||""},b={user_id:t.id},v&&(b.fn=v),i&&(h.em=i,b.em=i),s&&(h.ph=s,b.ph=s),c&&(h.db=c,b.db=c),l&&(h.ge=l,b.ge=l),f&&(h.ct=f,b.ct=f),null===(w=null===(m=window.localStorage)||void 0===m?void 0:m.setItem)||void 0===w||w.call(m,"fbDataLayer_userInfo",JSON.stringify(b)),window.dataLayer=window.dataLayer||[],window.dataLayer.push(u(u({},h),{event:"FB Conversion"})),function t(){return o(this,void 0,void 0,(function(){return a(this,(function(n){return window.fbq?window.fbq("trackCustom","FB Conversion",{action_source:"website",event_source_url:window.location.href,user_data:[h]}):e=setTimeout(t,2e3),[2]}))}))}(),[2]}}))})),function(){e&&clearTimeout(e)}}),[t])},m=function(t,e){var n,r;if(!t)return{};var i="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(i,"/health-tools")+(null===(r=t.link)||void 0===r?void 0:r.replace("".concat(i,"/"),"/")),subtitle:t.subtitle,title:t.title}},w=function(t){return o(void 0,void 0,void 0,(function(){var e,n,r,i,o,u,s;return a(this,(function(a){switch(a.label){case 0:return a.trys.push([0,8,,9]),"undefined"==typeof window?[3,1]:(e=window.fetch,[3,3]);case 1:return[4,require("node-fetch")];case 2:e=a.sent(),a.label=3;case 3:n="tl-PH"===t?"lang=fil":"",r=[],a.label=4;case 4:return a.trys.push([4,6,,7]),[4,e("".concat(v(t),"/wp-json/api/healthtools?ismenu=0").concat(n?"&"+n:"")).then((function(t){return t.json()}))];case 5:return i=a.sent(),r=(null===(s=null===(u=null==i?void 0:i.data)||void 0===u?void 0:u.map)||void 0===s?void 0:s.call(u,(function(e){return m(e,t)})))||[],[3,7];case 6:return a.sent(),[3,7];case 7:return[2,r];case 8:return o=a.sent(),console.error(o),[3,9];case 9:return[2]}}))}))},g=function(t){return o(void 0,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,f("all-health-tools",(function(){return w(t||"en-PH")}))];case 1:return[2,e.sent()||[]]}}))}))},y=function(t){var e=c([]),n=e[0],r=e[1];s((function(){o(void 0,void 0,void 0,(function(){var e;return a(this,(function(n){switch(n.label){case 0:return[4,g(t)];case 1:return e=n.sent(),r(e),[2]}}))}))}),[g,t]);var i=l((function(t){var e;return(null===(e=n.find((function(e){return e.template===t})))||void 0===e?void 0:e.link)||""}),[n]);return{allTools:n,getHealthToolLink:i}};export{y as a,g as b,m as f,w as g,h as i,b as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react"),t=require("./index.styled-
|
|
1
|
+
"use strict";var e=require("react"),t=require("./index.styled-57ac8a10.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=r(e);exports.Divider=function(e){var r=e.type,i=void 0===r?"solid":r,d=e.className,s=e.style;return a.default.createElement(t.StyledDivider,{style:s,className:d,"data-diver-type":i,dividerType:i})};
|