@hhgtech/hhg-components 1.20.29 → 1.20.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{ageGenerate-f9c10d8e.js → ageGenerate-61d17ab5.js} +1 -1
- package/build/animation-c527178f.js +1 -0
- package/build/babyGrowth.js +1 -1
- package/build/care.js +1 -1
- package/build/components/molecules/babyGrowthChooseProfileDrawer/index.d.ts +2 -1
- package/build/components/organisms/navigationLayout_deprecated/exportLegacy.d.ts +5 -0
- package/build/components.js +1 -1
- package/build/core.js +1 -1
- package/build/esm/{ageGenerate-68676ab3.js → ageGenerate-18df8869.js} +1 -1
- package/build/esm/animation-0796d25e.js +1 -0
- package/build/esm/babyGrowth.js +1 -1
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/{core-4aeeac34.js → core-286f158c.js} +1 -1
- package/build/esm/core.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/index-136ab451.js +1 -0
- package/build/esm/index-13d8821f.js +1 -0
- package/build/esm/{index-3b1f1478.js → index-70f38364.js} +1 -1
- package/build/esm/index-78e6e950.js +1 -0
- package/build/esm/index-7b032ad1.js +1 -0
- package/build/esm/index-897f7837.js +1 -0
- package/build/esm/{index-54d677a7.js → index-ab4eb1b2.js} +1 -1
- package/build/esm/index-beb9db0b.js +1 -0
- package/build/esm/{index-c2871b5e.js → index-e68bd90f.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/index.styled-4ae7aba3.js +1 -0
- package/build/esm/index.styled-81673574.js +1 -0
- package/build/esm/navigation.js +1 -1
- package/build/esm/navigationLayout_deprecated.js +1 -0
- package/build/esm/routing-dd4412db.js +1 -0
- package/build/esm/together.js +1 -1
- package/build/esm/{translationsProvider-59f3d200.js → translationsProvider-849e1aaa.js} +1 -1
- package/build/esm/{tslib.es6-ba283c01.js → tslib.es6-6ae0d506.js} +1 -1
- package/build/esm/types-3579b4b2.js +1 -0
- package/build/esm/types-daa67348.js +1 -0
- package/build/esm/useTranslations-e4f230ed.js +1 -0
- package/build/{index-436fb19b.js → index-08022744.js} +1 -1
- package/build/index-11032730.js +1 -0
- package/build/{index-8356c17d.js → index-235d73eb.js} +1 -1
- package/build/{index-dc353c46.js → index-6e060556.js} +1 -1
- package/build/index-9bd68941.js +1 -0
- package/build/index-b356da51.js +1 -0
- package/build/index-c8bfca9c.js +1 -0
- package/build/index-ebaaaca7.js +1 -0
- package/build/{index-0361370d.js → index-f2ae348c.js} +1 -1
- package/build/index.js +1 -1
- package/build/index.styled-7332c0fb.js +1 -0
- package/build/index.styled-d6997469.js +1 -0
- package/build/navigation.js +1 -1
- package/build/navigationLayout_deprecated.js +1 -0
- package/build/{routing-36699a3b.js → routing-8dc4c79e.js} +1 -1
- package/build/together.js +1 -1
- package/build/types-43508f23.js +1 -0
- package/build/types-dc624512.js +1 -0
- package/build/useTranslations-9f0f26bc.js +1 -0
- package/package.json +4 -1
- package/build/esm/index-71c0bde3.js +0 -1
- package/build/esm/index-996b3248.js +0 -1
- package/build/esm/index-e3843cc1.js +0 -1
- package/build/esm/index-eeded213.js +0 -1
- package/build/esm/index.styled-92e8c364.js +0 -1
- package/build/esm/index.styled-9f4506c6.js +0 -1
- package/build/esm/routing-9c5c342b.js +0 -1
- package/build/esm/types-72e5bcaa.js +0 -1
- package/build/esm/types-a831f177.js +0 -1
- package/build/esm/useTranslations-161444d2.js +0 -1
- package/build/index-186025dd.js +0 -1
- package/build/index-446a66f3.js +0 -1
- package/build/index-ef1e0133.js +0 -1
- package/build/index.styled-4c09039d.js +0 -1
- package/build/index.styled-ae584a04.js +0 -1
- package/build/types-50f3c6c2.js +0 -1
- package/build/types-f79b10be.js +0 -1
- package/build/useTranslations-cb78945d.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./tslib.es6-f7929e76.js"),t=require("react"),n=require("./constants-ca5ea110.js"),a=require("./useTranslations-9f0f26bc.js"),i=require("./cookieHelper-612b90fa.js"),o=require("lodash/debounce"),r=require("./index.styled-7332c0fb.js"),l=require("./index-f2ae348c.js"),s=require("./animation-c527178f.js");require("react-range"),require("react-dom");var c=require("styled-components"),u=require("react-loading-skeleton"),d=require("react-id-generator"),p=require("lodash/shuffle"),h=require("./useOutsideClick-528bfd6c.js"),f=require("string-format");function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=g(t),C=g(o),v=g(c),x=g(u),b=g(p),y=g(f);var _,w,E,k,L,S,T,O,I,M,R,A,N=v.default.div(_||(_=e.__makeTemplateObject([""],[""]))),P=v.default.div(w||(w=e.__makeTemplateObject(["\n --searchbar-z-index: 305;\n &[data-is-modal='true'] {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n height: var(--mobile-care-searchbar-height, 100%);\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n background-color: white;\n z-index: var(--searchbar-z-index);\n }\n"],["\n --searchbar-z-index: 305;\n &[data-is-modal='true'] {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n height: var(--mobile-care-searchbar-height, 100%);\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n background-color: white;\n z-index: var(--searchbar-z-index);\n }\n"]))),F=v.default.section(E||(E=e.__makeTemplateObject([""],[""]))),z=v.default.input(k||(k=e.__makeTemplateObject(["\n position: fixed;\n left: -100%;\n top: -100%;\n"],["\n position: fixed;\n left: -100%;\n top: -100%;\n"]))),j=v.default(l.Input)(L||(L=e.__makeTemplateObject(["\n #booking-search-bar & {\n input {\n font-size: 16px;\n }\n }\n"],["\n #booking-search-bar & {\n input {\n font-size: 16px;\n }\n }\n"]))),B=c.createGlobalStyle(S||(S=e.__makeTemplateObject(["\n .care-popup-open {\n overflow: hidden;\n position: fixed;\n &::before {\n content: '';\n inset: 0;\n position: absolute;\n background-color: white;\n min-height: 100vh;\n min-width: 100vw;\n z-index: 2;\n }\n }\n"],["\n .care-popup-open {\n overflow: hidden;\n position: fixed;\n &::before {\n content: '';\n inset: 0;\n position: absolute;\n background-color: white;\n min-height: 100vh;\n min-width: 100vw;\n z-index: 2;\n }\n }\n"]))),D=function(e){var t=e.className,n=e.color;return m.default.createElement("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.default.createElement("path",{d:"M18 6L6 18",stroke:n||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),m.default.createElement("path",{d:"M6 6L18 18",stroke:n||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))},H=function(e){var t=e.className,n=e.color;return m.default.createElement("svg",{width:"14",height:"20",viewBox:"0 0 14 20",className:t},m.default.createElement("path",{d:"M7 0C3.134 0 0 3.134 0 7C0 10.966 4.404 16.82 6.226 19.071C6.626 19.565 7.374 19.565 7.774 19.071C9.596 16.82 14 10.966 14 7C14 3.134 10.866 0 7 0ZM7 9.5C5.619 9.5 4.5 8.381 4.5 7C4.5 5.619 5.619 4.5 7 4.5C8.381 4.5 9.5 5.619 9.5 7C9.5 8.381 8.381 9.5 7 9.5Z",fill:n||"currentColor"}))},V=function(e){var t=e.className,n=e.color;return m.default.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:t},m.default.createElement("path",{d:"M9.99967 6.66658C8.15801 6.66658 6.66634 8.15825 6.66634 9.99992C6.66634 11.8416 8.15801 13.3333 9.99967 13.3333C11.8413 13.3333 13.333 11.8416 13.333 9.99992C13.333 8.15825 11.8413 6.66658 9.99967 6.66658ZM17.4497 9.16658C17.0663 5.69158 14.308 2.93325 10.833 2.54992V1.66659C10.833 1.20825 10.458 0.833252 9.99967 0.833252C9.54134 0.833252 9.16634 1.20825 9.16634 1.66659V2.54992C5.69134 2.93325 2.93301 5.69158 2.54967 9.16658H1.66634C1.20801 9.16658 0.833008 9.54158 0.833008 9.99992C0.833008 10.4583 1.20801 10.8333 1.66634 10.8333H2.54967C2.93301 14.3083 5.69134 17.0666 9.16634 17.4499V18.3333C9.16634 18.7916 9.54134 19.1666 9.99967 19.1666C10.458 19.1666 10.833 18.7916 10.833 18.3333V17.4499C14.308 17.0666 17.0663 14.3083 17.4497 10.8333H18.333C18.7913 10.8333 19.1663 10.4583 19.1663 9.99992C19.1663 9.54158 18.7913 9.16658 18.333 9.16658H17.4497ZM9.99967 15.8333C6.77467 15.8333 4.16634 13.2249 4.16634 9.99992C4.16634 6.77492 6.77467 4.16658 9.99967 4.16658C13.2247 4.16658 15.833 6.77492 15.833 9.99992C15.833 13.2249 13.2247 15.8333 9.99967 15.8333Z",fill:n||"currentColor"}))},K=function(e){var t=e.className,n=e.color;return m.default.createElement("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.default.createElement("path",{d:"M11 18C14.866 18 18 14.866 18 11C18 7.13401 14.866 4 11 4C7.13401 4 4 7.13401 4 11C4 14.866 7.13401 18 11 18Z",stroke:n||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.default.createElement("path",{d:"M20 20L16 16",stroke:n||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))},Z=function(e){var t=e.width,n=e.height;return m.default.createElement("svg",{width:t||30,height:n||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.default.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}))},G=v.default.li(T||(T=e.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 8px 16px;\n\n > :first-child {\n flex: 1;\n }\n\n > :nth-child(2) {\n flex: 6;\n }\n\n & + li::before {\n content: '';\n position: absolute;\n left: 18px;\n right: 18px;\n top: 0;\n height: 1px;\n background-color: ",";\n }\n"],["\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 8px 16px;\n\n > :first-child {\n flex: 1;\n }\n\n > :nth-child(2) {\n flex: 6;\n }\n\n & + li::before {\n content: '';\n position: absolute;\n left: 18px;\n right: 18px;\n top: 0;\n height: 1px;\n background-color: ",";\n }\n"])),s.theme.colors.neutral100),U=v.default.div(O||(O=e.__makeTemplateObject(["\n display: flex;\n position: absolute;\n top: 48px;\n min-width: 100%;\n box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),\n 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n border-radius: 6px;\n background-color: white;\n z-index: 30;\n\n "," {\n position: relative;\n top: 0;\n box-shadow: initial;\n }\n"],["\n display: flex;\n position: absolute;\n top: 48px;\n min-width: 100%;\n box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),\n 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n border-radius: 6px;\n background-color: white;\n z-index: 30;\n\n "," {\n position: relative;\n top: 0;\n box-shadow: initial;\n }\n"])),s.MediaQueries.mbDown),q=v.default.ul(I||(I=e.__makeTemplateObject(["\n width: 100%;\n max-height: 600px;\n overflow-y: auto;\n"],["\n width: 100%;\n max-height: 600px;\n overflow-y: auto;\n"]))),Q=v.default(H)(M||(M=e.__makeTemplateObject(["\n width: 12px;\n height: 18px;\n"],["\n width: 12px;\n height: 18px;\n"]))),W=v.default.li(R||(R=e.__makeTemplateObject(["\n position: relative;\n cursor: pointer;\n padding: 12px 18px;\n display: flex;\n align-items: center;\n gap: 14px;\n overflow: hidden;\n\n ","\n\n & + li::before {\n content: '';\n position: absolute;\n left: 18px;\n right: 18px;\n top: 0;\n height: 1px;\n background-color: ",";\n }\n\n &:not([data-is-denied='true']):hover {\n background-color: ",";\n }\n\n &:last-child:hover {\n border-bottom-right-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n\n &:first-child:hover {\n border-top-right-radius: 6px;\n border-top-left-radius: 6px;\n }\n\n &[data-is-denied='true'] {\n cursor: not-allowed;\n }\n"],["\n position: relative;\n cursor: pointer;\n padding: 12px 18px;\n display: flex;\n align-items: center;\n gap: 14px;\n overflow: hidden;\n\n ","\n\n & + li::before {\n content: '';\n position: absolute;\n left: 18px;\n right: 18px;\n top: 0;\n height: 1px;\n background-color: ",";\n }\n\n &:not([data-is-denied='true']):hover {\n background-color: ",";\n }\n\n &:last-child:hover {\n border-bottom-right-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n\n &:first-child:hover {\n border-top-right-radius: 6px;\n border-top-left-radius: 6px;\n }\n\n &[data-is-denied='true'] {\n cursor: not-allowed;\n }\n"])),(function(e){return e.isSelected&&"\n &::after {\n content: ".concat("url(\"data:image/svg+xml,%3Csvg width='19' height='14' viewBox='0 0 19 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.9803 0.990669C16.7205 0.99841 16.4739 1.10699 16.2928 1.2934L5.99984 11.5864L2.70687 8.2934C2.61473 8.19743 2.50436 8.12081 2.38223 8.06802C2.2601 8.01524 2.12867 7.98735 1.99563 7.986C1.86259 7.98464 1.73061 8.00985 1.60743 8.06014C1.48426 8.11043 1.37235 8.18479 1.27827 8.27887C1.1842 8.37295 1.10983 8.48485 1.05954 8.60803C1.00926 8.73121 0.98405 8.86318 0.985403 8.99622C0.986757 9.12926 1.01464 9.26069 1.06743 9.38282C1.12021 9.50495 1.19684 9.61532 1.29281 9.70747L5.29281 13.7075C5.48035 13.8949 5.73467 14.0002 5.99984 14.0002C6.26501 14.0002 6.51933 13.8949 6.70687 13.7075L17.7069 2.70747C17.8514 2.567 17.9501 2.38616 17.99 2.18864C18.03 1.99112 18.0093 1.78614 17.9308 1.60055C17.8523 1.41497 17.7195 1.25744 17.5499 1.14861C17.3803 1.03978 17.1817 0.984729 16.9803 0.990669Z' fill='%232685F1'/%3E%3C/svg%3E%0A\")",";\n top: 50%;\n right: 18px;\n position: absolute;\n transform: translateY(-50%);\n }\n ")}),s.theme.colors.neutral100,s.theme.colors.neutral50),Y=v.default((function(t){var n=t.count,a=t.className,i=d.useId(n);return m.default.createElement(m.default.Fragment,null,e.__spreadArray([],Array(n),!0).map((function(e,t){return m.default.createElement(G,{className:a,key:i[t]},m.default.createElement(x.default,{count:1,height:32}),m.default.createElement(x.default,{count:1,height:24}))})))}))(A||(A=e.__makeTemplateObject(["\n &:first-child {\n padding-top: 18px;\n }\n"],["\n &:first-child {\n padding-top: 18px;\n }\n"]))),J=function(e){var t=e.cities,n=e.isLoading,i=e.onLocationClick,o=e.onCurrentLocationClick,l=e.geoLocationPermission,c=void 0===l?"unset":l,u=e.isLocationLoading,d=e.selectedLocation,p=a.useTranslations().t,h="denied"===c,f=function(){return m.default.createElement(W,{role:"button",tabIndex:0,onClick:function(e){h||(e.nativeEvent.stopImmediatePropagation(),u||o())},"data-is-denied":h},h?m.default.createElement(r.Text,{color:"var(--gray600)",size:"md"},"x"):u?m.default.createElement(x.default,{height:20,width:20}):m.default.createElement(V,{color:s.theme.colors.primaryBase}),m.default.createElement("div",null,h?m.default.createElement(r.Text,{color:"var(--gray600)",size:"sm",style:{lineHeight:1.5}},p("booking.searchBar.grantLocation")):u?m.default.createElement(x.default,{height:20,style:{width:"calc(100% - 16px)"}}):m.default.createElement(r.Text,{size:"md"},p("booking.searchBar.useCurrentLocation"))))};return m.default.createElement(U,{"data-testid":"location-search-results"},m.default.createElement(q,null,n?m.default.createElement(Y,{count:5}):!t||t.length<1?m.default.createElement(m.default.Fragment,null,f(),m.default.createElement(W,{"data-is-denied":"true"},m.default.createElement(r.Text,{size:"sm",color:"#ccc"},p("booking.searchBar.noResults")))):m.default.createElement(m.default.Fragment,null,f(),t.map((function(e){return m.default.createElement(W,{key:e.id,onClick:function(t){t.nativeEvent.stopImmediatePropagation(),i&&i(e)},role:"button",tabIndex:0,"aria-label":"Select ".concat(e.name," as location"),isSelected:(null==d?void 0:d.id)===e.id},m.default.createElement(Q,{color:s.theme.colors.neutral400}),m.default.createElement(r.Text,{size:"md"},e.name))})))))},X="TYPE_CHARACTER",$="REMOVE_CHARACTER",ee="REMOVE_ALL",te="REMOVE_LAST_VISIBLE_NODE",ne="PAUSE_FOR",ae="CHANGE_DELETE_SPEED",ie="CHANGE_DELAY",oe="PASTE_STRING",re=function(e,t){return Math.floor(Math.random()*(t-e+1))+e},le="TEXT_NODE",se=function(){function t(t){var n=this;this.state={lastFrameTime:null,pauseUntil:null,eventQueue:[],eventLoop:null,eventLoopPaused:!1,reverseCalledEvents:[],calledEvents:[],visibleNodes:[],initialOptions:null},this.options={strings:null,delay:"natural",pauseFor:1500,deleteSpeed:"natural",loop:!1,autoStart:!1,stringSplitter:null,onCreateTextNode:null,onRemoveNode:null},this.start=function(){return n.state.eventLoopPaused=!1,n.runEventLoop(),n},this.pause=function(){return n.state.eventLoopPaused=!0,n},this.stop=function(){return n.state.eventLoop&&(window.cancelAnimationFrame(n.state.eventLoop),n.state.eventLoop=null),n},this.pauseFor=function(e){return n.addEventToQueue(ne,{ms:e}),n},this.typeOutAllStrings=function(){return"string"==typeof n.options.strings?(n.typeString(n.options.strings).pauseFor(n.options.pauseFor),n):(n.options.strings.forEach((function(e){n.typeString(e).pauseFor(n.options.pauseFor).deleteAll(n.options.deleteSpeed)})),n)},this.typeString=function(e,t){if(void 0===t&&(t=null),e){var a=(n.options||{}).stringSplitter,i="function"==typeof a?a(e):e.split("");n.typeCharacters(i,t)}return n},this.pasteString=function(e,t){return void 0===t&&(t=null),e&&n.addEventToQueue(oe,{character:e,node:t}),n},this.deleteAll=function(e){return void 0===e&&(e="natural"),n.addEventToQueue(ee,{speed:e}),n},this.changeDeleteSpeed=function(e){if(!e)throw new Error("Must provide new delete speed");return n.addEventToQueue(ae,{speed:e}),n},this.changeDelay=function(e){if(!e)throw new Error("Must provide new delay");return n.addEventToQueue(ie,{delay:e}),n},this.deleteChars=function(e){if(!e)throw new Error("Must provide amount of characters to delete");for(var t=0;t<e;t++)n.addEventToQueue($);return n},this.typeCharacters=function(e,t){if(void 0===t&&(t=null),!e||!Array.isArray(e))throw new Error("Characters must be an array");return e.forEach((function(e){n.addEventToQueue(X,{character:e,node:t})})),n},this.removeCharacters=function(e){if(!e||!Array.isArray(e))throw new Error("Characters must be an array");return e.forEach((function(){n.addEventToQueue($)})),n},this.addEventToQueue=function(e,t,a){return void 0===a&&(a=!1),n.addEventToStateProperty(e,t,a,"eventQueue")},this.addReverseCalledEvent=function(e,t,a){return void 0===a&&(a=!1),n.options.loop?n.addEventToStateProperty(e,t,a,"reverseCalledEvents"):n},this.addEventToStateProperty=function(t,a,i,o){void 0===i&&(i=!1);var r={eventName:t,eventArgs:a||{}};return n.state[o]=i?e.__spreadArray([r],n.state[o],!0):e.__spreadArray(e.__spreadArray([],n.state[o],!0),[r],!1),n},this.runEventLoop=function(){n.state.lastFrameTime||(n.state.lastFrameTime=Date.now());var t=Date.now(),a=t-n.state.lastFrameTime;if(!n.state.eventQueue.length){if(!n.options.loop)return;n.state.eventQueue=e.__spreadArray([],n.state.calledEvents,!0),n.state.calledEvents=[],n.options=e.__assign({},n.state.initialOptions)}if(n.state.eventLoop=window.requestAnimationFrame(n.runEventLoop),!n.state.eventLoopPaused){if(n.state.pauseUntil){if(t<n.state.pauseUntil)return;n.state.pauseUntil=null}var i=e.__spreadArray([],n.state.eventQueue,!0),o=i.shift();if(!(a<=(o.eventName===te||o.eventName===$?"natural"===n.options.deleteSpeed?re(40,80):n.options.deleteSpeed:"natural"===n.options.delay?re(120,160):n.options.delay))){var r=o.eventName,l=o.eventArgs;switch(r){case oe:case X:var s=l.character,c=document.createTextNode(s),u=c;n.options.onCreateTextNode&&"function"==typeof n.options.onCreateTextNode&&(u=n.options.onCreateTextNode(s,c)),n.state.visibleNodes=e.__spreadArray(e.__spreadArray([],n.state.visibleNodes,!0),[{type:le,character:s,node:u}],!1);break;case $:i.unshift({eventName:te,eventArgs:{removingCharacterNode:!0}});break;case ne:var d=o.eventArgs.ms;n.state.pauseUntil=Date.now()+parseInt(d);break;case ee:var p=n.state.visibleNodes,h=l.speed,f=[];h&&f.push({eventName:ae,eventArgs:{speed:h,temp:!0}});for(var g=0,m=p.length;g<m;g++)f.push({eventName:te,eventArgs:{removingCharacterNode:!1}});h&&f.push({eventName:ae,eventArgs:{speed:n.options.deleteSpeed,temp:!0}}),i.unshift.apply(i,f);break;case te:if(n.state.visibleNodes.length){var C=n.state.visibleNodes.pop(),v=C.node;s=C.character;n.options.onRemoveNode&&"function"==typeof n.options.onRemoveNode&&n.options.onRemoveNode({node:v,character:s}),v&&v.parentNode.removeChild(v)}break;case ae:n.options.deleteSpeed=o.eventArgs.speed;break;case ie:n.options.delay=o.eventArgs.delay}n.options.loop&&(o.eventName===te||o.eventArgs&&o.eventArgs.temp||(n.state.calledEvents=e.__spreadArray(e.__spreadArray([],n.state.calledEvents,!0),[o],!1))),n.state.eventQueue=i,n.state.lastFrameTime=t}}},t&&(this.options=e.__assign(e.__assign({},this.options),t)),this.state.initialOptions=e.__assign({},this.options),this.init()}return t.prototype.init=function(){this.addEventToQueue(ee,null,!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()},t}();function ce(e){var n=e.inputRef,i=e.wrapperRef,o=e.disabled,r=a.useTranslations(),l=r.t,s=r.locale,c=t.useMemo((function(){if(o)return[];var e=["booking.searchBar.placeholder.hospital","booking.searchBar.placeholder.doctor"];return"zh-TW"!==s&&e.push("booking.searchBar.placeholder.specialty","booking.searchBar.placeholder.service"),b.default(e).map((function(e){return l(e)}))}),[l,s]);function u(e){var t=p();return t&&(t.placeholder=t.placeholder+e),null}function d(){var e=p();e&&(e.placeholder=e.placeholder.slice(0,-1))}function p(){return n&&n.current?n.current:i&&i.current&&i.current.querySelector("input")||null}t.useEffect((function(){if(!o){var e=p();e&&(e.placeholder="",new se({strings:c,autoStart:!0,loop:!0,delay:32,deleteSpeed:32,pauseFor:1500,onCreateTextNode:u,onRemoveNode:d}))}}),[n,i])}var ue,de=v.default.div(ue||(ue=e.__makeTemplateObject(["\n user-select: none;\n input {\n pointer-events: none;\n background-color: white;\n }\n"],["\n user-select: none;\n input {\n pointer-events: none;\n background-color: white;\n }\n"])));function pe(n){var i=n.focused,o=n.value,r=void 0===o?"":o,l=n.onClick,c=n.trackingAttributes,u=n.inputSearchPlaceholder,d=a.useTranslations().t,p=t.useRef(null);ce({wrapperRef:p,disabled:!!u});var h=t.useMemo((function(){return c?{"data-event-category":c.dataEventCategory,"data-event-action":c.dataEventAction,"data-event-label":c.dataEventLabel}:{}}),[c]);return m.default.createElement(de,e.__assign({onClick:function(){return l&&l()},ref:p},h),m.default.createElement(j,{inputClassName:"location"===i?"focused":void 0,name:"booking-search-placeholder",displayIcon:m.default.createElement(K,{color:s.theme.colors.gray400}),placeholder:d("booking.searchBar.searchInput.placeholder"),value:r,size:"md"}))}var he,fe,ge,me,Ce,ve,xe=v.default.header(he||(he=e.__makeTemplateObject(["\n display: flex;\n height: 64px;\n align-items: center;\n justify-content: space-between;\n margin: 0 auto;\n position: sticky;\n z-index: 99;\n background-color: white;\n top: 0;\n left: 0;\n"],["\n display: flex;\n height: 64px;\n align-items: center;\n justify-content: space-between;\n margin: 0 auto;\n position: sticky;\n z-index: 99;\n background-color: white;\n top: 0;\n left: 0;\n"]))),be=v.default.div(fe||(fe=e.__makeTemplateObject(["\n display: inline-flex;\n flex: 1;\n justify-content: flex-end;\n cursor: pointer;\n text-decoration: underline;\n"],["\n display: inline-flex;\n flex: 1;\n justify-content: flex-end;\n cursor: pointer;\n text-decoration: underline;\n"]))),ye=v.default.div(ge||(ge=e.__makeTemplateObject(["\n display: flex;\n align-items: center;\n margin-left: 16px;\n cursor: pointer;\n"],["\n display: flex;\n align-items: center;\n margin-left: 16px;\n cursor: pointer;\n"]))),_e=v.default.div(me||(me=e.__makeTemplateObject(["\n width: 100%;\n margin-left: 24px;\n"],["\n width: 100%;\n margin-left: 24px;\n"]))),we=v.default(r.Text)(Ce||(Ce=e.__makeTemplateObject(["\n color: ",";\n text-align: start;\n"],["\n color: ",";\n text-align: start;\n"])),s.theme.colors.secondaryDark),Ee=function(e){var t=e.className,n=e.onLeftClick,a=e.headingText,i=e.onRightClick,o=e.iconLeft,r=e.textRight;return m.default.createElement(xe,{className:t},m.default.createElement(ye,{onClick:n},o||m.default.createElement(D,{color:s.theme.colors.gray800})),m.default.createElement(_e,null,m.default.createElement(we,{size:"md",type:"bold"},a)),m.default.createElement(be,{onClick:i},r&&m.default.createElement("p",null,r)))},ke={"en-PH":3,"tl-PH":2,"id-ID":3,"vi-VN":2,"zh-TW":0},Le={isMobile:!1,isDebug:!1,navigateTo:null,geoLocationPermission:"unset",geoLocationCoordinates:null,focused:"none",searchLocationKeywords:"",searchKeywords:"",selectedLocation:null,defaultCity:null,initialCities:[],cities:[],searchResults:[],initialSearchResults:[],isLoadingCities:!1,isLoadingSearchResults:!1,isMobileModalOpened:!1,initialSelectedCity:null,autoCompleteDisabled:!1,inputSearchPlaceholder:"",locale:"vi-VN"};function Se(t){var n=t.selectedLocation,a=t.searchLocationKeywords;return n&&a!==n.name?e.__assign(e.__assign({},t),{searchLocationKeywords:n.name}):t}function Te(t,a){var i;switch(t.isDebug&&console.log("bookingSearchBar",{action:a,state:t}),a.type){case ve.NavigateTo:return e.__assign(e.__assign({},t),{navigateTo:a.payload,focused:"none",isMobileModalOpened:!1});case ve.ClickOutsideInputLocation:return t.isMobile||"location"!==t.focused?t:Se(e.__assign(e.__assign({},t),{focused:"none"}));case ve.ClickOutsideInputSearch:return t.isMobile||"search"!==t.focused?t:e.__assign(e.__assign({},t),{focused:"none"});case ve.FocusInputLocation:var o=e.__assign(e.__assign({},t),{focused:"location"});return(null===(i=t.selectedLocation)||void 0===i?void 0:i.id)===n.ID_OPTION_CURRENT_LOCATION&&(o.searchLocationKeywords=""),o;case ve.FocusInputSearch:var r=e.__assign(e.__assign({},t),{focused:"search"});return t.isMobile?Se(r):r;case ve.ChangeInputLocation:return e.__assign(e.__assign({},t),{searchLocationKeywords:a.payload});case ve.ChangeInputSearch:var l=a.payload;return e.__assign(e.__assign({},t),{searchKeywords:l,isLoadingSearchResults:l.trim().length>ke[t.locale]});case ve.SelectCurrentLocation:return e.__assign(e.__assign({},t),{focused:"none",selectedLocation:a.payload,searchLocationKeywords:a.payload.name});case ve.ClearInputLocation:return e.__assign(e.__assign({},t),{focused:"location",cities:t.initialCities,searchLocationKeywords:""});case ve.ClearInputSearch:return e.__assign(e.__assign({},t),{focused:"search",searchKeywords:""});case ve.SelectLocation:return e.__assign(e.__assign({},t),{focused:"none",selectedLocation:a.payload,searchLocationKeywords:a.payload.name});case ve.SelectSearchResult:return e.__assign(e.__assign({},t),{searchKeywords:a.payload.name,isMobileModalOpened:!1,focused:"none",navigateTo:a.payload.url});case ve.FetchCitiesStart:return e.__assign(e.__assign({},t),{isLoadingCities:!0});case ve.FetchCitiesFinish:return e.__assign(e.__assign({},t),{isLoadingCities:!1});case ve.FetchSearchResultsStart:return e.__assign(e.__assign({},t),{isLoadingSearchResults:!0});case ve.FetchSearchResultsFinish:return e.__assign(e.__assign({},t),{isLoadingSearchResults:!1});case ve.FetchSearchResultsComplete:var s=e.__assign(e.__assign({},t),{searchResults:a.payload});return 0===t.initialSearchResults.length&&(s.initialSearchResults=a.payload),s;case ve.FetchCitiesByGeoIpComplete:var c=a.payload.cities,u=a.payload.default;(c=c.filter((function(e){return e.id!==u.id}))).unshift(u),t.initialSelectedCity&&!c.find((function(e){return e.id===t.initialSelectedCity.id}))&&c.unshift(t.initialSelectedCity);var d=e.__assign(e.__assign({},t),{defaultCity:u,initialCities:c,cities:c});return"denied"!==t.geoLocationPermission||t.initialSelectedCity||(d.selectedLocation=u,d.searchLocationKeywords=u.name),d;case ve.FetchCitiesByKeywordComplete:return e.__assign(e.__assign({},t),{cities:a.payload});case ve.DisplayInitialCities:return e.__assign(e.__assign({},t),{cities:t.initialCities});case ve.DisplayInitialSearchResults:return e.__assign(e.__assign({},t),{searchResults:t.initialSearchResults,isLoadingSearchResults:!1});case ve.GrantGeoLocationPermission:return e.__assign(e.__assign({},t),{geoLocationPermission:"granted",geoLocationCoordinates:a.payload});case ve.DenyGeoLocationPermission:return e.__assign(e.__assign({},t),{geoLocationPermission:"denied",geoLocationCoordinates:null});case ve.OpenMobileModal:return e.__assign(e.__assign({},t),{isMobileModalOpened:!0});case ve.CloseMobileModal:return e.__assign(e.__assign({},t),{isMobileModalOpened:!1});case ve.UpdateInitialSearchValue:return e.__assign(e.__assign({},t),{searchKeywords:a.payload});case ve.SetInputSearchPlaceholder:return e.__assign(e.__assign({},t),{inputSearchPlaceholder:a.payload});default:return t}}!function(e){e.NavigateTo="navigate to url",e.ClickOutsideInputLocation="click outside input location",e.ClickOutsideInputSearch="click outside input search",e.SelectCurrentLocation="select current location",e.FocusInputLocation="focus input location",e.FocusInputSearch="focus input search",e.ChangeInputLocation="change input location",e.ChangeInputSearch="change input search",e.ClearInputLocation="clear input location",e.ClearInputSearch="clear input search",e.SelectLocation="select location",e.FetchCitiesStart="fetch cities start",e.FetchCitiesFinish="fetch cities finish",e.FetchSearchResultsStart="fetch search results start",e.FetchSearchResultsComplete="fetch search results complete",e.FetchSearchResultsFinish="fetch search results finish",e.FetchCitiesByGeoIpComplete="fetch cities by geo IP finish",e.FetchCitiesByKeywordComplete="fetch cities by keyword finish",e.DisplayInitialCities="display initial cities",e.DisplayInitialSearchResults="display initial search results",e.GrantGeoLocationPermission="grant geolocation permission",e.DenyGeoLocationPermission="deny geolocation permission",e.OpenMobileModal="open mobile modal",e.CloseMobileModal="close mobile modal",e.UpdateInitialSearchValue="update initial search value",e.SelectSearchResult="select search result",e.SetInputSearchPlaceholder="set input search placeholder"}(ve||(ve={}));var Oe,Ie,Me,Re,Ae,Ne,Pe,Fe=function(){return m.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},m.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.97887 8.15493C2.97887 5.29627 5.29627 2.97887 8.15493 2.97887C11.0136 2.97887 13.331 5.29627 13.331 8.15493C13.331 11.0136 11.0136 13.331 8.15493 13.331C5.29627 13.331 2.97887 11.0136 2.97887 8.15493ZM8.15493 1.5C4.47951 1.5 1.5 4.47951 1.5 8.15493C1.5 11.8303 4.47951 14.8099 8.15493 14.8099C9.72624 14.8099 11.1704 14.2653 12.3089 13.3546L15.2377 16.2834C15.5265 16.5722 15.9947 16.5722 16.2834 16.2834C16.5722 15.9947 16.5722 15.5265 16.2834 15.2377L13.3546 12.3089C14.2653 11.1704 14.8099 9.72624 14.8099 8.15493C14.8099 4.47951 11.8303 1.5 8.15493 1.5Z",fill:"white"}))},ze=v.default.button(Oe||(Oe=e.__makeTemplateObject(["\n min-height: 100%;\n border-radius: 6px;\n background-color: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 11px;\n cursor: pointer;\n flex: 0.3;\n\n "," {\n --margin: 16px;\n min-height: 44px;\n margin: var(--margin);\n width: calc(100% - var(--margin) * 2);\n position: absolute;\n bottom: 0;\n }\n\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n\n &:focus-visible {\n outline: 1px solid black;\n }\n"],["\n min-height: 100%;\n border-radius: 6px;\n background-color: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 11px;\n cursor: pointer;\n flex: 0.3;\n\n "," {\n --margin: 16px;\n min-height: 44px;\n margin: var(--margin);\n width: calc(100% - var(--margin) * 2);\n position: absolute;\n bottom: 0;\n }\n\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n\n &:focus-visible {\n outline: 1px solid black;\n }\n"])),(function(e){return e.theme.colors.primaryBase}),s.MediaQueries.mbDown,(function(e){return e.theme.colors.primaryHover}),(function(e){return e.theme.colors.primaryActive})),je=v.default(r.Text)(Ie||(Ie=e.__makeTemplateObject(["\n font-weight: ",";\n"],["\n font-weight: ",";\n"])),(function(e){return e.theme.sizes.fwSemiBold})),Be=function(e){var t=e.onClick,n=(0,a.useTranslations().t)("booking.searchBar.searchButton");return m.default.createElement(ze,{onClick:t,title:n},m.default.createElement(Fe,null),m.default.createElement(je,{size:"s3",color:"white"},n))},De=v.default.div(Me||(Me=e.__makeTemplateObject(["\n display: flex;\n gap: 16px;\n "," {\n flex-direction: column;\n padding: 14px;\n background-color: ",";\n\n input {\n filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.04))\n drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.06))\n drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));\n }\n }\n\n input {\n background-color: white;\n }\n"],["\n display: flex;\n gap: 16px;\n "," {\n flex-direction: column;\n padding: 14px;\n background-color: ",";\n\n input {\n filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.04))\n drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.06))\n drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));\n }\n }\n\n input {\n background-color: white;\n }\n"])),s.MediaQueries.mbDown,s.theme.colors.blue50),He=v.default.div(Re||(Re=e.__makeTemplateObject(["\n position: relative;\n"],["\n position: relative;\n"]))),Ve=v.default(He)(Ae||(Ae=e.__makeTemplateObject(["\n flex: 1;\n"],["\n flex: 1;\n"]))),Ke=v.default(He)(Ne||(Ne=e.__makeTemplateObject(["\n flex: 2;\n"],["\n flex: 2;\n"]))),Ze=v.default((function(e){var t=e.className,n=e.color;return m.default.createElement("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.default.createElement("rect",{x:"4",y:"4",width:"16",height:"16",rx:"8",fill:"white"}),m.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM8.29289 8.29289C8.68342 7.90237 9.31658 7.90237 9.70711 8.29289L12 10.5858L14.2929 8.29289C14.6834 7.90237 15.3166 7.90237 15.7071 8.29289C16.0976 8.68342 16.0976 9.31658 15.7071 9.70711L13.4142 12L15.7071 14.2929C16.0976 14.6834 16.0976 15.3166 15.7071 15.7071C15.3166 16.0976 14.6834 16.0976 14.2929 15.7071L12 13.4142L9.70711 15.7071C9.31658 16.0976 8.68342 16.0976 8.29289 15.7071C7.90237 15.3166 7.90237 14.6834 8.29289 14.2929L10.5858 12L8.29289 9.70711C7.90237 9.31658 7.90237 8.68342 8.29289 8.29289Z",fill:n||"currentColor"}))}))(Pe||(Pe=e.__makeTemplateObject(["\n display: none;\n &.shown {\n display: block;\n }\n"],["\n display: none;\n &.shown {\n display: block;\n }\n"])));function Ge(e){var i=e.isMobile,o=e.state,r=e.dispatch,l=e.debouncedFetchCitiesByKeyword,c=e.debouncedFetchSearchResults,u=e.focusLocationInput,d=e.focusSearchInput,p=e.renderLocationResults,f=e.renderSearchResults,g=e.locationTrackingAttributes,C=e.trackingAttributes,v=e.onSearch,x=e.initalSearchValue,b=t.useRef(null),y=t.useRef(null),_=o.focused,w=o.searchLocationKeywords,E=o.geoLocationPermission,k=o.selectedLocation,L=o.searchKeywords,S=o.inputSearchPlaceholder,T=a.useTranslations().t;ce({wrapperRef:y,disabled:!!S}),h.useOutsideClick(b,(function(){r({type:ve.ClickOutsideInputLocation})})),h.useOutsideClick(y,(function(){r({type:ve.ClickOutsideInputSearch})}));var O=t.useMemo((function(){return"granted"===E&&(null==k?void 0:k.id)===n.ID_OPTION_CURRENT_LOCATION?s.theme.colors.primaryBase:s.theme.colors.gray400}),[E,k]),I=t.useCallback((function(e){r({type:ve.ChangeInputSearch,payload:e}),"function"!=typeof v&&(e.trim().length>ke[o.locale]||x?c(e.trim(),o):(c.cancel(),r({type:ve.DisplayInitialSearchResults})))}),[r,o]),M=t.useCallback((function(e){r({type:ve.ChangeInputLocation,payload:e}),e.trim().length>ke[o.locale]?l(e.trim()):(l.cancel(),r({type:ve.DisplayInitialCities}))}),[l,r]);return m.default.createElement(De,null,m.default.createElement(Ve,{ref:b},m.default.createElement(j,{inputClassName:"location"===_?"focused":void 0,placeholder:T("booking.searchBar.locationPlaceholder"),autoComplete:"off",name:"search-location",displayIcon:m.default.createElement(H,{className:"location-pin-icon",color:O}),actionIcon:m.default.createElement(Ze,{color:s.theme.colors.gray300,className:""!==w?"shown":""}),onActionClick:function(){r({type:ve.ClearInputLocation}),l.cancel(),u()},value:w,onChange:M,onFocus:function(){return r({type:ve.FocusInputLocation})},size:"md",trackingAttributes:g}),!i&&p()),m.default.createElement(Ke,{ref:y},m.default.createElement(j,{placeholder:S||T("booking.searchBar.searchInput.placeholder"),autoComplete:"off",name:"search-results",actionIcon:m.default.createElement(Ze,{color:s.theme.colors.gray300,className:""!==L?"shown":""}),onActionClick:function(){r({type:ve.ClearInputSearch}),c.cancel(),c("",o),d()},value:L,onChange:I,onFocus:function(){return r({type:ve.FocusInputSearch})},inputClassName:"search"===_?"focused":void 0,size:"md",trackingAttributes:C,onKeyPress:function(e){o.autoCompleteDisabled&&"Enter"===e.key&&v&&v({cityId:o.selectedLocation.id,keyword:L})},enterKeyHint:o.autoCompleteDisabled?"search":void 0}),!i&&f()),o.autoCompleteDisabled&&!o.isMobile&&m.default.createElement(Be,{onClick:function(){v({cityId:o.selectedLocation.id,keyword:L})}}))}var Ue,qe,Qe,We,Ye,Je,Xe,$e,et,tt,nt,at,it,ot,rt=v.default.li(Ue||(Ue=e.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: var(--rowGap);\n cursor: pointer;\n"],["\n display: flex;\n align-items: center;\n gap: var(--rowGap);\n cursor: pointer;\n"]))),lt=v.default.div(qe||(qe=e.__makeTemplateObject(["\n --wrapper-size: var(--graphicSize);\n border-radius: calc(var(--wrapper-size) / 2);\n background-color: var(--neutral50);\n width: var(--wrapper-size);\n height: var(--wrapper-size);\n aspect-ratio: 1/1;\n overflow: hidden;\n\n ","\n\n img {\n width: var(--graphicSize);\n height: var(--graphicSize);\n ","\n }\n\n &:focus-visible {\n outline: 1px solid ",";\n }\n"],["\n --wrapper-size: var(--graphicSize);\n border-radius: calc(var(--wrapper-size) / 2);\n background-color: var(--neutral50);\n width: var(--wrapper-size);\n height: var(--wrapper-size);\n aspect-ratio: 1/1;\n overflow: hidden;\n\n ","\n\n img {\n width: var(--graphicSize);\n height: var(--graphicSize);\n ","\n }\n\n &:focus-visible {\n outline: 1px solid ",";\n }\n"])),(function(e){var t=e.type;return t&&"doctors"===t&&"\n border-radius: calc(var(--graphicSize) / 2);\n "}),(function(e){var t=e.type;return t&&"doctors"===t?"\n\n object-fit: cover; \n ":"\n object-fit: contain;\n "}),s.theme.colors.gray600),st=v.default(r.Text)(Qe||(Qe=e.__makeTemplateObject(["\n line-height: 22px;\n letter-spacing: -0.2px;\n\n "," {\n &[data-size='p3'] {\n font-size: 14px;\n }\n }\n"],["\n line-height: 22px;\n letter-spacing: -0.2px;\n\n "," {\n &[data-size='p3'] {\n font-size: 14px;\n }\n }\n"])),s.MediaQueries.tdUp),ct=v.default.figure(We||(We=e.__makeTemplateObject(["\n max-width: var(--graphicSize);\n min-width: var(--graphicSize);\n"],["\n max-width: var(--graphicSize);\n min-width: var(--graphicSize);\n"]))),ut=v.default.svg(Ye||(Ye=e.__makeTemplateObject(["\n margin: 0 auto;\n display: block;\n"],["\n margin: 0 auto;\n display: block;\n"]))),dt=v.default.div(Je||(Je=e.__makeTemplateObject(["\n display: grid;\n place-items: center;\n"],["\n display: grid;\n place-items: center;\n"]))),pt={doctors:function(e){var t=e.width,n=e.height;return m.default.createElement("svg",{width:t||32,height:n||32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.default.createElement("g",{clipPath:"url(#clip0_14712_400114)"},m.default.createElement("rect",{width:"32",height:"32",rx:"16",fill:"#E4E8EC"}),m.default.createElement("path",{d:"M22.065 9.58305C22.1108 9.80952 22.1431 10.0396 22.1614 10.2722C22.3769 13.0522 22.5858 16.1276 22.5727 17.618C22.5306 20.5688 19.708 21.1325 19.4564 21.1769L19.4495 21.5357L19.5228 23.9014C20.8688 23.9341 22.203 24.1759 23.4772 24.6196C24.5264 24.9739 25.4827 25.5591 26.2757 26.332C27.0688 27.105 27.6783 28.0461 28.0594 29.0858L31.9886 39.2068C31.91 39.3048 30.6939 39.6356 29.4888 39.944C30.1695 42.3315 30.4582 44.8142 30.3432 47.2953C30.2991 48.2666 30.1816 49.264 29.7245 50.1211C29.4508 50.6342 29.0319 51.0912 28.5296 51.3753C28.5099 51.4347 28.4864 51.4928 28.4593 51.5495C28.4293 51.6146 28.3908 51.6756 28.3448 51.7307C28.3293 51.7772 28.3232 51.8406 28.3162 51.9135C28.3004 52.0779 28.2799 52.2909 28.1362 52.4685C28.001 52.6373 27.8519 52.7945 27.6905 52.9386C27.6905 52.9386 27.092 52.9667 26.4133 52.9845L26.458 58.4088H5.7492L6.30965 52.9523L5.66093 53.1637C5.07664 53.3528 4.45628 53.4028 3.84925 53.3099C3.24222 53.2169 2.66526 52.9835 2.1643 52.6283C1.61489 52.2388 1.17445 51.715 0.884966 51.1068C0.595484 50.4987 0.46662 49.8266 0.510669 49.1545L0.644528 47.1369L1.41503 38.3366L1.81323 38.4135L-0.914307 37.8437L-0.402886 36.5663C-0.407359 36.5645 -0.411803 36.5627 -0.416214 36.5608C-0.410804 36.56 -0.40538 36.5594 -0.399946 36.5589L2.05995 30.4146C3.00034 28.0825 4.7421 26.1624 6.97187 24.9999C8.56171 24.176 10.3028 23.6861 12.0882 23.5597L11.788 16.5865C11.1882 16.6507 10.0095 16.5266 9.96087 14.954C9.91229 13.3824 11.0457 13.3171 11.6507 13.3961L11.6445 13.2523C11.5785 12.8433 11.5088 12.439 11.4577 12.2132C11.3782 11.8628 11.2611 11.4953 11.1419 11.1207C10.8794 10.2967 10.6061 9.43855 10.697 8.65293C10.697 8.65293 10.6909 8.00438 11.4565 7.24044C11.3707 6.86644 11.3686 6.47786 11.4507 6.10258C11.5366 5.70965 11.7125 5.34199 11.9645 5.02848C12.2165 4.71497 12.5377 4.46414 12.9029 4.29569C13.2682 4.12725 13.6675 4.04577 14.0696 4.05766C14.2277 4.06393 14.3849 4.08493 14.5418 4.10589C14.7932 4.13945 15.0439 4.17294 15.2971 4.14581C15.7708 4.09409 16.177 3.83884 16.5862 3.58167C16.8357 3.42492 17.0863 3.26745 17.354 3.15494C17.9119 2.93744 18.5266 2.91281 19.1002 3.08497C19.6738 3.25713 20.1733 3.61619 20.5192 4.105C20.5943 4.21716 20.6621 4.33678 20.7298 4.45631C20.9035 4.76299 21.077 5.06915 21.373 5.24769C21.5927 5.38236 21.8482 5.42658 22.1057 5.47114C22.2633 5.49842 22.4216 5.52582 22.5728 5.57417C23.0267 5.71015 23.3999 6.0411 23.6319 6.45436C23.6327 6.40753 23.6317 6.36062 23.629 6.31374C23.6502 6.3657 23.6623 6.42092 23.6649 6.47698C23.6661 6.49165 23.667 6.50632 23.6677 6.521C23.8246 6.82609 23.9058 7.17114 23.8885 7.51347C23.8544 7.93447 23.7053 8.33801 23.4574 8.68001C23.2096 9.02201 22.8725 9.28933 22.483 9.45278C22.3469 9.50712 22.2071 9.55061 22.065 9.58305Z",fill:"white"})),m.default.createElement("defs",null,m.default.createElement("clipPath",{id:"clip0_14712_400114"},m.default.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"}))))},services:function(e){var t=e.width,n=e.height;return m.default.createElement("svg",{width:t||30,height:n||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.default.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}),m.default.createElement("path",{d:"M14.9998 6.66663C12.2752 6.66663 9.85335 7.97848 8.33317 9.99996H10.5988C11.8 8.94527 13.3625 8.33329 14.9998 8.33329C16.6372 8.33329 18.1997 8.94527 19.4009 9.99996H21.6665C20.1463 7.97848 17.7244 6.66663 14.9998 6.66663ZM7.7863 10.8333C7.07666 13.0403 6.6665 15.5989 6.6665 18.3333C6.6665 20.0846 6.82601 21.7675 7.13525 23.3333H22.8644C23.1737 21.7675 23.3332 20.0846 23.3332 18.3333C23.3332 15.5989 22.923 13.0403 22.2134 10.8333H7.7863ZM14.9998 13.3333C17.3013 13.3333 19.1665 15.1985 19.1665 17.5C19.1665 19.8014 17.3013 21.6666 14.9998 21.6666C12.6984 21.6666 10.8332 19.8014 10.8332 17.5C10.8332 15.1985 12.6984 13.3333 14.9998 13.3333ZM14.1665 15V16.6666H12.4998V18.3333H14.1665V20H15.8332V18.3333H17.4998V16.6666H15.8332V15H14.1665Z",fill:"#BFC5CC"}))}},ht=function(e){var n=e.type,a=e.item,i=e.imageUrl,o=e.onClickItem,r=t.useMemo((function(){var e=pt[n]||Z;return m.default.createElement(e,{width:32,height:"services"===n?32:24})}),[n]);return m.default.createElement(rt,{onClick:function(){return o&&o(a)},onKeyDown:function(e){"Enter"!==e.key&&"Space"!==e.key||o&&o(a)},tabIndex:0,role:"button"},m.default.createElement(ct,null,"hospitals"===n?m.default.createElement(ut,{width:"12",height:"16",viewBox:"0 0 12 16"},m.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.75 5.94873C0.75 3.04623 3.0975 0.69873 6 0.69873C8.9025 0.69873 11.25 3.04623 11.25 5.94873C11.25 9.07623 7.935 13.3887 6.5775 15.0312C6.2775 15.3912 5.73 15.3912 5.43 15.0312C4.065 13.3887 0.75 9.07623 0.75 5.94873ZM4.125 5.94873C4.125 6.98373 4.965 7.82373 6 7.82373C7.035 7.82373 7.875 6.98373 7.875 5.94873C7.875 4.91373 7.035 4.07373 6 4.07373C4.965 4.07373 4.125 4.91373 4.125 5.94873Z",fill:"#9AA2AC"})):m.default.createElement(lt,{type:n},i?m.default.createElement("img",{src:i,width:32,height:"services"===n?32:24}):r)),m.default.createElement(st,{color:s.theme.colors.gray800,size:"p3"},a.name))},ft=function(){return m.default.createElement("svg",{width:"14",height:"18",viewBox:"0 0 14 18"},m.default.createElement("path",{d:"M7.00004 0.666992C5.29757 0.666992 3.64067 0.813476 2.52087 1.03158C1.73311 1.18457 1.16671 1.86816 1.16671 2.6722V4.83366C1.16671 5.29264 1.54106 5.66699 2.00004 5.66699H12C12.459 5.66699 12.8334 5.29264 12.8334 4.83366V2.69824C12.8334 1.89421 12.267 1.21061 11.4792 1.05762C10.3562 0.839518 8.69275 0.666992 7.00004 0.666992ZM6.16671 1.50033H7.83337V2.33366H8.66671V4.00033H7.83337V4.83366H6.16671V4.00033H5.33337V2.33366H6.16671V1.50033ZM1.42712 6.50033C1.3197 6.89421 1.24158 7.32389 1.19275 7.77637C1.14718 8.18001 1.05603 9.25423 1.06254 9.36491C0.603556 9.72624 0.333374 10.2861 0.333374 10.9014C0.333374 11.8356 0.977906 12.6364 1.84379 12.8285C2.74548 15.0192 4.55212 17.3337 7.00004 17.3337C9.44796 17.3337 11.2546 14.9964 12.1563 12.8024C13.0222 12.6136 13.6667 11.8356 13.6667 10.9014C13.6667 10.2861 13.3965 9.72624 12.9375 9.36491C12.9441 9.25423 12.8562 8.16048 12.8073 7.75033C12.7552 7.30436 12.6804 6.89095 12.573 6.50033H5.35942C6.52804 8.20606 9.27543 7.18717 11.0365 7.62012C11.5736 8.79199 11.1667 10.4326 11.1667 10.4326L11.8177 10.641C11.9121 10.6702 12 10.7549 12 10.9014C12 11.0576 11.8861 11.1943 11.6875 11.1878L11.0105 11.0837L10.7761 11.7347C9.96554 14.0492 8.4128 15.667 7.00004 15.667C5.58728 15.667 4.03455 14.0492 3.224 11.7347L2.96358 11.0837L2.26046 11.1878C2.11723 11.1878 2.00004 11.0576 2.00004 10.9014C2.00004 10.7549 2.08793 10.6702 2.18233 10.641L2.83337 10.4326C2.73246 10.5531 2.4102 8.7041 2.83337 8.03678C3.59184 7.5127 4.2266 7.87728 5.12504 6.50033H1.42712ZM5.17712 9.05241C4.57166 9.05241 4.08337 9.55371 4.08337 10.1722C4.08337 10.7907 4.57166 11.292 5.17712 11.292C5.78259 11.292 6.27087 10.7907 6.27087 10.1722C6.27087 9.55371 5.78259 9.05241 5.17712 9.05241ZM8.82296 9.05241C8.21749 9.05241 7.72921 9.55371 7.72921 10.1722C7.72921 10.7907 8.21749 11.292 8.82296 11.292C9.42843 11.292 9.91671 10.7907 9.91671 10.1722C9.91671 9.55371 9.42843 9.05241 8.82296 9.05241Z",fill:"#9AA2AC"}))},gt=function(){return m.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},m.default.createElement("path",{d:"M8.99996 0.666992C6.27535 0.666992 3.85348 1.97884 2.33329 4.00033H4.59892C5.80009 2.94564 7.36259 2.33366 8.99996 2.33366C10.6373 2.33366 12.1998 2.94564 13.401 4.00033H15.6666C14.1464 1.97884 11.7246 0.666992 8.99996 0.666992ZM1.78642 4.83366C1.07678 7.04069 0.666626 9.59928 0.666626 12.3337C0.666626 14.085 0.826131 15.7679 1.13538 17.3337H16.8645C17.1738 15.7679 17.3333 14.085 17.3333 12.3337C17.3333 9.59928 16.9231 7.04069 16.2135 4.83366H1.78642ZM8.99996 7.33366C11.3014 7.33366 13.1666 9.19889 13.1666 11.5003C13.1666 13.8018 11.3014 15.667 8.99996 15.667C6.69853 15.667 4.83329 13.8018 4.83329 11.5003C4.83329 9.19889 6.69853 7.33366 8.99996 7.33366ZM8.16663 9.00033V10.667H6.49996V12.3337H8.16663V14.0003H9.83329V12.3337H11.5V10.667H9.83329V9.00033H8.16663Z",fill:"#9AA2AC"}))},mt=function(){return m.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17"},m.default.createElement("path",{d:"M8 0.666992L0.5 5.63533V14.8337C0.5 15.7545 1.24583 16.5003 2.16667 16.5003H13.8333C14.7542 16.5003 15.5 15.7545 15.5 14.8337V5.63533L8 0.666992ZM11.3333 10.667H8.83333V13.167H7.16667V10.667H4.66667V9.00033H7.16667V6.50033H8.83333V9.00033H11.3333V10.667Z",fill:"#9AA2AC"}))},Ct=function(){return m.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},m.default.createElement("path",{d:"M3.83333 0.5C2.94928 0.5 2.10143 0.851189 1.47631 1.47631C0.851189 2.10143 0.5 2.94928 0.5 3.83333C0.5 4.71739 0.851189 5.56523 1.47631 6.19036C2.10143 6.81548 2.94928 7.16667 3.83333 7.16667C4.71739 7.16667 5.56523 6.81548 6.19036 6.19036C6.81548 5.56523 7.16667 4.71739 7.16667 3.83333C7.16667 2.94928 6.81548 2.10143 6.19036 1.47631C5.56523 0.851189 4.71739 0.5 3.83333 0.5V0.5ZM10.5 0.5C9.57917 0.5 8.83333 1.24583 8.83333 2.16667V5.5C8.83333 6.42083 9.57917 7.16667 10.5 7.16667H13.8333C14.7542 7.16667 15.5 6.42083 15.5 5.5V2.16667C15.5 1.24583 14.7542 0.5 13.8333 0.5H10.5ZM3.83333 8.83333C2.94928 8.83333 2.10143 9.18452 1.47631 9.80964C0.851189 10.4348 0.5 11.2826 0.5 12.1667C0.5 13.0507 0.851189 13.8986 1.47631 14.5237C2.10143 15.1488 2.94928 15.5 3.83333 15.5C4.71739 15.5 5.56523 15.1488 6.19036 14.5237C6.81548 13.8986 7.16667 13.0507 7.16667 12.1667C7.16667 11.2826 6.81548 10.4348 6.19036 9.80964C5.56523 9.18452 4.71739 8.83333 3.83333 8.83333V8.83333ZM12.1667 8.83333C11.2826 8.83333 10.4348 9.18452 9.80964 9.80964C9.18452 10.4348 8.83333 11.2826 8.83333 12.1667C8.83333 13.0507 9.18452 13.8986 9.80964 14.5237C10.4348 15.1488 11.2826 15.5 12.1667 15.5C13.0507 15.5 13.8986 15.1488 14.5237 14.5237C15.1488 13.8986 15.5 13.0507 15.5 12.1667C15.5 11.2826 15.1488 10.4348 14.5237 9.80964C13.8986 9.18452 13.0507 8.83333 12.1667 8.83333V8.83333Z",fill:"#9AA2AC"}))},vt=v.default.header(Xe||(Xe=e.__makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n padding: 12px 24px;\n background-color: ",";\n box-shadow: inset 0px 1px 0px #e4e8ec;\n"],["\n display: flex;\n justify-content: space-between;\n padding: 12px 24px;\n background-color: ",";\n box-shadow: inset 0px 1px 0px #e4e8ec;\n"])),s.theme.colors.neutral50),xt=v.default.div($e||($e=e.__makeTemplateObject(["\n display: grid;\n flex: 2;\n align-items: center;\n gap: 16px;\n grid-template-columns: 16px 1fr;\n"],["\n display: grid;\n flex: 2;\n align-items: center;\n gap: 16px;\n grid-template-columns: 16px 1fr;\n"]))),bt=v.default.p(et||(et=e.__makeTemplateObject(["\n color: ",";\n font-size: 14px;\n font-weight: ",";\n letter-spacing: -0.2px;\n line-height: 22px;\n"],["\n color: ",";\n font-size: 14px;\n font-weight: ",";\n letter-spacing: -0.2px;\n line-height: 22px;\n"])),s.theme.colors.neutral800,s.theme.sizes.fwSemiBold),yt=v.default.button(tt||(tt=e.__makeTemplateObject(["\n flex: 1;\n cursor: pointer;\n text-align: end;\n"],["\n flex: 1;\n cursor: pointer;\n text-align: end;\n"]))),_t=v.default.section(nt||(nt=e.__makeTemplateObject(["\n padding: 12px 16px;\n --rowGap: 16px;\n --graphicSize: 32px;\n\n "," {\n --rowGap: 8px;\n }\n"],["\n padding: 12px 16px;\n --rowGap: 16px;\n --graphicSize: 32px;\n\n "," {\n --rowGap: 8px;\n }\n"])),s.MediaQueries.tdUp),wt=v.default.ul(at||(at=e.__makeTemplateObject(["\n --gap: 16px;\n "," {\n --gap: 8px;\n }\n\n display: grid;\n overflow: hidden;\n gap: var(--gap);\n transition: max-height 0.8s ease-out;\n\n ","\n\n ","\n\n@media (prefers-reduced-motion) {\n transition: none;\n }\n\n "," {\n grid-template-columns: 1fr 1fr;\n } ;\n"],["\n --gap: 16px;\n "," {\n --gap: 8px;\n }\n\n display: grid;\n overflow: hidden;\n gap: var(--gap);\n transition: max-height 0.8s ease-out;\n\n ","\n\n ","\n\n@media (prefers-reduced-motion) {\n transition: none;\n }\n\n "," {\n grid-template-columns: 1fr 1fr;\n } ;\n"])),s.MediaQueries.tdUp,(function(e){return e.isMore&&"\n height: auto;\n max-height: 0;\n margin-top: var(--gap);\n "}),(function(e){return e.isShown&&"\n max-height: 600px;\n "}),s.MediaQueries.tdUp),Et=v.default(r.Text)(it||(it=e.__makeTemplateObject(["\n margin-top: 12px;\n margin-bottom: 8px;\n cursor: pointer;\n text-align: start;\n text-transform: capitalize;\n"],["\n margin-top: 12px;\n margin-bottom: 8px;\n cursor: pointer;\n text-align: start;\n text-transform: capitalize;\n"]))),kt=function(e){var i=e.type,o=e.data,l=e.state,c=e.dispatch,u=e.itemsToShow,d=e.itemsToShowDesktop,p=e.isMobile,h=e.isLoading,f=e.keyword,g=t.useState(!1),C=g[0],v=g[1],b=a.useTranslations(),y=b.t,_=b.locale,w=l.selectedLocation,E=l.searchKeywords,k=t.useMemo((function(){return n.LOCALIZED_SLUGS[_]}),[_]),L=t.useMemo((function(){return{doctors:{name:y("booking.searchPopup.doctors"),icon:m.default.createElement(ft,null),slug:k.DOCTOR},services:{name:y("booking.searchPopup.services"),icon:m.default.createElement(gt,null),slug:k.SERVICE},hospitals:{name:y("booking.searchPopup.hospitals"),icon:m.default.createElement(mt,null),slug:k.HOSPITAL},specialties:{name:y("booking.searchPopup.specialties"),icon:m.default.createElement(Ct,null),slug:k.SPECIALTIES}}}),[i,k]),S=t.useMemo((function(){return L[i].slug}),[L]),T=p?u:d;function O(e){var t="";switch(i){case"specialties":t="/".concat(w.slug,"/").concat(L.doctors.slug,"/").concat(e.slug);break;case"services":t="/".concat(w.slug,"/").concat(S,"/").concat(e.slug);break;case"doctors":case"hospitals":t="/".concat(S,"/").concat(e.slug,"-").concat(e.id)}t&&c({type:ve.SelectSearchResult,payload:{name:e.name,url:t}})}function I(e){return m.default.createElement(ht,{key:e.id,item:e,type:i,imageUrl:e.logo||e.avatar||e.thumbnail,onClickItem:O})}return m.default.createElement("section",null,m.default.createElement(vt,null,m.default.createElement(xt,null,L[i].icon,m.default.createElement(bt,null,L[i].name)),f.trim().length<=ke[_]&&m.default.createElement(yt,{onClick:function(){var e="";switch(i){case"specialties":e="/".concat(S);break;case"services":case"doctors":case"hospitals":e="/".concat(w.slug,"/").concat(S)}e&&c({type:ve.NavigateTo,payload:e})}},m.default.createElement(r.Text,{size:"p3",color:s.theme.colors.primaryBase},y("booking.searchPopup.seeAll")))),(h||o&&o.length>0)&&m.default.createElement(_t,null,m.default.createElement(wt,null,h&&Array(2).fill(void 0).map((function(e,t){return m.default.createElement(rt,{key:i+"loading"+t},m.default.createElement(ct,null,m.default.createElement(dt,null,m.default.createElement(x.default,{height:14,width:"hospitals"===i?12:32,style:{maxWidth:"var(--graphicSize)",minHeight:"var(--graphicSize)"}}))),m.default.createElement(x.default,{width:120,height:24}))})),!h&&o&&o.length>0&&o.slice(0,T).map(I)),m.default.createElement(wt,{isShown:C,isMore:!0},o.slice(T,-1).map(I)),"specialties"===i&&T<o.length&&!h&&m.default.createElement("button",{onClick:function(){return v(!C)}},m.default.createElement(Et,{size:"p3",color:s.theme.colors.primaryBase},y(C?"booking.searchPopup.seeLessSpecialties":"booking.searchPopup.seeMoreSpecialties"))),"specialties"!==i&&T<o.length&&!h&&f.trim().length>ke[_]&&m.default.createElement("button",{onClick:function(){var e=L[i].slug,t="/".concat(w.slug,"/").concat(e,"?q=").concat(E);c({type:ve.NavigateTo,payload:t})}},m.default.createElement(Et,{size:"p3",color:s.theme.colors.primaryBase},y("booking.searchPopup.searchIn.".concat(i),{name:f})))),!h&&0===(null==o?void 0:o.length)&&m.default.createElement(_t,null,m.default.createElement(r.Text,{size:"sm",color:s.theme.colors.gray400},y("booking.searchBar.noResults"))))},Lt=v.default.section(ot||(ot=e.__makeTemplateObject(["\n background-color: white;\n border-radius: 4px;\n position: absolute;\n width: 100%;\n z-index: 30;\n\n "," {\n box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),\n 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n }\n"],["\n background-color: white;\n border-radius: 4px;\n position: absolute;\n width: 100%;\n z-index: 30;\n\n "," {\n box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),\n 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n }\n"])),s.MediaQueries.tdUp),St=function(e){var t=e.data,n=e.state,a=e.dispatch,i=e.isMobile,o=e.isLoading,r=e.keyword;return m.default.createElement(Lt,null,t&&t.map((function(e){return m.default.createElement(kt,{type:e.type,state:n,dispatch:a,itemsToShow:2,itemsToShowDesktop:4,key:e.type,data:e.results,isMobile:i,isLoading:o,keyword:r})})))},Tt="api/lists/cities?keyword={keyword}&country_id={countryId}&site={domain}&_nopaging={noPaging}",Ot="api/v2/search/?site={domain}&type={searchType}&keyword={keyword}&city_id={city}&latitude={lat}&longitude={lng}",It="api/geobyip?site={domain}&latitude={lat}&longitude={lng}",Mt=function(t,n,i){return y.default(t,e.__assign(e.__assign({},n),{domain:a.domainLocales[i||"en-PH"]}))};var Rt;!function(e){e[e.SPECIALTY=1]="SPECIALTY",e[e.DOCTOR=2]="DOCTOR",e[e.CLINIC=3]="CLINIC",e[e.SERVICE=4]="SERVICE"}(Rt||(Rt={}));var At=Object.freeze({__proto__:null,get RedirectType(){return Rt}});exports.BookingSearchBar=function(o){var r=o.isMobile,l=o.careApiDomain,s=o.geoLocationPermission,c=o.geoLocationCoordinates,u=o.initialSelectedCity,d=o.initialSearchValue,p=void 0===d?"":d,h=o.careFrontDomain,f=void 0===h?"/care":h,g=o.isDebug,v=void 0!==g&&g,x=o.askForGeolocationPermission,b=void 0!==x&&x,y=o.gaTrackingSearchBar,_=o.gaTrackingLocationSearch,w=o.autoCompleteDisabled,E=void 0!==w&&w,k=o.inputSearchPlaceholder,L=void 0===k?"":k,S=o.routerPush,T=o.onGeoLocationPermissionChange,O=o.onSearch,I=o.onChangeLocation,M=a.useTranslations(),R=M.t,A=M.locale,j=t.useRef(null),D=t.useRef(null),H=t.useState(void 0),V=H[0],K=H[1],Z=function(){var e=t.useState((function(){if("undefined"==typeof window)return"unset";if(i.getCookie(a.USER_GEOLOCATION_COORDINATES_COOKIE))return"granted";var e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),n=e[0],o=e[1],r=t.useState((function(){if("undefined"==typeof window)return null;var e=i.getCookie(a.USER_GEOLOCATION_COORDINATES_COOKIE);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=r[0],s=r[1],c=t.useCallback((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){var t={lat:"".concat(Math.round(1e7*e.coords.latitude)/1e7),lng:"".concat(Math.round(1e7*e.coords.longitude)/1e7)};i.setCookie(a.USER_GEOLOCATION_COORDINATES_COOKIE,JSON.stringify(t),0,15),s(t),o("granted")}),(function(){i.deleteCookie(a.USER_GEOLOCATION_COORDINATES_COOKIE),o("denied")}))}),[]);return t.useMemo((function(){return{geoLocationPermission:n,geoLocationCoordinates:l,requestGeoLocation:c}}),[n,l])}(),G=Z.geoLocationPermission,U=Z.geoLocationCoordinates,q=Z.requestGeoLocation,Q=t.useReducer(Te,Le,(function(t){return e.__assign(e.__assign({},t),{isDebug:v,isMobile:r,geoLocationPermission:s||G||"unset",geoLocationCoordinates:c||U||null,searchKeywords:p,initialSelectedCity:u||null,selectedLocation:u||t.selectedLocation||null,searchLocationKeywords:(null==u?void 0:u.name)||t.searchLocationKeywords,autoCompleteDisabled:E,inputSearchPlaceholder:L,locale:A})})),W=Q[0],Y=Q[1],X=W.navigateTo,$=W.focused,ee=W.isLoadingCities,te=W.cities,ne=W.searchKeywords,ae=W.geoLocationPermission,ie=W.selectedLocation,oe=W.initialSelectedCity,re=W.defaultCity,le=W.searchResults,se=W.isLoadingSearchResults,ce=W.isMobileModalOpened,ue=W.inputSearchPlaceholder,de=function(a){var i=a.dispatch,o=a.careApiDomain,r=a.locale,l=void 0===r?"vi-VN":r,s=t.useCallback((function(e,t){void 0===t&&(t={});var n="".concat(o).concat(e);return i({type:ve.FetchCitiesStart}),fetch(Mt(n,t,l),{method:"GET"}).then((function(e){return e.json()})).then((function(e){return 1===e._status&&e._data?null==e?void 0:e._data:(console.log("error loading cities",e),Promise.reject(e))})).finally((function(){return i({type:ve.FetchCitiesFinish})}))}),[l]),c=t.useCallback((function(t){var n=t.coordinates,a={};n&&(a={lat:n.lat,lng:n.lng});var o=[s(It,a)];return"zh-TW"===l&&o.push(s(Tt,{noPaging:1})),Promise.all(o).then((function(t){var n=t[0],a=t[1],o=e.__assign({},n);if(a){var r=o.cities.map((function(e){return e.id}));o.cities=o.cities.concat(a.cities.filter((function(e){return!r.includes(e.id)})))}i({type:ve.FetchCitiesByGeoIpComplete,payload:o})})).catch((function(e){return console.error("error loading cities by location",e)}))}),[l,o,i]);return{fetchCitiesByLocation:c,fetchCitiesByKeyword:t.useCallback((function(e){return s(Tt,{keyword:e}).then((function(e){i({type:ve.FetchCitiesByKeywordComplete,payload:e.cities})})).catch((function(e){return console.error("error loading cities by keyword",e)}))}),[l,o,i]),fetchSearchResults:t.useCallback((function(e,t){var a="".concat(o).concat(Ot);i({type:ve.FetchSearchResultsStart});var r=t.defaultCity,s=t.selectedLocation,c=t.geoLocationCoordinates,u="";if(s&&r){s.id===n.ID_OPTION_CURRENT_LOCATION?c||(u=r.id):u=s.id;var d=(null==c?void 0:c.lat)||"",p=(null==c?void 0:c.lng)||"";return fetch(Mt(a,{domain:o,searchType:"global",keyword:e.trim().length>ke[l]?e.trim():"",city:u===n.ID_OPTION_CURRENT_LOCATION?"":u,lat:d,lng:p},l),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((function(e){return e.json()})).then((function(e){return 1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e)})).then((function(e){return i({type:ve.FetchSearchResultsComplete,payload:e})})).catch((function(e){console.log("error loading search results",{url:a,error:e})})).finally((function(){return i({type:ve.FetchSearchResultsFinish})}))}i({type:ve.FetchSearchResultsFinish})}),[l,o,i])}}({dispatch:Y,locale:A,careApiDomain:l}),he=de.fetchCitiesByLocation,fe=de.fetchCitiesByKeyword,ge=de.fetchSearchResults,me=t.useMemo((function(){var e;return{id:n.ID_OPTION_CURRENT_LOCATION,name:R("booking.searchBar.currentLocation"),slug:null===(e=n.LOCALIZED_SLUGS[A])||void 0===e?void 0:e.CURRENT}}),[R,A]),Ce=t.useMemo((function(){return C.default(fe,400)}),[fe]),xe=t.useMemo((function(){return C.default(ge,400)}),[ge]);t.useEffect((function(){""!==p&&p!==W.searchKeywords&&Y({type:ve.UpdateInitialSearchValue,payload:p})}),[p]),t.useEffect((function(){b&&(null==ie?void 0:ie.id)===n.ID_OPTION_CURRENT_LOCATION&&"unset"===ae&&q()}),[b,ie,ae]),t.useEffect((function(){s||ae===G||("granted"===G&&U?Y({type:ve.GrantGeoLocationPermission,payload:U}):"denied"===G&&Y({type:ve.DenyGeoLocationPermission}))}),[ae,G,U,s]),t.useEffect((function(){X&&(S?S(X):window.location.href="".concat(f).concat(X))}),[X]);var be=t.useCallback((function(){Y({type:ve.SelectCurrentLocation,payload:me})}),[R,Y]);t.useEffect((function(){"denied"===ae||oe||be(),T&&T(ae,W.geoLocationCoordinates),r&&"granted"===ae&&ie&&Y({type:ve.FocusInputSearch}),he({coordinates:W.geoLocationCoordinates})}),[ae]),t.useEffect((function(){ie&&re&&ge(W.searchKeywords,W)}),[ie,re]),t.useEffect((function(){L!==ue&&Y({type:ve.SetInputSearchPlaceholder,payload:L})}),[L,ue]),t.useEffect((function(){ce?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[ce]);var ye=t.useCallback((function(e){Y({type:ve.SelectLocation,payload:e}),Se(),I&&I(e)}),[R,Y]);function _e(){r&&"granted"!==W.geoLocationPermission?q():(be(),Se())}function we(){var e;j.current&&(null===(e=j.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function Se(){var e;j.current&&(null===(e=j.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function Oe(){Y({type:ve.CloseMobileModal})}function Ie(){return"location"!==$?null:m.default.createElement(J,{isLoading:ee,cities:te,onLocationClick:ye,onCurrentLocationClick:_e,isLocationLoading:ee,geoLocationPermission:ae,selectedLocation:ie})}function Me(){return"search"!==$?null:W.autoCompleteDisabled?r?m.default.createElement(Be,{onClick:function(){O({cityId:W.selectedLocation.id,keyword:ne}),Oe()}}):null:m.default.createElement(St,{data:le,state:W,dispatch:Y,isMobile:!1,keyword:ne,isLoading:se})}function Re(){return m.default.createElement(Ge,{isMobile:r,state:W,dispatch:Y,debouncedFetchCitiesByKeyword:Ce,debouncedFetchSearchResults:xe,focusLocationInput:we,focusSearchInput:Se,renderLocationResults:Ie,renderSearchResults:Me,trackingAttributes:y,locationTrackingAttributes:_,onSearch:O,initalSearchValue:p})}return t.useEffect((function(){if(window.visualViewport){var e=function(e){var t=e.target;K(null==t?void 0:t.height)};return window.visualViewport.addEventListener("resize",e),function(){window.visualViewport.removeEventListener("resize",e)}}}),[K]),r?m.default.createElement(m.default.Fragment,null,m.default.createElement(B,null),m.default.createElement(z,{ref:D}),m.default.createElement(P,{id:"booking-search-bar",ref:j,"data-is-modal":r&&ce,style:{"--mobile-care-searchbar-height":ce&&V?"".concat(V,"px"):"100%"}},ce?m.default.createElement(m.default.Fragment,null,m.default.createElement(F,null,m.default.createElement(Ee,{headingText:R("booking.searchBar.searchButton"),onLeftClick:Oe}),Re()),Ie(),Me()):m.default.createElement(pe,{onClick:function(){var t;return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return D.current&&D.current.focus(),Y({type:ve.OpenMobileModal}),[4,Promise.resolve()];case 1:return e.sent(),j.current&&(null===(t=j.current.querySelector('input[name="search-location"]'))||void 0===t||t.focus()),[2]}}))}))},focused:$,value:ne,trackingAttributes:y,inputSearchPlaceholder:L}))):m.default.createElement(N,{id:"booking-search-bar",ref:j},Re())},exports.types=At;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var o=require("react"),e=require("./translationsContext-e97f3b58.js");function l(o){return o&&"object"==typeof o&&"default"in o?o:{default:o}}var i,n=l(require("string-format")),t={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com","tl-PH":"hellodoctor.com.ph","vi-VN_MB":"marrybaby.vn"},a={"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png",PREGNANCY_WEIGHT_GAIN:"cong-cu-tinh-can-nang-khi-mang-thai",BABY_POOP:"phan-tre-so-sinh-nhu-the-nao-la-tot",VACCINATION_TOOL:"lich-tiem-chung"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png",PREGNANCY_WEIGHT_GAIN:"เครื่องคำนวณน้ำหนักตัว",BABY_POOP:"สีอุจจาระของลูก-บอกถึงส",VACCINATION_TOOL:"vaccination-tool"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png",PREGNANCY_WEIGHT_GAIN:"រង្វាស់សុខភាព/គណនាទម្ងន់ស្ត្រីពពោះ",BABY_POOP:"រង្វាស់សុខភាព/អត្ថន័យពណ៌-និងរូបរាងលាម",VACCINATION_TOOL:"រង្វាស់សុខភាព/កាលវិភាគចាក់ថ្នាំបង្កា"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-kenaikan-berat-badan-ibu-hamil",BABY_POOP:"warna-feses-bayi-normal",VACCINATION_TOOL:"jadwal-imunisasi"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png",PREGNANCY_WEIGHT_GAIN:"garbhavastha-weight-calculator",BABY_POOP:"visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-tambah-berat-badan-hamil",BABY_POOP:"kenali-najis-bayi-anda",VACCINATION_TOOL:"alat-kesihatan-vaksin"},"tl-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/fil/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool",ABOUT_US_IMAGE:"/fil/images/aboutus/PH.png"}},s={"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/tieu-chuan-cong-dong",TOGETHER:"/community"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/គោលការណ៍ណែនាំសហគមន៍",TOGETHER:"/community"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en",COMMUNITY_GUIDELINE:"/panduan-komunitas",TOGETHER:"/community"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"tl-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"}},c=["vi-VN","id-ID","en-PH","tl-PH","th-TH","ms-MY","my-MM"],E=["vi-VN","id-ID","en-PH","tl-PH","zh-TW"],I=["vi-VN","id-ID"],T=("undefined"!=typeof window?function(o){var e,l;return null!==(l=null===(e=null==o?void 0:o.match(/^https?:\/\/([^/?#]+)(?:[/?#]|$)/i))||void 0===e?void 0:e[1])&&void 0!==l?l:""}(null===(i=null===window||void 0===window?void 0:window.location)||void 0===i?void 0:i.href):"").split("."),O=process.env.NEXT_PUBLIC_DEPLOY_ENV?"production"===process.env.NEXT_PUBLIC_DEPLOY_ENV:T&&!("dev"===T[0]||"dev"===T[1]||"staging"===T[0]||"staging-id"===T[0]||"staging-id-hotfix"===T[0]||"localhost"===T[0].split(":")[0]||"staging"===T[1]||"fe"===T[0]||"fe-hotfix"===T[0]||"discover"===T[0]||"discover-hotfix"===T[0]),r={"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],marryBaby:[{type:"link",rel:"shortcut icon",href:"/favicons/favicon.ico"},{type:"link",rel:"icon",href:"/favicons/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/favicons/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/favicons/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/favicons/icon-180x180.png"}]},p=Object.freeze({__proto__:null,USER_GEOLOCATION_COORDINATES_COOKIE:"userGeoLocationCoordinates",domainLocales:t,LOCALE_SPECS:a,STATIC_PAGES:s,UP_BASEPATH:"user",TOGETHER_LOCALES:c,CARE_LOCALES:E,CARE_BOOKING_LOCALES:I,isProduction:O,FAVICONS:r});exports.CARE_BOOKING_LOCALES=I,exports.CARE_LOCALES=E,exports.FAVICONS=r,exports.LOCALE_SPECS=a,exports.STATIC_PAGES=s,exports.TOGETHER_LOCALES=c,exports.UP_BASEPATH="user",exports.USER_GEOLOCATION_COORDINATES_COOKIE="userGeoLocationCoordinates",exports.constants=p,exports.domainLocales=t,exports.isProduction=O,exports.useTranslations=function(){var l=o.useContext(e.TranslationsContext)||{locale:"en-PH"},i=l.values,t=l.locale;return o.useMemo((function(){return{t:function(o,l){return i?i[o]?l?n.default(i[o]||o,l):i[o]||o:(console.warn("[useTranslations] Missing translation for key ".concat(o," and locale ").concat(t)),l?n.default(e.defaultTranslations[o]||o,l):e.defaultTranslations[o]||o):(console.error("[useTranslations] t method called before translation values are loaded"),o)},locale:t}}),[i,t])};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hhgtech/hhg-components",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.30",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"module": "build/esm/index.js",
|
|
6
6
|
"files": [
|
|
@@ -169,6 +169,9 @@
|
|
|
169
169
|
"navigation": [
|
|
170
170
|
"build/components/organisms/navigationV2/index.d.ts"
|
|
171
171
|
],
|
|
172
|
+
"navigationLayout_deprecated": [
|
|
173
|
+
"build/components/organisms/navigationLayout_deprecated/exportLegacy.d.ts"
|
|
174
|
+
],
|
|
172
175
|
"babyGrowth": [
|
|
173
176
|
"build/components/babyGrowth.d.ts"
|
|
174
177
|
],
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e,{useState as n,useRef as t,useMemo as a,useEffect as o,Fragment as l,useCallback as r}from"react";import{S as i,d as c,T as s,e as m,f as d,g as p,h as u,i as g,j as h,k as f,l as v,m as x,n as E,o as y,p as b,q as w,r as k,s as C,t as L,u as N,v as z,w as M,x as F,y as A,z as D,A as H,B,D as T,E as S,F as I,G as j,H as V,I as U,J as P,P as R,C as O,a as Z}from"./index.styled-92e8c364.js";import{b as G,d as Y,e as W,_ as q,a as Q,c as J}from"./tslib.es6-ba283c01.js";import{j as K,t as X,p as _,L as $,F as ee,q as ne,u as te,M as ae}from"./useTranslations-161444d2.js";import{Range as oe,getTrackBackground as le,useThumbOverlap as re}from"react-range";import{B as ie,H as ce}from"./index-54d677a7.js";import{j as se,k as me,l as de,m as pe,n as ue,o as ge,p as he,q as fe,r as ve,s as xe,t as Ee,u as ye,v as be,w as we,x as ke,y as Ce,z as Le,A as Ne,B as ze,C as Me,E as Fe,G as Ae,H as De,I as He,J as Be,K as Te,O as Se,Q as Ie,T as je,V as Ve,W as Ue,X as Pe,Y as Re,Z as Oe,_ as Ze,$ as Ge,a0 as Ye,a1 as We,a2 as qe,a3 as Qe,a4 as Je,a5 as Ke,a6 as Xe,a7 as _e,a8 as $e,a9 as en,aa as nn,ab as tn,ac as an,ad as on,ae as ln,af as rn,ag as cn,ah as sn,ai as mn,aj as dn,ak as pn,al as un,am as gn,an as hn,ao as fn,ap as vn,aq as xn,ar as En,as as yn,at as bn,au as wn,av as kn,aw as Cn,ax as Ln,ay as Nn,az as zn,aA as Mn,aB as Fn,aC as An,aD as Dn,aE as Hn,aF as Bn}from"./index-996b3248.js";import{useId as Tn}from"react-id-generator";import{a as Sn,D as In}from"./index-c2871b5e.js";import{format as jn,isBefore as Vn,startOfMonth as Un,addMonths as Pn,subMonths as Rn,getDaysInMonth as On,isToday as Zn,isSameDay as Gn,isWithinInterval as Yn,isAfter as Wn,isPast as qn}from"date-fns";import Qn from"react-day-picker/DayPickerInput";import{throttle as Jn}from"lodash";import{useKeenSlider as Kn}from"keen-slider/react";import"react-dom";import{u as Xn}from"./useOutsideClick-6004483a.js";import _n from"date-fns/locale/en-US";import $n from"date-fns/locale/id";import et from"date-fns/locale/vi";import nt from"date-fns/locale/zh-TW";import{l as tt}from"./lazyLoad-d80d3fd1.js";import"lodash/debounce";import at from"styled-components";import{g as ot}from"./getSocialList-27eabc04.js";import{I as lt}from"./index-eeded213.js";var rt=function(n){var t=n.style,a=n.onClose,o=n.text,l=n.type,r=n.contentIcon,d=n.closeIcon,p=n.className,u=n.description;return e.createElement(i,{style:t,"data-alert-type":l,className:p},e.createElement(c,null,e.createElement("div",{className:"icon-title"},r,e.createElement(s,{type:"bold",size:"label1"},o)),e.createElement(s,{type:"regular",size:"p3"},u)),e.createElement(m,{onClick:a},d))},it=function(n){var t=n.amount,a=n.type,o=n.size,l=void 0===o?"medium":o,r=n.color,i=void 0===r?"primary":r,c=n.icon,s=n.className;return e.createElement(d,{"data-notification-type":a,"data-notification-size":l,"data-notification-color":i,"data-has-icon":!!c||void 0,notificationType:a,notificationSize:l,notificationColor:i,hasIcon:!!c,className:s},e.createElement("div",null,t&&e.createElement("span",null,t)," ",c&&e.createElement("div",null,c)))},ct=function(n){var t=n.style,a=n.children,o=n.className,l=n.size,r=void 0===l?"lg":l,i=n.type,c=void 0===i?"bold":i,s=n.upperCase,m=n.as,d=void 0===m?"h4":m,u=n.color;return e.createElement(p,{style:G({color:u},t),className:o,"data-size":r,"data-type":c,"data-uppercase":s,as:d},a)},st=function(a){var o=a.className,l=a.value,r=a.options,i=a.onUploadSelected,c=a.id,s=a.placeholderIcon,m=a.placeholder,d=a.style,p=n(!1),x=p[0],E=p[1],y=function(){return E(!x)},b=t(r.map((function(n){return"upload"===n.type&&e.createElement("input",{id:"uploader-dropdown-input-"+c+"-"+n.value,key:"uploader-dropdown-input-"+c+"-"+n.value,accept:n.fileAcceptedType,multiple:n.multiple,type:"file",style:{display:"none"},onChange:function(e){console.log("change"),i(e.target.files)}})}))),w=e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12.17 14.83"},e.createElement("defs",null,e.createElement("clipPath",{id:"prefix__clip-path",transform:"translate(-1.92 -1.54)"},e.createElement("path",{fill:"none",d:"M0 .96h16v16H0z"})),e.createElement("style",null,".prefix__cls-3{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),e.createElement("title",null,"File"),e.createElement("g",{clipPath:"url(#prefix__clip-path)"},e.createElement("path",{className:"prefix__cls-3",d:"M8.67 2.29H4a1.33 1.33 0 00-1.33 1.33v10.67A1.33 1.33 0 004 15.62h8a1.33 1.33 0 001.33-1.33V7z",transform:"translate(-1.92 -1.54)"}),e.createElement("path",{className:"prefix__cls-3",d:"M8.67 2.29V7h4.66",transform:"translate(-1.92 -1.54)"}))),k=e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13.5 13.5"},e.createElement("defs",null,e.createElement("style",null,".prefix__cls-1{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),e.createElement("title",null,"download"),e.createElement("path",{className:"prefix__cls-1",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M4.67 7.62L8 11l3.33-3.34M8 11V3",transform:"translate(-1.25 -2.21)"})),C=e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13.5 13.5"},e.createElement("defs",null,e.createElement("style",null,".prefix__cls-1{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),e.createElement("title",null,"upload"),e.createElement("path",{className:"prefix__cls-1",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M11.33 6.29L8 3 4.67 6.29M8 3v8",transform:"translate(-1.25 -2.21)"}));return e.createElement(u,{className:o,"data-dropdown-open":!!x,id:c,"data-has-icons":!0,style:d,onBlur:function(){return E(!1)},tabIndex:0},e.createElement(g,{onClick:y},s||w," ",e.createElement("span",null,l&&l.value?l.label:m)),x&&e.createElement(h,{onClick:y,"data-has-icons":!0},r.map((function(n){return e.createElement(f,{key:"".concat(c,"-").concat(n.value),"data-selected":l&&l.value===n.value||void 0,onClick:function(){return"upload"===n.type?function(e){var n;null===(n=document.querySelector(e))||void 0===n||n.click()}("#uploader-dropdown-input-"+c+"-"+n.value):void((e=n.url)&&window.open(e,"_blank"));var e}},e.createElement(v,null,n.icon||"download"===n.type?k:C),n.label)}))),e.createElement(e.Fragment,null,b.current))},mt=function(n){var t=n.className,a=n.columns,o=n.columnsDesktop,l=n.gridTemplateColumns,r=n.gridTemplateColumnsDesktop,i=n.gap,c=n.children,s=n.justifyChildren,m=n.style,d=n.alignItems;return e.createElement(x,{className:t,style:m,theme:{columns:a,columnsDesktop:o,gap:i,justifyChildren:s,gridTemplateColumns:l,gridTemplateColumnsDesktop:r,alignItems:d}},c)},dt=function(t){var a=t.pagesAmount,r=t.activePage,i=t.handlePageChange,c=t.handleClick,s=t.href,m=t.queryPageName,d=void 0===m?"page":m,p=Y([],Array(a),!0).map((function(e,n){return n+1})),u=n(r<=4?p.slice(0,5):r>=p.length-3?p.slice(p.length-5,p.length):p.slice(r-2,r+1)),g=u[0],h=u[1];return o((function(){r<=4?h(p.slice(0,5)):r>=p.length-3?h(p.slice(p.length-5,p.length)):h(p.slice(r-2,r+1))}),[r]),e.createElement(l,null,r>4&&e.createElement(l,null,e.createElement(b,{onClick:function(){return i(1)}},s?e.createElement("a",{href:s,onClick:c},1):1),e.createElement(b,null,"...")),g.map((function(n){return e.createElement(b,{key:"".concat("pagination","+").concat(n),"data-page-active":n===r||void 0,onClick:function(){return i(n)}},s?e.createElement("a",{href:K(s,n,d),onClick:c},n):n)})),r<p.length-3&&e.createElement(l,null,e.createElement(b,null,"..."),e.createElement(b,{onClick:function(){return i(p.length)}},s?e.createElement("a",{href:K(s,p.length,d),onClick:c},p.length):p.length)))},pt=function(t){var l=t.className,r=t.pagesAmount,i=t.currentPage,c=t.onChange,s=t.onClick,m=t.style,d=t.href,p=t.queryPageName,u=void 0===p?"page":p,g=Y([],Array(r),!0).map((function(e,n){return n+1})),h=n(i),f=h[0],v=h[1],x=a((function(){return d&&d.endsWith("&page=")?d.replace("&page=",""):d}),[d]),w=r-1,k=function(e){e<=r&&e>0&&(v(e),c(e))},C=function(e){s&&s(e)};return o((function(){v(i)}),[i]),e.createElement(E,{className:l,style:m},e.createElement(y,{className:"prev-page",onClick:function(){return k(f-1)},"data-last-page":1===f||void 0},x?e.createElement("a",{href:K(x,f,u),onClick:C},e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))),g.length>8?e.createElement(dt,{pagesAmount:r,activePage:f,handlePageChange:k,handleClick:C,href:x,queryPageName:u}):g.map((function(n){return e.createElement(b,{key:"".concat("pagination","+").concat(n),"data-page-active":n===f||void 0,onClick:function(){return k(n)}},x?e.createElement("a",{href:K(x,n,u),onClick:C},n):n)})),e.createElement(y,{className:"next-page",onClick:function(){return k(f+1)},"data-last-page":f===w+1||void 0},x?e.createElement("a",{href:K(x,f,u),onClick:C},e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))},ut=function(n){var t=n.size,a=n.children,o=n.style,l=n.className;return e.createElement(w,{style:o,className:l,"data-shadow-size":t},a)};function gt(n){var t=n.rangeRef,a=n.values,o=n.index,l=re(t,a,o,1," - ",(function(e){return e})),r=l[0],i=l[1];return e.createElement(e.Fragment,null,e.createElement(z,{"data-label":o,style:i},r),e.createElement(M,{"data-label":o}))}var ht=function(t){var a=t.step,l=t.min,r=t.max,i=t.value,c=t.onChange,m=t.className,d=t.heading,p=t.isMobile,u=void 0!==p&&p,g=["#DBDFE5","#2D87F3","#DBDFE5"],h=e.useRef(),f=n(i),v=f[0],x=f[1];o((function(){x(i)}),[i[0],i[1]]);return e.createElement(k,{className:m},e.createElement(oe,{ref:h,values:v[0]>=l&&v[1]<=r?v:[l,r],onChange:x,onFinalChange:c,renderThumb:function(n){var t=n.props,a=n.index;return e.createElement(C,G({},t),e.createElement(gt,{rangeRef:h.current,values:v,index:a,isMobile:u}))},renderTrack:function(n){var t=n.props,a=n.children,o={background:le({values:v,colors:g,min:l,max:r})};return e.createElement(e.Fragment,null,d&&e.createElement(s,{size:"md",type:"bold"},d),e.createElement(L,{onMouseDown:t.onMouseDown,onTouchStart:t.onTouchStart,style:G({},t.style)},e.createElement(N,{ref:t.ref,style:o},a)))},step:a,min:l,max:r}))},ft=function(n){var t=n.type,a=n.children,o=n.style,l=n.isInline,r=n.isSquared,i=void 0!==r&&r,c=n.className,m=n.isLight,d=n.hasMorePadding,p=n.isLink,u=n.isSelected,g=n.textProps,h=void 0===g?{size:"sm"}:g,f=h.color?{"--text-props-color":h.color}:{};return e.createElement(F,{"data-is-squared":i||void 0,"data-tag-type":t,"data-is-light":m||void 0,"data-has-more-padding":d||void 0,"data-is-inline":l||void 0,style:G(G({},o),f),className:c,"data-is-selected":u||void 0,"data-is-link":p||void 0,tagType:t,isInline:l,tagHasMorePadding:d,tagIsLight:m,tagIsSquared:i,tagIsALink:p},e.createElement(s,G({},h),a))},vt=function(n){var t=n.className,a=n.id,o=n.onChange,l=n.checked,r=n.style,i=n.label;return e.createElement(A,{className:t,style:r},e.createElement("input",{type:"checkbox",id:a,onChange:o,checked:l}),e.createElement("label",{htmlFor:a},e.createElement(D,null),i&&e.createElement(H,null,i)))},xt=function(n){var t=n.size,a=n.isDisabled,o=n.className,l=n.link,r=n.style;return e.createElement(B,{className:o,"data-size":t,style:r,"data-disabled":a||void 0},l)},Et=function(n){var t=n.type,a=n.withIcon,o=n.onFileSelected,l=n.inputId,r=n.withElement,i=n.fileAcceptType,c=n.multiple,s=n.value,m=n.className,d=function(){var e;null===(e=document.querySelector("#uploader-input-"+l))||void 0===e||e.click()};return e.createElement(T,{className:m},"badge"===t?e.createElement(S,{onClick:d,"data-is-attached-to-element":!!r},r,e.createElement(I,{"data-is-attached-to-element":!!r},a)):r?e.createElement("div",{onClick:d},r):e.createElement(ie,{size:"md",color:"secondary",className:"default-button",icon:a,onClick:d},e.createElement(j,null,e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13.5 13.5"},e.createElement("defs",null,e.createElement("style",null,".prefix__cls-1{fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),e.createElement("title",null,"upload"),e.createElement("path",{className:"prefix__cls-1",d:"M14 10v2.67A1.33 1.33 0 0112.67 14H3.33A1.33 1.33 0 012 12.67V10M11.33 5.33L8 2 4.67 5.33M8 2v8",transform:"translate(-1.25 -1.25)"})),"Upload Image")),e.createElement("input",{id:"uploader-input-"+l,accept:i,multiple:c,type:"file",style:{display:"none"},onChange:function(e){o(e.target.files)},value:s}))},yt=function(n){var t=n.label,a=n.name,o=n.checked,l=n.className,r=n.isDisabled,i=n.onChange,c=n.value,s=n.isRectangle;return e.createElement(V,{className:l,"data-disabled":r||void 0,"data-is-rectangle":s||void 0,"data-label-text":t},e.createElement("input",{type:"checkbox",checked:o,name:a,onChange:function(){return i(c,!o)},disabled:r,value:c,id:"".concat(a,"-").concat(c),"data-label-text":t}),!s&&e.createElement("label",{htmlFor:"".concat(a,"-").concat(c)},t))},bt=function(n){return e.createElement("svg",G({},n,{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),e.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#D2D6DC"}))},wt=function(n){return e.createElement("svg",G({},n,{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),e.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#FFC326"}))},kt=function(n){return e.createElement("svg",G({},n,{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),e.createElement("path",{d:"M12.0001 17.2697L17.1701 20.3897C17.5501 20.6197 18.0201 20.2797 17.9201 19.8497L16.5501 13.9697L21.1101 10.0197C21.4401 9.72973 21.2701 9.17973 20.8201 9.13973L14.8101 8.62973L12.4601 3.08973C12.2901 2.67973 11.7101 2.67973 11.5401 3.08973L9.19006 8.62973L3.18006 9.13973C2.74006 9.17973 2.56006 9.72973 2.90006 10.0197L7.46006 13.9697L6.09006 19.8497C5.99006 20.2797 6.46006 20.6197 6.84006 20.3897L12.0001 17.2697Z",fill:"#E4E8EC"}),e.createElement("mask",{id:"mask0_3555_5815",maskUnits:"userSpaceOnUse",x:"2",y:"0",width:"10",height:"24"},e.createElement("rect",{x:"2",width:"10",height:"24",fill:"#C4C4C4"})),e.createElement("g",{mask:"url(#mask0_3555_5815)"},e.createElement("path",{d:"M11.9998 17.2697L17.1698 20.3897C17.5498 20.6197 18.0198 20.2797 17.9198 19.8497L16.5498 13.9697L21.1098 10.0197C21.4398 9.72973 21.2698 9.17973 20.8198 9.13973L14.8098 8.62973L12.4598 3.08973C12.2898 2.67973 11.7098 2.67973 11.5398 3.08973L9.18981 8.62973L3.17981 9.13973C2.73981 9.17973 2.55981 9.72973 2.89981 10.0197L7.45981 13.9697L6.08981 19.8497C5.98981 20.2797 6.45981 20.6197 6.83981 20.3897L11.9998 17.2697Z",fill:"#FFC326"})))},Ct=function(t){var a=t.gap,o=void 0===a?2:a,l=t.size,r=void 0===l?24:l,i=t.star,c=t.totalStars,s=void 0===c?5:c,m=t.onSelect,d=t.hideEmptyStars,p=t.style,u=t.className,g=Math.floor(i),h=i-g>=.5?1:0,f=n(null),v=f[0],x=f[1],E=v||g,y=v?0:h;return e.createElement(U,{"data-selectable":!!m,style:G({"--gap":o,"--star-size":r},p),className:u},Array.from({length:d?g+h:s}).map((function(n,t){var a=function(){return!!m&&x(t+1)},o=function(){return!!m&&x(null)};return t+1<=E?e.createElement(wt,{key:t,onClick:function(){return null==m?void 0:m(t+1)},onMouseOver:a,onMouseLeave:o}):t+1===E+y?e.createElement(kt,{key:t,onClick:function(){return null==m?void 0:m(t+1)},onMouseOver:a,onMouseLeave:o}):e.createElement(bt,{key:t,onClick:function(){return null==m?void 0:m(t+1)},onMouseOver:a,onMouseLeave:o})})))},Lt=function(n){var t=n.percent,a=n.style;return e.createElement(P,{style:G({"--progress":t},a)})},Nt=function(n){var t=n.avatarImg,a=n.authorName,o=n.authorLink,l=n.uploadTime,r=n.size;return e.createElement(de,null,e.createElement("div",{className:"author"},e.createElement("div",{className:"avatar","data-size":r},t),e.createElement("div",{className:"poster","data-is-disabled-url":!o},e.createElement(s,{size:"lg"===r?"p3":"p4"},e.createElement("a",{href:o},e.createElement("span",{className:"name"},a),"•"," "),e.createElement("span",null,l)))))},zt=function(n){var t=n.isMobile,a=n.avatarImg,o=n.name,l=n.link,r=n.size,i=void 0===r?"lg":r,c=n.specialty;return n.handleClick,n.isBookmarked,n.dataEventCategoryForBookmark,n.dataEventActionForBookmark,n.dataEventLabelForBookmark,e.createElement(de,null,e.createElement("div",{className:"author"},e.createElement("div",{className:"expert-avatar","data-size":i},a),e.createElement("div",{className:"expert","data-is-disabled-url":!l},t?e.createElement("a",{href:l},"lg"===i?e.createElement(e.Fragment,null,e.createElement(ce,{tag:"h6",className:"expert__name",color:X.colors.gray600},o),e.createElement(s,{color:X.colors.gray500,size:"p3",className:"specialty"},c)):e.createElement(e.Fragment,null,e.createElement(ce,{tag:"h6",className:"expert__name",color:X.colors.gray600},o))):e.createElement("a",{href:l},"lg"===i?e.createElement(e.Fragment,null,e.createElement(ce,{tag:"h6",className:"expert__name",color:X.colors.gray600},o),e.createElement(s,{color:X.colors.gray500,size:"p3",className:"specialty"},c)):e.createElement(e.Fragment,null,e.createElement(pe,{color:X.colors.gray600,className:"expert__name"},o),e.createElement(s,{color:X.colors.gray500,size:"p4",className:"specialty"},c))))))},Mt=function(n){var t=n.articleLink,a=n.authorLink,o=n.authorName,l=n.avatarImg,r=n.banner,i=n.categoryLink,c=n.categoryName,m=n.className,d=n.dataEventActionForBanner,p=n.dataEventActionForBookmark,u=n.dataEventActionForCategory,g=n.dataEventActionForTitle,h=n.dataEventCategoryForBanner,f=n.dataEventCategoryForBookmark,v=n.dataEventCategoryForCategory,x=n.dataEventCategoryForTitle,E=n.dataEventLabelForBanner,y=n.dataEventLabelForBookmark,b=n.dataEventLabelForCategory,w=n.dataEventLabelForTitle,k=n.direction,C=void 0===k?"horizontal":k,L=n.hasAffiliate,N=n.isBookmark,z=void 0!==N&&N,M=n.isBookmarkDisplayed,F=void 0===M||M,A=n.isMobile,D=void 0===A||A,H=n.onBookmark,B=n.onClickCategoryName,T=n.section,S=void 0===T?"normal":T,I=n.size,j=void 0===I?"md":I,V=n.specialty,U=n.style,P=n.styleBanner,R=n.styleLabel,O=n.styleTitle,Z=n.text,G=n.title,Y=n.type,W=void 0===Y?"author":Y,q=n.uploadTime,Q=n.articleLinkTarget,J=function(e){e.stopPropagation(),H&&H()},K="lg"===j&&"expert"===W?"h4":"lg"===j&&"home"===S?D?"h4":"h3":"lg"===j?"h4":"h5",X="lg"===j?"p3":"p4",_=D||"home"!==S||"lg"!==j||"author"!==W?"c2":"c1";return e.createElement(se,{className:m,"data-size":j,style:U,"data-direction":C,"data-is-expert":"expert"===W||void 0},e.createElement("div",{className:"banner",style:P},e.createElement(me,{"data-event-category":h,"data-event-action":d,"data-event-label":E,href:t||"#",target:Q},r),L&&e.createElement("div",{className:"shoppable"},e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{width:"24",height:"24",rx:"12",fill:"#1B3250"}),e.createElement("path",{d:"M16.6667 8.00033H15.3333C15.3333 6.16033 13.84 4.66699 12 4.66699C10.16 4.66699 8.66667 6.16033 8.66667 8.00033H7.33333C6.6 8.00033 6 8.60033 6 9.33366V17.3337C6 18.067 6.6 18.667 7.33333 18.667H16.6667C17.4 18.667 18 18.067 18 17.3337V9.33366C18 8.60033 17.4 8.00033 16.6667 8.00033ZM12 6.00033C13.1067 6.00033 14 6.89366 14 8.00033H10C10 6.89366 10.8933 6.00033 12 6.00033ZM12 12.667C10.4467 12.667 9.14 11.607 8.77333 10.167C8.66 9.74699 8.98667 9.33366 9.42 9.33366C9.73333 9.33366 9.98667 9.56033 10.0733 9.86699C10.3067 10.7137 11.08 11.3337 12 11.3337C12.92 11.3337 13.6933 10.7137 13.9267 9.86699C14.0133 9.56033 14.2667 9.33366 14.58 9.33366C15.0133 9.33366 15.3333 9.74699 15.2267 10.167C14.86 11.607 13.5533 12.667 12 12.667Z",fill:"white"})))),e.createElement("div",{className:"content"},e.createElement("div",{className:"inner-content"},e.createElement(s,{style:R,className:"label",size:_,type:"caption"},e.createElement(me,{"data-event-category":v,"data-event-action":u,"data-event-label":b,href:i||"#",onClick:B},c),F&&e.createElement("a",{className:"bookmark",onClick:J},z?e.createElement("svg",{"data-event-category":f,"data-event-action":p,"data-event-label":y,width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M13 15L7 11.1111L1 15V2.55556C1 2.143 1.18061 1.74733 1.5021 1.45561C1.82359 1.16389 2.25963 1 2.71429 1H11.2857C11.7404 1 12.1764 1.16389 12.4979 1.45561C12.8194 1.74733 13 2.143 13 2.55556V15Z",fill:"#2ED69E",stroke:"#2ED69E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})):e.createElement("svg",{"data-event-category":f,"data-event-action":p,"data-event-label":y,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M12.75 2.25H5.25C4.425 2.25 3.75 2.925 3.75 3.75V15.75L9 13.5L14.25 15.75V3.75C14.25 2.925 13.575 2.25 12.75 2.25Z",fill:"#D2D6DC"})))),e.createElement(ce,{tag:K,style:O,className:"title",as:"lg"===j?"h2":"h3"},e.createElement(me,{"data-event-category":x,"data-event-action":g,"data-event-label":w,href:t||"#",target:Q},G)),Z&&e.createElement("a",{href:t||"#",target:Q},e.createElement(s,{size:X,className:"text"},Z))),e.createElement("div",{className:"footer"},"author"===W?e.createElement(Nt,{size:j,avatarImg:l,authorName:o,authorLink:a,uploadTime:q,handleClick:J,isBookmarked:z,dataEventCategoryForBookmark:f,dataEventActionForBookmark:p,dataEventLabelForBookmark:y}):e.createElement(zt,{size:j,isMobile:D,avatarImg:l,specialty:V,name:o,link:a,handleClick:J,isBookmarked:z,dataEventCategoryForBookmark:f,dataEventActionForBookmark:p,dataEventLabelForBookmark:y}))))},Ft=function(n){var t=n.LinkComponent,a=n.page,o=n.isLast,l=n.onChangePage,r=a.label,i=a.value,c=a.isDropdown,s=a.dropdownItems,m=a.dataEventCategory,d=a.dataEventAction,p=a.dataEventLabel;return c?e.createElement(Sn,{options:s,placeholder:"...",id:"",placeholderIcon:null,onChange:l,className:"collapsed-breadcrumb"}):e.createElement(he,{title:"string"!=typeof r?i:r,"data-last":o},t&&e.createElement(t,{"data-event-category":m,"data-event-action":d,"data-event-label":p,href:i||"#"},r))},At=function(n){var t=n.className,o=n.pages,r=n.size,i=n.LinkComponent,c=void 0===i?"a":i,s=n.onChangePage,m=n.separator,d=a((function(){return o.map((function(e,n){return o.length>4?n>1&&n<o.length-2?null:1===n?G(G({},e),{isDropdown:1===n,dropdownItems:o.slice(1,o.length-2)}):e:e})).filter(Boolean)}),[o]),p=Tn(d.length);return e.createElement(ue,{"data-size":r,className:t},d.map((function(n,t){var a=t+1===d.length;return e.createElement(l,{key:p[t]},e.createElement(Ft,{LinkComponent:c,page:n,isLast:a,onChangePage:s}),!a&&(m||e.createElement(ge,{"data-size":r})))})))},Dt=function(n){var t=n.imgBanner,a=n.label,o=n.className,l=n.style,r=n.href,i=void 0===r?"":r,c=n.dataEventCategory,m=n.dataEventAction,d=n.dataEventLabel;return e.createElement(fe,{"data-event-category":c,"data-event-action":m,"data-event-label":d,className:o,style:l,href:i,onClick:function(e){""===i&&e.preventDefault()}},e.createElement("div",{className:"banner"},t),e.createElement("div",{className:"content"},e.createElement(s,{className:"category_name",size:"sm",type:"bold"},a)))},Ht=function(n){var t=n.name,a=n.values,o=void 0===a?[]:a,l=n.onChanges,r=n.options,i=void 0===r?[]:r,c=n.className,s=n.type,m=void 0===s?"vertical":s,d=n.isDisabled,p=n.isRectangle,u=function(e,n){var t=o.slice();if(n)t.push(e);else{var a=t.findIndex((function(n){return n===e}));t.splice(a,1)}l&&l(t)};return e.createElement(ve,{className:c,"data-type":m,"data-is-rectangle":p||void 0},i.map((function(n,a){return e.createElement(yt,{label:n.label,name:t,key:"".concat(a,"-").concat(n.value),checked:o.includes(n.value),value:n.value,isDisabled:d||n.disabled,onChange:!d&&u,isRectangle:p})})))},Bt={"vi-VN":["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],"id-ID":["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],"ms-MY":["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],"km-KH":["មករា","ខែកុម្ភៈ","មីនា","ខែមេសា","ឧសភា","មិថុនា","ខែកក្កដា","សីហា","ខែកញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ"],"en-PH":["January","February","March","April","May","June","July","August","September","October","November","December"],"th-TH":["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","อาจ","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],"my-MM":["ဇန်နဝါရီလ","ဖေဖော်ဝါရီလ","မတ်လ","ပြီလ","မေလ","ဇွန","ဇူလိုင်လ","သြဂုတ်လ","စက်တင်ဘာ","အောက်တိုဘာ","နိုဝင်ဘာ","ဒီဇင်ဘာ"],"zh-TW":["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],"hi-IN":["जनवरी","फ़रवरी","जुलूस","अप्रैल","मई","जून","जुलाई","अगस्त","सितंबर","अक्टूबर","नवंबर","दिसंबर"]},Tt=function(a){var l=a.alignRight,r=void 0===l||l,i=a.placeholder,c=a.displayDateFormat,s=a.onChange,m=a.customInput,d=a.pickedDate,p=a.className,u=a.isStatic,g=a.disabledDays,h=a.modifiers,f=a.UnHideOnClickOutside,v=a.initialMonth,x=a.locale,E=void 0===x?"en-PH":x,y=t(!1),b=jn,w=n(v||new Date),k=w[0],C=w[1],L=t(null),N=t(null),z=Bt[E],M=function(e){f||L.current&&L.current.contains(e.target)||N.current&&N.current.hideDayPicker()},F=(new Date).getFullYear(),A=new Date(F-150,0),D=new Date(F+1,0),H=function(n){for(var t=n.date,a=n.onChange,o=n.monthLabels,l=[],r=D.getFullYear();r>=A.getFullYear();r-=1)l.push(r);var i=function(e){var n=e.target.form,t=n.year,o=n.month;a(new Date(t.value,o.value))};return e.createElement("div",{className:"DayPicker-Caption"},e.createElement(Ee,null,e.createElement("select",{name:"month",onChange:i,value:t.getMonth()},o.map((function(n,t){return e.createElement("option",{key:n,value:t},n)}))),e.createElement("select",{name:"year",onChange:i,value:t.getFullYear()},l.map((function(n){return e.createElement("option",{key:n,value:n},n)})))))};return o((function(){return document.addEventListener("mousedown",M,!1),function(){document.removeEventListener("mousedown",M,!1)}}),[]),e.createElement(xe,{className:p,"data-align-right":r,ref:L,"data-is-static":u||void 0},e.createElement(Qn,{ref:N,inputProps:{readOnly:!0},keepFocus:!1,classNames:{container:"pickerContainer",overlayWrapper:"pickerOverlayWrapper",overlay:"pickerOverlay"},component:m&&e.forwardRef((function(n,t){return e.createElement(m,G({},n))})),onDayPickerHide:function(){y.current=!1},onDayPickerShow:function(){y.current=!0},dayPickerProps:{month:k,className:"picker",selectedDays:d,canChangeMonth:!0,enableOutsideDaysClick:!u,firstDayOfWeek:1,captionElement:function(n){var t=n.date,a=n.localeUtils,o=null==a?void 0:a.getMonths();return e.createElement(H,{date:t,monthLabels:z||o,onChange:C})},disabledDays:g||void 0,modifiers:h},format:c||"yyyy-MM-dd",formatDate:function(e,n){return b(e,n)},hideOnDayClick:!u,placeholder:i||"",onDayChange:function(e){var n;n=e,N.current&&!u&&N.current.hideDayPicker(),s&&s(n)},showOverlay:u}))},St=function(n){var t=n.size,a=n.iconPosition,o=n.className,l=n.children,r=n.icon;return e.createElement(ye,{className:o,"data-size":t,"data-icon-position":a},"left"===a&&r,l,"right"===a&&r)},It=function(t){var a=t.type,l=t.numberOfStep,i=t.activeStep,c=t.labelPrefix,s=t.detailSteps,m=t.className,d=t.onChange,p=n(0),u=p[0],g=p[1],h=function(n){var t=n.trackClassName,a=W(n,["trackClassName"]);return e.createElement(Ce,G({},a,{className:t}),e.createElement(Le,null))},f=e.createElement(be,{className:m+" progress-bar"},e.createElement(h,null),e.createElement((function(n){var t=n.trackLength,a=n.activeStep,o=n.labelPrefix,r=void 0===o?"Step":o,i=n.onChange;return e.createElement(e.Fragment,null,Array.from({length:l},(function(e,n){return n})).map((function(n,o){return e.createElement(Ne,{"data-is-active":o===a,"data-label":o,style:{left:o*t/(l-1)},onClick:function(){i&&i(o)},key:o},o+1,e.createElement(ze,{"data-step-passed":o<=a},r+" "+(o+1)))})))}),{trackLength:u,activeStep:i,labelPrefix:c,onChange:d})),v=e.createElement("svg",{"data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 5.5 9.5"},e.createElement("title",null,"chevron-right"),e.createElement("path",{d:"M.75 8.75l4-4-4-4",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})),x=e.createElement(we,null,s&&Array.from({length:s.length},(function(e,n){return n})).map((function(n,t){var a;return e.createElement(ke,{key:t,"data-selected":t===i,onClick:function(){d&&d(t)}},null===(a=s[t])||void 0===a?void 0:a.text," ",t<s.length-1&&v)}))),E=e.createElement(be,{className:m+" progress-bar"},e.createElement((function(n){var t=n.detailSteps,a=n.activeStep,o=n.onChange,l=Tn(t.length);return e.createElement(e.Fragment,null,Array.from({length:t.length},(function(e,n){return n})).map((function(n,r){return e.createElement(Me,{key:l[r],style:{left:100/t.length*r+"%",width:100/t.length+"%"},onClick:function(){o&&o(r)}},t[r].icon?e.createElement(Fe,{onClick:function(){o&&o(r)}},t[r].icon):e.createElement(Ae,{"data-is-active":r===a,"data-label":n,onClick:function(){o&&o(r)},key:r},r+1),e.createElement(De,{"data-step-passed":r<a+1},t[r].text,e.createElement(He,null,t[r].description)),r<t.length-1&&e.createElement(h,{"data-step-passed":r<a,trackClassName:"progress-track","data-track-type":"detail"}))})))}),{activeStep:i,detailSteps:s,onChange:d})),y=r(Jn((function(){var e=document.querySelector(".progress-bar");e&&g(e.offsetWidth)}),1e3),[]);return o((function(){var e=document.querySelector(".progress-bar");return g(null==e?void 0:e.offsetWidth),window.addEventListener("resize",y),function(){window.removeEventListener("resize",y)}}),[]),"step-track"===a&&f||"breadcrumb"===a&&x||"detail-track"===a&&E},jt=Object.freeze({__proto__:null,SideMenu:Be,SideHeader:Te,UserInfo:Se,MenuLink:Ie}),Vt=function(n){var t=n.isDisabled,a=n.isLeft,o=n.onClick,l=n.className,r=n.scheme,i=void 0===r?"hellosites":r;return e.createElement(Ue,{onClick:o,"data-is-disabled":t,"data-is-left":a,className:l},e.createElement("svg",{width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a?e.createElement("path",{d:"M2.92902 6.00015L6.75002 2.17915C7.16402 1.76515 7.16402 1.09315 6.75002 0.679152C6.33602 0.265152 5.66402 0.265152 5.25002 0.679152L0.636023 5.29315C0.245023 5.68415 0.245023 6.31715 0.636023 6.70715L5.25002 11.3212C5.66402 11.7352 6.33602 11.7352 6.75002 11.3212C7.16402 10.9072 7.16402 10.2352 6.75002 9.82115L2.92902 6.00015Z",fill:"hellosites"===i?"#595959":"#E55C8A"}):e.createElement("path",{d:"M5.07095 6.00015L1.24995 2.17915C0.835953 1.76515 0.835953 1.09315 1.24995 0.679152C1.66395 0.265152 2.33595 0.265152 2.74995 0.679152L7.36395 5.29315C7.75495 5.68415 7.75495 6.31715 7.36395 6.70715L2.74995 11.3212C2.33595 11.7352 1.66395 11.7352 1.24995 11.3212C0.835953 10.9072 0.835953 10.2352 1.24995 9.82115L5.07095 6.00015Z",fill:"hellosites"===i?"#595959":"#E55C8A"})))},Ut=function(t){for(var a=t.row,o=t.column,l=t.children,r=t.scheme,i=void 0===r?"hellosites":r,c=t.classNameLeftArrow,s=void 0===c?"":c,m=t.classNameRightArrow,d=void 0===m?"":m,p=t.mode,u=void 0===p?"snap":p,g=t.isDotsShown,h=void 0===g||g,f=t.isArrowShown,v=void 0!==f&&f,x=t.dataEventCategory,E=t.dataEventAction,y=t.dataEventLabel,b=t.onChangePage,w=e.useState(0),k=w[0],C=w[1],L=n(!1),N=L[0],z=L[1],M=Kn({defaultAnimation:{duration:1e3},initial:0,slideChanged:function(e){C(e.track.details.rel),b&&b(e.track.details.rel)},created:function(){z(!0)},drag:!0,mode:u,slides:{spacing:12}}),F=M[0],A=M[1],D=[],H=a*o,B=0;B<l.length;B+=H){var T=l.slice(B,B+H);D.push(T)}return e.createElement(je,{row:a,column:o},e.createElement("div",{className:"navigation-wrapper"},e.createElement("div",{ref:F,className:"keen-slider slides-wrapper"},D.map((function(n,t){return e.createElement("div",{key:t,className:"keen-slider__slide page-items"},n.map((function(n,t){return e.createElement("div",{key:t},n)})))}))),N&&A.current&&v&&e.createElement(e.Fragment,null,e.createElement(Vt,{isLeft:!0,onClick:function(e){var n;return e.stopPropagation()||(null===(n=A.current)||void 0===n?void 0:n.prev())},isDisabled:0===k,scheme:i,className:"left-arrow ".concat(s),"data-event-category":x,"data-event-action":E,"data-event-label":y}),e.createElement(Vt,{isLeft:!1,onClick:function(e){var n;return e.stopPropagation()||(null===(n=A.current)||void 0===n?void 0:n.next())},isDisabled:k===A.current.track.details.slides.length-1,scheme:i,className:"right-arrow ".concat(d),"data-event-category":x,"data-event-action":E,"data-event-label":y}))),N&&A.current&&h&&e.createElement("div",{className:"dots"},Y([],Array(A.current.track.details.slides.length),!0).map((function(n,t){return e.createElement(Ve,{key:t,onClick:function(){var e;null===(e=A.current)||void 0===e||e.moveToIdx(t)},"data-is-active":k===t,"data-is-hellosites":"hellosites"===i})}))))},Pt=function(n){var t=n.type,a=n.description,o=n.value,l=n.withIcon,r=n.isInACard,i=n.cardColor,c=n.className;return e.createElement(Pe,{className:c,"data-size":t,"data-is-in-card":"big"===t&&r,"data-card-color":i},e.createElement(Re,null,"small"===t&&e.createElement(Oe,{"data-color":i}),a),e.createElement(Ze,{"data-size":t},"small"!==t&&l,o))},Rt=Object.freeze({__proto__:null,Table:Ge,Cell:Ye,Head:We,Row:qe,Body:Qe}),Ot=function(t){var a=t.style,l=t.initialTab,r=t.tabContent,i=t.onChange,c=t.className,m=t.dataEventCategory,d=t.dataEventAction,p=t.dataEventLabel,u=t.id,g=n(l||0),h=g[0],f=g[1],v=Tn(r.length);return o((function(){f(l)}),[l]),e.createElement(Je,{style:a,className:c,role:"tablist",id:u},r.map((function(n,t){return e.createElement(Ke,{"data-is-tab-active":h===t||void 0,"aria-selected":h===t,role:"tab",onClick:function(){f(t),i&&i(t)},onKeyDown:function(e){"Enter"===e.key&&(f(t),i&&i(t))},key:v[t],"data-event-category":m,"data-event-action":d,"data-event-label":p,tabIndex:0},e.createElement(Xe,null,n.icon&&e.createElement(_e,null,n.icon),e.createElement(s,{size:n.textSize||"sm",type:n.textType||"bold",color:n.textColor||X.colors.gray800,dataEventCategory:n.dataEventCategory,dataEventAction:n.dataEventAction,dataEventLabel:n.dataEventLabel},n.name)))})))},Zt=function(n){var t=n.thankyou,a=n.thankyouSubtitle,o=n.className,l=n.style;return e.createElement($e,{className:o,style:l},e.createElement("div",{className:"survey-inner-wrapper"},e.createElement(en,null,e.createElement("div",{className:"survey-thankyou-wrapper-inner"},e.createElement("svg",{viewBox:"0 0 122 122",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"survey-thankyou-icon"},e.createElement("path",{d:"M61.5 122C94.6371 122 121.5 95.1371 121.5 62C121.5 28.8629 94.6371 2 61.5 2C28.3629 2 1.5 28.8629 1.5 62C1.5 95.1371 28.3629 122 61.5 122Z",fill:"#E3F2FF"}),e.createElement("ellipse",{cx:"61.5",cy:"110.36",rx:"48",ry:"3.36",fill:"#91CAFF"}),e.createElement("path",{d:"M82.9048 72.6663H101.5L87.597 40H35.403L21.5 72.6663H40.0952V91H83.0786L82.9048 72.6663Z",fill:"#2C74DF"}),e.createElement("path",{d:"M74.4004 15.0005H39.863C36.9017 15.0005 34.5 17.4022 34.5 20.3635V72.5769C34.5 75.5383 36.9017 77.9399 39.863 77.9399H83.1357C86.097 77.9399 88.4987 75.5383 88.4987 72.5769V29.0988L88.4987 21.0005C88.4987 17.6868 85.8124 15.0005 82.4987 15.0005H74.4004Z",fill:"white"}),e.createElement("path",{d:"M88.8529 80.1077H34.1469C31.8699 80.1077 30.06 78.3036 30.06 76.0338V65.3837C30.06 63.1139 31.8699 61.3098 34.1469 61.3098H88.8529C91.1299 61.3098 92.9398 63.1139 92.9398 65.3837V76.0338C92.9398 78.3036 91.1299 80.1077 88.8529 80.1077Z",fill:"#E4E8EC"}),e.createElement("path",{d:"M90.838 85.4512H32.1618C29.8849 85.4512 28.075 83.6471 28.075 81.3774V70.7272C28.075 68.4575 29.8849 66.6533 32.1618 66.6533H90.7796C93.0566 66.6533 94.8665 68.4575 94.8665 70.7272V81.3774C94.9249 83.6471 93.0566 85.4512 90.838 85.4512Z",fill:"white"}),e.createElement("path",{d:"M103.748 75.4919V105.755C103.748 107.675 102.172 109.247 100.245 109.247H23.0031C21.0764 109.247 19.5 107.675 19.5 105.755V75.4919C19.5 73.5713 21.0764 72 23.0031 72H42.3866C44.3133 72 45.8897 73.5713 45.8897 75.4919V80.8461C45.8897 81.1952 46.1232 81.428 46.4735 81.428H76.7749C77.1253 81.428 77.3588 81.1952 77.3588 80.8461V75.4919C77.3588 73.5713 78.9352 72 80.8618 72H100.245C102.172 72 103.748 73.5713 103.748 75.4919Z",fill:"#45A4FF"}),e.createElement("path",{d:"M51.9541 91.3767V94.4612C51.9541 96.0907 53.2386 97.3711 54.8733 97.3711H67.7179C69.3526 97.3711 70.6371 96.0907 70.6371 94.4612V91.3767",stroke:"#2C74DF",strokeWidth:"3",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M120.5 38.0251C118.5 37.7793 117.25 39.3768 118.125 41.22L118.375 41.9573C119.125 43.8006 118 45.398 116 45.1523L115.25 45.0294C113.25 44.7836 112 46.3811 112.875 48.2244L113.25 48.9616C114 50.8049 112.875 52.4025 110.875 52.1567L110.125 52.0337C108.625 51.9109 107.5 52.7712 107.5 54",stroke:"#FE921D",strokeWidth:"1.9096",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M1.53299 62C1.2644 63.413 2.6745 64.337 4.35323 63.8478L5.02472 63.6304C6.70346 63.087 8.11356 64.0109 7.84496 65.4783L7.7107 66.0217C7.4421 67.4348 8.8522 68.3587 10.5309 67.8696L11.2024 67.6522C12.8812 67.1087 14.2913 68.0326 14.0227 69.5L13.8884 70.0435C13.687 71.1304 14.4256 71.8913 15.5 72",stroke:"#00B16A",strokeWidth:"2.8751",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M118 92C119.381 92 120.5 90.8807 120.5 89.5C120.5 88.1193 119.381 87 118 87C116.619 87 115.5 88.1193 115.5 89.5C115.5 90.8807 116.619 92 118 92Z",stroke:"#00B16A",strokeWidth:"2.8751",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M82.0001 3.18747L83.1875 7.53467L87.5347 6.34727L86.3473 2.00007L82.0001 3.18747Z",stroke:"#00B16A",strokeWidth:"2.1628",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M17.0001 28C18.1046 28 19 27.1045 19 25.9999C19 24.8954 18.1046 24 17.0001 24C15.8955 24 15 24.8954 15 25.9999C15 27.1045 15.8955 28 17.0001 28Z",stroke:"#FE921D",strokeWidth:"2.3278",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M61.5 26.6667C54.136 26.6667 48.1667 32.6361 48.1667 40.0001C48.1667 47.3641 54.136 53.3334 61.5 53.3334C68.864 53.3334 74.8334 47.3641 74.8334 40.0001C74.8334 32.6361 68.864 26.6667 61.5 26.6667ZM69.1094 36.9427L59.776 46.2761C59.516 46.5361 59.1747 46.6667 58.8334 46.6667C58.492 46.6667 58.1507 46.5361 57.8907 46.2761L53.8907 42.2761C53.3694 41.7547 53.3694 40.9121 53.8907 40.3907C54.412 39.8694 55.2547 39.8694 55.776 40.3907L58.8334 43.4481L67.224 35.0574C67.7454 34.5361 68.588 34.5361 69.1094 35.0574C69.6307 35.5787 69.6307 36.4214 69.1094 36.9427Z",fill:"#00CB8A"})),t&&e.createElement(ce,{className:"survey-thankyou-title",tag:"h3"},t),a&&e.createElement(s,{className:"survey-thankyou-subtitle",size:"p3"},a)))))},Gt=function(t){var a=t.items,l=t.className,r=t.style,i=t.backgroundPanelStyle,c=t.isOpen,s=t.onOpen,m=t.onClose,d=t.disableBackdropClick,p=t.siteType,u=void 0===p?"hb":p,g=t.animationType,h=void 0===g?"zoom":g,f=t.zIndex,v=void 0===f?300:f,x=n(!!c),E=x[0],y=x[1];o((function(){y(!!c)}),[c]);var b=function(){y(!1),m&&m()};return e.createElement(nn,{style:r,className:l,"data-floatmenu-open":E,"data-site-type":u,"data-animation-type":h},e.createElement(tn,{className:"float-button-group__panel",style:G({zIndex:v},i),onClick:d?void 0:b}),e.createElement(an,{className:"float-button-group___content",style:{zIndex:v}},e.createElement(on,null,a.map((function(n,t){return e.createElement(ln,{className:"float-item-button-".concat(t),style:G(G({},"zoom"===h&&{bottom:64*(a.length-1-t),transitionDelay:"".concat(rn/a.length*(E?a.length-1-t:t),"ms")}),"slide"===h&&{bottom:64*(a.length-1-t),transitionDelay:"".concat(rn/a.length*(E?t:a.length-1-t),"ms")}),key:t,onClick:function(){n.onClick(),n.keepMenuOnClick||y(!1)}},e.createElement(cn,{style:G({},"zoom"===h&&{transitionDelay:"".concat(rn/a.length*(E?a.length-1-t:t),"ms")})},n.label),e.createElement(sn,{className:"float-item-button__icon-wrapper",style:G({},("zoom"===h||"slide"===h)&&{transitionDelay:"".concat(rn/a.length*(E?a.length-1-t:t),"ms")})},n.icon))}))),e.createElement(mn,{onClick:E?b:function(){y(!0),s&&s()}})))},Yt=function(n){var t=n.className,a=n.policiesUrl,o=n.onAcceptClick,l=n.translations,r=void 0===l?{acceptButton:"Accept",policiesButton:"Our Policies"}:l,i=n.title,c=void 0===i?"":i,s=n.description,m=void 0===s?"":s,d=n.theme,p=void 0===d?"helloSites":d,u=n.isOpen,g=void 0===u||u,h=n.useDefaultPosition,f=void 0===h||h,v=n.trackingAttributes;return e.createElement(dn,{className:t,"data-theme":p,"data-is-open":g,"data-default-position":f},e.createElement(pn,{"data-has-content":!!c},c),e.createElement(un,{dangerouslySetInnerHTML:{__html:m}}),e.createElement(gn,null,e.createElement(hn,{role:"button",tabIndex:0,on:"tap:consent-element.accept",onClick:o,"data-event-category":null==v?void 0:v.dataEventCategory,"data-event-action":null==v?void 0:v.dataEventAction,"data-event-label":null==v?void 0:v.dataEventLabel},r.acceptButton),e.createElement(fn,{href:a},r.policiesButton)))},Wt=function(n){var t,a,o,l,r,i,c,s,m,d,p,u,g,h,f,v,x,E,y,b=n.SEOData,w=void 0===b?{}:b,k=n.isAmp,C=void 0!==k&&k,L=n.locale,N=void 0===L?"vi-VN":L,z=n.routerPathname,M=n.routerQuery,F=n.nextHead,A=n.siteType,D=n.seoCustom,H=n.userId,B=n.forcedCanonicalUrl,T=w.totalPages,S=w.currentPage,I=w.SEOTitle,j=void 0===I?"":I,V=w.SEODescription,U=void 0===V?"":V,P=w.SEOImage,R=w.seoType,O=w.SEOImageWidth,Z=w.SEOImageHeight,W=w.customMetaData,q=void 0===W?[]:W,Q=w.isIndexable,J=void 0===Q||Q,K=w.hasNoCanonical,X=void 0!==K&&K,te=J&&ne?"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1":"noindex",ae=process.env.NEXT_PUBLIC_BASE_API_URL,oe=w.canonicalUrl||z;Object.keys(M).forEach((function(e){var n=M[e];n&&Array.isArray(n)&&(oe=oe.replace("[...".concat(e,"]"),n.join("/")))}));var le,re=N||"en-PH",ie="helloSites"===A?_[re]:"www.marrybaby.vn",ce=oe.endsWith("/")?"":"/";if(w.apiMetaData&&"string"==typeof w.apiMetaData){var se=null===(t=w.apiMetaData)||void 0===t?void 0:t.match(/<title.*?>(.*)<\/title>/),me=" - Page ".concat(S," of ").concat(T),de=S&&1!==S&&se?w.apiMetaData.replace(se[0],se[0].includes("-")?se[0].replace("-",me+" - "):"<title>".concat(se[1].concat(me),"</title>")).replace('<link rel="canonical" href="https://'.concat(ie).concat(oe).concat(ce,'" />'),'<link rel="canonical" href="https://'.concat(ie).concat(oe).concat(ce,"?page=").concat(S,'" />')):w.apiMetaData,pe=(le=vn(de,{trim:!0})).find((function(e){var n,t;return"og:image"===(null===(n=e.props)||void 0===n?void 0:n.property)||"og:image:secure_url"===(null===(t=e.props)||void 0===t?void 0:t.property)}));if(!pe){var ue="https://".concat(ie,"/images/").concat(N,".png");le=Y(Y([],le,!0),[e.createElement("meta",{key:"og:image",property:"og:image",content:(null===(a=w.openGraph)||void 0===a?void 0:a.image)||ue||""}),e.createElement("meta",{key:"og:image:secure_url",property:"og:image:secure_url",content:(null===(o=w.openGraph)||void 0===o?void 0:o.image)||ue}),e.createElement("meta",{key:"og:image:width",property:"og:image:width",content:(null===(l=w.openGraph)||void 0===l?void 0:l.imageWidth)&&String(null===(r=w.openGraph)||void 0===r?void 0:r.imageWidth)||"1200"}),e.createElement("meta",{key:"og:image:height",property:"og:image:height",content:(null===(i=w.openGraph)||void 0===i?void 0:i.imageHeight)&&String(null===(c=w.openGraph)||void 0===c?void 0:c.imageHeight)||"630"})],!1)}}var ge="https://".concat(ie,"/images/").concat(N,".png");return e.createElement(F,null,e.createElement("link",{rel:"preconnect",href:"https://fonts.gstatic.com"}),"marryBaby"===A&&e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Inter&family=Krub:wght@600&display=swap",rel:"stylesheet"}),"km-KH"===N?e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Battambang:wght@400;700&display=swap",rel:"stylesheet"}):"id-ID"===N||"ms-MY"===N?e.createElement(e.Fragment,null):e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&display=swap",rel:"preload",as:"style"}),e.createElement("link",{rel:"preconnect",href:ae}),e.createElement("meta",{charSet:"UTF-8"}),!C&&e.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"}),e.createElement("meta",{name:"google",content:"notranslate"}),e.createElement("meta",{name:"robots",content:te}),e.createElement("meta",{property:"fb:app_id",content:"653713035016537"}),q.map((function(n,t){return e.createElement("meta",G({key:t},n))})),e.createElement("meta",{name:"theme-color",content:"helloSites"===A?"#2c87f3":"#e85388"}),e.createElement("meta",{name:"page_type",content:"Home"}),e.createElement("meta",{name:"page_platform",content:"WEB"}),e.createElement("meta",{name:"page_language",content:re}),e.createElement("meta",{name:"ahrefs-site-verification",content:"46e7521a2b89a1013149c4685bbe02a1d36a4732fef98655142b829bc87cba4d"}),C&&e.createElement(e.Fragment,null,e.createElement("script",{async:!0,"custom-element":"amp-analytics",src:"https://cdn.ampproject.org/v0/amp-analytics-0.1.js"}),e.createElement("script",{async:!0,"custom-element":"amp-fx-collection",src:"https://cdn.ampproject.org/v0/amp-fx-collection-0.1.js"}),e.createElement("script",{async:!0,"custom-element":"amp-ad",src:"https://cdn.ampproject.org/v0/amp-ad-0.1.js"}),e.createElement("script",{async:!0,"custom-element":"amp-next-page",src:"https://cdn.ampproject.org/v0/amp-next-page-1.0.js"}),e.createElement("script",{async:!0,"custom-element":"amp-sticky-ad",src:"https://cdn.ampproject.org/v0/amp-sticky-ad-1.0.js"}),e.createElement("script",{async:!0,"custom-element":"amp-social-share",src:"https://cdn.ampproject.org/v0/amp-social-share-0.1.js"}),e.createElement("script",{async:!0,"custom-element":"amp-bind",src:"https://cdn.ampproject.org/v0/amp-bind-0.1.js"})),!le&&e.createElement(e.Fragment,null,"helloSites"===A?e.createElement("title",null,D?j:j+" - "+(null===(s=$[N])||void 0===s?void 0:s.SITE_NAME)):e.createElement("title",null,j),!X&&e.createElement("link",{rel:"canonical",href:"https://".concat(ie).concat(oe)}),e.createElement("meta",{name:"description",content:U||(null===(m=w.openGraph)||void 0===m?void 0:m.description)}),w.schemaData&&e.createElement("script",{type:"application/ld+json",className:"yoast-schema-graph",dangerouslySetInnerHTML:{__html:w.schemaData}}),e.createElement("meta",{property:"og:locale",content:N}),e.createElement("meta",{property:"og:type",content:R||"website"}),e.createElement("meta",{property:"og:title",content:(null===(d=w.openGraph)||void 0===d?void 0:d.title)||j}),e.createElement("meta",{property:"og:description",content:(null===(p=w.openGraph)||void 0===p?void 0:p.description)||U}),e.createElement("meta",{property:"og:url",content:"https://".concat(ie).concat(oe)}),e.createElement("meta",{property:"og:site_name",content:"https://".concat(ie)}),e.createElement("meta",{property:"og:image",content:(null===(u=w.openGraph)||void 0===u?void 0:u.image)||P||ge||""}),e.createElement("meta",{property:"og:image:secure_url",content:(null===(g=w.openGraph)||void 0===g?void 0:g.image)||P||ge}),e.createElement("meta",{property:"og:image:width",content:(null===(h=w.openGraph)||void 0===h?void 0:h.imageWidth)&&String(null===(f=w.openGraph)||void 0===f?void 0:f.imageWidth)||O&&String(O)||"1200"}),e.createElement("meta",{property:"og:image:height",content:(null===(v=w.openGraph)||void 0===v?void 0:v.imageHeight)&&String(null===(x=w.openGraph)||void 0===x?void 0:x.imageHeight)||Z&&String(Z)||"630"}),e.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),e.createElement("meta",{name:"twitter:title",content:(null===(E=w.twitter)||void 0===E?void 0:E.title)||j}),e.createElement("meta",{name:"twitter:description",content:U}),e.createElement("meta",{name:"twitter:image",content:(null===(y=w.twitter)||void 0===y?void 0:y.image)||P})),("helloSites"===A?ee[re]||[]:ee.marryBaby).map((function(n,t){return"link"===n.type?e.createElement("link",{key:"favicon-".concat(t),rel:n.rel,href:n.href,sizes:n.sizes}):"meta"===n.type?e.createElement("meta",{key:t,name:n.name,content:n.content}):null})),Array.isArray(le)&&B?le.filter((function(e){return"canonical"!==e.props.name&&"canonical"!==e.props.rel})):le,B&&e.createElement("link",{rel:"canonical",href:B}),!w.hasNoAmp&&"vi-VN"!==N&&e.createElement("link",{rel:"amphtml",href:"https://".concat(ie).concat(oe).concat(ce,"?amp=1")}),H&&"undefined"!=typeof window?e.createElement("script",{dangerouslySetInnerHTML:{__html:"window.dataLayer = window.dataLayer || []; window.dataLayer.push({'userID': '".concat(H,"'});")}}):null)},qt=function(n){var t=n.ampNextArticles,a=(null==t?void 0:t.filter(Boolean))||[];if(!(null==a?void 0:a.length))return null;return e.createElement("amp-next-page",null,e.createElement("script",{type:"application/json",dangerouslySetInnerHTML:{__html:JSON.stringify(a.map((function(e){return{image:e.image||"",title:e.title?JSON.stringify(e.title):"",url:e.link||""}})))}}),e.createElement("div",G({},{separator:""},{className:"amp-page-seperator",style:{color:"#8C8C8C",textTransform:"uppercase",fontSize:11,fontWeight:700,marginLeft:16}}),"Next article:"))};var Qt={"en-PH":_n,"vi-VN":et,"zh-TW":nt,"id-ID":$n};function Jt(t){var o=t.value,l=void 0===o?{from:null,to:null}:o,r=n(null),i=r[0],c=r[1],s=xn().isMobile,m=n((function(){return l})),d=m[0],p=m[1],u=n((function(){var e;return Un(null!==(e=l.from)&&void 0!==e?e:new Date)})),g=u[0],h=u[1],f=a((function(){return Pn(g,1)}),[g]);var v=G(G({},t),{goToNextMonth:function(){h((function(e){return Pn(e,1)}))},goToPreviousMonth:function(){h((function(e){return Rn(e,1)}))},range:d,setRange:p,hoverDay:i,setHoverDay:c});return e.createElement(e.Fragment,null,e.createElement(Kt,G({},v,{date:g})),!s&&e.createElement(En,null),!s&&e.createElement(Kt,G({},v,{date:f})))}function Kt(n){var t=n.date,l=n.range,r=n.setRange,i=n.onChange,c=n.goToPreviousMonth,s=n.goToNextMonth,m=n.minDate,d=n.maxDate,p=n.close,u=void 0===p?function(){}:p,g=n.autoClose,h=void 0!==g&&g,f=n.hoverDay,v=n.setHoverDay,x=te().locale,E=a((function(){var e;return null!==(e=Qt[x])&&void 0!==e?e:Qt["en-PH"]}),[x]),y=a((function(){return jn(t,"MMMM",{locale:E})}),[t,E]),b=a((function(){return E?[1,2,3,4,5,6,0].map((function(e){return E.localize.day(e,{width:"narrow"})})):[]}),[E]);function w(n,t){if(null===n)return e.createElement(Mn,{key:"idx-".concat(t),"data-empty":"true"});var a=n.getDate(),o=Zn(n),i=!!l.from&&Gn(l.from,n),c=!!l.to&&Gn(l.to,n),s=i||c,p=!1;null!==f&&l.from&&Vn(l.from,f)&&!l.to?p=Yn(n,{start:l.from,end:f}):l.from&&l.to&&(p=Yn(n,{start:l.from,end:l.to}));var g=!1;return m&&d?g=!Yn(n,{start:m,end:d}):m?g=Vn(n,m):d&&(g=Wn(n,d)),e.createElement(Mn,{key:a,"data-is-today":o,"data-is-past":!o&&qn(n),"data-is-selected":s,"data-is-disabled":g,"data-in-range":p,"data-is-from":i,"data-is-to":c,onMouseEnter:function(){v(n)},onMouseLeave:function(){return v(null)},onClick:function(){g||r((function(e){return h&&l.from&&!l.to&&u(),function(e,n){return n.from||n.to?n.from&&n.to?{from:e,to:null}:n.from?Vn(e,n.from)?G(G({},n),{from:e}):G(G({},n),{to:e}):n:G(G({},n),{from:e})}(n,e)}))}},e.createElement(Fn,{onClick:function(){}},e.createElement("p",null,a)))}return o((function(){l.from&&l.to&&i(l)}),[l]),e.createElement(yn,{className:"calendar-wrapper"},e.createElement(bn,null,e.createElement(ie,{onClick:c,size:"md",color:"ghost",icon:e.createElement("img",{src:"data:image/svg+xml,%3csvg width='7' height='13' viewBox='0 0 7 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.66875 11.814L1.46875 6.657L5.66875 1.5' stroke='%23262626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e"})}),e.createElement("div",{className:"calendar-month"},y,e.createElement("strong",null,jn(t,"yyyy"))),e.createElement(ie,{onClick:s,size:"md",color:"ghost",icon:e.createElement("img",{src:"data:image/svg+xml,%3csvg width='7' height='13' viewBox='0 0 7 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1.46875 11.814L5.66875 6.657L1.46875 1.5' stroke='%23262626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e"})})),e.createElement(wn,null,e.createElement("div",null,e.createElement(kn,null,b.map((function(n,t){return e.createElement(Cn,{key:"".concat(n,"-").concat(t)},n)})))),e.createElement("div",null,function(){for(var n=t.getFullYear(),a=t.getMonth(),o=On(t),r=[],i=1;i<=o;i++)r.push(new Date(n,a,i));var c=r[0]?r[0].getDay():0;if(1!==c){var s=0===c?6:c-1;for(i=0;i<s;i++)r.unshift(null)}return e.createElement(Ln,{key:"month-".concat(a),"data-month-index":a,"data-has-range":Boolean(l.from&&l.to)},e.createElement(Nn,null,e.createElement(zn,null,r.map(w))))}())))}function Xt(o){var l=o.inputSize,r=void 0===l?"md":l,i=o.name,c=void 0===i?"date-range-picker":i,s=o.value,m=o.minDate,d=o.maxDate,p=o.onChange,u=o.className,g=o.autoClose,h=void 0!==g&&g;s||(s={from:null,to:null});var f=n(!1),v=f[0],x=f[1];function E(){x(!1)}var y=t(null);function b(e){p&&p(e)}function w(e){return jn(e,"dd/MM/yyyy")}Xn(y,(function(){E()}));var k=a((function(){return s.from&&s.to?Gn(s.from,s.to)?w(s.from):"".concat(w(s.from)," - ").concat(w(s.to)):""}),[s.from,s.to]);return e.createElement(An,{className:[u,v&&"focused"].filter(Boolean).join(" "),ref:y},e.createElement("label",{htmlFor:c},e.createElement(R,{size:r,value:k,name:c,actionIcon:e.createElement("img",{src:"data:image/svg+xml,%3csvg width='17' height='16' viewBox='0 0 17 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.9168 1.99984H13.5835C14.3168 1.99984 14.9168 2.59984 14.9168 3.33317V13.9998C14.9168 14.7332 14.3168 15.3332 13.5835 15.3332H2.91683C2.1835 15.3332 1.5835 14.7332 1.5835 13.9998V3.33317C1.5835 2.59984 2.1835 1.99984 2.91683 1.99984H3.5835V1.33317C3.5835 0.966504 3.8835 0.666504 4.25016 0.666504C4.61683 0.666504 4.91683 0.966504 4.91683 1.33317V1.99984H11.5835V1.33317C11.5835 0.966504 11.8835 0.666504 12.2502 0.666504C12.6168 0.666504 12.9168 0.966504 12.9168 1.33317V1.99984ZM3.5835 13.9998H12.9168C13.2835 13.9998 13.5835 13.6998 13.5835 13.3332V5.33317H2.91683V13.3332C2.91683 13.6998 3.21683 13.9998 3.5835 13.9998Z' fill='%23595959'/%3e%3c/svg%3e"}),autoFocus:!1,onFocus:function(){return x(!0)}})),v?e.createElement(Dn,{onMouseDown:function(e){e.stopPropagation()}},e.createElement(Jt,{value:s,onChange:b,minDate:m,maxDate:d,close:E,autoClose:h})):null)}var _t,$t,ea=function(){return e.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M6.86364 10.6666H5.22727C4.86912 10.6666 4.51448 10.5977 4.18359 10.4637C3.8527 10.3296 3.55205 10.1332 3.2988 9.8856C2.78734 9.3855 2.5 8.70722 2.5 7.99998C2.5 7.29274 2.78734 6.61446 3.2988 6.11436C3.81026 5.61426 4.50396 5.33331 5.22727 5.33331H6.86364M9.78374 5.33331H11.7727C12.1309 5.33331 12.4855 5.40229 12.8164 5.5363C13.1473 5.67031 13.4479 5.86674 13.7012 6.11436C13.9545 6.36198 14.1553 6.65596 14.2924 6.97949C14.4295 7.30303 14.5 7.64979 14.5 7.99998C14.5 8.35017 14.4295 8.69693 14.2924 9.02047C14.1553 9.344 13.9545 9.63798 13.7012 9.8856C13.4479 10.1332 13.1473 10.3296 12.8164 10.4637C12.4855 10.5977 12.1309 10.6666 11.7727 10.6666H9.78374",stroke:"#595959",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M6.5 8H10.5",stroke:"#595959",strokeLinecap:"round",strokeLinejoin:"round"}))},na=function(n){var t=n.url,a=n.onCopied,o=n.locale,l=ot(t||"").filter((function(e){return!e.allowedLocales||e.allowedLocales.includes(o)}));return e.createElement(Hn,null,e.createElement(s,{size:"p3",color:X.colors.gray800},"Share the results"),e.createElement("div",{className:"icon-group"},l.map((function(n,t){return e.createElement("a",{key:t,href:n.href,target:"_blank",rel:"noreferrer"},n.icon)})),e.createElement(ie,{size:"sm",type:"button",color:"tertiary",className:"share",style:{},icon:e.createElement(ea,null),onClick:function(){return q(void 0,void 0,void 0,(function(){var e;return Q(this,(function(n){switch(n.label){case 0:return[4,null===(e=null===navigator||void 0===navigator?void 0:navigator.clipboard)||void 0===e?void 0:e.writeText(t)];case 1:return n.sent(),null==a||a(),[2]}}))}))}})))},ta=function(){return e.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"copy"},e.createElement("path",{d:"M4 2.5C3.17125 2.5 2.5 3.17125 2.5 4V13.75C2.5 14.164 2.836 14.5 3.25 14.5C3.664 14.5 4 14.164 4 13.75V4H13.75C14.164 4 14.5 3.664 14.5 3.25C14.5 2.836 14.164 2.5 13.75 2.5H4ZM7 5.5C6.17125 5.5 5.5 6.17125 5.5 7V16C5.5 16.8287 6.17125 17.5 7 17.5H16C16.8287 17.5 17.5 16.8287 17.5 16V7C17.5 6.17125 16.8287 5.5 16 5.5H7ZM7 7H16V16H7V7Z",fill:"#595959"}))},aa=function(n){var t=n.open,a=n.title,l=n.onClose,i=n.onCopied,c=n.onShared,m=n.url,d=n.locale,p=W(n,["open","title","onClose","onCopied","onShared","url","locale"]),u=te().t,g=r((function(){return q(void 0,void 0,void 0,(function(){var e;return Q(this,(function(n){switch(n.label){case 0:return[4,null===(e=null===navigator||void 0===navigator?void 0:navigator.clipboard)||void 0===e?void 0:e.writeText(m)];case 1:return n.sent(),null==i||i(),[2]}}))}))}),[m,i]),h=ot(m||"").filter((function(e){return!e.allowedLocales||e.allowedLocales.includes(d)}));return console.log(h),o((function(){t&&navigator.share&&navigator.share({title:null!=a?a:"Read This Post",url:m}).then((function(){null==c||c()})).catch((function(){null==l||l()}))}),[m,a,c,t]),navigator.share?null:e.createElement(Bn,G({title:u("share.title"),onClose:l,open:t,placement:"bottom"},p),e.createElement("div",{className:"share-container"},e.createElement("div",{className:"icon-container"},e.createElement(s,{type:"semiBold",size:"s3",color:X.colors.gray600},u("share.title")),e.createElement("div",{className:"icon-group"},h.map((function(n,t){return e.createElement("a",{key:t,href:n.href,target:"_blank",rel:"noreferrer"},n.icon)})))),e.createElement("div",{className:"link-container"},e.createElement(s,{type:"semiBold",size:"s3",color:X.colors.gray600},u("share.copyLink")),e.createElement("div",{className:"input-group"},e.createElement(lt,{name:"link",size:"md",value:m,isDisabled:!0}),e.createElement(ie,{size:"md",type:"button",color:"tertiary",icon:e.createElement(ta,null),onClick:g})))))},oa=at.footer(_t||(_t=J(["\n background-color: #1b3250;\n\n .inner {\n padding: 64px 24px 98px 24px;\n "," {\n padding: 64px 0;\n }\n margin: 0 auto;\n //max-width: 1168px;\n\n &[data-type='mini'] {\n padding: 24px 0;\n }\n }\n\n .footer-logo {\n max-width: 132px;\n max-height: 32px;\n margin-bottom: 24px;\n &[data-is-sehat='true'] {\n max-width: 250px;\n }\n\n img {\n object-fit: contain;\n }\n }\n\n .social {\n margin-top: 24px;\n\n "," {\n margin-top: 32px;\n p {\n font-size: 13px;\n }\n }\n\n "," {\n p {\n font-size: 12px;\n }\n }\n\n p {\n color: ",";\n }\n }\n\n .icons {\n margin-top: 12px;\n margin-bottom: 20px;\n > a:not(:last-child) {\n margin-right: 16px;\n }\n\n .social-icon {\n width: 32px;\n height: 32px;\n }\n }\n\n .newsletter {\n > p {\n color: ",";\n\n font-size: 14px;\n line-height: 22px;\n\n "," {\n max-width: 380px;\n line-height: 28.5px;\n }\n }\n }\n\n hr {\n height: 1px;\n border: none;\n margin: 16px 0 16px 0;\n "," {\n margin-top: 0px;\n }\n background: ",";\n opacity: 0.1;\n outline: none;\n }\n\n .hrMobile {\n "," {\n display: none;\n }\n }\n\n .copyright {\n padding-top: 8px;\n\n "," {\n display: flex;\n flex-direction: row-reverse;\n align-items: center;\n justify-content: space-between;\n }\n\n .copyright-content {\n width: 90%;\n color: ",";\n font-size: 12px;\n }\n\n .copyright-image {\n width: 10%;\n align-self: flex-start;\n\n img {\n max-width: 100px;\n margin-bottom: 16px;\n\n "," {\n margin-bottom: 0px;\n }\n }\n }\n\n &[data-is-amp='true'] {\n img {\n margin-bottom: 0;\n }\n }\n }\n\n .copyright-certificate {\n color: ",";\n "," {\n font-size: 11px;\n }\n "," {\n font-size: 12px;\n }\n }\n\n .biglinks {\n margin-bottom: 12px;\n }\n\n .bigLink {\n display: block;\n color: ",";\n font-size: 14px;\n font-weight: ",";\n text-decoration: none;\n word-break: break-word;\n\n &:not(:last-child) {\n margin-bottom: 12px;\n }\n\n "," {\n display: inline-block;\n width: 50%;\n font-size: 16px;\n }\n }\n\n .mHalf {\n display: inline-block;\n width: 50%;\n padding-right: 24px;\n margin-bottom: 24px;\n vertical-align: top;\n\n p {\n color: ",";\n\n "," {\n margin-bottom: 8px;\n font-size: 13px;\n line-height: 20px;\n }\n "," {\n margin-bottom: 12px;\n font-size: 14px;\n }\n }\n }\n\n .otherSites {\n p {\n margin-bottom: 12px;\n color: ",";\n font-size: 12px;\n "," {\n font-size: 13px;\n }\n "," {\n font-size: 13px;\n }\n }\n\n .flags {\n display: flex;\n margin-bottom: 8px;\n\n div {\n margin-right: 10px;\n }\n }\n }\n\n .link {\n display: block;\n text-decoration: none;\n\n p {\n color: ",";\n font-weight: ",";\n word-break: break-word;\n }\n\n &:not(:last-child) {\n margin-bottom: 12px;\n }\n }\n\n .columns {\n "," {\n display: flex;\n flex-direction: row;\n width: 100%;\n\n > div:nth-child(1) {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n flex-basis: 40%;\n }\n\n > div:nth-child(2) {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n flex-basis: 60%;\n\n > div:nth-child(1) {\n flex-basis: 45%;\n }\n\n > div:not(:last-child) {\n flex-basis: 27.5%;\n }\n\n > div:last-child() {\n flex-basis: 0;\n }\n }\n }\n }\n\n .signupButton {\n display: none;\n border: none;\n margin-top: 16px;\n outline: none;\n text-transform: uppercase;\n }\n"],["\n background-color: #1b3250;\n\n .inner {\n padding: 64px 24px 98px 24px;\n "," {\n padding: 64px 0;\n }\n margin: 0 auto;\n //max-width: 1168px;\n\n &[data-type='mini'] {\n padding: 24px 0;\n }\n }\n\n .footer-logo {\n max-width: 132px;\n max-height: 32px;\n margin-bottom: 24px;\n &[data-is-sehat='true'] {\n max-width: 250px;\n }\n\n img {\n object-fit: contain;\n }\n }\n\n .social {\n margin-top: 24px;\n\n "," {\n margin-top: 32px;\n p {\n font-size: 13px;\n }\n }\n\n "," {\n p {\n font-size: 12px;\n }\n }\n\n p {\n color: ",";\n }\n }\n\n .icons {\n margin-top: 12px;\n margin-bottom: 20px;\n > a:not(:last-child) {\n margin-right: 16px;\n }\n\n .social-icon {\n width: 32px;\n height: 32px;\n }\n }\n\n .newsletter {\n > p {\n color: ",";\n\n font-size: 14px;\n line-height: 22px;\n\n "," {\n max-width: 380px;\n line-height: 28.5px;\n }\n }\n }\n\n hr {\n height: 1px;\n border: none;\n margin: 16px 0 16px 0;\n "," {\n margin-top: 0px;\n }\n background: ",";\n opacity: 0.1;\n outline: none;\n }\n\n .hrMobile {\n "," {\n display: none;\n }\n }\n\n .copyright {\n padding-top: 8px;\n\n "," {\n display: flex;\n flex-direction: row-reverse;\n align-items: center;\n justify-content: space-between;\n }\n\n .copyright-content {\n width: 90%;\n color: ",";\n font-size: 12px;\n }\n\n .copyright-image {\n width: 10%;\n align-self: flex-start;\n\n img {\n max-width: 100px;\n margin-bottom: 16px;\n\n "," {\n margin-bottom: 0px;\n }\n }\n }\n\n &[data-is-amp='true'] {\n img {\n margin-bottom: 0;\n }\n }\n }\n\n .copyright-certificate {\n color: ",";\n "," {\n font-size: 11px;\n }\n "," {\n font-size: 12px;\n }\n }\n\n .biglinks {\n margin-bottom: 12px;\n }\n\n .bigLink {\n display: block;\n color: ",";\n font-size: 14px;\n font-weight: ",";\n text-decoration: none;\n word-break: break-word;\n\n &:not(:last-child) {\n margin-bottom: 12px;\n }\n\n "," {\n display: inline-block;\n width: 50%;\n font-size: 16px;\n }\n }\n\n .mHalf {\n display: inline-block;\n width: 50%;\n padding-right: 24px;\n margin-bottom: 24px;\n vertical-align: top;\n\n p {\n color: ",";\n\n "," {\n margin-bottom: 8px;\n font-size: 13px;\n line-height: 20px;\n }\n "," {\n margin-bottom: 12px;\n font-size: 14px;\n }\n }\n }\n\n .otherSites {\n p {\n margin-bottom: 12px;\n color: ",";\n font-size: 12px;\n "," {\n font-size: 13px;\n }\n "," {\n font-size: 13px;\n }\n }\n\n .flags {\n display: flex;\n margin-bottom: 8px;\n\n div {\n margin-right: 10px;\n }\n }\n }\n\n .link {\n display: block;\n text-decoration: none;\n\n p {\n color: ",";\n font-weight: ",";\n word-break: break-word;\n }\n\n &:not(:last-child) {\n margin-bottom: 12px;\n }\n }\n\n .columns {\n "," {\n display: flex;\n flex-direction: row;\n width: 100%;\n\n > div:nth-child(1) {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n flex-basis: 40%;\n }\n\n > div:nth-child(2) {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n flex-basis: 60%;\n\n > div:nth-child(1) {\n flex-basis: 45%;\n }\n\n > div:not(:last-child) {\n flex-basis: 27.5%;\n }\n\n > div:last-child() {\n flex-basis: 0;\n }\n }\n }\n }\n\n .signupButton {\n display: none;\n border: none;\n margin-top: 16px;\n outline: none;\n text-transform: uppercase;\n }\n"])),ae.mbDown,ae.mbDown,ae.mbUp,(function(e){return e.theme.colors.neutral500}),(function(e){return e.theme.colors.neutral500}),ae.mbUp,ae.mbDown,(function(e){return e.theme.colors.neutral500}),ae.mbUp,ae.mbUp,(function(e){return e.theme.colors.neutral500}),ae.mbUp,(function(e){return e.theme.colors.neutral500}),ae.mbDown,ae.mbUp,(function(e){return e.theme.colors.white}),(function(e){return e.theme.sizes.fwBold}),ae.mbDown,(function(e){return e.theme.colors.neutral500}),ae.mbDown,ae.mbUp,(function(e){return e.theme.colors.neutral500}),ae.mbDown,ae.mbUp,(function(e){return e.theme.colors.white}),(function(e){return e.theme.sizes.fwBold}),ae.mbUp),la=at.div($t||($t=J(["\n width: 32px;\n height: 32px;\n margin-right: 10px;\n\n &[data-is-mobile='true'] {\n width: 24px;\n height: 24px;\n }\n\n .country-flag {\n width: 100%;\n height: 100%;\n }\n"],["\n width: 32px;\n height: 32px;\n margin-right: 10px;\n\n &[data-is-mobile='true'] {\n width: 24px;\n height: 24px;\n }\n\n .country-flag {\n width: 100%;\n height: 100%;\n }\n"]))),ra=function(n){var t=n.url,a=n.isMobile,o=n.dataEventCategory,l=n.dataEventAction,r=n.dataEventLabel,i=n.isAmp;return e.createElement(la,{"data-is-mobile":a},i?e.createElement("amp-img",{className:"country-flag",src:t,alt:"Country Flag","data-event-category":o,"data-event-action":l,"data-content-label":r}):e.createElement("img",{loading:"lazy",className:"country-flag lazy","data-src":t,alt:"Country Flag","data-event-category":o,"data-event-action":l,"data-content-label":r}))},ia=function(n){var t,a,l,r,i,c,m,d,p,u,g,h,f,v,x,E,y,b,w,k,C,L,N,z,M,F,A,D,H,B,T,S,I,j,V,U=n.className,P=n.type,R=void 0===P?"main":P,Z=n.footerInfo,G=n.isMobile,Y=n.locale,W=n.isAmp,q=te().t,Q=null==Z?void 0:Z.menu;return o((function(){setTimeout((function(){return null==tt?void 0:tt.update()}),100)}),[]),e.createElement(oa,{as:W&&"mini"===R?"div":"footer",className:U,style:"mini"===R?{backgroundColor:X.colors.neutral50}:{},"next-page-hide":!0},e.createElement(O,null,e.createElement("div",{className:"inner","data-type":R,"next-page-hide":""},"main"===R?e.createElement(e.Fragment,null,e.createElement("a",{href:"/"},W?(null===(a=null==Z?void 0:Z.general)||void 0===a?void 0:a.logo)?e.createElement("amp-img",{src:null===(l=null==Z?void 0:Z.general)||void 0===l?void 0:l.logo,alt:"Site logo",width:"132",height:"32",style:{marginBottom:24}}):null:e.createElement("img",{loading:"lazy",className:"footer-logo lazy","data-src":null===(t=null==Z?void 0:Z.general)||void 0===t?void 0:t.logo,alt:"Logo","data-is-sehat":"id-ID"===Y})),e.createElement("div",{className:"columns"},e.createElement("div",{className:"newsletter"},e.createElement(s,{size:"p1",type:"bold"},null===(r=null==Z?void 0:Z.general)||void 0===r?void 0:r.content),e.createElement(ie,{className:"signupButton",color:"primary",size:"lg"},q("footer.signUp")),e.createElement("div",{className:"social"},e.createElement(s,{size:"sm",type:"regular"},null===(i=null==Z?void 0:Z.social)||void 0===i?void 0:i.title),e.createElement("div",{className:"icons"},null===(m=null===(c=null==Z?void 0:Z.social)||void 0===c?void 0:c.socials)||void 0===m?void 0:m.map((function(n,t){return e.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":"Follow us - ".concat(n.name),"data-content-label":n.url,href:n.url},W?e.createElement("amp-img",{"data-event-category":"Footer","data-event-action":"Follow us - ".concat(n.name),"data-content-label":n.url,src:n.icon,alt:"Logo Social",width:"32",height:"32"}):e.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":"Follow us - ".concat(n.name),"data-content-label":n.url,"data-src":n.icon,alt:"Logo Social",className:"social-icon lazy"}))}))),e.createElement("hr",{className:"hrMobile"}))),e.createElement("div",null,Q&&e.createElement(e.Fragment,null,e.createElement("div",{className:"biglinks"},null===(p=null===(d=Q[0])||void 0===d?void 0:d.items)||void 0===p?void 0:p.map((function(n,t){return e.createElement("a",{"data-event-category":"Footer","data-event-action":n.title,"data-event-label":"https://".concat(_[Y]).concat(n.url),className:"bigLink",key:t,href:n.url},n.title)}))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"mHalf"},e.createElement(s,{type:"regular",size:"sm",className:"linkTitle"},null===(u=Q[1])||void 0===u?void 0:u.menu_title),null===(h=null===(g=Q[1])||void 0===g?void 0:g.items)||void 0===h?void 0:h.map((function(n,t){return e.createElement("a",{"data-event-category":"Footer","data-event-action":n.title,"data-event-label":"https://".concat(_[Y]).concat(n.url),className:"link",href:n.url,key:t},e.createElement(s,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:n.title,dataEventLabel:"https://".concat(_[Y]).concat(n.url)},n.title))}))),e.createElement("div",{className:"mHalf"},e.createElement(s,{type:"regular",size:"sm",className:"linkTitle"},null===(f=Q[2])||void 0===f?void 0:f.menu_title),null===(x=null===(v=Q[2])||void 0===v?void 0:v.items)||void 0===x?void 0:x.map((function(n,t){return n.url&&e.createElement("a",{"data-event-category":"Footer","data-event-action":n.title,"data-event-label":n.url,className:"link",href:n.url,key:t},e.createElement(s,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:n.title,dataEventLabel:n.url},n.title))})))),!W&&e.createElement(e.Fragment,null,e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"otherSites"},e.createElement(s,{type:"regular",size:"sm",className:"linkTitle"},null===(E=null==Z?void 0:Z.branch)||void 0===E?void 0:E.title),e.createElement("div",{className:"flags"},null===(b=null===(y=null==Z?void 0:Z.branch)||void 0===y?void 0:y.branch)||void 0===b?void 0:b.map((function(n,t){return e.createElement("a",{className:"link",href:n.url,key:t,"data-event-category":"Footer","data-event-action":n.name,"data-event-label":n.url},e.createElement(ra,{url:n.flag,isMobile:G,dataEventCategory:"Footer",dataEventAction:n.name,dataEventLabel:n.url,isAmp:W}))}))))))),e.createElement("hr",null),e.createElement("div",{className:"copyright","data-is-amp":W||void 0},(null===(w=null==Z?void 0:Z.general)||void 0===w?void 0:w.verified)&&e.createElement("a",{href:null===(C=null===(k=null==Z?void 0:Z.general)||void 0===k?void 0:k.verified[0])||void 0===C?void 0:C.url,className:"copyright-image"},W?e.createElement("amp-img",{src:null===(N=null===(L=null==Z?void 0:Z.general)||void 0===L?void 0:L.verified[0])||void 0===N?void 0:N.image,alt:"DMCA Icon",width:"100",height:"36"}):e.createElement("img",{loading:"lazy",className:"lazy","data-src":null===(M=null===(z=null==Z?void 0:Z.general)||void 0===z?void 0:z.verified[0])||void 0===M?void 0:M.image,alt:"DMCA Icon"})),e.createElement(s,{size:"xs",type:"regular",className:"copyright-content"},null===(F=null==Z?void 0:Z.general)||void 0===F?void 0:F.copyright)),"vi-VN"===Y&&e.createElement(s,{className:"copyright-certificate",size:"xs",type:"regular",color:"white"},"Giấy xác nhận cung cấp dịch vụ mạng xã hội trực tuyến số 529/GP-BTTTT, HN ngày 03/12/2019")):e.createElement(e.Fragment,null,(null==Z?void 0:Z.menu)&&e.createElement("div",{className:"columns"},e.createElement("div",{className:"mHalf"},e.createElement(s,{type:"regular",size:"sm",className:"linkTitle"},null===(A=null==Z?void 0:Z.menu[1])||void 0===A?void 0:A.menu_title),null===(H=null===(D=null==Z?void 0:Z.menu[1])||void 0===D?void 0:D.items)||void 0===H?void 0:H.map((function(n){return e.createElement("a",{className:"link",href:n.url,key:n.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":n.title,"data-content-id":"https://".concat(_[Y]).concat(n.url),"data-event-category":"Footer","data-event-action":n.title,"data-event-label":"https://".concat(_[Y]).concat(n.url)},e.createElement(s,{dataEventCategory:"Footer",dataEventAction:n.title,dataEventLabel:"https://".concat(_[Y]).concat(n.url),size:"sm",type:"regular",style:{color:X.colors.gray800}},n.title))}))),e.createElement("div",{className:"mHalf"},e.createElement(s,{type:"regular",size:"sm",className:"linkTitle"},null===(B=null==Z?void 0:Z.menu[2])||void 0===B?void 0:B.menu_title),null===(S=null===(T=null==Z?void 0:Z.menu[2])||void 0===T?void 0:T.items)||void 0===S?void 0:S.map((function(n,t){return e.createElement("a",{className:"link",href:n.url,key:t,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":n.title,"data-content-id":n.url,"data-event-category":"Footer","data-event-action":n.title,"data-event-label":n.url},e.createElement(s,{size:"sm",type:"regular",style:{color:X.colors.gray800},dataEventCategory:"Footer",dataEventAction:n.title,dataEventLabel:n.url},n.title))}))),!W&&"mini"!==R&&e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"newsletter"},e.createElement("div",{className:"social"},e.createElement(s,{size:"sm",type:"regular"},null===(I=null==Z?void 0:Z.social)||void 0===I?void 0:I.title),e.createElement("div",{className:"icons"},null===(V=null===(j=null==Z?void 0:Z.social)||void 0===j?void 0:j.socials)||void 0===V?void 0:V.map((function(n,t){return e.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":"Follow us - ".concat(n.name),"data-content-label":n.url,href:n.url},W?e.createElement("amp-img",{"data-event-category":"Footer","data-event-action":"Follow us - ".concat(n.name),"data-content-label":n.url,src:n.icon,alt:"Logo Social",width:"32",height:"32"}):e.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":"Follow us - ".concat(n.name),"data-content-label":n.url,"data-src":n.icon,alt:"Logo Social",className:"social-icon lazy"}))}))))))))))};at((function(n){var t=n.type,a=W(n,["type"]);return e.createElement(t,a)}))(ca||(ca=J(["\n color: var(--text-color, ",");\n font-family: Krub;\n font-weight: 600;\n letter-spacing: -0.2px;\n\n &[data-type='headline-1'] {\n font-size: 40px;\n line-height: 60px;\n }\n &[data-type='headline-2'] {\n font-size: 32px;\n line-height: 48px;\n }\n &[data-type='headline-3'] {\n font-size: 24px;\n line-height: 40px;\n }\n &[data-type='headline-4'] {\n font-size: 18px;\n line-height: 32px;\n }\n"],["\n color: var(--text-color, ",");\n font-family: Krub;\n font-weight: 600;\n letter-spacing: -0.2px;\n\n &[data-type='headline-1'] {\n font-size: 40px;\n line-height: 60px;\n }\n &[data-type='headline-2'] {\n font-size: 32px;\n line-height: 48px;\n }\n &[data-type='headline-3'] {\n font-size: 24px;\n line-height: 40px;\n }\n &[data-type='headline-4'] {\n font-size: 18px;\n line-height: 32px;\n }\n"])),(function(e){return e.theme.mbColors.dark}));var ca,sa,ma=at.p(sa||(sa=J(["\n color: var(--text-color, ",");\n letter-spacing: -0.2px;\n\n &[data-type='subtitle-1'] {\n font-size: 16px;\n font-weight: 600;\n line-height: 26px;\n }\n &[data-type='subtitle-2'] {\n font-size: 14px;\n font-weight: 500;\n line-height: 24px;\n }\n &[data-type='subtitle-3'] {\n font-size: 12px;\n font-weight: 500;\n line-height: 20px;\n }\n &[data-type='bodytext-1'] {\n font-size: 16px;\n font-weight: 400;\n line-height: 28px;\n }\n &[data-type='bodytext-2'] {\n font-size: 14px;\n font-weight: 400;\n line-height: 24px;\n }\n &[data-type='bodytext-3'] {\n font-size: 12px;\n font-weight: 400;\n line-height: 20px;\n }\n &[data-type='caption-1'] {\n font-size: 10px;\n font-weight: 500;\n letter-spacing: -0.1px;\n line-height: 14px;\n }\n &[data-type='caption-2'] {\n font-size: 10px;\n font-weight: 400;\n letter-spacing: -0.1px;\n line-height: 14px;\n }\n"],["\n color: var(--text-color, ",");\n letter-spacing: -0.2px;\n\n &[data-type='subtitle-1'] {\n font-size: 16px;\n font-weight: 600;\n line-height: 26px;\n }\n &[data-type='subtitle-2'] {\n font-size: 14px;\n font-weight: 500;\n line-height: 24px;\n }\n &[data-type='subtitle-3'] {\n font-size: 12px;\n font-weight: 500;\n line-height: 20px;\n }\n &[data-type='bodytext-1'] {\n font-size: 16px;\n font-weight: 400;\n line-height: 28px;\n }\n &[data-type='bodytext-2'] {\n font-size: 14px;\n font-weight: 400;\n line-height: 24px;\n }\n &[data-type='bodytext-3'] {\n font-size: 12px;\n font-weight: 400;\n line-height: 20px;\n }\n &[data-type='caption-1'] {\n font-size: 10px;\n font-weight: 500;\n letter-spacing: -0.1px;\n line-height: 14px;\n }\n &[data-type='caption-2'] {\n font-size: 10px;\n font-weight: 400;\n letter-spacing: -0.1px;\n line-height: 14px;\n }\n"])),(function(e){return e.theme.mbColors.dark})),da=function(n){var t=n.type,a=n.color,o=n.style,l=W(n,["type","color","style"]);return e.createElement(ma,G({"data-type":t,style:G(G({},o),a&&{"--text-color":a})},l))};at.footer(pa||(pa=J(["\n position: relative;\n background: ",";\n\n .inner {\n padding: 64px 24px 98px 24px;\n "," {\n padding: 64px 0;\n }\n margin: 0 auto;\n //max-width: 1168px;\n\n &[data-type='mini'] {\n padding: 0;\n }\n }\n\n .footer-logo {\n max-width: 132px;\n margin-bottom: 24px;\n }\n\n .social {\n margin-top: 24px;\n\n "," {\n margin-top: 32px;\n }\n\n p {\n color: ",";\n }\n }\n\n .icons {\n margin-top: 12px;\n margin-bottom: 20px;\n > a:not(:last-child) {\n margin-right: 16px;\n }\n }\n\n .newsletter {\n > p {\n color: ",";\n\n font-size: 14px;\n line-height: 22px;\n\n "," {\n max-width: 380px;\n font-size: 19px;\n line-height: 28.5px;\n }\n }\n }\n\n hr {\n height: 1px;\n border: none;\n margin: 16px 0 16px 0;\n "," {\n margin-top: 0px;\n }\n background: ",";\n opacity: 0.1;\n outline: none;\n }\n\n .hrMobile {\n "," {\n display: none;\n }\n }\n\n .copyright {\n padding-top: 8px;\n\n "," {\n display: flex;\n flex-direction: row-reverse;\n align-items: center;\n justify-content: space-between;\n }\n\n p {\n color: ",";\n }\n\n img {\n max-width: 100px;\n margin-bottom: 16px;\n\n "," {\n margin-bottom: 0px;\n }\n }\n\n &[data-is-amp='true'] {\n img {\n margin-bottom: 0;\n }\n }\n }\n\n .biglinks {\n margin-bottom: 12px;\n }\n\n .bigLink {\n display: block;\n color: ",";\n font-size: 19px;\n font-weight: ",";\n text-decoration: none;\n\n &:not(:last-child) {\n margin-bottom: 12px;\n }\n\n "," {\n display: inline-block;\n width: 50%;\n font-size: 16px;\n }\n }\n\n .mHalf {\n display: inline-block;\n width: 50%;\n padding-right: 24px;\n margin-bottom: 24px;\n vertical-align: top;\n\n p {\n margin-bottom: 12px;\n color: ",";\n }\n\n "," {\n margin-bottom: 8px;\n }\n }\n\n .otherSites {\n p {\n margin-bottom: 12px;\n color: ",";\n }\n\n .flags {\n display: flex;\n margin-bottom: 8px;\n\n div {\n margin-right: 10px;\n }\n }\n }\n\n .link {\n display: block;\n text-decoration: none;\n\n p {\n color: ",";\n font-weight: ",";\n }\n\n &:not(:last-child) {\n margin-bottom: 12px;\n }\n }\n\n .columns {\n "," {\n display: flex;\n flex-direction: row;\n width: 100%;\n\n > div:nth-child(1) {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n flex-basis: 40%;\n }\n\n > div:nth-child(2) {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n flex-basis: 60%;\n\n > div:nth-child(1) {\n flex-basis: 45%;\n }\n\n > div {\n flex-basis: 27.5%;\n }\n\n > div:last-child() {\n flex-basis: 0;\n }\n }\n }\n }\n\n .signupButton {\n display: none;\n border: none;\n margin-top: 16px;\n outline: none;\n text-transform: uppercase;\n }\n"],["\n position: relative;\n background: ",";\n\n .inner {\n padding: 64px 24px 98px 24px;\n "," {\n padding: 64px 0;\n }\n margin: 0 auto;\n //max-width: 1168px;\n\n &[data-type='mini'] {\n padding: 0;\n }\n }\n\n .footer-logo {\n max-width: 132px;\n margin-bottom: 24px;\n }\n\n .social {\n margin-top: 24px;\n\n "," {\n margin-top: 32px;\n }\n\n p {\n color: ",";\n }\n }\n\n .icons {\n margin-top: 12px;\n margin-bottom: 20px;\n > a:not(:last-child) {\n margin-right: 16px;\n }\n }\n\n .newsletter {\n > p {\n color: ",";\n\n font-size: 14px;\n line-height: 22px;\n\n "," {\n max-width: 380px;\n font-size: 19px;\n line-height: 28.5px;\n }\n }\n }\n\n hr {\n height: 1px;\n border: none;\n margin: 16px 0 16px 0;\n "," {\n margin-top: 0px;\n }\n background: ",";\n opacity: 0.1;\n outline: none;\n }\n\n .hrMobile {\n "," {\n display: none;\n }\n }\n\n .copyright {\n padding-top: 8px;\n\n "," {\n display: flex;\n flex-direction: row-reverse;\n align-items: center;\n justify-content: space-between;\n }\n\n p {\n color: ",";\n }\n\n img {\n max-width: 100px;\n margin-bottom: 16px;\n\n "," {\n margin-bottom: 0px;\n }\n }\n\n &[data-is-amp='true'] {\n img {\n margin-bottom: 0;\n }\n }\n }\n\n .biglinks {\n margin-bottom: 12px;\n }\n\n .bigLink {\n display: block;\n color: ",";\n font-size: 19px;\n font-weight: ",";\n text-decoration: none;\n\n &:not(:last-child) {\n margin-bottom: 12px;\n }\n\n "," {\n display: inline-block;\n width: 50%;\n font-size: 16px;\n }\n }\n\n .mHalf {\n display: inline-block;\n width: 50%;\n padding-right: 24px;\n margin-bottom: 24px;\n vertical-align: top;\n\n p {\n margin-bottom: 12px;\n color: ",";\n }\n\n "," {\n margin-bottom: 8px;\n }\n }\n\n .otherSites {\n p {\n margin-bottom: 12px;\n color: ",";\n }\n\n .flags {\n display: flex;\n margin-bottom: 8px;\n\n div {\n margin-right: 10px;\n }\n }\n }\n\n .link {\n display: block;\n text-decoration: none;\n\n p {\n color: ",";\n font-weight: ",";\n }\n\n &:not(:last-child) {\n margin-bottom: 12px;\n }\n }\n\n .columns {\n "," {\n display: flex;\n flex-direction: row;\n width: 100%;\n\n > div:nth-child(1) {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n flex-basis: 40%;\n }\n\n > div:nth-child(2) {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n flex-basis: 60%;\n\n > div:nth-child(1) {\n flex-basis: 45%;\n }\n\n > div {\n flex-basis: 27.5%;\n }\n\n > div:last-child() {\n flex-basis: 0;\n }\n }\n }\n }\n\n .signupButton {\n display: none;\n border: none;\n margin-top: 16px;\n outline: none;\n text-transform: uppercase;\n }\n"])),(function(e){return e.theme.mbColors.lightGray}),ae.mbDown,ae.mbDown,(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.neutral500}),ae.mbUp,ae.mbDown,(function(e){return e.theme.colors.neutral500}),ae.mbUp,ae.mbUp,(function(e){return e.theme.colors.white}),ae.mbUp,(function(e){return e.theme.colors.white}),(function(e){return e.theme.sizes.fwBold}),ae.mbDown,(function(e){return e.theme.colors.neutral500}),ae.mbDown,(function(e){return e.theme.colors.neutral500}),(function(e){return e.theme.colors.white}),(function(e){return e.theme.sizes.fwBold}),ae.mbUp);var pa,ua,ga,ha,fa,va,xa,Ea,ya=at.div(ua||(ua=J([""],[""]))),ba=at.div(ga||(ga=J(["\n position: relative;\n overflow: hidden;\n padding: 40px 40px 100px 40px;\n\n .icons-links {\n position: relative;\n display: flex;\n justify-content: space-between;\n }\n"],["\n position: relative;\n overflow: hidden;\n padding: 40px 40px 100px 40px;\n\n .icons-links {\n position: relative;\n display: flex;\n justify-content: space-between;\n }\n"]))),wa=at.div(ha||(ha=J(["\n position: relative;\n margin: 80px 0 0;\n\n "," {\n margin-top: 0px;\n overflow: hidden;\n &:before {\n position: absolute;\n top: 0;\n left: 50%;\n display: block;\n width: 150%;\n height: 100%;\n background-color: #f3f3f3;\n content: '';\n transform: translateX(-50%);\n border-radius: 100% 100% 0 0 / 30% 30%;\n }\n }\n"],["\n position: relative;\n margin: 80px 0 0;\n\n "," {\n margin-top: 0px;\n overflow: hidden;\n &:before {\n position: absolute;\n top: 0;\n left: 50%;\n display: block;\n width: 150%;\n height: 100%;\n background-color: #f3f3f3;\n content: '';\n transform: translateX(-50%);\n border-radius: 100% 100% 0 0 / 30% 30%;\n }\n }\n"])),ae.mbDown),ka=at.div(fa||(fa=J(["\n position: relative;\n padding: 0 16px;\n\n "," {\n padding: 48px 8px 0;\n }\n\n & .grid {\n display: flex;\n flex-wrap: wrap;\n margin: -8px;\n\n & > * {\n display: inline-block;\n flex: 0 0 25%;\n padding: 8px;\n color: ",";\n text-decoration: none;\n }\n\n "," {\n & > * {\n flex: 0 0 100%;\n text-align: center;\n }\n }\n }\n\n & .social-wrapper {\n margin-left: auto;\n }\n\n & .social {\n "," {\n & .icons-links {\n margin-top: 16px;\n\n & > a:not(:first-child) {\n margin-left: 10%;\n }\n\n & > a {\n text-decoration: none;\n }\n }\n }\n\n "," {\n width: 100%;\n display: flex;\n background: #fff;\n box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.05);\n border-radius: 8px;\n padding: 20px 16px;\n align-items: center;\n max-width: 400px;\n margin: 32px auto 0px;\n\n & > p {\n font-size: 12px;\n line-height: 20px;\n }\n\n & .icons-links {\n margin-left: 8%;\n flex: 1;\n display: inline-flex;\n justify-content: space-between;\n }\n }\n\n & .icons-links {\n & > a {\n & > img {\n width: 24px;\n object-fit: contain;\n }\n }\n }\n }\n"],["\n position: relative;\n padding: 0 16px;\n\n "," {\n padding: 48px 8px 0;\n }\n\n & .grid {\n display: flex;\n flex-wrap: wrap;\n margin: -8px;\n\n & > * {\n display: inline-block;\n flex: 0 0 25%;\n padding: 8px;\n color: ",";\n text-decoration: none;\n }\n\n "," {\n & > * {\n flex: 0 0 100%;\n text-align: center;\n }\n }\n }\n\n & .social-wrapper {\n margin-left: auto;\n }\n\n & .social {\n "," {\n & .icons-links {\n margin-top: 16px;\n\n & > a:not(:first-child) {\n margin-left: 10%;\n }\n\n & > a {\n text-decoration: none;\n }\n }\n }\n\n "," {\n width: 100%;\n display: flex;\n background: #fff;\n box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.05);\n border-radius: 8px;\n padding: 20px 16px;\n align-items: center;\n max-width: 400px;\n margin: 32px auto 0px;\n\n & > p {\n font-size: 12px;\n line-height: 20px;\n }\n\n & .icons-links {\n margin-left: 8%;\n flex: 1;\n display: inline-flex;\n justify-content: space-between;\n }\n }\n\n & .icons-links {\n & > a {\n & > img {\n width: 24px;\n object-fit: contain;\n }\n }\n }\n }\n"])),ae.mbDown,(function(e){return e.theme.colors.gray800}),ae.mbDown,ae.mbUp,ae.mbDown),Ca=at.div(va||(va=J(["\n position: relative;\n\n "," {\n margin: 80px 0 0;\n overflow: hidden;\n &:before {\n position: absolute;\n top: 0;\n left: 50%;\n display: block;\n width: 150%;\n height: 100%;\n background-color: #f3f3f3;\n border-radius: 2150px 2150px 0 0 / 200px 200px 0 0;\n content: '';\n transform: translateX(-50%);\n }\n }\n\n "," {\n background-color: #f3f3f3;\n }\n"],["\n position: relative;\n\n "," {\n margin: 80px 0 0;\n overflow: hidden;\n &:before {\n position: absolute;\n top: 0;\n left: 50%;\n display: block;\n width: 150%;\n height: 100%;\n background-color: #f3f3f3;\n border-radius: 2150px 2150px 0 0 / 200px 200px 0 0;\n content: '';\n transform: translateX(-50%);\n }\n }\n\n "," {\n background-color: #f3f3f3;\n }\n"])),ae.mbUp,ae.mbDown),La=at.div(xa||(xa=J(["\n position: relative;\n padding: 64px 16px 154px;\n text-align: center;\n\n "," {\n padding: 48px 8px 32px;\n }\n\n & .company-name {\n margin-top: 24px;\n }\n\n .logo {\n justify-content: center;\n }\n\n & .text-info {\n margin-top: 8px;\n > p {\n margin-bottom: 8px;\n }\n "," {\n text-align: left;\n margin-top: 16px;\n }\n }\n\n & .img-container {\n display: flex;\n max-width: 176px;\n height: 24px;\n justify-content: space-between;\n margin: 24px auto 0;\n\n "," {\n height: 32px;\n max-width: unset;\n justify-content: space-around;\n }\n\n img {\n width: unset;\n height: 100%;\n object-fit: contain;\n }\n }\n\n & > hr {\n border-color: ",";\n margin: 64px 0 18px;\n opacity: 0.1;\n }\n\n & .language-and-copyright {\n display: flex;\n justify-content: center;\n\n "," {\n margin-top: 60px;\n }\n\n & #footer-language-select {\n width: 100%;\n max-width: 114px;\n\n &[data-dropdown-open='true'] > div:after {\n transform: translateY(-60%) rotateZ(-180deg);\n }\n\n "," {\n order: 1;\n }\n\n & > div {\n padding: 0;\n\n & > div > svg {\n max-width: 22px;\n margin-right: 8px;\n transform: translateY(1px);\n }\n\n & > span {\n font-size: 12px;\n letter-spacing: -0.2px;\n line-height: 24px;\n }\n }\n\n & > ul[data-has-icons='true'] {\n width: 158px;\n max-width: 158px;\n border: none;\n border-radius: 4px;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.08);\n\n "," {\n margin-top: 0;\n left: unset;\n right: 0;\n top: unset;\n bottom: 32px;\n }\n\n & li {\n font-size: 12px;\n letter-spacing: -0.2px;\n line-height: 24px;\n\n & > div {\n max-width: 22px;\n & svg {\n width: 22px;\n max-width: 22px;\n transform: translateY(3px);\n }\n }\n }\n }\n }\n\n & > p {\n color: ",";\n }\n }\n"],["\n position: relative;\n padding: 64px 16px 154px;\n text-align: center;\n\n "," {\n padding: 48px 8px 32px;\n }\n\n & .company-name {\n margin-top: 24px;\n }\n\n .logo {\n justify-content: center;\n }\n\n & .text-info {\n margin-top: 8px;\n > p {\n margin-bottom: 8px;\n }\n "," {\n text-align: left;\n margin-top: 16px;\n }\n }\n\n & .img-container {\n display: flex;\n max-width: 176px;\n height: 24px;\n justify-content: space-between;\n margin: 24px auto 0;\n\n "," {\n height: 32px;\n max-width: unset;\n justify-content: space-around;\n }\n\n img {\n width: unset;\n height: 100%;\n object-fit: contain;\n }\n }\n\n & > hr {\n border-color: ",";\n margin: 64px 0 18px;\n opacity: 0.1;\n }\n\n & .language-and-copyright {\n display: flex;\n justify-content: center;\n\n "," {\n margin-top: 60px;\n }\n\n & #footer-language-select {\n width: 100%;\n max-width: 114px;\n\n &[data-dropdown-open='true'] > div:after {\n transform: translateY(-60%) rotateZ(-180deg);\n }\n\n "," {\n order: 1;\n }\n\n & > div {\n padding: 0;\n\n & > div > svg {\n max-width: 22px;\n margin-right: 8px;\n transform: translateY(1px);\n }\n\n & > span {\n font-size: 12px;\n letter-spacing: -0.2px;\n line-height: 24px;\n }\n }\n\n & > ul[data-has-icons='true'] {\n width: 158px;\n max-width: 158px;\n border: none;\n border-radius: 4px;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.08);\n\n "," {\n margin-top: 0;\n left: unset;\n right: 0;\n top: unset;\n bottom: 32px;\n }\n\n & li {\n font-size: 12px;\n letter-spacing: -0.2px;\n line-height: 24px;\n\n & > div {\n max-width: 22px;\n & svg {\n width: 22px;\n max-width: 22px;\n transform: translateY(3px);\n }\n }\n }\n }\n }\n\n & > p {\n color: ",";\n }\n }\n"])),ae.mbDown,ae.mbDown,ae.mbDown,(function(e){return e.theme.mbColors.midGray}),ae.mbDown,ae.mbDown,ae.mbDown,(function(e){return e.theme.mbColors.midGray})),Na=at.div(Ea||(Ea=J(["\n position: absolute;\n top: 0;\n right: -50%;\n width: 400px;\n height: 400px;\n background-color: #f2fcf7;\n border-radius: 50%;\n"],["\n position: absolute;\n top: 0;\n right: -50%;\n width: 400px;\n height: 400px;\n background-color: #f2fcf7;\n border-radius: 50%;\n"]))),za={SOCIAL_LINKS:{facebookLink:"https://www.facebook.com/marry.baby.vn",instagramLink:"https://www.instagram.com/marrybaby.vn",zaloLink:"http://zalo.me/806483414530291942",youtubeLink:"https://www.youtube.com/user/marrybabyvn"}},Ma=function(n){var t,a=n.socialLinks,o=void 0===a?za.SOCIAL_LINKS:a,l=o.facebookLink,r=o.instagramLink,i=o.zaloLink,c=o.youtubeLink,s=n.copyrightText,m=n.logoType,d=void 0===m?"marryBaby":m,p=n.isMobile,u=n.footerMenu,g=void 0===u?[]:u,h=n.type,f=void 0===h?"main":h,v=te().t;return"main"===f?e.createElement(ya,{className:"footer-container"},!p&&e.createElement("div",{className:"footer-divider"},e.createElement(O,{type:"marryBaby"},e.createElement(In,{style:{padding:"0 16px"},type:"solid"}))),e.createElement(wa,null,e.createElement(O,{type:"marryBaby"},e.createElement(ka,null,e.createElement("div",{className:"grid"},null===(t=p?null==g?void 0:g.slice(0,6):g)||void 0===t?void 0:t.map((function(n,t){var a=n.title,o=n.link;return e.createElement("a",{"data-event-category":"Footer","data-event-action":a,"data-event-label":"".concat(o),className:"link",href:o,key:"footer-links-".concat(t)},e.createElement(da,{color:X.colors.gray800,type:"subtitle-2"},a))})),e.createElement("div",{className:"social-wrapper"},e.createElement("div",{className:"social"},e.createElement(da,{type:"subtitle-2"},v("footer.followUsText")),e.createElement("div",{className:"icons-links"},l&&e.createElement("a",{target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":"Follow us - Facebook","data-content-label":l,href:l},e.createElement("img",{src:"data:image/svg+xml,%3csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M27 0H5C2.23858 0 0 2.23858 0 5V27C0 29.7614 2.23858 32 5 32H27C29.7614 32 32 29.7614 32 27V5C32 2.23858 29.7614 0 27 0Z' fill='%231778F2'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M20.314 32V19.499H23.569L24 15.19H20.314L20.32 13.034C20.32 11.911 20.42 11.309 21.943 11.309H23.977V7H20.722C16.812 7 15.437 9.09 15.437 12.604V15.191H13V19.499H15.437V32H20.314Z' fill='white'/%3e%3c/svg%3e",alt:"Facebook"})),c&&e.createElement("a",{target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":"Follow us - Youtube","data-event-label":c,href:c},e.createElement("img",{src:"data:image/svg+xml,%3csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='32' height='32' rx='6' fill='%23D42428'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M7 12C7 10.8954 7.89543 10 9 10H9.68946H10H22H22.31H23C24.1046 10 25 10.8954 25 12V12.5633V20C25 21.1046 24.1046 22 23 22H22.3098H22H10H9.68946H9C7.89543 22 7 21.1046 7 20V19.4367V12.5633V12ZM14.1994 12.4438V18.8997L19.34 15.6719L14.1994 12.4438Z' fill='white'/%3e%3c/svg%3e",alt:"Youtube"})),r&&e.createElement("a",{target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":"Follow us - Instagram","data-content-label":r,href:r},e.createElement("img",{src:"data:image/svg+xml,%3csvg width='32' height='32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M24.9 31.983L7.13 32c-3.909.004-7.11-3.191-7.114-7.1L0 7.13C-.004 3.222 3.191.021 7.1.017L24.87 0c3.909-.004 7.11 3.191 7.114 7.1L32 24.87c.004 3.91-3.191 7.11-7.1 7.114z' fill='url(%23prefix__paint0_radial)'/%3e%3cpath d='M24.9 31.983L7.13 32c-3.909.004-7.11-3.191-7.114-7.1L0 7.13C-.004 3.222 3.191.021 7.1.017L24.87 0c3.909-.004 7.11 3.191 7.114 7.1L32 24.87c.004 3.91-3.191 7.11-7.1 7.114z' fill='url(%23prefix__paint1_radial)'/%3e%3cpath d='M16 22.22A6.226 6.226 0 019.781 16c0-3.43 2.79-6.219 6.22-6.219a6.226 6.226 0 016.218 6.22c0 3.428-2.79 6.218-6.219 6.218zm0-10.662A4.447 4.447 0 0011.558 16 4.447 4.447 0 0016 20.442 4.447 4.447 0 0020.442 16 4.447 4.447 0 0016 11.558zM22.664 10.67a1.333 1.333 0 100-2.666 1.333 1.333 0 000 2.665z' fill='white'/%3e%3cpath d='M21.33 27.55H10.67a6.226 6.226 0 01-6.22-6.22V10.67c0-3.43 2.79-6.22 6.22-6.22h10.66a6.226 6.226 0 016.22 6.22v10.66c0 3.43-2.791 6.22-6.22 6.22zM10.67 6.226a4.447 4.447 0 00-4.443 4.442V21.33a4.447 4.447 0 004.442 4.442H21.33a4.447 4.447 0 004.442-4.442V10.67a4.447 4.447 0 00-4.442-4.443H10.67z' fill='white'/%3e%3cdefs%3e%3cradialGradient id='prefix__paint0_radial' cx='0' cy='0' r='1' gradientUnits='userSpaceOnUse' gradientTransform='translate(11.896 32.023) scale(39.8892)'%3e%3cstop stop-color='%23FD5'/%3e%3cstop offset='.328' stop-color='%23FF543F'/%3e%3cstop offset='.348' stop-color='%23FC5245'/%3e%3cstop offset='.504' stop-color='%23E64771'/%3e%3cstop offset='.643' stop-color='%23D53E91'/%3e%3cstop offset='.761' stop-color='%23CC39A4'/%3e%3cstop offset='.841' stop-color='%23C837AB'/%3e%3c/radialGradient%3e%3cradialGradient id='prefix__paint1_radial' cx='0' cy='0' r='1' gradientUnits='userSpaceOnUse' gradientTransform='matrix(26.4865 0 0 17.6479 5.15 -.4)'%3e%3cstop stop-color='%234168C9'/%3e%3cstop offset='.999' stop-color='%234168C9' stop-opacity='0'/%3e%3c/radialGradient%3e%3c/defs%3e%3c/svg%3e",alt:"Instagram"})),i&&e.createElement("a",{target:"_blank",rel:"noreferrer",href:i,"data-event-category":"Footer","data-event-action":"Follow us - Zalo","data-event-label":i},e.createElement("img",{src:"data:image/png;base64,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",alt:"Zalo"}))))))))),e.createElement(Ca,null,e.createElement(O,{type:"marryBaby"},e.createElement(La,null,e.createElement(Z,{className:"logo",type:d,width:"121px"}),e.createElement(da,{className:"company-name",type:"subtitle-2"},v("footer.info.companyName")),e.createElement("div",{className:"text-info"},e.createElement(da,{type:"bodytext-3"},v("footer.info.address")),e.createElement(da,{type:"bodytext-3"},v("footer.info.license")),e.createElement(da,{type:"bodytext-3"},v("footer.info.email"))),e.createElement("div",{className:"img-container"},e.createElement("img",{src:"/images/dmca_protected.png",alt:"DMCA protected"}),e.createElement("a",{href:"http://online.gov.vn/Home/WebDetails/25055?AspxAutoDetectCookieSupport=1",target:"_blank",rel:"noreferrer"},e.createElement("img",{src:"/images/mit_registered.png",alt:"MIT registered"}))),!p&&e.createElement(In,{type:"solid"}),e.createElement("div",{className:"language-and-copyright"},e.createElement(da,{type:"bodytext-3"},s)))))):e.createElement(ba,null,e.createElement(Na,null),e.createElement(da,{type:"subtitle-3",style:{marginBottom:24,textTransform:"uppercase",fontWeight:X.sizes.fwSemiBold},color:X.mbColors.midGray},v("footer.followUsText")),e.createElement("div",{className:"icons-links"},l&&e.createElement("a",{target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":"Follow us - Facebook","data-content-label":l,href:l},e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M21 5.75V18.25C21 19.765 19.765 21 18.25 21H15.5V14H17.31C17.565 14 17.78 13.81 17.81 13.56L17.995 12.06C18.015 11.92 17.97 11.775 17.875 11.67C17.78 11.56 17.645 11.5 17.5 11.5H15.5V9.75C15.5 9.2 15.95 8.75 16.5 8.75H17.5C17.775 8.75 18 8.525 18 8.25V6.56C18 6.305 17.8 6.09 17.545 6.065C17.515 6.06 16.81 6 15.915 6C13.715 6 12.5 7.31 12.5 9.685V11.5H10.5C10.225 11.5 10 11.725 10 12V13.5C10 13.775 10.225 14 10.5 14H12.5V21H5.75C4.235 21 3 19.765 3 18.25V5.75C3 4.235 4.235 3 5.75 3H18.25C19.765 3 21 4.235 21 5.75Z",fill:"url(#paint0_linear)"}),e.createElement("defs",null,e.createElement("linearGradient",{id:"paint0_linear",x1:"12",y1:"3",x2:"12",y2:"21",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#4DABF7"}),e.createElement("stop",{offset:"1",stopColor:"#2668DA"}))))),c&&e.createElement("a",{target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":"Follow us - Youtube","data-event-label":c,href:c},e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M11.9287 4.25C8.75236 4.25 5.80117 4.47631 4.11719 4.82812C4.1136 4.82907 4.11002 4.83005 4.10645 4.83105C2.83774 5.11535 1.64309 6.02412 1.3916 7.44727L1.39062 7.45312C1.19742 8.60013 1 10.0953 1 12.25C1 14.4006 1.1981 15.8562 1.44238 17.0635C1.70004 18.4446 2.86711 19.3809 4.15527 19.6689C4.16144 19.6707 4.16762 19.6723 4.17383 19.6738C5.93135 20.0201 8.79923 20.25 11.9756 20.25C15.1519 20.25 18.0213 20.0201 19.7793 19.6738C19.7855 19.6723 19.7917 19.6707 19.7979 19.6689C21.0666 19.3847 22.2612 18.4759 22.5127 17.0527C22.5134 17.0492 22.514 17.0456 22.5146 17.042C22.7049 15.8716 22.9514 14.3778 23 12.2197C23.0001 12.2142 23.0001 12.2087 23 12.2031C23 10.0438 22.7529 8.53934 22.5117 7.34766C22.2561 5.96354 21.0877 5.02474 19.7979 4.73633C19.7781 4.73195 19.7583 4.72836 19.7383 4.72559C18.0232 4.48448 15.1056 4.25 11.9287 4.25ZM10.0781 8.50098C10.2633 8.49715 10.4548 8.54095 10.6348 8.64258L14.9365 11.0732C15.662 11.4832 15.662 12.5177 14.9365 12.9277L10.6348 15.3584C9.91527 15.7644 9.01855 15.2502 9.01855 14.4307V9.56934C9.01855 8.95471 9.52252 8.51246 10.0781 8.50098Z",fill:"#EB3223"}))),r&&e.createElement("a",{target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":"Follow us - Instagram","data-content-label":r,href:r},e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M8.25 2.5C5.08319 2.5 2.5 5.08319 2.5 8.25V15.75C2.5 18.9164 5.0831 21.5 8.25 21.5H15.75C18.9165 21.5 21.5 18.9165 21.5 15.75V8.25C21.5 5.0831 18.9164 2.5 15.75 2.5H8.25ZM8.25 4H15.75C18.1056 4 20 5.8939 20 8.25V15.75C20 18.1055 18.1055 20 15.75 20H8.25C5.8939 20 4 18.1056 4 15.75V8.25C4 5.89381 5.89381 4 8.25 4ZM17 6C16.4475 6 16 6.4475 16 7C16 7.5525 16.4475 8 17 8C17.5525 8 18 7.5525 18 7C18 6.4475 17.5525 6 17 6ZM12 7C9.24759 7 7 9.24759 7 12C7 14.7524 9.24759 17 12 17C14.7524 17 17 14.7524 17 12C17 9.24759 14.7524 7 12 7ZM12 8.5C13.9416 8.5 15.5 10.0584 15.5 12C15.5 13.9416 13.9416 15.5 12 15.5C10.0584 15.5 8.5 13.9416 8.5 12C8.5 10.0584 10.0584 8.5 12 8.5Z",fill:"url(#paint0_radial)"}),e.createElement("defs",null,e.createElement("radialGradient",{id:"paint0_radial",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(0.499995 26) rotate(-47.9508) scale(34.3402 30.014)"},e.createElement("stop",{offset:"0.073",stopColor:"#EACC7B"}),e.createElement("stop",{offset:"0.184",stopColor:"#ECAA59"}),e.createElement("stop",{offset:"0.307",stopColor:"#EF802E"}),e.createElement("stop",{offset:"0.358",stopColor:"#EF6D3A"}),e.createElement("stop",{offset:"0.46",stopColor:"#F04B50"}),e.createElement("stop",{offset:"0.516",stopColor:"#F03E58"}),e.createElement("stop",{offset:"0.689",stopColor:"#DB359E"}),e.createElement("stop",{offset:"0.724",stopColor:"#CE37A4"}),e.createElement("stop",{offset:"0.789",stopColor:"#AC3CB4"}),e.createElement("stop",{offset:"0.877",stopColor:"#7544CF"}),e.createElement("stop",{offset:"0.98",stopColor:"#2B4FF2"}))))),i&&e.createElement("a",{target:"_blank",rel:"noreferrer",href:i,"data-event-category":"Footer","data-event-action":"Follow us - Zalo","data-event-label":i},e.createElement("div",{style:{height:24,width:24}},e.createElement("img",{src:"/icons/zalo.png",alt:"Zalo"})))))},Fa=function(n){var t=n.type,a=n.isMobile,o=void 0===a||a,l=n.locale,r=n.footerInfo,i=n.isAmp;return"helloSites"===n.siteType?e.createElement(ia,{isAmp:i,isMobile:o,type:t,locale:l,footerInfo:r||{}}):e.createElement(Ma,{isMobile:o,locale:l,footerMenu:r||[],copyrightText:"© 2022 MarryBaby.vn",socialLinks:n.marryBabySocialLinks,type:t})};export{rt as A,it as B,yt as C,Tt as D,st as F,mt as G,St as I,pt as P,Ct as R,ut as S,ft as T,xt as U,ct as a,ht as b,vt as c,Et as d,Lt as e,Mt as f,At as g,Dt as h,Ht as i,It as j,jt as k,Ut as l,Pt as m,Rt as n,Ot as o,Zt as p,Gt as q,Yt as r,Wt as s,qt as t,Xt as u,na as v,aa as w,Fa as x};
|