1/*! For license information please see [id]-9e55b262c5ac3873.js.LICENSE.txt */ 2(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8808],{60532:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},o=n(42135),l=function(e,t){return i.createElement(o.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:a}))};l.displayName="MenuOutlined";var s=i.forwardRef(l)},10808:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(87462),i=n(67294),a=n(53124),o=n(45755),l=function(e){return e?"function"==typeof e?e():e:null},s=n(33603),c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},u=function(e){var t=e.title,n=e.content,r=e.prefixCls;return t||n?i.createElement(i.Fragment,null,t&&i.createElement("div",{className:"".concat(r,"-title")},l(t)),i.createElement("div",{className:"".concat(r,"-inner-content")},l(n))):null};var d=i.forwardRef(function(e,t){var n=e.prefixCls,l=e.title,d=e.content,m=e._overlay,p=e.placement,f=void 0===p?"top":p,v=e.trigger,h=void 0===v?"hover":v,x=e.mouseEnterDelay,g=void 0===x?.1:x,y=e.mouseLeaveDelay,j=void 0===y?.1:y,b=e.overlayStyle,w=void 0===b?{}:b,N=c(e,["prefixCls","title","content","_overlay","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),I=i.useContext(a.E_).getPrefixCls,k=I("popover",n),C=I();return i.createElement(o.Z,(0,r.Z)({placement:f,trigger:h,mouseEnterDelay:g,mouseLeaveDelay:j,overlayStyle:w},N,{prefixCls:k,ref:t,overlay:m||i.createElement(u,{prefixCls:k,title:l,content:d}),transitionName:(0,s.mL)(C,"zoom-big",N.transitionName)}))})},26561:function(e,t,n){"use strict";n(67294);var r=n(94184),i=n.n(r),a=n(83087),o=n(85893);t.Z=function(e){var t=e.data,n=void 0===t?[]:t,r=e.height,l=void 0===r?"100%":r,s=(0,o.jsx)(o.Fragment,{});switch(n.length){case 0:s=(0,o.jsx)(o.Fragment,{children:Array(4).fill("").map(function(e,t){return(0,o.jsx)("div",{className:"w-[50%] h-[50%] p-[1px]",children:(0,o.jsx)("div",{className:"h-full bg-[rgba(255,255,255,0.04)]"})},t)})});break;case 1:s=(0,o.jsx)("div",{className:"w-full h-full p-[1px]",children:(0,o.jsx)(a.V,{tag:"v800",className:"h-full",src:n[0]})});break;case 2:s=(0,o.jsx)(o.Fragment,{children:n.map(function(e,t){return(0,o.jsx)("div",{className:"h-[50%] w-full p-[1px]",children:(0,o.jsx)(a.V,{tag:"v800",className:"h-full",src:e})},t)})});break;case 3:s=(0,o.jsx)(o.Fragment,{children:n.map(function(e,t){return(0,o.jsx)("div",{className:i()("p-[1px]",[0===t?"h-[62.3%] w-full":"h-[37.7%] w-[50%]"]),children:(0,o.jsx)(a.V,{tag:"v800",className:"h-full",src:e})},t)})});break;case 4:s=(0,o.jsx)(o.Fragment,{children:n.map(function(e,t){return(0,o.jsx)("div",{className:"w-[50%] h-[50%] p-[1px]",children:(0,o.jsx)(a.V,{tag:"v800",className:"h-full",src:e})},t)})});break;case 5:s=(0,o.jsx)(o.Fragment,{children:n.map(function(e,t){return(0,o.jsx)("div",{className:i()("p-[1px]",[t<2?"h-[66%]":"h-[34%]",t<2?"w-[50%]":"w-[33.3333%]"]),children:(0,o.jsx)(a.V,{tag:"v800",className:"h-full",src:e})},t)})});break;case 6:s=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"p-[1px] h-[66%] w-[66.6666%]",children:(0,o.jsx)(a.V,{tag:"v800",className:"h-full",src:n[0]})}),(0,o.jsxs)("div",{className:"p-[1px] h-[66%] w-[33.3333%]",children:[(0,o.jsx)("div",{className:"h-[50%]",children:(0,o.jsx)(a.V,{tag:"v800",className:"h-full",src:n[1]})}),(0,o.jsx)("div",{className:"h-[50%] mt-[1px]",children:(0,o.jsx)(a.V,{tag:"v800",className:"h-full",src:n[2]})})]}),(0,o.jsx)("div",{className:"p-[1px] h-[34%] w-[33.3333%]",children:(0,o.jsx)(a.V,{tag:"v800",className:"h-full",src:n[3]})}),(0,o.jsx)("div",{className:"p-[1px] h-[34%] w-[33.3333%]",children:(0,o.jsx)(a.V,{tag:"v800",className:"h-full",src:n[4]})}),(0,o.jsx)("div",{className:"p-[1px] h-[34%] w-[33.3333%]",children:(0,o.jsx)(a.V,{tag:"v800",className:"h-full",src:n[5]})})]});break;case 7:s=(0,o.jsx)(o.Fragment,{children:n.map(function(e,t){return(0,o.jsx)("div",{className:i()("p-[1px]",[t<1?"h-[50%]":"h-[25%]",t<1?"w-full":"w-[33.3333%]"]),children:(0,o.jsx)(a.V,{tag:"v800",className:"h-full",src:e})},t)})});break;case 8:s=(0,o.jsx)(o.Fragment,{children:n.map(function(e,t){return(0,o.jsx)("div",{className:i()("p-[1px]",[t<2?"h-[50%]":"h-[25%]",t<2?"w-[50%]":"w-[33.3333%]"]),children:(0,o.jsx)(a.V,{tag:"v800",className:"h-full",src:e})},t)})});break;case 9:s=(0,o.jsx)(o.Fragment,{children:n.map(function(e,t){return(0,o.jsx)("div",{className:i()("p-[1px] w-[33.3333%] h-[33.3333%]"),children:(0,o.jsx)(a.V,{tag:"v800",className:"h-full",src:e})},t)})})}return(0,o.jsx)("div",{className:"relative rounded-lg flex flex-wrap overflow-hidden w-full",style:{height:l},children:s})}},18624:function(e,t,n){"use strict";n.d(t,{O:function(){return u}});var r=n(67294),i=n(19521),a=n(79820),o=n(19857),l=n(85893),s=i.ZP.ul.withConfig({displayName:"PageSort__StyledPageSort",componentId:"sc-77qbv2-0"})(["display:flex;margin-bottom:32px;justify-content:space-between;align-items:center;"]),c=i.ZP.ul.withConfig({displayName:"PageSort__StyledSortList",componentId:"sc-77qbv2-1"})(["display:flex;margin:0;padding:0;list-style:none;> li{color:",";font-size:",";line-height:24px;font-weight:600;margin-right:16px;cursor:pointer;display:flex;align-items:center;transition:all 0.3s ease;&:hover{transition:all 0.3s ease;}&.active,&:hover{color:",";}}"],function(e){return e.theme["neutral-400"]},function(e){return"small"===e.size?"14px":"16px"},function(e){return e.theme.primary}
2),u=function(e){var t=e.data,n=e.onChange,i=e.extra,u=e.style,d=e.className,m=e.dark,p=void 0!==m&&m,f=e.size,v=void 0===f?"default":f,h=(0,r.useState)(0),x=h[0],g=h[1],y=(0,r.useState)(a.SortType.DESC),j=y[0],b=y[1];return(0,l.jsxs)(s,{style:u,className:d,children:[(0,l.jsx)(c,{size:v,children:t.map(function(e,t){return(0,l.jsxs)("li",{className:t===x?"active":"",onClick:function(){return function(e,t){e.sort&&x===t&&j===a.SortType.DESC?(b(a.SortType.ASC),n(e,a.SortType.ASC)):(b(a.SortType.DESC),n(e,a.SortType.DESC)),g(t)}(e,t)},children:[e.name,e.sort&&(0,l.jsx)(o.O,{dark:p,sort:t===x?j:null})]},t)})}),i]})}},77789:function(e,t,n){"use strict";n.d(t,{t:function(){return m}});var r=n(16835),i=n(79820),a=n(16536),o=n(50319),l=n(33524),s=n(72080),c=n(25039),u=n(67294),d=n(85893),m=function(e){var t=e.productId,n=e.onVoteSuccess,m=e.children,p=(0,c.q)().validateIsLogin,f=(0,o.D)(l.K2V),v=(0,r.Z)(f,2),h=v[0],x=v[1].loading,g=(0,u.useCallback)(function(){p()&&!x&&h({variables:{param:{artworkId:t,actionType:i.ActionType.CONFIRM,viewType:i.SocialViewType.AI_CREATION}}}).then(function(e){var r,i;null!=e&&null!==(r=e.data)&&void 0!==r&&null!==(i=r.status)&&void 0!==i&&i.voteAction&&(null==n||n(t,e.data.status.voteAction))}).catch(function(e){a.ZP.destroy(),a.ZP.error((0,s.Pp)(e)||"æç¥¨å¤±è´¥")})},[x,n,t,p,h]);return(0,d.jsx)("div",{onClick:g,children:m})}},57087:function(e,t,n){"use strict";n.d(t,{H:function(){return l}});var r=n(94184),i=n.n(r),a=n(83087),o=n(85893),l=function(e){var t=e.host,n=e.className;return(0,o.jsx)("div",{className:i()("relative",n),children:(0,o.jsx)("div",{className:"flex",children:(0,o.jsxs)("div",{className:"flex items-center py-2 px-3 bg-neutral-900/[0.04] rounded-xl mr-8 ",children:[(0,o.jsx)("span",{className:" text-xs text-neutral-500 font-semibold mr-3",children:"䏾忹"}),(0,o.jsx)("div",{className:"flex-1 flex",children:(0,o.jsx)(a.V,{src:t,tag:"v400",className:"min-w-[403px] h-12 rounded-[4px]",dark:!0})})]})})})}},99374:function(e,t,n){"use strict";n.d(t,{l:function(){return b}});var r=n(50029),i=n(59499),a=n(87794),o=n.n(a),l=n(94184),s=n.n(l),c=n(11163),u=n(67294),d=n(79820),m=n(75282),p=n(56753),f=n(25039),v=n(7252),h=n.n(v),x=n(27484),g=n.n(x),y=n(85893);var j=function(e){return g()(1e3*e).format("YYYY/MM/DD")};var b=function(e){var t,n=e.banner,a=(0,f.q)().validateIsLogin,l=(0,p.m)().store,v=(0,m.l)().showMute,x=(0,c.useRouter)(),g=(0,u.useMemo)(function(){return{canContribute:n.contributeTime?(new Date).getTime()>1e3*n.contributeTime&&(new Date).getTime()<=1e3*n.endDateTime:n.startStatus===d.StartStatusEnum.ING,contributeWait:(new Date).getTime()<1e3*n.contributeTime}},[n]),b=g.canContribute,w=g.contributeWait,N=(0,u.useCallback)((0,r.Z)(o().mark(function e(){var t,r;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!a()){e.next=5;break}if(null===(t=l.userinfo)||void 0===t||!t.muzzleStatus){e.next=4;break}return v(null===(r=l.userinfo)||void 0===r?void 0:r.muzzleEndTime),e.abrupt("return");case 4:x.push({pathname:"/ai-competition/contribution",query:{competitionId:n.id,competitionType:n.type===d.CompetitionType.VIDEO?"video":n.type===d.CompetitionType.DRAFT?"draft":"normal"}});case 5:case"end":return e.stop()}},e)})),[n,l,a]);return(0,y.jsx)("div",{className:"h-[483px] m-auto rounded-2xl flex items-center cursor-pointer",style:{background:"url(".concat(null==n?void 0:n.banner_pc,") no-repeat center center"),backgroundSize:"cover"},onClick:function(){null!=n&&n.hiddenText&&N()},children:(0,y.jsxs)("div",{className:s()((t={},(0,i.Z)(t,h().content,!(null==n||!n.hiddenText)),(0,i.Z)(t,"ml-[64px]",!(null!=n&&n.hiddenText)),t)),children:[!(null!=n&&n.hiddenText)&&(0,y.jsxs)("div",{className:h().banner,children:[(0,y.jsx)("h2",{children:n.name}),(0,y.jsx)("p",{}),(null==n?void 0:n.theme)&&(0,y.jsxs)("div",{children:["åä½ä¸»é¢ï¼",null==n?void 0:n.theme]}),(null==n?void 0:n.contributeNotice)&&(0,y.jsxs)("div",{children:["æç¨¿é¡»ç¥ï¼",null==n?void 0:n.contributeNotice]}),(0,y.jsxs)("div",{children:["æç¨¿æ¶é´ï¼",j(null==n?void 0:n.contributeTime)," -"," ",j(null==n?void 0:n.contributeEndTime)]})]}),b&&(0,y.jsx)("button",{className:s()(h().btn,(0,i.Z)({},h().pos,!(null==n||!n.hiddenText))),onClick:N,children:"ç«å³æç¨¿"}),w&&(0,y.jsx)("button",{className:s()(h().btn,(0,i.Z)({},h().pos,!(null==n||!n.hiddenText))),children:"å³å°å¼å§"})]})})}},69164:function(e,t,n){"use strict";n.d(t,{E:function(){return u}});var r=n(94184),i=n.n(r),a=n(11163),o=n(87325),l=n.n(o),s=n(79820),c=n(85893),u=function(e){var t=e.banner,n=e.competitionResultList,r=e.competitionNews,o=e.extra,u=(0,a.useRouter)(),d=u.query.id,m=[{name:"åèµä½å",path:"/ai-competition/".concat(d),visible:!0},{name:"æ´»å¨ä»ç»",path:"/ai-competition/".concat(d,"/intro"),visible:!0},{name:"è·å¥å
¬ç¤º",path:"/ai-competition/".concat(d,"/announcement"),visible:!(null==t||!t.award_announcement_p_c)},{name:"è·å¥ä½å",path:"/ai-competition/".concat(d,"/award"),visible:!(null==n||!n.length)&&t.type!==s.CompetitionType.DRAFT},{name:"åªä½æ¥å¯¼",path:"/ai-competition/".concat(d,"/report"),visible:!(null==r||!r.length)}];return(0,c.jsxs)("div",{className:"my-10 flex justify-between items-center",children:[(0,c.jsx)("div",{className:"flex",children:m.filter(function(e){return e.visible}).map(function(e){return(0,c.jsx)("div",{className:i()(l().tab,{active:u.asPath.split("?")[0]===e.path}),onClick:function(){return u.replace(e.path)},children:e.name},e.name)})}),o]})}},16482:function(e,t,n){"use strict";n.d(t,{S:function(){return d}});var r=n(59499),i=(n(67294),n(83087)),a=n(94184),o=n.n(a),l=n(22608),s=n(85893);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?c(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var d=function(e){var t=e.image,n=e.size,r=e.className,a=e.style,c=e.hiddenIcon,d=void 0!==c&&c,m=e.isVip,p=e.iconClassName;return(0,s.jsxs)("div",{style:u({height:n,width:n},a),className:o()("relative",r),children:[(0,s.jsx)(i.V,{className:"w-full h-full rounded-[50%]",src:t,tag:"v400",dark:!0,alt:""}),!d&&m&&(0,s.jsx)("div",{className:o()("absolute -bottom-[2px] -right-[3px] w-4 h-4",p),children:(0,s.jsx)(l.M,{className:"w-full h-full",src:"/images/icons/vip-icon.svg"})})]})}},58726:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var r=n(19521),i=n(24016).Z.Search,a=(0,r.ZP)(i).withConfig({displayName:"MySearch",componentId:"sc-eeoez4-0"})(["border:2px solid ",";color:",";border-radius:8px;padding:4px 3px;width:","px;background:none;&:focus{border-color:",";}.ant-input-affix-wrapper{background:",";border:none;padding:4px 11px;&.ant-input-affix-wrapper-focused{box-shadow:none;}}.ant-input{background:",";color:",";&::placeholder{font-size:12px;color:",";}}> .ant-input-group > .ant-input-group-addon:last-child{background:",";.ant-input-search-button:not(.ant-btn-primary){background:",";border:none;color:",";transition:all 0.3s ease;&:hover{transition:all 0.3s ease;color:",";}}}.anticon-close-circle{color:",";}.anticon-search{font-size:16px;}"],function(e){return e.$dark?e.theme["neutral-300"]:e.theme["neutral-600"]},function(e){return e.theme["neutral-400"]},function(e){return e.width||"192"},function(e){return e.theme.primary},function(e){return e.$dark?"transparent":"#fff"},function(e){return e.$dark?"transparent":"#fff"},function(e){return e.$dark?e.theme["neutral-700"]:e.theme["neutral-200"]},function(e){return e.$dark?e.theme["neutral-400"]:e.theme["neutral-500"]},function(e){return e.$dark?"transparent":"#fff"},function(e){return e.$dark?"transparent":"#fff"},function(e){return e.theme["neutral-400"]},function(e){return e.$dark?e.theme["neutral-700"]:e.theme["neutral-200"]},function(e){return e.$dark?e.theme["neutral-400"]:e.theme["neutral-200"]})},19857:function(e,t,n){"use strict";n.d(t,{O:function(){return l}});n(67294);var r=n(19521),i=n(79820),a=n(85893),o=r.ZP.span.withConfig({displayName:"SorterInner__StyledSorterInner",componentId:"sc-104daex-0"})(["color:",";display:inline-flex;flex-direction:column;align-items:center;margin-left:4px;.anticon{display:inline-block;color:inherit;font-style:normal;line-height:0;text-align:center;text-transform:none;vertical-align:-0.125em;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;&.active{color:",";}svg{display:inline-block;}}"],function(e){return e.dark?e.theme["neutral-400"]:e.theme["neutral-500"]},function(e){return e.theme.primary}),l=function(e){var t=e.sort,n=e.style,r=e.dark,l=void 0!==r&&r;return(0,a.jsxs)(o,{style:n,dark:l,children:[(0,a.jsx)("span",{role:"img","aria-label":"caret-up",className:"anticon anticon-caret-up ant-table-column-sorter-up ".concat(t===i.SortType.ASC?"active":""),children:(0,a.jsx)("svg",{width:"0.6em",height:"1em",viewBox:"0 0 6 4",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M0.195262 3.80539C0.455612 4.06574 0.877722 4.06574 1.13807 3.80539L3 1.94346L4.86193 3.80539C5.12228 4.06574 5.54439 4.06574 5.80474 3.80539C6.06509 3.54504 6.06509 3.12293 5.80474 2.86258L3.4714 0.529246C3.21106 0.268897 2.78895 0.268897 2.5286 0.529246L0.195262 2.86258C-0.0650873 3.12293 -0.0650873 3.54504 0.195262 3.80539Z"})})}),(0,a.jsx)("span",{role:"img","aria-label":"caret-down",className:"anticon anticon-caret-down ant-table-column-sorter-down ".concat(t===i.SortType.DESC?"active":""),children:(0,a.jsx)("svg",{width:"0.6em",height:"1em",viewBox:"0 0 6 4",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M5.80474 0.194611C5.54439 -0.0657384 5.12228 -0.0657384 4.86193 0.194611L3 2.05654L1.13807 0.194611C0.877721 -0.0657382 0.455611 -0.0657382 0.195261 0.194611C-0.0650884 0.454961 -0.0650884 0.877071 0.195261 1.13742L2.5286 3.47075C2.78894 3.7311 3.21105 3.7311 3.4714 3.47075L5.80474 1.13742C6.06509 0.87707 6.06509 0.454961 5.80474 0.194611Z"})})})]})}},75282:function(e,t,n){"use strict";n.d(t,{l:function(){return l},u:function(){return r}});var r,i=n(77485),a=n(85893);!function(e){e.COMPETITION="COMPETITION",e.SQUARE="SQUARE",e.COMMENT="COMMENT"}(r||(r={}));var o={COMPETITION:"è¿è¡æç¨¿",SQUARE:"åå¸è¯/å¾",COMMENT:"è¯è®º"},l=function(){return{showMute:function(e,t){i.X.info({centered:!0,title:"æç¤º",maskStyle:{backgroundColor:"rgba(0,0,0,0.8)"},width:270,className:"hookModal dark",content:(0,a.jsx)("div",{className:"text-sm text-left text-neutral-800",children:"æ°¸ä¹
"===e?(0,a.jsxs)("span",{children:["æ±æï¼æ¨è¢«æ°¸ä¹
ç¦è¨ï¼æ æ³",o[t||r.COMPETITION],"ã"]}):(0,a.jsxs)(a.Fragment,{children:["æ±æï¼æ¨è¿å¨ç¦è¨æé´ï¼æ æ³",o[t||r.COMPETITION],t!==r.COMMENT&&"ï¼è¯·å¨ç¦è¨ç»æåå䏿´»å¨","ã",(0,a.jsxs)("div",{className:"flex items-center justify-center text-error bg-error bg-opacity-20 rounded-[12px] mt-2",children:["å©ä½ç¦è¨æ¶é´ï¼",e]})]})}),okText:"ç¥éäº",onOk:function(e){e()}})}}}},90063:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});var r=n(67294),i=function(e,t){var n=(0,r.useRef)(!1);(0,r.useEffect)(function(){n.current?e():n.current=!0},t)}},74513:function(e,t,n){"use strict";n.d(t,{$:function(){return a}});var r=n(27812),i=n(96486),a=function(e){var t=e.data,n=e.column,a=void 0===n?6:n,o=e.gutter,l=void 0===o?12:o,s=e.itemExtraHeight,c=void 0===s?0:s,u=e.sizeLoader,d=new Array(a).fill([]),m=new Array(a).fill(0),p=(a-1)*l,f=(1392-p)/a;return null==t||t.map(function(e){var t=(0,i.indexOf)(m,Math.min.apply(Math,(0,r.Z)(m))),n=Math.floor(f*(u?null==u?void 0:u(e):1))+c+l;m[t]=m[t]+n,d[t]=[].concat((0,r.Z)(d[t]),[e])}
2),{columnList:d,columnWidth:"calc((100% - ".concat(p,"px)/").concat(a,")"),columnGutter:l}}},76726:function(e,t,n){"use strict";n.r(t),n.d(t,{Competition:function(){return K},__N_SSP:function(){return W},default:function(){return Q}});var r=n(27812),i=n(59499),a=n(16835),o=n(50319),l=n(29323),s=n(11163),c=n(67294),u=n(18624),d=n(40945),m=n(57087),p=n(94184),f=n.n(p),v=n(41664),h=n.n(v),x=n(16482),g=n(48108),y=n(42142),j=n(83087),b=n(79820),w=n(23742),N=n.n(w),I=n(94678),k=n(26561),C=n(77789),T=n(85893),E=function(e){var t,n,r,i,a,o,l,s,u,d,m,p,v,w,E,O,S,_,P,M,D,V,A,L=e.data,Z=e.competitionType,z=e.onVoteSuccess,F=e.showAiGenTag,B=void 0===F||F,R=(0,c.useMemo)(function(){var e,t,n,r,i;return 4===(null==L||null===(e=L.gridImages)||void 0===e?void 0:e.length)?4/3*100:Z===b.ArtworkDBType.VIDEO_COMPETITION?16/9*100:null!=L&&null!==(t=L.imageBaseInfo)&&void 0!==t&&t.width&&null!=L&&null!==(n=L.imageBaseInfo)&&void 0!==n&&n.height?Number(null==L||null===(r=L.imageBaseInfo)||void 0===r?void 0:r.height)/Number(null==L||null===(i=L.imageBaseInfo)||void 0===i?void 0:i.width)*100:100},[]);return(0,T.jsxs)("div",{className:f()(N().MasonryColumn,[null!=L&&null!==(t=L.contestInfoExtra)&&void 0!==t&&t.rank?"rank".concat(null==L||null===(n=L.contestInfoExtra)||void 0===n?void 0:n.rank):""]),children:[(0,T.jsx)("div",{className:"w-full mb-2 relative",style:{paddingBottom:"".concat(R,"%")},children:(0,T.jsxs)("div",{className:f()("absolute left-0 top-0 bottom-0 right-0 rounded-2xl",N().MasonryColumnImage),children:[(0,T.jsxs)(h(),{href:"/ai-competition/product/".concat(L.id),children:[4===(null==L||null===(r=L.gridImages)||void 0===r?void 0:r.length)?(0,T.jsx)(k.Z,{data:(null==L||null===(i=L.gridImages)||void 0===i?void 0:i.map(function(e){return e}))||[]}):(0,T.jsx)(j.V,{src:null==L?void 0:L.artworkUrl,tag:"v800",className:"w-full h-full rounded-2xl"}),B&&(0,T.jsx)(I.M,{src:"/images/common/ai_gen_tag_v2.png",className:f()("w-[42px] object-cover absolute right-2 z-10 bottom-2")})]}),!(null==L||null===(a=L.contestInfoExtra)||void 0===a||!a.rank)&&(0,T.jsx)(T.Fragment,{children:(null==L||null===(o=L.contestInfoExtra)||void 0===o?void 0:o.rank)<=3?(0,T.jsx)("img",{className:"w-12 h-14 absolute left-2 -top-2 z-[2]",src:"/images/ai/competition/medal".concat(null==L||null===(l=L.contestInfoExtra)||void 0===l?void 0:l.rank,".png"),alt:"æå"}):(0,T.jsxs)("span",{className:"absolute left-3 top-3 rounded px-2 py-1.5 text-base text-neutral-800 !leading-none bg-black bg-opacity-50",children:["No.",null==L||null===(s=L.contestInfoExtra)||void 0===s?void 0:s.rank]})}),(null==L?void 0:L.type)===b.ArtworkDBType.VIDEO_COMPETITION&&(0,T.jsx)(h(),{href:"/ai-competition/product/".concat(L.id),children:(0,T.jsx)("div",{className:"absolute left-[50%] top-[50%] -ml-8 -mt-8",children:(0,T.jsx)(I.M,{src:"/images/ai/play.svg",className:"w-16 h-16"})})}),!(null==L||null===(u=L.contestInfoExtra)||void 0===u||!u.rankFloating)&&(0,T.jsxs)("span",{className:"absolute right-3 top-3 rounded px-2 py-1.5 text-base text-neutral-800 !leading-none bg-black bg-opacity-50 flex items-center",children:[(0,T.jsx)("span",{children:Math.abs(null==L||null===(d=L.contestInfoExtra)||void 0===d?void 0:d.rankFloating)}),(0,T.jsx)("span",{className:"inline-block w-4 h-4 ml-0.5",children:(null==L||null===(m=L.contestInfoExtra)||void 0===m?void 0:m.rankFloating)>0?(0,T.jsx)(y.M,{icon:"rank-up",className:"text-[16px] text-error"}):(0,T.jsx)(y.M,{icon:"rank-down",className:"text-[16px] text-[#45B26B]"})})]})]})}),(0,T.jsxs)("div",{children:[(0,T.jsx)("div",{className:"text-sm font-medium text-neutral-800 mb-1",children:(0,T.jsx)(h(),{href:"/ai-competition/product/".concat(L.id),children:null==L?void 0:L.name})}),(0,T.jsxs)("div",{className:"flex justify-between items-center",children:[(0,T.jsxs)("div",{className:"flex justify-start items-center",children:[(0,T.jsx)("div",{className:"w-6 h-6 relative mr-1",children:(0,T.jsx)(h(),{href:"/user/".concat(null==L||null===(p=L.creator)||void 0===p?void 0:p.uid),children:(0,T.jsx)(x.S,{image:null==L||null===(v=L.creator)||void 0===v?void 0:v.avatarUrl,isVip:null===(w=L.creator)||void 0===w||null===(E=w.memberDetail)||void 0===E?void 0:E.hold,size:24})})}),!(null==L||null===(O=L.contestInfoExtra)||void 0===O||null===(S=O.voter)||void 0===S||!S.length)&&(0,T.jsx)("div",{className:"flex",children:null==L||null===(_=L.contestInfoExtra)||void 0===_||null===(P=_.voter)||void 0===P||null===(M=P.slice(-5))||void 0===M?void 0:M.map(function(e,t){return(0,T.jsx)("div",{className:"w-3",children:(0,T.jsx)(j.V,{tag:"v400",style:{height:24,width:24,borderRadius:"50%"},src:null==e?void 0:e.avatarUrl})},"".concat(null==e?void 0:e.uid,"_").concat(t))})})]}),(0,T.jsx)("div",{children:null!=L&&null!==(D=L.artworkSocialInfo)&&void 0!==D&&D.voted?(0,T.jsxs)(g.I,{type:"default",size:"small",className:N().disabledBtn,children:["å·²æç¥¨(",null==L||null===(V=L.artworkSocialInfo)||void 0===V?void 0:V.voteCount,")"]}):(0,T.jsx)(C.t,{productId:L.id,onVoteSuccess:z,children:(0,T.jsxs)(g.I,{type:"primary",size:"small",children:["æç¥¨(",null==L||null===(A=L.artworkSocialInfo)||void 0===A?void 0:A.voteCount,")"]})})})]})]})]})},O=n(99374),S=n(69164),_=n(98113),P=n(52206),M=n(58726),D=n(59048),V=n(33524),A=n(90063),L=n(28325),Z=n(28497),z=n(74513),F=n(58634),B=n(56753),R=n(25039),$=n(40548),H=n(72080);function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?U(Object(n),!0).forEach(function(t){(0,i.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Y=[{key:b.ArtworkSortEnum.VERIFY_TIME,name:"ææ°"},{key:b.ArtworkSortEnum.VOTES,name:"票æ°",sort:!0}],W=!0,K=function(e){var t=e.scrollCache,n=e.list,i=e.hasNextPage,l=e.banner,p=e.competitionId,f=e.competitionResultList,v=e.competitionNews,h=(0,c.useState)(),x=h[0],g=h[1],y=(0,c.useState)(b.SortType.DESC),j=y[0],w=y[1],N=(0,c.useState)(b.ArtworkSortEnum.VERIFY_TIME),I=N[0],k=N[1],C=(0,c.useState)(n),U=C[0],W=C[1],K=(0,c.useState)(i),Q=K[0],G=K[1],X=(0,B.m)().store,J=((0,R.q)().validateIsLogin,(0,s.useRouter)()),ee=(0,F.Z)(),te=l.type===b.CompetitionType.VIDEO?b.ArtworkDBType.VIDEO_COMPETITION:b.ArtworkDBType.AI_COMPETITION,ne=(0,o.D)(V.uPL),re=(0,a.Z)(ne,1)[0],ie=(0,L.y)(V.SUC),ae=(0,Z.Z)({queryDoc:V.SUC,initData:U,initPageSize:D.IV,extraQueryParams:{param:x?{aiCompetitionId:p,type:te,searchName:x,keywordType:b.ArtworkKeywordType.ALL}:{aiCompetitionId:p,type:te,sort:j,sortField:I}},hasNextPage:Q,hasNextPageExtractor:function(e){var t,n,r,i;return(null===(t=e.data)||void 0===t||null===(n=t.itemModule)||void 0===n||null===(r=n.productList)||void 0===r||null===(i=r.pageInfo)||void 0===i?void 0:i.hasNextPage)||!1},dataExtractor:function(e){var t,n,r;return(0,H.Fu)((null===(t=e.data)||void 0===t||null===(n=t.itemModule)||void 0===n||null===(r=n.productList)||void 0===r?void 0:r.edges)||[])}}),oe=ae.InfiniteScollComp,le=ae.list,se=ae.setList,ce=(ae.onChange,(0,z.$)({data:le,sizeLoader:function(e){var t,n,r,i,a;return 4===(null==e||null===(t=e.gridImages)||void 0===t?void 0:t.length)?4/3:te===b.ArtworkDBType.VIDEO_COMPETITION?16/9:null!=e&&null!==(n=e.imageBaseInfo)&&void 0!==n&&n.height&&null!=e&&null!==(r=e.imageBaseInfo)&&void 0!==r&&r.width?(null==e||null===(i=e.imageBaseInfo)||void 0===i?void 0:i.height)/(null==e||null===(a=e.imageBaseInfo)||void 0===a?void 0:a.width):1},gutter:24,column:5,itemExtraHeight:60})),ue=ce.columnList,de=ce.columnWidth,me=ce.columnGutter,pe=(0,c.useCallback)(function(e,t){se(function(n){return null==n?void 0:n.map(function(n){var i,a,o;return n.id===e?q(q({},n),{},{artworkSocialInfo:{voted:!0,voteCount:(null==n||null===(i=n.artworkSocialInfo)||void 0===i?void 0:i.voteCount)+t},contestInfoExtra:q(q({},(null==n?void 0:n.contestInfoExtra)||{}),{},{voter:[].concat((0,r.Z)((null==n||null===(a=n.contestInfoExtra)||void 0===a?void 0:a.voter)||[]),[{avatarUrl:null==X||null===(o=X.userinfo)||void 0===o?void 0:o.avatarUrl}])})}):n})})},[]);return(0,A.D)(function(){ie({offset:0,first:D.IV,param:x?{aiCompetitionId:p,type:te,searchName:x,keywordType:b.ArtworkKeywordType.ALL}:{aiCompetitionId:p,sort:j,sortField:I,type:te}}).then(function(e){var t,n,r,i,a,o,l;G((null==e||null===(t=e.data)||void 0===t||null===(n=t.itemModule)||void 0===n||null===(r=n.productList)||void 0===r||null===(i=r.pageInfo)||void 0===i?void 0:i.hasNextPage)||!1),W((0,H.Fu)((null==e||null===(a=e.data)||void 0===a||null===(o=a.itemModule)||void 0===o||null===(l=o.productList)||void 0===l?void 0:l.edges)||[]))}).catch(function(e){G(!1),W([])})},[I,j,x]),(0,c.useEffect)(function(){try{re({variables:{input:{id:p,viewType:b.SocialViewType.COMPETITION,affectedType:b.AffectedType.AI_COMPETITION}}})}catch(e){}},[]),(0,c.useEffect)(function(){window.scrollTo({top:t.scrollTop||0,behavior:"auto"})},[]),(0,A.D)(function(){(0,H.nP)({key:J.asPath,value:{path:J.asPath,scrollTop:ee,pageSize:le.length}})},[le.length,ee,J.asPath]),(0,T.jsxs)($.A,{children:[(0,T.jsx)(d.R,{title:l.name}),(0,T.jsxs)(_.p,{children:[(0,T.jsx)(O.l,{banner:l}),!(null==l||!l.host_list)&&(0,T.jsx)(m.H,{host:null==l?void 0:l.host_list,className:"mt-10"}),(0,T.jsx)(S.E,{banner:l,competitionResultList:f,competitionNews:v,extra:(0,T.jsx)(T.Fragment,{children:(0,T.jsxs)("div",{className:"flex justify-start items-center",children:[!x&&(0,T.jsx)(u.O,{style:{margin:0},dark:!0,data:Y,onChange:function(e,t){k(e.key),w(t)}}),(0,T.jsx)(M.q,{$dark:!0,width:256,defaultValue:x,placeholder:"ææåèµä½åãåèµç¨æ·",style:{marginLeft:16},onSearch:function(e){k(b.ArtworkSortEnum.VERIFY_TIME),g(null==e?void 0:e.trim())},maxLength:40,allowClear:!0})]})})}),le.length>0?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("div",{className:"flex justify-between items-start",children:null==ue?void 0:ue.map(function(e,t){return(0,T.jsx)("div",{style:{width:de},children:null==e?void 0:e.map(function(e,t){return(0,T.jsx)("div",{style:{marginBottom:me},children:(0,T.jsx)(E,{competitionType:te,data:e,onVoteSuccess:pe})},"".concat(e.id,"_").concat(t))})},t)})}),oe]}):(0,T.jsx)(P.l,{description:x?"æªæ¾å°â".concat(x,"âä½å/ç¨æ·"):"ææ åèµä½å"})]})]})},Q=(0,l.Pi)(K)},29683:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/ai-competition/[id]",function(){return n(76726)}])},23742:function(e){e.exports={MasonryColumn:"SingleCompetitionProduct_MasonryColumn__NT26i",MasonryColumnImage:"SingleCompetitionProduct_MasonryColumnImage__mjV5k",disabledBtn:"SingleCompetitionProduct_disabledBtn__KhhiE"}},7252:function(e){e.exports={content:"CompetitionHeader_content__nwUfW",banner:"CompetitionHeader_banner__ouQc2",btn:"CompetitionHeader_btn__aW2AX",pos:"CompetitionHeader_pos__uMDzK"}},87325:function(e){e.exports={tab:"CompetitionTabs_tab__xfpCz"}}},function(e){e.O(0,[3158,1664,1577,1770,1980,6500,7825,5790,452,9774,2888,179],function(){return t=29683,e(e.s=t);var t});var t=e.O();_N_E=t}]);
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.