@hhgtech/hhg-components 1.19.8 → 1.19.10
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/Locale-11b51016.js +1 -0
- package/build/ageGenerate-43b59eac.js +1 -0
- package/build/babyGrowth.js +1 -0
- package/build/care.js +1 -1
- package/build/components/atoms/babyGrowthGender/index.d.ts +7 -0
- package/build/components/atoms/babyGrowthGender/index.styled.d.ts +3 -0
- package/build/components/atoms/babyGrowthLegend/index.d.ts +12 -0
- package/build/components/atoms/babyGrowthLegend/index.styled.d.ts +2 -0
- package/build/components/atoms/babyGrowthProfileRadio/index.d.ts +9 -0
- package/build/components/atoms/babyGrowthProfileRadio/index.styled.d.ts +1 -0
- package/build/components/atoms/babyGrowthRecord/index.d.ts +10 -0
- package/build/components/atoms/babyGrowthRecord/index.styled.d.ts +1 -0
- package/build/components/atoms/babyGrowthSwitch/index.d.ts +11 -0
- package/build/components/atoms/babyGrowthSwitch/index.styled.d.ts +1 -0
- package/build/components/atoms/babyGrowthTooltip/index.d.ts +12 -0
- package/build/components/atoms/babyGrowthTooltip/index.styled.d.ts +1 -0
- package/build/components/atoms/drawer/index.d.ts +5 -1
- package/build/components/atoms/icons/Boy.d.ts +4 -0
- package/build/components/atoms/icons/Calendar.d.ts +4 -0
- package/build/components/atoms/icons/GenderBoy.d.ts +4 -0
- package/build/components/atoms/icons/GenderChooseBoy.d.ts +4 -0
- package/build/components/atoms/icons/GenderChooseGirl.d.ts +4 -0
- package/build/components/atoms/icons/GenderGirl.d.ts +4 -0
- package/build/components/atoms/icons/Girl.d.ts +4 -0
- package/build/components/atoms/icons/Kebab.d.ts +4 -0
- package/build/components/atoms/icons/index.d.ts +8 -0
- package/build/components/atoms/index.d.ts +4 -0
- package/build/components/atoms/radioImageGroup/index.d.ts +16 -0
- package/build/components/atoms/radioImageGroup/index.styled.d.ts +2 -0
- package/build/components/atoms/textArea/index.d.ts +1 -0
- package/build/components/babyGrowth.d.ts +16 -0
- package/build/components/molecules/babyGrowthChooseProfileDrawer/index.d.ts +10 -0
- package/build/components/molecules/babyGrowthChooseProfileDrawer/index.styled.d.ts +2 -0
- package/build/components/molecules/childCard/index.d.ts +19 -0
- package/build/components/molecules/childCard/index.styled.d.ts +3 -0
- package/build/components/molecules/childCard/menu.d.ts +11 -0
- package/build/components/molecules/dropdownSearch/index.styled.d.ts +1 -1
- package/build/components.js +1 -1
- package/build/{theme-79e84625.js → constants-d4ec4195.js} +1 -1
- package/build/cookieHelper-612b90fa.js +1 -0
- package/build/core.d.ts +1 -2
- package/build/core.js +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/Locale-69030fff.js +1 -0
- package/build/esm/ageGenerate-6621e812.js +1 -0
- package/build/esm/babyGrowth.js +1 -0
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/{theme-d85b3a33.js → constants-17d17987.js} +1 -1
- package/build/esm/cookieHelper-0e8521c3.js +1 -0
- package/build/esm/core.js +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/index-00ab4efc.js +1 -0
- package/build/esm/index-051acf7a.js +1 -0
- package/build/esm/{index-17e56dd2.js → index-2222afbf.js} +1 -1
- package/build/esm/index-9f8cb5a8.js +1 -0
- package/build/esm/index-a1d21c9c.js +1 -0
- package/build/esm/index-a7e7ef36.js +1 -0
- package/build/esm/index-f9f7b290.js +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/index.styled-5cf1d3ff.js +1 -0
- package/build/esm/index.styled-d726d68a.js +1 -0
- package/build/esm/navigation.js +1 -1
- package/build/esm/number-126ee62e.js +1 -0
- package/build/esm/routing-93ed4dbc.js +1 -0
- package/build/esm/theme-ed3b5e70.js +1 -0
- package/build/esm/together.js +1 -1
- package/build/esm/translationsContext-e813aff9.js +1 -0
- package/build/esm/translationsProvider-30f3552d.js +1 -0
- package/build/esm/types-26e71aa2.js +1 -0
- package/build/esm/types-4dd2d020.js +1 -0
- package/build/esm/types-b1d131ee.js +1 -0
- package/build/esm/{useTranslations-f3eec98c.js → useTranslations-a2981e90.js} +1 -1
- package/build/i18n.js +1 -1
- package/build/index-4df077f8.js +1 -0
- package/build/index-5a667f53.js +1 -0
- package/build/{index-c9b9e9d1.js → index-760a2519.js} +1 -1
- package/build/{index-dbb52923.js → index-7a4c1ca3.js} +1 -1
- package/build/index-839f79f2.js +1 -0
- package/build/index-9fc3b179.js +1 -0
- package/build/index-dbdb74fc.js +1 -0
- package/build/index.d.ts +1 -2
- package/build/index.js +1 -1
- package/build/index.styled-0449d74a.js +1 -0
- package/build/index.styled-46a15e50.js +1 -0
- package/build/interfaces/types/BabyGrowth.d.ts +149 -0
- package/build/interfaces/types/Locale.d.ts +12 -0
- package/build/interfaces/{types.d.ts → types/index.d.ts} +2 -0
- package/build/misc/ageGenerate.d.ts +5 -0
- package/build/misc/index.d.ts +8 -0
- package/build/navigation.js +1 -1
- package/build/number-95704111.js +1 -0
- package/build/routing-3fb6d350.js +1 -0
- package/build/theme-da70da1e.js +1 -0
- package/build/together.js +1 -1
- package/build/translationsContext-d7c8e0a0.js +1 -0
- package/build/translationsProvider-5ccb1448.js +1 -0
- package/build/types-18cefca9.js +1 -0
- package/build/types-2cb4d8ad.js +1 -0
- package/build/types-be287c22.js +1 -0
- package/build/{useTranslations-41d2f908.js → useTranslations-e2db2b05.js} +1 -1
- package/package.json +4 -1
- package/build/cookieHelper-57954a1e.js +0 -1
- package/build/esm/cookieHelper-083bb24e.js +0 -1
- package/build/esm/index-04b83fef.js +0 -1
- package/build/esm/index-130e6504.js +0 -1
- package/build/esm/index-a6f4de82.js +0 -1
- package/build/esm/index.styled-4510c448.js +0 -1
- package/build/esm/translationsContext-b0b4655d.js +0 -1
- package/build/esm/translationsProvider-7ccc3d2b.js +0 -1
- package/build/esm/types-a9462b3e.js +0 -1
- package/build/esm/types-bb039dd3.js +0 -1
- package/build/esm/types-dd4dd7f7.js +0 -1
- package/build/esm/useFbDataLayer-58443cc1.js +0 -1
- package/build/index-3532b37c.js +0 -1
- package/build/index-568e37d3.js +0 -1
- package/build/index.styled-66508bf8.js +0 -1
- package/build/translationsContext-351bc1a7.js +0 -1
- package/build/translationsProvider-d06a3c76.js +0 -1
- package/build/types-8ced0dc3.js +0 -1
- package/build/types-ed09baa8.js +0 -1
- package/build/types-ff716cdb.js +0 -1
- package/build/useFbDataLayer-508d5450.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e,t,r,a,o;exports.Gender=void 0,(e=exports.Gender||(exports.Gender={})).Boy="boy",e.Girl="girl",exports.BabyGrowthChartType=void 0,(t=exports.BabyGrowthChartType||(exports.BabyGrowthChartType={}))[t.Weight=0]="Weight",t[t.Height=1]="Height",t[t.Head=2]="Head",t[t.BMI=3]="BMI",exports.BabyGrowthChartDuration=void 0,(r=exports.BabyGrowthChartDuration||(exports.BabyGrowthChartDuration={}))[r.Weekly=0]="Weekly",r[r.Monthly=1]="Monthly",r[r.Yearly=2]="Yearly",exports.BabyGrowthResultTab=void 0,(a=exports.BabyGrowthResultTab||(exports.BabyGrowthResultTab={}))[a.Weight=0]="Weight",a[a.Height=1]="Height",a[a.Head=2]="Head",a[a.BMI=3]="BMI",a[a.Record=4]="Record",exports.LOCALE=void 0,(o=exports.LOCALE||(exports.LOCALE={})).Vietnam="vi-VN",o.Indonesia="id-ID",o.Malaysia="ms-MY",o.Cambodia="km-KH",o.PhilippinesEnglish="en-PH",o.PhilippinesTagalog="tl-PH",o.Thailand="th-TH",o.Myanmar="my-MM",o.Taiwan="zh-TW",o.India="hi-IN";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./Locale-11b51016.js"),t=require("react"),r=require("date-fns"),n=Object.freeze({__proto__:null,get Gender(){return e.Gender},get BabyGrowthChartType(){return e.BabyGrowthChartType},get BabyGrowthChartDuration(){return e.BabyGrowthChartDuration},get BabyGrowthResultTab(){return e.BabyGrowthResultTab},get LOCALE(){return e.LOCALE}});exports.ageGenerate=function(e,t){void 0===t&&(t=new Date);var n=r.differenceInWeeks(t,e,{roundingMethod:"ceil"}),o=r.differenceInMonths(t,e);return{year:Math.floor(o/12),month:o%12,week:n}},exports.index=n,exports.useFbDataLayer=function(e){var r=t.useState(""),n=r[0],o=r[1];t.useEffect((function(){fetch("https://api.ipify.org").then((function(e){return e.text()})).then((function(e){e?o(e):fetch("https://icanhazip.com").then((function(e){return e.text()})).then((function(e){e&&o(e)}))}))}),[]),t.useEffect((function(){var t=null;return e&&n&&function r(){window.fbq?window.fbq("track","FB Conversion",{user_data:[{em:e.email||"",fn:"",ln:"",ph:e.phone||"",client_ip_address:n||""}]}):t=setTimeout(r,2e3)}(),function(){t&&clearTimeout(t)}}),[e,n])};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),n=require("./useTranslations-e2db2b05.js"),t=require("./Locale-11b51016.js"),a=require("./index-9fc3b179.js"),l=require("./index.styled-46a15e50.js"),r=require("./tslib.es6-f7929e76.js"),i=require("styled-components"),o=require("./theme-da70da1e.js"),d=require("./index-5a667f53.js"),c=require("date-fns"),s=require("lodash");require("react-range"),require("react-dom");var u=require("./useOutsideClick-528bfd6c.js");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./translationsContext-d7c8e0a0.js");var f,m,C,x,g,h,b=p(e),y=p(i),w=y.default.div(f||(f=r.__makeTemplateObject(["\n & > :not(:last-child) {\n margin-bottom: 8px;\n }\n\n .gender-selector {\n & > :not(:last-child) {\n margin-right: 16px;\n }\n\n & > div {\n width: calc(50% - 8px);\n\n "," {\n max-width: 186px;\n justify-self: left;\n }\n }\n }\n"],["\n & > :not(:last-child) {\n margin-bottom: 8px;\n }\n\n .gender-selector {\n & > :not(:last-child) {\n margin-right: 16px;\n }\n\n & > div {\n width: calc(50% - 8px);\n\n "," {\n max-width: 186px;\n justify-self: left;\n }\n }\n }\n"])),n.MediaQueries.mbUp),v=y.default(a.RadioImageGroup)(m||(m=r.__makeTemplateObject(["\n & > div > div {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-content: center;\n gap: 8px;\n padding-block: 5px;\n }\n .radio-group-item-heading {\n margin-top: 0;\n }\n"],["\n & > div > div {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-content: center;\n gap: 8px;\n padding-block: 5px;\n }\n .radio-group-item-heading {\n margin-top: 0;\n }\n"]))),E=y.default.div(C||(C=r.__makeTemplateObject(["\n display: flex;\n justify-content: center;\n gap: 16px;\n"],["\n display: flex;\n justify-content: center;\n gap: 16px;\n"]))),k=y.default.div(x||(x=r.__makeTemplateObject(["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 6px;\n .dot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n }\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 6px;\n .dot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n }\n"]))),L=y.default.div(g||(g=r.__makeTemplateObject(["\n display: flex;\n justify-content: center;\n .switch {\n border: 1px solid ",";\n padding: 6px 12px;\n font-weight: 600;\n font-size: 11px;\n &:nth-child(2n + 1) {\n border-radius: 6px 0px 0px 6px;\n border-right: none;\n }\n &:nth-child(2n) {\n border-radius: 0px 6px 6px 0px;\n border-left: none;\n }\n }\n"],["\n display: flex;\n justify-content: center;\n .switch {\n border: 1px solid ",";\n padding: 6px 12px;\n font-weight: 600;\n font-size: 11px;\n &:nth-child(2n + 1) {\n border-radius: 6px 0px 0px 6px;\n border-right: none;\n }\n &:nth-child(2n) {\n border-radius: 0px 6px 6px 0px;\n border-left: none;\n }\n }\n"])),(function(e){return e.theme.colors.neutral200}));!function(e){e[e.WHO=0]="WHO",e[e.CDC=1]="CDC"}(h||(h={}));var M,j,_,T,B,H,Z,V,z=y.default.div(M||(M=r.__makeTemplateObject(["\n /* position: absolute; */\n display: flex;\n align-items: stretch;\n justify-content: space-around;\n padding: 8px;\n gap: 14px;\n\n min-width: 145px;\n max-width: 220px;\n min-height: 50px;\n /* background: rgba(255, 255, 255, 0.75); */\n border-radius: 4px;\n /* bottom: 80px;\n right: 40px; */\n /* box-shadow: 5px 10px 10px rgba(0, 0, 0, 0.2); */\n background: rgba(255, 255, 255, 0.2);\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n backdrop-filter: blur(5px);\n -webkit-backdrop-filter: blur(5px);\n border: 1px solid rgba(255, 255, 255, 0.3);\n .risk {\n display: flex;\n align-items: center;\n padding: 4px 8px;\n background: ",";\n border-radius: 3px;\n }\n .tooltip {\n text-align: left;\n }\n"],["\n /* position: absolute; */\n display: flex;\n align-items: stretch;\n justify-content: space-around;\n padding: 8px;\n gap: 14px;\n\n min-width: 145px;\n max-width: 220px;\n min-height: 50px;\n /* background: rgba(255, 255, 255, 0.75); */\n border-radius: 4px;\n /* bottom: 80px;\n right: 40px; */\n /* box-shadow: 5px 10px 10px rgba(0, 0, 0, 0.2); */\n background: rgba(255, 255, 255, 0.2);\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n backdrop-filter: blur(5px);\n -webkit-backdrop-filter: blur(5px);\n border: 1px solid rgba(255, 255, 255, 0.3);\n .risk {\n display: flex;\n align-items: center;\n padding: 4px 8px;\n background: ",";\n border-radius: 3px;\n }\n .tooltip {\n text-align: left;\n }\n"])),(function(e){return e.theme.colors.yellow600})),G=[{name:["3rd","-3SD","97th","3SD"],color:o.theme.colors.red600},{name:["15rd","-2SD","85th","2SD"],color:o.theme.colors.yellow600},{name:["50th","0Median"],color:o.theme.colors.green600}],O={"3rd":"-3SD","15th":"-2SD","50th":"Median","85th":"2SD","97th":"3SD"},N=i.keyframes(j||(j=r.__makeTemplateObject(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"],["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),D=y.default.div(_||(_=r.__makeTemplateObject(["\n background: #ffffff;\n border: 1px solid ",";\n border-radius: 6px;\n padding: 16px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n .baby {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n .radio {\n cursor: pointer;\n position: relative;\n width: 22px;\n height: 22px;\n background: #ffffff;\n border: 2px solid ",";\n border-radius: 50%;\n transition: all "," ease-in-out;\n &.active {\n border-color: ",";\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n background-clip: content-box;\n padding: 5px;\n border-radius: 50%;\n animation: "," "," ease-in-out forwards;\n }\n }\n }\n"],["\n background: #ffffff;\n border: 1px solid ",";\n border-radius: 6px;\n padding: 16px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n .baby {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n .radio {\n cursor: pointer;\n position: relative;\n width: 22px;\n height: 22px;\n background: #ffffff;\n border: 2px solid ",";\n border-radius: 50%;\n transition: all "," ease-in-out;\n &.active {\n border-color: ",";\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n background-clip: content-box;\n padding: 5px;\n border-radius: 50%;\n animation: "," "," ease-in-out forwards;\n }\n }\n }\n"])),(function(e){return e.theme.colors.neutral100}),(function(e){return e.theme.colors.gray600}),"300ms",(function(e){return e.theme.colors.primaryBase}),(function(e){return e.theme.colors.primaryBase}),N,"300ms"),I=function(e){var n=e.profile,t=e.onChange,r=e.isActive;return b.default.createElement(D,{onClick:function(){return t(n.id)}},b.default.createElement("div",{className:"baby"},"male"===n.gender?b.default.createElement(a.Icon.Boy,{size:24}):b.default.createElement(a.Icon.Girl,{size:24}),b.default.createElement(l.Text,{size:"p2",color:o.theme.colors.gray800},n.name)),b.default.createElement("div",{className:r?"radio active":"radio"}))},q=y.default.div(T||(T=r.__makeTemplateObject(["\n position: relative;\n padding: 20px 2px;\n border-bottom: 1px solid ",";\n .time {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 16px;\n }\n .edit-button {\n margin-left: auto;\n justify-self: end;\n }\n .record {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-right: 14px;\n }\n .record-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"],["\n position: relative;\n padding: 20px 2px;\n border-bottom: 1px solid ",";\n .time {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 16px;\n }\n .edit-button {\n margin-left: auto;\n justify-self: end;\n }\n .record {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-right: 14px;\n }\n .record-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"])),(function(e){return e.theme.colors.gray100})),S=function(e,n){return e?e+" "+(n||""):"--"},A=y.default.div(B||(B=r.__makeTemplateObject(["\n /* Auto layout */\n position: relative;\n display: flex;\n align-items: flex-start;\n padding: 16px;\n gap: 16px;\n background: ",";\n border: 1px solid ",";\n border-radius: 6px;\n .information {\n display: flex;\n flex-direction: column;\n gap: 8px;\n h5:first-letter {\n text-transform: uppercase;\n }\n .detail {\n display: flex;\n gap: 16px;\n div {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n }\n }\n"],["\n /* Auto layout */\n position: relative;\n display: flex;\n align-items: flex-start;\n padding: 16px;\n gap: 16px;\n background: ",";\n border: 1px solid ",";\n border-radius: 6px;\n .information {\n display: flex;\n flex-direction: column;\n gap: 8px;\n h5:first-letter {\n text-transform: uppercase;\n }\n .detail {\n display: flex;\n gap: 16px;\n div {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n }\n }\n"])),(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.gray100})),R=y.default.div(H||(H=r.__makeTemplateObject(["\n position: absolute;\n top: 18px;\n right: 16px;\n cursor: pointer;\n"],["\n position: absolute;\n top: 18px;\n right: 16px;\n cursor: pointer;\n"]))),P=y.default(l.Menu)(Z||(Z=r.__makeTemplateObject(["\n position: absolute;\n right: 0;\n"],["\n position: absolute;\n right: 0;\n"]))),W=function(t){var a=t.name,r=t.onClose,i=t.onEdit,d=t.onSwitch,c=t.onAdd,s=t.onRemove,p=n.useTranslations().t,f=e.useRef();return u.useOutsideClick(f,r),b.default.createElement("div",{ref:f},b.default.createElement(P,{width:250},b.default.createElement(l.Menu.Item,{onClick:i,icon:b.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b.default.createElement("path",{d:"M12.7812 1.83301C12.2987 1.83301 11.8162 2.01676 11.4479 2.38509L10.6667 3.16634L13.3333 5.83301L14.1146 5.05176C14.8506 4.31576 14.8506 3.12176 14.1146 2.38509C13.7463 2.01676 13.2638 1.83301 12.7812 1.83301ZM9.66667 4.16634L2 11.833V14.4997H4.66667L12.3333 6.83301L9.66667 4.16634Z",fill:"#595959"}))},b.default.createElement(l.Text,{size:"p2",color:o.theme.colors.gray800},p("childCard.menu.edit",{name:a}))),b.default.createElement(l.Menu.Item,{onClick:d,icon:b.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b.default.createElement("path",{d:"M8 2.5C4.9478 2.5 2.4204 4.79359 2.05078 7.7513C2.03763 7.83928 2.04222 7.929 2.06428 8.01518C2.08634 8.10136 2.12542 8.18226 2.17922 8.2531C2.23303 8.32394 2.30046 8.3833 2.37756 8.42768C2.45465 8.47206 2.53985 8.50057 2.62813 8.51152C2.71642 8.52247 2.806 8.51564 2.8916 8.49143C2.9772 8.46723 3.05709 8.42614 3.12657 8.37059C3.19605 8.31503 3.2537 8.24613 3.29615 8.16795C3.33859 8.08978 3.36496 8.00389 3.3737 7.91536C3.66141 5.61307 5.61354 3.83333 8 3.83333C9.34288 3.83333 10.5434 4.39987 11.3919 5.30339L10.0977 6.59766C9.96766 6.72766 9.96766 6.93901 10.0977 7.06901C10.1623 7.13434 10.248 7.16667 10.3333 7.16667H13.3333C13.5101 7.16667 13.6797 7.09643 13.8047 6.9714C13.9298 6.84638 14 6.67681 14 6.5V3.5C14 3.41467 13.967 3.32966 13.9023 3.26432C13.7723 3.13432 13.561 3.13432 13.431 3.26432L12.3359 4.35938C11.2437 3.21415 9.7037 2.5 8 2.5ZM13.2943 8.49089C13.1292 8.48959 12.9695 8.54959 12.8461 8.65928C12.7227 8.76896 12.6444 8.92053 12.6263 9.08464C12.3386 11.3869 10.3865 13.1667 8 13.1667C6.65713 13.1667 5.45884 12.5994 4.60938 11.6953L5.90234 10.4023C6.03234 10.2723 6.03234 10.061 5.90234 9.93099C5.83768 9.86566 5.752 9.83333 5.66667 9.83333H2.66667C2.48986 9.83333 2.32029 9.90357 2.19526 10.0286C2.07024 10.1536 2 10.3232 2 10.5V13.5C2 13.5853 2.03299 13.6703 2.09766 13.7357C2.22766 13.8657 2.43901 13.8657 2.56901 13.7357L3.66536 12.6393C4.75711 13.7836 6.29696 14.5 8 14.5C11.0522 14.5 13.5796 12.2064 13.9492 9.2487C13.9622 9.1548 13.955 9.05922 13.928 8.96833C13.9011 8.87745 13.8552 8.79334 13.7932 8.72163C13.7312 8.64991 13.6546 8.59224 13.5686 8.55245C13.4826 8.51266 13.3891 8.49167 13.2943 8.49089Z",fill:"#595959"}))},b.default.createElement(l.Text,{size:"p2",color:o.theme.colors.gray800},p("childCard.menu.switch"))),b.default.createElement(l.Menu.Item,{onClick:c,icon:b.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9564 8.56545C15.7745 7.46727 14.9673 6.57273 13.9127 6.26C13.5273 5.44545 12.9818 4.73273 12.32 4.14364C11.1709 3.11818 9.65818 2.5 8 2.5C6.34182 2.5 4.82909 3.11818 3.68 4.14364C3.01091 4.73273 2.46545 5.45273 2.08727 6.26C1.03273 6.57273 0.225455 7.46 0.0436364 8.56545C0.0145455 8.71818 0 8.87818 0 9.04545C0 9.21273 0.0145455 9.37273 0.0436364 9.52545C0.225455 10.6236 1.03273 11.5182 2.08727 11.8309C2.46545 12.6382 3.01091 13.3509 3.66545 13.9327C4.81455 14.9655 6.33455 15.5909 8 15.5909C9.66545 15.5909 11.1855 14.9655 12.3418 13.9327C12.9964 13.3509 13.5418 12.6309 13.92 11.8309C14.9673 11.5182 15.7745 10.6309 15.9564 9.52545C15.9855 9.37273 16 9.21273 16 9.04545C16 8.87818 15.9855 8.71818 15.9564 8.56545ZM6.18182 7.04545C5.67974 7.04545 5.27273 7.45247 5.27273 7.95455C5.27273 8.45662 5.67974 8.86364 6.18182 8.86364C6.6839 8.86364 7.09091 8.45662 7.09091 7.95455C7.09091 7.45247 6.6839 7.04545 6.18182 7.04545ZM9.81818 7.04545C9.3161 7.04545 8.90909 7.45247 8.90909 7.95455C8.90909 8.45662 9.3161 8.86364 9.81818 8.86364C10.3203 8.86364 10.7273 8.45662 10.7273 7.95455C10.7273 7.45247 10.3203 7.04545 9.81818 7.04545ZM5.01821 10.5H10.9818C11.1128 10.5 11.2073 10.6455 11.1491 10.7691C10.5455 11.9109 9.36002 12.6818 8.00002 12.6818C6.64002 12.6818 5.45457 11.9109 4.85093 10.7691C4.78548 10.6455 4.88002 10.5 5.01821 10.5ZM12.9538 10.4875C12.9991 10.4938 13.0435 10.5 13.0909 10.5C13.8909 10.5 14.5455 9.84545 14.5455 9.04545C14.5455 8.24545 13.8909 7.59091 13.0909 7.59091C13.0435 7.59091 12.9991 7.5971 12.9538 7.60343C12.9297 7.60679 12.9053 7.6102 12.88 7.61273C12.7345 7.12545 12.5236 6.67455 12.2545 6.26C11.3455 4.87091 9.78182 3.95455 8 3.95455C6.21818 3.95455 4.65455 4.87091 3.74545 6.26C3.47636 6.67455 3.26545 7.12545 3.12 7.61273C3.09473 7.6102 3.07033 7.60679 3.0462 7.60343C3.0009 7.5971 2.95654 7.59091 2.90909 7.59091C2.10909 7.59091 1.45455 8.24545 1.45455 9.04545C1.45455 9.84545 2.10909 10.5 2.90909 10.5C2.95654 10.5 3.0009 10.4938 3.0462 10.4875C3.07033 10.4841 3.09473 10.4807 3.12 10.4782C3.26545 10.9655 3.47636 11.4164 3.74545 11.8309C4.65455 13.22 6.21818 14.1364 8 14.1364C9.78182 14.1364 11.3455 13.22 12.2545 11.8309C12.5236 11.4164 12.7345 10.9655 12.88 10.4782C12.9053 10.4807 12.9297 10.4841 12.9538 10.4875Z",fill:"#595959"}),b.default.createElement("path",{d:"M2.5 2V1C2.5 0.725 2.275 0.5 2 0.5C1.725 0.5 1.5 0.725 1.5 1V2H0.5C0.225 2 0 2.225 0 2.5C0 2.775 0.225 3 0.5 3H1.5V4C1.5 4.275 1.725 4.5 2 4.5C2.275 4.5 2.5 4.275 2.5 4V3H3.5C3.775 3 4 2.775 4 2.5C4 2.225 3.775 2 3.5 2H2.5Z",fill:"#595959"}))},b.default.createElement(l.Text,{size:"p2",color:o.theme.colors.gray800},p("childCard.menu.add"))),b.default.createElement(l.Menu.Item,{onClick:s,icon:b.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b.default.createElement("path",{d:"M6.66699 1.83301L6.00033 2.49967H3.33366C2.93366 2.49967 2.66699 2.76634 2.66699 3.16634C2.66699 3.56634 2.93366 3.83301 3.33366 3.83301H4.66699H11.3337H12.667C13.067 3.83301 13.3337 3.56634 13.3337 3.16634C13.3337 2.76634 13.067 2.49967 12.667 2.49967H10.0003L9.33366 1.83301H6.66699ZM3.33366 5.16634V13.833C3.33366 14.5663 3.93366 15.1663 4.66699 15.1663H11.3337C12.067 15.1663 12.667 14.5663 12.667 13.833V5.16634H3.33366ZM6.00033 6.49967C6.40033 6.49967 6.66699 6.76634 6.66699 7.16634V13.1663C6.66699 13.5663 6.40033 13.833 6.00033 13.833C5.60033 13.833 5.33366 13.5663 5.33366 13.1663V7.16634C5.33366 6.76634 5.60033 6.49967 6.00033 6.49967ZM10.0003 6.49967C10.4003 6.49967 10.667 6.76634 10.667 7.16634V13.1663C10.667 13.5663 10.4003 13.833 10.0003 13.833C9.60033 13.833 9.33366 13.5663 9.33366 13.1663V7.16634C9.33366 6.76634 9.60033 6.49967 10.0003 6.49967Z",fill:"#F44D2C"}))},b.default.createElement(l.Text,{size:"p2",color:o.theme.colors.red600},p("childCard.menu.remove",{name:a})))))},F=y.default(a.Drawer)(V||(V=r.__makeTemplateObject(["\n .add-profile-container {\n display: flex;\n flex-direction: column;\n gap: 24px;\n }\n .profile-container {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n .button-group {\n display: flex;\n flex-direction: column;\n gap: 8px;\n button {\n width: 100%;\n }\n }\n"],["\n .add-profile-container {\n display: flex;\n flex-direction: column;\n gap: 24px;\n }\n .profile-container {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n .button-group {\n display: flex;\n flex-direction: column;\n gap: 8px;\n button {\n width: 100%;\n }\n }\n"])));exports.BabyGrowthChooseProfileDrawer=function(t){var a=t.babyProfiles,l=t.onClose,i=t.onCreate,o=t.onAddMeasurement,c=t.open,s=r.__rest(t,["babyProfiles","onClose","onCreate","onAddMeasurement","open"]),u=e.useState(a[0].profile.id),p=u[0],f=u[1],m=n.useTranslations().t;return b.default.createElement(F,r.__assign({title:"Baby profiles",onClose:l,open:c,placement:"bottom"},s),(function(e){var n=e.internalClose;return b.default.createElement("div",{className:"add-profile-container"},b.default.createElement("div",{className:"profile-container"},a.map((function(e){return b.default.createElement(I,{key:e.profile.id,profile:e.profile,isActive:p===e.profile.id,onChange:f})}))),b.default.createElement("div",{className:"button-group"},b.default.createElement(d.Button,{onClick:function(){n(),null==i||i()},size:"lg",color:"secondary",icon:b.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b.default.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},m("babyGrowth.drawer.createBaby")),b.default.createElement(d.Button,{size:"lg",color:"primary",onClick:function(){n(),null==o||o(p)}},m("babyGrowth.drawer.addMeasurement"))))}))},exports.BabyGrowthGender=function(e){var r=e.value,i=e.onChange,o=n.useTranslations().t;return b.default.createElement(w,null,b.default.createElement(l.Text,{size:"label2",type:"bold",style:{marginBottom:"0.5rem"}},o("babyVaccineTool.selectGender")),b.default.createElement(v,{options:[{value:t.Gender.Girl,label:o("gender.female"),content:b.default.createElement(a.Icon.GenderChooseGirl,null)},{value:t.Gender.Boy,label:o("gender.male"),content:b.default.createElement(a.Icon.GenderChooseBoy,null)}],value:r,onChange:i,className:"gender-selector"}))},exports.BabyGrowthLegend=function(e){var n=e.legends,a=e.locale;return b.default.createElement(E,null,n.map((function(e,n){return b.default.createElement(k,{key:n},b.default.createElement("span",{className:"dot",style:{backgroundColor:e.color}}),b.default.createElement(l.Text,{size:"n1",color:o.theme.colors.gray800},a===t.LOCALE.Indonesia?e["z-score"]:e.text))})))},exports.BabyGrowthProfileRadio=I,exports.BabyGrowthRecord=function(e){var n=e.measurementDate,t=void 0===n?new Date:n,a=e.weight,r=e.height,i=e.head,d=e.onEdit;return b.default.createElement(q,null,b.default.createElement("div",{className:"time"},b.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b.default.createElement("path",{d:"M5.64421 0.666016C5.27621 0.666016 4.97754 0.964682 4.97754 1.33268V1.99935H4.31087C3.57754 1.99935 2.97754 2.59935 2.97754 3.33268V12.666C2.97754 13.3993 3.57754 13.9993 4.31087 13.9993H13.6442C14.3775 13.9993 14.9775 13.3993 14.9775 12.666V3.33268C14.9775 2.59935 14.3775 1.99935 13.6442 1.99935H12.9775V1.33268C12.9775 0.964682 12.6789 0.666016 12.3109 0.666016C11.9429 0.666016 11.6442 0.964682 11.6442 1.33268V1.99935H6.31087V1.33268C6.31087 0.964682 6.01221 0.666016 5.64421 0.666016ZM4.31087 5.33268H13.6442V11.9993C13.6442 12.3673 13.3455 12.666 12.9775 12.666H4.97754C4.60954 12.666 4.31087 12.3673 4.31087 11.9993V5.33268Z",fill:"#8C8C8C"})),b.default.createElement(l.Text,{size:"p3",color:o.theme.colors.gray600},c.format(t,"dd/mm/yyyy")),b.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"edit-button",onClick:d},b.default.createElement("path",{d:"M12.7721 1.33398C12.2911 1.33398 11.8102 1.51773 11.443 1.88607L10.6643 2.66732L13.3224 5.33398L14.1011 4.55273C14.8348 3.81673 14.8348 2.62273 14.1011 1.88607C13.734 1.51773 13.253 1.33398 12.7721 1.33398ZM9.66748 3.66732L2.02539 11.334V14.0007H4.68351L12.3256 6.33398L9.66748 3.66732Z",fill:"#8C8C8C"}))),b.default.createElement("div",{className:"record"},b.default.createElement("div",{className:"record-item"},b.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b.default.createElement("path",{d:"M8.44401 9.86602C8.44401 9.57146 8.68279 9.33268 8.97734 9.33268C9.2719 9.33268 9.51068 9.57146 9.51068 9.86602V11.466C9.51068 11.7606 9.2719 11.9993 8.97734 11.9993C8.68279 11.9993 8.44401 11.7606 8.44401 11.466V9.86602Z",fill:"#8C8C8C"}),b.default.createElement("path",{d:"M8.17595 3.05319C7.96767 3.26147 7.96767 3.59916 8.17595 3.80744L8.83592 4.46741C9.0442 4.67569 9.38189 4.67569 9.59017 4.46741C9.79844 4.25913 9.79844 3.92144 9.59017 3.71316L8.9302 3.05319C8.72192 2.84491 8.38423 2.84492 8.17595 3.05319Z",fill:"#8C8C8C"}),b.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.2941 3.66435C12.1261 1.98071 10.7053 0.666016 8.97738 0.666016C7.2495 0.666016 5.82868 1.9807 5.66067 3.66434L3.67054 3.86336C2.92499 3.93791 2.38724 4.61197 2.48017 5.35545L3.498 13.4981C3.5814 14.1653 4.1486 14.666 4.82104 14.666H13.1336C13.806 14.666 14.3732 14.1653 14.4567 13.4981L15.4745 5.35545C15.5674 4.61197 15.0297 3.93791 14.2841 3.86336L12.2941 3.66435ZM12.1607 4.991C11.7386 6.34768 10.473 7.33268 8.97738 7.33268C7.48176 7.33268 6.2162 6.34767 5.79403 4.99099L3.80321 5.19007L4.82104 13.3327L13.1336 13.3327L14.1514 5.19007L12.1607 4.991ZM10.9774 3.99935C10.9774 5.10392 10.0819 5.99935 8.97738 5.99935C7.87281 5.99935 6.97738 5.10392 6.97738 3.99935C6.97738 2.89478 7.87281 1.99935 8.97738 1.99935C10.0819 1.99935 10.9774 2.89478 10.9774 3.99935Z",fill:"#8C8C8C"})),b.default.createElement(l.Text,{size:"s3",color:o.theme.colors.gray800,type:"semiBold"},S(a,"kg"))),b.default.createElement("div",{className:"record-item"},b.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b.default.createElement("g",{clipPath:"url(#clip0_855_82991)"},b.default.createElement("path",{d:"M12.6055 13.9993L12.6055 1.99935C12.6055 1.26602 12.0055 0.666016 11.2721 0.666016L5.9388 0.666015C5.20547 0.666015 4.60547 1.26602 4.60547 1.99935L4.60547 13.9993C4.60547 14.7327 5.20547 15.3327 5.9388 15.3327L11.2721 15.3327C12.0055 15.3327 12.6055 14.7327 12.6055 13.9993ZM5.9388 13.9993L5.9388 1.99935L11.2721 1.99935L11.2721 3.33268L8.60547 3.33268L8.60547 4.66602L11.2721 4.66602L11.2721 5.99935L8.60547 5.99935L8.60547 7.33268L11.2721 7.33268L11.2721 8.66602L8.60547 8.66601L8.60547 9.99935L11.2721 9.99935L11.2721 11.3327L8.60547 11.3327L8.60547 12.666L11.2721 12.666L11.2721 13.9993L5.9388 13.9993Z",fill:"#8C8C8C"})),b.default.createElement("defs",null,b.default.createElement("clipPath",{id:"clip0_855_82991"},b.default.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(16.6055) rotate(90)"})))),b.default.createElement(l.Text,{size:"s3",color:o.theme.colors.gray800,type:"semiBold"},S(r,"cm"))),b.default.createElement("div",{className:"record-item"},b.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b.default.createElement("g",{clipPath:"url(#clip0_855_82994)"},b.default.createElement("path",{d:"M9.90072 7.83268C10.361 7.83268 10.734 7.45959 10.734 6.99935C10.734 6.53911 10.361 6.16602 9.90072 6.16602C9.44048 6.16602 9.06738 6.53911 9.06738 6.99935C9.06738 7.45959 9.44048 7.83268 9.90072 7.83268Z",fill:"#8C8C8C"}),b.default.createElement("path",{d:"M6.56771 7.83268C7.02795 7.83268 7.40104 7.45959 7.40104 6.99935C7.40104 6.53911 7.02795 6.16602 6.56771 6.16602C6.10747 6.16602 5.73438 6.53911 5.73438 6.99935C5.73438 7.45959 6.10747 7.83268 6.56771 7.83268Z",fill:"#8C8C8C"}),b.default.createElement("path",{d:"M15.528 7.56C15.3614 6.55333 14.6214 5.73333 13.6547 5.44667C13.3014 4.7 12.8014 4.04667 12.1947 3.50667C11.1414 2.56667 9.7547 2 8.2347 2C6.7147 2 5.32803 2.56667 4.2747 3.50667C3.66137 4.04667 3.16137 4.70667 2.8147 5.44667C1.84803 5.73333 1.10803 6.54667 0.941367 7.56C0.9147 7.7 0.901367 7.84667 0.901367 8C0.901367 8.15333 0.9147 8.3 0.941367 8.44C1.10803 9.44667 1.84803 10.2667 2.8147 10.5533C3.16137 11.2933 3.66137 11.9467 4.26137 12.48C5.3147 13.4267 6.70803 14 8.2347 14C9.76137 14 11.1547 13.4267 12.2147 12.48C12.8147 11.9467 13.3147 11.2867 13.6614 10.5533C14.6214 10.2667 15.3614 9.45333 15.528 8.44C15.5547 8.3 15.568 8.15333 15.568 8C15.568 7.84667 15.5547 7.7 15.528 7.56ZM12.9014 9.33333C12.8347 9.33333 12.7747 9.32 12.708 9.31333C12.5747 9.76 12.3814 10.1733 12.1347 10.5533C11.3014 11.8267 9.86803 12.6667 8.2347 12.6667C6.60137 12.6667 5.16803 11.8267 4.3347 10.5533C4.08803 10.1733 3.8947 9.76 3.76137 9.31333C3.6947 9.32 3.6347 9.33333 3.56803 9.33333C2.8347 9.33333 2.2347 8.73333 2.2347 8C2.2347 7.26667 2.8347 6.66667 3.56803 6.66667C3.6347 6.66667 3.6947 6.68 3.76137 6.68667C3.8947 6.24 4.08803 5.82667 4.3347 5.44667C5.16803 4.17333 6.60137 3.33333 8.2347 3.33333C9.86803 3.33333 11.3014 4.17333 12.1347 5.44667C12.3814 5.82667 12.5747 6.24 12.708 6.68667C12.7747 6.68 12.8347 6.66667 12.9014 6.66667C13.6347 6.66667 14.2347 7.26667 14.2347 8C14.2347 8.73333 13.6347 9.33333 12.9014 9.33333ZM8.2347 11.3333C9.5747 11.3333 10.728 10.5133 11.2347 9.33333H5.2347C5.74137 10.5133 6.8947 11.3333 8.2347 11.3333Z",fill:"#8C8C8C"})),b.default.createElement("defs",null,b.default.createElement("clipPath",{id:"clip0_855_82994"},b.default.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.234375)"})))),b.default.createElement(l.Text,{size:"s3",color:o.theme.colors.gray800,type:"semiBold"},S(i,"cm")))))},exports.BabyGrowthSwitch=function(e){var n=e.switchType,t=e.onTypeChange;return b.default.createElement(L,null,b.default.createElement(d.Button,{className:"switch",size:"sm",color:n===h.WHO?"primary":"ghost",onClick:function(){return t(h.WHO)}},"WHO"),b.default.createElement(d.Button,{className:"switch",size:"sm",isDisabled:!0,color:n===h.CDC?"primary":"ghost",onClick:function(){return t(h.CDC)}},"CDC"))},exports.BabyGrowthTooltip=function(n){var a=n.riskLevel,r=n.tooltips,i=n.locale,d=e.useMemo((function(){var e;return null===(e=G.find((function(e){return e.name.includes(a||"")})))||void 0===e?void 0:e.color}),[a]),c=e.useMemo((function(){return i===t.LOCALE.Indonesia?a?O[a]:"":a}),[i,a]);return b.default.createElement(z,null,b.default.createElement("div",{className:"risk",style:{backgroundColor:d}},b.default.createElement(l.Text,{size:"s3",color:o.theme.colors.white,type:"semiBold"},c)),b.default.createElement("div",{className:"tooltip"},r.map((function(e,n){return b.default.createElement(l.Text,{key:n,size:"n1",color:o.theme.colors.gray600},e)}))))},exports.ChildCard=function(r){var i=r.name,c=r.gender,u=r.age,p=r.isLoggedIn,f=void 0!==p&&p,m=r.showMenu,C=void 0!==m&&m,x=r.onEdit,g=r.onSwitch,h=r.onAdd,y=r.onRemove,w=n.useTranslations().t,v=e.useState(!1),E=v[0],k=v[1],L=e.useCallback((function(){if(u)if(u.year<1){if(0===u.month)switch(u.week){case 0:case 1:return w("childCard.age.oneWeek");default:return w("childCard.age.week",{weeks:u.week})}if(u.month>0)return w("childCard.age.months",{month:u.month})}else{if(0===u.month)return w("childCard.age.yearNoMonth",{year:u.year});if(u.month>0)return w("childCard.age.yearMonth",{year:u.year,month:u.month})}}),[u]);return b.default.createElement(A,null,b.default.createElement("div",{"data-testid":"gender"},c===t.Gender.Boy?b.default.createElement(a.Icon.Boy,{"data-testid":"boy",id:"boy"}):b.default.createElement(a.Icon.Girl,{"data-testid":"girl",id:"girl"})),b.default.createElement("div",{className:"information"},b.default.createElement(d.Heading,{tag:"h5",fontWeight:"bold",color:o.theme.colors.gray800},s.startCase(i)||w("childCard.noName")),b.default.createElement("div",{className:"detail"},b.default.createElement("div",null,c===t.Gender.Boy?b.default.createElement(a.Icon.GenderBoy,null):b.default.createElement(a.Icon.GenderGirl,null),b.default.createElement(l.Text,{size:"p3",color:o.theme.colors.gray800,style:{textTransform:"capitalize"}},c)),b.default.createElement("div",null,b.default.createElement(a.Icon.Calendar,{size:16}),u&&b.default.createElement(l.Text,{size:"p3",color:o.theme.colors.gray800},L())))),C&&f&&b.default.createElement(R,null,b.default.createElement(a.Icon.Kebab,{onClick:function(){return k((function(e){return!e}))}}),E&&b.default.createElement(W,{name:i,onClose:function(){return k(!1)},onEdit:function(){k(!1),x()},onSwitch:function(){k(!1),g()},onAdd:function(){k(!1),h()},onRemove:function(){k(!1),y()}})))};
|
package/build/care.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-be287c22.js"),r=require("./constants-ea7b35a2.js");require("./tslib.es6-f7929e76.js"),require("react"),require("./constants-d4ec4195.js"),require("./cookieHelper-612b90fa.js"),require("./useTranslations-e2db2b05.js"),require("./translationsContext-d7c8e0a0.js"),require("lodash/debounce"),require("./index.styled-46a15e50.js"),require("styled-components"),require("./theme-da70da1e.js"),require("./index-dbdb74fc.js"),require("react-range"),require("react-dom"),require("react-loading-skeleton"),require("react-id-generator"),require("lodash/shuffle"),require("./useOutsideClick-528bfd6c.js"),exports.BookingSearchBar=e.BookingSearchBar,exports.CareTypes=e.types,exports.CareConstants=r.constants;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledBabyGrowthGender: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const StyledBabyGrowthGenderOption: import("styled-components").StyledComponent<({ value, options, className, direction, onChange, isDisabled, }: import("../radioImageGroup").Props) => JSX.Element, any, {}, never>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { LOCALE } from 'interfaces/types';
|
|
3
|
+
export declare type Legend = {
|
|
4
|
+
text: string;
|
|
5
|
+
'z-score': string;
|
|
6
|
+
color: string;
|
|
7
|
+
};
|
|
8
|
+
export declare type BabyGrowthLegendProps = {
|
|
9
|
+
legends: Array<Legend>;
|
|
10
|
+
locale: LOCALE;
|
|
11
|
+
};
|
|
12
|
+
export declare const BabyGrowthLegend: ({ legends, locale, }: BabyGrowthLegendProps) => JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BabyVaccinationDetail } from 'interfaces/types';
|
|
3
|
+
export declare type BabyGrowthProfileRadioProps = {
|
|
4
|
+
profile: BabyVaccinationDetail['profile'];
|
|
5
|
+
onChange: (id: string) => void;
|
|
6
|
+
isActive: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const BabyGrowthProfileRadio: React.FC<BabyGrowthProfileRadioProps>;
|
|
9
|
+
export { BabyGrowthProfileRadio };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledBabyGrowthProfileRadio: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type BabyGrowthRecordProps = {
|
|
3
|
+
measurementDate: Date;
|
|
4
|
+
weight: number;
|
|
5
|
+
height: number;
|
|
6
|
+
head: number;
|
|
7
|
+
onEdit: VoidFunction;
|
|
8
|
+
};
|
|
9
|
+
declare const BabyGrowthRecord: React.FC<BabyGrowthRecordProps>;
|
|
10
|
+
export { BabyGrowthRecord };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledBabyGrowthRecord: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare enum BabyGrowthSwitchChart {
|
|
3
|
+
WHO = 0,
|
|
4
|
+
CDC = 1
|
|
5
|
+
}
|
|
6
|
+
export declare type BabyGrowthSwitchProps = {
|
|
7
|
+
switchType: BabyGrowthSwitchChart;
|
|
8
|
+
onTypeChange(type: BabyGrowthSwitchChart): void;
|
|
9
|
+
};
|
|
10
|
+
export declare const BabyGrowthSwitch: ({ switchType, onTypeChange, }: BabyGrowthSwitchProps) => JSX.Element;
|
|
11
|
+
export default BabyGrowthSwitch;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledBabyGrowthSwitch: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { LOCALE } from 'interfaces/types';
|
|
3
|
+
export declare type BabyGrowthTooltipProps = {
|
|
4
|
+
riskLevel: string | null;
|
|
5
|
+
tooltips: Array<string>;
|
|
6
|
+
locale: LOCALE;
|
|
7
|
+
};
|
|
8
|
+
export declare type LabelColorType = {
|
|
9
|
+
name: Array<string>;
|
|
10
|
+
color: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const BabyGrowthTooltip: React.FC<BabyGrowthTooltipProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledBabyGrowthTooltip: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
export declare type Placement = 'left' | 'right' | 'bottom' | 'top';
|
|
3
3
|
export declare type DrawerProps = {
|
|
4
4
|
title: string;
|
|
@@ -6,6 +6,10 @@ export declare type DrawerProps = {
|
|
|
6
6
|
onClose: VoidFunction;
|
|
7
7
|
placement?: Placement;
|
|
8
8
|
destroyOnClose?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
children?: ReactNode | ((params?: {
|
|
11
|
+
internalClose?: () => void;
|
|
12
|
+
}) => ReactNode);
|
|
9
13
|
};
|
|
10
14
|
declare const Drawer: React.FC<DrawerProps>;
|
|
11
15
|
export { Drawer };
|
|
@@ -10,12 +10,20 @@ export declare const Icon: {
|
|
|
10
10
|
BarChart: React.FC<IconProps>;
|
|
11
11
|
Booking: React.FC<IconProps>;
|
|
12
12
|
Bookmark: React.FC<IconProps>;
|
|
13
|
+
Boy: React.FC<IconProps>;
|
|
14
|
+
Calendar: React.FC<IconProps>;
|
|
13
15
|
Community: React.FC<IconProps>;
|
|
14
16
|
EditSpecial: React.FC<IconProps>;
|
|
15
17
|
Family: React.FC<IconProps>;
|
|
16
18
|
Font: React.FC<IconProps>;
|
|
19
|
+
GenderBoy: React.FC<IconProps>;
|
|
20
|
+
GenderChooseBoy: React.FC<IconProps>;
|
|
21
|
+
GenderChooseGirl: React.FC<IconProps>;
|
|
22
|
+
GenderGirl: React.FC<IconProps>;
|
|
23
|
+
Girl: React.FC<IconProps>;
|
|
17
24
|
Heart: React.FC<IconProps>;
|
|
18
25
|
Home: React.FC<IconProps>;
|
|
26
|
+
Kebab: React.FC<IconProps>;
|
|
19
27
|
Like: React.FC<IconProps>;
|
|
20
28
|
MyCommunity: React.FC<IconProps>;
|
|
21
29
|
PlusSpecial: React.FC<IconProps>;
|
|
@@ -33,3 +33,7 @@ export type { IconProps } from './icons';
|
|
|
33
33
|
export { Progress } from './progress';
|
|
34
34
|
export { Drawer } from './drawer';
|
|
35
35
|
export type { DrawerProps } from './drawer';
|
|
36
|
+
export { Menu } from './menu';
|
|
37
|
+
export type { MenuProps } from './menu';
|
|
38
|
+
export type { Props as RadioImageGroupProps } from './radioImageGroup';
|
|
39
|
+
export { RadioImageGroup } from './radioImageGroup';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export declare type Props = {
|
|
3
|
+
options: Array<{
|
|
4
|
+
content: ReactNode;
|
|
5
|
+
value: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
}>;
|
|
8
|
+
value?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
isDisabled?: boolean;
|
|
11
|
+
size?: 'small' | 'large';
|
|
12
|
+
direction?: 'vertical' | 'horizontal';
|
|
13
|
+
onChange?: (v: string) => void;
|
|
14
|
+
};
|
|
15
|
+
declare const RadioImageGroup: ({ value, options, className, direction, onChange, isDisabled, }: Props) => JSX.Element;
|
|
16
|
+
export { RadioImageGroup };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type { BabyGrowthGenderProps } from './atoms/babyGrowthGender';
|
|
2
|
+
export { BabyGrowthGender } from './atoms/babyGrowthGender';
|
|
3
|
+
export type { BabyGrowthLegendProps, Legend } from './atoms/babyGrowthLegend';
|
|
4
|
+
export { BabyGrowthLegend } from './atoms/babyGrowthLegend';
|
|
5
|
+
export type { BabyGrowthSwitchProps, BabyGrowthSwitchChart, } from './atoms/babyGrowthSwitch';
|
|
6
|
+
export { BabyGrowthSwitch } from './atoms/babyGrowthSwitch';
|
|
7
|
+
export type { BabyGrowthTooltipProps, LabelColorType, } from './atoms/babyGrowthTooltip';
|
|
8
|
+
export { BabyGrowthTooltip } from './atoms/babyGrowthTooltip';
|
|
9
|
+
export { BabyGrowthProfileRadio } from './atoms/babyGrowthProfileRadio';
|
|
10
|
+
export type { BabyGrowthProfileRadioProps } from './atoms/babyGrowthProfileRadio';
|
|
11
|
+
export { BabyGrowthRecord } from './atoms/babyGrowthRecord';
|
|
12
|
+
export type { BabyGrowthRecordProps } from './atoms/babyGrowthRecord';
|
|
13
|
+
export { ChildCard } from './molecules/childCard';
|
|
14
|
+
export type { ChildCardProps } from './molecules/childCard';
|
|
15
|
+
export { BabyGrowthChooseProfileDrawer } from './molecules/babyGrowthChooseProfileDrawer';
|
|
16
|
+
export type { BabyGrowthChooseProfileDrawerProps } from './molecules/babyGrowthChooseProfileDrawer';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BabyVaccinationDetail } from 'interfaces/types';
|
|
3
|
+
import { DrawerProps } from 'src/components/atoms';
|
|
4
|
+
export declare type BabyGrowthChooseProfileDrawerProps = {
|
|
5
|
+
babyProfiles: Array<BabyVaccinationDetail>;
|
|
6
|
+
onCreate: VoidFunction;
|
|
7
|
+
onAddMeasurement: (id: string) => void;
|
|
8
|
+
} & DrawerProps;
|
|
9
|
+
declare const BabyGrowthChooseProfileDrawer: React.FC<BabyGrowthChooseProfileDrawerProps>;
|
|
10
|
+
export { BabyGrowthChooseProfileDrawer };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Gender } from 'src/interfaces/types';
|
|
3
|
+
export declare type ChildCardProps = {
|
|
4
|
+
name?: string;
|
|
5
|
+
gender: Gender;
|
|
6
|
+
age?: {
|
|
7
|
+
year: number;
|
|
8
|
+
month: number;
|
|
9
|
+
week: number;
|
|
10
|
+
};
|
|
11
|
+
isLoggedIn?: boolean;
|
|
12
|
+
showMenu?: boolean;
|
|
13
|
+
onEdit: VoidFunction;
|
|
14
|
+
onSwitch: VoidFunction;
|
|
15
|
+
onAdd: VoidFunction;
|
|
16
|
+
onRemove: VoidFunction;
|
|
17
|
+
};
|
|
18
|
+
declare const ChildCard: ({ name, gender, age, isLoggedIn, showMenu, onEdit, onSwitch, onAdd, onRemove, }: ChildCardProps) => JSX.Element;
|
|
19
|
+
export { ChildCard };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const StyledChildCard: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const StyledOption: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const StyledChildCardMenu: import("styled-components").StyledComponent<import("../../atoms/menu").CompoundedComponent, any, {}, never>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type ChildCardMenuProps = {
|
|
3
|
+
name: string;
|
|
4
|
+
onClose: VoidFunction;
|
|
5
|
+
onEdit: VoidFunction;
|
|
6
|
+
onSwitch: VoidFunction;
|
|
7
|
+
onAdd: VoidFunction;
|
|
8
|
+
onRemove: VoidFunction;
|
|
9
|
+
};
|
|
10
|
+
declare const ChildCardMenu: React.FC<ChildCardMenuProps>;
|
|
11
|
+
export default ChildCardMenu;
|
|
@@ -5,4 +5,4 @@ export declare const StyledDropdownName: import("styled-components").StyledCompo
|
|
|
5
5
|
export declare const StyledDropdownList: import("styled-components").StyledComponent<"ul", any, {}, never>;
|
|
6
6
|
export declare const StyledDropdownOption: import("styled-components").StyledComponent<"li", any, {}, never>;
|
|
7
7
|
export declare const StyledIcon: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
-
export declare const StyledPureInput: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("../../atoms/pureInput/index").Props, "children" | "form" | "slot" | "style" | "title" | "pattern" | "contextMenu" | "dir" | "key" | "className" | "src" | "color" | "onClick" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "name" | "checked" | "value" | "height" | "width" | "readOnly" | "
|
|
8
|
+
export declare const StyledPureInput: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("../../atoms/pureInput/index").Props, "children" | "form" | "slot" | "style" | "title" | "pattern" | "contextMenu" | "dir" | "key" | "className" | "src" | "color" | "onClick" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "name" | "checked" | "value" | "height" | "width" | "readOnly" | "accept" | "alt" | "autoFocus" | "capture" | "crossOrigin" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "required" | "step" | keyof import("../../atoms/pureInput/index").CustomInputProps> & import("react").RefAttributes<HTMLInputElement>>, any, {}, never>;
|
package/build/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-839f79f2.js"),r=require("./index.styled-0449d74a.js"),o=require("./index-5a667f53.js"),t=require("./index-760a2519.js"),a=require("./index-4df077f8.js"),i=require("./index-dbdb74fc.js"),s=require("./index.styled-46a15e50.js"),n=require("./index-9fc3b179.js");require("react"),require("./tslib.es6-f7929e76.js"),require("./useTranslations-e2db2b05.js"),require("./translationsContext-d7c8e0a0.js"),require("react-range"),require("./theme-da70da1e.js"),require("react-id-generator"),require("date-fns"),require("react-day-picker/DayPickerInput"),require("./useScrollbarSize-586f6706.js"),require("lodash/debounce"),require("react-dom"),require("lodash"),require("./constants-ea7b35a2.js"),require("./constants-d4ec4195.js"),require("./useOutsideClick-528bfd6c.js"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./Locale-11b51016.js"),require("./number-95704111.js"),require("styled-components"),require("react-loading-skeleton"),require("./translationsProvider-5ccb1448.js"),require("./cookieHelper-612b90fa.js"),require("date-fns/locale/hi"),require("date-fns/locale/ms"),require("date-fns/locale/th"),require("./core-8fcc56eb.js"),require("smoothscroll-polyfill"),require("./routing-3fb6d350.js"),exports.Alert=e.Alert,exports.AmpNextPage=e.AmpNextPage,exports.ArticleCard=e.ArticleCard,exports.Badge=e.Badge,exports.BorderHeading=e.BorderHeading,exports.Breadcrumbs=e.Breadcrumbs,exports.Carousel=e.Carousel,exports.CategoryCard=e.CategoryCard,exports.Checkbox=e.Checkbox,exports.CheckboxGroup=e.CheckboxGroup,exports.CookieAcceptConfirm=e.CookieAcceptConfirm,exports.DatePicker=e.DatePicker,exports.DateRangePicker=e.DateRangePicker,exports.FileDropdown=e.FileDropdown,exports.FloatButtonGroup=e.FloatButtonGroup,exports.Footer=e.Footer,exports.Grid=e.Grid,exports.IconText=e.IconText,exports.Layout=e.Layout,exports.Modal=e.Modal,exports.NavigationBar=e.NavigationBar,exports.NavigationLayout=e.NavigationLayout,exports.Pagination=e.Pagination,exports.Progress=e.Progress,exports.ProgressBar=e.ProgressBar,exports.Radio=e.Radio,exports.RadioGroup=e.RadioGroup,exports.RateStars=e.RateStars,exports.SeoHead=e.SeoHead,exports.Shadow=e.Shadow,exports.SideMenu=e.index,exports.SiteWide=e.SiteWide,exports.Slider=e.Slider,exports.StatisticCard=e.StatisticCard,exports.StickySponsoredBy=e.StickySponsoredBy,exports.SurveyThankyouCard=e.SurveyThankyouCard,exports.Table=e.index$1,exports.Tabs=e.Tabs,exports.Tag=e.Tag,exports.Toggle=e.Toggle,exports.UnderlinedLink=e.UnderlinedLink,exports.Uploader=e.Uploader,exports.Avatar=r.Avatar,exports.Popup=r.Popup,exports.Button=o.Button,exports.Heading=o.Heading,exports.Divider=t.Divider,exports.Dropdown=t.Dropdown,exports.DoctorInfo=a.DoctorInfo,exports.Flag=a.Flag,exports.LanguageSwitcher=a.LanguageSwitcher,exports.MobileBottomNavigation=a.MobileBottomNavigation,exports.MobileBottomNavigationIcon=a.MobileBottomNavigationIcon,exports.NavigationLogoutPopup=a.NavigationLogoutPopup,exports.NavigationProfileButton=a.NavigationProfileButton,exports.NavigationV2=a.NavigationV2,exports.ProfilePopup=a.ProfilePopup,exports.ScrollList=a.ScrollList,exports.SurveyQuestionCard=a.SurveyQuestionCard,exports.UserProfileNavigation=a.UserProfileNavigation,exports.UserProfileNavigationHeader=a.NavHeader,exports.UserProfileNavigationStats=a.UserStats,exports.defaultTranslation=a.defaultTranslation,exports.getNavMenuContent=a.getNavMenuContent,exports.getNavMenuContentWithCache=a.getNavMenuContentWithCache,exports.Input=i.Input,exports.Container=s.Container,exports.Label=s.Label,exports.Logo=s.Logo,exports.Menu=s.Menu,exports.PureInput=s.PureInput,exports.Text=s.Text,exports.TextArea=s.TextArea,exports.TextDivider=s.TextDivider,exports.Drawer=n.Drawer,exports.Icon=n.Icon,exports.RadioImageGroup=n.RadioImageGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e,o={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com","tl-PH":"hellodoctor.com.ph"},l={"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png",PREGNANCY_WEIGHT_GAIN:"cong-cu-tinh-can-nang-khi-mang-thai",BABY_POOP:"phan-tre-so-sinh-nhu-the-nao-la-tot",VACCINATION_TOOL:"lich-tiem-chung"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png",PREGNANCY_WEIGHT_GAIN:"เครื่องคำนวณน้ำหนักตัว",BABY_POOP:"สีอุจจาระของลูก-บอกถึงส",VACCINATION_TOOL:"vaccination-tool"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png",PREGNANCY_WEIGHT_GAIN:"រង្វាស់សុខភាព/គណនាទម្ងន់ស្ត្រីពពោះ",BABY_POOP:"រង្វាស់សុខភាព/អត្ថន័យពណ៌-និងរូបរាងលាម",VACCINATION_TOOL:"រង្វាស់សុខភាព/កាលវិភាគចាក់ថ្នាំបង្កា"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-kenaikan-berat-badan-ibu-hamil",BABY_POOP:"warna-feses-bayi-normal",VACCINATION_TOOL:"jadwal-imunisasi"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png",PREGNANCY_WEIGHT_GAIN:"garbhavastha-weight-calculator",BABY_POOP:"visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-tambah-berat-badan-hamil",BABY_POOP:"kenali-najis-bayi-anda",VACCINATION_TOOL:"alat-kesihatan-vaksin"},"tl-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/fil/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool",ABOUT_US_IMAGE:"/fil/images/aboutus/PH.png"}},a={"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/tieu-chuan-cong-dong",TOGETHER:"/community"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/គោលការណ៍ណែនាំសហគមន៍",TOGETHER:"/community"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en",COMMUNITY_GUIDELINE:"/panduan-komunitas",TOGETHER:"/community"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"tl-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"}},t=["vi-VN","id-ID","en-PH","tl-PH","th-TH","ms-MY","my-MM"],E=["vi-VN","id-ID","en-PH","tl-PH"],i=["vi-VN","id-ID"],n=("undefined"!=typeof window?function(e){var o,l;return null!==(l=null===(o=null==e?void 0:e.match(/^https?:\/\/([^/?#]+)(?:[/?#]|$)/i))||void 0===o?void 0:o[1])&&void 0!==l?l:""}(null===(e=null===window||void 0===window?void 0:window.location)||void 0===e?void 0:e.href):"").split("."),I=process.env.NEXT_PUBLIC_DEPLOY_ENV?"production"===process.env.NEXT_PUBLIC_DEPLOY_ENV:n&&!("dev"===n[0]||"dev"===n[1]||"staging"===n[0]||"staging-id"===n[0]||"staging-id-hotfix"===n[0]||"localhost"===n[0].split(":")[0]||"staging"===n[1]||"fe"===n[0]||"fe-hotfix"===n[0]||"discover"===n[0]||"discover-hotfix"===n[0]),T=Object.freeze({__proto__:null,USER_GEOLOCATION_COORDINATES_COOKIE:"userGeoLocationCoordinates",domainLocales:o,LOCALE_SPECS:l,STATIC_PAGES:a,UP_BASEPATH:"user",TOGETHER_LOCALES:t,CARE_LOCALES:E,CARE_BOOKING_LOCALES:i,isProduction:I});exports.CARE_BOOKING_LOCALES=i,exports.CARE_LOCALES=E,exports.LOCALE_SPECS=l,exports.STATIC_PAGES=a,exports.TOGETHER_LOCALES=t,exports.UP_BASEPATH="user",exports.USER_GEOLOCATION_COORDINATES_COOKIE="userGeoLocationCoordinates",exports.constants=T,exports.domainLocales=o,exports.isProduction=I,exports.theme={colors:{primaryBase:"#2d87f3",primaryHover:"#2c74df",primaryActive:"#2b62cd",primaryVisited:"#5e38ba",secondaryBase:"#284a75",secondaryDark:"#1b3250",accentLight:"#b1ebf8",accentMain:"#00AECD",success:"#00b16a",error:"#f71210",gray100:"#f2f2f2",gray200:"#d9d9d9",gray300:"#bfbfbf",gray400:"#8c8c8c",gray500:"#737373",gray600:"#595959",gray800:"#262626",blue50:"#e3f2ff",blue100:"#bcdeff",blue200:"#91caff",blue300:"#65b5ff",blue400:"#45a4ff",blue500:"#2b94ff",blue600:"#2d87f3",blue700:"#2c74df",blue800:"#2b62cd",blue900:"#2743ad",alertWarning:"#fe921d",green50:"#e0f8ee",green100:"#b3eed5",green200:"#7ce2b9",green300:"#2ed69e",green400:"#00CB8A",green500:"#00C076",green600:"#00B16A",green700:"#009E5C",green800:"#008C50",green900:"#006C39",yellow50:"#fff8e2",yellow100:"#ffecb6",yellow200:"#ffe187",yellow300:"#ffd658",yellow400:"#ffc326",yellow500:"#fe921d",yellow600:"#ffb521",yellow700:"#fea21e",yellow800:"#fe921d",yellow900:"#fc7419",red50:"#fae9e8",red100:"#feccbf",red200:"#ff5331",red300:"#f44d2c",red400:"#ff6f4d",red500:"#ff5331",red600:"#f44d2c",red700:"#e64728",red800:"#d84023",red900:"#bf331b",neutral50:"#f8f9fc",neutral100:"#e4e8ec",neutral150:"#fafafa",neutral200:"#d2d6dc",neutral300:"#bfc5cc",neutral400:"#adb3bc",neutral500:"#9aa2ac",neutral600:"#87909c",neutral700:"#757f8c",neutral800:"#626d7c",teal50:"#e0f7fc",teal100:"#b1ebf8",teal200:"#7ddff3",teal300:"#44d1ec",teal400:"#00c7e6",teal500:"#00bee0",teal600:"#00aecd",teal700:"#0099b2",teal800:"#008599",teal900:"#00626c",pink50:"#fff1f6",pink100:"#fec7dc",pink200:"#fec7dc",pink300:"#fec2cf",pink400:"#fe9dc2",pink500:"#fd87b4",pink600:"#fd72a7",pink700:"#fc5d9a",pink800:"#fc488d",violet50:"#f5edff",violet100:"#e7d2f7",violet200:"#d8b7f0",violet300:"#ca9ce8",violet400:"#bb82e1",violet500:"#ad67d9",violet600:"#9e4cd1",violet700:"#9031ca",violet800:"#8116c2",indigo700:"#35639c",indigo800:"#284a75",indigo900:"#1b3250",brown50:"#faecde",brown100:"#ecd8c5",brown200:"#dec5ab",brown300:"#d0b192",brown400:"#c39d79",brown500:"#b5895f",brown600:"#a77646",brown700:"#99622c",brown800:"#8b4e13",white:"#fff"},mbColors:{pink:"#e85388",cobalt:"#2661ad",dark:"#202135",gray:"#3e3f58",midGray:"#9495a0",lightGray:"#f3f3f3",lightMint:"#f2fcf8",lightPink:"#ffeaf1",lightOrange:"#fffaeb",lightBlue:"#e0e9fc",mint:"#5ec08f",peach:"#ffaaa9",orange:"#fb8c00",ceruleanBlue:"#b6ceff",red:"#eb5757",lightRed:"#fdeeee",yellow:"#ff8a2b",green:"#f2fcf7",blue:"#4096fe",toneYellow:"#fff9eb",toneGreen:"#f2fcf7",toneBlue:"#e0e9fb",tonePink:"#ffeaf1"},sizes:{fwBold:"700",fwSemiBold:"600",fsCaption2:"13px",fsHeading1:"40px",fsHeading2:"28px",fsHeading4:"24px",fsHeading5:"18px",fsHeading6:"16px",fsParagraph3:"16px",fsParagraph4:"14px",fwRegular:"400"},zIndexes:{belowHeader:"1",zIndex100:"100",onTop:"1000"},defaultColor:""};
|
|
1
|
+
"use strict";var o,E={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com","tl-PH":"hellodoctor.com.ph"},l={"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png",PREGNANCY_WEIGHT_GAIN:"cong-cu-tinh-can-nang-khi-mang-thai",BABY_POOP:"phan-tre-so-sinh-nhu-the-nao-la-tot",VACCINATION_TOOL:"lich-tiem-chung"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png",PREGNANCY_WEIGHT_GAIN:"เครื่องคำนวณน้ำหนักตัว",BABY_POOP:"สีอุจจาระของลูก-บอกถึงส",VACCINATION_TOOL:"vaccination-tool"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png",PREGNANCY_WEIGHT_GAIN:"រង្វាស់សុខភាព/គណនាទម្ងន់ស្ត្រីពពោះ",BABY_POOP:"រង្វាស់សុខភាព/អត្ថន័យពណ៌-និងរូបរាងលាម",VACCINATION_TOOL:"រង្វាស់សុខភាព/កាលវិភាគចាក់ថ្នាំបង្កា"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-kenaikan-berat-badan-ibu-hamil",BABY_POOP:"warna-feses-bayi-normal",VACCINATION_TOOL:"jadwal-imunisasi"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png",PREGNANCY_WEIGHT_GAIN:"garbhavastha-weight-calculator",BABY_POOP:"visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-tambah-berat-badan-hamil",BABY_POOP:"kenali-najis-bayi-anda",VACCINATION_TOOL:"alat-kesihatan-vaksin"},"tl-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/fil/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool",ABOUT_US_IMAGE:"/fil/images/aboutus/PH.png"}},t={"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/tieu-chuan-cong-dong",TOGETHER:"/community"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/គោលការណ៍ណែនាំសហគមន៍",TOGETHER:"/community"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en",COMMUNITY_GUIDELINE:"/panduan-komunitas",TOGETHER:"/community"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"tl-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"}},I=["vi-VN","id-ID","en-PH","tl-PH","th-TH","ms-MY","my-MM"],i=["vi-VN","id-ID","en-PH","tl-PH"],T=["vi-VN","id-ID"],O=("undefined"!=typeof window?function(o){var E,l;return null!==(l=null===(E=null==o?void 0:o.match(/^https?:\/\/([^/?#]+)(?:[/?#]|$)/i))||void 0===E?void 0:E[1])&&void 0!==l?l:""}(null===(o=null===window||void 0===window?void 0:window.location)||void 0===o?void 0:o.href):"").split("."),a=process.env.NEXT_PUBLIC_DEPLOY_ENV?"production"===process.env.NEXT_PUBLIC_DEPLOY_ENV:O&&!("dev"===O[0]||"dev"===O[1]||"staging"===O[0]||"staging-id"===O[0]||"staging-id-hotfix"===O[0]||"localhost"===O[0].split(":")[0]||"staging"===O[1]||"fe"===O[0]||"fe-hotfix"===O[0]||"discover"===O[0]||"discover-hotfix"===O[0]),e=Object.freeze({__proto__:null,USER_GEOLOCATION_COORDINATES_COOKIE:"userGeoLocationCoordinates",domainLocales:E,LOCALE_SPECS:l,STATIC_PAGES:t,UP_BASEPATH:"user",TOGETHER_LOCALES:I,CARE_LOCALES:i,CARE_BOOKING_LOCALES:T,isProduction:a});exports.CARE_BOOKING_LOCALES=T,exports.CARE_LOCALES=i,exports.LOCALE_SPECS=l,exports.STATIC_PAGES=t,exports.TOGETHER_LOCALES=I,exports.UP_BASEPATH="user",exports.USER_GEOLOCATION_COORDINATES_COOKIE="userGeoLocationCoordinates",exports.constants=e,exports.domainLocales=E,exports.isProduction=a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.deleteCookie=function(e){"undefined"!=typeof window&&(document.cookie=e+"=; Max-Age=-99999999; path=/")},exports.getCookie=function(e){if("undefined"!=typeof window){var t="; ".concat(document.cookie).split("; ".concat(e,"="));return 2===t.length?t.pop().split(";").shift():void 0}},exports.setCookie=function(e,t,o,i){if("undefined"!=typeof window){var n="";if(o||i){var c=new Date;o?c.setTime(c.getTime()+24*o*60*60*1e3):c.setTime(c.getTime()+60*i*1e3),n="; expires="+c.toUTCString()}document.cookie=e+"="+(t||"")+n+"; path=/"}};
|
package/build/core.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export * as Types from './interfaces/types';
|
|
2
2
|
export * as Constants from './interfaces/constants';
|
|
3
|
-
export * from './misc/theme';
|
|
4
|
-
export * from './misc/utils';
|
|
5
3
|
export * from './hooks/useTranslations';
|
|
6
4
|
export * from './hooks/useScrollbarSize';
|
|
7
5
|
export * from './hooks/useFbDataLayer';
|
|
6
|
+
export * from './misc';
|
package/build/core.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./ageGenerate-43b59eac.js"),r=require("./constants-d4ec4195.js"),t=require("./useTranslations-e2db2b05.js"),o=require("./useScrollbarSize-586f6706.js"),s=require("./cookieHelper-612b90fa.js"),a=require("./number-95704111.js");require("react"),require("styled-components");var i=require("./theme-da70da1e.js"),n=require("./routing-3fb6d350.js");require("./Locale-11b51016.js"),require("date-fns"),require("./translationsContext-d7c8e0a0.js"),require("lodash/debounce"),exports.Types=e.index,exports.ageGenerate=e.ageGenerate,exports.useFbDataLayer=e.useFbDataLayer,exports.Constants=r.constants,exports.Breakpoints=t.Breakpoints,exports.MediaQueries=t.MediaQueries,exports.formatUrlWithPageParam=t.formatUrlWithPageParam,exports.getBoundariesFromMediaQueryKey=t.getBoundariesFromMediaQueryKey,exports.makeParams=t.makeParams,exports.toggleNoScroll=t.toggleNoScroll,exports.useTranslations=t.useTranslations,exports.MEASURE_ELEMENT_CLASS=o.MEASURE_ELEMENT_CLASS,exports.useScrollbarSize=o.useScrollbarSize,exports.deleteCookie=s.deleteCookie,exports.getCookie=s.getCookie,exports.setCookie=s.setCookie,exports.abbreviateNumber=a.abbreviateNumber,Object.defineProperty(exports,"lazyLoadInstance",{enumerable:!0,get:function(){return a.lazyLoadInstance}}),exports.theme=i.theme,exports.getCareApiDomain=n.getCareApiDomain,exports.getCurrentBaseUrl=n.getCurrentBaseUrl,exports.getCurrentSsoUrl=n.getCurrentSsoUrl,exports.getDiscoverApiDomain=n.getDiscoverApiDomain,exports.getTogetherApiDomain=n.getTogetherApiDomain;
|
package/build/ecom.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-18cefca9.js");require("./tslib.es6-f7929e76.js"),require("./theme-da70da1e.js"),require("./constants-d4ec4195.js"),exports.EcomApiTypes=e.apiTypes,exports.EcomConstants=e.constants,exports.EcomDataFormatter=e.index,exports.EcomDataTypes=e.dataTypes,exports.EcomTypes=e.types;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var i,a,e,n,t;!function(i){i.Boy="boy",i.Girl="girl"}(i||(i={})),function(i){i[i.Weight=0]="Weight",i[i.Height=1]="Height",i[i.Head=2]="Head",i[i.BMI=3]="BMI"}(a||(a={})),function(i){i[i.Weekly=0]="Weekly",i[i.Monthly=1]="Monthly",i[i.Yearly=2]="Yearly"}(e||(e={})),function(i){i[i.Weight=0]="Weight",i[i.Height=1]="Height",i[i.Head=2]="Head",i[i.BMI=3]="BMI",i[i.Record=4]="Record"}(n||(n={})),function(i){i.Vietnam="vi-VN",i.Indonesia="id-ID",i.Malaysia="ms-MY",i.Cambodia="km-KH",i.PhilippinesEnglish="en-PH",i.PhilippinesTagalog="tl-PH",i.Thailand="th-TH",i.Myanmar="my-MM",i.Taiwan="zh-TW",i.India="hi-IN"}(t||(t={}));export{a as B,i as G,t as L,e as a,n as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{G as t,B as e,a as n,b as r,L as o}from"./Locale-69030fff.js";import{useState as a,useEffect as i}from"react";import{differenceInWeeks as u,differenceInMonths as f}from"date-fns";var c=Object.freeze({__proto__:null,get Gender(){return t},get BabyGrowthChartType(){return e},get BabyGrowthChartDuration(){return n},get BabyGrowthResultTab(){return r},get LOCALE(){return o}}),h=function(t){var e=a(""),n=e[0],r=e[1];i((function(){fetch("https://api.ipify.org").then((function(t){return t.text()})).then((function(t){t?r(t):fetch("https://icanhazip.com").then((function(t){return t.text()})).then((function(t){t&&r(t)}))}))}),[]),i((function(){var e=null;return t&&n&&function r(){window.fbq?window.fbq("track","FB Conversion",{user_data:[{em:t.email||"",fn:"",ln:"",ph:t.phone||"",client_ip_address:n||""}]}):e=setTimeout(r,2e3)}(),function(){e&&clearTimeout(e)}}),[t,n])},s=function(t,e){void 0===e&&(e=new Date);var n=u(e,t,{roundingMethod:"ceil"}),r=f(e,t);return{year:Math.floor(r/12),month:r%12,week:n}};export{s as a,c as i,h as u};
|