1"use strict";(self.webpackChunkplayform_front_2_0=self.webpackChunkplayform_front_2_0||[]).push([[7666],{39236:(e,l,t)=>{t.d(l,{C:()=>m,v:()=>d});t(72791);var a=t(63733),s=t(20890),i=t(85797),n=t(75595),o=t(80184);const r="absolute right-0 top-0 block z-1 p-1",c="absolute bottom-0 left-0 z-1 block w-full px-3 py-0.5 text-center bg-secondary text-black",d=e=>{var l,t,c;let{className:d,userImage:m}=e;return(null!==(l=null===m||void 0===m||null===(t=m.adjustData)||void 0===t||null===(c=t.output)||void 0===c?void 0:c.is_published)&&void 0!==l?l:null===m||void 0===m?void 0:m.is_published)?(0,o.jsx)(n.Z,{className:(0,a.Z)(r,d),title:(0,o.jsx)(s.Z,{variant:"caption",children:"This image has been published as an NFT "}),placement:"bottom-start",children:(0,o.jsx)("span",{children:(0,o.jsx)(i.Z,{className:"block",color:"secondary"})})}):null},m=e=>{const{enhanced:l}=e;return l?(0,o.jsx)("span",{className:c,children:(0,o.jsx)(s.Z,{variant:"body2",children:"ENHANCED"})}):null}},83597:(e,l,t)=>{t.d(l,{Z:()=>o});var a=t(72791),s=t(99259),i=t(80184);const n=(e,l)=>{const{className:t,...a}=e;return(0,i.jsxs)(s.Z,{className:t,ref:l,...a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,i.jsx)("path",{d:"M12.1378 2L6 12.1854L12.1378 9.39567V2Z",fill:"#8A92B2"}),(0,i.jsx)("path",{d:"M12.1378 9.39563L6 12.1853L12.1378 15.8144V9.39563Z",fill:"#62688F"}),(0,i.jsx)("path",{d:"M18.2769 12.1854L12.1379 2V9.39567L18.2769 12.1854Z",fill:"#62688F"}),(0,i.jsx)("path",{d:"M12.1379 15.8144L18.2769 12.1853L12.1379 9.39563V15.8144Z",fill:"#454A75"}),(0,i.jsx)("path",{d:"M6 13.3499L12.1378 22V16.9767L6 13.3499Z",fill:"#8A92B2"}),(0,i.jsx)("path",{d:"M12.1379 16.9767V22L18.2802 13.3499L12.1379 16.9767Z",fill:"#62688F"})]})},o=(0,a.forwardRef)(n)},5740:(e,l,t)=>{t.d(l,{Z:()=>o});var a=t(72791),s=t(99259),i=t(80184);const n=(e,l)=>{const{className:t,fill:a="#696969",...n}=e;return(0,i.jsx)(s.Z,{className:t,ref:l,...n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)("path",{d:"M16.2864 9.33927C15.9817 9.15134 15.5901 9.15134 15.242 9.33927L12.8051 10.8897L11.1515 11.8764L8.75807 13.4268C8.45346 13.6147 8.06181 13.6147 7.71368 13.4268L5.84249 12.2052C5.53788 12.0173 5.3203 11.6414 5.3203 11.2186V8.86944C5.3203 8.49357 5.49436 8.1177 5.84249 7.88279L7.71368 6.70821C8.0183 6.52028 8.40994 6.52028 8.75807 6.70821L10.6293 7.92977C10.9339 8.1177 11.1515 8.49357 11.1515 8.91642V10.4669L12.8051 9.43323V7.83581C12.8051 7.45994 12.631 7.08408 12.2829 6.84916L8.80159 4.64095C8.49697 4.45302 8.10533 4.45302 7.7572 4.64095L4.18888 6.89614C3.84075 7.08407 3.66669 7.45994 3.66669 7.83581V12.2522C3.66669 12.6281 3.84075 13.004 4.18888 13.2389L7.71368 15.4471C8.0183 15.635 8.40994 15.635 8.75807 15.4471L11.1515 13.9436L12.8051 12.91L15.1985 11.4065C15.5031 11.2186 15.8947 11.2186 16.2428 11.4065L18.114 12.5811C18.4186 12.769 18.6362 13.1449 18.6362 13.5678V15.9169C18.6362 16.2928 18.4622 16.6686 18.114 16.9036L16.2864 18.0781C15.9817 18.2661 15.5901 18.2661 15.242 18.0781L13.3708 16.9036C13.0662 16.7156 12.8486 16.3398 12.8486 15.9169V14.4135L11.195 15.4471V16.9975C11.195 17.3734 11.369 17.7493 11.7172 17.9842L15.242 20.1924C15.5466 20.3803 15.9382 20.3803 16.2864 20.1924L19.8112 17.9842C20.1158 17.7962 20.3334 17.4204 20.3334 16.9975V12.5341C20.3334 12.1583 20.1593 11.7824 19.8112 11.5475L16.2864 9.33927Z",fill:a})})},o=(0,a.forwardRef)(n)},41904:(e,l,t)=>{t.d(l,{Z:()=>n});var a=t(72791),s=t(82741),i=t(80184);const n=(0,a.forwardRef)((function(e,l){const{autofix:t,blocks:a,definitions:n,eager:o,format:r,lazy:c,mask:d,max:m,min:u,overwrite:h,pattern:p,placeholderChar:x,scale:g,signed:v,className:j,onChange:f,placeholder:N,...b}=e;return(0,i.jsx)(s.oc,{...b,autofix:"pad",blocks:a,definitions:n,format:r,inputRef:l,lazy:c,mask:d||Number,min:u,max:m,pattern:p,placeholderChar:x||"_",onAccept:f?(l,t)=>{const a={target:{name:e.name||"",value:l}};null===f||void 0===f||f(a)}:void 0,overwrite:h,radix:".",scale:g,signed:v,eager:o,className:j,placeholder:N})}))},84940:(e,l,t)=>{t.d(l,{Z:()=>p});t(72791);var a=t(63733),s=t(92511),i=t(20890),n=t(95080);const o="Stepper_StepperItem__RMVAt",r="Stepper_StepperItemActive__lq9R1",c="Stepper_StepperNumber__nFhC5",d="Stepper_StepperContent__wJ1+p",m="Stepper_StepperSingleView__eNUiK";var u=t(80184);const h=e=>
1{let{component:l="div",item:t,index:a}=e;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(l,{className:c,children:(0,u.jsx)(i.Z,{variant:"overline",component:l,children:a+1})}),(0,u.jsx)(l,{className:d,children:(0,u.jsx)(i.Z,{variant:"overline",component:l,children:t.title})})]})},p=e=>{const{activeIndex:l,className:t,classes:i,data:c,singleView:d}=e;return(0,u.jsx)("div",{className:(0,s.m6)("flex select-none",d&&m,t,null===i||void 0===i?void 0:i.root),children:c.map(((e,t)=>(0,u.jsx)("div",{className:(0,a.Z)(o,null===i||void 0===i?void 0:i.step,l===t?r:void 0,l===t?null===i||void 0===i?void 0:i.stepActive:void 0),children:e.onClick?(0,u.jsx)(n.Z,{onClick:e.onClick,children:(0,u.jsx)(h,{item:e,index:t,component:"span"})}):(0,u.jsx)(h,{item:e,index:t})},e.title)))})}},29332:(e,l,t)=>{t.d(l,{Z:()=>r});var a=t(72791),s=t(18931),i=t(41904),n=t(80184);const o=function(e,l){const{autofix:t,blocks:a,definitions:o,eager:r,format:c,lazy:d,mask:m,max:u,min:h,overwrite:p,pattern:x,placeholderChar:g,scale:v,signed:j,inputProps:f,InputProps:N,color:b,error:C,fullWidth:S,helperText:w,className:Z,label:T,placeholder:_,onBlur:y,onChange:E,onFocus:L,value:F="",variant:I,disabled:A}=e,k=!f&&(t||a||o||r||c||d||m||u||h||p||x||g||v||j)||f?{...f,autofix:t,blocks:a,definitions:o,eager:r,format:c,lazy:d,mask:m,max:u,min:h,overwrite:p,pattern:x,placeholderChar:g,scale:v,signed:j}:void 0;return(0,n.jsx)(s.Z,{ref:l,color:b,className:Z,fullWidth:S,label:T,value:F,disabled:A,onBlur:y,onChange:E,onFocus:L,error:C,helperText:w,inputProps:k,InputProps:{...N,inputComponent:i.Z},placeholder:_,variant:I})},r=(0,a.forwardRef)(o)},3271:(e,l,t)=>{t.r(l),t.d(l,{default:()=>Ge});var a=t(72791),s=t(63733),i=t(78687),n=t(87781),o=t(29818),r=t(29823),c=t(31009),d=t(68537),m=t(46213),u=t(43539),h=t(84940),p=t(88623),x=t(20890),g=t(95857),v=t(75595),j=t(18931),f=t(29332);const N="NFTSellForm_Container__tFjmO",b="NFTSellForm_DialogFormSellNft__HByeM",C="NFTSellForm_NFTSellFormHeadTop__6H76a",S="NFTSellForm_EmptyCollectionView__fdTta",w="NFTSellForm_FormWrapper__NSoqh",Z="NFTSellForm_FormfFreeformCurationWrapper__YeFMk",T="NFTSellForm_ContainerImagesList__qB+Pi",_="NFTSellForm_ButtonImagesListAction__HbMkB",y="NFTSellForm_CardCurateInfo__6hls-",E="NFTSellForm_HelperText__OK029",L="NFTSellForm_TextareaInput__rYEfs",F="NFTSellForm_ButtonDialogCloseWrapper__a7iwD",I="NFTSellForm_ButtonWalletRemove__LOUVy",A="NFTSellForm_NFTSellFormContent__Per8V";var k=t(80184);const D=(0,a.forwardRef)(((e,l)=>{var t;const{className:i,color:n,error:o,helperText:r,type:c,label:d,value:m,variant:u,InputProps:h,disabled:p,onBlur:x,onChange:g,onFocus:v}=e,[f,N]=(0,a.useState)("undefined"!==typeof m&&""!==m);return(0,k.jsx)(j.Z,{ref:l,type:c,color:n,variant:u,className:i,label:d,value:m,onBlur:e=>{null===x||void 0===x||x(e),N(!1)},onChange:g,onFocus:e=>{null===v||void 0===v||v(e),N(!0)},error:o,helperText:r,minRows:f||m?8:void 0,maxRows:8,multiline:!0,disabled:p,fullWidth:!0,InputProps:{...h,classes:{...null===h||void 0===h?void 0:h.classes,input:(0,s.Z)(L,null===h||void 0===h||null===(t=h.classes)||void 0===t?void 0:t.input)}}})})),O=(0,a.forwardRef)(((e,l)=>{const{className:t,error:a,helperText:s,label:i,multiline:n,InputProps:o,type:r,value:c,disabled:d,onBlur:m,onChange:u,onFocus:h}=e;return n?(0,k.jsx)(D,{ref:l,type:r,color:"secondary-alt",variant:"filled",className:t,label:i,value:c,onBlur:m,onChange:u,onFocus:h,error:a,helperText:s,fullWidth:!0,InputProps:o,disabled:d}):"number"===r?(0,k.jsx)(f.Z,{ref:l,color:"secondary-alt",variant:"filled",className:t,label:i,value:c,onBlur:m,onChange:u,InputProps:o,onFocus:h,error:a,helperText:s,min:0,scale:999999999,fullWidth:!0,disabled:d}):(0,k.jsx)(j.Z,{ref:l,type:r,color:"secondary-alt",variant:"filled",className:t,label:i,value:c,onBlur:m,onChange:u,InputProps:o,onFocus:h,error:a,helperText:s,fullWidth:!0,disabled:d})})),M=e=>{const{onChange:l,className:t,error:s,helperText:i,label:n,multiline:o,disabled:r,InputProps:c,tooltipData:d,type:m,value:u}=e,[h,p]=(0,a.useState)(!1);return d?(0,k.jsx)("div",{className:t,children:(0,k.jsx)(v.Z,{open:h,classes:null===d||void 0===d?void 0:d.classes,className:null===d||void 0===d?void 0:d.className,title:null===d||void 0===d?void 0:d.title,placement:"bottom-start",children:(0,k.jsx)(O,{type:m,color:"secondary-alt",variant:"filled",label:(0,k.jsxs)("span",{className:"flex items-center",children:[(0,k.jsx)("span",{children:n})," ",(0,k.jsx)(g.Z,{className:"pointer-events-auto ml-1 text-base"})]}),value:u,onBlur:()=>{p(!1)},onChange:l,onFocus:()=>{p(!0)},disabled:r,InputProps:c,error:s,helperText:i,multiline:o})})}):null}
1,R=(0,i.$j)(null,(e=>(0,n.DE)({updateFormData:d.Nw.updateFormData,updateFormError:d.Nw.updateFormError},e)))((e=>{const{updateFormError:l,updateFormData:t,hide:a,className:s,type:n,label:o,tooltipData:r,formDataType:c,multiline:m,InputProps:u}=e,h=(0,i.v9)((e=>d.wl.formData(e)[c])),p=(0,i.v9)((e=>d.wl.formErrors(e)[c])),x=(0,i.v9)((e=>d.wl.isResubmitForm(e)));return a?null:r?(0,k.jsx)(M,{tooltipData:r,InputProps:u,label:o,type:n,className:s,value:"".concat(null!==h&&void 0!==h?h:""),onChange:e=>{t({[c]:e.target.value}),l({[c]:void 0})},disabled:x,error:Boolean(p),helperText:p,multiline:m}):(0,k.jsx)(O,{type:n,InputProps:u,color:"secondary-alt",variant:"filled",className:s,label:o,value:"".concat(null!==h&&void 0!==h?h:""),onChange:e=>{t({[c]:e.target.value}),l({[c]:void 0})},disabled:x,error:Boolean(p),helperText:p,multiline:m})}));var B=t(42582),P=t.n(B),W=t(42419),G=t(92511),V=t(63466);const U="TextFieldNftWallet_TextFieldWrapper__Kfss2",z="TextFieldNftWallet_TextFieldWrapperFocus__xVTwR",H="TextFieldNftWallet_TextFieldWrapperError__LblIb",q="TextFieldNftWallet_Input__pWiT2",X="TextFieldNftWallet_LabelWrapper__OCnPi",Y="TextFieldNftWallet_LabelWrapperFocus__H82j-",$="TextFieldNftWallet_TextFieldSecondaryInput__lJ2VH",K="TextFieldNftWallet_TextFieldSecondaryInputFocus__vxg89",J="TextFieldNftWallet_TextFieldSecondaryAdornmentEnd__abuGA",Q="TextFieldNftWallet_TextFieldSecondaryAdornmentEndFocus__WJA5G",ee=e=>{const{className:l,error:t,hideInputPercentage:i,label:n,disabled:o,value:r,onChangePercent:c,onChange:d}=e,[m,u]=(0,a.useState)(!1),h=r.address||m;return(0,k.jsxs)("div",{className:(0,G.m6)("relative flex w-full",U,h&&z,t&&H,l),children:[(0,k.jsx)(j.Z,{className:"w-1/100 min-w-0 flex-auto",color:"secondary-alt",variant:"filled",value:r.address,disabled:o,error:t,onChange:d,InputProps:{className:q},inputProps:{autoComplete:"off"},onFocus:()=>{u(!0)},onBlur:()=>{u(!1)},fullWidth:!0}),i?null:(0,k.jsx)(j.Z,{className:"w-20",color:"secondary-alt",variant:"filled",type:"number",value:r.initial_sale_fee_in_bp,error:t,disabled:o,onChange:c,InputProps:{className:q,classes:{input:(0,G.m6)("py-4 text-right",$,h&&K)},endAdornment:(0,k.jsx)(V.Z,{className:(0,G.m6)(J,h&&Q),position:"end",children:"%"})},inputProps:{autoComplete:"off"},onFocus:()=>{u(!0)},onBlur:()=>{u(!1)},fullWidth:!0}),(0,k.jsx)("div",{className:(0,s.Z)("pointer-events-none absolute left-0 top-0 z-1 truncate text-base font-normal",X,h&&Y),children:n})]})};var le=t(98585);const te=(0,i.$j)(null,(e=>(0,n.DE)({updateFormData:d.Nw.updateFormData},e)))((e=>{const{updateFormData:l}=e,t=(0,i.v9)((e=>d.wl.formData(e).royalties)),n=(0,i.v9)((e=>d.wl.formErrors(e).royalties)),o=t.length,c=(0,i.v9)((e=>d.wl.isResubmitForm(e))),m=(0,a.useMemo)((()=>t.map((e=>({...e,initial_sale_fee_in_bp:e.initial_sale_fee_in_bp*d.eZ})))),[t]);return c?null:(0,k.jsxs)("div",{className:(0,s.Z)("mb-11",le.Z.BorderBottomOnSurface),children:[(0,k.jsx)(x.Z,{variant:"h6",className:"mb-7",children:"Payment Details"}),m.map(((e,a)=>(0,k.jsxs)("div",{className:"mb-4 flex",children:[(0,k.jsx)(ee,{label:"Wallet Address ".concat(a+1),value:e,hideInputPercentage:o<=1,error:Boolean(n),onChange:e=>{const s=[...t];s[a]={...s[a],address:e.target.value},l({royalties:s})},onChangePercent:e=>{const s=[...t];s[a]={...s[a],initial_sale_fee_in_bp:P()(e.target.value)/d.eZ},l({royalties:s})},disabled:c}),o>1?(0,k.jsx)("div",{className:I,children:(0,k.jsx)(u.Z,{disabled:c,className:"h-full",onClick:()=>{const e=[...t];e.splice(a,1),l({royalties:d.cQ.adjustAfterRemoveRoyalty(e)})},color:"error",iconSquare:!0,icon:!0,children:(0,k.jsx)(r.Z,{})})}):null]},a))),(0,k.jsxs)("div",{className:"mb-2",children:[o<5?(0,k.jsxs)("div",{className:"flex items-center",children:[(0,k.jsx)("div",{children:(0,k.jsx)(u.Z,{disabled:c,color:"secondary",startIcon:(0,k.jsx)(W.Z,{}),onClick:()=>{l({royalties:d.cQ.addRoyalty(t)})},children:"ADD ANOTHER WALLET"})}),(0,k.jsx)(v.Z,{className:"ml-2 text-white-med-on-dark",title:(0,k.jsxs)(x.Z,{variant:"caption",children:[(0,k.jsx)("span",{className:"mb-4 block",children:"Divide future payments across multiple wallet addresses. You can adjust the percentage of each transaction per wallet."}),"Limited to 5 wallets only."]}),children:(0,k.jsx)(g.Z,{className:"text-base"})})]}
1):null,n?(0,k.jsx)(x.Z,{className:E,color:"error",children:n}):null]})]})}));var ae=t(69554),se=t(27171),ie=t(7619),ne=t(83597),oe=t(5740),re=t(89979);const ce=(0,i.$j)(null,(e=>(0,n.DE)({updateFormData:d.Nw.updateFormData},e)))((e=>{const{setRef:l,updateFormData:t}=e,a=(0,i.v9)((e=>d.wl.formData(e).network)),n=(0,i.v9)((e=>d.wl.formData(e).price_method)),o=(0,i.v9)((e=>d.wl.formData(e).license)),r=(0,i.v9)((e=>d.wl.isResubmitForm(e))),c="fixed"===n,{isMediumscreenAbove:m}=(0,p.Gc)();return(0,k.jsxs)("div",{ref:l,className:m?"mb-11":"mb-8",children:[(0,k.jsx)(x.Z,{variant:"h6",className:"mb-7",children:"Pricing"}),(0,k.jsx)(ae.Z,{className:"mb-6",label:(0,k.jsxs)("span",{className:"flex items-center",children:[(0,k.jsx)(x.Z,{variant:"overline",children:"Choose Blockchain Network"}),(0,k.jsx)(v.Z,{className:"ml-2",title:(0,k.jsxs)(x.Z,{variant:"caption",children:[(0,k.jsx)("span",{className:"font-bold text-white-hi-on-dark",children:"Ethereum"})," has more whales, but but ",(0,k.jsx)("span",{className:"font-bold text-white-hi-on-dark",children:"Polygon"})," doesn\u2019t have gas fees making it more accessible. Polygon NFTs can be transferred to the Ethereum blockchain in the future."]}),children:(0,k.jsx)(g.Z,{className:"text-base"})})]}),labelColor:"light",content:(0,k.jsx)(se.Z,{onChange:e=>{t({network:e})},disabled:r,items:d.wt.networks,value:a,size:"small",inputAlign:"right",menuTextTransform:"capitalize",autoWidth:!0,borderless:!0})}),(0,k.jsx)(ae.Z,{className:"mb-6",label:(0,k.jsxs)("span",{className:"flex items-center",children:[(0,k.jsx)(x.Z,{variant:"overline",children:"Pricing Model"}),(0,k.jsx)(v.Z,{className:"ml-2",title:(0,k.jsxs)("div",{children:[(0,k.jsxs)("div",{className:"mb-4",children:[(0,k.jsx)(x.Z,{variant:"caption",component:"div",className:"text-white-hi-on-dark",fontWeight:"bold",children:"Fixed Price"}),(0,k.jsx)(x.Z,{variant:"caption",component:"div",children:"One price for all NFTs"})]}),(0,k.jsxs)("div",{className:"mb-4",children:[(0,k.jsx)(x.Z,{variant:"caption",component:"div",className:"text-white-hi-on-dark",fontWeight:"bold",children:"Increasing Price"}),(0,k.jsx)(x.Z,{variant:"caption",component:"div",children:"Price goes up as NFTs sell"})]}),(0,k.jsxs)("div",{children:[(0,k.jsx)(x.Z,{variant:"caption",component:"div",className:"text-white-hi-on-dark",fontWeight:"bold",children:"Decreasing Price"}),(0,k.jsx)(x.Z,{variant:"caption",component:"div",children:"Price goes down as NFTs sell"})]})]}),children:(0,k.jsx)(g.Z,{className:"text-base"})})]}),labelColor:"light",content:(0,k.jsx)(se.Z,{onChange:e=>{t({price_method:e})},disabled:r,label:"Pricing Model",value:n,items:d.wt.price_method,size:"small",inputAlign:"right",menuTextTransform:"capitalize",autoWidth:!0,borderless:!0})}),(0,k.jsxs)("div",{className:"mb-3",children:[(0,k.jsx)(R,{InputProps:{startAdornment:(0,k.jsx)(V.Z,{position:"start",children:"POLYGON"===a?(0,k.jsx)(oe.Z,{}):(0,k.jsx)(ne.Z,{})})},tooltipData:{className:"text-white-med-on-dark",classes:{tooltip:"max-w-none"},title:(0,k.jsxs)(x.Z,{variant:"caption",children:[(0,k.jsx)("span",{className:"font-bold text-white-hi-on-dark",children:"Some things to consider:"}),(0,k.jsx)("br",{}),"- How many NFTs are you issuing? ",(0,k.jsx)("br",{}),"- Have you sold NFTs before? ",(0,k.jsx)("br",{}),"- What blockchain are you selling on?"]})},type:"number",formDataType:"start_price",label:c?"Price (".concat(re._5.textCase(a,"titlecase"),") per NFT"):"Start Price"}),(0,k.jsx)(R,{InputProps:{startAdornment:(0,k.jsx)(V.Z,{position:"start",children:"POLYGON"===a?(0,k.jsx)(oe.Z,{}):(0,k.jsx)(ne.Z,{})})},className:(0,s.Z)("mt-6",c?"hidden":null),type:"number",formDataType:"end_price",label:"End Price"})]}),(0,k.jsx)(ae.Z,{className:"mb-3",label:(0,k.jsxs)("span",{className:"flex items-center",children:[(0,k.jsx)(x.Z,{variant:"overline",children:"Choose Licensing Terms"}),(0,k.jsx)(v.Z,{className:"ml-2",title:(0,k.jsxs)(x.Z,{variant:"caption",children:[(0,k.jsx)("span",{className:"font-bold text-white-hi-on-dark",children:"For more information:"}),(0,k.jsx)("br",{}),"NFT License 2.0 -"," ",(0,k.jsx)(ie.Z,{href:"http://nftlicense.org",target:"_blank",children:"nftlicense.org"}),(0,k.jsx)("br",{}),"CC BY-NC 4.0 -"," ",(0,k.jsx)(ie.Z,{href:"http://nftlicense.org",target:"_blank",children:"creativecommons.org"})]}),children:(0,k.jsx)(g.Z,{className:"text-base"})})]}),labelColor:"light",content:(0,k.jsx)(se.Z,{onChange:e=>{t({license:e})},disabled:r,value:o,items:d.wt.licenses,size:"small",inputAlign:"right",menuTextTransform:"capitalize",autoWidth:!0,borderless:!0})})]})}));var de=t(23846);const me=(0,i.$j)((e=>({formData:d.wl.formData(e)})),(e=>(0,n.DE)({continueForm:d.Nw.continueForm},e)))((e=>{const{continueForm:l,formData:t,scrollRef:i}=e,{isMediumscreenAbove:n}=(0,p.Gc)(),o=(0,a.useRef)(null),r=(0,a.useRef)(null),c=(0,a.useRef)(null),d=!(null!==t&&void 0!==t&&t.title)||!(null!==t&&void 0!==t&&t.description),m=!(null!==t&&void 0!==t&&t.email),h=!(null!==t&&void 0!==t&&t.start_price)||!(null!==t&&void 0!==t&&t.end_price);return(0,k.jsxs)("div",{className:(0,s.Z)("mx-auto",w),children:[(0,k.jsxs)("div",{ref:o,className:(0,s.Z)(n?"mb-11":"mb-8",le.Z.BorderBottomOnSurface),children:[(0,k.jsx)(x.Z,{variant:"h6",className:"mb-7",children:"Project Details"}),(0,k.jsx)(R,{className:"mb-6",formDataType:"title",label:"Title"}),(0,k.jsx)(R,{className:"mb-6",formDataType:"user_full_name",label:"Created By"}),(0,k.jsx)(R,{className:"mb-6",formDataType:"description",label:"Description",multiline:!0})]}),(0,k.jsxs)("div",{ref:r,className:(0,s.Z)(n?"mb-11":"mb-8",le.Z.BorderBottomOnSurface),children:[(0,k.jsx)(x.Z,{variant:"h6",className:"mb-7",children:"Creator Contact"}),(0,k.jsx)(R,{className:"mb-6",formDataType:"email",label:"Email (optional, visible only to your buyers)"}),(0,k.jsx)(R,{className:"mb-6",formDataType:"twitter_url",label:"Twitter (optional)"}),(0,k.jsx)(R,{formDataType:"instagram_url",label:"Instagram (optional)"})]}),(0,k.jsx)(ce,{setRef:c}),(0,k.jsx)(te,{}),(0,k.jsx)("div",{children:(0,k.jsx)(u.Z,{color:"secondary",variant:"contained",fullWidth:!0,onClick:()=>{var e,t;if(d)null===de.X||void 0===de.X||(0,de.X)({el:null===i||void 0===i?void 0:i.current,y:null!==(e=o.current)&&void 0!==e&&e.offsetTop?(null===(t=o.current)||void 0===t?void 0:t.offsetTop)-24:void 0});else if(m){var a,s;null===de.X||void 0===de.X||(0,de.X)({el:null===i||void 0===i?void 0:i.current,y:null!==(a=r.current)&&void 0!==a&&a.offsetTop?(null===(s=r.current)||void 0===s?void 0:s.offsetTop)-24:void 0})}else if(h){var n,u;null===de.X||void 0===de.X||(0,de.X)({el:null===i||void 0===i?void 0:i.current,y:null!==(n=c.current)&&void 0!==n&&n.offsetTop?(null===(u=c.current)||void 0===u?void 0:u.offsetTop)-24:void 0})}l()},children:"SUBMIT PROJECT"})})]})}));var ue=t(81048),he=t(62153);const pe=(0,i.$j)((e=>({gridCount:d.wl.gridCount(e),notEnoughErrorText:d.wl.notEnoughErrorText(e)}
1)),(e=>(0,n.DE)({closeDialog:ue.E4.closeDialog,setStep:d.Nw.setStep,updateFormData:d.Nw.updateFormData},e)))((e=>{const{closeDialog:l,setStep:t,updateFormData:i,notEnoughErrorText:n,gridCount:o}=e,{isSmallscreenAbove:r}=(0,p.Gc)(),c=void 0===o,h=!c&&o<he.VO.MINIMUM_SELL_NFT_IMAGE,x=(0,a.useCallback)((()=>{l()}),[l]);return(0,k.jsxs)("div",{className:(0,s.Z)("mx-auto",Z),children:[(0,k.jsxs)("div",{className:"mb-8 text-center",children:[(0,k.jsx)(m.Z,{variant:"h5",className:"mb-1.5",children:"Step 1: Curate Your Collection"}),(0,k.jsx)(m.Z,{variant:"subtitle2",className:"text-white-med-on-dark",children:"Select how you would like to sell this collection."})]}),(0,k.jsxs)("div",{className:(0,s.Z)(r&&"flex","mb-10"),children:[(0,k.jsxs)("div",{className:(0,s.Z)(y,!r&&"mb-10",r&&"!pr-8 !pt-6"),children:[(0,k.jsxs)("div",{className:"mb-9",children:[(0,k.jsx)(m.Z,{variant:"h6",className:"mb-1",children:"Artist Curated"}),(0,k.jsxs)(m.Z,{variant:"subtitle2",className:"text-white-med-on-dark",children:["You select which artworks to sell. Save the results you would like to sell. All artworks in the \u201c",(0,k.jsx)("strong",{children:"SAVED"}),"\u201d folder for this project will be sold to collectors."]})]}),(0,k.jsx)(u.Z,{className:"mt-auto",disabled:c||h,color:"secondary",variant:"contained",onClick:()=>{i({type:"artist"}),t(d.g0.SELECT_COVER)},fullWidth:!0,children:"CONTINUE"})]}),r?(0,k.jsx)("div",{className:le.Z.BorderLeftOnSurface}):null,(0,k.jsxs)("div",{className:(0,s.Z)(y,r&&"!pl-8 !pt-6"),children:[(0,k.jsxs)("div",{className:"mb-9",children:[(0,k.jsx)(m.Z,{variant:"h6",className:"mb-1",children:"Collector Curated"}),(0,k.jsxs)(m.Z,{variant:"subtitle2",className:"text-white-med-on-dark",children:['Collectors can buy any result generated from this model. All artworks in the "',(0,k.jsx)("strong",{children:"SAVED"}),'" folder for this project will be displayed as "Sample Generations".']})]}),(0,k.jsx)(u.Z,{className:"mt-auto",disabled:!0,color:"secondary",variant:"contained",onClick:()=>{i({type:"collector"}),t(d.g0.SELECT_COVER)},fullWidth:!0,children:"COMING SOON"})]})]}),h?(0,k.jsx)(m.Z,{variant:"caption",color:"error",className:"mt-auto pb-4",align:"center",component:"div",children:n}):null,(0,k.jsx)(u.Z,{variant:"outlined",onClick:x,fullWidth:!0,children:"GO BACK TO PROJECT"})]})})),xe=(0,i.$j)((e=>({gridCount:d.wl.gridCount(e),notEnoughErrorText:d.wl.notEnoughErrorText(e)})),(e=>(0,n.DE)({closeDialog:ue.E4.closeDialog,setStep:d.Nw.setStep},e)))((e=>{const{closeDialog:l,setStep:t,notEnoughErrorText:i,gridCount:n}=e,o=void 0===n,r=!o&&n<he.VO.MINIMUM_SELL_NFT_IMAGE,{isSmallscreenAbove:c}=(0,p.Gc)(),m=(0,a.useCallback)((()=>{l()}),[l]);return(0,k.jsxs)("div",{className:(0,s.Z)("mx-auto pb-25",!c&&"pt-3",w),children:[(0,k.jsx)(x.Z,{variant:"h5",className:"mb-9",component:"div",children:"Step 1: Curate Your Collection"}),(0,k.jsxs)("div",{className:"mb-6",children:[(0,k.jsx)(x.Z,{variant:"body1",className:"mb-1",children:"Creative Morph, Style Transfer and FaceMix."}),(0,k.jsx)(x.Z,{variant:"subtitle2",className:"mb-4 text-white-med-on-dark",children:"Before you continue, select the artworks from your model that you would like to make available for sale."}),(0,k.jsx)(x.Z,{variant:"subtitle2",className:"text-white-med-on-dark",children:"Save the results you would like to sell. All artworks in the \u201cSAVED\u201d folder for this project will be submitted."})]}),(0,k.jsxs)("div",{className:"mb-8",children:[(0,k.jsx)(x.Z,{variant:"body1",className:"mb-1",children:"Stylize Filter, Sketch-to-Art"}),(0,k.jsx)(x.Z,{variant:"subtitle2",className:"text-white-med-on-dark",children:"Delete the results you do not want to sell. All of the results in this project can be submitted."})]}),r?(0,k.jsx)(x.Z,{variant:"caption",color:"error",className:"mt-auto py-4 text-center normal-case",component:"div",children:i}):null,(0,k.jsxs)("div",{className:"mt-2",children:[(0,k.jsx)(u.Z,{disabled:o||r,className:"mb-4",color:"secondary",variant:"contained",onClick:()=>{t(d.g0.SELECT_COVER)},fullWidth:!0,children:"CONTINUE"}),(0,k.jsx)(u.Z,{variant:"outlined",onClick:m,fullWidth:!0,children:"GO BACK TO PROJECT"})]})]})})),ge=(0,i.$j)((e=>({isProjectFreeform:d.wl.isProjectFreeform(e)})))((e=>{const{isProjectFreeform:l}=e;return l?(0,k.jsx)(pe,{}):(0,k.jsx)(xe,{})}));var ve=t(95080),je=t(47558),fe=t(43504),Ne=t(50533),be=t(55104),Ce=t(99004),Se=t(39236);const we="GridImages_ResultImageWrapperSelected__CXDZd",Ze=e=>{const{component:l="div",containerWidth:t,containerHeight:a,image:i,selected:n,to:o,onClick:r}=e,c=null===i||void 0===i?void 0:i.is_published,[d,m]=(0,Ce.q)((null===i||void 0===i?void 0:i.width)||0,(null===i||void 0===i?void 0:i.height)||0,t||0,a||0),u=(0,k.jsx)(be.ZP,{className:"pointer-events-none h-full w-full select-none bg-lighter object-scale-down",image:i});return(0,k.jsxs)(l,{className:(0,s.Z)(c?"opacity-50":void 0,"flex items-center justify-center",n&&we),children:[r?(0,k.jsx)(ve.Z,{disabled:c,
1className:"bg-lighter",onClick:r,style:{width:d,height:m},children:u}):null,o?(0,k.jsx)(Ne.Z,{component:fe.rU,to:o,className:"flex items-center justify-center bg-lighter",style:{width:d,height:m},children:u}):null,r||o?null:(0,k.jsx)(l,{className:"bg-lighter",style:{width:d,height:m},children:u}),(0,k.jsx)(Se.v,{userImage:i})]})},Te=(0,i.$j)((e=>({appliedSelectedGridCount:d.wl.appliedSelectedGridCount(e),gridLoading:d.wl.gridLoading(e),gridCount:d.wl.gridCount(e),isAppliedSelectedImageEnough:d.wl.isAppliedSelectedImageEnough(e),selectedGridImages:d.wl.selectedGridImages(e),thumbnail:d.wl.formData(e).thumbnail})),(e=>(0,n.DE)({updateFormData:d.Nw.updateFormData,setStep:d.Nw.setStep},e)))((e=>{const{updateFormData:l,setStep:t,gridCount:a=0,dialogBodyRef:i,gridLoading:n,isAppliedSelectedImageEnough:o,thumbnail:r,selectedGridImages:c,appliedSelectedGridCount:h}=e,{isSmallscreenAbove:x}=(0,p.Gc)(),g=a>=he.VO.MINIMUM_SELL_NFT_IMAGE&&h<he.VO.MINIMUM_SELL_NFT_IMAGE;return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("div",{className:(0,s.Z)("w-full",T),children:[x?(0,k.jsxs)("div",{className:(0,s.Z)("flex items-center",le.Z.BorderBottomOnSurface),children:[o?(0,k.jsx)(m.Z,{className:"ml-auto mr-3 text-white-med-on-dark",variant:"body2",component:"div",children:"".concat(h," / ").concat(a," images will be in your collection")}):(0,k.jsx)(m.Z,{className:"ml-auto mr-3 text-danger",variant:"body2",component:"div",children:"Select at least ".concat(he.VO.MINIMUM_SELL_NFT_IMAGE," images")}),(0,k.jsx)(u.Z,{className:x?"-mr-2.5":"-ml-2.5",color:"secondary",onClick:()=>t(d.g0.CURATE_COLLECTION),size:"small",children:"EDIT COLLECTION"})]}):null,x?null:(0,k.jsx)(u.Z,{className:"-ml-2.5",color:"secondary",onClick:()=>t(d.g0.CURATE_COLLECTION),size:"small",children:"EDIT COLLECTION"})]}),(0,k.jsx)("div",{className:"h-1/100 min-h-0 flex-auto",children:g?(0,k.jsx)("div",{className:S,children:(0,k.jsx)(m.Z,{variant:"subtitle1",children:(0,k.jsx)("i",{children:h>0?"You don't have enough unpublished images in this project. Save or generate more images to continue.":"All of your images in this project already published. Save or generate more images to continue."})})}):(0,k.jsx)(je.Z,{autoHeight:!x,scrollRef:x?void 0:i,dataLength:c.length,loading:Boolean(n),config:Ae,renderItem:e=>{const{height:t,index:a,width:s}=e;if(!c[a])return null;const i=c[a],n=r===i.id;return(0,k.jsx)("div",{className:"h-full w-full select-none",children:(0,k.jsx)(ve.Z,{disabled:i.is_published,className:"h-full w-full",onClick:()=>l({thumbnail:i.id}),children:(0,k.jsx)(Ze,{component:"span",containerWidth:s,containerHeight:t,selected:n,image:i})})})}})})]})}));var _e=t(18384),ye=t(66572);const Ee=(0,i.$j)((e=>({gridImages:d.wl.gridImages(e),gridLoading:d.wl.gridLoading(e),gridCount:d.wl.gridCount(e),selectedGridCount:d.wl.selectedGridCount(e),isSelectedImageEnough:d.wl.isSelectedImageEnough(e),imageSelectionData:d.wl.imageSelectionData(e),selectableImagesCount:d.wl.selectableImagesCount(e)})),(e=>(0,n.DE)({toggleSelect:d.Nw.imageSelect.toggleSelect,deselectAll:d.Nw.imageSelect.deselectAll,selectAll:d.Nw.imageSelect.selectAll,setStep:d.Nw.setStep,cancel:d.Nw.imageSelect.cancel,apply:d.Nw.imageSelect.apply},e)))((e=>{const{toggleSelect:l,deselectAll:t,selectAll:a,setStep:i,apply:n,cancel:o,isSelectedImageEnough:r,gridLoading:c,gridImages:h,gridCount:x,selectedGridCount:g,imageSelectionData:v,selectableImagesCount:j}=e,{isSmallscreenAbove:f}=(0,p.Gc)();return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("div",{className:(0,s.Z)("w-full",T),children:(0,k.jsxs)("div",{className:(0,s.Z)("flex justify-between",le.Z.BorderBottomOnSurface),children:[(0,k.jsxs)("div",{children:[(0,k.jsx)(u.Z,{className:(0,s.Z)(f&&"-ml-2.5","mr-1"),size:"small",disabled:g>=j,onClick:()=>a(),children:"SELECT ALL"}),(0,k.jsx)(u.Z,{size:"small",disabled:0===g,onClick:()=>t(),children:"DESELECT ALL"})]}),(0,k.jsxs)("div",{className:"flex items-center",children:[r?(0,k.jsx)(m.Z,{className:"text-white-med-on-dark",variant:"body2",children:"".concat(g," / ").concat(x," images will be in your collection")}):(0,k.jsx)(m.Z,{className:"text-danger",variant:"body2",children:"Select at least ".concat(he.VO.MINIMUM_SELL_NFT_IMAGE," images")}),(0,k.jsxs)("div",{className:"ml-3",children:[(0,k.jsx)(u.Z,{className:"mr-1",size:"small",onClick:()=>{o(),i(d.g0.SELECT_COVER)},children:"CANCEL"}),(0,k.jsx)(u.Z,{className:"-mr-2.5",color:"secondary",disabled:!r,size:"small",onClick:()=>{n(),i(d.g0.SELECT_COVER)},children:"DONE"})]})]})]})}),(0,k.jsx)("div",{className:"h-1/100 min-h-0 flex-auto",children:(0,k.jsx)(je.Z,{dataLength:h.length,loading:Boolean(c),config:Ae,renderItem:e=>{const{height:t,index:a,width:i}=e;if(!h[a])return null;const n=h[a],o=ye.Rq.isSelected(n.id,v.selected,v.direction);return(0,k.jsxs)("div",{className:"relative h-full w-full select-none",children:[(0,k.jsx)(ve.Z,{disabled:n.is_published,className:"h-full w-full",onClick:()=>l(n.id),children:(0,k.jsx)(Ze,{component:"span",containerWidth:i,containerHeight:t,selected:o,image:n})}),(0,k.jsx)("div",{className:(0,s.Z)("pointer-events-none absolute left-2 top-2 z-1 hidden",o?"flex":null),children:(0,k.jsx)(_e.Z,{color:"secondary"})})]})}})})]})}));var Le=t(1118);const Fe=(0,i.$j)((e=>({gridImages:d.wl.gridImages(e),gridLoading:d.wl.gridLoading(e),gridCount:d.wl.gridCount(e),selectedGridCount:d.wl.selectedGridCount(e),isSelectedImageEnough:d.wl.isSelectedImageEnough(e),imageSelectionData:d.wl.imageSelectionData(e)})),(e=>(0,n.DE)({toggleSelect:d.Nw.imageSelect.toggleSelect,deselectAll:d.Nw.imageSelect.deselectAll,selectAll:d.Nw.imageSelect.selectAll,setStep:d.Nw.setStep,cancel:d.Nw.imageSelect.cancel,apply:d.Nw.imageSelect.apply},e)))((e=>{const{toggleSelect:l,deselectAll:t,selectAll:i,setStep:n,apply:o,cancel:r,isSelectedImageEnough:c,gridLoading:h,gridImages:x,gridCount:g,selectedGridCount:v,imageSelectionData:j,open:f}=e,N=(0,a.useRef)(null),b=(0,p.N_)(1);return(0,k.jsxs)(Le.Z,{open:f,transition:"slideUp",classes:{paper:"bg-primary",content:"flex flex-col"},hideDialogClose:!0,fullScreen:!0,disableContentSpacing:!0,children:[(0,k.jsxs)("div",{className:(0,s.Z)("flex justify-between py-2",le.Z.BorderBottomOnSurface),children:[(0,k.jsx)(u.Z,{onClick:()=>{r(),n(d.g0.SELECT_COVER)},children:"Cancel"}),(0,k.jsx)(u.Z,{color:"secondary",disabled:!c,onClick:()=>{o(),n(d.g0.SELECT_COVER)},children:"Done"})]}),(0,k.jsxs)("div",{className:(0,s.Z)("py-2",le.Z.BorderBottomOnSurface),children:[(0,k.jsx)(u.Z,{className:"mr-1",disabled:v===g,onClick:()=>i(),children:"Select All"}),(0,k.jsx)(u.Z,{disabled:0===v,onClick:()=>t(),children:"Deselect All"})]}),(0,k.jsxs)("div",{ref:N,className:"h-1/100 min-h-0 flex-auto overflow-auto",children:[(0,k.jsxs)("div",{className:(0,s.Z)("w-full py-6 text-white-med-on-dark",T),children:[(0,k.jsx)(m.Z,{variant:"body2",className:"mb-3",children:"".concat(v," / ").concat(g," images will be in your collection")}),(0,k.jsx)(m.Z,{variant:"body2",children:"10 images must be selected minimum"})]}),b?(0,k.jsx)(je.Z,{autoHeight:!0,scrollRef:N,dataLength:x.length,loading:Boolean(h),config:Ae,renderItem:e=>{const{height:t,index:a,width:i}=e;if(!x[a])return null;const n=x[a],o=ye.Rq.isSelected(n.id,j.selected,j.direction);return(0,k.jsxs)("div",{className:"relative h-full w-full select-none",children:[(0,k.jsx)(ve.Z,{disabled:n.is_published,className:"h-full w-full",onClick:()=>l(n.id),children:(0,k.jsx)(Ze,{component:"span",containerWidth:i,containerHeight:t,selected:o,image:n})}),(0,k.jsx)("div",{className:(0,s.Z)("pointer-events-none absolute left-2 top-2 z-1 hidden",o?"flex":null),children:(0,k.jsx)(_e.Z,{color:"secondary"})})]})}}):null]})]})})),Ie=e=>{const l=(0,p.t4)(e.open);return l?(0,k.jsx)(Fe,{open:l}):null},Ae={xs:{columns:2,paddingX:16,gutter:24},sm:{paddingX:24},default:{defaultColumnWidth:112,rowHeight:300,square:!0,gutter:36,paddingTop:24,paddingBottom:72,paddingX:72}},ke=(0,i.$j)((e=>({gridCount:d.wl.gridCount(e),step:d.wl.step(e),gridLoading:d.wl.gridLoading(e),selectedGridCount:d.wl.selectedGridCount(e),appliedSelectedGridCount:d.wl.appliedSelectedGridCount(e),isSelectedImageEnough:d.wl.isSelectedImageEnough(e),thumbnail:d.wl.formData(e).thumbnail})),(e=>(0,n.DE)({setStep:d.Nw.setStep},e)))((e=>{const{setStep:l,dialogBodyRef:t,appliedSelectedGridCount:a,gridLoading:i,step:n,isSelectedImageEnough:o,thumbnail:r}=e,{isSmallscreenAbove:c}=(0,p.Gc)();return(0,k.jsxs)("div",{className:(0,s.Z)("flex h-1/100 min-h-0 flex-auto flex-col",c&&"pt-3"),children:[(0,k.jsxs)("div",{className:(0,s.Z)("w-full sm:flex sm:items-center",!c&&"pt-1",c?"pb-8":"pb-9",T),children:[(0,k.jsx)("div",{className:c?(0,s.Z)("min-h-0 w-1/100 flex-auto",n===d.g0.CURATE_COLLECTION&&le.Z.TextWhite38):void 0,children:c?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(x.Z,{variant:"h5",className:"mb-3",children:"Tap an image to select a cover image for your Art Mine listing"}),(0,k.jsx)(x.Z,{variant:"body1",children:"Or edit your collection to choose what will be for sale."})]}):(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(x.Z,{variant:"h5",className:"mb-6",children:"You have ".concat(a," images included in your NFT Project")}),(0,k.jsx)(x.Z,{variant:"body1",children:"Tap on an image to select a cover image for your Art Mine listing (required)"}),(0,k.jsx)("br",{}),(0,k.jsx)(x.Z,{variant:"body1",children:"Or edit your collection to choose what will be for sale."})]})}),c?(0,k.jsx)(u.Z,{className:(0,s.Z)("ml-6",_),color:"secondary",variant:"contained",onClick:()=>{l(d.g0.DETAILS)},size:"small",disabled:!Boolean(r)||!o||Boolean(i)||n===d.g0.CURATE_COLLECTION,fullWidth:!0,children:i?"Loading Image...":"CONTINUE"}):null]}),c&&n===d.g0.SELECT_COVER||!c?(0,k.jsx)(Te,{dialogBodyRef:t}):null,c&&n===d.g0.CURATE_COLLECTION?(0,k.jsx)(Ee,{}):null,c?null:(0,k.jsx)(Ie,{open:n===d.g0.CURATE_COLLECTION})]})})),De=(0,i.$j)((e=>({step:d.wl.step(e)})))((e=>{const{dialogBodyRef:l,step:t}=e;return(0,k.jsxs)(k.Fragment,{children:[t===d.g0.CURATE_INFO?(0,k.jsx)(ge,{}):null,t===d.g0.CURATE_COLLECTION||t===d.g0.SELECT_COVER?(0,k.jsx)(ke,{dialogBodyRef:l}):null]})}));var Oe=t(76739),Me=t(27563),Re=t(84800);const Be=(0,i.$j)((e=>({submitLoading:d.wl.submitLoading(e),isResubmitForm:d.wl.isResubmitForm(e),network:d.wl.formData(e).network,currentMineProject:d.wl.currentMineProject(e),connectToMetaMaskLoading:Me.LL.connectToMetaMaskLoading(e),currentUserAddress:Re.Oo.currentUserAddress(e),retrieveConfigLoading:Re.Oo.loading["artMine.retrieveConfig"](e),createArtMineProjectLoading:Re.Oo.loading["artMine.createArtMineProject"](e),retrieveSignatureLoading:Re.Oo.loading["artMine.retrieveSignature"](e)})),(e=>(0,n.DE)({addDialogOverlay:ue.E4.addDialogOverlay,connectToMetamask:Me.xZ.metamask.connectToMetamask},e)))((e=>{const{addDialogOverlay:l,connectToMetamask:t,network:a,currentMineProject:i,isResubmitForm:n,submitLoading:o,createArtMineProjectLoading:r,retrieveSignatureLoading:c,retrieveConfigLoading:m,currentUserAddress:h,connectToMetaMaskLoading:g}=e,{isSmallscreenAbove:v}=(0,p.Gc)(),j=r||o,f=null===i||void 0===i?void 0:i.isProcessing;return(0,k.jsxs)("div",{className:(0,s.Z)("mx-auto flex flex-col",w,!v&&"pt-3"),children:[(0,k.jsxs)("div",{className:"mb-12",children:[(0,k.jsx)(x.Z,{variant:"h5",className:"mb-4",children:n?"Resubmit":"Step 3: Submit"}),(0,k.jsxs)(x.Z,{variant:"subtitle2",className:"mb-6 text-white-med-on-dark",children:["By submitting this project, I accept the"," ",(0,k.jsx)(ie.Z,{href:he.p4.TOC,target:"_blank",children:"Terms and Conditions"}),"."]}),(0,k.jsxs)("div",{children:[(0,k.jsx)(x.Z,{variant:"body1",children:"Smart Contract Terms"}),(0,k.jsxs)("ul",{className:"mb-6 mt-0 pl-5 text-white-med-on-dark",children:[(0,k.jsx)("li",{children:(0,k.jsx)(x.Z,{variant:"subtitle2",children:"Primary Sale: 85% Creator (You), 15% Playform"})}),(0,k.jsx)("li",{children:(0,k.jsx)(x.Z,{variant:"subtitle2",children:"Secondary Sales: 8.5% Creator (You), 1.5% Playform"})})]}),(0,k.jsxs)(x.Z,{variant:"subtitle2",className:"text-white-med-on-dark",children:[h?null:"Connect to MetaMask to continue. ","You may also be required to pay an additional transaction fee to the blockchain network to execute the smart contract. Fees vary by network."]})]})]}),(0,k.jsx)(u.Z,{disabled:Boolean(g||m),className:"mb-4 mt-auto",color:"primary",variant:"outlined",onClick:()=>{h?l({[ue.D_.METAMASK_WALLET]:{dialogName:ue.D_.METAMASK_WALLET}}):t({network:a})},fullWidth:!0,children:g?"Connecting...":h?"CONNECTED TO ".concat(re._5.trimAddress(h)):"Connect To Metamask"}),n?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(u.Z,{className:"mt-auto",color:"secondary",disabled:Boolean(!h||r||c||o||f),variant:"contained",size:"small",onClick:()=>{l({[ue.qu.INCREASE_GAS]:{dialogName:ue.qu.INCREASE_GAS,continueAction:d.Nw.retrySubmit(),continueText:"RESUBMIT"}})},fullWidth:!0,children:j||f?(0,k.jsx)(Oe.OF,{size:28,disableShrink:!0,loading:!0}):"RESUBMIT"}),f?(0,k.jsx)(x.Z,{variant:"body1",color:"gray",className:"mt-4 text-center",component:"div",children:(0,k.jsx)("i",{children:"This project is being processed. If the processing failed, you can always resubmit the project from My NFT list page."})}):null]}):(0,k.jsx)(u.Z,{className:"mt-auto",color:"secondary",disabled:Boolean(!h||r||c||o),variant:"contained",size:j?"small":void 0,onClick:()=>{l({[ue.qu.INCREASE_GAS]:{dialogName:ue.qu.INCREASE_GAS,continueAction:d.Nw.acceptSubmit(),continueText:"ACCEPT AND SUBMIT"}})},fullWidth:!0,children:j?(0,k.jsx)(Oe.OF,{size:28,disableShrink:!0,loading:!0}):"ACCEPT AND SUBMIT"})]})})),Pe=["CURATE COLLECTION","DETAILS","SUBMIT"],We={paper:b},Ge=(0,i.$j)((e=>({isSelectedImageEnough:d.wl.isSelectedImageEnough(e),gridLoading:d.wl.gridLoading(e),activeDialog:ue.kc.activeDialog(e),dialogData:ue.kc.dialogDatum[ue.D_.SELL_AS_NFT_FORM](e),step:d.wl.step(e),maxStep:d.wl.maxStep(e),isResubmitForm:d.wl.isResubmitForm(e),thumbnail:d.wl.formData(e).thumbnail})),(e=>(0,n.DE)({disconnect:Me.xZ.metamask.disconnect,closeDialog:ue.E4.closeDialog,initForm:d.Nw.initForm,loadAllImageGrid:d.Nw.loadAllImageGrid,setStep:d.Nw.setStep,resetSelection:d.Nw.imageSelect.resetSelection},e)))((e=>{var l,t,i;const{gridLoading:n,isSelectedImageEnough:x,step:g,maxStep:v,activeDialog:j,dialogData:f,thumbnail:b,isResubmitForm:S,disconnect:w,resetSelection:Z,loadAllImageGrid:T,setStep:_,initForm:y,closeDialog:E}=e,L=j===ue.D_.SELL_AS_NFT_FORM,{isMediumscreenAbove:I,isSmallscreenAbove:D}=(0,p.Gc)(),O=(0,a.useRef)(null),M=(0,a.useCallback)((()=>{w(),E()}),[E,w]),R=(0,a.useMemo)((()=>Pe.map(((e,l)=>{const t=0===l?l+1:l+2;return{title:e,onClick:S&&0===l?void 0:t<=v?()=>{_(t)}:void 0}}))),[S,v,_]),B=null===f||void 0===f||null===(l=f.content)||void 0===l?void 0:l.id,P=null===f||void 0===f||null===(t=f.content)||void 0===t?void 0:t.artMineProjectId,W=null===f||void 0===f||null===(i=f.content)||void 0===i?void 0:i.projectType;return(0,a.useEffect)((()=>{const e=B||P;L&&e&&(y({id:e,projectType:W||"artmineProject"}),T({reload:!0})),L||Z()}),[y,Z,T,L,B,W,P]),(0,k.jsxs)(o.Z,{open:L,classes:We,onClose:M,maxWidth:!1,fullScreen:!0,children:[I?(0,k.jsx)("div",{className:(0,s.Z)("absolute right-0 top-0 z-1",F),children:(0,k.jsx)(u.Z,{className:"!p-0 sm:text-5xl","aria-label":"Close",onClick:M,icon:!0,children:(0,k.jsx)(r.Z,{fontSize:"inherit"})})}):null,(0,k.jsx)("div",{className:(0,s.Z)("h-full overflow-hidden",A),children:(0,k.jsxs)("div",{className:"flex h-full flex-col bg-primary",children:[(0,k.jsx)("div",{className:(0,s.Z)(le.Z.BorderBottomOnSurface,N),children:(0,k.jsxs)("div",{className:(0,s.Z)("flex items-center",!I&&"justify-between",C),children:[g===d.g0.CURATE_COLLECTION||g===d.g0.SELECT_COVER?(0,k.jsx)(u.Z,{"aria-label":"Close",size:"small",onClick:()=>{_(g-1)},startIcon:(0,k.jsx)(c.Z,{}),children:"BACK"}):(0,k.jsx)(m.Z,{variant:D?"h5":"h6",children:"Sell as NFT"}),I?null:(0,k.jsx)(u.Z,{className:"!p-0 sm:text-5xl","aria-label":"Close",onClick:M,icon:!0,children:(0,k.jsx)(r.Z,{fontSize:"inherit"})})]})}),(0,k.jsxs)("div",{ref:O,className:"relative flex h-1/100 min-h-0 flex-auto flex-col overflow-auto",children:[(0,k.jsx)("div",{className:(0,s.Z)("flex justify-center pt-8",D?"pb-5":"pb-9"),children:(0,k.jsx)(h.Z,{data:R,activeIndex:g-2<0?0:g-2})}),L&&d.rD.includes(g)?(0,k.jsx)(De,{dialogBodyRef:O}):null,L&&g===d.g0.DETAILS?(0,k.jsx)(me,{scrollRef:O}):null,L&&g===d.g0.SUBMIT?(0,k.jsx)("div",{className:"h-1/100 min-h-0 flex-auto pb-20 lg:pb-30",chi
1ldren:(0,k.jsx)(Be,{})}):null]}),D||g!==d.g0.SELECT_COVER&&g!==d.g0.CURATE_COLLECTION?null:(0,k.jsx)("div",{children:(0,k.jsx)(u.Z,{color:"secondary",variant:"contained",onClick:()=>{_(d.g0.DETAILS)},disabled:!Boolean(b)||!x||Boolean(n)||g===d.g0.CURATE_COLLECTION,fullWidth:!0,children:n?"Loading Image...":"CONTINUE"})})]})})]})}))},99004:(e,l,t)=>{t.d(l,{q:()=>s});const a=(e,l,t)=>{let a=0;return a=t*e/l,a},s=(e,l,t,s)=>{const i=t<=s?t:void 0,n=s<=t?s:void 0;let o=0,r=0;return n?(r=n,o=a(n,l,e),o>t&&(r=a(t,o,r),o=t)):i&&(o=i,r=a(i,e,l),r>s&&(o=a(s,r,o),r=s)),[o||0,r||0]}},23846:(e,l,t)=>{t.d(l,{X:()=>i});var a=t(11770),s=t.n(a);function i(e){const{el:l,top:t,y:a,coord:i}=e;l&&(t?s()(0,{elementToScroll:l}):a?s()(a,{elementToScroll:l}):i&&s()(i,{elementToScroll:l}))}}}]); 2//# sourceMappingURL=7666.4ec7d209461d5b54b865.js.map
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.