"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2002],{ApZA:function(e,t,o){o.d(t,{VH:function(){return s},Xt:function(){return i},lw:function(){return a},vc:function(){return n}});var r=o("rBCA"),l=o("cj46");let n=(0,r.Z)("div",{target:"ed674340"})("font-size:14px;a{text-decoration:none;}",e=>e.contentStyle?(0,l.p)(e.contentStyle):""," ",e=>e.containerStyle," ",e=>e.linkColor?"a { color: ".concat(e.linkColor," }"):""),i=(0,r.Z)("div",{target:"ed674341"})(e=>e.containerStyle?(0,l.p)(e.containerStyle):""," .lp-row-container{display:flex;max-width:",e=>e.containerWidth,";background-color:",e=>e.containerBgColor,";",e=>"center"===e.align?"margin: auto;":""," ",e=>e.contentStyle?(0,l.p)(e.contentStyle):""," &.lp-row-container--full{max-width:100%;width:100%;}}.lp-column-1{width:8.3333333%;}.lp-column-2{width:16.6666666%;}.lp-column-3{width:25%;}.lp-column-4{width:33.33333333%;}.lp-column-5{width:41.66666667%;}.lp-column-6{width:50%;}.lp-column-7{width:58.33333333%;}.lp-column-8{width:66.6666666%;}.lp-column-9{width:66.6666666%;}.lp-column-10{width:83.33333333%;}.lp-column-11{width:91.66666667%;}.lp-column-12{width:100%;}@media (min-width:992px){}@media (max-width:991px){.stack .column{width:100%;display:block;}.lp-row-container{flex-wrap:wrap;width:100%;}.lp-row-columns-stack{.lp-column{width:100%;}}.lp-row-two-columns-mobile{.lp-column{width:50%;}}}"),a=(0,r.Z)("div",{target:"ed674342"})(e=>e.containerStyle?(0,l.p)(e.containerStyle):""),s=(0,r.Z)("div",{target:"ed674343"})(e=>e.containerStyle?(0,l.p)(e.containerStyle):"")},Cqb0:function(e,t,o){o.d(t,{d:function(){return ModuleButton}});var r=o("BGKE"),l=o("q1tI"),n=o("raAP"),i=o("OGPO"),a=o("cj46"),s=o("mjV9");function ModuleButton(e){let{uuid:t,style:o,button:c,customEvent:d}=e,u=c.style,p=(0,n.U)(),{trackingClickButtonTemplate:m}=(0,i.de)(),h=(0,l.useCallback)(()=>{d&&m(d)},[]),f=(0,r.tZ)("button",{dangerouslySetInnerHTML:{__html:c.html},className:"template-module",onClick:d?h:void 0,"data-event-action":(0,a.Bu)("button",t),"data-event-label":p,"data-event-category":"SIDIS_LP"}),g=(0,l.useMemo)(()=>c.href?c.href.startsWith("#")?c.href:c.href.startsWith("http")?c.href:"//"+c.href:"",[c.href]);return(0,r.tZ)(s.JD,{styleWrap:o,styleModule:u,id:t,children:c.href?(0,r.tZ)("a",{href:g,target:"_blank",style:{color:"initial"},children:f}):f})}},"1uWh":function(e,t,o){o.d(t,{E:function(){return ModuleCarousel}});var r=o("BGKE"),l=o("q1tI"),n=o("Zdfy"),i=o("mjV9"),a=o("rBCA");let s=(0,a.Z)("div",{target:"e17fxwfx0"})("@media (max-width:767px){.carousel-arrow{width:30px;}}"),c=(0,a.Z)("div",{target:"e17fxwfx1"})("padding-top:41.67%;position:relative;width:100%;img{top:0;left:0;width:100%;height:100%;object-fit:cover;display:block;position:absolute;}@media (max-width:767px){padding-top:56.25%;}");function ModuleCarousel(e){let{style:t,carousel:o}=e,a=(0,l.useMemo)(()=>(null==o?void 0:o.images.filter(e=>!!e.src))||[],[null==o?void 0:o.images]),d=(0,l.useRef)(null);return((0,l.useEffect)(()=>{let e=setInterval(()=>{var e;null===(e=d.current)||void 0===e||e.scrollNext()},4e3);return()=>{clearInterval(e)}},[]),a.length)?(0,r.tZ)(i.Sx,{styleWrap:t,children:(0,r.tZ)(s,{children:(0,r.tZ)(n.l,{loop:!0,draggable:!0,dragFree:!1,withIndicators:!0,withControls:!0,slidesToScroll:1,align:"start",slideSize:"100%",getEmblaApi:e=>{d.current=e},nextControlIcon:(0,r.BX)("svg",{version:"1.2",baseProfile:"tiny-ps",viewBox:"0 0 49 71",width:49,height:71,children:[(0,r.tZ)("title",{children:"right button 2 copy 2"}),(0,r.tZ)("style",{dangerouslySetInnerHTML:{__html:"\n tspan { white-space:pre }\n .shp0 { fill: #ffffff;stroke: #ffffff;stroke-width: 2 } \n "}}),(0,r.tZ)("path",{id:"right button 2 copy 2",className:"shp0",d:"M12 12.98L13.01 11.99L37 35.56L35.98 36.55L12 12.98ZM12 58L35.98 34.43L37 35.43L13.02 59L12 58Z"})]}),previousControlIcon:(0,r.BX)("svg",{version:"1.2",baseProfile:"tiny-ps",viewBox:"0 0 49 71",width:49,height:71,children:[(0,r.tZ)("title",{children:"right button 2 copy 3"}),(0,r.tZ)("style",{dangerouslySetInnerHTML:{__html:"\n tspan { white-space:pre }\n .shp0 { fill: #ffffff;stroke: #ffffff;stroke-width: 2 } \n "}}),(0,r.tZ)("path",{id:"right button 2 copy 3",className:"shp0",d:"M13.01 36.55L12 35.56L35.99 11.99L37 12.98L13.01 36.55ZM35.98 59L12 35.43L13.01 34.43L37 58L35.98 59Z"})]}),styles:{controls:{top:"50%",transform:"translateY(-50%)"},control:{border:"0",boxShadow:"none",backgroundColor:"transparent",svg:{width:"2rem",height:"auto"}},indicator:{width:"12px",height:"12px",boxShadow:"0 0 15px rgb(0 0 0 / 16%)"}},children:a.map((e,t)=>(0,r.tZ)(n.l.Slide,{children:(0,r.tZ)(c,{className:"keen-slider__slide",children:e.link?(0,r.tZ)("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",children:(0,r.tZ)("img",{loading:"lazy",src:e.src,alt:e.alt})}):(0,r.tZ)("img",{loading:"lazy",src:e.src,alt:e.alt})})},t))})})}):null}},tjm7:function(e,t,o){o.d(t,{C:function(){return ModuleCountdown}});var r=o("BGKE"),l=o("q1tI"),n=o("cj46"),i=o("rBCA");let a=(0,i.Z)("div",{target:"eqbgt130"})("display:flex;.countdown{line-height:1.4;display:inline-flex;padding-left:10px;padding-right:10px;}.countdown--separator{display:block;font-size:1em;font-weight:700;}"),s=(0,i.Z)("div",{target:"eqbgt131"})("text-align:center;span{display:block;}.countdown--number{font-size:1em;font-weight:700;}.countdown--label{font-size:0.6em;font-weight:400;}"),c={days:"00",hours:"00",minutes:"00",seconds:"00"};function ModuleCountdown(e){let{countdown:t,style:o,computedStyle:i}=e,[d,u]=(0,l.useState)(c),p=i.align,{"padding-top":m,"padding-bottom":h,"padding-left":f,"padding-right":g,...b}=t.style;(0,l.useEffect)(()=>{let e;let o=new Date(t.date).getTime(),handler=()=>{let t=new Date().getTime(),r=o-t;r<0?(clearInterval(e),u(c)):u({days:Math.floor(r/864e5).toString().padStart(2,"0"),hours:Math.floor(r%864e5/36e5).toString().padStart(2,"0"),minutes:Math.floor(r%36e5/6e4).toString().padStart(2,"0"),seconds:Math.floor(r%6e4/1e3).toString().padStart(2,"0")})};return handler(),e=setInterval(handler,1e3),()=>{clearInterval(e)}},[t.date]);let y=(0,n.qq)(o),w=(0,n.qq)(b),v={paddingTop:m,paddingBottom:h,paddingLeft:f,paddingRight:g},k={paddingTop:m,paddingBottom:h};return"center"===p?y.justifyContent="center":"right"===p&&(y.justifyContent="flex-end"),(0,r.tZ)(a,{style:y,children:(0,r.BX)("div",{className:"countdown",style:w,children:[(0,r.BX)(s,{style:v,children:[(0,r.tZ)("span",{className:"countdown--number",children:d.days}),(0,r.tZ)("span",{className:"countdown--label",children:t.wording.day})]}),(0,r.tZ)("span",{className:"countdown--separator",style:k,children:t.separator}),(0,r.BX)(s,{style:v,children:[(0,r.tZ)("span",{className:"countdown--number",children:d.hours}),(0,r.tZ)("span",{className:"countdown--label",children:t.wording.hour})]}),(0,r.tZ)("span",{className:"countdown--separator",style:k,children:t.separator}),(0,r.BX)(s,{style:v,children:[(0,r.tZ)("span",{className:"countdown--number",children:d.minutes}),(0,r.tZ)("span",{className:"countdown--label",children:t.wording.minute})]}),(0,r.tZ)("span",{className:"countdown--separator",style:k,children:t.separator}),(0,r.BX)(s,{style:v,children:[(0,r.tZ)("span",{className:"countdown--number",children:d.seconds}),(0,r.tZ)("span",{className:"countdown--label",children:t.wording.second})]})]})})}},"1w02":function(e,t,o){o.d(t,{n:function(){return ModuleDivider}});var r=o("BGKE"),l=o("mjV9");function ModuleDivider(e){let{style:t,divider:o,computedStyle:n,uuid:i}=e,a=o.style,s=n.align;return(0,r.tZ)(l.Sx,{styleWrap:t,styleModule:a,id:i,children:(0,r.tZ)("div",{className:"template-module",style:{margin:"center"===s?"0 auto":"right"===s?"0 0 0 auto":"0"}})})}},ky4n:function(e,t,o){o.d(t,{Z:function(){return ModuleForm_PhoneInput}});var r=o("BGKE"),l=o("q1tI"),n=o("rBCA"),i=o("RB7Y"),a=o("T5Ef"),s=o("iq9V");let c=["VN","ID","MY","KH","PH","TH","MM","TW","IN"],d={ID:"Indonesia",IN:"India",KH:"Cambodia",MM:"Myanmar",MY:"Malaysia",PH:"Philippines",TH:"Thailand",TW:"Taiwan",VN:"Vietnam"};var ModuleForm_PhoneCountrySelect=e=>{let{value:t,onChange:o,...l}=e;return(0,r.tZ)("select",{...l,value:t,className:"country-select",onChange:e=>o(e.target.value||void 0),children:c.map(e=>(0,r.BX)("option",{value:e,children:[d[e]," (+",(0,i.Gg)(e),")"]},e))})};let u=(0,n.Z)(s.ZP,{target:"e1x2l2ll0"})(e=>e.$styleRecord," border-top-left-radius:0;border-bottom-left-radius:0;border-left:0;width:100%;&[disabled]{opacity:0.6;cursor:not-allowed;}"),p=(0,n.Z)("div",{target:"e1x2l2ll1"})("display:flex;align-items:stretch;.country-select{position:absolute;top:0;left:0;height:100%;width:100%;z-index:1;border:0;opacity:0;cursor:pointer;}.country-select-wrap{position:relative;display:flex;align-items:center;background-color:#f2f2f2;",e=>{let t={"padding-left":e.$styleRecord["padding-left"],"padding-right":e.$styleRecord["padding-right"],"padding-top":e.$styleRecord["padding-top"],"padding-bottom":e.$styleRecord["padding-bottom"],"border-left":e.$styleRecord["border-left"],"border-right":e.$styleRecord["border-right"],"border-top":e.$styleRecord["border-top"],"border-bottom":e.$styleRecord["border-bottom"],"border-top-left-radius":e.$styleRecord["border-radius"],"border-bottom-left-radius":e.$styleRecord["border-radius"]};return t},"}.country-flag{width:24px;height:24px;margin-right:6px;}");var ModuleForm_PhoneInput=function(e){let{placeholder:t,country:o,defaultCountry:n,styleRecord:s,disabled:c,children:d,onChange:m,defaultValue:h}=e,[f,g]=(0,l.useState)(o||"VN"),[b,y]=(0,l.useState)(h||""),w=a.ZP[f];(0,l.useEffect)(()=>{y(h||"")},[h]);let v=(0,l.useCallback)(e=>{let t=e||"";y(t),m&&m({phone:t,isValid:(0,i.yf)(t)})},[]);return(0,r.BX)(p,{$styleRecord:s,children:[(0,r.BX)("div",{className:"country-select-wrap",children:[!c&&(0,r.tZ)(ModuleForm_PhoneCountrySelect,{value:f,onChange:g}),(0,r.tZ)(w,{className:"country-flag"}),(0,r.BX)("div",{children:["(+",(0,i.Gg)(f),")"]})]}),(0,r.tZ)(u,{country:f,defaultCountry:n,placeholder:t,value:b,onChange:v,$styleRecord:s,disabled:c}),d&&(0,r.tZ)("div",{style:{display:"none"},children:d({phone:b||"",isValid:(0,i.yf)(b)})})]})}},WyPc:function(e,t,o){o.d(t,{w:function(){return ModuleForm}});var r=o("BGKE"),l=o("q1tI"),n=o("dDsW"),i=o("oQBk"),a=o("xIXX"),s=o("CJtR"),c=o("0VOb"),d=o("raAP"),u=o("Rlzi"),p=o.n(u),m=o("o0qI"),h=o("lMwY"),f=o("MzZ+"),g=o("rBCA");let b=(0,g.Z)("form",{target:"e14mgs8v0"})("margin:0 auto;",e=>e.computedStyle.linkColor?"\n a {\n color: ".concat(e.computedStyle.linkColor,"\n }\n "):""," @media screen and (min-width:",e=>e.$containerWidth,"){width:",e=>e.$formWidth,";}"),y=(0,g.Z)("div",{target:"e14mgs8v1"})("display:flex;flex-flow:row wrap;flex-grow:1;.form_field{padding:3px;flex:1 1 0%;display:block;flex-wrap:wrap;max-width:100%;&.checkbox{display:flex;align-items:flex-start;flex-wrap:nowrap;}}"),w=(0,g.Z)("label",{target:"e14mgs8v2"})("display:inline-block;",e=>e.styleRecord),v=(0,g.Z)("input",{target:"e14mgs8v3"})("line-height:1.571;width:100%;",e=>{let t={...e.styleRecord};return delete t["outline-color"],t},";",e=>e.styleRecord["outline-color"]?"\n &:focus {\n border-color: ".concat(e.styleRecord["outline-color"],";\n }\n "):""," &[type='submit']{cursor:pointer;}&[disabled]{opacity:0.6;cursor:not-allowed;}"),k=(0,g.Z)("select",{target:"e14mgs8v4"})("background:url(\"data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A\")\n right 6px center no-repeat;width:100%;",e=>e.styleRecord,";"),x=(0,g.Z)(v,{target:"e14mgs8v5"})("width:1.2em;height:1.2em;position:relative;padding:0;flex-shrink:0;border-radius:2px;transition:background 0.3s ease 0s,border-color 0.3s ease 0s,box-shadow 0.3s ease 0s;border:2px solid #595959;& + label{padding-left:5px;display:inline-block;vertical-align:middle;min-width:auto;cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none;a{text-decoration:none;&:hover{text-decoration:underline;}}}&:checked{border:0px;background:#2d87f3\n url(\"data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 1L4.125 8L1 4.81819' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A\")\n no-repeat center center;}"),_=(0,g.Z)("div",{target:"e14mgs8v6"})("display:flex;gap:15px;max-width:100%;select{background:url(\"data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A\")\n right 5px center no-repeat;height:100%;flex:1;min-width:0;",e=>e.styleRecord,";}"),Z=(0,g.Z)("div",{target:"e14mgs8v7"})("display:flex;gap:15px;"),S=(0,g.Z)("div",{target:"e14mgs8v8"})("width:100%;margin-top:10px;text-align:center;.otp-loading{background:url(data:image/gif;base64,R0lGODlhbgAKAPMAALy6vNze3PTy9MTCxOTm5Pz6/Ly+vNTS1Pz+/Ozq7MzKzP\n no-repeat;height:10px;width:100%;background-position:top;margin-bottom:1rem;}"),I=(0,g.Z)("div",{target:"e14mgs8v9"})("width:100%;margin-top:10px;text-align:center;"),C=(0,g.Z)("div",{target:"e14mgs8v10"})("position:relative;> svg{position:absolute;right:15px;width:24px;height:24px;padding:4px;top:50%;transform:translateY(-50%);cursor:pointer;transition:all 0.3s ease;z-index:1;&:hover{transform:translateY(-50%) scale(1.1);}}"),M=l.createContext({form:{attributes:{},structure:{attributes:{},description:"",title:"",fields:[]},style:{buttons:{},labels:{},fields:{},width:""},options:{campaign_code:"",message_success:"",message_error:"",thank_you_url:""}},computedStyle:{class:"",hideContentOnDesktop:!1,hideContentOnMobile:!1,linkColor:""},minHeight:0}),T=M.Provider,L=/(\[([^\]]+)])\(([^)]+)\)/g,B=a.SP.split("-")[1],N={"vi-VN":{province:"Tỉnh/th\xe0nh",district:"Quận/huyện",commune:"Phường/x\xe3"},"en-PH":{province:"Province/City",district:"District",commune:"Ward/Commune"},"id-ID":{province:"Provinsi/Kota",district:"Kecamatan",commune:"Kelurahan/Komune"}},E=(0,l.forwardRef)(function(e,t){let{fieldData:o}=e,{form:n,minHeight:i}=(0,l.useContext)(M)||{},{"label-position":s,...c}=n.style.labels,d=(0,f.R)(B),u=(0,l.useMemo)(()=>d.level1.map(e=>({label:e,value:e})),[d.level1]),p=(0,l.useMemo)(()=>d.level2.map(e=>({label:e,value:e})),[d.level2]),m=(0,l.useMemo)(()=>d.level3.map(e=>({label:e,value:e})),[d.level3]);(0,l.useImperativeHandle)(t,()=>({province:d.selectedLevel1,district:d.selectedLevel2,commune:d.selectedLevel3}),[d.selectedLevel1,d.selectedLevel2,d.selectedLevel3]);let h=N[a.SP]||N["en-PH"];return(0,r.BX)("div",{className:"form_field "+s,children:[o.label&&(0,r.tZ)(w,{styleRecord:c,children:o.label}),(0,r.BX)(_,{styleRecord:n.style.fields,children:[(0,r.BX)("select",{name:"province",style:{minHeight:i},required:!0,onChange:e=>{d.setSelectedLevel1(e.target.value)},children:[(0,r.tZ)("option",{value:"",children:h.province}),u.map(e=>(0,r.tZ)("option",{value:e.value,children:e.label},e.value))]}),(0,r.BX)("select",{name:"district",style:{minHeight:i},required:!0,disabled:!p.length,onChange:e=>{d.setSelectedLevel2(e.target.value)},children:[(0,r.tZ)("option",{value:"",children:h.district}),p.map(e=>(0,r.tZ)("option",{value:e.value,children:e.label},e.value))]}),(0,r.BX)("select",{name:"commune",style:{minHeight:i},required:!0,disabled:!m.length,onChange:e=>{d.setSelectedLevel3(e.target.value)},children:[(0,r.tZ)("option",{value:"",children:h.commune}),m.map(e=>(0,r.tZ)("option",{value:e.value,children:e.label},e.value))]})]})]})}),genKeyDay=e=>e+"_day",genKeyMonth=e=>e+"_month",genKeyYeah=e=>e+"_year",daysInMonth=(e,t)=>e?new Date(t||new Date().getFullYear(),e,0).getDate():31,recalculateNumberOfDate=e=>{let{day:t,month:o,year:r}=e;if(!o||!t)return e;let l=daysInMonth(o,r);return t&&t>l?{...e,day:""}:e};function FormFieldDateSelection(e){var t,o,n,i,a,s,c;let{fieldData:d,minHeight:u}=e,{form:p}=(0,l.useContext)(M)||{},{"label-position":m,...h}=p.style.labels,[f,g]=(0,l.useState)({day:"",month:"",year:""}),b=null===(t=d.computedAttrs)||void 0===t?void 0:t.placeholderDay,y=null===(o=d.computedAttrs)||void 0===o?void 0:o.placeholderMonth,v=null===(n=d.computedAttrs)||void 0===n?void 0:n.placeholderYear,x=null===(i=d.computedAttrs)||void 0===i?void 0:i.minYear,_=null===(a=d.computedAttrs)||void 0===a?void 0:a.maxYear,S=null===(s=d.computedAttrs)||void 0===s?void 0:s.minMonth,I=null===(c=d.computedAttrs)||void 0===c?void 0:c.maxMonth,handleChange=(e,t)=>{g(o=>recalculateNumberOfDate({...o,[e]:Number(t.target.value)||""}))};return(0,r.BX)("div",{className:"form_field "+m,children:[d.label&&(0,r.tZ)(w,{styleRecord:h,children:d.label}),(0,r.BX)(Z,{children:[(0,r.BX)(k,{name:genKeyDay(d.attributes.name),required:d.attributes.required,styleRecord:p.style.fields,style:{minHeight:u},value:f.day,onChange:e=>handleChange("day",e),children:[b&&(0,r.tZ)("option",{value:"",children:b}),Array(daysInMonth(f.month,f.year)).fill(0).map((e,t)=>(0,r.tZ)("option",{value:t+1,children:t+1},t+1))]}),(0,r.BX)(k,{name:genKeyMonth(d.attributes.name),required:d.attributes.required,styleRecord:p.style.fields,style:{minHeight:u},value:f.month,onChange:e=>handleChange("month",e),children:[y&&(0,r.tZ)("option",{value:"",children:y}),S&&I&&Array(I+1-S).fill(0).map((e,t)=>{let o=t+S;return(0,r.tZ)("option",{value:o,children:o},o)})]}),(0,r.BX)(k,{name:genKeyYeah(d.attributes.name),required:d.attributes.required,styleRecord:p.style.fields,style:{minHeight:u},value:f.year,onChange:e=>handleChange("year",e),children:[v&&(0,r.tZ)("option",{value:"",children:v}),x&&_&&Array(_+1-x).fill(0).map(function(e,t){let o=t+x;return(0,r.tZ)("option",{value:o,children:o},o)})]})]})]})}var H=o("ky4n"),P=o("V9i3"),D=o("cj46"),A=o("mjV9");let R={"vi-VN":{verifiedAlready:"Số điện thoại của bạn đ\xe3 được x\xe1c minh rồi!",enterVerifyCode:"Nhập m\xe3 x\xe1c minh"},"en-PH":{verifiedAlready:"Your phone number verified already",enterVerifyCode:"Enter your verify code"},"hi-IN":{verifiedAlready:"Your phone number verified already",enterVerifyCode:"Enter your verify code"},"id-ID":{verifiedAlready:"Your phone number verified already",enterVerifyCode:"Enter your verify code"},"km-KH":{verifiedAlready:"Your phone number verified already",enterVerifyCode:"Enter your verify code"},"ms-MY":{verifiedAlready:"Your phone number verified already",enterVerifyCode:"Enter your verify code"},"my-MM":{verifiedAlready:"Your phone number verified already",enterVerifyCode:"Enter your verify code"},"th-TH":{verifiedAlready:"Your phone number verified already",enterVerifyCode:"Enter your verify code"},"tl-PH":{verifiedAlready:"Your phone number verified already",enterVerifyCode:"Enter your verify code"},"zh-TW":{verifiedAlready:"Your phone number verified already",enterVerifyCode:"Enter your verify code"},"zh-SG":{verifiedAlready:"Your phone number verified already",enterVerifyCode:"Enter your verify code"}};function ModuleForm(e){let{style:t,form:o,computedStyle:u,uuid:f}=e,{width:g="100%"}=o.style,{state:_}=(0,l.useContext)(m.I),{containerWidth:Z}=(0,l.useContext)(P.mD),{formatMessage:M}=(0,n.Z)(),B=(0,d.U)(),N=(0,l.useRef)(null),F=(0,l.useRef)({}),[V,Y]=(0,l.useState)(0),[W,X]=(0,l.useState)("idle"),[O,q]=(0,l.useState)(!1),G=(0,l.useMemo)(()=>({form:o,minHeight:V,computedStyle:u}),[o,u,V]),K=(0,l.useMemo)(()=>!!o.structure.fields.find(e=>"otp"===e.type),[o.structure.fields]),j="verified"===W||"verifiedAlready"===W,z=(0,l.useMemo)(()=>!!o.structure.fields.find(e=>"phone"===e.type),[o.structure.fields]),[$,J]=(0,l.useState)(""),[U,Q]=(0,l.useState)(""),[ee,et]=(0,l.useState)(!1),eo=(0,l.useMemo)(()=>!!o.structure.fields.find(e=>"addressMultiple"===e.type),[o.structure.fields]);function resetToEditPhone(){X("idle")}function handleSubmitToGetOTP(e){e.preventDefault();let t=N.current;if("sending"===W||!t)return;let o=null==t?void 0:t.elements;if(o.otp){if("false"===o.otp.getAttribute("data-phone-valid")){(0,c.c)({title:M({id:"validation.error.validNumber",defaultMessage:"Please enter a valid number."}),message:"",type:"danger"});return}X("sending"),(0,a.uu)((0,s.DS)(i.y.LEADGEN.POST_LEAD_SEND_OTP),"POST",{data:{phone_number:o.otp.value}}).then(e=>{let t=null==e?void 0:e._messages[0];if("Send sms successfully"===t)X("sent");else if("This phone number was verified"===t)X("verifiedAlready"),(0,c.c)({title:R[a.SP].verifiedAlready,message:"",type:"success"});else{let e=M({id:"notification.comment.somethingWrong"});X("idle"),(0,c.c)({title:t||e,message:"",type:"danger"})}})}}function handleVerifyCode(e){e.preventDefault();let t=N.current;if("verifying"===W||!t)return;let o=null==t?void 0:t.elements;o.verifyCode&&o.otp&&(X("verifying"),(0,a.uu)((0,s.DS)(i.y.LEADGEN.POST_LEAD_VERIFY_OTP),"POST",{data:{otp_code:o.verifyCode.value,phone_number:o.otp.value}}).then(e=>{let t=null==e?void 0:e._messages[0];if("Verify successfully"===t)X("verified"),(0,c.c)({title:M({id:"subot.verifyOTP.success.message",defaultMessage:"Verified successful"}),message:"",type:"success"});else if("This phone number was verified"===t)X("verifiedAlready");else{let t=M({id:"notification.comment.somethingWrong"});X("sent"),(0,c.c)({title:(null==e?void 0:e._messages[0])||t,message:"",type:"danger"})}}))}(0,l.useEffect)(()=>{(0,h.I)("Lead")},[]),(0,l.useEffect)(()=>{let e=N.current;if(e){let t=e.querySelector('input[type="text"]')||e.querySelector('input[type="email"]')||e.querySelector('input[type="address"]');t&&Y(t.getBoundingClientRect().height)}},[]),(0,l.useEffect)(()=>{try{if(_.userInfo&&N.current){let e=N.current.elements;if(e.name&&(e.name.value=_.userInfo.name||""),e.email&&(e.email.value=_.userInfo.email||""),_.userInfo.phone&&_.userInfo.area_code){let t=_.userInfo.area_code+_.userInfo.phone;J(t),et(!0),K&&(Q(t),e.otp.value=t.replace("+",""))}}}catch(e){console.log("Error",e)}},[_.userInfo]);let renderFormField=(e,t)=>{let{"label-position":l,...n}=o.style.labels;if("dropdown"===e.type){var i;let t=(null===(i=e.computedAttrs)||void 0===i?void 0:i.options)||[];return(0,r.BX)("div",{className:"form_field dropdown",children:[e.label&&(0,r.tZ)(w,{styleRecord:n,children:e.label}),(0,r.BX)(k,{name:e.attributes.name,required:e.attributes.required,styleRecord:o.style.fields,style:{minHeight:V},children:[e.attributes.placeholder&&(0,r.tZ)("option",{value:"",children:e.attributes.placeholder}),t.map(e=>(0,r.tZ)("option",{value:e.value,children:e.label},e.value))]})]})}if("dateSelection"===e.type)return(0,r.tZ)(FormFieldDateSelection,{minHeight:V,fieldData:e});if("addressMultiple"===e.type)return(0,r.tZ)(E,{ref:F,fieldData:e});if("checkbox"===e.type){let o=parseInt(n["line-height"]),l=parseInt(n["font-size"]);return(0,r.BX)("div",{className:"form_field checkbox",children:[(0,r.tZ)(x,{id:e.attributes.name+"_"+t,type:e.type,...e.attributes,styleRecord:{},style:{top:"".concat((o/100*l-1.2*l)/2,"px"),fontSize:n["font-size"],transform:"translateY(".concat(n["padding-top"],")")}}),(0,r.tZ)(w,{htmlFor:e.attributes.name+"_"+t,styleRecord:n,dangerouslySetInnerHTML:{__html:function(e){let t=e?e.replace(L,'$2'):e;return t}(e.label)}})]})}if("submit"===e.type){let t={...o.style.buttons};return t.width="".concat(t.width," !important"),t["text-align"]="center","center"===o.style.buttons["text-align"]?(t["margin-left"]="auto",t["margin-right"]="auto"):"right"===o.style.buttons["text-align"]&&(t["margin-left"]="auto",t["margin-right"]="0px"),(0,r.BX)("div",{className:"form_field ".concat(l),children:[e.label&&(0,r.tZ)(w,{styleRecord:n,children:e.label}),(0,r.tZ)(v,{id:e.attributes.name,type:e.type,...e.attributes,disabled:O||K&&!j,styleRecord:t,"data-event-action":"Click","data-event-label":B,"data-event-category":"block_form_submit_".concat(f)})]})}if("otp"===e.type){let t={...o.style.buttons};return t["text-align"]="center",t.width="auto",t.display="inline-block",t.cursor="pointer",(0,r.BX)(r.HY,{children:[(0,r.BX)("div",{className:"form_field ".concat(l),children:[e.label&&(0,r.tZ)(w,{styleRecord:n,children:e.label}),(0,r.BX)(C,{children:[(0,r.tZ)(H.Z,{country:a.SP.split("-")[1],defaultCountry:a.SP.split("-")[1],placeholder:e.attributes.placeholder,styleRecord:o.style.fields,disabled:"sent"===W||j,defaultValue:U,children:t=>{let{phone:l,isValid:n}=t;return(0,r.tZ)(v,{id:e.attributes.name,type:e.type,...e.attributes,styleRecord:o.style.fields,disabled:"sent"===W||j,value:l.replace("+",""),"data-phone-valid":n})}}),("sent"===W||j)&&(0,r.tZ)(p(),{onClick:resetToEditPhone})]})]}),(0,r.BX)(S,{children:["sending"===W&&(0,r.tZ)("div",{className:"otp-loading"}),"idle"===W&&(0,r.tZ)("button",{style:(0,D.qq)(t),onClick:handleSubmitToGetOTP,children:M({id:"subot.sendOTP.button",defaultMessage:"Send OTP"})}),("sent"===W||"verifying"===W)&&(0,r.BX)(r.HY,{children:[(0,r.tZ)(v,{id:"verifyCode",type:"text",...e.attributes,name:"verifyCode",placeholder:R[a.SP].enterVerifyCode,styleRecord:o.style.fields,pattern:"^[0-9]{6}$"}),(0,r.BX)(I,{children:["verifying"===W&&(0,r.tZ)("div",{className:"otp-loading"}),"sent"===W&&(0,r.tZ)("button",{style:(0,D.qq)(t),onClick:handleVerifyCode,children:M({id:"subot.verifyOTP.button",defaultMessage:"Verify OTP"})})]})]})]})]})}return"phone"===e.type?(0,r.BX)("div",{className:"form_field ".concat(l),children:[e.label&&(0,r.tZ)(w,{styleRecord:n,children:e.label}),(0,r.tZ)(H.Z,{country:a.SP.split("-")[1],defaultCountry:a.SP.split("-")[1],placeholder:e.attributes.placeholder,styleRecord:o.style.fields,onChange:e=>{let{phone:t,isValid:o}=e;J(t),et(o)},defaultValue:$})]}):["text","email","number","name","address"].includes(e.type)?(0,r.BX)("div",{className:"form_field ".concat(l),children:[e.label&&(0,r.tZ)(w,{styleRecord:n,children:e.label}),(0,r.tZ)(v,{id:e.attributes.name,type:{name:"text",address:"text"}[e.type]||e.type,...e.attributes,styleRecord:o.style.fields})]}):(0,r.tZ)("p",{children:"This field is not available yet!"})};return(0,r.tZ)(T,{value:G,children:(0,r.tZ)(A.Sx,{styleWrap:t,id:f,children:(0,r.tZ)(b,{$formWidth:g,$containerWidth:Z,computedStyle:u,ref:N,onSubmit:e=>{var t;e.preventDefault();let r=N.current;if(K&&!j)return;if(z&&!ee){(0,c.c)({title:M({id:"validation.error.validNumber",defaultMessage:"Please enter a valid number."}),message:"",type:"danger"});return}if(!r||O)return;let l=(0,s.DS)(i.y.LEADGEN.POST_LEAD_LEAD,{campaignCode:null===(t=o.options)||void 0===t?void 0:t.campaign_code}),n={data:{url:window.location.href,title_article:document.title||window.location.href,meta:[]}};o.structure.fields.forEach(e=>{var t,o,l,i,a;if("submit"===e.type||"addressMultiple"===e.type)return;let s=r.elements,c={key:e.attributes.name,value:(null===(t=s[e.attributes.name])||void 0===t?void 0:t.value)||"",control:"text"};if("email"===e.type&&(c.control="email"),"checkbox"===e.type&&(c.value=String((null===(o=s[e.attributes.name])||void 0===o?void 0:o.checked)||"false")),"dateSelection"===e.type){let t=genKeyDay(e.attributes.name),o=genKeyMonth(e.attributes.name),r=genKeyYeah(e.attributes.name),n=(null===(l=s[t])||void 0===l?void 0:l.value)||"",d=(null===(i=s[o])||void 0===i?void 0:i.value)||"",u=(null===(a=s[r])||void 0===a?void 0:a.value)||"";c.value="".concat(n.padStart(2,"0"),"_").concat(d.padStart(2,"0"),"_").concat(u.padStart(2,"0"))}"otp"===e.type&&(c.key="phone",c.control="tel"),"text"===c.control&&c.key.includes("phone")&&(c.control="tel"),"phone"===e.type&&(c.value=$,c.control),n.data.meta.push(c)}),eo&&F.current&&(n.data.meta.push({key:"province",value:F.current.province,control:"text"}),n.data.meta.push({key:"district",value:F.current.district,control:"text"}),n.data.meta.push({key:"commune",value:F.current.commune,control:"text"})),q(!0),(0,a.uu)(l,"POST",n).then(e=>{(null==e?void 0:e._status)===1?(o.options.thank_you_url?window.location.href=o.options.thank_you_url:((0,c.c)({title:o.options.message_success,message:"",type:"success"}),(0,h.I)("Submit")),r.reset()):(0,c.c)({title:o.options.message_error||M({id:"notification.comment.somethingWrong"}),message:"",type:"danger"}),q(!1)})},children:o.structure.fields.map((e,t)=>(0,r.tZ)(y,{children:renderFormField(e,t)},e.attributes.name))})})})}},ITyc:function(e,t,o){o.d(t,{j:function(){return s}});var r=o("BGKE"),l=o("q1tI"),n=o("rBCA"),i=o("cj46");let a=(0,n.Z)("div",{target:"emzqmi0"})(),s=(0,l.memo)(function(e){let{uuid:t,article:o,computedStyle:l,style:n}=e,s=(null==l?void 0:l.hideContentOnDesktop)==="true"?" desktop_hide":"",c=(null==l?void 0:l.hideContentOnMobile)==="true"?" mobile_hide":"",d=function(e,t){try{let o="row-content stack article_block".concat(t.hideContentOnDesktop).concat(t.hideContentOnMobile),r=e.descriptor.style,l=(0,i.p)(r),n=e.descriptor.article;return'\n \n \n \n \n \n \n
\n \n \n \n \n \n \n \n \n \n
\n ")}catch(e){return""}}({descriptor:{style:n,computedStyle:l,article:o}},{hideContentOnDesktop:s,hideContentOnMobile:c,contentWidth:"",gridColumns:0});return o.url&&o.title?(0,r.tZ)(a,{id:t,dangerouslySetInnerHTML:{__html:d}}):null})},uv0l:function(e,t,o){o.d(t,{B:function(){return ModuleHHGSocial}});var r=o("BGKE"),l=o("rEaw"),n=o("mjV9");let i={icons:[{image:{alt:"Facebook",href:"https://www.facebook.com/HelloDoctorPH",prefix:"https://www.facebook.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/circle-color/facebook.png",title:"Facebook"},name:"facebook",text:"",type:"follow"},{id:"youtube",image:{alt:"YouTube",href:"https://www.youtube.com/channel/UC6y8JkKTr5Ja1s36WRcYDeg",prefix:"https://www.youtube.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/circle-color/youtube@2x.png",title:"YouTube"},name:"youtube",text:"",type:"follow"},{id:"linkedin",image:{alt:"LinkedIn",href:"https://www.linkedin.com/https://sg.linkedin.com/company/hello-health-group",prefix:"https://www.linkedin.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/circle-color/linkedin@2x.png",title:"LinkedIn"},name:"linkedin",text:"",type:"follow"}]},a={icons:[{image:{alt:"Facebook",href:"https://www.facebook.com/helloyishi",prefix:"https://www.facebook.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/colored/facebook@2x.png",title:"Facebook"},name:"Facebook",text:"",type:"follow"},{image:{alt:"Instagram",href:"https://www.instagram.com/helloyishi/",prefix:"https://instagram.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/colored/instagram@2x.png",title:"Instagram"},name:"Instagram",text:"",type:"follow"},{id:"linkedin",image:{alt:"LinkedIn",href:"https://tw.linkedin.com/company/hello-yishi/",prefix:"https://www.linkedin.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/colored/linkedin@2x.png",title:"LinkedIn"},name:"linkedin",text:"",type:"follow"},{image:{alt:"Hello醫師LINE",height:1e3,href:"https://page.line.me/helloyishi",prefix:"",src:"https://d15k2d11r6t6rl.cloudfront.net/public/users/Integrators/669d5713-9b6a-46bb-bd7e-c542cff6dd6a/8bde7523c9824a708d0b00253a5e1f86/LINE_Brand_icon_1.png",title:"Line",width:1001},name:"a30bf03e-c353-4c16-bc00-abd10bc31c9d",text:"",type:"custom"}]},s={"vi-VN":{icons:[{id:"facebook",image:{alt:"Facebook",href:"https://www.facebook.com/",prefix:"https://www.facebook.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/circle-color/facebook@2x.png",title:"Facebook"},name:"Facebook",text:"",type:"follow"},{id:"instagram",image:{alt:"Instagram",href:"https://instagram.com/",prefix:"https://instagram.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/circle-color/instagram@2x.png",title:"Instagram"},name:"Instagram",text:"",type:"follow"},{image:{alt:"Custom",height:800,href:"https://www.google.com/url?q=https://links.iterable.co%20m/u/click?_t%3D7b14587db5894a80b2d43078fc6fa0a6%26_m%3DrPQXdMvxmSkuqRxMmI8u2uWqNd4pSmu2%26_e%3DePZ4wSNP8WpS57Bemls9mmtk8FzkHEYtzILZfsfeW97pfMem6FWHR6_DrLbx3Ed_9cIwtoNXX-5k9NiEZ-Lf4CGKIbhwW5-t-AgZ6XQiuOdYshiWWpV_g0UPN5Bd1Amjfm6T4C_yiNO1zEQ2pPyrbObo3dsGbAKes2o6YL1RnFA6Zgmu4b3TBU98x8mXN6zLygm_T7L2zwTBlzJKICCyfdSO0DQhuYCUzUfd4RHeAYLjqcwA2y4uNusWNPS55O8ZgF7aB3jvZDN8tDvCqRlxVg%253D%253D&source=gmail&ust=1660301395843000&usg=AOvVaw09YS8B03sGaFDGFOKuqNJX",prefix:"",src:"https://d15k2d11r6t6rl.cloudfront.net/public/users/Integrators/669d5713-9b6a-46bb-bd7e-c542cff6dd6a/7b14587db5894a80b2d43078fc6fa0a6/Logo-Zalo-Arc.webp",title:"Custom",width:800},name:"12a4c711-f42a-47d3-9cfe-b0a86872b23b",text:"",type:"custom"},{id:"tiktok",image:{alt:"TikTok",href:"https://www.tiktok.com/@hellobacsi",prefix:"https://www.tiktok.com",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/circle-color/tiktok@2x.png",title:"TikTok"},name:"TikTok",text:"",type:"follow"},{id:"youtube",image:{alt:"YouTube",href:"https://www.youtube.com/c/Hellobacsi_HHG",prefix:"https://www.youtube.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/circle-color/youtube@2x.png",title:"YouTube"},name:"youtube",text:"",type:"follow"},{id:"linkedin",image:{alt:"LinkedIn",href:"https://www.linkedin.com/company/hello-health-group/",prefix:"https://www.linkedin.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/circle-color/linkedin@2x.png",title:"LinkedIn"},name:"LinkedIn",text:"",type:"follow"}]},"id-ID":{icons:[{image:{alt:"Facebook",href:"https://www.facebook.com/hellosehat?utm_source=Email&utm_medium=Newsletter&utm_campaign=Internal&utm_term=Facebook&utm_content=20210917_Welcome-Email_HHG-ID",prefix:"https://www.facebook.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/colored/facebook@2x.png",title:"Facebook"},name:"Facebook",text:"",type:"follow"},{image:{alt:"Instagram",href:"https://www.instagram.com/hellosehat/?utm_source=Email&utm_medium=Newsletter&utm_campaign=Internal&utm_term=Instagram&utm_content=20210917_Welcome-Email_HHG-ID",prefix:"https://instagram.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/colored/instagram@2x.png",title:"Instagram"},name:"Instagram",text:"",type:"follow"},{image:{alt:"LinkedIn",href:"https://www.linkedin.com/company/hello-sehat/?utm_source=Email&utm_medium=Newsletter&utm_campaign=Internal&utm_term=Linkedin&utm_content=20210917_Welcome-Email_HHG-ID",prefix:"https://www.linkedin.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/colored/linkedin@2x.png",title:"LinkedIn"},name:"LinkedIn",text:"",type:"follow"},{image:{alt:"Twitter",href:"https://twitter.com/HelloSehat?utm_source=Email&utm_medium=Newsletter&utm_campaign=Internal&utm_term=Twitter&utm_content=20210917_Welcome-Email_HHG-ID",prefix:"https://twitter.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/colored/twitter@2x.png",title:"Twitter"},name:"Twitter",text:"",type:"follow"}]},"ms-MY":{icons:[{image:{alt:"Facebook",href:"https://www.facebook.com/HelloDoktorMY",prefix:"https://www.facebook.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/circle-color/facebook.png",title:"Facebook"},name:"facebook",text:"",type:"follow"},{type:"follow",name:"instagram",image:{prefix:"https://instagram.com/",alt:"Instagram",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/circle-color/instagram@2x.png",title:"Instagram",href:"https://instagram.com/hellodoktor_official/"},text:"",id:"instagram"},{image:{alt:"Twitter",href:"http://twitter.com/hellodoktor",prefix:"http://twitter.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/circle-color/twitter.png",title:"Twitter"},name:"twitter",text:"",type:"follow"},{type:"follow",name:"linkedin",image:{prefix:"https://www.linkedin.com/",alt:"LinkedIn",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/circle-color/linkedin@2x.png",title:"LinkedIn",href:"https://www.linkedin.com/company/hello-health-group/"},text:"",id:"linkedin"}]},"km-KH":{icons:[{image:{alt:"Facebook",href:"https://www.facebook.com/hellokrupet",prefix:"https://www.facebook.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/circle-color/facebook@2x.png",title:"Facebook"},name:"Facebook",text:"",type:"follow"},{image:{alt:"Instagram",href:"https://www.instagram.com/hellokrupetofficial/",prefix:"https://instagram.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/circle-color/instagram@2x.png",title:"Instagram"},name:"Instagram",text:"",type:"follow"},{image:{alt:"LinkedIn",href:"https://www.linkedin.com/company/hello-krupet/",prefix:"https://www.linkedin.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/circle-color/linkedin@2x.png",title:"LinkedIn"},name:"LinkedIn",text:"",type:"follow"},{image:{alt:"Twitter",href:"https://twitter.com/",prefix:"https://twitter.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/circle-color/twitter@2x.png",title:"Twitter"},name:"Twitter",text:"",type:"follow"},{id:"youtube",image:{alt:"YouTube",href:"https://www.youtube.com/channel/UCj1XjW1HmX9xXDJFHHvwUcg/featured",prefix:"https://www.youtube.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/circle-color/youtube@2x.png",title:"YouTube"},name:"youtube",text:"",type:"follow"}]},"en-PH":i,"tl-PH":i,"th-TH":{icons:[{image:{alt:"Facebook",href:"https://www.facebook.com/hellokhunmor",prefix:"https://www.facebook.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/circle-color/facebook.png",title:"Facebook"},name:"facebook",text:"",type:"follow"},{image:{alt:"Twitter",href:"http://twitter.com/hellokhunmor",prefix:"http://twitter.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/circle-color/twitter.png",title:"Twitter"},name:"twitter",text:"",type:"follow"},{id:"instagram",image:{alt:"Instagram",href:"https://instagram.com/hellokhunmor",prefix:"https://instagram.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/circle-color/instagram@2x.png",title:"Instagram"},name:"instagram",text:"",type:"follow"}]},"my-MM":{icons:[{image:{alt:"Facebook",href:"https://www.facebook.com/hellosayarwon/",prefix:"https://www.facebook.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/circle-color/facebook.png",title:"Facebook"},name:"facebook",text:"",type:"follow"},{id:"youtube",image:{alt:"YouTube",href:"https://www.youtube.com/channel/UC6SJ86C3dbyI9-hPV8__vxQ",prefix:"https://www.youtube.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/circle-color/youtube@2x.png",title:"YouTube"},name:"youtube",text:"",type:"follow"},{id:"instagram",image:{alt:"Instagram",href:"https://www.instagram.com/hellosayarwon/",prefix:"https://instagram.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/circle-color/instagram@2x.png",title:"Instagram"},name:"instagram",text:"",type:"follow"},{id:"linkedin",image:{alt:"LinkedIn",href:"https://www.linkedin.com/company/hello-sayarwon/",prefix:"https://www.linkedin.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/circle-color/linkedin@2x.png",title:"LinkedIn"},name:"linkedin",text:"",type:"follow"}]},"zh-TW":a,"zh-SG":a,"hi-IN":{icons:[{image:{alt:"Facebook",href:"https://www.facebook.com/",prefix:"https://www.facebook.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/circle-color/facebook@2x.png",title:"Facebook"},name:"Facebook",text:"",type:"follow"},{image:{alt:"Instagram",href:"https://instagram.com/",prefix:"https://instagram.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/circle-color/instagram@2x.png",title:"Instagram"},name:"Instagram",text:"",type:"follow"},{image:{alt:"LinkedIn",href:"https://www.linkedin.com/",prefix:"https://www.linkedin.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/circle-color/linkedin@2x.png",title:"LinkedIn"},name:"LinkedIn",text:"",type:"follow"},{image:{alt:"Twitter",href:"https://twitter.com/",prefix:"https://twitter.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/circle-color/twitter@2x.png",title:"Twitter"},name:"Twitter",text:"",type:"follow"},{id:"youtube",image:{alt:"YouTube",href:"https://www.youtube.com/",prefix:"https://www.youtube.com/",src:"https://app-rsrc.getbee.io/public/resources/social-networks-icon-sets/circle-color/youtube@2x.png",title:"YouTube"},name:"youtube",text:"",type:"follow"}]}};function ModuleHHGSocial(e){var t;let{style:o,computedStyle:i,lang:a}=e,c=i.iconSpacing,d=s[a||l.MV.Vietnam];return(0,r.tZ)(n.uP,{styleWrap:o,$iconsSpacing:c,children:(0,r.tZ)("div",{className:"template-module",children:(0,r.tZ)("ul",{children:null==d?void 0:null===(t=d.icons)||void 0===t?void 0:t.map((e,t)=>(0,r.tZ)("li",{children:(0,r.tZ)("a",{href:e.image.href,target:"_blank",children:(0,r.tZ)("img",{src:e.image.src,alt:e.image.alt,width:i.iconHeight,height:i.iconHeight,style:{width:i.iconHeight,height:i.iconHeight},loading:"lazy"})})},t))})})})}},"/pm6":function(e,t,o){o.d(t,{P:function(){return ModuleHeading}});var r=o("BGKE"),l=o("mjV9");function ModuleHeading(e){let{style:t,heading:o,uuid:n}=e,i=o.style,a=o.title;return(0,r.tZ)(l.WP,{styleWrap:t,styleModule:i,id:n,children:(0,r.tZ)(a,{className:"template-module",dangerouslySetInnerHTML:{__html:o.html}})})}},AX4n:function(e,t,o){o.d(t,{y:function(){return ModuleHtml}});var r=o("BGKE");o("q1tI");var l=o("60du"),n=o("HdVw"),i=o("mjV9");function ModuleHtml(e){let{style:t,html:o}=e,a=o.style;return"[ComponentMultipleSteps]"===o.html?(0,r.BX)(r.HY,{children:[(0,r.tZ)("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(0,r.tZ)("link",{rel:"preconnect",href:"https://fonts.gstatic.com"}),(0,r.tZ)("link",{href:"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Open+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap",rel:"stylesheet"}),(0,r.tZ)(l.Z,{})]}):"[DueDateCalculator]"===o.html?(0,r.BX)(r.HY,{children:[(0,r.tZ)(n._O,{}),(0,r.tZ)("hr",{}),(0,r.tZ)(n._O,{isSide:!0})]}):(0,r.tZ)(i.Sx,{styleWrap:t,styleModule:a,children:(0,r.tZ)("div",{className:"template-module",dangerouslySetInnerHTML:{__html:o.html}})})}},"/t4y":function(e,t,o){o.d(t,{G:function(){return ModuleImage}});var r=o("BGKE"),l=o("q1tI"),n=o("TSYQ"),i=o.n(n),a=o("raAP"),s=o("cj46"),c=o("mjV9");function ModuleImage(e){let{uuid:t,image:o,computedStyle:n,style:d}=e,u=(0,a.U)(),p=n.width;n.class.includes("autowidth")&&(p="auto");let m=(0,l.useMemo)(()=>o.href?o.href.startsWith("http")?o.href:"//"+o.href:"",[o.href]);return(0,r.tZ)(c.nF,{styleWrap:d,className:i()({desktop_hide:"true"===String(null==n?void 0:n.hideContentOnDesktop),mobile_hide:"true"===String(null==n?void 0:n.hideContentOnMobile)}),id:t,children:o.href?(0,r.tZ)("a",{target:"_blank",rel:"noreferrer",href:m,style:{width:p},className:n.class,"data-event-action":(0,s.Bu)("image",t),"data-event-label":m,"data-event-category":"SIDIS_LP",children:(0,r.tZ)("img",{src:o.src,alt:o.alt,loading:"lazy"})}):(0,r.tZ)("img",{src:o.src,alt:o.alt,style:{width:p},className:n.class,"data-event-action":(0,s.Bu)("image",t),"data-event-label":u,"data-event-category":"SIDIS_LP",loading:"lazy"})})}},"EfZ/":function(e,t,o){o.d(t,{I:function(){return ModuleList}});var r=o("BGKE"),l=o("raAP"),n=o("cj46"),i=o("mjV9");function ModuleList(e){let{style:t,list:o,uuid:a}=e,s=o.style,c=(0,l.U)();return(0,r.tZ)(i.bf,{styleWrap:t,styleModule:s,$tag:o.tag,id:a,children:(0,r.tZ)("div",{className:"template-module",dangerouslySetInnerHTML:{__html:o.html},"data-event-action":(0,n.Bu)("list",a),"data-event-label":c,"data-event-category":"SIDIS_LP"})})}},fJJ1:function(e,t,o){o.d(t,{E:function(){return ModuleParagraph}});var r=o("BGKE"),l=o("mjV9");function ModuleParagraph(e){let{style:t,paragraph:o,uuid:n}=e,i=o.style,a=o.computedStyle;return(0,r.tZ)(l.Ji,{styleWrap:t,styleModule:i,computedStyle:a,id:n,children:(0,r.tZ)("div",{className:"template-module",dangerouslySetInnerHTML:{__html:o.html}})})}},"3DOB":function(e,t,o){o.d(t,{p:function(){return ModuleSpacer}});var r=o("BGKE"),l=o("TSYQ"),n=o.n(l),i=o("mjV9");function ModuleSpacer(e){var t,o;return(0,r.tZ)(i.Sx,{id:e.uuid,styleWrap:e.spacer.style,className:n()({desktop_hide:"true"===String(null===(t=e.computedStyle)||void 0===t?void 0:t.hideContentOnDesktop),mobile_hide:"true"===String(null===(o=e.computedStyle)||void 0===o?void 0:o.hideContentOnMobile)})})}},C4vN:function(e,t,o){o.d(t,{C:function(){return ModuleSubot}});var r=o("BGKE"),l=o("Vvt1"),n=o.n(l),i=o("20a2"),a=o("nK6t"),s=o("o6HM"),c=o("JuOI"),d=o("csLd"),u=o("mjV9");let p=n()(()=>Promise.resolve().then(o.bind(o,"EE8p")).then(e=>e.SubotInlineRevampWithTheme),{loadableGenerated:{webpack:()=>[null]},ssr:!1});function ModuleSubot(e){let t=(0,i.useRouter)(),{state:o}=(0,d.b)();return(0,r.tZ)(u.uB,{styleWrap:e.style,children:e.subot.isRevamp?(0,r.BX)(c.Z,{children:[(0,r.tZ)(s.a,{}),(0,r.tZ)(p,{id:e.subot.id,isFullContainer:e.subot.isFullScreen,articleLink:t.asPath,userInfo:o.userInfo})]}):(0,r.tZ)(a.SubotInline,{id:e.subot.id,articleLink:window.location.pathname})})}},mjV9:function(e,t,o){o.d(t,{JD:function(){return a},Ji:function(){return s},Sx:function(){return n},WP:function(){return c},bf:function(){return d},nF:function(){return i},uB:function(){return p},uP:function(){return u}});var r=o("rBCA"),l=o("cj46");let n=(0,r.Z)("div",{target:"en67360"})(e=>e.styleWrap?(0,l.p)(e.styleWrap):""," ",e=>e.styleModule?"\n .template-module {\n word-break: break-word;\n ".concat((0,l.p)(e.styleModule),"\n }\n "):""),i=(0,r.Z)(n,{target:"en67361"})("a,img{max-width:100%;display:block;height:auto;&.autowidth{width:auto;}&.right{margin-left:auto;}&.center{margin-left:auto;margin-right:auto;}@media (max-width:767px){&.fullwidthOnMobile{width:100%;}}}a img{width:100%;}"),a=(0,r.Z)(n,{target:"en67362"})(".template-module{cursor:pointer;display:inline-block;transition:all 0.3s ease;&:hover{box-shadow:1px 1px 4px 0 rgb(0 0 0 / 50%);}}"),s=(0,r.Z)(n,{target:"en67363"})("p + p{margin-top:",e=>{var t;return(null===(t=e.computedStyle)||void 0===t?void 0:t.paragraphSpacing)||"0px"},";}"),c=(0,r.Z)(n,{target:"en67364"})(),d=(0,r.Z)(n,{target:"en67365"})(".template-module{ul,ol{padding-left:40px;margin-bottom:1em;}ul{list-style-type:disc;}ol{list-style-type:decimal;}ul ul{list-style-type:circle;}ul ul ul{list-style-type:square;}}"),u=(0,r.Z)(n,{target:"en67366"})("ul{display:inline-flex;margin-left:auto;margin-right:auto;a,img{display:block;}li{",e=>e.$iconsSpacing?(0,l.p)(e.$iconsSpacing):"","}}"),p=(0,r.Z)(n,{target:"en67367"})("@media (max-width:767px){[class*='SubotInlineLoadingContainer']{margin-left:0;margin-right:0;}}")},cj46:function(e,t,o){o.d(t,{Bu:function(){return getDataEventAction},OB:function(){return n},p:function(){return parseStyleToInline},qq:function(){return convertStyleToJsx}});var r=o("q8gk"),l=o.n(r);let n={heading:"mailup-bee-newsletter-modules-heading",paragraph:"mailup-bee-newsletter-modules-paragraph",text:"mailup-bee-newsletter-modules-text",image:"mailup-bee-newsletter-modules-image",divider:"mailup-bee-newsletter-modules-divider",footer:"mailup-bee-newsletter-modules-footer",spacer:"mailup-bee-newsletter-modules-spacer",button:"mailup-bee-newsletter-modules-button",list:"mailup-bee-newsletter-modules-list",icon:"mailup-bee-newsletter-modules-icons",social:"mailup-bee-newsletter-modules-social",hhgSocial:"mailup-bee-newsletter-modules-HHGSocial",hhgArticle:"hhg-modules-HHGArticle",leadForm:"mailup-bee-newsletter-modules-leadForm",form:"mailup-bee-newsletter-modules-form",html:"mailup-bee-newsletter-modules-html",subot:"mailup-bee-newsletter-modules-subot",carousel:"mailup-bee-newsletter-modules-carousel",countdown:"hhg-countdown"};function parseStyleToInline(e){return Object.keys(e).map(t=>{let o=e[t];return"".concat(t,": ").concat(o,";")}).join("")}function convertStyleToJsx(e,t){let o={};for(let t in e)e[t]&&(o[l()(t)]=e[t]);if(t)for(let e in t)t[e]&&(o[l()(e)]=t[e]);return"transparent"===o.backgroundColor&&delete o.backgroundColor,"transparent"===o.color&&delete o.color,o}function getDataEventAction(e,t){return"image"===e?"image_click_"+t:"button"===e?"button_click_"+t:"title"===e||"heading"===e?"title_click_"+t:"video"===e?"video_click_"+t:"form"===e?"form_click_"+t:"text"===e?"form_opentext_click_"+t:"phone"===e?"form_phone_click_"+t:"email"===e?"form_email_click_"+t:"date"===e?"form_date_click_"+t:"consent"===e?"form_consent_click_"+t:"dropdown"===e?"form_dropdown_click_"+t:"block_".concat(e,"_").concat(t)}}}]);