1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2960],{72443:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/beautyawards2025/luckyreels",function(){return a(45309)}])},53755:function(e,t,a){"use strict";var l=a(85893);let r="https://sorra.blob.core.windows.net/",s=e=>{let{src:t,width:a}=e;return t?t.startsWith(r)?t.replace(r,"https://imgproxy.sorra.net/w"+a+"/")+"@webp":t:""};t.Z=e=>{let{src:t,width:a,...r}=e;if(!t)return"";let n=s({src:t,width:a||"1024"});return(0,l.jsx)("img",{src:n,...r})}},45309:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return O},default:function(){return D}});var l=a(85893),r=a(96486),s=a.n(r),n=a(2962),i=a(72234);a(4298);var c=a(11163),o=a(67294),u=a(10990),d=a(34715),x=a(83253),p=a.n(x),m=a(59820),h=a(40725),f=a.n(h),w=a(11248),g=a.n(w),b=a(56989);a(66921);var j=a(8170),y=a(1403);let{useState:v,useRef:N}=o;var S=e=>{let{show:t,setShow:a}=e;return(0,l.jsx)(p(),{isOpen:t,onRequestClose:()=>{a(!1)},shouldCloseOnOverlayClick:!1,className:"relative h-full max-h-none w-full overflow-y-auto rounded-none bg-white outline-none p-safe-offset-0 lg:h-auto lg:max-h-[80vh] lg:w-[480px] lg:rounded-lg",style:{content:{boxShadow:"rgba(0, 0, 0, 0.16) 0px 24px 48px",background:"linear-gradient(206deg, var(--Light-pink, #FFE5E9) 35.86%, rgba(235, 89, 148, 0.50) 73.84%)"}},overlayClassName:"z-[70] absolute flex items-center justify-center top-0 left-0 right-0 bottom-0 w-full h-full bg-white",children:(0,l.jsx)("div",{className:"relative flex h-full w-full flex-col items-center justify-center lg:h-[670px]",children:(0,l.jsxs)("div",{className:"relative flex flex-col items-center justify-center rounded-2xl bg-white px-6 py-8",children:[(0,l.jsx)("img",{src:"/svgs/complete-gift.svg",className:"mx-auto h-[150px] w-[150px] object-contain lg:h-32 lg:w-32"}),(0,l.jsx)("div",{className:"mt-6 text-center text-xl font-bold text-[#111928]",children:"\uD83C\uDF89 æåæçºSORRAæå¡"}),(0,l.jsx)("div",{className:"mt-2 text-center text-base text-[#111928]",children:"æè¬æ¨åèSORRA年度票é¸ï¼ç«å³æ½çï¼"}),(0,l.jsx)("button",{className:"mt-6 flex h-12 w-full items-center justify-center rounded-full bg-sorra-pink px-5 py-3 lg:w-[311px]",onClick:()=>{a(!1)},children:(0,l.jsx)("p",{className:"text-base text-white",children:"ç«å³éå§æ½ç"})})]})})})},k=a(26087),_=a(53755);u.ZP.registerPlugin(d.V);let{useState:E,useEffect:C,useRef:F}=o;var O=!0,D=()=>{(0,c.useRouter)();let{width:e,height:t}=(0,i.Z)(),{user:a,getAuthorizationHeader:r,isSignInStatusReady:o}=(0,j.Ii)(),{isSignIn:d}=(0,y.h2)(),x=F(null);F(null);let h=F(!1),w=F(null),v=F(null),N=F(null),O=F(null),[D,Z]=E(null),[P,q]=E(null),[R,A]=E(!1),[T,I]=E(!1),L=async e=>{let t=await r();try{await b.Z.post("/api/beauty-award/votingAnswer",{details:e},{headers:t}),localStorage.removeItem("beauty_award_2025_votings")}catch(e){}finally{}};C(()=>{let e=localStorage.getItem("beauty_award_2025_votings");if(!s().isEmpty(e)&&o&&a&&!1==T){let{phone_verified:t}=a;if(!t){window.location="/phone";return}let l=JSON.parse(e);l&&L(l),I(!0)}},[a,o,T]),C(()=>{let e=new Audio("/lotties/egg/rotating.mp3");w.current=e;let t=()=>{w.current&&(w.current.pause(),w.current.currentTime=0),A(!0)};return N.current&&(O.current=g().loadAnimation({name:"egg",container:N.current,renderer:"svg",loop:!1,autoplay:!1,path:"/lotties/egg/animation.json"}),O.current.addEventListener("complete",t)),()=>{O.current&&(O.current.removeEventListener("complete",t),O.current.destroy(),O.current=null),w.current&&(w.current.pause(),w.current=null)}},[]),C(()=>{D&&R&&B(!0)},[D,R]);let[z,B]=E(!1),[G,V]=E(!1),{data:X}=(0,m.ZP)("/api/beauty-award/awards",b.S,{fallbackData:[]}),{data:J}=(0,m.ZP)(a?"/api/beauty-award/me/luckyDraw":null,e=>(0,b.S)(e,r),{revalidateOnFocus:!1});return C(()=>{!1===d&&(window.location.href="/beautyawards2025/login")},[d]),C(()=>{s().isEmpty(P)&&!s().isEmpty(J)&&(window.location.href="/profile/redeem")},[J,P]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.PB,{title:"Sa Sa ç¾éºãç¨ãç»ï¼2025 Sorra Beauty Awards | æç實çç¾å¦ç¢åè©å¹ | Sorra",description:"Sa Sa x Sorra年度票é¸å¤§è³æ£å¼éå§ï¼ç¬¬2å±ç主é¡çºãFly me to the ...ãï¼å¸æå¤§å®¶å¨é¸åºéªä½ 渡é2025å¹´æ
ç¨ç年度好ç©ï¼æé 馿¸¯æè²¼å°çç¾å¦æè¡æ¦ã",openGraph:{images:[{url:"https://www.sorra.net/images/beauty-award/2025/banner_launching.png",width:1200,height:410,alt:"Sorra"}]}}),(0,l.jsxs)("div",{ref:x,style:{background:"linear-gradient(206deg, var(--Light-pink, #FFE5E9) 35.86%, rgba(235, 89, 148, 0.50) 73.84%)"},className:"no-scrollbar relative min-h-dvh overflow-x-hidden text-white",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-x-6 py-7",children:[(0,l.jsxs)("div",{className:"flex items-end gap-x-1.5",children:[(0,l.jsx)("img",{src:"/images/beauty-award/2025/sasa.png",className:"h-[25px] w-[69px] object-contain"}),(0,l.jsx)("p",{className:"text-[10px] font-normal text-[#414042]",children:"ç¾éºãç¨ãç»"})]}),(0,l.jsx)("img",{src:"/images/beauty-award/2025/sorra_2025_luckyreels.png",className:"h-[58px] w-[99px] object-contain"})]}),(0,l.jsx)("div",{className:"flex justify-center",children:(0,l.jsxs)("div",{className:"flex flex-col rounded border border-[#4F4E4F] bg-[#FCECDF] px-6 py-2",children:[(0,l.jsxs)("p",{className:"text-center text-base font-medium text-[#4F4E4F]",children:["æè¬åè Sa Saç¾éºãç¨ãç» ï¼",(0,l.jsx)("br",{}),"Sorra2025å¹´åº¦ç¥¨é¸æ´»å"]}),(0,l.jsx)("p",{className:"text-center font-jinxuanlatte text-[30px] font-bold text-sorra-pink",children:"ç«å³é»ææ½ç!"})]})}),(0,l.jsxs)("div",{className:"flex flex-col items-center",children:[(0,l.jsxs)("div",{className:"relative mt-7 aspect-square w-full overflow-hidden",children:[(0,l.jsx)("div",{ref:N,className:"h-full w-full bg-transparent"}),(0,l.jsxs)("div",{ref:v,className:"absolute left-[24%] top-[50%] aspect-square w-1/5",children:[(0,l.jsx)("img",{src:"/images/2024/tap.png",className:"h-full w-full object-contain"}),(0,l.jsx)("div",{className:"absolute left-[92%] top-[74%] h-2/3 w-2/3",onClick:async()=>
1{if(a&&!h.current){u.ZP.to(v.current,{scale:1.2,duration:.1,transformOrigin:"right bottom"}).then(()=>{u.ZP.to(v.current,{scale:0,duration:.2,transformOrigin:"right bottom"})}),g().play("egg"),w.current.play(),h.current=!0;try{let e=await r();try{await b.Z.request({method:"GET",url:"/api/beauty-award/me/votingAnswer",headers:e})}catch(e){alert("è«å 宿æç¥¨åå·ï¼æè½åå æ½çï¼"),window.location.href="/beautyawards2025/questions/1";return}let{data:t}=await b.Z.request({method:"POST",url:"/api/beauty-award/luckyDraw",headers:e}),{id:a,lucky_draw:l}=t,s=X.findIndex(e=>e.id===a);Z(X[s]),q({id:l})}catch(e){e.response&&e.response.data&&e.response.data.message&&alert(e.response.data.message)}}}})]})]}),(0,l.jsx)("div",{className:"absolute bottom-0 left-0 w-full px-[18px] pb-3 pt-8",children:(0,l.jsx)("p",{className:"w-full text-left text-[10px]",children:"æ¨å»£çæçç«¶è³½çç §è碼ï¼60956-7 (åªé©ç¨æ¼æ½ç)"})})]}),D&&z&&(0,l.jsx)(p(),{isOpen:z,onRequestClose:()=>{B(!1)},shouldCloseOnOverlayClick:!1,className:"flex h-full w-full animate-popup-scale-in items-center justify-center bg-transparent px-6",overlayClassName:"z-50 absolute top-0 left-0 right-0 bottom-0 w-full h-full p-safe-offset bg-[#111928] bg-opacity-50 backdrop-blur-sm animate-popup-overlay-fade-in",children:(0,l.jsxs)("div",{className:"flex w-full flex-col items-center rounded-2xl bg-white px-2.5 pb-8 pt-7 text-black",children:[(0,l.jsx)("p",{className:"absolute bottom-[14px] left-4 text-[10px] text-white",children:"æ¨å»£çæçç«¶è³½çç §è碼ï¼60956-7 (åªé©ç¨æ¼æ½ç)"}),(0,l.jsx)("p",{className:"text-[24px] font-bold text-sorra-pink",children:"æåä½ !"}),(0,l.jsxs)("p",{className:"mt-4 text-center text-base",children:["æè¬æ¨åèSa Saç¾éºãç¨ãç» ï¼",(0,l.jsx)("br",{}),"Sorra2025å¹´åº¦ç¥¨é¸æ´»å",(0,l.jsx)("br",{}),"æåä½ ç²å¾ï¼"]}),(0,l.jsxs)("div",{className:"mt-5 flex w-full items-center justify-center gap-x-9",children:[!D.score_only&&(0,l.jsxs)("div",{className:"relative aspect-square h-[102px] w-[102px]",children:[(0,l.jsx)(_.Z,{src:D.thumbnail?D.thumbnail.url:D.image?D.image.url:"/images/placeholders/product.png",className:"h-full w-full object-contain"}),1==D.id&&(0,l.jsx)("div",{className:"absolute bottom-0 right-0 translate-y-1/4 text-[32px] font-bold",children:"\uD83C\uDDEF\uD83C\uDDF5"})]}),(D.score||0)>0&&(0,l.jsx)("div",{className:"aspect-square w-[95px]",children:(0,l.jsx)("img",{src:"/images/2024/coins.png",className:"h-full w-full object-contain"})})]}),(0,l.jsx)("div",{className:"mt-5 flex flex-col items-center justify-center gap-y-2 font-rubik",children:(0,l.jsx)("p",{className:"whitespace-pre-line px-6 text-center text-[20px]",children:D.name})}),(0,l.jsx)("div",{className:"mt-6",children:(0,l.jsx)("button",{className:"min-w-[200px] rounded-full bg-sorra-pink px-5 py-3 text-white",onClick:()=>{h.current=!1,V(!0)},children:"確èªå¾çè³æ"})}),(0,l.jsx)(f(),{width:e,height:t,recycle:!1,gravity:.09,friction:.99,wind:0,numberOfPieces:260,initialVelocityY:{min:7,max:10}})]})}),G&&(0,l.jsx)(k.Z,{show:G,setShow:V,award:D,luckyDraw:P})]}),(0,l.jsx)(S,{show:T,setShow:I})]})}},56028:function(e,t){"use strict";t.Z={大åå:["大å"],大嶼山å:["馬ç£","ææ¯ç£","æ±æ¶","馿¸¯åéæ©å ´","大嶼山"],æ±å:["åè§","æ´ç£","ç²ç®ç£","太å¤","é°éæ¶","è¥¿ç£æ²³","å°è¥¿ç£","天å","ç®å°å±±","æè±é¨"],è§å¡å:["è§å¡","èç°","æ²¹å¡","ä¹é¾ç£","çé è§","ç§èåª","é å©"],é»å¤§ä»å:["彩è¹","æ é²å±±","é»å¤§ä»","æ°è²å´","æ¨å¯","é½ç³å±±","çæ± ç£"],ä¹é¾åå:["ç´ ç£¡","ä¹é¾å","ä¹é¾å¡","馬é å","åçç£","使ç°","åå¾·","é»å"],èµéå:["èµæ¶","éè¡£","èæ¯","èµè","èµè³"],åå:["ç³æ¾³","赤æ±","大æ½","馿¸¯ä»","é´¨è·æ´²","èæ¶æ","è¯å¯","é»ç«¹å"],å丫島å:["å丫島"],åªæ´²å:["åªæ´²"],èç£å:["èç£","æ·±äº","大窩å£"],æ²ç°å:["æ²ç°","大å","馬éå±±","ç«ç","ä¹èå±±","å°çæº","ç³é"],深水åå:["é·æ²ç£","èæè§","ç¾å","ç³ç¡¤å°¾","深水å","åæ"],屯éå:["屯é","å°æ¬","æ°å¢","æç®¡ç¬","èå°"],ç£ä»å:["ç£ä»","é é¼ç£","è·é¦¬å°","大å"],西貢å:["æ¸ æ°´ç£","西貢","調æ¯å¶º","å°è»æ¾³","åå£","康å","寶ç³"],æ²¹å°æºå:["油麻å°","使¦","å°æ²å","æºè§","太å","大è§å","æ¯å£«ç¸"],å æå:["å æ","天水å","å «é","å±å±±","洪水æ©","廿","æ°ç°","é¦ç°"],é·æ´²å:["é·æ´²"],ä¸è¥¿å:["ä¸ç°","ä¸ç°","西ç°","å å°¼å°å","éé","åå±±","西çç¤"],åå:["ç²å¶º","䏿°´","æ²é è§","åå"]}}},function(e){e.O(0,[8802,6342,296,66,5409,4221,6605,8491,6099,8794,6087,2888,9774,179],function(){return e(e.s=72443)}),_N_E=e.O()}]); 2//# sourceMappingURL=luckyreels-42d0e4f8cd222241.js.map
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.