PageSourceSearch

https://flip.id/id/globe/_next/static/chunks/9009-cc16d50870c09c34.js

js flip.id collected 2026-10-01 11:32:32 UTC 34,494 bytes, 1 lines download raw bytes

1!function(){try{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]="3a891bd3-df9c-468e-861e-e5bee429e95a",e._sentryDebugIdIdentifier="sentry-dbid-3a891bd3-df9c-468e-861e-e5bee429e95a")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9009],{26355:(e,t,n)=>{n.d(t,{J:()=>s});var a=n(48105),r=n(43372),o=n(82430);let i=(e,t)=>{var n,a,r,o,i,c,u,s;let l=e.split("-"),d=null==(n=t.countryCode)?void 0:n.toUpperCase(),m=null==(a=t.currencyCode)?void 0:a.toUpperCase(),y=null==(r=t.serviceName)?void 0:r.toUpperCase(),p=null==(o=t.transactionType)?void 0:o.toUpperCase();if(l.length>0){let e=null==(i=l[0])?void 0:i.toUpperCase();if(e&&"ALL"!==e&&e!==d)return!1}if(l.length>1){let e=null==(c=l[1])?void 0:c.toUpperCase();if(e&&"ALL"!==e&&e!==m)return!1}if(l.length>2){let e=null==(u=l[2])?void 0:u.toUpperCase();if(e&&"ALL"!==e&&e!==y)return!1}if(l.length>3){let e=null==(s=l[3])?void 0:s.toUpperCase();if(e&&"ALL"!==e&&e!==p)return!1}return!0},c=(e,t)=>!!e&&0!==e.length&&e.some(e=>i(e,t));var u=n(55884);let s=(e,t)=>{try{var n;let i=(0,r.S)().getQueryData(a.A.getFeatureFlags(o.E5)),s=null==i?void 0:i["itr-web-use-api-gateway"],l=(null!=(n=null==s?void 0:s.payload)?n:u.j)[e];if(void 0===l)return!1;if("boolean"==typeof l)return l;if(Array.isArray(l)&&t)return c(l,t);return Array.isArray(l),!1}catch(e){return console.error("Error reading API Gateway config:",e),!1}}},26441:(e,t,n)=>{n.d(t,{BP:()=>o,FJ:()=>a,jV:()=>i,z2:()=>r});let a=e=>e,r=e=>({type:"FIXED",...e}),o=e=>({type:"VARIABLE",...e}),i=e=>({type:"STATIC",...e})},30532:(e,t,n)=>{n.d(t,{Q:()=>a});let a=e=>e},31112:(e,t,n)=>{n.d(t,{A:()=>o});var a=n(53822);let r={create:e=>e,fromCurrencyCode:e=>{var t;return r.create({code:e,name:null!=(t=a.EY[e])?t:null})}},o=r},50032:(e,t,n)=>{n.d(t,{L:()=>_,v:()=>v});var a=n(65979),r=n(31112),o=n(52872),i=n(26441),c=n(98929),u=n(88927),s=n(90333),l=n(59019);let d={createRefund:e=>({...e,isFailed:()=>"FAILED"===e.status,isRefundToBalance:()=>{var t,n,a;return["DUTAMONEY","SUPERFLIP"].includes(null!=(a=null==(n=e.payee)||null==(t=n[0])?void 0:t.paymentMethod.type)?a:"")}})},m=e=>{switch(e){case"NEW":case"NOT_CONFIRMED":return"CREATED";case"PENDING":return"MARK_AS_CONFIRMED";case"REJECTED":return"MARK_AS_WAITING_RECEIPT";case"PROCESSED":return"IN_PROGRESS";case"SUCCESSFUL":case"DONE":return"COMPLETED";case"CANCELED":return"CANCELED";default:return"FAILED"}},y=e=>{var t;let n=e.metadata,l=r.A.fromCurrencyCode(n.source_currency_code),d=a.A.fromCountryIsoCode("IDN"),y=r.A.fromCurrencyCode(n.beneficiary_currency_code),p=a.A.fromCountryIsoCode(n.beneficiary_country_iso_code),_=parseFloat(n.transfer_fee)||0,f=n.total_amount-_,v=(0,c.c)({amount:f,currency:l,country:d}),g=(0,c.c)({amount:n.beneficiary_amount,currency:y,country:p}),b=(0,o.O)({value:parseFloat(n.exchange_rate)||0,currency:y}),h=(0,u.R)({value:n.total_amount,currency:l}),A=(0,i.FJ)({total:_,currency:l,breakdowns:[]}),C=n.estimated_payment_arrival_at?new Date(1e3*n.estimated_payment_arrival_at).toISOString():"",T=n.top_up_expire_at?new Date(1e3*n.top_up_expire_at).toISOString():"",I=n.further_action?{purpose:n.further_action.purpose,actions:n.further_action.actions.map(e=>({type:e.type,content:e.content}))}:void 0;return s.A.createTransaction({id:n.id.toString(),tmsId:"",productType:"GLOBE",status:m(e.status),totalPayment:h,paymentMethods:[],source:v,destination:g,exchangeRate:b,serviceType:"BANK",fee:A,beneficiary:{id:0,recipientId:"",recipientType:"BANK",fullName:n.beneficiary_name,bankAccountNumber:n.beneficiary_account_number,iban:null==(t=n.beneficiary_special_identifier)?void 0:t.iban,highestTransferAmount:0,recipientInstitutionName:n.beneficiary_bank_name||n.beneficiary_bank,beneficiaryType:"C2B"===n.beneficiary_transaction_type?"BUSINESS":"PERSONAL"},histories:[],estimatedReceivedAt:C,expiredAt:T,createdAt:e.transaction_created_at,updatedAt:e.transaction_updated_at,furtherAction:I})},p=e=>"metadata"in e&&"transaction_type"in e.metadata&&"REFUND"===e.metadata.transaction_type,_=e=>{var t,n,a,r,o,i,c,u,s,l,m,y,p,_,f,v,g,b,h,A,C,T,I,N,E;return d.createRefund({id:e.id,productType:"REFUND",status:e.status,amount:null!=(_=null==(t=e.amount)?void 0:t.value)?_:0,currency:null!=(f=null==(n=e.amount)?void 0:n.currency)?f:"IDR",user:e.user,payee:e.payee.map(e=>({user:e.user,amount:e.amount,paymentMethod:{type:e.payment_method.type,bankDetail
1s:e.payment_method.bank_details?{code:e.payment_method.bank_details.code,accountHolder:e.payment_method.bank_details.account_holder,accountNumber:e.payment_method.bank_details.account_number}:void 0},paymentAuthorized:e.payment_authorized})),tmsId:e.tms_id,category:e.category,metadata:{payoutId:null!=(v=null==(a=e.metadata)?void 0:a.payout_id)?v:"",userName:null!=(g=null==(r=e.metadata)?void 0:r.user_name)?g:"",actionLogs:null!=(b=null==(o=e.metadata)?void 0:o.action_logs)?b:null,actionNeeded:(null==(i=e.metadata)?void 0:i.action_needed)?{reasonCode:e.metadata.action_needed.reason_code}:void 0,idempotencyKey:null!=(h=null==(c=e.metadata)?void 0:c.idempotency_key)?h:"",senderBankCode:null!=(A=null==(u=e.metadata)?void 0:u.sender_bank_code)?A:"",beneficiaryHolder:null!=(C=null==(s=e.metadata)?void 0:s.beneficiary_holder)?C:"",payoutIdsHistory:null!=(T=null==(l=e.metadata)?void 0:l.payout_ids_history)?T:[],productReferenceId:null!=(I=null==(m=e.metadata)?void 0:m.product_reference_id)?I:"",beneficiaryBankCode:null!=(N=null==(y=e.metadata)?void 0:y.beneficiary_bank_code)?N:"",beneficiaryAccountNumber:null!=(E=null==(p=e.metadata)?void 0:p.beneficiary_account_number)?E:""},createdAt:e.created_at,completedAt:e.completed_at,referenceId:e.reference_id,originalTmsId:e.original_tms_id,transactionType:"REFUND",reason:e.reason,solution:e.solution})},f=e=>p(e)?_(e.metadata):"GLOBE"===e.transaction_type?(0,l.Y)(e.metadata):y(e),v=e=>e.reduce((e,t)=>{try{e.push(f(t))}catch(e){}return e},[])},50827:(e,t,n)=>{n.d(t,{D:()=>r,c:()=>a});let a=422003;function r(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===a}},52276:(e,t,n)=>{n.d(t,{g:()=>a});let a=e=>e},52872:(e,t,n)=>{n.d(t,{O:()=>a});let a=e=>e},55884:(e,t,n)=>{n.d(t,{j:()=>a.Yf});var a=n(82430)},59019:(e,t,n)=>{n.d(t,{Y:()=>S});var a=n(65979),r=n(31112),o=n(52872),i=n(26441),c=n(98929);let u=e=>e;var s=n(64246),l=n(88927),d=n(90333);let m={creating:"creating",checking:"checking",checklist:"checklist",forwarding:"forwarding",warning:"warning",ongoing:"ongoing",cross:"cross"},y=e=>e,p={createBankTransferDetails:e=>e,createVirtualAccountDetails:e=>e,create:e=>{let t="BANK_TRANSFER"===e.type;return{...e,getBankCode:()=>e.details.bankCode,getAccountNumber:()=>t?e.details.accountNumber:e.details.vaNumber,getAccountName:()=>t?e.details.accountHolder:e.details.customerName}}},_=e=>r.A.fromCurrencyCode(e),f=e=>a.A.fromCountryIsoCode(e),v=e=>({id:e.id,recipientId:e.recipient_id,recipientType:e.recipient_type,fullName:e.full_name,bankAccountNumber:e.bank_account_number,iban:e.iban,highestTransferAmount:e.highest_transfer_amount,recipientInstitutionName:e.recipient_institution_name,beneficiaryType:e.type}),g=e=>u({amount:e.value,currency:_(e.currency),mutable:e.mutable}),b=e=>p.createBankTransferDetails({accountHolder:e.account_holder,accountNumber:e.account_number,bankCode:e.code,uniqueCode:e.unique_code,uniqueCodeDestination:e.unique_code_destination}),h=e=>p.createVirtualAccountDetails({amountType:e.amount_type,bankCode:e.bank_code,customerName:e.customer_name,merchantId:e.merchant_id,type:e.type,vaNumber:e.va_number}),A=e=>{let t={type:"BANK_TRANSFER",amount:g(e.amount),status:e.status,details:b(e.details)};return p.create(t)},C=e=>{let t={type:"VIRTUAL_ACCOUNT",amount:g(e.amount),status:e.status,details:h(e.details)};return p.create(t)},T=e=>"BANK_TRANSFER"===e.type?A(e):C(e),I=e=>{let t={amount:e.amount,currency:_(e.currency),notes:e.notes};return"FIXED"===e.type?(0,i.z2)({...t,label:e.label}):"VARIABLE"===e.type?(0,i.BP)(t):(0,i.jV)(t)},N=e=>({pendingId:e.pending_id,destinationType:e.destination_type}),E=e=>y({timestamp:e.timestamp,icon:e.icon in m?e.icon:"checking",message:e.message,isOtgEligible:e.is_otg_eligible}),w=e=>{if(e.initial_fee&&e.final_fee){let t=(0,c.c)({amount:e.initial_fee.value,currency:_(e.initial_fee.currency),country:a.A.fromCountryIsoCode("IDN")}),n=(0,c.c)({amount:e.final_fee.value,currency:_(e.final_fee.currency),country:a.A.fromCountryIsoCode("IDN")}),r={applicationId:e.application_id,initialFee:t,finalFee:n};return s.A.createDiscount(r)}return s.A.createCashback({applicationId:e.application_id})},S=e=>{var t;let n=(0,c.c)({amount:e.source.value,currency:_(e.source.currency),country:f(e.source.country)}),a=(0,c.c)({amount:e.destination.value,currency:_(e.destination.currency),country:f(e.destination.country)}),r=(0,o.O)({value:e.exchange_rate.value,currency:_(e.exchange_rate.currency)}),u=(0,l.R)({value:e.total_payment.value,currency:_(e.total_payment.currency),uniqueCode:e.total_payment.unique_code}),s=(0,i.FJ)({total:e.fee.total,currency:_(e.fee.currency),breakdowns:(null!=(t=e.fee.breakdowns)?t:[]).map(I)}),m=e.payment_methods.map(T),y=v(e.beneficiary),p=e.histories.map(E),g=e.estimated_received_at,b=e.sla?{current:e.sla.current,previous:e.sla.previous}:void 0,h=e.further_actions?{purpose:e.further_actions.purpose,actions:e.further_actions.actions.map(e=>({type:e.type,content:e.content}))}:void 0,A=e.refund?N(e.refund):void 0,C=e.receipt_url,S=e.promo?w(e.promo):void 0;return d.A.createTransaction({id:e.id,tmsId:e.tms_id,status:e.status,totalPayment:u,paymentMethods:m,source:n,destination:a,exchangeRate:r,serviceType:e.service_type,fee:s,beneficiary:y,histories:p,isHoliday:e.is_holiday,estimatedReceivedAt:g,expiredAt:e.expired_at,createdAt:e.created_at,updatedAt:e.updated_at,sla:b,furtherAction:h,refund:A,receiptUrl:C,productType:e.product_type,promo:S})}},64246:(e,t,n)=>{n.d(t,{A:()=>r,f:()=>a});let a=e=>({...e,getDiscount:()=>{var t,n;return(null==(n=e.incentives)||null==(t=n[0])?void 0:t.benefitType)==="discount"?e.distributionAmount:0}}),r={createDiscount:e=>({type:"discount",...e}),createCashback:e=>({type:"cashback",...e})}},65979:(e,t,n)=>{n.d(t,{A:()=>
1o});var a=n(53822);let r={create:e=>e,fromCountryIsoCode:e=>{var t;return r.create({code:e,name:null!=(t=a.rX[e])?t:""})}},o=r},69009:(e,t,n)=>{n.d(t,{_:()=>eG});var a=n(50827),r=n(31105);let o=e=>(0,r.gpsHttpClient)("globe-payout/v1/beneficiaries",{method:"POST",json:e}),i=e=>e.data.id,c=e=>(0,r.gpsHttpClient)("globe-payout/v1/beneficiary-forms",{method:"POST",json:{country:e.country,currency:e.currency,beneficiary_types:e.beneficiaryTypes,service_type:e.serviceType,beneficiary_id:e.beneficiaryId,quotation_token:e.quotationToken}}),u=(e,t)=>{let n=new URLSearchParams({quotation_token:e});return t&&n.set("beneficiary_type",t),(0,r.gpsHttpClient)("globe-payout/v1/beneficiaries?".concat(n.toString()),{method:"GET"})};var s=n(30532),l=n(65979),d=n(31112);let m=e=>{var t,n,a,r,o,i,c;return(0,s.Q)({id:e.id,recipientId:e.recipient_id,recipientType:e.recipient_type,fullName:e.full_name,beneficiaryType:e.beneficiary_type,country:l.A.fromCountryIsoCode(e.country_code),currency:d.A.fromCurrencyCode(e.currency_code),serviceType:e.service_type,hasValidDocument:e.has_valid_document,numberOfSuccessfulTransfer:e.number_of_successful_transfer,highestTransferAmount:e.highest_transfer_amount,reference:e.reference,recipientInstitutionName:e.recipient_institution_name,iban:null==(t=e.metadata)?void 0:t.iban,bankAccountNumber:null==(n=e.metadata)?void 0:n.bank_account_number,msisdn:null==(a=e.metadata)?void 0:a.msisdn,metadata:{payerId:null!=(i=null==(r=e.metadata)?void 0:r.payer_id)?i:0,payerName:null!=(c=null==(o=e.metadata)?void 0:o.payer_name)?c:""}})},y=e=>m(e.data),p=e=>e.data.map(m),_=e=>(0,r.gpsHttpClient)("globe-payout/v1/beneficiaries/".concat(e),{method:"GET"}),f=e=>(0,r.gpsHttpClient)("globe-payout/v1/beneficiary-forms",{method:"POST",json:{country:e.country,currency:e.currency,beneficiary_types:e.beneficiaryTypes,service_type:e.serviceType,quotation_token:e.quotationToken}}),v=(e,t)=>(0,r.gpsHttpClient)("globe-payout/v1/beneficiary-forms",{method:"POST",json:{country:e.country,currency:e.currency,beneficiary_types:e.beneficiaryTypes,service_type:e.serviceType,quotation_token:e.quotationToken,dynamic_fields:t}});var g=n(78742),b=n(96346);let h=e=>{var t;let n=new URLSearchParams({form_name:"USA"!==e.country&&"USD"===e.currency?"globe_beneficiary_form_".concat(e.transactionType,"-").concat(e.serviceType,"-").concat(e.currency):"globe_beneficiary_form_".concat(e.transactionType,"-").concat(e.serviceType),lang:e.lang,country:e.country,international_transfer_id:(null==(t=e.transferId)?void 0:t.toString())||""}),a="".concat(g.Sn.GLOBE_ADJUSTABLE_FORM,"?").concat(n.toString());return(0,b.ok)(a)},A=e=>e,C=e=>e.data;var T=n(27112);let I=e=>e;var N=n(52872),E=n(26441),w=n(98929),S=n(77491);let D=e=>d.A.fromCurrencyCode(e),R=e=>l.A.fromCountryIsoCode(e),k=e=>{let t=D(e.currency);switch(e.type){case"FIXED":return(0,E.z2)({amount:e.amount,currency:t,label:e.label,notes:e.notes});case"VARIABLE":return(0,E.BP)({amount:e.amount,currency:t,notes:e.notes});case"STATIC":return(0,E.jV)({amount:e.amount,currency:t,notes:e.notes});default:return{type:"",amount:e.amount,currency:t}}},L=e=>{var t,n,a;let{data:r}=e;return(0,S.f)({id:null,arrivalMessage:r.arrival_message,destination:(0,w.c)({amount:r.destination.value,country:R(r.destination.country),currency:D(r.destination.currency)}),source:(0,w.c)({amount:r.source.value,country:R(r.source.country),currency:D(r.source.currency)}),downtime:r.downtime?I({type:r.downtime.type,alert:{type:r.downtime.alert.type,message:r.downtime.alert.message},popup:{title:null==(t=r.downtime.popup)?void 0:t.title,message:null==(n=r.downtime.popup)?void 0:n.message}}):void 0,estimatedReceivedAt:r.estimated_received_at,exchangeRate:(0,N.O)({currency:D(r.exchange_rate.currency),value:r.exchange_rate.value}),expiresAt:r.expired_at,fee:(0,E.FJ)({total:r.fee.total,currency:D(r.fee.currency),breakdowns:r.fee.breakdowns.map(k)}),token:r.quotation_token,availableTransactionTypes:null!=(a=r.transaction_types)?a:[],isOTGSupported:!1,minimumAmount:r.minimum_amount?parseFloat(r.minimum_amount):void 0,maximumAmount:r.maximum_amount?parseFloat(r.maximum_amount):void 0,serviceType:r.service_type})},F=(e,t,n)=>{if(!e)return[(0,E.jV)({amount:t,currency:n})];let a=[];return e.fixed_fee>0&&a.push((0,E.z2)({amount:e.fixed_fee,currency:n})),e.variable_fee>0&&a.push((0,E.BP)({amount:e.variable_fee,currency:n})),a},O=(e,t)=>{var n,a,r,o,i,c,u,s,m;let y=e[0];if(!y)throw Error("RateCalculationResponse is empty");
1let p=y.flip_arrival_time?new Date(1e3*y.flip_arrival_time).toISOString():new Date().toISOString(),_=d.A.fromCurrencyCode(y.currency_code),f=parseFloat(y.flip_transfer_fee)||0,v=F(y.dynamic_transfer_fee_breakdown,f,_),g=y.downtime?I({type:y.downtime.type.toUpperCase()||"UNPLANNED",alert:{type:(null==(a=y.downtime.note)||null==(n=a.alert)?void 0:n.type)||"warning",message:(null==(o=y.downtime.note)||null==(r=o.alert)?void 0:r.msg)||y.downtime.type||""},popup:{title:(null==(c=y.downtime.note)||null==(i=c.popup)?void 0:i.title)||"",message:(null==(s=y.downtime.note)||null==(u=s.popup)?void 0:u.content)||""}}):void 0,b=d.A.fromCurrencyCode(t.source.currency),h=l.A.fromCountryIsoCode(t.source.country),A=l.A.fromCountryIsoCode(y.country_iso_code);return(0,S.f)({token:"",id:y.quotation_id||null,source:(0,w.c)({amount:parseFloat(y.amount)||t.source.amount,currency:b,country:h}),destination:(0,w.c)({amount:parseFloat(y.beneficiary_amount)||t.destination.amount,currency:_,country:A}),exchangeRate:(0,N.O)({value:parseFloat(y.flip_exchange_rate)||0,currency:_}),fee:(0,E.FJ)({total:parseFloat(y.flip_transfer_fee)||0,currency:_,breakdowns:v}),downtime:g,expiresAt:new Date(Date.now()+864e5).toISOString(),arrivalMessage:y.arrival_message||"",estimatedReceivedAt:p,availableTransactionTypes:y.business_beneficiary_availability?["C2B","C2C"]:["C2C"],isOTGSupported:null!=(m=y.is_otg_supported)&&m,minimumAmount:y.minimum_amount?parseFloat(y.minimum_amount):void 0,maximumAmount:y.maximum_amount?parseFloat(y.maximum_amount):void 0,serviceType:t.serviceName,serviceId:t.serviceId,serviceName:t.serviceName})};var P=n(52706);let B=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e6;try{let n="".concat(g.Sn.GLOBE_TRX_CORRIDORS,"?country_code=").concat(e,"&amount=").concat(t);return await (0,b.ok)(n,{method:"GET"})||[]}catch(t){throw console.error("Failed to fetch corridors for ".concat(e,":"),t),t}},U={create:e=>e},x={create:e=>e},q=(e,t)=>{let n=[];return e.forEach(e=>{let a=e.currency_code,r=e.is_downtime?"UNAVAILABLE":"NORMAL";e.services.forEach(e=>{let o=e.is_downtime;n.push(U.create({country:l.A.fromCountryIsoCode(t),currency:d.A.fromCurrencyCode(a),status:r,service:x.create({id:e.service_id,type:e.service_name,name:e.service_name,iconURL:e.service_icon,status:o?"UNAVAILABLE":"NORMAL"})}))})}),n},M=e=>e.data.map(e=>U.create({country:l.A.fromCountryIsoCode(e.country),currency:d.A.fromCurrencyCode(e.currency),service:x.create({id:e.service_id,type:e.service_type,name:e.service_name,iconURL:e.icon,status:e.status}),status:e.status}));var H=n(43469),G=n(50793);let V=async()=>(0,G.X6)(),j=e=>({country:l.A.fromCountryIsoCode(e.code),currency:d.A.fromCurrencyCode(e.currency)}),K=e=>{var t;let n=e.data.map(e=>({title:e.title,data:e.countries.map(j)})),a=null==(t=e.data[0])?void 0:t.countries[0];return{defaultCountry:a?j(a):{country:l.A.fromCountryIsoCode("CHN"),currency:d.A.fromCurrencyCode("CNY")},sections:n}},J=e=>({country:l.A.fromCountryIsoCode(e.country_iso_code),currency:d.A.fromCurrencyCode(e.local_currency_code)}),Y=e=>{let t=e.data||[],n=[],a=[],r=[];for(let e of t)e.is_new?n.push(e):e.is_popular?a.push(e):r.push(e);let o=[...t],i=[];if(n.length>0){let e=n.sort((e,t)=>{let n=e.order-t.order;return 0!==n?n:e.country_name.localeCompare(t.country_name)});i.push({title:"New ✨",data:e.map(J)})}if(a.length>0){let e=a.sort((e,t)=>{let n=e.order-t.order;return 0!==n?n:e.country_name.localeCompare(t.country_name)});i.push({title:"Popular Countries ❤",data:e.map(J)})}if(o.length>0){let e=o.sort((e,t)=>e.country_name.localeCompare(t.country_name));i.push({title:"All Countries",data:e.map(J)})}return{defaultCountry:o.length>0?J(o[0]):{country:l.A.fromCountryIsoCode("CHN"),currency:d.A.fromCurrencyCode("CNY")},sections:i}};var X=n(51368);let z=e=>{let t=(0,X.A)();return(0,r.gpsHttpClient)("user-payment/v1/transactions/payment-methods",{method:"GET",searchParams:{transaction_type:e.transactionType,product_variant:e.productVariant,amount:e.amount},headers:{"correlation-id":t}})};var Q=n(65478);let W=e=>{let t=(0,Q.YV)(e),n="".concat(g.Sn.PAYMENT_METHODS,"?").concat(t);return(0,b.ok)(n)},Z=()=>(0,b.ok)(g.Sn.BANK_CONFIGURATIONS_LIST,{headers:{"CORRELATION-ID":(0,Q.kX)(17)}}),$=()=>(0,b.ok)("/site/v1/app-info?platform=web"),ee={createBankTransfer:e=>e,createVirtualAccount:e=>e};var et=n(36288);let en=e=>{if(!e)return!1;let[t,n]=e.split("-"),[a,r]=t.split(".").map(Number),[o,i]=n.split(".").map(Number);if(isNaN(a)||isNaN(r)||isNaN(o)||isNaN(i))return console.error("Invalid cut-off time format:",e),!1;let c=3600*a+60*r,u=3600*o+60*i,s=(Date.now()/1e3+3600*g.ax)%86400;return c>u?s>=c||s<=u:s>=c&&s<=u},ea=e=>e.is_process_during_cut_off?{status:"light-cut-off"}:{status:"hard-cut-off",cutOffTime:e.time},er=(e,t,n)=>{if(!e.is_enabled){var a;return{status:"disabled",message:null!=(a=e.disabled_message)?a:""}}return en(t.time)?ea(t):3===n?{status:"hard-disturbance"}:2===n?{status:"light-disturbance"}:void 0},eo=(e,t)=>{var n,a,r,o,i,c,u;let s=null==t||null==(n=t.data)?void 0:n.bank_details.find(t=>t.code===e),l=et.A[e];return{aliasName:null!=(r=null!=(a=null==s?void 0:s.alias)?a:null==l?void 0:l.aliasName)?r:e,officialName:null!=(i=null!=(o=null==s?void 0:s.official_name)?o:null==l?void 0:l.officialName)?i:e,icon:null!=(u=null!=(c=null==s?void 0:s.icon)?c:null==l?void 0:l.iconUrl)?u:"https://assets.flip.id/assets/bank/other-bank-icon.png"}},ei=(e,t,n)=>({bankTransfers:e.bank_transfers.map(a=>{var r,o,i,c,u;let s=null==(o=e.bank_transfer_config)||null==(r=o.banks)?void 0:r[a],l=null==(c=e.cut_off_times)||null==(i=c.banks)?void 0:i[a],d=null!=(u=null==n?void 0:n.gangguan.data_status.pending[a])?u:1,{aliasName:m,officialName:y,icon:p}=eo(a,t),_=er(null!=s?s:{is_enabled:!0,min_amount:0,max_amount:0},null!=l?l:{time:"",is_process_during_cut_off:!0,possibility_processed_instantly:!0},d);return ee.createBankTransfer({code:a,officialName:y,aliasName:m,icon:p,disturbance:null!=_?_:{status:"none"}})}),virtualAccounts:e.virtual_accounts.map(n=>{var a,r,o,i;let c=null==(r=e.virtual_account_config)||null==(a=r.banks)?void 0:a[n],u=null!=c?c:{badge_message:"",remaining_limit:0,fee:0,is_enabled:!0},{aliasName:s,officialName:l,icon:d}=eo(n,t);return ee.createVirtualAccount({code:n,officialName:l,aliasName:s,icon:d,fee:{initial:null!=(o=null==u?void 0:u.fee)?o:0,final:null!=(i=null==u?void 0:u.fee)?i:0}})}),defaultSelected:e.default_selected}),ec=e=>{if(!e.enabled){var t,n;switch(e.availability_status){case"CUTOFF":return{status:"hard-cut-off",cutOffTime:null!=(t=e.cut_off_time)?t:"",message:e.status_message};case"SEVERELY_DEGRADED":return{status:"hard-disturbance",message:e.status_message};default:return{status:"disabled",message:null!=(n=e.status_message)?n:""}}}switch(e.availability_status){case"CUTOFF_WITH_DELAY":return{status:"light-cut-off",message:e.status_message};case"DEGRADED":return{status:"light-disturbance",message:e.status_message};default:return{status:"none"}}},eu=e=>{var t;return ee.createBankTransfer({code:e.id,officialName:e.name,aliasName:e.n
1ame,icon:null!=(t=e.icon)?t:"",disturbance:ec(e),payerPayload:e.request_payer_payload})},es=e=>{var t,n,a;return ee.createVirtualAccount({code:e.id,officialName:e.name,aliasName:e.name,icon:null!=(t=e.icon)?t:"",fee:{initial:null!=(n=e.fee)?n:0,final:null!=(a=e.fee)?a:0},payerPayload:e.request_payer_payload})},el=e=>{var t,n,a,r;let o=null==e?void 0:e.data;return{bankTransfers:(null!=(n=null==o?void 0:o.bank_accounts)?n:[]).map(eu),virtualAccounts:(null!=(a=null==o?void 0:o.virtual_accounts)?a:[]).map(es),defaultSelected:null!=(r=null==o||null==(t=o.default_selected)?void 0:t.id)?r:""}};async function ed(e){return(0,r.gpsHttpClient)("promo-engine/api/v2/campaigns/apply",{method:"POST",json:{attributes:{transaction_amount:e.transactionAmount,fee:e.fee,va_fee:0,transaction_currency:"IDR",country_code:e.countryCode},campaign_id:e.campaignId,transaction_type:"flip_globe",app_version:"4.13.0",platform:"web"}})}var em=n(64246);function ey(e){return{uniqueId:e.unique_id,benefitType:e.benefit_target_type,benefitMethod:e.benefit_evaluation_method,benefitQuantity:e.benefit_quantity,maxAllowedBenefit:e.max_allowed_benefit,distributionAmount:e.distribution_amount}}let ep={source:"payment_page",transaction_type:"flip_globe",app_version:"4.13.0",platform:"web"};async function e_(e){let t=e?(0,b.uj)({...ep,transaction_amount:String(e.transactionAmount),fee:String(e.fee),country_code:e.countryCode}):"",n=await (0,r.gpsHttpClient)("promo-engine/api/v2/campaigns/discover",{method:"GET",searchParams:t});return Array.isArray(n)?n:n&&"object"==typeof n&&Array.isArray(n.data)?n.data:[]}
1function ef(e){return{uniqueId:e.unique_id,benefitType:e.benefit_target_type,benefitMethod:e.benefit_evaluation_method,benefitQuantity:e.benefit_quantity,maxAllowedBenefit:e.max_allowed_benefit,distributionAmount:e.distribution_amount}}function ev(e){return{uniqueId:e.unique_id,validTill:e.valid_till,isEligible:e.display_content.eligibility,isHidden:e.display_content.is_hidden,incentives:e.incentives.map(ef),display:{cardLogoUrl:e.display_content.header.card_logo_img_url,cardLogoIneligibleUrl:e.display_content.header.card_logo_ineligible_img_url,content:{id:{incentiveDisplayName:e.display_content.header.id.incentive_display_name,subTitle:e.display_content.header.id.sub_title},en:{incentiveDisplayName:e.display_content.header.en.incentive_display_name,subTitle:e.display_content.header.en.sub_title}}}}}let eg=async e=>(0,r.gpsHttpClient)("globe-payout/v1/transactions/cancel",{method:"PATCH",json:{id:e}}),eb=async e=>{let t=(0,X.A)();return(0,r.gpsHttpClient)("user-payment/v1/transactions/confirm",{method:"POST",json:{tms_id:e},headers:{"correlation-id":t}})};async function eh(e){return(0,r.gpsHttpClient)("globe-payout/v1/transactions",{json:e,method:"post"})}let eA=e=>{var t;let n=e.paymentMethods.map(e=>{let t="BANK_TRANSFER"===e.method.type?{type:"BANK_TRANSFER",bank_details:{code:e.method.code,unique_code_destination:e.method.uniqueCodeDestination}}:{type:"VIRTUAL_ACCOUNT",virtual_account_details:{bank_code:e.method.code,amount_type:"CLOSED",type:"STATIC"}};return{user:e.user,amount:{value:e.amount.amount,currency:e.amount.currency.code,mutable:e.amount.mutable},payment_method:t,payment_authorized:!0}}),a=null!=(t=e.additionalData)?t:void 0;return{quotation_token:e.quotation.token,beneficiary_id:e.beneficiaryId,payment_methods:n,campaign_application_id:e.campaignApplicationId,beneficiary_additional_data:a}};var eC=n(59019);let eT=e=>(0,eC.Y)(e.data),eI=e=>{let t=e=>d.A.fromCurrencyCode(e),n=e=>l.A.fromCountryIsoCode(e);return(0,S.f)({id:null,arrivalMessage:"",destination:(0,w.c)({amount:e.destination.value,country:n(e.destination.country),currency:t(e.destination.currency)}),source:(0,w.c)({amount:e.source.value,country:n(e.source.country),currency:t(e.source.currency)}),estimatedReceivedAt:e.estimated_received_at,exchangeRate:(0,N.O)({currency:t(e.exchange_rate.currency),value:e.exchange_rate.value}),expiresAt:e.expired_at,fee:(0,E.FJ)({total:e.fee.total,currency:t(e.fee.currency),breakdowns:e.fee.breakdowns.map(e=>{let n=t(e.currency);switch(e.type){case"FIXED":return(0,E.z2)({amount:e.amount,currency:n,label:e.label,notes:e.notes});case"VARIABLE":return(0,E.BP)({amount:e.amount,currency:n,notes:e.notes});case"STATIC":return(0,E.jV)({amount:e.amount,currency:n,notes:e.notes});default:return{type:"",amount:e.amount,currency:n}}})}),token:e.quotation_token,availableTransactionTypes:[],isOTGSupported:!1,serviceType:e.service_type,downtime:void 0})},eN=e=>{let{metadata:t}=e,n=eI(t.old_pricing),r=eI(t.new_pricing);return{code:a.c,oldQuotation:n,newQuotation:r}},eE=e=>(0,r.gpsHttpClient)("/web/globe-payout/v1/rfi-forms",{method:"GET",searchParams:{id:e}}),ew=e=>e.data,eS=e=>(0,r.gpsHttpClient)("globe-payout/v1/transactions/validate",{method:"POST",json:{quotation_token:e}});var eD=n(52276);let eR=e=>(0,eD.g)({exceedDailyLimit:!1,dailyLimitAmount:0,dailyCurrentAmount:0,exceedMonthlyLimit:!1,monthlyLimitAmount:0,monthlyCurrentAmount:0,exceededOngoingTransactionLimit:e.data.exceeded_ongoing_transaction_limit,maximumOngoingTransactionLimit:e.data.maximum_ongoing_transaction_limit,eddRequired:e.data.edd_required}),ek=async e=>{let t=new URLSearchParams({amount:String(e)}),n="".concat(g.Sn.GLOBE_TRX_LIMIT_AMOUNT,"?").concat(t.toString());return(0,b.ok)(n,{method:"GET"})},eL=e=>(0,eD.g)({exceedDailyLimit:e.exceed_daily_limit,dailyLimitAmount:e.daily_limit_amount,dailyCurrentAmount:e.daily_current_amount,exceedMonthlyLimit:e.exceed_monthly_limit,monthlyLimitAmount:e.monthly_limit_amount,monthlyCurrentAmount:e.monthly_current_amount}),eF=e=>(0,eC.Y)(e.data[0]),eO=e=>(0,r.gpsHttpClient)("/web/globe-payout/v1/rfi-forms",{method:"PATCH",json:e}
1),eP=async(e,t,n)=>{let a=new URLSearchParams({page:String(e),limit:String(t),product_types:"international_transfer,refund"});return(0,b.P8)("".concat("/transaction-history/v1/transactions","?").concat(a.toString()),{headers:{"content-language":"id"===n?"id-ID":"en-ID","accept-language":"id"===n?"id-ID":"en-ID"}})};var eB=n(50032);let eU=()=>(0,r.gpsHttpClient)("globe-payout/v1/me/configs",{method:"GET"}),ex=()=>(0,b.ok)("/globe/v1/user-config"),eq=e=>{let{user_status:t,latest_corridor:n}=e.data;return"active"===t&&n?{userStatus:"active",latestCorridor:{country:n.country,currency:n.currency,serviceType:n.service_type}}:{userStatus:"active"===t?"inactive":t}},eM=e=>{let t=e.outbound_user_status;return"active"===t?{userStatus:"active"}:{userStatus:"new"===t?"new":"inactive"}};var eH=n(26355);let eG={getCountryList:async()=>(0,eH.J)("country_list_via_gps")?K(await (0,H.x)()):Y(await V()),getCorridors:async(e,t)=>{try{if((0,eH.J)("corridors_via_gps",{countryCode:e})){let t=await (0,P.K)(e);return M(t)}let n=await B(e,t);return q(n,e)}catch(e){throw console.error("Failed to fetch corridors:",e),e}},calculateFx:async e=>{var t,n;let a,r,o,i;if((0,eH.J)("calculate_api",{countryCode:e.destination.country.code,currencyCode:e.destination.currency.code,serviceName:e.serviceType}))return L(await (0,T.F)({destination:{country:e.destination.country.code,currency:e.destination.currency.code,value:e.destination.amount>0?e.destination.amount:void 0},source:{country:e.source.country.code,currency:e.source.currency.code,value:e.source.amount>0?e.source.amount:void 0},service_type:e.serviceType}));let c="IDN"===e.source.country.code,u=e.source.amount>0,s=e.destination.amount>0;return!u&&s?(a=e.destination.amount,r=e.destination.currency.code,o=e.destination.country.code,i=e.source.country.code):(a=u?e.source.amount:e.destination.amount,r=c?e.destination.currency.code:e.source.currency.code,o=c?"IDN":e.source.country.code,i=c?e.destination.country.code:"IDN"),O(await (0,G.Vi)({amount:String(a),currency:r,source_country:o,destination_country:i,service_id:void 0!==e.serviceId?String(e.serviceId):"",service_name:null!=(t=e.serviceName)?t:""}),{source:{country:e.source.country.code,currency:e.source.currency.code,amount:e.source.amount},destination:{country:e.destination.country.code,currency:e.destination.currency.code,amount:e.destination.amount},serviceName:null!=(n=e.serviceName)?n:"",serviceId:e.serviceId})},createTransaction:async e=>{try{let t=await eh(eA(e));return eT(t)}catch(e){if(e.error.code===a.c)throw eN(null==e?void 0:e.error);throw e}},getTransactionByID:async e=>{try{let t=await (0,r.gpsHttpClient)("globe-payout/v1/transactions?id=".concat(e));return eF(t)}catch(e){throw console.error("Failed to fetch transaction:",e),e}},cancelTransaction:async e=>{try{await eg(e)}catch(e){throw console.error("Failed to cancel transaction:",e),e}},confirmTransaction:async e=>{try{await eb(e)}catch(e){throw console.error("Failed to confirm transaction:",e),e}},getTransactionLimit:async e=>(null==e?void 0:e.quotationToken)?eR(await eS(e.quotationToken)):eL(await ek(e.amount)),getBeneficiaries:async e=>{try{if(!e.quotationToken)throw Error("quotationToken is required for GPS beneficiary list");let t=await u(e.quotationToken,e.beneficiaryType);return p(t)}catch(e){throw console.error("Failed to fetch beneficiaries:",e),e}},getBeneficiaryById:async e=>y(await _(e)),getBeneficiaryForm:async e=>{try{let t=e.beneficiaryTypes.find(e=>"C2C"===e||"C2B"===e);if((0,eH.J)("beneficiary_form_via_gps",{countryCode:e.country,currencyCode:e.currency,serviceName:e.serviceType,transactionType:t})){let t=await f(e);return C(t)}let n=await h({...e,transactionType:t});return A(n)}catch(e){throw console.error("Failed to fetch beneficiary form:",e),e}},createBeneficiary:async e=>i(await o(e)),getAdditionalInfoForm:async e=>{try{if(!(0,eH.J)("additional_form_via_gps",{countryCode:e.country,currencyCode:e.currency,serviceName:e.serviceType}))throw Error("getAdditionalInfoForm is GPS-only — additional_form_via_gps flag must be enabled for this corridor");let t=await c(e);return C(t)}catch(e){throw console.error("Failed to fetch additional info form:",e),e}},getDynamicFormViaGPS:async(e,t)=>{try{let n=await v(e,t);return C(n)}catch(e){throw console.error("Failed to fetch dynamic beneficiary form via GPS:",e),e}},getRFIForm:async e=>ew(await eE(String(e))),submitRFIForm:async e=>{await eO(e)},getTransactionHistories:async e=>{let{page:t,limit:n,locale:a}=e,r=await eP(t,n,a);return{data:(0,eB.v)(r.data),limit:r.limit,page:r.page}},discoverPromos:async e=>(await e_(e)).map(ev),getUserConfig:async()=>(0,eH.J)("globe_configs")?eq(await eU()):eM(await ex()),applyPromo:async e=>(function(e){var t;return(0,em.f)({campaignApplicationId:e.campaign_application_id,uniqueId:null!=(t=e.campaign_id)?t:"",distributionAmount:e.distribution_amount,incentives:e.incentives.map(ey)})})(await ed(e)),getPaymentMethods:async e=>{try{if((0,eH.J)("payment_methods_via_ups")){let t=await z({amount:e.amount,productVariant:e.productType,transactionType:"GLOBE"});return el(t)}let[t,n,a]=await Promise.allSettled([W({amount:e.amount,"product-type":e.productType,service_type:e.serviceType}),Z(),$()]);if("rejected"===t.status)throw t.reason;let r=t.value,o="fulfilled"===n.status?n.value:null,i="fulfilled"===a.status?a.value:null;return ei(r,o,i)}catch(e){throw console.error("Failed to fetch payment methods:",e),e}}}},77491:(e,t,n)=>{n.d(t,{f:()=>a});let a=e=>({...e,getTotalTransaction:()=>e.source.amount+e.fee.total})},88927:(e,t,n)=>{n.d(t,{R:()=>a});let a=e=>e}
1,90333:(e,t,n)=>{n.d(t,{A:()=>a});let a={createTransaction:e=>({...e,isPending:()=>"CREATED"===e.status||"MARK_AS_CONFIRMED"===e.status||"MARK_AS_WAITING_RECEIPT"===e.status,isNeedUploadReceipt:()=>"MARK_AS_WAITING_RECEIPT"===e.status,isProcessing:()=>"IN_PROGRESS"===e.status||"HOLD"===e.status||"NEED_ACTION"===e.status||"WAITING_PARTNER_READY"===e.status,isInProcess:()=>"COMPLETED"!==e.status&&"FAILED"!==e.status&&"CANCELED"!==e.status,isOnHold:()=>"HOLD"===e.status,isTerminated:()=>"COMPLETED"===e.status||"FAILED"===e.status||"CANCELED"===e.status,isCompleted:()=>"COMPLETED"===e.status,isFailed:()=>"FAILED"===e.status,isCanceled:()=>"CANCELED"===e.status,isNeedToReviseData:()=>{var t,n;return(null==(n=e.furtherAction)||null==(t=n.actions[0])?void 0:t.type)==="revise-data"},isNeedBeneficaryClaimRequired:()=>{var t;return(null==(t=e.furtherAction)?void 0:t.purpose)==="BENEFICIARY_CLAIM_REQUIRED"},getMainPaymentMethod:()=>e.paymentMethods.find(e=>"BANK_TRANSFER"===e.type||"VIRTUAL_ACCOUNT"===e.type),getPaymentMethodByType:t=>e.paymentMethods.find(e=>e.type===t),hasBankTransfer:()=>e.paymentMethods.some(e=>"BANK_TRANSFER"===e.type),hasVirtualAccount:()=>e.paymentMethods.some(e=>"VIRTUAL_ACCOUNT"===e.type),getTotalTransaction:()=>{var t;return e.source.amount+e.fee.total+(null!=(t=e.totalPayment.uniqueCode)?t:0)}})}},98929:(e,t,n)=>{n.d(t,{c:()=>a});let a=e=>e}}]);

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.