var f=Object.create;var d=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var u=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty;var b=(o,i)=>{for(var n in i)d(o,n,{get:i[n],enumerable:!0})},a=(o,i,n,l)=>{if(i&&typeof i=="object"||typeof i=="function")for(let r of g(i))!x.call(o,r)&&r!==n&&d(o,r,{get:()=>i[r],enumerable:!(l=S(i,r))||l.enumerable});return o};var p=(o,i,n)=>(n=o!=null?f(u(o)):{},a(i||!o||!o.__esModule?d(n,"default",{value:o,enumerable:!0}):n,o)),h=o=>a(d({},"__esModule",{value:!0}),o);var F={};b(F,{default:()=>C});module.exports=h(F);var e=require("@chakra-ui/react"),m=p(require("@emotion/styled"),1),s=require("@solana/web3.js"),W=require("react"),t=require("react/jsx-runtime"),T="https://docs.bonfida.org/collection/naming-service/how-to-create-a-solana-domain-name/purchasing-a-domain-name/direct-registration",z=(0,m.default)(e.Flex)`
  position: relative;
`,w=({size:o,setSize:i,loading:n,subTotalPrice:l})=>(0,t.jsxs)(z,{paddingY:4,flexDir:"column",alignItems:"center",children:[(0,t.jsxs)(e.Slider,{defaultValue:0,min:1,max:10,step:1,w:"94%",onChange:c=>{i(c)},value:o,children:[(0,t.jsxs)(e.SliderTrack,{bg:"muted",children:[(0,t.jsx)(e.Box,{position:"relative",right:10}),(0,t.jsx)(e.SliderFilledTrack,{bg:"mutedForeground"})]}),(0,t.jsx)(e.SliderThumb,{boxSize:4,borderColor:"mutedForeground",borderWidth:"1"})]}),(0,t.jsxs)(e.Flex,{justifyContent:"space-between",w:"full",mt:"1",children:[(0,t.jsx)(e.Text,{fontSize:"12",children:"1 Kb"}),(0,t.jsx)(e.Text,{fontSize:"12",children:"10 Kb"})]}),(0,t.jsxs)(e.Flex,{w:"full",justifyContent:"space-between",children:[(0,t.jsxs)(e.Text,{fontSize:14,mt:4,fontWeight:"semibold",children:["Selected Size: ",`${o} Kb`]}),(0,t.jsx)(e.Text,{fontSize:14,mt:4,textDecoration:"underline",cursor:"pointer",onClick:()=>window.open(T),textAlign:"right",children:"How much storage is right for you?"})]}),(0,t.jsxs)(e.Flex,{w:"full",justifyContent:"space-between",alignItems:"center",children:[(0,t.jsx)(e.Text,{fontSize:14,mt:4,fontWeight:"bold",children:"Storage cost"}),(0,t.jsxs)(e.Flex,{alignItems:"flex-end",justifyContent:"center",mt:4,children:[n?(0,t.jsx)(e.Spinner,{size:"xs",mb:"1"}):(0,t.jsxs)(e.Text,{fontSize:14,fontWeight:"bold",children:["+",`${(l/s.LAMPORTS_PER_SOL).toFixed(5)}`]}),(0,t.jsx)(e.Text,{ml:"1",fontSize:14,fontWeight:"bold",children:"SOL"})]})]})]}),C=w;
