Create New Item
×
Item Type
File
Folder
Item Name
×
Search file in folder and subfolders...
File Manager
/
plugins
/
citynet
/
public
/
mobile
/
js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["returnBank"],{2206:function(t,e,n){"use strict";n.r(e);var r=n("0798"),o=n("8336"),a=n("b0af"),s=n("99d9"),c=n("62ad"),i=n("169a"),u=n("132d"),l=n("8e36"),p=n("0fd9"),f=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"container",class:{"py-10 px-5":!t.$vuetify.breakpoint.mobile}},[t.beforeTicketInfo?e("div",[t.bankSucceded?e(i["a"],{attrs:{persistent:"","max-width":"400"},model:{value:t.bankSucceded,callback:function(e){t.bankSucceded=e},expression:"bankSucceded"}},[e(a["a"],{staticClass:"mx-auto pa-4 moreRadius button",attrs:{"max-width":"400",elevation:"0",color:"white"}},[e(s["c"],{staticClass:"d-flex flex-column pa-0"},[e("span",{staticClass:"title my-3 black--text"},[t._v(t._s(t.$t("pleaseWait3")))]),e("span",{staticClass:"body-1 black--text"},[t._v(t._s("ticket"==t.beforeTicketInfo.whereWasIt?t.$t("afterBankMsg"):t.$t("afterBankMsg3")))]),e(r["a"],{staticClass:"body-1 rounded-lg my-2",attrs:{text:"",color:"#FF791F"}},[e("span",{staticClass:"d-flex align-center"},[e("i",{staticClass:"icon-info-circle icon-18",class:t.$vuetify.rtl?"pl-2":"pr-2"}),t._v(" "+t._s(t.$t("afterBankMsg2"))+" ")])])],1),e(s["a"],{staticClass:"justify-center px-0"},[e(l["a"],{attrs:{color:"buttons",rounded:"",indeterminate:""}})],1)],1)],1):e("div",[t.safarmarketPixelPaymentFailure?e("img",{staticStyle:{width:"1px",height:"1px",opacity:"0"},attrs:{src:t.safarmarketPixelPaymentFailure+"&bck=false"}}):t._e(),e("ReturnBankPaymentDetails"),e(a["a"],{staticClass:"mx-auto moreRadius button mt-12 pt-4 pr-4",class:{noFlightCard:"ticket"===t.beforeTicketInfo.whereWasIt},attrs:{"max-width":t.$vuetify.breakpoint.mobile?"100vw":"80vw",flat:""}},[e(s["d"],{staticClass:"error--text"},[t._v(" "+t._s(t.$t("transactionNotDone"))+" ")]),t.canceledByUser?e(s["b"],[t._v(" "+t._s(t.$t("transactionCanceled"))+" ")]):t._e(),e(s["c"],[e(p["a"],[e(c["a"],{attrs:{cols:"12",md:"8"}},[e("span",{staticClass:"d-flex align-center"},[e("i",{staticClass:"icon-info-circle icon-16",class:t.$vuetify.rtl?"pl-2":"pr-2"}),t._v(t._s(t.$t("72hourMessage"))+" ")])]),e(c["a"],{staticClass:"d-flex justify-end align-start",attrs:{cols:t.$vuetify.breakpoint.mobile?"12":""}},[e("div",{staticClass:"mt-md-n15 px-3 theme-element-bg-light moreRadius button d-flex justify-center align-center contract-number",class:t.$vuetify.breakpoint.mobile?"w-100":""},[e("span",{staticClass:"mx-1"},[t._v(" "+t._s(t.$t("trackNumber")))]),e("span",{staticClass:"green--text mx-1"},[t._v(t._s(t._f("simplePersian")(t.contractNo,t.$i18n.locale)))])])])],1)],1)],1),t.beforeTicketInfo&&"ticket"===t.beforeTicketInfo.whereWasIt?e(a["a"],{staticClass:"mx-auto moreRadius button mt-0",attrs:{"max-width":t.$vuetify.breakpoint.mobile?"100vw":"80vw",flat:""}},[e(s["c"],[e(p["a"],[e(c["a"],{attrs:{cols:"12",md:"7"}},[e(s["d"],{staticClass:"pt-0"},[t._v(" "+t._s(t.$t("tryAgain"))+" ")]),e(s["b"],[t._v(" "+t._s(t.$t("tryAgainText"))+" ")])],1),e(c["a"],{staticClass:"text-left pt-6",class:{"d-flex align-center justify-space-between":t.$vuetify.breakpoint.mobile},attrs:{cols:"12",md:"5"}},[e(o["a"],{staticClass:"moreRadius button ma-auto",attrs:{width:t.$vuetify.breakpoint.mobile?"48%":162,height:"44",color:"lightButtons",depressed:""},on:{click:t.goToSearch}},[t._v(" "+t._s(t.$t("searchAgain"))+" ")]),e(o["a"],{staticClass:"moreRadius button",class:[t.$vuetify.rtl?"mr-md-3":"ml-md-3"],attrs:{width:t.$vuetify.breakpoint.mobile?"48%":162,height:"44",depressed:""},on:{click:t.backToHome}},[t._v(" "+t._s(t.$t("backToHome"))+" ")])],1)],1)],1)],1):t._e()],1)],1):e(a["a"],{staticClass:"moreRadius button",attrs:{flat:""}},[t.safarmarketPixelPaymentFailure?e("img",{staticStyle:{width:"1px",height:"1px",opacity:"0"},attrs:{src:t.safarmarketPixelPaymentFailure+"&bck=false"}}):t._e(),e("ReturnBankPaymentDetails"),e(s["d"],[e(u["a"],{staticClass:"icon-danger-triangle px-3",attrs:{color:"warning"}}),t._v(" "+t._s(t.$t("paymentNotDone"))+" ")],1)],1)],1)},h=[],y=n("852e"),m=n.n(y),d=n("0613"),g=n("bc3a"),b=n.n(g),v=function(t,e,n,r){function o(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,a){function s(t){try{i(r.next(t))}catch(e){a(e)}}function c(t){try{i(r["throw"](t))}catch(e){a(e)}}function i(t){t.done?n(t.value):o(t.value).then(s,c)}i((r=r.apply(t,e||[])).next())}))},N=function(t,e){var n,r,o,a,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return i([t,e])}}function i(a){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,r&&(o=2&a[0]?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(c){a=[6,c],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},_=function(){function t(t){this.BASE_URL=d["a"].state.baseUrl,this.TYPE=t.whereWasIt,this.SIGN=t.sign,this.CURRENCY=t.currency,"wallet"in t&&(this.WALLET=t.wallet),"credit"in t&&(this.CREDIT=t.credit),"contractCredit"in t&&(this.CONTRACTCREDIT=t.contractCredit),"contractWallet"in t&&(this.CONTRACTWALLET=t.contractWallet),"contractNum"in t&&(this.CONTRACTNUM=t.contractNum),"accId"in t&&(this.ACCID=t.accId),t.contractNumber&&(this.contractNumber=t.contractNumber),t.amount&&(this.amount=t.amount)}return t.prototype.getPaymentDetails=function(){return v(this,void 0,void 0,(function(){var t,e,n;return N(this,(function(r){switch(r.label){case 0:t=d["a"].state.baseUrl+"bank/paymentdetails",r.label=1;case 1:return r.trys.push([1,3,,4]),[4,b.a.get(t,{params:{saleReferenceId:this.saleReferenceId,refNum:this.refNum,BankName:this.name}})];case 2:return e=r.sent(),n=e.data.Items,e.data.Success&&n&&d["a"].commit("banksStore/setPaymentDetailsData",n),[2,"CAPTURED"===n.result];case 3:return r.sent(),[2,!1];case 4:return[2]}}))}))},Object.defineProperty(t.prototype,"url",{get:function(){var t="",e=["saman","nextpay","zarinpal"].includes(this.name)?"Amount":"FinalAmount",n="digiPay"===this.name?"&RefNum=".concat(this.refNum,"&amount=").concat(this.amount):"",r=this.CONTRACTNUM?Array.isArray(this.CONTRACTNUM)?this.CONTRACTNUM.join(", "):this.CONTRACTNUM:this.TYPE,o=this.CONTRACTNUM?"The settlement is for the contract no ".concat(r):r;t=["wallet","contractWallet","clearing"].includes(this.TYPE)?this.BASE_URL+"treasury/walletsign":this.BASE_URL+"flights/ticket";var a="knet"===this.name||"qi"===this.name?this.refNum:this.SIGN;return t+="?ContractNo="+this.contractNumber+"&SaleReferenceId="+this.saleReferenceId+"&"+e+"="+(this.amount?this.amount.replace(/,/g,"").replace(/ /g,""):0)+"&Sign="+a+"&BankName="+this.name+"&Currency="+this.CURRENCY.Abbr+"&CurrencyId="+this.CURRENCY.Id+"&Describe="+o+n,"ticket"===this.TYPE&&(t+="&Credit="+this.CREDIT+"&Wallet="+this.WALLET+"&ContractCredit="+this.CONTRACTCREDIT+"&ContractWallet="+this.CONTRACTWALLET),t},enumerable:!1,configurable:!0}),t.prototype.logData=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=""),"after-got-data"===t||"before-request"===t?("after-got-data"===t&&(console.log("name",this.name),console.log("saleReferenceId",this.saleReferenceId),console.log("amount",this.amount),console.log("contractNumber",this.contractNumber),console.log("sign: ",this.getSIGN()),console.log("status",this.status),this.refNum&&console.log("refNum",this.refNum),this.terminalId&&console.log("terminalId",this.terminalId),this.description&&console.log("description",this.description),this.errorCode&&console.log("errorCode",this.errorCode)),d["a"].dispatch("authStore/frontLog",{route:window.location.href,accountId:d["a"].getters["authStore/user"]?d["a"].getters["authStore/user"].accountId:null,event:"return-bank-".concat(this.TYPE,"-").concat(t),createdAt:Date.now(),message:{name:this.name,saleReferenceId:this.saleReferenceId,refNum:this.refNum,terminalId:this.terminalId,amount:this.amount,status:this.status,contractNumber:this.contractNumber,url:this.url}})):d["a"].dispatch("authStore/frontLog",{route:window.location.href,accountId:d["a"].getters["authStore/user"]?d["a"].getters["authStore/user"].accountId:null,event:"return-bank-".concat(this.TYPE,"-").concat(t),createdAt:Date.now(),message:e,url:n})},t.prototype.timeout=function(t){return new Promise((function(e,n){setTimeout((function(){e("")}),t)}))},t.prototype.ticket=function(){var t=this;return new Promise((function(e,n){t.status?(t.logData("before-request"),b.a.get(t.url).then((function(r){return v(t,void 0,void 0,(function(){var t,o,a,s,c=this;return N(this,(function(i){switch(i.label){case 0:return[4,this.timeout(2e3)];case 1:return i.sent(),this.logData("request-then",r.data,this.url),"contractWallet"===this.TYPE||"clearing"===this.TYPE?r.data.Success?(t="".concat(this.BASE_URL,"contract/checkout"),o={},a="contractWallet"===this.TYPE,s=Array.isArray(this.CONTRACTNUM),o=a?{ContractNo:this.contractNumber}:s?{ContractsType:"Multiple",Contracts:this.CONTRACTNUM}:{ContractNo:this.CONTRACTNUM},b.a.post(t,o).then((function(r){c.logData("request-catch",r.data,t),r.data.Success?e("OK"):"There is not enough wallet"==r.data.Item&&n("Not enough wallet")})).catch((function(e){c.logData("request-catch",e,t),n("Checkout Not Success")}))):n("Ticket Not Success"):e("OK"),[2]}}))}))})).catch((function(e){t.logData("request-catch",e,t.url),"ticket"===t.TYPE&&e.response&&462==e.response.status&&n("Ticket Duplicate"),n("Ticket Not Success")}))):n("Bank Not Success")}))},t.prototype.setData=function(){this.logData("after-got-data")},t.prototype.getBASE_URL=function(){return this.BASE_URL},t.prototype.getTYPE=function(){return this.TYPE},t.prototype.getCURRENCY=function(){return this.CURRENCY},t.prototype.getSIGN=function(){return this.SIGN},t.prototype.getCREDIT=function(){return this.CREDIT},t.prototype.getWALLET=function(){return this.WALLET},t.prototype.getCONTRACTCREDIT=function(){return this.CONTRACTCREDIT},t.prototype.getCONTRACTWALLET=function(){return this.CONTRACTWALLET},t.prototype.getCONTRACTNUM=function(){return this.CONTRACTNUM},t.prototype.getACCID=function(){return this.ACCID},t.prototype.getName=function(){return this.name},t.prototype.getAmount=function(){return this.amount},t.prototype.getSaleReferenceId=function(){return this.saleReferenceId},t.prototype.getStatus=function(){return this.status},t.prototype.getRefNum=function(){return this.refNum},t.prototype.getTerminalId=function(){return this.terminalId},t.prototype.getAuthority=function(){return this.authority},t.prototype.getErrorCode=function(){return this.errorCode},t.prototype.getDescription=function(){return this.description},t.prototype.getContractNumber=function(){return this.contractNumber},t.prototype.setSIGN=function(t){this.SIGN=t},t.prototype.setName=function(t){this.name=t},t.prototype.setAmount=function(t){this.amount=t},t.prototype.setSaleReferenceId=function(t){this.saleReferenceId=t},t.prototype.setStatus=function(t){this.status=t},t.prototype.setRefNum=function(t){this.refNum=t},t.prototype.setTerminalId=function(t){this.terminalId=t},t.prototype.setAuthority=function(t){this.authority=t},t.prototype.setErrorCode=function(t){this.errorCode=t},t.prototype.setDescription=function(t){this.description=t},t.prototype.setContractNumber=function(t){this.contractNumber=t},t}(),w=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),C=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("irankish"),n}return w(e,t),e.prototype.setData=function(){this.setRefNum(document.getElementsByName("systemTraceAuditNumber")[0].value),this.setContractNumber(document.getElementsByName("requestId")[0].value),this.setSaleReferenceId(document.getElementsByName("retrievalReferenceNumber")[0].value),this.setAmount(document.getElementsByName("amount")[0].value),this.setStatus(!!document.getElementsByName("retrievalReferenceNumber")[0].value),t.prototype.setData.call(this)},Object.defineProperty(e.prototype,"url",{get:function(){var t="";return t=["wallet","contractWallet","clearing"].includes(this.getTYPE())?this.getBASE_URL()+"treasury/walletsign":this.getBASE_URL()+"flights/ticket",t+="?ContractNo="+this.getContractNumber()+"&SaleReferenceId="+this.getSaleReferenceId()+"&FinalAmount="+this.getAmount().replace(/,/g,"").replace(/ /g,"")+"&RefNum="+encodeURIComponent(this.getRefNum())+"&Sign="+this.getSIGN()+"&BankName="+this.getName()+"&Currency="+this.getCURRENCY().Abbr+"&CurrencyId="+this.getCURRENCY().Id,"ticket"===this.getTYPE()&&(t+="&Credit="+this.getCREDIT()+"&Wallet="+this.getWALLET()),t},enumerable:!1,configurable:!0}),e}(_),S=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),O=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("mellat"),n}return S(e,t),e.prototype.setData=function(){this.setContractNumber(document.getElementsByName("saleOrderId")[0].value),this.setSaleReferenceId(document.getElementsByName("saleReferenceId")[0].value),this.setAmount(document.getElementsByName("finalAmount")[0].value),this.setStatus(!!document.getElementsByName("saleReferenceId")[0].value),t.prototype.setData.call(this)},e}(_),R=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),E=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("nextpay"),n}return R(e,t),e.prototype.setData=function(){var e=window.location.search,n=new URLSearchParams(e);this.setContractNumber(n.get("order_id")||""),this.setSaleReferenceId(n.get("trans_id")||""),this.setAmount(n.get("amount")||""),this.setStatus("OK"===n.get("np_status")),t.prototype.setData.call(this)},e}(_),I=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),T=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("parsian"),n}return I(e,t),e.prototype.setData=function(){this.setContractNumber(document.getElementsByName("OrderId")[0].value),this.setSaleReferenceId(document.getElementsByName("RRN")[0].value),this.setAmount(document.getElementsByName("Amount")[0].value),this.setStatus(!!document.getElementsByName("RRN")[0].value),t.prototype.setData.call(this)},e}(_),P=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),k=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("saman"),n}return P(e,t),e.prototype.setData=function(){this.setRefNum(document.getElementsByName("RefNum")[0].value),this.setContractNumber(document.getElementsByName("ResNum")[0].value),this.setTerminalId(document.getElementsByName("TerminalId")[0].value),this.setSaleReferenceId(document.getElementsByName("TraceNo")[0].value),this.setAmount(document.getElementsByName("Amount")[0].value),this.setStatus("OK"===document.getElementsByName("State")[0].value),t.prototype.setData.call(this)},Object.defineProperty(e.prototype,"url",{get:function(){var t="";return t=["wallet","contractWallet","clearing"].includes(this.getTYPE())?this.getBASE_URL()+"treasury/walletsign":this.getBASE_URL()+"flights/ticket",t+="?ContractNo="+this.getContractNumber()+"&SaleReferenceId="+this.getSaleReferenceId()+"&Amount="+this.getAmount().replace(/,/g,"").replace(/ /g,"")+"&TerminalId="+this.getTerminalId()+"&RefNum="+encodeURIComponent(this.getRefNum())+"&Sign="+this.getSIGN()+"&BankName="+this.getName()+"&Currency="+this.getCURRENCY().Abbr+"&CurrencyId="+this.getCURRENCY().Id,"ticket"===this.getTYPE()&&(t+="&Credit="+this.getCREDIT()+"&Wallet="+this.getWALLET(),t+="&ContractCredit="+this.getCONTRACTCREDIT()+"&ContractWallet="+this.getCONTRACTWALLET()),t},enumerable:!1,configurable:!0}),e}(_),A=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),D=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("sberBank"),n}return A(e,t),e.prototype.setData=function(){var e=window.location.search,n=new URLSearchParams(e);this.setSaleReferenceId(n.get("mdOrder")||""),this.setAmount(n.get("price")||""),this.setContractNumber(n.get("contractnumber")||""),this.setStatus(!!n.get("mdOrder")),t.prototype.setData.call(this)},e}(_),j=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),B=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("simplify"),n}return j(e,t),e.prototype.setData=function(){var e=window.location.search,n=new URLSearchParams(e);this.setSaleReferenceId(n.get("id")||""),this.setAmount(n.get("amount")||""),this.setContractNumber(n.get("contractNo")||""),this.setStatus("true"===n.get("success")),t.prototype.setData.call(this)},e}(_),x=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),U=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("zarinpal"),n}return x(e,t),e.prototype.setData=function(){var e=window.location.search,n=new URLSearchParams(e);this.setSaleReferenceId(n.get("Authority")||""),this.setAmount(n.get("amount")||""),this.setContractNumber(n.get("orderid")||""),this.setStatus("OK"===n.get("Status")),t.prototype.setData.call(this)},e}(_),L=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("rayancard"),n}return L(e,t),e.prototype.setData=function(){this.setContractNumber(document.getElementsByName("orderId")[0].value),this.setSaleReferenceId(document.getElementsByName("token")[0].value);var e=document.getElementsByName("wasSuccessful")[0].value,n=document.getElementsByName("wasCancel")[0].value;this.setStatus(JSON.parse(e)&&!JSON.parse(n)),t.prototype.setData.call(this)},e}(_),Y=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),W=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("yekpay"),n}return Y(e,t),e.prototype.setData=function(){this.setStatus(!!document.getElementsByName("status")[0].value),this.setSaleReferenceId(document.getElementsByName("authority")[0].value),this.setDescription(document.getElementsByName("description")[0].value),this.setErrorCode(document.getElementsByName("errorCode")[0].value),this.setContractNumber(document.getElementsByName("contractNumber")[0].value),t.prototype.setData.call(this)},e}(_),G=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),F=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("safarmarket"),n}return G(e,t),e.prototype.setData=function(){var e=window.location.search,n=new URLSearchParams(e);this.setContractNumber(n.get("orderId")||""),this.setSaleReferenceId(n.get("paymentId")||""),this.setAmount(n.get("amount")||""),this.setStatus("done"===n.get("status")),t.prototype.setData.call(this)},e}(_),q=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),M=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("mellatRefahi"),n}return q(e,t),e.prototype.setData=function(){var e=window.location.search,n=new URLSearchParams(e);this.setContractNumber(n.get("ContractNo")||""),this.setSaleReferenceId(n.get("SaleReferenceId")||""),this.setAmount(n.get("Amount")||""),this.setRefNum(n.get("RefNum")||""),this.setStatus("OK"===n.get("Status")),t.prototype.setData.call(this)},Object.defineProperty(e.prototype,"url",{get:function(){var t="";return t=["wallet","contractWallet","clearing"].includes(this.getTYPE())?this.getBASE_URL()+"treasury/walletsign":this.getBASE_URL()+"flights/ticket",t+="?ContractNo="+this.getContractNumber()+"&SaleReferenceId="+this.getSaleReferenceId()+"&Amount="+this.getAmount().replace(/,/g,"").replace(/ /g,"")+"&RefNum="+encodeURIComponent(this.getRefNum())+"&Sign="+this.getSIGN()+"&BankName="+this.getName()+"&Currency="+this.getCURRENCY().Abbr+"&CurrencyId="+this.getCURRENCY().Id,"ticket"===this.getTYPE()&&(t+="&Credit="+this.getCREDIT()+"&Wallet="+this.getWALLET()),t},enumerable:!1,configurable:!0}),e}(_),H=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),z=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("qi"),n}return H(e,t),e.prototype.setData=function(){var e=window.location.search,n=new URLSearchParams(e);this.setStatus("SUCCESS"===n.get("status")),this.setContractNumber("ticket"===this.getTYPE()?this.getContractNumber():n.get("paymentId")||""),this.setSaleReferenceId(n.get("paymentId")||""),this.setAmount(n.get("Amount")||""),this.setRefNum(n.get("requestId")||""),t.prototype.setData.call(this)},e}(_),K=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),J=function(t,e,n,r){function o(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,a){function s(t){try{i(r.next(t))}catch(e){a(e)}}function c(t){try{i(r["throw"](t))}catch(e){a(e)}}function i(t){t.done?n(t.value):o(t.value).then(s,c)}i((r=r.apply(t,e||[])).next())}))},Q=function(t,e){var n,r,o,a,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return i([t,e])}}function i(a){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,r&&(o=2&a[0]?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(c){a=[6,c],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},V=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("knet"),n}return K(e,t),e.prototype.setData=function(){var e=window.location.search,n=new URLSearchParams(e);this.setContractNumber("ticket"===this.getTYPE()?this.getContractNumber():n.get("trackid")||""),this.setSaleReferenceId(n.get("paymentid")||""),this.setRefNum(n.get("trandata")||""),t.prototype.setData.call(this)},e.prototype.ticket=function(){return J(this,void 0,Promise,(function(){var e;return Q(this,(function(n){switch(n.label){case 0:return e=this.setStatus,[4,this.getPaymentDetails()];case 1:return e.apply(this,[n.sent()]),[2,t.prototype.ticket.call(this)]}}))}))},e}(_),X=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Z=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("pasargad"),n}return X(e,t),e.prototype.setData=function(){var e=window.location.search,n=new URLSearchParams(e);this.setStatus("success"===n.get("status")),this.setSaleReferenceId(n.get("referenceNumber")||""),this.setContractNumber(n.get("invoiceId")||""),this.setRefNum(n.get("trackId")||""),t.prototype.setData.call(this)},e}(_),tt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),et=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("ngenius"),n}return tt(e,t),e.prototype.setData=function(){var e=window.location.search,n=new URLSearchParams(e),r=n.get("ref");this.setContractNumber(this.getContractNumber()||r||""),this.setSaleReferenceId(r||""),this.setStatus(!!r),this.setSIGN(r||""),t.prototype.setData.call(this)},e}(_),nt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rt=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("ziraat"),n}return nt(e,t),e.prototype.setData=function(){var e=document.getElementsByName("TransId")[0].value,n=document.getElementsByName("oid")[0].value,r=document.getElementsByName("mdStatus")[0].value,o=document.getElementsByName("amount")[0].value;this.setContractNumber("ticket"===this.getTYPE()?this.getContractNumber():n||""),this.setSaleReferenceId(e||""),this.setSIGN(e||""),this.setStatus(1===Number(r)),this.setAmount(o||""),t.prototype.setData.call(this)},e}(_),ot=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),at=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("tara"),n}return ot(e,t),e.prototype.setData=function(){var e=document.getElementsByName("result")[0].value,n=document.getElementsByName("token")[0].value,r=document.getElementsByName("channelRefNumber")[0].value,o=document.getElementsByName("orderId")[0].value,a="ticket"===this.getTYPE()?this.getContractNumber():o||"";this.setContractNumber(a),this.setSaleReferenceId(r||""),this.setSIGN(n||""),this.setStatus(0===Number(e)),this.setAmount(this.getAmount()||"0"),t.prototype.setData.call(this)},e}(_),st=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ct=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("kipaa"),n}return st(e,t),e.prototype.setData=function(){var e=document.getElementsByName("state")[0].value,n=document.getElementsByName("payment_token")[0].value,r=document.getElementsByName("reciept_number")[0].value,o=Boolean(this.getContractNumber())?this.getContractNumber():n||"";this.setContractNumber(o),this.setSaleReferenceId(r||""),this.setSIGN(n||""),this.setStatus(100===Number(e)),t.prototype.setData.call(this)},e}(_),it=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ut=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("creditCard"),n}return it(e,t),e.prototype.setData=function(){var e=window.location.search,n=new URLSearchParams(e);this.setContractNumber("ticket"===this.getTYPE()?this.getContractNumber():n.get("resultIndicator")||""),this.setSaleReferenceId(n.get("resultIndicator")||""),this.setSIGN(n.get("resultIndicator")||""),this.setStatus(!!n.get("resultIndicator")),t.prototype.setData.call(this)},e}(_),lt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pt=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("asanpardakht"),n}return lt(e,t),e.prototype.setData=function(){var e=window.location.search,n=new URLSearchParams(e);this.setContractNumber(n.get("contractNo")||"");var r=document.getElementsByName("PayGateTranID")[0].value,o=document.getElementsByName("ReturningParams")[0].value,a=document.getElementsByName("MerchantShaparakFee")[0].value;r&&o&&a?(this.setStatus(!0),this.setSaleReferenceId(r||""),this.setSIGN(o||""),this.setRefNum(a||"")):this.setStatus(!1),t.prototype.setData.call(this)},e}(_),ft=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ht=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("digiPay"),n}return ft(e,t),e.prototype.setData=function(){var e=document.getElementsByName("amount")[0].value,n=document.getElementsByName("trackingCode")[0].value,r=document.getElementsByName("type")[0].value,o=document.getElementsByName("providerId")[0].value,a=document.getElementsByName("result")[0].value;"SUCCESS"===a?(this.setStatus(!0),this.setContractNumber(o||""),this.setAmount(e||""),this.setSaleReferenceId(n||""),this.setSIGN(n||""),this.setRefNum(r||"")):this.setStatus(!1),t.prototype.setData.call(this)},e}(_),yt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mt=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("meli"),n}return yt(e,t),e.prototype.setData=function(){var e,n=document.getElementsByName("ResCode")[0].value.trim();e=!Number(n),this.setContractNumber(document.getElementsByName("OrderId")[0].value),this.setSaleReferenceId(document.getElementsByName("token")[0].value.slice(-10)),this.setSIGN(document.getElementsByName("token")[0].value),this.setStatus(e),t.prototype.setData.call(this)},e}(_),dt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gt=function(t,e,n,r){function o(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,a){function s(t){try{i(r.next(t))}catch(e){a(e)}}function c(t){try{i(r["throw"](t))}catch(e){a(e)}}function i(t){t.done?n(t.value):o(t.value).then(s,c)}i((r=r.apply(t,e||[])).next())}))},bt=function(t,e){var n,r,o,a,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return i([t,e])}}function i(a){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,r&&(o=2&a[0]?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(c){a=[6,c],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},vt=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("vamipay"),n}return dt(e,t),e.prototype.fetchBankResult=function(t){return gt(this,void 0,Promise,(function(){var e,n;return bt(this,(function(r){switch(r.label){case 0:e=d["a"].state.baseUrl+"bank/paymentdetails",r.label=1;case 1:return r.trys.push([1,3,,4]),[4,b.a.get(e,{params:{saleReferenceId:t,refNum:t,BankName:this.getName()}})];case 2:return n=r.sent(),[2,n.data];case 3:return r.sent(),[2,{Success:!1}];case 4:return[2]}}))}))},e.prototype.ticket=function(){return gt(this,void 0,Promise,(function(){var e,n,r,o,a,s,c,i;return bt(this,(function(u){switch(u.label){case 0:return e=window.location.search,n=new URLSearchParams(e),r=n.get("responseData"),r?[4,this.fetchBankResult(r)]:[2];case 1:return o=u.sent(),o.Success&&(a=o.Items,s=a.Rrn,c=a.ResponseStatus,i=a.InvoiceNumber,this.setStatus(c),this.setContractNumber(i),this.setAmount("0"),this.setSaleReferenceId(s),this.setRefNum(s),this.setSIGN(s)),[2,t.prototype.ticket.call(this)]}}))}))},e}(_),Nt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_t=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("sepehr"),n}return Nt(e,t),e.prototype.setData=function(){var e="0"===document.getElementsByName("respcode")[0].value,n=document.getElementsByName("amount")[0].value,r=document.getElementsByName("tracenumber")[0].value,o=document.getElementsByName("invoiceid")[0].value,a=document.getElementsByName("digitalreceipt")[0].value,s=document.getElementsByName("rrn")[0].value;this.setStatus(e),this.setContractNumber(o||""),this.setAmount(n||""),this.setSaleReferenceId(r||""),this.setSIGN(a||""),this.setRefNum(s||""),t.prototype.setData.call(this)},e}(_),wt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ct=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("azkivam"),n}return wt(e,t),e.prototype.setData=function(){var e=window.location.search,n=new URLSearchParams(e),r=n.get("status")||"";this.setSaleReferenceId(n.get("ticketId")||""),this.setSIGN(n.get("ticketId")||""),this.setAmount(n.get("0")||""),this.setContractNumber(n.get("contractNo")||""),this.setStatus("done"===r.toLocaleLowerCase()),t.prototype.setData.call(this)},e}(_),St=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ot=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("stripe"),n}return St(e,t),e.prototype.setData=function(){var e=window.location.search,n=new URLSearchParams(e),r="true"===n.get("success"),o=n.get("contractno")||"";this.setSaleReferenceId("123456"),this.setSIGN("123456"),this.setRefNum("123456"),this.setContractNumber(o),this.setStatus(r),this.setAmount("0"),t.prototype.setData.call(this)},e}(_),Rt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Et=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("sibpay"),n}return Rt(e,t),e.prototype.setData=function(){var e=window.location.search,n=new URLSearchParams(e),r=document.getElementsByName("rnn")[0].value,o=document.getElementsByName("paymentToken")[0].value,a=document.getElementsByName("productId")[0].value,s=document.getElementsByName("amount")[0].value;this.setStatus(!0),this.setSaleReferenceId(r),this.setRefNum(r),this.setSIGN(o),this.setContractNumber(n.get("ContractNo")||a||""),this.setAmount(s),t.prototype.setData.call(this)},e}(_),It=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tt=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("smartisPay"),n}return It(e,t),e.prototype.setData=function(){var e=window.location.search,n=new URLSearchParams(e);this.setStatus(!0),this.setSaleReferenceId("000000"),this.setSIGN(n.get("uuid")||""),this.setContractNumber(n.get("contractNo")||""),t.prototype.setData.call(this)},e}(_),Pt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kt=function(t){function e(e){var n=t.call(this,e)||this;return n.setName("saana"),n}return Pt(e,t),e.prototype.setData=function(){var e=window.location.search,n=new URLSearchParams(e);this.setContractNumber(n.get("contractNo")||"");var r="1"===document.getElementsByName("status")[0].value,o=document.getElementsByName("amount")[0].value,a=document.getElementsByName("requestCode")[0].value,s=document.getElementsByName("transactionCode")[0].value;r?(this.setStatus(!0),this.setAmount(o||""),this.setSaleReferenceId(a||""),this.setSIGN(s||"")):this.setStatus(!1),t.prototype.setData.call(this)},e}(_),At={irankish:C,mellat:O,nextpay:E,parsian:T,saman:k,sberBank:D,simplify:B,zarinpal:U,rayancard:$,yekpay:W,safarmarket:F,mellatRefahi:M,qi:z,knet:V,pasargad:Z,ngenius:et,ziraat:rt,tara:at,kipaa:ct,masterCard:ut,creditCard:ut,asanpardakht:pt,digiPay:ht,meli:mt,vamipay:vt,sepehr:_t,azkivam:Ct,stripe:Ot,sibpay:Et,smartisPay:Tt,saana:kt},Dt=n("60a3"),jt=n("7a1b"),Bt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xt=function(t,e,n,r){var o,a=arguments.length,s=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(a<3?o(s):a>3?o(e,n,s):o(e,n))||s);return a>3&&s&&Object.defineProperty(e,n,s),s},Ut=function(t,e,n,r){function o(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,a){function s(t){try{i(r.next(t))}catch(e){a(e)}}function c(t){try{i(r["throw"](t))}catch(e){a(e)}}function i(t){t.done?n(t.value):o(t.value).then(s,c)}i((r=r.apply(t,e||[])).next())}))},Lt=function(t,e){var n,r,o,a,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return i([t,e])}}function i(a){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,r&&(o=2&a[0]?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(c){a=[6,c],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},$t=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.bankSucceded=!0,e.canceledByUser=!0,e.contractNo="",e.contract=null,e.isPaymentDetailsOpen=!1,e.redirectUrlObject="",e}return Bt(e,t),Object.defineProperty(e.prototype,"safarmarketPixelPaymentFailure",{get:function(){return this.$store.getters["safarmarketStore/urlPaymentFailure"]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"safarmarketId",{get:function(){return this.$store.getters["safarmarketStore/safarmarketId"]},enumerable:!1,configurable:!0}),e.prototype.mounted=function(){this.handleBankReturn()},e.prototype.handleBankReturn=function(){return Ut(this,void 0,void 0,(function(){var t,e,n,r,o,a,s,c=this;return Lt(this,(function(i){return this.cnLodash.isEmpty(this.beforeTicketInfo)||(t=this.beforeTicketInfo.bank,e=this.beforeTicketInfo.whereWasIt,n=this.beforeTicketInfo.contractNum,r=this.beforeTicketInfo.accId,o=At[t],a=new o(this.beforeTicketInfo),console.log("Bank: ",a),a.setData(),this.contractNo=a.contractNumber,s="",a.ticket().then((function(){"wallet"===e?s={name:"editProfile",query:{type:"walletCharge"}}:"contractWallet"===e?(c.$toast.success(c.$t("contractclearingSuccessfullyDone")),s={name:"contracts",query:{ContractNo:c.contractNo,walletCharged:"true"}}):s="clearing"===e?Array.isArray(n)?{name:"userTreasury",query:{acc:r,ContractNo:n.join(","),Clearing:"true"}}:{name:"contracts",query:{ContractNo:n,Clearing:"true"}}:{name:"contracts",query:{ContractNo:c.contractNo,Ticketed:"true"}}})).catch((function(t){c.safarmarketId&&c.$store.dispatch("safarmarketStore/safarmarketBackRequest",5),console.log(t),"Ticket Not Success"===t?(c.bankSucceded=!1,c.canceledByUser=!1):"Bank Not Success"===t?(console.log("here"),c.bankSucceded=!1):"Not enough wallet"===t?(c.$toast.error(c.$t("notEnoughMoney"),{timeout:!1}),c.bankSucceded=!1,c.canceledByUser=!1):"Checkout Not Success"===t?c.$toast.error("Checkout Not Success"):"Ticket Duplicate"===t&&(s={name:"contracts",query:{ContractNo:c.contractNo,Ticketed:"false"}})})).finally((function(){if(s){var t=c.$router.resolve(s);window.open(t.href,"_self")}}))),[2]}))}))},e.prototype.handleGetContract=function(){var t=this,e=this.$store.state.baseUrl+"contractlist",n={perPage:1,QueryType:"ContractNo",q:this.contractNo};this.axios.get(e,{params:n}).then((function(e){var n;200===e.status&&(t.contract=(null===(n=e.data.Items)||void 0===n?void 0:n[0])||null)})).catch((function(t){})).finally((function(){}))},e.prototype.goToSearch=function(){var t=null;!m.a.get("comingFrom")||"hotel"!=m.a.get("comingFrom")&&"package"!=m.a.get("comingFrom")&&"cip"!=m.a.get("comingFrom")&&"tour"!=m.a.get("comingFrom")&&"FPH"!=m.a.get("comingFrom")||(t=m.a.get("comingFrom")),t?"hotel"==t?(this.$store.commit("setLoadComponentInHotel","resultHotel"),window.location.href="".concat(window.location.origin).concat(this.lang,"/hotel/")):"FPH"==t?(this.$store.commit("setLoadComponentInFPH","resultFlightPlusHotel"),window.location.href="".concat(window.location.origin).concat(this.lang,"/flightplushotel/")):"package"==t?(this.$store.commit("setLoadComponentInPackage","resultPackage"),window.location.href="".concat(window.location.origin).concat(this.lang,"/package/")):"tour"==t?(this.$store.commit("setTourLoadComponent","resultTour"),window.location.href="".concat(window.location.origin).concat(this.lang,"/tour/")):"cip"==t&&(this.$store.commit("setCipLoadComponent","resultCip"),window.location.href="".concat(window.location.origin).concat(this.lang,"/cip/")):(this.$store.commit("setLoadComponentInFlight","resultFlight"),window.location.href="".concat(window.location.origin).concat(this.lang,"/flight/"))},e.prototype.backToHome=function(){window.location.href="".concat(window.location.origin).concat(this.lang,"/")},Object.defineProperty(e.prototype,"lang",{get:function(){var t=this.$store.getters["authStore/base"],e=this.$store.getters["authStore/siteLanguage"],n="";return t.siteLanguage!==e&&(n="/"+e),n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"accountId",{get:function(){var t=this.$store.getters["authStore/user"];return t?t.accountId:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"beforeTicketInfo",{get:function(){return JSON.parse(m.a.get("bankInfo")||"null")},enumerable:!1,configurable:!0}),e.prototype.onContractNoChange=function(t){t&&this.handleGetContract()},xt([Object(Dt["e"])("contractNo")],e.prototype,"onContractNoChange",null),e=xt([Object(Dt["a"])({components:{ReturnBankPaymentDetails:jt["a"]}})],e),e}(Object(Dt["b"])()),Yt=$t,Wt=Yt,Gt=(n("ac74"),n("2877")),Ft=Object(Gt["a"])(Wt,f,h,!1,null,"71af31a6",null);e["default"]=Ft.exports},"7a1b":function(t,e,n){"use strict";var r=n("b0af"),o=n("99d9"),a=n("62ad"),s=n("0fd9"),c=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",[t.paymentDetailsData?e(r["a"],{staticClass:"mx-auto moreRadius button mt-12 pt-4 pr-4",attrs:{flat:""}},[e(o["d"],{class:(this.isSuccess?"success":"error")+"--text"},[t._v(" "+t._s(t.isSuccess?t.$t("successfullTransaction"):t.$t("transactionNotDone"))+" ")]),e(o["c"],[e(s["a"],[e(a["a"],{attrs:{cols:"12",md:"4"}},[t._v(" Track Number : "+t._s(t.paymentDetailsData.trackid)+" ")]),e(a["a"],{attrs:{cols:"12",md:"4"}},[t._v(" Reference : "+t._s(t.paymentDetailsData.ref)+" ")]),e(a["a"],{attrs:{cols:"12",md:"4"}},[t._v(" Payment id : "+t._s(t.paymentDetailsData.paymentid)+" ")]),e(a["a"],{attrs:{cols:"12",md:"4"}},[t._v(" Amount : "+t._s(t.paymentDetailsData.udf1)+" ")]),e(a["a"],{attrs:{cols:"12",md:"4"}},[t._v(" Contract No : "+t._s(t.paymentDetailsData.udf2)+" ")]),e(a["a"],{attrs:{cols:"12",md:"4"}},[t._v(" Transaction Time : "+t._s(t.paymentDetailsData.udf4)+" ")])],1)],1)],1):t._e()],1)},i=[],u=n("60a3"),l=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),p=function(t,e,n,r){var o,a=arguments.length,s=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(a<3?o(s):a>3?o(e,n,s):o(e,n))||s);return a>3&&s&&Object.defineProperty(e,n,s),s},f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),Object.defineProperty(e.prototype,"paymentDetailsData",{get:function(){return this.$store.getters["banksStore/getPaymentDetailsData"]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSuccess",{get:function(){return"CAPTURED"===this.paymentDetailsData.result},enumerable:!1,configurable:!0}),e=p([Object(u["a"])({name:"ReturnBankPaymentDetails"})],e),e}(u["d"]),h=f,y=h,m=n("2877"),d=Object(m["a"])(y,c,i,!1,null,null,null);e["a"]=d.exports},ac74:function(t,e,n){"use strict";n("cabf")},cabf:function(t,e,n){}}]);