"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5308],{"wy+U":function(e,t,r){r.d(t,{A:function(){return ArrowRightBlue},C:function(){return Clinic},D:function(){return DoctorExpertiseItem},I:function(){return InsuranceList},P:function(){return PaymentList},a:function(){return DoctorInfoExpertise}});var n=r("q1tI"),a=r("rBCA"),l=r("iBNF"),i=r("MmHG"),o=r("xXM3"),c=r.n(o),s=r("R7WV"),d=r("wp0n");let ArrowRightBlue=e=>n.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 6 10",fill:"none"},e),n.createElement("path",{d:"M1 9L5 5L1 1",stroke:"#2D87F3",strokeWidth:1.75,strokeLinecap:"round",strokeLinejoin:"round"})),p=a.Z.ul` display: grid; grid-gap: 16px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); list-style: none; `,u=a.Z.li` p { margin-top: 8px; text-align: center; } .insuranceLogo { display: grid; height: 58px; border: 1px solid ${l.r.colors.neutral200}; border-radius: 6px; place-content: center; > img { width: 93px; height: 43px; object-fit: contain; } } `,InsuranceList=({insurances:e,className:t,isName:r=!0})=>e.length?n.createElement(p,{id:"insurance-list",className:t},e.map(e=>n.createElement(u,{className:"insuranceItem",key:e.id},n.createElement("div",{className:"insuranceLogo"},n.createElement("img",{src:e.logo,alt:e.name||"insurance-logo"})),r&&n.createElement(i.T,{size:"base",color:l.r.colors.gray500,type:"bold"},e.name)))):null,h=a.Z.div` display: flex; flex-wrap: wrap; gap: 7px; &.paymentList { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); justify-content: center; } `,m=a.Z.div` border: 1px solid ${l.r.colors.neutral100}; border-radius: 12px; width: 80px; min-height: 80px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; &.payment-item-mobile { width: 100%; } .logo { position: relative; width: 55px; aspect-ratio: 55 / 32; object-fit: contain; } .txt-caption-1 { font-size: 0.6875rem; line-height: 1rem; color: ${l.r.colors.gray800}; } `,PaymentList=({payments:e,className:t,isName:r=!0,isMobile:a=!1})=>e.length?n.createElement(h,{id:"payment-container",className:c()(t,{paymentList:a&&e.length>=4})},e.map(t=>n.createElement(m,{className:c()("payment-item",{"payment-item-mobile":a&&e.length>=4}),key:t.id},n.createElement(s.I,{className:"logo",src:t.logo,alt:t.name}),r&&n.createElement("div",{className:"txt-caption-1"},t.name)))):null,Clinic=e=>n.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none"},e),n.createElement("path",{d:"M4.89646 16.9996H2.96549C2.43225 16.9996 2 16.5674 2 16.0341V12.6549C2 12.1217 2.43225 11.6895 2.96549 11.6895H4.89646",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M15.0342 11.6895H16.9652C17.4984 11.6895 17.9306 12.1217 17.9306 12.6549V16.0341C17.9306 16.5674 17.4984 16.9996 16.9652 16.9996H15.0342",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M5.86197 3H14.0686C14.6015 3 15.0341 3.43263 15.0341 3.96549V16.9995H4.89648V3.96549C4.89648 3.43263 5.32912 3 5.86197 3Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M11.172 13.6206H8.7583V16.9998H11.172V13.6206Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M9.96533 9.99996V5.65527",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M12.1377 7.82764H7.79297",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),g=a.Z.div` display: flex; gap: 8px; .icon { width: 1.25rem; height: 1.25rem; color: ${l.r.colors.gray400}; flex-shrink: 0; } .doctor-info-item-content { display: flex; flex-direction: column; gap: 10px; } `;(0,a.Z)(Clinic)` width: 1.25rem; height: 1.25rem; `;let f=a.Z.div` display: flex; flex-direction: column; gap: 4px; `,DoctorExpertiseItem=e=>{let{doctorInfo:t,Icon:r,title:a}=e;return n.createElement(g,null,n.createElement(r,{className:"icon"}),n.createElement(f,null,n.createElement(d.T,{size:"p3",weight:"semiBold",color:"#111111"},a),n.createElement("div",{className:"doctor-info-item-content"},(Array.isArray(t)?t:[t]).map(e=>n.createElement(d.T,{size:"p3",weight:"regular",key:e},e)))))},E=a.Z.div` display: flex; padding: 1rem; width: 100%; justify-content: space-between; `,b=a.Z.div` display: flex; flex-direction: column; gap: 2px; `,DoctorInfoExpertise=e=>{let{name:t,specialty:r,experience:a,profileImage:l}=e;return n.createElement(E,null,n.createElement(b,null,n.createElement(d.T,{size:"title2",weight:"semiBold",color:"#111111"},t),n.createElement("div",null,r&&n.createElement(d.T,{size:"c1",weight:"regular"},r),a&&n.createElement(d.T,{size:"c1",weight:"regular"},a))),n.createElement(s.I,{src:l,alt:t,style:{width:"4.5rem",height:"4.5rem",borderRadius:"50%",objectFit:"cover"}}))}},fdQd:function(e,t,r){r.d(t,{A:function(){return Avatar},B:function(){return Breadcrumbs},C:function(){return CaretDown},D:function(){return eh},E:function(){return ErrorIcon},F:function(){return Flag},I:function(){return ej},N:function(){return NumberInput},O:function(){return ez},P:function(){return eV},R:function(){return Radio},S:function(){return en},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 eE},i:function(){return ErrorBoundary},j:function(){return eZ},k:function(){return eR},l:function(){return Accordion},m:function(){return em},o:function(){return Popover},s:function(){return eB},u:function(){return ec}});var n=r("FRPj"),a=r("q1tI"),l=r("e0pn"),i=r("/npG"),o=r("mYVa"),c=r("F9pO"),s=r("gHhT"),d=r("gxre"),p=r("CmzK"),u=r("RZSM"),h=r("8vDj"),m=r("Eso5"),g=r("eRSo"),f=r("bpvy"),E=r("jUTz"),b=r("QJsO"),v=r("nVa/"),y=r("9Igr"),C=r("HXNK"),w=r("5LCj"),x=r("SPK5"),L=r("iuhU"),k=r("J8Dw"),I=r("aDCK"),S=r("L0nm"),j=r("nI05"),M=r("0Tuv"),O=r("LES+"),R=r("9n+W"),Z=r("1z9F"),$=r("GjY/"),z=r("ChHM"),F=r("jD9D"),H=r("xjta"),B=r("Iblh"),V=r("nGnw"),T=r("ZLal"),N=r("R7WV"),A=r("rBCA"),D=r("Zdfy"),P=r("wp0n"),_=r("XFb3"),q=r("iBNF"),W=r("nfB/"),U=r("xXM3"),G=r.n(U),J=r("+PHJ"),Y=r("g35t"),Q=r("tiWT"),K=r("AeFk"),X=r("m42D"),ee=r("oTwY"),et=r("8wjV"),er=(0,i.k)((e,{variantStyle:t})=>{let r=t===T.C.LEADGEN,n={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},r&&Object.assign(Object.assign({borderRadius:8},n),{color:"#111111","&::placeholder":Object.assign(Object.assign({},n),{fontSize:(0,o.h)(13),lineHeight:(0,o.h)(20),letterSpacing:"-0.3px",color:e.colors.gray[4]})}))}});let en=(0,a.forwardRef)((e,t)=>{var{keepSearch:r=!1}=e,l=(0,n._)(e,["keepSearch"]);return r?a.createElement(ea,Object.assign({},l,{ref:t})):a.createElement(el,Object.assign({},l,{ref:t}))}),ea=(0,a.forwardRef)((e,t)=>{var{value:r,defaultValue:l,onChange:i,clearable:o}=e,p=(0,n._)(e,["value","defaultValue","onChange","clearable"]);let[u,h]=(0,Z.C)({value:r,defaultValue:l,onChange:i});return a.createElement(c.F,Object.assign({ref:t,rightSection:a.createElement(s.E,{src:V.C.getAssetPath("chevron-down.svg"),fit:"none"}),size:"md",maxDropdownHeight:300,onChange:e=>h(e),value:u},p,o&&(null==u?void 0:u.length)>0?{rightSection:a.createElement(d.A,{onClick:()=>{h("")},sx:{cursor:"pointer"}},a.createElement(_IconSelect,null))}:{}))}),el=(0,a.forwardRef)((e,t)=>{var{searchValue:r,onSearchChange:i,styles:o}=e,c=(0,n._)(e,["searchValue","onSearchChange","styles"]);let s=(0,T.u)(),{classes:u}=er({variantStyle:s},{name:"MantineSelect",styles:o}),[h,m]=(0,Z.C)({defaultValue:"",value:r,onChange:i});return a.createElement(p.Ph,Object.assign({classNames:{input:u.input},ref:t,rightSection:a.createElement(l.Z,{size:18}),rightSectionProps:{style:{pointerEvents:"none"}},size:"md",maxDropdownHeight:300,onSearchChange:e=>m(e),searchValue:h},c,c.clearable&&(null==h?void 0:h.length)>0?{rightSection:a.createElement(d.A,{onClick:()=>{m("")},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.6665 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:r}=e,l=(0,n._)(e,["slidesToShow","children"]);let i=Array.isArray(r)?r.length:1;return i?a.createElement(ErrorBoundary,null,a.createElement(D.l,Object.assign({slideSize:String(Math.floor(1/t*1e4)/100)+"%",containScroll:"trimSnaps"},l),r)):null};Carousel.Slide=D.l.Slide;let ei=(0,A.Z)(Carousel)` cursor: grab; width: 100%; .mantine-Carousel-control { background: rgb(255, 255, 255); opacity: 1; border: none; border-radius: 0; box-shadow: none; &[data-inactive] { opacity: 0; cursor: default; } &:first-child { padding-right: 24px; background: linear-gradient( 90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100% ); } &:last-child { padding-left: 24px; background: linear-gradient( 270deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100% ); } } .mantine-Carousel-container { align-items: center; } `;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:r,className:l}=e,i=(0,n._)(e,["color","styles","className"]);let{classes:o,cx:c}=eo({color:t},{name:"Anchor",styles:r});return a.createElement(P.T,Object.assign({as:"a",className:c(o.root,l)},i))},BreadcrumbItem=e=>{var{children:t}=e,r=(0,n._)(e,["children"]);return a.createElement(Anchor,Object.assign({size:"p4",color:"gray.8"},r),t)},AspectRatio=e=>a.createElement(u.o,Object.assign({sx:{borderRadius:4,overflow:"hidden","> img":{objectFit:"contain"}}},e)),Breadcrumbs=e=>{var t,{children:r,showHomeIcon:l=!0,homeIconHref:i="/"}=e,o=(0,n._)(e,["children","showHomeIcon","homeIconHref"]);let c=(0,h.rZ)(),s=(null===(t=null==c?void 0:c.other)||void 0===t?void 0:t.template)==="mb",[d,p]=(0,a.useState)(null),{isMobile:u}=(0,N.u)(),[,f]=(0,a.useState)(!0),E=(0,a.useCallback)(()=>{f(!1)},[]),b=(0,a.useCallback)(()=>{setTimeout(()=>{f(!0)},1e3)},[]);return(0,a.useEffect)(()=>(d&&(d.on("scroll",E),d.on("pointerUp",b)),()=>{d&&(d.off("scroll",E),d.on("pointerUp",b))}),[d,E,b]),a.createElement(ei,Object.assign({align:"center",slideGap:"xs",dragFree:!0,draggable:u,slideSize:"0",getEmblaApi:p,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),l&&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(m.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 12.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"}))},r)))};Breadcrumbs.Item=BreadcrumbItem;var ec=(0,i.k)((e,{variantStyle:t})=>{let r=t===T.C.LEADGEN,n={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},r&&Object.assign(Object.assign({borderRadius:8},n),{color:"#111111","&::placeholder":Object.assign(Object.assign({},n),{fontSize:(0,o.h)(15),lineHeight:(0,o.h)(24),letterSpacing:"-0.3px",color:e.colors.gray[4]})}))}});let es=(0,A.Z)(f.U)` .mantine-Accordion-label { padding: 0; } .mantine-Accordion-control { &:hover { background-color: transparent; } } .mantine-Accordion-item { .mantine-Accordion-chevron { > div { background-repeat: no-repeat; width: 16px; height: 16px; background-position: center; background-image: url(${e=>e.closeChevron||V.C.getAssetPath("plus-icon.svg")}); } } &[data-active='true'] { .mantine-Accordion-chevron { > div { background-image: url(${e=>e.openChevron||V.C.getAssetPath("minus-icon.svg")}); } } } } .mantine-Accordion-panel { border-radius: ${q.r.borderRadius}; } .mantine-Accordion-content { white-space: pre-wrap; } `,Accordion=e=>{var{children:t}=e,r=(0,n._)(e,["children"]);return a.createElement(es,Object.assign({chevron:a.createElement("div",null),disableChevronRotation:!0,transitionDuration:300},r),t)};Accordion.Control=f.U.Control,Accordion.Item=f.U.Item,Accordion.Panel=f.U.Panel;let ed=V.C.getAssetPath("avatar.jpg"),Avatar=e=>{var{withIndicator:t=!1,indicatorConfig:r=null,size:l=56,children:i,styles:o,placeholderText:c}=e,s=(0,n._)(e,["withIndicator","indicatorConfig","size","children","styles","placeholderText"]);let generateAvatar=()=>a.createElement(E.q,Object.assign({size:l,radius:"xl"},s,{imageProps:Object.assign({loading:"lazy"},s.imageProps),styles:{placeholder:{backgroundColor:s.color,color:"white"}}}),i||c||a.createElement(N.I,{src:ed,width:l,alt:s.alt||"avatar"}));return t?a.createElement(b.z,Object.assign({inline:!0,position:"bottom-end",offset:9},r,{styles:Object.assign({indicator:{backgroundColor:a.isValidElement(r.label)&&"transparent",zIndex:1}},o)}),generateAvatar()):generateAvatar()},ep={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 eu=(0,i.k)((e,{variantStyle:t,size:r})=>{let n=t===T.C.LEADGEN,a=ep[r]||{},l=n?"sm"===r?{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),l),"&: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(r){case"lg":return Object.assign({fontSize:(0,o.h)(16)},n&&{fontSize:(0,o.h)(15)});case"md":return Object.assign({fontSize:(0,o.h)(14)},n&&{fontSize:(0,o.h)(15),letterSpacing:"-0.3px"});case"sm":return Object.assign({height:32,fontSize:(0,o.h)(14),lineHeight:"22px"},n&&{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 eh=300,em=(0,y.Z)({key:"mantine",prepend:!1}),NumberInput=e=>{var{value:t,onChange:r,size:l="md",styles:i,classNames:o}=e,c=(0,n._)(e,["value","onChange","size","styles","classNames"]);let[s,d]=(0,a.useState)(t),[p]=(0,$.c)(s,eh),u=(0,T.u)(),{classes:h}=eu({variantStyle:u,size:l},{name:"MantineInput",styles:i,classNames:o});return(0,a.useEffect)(()=>{null==r||r(p)},[p]),(0,a.useEffect)(()=>{d(t)},[t]),a.createElement(C.Y,Object.assign({stepHoldDelay:500,stepHoldInterval:e=>Math.max(1e3/Math.pow(e,2),25),onChange:d,hideControls:!0,min:0,formatter:e=>0===Number(e)?e:e||"",removeTrailingZeros:!0,value:s},c,{size:l,classNames:{input:h.input,rightSection:h.rightSection}}))},eg=V.C.getAssetPath("EyeVisible.svg"),ef=V.C.getAssetPath("EyeHidden.svg"),RenderVisibleToggleIcon=({reveal:e,size:t})=>a.createElement("img",{src:e?eg:ef,style:{width:t,height:t},loading:"lazy"}),eE=(0,a.forwardRef)((e,t)=>{let{size:r="md",visibilityToggleIcon:l}=e,i=(0,n._)(e,["size","visibilityToggleIcon"]);return a.createElement(w.W,Object.assign({ref:t,size:r,visibilityToggleIcon:l||RenderVisibleToggleIcon},i,{className:`input-control ${(null==i?void 0:i.className)||""}`}))}),ErrorIcon=e=>{var{size:t}=e,r=(0,n._)(e,["size"]);let l=Object.assign({width:t,height:t},r);return a.createElement("svg",Object.assign({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l),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:q.r.colors.gray600,activeColor:q.r.colors.primaryBase};let ErrorLabel=e=>{var{label:t,withIcon:r,textProps:l}=e,i=(0,n._)(e,["label","withIcon","textProps"]);return a.createElement(x.k,Object.assign({align:"center",gap:4},i),r&&a.createElement(ErrorIcon,{size:12}),a.createElement(P.T,Object.assign({size:"c1",variant:"error",dangerouslySetInnerHTML:{__html:t}},l)))},eb=(0,a.createContext)({}),ev=K.iv` height: 100% !important; min-height: calc(var(--container-height, 56px) * 24 / 56); line-height: calc(var(--container-height, 56px) * 24 / 56); border: none !important; border-radius: 0 !important; outline: none !important; box-shadow: none !important; padding: 0; cursor: pointer; opacity: 0; ::placeholder { color: ${q.r.colors.gray400}; } `,ey=K.iv` height: auto !important; cursor: text; opacity: 1; transition: 0.1s ease-in-out all; `,eC=K.iv` position: absolute; top: calc(var(--container-height) / 2); left: var(--space-x, 16px); margin: 0; z-index: 1; cursor: pointer; transform: translateY(-50%); transition: 0.125s ease-in all; `,ew=K.iv` top: var(--space-y-shrink, 6px); transform: none; transition: 0.125s ease-out all; `,ex=K.iv` min-height: var(--container-height, 56px); display: flex; align-items: flex-end; border: 1px solid ${q.r.colors.gray200}; border-radius: 8px; background-color: #fff; padding-inline: var(--space-x, 16px); padding-block: var(--space-y-not-shrink, 16px); cursor: pointer; pointer-events: none; &:has(.mantine-Input-rightSection) { padding-right: var(--container-height, 56px); } .mantine-Input-icon { display: none; } .mantine-NumberInput-control { border-color: ${q.r.colors.gray200}; } `,eL=K.iv` height: auto; min-height: var(--container-height, 56px); padding-block: var(--space-y-shrink, 6px); cursor: text; pointer-events: auto; `,ek=K.iv` color: ${q.r.colors.red800}; font-size: 12px; line-height: 1.5; `,eI=A.Z.div` --space-x: 16px; --space-y-not-shrink: 15px; --space-y-shrink: 6px; --container-height: 56px; --label-not-shrink: 16px; --label-shrink: 12px; --input: 15px; position: relative; min-width: 100px; max-width: 100%; display: inline-block; .textField_wrapper { display: inline-block; width: 100%; cursor: pointer; } .mantine-InputWrapper-root { &[data-invalid='true'] { .mantine-Input-wrapper { border-color: ${q.r.colors.red400}; } } .mantine-Input-wrapper { &:has([data-invalid]) { border-color: ${q.r.colors.red400}; } } } .mantine-InputWrapper-label { ${eC} } .mantine-Input-wrapper { ${ex} + .mantine-Popover-dropdown[data-position="bottom-start"] { left: 0 !important; } + .mantine-Popover-dropdown[data-position='top-start'] { top: unset !important; left: 0 !important; bottom: 100% !important; } } .mantine-Input-input { ${ev} } &.textField_shrink { .mantine-InputWrapper-label { ${ew} } .mantine-Input-wrapper { ${eL} &.mantine-Select-wrapper { .mantine-Select-rightSection { pointer-events: auto !important; } } } .mantine-Input-input { ${ey} } &:has(.PhoneInput) { .mantine-InputWrapper-label { left: var(--space-x, 16px); } .PhoneInput { .PhoneInputInput { opacity: 1; } } } } &:focus-within { .mantine-Input-wrapper { transition: 0.25s linear border; border-color: ${q.r.colors.primary600}; box-shadow: 0 0 4px ${q.r.colors.primary200}; } } .PhoneInput { --phone-select: 75px; --phone-input-space-x: 8px; width: 100%; opacity: 1; border: none; .PhoneInputCountry { background-color: transparent; border: none; padding: 0; width: var(--phone-select, 75px); } .PhoneInputInput { flex: 1; min-width: 0; line-height: 1.5; outline: none !important; border: none; box-shadow: none; font-size: var(--input, 15px); padding: 0 var(--phone-input-space-x, 8px); opacity: 0; color: ${q.r.colors.gray800} !important; :focus { color: ${q.r.colors.gray800} !important; } } } &:has(.PhoneInput) { .mantine-InputWrapper-label { left: calc( var(--space-x, 16px) + var(--phone-select, 75px) + var(--phone-input-space-x, 8px) ); } } .icon { position: absolute; top: calc(var(--container-height) / 2); right: var(--space-x, 16px); transform: translateY(-50%); transition: 0.125s ease-in all; &.shrink { top: calc(var(--container-height) / 2 - 4px); transform: translateY(0); } } `;A.Z.div` &.leadgen-form_checkbox, &.leadgen-form_radio { width: 100%; } &.leadgen-form_dropdown { width: calc(50% - 12px); } .mantine-InputWrapper-root { display: block; } .mantine-InputWrapper-label { margin-bottom: 0.5rem; color: ${q.r.colors.gray800}; font-size: 16px; font-weight: 400; line-height: 1.5; } .mantine-Radio-root, .mantine-Checkbox-root { gap: 8px; min-width: calc(50% - 4px); // input[type='radio'], // input[type='checkbox'] { // border-color: ${q.r.colors.gray600}; // width: 18px; // height: 18px; // } // input[type='checkbox'] { // border-radius: 4px; // } // &[data-checked='true'] { // input[type='radio'], // input[type='checkbox'] { // border-color: ${q.r.colors.primary600}; // } // input[type='radio'] { // background-color: white; // } // } .mantine-Checkbox-input { &:checked { border-color: ${q.r.colors.primary600}; } } } .leadgen-choiceContainer { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; } .mantine-InputWrapper-error { ${ek} } `,A.Z.div` position: absolute; top: calc(var(--container-height) / 2); right: var(--space-x, 16px); `;let FloatingLabelControl=e=>{let{shrink:t,onChangeShrink:r,children:l,className:i}=e,o=(0,n._)(e,["shrink","onChangeShrink","children","className"]),[c,s]=(0,a.useState)(t),[d,p]=(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:r,hasIcon:d,setHasIcon:p}},o),a.createElement(eI,Object.assign({shrink:c,className:(0,L.default)(i,"textField",{textField_shrink:!!c})},o),l))};FloatingLabelControl.Control=e=>{let{shrink:t,shrinkProps:r,onChangeShrink:n,setShrink:l,hasIcon:i}=(0,a.useContext)(eb),{children:o}=e,c=(0,z.O)(()=>{r||(l(!1),null==n||n(!1))}),focusInput=e=>{let t=e.querySelectorAll('input:not([disabled]):not([type="submit"]),select:not([disabled]),textarea:not([disabled])'),r=t.item(t.length-1);r&&r.focus({preventScroll:!0})},s=(0,a.useCallback)(e=>{if(t){e.preventDefault(),focusInput(e.currentTarget);return}l(!0),null==n||n(!0),focusInput(e.currentTarget)},[t]);return(0,a.useEffect)(()=>{l(r)},[r]),a.createElement(m.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:r}=(0,a.useContext)(eb),n=(0,h.rZ)();return(0,a.useEffect)(()=>{e&&r(!0)},[]),e?a.createElement(e,{className:`icon ${t?"shrink":""}`,shrink:t,size:24,color:n.colors.gray[9]}):null};let eS=(0,a.forwardRef)((e,t)=>{var{label:r,value:l,onChange:i,onChangeRaw:o,maxLength:c,withFloatingLabel:s,styles:d,error:p,size:u="md"}=e,h=(0,n._)(e,["label","value","onChange","onChangeRaw","maxLength","withFloatingLabel","styles","error","size"]);let m=(0,T.u)(),{classes:g}=eu({variantStyle:m,size:u},{name:"MantineInput",styles:d}),[f,E]=(0,a.useState)(l||""),[b]=(0,$.c)(f,eh);(0,a.useEffect)(()=>{null==i||i(b)},[b]),(0,a.useEffect)(()=>{E(l)},[l]);let v=Object.assign(Object.assign({classNames:{input:g.input,rightSection:g.rightSection},ref:t,size:u,onChange:e=>{"number"==typeof c&&e.currentTarget.value.length>c||(null==o||o(e),E(e.currentTarget.value))},value:f,label:r,error:p},h),{maxLength:c,className:`input-control ${(null==h?void 0:h.className)||""}`});return s?a.createElement(FloatingLabelControl,{shrink:!!f},a.createElement(FloatingLabelControl.Control,null,({shrink:e})=>a.createElement(k.o,Object.assign({},v,{error:p&&a.createElement(ErrorLabel,{label:String(p)}),inputWrapperOrder:["label","input","description","error"],label:a.createElement(P.T,{size:e?"p3":"p2",variant:"secondary",weight:"halfBold"},r),styles:e=>({input:Object.assign(Object.assign({},(0,T.G)(e)[T.C.LEADGEN].p2),{color:e.colors.gray[9],fontWeight:T.F.halfBold})})})))):a.createElement(k.o,Object.assign({},v))}),ej=eS;ej.File=e=>a.createElement(v.S,Object.assign({size:"md"},e)),ej.Password=eE,ej.Number=NumberInput,ej.Wrapper=I.I.Wrapper;let eM=D.l.Slide,eO=(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:r,blurFromIndex:l,blurLength:o=3,maxBlurOpacity:c=.5,onSlideChange:s,selectSlideWhenClick:d}=e,p=(0,n._)(e,["children","blurFromCenter","blurFromIndex","blurLength","maxBlurOpacity","onSlideChange","selectSlideWhenClick"]);let{width:u}=(0,F.n)(),[h]=(0,H.y)(),m=(0,a.useRef)(null),[g,f]=(0,a.useState)(0),handleStyle=()=>{var e,t,n,a,i;let s=(null===(e=null==m?void 0:m.current)||void 0===e?void 0:e.slideNodes())||[];if((null===(t=null==m?void 0:m.current)||void 0===t?void 0:t.slideNodes().length)<=(null===(n=null==m?void 0:m.current)||void 0===n?void 0:n.slidesInView().length))return s.map(e=>{e.classList.remove("center-slide"),e.style.opacity="1"}),!1;let d=null===(a=null==m?void 0:m.current)||void 0===a?void 0:a.selectedScrollSnap();f(d);let p=s.length,u=null===(i=null==m?void 0:m.current)||void 0===i?void 0:i.slidesInView(),h=u.length,g=r?l+o-1:Math.floor(h/2),E=d+g,b=E===p?0:E>p?E-p:E,v=d-g,y=v<0?p+v:v>0?d-g:0,C=[...new Set(Array(2*g+1).fill("").map((e,t)=>findIndexFromLeftSide(y+t,p)))];s.map((e,t)=>{if(t===d?e.classList.add("center-slide"):e.classList.remove("center-slide"),-1!==C.indexOf(t)){let r=c/o;for(let n=0;n{(null==m?void 0:m.current)&&handleStyle()},[u]);let E=(0,i.k)(()=>{var e,t;return{control:Object.assign({},(null===(e=null==m?void 0:m.current)||void 0===e?void 0:e.slideNodes().length)<=(null===(t=null==m?void 0:m.current)||void 0===t?void 0:t.slidesInView().length)&&{display:"none"})}}),{classes:b}=E();return a.createElement(eO.Provider,{value:{slider:null==m?void 0:m.current,centerSlide:g,selectSlideWhenClick:d}},a.createElement(D.l,Object.assign({classNames:{control:b.control},ref:h,slideSize:"auto",containScroll:"trimSnaps"},{getEmblaApi:e=>{m.current=e},onSlideChange:e=>{handleStyle(),null==s||s(e)}},p,{loop:!0}),"function"==typeof t?t(g):t))};CentralCarousel.Slide=e=>{var{children:t,onClick:r,innerSlideProps:l}=e,i=(0,n._)(e,["children","onClick","innerSlideProps"]);let{slider:o,selectSlideWhenClick:c}=(0,a.useContext)(eO),s=(0,a.useRef)(),d=(0,a.useRef)(""),[p,u]=(0,a.useState)(0);(0,a.useEffect)(()=>{d.current=String(Math.round(1e4*Math.random()))},[]),(0,a.useEffect)(()=>{let e=(null==o?void 0:o.slideNodes())||[];u(e.findIndex(e=>e.dataset.key===d.current))},[o]);let h={ref:s,"data-key":d.current,"data-index":p};return a.createElement(eM,Object.assign({},h,i),a.createElement("div",Object.assign({style:{height:"100%"},onClick:()=>{c&&(null==o||o.scrollTo(p)),null==r||r(p)}},l),t))};let CheckboxWithState=e=>{var{size:t=24,isSolid:r,isActive:l}=e,i=(0,n._)(e,["size","isSolid","isActive"]);return 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 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"})):l?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:r,size:l,styles:i}=e,o=(0,n._)(e,["color","label","size","styles"]);let c=(0,h.rZ)(),s=(0,T.u)(),d=(0,a.useMemo)(()=>{var e,r;return((null==t?void 0:t.includes("."))?null===(e=c.colors[t.split(".")[0]])||void 0===e?void 0:e[t.split(".")[1]]:null===(r=c.colors[t])||void 0===r?void 0:r[c.primaryShade||6])||c.colors.blue[6]},[t]),p=s===T.C.LEADGEN,u=p?20:l;return a.createElement(S.X,Object.assign({color:t,size:u,label:p?a.createElement(P.T,{size:"p2",color:c.colors.gray[8]},r):r,icon:p?e=>{var t=(0,n._)(e,[]);return a.createElement(a.Fragment,null,a.createElement(CheckboxWithState,Object.assign({"data-icon":"true","data-default":"true",size:u},t)),a.createElement(CheckboxWithState,Object.assign({"data-icon":"true","data-hover":"true",isActive:!0,size:u},t)),a.createElement(CheckboxWithState,Object.assign({"data-icon":"true","data-checked":"true",isSolid:!0,size:u},t)))}:void 0,styles:Object.assign({input:Object.assign({"&:hover":{border:`1px solid ${d}`}},p&&{width:u,height:u,backgroundColor:"transparent",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},"& ~ [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({},p&&{paddingLeft:8}),body:Object.assign({},p&&{alignItems:"flex-start"}),inner:Object.assign({},p&&{paddingTop:2,width:u,height:24})},i)},o))};Checkbox.Group=S.X.Group;let eR=(0,A.Z)(j.i)` ${e=>{let t=e.color||q.r.colors.primaryBase;return` .mantine-Slider-bar { background-color: ${t}; } .mantine-Slider-thumb { border-color: ${t}; color: ${t}; } `}} [data-theme='marryBaby'] & { ${e=>{let t=e.color||q.r.mbColors.pink;return` .mantine-Slider-bar { background-color: ${t}; } .mantine-Slider-thumb { border-color: ${t}; color: ${t}; } `}} } .mantine-Slider-label { background-color: transparent; color: #000; font-size: 14px; font-weight: bold; } `,eZ=A.Z.div` display: flex; align-items: center; .hhg-mantine-slider { flex-grow: 1; } button { path:not([stroke]) { stroke: ${q.r.colors.primaryBase}; } } [data-theme='marryBaby'] & { button { path:not([stroke]) { stroke: ${q.r.mbColors.pink}; } } } `,RadioWithState=e=>{var{size:t=24,isSolid:r,isActive:l}=e,i=(0,n._)(e,["size","isSolid","isActive"]);return 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 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"})):l?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:r,size:l,styles:i}=e,o=(0,n._)(e,["color","label","size","styles"]);let c=(0,h.rZ)(),s=(0,T.u)(),d=(0,a.useMemo)(()=>{var e,r;return((null==t?void 0:t.includes("."))?null===(e=c.colors[t.split(".")[0]])||void 0===e?void 0:e[t.split(".")[1]]:null===(r=c.colors[t])||void 0===r?void 0:r[c.primaryShade||6])||c.fn.primaryColor()},[t]),p=s===T.C.LEADGEN,u=p?20:l;return a.createElement(M.Y,Object.assign({label:p?a.createElement(P.T,{size:"p2",color:c.colors.gray[8]},r):r,size:u,icon:p?e=>{var t=(0,n._)(e,[]);return a.createElement(a.Fragment,null,a.createElement(RadioWithState,Object.assign({"data-icon":"true","data-default":"true",size:u},t)),a.createElement(RadioWithState,Object.assign({"data-icon":"true","data-hover":"true",isActive:!0,size:u},t)),a.createElement(RadioWithState,Object.assign({"data-icon":"true","data-checked":"true",isSolid:!0,size:u},t)))}:void 0,styles:Object.assign({radio:Object.assign({"&:hover, &:checked":{border:`1px solid ${d}`},"&:checked + .___ref-icon":{top:"50%",left:"50%",transform:"scale(1) translate(-50%, -50%)"}},p&&{width:u,height:u,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},"& ~ [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:d},label:Object.assign({},p&&{paddingLeft:8})},i)},o))};function transferValueToOtp(e,t=6){let r=Array(t).fill("");if(e){let t=e.toString().split("");r.map((e,n)=>{t[n]&&(r[n]=t[n]||"")})}return r}function transferOtpToValue(e){return e.join("")}Radio.Group=M.Y.Group;let e$=(0,a.forwardRef)((e,t)=>{let{maxLength:r=1,placeholder:l,className:i}=e,o=(0,n._)(e,["maxLength","placeholder","className"]);return a.createElement("input",Object.assign({maxLength:r,className:G()("Ia6IojY","otpInput",i),placeholder:l,type:"number"},o,{ref:t}))}),ez=(0,a.forwardRef)((e,t)=>{let{valueLength:r=6,type:n="number",value:l,defaultValue:i,placeholder:o,onChange:c,onBlur:s,otpShareProps:d}=e,p=(0,a.useRef)(Array(r).fill(null)),[u,h]=(0,a.useState)(i||l),[m,g]=(0,a.useState)(-1),[f,E]=(0,a.useState)(()=>transferValueToOtp(u,r)),b=(0,a.useCallback)(()=>{if(-1===m)return;let e=p.current[m];e&&(e.value="",f[m]="",E(f),h(()=>transferOtpToValue(f)),null==c||c(transferOtpToValue(f)))},[m,c,f]),v=(0,a.useCallback)(()=>{if(0===m)return;let e=p.current[m];e&&e.blur();let t=p.current[m-1];t&&t.focus()},[m]),y=(0,a.useCallback)(()=>{if(m===r-1)return;let e=p.current[m];e&&e.blur();let t=p.current[m+1];t&&t.focus()},[m,r]),C=(0,a.useCallback)(e=>{let t=e.target,r=t.value,n=r.toString().slice(0,1),a=p.current.findIndex(e=>e===t);-1!==a&&(f[a]=n,E(f),h(()=>transferOtpToValue(f)),null==c||c(transferOtpToValue(f))),y()},[y,c,f]),w=(0,a.useCallback)(e=>{let t=e.target,r=p.current.findIndex(e=>e===t);"number"===n?t.select():t.setSelectionRange(0,t.value.length,"backward"),-1!==r&&g(r)},[]),L=(0,a.useCallback)(e=>{let t=e.clipboardData.getData("text/plain"),n=transferValueToOtp(t,r),a=transferOtpToValue(n);E(n),h(a),null==c||c(a)},[c,n,r]),k=(0,a.useCallback)(e=>{8===e.keyCode||"Backspace"===e.key?(e.preventDefault(),b(),v()):46===e.keyCode||"Delete"===e.key?(e.preventDefault(),b()):37===e.keyCode||"ArrowLeft"===e.key?(e.preventDefault(),v()):39===e.keyCode||"ArrowRight"===e.key?(e.preventDefault(),y()):(32===e.keyCode||" "===e.key||"Spacebar"===e.key||"Space"===e.key)&&e.preventDefault()},[b,y,v]);return(0,a.useImperativeHandle)(t,()=>p.current[0],[]),(0,a.useEffect)(()=>{E(()=>transferValueToOtp(l,r)),h(l)},[r,l]),a.createElement(x.k,{justify:"center",columnGap:8,className:G()("_2iQs0sk","otpContainer")},f.map((e,t)=>a.createElement(e$,Object.assign({},d,{ref:e=>{p.current[t]=e},key:""+t,value:e,type:n,onChange:C,onFocus:w,onKeyDown:k,onPaste:L,onBlur:s,placeholder:o}))))}),CambodiaRoundIcon=e=>a.createElement(N.I,Object.assign({alt:"round cambodia flag",src:V.C.getAssetPath("flags/cambodiaRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),CambodiaSquareIcon=e=>a.createElement(N.I,Object.assign({alt:"square cambodia flag",src:V.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.45068L13.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(N.I,Object.assign({alt:"round india flag",src:V.C.getAssetPath("flags/indiaRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),IndiaSquareIcon=e=>a.createElement(N.I,Object.assign({alt:"square indian flag",src:V.C.getAssetPath("flags/indiaSquare.png")},e)),IndonesiaRoundIcon=e=>{var t=(0,n._)(e,[]);let r=(0,Y.a)();return a.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none"},t),a.createElement("mask",{id:r,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(#${r})`},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,n._)(e,[]);let r=(0,Y.a)();return a.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none"},t),a.createElement("g",{clipPath:`url(#${r})`},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:r},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.81981 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(N.I,Object.assign({alt:"round philippines flag",src:V.C.getAssetPath("flags/philippineRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),PhilippinesSquareIcon=e=>a.createElement(N.I,Object.assign({alt:"square philippines flag",src:V.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"}),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 6L9.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 eF={flag:"pfaLGRK"};let Flag=({country:e,language:t,rounded:r,height:n,width:l,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:`${eF.flag} ${o||""}`,style:{"--width":l||20,"--height":n||20}},r?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"})),eH=Object.values(Q.x9).reduce((e,{phoneCountry:t})=>(e.includes(t)||e.push(t),e),[]);var eB={phoneInput:"i-9Ibox",error:"YDWHh9b",selectedCountry:"_87SIJ95"};let eV=(0,a.forwardRef)((e,t)=>{let{isError:l,defaultCountry:i,selectedCountry:o,countries:c=eH,countryCallingCodeEditable:s=!1,defaultValue:d,value:p,onChange:u,flagComponent:h,arrowComponent:g,withFloatingLabel:f,className:E,inputId:b,label:v,error:y}=e,C=(0,n._)(e,["isError","defaultCountry","selectedCountry","countries","countryCallingCodeEditable","defaultValue","value","onChange","flagComponent","arrowComponent","withFloatingLabel","className","inputId","label","error"]),[w,x]=(0,a.useState)(d||p),[L,k]=(0,a.useState)(null),S=(0,a.useCallback)(e=>{if(!L)return;if(h)return h(e);let{country:t,countryName:r,flagUrl:l}=e,i=(0,n._)(e,["country","countryName","flagUrl"]),o=t?`+${L.getCountryCallingCode(t)}`:"";return a.createElement(a.Fragment,null,a.createElement(Flag,Object.assign({country:t,title:r},i)),a.createElement(P.T,{size:"p2",variant:"primary",className:G()(eB.callingCode,"PhoneInputCountryIconCallingCode")},o))},[h,L]),j=(0,a.useCallback)(()=>g?g():a.createElement("div",{className:G()(eB.arrowSelect,"PhoneInputArrowContainer")},a.createElement(CaretDown,null)),[g]);if((0,a.useEffect)(()=>{x(p)},[p]),(0,a.useEffect)(()=>{(0,n.a)(void 0,void 0,void 0,function*(){let e=yield Promise.all([r.e(5231),r.e(7797),r.e(5454),r.e(5481),r.e(140),r.e(5718),r.e(3684),r.e(5349),r.e(4148),r.e(2509),r.e(1533),r.e(1108),r.e(9124),r.e(4190),r.e(2582),r.e(6509),r.e(5308),r.e(4125),r.e(9715),r.e(7730),r.e(3929),r.e(891),r.e(137),r.e(4414),r.e(1079),r.e(7613),r.e(8098),r.e(3416),r.e(2500),r.e(1570),r.e(3506),r.e(1413),r.e(2138),r.e(9467),r.e(4467),r.e(6966),r.e(5243),r.e(8132),r.e(1375),r.e(4561),r.e(1448),r.e(5465),r.e(1217),r.e(5480),r.e(731),r.e(2050),r.e(2008),r.e(8469),r.e(8214),r.e(1482),r.e(6817),r.e(467),r.e(5951),r.e(9357),r.e(747),r.e(5675),r.e(6753),r.e(4802),r.e(3046),r.e(5745),r.e(3437),r.e(252),r.e(6839),r.e(9424),r.e(5702),r.e(8922),r.e(6399),r.e(553),r.e(2902),r.e(4969),r.e(3257),r.e(6611),r.e(7538),r.e(6894),r.e(5341)]).then(r.bind(r,"A9bs"));k(e)})},[]),!L)return null;let M=Object.assign({ref:t,defaultValue:d,label:v,value:w,onChange:e=>{x(e),null==u||u(e)},countries:c,defaultCountry:i||o,countryCallingCodeEditable:s,displayInitialValueAsLocalNumber:!0,className:G()(eB.phoneInput,{isError:l,[eB.error]:l,[eB.selectedCountry]:o},E),flagUrl:void 0,flagComponent:S,countrySelectProps:{arrowComponent:j},id:b},C);return f?a.createElement(FloatingLabelControl,{shrink:!!w},a.createElement(FloatingLabelControl.Control,null,({shrink:e})=>a.createElement(I.I.Wrapper,{size:"md",label:a.createElement(P.T,{size:e?"p3":"p2",variant:"secondary",weight:"halfBold"},v),inputWrapperOrder:["label","input","description","error"],error:y&&a.createElement(ErrorLabel,{label:y})},a.createElement(m.x,{className:"mantine-Input-wrapper",sx:e=>({".PhoneInput .PhoneInputInput":Object.assign(Object.assign({},(0,T.G)(e)[T.C.LEADGEN].p2),{color:e.colors.gray[9],fontWeight:T.F.halfBold})})},a.createElement(L.default,Object.assign({},M)))))):a.createElement(L.default,Object.assign({},M))});(0,a.forwardRef)((e,t)=>{let{defaultCountry:r,id:l,name:i,placeholder:o,label:c,labelElement:s,labelProps:d,description:p,descriptionProps:u,withAsterisk:h,inputMode:m,inputContainer:g,inputWrapperOrder:f,error:E,className:b,classNames:v,style:y,styles:C}=e,w=(0,n._)(e,["defaultCountry","id","name","placeholder","label","labelElement","labelProps","description","descriptionProps","withAsterisk","inputMode","inputContainer","inputWrapperOrder","error","className","classNames","style","styles"]),x=l||(0,J.Z)()+i;return a.createElement(I.I.Wrapper,{size:"md",label:c,labelElement:s,labelProps:Object.assign({htmlFor:x},d),description:p,descriptionProps:u,withAsterisk:h,inputMode:m,inputContainer:g,inputWrapperOrder:f,error:E,"data-invalid":!!E,className:b,classNames:v,style:y,styles:C},a.createElement("div",{className:"mantine-Input-wrapper"},a.createElement(eV,Object.assign({},w,{id:x,ref:t,name:i,spellCheck:!1,placeholder:o,defaultCountry:r,className:"mantine-Input-input",type:"tel","data-control":"tel"}))))});let eT=(0,a.createContext)({}),Popover=e=>{var{children:t,closeOnClickOutside:r=!0}=e,l=(0,n._)(e,["children","closeOnClickOutside"]);let[i,{close:o,open:c}]=(0,B.q)(!1),s=r?(0,z.O)(o):(0,a.useRef)(),d=Object.assign({},"function"==typeof t?{opened:i}:{});return a.createElement(eT.Provider,{value:{opened:i,close:o,open:c}},a.createElement(O.J,Object.assign({closeOnClickOutside:r},d,l),a.createElement("div",{ref:s},"function"==typeof t?t({open:c,close:o,opened:i}):t)))};Popover.Target=O.J.Target,Popover.Dropdown=O.J.Dropdown;var eN=(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:r,children:l,buttonProps:i}=e,o=(0,n._)(e,["variant","withIcon","children","buttonProps"]);let{classes:c,cx:s}=eN();return a.createElement(R.A,Object.assign({classNames:c},o,{unstyled:!0}),a.createElement(et.B,Object.assign({className:s(c.btnRoot,"checked"),leftIcon:r?a.createElement(X.Z,{size:18,color:"currentColor"}):void 0,variant:t},i),l),a.createElement(et.B,Object.assign({className:s(c.btnRoot,"unchecked"),leftIcon:r?a.createElement(ee.Z,{size:18,color:"currentColor"}):void 0,variant:"tertiary"},i),l))};ChipButton.Group=R.A.Group},wbWA:function(e,t,r){r.d(t,{C:function(){return CardLink}});var n=r("FRPj"),a=r("q1tI"),l=r("8vDj"),i=r("DEkF"),o=r("wp0n"),c=r("VhOp"),s=r("rBCA"),d=r("IQVP"),p=r("Aqof");let u=s.Z.div` .link-info-container { padding: 0.5rem 1rem; background: ${e=>e.color||"#f4faff"}; } .link-image-wrapper { position: relative; overflow: hidden; width: 100%; padding-top: min(280px, 56.25%); .link-image-blur { position: absolute; top: 50%; left: 50%; width: 110%; height: 110%; /* Add the blur effect */ -webkit-filter: blur(8px); filter: blur(8px); object-fit: cover; object-position: center; opacity: 0.8; transform: translate(-50%, -50%); } .link-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; } } a { text-decoration: none; } &[data-is-marrybaby='true'] { overflow: hidden; border-radius: 1rem; .link-info-container { padding-bottom: 1rem; p { color: #2661ad; } .link-logo { max-width: 2rem; height: 13px; margin-right: 4px; object-fit: contain; vertical-align: middle; } } .link-image-wrapper { padding-top: min(360px, 56.25%); .link-image { object-fit: cover; } } } `,CardLink=({title:e,url:t,image:r,logo:s,className:h,style:m,noRefetch:g})=>{let{data:{locale:f,env:{isMarryBaby:E}}}=(0,a.useContext)(c.T),[b,v]=(0,a.useState)(!1),y=(0,l.rZ)(),C=(0,a.useRef)(g);C.current=g;let[w,x]=(0,a.useState)(null);(0,a.useEffect)(()=>{(0,n.a)(void 0,void 0,void 0,function*(){if(!C.current){if(!t)return x(null);x(e=>Object.assign(Object.assign({},e),{isFetching:!0})),(0,c.c)((0,c.e)(d.yy.FETCH_PREVIEW,{_locale:f}),"POST",{data:{link:t},headers:{"Content-Type":"application/json"}}).then(e=>{var r,n,a;v(!1),x({title:null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.title,url:t,image:(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.image)||(null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.logo)})}).catch(()=>{x(null)})}})},[t]);let L=(null==w?void 0:w.image)||r,k=(null==w?void 0:w.title)||e,I=(null==w?void 0:w.logo)||s,S=(null==w?void 0:w.url)||t,j=S.replace("http://","").replace("https://","").split(/[/?#]/),M=j[0],O=(0,a.useRef)(!1);return a.createElement(u,{"data-is-marrybaby":E,className:`${h} no-replace-click`,style:m,color:y.colors[y.primaryColor][0]},a.createElement("a",{href:S,target:"_blank",rel:"noreferrer"},L&&a.createElement("div",{className:"link-image-wrapper"},!E&&a.createElement("img",{className:"link-image-blur",src:L,onError:e=>{O.current||(O.current=!0,e.currentTarget.src=p.D)},loading:"lazy"}),a.createElement("img",{className:"link-image",src:L,onError:e=>{O.current||(O.current=!0,e.currentTarget.src=p.D)},loading:"lazy"})),a.createElement("div",{className:"link-info-container"},a.createElement(o.T,{size:"n1"},E&&I&&!b&&a.createElement("img",{className:"link-logo",src:I,onError:()=>v(!0),loading:"lazy"}),M),a.createElement(i.H,{tag:"h6"},k))))}},d2lK:function(e,t,r){r.d(t,{I:function(){return Indicator}});var n=r("FRPj"),a=r("q1tI"),l=r("QJsO"),i=r("iBNF");let Indicator=e=>{var{styles:t,color:r=i.r.colors.red700}=e,o=(0,n._)(e,["styles","color"]);return a.createElement(l.z,Object.assign({inline:!0,position:"top-end",offset:4,styles:Object.assign({processing:{animationDirection:"alternate"}},t),color:r},o))}},MmHG:function(e,t,r){r.d(t,{T:function(){return Text}});var n=r("FRPj"),a=r("q1tI"),l=r("wp0n");let Text=e=>{var{size:t="base",type:r="regular"}=e,i=(0,n._)(e,["size","type"]);return a.createElement(l.T,Object.assign({size:t,weight:"caption"===r?"bold":r,"data-size":t,"data-type":r,"data-word-wrap":i.wordWrap,"data-is-uppercase":i.isUppercase},i))}},"93jb":function(e,t,r){r.d(t,{A:function(){return Alert},B:function(){return Badge},C:function(){return CardCollapse},D:function(){return DragFreeCarousel},F:function(){return FileDropdown},G:function(){return Grid},H:function(){return HtmlContent},I:function(){return IconHeading},R:function(){return Radio},S:function(){return StepRenderer},T:function(){return Tag},U:function(){return Upload},a:function(){return BorderHeading},b:function(){return RateStars},c:function(){return Toggle},d:function(){return D},e:function(){return Y},f:function(){return l},g:function(){return i}});var n,a,l,i,o=r("q1tI"),c=r("wp0n"),s=r("rBCA"),d=r("iBNF"),p=r("uuQu"),u=r("4JiQ"),h=r("mYVa"),m=r("iuhU"),g=r("Iblh"),f=r("VwLB"),E=r("fdQd"),b=r("FRPj"),v=r("MmHG"),y=r("gEnE"),C=r("yVya"),w=r("DEkF"),x=r("E7xJ"),L=r("Gx+P"),k=r("Zdfy");let Upload=e=>o.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"none"},e),o.createElement("path",{d:"M9.82324 8.7033L10.8228 9.70287C10.9267 9.80662 11.056 9.8573 11.2107 9.85493C11.3655 9.85255 11.4948 9.79943 11.5987 9.69555C11.7026 9.59168 11.7545 9.46074 11.7545 9.30274C11.7545 9.14474 11.7026 9.01462 11.5987 8.91237L9.7353 7.04899C9.59968 6.91337 9.44149 6.84555 9.26074 6.84555C9.07999 6.84555 8.9218 6.91337 8.78618 7.04899L6.91549 8.91968C6.81174 9.02355 6.75987 9.15287 6.75987 9.30762C6.75987 9.46237 6.81174 9.59168 6.91549 9.69555C7.01937 9.79943 7.1503 9.85137 7.3083 9.85137C7.4663 9.85137 7.59643 9.79943 7.69868 9.69555L8.69824 8.7033L8.69824 11.5576C8.69824 11.717 8.75218 11.8506 8.86005 11.9583C8.96793 12.0662 9.10156 12.1201 9.26093 12.1201C9.42043 12.1201 9.55399 12.0662 9.66162 11.9583C9.76937 11.8506 9.82324 11.717 9.82324 11.5576L9.82324 8.7033ZM16.3857 9.3063C16.3857 10.2918 16.1987 11.2181 15.8247 12.0852C15.4507 12.9524 14.9432 13.7066 14.3021 14.348C13.6609 14.9894 12.907 15.4972 12.0402 15.8714C11.1735 16.2456 10.2474 16.4326 9.26205 16.4326C8.27655 16.4326 7.35024 16.2456 6.48312 15.8716C5.61599 15.4976 4.86174 14.9901 4.22037 14.3489C3.57899 13.7078 3.07118 12.9539 2.69693 12.0871C2.3228 11.2204 2.13574 10.2943 2.13574 9.30893C2.13574 8.32343 2.32274 7.39712 2.69674 6.52999C3.07074 5.66287 3.5783 4.90862 4.21943 4.26724C4.86055 3.62587 5.61449 3.11805 6.48124 2.7438C7.34799 2.36968 8.27405 2.18262 9.25943 2.18262C10.2449 2.18262 11.1712 2.36962 12.0384 2.74362C12.9055 3.11762 13.6597 3.62518 14.3011 4.2663C14.9425 4.90743 15.4503 5.66137 15.8246 6.52812C16.1987 7.39487 16.3857 8.32093 16.3857 9.3063ZM15.2607 9.30762C15.2607 7.63262 14.6795 6.21387 13.517 5.05137C12.3545 3.88887 10.9357 3.30762 9.26074 3.30762C7.58574 3.30762 6.16699 3.88887 5.00449 5.05137C3.84199 6.21387 3.26074 7.63262 3.26074 9.30762C3.26074 10.9826 3.84199 12.4014 5.00449 13.5639C6.16699 14.7264 7.58574 15.3076 9.26074 15.3076C10.9357 15.3076 12.3545 14.7264 13.517 13.5639C14.6795 12.4014 15.2607 10.9826 15.2607 9.30762Z",fill:"#595959"})),Alert=({style:e,onClose:t,text:r,type:n,contentIcon:a,closeIcon:l,className:i,description:s})=>o.createElement("div",{className:`CHw-fZZ ${i||""}`,style:e,"data-alert-type":n},o.createElement("div",{className:"_03U6VRS"},o.createElement("div",{className:"icon-title"},a,o.createElement(c.T,{weight:"bold",size:"label1"},r)),o.createElement(c.T,{weight:"regular",size:"p3"},s)),o.createElement("div",{className:"EO828Vv",onClick:t},l)),renderNotificationStyles=(e,t,r,n)=>{let a,l="";if("numeric"===e)switch(t){case"medium":l=` height: 16px; font-size: 11px; padding: 1px 6px; `;case"large":l=` height: 24px; font-size: 13px; padding: 1px 10px; `}let i="";r&&(i=` position: absolute; top: 0; left: 75%; `),r&&(a=` left: 70%; ${"large"===t?` top: -7px; `:"medium"===t?` top: -2px; width: 16px; height: 16px; `:""} `);let o="";switch(n){case"primary":o=` background: ${d.r.colors.primary50}; color: ${d.r.colors.primary600}; `;break;case"error":o=` background: ${d.r.colors.error}; color: white; `}switch(e){case"dot":return` ${i} width: 8px; height: 8px; font-size: 0px; border-radius: 50%; ${o} `;case"numeric":return` ${i} width: max-content; border-radius: 32px; ${l} ${a} ${o} `}},I=s.Z.div` position: relative; > div { width: max-content; position: relative; } span { font-weight: ${d.r.sizes.fwBold}; display: flex; justify-content: center; align-items: center; ${e=>renderNotificationStyles(e.notificationType,e.notificationSize,e.hasIcon,e.notificationColor)} } ${e=>e.hasIcon&&` svg { width: 40px; height: 40px; } `} `,Badge=({amount:e,type:t,size:r="medium",color:n="primary",icon:a,className:l})=>o.createElement(I,{"data-notification-type":t,"data-notification-size":r,"data-notification-color":n,"data-has-icon":!!a||void 0,notificationType:t,notificationSize:r,notificationColor:n,hasIcon:!!a,className:l},o.createElement("div",null,e&&o.createElement("span",null,e)," ",a&&o.createElement("div",null,a))),S=s.Z.h4` position: relative; line-height: 18px; &:after { position: absolute; top: 1px; left: 0; width: 4px; height: 18px; background-color: ${d.r.colors.primaryBase}; content: ''; } &[data-size='lg'] { font-size: 18px; padding-left: 12px; } &[data-size='sm'] { font-size: 14px; padding-left: 8px; &::after { width: 2px; height: 15px; } } &[data-type='bold'] { font-weight: ${d.r.sizes.fwBold}; } &[data-type='semiBold'] { font-weight: ${d.r.sizes.fwSemiBold}; } &[data-uppercase] { text-transform: uppercase; } ${p.M.mbDown} { &[data-size='lg'] { font-size: 16px; } } `,BorderHeading=({style:e,children:t,className:r,size:n="lg",type:a="bold",upperCase:l,as:i="h4",color:c})=>o.createElement(S,{style:Object.assign({color:c},e),className:r,"data-size":n,"data-type":a,"data-uppercase":l,as:i},t),j=(0,s.Z)(f.S)` flex-shrink: 0; color: ${d.r.colors.neutral800}; width: 16px; height: 16px; transition: transform 0.2s ease-in-out; transform: rotate(-180deg); &[data-is-collapsed='true'] { transform: rotate(0deg); } `,M=s.Z.div` background-color: white; .icon { width: 20px; height: 20px; flex-shrink: 0; color: ${d.r.colors.neutral800}; } .title-collapse { color: #111111; font-weight: var(--fwSemiBold); font-size: 1.0625rem; line-height: 1.5rem; flex-grow: 1; } .box-collapse { display: flex; padding: 1.5rem 1rem 1rem 1rem; gap: 0.75rem; align-items: center; } `;function CardCollapse({children:e,title:t,icon:r,defaultOpened:n=!0,haveCollapse:a=!0,id:l,className:i,as:s="h2"}){let[d,{toggle:p}]=(0,g.q)(n);return o.createElement(M,{id:l,className:i},o.createElement("div",{className:"box-collapse",onClick:()=>{a&&p()}},a&&r,o.createElement(c.T,{as:s,className:"title-collapse"},t),a&&o.createElement(j,{"data-is-collapsed":d})),o.createElement(u.U,{in:!a||d,transitionDuration:200,transitionTimingFunction:"ease"},e))}let O=s.Z.div` position: relative; box-sizing: border-box; border: 1px solid ${d.r.colors.gray200}; background: url('../../../public/bgSvg/arrow-down.svg') no-repeat; background-position: right 16px center; border-radius: ${d.r.borderRadius}; &[data-has-icons='true'] { border: none; background: ${d.r.colors.gray100}; img, svg { display: inline-block; max-width: 16px; margin-right: 6px; } span { vertical-align: middle; display: inline-block; } &:hover { box-shadow: none; } > div { position: relative; width: 100%; display: flex; align-items: center; box-sizing: border-box; } > div::after { content: ''; right: 12px; top: 50%; background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A"); width: 10px; height: 8px; position: absolute; background-repeat: no-repeat; transform: translateY(-50%); } } &:hover { box-shadow: 0 0 2px 2px ${d.r.colors.primary200}; } `,R=s.Z.div` padding: 12px 18px 12px 16px; cursor: pointer; &[data-dropdown-open] { padding: 11px 15px 11px 15px; border: 1px solid ${d.r.colors.primaryBase}; border-radius: ${d.r.borderRadius}; box-shadow: 0 0 2px 2px ${d.r.colors.primary200}; } & > svg { height: 16px; width: 16px; } `,Z=s.Z.ul` position: absolute; top: 100%; right: 0; left: 0; display: block; margin-top: 4px; background: ${d.r.colors.white}; border-radius: ${d.r.borderRadius}; box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001), -2px 2px 5px rgba(67, 86, 100, 0.123689); cursor: pointer; &[data-has-icons='true'] { background: white; box-shadow: none; border: 1px solid ${d.r.colors.gray200}; filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04)); } `,$=s.Z.li` margin: 8px; padding: 12px 18px 12px 16px; border-radius: ${d.r.borderRadius}; display: flex; &:hover, :active { background: ${d.r.colors.gray100}; } `,z=s.Z.div` display: flex; align-items: center; margin-right: 8px; & > svg { height: 16px; width: 16px; } `,ShareIconPathStyle=()=>o.createElement("style",null,".file-dropdown-path{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}"),DefaultFileIcon=()=>o.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 12.17 14.83"},o.createElement("defs",null,o.createElement("clipPath",{id:"prefix__clip-path",transform:"translate(-1.92 -1.54)"},o.createElement("path",{fill:"none",d:"M0 .96h16v16H0z"}))),o.createElement("title",null,"File"),o.createElement("g",{clipPath:"url(#prefix__clip-path)"},o.createElement("path",{className:"file-dropdown-path",d:"M8.67 2.29H4a1.33 1.33 0 00-1.33 1.33v10.67A1.33 1.33 0 004 15.62h8a1.33 1.33 0 001.33-1.33V7z",transform:"translate(-1.92 -1.54)"}),o.createElement("path",{className:"file-dropdown-path",d:"M8.67 2.29V7h4.66",transform:"translate(-1.92 -1.54)"}))),DownloadIcon=()=>o.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 13.5 13.5"},o.createElement("title",null,"download"),o.createElement("path",{className:"file-dropdown-path",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M4.67 7.62L8 11l3.33-3.34M8 11V3",transform:"translate(-1.25 -2.21)"})),UploadIcon=()=>o.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 13.5 13.5"},o.createElement("title",null,"upload"),o.createElement("path",{className:"file-dropdown-path",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M11.33 6.29L8 3 4.67 6.29M8 3v8",transform:"translate(-1.25 -2.21)"})),FileDropdown=({className:e,value:t,options:r,onUploadSelected:n,id:a,placeholderIcon:l,placeholder:i,style:c})=>{let[s,d]=(0,o.useState)(!1),showDropdown=()=>d(!s),p=(0,o.useRef)(r.map(e=>"upload"===e.type&&o.createElement("input",{id:"uploader-dropdown-input-"+a+"-"+e.value,key:"uploader-dropdown-input-"+a+"-"+e.value,accept:e.fileAcceptedType,multiple:e.multiple,type:"file",style:{display:"none"},onChange:e=>{console.log("change"),n(e.target.files)}}))),onUpload=e=>{var t;null===(t=document.querySelector(e))||void 0===t||t.click()},onDownload=e=>{e&&window.open(e,"_blank")};return o.createElement(O,{className:e,"data-dropdown-open":!!s,id:a,"data-has-icons":!0,style:c,onBlur:()=>d(!1),tabIndex:0},o.createElement(ShareIconPathStyle,null),o.createElement(R,{onClick:showDropdown},l||o.createElement(DefaultFileIcon,null)," ",o.createElement("span",null,t&&t.value?t.label:i)),s&&o.createElement(Z,{onClick:showDropdown,"data-has-icons":!0},r.map(e=>o.createElement($,{key:`${a}-${e.value}`,"data-selected":t&&t.value===e.value||void 0,onClick:()=>"upload"===e.type?onUpload("#uploader-dropdown-input-"+a+"-"+e.value):onDownload(e.url)},o.createElement(z,null,e.icon||"download"===e.type?o.createElement(DownloadIcon,null):o.createElement(UploadIcon,null)),e.label))),o.createElement(o.Fragment,null,p.current))},F=s.Z.div` --columns: var(--grid-template-columns, repeat(var(--columns-count), 1fr)); --columns-desktop: var( --grid-template-columns-desktop, repeat(var(--columns-count-desktop), 1fr) ); display: grid; grid-template-columns: var(--columns); grid-gap: var(--grid-gap); align-items: var(--align-items); ${p.M.tdUp} { grid-template-columns: var(--columns-desktop); } > * { justify-self: var(--justify-children); } `,Grid=({className:e,columns:t,columnsDesktop:r,gridTemplateColumns:n,gridTemplateColumnsDesktop:a,gap:l,children:i,justifyChildren:c,style:s,alignItems:d})=>o.createElement(F,{className:e,style:Object.assign({"--columns-count":t,"--columns-count-desktop":r,"--grid-template-columns":n,"--grid-template-columns-desktop":a,"--justify-children":c,"--grid-gap":l,"--align-items":d},s)},i),Radio=({size:e="small",label:t,name:r,checked:n,value:a,className:l,isDisabled:i=!1,onChange:c,dataEventCategory:s,dataEventAction:d,dataEventLabel:p})=>{let u=!!d&&!!s&&!!p,h=u?{"data-event-category":s,"data-event-action":d,"data-event-label":p}:{};return o.createElement(E.R,Object.assign({size:"small"===e?"md":"lg",label:t,name:r,checked:n,value:a,className:l,disabled:i,onChange:e=>null==c?void 0:c(e.target.value)},h))},H=s.Z.div` display: inline-flex; gap: calc(var(--gap) * 1px); > svg { width: calc(var(--star-size) * 1px); height: calc(var(--star-size) * 1px); } &[data-selectable='true'] { > svg { cursor: pointer; } } `,StarHalfIcon=e=>o.createElement("svg",Object.assign({},e,{viewBox:"0 0 24 24",fill:"none"}),o.createElement("path",{d:"m139.287 144.772 5.17 3.12c.38.23.85-.11.75-.54l-1.37-5.88 4.56-3.95c.33-.29.16-.84-.29-.88l-6.01-.51-2.35-5.54a.498.498 0 0 0-.92 0l-2.35 5.54-6.01.51a.499.499 0 0 0-.28.88l4.56 3.95-1.37 5.88c-.1.43.37.77.75.54z",fill:"#E4E8EC"}),o.createElement("path",{d:"M139.289 144.771s.013-14.488 0-14.488a.49.49 0 0 0-.46.308l-2.35 5.54-6.01.51a.499.499 0 0 0-.28.88l4.56 3.95-1.37 5.88c-.1.43.37.77.75.54z",fill:"#FFC326"})),StarIcon=e=>{var{isFull:t}=e,r=(0,b._)(e,["isFull"]);return o.createElement("svg",Object.assign({},r,{viewBox:"0 0 32 32",fill:"none"}),o.createElement("path",{d:"m16 23.027 6.893 4.16c.507.306 1.134-.147 1-.72l-1.826-7.84 6.08-5.267a.67.67 0 0 0-.387-1.173l-8.013-.68-3.134-7.387a.664.664 0 0 0-1.226 0l-3.133 7.387-8.014.68a.668.668 0 0 0-.373 1.173l6.08 5.267-1.827 7.84c-.133.573.493 1.026 1 .72z",fill:t?"#FFC326":"#D2D6DC"}))},RateStars=({gap:e=2,size:t=24,star:r,totalStars:n=5,onSelect:a,hideEmptyStars:l,style:i,className:c})=>{let s=Math.floor(r),d=r-s>=.5?1:0,[p,u]=(0,o.useState)(null),h=p||s,m=p?0:d;return o.createElement(H,{"data-selectable":!!a,style:Object.assign({"--gap":e,"--star-size":t},i),className:c},Array.from({length:l?s+d:n}).map((e,t)=>{let onMouseOver=()=>!!a&&u(t+1),onMouseLeave=()=>!!a&&u(null);return t+1<=h?o.createElement(StarIcon,{key:t,onClick:()=>null==a?void 0:a(t+1),onMouseOver:onMouseOver,onMouseLeave:onMouseLeave,isFull:!0}):t+1===h+m?o.createElement(StarHalfIcon,{key:t,onClick:()=>null==a?void 0:a(t+1),onMouseOver:onMouseOver,onMouseLeave:onMouseLeave}):o.createElement(StarIcon,{key:t,onClick:()=>null==a?void 0:a(t+1),onMouseOver:onMouseOver,onMouseLeave:onMouseLeave})}))},getTag=(e,t)=>{switch(e){case"yellow":{let e=t?d.r.colors.yellow50:d.r.colors.yellow600;return` background: ${e}; p { color: var( --text-props-color, ${d.r.colors.gray800} ); } `}case"standard":return` background: ${d.r.colors.white}; border: 1px solid ${d.r.colors.gray200}; p { color: var( --text-props-color, ${d.r.colors.gray800} ); } &:hover { background: ${d.r.colors.gray100}; } `;case"red":{let e=t?d.r.colors.red50:d.r.colors.red500;return` background: ${e}; `}case"green":{let e=t?d.r.colors.green50:d.r.colors.green500;return` background: ${e}; `}case"blue":{let e=t?d.r.colors.primary50:d.r.colors.primaryBase;return` background: ${e}; `}case"teal":{let e=t?d.r.colors.teal100:d.r.colors.teal600;return` background: ${e}; `}case"pink":{let e=t?d.r.colors.pink200:d.r.colors.pink800;return` background: ${e}; `}case"violet":{let e=t?d.r.colors.violet100:d.r.colors.violet500;return` background: ${e}; `}case"grey":{let e=t?d.r.colors.gray100:d.r.colors.gray600;return` background: ${e}; `}}},B=s.Z.div` --padding-horizontal: 8px; --pading-vertical: 2px; display: flex; align-items: center; justify-content: center; padding: var(--pading-vertical) var(--padding-horizontal); border-radius: 24px; ${e=>"sponsored"===e.tagType&&` --offset-size: 4px; display: flex; align-items: center; justify-content: center; box-sizing: content-box; position: relative; box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.08); border-radius: 0 4px 18px 0; height: 24px; width: 90px; border-left: var(--offset-size) solid ${d.r.colors.accentLight}; padding: 0; margin-left: calc(var(--offset-size) * -1); p { font-weight: ${d.r.sizes.fwBold}; color: var( --text-props-color, ${d.r.colors.secondaryDark} ); font-size: 11px; margin-left: calc(var(--offset-size) * -1); } &::after { width: calc(var(--offset-size) * 2); height: var(--offset-size); background: ${d.r.colors.accentMain}; position: absolute; left: calc(var(--offset-size) * -1); bottom: calc(var(--offset-size) * -1); clip-path: polygon(0 1%, 100% 0%, 100% 100%); content: ''; } `} ${e=>e.isInline&&` display: inline-block; `} ${e=>e.tagHasMorePadding&&` &[data-has-more-padding] { padding: calc(var(--pading-vertical) + 5px) var(--padding-horizontal); } `} p { ${e=>e.tagIsLight?` color: var(--text-props-color, #000); `:` color: var(--text-props-color, ${d.r.colors.white}); `} } ${e=>getTag(e.tagType,e.tagIsLight)} ${e=>e.tagIsSquared&&"sponsored"!==e.tagType&&` border-radius: 4px; `} ${e=>e.tagIsALink&&` cursor: pointer; `} &[data-is-selected], &:active { background: ${d.r.colors.primary50}; } `,Tag=({type:e,children:t,style:r,isInline:n,isSquared:a=!1,className:l,isLight:i,hasMorePadding:c,isLink:s,isSelected:d,textProps:p={size:"sm"}})=>{let u=p.color?{"--text-props-color":p.color}:{};return o.createElement(B,{"data-is-squared":a||void 0,"data-tag-type":e,"data-is-light":i||void 0,"data-has-more-padding":c||void 0,"data-is-inline":n||void 0,style:Object.assign(Object.assign({},r),u),className:l,"data-is-selected":d||void 0,"data-is-link":s||void 0,tagType:e,isInline:n,tagHasMorePadding:c,tagIsLight:i,tagIsSquared:a,tagIsALink:s},o.createElement(v.T,Object.assign({},p),t))},V="24px",T=(0,y.Z)(s.Z.span` position: relative; display: block; width: 40px; height: ${V}; background: #c3cbd4; border-radius: 100px; cursor: pointer; &:after { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: #fff; border-radius: 90px; content: ''; transition: 0.3s; } `,"hhgcomp-toggle-icon"),N=s.Z.span` padding-left: 15px; `,A=s.Z.div` height: ${V}; input[type='checkbox'] { width: 0; height: 0; visibility: hidden; } label { cursor: pointer; display: inline-flex; color: ${d.r.colors.gray600}; } input:checked + label ${T.classSelector} { background: ${d.r.colors.primaryBase}; &:after { left: calc(100% - 2px); transform: translateX(-100%); } } `,Toggle=({className:e,id:t,onChange:r,checked:n,style:a,label:l})=>o.createElement(A,{className:e,style:a},o.createElement("input",{type:"checkbox",id:t,onChange:r,checked:n}),o.createElement("label",{htmlFor:t},o.createElement(T,null),l&&o.createElement(N,null,l))),D=(0,o.createContext)({currentStep:0,setCurrentStep:()=>!1,setMaxStep:()=>!1,nextStep:()=>!1,prevStep:()=>!1}),StepRenderer=({children:e,onStepChange:t})=>{let[r,n]=(0,o.useState)(0),[a,l]=(0,o.useState)(0),i=o.Children.count(e);return(0,o.useEffect)(()=>{l(i-1)},[i]),(0,o.useEffect)(()=>{null==t||t(r)},[r]),o.createElement(D.Provider,{value:{currentStep:r,setCurrentStep:n,setMaxStep:l,nextStep:()=>r+1<=a&&n(r+1),prevStep:()=>r-1>=0&&n(r-1)}},(0,C.Z)(e).map((e,t)=>{let n=t===r;return o.createElement(o.Fragment,{key:t},o.isValidElement(e)?e.props.alwaysRender||n?o.cloneElement(e,{isActive:t===r,stepIndex:t}):null:n?e:null)}))},P=s.Z.div` display: flex; align-items: center; gap: 8px; `,_=(0,s.Z)(w.H)` font-weight: var(--fwBold); `,IconHeading=({icon:e,title:t,className:r,style:n})=>o.createElement(P,{className:r,style:n},e,o.createElement(_,{tag:"h6",color:"var(--secondaryDark)"},t)),sanitizeHtml=e=>{if(!e)return"";let t=e.replace(/\n$/,"").replace(/\n/g,"
");return t},HtmlContent=({htmlContent:e,className:t})=>{let r=sanitizeHtml(e);return o.createElement("div",{className:t,dangerouslySetInnerHTML:{__html:r}})};(n=l||(l={})).ONE_TO_ONE="1:1",n.THREE_TO_ONE="3:1",(a=i||(i={})).PNG=".png",a.JPG=".jpg",a.JPEG=".jpeg";let getBase64=e=>new Promise((t,r)=>{let n=new FileReader;n.onload=()=>t(n.result),n.onerror=r,n.readAsDataURL(e)}),handleMultipleImageFiles=e=>(0,b.a)(void 0,void 0,void 0,function*(){if(0===e.length)return[];let t=yield Promise.all(e.map(e=>getBase64(e)));return t}),q=s.Z.div` display: flex; flex-direction: column; .image-upload-input-error { margin-top: ${(0,h.h)(12)}; display: flex; flex-direction: column; gap: ${(0,h.h)(4)}; } `,W=s.Z.div` display: flex; flex-direction: column; gap: ${(0,h.h)(4)}; margin-top: ${(0,h.h)(4)}; span { color: ${d.r.colors.neutral500}; } `,U=s.Z.div` position: relative; width: fit-content; padding: ${(0,h.h)(8)} ${(0,h.h)(12)}; border-radius: ${(0,h.h)(12)}; border: ${(0,h.h)(1)} solid ${d.r.colors.neutral200}; cursor: pointer; display: flex; align-items: center; gap: ${(0,h.h)(8)}; margin-top: ${(0,h.h)(18)}; &.image-upload-dragover { border-color: ${d.r.colors.primaryBase}; } &.image-upload-error { border-color: ${d.r.colors.error}; } &.image-upload-disabled { cursor: not-allowed; background-color: ${d.r.colors.gray100}; color: ${d.r.colors.gray400}; border-color: ${d.r.colors.gray200}; } svg { width: ${(0,h.h)(18)}; height: ${(0,h.h)(18)}; } input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: -1; } `,G=s.Z.div` position: relative; width: ${(0,h.h)(90)}; height: ${(0,h.h)(90)}; border-radius: ${(0,h.h)(12)}; overflow: hidden; background-color: ${d.r.colors.gray100}; display: flex; align-items: center; justify-content: center; img { width: 100%; height: 100%; object-fit: contain; } svg { width: ${(0,h.h)(14)}; height: ${(0,h.h)(14)}; color: ${d.r.colors.white}; } .image-upload-remove-button { cursor: pointer; position: absolute; top: ${(0,h.h)(6)}; right: ${(0,h.h)(6)}; background: ${d.r.colors.black}; border-radius: ${(0,h.h)(12)}; padding: ${(0,h.h)(2)}; display: flex; &:hover { opacity: 0.8; } } `,J=s.Z.div` display: flex; gap: ${(0,h.h)(8)}; margin-top: ${(0,h.h)(18)}; `,Y=(0,o.forwardRef)(({label:e,name:t,error:r,acceptedTypes:n=[i.PNG,i.JPG,i.JPEG],maxSize:a=1,acceptedRatios:l,multiple:s=!1,disabled:p=!1,id:u,className:g,onChange:f,value:E,showValidationRules:v=!1,description:y,useBase64:C=!1,placeholder:w},k)=>{let{t:I}=(0,L.u)(),[S,j]=(0,o.useState)(!1),[M,O]=(0,o.useState)([]),R=(0,o.useRef)(null),Z=!!r||M.length>0,$=(0,o.useMemo)(()=>E?Array.isArray(E)?E:[E]:[],[E]),z=(0,o.useCallback)(e=>{var t;let r=[],l="."+(null===(t=e.name.split(".").pop())||void 0===t?void 0:t.toLowerCase());n.includes(l)||r.push(`Unsupported file format. Please upload a ${n.join(", ")} file.`);let i=e.size/1048576;return i>a&&r.push(`File too large. Please upload an image smaller than ${a}MB.`),{file:e,isValid:0===r.length,errors:r}},[n,a]),F=(0,o.useCallback)(e=>new Promise(t=>{if(!l||!l.length||!e.type.startsWith("image/")){t([]);return}let r=new Image;r.onload=()=>{let e=r.width/r.height,n=`${e.toFixed(1)}:1`,a=l.some(t=>{let[r,n]=t.split(":"),a=parseInt(r)/parseInt(n);return .1>Math.abs(e-a)});t(a?[]:[`Image ratio ${n} is not accepted.`])},r.onerror=()=>t(["Invalid image file"]),r.src=URL.createObjectURL(e)}),[l]),H=(0,o.useMemo)(()=>$.map(e=>"string"==typeof e?e:e instanceof File?URL.createObjectURL(e):"").filter(Boolean),[$]),B=(0,o.useCallback)(e=>(0,b.a)(void 0,void 0,void 0,function*(){let r=Array.from(e),n=[],a=[];for(let e of r){let t=z(e),r=yield F(e),l=[...t.errors,...r];0===l.length?a.push(e):n.push(...l)}if(O(n),0===a.length)return;let l=C?yield handleMultipleImageFiles(a):a;f({target:{name:t,value:s?[...$,...l]:l.slice(0,1)}})}),[z,F,s,f,t,$]),removeFile=e=>{let r=$.filter((t,r)=>r!==e);O([]),f({target:{name:t,value:s?r:""}})},V=(0,o.useCallback)(e=>{R.current=e,"function"==typeof k?k(e):k&&(k.current=e)},[k]),T=(0,o.useCallback)(()=>{!p&&R.current&&R.current.click()},[p]),N=(0,o.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),j(!0)},[]),A=(0,o.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),j(!1)},[]),D=(0,o.useCallback)(e=>{e.preventDefault(),e.stopPropagation()},[]),P=(0,o.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),j(!1);let t=e.dataTransfer.files;t.length>0&&B(t)},[B]);return o.createElement(q,{className:g},o.createElement("label",{htmlFor:u||t},"string"==typeof e?o.createElement(c.T,{size:"title2"},e):e,y&&o.createElement(c.T,{size:"p3",mt:(0,h.h)(4),color:d.r.colors.gray700},y)),v&&o.createElement(W,null,o.createElement(c.T,{size:"p3"},"Formats: ",n.join("/")),l&&o.createElement(c.T,{size:"p3"},"Max size: ",a,"MB - Accepted ratios:"," ",l.join("/"))),(s||0===$.length)&&o.createElement(U,{className:(0,m.default)(S&&"image-upload-dragover",Z&&"image-upload-error",p&&"image-upload-disabled"),onDragEnter:N,onDragLeave:A,onDragOver:D,onDrop:P,onClick:T},o.createElement("input",{ref:V,type:"file",id:u||t,name:t,accept:n.join(","),multiple:s,onChange:e=>{let t=e.target.files;t&&t.length>0&&B(t)},disabled:p}),o.createElement(Upload,null),o.createElement(c.T,{size:"p3",fw:500},w||I("common.btn.uploadPhoto"))),$.length>0&&o.createElement(J,null,H.map((e,t)=>o.createElement(G,{key:t},o.createElement("img",{src:e,alt:`Uploaded file ${t+1}`,className:"image-upload-preview-image"}),o.createElement("button",{onClick:e=>{e.stopPropagation(),removeFile(t)},className:"image-upload-remove-button"},o.createElement(x.C,null))))),Z&&o.createElement("div",{className:"image-upload-input-error"},[...M,r].map(e=>o.createElement(c.T,{key:e,className:"error-text",size:"c1",color:d.r.colors.red600},e))))}),Q=(0,s.Z)(k.l)` & .mantine-Carousel-control { width: auto; } `,DragFreeCarousel=e=>{var{children:t,gapItem:r=8,slideSize:n="auto",withControls:a=!1,withIndicators:l=!1,dragFree:i=!0,align:c="start"}=e,s=(0,b._)(e,["children","gapItem","slideSize","withControls","withIndicators","dragFree","align"]);return o.createElement(Q,Object.assign({slideSize:n,slideGap:r,withControls:a,withIndicators:l,dragFree:i,align:c,containScroll:"trimSnaps"},s),o.Children.map(t,(e,t)=>o.createElement(k.l.Slide,{key:t},e)))}}}]);