{\n\t\t\t\t\tif ( ! node ) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Set component frame\n\t\t\t\t\tsetComponentFrame( node.ownerDocument );\n\n\t\t\t\t\t// Handle button mounting\n\t\t\t\t\twhile ( node.firstChild ) {\n\t\t\t\t\t\tnode.removeChild( node.firstChild );\n\t\t\t\t\t}\n\t\t\t\t\tif ( button ) {\n\t\t\t\t\t\tnode.appendChild( button );\n\t\t\t\t\t}\n\t\t\t\t} }\n\t\t\t/>\n\t\t\t{ button && (\n\t\t\t\t\n\t\t\t) }\n\t\t>\n\t);\n};\n\nexport default GooglepayButton;\n","import GooglepayButton from './Block/components/GooglepayButton';\n\nconst GooglepayManagerBlockEditor = ( {\n\tnamespace,\n\tbuttonConfig,\n\tppcpConfig,\n\tbuttonAttributes,\n} ) => (\n\t
\n);\n\nexport default GooglepayManagerBlockEditor;\n","import { useEffect, useState } from '@wordpress/element';\nimport { loadCustomScript } from '@paypal/paypal-js';\nimport {\n\tregisterExpressPaymentMethod,\n\tregisterPaymentMethod,\n} from '@woocommerce/blocks-registry';\nimport { __ } from '@wordpress/i18n';\nimport { loadPayPalScript } from '../../../ppcp-button/resources/js/modules/Helper/PayPalScriptLoading';\nimport GooglepayManager from './GooglepayManager';\nimport GooglepayManagerBlockEditor from './GooglepayManagerBlockEditor';\n\nconst ppcpData = wc.wcSettings.getSetting( 'ppcp-gateway_data' );\nconst ppcpConfig = ppcpData.scriptData;\n\nconst buttonData = wc.wcSettings.getSetting( 'ppcp-googlepay_data' );\nconst buttonConfig = buttonData.scriptData;\nconst namespace = 'ppcpBlocksPaypalGooglepay';\n\nif ( typeof window.PayPalCommerceGateway === 'undefined' ) {\n\twindow.PayPalCommerceGateway = ppcpConfig;\n}\n\nconst GooglePayComponent = ( { isEditing, buttonAttributes } ) => {\n\tconst [ paypalLoaded, setPaypalLoaded ] = useState( false );\n\tconst [ googlePayLoaded, setGooglePayLoaded ] = useState( false );\n\tconst [ manager, setManager ] = useState( null );\n\n\tuseEffect( () => {\n\t\tif ( ! isEditing ) {\n\t\t\tloadCustomScript( { url: buttonConfig.sdk_url } ).then( () => {\n\t\t\t\tsetGooglePayLoaded( true );\n\t\t\t} );\n\n\t\t\tppcpConfig.url_params.components += ',googlepay';\n\n\t\t\tloadPayPalScript( namespace, ppcpConfig )\n\t\t\t\t.then( () => {\n\t\t\t\t\tsetPaypalLoaded( true );\n\t\t\t\t} )\n\t\t\t\t.catch( ( error ) => {\n\t\t\t\t\tconsole.error( 'Failed to load PayPal script: ', error );\n\t\t\t\t} );\n\t\t}\n\t}, [ isEditing, buttonConfig, ppcpConfig ] );\n\n\tuseEffect( () => {\n\t\tif ( ! isEditing && paypalLoaded && googlePayLoaded && ! manager ) {\n\t\t\tconst newManager = new GooglepayManager(\n\t\t\t\tnamespace,\n\t\t\t\tbuttonConfig,\n\t\t\t\tppcpConfig,\n\t\t\t\tbuttonAttributes\n\t\t\t);\n\t\t\tsetManager( newManager );\n\t\t}\n\t}, [\n\t\tpaypalLoaded,\n\t\tgooglePayLoaded,\n\t\tisEditing,\n\t\tmanager,\n\t\tbuttonAttributes,\n\t] );\n\n\tif ( isEditing ) {\n\t\treturn (\n\t\t\t
\n\t\t);\n\t}\n\n\treturn (\n\t\t
\n\t);\n};\n\nconst features = [ 'products' ];\n\nregisterExpressPaymentMethod( {\n\tname: buttonData.id,\n\ttitle: `PayPal - ${ buttonData.title }`,\n\tdescription: __(\n\t\t'Eligible users will see the PayPal button.',\n\t\t'woocommerce-paypal-payments'\n\t),\n\tgatewayId: 'ppcp-gateway',\n\tlabel:
,\n\tcontent:
,\n\tedit:
,\n\tariaLabel: buttonData.title,\n\tcanMakePayment: () => buttonData.enabled,\n\tsupports: {\n\t\tfeatures,\n\t\tstyle: [ 'height', 'borderRadius' ],\n\t},\n} );\n"],"names":["isMergeableObject","value","isNonNullObject","stringValue","Object","prototype","toString","call","$$typeof","REACT_ELEMENT_TYPE","isReactElement","isSpecial","Symbol","for","cloneUnlessOtherwiseSpecified","options","clone","deepmerge","val","Array","isArray","defaultArrayMerge","target","source","concat","map","element","getKeys","keys","getOwnPropertySymbols","filter","symbol","propertyIsEnumerable","getEnumerableOwnPropertySymbols","propertyIsOnObject","object","property","_","arrayMerge","sourceIsArray","destination","forEach","key","hasOwnProperty","propertyIsUnsafe","customMerge","getMergeFunction","mergeObject","all","array","Error","reduce","prev","next","deepmerge_1","module","exports","isCallable","tryToString","$TypeError","TypeError","argument","isConstructor","isPossiblePrototype","$String","String","wellKnownSymbol","create","defineProperty","UNSCOPABLES","ArrayPrototype","undefined","configurable","charAt","S","index","unicode","length","isPrototypeOf","it","Prototype","isObject","fails","ArrayBuffer","buffer","isExtensible","$forEach","STRICT_METHOD","arrayMethodIsStrict","callbackfn","this","arguments","bind","toObject","callWithSafeIterationClosing","isArrayIteratorMethod","lengthOfArrayLike","createProperty","getIterator","getIteratorMethod","$Array","arrayLike","O","IS_CONSTRUCTOR","argumentsLength","mapfn","mapping","result","step","iterator","iteratorMethod","done","toIndexedObject","toAbsoluteIndex","createMethod","IS_INCLUDES","$this","el","fromIndex","includes","indexOf","uncurryThis","IndexedObject","arraySpeciesCreate","push","TYPE","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","IS_FILTER_REJECT","NO_HOLES","that","specificCreate","self","boundFunction","some","every","find","findIndex","filterReject","V8_VERSION","SPECIES","METHOD_NAME","constructor","foo","Boolean","method","DESCRIPTORS","getOwnPropertyDescriptor","SILENT_ON_NON_WRITABLE_LENGTH_SET","writable","error","slice","originalArray","C","arraySpeciesConstructor","anObject","iteratorClose","fn","ENTRIES","ITERATOR","SAFE_CLOSING","called","iteratorWithReturn","from","exec","SKIP_CLOSING","ITERATION_SUPPORT","stringSlice","TO_STRING_TAG_SUPPORT","classofRaw","TO_STRING_TAG","$Object","CORRECT_ARGUMENTS","tag","tryGet","callee","defineBuiltIns","getWeakData","anInstance","isNullOrUndefined","iterate","ArrayIterationModule","hasOwn","InternalStateModule","setInternalState","set","internalStateGetterFor","getterFor","splice","id","uncaughtFrozenStore","state","frozen","UncaughtFrozenStore","entries","findUncaughtFrozen","store","get","entry","has","getConstructor","wrapper","CONSTRUCTOR_NAME","ADDER","Constructor","iterable","type","AS_ENTRIES","getInternalState","define","data","add","$","globalThis","isForced","defineBuiltIn","InternalMetadataModule","checkCorrectnessOfIteration","setToStringTag","inheritIfRequired","common","IS_WEAK","NativeConstructor","NativePrototype","exported","fixMethod","KEY","uncurriedNativeMethod","enable","instance","HASNT_CHAINING","THROWS_ON_PRIMITIVES","ACCEPT_ITERABLES","BUGGY_ZERO","$instance","dummy","clear","global","forced","setStrong","ownKeys","getOwnPropertyDescriptorModule","definePropertyModule","exceptions","f","i","F","getPrototypeOf","createPropertyDescriptor","bitmap","enumerable","ordinaryToPrimitive","hint","makeBuiltIn","name","descriptor","getter","setter","defineGlobalProperty","simple","unsafe","nonConfigurable","nonWritable","src","document","EXISTS","createElement","CSSRuleList","CSSStyleDeclaration","CSSValueList","ClientRectList","DOMRectList","DOMStringList","DOMTokenList","DataTransferItemList","FileList","HTMLAllCollection","HTMLCollection","HTMLFormElement","HTMLSelectElement","MediaList","MimeTypeArray","NamedNodeMap","NodeList","PaintRequestList","Plugin","PluginArray","SVGLengthList","SVGNumberList","SVGPathSegList","SVGPointList","SVGStringList","SVGTransformList","SourceBufferList","StyleSheetList","TextTrackCueList","TextTrackList","TouchList","classList","documentCreateElement","DOMTokenListPrototype","userAgent","test","Pebble","ENVIRONMENT","navigator","match","version","process","Deno","versions","v8","split","classof","userAgentStartsWith","string","Bun","window","$Error","replace","TEST","stack","V8_OR_CHAKRA_STACK_ENTRY","IS_V8_OR_CHAKRA_STACK","dropEntries","prepareStackTrace","createNonEnumerableProperty","clearErrorStack","ERROR_STACK_INSTALLABLE","captureStackTrace","copyConstructorProperties","targetProperty","sourceProperty","TARGET","GLOBAL","STATIC","stat","dontCallGetSet","sham","regexpExec","RegExpPrototype","RegExp","FORCED","SHAM","SYMBOL","DELEGATES_TO_SYMBOL","DELEGATES_TO_EXEC","execCalled","re","flags","nativeRegExpMethod","methods","nativeMethod","regexp","str","arg2","forceStringMethod","$exec","preventExtensions","NATIVE_BIND","FunctionPrototype","Function","apply","Reflect","aCallable","arraySlice","$Function","join","factories","partArgs","args","argsLength","list","construct","getDescriptor","PROPER","CONFIGURABLE","uncurryThisWithBind","namespace","obj","getMethod","Iterators","usingIterator","replacer","rawLength","keysLength","root","j","V","P","func","floor","Math","SUBSTITUTION_SYMBOLS","SUBSTITUTION_SYMBOLS_NO_NAMED","matched","position","captures","namedCaptures","replacement","tailPos","m","symbols","ch","capture","n","check","g","a","b","console","getBuiltIn","setPrototypeOf","Wrapper","NewTarget","NewTargetPrototype","functionToString","inspectSource","cause","hiddenKeys","getOwnPropertyNamesModule","getOwnPropertyNamesExternalModule","uid","FREEZING","REQUIRED","METADATA","setMetadata","objectID","weakData","meta","getOwnPropertyNames","fastKey","onFreeze","NATIVE_WEAK_MAP","shared","sharedKey","OBJECT_ALREADY_INITIALIZED","WeakMap","metadata","facade","STATE","enforce","documentAll","noop","constructorRegExp","INCORRECT_TO_STRING","isConstructorModern","isConstructorLegacy","feature","detection","normalize","POLYFILL","NATIVE","toLowerCase","USE_SYMBOL_AS_UID","$Symbol","Result","stopped","ResultPrototype","unboundFunction","iterFn","IS_RECORD","IS_ITERATOR","INTERRUPTED","stop","condition","callFn","kind","innerResult","innerError","IteratorPrototype","returnThis","IteratorConstructor","NAME","ENUMERABLE_NEXT","createIterResultObject","ITERATOR_HELPER","WRAP_FOR_VALID_ITERATOR","createIteratorProxyPrototype","nextHandler","returnMethod","inner","WrapForValidIteratorPrototype","IteratorHelperPrototype","IteratorProxy","record","counter","IS_PURE","FunctionName","createIteratorConstructor","IteratorsCore","PROPER_FUNCTION_NAME","CONFIGURABLE_FUNCTION_NAME","BUGGY_SAFARI_ITERATORS","KEYS","VALUES","Iterable","DEFAULT","IS_SET","CurrentIteratorPrototype","getIterationMethod","KIND","defaultIterator","IterablePrototype","INCORRECT_VALUES_NAME","nativeIterator","anyNativeIterator","values","proto","getIteratorDirect","createIteratorProxy","mapper","PrototypeOfArrayIteratorPrototype","arrayIterator","toLength","enforceInternalState","CONFIGURABLE_LENGTH","TEMPLATE","arity","ceil","trunc","x","notify","toggle","node","promise","then","safeGetBuiltIn","macrotask","Queue","IS_IOS","IS_IOS_PEBBLE","IS_WEBOS_WEBKIT","IS_NODE","MutationObserver","WebKitMutationObserver","Promise","microtask","queue","flush","parent","domain","exit","head","enter","resolve","nextTick","createTextNode","observe","characterData","PromiseCapability","reject","$$resolve","$$reject","$default","trim","whitespaces","$parseInt","parseInt","hex","radix","objectKeys","getOwnPropertySymbolsModule","propertyIsEnumerableModule","$assign","assign","A","B","alphabet","chr","T","activeXDocument","definePropertiesModule","enumBugKeys","html","PROTOTYPE","SCRIPT","IE_PROTO","EmptyConstructor","scriptTag","content","LT","NullProtoObjectViaActiveX","write","close","temp","parentWindow","NullProtoObject","ActiveXObject","iframeDocument","iframe","JS","style","display","appendChild","contentWindow","open","Properties","V8_PROTOTYPE_DEFINE_BUG","defineProperties","props","IE8_DOM_DEFINE","toPropertyKey","$defineProperty","$getOwnPropertyDescriptor","ENUMERABLE","WRITABLE","Attributes","current","$getOwnPropertyNames","windowNames","getWindowNames","internalObjectKeys","CORRECT_PROTOTYPE_GETTER","ObjectPrototype","ARRAY_BUFFER_NON_EXTENSIBLE","$isExtensible","FAILS_ON_PRIMITIVES","names","$propertyIsEnumerable","NASHORN_BUG","uncurryThisAccessor","requireObjectCoercible","aPossiblePrototype","CORRECT_SETTER","__proto__","input","pref","valueOf","NativePromiseConstructor","NativePromisePrototype","SUBCLASSING","NATIVE_PROMISE_REJECTION_EVENT","PromiseRejectionEvent","FORCED_PROMISE_CONSTRUCTOR","PROMISE_CONSTRUCTOR_SOURCE","GLOBAL_CORE_JS_PROMISE","FakePromise","CONSTRUCTOR","REJECTION_EVENT","newPromiseCapability","promiseCapability","Target","Source","tail","item","R","re1","re2","regexpFlags","stickyHelpers","UNSUPPORTED_DOT_ALL","UNSUPPORTED_NCG","nativeReplace","nativeExec","patchedExec","UPDATES_LAST_INDEX_WRONG","lastIndex","UNSUPPORTED_Y","BROKEN_CARET","NPCG_INCLUDED","reCopy","group","raw","groups","sticky","charsAdded","strCopy","multiline","hasIndices","ignoreCase","dotAll","unicodeSets","regExpFlags","$RegExp","MISSED_STICKY","defineBuiltInAccessor","TAG","SHARED","mode","copyright","license","aConstructor","defaultConstructor","toIntegerOrInfinity","charCodeAt","CONVERT_TO_STRING","pos","first","second","size","codeAt","$RangeError","RangeError","count","Infinity","ltrim","rtrim","start","end","SymbolPrototype","TO_PRIMITIVE","NATIVE_SYMBOL","keyFor","$location","defer","channel","port","validateArgumentsLength","setImmediate","clearImmediate","Dispatch","MessageChannel","ONREADYSTATECHANGE","location","run","runner","eventListener","event","globalPostMessageDefer","postMessage","protocol","host","handler","now","port2","port1","onmessage","addEventListener","importScripts","removeChild","setTimeout","max","min","integer","number","len","isSymbol","exoticToPrim","toPrimitive","postfix","random","passed","required","path","wrappedWellKnownSymbolModule","WellKnownSymbolsStore","createWellKnownSymbol","withoutSetter","proxyAccessor","normalizeStringArgument","installErrorCause","installErrorStack","FULL_NAME","IS_AGGREGATE_ERROR","STACK_TRACE_LIMIT","OPTIONS_POSITION","ERROR_NAME","OriginalError","OriginalErrorPrototype","BaseError","WrappedError","message","doesNotExceedSafeInteger","arrayMethodHasSpeciesSupport","IS_CONCAT_SPREADABLE","IS_CONCAT_SPREADABLE_SUPPORT","isConcatSpreadable","spreadable","arg","k","E","$filter","$find","addToUnscopables","FIND","SKIPS_HOLES","$includes","defineIterator","ARRAY_ITERATOR","iterated","Arguments","$map","setArrayLength","properErrorOnNonWritableLength","argCount","nativeReverse","reverse","nativeSlice","HAS_SPECIES_SUPPORT","fin","Date","NaN","toJSON","toISOString","pv","isFinite","dateToPrimitive","DatePrototype","wrapErrorConstructorWithCause","WEB_ASSEMBLY","WebAssembly","exportGlobalErrorCauseWrapper","exportWebAssemblyErrorCauseWrapper","init","NativeIterator","defineIteratorPrototypeAccessor","Iterator","predicate","real","getReplacerFunction","$stringify","numberToString","tester","low","hi","WRONG_SYMBOLS_CONVERSION","ILL_FORMED_UNICODE","stringifyWithSymbolsFix","$replacer","fixIllFormed","offset","stringify","space","JSON","thisNumberValue","NUMBER","NativeNumber","PureNumberNamespace","NumberPrototype","NumberWrapper","primValue","third","maxCode","digits","code","toNumber","toNumeric","wrap","Number","$repeat","repeat","nativeToFixed","toFixed","pow","acc","multiply","c","c2","divide","dataToString","s","t","fractionDigits","e","z","fractDigits","sign","x2","log","nativeGetOwnPropertyDescriptor","getOwnPropertyDescriptors","$getOwnPropertySymbols","nativeGetPrototypeOf","nativeKeys","newPromiseCapabilityModule","perform","capability","$promiseResolve","remaining","alreadyCalled","onRejected","Internal","OwnPromiseCapability","nativeThen","setSpecies","speciesConstructor","task","hostReportErrors","PromiseConstructorDetection","PROMISE","NATIVE_PROMISE_SUBCLASSING","getInternalPromiseState","PromiseConstructor","PromisePrototype","newGenericPromiseCapability","DISPATCH_EVENT","createEvent","dispatchEvent","UNHANDLED_REJECTION","isThenable","callReaction","reaction","exited","ok","fail","rejection","onHandleUnhandled","isReject","notified","reactions","onUnhandled","reason","initEvent","isUnhandled","emit","unwrap","internalReject","internalResolve","executor","onFulfilled","PromiseWrapper","race","r","capabilityReject","promiseResolve","PromiseConstructorWrapper","CHECK_WRAPPER","nativeConstruct","NEW_TARGET_BUG","ARGS_BUG","newTarget","$args","isDataDescriptor","propertyKey","receiver","nativeTest","$toString","getRegExpFlags","TO_STRING","nativeToString","NOT_GENERIC","INCORRECT_NAME","STRING_ITERATOR","point","fixRegExpWellKnownSymbolLogic","advanceStringIndex","getSubstitution","regExpExec","REPLACE","stringIndexOf","REPLACE_KEEPS_$0","REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE","maybeCallNative","UNSAFE_SUBSTITUTE","searchValue","replaceValue","rx","res","functionalReplace","fullUnicode","results","accumulatedResult","nextSourcePosition","replacerArgs","defineWellKnownSymbol","nativeObjectCreate","getOwnPropertyNamesExternal","defineSymbolToPrimitive","HIDDEN","QObject","nativeDefineProperty","nativeGetOwnPropertyNames","nativePropertyIsEnumerable","AllSymbols","ObjectPrototypeSymbols","USE_SETTER","findChild","fallbackDefineProperty","ObjectPrototypeDescriptor","setSymbolDescriptor","description","$defineProperties","properties","IS_OBJECT_PROTOTYPE","useSetter","useSimple","NativeSymbol","EmptyStringDescriptionStore","SymbolWrapper","thisSymbolValue","symbolDescriptiveString","desc","NATIVE_SYMBOL_REGISTRY","StringToSymbolRegistry","SymbolToStringRegistry","sym","InternalWeakMap","collection","collectionWeak","isFrozen","isSealed","freeze","seal","IS_IE11","$WeakMap","WeakMapPrototype","nativeSet","nativeDelete","nativeHas","nativeGet","frozenArray","arrayIntegrityLevel","DOMIterables","handlePrototype","CollectionPrototype","COLLECTION_NAME","ArrayIteratorMethods","ArrayValues","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","__esModule","d","definition","o","prop","loadCustomScript","PromisePonyfill","validateArguments","url","attributes","_a","onSuccess","onError","newScript","defaultError","fetch","response","status","text","parseMessage","originalErrorText","parseErrorMessage","catch","err","setAttribute","createScriptElement","onerror","onload","insertBefore","firstElementChild","sdkBaseUrl","params","queryString","optionsWithStringIndex","accumulator","indexOfMatch","substring","dataAttributes","queryParams","existingWindowNamespace","currentScript","querySelector","nextScript","currentScriptClone","cloneNode","dataset","uidAuto","isExactMatch","newWindowNamespace","dataClientIdAttributeHandler","scriptOptions","config","callback","errorCallback","endpoint","headers","credentials","body","nonce","json","token","validateToken","user","getTime","expiration","sessionStorage","setItem","loadScript","paypal","widgetBuilder","buttons","Map","messages","renderEventName","ppcpWidgetBuilderStatus","jQuery","off","on","renderAll","setPaypal","trigger","registerButtons","sanitizeWrapper","toKey","renderButtons","hasRendered","btn","Buttons","isEligible","delete","buildWrapperTarget","render","renderAllButtons","registerMessages","renderMessages","amount","Messages","renderAllMessages","selector","hasChildNodes","$wrapper","itemClass","$item","append","randomUUID","crypto","getRandomValues","rnds8","Uint8Array","rng","byteToHex","buf","rnds","arr","unsafeStringify","processConfig","output","toUpperCase","keysToCamelCase","url_params","script_attributes","merge","axoOptions","sdkClientToken","axo","sdk_client_token","uuid","uuidv4","is_logged","processAxoConfig","userIdTokenOptions","userIdToken","save_payment_methods","id_token","processUserIdToken","loadedScripts","scriptPromises","loadPayPalScript","async","dataClientIdResult","data_client_id","set_attribute","vault_v3_enabled","handleDataClientIdAttribute","scriptPromise","script","finally","ppcpResources","ButtonModuleWatcher","contextBootstrapRegistry","contextBootstrapWatchers","watchContextBootstrap","callable","registerContextBootstrap","context","ButtonEvents","INVALIDATE","RENDER","REDRAW","combineStyles","ppcpConfig","buttonConfig","Default","MiniCart","mini_cart_style","isValidButtonEvent","observeButtonEvent","paymentMethod","fullEventName","ConsoleLogger","prefixes","enabled","label","groupEnd","ApmButtons","selectorInContainer","containers","reloadContainers","resize","refresh","ev","observeElementsCallback","childList","subtree","mutationsList","observer","observeSelector","shouldReload","mutation","addedNodes","matches","each","$el","is","container","$container","width","removeClass","addClass","$firstElement","children","css","height","margin","round","PaymentMethods","PaymentContext","Cart","Checkout","BlockCart","BlockCheckout","Product","PayNow","Preview","Blocks","Gateways","getCurrentPaymentMethod","getElement","selectorOrElement","PaymentButton","static","createButton","externalHandler","contextHandler","buttonAttributes","buttonInstances","getInstances","collectionKey","instanceKey","methodId","button","getWrappers","getStyles","isDebugging","is_debug","methodName","addToDebuggingCollection","ppcpPaymentButtonList","applyButtonStyles","registerValidationRules","apmButtonsInit","ppcpApmButtons","initEventListeners","cssClass","isInitialized","requiresShipping","shippingAllowed","wrappers","wrapperId","isSeparateGateway","Gateway","Block","isInsideClassicGateway","is_wc_gateway_enabled","isCurrentGateway","currentMethod","isPreview","newState","triggerRedraw","isVisible","isEnabled","wrapperElement","getElementById","ppcpButtonWrapperSelector","mini_cart_wrapper","isPresent","HTMLElement","isButtonAttached","parentElement","tagName","logGroup","errorMessage","shouldPass","invalidIf","validIf","validateConfiguration","silent","configure","reinit","showPaymentGateway","Event","dispatchButtonEvent","syncProductButtonsState","ppcpButton","offsetWidth","offsetHeight","getClientRects","hasClass","isDisabled","parentMethod","applyWrapperStyles","addButton","styleSelector","wrapperSelector","paymentMethodLi","querySelectorAll","remove","shape","classItem","newClasses","form","setEnabled","triggerEnabled","action","stopImmediatePropagation","$form","triggerDisabled","insertButton","removeButton","Exception","UpdatePaymentData","_classCallCheck","paymentData","_this","success","FIELD_MAP","normalizePayerDetails","details","email_address","phone","surname","given_name","address","country_code","address_line_1","address_line_2","admin_area_1","admin_area_2","postal_code","payerData","payer","PayPalCommerceGateway","_PpcpPayerSessionDetails","formData","getElementValue","setNestedValue","phone_type","phone_number","national_number","getCheckoutBillingDetails","firstPayer","secondPayer","mergeNestedObjects","mergePayerDetails","setPayerData","payerDetails","updateCheckoutForm","getNestedValue","setValue","field","sanitizeKey","deserializeEntry","serialized","payload","parse","expires","calculateExpiration","timeToLive","LocalStorage","canUseLocalStorage","localStorage","startsWith","getItem","removeItem","sanitizedName","testKey","checkLocalStorageAvailability","serializeEntry","entryKey","itemKey","GooglePayStorage","_LocalStorage","_callSuper","_inherits","PAYER","PAYER_TTL","_defineProperty","_regeneratorRuntime","asyncIterator","u","toStringTag","Generator","Context","makeInvokeMethod","tryCatch","h","l","y","GeneratorFunction","GeneratorFunctionPrototype","p","v","defineIteratorMethods","_invoke","AsyncIterator","invoke","_typeof","__await","callInvokeWithMethodAndArg","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","return","resultName","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","reset","isNaN","displayName","isGeneratorFunction","mark","awrap","pop","rval","handle","complete","finish","delegateYield","asyncGeneratorStep","_asyncToGenerator","_next","_throw","_objectSpread","_defineProperties","_toPropertyKey","_isNativeReflectConstruct","_superPropGet","_get","_getPrototypeOf","_superPropBase","_setPrototypeOf","_classPrivateFieldInitSpec","_checkPrivateRedeclaration","_toPrimitive","_classPrivateFieldSet","_assertClassBrand","_classPrivateFieldGet","_paymentsClient","_transactionInfo","_button","_configureStartTime","_maxWaitTime","_storedButtonAttributes","GooglepayButton","_PaymentButton","ReferenceError","_assertThisInitialized","_possibleConstructorReturn","onPaymentAuthorized","onPaymentDataChanged","onButtonClick","_this$buttonConfig$sh","shipping","_window$google","google","payments","api","newTransactionInfo","_this2","environment","googlePayConfig","transactionInfo","_this2$contextHandler","validateContext","_this2$buttonAttribut","_this2$buttonAttribut2","borderRadius","apiConfig","_this3","allowedPaymentMethods","baseCardPaymentMethod","_this4","createPaymentsClient","paymentsClient","isReadyToPay","buildReadyToPayRequest","callbacks","googlePayApi","preparePaymentDataCallbacks","PaymentsClient","paymentDataCallbacks","baseRequest","_this$buttonAttribute","_classPrivateFieldGet2","_this$buttonAttribute2","_this$style","color","buttonOptions","buttonColor","buttonSizeMode","buttonLocale","language","buttonType","buttonRadius","onClick","_this$buttonAttribute3","minHeight","_this5","validateForm","ppcpFundingSource","paymentDataRequest","loadPaymentData","useShippingCallback","callbackIntents","apiVersion","apiVersionMinor","finalObject","merchantInfo","emailRequired","shippingAddressRequired","shippingOptionRequired","shippingAddressParameters","allowedCountryCodes","countries","phoneNumberRequired","_this6","_ref","_callee","_updatedData$shipping","paymentDataRequestUpdate","updatedData","hasRealCart","_paymentData$shipping","_paymentData$shipping2","_context","ajax","update_payment_data","update","countryCode","currency_code","currencyCode","shipping_options","shippingOptions","unserviceableShippingAddressError","callbackTrigger","newShippingOptionParameters","sanitizeShippingOptions","total","setTotal","shipping_fee","syncShippingOptionWithForm","shippingOptionData","shippingFee","getShippingCosts","calculateNewTransactionInfo","t0","_x","_x2","responseData","cleanOptions","defaultOptionId","defaultSelectedOptionId","shippingId","_ref2","_ref2$shippingOptions","_ref2$defaultSelected","findOptionById","option","currentOption","cost","intent","processPayment","_processPayment","_callee6","paymentError","checkPayPalApproval","approveOrderServerSide","processPaymentPromise","addBillingDataToSession","_this7","_context6","_response$paymentMeth","paymentMethodData","info","billingAddress","email","address1","address2","administrativeArea","locality","postalCode","processPaymentResponse","_ref3","_callee2","orderId","confirmationData","confirmOrderResponse","_context2","Googlepay","confirmOrder","_x4","_ref4","_callee3","orderID","isApproved","_context3","approveOrder","restart","order","_x5","_ref5","_callee4","_context4","createOrder","_x6","moduleStorage","setPayer","_ref6","_callee5","_context5","_x7","_x3","transactionState","shippingOption","sanitizedShippingOption","_i","_wrappers","radioInput","click","_i2","_wrappers2","selectOption","selectElement","closest","_buttonConfig$button","_buttonConfig$button2","_ppcpConfig$button","defaultId","miniCartId","smartButtonId","blockId","gatewayId","sanitize","SmartButton","combineWrapperIds","styles","quantity","variations","extra","booking","super","onApprove","errorHandler","actions","canCreateOrder","vaultingEnabled","paymentSource","approve_order","order_id","funding_source","should_create_wc_order","approveData","genericError","orderReceivedUrl","order_received_url","href","redirect","cartItemKeys","getEndpoint","ajaxUrl","wc_cart_fragments_params","wc_ajax_url","addFromPurchaseUnits","purchaseUnits","purchaseUnit","items","cart_item_key","removeFromCart","numRequests","numResponses","tryToResolve","cartItemKey","URLSearchParams","FormHelper","getPrefixedFields","formElement","prefix","FormData","fields","getFilteredFields","exactFilters","prefixFilters","counters","prefixFilter","updateCart","cartHelper","subscriptionsConfiguration","subscription_plan","createSubscription","subscription","plan_id","approve_subscription","subscription_id","subscriptionID","products","getSubscriptionProducts","change_cart","extraFields","configuration","refreshMiniCart","isBookingProduct","onCancel","cleanCart","getProducts","BookingProduct","isGroupedProduct","elementName","getAttribute","qty","purchase_units","CartHelper","bnCode","bn_codes","create_order","bn_code","payment_method","updateCartOptions","hasVariations","contains","simulate","onResolve","resolved","genericErrorText","appendPreparedErrorMessageElement","errorMessageElement","_getMessageContainer","replaceWith","_addMessage","_scrollToMessages","texts","currentHtml","outerHTML","messageContainer","messageNode","_prepareMessageElement","scroll_to_notices","prepend","li","innerHTML","subscription_plan_id","TransactionInfo","currency","country","_country","_currency","_amount","_shippingFee","toAmount","newAmount","newCost","totalPriceStatus","totalPrice","BaseHandler","_this$ppcpConfig","locations_with_subscription_product","cart","configured","cart_script_params","transaction","actionHandler","CartActionHandler","ErrorHandler","labels","generic","_BaseHandler","SingleProductHandler","product","SingleProductActionHandler","has_subscriptions","paypal_subscriptions_enabled","SimulateCart","simulate_cart","keepShipping","UpdateCart","CartHandler","setTarget","block","overlayCSS","background","opacity","unblock","w","q","D","G","H","J","throw","I","K","L","Blob","M","N","File","Q","XMLHttpRequest","send","Request","U","sendBeacon","Element","W","lastModified","escape","X","elements","disabled","files","selected","checked","getAll","_asNative","_blob","matchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector","webkitMatchesSelector","ownerDocument","Y","setRequestHeader","spinner","FormValidator","validate","form_encoded","errors","Spinner","formSelector","formValidator","early_checkout_validation_enabled","validate_checkout","createaccount","fundingSource","savePaymentMethod","save_payment_method","domParser","DOMParser","parseFromString","issue","custom_id","CheckoutHandler","CheckoutActionHandler","CartBlockHandler","CheckoutBlockHandler","MiniCartHandler","PayNowHandler","payorder","pay_now","PreviewHandler","ContextHandlerFactory","externalActionHandler","GooglepayManager","buttonModuleWatcher","bootstrap","initButton","_init","_iterator","_step","fetchTransactionInfo","_createForOfIteratorHelper","_fetchTransactionInfo","_step2","_iterator2","componentDocument","googlepayConfig","_buttonStyles$Default2","_useState2","useState","googlepayButton","setGooglepayButton","buttonStyles","useMemo","_styles$MiniCart","useButtonStyles","useEffect","_componentDocument$de","_buttonStyles$Default","defaultView","googlePayButtonOptions","preventDefault","containerStyles","_arrayLikeToArray","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","isPayPalLoaded","setIsPayPalLoaded","components","isGooglepayLoaded","setIsGooglepayLoaded","injectScriptToFrame","scriptSrc","loadGooglepayScript","sdk_url","setGooglePayConfig","fetchConfig","componentFrame","setComponentFrame","usePayPalScript","useGooglepayScript","useGooglepayConfig","_useGooglepayApiToGen","useGooglepayApiToGenerateButton","React","Fragment","ref","firstChild","wc","wcSettings","getSetting","scriptData","buttonData","GooglePayComponent","isEditing","_slicedToArray","paypalLoaded","setPaypalLoaded","_useState4","googlePayLoaded","setGooglePayLoaded","_useState6","manager","setManager","newManager","GooglepayManagerBlockEditor","className","registerExpressPaymentMethod","title","__","dangerouslySetInnerHTML","__html","edit","ariaLabel","canMakePayment","supports","features"],"sourceRoot":""}