1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9953],{22796:function(t,n,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/quests/social",function(){return e(58889)}])},36578:function(t,n,e){"use strict";e.d(n,{Z:function(){return v},m:function(){return j}});var i=e(85893),r=e(1679),s=e(80822),o=e(86886),a=e(15861),c=e(23432),l=e(39369),d=e(67294),u=e(16393),x=e(91444),m=e(66265),h=e(31812),p=e(22449),f=e(54517),g=e(92418);let j=t=>"Twitter"===t?r.tlu:"Telegram"===t?r.EDm:"Medium"===t?r.Xsd:r.r7p;function v(){var t,n,e,v,y,Z,b;let{tasks:C,refresh:k,userInfo:w}=(0,l.CV)(),P=!!(null===(t=null===(n=C.data)||void 0===n?void 0:null===(e=n["Bonus Reward"])||void 0===e?void 0:e.find(t=>"Social Tasks Bonus"===t.type))||void 0===t?void 0:t.claimed),[S,T]=(0,d.useState)(!1),_=(0,l.TL)(),E=((null===(v=C.data)||void 0===v?void 0:null===(y=v["Social Tasks"])||void 0===y?void 0:y.filter(t=>t.claimed))||[]).length,I=async()=>{T(!0);try{await (0,u.nT)("Social Tasks"),x.Am.success("Claim successfully"),_((0,m.Ak)()),_((0,m.bG)())}catch(t){x.Am.error(t.message)}T(!1)};return(0,i.jsx)(s.Z,{children:(0,i.jsxs)(o.ZP,{container:!0,sx:{display:"flex",alignItems:"stretch"},spacing:2,children:[(0,i.jsx)(o.ZP,{item:!0,xs:12,md:4,lg:3.5,children:(0,i.jsxs)(s.Z,{sx:{p:3,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"space-between",backgroundColor:"#031521",borderRadius:3,height:"100%"},children:[(0,i.jsx)(a.Z,{variant:"h5",fontWeight:600,color:"text.secondary",textAlign:"center",children:"Complete 3 social tasks to receive bonus reward"}),(0,i.jsxs)(s.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"center",position:"relative",animation:3!==E||P?"none":"".concat(g.h.bubble," 1s infinite")},children:[(0,i.jsx)(r.RHO,{sx:{fontSize:"14rem",my:6}}),(0,i.jsxs)(a.Z,{variant:"h2",textAlign:"center",sx:{color:"#BD5C00",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",mt:1},children:[E,"/3"]})]}),(0,i.jsxs)(s.Z,{sx:{textAlign:"center"},children:[(0,i.jsxs)(a.Z,{variant:"body1",color:"text.secondary",children:["Bonus"," ",(0,i.jsx)(a.Z,{color:"text.primary",component:"span",fontWeight:600,children:"+50 ctp"})]}),(0,i.jsxs)(h.Z,{loading:S,onClick:I,disabled:E<3||P,variant:"contained",sx:{minWidth:"180px",mt:2},children:[!P&&"Claim",P&&"Claimed"]})]})]})}),(0,i.jsx)(o.ZP,{item:!0,xs:12,md:8,lg:8.5,children:(0,i.jsxs)(s.Z,{sx:{p:3,borderRadius:3,backgroundColor:"#031521",height:"100%"},children:[(0,i.jsxs)(a.Z,{variant:"h5",fontWeight:600,color:"text.secondary",mb:3,children:["Social Mission"," ",(0,i.jsxs)(a.Z,{component:"span",variant:"body1",color:"text.active2",fontWeight:500,children:["(+350"," ",(0,i.jsx)(a.Z,{variant:"body2",fontWeight:500,component:"span",children:"Centic Point"}),")"]})]}),(0,i.jsxs)(s.Z,{children:["SUCCESS"===C.status&&(null===(Z=C.data)||void 0===Z?void 0:null===(b=Z["Social Tasks"])||void 0===b?void 0:b.map((t,n)=>{var e;let r="Connect twitter"===t.type&&!!(null===(e=w.data)||void 0===e?void 0:e.twitterAccount);return(0,i.jsx)(c.Z,{title:t.name,description:t.description,points:t.point,QuestIcon:j(t.type),claimed:t.claimed,taskId:t._id,type:t.type,params:t.params,claimable:r},"social-".concat(k,"-").concat(n))})),"PROCESSING"===C.status&&(0,i.jsx)(p.Z,{}),"FAILED"===C.status&&(0,i.jsx)(s.Z,{sx:{minHeight:"330px",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,i.jsx)(f.Z,{})})]})]})})]})})}},50575:function(t,n,e){"use strict";e.d(n,{Z:function(){return c}});var i=e(85893),r=e(1679),s=e(39369),o=e(80822),a=e(15861);function c(){var t;let{userInfo:n}=(0,s.CV)();return(0,i.jsxs)(o.Z,{sx:{py:8,px:6,borderRadius:3,backgroundImage:"url(/images/banner/taskbanner.png)",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"bottom right",position:"relative",minHeight:"370px"},children:[(0,i.jsxs)(o.Z,{sx:{maxWidth:"600px"},children:[(0,i.jsx)(a.Z,{variant:"h2",fontWeight:600,color:"text.primary",children:"Earn Centic Points (CTP)"}),(0,i.jsx)(a.Z,{variant:"body1",color:"text.primary",my:1,children:"Centic Points (CTP) are your rewards currency within the Centic Booster Program. Earn CTP by completing daily tasks, engaging with the platform, and participating in exclusive activities."})]}),(0,i.jsxs)(o.Z,{sx:{backgroundColor:"#123754",borderRadius:4,display:"inline-flex",px:3,py:1,alignItems:"center",mt:2},children:[(0,i.jsxs)(a.Z,{variant:"body1",color:"text.label1",children:["My total CTP:"," ",(0,i.jsxs)(a.Z,{component:"span",fontWeight:700,color:"text.primary",children:[(null===(t=n.data)||void 0===t?void 0:t.totalPoint)||0," CTP"]})]}),(0,i.jsx)(r.r7p,{sx:{fontSize:"1rem",ml:.5}})]})]})}},22449:function(t,n,e){"use strict";e.d(n,{Z:function(){return o}});var i=e(85893),r=e(80822),s=e(18979);function o(){return(0,i.jsxs)(r.Z,{sx:{"& .MuiSkeleton-root":{fontSize:"5.2rem",borderRadius:2}},children:[(0,i.jsx)(s.Z,{variant:"rectangular"}),(0,i.jsx)(s.Z,{variant:"rectangular",sx:{my:2}}),(0,i.jsx)(s.Z,{variant:"rectangular"})]})}},58889:function(t,n,e){"use strict";e.r(n),e.d(n,{default:function(){return x}});var i=e(85893),r=e(52037),s=e(70375),o=e(80822),a=e(50575),c=e(36578),l=e(95634);function d(){return(0,i.jsx)(l.Z,{children:(0,i.jsxs)(o.Z,{children:[(0,i.jsx)(a.Z,{}),(0,i.jsx)(o.Z,{my:2,children:(0,i.jsx)(c.Z,{})})]})})}let u=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.h,{description:"Quests | Centic",title:"Quests | Centic",keywords:"airdrop, cdp, customer data platform, web3, customer"}),(0,i.jsx)(d,{})]});u.getLayout=function(t){return(0,i.jsx)(s.Z,{children:t})};var x=u}},function(t){t.O(0,[6936,9045,7528,8977,3362,5622,4486,4386,4255,7918,891,332,8511,5335,2635,831,7269,6410,3215,3976,9774,2888,179],function(){return t(t.s=22796)}),_N_E=t.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.