@paypay/mini-app-js-sdk 2.37.0 → 2.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,9 +5,9 @@ export declare function checkIFrameOrigin(origin: string): boolean;
5
5
  export declare function getIconUrl(theme?: string): string;
6
6
  export declare function convertToString(str?: string): string;
7
7
  export declare function removeCookie(key: string, domain: string): void;
8
- export declare function saveRefreshToken(refreshToken: string, domain: string, isSecure: boolean): string | undefined;
8
+ export declare function saveRefreshToken(refreshToken: string, domain: string, isSecure: boolean, clientId: string): string | undefined;
9
9
  export declare function saveCodeVerifier(codeVerifier: string, domain: string, isSecure: boolean, expires: number | Date | undefined): string | undefined;
10
- export declare function getRefreshToken(): string;
10
+ export declare function getRefreshToken(clientId: string): string;
11
11
  export declare function getCodeVerifier(): string;
12
12
  export declare function exposeClientJsBridge(jsBridge: ClientJsBridge): boolean;
13
13
  export declare function consoleDebugInfo(params: unknown[]): void;
@@ -1,4 +1,4 @@
1
1
  import { InitKycPassportParams } from '../types/initKycPassport';
2
2
  import { MiniAppErrorType } from '../model/miniAppError';
3
- declare const initKycPassportError: (params: InitKycPassportParams, errorCode: MiniAppErrorType) => void;
3
+ declare const initKycPassportError: (params: InitKycPassportParams, errorCode: MiniAppErrorType, helpUrl?: string | undefined) => void;
4
4
  export { initKycPassportError };
@@ -2,6 +2,7 @@ import { ClientMessageData, SdkType } from '../types';
2
2
  export declare function getCurrentClientId(): string;
3
3
  export declare function getCurrentClientOrigin(): string;
4
4
  export declare function getCurrentClientSdkType(): SdkType | undefined;
5
+ export declare function getClientSdkTypeFallback(clientId: string): SdkType;
5
6
  export declare function isMessageAllowed(e: MessageEvent<ClientMessageData>): boolean;
6
7
  export declare function initClientState(params: {
7
8
  clientId: string;
@@ -1,2 +1,2 @@
1
1
  (function(){"use strict";try{if(typeof document!="undefined"){var p=document.createElement("style");p.appendChild(document.createTextNode(".ppmna-reset-css{all:initial}.ppmna-reset-css *{text-align:unset;color:unset;background:initial;background-color:transparent;margin:revert;padding:revert;font-weight:revert;font-style:unset;font-size:unset;-webkit-user-select:none;user-select:none;border:unset;border-radius:revert;vertical-align:unset;word-break:unset;outline:none;box-sizing:content-box}.ppmna-reset-css * img{display:inline-block}.ppmna-reset-css * input,.ppmna-reset-css * select{-webkit-user-select:auto;user-select:auto}.ppmna-reset-css * li{list-style:none}.ppmna-reset-css * :where(*:not(svg,svg *)){all:revert}.pp-smartButtonWrapper .pp-smartBtn{display:flex;align-items:center;border-radius:8px;border:none;font-size:14px;font-weight:600;line-height:22px;color:#fff;padding:0;width:100%;height:44px;margin:auto;-webkit-tap-highlight-color:transparent;text-decoration:none;box-sizing:border-box}.pp-smartButtonWrapper .pp-smartBtn.pp-sm .pp-leftSection .pp-btnContent{flex-direction:column}.pp-smartButtonWrapper .pp-smartBtn.pp-light{background:#fff;color:#242323}.pp-smartButtonWrapper .pp-smartBtn.pp-dark{background:#000}.pp-smartButtonWrapper .pp-smartBtn.pp-red{background:#ff0033}.pp-smartButtonWrapper .pp-smartBtn.pp-login{min-width:180px}.pp-smartButtonWrapper .pp-smartBtn.pp-login.pp-sm{width:180px!important}.pp-smartButtonWrapper .pp-smartBtn.pp-login.pp-light{border:1px solid #e4e4e8}.pp-smartButtonWrapper .pp-smartBtn.pp-login.pp-light .pp-userProfile{margin-right:4px}.pp-smartButtonWrapper .pp-smartBtn.pp-login .pp-leftSection .pp-btnContent{display:grid}.pp-smartButtonWrapper .pp-smartBtn.pp-pay{min-width:160px}.pp-smartButtonWrapper .pp-smartBtn.pp-pay.pp-light{border:1px solid #dddddd}.pp-smartButtonWrapper .pp-smartBtn.pp-pay.pp-light .pp-cashbackInfo{color:#ff954c;background:#fff0e5}.pp-smartButtonWrapper .pp-smartBtn.pp-pay.pp-red .pp-cashbackInfo{color:#f03}.pp-smartButtonWrapper .pp-smartBtn.pp-pay.pp-ja .pp-cashbackInfo{padding:2px 16px}.pp-smartButtonWrapper .pp-smartBtn.pp-pay.pp-sm{width:160px!important}.pp-smartButtonWrapper .pp-smartBtn.pp-pay.pp-sm.pp-cashback{height:66px;flex-direction:column;justify-content:center}.pp-smartButtonWrapper .pp-smartBtn.pp-pay.pp-sm .pp-cashbackInfo{margin:8px 0 0}.pp-smartButtonWrapper .pp-smartBtn.pp-pay .pp-leftSection .pp-img{width:24px;height:24px}.pp-smartButtonWrapper .pp-smartBtn.pp-pay.pp-shortText{font-size:16px}.pp-smartButtonWrapper .pp-smartBtn.pp-pay.pp-sm .pp-smartButtonWrapper .pp-smartBtn.pp-pay.pp-cashback .pp-leftSection .pp-btnContent,.pp-smartButtonWrapper .pp-smartBtn.pp-pay.pp-shortText .pp-leftSection .pp-btnContent{margin-left:4px}.pp-smartButtonWrapper .pp-smartBtn .pp-leftSection{display:flex;justify-content:center;align-items:center;width:100%;box-sizing:border-box;padding:0 8px}.pp-smartButtonWrapper .pp-smartBtn .pp-leftSection .pp-img{width:20px;height:20px;display:inline-block}.pp-smartButtonWrapper .pp-smartBtn .pp-leftSection .pp-btnContent{margin-left:8px}.pp-smartButtonWrapper .pp-smartBtn .pp-leftSection .pp-btnContent .pp-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pp-smartButtonWrapper .pp-smartBtn .pp-cashbackInfo{font-size:12px;color:#242323;background:#fff;line-height:14px;padding:2px 8px;border-radius:9px;margin-left:8px}.pp-smartButtonWrapper .pp-smartBtn .pp-userProfile{width:34px;height:34px;border-radius:50%;margin-right:5px}.pp-smartButtonWrapper.pp-button{padding:0;margin:0;background:none;border:none;width:100%;border-radius:8px;-webkit-tap-highlight-color:transparent;font-family:revert!important}.pp-smartButtonWrapper.pp-button *{font-family:revert!important}")),document.head.appendChild(p)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- var pp=function(){"use strict";var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,i=(t,n,s)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[n]=s,a=(e,t)=>{for(var n in t||(t={}))o.call(t,n)&&i(e,n,t[n]);if(s)for(var n of s(t))r.call(t,n)&&i(e,n,t[n]);return e},c=(e,s)=>t(e,n(s)),l=(e,t,n)=>new Promise(((s,o)=>{var r=e=>{try{a(n.next(e))}catch(t){o(t)}},i=e=>{try{a(n.throw(e))}catch(t){o(t)}},a=e=>e.done?s(e.value):Promise.resolve(e.value).then(r,i);a((n=n.apply(e,t)).next())}));function d(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)e[s]=n[s]}return e}var u=function e(t,n){function s(e,s,o){if("undefined"!=typeof document){"number"==typeof(o=d({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var r="";for(var i in o)o[i]&&(r+="; "+i,!0!==o[i]&&(r+="="+o[i].split(";")[0]));return document.cookie=e+"="+t.write(s,e)+r}}return Object.create({set:s,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],s={},o=0;o<n.length;o++){var r=n[o].split("="),i=r.slice(1).join("=");try{var a=decodeURIComponent(r[0]);if(s[a]=t.read(i,a),e===a)break}catch(c){}}return e?s[e]:s}},remove:function(e,t){s(e,"",d({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,d({},this.attributes,t))},withConverter:function(t){return e(d({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),p=(e=>(e.accessToken="ppjssdk.accessToken",e.refreshToken="ppjssdk.refreshToken",e.env="ppjssdk.env",e.deviceUUID="ppjssdk.deviceUUID",e.clientUUID="ppjssdk.clientUUID",e.lastPayment="ppjssdk.lastPayment",e.lastTopup="ppjssdk.lastTopup",e.appDetail="ppjssdk.appDetail",e.appConfig="ppjssdk.appConfig",e.userInfo="ppjssdk.userInfo",e.lastPaymentMethod="ppjssdk.lastPaymentMethod",e.lastTopupPayMethod="ppjssdk.lastTopupPayMethod",e.codeVerifier="ppjssdk.codeVerifier",e.clientOrigin="ppjssdk.clientOrigin",e.clientVersion="ppjssdk.clientVersion",e.debugMode="ppjssdk.debugMode",e.claimCouponImmediately="ppjssdk.claimCouponImmediately",e.merchant="ppjssdk.merchant",e.consumedOTT="ppjssdk.consumedOTT",e))(p||{});const g={success:"success",fail:"fail",complete:"complete"},h={init:"init",getBankInfo:"getBankInfo",showAlert:"showAlert",render:"render",makePayment:"makePayment",getUAID:"getUAID",logout:"logout",startMultiFactorAuth:"startMultiFactorAuth",verifyMultiFactorAuthResult:"verifyMultiFactorAuthResult",getPermissionStatus:"getPermissionStatus",registerKyc:"registerKyc",getKycInformation:"getKycInformation",getUserAddress:"getUserAddress",getUserLocation:"getUserLocation",getUserProfile:"getUserProfile",registerEmail:"registerEmail",showUpdateWarning:"showUpdateWarning",showErrorSheet:"showErrorSheet",getPlatformInformation:"getPlatformInformation",share:"share",getTopBarHeight:"getTopBarHeight",openWebview:"openWebview",openMap:"openMap",closeApp:"closeApp",openApp:"openApp",checkPaymentMethod:"checkPaymentMethod",getBalance:"getBalance",topup:"topup",registerPaymentFeatures:"registerPaymentFeatures",registerUserInfo:"registerUserInfo",requestInternal:"requestInternal",scanCode:"scanCode",getAuthStatus:"getAuthStatus",openMiniApp:"openMiniApp",inputAddress:"inputAddress",checkAccessToken:"checkAccessToken",getCashbackInformation:"getCashbackInformation",request:"request",getDeviceInformation:"getDeviceInformation",debug:"debug",createOrder:"createOrder",handleMessageFromNative:"handleMessageFromNative",initKycPassport:"initKycPassport",smsAuth:"smsAuth",getKycPassportInfo:"getKycPassportInfo"},m="reload",_="link",f="saveRefreshToken",v="saveCodeVerifier",y="makeVisible",E="consoleDebugInfo",S="clientPopState";var b=(e=>(e.MiniApp="MiniApp",e.SmartPayment="SmartPayment",e))(b||{});const I="_PayPayJsBridge",T=["init","openWebview","openMap","closeApp","makePayment","topup","setSessionData","getSessionData","setStorageData","getStorageData","removeStorageData","getPermissionStatus","scanCode","showAlert","showErrorSheet","getTopBarHeight","setTitle","showUpdateWarning","getPlatformInformation","openApp","share","getKycInformation","getUserLocation","checkPaymentMethod","registerKyc","startMultiFactorAuth","verifyMultiFactorAuthResult","getBankInfo","logout","getUserProfile","getBalance","getUserAddress","getUAID","copyToClipboard","registerUserInfo","setEnablePullDownRefresh","registerEmail","checkAccessToken","debug","inputAddress","getDeviceInformation","openMiniApp","request","requestInternal","registerPaymentFeatures","initKycPassport","getKycPassportInfo","shortcutExists","addShortcut","logAppsFlyerEvent","getAllUserAddresses","getUserPaymentFeatureSettings","getPaymentSettings","getTransactionInfo","getTransactions","getPayPayCardInfo","getExternalLinkageInformation","markAsReady","renderCoupons"],A=["init","createOrder","makePayment","render","logout","getAuthStatus","getUserProfile","getBalance","getUserAddress","getUAID","getCashbackInformation","renderCoupons","getLoginUrl"];function w(e){return"https://image.paypay.ne.jp/miniapps/mini-app-sdk/"+e}const k=w("icon-paypay-rec.svg"),N=w("icon-paypay-rec-white.svg");var C,P=new Uint8Array(16);function D(){if(!C&&!(C="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return C(P)}const R=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function O(e){return"string"==typeof e&&R.test(e)}for(var U=[],x=0;x<256;++x)U.push((x+256).toString(16).substr(1));function L(e,t,n){var s=(e=e||{}).random||(e.rng||D)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=s[o];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(U[e[t+0]]+U[e[t+1]]+U[e[t+2]]+U[e[t+3]]+"-"+U[e[t+4]]+U[e[t+5]]+"-"+U[e[t+6]]+U[e[t+7]]+"-"+U[e[t+8]]+U[e[t+9]]+"-"+U[e[t+10]]+U[e[t+11]]+U[e[t+12]]+U[e[t+13]]+U[e[t+14]]+U[e[t+15]]).toLowerCase();if(!O(n))throw TypeError("Stringified UUID is invalid");return n}(s)}const M=["ab.ca","ac.ac","ac.ae","ac.at","ac.be","ac.cn","ac.il","ac.in","ac.jp","ac.kr","ac.th","ac.uk","ac.sg","ad.jp","adm.br","adv.br","ah.cn","am.br","arq.br","art.br","arts.ro","asn.au","asso.fr","asso.mc","bc.ca","bio.br","biz.pl","biz.tr","bj.cn","bel.tr","br.com","cn.com","cng.br","cnt.br","co.ac","co.at","co.de","co.gl","co.hk","co.id","co.il","co.in","co.jp","co.kr","co.mg","co.ms","co.nz","co.th","cp.tz","co.uk","co.ve","co.vi","co.za","com.ag","com.ai","com.ar","com.au","com.br","com.co","com.cn","com.cy","com.de","com.do","com.ec","com.es","com.fj","com.fr","com.gl","com.gt","com.hk","com.hr","com.hu","com.kg","com.ki","com.lc","com.mg","com.mm","com.ms","com.mt","com.mu","com.mx","com.my","com.na","com.nf","com.ng","com.ni","com.pa","com.ph","com.pl","com.pt","com.qa","com.ro","com.ru","com.sb","com.sc","com.sg","com.sv","com.tr","com.tw","com.ua","com.uy","com.ve","com.vn","cq.cn","de.com","de.org","ecn.br","ed.jp","edu.au","edu.cn","edu.hk","edu.mm","edu.my","edu.pl","edu.pt","edu.qa","edu.sg","edu.tr","edu.tw","eng.br","ernet.in","esp.br","etc.br","eti.br","eu.com","eu.int","eu.lv","firm.in","firm.ro","fm.br","fot.br","fst.br","g12.br","gb.com","gb.net","gd.cn","gen.in","go.jp","go.kr","go.th","gov.au","gov.az","gov.br","gov.cn","gov.il","gov.in","gov.mm","gov.my","gov.qa","gov.sg","gov.tr","gov.tw","gov.uk","govt.nz","gr.jp","gs.cn","gv.ac","gv.at","gx.cn","gz.cn","he.cn","hi.cn","hk.cn","hl.cn","hu.com","id.au","idv.tw","in.ua","in.th","ind.br","ind.in","inf.br","info.pl","info.ro","info.tr","info.ve","iwi.nz","jl.cn","jor.br","js.cn","jus.br","k12.il","k12.tr","kr.com","lel.br","lg.jp","ln.cn","ltd.uk","mb.ca","me.uk","med.br","mi.th","mil.br","mil.uk","mo.cn","mod.uk","muni.il","nb.ca","ne.jp","ne.kr","net.ag","net.ai","net.au","net.br","net.cn","net.do","net.gl","net.hk","net.il","net.in","net.kg","net.ki","net.lc","net.mg","net.mm","net.mu","net.ni","net.nz","net.pl","net.ru","net.sb","net.sc","net.sg","net.th","net.tr","net.tw","net.uk","net.ve","nf.ca","nhs.uk","nm.cn","nm.kr","no.com","nom.br","nom.ni","nom.ro","ns.ca","nt.ca","nt.ro","ntr.br","nx.cn","odo.br","off.ai","on.ca","or.ac","or.at","or.jp","or.kr","or.th","org.ag","org.ai","org.au","org.br","org.cn","org.do","org.es","org.gl","org.hk","org.in","org.kg","org.ki","org.lc","org.mg","org.mm","org.ms","org.nf","org.ng","org.ni","org.nz","org.pl","org.ro","org.ru","org.sb","org.sc","org.sg","org.tr","org.tw","org.uk","org.ve","pe.ca","plc.uk","ppg.br","pro.br","psc.br","psi.br","qc.ca","qc.com","qh.cn","rec.br","rec.ro","res.in","sa.com","sc.cn","sch.uk","se.com","se.net","sh.cn","sk.ca","slg.br","sn.cn","store.ro","tj.cn","tm.fr","tm.mc","tm.ro","tmp.br","tur.br","tv.br","tv.tr","tw.cn","uk.com","uk.net","us.com","uy.com","vet.br","waw.pl","web.ve","www.ro","xj.cn","xz.cn","yk.ca","yn.cn","zj.cn","zlg.br"];function F(e,t){return e?function(e){const t=e.split(".");if(function(e){return/(^\s*(((\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])\.){3}(\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5]))\s*$)/.test(e)}(n=e)||function(e){return/(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$)/.test(e)}(n)||t.length<=2)return e;var n;const s=t.slice(t.length-2).join(".");return M.includes(s)&&t.length>=3?t.slice(t.length-3).join("."):t.slice(t.length-2).join(".")}(t):t}const B="2.37.0",j=new URL("https://mini-app-sdk-core.paypay.ne.jp/"),V=j.origin,q=new URL(`./iframe.html?v=${B}&rev=1b5c920`,j).href,$=new URL(`./coupon/iframe.html?v=${B}`,j).href;var Y=(e=>(e.success="SUCCESS",e.invalidUrl="INVALID_URL",e.invalidData="INVALID_DATA",e.invalidHeader="INVALID_HEADER",e.invalidMethod="INVALID_METHOD",e.invalidPath="INVALID_PATH",e.notReachable="NOT_REACHABLE",e.notAvailable="NOT_AVAILABLE",e.timeOut="TIME_OUT",e.whiteListError="NONE_WHITELIST_DOMAIN",e.statusCodeError="STATUS_CODE_ERROR",e.invalidResponse="INVALID_RESPONSE",e.noLocationPermission="NO_USER_LOCATION_PERMISSION",e.noPermissionListAvailable="NO_PERMISSION_LIST_AVAILABLE",e.other="other",e.serverError="SERVER_ERROR",e.noCameraPermission="HOST_APP_CAMERA_DENIED",e.noAlbumPermission="HOST_APP_ALBUM_DENIED",e.insufficientScope="INSUFFICIENT_SCOPE",e.userCanceled="USER_CANCELED",e.invalidJSAPIParams="INVALID_JS_API_PARAMS",e.hostAppLocationDenied="HOST_APP_LOCATION_DENIED",e.hostAppContactsDenied="HOST_APP_READING_CONTACT_DENIED",e.badRequestInsufficientParameter="BAD_REQUEST_INSUFFICIENT_PARAMETER",e.badRequest="BAD_REQUEST",e.paymentFail="PAYMENT_FAIL",e.topupFail="TOPUP_FAIL",e.topupSuccessButNotAddToBalance="TOPUP_SUCCESS_BUT_NOT_ADD_TO_BALANCE",e.userCanceledSimilarTxn="USER_CANCELED_SIMILAR_TRANSACTION",e.mapAppNotFound="MAP_APP_NOT_FOUND",e.invalidAppSchemeURL="INVALID_APP_SCHEME_URL",e.noValueFound="NO_VALUE_FOUND",e.securityNotSetup="SECURITY_NOT_SETUP",e.userDenied="USER_DENIED",e.securityTemporaryLocked="SECURITY_TEMPORARY_LOCKED",e.couldNotGenerateBarcode="COULD_NOT_GENERATE_BARCODE",e.cannotDetectAvailability="CAN_NOT_DETECT_AVAILABILITY",e.suspectedDuplicatePayment="SUSPECTED_DUPLICATE_PAYMENT",e.noSufficientFund="NO_SUFFICIENT_FUND",e.unknown="UNKNOWN",e.sdkNotInitialized="SDK_NOT_INITIALIZED",e.tokenNotFound="TOKEN_NOT_FOUND",e.tokenExpired="TOKEN_EXPIRED",e.activeRequestExists="ACTIVE_REQUEST_EXISTS",e.invalidType="INVALID_TYPE",e.sessionNotFound="SESSION_NOT_FOUND",e.cookieError="COOKIE_ERROR",e.notAuthorized="NOT_AUTHORIZED",e.permissionRequired="PERMISSION_REQUIRED",e.deeplinkUnavailable="DEEPLINK_UNAVAILABLE",e.kycIncompleted="KYC_INCOMPLETED",e.noBankAccount="NO_BANK_ACCOUNT",e.invalidPaymentIdentifier="INVALID_PAYMENT_IDENTIFIER",e.otpSendTooShort="OTP_SEND_TOO_SHORT",e.otpSendOverLimit="OTP_SEND_OVER_LIMIT",e.userVerificationFailure="USER_VERIFICATION_FAILURE",e.unacceptableOp="UNACCEPTABLE_OP",e.kycUpdateRequired="KYC_UPDATE_REQUIRED",e.notCompleted="NOT_COMPLETED",e.kycValidationInProcess="KYC_VALIDATION_IN_PROCESS",e.noLocationData="NO_LOCATION_DATA",e.functionNotFound="FUNCTION_NOT_FOUND",e.originNotAllowed="ORIGIN_NOT_ALLOWED",e.messageSendingFailed="MESSAGE_SENDING_FAILED",e.transactionNotFound="TRANSACTION_NOT_FOUND",e.unexpectedOperation="UNEXPECTED_OP",e.merchantTimeout="MERCHANT_TIMEOUT",e.rateLimitExceeded="RATE_LIMIT_EXCEEDED",e.sdkUpgradeRequired="SDK_UPGRADE_REQUIRED",e))(Y||{});const H=Object.prototype.toString;function W(e){return function(e,t){return H.call(e)===`[object ${t}]`}(e,"Object")}function K(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function z(e){return e&&e.Math==Math?e:void 0}const G="object"==typeof globalThis&&z(globalThis)||"object"==typeof window&&z(window)||"object"==typeof self&&z(self)||"object"==typeof global&&z(global)||function(){return this}()||{};function J(e,t,n){const s=n||G,o=s.__SENTRY__=s.__SENTRY__||{};return o[e]||(o[e]=t())}const Q=["debug","info","warn","error","log","assert","trace"],X={};function Z(e){if(!("console"in G))return e();const t=G.console,n={},s=Object.keys(X);s.forEach((e=>{const s=X[e];n[e]=t[e],t[e]=s}));try{return e()}finally{s.forEach((e=>{t[e]=n[e]}))}}const ee=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?Q.forEach((n=>{t[n]=(...t)=>{e&&Z((()=>{G.console[n](`Sentry Logger [${n}]:`,...t)}))}})):Q.forEach((e=>{t[e]=()=>{}})),t}();function te(e){return ne(e,new Map)}function ne(e,t){if(W(e)){const n=t.get(e);if(void 0!==n)return n;const s={};t.set(e,s);for(const o of Object.keys(e))void 0!==e[o]&&(s[o]=ne(e[o],t));return s}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const s=[];return t.set(e,s),e.forEach((e=>{s.push(ne(e,t))})),s}return e}function se(){const e=G,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>t.getRandomValues(new Uint8Array(1))[0])}catch(s){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}var oe;!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(oe||(oe={}));class re{constructor(e){re.prototype.__init.call(this),re.prototype.__init2.call(this),re.prototype.__init3.call(this),re.prototype.__init4.call(this),this._state=oe.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}then(e,t){return new re(((n,s)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(o){s(o)}else n(t)},e=>{if(t)try{n(t(e))}catch(o){s(o)}else s(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new re(((t,n)=>{let s,o;return this.then((t=>{o=!1,s=t,e&&e()}),(t=>{o=!0,s=t,e&&e()})).then((()=>{o?n(s):t(s)}))}))}__init(){this._resolve=e=>{this._setResult(oe.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(oe.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===oe.PENDING&&(K(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===oe.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===oe.RESOLVED&&e[1](this._value),this._state===oe.REJECTED&&e[2](this._value),e[0]=!0)}))}}}const ie=G,ae={nowSeconds:()=>Date.now()/1e3};const ce="undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__||"[object process]"!==Object.prototype.toString.call("undefined"!=typeof process?process:0)?function(){const{performance:e}=ie;if(!e||!e.now)return;return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}():function(){try{return(e=module,t="perf_hooks",e.require(t)).performance}catch(n){return}var e,t}(),le=void 0===ce?ae:{nowSeconds:()=>(ce.timeOrigin+ce.now())/1e3},de=ae.nowSeconds.bind(ae),ue=le.nowSeconds.bind(le);(()=>{const{performance:e}=ie;if(!e||!e.now)return;const t=36e5,n=e.now(),s=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-s):t,r=o<t,i=e.timing&&e.timing.navigationStart,a="number"==typeof i?Math.abs(i+n-s):t;(r||a<t)&&(o<=a&&e.timeOrigin)})();const pe="production";function ge(e,t,n,s=0){return new re(((o,r)=>{const i=e[s];if(null===t||"function"!=typeof i)o(t);else{const c=i(a({},t),n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.id&&null===c&&ee.log(`Event processor "${i.id}" dropped event`),K(c)?c.then((t=>ge(e,t,n,s+1).then(o))).then(null,r):ge(e,c,n,s+1).then(o).then(null,r)}}))}function he(e){const t=ue(),n={sid:se(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return te({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&me(n,e),n}function me(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||ue(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:se()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}class _e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=fe()}static clone(e){const t=new _e;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags=a({},e._tags),t._extra=a({},e._extra),t._contexts=a({},e._contexts),t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata=a({},e._sdkProcessingMetadata),t._propagationContext=a({},e._propagationContext)),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&me(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags=a(a({},this._tags),e),this._notifyScopeListeners(),this}setTag(e,t){return this._tags=c(a({},this._tags),{[e]:t}),this._notifyScopeListeners(),this}setExtras(e){return this._extra=a(a({},this._extra),e),this._notifyScopeListeners(),this}setExtra(e,t){return this._extra=c(a({},this._extra),{[e]:t}),this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){const t=e(this);return t instanceof _e?t:this}return e instanceof _e?(this._tags=a(a({},this._tags),e._tags),this._extra=a(a({},this._extra),e._extra),this._contexts=a(a({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession),e._propagationContext&&(this._propagationContext=e._propagationContext)):W(e)&&(this._tags=a(a({},this._tags),e.tags),this._extra=a(a({},this._extra),e.extra),this._contexts=a(a({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=fe(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const s=a({timestamp:de()},e),o=this._breadcrumbs;return o.push(s),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={},n){if(this._extra&&Object.keys(this._extra).length&&(e.extra=a(a({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=a(a({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=a(a({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=a(a({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=a({trace:this._span.getTraceContext()},e.contexts);const t=this._span.transaction;if(t){e.sdkProcessingMetadata=a({dynamicSamplingContext:t.getDynamicSamplingContext()},e.sdkProcessingMetadata);const n=t.name;n&&(e.tags=a({transaction:n},e.tags))}}this._applyFingerprint(e);const s=this._getBreadcrumbs(),o=[...e.breadcrumbs||[],...s];return e.breadcrumbs=o.length>0?o:void 0,e.sdkProcessingMetadata=c(a(a({},e.sdkProcessingMetadata),this._sdkProcessingMetadata),{propagationContext:this._propagationContext}),ge([...n||[],...J("globalEventProcessors",(()=>[])),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=a(a({},this._sdkProcessingMetadata),e),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){var t;e.fingerprint=e.fingerprint?(t=e.fingerprint,Array.isArray(t)?t:[t]):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function fe(){return{traceId:se(),spanId:se().substring(16)}}const ve=4,ye=100;class Ee{constructor(e,t=new _e,n=ve){this._version=n,this._stack=[{scope:t}],e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=_e.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){const t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:se(),s=new Error("Sentry syntheticException");return this._withClient(((o,r)=>{o.captureException(e,c(a({originalException:e,syntheticException:s},t),{event_id:n}),r)})),n}captureMessage(e,t,n){const s=this._lastEventId=n&&n.event_id?n.event_id:se(),o=new Error(e);return this._withClient(((r,i)=>{r.captureMessage(e,t,c(a({originalException:e,syntheticException:o},n),{event_id:s}),i)})),s}captureEvent(e,t){const n=t&&t.event_id?t.event_id:se();return e.type||(this._lastEventId=n),this._withClient(((s,o)=>{s.captureEvent(e,c(a({},t),{event_id:n}),o)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:s}=this.getStackTop();if(!s)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:r=ye}=s.getOptions&&s.getOptions()||{};if(r<=0)return;const i=de(),c=a({timestamp:i},e),l=o?Z((()=>o(c,t))):c;null!==l&&(s.emit&&s.emit("beforeAddBreadcrumb",l,t),n.addBreadcrumb(l,r))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=be(this);try{e(this)}finally{be(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(n){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ee.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&!n){this.getClient()?console.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):console.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),me(e,n)}(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:s,environment:o=pe}=n&&n.getOptions()||{},{userAgent:r}=G.navigator||{},i=he(a(a({release:s,environment:o,user:t.getUser()},r&&{userAgent:r}),e)),c=t.getSession&&t.getSession();return c&&"ok"===c.status&&me(c,{status:"exited"}),this.endSession(),t.setSession(i),i}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){const n=Se().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ee.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function Se(){return G.__SENTRY__=G.__SENTRY__||{extensions:{},hub:void 0},G}function be(e){const t=Se(),n=Te(t);return Ae(t,e),n}function Ie(){const e=Se();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=Se()){t=e,t&&t.__SENTRY__&&t.__SENTRY__.hub&&!Te(e).isOlderThan(ve)||Ae(e,new Ee);var t;return Te(e)}(e)}function Te(e){return J("hub",(()=>new Ee),e)}function Ae(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}const we=[Y.sdkNotInitialized,Y.notAuthorized,Y.userCanceled,Y.userCanceledSimilarTxn,Y.suspectedDuplicatePayment,Y.noSufficientFund];function ke(e,t,n){we.includes(n)||function(e,t){const n="string"==typeof t?t:void 0,s="string"!=typeof t?{captureContext:t}:void 0;Ie().captureMessage(e,n,s)}(`windowBridge.${e} failed. client: unknown, error: ${n}, message: ${t}`,"log")}function Ne(e){!function(e){Ie().addBreadcrumb(e)}(e)}let Ce="";const Pe="ppjssdk.initializedAt";const De=new class{constructor(){this.useLocalStorage=!0,this.memoryStorage={};try{localStorage.setItem(Pe,Date.now().toString())}catch(e){this.useLocalStorage=!1}}getItem(e){var t;if(this.useLocalStorage)try{if(null!=localStorage.getItem(Pe))return localStorage.getItem(e);console.debug("local storage value has lost unexpectedly."),Ne({message:"local storage value has lost unexpectedly.",category:"storage"})}catch(n){}return this.useLocalStorage=!1,null!=(t=this.memoryStorage[e])?t:null}setItem(e,t){if(this.memoryStorage[e]=t,this.useLocalStorage)try{localStorage.setItem(e,t)}catch(n){this.useLocalStorage=!1,console.warn("localStorage has become unavailable.")}}removeItem(e){delete this.memoryStorage[e];try{localStorage.removeItem(e)}catch(t){this.useLocalStorage=!1}}clear(){try{localStorage.clear(),localStorage.setItem(Pe,Date.now().toString())}catch(e){}this.memoryStorage={}}};function Re(e,t){return`${e}.${null!=t?t:Ce}`}function Oe(e,t){if(function(e){De.removeItem(e)}(e),t)return De.setItem(e,t)}function Ue(){let e=De.getItem(Re(p.clientUUID))||"";return O(e)||(e=L(),function(e){Oe(Re(p.clientUUID),e)}(e)),e}function xe(e){const t=De.getItem(Re(p.appDetail,e));return null==t?null:JSON.parse(t)}let Le=null,Me=[];function Fe(e){const t=function(){var e,t,n,s;let o=null;const r=navigator.userAgent.split(" PayPayMiniApp/");if(r.length>1){const i=null!=(e=r[1].split(" ")[0])?e:null;o=i?i.split("-")[0]:o,o=null!=(s=null==(n=null==(t=null==o?void 0:o.split("."))?void 0:t.slice(0,3))?void 0:n.join("."))?s:null}return o}();return!!t&&(e===t||function(e,t){const[n,s,o]=e.split(".").map((e=>Number.parseInt(e))),[r,i,a]=t.split(".").map((e=>Number.parseInt(e)));return n!==r?n>r:s!==i?s>i:o>a}(t,e))}function Be(){return Math.random().toString(36).substring(7)}function je(e){return e===V}function Ve(e){return e?String(e):""}function qe(e,t){u.remove(e),u.remove(e,{domain:t})}function $e(e){return T.includes(e)}function Ye(e){return A.includes(e)}Be(),document.addEventListener("visibilitychange",(()=>{"hidden"===document.visibilityState&&Me.length>0&&(Le&&clearTimeout(Le),function(){var e;const t=Me;Me=[],Le=null,navigator.sendBeacon("https://www.google-analytics.com/mp/collect?api_secret=fgPKRkdQQvq7XbV4qw3MOQ&measurement_id=G-M64Q2828RR",JSON.stringify({client_id:Ue(),events:t,user_id:null==(e=xe())?void 0:e.externalUserId}))}())})),Y.notAuthorized,Y.badRequest,Y.badRequestInsufficientParameter,Y.insufficientScope,Y.insufficientScope;let He=[];function We(e){He=He.filter((t=>t!==e))}function Ke(){const e=Be();return He.push(e),e}function ze(e,t,n,s){return function(o={}){const r=n(),i=null==s?void 0:s(o);r.logEvent(a({event_action:`pp_${e}_called`,event_category_suffix:e},i)),t(o).then((t=>{var n;r.logEvent(a({event_action:`pp_${e}_success`,event_category_suffix:e},i)),null==(n=o.success)||n.call(o,t)})).catch((t=>{var n;console.error(t.message),r.logEvent(a({event_action:`pp_${e}_fail`,event_category_suffix:e,error_value:t.errorCode},i)),null==(n=o.fail)||n.call(o,{errorCode:t.errorCode})})).finally((()=>{var e;null==(e=o.complete)||e.call(o)}))}}var Ge=(e=>(e.validToken="TOKEN_VALID",e.initialized="INITIALIZED",e.emailRegistered="EMAIL_REGISTERED",e.emailNotVerified="EMAIL_NOT_VERIFIED",e.success="SUCCESS",e.loggedOut="LOGGED_OUT",e.connected="CONNECTED",e))(Ge||{});class Je extends Error{constructor(e,t){super(e),this.errorCode=t}}class Qe{constructor(e,t){this.deferredCallbacks={},this.functions=e,this.allowedOrigins=t,this.messageEventHandler=this.messageEventHandler.bind(this),this.subscribeToMessageEvent()}subscribeToMessageEvent(){window.addEventListener("message",this.messageEventHandler)}unsubscribeToMessageEvent(){window.removeEventListener("message",this.messageEventHandler)}messageEventHandler(e){var t;if(null==(t=e.data)?void 0:t.forWindowBridge)return this.allowedOrigins&&!this.allowedOrigins.includes(e.origin)?this.sendErrorResponse(e,`${e.origin} is not allowed to make requests`,Y.originNotAllowed):void("request"===e.data.type?this.handleRequest(e):"response"===e.data.type&&this.handleResponse(e))}handleRequest(e){return l(this,null,(function*(){const t=e.data.functionName,n=this.functions[t];n||this.sendErrorResponse(e,`Function '${t}' does not exists on the target window`,Y.functionNotFound);try{this.sendSuccessResponse(e,yield n(...e.data.params))}catch(s){let t="Some error ocurred while processing the request",n=Y.unknown;s instanceof Je&&(t=s.message,n=s.errorCode),this.sendErrorResponse(e,t,n)}}))}handleResponse(e){if(!this.deferredCallbacks[e.data.key])return void console.warn(`Callback for ${e.data.functionName} not found`);const[t,n]=this.deferredCallbacks[e.data.key];delete this.deferredCallbacks[e.data.key],"success"===e.data.status?t(e.data.result):n(new Je(e.data.message,e.data.errorCode))}sendErrorResponse(e,t,n){ke(e.data.functionName,t,n),this.sendResponse(e,{status:"failure",message:t,errorCode:n})}sendSuccessResponse(e,t){this.sendResponse(e,{status:"success",result:t})}sendResponse(e,t){var n;null==(n=e.source)||n.postMessage(a({forWindowBridge:!0,type:"response",key:e.data.key,functionName:e.data.functionName},t),e.origin)}static init(e,t){if(this._instance)throw new Error("WindowBridge already initialized, you can't call WindowBridge.init more than once");return this._instance=new this(e,t),this._instance}static destroy(){this._instance&&(this._instance.unsubscribeToMessageEvent(),this._instance=void 0)}static getBridge(){if(!this._instance)throw new Error("WindowBridge not initialized, please call WindowBridge.init before calling WindowBridge.getBridge");return this._instance}static getTargetWindowFunctionProxy(e,t){return Qe.getBridge().getTargetWindowFunctionProxy(e,t)}getTargetWindowFunctionProxy(e,t){return new Proxy(this,{get(n,s){return(...o)=>new Promise(((r,i)=>l(this,null,(function*(){const a=s.toString(),c=`${a}--${Be()}`;try{const s=yield e();if(!s)throw new Error("Target window is undefined");n.deferredCallbacks[c]=[r,i],s.postMessage({forWindowBridge:!0,type:"request",functionName:a,key:c,params:JSON.parse(JSON.stringify(o))},t)}catch(l){delete n.deferredCallbacks[c],i(new Je(l.message,Y.messageSendingFailed))}}))))}})}}const Xe="4.47.0",Ze="ppmna-iframe",et="ppsdk-container";let tt,nt;function st(){return tt||(tt=function(){if(document.getElementById(Ze))return;const e=document.createElement("div");return document.createElement("div"),e.setAttribute("id",et),e.setAttribute("class",et),e.style.all="initial",e.style.display="none",e.style.position="fixed",e.style.width="100%",e.style.height="100%",e.style.top="0",e.style.left="0",e.style.zIndex="2147483637",document.body.appendChild(e),e}()),tt}function ot(e){const t=st();t&&(t.style.display=e?"initial":"none")}function rt(){return nt||(nt=new Promise(((e,t)=>{function n(){const n=document.createElement("iframe");n.setAttribute("src",q),n.setAttribute("name",Ze),n.setAttribute("id",Ze),n.setAttribute("class",Ze),n.setAttribute("allow","geolocation"),n.onload=()=>{e(n)},n.onerror=t,n.style.all="initial",n.style.width="100%",n.style.height="100%",n.style.border="none";const s=st();s&&(s.innerHTML="",s.append(n))}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",(()=>{n()})):n()}))),nt}let it,at,ct=!1;Qe.init({}),rt(),at=Promise.resolve(!1);const lt=Qe.getTargetWindowFunctionProxy((function(){return rt().then((e=>null==e?void 0:e.contentWindow)).catch((()=>null))}),V);function dt(){return lt}function ut(e){const t=new URL(window.location.href),n=t.searchParams.get("token"),s=t.searchParams.get("one_time_token"),o=u.get(p.refreshToken)||"",r=u.get(p.codeVerifier)||"";ct=!!e.useAllFunctions,(n||s)&&function(e){e.searchParams.delete("token"),e.searchParams.delete("one_time_token"),e.search=e.searchParams.toString();const t=e.toString().replace(e.origin,"");history.replaceState(null,"",t)}(t);const i={env:e.env,mode:e.mode,debugMode:e.debugMode,clientId:e.clientId,token:n,ott:s,refreshToken:o,clientVersion:"2.37.0",codeVerifier:r,clientSdkType:it};let l;const d=new Promise((e=>l=e)),g=()=>{var t;l(!0),null==(t=e.complete)||t.call(e)};at.then((()=>rt())).then((()=>{vt(h.init,!1,c(a({},e),{complete:g}),i)})).catch((()=>{var t;null==(t=e.fail)||t.call(e,{errorCode:Y.sdkNotInitialized}),g()})),at=d}addEventListener("message",(e=>{var t;if(!(null==(t=e.data)?void 0:t.forWindowBridge)&&je(e.origin))if(e.data.name===m&&window.location.reload(),e.data.name!==y){if(e.data.name===_){const t=e.data.data;"_blank"===t.target?window.open(t.url,"_blank"):window.location.href=t.url}if(e.data.name===f){const{refreshToken:t,domain:n,isSecure:s}=e.data.data;!function(e,t,n){qe(p.refreshToken,t),u.set(p.refreshToken,e,{domain:t,expires:90,secure:n})}(t,n,s)}if(e.data.name===v){const{codeVerifier:t,domain:n,isSecure:s,expires:o}=e.data.data;!function(e,t,n,s){qe(p.codeVerifier,t),u.set(p.codeVerifier,e,{domain:t,secure:n,expires:s})}(t,n,s,o)}if(e.data.name===E){const{params:t}=e.data.data;!function(e){console.debug(...e)}(t)}}else ot(!0)})),addEventListener("popstate",(()=>{rt().then((e=>{var t;const n={name:S};null==(t=null==e?void 0:e.contentWindow)||t.postMessage(n,V)})).catch((e=>console.warn(e)))}));const pt=ze("renderCoupons",(e=>l(this,null,(function*(){const{merchant:t,couponId:n,containerId:s,postLoginRedirectUrl:o=window.location.href,postLoginRedirectType:r,locale:i}=e,a=document.getElementById(s);if(!a)throw new Je("Invalid coupon container Id",Y.badRequestInsufficientParameter);const c=yield lt.fetchCoupons({merchantId:t,couponId:n,postLoginRedirectUrl:o,postLoginRedirectType:r});try{const e=document.createElement("iframe");e.src=$,e.style.cssText="width:100%;height: 0;border: none;transition: height 300ms ease-in;display: block;",yield new Promise(((t,n)=>{e.onload=()=>t(!0),e.onerror=()=>n(!1),a.innerHTML="",a.append(e)})),e.onload=null,e.onerror=null,window.addEventListener("message",(({data:t,source:n})=>{"update-iframe-height"===(null==t?void 0:t.eventName)&&e.contentWindow===n&&(e.style.height=`${t.height}px`)}));const n=Qe.getTargetWindowFunctionProxy((()=>e.contentWindow),V);yield n.renderCoupons({coupons:c,merchantId:t,locale:i,postLoginRedirectUrl:o,postLoginRedirectType:r})}catch(l){throw new Je(`An error ocurred while displaying coupons, merchantId=${t}, couponId=${n}, error=${l}`,Y.unknown)}}))),dt,(e=>({event_label2:e.couponId,merchant_id:e.merchant})));const gt=ze("logout",(()=>l(this,null,(function*(){try{const e=F(yield lt.logout(),window.location.hostname);return qe(p.refreshToken,e),qe(p.codeVerifier,e),{statusCode:Ge.loggedOut}}catch(e){throw new Je(`An error ocurred while trying to logout the user, error=${e}`,Y.unknown)}}))),dt),ht=ze("getPaymentSettings",lt.getPaymentSettings,dt),mt=ze("getLoginUrl",(e=>lt.getLoginUrl({redirectUrl:e.redirectUrl||location.href,redirectType:e.redirectType})),dt);function _t(e,t,n){var s,o,r;e.result===g.fail&&(null==(s=null==t?void 0:t.fail)||s.call(t,e.data)),e.result===g.success&&(null==(o=null==t?void 0:t.success)||o.call(t,null==e?void 0:e.data)),e.result===g.complete&&(null==(r=null==t?void 0:t.complete)||r.call(t),removeEventListener("message",n),We(e.messageId),He.length>0||ot(!1))}function ft(e){return l(this,null,(function*(){var t;const n=yield rt().catch((()=>{}));null==(t=null==n?void 0:n.contentWindow)||t.postMessage(JSON.parse(JSON.stringify(e)),V)}))}function vt(e,t,n,s){const o=Ke();t&&ot(!0);const r=t=>{je(t.origin)&&t.data.name===e&&t.data.messageId===o&&_t(t.data,n,r)};addEventListener("message",r),ft({name:e,params:s,messageId:o})}const yt=ze("markAsReady",(()=>l(this,null,(function*(){Fe(Xe)&&(window.location.href="paypay://miniappPerformance/ready"),yield lt.markAsReady()}))),dt);var Et;Et={_handleMessageFromNative:e=>{rt().then((t=>{var n;null==(n=null==t?void 0:t.contentWindow)||n.postMessage(JSON.parse(JSON.stringify({name:h.handleMessageFromNative,params:{json:e}})),V)}))}},(!window.hasOwnProperty(I)||window[I]!==Et)&&(window[I]=Et);const St={init:ut,verifyMultiFactorAuthResult:function(e){const t=new URL(window.location.href);vt(h.verifyMultiFactorAuthResult,!1,e,c(a({},e),{sessionId:t.searchParams.get("ppSessionId")}))},share:function(e){if(!(null==navigator?void 0:navigator.share))return void vt(h.share,!1,e,e);const t={text:null==e?void 0:e.text};navigator.share(t).then((()=>{var t,n;null==(t=null==e?void 0:e.success)||t.call(e),null==(n=null==e?void 0:e.complete)||n.call(e)})).catch((()=>{var t,n;null==(t=null==e?void 0:e.fail)||t.call(e,{errorCode:Y.unknown}),null==(n=null==e?void 0:e.complete)||n.call(e)}))},setTitle:function(e){var t,n;document.title=(null==e?void 0:e.title)||"",null==(t=null==e?void 0:e.success)||t.call(e),null==(n=null==e?void 0:e.complete)||n.call(e)},render:function(e){var t;if(!(null==e?void 0:e.containerId)||!document.getElementById(null==e?void 0:e.containerId))return null==(t=null==e?void 0:e.fail)||t.call(e,{errorCode:Y.badRequestInsufficientParameter}),console.error("Invalid container Id");const n=Ke(),s=t=>{var o,r,i;if(!je(t.origin)||t.data.name!==h.render||t.data.messageId!==n)return;const c=null==(o=t.data)?void 0:o.data,l=null==(r=t.data)?void 0:r.data;t.data.result===g.success&&(!function(e,t){var n,s,o,r,i,c,l;const d=document.getElementById(t.containerId),u=document.createElement("button");u.className="ppmna-reset-css pp-smartButtonWrapper pp-button";const p=function(e){return"red"===e?N:k}(null==t?void 0:t.theme),g=(null==(s=null==(n=null==e?void 0:e.data)?void 0:n.cashbackInfo)?void 0:s.length)?"pp-cashback":"",m=t.isShortText?"pp-shortText":"",_=null!=(o=null==t?void 0:t.buttonSize)?o:"lg",f=null!=(r=null==t?void 0:t.theme)?r:"light",v=document.createElement("a");v.className=`pp-smartBtn pp-${f} pp-${_} pp-${Ve(t.type)} pp-${e.preferredLanguage} ${g} ${m}`,v.href=Ve(e.data.loginUrl);const y=document.createElement("span");y.className="pp-leftSection";const E=document.createElement("img");E.className="pp-img",E.src=p,E.alt="",y.appendChild(E);const S=document.createElement("span");S.className="pp-btnContent";const b=document.createElement("span");b.className="pp-title",b.innerText=null==(i=null==e?void 0:e.data)?void 0:i.title,S.appendChild(b),y.appendChild(S),v.append(y);const I=document.createElement("span");(null==(c=null==e?void 0:e.data)?void 0:c.cashbackInfo)&&(I.className="pp-cashbackInfo",I.innerText=null==(l=null==e?void 0:e.data)?void 0:l.cashbackInfo,S.append(I));if(e.data.avatarUrl){const t=document.createElement("img");t.className="pp-userProfile",t.src=e.data.avatarUrl,t.addEventListener("error",(function(e){var t;const n=e.target;null==(t=null==n?void 0:n.parentNode)||t.removeChild(n)})),v.append(t)}u.append(v),d&&(d.innerHTML="",d.appendChild(u),"pay"===t.type&&(null==e?void 0:e.isLoggedIn)&&u.addEventListener("click",(e=>{var n;e.preventDefault(),(null==t?void 0:t.callback)?null==(n=null==t?void 0:t.callback)||n.call(t):t.orderInfo&&vt(h.makePayment,!0,t,a({},t.orderInfo))})))}(l,e),"pay"===c.type&&(null==l?void 0:l.isJustLoggedIn)&&e.autoInvoke&&(null==l?void 0:l.isLoggedIn)&&vt(h.makePayment,!0,e,a({},e.orderInfo))),t.data.result===g.fail&&(null==(i=null==e?void 0:e.fail)||i.call(e,t.data.data)),t.data.result===g.complete&&(We(t.data.messageId),removeEventListener("message",s))};addEventListener("message",s),ft({name:h.render,params:c(a({},e),{redirectUrl:e.redirectUrl||window.location.href}),messageId:n})},renderCoupons:pt,scanCode:function(e){var t;const n=c(a({},e),{redirectUrlOnCancel:null!=(t=null==e?void 0:e.redirectUrlOnCancel)?t:window.location.href});vt(h.scanCode,!1,e,n)},copyToClipboard:function(e){var t,n,s;const o=document.createElement("textarea");o.setAttribute("readonly","true"),o.setAttribute("contenteditable","true"),o.value=e.value,document.body.appendChild(o),o.select(),o.setSelectionRange(0,o.value.length);const r=document.execCommand("copy");document.body.removeChild(o),r?null==(t=null==e?void 0:e.success)||t.call(e):null==(n=null==e?void 0:e.fail)||n.call(e,{errorCode:Y.other}),null==(s=e.complete)||s.call(e)},getSessionData:function(e){var t,n;const s=sessionStorage.getItem(null==e?void 0:e.key);null==(t=null==e?void 0:e.success)||t.call(e,{[null==e?void 0:e.key]:null!=s?s:""}),null==(n=null==e?void 0:e.complete)||n.call(e)},setSessionData:function(e){var t,n,s;sessionStorage.setItem(null==e?void 0:e.key,null!=(t=null==e?void 0:e.value)?t:""),null==(n=null==e?void 0:e.success)||n.call(e),null==(s=null==e?void 0:e.complete)||s.call(e)},getStorageData:function(e){var t,n;const s=localStorage.getItem(null==e?void 0:e.key);null==(t=null==e?void 0:e.success)||t.call(e,{[null==e?void 0:e.key]:null!=s?s:""}),null==(n=null==e?void 0:e.complete)||n.call(e)},setStorageData:function(e){var t,n,s;localStorage.setItem(null==e?void 0:e.key,null!=(t=null==e?void 0:e.value)?t:""),null==(n=null==e?void 0:e.success)||n.call(e),null==(s=null==e?void 0:e.complete)||s.call(e)},removeStorageData:function(e){var t,n;localStorage.removeItem(null==e?void 0:e.key),null==(t=null==e?void 0:e.success)||t.call(e),null==(n=null==e?void 0:e.complete)||n.call(e)},getKycPassportInfo:function(e){const t=window.location.href;vt(h.getKycPassportInfo,!1,e,c(a({},e),{url:t}))},logout:gt,getPaymentSettings:ht,getLoginUrl:mt,markAsReady:yt},bt=["init","setTitle","copyToClipboard","getSessionData","setSessionData","getStorageData","setStorageData","removeStorageData","getLoginUrl"],It=["renderCoupons"];const Tt={version:"2.37.0",revision:"1b5c920"};return function({sdkType:e}){it=e;const t=e===b.MiniApp?$e:Ye,n=new Proxy(St,{get(n,s){if(s in Tt)return Tt[s];const o=s;if(!ct&&!t(o))throw new Error(`${o} is not supported by ${e} JS SDK`);return e=>l(this,null,(function*(){var t,r;if(!bt.includes(o)&&!(yield at)){if(!It.includes(o)||!e.clientId)return null==(t=e.fail)||t.call(e,{errorCode:Y.sdkNotInitialized}),void(null==(r=e.complete)||r.call(e));ut({clientId:e.clientId,env:e.env}),yield at}if(Object.prototype.hasOwnProperty.call(n,o))return n[o](e);vt(s,!1,e,e)}))}});return window._pp=n,function(e){const t=window._ppcs;if(t){window._ppcs=void 0;for(const[n,s]of t)e[n](s)}}(n),n}({sdkType:b.MiniApp})}();
2
+ var pp=function(){"use strict";var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,i=(t,n,s)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[n]=s,a=(e,t)=>{for(var n in t||(t={}))o.call(t,n)&&i(e,n,t[n]);if(s)for(var n of s(t))r.call(t,n)&&i(e,n,t[n]);return e},c=(e,s)=>t(e,n(s)),l=(e,t,n)=>new Promise(((s,o)=>{var r=e=>{try{a(n.next(e))}catch(t){o(t)}},i=e=>{try{a(n.throw(e))}catch(t){o(t)}},a=e=>e.done?s(e.value):Promise.resolve(e.value).then(r,i);a((n=n.apply(e,t)).next())}));function d(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)e[s]=n[s]}return e}var u=function e(t,n){function s(e,s,o){if("undefined"!=typeof document){"number"==typeof(o=d({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var r="";for(var i in o)o[i]&&(r+="; "+i,!0!==o[i]&&(r+="="+o[i].split(";")[0]));return document.cookie=e+"="+t.write(s,e)+r}}return Object.create({set:s,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],s={},o=0;o<n.length;o++){var r=n[o].split("="),i=r.slice(1).join("=");try{var a=decodeURIComponent(r[0]);if(s[a]=t.read(i,a),e===a)break}catch(c){}}return e?s[e]:s}},remove:function(e,t){s(e,"",d({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,d({},this.attributes,t))},withConverter:function(t){return e(d({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),p=(e=>(e.accessToken="ppjssdk.accessToken",e.refreshToken="ppjssdk.refreshToken",e.env="ppjssdk.env",e.deviceUUID="ppjssdk.deviceUUID",e.clientUUID="ppjssdk.clientUUID",e.lastPayment="ppjssdk.lastPayment",e.lastTopup="ppjssdk.lastTopup",e.appDetail="ppjssdk.appDetail",e.appConfig="ppjssdk.appConfig",e.userInfo="ppjssdk.userInfo",e.lastPaymentMethod="ppjssdk.lastPaymentMethod",e.lastTopupPayMethod="ppjssdk.lastTopupPayMethod",e.codeVerifier="ppjssdk.codeVerifier",e.clientOrigin="ppjssdk.clientOrigin",e.clientVersion="ppjssdk.clientVersion",e.debugMode="ppjssdk.debugMode",e.claimCouponImmediately="ppjssdk.claimCouponImmediately",e.merchant="ppjssdk.merchant",e.consumedOTT="ppjssdk.consumedOTT",e))(p||{});const g={success:"success",fail:"fail",complete:"complete"},h={init:"init",getBankInfo:"getBankInfo",showAlert:"showAlert",render:"render",makePayment:"makePayment",getUAID:"getUAID",logout:"logout",startMultiFactorAuth:"startMultiFactorAuth",verifyMultiFactorAuthResult:"verifyMultiFactorAuthResult",getPermissionStatus:"getPermissionStatus",registerKyc:"registerKyc",getKycInformation:"getKycInformation",getUserAddress:"getUserAddress",getUserLocation:"getUserLocation",getUserProfile:"getUserProfile",registerEmail:"registerEmail",showUpdateWarning:"showUpdateWarning",showErrorSheet:"showErrorSheet",getPlatformInformation:"getPlatformInformation",share:"share",getTopBarHeight:"getTopBarHeight",openWebview:"openWebview",openMap:"openMap",closeApp:"closeApp",openApp:"openApp",checkPaymentMethod:"checkPaymentMethod",getBalance:"getBalance",topup:"topup",registerPaymentFeatures:"registerPaymentFeatures",registerUserInfo:"registerUserInfo",requestInternal:"requestInternal",scanCode:"scanCode",getAuthStatus:"getAuthStatus",openMiniApp:"openMiniApp",inputAddress:"inputAddress",checkAccessToken:"checkAccessToken",getCashbackInformation:"getCashbackInformation",request:"request",getDeviceInformation:"getDeviceInformation",debug:"debug",createOrder:"createOrder",handleMessageFromNative:"handleMessageFromNative",initKycPassport:"initKycPassport",smsAuth:"smsAuth",getKycPassportInfo:"getKycPassportInfo"},m="reload",_="link",f="saveRefreshToken",v="saveCodeVerifier",y="makeVisible",E="consoleDebugInfo",S="clientPopState";var b=(e=>(e.MiniApp="MiniApp",e.SmartPayment="SmartPayment",e))(b||{});const I="_PayPayJsBridge",T=["init","openWebview","openMap","closeApp","makePayment","topup","setSessionData","getSessionData","setStorageData","getStorageData","removeStorageData","getPermissionStatus","scanCode","showAlert","showErrorSheet","getTopBarHeight","setTitle","showUpdateWarning","getPlatformInformation","openApp","share","getKycInformation","getUserLocation","checkPaymentMethod","registerKyc","startMultiFactorAuth","verifyMultiFactorAuthResult","getBankInfo","logout","getUserProfile","getBalance","getUserAddress","getUAID","copyToClipboard","registerUserInfo","setEnablePullDownRefresh","registerEmail","checkAccessToken","debug","inputAddress","getDeviceInformation","openMiniApp","request","requestInternal","registerPaymentFeatures","initKycPassport","getKycPassportInfo","shortcutExists","addShortcut","logAppsFlyerEvent","getAllUserAddresses","getUserPaymentFeatureSettings","getPaymentSettings","getTransactionInfo","getTransactions","getPayPayCardInfo","getExternalLinkageInformation","markAsReady","renderCoupons"],A=["init","createOrder","makePayment","render","logout","getAuthStatus","getUserProfile","getBalance","getUserAddress","getUAID","getCashbackInformation","renderCoupons","getLoginUrl"];function w(e){return"https://image.paypay.ne.jp/miniapps/mini-app-sdk/"+e}const k=w("icon-paypay-rec.svg"),N=w("icon-paypay-rec-white.svg");var C,P=new Uint8Array(16);function D(){if(!C&&!(C="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return C(P)}const R=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function O(e){return"string"==typeof e&&R.test(e)}for(var U=[],x=0;x<256;++x)U.push((x+256).toString(16).substr(1));function L(e,t,n){var s=(e=e||{}).random||(e.rng||D)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=s[o];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(U[e[t+0]]+U[e[t+1]]+U[e[t+2]]+U[e[t+3]]+"-"+U[e[t+4]]+U[e[t+5]]+"-"+U[e[t+6]]+U[e[t+7]]+"-"+U[e[t+8]]+U[e[t+9]]+"-"+U[e[t+10]]+U[e[t+11]]+U[e[t+12]]+U[e[t+13]]+U[e[t+14]]+U[e[t+15]]).toLowerCase();if(!O(n))throw TypeError("Stringified UUID is invalid");return n}(s)}const M=["ab.ca","ac.ac","ac.ae","ac.at","ac.be","ac.cn","ac.il","ac.in","ac.jp","ac.kr","ac.th","ac.uk","ac.sg","ad.jp","adm.br","adv.br","ah.cn","am.br","arq.br","art.br","arts.ro","asn.au","asso.fr","asso.mc","bc.ca","bio.br","biz.pl","biz.tr","bj.cn","bel.tr","br.com","cn.com","cng.br","cnt.br","co.ac","co.at","co.de","co.gl","co.hk","co.id","co.il","co.in","co.jp","co.kr","co.mg","co.ms","co.nz","co.th","cp.tz","co.uk","co.ve","co.vi","co.za","com.ag","com.ai","com.ar","com.au","com.br","com.co","com.cn","com.cy","com.de","com.do","com.ec","com.es","com.fj","com.fr","com.gl","com.gt","com.hk","com.hr","com.hu","com.kg","com.ki","com.lc","com.mg","com.mm","com.ms","com.mt","com.mu","com.mx","com.my","com.na","com.nf","com.ng","com.ni","com.pa","com.ph","com.pl","com.pt","com.qa","com.ro","com.ru","com.sb","com.sc","com.sg","com.sv","com.tr","com.tw","com.ua","com.uy","com.ve","com.vn","cq.cn","de.com","de.org","ecn.br","ed.jp","edu.au","edu.cn","edu.hk","edu.mm","edu.my","edu.pl","edu.pt","edu.qa","edu.sg","edu.tr","edu.tw","eng.br","ernet.in","esp.br","etc.br","eti.br","eu.com","eu.int","eu.lv","firm.in","firm.ro","fm.br","fot.br","fst.br","g12.br","gb.com","gb.net","gd.cn","gen.in","go.jp","go.kr","go.th","gov.au","gov.az","gov.br","gov.cn","gov.il","gov.in","gov.mm","gov.my","gov.qa","gov.sg","gov.tr","gov.tw","gov.uk","govt.nz","gr.jp","gs.cn","gv.ac","gv.at","gx.cn","gz.cn","he.cn","hi.cn","hk.cn","hl.cn","hu.com","id.au","idv.tw","in.ua","in.th","ind.br","ind.in","inf.br","info.pl","info.ro","info.tr","info.ve","iwi.nz","jl.cn","jor.br","js.cn","jus.br","k12.il","k12.tr","kr.com","lel.br","lg.jp","ln.cn","ltd.uk","mb.ca","me.uk","med.br","mi.th","mil.br","mil.uk","mo.cn","mod.uk","muni.il","nb.ca","ne.jp","ne.kr","net.ag","net.ai","net.au","net.br","net.cn","net.do","net.gl","net.hk","net.il","net.in","net.kg","net.ki","net.lc","net.mg","net.mm","net.mu","net.ni","net.nz","net.pl","net.ru","net.sb","net.sc","net.sg","net.th","net.tr","net.tw","net.uk","net.ve","nf.ca","nhs.uk","nm.cn","nm.kr","no.com","nom.br","nom.ni","nom.ro","ns.ca","nt.ca","nt.ro","ntr.br","nx.cn","odo.br","off.ai","on.ca","or.ac","or.at","or.jp","or.kr","or.th","org.ag","org.ai","org.au","org.br","org.cn","org.do","org.es","org.gl","org.hk","org.in","org.kg","org.ki","org.lc","org.mg","org.mm","org.ms","org.nf","org.ng","org.ni","org.nz","org.pl","org.ro","org.ru","org.sb","org.sc","org.sg","org.tr","org.tw","org.uk","org.ve","pe.ca","plc.uk","ppg.br","pro.br","psc.br","psi.br","qc.ca","qc.com","qh.cn","rec.br","rec.ro","res.in","sa.com","sc.cn","sch.uk","se.com","se.net","sh.cn","sk.ca","slg.br","sn.cn","store.ro","tj.cn","tm.fr","tm.mc","tm.ro","tmp.br","tur.br","tv.br","tv.tr","tw.cn","uk.com","uk.net","us.com","uy.com","vet.br","waw.pl","web.ve","www.ro","xj.cn","xz.cn","yk.ca","yn.cn","zj.cn","zlg.br"];function F(e,t){return e?function(e){const t=e.split(".");if(function(e){return/(^\s*(((\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])\.){3}(\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5]))\s*$)/.test(e)}(n=e)||function(e){return/(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$)/.test(e)}(n)||t.length<=2)return e;var n;const s=t.slice(t.length-2).join(".");return M.includes(s)&&t.length>=3?t.slice(t.length-3).join("."):t.slice(t.length-2).join(".")}(t):t}const B="2.38.0",j=new URL("https://mini-app-sdk-core.paypay.ne.jp/"),V=j.origin,q=new URL(`./iframe.html?v=${B}&rev=55465a6`,j).href,$=new URL(`./coupon/iframe.html?v=${B}`,j).href;var Y=(e=>(e.success="SUCCESS",e.invalidUrl="INVALID_URL",e.invalidData="INVALID_DATA",e.invalidHeader="INVALID_HEADER",e.invalidMethod="INVALID_METHOD",e.invalidPath="INVALID_PATH",e.notReachable="NOT_REACHABLE",e.notAvailable="NOT_AVAILABLE",e.timeOut="TIME_OUT",e.whiteListError="NONE_WHITELIST_DOMAIN",e.statusCodeError="STATUS_CODE_ERROR",e.invalidResponse="INVALID_RESPONSE",e.noLocationPermission="NO_USER_LOCATION_PERMISSION",e.noPermissionListAvailable="NO_PERMISSION_LIST_AVAILABLE",e.other="other",e.serverError="SERVER_ERROR",e.noCameraPermission="HOST_APP_CAMERA_DENIED",e.noAlbumPermission="HOST_APP_ALBUM_DENIED",e.insufficientScope="INSUFFICIENT_SCOPE",e.userCanceled="USER_CANCELED",e.invalidJSAPIParams="INVALID_JS_API_PARAMS",e.hostAppLocationDenied="HOST_APP_LOCATION_DENIED",e.hostAppContactsDenied="HOST_APP_READING_CONTACT_DENIED",e.badRequestInsufficientParameter="BAD_REQUEST_INSUFFICIENT_PARAMETER",e.badRequest="BAD_REQUEST",e.paymentFail="PAYMENT_FAIL",e.topupFail="TOPUP_FAIL",e.topupSuccessButNotAddToBalance="TOPUP_SUCCESS_BUT_NOT_ADD_TO_BALANCE",e.userCanceledSimilarTxn="USER_CANCELED_SIMILAR_TRANSACTION",e.mapAppNotFound="MAP_APP_NOT_FOUND",e.invalidAppSchemeURL="INVALID_APP_SCHEME_URL",e.noValueFound="NO_VALUE_FOUND",e.securityNotSetup="SECURITY_NOT_SETUP",e.userDenied="USER_DENIED",e.securityTemporaryLocked="SECURITY_TEMPORARY_LOCKED",e.couldNotGenerateBarcode="COULD_NOT_GENERATE_BARCODE",e.cannotDetectAvailability="CAN_NOT_DETECT_AVAILABILITY",e.suspectedDuplicatePayment="SUSPECTED_DUPLICATE_PAYMENT",e.noSufficientFund="NO_SUFFICIENT_FUND",e.unknown="UNKNOWN",e.sdkNotInitialized="SDK_NOT_INITIALIZED",e.tokenNotFound="TOKEN_NOT_FOUND",e.tokenExpired="TOKEN_EXPIRED",e.activeRequestExists="ACTIVE_REQUEST_EXISTS",e.invalidType="INVALID_TYPE",e.sessionNotFound="SESSION_NOT_FOUND",e.cookieError="COOKIE_ERROR",e.notAuthorized="NOT_AUTHORIZED",e.permissionRequired="PERMISSION_REQUIRED",e.deeplinkUnavailable="DEEPLINK_UNAVAILABLE",e.kycIncompleted="KYC_INCOMPLETED",e.noBankAccount="NO_BANK_ACCOUNT",e.invalidPaymentIdentifier="INVALID_PAYMENT_IDENTIFIER",e.otpSendTooShort="OTP_SEND_TOO_SHORT",e.otpSendOverLimit="OTP_SEND_OVER_LIMIT",e.userVerificationFailure="USER_VERIFICATION_FAILURE",e.unacceptableOp="UNACCEPTABLE_OP",e.kycUpdateRequired="KYC_UPDATE_REQUIRED",e.notCompleted="NOT_COMPLETED",e.kycValidationInProcess="KYC_VALIDATION_IN_PROCESS",e.noLocationData="NO_LOCATION_DATA",e.functionNotFound="FUNCTION_NOT_FOUND",e.originNotAllowed="ORIGIN_NOT_ALLOWED",e.messageSendingFailed="MESSAGE_SENDING_FAILED",e.transactionNotFound="TRANSACTION_NOT_FOUND",e.unexpectedOperation="UNEXPECTED_OP",e.merchantTimeout="MERCHANT_TIMEOUT",e.rateLimitExceeded="RATE_LIMIT_EXCEEDED",e.sdkUpgradeRequired="SDK_UPGRADE_REQUIRED",e))(Y||{});const H=Object.prototype.toString;function W(e){return function(e,t){return H.call(e)===`[object ${t}]`}(e,"Object")}function K(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function z(e){return e&&e.Math==Math?e:void 0}const G="object"==typeof globalThis&&z(globalThis)||"object"==typeof window&&z(window)||"object"==typeof self&&z(self)||"object"==typeof global&&z(global)||function(){return this}()||{};function J(e,t,n){const s=n||G,o=s.__SENTRY__=s.__SENTRY__||{};return o[e]||(o[e]=t())}const Q=["debug","info","warn","error","log","assert","trace"],X={};function Z(e){if(!("console"in G))return e();const t=G.console,n={},s=Object.keys(X);s.forEach((e=>{const s=X[e];n[e]=t[e],t[e]=s}));try{return e()}finally{s.forEach((e=>{t[e]=n[e]}))}}const ee=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?Q.forEach((n=>{t[n]=(...t)=>{e&&Z((()=>{G.console[n](`Sentry Logger [${n}]:`,...t)}))}})):Q.forEach((e=>{t[e]=()=>{}})),t}();function te(e){return ne(e,new Map)}function ne(e,t){if(W(e)){const n=t.get(e);if(void 0!==n)return n;const s={};t.set(e,s);for(const o of Object.keys(e))void 0!==e[o]&&(s[o]=ne(e[o],t));return s}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const s=[];return t.set(e,s),e.forEach((e=>{s.push(ne(e,t))})),s}return e}function se(){const e=G,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>t.getRandomValues(new Uint8Array(1))[0])}catch(s){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}var oe;!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(oe||(oe={}));class re{constructor(e){re.prototype.__init.call(this),re.prototype.__init2.call(this),re.prototype.__init3.call(this),re.prototype.__init4.call(this),this._state=oe.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}then(e,t){return new re(((n,s)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(o){s(o)}else n(t)},e=>{if(t)try{n(t(e))}catch(o){s(o)}else s(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new re(((t,n)=>{let s,o;return this.then((t=>{o=!1,s=t,e&&e()}),(t=>{o=!0,s=t,e&&e()})).then((()=>{o?n(s):t(s)}))}))}__init(){this._resolve=e=>{this._setResult(oe.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(oe.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===oe.PENDING&&(K(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===oe.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===oe.RESOLVED&&e[1](this._value),this._state===oe.REJECTED&&e[2](this._value),e[0]=!0)}))}}}const ie=G,ae={nowSeconds:()=>Date.now()/1e3};const ce="undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__||"[object process]"!==Object.prototype.toString.call("undefined"!=typeof process?process:0)?function(){const{performance:e}=ie;if(!e||!e.now)return;return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}():function(){try{return(e=module,t="perf_hooks",e.require(t)).performance}catch(n){return}var e,t}(),le=void 0===ce?ae:{nowSeconds:()=>(ce.timeOrigin+ce.now())/1e3},de=ae.nowSeconds.bind(ae),ue=le.nowSeconds.bind(le);(()=>{const{performance:e}=ie;if(!e||!e.now)return;const t=36e5,n=e.now(),s=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-s):t,r=o<t,i=e.timing&&e.timing.navigationStart,a="number"==typeof i?Math.abs(i+n-s):t;(r||a<t)&&(o<=a&&e.timeOrigin)})();const pe="production";function ge(e,t,n,s=0){return new re(((o,r)=>{const i=e[s];if(null===t||"function"!=typeof i)o(t);else{const c=i(a({},t),n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.id&&null===c&&ee.log(`Event processor "${i.id}" dropped event`),K(c)?c.then((t=>ge(e,t,n,s+1).then(o))).then(null,r):ge(e,c,n,s+1).then(o).then(null,r)}}))}function he(e){const t=ue(),n={sid:se(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return te({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&me(n,e),n}function me(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||ue(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:se()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}class _e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=fe()}static clone(e){const t=new _e;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags=a({},e._tags),t._extra=a({},e._extra),t._contexts=a({},e._contexts),t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata=a({},e._sdkProcessingMetadata),t._propagationContext=a({},e._propagationContext)),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&me(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags=a(a({},this._tags),e),this._notifyScopeListeners(),this}setTag(e,t){return this._tags=c(a({},this._tags),{[e]:t}),this._notifyScopeListeners(),this}setExtras(e){return this._extra=a(a({},this._extra),e),this._notifyScopeListeners(),this}setExtra(e,t){return this._extra=c(a({},this._extra),{[e]:t}),this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){const t=e(this);return t instanceof _e?t:this}return e instanceof _e?(this._tags=a(a({},this._tags),e._tags),this._extra=a(a({},this._extra),e._extra),this._contexts=a(a({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession),e._propagationContext&&(this._propagationContext=e._propagationContext)):W(e)&&(this._tags=a(a({},this._tags),e.tags),this._extra=a(a({},this._extra),e.extra),this._contexts=a(a({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=fe(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const s=a({timestamp:de()},e),o=this._breadcrumbs;return o.push(s),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={},n){if(this._extra&&Object.keys(this._extra).length&&(e.extra=a(a({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=a(a({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=a(a({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=a(a({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=a({trace:this._span.getTraceContext()},e.contexts);const t=this._span.transaction;if(t){e.sdkProcessingMetadata=a({dynamicSamplingContext:t.getDynamicSamplingContext()},e.sdkProcessingMetadata);const n=t.name;n&&(e.tags=a({transaction:n},e.tags))}}this._applyFingerprint(e);const s=this._getBreadcrumbs(),o=[...e.breadcrumbs||[],...s];return e.breadcrumbs=o.length>0?o:void 0,e.sdkProcessingMetadata=c(a(a({},e.sdkProcessingMetadata),this._sdkProcessingMetadata),{propagationContext:this._propagationContext}),ge([...n||[],...J("globalEventProcessors",(()=>[])),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=a(a({},this._sdkProcessingMetadata),e),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){var t;e.fingerprint=e.fingerprint?(t=e.fingerprint,Array.isArray(t)?t:[t]):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function fe(){return{traceId:se(),spanId:se().substring(16)}}const ve=4,ye=100;class Ee{constructor(e,t=new _e,n=ve){this._version=n,this._stack=[{scope:t}],e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=_e.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){const t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:se(),s=new Error("Sentry syntheticException");return this._withClient(((o,r)=>{o.captureException(e,c(a({originalException:e,syntheticException:s},t),{event_id:n}),r)})),n}captureMessage(e,t,n){const s=this._lastEventId=n&&n.event_id?n.event_id:se(),o=new Error(e);return this._withClient(((r,i)=>{r.captureMessage(e,t,c(a({originalException:e,syntheticException:o},n),{event_id:s}),i)})),s}captureEvent(e,t){const n=t&&t.event_id?t.event_id:se();return e.type||(this._lastEventId=n),this._withClient(((s,o)=>{s.captureEvent(e,c(a({},t),{event_id:n}),o)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:s}=this.getStackTop();if(!s)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:r=ye}=s.getOptions&&s.getOptions()||{};if(r<=0)return;const i=de(),c=a({timestamp:i},e),l=o?Z((()=>o(c,t))):c;null!==l&&(s.emit&&s.emit("beforeAddBreadcrumb",l,t),n.addBreadcrumb(l,r))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=be(this);try{e(this)}finally{be(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(n){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ee.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&!n){this.getClient()?console.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):console.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),me(e,n)}(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:s,environment:o=pe}=n&&n.getOptions()||{},{userAgent:r}=G.navigator||{},i=he(a(a({release:s,environment:o,user:t.getUser()},r&&{userAgent:r}),e)),c=t.getSession&&t.getSession();return c&&"ok"===c.status&&me(c,{status:"exited"}),this.endSession(),t.setSession(i),i}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){const n=Se().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ee.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function Se(){return G.__SENTRY__=G.__SENTRY__||{extensions:{},hub:void 0},G}function be(e){const t=Se(),n=Te(t);return Ae(t,e),n}function Ie(){const e=Se();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=Se()){t=e,t&&t.__SENTRY__&&t.__SENTRY__.hub&&!Te(e).isOlderThan(ve)||Ae(e,new Ee);var t;return Te(e)}(e)}function Te(e){return J("hub",(()=>new Ee),e)}function Ae(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}const we=[Y.sdkNotInitialized,Y.notAuthorized,Y.userCanceled,Y.userCanceledSimilarTxn,Y.suspectedDuplicatePayment,Y.noSufficientFund];function ke(e,t,n){we.includes(n)||function(e,t){const n="string"==typeof t?t:void 0,s="string"!=typeof t?{captureContext:t}:void 0;Ie().captureMessage(e,n,s)}(`windowBridge.${e} failed. client: unknown, error: ${n}, message: ${t}`,"log")}function Ne(e){!function(e){Ie().addBreadcrumb(e)}(e)}let Ce="";const Pe="ppjssdk.initializedAt";const De=new class{constructor(){this.useLocalStorage=!0,this.memoryStorage={};try{localStorage.setItem(Pe,Date.now().toString())}catch(e){this.useLocalStorage=!1}}getItem(e){var t;if(this.useLocalStorage)try{if(null!=localStorage.getItem(Pe))return localStorage.getItem(e);console.debug("local storage value has lost unexpectedly."),Ne({message:"local storage value has lost unexpectedly.",category:"storage"})}catch(n){}return this.useLocalStorage=!1,null!=(t=this.memoryStorage[e])?t:null}setItem(e,t){if(this.memoryStorage[e]=t,this.useLocalStorage)try{localStorage.setItem(e,t)}catch(n){this.useLocalStorage=!1,console.warn("localStorage has become unavailable.")}}removeItem(e){delete this.memoryStorage[e];try{localStorage.removeItem(e)}catch(t){this.useLocalStorage=!1}}clear(){try{localStorage.clear(),localStorage.setItem(Pe,Date.now().toString())}catch(e){}this.memoryStorage={}}};function Re(e,t){return`${e}.${null!=t?t:Ce}`}function Oe(e,t){if(function(e){De.removeItem(e)}(e),t)return De.setItem(e,t)}function Ue(){let e=De.getItem(Re(p.clientUUID))||"";return O(e)||(e=L(),function(e){Oe(Re(p.clientUUID),e)}(e)),e}function xe(e){const t=De.getItem(Re(p.appDetail,e));return null==t?null:JSON.parse(t)}let Le=null,Me=[];function Fe(e){const t=function(){var e,t,n,s;let o=null;const r=navigator.userAgent.split(" PayPayMiniApp/");if(r.length>1){const i=null!=(e=r[1].split(" ")[0])?e:null;o=i?i.split("-")[0]:o,o=null!=(s=null==(n=null==(t=null==o?void 0:o.split("."))?void 0:t.slice(0,3))?void 0:n.join("."))?s:null}return o}();return!!t&&(e===t||function(e,t){const[n,s,o]=e.split(".").map((e=>Number.parseInt(e))),[r,i,a]=t.split(".").map((e=>Number.parseInt(e)));return n!==r?n>r:s!==i?s>i:o>a}(t,e))}function Be(){return Math.random().toString(36).substring(7)}function je(e){return e===V}function Ve(e){return e?String(e):""}function qe(e,t){u.remove(e),u.remove(e,{domain:t})}function $e(e){return T.includes(e)}function Ye(e){return A.includes(e)}Be(),document.addEventListener("visibilitychange",(()=>{"hidden"===document.visibilityState&&Me.length>0&&(Le&&clearTimeout(Le),function(){var e;const t=Me;Me=[],Le=null;const n="https://www.google-analytics.com/mp/collect?api_secret=fgPKRkdQQvq7XbV4qw3MOQ&measurement_id=G-M64Q2828RR",s=JSON.stringify({client_id:Ue(),events:t,user_id:null==(e=xe())?void 0:e.externalUserId});navigator.sendBeacon?navigator.sendBeacon(n,s):fetch(n,{method:"POST",keepalive:!0,body:s}).catch(console.warn)}())})),Y.notAuthorized,Y.badRequest,Y.badRequestInsufficientParameter,Y.insufficientScope,Y.insufficientScope;let He=[];function We(e){He=He.filter((t=>t!==e))}function Ke(){const e=Be();return He.push(e),e}function ze(e,t,n,s){return function(o={}){const r=n(),i=null==s?void 0:s(o);r.logEvent(a({event_action:`pp_${e}_called`,event_category_suffix:e},i)),t(o).then((t=>{var n;r.logEvent(a({event_action:`pp_${e}_success`,event_category_suffix:e},i)),null==(n=o.success)||n.call(o,t)})).catch((t=>{var n;console.error(t.message),r.logEvent(a({event_action:`pp_${e}_fail`,event_category_suffix:e,error_value:t.errorCode},i)),null==(n=o.fail)||n.call(o,{errorCode:t.errorCode})})).finally((()=>{var e;null==(e=o.complete)||e.call(o)}))}}var Ge=(e=>(e.validToken="TOKEN_VALID",e.initialized="INITIALIZED",e.emailRegistered="EMAIL_REGISTERED",e.emailNotVerified="EMAIL_NOT_VERIFIED",e.success="SUCCESS",e.loggedOut="LOGGED_OUT",e.connected="CONNECTED",e))(Ge||{});class Je extends Error{constructor(e,t){super(e),this.errorCode=t}}class Qe{constructor(e,t){this.deferredCallbacks={},this.functions=e,this.allowedOrigins=t,this.messageEventHandler=this.messageEventHandler.bind(this),this.subscribeToMessageEvent()}subscribeToMessageEvent(){window.addEventListener("message",this.messageEventHandler)}unsubscribeToMessageEvent(){window.removeEventListener("message",this.messageEventHandler)}messageEventHandler(e){var t;if(null==(t=e.data)?void 0:t.forWindowBridge)return this.allowedOrigins&&!this.allowedOrigins.includes(e.origin)?this.sendErrorResponse(e,`${e.origin} is not allowed to make requests`,Y.originNotAllowed):void("request"===e.data.type?this.handleRequest(e):"response"===e.data.type&&this.handleResponse(e))}handleRequest(e){return l(this,null,(function*(){const t=e.data.functionName,n=this.functions[t];n||this.sendErrorResponse(e,`Function '${t}' does not exists on the target window`,Y.functionNotFound);try{this.sendSuccessResponse(e,yield n(...e.data.params))}catch(s){let t="Some error ocurred while processing the request",n=Y.unknown;s instanceof Je&&(t=s.message,n=s.errorCode),this.sendErrorResponse(e,t,n)}}))}handleResponse(e){if(!this.deferredCallbacks[e.data.key])return void console.warn(`Callback for ${e.data.functionName} not found`);const[t,n]=this.deferredCallbacks[e.data.key];delete this.deferredCallbacks[e.data.key],"success"===e.data.status?t(e.data.result):n(new Je(e.data.message,e.data.errorCode))}sendErrorResponse(e,t,n){ke(e.data.functionName,t,n),this.sendResponse(e,{status:"failure",message:t,errorCode:n})}sendSuccessResponse(e,t){this.sendResponse(e,{status:"success",result:t})}sendResponse(e,t){var n;null==(n=e.source)||n.postMessage(a({forWindowBridge:!0,type:"response",key:e.data.key,functionName:e.data.functionName},t),e.origin)}static init(e,t){if(this._instance)throw new Error("WindowBridge already initialized, you can't call WindowBridge.init more than once");return this._instance=new this(e,t),this._instance}static destroy(){this._instance&&(this._instance.unsubscribeToMessageEvent(),this._instance=void 0)}static getBridge(){if(!this._instance)throw new Error("WindowBridge not initialized, please call WindowBridge.init before calling WindowBridge.getBridge");return this._instance}static getTargetWindowFunctionProxy(e,t){return Qe.getBridge().getTargetWindowFunctionProxy(e,t)}getTargetWindowFunctionProxy(e,t){return new Proxy(this,{get(n,s){return(...o)=>new Promise(((r,i)=>l(this,null,(function*(){const a=s.toString(),c=`${a}--${Be()}`;try{const s=yield e();if(!s)throw new Error("Target window is undefined");n.deferredCallbacks[c]=[r,i],s.postMessage({forWindowBridge:!0,type:"request",functionName:a,key:c,params:JSON.parse(JSON.stringify(o))},t)}catch(l){delete n.deferredCallbacks[c],i(new Je(l.message,Y.messageSendingFailed))}}))))}})}}const Xe="4.47.0",Ze="ppmna-iframe",et="ppsdk-container";let tt,nt;function st(){return tt||(tt=function(){if(document.getElementById(Ze))return;const e=document.createElement("div");return document.createElement("div"),e.setAttribute("id",et),e.setAttribute("class",et),e.style.all="initial",e.style.display="none",e.style.position="fixed",e.style.width="100%",e.style.height="100%",e.style.top="0",e.style.left="0",e.style.zIndex="2147483637",document.body.appendChild(e),e}()),tt}function ot(e){const t=st();t&&(t.style.display=e?"initial":"none")}function rt(){return nt||(nt=new Promise(((e,t)=>{function n(){const n=document.createElement("iframe");n.setAttribute("src",q),n.setAttribute("name",Ze),n.setAttribute("id",Ze),n.setAttribute("class",Ze),n.setAttribute("allow","geolocation"),n.onload=()=>{e(n)},n.onerror=t,n.style.all="initial",n.style.width="100%",n.style.height="100%",n.style.border="none";const s=st();s&&(s.innerHTML="",s.append(n))}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",(()=>{n()})):n()}))),nt}let it,at,ct=!1;Qe.init({}),rt(),at=Promise.resolve(!1);const lt=Qe.getTargetWindowFunctionProxy((function(){return rt().then((e=>null==e?void 0:e.contentWindow)).catch((()=>null))}),V);function dt(){return lt}function ut(e){const t=new URL(window.location.href),n=t.searchParams.get("token"),s=t.searchParams.get("one_time_token"),o=(r=e.clientId,u.get(`${p.refreshToken}.${r}`)||u.get(p.refreshToken)||"");var r;const i=u.get(p.codeVerifier)||"";ct=!!e.useAllFunctions,(n||s)&&function(e){e.searchParams.delete("token"),e.searchParams.delete("one_time_token"),e.search=e.searchParams.toString();const t=e.toString().replace(e.origin,"");history.replaceState(null,"",t)}(t);const l={env:e.env,mode:e.mode,debugMode:e.debugMode,clientId:e.clientId,token:n,ott:s,refreshToken:o,clientVersion:"2.38.0",codeVerifier:i,clientSdkType:it,clientUrl:window.location.href};let d;const g=new Promise((e=>d=e)),m=()=>{var t;d(!0),null==(t=e.complete)||t.call(e)};at.then((()=>rt())).then((()=>{vt(h.init,!1,c(a({},e),{complete:m}),l)})).catch((()=>{var t;null==(t=e.fail)||t.call(e,{errorCode:Y.sdkNotInitialized}),m()})),at=g}addEventListener("message",(e=>{var t;if(!(null==(t=e.data)?void 0:t.forWindowBridge)&&je(e.origin))if(e.data.name===m&&window.location.reload(),e.data.name!==y){if(e.data.name===_){const t=e.data.data;"_blank"===t.target?window.open(t.url,"_blank"):window.location.href=t.url}if(e.data.name===f){const{refreshToken:t,domain:n,isSecure:s,clientId:o}=e.data.data;!function(e,t,n,s){let o=p.refreshToken;s&&(o=`${o}.${s}`),qe(o,t),u.set(o,e,{domain:t,expires:90,secure:n})}(t,n,s,o)}if(e.data.name===v){const{codeVerifier:t,domain:n,isSecure:s,expires:o}=e.data.data;!function(e,t,n,s){qe(p.codeVerifier,t),u.set(p.codeVerifier,e,{domain:t,secure:n,expires:s})}(t,n,s,o)}if(e.data.name===E){const{params:t}=e.data.data;!function(e){console.debug(...e)}(t)}}else ot(!0)})),addEventListener("popstate",(()=>{rt().then((e=>{var t;const n={name:S};null==(t=null==e?void 0:e.contentWindow)||t.postMessage(n,V)})).catch((e=>console.warn(e)))}));const pt=ze("renderCoupons",(e=>l(this,null,(function*(){const{merchant:t,couponId:n,containerId:s,postLoginRedirectUrl:o=window.location.href,postLoginRedirectType:r,locale:i}=e,a=document.getElementById(s);if(!a)throw new Je("Invalid coupon container Id",Y.badRequestInsufficientParameter);const c=yield lt.fetchCoupons({merchantId:t,couponId:n,postLoginRedirectUrl:o,postLoginRedirectType:r});try{const e=document.createElement("iframe");e.src=$,e.style.cssText="width:100%;height: 0;border: none;transition: height 300ms ease-in;display: block;",yield new Promise(((t,n)=>{e.onload=()=>t(!0),e.onerror=()=>n(!1),a.innerHTML="",a.append(e)})),e.onload=null,e.onerror=null,window.addEventListener("message",(({data:t,source:n})=>{"update-iframe-height"===(null==t?void 0:t.eventName)&&e.contentWindow===n&&(e.style.height=`${t.height}px`)}));const n=Qe.getTargetWindowFunctionProxy((()=>e.contentWindow),V);yield n.renderCoupons({coupons:c,merchantId:t,locale:i,postLoginRedirectUrl:o,postLoginRedirectType:r})}catch(l){throw new Je(`An error ocurred while displaying coupons, merchantId=${t}, couponId=${n}, error=${l}`,Y.unknown)}}))),dt,(e=>({event_label2:e.couponId,merchant_id:e.merchant})));const gt=ze("logout",(()=>l(this,null,(function*(){try{const e=F(yield lt.logout(),window.location.hostname);return qe(p.refreshToken,e),qe(p.codeVerifier,e),{statusCode:Ge.loggedOut}}catch(e){throw new Je(`An error ocurred while trying to logout the user, error=${e}`,Y.unknown)}}))),dt),ht=ze("getPaymentSettings",lt.getPaymentSettings,dt),mt=ze("getLoginUrl",(e=>lt.getLoginUrl({redirectUrl:e.redirectUrl||location.href,redirectType:e.redirectType})),dt);function _t(e,t,n){var s,o,r;e.result===g.fail&&(null==(s=null==t?void 0:t.fail)||s.call(t,e.data)),e.result===g.success&&(null==(o=null==t?void 0:t.success)||o.call(t,null==e?void 0:e.data)),e.result===g.complete&&(null==(r=null==t?void 0:t.complete)||r.call(t),removeEventListener("message",n),We(e.messageId),He.length>0||ot(!1))}function ft(e){return l(this,null,(function*(){var t;const n=yield rt().catch((()=>{}));null==(t=null==n?void 0:n.contentWindow)||t.postMessage(JSON.parse(JSON.stringify(e)),V)}))}function vt(e,t,n,s){const o=Ke();t&&ot(!0);const r=t=>{je(t.origin)&&t.data.name===e&&t.data.messageId===o&&_t(t.data,n,r)};addEventListener("message",r),ft({name:e,params:s,messageId:o})}const yt=ze("markAsReady",(()=>l(this,null,(function*(){Fe(Xe)&&(window.location.href="paypay://miniappPerformance/ready"),yield lt.markAsReady()}))),dt);var Et;Et={_handleMessageFromNative:e=>{rt().then((t=>{var n;null==(n=null==t?void 0:t.contentWindow)||n.postMessage(JSON.parse(JSON.stringify({name:h.handleMessageFromNative,params:{json:e}})),V)}))}},(!window.hasOwnProperty(I)||window[I]!==Et)&&(window[I]=Et);const St={init:ut,verifyMultiFactorAuthResult:function(e){const t=new URL(window.location.href);vt(h.verifyMultiFactorAuthResult,!1,e,c(a({},e),{sessionId:t.searchParams.get("ppSessionId")}))},share:function(e){if(!(null==navigator?void 0:navigator.share))return void vt(h.share,!1,e,e);const t={text:null==e?void 0:e.text};navigator.share(t).then((()=>{var t,n;null==(t=null==e?void 0:e.success)||t.call(e),null==(n=null==e?void 0:e.complete)||n.call(e)})).catch((()=>{var t,n;null==(t=null==e?void 0:e.fail)||t.call(e,{errorCode:Y.unknown}),null==(n=null==e?void 0:e.complete)||n.call(e)}))},setTitle:function(e){var t,n;document.title=(null==e?void 0:e.title)||"",null==(t=null==e?void 0:e.success)||t.call(e),null==(n=null==e?void 0:e.complete)||n.call(e)},render:function(e){var t;if(!(null==e?void 0:e.containerId)||!document.getElementById(null==e?void 0:e.containerId))return null==(t=null==e?void 0:e.fail)||t.call(e,{errorCode:Y.badRequestInsufficientParameter}),console.error("Invalid container Id");const n=Ke(),s=t=>{var o,r,i;if(!je(t.origin)||t.data.name!==h.render||t.data.messageId!==n)return;const c=null==(o=t.data)?void 0:o.data,l=null==(r=t.data)?void 0:r.data;t.data.result===g.success&&(!function(e,t){var n,s,o,r,i,c,l;const d=document.getElementById(t.containerId),u=document.createElement("button");u.className="ppmna-reset-css pp-smartButtonWrapper pp-button";const p=function(e){return"red"===e?N:k}(null==t?void 0:t.theme),g=(null==(s=null==(n=null==e?void 0:e.data)?void 0:n.cashbackInfo)?void 0:s.length)?"pp-cashback":"",m=t.isShortText?"pp-shortText":"",_=null!=(o=null==t?void 0:t.buttonSize)?o:"lg",f=null!=(r=null==t?void 0:t.theme)?r:"light",v=document.createElement("a");v.className=`pp-smartBtn pp-${f} pp-${_} pp-${Ve(t.type)} pp-${e.preferredLanguage} ${g} ${m}`,v.href=Ve(e.data.loginUrl);const y=document.createElement("span");y.className="pp-leftSection";const E=document.createElement("img");E.className="pp-img",E.src=p,E.alt="",y.appendChild(E);const S=document.createElement("span");S.className="pp-btnContent";const b=document.createElement("span");b.className="pp-title",b.innerText=null==(i=null==e?void 0:e.data)?void 0:i.title,S.appendChild(b),y.appendChild(S),v.append(y);const I=document.createElement("span");(null==(c=null==e?void 0:e.data)?void 0:c.cashbackInfo)&&(I.className="pp-cashbackInfo",I.innerText=null==(l=null==e?void 0:e.data)?void 0:l.cashbackInfo,S.append(I));if(e.data.avatarUrl){const t=document.createElement("img");t.className="pp-userProfile",t.src=e.data.avatarUrl,t.addEventListener("error",(function(e){var t;const n=e.target;null==(t=null==n?void 0:n.parentNode)||t.removeChild(n)})),v.append(t)}u.append(v),d&&(d.innerHTML="",d.appendChild(u),"pay"===t.type&&(null==e?void 0:e.isLoggedIn)&&u.addEventListener("click",(e=>{var n;e.preventDefault(),(null==t?void 0:t.callback)?null==(n=null==t?void 0:t.callback)||n.call(t):t.orderInfo&&vt(h.makePayment,!0,t,a({},t.orderInfo))})))}(l,e),"pay"===c.type&&(null==l?void 0:l.isJustLoggedIn)&&e.autoInvoke&&(null==l?void 0:l.isLoggedIn)&&vt(h.makePayment,!0,e,a({},e.orderInfo))),t.data.result===g.fail&&(null==(i=null==e?void 0:e.fail)||i.call(e,t.data.data)),t.data.result===g.complete&&(We(t.data.messageId),removeEventListener("message",s))};addEventListener("message",s),ft({name:h.render,params:c(a({},e),{redirectUrl:e.redirectUrl||window.location.href}),messageId:n})},renderCoupons:pt,scanCode:function(e){var t;const n=c(a({},e),{redirectUrlOnCancel:null!=(t=null==e?void 0:e.redirectUrlOnCancel)?t:window.location.href});vt(h.scanCode,!1,e,n)},copyToClipboard:function(e){var t,n,s;const o=document.createElement("textarea");o.setAttribute("readonly","true"),o.setAttribute("contenteditable","true"),o.value=e.value,document.body.appendChild(o),o.select(),o.setSelectionRange(0,o.value.length);const r=document.execCommand("copy");document.body.removeChild(o),r?null==(t=null==e?void 0:e.success)||t.call(e):null==(n=null==e?void 0:e.fail)||n.call(e,{errorCode:Y.other}),null==(s=e.complete)||s.call(e)},getSessionData:function(e){var t,n;const s=sessionStorage.getItem(null==e?void 0:e.key);null==(t=null==e?void 0:e.success)||t.call(e,{[null==e?void 0:e.key]:null!=s?s:""}),null==(n=null==e?void 0:e.complete)||n.call(e)},setSessionData:function(e){var t,n,s;sessionStorage.setItem(null==e?void 0:e.key,null!=(t=null==e?void 0:e.value)?t:""),null==(n=null==e?void 0:e.success)||n.call(e),null==(s=null==e?void 0:e.complete)||s.call(e)},getStorageData:function(e){var t,n;const s=localStorage.getItem(null==e?void 0:e.key);null==(t=null==e?void 0:e.success)||t.call(e,{[null==e?void 0:e.key]:null!=s?s:""}),null==(n=null==e?void 0:e.complete)||n.call(e)},setStorageData:function(e){var t,n,s;localStorage.setItem(null==e?void 0:e.key,null!=(t=null==e?void 0:e.value)?t:""),null==(n=null==e?void 0:e.success)||n.call(e),null==(s=null==e?void 0:e.complete)||s.call(e)},removeStorageData:function(e){var t,n;localStorage.removeItem(null==e?void 0:e.key),null==(t=null==e?void 0:e.success)||t.call(e),null==(n=null==e?void 0:e.complete)||n.call(e)},getKycPassportInfo:function(e){const t=window.location.href;vt(h.getKycPassportInfo,!1,e,c(a({},e),{url:t}))},logout:gt,getPaymentSettings:ht,getLoginUrl:mt,markAsReady:yt},bt=["init","setTitle","copyToClipboard","getSessionData","setSessionData","getStorageData","setStorageData","removeStorageData","getLoginUrl"],It=["renderCoupons"];const Tt={version:"2.38.0",revision:"55465a6"};return function({sdkType:e}){it=e;const t=e===b.MiniApp?$e:Ye,n=new Proxy(St,{get(n,s){if(s in Tt)return Tt[s];const o=s;if(!ct&&!t(o))throw new Error(`${o} is not supported by ${e} JS SDK`);return e=>l(this,null,(function*(){var t,r;if(!bt.includes(o)&&!(yield at)){if(!It.includes(o)||!e.clientId)return null==(t=e.fail)||t.call(e,{errorCode:Y.sdkNotInitialized}),void(null==(r=e.complete)||r.call(e));ut({clientId:e.clientId,env:e.env}),yield at}if(Object.prototype.hasOwnProperty.call(n,o))return n[o](e);vt(s,!1,e,e)}))}});return window._pp=n,function(e){const t=window._ppcs;if(t){window._ppcs=void 0;for(const[n,s]of t)e[n](s)}}(n),n}({sdkType:b.MiniApp})}();
@@ -697,8 +697,8 @@ function parseDomain(domain) {
697
697
  function getDomain(subdomainCookieSharing, hostname) {
698
698
  return subdomainCookieSharing ? parseDomain(hostname) : hostname;
699
699
  }
700
- const JS_SDK_VERSION = "2.37.0";
701
- const REVISION = "1b5c920";
700
+ const JS_SDK_VERSION = "2.38.0";
701
+ const REVISION = "55465a6";
702
702
  const coreBaseUrl = new URL("https://mini-app-sdk-core.paypay.ne.jp/");
703
703
  const CORE_IFRAME_ORIGIN = coreBaseUrl.origin;
704
704
  const CORE_IFRAME_URL = new URL(
@@ -2207,15 +2207,21 @@ function sendEvents() {
2207
2207
  const events = eventsQueue;
2208
2208
  eventsQueue = [];
2209
2209
  timeoutId = null;
2210
- navigator.sendBeacon(
2211
- // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
2212
- `https://www.google-analytics.com/mp/collect?api_secret=${GA_API_SECRET}&measurement_id=${GA_MEASUREMENT_ID}`,
2213
- JSON.stringify({
2214
- client_id: getClientUUID(),
2215
- events,
2216
- user_id: (_a = getAppDetail()) == null ? void 0 : _a.externalUserId
2217
- })
2218
- );
2210
+ const url2 = `https://www.google-analytics.com/mp/collect?api_secret=${GA_API_SECRET}&measurement_id=${GA_MEASUREMENT_ID}`;
2211
+ const body = JSON.stringify({
2212
+ client_id: getClientUUID(),
2213
+ events,
2214
+ user_id: (_a = getAppDetail()) == null ? void 0 : _a.externalUserId
2215
+ });
2216
+ if (navigator.sendBeacon) {
2217
+ navigator.sendBeacon(url2, body);
2218
+ } else {
2219
+ void fetch(url2, {
2220
+ method: "POST",
2221
+ keepalive: true,
2222
+ body
2223
+ }).catch(console.warn);
2224
+ }
2219
2225
  }
2220
2226
  getRandomString();
2221
2227
  document.addEventListener("visibilitychange", () => {
@@ -2283,9 +2289,13 @@ function removeCookie(key, domain) {
2283
2289
  api.remove(key);
2284
2290
  api.remove(key, { domain });
2285
2291
  }
2286
- function saveRefreshToken(refreshToken, domain, isSecure) {
2287
- removeCookie(PpLocalStorageKey.refreshToken, domain);
2288
- return api.set(PpLocalStorageKey.refreshToken, refreshToken, {
2292
+ function saveRefreshToken(refreshToken, domain, isSecure, clientId2) {
2293
+ let refreshTokenKey = PpLocalStorageKey.refreshToken;
2294
+ if (clientId2) {
2295
+ refreshTokenKey = `${refreshTokenKey}.${clientId2}`;
2296
+ }
2297
+ removeCookie(refreshTokenKey, domain);
2298
+ return api.set(refreshTokenKey, refreshToken, {
2289
2299
  domain,
2290
2300
  expires: 90,
2291
2301
  secure: isSecure
@@ -2299,8 +2309,11 @@ function saveCodeVerifier(codeVerifier, domain, isSecure, expires) {
2299
2309
  expires
2300
2310
  });
2301
2311
  }
2302
- function getRefreshToken() {
2303
- return api.get(PpLocalStorageKey.refreshToken) || "";
2312
+ function getRefreshToken(clientId2) {
2313
+ const refreshTokenWithClientId = api.get(
2314
+ `${PpLocalStorageKey.refreshToken}.${clientId2}`
2315
+ );
2316
+ return refreshTokenWithClientId || api.get(PpLocalStorageKey.refreshToken) || "";
2304
2317
  }
2305
2318
  function getCodeVerifier() {
2306
2319
  return api.get(PpLocalStorageKey.codeVerifier) || "";
@@ -2609,7 +2622,8 @@ const MinVersion = {
2609
2622
  START_MULTIFACTOR_AUTH_ANDROID_FIX: "3.67.0",
2610
2623
  KYC_PASSPORT: "3.72.0",
2611
2624
  LOG_APP_FLYER_EVENT: "3.78.0",
2612
- PERFORMANCE_MEASUREMENT: "4.47.0"
2625
+ PERFORMANCE_MEASUREMENT: "4.47.0",
2626
+ START_MULTIFACTOR_AUTH_PIN_FALLBACK: "4.63.0"
2613
2627
  };
2614
2628
  const IFRAME_NAME = "ppmna-iframe";
2615
2629
  const IFRAME_CONTAINER_NAME = "ppsdk-container";
@@ -2728,8 +2742,8 @@ const commonMessageHandler = (e) => {
2728
2742
  }
2729
2743
  }
2730
2744
  if (e.data.name === PPUtilFunctionName.saveRefreshToken) {
2731
- const { refreshToken, domain, isSecure } = e.data.data;
2732
- saveRefreshToken(refreshToken, domain, isSecure);
2745
+ const { refreshToken, domain, isSecure, clientId: clientId2 } = e.data.data;
2746
+ saveRefreshToken(refreshToken, domain, isSecure, clientId2);
2733
2747
  }
2734
2748
  if (e.data.name === PPUtilFunctionName.saveCodeVerifier) {
2735
2749
  const { codeVerifier, domain, isSecure, expires } = e.data.data;
@@ -2754,9 +2768,9 @@ function init(params) {
2754
2768
  const url2 = new URL(window.location.href);
2755
2769
  const token = url2.searchParams.get("token");
2756
2770
  const ott = url2.searchParams.get("one_time_token");
2757
- const refreshToken = getRefreshToken();
2771
+ const refreshToken = getRefreshToken(params.clientId);
2758
2772
  const codeVerifier = getCodeVerifier();
2759
- const clientVersion = "2.37.0";
2773
+ const clientVersion = "2.38.0";
2760
2774
  useAllFunctions = !!params.useAllFunctions;
2761
2775
  if (token || ott) {
2762
2776
  removeTokenFromUrl(url2);
@@ -2771,7 +2785,9 @@ function init(params) {
2771
2785
  refreshToken,
2772
2786
  clientVersion,
2773
2787
  codeVerifier,
2774
- clientSdkType
2788
+ clientSdkType,
2789
+ clientUrl: window.location.href
2790
+ // OTT already removed
2775
2791
  };
2776
2792
  let initDonePromiseResolve;
2777
2793
  const nextInitDonePromise = new Promise(
@@ -3229,8 +3245,8 @@ function executePendingFunctionCalls(client2) {
3229
3245
  }
3230
3246
  }
3231
3247
  const clientProperties = {
3232
- version: "2.37.0",
3233
- revision: "1b5c920"
3248
+ version: "2.38.0",
3249
+ revision: "55465a6"
3234
3250
  };
3235
3251
  function getClient({ sdkType }) {
3236
3252
  clientSdkType = sdkType;
@@ -2,11 +2,6 @@ import { PPFetchResult } from '../utils/fetch';
2
2
  import { MiniAppErrorType } from './miniAppError';
3
3
  import { UIComponentsError } from './uiComponents';
4
4
  import { Amount, OrderItem, OrderType } from '../types/makePayment';
5
- export interface PaymentIdQuery {
6
- merchant?: string;
7
- sourceInfoApp?: string;
8
- type?: string;
9
- }
10
5
  export declare type PaymentQuery = {
11
6
  merchant?: string;
12
7
  agreeSimilarTransaction: boolean;
@@ -24,7 +19,6 @@ interface PaymentBody {
24
19
  merchantAlias?: string;
25
20
  requestedAt?: number;
26
21
  productType?: string;
27
- sourceInfoApp?: string;
28
22
  storeInfo?: string;
29
23
  metadata?: unknown;
30
24
  expiresAt?: number;
@@ -238,6 +232,17 @@ declare type PaymentMethodPreference = {
238
232
  preTransactionAutoChargeEnabled: boolean;
239
233
  prioritizedPaymentMethodsEnabled: boolean;
240
234
  };
235
+ declare type OverdraftBalanceInfo = {
236
+ balance: number;
237
+ currency: string;
238
+ };
239
+ export declare type InfoBanner = {
240
+ text: string;
241
+ additionalText: string;
242
+ link: string;
243
+ linkText: string;
244
+ type: string;
245
+ };
241
246
  export declare type GetPaymentMethodsResponse = ResponseBase & {
242
247
  unsigned: {
243
248
  data: {
@@ -245,6 +250,8 @@ export declare type GetPaymentMethodsResponse = ResponseBase & {
245
250
  paymentMethodList: PaymentMethod[];
246
251
  appealDescription: AppealDescription | null;
247
252
  paymentMethodPreference: PaymentMethodPreference | null;
253
+ overdraftBalanceInfo?: OverdraftBalanceInfo;
254
+ infoBannerList?: InfoBanner[];
248
255
  };
249
256
  };
250
257
  };
@@ -253,7 +260,6 @@ export declare const getPaymentMethods2: (params: {
253
260
  merchant?: string;
254
261
  type: string;
255
262
  productType?: string;
256
- sourceInfoApp?: string;
257
263
  }) => Promise<PPFetchResult<GetPaymentMethodsResponse, Record<string, unknown>>>;
258
264
  export declare type PaymentResult = {
259
265
  requestedAt: number;
@@ -296,6 +302,8 @@ export declare type InsufficientBalanceInfo = {
296
302
  balance: number;
297
303
  currency: 'JPY';
298
304
  };
305
+ overdraftBalanceInfo?: OverdraftBalanceInfo;
306
+ infoBannerList?: InfoBanner[];
299
307
  };
300
308
  export declare type ConsultError = {
301
309
  backendResultCode: string;
@@ -23,6 +23,9 @@ declare const _default: {
23
23
  BUSY: string;
24
24
  SUSPENDED: string;
25
25
  };
26
+ overdraftAmount: {
27
+ excessUsage: string;
28
+ };
26
29
  };
27
30
  en: {
28
31
  topupCompletion: {
@@ -48,6 +51,9 @@ declare const _default: {
48
51
  BUSY: string;
49
52
  SUSPENDED: string;
50
53
  };
54
+ overdraftAmount: {
55
+ excessUsage: string;
56
+ };
51
57
  };
52
58
  };
53
59
  export default _default;
@@ -22,5 +22,8 @@ declare const _default: {
22
22
  BUSY: string;
23
23
  SUSPENDED: string;
24
24
  };
25
+ overdraftAmount: {
26
+ excessUsage: string;
27
+ };
25
28
  };
26
29
  export default _default;
@@ -13,7 +13,6 @@ export interface CheckPaymentMethodParams extends NativeParams<CheckPaymentMetho
13
13
  bankCode?: string;
14
14
  merchant?: string;
15
15
  productType?: string;
16
- sourceInfoApp?: string;
17
16
  }
18
17
  export declare type CheckPaymentMethodResult = {
19
18
  status: 'AVAILABLE' | 'UNAVAILABLE';
@@ -19,7 +19,6 @@ export declare type BalanceType = {
19
19
  export interface GetBalanceParams extends NativeParams<GetBalanceResult> {
20
20
  productType?: string;
21
21
  merchant?: string;
22
- sourceInfoApp?: string;
23
22
  }
24
23
  export declare type GetBalanceResult = {
25
24
  balance: number;
@@ -19,6 +19,7 @@ export interface InitParams extends NativeParams<InitResult> {
19
19
  debugMode?: boolean;
20
20
  useAllFunctions?: boolean;
21
21
  clientSdkType?: SdkType;
22
+ clientUrl?: string;
22
23
  }
23
24
  export declare const PPEnv: {
24
25
  readonly staging: "staging";
@@ -20,7 +20,6 @@ export interface MakePaymentParams extends NativeParams<MakePaymentResult> {
20
20
  agreeSimilarTransaction?: boolean;
21
21
  prepaidOnly?: boolean;
22
22
  metadata?: unknown;
23
- sourceInfoApp?: string;
24
23
  alwaysDisplayCompletionScreen?: boolean;
25
24
  alwaysHideCompletionScreen?: boolean;
26
25
  storeInfo?: string;
@@ -9,7 +9,6 @@ export interface TopupParams extends NativeParams<TopupResult, MiniAppErrorResul
9
9
  prepaidOnly?: boolean;
10
10
  merchant?: string;
11
11
  productType?: string;
12
- sourceInfoApp?: string;
13
12
  methodType?: PaymentMethodNameType;
14
13
  bankCode?: string;
15
14
  }
package/dist/types.d.ts CHANGED
@@ -212,7 +212,6 @@ export interface SmartPayParams {
212
212
  isAuthorization?: boolean;
213
213
  expiresAt?: number;
214
214
  agreeSimilarTransaction?: boolean;
215
- sourceInfoApp?: string;
216
215
  terminalId?: string;
217
216
  additionalUserInfo?: {
218
217
  userAddress?: {
@@ -477,6 +476,7 @@ export declare type SaveRefreshTokenOption = {
477
476
  refreshToken: string;
478
477
  domain: string;
479
478
  isSecure: boolean;
479
+ clientId: string;
480
480
  };
481
481
  export declare type SaveCodeVerifierOption = {
482
482
  codeVerifier: string;
@@ -11,6 +11,10 @@ interface EventParams {
11
11
  merchant_id?: string;
12
12
  order_type?: string;
13
13
  user_agent?: string;
14
+ client_url?: string;
15
+ hashed_ott?: string;
16
+ has_rt?: string;
17
+ has_cv?: string;
14
18
  }
15
19
  interface Options {
16
20
  env?: PPEnvType;
@@ -22,7 +26,7 @@ export declare function getEventCategory(params?: {
22
26
  featureName?: string;
23
27
  }): string;
24
28
  export declare function logSDKEvent(eventName: string, eventParams: Omit<EventParams, 'env'>, { env, sendImmediately }?: Options): void;
25
- export declare function handleLogSDKEvent(name: PPFunctionNameType, eventActionSuffix: string, errorValue?: string, params?: unknown, eventParams?: Partial<EventParams>): void;
29
+ export declare function handleLogSDKEvent(name: PPFunctionNameType, eventActionSuffix: string, errorValue?: string, params?: unknown, eventParams?: Partial<EventParams>): Promise<void>;
26
30
  export declare function test_initClientState(params: {
27
31
  clientId: string;
28
32
  clientOrigin: string;
@@ -113,6 +113,7 @@ export declare function topup(queryParams: TopupQuery, body: TopupBody, paymentP
113
113
  resultCode?: string | undefined;
114
114
  } | undefined;
115
115
  error?: unknown;
116
+ helpUrl?: string | undefined;
116
117
  } | undefined;
117
118
  };
118
119
  uiComponents?: {
@@ -140,7 +141,6 @@ export declare type BalanceParams = {
140
141
  currency?: string;
141
142
  merchant?: string;
142
143
  productType?: string;
143
- sourceInfoApp?: string;
144
144
  };
145
145
  export declare function getBalance(params?: BalanceParams): Promise<import("./fetch").PPFetchResult<unknown, Record<string, unknown>>>;
146
146
  declare type WalletInfoResponse = {
@@ -34,6 +34,7 @@ declare type APIBaseResponse = {
34
34
  resultCode?: string;
35
35
  };
36
36
  error?: unknown;
37
+ helpUrl?: string;
37
38
  };
38
39
  };
39
40
  uiComponents?: {
@@ -1,5 +1,5 @@
1
1
  import { MiniAppErrorType } from '../model/miniAppError';
2
- import { BankInfo, CreditCardInfo, SbidBankInfo, PayLaterCCInfo, PaymentMethod } from '../model/makePayment';
2
+ import { BankInfo, CreditCardInfo, SbidBankInfo, PayLaterCCInfo, PaymentMethod, InfoBanner } from '../model/makePayment';
3
3
  import { UIComponentsErrorButton } from '../model/uiComponents';
4
4
  import { ErrorSheetButton, PaymentLabelType, SmartPayParams } from '../types';
5
5
  import { FontSize } from '../types/getPlatformInformation';
@@ -66,6 +66,7 @@ export declare function getFailErrorCode(ppFetchResult: string): MiniAppErrorTyp
66
66
  export declare function getStoreUrl(): "https://play.google.com/store/apps/details?id=jp.ne.paypay.android.app" | "https://itunes.apple.com/app/id1435783608";
67
67
  export declare function generateCodeVerifier(length?: number): string;
68
68
  export declare function generateCodeChallenge(codeVerifier: string): Promise<string>;
69
+ export declare function sha256Hex(text: string): Promise<string>;
69
70
  export declare function openUrl(linkUrl: string): void;
70
71
  export declare function getButtonType(button: UIComponentsErrorButton | ErrorSheetButton, primary?: boolean): "success" | "default" | "link" | "primary" | "warning" | "danger" | "outLined";
71
72
  export declare function getRandomString(): string;
@@ -87,4 +88,5 @@ export declare function getPaymentLabelType(orderType: OrderType | undefined, pr
87
88
  export declare function checkIfSdkUpgradeNeededForRemittance(orderType?: OrderType): boolean;
88
89
  export declare function isMobileSize(width: number): boolean;
89
90
  export declare function isDesktopSize(width: number): boolean;
91
+ export declare function getOverDraftInfoBanner(banners?: Array<InfoBanner>): InfoBanner | undefined;
90
92
  export {};
@@ -6,4 +6,5 @@ export declare const MinVersion: {
6
6
  KYC_PASSPORT: string;
7
7
  LOG_APP_FLYER_EVENT: string;
8
8
  PERFORMANCE_MEASUREMENT: string;
9
+ START_MULTIFACTOR_AUTH_PIN_FALLBACK: string;
9
10
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paypay/mini-app-js-sdk",
3
- "version": "2.37.0",
3
+ "version": "2.38.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "build": "yarn build:client && yarn build:core",