PageSourceSearch

https://my.emofid.com/_next/static/chunks/3026-0f02d92ee6f69511.js

js emofid.com collected 2026-09-25 22:02:36 UTC 12,687 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4c3a6e77-ab29-440e-9668-cfac5525f77e",e._sentryDebugIdIdentifier="sentry-dbid-4c3a6e77-ab29-440e-9668-cfac5525f77e")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3026],{6842:(e,t,r)=>{r.d(t,{k:()=>s});var n=r(37876),a=r(48212);let s=e=>{let{title:t,description:r}=e;return(0,n.jsx)(a.o,{classNames:{container:"!py-3",title:"!text-xs !font-medium !text-gray-130",description:"!text-xs !font-medium !text-gray-140"},description:r,hasDivider:!1,title:t,"data-sentry-element":"RowItem","data-sentry-component":"PenaltyRowItems","data-sentry-source-file":"PenaltyRowItems.tsx"})}},10956:(e,t,r)=>{r.d(t,{A:()=>i,j:()=>o});var n=r(37876),a=r(93936),s=r(65669),l=r(88104),d=r(61976);let i=e=>{let{children:t,id:r,analytics:i,isError:o,className:c,...u}=e;return(0,n.jsxs)("div",{className:(0,d.p)("flex items-start",c),id:r,onClick:()=>{i&&(0,a.WQ)(i)},"data-sentry-component":"ContractCheckbox","data-sentry-source-file":"ContractCheckbox.tsx",children:[(0,n.jsx)(s.S,{classNames:{icon:"!h-6 !w-6 !rounded-md",iconChecked:(0,d.p)("!h-6 !w-6 after:!left-2 after:!top-1 after:!h-3",o&&"!border-error-solid-primary-enabled")},title:"",...u,"data-sentry-element":"Checkbox","data-sentry-source-file":"ContractCheckbox.tsx"}),(0,n.jsx)(l.E,{color:"gray-filled-primary-enabled",size:"sm",weight:"medium","data-sentry-element":"Text","data-sentry-source-file":"ContractCheckbox.tsx",children:t})]})},o=e=>{let{children:t,className:r,...a}=e;return(0,n.jsx)(l.E,{...a,className:(0,d.p)("underline-offset-4",r),color:"mofidblue-filled-primary-enabled",component:"span",variant:"link",weight:"demibold",hasUnderline:!0,"data-sentry-element":"Text","data-sentry-component":"ContractLink","data-sentry-source-file":"ContractLink.tsx",children:t})}},24226:(e,t,r)=>{r.d(t,{u:()=>a});var n=r(49947);let a=e=>{let{fundCode:t,contractId:r}=e,{data:a,...s}=(0,n.M1)(["fund","getFundContracts"],{input:{fundCode:t}}),l=a?.contracts?.find(e=>e?.id===r),d=a?.contracts?.filter(e=>e?.typeEn==="Issuance")||[],i=a?.contracts?.filter(e=>e?.typeEn==="Redemption")||[],o=a?.fundName||"";return{data:a,...s,issuanceContracts:d,redemptionContracts:i,fundName:o,selectedContract:l}}},26348:(e,t,r)=>{r.d(t,{EI:()=>d,Ix:()=>l,QD:()=>i,kG:()=>o});var n=r(14e3),a=r(43021),s=r(9182);let l=e=>(0,a.M1)(["fund","getFunds"],{reactQueryOptions:{refetchInterval:6e5,refetchIntervalInBackground:!0,...a.$W,...e||{}}}),d=e=>{let{isVerified:t}=(0,s.l2)();return(0,a.M1)(["fund","getAssets"],{reactQueryOptions:{...e,enabled:t}})},i=e=>{let{isVerified:t}=(0,s.l2)(),r=(0,n.useParams)(),l=r?.nationalCode;return(0,a.M1)(["fund","getChildAssets"],{reactQueryOptions:{...e,enabled:t},input:{nationalCode:l}})},o=e=>{let{isVerified:t}=(0,s.l2)(),{data:r,isInitialLoading:n,...l}=(0,a.M1)(["fund","getInvestmentAdvisoryPackage"],{reactQueryOptions:{refetchInterval:6e5,refetchIntervalInBackground:!0,enabled:t,...a.$W,...e||{}}}),d=n?null:!!r?.userHasVipPackage;return{suggestedPortfolio:r?.items.length?r.items[0]:null,hasVipPackage:d,data:r,isInitialLoading:n,...l}}},32467:(e,t,r)=>{r.d(t,{y:()=>i});var n=r(37876),a=r(89099),s=r(57700),l=r(88104),d=r(78986);let i=e=>{let{children:t}=e,r=(0,a.useRouter)();return(0,n.jsxs)("div",{className:"flex flex-grow flex-col justify-between","data-sentry-component":"ContractTextLayout","data-sentry-source-file":"ContractText.tsx",children:[(0,n.jsx)(l.E,{className:"flex flex-grow flex-col",color:"gray-filled-primary-enabled",size:"sm","data-sentry-element":"Text","data-sentry-source-file":"ContractText.tsx",children:t}),(0,n.jsx)(s.N,{"data-sentry-element":"StickyFooter","data-sentry-source-file":"ContractText.tsx",children:(0,n.jsx)(d.Ay,{type:"button",isFullWidth:!0,onClick:r.back,"data-sentry-element":"Button","data-sentry-source-file":"ContractText.tsx",children:"متوجه شدم"})})]})}},48212:(e,t,r)=>{r.d(t,{o:()=>x});var n=r(37876),a=r(14232),s=r(88609),l=r(87630),d=r(61976),i=r(67210),o=r(48230),c=r.n(o);let u=e=>{let{link:t,children:r}=e;return t?(0,n.jsx)(c(),{href:t,"data-sentry-element":"Link","data-sentry-component":"LinkOrFragment","data-sentry-source-file":"LinkOrFragment.tsx",children:r}):(0,n.jsx)(a.Fragment,{children:r})},x=e=>{let{title:t,description:r,unit:a,titleFontSize:o,descriptionFontSize:c,unitFontSize:x,isBordered:f,className:m,classNames:y,style:h,styles:p,hasDivider:b=!0,isDescriptionLoading:g=!1,isTitleLoading:v=!1,link:k,...j}=e;return(0,n.jsx)(u,{link:k,"data-sentry-element":"LinkOrFragment","data-sentry-component":"RowItem","data-sentry-source-file":"RowItem.tsx",children:(0,n.jsxs)("div",{className:(0,d.p)("flex w-full flex-col",m,y?.root,o&&(0,i.XS)(o)),style:{...p?.root,...h},...j,children:[(0,n.jsxs)("div",{className:(0,d.p)("flex flex-1 gap-x-1 rounded-xl border-0 border-solid border-gray-20 py-4 text-sm [&>div]:flex [&>div]:flex-1",y?.container,f&&"border-[1px] px-4"),style:p?.container,children:[(0,n.jsx)("div",{className:(0,d.p)("text-gray-90",y?.title,o&&(0,i.XS)(o)),style:p?.title,children:v?(0,n.jsx)(l.E,{height:16,width:120}):t}),(0,n.jsx)("div",{className:(0,d.p)("justify-end font-medium text-gray-120",y?.description,c&&(0,i.XS)(c)),style:p?.description,children:g?(0,n.jsx)(l.E,{height:16,width:120}):(0,n.jsxs)(n.Fragment,{children:[r,a&&(0,n.jsx)("span",{className:(0,d.p)("mr-1 inline-flex font-regular text-gray-90",y?.unit,x&&(0,i.XS)(x)),style:p?.unit,children:a})]})}),k&&(0,n.jsx)(s.I,{color:"gray-100",icon:"chevron_left",size:24})]}),b&&(0,n.jsx)("div",{className:(0,d.p)("w-[calc(100% + 4px) mr-[-2px] h-[1px] bg-gray-10",y?.divider),style:p?.divider})]})})}},58998:(e,t,r)=>{r.d(t,{y:()=>l});var n=r(37876),a=r(87630),s=r(22241);let l=()=>(0,n.jsxs)("div",{className:"flex flex-col p-4","data-sentry-component":"FundContractsSkeleton","data-sentry-source-file":"FundContractsSkeleton.tsx",children:[(0,s.xj)(3).map(e=>(0,n.jsxs)("div",{className:"mt-5 flex items-center gap-x-[10px]",children:[(0,n.jsx)(a.E,{height:20,width:20}),(0,n.jsx)(a.E,{height:16,width:"60%"})]},e)),(0,n.jsx)(a.E,{className:"!mt-4",height:40,width:"100%","data-sentry-element":"Skeleton","data-sentry-source-file":"FundContractsSkeleton.tsx"})]})},61850:(e,t,r)=>{r.d(t,{I:()=>a});var n=r(89099);let a=()=>{let{query:e}=(0,n.useRouter)();return e.fundCode}},64679:(e,t,r)=>{r.d(t,{l:()=>m});var n=r(37876),a=r(14e3),s=r(12227),l=r(88992),d=r(32467),i=r(8443),o=r(67817),c=r(87630),u=r(6842),x=r(24226),f=r(22241);let m=e=>{let{fundCode:t}=e,r=(0,a.useParams)(),{getValues:m}=(0,l.xW)(),y=t||r?.fundCode||"",h=Number(m("contractId")),{selectedContract:p,isLoading:b}=(0,x.u)({fundCode:y,contractId:h}),g=p?.details||[];return b?(0,n.jsx)("div",{className:"flex flex-col gap-y-2 px-4",children:(0,f.xj)(16).map(e=>(0,n.jsx)(c.E,{height:20},e))}):(0,n.jsx)(i.M,{"data-sentry-element":"HorizontalPaddingLayout","data-sentry-component":"FundDynamicContract","data-sentry-source-file":"FundDynamicContract.tsx",children:(0,n.jsxs)(d.y,{"data-sentry-element":"ContractTextLayout","data-sentry-source-file":"FundDynamicContract.tsx",children:[(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:s.A.sanitize(p?.content||"",{ALLOWED_ATTR:["href","target"],ADD_ATTR:["style","class","id"]}
1)},className:"[&_a]:text-blue-a40"}),!!g.length&&(0,n.jsxs)("div",{className:"flex flex-grow flex-col",children:[(0,n.jsxs)("div",{className:"mb-1 mt-8 flex justify-between border-b border-solid border-gray-10 pb-2 text-xs font-demibold text-gray-120",children:[(0,n.jsx)("span",{children:"فاصله تاریخ خرید و فروش"}),(0,n.jsx)("span",{children:"درصد کسر از کل قیمت"})]}),(0,n.jsx)("div",{className:"flex flex-grow flex-col justify-between",children:(0,n.jsx)("div",{children:g.map((e,t)=>(0,n.jsx)(u.k,{description:e.value,title:e.key},t))})})]}),p?.note&&(0,n.jsx)(o.F,{className:"mt-5",isFullWidth:!0,children:p?.note})]})})}},65484:(e,t,r)=>{r.d(t,{X:()=>o,A:()=>d});var n=r(37876),a=r(48212),s=r(61976),l=r(621);let d=e=>{let{amount:t,onClick:r,classNames:d,description:i,...o}=e;return(0,n.jsx)(a.o,{classNames:{...d,root:(0,s.p)("rounded-xl border border-solid border-gray-20 px-4",r&&" cursor-pointer transition-colors hover:bg-gray-10",d?.root),title:(0,s.p)("!text-sm !font-medium !text-gray-120",d?.title),description:(0,s.p)("!flex-none flex-grow !text-sm !font-medium !text-gray-120",d?.description),unit:(0,s.p)("!text-xm !font-regular",d?.unit),container:(0,s.p)("!py-3",d?.container),divider:(0,s.p)("hidden md:!block",d?.divider)},description:t||0==t?(0,l.jq)(t):i,hasDivider:!1,onClick:r,...o,"data-sentry-element":"RowItem","data-sentry-component":"RowItemBordered","data-sentry-source-file":"RowItemBordered.tsx"})};var i=r(87630);let o=()=>(0,n.jsxs)("div",{className:"flex justify-between border border-transparent px-4 py-3","data-sentry-component":"RowItemBorderedSkeletons","data-sentry-source-file":"RowItemBordered.skeletons.tsx",children:[(0,n.jsx)(i.E,{height:22,width:130,"data-sentry-element":"Skeleton","data-sentry-source-file":"RowItemBordered.skeletons.tsx"}),(0,n.jsx)(i.E,{height:22,width:100,"data-sentry-element":"Skeleton","data-sentry-source-file":"RowItemBordered.skeletons.tsx"})]})},65669:(e,t,r)=>{r.d(t,{S:()=>c});var n=r(37876),a=r(14232),s=r(2220),l=r(47137);let d=(0,l.F)("relative inline-flex flex-row items-center transition-all ease-in-out duration-300 gap-x-3 border-mofidblue-solid-primary-enabled",{variants:{disabled:{true:"cursor-default",false:" cursor-pointer"}},defaultVariants:{disabled:!1}}),i=(0,l.F)("relative rounded-sm block w-4 h-4 border",{variants:{checked:{true:'bg-mofidblue-filled-primary-enabled after:content-[""] after:block after:absolute after:top-0 after:left-1 after:w-[5px] after:h-[9px] after:rotate-45 after:border after:border-white after:border-t-0 after:border-l-0',false:""},disabled:{true:"opacity-60"}},defaultVariants:{checked:!1,disabled:!1}}),o=(0,l.F)("font-medium text-xs text-gray-filled-primary-enabled",{variants:{disabled:{true:"text-gray-filled-tertiary-enabled",false:"text-gray-filled-primary-enabled"}},defaultVariants:{disabled:!1}}),c=(0,a.forwardRef)((e,t)=>{let{title:r,value:a=1,onChange:l,checked:c,disabled:u,className:x,style:f,classNames:m,styles:y}=e;return(0,n.jsxs)("div",{className:(0,s.cn)(d({disabled:u}),x,m?.root,m?.rootChecked,m?.rootDisabled),style:{...f,...y?.root,...y?.rootChecked,...y?.rootDisabled},onClick:()=>{if(u)return;let e=!c;l?.(e,e?a:null)},children:[(0,n.jsx)("div",{className:(0,s.cn)(i({disabled:u,checked:c}),m?.icon,m?.iconChecked,m?.iconDisabled),style:{...f,...y?.icon,...y?.iconChecked,...y?.iconDisabled}}),(0,n.jsx)("div",{className:(0,s.cn)(o({disabled:u}),m?.title,m?.titleChecked,m?.titleDisabled),style:{...y?.title,...y?.titleChecked,...y?.titleDisabled},children:r}),(0,n.jsx)("input",{ref:t,checked:c,className:"hidden",disabled:u,type:"checkbox",value:a,onChange:e=>{let{target:t}=e;return l?.(t.checked,t.checked?t.value:null)}})]})});c.displayName="Checkbox"},66532:(e,t,r)=>{r.d(t,{I:()=>a});var n=r(26348);let a=()=>{let e=(0,n.Ix)();return{...e,fundsList:e?.data?.items||[]}}},79896:(e,t,r)=>{r.d(t,{p:()=>l,z:()=>s});var n=r(61850),a=r(66532);let s=e=>{let{fundsList:t,isInitialLoading:r}=(0,a.I)();return{fund:t.find(t=>t.fundCode===e),isLoading:r}},l=()=>s((0,n.I)())},90414:(e,t,r)=>{r.d(t,{e:()=>i});var n=r(14232),a=r(26348),s=r(94264),l=r(65351),d=r(66532);let i=function(){let{shouldIncludeZeroCountOnAssets:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{fundsList:t,data:r,isFetching:i,isInitialLoading:o,refetch:c,error:u,isError:x}=(0,d.I)(),{data:f,isFetching:m,isInitialLoading:y,refetch:h,error:p,isError:b}=(0,a.EI)(),g=x||b,v=(0,n.useMemo)(()=>
1{if(b||x)return u?.message||p?.message||""},[u,p,x,b]),k=(0,n.useCallback)(async()=>{x&&await c(),b&&await h()},[x,b,c,h]),j=(0,n.useMemo)(()=>{if(!(t?.length&&f?.assetOnFunds.length))return[];{let r=(0,l.Jz)(t,"fundCode");return f.assetOnFunds.map(t=>{let n=r[t.fundCode];return n&&(e||t.count)?{...n,...t}:void 0}).filter(s.O9).sort((e,t)=>e&&t?t?.assetValue-e?.assetValue:0)}},[t,f]),w=f?.totalAsset||0,C=j.filter(e=>e.count>0).length>0,I=f?.totalBenefitPercent||0,N=f?.totalExistingUnitsProfitLoss||0;return{fundAssetsList:j,fundsList:t,fundAssetsValue:w,hasAssets:C,categorizedFunds:r,totalBenefitPercent:I,fundAssets:f,isFetching:i||m,isLoading:o||y,errorMessage:v,refetchOnError:k,isError:g,isLoadingFundAssets:y,isLoadingCategorizedFunds:o,totalExistingUnitsProfitLoss:N}}}}]);

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.