1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="53e820ba-eefe-4382-9448-a74eb17a4868",e._sentryDebugIdIdentifier="sentry-dbid-53e820ba-eefe-4382-9448-a74eb17a4868")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1162,89902],{15952:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var n=r(18153),l=r(5067),a=r(7962),i=r(41792),o=r(31548),s=r(84733),c=r(74978),u=r(55134),d=r(20818),p=r(59312),h=r(10616),f=r(41182);let g=e=>{let{children:t,title:r,open:g,onClose:v,actionsContent:m,actionsProps:x,zIndexOffset:b=0,...y}=e,A=(0,p.$W)(),Y=(0,h.A)();return A?(0,n.FD)(c.Ay,{anchor:"bottom",open:g,onClose:v,ModalProps:{keepMounted:!0,style:{zIndex:Y.zIndex.modal+b}},PaperProps:{sx:{display:"flex",flexDirection:"column",maxHeight:"90vh",borderTopLeftRadius:12,borderTopRightRadius:12,overflow:"hidden"}},...y,children:[r?(0,n.FD)(s.A,{m:1,display:"flex",alignItems:"flex-start",justifyContent:"space-between",position:"sticky",top:0,zIndex:1,children:[(0,n.Y)(l.A,{variant:"body1",sx:{p:1},children:r}),(0,n.Y)(u.A,{onClick:e=>null==v?void 0:v(e,"escapeKeyDown"),sx:{color:e=>e.palette.grey[500]},children:(0,n.Y)(d.default,{})})]}):(0,n.Y)(s.A,{sx:{display:"flex",justifyContent:"center",pt:1.5,pb:1},children:(0,n.Y)(s.A,{sx:{width:80,height:4,borderRadius:2,backgroundColor:"divider"}})}),(0,n.Y)(s.A,{sx:{px:2,pt:2*!r,pb:2,flex:1,mt:1,overflowY:"auto",WebkitOverflowScrolling:"touch"},children:t}),m&&(0,n.Y)(s.A,{position:"sticky",bottom:0,zIndex:1,children:(0,n.Y)(f.A,{sx:{my:.5},...x,children:m})})]}):(0,n.Y)(a.A,{open:g,onClose:v,maxWidth:"sm",fullWidth:!0,PaperProps:{sx:{borderRadius:4,overflowX:"hidden"}},...y,children:(0,n.FD)(n.FK,{children:[r&&(0,n.FD)(i.A,{component:"div",sx:{display:"flex",alignItems:"center"},children:[(0,n.Y)(l.A,{variant:"h6",sx:{flexGrow:1},children:r}),(0,n.Y)(u.A,{"aria-label":"close",onClick:e=>null==v?void 0:v(e,"escapeKeyDown"),sx:{position:"absolute",right:12,top:12,color:e=>e.palette.grey[500]},children:(0,n.Y)(d.default,{})})]}),(0,n.Y)(o.A,{children:t}),m&&(0,n.Y)(f.A,{sx:{m:.5},...x,children:m})]})})}},18336:(e,t,r)=>{"use strict";r.d(t,{W:()=>i,y:()=>o});var n=r(18153),l=r(14232);let a=(0,l.createContext)(null);function i(e){let{children:t}=e,r=(0,l.useRef)(null),i=(0,l.useCallback)(e=>{r.current=e},[]),o=(0,l.useCallback)((e,t)=>{let n=r.current;return n&&n.targetPair.toUpperCase()===e.toUpperCase()&&n.side===t?(r.current=null,n):null},[]);return(0,n.Y)(a.Provider,{value:{setValues:i,consumeValues:o},children:t})}function o(){let e=(0,l.useContext)(a);if(!e)throw Error("useMarginCalculatorValues must be used within MarginCalculatorProvider");return e}},20524:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(18153),l=r(77328),a=r.n(l),i=r(46973);let o="Ø®Ø±ÛØ¯ Ù ÙØ±ÙØ´ Ø¨ÛØ´ از ".concat(i.A.numberOfTradeCoins," ارز Ø¯ÛØ¬Ûتا٠در صراÙÛ ").concat(i.A.nameFa," (").concat(i.A.nameEn,") تÙÙØ§ صراÙÛ Ø¨Ø§ کارÙ
زد ØµÙØ± در Ø§ÛØ±Ø§Ù Ø¯Ø§Ø±Ø§Û Ù¾Ø´ØªÛØ¨Ø§ÙÛ 24 Ø³Ø§Ø¹ØªÙØ Ú©ÛÙ Ù¾Ù٠اختصاصÛ.");function s(e){let{value:t}=e,r=t||o;return(0,n.FD)(a(),{children:[(0,n.Y)("meta",{name:"description",content:r}),(0,n.Y)("meta",{property:"og:description",content:r})]})}},26503:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/trade/classic/[symbol]",function(){return r(79077)}])},33286:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>p,Oq:()=>o,Zy:()=>d,wX:()=>i});var n=r(18153),l=r(14232),a=r(39051);let i="SET_OPEN",o="SET_CLOSE",s={open:!1,coin:void 0},c=(0,l.createContext)({state:s,dispatch:()=>null}),u=(e,t)=>{switch(t.type){case"RESET":return{...s};case o:return{...e,open:!1};case i:return{...e,open:!0,coin:null==t?void 0:t.payload};default:throw Error()}},d=()=>(0,l.useContext)(c),p=e=>{let{children:t}=e,[r,i]=(0,l.useReducer)(u,s);return(0,n.FD)(c.Provider,{value:{state:r,dispatch:i},children:[t,(0,n.Y)(a.default,{})]})}},39051:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(18153),l=r(14232),a=r(18847),i=r.n(a),o=r(46513),s=r(33286),c=r(15952);let u=i()(()=>Promise.all([r.e(68044),r.e(39242),r.e(12876),r.e(77028),r.e(48627),r.e(62168),r.e(91408),r.e(72311),r.e(22353),r.e(12712),r.e(93781),r.e(45801),r.e(81509),r.e(95848),r.e(34293),r.e(9620)]).then(r.bind(r,12825)),{loadableGenerated:{webpack:()=>[12825]},loading:()=>(0,n.Y)(o.A,{variant:"rectangular",height:404})}),d=i()(()=>r.e(76962).then(r.bind(r,76962)),{loadableGenerated:{webpack:()=>[76962]},loading:()=>(0,n.Y)(o.A,{variant:"rectangular",height:404})});function p(e){let{}=e,{dispatch:t,state:{open:r}}=(0,s.Zy)(),[a,i]=(0,l.useState)(0),[o,p]=(0,l.useState)(),h=()=>{i(0),t({type:s.Oq})};return(0,n.Y)(c.default,{open:r,onClose:h,maxWidth:"xs",title:"Ø§ÙØªÙاÙ",zIndexOffset:100,children:0===a?(0,n.Y)(u,{setStep:i,setLog:p}):(0,n.Y)(d,{onClose:h,log:o})})}},59312:(e,t,r)=>{"use strict";r.d(t,{$W:()=>i,xL:()=>o});var n=r(10616),l=r(6995),a=r(89902);function i(){let e=(0,n.A)(),t=(0,l.A)(e.breakpoints.down("md")),{isMobileSize:r}=(0,a.useScreenSize)();return t||r}function o(){let e=(0,n.A)(),t=(0,l.A)(e.breakpoints.down("sm")),{isMobileSize:r}=(0,a.useScreenSize)();return t||r}},79077:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>L,default:()=>U});var n=r(18153),l=r(44517),a=r(20524),i=r(14232),o=r(91421),s=r(18697),c=r(84733),u=r(17558),d=r
1(33049),p=r(68502),h=r(42814),f=r(5067),g=r(95654),v=r(10616),m=r(52451),x=r(83073),b=r(59312),y=r(46973);let A=()=>{let e=(0,b.$W)(),{state:t}=(0,i.useContext)(o.H5),r=(0,v.A)(),l=(e=>({[m.c.CONNECTING]:{text:"در ØØ§Ù اتصاÙ...",lightModeTextColor:e.palette.text.mainColorText,darkModeTextColor:e.palette.primary.main},[m.c.OPEN]:{text:"Ø§ØªØµØ§Ù Ù¾Ø§ÛØ¯Ø§Ø±",lightModeTextColor:x.A[700],darkModeTextColor:x.A[300]},[m.c.CLOSING]:{text:"Ø§ØªØµØ§Ù ÙØ§Ù¾Ø§Ûدار",lightModeTextColor:e.palette.error.main,darkModeTextColor:e.palette.error.main},[m.c.CLOSED]:{text:"Ø§ØªØµØ§Ù ÙØ§Ù¾Ø§Ûدار",lightModeTextColor:e.palette.error.main,darkModeTextColor:e.palette.error.main}}))(r),a="light"===r.palette.mode?l[t].lightModeTextColor:l[t].darkModeTextColor;return(0,n.FD)(c.A,{display:"flex",justifyContent:"space-between",position:"fixed",bottom:0,minHeight:32,width:"100%",bgcolor:r.vars.palette.background.default,paddingX:e?1:3,zIndex:100,borderTop:"1px solid ".concat(r.vars.palette.grey[300]),children:[(0,n.FD)(c.A,{display:"flex",gap:2,children:[e&&(0,n.Y)(g.A,{fullWidth:!0,sx:{fontSize:12,fontWeight:"normal"},color:"inherit",disableElevation:!0,onClick:()=>{var e,t,r,n,l;y.A.featureFlags.hasOwnSupportChat?null==(n=window.$zoho)||null==(r=n.salesiq)||null==(t=r.floatwindow)||null==(e=t.visible)||e.call(t,"show"):null==(l=window.Goftino)||l.open()},children:"Ù¾Ø´ØªÛØ¨Ø§ÙÛ"}),(0,n.FD)(c.A,{display:"flex",alignItems:"center",gap:1,children:[(0,n.Y)(s.A,{fontSize:12,sx:{textWrap:"nowrap"},href:"https://docs.raastin.com/",color:"inherit",underline:"hover",children:"Ù
Ø³ØªÙØ¯Ø§Øª API"}),!e&&(0,n.Y)(h.A,{sx:{height:20,width:20}})]})]}),(0,n.FD)(c.A,{display:"flex",alignItems:"center",gap:1,children:[(0,n.Y)(f.A,{fontSize:12,color:a,children:l[t].text}),((e,t)=>{switch(e){case m.c.CONNECTING:return(0,n.Y)(u.A,{sx:{color:t,height:20,width:20}});case m.c.OPEN:return(0,n.Y)(d.A,{sx:{color:t,height:20,width:20}});default:return(0,n.Y)(p.A,{sx:{color:t,height:20,width:20}})}})(t,a)]})]})};var Y=r(33286),C=r(18336),w=r(18847),k=r.n(w),S=r(77328),D=r.n(S),F=r(94504);let T=e=>{var t;let{marketAssetNameFa:r}=e,{data:l}=(0,i.useContext)(o.Zg),s=null==l||null==(t=l[0])?void 0:t.price,c="".concat((0,F.f6)(s)," | ÙÙ
ÙØ¯Ø§Ø± ÙÛÙ
ت ").concat(r," ب٠تÙÙ
ا٠| ÙØ±ÙØ´ Ù Ø®Ø±ÛØ¯ ").concat(r," در Ù
عاÙ
ÙÙ ØØ±ÙÙ Ø§Û Ø±Ø§Ø³ØªÛÙ");return(0,n.FD)(n.FK,{children:[(0,n.FD)(D(),{children:[(0,n.Y)("title",{children:c}),(0,n.Y)("meta",{property:"og:title",content:c}),(0,n.Y)("meta",{property:"twitter:title",content:c,"data-shuvi-head":"true"})]}),(0,n.Y)(a.A,{value:"Ù
عاÙ
ÙÙ ØØ±ÙÙ Ø§Û ".concat(r," ب٠تÙÙ
Ø§Ù Ù Ø¯ÙØ§Ø± در صراÙÛ Ø§Ø±Ø² Ø¯ÛØ¬Ûتا٠").concat(y.A.nameFa," با Ù¾Ø´ØªÛØ¨Ø§ÙÛ 24 ساعت٠٠اÙ
کا٠Ù
عاÙ
ÙÙ Ø¨ÛØ´ از 300 ارز")})]})},P=k()(()=>Promise.all([r.e(51465),r.e(65734),r.e(9692),r.e(90867),r.e(25078)]).then(r.bind(r,25078)),{loadableGenerated:{webpack:()=>[25078]}}),E=k()(()=>Promise.all([r.e(71097),r.e(56698),r.e(80319),r.e(90867),r.e(14524)]).then(r.bind(r,14524)),{loadableGenerated:{webpack:()=>[14524]}});function I(e){var t,r,l;let{market:s,marketSymbolsWithStatsFallbackData:c,marketSummaryFallbackData:u,marketTradesFallbackData:d}=e,p=(0,b.$W)(),[h,f]=(0,i.useState)({values:{price:"0",amount:"0",total:"0",triggerPrice:"0"},tpsl:o.Up,setValues:e=>f(t=>({...t,values:e})),setPrice:e=>f(t=>({...t,values:{...t.values,price:e}})),setAmount:e=>f(t=>({...t,values:{...t.values,amount:e}})),setTotal:e=>f(t=>({...t,values:{...t.values,total:e}})),setTriggerPrice:e=>f(t=>({...t,values:{...t.values,triggerPrice:e}})),setTpsl:e=>f(t=>({...t,tpsl:e})),resetTpsl:()=>f(e=>({...e,tpsl:o.Up}))}),[g,v]=(0,i.useState)({values:{price:"0",amount:"0",total:"0",triggerPrice:"0"},tpsl:o.Up,setValues:e=>v(t=>({...t,values:e})),setPrice:e=>v(t=>({...t,values:{...t.values,price:e}})),setAmount:e=>v(t=>({...t,values:{...t.values,amount:e}})),setTotal:e=>v(t=>({...t,values:{...t.values,total:e}})),setTriggerPrice:e=>v(t=>({...t,values:{...t.values,triggerPrice:e}})),setTpsl:e=>v(t=>({...t,tpsl:e})),resetTpsl:()=>v(e=>({...e,tpsl:o.Up}))}),m="ÙÙ
ÙØ¯Ø§Ø± ÙÛÙ
ت ".concat(null==s||null==(t=s.asset)?void 0:t.name_fa," ب٠تÙÙ
ا٠| ÙØ±ÙØ´ Ù Ø®Ø±ÛØ¯ ").concat(null==s||null==(r=s.asset)?void 0:r.name_fa," در Ù
عاÙ
ÙÙ ØØ±ÙÙ Ø§Û Ø±Ø§Ø³ØªÛÙ");return(0,n.FD)(n.FK,{children:[(0,n.FD)(D(),{children:[(0,n.Y)("title",{children:m}),(0,n.Y)("meta",{property:"og:title",content:m}),(0,n.Y)("meta",{property:"twitter:title",content:m,"data-shuvi-head":"true"})]}),(0,n.Y)(a.A,{value:"Ù
عاÙ
ÙÙ ØØ±ÙÙ Ø§Û ".concat(null==s||null==(l=s.asset)?void 0:l.name_fa," ب٠تÙÙ
Ø§Ù Ù Ø¯ÙØ§Ø± در صراÙÛ Ø§Ø±Ø² Ø¯ÛØ¬Ûتا٠").concat(y.A.nameFa," با Ù¾Ø´ØªÛØ¨Ø§ÙÛ 24 ساعت٠٠اÙ
کا٠Ù
عاÙ
ÙÙ Ø¨ÛØ´ از 300 ارز")}),(0,n.Y)(o.gR.Provider,{value:s,children:(0,n.Y)(o.BZ,{children:(0,n.Y)(o.Di,{fallbackData:d,children:(0,n.Y)(o.ME.Provider,{value:h,children:(0,n.Y)(o.OC.Provider,{value:g,children:(0,n.Y)(Y.Ay,{children:(0,n.FD)(C.W,{children:[(0,n.Y)(T,{marketAssetNameFa:s.asset.name_fa}),p?(0,n.Y)(P,{marketSummaryFallbackData:u,marketSymbolsWithStatsFallbackData:c}):(0,n.Y)(E,{marketSummaryFallbackData:u,marketSymbolsWithStatsFallbackData:c}),!p&&(0,n.Y)(A,{})]})})})})})})})]})}var _=r(75656),O=r(46513),M=r(97995),N=r(18334);function z(e){let{mutate:t,error:r}=e;return(0,i.useEffect)(()=>{N.Cp(r)},[]),(0,n.FD)(c.A,{height:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",mt:8,children:[(0,n.FD)(c.A,{sx:{border:e=>"dashed 1px ".concat(e.palette.error.main),borderRadius:"5px",p:1.5,mt:2},display:"flex",flexDirection:"row",alignItems:"center",children:[(0,n.Y)(f.A,{variant:"subtitle1",mr:2,children:"Ù
ØªØ§Ø³ÙØ§ÙÙ Ù
Ø´Ú©ÙÛ Ù¾ÛØ´ Ø¢Ù
د٠است."}),(0,n.Y)(M.A,{})]}),(0,n.Y)(g.A,{variant:"contained",disableElevation:!0,size:"large",sx:{mt:2},onClick:t,children:"ØªÙØ§Ø´ Ù
جدد"})]})}var W=r(82279),R=r(48230),G=r.n(R);function j(){return(0,n.FD)(c.A,{height:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",mt:8,children:[(0,n.FD)(c.A,{sx:{p:1.5,mt:2},display:"flex",flexDirection:"row",alignItems:"center",children:[(0,n.Y)(f.A,{variant:"subtitle1",mr:2,textAlign:"center",children:"اÛ٠بازار دÛگر در دسترس ÙÛØ³Øª. ÙØ·Ùا٠از ØµÙØÙÙ Ø¨Ø§Ø²Ø§Ø±ÙØ§ بازار دÛÚ¯Ø±Û Ø±Ø§ Ø§ÙØªØ®Ø§Ø¨ Ú©ÙÛØ¯."}),(0,n.Y)(W.default,{sx:{display:{xs:"none",sm:"block"}}})]}),(0,n.Y)(g.A,{component:G(),href:"/markets",variant:"contained",disableElevation:!0,size:"large",sx:{mt:2},children:"Ù
Ø´Ø§ÙØ¯Ù Ø¨Ø§Ø²Ø§Ø±ÙØ§"})]})}var B=r(89099),L=!0;function U(e){var t,r;let a=(0,B.useRouter)(),i=null!=(t=e.symbol)?t:a.query.symbol,{data:o,error:s,mutate:c,isLoading:u}=(0,_.Ay)("/api/trade/classic".concat(i),()=>(0,l.e0)({enable:!0,name:i}).then(e=>e.data),{revalidateOnMount:!e.markets,fallbackData:null!=(r=e.markets)?r:void 0,shouldRetryOnError:!0,revalidateOnFocus:!1,revalidateIfStale:!1}),d=null==o?void 0:o[0];return u?(0,n.Y)(O.A,{variant:"rectangular",width:"100%",height:"100%"}):o&&0===o.length?(0,n.Y)(j,{}):s||!o?(0,n.Y)(z,{mutate:c,error:s}):(0,n.Y)(I,{...e,market:d})}},89902:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o,useScreenSize:()=>i});var n=r(37876),l=r(14232);let a=(0,l.createContext)({isMobileSize:!0,mode:null}),i=()=>(0,l.useContext)(a),o=e=>{let{children:t,initialValue:r,mode:i}=e,o=(0,l.useRef)({value:void 0}).current;return void 0===o.value&&(o.value=r),(0,n.jsx)(a.Provider,{value:{isMobileSize:o.value,mode:i},children:t})}},94504:(e,t,r)=>{"use strict";r.d(t,{Et:()=>p,H2:()=>d,IZ:()=>i,KU:()=>o,OM:()=>u,Re:()=>l,f6:()=>a,hs:()=>h,nn:()=>f,qC:()=>s});let n={"Û°":"0","Ù ":"0","Û±":"1","Ù¡":"1","Û²":"2","Ù¢":"2","Û³":"3","Ù£":"3","Û´":"4","Ù¤":"4","Ûµ":"5","Ù¥":"5","Û¶":"6","Ù¦":"6","Û·":"7","Ù§":"7","Û¸":"8","Ù¨":"8","Û¹":"9","Ù©":"9"};function l(e){try{return e.toString().replace(/[\u0660-\u0669\u06F0-\u06F9]/g,e=>n[e])}catch(t){return e}}function a(e){try{if(null==e)return"";let t=e.toString().split(".");return t[0]=function(e){try{let t=e.toString().replace(/[^-\d.]/g,"").replace(/\B(?=(\d{3})+(?!\d))/g,",");if(t.length<e.toString().length)return e;return t}catch(t){return e}}(t[0]),t.join(".")}catch(e){return""}}let i=e=>e.replace(/[\u064B-\u0652]/g,"").replace(/Ø¢/g,"ا").replace(/Ø£/g,"ا").trim(),o=e=>e.replace(/[\u064B-\u0652]/g,"").replace(/\u0643/g,"Ú©").replace(/\u064A/g,"Û").replace(/\u200C/g," ").replace(/\s+/g," ").replace(/Ø¢/g,"ا").replace(/Ø£/g,"ا").trim();function s(e){if(void 0===e)return"";var t=e.toString().split(".");return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),t.join(".")}let c=/[,\u060C\u066C\s\u200B-\u200F\u061C\u2066-\u2069]/g;function u(e){return void 0===e?"":e.toString().replace(c,"").replace(/\u066B/g,".")}function d(e){return void 0===e?"":e.toString().replace(/[^0-9.]/g,"")}function p(e,t){return void 0!==e&&(void 0===t?/^(0|[1-9][0-9]*)?(\.[0-9]*)?$/.test(e):new RegExp("^(0|[1-9][0-9]*)?(\\.[0-9]{0,".concat(t,"})?$")).test(e))}let h=e=>{if("string"==typeof e&&e.startsWith("-")){let t=e.substring(1);return"".concat(a(t)," -")}{let t=Number(e);return t<0?"".concat(a(-t)," -"):a(t)}},f=e=>l(e).replace(/[^\d]/g,"").split("").reduce((e,t,r)=>r>0&&r%4==0&&r<=12?"".concat(e,"-").concat(t):"".concat(e).concat(t),"").substring(0,19)}},e=>{e.O(0,[85861,74573,37852,51024,75999,91421,90636,46593,38792],()=>e(e.s=26503)),_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.