@hhgtech/hhg-components 1.22.31 → 1.22.33
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/components.js +1 -1
- package/build/esm/babyGrowth.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/{index-49f531ae.js → index-27d646df.js} +1 -1
- package/build/esm/{index-03c5444a.js → index-99c3440f.js} +1 -1
- package/build/esm/{index-c1f96447.js → index-9c9eb3ce.js} +1 -1
- package/build/esm/index-bbbe135a.js +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{types-a622d3e4.js → types-8cfc7d74.js} +1 -1
- package/build/esm/useFbDataLayer-39219288.js +1 -0
- package/build/hooks.js +1 -1
- package/build/index-793a504b.js +1 -0
- package/build/{index-4a7640b0.js → index-7f1e8b1d.js} +1 -1
- package/build/{index-bd12fd05.js → index-cc4f7e3b.js} +1 -1
- package/build/{index-0878c97f.js → index-d9ed29f2.js} +1 -1
- package/build/index.js +1 -1
- package/build/navigation.js +1 -1
- package/build/together/components/molecules/socialLinkPreview/index.d.ts +2 -1
- package/build/together.js +1 -1
- package/build/{types-22697c92.js → types-59bd78a7.js} +1 -1
- package/build/useFbDataLayer-eedaa95c.js +1 -0
- package/package.json +1 -2
- package/build/esm/index-0e8a94cf.js +0 -1
- package/build/esm/useFbDataLayer-bb248530.js +0 -1
- package/build/index-9bb484b1.js +0 -1
- package/build/useFbDataLayer-900607af.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as e,e as n}from"./tslib.es6-c7fb770c.js";import{useEffect as t}from"react";import{g as r}from"./cookieHelper-8dd17c53.js";function i(e){var n=(new TextEncoder).encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",n).then((function(e){return Array.from(new Uint8Array(e)).map((function(e){return e.toString(16).padStart(2,"0")})).join("")}))}var o=function(o){t((function(){return(null==o?void 0:o.id)&&e(void 0,void 0,void 0,(function(){var e,t,a,l,c,u,s,d,f,p,m,h,b,g;return n(this,(function(n){switch(n.label){case 0:return[4,fetch("https://api.ipify.org").then((function(e){return e.text()}))];case 1:return(e=n.sent())?[3,3]:[4,fetch("https://icanhazip.com").then((function(e){return e.text()}))];case 2:e=n.sent(),n.label=3;case 3:return[4,Promise.all([o.email?i(o.email):null,o.phone?i(o.phone):null,o.birthday?i(o.birthday.split("-").join("")):null,o.gender?"m":"f",o.city_name?i(o.city_name).then((function(e){return e.replace(/\s/g,"")})):null,o.name?i(o.name):null])];case 4:return t=n.sent(),a=t[0],l=t[1],c=t[2],u=t[3],s=t[4],d=t[5],f={fbc:r("_fbc")||"",fbp:r("_fbp")||""},p={user_id:o.id},d&&(p.fn=d),a&&(f.em=a,p.em=a),l&&(f.ph=l,p.ph=l),c&&(f.db=c,p.db=c),u&&(f.ge=u,p.ge=u),s&&(f.ct=s,p.ct=s),null===(h=null===(m=window.localStorage)||void 0===m?void 0:m.setItem)||void 0===h||h.call(m,"fbDataLayer_userInfo",JSON.stringify(p)),null===(g=null===(b=window.localStorage)||void 0===b?void 0:b.setItem)||void 0===g||g.call(b,"fbClientIp",JSON.stringify({client_ip_address:(null==e?void 0:e.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),[2]}}))})),function(){}}),[o])};export{o as u};
|
package/build/hooks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./useTranslations-231429a4.js"),r=require("./useScrollbarSize-f805c30e.js"),s=require("./useFbDataLayer-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./useTranslations-231429a4.js"),r=require("./useScrollbarSize-f805c30e.js"),s=require("./useFbDataLayer-eedaa95c.js"),a=require("./useHealthToolCache-38f50452.js");require("react"),require("./translationsContext-8d6c61df.js"),require("string-format"),require("lodash/debounce"),require("./tslib.es6-0065074f.js"),require("./cookieHelper-54048238.js"),require("./getDynamicHealthTool-95168d7e.js"),require("./core-e6a29d83.js"),require("./isProduction-69fc41c0.js"),require("./routing-9b0aa164.js"),require("./index-01fbb796.js"),require("./Locale-a817e0b3.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;
|