(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[489],{73804:function(){},39362:function(){},15325:function(){},22810:function(){},4368:function(e,t,n){"use strict";n.r(t),n.d(t,{Providers:function(){return N}});var s=n(57069),o=n(92819),r=n(39481),a=n(29054),i=n(70066),l=n(38997);let d=(0,o._)({chains:[a.R,i.F,l.Z],transports:{[a.R.id]:(0,r.d)(),[i.F.id]:(0,r.d)(),[l.Z.id]:(0,r.d)()}});var c=n(37609),f=n(39664),u=n(31557),m=n(33099),p=n(65490),x=n(42011),h=n(98516),b=n(31386),g=n(82198),v=n(83756),y=n(38344);let j=(0,c.R)({provider:(0,f.e)({apiKey:"0a102157-f921-4d4d-80cc-3672519ff2da"})}),w=new p.S,N=e=>{let{children:t}=e;return(0,s.jsx)(h.f,{attribute:"class",defaultTheme:"dark",enableSystem:!0,disableTransitionOnChange:!0,children:(0,s.jsx)(u.L,{client:j,children:(0,s.jsx)(m.rr,{appId:"clw2v14na0fmbsx895fy0e33e",config:{loginMethods:["wallet"],appearance:{theme:"dark",accentColor:"#FFF",logo:"https://i.postimg.cc/k4qX3DBz/Beige-and-White-Be-Yourself-Square-Pillow-4-1.png",showWalletLoginFirst:!1},defaultChain:l.Z,supportedChains:[g.u,v.y,a.R,l.Z]},children:(0,s.jsx)(y.F,{config:d,children:(0,s.jsx)(x.aH,{client:w,children:(0,s.jsx)(b.Suspense,{children:t})})})})})})}},61252:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return w}});var s=n(57069),o=n(34053),r=n(4585),a=n(33099),i=n(28292),l=n(31386),d=n(53851),c=n(203),f=n(92827),u=n(1682),m=n(10009);let p=d.v2;d.ZA,d.h_,d.Tr,d.Ee;let x=l.forwardRef((e,t)=>{let{className:n,...o}=e;return(0,s.jsx)(d.fC,{ref:t,className:(0,m.cn)("flex h-10 items-center space-x-1 rounded-md border bg-background p-1",n),...o})});x.displayName=d.fC.displayName;let h=l.forwardRef((e,t)=>{let{className:n,...o}=e;return(0,s.jsx)(d.xz,{ref:t,className:(0,m.cn)("flex cursor-default hover:cursor-pointer select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",n),...o})});h.displayName=d.xz.displayName,l.forwardRef((e,t)=>{let{className:n,inset:o,children:r,...a}=e;return(0,s.jsxs)(d.fF,{ref:t,className:(0,m.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",o&&"pl-8",n),...a,children:[r,(0,s.jsx)(c.Z,{className:"w-4 h-4 ml-auto"})]})}).displayName=d.fF.displayName,l.forwardRef((e,t)=>{let{className:n,...o}=e;return(0,s.jsx)(d.tu,{ref:t,className:(0,m.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n),...o})}).displayName=d.tu.displayName;let b=l.forwardRef((e,t)=>{let{className:n,align:o="start",alignOffset:r=-4,sideOffset:a=8,...i}=e;return(0,s.jsx)(d.h_,{children:(0,s.jsx)(d.VY,{ref:t,align:o,alignOffset:r,sideOffset:a,className:(0,m.cn)("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n),...i})})});b.displayName=d.VY.displayName;let g=l.forwardRef((e,t)=>{let{className:n,inset:o,...r}=e;return(0,s.jsx)(d.ck,{ref:t,className:(0,m.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 hover:bg-primary hover:cursor-pointer",o&&"pl-8",n),...r})});g.displayName=d.ck.displayName,l.forwardRef((e,t)=>{let{className:n,children:o,checked:r,...a}=e;return(0,s.jsxs)(d.oC,{ref:t,className:(0,m.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),checked:r,...a,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(d.wU,{children:(0,s.jsx)(f.Z,{className:"w-4 h-4"})})}),o]})}).displayName=d.oC.displayName,l.forwardRef((e,t)=>{let{className:n,children:o,...r}=e;return(0,s.jsxs)(d.Rk,{ref:t,className:(0,m.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...r,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(d.wU,{children:(0,s.jsx)(u.Z,{className:"w-2 h-2 fill-current"})})}),o]})}).displayName=d.Rk.displayName,l.forwardRef((e,t)=>{let{className:n,inset:o,...r}=e;return(0,s.jsx)(d.__,{ref:t,className:(0,m.cn)("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",n),...r})}).displayName=d.__.displayName;let v=l.forwardRef((e,t)=>{let{className:n,...o}=e;return(0,s.jsx)(d.Z0,{ref:t,className:(0,m.cn)("-mx-1 my-1 h-px bg-muted",n),...o})});v.displayName=d.Z0.displayName;var y=n(15717),j=n(27356),w=()=>{var e;let{user:t,logout:n,login:d,ready:c,authenticated:f}=(0,a.sv)(),u=(0,j.useRouter)();(0,j.usePathname)();let{userCollectionsSize:w,setUserCollectionsSize:N}=(0,r.o)(),k=async()=>{await n(),u.push("/")};return(0,l.useEffect)(()=>{t&&f&&(async()=>{await (0,o.r4)(t.id);let e=await (0,o.b)(t.id);await N(null==e?void 0:e.collectionsSize)})()},[t]),(0,s.jsx)("div",{className:"w-full p-8 mb-10",children:(0,s.jsxs)("nav",{className:"flex flex-col items-center justify-between px-4 sm:flex-row",children:[(0,s.jsx)(y.default,{href:"/",onClick:()=>(0,r.i)(),children:(0,s.jsx)("h1",{className:"mb-4 text-lg font-bold sm:mb-0",children:"FLERA Studio"})}),(0,s.jsx)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:gap-8",children:(0,s.jsxs)("div",{className:"gap-4 sm:flex sm:flex-row sm:items-center md:pr-[62px]",children:[t&&(0,s.jsx)(x,{children:(0,s.jsxs)(p,{children:[(0,s.jsx)(h,{children:(0,m.T)(null===(e=t.wallet)||void 0===e?void 0:e.address)}),(0,s.jsxs)(b,{children:[(0,s.jsx)("div",{className:"flex w-full justify-between px-2 py-1.5 text-sm text-muted-foreground",children:(0,s.jsxs)("div",{children:["Collections ",w,"/",Number("3")]})}),(0,s.jsx)(g,{disabled:!0,children:"My NFT Collections (soon)"}),(0,s.jsx)(g,{disabled:!0,children:"My Telegram Bots (soon)"}),(0,s.jsx)(v,{}),(0,s.jsx)(g,{onClick:k,children:"Logout"})]})]})}),!t&&(0,s.jsx)(i.Z,{onClick:()=>{d()},children:c?"Sign In":"Loading..."})]})})]})})}},34053:function(e,t,n){"use strict";n.d(t,{b:function(){return o},iq:function(){return a},r4:function(){return r}}),n(75958);var s=n(64e3),o=(0,s.$)("5fc37d441b4f8c601f5881cfb23c6aaf7a31c3fe"),r=(0,s.$)("b38d85445695a422f1f598eb564713b278f471bc"),a=(0,s.$)("c0247405ae273225b439d6541abf4eb3ce666155")},4585:function(e,t,n){"use strict";n.d(t,{i:function(){return o},o:function(){return s}});let s=(0,n(48502).Ue)(e=>({questions:[],collectionMode:void 0,collectionSize:0,collectionRatio:"square",ownerAddress:"",tokenSupply:0,tokenPrice:0,controlImageUrl:"",collectionImages:[],collectionIpfsHash:void 0,collectionAttributes:"",userCollectionsSize:0,setCollectionAttributes:t=>e({collectionAttributes:t}),setCollectionIpfsHash:t=>e({collectionIpfsHash:t}),setCollectionImages:t=>e({collectionImages:t}),setControlImageUrl:t=>e({controlImageUrl:t}),setTokenPrice:t=>e({tokenPrice:t}),setTokenSupply:t=>e({tokenSupply:t}),setOwnerAddress:t=>e({ownerAddress:t}),setCollectionRatio:t=>e({collectionRatio:t}),setColelctionSize:t=>e({collectionSize:t}),setQuestions:t=>e({questions:t}),setCollectionMode:t=>e({collectionMode:t}),setUserCollectionsSize:t=>e({userCollectionsSize:t})})),o=()=>{s.setState({questions:[],collectionMode:void 0,collectionSize:0,collectionRatio:"square",ownerAddress:"",tokenSupply:0,tokenPrice:0,controlImageUrl:"",collectionImages:[],collectionIpfsHash:void 0,collectionAttributes:""})}},10009:function(e,t,n){"use strict";n.d(t,{T:function(){return a},cn:function(){return r}});var s=n(89825),o=n(92094);function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.m6)((0,s.W)(t))}let a=e=>"".concat(null==e?void 0:e.substring(0,4),"...").concat(null==e?void 0:e.substring(e.length-4))},28292:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var s=n(57069),o=n(31386),r=n(36470),a=n(76693),i=n(10009);let l=(0,a.j)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),d=o.forwardRef((e,t)=>{let{className:n,variant:o,size:a,asChild:d=!1,...c}=e,f=d?r.g7:"button";return(0,s.jsx)(f,{className:(0,i.cn)(l({variant:o,size:a,className:n})),ref:t,...c})});d.displayName="Button"}}]);