@hhgtech/hhg-components 1.21.75 → 1.21.76

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
- import{b as t,_ as o}from"./tslib.es6-dcf36680.js";import r,{useMemo as n,useState as a,useEffect as i}from"react";import{Autocomplete as s,Image as l,Select as m,Badge as h,Spoiler as p,LoadingOverlay as u,MantineProvider as v}from"@mantine/core";import{CommonGAssets as w}from"./gAssets.js";import{D as x,S as E,a as S,u as k,g as j}from"./theme-09888b00.js";export{A as Accordion,c as Avatar,C as Carousel,d as Checkbox,b as DatePicker,I as Input,R as Radio,e as Switch,f as emotionCache,g as getMantineThemeOverride}from"./theme-09888b00.js";import"date-fns";import"./screenSizeContext-1852eabc.js";import"styled-components";import{t as y}from"./theme-a50a1aa5.js";import"./index-9dd60ba6.js";import"./isProduction-6fc0946c.js";import"./Locale-69030fff.js";import{T as H}from"./index-1e715f4d.js";import"react-range";import{u as z}from"./useTranslations-b3eb31ef.js";import"lodash/debounce";import{useDebouncedValue as P}from"@mantine/hooks";import{B}from"./index-073d2467.js";import"./translationsContext-e7808c8f.js";import"string-format";import"@mantine/dates";import"@mantine/carousel";import"vanilla-lazyload";import"lodash";var L=function(e){var n=e.keepSearch,a=void 0!==n&&n,i=t(e,["keepSearch"]);return a?r.createElement(s,o({rightSection:r.createElement(l,{src:w.getAssetPath("chevron-down.svg"),fit:"none"}),size:"md",maxDropdownHeight:300},i)):r.createElement(m,o({rightSection:r.createElement(l,{src:w.getAssetPath("chevron-down.svg"),fit:"none"}),size:"md",maxDropdownHeight:300},i))},M=function(e){var n=e.color,a=void 0===n?y.colors.primaryBase:n,i=t(e,["color"]);return r.createElement(h,o({variant:"filled",color:a,styles:{root:{borderRadius:"2px",background:a,textTransform:"unset"}}},i))},D=function(e){var a=e.children,i=e.line,s=e.lineHeight,l=e.maxHeight,c=t(e,["children","line","lineHeight","maxHeight"]),m=z().t,h=n((function(){return l||(i&&s?i*s:(console.error("[HHG-Comp]:[Spoiler] Please provide maxHeight, or line with lineHeight"),0))}),[]);return a||console.error("[HHG-Comp]:[Spoiler] Please provide children"),r.createElement(p,o({showLabel:r.createElement(H,{size:"p3",color:y.colors.primaryBase},m("articlePage.readMore")),hideLabel:r.createElement(H,{size:"p3",color:y.colors.primaryBase},m("articlePage.showLess"))},c,{maxHeight:h}),a)},T=function(e){return r.createElement(u,o({loaderProps:{color:y.colors.primaryBase}},e))},G=function(e){var n=e.color,s=void 0===n?y.colors.primaryBase:n,l=e.withControl,c=e.onChange,m=e.value,h=e.min,d=e.max,p=e.isStatic,u=t(e,["color","withControl","onChange","value","min","max","isStatic"]),f=a(m||h||0),g=f[0],v=f[1],w=P(g,x)[0];return i((function(){null==c||c(w)}),[w]),r.createElement(E,null,l&&r.createElement(B,{type:"button",size:"sm",color:"ghost",onClick:function(){v((function(e){return h&&e===h?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:s,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),r.createElement(S,o({thumbSize:21,labelAlwaysOn:!0,radius:"xl",color:s,value:g,onChange:p?function(){return null}:v,min:h,max:d},u)),l&&r.createElement(B,{type:"button",size:"sm",color:"ghost",onClick:function(){v((function(e){return d&&e===d?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:s,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))},O=function(e){var n=e.children,a=e.locale,i=t(e,["children","locale"]);return k(a),r.createElement(v,o({theme:j(a),withGlobalStyles:!0,withNormalizeCSS:!0},i),n)};export{M as Badge,T as LoadingOverlay,O as MantineProvider,L as Select,G as Slider,D as Spoiler};
1
+ import{b as t,_ as o}from"./tslib.es6-dcf36680.js";import r,{useMemo as n,useState as a,useEffect as i}from"react";import{Autocomplete as s,Image as l,Select as m,Badge as h,Spoiler as p,LoadingOverlay as v,MantineProvider as w}from"@mantine/core";import{CommonGAssets as x}from"./gAssets.js";import{D as E,S,a as k,u as j,g as y}from"./theme-3e149f81.js";export{A as Accordion,c as Avatar,C as Carousel,d as Checkbox,b as DatePicker,I as Input,M as MAPPED_LOCALE,R as Radio,e as Switch,f as emotionCache,g as getMantineThemeOverride,u as useMantineLocale}from"./theme-3e149f81.js";import"date-fns";import"./screenSizeContext-1852eabc.js";import"styled-components";import{t as H}from"./theme-a50a1aa5.js";import"./index-9dd60ba6.js";import"./isProduction-6fc0946c.js";import"./Locale-69030fff.js";import{T as L}from"./index-1e715f4d.js";import"react-range";import{u as P}from"./useTranslations-b3eb31ef.js";import"lodash/debounce";import{useDebouncedValue as z}from"@mantine/hooks";import{B}from"./index-073d2467.js";import"./translationsContext-e7808c8f.js";import"string-format";import"@mantine/dates";import"@mantine/carousel";import"vanilla-lazyload";import"lodash";var D=function(e){var n=e.keepSearch,a=void 0!==n&&n,i=t(e,["keepSearch"]);return a?r.createElement(s,o({rightSection:r.createElement(l,{src:x.getAssetPath("chevron-down.svg"),fit:"none"}),size:"md",maxDropdownHeight:300},i)):r.createElement(m,o({rightSection:r.createElement(l,{src:x.getAssetPath("chevron-down.svg"),fit:"none"}),size:"md",maxDropdownHeight:300},i))},O=function(e){var n=e.color,a=void 0===n?H.colors.primaryBase:n,i=t(e,["color"]);return r.createElement(h,o({variant:"filled",color:a,styles:{root:{borderRadius:"2px",background:a,textTransform:"unset"}}},i))},T=function(e){var a=e.children,i=e.line,s=e.lineHeight,l=e.maxHeight,c=t(e,["children","line","lineHeight","maxHeight"]),m=P().t,h=n((function(){return l||(i&&s?i*s:(console.error("[HHG-Comp]:[Spoiler] Please provide maxHeight, or line with lineHeight"),0))}),[]);return a||console.error("[HHG-Comp]:[Spoiler] Please provide children"),r.createElement(p,o({showLabel:r.createElement(L,{size:"p3",color:H.colors.primaryBase},m("articlePage.readMore")),hideLabel:r.createElement(L,{size:"p3",color:H.colors.primaryBase},m("articlePage.showLess"))},c,{maxHeight:h}),a)},G=function(e){return r.createElement(v,o({loaderProps:{color:H.colors.primaryBase}},e))},W=function(e){var n=e.color,s=void 0===n?H.colors.primaryBase:n,l=e.withControl,c=e.onChange,m=e.value,h=e.min,d=e.max,p=e.isStatic,u=t(e,["color","withControl","onChange","value","min","max","isStatic"]),f=a(m||h||0),g=f[0],v=f[1],w=z(g,E)[0];return i((function(){null==c||c(w)}),[w]),r.createElement(S,null,l&&r.createElement(B,{type:"button",size:"sm",color:"ghost",onClick:function(){v((function(e){return h&&e===h?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:s,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),r.createElement(k,o({thumbSize:21,labelAlwaysOn:!0,radius:"xl",color:s,value:g,onChange:p?function(){return null}:v,min:h,max:d},u)),l&&r.createElement(B,{type:"button",size:"sm",color:"ghost",onClick:function(){v((function(e){return d&&e===d?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:s,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))},_=function(e){var n=e.children,a=e.locale,i=t(e,["children","locale"]);return j(a),r.createElement(w,o({theme:y(a),withGlobalStyles:!0,withNormalizeCSS:!0},i),n)};export{O as Badge,G as LoadingOverlay,_ as MantineProvider,D as Select,W as Slider,T as Spoiler};
@@ -1 +1 @@
1
- import"./tslib.es6-dcf36680.js";import"react";import"./core-3b861395.js";import"./index-1e715f4d.js";import"./index.styled-e4f3ef8f.js";import"react-id-generator";import"date-fns";import"react-day-picker/DayPickerInput";import"lodash/debounce";import"react-dom";import"./index-7dfcd4ea.js";import"lodash";import"keen-slider/react";import"./gAssets.js";import"./screenSizeContext-1852eabc.js";import"react-range";import"styled-components";import"./getDynamicHealthTool-831ea86d.js";import"./Locale-69030fff.js";import"@mantine/core";import"./translationsContext-e7808c8f.js";import"string-format";import"./index-9dd60ba6.js";import"react-hook-form";import"./theme-09888b00.js";import"@mantine/hooks";export{N as NavigationV2,g as getNavMenuContent,a as getNavMenuContentWithCache}from"./index-27013ea9.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"./index-073d2467.js";import"date-fns/locale/hi";import"date-fns/locale/ms";import"date-fns/locale/th";import"./useTranslations-b3eb31ef.js";import"smoothscroll-polyfill";import"./index-0873a836.js";import"./types-f57c9932.js";import"./useHealthToolCache-74a46d69.js";import"./cookieHelper-0e8521c3.js";import"slugify";import"@hookform/resolvers/yup";import"./useScrollbarSize-99db33e1.js";import"recharts";import"./useOutsideClick-6004483a.js";import"vanilla-lazyload";import"@mantine/dates";import"@mantine/carousel";import"./constants-a0a981fa.js";
1
+ import"./tslib.es6-dcf36680.js";import"react";import"./core-3b861395.js";import"./index-1e715f4d.js";import"./index.styled-0341bdd0.js";import"react-id-generator";import"date-fns";import"react-day-picker/DayPickerInput";import"lodash/debounce";import"react-dom";import"./index-7dfcd4ea.js";import"lodash";import"keen-slider/react";import"./gAssets.js";import"./screenSizeContext-1852eabc.js";import"react-range";import"styled-components";import"./getDynamicHealthTool-831ea86d.js";import"./Locale-69030fff.js";import"@mantine/core";import"./translationsContext-e7808c8f.js";import"string-format";import"./index-9dd60ba6.js";import"react-hook-form";import"./theme-3e149f81.js";import"@mantine/hooks";export{N as NavigationV2,g as getNavMenuContent,a as getNavMenuContentWithCache}from"./index-5c837c85.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"./index-073d2467.js";import"date-fns/locale/hi";import"date-fns/locale/ms";import"date-fns/locale/th";import"./useTranslations-b3eb31ef.js";import"smoothscroll-polyfill";import"./index-0873a836.js";import"./types-f57c9932.js";import"./useHealthToolCache-74a46d69.js";import"./cookieHelper-0e8521c3.js";import"slugify";import"@hookform/resolvers/yup";import"./useScrollbarSize-99db33e1.js";import"recharts";import"./useOutsideClick-6004483a.js";import"vanilla-lazyload";import"@mantine/dates";import"@mantine/carousel";import"./constants-a0a981fa.js";
@@ -1 +1 @@
1
- import{e as n,_ as e,b as t}from"./tslib.es6-dcf36680.js";import a,{useState as r,useEffect as o}from"react";import{Image as i,Accordion as c,Indicator as s,Avatar as l,createEmotionCache as d,FileInput as m,NumberInput as u,PasswordInput as p,TextInput as h,Checkbox as f,Slider as g,Radio as v,Switch as b}from"@mantine/core";import{CommonGAssets as Y}from"./gAssets.js";import{DatePicker as w,DateRangePicker as k}from"@mantine/dates";import y,{css as C}from"styled-components";import{useDebouncedValue as x}from"@mantine/hooks";import{Carousel as D}from"@mantine/carousel";import{Y as M}from"./index-1e715f4d.js";import"date-fns";import"./screenSizeContext-1852eabc.js";import{t as S}from"./theme-a50a1aa5.js";import"./index-9dd60ba6.js";import"./isProduction-6fc0946c.js";import{L as E}from"./Locale-69030fff.js";var A,P,I,z,F=y(w)(P||(P=n(["\n position: relative;\n ","\n"],["\n position: relative;\n ","\n"])),(function(e){return e.fullWidth&&C(A||(A=n(["\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 "])))})),j=y(k)(z||(z=n(["\n position: relative;\n ","\n"],["\n position: relative;\n ","\n"])),(function(e){return e.fullWidth&&C(I||(I=n(["\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 "])))})),T=function(n){return a.createElement(F,e({size:"md",clearable:!1,fullWidth:!0,rightSection:a.createElement(i,{src:Y.getAssetPath("OutlineCalendar.svg"),width:16,height:16})},n))};T.Range=function(n){return a.createElement(j,e({size:"md",clearable:!1,fullWidth:!0,rightSection:a.createElement(i,{src:Y.getAssetPath("OutlineCalendar.svg"),width:16,height:16})},n))};var R,B=y(c)(R||(R=n(["\n .mantine-Accordion-control {\n &:hover {\n background-color: transparent;\n }\n }\n .mantine-Accordion-item {\n .mantine-Accordion-chevron {\n > div {\n background-repeat: no-repeat;\n width: 16px;\n height: 16px;\n background-position: center;\n background-image: url(",");\n }\n }\n &[data-active='true'] {\n .mantine-Accordion-chevron {\n > div {\n background-image: url(",");\n }\n }\n }\n }\n .mantine-Accordion-panel {\n border-radius: 6px;\n }\n .mantine-Accordion-content {\n white-space: pre-wrap;\n }\n"],["\n .mantine-Accordion-control {\n &:hover {\n background-color: transparent;\n }\n }\n .mantine-Accordion-item {\n .mantine-Accordion-chevron {\n > div {\n background-repeat: no-repeat;\n width: 16px;\n height: 16px;\n background-position: center;\n background-image: url(",");\n }\n }\n &[data-active='true'] {\n .mantine-Accordion-chevron {\n > div {\n background-image: url(",");\n }\n }\n }\n }\n .mantine-Accordion-panel {\n border-radius: 6px;\n }\n .mantine-Accordion-content {\n white-space: pre-wrap;\n }\n"])),(function(n){return n.closeChevron||Y.getAssetPath("plus-icon.svg")}),(function(n){return n.openChevron||Y.getAssetPath("minus-icon.svg")})),N=function(n){var r=n.children,o=t(n,["children"]);return a.createElement(B,e({chevron:a.createElement("div",null),disableChevronRotation:!0,transitionDuration:300},o),r)};N.Control=c.Control,N.Item=c.Item,N.Panel=c.Panel;var W,G=Y.getAssetPath("avatar.jpg"),H=function(n){var r=n.withIndicator,o=void 0!==r&&r,i=n.indicatorConfig,c=void 0===i?null:i,d=n.size,m=void 0===d?56:d,u=n.children,p=t(n,["withIndicator","indicatorConfig","size","children"]),h=function(){return a.createElement(l,e({size:m,radius:"xl"},p),u||a.createElement("img",{src:G,width:m}))};return o?a.createElement(s,e({inline:!0,position:"bottom-end",offset:9},c,{styles:{indicator:{backgroundColor:a.isValidElement(c.label)&&"transparent"}}}),h()):h()},V=300,L=d({key:"mantine",prepend:!1}),O=((W={})[E.Vietnam]={dateFormat:"DD/MM/YYYY",separator:","},W[E.Cambodia]={dateFormat:"DD/MM/YYYY",separator:"."},W[E.India]={dateFormat:"DD/MM/YYYY",separator:"."},W[E.Indonesia]={dateFormat:"DD/MM/YYYY",separator:","},W[E.Malaysia]={dateFormat:"DD/MM/YYYY",separator:"."},W[E.Thailand]={dateFormat:"DD/MM/YYYY",separator:"."},W[E.Taiwan]={dateFormat:"YYYY/MM/DD",separator:","},W[E.PhilippinesTagalog]={dateFormat:"MM/DD/YYYY",separator:"."},W[E.PhilippinesEnglish]={dateFormat:"MM/DD/YYYY",separator:"."},W[E.Myanmar]={dateFormat:"DD/MM/YYYY",separator:","},W),U=Y.getAssetPath("EyeVisible.svg"),q=Y.getAssetPath("EyeHidden.svg"),Z=function(n){var i=n.value,c=n.onChange,s=t(n,["value","onChange"]),l=r(i||""),d=l[0],m=l[1],u=x(d,V)[0];return o((function(){null==c||c(u)}),[u]),o((function(){m(i)}),[i]),a.createElement(h,e({size:"md",onChange:function(n){return m(n.currentTarget.value)},value:d},s))};Z.File=function(n){return a.createElement(m,e({size:"md"},n))},Z.Password=function(n){var i=n.value,c=n.onChange,s=t(n,["value","onChange"]),l=r(i||""),d=l[0],m=l[1],u=x(d,V)[0];return o((function(){null==c||c(u)}),[u]),o((function(){m(i)}),[i]),a.createElement(p,e({size:"md",onChange:function(n){return m(n.currentTarget.value)},visibilityToggleIcon:function(n){var e=n.reveal,t=n.size;return e?a.createElement("img",{src:U,width:t}):a.createElement("img",{src:q,width:t})},styles:{rightSection:{pointerEvents:"initial"}},value:d},s))},Z.Number=function(n){var i=n.value,c=n.onChange,s=t(n,["value","onChange"]),l=r(i||0),d=l[0],m=l[1],p=x(d,V)[0];return o((function(){null==c||c(p)}),[p]),o((function(){m(i)}),[i]),a.createElement(u,e({size:"md",stepHoldDelay:500,stepHoldInterval:function(n){return Math.max(1e3/Math.pow(n,2),25)},onChange:m,hideControls:!0,min:0,formatter:function(n){return 0===Number(n)?"":n||""},removeTrailingZeros:!0,value:d},s))};var _=function(n){var r=n.slidesToShow,o=void 0===r?1:r,i=n.children,c=t(n,["slidesToShow","children"]);return a.createElement(D,e({slideSize:String(Math.floor(1/o*100))+"%",containScroll:"trimSnaps"},c),i)};_.Slide=D.Slide;var J=function(n){return a.createElement(f,e({},n))};J.Group=f.Group;var K,Q,X,$="hhgcomp-mantine-slider-slider",nn=M(y(g)(K||(K=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"],["\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(n){return n.color||n.theme.colors.primaryBase})),$),en=y.div(Q||(Q=n(["\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"])),$),tn=y(v)(X||(X=n(["\n .mantine-Radio-icon {\n color: ",";\n }\n"],["\n .mantine-Radio-icon {\n color: ",";\n }\n"])),(function(n){return n.color||S.colors.primaryBase})),an=function(n){return a.createElement(tn,e({size:"sm"},n))};an.Group=v.Group;var rn,on,cn=y(b)(rn||(rn=n(["\n .mantine-Switch-track {\n }\n"],["\n .mantine-Switch-track {\n }\n"]))),sn=((on={})[E.Vietnam]="vi",on[E.Cambodia]="km",on[E.India]="hi",on[E.Indonesia]="id",on[E.Malaysia]="ms",on[E.Thailand]="th",on[E.Taiwan]="zh-tw",on[E.PhilippinesTagalog]="tl-ph",on[E.PhilippinesEnglish]="en",on[E.Myanmar]="my",on),ln=function(n){o((function(){sn[n]&&require("dayjs/locale/".concat(sn[n],".js"))}),[n])},dn={"&:hover":{borderColor:"".concat(S.colors.blue200),boxShadow:"0 0 2px 2px ".concat(S.colors.blue200)}},mn=function(n){return{datesLocale:sn[n],dateFormat:O[n].dateFormat,fontFamily:n===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:O[n].separator}},Input:{styles:{input:{borderRadius:"6px",transition:"all ".concat("100ms"," ease-in-out"),"&:hover, &:focus":{borderColor:"".concat(S.colors.blue200),boxShadow:"0 0 2px 2px ".concat(S.colors.blue200)}},rightSection:{pointerEvents:"none",cursor:"default"},invalid:{color:"#000"}}},Checkbox:{styles:{input:dn}},Radio:{styles:{radio:e(e({backgroundColor:"#ffffff"},dn),{"&:checked":{backgroundColor:"#ffffff"}})}}}}};export{N as A,_ as C,V as D,Z as I,an as R,en as S,nn as a,T as b,H as c,J as d,cn as e,L as f,mn as g,ln as u};
1
+ import{e as n,_ as e,b as t}from"./tslib.es6-dcf36680.js";import a,{useState as r,useEffect as o}from"react";import{Image as i,Accordion as c,Indicator as s,Avatar as l,createEmotionCache as d,FileInput as m,NumberInput as u,PasswordInput as p,TextInput as h,Checkbox as f,Slider as g,Radio as v,Switch as b}from"@mantine/core";import{CommonGAssets as Y}from"./gAssets.js";import{DatePicker as w,DateRangePicker as k}from"@mantine/dates";import y,{css as C}from"styled-components";import{useDebouncedValue as x}from"@mantine/hooks";import{Carousel as D}from"@mantine/carousel";import{Y as M}from"./index-1e715f4d.js";import"date-fns";import"./screenSizeContext-1852eabc.js";import{t as S}from"./theme-a50a1aa5.js";import"./index-9dd60ba6.js";import"./isProduction-6fc0946c.js";import{L as E}from"./Locale-69030fff.js";var A,P,I,z,F=y(w)(P||(P=n(["\n position: relative;\n ","\n"],["\n position: relative;\n ","\n"])),(function(e){return e.fullWidth&&C(A||(A=n(["\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 "])))})),j=y(k)(z||(z=n(["\n position: relative;\n ","\n"],["\n position: relative;\n ","\n"])),(function(e){return e.fullWidth&&C(I||(I=n(["\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 "])))})),T=function(n){return a.createElement(F,e({size:"md",clearable:!1,fullWidth:!0,rightSection:a.createElement(i,{src:Y.getAssetPath("OutlineCalendar.svg"),width:16,height:16})},n))};T.Range=function(n){return a.createElement(j,e({size:"md",clearable:!1,fullWidth:!0,rightSection:a.createElement(i,{src:Y.getAssetPath("OutlineCalendar.svg"),width:16,height:16})},n))};var R,B=y(c)(R||(R=n(["\n .mantine-Accordion-control {\n &:hover {\n background-color: transparent;\n }\n }\n .mantine-Accordion-item {\n .mantine-Accordion-chevron {\n > div {\n background-repeat: no-repeat;\n width: 16px;\n height: 16px;\n background-position: center;\n background-image: url(",");\n }\n }\n &[data-active='true'] {\n .mantine-Accordion-chevron {\n > div {\n background-image: url(",");\n }\n }\n }\n }\n .mantine-Accordion-panel {\n border-radius: 6px;\n }\n .mantine-Accordion-content {\n white-space: pre-wrap;\n }\n"],["\n .mantine-Accordion-control {\n &:hover {\n background-color: transparent;\n }\n }\n .mantine-Accordion-item {\n .mantine-Accordion-chevron {\n > div {\n background-repeat: no-repeat;\n width: 16px;\n height: 16px;\n background-position: center;\n background-image: url(",");\n }\n }\n &[data-active='true'] {\n .mantine-Accordion-chevron {\n > div {\n background-image: url(",");\n }\n }\n }\n }\n .mantine-Accordion-panel {\n border-radius: 6px;\n }\n .mantine-Accordion-content {\n white-space: pre-wrap;\n }\n"])),(function(n){return n.closeChevron||Y.getAssetPath("plus-icon.svg")}),(function(n){return n.openChevron||Y.getAssetPath("minus-icon.svg")})),N=function(n){var r=n.children,o=t(n,["children"]);return a.createElement(B,e({chevron:a.createElement("div",null),disableChevronRotation:!0,transitionDuration:300},o),r)};N.Control=c.Control,N.Item=c.Item,N.Panel=c.Panel;var W,G=Y.getAssetPath("avatar.jpg"),H=function(n){var r=n.withIndicator,o=void 0!==r&&r,i=n.indicatorConfig,c=void 0===i?null:i,d=n.size,m=void 0===d?56:d,u=n.children,p=t(n,["withIndicator","indicatorConfig","size","children"]),h=function(){return a.createElement(l,e({size:m,radius:"xl"},p),u||a.createElement("img",{src:G,width:m}))};return o?a.createElement(s,e({inline:!0,position:"bottom-end",offset:9},c,{styles:{indicator:{backgroundColor:a.isValidElement(c.label)&&"transparent"}}}),h()):h()},V=300,L=d({key:"mantine",prepend:!1}),O=((W={})[E.Vietnam]={dateFormat:"DD/MM/YYYY",separator:","},W[E.Cambodia]={dateFormat:"DD/MM/YYYY",separator:"."},W[E.India]={dateFormat:"DD/MM/YYYY",separator:"."},W[E.Indonesia]={dateFormat:"DD/MM/YYYY",separator:","},W[E.Malaysia]={dateFormat:"DD/MM/YYYY",separator:"."},W[E.Thailand]={dateFormat:"DD/MM/YYYY",separator:"."},W[E.Taiwan]={dateFormat:"YYYY/MM/DD",separator:","},W[E.PhilippinesTagalog]={dateFormat:"MM/DD/YYYY",separator:"."},W[E.PhilippinesEnglish]={dateFormat:"MM/DD/YYYY",separator:"."},W[E.Myanmar]={dateFormat:"DD/MM/YYYY",separator:","},W),U=Y.getAssetPath("EyeVisible.svg"),q=Y.getAssetPath("EyeHidden.svg"),Z=function(n){var i=n.value,c=n.onChange,s=t(n,["value","onChange"]),l=r(i||""),d=l[0],m=l[1],u=x(d,V)[0];return o((function(){null==c||c(u)}),[u]),o((function(){m(i)}),[i]),a.createElement(h,e({size:"md",onChange:function(n){return m(n.currentTarget.value)},value:d},s))};Z.File=function(n){return a.createElement(m,e({size:"md"},n))},Z.Password=function(n){var i=n.value,c=n.onChange,s=t(n,["value","onChange"]),l=r(i||""),d=l[0],m=l[1],u=x(d,V)[0];return o((function(){null==c||c(u)}),[u]),o((function(){m(i)}),[i]),a.createElement(p,e({size:"md",onChange:function(n){return m(n.currentTarget.value)},visibilityToggleIcon:function(n){var e=n.reveal,t=n.size;return e?a.createElement("img",{src:U,width:t}):a.createElement("img",{src:q,width:t})},styles:{rightSection:{pointerEvents:"initial"}},value:d},s))},Z.Number=function(n){var i=n.value,c=n.onChange,s=t(n,["value","onChange"]),l=r(i||0),d=l[0],m=l[1],p=x(d,V)[0];return o((function(){null==c||c(p)}),[p]),o((function(){m(i)}),[i]),a.createElement(u,e({size:"md",stepHoldDelay:500,stepHoldInterval:function(n){return Math.max(1e3/Math.pow(n,2),25)},onChange:m,hideControls:!0,min:0,formatter:function(n){return 0===Number(n)?"":n||""},removeTrailingZeros:!0,value:d},s))};var _=function(n){var r=n.slidesToShow,o=void 0===r?1:r,i=n.children,c=t(n,["slidesToShow","children"]);return a.createElement(D,e({slideSize:String(Math.floor(1/o*100))+"%",containScroll:"trimSnaps"},c),i)};_.Slide=D.Slide;var J=function(n){return a.createElement(f,e({},n))};J.Group=f.Group;var K,Q,X,$="hhgcomp-mantine-slider-slider",nn=M(y(g)(K||(K=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"],["\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(n){return n.color||n.theme.colors.primaryBase})),$),en=y.div(Q||(Q=n(["\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"])),$),tn=y(v)(X||(X=n(["\n .mantine-Radio-icon {\n color: ",";\n }\n"],["\n .mantine-Radio-icon {\n color: ",";\n }\n"])),(function(n){return n.color||S.colors.primaryBase})),an=function(n){return a.createElement(tn,e({size:"sm"},n))};an.Group=v.Group;var rn,on,cn=y(b)(rn||(rn=n(["\n .mantine-Switch-track {\n }\n"],["\n .mantine-Switch-track {\n }\n"]))),sn=((on={})[E.Vietnam]="vi",on[E.Cambodia]="km",on[E.India]="hi",on[E.Indonesia]="id",on[E.Malaysia]="ms",on[E.Thailand]="th",on[E.Taiwan]="zh-tw",on[E.PhilippinesTagalog]="tl-ph",on[E.PhilippinesEnglish]="en",on[E.Myanmar]="my",on),ln=function(n){o((function(){sn[n]&&require("dayjs/locale/".concat(sn[n],".js"))}),[n])},dn={"&:hover":{borderColor:"".concat(S.colors.blue200),boxShadow:"0 0 2px 2px ".concat(S.colors.blue200)}},mn=function(n){return{datesLocale:sn[n],dateFormat:O[n].dateFormat,fontFamily:n===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:O[n].separator}},Input:{styles:{input:{borderRadius:"6px",transition:"all ".concat("100ms"," ease-in-out"),"&:hover, &:focus":{borderColor:"".concat(S.colors.blue200),boxShadow:"0 0 2px 2px ".concat(S.colors.blue200)}},rightSection:{pointerEvents:"none",cursor:"default"},invalid:{color:"#000"}}},Checkbox:{styles:{input:dn}},Radio:{styles:{radio:e(e({backgroundColor:"#ffffff"},dn),{"&:checked":{backgroundColor:"#ffffff"}})}}}}};export{N as A,_ as C,V as D,Z as I,sn as M,an as R,en as S,nn as a,T as b,H as c,J as d,cn as e,L as f,mn as g,ln as u};
@@ -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-c58a8643.js";export{C as CardAuthor,n as DefaultComponentGlobalContextData,G as GlobalData,j as Loading,l as PopupDoctor,k as PopupExpert,m as PopupHospital,o as TogetherComponentGlobalContext,p as TogetherComponentGlobalContextProvider,i as TogetherConstants,h as TogetherDataTransforms,U as UserAvatar}from"./index.styled-e4f3ef8f.js";import"react";import"./index-1e715f4d.js";import"./tslib.es6-dcf36680.js";import"styled-components";import"./theme-a50a1aa5.js";import"./screenSizeContext-1852eabc.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-e7808c8f.js";import"string-format";import"./index-073d2467.js";import"./useTranslations-b3eb31ef.js";import"innertext";import"react-range";import"@mantine/core";import"lodash/debounce";import"./index-0873a836.js";import"react-contenteditable";import"./index-7dfcd4ea.js";import"./useScrollbarSize-99db33e1.js";import"react-dom";import"recharts";import"./useOutsideClick-6004483a.js";import"./cookieHelper-0e8521c3.js";import"./index-0943b5c7.js";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"react-id-generator";import"react-day-picker/DayPickerInput";import"smoothscroll-polyfill";import"keen-slider/react";import"./types-f57c9932.js";import"./useHealthToolCache-74a46d69.js";import"./getDynamicHealthTool-831ea86d.js";import"./core-3b861395.js";import"react-hook-form";import"./theme-09888b00.js";import"@mantine/dates";import"@mantine/hooks";import"@mantine/carousel";import"slugify";import"@hookform/resolvers/yup";
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-aa00d8bc.js";export{C as CardAuthor,n as DefaultComponentGlobalContextData,G as GlobalData,j as Loading,l as PopupDoctor,k as PopupExpert,m as PopupHospital,o as TogetherComponentGlobalContext,p as TogetherComponentGlobalContextProvider,i as TogetherConstants,h as TogetherDataTransforms,U as UserAvatar}from"./index.styled-0341bdd0.js";import"react";import"./index-1e715f4d.js";import"./tslib.es6-dcf36680.js";import"styled-components";import"./theme-a50a1aa5.js";import"./screenSizeContext-1852eabc.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-e7808c8f.js";import"string-format";import"./index-073d2467.js";import"./useTranslations-b3eb31ef.js";import"innertext";import"react-range";import"@mantine/core";import"lodash/debounce";import"./index-0873a836.js";import"react-contenteditable";import"./index-7dfcd4ea.js";import"./useScrollbarSize-99db33e1.js";import"react-dom";import"recharts";import"./useOutsideClick-6004483a.js";import"./cookieHelper-0e8521c3.js";import"./index-0943b5c7.js";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"react-id-generator";import"react-day-picker/DayPickerInput";import"smoothscroll-polyfill";import"keen-slider/react";import"./types-f57c9932.js";import"./useHealthToolCache-74a46d69.js";import"./getDynamicHealthTool-831ea86d.js";import"./core-3b861395.js";import"react-hook-form";import"./theme-3e149f81.js";import"@mantine/dates";import"@mantine/hooks";import"@mantine/carousel";import"slugify";import"@hookform/resolvers/yup";