1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7781],{962:(e,t,s)=>{"use strict";s.d(t,{h1:()=>r,in:()=>a,qI:()=>i});var n=s(31195),r=function(){n.Ay.initialize("G-Z54MB2BHF5")},a=function(e){n.Ay.send({hitType:"pageview",page:e})},i=function(e){n.Ay.event({category:"ActionLog",action:e})}},3513:(e,t,s)=>{"use strict";s.d(t,{D:()=>u});var n=s(95155),r=s(30285),a=s(69519),i=s(7314),l=s(20817),o=function(){return(0,n.jsx)(r.$,{onClick:function(){var e=window.scrollY,t=(0,a.L7)(e);l.Nk.scrollToTop({duration:t,smooth:"easeInOutQuart"})},className:"h-[40px] w-[40px] cursor-pointer rounded-full border border-[#FFFFFF33] bg-[#FFFFFF1A] p-[7px] text-sm backdrop-blur-[30px] hover:bg-[#FFFFFF1A] lg:h-[40px] lg:w-[40px]",children:(0,n.jsx)(i.A,{className:"text-white size-5"})})},c=s(66766),d=s(61048),h=[{href:"https://x.com/missai_tech",src:"/svg/x.svg",alt:"Intro Image",width:15,height:15},{href:"https://t.me/missaiofficial",src:"/svg/tele.svg",alt:"Intro Image",width:18,height:18},{href:"https://www.tiktok.com/@missai.tech",src:"/svg/tiktok.svg",alt:"Intro Image",width:16,height:16},{href:"https://www.instagram.com/missai.tech/",src:"/svg/ig.svg",alt:"Intro Image",width:18,height:18},{href:"https://www.facebook.com/missaiofficial",src:"/svg/fb.svg",alt:"Intro Image",width:20,height:20}],u=function(){return(0,n.jsxs)("div",{className:"top-1/2 right-2 z-50 flex mt-5 lg:-translate-y-1/2 flex-row justify-between gap-2.5 lg:fixed lg:mt-0 lg:flex-col",children:[h.map(function(e,t){var s=e.href,r=e.src,a=e.alt,i=e.width,l=e.height;return(0,n.jsx)(d.N_,{href:s,className:"flex size-[40px] items-center justify-center rounded-full border border-[#FFFFFF33] bg-[#FFFFFF1A] backdrop-blur-[30px]",target:"_blank",children:(0,n.jsx)(c.default,{src:r,alt:a,width:i,height:l})},t)}),(0,n.jsx)(o,{})]})}},6101:(e,t,s)=>{"use strict";s.d(t,{s:()=>i,t:()=>a});var n=s(12115);function r(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return t=>{let s=!1,n=e.map(e=>{let n=r(e,t);return s||"function"!=typeof n||(s=!0),n});if(s)return()=>{for(let t=0;t<n.length;t++){let s=n[t];"function"==typeof s?s():r(e[t],null)}}}}function i(...e){return n.useCallback(a(...e),e)}},7448:(e,t,s)=>{"use strict";s.d(t,{t:()=>n});var n=function(){return new Date>=new Date("2025-12-12T18:00:00+07:00")}},12388:(e,t,s)=>{"use strict";s.d(t,{D:()=>a,I:()=>r});var n=s(49984),r=["en","vi","zh","ko"],a=(0,n.A)({locales:r,defaultLocale:"en",localePrefix:"always"})},15646:(e,t,s)=>{"use strict";s.d(t,{K:()=>i});var n=s(65521),r=s(46786),a=s(35095),i=(0,n.v)()((0,r.Zr)((0,a.D)(function(e,t){return{user:null,hasHydrated:!1,isGlowPlus:!1,isAuhthenticated:!1,setUser:function(t){e(function(e){e.user?Object.assign(e.user,t):e.user=t,e.isGlowPlus="membership"!==t.planType,t.id&&(e.isAuhthenticated=!0)})},consumeChatCredit:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;e(function(e){if(e.user){var s=Number(e.user.chat_credits_free||0),n=Number(e.user.chat_credits_paid||0),r=s,a=n;if(t<=r)r-=t;else{var i=t-r;r=0,a=Math.max(0,a-i)}e.user.chat_credits_free=r,e.user.chat_credits_paid=a}})},getTotalChatCredits:function(){var e=t().user;return e?Number(e.chat_credits_free||0)+Number(e.chat_credits_paid||0):0},clearUser:function(){e(function(e){e.user=null,e.isAuhthenticated=!1,e.isGlowPlus=!1}),localStorage.removeItem("user-storage")},setHasHydrated:function(t){return e(function(e){e.hasHydrated=t})}}}),{name:"user-storage",partialize:function(e){return{user:e.user}},onRehydrateStorage:function(){return function(e){(null==e?void 0:e.user)&&(e.isGlowPlus="membership"!==e.user.planType),null==e||e.setHasHydrated(!0)}}}))},30285:(e,t,s)=>{"use strict";s.d(t,{$:()=>d,r:()=>c});var n=s(693),r=s(37414),a=s(95155);s(12115);var i=s(99708),l=s(74466),o=s(59434),c=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:shrink-0 cursor-pointer",{variants:{variant:{default:"bg-[#FFFFFF] text-[#202020] shadow-xs hover:bg-[#FFFFFF]/80 rounded-full",pink:"bg-gradient-pink text-white rounded-full shadow-xs hover:bg-gradient-pink/80",yellow:"bg-gradient-yellow text-white shadow-xs hover:bg-gradient-yellow/80",completed:"bg-[#7AFFAD] text-[#202020] shadow-xs hover:bg-[#7AFFAD]/80 rounded-full",outline:"border border-white rounded-full bg-transparent",rainbow:"bg-linear-rainbow rounded-full text-white shadow-xs hover:bg-linear-rainbow/80",yellow_pink:"bg-gradient-yellow-pink rounded-full text-white shadow-xs",pink_white:"bg-pink-to-white rounded-full text-[#D30056] shadow-xs font-semibold",misscharm:"bg-gradient-miss rounded-full text-[#202020] shadow-xs font-semibold",missai_primary:"btn-gradient-primary rounded-full shadow-xs font-medium",missai_outline:"btn-gradient-outline rounded-full shadow-xs font-medium"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md gap-1.5 px-3",lg:"h-10 rounded-md px-6 ",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function d(e){var t=e.className,s=e.variant,l=e.size,d=e.asChild,h=(0,r._)(e,["className","variant","size","asChild"]),u=void 0!==d&&d?i.DX:"button";return(0,a.jsx)(u,(0,n._)({"data-slot":"button",className:(0,o.cn)(c({variant:s,size:l,className:t}))},h))}},52303:(e,t,s)=>{Promise.resolve().then(s.bind(s,97902))},59434:(e,t,s)=>{"use strict";s.d(t,{cn:()=>a,u:()=>i});var n=s(52596),r=s(39688);function a(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return(0,r.QP)((0,n.$)(t))}function i(e,t){var s=Math.pow(10,t);return Math.floor(Number(e)*s)/s}},61048:(e,t,s)=>{"use strict";s.d(t,{N_:()=>
1i,a8:()=>l,rd:()=>o});var n=s(30981),r=s(12388),a=(0,n.A)(r.D),i=a.Link,l=(a.redirect,a.usePathname),o=a.useRouter;a.getPathname},66766:(e,t,s)=>{"use strict";s.d(t,{default:()=>r.a});var n=s(71469),r=s.n(n)},69519:(e,t,s)=>{"use strict";s.d(t,{Am:()=>o,Fr:()=>i,L7:()=>r,Lf:()=>a,Qk:()=>h,Yq:()=>u,Zr:()=>c,b3:()=>l,bU:()=>d});var n=s(6154),r=function(e){return Math.min(2e3,Math.max(800,.6*e))};function a(e){return e.endsWith("Score")?e.replace(/ Score$/,""):e}var i="undefined"!=typeof navigator&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),l=function(e,t){var s,r=e.replace("/".concat(t),"")||"/",a=n.MK.find(function(e){return!!(e.path===r||"/"!==r&&"/"!==e.path&&r.startsWith(e.path))});return a?a.id:(null==(s=n.MK[0])?void 0:s.id)||1};function o(e){return e?e.split(".").map(function(e){return e.trim()}).filter(function(e){return e.length>0}).map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join(". ")+(e.trim().endsWith(".")?".":""):""}function c(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",s=new Date(e);return isNaN(s.getTime())?"Invalid date":new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).format(s)}var h=function(e){var t;return null!=(t=({vi:"vie",zh:"chn",ko:"kor",en:"en"})[e])?t:"en"};function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][e.getMonth()],s=e.getDate(),n=e.getFullYear(),r=String(e.getHours()).padStart(2,"0"),a=String(e.getMinutes()).padStart(2,"0");return"".concat(t," ").concat(s," ").concat(n," ").concat(r,":").concat(a)}},71469:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(78538);Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var s in t)Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}(t,{default:function(){return c},getImageProps:function(){return o}});var r=s(88229),a=s(38883),i=s(33063),l=r._(s(51193));function o(e){var t=(0,a.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}}).props,s=!0,r=!1,i=void 0;try{for(var o,c=Object.entries(t)[Symbol.iterator]();!(s=(o=c.next()).done);s=!0){var d=n._(o.value,2),h=d[0],u=d[1];void 0===u&&delete t[h]}}catch(e){r=!0,i=e}finally{try{s||null==c.return||c.return()}finally{if(r)throw i}}return{props:t}}var c=i.Image},97902:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>y});var n=s(97004),r=s(78538),a=s(39249),i=s(95155),l=s(30285),o=s(66766),c=s(12115),d=s(61048);function h(e){var t,s=e.isOpen,h=e.onClose,u=(0,r._)((0,c.useState)(null),2),m=u[0],x=u[1],f=(0,r._)((0,c.useState)(!1),2),p=f[0],v=f[1];(0,c.useEffect)(function(){s&&!m&&g()},[s,m]);var g=(t=(0,n._)(function(){var e;return(0,a.YH)(this,function(t){switch(t.label){case 0:return t.trys.push([0,3,4,5]),v(!0),[4,fetch("/api/miss-charm/winner")];case 1:return[4,t.sent().json()];case 2:return(e=t.sent()).data&&x(e.data),[3,5];case 3:return console.error("Failed to fetch winner:",t.sent()),[3,5];case 4:return v(!1),[7];case 5:return[2]}})}),function(){return t.apply(this,arguments)});return s?(0,i.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[(0,i.jsx)("div",{className:"absolute inset-0 bg-[#1E0704]/80 backdrop-blur-sm",onClick:h}),(0,i.jsxs)("div",{className:"relative bg-gradient-to-b from-[#FFB5D433] to-[#1E0704]/50 rounded-2xl p-6 mx-4 w-full max-w-sm md:max-w-xl max-h-[90vh] backdrop-blur-2xl overflow-y-auto border-2 border-[#DFB47A]/30",children:[(0,i.jsx)("button",{onClick:h,className:"absolute top-2 right-2 w-8 h-8 bg-white/10 rounded-full flex items-center justify-center hover:bg-white/20 transition-colors z-10",children:(0,i.jsx)("svg",{className:"w-4 h-4 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),p?(0,i.jsxs)("div",{className:"text-center text-white",children:[(0,i.jsx)("div",{className:"mb-3",children:(0,i.jsx)("div",{className:"relative overflow-hidden h-8 bg-white/10 rounded-lg w-3/4 mx-auto mb-2",children:(0,i.jsx)("div",{className:"absolute inset-0 animate-shimmer bg-gradient-to-r from-transparent via-white/20 to-transparent"})})}),(0,i.jsx)("div",{className:"mb-4 flex justify-center",children:(0,i.jsx)("div",{className:"p-1 rounded-2xl bg-transparent",children:(0,i.jsx)("div",{className:"border-gradient-miss",children:(0,i.jsxs)("div",{className:"bg-[#FFB5D433] rounded-xl overflow-hidden p-[2px] relative",children:[(0,i.jsx)("div",{className:"relative overflow-hidden w-[180px] h-[200px] bg-white/10 rounded-xl",children:(0,i.jsx)("div",{className:"absolute inset-0 animate-shimmer bg-gradient-to-r from-transparent via-white/20 to-transparent"})}),(0,i.jsx)("div",{className:"absolute bottom-2 right-2",children:(0,i.jsx)("div",{className:"relative overflow-hidden size-[40px] bg-white/10 rounded-full",children:(0,i.jsx)("div",{className:"absolute inset-0 animate-shimmer bg-gradient-to-r from-transparent via-white/20 to-transparent"})})})]})})})}),(0,i.jsxs)("div",{className:"mb-4 space-y-2",children:[(0,i.jsx)("div",{className:"relative overflow-hidden h-6 bg-white/10 rounded-lg w-2/3 mx-auto",children:(0,i.jsx)("div",{className:"absolute inset-0 animate-shimmer bg-gradient-to-r from-transparent via-white/20 to-transparent"})}),(0,i.jsx)("div",{className:"relative overflow-hidden h-5 bg-white/10 rounded-lg w-1/2 mx-auto",children:(0,i.jsx)("div",{className:"absolute inset-0 animate-shimmer bg-gradient-to-r from-transparent via-white/20 to-transparent"})})]}),(0,i.jsxs)("div",{className:"mb-6 px-2 space-y-2",children:[(0,i.jsx)("div",{className:"relative overflow-hidden h-4 bg-white/10 rounded-lg w-full mx-auto",children:(0,i.jsx)("div",{className:"absolute inset-0 animate-shimmer bg-gradient-to-r from-transparent via-white/20 to-transparent"})}),(0,i.jsx)("div",{className:"relative overflow-hidden h-4 bg-white/10 rounded-lg w-5/6 mx-auto",children:(0,i.jsx)("div",{className:"absolute inset-0 animate-shimmer bg-gradient-to-r from-transparent via-white/20 to-transparent"})}),(0,i.jsx)("div",{className:"relative overflow-hidden h-4 bg-white/10 rounded-lg w-4/5 mx-auto",children:(0,i.jsx)("div",{className:"absolute inset-0 animate-shimmer bg-gradient-to-r from-transparent via-white/20 to-transparent"})}),(0,i.jsx)("div",{className:"relative overflow-hidden h-4 bg-white/10 rounded-lg w-3/5 mx-auto",children:(0,i.jsx)("div",{className:"absolute inset-0 animate-shimmer bg-gradient-to-r from-transparent via-white/20 to-transparent"})})]}),(0,i.jsx)("div",{className:"relative overflow-hidden h-[50px] bg-white/10 rounded-lg w-full max-w-[280px] mx-auto",children:(0,i.jsx)("div",{className:"absolute inset-0 animate-shimmer bg-gradient-to-r from-transparent via-white/20 to-transparent"})})]}
1):m?(0,i.jsxs)("div",{className:"text-center text-white",children:[(0,i.jsxs)("h1",{className:"mb-3 mt-4",children:[(0,i.jsx)("span",{className:"font-krona text-gradient-miss text-2xl md:text-3xl font-bold mb-2",children:"Queen of AI Glow"}),(0,i.jsx)("span",{className:"ml-1 text-2xl md:text-3xl font-bold mb-2",children:"\uD83D\uDC51"})]}),(0,i.jsx)("div",{className:"mb-4 flex justify-center",children:(0,i.jsx)("div",{className:"p-1 rounded-2xl bg-transparent",children:(0,i.jsx)("div",{className:"border-gradient-miss",children:(0,i.jsxs)("div",{className:"bg-[#FFB5D433] rounded-xl overflow-hidden p-[2px] relative",children:[(0,i.jsx)(o.default,{priority:!0,loading:"eager",src:m.portrait||"/miss-charm/layout-img/placeholder-portrait.jpg",alt:"Portrait of ".concat(m.fullName),width:180,height:200,className:"rounded-xl object-cover w-[180px] max-h-[200px]",onError:function(e){e.currentTarget.src="/miss-charm/layout-img/placeholder-portrait.jpg"}}),(0,i.jsx)("div",{className:"absolute bottom-2 right-2",children:(0,i.jsx)(o.default,{src:m.flag||"",alt:m.country||"",width:40,height:40,quality:100,className:"size-[40px] object-cover object-center rounded-full border-2 border-white/50",onError:function(e){e.currentTarget.style.display="none"}})})]})})})}),(0,i.jsxs)("div",{className:"mb-4",children:[(0,i.jsxs)("h2",{className:"font-krona text-[#DFB47A] text-lg lg:text-xl font-bold mb-1",children:["Miss Charm ",m.country," 2025"]}),(0,i.jsx)("h3",{className:"font-syne text-white text-lg font-semibold",children:m.fullName})]}),(0,i.jsxs)("div",{className:"mb-6 ",children:[(0,i.jsxs)("p",{className:"text-white/90 font-syne text-sm leading-relaxed mb-3",children:["The Queen of AI Glow challenge has ",(0,i.jsx)("br",{className:"lg:hidden"})," officially ended."]}),(0,i.jsxs)("p",{className:"text-white/90 font-syne text-sm leading-relaxed mb-3",children:["Thank you for being part of this ",(0,i.jsx)("br",{className:"lg:hidden"}),"AI-powered beauty journey â¨"]}),(0,i.jsx)("p",{className:"text-[#DFB47A] font-syne text-sm font-semibold",children:"\uD83C\uDF81 Fan gifts will be announced soon."})]}),(0,i.jsx)(d.N_,{href:"/",children:(0,i.jsx)(l.$,{onClick:h,variant:"misscharm",className:"w-full max-w-[280px] h-[50px] mx-auto mb-5",children:(0,i.jsx)("span",{className:"font-syne text-lg font-semibold",children:"⨠Explore Miss AI"})})})]}):(0,i.jsxs)("div",{className:"text-center text-white py-8",children:[(0,i.jsx)("p",{children:"Unable to load winner information"}),(0,i.jsx)(l.$,{onClick:h,variant:"misscharm",className:"mt-4",children:"Close"})]})]})]}):null}var u=s(7448);function m(e){var t=e.contestant,s=e.isOpen,n=e.onClose,a=(0,r._)((0,c.useState)(!1),2),d=a[0],m=a[1],x=(0,r._)((0,c.useState)(!1),2),f=x[0],p=x[1];return((0,c.useEffect)(function(){(0,u.t)()&&(p(!0),s&&(n(),m(!0)))},[s,n]),s&&t)?f?(0,i.jsx)(h,{isOpen:d,onClose:function(){return m(!1)}}):(0,i.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[(0,i.jsx)("div",{className:"absolute inset-0 bg-[#1E0704]/70 backdrop-blur-xs",onClick:n}),(0,i.jsxs)("div",{className:"relative bg-[#FFB5D433] rounded-2xl p-6 mx-4 w-full max-w-sm md:max-w-md lg:max-w-2xl md:min-w-[400px] lg:min-w-[600px] max-h-[85vh] md:max-h-[85vh] backdrop-blur-2xl overflow-y-auto border-2 border-white/20",children:[(0,i.jsx)("button",{onClick:n,className:"absolute top-4 right-4 w-8 h-8 bg-white/10 rounded-full flex items-center justify-center hover:bg-white/20 transition-colors",children:(0,i.jsx)("svg",{className:"w-4 h-4 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),(0,i.jsxs)("div",{className:"text-center text-white",children:[(0,i.jsx)("div",{className:"mb-3 flex justify-center",children:(0,i.jsx)("div",{className:"p-1 rounded-2xl bg-transparent",children:(0,i.jsx)("div",{className:"border-gradient-miss",children:(0,i.jsxs)("div",{className:"bg-[#FFB5D433] rounded-xl overflow-hidden p-[2px] relative",children:[(0,i.jsx)(o.default,{priority:!0,loading:"eager",src:t.portrait||"/miss-charm/layout-img/placeholder-portrait.jpg",alt:"Portrait of ".concat(t.fullName||"Contestant"),width:180,height:210,className:"rounded-xl object-cover w-[180px] max-h-[210px]",onError:function(e){e.currentTarget.src="/miss-charm/layout-img/placeholder-portrait.jpg"}}),(0,i.jsx)("div",{className:"absolute bottom-1 right-1",children:(0,i.jsx)(o.default,{src:(null==t?void 0:t.flag)||"",alt:(null==t?void 0:t.country)||"",width:30,height:30,quality:100,className:"size-[44px] object-cover object-center",onError:function(e){e.currentTarget.style.display="none"}})})]})})})}),(0,i.jsx)("h2",{className:"font-krona text-gradient-miss text-2xl font-bold mb-2 ",children:t.fullName||"Unknown"}),(0,i.jsx)("div",{className:" flex items-center justify-center gap-2",children:(0,i.jsxs)("span",{className:"text-[#DFB47A] font-semibold font-syne",children:["Miss ",t.country||"Unknown"]})}),(0,i.jsxs)("h3",{className:"font-krona text-gradient-miss text-xs mt-1 mb-4",children:[(null==t?void 0:t.vote_count)||0," ",Number(null==t?void 0:t.vote_count)>1?"votes":"vote"]}),(0,i.jsx)("h1",{className:"text-xl font-medium font-krona",children:"One scan = one vote â¨"}),(0,i.jsx)("p",{className:"px-5 lg:px-15 mt-3",children:"Scan your face with Miss AI Glow, discover your unique charm, and send your vote to the Miss Charm contestant you love! Your glow. Her victory. \uD83D\uDC51"}),(0,i.jsx)(l.$,{onClick:n,variant:"misscharm",className:"w-[300px] h-[50px] mb-5 mt-5 block mx-auto",children:(0,i.jsx)("span",{className:"font-syne text-lg font-semibold ",children:"Continue â Scan to Vote"})})]})]}),(0,i.jsx)(h,{isOpen:d,onClose:function(){return m(!1)}})]}):null}var x=s(15646),f=s(38543);function p(e){var t=e.isOpen,s=e.onClose;return t?(0,i.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[(0,i.jsx)("div",{className:"absolute inset-0 bg-[#1E0704]/70 backdrop-blur-xs",onClick:s}),(0,i.jsxs)("div",{className:"relative bg-[#FFB5D433] rounded-2xl p-6 mx-4 max-w-xl w-full max-h-[85vh] backdrop-blur-2xl overflow-y-auto border-2 border-white/20",children:[(0,i.jsx)("button",{onClick:s,className:"absolute top-4 right-4 w-7 h-7 border-white/20! border rounded-full flex items-center justify-center hover:bg-white/20 transition-colors",children:(0,i.jsx)("svg",{className:"w-4 h-4 text-white",f
1ill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),(0,i.jsxs)("div",{className:"text-white",children:[(0,i.jsxs)("div",{className:"mb-5",children:[(0,i.jsx)("h2",{className:"text-lg font-base mb-3 text-gradient-miss font-krona",children:"How to Vote"}),(0,i.jsx)("p",{className:"text-sm mb-3 font-syne leading-relaxed",children:"Participating is easy! Follow these steps to cast your vote and support your Queen:"}),(0,i.jsxs)("ol",{className:"space-y-1.5 text-sm font-syne list-decimal list-inside",children:[(0,i.jsx)("li",{children:"Complete your face scan using the Miss AI application."}),(0,i.jsx)("li",{children:"Get your AI Glow Card."}),(0,i.jsx)("li",{children:"Choose your favorite queen."}),(0,i.jsx)("li",{children:"Share your AI Glow Card on social media to finalize your vote and start accumulating points for your chosen Queen."})]})]}),(0,i.jsxs)("div",{className:"mb-5",children:[(0,i.jsxs)("h2",{className:"text-lg font-base mb-3 font-krona",children:[(0,i.jsx)("span",{className:"text-gradient-miss",children:"Voting Score"})," ",(0,i.jsx)("span",{className:"text-white",children:"System"})]}),(0,i.jsxs)("ul",{className:"space-y-1.5 text-sm font-syne list-disc list-inside",children:[(0,i.jsx)("li",{children:"Each Fan Scan via Contestant's Link +1"}),(0,i.jsx)("li",{children:"Fan Shares their Glow Card +1"}),(0,i.jsx)("li",{children:"Contestant's Post reaches 100 Likes +1"}),(0,i.jsx)("li",{children:"Contestant's Post reaches 50 Shares +2"}),(0,i.jsx)("li",{children:'Top 10 "Most Heartfelt AI Glow" Cards +5'})]})]}),(0,i.jsxs)("div",{className:"mb-2",children:[(0,i.jsxs)("h2",{className:"text-lg font-base mb-3 font-krona",children:[(0,i.jsx)("span",{className:"text-gradient-miss",children:"Attractive"})," ",(0,i.jsx)("span",{className:"text-white",children:"Prizes"})]}),(0,i.jsxs)("p",{className:"text-sm font-syne leading-relaxed mb-3",children:["There will be one"," ",(0,i.jsx)("span",{className:"font-semibold text-[#DFB47A]",children:"Queen of AI Glow"})," with the highest total score. By voting for her, you also have a chance to win exciting rewards:"]}),(0,i.jsxs)("div",{className:"mb-4",children:[(0,i.jsx)("h3",{className:"text-sm font-semibold mb-2 font-syne text-[#DFB47A]",children:"1. Beauty Boxes"}),(0,i.jsxs)("ul",{className:"space-y-1.5 text-sm font-syne list-disc list-inside",children:[(0,i.jsx)("li",{children:"10â20 lucky fans and top voters"}),(0,i.jsx)("li",{children:"Gift value: $30â$50"})]})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("h3",{className:"text-sm font-semibold mb-2 font-syne text-[#DFB47A]",children:"2. Sponsor Gifts"}),(0,i.jsxs)("ul",{className:"space-y-1.5 text-sm font-syne list-disc list-inside",children:[(0,i.jsx)("li",{children:"Skincare or makeup product sets"}),(0,i.jsx)("li",{children:"Spa or skincare vouchers"}),(0,i.jsx)("li",{children:"Merchandise gifts"})]})]})]})]})]})]}):null}var v=s(962),g=s(6154),b=s(3513);function j(e){var t,s,n,a,m=e.onShowVotingInstruction,j=(0,x.K)().isAuhthenticated,w=(0,d.rd)(),N=(0,r._)((0,c.useState)(!1),2),y=N[0],k=N[1],F=(0,r._)((0,c.useState)(!1),2),C=F[0],S=F[1],A=(0,r._)((0,c.useState)(!1),2),_=A[0],D=A[1];(0,c.useEffect)(function(){(0,u.t)()&&(D(!0),S(!0))},[]);var I=(t="(min-width: 768px)",n=(s=(0,r._)((0,c.useState)(!1),2))[0],a=s[1],(0,c.useEffect)(function(){var e=window.matchMedia(t);a(e.matches);var s=function(e){return a(e.matches)};return e.addEventListener("change",s),function(){return e.removeEventListener("change",s)}},[t]),n),M=(0,c.useCallback)(function(){if(_)return void S(!0);(0,v.qI)(g.DM.MISSCHARM_VOTING_INSTRUCTION),I?k(!0):m()},[I,m,_]);return(0,i.jsxs)("div",{className:"misscharm-bg-ready-scan min-h-screen",children:[(0,i.jsxs)("div",{className:"flex flex-col items-center px-2 text-center pt-[64vh] md:pt-[68vh]",children:[(0,i.jsx)("h1",{className:"mb-4 text-center font-krona text-3xl md:text-5xl text-gradient-miss",children:_?"Queen of AI Glow \uD83D\uDC51":"Check Your Glow"}),(0,i.jsx)("p",{className:"text-[#FFFFFF] text-lg mb-4 font-syne px-4 md:w-full",children:_?(0,i.jsxs)(i.Fragment,{children:["The Queen of AI Glow challenge has officially ended. ",(0,i.jsx)("br",{}),"Thank you for being part of this AI-powered beauty journey â¨"]}):(0,i.jsxs)(i.Fragment,{children:["For the best Glow ⨠",(0,i.jsx)("br",{})," Use a sharp, well-lit photo of your face (scan or upload). No sunglasses or strong filters."]})}),(0,i.jsx)(l.$,{onClick:function(){return _?void S(!0):j?void((0,v.qI)(g.DM.MISSCHARM_START_SCAN),w.push("/misscharm/scan")):void f.oR.error("Please log in to start scanning.")},variant:"misscharm",className:"w-[262px] h-[50px] mb-5",children:_?(0,i.jsx)("p",{className:"text-black font-semibold text-lg font-syne",children:"\uD83D\uDC51 SEE WINNER"}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.default,{height:22,width:22,src:"/miss-charm/layout-img/scanIcon.png",alt:"scanner logo"}),(0,i.jsx)("p",{className:"text-black font-semibold text-lg font-syne",children:"START ANALYSIS"})]})}),!_&&(0,i.jsxs)("button",{onClick:M,className:"flex items-center gap-2 text-white/60 hover:text-white transition-colors cursor-pointer",children:[(0,i.jsx)(o.default,{className:"hidden md:block",height:20,width:20,src:"/miss-charm/icon/info-icon.png",alt:"info icon"}),(0,i.jsx)("span",{className:"font-syne text-[#FFFFFF]",children:"Voting Instruction"}),(0,i.jsx)("svg",{className:"w-4 h-4 md:hidden",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})]}),(0,i.jsx)(p,{isOpen:y,onClose:function(){return k(!1)}}),(0,i.jsx)(h,{isOpen:C,onClose:function(){return S(!1)}}),(0,i.jsx)("div",{className:"max-w-[400px] mx-auto px-5 lg:mx-0 lg:px-0 mt-10 lh:mt-0 pb-10 lh:pb-0",children:(0,i.jsx)(b.D,{})})]})}function w(e){var t=e.onBackToScan;return(0,i.jsx)("div",{className:"min-h-screen misscharm-bg-main",children:(0,i.jsxs)("div",{className:"flex flex-col px-6 text-white pt-19",children:[(0,i.jsxs)("div",{className:"mb-5",children:[(0,i.jsx)("h2",{className:"text-lg font-base mb-3 text-gradient-miss font-krona",children:"How to Vote"}),(0,i.jsx)("p",{className:"text-base mb-3 font-syne leading-relaxed",children:"Participating is easy! Follow these steps to cast your vote and support your Queen:"}),(0,i.jsxs)("ol",{className:"space-y-2 text-base font-syne",children:[(0,i.jsx)("li",{children:"1. Complete your face scan using the Miss AI application."}),(0,i.jsx)("li",{children:"2. Get your AI Glow Card."}),(0,i.jsx)("li",{children:"3. Choose your favorite queen."}),(0,i.jsx)("li",{children:"4. Share your AI Glow Card on social media to finalize your vote and start accumulating points for your chosen Queen."})]})]}),(0,i.jsxs)("div",{className:"mb-5",children:[(0,i.jsx)("h2",{className:"text-lg font-base mb-3 text-gradient-miss font-krona",children:"Voting Score System"}),(0,i.jsxs)("ul",{className:"space-y-2 text-base font-syne",children:[(0,i.jsx)("li",{children:"⢠Each Fan Scan via Contestant's Link +1"}),(0,i.jsx)("li",{children:"⢠Fan Shares their Glow Card +1"}),(0,i.jsx)("li",{children:"⢠Contestant's Post reaches 100 Likes +1"}),(0,i.jsx)("li",{children:"⢠Contestant's Post reaches 50 Shares +2"}),(0,i.jsx)("li",{children:'⢠Top 10 "Most Heartfelt AI Glow" Cards +5'})]})]}),(0,i.jsxs)("div",{className:"mb-5",children:[(0,i.jsx)("h2",{className:"text-lg font-base mb-3 text-gradient-miss font-krona",children:"Attractive Prizes"}),(0,i.jsxs)("p",{className:"text-base font-syne mb-3 leading-relaxed",children:["There will be one ",(0,i.jsx)("span",{className:"font-semibold text-[#DFB47A]",children:"Queen of AI Glow"})," ","with the highest total score. By voting for her, you also have a chance to win exciting rewards:"]}),(0,i.jsxs)("div",{className:"mb-5",children:[(0,i.jsx)("h3",{className:"text-base font-semibold mb-3 font-syne text-[#DFB47A]",children:"1. Beauty Boxes"}),(0,i.jsxs)("ul",{className:"space-y-2 text-base font-syne",children:[(0,i.jsx)("li",{children:"⢠10â20 lucky fans and top voters"}),(0,i.jsx)("li",{children:"⢠Gift value: $30â$50"})]})]}),(0,i.jsxs)("div",{className:"mb-5",children:[(0,i.jsx)("h3",{className:"text-base font-semibold mb-3 font-syne text-[#DFB47A]",children:"2. Sponsor Gifts"}),(0,i.jsxs)("ul",{className:"space-y-2 text-base font-syne",children:[(0,i.jsx)("li",{children:"⢠Skincare or makeup product sets"}),(0,i.jsx)("li",{children:"⢠Spa or skincare vouchers"}),(0,i.jsx)("li",{children:"⢠Merchandise gifts"})]})]})]}),(0,i.jsx)("div",{className:"flex justify-center",children:(0,i.jsxs)("button",{onClick:t,className:"flex flex-col items-center px-6 pb-3 text-white",children:[(0,i.jsx)("svg",{className:"w-4 h-4 rotate-180",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})}),(0,i.jsx)("span",{className:"text-base font-medium font-syne",children:"Back to Scan"})]})})]})})}function N(e){var t=e.isOpen,s=e.onClose;return t?(0,i.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[(0,i.jsx)("div",{className:"absolute inset-0 bg-[#1E0704]/70 backdrop-blur-xs",onClick:s}),(0,i.jsxs)("div",{className:"relative bg-[#FFB5D433] rounded-2xl p-6 mx-4 w-full max-w-sm md:max-w-md lg:max-w-2xl md:min-w-[400px] lg:min-w-[600px] max-h-[85vh] md:max-h-[85vh] backdrop-blur-2xl overflow-y-auto border-2 border-white/20",children:[(0,i.jsx)("button",{onClick:s,className:"absolute top-4 right-4 w-8 h-8 bg-white/10 rounded-full flex items-center justify-center hover:bg-white/20 transition-colors",children:(0,i.jsx)("svg",{className:"w-4 h-4 text-white",f
1ill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),(0,i.jsxs)("div",{className:"flex flex-col justify-center items-center",children:[(0,i.jsx)("h1",{className:"text-2xl text-center font-medium font-krona text-gradient-miss mt-7",children:"Scan. Share. Support."}),(0,i.jsx)("p",{className:"px-5 lg:px-15 mt-3 mx-auto text-center mb-5",children:"Join the Queen of AI Glow challenge and send your vote to your favorite Miss Charm contestant today! \uD83D\uDC51"}),(0,i.jsxs)("div",{className:"mb-4 px-5",children:[(0,i.jsx)("h3",{className:"text-lg font-semibold mb-2 font-syne text-[#DFB47A] text-center",children:"Why scan?"}),(0,i.jsxs)("ul",{className:"space-y-1.5 font-syne list-disc list-inside",children:[(0,i.jsx)("li",{children:"⨠Get your FREE Glow Card"}),(0,i.jsx)("li",{children:"\uD83D\uDC51 One scan = One vote"}),(0,i.jsx)("li",{children:"\uD83C\uDF81 Win beauty gifts, including lucky $30â$50"})]})]})]}),(0,i.jsx)(l.$,{onClick:s,variant:"misscharm",className:"w-[300px] h-[50px] mb-5 mt-5 block mx-auto",children:(0,i.jsx)("span",{className:"font-syne text-lg font-semibold ",children:"Continue â Scan to Vote"})})]})]}):null}function y(){var e=(0,r._)((0,c.useState)("scan"),2),t=e[0],s=e[1],l=(0,r._)((0,c.useState)(null),2),o=l[0],d=l[1],h=(0,r._)((0,c.useState)(!1),2),x=h[0],f=h[1],p=(0,r._)((0,c.useState)(!1),2),v=p[0],g=p[1],b=(0,r._)((0,c.useState)(!1),2),y=b[0],k=b[1];return(0,c.useEffect)(function(){if((0,u.t)())return void k(!0);var e,t=new URLSearchParams(window.location.search).get("ref")||localStorage.getItem("refCode");if(!t)return void g(!0);(e=(0,n._)(function(){var e;return(0,a.YH)(this,function(s){switch(s.label){case 0:return s.trys.push([0,3,,4]),[4,fetch("/api/miss-charm/miss?country=".concat(t))];case 1:return[4,s.sent().json()];case 2:return(null==(e=s.sent())?void 0:e.miss)?(d(e.miss),f(!0)):g(!0),[3,4];case 3:return console.error("Failed to load contestant",s.sent()),g(!0),[3,4];case 4:return[2]}})}),function(){return e.apply(this,arguments)})()},[]),(0,i.jsxs)(i.Fragment,{children:["scan"===t&&(0,i.jsx)(j,{onShowVotingInstruction:function(){y||s("voting")}}),"voting"===t&&!y&&(0,i.jsx)(w,{onBackToScan:function(){return s("scan")}}),!y&&(0,i.jsx)(N,{isOpen:v,onClose:function(){return g(!1)}}),!y&&(0,i.jsx)(m,{contestant:o,isOpen:x,onClose:function(){return f(!1)}})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[3063,6453,4277,6160,4646,507,735,3118,6154,8441,1684,7358],()=>t(52303)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.