1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3068],{6388:function(e,l,s){"use strict";s.r(l),s.d(l,{__N_SSP:function(){return p}});var t=s(5893),n=s(2809),a=s(809),r=s.n(a),i=s(266),c=s(7294),d=(s(9428),s(6781)),o=s(6977),h=s(8646),u=s(8792),m=s.n(u),x=s(8583),p=!0;l.default=function(e){var l=(0,c.useState)(),s=l[0],a=l[1],u=(0,c.useState)(!1),p=u[0],f=u[1],v=(0,c.useState)(0),j=v[0],b=v[1],N=function(){var l=(0,i.Z)(r().mark((function l(s){var t,n,i,c,d;return r().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:s.preventDefault(),f(!0),t=document.getElementsByClassName("dateTimePicker")[0].value,n=document.getElementsByClassName("dateTimePicker")[1].value,i=document.getElementById("currency").value,c=t.split("-")[0].replaceAll("/","-").replaceAll(" ",""),d=n.split("-")[0].replaceAll("/","-").replaceAll(" ",""),o.Z.get(h.b.user.userAffiliatorSalesReport+"?begin=0¤cy="+i+"&endDate="+d+"&excel=false&length=20&startDate="+c).then((function(l){f(!1),a(l.data),o.Z.get(h.b.user.userAffiliatorSalesInfoReport+"?affiliateId="+e.profile.id+"¤cy="+i+"&endDate="+d+"&excel=false&length=20&startDate="+c).then((function(e){E(e.data.count),P(e.data.affiliatorShare/10)}))}));case 8:case"end":return l.stop()}}),l)})));return function(e){return l.apply(this,arguments)}}(),g=(0,c.useState)(),y=g[0],E=g[1],T=(0,c.useState)(),k=T[0],P=T[1];function w(e,l,s,t){var n;for(s=document.getElementsByClassName(s),n=0;n<s.length;n++)s[n].style.display="none";for(t=document.getElementsByClassName(t),n=0;n<t.length;n++)t[n].className=t[n].className.replace(" active","");document.getElementById(l).style.display="block",e.currentTarget.className+=" active"}return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"container min-height-page",children:(0,t.jsx)("div",{className:"row",children:(0,t.jsxs)("div",{className:"col-md-12 section",children:[(0,t.jsx)("div",{className:"tabs",children:(0,t.jsxs)("ul",{className:"nav nav-pills nav-justified",children:[(0,t.jsx)("li",{className:"tablinks active",onClick:function(e){w(e,"variz","tabcontent","tablinks")},children:(0,t.jsx)("a",{href:"javascript:void(0)",children:"\u06af\u0632\u0627\u0631\u0634 \u0648\u0627\u0631\u06cc\u0632\u0647\u0627"})}),(0,t.jsx)("li",{className:"tablinks",onClick:function(e){w(e,"forosh","tabcontent","tablinks")},children:(0,t.jsx)("a",{href:"javascript:void(0)",children:"\u06af\u0632\u0627\u0631\u0634 \u0641\u0631\u0648\u0634"})})]})}),(0,t.jsx)("div",{id:"variz",className:"default-form tabcontent",style:(0,n.Z)({display:"flex",alignItems:"center",justifyContent:"center"},"display","block"),children:e.report.length>0?(0,t.jsxs)("table",{className:"table table-hover table-striped table-responsive",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{width:"100",children:"\u062a\u0627\u0631\u06cc\u062e \u0645\u062d\u0627\u0633\u0628\u0647"}),(0,t.jsx)("th",{width:"100",children:"\u062a\u0627\u0631\u06cc\u062e \u0648\u0627\u0631\u06cc\u0632"}),(0,t.jsx)("th",{children:"\u0634\u0646\u0627\u0633\u0647 \u0648\u0627\u0631\u06cc\u0632"}),(0,t.jsx)("th",{width:"200",children:"\u0645\u062c\u0645\u0648\u0639 \u0633\u0647\u0645 \u0641\u0631\u0648\u0634"}),(0,t.jsx)("th",{width:"200",children:"\u0648\u0627\u0631\u06cc\u0632\u06cc \u067e\u0633 \u0627\u0632 \u06a9\u0633\u0648\u0631\u0627\u062a"})]})}),(0,t.jsx)("tbody",{children:e.report&&e.report.map((function(e,l){return(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{"data-label":"\u062a\u0627\u0631\u06cc\u062e \u0645\u062d\u0627\u0633\u0628\u0647",children:m().convertEnToPe(e.settleDateSolar)}),(0,t.jsx)("td",{"data-label":"\u062a\u0627\u0631\u06cc\u062e \u0648\u0627\u0631\u06cc\u0632",children:(0,t.jsx)("strong",{children:m().convertEnToPe((s=e.shenaseVariz,1!=s.charAt(0)?(null===s||void 0===s?void 0:s.substring(0,2))+"/"+(null===s||void 0===s?void 0:s.substring(2,4))+"/"+(null===s||void 0===s?void 0:s.substring(4,6)):(null===s||void 0===s?void 0:s.substring(0,4))+"/"+(null===s||void 0===s?void 0:s.substring(4,6))+"/"+(null===s||void 0===s?void 0:s.substring(6,8))))})}),(0,t.jsx)("td",{"data-label":"\u0634\u0646\u0627\u0633\u0647 \u0648\u0627\u0631\u06cc\u0632",children:m().convertEnToPe(e.shenaseVariz)}),(0,t.jsx)("td",{"data-label":"\u0645\u062c\u0645\u0648\u0639 \u0633\u0647\u0645 \u0641\u0631\u0648\u0634",style:{fontSize:"1rem"},children:(0,t.jsx)("small",{children:m().convertEnToPe(m().sliceNumber(Math.floor(e.amount/10)))+" \u062a "})}),(0,t.jsx)("td",{"data-label":"\u0648\u0627\u0631\u06cc\u0632\u06cc \u06
17e\u0633 \u0627\u0632 \u06a9\u0633\u0648\u0631\u0627\u062a",style:{fontSize:"1rem"},children:(0,t.jsx)("strong",{children:m().convertEnToPe(m().sliceNumber(Math.floor(e.amount/10-.05*e.amount/10)))+" \u062a "})})]},l+"aff");var s}))})]}):(0,t.jsx)("p",{className:"text-center",children:"\u0634\u0645\u0627 \u0647\u0646\u0648\u0632 \u0628\u0631\u062f\u0627\u0634\u062a\u06cc \u0646\u062f\u0627\u0634\u062a\u0647\u200c\u0627\u06cc\u062f."})}),(0,t.jsxs)("div",{id:"forosh",className:"default-form pb-10 tabcontent",children:[(0,t.jsx)("p",{children:"\u0628\u0631\u0627\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a \u06af\u0632\u0627\u0631\u0634 \u0641\u0631\u0648\u0634 \u0644\u06cc\u0646\u06a9\u200c\u0647\u0627\u06cc\u062a\u0627\u0646\u060c \u0628\u0627\u0632\u0647\u0654 \u0632\u0645\u0627\u0646\u06cc \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f"}),(0,t.jsx)("form",{className:"default-form",name:"report",onSubmit:N,style:{background:"#f1f1f1",padding:"10px 10px 0"},children:(0,t.jsxs)("div",{className:"row rtl-col",children:[(0,t.jsxs)("div",{className:"col-xs-12 col-sm-6 col-md-3 pb-10",children:[(0,t.jsx)("div",{className:"pull-right",style:{marginLeft:"10px",paddingTop:"15px"},children:"\u0627\u0632"}),(0,t.jsx)("div",{dir:"ltr",style:{overflow:"hidden"},children:(0,t.jsx)(d.M,{id:"fromDate",className:"form-control dateTimePicker"})})]}),(0,t.jsxs)("div",{className:"col-xs-12 col-sm-6 col-md-3 pb-10",children:[(0,t.jsx)("div",{className:"pull-right",style:{marginLeft:"10px",paddingTop:"15px"},children:"\u062a\u0627"}),(0,t.jsx)("div",{dir:"ltr",style:{overflow:"hidden"},children:(0,t.jsx)(d.M,{id:"toDate",className:"form-control dateTimePicker"})})]}),(0,t.jsxs)("div",{className:"col-xs-12 col-md-3 pb-10",children:[(0,t.jsx)("div",{className:"pull-right",style:{marginLeft:"10px",paddingTop:"15px"},children:"\u0627\u0631\u0632 \u067e\u0631\u062f\u0627\u062e\u062a\u06cc"}),(0,t.jsx)("div",{style:{overflow:"hidden"},children:(0,t.jsxs)("select",{name:"currency",id:"currency",className:"select form-control",children:[(0,t.jsx)("option",{value:"toman",children:"\u0631\u06cc\u0627\u0644"}),(0,t.jsx)("option",{value:"dollar",children:"\u062f\u0644\u0627\u0631"})]})})]}),(0,t.jsx)("div",{className:"col-xs-12 col-md-3 pb-10",children:(0,t.jsx)("button",{type:"submit",className:"btn-default-form btn-blue-var",style:{height:"50px",margin:"0"},children:p?(0,t.jsx)("span",{children:"\u0644\u0637\u0641\u0627\u064b \u0645\u0646\u062a\u0638\u0631 \u0628\u0645\u0627\u0646\u06cc\u062f ..."}):(0,t.jsx)("span",{children:"\u062f\u0631\u06cc\u0627\u0641\u062a \u06af\u0632\u0627\u0631\u0634"})})})]})}),s?(0,t.jsx)("div",{className:"row",children:(0,t.jsxs)("div",{className:"col-xs-12",children:[(0,t.jsxs)("p",{className:"clearfix",children:[(0,t.jsxs)("span",{className:"pull-right",children:["\u062a\u0639\u062f\u0627\u062f \u06a9\u0644:",m().convertEnToPe(y)]}),(0,t.jsxs)("span",{className:"pull-left",children:[(0,t.jsx)("span",{children:"\u0645\u062c\u0645\u0648\u0639 \u0633\u0647\u0645 \u0634\u0645\u0627:"}),(0,t.jsx)("span",{children:m().convertEnToPe(m().sliceNumber(Math.floor(k)))})]})]}),(0,t.jsxs)("table",{className:"table table-striped table-responsive table-hover",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{width:"100",children:"\u062a\u0627\u0631\u06cc\u062e"}),(0,t.jsx)("th",{children:"\u0622\u0644\u0628\u0648\u0645 / \u062a\u0631\u06a9"}),(0,t.jsx)("th",{children:"\u0642\u06cc\u0645\u062a"}),(0,t.jsx)("th",{width:"80",children:"\u0633\u0647\u0645 \u0634\u0645\u0627"})]})}),(0,t.jsx)("tbody",{children:s&&s.map((function(e,l){var s,n;return(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{"data-label":"\u062a\u0627\u0631\u06cc\u062e",children:m().convertEnToPe(e.purchaseDateLocal)}),(0,t.jsx)("td",{"data-label":"\u0622\u0644\u0628\u0648\u0645",children:(null===e||void 0===e||null===(s=e.track)||void 0===s?void 0:s.name)||(null===e||void 0===e||null===(n=e.album)||void 0===n?void 0:n.name)}),(0,t.jsx)("td",{"data-label":"\u0642\u06cc\u0645\u062a",children:m().convertEnToPe(m().sliceNumber(e.price/10))+" \u062a "}),(0,t.jsx)("td",{"data-label":"\u0633\u0647\u0645 \u0634\u0645\u0627",children:m().convertEnToPe(m().sliceNumber(e.affiliatorShare/10))+" \u062a "})]},l+"aff2")}))})]}),(0,t.jsx)(x.Z,{currentPage:j,count:y,pageCount:20,onClick:function(e){b(e),f(!0);var l=document.getElementsByClassName("dateTimePicker")[0].value,s=document.getElementsByClassName("dateTimePicker")[1].value,t=document.getElementById("currency").value,
1n=l.split("-")[0].replaceAll("/","-").replaceAll(" ",""),r=s.split("-")[0].replaceAll("/","-").replaceAll(" ","");o.Z.get(h.b.user.userAffiliatorSalesReport+"?begin="+20*e+"¤cy="+t+"&endDate="+r+"&excel=false&length=20&startDate="+n).then((function(e){f(!1),a(e.data)}))}}),(0,t.jsxs)("p",{className:"clearfix",children:[(0,t.jsxs)("span",{className:"pull-right",children:["\u062a\u0639\u062f\u0627\u062f \u06a9\u0644:",m().convertEnToPe(y)]}),(0,t.jsxs)("span",{className:"pull-left",children:[(0,t.jsx)("span",{children:"\u0645\u062c\u0645\u0648\u0639 \u0633\u0647\u0645 \u0634\u0645\u0627:"}),(0,t.jsx)("span",{children:m().convertEnToPe(m().sliceNumber(Math.floor(k)))})]})]})]})}):(0,t.jsx)("p",{className:"text-center",children:"\u062f\u0631 \u0627\u06cc\u0646 \u0628\u0627\u0632\u0647\u0654 \u0632\u0645\u0627\u0646\u06cc\u060c \u0627\u0632 \u0644\u06cc\u0646\u06a9\u200c\u0647\u0627\u06cc \u0645\u0634\u0627\u0631\u06a9\u062a \u0634\u0645\u0627 \u0641\u0631\u0648\u0634\u06cc \u0635\u0648\u0631\u062a \u0646\u06af\u0631\u0641\u062a\u0647\u200c\u0627\u0633\u062a."})]})]})})})})}},5213:function(e,l,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/affiliationreport",function(){return s(6388)}])},2361:function(){},4616:function(){}},function(e){e.O(0,[6071,2830,9774,2888,179],(function(){return l=5213,e(e.s=l);var l}));var l=e.O();_N_E=l}]);
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.