2 lines
81 KiB
JavaScript
2 lines
81 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{1128:function(e,t,n){"use strict";var a=n(20),r=n.n(a),i=n(21),c=n.n(i),o=n(22),s=n.n(o),l=n(23),u=n.n(l),d=n(13),p=n.n(d),h=n(33),b=n.n(h),m=n(41),f=n.n(m),v=n(3),y=n.n(v),O=n(1),j=n(5);function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=p()(e);if(t){var r=p()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var C=function(e){s()(n,e);var t=g(n);function n(){return r()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.src,n=t.content,a=t.attributes,r=e.title,i=f()(e,["src","title"]);return Object(j.g)("svg",b()({},a,i),Object(j.g)("title",null,r),Object(j.g)("g",{dangerouslySetInnerHTML:{__html:n}}))}}]),n}(O.Component);C.propTypes={src:y.a.object.isRequired},t.a=C},1382:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(0);function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.selectedKey,i=void 0===r?"selectedProps":r,c=n.dropedKey,o=void 0===c?"dropedProps":c;return Object.keys(e).reduce((function(n,r){var c=t.includes(r)?i:o;return Object.assign({},n,Object(a.a)({},c,Object.assign({},n[c],Object(a.a)({},r,e[r]))))}),{})}},1383:function(e,t,n){"use strict";var a=n(1),r=n.n(a),i=n(18),c=function(e){return r.a.createElement(i.a,e,r.a.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-2.762-5.37c.243.246.452.37.78.37.33 0 .576-.203.827-.443.25-.24 7.052-7.054 7.052-7.054a.988.988 0 0 0-.311-1.354.973.973 0 0 0-1.345.315l-6.222 6.077-2.31-2.418a.971.971 0 0 0-1.368-.19.988.988 0 0 0-.188 1.377s2.841 3.074 3.085 3.32z",fillRule:"evenodd"}))};c.defaultProps={name:"CheckCircle"},t.a=c},1388:function(e,t,n){"use strict";var a=n(1),r=n.n(a),i=n(18),c=function(e){return r.a.createElement(i.a,e,r.a.createElement("path",{d:"M18 8c.1-3.308-2.592-6-5.9-6-3.308 0-6 2.692-6 6v2H5.002C4 10 4 11 4 11v9s0 2 2 2h12c2 0 2-1.97 2-1.97V11s0-1-1-1h-1V8zm-6-4c2.143.018 4.005 1.597 4 4v2H8V7.996C8.013 5.562 9.857 3.982 12 4z",fillRule:"evenodd"}))};c.defaultProps={name:"Lock"},t.a=c},1434:function(e,t){e.exports={attributes:{width:"72px",height:"58px",viewBox:"0 0 72 58"},content:'<defs> <path d="M0.00434937116,11.7604183 C0.0014585125,11.8367351 0,11.9134174 0,11.9904392 L0,52.0095608 C0,55.3137533 2.68603825,58 5.99943435,58 L66.0005656,58 C69.3089213,58 72,55.317989 72,52.0095608 L72,11.9904392 C72,8.68624675 69.3139617,6 66.0005656,6 L31.1520961,6 L30.2346555,3.7077864 C29.4154984,1.66113281 26.9585394,0 24.7478675,0 L6.18638069,0 C2.86742525,0 0.139552484,2.68348852 0.0902454792,5.99373937 L0.00434937116,11.7604183 Z" id="path-1"></path> <mask id="mask-2" maskContentUnits="userSpaceOnUse" maskUnits="objectBoundingBox" x="0" y="0" width="72" height="58" fill="white"> <use xlink:href="#path-1"></use> </mask> </defs> <g id="空状态" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g id="collection" transform="translate(-39.000000, -30.000000)" stroke="#E7EAF1"> <g transform="translate(39.000000, 30.000000)" id="Group-7"> <g> <use id="Combined-Shape" mask="url(#mask-2)" stroke-width="6" xlink:href="#path-1"></use> <path d="M36.4126782,38.4800003 L30.2669271,41.2927815 C29.7656337,41.522213 29.4096881,41.2718295 29.4738593,40.716584 L30.2498317,34.0024302 L25.6755762,29.0266708 C25.3024658,28.6208107 25.4306014,28.2049135 25.9785012,28.0943637 L32.6038296,26.7575697 L35.9225353,20.8696 C36.1932338,20.3893332 36.6283715,20.3826781 36.9028211,20.8696 L40.2215268,26.7575697 L46.8468552,28.0943637 C47.3872665,28.2034026 47.5280608,28.6151866 47.1497802,29.0266708 L42.5755247,34.0024302 L43.3514971,40.716584 C43.4147912,41.2642406 43.0666691,41.5253922 42.5584293,41.2927815 L36.4126782,38.4800003 Z" id="Star" stroke-width="3"></path> </g> </g> </g> </g>'}},1477:function(e,t,n){"use strict";n.r(t),n.d(t,"FavlistsModal",(function(){return D}));var a=n(43),r=n(2),i=n(3),c=n.n(i),o=n(78),s=n(1),l=n(134),u=n(1382),d=function(e,t,n){return n&&void 0!==t&&(e||!t)},p=(n(1128),n(31)),h=n(73),b=n(11),m=n.n(b),f=n(135),v=n(398),y=function(e){var t,n=e.onBack,i=e.onSubmit,c=e.authRequired,o=e.isActive,l=e.editItem,u=void 0===l?{}:l,b=e.isDefaultPage,y="edit"===e.currentPage,O=Object(s.useState)(null===(t=u.isPublic)||void 0===t||t),j=Object(a.a)(O,2),g=j[0],C=j[1],k=Object(s.useState)(u.title||""),R=Object(a.a)(k,2),w=R[0],N=R[1],I=Object(s.useState)(u.description||""),S=Object(a.a)(I,2),P=S[0],x=S[1],T=!w||w.length>20||P.length>60,B=y&&!0===u.isPublic&&u.followerCount>0;return Object(r.c)("form",{className:"Favlists-content",onSubmit:function(e){if(e.preventDefault(),w){var t={title:w,description:P,isPublic:g};d(g,o,c)?c(i)(t):(i(t),n())}},children:[Object(r.c)("div",{className:"Favlists-addItems",children:[Object(r.c)("div",{className:"Favlists-addItem",children:[Object(r.b)(f.a,{className:"Favlists-titleInput",placeholder:"收藏标题",onChange:function(e){N(e.target.value)},value:w}),Object(r.b)("div",{className:"Favlists-inputTips",children:Object(r.b)(v.a,{name:"收藏标题",current:w?w.length:0,max:20})})]}),Object(r.c)("div",{className:"Favlists-addItem",children:[Object(r.b)(f.a,{multiline:!0,className:"Favlists-descritionInput",placeholder:"收藏描述(可选)",onChange:function(e){x(e.target.value)},rows:5,value:P}),Object(r.b)("div",{className:"Favlists-inputTips",children:Object(r.b)(v.a,{name:"收藏描述",current:P?P.length:0,max:60})})]}),Object(r.c)("div",{className:"Favlists-addItem",children:[Object(r.c)("label",{className:"Favlists-privacyOption",children:[Object(r.b)("input",{className:"Favlists-privacyOptionRadio",name:"isPublic",type:"radio",value:"true",checked:g,onChange:function(){return C(!0)}}),Object(r.b)("span",{children:"公开"}),Object(r.b)("span",{className:"Favlists-privacyOptionTips",children:"有其他人关注此收藏夹时不可设置为私密"})]}),Object(r.c)("label",{className:m()("Favlists-privacyOption",{"Favlists-privacyOption--privacyDisable":B}),children:[Object(r.b)("input",{className:"Favlists-privacyOptionRadio",name:"isPublic",type:"radio",value:"false",checked:!g,onChange:function(){return C(!1)},disabled:B}),Object(r.b)("span",{children:"私密"}),Object(r.b)("span",{className:"Favlists-privacyOptionTips",children:B?"当前有人在关注此收藏夹,无法设为隐私":"只有你自己可以查看这个收藏夹"})]})]})]}),Object(r.c)(h.a,{direction:"horizontal",className:"",children:[n&&Object(r.b)(p.c,{onClick:n,children:b?"取消":"返回"}),Object(r.b)(p.c,{color:"blue",preset:"primary",type:"submit",disabled:T,children:b?"确认":"确认创建"})]})]})};y.propTypes={onSubmit:c.a.func.isRequired,onBack:c.a.func,authRequired:c.a.func,isActive:c.a.bool,editItem:c.a.shape({type:c.a.oneOf(["collection"])}),currentPage:c.a.oneOf(["edit","add"]),isDefaultPage:c.a.bool};var O=y,j=(n(1434),n(14)),g=n(15),C=n(16),k=n(17),R=n(9),w=n(368),N=n(989),I=n(30),S=n(1388);function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Object(R.a)(e);if(t){var r=Object(R.a)(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(k.a)(this,n)}}var x=function(e){Object(C.a)(n,e);var t=P(n);function n(){var e;Object(j.a)(this,n);for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).handleChange=function(){var t=e.props;(0,t.onChange)(t.id,e.props.checked)},e}return Object(g.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.zaEnabled,n=e.id;t&&I.a.setModule(this,{module:"CollectionItem"},{card:{card_type:"Content",content:{type:"Collection",token:String(n)}}})}},{key:"render",value:function(){var e=this.props,t=e.answerCount,n=e.title,a=e.isPublic,i=e.checked,c=void 0!==i&&i?{preset:"primary",color:"grey",children:"已收藏"}:{color:"blue",children:"收藏"};return Object(r.c)("div",{className:"Favlists-item",children:[Object(r.c)("div",{className:"Favlists-itemInner",children:[Object(r.c)("div",{className:"Favlists-itemName",children:[Object(r.b)("span",{className:"Favlists-itemNameText",children:n}),!1===a&&Object(r.b)("span",{className:"Favlists-itemIcon",children:Object(r.b)(S.a,{size:16})})]}),Object(r.c)("div",{className:"Favlists-itemContent",children:[t," 条内容"]})]}),Object(r.b)(p.c,Object.assign({},c,{className:"Favlists-updateButton",onClick:this.handleChange}))]})}}]),n}(s.Component);function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Object(R.a)(e);if(t){var r=Object(R.a)(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(k.a)(this,n)}}var B=function(e){Object(C.a)(n,e);var t=T(n);function n(){var e;Object(j.a)(this,n);for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).items={},e.handleFavlistItemChange=function(t,n){I.a.trackEvent(e.items[t],{action:n?"UnCollect":"Collect",element:"Button",is_intent:!1}),e.props.onUpdate(t,n)},e}return Object(g.a)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.relations,a=t.items,i=t.isFetching,c=t.isDrained,o=t.onAdd,s=t.onLoad;return Object(r.c)("div",{className:"Favlists-content",children:[Object(r.b)(w.b,{isLocal:!0,isLoading:i,isDrained:c,onLoad:s,placeholder:Object(r.b)(N.a,{title:!0}),getContainer:function(e){return e},className:"Favlists-items",children:a.map((function(t){return Object(r.b)(x,Object.assign({onChange:e.handleFavlistItemChange,checked:n[t.id]},t,{ref:function(n){e.items[t.id]=n}}),t.id)}))}),!a.length&&i||Object(r.b)("div",{className:"Favlists-actions",children:Object(r.b)(p.c,{className:"Favlists-addButton",onClick:o,preset:"primary",color:"blue",children:"创建收藏夹"})})]})}}]),n}(s.Component);B.propTypes={isFetching:c.a.bool,relations:c.a.object,onUpdate:c.a.func.isRequired,onAdd:c.a.func.isRequired,onLoad:c.a.func.isRequired,items:c.a.array.isRequired,isDrained:c.a.bool,authRequired:c.a.func};var z=B,M=Object(s.forwardRef)((function(e,t){var n=e.currentPage,a=e.items,i=e.isFetching,c=e.isDrained,o=e.relations,s=e.handleUpdateFavList,l=e.onLoad,u=e.zaEnabled,d=e.handleAdd,b=e.handleCloseModal,m=e.onFavlistAdd,f=e.authRequired,v=e.isUserActive,y=e.defaultStatus,j=e.handleBack,g=e.hasFavlists,C=e.editItem,k=void 0===C?{}:C,R=e.onUpdateFavContent;if("list"===n)return g?Object(r.b)(z,{ref:t,items:a,isFetching:i,isDrained:c,relations:o,onAdd:d,onUpdate:s,onLoad:l,zaEnabled:u}):Object(r.c)(h.a,{children:[Object(r.b)(p.c,{preset:"primary",color:"blue",onClick:d,children:"创建收藏夹"}),Object(r.b)(p.c,{onClick:b,children:"取消"})]});if(["add","edit"].includes(n)){var w=y===n;return Object(r.b)(O,{onSubmit:"add"===n?m:R,isActive:v,onBack:w?b:j,authRequired:f,editItem:k,currentPage:n,isDefaultPage:w})}return null}));M.propTypes={currentPage:c.a.oneOf(["list","add","edit"]).isRequired,items:c.a.arrayOf(c.a.shape({type:c.a.oneOf(["collection"])})),isFetching:c.a.bool,isDrained:c.a.bool,relations:c.a.object,handleUpdateFavList:c.a.func,onLoad:c.a.func,zaEnabled:c.a.bool,handleAdd:c.a.func,handleCloseModal:c.a.func.isRequired,onFavlistAdd:c.a.func,authRequired:c.a.func,isUserActive:c.a.bool,defaultStatus:c.a.oneOf(["list","add","edit"]),handleBack:c.a.func,hasFavlists:c.a.bool,editItem:c.a.shape({type:c.a.oneOf(["collection"])}),onUpdateFavContent:c.a.func};var F=M,_={list:{title:"添加收藏",tips:function(e){return e?"请选择你想添加的收藏夹":"你可以创建多个收藏夹,将答案分类收藏"}},add:{title:"创建新收藏夹"},edit:{title:"编辑收藏夹"}},E=function(e){var t=e.shown,n=e.items,i=e.id,c=e.type,p=e.relations,h=e.onClose,b=e.isUserActive,m=e.authRequired,f=e.defaultStatus,v=e.onUpdateFav,y=e.isDrained,O=e.isFetching,j=e.onLoad,g=e.zaEnabled,C=e.onFavlistAdd,k=e.editItem,R=e.onUpdateFavContent,w=Object(s.useState)(f),N=Object(a.a)(w,2),I=N[0],S=N[1],P=Object(o.g)(n)||[];Object(s.useEffect)((function(){"add"===I&&"list"===f&&P.length<n.length&&S("list")}),[I,f,k,n,P.length]);var x=function(){h(),"list"===f&&S("list")},T=!(y&&!n.length),B=Object(u.a)(e,Object.keys(l.b.propTypes)).selectedProps,z=_[I],M=z.tips,E=z.title;return Object(r.b)(l.b,Object.assign({},B,{onClose:x,title:E,subtitle:M&&M(T),buttonGroupOnly:!T,className:"FavlistsModal",size:"large",children:t&&Object(r.b)(F,{currentPage:I,items:n,isFetching:O,isDrained:y,relations:p,handleUpdateFavList:function(e,t){var a=n.find((function(t){return t.id===e}))||{},r=[e,i,c,a.isPublic];return!t&&d(a.isPublic,b,m)?m(v).apply(void 0,r):v.apply(void 0,r)},onLoad:j,zaEnabled:g,handleAdd:function(){return S("add")},handleCloseModal:x,onFavlistAdd:C,authRequired:m,isUserActive:b,defaultStatus:f,handleBack:function(){return S("list")},hasFavlists:T,editItem:k,onUpdateFavContent:R})}))};E.propTypes={id:c.a.oneOfType([c.a.string,c.a.number]),type:c.a.oneOf(["answer","article","pin","zvideo"]),relations:c.a.object,onUpdateFav:c.a.func,onFavlistAdd:c.a.func,onClose:c.a.func.isRequired,shown:c.a.bool,zaEnabled:c.a.bool,authRequired:c.a.func,isUserActive:c.a.bool,defaultStatus:c.a.oneOf(["list","add","edit"]),onLoad:c.a.func,editItem:c.a.shape({type:c.a.oneOf(["collection"])}),onUpdateFavContent:c.a.func},E.defaultProps={defaultStatus:"list",relations:{},authRequired:function(e){return e}};var D=E},1673:function(e,t,n){},2608:function(e,t,n){"use strict";n.r(t);var a=n(14),r=n(15),i=n(16),c=n(17),o=n(9),s=n(2),l=n(1),u=n(11),d=n.n(u),p=n(233),h=n.n(p),b=n(30);n(1673);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Object(o.a)(e);if(t){var r=Object(o.a)(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(c.a)(this,n)}}var f=function(e){Object(i.a)(n,e);var t=m(n);function n(){var e;Object(a.a)(this,n);for(var r=arguments.length,i=new Array(r),c=0;c<r;c++)i[c]=arguments[c];return(e=t.call.apply(t,[this].concat(i))).rootRef=Object(l.createRef)(),e.unobserve=h.a,e.renderTarget=function(){var t=e.props.item,n=t.content.target,a=n.text,r=n.link,i=t.id,c=t.target,o=t.target,l=(o=void 0===o?{}:o).id,u=o.target,d=void 0===u?{}:u,p=d.type;return c&&"comment"===c.type?e.renderCommentButton(a,{type:p,href:r,byComment:l,target:d,notificationId:i}):Object(s.b)("span",{children:r?Object(s.b)("a",{href:r,"data-za-detail-view-id":5109,children:a}):Object(s.b)("span",{children:a})})},e}return Object(r.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.addObserve,n=e.item.attachInfo,a=this.rootRef.current;b.a.setModule(a,{module:"Content"},{attached_info_bytes:n}),this.unobserve=t(a)}},{key:"componentWillUnmount",value:function(){this.unobserve()}},{key:"renderCommentButton",value:function(e,t){var n=this,a=t.href,r=t.byComment,i=t.notificationId;return Object(s.b)("a",{href:"".concat(a).concat(r?"#comment-".concat(r,"?notificationId=").concat(i):""),"data-za-detail-view-id":5109,onClick:function(e){e.preventDefault(),n.props.onCommentsModalOpen(t)},children:e})}},{key:"render",value:function(){var e,t=this.props.item,n=t.content,a=n.verb,r=n.actors,i=t.isRead;return Object(s.c)("div",{ref:this.rootRef,className:d()("PushNotifications-item",{"PushNotifications-newItem":!i}),children:[Object(s.b)("span",{children:(e=r,Array.isArray(e)||(e=[e]),e.map((function(e,t){return Object(s.b)("span",{className:"PushNotifications-actor",children:e.link?Object(s.b)("a",{href:e.link,"data-za-detail-view-id":5109,children:e.name}):Object(s.b)("span",{children:e.name})},t)})))})," ",a," ",this.renderTarget()]})}}]),n}(l.Component);t.default=f},2624:function(e,t,n){"use strict";n.r(t),n.d(t,"ReportModal",(function(){return xe}));var a=n(35),r=n(0),i=n(14),c=n(15),o=n(16),s=n(17),l=n(9),u=n(2),d=n(3),p=n.n(d),h=n(1),b=n.n(h),m=n(30),f=n(134),v=n(1382),y=function(e){return"article"===e?"Post":"book_review"===e?"BookReview":"".concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))},O=n(378);function j(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var g=function e(t){var n=t.size,a=t.text,r=t.center,i=j(t,["size","text","center"]);a&&(n="1.2em");var c=b.a.createElement("svg",Object.assign({},i,n&&{width:n,height:n}));return r?b.a.createElement("span",{style:e.strutStyle},"",c):c};g.defaultProps={fill:"currentColor"},g.strutStyle={display:"inline-flex",alignItems:"center"};var C,k,R=g,w=function(e){return b.a.createElement(R,Object.assign({width:"16",height:"16",viewBox:"0 0 32 32"},e,{className:"ZDI ZDI--CheckboxChecked16"+(e.className?" ".concat(e.className):"")}),b.a.createElement("path",{d:"M16 3c7.18 0 13 5.82 13 13s-5.82 13-13 13S3 23.18 3 16 8.82 3 16 3zm6.353 7.854a.5.5 0 00-.707 0l-6.232 6.229a.501.501 0 01-.707 0l-3.233-3.23a.5.5 0 00-.707 0l-1.414 1.415a.5.5 0 000 .707l5 4.997c.391.39 1.024.39 1.415 0l8-7.997a.5.5 0 000-.707z",fillRule:"evenodd"}))},N=function(e){return b.a.createElement(R,Object.assign({width:"16",height:"16",viewBox:"0 0 32 32"},e,{className:"ZDI ZDI--CheckboxUncheck16"+(e.className?" ".concat(e.className):"")}),b.a.createElement("path",{d:"M16 3c7.18 0 13 5.82 13 13s-5.82 13-13 13S3 23.18 3 16 8.82 3 16 3zm0 2C9.925 5 5 9.925 5 16s4.925 11 11 11 11-4.925 11-11S22.075 5 16 5z",fillRule:"evenodd"}))},I=n(73),S=n(31),P=function(e){var t=e.List,n=e.selectedId,a=e.handleClickSearchItem,r=e.handleChangeStage;return Object(u.c)("div",{children:[Object(u.b)("div",{children:t.map((function(e){if(e.id)return Object(u.c)("div",{onClick:function(){return a(e.id)},className:"ReportMenu-item ReportModal-search-suggest-item",children:[e.data,n===e.id?Object(u.b)(w,{className:"ReportModal-search-suggest-item-selected"}):Object(u.b)(N,{className:"ReportModal-search-suggest-item-unselected"})]},e.id)}))}),Object(u.b)(I.a,{direction:"horizontal",children:Object(u.b)(S.c,{className:"ReportMenu-button",disabled:!n,onClick:r,color:"blue",preset:"primary",children:"下一步"})})]})},x=n(11),T=n.n(x),B=n(835);function z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Object(l.a)(e);if(t){var r=Object(l.a)(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(s.a)(this,n)}}var M="oneself",F="enterprise",_={declare:{title:"发表澄清声明",image:"https://zhstatic.zhihu.com/assets/report/Statement@3x.png",description:(C={},Object(r.a)(C,M,"个人可以对站内关于自身的不实描述内容发表澄清声明,声明通过审核后,将会以标记的形式显示在投诉内容的上方,点击可跳转至您的声明全文页面"),Object(r.a)(C,F,"企业可以对站内关于自身的不实描述内容发表澄清声明,声明通过审核后,将会以标记的形式显示在投诉内容的上方,点击可跳转至您的声明全文页面"),C)},trespass:{title:"提交侵权举报",image:"https://zhstatic.zhihu.com/assets/report/Infringement@3x.png",description:Object(u.b)("span",{children:"您提交的侵权举报将会根据知乎侵权举报规范进行受理"})}},E=(k={},Object(r.a)(k,F,"当您发现知乎上存在涉嫌侵犯您企业合法权益的内容时,您可以先尝试与作者沟通解决,如沟通无效,也可以通过以下方式向知乎提出诉求。"),Object(r.a)(k,M,"当您发现知乎上存在涉嫌侵犯您个人合法权益的内容时,您可以通过以下方式向知乎提出诉求。"),k),D=function(e){Object(o.a)(n,e);var t=z(n);function n(){var e;Object(i.a)(this,n);for(var a=arguments.length,r=new Array(a),c=0;c<a;c++)r[c]=arguments[c];return(e=t.call.apply(t,[this].concat(r))).handleClick=function(e){m.a.trackEvent(e,{id:3467,aciton:"Click"})},e}return Object(c.a)(n,[{key:"componentDidMount",value:function(){m.a.trackCardShow(null,{id:3466})}},{key:"render",value:function(){var e=this,t=this.props,n=t.onSubMenuEnter,a=t.onBackClick,r=t.isMobile,i=t.childNodes,c=t.activeNode.reason,o=i.map((function(e){return Object.assign({},_[e.reason],{id:e.id})}));return Object(u.c)("section",{className:T()("ReportInfringement",{"ReportInfringement--mobile":r}),children:[Object(u.b)("p",{className:"ReportInfringement-subtitle",children:E[c]}),Object(u.b)("ul",{className:"ReportInfringement-list",children:o.map((function(t){var a=t.image,r=t.title,i=t.description,o=t.id,s=i[c]||i;return Object(u.c)("li",{className:"ReportInfringement-item","data-za-module":"Content","data-za-detail-view-path-module_name":r,onClick:function(t){e.handleClick(t.currentTarget),n(o)},children:[Object(u.b)("img",{className:"ReportInfringement-image",src:a}),Object(u.c)("div",{className:"ReportInfringement-content",children:[Object(u.b)("h1",{className:"ReportInfringement-itemTitle",children:r}),Object(u.b)("p",{className:"ReportInfringement-itemDescription",children:s})]}),Object(u.b)(B.a,{className:"ReportInfringement-arrow"})]},r)}))}),Object(u.b)(I.a,{direction:"horizontal",children:Object(u.b)(S.c,{"data-za-module":"Content","data-za-detail-path-view-module_name":"返回",onClick:function(t){e.handleClick(t.currentTarget),a()},children:"返回"})})]})}}]),n}(b.a.Component),L=n(44),q=function(e){return"https://www.zhihu.com/account/infringement?".concat(Object(L.stringify)(e))};function A(e){var t="declare"===e.infringementType?"侵权-澄清声明":"侵权举报";return Object(u.c)("p",{className:"ReportSkipContent",children:["若您已注册机构号,使用",Object(u.b)("span",{className:"ReportSkipContent-highlight",children:"机构号"}),"提交企业",t,",",Object(u.b)("span",{className:"ReportSkipContent-highlight",children:"可免提交资质材料"}),";若您已进行个人认证,使用已认证的帐号提交个人",t,",",Object(u.b)("span",{className:"ReportSkipContent-highlight",children:"可免提交资质材料。"})]})}var U=n(63);function W(e){var t=e.isIndividualReason,n=e.onBackClick,a=e.urlToken,r=e.type;return Object(u.c)("div",{className:"InfringementReport-wrapper",children:[Object(u.b)("div",{className:"InfringementReport-title",children:"提交侵权举报"}),Object(u.b)("div",{className:"InfringementReport-subTitle",children:"".concat(t?"个人侵权":"企业侵权")}),Object(u.b)("div",{className:"InfringementReport-text",children:Object(u.c)("ul",{children:[Object(u.c)("li",{children:["根据"," ",Object(u.b)("a",{href:"https://www.zhihu.com/terms#sec-report",rel:"noopener noreferrer",target:"_blank",className:"InfringementReport-rules",children:"知乎侵权举报规范"}),",您需按照提示提供完整、有效的证明材料,并规范填写投诉说明。若您已确认完毕,请继续提交举报信息。"]}),Object(u.c)("li",{children:[Object(u.b)("br",{}),"若您已注册机构号,使用",Object(u.b)("span",{children:"机构号"}),"提交企业侵权举报,",Object(u.b)("span",{children:"可免提交资质材料"}),";若您已进行个人认证,使用已认证的帐号提交个人侵权举报,",Object(u.b)("span",{children:"可免提交资质材料。"})]})]})}),Object(u.c)("div",{className:"InfringementReport-buttonGroup",children:[Object(u.b)(S.c,{className:"InfringementReport-back",onClick:n,children:"返回"}),Object(u.b)(S.c,{className:"InfringementReport-submit",onClick:function(){var e;U.a.dispatch("base/openURL",{url:(e={resourceId:a,type:r,reasonType:t?"inflictIndividual":"enterprise",route_simi_to_full:!0,zh_nav_right:"empty"},"".concat(window.location.origin,"/appview/account/infringement?").concat(Object(L.stringify)(e)))})},children:"继续提交举报"})]})]})}function H(e){var t=e.infringementType,n=e.isIndividualReason,a=e.onBackClick,r=e.urlToken,i=e.type,c="declare"===t;return Object(u.b)("div",{children:c?Object(u.c)("div",{className:"ReportInfringementMobile",children:[Object(u.c)("p",{className:"ReportInfringementMobile-text",children:["1."," ","".concat(n?"个人":"企业","可以对站内关于自身的不实描述内容发表澄清声明,声明通过审核后,将会以标记的方式形式显示在投诉内容的上方,点击可跳转至您的声明全文。")]}),Object(u.c)("p",{className:"ReportInfringementMobile-text",children:["2. 根据",Object(u.b)("a",{className:"ReportInfringementMobile-link",href:"https://www.zhihu.com/terms#sec-report",target:"_blank",rel:"noopener noreferrer",children:"知乎侵权举报规范"}),",您需按照提示提供完整、有效的证明材料, 以发表澄清声明。 若您已确认完毕,",Object(u.b)("span",{className:"ReportInfringementMobile-bold",children:"请到桌面版网页进行诉求提交。"})]}),Object(u.b)("p",{className:"ReportInfringementMobile-text",children:"若您已注册机构号,使用机构号提交企业侵权-澄清声明,可免提交资质材料;若您已进行个人认证,使用已认证的帐号提交个人侵权-澄清声明,可免提交资质材料。"}),Object(u.b)("img",{className:"ReportInfringementMobile-img",src:"https://zhstatic.zhihu.com/report/app_report.png"}),Object(u.b)(S.c,{color:S.a.Blue,preset:S.b.Primary,onClick:a,className:"ReportInfringementMobile-button",children:"我知道了"})]}):Object(u.b)(W,{infringementType:t,isIndividualReason:n,onBackClick:a,urlToken:r,type:i})})}function K(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Object(l.a)(e);if(t){var r=Object(l.a)(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(s.a)(this,n)}}var Z=function(e){Object(o.a)(n,e);var t=K(n);function n(){var e;Object(i.a)(this,n);for(var a=arguments.length,r=new Array(a),c=0;c<a;c++)r[c]=arguments[c];return(e=t.call.apply(t,[this].concat(r))).handleClick=function(e){m.a.trackEvent(null,{id:3469,action:"Click"},{button:{text:e}})},e}return Object(c.a)(n,[{key:"componentDidMount",value:function(){m.a.trackCardShow(null,{id:3468})}},{key:"render",value:function(){var e=this,t=this.props,n=t.onBackClick,a=t.urlToken,r=t.type,i=t.isMobile,c=!("enterprise"===t.parentNode.reason);return i?Object(u.b)(H,{isIndividualReason:c,infringementType:"declare",onBackClick:n,type:r,urlToken:a}):Object(u.c)("section",{className:"ReportDeclare",children:[Object(u.c)("div",{className:"ReportDeclare-description",children:["当您发现知乎上有关于您",c?"个人":"企业","的侵权内容时,您可通过此方式发表澄清声明。",Object(u.b)("br",{}),Object(u.b)("br",{}),"申请发表澄清声明的流程如下:",Object(u.c)("ul",{children:[Object(u.c)("li",{children:["1. 在站内写一篇",Object(u.b)("a",{href:"https://zhuanlan.zhihu.com/write",target:"_blank",rel:"noopener noreferrer",onClick:function(){return e.handleClick("澄清声明文章")},children:"澄清声明文章"}),"并发布。",Object(u.b)("a",{href:"https://zhstatic.zhihu.com/assets/report/template-v2.png",target:"_blank",rel:"noopener noreferrer",onClick:function(){return e.handleClick("查看模版")},children:"查看模版"}),Object(u.b)("br",{})]}),Object(u.c)("li",{children:["2.返回此页面继续发表声明,您需按照提示提供完整、有效的证明材料。",Object(u.b)("br",{})]}),Object(u.b)("li",{children:"3.审核通过后,侵权纠纷内容上会关联展示您的澄清声明,点击可跳转至您的声明全文。"})]}),Object(u.b)(A,{infringementType:"declare"})]}),Object(u.c)(I.a,{direction:"horizontal",children:[Object(u.b)(S.c,{onClick:n,children:"返回"}),Object(u.b)(S.c,{onClick:function(){return e.handleClick("继续发表声明")},component:"a",href:q({infringementType:"declare",resourceId:a,type:r,reasonType:c?"inflictIndividual":"enterprise"}),className:"ReportDeclare-continue",color:S.a.Blue,preset:S.b.Primary,children:"继续发表声明"})]})]})}}]),n}(b.a.Component);function V(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Object(l.a)(e);if(t){var r=Object(l.a)(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(s.a)(this,n)}}var G=function(e){Object(o.a)(n,e);var t=V(n);function n(){var e;Object(i.a)(this,n);for(var a=arguments.length,r=new Array(a),c=0;c<a;c++)r[c]=arguments[c];return(e=t.call.apply(t,[this].concat(r))).handleClick=function(e){m.a.trackEvent(null,{id:3510,aciton:"Click"},{button:{text:e}})},e}return Object(c.a)(n,[{key:"componentDidMount",value:function(){m.a.trackCardShow(null,{id:3509})}},{key:"render",value:function(){var e=this,t=this.props,n=t.onBackClick,a=t.urlToken,r=t.type,i=t.isMobile,c=!("enterprise"===t.parentNode.reason);return i?Object(u.b)(H,{isIndividualReason:c,infringementType:"trespass",onBackClick:n,urlToken:a,type:r}):Object(u.c)("section",{className:"ReportTrespass",children:[Object(u.c)("p",{className:"ReportTrespass-description",children:["根据",Object(u.b)("a",{href:"https://www.zhihu.com/terms#sec-report",onClick:function(){e.handleClick("知乎侵权举报规范")},children:"知乎侵权举报规范"}),",您需按照提示提供完整、有效的证明材料,并规范填写投诉说明。若您已确认完毕,请继续提交举报信息。"]}),Object(u.b)(A,{infringementType:"trespass"}),Object(u.c)(I.a,{direction:"horizontal",children:[Object(u.b)(S.c,{onClick:function(){e.handleClick("返回"),n()},children:"返回"}),Object(u.b)(S.c,{onClick:function(){e.handleClick("继续提交举报")},component:"a",href:q({resourceId:a,type:r,reasonType:c?"inflictIndividual":"enterprise"}),className:"ReportTrespass-continue",color:S.a.Blue,preset:S.b.Primary,children:"继续提交举报"})]})]})}}]),n}(b.a.Component),J=[{id:0,text:"举报",childIds:[1,2,39,30001,4,20,5,21,7,8,9,50]},{id:1,text:"低质问题",types:["question","drama_statement"],childIds:[23,33,34,35,27,22]},{id:2,text:"垃圾广告信息",reason:"spam",copywriter:{title:"举报说明",placeholder:"举报详细说明",isRequired:!1},disabled:!0,des:"未经平台允许,知乎禁止使用帐号的任何功能,发布含有产品售卖信息、牟利性外链及违规推广等信息或引导用户至第三方平台进行交易。请在举报时简述理由,感谢你与我们共同维护社区的良好氛围。",url:"https://zhuanlan.zhihu.com/p/96916639",typesExcluded:["search_suggested_word"]},{id:30001,reason:"abuse",text:"辱骂、人身攻击等不友善行为",types:["question","answer","article","pin","comment","zvideo","drama_bullet","favlist","book_review","discussion_review","zvideo_collection"],copywriter:{title:"举报说明",placeholder:"举报详细说明",isRequired:["zvideo","drama_bullet","book_review","discussion_review"]},disabled:!0,des:"知乎鼓励友善的讨论。请在举报时提供对人产生辱骂、人身攻击或冒犯的相关内容段落或其他信息。感谢你与我们共同维护知乎的讨论氛围。",url:"https://www.zhihu.com/question/20239684"},{id:4,text:"有害信息",childIds:[19,30,26,18,28,51],typesExcluded:["search_suggested_word"]},{id:5,text:"涉嫌侵权",childIds:[29,12],types:["search_suggested_word","question","drama_statement","answer","comment","drama_bullet","article","pin","book_review","zvideo"],reason:"infringement",disabled:!0},{id:7,text:"其他",reason:"old",copywriter:{title:"举报说明",placeholder:"举报详细说明"},disabled:!0,types:["message","book_review","discussion_review","drama_statement","drama_bullet"]},{id:8,reason:"direction",shouldShow:function(e){return e.isColumnArticle}},{id:9,reason:"tipjar",shouldShow:function(e){return e.isTipjarEnabled}},{id:12,reason:"enterprise",disabled:!0,customComponent:D,childIds:[48,49]},{id:17,reason:"spam"},{id:18,reason:"illegality",copywriter:{title:"举报说明",placeholder:"举报详细说明"},disabled:!0},{id:19,reason:"politics"},{id:20,reason:"repost",copywriter:{title:"不规范转载说明",placeholder:"原文链接或补充说明",maxLength:1e3},types:["answer","article","pin","book_review"],disabled:!0,des:"知乎鼓励对引用内容进行清晰的出处标注。请在举报时提供违规引用的内容链接或出处,感谢你与我们共同保护原创版权。",url:"https://www.zhihu.com/question/20258015/answer/72942383"},{id:21,reason:"temptation",copywriter:{title:"举报说明",placeholder:"举报详细说明"},disabled:!0,types:["answer","comment","drama_bullet","article","column","zvideo"],des:"知乎禁止通过各种方式比如利益诱导(赞同、反对、分享行为后对用户有奖励)、威胁逼迫等形式干预用户在知乎站内的赞同、关注等,影响内容在站内正常流通。请在举报时简述理由,感谢你与我们共同维护社区氛围。",url:"https://zhuanlan.zhihu.com/p/96927876"},{id:22,reason:"personal"},{id:23,reason:"ambiguity"},{id:26,reason:"suicide",types:["question","drama_statement","answer","article","pin","book_review","comment","drama_bullet","zvideo"]},{id:27,reason:"medicine"},{id:28,reason:"superstition",typesExcluded:["zvideo_collection"]},{id:29,reason:"oneself",disabled:!0,customComponent:D,childIds:[46,47]},{id:30,reason:"porn"},{id:33,reason:"subjective",copywriter:{title:"包含主观判断",placeholder:"举报详细说明",isRequired:["drama_statement"]},des:"问题中包含提问者无根据或非常主观甚至包含争议的见解、结论或推测。请在举报时简述理由,感谢你与我们共同维护社区的良好氛围。",url:"https://www.zhihu.com/question/19806261"},{id:34,reason:"rumour",copywriter:{title:"缺乏可信来源",placeholder:"举报详细说明",isRequired:["drama_statement"]},des:"未提供可靠的信息来源,或提问前提属于谣言 / 存在事实错误。请在举报时简述理由或补充来源,感谢你与我们共同维护社区的良好氛围。",url:"https://www.zhihu.com/question/19806261"},{id:35,reason:"provoke",copywriter:{title:"引战争议等非真实问题",placeholder:"举报详细说明",isRequired:["drama_statement"]},des:"刻意引起群体或个人之间的对立、冲突、激化矛盾的问题。请在举报时简述理由,感谢你与我们共同维护社区的良好氛围。",url:"https://www.zhihu.com/question/19806261"},{id:39,text:"不实信息",types:["answer","comment","drama_bullet","article","pin","book_review","zvideo"],childIds:[42,43,44,45]},{id:40,reason:"abuse"},{id:41,reason:"unfriendly",copywriter:{title:"不规范转载说明",placeholder:"原文链接或补充说明",maxLength:1e3},disabled:!0,des:"知乎鼓励对引用内容进行清晰的出处标注。请在举报时提供违规引用的内容链接或出处,感谢你与我们共同保护原创版权。",url:"https://www.zhihu.com/question/20258015/answer/72942383"},{id:42,reason:"untruth_science",text:"科学类不实信息",copywriter:{title:"举报说明",placeholder:"举报详细说明"},disabled:!0,des:"知乎鼓励专业的回答,请在举报时提供内容中与当前学术共识或权威研究结论相左的错误或不准确部分,或通过权威资讯指出其中错误,感谢你的支持。",url:"https://zhuanlan.zhihu.com/p/96929600"},{id:43,reason:"untruth_rumor",text:"社会谣言类不实信息",copywriter:{title:"举报说明",placeholder:"举报详细说明"},disabled:!0,des:"为保证站内信息传播的客观真实,知乎会持续对社会谣言类不实信息进行处理。请在举报时提供政府机构、有关机构、权威媒体发布的辟谣信息或其他佐证,知乎将会核实处理,感谢你的支持。"},{id:44,reason:"untruth_fake_profile",text:"编造经历类不实信息",copywriter:{title:"举报说明",placeholder:"举报详细说明"},disabled:!0,types:["answer","drama_bullet","pin","book_review"],des:"知乎禁止对标榜真实经历的内容进行恶意夸大或过分虚构的行为。请在举报时提供被举报内容中编造经历的佐证,如事实错误、前后矛盾等相关内容段落或其他详细信息。感谢你与我们共同维护知乎真实的内容环境。"},{id:45,text:"诽谤等侵权信息",childIds:[20,29,12],types:["answer","comment","drama_bullet","article","pin","book_review"]},{id:46,customComponent:Z,text:"发表澄清声明",reason:"declare",types:["answer","article","pin"],subtitle:"个人侵权"},{id:47,customComponent:G,text:"提交侵权举报",reason:"trespass",subtitle:"个人侵权"},{id:48,customComponent:Z,text:"发表澄清声明",reason:"declare",types:["answer","article","pin"],subtitle:"企业侵权"},{id:49,customComponent:G,text:"提交侵权举报",reason:"trespass",subtitle:"企业侵权"},{id:50,disabled:!0,text:"有害信息",types:["search_suggested_word"],childIds:[19,30,26,18,51]},{id:51,disabled:!0,text:"涉未成年人不良信息",reason:"kids_harmful",copywriter:{title:"举报说明",placeholder:"举报详细说明"},des:"为了快速定位并处置涉未成年人不良信息,保护未成年人身心健康,可通过本举报渠道对涉及内容进行举报。"}],Q=[{id:0,text:"举报",childIds:[1,2,3,4]},{id:1,text:"垃圾广告信息",reason:"spam",copywriter:{title:"垃圾广告信息",placeholder:"举报详细说明",isRequired:!1},disabled:!0,des:"未经平台允许,知乎禁止使用帐号的任何功能发布含有产品售卖信息、牟利性外链及违规推广等信息或引导用户至第三方平台进行交易。请在举报时简述理由,感谢你与我们共同维护社区的良好氛围。"},{id:2,text:"辱骂、人身攻击等不友善行为",reason:"unkind",copywriter:{title:"辱骂、人身攻击等不友善行为",placeholder:"举报详细说明",isRequired:!1},disabled:!0,des:"知乎鼓励友善的讨论。请在举报时提供对人产生辱骂、人身攻击或冒犯的相关内容段落或其他信息。感谢你与我们共同维护知乎的讨论氛围。"},{id:3,text:"有害信息",reason:"imitation",disabled:!0,childIds:[19,30,26,18,28,51]},{id:19,reason:"politics"},{id:28,reason:"superstition"},{id:30,reason:"porn"},{id:26,reason:"suicide",types:["question","drama_statement","answer","article","pin","book_review","comment","drama_bullet","zvideo"]},{id:18,reason:"illegality",copywriter:{title:"举报说明",placeholder:"举报详细说明"},disabled:!0},{id:51,disabled:!0,text:"涉未成年人不良信息",reason:"kids_harmful",copywriter:{title:"举报说明",placeholder:"举报详细说明"}}],$=[{id:0,text:"举报",childIds:[1,2,3],des:"小管家提示:如对方向你发送多条涉及违规的私信内容,请长按对话气泡,逐一举报。小管家会对此进行受理并加重处罚。"},{id:1,reason:"abuse",copywriter:{title:"举报说明",placeholder:"举报详细说明",isRequired:!1},disabled:!0,des:"知乎鼓励友善的讨论。请在举报时提供对人产生辱骂、人身攻击或冒犯的相关内容段落或其他信息。感谢你与我们共同维护知乎的讨论氛围。",url:"https://www.zhihu.com/question/20239684"},{id:2,reason:"harassment",copywriter:{title:"举报说明",placeholder:"举报详细说明",isRequired:!1},disabled:!0,des:"存在冒犯、威胁、性骚扰等骚扰行为。"},{id:3,reason:"spam",copywriter:{title:"举报说明",placeholder:"举报详细说明",isRequired:!1},disabled:!0,des:"未经平台允许,知乎禁止使用帐号的任何功能发布含有产品售卖信息、牟利性外链及违规推广等信息或引导用户至第三方平台进行交易。请在举报时简述理由,感谢你与我们共同维护社区的良好氛围。",url:"https://zhuanlan.zhihu.com/p/96916639"}],X=[{id:0,text:"举报",childIds:[1,4,6,7]},{id:1,text:"冒充我或他人",childIds:[8,9],reason:"fake",disabled:!0},{id:4,reason:"spam",text:"垃圾广告帐号",copywriter:{title:"垃圾广告帐号",placeholder:"举报详细说明",isRequired:!1},disabled:!0,des:"未经平台允许,知乎禁止使用帐号的任何功能发布含有产品售卖信息、牟利性外链及违规推广等信息或引导用户至第三方平台进行交易。请在举报时简述理由,感谢你与我们共同维护社区的良好氛围。",url:"https://zhuanlan.zhihu.com/p/96916639"},{id:6,reason:"profile",copywriter:{title:"举报说明",placeholder:"举报详细说明"},disabled:!0,des:"用户名、头像、封面图、个人形象词包含联系方式;或高风险行业帐号的用户信息中包含联系方式;或用户名易与帐号使用状态、使用者身份产生混淆和误解。请在举报时简述原因,感谢你的支持。",url:"https://www.zhihu.com/question/19551824"},{id:8,text:"冒充我",subtitle:"请选择举报理由",reason:"oneself",disabled:!0,childIds:[10,11]},{id:9,reason:"impersonate",copywriter:{title:"举报说明",placeholder:"举报详细说明"},text:"冒充他人",disabled:!0},{id:10,reason:"oneself",disabled:!0,isRequired:!0,customComponent:D,childIds:[12]},{id:11,reason:"enterprise",disabled:!0,isRequired:!0,customComponent:D,childIds:[13]},{id:12,isRequired:!0,customComponent:G,text:"提交侵权举报",reason:"trespass",subtitle:"个人侵权"},{id:13,isRequired:!0,customComponent:G,text:"提交侵权举报",reason:"trespass",subtitle:"企业侵权"}],Y=[{id:0,text:"举报",childIds:[2,3,4,5,14,15,16,17,18,700]},{id:2,reason:"abuse",text:"骚扰/辱骂/歧视等不友善行为"},{id:3,reason:"illegality",text:"发过违反法律法规的内容"},{id:4,reason:"spam",text:"垃圾广告帐号"},{id:5,reason:"politics",text:"发过政治敏感内容"},{id:14,reason:"minor"},{id:15,reason:"porn"},{id:16,reason:"uncivilized_behavior"},{id:17,reason:"suicide",text:"疑似自杀或自残"},{id:18,reason:"superstition"},{id:700,reason:"old",text:"其他",copywriter:{title:"举报说明",placeholder:"举报详细说明"},disabled:!0}],ee=[{id:0,text:"举报",childIds:[1]},{id:1,reason:"profile"}],te=[{id:0,text:"举报",childIds:[19,30,18]},{id:19,reason:"politics"},{id:30,reason:"porn"},{id:18,reason:"illegality",copywriter:{title:"举报说明",placeholder:"举报详细说明"},disabled:!0},{id:51,disabled:!0,text:"涉未成年人不良信息",reason:"kids_harmful",copywriter:{title:"举报说明",placeholder:"举报详细说明"}}],ne=[{id:0,text:"举报",childIds:[1,30001,3,4,5,6,7]},{id:1,text:"垃圾广告信息",reason:"spam",copywriter:{title:"举报说明",placeholder:"举报详细说明",isRequired:!1},disabled:!0,des:"未经平台允许,知乎禁止使用帐号的任何功能,发布含有产品售卖信息、牟利性外链及违规推广等信息或引导用户至第三方平台进行交易。请在举报时简述理由,感谢你与我们共同维护社区的良好氛围。",url:"https://zhuanlan.zhihu.com/p/96916639"},{id:30001,reason:"abuse",copywriter:{title:"举报说明",placeholder:"举报详细说明",isRequired:!1},disabled:!0,des:"知乎鼓励友善的讨论。请在举报时提供对人产生辱骂、人身攻击或冒犯的相关内容段落或其他信息。感谢你与我们共同维护知乎的讨论氛围。",url:"https://www.zhihu.com/question/20239684"},{id:3,reason:"politics",text:"政治敏感"},{id:4,reason:"porn",text:"色情低俗"},{id:5,reason:"illegality",copywriter:{title:"举报说明",placeholder:"举报详细说明"},disabled:!0},{id:6,reason:"atmosphere",text:"破坏弹幕区友好氛围"},{id:7,reason:"irrelevant",text:"弹幕与视频无关"}],ae=[{id:0,text:"举报",childIds:[1,2,3,4]},{id:1,reason:"politics"},{id:2,reason:"porn"},{id:3,reason:"abuse",copywriter:{title:"举报说明",placeholder:"举报详细说明"},disabled:!0},{id:4,reason:"illegality",copywriter:{title:"举报说明",placeholder:"举报详细说明"},disabled:!0}],re=n(43),ie=n(66),ce=n(232),oe=n(79),se=n.n(oe),le=n(47),ue=n(90),de=function(e,t){if(!t)return e;var n=e.split("#"),a=Object(re.a)(n,2),r=a[0],i=a[1],c=r+(r.includes("?")?"&":"?")+t;return i?c+"#"+i:c},pe=function(e,t){var n=Object(le.isBrowser)()?se()(window.navigator.userAgent):{};return function(a){var r=e.href,i=e.onClick;if(i&&i(a),!a.defaultPrevented&&n.ZhihuHybrid){a.preventDefault();var c=/^\w+:\/\//.test(r)?r:location.origin+r;U.a.dispatch("base/openURL",{url:de(c,t)})}}},he=Object(h.forwardRef)((function(e,t){var n=e.params,r=Object(a.a)(e,["params"]);return Object(u.b)(ue.Link,Object.assign({ref:t},r,{onClick:pe(r,n)}))})),be=n(226),me=n(1383);function fe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Object(l.a)(e);if(t){var r=Object(l.a)(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(s.a)(this,n)}}var ve=function(e){Object(o.a)(n,e);var t=fe(n);function n(){var e;return Object(i.a)(this,n),(e=t.call(this)).handleClick=e.handleClick.bind(Object(ie.a)(e)),e}return Object(c.a)(n,[{key:"handleClick",value:function(){var e=this.props,t=e.id,n=e.reason,a=e.disabled,r=e.onSubMenuEnter,i=e.onItemSelect,c=e.copywriter;n&&void 0===(null==c?void 0:c.isRequired)&&!a?i(t):r(t)}},{key:"render",value:function(){var e=this.props,t=e.reason,n=e.text,a=e.disabled,r=e.isSelected,i=e.id,c=e.copywriter,o=n||be.b[t];return Boolean(t&&!c&&!a)?Object(u.c)("label",{className:"ReportMenu-item",htmlFor:t,children:[Object(u.b)("div",{className:"ReportMenu-itemValue needsclick",children:o}),Object(u.b)("input",{className:"ReportMenu-itemCheck",type:"radio",name:"report",value:i,id:t,checked:r,onChange:this.handleClick}),Object(u.b)(me.a,{size:18,className:"ReportMenu-itemCheckIcon",name:"checkRound"})]}):Object(u.c)("button",{className:"ReportMenu-item",onClick:this.handleClick,children:[Object(u.b)("span",{className:"ReportMenu-itemValue",children:o}),Object(u.b)(B.a,{size:18})]})}}]),n}(h.Component);ve.propTypes={id:p.a.number.isRequired,reason:p.a.string,text:p.a.string,disabled:p.a.bool,isSelected:p.a.bool,onSubMenuEnter:p.a.func.isRequired,onItemSelect:p.a.func.isRequired};var ye=n(135);function Oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Object(l.a)(e);if(t){var r=Object(l.a)(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(s.a)(this,n)}}var je=function(e){Object(o.a)(n,e);var t=Oe(n);function n(){return Object(i.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"render",value:function(){var e=this.props,t=e.copywriter.placeholder,n=e.onDetailInput,a=e.errorText,r=e.checkCustomReasonContent,i=e.isCustomReasonRequired;return Object(u.c)("div",{className:"ReportMenu-inner",children:[Object(u.b)(ye.a,{multiline:!0,grey:!0,rows:5,className:"ReportMenu-textarea",placeholder:"".concat(t,i?"(必填)":"(选填)"),onChange:function(e){return n(e.target.value)},onBlur:r}),Object(u.b)("div",{className:"ReportMenu-errorText",children:a})]})}}]),n}(h.Component);function ge(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Object(l.a)(e);if(t){var r=Object(l.a)(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(s.a)(this,n)}}je.propTypes={onDetailInput:p.a.func.isRequired,copywriter:p.a.object,errorText:p.a.string};var Ce=function(e){Object(o.a)(n,e);var t=ge(n);function n(){return Object(i.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"render",value:function(){var e=this.props,t=e.checked,n=e.onChange,a=e.name,r=e.text,i=e.desc,c=a||r;return Object(u.c)("div",{children:[Object(u.c)("label",{className:"ReportOption-check",htmlFor:c,children:[Object(u.b)("input",{type:"checkbox",name:c,checked:t,onChange:n}),Object(u.c)("span",{children:["同时",r]})]}),i&&Object(u.b)("div",{className:"ReportOption-desc",children:i})]})}}]),n}(h.Component),ke=function(e,t){var n=t&&t.maxLength;return e.length>(n||150)?{isLegal:!1,errorReason:n?"".concat(t.title||"举报说明","不能超过 ").concat(n," 字"):be.a.contentTooLong}:/[\u4e00-\u9fa5a-zA-Z0-9]/.test(e)?{isLegal:!0,errorReason:""}:{isLegal:!1,errorReason:be.a.contentIllegal}};function Re(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Object(l.a)(e);if(t){var r=Object(l.a)(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(s.a)(this,n)}}var we=function(e){Object(o.a)(n,e);var t=Re(n);function n(){var e;Object(i.a)(this,n);for(var a=arguments.length,r=new Array(a),c=0;c<a;c++)r[c]=arguments[c];return(e=t.call.apply(t,[this].concat(r))).state={blockChecked:!1,commentChecked:!1,activeId:0,parentId:null,selectedId:null,errorText:"",isMobile:!1,isSubmiting:!1,isSubmited:!1,path:[]},e.menuItems={},e.getChildIds=function(t){return"function"==typeof t?t(e.props):t},e.getReportText=function(t){if(!t)return"";var n=e.props.nodes[t];return n&&(n.text||be.b[n.reason])||""},e.getReportLevel=function(){return"第 ".concat(e.state.path.length+1," 级")},e.handleItemSelect=function(t){var n=e.selectedId===t?null:t;e.setState({selectedId:n});var a=e.props,r=a.zaEnabled,i=a.type;n&&r&&m.a.trackEvent(null,{action:"Select",element:"Menu",id:2883,name:e.getReportLevel()},{button:{text:e.getReportText(t)},report:{id:t,type:i}})},e.handleSubMenuEnter=function(t){e.setState((function(e){var n=e.activeId,a=e.path;return{activeId:t,parentId:n,selectedId:null,path:a.concat([t])}}));var n=e.props,a=n.zaEnabled,r=n.type;a&&m.a.trackEvent(null,{action:"Expand",element:"Menu",id:2883,name:e.getReportLevel()},{button:{text:e.getReportText(t)},report:{id:t,type:r}})},e.hasEffectOfDeleteComment=function(){var t=e.props.nodes,n=e.state,a=n.parentId,r=n.activeId,i=t[a||r];return Boolean(i&&i.effects)&&i.effects.includes("delete_comment")},e.handleDetailInput=function(t){e.setState({customReason:t,errorText:""})},e.handleBackClick=function(){var t=e.props.nodes,n=e.state,a=n.parentId,r=n.path,i=Object.keys(t).find((function(n){var r=e.getChildIds(t[n].childIds);return r&&r.includes(a)}));e.setState({activeId:a,parentId:i&&Number(i),selectedId:null,hasWarning:!1,customReason:"",errorText:"",path:r.slice(0,-1)});var c=e.props,o=c.zaEnabled,s=c.type;o&&m.a.trackEvent(null,{action:"Back",element:"Button",id:2884,name:e.getReportLevel()},{report:{id:e.state.activeId,type:s}})},e.handleSubmit=function(){var t=e.state,n=t.selectedId,a=t.customReason,r=t.activeId;if(e.isSubmitEnabled()&&e.checkCustomReasonContent()){var i=e.props,c=i.nodes,o=i.onSubmit,s=i.onDeleteComment,l=c[n||r],u=l.reason,d=l.id;e.setState({isSubmiting:!0});var p=o({reason:u,customReason:a});p&&p.then?p.then(e.submitEnd):e.submitEnd();var h=e.props,b=h.zaEnabled,f=h.type;if(b){var v=s&&e.hasEffectOfDeleteComment();m.a.trackEvent(null,{id:2885,name:e.getReportLevel(),action:"Click"},{report:{type:f},button:{text:e.getReportText(d)}}),m.a.trackEvent(Object(ie.a)(e),Object.assign({action:"Report",element:"Button"},v&&{id:3039,name:u}),Object.assign({report:{id:d,type:f}},v&&{button:{text:e.state.commentChecked?"举报并删除":"仅举报"}}))}}},e.submitEnd=function(t){e.setState({isSubmiting:!1,isSubmited:!0});var n=e.state,a=n.blockChecked,r=n.commentChecked,i=e.props,c=i.onBlockUser,o=i.onDeleteComment,s=i.onEnd;Promise.all([a&&c&&c(),r&&o&&o()].map((function(e){return Promise.resolve(e).catch((function(e){return e}))}))).then((function(e){var n=Object(re.a)(e,2),a=n[0],r=n[1];s&&s({result:t,blockUserResult:a,commentDeleteResult:r})}))},e.checkCustomReasonContent=function(){var t=e.state,n=t.activeId,a=t.customReason,r=e.props.nodes[n].copywriter;if(Boolean(r)&&a){var i=ke(a,r),c=i.isLegal,o=i.errorReason;if(!c)return e.setState({errorText:o}),!1}return!0},e}return Object(c.a)(n,[{key:"componentDidMount",value:function(){var e=this.props.type,t=se()(navigator.userAgent);this.setState({isMobile:t.Mobile}),m.a.trackCardShow(null,{id:2890},{button:{text:e}})}},{key:"componentWillUpdate",value:function(e,t){var n=this.state.activeId,a=t.activeId,r=this.props,i=r.nodes,c=r.onContentChange;if(a!==n){var o=i[a],s=o.reason,l=o.text,u=o.copywriter,d=o.subtitle,p=this.getChildIds(i[a].childIds);c(l||be.b[s],d||u&&u.title||(p?void 0:""))}}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.zaEnabled,n=e.type,a=this.state.isSubmited;t&&!a&&m.a.trackEvent(null,{id:4328,action:"Close",name:this.getReportLevel()},{report:{type:n}})}},{key:"isSubmitEnabled",value:function(){var e=this.state,t=e.selectedId,n=e.activeId,a=e.customReason;if(t)return!0;var r=this.props,i=r.nodes,c=r.type,o=i[n].copywriter;if(!o)return!1;var s=o.isRequired,l=void 0===s||s,u=Array.isArray(l)?l.includes(c):l;return Boolean(!u||a)}},{key:"render",value:function(){var e=this,t=this.props,n=t.nodes,a=t.options,r=t.type,i=t.talkerToken,c=t.isSubmiting,o=t.onDeleteComment,s=this.state,l=s.activeId,d=s.parentId,p=s.selectedId,h=s.errorText,b=s.isMobile,m=n[l],f=m.copywriter,v=void 0!==f&&f,y=m.customComponent,O=m.des,j=m.url,g=v.isRequired,C=void 0===g||g,k=this.getChildIds(m.childIds),R=k&&k.map((function(e){return n[e]})).filter(Boolean).filter((function(t){return!t.shouldShow||t.shouldShow(e.props)})),w=!0===C||Array.isArray(C)&&C.includes(r);if(void 0!==y)return Object(u.b)(y,Object.assign({onBackClick:this.handleBackClick,onItemSelect:this.handleItemSelect,onSubMenuEnter:this.handleSubMenuEnter},this.props,this.state,{activeNode:m,parentNode:n[d],childNodes:R}));var N=Boolean(k),P=Boolean(v),x=N&&Object(u.c)("div",{className:"ReportMenu-inner ReportMenu-options",children:[R.map((function(t){return Object(u.b)(ve,Object.assign({ref:function(n){e.menuItems[t.id]=n}},t,{isSelected:p===t.id,onSubMenuEnter:e.handleSubMenuEnter,onItemSelect:e.handleItemSelect,type:r}),t.id)}))," "]})||P&&Object(u.b)(je,{onDetailInput:this.handleDetailInput,type:r,copywriter:v,errorText:h,checkCustomReasonContent:this.checkCustomReasonContent,isCustomReasonRequired:w}),B=N&&i&&Object(u.b)(Ce,{checked:this.state.blockChecked,text:"将此人屏蔽",onChange:function(t){return e.setState({blockChecked:t.target.checked})}}),z=n[d||l],M=o&&this.hasEffectOfDeleteComment()&&Object(u.b)(Ce,{checked:this.state.commentChecked,desc:z&&"社区鼓励举报".concat(z.text,",同时可以直接删除该评论,删除操作并不影响对违规内容和违规用户的处理。"),onChange:function(t){return e.setState({commentChecked:t.target.checked})},text:"删除该评论"}),F=n[p||l].reason;return Object(u.c)("div",{className:T()("ReportMenu",{"ReportMenu-mobile":b}),children:[x,(B||M)&&Object(u.c)("div",{children:[B,M,a]}),Object(u.c)(I.a,{direction:"horizontal",children:["number"==typeof d&&Object(u.b)(S.c,{onClick:this.handleBackClick,children:" 返回 "}),(N||P)&&Object(u.b)(ce.a,{as:S.c,zaEventType:"Click",zaType:"Button",zaAction:"Report",zaText:F,className:"ReportMenu-button",disabled:c||!this.isSubmitEnabled(),onClick:this.handleSubmit,color:"blue",preset:"primary",children:"举报"})]}),O&&Object(u.c)("div",{className:"ReportMenu-des",children:[O,j&&Object(u.c)(u.a,{children:["点击",Object(u.b)(he,{className:"ReportMenu-deslink",href:j,children:"了解更多社区规范"}),"。"]})]})]})}}]),n}(h.Component);we.propTypes={nodes:p.a.object.isRequired,onContentChange:p.a.func.isRequired,onSubmit:p.a.func.isRequired,onEnd:p.a.func,onBlockUser:p.a.func,onDeleteComment:p.a.func,isColumnArticle:p.a.bool,isTipjarEnabled:p.a.bool};var Ne=we;function Ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Object(l.a)(e);if(t){var r=Object(l.a)(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(s.a)(this,n)}}var Se=function(e){Object(o.a)(n,e);var t=Ie(n);function n(){var e;Object(i.a)(this,n);for(var a=arguments.length,r=new Array(a),c=0;c<a;c++)r[c]=arguments[c];return(e=t.call.apply(t,[this].concat(r))).filterNodes=function(e,t,n){var a=e.filter((function(e){var a;return!(null==e||null===(a=e.typesExcluded)||void 0===a?void 0:a.includes(t))&&(!!e.isRequired||(!(!["infringement","repost","oneself","enterprise","fake"].includes(e.reason)&&0!==e.id)||("question"!==t||!["closed","suggested","evaluated"].includes(n)||![1,30001].includes(e.id))&&("member"!==t||!["ban","hang"].includes(n)||"profile"===e.reason)))}));return 1===a.length&&0===a[0].id&&(a=[]),a},e}return Object(c.a)(n,[{key:"render",value:function(){var e,t=this.props,n=t.type,i=t.status,c=Object(a.a)(t,["type","status"]);return e="message"===n?$:["member","club_mask"].includes(n)?X:["drama","drama_connect_member"].includes(n)?Y:"theater"===n?ee:"favlist"===n||"collection"===n?Q:"vip_comment"===n?te:"bullet"===n?ne:"live_plus"===n||"live_plus_speak"===n?ae:J.filter((function(e){return!e.types||e.types.includes(n)})),e=this.filterNodes(e,n,i),Object(u.b)(Ne,Object.assign({nodes:e.reduce((function(e,t){return Object.assign({},e,Object(r.a)({},t.id,t))}),{})},c,{type:n}))}}]),n}(h.Component);function Pe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Object(l.a)(e);if(t){var r=Object(l.a)(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(s.a)(this,n)}}Se.propTypes={type:p.a.string.isRequired};var xe=function(e){Object(o.a)(n,e);var t=Pe(n);function n(){var e;Object(i.a)(this,n);for(var a=arguments.length,r=new Array(a),c=0;c<a;c++)r[c]=arguments[c];return(e=t.call.apply(t,[this].concat(r))).state={title:void 0!==e.props.title?e.props.title:"举报",subtitle:void 0!==e.props.subtitle?e.props.subtitle:"请选择举报理由",stage:0,selectedId:void 0},e.handleSubmit=function(t){var n=t.reason,a=t.customReason,r=e.props,i=r.urlToken,c=r.type;return e.props.doReport("search_suggested_word"===c?e.state.selectedId:i,c,n,a)},e.handleContentChange=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"请选择举报理由";e.setState({title:t,subtitle:n})},e.handleClose=function(){var t=e.props,n=t.zaEnabled,a=t.type,r=t.onClose;n&&m.a.trackEvent(e.container,{action:"Ok"},{button:{text:"知道了"}}),"search_suggested_word"===a&&e.setState({stage:1,selectedId:void 0}),r()},e.handleChangeStage=function(){e.setState({stage:0})},e.handleClickSearchItem=function(t){e.setState({selectedId:t})},e}return Object(c.a)(n,[{key:"componentDidMount",value:function(){"search_suggested_word"===this.props.type&&this.setState({stage:1})}},{key:"componentDidUpdate",value:function(e){if(!e.shown&&this.props.shown&&this.container){var t=this.props,n=t.type,a=t.id;m.a.setModule(this.container,{module:"ReportDialog"},{card:Object.assign({card_type:"Content"},"search_suggested_word"!==n&&{content:Object(r.a)({type:y(n)},"comment"===n?"id":"token",String(a))})})}}},{key:"render",value:function(){var e=this,t=this.props,n=t.shown,r=t.onClose,i=t.List,c=Object(a.a)(t,["shown","onClose","List"]),o=this.state,s=o.title,l=o.subtitle,d=o.stage,p=o.selectedId,b=Object(v.a)(c,Object.keys(f.b.propTypes)),m=b.selectedProps,y=b.dropedProps;return Object(u.c)(h.Fragment,{children:[Object(u.b)(f.b,Object.assign({title:"举报",subtitle:"哪些联想词属于不适内容",onClose:this.handleClose,className:"ReportModal ReportModal-search-suggest"},m,{children:n&&1===d&&Object(u.b)(P,{List:i,selectedId:p,handleClickSearchItem:this.handleClickSearchItem,handleChangeStage:this.handleChangeStage})})),Object(u.b)(f.b,Object.assign({title:s,subtitle:l,onClose:this.handleClose,className:"ReportModal"},m,{children:n&&0===d&&Object(u.b)(Se,Object.assign({ref:function(t){e.container=t},onSubmit:this.handleSubmit,onEnd:r,onContentChange:this.handleContentChange},y,"search_suggested_word"===this.props.type&&{urlToken:p}))}))]})}}]),n}(h.Component);xe.propTypes={onClose:p.a.func.isRequired,type:p.a.oneOf(O.a).isRequired,shown:p.a.bool.isRequired,isColumnArticle:p.a.bool,isTipjarEnabled:p.a.bool,onBlockUser:p.a.func,onDeleteComment:p.a.func,doReport:p.a.func.isRequired,zaEnabled:p.a.bool,List:p.a.array},xe.defaultTypes={zaEnabled:!1}},2644:function(e,t,n){"use strict";n.r(t),n.d(t,"TipjarDialog",(function(){return J}));var a=n(14),r=n(15),i=n(16),c=n(17),o=n(9),s=n(2),l=n(1),u=n.n(l),d=n(3),p=n.n(d),h=n(11),b=n.n(h),m=n(31),f=n(73),v=n(546),y=n(178),O=n(798),j=n(131),g=Object.assign;var C=function(e){return u.a.createElement(j.a,g({width:"14",height:"16",viewBox:"0 0 18 18"},e),u.a.createElement("path",{fill:"#9FADC7",d:"M18 9h-5.5c-1.37 0-2.5 1.12-2.5 2.5 0 1.39 1.12 2.5 2.5 2.5H18v1.997A1.999 1.999 0 0116.005 18H1.995A1.997 1.997 0 010 15.997V7.003C0 5.897.893 5 1.995 5h14.01C17.107 5 18 5.894 18 7.003V9zM4 4c.872-.374 1.696-.735 2.472-1.083.678-.294 1.35-.588 2.01-.882.663-.294 1.18-.52 1.55-.682.567-.254 1.072-.37 1.516-.35.444.02.765.03 1.126.19.36.16.703.633.857.793L15 4H4zm8.5 9a1.5 1.5 0 11.001-3.001A1.5 1.5 0 0112.5 13z",fillRule:"evenodd"}))},k=Object.assign;var R=function(e){return u.a.createElement(j.a,k({width:"14",height:"16",viewBox:"0 0 18 18"},e),u.a.createElement("path",{fill:"#0C2",d:"M6.276 12.186a.6.6 0 01-.523-.31l-.04-.086-1.638-3.622a.301.301 0 01.452-.369L6.46 9.185a.887.887 0 00.8.092L16.35 5.2C14.722 3.265 12.038 2 9 2 4.03 2 0 5.383 0 9.556c0 2.277 1.212 4.326 3.11 5.712a.608.608 0 01.22.685l-.406 1.524c-.02.07-.048.146-.048.22a.3.3 0 00.3.303.335.335 0 00.173-.056l1.97-1.146a.888.888 0 01.742-.1c.92.266 1.91.414 2.938.414 4.97 0 9-3.383 9-7.556a6.573 6.573 0 00-1.025-3.5L6.612 12.08l-.066.04a.604.604 0 01-.27.064z",fillRule:"evenodd"}))},w=n(66);function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Object(o.a)(e);if(t){var r=Object(o.a)(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(c.a)(this,n)}}var I=8,S=9,P=13,x=48,T=57;function B(e,t){return e?t?!0===t?"":t:e:""}var z=function(e){Object(i.a)(n,e);var t=N(n);function n(e){var r;return Object(a.a)(this,n),(r=t.call(this,e)).onInputFocus=r.onInputFocus.bind(Object(w.a)(r)),r.onInputChange=r.onInputChange.bind(Object(w.a)(r)),r.onKeyDown=r.onKeyDown.bind(Object(w.a)(r)),r}return Object(r.a)(n,[{key:"onInputFocus",value:function(){this.props.onFocus()}},{key:"onInputChange",value:function(e){var t=String(e.target.value);if(t){t=t[t.length-1];var n=this.props.chars,a=this.props.length;n.length===a?n=n.replace(/.$/,t):n+=t,this.props.onChange(n),n.length===a&&this.props.onFinish(n)}}},{key:"onKeyDown",value:function(e){var t=e.keyCode;if(!e.metaKey&&!e.ctrlKey&&t!==S&&t!==P){var n=this.props.chars;t===I?(n=n.slice(0,-1),this.props.onChange(n)):(t<x||t>T)&&(e.preventDefault(),this.props.onError(e))}}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"render",value:function(){var e=this,t=this.props,n=t.length,a=t.chars,r=t.maskChar,i=t.autoFocus,c=t.className,o=t.children,l=a.length===n?n-1:a.length,u=a[l]||"";return Object(s.c)("label",{className:b()("TPass",c),children:[Object(s.c)("span",{className:"TPass-wrapper",children:[Object(s.b)(M,{length:n,chars:a,maskChar:r}),Object(s.b)("input",{className:"TPass-input",value:u,style:{left:60*l},onFocus:this.onInputFocus,onChange:this.onInputChange,onKeyDown:this.onKeyDown,onPaste:function(e){return e.preventDefault()},type:"number",min:"0",max:"9",pattern:"[0-9]*",autoFocus:i,ref:function(t){e.input=t}})]}),o]})}}]),n}(l.Component);function M(e){for(var t,n=e.length,a=e.chars,r=e.maskChar,i=[],c=0;c<n;c+=1)t=a[c],i.push(Object(s.b)("span",{className:b()("TPassBox",{"TPassBox-mask":t&&Boolean(r)}),children:B(t,r)},c));return Object(s.b)("span",{className:"TPassBoxes",children:i})}z.defaultProps={length:6,chars:"",maskChar:!1,autoFocus:!1,onFocus:function(){},onChange:function(){},onError:function(){},onFinish:function(){}},z.propTypes={length:p.a.number,chars:p.a.string,maskChar:p.a.oneOfType([p.a.bool,p.a.string]),autoFocus:p.a.bool,onFocus:p.a.func,onChange:p.a.func,onError:p.a.func,onFinish:p.a.func,className:p.a.string,children:p.a.node};var F=z;function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Object(o.a)(e);if(t){var r=Object(o.a)(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(c.a)(this,n)}}var E=function(e){Object(i.a)(n,e);var t=_(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(r.a)(n,[{key:"render",value:function(){var e=this.props;return Object(s.b)("div",{className:b()("Spinner",e),children:Object(s.b)("i",{className:"Spinner-loading"})})}}]),n}(l.Component);E.propTypes={className:p.a.string};var D=n(158);function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Object(o.a)(e);if(t){var r=Object(o.a)(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(c.a)(this,n)}}function q(){this.payments={},this.chosePaymentName=null,this.codeUrl="",this.qrLoaded=!1,this.need=null,this.passcode="",this.needSMS=!1,this.smsTimer=0,this.isInProgress=!1,this.error=null}var A=function(e){Object(i.a)(n,e);var t=L(n);function n(e){var r;return Object(a.a)(this,n),(r=t.call(this,e)).onPasscodeFocus=function(){r.state.error&&(r.setState({error:null}),6===r.state.passcode.length&&r.setState({passcode:""}))},r.onPasscodeInput=function(e){"object"==typeof e&&(e=e.target.value),r.setState({passcode:e})},r.onPasscodeFinish=function(e){r.tpass.blur(),r.payWithBalance(e)},r.onSendSMSCode=function(){r.props.trade.resendSMSCode((function(){r.startSMSTimer(),r.smsInput.focus()}),(function(e){r.setState({error:e})}))},r.onQrLoad=function(){r.setState({qrLoaded:!0})},r.onBalanceFormSubmit=function(e){e.preventDefault(),r.payWithBalance(r.state.passcode)},r.setPayments=function(e){r.setState({payments:e})},r.confirmPayment=function(){var e=r.state,t=e.choseName,n=e.payments,a=r.props.onConfirmPayment,i=t;if(t||(i=n.balance&&n.balance.enable?"balance":"wechat"),a(!i),r.setState({chosePaymentName:i}),"wechat"===i&&r.isInWechat){var c=r.props.tradeNumber,o="".concat(location.protocol,"//").concat(location.host).concat(location.pathname),s="".concat("https://www.zhihu.com/pay/weixin/pay?service_id=".concat(11)+"&trade_number=".concat(c,"&redirect_uri=").concat(encodeURIComponent(o)));window.location.replace(s)}else r.props.trade["wechat"===i?"initWechatPay":"initBalancePay"]()},r.pid=0,r.smsTimer=null,r.state=new q,r.isInWechat=e.ua.Wechat,r}return Object(r.a)(n,[{key:"componentWillMount",value:function(){var e=this.props.trade;this.getPaymentsList(e),this.initListeners(e)}},{key:"componentWillReceiveProps",value:function(e){var t=this;e.trade!==this.props.trade&&(this.setState(new q),setTimeout((function(){t.getPaymentsList(e.trade)}),300),this.initListeners(e.trade))}},{key:"componentWillUnmount",value:function(){window.clearInterval(this.smsTimer),this.props.trade.dispose()}},{key:"getPaymentsList",value:function(e){var t=this;if(e){var n=this.pid+=1;e.getPaymentsList((function(e){t.pid===n&&t.setPayments(e)}))}}},{key:"initListeners",value:function(e){var t=this;e&&e.on("payInited",(function(e,n){t.setState(Object.assign({},n))})).on("paySuccess",(function(){t.setState({isInProgress:!1,error:null}),t.props.onSuccess()})).on("payCancel",(function(){t.setState({isInProgress:!1,chosePaymentName:null})})).on("payFail",(function(e){var n=e;"object"!=typeof e||e instanceof Error||(n=e.message),t.setState({isInProgress:!1,error:n}),t.props.onFail(e)})).on("needSMS",(function(e){t.setState({isInProgress:!1,error:null,needSMS:e.message,passcode:""})})).on("needWechatCode",(function(){t.props.onError("needWechatCode")})).on("error",(function(e,n){t.props.onError(e,n)}))}},{key:"startSMSTimer",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:60;window.clearInterval(this.smsTimer),this.setState({smsTimer:t}),this.smsTimer=window.setInterval((function(){(t-=1)<=0?(window.clearInterval(e.smsTimer),e.smsTimer=null,e.setState({smsTimer:0})):e.setState({smsTimer:t})}),1e3)}},{key:"payWithBalance",value:function(e){return 6!==e.length?(this.setState({error:"请输入 6 位支付密码"}),!1):(this.setState({isInProgress:!0,error:null}),this.props.trade.payWithBalance(e))}},{key:"renderPaymentsList",value:function(){var e=this,t=this.state,n=t.payments,a=t.chosePaymentName,r=t.choseName,i=this.props.trade;if(a)return null;var c=n.balance&&n.balance.amount,o=i.info.total,l=n.wechat&&n.wechat.enable,u=this.props.balanceEnable,d=n.balance&&n.balance.enable,p=n.balance&&!n.balance.enable,h=u&&c>=o,b="使用余额(剩余 ".concat((c/100).toFixed(2),")"),f=h?b:"微信支付",v=h?"wallet":"wechatPayment";r&&(f="wechat"===r?"微信支付":b,v="wechat"===r?"wechatPayment":"wallet");var j=Object(s.c)(m.c,{css:{padding:0,border:"none"},children:["wechatPayment"===v?Object(s.b)(R,{center:!0}):Object(s.b)(C,{center:!0})," ",f,Object(s.b)(O.a,{center:!0})]});return Object(s.c)("div",{className:"PaymentsList",children:[Object(s.b)("span",{className:"Payment-Topline"}),Object(s.b)("span",{className:"PaymentWay",children:"支付方式"}),Object(s.b)(D.a,{placeholder:j,children:Object(s.c)(y.b,{plain:!0,className:"Payment-select",listClassName:"Payment-select-list",targetClassName:"Popover-targetContainer-verification",menuToggler:j,onChange:function(t){"disabled"!==t&&e.setState({choseName:t})},children:[u&&d&&Object(s.c)(y.a,{value:"balance",className:"PaymentItem",children:[Object(s.b)(C,{center:!0}),b]}),u&&p&&Object(s.c)(y.a,{value:"disabled",className:"PaymentItem PaymentItem--disabled",children:[Object(s.b)(C,{center:!0}),b]}),l&&Object(s.c)(y.a,{value:"wechat",className:"PaymentItem",children:[Object(s.b)(R,{center:!0}),"微信支付"]})]})}),Object(s.b)("span",{className:"Payment-Bottomline"}),Object(s.b)(m.c,{className:"Payment-CheckedButton",onClick:this.confirmPayment,children:"确认支付"})]})}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,a=t.trade,r=this.state,i=r.payments,c=r.chosePaymentName,o=r.codeUrl,l=r.needSMS,u=r.isInProgress;return a?Object(s.c)("div",{className:b()("Payment",n),children:[Object.keys(i).length?this.renderPaymentsList():Object(s.b)("div",{className:"Payment-placeholder",children:Object(s.b)(E,{})}),"wechat"===c&&Object(s.c)("div",{className:"Payment-wechatPay",children:[Object(s.c)("div",{className:"Payment-wechatPayTitle",children:[Object(s.b)("i",{className:"icon icon-ic_wechatpay PaymentIconWechat"}),"微信支付"]}),!this.isInWechat&&Object(s.b)("div",{children:"使用微信扫描二维码完成支付"}),this.state.qrLoaded?Object(s.b)("span",{className:"Payment-qrWrapper",children:Object(s.b)("img",{role:"presentation",src:"//www.zhihu.com/qrcode?url=".concat(o),width:"150",height:"150"})}):Object(s.c)("div",{className:"Payment-qrPlaceholder",children:[Object(s.b)(E,{}),!this.isInWechat&&Object(s.b)("div",{children:"正在生成二维码"}),o&&Object(s.b)("img",{role:"presentation",src:"//www.zhihu.com/qrcode?url=".concat(o),width:"1",height:"1",onLoad:this.onQrLoad})]})]}),"balance"===c&&Object(s.c)("form",{onSubmit:this.onBalanceFormSubmit,className:"Payment-balancePay",children:[Object(s.c)("div",{className:"Payment-balancePayTitle",children:[Object(s.b)("i",{className:"icon icon-wallet PaymentIconWallet"}),"余额支付"]}),!l&&Object(s.c)("div",{children:[Object(s.b)("div",{className:"Payment-description",children:"请输入 6 位数知乎支付密码,用于支付验证。"}),Object(s.b)(F,{chars:this.state.passcode,onFocus:this.onPasscodeFocus,onChange:this.onPasscodeInput,maskChar:!0,onFinish:this.onPasscodeFinish,className:b()("Payment-tpass",{"Payment-errorInput":this.state.error,"Payment-progressing":u}),autoFocus:!0,ref:function(t){e.tpass=t},children:u&&Object(s.b)(E,{className:"Payment-balancePaySpinner"})})]}),Boolean(l)&&Object(s.c)("div",{className:"Payment-balancePaySms",children:[Object(s.b)("div",{className:"Payment-balancePaySmsText",children:String(l)}),Object(s.b)("input",{onChange:this.onPasscodeInput,value:this.state.passcode,className:b()("Payment-sms","SimpleInput",{"Payment-errorInput":this.state.error}),type:"text",pattern:"\\d{6}",minLength:"6",maxLength:"6",title:"验证码应为 6 位数字",placeholder:"输入 6 位数验证码",required:!0,autoFocus:!0,ref:function(t){e.smsInput=t}}),this.state.smsTimer?Object(s.c)("button",{className:"Payment-sendSms",type:"button",disabled:!0,children:[this.state.smsTimer," 秒后可重发"]}):Object(s.b)("button",{onClick:this.onSendSMSCode,className:"Payment-sendSms",type:"button",children:"发送验证码"})]}),Object(s.c)("div",{className:"Payment-balancePayFooter",children:[Object(s.b)("p",{className:"Payment-errorTip",style:{visibility:this.state.error?"visible":"hidden"},children:this.state.error}),Boolean(l)&&Object(s.b)(m.c,{color:"blue",disabled:u,className:"Payment-balancePayConfirmBtn",type:"submit",children:"确认"})]}),!l&&Object(s.c)("div",{className:"Payment-balancePayForget",children:["如果忘记密码请邮件联系"," ",Object(s.b)("email",{className:"Payment-email",children:"i@zhihu.com"})]})]})]}):Object(s.b)("div",{className:b()("Payment",n),children:Object(s.b)("div",{className:"Payment-placeholder Payment-placehoder--empty",children:Object(s.b)(E,{})})})}}]),n}(l.Component);A.propTypes={trade:p.a.object,autoChooseSinglePayment:p.a.bool,onSuccess:p.a.func.isRequired,onFail:p.a.func,onError:p.a.func,onConfirmPayment:p.a.func,balanceEnable:p.a.bool},A.defaultProps={trade:null,onSuccess:function(){},onFail:function(){},onError:function(){},autoChooseSinglePayment:!0,className:"",balanceEnable:!0};var U=A,W=n(122),H="",K=null;var Z=n(24);function V(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Object(o.a)(e);if(t){var r=Object(o.a)(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(c.a)(this,n)}}var G=[200,500,1e3,5e3,1e4,2e4],J=function(e){Object(i.a)(n,e);var t=V(n);function n(e){var r;return Object(a.a)(this,n),(r=t.call(this,e)).onConfirmPayment=function(e){r.setState({chosePaymentName:e})},r.onPaySuccess=function(){r.props.onPaySuccess(),r.setState({chosePaymentName:!0,colseTijarDialogStatus:!0,trade:void 0,currentAmount:"",customButton:!1})},r.handleCustomAmount=function(){r.state.trade&&r.state.trade.dispose(),r.setState({showCustom:!0})},r.handleCustomChange=function(e){var t=e.target.value;isNaN(t)?r.setState({customAmount:""}):r.setState({customAmount:parseInt(t)||""})},r.handleCustomKeyUp=function(e){13===e.keyCode&&r.handleSubmitCustom()},r.handleSubmitCustom=function(){var e=100*r.state.customAmount;e>0&&e<=5e4&&(r.setState({customButton:!0,showCustom:!1,colseTijarDialogStatus:!1}),r.createTrade(e))},r.closeModal=function(){r.state.trade&&r.state.trade.dispose(),r.setState(r.getDefaultState())},r.handleAmountButton=function(e){r.createTrade(e.currentTarget.dataset.amount),r.setState({colseTijarDialogStatus:!1,customButton:!1,showCustom:!1})},r.createTrade=function(e){r.setState({tradeLoading:!0,currentAmount:e});var t=r.props.ua;r.props.addReward(e,t.Wechat?"wechat":"normal"),r.setState({tradeLoading:!1})},r.colseTijarDialog=function(){r.setState({chosePaymentName:!0,colseTijarDialogStatus:!0,trade:void 0,currentAmount:""}),r.props.colseTijarDialog()},r.state=r.getDefaultState(),r}return Object(r.a)(n,[{key:"componentDidMount",value:function(){this.showTip()}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.tradeNumber,n=e.type,a=this.state,r=a.trade,i=a.colseTijarDialogStatus,c="article"===n?11:17;if(t&&(!r||t!==r.tradeNo)&&!i){var o=new window.zhihu.pay.Trade(t,c);this.setState({trade:o})}}},{key:"componentWillUnmount",value:function(){this.props.TipjarRender&&this.props.removeTradeNumber()}},{key:"getDefaultState",value:function(){return{showCustom:!1,customAmount:"",currentAmount:"",showTipModal:!1,customButton:!1,chosePaymentName:!0,colseTijarDialogStatus:!1}}},{key:"showTip",value:function(){var e,t,n=this;e="https://pay.zhihu.com/api/js",t=function(){n.setState({showTipModal:!0})},H&&e&&e!==H&&t(new Error("A pay-sdk from different source has been load")),H=e,window.zhihu&&window.zhihu.pay?window.zhihu.pay.ready(t):(K||(K=Object(W.loadScript)(e)),K.then((function(){return window.zhihu.pay.ready(t)}),(function(e){t(e),K=null})))}},{key:"renderAmountCustom",value:function(){var e=this.state,t=e.showCustom,n=e.customAmount,a=e.currentAmount,r=e.customButton;return Object(s.b)("div",{className:"Reward-TipjarDialog-amountCustom",children:t?Object(s.c)("div",{className:"Reward-TipjarDialog-amountInput",children:[Object(s.b)("input",{name:"",type:"text",className:"SimpleInput",placeholder:"你想赞赏的金额(不超过 500)",value:n,onChange:this.handleCustomChange,onKeyUp:this.handleCustomKeyUp,ref:function(e){e&&e.focus()}}),Object(s.b)(m.c,{disabled:n<=0||n>500,color:"blue",preset:"primary",onClick:this.handleSubmitCustom,children:"确定"}),Object(s.b)("div",{className:"Reward-TipjarDialog-error",style:{display:n>500?"block":"none"},children:"不能超过 500 元"})]}):Object(s.b)(m.c,{preset:"plain",className:r?"TipjarDialog-customButton-cheked":"TipjarDialog-customButton",onClick:this.handleCustomAmount,children:r?"自定义金额: ¥ ".concat(a/100):"自定义金额"})})}},{key:"renderTipjarDialog",value:function(){var e=this,t=this.props,n=t.author,a=n.name,r=n.avatarUrl,i=n.isOrg,c=n.urlToken,o=n.id,l=t.tagline,u=this.state.currentAmount;return Object(s.c)("div",{className:"Reward-TipjarDialog",children:[Object(s.c)("div",{className:"Reward-TipjarDialog-user",children:[Object(s.b)("a",{href:"/".concat(i?"org":"people","/").concat(c||o),className:"Reward-UserAvatar",children:Object(s.b)("img",{src:r.replace("_is","_l"),className:"Reward-Avatar",alt:"当前用户"})}),a]}),Object(s.b)("div",{className:"Reward-TipjarDialog-tagLine",children:l}),Object(s.c)("div",{className:"Reward-TipjarDialog-selectAmount",children:[Object(s.b)("div",{className:"Reward-TipjarDialog-amountList",children:G.map((function(t){return Object(s.b)(m.c,{"data-amount":t,onClick:e.handleAmountButton,color:"red",className:b()({"Reward-Button-checked":Number(u)===t}),children:Object(s.b)("b",{children:Number(u)===t?"".concat(t/100," 元"):"¥ ".concat(t/100)})},t)}))}),this.renderAmountCustom()]})]})}},{key:"render",value:function(){var e=this.props,t=e.ua,n=e.TipjarRender,a=e.isMobile,r=e.tradeNumber,i=e.balanceEnable,c=this.state,o=c.showCustom,l=c.tradeLoading,u=c.showTipModal,d=c.trade,p=c.chosePaymentName,h=a?v.a:f.b,b=a?"small":"default";return Object(s.b)(h,{overlay:!0,size:b,onClose:this.colseTijarDialog,className:"Reward-TipjarDialogModal",children:n&&Object(s.c)("div",{children:[u&&p&&this.renderTipjarDialog(),(d||l)&&!o&&Object(s.b)(U,{trade:d,tradeNumber:r,ua:t,onSuccess:this.onPaySuccess,onConfirmPayment:this.onConfirmPayment,balanceEnable:i})]})})}}]),n}(l.Component);J.propTypes={author:p.a.object,tagline:p.a.string,colseTijarDialog:p.a.func,addReward:p.a.func,tradeNumber:p.a.number,removeTradeNumber:p.a.func,onPaySuccess:p.a.func,isMobile:p.a.bool,type:p.a.string,balanceEnable:p.a.bool},J.defaultProps={tagline:Z.p,balanceEnable:!0}},989:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));n(1);var a=n(11),r=n.n(a),i=n(5),c=function(e){var t=e.avatar,n=e.bottom,a=e.button,c=e.className,o=e.height,s=e.icon,l=e.inline,u=e.right,d=e.style,p=void 0===d?{}:d,h=e.title,b=e.width,m=Object.assign({},p);return b&&(m.width="".concat(b,"px")),o&&(m.height="".concat(o,"px")),n&&(m.marginBottom="".concat(n,"px")),u&&(m.marginRight="".concat(u,"px")),Object(i.g)("div",{className:r()("Holder",c,{"Holder--inline":l,"Holder--title":h,"Holder--icon":s,"Holder--button":a,"Holder--avatar":t}),style:m})}}}]);
|
||
//# sourceMappingURL=main.modals.7d92d12a1488c2081885.js.map
|