1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5225],{76297:function(e,t,n){n.d(t,{z:function(){return r}});var r=[{reason:"Sexual content",id:"A"},{reason:"Violent or repulsive content",id:"B"},{reason:"Hateful or abusive content",id:"C"},{reason:"Harassment or bullying",id:"D"},{reason:"Harmful or dangerous acts",id:"E"},{reason:"Child abuse",id:"F"},{reason:"Promoting terrorism",id:"G"},{reason:"Spam",id:"H"},{reason:"Misleading or deceptive conduct",id:"I"},{reason:"Copyright Infringement",id:"K"},{reason:"Code of conduct violation",id:"J"}]},55225:function(e,t,n){n.r(t),n.d(t,{default:function(){return L}});var r=n(85893),a=n(16228),s=n(75785),o=n(17340),i=n(65353),u=n(67294),l=n(25617),c=n(40782),d=n(32104),h=n(73431),p=n(58436),f=n(3379),g=n(38521),y=n(90943),v=n(27579),m=n(3649),b=n(96202),j=n(48139),x=n(55123),Z=n(14505),w=n(43473),k=n(76297),R="You have already reported this content.",S="This content has an active report already.",B="Cannot report this content.",_="You have reported too much in a short period of time. Please try again in a few minutes.";var C=function(e){var t=function(){var e={},t=!0;return ie||(c.Am.error("You need to connect wallet first."),t=!1),"K"===a&&("K"!==a||A||(e.Link="Please enter a valid link.",t=!1),(0,g.DS)(A)||(e.Link="Please enter a valid link (i.e. ".concat(b.mYc,")"),t=!1),A.length>500&&(e.Link="The link is too long.",t=!1)),K&&K.length>150&&(e.Details="Your details must be ".concat(150," characters or fewer."),t=!1),V(e),t},n=(0,u.useState)(),a=n[0],C=n[1],L=(0,u.useState)(!1),T=L[0],I=L[1],P=(0,u.useState)(null),A=P[0],N=P[1],E=(0,u.useState)(null),K=E[0],H=E[1],F=(0,u.useState)({}),O=F[0],V=F[1],z=(0,u.useState)(!1),D=z[0],M=z[1],G=(0,u.useState)(!0),U=G[0],Y=G[1],J=(0,u.useState)(!1),W=J[0],q=J[1],X=(0,u.useState)(B),Q=X[0],$=X[1],ee=(null===K||void 0===K?void 0:K.length)?null===K||void 0===K?void 0:K.length:0,te=(0,l.I0)(),ne=(0,y.Z)().reportTooltip,re=(0,p.Z)().getEnergyPointsByBulbmoji,ae=(0,f.Z)(),se=ae.createReport,oe=ae.getReportStatus,ie=(0,v.Z)().loggedIn,ue=(0,u.useMemo)((function(){return re(b.AWC)}),[]),le=e.contentId,ce=e.type;function de(){return he.apply(this,arguments)}function he(){return(he=(0,o.Z)((function(){var e,t;return(0,i.__generator)(this,(function(n){switch(n.label){case 0:return[4,(0,d.nA)(b.zDi,null,b.ojV)];case 1:return(e=n.sent())?[4,(0,h.sK)(K,e)]:[2,!1];case 2:return(t=n.sent())?[2,t]:[2,!1]}}))}))).apply(this,arguments)}function pe(){return(pe=(0,o.Z)((function(){var n,s,o,u;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:if(!t())return[2,!1];n=w.Z.loading("Creating report."),M(!0),i.label=1;case 1:return i.trys.push([1,5,,6]),s=null,K?[4,de()]:[3,3];case 2:if(!(s=i.sent()))return w.Z.error(n,"Cannot create this report."),M(!1),[2,!1];i.label=3;case 3:return[4,se(e.contentId,e.type,a,A,s)];case 4:return o=i.sent(),u=o.data,200!==o.status?(w.Z.error(n,u.Error.Message),M(!1),[2,!1]):(te((0,m.ay)(ue.Energy)),w.Z.success(n,(0,r.jsx)(Z.default,{consume:ue,energyOnly:!0})),M(!1),I(!0),[2,!0]);case 5:return i.sent(),w.Z.error(n,"Try again."),M(!1),[2,!1];case 6:return[2]}}
1))}))).apply(this,arguments)}function fe(){return fe=(0,o.Z)((function(e){var t,n;return(0,i.__generator)(this,(function(r){switch(r.label){case 0:Y(!0),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,oe(e,ce)];case 2:return t=r.sent(),n=t.data,(0,g.bv)(t.status)&&(n.Active?(q(!1),$(S)):n.Reported?(q(!1),$(R)):n.Cooldown?(q(!1),$(_)):(q(!0),$(ne))),[3,4];case 3:return r.sent(),q(!1),$(B),[3,4];case 4:return Y(!1),[2]}}))})),fe.apply(this,arguments)}return(0,u.useEffect)((function(){le&&function(e){fe.apply(this,arguments)}(le)}),[le]),(0,r.jsx)(s.Loading,{loading:U,children:(0,r.jsxs)(s.Row,{className:"mx-2 mx-sm-4",style:{maxHeight:"100%",minHeight:T?"100%":"400px"},children:[!T&&(0,r.jsxs)(s.Row,{children:[(0,r.jsx)(s.Row,{className:"mb-3",children:k.z.map((function(e,t){return(0,r.jsxs)(s.Row,{className:"d-flex flex-row align-items-center ".concat(0===t?"":"mt-3"),children:[(0,r.jsx)(j.Z,{id:"formcheck-reportform-reason".concat(t),checked:a===e.id,onChange:function(){return C(e.id)},onClick:function(){return C(e.id)},type:"radio",label:(0,r.jsx)(s.Text,{bold:!0,children:e.reason})}),a===e.id&&"K"===a&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(s.TextInput,{name:"link",className:"mt-3",placeholder:"Original Source URL",value:A,onChange:function(e){return N(e.target.value)},invalid:O.Link,invalidFeedback:O.Link,helpText:"Please insert only the original link. The community's trusted moderators will rely on the link provided to analyse and determine whether the reported user infringed copyright."})})]},t)}))}),(0,r.jsx)(s.Row,{className:"mb-1",children:(0,r.jsx)(s.TextInput,{name:"details",label:"Additional details",type:"textarea",placeholder:"Provide additional details",value:K,onChange:function(e){return H(e.target.value)},invalid:O.Details,invalidFeedback:O.Details,helpText:(0,r.jsx)(s.CountBadge,{value:ee,units:"character",pluralUnits:"characters",invalid:ee>150})})}),(0,r.jsx)(s.Row,{className:"mt-3",children:(0,r.jsx)(s.Tooltip,{content:Q,position:"top",children:(0,r.jsx)(s.Button,{shouldFitContainer:!0,disabled:!a&&"K"!==a||"K"===a&&!A||D||!W,appearance:"dark",darkAppearance:"outline-light",onClick:function(){return pe.apply(this,arguments)},loading:D,iconBefore:(0,r.jsx)(x.Z,{type:b.AWC,darkAppearance:"light"}),children:"Report"})})})]}),T&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.Row,{children:(0,r.jsxs)(s.Text,{children:["Thank you for your report. BULB is dedicated to providing users with the most authentic and rewarding experience possible. The community takes any behavior that violates BULB's code of conduct seriously, and your enquiry is now being handled by the community's trusted moderators. Your report's status can be viewed in the Governance menu. If the reported content is removed, you will receive a Moderator BULBmoji worth ",ue.Points," BULB points."]})}),(0,r.jsx)(s.Row,{className:"mt-3",children:(0,r.jsx)(s.Button,{appearance:"dark",darkAppearance:"outline-light",onClick:e.onHide,children:"Close"})})]})]})})};function L(){var e=(0,a.ZP)(),t=e.reportModalState,n=e.closeReportModal;return(0,r.jsx)(s.Modal,{show:t.show,onHide:n,title:"Report",scrollable:!0,children:(0,r.jsx)(C,{type:t.contentType,contentId:t.contentId,onHide:n})})}},58436:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(17340),a=n(31159),s=n(65353),o=n(25617),i=n(38521),u=n(27579),l=n(26392),c=n(22591),d=n(81343);function h(){var e=function(e){var t={Energy:null,Points:null,Name:e};try{var n=h.bulbmojis[e];return t.Energy=n.Energy,t.Points=n.Points,t}catch(r){return t}},t=(0,o.I0)(),n=(0,u.Z)().loggedIn,h=(0,o.v9)((function(e){return e.bulbmojis}));function p(){return p=(0,r.Z)((function(){var e,r,a,o=arguments;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:e=o.length>0&&void 0!==o[0]&&o[0],s.label=1;case 1:return s.trys.push([1,4,,5]),n?!h.refreshed||e?[4,(0,d.Vz)(c.eT5)]:[3,3]:(t((0,l.H7)()),[2]);case 2:r=s.sent(),(0,i.bv)(r.status)&&(a=r.data,t((0,l.HV)(a))),s.label=3;case 3:return[3,5];case 4:return s.sent(),[3,5];case 5:return[2]}}
1))})),p.apply(this,arguments)}return{bulbmojiSettings:h.bulbmojis,refreshBulbmojiSettings:function(){return p.apply(this,arguments)},getEnergyPointsByBulbmoji:e,getEnergyByBulbmoji:function(t){try{return e(t).Energy}catch(n){return null}},getPointsByBulbmoji:function(t){try{return e(t).Points}catch(n){return null}},getImageByBulbmoji:function(e){return h.bulbmojis[e].Image},checkValidBulbmojiSchema:function(){return Object.entries(h.bulbmojis).map((function(e){var t=(0,a.Z)(e,2),n=t[0],r=t[1],s=l._l[n];return n in l._l&&Object.keys(r).map((function(e){return Object.keys(s).includes(e)})).every(Boolean)})).every(Boolean)}}}},3379:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(17340),a=n(54499),s=n(52234),o=n(65353),i=n(67294),u=n(81343),l=n(38521),c=n(97444),d=n(9193),h=n(22591);function p(){var e=(0,i.useState)([]),t=e[0],n=e[1],p=(0,i.useState)(),f=p[0],g=p[1],y=(0,i.useState)(!0),v=y[0],m=y[1],b=(0,i.useState)([]),j=b[0],x=b[1],Z=(0,i.useState)(),w=Z[0],k=Z[1],R=(0,i.useState)(!0),S=R[0],B=R[1],_=(0,i.useState)([]),C=_[0],L=_[1],T=(0,i.useState)(),I=T[0],P=T[1],A=(0,i.useState)(!0),N=A[0],E=A[1];function K(){return K=(0,r.Z)((function(e){var r,i,p,y,v,b,j=arguments;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:r=j.length>1&&void 0!==j[1]?j[1]:[],i=j.length>2&&void 0!==j[2]&&j[2],m(!0),o.label=1;case 1:return o.trys.push([1,3,,4]),p=(0,c.bh)(r),[4,(0,u.Vz)(h.tGF,(0,a.Z)({status:d.iNe,sort:e.sort,order:e.order,attributes:p&&p.length>0?JSON.stringify(p):void 0},f&&!i?f:{}))];case 2:return y=o.sent(),(0,l.bv)(y.status)&&(v=y.data,b=v.Reports,n(i?b:(0,s.Z)(t).concat((0,s.Z)(b))),g(v.LastKey)),[3,4];case 3:return o.sent(),[3,4];case 4:return m(!1),[2]}}))})),K.apply(this,arguments)}function H(){return H=(0,r.Z)((function(e){var t,n,r,i,p,f,g=arguments;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:t=g.length>1&&void 0!==g[1]?g[1]:[],n=g.length>2&&void 0!==g[2]&&g[2],B(!0),o.label=1;case 1:return o.trys.push([1,3,,4]),r=(0,c.bh)(t),[4,(0,u.Vz)(h.tGF,(0,a.Z)({status:d.h0_,sort:e.sort,order:e.order,attributes:r&&r.length>0?JSON.stringify(r):void 0},w&&!n?w:{}))];case 2:return i=o.sent(),(0,l.bv)(i.status)&&(p=i.data,f=p.Reports,x(n?f:(0,s.Z)(j).concat((0,s.Z)(f))),k(p.LastKey)),[3,4];case 3:return o.sent(),[3,4];case 4:return B(!1),[2]}}))})),H.apply(this,arguments)}function F(){return F=(0,r.Z)((function(e){var t,n,r,i,p,f,g=arguments;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:t=g.length>1&&void 0!==g[1]?g[1]:[],n=g.length>2&&void 0!==g[2]&&g[2],E(!0),o.label=1;case 1:return o.trys.push([1,3,,4]),r=(0,c.bh)(t),[4,(0,u.Vz)(h.tGF,(0,a.Z)({status:d.XLC,sort:e.sort,order:e.order,attributes:r&&r.length>0?JSON.stringify(r):void 0},I&&!n?I:{}))];case 2:return i=o.sent(),(0,l.bv)(i.status)&&(p=i.data,f=p.Reports,L(n?f:(0,s.Z)(C).concat((0,s.Z)(f))),P(p.LastKey)),[3,4];case 3:return o.sent(),[3,4];case 4:return E(!1),[2]}}))})),F.apply(this,arguments)}function O(){return(O=(0,r.Z)((function(e,t,n,r,s){return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return[4,(0,u.c_)(h.tGF,(0,a.Z)({ContentId:e,Type:t,Reason:n,Link:r},s?{Details:s}:{}))];case 1:return[2,o.sent()]}}))}))).apply(this,arguments)}function V(){return(V=(0,r.Z)((function(e,t){return(0,o.__generator)(this,(function(n){switch(n.label){case 0:return[4,(0,u.Vz)(h.OW9,{id:e,type:t})];case 1:return[2,n.sent()]}}))}))).apply(this,arguments)}return{activeReports:t,loadingActiveReports:v,activeReportsLastKey:f,getActiveReports:function(e){return K.apply(this,arguments)},appeals:j,loadingAppeals:S,appealsLastKey:w,getAppeals:function(e){return H.apply(this,arguments)},resolvedReports:C,loadingResolvedReports:N,resolvedReportsLastKey:I,getResolvedReports:function(e){return F.apply(this,arguments)},createReport:function(e,t,n,r,a){return O.apply(this,arguments)},getReportStatus:function(e,t){return V.apply(this,arguments)}}}}}]);
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.