PageSourceSearch

https://www.sorra.net/_next/static/chunks/pages/beautyawards2025/luckyreels-42d0e4f8cd222241.js

js sorra.net collected 2026-10-04 07:13:19 UTC 10,961 bytes, 2 lines download raw bytes

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.