@hhgtech/hhg-components 1.20.39 → 1.20.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/build/babyGrowth.js +1 -1
  2. package/build/care.js +1 -1
  3. package/build/components/atoms/babyGrowthChart/chartConfig.d.ts +5 -2
  4. package/build/components.js +1 -1
  5. package/build/core.js +1 -1
  6. package/build/esm/babyGrowth.js +1 -1
  7. package/build/esm/care.js +1 -1
  8. package/build/esm/components.js +1 -1
  9. package/build/esm/core.js +1 -1
  10. package/build/esm/{getSocialList-344dc326.js → getSocialList-cb857fba.js} +1 -1
  11. package/build/esm/i18n.js +1 -1
  12. package/build/esm/index-3bf7af06.js +1 -0
  13. package/build/esm/{index-d6a4f92c.js → index-488778dc.js} +1 -1
  14. package/build/esm/{index-ff49b928.js → index-5abf3144.js} +1 -1
  15. package/build/esm/{index-8227d813.js → index-8a042dcf.js} +1 -1
  16. package/build/esm/{index-0e5bd1fb.js → index-b0eba32e.js} +1 -1
  17. package/build/esm/{index-70e0d1d4.js → index-bdc8c779.js} +1 -1
  18. package/build/esm/{index-a0cf6992.js → index-dfc3dc8f.js} +1 -1
  19. package/build/esm/{index-cbc324ad.js → index-e6b4cdad.js} +1 -1
  20. package/build/esm/{index-281f3a5d.js → index-ed39f7e0.js} +1 -1
  21. package/build/esm/index.js +1 -1
  22. package/build/esm/{index.styled-687ce5d9.js → index.styled-69cca86d.js} +1 -1
  23. package/build/esm/{index.styled-4e3897dc.js → index.styled-f8bcaba1.js} +1 -1
  24. package/build/esm/{lazyLoad-b7b94ece.js → lazyLoad-9702fa7e.js} +1 -1
  25. package/build/esm/navigation.js +1 -1
  26. package/build/esm/navigationLayout_deprecated.js +1 -1
  27. package/build/esm/routing-f1bdaa22.js +1 -0
  28. package/build/esm/together.js +1 -1
  29. package/build/esm/{togetherComponentGlobalContext-f8ea64d0.js → togetherComponentGlobalContext-104fdffa.js} +1 -1
  30. package/build/esm/translationsContext-873337b8.js +1 -0
  31. package/build/esm/translationsProvider-4c0f3ed8.js +1 -0
  32. package/build/esm/{types-6ec4b7c7.js → types-085b551a.js} +1 -1
  33. package/build/esm/{types-7130a456.js → types-fd89a516.js} +1 -1
  34. package/build/esm/{useHealthToolCache-b3b12adf.js → useHealthToolCache-52e24c31.js} +1 -1
  35. package/build/{getSocialList-65bb0345.js → getSocialList-6ea0d58d.js} +1 -1
  36. package/build/i18n.js +1 -1
  37. package/build/{index-ed98d3ac.js → index-23a0055b.js} +1 -1
  38. package/build/{index-078e0692.js → index-267359a8.js} +1 -1
  39. package/build/{index-95883fdf.js → index-26eac243.js} +1 -1
  40. package/build/{index-ba0c5199.js → index-47d10bf9.js} +1 -1
  41. package/build/{index-4f4caffc.js → index-7dad6750.js} +1 -1
  42. package/build/{index-5261d727.js → index-8ac646d5.js} +1 -1
  43. package/build/{index-b869f138.js → index-910a1963.js} +1 -1
  44. package/build/index-99b3a587.js +1 -0
  45. package/build/{index-8ba54851.js → index-e0601dd6.js} +1 -1
  46. package/build/index.js +1 -1
  47. package/build/{index.styled-9a110f10.js → index.styled-7f5e220d.js} +1 -1
  48. package/build/{index.styled-d6c94662.js → index.styled-ed8a2b2a.js} +1 -1
  49. package/build/{lazyLoad-912c7f19.js → lazyLoad-9057b459.js} +1 -1
  50. package/build/navigation.js +1 -1
  51. package/build/navigationLayout_deprecated.js +1 -1
  52. package/build/{routing-b37fabee.js → routing-cb99a6a0.js} +1 -1
  53. package/build/together.js +1 -1
  54. package/build/{togetherComponentGlobalContext-3c3921c0.js → togetherComponentGlobalContext-904cd42b.js} +1 -1
  55. package/build/translationsContext-af789c7c.js +1 -0
  56. package/build/translationsProvider-04343e8a.js +1 -0
  57. package/build/{types-aff30aac.js → types-6f225c17.js} +1 -1
  58. package/build/{types-13acee37.js → types-77d76fa7.js} +1 -1
  59. package/build/{useHealthToolCache-0bad7b9e.js → useHealthToolCache-c3e430e3.js} +1 -1
  60. package/package.json +1 -1
  61. package/build/esm/index-bd2b4f11.js +0 -1
  62. package/build/esm/routing-04007731.js +0 -1
  63. package/build/esm/translationsContext-f9a08cfc.js +0 -1
  64. package/build/esm/translationsProvider-6034aea5.js +0 -1
  65. package/build/index-b243390f.js +0 -1
  66. package/build/translationsContext-663106a3.js +0 -1
  67. package/build/translationsProvider-e65587c1.js +0 -1
@@ -1 +1 @@
1
- export{i as Types,f as formatHealthTool,g as getDynamicHealthTool,b as getDynamicHealthToolWithCache,u as useFbDataLayer,a as useHealthToolsCache}from"./useHealthToolCache-b3b12adf.js";export{B as Breakpoints,c as Constants,M as MediaQueries,i as fadeIn,j as formatUrlWithPageParam,n as getBoundariesFromMediaQueryKey,o as getPopupWrapperDom,l as lazyLoadInstance,m as makeParams,a as slideInDown,b as slideInLeft,d as slideInRight,s as slideInUp,f as slideOutDown,g as slideOutLeft,h as slideOutRight,e as slideOutUp,p as startCase,t as theme,k as toggleNoScroll,u as useTranslations}from"./lazyLoad-b7b94ece.js";export{A as Alert,t as AmpNextPage,f as ArticleCard,B as Badge,a as BorderHeading,g as Breadcrumbs,l as Carousel,h as CategoryCard,C as Checkbox,i as CheckboxGroup,r as CookieAcceptConfirm,D as DatePicker,u as DateRangePicker,F as FileDropdown,q as FloatButtonGroup,x as Footer,G as Grid,I as IconText,P as Pagination,e as Progress,j as ProgressBar,R as RateStars,s as SeoHead,S as Shadow,v as ShareContainer,w as ShareDrawer,k as SideMenu,b as Slider,m as StatisticCard,p as SurveyThankyouCard,n as Table,o as Tabs,T as Tag,c as Toggle,U as UnderlinedLink,d as Uploader}from"./index-d6a4f92c.js";export{A as Avatar,D as DefaultComponentGlobalContextData,G as GlobalData,P as Popup,T as TogetherComponentGlobalContext,a as TogetherComponentGlobalContextProvider,c as TogetherConstants}from"./togetherComponentGlobalContext-f8ea64d0.js";export{B as Button,H as Heading}from"./index-ff49b928.js";export{D as Divider}from"./index-bd2b4f11.js";export{D as DoctorInfo,F as Flag,L as LanguageSwitcher,M as MobileBottomNavigation,c as MobileBottomNavigationIcon,e as NavigationLogoutPopup,f as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,R as Radio,a as RadioGroup,S as ScrollList,b as SurveyQuestionCard,g as getNavMenuContent,d as getNavMenuContentWithCache}from"./index-281f3a5d.js";export{I as Input}from"./index-0e5bd1fb.js";export{C as Container,L as Label,a as Logo,M as Menu,P as PureInput,T as Text,b as TextArea,c as TextDivider}from"./index.styled-4e3897dc.js";export{I as Icon,M as Modal,N as NewBabyProfileRadio,R as RadioImageGroup}from"./index-8227d813.js";export{D as Drawer}from"./index.styled-687ce5d9.js";export{D as Dropdown}from"./index-70e0d1d4.js";export{U as UserProfileNavigation,N as UserProfileNavigationHeader,a as UserProfileNavigationStats}from"./index-a0cf6992.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-99db33e1.js";export{T as TranslationsProvider,t as translationsMap}from"./translationsProvider-6034aea5.js";export{T as TranslationsContext,d as defaultTranslations}from"./translationsContext-f9a08cfc.js";export{C as CardLink,q as CardPost,r as CardPostPopoverMore,b as CardReactions,s as CardReply,v 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,w as PopoverMenu,P as PopupDanger,j as PopupFrame,m as PostContent,p as PostImagePreview,o as PostSingleImageViewPopup,l as ShareBox,S as SharePopup,k as SubmitReportForm,c as TagTopic,T as TogetherAuthConfigContext,a as TogetherAuthConfigContextProvider,t as TogetherTypes,i as TopicSelectList,u as useTogetherAuthRequiredAction}from"./types-7130a456.js";export{C as CardAuthor,L as Loading,a as PopupDoctor,P as PopupExpert,b as PopupHospital,d as TogetherDataTransforms,U as UserAvatar}from"./index-cbc324ad.js";export{B as BookingSearchBar,t as CareTypes}from"./types-6ec4b7c7.js";export{c as CareConstants}from"./constants-a0a981fa.js";export{a as ageGenerate,c as convertLocalizedStringToNumber,l as localizeNumberFormat}from"./localizeNumberFormat-77c129ef.js";export{d as deleteCookie,g as getCookie,s as setCookie}from"./cookieHelper-0e8521c3.js";import"react";import"styled-components";export{a as abbreviateNumber}from"./number-3cb24023.js";export{d as getCareApiDomain,g as getCurrentBaseUrl,a as getCurrentSsoUrl,c as getDiscoverApiDomain,b as getTogetherApiDomain}from"./routing-04007731.js";export{g as getSocialList}from"./getSocialList-344dc326.js";import"./tslib.es6-38c4ccef.js";import"./core-a8118d2d.js";import"string-format";import"vanilla-lazyload";import"react-range";import"react-id-generator";import"date-fns";import"react-day-picker/DayPickerInput";import"lodash";import"keen-slider/react";import"react-dom";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"./zalo-7f0726ae.js";import"slugify";import"smoothscroll-polyfill";import"innertext";import"react-contenteditable";import"date-fns/locale/hi";import"date-fns/locale/ms";import"date-fns/locale/th";import"react-loading-skeleton";import"lodash/shuffle";
1
+ export{i as Types,f as formatHealthTool,g as getDynamicHealthTool,b as getDynamicHealthToolWithCache,u as useFbDataLayer,a as useHealthToolsCache}from"./useHealthToolCache-52e24c31.js";export{B as Breakpoints,c as Constants,M as MediaQueries,i as fadeIn,j as formatUrlWithPageParam,n as getBoundariesFromMediaQueryKey,o as getPopupWrapperDom,l as lazyLoadInstance,m as makeParams,a as slideInDown,b as slideInLeft,d as slideInRight,s as slideInUp,f as slideOutDown,g as slideOutLeft,h as slideOutRight,e as slideOutUp,p as startCase,t as theme,k as toggleNoScroll,u as useTranslations}from"./lazyLoad-9702fa7e.js";export{A as Alert,t as AmpNextPage,f as ArticleCard,B as Badge,a as BorderHeading,g as Breadcrumbs,l as Carousel,h as CategoryCard,C as Checkbox,i as CheckboxGroup,r as CookieAcceptConfirm,D as DatePicker,u as DateRangePicker,F as FileDropdown,q as FloatButtonGroup,x as Footer,G as Grid,I as IconText,P as Pagination,e as Progress,j as ProgressBar,R as RateStars,s as SeoHead,S as Shadow,v as ShareContainer,w as ShareDrawer,k as SideMenu,b as Slider,m as StatisticCard,p as SurveyThankyouCard,n as Table,o as Tabs,T as Tag,c as Toggle,U as UnderlinedLink,d as Uploader}from"./index-488778dc.js";export{A as Avatar,D as DefaultComponentGlobalContextData,G as GlobalData,P as Popup,T as TogetherComponentGlobalContext,a as TogetherComponentGlobalContextProvider,c as TogetherConstants}from"./togetherComponentGlobalContext-104fdffa.js";export{B as Button,H as Heading}from"./index-5abf3144.js";export{D as Divider}from"./index-3bf7af06.js";export{D as DoctorInfo,F as Flag,L as LanguageSwitcher,M as MobileBottomNavigation,c as MobileBottomNavigationIcon,e as NavigationLogoutPopup,f as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,R as Radio,a as RadioGroup,S as ScrollList,b as SurveyQuestionCard,g as getNavMenuContent,d as getNavMenuContentWithCache}from"./index-ed39f7e0.js";export{I as Input}from"./index-b0eba32e.js";export{C as Container,L as Label,a as Logo,M as Menu,P as PureInput,T as Text,b as TextArea,c as TextDivider}from"./index.styled-f8bcaba1.js";export{I as Icon,M as Modal,N as NewBabyProfileRadio,R as RadioImageGroup}from"./index-8a042dcf.js";export{D as Drawer}from"./index.styled-69cca86d.js";export{D as Dropdown}from"./index-bdc8c779.js";export{U as UserProfileNavigation,N as UserProfileNavigationHeader,a as UserProfileNavigationStats}from"./index-dfc3dc8f.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-99db33e1.js";export{T as TranslationsProvider,t as translationsMap}from"./translationsProvider-4c0f3ed8.js";export{T as TranslationsContext,d as defaultTranslations}from"./translationsContext-873337b8.js";export{C as CardLink,q as CardPost,r as CardPostPopoverMore,b as CardReactions,s as CardReply,v 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,w as PopoverMenu,P as PopupDanger,j as PopupFrame,m as PostContent,p as PostImagePreview,o as PostSingleImageViewPopup,l as ShareBox,S as SharePopup,k as SubmitReportForm,c as TagTopic,T as TogetherAuthConfigContext,a as TogetherAuthConfigContextProvider,t as TogetherTypes,i as TopicSelectList,u as useTogetherAuthRequiredAction}from"./types-fd89a516.js";export{C as CardAuthor,L as Loading,a as PopupDoctor,P as PopupExpert,b as PopupHospital,d as TogetherDataTransforms,U as UserAvatar}from"./index-e6b4cdad.js";export{B as BookingSearchBar,t as CareTypes}from"./types-085b551a.js";export{c as CareConstants}from"./constants-a0a981fa.js";export{a as ageGenerate,c as convertLocalizedStringToNumber,l as localizeNumberFormat}from"./localizeNumberFormat-77c129ef.js";export{d as deleteCookie,g as getCookie,s as setCookie}from"./cookieHelper-0e8521c3.js";import"react";import"styled-components";export{a as abbreviateNumber}from"./number-3cb24023.js";export{d as getCareApiDomain,g as getCurrentBaseUrl,a as getCurrentSsoUrl,c as getDiscoverApiDomain,b as getTogetherApiDomain}from"./routing-f1bdaa22.js";export{g as getSocialList}from"./getSocialList-cb857fba.js";import"./tslib.es6-38c4ccef.js";import"./core-a8118d2d.js";import"string-format";import"vanilla-lazyload";import"react-range";import"react-id-generator";import"date-fns";import"react-day-picker/DayPickerInput";import"lodash";import"keen-slider/react";import"react-dom";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"./zalo-7f0726ae.js";import"slugify";import"smoothscroll-polyfill";import"innertext";import"react-contenteditable";import"date-fns/locale/hi";import"date-fns/locale/ms";import"date-fns/locale/th";import"react-loading-skeleton";import"lodash/shuffle";
@@ -1 +1 @@
1
- import n,{useRef as e,useEffect as t}from"react";import{k as o,o as i,M as a}from"./lazyLoad-b7b94ece.js";import{createPortal as r}from"react-dom";import{aj as d,ak as l,al as s,T as h,am as p}from"./index.styled-4e3897dc.js";import{b as c}from"./tslib.es6-38c4ccef.js";import m from"styled-components";var x,u,f,g=function(e){var t=e.open,o=void 0!==t&&t,i=e.onClickOutside;return n.createElement(d,{open:o,onClick:i})},v=function(a){var d=a.children,c=a.title,m=a.onClose,x=a.open,u=void 0!==x&&x,f=a.placement,v=void 0===f?"left":f,w=a.destroyOnClose,b=void 0!==w&&w,y=a.className,C=e();t((function(){return o(u),function(){return o(!1)}}),[u]);var k=function(){C.current.classList.add("slideOut"),setTimeout((function(){m()}),800)};return!u&&b?null:r(n.createElement(n.Fragment,null,n.createElement(l,{className:y,open:u},n.createElement(g,{open:u,onClickOutside:k}),n.createElement(s,{open:u,placement:v,ref:C,hasTitle:Boolean(c)},n.createElement("div",{className:"title"},c&&n.createElement(h,{size:"s2",type:"semiBold"},c),n.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:k},n.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"}))),n.createElement(p,{onClick:function(n){return n.stopPropagation()}},d&&(n.isValidElement(d)?d:"function"==typeof d?d({internalClose:k}):null))))),i())},w=m.div(x||(x=c(["\n position: relative;\n z-index: 200;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 4px 8px ",";\n\n .hhg-modal__content {\n position: relative;\n z-index: 111;\n height: 100%;\n padding: 16px;\n }\n .hhg-modal__video {\n position: relative;\n z-index: 111;\n height: 100%;\n background-color: none;\n box-shadow: none;\n }\n"],["\n position: relative;\n z-index: 200;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 4px 8px ",";\n\n .hhg-modal__content {\n position: relative;\n z-index: 111;\n height: 100%;\n padding: 16px;\n }\n .hhg-modal__video {\n position: relative;\n z-index: 111;\n height: 100%;\n background-color: none;\n box-shadow: none;\n }\n"])),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray200})),b=m.div(u||(u=c(["\n position: fixed;\n top: 0;\n left: 0;\n z-index: 201;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n outline: 0;\n visibility: hidden;\n background-color: rgba(38, 38, 38, 0.3);\n\n .hhg-modal__close {\n position: absolute;\n top: 16px;\n right: 16px;\n cursor: pointer;\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n &[data-type='video'] {\n z-index: 1001;\n }\n &[data-open='true'] {\n visibility: visible;\n }\n\n &.slideTop {\n "," {\n transform: translate(0, -100vh);\n transition: all 0.5s ease;\n }\n\n &[data-open='true'] {\n "," {\n transform: translate(0);\n }\n }\n }\n\n &.scaleUp {\n "," {\n transform: scale(0.9);\n }\n\n &[data-open='true'] {\n "," {\n transition: all 0.3s ease-out;\n transform: scale(1);\n }\n }\n }\n\n &[data-type='tail'] {\n justify-content: flex-end;\n "," {\n width: 420px;\n height: 100%;\n border-radius: 0;\n overflow: hidden auto;\n }\n }\n &[data-type='form'] {\n "," {\n width: 496px;\n height: 548px;\n max-height: 100%;\n overflow-y: auto;\n "," {\n width: 340px;\n }\n }\n }\n &[data-type='video'] {\n "," {\n height: 100%;\n max-height: 539px;\n "," {\n height: 192px;\n width: 100%;\n height: 100%;\n border-radius: 6px;\n max-height: 192px;\n }\n }\n }\n &[data-type='confirm'] {\n "," {\n width: 100%;\n max-width: 407px;\n "," {\n width: calc(100% - 32px);\n max-width: calc(100% - 32px);\n }\n }\n }\n"],["\n position: fixed;\n top: 0;\n left: 0;\n z-index: 201;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n outline: 0;\n visibility: hidden;\n background-color: rgba(38, 38, 38, 0.3);\n\n .hhg-modal__close {\n position: absolute;\n top: 16px;\n right: 16px;\n cursor: pointer;\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n &[data-type='video'] {\n z-index: 1001;\n }\n &[data-open='true'] {\n visibility: visible;\n }\n\n &.slideTop {\n "," {\n transform: translate(0, -100vh);\n transition: all 0.5s ease;\n }\n\n &[data-open='true'] {\n "," {\n transform: translate(0);\n }\n }\n }\n\n &.scaleUp {\n "," {\n transform: scale(0.9);\n }\n\n &[data-open='true'] {\n "," {\n transition: all 0.3s ease-out;\n transform: scale(1);\n }\n }\n }\n\n &[data-type='tail'] {\n justify-content: flex-end;\n "," {\n width: 420px;\n height: 100%;\n border-radius: 0;\n overflow: hidden auto;\n }\n }\n &[data-type='form'] {\n "," {\n width: 496px;\n height: 548px;\n max-height: 100%;\n overflow-y: auto;\n "," {\n width: 340px;\n }\n }\n }\n &[data-type='video'] {\n "," {\n height: 100%;\n max-height: 539px;\n "," {\n height: 192px;\n width: 100%;\n height: 100%;\n border-radius: 6px;\n max-height: 192px;\n }\n }\n }\n &[data-type='confirm'] {\n "," {\n width: 100%;\n max-width: 407px;\n "," {\n width: calc(100% - 32px);\n max-width: calc(100% - 32px);\n }\n }\n }\n"])),w,w,w,w,w,w,a.mbDown,w,a.mbDown,w,a.mbDown),y=m.div(f||(f=c(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n align-items: center;\n\n &[data-open='false'] {\n display: none;\n }\n &[data-type='video'] {\n background-color: ",";\n }\n"],["\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n align-items: center;\n\n &[data-open='false'] {\n display: none;\n }\n &[data-type='video'] {\n background-color: ",";\n }\n"])),(function(n){return n.theme.colors.secondaryDark}));export{v as D,b as S,y as a,w as b};
1
+ import n,{useRef as e,useEffect as t}from"react";import{k as o,o as i,M as a}from"./lazyLoad-9702fa7e.js";import{createPortal as r}from"react-dom";import{aj as d,ak as l,al as s,T as h,am as p}from"./index.styled-f8bcaba1.js";import{b as c}from"./tslib.es6-38c4ccef.js";import m from"styled-components";var x,u,f,g=function(e){var t=e.open,o=void 0!==t&&t,i=e.onClickOutside;return n.createElement(d,{open:o,onClick:i})},v=function(a){var d=a.children,c=a.title,m=a.onClose,x=a.open,u=void 0!==x&&x,f=a.placement,v=void 0===f?"left":f,w=a.destroyOnClose,b=void 0!==w&&w,y=a.className,C=e();t((function(){return o(u),function(){return o(!1)}}),[u]);var k=function(){C.current.classList.add("slideOut"),setTimeout((function(){m()}),800)};return!u&&b?null:r(n.createElement(n.Fragment,null,n.createElement(l,{className:y,open:u},n.createElement(g,{open:u,onClickOutside:k}),n.createElement(s,{open:u,placement:v,ref:C,hasTitle:Boolean(c)},n.createElement("div",{className:"title"},c&&n.createElement(h,{size:"s2",type:"semiBold"},c),n.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:k},n.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"}))),n.createElement(p,{onClick:function(n){return n.stopPropagation()}},d&&(n.isValidElement(d)?d:"function"==typeof d?d({internalClose:k}):null))))),i())},w=m.div(x||(x=c(["\n position: relative;\n z-index: 200;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 4px 8px ",";\n\n .hhg-modal__content {\n position: relative;\n z-index: 111;\n height: 100%;\n padding: 16px;\n }\n .hhg-modal__video {\n position: relative;\n z-index: 111;\n height: 100%;\n background-color: none;\n box-shadow: none;\n }\n"],["\n position: relative;\n z-index: 200;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 4px 8px ",";\n\n .hhg-modal__content {\n position: relative;\n z-index: 111;\n height: 100%;\n padding: 16px;\n }\n .hhg-modal__video {\n position: relative;\n z-index: 111;\n height: 100%;\n background-color: none;\n box-shadow: none;\n }\n"])),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray200})),b=m.div(u||(u=c(["\n position: fixed;\n top: 0;\n left: 0;\n z-index: 201;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n outline: 0;\n visibility: hidden;\n background-color: rgba(38, 38, 38, 0.3);\n\n .hhg-modal__close {\n position: absolute;\n top: 16px;\n right: 16px;\n cursor: pointer;\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n &[data-type='video'] {\n z-index: 1001;\n }\n &[data-open='true'] {\n visibility: visible;\n }\n\n &.slideTop {\n "," {\n transform: translate(0, -100vh);\n transition: all 0.5s ease;\n }\n\n &[data-open='true'] {\n "," {\n transform: translate(0);\n }\n }\n }\n\n &.scaleUp {\n "," {\n transform: scale(0.9);\n }\n\n &[data-open='true'] {\n "," {\n transition: all 0.3s ease-out;\n transform: scale(1);\n }\n }\n }\n\n &[data-type='tail'] {\n justify-content: flex-end;\n "," {\n width: 420px;\n height: 100%;\n border-radius: 0;\n overflow: hidden auto;\n }\n }\n &[data-type='form'] {\n "," {\n width: 496px;\n height: 548px;\n max-height: 100%;\n overflow-y: auto;\n "," {\n width: 340px;\n }\n }\n }\n &[data-type='video'] {\n "," {\n height: 100%;\n max-height: 539px;\n "," {\n height: 192px;\n width: 100%;\n height: 100%;\n border-radius: 6px;\n max-height: 192px;\n }\n }\n }\n &[data-type='confirm'] {\n "," {\n width: 100%;\n max-width: 407px;\n "," {\n width: calc(100% - 32px);\n max-width: calc(100% - 32px);\n }\n }\n }\n"],["\n position: fixed;\n top: 0;\n left: 0;\n z-index: 201;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n outline: 0;\n visibility: hidden;\n background-color: rgba(38, 38, 38, 0.3);\n\n .hhg-modal__close {\n position: absolute;\n top: 16px;\n right: 16px;\n cursor: pointer;\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n &[data-type='video'] {\n z-index: 1001;\n }\n &[data-open='true'] {\n visibility: visible;\n }\n\n &.slideTop {\n "," {\n transform: translate(0, -100vh);\n transition: all 0.5s ease;\n }\n\n &[data-open='true'] {\n "," {\n transform: translate(0);\n }\n }\n }\n\n &.scaleUp {\n "," {\n transform: scale(0.9);\n }\n\n &[data-open='true'] {\n "," {\n transition: all 0.3s ease-out;\n transform: scale(1);\n }\n }\n }\n\n &[data-type='tail'] {\n justify-content: flex-end;\n "," {\n width: 420px;\n height: 100%;\n border-radius: 0;\n overflow: hidden auto;\n }\n }\n &[data-type='form'] {\n "," {\n width: 496px;\n height: 548px;\n max-height: 100%;\n overflow-y: auto;\n "," {\n width: 340px;\n }\n }\n }\n &[data-type='video'] {\n "," {\n height: 100%;\n max-height: 539px;\n "," {\n height: 192px;\n width: 100%;\n height: 100%;\n border-radius: 6px;\n max-height: 192px;\n }\n }\n }\n &[data-type='confirm'] {\n "," {\n width: 100%;\n max-width: 407px;\n "," {\n width: calc(100% - 32px);\n max-width: calc(100% - 32px);\n }\n }\n }\n"])),w,w,w,w,w,w,a.mbDown,w,a.mbDown,w,a.mbDown),y=m.div(f||(f=c(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n align-items: center;\n\n &[data-open='false'] {\n display: none;\n }\n &[data-type='video'] {\n background-color: ",";\n }\n"],["\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n align-items: center;\n\n &[data-open='false'] {\n display: none;\n }\n &[data-type='video'] {\n background-color: ",";\n }\n"])),(function(n){return n.theme.colors.secondaryDark}));export{v as D,b as S,y as a,w as b};