@momo-webplatform/mobase 0.2.82 → 0.2.83

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -117,7 +117,7 @@
117
117
  color: rgb(var(--mobase-red-500) / 1);
118
118
  }
119
119
  }
120
- `})]})});var ir=require("@heroicons/react/24/outline");var nr=require("react");var wt=require("react/jsx-runtime"),Di=(0,nr.forwardRef)(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:r=0,onChangeValue:n,onDecrease:s,onIncrease:m,disabled:c=!1,...d},p)=>{let[g,u]=(0,nr.useState)(r),y=()=>{let V=Math.min(g+a,t);u(V),n?.(V),m?.(V)},L=()=>{let V=Math.max(g-a,o);u(V),n?.(V),s?.(V)},O=V=>{let Y=parseFloat(V.target.value);if(!isNaN(Y)){let oe=Math.max(Math.min(Y,t),o);u(oe),n?.(oe)}};return(0,wt.jsxs)("div",{ref:p,className:i("flex items-center ",e),children:[(0,wt.jsxs)(pe,{className:i(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:L,disabled:c||g<=o,children:[(0,wt.jsx)(ir.MinusCircleIcon,{className:"w-7 h-7 "}),(0,wt.jsx)("span",{className:"sr-only",children:"Decrease value"})]}),(0,wt.jsx)("input",{type:"number",value:g,onChange:O,className:"flex text-center min-w-8 w-8 h-8 border-0 bg-white text-base text-gray-900 ring-offset-none placeholder:text-gray-500 font-medium focus-visible:outline-none focus-visible:ring-0 focus:ring-0 shadow-none focus-visible:ring-offset-0 shadow-none disabled:cursor-not-allowed disabled:opacity-50 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",min:o,max:t,step:a,disabled:c,...d}),(0,wt.jsxs)(pe,{className:i(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:y,disabled:c||g>=t,children:[(0,wt.jsx)(ir.PlusCircleIcon,{className:"w-7 h-7 "}),(0,wt.jsx)("span",{className:"sr-only",children:"Increase value"})]})]})});Di.displayName="Stepper";var ot=v(require("react"),1),re=v(require("@radix-ui/react-navigation-menu"),1),al=require("class-variance-authority"),rl=require("@heroicons/react/16/solid");var Fe=require("react/jsx-runtime"),il=ot.createContext(null),Ed=({value:e,children:o})=>(0,Fe.jsx)(il.Provider,{value:e,children:o}),Hd=()=>{let e=ot.useContext(il);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},sa=ot.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},r)=>(0,Fe.jsx)(Ed,{value:{alignDropdown:t},children:(0,Fe.jsx)(re.Root,{ref:r,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));sa.displayName=re.Root.displayName;var la=ot.forwardRef(({className:e,...o},t)=>(0,Fe.jsx)(re.List,{ref:t,className:i("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));la.displayName=re.List.displayName;var ma=re.Item,ca=(0,al.cva)(Ye({variant:"transparent",size:"sm"})),da=ot.forwardRef(({className:e,children:o,...t},a)=>(0,Fe.jsxs)(re.Trigger,{ref:a,className:i(ca(),"group px-2",e),...t,children:[o," ",(0,Fe.jsx)(rl.ChevronDownIcon,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));da.displayName=re.Trigger.displayName;var pa=ot.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=Hd();return(0,Fe.jsx)(re.Content,{ref:t,className:i("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});pa.displayName=re.Content.displayName;var Fo=re.Link,Fd=ot.forwardRef(({className:e,...o},t)=>(0,Fe.jsx)("div",{className:i("absolute left-0 top-full flex justify-center"),children:(0,Fe.jsx)(re.Viewport,{className:i("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:t,...o})}));Fd.displayName=re.Viewport.displayName;var zd=ot.forwardRef(({className:e,...o},t)=>(0,Fe.jsx)(re.Indicator,{ref:t,className:i("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:(0,Fe.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));zd.displayName=re.Indicator.displayName;var nl=v(require("react"),1),fa=v(require("@radix-ui/react-switch"),1);var Mi=require("react/jsx-runtime"),Ii=nl.forwardRef(({className:e,...o},t)=>(0,Mi.jsx)(fa.Root,{className:i("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400",e),...o,ref:t,children:(0,Mi.jsx)(fa.Thumb,{className:i("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5")})}));Ii.displayName=fa.Root.displayName;var bo=v(require("react"),1),Jt=v(require("@radix-ui/react-radio-group"),1),sl=require("lucide-react"),Ai=require("class-variance-authority");var zo=require("react/jsx-runtime"),_d=(0,Ai.cva)("aspect-square rounded-full border-2 border-gray-300 disabled:bg-gray-100 disabled:data-[state=checked]:text-gray-100 data-[state=checked]:text-white disabled:data-[state=checked]:bg-gray-400 data-[state=checked]:bg-pink-500 data-[state=checked]:border-none ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default peer",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Bd=(0,Ai.cva)("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),ll=bo.createContext({size:"medium"});function Od(){let e=bo.useContext(ll);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Li=bo.forwardRef(({className:e,size:o,...t},a)=>(0,zo.jsx)(ll.Provider,{value:{size:o},children:(0,zo.jsx)(Jt.Root,{className:i("grid gap-2",e),...t,ref:a})}));Li.displayName=Jt.Root.displayName;var Ei=bo.forwardRef(({className:e,...o},t)=>{let a=Od(),{size:r}=a??{};return(0,zo.jsx)(Jt.Item,{ref:t,className:i(_d({size:r}),e),...o,children:(0,zo.jsx)(Jt.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:(0,zo.jsx)(sl.Circle,{className:i(Bd({size:r}))})})})});Ei.displayName=Jt.Item.displayName;var vl=require("react"),xl=require("@heroicons/react/16/solid"),bl=v(require("html-react-parser"),1);var ga=require("react"),Hi=v(require("next/router"),1),Pt=require("motion/react"),pl=require("react-use");var sr=[.24,.25,.05,1];var cl=require("motion/react");var $t=require("react/jsx-runtime"),Vd=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,$t.jsx)("li",{className:"min-h-8",children:(0,$t.jsxs)("a",{className:i(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:r,...s,children:[o&&(0,$t.jsx)("div",{className:"w-6 h-6 shrink-0",children:(0,$t.jsx)("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),(0,$t.jsxs)("div",{className:" ",children:[(0,$t.jsx)("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&(0,$t.jsx)("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},ml=Vd;var Nt=require("react/jsx-runtime"),Wd={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:sr}},exit:{opacity:0,transition:{duration:.05}}},$d=({data:e})=>(0,Nt.jsx)(lt,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,Nt.jsx)(cl.motion.div,{variants:Wd,children:o.hasDropdown?(0,Nt.jsxs)(mt,{value:o.id,children:[(0,Nt.jsx)(ct,{className:"py-3",children:o.title}),(0,Nt.jsx)(dt,{children:(0,Nt.jsx)("ul",{className:i("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>(0,Nt.jsx)(ml,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):(0,Nt.jsx)("a",{className:"flex flex-1 items-center justify-between border-b border-gray-200 py-3 text-left font-medium text-gray-900 transition-all hover:underline",href:o.url,...t,children:o.title})},o.id)})}),dl=$d;var h=require("react/jsx-runtime"),Gd=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,jd=({data:e,className:o})=>{let[t,a]=(0,ga.useState)(!1),[r,n]=(0,ga.useState)(!1);(0,pl.useKey)("Escape",()=>a(!1)),(0,ga.useEffect)(()=>{if(!t)return;let c=Gd();function d(){a(!1)}function p(){a(!1),n(!0)}function g(u){let y=u.target;y.tagName==="A"&&y.getAttribute("href")?.startsWith("#")&&(a(!1),n(!0))}return document.body.style.position="fixed",document.body.style.width="100%",Hi.default.events.on("routeChangeComplete",d),window.addEventListener("hashchange",p),window.addEventListener("click",g),()=>{r||(document.body.style.position="",document.body.style.width="",window.scrollTo({top:c||0,behavior:"instant"})),n(!1),Hi.default.events.off("routeChangeComplete",d),window.removeEventListener("hashchange",p),window.removeEventListener("click",g)}},[t]);let s={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},m={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:sr}},exit:{opacity:0,transition:{duration:.15}}};return(0,h.jsxs)("div",{className:i(o),children:[(0,h.jsxs)("button",{type:"button",className:"flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[(0,h.jsx)("span",{className:"sr-only",children:"Navigation"}),(0,h.jsx)(Pt.motion.div,{animate:t?"hidden":"visible",variants:s,children:(0,h.jsx)("svg",{className:i("block h-7 w-7",t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,h.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),(0,h.jsx)(Pt.motion.div,{animate:t?"visible":"hidden",variants:s,children:(0,h.jsx)("svg",{className:i("block h-7 w-7",!t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,h.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,h.jsx)(Pt.LazyMotion,{features:Pt.domAnimation,children:(0,h.jsx)(Pt.AnimatePresence,{mode:"wait",children:t&&(0,h.jsxs)(Pt.motion.nav,{variants:m,initial:"hidden",animate:"show",exit:"exit",className:i(o,"fixed bottom-0 left-0 right-0 top-[calc(var(--header-height-mobase)+1px)] z-50 block w-full max-w-full overflow-y-auto bg-white px-5 pb-24 "),children:[(0,h.jsx)(dl,{data:e}),(0,h.jsxs)("div",{className:"animate-fade-in mobase-header-mobile-support py-4 text-sm delay-300 duration-500",children:[(0,h.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),(0,h.jsxs)("div",{className:"flex flex-nowrap",children:[(0,h.jsx)("div",{className:"flex-initial",children:(0,h.jsx)("a",{className:"link-white",target:"_blank",href:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",children:(0,h.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),(0,h.jsx)("div",{className:"ml-3 flex-initial",children:(0,h.jsx)("a",{href:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",className:"link-white",target:"_blank",children:(0,h.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),(0,h.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),(0,h.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,h.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,h.jsx)("a",{href:`tel:${At.Support.Hotline}`,className:"text-gray-600",children:At.Support.Hotline_Format})]}),(0,h.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,h.jsx)("a",{href:`mailto:${At.Support.Email}`,className:"text-gray-600",children:At.Support.Email})]})]}),(0,h.jsx)("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:(0,h.jsxs)("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-10 pr-2 hover:bg-gray-100",children:[(0,h.jsx)("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:(0,h.jsx)("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:(0,h.jsxs)("g",{children:[(0,h.jsx)("title",{children:"Asset 1"}),(0,h.jsx)("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
120
+ `})]})});var ir=require("@heroicons/react/24/outline");var nr=require("react");var wt=require("react/jsx-runtime"),Di=(0,nr.forwardRef)(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:r=0,onChangeValue:n,onDecrease:s,onIncrease:m,disabled:c=!1,...d},p)=>{let[g,u]=(0,nr.useState)(r),y=()=>{let V=Math.min(g+a,t);u(V),n?.(V),m?.(V)},L=()=>{let V=Math.max(g-a,o);u(V),n?.(V),s?.(V)},O=V=>{let Y=parseFloat(V.target.value);if(!isNaN(Y)){let oe=Math.max(Math.min(Y,t),o);u(oe),n?.(oe)}};return(0,wt.jsxs)("div",{ref:p,className:i("flex items-center ",e),children:[(0,wt.jsxs)(pe,{className:i(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:L,disabled:c||g<=o,children:[(0,wt.jsx)(ir.MinusCircleIcon,{className:"w-7 h-7 "}),(0,wt.jsx)("span",{className:"sr-only",children:"Decrease value"})]}),(0,wt.jsx)("input",{type:"number",value:g,onChange:O,className:"flex text-center min-w-8 w-8 h-8 border-0 bg-white text-base text-gray-900 ring-offset-none placeholder:text-gray-500 font-medium focus-visible:outline-none focus-visible:ring-0 focus:ring-0 shadow-none focus-visible:ring-offset-0 shadow-none disabled:cursor-not-allowed disabled:opacity-50 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",min:o,max:t,step:a,disabled:c,...d}),(0,wt.jsxs)(pe,{className:i(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:y,disabled:c||g>=t,children:[(0,wt.jsx)(ir.PlusCircleIcon,{className:"w-7 h-7 "}),(0,wt.jsx)("span",{className:"sr-only",children:"Increase value"})]})]})});Di.displayName="Stepper";var ot=v(require("react"),1),re=v(require("@radix-ui/react-navigation-menu"),1),al=require("class-variance-authority"),rl=require("@heroicons/react/16/solid");var Fe=require("react/jsx-runtime"),il=ot.createContext(null),Ed=({value:e,children:o})=>(0,Fe.jsx)(il.Provider,{value:e,children:o}),Hd=()=>{let e=ot.useContext(il);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},sa=ot.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},r)=>(0,Fe.jsx)(Ed,{value:{alignDropdown:t},children:(0,Fe.jsx)(re.Root,{ref:r,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));sa.displayName=re.Root.displayName;var la=ot.forwardRef(({className:e,...o},t)=>(0,Fe.jsx)(re.List,{ref:t,className:i("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));la.displayName=re.List.displayName;var ma=re.Item,ca=(0,al.cva)(Ye({variant:"transparent",size:"sm"})),da=ot.forwardRef(({className:e,children:o,...t},a)=>(0,Fe.jsxs)(re.Trigger,{ref:a,className:i(ca(),"group px-2",e),...t,children:[o," ",(0,Fe.jsx)(rl.ChevronDownIcon,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));da.displayName=re.Trigger.displayName;var pa=ot.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=Hd();return(0,Fe.jsx)(re.Content,{ref:t,className:i("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});pa.displayName=re.Content.displayName;var Fo=re.Link,Fd=ot.forwardRef(({className:e,...o},t)=>(0,Fe.jsx)("div",{className:i("absolute left-0 top-full flex justify-center"),children:(0,Fe.jsx)(re.Viewport,{className:i("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:t,...o})}));Fd.displayName=re.Viewport.displayName;var zd=ot.forwardRef(({className:e,...o},t)=>(0,Fe.jsx)(re.Indicator,{ref:t,className:i("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:(0,Fe.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));zd.displayName=re.Indicator.displayName;var nl=v(require("react"),1),fa=v(require("@radix-ui/react-switch"),1);var Mi=require("react/jsx-runtime"),Ii=nl.forwardRef(({className:e,...o},t)=>(0,Mi.jsx)(fa.Root,{className:i("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400",e),...o,ref:t,children:(0,Mi.jsx)(fa.Thumb,{className:i("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5")})}));Ii.displayName=fa.Root.displayName;var bo=v(require("react"),1),Jt=v(require("@radix-ui/react-radio-group"),1),sl=require("lucide-react"),Ai=require("class-variance-authority");var zo=require("react/jsx-runtime"),_d=(0,Ai.cva)("aspect-square rounded-full border-2 border-gray-300 disabled:bg-gray-100 disabled:data-[state=checked]:text-gray-100 data-[state=checked]:text-white disabled:data-[state=checked]:bg-gray-400 data-[state=checked]:bg-pink-500 data-[state=checked]:border-none ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default peer",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Bd=(0,Ai.cva)("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),ll=bo.createContext({size:"medium"});function Od(){let e=bo.useContext(ll);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Li=bo.forwardRef(({className:e,size:o,...t},a)=>(0,zo.jsx)(ll.Provider,{value:{size:o},children:(0,zo.jsx)(Jt.Root,{className:i("grid gap-2",e),...t,ref:a})}));Li.displayName=Jt.Root.displayName;var Ei=bo.forwardRef(({className:e,...o},t)=>{let a=Od(),{size:r}=a??{};return(0,zo.jsx)(Jt.Item,{ref:t,className:i(_d({size:r}),e),...o,children:(0,zo.jsx)(Jt.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:(0,zo.jsx)(sl.Circle,{className:i(Bd({size:r}))})})})});Ei.displayName=Jt.Item.displayName;var vl=require("react"),xl=require("@heroicons/react/16/solid"),bl=v(require("html-react-parser"),1);var ga=require("react"),Hi=v(require("next/router"),1),Pt=require("motion/react"),pl=require("react-use");var sr=[.24,.25,.05,1];var cl=require("motion/react");var $t=require("react/jsx-runtime"),Vd=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,$t.jsx)("li",{className:"min-h-8",children:(0,$t.jsxs)("a",{className:i(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:r,...s,children:[o&&(0,$t.jsx)("div",{className:"w-6 h-6 shrink-0",children:(0,$t.jsx)("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),(0,$t.jsxs)("div",{className:" ",children:[(0,$t.jsx)("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&(0,$t.jsx)("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},ml=Vd;var Nt=require("react/jsx-runtime"),Wd={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:sr}},exit:{opacity:0,transition:{duration:.05}}},$d=({data:e})=>(0,Nt.jsx)(lt,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,Nt.jsx)(cl.motion.div,{variants:Wd,children:o.hasDropdown?(0,Nt.jsxs)(mt,{value:o.id,children:[(0,Nt.jsx)(ct,{className:"py-3",children:o.title}),(0,Nt.jsx)(dt,{children:(0,Nt.jsx)("ul",{className:i("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>(0,Nt.jsx)(ml,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):(0,Nt.jsx)("a",{className:"flex flex-1 items-center justify-between border-b border-gray-200 py-3 text-left font-medium text-gray-900 transition-all hover:underline",href:o.url,...t,children:o.title})},o.id)})}),dl=$d;var h=require("react/jsx-runtime"),Gd=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,jd=({data:e,className:o})=>{let[t,a]=(0,ga.useState)(!1),[r,n]=(0,ga.useState)(!1);(0,pl.useKey)("Escape",()=>a(!1)),(0,ga.useEffect)(()=>{if(!t)return;let c=Gd();function d(){a(!1)}function p(){a(!1),n(!0)}function g(u){let y=u.target;y.tagName==="A"&&y.getAttribute("href")?.startsWith("#")&&(a(!1),n(!0))}return document.body.style.position="fixed",document.body.style.width="100%",Hi.default.events.on("routeChangeComplete",d),window.addEventListener("hashchange",p),window.addEventListener("click",g),()=>{r||(document.body.style.position="",document.body.style.width="",window.scrollTo({top:c||0,behavior:"instant"})),n(!1),Hi.default.events.off("routeChangeComplete",d),window.removeEventListener("hashchange",p),window.removeEventListener("click",g)}},[t]);let s={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},m={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:sr}},exit:{opacity:0,transition:{duration:.15}}};return(0,h.jsxs)("div",{className:i(o),children:[(0,h.jsxs)("button",{type:"button",className:"mobase-header-hamburger flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[(0,h.jsx)("span",{className:"sr-only",children:"Navigation"}),(0,h.jsx)(Pt.motion.div,{animate:t?"hidden":"visible",variants:s,children:(0,h.jsx)("svg",{className:i("block h-7 w-7",t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,h.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),(0,h.jsx)(Pt.motion.div,{animate:t?"visible":"hidden",variants:s,children:(0,h.jsx)("svg",{className:i("block h-7 w-7",!t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,h.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,h.jsx)(Pt.LazyMotion,{features:Pt.domAnimation,children:(0,h.jsx)(Pt.AnimatePresence,{mode:"wait",children:t&&(0,h.jsxs)(Pt.motion.nav,{variants:m,initial:"hidden",animate:"show",exit:"exit",className:i(o,"fixed bottom-0 left-0 right-0 top-[calc(var(--header-height-mobase)+1px)] z-50 block w-full max-w-full overflow-y-auto bg-white px-5 pb-24 "),children:[(0,h.jsx)(dl,{data:e}),(0,h.jsxs)("div",{className:"animate-fade-in mobase-header-mobile-support py-4 text-sm delay-300 duration-500",children:[(0,h.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),(0,h.jsxs)("div",{className:"flex flex-nowrap",children:[(0,h.jsx)("div",{className:"flex-initial",children:(0,h.jsx)("a",{className:"link-white",target:"_blank",href:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",children:(0,h.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),(0,h.jsx)("div",{className:"ml-3 flex-initial",children:(0,h.jsx)("a",{href:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",className:"link-white",target:"_blank",children:(0,h.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),(0,h.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),(0,h.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,h.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,h.jsx)("a",{href:`tel:${At.Support.Hotline}`,className:"text-gray-600",children:At.Support.Hotline_Format})]}),(0,h.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,h.jsx)("a",{href:`mailto:${At.Support.Email}`,className:"text-gray-600",children:At.Support.Email})]})]}),(0,h.jsx)("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:(0,h.jsxs)("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-10 pr-2 hover:bg-gray-100",children:[(0,h.jsx)("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:(0,h.jsx)("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:(0,h.jsxs)("g",{children:[(0,h.jsx)("title",{children:"Asset 1"}),(0,h.jsx)("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
121
121
  V56.3C312,38.2,297.5,23.7,279.4,23.7z M226.8,77.1H86.1c-8.1,0-13.5-5.4-13.5-13.5c0-8.1,5.4-13.5,13.5-13.5h140.8
122
122
  c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),(0,h.jsx)("path",{d:`M189.4,200.7c-14.4,0-25.9,11.6-25.9,25.9v155.7l-17.3-34.6c-14.2-26.3-28.1-23.6-38.9-17.3c-12.5,8.3-17.2,17-8.6,38.9
123
123
  c19.6,48.2,49.8,105.6,82.2,142.7h116.7c41-30.4,74-175,17.3-181.6c-5.2,0-13.5,0.8-17.3,4.3c0-17.3-15.1-21.7-21.6-21.6