PageSourceSearch

https://remasgallery.com/_next/static/chunks/8993-9e2a0499d13df991.js

js remasgallery.com collected 2026-10-01 23:54:32 UTC 11,764 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8993],{43287:function(e,t,n){n.d(t,{Z:function(){return r}});var i=n(85893);function r(e){let{color:t="#F7E9DE",width:n=9,height:r=18,strokeWidth:o=1.5}=e;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:r,fill:"none",viewBox:"0 0 9 18",...e,children:(0,i.jsx)("path",{stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:o,d:"M8 16.92 1.48 10.4c-.77-.77-.77-2.03 0-2.8L8 1.08"})})}},67019:function(e,t,n){n.d(t,{Z:function(){return r}});var i=n(85893);function r(e){return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:25,fill:"none",viewBox:"0 0 25 25",...e,children:(0,i.jsx)("path",{stroke:"#757575",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:2,d:"m9.5 20.319 6.43-6.43c.76-.76.76-2.003 0-2.762L9.5 4.697"})})}},44340:function(e,t,n){var i,r;n.d(t,{Z:function(){return o},n:function(){return i}});let o={goldPrice:["gold-price"],mainChart:e=>["gold-price-main-chart",e],goldToSilverRatioChart:e=>["gold-price-gold-silver-chart",e],miniChart:(e,t)=>["gold-chart",e,t]};(r=i||(i={})).Daily="Daily",r.Weekly="Weekly",r.Monthly="Monthly",r.Yearly="Yearly"},77578:function(e,t,n){n.d(t,{Y:function(){return a}});var i=n(85893),r=n(32391),o=n(85444);n(67294);var l=n(75804);let d=(0,r._z)(e=>{let{inputRef:t,error:n,endAdornment:r,isConfirmCode:o,inputDirection:l,disabled:d,...a}=e;return(0,i.jsxs)(s,{children:[(0,i.jsx)(h,{...a,ref:t,$error:!!n,$isConfirmCode:!!o,disabled:d,$inputDirection:l,$hasEndAdornment:!!r}),r&&(0,i.jsx)(u,{children:r})]})}),a=e=>{let{value:t,onChange:n,setValue:r,endAdornment:o,error:a=!1,style:s,label:h,isConfirmCode:u=!1,inputDirection:f,...x}=e;return(0,i.jsxs)(c,{style:s,children:[h&&(0,i.jsx)(l.Z,{variant:"body",size:"m",mb:8,children:h}),(0,i.jsx)(d,{mask:Number,thousandsSeparator:"",radix:".",unmask:!0,value:t,onAccept:e=>{null==n||n({target:{value:e}}),null==r||r(e)},error:a,endAdornment:o,isConfirmCode:u,inputDirection:f,...x}),"string"==typeof a&&(0,i.jsx)(l.Z,{color:"#C62828",variant:"body",size:"s",mt:8,children:a})]})},c=o.ZP.div.withConfig({componentId:"sc-c5084ac0-0"})(["width:100%;"]),s=o.ZP.div.withConfig({componentId:"sc-c5084ac0-1"})(["position:relative;width:100%;"]),h=o.ZP.input.withConfig({componentId:"sc-c5084ac0-2"})(["width:100%;height:48px;padding:12px;padding-left:",";border-radius:8px;border:1px solid ",";font-size:16px;font-weight:400;direction:",";text-align:",";letter-spacing:",";outline:none;transition:all 0.2s ease-in-out;position:relative;&::placeholder{color:#c2c2c2;opacity:1;font-size:16px;font-weight:400;}&:focus{border-color:",";background-color:#f5f8f8;}&:-webkit-autofill{-webkit-box-shadow:0 0 0px 1000px white inset !important;-webkit-text-fill-color:#000 !important;transition:background-color 5000s ease-in-out 0s;}&:disabled{color:#9e9e9e;background-color:white;cursor:not-allowed;}"],e=>{let{$inputDirection:t,$hasEndAdornment:n}=e;return"ltr"===t&&n?"40px":"12px"},e=>{let{$error:t}=e;return t?"#C62828":"#E0E0E0"},e=>{let{$inputDirection:t,$isConfirmCode:n}=e;return"ltr"===t||n?"ltr":"rtl"},e=>{let{$inputDirection:t,$isConfirmCode:n}=e;return"ltr"===t?"left":n?"center":"right"},e=>{let{$isConfirmCode:t}=e;return t?"16px":"normal"},e=>{let{$error:t}=e;return t?"#C62828":"#548A7C"}),u=o.ZP.div.withConfig({componentId:"sc-c5084ac0-3"})(["position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#757575;pointer-events:none;"])},31498:function(e,t,n){n.d(t,{Z:function(){return d}});var i=n(85893),r=n(85444);let o=(0,r.F4)(["0%{background-position:200% 0;}100%{background-position:-200% 0;}"]),l=r.ZP.div.withConfig({componentId:"sc-14718c3f-0"})(["width:100%;height:258px;border-radius:8px;background:linear-gradient(90deg,#f5f5f5 0%,#ededed 50%,#f5f5f5 100%);background-size:200% 100%;animation:"," 1.4s ease-in-out infinite;"],o);function d(){return(0,i.jsx)(l,{"aria-hidden":"true"})}},67e3:function(e,t,n){n.d(t,{Uj:function(){return a},Zi:function(){return s},he:function(){return c}});var i=n(27484),r=n.n(i),o=n(7787);r().extend(o.Z);let l={"01":"فروردین","02":"اردیبهشت","03":"خرداد","04":"تیر","05":"مرداد","06":"شهریور","07":"مهر","08":"آبان","09"
1:"آذر",10:"دی",11:"بهمن",12:"اسفند"},d=["دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه","یکشنبه"],a=e=>{let[t,n]=e;if(!Number.isFinite(t)||!Number.isFinite(n))return[0,1];if(t===n){let e=.005*Math.abs(t)||1;return[Math.max(0,t-e),n+e]}let i=(n-t)*.15;return[Math.max(0,t-i),n+i]},c=function(e){let[t,n]=e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;if(i<2)return[t];let r=(n-t)/(i-1);return Array.from({length:i},(e,n)=>Number((t+r*n).toFixed(6)))},s=(e,t)=>{let n=t.toLowerCase();return"weekly"===n?d[r()(e,"YYYY/MM/DD").calendar("jalali").day()]:"yearly"===n&&l[e.split("/")[1]]||e}},48792:function(e,t,n){n.r(t),n.d(t,{default:function(){return g},filterLabels:function(){return p}});var i=n(85893),r=n(67294),o=n(64358),l=n(64715),d=n(64520),a=n(67017),c=n(25615),s=n(88793),h=n(24570),u=n(55400),f=n(85444),x=n(67e3);let m=e=>{let{cx:t,cy:n}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("circle",{cx:t,cy:n,r:7,fill:"rgba(36, 105, 87, 1)"}),(0,i.jsx)("circle",{cx:t,cy:n,r:10,fill:"rgba(36, 105, 87, 0.2)"}),(0,i.jsx)("circle",{cx:t,cy:n,r:5,fill:" #fff"})]})},p={Daily:"روزانه",Weekly:"هفتگی",Monthly:"ماهانه",Yearly:"سالانه"};function g(e){let{data:t,filter:n,height:o=258}=e,f=(0,r.useMemo)(()=>{let[e,n]=(t||[]).reduce((e,t)=>{let[n,i]=e;return[Math.min(n,t.Price),Math.max(i,t.Price)]},[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]);return(0,x.Uj)([e,n])},[t]),p=(0,r.useMemo)(()=>(0,x.he)(f),[f]);return(0,i.jsx)(w,{children:(0,i.jsx)(v,{children:(0,i.jsx)(l.h,{width:"100%",height:o,children:(0,i.jsxs)(d.T,{data:t||[],margin:{top:20,right:10,left:10,bottom:0},children:[(0,i.jsx)("defs",{children:(0,i.jsx)("linearGradient",{id:"greenWhiteGradient",x1:"0",y1:"0",x2:"0",y2:"1"})}),(0,i.jsx)(a.q,{stroke:"#EDEDED",vertical:!1}),(0,i.jsx)(c.K,{dataKey:"Date",interval:"Daily"===n?0:"preserveEnd",tick:{fill:"#757575",fontSize:12},axisLine:{stroke:"#EDEDED",strokeWidth:1},tickLine:{stroke:"#EDEDED",strokeWidth:2},tickFormatter:e=>(0,x.Zi)(e,n)}),(0,i.jsx)(s.B,{hide:!0,domain:f,ticks:p,interval:0,scale:"linear"}),(0,i.jsx)(h.u,{formatter:e=>["".concat(e.toLocaleString()," تومان"),"قیمت"],labelFormatter:e=>" ".concat(e),cursor:{strokeDasharray:"2 2",stroke:"#0000003D"}}),(0,i.jsx)(u.u,{type:"linear",dataKey:"Price",stroke:"rgba(36, 105, 87, 1)",fill:"url(#greenWhiteGradient)",strokeWidth:1.5,dot:!1,activeDot:(0,i.jsx)(m,{})})]})})})})}let w=f.ZP.div.withConfig({componentId:"sc-c1407a25-0"})(["width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;@media (max-width:","){width:100%;scrollbar-width:none;-ms-overflow-style:none;}"],o.u3.md),v=f.ZP.div.withConfig({componentId:"sc-c1407a25-1"})(["width:100%;@media (max-width:","){min-width:700px;width:max-content;flex-shrink:0;}"],o.u3.md)},35836:function(e,t,n){n.d(t,{ZP:function(){return E}});var i=n(85893),r=n(67294),o=n(36492),l=n(85570),d=n(83611),a=n(53881),c=n(27484),s=n.n(c),h=n(7787),u=n(31498),f=n(5152),x=n.n(f),m=n(75804),p=n(91065),g=n(44340),w=n(48792),v=n(85444),b=n(64358);let j=v.ZP.div.withConfig({componentId:"sc-b645619f-0"})(["width:100%;background-color:#fff;min-width:0;border-radius:12px;display:flex;flex-direction:column;gap:24px;@media (max-width:","){border:none;gap:20px;}"],b.u3.md),y=v.ZP.div.withConfig({componentId:"sc-b645619f-1"})(["width:100%;display:flex;align-items:center;justify-content:space-between;@media (max-width:","){flex-direction:column;gap:20px;}"],b.u3.md),k=v.ZP.div.withConfig({componentId:"sc-b645619f-2"})(["display:flex;gap:12px;width:fit-content;@media (max-width:","){width:100%;}"],b.u3.md),Z=v.ZP.div.withConfig({componentId:"sc-b645619f-3"})(["display:flex;justify-content:space-between;border-bottom:1px solid rgba(224,224,224,1);align-items:center;"]),C=v.ZP.button.withConfig({componentId:"sc-b645619f-4"})(["background:",";color:",";border:none;flex:1;padding:8px 16px;border-radius:999px;cursor:pointer;font-size:16px;font-weight:400;height:36px;display:flex;align-items:center;justify-content:center;@media (max-width:","){min-width:73px;}"],e=>e.active?"#F8EEDD":"#F9F9F9",e=>e.active?"#754200":"#333",b.u3.md),D=v.ZP.div.withConfig({componentId:"sc-b645619f-5"})(["display:flex;direction:ltr;justify-content:space-between;margin-top:24px;@media (max-width:600px){flex-direction:row;}"]),I=v.ZP.div.withConfig({componentId:"sc-b645619f-6"})(["display:flex;flex-direction:row;justify-content:center;text-align:right;gap:8px;@media (max-width:","){flex-direction:column;align-items:center;text-align:center;gap:0;}"],b.u3.md),P=v.ZP.div.withConfig({componentId:"sc-b645619f-7"})(["display:flex;align-items:center;gap:4px;color:rgba(117,117,117,1);"]),S=v.ZP.div.withConfig({componentId:"sc-b645619f-8"})(["width:6px;height:6px;background-color:rgba(211,162,83,1);border-radius:50%;"]),z=x()(()=>Promise.resolve().then(n.bind(n,48792)),{loadableGenerated:{webpack:()=>[48792]},ssr:!1,loading:()=>(0,i.jsx)(u.Z,{})});s().extend(h.Z);var E=e=>{var t,n,c,s;let{title:h,showCurrentGoldPrice:f=!1}=e,[x,v]=(0,r.useState)(g.n.Yearly),b=(0,a.dD)(),{data:E,isLoading:F}
1=(0,o.a)({queryKey:g.Z.mainChart(x),queryFn:()=>(0,l.p_)(x),staleTime:5*p.Ys,refetchOnMount:!1,cacheTime:10*p.Ys}),M=F&&!E;return(0,i.jsxs)(j,{children:[(0,i.jsxs)(y,{children:[h,(0,i.jsx)(k,{children:Object.entries(w.filterLabels).map(e=>{let[t,n]=e;return(0,i.jsx)(C,{active:x===t,onClick:()=>v(t),children:n},t)})})]}),M?(0,i.jsx)(u.Z,{}):(0,i.jsx)(z,{data:null==E?void 0:E.DataPoints,filter:x}),f&&(0,i.jsxs)(Z,{children:[(0,i.jsx)(m.Z,{as:"h3",fontSize:14,fontWeight:400,smFontSize:12,color:"rgba(117, 117, 117, 1)",children:"قیمت لحظه‌ای هر گرم طلای 18 عیار:"}),(0,i.jsxs)(m.Z,{fontSize:24,fontWeight:500,smFontSize:20,children:[(0,d.OD)(null==E?void 0:null===(t=E.Summary)||void 0===t?void 0:t.CurrentGoldPrice)," تومان"]})]}),E&&(0,i.jsxs)(D,{children:[(0,i.jsxs)(I,{children:[(0,i.jsxs)(m.Z,{fontSize:14,fontWeight:500,smFontSize:12,style:{direction:"rtl"},children:[(0,d.OD)(null==E?void 0:null===(n=E.Summary)||void 0===n?void 0:n.AveragePrice)," تومان"]}),(0,i.jsxs)(P,{children:[(0,i.jsxs)(m.Z,{fontSize:14,fontWeight:400,smFontSize:12,children:[" ",!b&&":","میانگین قیمت"]}),(0,i.jsx)(S,{})]})]}),(0,i.jsxs)(I,{children:[(0,i.jsxs)(m.Z,{fontSize:14,fontWeight:500,smFontSize:12,style:{direction:"rtl"},children:[" ",(0,d.OD)(null==E?void 0:null===(c=E.Summary)||void 0===c?void 0:c.MinPrice)," تومان"," "]}),(0,i.jsxs)(P,{children:[(0,i.jsxs)(m.Z,{fontSize:14,fontWeight:400,smFontSize:12,children:[" ",!b&&":","کمترین قیمت"]}),(0,i.jsx)(S,{})]})]}),(0,i.jsxs)(I,{children:[(0,i.jsxs)(m.Z,{fontSize:14,fontWeight:500,smFontSize:12,style:{direction:"rtl"},children:[(0,d.OD)(null==E?void 0:null===(s=E.Summary)||void 0===s?void 0:s.MaxPrice)," تومان"]}),(0,i.jsxs)(P,{children:[(0,i.jsxs)(m.Z,{fontSize:14,fontWeight:400,smFontSize:12,children:[!b&&":","بیشترین قیمت"]}),(0,i.jsx)(S,{})]})]})]})]})}},85570:function(e,t,n){n.d(t,{SA:function(){return o},p_:function(){return r}});var i=n(15776);let r=async e=>(await i.j9.get("/GoldInvestment/GoldPriceChart?TimeIntervalType=".concat(e),{version:"v2"})).data.Content,o=async e=>{let{amount:t,year:n,month:r}=e;return(await i.j9.get("/GoldInvestment/CalculateMonthlyInvestment?MonthlyInvestment=".concat(t,"&StartYear=").concat(n,"&StartMonth=").concat(r),{version:"v2"})).data.Content}}}]);

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.