PageSourceSearch

https://atticc.xyz/_next/static/chunks/pages/c/minting/create-9dcab6e0ba963a23.js

js atticc.xyz collected 2026-09-28 06:37:52 UTC 25,233 bytes, 28 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5844],{36966:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/c/minting/create",function(){return r(65649)}])},48676:function(e,t,r){"use strict";var n=r(52903),i=r(43411);t.Z=e=>{let{children:t}=e;return(0,n.tZ)(i.Z,{py:3,spacing:3,maxWidth:768,sx:{margin:"0 auto"},children:t})}},5588:function(e,t,r){"use strict";r.d(t,{d:function(){return w}});var n=r(52903),i=r(77522),a=r(2012),o=r(47746),l=r(43411),d=r(62197),c=r(35469),s=r(95319),u=r(52616),m=r(42453),h=r(92725),Z=r(8204),p=r(80982),b=r(38738),y=r(89115),g=r(28093),v=r(73454),f=r(2784),x=r(66396);let w=e=>{let{name:t,required:r=!1}=e,i=(0,o.Z)().palette,{t:a}=(0,v.$G)("common");return(0,n.BX)(l.Z,{flexDirection:"row",mb:"16px",children:[(0,n.tZ)(d.Z,{variant:"body1",fontWeight:500,children:a(t)}),r&&(0,n.tZ)(d.Z,{color:i.primary.main,children:"*"})]})},C=e=>{let{name:t,input:r,hideBorder:i=!1,isAdvance:a=!1}=e;return(0,n.BX)(l.Z,{width:1,direction:{xs:"column",sm:"row"},justifyContent:{xs:"flex-start",sm:"space-between"},py:2,spacing:{xs:2,sm:4},sx:{borderBottomWidth:i?0:1,borderBottomStyle:"solid",borderBottomColor:e=>e.palette.strokeColor.main,position:"relative"},children:[(0,n.tZ)(l.Z,{direction:"column",width:a?1:{xs:1,sm:.4},spacing:1,children:t}),(0,n.tZ)(l.Z,{direction:"column",width:a?{xs:1,sm:.5}:1,spacing:1,children:r})]})};t.Z=e=>{let{formik:t}=e;(0,o.Z)().palette;let{t:r}=(0,v.$G)("common"),{network:N}=(0,g.Z)(),[T,k]=(0,f.useState)(!0),E=async e=>{var r;let n=null===(r=e.target.files)||void 0===r?void 0:r[0];if(n){let e=new FileReader;e.readAsDataURL(n),e.onload=()=>{t.setFieldValue("NFTImageFile",n),t.setFieldValue("NFTImage",e.result)}}};return(0,n.BX)(l.Z,{direction:"column",children:[(0,n.tZ)(x.Z,{}),(0,n.tZ)(d.Z,{variant:"h6",py:2,mt:2,children:r("Drop Information")}),(0,n.BX)(l.Z,{direction:"column",width:1,children:[(0,n.tZ)(C,{name:(0,n.BX)(n.HY,{children:[(0,n.tZ)(w,{name:"Drop Name",required:!0}),(0,n.tZ)(d.Z,{variant:"body2",color:"text.secondary",children:r("This cannot be updated later so please choose carefully.")})]}),input:(0,n.BX)(n.HY,{children:[(0,n.tZ)(a.Z,{variant:"filled",hiddenLabel:!0,fullWidth:!0,size:"small",placeholder:r("Drop name should be less than 30 characters"),id:"communityNFTName",name:"communityNFTName",type:"text",error:t.touched.communityNFTName&&!!t.errors.communityNFTName,helperText:t.touched.communityNFTName&&t.errors.communityNFTName,onChange:t.handleChange,value:t.values.communityNFTName,InputProps:{endAdornment:(0,n.tZ)(c.Z,{position:"end",children:"".concat(t.values.communityNFTName.length,"/30")})}}),(0,n.tZ)(d.Z,{variant:"body2",color:"text.secondary",children:r("This cannot be updated later so please choose carefully.")})]})}),(0,n.tZ)(C,{name:(0,n.tZ)(w,{name:"Quantity",required:!0}),input:(0,n.tZ)(s.Z,{"aria-labelledby":"radio-buttons-group-label",defaultValue:"Set Total Quantity",name:"radio-buttons-group",onChange:e=>{e.target.value===r("Set Total Quantity")?(k(!0),t.values.quantity=""):(k(!1),t.values.quantity="0")},children:(0,n.BX)(l.Z,{children:[(0,n.BX)(l.Z,{direction:"row",justifyContent:{xs:"space-between",md:"flex-start"},children:[(0,n.tZ)(u.Z,{value:"Set Total Quantity",control:(0,n.tZ)(i.Z,{}),label:r("Set Total Quantity")}),T&&(0,n.tZ)(a.Z,{variant:"filled",hiddenLabel:!0,placeholder:"".concat(r("e.g.")," 100"),sx:{width:"150px"},id:"quantity",name:"quantity",type:"text",error:t.touched.quantity&&!!t.errors.quantity,helperText:t.touched.quantity&&t.errors.quantity,onChange:t.handleChange,value:t.values.quantity})]}),(0,n.tZ)(u.Z,{value:"Unlimited",control:(0,n.tZ)(i.Z,{}),label:r("Unlimited")})]})})}),(0,n.tZ)(C,{name:(0,n.tZ)(w,{name:"Price",required:!0}),input:(0,n.tZ)(a.Z,{variant:"filled",hiddenLabel:!0,placeholder:"".concat(r("e.g.")," 0.01,0.02"),id:"price",name:"price",type:"text",error:t.touched.price&&!!t.errors.price,helperText:t.touched.price&&t.errors.price,onChange:t.handleChange,value:t.values.price,InputProps:{endAdornment:(0,n.tZ)(c.Z,{position:"end",children:"ETH"})}})}),(0,n.tZ)(C,{name:(0,n.BX)(n.HY,{children:[(0,n.tZ)(w,{name:"NFT Image",required:!0}),(0,n.tZ)(d.Z,{variant:"body2",color:"text.secondary",children:r("COMMUNITY_CREATE_IMAGE_
1UPLOAD_HINT")})]}),input:(0,n.BX)(m.Z,{children:[t.values.NFTImage?(0,n.tZ)(h.Z,{src:t.values.NFTImage,variant:"rounded",alt:"community nft",sx:{height:128,width:128,pb:2}}):null,(0,n.tZ)("input",{style:{display:"none"},accept:"image/*",id:"community-create-image-upload",type:"file",onChange:E}),(0,n.tZ)(Z.Z,{variant:"contained",component:"label",htmlFor:"community-create-image-upload",children:r("Upload")}),t.touched.NFTImage&&t.errors.NFTImage&&(0,n.tZ)(d.Z,{variant:"caption1",color:"error",pl:1,children:String(t.errors.NFTImage)})]})}),(0,n.tZ)(C,{hideBorder:!0,name:(0,n.tZ)(w,{name:"Description"}),input:(0,n.BX)(n.HY,{children:[(0,n.tZ)(a.Z,{variant:"filled",hiddenLabel:!0,"aria-label":"empty textarea",id:"description",name:"description",multiline:!0,minRows:2,onChange:t.handleChange,value:t.values.description,placeholder:r("Tell us more about your NFT, feel free to attach links!")}),t.touched.description&&!!t.errors.description&&(0,n.tZ)(p.Z,{error:!0,children:t.touched.description&&t.errors.description})]})}),(0,n.tZ)(d.Z,{variant:"h6",my:4,children:r("COMMUNITY_SECTION_NFT_ADVANCED_SETTINGS")}),(0,n.tZ)(C,{isAdvance:!0,name:(0,n.BX)(n.HY,{children:[(0,n.tZ)(w,{name:"Limit Number Per Wallet"}),(0,n.tZ)(d.Z,{variant:"body2",color:"text.secondary",children:"Set limit to the number of NFTs each wallet can mint."})]}),input:(0,n.BX)(l.Z,{direction:"column",justifyContent:"flex-end",alignItems:"flex-end",spacing:1,children:[(0,n.tZ)(b.Z,{sx:{position:{xs:"absolute",sm:"relative"},right:0,top:{xs:"16px",sm:0}},id:"limitNumberPerWalletEnabled",name:"limitNumberPerWalletEnabled",onChange:t.handleChange,checked:t.values.limitNumberPerWalletEnabled}),t.values.limitNumberPerWalletEnabled?(0,n.tZ)(a.Z,{fullWidth:!0,variant:"filled",hiddenLabel:!0,placeholder:r("Max Number Can Mint"),id:"limitNumberPerWalletValue",name:"limitNumberPerWalletValue",type:"text",error:t.touched.limitNumberPerWalletValue&&!!t.errors.limitNumberPerWalletValue,helperText:t.touched.limitNumberPerWalletValue&&t.errors.limitNumberPerWalletValue,onChange:t.handleChange,value:t.values.limitNumberPerWalletValue}):null]})}),(0,n.tZ)(C,{isAdvance:!0,name:(0,n.BX)(n.HY,{children:[(0,n.tZ)(w,{name:"Restricted Access"}),(0,n.tZ)(d.Z,{variant:"body2",color:"text.secondary",children:"When turned on, an access code will be generated for you. Users will need this code in order to mint the NFT."})]}),input:(0,n.tZ)(l.Z,{direction:"column",justifyContent:"flex-end",alignItems:"flex-end",spacing:1,children:(0,n.tZ)(b.Z,{sx:{position:{xs:"absolute",sm:"relative"},right:0,top:{xs:"16px",sm:0}},id:"restrictedAccessEnabled",name:"restrictedAccessEnabled",onChange:t.handleChange,checked:t.values.restrictedAccessEnabled})})}),(0,n.tZ)(C,{isAdvance:!0,name:(0,n.BX)(n.HY,{children:[(0,n.tZ)(w,{name:"Royalty Percentage"}),(0,n.tZ)(d.Z,{variant:"body2",color:"text.secondary",children:"Set royalty from subsequent sales."})]}),input:(0,n.BX)(l.Z,{direction:"column",justifyContent:"flex-end",alignItems:"flex-end",spacing:1,children:[(0,n.tZ)(b.Z,{sx:{position:{xs:"absolute",sm:"relative"},right:0,top:{xs:"16px",sm:0}},id:"royaltyPercentageEnabled",name:"royaltyPercentageEnabled",onChange:t.handleChange,checked:t.values.royaltyPercentageEnabled}),t.values.royaltyPercentageEnabled?(0,n.BX)(n.HY,{children:[(0,n.tZ)(a.Z,{variant:"filled",hiddenLabel:!0,fullWidth:!0,placeholder:r("Royalty Percentage"),id:"royaltyPercentageValue",name:"royaltyPercentageValue",type:"text",error:t.touched.royaltyPercentageValue&&!!t.errors.royaltyPercentageValue,helperText:t.touched.royaltyPercentageValue&&t.errors.royaltyPercentageValue&&r("Must be a number."),onChange:t.handleChange,value:t.values.royaltyPercentageValue,InputProps:{endAdornment:(0,n.tZ)(c.Z,{position:"end",children:"%"})}}),(0,n.tZ)(d.Z,{variant:"body2",color:"text.secondary",children:r("Please note royalty is honored by individual marketplaces and are not enforcable by the smart contract.")})]}):null]})}),(0,n.tZ)(C,{isAdvance:!0,name:(0,n.BX)(n.HY,{children:[(0,n.tZ)(w,{name:"Allow Member To Transfer"}),(0,n.tZ)(d.Z,{variant:"body2",color:"text.secondary",children:"When turned off, NFT will be soulbound, members will not be able to transfer or sell the NFT."})]}
1),input:(0,n.tZ)(l.Z,{direction:"column",justifyContent:"flex-end",alignItems:"flex-end",spacing:1,children:(0,n.tZ)(b.Z,{sx:{position:{xs:"absolute",sm:"relative"},right:0,top:{xs:"16px",sm:0}},id:"allowMemberToTransfer",name:"allowMemberToTransfer",onChange:t.handleChange,checked:t.values.allowMemberToTransfer})})}),(0,n.tZ)(C,{isAdvance:!0,name:(0,n.BX)(n.HY,{children:[(0,n.tZ)(w,{name:"Deploy ERC6551 TBA (Coming Soon)"}),(0,n.tZ)(d.Z,{variant:"body2",color:"text.secondary",children:"When turned on, all NFT minted will have a tokenbound account deployed. This will increase gas fee during minting slightly."})]}),input:(0,n.tZ)(l.Z,{direction:"column",justifyContent:"flex-end",alignItems:"flex-end",spacing:1,children:(0,n.tZ)(b.Z,{sx:{position:{xs:"absolute",sm:"relative"},right:0,top:{xs:"16px",sm:0}},id:"deployErc6551Tba",name:"deployErc6551Tba",disabled:!0})})})]}),(0,n.tZ)(l.Z,{flexDirection:"row",justifyContent:"flex-end",my:6,children:(0,n.tZ)(Z.Z,{variant:"contained",type:"submit",disabled:!(0,y.p)({current:N.network}),children:r("Review")})})]})}},66396:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var n,i,a=r(52903),o=r(47746),l=r(42453),d=r(43411),c=r(5007),s=r(62197),u=r(73454),m=r(2784);function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var Z=function(e){return m.createElement("svg",h({width:48,height:48,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=m.createElement("path",{d:"M42 24a18 18 0 1 1-36.001 0A18 18 0 0 1 42 24Z",fill:"#D3E97B"})),i||(i=m.createElement("path",{d:"M27 33a1.5 1.5 0 0 1-1.5 1.5 3 3 0 0 1-3-3V24a1.5 1.5 0 0 1 0-3 3 3 0 0 1 3 3v7.5A1.5 1.5 0 0 1 27 33Zm16.5-9A19.5 19.5 0 1 1 24 4.5 19.52 19.52 0 0 1 43.5 24Zm-3 0A16.5 16.5 0 1 0 24 40.5 16.519 16.519 
10 0 0 40.5 24Zm-17.25-6a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5Z",fill:"#356350"})))},p=e=>{let{type:t}=e,r=(0,o.Z)().palette,{t:n}=(0,u.$G)("common");return(0,a.tZ)(l.Z,{sx:{width:"100%",background:r.white.main,borderRadius:"16px",padding:"20px"},children:(0,a.BX)(d.Z,{direction:"row",width:1,justifyContent:"center",alignItems:"center",spacing:2,children:[(0,a.tZ)(c.Z,{component:Z,inheritViewBox:!0,sx:{height:48,width:48}}),(0,a.tZ)(d.Z,{direction:"column",children:t?(0,a.tZ)(s.Z,{variant:"body2",color:r.black.main,mt:.5,children:n("COMMUNITY_SECTION_NFT_MODIFY_DESCRIPTION")}):(0,a.BX)(a.HY,{children:[(0,a.tZ)(s.Z,{variant:"h6",color:r.black.main,children:n("Important information before creating a new drop")}),(0,a.tZ)(s.Z,{variant:"body2",color:r.black.main,mt:.5,children:n("Currently we only support NFT drops on Ethereum. We are working on integrating more blockchains.\nCreating a new drop on Atticc is free. Atticc charges 1% of minting sales, e.g. if price is 1ETH, Atticc receives 0.01ETH and creator receives 0.99ETH from each mint. No charge is applied to free mints.")})]})})]})})}},77522:function(e,t,r){"use strict";var n=r(52903),i=r(65992),a=r(61640);let o=(0,i.ZP)("span")(e=>{let{theme:t}=e;return{borderRadius:"50%",width:20,height:20,backgroundColor:t.palette.background.default,borderWidth:1,borderStyle:"solid",borderColor:t.palette.strokeColor.main,".Mui-focusVisible &":{backgroundColor:t.palette.background.paper},"input:hover ~ &":{backgroundColor:t.palette.background.paper},"input:disabled ~ &":{opacity:.4,backgroundColor:t.palette.background.default}}}),l=(0,i.ZP)(o)(e=>{let{theme:t}=e;return{"&:before":{display:"block",width:10,height:10,backgroundColor:t.palette.secondary.main,borderRadius:"50%",margin:4,content:'""'}}});t.Z=function(e){return(0,n.tZ)(a.Z,{disableRipple:!0,color:"default",checkedIcon:(0,n.tZ)(l,{}),icon:(0,n.tZ)(o,{}),...e})}},2012:function(e,t,r){"use strict";var n=r(52903),i=r(65992),a=r(32446);let o=(0,i.ZP)(e=>(0,n.tZ)(a.Z,{InputLabelProps:{shrink:!0},InputProps:{disableUnderline:!0},...e}))(e=>{var t;let{theme:r,...n}=e;return{"& .MuiFilledInput-root":{overflow:"hidden",borderRadius:8,backgroundColor:r.palette.black.main,border:"1px solid",borderColor:r.palette.strokeColor.main,paddingLeft:16,paddingRight:16,"& input":{paddingLeft:0,paddingRight:0,paddingBottom:8,paddingTop:n.hiddenLabel?8:22,fontSize:16,lineHeight:"24px"},"&:hover":{backgroundColor:r.palette.background.paper},"&.Mui-focused":{backgroundColor:r.palette.black.main,borderColor:r.palette.white.main},"&.Mui-disabled input":{opacity:n.value?.4:.6},"&.Mui-disabled":{borderColor:r.palette.black.main,backgroundColor:r.palette.black.main},"& div.MuiInputAdornment-root":{marginTop:"0 !important"},"&.Mui-disabled div.MuiInputAdornment-root ":{opacity:.3},"&::before":{display:"none"},"&::after":{display:"none"}},"& .MuiInputLabel-root":{fontSize:12,lineHeight:"11px",fontWeight:400,top:4,left:(null===(t=n.InputProps)||void 0===t?void 0:t.startAdornment)?32:6,"&.Mui-focused":{color:r.palette.text.secondary},"&.Mui-disabled":{opacity:.3}}}});t.Z=o},65649:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return V},default:function(){return X}});var n,i,a=r(52903),o=r(2784),l=r(43411),d=r(62197),c=r(85801),s=r(5007),u=r(107),m=r(89005),h=r(8204),Z=r(73454),p=r(4707),b=r(24511),y=r(95676),g=r(48676),v=r(5588),f=r(47746),x=r(74905),w=r(38738),C=r(11163),N=r(72841),T=r(30093),k=e=>{let{open:t,handleClose:r}=e,{t:n}=(0,Z.$G)("common");return(0,a.BX)(T.Z,{open:t,title:n("Confirming"),children:[(0,a.tZ)(d.Z,{children:n("COMMUNITY_CREATE_WARNING")}),(0,a.tZ)(d.Z,{color:"primary",pt:2,children:n("Only Ethereum mainnet supported at this moment.")}),(0,a.tZ)(l.Z,{alignItems:"center",justifyContent:"center",py:4,children:(0,a.tZ)(N.Z,{color:"secondary"})})]})},E=r(39227),P=r(41202),I=r(86838),R=r(28093),A=r(64321),_=r(57892),M=r(75398);let S=e=>{let{name:t,required:r=!1}=e,n=(0,f.Z)().palette,{t:i}=(0,Z.$G)("common");return(0,a.BX)(l.Z,{flexDirection:"row",mb:"16px",children:[(0,a.tZ)(d.Z,{variant:"bodyBold1",children:i(t)}),r&&(0,a.tZ)(d.Z,{color:n.primary.main,children:"*"})]})},B=e=>{let{name:t,input:r,hideBorder:n=!1,mobileColumnDirection:i}=e;return(0,a.BX)(l.Z,{width:1,direction:{xs:i?"column":"row",sm:"row"},justifyContent:"space-between",py:2,spacing:4,sx:{borderBottomWidth:n?0:1,borderBottomStyle:"solid",borderBottomColor:e=>e.palette.strokeColor.main},children:[(0,a.tZ)(l.Z,{direction:"column",width:{xs:1,sm:.5},alignItems:"flex-start",spacing:1,children:t}),(0,a.tZ)(l.Z,{direction:"column",width:1,alignItems:{xs:i?"flex-start":"flex-end",sm:"flex-end"},spacing:1,children:r})]})};var F=e=>{let{formik:t,handleBack:r}=e,{t:n}=(0,Z.$G)("common"),i=(0,C.useRouter)(),{deploy:o,deployLoading:c}=(0,E.Z)(),{address:s,network:u}=(0,R.Z)(),m=async()=>{I.ZP.log("click",{item_name:"create-community-creation",wallet_address:s});try{var e,r;let{communityNFTName:a,description:l,quantity:d,price:c,limitNumberPerWalletEnabled:m,limitNumberPerWalletValue:h,restrictedAccessEnabled:Z,royaltyPercentageValue:p,allowMemberToTransfer:b,NFTImage:y,NFTImageFile:g}=t.values,v=(0,P.kb)(6),f={name:a,symbol:a.split(" ").map(e=>e.toUpperCase().substring(0,1)).join("").slice(0,4),totalSupply:+d,price:c,description:l,maxPerWallet:m?+h:0,accessCode:Z?v:"",NFTImage:y,NFTImageFile:g,royaltyAmount:100*+p,isTransferable:!!b},x="production"===A.lC?A.Networks.Ethereum:A.Networks.Sepolia;if(u.network!==x.network||'"injected"'===localStorage.getItem("WEB3_CONNECT_CACHED_PROVIDER")&&(null===(e=window)||void 0===e?void 0:e.ethereum)&&(null===(r=window.ethereum)||void 0===r?void 0:r.chainId)!==M.hexValue(x.id))throw(0,_.Am)(n("INPUT_COMMUNITY_NETWORK_DESC")),Error(n("INPUT_COMMUNITY_NETWORK_DESC"));let w=await o(f);w&&(I.ZP.log("community_created",{wallet_address:s,community_name:a,community_address:w}),i.push("/c/".concat(w,"/posts?isCreation=true")))}catch(e){console.warn(e)}};return(0,a.BX)(l.Z,{direction:"column",children:[(0,a.tZ)(d.Z,{variant:"h6",py:2,children:n("Drop Information")}),(0,a.tZ)(l.Z,{direction:"column",width:1,children:(0,a.tZ)(B,{mobileColumnDirection:!0,name:(0,a.tZ)(S,{name:"Drop Name",required:!0}
1),input:(0,a.tZ)(d.Z,{children:t.values.communityNFTName})})}),(0,a.tZ)(l.Z,{direction:"column",width:1,children:(0,a.tZ)(B,{name:(0,a.tZ)(S,{name:"Quantity",required:!0}),input:(0,a.tZ)(d.Z,{children:"0"===t.values.quantity?n("Unlimited"):t.values.quantity})})}),(0,a.tZ)(l.Z,{direction:"column",width:1,children:(0,a.tZ)(B,{name:(0,a.tZ)(S,{name:"Price",required:!0}),input:(0,a.BX)(d.Z,{children:[t.values.price," ETH"]})})}),(0,a.tZ)(l.Z,{direction:"column",width:1,children:(0,a.tZ)(B,{name:(0,a.tZ)(S,{name:"NFT Image",required:!0}),input:(0,a.tZ)(x.Z,{component:"img",sx:{maxHeight:120,maxWidth:120},image:t.values.NFTImage})})}),(0,a.tZ)(l.Z,{direction:"column",width:1,children:(0,a.tZ)(B,{mobileColumnDirection:!0,name:(0,a.tZ)(S,{name:"Description",required:!0}),input:(0,a.tZ)(d.Z,{textAlign:{xs:"left",sm:"right"},children:t.values.description})})}),(0,a.tZ)(d.Z,{variant:"h6",my:4,children:n("COMMUNITY_SECTION_NFT_ADVANCED_SETTINGS")}),(0,a.tZ)(l.Z,{direction:"column",width:1,children:(0,a.tZ)(B,{name:(0,a.tZ)(S,{name:"Limit Number Per Wallet",required:!0}),input:t.values.limitNumberPerWalletEnabled?(0,a.tZ)(d.Z,{children:t.values.limitNumberPerWalletValue}):(0,a.tZ)(w.Z,{checked:t.values.limitNumberPerWalletEnabled,disabled:!0})})}),(0,a.tZ)(l.Z,{direction:"column",width:1,children:(0,a.tZ)(B,{name:(0,a.tZ)(S,{name:"Restricted Access",required:!0}),input:(0,a.tZ)(w.Z,{checked:t.values.restrictedAccessEnabled,disabled:!0})})}),(0,a.tZ)(l.Z,{direction:"column",width:1,children:(0,a.tZ)(B,{name:(0,a.tZ)(S,{name:"Royalty Percentage",required:!0}),input:t.values.royaltyPercentageEnabled?(0,a.BX)(d.Z,{children:[t.values.royaltyPercentageValue||0,"%"]}):(0,a.tZ)(w.Z,{checked:t.values.royaltyPercentageEnabled,disabled:!0})})}),(0,a.tZ)(l.Z,{direction:"column",width:1,children:(0,a.tZ)(B,{name:(0,a.tZ)(S,{name:"Allow Member To Transfer",required:!0}),input:(0,a.tZ)(w.Z,{checked:t.values.allowMemberToTransfer,disabled:!0})})}),(0,a.tZ)(l.Z,{direction:"column",width:1,children:(0,a.tZ)(B,{name:(0,a.tZ)(S,{name:"Deploy ERC6551 TBA (Coming Soon)",required:!0}),input:(0,a.tZ)(w.Z,{checked:!1,disabled:!0})})}),(0,a.BX)(l.Z,{direction:"row",justifyContent:"space-between",my:6,children:[(0,a.tZ)(h.Z,{variant:"text",onClick:r,children:n("Back")}),(0,a.tZ)(h.Z,{variant:"contained",onClick:m,children:n("Create")})]}),(0,a.tZ)(k,{open:c})]})},W=r(89115),q=r(76005),D=r(91959);(n=i||(i={}))[n.CREATE=0]="CREATE",n[n.REVIEW=1]="REVIEW";var V=!0,X=()=>{let{t:e}=(0,Z.$G)(),{network:t,switchNetwork:r,address:n}=(0,R.Z)(),[f,x]=(0,o.useState)(i.CREATE),w=(0,C.useRouter)(),N=e=>{x(e)},T=b.Ry().shape({communityNFTName:b.Z_().min(2,"Too Short!").max(30,"Too Long!").matches(/^[a-zA-Z0-9\s]*$/g,"No special symbol allowed").required("Required"),quantity:b.Rx().min(0).required("Required"),NFTImage:b.Z_().min(2,"Image invalid").required("Required"),NFTImageFile:b.nK().required("Required"),price:b.Rx().required("Required"),description:b.Z_().required("Required"),limitNumberPerWalletEnabled:b.O7(),limitNumberPerWalletValue:b.Rx().when("limitNumberPerWalletEnabled",{is:!0,then:b.Rx().min(1,"Minimun value should be 1").required("Required")}),restrictedAccessEnabled:b.O7(),royaltyPercentageEnabled:b.O7(),royaltyPercentageValue:b.Rx().when("royaltyPercentageEnabled",{is:!0,then:b.Rx().min(1,"Minimun value should be 1").max(100,"Maximum value should be 100").required("Required")}),allowMemberToTransfer:b.O7()}),k=(0,p.TA)({initialValues:{communityNFTName:"",quantity:"",NFTImage:"",NFTImageFile:null,price:"",description:"",limitNumberPerWalletEnabled:!1,limitNumberPerWalletValue:"",restrictedAccessEnabled:!1,royaltyPercentageEnabled:!1,royaltyPercentageValue:"",allowMemberToTransfer:!0},validationSchema:T,onSubmit:e=>{I.ZP.log("click",{item_name:"review-community-creation",wallet_address:n}),N(i.REVIEW)}}),E={[i.CREATE]:{title:e("Create Drop"),component:(0,a.tZ)("form",{onSubmit:k.handleSubmit,style:{width:"100%"},children:(0,a.tZ)(v.Z,{formik:k})})},[i.REVIEW]:{title:e("Review"),component:(0,a.tZ)(F,{formik:k,handleBack:()=>{x(i.CREATE)}})}},P="production"===A.lC?A.Networks.Ethereum:A.Networks.Sepolia;return(0,a.tZ)(y.Z,{children:(0,a.BX)(g.Z,{children:[(0,a.BX)(l.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",width:1,spacing:1,children:[(0,a.tZ)(d.Z,{variant:"h4",children:E[f].title}),(0,a.tZ)(c.Z,{color:"white",size:"medium",onClick:()=>{window.history.state&&window.history.state.idx>0?w.back():w.replace("/drops")},children:(0,a.tZ)(s.Z,{color:"inherit",component:D.Z,inheritViewBox:!0,fontSize:"inherit"})})]}),!(0,W.p)({current:t.network})&&(0,a.BX)(u.Z,{severity:"warning",sx:{mb:2,borderRadius:"18px"},children:[(0,a.tZ)(m.Z,{children:"Switch network"}),"You’re currently using ",(0,a.tZ)("b",{children:"an unsupported network"}),", please switch to\xa0",(0,a.tZ)("b",{children:(0,q.O)(P.name)})," to create new community.",(0,a.tZ)(l.Z,{justifyContent:"center",children:(0,a.tZ)(h.Z,{onClick:()=>r(P.network),children:"Switch Now"})})]}),E[f].component]})})}},76005:function(e,t,r){"use strict";r.d(t,{O:function(){return n},g:function(){return i}});let n=e=>{var t;return(null===(t=e.match(/[A-Z][a-z]+|[0-9]+/g))||void 0===t?void 0:t.join(" "))||e},i=e=>e.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,t){return 0===t?e.toLowerCase():e.toUpperCase()}).replace(/\s+/g,"")},72841:function(e,t,r){"use strict";r.d(t,{Z:function(){return I}});
1var n=r(26831),i=r(28193),a=r(2784),o=r(40489),l=r(49863),d=r(28165),c=r(7342),s=r(43853),u=r(65992),m=r(20411),h=r(51538);function Z(e){return(0,h.Z)("MuiCircularProgress",e)}(0,m.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var p=r(52322);let b=["className","color","disableShrink","size","style","thickness","value","variant"],y=e=>e,g,v,f,x,w=(0,d.F4)(g||(g=y`
2  0% {
3    transform: rotate(0deg);
4  }
5
6  100% {
7    transform: rotate(360deg);
8  }
9`)),C=(0,d.F4)(v||(v=y`
10  0% {
11    stroke-dasharray: 1px, 200px;
12    stroke-dashoffset: 0;
13  }
14
15  50% {
16    stroke-dasharray: 100px, 200px;
17    stroke-dashoffset: -15px;
18  }
19
20  100% {
21    stroke-dasharray: 100px, 200px;
22    stroke-dashoffset: -125px;
23  }
24`)),N=e=>{let{classes:t,variant:r,color:n,disableShrink:i}=e,a={root:["root",r,`color${(0,c.Z)(n)}`],svg:["svg"],circle:["circle",`circle${(0,c.Z)(r)}`,i&&"circleDisableShrink"]};return(0,l.Z)(a,Z,t)},T=(0,u.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t[`color${(0,c.Z)(r.color)}`]]}})(({ownerState:e,theme:t})=>(0,i.Z)({display:"inline-block"},"determinate"===e.variant&&{transition:t.transitions.create("transform")},"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>"indeterminate"===e.variant&&(0,d.iv)(f||(f=y`
25      animation: ${0} 1.4s linear infinite;
26    `),w)),k=(0,u.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),E=(0,u.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.circle,t[`circle${(0,c.Z)(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>(0,i.Z)({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&(0,d.iv)(x||(x=y`
27      animation: ${0} 1.4s ease-in-out infinite;
28    `),C)),P=a.forwardRef(function(e,t){let r=(0,s.Z)({props:e,name:"MuiCircularProgress"}),{className:a,color:l="primary",disableShrink:d=!1,size:c=40,style:u,thickness:m=3.6,value:h=0,variant:Z="indeterminate"}=r,y=(0,n.Z)(r,b),g=(0,i.Z)({},r,{color:l,disableShrink:d,size:c,thickness:m,value:h,variant:Z}),v=N(g),f={},x={},w={};if("determinate"===Z){let e=2*Math.PI*((44-m)/2);f.strokeDasharray=e.toFixed(3),w["aria-valuenow"]=Math.round(h),f.strokeDashoffset=`${((100-h)/100*e).toFixed(3)}px`,x.transform="rotate(-90deg)"}return(0,p.jsx)(T,(0,i.Z)({className:(0,o.Z)(v.root,a),style:(0,i.Z)({width:c,height:c},x,u),ownerState:g,ref:t,role:"progressbar"},w,y,{children:(0,p.jsx)(k,{className:v.svg,ownerState:g,viewBox:"22 22 44 44",children:(0,p.jsx)(E,{className:v.circle,style:f,ownerState:g,cx:44,cy:44,r:(44-m)/2,fill:"none",strokeWidth:m})})}))});var I=P}},function(e){e.O(0,[4080,3714,677,5209,8003,1664,9381,4836,7643,5992,5192,4394,8903,6057,2446,2642,171,8753,1683,7539,5406,3497,8659,8093,3515,9774,2888,179],function(){return e(e.s=36966)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.