1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[20287],{90851:function(e,a,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/Help/Badges",function(){return s(51500)}])},32381:function(e,a,s){"use strict";var l=s(11527),t=s(50959);a.Z=t.memo(e=>{let{data:a,className:s="",source:t="",isSingle:n=!1}=e;return(0,l.jsxs)("a",{href:"product"===t?null==a?void 0:a.product_url:t?"".concat(a.url,"/").concat(t):a.url,className:"".concat(n?"":"m-1"," badge-tag ").concat(a.isGray?"badge-gray-tag":""," ").concat(s),children:[(null==a?void 0:a.icon_url)&&(0,l.jsx)("img",{src:a.icon_url,alt:"",width:"16",height:"16",className:"me-1"}),a.name]},a.id)})},51500:function(e,a,s){"use strict";s.r(a),s.d(a,{__N_SSP:function(){return I},default:function(){return index_page}});var l=s(11527),t=s(50959),n=s(22049),d=s(60880),i=s(37762),r=s(57063),c=s(83126),m=s(26011),o=s(89714),x=s(53816),h=t.memo(e=>{let{tabs:a,current:s,pathname:t="",sortKey:n="sort"}=e;return(0,l.jsx)(x.Z,{children:a.map(e=>(0,l.jsx)(o.Z,{variant:"outline-secondary",size:"sm",className:s===e.sort?"active":"",as:"a",href:t.indexOf("?")>-1?"".concat(t).concat(e.sort?"&".concat(n,"=").concat(e.sort):""):"".concat(t).concat(e.sort?"?".concat(n,"=").concat(e.sort):""),children:e.name},e.name))})}),p=s(35524),u=s(42380),j=s(7675),g=s.n(j);let Header_Index=e=>{let{type:a="honor"}=e;return(0,l.jsx)(n.Z,{className:"".concat("tag"===a?"bg-secondary":"bg-dark"," mb-4"),children:(0,l.jsxs)(n.Z.Body,{className:"d-flex align-items-center justify-content-between",children:["tag"===a?(0,l.jsxs)("div",{children:[(0,l.jsx)("h3",{className:"text-white",children:"æ ç¾åç« "}),(0,l.jsx)("div",{className:"text-white-50",children:"æ ç¾åç« æ¯é对åçè
å®å¶çï¼å¦æä½ å¨å¯¹åºæ ç¾çè´¡ç®è¾¾å°äºè¦æ±ï¼å°èªå¨è·å¾æ ç¾åç« "})]}):(0,l.jsxs)("div",{children:[(0,l.jsx)("h3",{className:"text-white",children:"è£èªåç« "}),(0,l.jsx)("div",{className:"text-white-50",children:"ä½ è´¡ç®å
容æ¶ï¼é¤äºè·å¾å¾å£°æåè§£éæéå¤ï¼è¿è½è·å¾ç¤¾åºçåç« ï¼è¿æ¯ä½ çè£èã"})]}),(0,l.jsxs)("div",{className:"badge-wrap pe-4 d-none d-md-flex",children:[(0,l.jsx)("div",{className:"pt-4",children:(0,l.jsx)("i",{className:"far fa-medal silver"})}),(0,l.jsx)("div",{children:(0,l.jsx)("i",{className:"far fa-medal gold"})}),(0,l.jsx)("div",{className:"pt-4",children:(0,l.jsx)("i",{className:"far fa-medal bronze"})})]})]})})},v=(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(g(),{id:"1d09f08472f77bbc",children:".badge-wrap{font-size:64px;line-height:64px}"})});var b=t.memo(e=>(0,l.jsxs)(l.Fragment,{children:[v,(0,l.jsx)(Header_Index,{...e})]})),f=s(3457),N=s(61049),y=s(51896),Z=s(73202);let MedalList_Index=e=>{let{data:a,type:s}=e;return a.id?(0,l.jsx)(N.Z,{children:(0,l.jsxs)(c.Z,{children:[(0,l.jsxs)(d.Z,{sm:12,md:3,className:"d-flex mb-2 mb-md-0",children:[(0,l.jsx)("div",{style:{width:"20px"},className:"me-3 flex-shrink-0",children:a.is_awarded&&(0,l.jsx)("i",{className:"far fa-check-circle text-primary"})}),(0,l.jsx)(y.Z,{data:{name:a.title,url:a.url,level_type:a.level_type},isSingle:!0,type:"tag"===s?"tag":"badge"})]}),(0,l.jsx)(d.Z,{sm:12,md:7,className:"mb-2 mb-md-0 ps-5 ps-md-0",children:(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:a.description},className:"desc-wrap"})}),(0,l.jsxs)(d.Z,{sm:12,md:2,className:"text-secondary text-md-end text-sm-start ps-5 ps-md-0",children:[(0,Z.Ae)(a.awards)," 次é¢å"]})]})}):null},w=(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(g(),{id:"b47cf28d8b51fe03",children:".desc-wrap p:last-child{margin-bottom:0}"})});var _=t.memo(e=>(0,l.jsxs)(l.Fragment,{children:[w,(0,l.jsx)(MedalList_Index,{...e})]})),k=t.memo(e=>{let{title:a,data:s,type:t}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(N.Z,{className:"bg-light",children:(0,l.jsx)("h6",{className:"mb-0",children:a})}),s.map(e=>(0,l.jsx)(_,{data:e,type:t},e.id))]})}),S=t.memo(()=>(0,l.jsx)(N.Z,{className:"placeholder-glow",children:(0,l.jsxs)(c.Z,{children:[(0,l.jsxs)(d.Z,{sm:12,md:3,className:"d-flex mb-2 mb-md-0",children:[(0,l.jsx)("div",{style:{width:"20px"},className:"me-3 flex-shrink-0 placeholder"}),(0,l.jsx)("div",{className:"placeholder col-8"})]}),(0,l.jsx)(d.Z,{sm:12,md:7,className:"mb-2 mb-md-0 ps-5 ps-md-0",children:(0,l.jsx)("div",{className:"placeholder col-7"})}),(0,l.jsx)(d.Z,{sm:12,md:2,className:"text-secondary text-md-end text-sm-start ps-5 ps-md-0",children:(0,l.jsx)("div",{className:"placeholder col-12"})})]})})),E=s(32381),F=t.memo(e=>{let{data:a}=e;return(null==a?void 0:a.id)?(0,l.jsx)(N.Z,{children:(0,l.jsxs)(c.Z,{className:"flex-md-nowrap",children:[(0,l.jsxs)(d.Z,{className:"d-flex mb-2 mb-md-0 flex-grow-0 me-4",style:{minWidth:"176px"},children:[(0,l.jsx)("div",{style:{width:"20px"},className:"me-3 flex-shrink-0",children:a.is_awarded&&(0,l.jsx)("i",{className:"far fa-check-circle text-primary"})}),(0,l.jsx)(y.Z,{data:{name:a.title,url:a.badge.url,level_type:a.badge.level_type},isSingle:!0,className:"text-nowrap",type:"tag"})]}),(0,l.jsxs)(d.Z,{sm:12,md:7,className:"mb-2 mb-md-0 ps-5 ps-md-3",children:[(0,l.jsx)(E.Z,{className:"me-2",data:{id:a.id,name:a.title,url:a.url},isSingle:!0}),(0,l.jsx)("span",{children:a.description})]}),(0,l.jsxs)(d.Z,{sm:12,md:2,className:"text-secondary text-md-end text-sm-start ps-5 ps-md-0",children:[(0,Z.Ae)(a.awards)," 次é¢å"]})]})}):null}),q=s(25105);let z=[{name:"å
¨é¨",sort:""},{name:"å·²è·å¾",sort:"earned"},{name:"æªè·å¾",sort:"unearned"},{name:"é»é",sort:"gold"},{name:"ç½é¶",sort:"silver"},{name:"éé",sort:"bronze"}],H=[{name:"æé®ç±»",type:"question"},{name:"åçç±»",type:"answer"},{name:"åä¸ç±»",type:"participate"},{name:"æ ç¾ç±»",type:"tag"},{name:"å
¬æ°ç±»",type:"citizen"},{name:"å
¶ä»ç±»",type:"other"}];var I=!0,index_page=e=>{var a;let{badges:{listData:s,loading:o}=q.e,dispatch:x,location:j}=e,{query:g}=j;return(0,t.useEffect)(()=>{(null==g?void 0:g.page)&&(null==g?void 0:g.tab)&&x({type:"badges/queryList",payload:{filter:null==g?void 0:g.filter,search:{page:null==g?void 0:g.page,query:null==g?void 0:g.tab}}}),!((null==s?void 0:s.page)>1)||(null==g?void 0:g.page)||x({type:"badges/queryList",payload:{filter:null==g?void 0:g.filter,search:{page:1,query:null==g?void 0:g.tab}}})},[null==g?void 0:g.page]),(0,l.jsxs)(i.Z,{className:"mb-5 pt-4",children:[(0,l.jsx)(m.Z,{data:(null==g?void 0:g.tab)==="tag"?[{name:"帮å©ä¸å¿",url:"/help"},{name:"è£èªåç« ",url:"/help/badges"},{name:"æ ç¾åç« ",url:"###"}]:[{name:"帮å©ä¸å¿",url:"/help"},{name:"è£èªåç« ",url:"###"}]}),(0,l.jsx)(b,{type:(null==g?void 0:g.tab)==="tag"?"tag":"honor"}),(0,l.jsxs)(c.Z,{children:[(0,l.jsx)(d.Z,{className:"col-12 col-xl w-0",children:(0,l.jsxs)(n.Z,{children:[(0,l.jsxs)(n.Z.Header,{className:"bg-white d-md-flex align-items-center justify-content-between",children:[(0,l.jsx)("strong",{className:"mb-md-0",children:(null==g?void 0:g.tab)==="tag"?"æ ç¾åç« ":"è£è
1ªåç« "}),(0,l.jsx)(h,{tabs:z,current:(null==g?void 0:g.filter)?String(null==g?void 0:g.filter):"",pathname:(null==g?void 0:g.tab)?"/help/badges?tab=".concat(null==g?void 0:g.tab):"/help/badges",sortKey:"filter"})]}),(0,l.jsxs)(r.Z,{variant:"flush",children:[o&&[1,2,3,4,5,6,7,8,9,10,11,12].map(e=>(0,l.jsx)(S,{},e)),!(null==g?void 0:g.tab)&&H.map(e=>{var a;if(null==s?void 0:null===(a=s[e.type])||void 0===a?void 0:a.length)return(0,l.jsx)(k,{title:e.name,data:null==s?void 0:s[e.type],type:e.type},e.type)}),(null==g?void 0:g.tab)==="tag"&&(null==s?void 0:null===(a=s.rows)||void 0===a?void 0:a.map(e=>(0,l.jsx)(F,{data:e},e.id)))]}),(null==s?void 0:s.total_page)>1&&(0,l.jsx)(n.Z.Footer,{className:"bg-white d-flex justify-content-center py-4",children:(0,l.jsx)(p.Z,{page:null==s?void 0:s.page,totalPage:s.total_page,pathName:(null==g?void 0:g.filter)?"/help/badges?tab=".concat(null==g?void 0:g.tab,"&filter=").concat(g.filter):"/help/badges?tab=".concat(null==g?void 0:g.tab)})})]})}),(0,l.jsx)(d.Z,{xs:"auto",className:"w-xl-300 d-none d-xl-block",children:(null==g?void 0:g.tab)==="tag"?(0,l.jsx)(f.Z,{}):(0,l.jsx)(u.Z,{})})]})]})}}},function(e){e.O(0,[92146,49774,92888,40179],function(){return e(e.s=90851)}),_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.