1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="bdc145f7-cf44-473a-95ce-4a00a853c5aa",e._sentryDebugIdIdentifier="sentry-dbid-bdc145f7-cf44-473a-95ce-4a00a853c5aa")}catch(e){}}();"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[552],{39475(e,t,n){n.d(t,{M:()=>f});var a=n(50330);var r=n(36382);var i=n(83570);var l=n(27533);var o=n(92242);var c=n(17670);var d=n(45660);var s=n(23171);var u=n(69228);var v=(0,c.A)({link:{"&:hover":{textDecoration:"none"}},button:{minWidth:160}});var m=function(e){var t=e.t,n=e.authorizedUser;var a=v();return l.createElement(u.g,{code:404,header:t("Page was not found")},!n&&l.createElement(s.N_,{to:"/",className:a.link},l.createElement(d.A,{color:"primary",variant:"contained",className:a.button},t("Log in"))))};m.propTypes={t:o.func.isRequired,authorizedUser:o.object};var p=(0,a.Zz)(i.Hq,(0,r.CI)());var f=p(m)},42470(e,t,n){n.d(t,{G3:()=>R,N$:()=>T,P6:()=>D,Sl:()=>d,Yd:()=>L,ei:()=>P,fw:()=>I,pO:()=>_,pT:()=>S});var a=n(83837);var r=n.n(a);var i=n(49635);var l=n(47183);var o=function(e){return r()(e.nftCollection,"collections",[])};var c=function(e){return r()(e.nftCollection,"collectionsMeta",[])};var d=function(e){return r()(e.nftCollection,"collection",null)};var s=(0,l.Mz)(o,c,function(e,t){return{collections:e,collectionsMeta:t}});var u=(0,l.Mz)(d,function(e){return{collection:e}});var v=function(e){return r()(e.collectionFiles,"files",[])};var m=function(e){return r()(e.collectionFiles,"order",[])};var p=function(e){return r()(e.collectionFiles,"hash",null)};var f=(0,l.Mz)(v,m,p,function(e,t,n){return{files:e,list:t,hash:n}});var g=function(e){return e.redeemCodes};var h=(0,l.Mz)(g,function(e){return{redeemCodes:e}});var x=function(e){return e.nftForm};var b=(0,l.Mz)(x,function(e){return{nftForm:e}});var y=function(e){return e.fileReferences};var C=(0,l.Mz)(y,function(e){return{fileReferences:e}});var N=function(e){return e.nftTokens.token.token};var E=(0,l.Mz)(N,function(e){return{nftToken:e}});var F=function(e){return e.nftTokens.token.redirectAfterLogin};var k=(0,l.Mz)(F,function(e){return{redirectAfterLogin:e}});var A=function(e){return e.nftTokens.token.updateCount};var w=(0,l.Mz)(A,function(e){return{updateCount:e}});var L=(0,i.Ng)(s);var D=(0,i.Ng)(u);var R=(0,i.Ng)(f);var T=(0,i.Ng)(h);var I=(0,i.Ng)(b);var S=(0,i.Ng)(C);var P=(0,i.Ng)(E);(0,i.Ng)(k);var _=(0,i.Ng)(w)},87518(e,t,n){n.r(t),n.d(t,{UpdateCollection:()=>ex,default:()=>eb});var a=n(42283);var r=n.n(a);var i=n(27533);var l=n(61767);var o=n(50330);var c=n(36382);var d=n(39475);var s=n(74122);var u=n.n(s);var v=n(51498);var m=n(92242);var p=n.n(m);var f=["history"];var g=function(e){var t=function(t){var n,a,r;var l=t.history,o=u()(t,f);var c=null==(n=o.authorizedUser)?void 0:n.id;var d=null==(a=o.collection)?void 0:a.attributes.externalLink;var s=null==(r=o.collection)?void 0:r.included[0].id;return c&&s===c?i.createElement(e,o):(l.push("/collection/"+d),null)};return t.propTypes={history:p().object,authorizedUser:p().object,collection:p().object},(0,v.y)(t)};let h=g;var x=n(83570);var b=n(70163);var y=n.n(b);var C=n(79876);var N=n.n(C);var E=n(74369);var F=n.n(E);var k=n(17153);var A=n(49635);var w=n(63516);var L=n(51725);var D=n(9243);var R=n(93691);var T=n(98236);var I=n(4614);var S=n(974);var P=n.n(S);var _=n(93086);var z=n(79832);var M=n(45660);var H=n(23171);var q=n(17514);var B=n(94844);var U=n(93429);var j=n(36006);var V=n(88933);var O=n(42896);var W=n(80284);var G=n(71298);var Z=n(17670);var K=(0,Z.A)(function(){return{textField:{"& textarea":{padding:"6px 0",lineHeight:"18px"},"& > label":{lineHeight:"39px"},"& > div":{marginTop:"39px"},marginBottom:8},imageField:{marginTop:20,"& textarea":{padding:"6px 0",lineHeight:"18px"},"& > label":{lineHeight:"39px"},"& > div":{marginTop:"39px"}},selectField:{"& > label":{lineHeight:"39px"}},textFieldHidden:{visibility:"hidden",position:"absolute",height:0,width:0,"& > label":{display:"none"}},selectLang:{display:"flex",justifyContent:"flex-end"},actions:{display:"flex",justifyContent:"flex-end",gap:"10px","@media screen and (max-width: 554px)":{flexDirection:"column"}}
1,btnActions:{display:"flex",justifyContent:"flex-end",gap:"10px",marginTop:45,"@media screen and (max-width: 554px)":{flexDirection:"column-reverse",gap:"20px",width:"100%",marginBottom:20}},btnActionsWrapper:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"flex-end","@media screen and (max-width: 554px)":{flexDirection:"column-reverse"}},gradientCheckbox:{marginTop:15},link:{"&:hover":{textDecoration:"none"}},btn:{width:140,"@media screen and (max-width: 554px)":{width:"100%"}}}});let Q=K;function Y(e){var t;var n=e.t,a=e.handleSubmit,r=e.submitting,l=e.invalid,o=e.submitFailed,c=e.handleCollectionRemove,d=e.collection,s=e.is3dPlatforma;var u=(0,i.useState)("en"),v=u[0],m=u[1];var p=Q();var f=null==d||null==(t=d.attributes)?void 0:t.public;return i.createElement("div",null,!s&&i.createElement("div",{className:p.selectLang},i.createElement(_.A,{select:!0,value:v,className:p.selectField,variant:"outlined",onChange:function(e){m(e.target.value)}},P()(G.eo).call(G.eo,function(e){return i.createElement(z.A,{key:e.lng,value:e.lng},e.text)}))),P()(G.eo).call(G.eo,function(e){var t=e.lng;return i.createElement(q.s,{name:"i18n."+t+".name",isRequired:v===t,type:"text",validate:"en"===t?W.y.nameValidator:[],placeholder:n("Name"),label:""+n("Name")+("en"===t?"*":""),className:v===t?p.textField:p.textFieldHidden})}),i.createElement(B.b,{name:"externalLink",isRequired:!0,type:"text",validate:W.y.collectionURLValidator,placeholder:n("Collection URL"),label:n("Collection URL")+"*",className:p.textField}),P()(G.eo).call(G.eo,function(t){var a=t.lng;return i.createElement(i.Fragment,null,i.createElement(q.s,{name:"i18n."+a+".shortDescription",isRequired:!0,type:"text",validate:"en"===a?W.y.shortDescriptionValidator:[],placeholder:n("Short description"),label:""+n("Short description")+("en"===a?"*":""),className:v===a?p.textField:p.textFieldHidden}),i.createElement(V.x,{name:"i18n."+a+".description",isRequired:!0,label:""+n("Long description")+("en"===a?"*":""),placeholder:n("Long description"),validate:"en"===a?W.y.longDescriptionValidator:[],className:v===a?p.textField:p.textFieldHidden,change:e.change}))}),i.createElement(O.y,{name:"sellerFeeBasisPoints",label:n("Seller fee")+" (%)*",validate:W.y.sellerFeeValidator,placeholder:n("Seller fee")+" (%)",className:p.textField}),i.createElement(q.s,{name:"feeRecipient",isRequired:!0,type:"text",validate:W.y.feeRecipientValidator,placeholder:n("Fee recipient (ETH wallet)"),label:n("Fee recipient (ETH wallet)*"),className:p.textField}),i.createElement(U.s,{width:512,height:512,previewWidth:200,name:"image",label:n("Image")+"*",validate:W.y.validatePreviewImage,className:p.imageField}),i.createElement(U.s,{width:750,height:672,previewWidth:300,name:"smallCoverImage",label:n("Cover image")+"*",validate:W.y.validatePreviewImage,className:p.imageField}),i.createElement(U.s,{width:2880,height:1602,previewWidth:490,name:"coverImage",label:n("Cover image")+"*",validate:W.y.validatePreviewImage,className:p.imageField}),i.createElement("div",{className:p.gradientCheckbox},i.createElement(j.A,{name:"coverGradient",label:n("Add gradient")})),i.createElement("div",{className:p.btnActionsWrapper},f?i.createElement("div",null):i.createElement(M.A,{variant:"outlined",className:p.btn,onClick:function(){c()}},n("Delete")),i.createElement("div",{className:p.btnActions},i.createElement(H.N_,{to:"/collection/"+(null==d?void 0:d.attributes.externalLink),className:p.link},i.createElement(M.A,{variant:"outlined",className:p.btn},n("Cancel"))),i.createElement(M.A,{variant:"contained",color:"primary",className:p.btn,onClick:a,disabled:r||l&&o},n("Save")))))}Y.propTypes={submitting:m.bool,invalid:m.bool,submitFailed:m.bool,handleSubmit:m.func.isRequired,t:m.func.isRequired,change:m.func.isRequired,handleCollectionRemove:m.func.isRequired,collection:m.object.isRequired,is3dPlatforma:m.bool};var $=n(39691);var J=n(63080);var X=n(89098);var ee=n(42470);var et=n(99733);var en=n(9696);var ea=n(693);var er="link already exists";var ei=["i18n.en.name","externalLink","i18n.en.shortDescription","i18n.en.description","sellerFeeBasisPoints","feeRecipient","image","smallCoverImage","coverImage"];var el="createCollection";var eo=(0,L.A)(el);var ec=function(e){return function(){var t;return e.close(),e.openModal({modalType:"progress",modalProps:{close:e.close,cancel:function(){return e.update({error:e.t("Interrupted!")})},retry:function(){return ec(e)()},text:e.t('Deleting collection: "{{ name }}"...',{name:(null==e||null==(t=e.collection)||null==(t=t.attributes)||null==(t=t.i18n)?void 0:t.en.name)||"Collection"})}}),e.deleteCollection({id:e.collection.id,http:e.http}).then(function(t){if(t.error)throw Error((0,en.A)(t));return e.close(),e.pushState((e.is3dPlatforma?"/":"/u/")+e.collection.included[0].attributes.alias+"?modelType=nft"),t}).catch(function(t){var n;var a=null==(n=t.response)||null==(n=n.data)?void 0:n.code;
1return"E_NOT_EMPTY"===a?e.update({error:e.t("Unable to delete collection (not empty)")}):"E_PUBLISHED"===a?e.update({error:e.t("Unable to delete collection (should not be published)")}):e.update({error:e.t("Can not delete collection")})})}};var ed=(0,D.A)({form:"createRedeemCode",enableReinitialize:!0,onSubmit:function(e,t,n){var a=n.is3dPlatforma?{en:{name:N()(n).i18n.en.name,description:N()(n).i18n.en.description,shortDescription:N()(n).i18n.en.shortDescription},ru:{name:N()(n).i18n.en.name,description:N()(n).i18n.en.description,shortDescription:N()(n).i18n.en.shortDescription}}:N()(n).i18n;return t(X.A.update({id:n.collection.id,i18n:a,externalLink:N()(n).externalLink,coverImage:N()(n).coverImage,image:N()(n).image,smallCoverImage:N()(n).smallCoverImage,sellerFeeBasisPoints:N()(n).sellerFeeBasisPoints,coverGradient:N()(n).coverGradient},n.http,n.authorizedUser.id)).catch(function(e){(0,I.A)(e)})},onSubmitSuccess:function(e,t,n){t((0,$.Te)(n.t("Collection updated")));var a=e.payload.data.data.attributes.externalLink;n.history.push({pathname:"/collection/"+a})},onSubmitFail:function(e,t,n,a){var r=a.t;var i=n&&(0,en.A)(n);var l=null;i===er?(l="externalLink",t((0,$.Qg)(r("NFT Collection external link already exists")))):e&&(l=F()(ei).call(ei,function(t){var n=t.split(".");return(0,ea.A)(n,e)}),t((0,$.Qg)(r("Can not update collection"))));var o=document.getElementById(l);o&&k.Nk.scrollMore(o.getBoundingClientRect().top-110)}});var es=(0,o.Zz)(x.Hq,(0,c.CI)(),J.N,w.A,v.y,ee.P6,(0,A.Ng)(function(e){var t,n;return{initialValues:y()({},null==e||null==(t=e.nftCollection)||null==(t=t.collection)?void 0:t.attributes,{sellerFeeBasisPoints:String(Number((null==e||null==(n=e.nftCollection)||null==(n=n.collection)?void 0:n.attributes.sellerFeeBasisPoints)||0)/100)})}},{openModal:et.ho,getCollection:X.A.get,close:et.VN,update:et.yo,deleteCollection:X.A.delete,pushState:T.VC}),(0,o.n7)({handleCollectionRemove:function(e){return function(){return e.openModal({modalType:"confirm",modalProps:{title:e.t("Delete collection"),message:e.t("Are you sure you want to delete collection?"),confirmationLabel:e.t("Delete"),rejectLabel:e.t("Cancel"),handleConfirm:ec(e)}})}}}),ed,(0,A.Ng)(function(e){return eo(e,null,{change:R.Zg})}));var eu=es(Y);let ev=eu;var em=(0,Z.A)(function(e){var t;return{root:((t={paddingLeft:70,paddingRight:70,paddingTop:60,paddingBottom:50})[e.breakpoints.down("lg")]={padding:"27px 10px 50px"},t[e.breakpoints.down("md")]={padding:"50px 10px 50px"},t[e.breakpoints.down("sm")]={padding:"60px 10px 50px"},t),inner:{backgroundColor:"#fff",height:"100%",padding:"30px 30px 40px","@media screen and (max-width: 950px)":{padding:"30px 20px 40px"}}}});let ep=em;function ef(e){var t;var n=ep();var a=null==e||null==(t=e.match)||null==(t=t.params)?void 0:t.id;return i.createElement("div",{className:n.root},i.createElement("div",{className:n.inner},i.createElement(ev,{collectionId:a})))}ef.propTypes={match:m.object.isRequired};var eg=(0,l.ji)([{promise:function(e){var t;var n=e.store,a=e.match.params,i=e.helpers.http;var l=a.id;var o=null==(t=(0,ee.Sl)(n.getState()))||null==(t=t.attributes)?void 0:t.externalLink;if(o===l){var c=n.getState().nftCollection.collection;return r().resolve(c)}return n.dispatch(X.A.get(l,i))}}]);var eh=(0,o.Zz)(eg,(0,c.CI)(),ee.P6,x.Hq,(0,o.tk)(function(e){return e.getError||!e.collection},(0,o.Cc)(function(){return i.createElement(d.M,null)})),h);var ex=eh(ef);let eb=ex}}]);
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.