PageSourceSearch

https://nobitex.ir/_next/static/chunks/app/%5Blocale%5D/(main)/pricing/page-992e2c8bcb548756.js?dpl=fd6b1e367

js nobitex.ir collected 2026-10-03 19:16:05 UTC 80,544 bytes, 2 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];if(null!=l)for(var r in l)l.hasOwnProperty(r)&&(e[r]=l[r])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:landing-next":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ad690c40-ad39-4cec-b2cc-e30c79a4b035",e._sentryDebugIdIdentifier="sentry-dbid-ad690c40-ad39-4cec-b2cc-e30c79a4b035")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6115],{3432:(e,t,l)=>{"use strict";l.d(t,{A:()=>C});var r=l(67870),a=l(10725),s=l(23128),i=l(28255),n=l(37545),o=l(63716),d=l(56919),c=l(53537),u=Object.defineProperty,m=Object.defineProperties,x=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,h=(e,t,l)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l,f=(e,t)=>{for(var l in t||(t={}))g.call(t,l)&&h(e,l,t[l]);if(b)for(var l of b(t))p.call(t,l)&&h(e,l,t[l]);return e};let y={neutral:{default:"text-txt-neutral-default dark:text-txt-neutral-default",fixed:"text-txt-neutral-fixed dark:text-txt-neutral-fixed",low:"text-txt-neutral-low dark:text-txt-neutral-low",medium:"text-txt-neutral-medium dark:text-txt-neutral-medium",reversed:"text-txt-neutral-reversed dark:text-txt-neutral-reversed"},error:{default:"text-txt-error-default dark:text-txt-error-default",fixed:"text-txt-error-fixed dark:text-txt-error-fixed",high:"text-txt-error-high dark:text-txt-error-high"},info:{default:"text-txt-info-default dark:text-txt-info-default",fixed:"text-txt-info-fixed dark:text-txt-info-fixed",high:"text-txt-info-high dark:text-txt-info-high"},primary:{default:"text-txt-primary-default dark:text-txt-primary-default",fixed:"text-txt-primary-fixed dark:text-txt-primary-fixed",high:"text-txt-primary-high dark:text-txt-primary-high"},success:{default:"text-txt-success-default dark:text-txt-success-default",fixed:"text-txt-success-fixed dark:text-txt-success-fixed",high:"text-txt-success-high dark:text-txt-success-high"},warning:{default:"text-txt-warning-default dark:text-txt-warning-default",fixed:"text-txt-warning-fixed dark:text-txt-warning-fixed",high:"text-txt-warning-high dark:text-txt-warning-high"}},j={"body-bold-large":"text-body-bold-large","body-bold-medium":"text-body-bold-medium","body-bold-small":"text-body-bold-small","body-large":"text-body-large","body-medium":"text-body-medium","body-small":"text-body-small","headline-large":"text-headline-large","headline-medium":"text-headline-medium","headline-small":"text-headline-small","headline-xLarge":"text-headline-xLarge","headline-xSmall":"text-headline-xSmall"},v={"body-large":"text-body-large","body-medium":"text-body-medium","body-small":"text-body-small","caption-large":"text-caption-large","caption-medium":"text-caption-medium","caption-small":"text-caption-small","headline-medium":"text-headline-medium","headline-xSmall":"text-headline-xSmall"},w={"headline-large":"h-24 w-120","headline-xLarge":"h-24 w-120","headline-medium":"h-20 w-96","headline-small":"h-20 w-96","headline-xSmall":"h-16 w-80","body-bold-large":"h-16 w-96","body-bold-medium":"h-16 w-80","body-bold-small":"h-12 w-64","body-large":"h-16 w-80","body-medium":"h-16 w-80","body-small":"h-12 w-64"},k={"headline-medium":"h-20 w-96","headline-xSmall":"h-16 w-80","body-large":"h-16 w-80","body-medium":"h-16 w-80","body-small":"h-12 w-64","caption-large":"h-12 w-64","caption-medium":"h-12 w-64","caption-small":"h-10 w-50"},N=e=>{let{children:t,content:l,position:s="bottom"}=e,[n,d]=(0,a.useState)(!1),u=(0,a.useRef)(null),{context:b,refs:g,floatingStyles:p}=(0,i.we)({strategy:"absolute",placement:null!=s?s:"top",middleware:[(0,c.cY)(12),(0,c.UE)({element:u})],open:n,onOpenChange:d}),h=(0,i.Mk)(b),{getReferenceProps:y,getFloatingProps:j}=(0,i.bv)([h]);return r.j.jsxs("div",{children:[r.j.jsx("div",m(f({ref:g.setReference},y),x({children:t}))),n&&r.j.jsxs("div",m(f({style:p,ref:g.setFloating,className:"flex items-center text-paragraph-small text-txt-neutral-default justify-center rounded-medium bg-bg-surface-3 p-12 pt-8"},j),x({children:["string"==typeof l?r.j.jsx("p",{children:l}):l,r.j.jsx(i.ie,{context:b,ref:u,fill:o.W["bg-surface-3"]})]})))]})},C=e=>{let t;var{fontSize:l,variant:a,type:i,children:c,priority:u,tooltip:h,className:C,wrapperComponent:S,isSkeleton:$=!1}=e,P=((e,t)=>{var l={};for(var r in e)g.call(e,r)&&0>t.indexOf(r)&&(l[r]=e[r]);if(null!=e&&b)for(var r of b(e))0>t.indexOf(r)&&p.call(e,r)&&(l[r]=e[r]);return l})(e,["fontSize","variant","type","children","priority","tooltip","className","wrapperComponent","isSkeleton"]);let z="simple"===i?j[l]:v[l];
1if(t="neutral"===a?y.neutral[u]:y[a][u],$){let e="simple"===i?w[l]:k[l];return r.j.jsx(n.A,{uniqueKey:`text-loading-${i}-${l}-${a}-${u}`,backgroundColor:o.W["bg-neutral-skeleton-shimmer-high"],foregroundColor:o.W["bg-neutral-skeleton-low"],className:(0,s.$)("inline-block","rounded-full",e,C),preserveAspectRatio:"none",children:r.j.jsx("rect",{x:"0%",y:"0%",width:"100%",height:"100%"})})}let O=(null==S?void 0:S.type)||r.j.jsx("div",{}).type;return h?r.j.jsx(N,{content:h.content,position:h.position,children:r.j.jsx(O,m(f({className:(0,s.$)(z,t,{"border-b-xSmall border-b-br-neutral-high border-dashed pb-2":h},C)},(0,d.A)(["dataTestId"])(P)),x({"data-testid":P.dataTestId,children:c})))}):r.j.jsx(O,m(f({className:(0,s.$)(z,t,C)},(0,d.A)(["dataTestId"])(P)),x({"data-testid":P.dataTestId,children:c})))}},3938:(e,t,l)=>{"use strict";l.d(t,{LocalNav:()=>m});var r=l(10401),a=l(17310),s=l(46761),i=l(10725),n=l(33815),o=l(97249);let d="!text-txt-neutral-default bg-bg-neutral-default-rest rounded-medium",c="px-8  text-txt-neutral-medium text-body-medium h-40 flex items-center cursor-pointer",u=["trade","margin","crypto","irtDeposit","irtProcess"],m=e=>{let{className:t}=e,{y:l}=(0,o.A)(),[m,x]=(0,i.useState)(u[0]),{t:b}=(0,n.Bd)(["pricing"]),g=(0,i.useRef)(new Map);(0,i.useLayoutEffect)(()=>{g.current.size<=0&&u.map(e=>{document.getElementById(e)&&g.current.set(e,{element:document.getElementById(e),label:e})})},[]),(0,i.useLayoutEffect)(()=>{0!==g.current.size&&(0===l?x(u[0]):g.current.forEach((e,t)=>{let{element:r}=e;r&&l<=r.offsetTop+r.clientHeight&&l>=r.offsetTop-100&&x(t)}))},[l]);let p=e=>{let t=g.current.get(e);(0,a.Bd)()&&t?.element&&window.scrollTo({top:t.element.offsetTop-100,behavior:"smooth"})};return(0,r.jsxs)("aside",{className:(0,s.A)(t,"p-12 gap-16 h-fit sticky top-[100px]"),children:[(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)("div",{className:"px-8 pt-8 pb-4 text-txt-neutral-medium text-body-small flex items-center",children:b("trade")}),["tradeTitle","marginTable.title"].map((e,t)=>(0,r.jsx)("div",{onClick:()=>p(u[t]),className:(0,s.A)(c,{[d]:m===u[t]}),children:b(e)},e))]}),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)("div",{className:"px-8 pt-8 pb-4 text-txt-neutral-medium text-body-small flex items-center",children:b("depositWithdraw")}),["cryptoTitle","irtTitle","tomanProcess"].map((e,t)=>(0,r.jsx)("div",{onClick:()=>p(u[t+2]),className:(0,s.A)(c,{[d]:m===u[t+2]}),children:b(e)},e))]})]})}},7778:(e,t,l)=>{"use strict";let r,a;l.d(t,{h:()=>s});var s=((r=s||{}).RIAL="IRT",r.TETHER="USDT",r),i=((a=i||{}).CURRENCY="Currency",a.MARKET="market",a)},8392:(e,t,l)=>{"use strict";l.d(t,{W:()=>g});var r=l(67870),a=l(23128),s=l(76077),i=l(75337),n=Object.defineProperty,o=Object.defineProperties,d=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,x=(e,t,l)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l,b=(e,t)=>{for(var l in t||(t={}))u.call(t,l)&&x(e,l,t[l]);if(c)for(var l of c(t))m.call(t,l)&&x(e,l,t[l]);return e};let g=e=>{var t,l,n,c,u,m,x,g,p;let h,f,{market:y,size:j="medium",titleTypes:v=["name","name"],subtitleTypes:w=["symbol","symbol"],contrast:k="low",getCurrencyLogo:N,hideAvatars:C=!1,hasSecondaryInfo:S=!0,hideDestinationTitle:$=!1,subtitleValue:P,extraTitleContent:z,translateFunction:O=e=>e,dir:T="rtl",hideSecondAvatar:_,containerClassName:A="",disabled:I=!1,imageComponent:L,onLogoClick:R}=e,E=(0,i.u)(),D={display:(0,a.$)("text-headline-small"),large:(0,a.$)("text-body-bold-medium"),medium:(0,a.$)("text-body-bold-medium"),small:(0,a.$)("text-body-bold-medium")},F={display:(0,a.$)("text-body-large"),large:(0,a.$)("text-body-medium"),medium:(0,a.$)("text-body-small"),small:(0,a.$)("text-body-small")};"Rial"===y.destination.name&&(h=b({},y),f={destination:o(b({},y.destination),d({name:"Toman"}))},y=o(h,d(f)));let B="name"===v[0]?"fa"===E?null!=(l=null==(t=y.source.details)?void 0:t.faName)?l:O(y.source[v[0]].toLowerCase()):y.source.name:(y.source[v[0]]||y.source.symbol).toUpperCase(),M=$?"":"name"===v[1]?"fa"===E?null!=(c=null==(n=y.destination.details)?void 0:n.faName)?c:O(y.destination[v[1]].toLowerCase()):y.destination.name:(y.destination[v[1]]||y.destination.symbol).toUpperCase(),H="name"===w[0]?"fa"===E?null!=(m=null==(u=y.source.details)?void 0:u.faName)?m:O(y.source[w[0]].toLowerCase()):y.source.name:(y.source[w[0]]||y.source.symbol).toUpperCase(),U="name"===w[1]?"fa"===E?null!=(p=null==(g=null==(x=null==y?void 0:y.destination)?void 0:x.details)?void 0:g.faName)?p:O(y.destination[w[1]].toLowerCase()):y.destination.name:(y.destination[w[1]]||y.destination.symbol).toUpperCase();return r.j.jsxs("div",{className:(0,a.$)("flex items-center gap-8",{"text-txt-neutral-default dark:text-txt-neutral-default":!I},{"text-txt-disabled select-none pointer-events-none grayscale":I}),dir:T,children:[!C&&r.j.jsx(s.A,{market:y,size:{small:"xxSmall",medium:"xSmall",large:"small",display:"xLarge"}[j],getCurrencyLogo:N,disabled:I,hideSecondAvatar:_,imageComponent:L,onLogoClick:R}),r.j.jsxs("div",{className:(0,a.$)(A),children:[r.j.jsxs("div",{className:(0,a.$)("flex items-center gap-2"),children:[r.j.jsx("div",{"data-testid":"source-title",className:(0,a.$)(D[j],"capitalize"),children:B}),!$&&r.j.jsxs(r.j.Fragment,{children:[r.j.jsx("div",{className:(0,a.$)("text-body-small",{"!text-txt-neutral-low":"low"===k&&!I}),children:"/"}),r.j.jsx("div",{"data-testid":"destination-title",className:(0,a.$)(F[j],"capitalize",{"!text-txt-neutral-low":"low"===k&&!I}),children:M})]}),z]}),P?r.j.jsx("div",{className:"flex items-center text-txt-neutral-medium text-body-small",children:P}):S&&("boolean"==typeof S?r.j.jsxs("div",{className:(0,a.$)("flex items-center gap-2","capitalize",F[j],{"!text-txt-neutral-low":"low"===k&&!I,"flex-row-reverse justify-end":"symbol"===w[0]}),children:[r.j.jsx("div",{"data-testid":"source-symbol",children:H}),r.j.jsx("div",{className:(0,a.$)("text-body-small"),children:"/"}),r.j.jsx("div",{"data-testid":"destination-symbol",className:(0,a.$)(F[j]),children:U})]}):S)]})]})}},8640:(e,t,l)=>{"use strict";l.d(t,{A:()=>c});var r=l(67870),a=l(90207),s=l(23128),i=l(10725),n=l(66045);let o={primary:"border-br-primary-low-rest dark:border-br-primary-low-rest",neutral:"border-br-neutral-low dark:border-br-neutral-low"},d={primary:{high:"bg-bg-primary-default-rest hover:bg-bg-primary-default-rest hover:
1dark:bg-bg-primary-default-rest dark:bg-bg-primary-default-rest",low:"bg-bg-primary-low-rest hover:bg-bg-primary-low-rest dark:hover:bg-bg-primary-low-rest dark:bg-bg-primary-low-rest"},neutral:{high:"bg-bg-neutral-reverse hover:bg-bg-neutral-reverse dark:hover:bg-bg-neutral-reverse dark:bg-bg-neutral-reverse",low:"bg-bg-neutral-default-rest hover:bg-bg-neutral-low-hovered dark:hover:bg-bg-neutral-low-hovered dark:bg-bg-neutral-default-rest"}},c=e=>{let{className:t,children:l,onChange:c,value:u,contrast:m,iconOnly:x,isSkeleton:b=!1,role:g="primary",size:p="medium",animationDuration:h=.3}=e,f=(0,i.useRef)(null),{isMounted:y}=(0,a.a)(),[j,v]=(0,n.l)();return(0,i.useEffect)(()=>{if(b)return;let e=f.current;if(!e)return;let t=()=>{let t=e.querySelector(`[data-value="${u}"]`);if(t&&null!=j&&j.current){let l=t.getBoundingClientRect(),r=e.getBoundingClientRect(),a=l.left-r.left-1,s=l.top-r.top-1,i=l.width;v(j.current,{left:a,width:i,height:"xLarge"===p?51:"large"===p?37:"medium"===p?29:21,top:s},{duration:h})}};t();let l=new ResizeObserver(()=>{t()});return l.observe(e),()=>{l.disconnect()}},[u,p,y,l,b]),r.j.jsxs("div",{ref:f,className:(0,s.$)(t,"relative flex w-full gap-4 rounded-medium border-small p-4",o[g],{"w-auto":x}),children:[r.j.jsx("div",{ref:j,className:(0,s.$)("absolute inset-y-0 w-0 h-0 top-0 left-[100%] rounded-small",d[g][m],{hidden:b,"h-32":"small"===p,"h-40":"medium"===p,"h-48":"large"===p,"h-62":"xLarge"===p})}),i.Children.map(l,(e,t)=>(0,i.cloneElement)(e,{key:(null==e?void 0:e.toString())||t,selected:(e.props.value||t)===u,onClick:()=>null==c?void 0:c(e.props.value||t),"data-value":e.props.value||t,className:(0,s.$)("relative z-10 justify-center",{grow:!x&&!b}),role:g,size:p,contrast:m,iconOnly:x,isSkeleton:b}))]})}},14885:(e,t,l)=>{"use strict";l.d(t,{default:()=>i});var r=l(10401),a=l(46761),s=l(10725);let i=e=>{let{content:t,containerClassName:l}=e,i=(0,s.useRef)(null),n=(0,s.useMemo)(()=>{let e;return e=t?.replace(/<img(?![^>]*\bloading=)/gi,'<img loading="lazy"'),e?.replace(/<img(?![^>]*\bdecoding=)/gi,'<img decoding="async"')||""},[t]);return(0,s.useEffect)(()=>{let e=i.current;if(!e)return;let t=e=>{let t=e.target;"IMG"===t.tagName&&t instanceof HTMLImageElement&&window.open(t.src,"_blank")};return e.addEventListener("click",t),()=>e.removeEventListener("click",t)},[]),(0,r.jsx)("div",{ref:i,className:(0,a.A)("flex flex-col gap-16 [&>p>img]:mx-auto [&>p>img]:my-16 [&>p>img]:border [&>p>img]:rounded-large [&>figure>img]:mx-auto [&>figure>img]:my-16 [&>figure>img]:border [&>figure>img]:rounded-large [&>p>img]:cursor-pointer [&>figure>img]:cursor-pointer [&>h2]:text-headline-large [&>h3]:text-headline-medium [&>h4]:text-headline-small [&>h5]:text-headline-xSmall [&>h6]:text-body-bold-large [&>p]:text-paragraph-large [&>p]:text-justify [&>ul]:text-paragraph-large [&>ul]:list-disc [&>ul]:mr-32 [&>ol]:text-paragraph-large [&>ol]:list-decimal [&_*_a]:scroll-mt-[100px] [&_*_a]:body-bold-large [&_*_a]:text-txt-info-default [&>figure]:mx-auto [&>figure]:my-16 [&>figure]:!w-full [&>figure]:block [&>figure]:max-w-full [&>figure]:overflow-x-auto [&>figure>table]:w-full [&>figure>table]:!border-0 [&>figure>table]:[direction:ltr] [&_*_th]:[direction:rtl] [&_*_th]:!text-body-large [&_*_th]:!text-txt-on-color dark:[&_*_th]:!text-txt-neutral-reverse [&_*_th]:!bg-bg-neutral-reverse [&_*_th]:!h-48 [&_*_th]:!py-0 [&_*_th]:!py-12 [&_*_th]:!justify-center [&_*_td]:[direction:rtl] [&_*_td]:!text-body-large [&_*_td]:!h-48 [&_*_td]:!bg-transparent [&_*_td]:!border-b-br-neutral-default [&_*_td]:!border-b-xSmall [&_*_td]:!py-0 [&_*_td]:!py-12 [&>figcaption]:text-caption-large [&>figcaption]:text-txt-neutral-low ",l),dangerouslySetInnerHTML:{__html:n}})}},18538:(e,t,l)=>{"use strict";l.d(t,{MarginTable:()=>ew});var r=l(10401),a=l(94788),s=l(10725),i=l(33815),n=l(58698),o=l(99140),d=l(8640),c=l(19508),u=l(7778),m=l(87333),x=l(67870),b=l(73225),g=l(23128),p=l(55211),h=Object.defineProperty,f=Object.defineProperties,y=Object.getOwnPropertyDescriptors,j=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,k=(e,t,l)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l;let N={medium:"text-body-medium h-32",small:"text-body-small h-24"}
1,C=(0,g.$)(`focus:outline-hidden focus-visible:border-focus focus-visible:!border-br-focus 
2  focus-visible:outline-hidden`);function S(e){var t,l;let{header:r,size:a}=e;return x.j.jsx("th",{className:(0,g.$)(null==(t=r.column.columnDef.meta)?void 0:t.className,"p-0"),children:r.isPlaceholder?null:x.j.jsxs("div",f(((e,t)=>{for(var l in t||(t={}))v.call(t,l)&&k(e,l,t[l]);if(j)for(var l of j(t))w.call(t,l)&&k(e,l,t[l]);return e})({tabIndex:0,className:(0,g.$)("px-12 flex select-none items-center gap-8 text-txt-neutral-medium dark:text-txt-neutral-medium",C,N[a],null==(l=r.column.columnDef.meta)?void 0:l.className,{"!text-txt-neutral-default dark:!text-txt-neutral-default":!1!==r.column.getIsSorted(),"cursor-pointer":r.column.getCanSort()})},r.column.getCanSort()&&{onClick:r.column.getToggleSortingHandler()}),y({children:[(0,b.Kv)(r.column.columnDef.header,r.getContext()),r.column.getCanSort()&&x.j.jsxs("div",{className:(0,g.$)("flex flex-col items-center justify-start text-icn-neutral-low"),children:[(0,p.s)("icon-chevron-up_outlined",(0,g.$)("text-body-small",{"text-icn-neutral-default dark:text-icn-neutral-default":"asc"===r.column.getIsSorted()})),(0,p.s)("icon-chevron-down_outlined",(0,g.$)("text-body-small",{"text-icn-neutral-default dark:text-icn-neutral-default":"desc"===r.column.getIsSorted()}))]})]})))})}let $=(0,s.memo)(function(e){let{header:t,size:l}=e;return x.j.jsx(S,{header:t,size:l})},(e,t)=>e.header.id===t.header.id&&e.size===t.size&&e.isSorted===t.isSorted);var P=l(70295),z=l(37545),O=l(43756),T=Object.defineProperty,_=Object.defineProperties,A=Object.getOwnPropertyDescriptors,I=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,E=(e,t,l)=>t in e?T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l;let D={large:"text-body-large h-56",medium:"text-body-large h-48",small:"text-body-small h-40",xSmall:"text-body-small h-32"},F=e=>{var{children:t,isLoading:l,size:r,isSelected:a=!1}=e,s=((e,t)=>{var l={};for(var r in e)L.call(e,r)&&0>t.indexOf(r)&&(l[r]=e[r]);if(null!=e&&I)for(var r of I(e))0>t.indexOf(r)&&R.call(e,r)&&(l[r]=e[r]);return l})(e,["children","isLoading","size","isSelected"]);let i=(0,O.Z)();return x.j.jsx("td",_(((e,t)=>{for(var l in t||(t={}))L.call(t,l)&&E(e,l,t[l]);if(I)for(var l of I(t))R.call(t,l)&&E(e,l,t[l]);return e})({className:(0,g.$)("px-12 align-middle text-txt-neutral-default dark:text-txt-neutral-default",D[r],{"border-xSmall border-br-primary-low-rest dark:border-br-primary-low-rest bg-bg-primary-low-rest dark:bg-bg-primary-low-rest hover:bg-bg-primary-low-hovered hover:dark:bg-bg-primary-low-hovered":a})},s),A({children:l?x.j.jsx(z.A,{rtl:"rtl"===i,backgroundColor:"#6F819452",foregroundColor:"#dedede",className:"h-16 w-full",uniqueKey:"table-cell-skeleton",children:x.j.jsx("rect",{x:"0",y:"0",rx:"8",ry:"8",width:"100%",height:"16"})}):t})))},B=(0,s.memo)(function(e){let{row:t,select:l,renderRowSubComponent:r,tableCellPrimarySize:a,tableCellSecondarySize:i,isLoading:n,onRowClick:o,hasRowSeparator:d=!1,isExpanded:c=!1,isSelected:u=!1,measureElement:m}=e,h=(0,s.useCallback)(()=>{l?t.toggleSelected():null==o||o(t)},[l,t,o]),f=(0,s.useCallback)(()=>t.toggleExpanded(),[t]);return x.j.jsxs(x.j.Fragment,{children:[x.j.jsxs("tr",{onClick:h,ref:m,className:(0,g.$)("bg-bg-surface-1 hover:bg-bg-neutral-default-hovered dark:bg-bg-surface-1 hover:dark:bg-bg-neutral-default-hovered",{"cursor-pointer":o||l,"border-b-br-neutral-low dark:border-b-br-neutral-low border-b-xSmall":d}),children:[r&&x.j.jsx(F,{type:"primary",isSelected:u,size:a,isLoading:n,onClick:f,children:x.j.jsx(P.A,{role:"neutral",size:"xSmall",iconOnly:!0,onColor:c,startIcon:(0,p.s)(c?"icon-chevron-up_outlined":"icon-chevron-down_outlined")})}),t.getVisibleCells().map(e=>x.j.jsx(F,{type:"primary",isSelected:u,size:a,isLoading:n,children:(0,b.Kv)(e.column.columnDef.cell,e.getContext())},e.id))]}),c&&r?x.j.jsx("tr",{className:"bg-bg-neutral-medium-rest hover:bg-bg-neutral-default-hovered dark:bg-bg-neutral-medium-rest hover:dark:bg-bg-neutral-default-hovered",children:r(t.original)}):null]})});function M(e){let{rows:t,columns:l,select:r,renderRowSubComponent:a,tableCellPrimarySize:s,tableCellSecondarySize:i,isLoading:n,onRowClick:o,hasRowSeparator:d}=e;return x.j.jsx("tbody",{children:t.map(e=>x.j.jsx(B,{row:e,columns:l,select:r,isExpanded:e.getIsExpanded(),isSelected:e.getIsSelected(),tableCellPrimarySize:s,tableCellSecondarySize:i,renderRowSubComponent:a,isLoading:n,onRowClick:o,hasRowSeparator:d},e.id))})}let H=(e,t)=>t<7?Array.from({length:t},(e,t)=>t+1):e>4&&e+2<t?[1,e-1,e,e+1,t]:e>4&&e+2>=t?[1,t-4,t-3,t-2,t-1,t]:[1,2,3,4,5,t];function U(e){var t;let{table:l,translationFunction:r,hasBorderTop:a=!1}=e,{setPageIndex:i,getState:n}=l,{pageIndex:o,pageSize:d}=n().pagination;if("client"===e.mode){let{getPageCount:n,previousPage:c,nextPage:u,getCanNextPage:m,getCanPreviousPage:b}=l,p=n();if(p<=1)return null;
2let[h,f]=(0,s.useState)(H(o+1,p)),y=e=>{e===o+1||(f(H(e,p).filter(e=>e<=p)),i(e-1))};(0,s.useEffect)(()=>{f(H(o+1,p))},[p,o]);let j=null!=(t="client"===e.mode?l.getFilteredRowModel().rows.length:l.getRowCount())?t:0;return x.j.jsxs("div",{className:(0,g.$)("mt-4 flex w-full items-center gap-24 bg-bg-surface-1 p-24 pb-0 dark:bg-bg-surface-1",{"border-t-br-neutral-low dark:border-t-br-neutral-low border-t-xSmall":a},e.className),children:[x.j.jsx(P.A,{iconOnly:!0,role:"neutral",disabled:!b(),onClick:c,appearance:"ghost",size:"small",children:x.j.jsx("span",{className:"icon-chevron-right_outlined text-[18px]"})}),x.j.jsx("div",{className:"flex items-center gap-12",children:h.map((e,t,l)=>l[t-1]+2<=e?x.j.jsxs(s.Fragment,{children:[x.j.jsx(P.A,{iconOnly:!0,disabled:!0,role:"neutral",appearance:"ghost",size:"small",className:"!text-txt-neutral-medium",children:"…"}),x.j.jsx("button",{onClick:()=>y(e),className:(0,g.$)("flex size-32 items-center justify-center rounded-medium p-8 text-button-large text-txt-neutral-medium transition-all duration-150 hover:bg-bg-neutral-default-rest dark:text-txt-neutral-medium dark:hover:bg-bg-neutral-default-rest",{"bg-bg-neutral-default-rest":o===e-1}),children:e})]},e):x.j.jsx("button",{onClick:()=>y(e),className:(0,g.$)("flex size-32 items-center justify-center rounded-medium p-8 text-button-large text-txt-neutral-medium transition-all duration-150 hover:bg-bg-neutral-default-rest dark:text-txt-neutral-medium dark:hover:bg-bg-neutral-default-rest",{"bg-bg-neutral-default-rest":o===e-1}),children:e},e))}),x.j.jsx(P.A,{iconOnly:!0,role:"neutral",disabled:!m(),onClick:u,appearance:"ghost",size:"small",children:x.j.jsx("span",{className:"icon-chevron-left_outlined text-[18px]"})}),x.j.jsx("span",{className:"mx-24 h-16 w-1 bg-br-neutral-low dark:bg-br-neutral-low"}),x.j.jsxs("div",{className:"flex items-center gap-6",children:[x.j.jsx("span",{className:"text-body-medium text-txt-neutral-medium dark:text-txt-neutral-medium",children:r("common:display")}),x.j.jsxs("span",{className:"text-body-bold-medium text-txt-neutral-default dark:text-txt-neutral-default",children:[Math.min((o+1)*d,j),"–",o*d+1]}),x.j.jsx("span",{className:"text-body-medium text-txt-neutral-medium dark:text-txt-neutral-medium",children:r("common:from")}),x.j.jsx("span",{className:"text-body-bold-medium text-txt-neutral-default dark:text-txt-neutral-default",children:j}),x.j.jsx("span",{className:"text-body-medium text-txt-neutral-medium dark:text-txt-neutral-medium",children:r("common:result")})]})]})}let{fetchData:c,hasNext:u}=e,m=0===o,b=!u;return x.j.jsxs("div",{className:(0,g.$)("mt-4 flex w-full items-center justify-start gap-12 bg-bg-surface-1 p-16 dark:bg-bg-surface-1",{"border-t-br-neutral-low dark:border-t-br-neutral-low border-t-xSmall":a}),children:[x.j.jsx(P.A,{iconOnly:!0,role:"neutral",disabled:m,onClick:()=>{m||(i(o-1),c(o))},appearance:"ghost",size:"small",children:x.j.jsx("span",{className:"icon-chevron-right_outlined text-[18px]"})}),x.j.jsx("span",{className:"min-w-32 text-center text-body-bold-medium text-txt-neutral-default dark:text-txt-neutral-default flex size-32 items-center justify-center rounded-medium p-8 transition-all duration-150 hover:bg-bg-neutral-default-rest dark:hover:bg-bg-neutral-default-rest bg-bg-neutral-default-rest",children:o+1}),x.j.jsx(P.A,{iconOnly:!0,role:"neutral",disabled:b,onClick:()=>{b||(i(o+1),c(o+2))},appearance:"ghost",size:"small",children:x.j.jsx("span",{className:"icon-chevron-left_outlined text-[18px]"})})]})}var K=l(62963),V=Object.defineProperty,W=Object.defineProperties,q=Object.getOwnPropertyDescriptors,Y=Object.getOwnPropertySymbols,G=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable,J=(e,t,l)=>t in e?V(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l,X=(e,t)=>{for(var l in t||(t={}))G.call(t,l)&&J(e,l,t[l]);if(Y)for(var l of Y(t))Q.call(t,l)&&J(e,l,t[l]);return e};function Z(e){let{rows:t,columns:l,select:r,renderRowSubComponent:a,tableCellPrimarySize:s,tableCellSecondarySize:i,isLoading:n,onRowClick:o,hasRowSeparator:d,listRef:c,virtualRows:u,scrollMargin:m,totalSize:b,measureElement:g}=e;return x.j.jsxs("tbody",{ref:c,children:[u.length>0&&x.j.jsx("tr",{style:{height:`${u[0].start-m}px`},children:x.j.jsx("td",{style:{height:`${u[0].start-m}px`}})}),u.map(e=>{let c=t[e.index];return x.j.jsx(B,{row:c,columns:l,select:r,tableCellPrimarySize:s,tableCellSecondarySize:i,renderRowSubComponent:a,isLoading:n,onRowClick:o,hasRowSeparator:d,measureElement:g},c.id)}),u.length>0&&x.j.jsx("tr",{style:{height:`${b-(u[u.length-1].end-m)}px`},children:x.j.jsx("td",{style:{height:`${b-(u[u.length-1].end-m)}px`}})})]})}var ee=l(72544),et=Object.defineProperty,el=Object.getOwnPropertySymbols,er=Object.prototype.hasOwnProperty,ea=Object.prototype.propertyIsEnumerable,es=(e,t,l)=>t in e?et(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l;function ei(e){var t,l,{columns:r,data:a,renderRowSubComponent:i,onSyncUrl:n,className:o,paginationClassName:d,translationFunction:c,containerClassName:u,onPageChange:m,rowCount:p,fetchData:h,hasNext:f,paginationMode:y="client",tableCellPrimarySize:j="medium",tableCellSecondarySize:v="xSmall",tableHeadSize:w="medium",hasColumnBorder:k=!0,hasRowSeparator:N,hasPaginationBorderTop:C=!1,hasPagination:S=!1,isLoading:P=!0,skeletonItemCount:z=6,select:O=!1,state:T,tableHeadClassName:_,onRowClick:A,onSortingChange:I,enableVirtualization:L=!1,virtualizerOptions:R,ref:E,layoutKey:D="dashboard-table"}=e,F=((e,t)=>{var l={};for(var r in e)er.call(e,r)&&0>t.indexOf(r)&&(l[r]=e[r]);if(null!=e&&el)for(var r of el(e))0>t.indexOf(r)&&ea.call(e,r)&&(l[r]=e[r]);return l})(e,["columns","data","renderRowSubComponent","onSyncUrl","className","paginationClassName","translationFunction","containerClassName","onPageChange","rowCount","fetchData","hasNext","paginationMode","tableCellPrimarySize","tableCellSecondarySize","tableHeadSize","hasColumnBorder","hasRowSeparator","hasPaginationBorderTop","hasPagination","isLoading","skeletonItemCount","select","state","tableHeadClassName","onRowClick","onSortingChange","enableVirtualization","virtualizerOptions","ref","layoutKey"]);
2let[B,H]=(0,s.useState)([]),[V,J]=(0,s.useState)({}),[et,ei]=(0,s.useState)({}),[en,eo]=(0,s.useState)({pageIndex:(null==(t=null==T?void 0:T.pagination)?void 0:t.pageIndex)||0,pageSize:(null==(l=null==T?void 0:T.pagination)?void 0:l.pageSize)||10}),ed=(0,s.useMemo)(()=>Array(z).fill(null).map((e,t)=>({id:`placeholder-${t}`})),[z]),ec=P?[...ed]:a,eu=(0,b.N4)(((e,t)=>{for(var l in t||(t={}))er.call(t,l)&&es(e,l,t[l]);if(el)for(var l of el(t))ea.call(t,l)&&es(e,l,t[l]);return e})({data:ec,columns:r,state:{sorting:B,rowSelection:V,expanded:et,pagination:en},isMultiSortEvent:()=>!0,sortDescFirst:!1,onSortingChange:e=>{H(e),null==I||I(e)},onRowSelectionChange:O?J:void 0,onExpandedChange:i?ei:void 0,getCoreRowModel:(0,ee.HT)(),getSortedRowModel:(0,ee.h5)(),getFilteredRowModel:(0,ee.hM)(),getExpandedRowModel:i?(0,ee.D0)():void 0,getPaginationRowModel:S?(0,ee.kW)():void 0,manualPagination:"server"===y,autoResetPageIndex:!1,onPaginationChange:eo,rowCount:"server"===y?p:void 0},F));(0,s.useImperativeHandle)(E,()=>eu,[eu]);let em=L&&!i,ex=eu.getRowModel().rows,{listRef:eb,scrollMargin:eg,virtualizer:ep,virtualRows:eh}=(e=>{let{count:t,enabled:l,layoutKey:r,virtualizerOptions:a={}}=e,i=(0,s.useRef)(null),n=(0,s.useRef)(0),{rowSize:o,estimateSize:d}=a,c=((e,t)=>{var l={};for(var r in e)G.call(e,r)&&0>t.indexOf(r)&&(l[r]=e[r]);if(null!=e&&Y)for(var r of Y(e))0>t.indexOf(r)&&Q.call(e,r)&&(l[r]=e[r]);return l})(a,["rowSize","estimateSize"]),u=(0,K.XW)(W(X({},c),q({count:t,enabled:l,estimateSize:o?()=>o:null!=d?d:()=>48,scrollMargin:n.current})));return(0,s.useLayoutEffect)(()=>{if(!l)return;let e=()=>{if(!i.current)return;let e=i.current.getBoundingClientRect().top+window.scrollY;e!==n.current&&(n.current=e,u.setOptions(W(X({},u.options),q({scrollMargin:e}))),u.measure())};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[t,l,r,u]),{listRef:i,scrollMargin:n.current,virtualizer:u,virtualRows:u.getVirtualItems()}})({count:ex.length,enabled:em,layoutKey:D,virtualizerOptions:R});return(0,s.useEffect)(()=>{if("function"==typeof n){let e=B.map(e=>`${e.id}:${e.desc?"desc":"asc"}`).join(",");n(e.length?`?sort=${e}`:"")}},[B,n]),(0,s.useEffect)(()=>{"function"==typeof m&&m({pageIndex:en.pageIndex,pageSize:en.pageSize})},[m,en.pageIndex,en.pageSize]),(0,s.useEffect)(()=>{ei({})},[en.pageIndex,en.pageSize]),(0,s.useLayoutEffect)(()=>{let e=new URLSearchParams(window.location.search).get("sort");e&&H(e.split(",").map(e=>{let[t,l]=e.split(":");return{id:t,desc:"desc"===l}}))},[]),x.j.jsxs("div",{className:(0,g.$)(u,"w-full"),children:[x.j.jsxs("table",{className:(0,g.$)(o,"w-full"),children:[x.j.jsx("thead",{className:(0,g.$)({"border-b-br-neutral-low dark:border-b-br-neutral-low border-b-xSmall":k},_),children:eu.getHeaderGroups().map(e=>x.j.jsxs("tr",{children:[i&&x.j.jsx("th",{className:w}),e.headers.map(e=>x.j.jsx($,{header:e,size:w,isSorted:e.column.getIsSorted()},e.id))]},e.id))}),em?x.j.jsx(Z,{rows:ex,columns:r,select:O,renderRowSubComponent:i,tableCellPrimarySize:j,tableCellSecondarySize:v,isLoading:P,onRowClick:A,hasRowSeparator:N,listRef:eb,virtualRows:eh,scrollMargin:eg,totalSize:ep.getTotalSize(),measureElement:null!=R&&R.rowSize?void 0:ep.measureElement}):x.j.jsx(M,{rows:ex,columns:r,select:O,renderRowSubComponent:i,tableCellPrimarySize:j,tableCellSecondarySize:v,isLoading:P,onRowClick:A,hasRowSeparator:N})]}),S&&("server"===y?x.j.jsx(U,{mode:"server",table:eu,className:d,hasNext:null!=f&&f,fetchData:h,hasBorderTop:C,translationFunction:c}):x.j.jsx(U,{mode:"client",className:d,table:eu,hasBorderTop:C,translationFunction:c}))]})}var en=l(71030),eo=l(46761),ed=l(19760),ec=l(14885),eu=l(8392),em=l(96859),ex=l(61676),eb=l(11620),eg=l(63555);let ep=[{label:"پایه",value:0},{label:"VIP 1",value:1},{label:"VIP 2",value:2},{label:"VIP 3",value:3},{label:"VIP 4",value:4},{label:"VIP 5",value:5},{label:"VIP 6",value:6}],eh=Array.from({length:19},(e,t)=>{let l=1+.5*t;return{label:`${l}x`,value:l}}),ef=(0,ee.FB)(),ey=(e,t)=>{let l=new Map;return e.forEach((e,r)=>{let a=e.destination.symbol.toLowerCase();(t===u.h.RIAL&&("rls"===a||"irt"===a)||t===u.h.TETHER&&"usdt"===a)&&l.set(r,e)}),l},ej=e=>e.toLowerCase().replace(/\u200c/g,"").replace(/ /g,""),ev=(e,t,l)=>t?Array.from(e.values()).filter(e=>((e,t,l)=>{let{source:r}=e,a=ej(t),s=ej(l(r.symbol?.toLowerCase()??"")),i=r.symbol?.toLowerCase()??"",n=r.name?.toLowerCase()??"",o=r.details?.faName?.toLowerCase()??"",d=r.details?.keywords??[];return s.includes(a)||i.includes(a)||n.includes(a)||o.includes(a)||d.some(e=>e.toLowerCase().includes(a))})(e,t,l)):Array.from(e.values()),ew=e=>{let{sections:t}=e,{t:l}
2=(0,i.Bd)(["pricing"]),[x,b]=(0,s.useState)(ep[0].value),[g,p]=(0,s.useState)(eh[0].value),[h,f]=(0,s.useState)(u.h.RIAL),[y,j]=(0,s.useState)(""),{marginMarkets:v,marginMarketsQuery:w}=(0,ed.D1)({details:1,vipLevel:x,leverage:g}),k=(e=>{let{t}=(0,i.Bd)(["pricing","common"]),l=ep.find(t=>t.value===e)?.label;return(0,s.useMemo)(()=>[ef.accessor("source",{header:()=>t("marginTable.marketWithMaxLeverage",{vipLevel:l}),cell:e=>{let{row:l}=e,{source:a,destination:s,maxLeverage:i}=l.original;return(0,r.jsxs)("div",{className:"flex gap-4",children:[(0,r.jsx)(eu.W,{market:l.original,size:"large",getCurrencyLogo:eg.L,translateFunction:e=>t(a.name.toLowerCase()===e?a.symbol:s.symbol)}),(0,r.jsxs)(em.A,{role:"primary",size:16,children:[i,"x"]})]})}}),ef.accessor("buyPositionFeeRate",{header:()=>t("marginTable.buyExtensionFeeLabel"),cell:e=>{let{row:l}=e;return(0,r.jsxs)("div",{className:"text-txt-neutral-default text-body-medium",children:[new eb.A(l.original.buyPositionFeeRate??0).mul(100).toNumber(),t("percent")]})}}),ef.accessor("sellPositionFeeRate",{header:()=>t("marginTable.sellExtensionFeeLabel"),cell:e=>{let{row:l}=e;return(0,r.jsxs)("div",{className:"text-txt-neutral-default text-body-medium",children:[new eb.A(l.original.sellPositionFeeRate??0).mul(100).toNumber(),t("percent")]})}}),ef.accessor("buyMaxDelegationInSrcCurrency",{header:()=>t("marginTable.maxBuyAmountBase",{vipLevel:l}),cell:e=>{let{row:t}=e,{buyMaxDelegationInSrcCurrency:l,source:a}=t.original;return(0,r.jsxs)("div",{className:"flex gap-4 items-end",children:[(0,r.jsx)("span",{className:"text-txt-neutral-default text-body-medium",children:(0,ex.pq)(l??0,a)}),(0,r.jsx)("span",{className:"text-body-small text-txt-neutral-low mb-2",children:a.symbol.toUpperCase()})]})}}),ef.accessor("sellMaxDelegation",{header:()=>t("marginTable.maxSellAmountBase",{vipLevel:l}),cell:e=>{let{row:t}=e,{sellMaxDelegation:l,source:a}=t.original;return(0,r.jsxs)("div",{className:"flex gap-4 items-end",children:[(0,r.jsx)("span",{className:"text-txt-neutral-default text-body-medium",children:(0,ex.pq)(l??0,a)}),(0,r.jsx)("span",{className:"text-body-small text-txt-neutral-low mb-2",children:a.symbol.toUpperCase()})]})}})],[l,t])})(x),N=ev(ey(v??new Map,h),y,l);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h2",{className:"text-txt-neutral-default text-headline-small whitespace-nowrap",children:l("marginTable.title")}),t&&t[4]?.content&&(0,r.jsx)(ec.default,{content:t[4].content,containerClassName:"hidden tablet:flex flex-col gap-8 list-disc"}),(0,r.jsxs)("div",{className:"flex-col flex desktop:flex-row gap-x-20 gap-y-8 items-center w-full",children:[(0,r.jsxs)("div",{className:"flex flex-col desktop:flex-row gap-x-16 gap-y-8 items-start desktop:items-center flex-3 w-full",children:[(0,r.jsx)("span",{className:"text-txt-neutral-default text-body-medium whitespace-nowrap",children:l("marginTable.feeLevel")}),(0,r.jsx)(n.A,{variant:"solid",size:"small",type:"neutral",value:x,onChange:b,fullWidth:!0,className:"w-full border-br-neutral-low border-xSmall rounded-medium p-4",children:ep.map(e=>(0,r.jsx)(o.A,{value:e.value,children:e.label},e.value))})]}),(0,r.jsxs)("div",{className:"flex flex-col desktop:flex-row gap-x-16 gap-y-8 items-start desktop:items-center flex-1 w-full",children:[(0,r.jsx)("span",{className:"text-txt-neutral-default text-body-medium whitespace-nowrap",children:l("marginTable.leverage")}),(0,r.jsx)(a.l,{variant:"inset",size:"medium",hasSearch:!1,options:eh,bottomSheet:{bottomSheetProps:{dismissible:!0}},value:g,onChange:(e,t)=>
2{p(t.value)},containerClassName:"w-full"})]})]}),(0,r.jsxs)("div",{className:"w-full flex flex-col border-br-neutral-low border-xSmall rounded-xxlarge overflow-hidden",children:[(0,r.jsxs)("div",{className:"flex flex-col desktop:flex-row justify-between desktop:items-center p-24 border-b border-br-neutral-low",children:[(0,r.jsx)("h3",{className:"text-txt-neutral-default text-body-bold-large",children:l("marginTable.marginMarketValues")}),(0,r.jsxs)("div",{className:"flex flex-col desktop:flex-row gap-8 items-center mt-16 desktop:mt-0",children:[(0,r.jsxs)(d.A,{size:"small",role:"neutral",className:"z-0",contrast:"low",value:h,onChange:f,children:[(0,r.jsx)(c.A,{value:u.h.RIAL,children:l("marginTable.irtMarket")}),(0,r.jsx)(c.A,{value:u.h.TETHER,children:l("marginTable.usdtMarket")})]}),(0,r.jsx)("div",{className:"w-1 h-[24px] border border-br-neutral-low hidden desktop:block"}),(0,r.jsx)(m.D,{size:"small",placeholder:l("marginTable.searchMarket"),appearance:"filled",leadingIcon:"icon-search-sm_outlined",searchFunction:e=>ev(ey(v??new Map,h),e,l),value:y,hasOverlay:!1,onChange:j,className:"w-full"})]})]}),(0,r.jsx)("div",{className:"mt-8 !h-[400px] overflow-y-auto no-scrollbar z-0",children:(0,r.jsx)(ei,{data:N,columns:k,enableSorting:!1,isLoading:w.isLoading,translationFunction:l,tableCellPrimarySize:"large",hasRowSeparator:!0,tableHeadClassName:(0,eo.A)("whitespace-nowrap sticky top-0 bg-bg-surface-1",en.o.STICKY_ACTION_CONTAINER)})})]}),(0,r.jsx)("div",{className:"flex flex-wrap gap-x-4 text-txt-neutral-default text-paragraph-medium",children:(0,r.jsx)(i.x6,{t:l,i18nKey:"marginTable.moreInfo",components:{a:(0,r.jsx)("a",{className:"text-l text-txt-primary-default",href:"/help/discover/position/",target:"_blank"})}})})]})}},19418:(e,t,l)=>{"use strict";l.d(t,{_Y:()=>d,hY:()=>c});var r,a=l(96689),s=l(57846),i=l(19760),n=((r={}).CDN="CDN",r.PANEL_SETTING="panel-settings",r.CAPTCHA_CONFIG="captcha-config",r);let o=async()=>(await fetch(`${i.nC.cdn}front/configs/panel-settings.json`,{next:{revalidate:2*a.Fq.HOUR/1e3}})).json(),d=e=>{let{data:t}=(0,s.useQuery)({queryKey:[n.CDN,n.PANEL_SETTING],queryFn:o,...e});return{isUsdtHidden:t?.isUsdtHidden??!0}},c=e=>(0,s.useQuery)({queryKey:[n.CDN,n.CAPTCHA_CONFIG],queryFn:async()=>(await fetch(`${i.nC.cdn}front-config/captcha-config.json`)).json(),...e})},19508:(e,t,l)=>{"use strict";l.d(t,{A:()=>f});var r=l(67870),a=l(23128),s=l(37545),i=l(63716),n=l(55211),o=l(97684),d=l(35081),c=Object.defineProperty,u=Object.defineProperties,m=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,p=(e,t,l)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l,h=(e,t)=>{for(var l in t||(t={}))b.call(t,l)&&p(e,l,t[l]);if(x)for(var l of x(t))g.call(t,l)&&p(e,l,t[l]);return e};let f=e=>{let t,l;var{className:c,onClick:p,selected:f,startIcon:y,endIcon:j,children:v,value:w,disabled:k,size:N="medium",role:C="primary",contrast:S="low",tabbable:$=!0,iconOnly:P=!1,isSkeleton:z=!1,badge:O,skeletonKey:T,tooltip:_}=e,A=((e,t)=>{var l={};for(var r in e)b.call(e,r)&&0>t.indexOf(r)&&(l[r]=e[r]);if(null!=e&&x)for(var r of x(e))0>t.indexOf(r)&&g.call(e,r)&&(l[r]=e[r]);return l})(e,["className","onClick","selected","startIcon","endIcon","children","value","disabled","size","role","contrast","tabbable","iconOnly","isSkeleton","badge","skeletonKey","tooltip"]);let I={small:(0,a.$)("h-[21px] px-8 text-button-small",{"w-32":P}),medium:(0,a.$)("h-[29px] px-12 text-button-medium",{"w-40":P}),large:(0,a.$)("h-[37px] px-12 text-button-large",{"w-48":P}),xLarge:(0,a.$)("h-[51px] px-12 text-button-large",{"w-64":P})},L={small:(0,a.$)("h-[21px]",{"w-32":P},{"w-64":!P}),medium:(0,a.$)("h-[29px]",{"w-40":P},{"w-72":!P}),large:(0,a.$)("h-[37px]",{"w-48":P},{"w-80":!P}),xLarge:(0,a.$)("h-[51px]",{"w-64":P},{"w-96":!P})}
2,R=(0,a.$)("flex items-center gap-4 rounded-small transition-all duration-150 ease-in-out","hover:bg-bg-neutral-default-hovered hover:dark:bg-bg-neutral-default-hovered","active:bg-bg-neutral-default-hovered active:dark:bg-bg-neutral-default-hovered","focus-visible:bg-bg-neutral-default-hovered focus-visible:dark:bg-bg-neutral-default-hovered","text-txt-neutral-medium",{"text-txt-neutral-medium dark:text-txt-neutral-medium":k}),E={primary:{low:(0,a.$)("hover:bg-bg-primary-low-hovered active:bg-bg-primary-low-hovered dark:hover:bg-bg-primary-low-hovered dark:active:bg-bg-primary-low-hovered",{"text-txt-primary-default dark:text-txt-primary-default":f}),high:(0,a.$)("hover:bg-bg-primary-low-hovered active:bg-bg-primary-low-hovered dark:hover:bg-bg-primary-low-hovered dark:active:bg-bg-primary-low-hovered",{"text-txt-on-color dark:text-txt-on-color":f})},neutral:{low:(0,a.$)("hover:bg-bg-neutral-default-hovered active:bg-bg-neutral-default-hovered dark:hover:bg-bg-neutral-default-hovered dark:active:bg-bg-neutral-default-hovered",{"text-txt-neutral-default dark:text-txt-neutral-default":f}),high:(0,a.$)("hover:bg-bg-neutral-default-hovered active:bg-bg-neutral-default-hovered dark:hover:bg-bg-neutral-default-hovered dark:active:bg-bg-neutral-default-hovered",{"text-txt-neutral-reverse dark:text-txt-neutral-reverse":f})}};return z?r.j.jsx(s.A,{uniqueKey:`segmented-control-button-loading-${T}`,backgroundColor:i.W["bg-neutral-skeleton-shimmer-high"],foregroundColor:i.W["bg-neutral-skeleton-low"],className:(0,a.$)("flex w-full rounded-small",L[N],c),children:r.j.jsx("rect",{x:"0%",y:"0%",width:"100%",height:"100%"})}):r.j.jsx(o.m,(t=h({content:null==_?void 0:_.content,position:null==_?void 0:_.position,bottomSheet:null==_?void 0:_.bottomSheet,translationFunction:null!=_&&_.translationFunction?null==_?void 0:_.translationFunction:e=>e},_),l={children:r.j.jsxs("button",u(h({onClick:e=>null==p?void 0:p(e,w),className:(0,a.$)("relative",c,R,I[N],E[C][S]),tabIndex:$?0:-1,disabled:k,"aria-label":w,"aria-labelledby":w},A),m({children:[r.j.jsx(d.I,{badge:O}),y&&(0,n.s)(y),v,j&&(0,n.s)(j)]})))},u(t,m(l))))}},25996:(e,t,l)=>{"use strict";l.d(t,{A:()=>d});var r=l(67870),a=l(10725),s=l(23128),i=l(70295),n=l(55211),o=l(87186);let d=e=>{let{children:t,className:l,timeout:d=300,triggerShowText:c,triggerHideText:u,minHeight:m,background:x="default"}=e,[b,g]=(0,a.useState)(!1);return r.j.jsxs(r.j.Fragment,{children:[r.j.jsx(o.S,{minHeight:m,className:l,timeout:d,open:b,background:x,children:t}),r.j.jsxs(i.A,{role:"primary",appearance:"ghost",size:"xSmall",onClick:()=>g(!b),className:"mx-auto mt-12",children:[r.j.jsx("span",{className:"text-button-small text-txt-primary-default",children:b?u:c}),(0,n.s)("icon-chevron-down_outlined",(0,s.$)("text-icn-primary-default-default transition-transform",{"rotate-180":b}))]})]})}},34921:(e,t,l)=>{"use strict";l.d(t,{CryptoTable:()=>p});var r=l(10401),a=l(56958),s=l(97211),i=l(34561),n=l(61676),o=l(46761),d=l(31515),c=l(10725),u=l(33815),m=l(14885),x=l(63555),b=l(48564);let g="col-span-1 desktop:text-body-medium text-body-small",p=e=>{let{sections:t}=e,[l,p]=(0,d.ZA)("q",d.tU.withOptions({shallow:!0,history:"replace"})),{availableCurrencies:h}=(0,a.CU)(),{t:f}=(0,u.Bd)(["pricing"]),y=["irt","ftm","bnx","pgala","gala"],j=["ada","atom","avax","bch","doge","near","sol","trx","a","pol"],v=["enj","render","usdc","dydx"],w=["usdc"],k=["bnb"],N=e=>(t,l)=>!("ETH"===t.symbol&&v.includes(e.symbol))&&!("BSC"===t.symbol&&j.includes(e.symbol))&&!("TRX"===t.symbol&&w.includes(e.symbol))&&!("BNB"===t.symbol&&k.includes(e.symbol)),C=Array.from(h).map(e=>{let[t,l]=e;return l}).filter(e=>e.protocols.filter(N(e)).length>0).filter(e=>!y.includes(e.symbol)).filter(e=>!l||e.symbol.includes(l.toLowerCase())||e.details?.faName?.includes(l.toLowerCase())||e.name.toLowerCase()?.includes(l.toLowerCase())||e.protocols?.filter(e=>e.name.toLowerCase().includes(l.toLowerCase())||e.symbol.toLowerCase().includes(l.toLowerCase())).length>0);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex tablet:justify-between tablet:flex-row tablet:gap-0 flex-col gap-16",children:[(0,r.jsx)("h2",{className:"text-headline-small",children:f("cryptoTitle")}),(0,r.jsx)("div",{className:"w-full tablet:max-w-[200px] flex",children:(0,r.jsx)(i.A,{value:l??"",placeholder:"جستجو...",appearance:"inset",name:"search",id:"search",onChange:e=>p(e),size:"small",inputMode:"search",primaryIcon:"icon-search-sm_outlined"})})]}),(0,r.jsxs)("table",{className:"flex flex-col w-full  desktop:max-w-[920px] overflow-x-auto desktop:no-scrollbar border-xSmall roun
2ded-xxlarge border-br-neutral-low",children:[(0,r.jsxs)("thead",{className:"min-w-[918px] w-full desktop:max-w-[918px]",children:[(0,r.jsx)("tr",{className:"flex flex-col p-24  ",children:(0,r.jsxs)("th",{className:"flex flex-col gap-4 items-start",children:[(0,r.jsx)("div",{className:"text-body-bold-large text-txt-neutral-default",children:f("cryptoTable.title")}),(0,r.jsx)("div",{className:"text-body-small text-txt-neutral-medium",children:f("cryptoTable.description")})]})}),(0,r.jsxs)("tr",{className:"grid grid-cols-6 w-full min-w-[918px] desktop:max-w-[918px] h-40 border-br-neutral-low border-y-xSmall pt-8 text-txt-neutral-medium",children:[(0,r.jsx)("th",{className:g,children:f("cryptoTable.currencyName")}),(0,r.jsx)("th",{className:g,children:f("cryptoTable.network")}),(0,r.jsx)("th",{className:g,children:f("cryptoTable.withdrawFee")}),(0,r.jsx)("th",{className:g,children:f("cryptoTable.minWithdraw")}),(0,r.jsx)("th",{className:g,children:f("cryptoTable.depositFee")}),(0,r.jsx)("th",{className:g,children:f("cryptoTable.minDeposit")})]})]}),(0,r.jsx)("tbody",{className:"flex flex-col min-w-[918px] max-h-[250px] tablet:max-h-[300px] desktop:max-h-[396px] w-full desktop:max-w-[918px] overflow-y-auto overflow-x-hidden desktop:no-scrollbar",children:C.length?C.map(e=>{let t=e.protocols.filter(N(e));return(0,r.jsxs)("tr",{className:"grid grid-cols-6 items-center justify-centerw-full min-w-[918px] desktop:max-w-[918px]  justify-items-center border-br-neutral-low border-y-xSmall border-b-0 first:border-t-0",children:[(0,r.jsx)("td",{className:"col-span-1 min-h-[48px] desktop:min-h-[58px] border-br-neutral-low border-l-xSmall h-full w-full flex items-center justify-start px-12",style:{gridRow:`span ${t.length}`},children:e&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"desktop:hidden",children:(0,r.jsx)(s.K,{orientation:"vertical",currency:e,size:"small",getCurrencyLogo:x.L})}),(0,r.jsx)("div",{className:"desktop:flex hidden",children:(0,r.jsx)(s.K,{orientation:"vertical",currency:e,size:"medium",getCurrencyLogo:x.L})})]})}),t.map((l,a)=>(0,r.jsxs)(c.Fragment,{children:[(0,r.jsx)("td",{className:(0,o.A)("col-span-1 text-body-small desktop:text-body-large w-full min-h-32 h-full border-b-xSmall border-br-neutral-low  flex items-center justify-center gap-4",{"!border-b-0":a===t.length-1}),dir:"ltr",children:l.name}),(0,r.jsx)("td",{className:(0,o.A)("col-span-1 text-body-bold-small desktop:text-body-medium w-full min-h-32 h-full border-b-xSmall border-br-neutral-low flex items-center justify-center gap-4",{"!border-b-0":a===t.length-1}),dir:"ltr",children:l.withdrawEnabled?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"text-caption-small desktop:text-body-small  text-txt-neutral-medium",children:e.symbol.toUpperCase()}),(0,n.dK)(l.withdrawFee??0,l.withdrawPrecision)]}):"تعلیق"}),(0,r.jsx)("td",{className:(0,o.A)("col-span-1 text-body-bold-small desktop:text-body-medium border-b-xSmall w-full h-full min-h-32 border-br-neutral-low flex items-center justify-center gap-4",{"!border-b-0":a===t.length-1}),dir:"ltr",children:l.withdrawEnabled?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"text-caption-small desktop:text-body-small text-txt-neutral-medium",children:e.symbol.toUpperCase()}),(0,n.dK)(l.withdrawMin??0,l.withdrawPrecision)]}):"تعلیق"}),(0,r.jsx)("td",{className:(0,o.A)("col-span-1 text-body-bold-small desktop:text-body-medium w-full border-b-xSmall h-full min-h-32 border-br-neutral-low flex items-center justify-center gap-4",{"!border-b-0":a===t.length-1}),dir:"ltr",children:l.depositEnabled?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"text-caption-small desktop:text-body-small text-txt-neutral-medium",children:e.symbol.toUpperCase()}),(0,n.dK)(l.depositFee??0,l.withdrawPrecision)]}):"تعلیق"}),(0,r.jsx)("td",{className:(0,o.A)("col-span-1  text-body-bold-small desktop:text-body-medium border-b-xSmall border-br-neutral-low w-full h-full min-h-32 flex items-center justify-center gap-4",{"!border-b-0":a===t.length-1}),dir:"ltr",children:l.depositEnabled?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"text-caption-small desktop:text-body-small text-txt-neutral-medium",children:e.symbol.toUpperCase()}),(0,n.dK)(l.confirmationDepositMin??0,l.withdrawPrecision)]}):"تعلیق"})]}
2,e?.symbol+l.name))]},e?.symbol)}):(0,r.jsx)(b.Ho,{clearQuery:()=>p("")})})]}),t&&t[1]?.content&&(0,r.jsx)(m.default,{content:t[1].content,containerClassName:"text-paragraph-medium tablet:text-paragraph-large text-neutral-default text-justify"})]})}},50584:(e,t,l)=>{"use strict";l.d(t,{v:()=>i});var r=l(67870),a=l(67277),s=l(23128);let i=e=>{let{children:t,size:l="medium",type:i,appearance:n="fill",className:o,onColor:d=!1,dir:c="ltr",prefix:u,postfix:m="٪",number:x}=e,b="number"==typeof x?x:Number((0,a.N)(null!=x?x:"0")),g={small:(0,s.$)("rounded-small  text-button-small",{"h-24 px-4 min-w-40":"ghost"!==n}),medium:(0,s.$)("rounded-medium text-button-medium",{"h-32 min-w-48 px-8":"ghost"!==n}),large:(0,s.$)("rounded-medium  text-headline-xSmall",{"h-40 min-w-[60px] px-8":"ghost"!==n})},p="bg-transparent text-txt-on-color",h={positive:{ghost:(0,s.$)({"bg-transparent text-txt-success-default dark:text-txt-success-default":!d,[p]:d}),fill:(0,s.$)({"bg-bg-success-default-rest text-txt-on-color dark:bg-bg-success-default-rest dark:text-txt-on-color":!d,"bg-bg-fixed-high-rest text-txt-success-default dark:text-txt-success-default":d})},negative:{ghost:(0,s.$)({"bg-transparent text-txt-error-default dark:text-txt-error-default":!d,[p]:d}),fill:(0,s.$)({"bg-bg-error-default-rest text-txt-on-color dark:bg-bg-error-default-rest dark:text-txt-on-color":!d,"bg-bg-fixed-high-rest text-txt-error-default dark:text-txt-error-default":d})},neutral:{ghost:(0,s.$)({"bg-transparent text-txt-neutral-low dark:!text-txt-neutral-low":!d,[p]:d}),fill:(0,s.$)({"bg-bg-neutral-medium-rest text-txt-neutral-medium dark:bg-bg-neutral-medium-rest dark:text-txt-neutral-medium":!d,"bg-bg-fixed-high-rest text-txt-neutral-fixed dark:text-txt-neutral-fixed":d})},disabled:{ghost:"bg-transparent text-txt-disabled dark:text-txt-disabled",fill:"bg-bg-disable text-txt-disabled dark:text-txt-disabled"}};return r.j.jsx("div",{className:(0,s.$)("flex items-center justify-center",g[l],h[null!=i?i:b>0?"positive":b<0?"negative":"neutral"][n],o),dir:c,children:t||r.j.jsxs(r.j.Fragment,{children:[null!=u?u:b>0&&"+",x,m]})})}},52901:(e,t,l)=>{"use strict";l.d(t,{HydrationBoundaryWrapper:()=>i});var r=l(10401),a=l(26643),s=l(44079);let i=e=>{let{children:t,...l}=e;return(0,a.useQueryClient)().clear(),(0,r.jsx)(s.HydrationBoundary,{...l,children:t})}},67277:(e,t,l)=>{"use strict";function r(e){let t=[/۰/g,/۱/g,/۲/g,/۳/g,/۴/g,/۵/g,/۶/g,/۷/g,/۸/g,/۹/g],l=[/٠/g,/١/g,/٢/g,/٣/g,/٤/g,/٥/g,/٦/g,/٧/g,/٨/g,/٩/g];if(e)for(let r=0;r<10;r++)e=e.replace(t[r],r.toString()).replace(l[r],r.toString());return e}l.d(t,{N:()=>r})},73363:(e,t,l)=>{"use strict";l.d(t,{IRTTable:()=>p});var r=l(10401),a=l(56958),s=l(88939),i=l(96859),n=l(46761),o=l(33815),d=l(14885),c=l(19760);let u=["3:45","9:45","12:45","18:45"],m=["چرخه اول","چرخه دوم","چرخه سوم","چرخه چهارم"],x="col-span-1 tablet:text-body-large text-body-small text-center",b="col-span-1 tablet:text-body-medium text-body-small",g=(e,t)=>e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("td",{className:(0,n.A)(x,"hidden desktop:flex"),children:(0,r.jsx)(i.A,{role:"info",size:"medium",children:t("irtDepositTable.active")})}),(0,r.jsx)("td",{className:(0,n.A)(x,"desktop:hidden"),children:(0,r.jsx)(i.A,{role:"info",size:"small",children:t("irtDepositTable.active")})})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("td",{className:(0,n.A)(x,"hidden desktop:flex"),children:(0,r.jsx)(i.A,{role:"error",size:"medium",children:t("irtDepositTable.deactive")})}),(0,r.jsx)("td",{className:(0,n.A)(x,"desktop:hidden"),children:(0,r.jsx)(i.A,{role:"error",size:"small",children:t("irtDepositTable.deactive")})})]}),p=e=>{let{sections:t}=e,{t:l}=(0,o.Bd)(["pricing"]),{coBankFee:i}=(0,a.CU)(),{shetabFee:n,directDebitFee:p}=(0,c.xn)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"flex justify-between",id:"irtDeposit",children:(0,r.jsx)("h2",{className:"text-headline-small",children:l("irtTitle")})}),(0,r.jsx)(s.A,{type:"inContext",className:"w-full text-justify",role:"info",description:l("irtAlert"),hasCloseButton:!1}),(0,r.jsxs)("table",{className:"w-full flex flex-col border-br-neutral-low border-xSmall roun
2ded-xxlarge",children:[(0,r.jsxs)("thead",{className:"flex flex-col ]",children:[(0,r.jsx)("tr",{className:"flex p-24 text-body-bold-large",children:(0,r.jsx)("th",{children:l("irtDepositTable.title")})}),(0,r.jsxs)("tr",{className:"text-txt-neutral-medium grid grid-cols-3 h-32 items-center border-y-xSmall border-br-neutral-low ",children:[(0,r.jsx)("th",{className:b,children:l("irtDepositTable.type")}),(0,r.jsx)("th",{className:b,children:l("irtDepositTable.fee")}),(0,r.jsx)("th",{className:b,children:l("irtDepositTable.status")})]})]}),(0,r.jsxs)("tbody",{className:"flex flex-col ",children:[(0,r.jsxs)("tr",{className:"grid grid-cols-3 items-center justify-items-center h-48  border-br-neutral-low",children:[(0,r.jsx)("td",{className:x,children:l("irtDepositTable.shetabi")}),(0,r.jsxs)("td",{className:x,children:[(100*n.rate).toFixed(2)+"% ",l("irtDepositTable.depositPrice")]}),g(!1,l)]}),(0,r.jsxs)("tr",{className:"grid grid-cols-3 items-center justify-items-center h-48 border-br-neutral-low",children:[(0,r.jsx)("td",{className:x,children:l("irtDepositTable.cobank")}),(0,r.jsxs)("td",{className:x,children:[(100*i.rate).toFixed(2)+"% ",l("irtDepositTable.depositPrice")]}),g(!0,l)]}),(0,r.jsxs)("tr",{className:"grid grid-cols-3 items-center justify-items-center h-48 border-br-neutral-low",children:[(0,r.jsx)("td",{className:x,children:l("irtDepositTable.cardToCard")}),(0,r.jsxs)("td",{className:x,children:["0.02% ",l("irtDepositTable.depositPrice")]}),g(!0,l)]}),(0,r.jsxs)("tr",{className:"pb-16 grid grid-cols-3 items-center justify-items-center h-48 ",children:[(0,r.jsx)("td",{className:x,children:l("irtDepositTable.directDebit")}),(0,r.jsxs)("td",{className:x,children:[(100*p.rate).toFixed(2)+"% ",l("irtDepositTable.depositPrice")]}),g(!0,l)]})]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-16",children:[(0,r.jsx)("h3",{className:"text-headline-small",children:l("irtWithdraw.title")}),(0,r.jsx)("p",{className:"text-paragraph-medium tablet:text-paragraph-large text-neutral-default text-justify",children:l("irtWithdraw.description",{feeRate:"0.02",min:4,max:20,currency:100,amount:100,fee:20})})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-16",id:"irtProcess",children:[(0,r.jsx)("h3",{className:"text-headline-small",children:l("tomanProcess")}),t&&t[2]?.content&&(0,r.jsx)(d.default,{content:t[2].content,containerClassName:"text-paragraph-medium tablet:text-paragraph-large text-neutral-default text-justify"})]}),(0,r.jsxs)("table",{className:"w-full border-br-neutral-low border-xSmall rounded-xxlarge flex flex-col",children:[(0,r.jsxs)("thead",{className:"flex flex-col",children:[(0,r.jsx)("tr",{className:"flex p-24 text-body-bold-large",children:(0,r.jsx)("th",{children:l("cyclesTable.title")})}),(0,r.jsxs)("tr",{className:"text-txt-neutral-medium grid grid-cols-2 h-32 items-center border-y-xSmall border-br-neutral-low",children:[(0,r.jsx)("th",{className:b,children:l("cyclesTable.heading1")}),(0,r.jsx)("th",{className:b,children:l("cyclesTable.heading2")})]})]}),(0,r.jsxs)("tbody",{className:"flex flex-col",children:[u.map((e,t)=>(0,r.jsxs)("tr",{className:"grid grid-cols-2 items-center justify-items-center h-48  border-br-neutral-low",children:[(0,r.jsx)("td",{className:x,children:m[t]}),(0,r.jsxs)("td",{className:x,children:[" شروع از ",e]})]},e)),(0,r.jsxs)("tr",{className:" grid grid-cols-2 items-center justify-items-center h-48",children:[(0,r.jsx)("td",{className:x,children:l("cyclesTable.holdidays")}),(0,r.jsx)("td",{className:x,children:l("cyclesTable.notDepositing")})]})]})]}),t&&t[3]?.content&&(0,r.jsx)(d.default,{content:t[3].content,containerClassName:"text-paragraph-medium tablet:text-paragraph-large text-neutral-default text-justify"})]})}},76001:(e,t,l)=>{Promise.resolve().then(l.bind(l,52901)),Promise.resolve().then(l.bind(l,34921)),Promise.resolve().then(l.bind(l,73363)),Promise.resolve().then(l.bind(l,3938)),Promise.resolve().then(l.bind(l,18538)),Promise.resolve().then(l.bind(l,79978)),Promise.resolve().then(l.bind(l,82024)),Promise.resolve().then(l.bind(l,96743)),Promise.resolve().then(l.bind(l,44079)),Promise.resolve().then(l.bind(l,57516)),Promise.resolve().then(l.bind(l,26643)),Promise.resolve().then(l.bind(l,98918)),Promise.resolve().then(l.bind(l,68158)),Promise.resolve().then(l.bind(l,44786)),Promise.resolve().then(l.bind(l,57858)),Promise.resolve().then(l.bind(l,82154)),Promise.resolve().then(l.bind(l,77484)),Promise.resolve().then(l.bind(l,57846)),Promise.resolve().then(l.bind(l,410)),Promise.resolve().then(l.bind(l,23294)),Promise.resolve().then(l.bind(l,80730)),Promise.resolve().then(l.bind(l,28572)),Promise.resolve().then(l.bind(l,27446)),Promise.resolve().then(l.bind(l,72288))},76077:(e,t,l)=>{"use strict";l.d(t,{A:()=>g});var r=l(67870),a=l(10725),s=l(23128),i=l(74920),n=Object.defineProperty,o=Object.defineProperties,d=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,x=(e,t,l)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l,b=(e,t)=>{for(var l in t||(t={}))u.call(t,l)&&x(e,l,t[l]);if(c)for(var l of c(t))m.call(t,l)&&x(e,l,t[l]);return e};let g=e=>{var t,l,n,c,u,m,x,g,p,h;let{sourceImageSrc:f,destinationImageSrc:y,sourceImageAlt:j,destinationImageAlt:v,size:w="medium",dir:k="rtl",market:N,sourceLink:C,destinationLink:S,sourceTarget:$,destinationTarget:P,sourceRel:z,destinationRel:O,wrapperLink:T,wrapperTarget:_,wrapperRel:A,getCurrencyLogo:I,hideSecondAvatar:L=!1,disabled:R=!1,imageComponent:E,onLogoClick:D}=e,[F,B]=(0,a.useState)(!1),[M,H]=(0,a.useState)(!1),[U,K]=(0,a.useState)(),V=f||(null==I?void 0:I(null==N?void 0:N.source)),W=!!(V&&U===V),q={xxSmall:(0,s.$)("size-24"),xSmall:(0,s.$)("size-32"),small:(0,s.$)("size-40"),medium:(0,s.$)("size-48"),large:(0,s.$)("size-56"),xLarge:(0,s.$)("size-64")},Y={xxSmall:(0,s.$)("size-20"),xSmall:(0,s.$)("size-[26.67px] "),small:(0,s.$)("size-[33.33px]"),medium:(0,s.$)("size-40 "),large:(0,s.$)("size-[46px] "),xLarge:(0,s.$)("size-[53.33px]")},G={xxSmall:(0,s.$)("bottom-[-1px] size-[13px] border-xSmall",{"-left-[1px]":"rtl"===k,"-right-[1px]":"ltr"===k}),xSmall:(0,s.$)("bottom-[-1.5px] size-[17.33px]  border-small",{"-left-[1.5px]":"rtl"===k,"-right-[1.5px]":"ltr"===k}),small:(0,s.$)("bottom-[-2px] size-[21.67px]  border-medium",{"-left-[2px]":"rtl"===k,"-right-[2px]":"ltr"===k}),medium:(0,s.$)("bottom-[-2px] size-[26px]  border-medium",{"-left-[2px]":"rtl"===k,"-right-[2px]":"ltr"===k}),large:(0,s.$)("bottom-[-2.5px] size-[30.33px]  border-focus",{"-left-[2.5px]":"rtl"===k,"-right-[2.5px]":"ltr"===k}),xLarge:(0,s.$)("bottom-[-2.5px] size-[34.67px] border-focus",{"-left-[2.5px]":"rtl"===k,"-right-[2.5px]":"ltr"===k})},Q=(f||(null==N?void 0:N.source))&&(F?r.j.jsx("div",{className:(0,s.$)({"text-caption-small":"xSmall"===w||"xxSmall"===w}),children:null==(n=null==(l=null==(t=null==N?void 0:N.source)?void 0:t.symbol)?void 0:l.slice(0,3))?void 0:n.toUpperCase()}):E?r.j.jsx(E,{className:(0,s.$)("size-full rounded-full",{grayscale:R},{"cursor-pointer":D}),src:V,alt:j||(null==(c=null==N?void 0:N.source)?void 0:c.symbol),onClick:D,onLoad:()=>{K(V)},onError:()=>{B(!0)}}):r.j.jsx("img",{className:(0,s.$)("size-full rounded-full",{grayscale:R}),src:V,alt:j||(null==(u=null==N?void 0:N.source)?void 0:u.symbol),onLoad:()=>{K(V)},onError:()=>{B(!0)}})),J=(y||(null==N?void 0:N.destination))&&(M?r.j.jsx("div",{className:(0,s.$)({"text-[8px]":"xSmall"===w||"xxSmall"===w}),children:null==(g=null==(x=null==(m=null==N?void 0:N.destination)?void 0:m.altSymbol)?void 0:x.slice(0,3))?void 0:g.toUpperCase()}):E?r.j.jsx(E,{src:y||(null==I?void 0:I(null==N?void 0:N.destination)),className:(0,s.$)("size-full rounded-full",{grayscale:R}),onError:()=>{H(!0)},alt:v||(null==(p=null==N?void 0:N.destination)?void 0:p.symbol)}):r.j.jsx("img",{src:y||(null==I?void 0:I(null==N?void 0:N.destination)),className:(0,s.$)("size-full rounded-full",{grayscale:R}),onError:()=>{H(!0)},alt:v||(null==(h=null==N?void 0:N.destination)?void 0:h.symbol)})),X=(0,s.$)("absolute flex items-center justify-center rounded-full",{"bg-bg-primary-default-rest":!W},Y[w]),Z=(0,s.$)("absolute mt-auto box-content flex items-center justify-center rounded-full border-bg-surface-1 bg-icn-disabled dark:border-bg-surface-1"," bottom-0",{"left-0":"rtl"===k},{"right-0":"ltr"===k},G[w]),ee=(0,i.n)(Q,C,$,z,X),et=(0,i.n)(J,S,P,O,Z),el=(0,i.n)(r.j.jsx(r.j.Fragment,{}),T,_,A,(0,s.$)("relative",q[w])),er=el.type;return r.j.jsxs(er,o(b({},"object"==typeof el.props?b({},el.props):{}),d({dir:k,children:[ee,!L&&et]})))}},79978:(e,t,l)=>{"use strict";l.d(t,{TradeTable:()=>c});var r=l(10401),a=l(56958),s=l(96859),i=l(25996),n=l(33815),o=l(14885);let d="col-span-1 text-body-small desktop:text-body-medium",c=e=>{let{sections:t}=e,{t:l}=(0,n.Bd)(["pricing"]),{optionsQuery:c}=(0,a.CU)(),u=c.data.nobitex.tradingFees.makerFees.map((e,t)=>({maker:c.data.nobitex.tradingFees.makerFees[t],taker:c.data.nobitex.tradingFees.takerFees[t],makerTether:c.data.nobitex.tradingFees.makerFeesTether[t],takerTether:c.data.nobitex.tradingFees.takerFeesTether[t]}
2));return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-col gap-16",children:[(0,r.jsx)("h2",{className:"text-headline-small",children:l("tradeTitle")}),(0,r.jsx)("p",{className:"text-paragraph-medium tablet:text-paragraph-large text-neutral-default text-justify ",children:l("tradeDescription")})]}),(0,r.jsxs)("table",{className:"w-full flex flex-col p-24 border-xSmall rounded-xxlarge border-br-neutral-low  overflow-x-scroll tablet:overflow-x-auto ",children:[(0,r.jsx)("thead",{className:"flex flex-col min-w-[600px]",children:(0,r.jsxs)("tr",{className:" w-full text-txt-neutral-medium grid grid-cols-5  items-center border-br-neutral-low border-b-xSmall ",children:[(0,r.jsx)("th",{className:d,children:l("tradeTable.heading1")}),(0,r.jsx)("th",{className:"col-span-2 text-body-small desktop:text-body-medium",children:l("tradeTable.heading2")}),(0,r.jsxs)("th",{className:"col-span-2",children:[(0,r.jsxs)("div",{className:"grid grid-cols-2 h-24 border-b-xSmall border-br-neutral-low",children:[(0,r.jsx)("div",{className:d,children:l("tradeTable.tomani")}),(0,r.jsx)("div",{className:d,children:l("tradeTable.tetheri")})]}),(0,r.jsxs)("div",{className:"grid grid-cols-4 h-32 items-center",children:[(0,r.jsx)("div",{className:d,children:l("tradeTable.maker")}),(0,r.jsx)("div",{className:d,children:l("tradeTable.taker")}),(0,r.jsx)("div",{className:d,children:l("tradeTable.maker")}),(0,r.jsx)("div",{className:d,children:l("tradeTable.taker")})]})]})]})}),(0,r.jsx)("tbody",{className:"flex flex-col min-w-[600px]",children:[l("tradeTable.base"),"VIP1","VIP2","VIP3","VIP4","VIP5","VIP6"].map((e,t)=>(0,r.jsxs)("tr",{className:"grid grid-cols-5 items-center justify-items-center h-48 ",children:[(0,r.jsx)("td",{className:"hidden desktop:flex col-span-1",children:(0,r.jsx)(s.A,{role:"primary",size:"medium",children:e})}),(0,r.jsx)("td",{className:"desktop:hidden col-span-1",children:(0,r.jsx)(s.A,{role:"primary",size:"small",children:e})}),(0,r.jsx)("td",{className:"col-span-2 text-body-small desktop:text-body-medium",children:l(`tradeTable.rows.${t}`)}),(0,r.jsx)("td",{className:"col-span-2 grid grid-cols-4 w-full justify-items-center",children:u.length&&Object.entries(u[t]).map(t=>{let[a,s]=t;return(0,r.jsxs)("div",{dir:"ltr",className:"col-span-1 text-body-small desktop:text-body-medium",children:[s,l("percent")]},a+e)})})]},e))})]}),t&&t[0]?.content&&(0,r.jsx)(o.default,{content:t[0].content,containerClassName:"hidden tablet:flex flex-col gap-8 list-disc"}),(0,r.jsx)("div",{className:"tablet:hidden flex flex-col",children:(0,r.jsx)(i.A,{minHeight:280,triggerHideText:l("coinPage.hideText"),triggerShowText:l("coinPage.showText"),background:"bg-surface-1",children:(0,r.jsx)("ol",{className:" flex-col gap-8 list-disc",children:[0,1,2,3,4,5,6].map(e=>(0,r.jsx)("li",{className:"text-paragraph-medium text-neutral-default text-justify text-bg-neutral-high-rest ",children:(0,r.jsx)("div",{className:"text-txt-neutral-default",children:l(`tradeBulletPoints.${e}`)})},e))})})})]})}},82024:(e,t,l)=>{"use strict";l.d(t,{default:()=>u});var r=l(10401),a=l(10725),s=l(46761),i=l(33815),n=l(70295),o=l(76376),d=l(17310),c=l(19760);let u=e=>{let{heading:t,updateTime:l="",description:u,className:m}=e,{t:x}=(0,i.Bd)("common"),[b,g]=(0,a.useState)(),[p,h]=(0,a.useState)(!1),f=`${(0,d.Bd)()?window.location.href:c.VT}`,y=async()=>{h(!0),await (0,d.tg)({url:f,title:x("homeLinkTitle")},e=>{e?.name!=="AbortError"&&(0,d.lW)(f).then(()=>{o.toast.info(x("successSharingOnClipboard"),{autoClose:1500})})}).finally(()=>h(!1))&&o.toast.success(x("successSharing"))};return(0,a.useEffect)(()=>{l&&g(new Date(l).toLocaleDateString("fa",{dateStyle:"medium"}))},[l]),(0,r.jsx)("section",{className:(0,s.A)("w-full flex justify-center items-center min-h-[184px] tablet:min-h-[236px] desktop:min-h-[268px] py-40 tablet:py-64 desktop:py-64","bg-[radial-gradient(circle_at_left_top,#754EC633_10%,#F3EEFC33_40%,transparent_100%),radial-gradient(circle_at_right_bottom,#754EC633_15%,#F3EEFC33_40%,transparent_100%)] bg-no-repeat","dark:bg-[radial-gradient(circle_at_left_top,#966BED33_10%,#20153B33_40%,transparent_100%),radial-gradient(circle_at_right_bottom,#966BED33_15%,#20153B33_40%,transparent_100%)] bg-no-repeat"),children:(0,r.jsxs)("div",{className:(0,s.A)("flex flex-col w-full max-w-[1440px] px-16 tablet:px-40 gap-y-24 desktop:gap-y-4
20",m),children:[(0,r.jsxs)("div",{className:"flex flex-col gap-y-4 desktop:gap-y-8 tablet:gap-y-8",children:[(0,r.jsx)("h1",{className:"text-headline-medium desktop:text-headline-large",children:t}),u&&(0,r.jsx)("p",{className:"text-txt-neutral-medium text-paragraph-medium tablet:text-paragraph-large text-justify desktop:text-headline-xSmall",children:u})]}),(0,r.jsxs)("div",{className:"flex justify-between items-end",children:[(0,r.jsx)("div",{className:"flex flex-col gap-y-4",children:b&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"text-body-small tablet:text-body-medium desktop:text-body-medium text-icn-neutral-medium",children:x("latestUpdate")}),(0,r.jsx)("span",{className:"text-body-small tablet:text-body-medium desktop:text-body-medium",children:b})]})}),(0,r.jsx)(n.A,{size:"40",role:"neutral",appearance:"fill",loading:p,onClick:y,className:"hidden tablet:flex",startIcon:"icon-share-07_outlined",children:x("share")}),(0,r.jsx)(n.A,{size:"32",role:"neutral",appearance:"fill",loading:p,onClick:y,className:"tablet:hidden",startIcon:"icon-share-07_outlined",children:x("share")})]})]})})}},87186:(e,t,l)=>{"use strict";l.d(t,{S:()=>i});var r=l(67870),a=l(23128),s=l(13561);let i=e=>{let{children:t,minHeight:l,timeout:i,className:n,open:o,background:d="default"}=e,[c,{height:u}]=(0,s.A)();return r.j.jsx("div",{style:{height:o?`${u}px`:`${l}px`,overflowY:o?"visible":"hidden",transitionDuration:`${i}ms`},className:(0,a.$)(n,"transition-[height]"),children:r.j.jsxs("div",{ref:c,className:"relative",children:[!o&&r.j.jsx("div",{className:(0,a.$)("absolute inset-x-0 top-0",{"bg-gradient-to-t from-white via-white/90 to-white/30 dark:from-bg-surface-0 dark:via-bg-surface-0/90 dark:to-bg-surface-0/30":!o&&"default"===d,"bg-gradient-to-t from-bg-surface-2 via-bg-surface-2/90 to-bg-surface-2/30 dark:from-bg-surface-2 dark:via-bg-surface-2/90 dark:to-bg-surface-2/30":!o&&"bg-surface-2"===d,"bg-gradient-to-t from-bg-surface-0 via-bg-surface-0/90 to-bg-surface-0/30 dark:from-bg-surface-0 dark:via-bg-surface-0/90 dark:to-bg-surface-0/30":!o&&"bg-surface-0"===d,"bg-gradient-to-t from-bg-surface-1 via-bg-surface-1/90 to-bg-surface-1/30 dark:from-bg-surface-1 dark:via-bg-surface-1/90 dark:to-bg-surface-1/30":!o&&"bg-surface-1"===d}),style:{height:`${l}px`}}),t]})})}},88939:(e,t,l)=>{"use strict";l.d(t,{A:()=>d});var r=l(67870),a=l(23128),s=l(7503),i=l(73595),n=l(55211),o=l(70295);let d=e=>{let{type:t,role:l,size:d="desktop",acceptText:c,rejectText:u,message:m,description:x,hasCloseButton:b=!0,acceptButton:g,rejectButton:p,onClose:h,onAccept:f,onReject:y,icon:j,className:v}=e,w={inContext:(0,a.$)({"p-12  w-full rounded-medium flex-col":"mobile"===d,"p-16  w-full rounded-medium justify-between":"desktop"===d}),sticky:(0,a.$)(" box-content items-center py-12 ",{"px-16 py-12 gap-12 min-h-48 w-[calc(100%-32px)]":"mobile"===d,"px-24 gap-16  h-48 w-[calc(100%-48px)]":"desktop"===d})},k={primary:r.j.jsx("span",{children:r.j.jsx(i.A,{height:20,width:20})}),info:(0,n.s)("icon-alert-circle_outlined","text-icn-info-default dark:text-icn-info-default size-20 text-[20px] leading-[20px]"),error:(0,n.s)("icon-alert-circle_outlined","text-icn-error-default dark:text-icn-error-default size-20 text-[20px] leading-[20px]"),warning:(0,n.s)("icon-alert-triangle_outlined","text-icn-warning-default dark:text-icn-warning-default size-20 text-[20px] leading-[20px]"),success:(0,n.s)("icon-check-circle_outlined","text-icn-success-default dark:text-icn-success-default size-20 text-[20px] leading-[20px]"),neutral:""},N={primary:(0,a.$)("bg-bg-primary-low-rest dark:bg-bg-primary-low-rest"),info:(0,a.$)("bg-bg-info-low dark:bg-bg-info-low"),warning:(0,a.$)("bg-bg-warning-low dark:bg-bg-warning-low"),error:(0,a.$)("bg-bg-error-low-rest dark:bg-bg-error-low-rest"),success:(0,a.$)("bg-bg-success-low-rest dark:bg-bg-success-low-rest"),neutral:(0,a.$)("bg-bg-neutral-low-rest dark:bg-bg-neutral-default-rest")},C=r.j.jsx(o.A,{iconOnly:!0,role:"neutral",appearance:"ghost",className:"",size:"24",onClick:h,endIcon:r.j.jsx("span",{className:"icon-x-close_outlined"})});return r.j.jsx("div",{className:(0,s.QP)((0,a.$)("flex ",N[l],w[t],v)),children:r.j.jsxs("div",{className:(0,a.$)("flex w-full items-center justify-between",{"flex-col":"inContext"===t||"mobile"===d,"gap-16":"inContext"===t&&"desktop"===d,"gap-12":"mobile"===d}),children:[r.j.jsxs("div",{className:(0,a.$)("flex w-full gap-8"),children:[j?"string"==typeof j?(0,n.s)(j,"size-20 text-[20px] leading-[20px]"):j:k[l],r.j.jsxs("div",{className:(0,a.$)("me-auto flex w-auto flex-col gap-8"),children:[!!m&&r.j.jsx("div",{className:(0,a.$)("flex gap-8 text-body-bold-medium text-txt-neutral-default dark:text-txt-neutral-default"),children:m}),!!x&&r.j.jsx("div",{className:(0,a.$)("text-body-small text-txt-neutral-default dark:text-txt-neutral-default"),children:x})]}),("inContext"===t||"mobile"===d)&&b&&C]}),(u||c||p||g)&&r.j.jsxs("div",{className:(0,a.$)("flex items-center ",{"mx-40":"sticky"===t&&"desktop"===d&&u,"gap-16 ":"desktop"===d,"gap-8 w-full ":"mobile"===d,"self-end":"inContext"===t&&"desktop"===d}),children:[null!=p?p:u&&r.j.jsx(o.A,{role:"neutral",appearance:"outline",size:"small",className:(0,a.$)({"w-1/2":"mobile"===d}),onClick:y,children:u}),null!=g?g:c&&r.j.jsx(o.A,{role:"neutral",appearance:"fill",onColor:"sticky"===t,size:"small",className:(0,a.$)({"w-1/2":"mobile"===d}),onClick:f,children:c})]}),"sticky"===t&&"desktop"===d&&b&&C]})})}},91422:(e,t,l)=>{"use strict";l.d(t,{D:()=>n,DifferedCoinsProvider:()=>i});var r=l(10401),a=l(10725);let s=(0,a.createContext)(void 0),i=e=>{let{children:t,coins:l}=e;return(0,r.jsx)(s,{value:{differedCoins:l},children:t})},n=()=>{let e=(0,a.useContext)(s);if(!e)throw Error("useDifferedCoins must be used within a DifferedCoinsProvider");return e}},94788:(e,t,l)=>{"use strict";l.d(t,{l:()=>k});var r=l(67870),a=l(10725),s=l(23128),i=l(30881),n=l(50147),o=l(55211);function d(e){var t;let{value:l,placeholder:a,renderValue:i,variant:n,status:d="neutral",multiple:c=!1,size:u="medium",onClick:m,tabbable:x=!0,isSelectOpen:b=!1,customRef:g,disabled:p,readOnly:h,visualButton:f}=e,y=e=>{((null==e?void 0:e.code)==="Enter"||(null==e?void 0:e.code)==="Space")&&(null==m||m(e))},j=(0,s.$)({"focus:!border-small focus:!border-br-neutral-high focus-visible:outline-hidden":!h}),v=(0,s.$)({"!text-txt-neutral-default":b,"active:!text-txt-neutral-default":!p&&!h}),w={small:(0,s.$)("h-32 text-body-small pl-4 pr-8"),medium:(0,s.$)("h-40 text-body-medium pl-8 pr-12"),large:(0,s.$)("h-48 text-body-medium pl-12 pr-16")},k={neutral:(0,s.$)("border-br-neutral-default"),error:(0,s.$)("!border-br-error-default"),success:(0,s.$)("!border-br-success-default"),warning:(0,s.$)("!border-br-warning-default")},N={inset:(0,s.$)("border-br-neutral-lowest bg-bg-neutral-low-rest dark:bg-bg-neutral-low-rest"),inline:(0,s.$)({"border-transparent":"neutral"===d}),outline:(0,s.$)("border-br-neutral-low dark:border-br-neutral-low"),onColor:(0,s.$)("!border-icn-on-color disabled:!border-br-neutral-default dark:!border-icn-on-color disabled:dark:!border-br-neutral-default",{"!text-on-color":c&&l&&l.length>0||!c&&l})};return r.j.jsxs(r.j.Fragment,{children:[f&&r.j.jsx("div",{onClick:m,onKeyDown:y,ref:g,"aria-disabled":p||h||void 0,tabIndex:x?0:-1,children:f}),r.j.jsxs("button",{type:"button",className:(0,s.$)("flex w-full cursor-pointer items-center rounded-medium border-xSmall text-txt-neutral-medium","hover:bg-bg-neutral-low-hovered hover:dark:bg-bg-neutral-low-hovered","justify-between disabled:cursor-not-allowed disabled:text-txt-disabled",w[u],N[n],k[d],j,v,{"disabled:!bg-bg-disable":"inline"!==n,"!text-txt-neutral-default":h||(c&&l&&l.length>0||!c&&l)&&"onColor"!==n,"!text-txt-on-color":(c&&l&&l.length>0||!c&&l)&&"onColor"===n,"bg-bg-disable! border-br-disabled! cursor-default! hover:bg-bg-disable dark:hover:bg-bg-disable":h},f&&"hidden!"),onClick:m,onKeyDown:y,ref:g,disabled:p,"aria-disabled":h||void 0,tabIndex:x?0:-1,children:[r.j.jsx("span",{className:"w-[calc(100%-20px)] text-start",children:!l||Array.isArray(l)&&0===l.length?a:c&&(null==i?void 0:i(l))||!c&&(null!=(t=null==i?void 0:i(l))?t
2:null==l?void 0:l.label)}),(0,o.s)(b?"icon-chevron-up_outlined":"icon-chevron-down_outlined",(0,s.$)("text-icn-neutral-low dark:text-icn-neutral-low",{"!text-txt-on-color dark:!text-txt-on-color":"onColor"===n,"!text-txt-disabled":p||h}))]})]})}var c=l(23133),u=l(71118),m=l(45303),x=l(41060),b=Object.defineProperty,g=Object.defineProperties,p=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,j=(e,t,l)=>t in e?b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l,v=(e,t)=>{for(var l in t||(t={}))f.call(t,l)&&j(e,l,t[l]);if(h)for(var l of h(t))y.call(t,l)&&j(e,l,t[l]);return e};function w(e,t,l){let r=[];return l&&e?null==t||t.forEach(t=>{var l;return r.push(null==(l=null==e?void 0:e.filter(e=>e.value===t))?void 0:l[0])}):e&&r.push(null==e?void 0:e.filter(e=>(0,x.A)(e.value)(t))[0]),r}function k(e){var t,l,o,x;let b,h,{value:f,onChange:y,renderOption:j,renderOptionLabel:k,renderValue:N,name:C,placeholder:S,disabled:$,readOnly:P,options:z,multiple:O,title:T,description:_,variant:A,size:I="medium",children:L,openOnClick:R=!0,required:E,openOnHover:D=!1,status:F="neutral",tabbable:B=!0,inputRef:M,hasCheckIcon:H,removeRelativePositioning:U=!1,renderSelectButton:K,searchFunction:V,hasSearch:W=!0,optionClassName:q,containerClassName:Y,hasActionBar:G=!1,noBorderBetweenOptions:Q=!1,bottomSheet:J=!1,actionBarProps:X={},defaultValue:Z,renderActionBar:ee,emptyStateTitle:et,optionContentHeight:el,emptyStateIcon:er,emptyStateDescription:ea,maxOverlayHeight:es,statusMessage:ei,initialVisible:en,hideDescriptionInDropDown:eo,hideDescriptionInSelect:ed=!1,skeleton:ec,isLoading:eu,emptyState:em,overlayProps:ex,customDropdownButton:eb,onOverlayClosed:eg}=e,ep=(0,c.A)(i.q.TABLET,!0),[eh,ef]=(0,a.useState)(null!=(t=null!=en?en:null==ex?void 0:ex.visible)&&t),[ey,ej]=(0,a.useState)(null!=(l=null==ex?void 0:ex.position)?l:"bottom"),ev=(0,a.useRef)(null),ew=(0,a.useRef)(null),ek=(0,a.useRef)(null),{y:eN}=(0,u.A)(),[eC,eS]=(0,a.useState)(Z?w(null!=z?z:[],Z,O):[]);return(0,a.useEffect)(()=>{(null==ex?void 0:ex.visible)!==void 0&&ef(null==ex?void 0:ex.visible)},[null==ex?void 0:ex.visible]),(0,a.useLayoutEffect)(()=>{var e,t,l,r;null!=ex&&ex.fixedPosition&&null!=ex&&ex.position?ej(null==ex?void 0:ex.position):((null==(t=null==(e=null==ew?void 0:ew.current)?void 0:e.getBoundingClientRect())?void 0:t.bottom)||0)+((null==(r=null==(l=null==ek?void 0:ek.current)?void 0:l.getBoundingClientRect())?void 0:r.height)||0)+20>=window.innerHeight?ej("top"):ej("bottom")},[eN,eh]),(0,m.A)(ev,e=>{var t;null!=(t=ek.current)&&t.contains(e.target)||(!J||ep)&&(ef(!1),null==eg||eg())}),(0,a.useEffect)(()=>{null==f&&eS(null),z&&f&&eS(w(z,f,O))},[f,O,z]),r.j.jsxs("div",{className:(0,s.$)(Y,"flex flex-col gap-8"),ref:ev,children:[T&&r.j.jsx("label",{className:(0,s.$)("cursor-pointer text-txt-neutral-default dark:text-txt-neutral-default",{"text-caption-large":"large"===I||"medium"===I,"text-caption-medium":"small"===I,"text-txt-on-color":"onColor"===A,"!text-txt-disabled":$,"cursor-default!":P}),onClick:()=>!P&&ef(!eh),children:T}),r.j.jsxs("div",(b=v({className:(0,s.$)(" w-full",{relative:!U})},!R||D?{onMouseOver:()=>{P||ef(!0)},onMouseOut:()=>{P||(ef(!1),null==eg||eg())}}:{}),h={children:[null!=(o=null==K?void 0:K(()=>!P&&ef(!eh),O?eC:null!=eC&&eC.length?eC[0]:null,eh,ew))?o:r.j.jsx(d,{variant:A,visualButton:eb,value:O?eC:null!=eC&&eC.length?eC[0]:void 0,renderValue:N,multiple:O,isSelectOpen:eh,tabbable:B,disabled:$,readOnly:P,size:I,status:F,customRef:ew,onClick:()=>!P&&ef(!eh),placeholder:S}),r.j.jsx(n.h,g(v({},ex),p({value:O?eC:null!=eC&&eC.length?eC[0]:void 0,visible:eh,isLoading:eu,skeleton:ec,renderOption:j,maxHeight:es,renderOptionLabel:k,onChange:(e,t)=>
2{z&&eS(O?t:[t]),null==y||y(e,t)},options:z,hasActionBar:G,actionBarProps:X,renderActionBar:ee,onClose:()=>{ef(!1),null==eg||eg()},position:ey,anchorRef:ew,multiple:O,onOptionClick:()=>{O||(ef(!1),null==eg||eg())},size:I,description:_,title:T,customRef:ek,hideDescriptionInDropDown:eo,optionContentHeight:el,bottomSheet:J,hasCheckIcon:H,hasSearch:W,searchFunction:V,optionClassName:q,borderless:Q,emptyState:em,emptyStateIcon:er,children:L})))]},g(b,p(h)))),!ed&&_&&r.j.jsx("div",{className:(0,s.$)("text-caption-medium text-txt-neutral-medium dark:text-txt-neutral-medium",{"text-txt-on-color":"onColor"===A,"!text-txt-disabled":$}),children:_}),ei&&"neutral"!==F&&r.j.jsx("div",{className:(0,s.$)("text-caption-medium ",{"text-txt-error-default":"error"===F,"text-txt-success-default":"success"===F,"text-txt-warning-default":"warning"===F}),children:ei}),r.j.jsx("input",{type:"hidden",name:C,disabled:$,required:E,ref:M,value:Array.isArray(x=O?eC:null!=eC&&eC.length?eC[0]:null)?0===x.length?"":JSON.stringify(x.map(e=>e.value)):(null==x?void 0:x.value)==null?"":"string"==typeof x.value||"number"==typeof x.value?x.value:JSON.stringify(x.value)})]})}},96743:(e,t,l)=>{"use strict";l.d(t,{default:()=>i});var r=l(10401),a=l(88357),s=l.n(a);let i=e=>{let{jsonLd:t=[],id:l}=e;return(0,r.jsx)(r.Fragment,{children:t?.map((e,t)=>(0,r.jsx)("script",{id:`${t}`,type:"application/ld+json",dangerouslySetInnerHTML:{__html:s().sanitize(JSON.stringify(e.content))}},`${l}-${t}`))})}},96859:(e,t,l)=>{"use strict";l.d(t,{A:()=>o});var r=l(67870),a=l(23128),s=l(55211);let i={16:(0,a.$)("h-16 px-2 text-button-small"),20:(0,a.$)("h-20 text-button-small px-4"),small:(0,a.$)("h-24 text-button-small px-8"),24:(0,a.$)("h-24 text-button-small px-8"),medium:(0,a.$)("h-32 text-button-medium px-8"),32:(0,a.$)("h-32 text-button-medium px-8")},n={primary:(0,a.$)("bg-bg-primary-low-rest text-txt-primary-high dark:bg-bg-primary-low-rest dark:text-txt-primary-high"),success:(0,a.$)("bg-bg-success-low-rest text-txt-success-high dark:bg-bg-success-low-rest dark:text-txt-success-high"),error:(0,a.$)("bg-bg-error-low-rest text-txt-error-high dark:bg-bg-error-low-rest dark:text-txt-error-high"),warning:(0,a.$)("bg-bg-warning-low text-txt-warning-high dark:bg-bg-warning-low dark:text-txt-warning-high"),info:(0,a.$)("bg-bg-info-low text-txt-info-high dark:bg-bg-info-low dark:text-txt-info-high"),neutral:(0,a.$)("bg-bg-neutral-default-rest text-txt-neutral-default dark:bg-bg-neutral-default-rest dark:text-txt-neutral-default"),disabled:"bg-bg-disable text-txt-disabled dark:text-txt-disabled"},o=e=>{let{children:t,icon:l,role:o,className:d,dataTestId:c,size:u="medium",dir:m="rtl"}=e;return r.j.jsxs("div",{className:(0,a.$)(i[u],n[o],d,"flex items-center justify-center gap-2 rounded-small font-medium"),dir:m,"data-testid":c,children:[l&&(0,s.s)(l),t]})}}},e=>{e.O(0,[3815,119,9346,2152,5740,7503,5705,8357,1957,6045,793,6826,7706,1752,8854,7684,8727,9407,6863,8017,7380,2221,9550,7358],()=>e(e.s=76001)),_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.