@hhgtech/hhg-components 1.21.50 → 1.21.52

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.
@@ -1 +1 @@
1
- export{i as Types}from"./index-62c22dbe.js";export{i as Constants}from"./index-9dd60ba6.js";export{A as Alert,u as AmpNextPage,e as ArticleCard,B as Badge,a as BorderHeading,f as Breadcrumbs,k as Carousel,g as CategoryCard,C as Checkbox,h as CheckboxGroup,q as CookieAcceptConfirm,v as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,p as FloatButtonGroup,y as Footer,G as Grid,I as IconText,O as OvulationCardEmbed,t as PWGCardEmbed,P as Pagination,d as Progress,i as ProgressBar,R as RateStars,r as SeoHead,S as Shadow,w as ShareContainer,x as ShareDrawer,j as SideMenu,l as StatisticCard,o as SurveyThankyouCard,m as Table,n as Tabs,T as Tag,b as Toggle,s as ToolsBannerCard,U as UnderlinedLink,c as Uploader}from"./index-744c3ee9.js";export{A as Avatar,C as CardAuthor,f as DefaultComponentGlobalContextData,D as Dropdown,G as GlobalData,L as Loading,P as Popup,b as PopupDoctor,a as PopupExpert,e as PopupHospital,T as TogetherComponentGlobalContext,g as TogetherComponentGlobalContextProvider,c as TogetherConstants,d as TogetherDataTransforms,U as UserAvatar}from"./index-76d96f3f.js";export{B as Button}from"./index-c9e5ca7c.js";export{D as Divider}from"./index-95ee8202.js";export{D as DatePicker,c as DoctorInfo,F as Flag,f as LanguageSwitcher,L as Logo,M as MobileBottomNavigation,e as MobileBottomNavigationIcon,k as NavigationLogoutPopup,l as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,R as Radio,a as RadioGroup,b as ScrollList,S as Slider,d as SurveyQuestionCard,U as UserProfileNavigation,i as UserProfileNavigationHeader,j as UserProfileNavigationStats,g as getNavMenuContent,h as getNavMenuContentWithCache}from"./index-701b9872.js";export{H as Heading}from"./index-9445aae0.js";export{I as Input}from"./index-48d41d02.js";export{C as Container,L as Label,M as Menu,P as PureInput,T as Text,a as TextArea,b as TextDivider}from"./index.styled-c7779899.js";export{I as Icon,M as Modal,N as NewBabyProfileRadio,R as RadioImageGroup}from"./index-ed6f810c.js";export{D as Drawer}from"./index.styled-31358501.js";export{u as useTranslations}from"./useTranslations-4f69f5f9.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-99db33e1.js";export{u as useFbDataLayer}from"./useFbDataLayer-8dd0e5d1.js";export{u as useHealthToolsCache}from"./useHealthToolCache-74a46d69.js";export{T as TranslationsProvider,t as translationsMap}from"./translationsProvider-4ea6357a.js";export{T as TranslationsContext}from"./translationsContext-d658f58d.js";export{C as CardLink,r as CardPost,s as CardPostPopoverMore,b as CardReactions,v as CardReply,w as CardReplyPopover,f as CreateNewPostContent,g as CreatePostDescription,h as CreatePostTitle,n as ImagePreviewPopup,I as InputCommentBar,d as LabelPin,L as LabelSortPin,e as LabelSorting,x as PopoverMenu,P as PopupDanger,j as PopupFrame,m as PostContent,p as PostImagePreview,o as PostSingleImageViewPopup,l as ShareBox,S as SharePopup,q as SocialLinkPreview,k as SubmitReportForm,c as TagTopic,T as TogetherAuthConfigContext,a as TogetherAuthConfigContextProvider,t as TogetherTypes,i as TopicSelectList,u as useTogetherAuthRequiredAction}from"./types-2b05d62e.js";export{B as BookingSearchBar,t as CareTypes}from"./types-991dce31.js";export{c as CareConstants}from"./constants-a0a981fa.js";export{a as ageGenerate,c as convertLocalizedStringToNumber,l as localizeNumberFormat}from"./localizeNumberFormat-77c129ef.js";export{B as Breakpoints,M as MediaQueries,S as ScreenSizeContext,p as ScreenSizeContextProvider,h as fadeIn,i as formatUrlWithPageParam,j as getBoundariesFromMediaQueryKey,k as getPopupWrapperDom,o as getWindowSizeGroups,l as lazyLoadInstance,m as makeParams,a as slideInDown,b as slideInLeft,c as slideInRight,s as slideInUp,e as slideOutDown,f as slideOutLeft,g as slideOutRight,d as slideOutUp,n as startCase,t as toggleNoScroll}from"./screenSizeContext-f2090394.js";export{d as deleteCookie,g as getCookie,s as setCookie}from"./cookieHelper-0e8521c3.js";import"react";import"styled-components";export{t as theme}from"./theme-a50a1aa5.js";export{a as abbreviateNumber}from"./number-3cb24023.js";export{f as formatHealthTool,d as getCareApiDomain,g as getCurrentBaseUrl,a as getCurrentSsoUrl,c as getDiscoverApiDomain,e as getDynamicHealthTool,h as getDynamicHealthToolWithCache,b as getTogetherApiDomain}from"./getDynamicHealthTool-831ea86d.js";export{g as getSocialList}from"./getSocialList-e91ed860.js";export{d as defaultTranslations}from"./en-PH-b1c3ff7e.js";import"./Locale-69030fff.js";import"./isProduction-6fc0946c.js";import"./tslib.es6-dcf36680.js";import"react-id-generator";import"lodash";import"keen-slider/react";import"./gAssets.js";import"react-range";import"date-fns";import"@mantine/core";import"string-format";import"lodash/debounce";import"./useOutsideClick-6004483a.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"date-fns/locale/hi";import"date-fns/locale/ms";import"date-fns/locale/th";import"slugify";import"./core-3b861395.js";import"react-day-picker/DayPickerInput";import"react-dom";import"smoothscroll-polyfill";import"./types-f57c9932.js";import"innertext";import"react-contenteditable";import"react-loading-skeleton";import"lodash/shuffle";import"vanilla-lazyload";
1
+ export{i as Types}from"./index-62c22dbe.js";export{i as Constants}from"./index-9dd60ba6.js";export{A as Alert,u as AmpNextPage,e as ArticleCard,B as Badge,a as BorderHeading,f as Breadcrumbs,k as Carousel,g as CategoryCard,C as Checkbox,h as CheckboxGroup,q as CookieAcceptConfirm,v as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,p as FloatButtonGroup,y as Footer,G as Grid,I as IconText,O as OvulationCardEmbed,t as PWGCardEmbed,P as Pagination,d as Progress,i as ProgressBar,R as RateStars,r as SeoHead,S as Shadow,w as ShareContainer,x as ShareDrawer,j as SideMenu,l as StatisticCard,o as SurveyThankyouCard,m as Table,n as Tabs,T as Tag,b as Toggle,s as ToolsBannerCard,U as UnderlinedLink,c as Uploader}from"./index-ada51747.js";export{A as Avatar,C as CardAuthor,f as DefaultComponentGlobalContextData,D as Dropdown,G as GlobalData,L as Loading,P as Popup,b as PopupDoctor,a as PopupExpert,e as PopupHospital,T as TogetherComponentGlobalContext,g as TogetherComponentGlobalContextProvider,c as TogetherConstants,d as TogetherDataTransforms,U as UserAvatar}from"./index-aff96f34.js";export{B as Button}from"./index-c9e5ca7c.js";export{D as Divider}from"./index-95ee8202.js";export{D as DatePicker,c as DoctorInfo,F as Flag,f as LanguageSwitcher,L as Logo,M as MobileBottomNavigation,e as MobileBottomNavigationIcon,k as NavigationLogoutPopup,l as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,R as Radio,a as RadioGroup,b as ScrollList,S as Slider,d as SurveyQuestionCard,U as UserProfileNavigation,i as UserProfileNavigationHeader,j as UserProfileNavigationStats,g as getNavMenuContent,h as getNavMenuContentWithCache}from"./index-f515f979.js";export{H as Heading}from"./index-9445aae0.js";export{I as Input}from"./index-48d41d02.js";export{C as Container,L as Label,M as Menu,P as PureInput,T as Text,a as TextArea,b as TextDivider}from"./index.styled-c7779899.js";export{I as Icon,M as Modal,N as NewBabyProfileRadio,R as RadioImageGroup}from"./index-ed6f810c.js";export{D as Drawer}from"./index.styled-31358501.js";export{u as useTranslations}from"./useTranslations-4f69f5f9.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-99db33e1.js";export{u as useFbDataLayer}from"./useFbDataLayer-8dd0e5d1.js";export{u as useHealthToolsCache}from"./useHealthToolCache-74a46d69.js";export{T as TranslationsProvider,t as translationsMap}from"./translationsProvider-4ea6357a.js";export{T as TranslationsContext}from"./translationsContext-d658f58d.js";export{C as CardLink,r as CardPost,s as CardPostPopoverMore,b as CardReactions,v as CardReply,w as CardReplyPopover,f as CreateNewPostContent,g as CreatePostDescription,h as CreatePostTitle,n as ImagePreviewPopup,I as InputCommentBar,d as LabelPin,L as LabelSortPin,e as LabelSorting,x as PopoverMenu,P as PopupDanger,j as PopupFrame,m as PostContent,p as PostImagePreview,o as PostSingleImageViewPopup,l as ShareBox,S as SharePopup,q as SocialLinkPreview,k as SubmitReportForm,c as TagTopic,T as TogetherAuthConfigContext,a as TogetherAuthConfigContextProvider,t as TogetherTypes,i as TopicSelectList,u as useTogetherAuthRequiredAction}from"./types-f7e53cd8.js";export{B as BookingSearchBar,t as CareTypes}from"./types-991dce31.js";export{c as CareConstants}from"./constants-a0a981fa.js";export{a as ageGenerate,c as convertLocalizedStringToNumber,l as localizeNumberFormat}from"./localizeNumberFormat-77c129ef.js";export{B as Breakpoints,M as MediaQueries,S as ScreenSizeContext,p as ScreenSizeContextProvider,h as fadeIn,i as formatUrlWithPageParam,j as getBoundariesFromMediaQueryKey,k as getPopupWrapperDom,o as getWindowSizeGroups,l as lazyLoadInstance,m as makeParams,a as slideInDown,b as slideInLeft,c as slideInRight,s as slideInUp,e as slideOutDown,f as slideOutLeft,g as slideOutRight,d as slideOutUp,n as startCase,t as toggleNoScroll}from"./screenSizeContext-f2090394.js";export{d as deleteCookie,g as getCookie,s as setCookie}from"./cookieHelper-0e8521c3.js";import"react";import"styled-components";export{t as theme}from"./theme-a50a1aa5.js";export{a as abbreviateNumber}from"./number-3cb24023.js";export{f as formatHealthTool,d as getCareApiDomain,g as getCurrentBaseUrl,a as getCurrentSsoUrl,c as getDiscoverApiDomain,e as getDynamicHealthTool,h as getDynamicHealthToolWithCache,b as getTogetherApiDomain}from"./getDynamicHealthTool-831ea86d.js";export{g as getSocialList}from"./getSocialList-e91ed860.js";export{d as defaultTranslations}from"./en-PH-b1c3ff7e.js";import"./Locale-69030fff.js";import"./isProduction-6fc0946c.js";import"./tslib.es6-dcf36680.js";import"react-id-generator";import"lodash";import"keen-slider/react";import"./gAssets.js";import"react-range";import"date-fns";import"@mantine/core";import"string-format";import"lodash/debounce";import"./useOutsideClick-6004483a.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"date-fns/locale/hi";import"date-fns/locale/ms";import"date-fns/locale/th";import"slugify";import"./core-3b861395.js";import"react-day-picker/DayPickerInput";import"react-dom";import"smoothscroll-polyfill";import"./types-f57c9932.js";import"innertext";import"react-contenteditable";import"react-loading-skeleton";import"lodash/shuffle";import"vanilla-lazyload";
@@ -1 +1 @@
1
- import{b as e,_ as n,e as t}from"./tslib.es6-dcf36680.js";import r,{useState as a,useEffect as o}from"react";import{Autocomplete as i,Image as l,Select as s,createEmotionCache as c,FileInput as m,NumberInput as d,PasswordInput as u,TextInput as p,LoadingOverlay as h,Checkbox as f,Slider as g,Radio as v,Switch as w,MantineProvider as b}from"@mantine/core";import{CommonGAssets as y}from"./gAssets.js";import{DatePicker as Y,DateRangePicker as x}from"@mantine/dates";import k,{css as S}from"styled-components";import{useDebouncedValue as C}from"@mantine/hooks";import{L as E}from"./Locale-69030fff.js";import"date-fns";import"./screenSizeContext-f2090394.js";import{t as M}from"./theme-a50a1aa5.js";import"./index-9dd60ba6.js";import"./isProduction-6fc0946c.js";import{Carousel as D}from"@mantine/carousel";import{a4 as P}from"./index.styled-c7779899.js";import{B as z}from"./index-c9e5ca7c.js";import"react-range";import"./translationsContext-d658f58d.js";import"string-format";import"lodash/debounce";import"vanilla-lazyload";import"lodash";var j,F,I,T,B,R=function(t){var a=t.keepSearch,o=void 0!==a&&a,c=e(t,["keepSearch"]);return o?r.createElement(i,n({rightSection:r.createElement(l,{src:y.getAssetPath("chevron-down.svg"),fit:"none"}),size:"md",maxDropdownHeight:300},c)):r.createElement(s,n({rightSection:r.createElement(l,{src:y.getAssetPath("chevron-down.svg"),fit:"none"}),size:"md",maxDropdownHeight:300},c))},A=k(Y)(F||(F=t(["\n position: relative;\n ","\n"],["\n position: relative;\n ","\n"])),(function(e){return e.fullWidth&&S(j||(j=t(["\n .mantine-DatePicker-dropdown {\n min-width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n "],["\n .mantine-DatePicker-dropdown {\n min-width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n "])))})),L=k(x)(T||(T=t(["\n position: relative;\n ","\n"],["\n position: relative;\n ","\n"])),(function(e){return e.fullWidth&&S(I||(I=t(["\n .mantine-DateRangePicker-dropdown {\n min-width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n "],["\n .mantine-DateRangePicker-dropdown {\n min-width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n "])))})),W=function(e){return r.createElement(A,n({size:"md",clearable:!1,fullWidth:!0,rightSection:r.createElement(l,{src:y.getAssetPath("OutlineCalendar.svg"),width:16,height:16})},e))};W.Range=function(e){return r.createElement(L,n({size:"md",clearable:!1,fullWidth:!0,rightSection:r.createElement(l,{src:y.getAssetPath("OutlineCalendar.svg"),width:16,height:16})},e))};var H=300,N=c({key:"mantine",prepend:!1}),G=((B={})[E.Vietnam]={dateFormat:"DD/MM/YYYY",separator:","},B[E.Cambodia]={dateFormat:"DD/MM/YYYY",separator:"."},B[E.India]={dateFormat:"DD/MM/YYYY",separator:"."},B[E.Indonesia]={dateFormat:"DD/MM/YYYY",separator:","},B[E.Malaysia]={dateFormat:"DD/MM/YYYY",separator:"."},B[E.Thailand]={dateFormat:"DD/MM/YYYY",separator:"."},B[E.Taiwan]={dateFormat:"YYYY/MM/DD",separator:","},B[E.PhilippinesTagalog]={dateFormat:"MM/DD/YYYY",separator:"."},B[E.PhilippinesEnglish]={dateFormat:"MM/DD/YYYY",separator:"."},B[E.Myanmar]={dateFormat:"DD/MM/YYYY",separator:","},B),O=y.getAssetPath("EyeVisible.svg"),V=y.getAssetPath("EyeHidden.svg"),U=function(t){var i=t.value,l=t.onChange,s=e(t,["value","onChange"]),c=a(i||""),m=c[0],d=c[1],u=C(m,H)[0];return o((function(){null==l||l(u)}),[u]),o((function(){d(i)}),[i]),r.createElement(p,n({size:"md",onChange:function(e){return d(e.currentTarget.value)},value:m},s))};U.File=function(e){return r.createElement(m,n({size:"md"},e))},U.Password=function(t){var i=t.value,l=t.onChange,s=e(t,["value","onChange"]),c=a(i||""),m=c[0],d=c[1],p=C(m,H)[0];return o((function(){null==l||l(p)}),[p]),o((function(){d(i)}),[i]),r.createElement(u,n({size:"md",onChange:function(e){return d(e.currentTarget.value)},visibilityToggleIcon:function(e){var n=e.reveal,t=e.size;return n?r.createElement("img",{src:O,width:t}):r.createElement("img",{src:V,width:t})},styles:{rightSection:{pointerEvents:"initial"}},value:m},s))},U.Number=function(t){var i=t.value,l=t.onChange,s=e(t,["value","onChange"]),c=a(i||0),m=c[0],u=c[1],p=C(m,H)[0];return o((function(){null==l||l(p)}),[p]),o((function(){u(i)}),[i]),r.createElement(d,n({size:"md",stepHoldDelay:500,stepHoldInterval:function(e){return Math.max(1e3/Math.pow(e,2),25)},onChange:u,hideControls:!0,min:0,formatter:function(e){return 0===Number(e)?"":e||""},removeTrailingZeros:!0,value:m},s))};var q=function(e){return r.createElement(h,n({loaderProps:{color:M.colors.primaryBase}},e))},Z=function(t){var a=t.slidesToShow,o=void 0===a?1:a,i=t.children,l=e(t,["slidesToShow","children"]);return r.createElement(D,n({slideSize:String(Math.floor(1/o*100))+"%",containScroll:"trimSnaps"},l),i)};Z.Slide=D.Slide;var _=function(e){return r.createElement(f,n({},e))};_.Group=f.Group;var J,K,Q,X="hhgcomp-mantine-slider-slider",$=P(k(g)(J||(J=t(["\n .mantine-Slider-track {\n background-color: ",";\n }\n\n .mantine-Slider-label {\n background-color: transparent;\n color: #000;\n font-size: 14px;\n font-weight: bold;\n }\n"],["\n .mantine-Slider-track {\n background-color: ",";\n }\n\n .mantine-Slider-label {\n background-color: transparent;\n color: #000;\n font-size: 14px;\n font-weight: bold;\n }\n"])),(function(e){return e.color||e.theme.colors.primaryBase})),X),ee=k.div(K||(K=t(["\n display: flex;\n align-items: center;\n ."," {\n flex-grow: 1;\n }\n"],["\n display: flex;\n align-items: center;\n ."," {\n flex-grow: 1;\n }\n"])),X),ne=function(t){var i=t.color,l=void 0===i?M.colors.primaryBase:i,s=t.withControl,c=t.onChange,m=t.value,d=t.min,u=t.max,p=e(t,["color","withControl","onChange","value","min","max"]),h=a(m||d||0),f=h[0],g=h[1],v=C(f,H)[0];return o((function(){null==c||c(v)}),[v]),r.createElement(ee,null,s&&r.createElement(z,{type:"button",size:"sm",color:"ghost",onClick:function(){g((function(e){return d&&e===d?e:e-1}))}},r.createElement("svg",{width:"10",height:"10",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 3"},r.createElement("path",{d:"M1 1.004h8",stroke:l,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),r.createElement($,n({thumbSize:21,labelAlwaysOn:!0,radius:"xl",color:l,value:f,onChange:g,min:d,max:u},p)),s&&r.createElement(z,{type:"button",size:"sm",color:"ghost",onClick:function(){g((function(e){return u&&e===u?e:e+1}))}},r.createElement("svg",{width:"16",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},r.createElement("path",{d:"M8 4v8M4 8h8",stroke:l,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))},te=k(v)(Q||(Q=t(["\n .mantine-Radio-icon {\n color: ",";\n }\n"],["\n .mantine-Radio-icon {\n color: ",";\n }\n"])),(function(e){return e.color||M.colors.primaryBase})),re=function(e){return r.createElement(te,n({size:"sm"},e))};re.Group=v.Group;var ae,oe,ie=k(w)(ae||(ae=t(["\n .mantine-Switch-track {\n }\n"],["\n .mantine-Switch-track {\n }\n"]))),le=((oe={})[E.Vietnam]="vi",oe[E.Cambodia]="km",oe[E.India]="hi",oe[E.Indonesia]="id",oe[E.Malaysia]="ms",oe[E.Thailand]="th",oe[E.Taiwan]="zh-tw",oe[E.PhilippinesTagalog]="tl-ph",oe[E.PhilippinesEnglish]="en",oe[E.Myanmar]="my",oe),se={"&:hover":{borderColor:"".concat(M.colors.blue200),boxShadow:"0 0 2px 2px ".concat(M.colors.blue200)}},ce=function(e){return{datesLocale:le[e],dateFormat:G[e].dateFormat,fontFamily:e===E.Cambodia?"Battambang,":"Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',\n Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",components:{InputWrapper:{styles:{label:{marginBottom:"0.5rem"}}},NumberInput:{defaultProps:{decimalSeparator:G[e].separator}},Input:{styles:{input:{borderRadius:"6px",transition:"all ".concat("100ms"," ease-in-out"),"&:hover, &:focus":{borderColor:"".concat(M.colors.blue200),boxShadow:"0 0 2px 2px ".concat(M.colors.blue200)}},rightSection:{pointerEvents:"none",cursor:"default"},invalid:{color:"#000"}}},Checkbox:{styles:{input:se}},Radio:{styles:{radio:n(n({backgroundColor:"#ffffff"},se),{"&:checked":{backgroundColor:"#ffffff"}})}}}}},me=function(t){var a=t.children,i=t.locale,l=e(t,["children","locale"]);return function(e){o((function(){le[e]&&require("dayjs/locale/".concat(le[e],".js"))}),[e])}(i),r.createElement(b,n({theme:ce(i),withGlobalStyles:!0,withNormalizeCSS:!0},l),a)};export{Z as Carousel,_ as Checkbox,W as DatePicker,U as Input,q as LoadingOverlay,me as MantineProvider,re as Radio,R as Select,ne as Slider,ie as Switch,N as emotionCache,ce as getMantineThemeOverride};
1
+ import{b as e,_ as n,e as t}from"./tslib.es6-dcf36680.js";import r,{useState as a,useEffect as o}from"react";import{Autocomplete as i,Image as l,Select as s,Indicator as c,Avatar as m,createEmotionCache as d,FileInput as u,NumberInput as p,PasswordInput as h,TextInput as f,LoadingOverlay as g,Checkbox as v,Slider as w,Radio as b,Switch as y,MantineProvider as Y}from"@mantine/core";import{CommonGAssets as x}from"./gAssets.js";import{DatePicker as E,DateRangePicker as k}from"@mantine/dates";import C,{css as S}from"styled-components";import{useDebouncedValue as M}from"@mantine/hooks";import{L as D}from"./Locale-69030fff.js";import"date-fns";import"./screenSizeContext-f2090394.js";import{t as z}from"./theme-a50a1aa5.js";import"./index-9dd60ba6.js";import"./isProduction-6fc0946c.js";import{Carousel as P}from"@mantine/carousel";import{a4 as j}from"./index.styled-c7779899.js";import{B as F}from"./index-c9e5ca7c.js";import"react-range";import"./translationsContext-d658f58d.js";import"string-format";import"lodash/debounce";import"vanilla-lazyload";import"lodash";var I,T,A,B,R=function(t){var a=t.keepSearch,o=void 0!==a&&a,c=e(t,["keepSearch"]);return o?r.createElement(i,n({rightSection:r.createElement(l,{src:x.getAssetPath("chevron-down.svg"),fit:"none"}),size:"md",maxDropdownHeight:300},c)):r.createElement(s,n({rightSection:r.createElement(l,{src:x.getAssetPath("chevron-down.svg"),fit:"none"}),size:"md",maxDropdownHeight:300},c))},L=C(E)(T||(T=t(["\n position: relative;\n ","\n"],["\n position: relative;\n ","\n"])),(function(e){return e.fullWidth&&S(I||(I=t(["\n .mantine-DatePicker-dropdown {\n min-width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n "],["\n .mantine-DatePicker-dropdown {\n min-width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n "])))})),W=C(k)(B||(B=t(["\n position: relative;\n ","\n"],["\n position: relative;\n ","\n"])),(function(e){return e.fullWidth&&S(A||(A=t(["\n .mantine-DateRangePicker-dropdown {\n min-width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n "],["\n .mantine-DateRangePicker-dropdown {\n min-width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n "])))})),H=function(e){return r.createElement(L,n({size:"md",clearable:!1,fullWidth:!0,rightSection:r.createElement(l,{src:x.getAssetPath("OutlineCalendar.svg"),width:16,height:16})},e))};H.Range=function(e){return r.createElement(W,n({size:"md",clearable:!1,fullWidth:!0,rightSection:r.createElement(l,{src:x.getAssetPath("OutlineCalendar.svg"),width:16,height:16})},e))};var N,G=x.getAssetPath("avatar.jpg"),O=function(t){var a=t.withIndicator,o=void 0!==a&&a,i=t.indicatorConfig,l=void 0===i?null:i,s=t.size,d=void 0===s?56:s,u=e(t,["withIndicator","indicatorConfig","size"]),p=function(){return r.createElement(m,n({size:d,radius:"xl"},u),r.createElement("img",{src:G,width:d}))};return o?r.createElement(c,n({inline:!0,position:"bottom-end",offset:9},l,{styles:{indicator:{backgroundColor:r.isValidElement(l.label)&&"transparent"}}}),p()):p()},V=300,U=d({key:"mantine",prepend:!1}),q=((N={})[D.Vietnam]={dateFormat:"DD/MM/YYYY",separator:","},N[D.Cambodia]={dateFormat:"DD/MM/YYYY",separator:"."},N[D.India]={dateFormat:"DD/MM/YYYY",separator:"."},N[D.Indonesia]={dateFormat:"DD/MM/YYYY",separator:","},N[D.Malaysia]={dateFormat:"DD/MM/YYYY",separator:"."},N[D.Thailand]={dateFormat:"DD/MM/YYYY",separator:"."},N[D.Taiwan]={dateFormat:"YYYY/MM/DD",separator:","},N[D.PhilippinesTagalog]={dateFormat:"MM/DD/YYYY",separator:"."},N[D.PhilippinesEnglish]={dateFormat:"MM/DD/YYYY",separator:"."},N[D.Myanmar]={dateFormat:"DD/MM/YYYY",separator:","},N),Z=x.getAssetPath("EyeVisible.svg"),_=x.getAssetPath("EyeHidden.svg"),J=function(t){var i=t.value,l=t.onChange,s=e(t,["value","onChange"]),c=a(i||""),m=c[0],d=c[1],u=M(m,V)[0];return o((function(){null==l||l(u)}),[u]),o((function(){d(i)}),[i]),r.createElement(f,n({size:"md",onChange:function(e){return d(e.currentTarget.value)},value:m},s))};J.File=function(e){return r.createElement(u,n({size:"md"},e))},J.Password=function(t){var i=t.value,l=t.onChange,s=e(t,["value","onChange"]),c=a(i||""),m=c[0],d=c[1],u=M(m,V)[0];return o((function(){null==l||l(u)}),[u]),o((function(){d(i)}),[i]),r.createElement(h,n({size:"md",onChange:function(e){return d(e.currentTarget.value)},visibilityToggleIcon:function(e){var n=e.reveal,t=e.size;return n?r.createElement("img",{src:Z,width:t}):r.createElement("img",{src:_,width:t})},styles:{rightSection:{pointerEvents:"initial"}},value:m},s))},J.Number=function(t){var i=t.value,l=t.onChange,s=e(t,["value","onChange"]),c=a(i||0),m=c[0],d=c[1],u=M(m,V)[0];return o((function(){null==l||l(u)}),[u]),o((function(){d(i)}),[i]),r.createElement(p,n({size:"md",stepHoldDelay:500,stepHoldInterval:function(e){return Math.max(1e3/Math.pow(e,2),25)},onChange:d,hideControls:!0,min:0,formatter:function(e){return 0===Number(e)?"":e||""},removeTrailingZeros:!0,value:m},s))};var K=function(e){return r.createElement(g,n({loaderProps:{color:z.colors.primaryBase}},e))},Q=function(t){var a=t.slidesToShow,o=void 0===a?1:a,i=t.children,l=e(t,["slidesToShow","children"]);return r.createElement(P,n({slideSize:String(Math.floor(1/o*100))+"%",containScroll:"trimSnaps"},l),i)};Q.Slide=P.Slide;var X=function(e){return r.createElement(v,n({},e))};X.Group=v.Group;var $,ee,ne,te="hhgcomp-mantine-slider-slider",re=j(C(w)($||($=t(["\n .mantine-Slider-track {\n background-color: ",";\n }\n\n .mantine-Slider-label {\n background-color: transparent;\n color: #000;\n font-size: 14px;\n font-weight: bold;\n }\n"],["\n .mantine-Slider-track {\n background-color: ",";\n }\n\n .mantine-Slider-label {\n background-color: transparent;\n color: #000;\n font-size: 14px;\n font-weight: bold;\n }\n"])),(function(e){return e.color||e.theme.colors.primaryBase})),te),ae=C.div(ee||(ee=t(["\n display: flex;\n align-items: center;\n ."," {\n flex-grow: 1;\n }\n"],["\n display: flex;\n align-items: center;\n ."," {\n flex-grow: 1;\n }\n"])),te),oe=function(t){var i=t.color,l=void 0===i?z.colors.primaryBase:i,s=t.withControl,c=t.onChange,m=t.value,d=t.min,u=t.max,p=e(t,["color","withControl","onChange","value","min","max"]),h=a(m||d||0),f=h[0],g=h[1],v=M(f,V)[0];return o((function(){null==c||c(v)}),[v]),r.createElement(ae,null,s&&r.createElement(F,{type:"button",size:"sm",color:"ghost",onClick:function(){g((function(e){return d&&e===d?e:e-1}))}},r.createElement("svg",{width:"10",height:"10",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 3"},r.createElement("path",{d:"M1 1.004h8",stroke:l,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),r.createElement(re,n({thumbSize:21,labelAlwaysOn:!0,radius:"xl",color:l,value:f,onChange:g,min:d,max:u},p)),s&&r.createElement(F,{type:"button",size:"sm",color:"ghost",onClick:function(){g((function(e){return u&&e===u?e:e+1}))}},r.createElement("svg",{width:"16",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},r.createElement("path",{d:"M8 4v8M4 8h8",stroke:l,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))},ie=C(b)(ne||(ne=t(["\n .mantine-Radio-icon {\n color: ",";\n }\n"],["\n .mantine-Radio-icon {\n color: ",";\n }\n"])),(function(e){return e.color||z.colors.primaryBase})),le=function(e){return r.createElement(ie,n({size:"sm"},e))};le.Group=b.Group;var se,ce,me=C(y)(se||(se=t(["\n .mantine-Switch-track {\n }\n"],["\n .mantine-Switch-track {\n }\n"]))),de=((ce={})[D.Vietnam]="vi",ce[D.Cambodia]="km",ce[D.India]="hi",ce[D.Indonesia]="id",ce[D.Malaysia]="ms",ce[D.Thailand]="th",ce[D.Taiwan]="zh-tw",ce[D.PhilippinesTagalog]="tl-ph",ce[D.PhilippinesEnglish]="en",ce[D.Myanmar]="my",ce),ue={"&:hover":{borderColor:"".concat(z.colors.blue200),boxShadow:"0 0 2px 2px ".concat(z.colors.blue200)}},pe=function(e){return{datesLocale:de[e],dateFormat:q[e].dateFormat,fontFamily:e===D.Cambodia?"Battambang,":"Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',\n Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",components:{InputWrapper:{styles:{label:{marginBottom:"0.5rem"}}},NumberInput:{defaultProps:{decimalSeparator:q[e].separator}},Input:{styles:{input:{borderRadius:"6px",transition:"all ".concat("100ms"," ease-in-out"),"&:hover, &:focus":{borderColor:"".concat(z.colors.blue200),boxShadow:"0 0 2px 2px ".concat(z.colors.blue200)}},rightSection:{pointerEvents:"none",cursor:"default"},invalid:{color:"#000"}}},Checkbox:{styles:{input:ue}},Radio:{styles:{radio:n(n({backgroundColor:"#ffffff"},ue),{"&:checked":{backgroundColor:"#ffffff"}})}}}}},he=function(t){var a=t.children,i=t.locale,l=e(t,["children","locale"]);return function(e){o((function(){de[e]&&require("dayjs/locale/".concat(de[e],".js"))}),[e])}(i),r.createElement(Y,n({theme:pe(i),withGlobalStyles:!0,withNormalizeCSS:!0},l),a)};export{O as Avatar,Q as Carousel,X as Checkbox,H as DatePicker,J as Input,K as LoadingOverlay,he as MantineProvider,le as Radio,R as Select,oe as Slider,me as Switch,U as emotionCache,pe as getMantineThemeOverride};
@@ -1 +1 @@
1
- import"./tslib.es6-dcf36680.js";import"react";import"./core-3b861395.js";import"./index.styled-c7779899.js";export{N as NavigationV2,g as getNavMenuContent,h as getNavMenuContentWithCache}from"./index-701b9872.js";import"react-id-generator";import"./index-76d96f3f.js";import"date-fns";import"react-day-picker/DayPickerInput";import"lodash/debounce";import"react-dom";import"./index.styled-31358501.js";import"lodash";import"keen-slider/react";import"./gAssets.js";import"./screenSizeContext-f2090394.js";import"react-range";import"styled-components";import"./getDynamicHealthTool-831ea86d.js";import"./Locale-69030fff.js";import"@mantine/core";import"./translationsContext-d658f58d.js";import"string-format";import"./index-9dd60ba6.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./isProduction-6fc0946c.js";import"./theme-a50a1aa5.js";import"smoothscroll-polyfill";import"./index-c9e5ca7c.js";import"./index-9445aae0.js";import"./index-48d41d02.js";import"./useTranslations-4f69f5f9.js";import"./en-PH-b1c3ff7e.js";import"./types-f57c9932.js";import"./useHealthToolCache-74a46d69.js";import"./constants-a0a981fa.js";import"./cookieHelper-0e8521c3.js";import"date-fns/locale/hi";import"date-fns/locale/ms";import"date-fns/locale/th";import"slugify";import"vanilla-lazyload";
1
+ import"./tslib.es6-dcf36680.js";import"react";import"./core-3b861395.js";import"./index.styled-c7779899.js";export{N as NavigationV2,g as getNavMenuContent,h as getNavMenuContentWithCache}from"./index-f515f979.js";import"react-id-generator";import"./index-aff96f34.js";import"date-fns";import"react-day-picker/DayPickerInput";import"lodash/debounce";import"react-dom";import"./index.styled-31358501.js";import"lodash";import"keen-slider/react";import"./gAssets.js";import"./screenSizeContext-f2090394.js";import"react-range";import"styled-components";import"./getDynamicHealthTool-831ea86d.js";import"./Locale-69030fff.js";import"@mantine/core";import"./translationsContext-d658f58d.js";import"string-format";import"./index-9dd60ba6.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./isProduction-6fc0946c.js";import"./theme-a50a1aa5.js";import"smoothscroll-polyfill";import"./index-c9e5ca7c.js";import"./index-9445aae0.js";import"./index-48d41d02.js";import"./useTranslations-4f69f5f9.js";import"./en-PH-b1c3ff7e.js";import"./types-f57c9932.js";import"./useHealthToolCache-74a46d69.js";import"./constants-a0a981fa.js";import"./cookieHelper-0e8521c3.js";import"date-fns/locale/hi";import"date-fns/locale/ms";import"date-fns/locale/th";import"slugify";import"vanilla-lazyload";
@@ -1 +1 @@
1
- export{C as CardLink,r as CardPost,s as CardPostPopoverMore,b as CardReactions,v as CardReply,w as CardReplyPopover,f as CreateNewPostContent,g as CreatePostDescription,h as CreatePostTitle,n as ImagePreviewPopup,I as InputCommentBar,d as LabelPin,L as LabelSortPin,e as LabelSorting,x as PopoverMenu,P as PopupDanger,j as PopupFrame,m as PostContent,p as PostImagePreview,o as PostSingleImageViewPopup,l as ShareBox,S as SharePopup,q as SocialLinkPreview,k as SubmitReportForm,c as TagTopic,T as TogetherAuthConfigContext,a as TogetherAuthConfigContextProvider,t as TogetherTypes,i as TopicSelectList,u as useTogetherAuthRequiredAction}from"./types-2b05d62e.js";export{C as CardAuthor,f as DefaultComponentGlobalContextData,G as GlobalData,L as Loading,b as PopupDoctor,a as PopupExpert,e as PopupHospital,T as TogetherComponentGlobalContext,g as TogetherComponentGlobalContextProvider,c as TogetherConstants,d as TogetherDataTransforms,U as UserAvatar}from"./index-76d96f3f.js";import"react";import"./index.styled-c7779899.js";import"./tslib.es6-dcf36680.js";import"styled-components";import"./theme-a50a1aa5.js";import"./screenSizeContext-f2090394.js";import"vanilla-lazyload";import"lodash";import"date-fns";import"./index-9dd60ba6.js";import"./isProduction-6fc0946c.js";import"./Locale-69030fff.js";import"./gAssets.js";import"./translationsContext-d658f58d.js";import"string-format";import"./index-c9e5ca7c.js";import"./useTranslations-4f69f5f9.js";import"./en-PH-b1c3ff7e.js";import"innertext";import"react-range";import"@mantine/core";import"lodash/debounce";import"./index-48d41d02.js";import"react-contenteditable";import"./index-9445aae0.js";import"./cookieHelper-0e8521c3.js";import"./index-95ee8202.js";import"react-dom";import"date-fns/locale/en-US";import"date-fns/locale/hi";import"date-fns/locale/id";import"date-fns/locale/ms";import"date-fns/locale/th";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"slugify";import"react-id-generator";
1
+ export{C as CardLink,r as CardPost,s as CardPostPopoverMore,b as CardReactions,v as CardReply,w as CardReplyPopover,f as CreateNewPostContent,g as CreatePostDescription,h as CreatePostTitle,n as ImagePreviewPopup,I as InputCommentBar,d as LabelPin,L as LabelSortPin,e as LabelSorting,x as PopoverMenu,P as PopupDanger,j as PopupFrame,m as PostContent,p as PostImagePreview,o as PostSingleImageViewPopup,l as ShareBox,S as SharePopup,q as SocialLinkPreview,k as SubmitReportForm,c as TagTopic,T as TogetherAuthConfigContext,a as TogetherAuthConfigContextProvider,t as TogetherTypes,i as TopicSelectList,u as useTogetherAuthRequiredAction}from"./types-f7e53cd8.js";export{C as CardAuthor,f as DefaultComponentGlobalContextData,G as GlobalData,L as Loading,b as PopupDoctor,a as PopupExpert,e as PopupHospital,T as TogetherComponentGlobalContext,g as TogetherComponentGlobalContextProvider,c as TogetherConstants,d as TogetherDataTransforms,U as UserAvatar}from"./index-aff96f34.js";import"react";import"./index.styled-c7779899.js";import"./tslib.es6-dcf36680.js";import"styled-components";import"./theme-a50a1aa5.js";import"./screenSizeContext-f2090394.js";import"vanilla-lazyload";import"lodash";import"date-fns";import"./index-9dd60ba6.js";import"./isProduction-6fc0946c.js";import"./Locale-69030fff.js";import"./gAssets.js";import"./translationsContext-d658f58d.js";import"string-format";import"./index-c9e5ca7c.js";import"./useTranslations-4f69f5f9.js";import"./en-PH-b1c3ff7e.js";import"innertext";import"react-range";import"@mantine/core";import"lodash/debounce";import"./index-48d41d02.js";import"react-contenteditable";import"./index-9445aae0.js";import"./cookieHelper-0e8521c3.js";import"./index-95ee8202.js";import"react-dom";import"date-fns/locale/en-US";import"date-fns/locale/hi";import"date-fns/locale/id";import"date-fns/locale/ms";import"date-fns/locale/th";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"slugify";import"react-id-generator";