PageSourceSearch

https://lastbasic.com/_next/static/chunks/pages/challenges/[challengeId]-c702d083fc92d1fc.js

js lastbasic.com collected 2026-10-06 12:41:15 UTC 22,738 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[443],{9884:function(e,i,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/challenges/[challengeId]",function(){return t(5355)}])},3194:function(e,i){"use strict";i.Z={src:"/_next/static/media/karmaIconPurple.4cbda205.svg",height:392,width:348,blurWidth:0,blurHeight:0}},3637:function(e,i,t){"use strict";t.d(i,{p:function(){return d}});var n,a,r=t(2322),s=t(2784),l=(t(1500),t(2522));function d(e){let{user:i}=e,t=i.pro,[n,d]=(0,s.useState)(a.MONTHLY);return t?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)(l.zx,{css:{backgroundColor:"#0F1217",padding:"10px 40px",transition:"all 0.3s"},onClick:()=>{let e=document.getElementById("globalProModal");e&&e.click()},children:"Become Pro"})}(n=a||(a={})).MONTHLY="monthly",n.YEARLY="yearly"},744:function(e,i,t){"use strict";t.d(i,{w:function(){return l}});var n=t(2322),a={src:"/_next/static/media/verifiedBadgeBlue.9f2936ec.svg",height:24,width:24,blurWidth:0,blurHeight:0},r={src:"/_next/static/media/verifiedBadgeBlack.d72c4d6c.svg",height:24,width:24,blurWidth:0,blurHeight:0},s=t(2522);function l(e){let i,t,{size:l,style:d,verified:o,verifiedExpert:c,tooltip:x,user:p}=e;return((o||(null==p?void 0:p.verified))&&(i=null==a?void 0:a.src,t="Verified using Government ID"),(c||(null==p?void 0:p.verifiedExpert))&&(i=null==r?void 0:r.src,t="Verified expert using Government ID and work references"),i)?(d||(d={}),x||void 0===x)?(0,n.jsx)(s.u,{noDelay:!0,"aria-label":t,direction:"s",style:{display:"flex",alignItems:"center"},children:(0,n.jsx)("img",{src:i,height:l||"20px",style:{cursor:"pointer",...d}})}):(0,n.jsx)("img",{src:i,height:l||"20px",style:d}):(0,n.jsx)(n.Fragment,{})}},5355:function(e,i,t){"use strict";t.r(i),t.d(i,{__N_SSP:function(){return _},default:function(){return w}});var n=t(2322),a=t(2522),r=t(9097),s=t.n(r),l=t(7729),d=t.n(l),o=t(2276),c=t(1500),x=t(7672),p=t(4122),h=t.n(p),g=t(3194),m=t(3010),u=t(2520),f=t(9747),j=t(744),y=t(2784),v=t(3335),b=t(3637);u.Z.addDefaultLocale(f.Z);var _=!0;function w(e){let{challenge:i,participations:t}=e,r=(0,v.k)(),l=null==r?void 0:r.user,o=new u.Z("en-US"),c=i.endDate?o.format(new Date(i.endDate)):null,[p,f]=(0,y.useState)(!1),j=i.onlyPro&&!i.isJoined&&!i.canUpdate;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d(),{children:(0,n.jsx)("title",{children:"".concat(i.title," - LastBasic")})}),(0,n.jsx)(D,{challenge:i,isOpen:p,onDismiss:()=>f(!1),user:l}),(0,n.jsx)(a.xu,{css:{backgroundColor:"$background-light",boxShadow:"inset 0px -1px 0px #f1f1f1"},children:(0,n.jsx)(a.xu,{css:{maxWidth:"$5xl",margin:"0px auto",paddingLeft:"20px",paddingRight:"20px"},children:(0,n.jsxs)(a.xu,{css:{py:"22px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"5px"},children:[(0,n.jsx)("div",{className:h().cHeaderBack,onClick:()=>window.location.href="/challenges",children:(0,n.jsx)(s(),{href:"/challenges",children:(0,n.jsx)(x.wyc,{fill:"#808080"})})}),(0,n.jsx)("div",{style:{fontSize:"20px",fontWeight:500,color:"#333333"},children:i.title})]}),(0,n.jsx)("div",{children:(0,n.jsx)(a.zx,{variant:"primary",disabled:!i.canParticipate,onClick:()=>{var e;return l?i.canParticipate?f(!0):void 0:null===(e=null==document?void 0:document.getElementById("globalSignupModal"))||void 0===e?void 0:e.click()},children:j?"Join challenge":"Send participation"})})]})})}),(0,n.jsx)(a.xu,{css:{maxWidth:"$5xl",margin:"0px auto",paddingLeft:"20px",paddingRight:"20px"},children:(0,n.jsxs)("div",{style:{display:"flex",gap:"15px",marginTop:"20px"},children:[(0,n.jsxs)("div",{style:{width:"70%"},children:[(0,n.jsx)("div",{style:{marginLeft:"2px"},children:"Challenge instructions"}),(0,n.jsxs)("div",{style:{fontSize:"15px",marginTop:"10px",border:"0.5px solid #DBDBDB",borderRadius:"6px",padding:"16px",marginBottom:"20px"},children:[(0,n.jsx)(m.P,{about:i.description,canEdit:!1}),j&&(0,n.jsx)("div",{style:{marginTop:"20px",textAlign:"center",backgroundColor:"#F8F8F8",borderRadius:"5px",padding:"20px",color:"var(--colors-text-main)"},children:"Join the challenge to see more details"})]}),null!=t&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{style:{marginLeft:"2px"},children:"Participations"}),0===t.length&&(0,n.jsx)("div",{style:{fontSize:"15px",marginTop:"10px",border:"0.5px solid #DBDBDB",borderRadius:"6px",padding:"16px",marginBottom:"20px"},children:(0,n.jsx)("div",{style:{display:"flex",justifyContent:"center",paddingTop:"20px",paddingBottom:"20px"},children:(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{style:{marginBottom:"7px",color:"#808080"},children:"No participations yet"}),(0,n.jsx)(a.zx,{variant:"primary",disabled:!i.canParticipate,onClick:()=>{var e;return l?i.canParticipate?f(!0):void 0:null===(e=null==document?void 0:document.getElementById("globalSignupModal"))||void 0===e?void 0:e.click()},children:j?"Join challenge":"Send participation"})]})})}),0!==t.length&&(0,n.jsx)("div",{style:{fontSize:"15px",marginTop:"10px",border:"0.5px solid #DBDBDB",borderRadius:"6px",padding:"0px",marginBottom:"20px"},children:t.map((e,t)=>(0,n.jsx)(B,{participation:e,challenge:i},t))})]})]}),(0,n.jsxs)("div",{style:{width:"30%"},children:[(0,n.jsxs)("div",{style:{fontSize:"15px",marginBottom:"10px",border:"0.5px solid #DBDBDB",borderRadius:"6px",padding:"16px"},children:[(0,n.jsx)("div",{style:{fontSize:"14px",color:"#5A5C60",marginBottom:"12px",display:"flex",justifyContent:"space-between"},children:(0,n.jsx)("div",{children:"Details"})}),(0,n.jsx)("div",{style:{fontSize:"15px",color:"#353536",marginTop:"0px"},children:(0,n.jsxs)("div",{className:h().details,children:[c&&(0,n.jsxs)("div",{className:h().detail,children:[(0,n.jsx)("div",{className:h().detailKey,children:"Due date"}),(0,n.jsx)("div",{className:h().detailValue,children:c})]}),(0,n.jsxs)("div",{className:h().detail,children:[(0,n.jsx)("div",{className:h().detailKey,children:"Who can participate"}),(0,n.jsx)("div",{className:h().detailValue,children:i.onlyPro?"Pro users":"Everyone"})]}),(0,n.jsxs)("div",{className:h().detail,children:[(0,n.jsx)("div",{className:h().detailKey,children:"Max participants"}),(0,n.jsx)("div",{className:h().detailValue,children:i.maxParticipants})]}),(0,n.jsxs)("div",{className:h().detail,children:[(0,n.jsx)("div",{className:h().detailKey,children:"Max participantions per user"}),(0,n.jsx)("div",{className:h().detailValue,children:i.maxParticipationsPerUser})]})]})})]}),(0,n.jsxs)("div",{style:{fontSize:"15px",marginBottom:"10px",border:"0.5px solid #DBDBDB",borderRadius:"6px",padding:"16px"},children:[(0,n.jsx)("div",{style:{fontSize:"14px",color:"#5A5C60",marginBottom:"12px",display:"flex",justifyContent:"space-between"},children:(0,n.jsx)("div",{children:"Rewards"})}),(0,n.jsxs)("div",{style:{fontSize:"15px",color:"#353536",marginTop:"0px"},children:[i.rewards.map((e,i)=>(0,n.jsxs)("div",{className:h().reward,children:[(0,n.jsx)("div",{className:h().rewardName,children:e.name}),(0,n.jsxs)("div",{className:h().rewardPrizes,children:[e.prizeInMoneyCents>0&&(0,n.jsxs)("div",{className:h().rewardMoneyPrize+" "+h().cardRewardMoney,children:["€",e.prizeInMoneyCents/100]}),e.prizeInKarma>0&&(0,n.jsxs)("div",{className:h().rewardKarmaPrize+" "+h().cardRewardKarma,children:[(0,n.jsx)("div",{className:h().cardRewardKarmaIcon,style:{backgroundImage:"url(".concat(g.Z.src,")"),backgroundSize:"auto 15px"}}),e.prizeInKarma]})]})]},i)),(0,n.jsxs)("div",{className:h().reward,children:[(0,n.jsx)("div",{className:h().rewardName,children:"\uD83E\uDEF6 All participations"}),(0,n.jsx)("div",{className:h().rewardPrizes,children:(0,n.jsxs)("div",{className:h().rewardKarmaPrize+" "+h().cardRewardKarma,children:[(0,n.jsx)("div",{className:h().cardRewardKarmaIcon,style:{backgroundImage:"url(".concat(g.Z.src,")"),backgroundSize:"auto 15px"}}),"25"]})})]})]})]}),l&&!l.pro&&(0,n.jsxs)("div",{style:{fontSize:"15px",marginBottom:"10px",border:"0.5px solid #DBDBDB",borderRadius:"6px",padding:"16px"},children:[(0,n.jsx)("div",{style:{fontSize:"14px",color:"#5A5C60",marginBottom:"12px"},children:"Earn more money"}),(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"15p
1x"},children:[(0,n.jsx)("div",{children:"Become Pro and have 0% transaction fees on any reward you win"}),(0,n.jsx)(a.zx,{variant:"secondary",onClick:()=>{var e;null===(e=document.getElementById("globalProModal"))||void 0===e||e.click()},children:"Become Pro"})]})]}),(0,n.jsxs)("div",{style:{fontSize:"15px",marginBottom:"10px",border:"0.5px solid #DBDBDB",borderRadius:"6px",padding:"16px"},children:[(0,n.jsx)("div",{style:{fontSize:"14px",color:"#5A5C60",marginBottom:"12px"},children:"Challenge creator"}),(0,n.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"15px"},children:(0,n.jsx)(C,{user:i.createdBy})})]}),i.participants.length>0&&(0,n.jsxs)("div",{style:{fontSize:"15px",marginBottom:"10px",border:"0.5px solid #DBDBDB",borderRadius:"6px",padding:"16px"},children:[(0,n.jsx)("div",{style:{fontSize:"14px",color:"#5A5C60",marginBottom:"12px",display:"flex",justifyContent:"space-between"},children:(0,n.jsx)("div",{children:"Participants"})}),(0,n.jsx)("div",{style:{fontSize:"15px",color:"#353536",marginTop:"0px",display:"flex",flexWrap:"wrap",gap:"5px"},children:i.participants.map((e,i)=>(0,n.jsx)(s(),{href:"/".concat(e.username),children:(0,n.jsx)(a.qE,{size:"sm",src:e.avatar,type:"organization"===e.type?"square":"round"})},i))})]})]})]})})]})}function B(e){let{participation:i,challenge:t}=e,r=new u.Z("en-US"),l=i.submittedAt?r.format(new Date(i.submittedAt)):null;return(0,n.jsxs)("div",{className:h().participation,children:[(0,n.jsx)("div",{children:(0,n.jsxs)(s(),{className:h().pCreatedBy,href:"/".concat(i.createdBy.username),style:{textDecoration:"none",color:"inherit"},children:[(0,n.jsx)(a.qE,{src:i.createdBy.avatar,size:"sm",type:"organization"===i.createdBy.type?"square":"round"}),(0,n.jsx)("div",{children:i.createdBy.fullName}),(0,n.jsx)(j.w,{user:i.createdBy,size:"16px",style:{marginLeft:"-6px"},tooltip:!1})]})}),l&&(0,n.jsx)("div",{className:h().pSubmittedAt,children:(0,n.jsx)(a.u,{text:"Submitted at",direction:"s",children:l})}),(0,n.jsx)("div",{className:h().pRewards,children:(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"center",gap:"10px"},children:[i.rewards.map((e,i)=>(0,n.jsx)(a.u,{text:"".concat(function(e){let i=RegExp("\\p{Emoji}","u");return e.replace(i,"").trim()}(e.name)," reward"),direction:"s",children:(0,n.jsx)("div",{children:function(e){let i=RegExp("\\p{Emoji}","u");return i.test(e)?e.match(i):e.charAt(0)||"\uD83C\uDFC5"}(e.name)})},i)),(0,n.jsx)(a.u,{text:"All participations reward",direction:"s",children:(0,n.jsx)("div",{children:"\uD83E\uDEF6"})})]})}),(0,n.jsxs)("div",{className:h().pActions,children:[i.expanded&&(0,n.jsx)(a.u,{text:"See participation",direction:"s",children:(0,n.jsx)(s(),{href:"/challenges/".concat(t.id,"/participations/").concat(i.id),style:{color:"inherit",textDecoration:"none"},children:(0,n.jsx)("div",{className:h().pAction,children:(0,n.jsx)(x.tEF,{})})})}),!i.expanded&&(0,n.jsx)(a.u,{text:"You can't see this participation",direction:"s",children:(0,n.jsx)("div",{className:h().pAction+" "+h().pActionLocked,children:(0,n.jsx)(x.mBM,{})})})]})]})}function C(e){let{user:i}=e;return(0,n.jsx)(s(),{href:"/".concat(i.username),style:{color:"inherit",textDecoration:"inherit"},children:(0,n.jsxs)("div",{style:{display:"flex",gap:"10px"},children:[(0,n.jsx)(a.qE,{name:i.firstName,size:"sm",src:i.avatar,type:"organization"===i.type?"square":"round"}),(0,n.jsxs)("div",{style:{marginTop:"-3px"},children:[(0,n.jsxs)("div",{style:{fontWeight:"500",display:"flex",gap:"3px",alignItems:"center"},children:[(0,n.jsxs)("div",{children:[i.firstName," ",i.lastName]}),(0,n.jsx)(j.w,{verified:i.verified,verifiedExpert:i.verifiedExpert,tooltip:!1,size:"17px"})]}),(0,n.jsxs)("div",{style:{color:"#5A5C60",fontWeight:"300",fontSize:"13px",marginTop:"-2px"},children:["@",i.username]})]})]})})}function D(e){let{challenge:i,isOpen:t,onDismiss:r,user:s}=e,l=(0,y.useRef)(null);if(!s)return(0,n.jsx)(n.Fragment,{});let d=i.onlyPro&&s.pro&&!i.isJoined&&!i.canUpdate;return(0,n.jsx)(a.Vq,{initialFocusRef:l,isOpen:t,onDismiss:r,sx:{maxWidth:"550px",overflowY:"auto",width:"550px"},children:(0,n.jsx)(a.xu,{ref:l,css:{px:"$4",py:"$5"},children:(0,n.jsxs)(a.gC,{spacing:"4",children:[(0,n.jsx)(a.xv,{css:{fontSize:"16px",fontWeight:"500",lineHeight:"20px"},children:d?"Join challenge":"Send a new participation"}),i.onlyPro&&!s.pro&&(0,n.jsxs)("div",{style:{textAlign:"center",marginTop:"20px",paddingLeft:"20px",paddingRight:"20px"},children:["Only Pro users can participate",(0,n.jsx)("br",{}),"in the ",i.title," challenge",(0,n.jsx)("div",{style:{marginTop:"10px"},children:(0,n.jsx)("div",{onClick:r,children:(0,n.jsx)(b.p,{user:s})})})]}),d&&(0,n.jsx)("div",{style:{marginTop:"0px"},children:(0,n.jsx)(N,{challenge:i,onDismiss:r,user:s})}),(!i.onlyPro||i.isJoined||i.canUpdate)&&(0,n.jsx)("div",{style:{marginTop:"0px"},children:(0,n.jsx)(k,{challenge:i,onDismiss:r,user:s})})]})})})}function N(e){let{challenge:i,onDismiss:t,user:r}=e,[s,l]=(0,y.useState)(!1),d=new Date;async function o(){let e;if(s){try{e=await c.Yq.challenges.join(i.id)}catch(e){}e.success&&window.location.reload()}}return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{style:{marginTop:"10px",color:"var(--colors-text-main)",fontSize:"14px"},children:["To join the ",i.title," challenge you need to first agree to the following NDA:"]}),(0,n.jsx)("div",{style:{fontSize:"12px",color:"var(--colors-text-main)",backgroundColor:"#F8F8F8",border:"1px solid #F3F3F3",borderRadius:"5px",marginTop:"10px",maxHeight:"190px",textOverflow:"hidden",overflowY:"scroll"},children:(0,n.jsxs)("div",{style:{padding:"10px"},children:['This Mutual Non-Disclosure Agreement (the "Agreement") is entered into on this ',d.getDate(),(e=>{if(e>3&&e<21)return"th";switch(e%10){case 1:return'"st';case 2:return"nd";case 3:return"rd";default:return"th"}})(d.getDate())," day of ",["January","February","March","April","May","June","July","August","September","October","November","December"][d.getMonth()],", ",d.getFullYear(),' (the "Effective Date"), by and between:',(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),(0,n.jsx)("b",{children:i.createdBy.fullName}),', hereinafter referred to as the "Client," and ',(0,n.jsx)("b",{children:r.fullName}),', hereinafter referred to as the "Freelancer."',(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),'Collectively referred to as the "Parties."',(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),(0,n.jsx)("b",{children:"Challenge Name:"})," ",i.title,(0,n.jsx)("br",{}),(0,n.jsx)("b",{children:"Challenge ID:"})," ",i.id,(0,n.jsx)("br",{}),(0,n.jsx)("b",{children:"Date and Time of Signature:"})," ",d.toLocaleDateString(),(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),(0,n.jsx)("b",{children:"1. Purpose"}),(0,n.jsx)("br",{}),'This Agreement is designed to protect the exchange of confidential information ("Confidential Information") during the Client\'s private contest on the LastBasic platform.',(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),(0,n.jsx)("b",{children:"2. Definition of Confidential Information"}),(0,n.jsx)("br",{}),"Confidential Information includes, but is not limited to, all information and materials shared within the context of the private contest, whether communicated orally, in writing, electronically, visually, or through any other means.",(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),(0,n.jsx)("b",{children:"3. Non-Disclosure Obligations"}),(0,n.jsx)("br",{}),"Both Parties agree not to disclose or use any Confidential Information for any purpose other than the participation in the private contest on the LastBasic platform.",(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),(0,n.jsx)("b",{children:"4. Full Name and Username"}),(0,n.jsx)("br",{}),"Client's Full Name: ",i.createdBy.fullName,(0,n.jsx)("br",{}),"Client's Username: ",i.createdBy.username,(0,n.jsx)("br",{}),"Freelancer's Full Name: ",r.fullName,(0,n.jsx)("br",{}),"Freelancer's Username: ",r.username,(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),(0,n.jsx)("b",{children:"5. Term and Termination"}),(0,n.jsx)("br",{}),"This Agreement will commence on the Effective Date and continue for a period of 5 years or until terminated by either Party by mutual agreement with written notice.",(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),(0,n.jsx)("b",{children:"6. Applicable Law"}),(0,n.jsx)("br",{}),"This Agreement shall be governed by and construed in accordance with the laws of Spain.",(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),(0,n.jsx)("b",{children:"7. Entire Agreement"}),(0,n.jsx)("br",{}),"This Agreement constitutes the entire understanding between the Parties concerning the Confidential Information and supersedes all prior and contemporaneous agreements and understandings, whether oral or written.",(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),(0,n.jsx)("b",{children:"8. Check Box Agreement"}),(0,n.jsx)("br",{}),"By checking the designated checkbox connected to this document within the LastBasic platform, both Parties indicate their acceptance and understanding of the terms outlined in this Agreement. This method constitutes a legally binding agreement.",(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),(0,n.jsx)("b",{children:"9. Limitation of Liability"}),(0,n.jsx)("br",{}),"Neither LastBasic nor any of its employees, representatives, or affiliates shall be held liable for any breaches of this Agreement or for any damages or losses incurred by the Parties as a result of participation in the private contest on the LastBasic platform.",(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),"By participating in the private contest or by agreeing to this NDA, both Parties acknowledge and agree to be bound by the terms and conditions outlined herein."]})}),(0,n.jsx)("div",{style:{marginTop:"20px"}
1,children:(0,n.jsxs)(a.NI,{children:[(0,n.jsx)(a.XZ,{size:10,checked:s,onChange:e=>l(!s)}),(0,n.jsx)(a.NI.Label,{children:"I, the Freelancer, agree to the terms and conditions of this Mutual Non-Disclosure Agreement"})]})}),(0,n.jsx)("div",{style:{justifyContent:"right",display:"flex",marginTop:"20px"},children:(0,n.jsx)(a.zx,{disabled:!s,onClick:o,children:"Join challenge"})})]})}function k(e){let{challenge:i,onDismiss:t,user:r}=e,[s,l]=(0,y.useState)(!1),[d,o]=(0,y.useState)([]);async function p(e){let i={challengeBlockId:e.challengeBlockId,files:e.files,content:e.content},t=d.filter(i=>i.challengeBlockId!==e.challengeBlockId);t.push(i),o(t)}async function h(){l(!0);try{var e,t;let n=[];for(let i of d)if((null===(e=i.files)||void 0===e?void 0:e.length)>0){let e=[];for(let t of i.files){let i=await c.Yq.files.upload(t,"private","challenge_block");(0,c.VZ)(i)&&alert("Error uploading file"),(0,c.VZ)(i)||e.push(i.file.id)}n.push({challengeBlockId:i.challengeBlockId,files:e})}else n.push({challengeBlockId:i.challengeBlockId,content:i.content});try{await c.Yq.challenges.join(i.id)}catch(e){}let a=await c.Yq.challenges.participations.create(i.id,{blocks:n});(0,c.VZ)(a)&&alert(null!==(t=a.error.message)&&void 0!==t?t:"Error sending participation"),(0,c.VZ)(a)||(alert("Participation sent!"),window.location.href="/challenges/".concat(i.id,"/participations/").concat(a.participation.id))}catch(e){alert("An error ocurred")}finally{l(!1)}}return(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{children:i.blocks.map((e,i)=>(0,n.jsx)(S,{block:e,onChange:p,disabled:s},i))}),(0,n.jsx)("div",{style:{marginTop:"20px",color:"var(--colors-text-main)",fontSize:"12px"},children:"By submitting a participation, you agree to the LastBasic Terms. You confirm you have either produced the content yourself or used content you have rights to. Rights to the work transfer to the Challenge Creator upon transfer of Karma and, optionally, rewards."}),(0,n.jsxs)("div",{style:{justifyContent:"right",display:"flex",marginTop:"20px"},children:[s&&(0,n.jsx)(a.zx,{disabled:s,children:"Sending participation..."}),!s&&(0,n.jsx)(a.zx,{leftIcon:x.nQG,onClick:h,disabled:s,children:"Send participation"})]})]})}function S(e){let{block:i,onChange:t,disabled:r}=e;async function s(e){let n={challengeBlockId:i.id,files:[],content:null};if(["long_text"].includes(i.type)&&(n.content=e.target.value),["files"].includes(i.type)){let i=e.target.files;n.files.push(...i)}t(n)}return(0,n.jsxs)("div",{style:{marginTop:"20px"},children:[(0,n.jsx)("div",{style:{fontSize:"15px"},children:i.name}),(0,n.jsx)("div",{style:{color:"var(--colors-text-main)",fontSize:"14px"},children:i.description}),(0,n.jsxs)("div",{style:{marginTop:"5px"},children:["long_text"===i.type&&(0,n.jsx)(a.II,{onChange:e=>s(e),style:{width:"100%",resize:"none"},placeholder:i.name,spellCheck:!1,as:"textarea",rows:3,disabled:r}),"files"===i.type&&(0,n.jsx)(a.II,{onChange:e=>s(e),style:{width:"100%",resize:"none"},placeholder:i.name,spellCheck:!1,type:"file",accept:i.configuration||"*",multiple:!0,disabled:r})]})]})}w.layout=o.H},4122:function(e){e.exports={content:"Challenges_content__a2KvC",challenges:"Challenges_challenges__Es8TV",challenge:"Challenges_challenge__z3sB0",cardRewards:"Challenges_cardRewards__dVcIc",cardReward:"Challenges_cardReward__1BUHy",cardRewardMoney:"Challenges_cardRewardMoney___0D5h",cardRewardKarma:"Challenges_cardRewardKarma__0nJxX",cardRewardKarmaIcon:"Challenges_cardRewardKarmaIcon__FX_e7",cardTitle:"Challenges_cardTitle__lcMcP",cardDescription:"Challenges_cardDescription__ZjK75",cardBottom:"Challenges_cardBottom__noft_",cardBottomCreatedBy:"Challenges_cardBottomCreatedBy__DJUVZ",cardBottomAvatar:"Challenges_cardBottomAvatar__KRPd7",cardWrapper:"Challenges_cardWrapper__U_TRP",cardBottomParticipants:"Challenges_cardBottomParticipants__92454",cardInformation:"Challenges_cardInformation__4eE2W",cardInformationDueDate:"Challenges_cardInformationDueDate__PNt3X",cHeaderBack:"Challenges_cHeaderBack__hAxS6",emptyState:"Challenges_emptyState__BYAKr",emptyStateContent:"Challenges_emptyStateContent__dRBta",details:"Challenges_details__JxYwd",detail
1:"Challenges_detail__Z15Jk",reward:"Challenges_reward__5LnJX",rewardName:"Challenges_rewardName__VB_1a",rewardPrizes:"Challenges_rewardPrizes__DBLOJ",participation:"Challenges_participation___S898",pCreatedBy:"Challenges_pCreatedBy__Z2Fhm",pSubmittedAt:"Challenges_pSubmittedAt__tpYfU",pRewards:"Challenges_pRewards__sJ7S8",pActions:"Challenges_pActions__MFl7l",pAction:"Challenges_pAction__HxORm",pActionLocked:"Challenges_pActionLocked__nL_I9",blockName:"Challenges_blockName__Rfrmi",pBlocks:"Challenges_pBlocks__bxUno",giveRewardBox:"Challenges_giveRewardBox__NRpaS",giveRewardOptions:"Challenges_giveRewardOptions___O7qL",challengeTags:"Challenges_challengeTags__78ch4",challengeTag:"Challenges_challengeTag__wnfwa"}}},function(e){e.O(0,[355,940,295,638,774,888,179],function(){return e(e.s=9884)}),_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.