PageSourceSearch

https://www.popchill.com/_next/static/chunks/5041-b8b8ea3b012d8721.js

js popchill.com collected 2026-09-24 10:08:20 UTC 26,082 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5041],{85041:function(e,l,t){t.d(l,{U:function(){return open_Open}});var s=t(85893),a=t(11163),n=t(67294),x=t(41664),r=t.n(x),i=t(69203),c=t(21179),openComponents_Home=e=>{let{openName:l,infos:t,avatarListTitles:x,isShowAvatarTitle:p=!0,list:g,briefsTitles:o,briefs:m,sponsors:d,footerLists:h,footerTags:f,footerLastWords:u,userData:j,isTestForApp:v=!1}=e,b=(0,a.useRouter)(),N=b.query.closetNameEn,{isLg:y}=(0,c.Z)(),createAvatarLinkHandler=(e,t)=>v?0===t?"https://www.popchill.com/user/levi0304?t=123":1===t?"https://www.popchill.com/product/22011503228775?t=123":"/open/".concat(l,"/").concat(e):"/open/".concat(l,"/").concat(e);return(0,s.jsxs)("main",{children:[(0,s.jsxs)("article",{id:"open-register",className:"mt-5 mx-3 lg:flex lg:w-[1080px] lg:mt-20 lg:mx-auto",children:[(0,s.jsx)("div",{className:"flex justify-center lg:block lg:mr-[100px]",children:(0,s.jsx)(i.qE,{src:t.avatarSrc,imageSize:200,imagePcSize:300,noCusorPointer:!0})}),(0,s.jsxs)("div",{className:"mt-5 text-center lg:flex-1 lg:mt-0 lg:text-left",children:[(0,s.jsx)("div",{className:"leading-[25px] text-lg lg:leading-[29px] lg:text-[21px] text-primary",children:t.string1}),(0,s.jsx)("div",{className:"mt-[10px] leading-[33px] text-xl font-bold lg:leading-[42px] lg:text-[30px]",children:t.string2}),(0,s.jsx)("div",{className:"mt-[2px] leading-[29px] text-[21px] font-bold lg:leading-[33px] lg:text-2xl",children:t.string3}),t.url&&j&&(0,s.jsxs)(r(),{href:t.url,rel:"nofollow",target:y?"_blank":"_self",className:"block mt-[10px] leading-[22px] text-[#5a5a5a] underline",children:[null==j?void 0:j.name,"的串聯貼文",">"]}),(0,s.jsx)("div",{className:"mt-[30px] leading-[25px] text-lg text-[#e50057] lg:leading-[29px] lg:text-[21px]",children:t.string4}),(0,s.jsx)("div",{className:"mt-[10px] text-left leading-[22px] lg:leading-[25px] lg:text-lg",children:t.descriptions.map((e,l)=>(0,s.jsxs)("div",{children:[""===e&&(0,s.jsx)("br",{}),e]},l))})]})]}),(0,s.jsx)("div",{className:"h-[50px] mt-[30px] mx-3 lg:w-[519px] lg:h-[102px] lg:mt-[50px] lg:mx-auto",onClick:()=>{N||b.push("/open/".concat(l,"?step=register")),N&&b.push("/open/".concat(l,"/").concat(N,"?step=register"))},children:(0,s.jsx)("button",{className:"w-full h-full bg-primary leading-[25px] text-lg text-white font-bold rounded lg:leading-[50px] lg:text-4xl lg:rounded-lg",children:t.registerButtonText})}),(0,s.jsx)("div",{className:"mt-5 text-center text-sm lg:leading-[29px] lg:text-[21px]",children:t.underRegisterButtonText}),(0,s.jsx)("div",{className:"pt-[50px] pb-[11px] mt-[50px] bg-[#f7f7f7] lg:pt-20 lg:pb-[41px] lg:mt-20",children:(0,s.jsxs)("div",{className:"mx-3 lg:mx-auto lg:w-[1170px]",children:[(0,s.jsx)("div",{className:"text-center leading-[33px] text-2xl font-bold lg:leading-[67px] lg:text-5xl",children:x.title}),(0,s.jsx)("div",{className:"mt-[2px] text-center leading-[29px] text-[21px] font-bold lg:mt-3 lg:leading-[33px] lg:text-2xl",children:x.subtitle}),(0,s.jsx)("div",{className:"flex flex-wrap mt-5 lg:mt-[50px]",children:g.map((e,l)=>(0,s.jsxs)("div",{className:"w-[calc(33.3333%-16.7px)] mb-5 ".concat(0!==l&&(l+1)%3==0?"mr-0":"mr-[25px]"," lg:w-[calc(16.6666%-45px)] lg:mb-[39px] ").concat(0!==l&&(l+1)%6==0?"lg:mr-0":"lg:mr-[54px]"," "),children:[(0,s.jsxs)(r(),{prefetch:!1,href:createAvatarLinkHandler(e.name_en,l),target:y?"_blank":"_self",className:"cursor-pointer",children:[(0,s.jsx)(i.qE,{src:e.image,imageSize:"responsive"}),(0,s.jsx)("div",{className:"mt-[10px] text-center text-sm font-bold break-words lg:leading-[25px] lg:text-lg",children:e.name}),p&&(0,s.jsx)("div",{className:"mt-[2px] text-center leading-[17px] text-xs text-primary break-words lg:leading-[21px] lg:text-[15px]",children:e.title})]}),e.url&&(0,s.jsxs)(r(),{href:e.url,rel:"nofollow",target:y?"_blank":"_self",className:"block mt-[6px] text-center leading-[17px] text-xs text-[#5a5a5a] underline",children:["查看串聯貼文",">"]})]},l))})]})}),(0,s.jsxs)("div",{className:"mt-[50px] text-center lg:mt-20",children:[(0,s.jsx)("div",{id:"open-brief",className:"leading-[33px] text-2xl font-bold lg:leading-[52px] lg:text-[37px]",children:o.title}),(0,s.jsx)("div",{className:"mt-[10px] leading-[22px]  lg:leading-[29px] lg:text-[21px]",children:o.subtitle})]}),(0,s.jsx)("div",{className:"mx-3 lg:flex lg:mt-[30px] lg:mx-auto lg:w-[1060px] ".concat(1===m.length?"lg:justify-center":"lg:justify-between"),children:m.map((e,t)=>(0,s.jsxs)(r(),{href:e.href,rel:e.imgSrc==="".concat("https://images.popchill.com/events/open","/").concat(l,"/images/PopChill_intro.jpg")?"":"nofollow",target:y?"_blank":"_self",className:"block mt-5 rounded-[10px] shadow-open-brief cursor-pointer lg:w-[500px] lg:mt-0",children:[y&&(0,s.jsx)(i.yo,{src:e.imgSrc,alt:e.imgAlt,placeholder:"blur",blurDataURL:"/open-image-placeholder.svg",aspectRatio:.46,className:"rounded-t-[10px]"}),!1===y&&(0,s.jsx)(i.yo,{src:e.imgSrc,alt:e.imgAlt,placeholder:"blur",blurDataURL:"/open-image-placeholder.svg",aspectRatio:160/351,className:"rounded-t-[10px]"}),(0,s.jsxs)("div",{className:"p-5 lg:pt-0 lg:px-[25px] lg:pb-[29px] lg:mt-[31px]",children:[(0,s.jsx)("div",{className:"text-center text-sm lg:leading-[30px] lg:text-[21px] font-bold",children:e.title}),(0,s.jsxs)("div",{className:"text-sm lg:mt-3 lg:leading-[30px] lg:text-lg",children:["string"==typeof e.content&&e.content,Array.isArray(e.content)&&e.content.map((e,l)=>(0,s.jsxs)("div",{children:[""===e&&(0,s.jsx)("br",{}),e]},l))]})]})]},t))}),(0,s.jsx)("div",{className:d.length?"my-[50px]":"mt-[50px]",children:!!d.length&&(0,s.jsxs)("div",{className:"mx-3 lg:my-20 lg:mx-auto lg:w-[1200px]",children:[(0,s.jsx)("div",{className:"text-center leading-[33px] text-2xl font-bold lg:leading-[52px] lg:text-[37px]",children:"協辦單位"}),(0,s.jsxs)("div",{className:"mt-5 lg:mt-[50px]",children:[1===d.length&&(0,s.jsx)(r(),{href:d[0].url,rel:"nofollow",target:y?"_blank":"_self",className:"relative block w-full h-full mx-auto cursor-pointer lg:w-[260px] lg:h-[260px]",children:(0,s.jsx)(i.yo,{src:d[0].imgSrc,alt:"avatar",placeholder:"blur",blurDataURL:"/open-image-placeholder.svg",aspectRatio:1})}),1!==d.length&&(0,s.jsx)("div",{className:"flex flex-wrap",children:d.map((e,l)=>(0,s.jsx)("div",{className:"w-[calc(33.3333%-16.7px)] mb-5 ".concat(0!==l&&(l+1)%3==0?"mr-0":"mr-[25px]"," lg:w-[calc(25%-40px)] lg:mb-[30px] ").concat(0!==l&&(l+1)%4==0?"lg:mr-0":"lg:mr-[53px]"," "),children:(0,s.jsx)(r(),{href:e.url,rel:"nofollow",target:y?"_blank":"_self",className:"relative",children:(0,s.jsx)(i.yo,{src:e.imgSrc,alt:"avatar",placeholder:"blur",blurDataURL:"/open-image-placeholder.svg",aspectRatio:1})})},l))})]})]})}),(0,s.jsxs)("footer",{className:"bg-[#f7f7f7]",children:[(0,s.jsx)("div",{className:"py-[50px] px-3 mx-3 leading-[30px] text-sm lg:w-[1200px] lg:py-20 lg:mx-auto lg:text-[16
1px]",children:h.map((e,l)=>(0,s.jsxs)("div",{className:"first:mb-[22px]",children:[(0,s.jsxs)("div",{children:["【",e.title,"】"]}),e.list&&(0,s.jsx)("ul",{children:e.list.map((e,l)=>(0,s.jsx)("li",{className:"list-disc list-outside",children:e},l))}),e.contents&&e.contents.map((e,l)=>(0,s.jsx)(n.Fragment,{children:(0,s.jsx)("div",{children:e})},l))]},l))}),(0,s.jsx)("div",{className:"flex flex-wrap justify-center py-[30px] mx-3 text-sm border-b border-gray-heavy lg:w-[1200px] lg:mx-auto lg:leading-[22px] lg:text-base",children:f.map((e,t)=>(0,s.jsxs)("div",{className:"ml-2 first:ml-0",children:[(0,s.jsx)("span",{children:"#"}),(0,s.jsx)(r(),{href:"/open/".concat(l),children:e})]},t))}),(0,s.jsx)("div",{className:"py-[30px] text-center leading-[22px] text-sm font-bold",children:u})]})]})},p=t(41795),openComponents_Open100Home=e=>{let{openName:l,infos:t,isShowAvatarTitle:x=!0,list:g,briefsTitles:o,briefs:m,sponsors:d,footerLists:h,footerTags:f,footerLastWords:u,userData:j}=e,v=(0,a.useRouter)(),b=v.query.closetNameEn,{isLg:N}=(0,c.Z)(),{isWebview:y}=(0,p.Z)();return(0,s.jsxs)("main",{children:[(0,s.jsxs)("article",{id:"open-register",className:"mt-5 mx-3 lg:flex lg:w-[1080px] lg:mt-20 lg:mx-auto",children:[(0,s.jsx)("div",{className:"flex justify-center lg:block lg:mr-[100px]",children:(0,s.jsx)(i.qE,{src:t.avatarSrc,imageSize:200,imagePcSize:300,noCusorPointer:!0})}),(0,s.jsxs)("div",{className:"mt-5 text-center lg:flex-1 lg:mt-0 lg:text-left",children:[(0,s.jsx)("div",{className:"leading-[25px] text-lg lg:leading-[29px] lg:text-[21px] text-primary",children:t.string1}),(0,s.jsx)("div",{className:"mt-[10px] leading-[33px] text-xl font-bold lg:leading-[42px] lg:text-[30px]",children:t.string2}),(0,s.jsx)("div",{className:"mt-[2px] leading-[29px] text-[21px] font-bold lg:leading-[33px] lg:text-2xl",children:t.string3}),t.url&&j&&(0,s.jsxs)(r(),{href:t.url,rel:"nofollow",target:N?"_blank":"_self",className:"block mt-[10px] leading-[22px] text-[#5a5a5a] underline",children:[null==j?void 0:j.name,"的串聯貼文",">"]}),t.string4&&(0,s.jsx)("div",{className:"mt-[30px] leading-[25px] text-lg text-[#e50057] lg:leading-[29px] lg:text-[21px]",children:t.string4}),(0,s.jsx)("div",{className:"text-left leading-[22px] lg:leading-[25px] lg:text-lg ".concat(t.string4?"mt-[10px]":"mt-[30px]"),children:t.descriptions.map((e,l)=>(0,s.jsxs)("div",{children:[""===e&&0!==l&&(0,s.jsx)("br",{}),e]},l))}),!y&&"/open/100/[closetNameEn]"!==v.pathname&&(0,s.jsxs)("div",{className:"mt-[30px] lg:flex lg:items-center",children:[(0,s.jsxs)("div",{className:"mb-3 text-sm lg:order-1 lg:mb-0 lg:ml-5",children:["活動已圓滿結束",(0,s.jsx)("br",{}),"下載 PopChill App 收到下一場名人衣櫥開箱通知"]}),(0,s.jsx)(i.dA,{})]})]})]}),"/open/100/[closetNameEn]"===v.pathname&&(0,s.jsx)("div",{className:"h-[50px] mt-[30px] mx-3 lg:w-[519px] lg:h-[102px] lg:mt-[50px] lg:mx-auto",onClick:()=>{b||v.push("/open/".concat(l,"?step=register")),b&&v.push("/open/".concat(l,"/").concat(b,"?step=register"))},children:(0,s.jsx)("button",{className:"w-full h-full bg-primary leading-[25px] text-lg text-white font-bold rounded lg:leading-[50px] lg:text-4xl lg:rounded-lg",children:t.registerButtonText})}),t.underRegisterButtonText&&(0,s.jsx)("div",{className:"mt-5 text-center text-sm lg:leading-[29px] lg:text-[21px]",children:t.underRegisterButtonText}),(0,s.jsx)("div",{className:"pt-[50px] mt-[50px] bg-[#f7f7f7] lg:pt-20 lg:pb-[57px] lg:mt-20",children:(0,s.jsx)("div",{className:"mx-3 lg:mx-auto lg:w-[1170px]",children:g.sections.map(e=>(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)("div",{className:"mb-5 text-center leading-[22px] text-2xl font-bold lg:mb-[50px] lg:leading-[67px] lg:text-5xl",children:e.title}),(0,s.jsx)("div",{className:"flex flex-wrap mb-[30px] lg:mb-[41px]",children:e.users.map((e,t)=>(0,s.jsxs)("div",{className:"w-[calc(33.3333%-16.7px)] mb-5 ".concat(0!==t&&(t+1)%3==0?"mr-0":"mr-[25px]"," lg:w-[calc(16.6666%-45px)] lg:mb-[39px] ").concat(0!==t&&(t+1)%6==0?"lg:mr-0":"lg:mr-[54px]"," "),children:[(0,s.jsxs)("a",{href:e.username?"/user/".concat(e.username):"/open/".concat(l,"/").concat(e.name_en),target:N?"_blank":"_self",className:"cursor-pointer",rel:"noreferrer",children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:e.special?"p-[2px] border-[2px] border-primary rounded-full":"",children:(0,s.jsx)(i.qE,{src:e.image,imageSize:"responsive"})}),e.text_row_1&&e.text_row_2&&(0,s.jsx)("div",{className:"absolute bottom-[-10px] right-[-8px] md:bottom-0 md:right-0",children:(0,s.jsxs)("div",{className:"flex flex-col justify-center items-center w-10 md:w-12 h-10 md:h-12 bg-primary text-white leading-[14px] md:leading-[17px] text-xs rounded-full",children:[(0,s.jsx)("div",{children:e.text_row_1}),(0,s.jsx)("div",{children:e.text_row_2})]})})]}),(0,s.jsx)("div",{className:"mt-[10px] text-center text-sm font-bold break-words lg:leading-[25px] lg:text-lg",children:e.name}),x&&(0,s.jsx)("div",{className:"mt-[2px] text-center leading-[17px] text-xs text-primary break-words lg:leading-[21px] lg:text-[15px]",children:e.title}),!1===N&&e.text_row_1&&e.text_row_2&&(0,s.jsxs)("div",{className:"flex justify-center leading-[17px] text-xs lg:leading-[21px] lg:text-[15px] ".concat(e.special?"text-primary":""),children:[(0,s.jsx)("div",{className:"mr-[3px]",children:e.text_row_1}),(0,s.jsx)("div",{children:e.text_row_2})]})]}),!y&&e.post_url&&(0,s.jsxs)(r(),{href:e.post_url,rel:"noreferrer",target:N?"_blank":"_self",className:"block mt-[6px] text-center leading-[17px] text-xs text-[#5a5a5a] underline",children:["查看串聯貼文",">"]})]},t))})]},e.id))})}),(0,s.jsxs)("div",{className:"relative h-[128px] lg:h-[242px]",children:[(0,s.jsx)(i.u5,{src:N?"".concat("https://images.popchill.com/site/launch","/PC_register_1.jpg"):"".concat("https://images.popchill.com/site/launch","/MW_register_1.jpg"),alt:"home middle banner image",layout:"fill",objectFit:"cover"}),(0,s.jsx)("div",{className:"absolute inset-0",children:(0,s.jsxs)("div",{className:"h-full py-6 lg:py-[50px]",children:[(0,s.jsx)("div",{className:"text-center leading-[22px] font-bold text-white lg:leading-[50px] lg:text-4xl",children:"下載 App 接收最新開箱通知"}),(0,s.jsx)("div",{className:"flex justify-center mt-3 mx-3 lg:mt-[30px] lg:mx-auto",children:(0,s.jsx)(i.dA,{})})]})})]}),(0,s.jsxs)("div",{className:"mt-[50px] text-center lg:mt-20",children:[(0,s.jsx)("div",{id:"open-brief",className:"leading-[33px] text-2xl font-bold lg:leading-[52px] lg:text-[37px]",children:o.title}),(0,s.jsx)("div",{className:"mt-[10px] leading-[22px]  lg:leading-[29px] lg:text-[21px]",children:o.subtitle})]}),(0,s.jsx)("div",{className:"mx-3 lg:flex lg:mt-[30px] lg:mx-auto lg:w-[1060px] ".concat(1===m.length?"lg:justify-center":"lg:justify-between"),children:m.map((e,t)=>(0,s.jsxs)(r(),{href:e.href,rel:(e.imgSrc,"".concat("https://images.popchill.com/events/open","/").concat(l,"/images/PopChill_intro.jpg"),"noreferrer"),target:N?"_blank":"_self",className:"block mt-5 rounded-[10px] shadow-open-brief cursor-pointer lg:w-[500px] lg:mt-0",children:[N&&(0,s.jsx)(i.yo,{src:e.imgSrc,alt:e.imgAlt,placeholder:"blur",blurDataURL:"/open-image-placeholder.svg",aspectRatio:.46,className:"rounded-t-[10px]"}),!1===N&&(0,s.jsx)(i.yo,{src:e.imgSrc,alt:e.imgAlt,placeholder:"blur",blurDataURL:"/open-image-placeholder.svg",aspectRatio:160/351,className:"rounded-t-[10px]"}),(0,s.jsxs)("div",{className:"p-5 lg:pt-0 lg:px-[25px] lg:pb-[29px] lg:mt-[31px]",children:[(0,s.jsx)("div",{className:"text-center text-sm lg:leading-[30px] lg:text-[21px] font-bold",children:e.title}),(0,s.jsxs)("div",{className:"text-sm lg:mt-3 lg:leading-[30px] lg:text-lg",children:["string"==typeof e.content&&e.content,Array.isArray(e.content)&&e.content.map((e,l)=>(0,s.jsxs)("div",{children:[""===e&&(0,s.jsx)("br",{}),e]},l))]})]})]},t))}),(0,s.jsx)("div",{className:d.length?"my-[50px]":"mt-[50px]",children:!!d.length&&(0,s.jsxs)("div",{className:"mx-3 lg:my-20 lg:mx-auto lg:w-[1200px]",children:[(0,s.jsx)("div",{className:"text-center leading-[33px] text-2xl font-bold lg:leading-[52px] lg:text-[37px]",children:"協辦單位"}),(0,s.jsxs)("div",{className:"mt-5 lg:mt-[50px]",children:[1===d.length&&(0,s.jsx)(r(),{href:d[0].url,rel:"noreferrer",target:N?"_blank":"_self",className:"relative block w-full h-full mx-auto cursor-pointer lg:w-[260px] lg:h-[260px]",children:(0,s.jsx)(i.yo,{src:d[0].imgSrc,alt:"avatar",placeholder:"blur",blurDataURL:"/open-image-placeholder.svg",aspectRatio:1})}),1!==d.length&&(0,s.jsx)("div",{className:"flex flex-wrap",children:d.map((e,l)=>(0,s.jsx)("div",{className:"w-[calc(33.3333%-16.7px)] mb-5 ".concat(0!==l&&(l+1)%3==0?"mr-0":"mr-[25px]"," lg:w-[calc(25%-40px)] lg:mb-[30px] ").concat(0!==l&&(l+1)%4==0?"lg:mr-0":"lg:mr-[53px]"," "),children:(0,s.jsx)(r(),{href:e.url,rel:"noreferrer",target:N?"_blank":"_self",className:"relative",children:(0,s.jsx)(i.yo,{src:e.imgSrc,alt:"avatar",placeholder:"blur",blurDataURL:"/open-image-placeholder.svg",aspectRatio:1})})},l))})]})]})}),(0,s.jsxs)("footer",{className:"bg-[#f7f7f7]",children:[(0,s.jsx)("div",{className:"py-[50px] px-3 mx-3 leading-[30px] text-sm lg:w-[1200px] lg:py-20 lg:mx-auto lg:text-[16
1px]",children:h.map((e,l)=>(0,s.jsxs)("div",{className:"first:mb-[22px]",children:[(0,s.jsxs)("div",{children:["【",e.title,"】"]}),e.list&&(0,s.jsx)("ul",{children:e.list.map((e,l)=>(0,s.jsx)("li",{className:"list-disc list-outside",children:e},l))}),e.contents&&e.contents.map((e,l)=>(0,s.jsx)(n.Fragment,{children:(0,s.jsx)("div",{children:e})},l))]},l))}),(0,s.jsx)("div",{className:"flex flex-wrap justify-center py-[30px] mx-3 text-sm border-b border-gray-heavy lg:w-[1200px] lg:mx-auto lg:leading-[22px] lg:text-base",children:f.map((e,t)=>(0,s.jsxs)("div",{className:"ml-2 first:ml-0",children:[(0,s.jsx)("span",{children:"#"}),(0,s.jsx)(r(),{href:"/open/".concat(l),children:e})]},t))}),(0,s.jsx)("div",{className:"py-[30px] text-center leading-[22px] text-sm font-bold",children:u})]})]})},g=t(87536),o=t(2804),m=t(47872),d=t(75689),h=t(63736),f=t(5454),openComponents_Register=e=>{let{openName:l,infos:t,footerTags:x,footerLastWords:c}=e,p=(0,a.useRouter)(),u=p.query.closetNameEn,j=(0,o.Zl)(m.fp),v=(0,o.rb)(m.fp),[b,N]=(0,n.useState)(!1),{handleSubmit:y,register:_}=(0,g.cI)({defaultValues:{email:"",phone:""}}),{mutate:w}=(0,f.Dp)(l,u,{onSuccess:e=>{let{code:l,message:t}=e;0===l&&(d.B("CompleteRegistration",{content_name:"celebrity",status:"1"}),"/open/100"===p.pathname&&h.sendGA4Event("conversion",{send_to:h.GAD_TRACKING_OPEN_100_SEND_TO}),"/open/vintage"===p.pathname&&h.sendGA4Event("conversion",{send_to:h.GAD_TRACKING_OPEN_VINTAGE_SEND_TO}),"/open/pro"===p.pathname&&h.sendGA4Event("conversion",{send_to:h.GAD_TRACKING_OPEN_PRO_SEND_TO}),"/open/style"===p.pathname&&h.sendGA4Event("conversion",{send_to:h.GAD_TRACKING_OPEN_STYLE_SEND_TO}),"/open/kol"===p.pathname&&h.sendGA4Event("conversion",{send_to:h.GAD_TRACKING_OPEN_KOL_SEND_TO}),goToOpen100ThanksPageHandler()),1===l&&(N(!1),j({isOpen:!0,title:"",content:t,onOk:v}))}}),goToOpen100ThanksPageHandler=()=>{u&&p.push("/open/".concat(l,"/").concat(u,"?step=thanks")),u||p.push("/open/".concat(l,"?step=thanks"))};return(0,s.jsxs)("div",{className:"flex flex-col h-[calc(var(--app-height)-52px)] lg:h-[calc(var(--app-height)-64px)]",children:[(0,s.jsxs)("article",{className:"flex-1 mt-5 mb-20 mx-3 lg:flex lg:w-[1104px] lg:px-3 lg:my-20 lg:mx-auto",children:[(0,s.jsx)("div",{className:"flex justify-center lg:block lg:mr-[100px]",children:(0,s.jsx)(i.qE,{src:t.avatarSrc,imageSize:200,imagePcSize:300,noCusorPointer:!0})}),(0,s.jsxs)("div",{className:"lg:flex-1 lg:text-left",children:[(0,s.jsx)("div",{className:"mt-[20px] text-center leading-[29px] text-[21px] font-bold lg:mt-0 lg:text-left lg:leading-[42px] lg:text-[30px]",children:t.string1}),(0,s.jsx)("div",{className:"mt-[10px] leading-[22px] lg:leading-[29px] lg:text-[21px]",children:t.string2}),(0,s.jsxs)("form",{className:"mt-[30px]",onSubmit:y(e=>{let l=e.phone?e:{email:e.email};N(!0),w(l)}),children:[(0,s.jsxs)("div",{className:"lg:flex lg:items-center",children:[(0,s.jsx)("label",{htmlFor:"open-register-email",className:"block font-bold leading-[22px] mb-[10px] lg:w-[100px] lg:mb-0 lg:mr-5 lg:leading-[29px] lg:text-[21px]",children:(0,s.jsxs)("span",{children:["E-mail",(0,s.jsx)("span",{className:"text-warning",children:" *"}),":"]})}),(0,s.jsx)(i.II,{..._("email"),id:"open-register-email",inputMode:"email",placeholder:"請填寫",containerClassName:"lg:flex-1 h-[49px]",bodyClassName:"leading-[25px] text-[18px]"})]}),(0,s.jsxs)("div",{className:"mt-5 lg:flex lg:items-center lg:mt-[30px]",children:[(0,s.jsx)("label",{htmlFor:"open-register-phone",className:"block font-bold leading-[22px] mb-[10px] lg:w-[100px] lg:mb-0 lg:mr-5 lg:leading-[29px] lg:text-[21px]",children:"手機:"}),(0,s.jsx)(i.II,{..._("phone"),id:"open-register-phone",placeholder:"請填寫 ( 選填 )",maxLength:10,inputMode:"tel",containerClassName:"lg:flex-1 h-[49px]",bodyClassName:"leading-[25px] text-[18px]"})]}),(0,s.jsx)("div",{className:"text-gray-heavy mt-5 text-sm lg:mt-[30px] lg:leading-[22px] lg:text-base",children:t.string3}),(0,s.jsx)("div",{className:"mt-[50px] h-[50px] lg:w-[230px] lg:h-[70px] lg:mx-auto",children:(0,s.jsx)("button",{type:"submit",className:"w-full h-full bg-primary text-white leading-[25px] text-lg font-bold rounded lg:leading-[33px] lg:text-2xl lg:rou
1nded-lg",disabled:b,children:b?(0,s.jsx)(i.gb,{}):"送出"})})]})]})]}),(0,s.jsxs)("footer",{className:"bg-[#f7f7f7]",children:[(0,s.jsx)("div",{className:"flex flex-wrap justify-center py-[30px] mx-3 text-sm border-b border-gray-heavy lg:w-[1200px] lg:mx-auto lg:leading-[22px] lg:text-base",children:x.map((e,t)=>(0,s.jsxs)("div",{className:"ml-2 first:ml-0",children:[(0,s.jsx)("span",{children:"#"}),(0,s.jsx)(r(),{href:"/open/".concat(l),children:e})]},t))}),(0,s.jsx)("div",{className:"py-[30px] text-center leading-[22px] text-sm font-bold",children:c})]})]})},openComponents_Thanks=e=>{let{openName:l,infos:t,footerTags:a,footerLastWords:x}=e,c=(0,o.Zl)(m.Jk),p=(0,o.rb)(m.Jk),[g,d]=(0,n.useState)("");return(0,n.useEffect)(()=>{d("".concat(location.origin).concat(location.pathname))},[]),(0,s.jsxs)("div",{className:"flex flex-col h-[calc(var(--app-height)-52px)] lg:h-[calc(var(--app-height)-64px)]",children:[(0,s.jsxs)("article",{className:"flex-1 mt-5 mb-20 mx-3 lg:flex lg:w-[1104px] lg:px-3 lg:my-20 lg:mx-auto",children:[(0,s.jsx)("div",{className:"flex justify-center lg:block lg:mr-[100px]",children:(0,s.jsx)(i.qE,{src:t.avatarSrc,imageSize:200,imagePcSize:300,noCusorPointer:!0})}),(0,s.jsxs)("div",{className:"lg:flex-1 lg:text-left",children:[(0,s.jsx)("div",{className:"mt-5 text-center leading-[29px] text-[21px] font-bold lg:mt-0 lg:text-left lg:leading-[42px] lg:text-[30px]",children:t.string1}),(0,s.jsx)("div",{className:"mt-[10px] leading-[22px] lg:leading-[29px] lg:text-[21px]",children:t.string2}),(0,s.jsxs)("div",{className:"mt-[30px] lg:flex",children:[(0,s.jsx)(i.II,{id:"open-thanks-value",readOnly:!0,value:g,containerClassName:"lg:flex-1 h-[49px]",bodyClassName:"leading-[25px] text-[18px] cursor-not-allowed"}),(0,s.jsx)("div",{className:"mt-[10px] h-[50px] lg:w-[110px] lg:h-[49px] lg:mt-0 lg:ml-[10px]",onClick:()=>{let e=document.getElementById("open-thanks-value");e&&(e.select(),e.setSelectionRange(0,999),document.execCommand("copy"),c({isOpen:!0,content:"已複製",onOk:p}))},children:(0,s.jsx)("button",{className:"w-full h-full bg-primary text-white leading-[25px] text-lg font-bold rounded lg:leading-[29px] lg:text-[21px] lg:rounded-lg",children:"複製"})})]}),t.string3&&(0,s.jsx)("div",{className:"mt-5 text-center lg:mt-[30px] lg:text-left",children:(0,s.jsx)(r(),{href:"/open/".concat(l),className:"text-[#008985] leading-[22px] underline lg:leading-[29px] lg:text-[21px]",children:t.string3})})]})]}),(0,s.jsxs)("footer",{className:"bg-[#f7f7f7]",children:[(0,s.jsx)("div",{className:"flex flex-wrap justify-center py-[30px] mx-3 text-sm border-b border-gray-heavy lg:w-[1200px] lg:mx-auto lg:leading-[22px] lg:text-base",children:a.map((e,t)=>(0,s.jsxs)("div",{className:"ml-2 first:ml-0",children:[(0,s.jsx)("span",{children:"#"}),(0,s.jsx)(r(),{href:"/open/".concat(l),children:e})]},t))}),(0,s.jsx)("div",{className:"py-[30px] text-center leading-[22px] text-sm font-bold",children:x})]})]})},open_Open=e=>{let{openName:l,homeInfos:t,homeAvatarListTitles:n,isShowAvatarTitle:x=!0,homeBriefsTitles:r,homeBriefs:i,homeSponsors:c,homeFooterLists:p,homeFooterTags:g,homeFooterLastWords:o,registerInfos:m,thanksInfos:d,list:h,open100List:f,userData:u,isTestForApp:j=!1}=e,v=(0,a.useRouter)(),b=v.query.step;return(0,s.jsxs)(s.Fragment,{children:["register"!==b&&"thanks"!==b&&(0,s.jsxs)(s.Fragment,{children:["100"===l&&f&&(0,s.jsx)(openComponents_Open100Home,{openName:l,infos:t,isShowAvatarTitle:x,list:f,userData:u,briefsTitles:r,briefs:i,sponsors:c,footerLists:p,footerTags:g,footerLastWords:o}),"100"!==l&&n&&h&&(0,s.jsx)(openComponents_Home,{openName:l,infos:t,avatarListTitles:n,isShowAvatarTitle:x,list:h,userData:u,briefsTitles:r,briefs:i,sponsors:c,footerLists:p,footerTags:g,footerLastWords:o})]}),"register"===b&&(0,s.jsx)(openComponents_Register,{openName:l,infos:m,footerTags:g,footerLastWords:o}),"thanks"===b&&(0,s.jsx)(openComponents_Thanks,{openName:l,infos:d,footerTags:g,footerLastWords:o})]})}},5454:function(e,l,t){t.d(l,{eE:function(){return x},FM:function(){return r},t$:function(){return useGetCampaigns},If:function(){return useGetPrecampaign},Wl:function(){return useGetPrecampaignClosetList},Dp:function(){return useRegisterPrecampaign}});var s=t(9669),a=t.n(s);let n=a().create({baseURL:"https://api-web.popchill.com/api",timeout:2e4});var x=n,r={forgeGetPrecampaignClosetListQueryKey:e=>["getPrecampaignClosetList",e],forgeGetPrecampaignQueryKey:(e,l)=>["getPrecampaign",e,l],forgeGetCampaignsQueryKey:e=>["getCampaigns","eventName"]},i=t(78551);
1let getPrecampaignClosetList=async e=>{let{data:l}=await x.get("/getPrecampaignClosetList?name=".concat(e));return l},useGetPrecampaignClosetList=(e,l)=>(0,i.a)({queryKey:r.forgeGetPrecampaignClosetListQueryKey(e),queryFn:()=>getPrecampaignClosetList(e),...l}),getPrecampaign=async(e,l)=>{let{data:t}=await x.get("/getPrecampaign?name=".concat(e).concat(l?"&closet_name_en=".concat(l):""));return t},useGetPrecampaign=(e,l,t)=>(0,i.a)({queryKey:r.forgeGetPrecampaignQueryKey(e,l),queryFn:()=>getPrecampaign(e,l),...t});var c=t(98029);let registerPrecampaign=async(e,l,t)=>{let{data:s}=await x.post("/registerPrecampaign?name=".concat(l).concat(t?"&closet_name_en=".concat(t):""),e);return s},useRegisterPrecampaign=(e,l,t)=>(0,c.D)({mutationFn:t=>registerPrecampaign(t,e,l),...t}),getCampaigns=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"100",{data:l}=await a().get("".concat("https://api-web.popchill.com/api","/getCampaigns/").concat(e));return l},useGetCampaigns=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"100",l=arguments.length>1?arguments[1]:void 0;return(0,i.a)({queryKey:r.forgeGetCampaignsQueryKey(e),queryFn:()=>getCampaigns(e),...l})}}}]);

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.