PageSourceSearch

https://helloyishi.com.tw/_next/static/chunks/hhg-components-01f58e7d-c2c00343bf1e05e2.js

js helloyishi.com.tw collected 2026-09-24 19:53:11 UTC 141,253 bytes, 393 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4126],{E13D:function(e,t,n){n.d(t,{T:function(){return u}});var l=n("mup0"),a=n("q1tI"),r=n("/npG"),i=n("8vDj"),o=n("TIp3"),c=n("88OS"),s=(0,r.k)((e,t)=>{var n,l,a,r,i,o,s,u,d,m;let p=c.a[null==t?void 0:t.customStylesType]||c.a[c.C.NONE],h=null===(n=p.fontSize[null==t?void 0:t.size])||void 0===n?void 0:n[0],g=null===(l=p.lineHeight[null==t?void 0:t.size])||void 0===l?void 0:l[0],E=null!==(i=null===(r=null===(a=p.letterSpacing)||void 0===a?void 0:a[null==t?void 0:t.size])||void 0===r?void 0:r[0])&&void 0!==i?i:0,C=null===(o=p.fontSize[null==t?void 0:t.size])||void 0===o?void 0:o[1],b=null===(s=p.lineHeight[null==t?void 0:t.size])||void 0===s?void 0:s[1],f=null!==(m=null===(d=null===(u=p.letterSpacing)||void 0===u?void 0:u[null==t?void 0:t.size])||void 0===d?void 0:d[1])&&void 0!==m?m:0;return{root:Object.assign({},(null==t?void 0:t.size)&&{fontWeight:(null==t?void 0:t.as)==="label"?c.F.semiBold:p.fontWeight[t.weight]||p.fontWeightBySize[null==t?void 0:t.size]||c.F.regular,fontSize:`${h}`,lineHeight:`${g}`,letterSpacing:E,[e.fn.smallerThan("sm")]:{fontSize:`${C}`,lineHeight:`${b}`,letterSpacing:f}})}});let u=(0,a.forwardRef)((e,t)=>{var n,{size:r,color:u,weight:d,as:m="p",styles:p,className:h,dataEventCategory:g,dataEventAction:E,dataEventLabel:C,variant:b}=e,f=(0,l.a)(e,["size","color","weight","as","styles","className","dataEventCategory","dataEventAction","dataEventLabel","variant"]);let v=(0,i.rZ)(),w=(0,c.u)(),{classes:y,cx:L}=s({size:r,weight:"caption"===d?"bold":d,as:m,customStylesType:w},{name:"Text",styles:p}),x="string"==typeof v.colors[u]?v.colors[u]:u;return a.createElement(o.x,Object.assign({"data-size":r,className:L(y.root,h),color:x||("label"===m?v.colors.gray[6]:(null===(n=null==v?void 0:v.other)||void 0===n?void 0:n.template)==="mb"?v.colors.delftGray[7]:void 0)||("primary"===b?v.colors.gray[9]:"secondary"===b?v.colors.gray[7]:"tertiary"===b?v.colors.gray[5]:"disabled"===b?v.colors.gray[3]:"error"===b?v.colors.red[6]:"success"===b?v.colors.green[6]:void 0)||v.colors.gray[7],component:m,"data-event-category":g,"data-event-action":E,"data-event-label":C,classNames:{root:Object.assign(Object.assign({},f.wordWrap?{"word-wrap":f.wordWrap}:void 0),f.isUppercase||"caption"===d?{"text-transform":"uppercase"}:void 0)},ref:t},f))})},"0VOA":function(e,t,n){n.d(t,{D:function(){return DueDateForm},a:function(){return M}});var l,a,r,i,o=n("mup0"),c=n("q1tI"),s=n("8vDj"),u=n("iuhU"),d=n("DA0W"),m=n("SPK5"),p=n("FQtM"),h=n("Eso5"),g=n("sWYD"),E=n("WUAn"),C=n("11Kd"),b=n("cChf"),f=n("ZFu2"),v=n("Wgwc"),w=n.n(v),y=n("Bril"),L=n("qK3f"),x=n("E13D"),S=n("RIW1"),I=n("sjwg"),O=n("fkrl"),k=n("a4pC"),D=n("kMFH"),P=n("iBNF");(l=r||(r={}))[l.lastPeriod=0]="lastPeriod",l[l.conception=1]="conception",l[l.IVF=2]="IVF",l[l.IUI=3]="IUI",l[l.ultrasound=4]="ultrasound";let F={[String(r.lastPeriod)]:{value:String(r.lastPeriod),icon:E.L,label:"dueDatePage.lastPeriod"},[String(r.IVF)]:{value:String(r.IVF),icon:e=>{var{isMarryBaby:t,size:n=24}=e,l=(0,o.a)(e,["isMarryBaby","size"]);let a=Object.assign({width:n,height:n},l);return t?c.createElement("svg",Object.assign({viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),c.createElement("path",{d:"M15.804 28.278a3.16 3.16 0 0 1-3.18-3.208l.128-20.306 6.405.008-.128 20.307c-.012 1.757-1.452 3.191-3.225 3.2",fill:"#fff"}),c.createElement("path",{d:"m12.72 10.266-.116 14.788c-.011 1.757 1.423 3.197 3.18 3.208 1.774-.008 3.214-1.442 3.225-3.2V10.267",fill:"#FFEAF1"}),c.createElement("circle",{cx:"14.662",cy:"19.027",transform:"rotate(-49.83 14.662 19.027)",fill:"#3E3F58",r:"1.012"}),c.createElement("circle",{cx:"16.326",cy:"13.426",r:"1.012",transform:"rotate(-49.83 16.326 13.426)",fill:"#3E3F58"}),c.createElement("path",{d:"m14.662 19.026.087 1.022a.98.98 0 0 0 .344.667.98.98 0 0 1 .32.98l-.123.51m1.036-8.779.087 1.022a.98.98 0 0 0 .344.666.98.98 0 0 1 .32.98l-.123.511",stroke:"#3E3F58"}),c.createElement("path",{d:"M18.833 27.597a3.94 3.94 0 0 1-3.02 1.408 4 4 0 0 1-2.795-1.148 3.98 3.98 0 0 1-1.14-2.795l.108-20.553c0-.426.344-.756.753-.738.426 0 .757.345.738.754l-.108 20.553c.002.656.248 1.256.697 1.733a2.42 2.42 0 0 0 1.727.706 2.483 2.483 0 0 0 2.47-2.462l.109-20.553c0-.426.344-.757.753-.738.426 0 .757.344.738.754l-.108 20.553a3.85 3.85 0 0 1-.922 2.526",fill:"#202135"}),c.createElement("path",{d:"M20.753 4.975a.75.75 0 0 1-.58.262l-8.714-.027a.727.727 0 0 1-.738-.754c0-.425.344-.756.754-.737l8.713.026c.426 0 .756.344.738.754a.66.66 0 0 1-.173.476",fill:"#202135"})):c.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),c.createElement("path",{d:"M13.064 5.794a17.8 17.8 0 0 1 3.34-4.638l4.26 2.881a17.8 17.8 0 0 0-3.272 4.507l-1.08 2.12a.65.65 0 0 0 .124.76 7.9 7.9 0 0 1 2.296 4.81c.027.265-1.141 5.997-9.376 5.573-1.587-.082-5.724-1.269-6.12-2.86a8 8 0 0 1-.233-2.161c.124-4.165 3.718-7.648 7.884-7.647h.098a.65.65 0 0 0 .59-.36z",fill:"#BCDEFF"}),c.createElement("path",{d:"M20.75 3.234 16.696.496a.886.886 0 1 0-.992 1.469l4.056 2.738a.886.886 0 0 0 .992-1.469",fill:"#E3F2FF"}),c.createElement("path",{d:"M18.771 17.024a7.87 7.87 0 0 1-2.7 5.944A4.2 4.2 0 0 1 13.301 24H8.473a4.2 4.2 0 0 1-2.769-1.03 7.9 7.9 0 0 1-2.468-4.023c.924.468 2.191.805 3.922.805 1.142 0 2.01-.346 2.775-.834q.323-.21.629-.446c1.973-1.516 3.524-3.668 8.17-2.238q.04.39.04.79",fill:"#2D87F3"}),c.createElement("path",{d:"M11.858 15.5c-1.78.348-3.096-1.608-2.134-3.121a2.06 2.06 0 0 1 1.529-.944q.303-.03.588.025a.27.27 0 0 0 .268-.107c.282-.373.737-.573 1.2-.639.224-.031.374-.24.379-.44.021-.794.657-1.311 1.288-1.234.183.022.223.27.058.35l-.012.006a.9.9 0 0 0-.28.196c-.213.263-.187.407-.153.6.03.167.066.37-.04.715a1.45 1.45 0 0 1-.504.7c-.255.19-.445.23-.592.263-.088.019-.16.034-.223.076a.27.27 0 0 0-.07.379c.184.27.306.587.344.934a2.063 2.063 0 0 1-1.646 2.24",fill:"#fff"}),c.createElement("ellipse",{cx:"10",cy:"20.5",rx:"3",ry:"2.5",fill:"#FF6F4D"}))},label:"dueDatePage.ivf"},[String(r.conception)]:{value:String(r.conception),icon:e=>{var{isMarryBaby:t,size:n=24}=e,l=(0,o.a)(e,["isMarryBaby","size"]);let a=Object.assign({width:n,height:n},l);return t?c.createElement("svg",Object.assign({viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),c.createElement("path",{d:"M16.5 27.133c1.298 0 2.596-.149 3.868-.447a9.15 9.15 0 0 0 6.818-6.818 16.94 16.94 0 0 0 0-7.736 9.15 9.15 0 0 0-6.818-6.818 16.94 16.94 0 0 0-7.736 0 9.15 9.15 0 0 0-6.818 6.818A17 17 0 0 0 5.367 16a.867.867 0 1 1-1.734 0c0-1.43.165-2.862.494-4.264a10.88 10.88 0 0 1 8.109-8.11 18.7 18.7 0 0 1 8.528 0 10.88 10.88 0 0 1 8.11 8.11 18.7 18.7 0 0 1 0 8.528 10.88 10.88 0 0 1-8.11 8.11 18.7 18.7 0 0 1-4.264.493.867.867 0 0 1 0-1.734",fill:"#3E3F58"}),c.createElement("path",{d:"M11.633 16a4.867 4.867 0 1 1 9.734 0 4.867 4.867 0 0 1-9.734 0m4.867-3.133a3.133 3.133 0 1 0 0 6.266 3.133 3.133 0 0 0 0-6.266",fill:"#E85388"}),c.createElement("path",{d:"M9.834 25.333a2.667 2.667 0 1 0-2.298-1.312l-.084.084a3.25 3.25 0 0 0-.952 2.298c0 .726-.41 1.39-1.06 1.715l-1.238.619a.667.667 0 0 0 .596 1.193l1.24-.62a3.25 3.25 0 0 0 1.796-2.907c0-.508.202-.995.561-1.355l.084-.084c.397.235.86.37 1.355.37",fill:"#3E3F58"})):c.createElement("svg",Object.assign({width:n,height:n,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),c.createElement("circle",{cx:"9",cy:"6.75",fill:"#91CAFF",r:"6.75"}),c.createElement("circle",{cx:"9",cy:"6.75",fill:"#2D87F3",r:"5.4"}),c.createElement("path",{d:"M1.789 12.2a.245.245 0 0 1-.02-.489c.073-.006 1.795-.167 1.761-1.605-.013-.587.15-1.057.485-1.397.524-.53 1.273-.528 1.305-.527a.245.245 0 0 1-.002.49h-.002c-.011 0-.582.004-.955.385-.236.24-.351.59-.34 1.038.018.793-.367 1.41-1.114 1.787a3.3 3.3 0 0 1-1.118.319M.75 17.774a.245.245 0 0 1 .226-.263c.073-.006 1.786-.162 1.749-1.593-.016-.586.146-1.055.48-1.392.521-.528 1.27-.524 1.3-.523a.245.245 0 0 1-.006.49c-.015 0-.58.004-.949.38q-.352.362-.335 1.033c.02.791-.362 1.406-1.106 1.78a3.3 3.3 0 0 1-1.095.313.245.245 0 0 1-.263-.225",fill:"#D2D6DC"}),c.createElement("path",{d:"M8.659 5.035c-.562-.561-1.956-.078-2.699.665-.407.407-.635.91-.665 1.373v.124l1.145 1.16.181.042c.464-.03.966-.258 1.373-.665.743-.743 1.226-2.137.665-2.699",fill:"#E3F2FF"}),c.createElement("path",{d:"m5.295 7.073-.292.75a.55.55 0 0 0 .124.589l.155.155a.55.55 0 0 0 .589.124l.75-.292z",fill:"#91CAFF"}),c.createElement("path",{d:"M8.098 11.358a.87.87 0 0 0-.233-.523c-.562-.562-1.956-.079-2.699.664-.407.408-.635.91-.665 1.373v.125l1.146 1.16.18.042c.464-.03.966-.258 1.374-.666.566-.566.98-1.51.897-2.175",fill:"#E3F2FF"}),c.createElement("path",{d:"m4.5 12.872-.29.75a.55.55 0 0 0 .123.589l.156.155a.55.55 0 0 0 .588.124l.75-.292z",fill:"#91CAFF"}))},label:"dueDatePage.conceptionDate"},[String(r.IUI)]:{value:String(r.IUI),icon:e=>{var{isMarryBaby:t,size:n=24}=e,l=(0,o.a)(e,["isMarryBaby","size"]);let a=Object.assign({width:n,height:n},l);return c.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),c.createElement("ellipse",{cx:"10",cy:"7.5",rx:"7.5",ry:"7.5",fill:"#91CAFF"}),c.createElement("ellipse",{cx:"10",cy:"7.5",rx:"6",ry:"6",fill:"#2D87F3"}),c.createElement("path",{d:"M1.98877 13.5566C1.8483 13.5566 1.72914 13.4487 1.71769 13.3062C1.7056 13.1563 1.81732 13.025 1.9672 13.013C2.04819 13.0061 3.96085 12.8267 3.92397 11.2296C3.90887 10.5766 4.09013 10.0544 4.46266 9.6775C5.04496 9.08834 5.87737 9.09055 5.91289 9.09138C6.06324 9.09309 6.18376 9.21636 6.18204 9.36675C6.18033 9.51603 6.05877 9.63593 5.90985 9.63593C5.9091 9.63593 5.90835 9.63593 5.9076 9.63593C5.8958 9.63593 5.26174 9.64041 4.84671 10.0637C4.58418 10.3314 4.4569 10.7194 4.46838 11.2171C4.48874 12.0983 4.06094 12.7846 3.23124 13.202C2.63342 13.5027 2.03606 13.5537 2.01095 13.5558C2.00351 13.5563 1.99611 13.5566 1.98877 13.5566Z",fill:"#D2D6DC"}),c.createElement("path",{d:"M0.834813 19.7487C0.823187 19.5988 0.935297 19.4678 1.08522 19.4562C1.16581 19.4496 3.06971 19.2768 3.02807 17.6868C3.011 17.0352 3.1904 16.5146 3.56121 16.1394C4.14076 15.5531 4.97192 15.5577 5.00687 15.5587C5.15722 15.5608 5.27734 15.6845 5.27516 15.8349C5.27301 15.9849 5.15117 16.106 4.99993 16.1032C4.99989 16.1032 4.99982 16.1032 4.99975 16.1032C4.98315 16.1032 4.35528 16.1074 3.9453 16.5255C3.68491 16.791 3.55946 17.177 3.57245 17.6725C3.59545 18.552 3.17051 19.2358 2.34353 19.6499C1.74807 19.948 1.15233 19.9971 1.12728 19.9991C0.976577 20.0107 0.846367 19.898 0.834813 19.7487Z",fill:"#D2D6DC"}),c.createElement("path",{d:"M9.62226 5.59508C8.99818 4.971 7.44969 5.50769 6.62421 6.33313C6.1713 6.78604 5.91828 7.34408 5.88477 7.85874V7.99721L7.15753 9.28601L7.35857 9.33258C7.87323 9.29906 8.43127 9.04605 8.88418 8.59314C9.70966 7.76766 10.2463 6.21916 9.62226 5.59508Z",fill:"#E3F2FF"}),c.createElement("path",{d:"M5.88516 7.85889L5.5611 8.69259C5.47325 8.91856 5.52723 9.17508 5.69865 9.3465L5.87139 9.51925C5.95823 9.60609 6.06693 9.66256 6.18243 9.68584C6.29486 9.70856 6.4137 9.70005 6.52509 9.65676L7.3588 9.3327L5.88516 7.85889Z",fill:"#91CAFF"}),c.createElement("path",{d:"M8.99894 12.6201C8.97018 12.3889 8.88805 12.1875 8.73945 12.0389C8.11537 11.4149 6.56687 11.9515 5.7414 12.777C5.28849 13.2299 5.03547 13.7879 5.00195 14.3026V14.4411L6.27493 15.7298L6.47597 15.7764C6.99063 15.7429 7.54867 15.4898 8.00158 15.0369C8.63034 14.4081 9.09073 13.3598 8.99894 12.6201Z",fill:"#E3F2FF"}),c.createElement("path",{d:"M5.00235 14.3027L4.67829 15.1364C4.59043 15.3624 4.64441 15.6189 4.81583 15.7904L4.98858 15.9631C5.07542 16.0499 5.
118412 16.1064 5.29962 16.1297C5.41205 16.1524 5.53089 16.1439 5.64228 16.1006L6.47598 15.7766L5.00235 14.3027Z",fill:"#91CAFF"}))},label:"dueDatePage.IUI"},[String(r.ultrasound)]:{value:String(r.ultrasound),icon:e=>{var{isMarryBaby:t,size:n=24}=e,l=(0,o.a)(e,["isMarryBaby","size"]);let a=Object.assign({width:n,height:n},l);return c.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),c.createElement("g",{clipPath:"url(#clip0_5646_32454)"},c.createElement("path",{d:"M17.278 1.47119H2.7207C2.03035 1.47119 1.4707 2.03084 1.4707 2.72119V17.2785C1.4707 17.9689 2.03035 18.5285 2.7207 18.5285H17.278C17.9684 18.5285 18.528 17.9689 18.528 17.2785V2.72119C18.528 2.03084 17.9684 1.47119 17.278 1.47119Z",fill:"#65B5FF"}),c.createElement("path",{d:"M11.23 9.94794C12.1285 10.4395 11.7085 11.7187 10.9077 11.7734C10.1386 11.8261 9.79346 11.6067 9.12721 11.1589C8.74409 10.9014 8.11299 9.67872 7.93815 9.36872C7.74008 9.01332 7.58143 8.63733 7.46503 8.24747C7.31862 7.75122 7.71315 7.30122 8.03987 7.31731C8.09475 7.32086 8.14794 7.33765 8.19491 7.36625C8.24188 7.39485 8.28122 7.43441 8.30956 7.48153C8.3227 7.49619 8.33867 7.50803 8.3565 7.51636C8.37433 7.52469 8.39367 7.52933 8.41334 7.53C8.43301 7.53067 8.45261 7.52736 8.47097 7.52027C8.48933 7.51317 8.50607 7.50244 8.52018 7.48872C8.55856 7.44827 8.60864 7.42084 8.66339 7.41028C8.71814 7.39972 8.77482 7.40655 8.82549 7.42981C9.03081 7.56731 8.99503 7.80294 9.13081 8.11544C9.34088 8.4938 9.61306 8.83417 9.93596 9.12231C10.3217 9.44809 10.5785 9.59138 11.23 9.94794Z",fill:"#2B62CD"}),c.createElement("path",{d:"M19.5332 1.54781C19.5129 1.54783 19.4928 1.54386 19.4741 1.53611C19.4553 1.52836 19.4383 1.51699 19.424 1.50265C19.4096 1.48832 19.3982 1.47129 19.3904 1.45255C19.3827 1.43381 19.3787 1.41372 19.3787 1.39344V0.932812C19.3784 0.850311 19.3455 0.771271 19.2872 0.712933C19.2288 0.654596 19.1498 0.621695 19.0673 0.621406H18.6066C18.5665 0.62013 18.5285 0.603298 18.5006 0.574472C18.4726 0.545646 18.457 0.507087 18.457 0.466953C18.457 0.42682 18.4726 0.38826 18.5006 0.359434C18.5285 0.330608 18.5665 0.313776 18.6066 0.3125H19.0673C19.2317 0.312707 19.3894 0.378127 19.5057 0.494414C19.622 0.6107 19.6874 0.768359 19.6876 0.932812V1.39344C19.6876 1.43438 19.6713 1.47365 19.6424 1.5026C19.6134 1.53155 19.5742 1.54781 19.5332 1.54781Z",fill:"#2D87F3"}),c.createElement("path",{d:"M0.689531 1.54789C0.648588 1.54789 0.609323 1.53163 0.580372 1.50268C0.551421 1.47372 0.535156 1.43446 0.535156 1.39352V0.932891C0.535363 0.768356 0.600848 0.610626 0.717236 0.494326C0.833623 0.378027 0.991403 0.312661 1.15594 0.312578H1.61641C1.6371 0.31192 1.65772 0.315428 1.67703 0.322893C1.69635 0.330359 1.71397 0.34163 1.72884 0.356038C1.74371 0.370445 1.75554 0.387695 1.76361 0.406762C1.77169 0.425829 1.77585 0.446324 1.77585 0.467031C1.77585 0.487738 1.77169 0.508234 1.76361 0.527301C1.75554 0.546368 1.74371 0.563618 1.72884 0.578025C1.71397 0.592432 1.69635 0.603703 1.67703 0.611169C1.65772 0.618635 1.6371 0.622143 1.61641 0.621484H1.15594C1.07325 0.621484 0.993926 0.654258 0.935352 0.712626C0.876779 0.770995 0.843727 0.8502 0.843437 0.932891V1.39352C0.843438 1.43438 0.827238 1.47357 0.798388 1.50251C0.769538 1.53145 0.730393 1.54777 0.689531 1.54789Z",fill:"#2D87F3"}),c.createElement("path",{d:"M19.0673 19.4648H18.6066C18.5665 19.4636 18.5285 19.4467 18.5006 19.4179C18.4726 19.3891 18.457 19.3505 18.457 19.3104C18.457 19.2702 18.4726 19.2317 18.5006 19.2029C18.5285 19.174 18.5665 19.1572 18.6066 19.1559H19.0673C19.1498 19.1556 19.2288 19.1227 19.2872 19.0644C19.3455 19.0061 19.3784 18.927 19.3787 18.8445V18.3841C19.378 18.3634 19.3815 18.3427 19.389 18.3234C19.3965 18.3041 19.4077 18.2865 19.4221 18.2716C19.4365 18.2567 19.4538 18.2449 19.4729 18.2368C19.4919 18.2288 19.5124 18.2246 19.5331 18.2246C19.5538 18.2246 19.5743 18.2288 19.5934 18.2368C19.6125 18.2449 19.6297 18.2567 19.6441 18.2716C19.6585 18.2865 19.6698 18.3041 19.6773 18.3234C19.6847 18.3427 19.6882 18.3634 19.6876 18.3841V18.8441C19.6875 19.0086 19.6221 19.1664 19.5058 19.2828C19.3895 19.3991 19.2318 19.4646 19.0673 19.4648Z",fill:"#2D87F3"}),c.createElement("path",{d:"M1.40625 19.6875H0.940156C0.773755 19.6873 0.614228 19.6211 0.496565 19.5034C0.378901 19.3858 0.312707 19.2262 0.3125 19.0598V18.5938C0.3125 18.5523 0.328962 18.5126 0.358265 18.4833C0.387567 18.454 0.42731 18.4375 0.46875 18.4375C0.51019 18.4375 0.549933 18.454 0.579235 18.4833C0.608538 18.5126 0.625 18.5523 0.625 18.5938V19.0595C0.624979 19.1009 0.633115 19.1419 0.648942 19.1802C0.664769 19.2185 0.687977 19.2532 0.717242 19.2825C0.746507 19.3118 0.781256 19.3351 0.819503 19.3509C0.857751 19.3668 0.898749 19.375 0.940156 19.375H1.40625C1.44769 19.375 1.48743 19.3915 1.51674 19.4208C1.54604 19.4501 1.5625 19.4898 1.5625 19.5312C1.5625 19.5727 1.54604 19.6124 1.51674 19.6417C1.48743 19.671 1.44769 19.6875 1.40625 19.6875Z",fill:"#2D87F3"}),c.createElement("path",{d:"M3.95953 2.8125H2.65625C2.61481 2.8125 2.57507 2.79604 2.54576 2.76674C2.51646 2.73743 2.5 2.69769 2.5 2.65625C2.5 2.61481 2.51646 2.57507 2.54576 2.54576C2.57507 2.51646 2.61481 2.5 2.65625 2.5H3.95953C4.00097 2.5 4.04071 2.51646 4.07002 2.54576C4.09932 2.57507 4.11578 2.61481 4.11578 2.65625C4.11578 2.69769 4.09932 2.73743 4.07002 2.76674C4.04071 2.79604 4.00097 2.8125 3.95953 2.8125Z",fill:"#2D87F3"}),c.createElement("path",{d:"M17.3443 14.9688H16.7285C16.6871 14.9688 16.6473 14.9523 16.618 14.923C16.5887 14.8937 16.5723 14.8539 16.5723 14.8125C16.5723 14.7711 16.5887 14.7313 16.618 14.702C16.6473 14.6727 16.6871 14.6562 16.7285 14.6562H17.3443C17.3857 14.6562 17.4255 14.6727 17.4548 14.702C17.4841 14.7313 17.5005 14.7711 17.5005 14.8125C17.5005 14.8539 17.4841 14.8937 17.4548 14.923C17.4255 14.9523 17.3857 14.9688 17.3443 14.9688Z",fill:"#2D87F3"}),c.createElement("path",{d:"M17.3443 16.3027H16.7285C16.6871 16.3027 16.6473 16.2863 16.618 16.257C16.5887 16.2277 16.5723 16.1879 16.5
1723 16.1465C16.5723 16.105 16.5887 16.0653 16.618 16.036C16.6473 16.0067 16.6871 15.9902 16.7285 15.9902H17.3443C17.3857 15.9902 17.4255 16.0067 17.4548 16.036C17.4841 16.0653 17.5005 16.105 17.5005 16.1465C17.5005 16.1879 17.4841 16.2277 17.4548 16.257C17.4255 16.2863 17.3857 16.3027 17.3443 16.3027Z",fill:"#2D87F3"}),c.createElement("path",{d:"M17.3443 13.6499H16.7285C16.6871 13.6499 16.6473 13.6334 16.618 13.6041C16.5887 13.5748 16.5723 13.5351 16.5723 13.4937C16.5723 13.4522 16.5887 13.4125 16.618 13.3832C16.6473 13.3539 16.6871 13.3374 16.7285 13.3374H17.3443C17.3857 13.3374 17.4255 13.3539 17.4548 13.3832C17.4841 13.4125 17.5005 13.4522 17.5005 13.4937C17.5005 13.5351 17.4841 13.5748 17.4548 13.6041C17.4255 13.6334 17.3857 13.6499 17.3443 13.6499Z",fill:"#2D87F3"}),c.createElement("path",{d:"M4.99063 3.84375H2.65625C2.61481 3.84375 2.57507 3.82729 2.54576 3.79799C2.51646 3.76868 2.5 3.72894 2.5 3.6875C2.5 3.64606 2.51646 3.60632 2.54576 3.57701C2.57507 3.54771 2.61481 3.53125 2.65625 3.53125H4.99063C5.03207 3.53125 5.07181 3.54771 5.10111 3.57701C5.13041 3.60632 5.14687 3.64606 5.14687 3.6875C5.14687 3.72894 5.13041 3.76868 5.10111 3.79799C5.07181 3.82729 5.03207 3.84375 4.99063 3.84375Z",fill:"#2D87F3"}),c.createElement("path",{d:"M4.99063 4.875H2.65625C2.61481 4.875 2.57507 4.85854 2.54576 4.82924C2.51646 4.79993 2.5 4.76019 2.5 4.71875C2.5 4.67731 2.51646 4.63757 2.54576 4.60826C2.57507 4.57896 2.61481 4.5625 2.65625 4.5625H4.99063C5.03207 4.5625 5.07181 4.57896 5.10111 4.60826C5.13041 4.63757 5.14687 4.67731 5.14687 4.71875C5.14687 4.76019 5.13041 4.79993 5.10111 4.82924C5.07181 4.85854 5.03207 4.875 4.99063 4.875Z",fill:"#2D87F3"}),c.createElement("path",{d:"M17.3443 12.3843H16.7285C16.6871 12.3843 16.6473 12.3678 16.618 12.3385C16.5887 12.3092 16.5723 12.2695 16.5723 12.228C16.5723 12.1866 16.5887 12.1468 16.618 12.1175C16.6473 12.0882 16.6871 12.0718 16.7285 12.0718H17.3443C17.3857 12.0718 17.4255 12.0882 17.4548 12.1175C17.4841 12.1468 17.5005 12.1866 17.5005 12.228C17.5005 12.2695 17.4841 12.3092 17.4548 12.3385C17.4255 12.3678 17.3857 12.3843 17.3443 12.3843Z",fill:"#2D87F3"}),c.createElement("path",{d:"M17.3443 17.6562H16.7285C16.6871 17.6562 16.6473 17.6398 16.618 17.6105C16.5887 17.5812 16.5723 17.5414 16.5723 17.5C16.5723 17.4586 16.5887 17.4188 16.618 17.3895C16.6473 17.3602 16.6871 17.3438 16.7285 17.3438H17.3443C17.3857 17.3438 17.4255 17.3602 17.4548 17.3895C17.4841 17.4188 17.5005 17.4586 17.5005 17.5C17.5005 17.5414 17.4841 17.5812 17.4548 17.6105C17.4255 17.6398 17.3857 17.6562 17.3443 17.6562Z",fill:"#2D87F3"}),c.createElement("path",{d:"M17.0352 17.6563C16.9937 17.6563 16.954 17.6398 16.9247 17.6105C16.8954 17.5812 16.8789 17.5415 16.8789 17.5001V12.228C16.8789 12.1866 16.8954 12.1468 16.9247 12.1175C16.954 12.0882 16.9937 12.0718 17.0352 12.0718C17.0766 12.0718 17.1163 12.0882 17.1456 12.1175C17.1749 12.1468 17.1914 12.1866 17.1914 12.228V17.5001C17.1914 17.5415 17.1749 17.5812 17.1456 17.6105C17.1163 17.6398 17.0766 17.6563 17.0352 17.6563Z",fill:"#2D87F3"}),c.createElement("path",{d:"M8.60596 12.3197C8.54189 12.4053 8.46174 12.4775 8.37002 12.5324C8.13096 12.6807 7.05018 13.0533 5.9919 12.0152C5.72695 11.7747 5.47994 11.5151 5.25284 11.2385C5.07471 11.0041 4.83877 10.959 4.57627 10.5683C4.34659 10.2262 4.36846 9.61991 4.57627 9.35412C4.84502 9.01194 5.32627 8.84022 5.62627 9.49631C5.76534 9.80256 6.47002 10.476 7.0294 10.6262C7.09603 10.6424 7.16404 10.6523 7.23252 10.6558C7.85752 10.6952 8.57627 11.1307 8.74659 11.6512C8.77467 11.766 8.77661 11.8857 8.75227 12.0014C8.72793 12.1172 8.67794 12.2259 8.60596 12.3197Z",fill:"#2B62CD"}),c.createElement("path",{d:"M17.8215 7.60137C17.3465 10.2436 15.2621 10.3982 14.3965 11.2482C13.9965 11.642 14.0606 11.7092 13.9965 12.7201C13.9231 13.8951 13.2621 16.1139 11.0356 16.7654C8.77777 17.4279 6.96371 16.5029 6.00121 14.6982C5.14339 13.0904 4.21527 13.6154 3.00121 13.1811C2.42152 12.9717 2.00433 12.4811 2.01996 11.9748C2.03871 11.3217 2.40902 10.8404 3.37777 11.3217C4.04964 11.6545 4.69496 11.5936 5.30433 11.5201C5.63507 11.4688 5.96971 11.4468 6.30433 11.4545C6.96796 11.5169 7.60602 11.7417 8.16214 12.1092C8.31527 12.2061 8.42621 12.2889 8.48402 12.3342C8.0626 11.9665 7.71478 11.5222 7.45902 11.0248C7.44183 10.9936 7.2848 10.655 7.25589 10.592C6.96136 9.95137 7.39027 9.35606 7.83714 9.35606C7.87141 9.35549 7.9056 9.3597 7.93871 9.36855C8.05114 9.39698 8.14976 9.46457 8.21683 9.55918C8.23545 9.57848 8.25784 9.59375 8.28261 9.60403C8.30738 9.61431 8.334 9.61939 8.36082 9.61895C8.38763 9.61851 8.41407 9.61256 8.43849 9.60147C8.4629
11 9.59038 8.48479 9.57439 8.50277 9.55449C8.54371 9.50394 8.60167 9.47004 8.66579 9.45911C8.72992 9.44818 8.79583 9.46098 8.85121 9.49512C9.13871 9.66699 8.98871 10.0232 9.19808 10.4342C9.42152 10.8732 10.109 11.3389 10.634 11.2389C11.0293 11.1623 11.8606 10.6811 10.634 10.167C9.94808 9.88105 9.86683 9.48418 9.93558 9.12168C9.96058 8.99356 10.1621 8.41543 10.1653 8.39356C10.1996 8.1248 9.64652 7.69668 10.1653 7.31699C10.4215 7.12949 10.459 6.88262 10.5075 6.56855C10.7934 4.6998 12.02 3.47168 13.9825 3.47168C16.5262 3.47168 18.1418 5.82793 17.8215 7.60137Z",fill:"#2D87F3"}),c.createElement("path",{d:"M11.0678 7.4316C11.006 7.43496 10.9443 7.42333 10.888 7.3977C10.8317 7.37207 10.7824 7.33321 10.7443 7.28441C10.7305 7.26814 10.7201 7.24921 10.7139 7.22877C10.7076 7.20833 10.7056 7.18683 10.708 7.16559C10.7104 7.14436 10.7171 7.12384 10.7278 7.1053C10.7384 7.08677 10.7527 7.07062 10.7699 7.05784C10.787 7.04507 10.8066 7.03594 10.8274 7.03103C10.8482 7.02613 10.8698 7.02553 10.8908 7.0293C10.9118 7.03306 10.9319 7.0411 10.9497 7.05292C10.9675 7.06474 10.9827 7.08009 10.9943 7.09801C11.0256 7.1391 11.159 7.11504 11.2378 7.0802C11.2756 7.06321 11.3186 7.06193 11.3573 7.07666C11.3961 7.09138 11.4274 7.1209 11.4444 7.15871C11.4614 7.19653 11.4627 7.23954 11.4479 7.27829C11.4332 7.31705 11.4037 7.34836 11.3659 7.36535C11.272 7.40738 11.1706 7.42991 11.0678 7.4316Z",fill:"#2B62CD"}),c.createElement("path",{d:"M11.548 13.1983C11.5518 13.2185 11.5515 13.2392 11.5471 13.2592C11.5428 13.2792 11.5345 13.2981 11.5227 13.3149C11.5109 13.3316 11.4958 13.3458 11.4785 13.3567C11.4611 13.3675 11.4417 13.3748 11.4215 13.378C11.2165 13.4117 11.0089 13.4279 10.8012 13.4265C10.5169 13.4214 10.2349 13.3757 9.96367 13.2905C9.44418 13.1038 8.96486 12.8201 8.55117 12.4546C7.77477 11.8262 7.66367 11.4171 7.45898 11.0249C7.74314 11.4988 8.12768 11.9047 8.58555 12.214C9.03605 12.5485 9.53089 12.8188 10.0559 13.0171C10.4848 13.1224 10.9305 13.141 11.3668 13.0718C11.387 13.0677 11.4079 13.0678 11.4281 13.0721C11.4483 13.0763 11.4675 13.0846 11.4844 13.0964C11.5014 13.1082 11.5157 13.1233 11.5267 13.1409C11.5376 13.1584 11.5449 13.1779 11.548 13.1983Z",fill:"#2B62CD"}),c.createElement("path",{d:"M10.5484 8.85297C10.511 8.86675 10.4712 8.87312 10.4313 8.87172C10.2958 8.86506 10.164 8.82594 10.0469 8.75766C10.0858 8.62969 10.1177 8.54703 10.1419 8.46875C10.2299 8.5323 10.3369 8.56419 10.4453 8.55922C10.464 8.55169 10.4839 8.54798 10.504 8.54833C10.5241 8.54867 10.5439 8.55306 10.5623 8.56122C10.5807 8.56939 10.5972 8.58116 10.6109 8.59585C10.6247 8.61054 10.6353 8.62784 10.6422 8.64672C10.6561 8.68656 10.6541 8.73021 10.6366 8.76862C10.6192 8.80703 10.5876 8.83724 10.5484 8.85297Z",fill:"#2B62CD"})),c.createElement("defs",null,c.createElement("clipPath",{id:"clip0_5646_32454"},c.createElement("rect",{width:"20",height:"20",fill:"white"}))))},label:"dueDatePage.ultrasound"}},j=[String(r.lastPeriod),String(r.IVF),String(r.conception)],M={[C.L.Cambodia]:j,[C.L.Singapore]:j,[C.L.India]:j,[C.L.Indonesia]:[String(r.lastPeriod),String(r.IUI),String(r.IVF),String(r.ultrasound)],[C.L.Malaysia]:j,[C.L.Myanmar]:j,[C.L.PhilippinesEnglish]:j,[C.L.PhilippinesTagalog]:j,[C.L.Taiwan]:j,[C.L.Thailand]:j,[C.L.Vietnam]:[String(r.lastPeriod),String(r.IVF),String(r.IUI),String(r.ultrasound)]},R="yyyy-MM-dd",getDueDateLastPeriod=(e,t)=>({otherInfo:{method:r.lastPeriod+1,first_day:(0,g.Z)(e,R),measurement_date:null,insemination_date:null,cycle_length_days:t,conception_date:null,ivf_transfer_date:null,days_transfer:null}}),getDueDateConception=e=>({otherInfo:{method:r.conception+1,conception_date:(0,g.Z)(e,R),measurement_date:null,insemination_date:null,first_day:null,cycle_length_days:null,ivf_transfer_date:null,days_transfer:null}}),getDueDateIVF=(e,t)=>({otherInfo:{method:r.IVF+1,ivf_transfer_date:(0,g.Z)(e,R),measurement_date:null,insemination_date:null,days_transfer:t,conception_date:null,first_day:null,cycle_length_days:null}}),getDueDateIUI=e=>({otherInfo:{method:r.conception+1,insemination_date:(0,g.Z)(e,R),measurement_date:null,conception_date:null,first_day:null,cycle_length_days:null,ivf_transfer_date:null,days_transfer:null}}),getDueDateUltrasound=(e,t)=>
1{let[n,l]=t.split("|"),[a,i]=[Number(n),Number(l)];return{otherInfo:{method:r.conception+1,measurement_date:(0,g.Z)(e,R),conception_date:null,insemination_date:null,crl_value:a,msd_value:i,first_day:null,cycle_length_days:null,ivf_transfer_date:null,days_transfer:null}}},H=(0,c.createContext)({}),T=(0,c.createContext)({}),DefaultLayout$4=()=>{let{t:e}=(0,S.u)(),{form:t}=(0,c.useContext)(T);return c.createElement(I.H.FormRow,null,c.createElement(L.D,Object.assign({label:c.createElement(x.T,{size:"p2",weight:"semiBold"},e("dueDatePage.lastPeriod.lastPeriodLabel"))},t.getInputProps("lastPeriodDate"),{popoverProps:{withinPortal:!0},maxDate:new Date})))},InlineLayout$4=()=>{let{t:e}=(0,S.u)(),{form:t}=(0,c.useContext)(T);return c.createElement(I.H.FormRow,null,c.createElement(I.H.BorderInlineControl,{width:300,label:e("dueDatePage.lastPeriod.lastPeriodLabel")},c.createElement(L.D,Object.assign({},t.getInputProps("lastPeriodDate"),{popoverProps:{withinPortal:!0},maxDate:new Date,error:null}))),t.errors.lastPeriodDate&&c.createElement(I.H.Error,null,t.errors.lastPeriodDate))},MbLayout$4=()=>{let{t:e}=(0,S.u)(),{form:t}=(0,c.useContext)(T);return c.createElement(I.H.BorderBoxControl,{label:e("dueDatePage.lastPeriod.lastPeriodLabel"),rightSection:c.createElement(O.Z,null)},c.createElement(L.D,Object.assign({},t.getInputProps("lastPeriodDate"),{popoverProps:{withinPortal:!0},rightSection:null,maxDate:new Date})))},ConceptionForm=({})=>{let{classes:e={}}=(0,c.useContext)(k.C),{formLayout:t,onSubmit:n,currentUrl:l,submitProps:a}=(0,c.useContext)(H),i=(0,s.rZ)(),{t:o}=(0,S.u)(),d=(0,b.c)({initialValues:{lastPeriodDate:new Date}}),m={onSubmit:d.onSubmit(e=>{let{lastPeriodDate:t}=e,l=`${D.Q.type}=${r.conception}&${D.Q.startDate}=${w()(t).format(D.A)}&${D.Q.additional}= `;n(getDueDateConception(t),l)})};return c.createElement(T.Provider,{value:{form:d}},c.createElement(I.H,Object.assign({formLayout:t},m),"inline"===t?c.createElement(InlineLayout$4,null):"mb"===i.other.template?c.createElement(MbLayout$4,null):c.createElement(DefaultLayout$4,null),c.createElement(I.H.FormRow,{className:e.submitWrapper},c.createElement(I.H.Submit,Object.assign({dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:l,className:(0,u.default)("due-date-calculate-button",e.submitBtn),type:"submit"},a),o("dueDatePage.lastPeriod.calculate")))))},B=(0,c.createContext)({}),DefaultLayout$3=()=>{let{t:e}=(0,S.u)(),{form:t}=(0,c.useContext)(B);return c.createElement(I.H.FormRow,null,c.createElement(L.D,Object.assign({label:c.createElement(x.T,{size:"p2",weight:"semiBold"},e("dueDatePage.date_of_IUI_procedure"))},t.getInputProps("dateOfIUIProcedure"),{popoverProps:{withinPortal:!0},maxDate:new Date})))},InlineLayout$3=()=>{let{t:e}=(0,S.u)(),{form:t}=(0,c.useContext)(B);return c.createElement(I.H.FormRow,null,c.createElement(I.H.BorderInlineControl,{width:300,label:e("dueDatePage.date_of_IUI_procedure")},c.createElement(L.D,Object.assign({},t.getInputProps("dateOfIUIProcedure"),{popoverProps:{withinPortal:!0},maxDate:new Date,error:null}))))},MbLayout$3=()=>{let{t:e}=(0,S.u)(),{form:t}=(0,c.useContext)(B);return c.createElement(I.H.BorderBoxControl,{label:e("dueDatePage.date_of_IUI_procedure"),rightSection:c.createElement(O.Z,null)},c.createElement(L.D,Object.assign({},t.getInputProps("dateOfIUIProcedure"),{popoverProps:{withinPortal:!0},rightSection:null,maxDate:new Date})))},IUIForm=({})=>{let{formLayout:e,onSubmit:t,currentUrl:n,submitProps:l}=(0,c.useContext)(H),{classes:a={}}=(0,c.useContext)(k.C),i=(0,s.rZ)(),{t:o}=(0,S.u)(),d=(0,b.c)({initialValues:{dateOfIUIProcedure:new Date}}),m={onSubmit:d.onSubmit(e=>{let{dateOfIUIProcedure:n}=e,l=`${D.Q.type}=${r.IUI}&${D.Q.startDate}=${w()(n).format(D.A)}&${D.Q.additional}= `;t(getDueDateIUI(n),l)})};return c.createElement(B.Provider,{value:{form:d}},c.createElement(I.H,Object.assign({formLayout:e},m),"inline"===e?c.createElement(InlineLayout$3,null):"mb"===i.other.template?c.createElement(MbLayout$3,null):c.createElement(DefaultLayout$3,null),c.createElement(I.H.FormRow,{className:a.submitWrapper},c.createElement(I.H.Submit,Object.assign({dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:n,className:(0,u.default)("due-date-calculate-button",a.submitBtn),type:"submit"},l),o("dueDatePage.lastPeriod.calculate")))))},_=(0,c.createContext)({}),DefaultLayout$2=()=>{let{t:e}=(0,S.u)(),{form:t,transferDateOptions:n}=(0,c.useContext)(_);return c.createElement(c.Fragment,null,c.createElement(I.H.FormRow,null,c.createElement(L.D,Object.assign({label:c.createElement(x.T,{size:"p2",weight:"semiBold"},e("dueDatePage.ivf.transferDate"))},t.getInputProps("IVFDate"),{popoverProps:{withinPortal:!0},maxDate:new Date}))),c.createElement(I.H.FormRow,null,c.createElement(y.R.Group,Object.assign({},t.getInputProps("dayTransfer")),c.createElement(d.Z,null,n.map((e,t)=>c.createElement(y.R,{key:t,value:e.value,label:e.label}))))))},InlineLayout$2=()=>{let{t:e}=(0,S.u)(),{form:t,transferDateOptions:n}=(0,c.useContext)(_);return c.createElement(c.Fragment,null,c.createElement(I.H.FormRow,null,c.createElement(I.H.BorderInlineControl,{width:300,label:e("dueDatePage.ivf.transferDate")},c.createElement(L.D,Object.assign({},t.getInputProps("IVFDate"),{popoverProps:{withinPortal:!0},maxDate:new Date})))),c.createElement(I.H.FormRow,null,c.createElement(I.H.BorderInlineControl,{width:"none"},c.createElement(y.R.Group,Object.assign({},t.getInputProps("dayTransfer")),c.createElement(d.Z,null,n.map((e,t)=>c.createElement(y.R,{key:t,value:e.value,label:e.label})))))))},MbLayout$2=()=>{let{t:e}=(0,S.u)(),{form:t,transferDateOptions:n}=(0,c.useContext)(_);return c.createElement(c.Fragment,null,c.createElement(I.H.BorderBoxControl,{label:e("dueDatePage.ivf.transferDate"),rightSection:c.createElement(O.Z,null)},c.createElement(L.D,Object.assign({},t.getInputProps("IVFDate"),{popoverProps:{withinPortal:!0},maxDate:new Date,rightSection:null}))),c.createElement(y.R.Group,Object.assign({},t.getInputProps("dayTransfer")),c.createElement(d.Z,null,n.map((e,t)=>c.createElement(y.R,{key:t,value:e.value,label:e.label})))))},IVFForm=({})=>{var e;let{classes:t={}}=(0,c.useContext)(k.C),{formLayout:n,onSubmit:l,currentUrl:a,submitProps:i}=(0,c.useContext)(H),{t:o}=(0,S.u)(),d=(0,s.rZ)(),m=[{value:"3",label:o("dueDatePage.ivf.transferDateRadio",{number:3})},{value:"5",label:o("dueDatePage.ivf.transferDateRadio",{number:5})}],p=(0,b.c)({initialValues:{IVFDate:new Date,dayTransfer:null===(e=null==m?void 0:m[0])||void 0===e?void 0:e.value}}),h={onSubmit:p.onSubmit(e=>{let{IVFDate:t}=e,n=Number(e.dayTransfer),a=`${D.Q.type}=${r.IVF}&${D.Q.startDate}=${w()(t).format(D.A)}&${D.Q.additional}=${n}`;
1l(getDueDateIVF(t,Number(n)),a)})};return c.createElement(_.Provider,{value:{form:p,transferDateOptions:m}},c.createElement(I.H,Object.assign({formLayout:n},h),"inline"===n?c.createElement(InlineLayout$2,null):"mb"===d.other.template?c.createElement(MbLayout$2,null):c.createElement(DefaultLayout$2,null),c.createElement(I.H.FormRow,{className:t.submitWrapper},c.createElement(I.H.Submit,Object.assign({dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:a,className:(0,u.default)("due-date-calculate-button",t.submitBtn),type:"submit"},i),o("dueDatePage.lastPeriod.calculate")))))},V=(0,c.createContext)({}),DefaultLayout$1=()=>{let{t:e}=(0,S.u)(),{form:t}=(0,c.useContext)(V),n=(0,c.useMemo)(()=>[...Array(21)].map((t,n)=>({label:e("dueDatePage.daysText",{number:n+20}),value:`${n+20}`})),[]);return c.createElement(c.Fragment,null,c.createElement(I.H.FormRow,null,c.createElement(L.D,Object.assign({label:c.createElement(x.T,{size:"p2",weight:"semiBold"},e("dueDatePage.lastPeriod.lastPeriodLabel"))},t.getInputProps("lastPeriodDate"),{popoverProps:{withinPortal:!0},maxDate:new Date}))),c.createElement(I.H.FormRow,null,c.createElement(y.I.Wrapper,{label:c.createElement(x.T,{size:"p2",weight:"semiBold"},e("dueDatePage.lastPeriod.periodLengthLabel"))},c.createElement(y.S,Object.assign({placeholder:e("tools.inputPlaceholder",{content:e("dueDatePage.daysText",{number:30})}),data:n,withinPortal:!0},t.getInputProps("periodLength"))))))},InlineLayout$1=()=>{let{t:e}=(0,S.u)(),{form:t}=(0,c.useContext)(V),n=(0,c.useMemo)(()=>[...Array(21)].map((t,n)=>({label:e("dueDatePage.daysText",{number:n+20}),value:`${n+20}`})),[]);return c.createElement(c.Fragment,null,c.createElement(I.H.FormRow,null,c.createElement(I.H.BorderInlineControl,{label:e("dueDatePage.lastPeriod.lastPeriodLabel"),width:300},c.createElement(L.D,Object.assign({},t.getInputProps("lastPeriodDate"),{popoverProps:{withinPortal:!0},maxDate:new Date})))),c.createElement(I.H.FormRow,null,c.createElement(I.H.BorderInlineControl,{label:e("dueDatePage.lastPeriod.periodLengthLabel"),width:300},c.createElement(y.S,Object.assign({placeholder:e("tools.inputPlaceholder",{content:e("dueDatePage.daysText",{number:30})}),data:n},t.getInputProps("periodLength"),{error:null,withinPortal:!0})))),t.errors.periodLength&&c.createElement(I.H.FormRow,null,c.createElement(I.H.Error,null,t.errors.periodLength)))},MbLayout$1=()=>{let{t:e}=(0,S.u)(),{form:t}=(0,c.useContext)(V);return c.createElement(c.Fragment,null,c.createElement(I.H.BorderBoxControl,{label:e("dueDatePage.lastPeriod.lastPeriodLabel"),rightSection:c.createElement(O.Z,null)},c.createElement(L.D,Object.assign({rightSection:null},t.getInputProps("lastPeriodDate"),{popoverProps:{withinPortal:!0},maxDate:new Date}))),c.createElement(I.H.BorderBoxControl,{label:e("dueDatePage.lastPeriod.periodLengthLabel"),rightSection:e("ovulationPage.dayUnit")},c.createElement(y.I.Number,Object.assign({min:20,max:40,placeholder:e("tools.inputPlaceholder",{content:"30"})},t.getInputProps("periodLength")))),t.errors.periodLength&&c.createElement(I.H.Error,null,t.errors.periodLength))},LastPeriodForm=({})=>{let{formLayout:e,onSubmit:t,currentUrl:n,submitProps:l}=(0,c.useContext)(H),{classes:a={}}=(0,c.useContext)(k.C),{t:i}=(0,S.u)(),o=(0,s.rZ)(),d="mb"===o.other.template,m=(0,b.c)({initialValues:{lastPeriodDate:new Date},validate:{periodLength:(0,f.U)(i("validation.error.requiredField"))}}),p={onSubmit:m.onSubmit(e=>{let{periodLength:n,lastPeriodDate:l}=e,a=`${D.Q.type}=${r.lastPeriod}&${D.Q.startDate}=${w()(l).format(D.A)}&${D.Q.additional}=${n}`;t(getDueDateLastPeriod(l,n),a)})};return c.createElement(V.Provider,{value:{form:m}},c.createElement(I.H,Object.assign({formLayout:e},p),"inline"===e?c.createElement(InlineLayout$1,null):d?c.createElement(MbLayout$1,null):c.createElement(DefaultLayout$1,null),c.createElement(I.H.FormRow,{className:a.submitWrapper},c.createElement(I.H.Submit,Object.assign({dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:n,className:(0,u.default)("due-date-calculate-button",a.submitBtn),type:"submit"},l),i("dueDatePage.lastPeriod.calculate")))))},Z=(0,c.createContext)({}),Info=e=>{var{isMarryBaby:t,size:n=24}=e,l=(0,o.a)(e,["isMarryBaby","size"]);let a=Object.assign({width:n,height:n},l);return c.createElement("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.00065 1.3335C4.32065 1.3335 1.33398 4.32016 1.33398 8.00016C1.33398 11.6802 4.32065 14.6668 8.00065 14.6668C11.6807 14.6668 14.6673 11.6802 14.6673 8.00016C14.6673 4.32016 11.6807 1.3335 8.00065 1.3335ZM8.00065 11.3335C7.63398 11.3335 7.33398 11.0335 7.33398 10.6668V8.00016C7.33398 7.6335 7.63398 7.3335 8.00065 7.3335C8.36732 7.3335 8.66732 7.6335 8.66732 8.00016V10.6668C8.66732 11.0335 8.36732 11.3335 8.00065 11.3335ZM7.33398 6.00016H8.66732V4.66683H7.33398V6.00016Z",fill:"#2D87F3"}))},DefaultLayout=()=>{let{t:e}=(0,S.u)(),{form:t}=(0,c.useContext)(Z),n=c.createElement(x.T,{size:"p4",color:P.r.colors.gray4
100},"mm"),l=t.getInputProps("ultrasoundCRL"),a=t.getInputProps("ultrasoundMSD");return c.createElement(c.Fragment,null,c.createElement(I.H.FormRow,null,c.createElement(L.D,Object.assign({label:c.createElement(x.T,{size:"p2",weight:"semiBold"},e("dueDatePage.date_of_ultrasound"))},t.getInputProps("dateOfUltrasound"),{popoverProps:{withinPortal:!0},maxDate:new Date}))),c.createElement(I.H.FormRow,null,c.createElement(m.k,{align:"center",gap:4,mb:4},c.createElement(x.T,{size:"p2",weight:"semiBold"},e("dueDatePage.validation.one_is_required")),c.createElement(p.u,{withinPortal:!0,withArrow:!0,width:300,multiline:!0,label:e("dueDatePage.ultrasound.tooltip")},c.createElement(m.k,null,c.createElement(Info,{size:16})))),c.createElement(m.k,{gap:8},c.createElement(y.I,Object.assign({placeholder:"CRL",sx:{flex:1},rightSection:n,type:"number",min:0,step:.01},l,{errorProps:{sx:{display:"none"}}})),c.createElement(y.I,Object.assign({placeholder:"MSD",sx:{flex:1},rightSection:n,type:"number",min:0,step:.01},a,{errorProps:{sx:{display:"none"}}}))),(t.errors.ultrasoundCRL||t.errors.ultrasoundMSD)&&c.createElement(x.T,{size:"p4",color:P.r.colors.red500},t.errors.ultrasoundCRL||t.errors.ultrasoundMSD)))},InlineLayout=()=>{let{t:e}=(0,S.u)(),{form:t}=(0,c.useContext)(Z),n=c.createElement(x.T,{size:"p4",color:P.r.colors.gray400},"mm"),l=t.getInputProps("ultrasoundCRL"),a=t.getInputProps("ultrasoundMSD");return c.createElement(c.Fragment,null,c.createElement(I.H.FormRow,null,c.createElement(I.H.BorderInlineControl,{width:300,label:e("dueDatePage.date_of_ultrasound")},c.createElement(L.D,Object.assign({},t.getInputProps("dateOfUltrasound"),{popoverProps:{withinPortal:!0},maxDate:new Date,error:null})))),c.createElement(I.H.FormRow,null,c.createElement(I.H.BorderInlineControl,{width:300,label:c.createElement(m.k,{align:"center",gap:4},c.createElement("span",null,e("dueDatePage.validation.one_is_required")),c.createElement(p.u,{withinPortal:!0,withArrow:!0,width:300,multiline:!0,label:e("dueDatePage.ultrasound.tooltip")},c.createElement(m.k,null,c.createElement(Info,{size:16}))))},c.createElement(h.x,null,c.createElement(m.k,{gap:8},c.createElement(y.I,Object.assign({placeholder:"CRL",sx:{flex:1},rightSection:n,type:"number",min:0,step:.01},l,{errorProps:{sx:{display:"none"}}})),c.createElement(y.I,Object.assign({placeholder:"MSD",sx:{flex:1},rightSection:n,type:"number",min:0,step:.01},a,{errorProps:{sx:{display:"none"}}}))))),(t.errors.ultrasoundCRL||t.errors.ultrasoundMSD)&&c.createElement(I.H.Error,null,t.errors.ultrasoundCRL||t.errors.ultrasoundMSD)))},MbLayout=()=>{let{t:e}=(0,S.u)(),{form:t}=(0,c.useContext)(Z);return c.createElement(I.H.BorderBoxControl,{label:e("dueDatePage.date_of_ultrasound"),rightSection:c.createElement(O.Z,null)},c.createElement(L.D,Object.assign({},t.getInputProps("dateOfUltrasound"),{popoverProps:{withinPortal:!0},rightSection:null,maxDate:new Date})))},UltrasoundForm=({})=>{let{classes:e={}}=(0,c.useContext)(k.C),{formLayout:t,onSubmit:n,currentUrl:l,submitProps:a}=(0,c.useContext)(H),i=(0,s.rZ)(),{t:o}=(0,S.u)(),d=(0,b.c)({initialValues:{dateOfUltrasound:new Date},validate:e=>{let t=Number(e.ultrasoundCRL),n=Number(e.ultrasoundMSD);if(!t&&!n)return{ultrasoundCRL:o("dueDatePage.validation.record_not_valid")};let l=t>=5&&t<=101,a=n>0&&n<=13;return l||a?{}:t&&!l?{ultrasoundCRL:o("dueDatePage.validation.record_not_valid")}:n&&!a?{ultrasoundMSD:o("dueDatePage.validation.crl")}:void 0}}),m={onSubmit:d.onSubmit(e=>{let{dateOfUltrasound:t,ultrasoundCRL:l,ultrasoundMSD:a}=e,i=`${l}|${a}`,o=`${D.Q.type}=${r.ultrasound}&${D.Q.startDate}=${w()(t).format(D.A)}&${D.Q.additional}=${i}`;n(getDueDateUltrasound(t,i),o)})};return c.createElement(Z.Provider,{value:{form:d}},c.createElement(I.H,Object.assign({formLayout:t},m),"inline"===t?c.createElement(InlineLayout,null):"mb"===i.other.template?c.createElement(MbLayout,null):c.createElement(DefaultLayout,null),c.createElement(I.H.FormRow,{className:e.submitWrapper},c.createElement(I.H.Submit,Object.assign({dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:l,className:(0,u.default)("due-date-calculate-button",e.submitBtn),type:"submit"},a),o("dueDatePage.lastPeriod.calculate")))))},FormSwitcher=()=>{let{calculatorType:e}=(0,c.useContext)(H);
1switch(e){case r.lastPeriod:return c.createElement(LastPeriodForm,null);case r.conception:return c.createElement(ConceptionForm,null);case r.IVF:return c.createElement(IVFForm,null);case r.IUI:return c.createElement(IUIForm,null);case r.ultrasound:return c.createElement(UltrasoundForm,null);default:return null}};(a=i||(i={}))[a.trackPeriod=0]="trackPeriod",a[a.conceive=1]="conceive",a[a.avoidPregnancy=2]="avoidPregnancy";let z=(0,c.forwardRef)((e,t)=>{var{label:n,icon:l}=e,a=(0,o.a)(e,["label","icon"]);return c.createElement(h.x,Object.assign({ref:t,sx:{gap:"1rem",display:"flex",padding:"5px 6px",alignItems:"center","&[data-selected]":{backgroundColor:P.r.colors.gray100},"&[data-selected]:hover":{backgroundColor:P.r.colors.gray100},"&[data-hovered]":{backgroundColor:P.r.colors.gray100}},className:""},a),l,c.createElement(x.T,{size:"p4"},n))}),DueDateForm=e=>{var{locale:t,formLayout:n="default",submitProps:l,currentUrl:a,isMobile:i,onSubmit:s}=e,u=(0,o.a)(e,["locale","formLayout","submitProps","currentUrl","isMobile","onSubmit"]);let{t:d}=(0,S.u)(),[m,p]=(0,c.useState)(r.lastPeriod),h=(0,c.useMemo)(()=>(null==M?void 0:M[t].map(e=>{let t=F[e],n=t.icon;return Object.assign(Object.assign({},t),{label:d(t.label),icon:c.createElement(n,{size:20})})}))||[],[t,d]),g=(0,c.useMemo)(()=>h.find(e=>e.value===String(m)),[m,h]);return c.createElement(H.Provider,{value:{calculatingMethods:h,submitProps:l,currentUrl:a,isMobile:i,formLayout:n,onSubmit:s,calculatorType:m,setCalculatorType:p}},c.createElement(I.H,Object.assign({component:"div",formLayout:n},u),"default"===n?c.createElement(I.H.FormRow,null,c.createElement(I.H.Control,null,c.createElement(y.S,{label:c.createElement(x.T,{size:"p2",weight:"semiBold"},d("dueDatePage.calculationMethod")),value:String(m),data:h,itemComponent:z,onChange:e=>p(Number(e)),icon:null==g?void 0:g.icon}))):c.createElement(I.H.FormRow,null,c.createElement(I.H.BorderInlineControl,{label:c.createElement(x.T,{size:"p2",weight:"semiBold"},d("dueDatePage.calculationMethod")),width:300},c.createElement(y.S,{value:String(m),data:h,itemComponent:z,onChange:e=>p(Number(e))}))),c.createElement(FormSwitcher,null)))}},Bril:function(e,t,n){n.d(t,{A:function(){return Avatar},B:function(){return Breadcrumbs},C:function(){return CaretDown},D:function(){return ep},E:function(){return ErrorIcon},F:function(){return Flag},I:function(){return ek},N:function(){return NumberInput},O:function(){return eR},P:function(){return e_},R:function(){return Radio},S:function(){return el},a:function(){return Carousel},b:function(){return Anchor},c:function(){return AspectRatio},d:function(){return Checkbox},e:function(){return ErrorLabel},f:function(){return CentralCarousel},g:function(){return ChipButton},h:function(){return ErrorBoundary},i:function(){return eC},j:function(){return ej},k:function(){return eF},l:function(){return Accordion},m:function(){return eh},o:function(){return Popover},s:function(){return eB},u:function(){return ec}});var l=n("mup0"),a=n("q1tI"),r=n("h84G"),i=n("/npG"),o=n("mYVa"),c=n("F9pO"),s=n("gHhT"),u=n("gxre"),d=n("CmzK"),m=n("RZSM"),p=n("8vDj"),h=n("Eso5"),g=n("eRSo"),E=n("bpvy"),C=n("jUTz"),b=n("QJsO"),f=n("nVa/"),v=n("9Igr"),w=n("HXNK"),y=n("5LCj"),L=n("SPK5"),x=n("iuhU"),S=n("J8Dw"),I=n("aDCK"),O=n("L0nm"),k=n("nI05"),D=n("0Tuv"),P=n("LES+"),F=n("9n+W"),j=n("1z9F"),M=n("GjY/"),R=n("ChHM"),H=n("jD9D"),T=n("xjta"),B=n("Iblh"),_=n("5GB8"),V=n("88OS"),Z=n("xX6x"),z=n("rBCA"),A=n("Zdfy"),N=n("E13D"),$=n("QnSE"),U=n("iBNF"),W=n("YetX"),q=n("xXM3"),G=n.n(q),Q=n("+PHJ"),Y=n("erqo"),K=n("tiWT"),X=n("AeFk"),J=n("QoN1"),ee=n("vWP/"),et=n("YtXE"),en=(0,i.k)((e,{variantStyle:t})=>{let n=t===V.C.LEADGEN,l={fontSize:(0,o.h)(15),lineHeight:(0,o.h)(24),letterSpacing:"-0.3px"};return{input:Object.assign({padding:"12px 16px",background:"#ffffff",border:`1px solid ${e.colors.gray[2]}`,borderRadius:4},n&&Object.assign(Object.assign({borderRadius:8},l),{color:"#111111","&::placeholder":Object.assign(Object.assign({},l),{fontSize:(0,o.h)(13),lineHeight:(0,o.h)(20),letterSpacing:"-0.3px",color:e.colors.gray[4]})}))}});let el=(0,a.forwardRef)((e,t)=>{var{keepSearch:n=!1}=e,r=(0,l.a)(e,["keepSearch"]);return n?a.createElement(ea,Object.assign({},r,{ref:t})):a.createElement(er,Object.assign({},r,{ref:t}))}),ea=(0,a.forwardRef)((e,t)=>{var{value:n,defaultValue:r,onChange:i,clearable:o}=e,d=(0,l.a)(e,["value","defaultValue","onChange","clearable"]);let[m,p]=(0,j.C)({value:n,defaultValue:r,onChange:i});return a.createElement(c.F,Object.assign({ref:t,rightSection:a.createElement(s.E,{src:_.C.getAssetPath("chevron-down.svg"),fit:"none"}),size:"md",maxDropdownHeight:300,onChange:e=>p(e),value:m},d,o&&(null==m?void 0:m.length)>0?{rightSection:a.createElement(u.A,{onClick:()=>{p("")},sx:{cursor:"pointer"}},a.createElement(_IconSelect,null))}:{}))}),er=(0,a.forwardRef)((e,t)=>{var{searchValue:n,onSearchChange:i,styles:o}=e,c=(0,l.a)(e,["searchValue","onSearchChange","styles"]);let s=(0,V.u)(),{classes:m}=en({variantStyle:s},{name:"MantineSelect",styles:o}),[p,h]=(0,j.C)({defaultValue:"",value:n,onChange:i});return a.createElement(d.Ph,Object.assign({classNames:{input:m.input},ref:t,rightSection:a.createElement(r.Z,{size:18}),rightSectionProps:{style:{pointerEvents:"none"}},size:"md",maxDropdownHeight:300,onSearchChange:e=>h(e),searchValue:p},c,c.clearable&&(null==p?void 0:p.length)>0?{rightSection:a.createElement(u.A,{onClick:()=>{h("")},sx:{cursor:"pointer"}},a.createElement(_IconSelect,null))}:{}))}),_IconSelect=()=>a.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.6665 9.99996C1.6665 5.39163 5.3915 1.66663 9.99984 1.66663C14.6082 1.66663 18.3332 5.39163 18.3332 9.99996C18.3332 14.6083 14.6082 18.3333 9.99984 18.3333C5.3915 18.3333 1.666
15 14.6083 1.6665 9.99996ZM12.4083 13.5831C12.7333 13.9081 13.2583 13.9081 13.5833 13.5831C13.9 13.2581 13.9 12.7247 13.5833 12.4081L11.175 9.99973L13.5833 7.5914C13.9083 7.2664 13.9083 6.7414 13.5833 6.4164C13.2583 6.0914 12.7333 6.0914 12.4083 6.4164L10 8.82473L7.59167 6.4164C7.26667 6.0914 6.74167 6.0914 6.41667 6.4164C6.26063 6.57209 6.17293 6.78347 6.17293 7.0039C6.17293 7.22433 6.26063 7.43571 6.41667 7.5914L8.825 9.99973L6.41667 12.4081C6.26063 12.5638 6.17293 12.7751 6.17293 12.9956C6.17293 13.216 6.26063 13.4274 6.41667 13.5831C6.74167 13.9081 7.26667 13.9081 7.59167 13.5831L10 11.1747L12.4083 13.5831Z",fill:"#8C8C8C"}));let ErrorBoundary=class ErrorBoundary extends a.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error("Uncaught error:",e,t)}render(){return this.state.hasError?this.props.fallback||a.createElement(a.Fragment,null):this.props.children}};let Carousel=e=>{var{slidesToShow:t=1,children:n}=e,r=(0,l.a)(e,["slidesToShow","children"]);let i=Array.isArray(n)?n.length:1;return i?a.createElement(ErrorBoundary,null,a.createElement(A.l,Object.assign({slideSize:String(Math.floor(1/t*1e4)/100)+"%",containScroll:"trimSnaps"},r),n)):null};Carousel.Slide=A.l.Slide;let ei=(0,z.Z)(Carousel)`
2  cursor: grab;
3  width: 100%;
4  .mantine-Carousel-control {
5    background: rgb(255, 255, 255);
6    opacity: 1;
7    border: none;
8    border-radius: 0;
9    box-shadow: none;
10    &[data-inactive] {
11      opacity: 0;
12      cursor: default;
13    }
14    &:first-child {
15      padding-right: 24px;
16      background: linear-gradient(
17        90deg,
18        rgba(255, 255, 255, 1) 0%,
19        rgba(255, 255, 255, 1) 50%,
20        rgba(255, 255, 255, 0) 100%
21      );
22    }
23    &:last-child {
24      padding-left: 24px;
25      background: linear-gradient(
26        270deg,
27        rgba(255, 255, 255, 1) 0%,
28        rgba(255, 255, 255, 1) 50%,
29        rgba(255, 255, 255, 0) 100%
30      );
31    }
32  }
33
34  .mantine-Carousel-container {
35    align-items: center;
36  }
37`;var eo=(0,i.k)((e,t)=>({root:{color:t.color||("hb"===e.primaryColor?e.colors.hb[6]:e.fn.primaryColor())}}));let Anchor=e=>{var{color:t,styles:n,className:r}=e,i=(0,l.a)(e,["color","styles","className"]);let{classes:o,cx:c}=eo({color:t},{name:"Anchor",styles:n});return a.createElement(N.T,Object.assign({as:"a",className:c(o.root,r)},i))},BreadcrumbItem=e=>{var{children:t}=e,n=(0,l.a)(e,["children"]);return a.createElement(Anchor,Object.assign({size:"p4",color:"gray.8"},n),t)},AspectRatio=e=>a.createElement(m.o,Object.assign({sx:{borderRadius:4,overflow:"hidden","> img":{objectFit:"contain"}}},e)),Breadcrumbs=e=>{var t,{children:n,showHomeIcon:r=!0,homeIconHref:i="/"}=e,o=(0,l.a)(e,["children","showHomeIcon","homeIconHref"]);let c=(0,p.rZ)(),s=(null===(t=null==c?void 0:c.other)||void 0===t?void 0:t.template)==="mb",[u,d]=(0,a.useState)(null),{isMobile:m}=(0,Z.u)(),[,E]=(0,a.useState)(!0),C=(0,a.useCallback)(()=>{E(!1)},[]),b=(0,a.useCallback)(()=>{setTimeout(()=>{E(!0)},1e3)},[]);return(0,a.useEffect)(()=>(u&&(u.on("scroll",C),u.on("pointerUp",b)),()=>{u&&(u.off("scroll",C),u.on("pointerUp",b))}),[u,C,b]),a.createElement(ei,Object.assign({align:"center",slideGap:"xs",dragFree:!0,draggable:m,slideSize:"0",getEmblaApi:d,controlsOffset:-52,previousControlIcon:a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},a.createElement("path",{d:"M6.86589 3.56104C7.03647 3.56104 7.20724 3.62732 7.33724 3.75765L7.39453 3.81494C7.6552 4.07561 7.6552 4.49765 7.39453 4.75765L4.81901 7.33317L13.5326 7.33317C13.9006 7.33317 14.1992 7.63184 14.1992 7.99984C14.1992 8.36784 13.9006 8.6665 13.5326 8.6665L4.81901 8.66651L7.39453 11.242C7.6552 11.5027 7.6552 11.9247 7.39453 12.1847L7.33724 12.242C7.07657 12.5027 6.65453 12.5027 6.39453 12.242L2.6237 8.47119C2.36303 8.21053 2.36303 7.78849 2.6237 7.52849L6.39453 3.75765C6.52487 3.62732 6.6953 3.56104 6.86589 3.56104Z",fill:"#595959"})),nextControlIcon:a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},a.createElement("path",{d:"M9.13411 12.439C8.96353 12.439 8.79276 12.3727 8.66276 12.2423L8.60547 12.1851C8.3448 11.9244 8.3448 11.5023 8.60547 11.2423L11.181 8.66683L2.46745 8.66683C2.09945 8.66683 1.80078 8.36816 1.80078 8.00016C1.80078 7.63216 2.09945 7.3335 2.46745 7.3335L11.181 7.3335L8.60547 4.75797C8.3448 4.49731 8.3448 4.07527 8.60547 3.81527L8.66276 3.75797C8.92343 3.49731 9.34547 3.49731 9.60547 3.75797L13.3763 7.52881C13.637 7.78947 13.637 8.21152 13.3763 8.47152L9.60547 12.2423C9.47513 12.3727 9.3047 12.439 9.13411 12.439Z",fill:"#595959"}))},o),r&&a.createElement(Carousel.Slide,{style:{borderRight:`1px solid ${$.t.neutral[1]}`}},a.createElement(BreadcrumbItem,{href:i,target:"_blank",className:"pointer-event-child-none"},a.createElement(h.x,{sx:Object.assign({},!s&&{borderRadius:"50%",display:"flex",justifyContent:"center",alignItems:"center"}),bg:!s&&$.t.neutral[0],p:s?0:6},a.createElement(AspectRatio,{ratio:1,w:18},s?a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.1183 3.67722C12.8727 2.70772 11.1281 2.708 9.88187 3.67718L14.1183 3.67722ZM14.1183 3.67722L19.718 8.03283C20.5589 8.68632 21.05 9.69173 21.05 10.7562V17.6002C21.05 19.5057 19.5055 21.0502 17.6 21.0502H6.40016C4.49466 21.0502 2.9502 19.5057 2.9502 17.6002V10.7562C2.9502 9.69163 3.44113 8.68632 4.28216 8.03283L9.88187 3.67718M10.6799 4.70339L5.08006 9.05916C4.55657 9.46592 4.2502 10.0923 4.2502 10.7562V17.6002C4.2502 18.7878 5.21263 19.7502 6.40016 19.7502H17.6C18.7875 19.7502 19.75 18.7878 19.75 17.6002V10.7562C19.75 10.0923 19.4438 9.46612 18.9204 9.05936L13.3202 4.70335C12.5443 4.09941 11.4571 4.09905 10.6799 4.70339Z",fill:"#3E3F58"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2373 13.1626C12.5546 12.4794 11.4466 12.4791 10.7629 13.1628C10.0793 13.8464 10.0793 14.9538 10.7629 15.6374C11.4465 16.321 12.5539 16.321 13.2375 15.6374C13.9211 14.9538 13.9211 13.8464 13.2375 13.1628L13.2373 13.1626ZM14.1567 12.2436C12.9661 11.0521 11.0348 11.0525 9.84366 12.2436C8.65237 13.4348 8.65237 15.3653 9.84366 16.5566C11.0349 17.7479 
3712.9654 17.7479 14.1567 16.5566C15.348 15.3653 15.348 13.4348 14.1567 12.2436Z",fill:"#3E3F58"})):a.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.58691 5.59863L8.58691 1.62305C8.83594 1.45898 9.16406 1.45898 9.41309 1.62305L15.4131 5.59863C15.624 5.73926 15.75 5.97363 15.75 6.22559V14.25C15.75 15.0791 15.0791 15.75 14.25 15.75H3.75C2.9209 15.75 2.25 15.0791 2.25 14.25V6.22559C2.25 5.97363 2.37598 5.73926 2.58691 5.59863ZM5.5017 11.7602C5.1717 11.5108 5.17316 11.0321 5.46521 10.7391C5.75775 10.4456 6.24936 10.4292 6.5986 10.6522C7.17818 11.0223 8.12516 11.4889 9.21628 11.4889C10.3074 11.4889 11.2543 11.0223 11.8339 10.6522C12.1832 10.4292 12.6748 10.4456 12.9673 10.7391C13.2594 11.0321 13.2608 11.5108 12.9308 11.7602C11.8743 12.5589 10.535 12.9889 9.21628 12.9889C7.89758 12.9889 6.55824 12.5589 5.5017 11.7602Z",fill:"#595959"})))))),a.createElement(Carousel.Slide,null),a.createElement(Carousel.Slide,null,a.createElement(g.O,{styles:{separator:{marginInline:4}},separator:a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},a.createElement("path",{d:"M8.71527 7.99969L6.16794 5.45236C5.89194 5.17636 5.89194 4.72836 6.16794 4.45236C6.44394 4.17636 6.89194 4.17636 7.16794 4.45236L10.2439 7.52836C10.5046 7.78903 10.5046 8.21103 10.2439 8.47103L7.16794 11.547C6.89194 11.823 6.44394 11.823 6.16794 11.547C5.89194 11.271 5.89194 10.823 6.16794 10.547L8.71527 7.99969Z",fill:"#8C8C8C"}))},n)))};Breadcrumbs.Item=BreadcrumbItem;var ec=(0,i.k)((e,{variantStyle:t})=>{let n=t===V.C.LEADGEN,l={fontSize:(0,o.h)(15),lineHeight:(0,o.h)(24),letterSpacing:"-0.3px"};return{input:Object.assign({padding:"12px 16px",background:"#ffffff",border:`1px solid ${e.colors.gray[2]}`,borderRadius:4},n&&Object.assign(Object.assign({borderRadius:8},l),{color:"#111111","&::placeholder":Object.assign(Object.assign({},l),{fontSize:(0,o.h)(15),lineHeight:(0,o.h)(24),letterSpacing:"-0.3px",color:e.colors.gray[4]})}))}});let es=(0,z.Z)(E.U)`
38  .mantine-Accordion-label {
39    padding: 0;
40  }
41  .mantine-Accordion-control {
42    &:hover {
43      background-color: transparent;
44    }
45  }
46  .mantine-Accordion-item {
47    .mantine-Accordion-chevron {
48      > div {
49        background-repeat: no-repeat;
50        width: 16px;
51        height: 16px;
52        background-position: center;
53        background-image: url(${e=>e.closeChevron||_.C.getAssetPath("plus-icon.svg")});
54      }
55    }
56    &[data-active='true'] {
57      .mantine-Accordion-chevron {
58        > div {
59          background-image: url(${e=>e.openChevron||_.C.getAssetPath("minus-icon.svg")});
60        }
61      }
62    }
63  }
64  .mantine-Accordion-panel {
65    border-radius: ${U.r.borderRadius};
66  }
67  .mantine-Accordion-content {
68    white-space: pre-wrap;
69  }
70`,Accordion=e=>{var{children:t}=e,n=(0,l.a)(e,["children"]);return a.createElement(es,Object.assign({chevron:a.createElement("div",null),disableChevronRotation:!0,transitionDuration:300},n),t)};Accordion.Control=E.U.Control,Accordion.Item=E.U.Item,Accordion.Panel=E.U.Panel;let eu=_.C.getAssetPath("avatar.jpg"),Avatar=e=>{var{withIndicator:t=!1,indicatorConfig:n=null,size:r=56,children:i,styles:o,placeholderText:c}=e,s=(0,l.a)(e,["withIndicator","indicatorConfig","size","children","styles","placeholderText"]);let generateAvatar=()=>a.createElement(C.q,Object.assign({size:r,radius:"xl"},s,{imageProps:Object.assign({loading:"lazy"},s.imageProps),styles:{placeholder:{backgroundColor:s.color,color:"white"}}}),i||c||a.createElement(Z.I,{src:eu,width:r,alt:s.alt||"avatar"}));return t?a.createElement(b.z,Object.assign({inline:!0,position:"bottom-end",offset:9},n,{styles:Object.assign({indicator:{backgroundColor:a.isValidElement(n.label)&&"transparent",zIndex:1}},o)}),generateAvatar()):generateAvatar()},ed={lg:{height:48,fontSize:(0,o.h)(16),lineHeight:"24px"},md:{height:40,fontSize:(0,o.h)(14),lineHeight:"22px"},sm:{height:32,fontSize:(0,o.h)(14),lineHeight:"22px"},xs:{height:32,fontSize:(0,o.h)(13),lineHeight:(0,o.h)(20),letterSpacing:"-0.3px"}};var em=(0,i.k)((e,{variantStyle:t,size:n})=>{let l=t===V.C.LEADGEN,a=ed[n]||{},r=l?"sm"===n?{height:36,fontSize:(0,o.h)(13),letterSpacing:"-0.3px"}:{fontSize:(0,o.h)(15),letterSpacing:"-0.3px"}:{};return{input:{border:`1px solid ${e.colors.gray[2]}`,transition:`all ${W.A} ease-in-out`,"&:not(.mantine-Textarea-input)":Object.assign(Object.assign({minHeight:"unset"},a),r),"&:hover":{border:`1px solid ${e.fn.primaryColor()}`},"&:focus":{boxShadow:`0px 0px 0px 2px ${e.colors[e.primaryColor][2]}`},'&[data-invalid="true"]':{border:`1px solid ${e.colors.red600}`,color:"#000"}},rightSection:Object.assign({color:e.colors.gray[4]},(()=>{switch(n){case"lg":return Object.assign({fontSize:(0,o.h)(16)},l&&{fontSize:(0,o.h)(15)});case"md":return Object.assign({fontSize:(0,o.h)(14)},l&&{fontSize:(0,o.h)(15),letterSpacing:"-0.3px"});
70case"sm":return Object.assign({height:32,fontSize:(0,o.h)(14),lineHeight:"22px"},l&&{height:36,fontSize:(0,o.h)(13),letterSpacing:"-0.3px"});case"xs":return{height:32,lineHeight:(0,o.h)(20),fontSize:(0,o.h)(13),letterSpacing:"-0.3px"}}})())}});let ep=300,eh=(0,v.Z)({key:"mantine",prepend:!1}),NumberInput=e=>{var{value:t,onChange:n,size:r="md",styles:i,classNames:o}=e,c=(0,l.a)(e,["value","onChange","size","styles","classNames"]);let[s,u]=(0,a.useState)(t),[d]=(0,M.c)(s,ep),m=(0,V.u)(),{classes:p}=em({variantStyle:m,size:r},{name:"MantineInput",styles:i,classNames:o});return(0,a.useEffect)(()=>{null==n||n(d)},[d]),(0,a.useEffect)(()=>{u(t)},[t]),a.createElement(w.Y,Object.assign({stepHoldDelay:500,stepHoldInterval:e=>Math.max(1e3/Math.pow(e,2),25),onChange:u,hideControls:!0,min:0,formatter:e=>0===Number(e)?e:e||"",removeTrailingZeros:!0,value:s},c,{size:r,classNames:{input:p.input,rightSection:p.rightSection}}))},eg=_.C.getAssetPath("EyeVisible.svg"),eE=_.C.getAssetPath("EyeHidden.svg"),RenderVisibleToggleIcon=({reveal:e,size:t})=>a.createElement("img",{src:e?eg:eE,style:{width:t,height:t},loading:"lazy"}),eC=(0,a.forwardRef)((e,t)=>{let{size:n="md",visibilityToggleIcon:r}=e,i=(0,l.a)(e,["size","visibilityToggleIcon"]);return a.createElement(y.W,Object.assign({ref:t,size:n,visibilityToggleIcon:r||RenderVisibleToggleIcon},i,{className:`input-control ${(null==i?void 0:i.className)||""}`}))}),ErrorIcon=e=>{var{size:t}=e,n=(0,l.a)(e,["size"]);let r=Object.assign({width:t,height:t},n);return a.createElement("svg",Object.assign({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),a.createElement("path",{d:"M5.996 6.513q.163 0 .282-.12a.38.38 0 0 0 .118-.28V3.937q0-.15-.118-.268a.4.4 0 0 0-.282-.119.4.4 0 0 0-.281.12.38.38 0 0 0-.119.28v2.175q0 .15.119.269.12.119.281.119m0 1.862a.43.43 0 0 0 .3-.112.4.4 0 0 0 .125-.313.4.4 0 0 0-.125-.3.4.4 0 0 0-.3-.125.4.4 0 0 0-.3.125.4.4 0 0 0-.125.3.4.4 0 0 0 .125.313.43.43 0 0 0 .3.112m0 2.375a4.6 4.6 0 0 1-1.856-.375 4.8 4.8 0 0 1-1.506-1.012A4.8 4.8 0 0 1 1.62 7.857 4.6 4.6 0 0 1 1.246 6q0-.987.375-1.856t1.013-1.506A4.8 4.8 0 0 1 4.14 1.625a4.6 4.6 0 0 1 1.856-.375q.988 0 1.857.375Q8.72 2 9.359 2.638q.637.637 1.012 1.506T10.747 6t-.375 1.857A4.8 4.8 0 0 1 9.36 9.363a4.8 4.8 0 0 1-1.506 1.012q-.87.375-1.857.375",fill:"#F44D2C"}))};ErrorIcon.defaultProps={size:18,color:U.r.colors.gray600,activeColor:U.r.colors.primaryBase};let ErrorLabel=e=>{var{label:t,withIcon:n,textProps:r}=e,i=(0,l.a)(e,["label","withIcon","textProps"]);return a.createElement(L.k,Object.assign({align:"center",gap:4},i),n&&a.createElement(ErrorIcon,{size:12}),a.createElement(N.T,Object.assign({size:"c1",variant:"error",dangerouslySetInnerHTML:{__html:t}},r)))},eb=(0,a.createContext)({}),ef=X.iv`
71  height: 100% !important;
72  min-height: calc(var(--container-height, 56px) * 24 / 56);
73  line-height: calc(var(--container-height, 56px) * 24 / 56);
74  border: none !important;
75  border-radius: 0 !important;
76  outline: none !important;
77  box-shadow: none !important;
78  padding: 0;
79  cursor: pointer;
80  opacity: 0;
81
82  ::placeholder {
83    color: ${U.r.colors.gray400};
84  }
85`,ev=X.iv`
86  height: auto !important;
87  cursor: text;
88  opacity: 1;
89  transition: 0.1s ease-in-out all;
90`,ew=X.iv`
91  position: absolute;
92  top: calc(var(--container-height) / 2);
93  left: var(--space-x, 16px);
94  margin: 0;
95  z-index: 1;
96  cursor: pointer;
97  transform: translateY(-50%);
98  transition: 0.125s ease-in all;
99`,ey=X.iv`
100  top: var(--space-y-shrink, 6px);
101  transform: none;
102  transition: 0.125s ease-out all;
103`,eL=X.iv`
104  min-height: var(--container-height, 56px);
105  display: flex;
106  align-items: flex-end;
107  border: 1px solid ${U.r.colors.gray200};
108  border-radius: 8px;
109  background-color: #fff;
110  padding-inline: var(--space-x, 16px);
111  padding-block: var(--space-y-not-shrink, 16px);
112  cursor: pointer;
113  pointer-events: none;
114
115  &:has(.mantine-Input-rightSection) {
116    padding-right: var(--container-height, 56px);
117  }
118
119  .mantine-Input-icon {
120    display: none;
121  }
122
123  .mantine-NumberInput-control {
124    border-color: ${U.r.colors.gray200};
125  }
126`,ex=X.iv`
127  height: auto;
128  min-height: var(--container-height, 56px);
129  padding-block: var(--space-y-shrink, 6px);
130  cursor: text;
131  pointer-events: auto;
132`,eS=X.iv`
133  color: ${U.r.colors.red800};
134  font-size: 12px;
135  line-height: 1.5;
136`,eI=z.Z.div`
137  --space-x: 16px;
138  --space-y-not-shrink: 15px;
139  --space-y-shrink: 6px;
140  --container-height: 56px;
141  --label-not-shrink: 16px;
142  --label-shrink: 12px;
143  --input: 15px;
144
145  position: relative;
146  min-width: 100px;
147  max-width: 100%;
148  display: inline-block;
149
150  .textField_wrapper {
151    display: inline-block;
152    width: 100%;
153    cursor: pointer;
154  }
155
156  .mantine-InputWrapper-root {
157    &[data-invalid='true'] {
158      .mantine-Input-wrapper {
159        border-color: ${U.r.colors.red400};
160      }
161    }
162
163    .mantine-Input-wrapper {
164      &:has([data-invalid]) {
165        border-color: ${U.r.colors.red400};
166      }
167    }
168  }
169
170  .mantine-InputWrapper-label {
171    ${ew}
172  }
173
174  .mantine-Input-wrapper {
175    ${eL}
176
177    + .mantine-Popover-dropdown[data-position="bottom-start"] {
178      left: 0 !important;
179    }
180    + .mantine-Popover-dropdown[data-position='top-start'] {
181      top: unset !important;
182      left: 0 !important;
183      bottom: 100% !important;
184    }
185  }
186
187  .mantine-Input-input {
188    ${ef}
189  }
190
191  &.textField_shrink {
192    .mantine-InputWrapper-label {
193      ${ey}
194    }
195
196    .mantine-Input-wrapper {
197      ${ex}
197
198      &.mantine-Select-wrapper {
199        .mantine-Select-rightSection {
200          pointer-events: auto !important;
201        }
202      }
203    }
204
205    .mantine-Input-input {
206      ${ev}
207    }
208
209    &:has(.PhoneInput) {
210      .mantine-InputWrapper-label {
211        left: var(--space-x, 16px);
212      }
213      .PhoneInput {
214        .PhoneInputInput {
215          opacity: 1;
216        }
217      }
218    }
219  }
220
221  &:focus-within {
222    .mantine-Input-wrapper {
223      transition: 0.25s linear border;
224      border-color: ${U.r.colors.primary600};
225      box-shadow: 0 0 4px ${U.r.colors.primary200};
226    }
227  }
228
229  .PhoneInput {
230    --phone-select: 75px;
231    --phone-input-space-x: 8px;
232    width: 100%;
233    opacity: 1;
234    border: none;
235    .PhoneInputCountry {
236      background-color: transparent;
237      border: none;
238      padding: 0;
239      width: var(--phone-select, 75px);
240    }
241    .PhoneInputInput {
242      flex: 1;
243      min-width: 0;
244      line-height: 1.5;
245      outline: none !important;
246      border: none;
247      box-shadow: none;
248      font-size: var(--input, 15px);
249      padding: 0 var(--phone-input-space-x, 8px);
250      opacity: 0;
251      color: ${U.r.colors.gray800} !important;
252      :focus {
253        color: ${U.r.colors.gray800} !important;
254      }
255    }
256  }
257
258  &:has(.PhoneInput) {
259    .mantine-InputWrapper-label {
260      left: calc(
261        var(--space-x, 16px) + var(--phone-select, 75px) +
262          var(--phone-input-space-x, 8px)
263      );
264    }
265  }
266
267  .icon {
268    position: absolute;
269    top: calc(var(--container-height) / 2);
270    right: var(--space-x, 16px);
271    transform: translateY(-50%);
272    transition: 0.125s ease-in all;
273    &.shrink {
274      top: calc(var(--container-height) / 2 - 4px);
275      transform: translateY(0);
276    }
277  }
278`;z.Z.div`
279  &.leadgen-form_checkbox,
280  &.leadgen-form_radio {
281    width: 100%;
282  }
283
284  &.leadgen-form_dropdown {
285    width: calc(50% - 12px);
286  }
287
288  .mantine-InputWrapper-root {
289    display: block;
290  }
291
292  .mantine-InputWrapper-label {
293    margin-bottom: 0.5rem;
294    color: ${U.r.colors.gray800};
295    font-size: 16px;
296    font-weight: 400;
297    line-height: 1.5;
298  }
299
300  .mantine-Radio-root,
301  .mantine-Checkbox-root {
302    gap: 8px;
303    min-width: calc(50% - 4px);
304
305    // input[type='radio'],
306    // input[type='checkbox'] {
307    //   border-color: ${U.r.colors.gray600};
308    //   width: 18px;
309    //   height: 18px;
310    // }
311    // input[type='checkbox'] {
312    //   border-radius: 4px;
313    // }
314
315    // &[data-checked='true'] {
316    //   input[type='radio'],
317    //   input[type='checkbox'] {
318    //     border-color: ${U.r.colors.primary600};
319    //   }
320
321    //   input[type='radio'] {
322    //     background-color: white;
323    //   }
324    // }
325
326    .mantine-Checkbox-input {
327      &:checked {
328        border-color: ${U.r.colors.primary600};
329      }
330    }
331  }
332
333  .leadgen-choiceContainer {
334    display: flex;
335    flex-wrap: wrap;
336    align-items: flex-start;
337    gap: 8px;
338  }
339
340  .mantine-InputWrapper-error {
341    ${eS}
342  }
343`,z.Z.div`
344  position: absolute;
345  top: calc(var(--container-height) / 2);
346  right: var(--space-x, 16px);
347`;let FloatingLabelControl=e=>{let{shrink:t,onChangeShrink:n,children:r,className:i}=e,o=(0,l.a)(e,["shrink","onChangeShrink","children","className"]),[c,s]=(0,a.useState)(t),[u,d]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{s(t)},[t]),a.createElement(eb.Provider,Object.assign({value:{shrinkProps:t,shrink:c,setShrink:s,onChangeShrink:n,hasIcon:u,setHasIcon:d}},o),a.createElement(eI,Object.assign({shrink:c,className:(0,x.default)(i,"textField",{textField_shrink:!!c})},o),r))};FloatingLabelControl.Control=e=>{let{shrink:t,shrinkProps:n,onChangeShrink:l,setShrink:r,hasIcon:i}=(0,a.useContext)(eb),{children:o}=e,c=(0,R.O)(()=>{n||(r(!1),null==l||l(!1))}),focusInput=e=>{let t=e.querySelectorAll('input:not([disabled]):not([type="submit"]),select:not([disabled]),textarea:not([disabled])'),n=t.item(t.length-1);n&&n.focus({preventScroll:!0})},s=(0,a.useCallback)(e=>{if(t){e.preventDefault(),focusInput(e.currentTarget);return}r(!0),null==l||l(!0),focusInput(e.currentTarget)},[t]);return(0,a.useEffect)(()=>{r(n)},[n]),a.createElement(h.x,{ref:c,onClick:s,className:"FloatingLabelControl_wrapper"},"function"==typeof o?o({shrink:!!t,hasIcon:i}):o)},FloatingLabelControl.Icon=({Icon:e})=>{let{shrink:t,setHasIcon:n}=(0,a.useContext)(eb),l=(0,p.rZ)();return(0,a.useEffect)(()=>{e&&n(!0)},[]),e?a.createElement(e,{className:`icon ${t?"shrink":""}`,shrink:t,size:24,color:l.colors.gray[9]}):null};let eO=(0,a.forwardRef)((e,t)=>{var{label:n,value:r,onChange:i,onChangeRaw:o,maxLength:c,withFloatingLabel:s,styles:u,error:d,size:m="md",debouncedTime:p=ep}=e,h=(0,l.a)(e,["label","value","onChange","onChangeRaw","maxLength","withFloatingLabel","styles","error","size","debouncedTime"]);let g=(0,V.u)(),{classes:E}=em({variantStyle:g,size:m},{name:"MantineInput",styles:u}),[C,b]=(0,a.useState)(r||""),[f]=(0,M.c)(C,p);(0,a.useEffect)(()=>{null==i||i(f)},[f]),(0,a.useEffect)(()=>{b(r)},[r]);let v=Object.assign(Object.assign({classNames:{input:E.input,rightSection:E.rightSection},ref:t,size:m,onChange:e=>{"number"==typeof c&&e.currentTarget.value.length>c||(null==o||o(e),b(e.currentTarget.value))},value:C,label:n,error:d},h),{maxLength:c,className:`input-control ${(null==h?void 0:h.className)||""}`});return s?a.createElement(FloatingLabelControl,{shrink:!!C},a.createElement(FloatingLabelControl.Control,null,({shrink:e})=>a.createElement(S.o,Object.assign({},v,{error:d&&a.createElement(ErrorLabel,{label:String(d)}),inputWrapperOrder:["label","input","description","error"],label:a.createElement(N.T,{size:e?"p3":"p2",variant:"secondary",weight:"halfBold"},n),styles:e=>({input:Object.assign(Object.assign({},(0,V.G)(e)[V.C.LEADGEN].p2),{color:e.colors.gray[9],fontWeight:V.F.halfBold}
347)})})))):a.createElement(S.o,Object.assign({},v))}),ek=eO;ek.File=e=>a.createElement(f.S,Object.assign({size:"md"},e)),ek.Password=eC,ek.Number=NumberInput,ek.Wrapper=I.I.Wrapper;let eD=A.l.Slide,eP=(0,a.createContext)({}),findIndexFromLeftSide=(e,t)=>e>=t?e-t:e,findIndexFromRight=(e,t)=>e<0?t+e:e,CentralCarousel=e=>{var{children:t,blurFromCenter:n,blurFromIndex:r,blurLength:o=3,maxBlurOpacity:c=.5,onSlideChange:s,selectSlideWhenClick:u}=e,d=(0,l.a)(e,["children","blurFromCenter","blurFromIndex","blurLength","maxBlurOpacity","onSlideChange","selectSlideWhenClick"]);let{width:m}=(0,H.n)(),[p]=(0,T.y)(),h=(0,a.useRef)(null),[g,E]=(0,a.useState)(0),handleStyle=()=>{var e,t,l,a,i;let s=(null===(e=null==h?void 0:h.current)||void 0===e?void 0:e.slideNodes())||[];if((null===(t=null==h?void 0:h.current)||void 0===t?void 0:t.slideNodes().length)<=(null===(l=null==h?void 0:h.current)||void 0===l?void 0:l.slidesInView().length))return s.map(e=>{e.classList.remove("center-slide"),e.style.opacity="1"}),!1;let u=null===(a=null==h?void 0:h.current)||void 0===a?void 0:a.selectedScrollSnap();E(u);let d=s.length,m=null===(i=null==h?void 0:h.current)||void 0===i?void 0:i.slidesInView(),p=m.length,g=n?r+o-1:Math.floor(p/2),C=u+g,b=C===d?0:C>d?C-d:C,f=u-g,v=f<0?d+f:f>0?u-g:0,w=[...new Set(Array(2*g+1).fill("").map((e,t)=>findIndexFromLeftSide(v+t,d)))];s.map((e,t)=>{if(t===u?e.classList.add("center-slide"):e.classList.remove("center-slide"),-1!==w.indexOf(t)){let n=c/o;for(let l=0;l<o;l++){if(t===findIndexFromLeftSide(v+l,d)||t===findIndexFromRight(b-l,d)){e.style.opacity=String((l+1)*n);break}e.style.opacity="1"}}else e.style.opacity="0"})};(0,a.useEffect)(()=>{(null==h?void 0:h.current)&&handleStyle()},[m]);let C=(0,i.k)(()=>{var e,t;return{control:Object.assign({},(null===(e=null==h?void 0:h.current)||void 0===e?void 0:e.slideNodes().length)<=(null===(t=null==h?void 0:h.current)||void 0===t?void 0:t.slidesInView().length)&&{display:"none"})}}),{classes:b}=C();return a.createElement(eP.Provider,{value:{slider:null==h?void 0:h.current,centerSlide:g,selectSlideWhenClick:u}},a.createElement(A.l,Object.assign({classNames:{control:b.control},ref:p,slideSize:"auto",containScroll:"trimSnaps"},{getEmblaApi:e=>{h.current=e},onSlideChange:e=>{handleStyle(),null==s||s(e)}},d,{loop:!0}),"function"==typeof t?t(g):t))};CentralCarousel.Slide=e=>{var{children:t,onClick:n,innerSlideProps:r}=e,i=(0,l.a)(e,["children","onClick","innerSlideProps"]);let{slider:o,selectSlideWhenClick:c}=(0,a.useContext)(eP),s=(0,a.useRef)(),u=(0,a.useRef)(""),[d,m]=(0,a.useState)(0);(0,a.useEffect)(()=>{u.current=String(Math.round(1e4*Math.random()))},[]),(0,a.useEffect)(()=>{let e=(null==o?void 0:o.slideNodes())||[];m(e.findIndex(e=>e.dataset.key===u.current))},[o]);let p={ref:s,"data-key":u.current,"data-index":d};return a.createElement(eD,Object.assign({},p,i),a.createElement("div",Object.assign({style:{height:"100%"},onClick:()=>{c&&(null==o||o.scrollTo(d)),null==n||n(d)}},r),t))};let CheckboxWithState=e=>{var{size:t=24,isSolid:n,isActive:r}=e,i=(0,l.a)(e,["size","isSolid","isActive"]);return n?a.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),a.createElement("path",{d:"M10 18C14.4183 18 18 14.4183 18 10C18 5.58173 14.4183 2 10 2C5.58173 2 2 5.58173 2 10C2 14.4183 5.58173 18 10 18Z",fill:"#2D87F3"}),a.createElement("path",{d:"M6.38904 10.2778L8.88904 13.0556L13.6113 6.94446",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M10 18C14.4183 18 18 14.4183 18 10C18 5.58173 14.4183 2 10 2C5.58173 2 2 5.58173 2 10C2 14.4183 5.58173 18 10 18Z",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})):r?a.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),a.createElement("path",{opacity:".2",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16",fill:"#2D87F3"}),a.createElement("path",{d:"m6.389 10.278 2.5 2.778 4.722-6.111",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})):a.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),a.createElement("path",{d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16",fill:"#ADB3BC",fillOpacity:".3"}),a.createElement("path",{d:"m6.389 10.278 2.5 2.778 4.722-6.111",stroke:"#ADB3BC",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16",stroke:"#ADB3BC",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))},Checkbox=e=>{var{color:t="blue",label:n,size:r,styles:i}=e,o=(0,l.a)(e,["color","label","size","styles"]);let c=(0,p.rZ)(),s=(0,V.u)(),u=(0,a.useMemo)(()=>{var e,n;return((null==t?void 0:t.includes("."))?null===(e=c.colors[t.split(".")[0]])||void 0===e?void 0:e[t.split(".")[1]]:null===(n=c.colors[t])||void 0===n?void 0:n[c.primaryShade||6])||c.colors.blue[6]},[t]),d=s===V.C.LEADGEN,m=d?20:r;return a.createElement(O.X,Object.assign({color:t,size:m,label:d?a.createElement(N.T,{size:"p2",color:c.colors.gray[8]},n):n,icon:d?e=>{var t=(0,l.a)(e,[]);return a.createElement(a.Fragment,null,a.createElement(CheckboxWithState,Object.assign({"data-icon":"true","data-default":"true",size:m},t)),a.createElement(CheckboxWithState,Object.assign({"data-icon":"true","data-hover":"true",isActive:!0,size:m},t)),a.createElement(CheckboxWithState,Object.assign({"data-icon":"true","data-checked":"true",isSolid:!0,size:m},t)))}:void 0,styles:Object.assign({input:Object.assign({"&:hover":{border:`1px solid ${u}`}},d&&{width:m,height:m,backgroundColor:"transparent",borderRadius:"50%","&,&:hover":{border:0},"& ~ [data-icon]":{opacity:0}
347,"& ~ [data-default]":{opacity:1},"&:hover":{"& ~ [data-icon]":{opacity:0},"& ~ [data-hover]":{opacity:1}},"&:checked":{"& ~ [data-icon]":{opacity:0},"& ~ [data-checked]":{opacity:1},"&:hover":{"& ~ [data-icon]":{opacity:0},"& ~ [data-checked]":{opacity:1}}},"&, &:hover, &:checked":{backgroundColor:"transparent",borderColor:"transparent","& ~ svg":{width:"100%",transform:"none",transition:"opacity 0.2s ease"}},[c.fn.smallerThan("sm")]:{"&:hover":{"& ~ [data-icon]":{opacity:0},"& ~ [data-default]":{opacity:1}}}}),label:Object.assign({},d&&{paddingLeft:8}),body:Object.assign({},d&&{alignItems:"flex-start"}),inner:Object.assign({},d&&{paddingTop:2,width:m,height:24})},i)},o))};Checkbox.Group=O.X.Group;let eF=(0,z.Z)(k.i)`
348  ${e=>{let t=e.color||U.r.colors.primaryBase;return`
349      .mantine-Slider-bar {
350        background-color: ${t};
351      }
352      .mantine-Slider-thumb {
353        border-color: ${t};
354        color: ${t};
355      }
356    `}}
357  [data-theme='marryBaby'] & {
358    ${e=>{let t=e.color||U.r.mbColors.pink;return`
359        .mantine-Slider-bar {
360          background-color: ${t};
361        }
362        .mantine-Slider-thumb {
363          border-color: ${t};
364          color: ${t};
365        }
366      `}}
367  }
368
369  .mantine-Slider-label {
370    background-color: transparent;
371    color: #000;
372    font-size: 14px;
373    font-weight: bold;
374  }
375`,ej=z.Z.div`
376  display: flex;
377  align-items: center;
378  .hhg-mantine-slider {
379    flex-grow: 1;
380  }
381  button {
382    path:not([stroke]) {
383      stroke: ${U.r.colors.primaryBase};
384    }
385  }
386  [data-theme='marryBaby'] & {
387    button {
388      path:not([stroke]) {
389        stroke: ${U.r.mbColors.pink};
390      }
391    }
392  }
393`,RadioWithState=e=>{var{size:t=24,isSolid:n,isActive:r}=e,i=(0,l.a)(e,["size","isSolid","isActive"]);return n?a.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),a.createElement("path",{d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("circle",{cx:"10",cy:"10",r:"4",fill:"#2D87F3"})):r?a.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),a.createElement("path",{d:"M10 1a9 9 0 1 1 0 18 9 9 0 0 1 0-18",stroke:"#BCDEFF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})):a.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),a.createElement("path",{d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16",stroke:"#ADB3BC",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))},Radio=e=>{var{color:t,label:n,size:r,styles:i}=e,o=(0,l.a)(e,["color","label","size","styles"]);let c=(0,p.rZ)(),s=(0,V.u)(),u=(0,a.useMemo)(()=>{var e,n;return((null==t?void 0:t.includes("."))?null===(e=c.colors[t.split(".")[0]])||void 0===e?void 0:e[t.split(".")[1]]:null===(n=c.colors[t])||void 0===n?void 0:n[c.primaryShade||6])||c.fn.primaryColor()},[t]),d=s===V.C.LEADGEN,m=d?20:r;return a.createElement(D.Y,Object.assign({label:d?a.createElement(N.T,{size:"p2",color:c.colors.gray[8]},n):n,size:m,icon:d?e=>{var t=(0,l.a)(e,[]);return a.createElement(a.Fragment,null,a.createElement(RadioWithState,Object.assign({"data-icon":"true","data-default":"true",size:m},t)),a.createElement(RadioWithState,Object.assign({"data-icon":"true","data-hover":"true",isActive:!0,size:m},t)),a.createElement(RadioWithState,Object.assign({"data-icon":"true","data-checked":"true",isSolid:!0,size:m},t)))}:void 0,styles:Object.assign({radio:Object.assign({"&:hover, &:checked":{border:`1px solid ${u}`},"&:checked + .___ref-icon":{top:"50%",left:"50%",transform:"scale(1) translate(-50%, -50%)"}},d&&{width:m,height:m,backgroundColor:"transparent",marginTop:2,borderRadius:"50%","&,&:hover":{border:0},"& ~ [data-icon]":{opacity:0},"& ~ [data-default]":{opacity:1},"&:hover":{"& ~ [data-icon]":{opacity:0},"& ~ [data-hover]":{opacity:1}},"&:checked":{"& ~ [data-icon]":{opacity:0}
393,"& ~ [data-checked]":{opacity:1},"&:hover":{"& ~ [data-icon]":{opacity:0},"& ~ [data-checked]":{opacity:1}}},"&, &:hover, &:checked":{backgroundColor:"transparent",borderColor:"transparent","& ~ svg":{position:"absolute",width:"100%",transform:"none",transition:"opacity 0.2s ease",top:2,left:0}},[c.fn.smallerThan("sm")]:{"&:hover":{"& ~ [data-icon]":{opacity:0},"& ~ [data-default]":{opacity:1}}}}),icon:{color:u},label:Object.assign({},d&&{paddingLeft:8})},i)},o))};function transferValueToOtp(e,t=6){let n=Array(t).fill("");if(e){let t=e.toString().split("");n.map((e,l)=>{t[l]&&(n[l]=t[l]||"")})}return n}function transferOtpToValue(e){return e.join("")}Radio.Group=D.Y.Group;let eM=(0,a.forwardRef)((e,t)=>{let{maxLength:n=1,placeholder:r,className:i}=e,o=(0,l.a)(e,["maxLength","placeholder","className"]);return a.createElement("input",Object.assign({maxLength:n,className:G()("Ia6IojY","otpInput",i),placeholder:r,type:"number"},o,{ref:t}))}),eR=(0,a.forwardRef)((e,t)=>{let{valueLength:n=6,type:l="number",value:r,defaultValue:i,placeholder:o,onChange:c,onBlur:s,otpShareProps:u}=e,d=(0,a.useRef)(Array(n).fill(null)),[m,p]=(0,a.useState)(i||r),[h,g]=(0,a.useState)(-1),[E,C]=(0,a.useState)(()=>transferValueToOtp(m,n)),b=(0,a.useCallback)(()=>{if(-1===h)return;let e=d.current[h];e&&(e.value="",E[h]="",C(E),p(()=>transferOtpToValue(E)),null==c||c(transferOtpToValue(E)))},[h,c,E]),f=(0,a.useCallback)(()=>{if(0===h)return;let e=d.current[h];e&&e.blur();let t=d.current[h-1];t&&t.focus()},[h]),v=(0,a.useCallback)(()=>{if(h===n-1)return;let e=d.current[h];e&&e.blur();let t=d.current[h+1];t&&t.focus()},[h,n]),w=(0,a.useCallback)(e=>{let t=e.target,n=t.value,l=n.toString().slice(0,1),a=d.current.findIndex(e=>e===t);-1!==a&&(E[a]=l,C(E),p(()=>transferOtpToValue(E)),null==c||c(transferOtpToValue(E))),v()},[v,c,E]),y=(0,a.useCallback)(e=>{let t=e.target,n=d.current.findIndex(e=>e===t);"number"===l?t.select():t.setSelectionRange(0,t.value.length,"backward"),-1!==n&&g(n)},[]),x=(0,a.useCallback)(e=>{let t=e.clipboardData.getData("text/plain"),l=transferValueToOtp(t,n),a=transferOtpToValue(l);C(l),p(a),null==c||c(a)},[c,l,n]),S=(0,a.useCallback)(e=>{8===e.keyCode||"Backspace"===e.key?(e.preventDefault(),b(),f()):46===e.keyCode||"Delete"===e.key?(e.preventDefault(),b()):37===e.keyCode||"ArrowLeft"===e.key?(e.preventDefault(),f()):39===e.keyCode||"ArrowRight"===e.key?(e.preventDefault(),v()):(32===e.keyCode||" "===e.key||"Spacebar"===e.key||"Space"===e.key)&&e.preventDefault()},[b,v,f]);return(0,a.useImperativeHandle)(t,()=>d.current[0],[]),(0,a.useEffect)(()=>{C(()=>transferValueToOtp(r,n)),p(r)},[n,r]),a.createElement(L.k,{justify:"center",columnGap:8,className:G()("_2iQs0sk","otpContainer")},E.map((e,t)=>a.createElement(eM,Object.assign({},u,{ref:e=>{d.current[t]=e},key:""+t,value:e,type:l,onChange:w,onFocus:y,onKeyDown:S,onPaste:x,onBlur:s,placeholder:o}))))}),CambodiaRoundIcon=e=>a.createElement(Z.I,Object.assign({alt:"round cambodia flag",src:_.C.getAssetPath("flags/cambodiaRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),CambodiaSquareIcon=e=>a.createElement(Z.I,Object.assign({alt:"square cambodia flag",src:_.C.getAssetPath("flags/cambodiaSquare.png")},e)),EnglishRoundIcon=e=>a.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",style:Object.assign({borderRadius:"50%"},e.style)},e),a.createElement("g",null,a.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},a.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),a.createElement("path",{d:"M7.49953 0.327881C5.47199 0.850891 3.69346 1.98591 2.37793 3.53444L7.49953 6.6655V0.327881Z",fill:"#3F51B5"}),a.createElement("path",{d:"M2.30273 16.3824C3.62476 17.9749 5.4353 19.1399 7.50034 19.6729V13.2053L2.30273 16.3824Z",fill:"#3F51B5"}),a.createElement("path",{d:"M0.328125 12.5C0.334625 12.526 0.341125 12.5515 0.348125 12.5775L0.474128 12.5H0.328125Z",fill:"white"}),a.createElement("path",{d:"M17.7871 3.73445C16.4571 2.08391 14.6131 0.872891 12.499 0.327881V6.96651L17.7871 3.73445Z",fill:"#3F51B5"}),a.createElement("path",{d:"M12.499 19.6722C14.6506 19.1172 16.5196 17.8707 17.8546 16.1752L12.499 12.9021V19.6722Z",fill:"#3F51B5"}),a.createElement("path",{d:"M0.376626 7.31055C0.359125 7.37305 0.344125 7.43705 0.328125 7.50005H0.686632L0.376626 7.31055Z",fill:"white"}),a.createElement("path",{d:"M19.8745 8.50006C19.827 8.18506 19.7655 7.87555 19.6895 7.57104L18.1699 8.50006H19.8745Z",fill:"white"}),a.createElement("path",{d:"M0.686034 7.50024H0.327527C0.243026 7.82775 0.175524 8.16076 0.124023 8.50026H2.32207L0.686034 7.50024Z",fill:"white"}),a.createElement("path",{d:"M19.7197 12.3148C19.7832 12.0473 19.8337 11.7752 19.8752 11.5002H18.3867L19.7197 12.3148Z",fill:"white"}),a.createElement("path",{d:"M2.10956 11.5002H0.124023C0.175024 11.8398 0.243026 12.1728 0.327527 12.5003H0.47403L2.10956 11.5002Z",fill:"white"}),a.createElement("path",{d:"M8.50002 7.27665V0.124512C8.16051 0.175513 7.82751 0.243514 7.5 0.328016V6.66564L8.50002 7.27665Z",fill:"white"}),a.createElement("path",{d:"M11.5 12.2913V19.8759C11.8395 19.8249 12.1725 19.7569 12.5 19.6724V12.9023L11.5 12.2913Z",fill:"white"}),a.createElement("path",{d:"M7.5 13.205V19.6721C7.82751 19.7566 8.16051 19.8241 8.50002 19.8756V12.594L7.5 13.205Z",fill:"white"}),a.createElement("path",{d:"M11.5925 7.34715L11.7345 7.43415L12.5 6.96614V0.328016C12.1725 0.243514 11.8395 0.176013 11.5 0.124512V7.49865L11.5925 7.34715Z",fill:"white"}),a.createElement("path",{d:"M2.32251 8.50002H7.01761L8.50014 7.594V7.277L7.50011 6.66548L2.37852 3.53442C1.95151 4.03743 1.572 4.58144 1.24949 5.16296L5.02507 7.5H2.29701L0.650482 6.47648C0.54748 6.74949 0.455478 7.02699 0.375977 7.3105L0.686483 7.5L2.32251 8.50002Z",fill:"white"}),a.createElement("path",{d:"M11.7344 7.43419L13.4784 8.50021H18.171L19.6905 7.57119C19.528 6.92118 19.303 6.29767 19.02 5.70516L16.139 7.50019H13.4109L18.317 4.45013C18.1515 4.20313 17.9735 3.96562 17.7875 3.73462L12.4999 6.96618L11.7344 7.43419Z",fill:"white"}),a.createElement("path",{d:"M5.02448 7.50013L1.2494 5.16309C1.0169 5.58259 0.821394 6.0231 0.650391 6.47661L2.29642 7.50013H5.02448Z",fill:"#E53935"}),a.createElement("path",{d:"M16.1392 7.50024L19.0207 5.70521C18.8132 5.2702 18.5837 4.84819 18.3177 4.45068
393L13.4111 7.50024H16.1392Z",fill:"#E53935"}),a.createElement("path",{d:"M11.5 11.5002V12.2913L12.5 12.9023L17.8556 16.1758C18.2416 15.6853 18.5836 15.1593 18.8736 14.6008L15.4856 12.5003H18.2136L19.4432 13.2673C19.5507 12.9563 19.6432 12.6393 19.7197 12.3153L18.3871 11.5002H11.5Z",fill:"white"}),a.createElement("path",{d:"M13.4785 8.50019L11.7345 7.43417L11.5925 7.34717L11.5 7.49867V8.50019H13.4785Z",fill:"white"}),a.createElement("path",{d:"M8.49934 12.5943V11.5002H2.10921L0.473182 12.5003L0.34668 12.5778C0.522683 13.2383 0.762688 13.8713 1.06319 14.4708L4.16375 12.5003H6.89181L1.80071 15.7168C1.95971 15.9448 2.12471 16.1688 2.30172 16.3823L7.49932 13.2053L8.49934 12.5943Z",fill:"white"}),a.createElement("path",{d:"M7.01758 8.50026H8.50011V7.59424L7.01758 8.50026Z",fill:"white"}),a.createElement("path",{d:"M15.4854 12.5L18.8729 14.6C19.0949 14.173 19.2834 13.727 19.4429 13.2665L18.2134 12.5H15.4854Z",fill:"#E53935"}),a.createElement("path",{d:"M4.16501 12.5L1.06445 14.4705C1.28196 14.9045 1.52596 15.3216 1.80197 15.7166L6.89307 12.5H4.16501Z",fill:"#E53935"}),a.createElement("path",{d:"M13.4785 8.5H11.5V11.5001H18.3871H19.8757C19.9497 11.0095 20.0002 10.511 20.0002 10C20.0002 9.48902 19.9497 8.99051 19.8757 8.5H18.1711H13.4785Z",fill:"#E53935"}),a.createElement("path",{d:"M8.50017 11.5001V8.5H7.01764H2.32255H0.124502C0.050501 8.99051 0 9.48902 0 10C0 10.511 0.050501 11.0095 0.124502 11.5001H2.11004H8.50017Z",fill:"#E53935"}),a.createElement("path",{d:"M11.5001 19.8759V12.2912V11.5002V8.50016V7.49865V0.124502C11.0095 0.050501 10.511 0 10 0C9.48902 0 8.99051 0.050501 8.5 0.124502V7.27664V7.59365V8.50016V11.5002V12.5942V19.8759C8.99051 19.9499 9.48902 20.0004 10 20.0004C10.511 20.0004 11.0095 19.9499 11.5001 19.8759Z",fill:"#E53935"}))),EnglishSquareIcon=e=>a.createElement("svg",Object.assign({viewBox:"0 0 26 26",fill:"none"},e),a.createElement("g",null,a.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"5",width:"24",height:"16"},a.createElement("path",{d:"M1.08301 7.41675C1.08301 6.31218 1.97844 5.41675 3.08301 5.41675H22.9163C24.0209 5.41675 24.9163 6.31218 24.9163 7.41675V18.5834C24.9163 19.688 24.0209 20.5834 22.9163 20.5834H3.08301C1.97844 20.5834 1.08301 19.688 1.08301 18.5834V7.41675Z",fill:"#3F51B5"})),a.createElement("path",{d:"M1.08301 5.41675H24.9163V20.5834H1.08301V5.41675Z",fill:"#3F51B5"}),a.createElement("path",{d:"M1.08301 7.70041L12.3551 14.5899L14.05 11.8165L3.57901 5.41675H1.08301V7.70041Z",fill:"white"}),a.createElement("path",{d:"M24.9165 5.41675H22.9616L12.4912 11.816L14.1855 14.5899L24.9165 8.03083V5.41675Z",fill:"white"}),a.createElement("path",{d:"M14.1855 10.9802L12.4912 13.7536L23.6658 20.5834H24.9165V17.5387L14.1855 10.9802Z",fill:"white"}),a.createElement("path",{d:"M1.08301 17.8702V20.5834H2.87592L14.05 13.7541L12.3556 10.9802L1.08301 17.8702Z",fill:"white"}),a.createElement("path",{d:"M1.08301 10.8333H24.9163V15.1666H1.08301V10.8333Z",fill:"white"}),a.createElement("path",{d:"M10.833 5.41675H15.1663V20.5834H10.833V5.41675Z",fill:"white"}),a.createElement("path",{d:"M9.32609 10.8334L1.08301 5.79537V7.06504L7.24826 10.8334H9.32609ZM24.0004 5.41675L15.1376 10.8334H17.2149L24.9163 6.12687V5.41675H24.0004ZM17.9191 15.1667L24.9163 19.4432V18.1735L19.9964 15.1667H17.9191ZM8.62192 15.1667L1.08301 19.7742V20.5834H1.83701L10.6992 15.1667H8.62192ZM1.08301 11.9167H24.9163V14.0834H1.08301V11.9167Z",fill:"#E53935"}),a.createElement("path",{d:"M11.917 5.41675H14.0837V20.5834H11.917V5.41675Z",fill:"#E53935"}))),IndiaRoundIcon=e=>a.createElement(Z.I,Object.assign({alt:"round india flag",src:_.C.getAssetPath("flags/indiaRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),IndiaSquareIcon=e=>a.createElement(Z.I,Object.assign({alt:"square indian flag",src:_.C.getAssetPath("flags/indiaSquare.png")},e)),IndonesiaRoundIcon=e=>{var t=(0,l.a)(e,[]);let n=(0,Y.a)();return a.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none"},t),a.createElement("mask",{id:n,style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},a.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),a.createElement("g",{mask:`url(#${n})`},a.createElement("rect",{width:"20",height:"10",fill:"#CE1126"}),a.createElement("rect",{y:"10",width:"20",height:"10",fill:"white"})))},IndonesiaSquareIcon=e=>{var t=(0,l.a)(e,[]);let n=(0,Y.a)();return a.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none"},t),a.createElement("g",{clipPath:`url(#${n})`},a.createElement("rect",{y:"0.0166016",width:"24",height:"8",fill:"#CE1126"}),a.createElement("rect",{y:"8.0166",width:"24",height:"8",fill:"white"})),a.createElement("defs",null,a.createElement("clipPath",{id:n},a.createElement("rect",{width:"24",height:"16",rx:"2",fill:"white"}))))},MalaysiaRoundIcon=e=>a.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",style:Object.assign({borderRadius:"50%"},e.style)},e),a.createElement("g",null,a.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},a.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),a.createElement("rect",{y:"1",width:"20",height:"20",fill:"#CC0001"}),a.createElement("rect",{y:"16.106",width:"20",height:"1.02041",fill:"white"}),a.createElement("rect",{y:"16",width:"20",height:"1.02041",fill:"white"}),a.createElement("rect",{y:"18",width:"20",height:"1.02041",fill:"white"}),a.createElement("rect",{y:"14.0652",width:"20",height:"1.02041",fill:"white"}),a.createElement("rect",{y:"12.0242",width:"20",height:"1.02041",fill:"white"}),a.createElement("rect",{y:"9.9834",width:"20",height:"1.02041",fill:"white"}),a.createElement("rect",{y:"7.94263",width:"20",height:"1.02041",fill:"white"}),a.createElement("rect",{y:"5.90186",width:"20",height:"1.02041",fill:"white"}),a.createElement("rect",{y:"3.86084",width:"20",height:"1.02041",fill:"white"}),a.createElement("rect",{y:"2",width:"20",height:"1.02041",fill:"white"}),a.createElement("rect",{width:"20",height:"1.02041",fill:"white"}),a.createElement("rect",{y:"-1",width:"10",height:"12",fill:"#010066"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.11387 3.86084C2.92711 3.86084 1.96387 5.23232 1.96387 6.92206C1.96387 8.6118 2.92711 9.98329 4.11387 9.98329C4.54263 9.98329 4.94211 9.80406 5.27763 9.4957C5.08225 9.59203 4.87256 9.64471 4.65427 9.64471C3.60193 9.64471 2.74786 8.42866 2.74786 6.93032C2.74786 5.43198 3.60193 4.21594 4.65427 4.21594C4.88682 4.21594 5.10959 4.27527 5.31571 4.38397C4.97256 4.0538 4.5589 3.86084 4.11387 3.86084Z",fill:"#FFCC00"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.67935 8.51573L6.7737 7.8407L7.04147 9.22221L6.43573 8.06657L6.24676 9.47313L6.0609 8.06576L5.4526 9.2188L5.72343 7.83844L4.81629 8.50957L5.49017 7.42963L4.46387 7.48593L5.40732 6.9203L4.46512 6.35062L5.4913 6.41133L4.8198
3931 5.3285L5.72546 6.00353L5.45769 4.62202L6.06343 5.77766L6.25241 4.37109L6.43827 5.77847L7.04656 4.62543L6.77574 6.00579L7.68287 5.33466L7.00899 6.4146L8.0353 6.3583L7.09184 6.92392L8.03404 7.49361L7.00786 7.43289L7.67935 8.51573Z",fill:"#FFCC00"}))),MalaysiaSquareIcon=e=>a.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none"},e),a.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#CC0001"}),a.createElement("rect",{y:"12.2712",width:"24",height:"0.777454",fill:"white"}),a.createElement("rect",{y:"12.1904",width:"24",height:"0.777454",fill:"white"}),a.createElement("rect",{y:"13.7144",width:"24",height:"0.777454",fill:"white"}),a.createElement("rect",{y:"10.7161",width:"24",height:"0.777454",fill:"white"}),a.createElement("rect",{y:"9.16138",width:"24",height:"0.777454",fill:"white"}),a.createElement("rect",{y:"7.60645",width:"24",height:"0.777454",fill:"white"}),a.createElement("rect",{y:"6.05127",width:"24",height:"0.777454",fill:"white"}),a.createElement("rect",{y:"4.49658",width:"24",height:"0.777454",fill:"white"}),a.createElement("rect",{y:"2.94141",width:"24",height:"0.777454",fill:"white"}),a.createElement("rect",{y:"1.52393",width:"24",height:"0.777454",fill:"white"}),a.createElement("rect",{width:"24",height:"0.777454",fill:"white"}),a.createElement("path",{d:"M0 2C0 0.895431 0.895431 0 2 0H12V8.38095H0V2Z",fill:"#010066"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.93644 1.52393C3.51233 1.52393 2.35645 2.56887 2.35645 3.85629C2.35645 5.14371 3.51233 6.18865 4.93644 6.18865C5.45096 6.18865 5.93034 6.05209 6.33296 5.81716C6.09851 5.89054 5.84688 5.93068 5.58492 5.93068C4.32212 5.93068 3.29724 5.00417 3.29724 3.86258C3.29724 2.72099 4.32212 1.79448 5.58492 1.79448C5.86399 1.79448 6.13132 1.83968 6.37865 1.9225C5.96688 1.67094 5.47049 1.52393 4.93644 1.52393Z",fill:"#FFCC00"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.216 5.07041L8.12923 4.55611L8.45055 5.60869L7.72366 4.72819L7.49689 5.79987L7.27386 4.72758L6.5439 5.60609L6.86889 4.55439L5.78033 5.06572L6.58899 4.24291L5.35742 4.28581L6.48957 3.85485L5.35893 3.42081L6.59034 3.46707L5.78456 2.64205L6.87133 3.15636L6.55001 2.10378L7.2769 2.98427L7.50367 1.9126L7.7267 2.98488L8.45666 2.10638L8.13166 3.15808L9.22022 2.64674L8.41157 3.46955L9.64314 3.42666L8.51099 3.85761L9.64163 4.29165L8.41022 4.2454L9.216 5.07041Z",fill:"#FFCC00"})),MyanmarRoundIcon=e=>a.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",style:Object.assign({borderRadius:"50%"},e.style)},e),a.createElement("g",null,a.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},a.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),a.createElement("rect",{x:"-4",y:"-1",width:"28",height:"11",fill:"#FECB00"}),a.createElement("rect",{x:"-4",y:"10",width:"28",height:"10",fill:"#EA2839"}),a.createElement("rect",{x:"-4",y:"6.7041",width:"28",height:"6.47773",fill:"#34B233"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.56543 10.3272L10.1796 5.15527L11.7938 10.3272H8.56543Z",fill:"white"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5292 11.2775L7.18336 14.5129L8.91745 9.37991L11.5292 11.2775Z",fill:"white"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.75181 11.8648L5.33182 8.73143L10.7494 8.79447L9.75181 11.8648Z",fill:"white"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.6105 8.78962L15.0281 8.72658L10.6081 11.86L9.6105 8.78962Z",fill:"white"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4424 9.37686L13.1765 14.5098L8.83064 11.2744L11.4424 9.37686Z",fill:"white"}))),MyanmarSquareIcon=e=>a.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none"},e),a.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#FECB00"}),a.createElement("rect",{y:"8.3811",width:"24",height:"7.61905",rx:"2",fill:"#EA2839"}),a.createElement("rect",{y:"5.86987",width:"24",height:"4.93542",fill:"#34B233"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.7705 8.63046L12.1541 4.68994L13.5377 8.63046H10.7705Z",fill:"white"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.3108 9.35502L9.58574 11.8201L11.0721 7.90925L13.3108 9.35502Z",fill:"white"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7874 9.80216L7.99884 7.41482L12.6425 7.46285L11.7874 9.80216Z",fill:"white"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.6667 7.4589L16.3104 7.41087L12.5218 9.79821L11.6667 7.4589Z",fill:"white"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2361 7.90629L14.7225 11.8171L10.9974 9.35207L13.2361 7.90629Z",fill:"white"})),PhilippinesRoundIcon=e=>a.createElement(Z.I,Object.assign({alt:"round philippines flag",src:_.C.getAssetPath("flags/philippineRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),PhilippinesSquareIcon=e=>a.createElement(Z.I,Object.assign({alt:"square philippines flag",src:_.C.getAssetPath("flags/philippineSquare.png")},e)),SingaporeRoundIcon=e=>a.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",style:Object.assign({borderRadius:"50%"},e.style)},e),a.createElement("g",null,a.createElement("mask",{maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},a.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"white"})),a.createElement("rect",{width:"20",height:"10",y:"0",fill:"#EF3340"}),a.createElement("rect",{width:"20",height:"10",y:"10",fill:"#FFFFFF"}),a.createElement("circle",{cx:"6",cy:"5",r:"3",fill:"white"}),a.createElement("circle",{cx:"6.8",cy:"5",r:"2.4",fill:"#EF3340"}),a.createElement("g",{fill:"white",transform:"translate(6 5)"},a.createElement("polygon",{points:"0,-0.9 0.26,-0.26 0.9,0 0.26,0.26 0,0.9 -0.26,0.26 -0.9,0 -0.26,-0.26",transform:"translate(1.8 -2)"}),a.createElement("polygon",{points:"0,-0.9 0.26,-0.26 0.9,0 0.26,0.26 0,0.9 -0.26,0.26 -0.9,0 -0.26,-0.26",transform:"translate(3 -1)"}),a.createElement("polygon",{points:"0,-0.9 0.26,-0.26 0.9,0 0.26,0.26 0,0.9 -0.26,0.26 -0.9,0 -0.26,-0.26",transform:"translate(3 0.5)"}),a.createElement("polygon",{points:"0,-0.9 0.26,-0.26 0.9,0 0.26,0.26 0,0.9 -0.26,0.26 -0.9,0 -0.26,-0.26",transform:"translate(1.8 1.5)"}),a.createElement("polygon",{points:"0,-0.9 0.26,-0.26 0.9,0 0.26,0.26 0,0.9 -0.26,0.26 -0.9,0 -0.26,-0.26",transform:"translate(0.6 0.5)"})))),SingaporeSquareIcon=e=>a.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none"},e),a.createElement("rect",{width:"24",height:"16",rx:"2",fill:"white"}),a.createElement("rect",{width:"24",height:"8",rx:"2",fill:"#EF3340"}),a.createElement("circle",{cx:"6",cy:"4",r:"3",fill:"white"}),a.createElement("circle",{cx:"6.8",cy:"4",r:"2.4",fill:"#EF3340"}),a.createElement("g",{fill:"white",transform:"translate(6 4)"},a.createElement("polygon",{points:"0,-1 0.3,-0.3 1,0 0.3,0.3 0,1 -0.3,0.3 -1,0 -0.3,-0.3",transform:"translate(1.8 -2)"}),a.createElement("polygon",{points:"0,-1 0.3,-0.3 1,0 0.3,0.3 0,1 -0.3,0.3 -1,0 -0.3,-0.3",transform:"translate(3 -1)"}),a.createElement("polygon",{points:"0,-1 0.3,-0.3 1,0 0.3,0.3 0,1 -0.3,0.3 -1,0 -0.3,-0.3",transform:"translate(3 0.5)"}),a.createElement("polygon",{points:"0,-1 0.3,-0.3 1,0 0.3,0.3 0,1 -0.3,0.3 -1,0 -0.3,-0.3",transform:"translate(1.8 1.5)"}),a.createElement("polygon",{points:"0,-1 0.3,-0.3 1,0 0.3,0.3 0,1 -0.3,0.3 -1,0 -0.3,-0.3",transform:"translate(0.6 0.5)"}))),TaiwanRoundIcon=e=>a.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",style:Object.assign({borderRadius:"50%"},e.style)},e),a.createElement("g",null,a.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},a.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),a.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#D8D8D8"}),a.createElement("g",null,a.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},a.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"white"})),a.createElement("rect",{width:"30",height:"20",fill:"#ED1E24"}),a.createElement("rect",{width:"15",height:"10",fill:"#2B2F84"}),a.createElement("circle",{cx:"7.49791",cy:"4.99913",r:"1.869",fill:"white"}),a.createElement("path",{d:"M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z",fill:"white"}),a.createElement("path",{d:"M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z",fill:"white"}),a.createElement("path",{d:"M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z",fill:"white"}),a.createElement("path",{d:"M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z",fill:"white"}),a.createElement("path",{d:"M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z",fill:"white"}),a.createElement("path",{d:"M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z",fill:"white"}
393),a.createElement("path",{d:"M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z",fill:"white"}),a.createElement("path",{d:"M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z",fill:"white"}),a.createElement("path",{d:"M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z",fill:"white"}),a.createElement("path",{d:"M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z",fill:"white"}),a.createElement("path",{d:"M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z",fill:"white"}),a.createElement("path",{d:"M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z",fill:"white"})))),TaiwanSquareIcon=e=>a.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none"},e),a.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#ED1E24"}),a.createElement("path",{d:"M0 2C0 0.89543 0.895431 0 2 0H15V10H0V2Z",fill:"#2B2F84"}),a.createElement("circle",{cx:"7.49791",cy:"4.99913",r:"1.869",fill:"white"}),a.createElement("path",{d:"M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z",fill:"white"}),a.createElement("path",{d:"M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z",fill:"white"}),a.createElement("path",{d:"M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z",fill:"white"}),a.createElement("path",{d:"M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z",fill:"white"}),a.createElement("path",{d:"M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z",fill:"white"}),a.createElement("path",{d:"M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z",fill:"white"}),a.createElement("path",{d:"M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z",fill:"white"}),a.createElement("path",{d:"M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z",fill:"white"}),a.createElement("path",{d:"M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z",fill:"white"}),a.createElement("path",{d:"M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z",fill:"white"}),a.createElement("path",{d:"M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z",fill:"white"}),a.createElement("path",{d:"M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z",fill:"white"})),ThailandRoundIcon=e=>a.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",style:Object.assign({borderRadius:"50%"},e.style)},e),a.createElement("g",null,a.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},a.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),a.createElement("rect",{x:"-4",y:"-0.0166016",width:"28",height:"20",fill:"#ED1C24"}),a.createElement("rect",{x:"-4",y:"3.31665",width:"28",height:"13.3333",fill:"white"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-4 6.65015H24V13.3168H-4V6.65015Z",fill:"#241D4F"}))),ThailandSquareIcon=e=>a.createElement("svg",Object.assign({viewBox:"0 0 24 17",fill:"none"},e),a.createElement("rect",{y:"0.983398",width:"24",height:"16",rx:"2",fill:"#ED1C24"}),a.createElement("rect",{y:"3.65039",width:"24",height:"10.6667",fill:"white"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.31689H24V11.6502H0V6.31689Z",fill:"#241D4F"})),VietnamRoundIcon=e=>a.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",style:Object.assign({borderRadius:"50%"},e.style)},e),a.createElement("g",null,a.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},a.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),a.createElement("rect",{x:"-4",y:"-0.0166016",width:"28",height:"20",fill:"#DA251D"}),a.createElement("path",{d:"M11.7228 10.8677L14.2819 9.00839L11.1187 9.00839L10.1409 
3936L9.16316 9.00839L6 9.00839L8.5591 10.8677L7.58184 13.8766L10.1409 12.0168L12.7 13.8766L11.7228 10.8677Z",fill:"#FFEB3B"}))),VietnamSquareIcon=e=>a.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none"},e),a.createElement("g",null,a.createElement("clipPath",null,a.createElement("rect",{width:"24",height:"16",fill:"white"})),a.createElement("path",{d:"M2.01386e-10 2C0 0.895431 0.895431 -7.50368e-10 2 -1.67599e-09L22 -1.84359e-08C23.1046 -1.93615e-08 24 0.895431 24 2L24 14C24 15.1046 23.1046 16 22 16L2 16C0.89543 16 1.52092e-09 15.1046 1.4097e-09 14L2.01386e-10 2Z",fill:"#DA251D"}),a.createElement("path",{d:"M13.7823 8.92854L16.6663 6.8332L13.1016 6.8332L11.9997 3.44287L10.8978 6.8332L7.33301 6.8332L10.217 8.92854L9.11567 12.3195L11.9997 10.2235L14.8837 12.3195L13.7823 8.92854Z",fill:"#FFEB3B"})));var eH={flag:"pfaLGRK"};let Flag=({country:e,language:t,rounded:n,height:l,width:r,isTesting:i,className:o})=>{let c,s;switch(t){case"en":c=a.createElement(EnglishSquareIcon,null),s=a.createElement(EnglishRoundIcon,null);break;case"vi":c=a.createElement(VietnamSquareIcon,null),s=a.createElement(VietnamRoundIcon,null);break;case"id":c=a.createElement(IndonesiaSquareIcon,{isTesting:i}),s=a.createElement(IndonesiaRoundIcon,{isTesting:i});break;case"th":c=a.createElement(ThailandSquareIcon,null),s=a.createElement(ThailandRoundIcon,null);break;case"km":c=a.createElement(CambodiaSquareIcon,null),s=a.createElement(CambodiaRoundIcon,null);break;case"ms":c=a.createElement(MalaysiaSquareIcon,null),s=a.createElement(MalaysiaRoundIcon,null);break;case"my":c=a.createElement(MyanmarSquareIcon,null),s=a.createElement(MyanmarRoundIcon,null);break;case"tl":c=a.createElement(PhilippinesSquareIcon,null),s=a.createElement(PhilippinesRoundIcon,null);break;case"hi":c=a.createElement(IndiaSquareIcon,null),s=a.createElement(IndiaRoundIcon,null);break;case"zh":c=a.createElement(TaiwanSquareIcon,null),s=a.createElement(TaiwanRoundIcon,null)}if(!c&&!s)switch(e){case"VN":c=a.createElement(VietnamSquareIcon,null),s=a.createElement(VietnamRoundIcon,null);break;case"ID":c=a.createElement(IndonesiaSquareIcon,{isTesting:i}),s=a.createElement(IndonesiaRoundIcon,{isTesting:i});break;case"TH":c=a.createElement(ThailandSquareIcon,null),s=a.createElement(ThailandRoundIcon,null);break;case"KH":c=a.createElement(CambodiaSquareIcon,null),s=a.createElement(CambodiaRoundIcon,null);break;case"MY":c=a.createElement(MalaysiaSquareIcon,null),s=a.createElement(MalaysiaRoundIcon,null);break;case"MM":c=a.createElement(MyanmarSquareIcon,null),s=a.createElement(MyanmarRoundIcon,null);break;case"PH":c=a.createElement(PhilippinesSquareIcon,null),s=a.createElement(PhilippinesRoundIcon,null);break;case"IN":c=a.createElement(IndiaSquareIcon,null),s=a.createElement(IndiaRoundIcon,null);break;case"TW":c=a.createElement(TaiwanSquareIcon,null),s=a.createElement(TaiwanRoundIcon,null);break;case"SG":c=a.createElement(SingaporeSquareIcon,null),s=a.createElement(SingaporeRoundIcon,null)}return a.createElement("div",{className:`${eH.flag} ${o||""}`,style:{"--width":r||20,"--height":l||20}},n?s:c)},CaretDown=e=>a.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},e),a.createElement("path",{d:"M4.81428 7.53044L7.64065 10.3568C7.83849 10.5546 8.15877 10.5546 8.3561 10.3568L11.1825 7.53044C11.5012 7.21168 11.2756 6.66675 10.8247 6.66675H5.172C4.72118 6.66675 4.49552 7.21168 4.81428 7.53044Z"})),eT=Object.values(K.x9).reduce((e,{phoneCountry:t})=>(e.includes(t)||e.push(t),e),[]);var eB={phoneInput:"i-9Ibox",error:"YDWHh9b",selectedCountry:"_87SIJ95"};let e_=(0,a.forwardRef)((e,t)=>{let{isError:r,defaultCountry:i,selectedCountry:o,countries:c=eT,countryCallingCodeEditable:s=!1,defaultValue:u,value:d,onChange:m,flagComponent:p,arrowComponent:g,withFloatingLabel:E,className:C,inputId:b,label:f,error:v}=e,w=(0,l.a)(e,["isError","defaultCountry","selectedCountry","countries","countryCallingCodeEditable","defaultValue","value","onChange","flagComponent","arrowComponent","withFloatingLabel","className","inputId","label","error"]),[y,L]=(0,a.useState)(u||d),[x,S]=(0,a.useState)(null),O=(0,a.useCallback)(e=>{if(!x)return;if(p)return p(e);let{country:t,countryName:n,flagUrl:r}=e,i=(0,l.a)(e,["country","countryName","flagUrl"]),o=t?`+${x.getCountryCallingCode(t)}`:"";return a.createElement(a.Fragment,null,a.createElement(Flag,Object.assign({country:t,title:n},i)),a.createElement(N.T,{size:"p2",variant:"primary",className:G()(eB.callingCode,"PhoneInputCountryIconCallingCode")},o))},[p,x]),k=(0,a.useCallback)(()=>g?g():a.createElement("div",{className:G()(eB.arrowSelect,"PhoneInputArrowContainer")},a.createElement(CaretDown,null)),[g]);if((0,a.useEffect)(()=>{L(d)},[d]),(0,a.useEffect)(()=>{(0,l._)(void 0,void 0,void 0,function*(){let e=yield Promise.all([n.e(5231),n.e(1500),n.e(7797),n.e(9265),n.e(5454),n.e(5481),n.e(2354),n.e(3684),n.e(5349),n.e(4148),n.e(2509),n.e(1533),n.e(1108),n.e(9124),n.e(4190),n.e(4584),n.e(2582),n.e(4125),n.e(9353),n.e(7884),n.e(4126),n.e(5961),n.e(8956),n.e(2900),n.e(4072),n.e(4414),n.e(7613),n.e(8098),n.e(3416),n.e(3012),n.e(1570),n.e(6192),n.e(6918),n.e(5965),n.e(3301),n.e(1413),n.e(2138),n.e(9467),n.e(4467),n.e(6966),n.e(5243),n.e(9862),n.e(3800),n.e(8132),n.e(1375),n.e(4561),n.e(1193),n.e(2094),n.e(1797),n.e(1217),n.e(5480),n.e(731),n.e(2050),n.e(2008),n.e(8469),n.e(8214),n.e(1482),n.e(6817),n.e(467),n.e(5951),n.e(9357),n.e(747),n.e(5675),n.e(6753),n.e(4802),n.e(3046),n.e(5745),n.e(3437),n.e(252),n.e(1152),n.e(9424),n.e(5702),n.e(8922),n.e(6399),n.e(8639),n.e(7082),n.e(553),n.e(9309),n.e(7221),n.e(2853),n.e(8232),n.e(3257),n.e(6611),n.e(7538),n.e(6894),n.e(5341),n.e(3566)]).then(n.bind(n,"A9bs"));S(e)})},[]),!x)return null;let D=Object.assign({ref:t,defaultValue:u,label:f,value:y,onChange:e=>{L(e),null==m||m(e)}
393,countries:c,defaultCountry:i||o,countryCallingCodeEditable:s,displayInitialValueAsLocalNumber:!0,className:G()(eB.phoneInput,{isError:r,[eB.error]:r,[eB.selectedCountry]:o},C),flagUrl:void 0,flagComponent:O,countrySelectProps:{arrowComponent:k},id:b},w);return E?a.createElement(FloatingLabelControl,{shrink:!!y},a.createElement(FloatingLabelControl.Control,null,({shrink:e})=>a.createElement(I.I.Wrapper,{size:"md",label:a.createElement(N.T,{size:e?"p3":"p2",variant:"secondary",weight:"halfBold"},f),inputWrapperOrder:["label","input","description","error"],error:v&&a.createElement(ErrorLabel,{label:v})},a.createElement(h.x,{className:"mantine-Input-wrapper",sx:e=>({".PhoneInput .PhoneInputInput":Object.assign(Object.assign({},(0,V.G)(e)[V.C.LEADGEN].p2),{color:e.colors.gray[9],fontWeight:V.F.halfBold})})},a.createElement(x.default,Object.assign({},D)))))):a.createElement(x.default,Object.assign({},D))});(0,a.forwardRef)((e,t)=>{let{defaultCountry:n,id:r,name:i,placeholder:o,label:c,labelElement:s,labelProps:u,description:d,descriptionProps:m,withAsterisk:p,inputMode:h,inputContainer:g,inputWrapperOrder:E,error:C,className:b,classNames:f,style:v,styles:w}=e,y=(0,l.a)(e,["defaultCountry","id","name","placeholder","label","labelElement","labelProps","description","descriptionProps","withAsterisk","inputMode","inputContainer","inputWrapperOrder","error","className","classNames","style","styles"]),L=r||(0,Q.Z)()+i;return a.createElement(I.I.Wrapper,{size:"md",label:c,labelElement:s,labelProps:Object.assign({htmlFor:L},u),description:d,descriptionProps:m,withAsterisk:p,inputMode:h,inputContainer:g,inputWrapperOrder:E,error:C,"data-invalid":!!C,className:b,classNames:f,style:v,styles:w},a.createElement("div",{className:"mantine-Input-wrapper"},a.createElement(e_,Object.assign({},y,{id:L,ref:t,name:i,spellCheck:!1,placeholder:o,defaultCountry:n,className:"mantine-Input-input",type:"tel","data-control":"tel"}))))});let eV=(0,a.createContext)({}),Popover=e=>{var{children:t,closeOnClickOutside:n=!0}=e,r=(0,l.a)(e,["children","closeOnClickOutside"]);let[i,{close:o,open:c}]=(0,B.q)(!1),s=n?(0,R.O)(o):(0,a.useRef)(),u=Object.assign({},"function"==typeof t?{opened:i}:{});return a.createElement(eV.Provider,{value:{opened:i,close:o,open:c}},a.createElement(P.J,Object.assign({closeOnClickOutside:n},u,r),a.createElement("div",{ref:s},"function"==typeof t?t({open:c,close:o,opened:i}):t)))};Popover.Target=P.J.Target,Popover.Dropdown=P.J.Dropdown;var eZ=(0,i.k)(e=>{var t;return{root:{},iconWrapper:{display:"none"},label:{display:"inline-block",cursor:"pointer",".checked":{display:"none"},".unchecked":{display:"inline-block"},'&[data-checked="true"]':{".checked":{display:"inline-block"},".unchecked":{display:"none"}},'&,&[data-checked="true"]':{padding:0,border:0,height:"auto"}},btnRoot:{pointerEvents:"none",'&[data-variant="secondary"]':{backgroundColor:null===(t=e.colors[e.primaryColor])||void 0===t?void 0:t[0]},".mantine-Button-label":{fontWeight:"normal",fontSize:(0,o.h)(14)}}}});let ChipButton=e=>{var{variant:t="secondary",withIcon:n,children:r,buttonProps:i}=e,o=(0,l.a)(e,["variant","withIcon","children","buttonProps"]);let{classes:c,cx:s}=eZ();return a.createElement(F.A,Object.assign({classNames:c},o,{unstyled:!0}),a.createElement(et.B,Object.assign({className:s(c.btnRoot,"checked"),leftIcon:n?a.createElement(J.Z,{size:18,color:"currentColor"}):void 0,variant:t},i),r),a.createElement(et.B,Object.assign({className:s(c.btnRoot,"unchecked"),leftIcon:n?a.createElement(ee.Z,{size:18,color:"currentColor"}):void 0,variant:"tertiary"},i),r))};ChipButton.Group=F.A.Group},"2lEY":function(e,t,n){n.d(t,{B:function(){return BmiForm},F:function(){return FitnessToolUnitPicker},H:function(){return R},N:function(){return NewsletterCheckbox},Q:function(){return Question1Label},a:function(){return Question2Label},b:function(){return Question2Description}});var l=n("mup0"),a=n("q1tI"),r=n("wUmw"),i=n("kYr6"),o=n("nozM"),c=n("/npG"),s=n("SPK5"),u=n("Eso5"),d=n("8vDj"),m=n("Zo/N"),p=n("mYVa"),h=n("lSJj"),g=n("TIp3"),E=n("OAL+"),C=n("iuhU"),b=n("C/sX"),f=n("Bril"),v=n("E13D"),w=n("88OS"),y=n("RIW1"),L=n("sjwg"),x=n("ofuL"),S=n("a4pC"),I=n("fL59"),O=n("11Kd"),k=n("xrdX"),D=n("mx4j");let Question1Label=e=>{var{LabelWrapper:t}=e,n=(0,l.a)(e,["LabelWrapper"]);let{t:r}=(0,y.u)(),i=t?{}:Object.assign({size:"p2"},n),o=t||v.T;return a.createElement(o,Object.assign({},i),r("bmi.question.weightLossSupport"))},Question2Label=e=>{var{LabelWrapper:t}=e,n=(0,l.a)(e,["LabelWrapper"]);let{t:r}=(0,y.u)(),i=t?{}:Object.assign({size:"p2"},n),o=t||v.T;return a.createElement(o,Object.assign({},i),r("bmi.question.glp1Awareness"))},Question2Description=e=>{var{LabelWrapper:t}=e,n=(0,l.a)(e,["LabelWrapper"]);let{t:r}=(0,y.u)(),i=t?{}:Object.assign({size:"p2"},n),o=t||v.T;return a.createElement(o,Object.assign({},i),r("bmi.question.glp1Awareness.desc"))},P=(0,a.createContext)({});var F=(0,c.k)(()=>({label:{marginTop:2,cursor:"pointer",userSelect:"none"}}));let NewsletterCheckbox=e=>{var{labelTextProps:t,checked:n,LabelWrapper:r,useCollapse:i=!0}
393=e,o=(0,l.a)(e,["labelTextProps","checked","LabelWrapper","useCollapse"]);let{t:c}=(0,y.u)(),[d,m]=(0,a.useState)(!i),[p,h]=(0,a.useState)(!0),[g,E]=(0,a.useState)(n),C=r?{}:Object.assign({size:"p3"},t),b=r||v.T,{classes:w}=F(void 0,{name:"NewsletterCheckbox"});return a.createElement(s.k,{gap:8,align:"flex-start"},a.createElement(f.d,Object.assign({},o,{label:void 0,size:"sm",checked:g,onChange:e=>{p?h(!1):E(e.currentTarget.checked)},styles:{labelWrapper:{display:"none"}}})),a.createElement(u.x,null,a.createElement(b,Object.assign({},C,{onClick:()=>{i&&m(e=>!e)},className:w.label,lineClamp:d?void 0:1}),c("bmi.newsletter.label"))))},FitnessToolUnitPicker=({displayValue:e,field:t,onChange:n})=>{let l=(0,d.rZ)(),r=l.colors.gray[1],i="height"===t?[{label:"cm",system:"metric"},{label:"ft",system:"imperial"}]:[{label:"kg",system:"metric"},{label:"lbs",system:"imperial"}];return a.createElement(m.v,{position:"bottom-end",withinPortal:!0,offset:0,styles:{dropdown:{backgroundColor:l.white,border:`${(0,p.h)(1)} solid ${r}`,borderRadius:12,boxShadow:"0px 0px 1px 0px #0000000A,0px 2px 8px 0px #0000000A,0px 10px 16px 0px #0000000A",padding:(0,p.h)(4),minWidth:(0,p.h)(90)},item:{fontSize:l.fontSizes.sm,lineHeight:1.4,padding:`${(0,p.h)(6)} ${(0,p.h)(10)}`,borderRadius:l.radius.xs,color:l.colors.dark[9],"&[data-hovered]":{backgroundColor:"transparent"}}}},a.createElement(m.v.Target,null,a.createElement(h.k,{type:"button",sx:e=>({height:"100%",display:"flex",alignItems:"center",justifyContent:"flex-end",width:"100%",paddingRight:e.spacing.xs,gap:4})},a.createElement(g.x,{component:"span",size:"sm",sx:{lineHeight:1}},e),a.createElement(x.C,{style:{width:18,height:18}}))),a.createElement(m.v.Dropdown,null,i.map(r=>{let i=e===r.label;return a.createElement(m.v.Item,{key:r.label,onClick:()=>n(r.system,t),sx:{backgroundColor:i?l.colors.gray[1]:void 0,"&[data-hovered]":{backgroundColor:i?l.colors.gray[1]:"transparent"}}},r.label)})))},DefaultForm=e=>{var t,n,i,o,c,d,m;let{t:p,locale:h}=(0,y.u)(),{classes:g={}}=(0,a.useContext)(S.C),{control:b,bmiGenerated:v,linkTool:w,submitProps:x,withAdditionalQuestion:I,classes:D={},enableUnitPicker:F,unitSystem:j,unitHeight:M,unitWeight:H,onUnitChange:T}=(0,a.useContext)(P),B={body:{alignItems:"center"}};return a.createElement(L.H,Object.assign({formLayout:"default"},e),a.createElement(R,{isMobile:e.isMobile,gutter:4},a.createElement(E.K,{spacing:4,px:16},a.createElement(r.Qr,{name:"gender",control:b,rules:null===(t=v.gender)||void 0===t?void 0:t.rule,render:({field:{onChange:e},fieldState:{error:t}})=>a.createElement("div",null,a.createElement(R.GenderControl,{LabelWrapper:R.Label,error:void 0,onChange:e,gap:4}),(null==t?void 0:t.message)&&a.createElement(R.Error,{label:t.message}))}),a.createElement(r.Qr,{name:"age",control:b,rules:null===(n=v.age)||void 0===n?void 0:n.rule,render:({field:{name:e,value:t,onChange:n},fieldState:{error:l}})=>a.createElement("div",null,a.createElement(R.InputNumber,{label:a.createElement(R.Label,null,p("bmi.ageInput")),placeholder:p("tools.inputPlaceholder",{content:"25"}),name:e,value:t,onChange:n,min:0,rightSection:p("bmi.ageInput.desc"),classNames:{rightSection:D.inputRightSection}}),(null==l?void 0:l.message)&&a.createElement(R.Error,{label:l.message}))}),a.createElement(r.Qr,{name:"height",control:b,rules:null===(i=v.height)||void 0===i?void 0:i.rule,render:({field:{name:e,value:t,onChange:n},fieldState:{error:l}})=>a.createElement("div",null,a.createElement(R.InputNumber,{label:a.createElement(R.Label,null,p("bmi.heightInput")),placeholder:p("tools.inputPlaceholder",{content:"imperial"===j?6:170}),name:e,value:t,onChange:n,min:0,precision:1,inputMode:"decimal",rightSection:F?a.createElement(FitnessToolUnitPicker,{displayValue:M,field:"height",onChange:T}):p("bmi.heightInput.desc"),rightSectionWidth:70,classNames:{rightSection:D.inputRightSection},styles:F?void 0:()=>({rightSection:{paddingRight:0}})}),(null==l?void 0:l.message)&&a.createElement(R.Error,{label:l.message}))}),a.createElement(r.Qr,{name:"weight",control:b,rules:null===(o=v.weight)||void 0===o?void 0:o.rule,render:({field:{name:e,value:t,onChange:n},fieldState:{error:l}})=>a.createElement("div",null,a.createElement(R.InputNumber,{label:a.createElement(R.Label,null,p("bmi.weightInput")),placeholder:p("tools.inputPlaceholder",{content:"imperial"===j?130:60}),name:e,value:t,onChange:n,precision:1,inputMode:"decimal",min:0,rightSection:F?a.createElement(FitnessToolUnitPicker,{displayValue:H,field:"weight",onCh
393ange:T}):p("bmi.weightInput.desc"),rightSectionWidth:70,classNames:{rightSection:D.inputRightSection},styles:F?void 0:()=>({rightSection:{paddingRight:0}})}),(null==l?void 0:l.message)&&a.createElement(R.Error,{label:l.message}))})),I?a.createElement(a.Fragment,null,a.createElement(E.K,{spacing:4,px:16},a.createElement(r.Qr,{name:"question1",control:b,rules:null===(c=v.question1)||void 0===c?void 0:c.rule,render:({field:{value:e,onChange:t,name:n},fieldState:{error:l}})=>a.createElement("div",null,a.createElement(f.R.Group,{name:n,value:e,onChange:t,sx:{flex:1},label:a.createElement(Question1Label,{LabelWrapper:R.Label}),size:"lg"},a.createElement(s.k,{gap:"lg"},a.createElement(f.R,{size:"sm",value:"1",label:a.createElement(R.OptionLabel,null,p("switchBtn.yes")),styles:B}),a.createElement(f.R,{size:"sm",value:"0",label:a.createElement(R.OptionLabel,null,p("switchBtn.no")),styles:B}))),(null==l?void 0:l.message)&&a.createElement(R.Error,{label:l.message}))}),a.createElement(r.Qr,{name:"question2",control:b,rules:null===(d=v.question2)||void 0===d?void 0:d.rule,render:({field:{name:e,value:t,onChange:n},fieldState:{error:l}})=>a.createElement("div",null,a.createElement(f.R.Group,{name:e,value:t,onChange:n,sx:{flex:1},label:a.createElement(Question2Label,{LabelWrapper:R.Label}),size:"lg",description:h!==O.L.Malaysia&&a.createElement(Question2Description,{LabelWrapper:R.SubLabel})},a.createElement(s.k,{gap:"lg"},a.createElement(f.R,{size:"sm",value:"1",label:a.createElement(R.OptionLabel,null,p("switchBtn.yes")),styles:B}),a.createElement(f.R,{size:"sm",value:"0",label:a.createElement(R.OptionLabel,null,p("switchBtn.no")),styles:B}))),(null==l?void 0:l.message)&&a.createElement(R.Error,{label:l.message}))})),a.createElement(u.x,{className:(0,C.default)(D.newsletterBlock,g.newsletterBlock)},a.createElement(E.K,{spacing:8,px:16,py:12},a.createElement(r.Qr,{name:"newsletter",control:b,rules:null===(m=v.newsletter)||void 0===m?void 0:m.rule,render:e=>{var t=e.field,{value:n,onChange:r,name:i}=t,o=(0,l.a)(t,["value","onChange","name"]);return a.createElement(NewsletterCheckbox,Object.assign({size:"sm",onChange:e=>r(e.currentTarget.checked),name:i,checked:!!n},o))}}),a.createElement(L.H.Submit,Object.assign({className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMI",dataEventLabel:`https://${k.v[h]}/${w}`,type:"submit",fullWidth:!0},x),p("bmi.submit"))))):a.createElement(u.x,{px:16,sx:{paddingBottom:8}},a.createElement(L.H.Submit,Object.assign({className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMI",dataEventLabel:`https://${k.v[h]}/${w}`,type:"submit",fullWidth:!0},x),p("bmi.submit")))))};var j=(0,c.k)(e=>({newsletterBlock:{backgroundColor:e.colors.neutral[0],borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit",".bmi-btn":{marginTop:0}},inputRightSection:{fontSize:(0,p.h)(13),lineHeight:(0,p.h)(24),color:e.colors.gray[4],justifyContent:"flex-end",paddingRight:8,whiteSpace:"nowrap"}}));let InlineForm=e=>{var t,n,i,o,c,d,m,h;let{t:g,locale:b}=(0,y.u)(),{control:w,bmiGenerated:x,isTouched:D,linkTool:F,submitProps:j,withAdditionalQuestion:M,enableUnitPicker:R,unitSystem:H,unitHeight:T,unitWeight:B,onUnitChange:_}=(0,a.useContext)(P),{classes:V={},variant:Z}=(0,a.useContext)(S.C),{classes:z={}}=(0,a.useContext)(P);return a.createElement(L.H,Object.assign({formLayout:"inline"},e),a.createElement(r.Qr,{name:"gender",control:w,rules:null===(t=x.gender)||void 0===t?void 0:t.rule,render:({field:{onChange:e},fieldState:{error:t}})=>a.createElement(L.H.FormRow,null,a.createElement(L.H.BorderInlineControl,{label:g("tools.selectGender"),width:"none",errorMess:D&&(null==t?void 0:t.message)},a.createElement(I.G,{type:"radio",hideLabel:!0,error:D?a.createElement(a.Fragment,null):"",onChange:e})))}),a.createElement(r.Qr,{name:"age",control:w,rules:null===(n=x.age)||void 0===n?void 0:n.rule,render:({field:{name:e,value:t,onChange:n},fieldState:{error:l}})=>a.createElement(L.H.FormRow,null,a.createElement(L.H.BorderInlineControl,{label:g("bmi.ageInput"),errorMess:D&&(null==l?void 0:l.message)},a.createElement(f.I.Number,{placeholder:g("tools.inputPlaceholder",{content:"25"}),name:e,value:t,onChange:n,error:D&&(null==l?void 0:l.message)?a.createElement(a.Fragment,null):"",min:0,rightSection:a.createElement(L.H.Unit,null,g("tools.yearsOld")),styles:()=>({rightSection:{width:"auto"}})})))}),a.createElement(r.Qr,{name:"height",control:w,rules:null===(i=x.height)||void 0===i?void 0:i.rule,render:({field:{name:e,value:t,onChange:n},fieldState:{error:l}})=>a.createElement(L.H.FormRow,null,a.createElement(L.H.BorderInlineControl,{label:g("bmi.heightInput"),errorMess:D&&(null==l?void 0:l.message)},a.createElement(f.I.Number,{placeholder:g("tools.inputPlaceholder",{content:"imperial"===H?6:170}),name:e,value:t,onChange:n,min:0,precision:1,inputMode:"decimal",error:D&&(null==l?void 0:l.message)?a.createElement(a.Fragment,null):"",rightSection:R?a.createElement(FitnessToolUnitPicker,{displayValue:T,field:"height",onCh
393ange:_}):a.createElement(L.H.Unit,{styles:{root:{paddingRight:0}}},g("bmi.heightInput.desc")),rightSectionWidth:70,styles:R?void 0:()=>({rightSection:{paddingRight:0}})})))}),a.createElement(r.Qr,{name:"weight",control:w,rules:null===(o=x.weight)||void 0===o?void 0:o.rule,render:({field:{name:e,value:t,onChange:n},fieldState:{error:l}})=>a.createElement(L.H.FormRow,null,a.createElement(L.H.BorderInlineControl,{label:g("bmi.weightInput"),errorMess:D&&(null==l?void 0:l.message)},a.createElement(f.I.Number,{placeholder:g("tools.inputPlaceholder",{content:"imperial"===H?130:60}),name:e,value:t,onChange:n,error:D&&(null==l?void 0:l.message)?a.createElement(a.Fragment,null):"",precision:1,inputMode:"decimal",min:0,rightSection:R?a.createElement(FitnessToolUnitPicker,{displayValue:B,field:"weight",onChange:_}):a.createElement(L.H.Unit,{styles:{root:{paddingRight:0}}},g("bmi.weightInput.desc")),rightSectionWidth:70,styles:R?void 0:()=>({rightSection:{paddingRight:0}})})))}),M?a.createElement(a.Fragment,null,a.createElement(r.Qr,{name:"question1",control:w,rules:null===(c=x.question1)||void 0===c?void 0:c.rule,render:({field:{value:e,onChange:t,name:n},fieldState:{error:l}})=>a.createElement(L.H.FormRow,null,a.createElement(f.R.Group,{name:n,value:e,onChange:t,sx:{flex:1},label:a.createElement(v.T,{size:"s4",weight:"semiBold",span:!0},g("bmi.question.weightLossSupport")),size:"lg"},a.createElement(s.k,{gap:"lg",sx:{paddingTop:(0,p.h)(8)}},a.createElement(f.R,{size:"sm",value:"1",label:g("switchBtn.yes")}),a.createElement(f.R,{size:"sm",value:"0",label:g("switchBtn.no")}))),D&&(null==l?void 0:l.message)&&a.createElement(f.e,{label:l.message,textProps:{size:"p4"},sx:{marginTop:6}}))}),a.createElement(r.Qr,{name:"question2",control:w,rules:null===(d=x.question2)||void 0===d?void 0:d.rule,render:({field:{name:e,value:t,onChange:n},fieldState:{error:l}})=>a.createElement(L.H.FormRow,null,a.createElement(f.R.Group,{name:e,value:t,onChange:n,sx:{flex:1},label:a.createElement(v.T,{size:"s4",weight:"semiBold",span:!0},g("bmi.question.glp1Awareness")),size:"lg",description:b!==O.L.Malaysia&&a.createElement(v.T,{style:{fontSize:"10px"},span:!0},g("bmi.question.glp1Awareness.desc"))},a.createElement(s.k,{gap:"lg",sx:{paddingTop:(0,p.h)(8)}},a.createElement(f.R,{size:"sm",value:"1",label:g("switchBtn.yes")}),a.createElement(f.R,{size:"sm",value:"0",label:g("switchBtn.no")}))),D&&(null==l?void 0:l.message)&&a.createElement(f.e,{label:l.message,textProps:{size:"p4"},sx:{marginTop:6}}))}),"gray"===Z||"violet"===Z?a.createElement(a.Fragment,null,a.createElement(r.Qr,{name:"newsletter",control:w,rules:null===(m=x.newsletter)||void 0===m?void 0:m.rule,render:e=>{var t=e.field,{value:n,onChange:r,name:i}=t,o=(0,l.a)(t,["value","onChange","name"]);return a.createElement(L.H.FormRow,null,a.createElement(f.d,Object.assign({size:"sm",label:a.createElement(v.T,{size:"p3"},g("bmi.newsletter.label")),onChange:e=>r(e.currentTarget.checked),name:i,checked:!!n},o)))}}),a.createElement(L.H.FormRow,{className:(0,C.default)(V.submitWrapper)},a.createElement(L.H.Submit,Object.assign({className:(0,C.default)("bmi-btn bmi--btn-submit",V.submitBtn),dataEventCategory:"Health Tool",dataEventAction:"BMI",dataEventLabel:`https://${k.v[b]}/${F}`,type:"submit"},j),g("bmi.submit")))):a.createElement(L.H.FormRow,{py:16,className:(0,C.default)(z.newsletterBlock,V.newsletterBlock)},a.createElement(E.K,{spacing:16},a.createElement(r.Qr,{name:"newsletter",control:w,rules:null===(h=x.newsletter)||void 0===h?void 0:h.rule,render:e=>{var t=e.field,{value:n,onChange:r,name:i}=t,o=(0,l.a)(t,["value","onChange","name"]);return a.createElement(NewsletterCheckbox,Object.assign({size:"sm",labelTextProps:{size:"p4"},onChange:e=>r(e.currentTarget.checked),name:i,checked:!!n,useCollapse:!1},o))}}),a.createElement(u.x,{className:(0,C.default)(V.submitWrapper)},a.createElement(L.H.Submit,Object.assign({className:(0,C.default)("bmi-btn bmi--btn-submit",V.submitBtn),dataEventCategory:"Health Tool",dataEventAction:"BMI",dataEventLabel:`https://${k.v[b]}/${F}`,type:"submit"},j),g("bmi.submit")))))):a.createElement(L.H.FormRow,{className:(0,C.default)(V.submitWrapper)},a.createElement(L.H.Submit,Object.assign({className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BM
393I",dataEventLabel:`https://${k.v[b]}/${F}`,type:"submit"},j),g("bmi.submit"))))},BmiForm=e=>{var{value:t,onChange:n,onSubmit:c,bmiGenerated:s,bmiUnit:u,defaultUnitSystem:d,enableUnitPicker:m=!0,formLayout:p="default",submitProps:h,withAdditionalQuestion:g,isMobile:E}=e,C=(0,l.a)(e,["value","onChange","onSubmit","bmiGenerated","bmiUnit","defaultUnitSystem","enableUnitPicker","formLayout","submitProps","withAdditionalQuestion","isMobile"]);let{classes:b}=j(void 0,{name:"BmiForm"}),{locale:f}=(0,y.u)(),[v,L]=(0,a.useState)(!1),x=(0,a.useMemo)(()=>d||"metric",[d]),[S,I]=(0,a.useState)(x),{control:O,handleSubmit:k,setValue:F,watch:M}=(0,r.cI)({defaultValues:{question1:void 0,question2:void 0,newsletter:!0}}),R=M(),{getHealthToolLink:H}=(0,i.u)(f),T=(0,a.useMemo)(()=>H(o.H.OVULATION),[H]),B="imperial"===S?"ft":"cm",_="imperial"===S?"lbs":"kg",convertHeightToCm=e=>"imperial"===S?30.48*e:e,convertWeightToKg=e=>"imperial"===S?.45359237*e:e,onInValid=()=>{L(!0)};(0,a.useEffect)(()=>{Object.keys(t||{}).forEach(e=>{F(e,null==t?void 0:t[e],{shouldTouch:!1,shouldDirty:!1,shouldValidate:!1})})},[t]),(0,a.useEffect)(()=>{n&&n(R)},[R]),(0,a.useEffect)(()=>{I(x)},[x]);let V=Object.assign({onSubmit:k(e=>(0,l._)(void 0,void 0,void 0,function*(){let t="number"==typeof e.height?e.height:Number(e.height),n="number"==typeof e.weight?e.weight:Number(e.weight),l=m?Object.assign(Object.assign({},e),{bmi:(0,D.F)({height:convertHeightToCm(t),weight:convertWeightToKg(n)}),unit:S}):(()=>{let l=u.heightConvert(t),a=u.weightConvert(n);return Object.assign(Object.assign({},e),{height:l,weight:a,bmi:(0,D.F)({height:l,weight:a})})})();onInValid(),c&&c(l)}),onInValid)},C);return a.createElement(w.T,{variant:w.C.LEADGEN},a.createElement(P.Provider,{value:{control:O,bmiGenerated:s,isTouched:v,linkTool:T,submitProps:h,withAdditionalQuestion:g,classes:b,enableUnitPicker:m,unitSystem:S,unitHeight:B,unitWeight:_,onUnitChange:(e,t)=>
393{m&&e!==S&&(I(e),F("height","",{shouldDirty:!0,shouldValidate:!1}),F("weight","",{shouldDirty:!0,shouldValidate:!1}))}}},"inline"===p?a.createElement(InlineForm,Object.assign({},V)):a.createElement(DefaultForm,Object.assign({},V,{isMobile:E}))))},M=(0,a.createContext)({}),Error=e=>{let{errorLabelSize:t}=(0,a.useContext)(M);return a.createElement(f.e,Object.assign({textProps:{size:t},sx:{marginTop:5}},e))};var R=Object.assign(e=>{var t,n,r,i,o,c,{children:s,isMobile:u}=e,d=(0,l.a)(e,["children","isMobile"]);let m=Object.assign({isMobile:u,labelSize:null!==(t=d.labelSize)&&void 0!==t?t:u?"p2":"s4",subLabelSize:null!==(n=d.subLabelSize)&&void 0!==n?n:"subText",optionLabelSize:null!==(r=d.optionLabelSize)&&void 0!==r?r:u?"p2":"s4",inputSize:null!==(i=d.inputSize)&&void 0!==i?i:u?"sm":"md",gutter:null!==(o=d.gutter)&&void 0!==o?o:u?4:12,errorLabelSize:null!==(c=d.errorLabelSize)&&void 0!==c?c:"p3"},d);return a.createElement(M.Provider,{value:m},s)},{Row:e=>{var{children:t}=e,n=(0,l.a)(e,["children"]);let{gutter:r}=(0,a.useContext)(M);return a.createElement(b.r,Object.assign({gutter:r},n),t)},Col:e=>{var{children:t}=e,n=(0,l.a)(e,["children"]);return a.createElement(b.r.Col,Object.assign({span:12},n),t)},SubLabel:e=>{var{children:t}=e,n=(0,l.a)(e,["children"]);let{subLabelSize:r}=(0,a.useContext)(M);return a.createElement(v.T,Object.assign({size:r},n),t)},Label:e=>{var{children:t}=e,n=(0,l.a)(e,["children"]);let{labelSize:r}=(0,a.useContext)(M);return a.createElement(v.T,Object.assign({size:r,weight:"semiBold"},n,{span:!0}),t)},OptionLabel:e=>{var{children:t}=e,n=(0,l.a)(e,["children"]);let{optionLabelSize:r}=(0,a.useContext)(M);return a.createElement(v.T,Object.assign({size:r,weight:"regular"},n,{span:!0}),t)},Input:f.I,InputNumber:e=>{var{error:t}=e,n=(0,l.a)(e,["error"]);let{inputSize:r}=(0,a.useContext)(M);return a.createElement("div",null,a.createElement(f.I.Number,Object.assign({size:r},n)),t&&a.createElement(Error,{label:t}))},GenderControl:e=>{let{inputSize:t}=(0,a.useContext)(M);return a.createElement(I.G,Object.assign({size:t},e))},Error})},"ei/7":function(e,t,n){let l;n.d(t,{B:function(){return h},F:function(){return E},G:function(){return g},S:function(){return d},a:function(){return getSSOCurrentLocale},b:function(){return fetchSSOV2ApiJson},c:function(){return checkUserExist},f:function(){return fetchSSOV2Api},g:function(){return getUserInfo},h:function(){return handleAuthSuccess},l:function(){return m},r:function(){return resetPassword},s:function(){return setSSOCurrentLocale},u:function(){return updateUserInfo},w:function(){return p}});var a=n("mup0"),r=n("GOBr"),i=n("LtKL"),o=n("kMFH"),c=n("27Mu"),s=n("11Kd"),u=n("xrdX");let d={LOGIN_BY_SOCIAL:"member/social-login",EMAIL:{REGISTER_BY_SEND_OTP:"login/login-with-email",LOGIN_BY_PASSWORD:"member/login",VERIFY_BY_OTP:"login/email-verify-code",SEND_OTP:"login/email-resend-otp-code"},PHONE:{REGISTER_BY_SEND_OTP:"login/login-with-sms",SEND_OTP:"login/sms/sent-otp",VERIFY_BY_OTP:"login/phone-verify-code",LOGIN_BY_PASSWORD:"member/login-by-phone",UPDATE_PHONE_SEND_OTP:"login/sms-social/sent-otp",UPDATE_PHONE_VERIFY_OTP:"login/sms-social/phone-verify-code"},WHATSAPP:{LOGIN_OTP_WHATSAPP:"login/login-otp-whatsapp",REGISTER_BY_SEND_OTP:"login/login-with-whatsapp",SEND_OTP:"login/whatsapp/sent-otp",UPDATE_PHONE_SEND_OTP:"login/sms-social/whatsapp/sent-otp",UPDATE_PHONE_VERIFY_OTP:"login/sms-social/whatsapp-verify-code",VERIFY_BY_OTP:"login/whatsapp-verify-code"}
393,ZALO:{REGISTER_BY_SEND_OTP:"login/login-with-zalo",SEND_OTP:"login/zalo/sent-otp",VERIFY_BY_OTP:"login/zalo-verify-code",UPDATE_PHONE_SEND_OTP:"login/sms-social/zalo/sent-otp",UPDATE_PHONE_VERIFY_OTP:"login/sms-social/zalo-verify-code"},RESET_PASSWORD:"login/reset-password",CHECK_USER_EXIST:"member/check-user-exist",UPDATE_USER_INFO:"login/update-first-info",SETUP_USER_INFO:"login/setup-first-info",ECOM_CARE:{SEND_OTP:"login/ecom-care/send-email-otp-code",VERIFY_OTP:"login/ecom-care/email-verify-code",RESEND_OTP:"login/ecom-care/resend-email-otp-code"}},m="zh-TW",p={[s.L.Vietnam]:"1",[s.L.Indonesia]:"2",[s.L.Malaysia]:"3"}[m];o.L[m].PHONE;let setSSOCurrentLocale=e=>{l=e},getSSOCurrentLocale=()=>l||m,getSSOV2ApiUrl=(e,t)=>{let n=t||l||m;return(0,i.e)(`${(0,i.a)(n)}/api/v2/${e}`)},getSSOApiUrl=(e,t)=>{let n=t||l||m;return(0,i.e)(`${(0,i.a)(n)}/api/${e}`)},h="hhg_user_token",fetchSSOV2Api=(e,t={},n)=>(0,a._)(void 0,void 0,void 0,function*(){var l;let a;let r=n?"":null===(l=document.cookie.split("; ").find(e=>e.startsWith(h)))||void 0===l?void 0:l.split("=")[1];try{t.body instanceof FormData&&(t.body.append("ga_client_id",(0,c.ej)("_ga")||""),t.body.append("referrer",window.location.href)),a=yield fetch(getSSOV2ApiUrl(e),r?Object.assign(Object.assign({},t),{headers:Object.assign({Authorization:`Bearer ${r}`},null==t?void 0:t.headers)}):t)}catch(e){return console.error(e),null}return null==a?void 0:a.json()}),fetchSSOV2ApiJson=(e,t,n)=>(0,a._)(void 0,void 0,void 0,function*(){var l;let a;let r=n?"":null===(l=document.cookie.split("; ").find(e=>e.startsWith(h)))||void 0===l?void 0:l.split("=")[1];try{a=yield fetch(getSSOV2ApiUrl(e),{method:"POST",headers:Object.assign({Accept:"application/json","Content-Type":"application/json"},r?{Authorization:`Bearer ${r}`}:{}),body:JSON.stringify(t)})}catch(e){return console.error(e),null}return null==a?void 0:a.json()}),fetchSSOApi=(e,t={},n)=>(0,a._)(void 0,void 0,void 0,function*(){var l;let a;let r=n?"":null===(l=document.cookie.split("; ").find(e=>e.startsWith(h)))||void 0===l?void 0:l.split("=")[1];try{a=yield fetch(getSSOApiUrl(e),r?Object.assign(Object.assign({},t),{headers:Object.assign({Authorization:`Bearer ${r}`},null==t?void 0:t.headers)}):t)}catch(e){return console.error(e),null}return null==a?void 0:a.json()}),resetPassword=(e,t)=>(0,a._)(void 0,void 0,void 0,function*(){let n=new FormData;return n.append("password",e),n.append("confirm-password",t),fetchSSOV2Api(d.RESET_PASSWORD,{method:"POST",body:n})}),checkUserExist=({email:e,phone:t})=>(0,a._)(void 0,void 0,void 0,function*(){let n=new FormData;return e?n.append("email",e):n.append("phone_number",t),fetchSSOV2Api(d.CHECK_USER_EXIST,{method:"POST",body:n})}),updateUserInfo=e=>(0,a._)(void 0,void 0,void 0,function*(){let t=new FormData;return Object.keys(e).forEach(n=>{let l=e[n];null!=l&&("string"!=typeof l||l.trim())&&t.append(n,e[n])}),fetchSSOV2Api(d.SETUP_USER_INFO,{method:"POST",body:t})}),g=r.y?"289442006438-040a42cbidr6v5d178f3iqi9q95821r3.apps.googleusercontent.com":"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",E="2759888574045636",getUserInfo=()=>(0,a._)(void 0,void 0,void 0,function*(){return fetchSSOApi("user/profile",{method:"POST"})}),handleAuthSuccess=e=>{let t=getSSOCurrentLocale();(null==e?void 0:e.token)&&(0,c.d8)(h,e.token,{domain:"localhost"===window.location.hostname?"localhost":`.${u.v[t]}`,expires:new Date(1e3*e.expire_in).toUTCString()}),(null==e?void 0:e.refresh_token)&&(0,c.d8)(o.k,e.refresh_token,{domain:"localhost"===window.location.hostname?"localhost":`.${u.v[t]}`})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.