{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./node_modules/@stimulus/core/dist/src/event_listener.js","webpack:///./node_modules/@stimulus/core/dist/src/dispatcher.js","webpack:///./node_modules/@stimulus/core/dist/src/action_descriptor.js","webpack:///./node_modules/@stimulus/core/dist/src/action.js","webpack:///./node_modules/@stimulus/core/dist/src/binding.js","webpack:///./node_modules/@stimulus/mutation-observers/dist/src/element_observer.js","webpack:///./node_modules/@stimulus/mutation-observers/dist/src/attribute_observer.js","webpack:///./node_modules/@stimulus/multimap/dist/src/set_operations.js","webpack:///./node_modules/@stimulus/multimap/dist/src/multimap.js","webpack:///./node_modules/@stimulus/multimap/dist/src/indexed_multimap.js","webpack:///./node_modules/@stimulus/mutation-observers/dist/src/token_list_observer.js","webpack:///./node_modules/@stimulus/mutation-observers/dist/src/value_list_observer.js","webpack:///./node_modules/@stimulus/core/dist/src/binding_observer.js","webpack:///./node_modules/@stimulus/core/dist/src/context.js","webpack:///./node_modules/@stimulus/core/dist/src/definition.js","webpack:///./node_modules/@stimulus/core/dist/src/module.js","webpack:///./node_modules/@stimulus/core/dist/src/data_map.js","webpack:///./node_modules/@stimulus/core/dist/src/selectors.js","webpack:///./node_modules/@stimulus/core/dist/src/target_set.js","webpack:///./node_modules/@stimulus/core/dist/src/scope.js","webpack:///./node_modules/@stimulus/core/dist/src/scope_observer.js","webpack:///./node_modules/@stimulus/core/dist/src/router.js","webpack:///./node_modules/@stimulus/core/dist/src/schema.js","webpack:///./node_modules/@stimulus/core/dist/src/application.js","webpack:///./node_modules/@stimulus/core/dist/src/target_properties.js","webpack:///./node_modules/@stimulus/core/dist/src/controller.js","webpack:///./app/javascript/images/index.js","webpack:///./node_modules/bootstrap.native/dist/bootstrap-native.js","webpack:///(webpack)/buildin/global.js","webpack:///./app/javascript/images/baslow1.jpg","webpack:///./app/javascript/images/baslow2.jpg","webpack:///./app/javascript/images/baslow3.jpg","webpack:///./app/javascript/images/baslow4.jpg","webpack:///./app/javascript/images/logo.png","webpack:///./app/javascript/images/menu.png","webpack:///./app/javascript/images/waymarker.png","webpack:///./app/javascript/packs/application.js","webpack:///./node_modules/@rails/ujs/lib/assets/compiled/rails-ujs.js","webpack:///./node_modules/turbolinks/dist/turbolinks.js","webpack:///./node_modules/@rails/activestorage/app/assets/javascripts/activestorage.esm.js","webpack:///./node_modules/trix/dist/trix.esm.min.js","webpack:///./node_modules/@rails/actiontext/app/assets/javascripts/actiontext.js","webpack:///./app/javascript/channels/index.js","webpack:///./app/javascript/channels sync _channel\\.js$","webpack:///./app/javascript/bootstrap.js","webpack:///./app/javascript/controllers sync _controller\\.js$","webpack:///./app/javascript/controllers/braintree_controller.js","webpack:///./node_modules/braintree-web-drop-in/dist/browser/dropin.js","webpack:///./app/javascript/controllers/countdown_controller.js","webpack:///./app/javascript/controllers/fra_controller.js","webpack:///./app/javascript/controllers/paypal_controller.js","webpack:///./app/javascript/controllers/toggler_controller.js","webpack:///./app/javascript/images sync ^\\.\\/.*$","webpack:///./app/javascript/styles/index.js","webpack:///./app/javascript/controllers/index.js","webpack:///./node_modules/@stimulus/webpack-helpers/dist/index.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","EventListener","eventTarget","eventName","this","unorderedBindings","Set","connect","addEventListener","disconnect","removeEventListener","bindingConnected","binding","add","bindingDisconnected","delete","handleEvent","event","extendedEvent","stopImmediatePropagation_1","stopImmediatePropagation","assign","immediatePropagationStopped","extendEvent","_i","_a","bindings","length","Array","from","sort","left","right","leftIndex","index","rightIndex","configurable","Dispatcher","application","eventListenerMaps","Map","started","start","eventListeners","forEach","eventListener","stop","values","reduce","listeners","map","concat","fetchEventListenerForBinding","handleError","error","message","detail","fetchEventListener","eventListenerMap","fetchEventListenerMapForEventTarget","createEventListener","set","descriptorPattern","parseEventTarget","eventTargetName","window","document","Action","element","descriptor","tagName","toLowerCase","defaultEventNames","getDefaultEventNameForElement","identifier","methodName","forToken","token","descriptorString","content","matches","trim","match","toString","eventNameSuffix","e","getAttribute","Error","Binding","context","action","willBeInvokedByEvent","invokeWithEvent","method","controller","target","Element","contains","scope","containsElement","ElementObserver","delegate","_this","elements","mutationObserver","MutationObserver","mutations","processMutations","observe","attributes","childList","subtree","refresh","takeRecords","matchElementsInTree","has","removeElement","_b","_c","addElement","mutations_1","mutation","processMutation","type","processAttributeChange","attributeName","processRemovedNodes","removedNodes","processAddedNodes","addedNodes","node","elementAttributeChanged","matchElement","nodes","elementFromNode","processTree","elementIsActive","tree","processor","nodeType","Node","ELEMENT_NODE","isConnected","elementMatched","elementUnmatched","AttributeObserver","elementObserver","hasAttribute","querySelectorAll","selector","elementMatchedAttribute","elementUnmatchedAttribute","elementAttributeValueChanged","fetch","del","size","prune","extendStatics","Multimap","valuesByKey","hasKey","hasValue","some","getValuesForKey","getKeysForValue","filter","__extends","setPrototypeOf","__proto__","b","__","constructor","_super","IndexedMultimap","keysByValue","keys","TokenListObserver","attributeObserver","tokensByElement","tokensMatched","readTokensForElement","refreshTokensForElement","unmatchedTokens","matchedTokens","tokensUnmatched","tokens","tokenMatched","tokenUnmatched","previousTokens","currentTokens","firstDifferingIndex","Math","max","_","findIndex","tokensAreEqual","slice","tokenString","split","parseTokenString","ValueListObserver","tokenListObserver","parseResultsByToken","WeakMap","valuesByTokenByElement","fetchParseResultForToken","fetchValuesByTokenForElement","elementMatchedValue","elementUnmatchedValue","parseResult","parseToken","valuesByToken","parseValueForToken","BindingObserver","bindingsByAction","valueListObserver","actionAttribute","disconnectAllActions","schema","connectAction","disconnectAction","clear","Context","controllerConstructor","bindingObserver","dispatcher","initialize","parentElement","blessControllerConstructor","extend","bless","extendWithReflect","Controller","_newTarget","Reflect","construct","arguments","a","apply","Module","definition","blessDefinition","contextsByScope","connectedContexts","connectContextForScope","fetchContextForScope","disconnectContextForScope","DataMap","getFormattedKey","setAttribute","removeAttribute","replace","char","attributeValueContainsToken","TargetSet","targetName","find","targetNames","getSelectorForTargetNames","findElement","findAll","findAllElements","getSelectorForTargetName","join","targetDescriptor","targetAttribute","Scope","targets","data","head","tail","filterElements","closest","controllerSelector","controllerAttribute","ScopeObserver","scopesByIdentifierByElement","scopeReferenceCounts","scopesByIdentifier","fetchScopesByIdentifierForElement","referenceCount","scopeConnected","scopeDisconnected","Router","scopeObserver","modulesByIdentifier","contexts","loadDefinition","unloadIdentifier","connectModule","disconnectModule","getContextForElementAndIdentifier","defaultSchema","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","step","next","rejected","result","done","then","__generator","body","f","y","g","label","sent","trys","ops","verb","iterator","v","op","TypeError","pop","push","Application","documentElement","router","readyState","register","load","rest","isArray","unload","getControllerForElementAndIdentifier","console","defineTargetProperties","ancestors","getPrototypeOf","getAncestorsForConstructor","getOwnTargetNamesForConstructor","getTargetNamesForConstructor","properties","charAt","toUpperCase","capitalize","require","_slicedToArray","arr","_arrayWithHoles","_s","_e","_x","_r","_arr","_n","_d","err","return","_iterableToArrayLimit","minLen","_arrayLikeToArray","test","_unsupportedIterableToArray","_nonIterableRest","len","arr2","ownKeys","enumerableOnly","getOwnPropertySymbols","symbols","sym","getOwnPropertyDescriptor","_defineProperty","obj","arg","input","hint","prim","toPrimitive","undefined","res","String","Number","_toPrimitive","_toPropertyKey","writable","transitionEndEvent","style","supportTransition","transitionDuration","transitionProperty","getElementTransitionDuration","computedStyle","getComputedStyle","propertyValue","durationValue","durationScale","includes","duration","parseFloat","isNaN","emulateTransitionEnd","handler","called","endEvent","Event","transitionEndWrapper","setTimeout","dispatchEvent","queryElement","parent","lookUp","querySelector","hasClass","classNAME","classList","removeClass","remove","fadeClass","showClass","dataBsDismiss","bootstrapCustomEvent","namespacedEventType","eventProperties","OriginalCustomEvent","CustomEvent","cancelable","normalizeValue","normalizeOptions","defaultOps","inputOps","normalOps","dataOps","source","getOwnPropertyDescriptors","defineProperties","_objectSpread","dataset","k","BaseComponent","defaults","config","self","dispose","options","prop","alertString","alertComponent","alertSelector","alertDismissSelector","closeAlertEvent","closedAlertEvent","alertTransitionEnd","relatedTarget","toggleAlertHandler","parentNode","removeChild","dismiss","close","Alert","super","defaultPrevented","addClass","init","component","activeClass","dataBsToggle","buttonComponent","buttonSelector","ariaPressed","toggleButtonHandler","toggle","Button","isActive","preventDefault","ariaValue","passiveHandler","opts","wrap","passive","reflow","offsetHeight","isElementInScrollRange","bcr","getBoundingClientRect","viewportHeight","innerHeight","clientHeight","top","bottom","carouselString","carouselComponent","carouselSelector","carouselControl","carouselItem","dataBsSlideTo","pausedClass","defaultCarouselOptions","pause","keyboard","touch","interval","startX","currentX","endX","carouselSlideEvent","carouselSlidEvent","carouselTransitionEndHandler","direction","slides","isAnimating","activeItem","getActiveIndex","orientation","directionClass","hidden","cycle","carouselPauseHandler","clearInterval","timer","carouselResumeHandler","isPaused","carouselIndicatorHandler","newIndex","to","carouselControlsHandler","that","controls","prev","carouselKeyHandler","_ref","which","x","carouselTouchDownHandler","isTouch","changedTouches","pageX","toggleCarouselTouchHandlers","carouselTouchMoveHandler","carouselTouchEndHandler","abs","activateCarouselIndicator","pageIndex","indicators","toggleCarouselHandlers","indicator","arrow","indexOf","getElementsByClassName","Carousel","setInterval","idx","itemClasses","slide","ariaExpanded","collapsingClass","dataBsTarget","dataBsParent","dataBsContainer","getTargetElement","collapseString","collapseComponent","collapseSelector","collapseToggleSelector","showCollapseEvent","shownCollapseEvent","hideCollapseEvent","hiddenCollapseEvent","expandCollapse","triggers","height","scrollHeight","btn","collapseContent","toggleCollapseHandler","collapseClickHandler","trigger","Collapse","related","hide","show","activeCollapse","activeCollapseInstance","dropdownMenuClasses","dropdownMenuClass","isEmptyAnchor","elem","parentAnchor","href","setFocus","focus","dropdownString","dropdownComponent","dropdownSelector","dropupString","dropstartString","dropendString","dropdownMenuEndClass","hideMenuClass","verticalClass","horizontalClass","defaultDropdownOptions","offset","display","showDropdownEvent","shownDropdownEvent","hideDropdownEvent","hiddenDropdownEvent","styleDropdown","menu","originalClass","menuEnd","className","positionClass","dropdownMargin","dropdown","dropup","dropstart","dropend","dropdownPosition","dropdownRegex","RegExp","elementDimensions","w","offsetWidth","h","menuDimensions","HTML","BD","windowWidth","clientWidth","windowHeight","targetBCR","leftExceed","leftFullExceed","rightExceed","rightFullExceed","bottomExceed","bottomFullExceed","topExceed","btnGroup","margin","position","menuEndAction","toggleDropdownDismiss","open","dropdownDismissHandler","dropdownPreventScroll","dropdownKeyHandler","dropdownLayoutHandler","toggleDropdownHandler","dropdownClickHandler","getCurrentOpenDropdown","currentParent","children","hasData","isForm","_ref2","menuItems","activeElement","isSameElement","isInsideMenu","isMenuItem","Dropdown","child","currentElement","getElementsByTagName","ariaHidden","ariaModal","fixedTopClass","fixedBottomClass","stickyTopClass","fixedItems","resetScrollbar","bd","paddingRight","overflow","fixed","marginRight","measureScrollbar","innerWidth","setScrollbar","scrollbarWidth","isOpen","bodyPad","parseInt","sbWidth","isSticky","itemPadValue","itemMValue","modalOpenClass","modalBackdropClass","modalActiveSelector","offcanvasActiveSelector","overlay","createElement","getCurrentOpen","appendOverlay","hasFade","appendChild","showOverlay","hideOverlay","removeOverlay","isVisible","visibility","offsetParent","modalString","modalComponent","modalSelector","modalToggleSelector","modalDismissSelector","modalStaticClass","modalDefaultOptions","backdrop","showModalEvent","shownModalEvent","hideModalEvent","hiddenModalEvent","setModalScrollbar","html","openModal","bodyOverflow","modalOverflow","toggleModalDismiss","update","modalDismissHandler","modalKeyHandler","toggleModalHandler","modalClickHandler","afterModalHide","visibleTrigger","afterModalShow","beforeModalShow","beforeModalHide","force","currentOpen","_ref3","isStatic","modalDialog","selectedText","getSelection","targetInsideDialog","staticTransitionEnd","Modal","overlayDelay","Offcanvas","offcanvasString","offcanvasComponent","OffcanvasSelector","offcanvasToggleSelector","offcanvasDismissSelector","offcanvasTogglingClass","offcanvasDefaultOptions","scroll","showOffcanvasEvent","shownOffcanvasEvent","hideOffcanvasEvent","hiddenOffcanvasEvent","setOffCanvasScrollbar","openOffCanvas","toggleOffcanvasEvents","offcanvasTriggerHandler","toggleOffCanvasDismiss","offcanvasKeyDismissHandler","offcanvasDismissHandler","beforeOffcanvasShow","showOffcanvasComplete","beforeOffcanvasHide","blur","hideOffcanvasComplete","offCanvasDismiss","_ref4","ariaDescribedBy","tipClassPositions","isVisibleTip","tip","container","isMedia","SVGElement","HTMLImageElement","HTMLVideoElement","mediaType","closestRelative","retval","el","styleTip","tipClasses","tooltip","popover","isPopover","tipDimensions","placement","parentIsBody","targetPosition","parentPosition","staticParent","relativeParent","relContainer","parentRect","leftBoundry","rightBoundry","absoluteTarget","targetRect","pageXOffset","pageYOffset","scrollLeft","scrollTop","elemDimensions","offsetTop","offsetLeft","topPosition","leftPosition","rightPosition","arrowTop","arrowLeft","arrowRight","arrowWidth","arrowHeight","arrowAdjust","eX","layerX","eY","layerY","pageY","clientX","bsnUID","getUID","getTipContainer","modal","navbarFixed","popoverString","popoverComponent","popoverSelector","popoverDefaultOptions","template","title","sanitizeFn","customClass","dismissible","animation","delay","isIphone","navigator","userAgent","popoverHeaderClass","popoverBodyClass","popoverCloseButton","showPopoverEvent","shownPopoverEvent","hidePopoverEvent","hiddenPopoverEvent","popoverForceFocus","popoverTouchHandler","_ref5","createPopover","id","placementClass","popoverTemplate","innerHTML","firstChild","popoverHeader","popoverBody","removePopover","togglePopoverHandlers","enabled","dismissHandlerToggle","btnClose","popoverShowTrigger","popoverHideTrigger","Popover","clearTimeout","dPopover","dEl","_self","enable","disable","toggleEnabled","scrollspyComponent","scrollspySelector","scrollSpyDefaultOptions","activateScrollSpy","updateSpyTargets","scrollTarget","isWindow","itemsLength","links","getScrollHeight","targetItem","rect","items","offsets","maxScroll","getOffsetHeight","link","_ref6","item","activate","parents","parentItem","menuItem","parentLink","previousElementSibling","toggleSpyHandlers","ScrollSpy","newActiveItem","ariaSelected","tabString","tabComponent","tabSelector","showTabEvent","shownTabEvent","hideTabEvent","hiddenTabEvent","nextTab","nextTabContent","nextTabHeight","activeTab","activeTabContent","tabContainerHeight","tabEqualContents","triggerTabEnd","tabContent","nav","triggerTabShow","triggerTabHide","float","getActiveTab","_ref7","activeTabs","_activeTabs","getActiveTabContent","toggleTabHandler","tabClickHandler","Tab","toastString","toastComponent","toastSelector","toastDismissSelector","showingClass","hideClass","toastDefaultOptions","autohide","showToastEvent","hideToastEvent","shownToastEvent","hiddenToastEvent","showToastComplete","hideToastComplete","closeToast","openToast","toggleToastHandler","completeDisposeToast","Toast","noTimer","dataOriginalTitle","tooltipString","tooltipComponent","tooltipSelector","titleAttr","tooltipInnerClass","tooltipDefaultOptions","showTooltipEvent","shownTooltipEvent","hideTooltipEvent","hiddenTooltipEvent","createTooltip","titleString","tooltipMarkup","removeTooltip","disposeTooltipComplete","toggleTooltipHandlers","toggleTooltipTitle","toggleTooltipAction","tooltipTouchHandler","tooltipShownAction","tooltipHiddenAction","titleAtt","_ref8","Tooltip","version","componentsInit","initializeDataAPI","Konstructor","collection","initCallback","comp","_componentsInit$comp","once","Version","factory","Function","Rails","linkClickSelector","buttonClickSelector","exclude","inputChangeSelector","formSubmitSelector","formInputClickSelector","formDisableSelector","formEnableSelector","fileInputSelector","linkDisableSelector","buttonDisableSelector","nonce","loadCSPNonce","ref","cspNonce","expando","matchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector","webkitMatchesSelector","getData","setData","isContentEditable","isEditable","$","csrfParam","csrfToken","meta","CSRFProtection","xhr","setRequestHeader","refreshCSRFTokens","param","fire","params","evt","createEvent","initCustomEvent","bubbles","stopEverything","stopPropagation","eventType","AcceptHeaders","createXHR","prepareOptions","processResponse","text","xml","json","script","ajax","response","responseText","getResponseHeader","floor","status","success","statusText","complete","beforeSend","XMLHttpRequest","OPENED","send","url","location","dataType","accept","crossDomain","withCredentials","onreadystatechange","DONE","parser","JSON","parse","DOMParser","parseFromString","isCrossDomain","originAnchor","urlAnchor","protocol","host","toArray","serializeElement","additionalParam","inputs","disabled","option","selected","checked","encodeURIComponent","formElements","form","allowAction","handleConfirm","confirm","answer","callback","disableFormElement","disableFormElements","disableLinkElement","enableFormElement","enableFormElements","enableLinkElement","isXhrRedirect","handleDisabledElement","enableElement","disableElement","replacement","originalText","handleMethod","formContent","click","isRemote","handleRemote","button","enctype","FormData","append","args","formSubmitButtonClick","formNoValidate","preventInsignificantClick","insignificantMetaClick","metaKey","ctrlKey","jQuery","rails","ajaxPrefilter","originalOptions","_rails_loaded","Turbolinks","supported","history","pushState","requestAnimationFrame","visit","clearCache","setProgressBarDelay","copyObject","defer","throttle","dispatch","u","initEvent","uuid","random","Location","absoluteURL","hash","requestURL","anchor","getOrigin","getPath","getPathComponents","getLastPathComponent","getExtension","isHTML","isPrefixedBy","isEqualTo","toCacheKey","toJSON","valueOf","HttpRequest","requestCanceled","requestTimedOut","requestFailed","requestLoaded","requestProgressed","referrer","NETWORK_FAILURE","TIMEOUT_FAILURE","timeout","notifyApplicationBeforeRequestStart","setProgress","requestStarted","cancel","abort","lengthComputable","loaded","total","endRequest","requestCompletedWithResponse","failed","requestFailedWithStatusCode","notifyApplicationAfterRequestEnd","onprogress","onload","onerror","ontimeout","onabort","destroy","progress","requestFinished","ProgressBar","trickle","stylesheetElement","createStylesheetElement","progressElement","createProgressElement","defaultCSS","visible","installStylesheetElement","installProgressElement","startTrickling","hiding","fadeProgressElement","uninstallProgressElement","stopTrickling","setValue","insertBefore","width","opacity","trickleInterval","textContent","BrowserAdapter","showProgressBar","progressBar","visitProposedToLocationWithAction","startVisitToLocationWithAction","visitStarted","issueRequest","changeHistory","loadCachedSnapshot","visitRequestStarted","hasCachedSnapshot","showProgressBarAfterDelay","visitRequestProgressed","visitRequestCompleted","loadResponse","visitRequestFailedWithStatusCode","reload","visitRequestFinished","hideProgressBar","visitCompleted","followRedirect","pageInvalidated","progressBarTimeout","progressBarDelay","History","onPageLoad","onPopState","shouldHandlePopState","state","turbolinks","restorationIdentifier","historyPoppedToLocationWithRestorationIdentifier","pageLoaded","pageIsLoaded","HeadDetails","outerHTML","tracked","fromHeadElement","childNodes","hasElementWithKey","getTrackedElementSignature","getScriptElementsNotInDetails","getElementsMatchingTypeNotInDetails","getStylesheetElementsNotInDetails","getProvisionalElements","getMetaValue","findMetaElementByName","Snapshot","headDetails","bodyElement","fromHTMLString","fromHTMLElement","clone","cloneNode","getRootLocation","getSetting","getCacheControlValue","getElementForAnchor","getPermanentElements","getPermanentElementById","getPermanentElementsPresentInSnapshot","findFirstAutofocusableElement","hasAnchor","isPreviewable","isCacheable","isVisitable","Renderer","render","renderView","viewWillRender","newBody","viewRendered","invalidateView","viewInvalidated","createScriptElement","async","__super__","SnapshotRenderer","currentSnapshot","newSnapshot","isPreview","currentHeadDetails","newHeadDetails","currentBody","shouldRender","mergeHead","replaceBody","focusFirstAutofocusableElement","copyNewHeadStylesheetElements","copyNewHeadScriptElements","removeCurrentHeadProvisionalElements","copyNewHeadProvisionalElements","relocateCurrentBodyPermanentElements","activateNewBodyScriptElements","assignNewBody","replacePlaceholderElementsWithClonedPermanentElements","trackedElementsAreIdentical","getNewHeadStylesheetElements","getNewHeadScriptElements","getCurrentHeadProvisionalElements","getNewHeadProvisionalElements","getCurrentBodyPermanentElements","permanentElement","getNewBodyScriptElements","replaceChild","ErrorRenderer","newHead","replaceHeadAndBody","activateBodyScriptElements","getScriptElements","View","htmlElement","getSnapshot","snapshot","markAsPreview","renderSnapshot","renderError","ScrollManager","onScroll","scrollToElement","scrollIntoView","scrollToPosition","scrollTo","updatePosition","scrollPositionChanged","SnapshotCache","snapshots","read","put","write","splice","unshift","Visit","performScroll","adapter","timingMetrics","recordTimingMetric","request","cancelRender","fail","visitFailed","historyChanged","shouldIssueRequest","getCachedSnapshot","getCachedSnapshotForLocation","cacheSnapshot","visitRendered","redirectedToLocation","followedRedirect","replaceHistoryWithLocationAndRestorationIdentifier","scrolled","scrollToRestoredPosition","scrollToTop","scrollToAnchor","restorationData","scrollPosition","Date","getTime","getTimingMetrics","snapshotCached","frame","cancelAnimationFrame","clickBubbled","clickCaptured","view","scrollManager","startHistory","stopHistory","cache","applicationAllowsVisitingLocation","locationIsVisitable","getRestorationDataForIdentifier","startVisit","pushHistoryWithLocationAndRestorationIdentifier","shouldCacheSnapshot","notifyApplicationBeforeCachingSnapshot","lastRenderedLocation","getCurrentRestorationData","notifyApplicationBeforeRender","currentVisit","notifyApplicationAfterRender","notifyApplicationAfterPageLoad","clickEventIsSignificant","getVisitableLinkForNode","getVisitableLocationForLink","applicationAllowsFollowingLinkToLocation","getActionForLink","notifyApplicationAfterClickingLinkToLocation","notifyApplicationBeforeVisitingLocation","notifyApplicationAfterVisitingLocation","timing","createVisit","altKey","shiftKey","nodeIsVisitable","currentScript","warn","sparkMd5","undefined$1","hex_chr","md5cycle","md5blk","md5blks","charCodeAt","md5blk_array","md51","tmp","lo","hi","substring","md51_array","subarray","Uint8Array","rhex","j","hex","toUtf8","str","unescape","utf8Str2ArrayBuffer","returnUInt8Array","buff","ArrayBuffer","arrayBuffer2Utf8Str","fromCharCode","concatenateArrayBuffers","first","second","byteLength","buffer","hexToBinaryString","bytes","substr","SparkMD5","reset","clamp","val","min","num","targetArray","sourceArray","begin","end","appendBinary","contents","_buff","_length","_hash","raw","ret","_finish","getState","setState","hashBinary","fileSlice","File","mozSlice","webkitSlice","FileChecksum","static","file","chunkSize","chunkCount","ceil","chunkIndex","md5Buffer","fileReader","FileReader","fileReaderDidLoad","fileReaderDidError","readNextChunk","binaryDigest","base64digest","btoa","readAsArrayBuffer","root","eventInit","BlobRecord","checksum","filename","content_type","byte_size","responseType","requestDidLoad","requestDidError","_this$xhr","stringify","blob","direct_upload","directUploadData","BlobUpload","_blob$directUploadDat","headers","_this$xhr2","DirectUpload","notify","upload","_len","messages","_key","DirectUploadController","directUpload","hiddenInput","insertAdjacentElement","dispatchError","signed_id","uploadRequestDidProgress","alert","directUploadWillCreateBlobWithXHR","directUploadWillStoreFileWithXHR","DirectUploadsController","files","controllers","createDirectUploadControllers","startNextController","shift","processingAttribute","submitButtonsByForm","didClick","didSubmitForm","didSubmitRemoteElement","handleFormSubmissionEvent","submitForm","ActiveStorage","_toArray","iter","_iterableToArray","preview","presentation","caption","default","quote","nestable","heading1","terminal","breakOnReturn","group","code","plaintext","bulletList","bullet","listAttribute","numberList","number","attachmentGallery","exclusive","composesExistingText","recentAndroid","samsungAndroid","forcesObjectResizing","supportsInputEvents","InputEvent","every","attachFiles","bold","bullets","byte","captionPlaceholder","indent","italic","numbers","outdent","redo","strike","undo","unlink","urlPlaceholder","GB","KB","MB","PB","TB","prefix","precision","formatter","log","pow","toFixed","onElement","matchingSelector","withCallback","inPhase","times","untilNode","previousSibling","A","onlyNodesOfType","usingFilter","expandEntityReferences","NodeFilter","SHOW_ELEMENT","SHOW_TEXT","SHOW_COMMENT","SHOW_ALL","createTreeWalker","C","editable","contenteditable","R","E","S","D","L","strict","COMMENT_NODE","T","I","trixCursorTarget","F","B","TEXT_NODE","level2Enabled","getLevel","pickFiles","multiple","fileInputId","getElementById","N","removeBlankTableCells","tableCellSeparator","tableRowSeparator","O","inheritable","fontWeight","fontStyle","groupTagName","frozen","backgroundColor","M","getDefaultHTML","W","freeze","attachments","blockAttributes","browser","css","attachment","attachmentCaption","attachmentCaptionEditor","attachmentMetadata","attachmentMetadataContainer","attachmentName","attachmentProgress","attachmentSize","attachmentToolbar","fileSize","keyNames","lang","textAttributes","toolbar","U","_q","q","toMethod","toProperty","optional","V","z","H","J","K","fromUCS2String","Y","Q","ucs2String","codepoints","ucs2Length","offsetToUCS2Offset","offsetFromUCS2Offset","fromCodepoints","box","getCacheKey","G","codePointAt","X","fromCodePoint","Z","tt","fromJSON","hasSameConstructorAs","inspect","contentsForInspection","toJSONString","toUTF16String","et","it","nt","rt","dir","dirName","ot","st","at","lt","ct","gt","ut","ht","dt","mt","pt","ft","bt","vt","At","xt","platform","yt","Ct","Rt","Et","Lt","St","_Et2","Dt","kt","_Et4","_Et6","wt","run","selectionManagers","registerSelectionManager","unregisterSelectionManager","notifySelectionManagersOfSelectionChange","selectionDidChange","It","Tt","domRange","startContainer","startOffset","endContainer","endOffset","Ft","Bt","rangeCount","getRangeAt","Nt","Pt","removeAllRanges","addRange","Ot","Mt","jt","Wt","Ut","qt","utf16String","Vt","Jt","getKeys","getKeysCommonToHash","Ht","merge","zt","_t","Kt","isEmpty","array","toObject","Gt","depth","asTree","canBeGrouped","canBeGroupedWith","objects","groupObjects","getObjects","getDepth","$t","Xt","Yt","trixStoreKey","Qt","isPerforming","performing","hasPerformed","performed","hasSucceeded","succeeded","hasFailed","getPromise","promise","perform","release","proxyMethod","Zt","childViews","rootView","getNodes","createNodes","invalidate","parentView","invalidateViewForObject","findViewForObject","findOrCreateCachedChildView","getCachedViewForObject","recordChildView","createChildView","cacheViewForObject","viewClass","te","getAllChildViews","findElementForObject","getViewCache","isViewCachingEnabled","viewCache","shouldCacheViews","enableViewCaching","disableViewCaching","garbageCollectCachedViews","objectGroup","getChildViews","createContainerElement","ee","ie","uploadProgressDelegate","attachmentPiece","piece","createContentNodes","getClassName","getHref","tabindex","hasContent","getContent","createCaptionElement","isPending","class","getUploadProgress","trixMutable","ne","getCaption","getCaptionConfig","getFilename","getFormattedFilesize","createTextNode","getType","trixAttachment","trixContentType","getContentType","trixId","trixAttributes","trixSerialize","re","findProgressElement","attachmentDidChangeUploadProgress","oe","previewDelegate","image","src","updateAttributesForImage","getURL","getPreviewURL","getWidth","getHeight","attachmentDidChangeAttributes","se","getAttributes","textConfig","string","createAttachmentNodes","createStringNodes","firstElementChild","preserveSpaces","styleProperty","isLast","isFirst","followsWhitespace","ae","getPieces","le","ce","he","block","createComment","getLastAttribute","shouldAddExtraNewlineElement","isRTL","getBlockBreakPosition","ue","sync","elementStore","setDocument","shadowElement","getBlocks","isSynced","ge","createDocumentFragmentForSync","lastChild","didSync","de","createDocumentFragment","me","pe","wrapped","fe","_invoke","be","asyncIterator","throw","ve","types","copyWithAttributes","getValue","copyWithAdditionalAttributes","copyWithoutAttribute","copy","getAttributesHash","hasSameStringValueAsPiece","hasSameAttributesAsPiece","isBlockBreak","isSerializable","getLength","canBeConsolidatedWith","Ae","Image","naturalWidth","naturalHeight","xe","attributesForFile","setFile","filesize","contentType","releaseFile","didChangeAttributes","setAttributes","preloadURL","previewablePattern","getFilesize","getFile","preloadFile","releasePreloadedFile","uploadProgress","setUploadProgress","previewURL","preloadingURL","setPreviewURL","attachmentDidChangePreviewURL","preload","fileObjectURL","URL","createObjectURL","revokeObjectURL","catch","ye","ensureAttachmentExclusivelyHasAttribute","removeProhibitedAttributes","permittedAttributes","toConsole","registerType","Ce","consolidateWith","splitAtOffset","Re","eachObject","insertObjectAtIndex","insertSplittableListAtIndex","insertSplittableListAtPosition","_this$splitObjectAtPo2","splitObjectAtPosition","editObjectAtIndex","replaceObjectAtIndex","removeObjectAtIndex","getObjectAtIndex","getSplittableListInRange","_this$splitObjectsAtR2","splitObjectsAtRange","selectSplittableList","removeObjectsInRange","_this$splitObjectsAtR4","transformObjectsInRange","_this$splitObjectsAtR6","_this$constructor$spl2","_this$splitObjectAtPo4","Se","ke","getObjectAtPosition","findIndexAndOffsetAtPosition","_this$findIndexAndOff2","_t$splitAtOffset2","consolidate","consolidateFromIndexToIndex","findPositionAtIndexAndOffset","getEndPosition","endPosition","Ee","Le","pieceList","copyWithPieceList","copyUsingObjectMap","appendText","insertTextAtPosition","removeTextAtRange","replaceTextAtRange","moveTextFromRangeToPosition","getTextAtRange","addAttributeAtRange","addAttributesAtRange","removeAttributeAtRange","setAttributesAtRange","getAttributesAtPosition","getCommonAttributes","fromCommonAttributesOfObjects","getCommonAttributesAtRange","getExpandedRangeForAttributeAtOffset","getStringAtRange","getStringAtPosition","startsWithString","endsWithString","getAttachmentPieces","getAttachments","getAttachmentAndPositionById","getAttachmentById","getRangeOfAttachment","updateAttributesForAttachment","eachPiece","getPieceAtPosition","toSerializableText","getDirection","De","we","copyWithText","copyWithoutText","copyWithoutAttributes","addAttribute","Ne","Me","removeLastAttribute","Oe","getAttributeLevel","getAttributeAtLevel","hasAttributes","getLastNestableAttribute","getNestableAttributes","getNestingLevel","decreaseNestingLevel","increaseNestingLevel","lastIndexOf","getListItemAttributes","isListItem","isTerminalBlock","breaksOnReturn","findLineBreakInDirectionFromPosition","textForStringWithAttributes","getTextWithoutBlockBreak","Ie","Te","Be","Pe","Fe","blockBreak","je","blockList","getBlockAtIndex","consolidateBlocks","copyUsingObjectsFromDocument","copyWithBaseBlockAttributes","replaceBlock","insertDocumentAtRange","_this$locationFromPos","locationFromPosition","getBlockAtPosition","mergeDocumentAtRange","getBaseBlockAttributes","getBlockCount","insertTextAtRange","_this$locationFromPos2","_t3","_Array$from2","locationRangeFromRange","_t5","getDocumentAtRange","_o$getBlocks2","eachBlockAtRange","eachBlock","getTextAtIndex","removeAttributeForAttachment","insertBlockBreakAtRange","applyBlockAttributeAtRange","expandRangeToLineBreaksAndSplitBlocks","range","removeLastListAttributeAtRange","exceptAttributeName","convertLineBreaksToBlockBreaksInRange","removeBlockAttributesAtRange","removeLastTerminalAttributeAtRange","consolidateBlocksAtRange","_t9","positionFromLocation","_t13","getTextAtPosition","_this$locationFromPos7","getCharacterAtPosition","_this$locationFromPos8","getEditCount","editCount","_t15","getCommonAttributesAtPosition","We","_this$locationFromPos9","getRangeOfCommonAttributeAtPosition","_this$locationFromPos10","_Array$from6","getLocationRangeOfAttachment","getAttachmentPieceForAttachment","findRangesForBlockAttribute","findRangesForTextAttribute","withValue","locationRangeFromPosition","_Array$from8","rangeFromLocationRange","getTexts","toSerializableDocument","Ue","qe","Ve","ze","sanitize","_ref10","allowedAttributes","forbiddenProtocols","forbiddenElements","sanitizeElements","normalizeListElementNesting","getHTML","getBody","nextNode","currentNode","elementIsRemovable","sanitizeElement","elementIsForbidden","elementIsntSerializable","implementation","createHTMLDocument","He","Je","Ke","referenceElement","blocks","blockElements","processedElements","getDocument","createHiddenContainer","containerElement","Ye","processNode","translateBlockElementMarginsToNewlines","removeHiddenContainer","nextSibling","isInsignificantTextNode","appendBlockForTextNode","processTextNode","appendBlockForElement","processElement","currentBlockElement","isBlockElement","appendStringWithAttributes","getBlockAttributes","currentBlock","appendBlockForAttributesWithElement","findParentBlockElement","appendEmptyBlock","Ge","ti","Qe","getTextAttributes","appendAttachmentWithAttributes","isExtraBR","needsTableSeparator","appendPiece","appendStringToTextAtIndex","prependStringToTextAtIndex","findBlockElementAncestors","reverse","Ze","$e","getMarginOfDefaultBlockElement","getMarginOfBlockElementAtIndex","Xe","whiteSpace","marginTop","marginBottom","FILTER_REJECT","FILTER_ACCEPT","ei","ii","ni","ri","HTMLElement","oi","si","attachmentManager","requestRemovalOfAttachment","ai","managedAttachments","manageAttachment","attachmentIsManaged","attachmentManagerDidRequestRemovalOfAttachment","unmanageAttachment","li","composition","getSelectedRange","startPosition","startLocation","endLocation","previousCharacter","nextCharacter","shouldInsertBlockBreak","shouldBreakFormattedBlock","shouldDecreaseListLevel","shouldPrependListItem","shouldRemoveLastBlockAttribute","ci","currentAttributes","revision","refreshAttachments","compositionDidChangeDocument","selectedRange","loadSnapshot","compositionWillLoadSnapshot","setSelection","compositionDidLoadSnapshot","insertText","notifyDelegateOfInsertionAtRange","insertBlock","insertDocument","insertString","getCurrentTextAttributes","insertBlockBreak","insertLineBreak","decreaseListLevel","removeLastBlockAttribute","breakFormattedBlock","insertHTML","replaceHTML","getLocationRange","insertFile","insertFiles","compositionShouldAcceptFile","attachmentForFile","insertAttachments","insertAttachment","textForAttachmentWithAttributes","shouldManageDeletingInDirection","shouldManageMovingCursorInDirection","deleteInDirection","canDecreaseBlockAttributeLevel","getBlock","decreaseBlockAttributeLevel","getExpandedRangeInDirection","getAttachmentAtRange","editAttachment","moveTextFromRange","removeAttachment","stopEditingAttachment","_Array$from12","removeCurrentAttribute","insertPlaceholder","placeholderPosition","getPosition","selectPlaceholder","setSelectedRange","forgetPlaceholder","hasCurrentAttribute","toggleCurrentAttribute","setCurrentAttribute","canSetCurrentAttribute","canSetCurrentBlockAttribute","canSetCurrentTextAttribute","getSelectedDocument","setBlockAttribute","setTextAttribute","notifyDelegateOfCurrentAttributesChange","_Array$from14","removeBlockAttribute","updateCurrentAttributes","removeTextAttribute","canDecreaseNestingLevel","canIncreaseNestingLevel","getPreviousBlock","ignoreLock","getCurrentAttributes","freezeSelection","thawSelection","hasFrozenSelection","compositionDidRequestChangingSelectionToLocationRange","getSelectionManager","setLocationRange","targetLocationRange","withTargetLocationRange","withTargetRange","withTargetDOMRange","createLocationRangeFromDOMRange","_Array$from18","translateUTF16PositionFromOffset","editingAttachment","moveCursorInDirection","expandSelectionInDirection","expandSelectionForEditing","expandSelectionAroundCommonAttribute","selectionContainsAttachments","getSelectedAttachments","selectionIsInCursorTarget","positionIsCursorTarget","locationIsCursorTarget","positionIsBlockBreak","_ref16","added","removed","compositionDidRemoveAttachment","compositionDidAddAttachment","compositionDidEditAttachment","compositionDidChangeAttachmentPreviewURL","compositionDidStartEditingAttachment","compositionDidStopEditingAttachment","compositionDidChangeCurrentAttributes","compositionDidPerformInsertionAtRange","undoEntries","redoEntries","recordUndoEntry","_ref17","consolidatable","ui","createEntry","description","canUndo","canRedo","_ref18","di","applyBlockAttribute","findRangesOfBlocks","findRangesOfPieces","moveSelectedRangeForward","gi","mi","pi","selectionManager","undoManager","filters","loadDocument","loadHTML","loadJSON","getClientRectAtPosition","getClientRectAtLocationRange","activateAttribute","attributeIsActive","canActivateAttribute","deactivateAttribute","_ref19","fi","findLocationFromContainerAndOffset","findAttachmentElementParentForNode","xi","bi","findContainerAndOffsetFromLocation","_this$findNodeAndOffs2","findNodeAndOffsetFromLocation","getSignificantNodesForIndex","vi","Ai","yi","createDOMRangeFromPoint","caretPositionFromPoint","_document$caretPositi","offsetNode","createRange","setStart","caretRangeFromPoint","createTextRange","moveToPoint","select","getClientRectsForDOMRange","getClientRects","Ci","didMouseDown","locationMapper","pointMapper","lockCount","currentLocationRange","lockedLocationRange","createDOMRangeFromLocationRange","updateCurrentLocationRange","setLocationRangeFromPointRange","getLocationAtPoint","lock","unlock","clearSelection","selectionIsCollapsed","collapsed","selectionIsExpanded","domRangeWithinElement","pauseTemporarily","paused","locationRangeDidChange","setEnd","Ri","Attachment","AttachmentManager","AttachmentPiece","Block","Composition","Document","Editor","HTMLParser","HTMLSanitizer","LineBreakInsertion","LocationMapper","ManagedAttachment","Piece","PointMapper","SelectionManager","SplittableList","StringPiece","Text","UndoManager","Ei","Si","ki","Li","Di","do","undos","wi","trixAction","didClickToolbar","didClickActionButton","placeholder","tabIndex","didInputCaption","didKeyDownCaption","didChangeCaption","didBlurCaption","editCaption","install","makeElementMutable","addToolbar","installCaptionEditor","uninstall","savePendingCaption","didUninstallAttachmentEditor","pendingCaption","attachmentEditorDidRequestUpdatingAttributesForAttachment","attachmentEditorDidRequestRemovingAttributeForAttachment","attachmentEditorDidRequestRemovalOfAttachment","keyCode","attachmentEditorDidRequestDeselectingAttachment","Ti","didFocus","didBlur","didClickAttachment","documentView","focused","compositionControllerDidFocus","blurPromise","compositionControllerDidBlur","findAttachmentForElement","compositionControllerDidSelectAttachment","getSerializableElement","isEditingAttachment","canSyncDocumentView","compositionControllerWillSyncDocumentView","compositionControllerDidSyncDocumentView","compositionControllerDidRender","rerenderViewForObject","refreshViewCache","attachmentEditor","installAttachmentEditorForAttachment","uninstallAttachmentEditor","compositionControllerWillUpdateAttachment","compositionControllerDidRequestRemovalOfAttachment","compositionControllerDidRequestDeselectingAttachment","Fi","Bi","Ii","characterData","characterDataOldValue","Pi","didMutate","observer","findSignificantMutations","elementDidMutate","getMutationSummary","mutationIsSignificant","nodeIsMutable","nodesModifiedByMutation","nodeIsSignificant","getTextMutationSummary","_this$getTextChangesF","getTextChangesFromCharacterData","additions","deletions","getTextChangesFromChildList","textAdded","textDeleted","getMutationsByType","Ni","_Ut2","_Ut4","oldValue","Oi","Mi","shouldIgnore","previousEvent","checkSamsungKeyboardBuggyModeStart","checkSamsungKeyboardBuggyModeEnd","buggyMode","insertingLongTextAfterUnidentifiedChar","ji","innerText","inputType","isBeforeInputInsertText","previousEventWasUnidentifiedKeydown","Ui","Wi","qi","flakyKeyboardDetector","events","handlerFor","editorWillSyncDocumentView","editorDidSyncDocumentView","requestRender","inputControllerDidRequestRender","requestReparse","inputControllerDidRequestReparse","all","handleInput","inputControllerWillAttachFiles","responder","inputControllerWillHandleInput","inputControllerDidHandleInput","createLinkHTML","Vi","zi","Hi","Ji","resetInputSummary","setInputSummary","inputSummary","isComposing","inputControllerDidAllowUnhandledInput","mutationIsExpected","preferDocument","didDelete","compositionInput","getEndData","getCompositionInput","Yi","isEnded","serializeSelectionToDataTransfer","canAcceptDataTransfer","Files","getPastedHTMLUsingHiddenElement","keydown","didInput","keyName","inputControllerDidReceiveKeyboardCommand","keypress","$i","inputControllerWillPerformTyping","textInput","dragenter","dragstart","dataTransfer","draggedRange","inputControllerDidStartDrag","dragover","clientY","draggingPoint","inputControllerDidReceiveDragOverPoint","dragend","inputControllerDidCancelDrag","drop","inputControllerWillMoveText","fromJSONString","cut","clipboardData","inputControllerWillCutText","paste","testClipboardData","clipboard","Xi","inputControllerWillPaste","inputControllerDidPaste","getAsFile","Ki","compositionstart","compositionupdate","compositionend","beforeinput","backspace","tab","control","alt","Gi","charCode","inputController","isSignificant","canApplyToDocument","Qi","scheduledRender","composing","reparse","scheduleRender","afterRender","toggleAttributeIfSupported","inputControllerWillPerformFormatting","activateAttributeIfSupported","getTargetDOMRange","minLength","getTargetRanges","Zi","withEvent","rn","en","nn","inputTypes","dragging","point","on","tn","ArrowLeft","ArrowRight","Backspace","deleteByComposition","deleteByCut","deleteByDrag","deleteByDragRange","deleteCompositionText","deleteContent","deleteContentBackward","deleteContentForward","deleteEntireSoftLine","deleteHardLineBackward","deleteHardLineForward","deleteSoftLineBackward","deleteSoftLineForward","deleteWordBackward","deleteWordForward","formatBackColor","formatBold","formatFontColor","formatFontName","formatIndent","formatItalic","formatJustifyCenter","formatJustifyFull","formatJustifyLeft","formatJustifyRight","formatOutdent","formatRemove","formatSetBlockTextDirection","formatSetInlineTextDirection","formatStrikeThrough","formatSubscript","formatSuperscript","formatUnderline","historyRedo","inputControllerWillPerformRedo","historyUndo","inputControllerWillPerformUndo","insertCompositionText","insertFromComposition","insertFromDrop","insertFromPaste","insertFromYank","insertLink","insertOrderedList","insertParagraph","insertReplacementText","insertTranspose","insertUnorderedList","sn","an","ln","cn","hn","dn","un","gn","didClickAttributeButton","didClickDialogButton","didKeyDownDialogInput","actions","resetDialogInputs","toolbarDidClickButton","getDialog","toggleDialog","toolbarDidInvokeAction","toolbarDidToggleAttribute","refreshAttributeButtons","hideDialog","updateActions","refreshActionButtons","eachActionButton","updateAttributes","eachAttributeButton","dialogIsVisible","applyKeyboardCommand","showDialog","toolbarWillShowDialog","toolbarDidShowDialog","willValidate","checkValidity","toolbarDidUpdateAttribute","toolbarDidRemoveAttribute","toolbarDidHideDialog","mn","editorElement","compositionController","toolbarController","toolbarElement","editor","notifyEditorElement","handlingInput","updateCurrentActions","pasting","pastedRange","attachmentLocationRange","loadingSnapshot","isFocused","requestedLocationRange","compositionRevisionWhenLocationRangeRequested","renderedCompositionRevision","runEditorFilters","isFocusedInvisibly","requestedRender","recordTypingUndoEntry","recordFormattingUndoEntry","locationRangeBeforeDrag","invokeAction","selectionFrozen","dialogName","canInvokeAction","actionIsExternal","actionName","getCurrentActions","currentActions","_t18","updateInputElement","setInputElementValue","documentChangedSinceLastRender","getUndoContext","getLocationContext","getTimeContext","ownerDocument","pn","AttachmentEditorController","CompositionController","EditorController","InputController","Level0InputController","Level2InputController","ToolbarController","fn","SelectionChangeObserver","bn","FileVerificationOperation","ImagePreloadOperation","vn","connectedCallback","An","yn","Cn","Rn","queryCommandSupported","execCommand","En","Sn","labels","inputElement","nextElementSibling","editorController","defaultValue","xn","registerResetListener","registerClickListener","disconnectedCallback","unregisterResetListener","unregisterClickListener","resetListener","resetBubbled","clickListener","kn","VERSION","core","models","views","observers","operations","TrixEditorElement","TrixToolbarElement","Filter","attachmentGalleryFilter","Trix","customElements","define","activestorage","findElements","inputSelector","autostart","AttachmentUpload","directUploadUrl","directUploadDidComplete","sgid","attachable_sgid","createBlobUrl","signedId","blobUrlTemplate","channels","webpackEmptyContext","req","bsn","BSN","webpackContext","webpackContextResolve","dropin","_default","_Controller","_inherits","_createSuper","_classCallCheck","submitTarget","waitTarget","authorization","threeDSecure","card","cardholderName","required","paypal","flow","amount","currency","_initializeBraintree","clientErr","instance","submitText","requestPaymentMethod","payload","nonceTarget","submit","loadStylesheet","loadScript","__importDefault","mod","PromiseGlobal","promise_polyfill_1","promise_1","scriptPromiseCache","scriptLoadPromise","stringifiedOptions","forceScriptReload","attrs","dataAttributes","crossorigin","stylesheet","ua","isEdge","isSamsung","isDuckDuckGo","isOpera","isSilk","EventEmitter","_events","off","eventCallbacks","indexOfCallback","_emit","hasListener","createChild","ChildObject","GlobalPromise","ExtendedPromise","_promise","_resolveFunction","_rejectFunction","_onResolve","onResolve","defaultOnResolve","_onReject","onReject","defaultOnReject","shouldCatchExceptions","_resetState","setPromise","PromiseClass","Boolean","suppressUnhandledPromiseMessage","allSettled","race","isFulfilled","_setResolved","argForResolveFunction","_setRejected","isResolved","isRejected","set_attributes_1","default_attributes_1","assign_1","iframe","defaultAttributes","objs","frameBorder","allowtransparency","scrolling","deferred","promiseOrCallback","deferred_1","once_1","promise_or_callback_1","wrapPromise","wrapPrototype","ignoreMethods","includePrivateMethods","transformPrivateMethods","getOwnPropertyNames","isNotPrivateMethod","isNonConstructorFunction","isNotAnIgnoredMethod","original","BraintreeError","analytics","errors","methods","convertMethodsToError","ApplePay","_instantiatedWithClient","useDeferredClient","_client","client","_createPromise","createPromise","_setMerchantIdentifier","_waitForClient","applePayConfig","getConfiguration","gatewayConfiguration","applePayWeb","merchantIdentifier","createPaymentRequest","paymentRequest","_createPaymentRequestSynchronously","applePay","countryCode","currencyCode","merchantCapabilities","supportedNetworks","network","performValidation","validationURL","applePayWebSession","validationUrl","domainName","hostname","displayName","endpoint","_meta","sendEvent","APPLE_PAY_MERCHANT_VALIDATION_FAILED","details","originalError","APPLE_PAY_MERCHANT_VALIDATION_NETWORK","APPLE_PAY_VALIDATION_URL_REQUIRED","tokenize","applePaymentToken","paymentData","applePayCards","APPLE_PAY_TOKENIZATION","APPLE_PAY_PAYMENT_TOKEN_REQUIRED","teardown","APPLE_PAY_NOT_ENABLED","MERCHANT","NETWORK","basicComponentVerification","createAssetsUrl","createDeferredClient","verify","applePayInstance","debug","assetsUrl","BRAINTREE_VERSION","GraphQL","isVerifiedDomain","convertToBraintreeError","getGatewayConfiguration","createAuthorizationData","addMetadata","GRAPHQL_URLS","assets","FRAUDNET_FNCLS","FRAUDNET_SOURCE","FRAUDNET_URL","cachedClients","Client","configuration","configurationJSON","CLIENT_MISSING_GATEWAY_CONFIGURATION","CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN","_request","_configuration","_clientApiBaseUrl","clientApiUrl","graphQL","_graphQL","formatRequestError","requestError","CLIENT_REQUEST_TIMEOUT","CLIENT_AUTHORIZATION_INVALID","CLIENT_AUTHORIZATION_INSUFFICIENT","CLIENT_RATE_LIMITED","CLIENT_GATEWAY_NETWORK","CLIENT_REQUEST_ERROR","httpStatus","getAuthorizationHeadersForGraphQL","Authorization","authorizationFingerprint","clientInstance","authData","CLIENT_INVALID_AUTHORIZATION","isDebug","_findOrCreateFraudnetJSON","clientMetadataId","additionalData","parameters","rda_tenant","mid","merchantId","pieces","cid","fp","bu","requestPromise","optionName","api","baseUrl","requestOptions","shouldCollectData","creditCards","collectDeviceData","CLIENT_OPTION_REQUIRED","metadata","analyticsMetadata","CLIENT_OPTION_INVALID","environment","clientSdkMetadata","integration","sessionId","sendAnalyticsEvent","kind","resolvedData","CLIENT_GRAPHQL_REQUEST_ERROR","_httpStatus","getVersion","INTERNAL","constants","isDateStringBeforeOrOn","configUrl","reqOptions","merchantAppId","PLATFORM","sdkVersion","SOURCE","INTEGRATION","integrationType","braintreeLibraryVersion","BRAINTREE_LIBRARY_VERSION","configVersion","date","features","tokenizationKey","errorTemplate","authorizationType","sharedErrors","INSTANTIATION_OPTION_REQUIRED","querystring","prepBody","parseBody","isXHRAvailable","isAvailable","GraphQLRequest","DefaultRequest","MAX_TCP_RETRYCOUNT","TCP_PRECONNECT_BUG_STATUS_CODE","requestShouldRetry","graphQLRequestShouldRetryWithClientApi","errorClass","extensions","_requestWithRetry","tcpRetryCount","cb","resBody","ajaxRequest","parsedBody","getRequestObject","isGraphQLRequest","getUrl","getMethod","getHeaders","queryify","adaptResponseBody","determineStatus","requestOpenError","headerKey","_url","_data","_method","_headers","errorResponseAdapter","cardTypeTransforms","creditCard","AMERICAN_EXPRESS","DISCOVER","INTERNATIONAL_MAESTRO","JCB","MASTERCARD","SOLO","UK_MAESTRO","UNION_PAY","VISA","ELO","HIPER","HIPERCARD","visaCheckout","googlePay","masterpass","DINERS","configurationResponseAdapter","responseBody","ctx","adaptConfigurationResponseBody","clientConfiguration","analyticsUrl","venmo","supportedFeatures","_config","feature","braintreeApi","mapCardTypes","supportedCardBrands","ideal","kount","kountMerchantId","challenges","challenge","supportedCardTypes","threeDSecureEnabled","androidPay","googleAuthorizationFingerprint","googleAuthorization","paypalClientId","payWithVenmo","accessToken","enrichedCustomerDataEnabled","paypalEnabled","currencyIsoCode","unionPay","merchantAccountId","apikey","apiKey","encryptionKey","externalClientId","merchantCheckoutId","usBankAccount","routeId","plaid","publicKey","plaidPublicKey","cardTypes","cardTypeTransformMap","acc","CARD_BRAND_MAP","BIN_DATA_MAP","YES","NO","UNKNOWN","AUTHENTICATION_INSIGHT_MAP","PSDTWO","creditCardTokenizationResponseAdapter","adaptTokenizeCreditCardResponseBody","regulationEnvironment","tokenizeCreditCard","lastTwo","last4","binData","consumed","expirationMonth","expirationYear","bin","cardType","brandCode","lastFour","threeDSecureInfo","authenticationInsight","customerAuthenticationRegulationEnvironment","userErrorResponseAdapter","errorWithClassResponseAdapter","fieldErrors","buildFieldErrors","getLegacyMessage","inputPath","addFieldError","errorDetail","fieldError","legacyCode","inputField","candidate","field","CONFIGURATION_QUERY","query","operationName","createMutation","hasAuthenticationInsight","createCreditCardTokenizationBody","cc","billingAddress","expDate","expirationDate","variables","cvv","authenticationInsightInput","addValidationRule","validate","creditCardTokenization","tokenize_credit_cards","disallowedInputPaths","containsDisallowedlistedKeys","accumulator","getGraphQLEndpoint","featureEnabled","path","getClientApiPath","_isGraphQLEnabled","clientApiPrefix","pathParts","snakeCaseToCamelCase","creditCardTokenizationBodyGenerator","configurationBodyGenerator","generators","adapters","clientApiPath","_clientSdkMetadata","_sendAnalyticsEvent","_generator","_adapter","isGraphQLError","parsedResponse","formatBodyKeys","originalBody","camelCaseKey","formattedBody","generatedBody","AJAXDriver","XDomainRequest","GOOGLE_PAYMENT_NOT_ENABLED","GOOGLE_PAYMENT_GATEWAY_ERROR","GOOGLE_PAYMENT_UNSUPPORTED_VERSION","generateGooglePayConfiguration","CREATE_PAYMENT_DATA_REQUEST_METHODS","GooglePayment","_useDeferredClient","_googlePayVersion","googlePayVersion","_googleMerchantId","googleMerchantId","_isUnsupportedGooglePayAPIVersion","applyDefaultsToPaymentMethodConfiguration","merchantSubmittedPaymentMethod","defaultPaymentMethod","parameter","_getDefaultConfig","_defaultConfig","_createV1PaymentDataRequest","paymentDataRequest","defaultConfig","overrideCardNetworks","cardRequirements","allowedCardNetworks","defaultConfigCardNetworks","_createV2PaymentDataRequest","allowedPaymentMethods","paymentMethod","createPaymentDataRequest","overrides","_createPaymentDataRequestSyncronously","createPaymentDataRequestMethod","parseResponse","rawResponse","apiVersion","paymentMethodData","tokenizationData","paymentMethodToken","paypalAccounts","androidPayCards","isNetworkTokenized","attributeValidationError","attribute","_isValid","HOSTED_FIELDS_ATTRIBUTE_VALUE_NOT_ALLOWED","HOSTED_FIELDS_ATTRIBUTE_NOT_SUPPORTED","useMin","componentId","directions","navigationDirections","browserDetection","focusIntercept","findParentTags","userFocusableTagNames","unfocusedInputTypes","_isUserFocusableElement","hasSoftwareKeyboard","_createNavigationHelper","numberOfElementsInForm","BACK","checkIndexBounds","indexChange","FORWARD","_findFirstFocusableElement","elementsInForm","elementsIndex","removeExtraFocusElements","checkoutForm","onRemoveFocusIntercepts","matchFocusElement","createFocusChangeHandler","hostedFieldsId","callbacks","currentIndex","targetElement","navHelper","sourceElement","forms","onTriggerInputFocus","allowedStyles","cssClass","computedStyles","styles","Destructor","iFramer","Bus","composeUrl","getStylesFromClass","INTEGRATION_TIMEOUT_MS","injectFrame","allowedFields","shadow","findRootNode","getCardTypes","focusChange","destroyFocusIntercept","SAFARI_FOCUS_TIMEOUT","createInputEventHandler","fields","eventData","merchantPayload","emittedBy","externalClasses","FOCUSED","VALID","isValid","INVALID","isPotentiallyValid","_state","cards","isVisibleEnough","boundingBox","verticalMidpoint","horizontalMidpoint","HostedFields","failureTimeout","clientConfig","hostedFieldsUrl","frameReadyPromiseResolveFunctions","frameReadyPromises","_merchantConfigurationOptions","_clientPromise","_injectedNodes","_destructor","_fields","_bus","channel","verifyDomain","targetFrames","registerFunctionForTeardown","externalContainer","internalContainer","frameReadyPromise","HOSTED_FIELDS_INVALID_FIELD_KEY","HOSTED_FIELDS_INVALID_FIELD_SELECTOR","fieldSelector","fieldContainer","fieldKey","HOSTED_FIELDS_FIELD_DUPLICATE_IFRAME","isShadowElement","transformToSlot","maxlength","HOSTED_FIELDS_FIELD_PROPERTY_INVALID","minlength","defaultIFrameStyle","iframeTitle","addTargetFrame","_setupLabelFocus","frameElement","REMOVE_FOCUS_INTERCEPTS","TRIGGER_FOCUS_CHANGE","emit","targetType","READY_FOR_CLIENT","reply","CARD_FORM_ENTRY_HAS_BEGUN","BIN_AVAILABLE","results","formatMerchantConfigurationForIframes","_cleanUpFocusIntercepts","FRAME_READY","INPUT_EVENT","methodNames","formattedConfig","rootNode","triggerFocus","_getAnyFieldContainer","found","iframeContainer","_attachInvalidFieldContainersToError","invalidFieldKeys","invalidFields","getChallenges","getSupportedCardTypes","TOKENIZATION_REQUEST","classname","ADD_CLASS","HOSTED_FIELDS_FIELD_NOT_PRESENT","HOSTED_FIELDS_FIELD_INVALID","REMOVE_CLASS","attributeErr","SET_ATTRIBUTE","setMonthOptions","errorMessage","merchantOptions","SET_MONTH_OPTIONS","setMessage","SET_MESSAGE","REMOVE_ATTRIBUTE","setPlaceholder","CLEAR_FIELD","fieldConfig","TRIGGER_INPUT_FOCUS","isIos","focusHandler","frameType","clearboth","fragment","focusInterceptBefore","generate","focusInterceptAfter","supportsInputFormatting","HOSTED_FIELDS_TIMEOUT","isAndroid","isChromeOS","isChrome","isChromeIos","isFirefox","isIosWebview","enumerate","maxExpirationYearAge","externalEvents","FOCUS","BLUR","EMPTY","NOT_EMPTY","VALIDITY_CHANGE","CARD_TYPE_CHANGE","defaultMaxLengths","postalCode","border","tokenizationErrorCodes","HOSTED_FIELDS_TOKENIZATION_FAIL_ON_DUPLICATE","HOSTED_FIELDS_TOKENIZATION_CVV_VERIFICATION_FAILED","autocompleteMappings","expiration","HOSTED_FIELDS_TOKENIZATION_NETWORK_ERROR","CUSTOMER","HOSTED_FIELDS_FAILED_TOKENIZATION","HOSTED_FIELDS_FIELDS_EMPTY","HOSTED_FIELDS_FIELDS_INVALID","tag","focusInterceptStyles","idString","focusInputs","idComponents","hasBTPrefix","isAllowedType","isValidDirection","creditCardType","jsonClone","authAttrs","clientInstanceOrPromise","timestamp","now","timestampInPromise","ANALYTICS_PREFIX","isAsync","ANALYTICS_REQUEST_TIMEOUT_MS","assignNormalized","assignPolyfill","destination","_assign","INCOMPATIBLE_VERSIONS","INVALID_USE_OF_INTERNAL_FUNCTION","functions","remaining","finish","findRootError","CLIENT_API_URLS","production","sandbox","ASSETS_URLS","BUS_CONFIGURATION_REQUEST_EVENT","METHOD_CALLED_AFTER_TEARDOWN","originalErr","btErrorObject","atob","_isTokenizationKey","_parseTokenizationKey","parsedClientToken","parsedTokenizationKey","braintree","CLIENT_SCRIPT_FAILED_TO_LOAD","batchExecuteFunctions","_teardownRegistry","_isTearingDown","enumeration","Popup","PopupBridge","REQUIRED_CONFIG_KEYS","noop","_validateFrameConfiguration","FrameService","_serviceId","_options","dispatchFrameUrl","openFrameUrl","_setBusEvents","dispatchFrameReadyHandler","DISPATCH_FRAME_READY","_writeDispatchFrame","frameName","DISPATCH_FRAME_NAME","frameSrc","_dispatchFrame","DISPATCH_FRAME_CLASS","DISPATCH_FRAME_REPORT","_onCompleteCallback","_frame","_getFrameForEnvironment","isFrameClosed","_cleanupFrame","FRAME_SERVICE_FRAME_OPEN_FAILED","_pollForPopupClose","redirect","createHandler","beforeClose","beforeFocus","createNoopHandler","isClosed","_popupInterval","FRAME_SERVICE_FRAME_CLOSED","POPUP_POLL_INTERVAL","usePopup","supportsPopups","popupBridgeExists","popupBridge","initOptions","frameService","ELEMENT_STYLES","padding","outline","zIndex","background","_closed","_container","iframerConfig","isIosWKWebview","_lockScrolling","_el","_unlockScrolling","redirectUrl","_savedBodyProperties","overflowStyle","positionStyle","doc","clientLeft","clientTop","onComplete","popupDismissed","calculatePosition","userDefinedPosition","DEFAULT_POPUP_HEIGHT","DEFAULT_POPUP_WIDTH","POPUP_BASE_OPTIONS","composeOptions","closed","center","outerHeight","screenY","screenTop","outerWidth","screenX","screenLeft","windowMetric","popupMetric","POPUP_CLOSE_TIMEOUT","generateTokenizationParameters","basicTokenizationParameters","gateway","paypalPaymentMethod","androidPayConfiguration","apiVersionMinor","allowedAuthMethods","tokenizationSpecification","merchantInfo","purchase_context","purchase_units","payee","client_id","recurring_payment","paymentMethodTokenizationParameters","tokenizationType","win","convertDateStringToDate","dateString","splitDate","firstDate","secondDate","isHTTPS","legalHosts","stripSubdomains","domain","mainDomain","_notEmpty","_isArray","hasQueryParams","toReturn","keyValue","parts","decodeURIComponent","namespace","getShadowHost","styleNode","shadowHost","slotName","slot","slotProvider","sheet","insertRule","snakeString","atobNormalized","atobPolyfill","base64String","b2","b3","characters","_atob","isGoogleSearchApp","isIosFirefox","webkitRegexp","isWebkit","isIosChrome","isFacebook","isIosGoogleSearchApp","statusBarVisible","statusbar","isIpadOS","checkIpadOS","iOsTest","MINIMUM_SUPPORTED_CHROME_IOS_VERSION","isSamsungBrowser","isUnsupportedIosChrome","isOperaMini","isAndroidWebview","androidWebviewRegExp","isOldSamsungBrowserOrSamsungWebview","PAYPAL_NOT_ENABLED","PAYPAL_SANDBOX_ACCOUNT_NOT_LINKED","PAYPAL_ACCOUNT_TOKENIZATION_FAILED","PAYPAL_FLOW_FAILED","PAYPAL_FLOW_OPTION_REQUIRED","PAYPAL_START_VAULT_INITIATED_CHECKOUT_PARAM_REQUIRED","PAYPAL_START_VAULT_INITIATED_CHECKOUT_SETUP_FAILED","PAYPAL_START_VAULT_INITIATED_CHECKOUT_POPUP_OPEN_FAILED","PAYPAL_START_VAULT_INITIATED_CHECKOUT_CANCELED","PAYPAL_START_VAULT_INITIATED_CHECKOUT_IN_PROGRESS","PAYPAL_INVALID_PAYMENT_OPTION","PAYPAL_MISSING_REQUIRED_OPTION","PayPalCheckout","_initialize","isSupported","REQUIRED_PARAMS_FOR_START_VAULT_INITIATED_CHECKOUT","PAYPAL_SDK_PRELOAD_URL","_merchantAccountId","_autoSetDataUserIdToken","autoSetDataUserIdToken","_authorizationInformation","fingerprint","environmentNoNetwork","_setupError","_frameServicePromise","_setupFrameService","frameServicePromise","timeoutRef","_assetsUrl","_isDebug","_loadingFrameUrl","service","_frameService","createPayment","FLOW_ENDPOINTS","_createPaymentResource","paymentResource","agreementSetup","tokenId","intentFromCreatePayment","offerCredit","_formatPaymentResourceData","intent","updatePayment","_hasMissingOption","REQUIRED_OPTIONS","_verifyConsistentCurrency","_formatUpdatePaymentData","startVaultInitiatedCheckout","missingRequiredParam","_vaultInitiatedCheckoutInProgress","_addModalBackdrop","_waitForVaultInitiatedCheckoutDependencies","frameCommunicationPromise","startVaultInitiatedCheckoutPromise","returnUrl","_constructVaultCheckutUrl","cancelUrl","_createFrameServiceCallback","_removeModalBackdrop","optOutOfModalBackdrop","_modalBackdrop","focusVaultInitiatedCheckoutWindow","closeVaultInitiatedCheckoutWindow","tokenizePayment","paymentToken","payerID","PayerID","paymentID","paymentId","orderID","orderId","tokenizationError","serviceId","tokenizeOptions","shouldVault","billingToken","ecToken","payerId","shippingOptionsId","vault","_formatTokenizeData","_formatTokenizePayload","creditFinancingOffered","getClientId","clientId","loadPayPalSDK","loadPromise","userIdToken","_paypalScript","components","_attachPreloadPixel","subdomain","preloadOptions","offerPaypalCredit","experienceProfile","brandName","localeCode","locale","noShipping","enableShippingAddress","addressOverride","shippingAddressEditable","landingPageType","shippingOptions","requestBillingAgreement","lineItems","vaultInitiatedCheckoutPaymentMethodToken","shippingAddressOverride","billingAgreementDetails","shippingAddress","billingAgreementDescription","_riskCorrelationId","riskCorrelationId","correlationId","line1","line2","city","phone","recipientName","isTokenizationKey","isVaultFlow","paypalAccount","billingAgreementToken","unilateral","unvettedMerchant","account","payerInfo","shippingOptionId","cobrandedCardLabel","LANDING_FRAME_NAME","checkout","IFRAME_HEIGHT","IFRAME_WIDTH","BaseFramework","_createOptions","setUpEventListeners","THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED","verifyCard","privateOptions","formattedOptions","_checkForVerifyCardError","_verifyCardInProgress","_formatVerifyCardOptions","_formatLookupData","_performLookup","lookup","threeDSecureVersion","_onLookupComplete","initializeChallengeWithLookupResponse","_resetVerificationState","_checkForFrameworkSpecificVerifyCardErrors","_presentChallenge","prepareLookup","_verifyCardPromisePlus","_reloadThreeDSecure","lookupError","analyticsMessage","THREEDS_LOOKUP_TOKENIZED_CARD_NOT_FOUND_ERROR","THREEDS_LOOKUP_VALIDATION_ERROR","THREEDS_LOOKUP_ERROR","errorOption","THREEDS_AUTHENTICATION_IN_PROGRESS","THREEDS_MISSING_VERIFY_CARD_OPTION","lookupResponse","_lookupPaymentMethod","_handleLookupResponse","liabilityShifted","liabilityShiftPossible","challengeShouldBePresented","acsUrl","_formatAuthResponse","verificationDetails","browserColorDepth","screen","colorDepth","browserJavaEnabled","javaEnabled","browserJavascriptEnabled","browserLanguage","language","browserScreenHeight","browserScreenWidth","browserTimeZone","getTimezoneOffset","deviceChannel","_handleV1AuthResponse","authResponse","auth_response","cancelVerifyCard","THREEDS_NO_VERIFICATION_PAYLOAD","_setupV1Bus","parentURL","bus","authenticationCompleteBaseUrl","pareq","termUrl","md","parentUrl","AUTHENTICATION_COMPLETE","handleAuthResponse","_setupV1Iframe","showLoader","_v1Bus","_setupV1Elements","_v1Iframe","_teardownV1Elements","_onV1Keyup","SongbirdFramework","Bootstrap3ModalFramework","_createV1IframeModalElement","_createCardinalConfigurationOptions","setupOptions","payment","framework","CardinalModalFramework","addCloseButton","cardinalSDKConfig","displayExitButton","LegacyFramework","InlineIframeFramework","legacy","AUTHENTICATION_IFRAME_AVAILABLE","_addV1IframeToPage","_v1Modal","_setupFrameworkSpecificListeners","setCardinalListener","_onInlineSetup","htmlTemplate","hasError","paymentType","THREEDS_INLINE_IFRAME_DETAILS_INCORRECT","transformV1CustomerBillingAddress","customer","streetAddress","extendedAddress","locality","region","countryCodeAlpha2","_createIframe","_handleAuthResponse","removeFrame","addFrame","modifiedOptions","CUSTOMER_CANCELED_SONGBIRD_MODAL","SONGBIRD_UI_EVENTS","SCA_EXEMPTION_TYPES","_useV1Fallback","_clientMetadata","requestedThreeDSecureVersion","originalSetupOptions","_getDfReferenceIdPromisePlus","setupSongbird","_cardinalEvents","extractAddressData","line3","LOOKUP_COMPLETE","CUSTOMER_CANCELED","getDfReferenceId","dfReferenceId","_triggerCardinalBinProcess","clientMetadata","initiateV1Fallback","errorType","_removeSongbirdListeners","_songbirdPromise","issuerStartTime","Cardinal","binResults","issuerDeviceDataCollectionTimeElapsed","issuerDeviceDataCollectionResult","Status","transformBillingAddress","additionalInformation","billingPhoneNumber","phoneNumber","billingGivenName","givenName","billingSurname","surname","transformShippingAddress","_createV1IframeModal","closeHandler","THREEDS_CARDINAL_SDK_CANCELED","_handleAuthResponseFromV1Fallback","_presentChallengeWithV1Fallback","startTime","_v2SetupFailureReason","_loadCardinalScript","_configureCardinalSdk","setupStartTime","THREEDS_CARDINAL_SDK_SETUP_FAILED","_songbirdSetupTimeoutReference","threeDSConfig","jwt","cardinalAuthenticationJWT","cardinalConfiguration","_createPaymentsSetupCompleteCallback","configure","setup","cardinalDeviceDataCollectionTimeElapsed","_createPaymentsValidatedCallback","paymentSettings","logging","loggingEnabled","level","displayLoading","scriptSource","_getCardinalScriptSource","THREEDS_CARDINAL_SDK_SCRIPT_LOAD_FAILED","gatewayConfig","CARDINAL_SCRIPT_SOURCE","_performJWTValidation","rawCardinalSDKVerificationData","cancelCode","Payment","ExtendedData","ChallengeCancel","paymentMethodNonce","formattedResponse","THREEDS_JWT_AUTHENTICATION_FAILED","validatedJwt","formattedError","ActionCode","ErrorNumber","THREEDS_CARDINAL_SDK_SETUP_TIMEDOUT","THREEDS_CARDINAL_SDK_RESPONSE_TIMEDOUT","THREEDS_CARDINAL_SDK_BAD_CONFIG","THREEDS_CARDINAL_SDK_BAD_JWT","THREEDS_CARDINAL_SDK_ERROR","ErrorDescription","onLookupComplete","ignoreOnLookupCompleteRequirement","email","mobilePhoneNumber","requiresUserAuthentication","transactionId","continue","AcsUrl","Payload","OrderDetails","TransactionId","additionalInfo","accountType","challengeRequested","requestedExemptionType","THREEDS_REQUESTED_EXEMPTION_TYPE_INVALID","customFields","dataOnlyRequested","exemptionRequested","requestVisaDAF","cardAdd","cardAddChallengeRequested","merchantName","verifyCardError","THREEDS_VERIFY_CARD_CANCELED_BY_MERCHANT","FRAMEWORKS","ThreeDSecure","Framework","_framework","getFramework","gwConfig","THREEDS_NOT_ENABLED","THREEDS_CAN_NOT_USE_TOKENIZATION_KEY","THREEDS_HTTPS_REQUIRED","THREEDS_NOT_ENABLED_FOR_V2","THREEDS_UNSUPPORTED_VERSION","THREEDS_UNRECOGNIZED_VERSION","THREEDS_TERM_URL_REQUIRES_BRAINTREE_DOMAIN","VAULT_MANAGER_DELETE_PAYMENT_METHOD_NONCE_REQUIRES_CLIENT_TOKEN","VAULT_MANAGER_PAYMENT_METHOD_NONCE_NOT_FOUND","VAULT_MANAGER_DELETE_PAYMENT_METHOD_UNKNOWN_ERROR","VaultManager","DELETE_PAYMENT_METHOD_MUTATION","formatPaymentMethodPayload","formattedPaymentMethod","hasSubscription","fetchPaymentMethods","defaultFirst","paymentMethodsPayload","paymentMethods","deletePaymentMethod","singleUseTokenId","venmo_desktop_1","VENMO_PAYMENT_CONTEXT_STATUS_QUERY","LEGACY_VENMO_PAYMENT_CONTEXT_STATUS_QUERY","UPDATE_PAYMENT_CONTEXT_QUERY","LEGACY_UPDATE_PAYMENT_CONTEXT_QUERY","CREATE_PAYMENT_CONTEXT_QUERY","LEGACY_CREATE_PAYMENT_CONTEXT_QUERY","__assign","framebus_1","iframer_1","uuid_1","events_1","queries_1","VENMO_DESKTOP_POLLING_INTERVAL","VISUAL_DELAY_BEFORE_SIGNALLING_COMPLETION","VenmoDesktop","isHidden","env","profileId","paymentMethodUsage","shouldUseLegacyQRCodeMutation","frameUrl","apiRequest","alertBox","VENMO_DESKTOP_IFRAME_READY","VENMO_DESKTOP_REQUEST_NEW_QR_CODE","startPolling","launchDesktopFlow","launchDesktopPromiseRejectFunction","removeListeners","VENMO_DESKTOP_CUSTOMER_CANCELED","customerCancelledHandler","VENMO_DESKTOP_UNKNOWN_ERROR","unknownErrorHandler","allowUIToHandleError","reason","updateVenmoDesktopPaymentContext","completedHandler","setAlert","venmoContextId","triggerCompleted","triggerRejected","hideDesktopFlow","VENMO_DESKTOP_CLOSED_FROM_PARENT","displayError","VENMO_DESKTOP_DISPLAY_ERROR","displayQRCode","VENMO_DESKTOP_DISPLAY_QR_CODE","authorize","VENMO_DESKTOP_AUTHORIZE","authorizing","VENMO_DESKTOP_AUTHORIZING","createVenmoDesktopPaymentContext","expiresIn","expiresAt","createdAt","expiredTime","pollForStatusChange","username","userName","paymentMethodId","lookupVenmoDesktopPaymentContext","newStatus","createPaymentContextFromGraphqlLegacyQRCodeMutation","createVenmoQRCodePaymentContext","venmoQRCodePaymentContext","createPaymentContextFromGraphQL","customerClient","merchantProfileId","createVenmoPaymentContext","venmoPaymentContext","additionalOptions","Venmo","supportsVenmo","VENMO_INVALID_PROFILE_ID","deepLinkReturnUrl","VENMO_INVALID_DEEP_LINK_RETURN_URL","VENMO_NOT_ENABLED","isBrowserSupported","isIosSafari","doesNotSupportWindowOpenInIos","isFacebookOwnedBrowserOnAndroid","DOCUMENT_VISIBILITY_CHANGE_EVENT_DELAY","DEFAULT_PROCESS_RESULTS_DELAY","VENMO_APP_OR_MOBILE_AUTH_URL","VENMO_MOBILE_APP_AUTH_ONLY_URL","VENMO_WEB_LOGIN_URL","VENMO_TOKENIZATION_REQUEST_ACTIVE","VENMO_TOKENIZATION_REQUEST_NOT_ACTIVE","VENMO_APP_FAILED","VENMO_APP_CANCELED","VENMO_CANCELED","VENMO_CUSTOMER_CANCELED","VENMO_NETWORK_ERROR","VENMO_DESKTOP_CANCELED","VENMO_TOKENIZATION_CANCELED_BY_MERCHANT","VENMO_MOBILE_PAYMENT_CONTEXT_SETUP_FAILED","VENMO_MOBILE_POLLING_TOKENIZATION_NETWORK_ERROR","VENMO_MOBILE_POLLING_TOKENIZATION_EXPIRED","VENMO_MOBILE_POLLING_TOKENIZATION_CANCELED","VENMO_MOBILE_POLLING_TOKENIZATION_TIMEOUT","VENMO_MOBILE_POLLING_TOKENIZATION_FAILED","VENMO_TOKENIZATION_FAILED","VENMO_ECD_DISABLED","VENMO_DESKTOP_AUTHORIZATION_TIMED_OUT","venmoConstants","getVenmoUrl","useAllowDesktopWebLogin","mobileWebFallBack","merchantAllowsReturningToNewBrowserTab","merchantAllowsWebviews","merchantAllowsDesktopBrowsers","isMobileDevice","isAndroidChrome","isMobileDeviceThatSupportsReturnToSameTab","isKnownUnsupportedMobileBrowser","allowDesktopWebLogin","allowDesktop","allowNewBrowserTab","allowWebviews","VENMO_LOGO_SVG","CONTINUE_OR_CANCEL_INSTRUCTIONS","POPUP_WIDTH","POPUP_HEIGHT","ELEMENT_IDS","backdropHidden","backdropContainer","cancelButton","continueButton","instructions","venmoLogo","openPopup","frameServiceInstance","venmoUrl","checkForStatusChange","cancelTokenization","extendedPromise","closeBackdrop","frameServiceErr","retryStartingCount","statusCheckError","centeredPopupDimensions","round","getElementStyles","backdropStyles","backdropContainerStyles","cancelButtonStyles","continueButtonStyles","messageStyles","instructionStyles","buildAndStyleElements","backdropStylesElement","backdropDiv","backDropContentContainer","venmoLogoDiv","venmoMessageDiv","instructionsDiv","alreadyRenderedBackdrop","runWebLogin","setupDesktopWebLogin","popupName","popupLocation","assetsBaseUrl","inIframe","desktopWebLogin","createVenmoDesktop","graphqlQueries","DEFAULT_MOBILE_POLLING_INTERVAL","DEFAULT_MOBILE_EXPIRING_THRESHOLD","_allowDesktopWebLogin","_mobileWebFallBack","_allowNewBrowserTab","_allowWebviews","_allowDesktop","_useRedirectForIOS","useRedirectForIOS","_profileId","_displayName","_deepLinkReturnUrl","_ignoreHistoryChanges","ignoreHistoryChanges","_paymentMethodUsage","_shouldUseLegacyFlow","_requireManualReturn","requireManualReturn","_useDesktopQRFlow","_isDesktop","_useAllowDesktopWebLogin","_cannotHaveReturnUrls","_allowAndroidRecreation","allowAndroidRecreation","_maxRetryCount","_collectCustomerBillingAddress","collectCustomerBillingAddress","_collectCustomerShippingAddress","collectCustomerShippingAddress","_lineItems","_subTotalAmount","subTotalAmount","_discountAmount","discountAmount","_taxAmount","taxAmount","_shippingAmount","shippingAmount","_totalAmount","totalAmount","_shouldCreateVenmoPaymentContext","hasTokenizationResult","venmoDesktopInstance","_venmoDesktopInstance","_mobilePollingInterval","_mobilePollingExpiresThreshold","paymentContextPromise","webLoginPromise","analyticsCategory","_frameServiceInstance","desktopWebErr","_mobilePollingContextEnvironment","_createVenmoPaymentContext","isValidationError","paymentContextResult","promiseErr","getFragmentParameters","parsedParams","decodedKey","resourceId","formatUserName","formatTokenizePayload","formattedPayload","paymentContextId","documentVisibilityChangeEventName","visibilityChange","msHidden","webkitHidden","isIosWebviewInDeepLinkReturnUrlFlow","cancelIfTokenizationInProgress","transactionDetails","venmoConfiguration","transactionDetailsPresent","unitTaxAmount","paysheetDetails","refreshIn","_refreshPaymentContextTimeout","_tokenizationInProgress","_venmoPaymentContextStatus","_venmoPaymentContextId","appSwitch","_shouldUseRedirectStrategy","currentUrl","braintreeData","resource_id","_shouldIncludeReturnUrls","braintree_merchant_id","braintree_access_token","braintree_environment","braintree_sdk_data","_hasTokenizationResult","venmoSuccess","venmoError","venmoCancel","_tokenizeForDesktopQRFlow","_tokenizeWebLoginWithRedirect","_tokenizeForMobileWithManualReturn","_tokenizeForMobileWithHashChangeListeners","_removeVisibilityEventListener","_tokenizePromise","_cancelMobilePaymentContext","_cancelVenmoDesktopContext","_checkPaymentContextStatusAndProcessResult","_queryPaymentContextStatus","retryCount","networkError","resultStatus","_pollForStatusChange","_mobilePollingContextExpiresIn","resultProcessingInProgress","visibilityChangeListenerTimeout","processHashChangeFlowResults","completeFlow","_previousHash","_onHashChangeListener","newURL","_visibilityChangeListener","processResultsDelay","errorCode","_clearFragmentParameters","replaceState","add_matching_cards_to_results_1","is_valid_input_type_1","find_best_match_1","clone_1","customCards","cardNames","DINERS_CLUB","UNIONPAY","MAESTRO","MIR","ORIGINAL_TEST_ORDER","testOrder","findType","getAllCardTypes","getCardPosition","ignoreErrorForNotExisting","cardNumber","isValidInputType","cardConfiguration","addMatchingCardsToResults","bestMatch","findBestMatch","getTypeInfo","removeCard","addCard","existingCardPosition","updateCard","updates","originalObject","clonedCard","changeOrder","currentPosition","resetModifications","matches_1","patternLength","patterns","pattern","clonedCardConfiguration","matchStrength","visa","niceType","gaps","lengths","mastercard","discover","jcb","unionpay","maestro","elo","mir","hiper","hipercard","hasEnoughResultsToDetermineBestMatch","numberOfResultsWithMaxStrengthProperty","matchesRange","maxLengthToCheck","integerRepresentationOfCardNumber","matchesPattern","Framebus","lib_1","DefaultPromise","origin","limitBroadcastToFramesArray","isDestroyed","hasAdditionalChecksForOnListeners","include","childWindow","Window","childWindows","namespaceEvent","isntString","packagePayload","targetFramesAsWindows","sendMessage","broadcast","emitAsPromise","originalHandler","subscriptionArgsInvalid","passesVerifyDomainCheck","hasMatchingTargetFrame","subscribers","listener","subscriberList","checkOrigin","HTMLIFrameElement","contentWindow","matchingFrame","postMessageOrigin","merchantHost","attach","detach","_1","isAttached","onMessage","broadcastToChildWindows","frameToBroadcastTo","postMessage","hasOpener","opener","frames","__createBinding","k2","desc","__exportStar","unpackPayload","packaged","subscribeReplier","replier","replyOriginHandler","replyOrigin_1","replySource_1","replyEvent_1","replyData","replyPayload","cachedSetTimeout","cachedClearTimeout","process","defaultSetTimout","defaultClearTimeout","runTimeout","fun","runClearTimeout","marker","currentQueue","queue","draining","queueIndex","cleanUpNextTick","drainQueue","Item","nextTick","argv","versions","addListener","removeListener","removeAllListeners","prependListener","prependOnceListener","cwd","chdir","umask","setImmediate","finallyConstructor","setTimeoutFunc","_handled","_value","_deferreds","doResolve","handle","_immediateFn","onFulfilled","onRejected","newValue","finale","_unhandledRejectionFn","Handler","ex","prom","isIE9","isKitKatWebview","UA","isChromeOs","KITKAT_WEBVIEW_REGEX","device_1","clearImmediate","immediateIds","nextImmediateId","Timeout","clearFn","_id","_clearFn","unref","enroll","msecs","_idleTimeoutId","_idleTimeout","unenroll","_unrefActive","active","_onTimeout","paymentOptionIDs","paypalCredit","paymentMethodTypes","analyticsKinds","CreditCard","PayPalAccount","ApplePayCard","VenmoAccount","AndroidPayCard","paymentMethodCardTypes","Visa","MasterCard","Discover","UnionPay","Maestro","Elo","Hiper","Hipercard","cardTypeIcons","configurationCardTypes","dependencySetupStates","FAILED","INITIALIZING","NOT_ENABLED","NO_PAYMENT_METHOD_ERROR","DEVELOPER_MISCONFIGURATION_MESSAGE","CHANGE_ACTIVE_PAYMENT_METHOD_TIMEOUT","CHECKOUT_JS_SOURCE","GOOGLE_PAYMENT_SOURCE","PAYPAL_CHECKOUT_SCRIPT_ID","GOOGLE_PAYMENT_SCRIPT_ID","DATA_COLLECTOR_SCRIPT_ID","STYLESHEET_ID","DropinError","isGuestCheckout","paymentSheetViews","vaultManager","paymentOptionsViewID","ID","VAULTED_PAYMENT_METHOD_TYPES_THAT_SHOULD_ALWAYS_BE_HIDDEN","DEFAULT_PAYMENT_OPTION_PRIORITY","NON_PAYMENT_OPTION_DEPENDENCIES","ASYNC_DEPENDENCIES","DEPENDENCY_READY_CHECK_INTERVAL","DropinModel","componentID","merchantConfiguration","dependencyStates","dependencyKey","_shouldIncludeDependency","hiddenVaultedPaymentMethodTypes","constructHiddenPaymentMethodTypes","failedDependencies","_setupComplete","isInShadowDom","getPaymentOption","paymentOption","isPaymentOptionEnabled","SheetView","isEnabled","canShowVaultedPaymentMethodType","paymentMethodType","dep","dependencyReadyInterval","vaultManagerInstance","_vaultManager","_getSupportedPaymentOptions","paymentOptions","supportedPaymentOptions","getVaultedPaymentMethods","_paymentMethods","_paymentMethodIsRequestable","confirmDropinReady","isPaymentMethodRequestable","addPaymentMethod","changeActivePaymentMethod","removePaymentMethod","paymentMethodLocation","refreshPaymentMethods","_activePaymentMethod","changeActiveView","paymentViewID","previousViewId","_activePaymentViewId","newViewId","removeActivePaymentMethod","setPaymentMethodRequestable","isRequestable","selectPaymentOption","enableEditMode","_isInEditMode","disableEditMode","isInEditMode","confirmPaymentMethodDeletion","_paymentMethodWaitingToBeDeleted","paymentOptionPriority","_shouldEmitRequestableEvent","requestableStateHasNotChanged","nonceHasNotChanged","selectedPaymentMethod","_paymentMethodRequestableNonce","shouldEmitEvent","paymentMethodRequestableResponse","paymentMethodIsSelected","getPaymentMethods","getActivePaymentMethod","hasPaymentMethods","getInitialViewId","getActivePaymentViewId","reportAppSwitchPayload","appSwitchPayload","reportAppSwitchError","sheetId","appSwitchError","hasAtLeastOneAvailablePaymentOption","asyncDependencyReady","asyncDependencyFailed","cancelInitialization","reportError","clearError","preventUserAction","allowUserAction","deleteVaultedPaymentMethod","cancelDeleteVaultedPaymentMethod","showDefaultPaymentMethodFirst","_getSupportedPaymentMethods","vaulted","supportedPaymentMethods","promises","pos","MainView","translations","isUtf8","sanitizeHtml","DataCollector","mainHTML","svgHTML","PASS_THROUGH_EVENTS","UPDATABLE_CONFIGURATION_OPTIONS","UPDATABLE_CONFIGURATION_OPTIONS_THAT_REQUIRE_UNVAULTED_PAYMENT_METHODS_TO_BE_REMOVED","HAS_RAW_PAYMENT_DATA","Dropin","_componentID","_dropinWrapper","_merchantConfiguration","rawPaymentData","deviceData","localizedStrings","localizedHTML","_strings","endingIn","stringKey","stringValue","_model","_injectStylesheet","_disableErroredPaymentMethods","_handleAppSwitch","_setUpDependenciesAndViews","updateConfiguration","_mainView","getView","_removeUnvaultedPaymentMethods","_navigateToInitialView","_threeDSecure","getAvailablePaymentOptions","clearSelectedPaymentMethod","showLoadingIndicator","hideLoadingIndicator","_setUpDataCollector","dataCollector","_dataCollector","braintreeWebError","_setUpThreeDSecure","model","strings","initViewId","primaryView","setPrimaryView","_supportsPaymentOption","paymentMethodOptionsElements","getOptionsElements","div","clickHandler","errorMessageDiv","_sendVaultedPaymentMethodAppearAnalyticsEvents","typesThatSentAnEvent","_shouldPerformThreeDSecureVerification","newPayload","getDeviceData","_removeStylesheet","loadStylesheetOptions","teardownError","_removeDropinWrapper","createFromScriptTag","setAnalyticsIntegration","dropinVersion","addSelectionEventHandler","func","braintreeClientVersion","_millisToSeconds","millis","analyticsRequest","isIe9","isIe10","kebabCaseToCamelCase","WHITELISTED_DATA_ATTRIBUTES","injectHiddenInput","addCompositeKeyValuePairToObject","decomposedKeys","topLevelKey","deserialize","createFunction","scriptTag","createOptions","findParentForm","compositeKey","requestPaymentError","global","braintreeWebVersion","_instance","isBraintreeWebError","_braintreeWebError","nodeName","characterSet","kebab","capitalizedParts","part","cssText","DEFAULT_ACS_WINDOW_SIZE","PASSTHROUGH_EVENTS","merchantProvidedData","verifyOptions","acsWindowSize","onTransitionEnd","propertyName","transitionEventListener","time","payingWith","chooseAnotherWayToPay","chooseAWayToPay","otherWaysToPay","edit","doneEditing","editPaymentMethods","CreditCardDeleteConfirmationMessage","PayPalAccountDeleteConfirmationMessage","VenmoAccountDeleteConfirmationMessage","genericDeleteConfirmationMessage","deleteCancelButton","deleteConfirmationButton","fieldEmptyForCvv","fieldEmptyForExpirationDate","fieldEmptyForCardholderName","fieldEmptyForNumber","fieldEmptyForPostalCode","fieldInvalidForCardholderName","fieldInvalidForCvv","fieldInvalidForExpirationDate","fieldInvalidForNumber","fieldInvalidForPostalCode","fieldTooLongForCardholderName","noticeOfCollection","genericError","hostedFieldsTokenizationFailOnDuplicateError","hostedFieldsFailedTokenizationError","hostedFieldsTokenizationCvvVerificationFailedError","hostedFieldsTokenizationNetworkErrorError","hostedFieldsFieldsInvalidError","paypalButtonMustBeUsed","venmoButtonMustBeUsed","paypalAccountTokenizationFailedError","paypalFlowFailedError","paypalTokenizationRequestActiveError","applePayTokenizationError","applePayActiveCardError","vaultManagerPaymentMethodDeletionError","venmoCanceledError","venmoAppFailedError","unsupportedCardTypeError","cardholderNameLabel","cardNumberLabel","cvvLabel","cvvThreeDigitLabelSubheading","cvvFourDigitLabelSubheading","expirationDateLabel","expirationDateLabelSubheading","cardholderNamePlaceholder","expirationDatePlaceholder","postalCodeLabel","saveCardLabel","payWithCard","Card","PayPal","fiveCharacterLocales","ar_EG","cs_CZ","da_DK","de_DE","el_GR","en_AU","en_GB","en_IN","en_US","es_ES","es_XC","fi_FI","fr_CA","fr_FR","fr_XC","he_IL","hu_HU","id_ID","it_IT","ja_JP","ko_KR","nl_NL","no_NO","pl_PL","pt_BR","pt_PT","ru_RU","sk_SK","sv_SE","th_TH","zh_CN","zh_HK","zh_TW","zh_XC","twoCharacterLocaleAliases","ar","cs","da","es","fr","hu","ja","ko","nl","no","pl","ru","sk","sv","th","zh","BaseView","getPaymentMethod","activeMethodView","onSelection","DeleteConfirmationView","_yesButton","_noButton","_messageBox","applyPaymentMethod","secondaryIdentifier","messageText","sheetViews","PaymentMethodsView","PaymentOptionsView","wait","supportsFlexbox","dependenciesInitializing","prefixShowClass","paymentOptionsView","_hasMultiplePaymentOptions","_views","sheetContainer","sheetErrorText","disableWrapper","lowerContainer","loadingContainer","dropinContainer","showSheetError","hideSheetError","paymentSheetViewIDs","ids","sheetViewKey","PaymentSheetView","paymentSheetView","mainView","addView","paymentMethodsViews","deleteConfirmationView","toggleAdditionalOptions","_onChangeActiveView","activePaymentView","openConfirmPaymentMethodDeletionDialog","cancelVaultedPaymentMethodDeletion","startVaultedPaymentMethodDeletion","finishVaultedPaymentMethodDeletion","_sendToDefaultView","secondaryViewId","showToggle","hideToggle","sheetViewID","isPaymentSheetView","genericErrorMessage","teardownPromises","preselectVaultedPaymentMethod","paymentMethodHTML","PaymentMethodView","endingInText","_selectDelete","_choosePaymentMethod","checkMark","setActive","PAYMENT_METHOD_TYPE_TO_TRANSLATION_STRING","_headingLabel","_editButton","_addPaymentMethod","_changeActivePaymentMethodView","_removePaymentMethod","_getPaymentMethodString","paymentMethodTypeString","paymentMethodView","previousActiveMethodView","paymentMethodOptionHTML","paymentOptionID","_addPaymentOption","paymentSource","_generateOptionLabel","paymentSourceString","btApplePay","DEFAULT_APPLE_PAY_SESSION_VERSION","ApplePayView","applePayConfiguration","applePaySessionVersion","buttonDiv","onclick","_showPaymentSheet","buttonStyle","session","_sessionInProgress","ApplePaySession","onvalidatemerchant","validationData","completeMerchantValidation","validationErr","onpaymentauthorized","completePayment","STATUS_SUCCESS","tokenizeErr","STATUS_FAILURE","oncancel","applePayEnabled","supportsVersion","canMakePayments","paypalScriptLoadInProgressPromise","btPaypal","ASYNC_DEPENDENCY_TIMEOUT","READ_ONLY_CONFIGURATION_OPTIONS","DEFAULT_CHECKOUTJS_LOG_LEVEL","BasePayPalView","asyncDependencyTimeoutHandler","isCredit","_isPayPalCredit","setupComplete","paypalType","paypalConfiguration","dropinWrapperId","paypalInstance","checkoutJSConfiguration","commit","onAuthorize","shouldNotVault","vaultPayPal","tokenizePayload","onError","funding","disallowed","FUNDING","CREDIT","merchantPayPalConfig","viewID","logLevel","hostedFields","transitionHelper","cardIconHTML","CardView","hideCardIcon","icon","isCardViewElement","activeId","camelCaseToKebabCase","normalizeStyles","transformedKeyName","addBullets","bulletCharacter","generateCardNumberPlaceholder","four","cvvFieldGroup","postalCodeFieldGroup","hfOptions","cardholderNameGroup","hasCardholderName","cardholderNameRequired","_generateHostedFieldsOptions","_renderCardIcons","_hideUnsupportedCardIcons","hasCVV","saveCardInput","cardNumberIcon","cardNumberIconSvg","cvvIcon","cvvIconSvg","cvvLabelDescriptor","allowVaultCardOverride","vaultCard","hostedFieldsInstance","_onBlurEvent","_onCardTypeChangeEvent","_onFocusEvent","_onNotEmptyEvent","_onValidityChangeEvent","_sendRequestableEvent","_isTokenizing","_validateForm","cardIcons","cardBrand","hasCVVChallenge","hasPostalCodeChallenge","_getFieldContainer","color","_hasCustomCVVPlaceholder","showFieldErrors","showFieldError","transitionCallback","_shouldVault","fieldsToTokenize","clearFieldsAfterTokenization","fieldGroup","hideFieldError","_shouldApplyFieldEmptyError","_isCardTypeSupported","cardNumberHrefLink","cvvHrefLink","cvvDescriptor","cvvPlaceholder","numberFieldGroup","paymentMethodCardType","configurationCardType","disabledByMerchant","fieldId","btGooglePay","GooglePayView","createPaymentsClient","google","payments","PaymentsClient","buttonOptions","googlePayConfiguration","buttonType","onClick","googlePayInstance","paymentsClient","createButton","loadPaymentData","reportedError","statusCode","isReadyToPay","PayPalCreditView","PayPalView","btVenmo","VenmoView","venmoInstance","_isIgnorableError","countTo","upTo","seconds","minutes","hours","days","updateUI","hasDaysTarget","daysTarget","hasHoursTarget","hoursTarget","hasMinutesTarget","minutesTarget","secondsTarget","isMemberInput","isNotMemberInput","membershipNumber","_toConsumableArray","Buttons","createOrder","_createOrder","onApprove","_onApprove","order","payer","given_name","email_address","currency_code","_actions","orderIdTarget","toggleTargets","domClass","togglerClass","logicalName","identifierForContextKey","definitionForModuleAndIdentifier","definitionForModuleW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GACrC,OAAOA,EAAQsF,OAAO7H,KAAI,SAAU1D,GAClC,OAKJ,SAA8CiG,EAASjG,GACrD,IAAIkF,EAcC,SAAiClF,GACtC,IAAIwhK,GAAexhK,EAAI0F,MAAM,2CAA6C,IAAI,GAC9E,GAAI87J,EACF,OAAOA,EAAYrxJ,QAAQ,KAAM,KAAKA,QAAQ,MAAO,KAEzD,CAnBmBsxJ,CAAwBzhK,GACzC,GAAIkF,EACF,OAGJ,SAA0C1G,EAAQ0G,GAChD,IAAIqJ,EAAwB/P,EAAOiiD,QACnC,GAAoC,mBAAzBlyC,EACT,MAAO,CACLrJ,WAAYA,EACZqJ,sBAAuBA,EAG7B,CAXWmzJ,CAAiCz7J,EAAQjG,GAAMkF,EAE1D,CAVWy8J,CAAqC17J,EAASjG,EACvD,IAAG6K,QAAO,SAAUnL,GAClB,OAAOA,CACT,GACF,CDEiBkiK,CAAuB37J,G","file":"js/application-db431c9cd8e0098e7220.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/packs/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 11);\n","var EventListener = /** @class */function () {\n function EventListener(eventTarget, eventName) {\n this.eventTarget = eventTarget;\n this.eventName = eventName;\n this.unorderedBindings = new Set();\n }\n EventListener.prototype.connect = function () {\n this.eventTarget.addEventListener(this.eventName, this, false);\n };\n EventListener.prototype.disconnect = function () {\n this.eventTarget.removeEventListener(this.eventName, this, false);\n };\n // Binding observer delegate\n /** @hidden */\n EventListener.prototype.bindingConnected = function (binding) {\n this.unorderedBindings.add(binding);\n };\n /** @hidden */\n EventListener.prototype.bindingDisconnected = function (binding) {\n this.unorderedBindings.delete(binding);\n };\n EventListener.prototype.handleEvent = function (event) {\n var extendedEvent = extendEvent(event);\n for (var _i = 0, _a = this.bindings; _i < _a.length; _i++) {\n var binding = _a[_i];\n if (extendedEvent.immediatePropagationStopped) {\n break;\n } else {\n binding.handleEvent(extendedEvent);\n }\n }\n };\n Object.defineProperty(EventListener.prototype, \"bindings\", {\n get: function () {\n return Array.from(this.unorderedBindings).sort(function (left, right) {\n var leftIndex = left.index,\n rightIndex = right.index;\n return leftIndex < rightIndex ? -1 : leftIndex > rightIndex ? 1 : 0;\n });\n },\n enumerable: true,\n configurable: true\n });\n return EventListener;\n}();\nexport { EventListener };\nfunction extendEvent(event) {\n if (\"immediatePropagationStopped\" in event) {\n return event;\n } else {\n var stopImmediatePropagation_1 = event.stopImmediatePropagation;\n return Object.assign(event, {\n immediatePropagationStopped: false,\n stopImmediatePropagation: function () {\n this.immediatePropagationStopped = true;\n stopImmediatePropagation_1.call(this);\n }\n });\n }\n}","import { EventListener } from \"./event_listener\";\nvar Dispatcher = /** @class */function () {\n function Dispatcher(application) {\n this.application = application;\n this.eventListenerMaps = new Map();\n this.started = false;\n }\n Dispatcher.prototype.start = function () {\n if (!this.started) {\n this.started = true;\n this.eventListeners.forEach(function (eventListener) {\n return eventListener.connect();\n });\n }\n };\n Dispatcher.prototype.stop = function () {\n if (this.started) {\n this.started = false;\n this.eventListeners.forEach(function (eventListener) {\n return eventListener.disconnect();\n });\n }\n };\n Object.defineProperty(Dispatcher.prototype, \"eventListeners\", {\n get: function () {\n return Array.from(this.eventListenerMaps.values()).reduce(function (listeners, map) {\n return listeners.concat(Array.from(map.values()));\n }, []);\n },\n enumerable: true,\n configurable: true\n });\n // Binding observer delegate\n /** @hidden */\n Dispatcher.prototype.bindingConnected = function (binding) {\n this.fetchEventListenerForBinding(binding).bindingConnected(binding);\n };\n /** @hidden */\n Dispatcher.prototype.bindingDisconnected = function (binding) {\n this.fetchEventListenerForBinding(binding).bindingDisconnected(binding);\n };\n // Error handling\n Dispatcher.prototype.handleError = function (error, message, detail) {\n if (detail === void 0) {\n detail = {};\n }\n this.application.handleError(error, \"Error \" + message, detail);\n };\n Dispatcher.prototype.fetchEventListenerForBinding = function (binding) {\n var eventTarget = binding.eventTarget,\n eventName = binding.eventName;\n return this.fetchEventListener(eventTarget, eventName);\n };\n Dispatcher.prototype.fetchEventListener = function (eventTarget, eventName) {\n var eventListenerMap = this.fetchEventListenerMapForEventTarget(eventTarget);\n var eventListener = eventListenerMap.get(eventName);\n if (!eventListener) {\n eventListener = this.createEventListener(eventTarget, eventName);\n eventListenerMap.set(eventName, eventListener);\n }\n return eventListener;\n };\n Dispatcher.prototype.createEventListener = function (eventTarget, eventName) {\n var eventListener = new EventListener(eventTarget, eventName);\n if (this.started) {\n eventListener.connect();\n }\n return eventListener;\n };\n Dispatcher.prototype.fetchEventListenerMapForEventTarget = function (eventTarget) {\n var eventListenerMap = this.eventListenerMaps.get(eventTarget);\n if (!eventListenerMap) {\n eventListenerMap = new Map();\n this.eventListenerMaps.set(eventTarget, eventListenerMap);\n }\n return eventListenerMap;\n };\n return Dispatcher;\n}();\nexport { Dispatcher };","// capture nos.: 12 23 4 43 1 5 56 7 76\nvar descriptorPattern = /^((.+?)(@(window|document))?->)?(.+?)(#(.+))?$/;\nexport function parseDescriptorString(descriptorString) {\n var source = descriptorString.trim();\n var matches = source.match(descriptorPattern) || [];\n return {\n eventTarget: parseEventTarget(matches[4]),\n eventName: matches[2],\n identifier: matches[5],\n methodName: matches[7]\n };\n}\nfunction parseEventTarget(eventTargetName) {\n if (eventTargetName == \"window\") {\n return window;\n } else if (eventTargetName == \"document\") {\n return document;\n }\n}\nexport function stringifyEventTarget(eventTarget) {\n if (eventTarget == window) {\n return \"window\";\n } else if (eventTarget == document) {\n return \"document\";\n }\n}","import { parseDescriptorString, stringifyEventTarget } from \"./action_descriptor\";\nvar Action = /** @class */function () {\n function Action(element, index, descriptor) {\n this.element = element;\n this.index = index;\n this.eventTarget = descriptor.eventTarget || element;\n this.eventName = descriptor.eventName || getDefaultEventNameForElement(element) || error(\"missing event name\");\n this.identifier = descriptor.identifier || error(\"missing identifier\");\n this.methodName = descriptor.methodName || error(\"missing method name\");\n }\n Action.forToken = function (token) {\n return new this(token.element, token.index, parseDescriptorString(token.content));\n };\n Action.prototype.toString = function () {\n var eventNameSuffix = this.eventTargetName ? \"@\" + this.eventTargetName : \"\";\n return \"\" + this.eventName + eventNameSuffix + \"->\" + this.identifier + \"#\" + this.methodName;\n };\n Object.defineProperty(Action.prototype, \"eventTargetName\", {\n get: function () {\n return stringifyEventTarget(this.eventTarget);\n },\n enumerable: true,\n configurable: true\n });\n return Action;\n}();\nexport { Action };\nvar defaultEventNames = {\n \"a\": function (e) {\n return \"click\";\n },\n \"button\": function (e) {\n return \"click\";\n },\n \"form\": function (e) {\n return \"submit\";\n },\n \"input\": function (e) {\n return e.getAttribute(\"type\") == \"submit\" ? \"click\" : \"change\";\n },\n \"select\": function (e) {\n return \"change\";\n },\n \"textarea\": function (e) {\n return \"change\";\n }\n};\nexport function getDefaultEventNameForElement(element) {\n var tagName = element.tagName.toLowerCase();\n if (tagName in defaultEventNames) {\n return defaultEventNames[tagName](element);\n }\n}\nfunction error(message) {\n throw new Error(message);\n}","var Binding = /** @class */function () {\n function Binding(context, action) {\n this.context = context;\n this.action = action;\n }\n Object.defineProperty(Binding.prototype, \"index\", {\n get: function () {\n return this.action.index;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Binding.prototype, \"eventTarget\", {\n get: function () {\n return this.action.eventTarget;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Binding.prototype, \"identifier\", {\n get: function () {\n return this.context.identifier;\n },\n enumerable: true,\n configurable: true\n });\n Binding.prototype.handleEvent = function (event) {\n if (this.willBeInvokedByEvent(event)) {\n this.invokeWithEvent(event);\n }\n };\n Object.defineProperty(Binding.prototype, \"eventName\", {\n get: function () {\n return this.action.eventName;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Binding.prototype, \"method\", {\n get: function () {\n var method = this.controller[this.methodName];\n if (typeof method == \"function\") {\n return method;\n }\n throw new Error(\"Action \\\"\" + this.action + \"\\\" references undefined method \\\"\" + this.methodName + \"\\\"\");\n },\n enumerable: true,\n configurable: true\n });\n Binding.prototype.invokeWithEvent = function (event) {\n try {\n this.method.call(this.controller, event);\n } catch (error) {\n var _a = this,\n identifier = _a.identifier,\n controller = _a.controller,\n element = _a.element,\n index = _a.index;\n var detail = {\n identifier: identifier,\n controller: controller,\n element: element,\n index: index,\n event: event\n };\n this.context.handleError(error, \"invoking action \\\"\" + this.action + \"\\\"\", detail);\n }\n };\n Binding.prototype.willBeInvokedByEvent = function (event) {\n var eventTarget = event.target;\n if (this.element === eventTarget) {\n return true;\n } else if (eventTarget instanceof Element && this.element.contains(eventTarget)) {\n return this.scope.containsElement(eventTarget);\n } else {\n return true;\n }\n };\n Object.defineProperty(Binding.prototype, \"controller\", {\n get: function () {\n return this.context.controller;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Binding.prototype, \"methodName\", {\n get: function () {\n return this.action.methodName;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Binding.prototype, \"element\", {\n get: function () {\n return this.scope.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Binding.prototype, \"scope\", {\n get: function () {\n return this.context.scope;\n },\n enumerable: true,\n configurable: true\n });\n return Binding;\n}();\nexport { Binding };","var ElementObserver = /** @class */function () {\n function ElementObserver(element, delegate) {\n var _this = this;\n this.element = element;\n this.started = false;\n this.delegate = delegate;\n this.elements = new Set();\n this.mutationObserver = new MutationObserver(function (mutations) {\n return _this.processMutations(mutations);\n });\n }\n ElementObserver.prototype.start = function () {\n if (!this.started) {\n this.started = true;\n this.mutationObserver.observe(this.element, {\n attributes: true,\n childList: true,\n subtree: true\n });\n this.refresh();\n }\n };\n ElementObserver.prototype.stop = function () {\n if (this.started) {\n this.mutationObserver.takeRecords();\n this.mutationObserver.disconnect();\n this.started = false;\n }\n };\n ElementObserver.prototype.refresh = function () {\n if (this.started) {\n var matches = new Set(this.matchElementsInTree());\n for (var _i = 0, _a = Array.from(this.elements); _i < _a.length; _i++) {\n var element = _a[_i];\n if (!matches.has(element)) {\n this.removeElement(element);\n }\n }\n for (var _b = 0, _c = Array.from(matches); _b < _c.length; _b++) {\n var element = _c[_b];\n this.addElement(element);\n }\n }\n };\n // Mutation record processing\n ElementObserver.prototype.processMutations = function (mutations) {\n if (this.started) {\n for (var _i = 0, mutations_1 = mutations; _i < mutations_1.length; _i++) {\n var mutation = mutations_1[_i];\n this.processMutation(mutation);\n }\n }\n };\n ElementObserver.prototype.processMutation = function (mutation) {\n if (mutation.type == \"attributes\") {\n this.processAttributeChange(mutation.target, mutation.attributeName);\n } else if (mutation.type == \"childList\") {\n this.processRemovedNodes(mutation.removedNodes);\n this.processAddedNodes(mutation.addedNodes);\n }\n };\n ElementObserver.prototype.processAttributeChange = function (node, attributeName) {\n var element = node;\n if (this.elements.has(element)) {\n if (this.delegate.elementAttributeChanged && this.matchElement(element)) {\n this.delegate.elementAttributeChanged(element, attributeName);\n } else {\n this.removeElement(element);\n }\n } else if (this.matchElement(element)) {\n this.addElement(element);\n }\n };\n ElementObserver.prototype.processRemovedNodes = function (nodes) {\n for (var _i = 0, _a = Array.from(nodes); _i < _a.length; _i++) {\n var node = _a[_i];\n var element = this.elementFromNode(node);\n if (element) {\n this.processTree(element, this.removeElement);\n }\n }\n };\n ElementObserver.prototype.processAddedNodes = function (nodes) {\n for (var _i = 0, _a = Array.from(nodes); _i < _a.length; _i++) {\n var node = _a[_i];\n var element = this.elementFromNode(node);\n if (element && this.elementIsActive(element)) {\n this.processTree(element, this.addElement);\n }\n }\n };\n // Element matching\n ElementObserver.prototype.matchElement = function (element) {\n return this.delegate.matchElement(element);\n };\n ElementObserver.prototype.matchElementsInTree = function (tree) {\n if (tree === void 0) {\n tree = this.element;\n }\n return this.delegate.matchElementsInTree(tree);\n };\n ElementObserver.prototype.processTree = function (tree, processor) {\n for (var _i = 0, _a = this.matchElementsInTree(tree); _i < _a.length; _i++) {\n var element = _a[_i];\n processor.call(this, element);\n }\n };\n ElementObserver.prototype.elementFromNode = function (node) {\n if (node.nodeType == Node.ELEMENT_NODE) {\n return node;\n }\n };\n ElementObserver.prototype.elementIsActive = function (element) {\n if (element.isConnected != this.element.isConnected) {\n return false;\n } else {\n return this.element.contains(element);\n }\n };\n // Element tracking\n ElementObserver.prototype.addElement = function (element) {\n if (!this.elements.has(element)) {\n if (this.elementIsActive(element)) {\n this.elements.add(element);\n if (this.delegate.elementMatched) {\n this.delegate.elementMatched(element);\n }\n }\n }\n };\n ElementObserver.prototype.removeElement = function (element) {\n if (this.elements.has(element)) {\n this.elements.delete(element);\n if (this.delegate.elementUnmatched) {\n this.delegate.elementUnmatched(element);\n }\n }\n };\n return ElementObserver;\n}();\nexport { ElementObserver };","import { ElementObserver } from \"./element_observer\";\nvar AttributeObserver = /** @class */function () {\n function AttributeObserver(element, attributeName, delegate) {\n this.attributeName = attributeName;\n this.delegate = delegate;\n this.elementObserver = new ElementObserver(element, this);\n }\n Object.defineProperty(AttributeObserver.prototype, \"element\", {\n get: function () {\n return this.elementObserver.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AttributeObserver.prototype, \"selector\", {\n get: function () {\n return \"[\" + this.attributeName + \"]\";\n },\n enumerable: true,\n configurable: true\n });\n AttributeObserver.prototype.start = function () {\n this.elementObserver.start();\n };\n AttributeObserver.prototype.stop = function () {\n this.elementObserver.stop();\n };\n AttributeObserver.prototype.refresh = function () {\n this.elementObserver.refresh();\n };\n Object.defineProperty(AttributeObserver.prototype, \"started\", {\n get: function () {\n return this.elementObserver.started;\n },\n enumerable: true,\n configurable: true\n });\n // Element observer delegate\n AttributeObserver.prototype.matchElement = function (element) {\n return element.hasAttribute(this.attributeName);\n };\n AttributeObserver.prototype.matchElementsInTree = function (tree) {\n var match = this.matchElement(tree) ? [tree] : [];\n var matches = Array.from(tree.querySelectorAll(this.selector));\n return match.concat(matches);\n };\n AttributeObserver.prototype.elementMatched = function (element) {\n if (this.delegate.elementMatchedAttribute) {\n this.delegate.elementMatchedAttribute(element, this.attributeName);\n }\n };\n AttributeObserver.prototype.elementUnmatched = function (element) {\n if (this.delegate.elementUnmatchedAttribute) {\n this.delegate.elementUnmatchedAttribute(element, this.attributeName);\n }\n };\n AttributeObserver.prototype.elementAttributeChanged = function (element, attributeName) {\n if (this.delegate.elementAttributeValueChanged && this.attributeName == attributeName) {\n this.delegate.elementAttributeValueChanged(element, attributeName);\n }\n };\n return AttributeObserver;\n}();\nexport { AttributeObserver };","export function add(map, key, value) {\n fetch(map, key).add(value);\n}\nexport function del(map, key, value) {\n fetch(map, key).delete(value);\n prune(map, key);\n}\nexport function fetch(map, key) {\n var values = map.get(key);\n if (!values) {\n values = new Set();\n map.set(key, values);\n }\n return values;\n}\nexport function prune(map, key) {\n var values = map.get(key);\n if (values != null && values.size == 0) {\n map.delete(key);\n }\n}","import { add, del } from \"./set_operations\";\nvar Multimap = /** @class */function () {\n function Multimap() {\n this.valuesByKey = new Map();\n }\n Object.defineProperty(Multimap.prototype, \"values\", {\n get: function () {\n var sets = Array.from(this.valuesByKey.values());\n return sets.reduce(function (values, set) {\n return values.concat(Array.from(set));\n }, []);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Multimap.prototype, \"size\", {\n get: function () {\n var sets = Array.from(this.valuesByKey.values());\n return sets.reduce(function (size, set) {\n return size + set.size;\n }, 0);\n },\n enumerable: true,\n configurable: true\n });\n Multimap.prototype.add = function (key, value) {\n add(this.valuesByKey, key, value);\n };\n Multimap.prototype.delete = function (key, value) {\n del(this.valuesByKey, key, value);\n };\n Multimap.prototype.has = function (key, value) {\n var values = this.valuesByKey.get(key);\n return values != null && values.has(value);\n };\n Multimap.prototype.hasKey = function (key) {\n return this.valuesByKey.has(key);\n };\n Multimap.prototype.hasValue = function (value) {\n var sets = Array.from(this.valuesByKey.values());\n return sets.some(function (set) {\n return set.has(value);\n });\n };\n Multimap.prototype.getValuesForKey = function (key) {\n var values = this.valuesByKey.get(key);\n return values ? Array.from(values) : [];\n };\n Multimap.prototype.getKeysForValue = function (value) {\n return Array.from(this.valuesByKey).filter(function (_a) {\n var key = _a[0],\n values = _a[1];\n return values.has(value);\n }).map(function (_a) {\n var key = _a[0],\n values = _a[1];\n return key;\n });\n };\n return Multimap;\n}();\nexport { Multimap };","var __extends = this && this.__extends || function () {\n var extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nimport { Multimap } from \"./multimap\";\nimport { add, del } from \"./set_operations\";\nvar IndexedMultimap = /** @class */function (_super) {\n __extends(IndexedMultimap, _super);\n function IndexedMultimap() {\n var _this = _super.call(this) || this;\n _this.keysByValue = new Map();\n return _this;\n }\n Object.defineProperty(IndexedMultimap.prototype, \"values\", {\n get: function () {\n return Array.from(this.keysByValue.keys());\n },\n enumerable: true,\n configurable: true\n });\n IndexedMultimap.prototype.add = function (key, value) {\n _super.prototype.add.call(this, key, value);\n add(this.keysByValue, value, key);\n };\n IndexedMultimap.prototype.delete = function (key, value) {\n _super.prototype.delete.call(this, key, value);\n del(this.keysByValue, value, key);\n };\n IndexedMultimap.prototype.hasValue = function (value) {\n return this.keysByValue.has(value);\n };\n IndexedMultimap.prototype.getKeysForValue = function (value) {\n var set = this.keysByValue.get(value);\n return set ? Array.from(set) : [];\n };\n return IndexedMultimap;\n}(Multimap);\nexport { IndexedMultimap };","import { AttributeObserver } from \"./attribute_observer\";\nimport { Multimap } from \"@stimulus/multimap\";\nvar TokenListObserver = /** @class */function () {\n function TokenListObserver(element, attributeName, delegate) {\n this.attributeObserver = new AttributeObserver(element, attributeName, this);\n this.delegate = delegate;\n this.tokensByElement = new Multimap();\n }\n Object.defineProperty(TokenListObserver.prototype, \"started\", {\n get: function () {\n return this.attributeObserver.started;\n },\n enumerable: true,\n configurable: true\n });\n TokenListObserver.prototype.start = function () {\n this.attributeObserver.start();\n };\n TokenListObserver.prototype.stop = function () {\n this.attributeObserver.stop();\n };\n TokenListObserver.prototype.refresh = function () {\n this.attributeObserver.refresh();\n };\n Object.defineProperty(TokenListObserver.prototype, \"element\", {\n get: function () {\n return this.attributeObserver.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TokenListObserver.prototype, \"attributeName\", {\n get: function () {\n return this.attributeObserver.attributeName;\n },\n enumerable: true,\n configurable: true\n });\n // Attribute observer delegate\n TokenListObserver.prototype.elementMatchedAttribute = function (element) {\n this.tokensMatched(this.readTokensForElement(element));\n };\n TokenListObserver.prototype.elementAttributeValueChanged = function (element) {\n var _a = this.refreshTokensForElement(element),\n unmatchedTokens = _a[0],\n matchedTokens = _a[1];\n this.tokensUnmatched(unmatchedTokens);\n this.tokensMatched(matchedTokens);\n };\n TokenListObserver.prototype.elementUnmatchedAttribute = function (element) {\n this.tokensUnmatched(this.tokensByElement.getValuesForKey(element));\n };\n TokenListObserver.prototype.tokensMatched = function (tokens) {\n var _this = this;\n tokens.forEach(function (token) {\n return _this.tokenMatched(token);\n });\n };\n TokenListObserver.prototype.tokensUnmatched = function (tokens) {\n var _this = this;\n tokens.forEach(function (token) {\n return _this.tokenUnmatched(token);\n });\n };\n TokenListObserver.prototype.tokenMatched = function (token) {\n this.delegate.tokenMatched(token);\n this.tokensByElement.add(token.element, token);\n };\n TokenListObserver.prototype.tokenUnmatched = function (token) {\n this.delegate.tokenUnmatched(token);\n this.tokensByElement.delete(token.element, token);\n };\n TokenListObserver.prototype.refreshTokensForElement = function (element) {\n var previousTokens = this.tokensByElement.getValuesForKey(element);\n var currentTokens = this.readTokensForElement(element);\n var firstDifferingIndex = zip(previousTokens, currentTokens).findIndex(function (_a) {\n var previousToken = _a[0],\n currentToken = _a[1];\n return !tokensAreEqual(previousToken, currentToken);\n });\n if (firstDifferingIndex == -1) {\n return [[], []];\n } else {\n return [previousTokens.slice(firstDifferingIndex), currentTokens.slice(firstDifferingIndex)];\n }\n };\n TokenListObserver.prototype.readTokensForElement = function (element) {\n var attributeName = this.attributeName;\n var tokenString = element.getAttribute(attributeName) || \"\";\n return parseTokenString(tokenString, element, attributeName);\n };\n return TokenListObserver;\n}();\nexport { TokenListObserver };\nfunction parseTokenString(tokenString, element, attributeName) {\n return tokenString.trim().split(/\\s+/).filter(function (content) {\n return content.length;\n }).map(function (content, index) {\n return {\n element: element,\n attributeName: attributeName,\n content: content,\n index: index\n };\n });\n}\nfunction zip(left, right) {\n var length = Math.max(left.length, right.length);\n return Array.from({\n length: length\n }, function (_, index) {\n return [left[index], right[index]];\n });\n}\nfunction tokensAreEqual(left, right) {\n return left && right && left.index == right.index && left.content == right.content;\n}","import { TokenListObserver } from \"./token_list_observer\";\nvar ValueListObserver = /** @class */function () {\n function ValueListObserver(element, attributeName, delegate) {\n this.tokenListObserver = new TokenListObserver(element, attributeName, this);\n this.delegate = delegate;\n this.parseResultsByToken = new WeakMap();\n this.valuesByTokenByElement = new WeakMap();\n }\n Object.defineProperty(ValueListObserver.prototype, \"started\", {\n get: function () {\n return this.tokenListObserver.started;\n },\n enumerable: true,\n configurable: true\n });\n ValueListObserver.prototype.start = function () {\n this.tokenListObserver.start();\n };\n ValueListObserver.prototype.stop = function () {\n this.tokenListObserver.stop();\n };\n ValueListObserver.prototype.refresh = function () {\n this.tokenListObserver.refresh();\n };\n Object.defineProperty(ValueListObserver.prototype, \"element\", {\n get: function () {\n return this.tokenListObserver.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ValueListObserver.prototype, \"attributeName\", {\n get: function () {\n return this.tokenListObserver.attributeName;\n },\n enumerable: true,\n configurable: true\n });\n ValueListObserver.prototype.tokenMatched = function (token) {\n var element = token.element;\n var value = this.fetchParseResultForToken(token).value;\n if (value) {\n this.fetchValuesByTokenForElement(element).set(token, value);\n this.delegate.elementMatchedValue(element, value);\n }\n };\n ValueListObserver.prototype.tokenUnmatched = function (token) {\n var element = token.element;\n var value = this.fetchParseResultForToken(token).value;\n if (value) {\n this.fetchValuesByTokenForElement(element).delete(token);\n this.delegate.elementUnmatchedValue(element, value);\n }\n };\n ValueListObserver.prototype.fetchParseResultForToken = function (token) {\n var parseResult = this.parseResultsByToken.get(token);\n if (!parseResult) {\n parseResult = this.parseToken(token);\n this.parseResultsByToken.set(token, parseResult);\n }\n return parseResult;\n };\n ValueListObserver.prototype.fetchValuesByTokenForElement = function (element) {\n var valuesByToken = this.valuesByTokenByElement.get(element);\n if (!valuesByToken) {\n valuesByToken = new Map();\n this.valuesByTokenByElement.set(element, valuesByToken);\n }\n return valuesByToken;\n };\n ValueListObserver.prototype.parseToken = function (token) {\n try {\n var value = this.delegate.parseValueForToken(token);\n return {\n value: value\n };\n } catch (error) {\n return {\n error: error\n };\n }\n };\n return ValueListObserver;\n}();\nexport { ValueListObserver };","import { Action } from \"./action\";\nimport { Binding } from \"./binding\";\nimport { ValueListObserver } from \"@stimulus/mutation-observers\";\nvar BindingObserver = /** @class */function () {\n function BindingObserver(context, delegate) {\n this.context = context;\n this.delegate = delegate;\n this.bindingsByAction = new Map();\n }\n BindingObserver.prototype.start = function () {\n if (!this.valueListObserver) {\n this.valueListObserver = new ValueListObserver(this.element, this.actionAttribute, this);\n this.valueListObserver.start();\n }\n };\n BindingObserver.prototype.stop = function () {\n if (this.valueListObserver) {\n this.valueListObserver.stop();\n delete this.valueListObserver;\n this.disconnectAllActions();\n }\n };\n Object.defineProperty(BindingObserver.prototype, \"element\", {\n get: function () {\n return this.context.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BindingObserver.prototype, \"identifier\", {\n get: function () {\n return this.context.identifier;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BindingObserver.prototype, \"actionAttribute\", {\n get: function () {\n return this.schema.actionAttribute;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BindingObserver.prototype, \"schema\", {\n get: function () {\n return this.context.schema;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BindingObserver.prototype, \"bindings\", {\n get: function () {\n return Array.from(this.bindingsByAction.values());\n },\n enumerable: true,\n configurable: true\n });\n BindingObserver.prototype.connectAction = function (action) {\n var binding = new Binding(this.context, action);\n this.bindingsByAction.set(action, binding);\n this.delegate.bindingConnected(binding);\n };\n BindingObserver.prototype.disconnectAction = function (action) {\n var binding = this.bindingsByAction.get(action);\n if (binding) {\n this.bindingsByAction.delete(action);\n this.delegate.bindingDisconnected(binding);\n }\n };\n BindingObserver.prototype.disconnectAllActions = function () {\n var _this = this;\n this.bindings.forEach(function (binding) {\n return _this.delegate.bindingDisconnected(binding);\n });\n this.bindingsByAction.clear();\n };\n // Value observer delegate\n BindingObserver.prototype.parseValueForToken = function (token) {\n var action = Action.forToken(token);\n if (action.identifier == this.identifier) {\n return action;\n }\n };\n BindingObserver.prototype.elementMatchedValue = function (element, action) {\n this.connectAction(action);\n };\n BindingObserver.prototype.elementUnmatchedValue = function (element, action) {\n this.disconnectAction(action);\n };\n return BindingObserver;\n}();\nexport { BindingObserver };","import { BindingObserver } from \"./binding_observer\";\nvar Context = /** @class */function () {\n function Context(module, scope) {\n this.module = module;\n this.scope = scope;\n this.controller = new module.controllerConstructor(this);\n this.bindingObserver = new BindingObserver(this, this.dispatcher);\n try {\n this.controller.initialize();\n } catch (error) {\n this.handleError(error, \"initializing controller\");\n }\n }\n Context.prototype.connect = function () {\n this.bindingObserver.start();\n try {\n this.controller.connect();\n } catch (error) {\n this.handleError(error, \"connecting controller\");\n }\n };\n Context.prototype.disconnect = function () {\n try {\n this.controller.disconnect();\n } catch (error) {\n this.handleError(error, \"disconnecting controller\");\n }\n this.bindingObserver.stop();\n };\n Object.defineProperty(Context.prototype, \"application\", {\n get: function () {\n return this.module.application;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Context.prototype, \"identifier\", {\n get: function () {\n return this.module.identifier;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Context.prototype, \"schema\", {\n get: function () {\n return this.application.schema;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Context.prototype, \"dispatcher\", {\n get: function () {\n return this.application.dispatcher;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Context.prototype, \"element\", {\n get: function () {\n return this.scope.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Context.prototype, \"parentElement\", {\n get: function () {\n return this.element.parentElement;\n },\n enumerable: true,\n configurable: true\n });\n // Error handling\n Context.prototype.handleError = function (error, message, detail) {\n if (detail === void 0) {\n detail = {};\n }\n var _a = this,\n identifier = _a.identifier,\n controller = _a.controller,\n element = _a.element;\n detail = Object.assign({\n identifier: identifier,\n controller: controller,\n element: element\n }, detail);\n this.application.handleError(error, \"Error \" + message, detail);\n };\n return Context;\n}();\nexport { Context };","var __extends = this && this.__extends || function () {\n var extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n/** @hidden */\nexport function blessDefinition(definition) {\n return {\n identifier: definition.identifier,\n controllerConstructor: blessControllerConstructor(definition.controllerConstructor)\n };\n}\nfunction blessControllerConstructor(controllerConstructor) {\n var constructor = extend(controllerConstructor);\n constructor.bless();\n return constructor;\n}\nvar extend = function () {\n function extendWithReflect(constructor) {\n function Controller() {\n var _newTarget = this && this instanceof Controller ? this.constructor : void 0;\n return Reflect.construct(constructor, arguments, _newTarget);\n }\n Controller.prototype = Object.create(constructor.prototype, {\n constructor: {\n value: Controller\n }\n });\n Reflect.setPrototypeOf(Controller, constructor);\n return Controller;\n }\n function testReflectExtension() {\n var a = function () {\n this.a.call(this);\n };\n var b = extendWithReflect(a);\n b.prototype.a = function () {};\n return new b();\n }\n try {\n testReflectExtension();\n return extendWithReflect;\n } catch (error) {\n return function (constructor) {\n return (/** @class */function (_super) {\n __extends(Controller, _super);\n function Controller() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n return Controller;\n }(constructor)\n );\n };\n }\n}();","import { Context } from \"./context\";\nimport { blessDefinition } from \"./definition\";\nvar Module = /** @class */function () {\n function Module(application, definition) {\n this.application = application;\n this.definition = blessDefinition(definition);\n this.contextsByScope = new WeakMap();\n this.connectedContexts = new Set();\n }\n Object.defineProperty(Module.prototype, \"identifier\", {\n get: function () {\n return this.definition.identifier;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Module.prototype, \"controllerConstructor\", {\n get: function () {\n return this.definition.controllerConstructor;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Module.prototype, \"contexts\", {\n get: function () {\n return Array.from(this.connectedContexts);\n },\n enumerable: true,\n configurable: true\n });\n Module.prototype.connectContextForScope = function (scope) {\n var context = this.fetchContextForScope(scope);\n this.connectedContexts.add(context);\n context.connect();\n };\n Module.prototype.disconnectContextForScope = function (scope) {\n var context = this.contextsByScope.get(scope);\n if (context) {\n this.connectedContexts.delete(context);\n context.disconnect();\n }\n };\n Module.prototype.fetchContextForScope = function (scope) {\n var context = this.contextsByScope.get(scope);\n if (!context) {\n context = new Context(this, scope);\n this.contextsByScope.set(scope, context);\n }\n return context;\n };\n return Module;\n}();\nexport { Module };","var DataMap = /** @class */function () {\n function DataMap(scope) {\n this.scope = scope;\n }\n Object.defineProperty(DataMap.prototype, \"element\", {\n get: function () {\n return this.scope.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(DataMap.prototype, \"identifier\", {\n get: function () {\n return this.scope.identifier;\n },\n enumerable: true,\n configurable: true\n });\n DataMap.prototype.get = function (key) {\n key = this.getFormattedKey(key);\n return this.element.getAttribute(key);\n };\n DataMap.prototype.set = function (key, value) {\n key = this.getFormattedKey(key);\n this.element.setAttribute(key, value);\n return this.get(key);\n };\n DataMap.prototype.has = function (key) {\n key = this.getFormattedKey(key);\n return this.element.hasAttribute(key);\n };\n DataMap.prototype.delete = function (key) {\n if (this.has(key)) {\n key = this.getFormattedKey(key);\n this.element.removeAttribute(key);\n return true;\n } else {\n return false;\n }\n };\n DataMap.prototype.getFormattedKey = function (key) {\n return \"data-\" + this.identifier + \"-\" + dasherize(key);\n };\n return DataMap;\n}();\nexport { DataMap };\nfunction dasherize(value) {\n return value.replace(/([A-Z])/g, function (_, char) {\n return \"-\" + char.toLowerCase();\n });\n}","/** @hidden */\nexport function attributeValueContainsToken(attributeName, token) {\n return \"[\" + attributeName + \"~=\\\"\" + token + \"\\\"]\";\n}","import { attributeValueContainsToken } from \"./selectors\";\nvar TargetSet = /** @class */function () {\n function TargetSet(scope) {\n this.scope = scope;\n }\n Object.defineProperty(TargetSet.prototype, \"element\", {\n get: function () {\n return this.scope.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TargetSet.prototype, \"identifier\", {\n get: function () {\n return this.scope.identifier;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TargetSet.prototype, \"schema\", {\n get: function () {\n return this.scope.schema;\n },\n enumerable: true,\n configurable: true\n });\n TargetSet.prototype.has = function (targetName) {\n return this.find(targetName) != null;\n };\n TargetSet.prototype.find = function () {\n var targetNames = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n targetNames[_i] = arguments[_i];\n }\n var selector = this.getSelectorForTargetNames(targetNames);\n return this.scope.findElement(selector);\n };\n TargetSet.prototype.findAll = function () {\n var targetNames = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n targetNames[_i] = arguments[_i];\n }\n var selector = this.getSelectorForTargetNames(targetNames);\n return this.scope.findAllElements(selector);\n };\n TargetSet.prototype.getSelectorForTargetNames = function (targetNames) {\n var _this = this;\n return targetNames.map(function (targetName) {\n return _this.getSelectorForTargetName(targetName);\n }).join(\", \");\n };\n TargetSet.prototype.getSelectorForTargetName = function (targetName) {\n var targetDescriptor = this.identifier + \".\" + targetName;\n return attributeValueContainsToken(this.schema.targetAttribute, targetDescriptor);\n };\n return TargetSet;\n}();\nexport { TargetSet };","import { DataMap } from \"./data_map\";\nimport { TargetSet } from \"./target_set\";\nimport { attributeValueContainsToken } from \"./selectors\";\nvar Scope = /** @class */function () {\n function Scope(schema, identifier, element) {\n this.schema = schema;\n this.identifier = identifier;\n this.element = element;\n this.targets = new TargetSet(this);\n this.data = new DataMap(this);\n }\n Scope.prototype.findElement = function (selector) {\n return this.findAllElements(selector)[0];\n };\n Scope.prototype.findAllElements = function (selector) {\n var head = this.element.matches(selector) ? [this.element] : [];\n var tail = this.filterElements(Array.from(this.element.querySelectorAll(selector)));\n return head.concat(tail);\n };\n Scope.prototype.filterElements = function (elements) {\n var _this = this;\n return elements.filter(function (element) {\n return _this.containsElement(element);\n });\n };\n Scope.prototype.containsElement = function (element) {\n return element.closest(this.controllerSelector) === this.element;\n };\n Object.defineProperty(Scope.prototype, \"controllerSelector\", {\n get: function () {\n return attributeValueContainsToken(this.schema.controllerAttribute, this.identifier);\n },\n enumerable: true,\n configurable: true\n });\n return Scope;\n}();\nexport { Scope };","import { Scope } from \"./scope\";\nimport { ValueListObserver } from \"@stimulus/mutation-observers\";\nvar ScopeObserver = /** @class */function () {\n function ScopeObserver(element, schema, delegate) {\n this.element = element;\n this.schema = schema;\n this.delegate = delegate;\n this.valueListObserver = new ValueListObserver(this.element, this.controllerAttribute, this);\n this.scopesByIdentifierByElement = new WeakMap();\n this.scopeReferenceCounts = new WeakMap();\n }\n ScopeObserver.prototype.start = function () {\n this.valueListObserver.start();\n };\n ScopeObserver.prototype.stop = function () {\n this.valueListObserver.stop();\n };\n Object.defineProperty(ScopeObserver.prototype, \"controllerAttribute\", {\n get: function () {\n return this.schema.controllerAttribute;\n },\n enumerable: true,\n configurable: true\n });\n // Value observer delegate\n /** @hidden */\n ScopeObserver.prototype.parseValueForToken = function (token) {\n var element = token.element,\n identifier = token.content;\n var scopesByIdentifier = this.fetchScopesByIdentifierForElement(element);\n var scope = scopesByIdentifier.get(identifier);\n if (!scope) {\n scope = new Scope(this.schema, identifier, element);\n scopesByIdentifier.set(identifier, scope);\n }\n return scope;\n };\n /** @hidden */\n ScopeObserver.prototype.elementMatchedValue = function (element, value) {\n var referenceCount = (this.scopeReferenceCounts.get(value) || 0) + 1;\n this.scopeReferenceCounts.set(value, referenceCount);\n if (referenceCount == 1) {\n this.delegate.scopeConnected(value);\n }\n };\n /** @hidden */\n ScopeObserver.prototype.elementUnmatchedValue = function (element, value) {\n var referenceCount = this.scopeReferenceCounts.get(value);\n if (referenceCount) {\n this.scopeReferenceCounts.set(value, referenceCount - 1);\n if (referenceCount == 1) {\n this.delegate.scopeDisconnected(value);\n }\n }\n };\n ScopeObserver.prototype.fetchScopesByIdentifierForElement = function (element) {\n var scopesByIdentifier = this.scopesByIdentifierByElement.get(element);\n if (!scopesByIdentifier) {\n scopesByIdentifier = new Map();\n this.scopesByIdentifierByElement.set(element, scopesByIdentifier);\n }\n return scopesByIdentifier;\n };\n return ScopeObserver;\n}();\nexport { ScopeObserver };","import { Module } from \"./module\";\nimport { Multimap } from \"@stimulus/multimap\";\nimport { ScopeObserver } from \"./scope_observer\";\nvar Router = /** @class */function () {\n function Router(application) {\n this.application = application;\n this.scopeObserver = new ScopeObserver(this.element, this.schema, this);\n this.scopesByIdentifier = new Multimap();\n this.modulesByIdentifier = new Map();\n }\n Object.defineProperty(Router.prototype, \"element\", {\n get: function () {\n return this.application.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Router.prototype, \"schema\", {\n get: function () {\n return this.application.schema;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Router.prototype, \"controllerAttribute\", {\n get: function () {\n return this.schema.controllerAttribute;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Router.prototype, \"modules\", {\n get: function () {\n return Array.from(this.modulesByIdentifier.values());\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Router.prototype, \"contexts\", {\n get: function () {\n return this.modules.reduce(function (contexts, module) {\n return contexts.concat(module.contexts);\n }, []);\n },\n enumerable: true,\n configurable: true\n });\n Router.prototype.start = function () {\n this.scopeObserver.start();\n };\n Router.prototype.stop = function () {\n this.scopeObserver.stop();\n };\n Router.prototype.loadDefinition = function (definition) {\n this.unloadIdentifier(definition.identifier);\n var module = new Module(this.application, definition);\n this.connectModule(module);\n };\n Router.prototype.unloadIdentifier = function (identifier) {\n var module = this.modulesByIdentifier.get(identifier);\n if (module) {\n this.disconnectModule(module);\n }\n };\n Router.prototype.getContextForElementAndIdentifier = function (element, identifier) {\n var module = this.modulesByIdentifier.get(identifier);\n if (module) {\n return module.contexts.find(function (context) {\n return context.element == element;\n });\n }\n };\n // Error handler delegate\n /** @hidden */\n Router.prototype.handleError = function (error, message, detail) {\n this.application.handleError(error, message, detail);\n };\n // Scope observer delegate\n /** @hidden */\n Router.prototype.scopeConnected = function (scope) {\n this.scopesByIdentifier.add(scope.identifier, scope);\n var module = this.modulesByIdentifier.get(scope.identifier);\n if (module) {\n module.connectContextForScope(scope);\n }\n };\n /** @hidden */\n Router.prototype.scopeDisconnected = function (scope) {\n this.scopesByIdentifier.delete(scope.identifier, scope);\n var module = this.modulesByIdentifier.get(scope.identifier);\n if (module) {\n module.disconnectContextForScope(scope);\n }\n };\n // Modules\n Router.prototype.connectModule = function (module) {\n this.modulesByIdentifier.set(module.identifier, module);\n var scopes = this.scopesByIdentifier.getValuesForKey(module.identifier);\n scopes.forEach(function (scope) {\n return module.connectContextForScope(scope);\n });\n };\n Router.prototype.disconnectModule = function (module) {\n this.modulesByIdentifier.delete(module.identifier);\n var scopes = this.scopesByIdentifier.getValuesForKey(module.identifier);\n scopes.forEach(function (scope) {\n return module.disconnectContextForScope(scope);\n });\n };\n return Router;\n}();\nexport { Router };","export var defaultSchema = {\n controllerAttribute: \"data-controller\",\n actionAttribute: \"data-action\",\n targetAttribute: \"data-target\"\n};","var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : new P(function (resolve) {\n resolve(result.value);\n }).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = this && this.__generator || function (thisArg, body) {\n var _ = {\n label: 0,\n sent: function () {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n },\n f,\n y,\n t,\n g;\n return g = {\n next: verb(0),\n \"throw\": verb(1),\n \"return\": verb(2)\n }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function () {\n return this;\n }), g;\n function verb(n) {\n return function (v) {\n return step([n, v]);\n };\n }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = y[op[0] & 2 ? \"return\" : op[0] ? \"throw\" : \"next\"]) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [0, t.value];\n switch (op[0]) {\n case 0:\n case 1:\n t = op;\n break;\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n case 5:\n _.label++;\n y = op[1];\n op = [0];\n continue;\n case 7:\n op = _.ops.pop();\n _.trys.pop();\n continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n if (t && _.label < t[2]) {\n _.label = t[2];\n _.ops.push(op);\n break;\n }\n if (t[2]) _.ops.pop();\n _.trys.pop();\n continue;\n }\n op = body.call(thisArg, _);\n } catch (e) {\n op = [6, e];\n y = 0;\n } finally {\n f = t = 0;\n }\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n};\nimport { Dispatcher } from \"./dispatcher\";\nimport { Router } from \"./router\";\nimport { defaultSchema } from \"./schema\";\nvar Application = /** @class */function () {\n function Application(element, schema) {\n if (element === void 0) {\n element = document.documentElement;\n }\n if (schema === void 0) {\n schema = defaultSchema;\n }\n this.element = element;\n this.schema = schema;\n this.dispatcher = new Dispatcher(this);\n this.router = new Router(this);\n }\n Application.start = function (element, schema) {\n var application = new Application(element, schema);\n application.start();\n return application;\n };\n Application.prototype.start = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n return [4 /*yield*/, domReady()];\n case 1:\n _a.sent();\n this.router.start();\n this.dispatcher.start();\n return [2 /*return*/];\n }\n });\n });\n };\n\n Application.prototype.stop = function () {\n this.router.stop();\n this.dispatcher.stop();\n };\n Application.prototype.register = function (identifier, controllerConstructor) {\n this.load({\n identifier: identifier,\n controllerConstructor: controllerConstructor\n });\n };\n Application.prototype.load = function (head) {\n var _this = this;\n var rest = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n rest[_i - 1] = arguments[_i];\n }\n var definitions = Array.isArray(head) ? head : [head].concat(rest);\n definitions.forEach(function (definition) {\n return _this.router.loadDefinition(definition);\n });\n };\n Application.prototype.unload = function (head) {\n var _this = this;\n var rest = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n rest[_i - 1] = arguments[_i];\n }\n var identifiers = Array.isArray(head) ? head : [head].concat(rest);\n identifiers.forEach(function (identifier) {\n return _this.router.unloadIdentifier(identifier);\n });\n };\n Object.defineProperty(Application.prototype, \"controllers\", {\n // Controllers\n get: function () {\n return this.router.contexts.map(function (context) {\n return context.controller;\n });\n },\n enumerable: true,\n configurable: true\n });\n Application.prototype.getControllerForElementAndIdentifier = function (element, identifier) {\n var context = this.router.getContextForElementAndIdentifier(element, identifier);\n return context ? context.controller : null;\n };\n // Error handling\n Application.prototype.handleError = function (error, message, detail) {\n console.error(\"%s\\n\\n%o\\n\\n%o\", message, error, detail);\n };\n return Application;\n}();\nexport { Application };\nfunction domReady() {\n return new Promise(function (resolve) {\n if (document.readyState == \"loading\") {\n document.addEventListener(\"DOMContentLoaded\", resolve);\n } else {\n resolve();\n }\n });\n}","/** @hidden */\nexport function defineTargetProperties(constructor) {\n var prototype = constructor.prototype;\n var targetNames = getTargetNamesForConstructor(constructor);\n targetNames.forEach(function (name) {\n var _a;\n return defineLinkedProperties(prototype, (_a = {}, _a[name + \"Target\"] = {\n get: function () {\n var target = this.targets.find(name);\n if (target) {\n return target;\n } else {\n throw new Error(\"Missing target element \\\"\" + this.identifier + \".\" + name + \"\\\"\");\n }\n }\n }, _a[name + \"Targets\"] = {\n get: function () {\n return this.targets.findAll(name);\n }\n }, _a[\"has\" + capitalize(name) + \"Target\"] = {\n get: function () {\n return this.targets.has(name);\n }\n }, _a));\n });\n}\nfunction getTargetNamesForConstructor(constructor) {\n var ancestors = getAncestorsForConstructor(constructor);\n return Array.from(ancestors.reduce(function (targetNames, constructor) {\n getOwnTargetNamesForConstructor(constructor).forEach(function (name) {\n return targetNames.add(name);\n });\n return targetNames;\n }, new Set()));\n}\nfunction getAncestorsForConstructor(constructor) {\n var ancestors = [];\n while (constructor) {\n ancestors.push(constructor);\n constructor = Object.getPrototypeOf(constructor);\n }\n return ancestors;\n}\nfunction getOwnTargetNamesForConstructor(constructor) {\n var definition = constructor[\"targets\"];\n return Array.isArray(definition) ? definition : [];\n}\nfunction defineLinkedProperties(object, properties) {\n Object.keys(properties).forEach(function (name) {\n if (!(name in object)) {\n var descriptor = properties[name];\n Object.defineProperty(object, name, descriptor);\n }\n });\n}\nfunction capitalize(name) {\n return name.charAt(0).toUpperCase() + name.slice(1);\n}","import { defineTargetProperties } from \"./target_properties\";\nvar Controller = /** @class */function () {\n function Controller(context) {\n this.context = context;\n }\n Controller.bless = function () {\n defineTargetProperties(this);\n };\n Object.defineProperty(Controller.prototype, \"application\", {\n get: function () {\n return this.context.application;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Controller.prototype, \"scope\", {\n get: function () {\n return this.context.scope;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Controller.prototype, \"element\", {\n get: function () {\n return this.scope.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Controller.prototype, \"identifier\", {\n get: function () {\n return this.scope.identifier;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Controller.prototype, \"targets\", {\n get: function () {\n return this.scope.targets;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Controller.prototype, \"data\", {\n get: function () {\n return this.scope.data;\n },\n enumerable: true,\n configurable: true\n });\n Controller.prototype.initialize = function () {\n // Override in your subclass to set up initial controller state\n };\n Controller.prototype.connect = function () {\n // Override in your subclass to respond when the controller is connected to the DOM\n };\n Controller.prototype.disconnect = function () {\n // Override in your subclass to respond when the controller is disconnected from the DOM\n };\n Controller.targets = [];\n return Controller;\n}();\nexport { Controller };","require.context('.', true)\n","function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : \"undefined\" != typeof Symbol && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n/*!\n * Native JavaScript for Bootstrap v3.0.15 (https://thednp.github.io/bootstrap.native/)\n * Copyright 2015-2021 © dnp_theme\n * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)\n */\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.BSN = factory());\n})(this, function () {\n 'use strict';\n\n const transitionEndEvent = 'webkitTransition' in document.head.style ? 'webkitTransitionEnd' : 'transitionend';\n const supportTransition = 'webkitTransition' in document.head.style || 'transition' in document.head.style;\n const transitionDuration = 'webkitTransition' in document.head.style ? 'webkitTransitionDuration' : 'transitionDuration';\n const transitionProperty = 'webkitTransition' in document.head.style ? 'webkitTransitionProperty' : 'transitionProperty';\n function getElementTransitionDuration(element) {\n const computedStyle = getComputedStyle(element);\n const propertyValue = computedStyle[transitionProperty];\n const durationValue = computedStyle[transitionDuration];\n const durationScale = durationValue.includes('ms') ? 1 : 1000;\n const duration = supportTransition && propertyValue && propertyValue !== 'none' ? parseFloat(durationValue) * durationScale : 0;\n return !Number.isNaN(duration) ? duration : 0;\n }\n function emulateTransitionEnd(element, handler) {\n let called = 0;\n const endEvent = new Event(transitionEndEvent);\n const duration = getElementTransitionDuration(element);\n if (duration) {\n element.addEventListener(transitionEndEvent, function transitionEndWrapper(e) {\n if (e.target === element) {\n handler.apply(element, [e]);\n element.removeEventListener(transitionEndEvent, transitionEndWrapper);\n called = 1;\n }\n });\n setTimeout(() => {\n if (!called) element.dispatchEvent(endEvent);\n }, duration + 17);\n } else {\n handler.apply(element, [endEvent]);\n }\n }\n function queryElement(selector, parent) {\n const lookUp = parent && parent instanceof Element ? parent : document;\n return selector instanceof Element ? selector : lookUp.querySelector(selector);\n }\n function hasClass(element, classNAME) {\n return element.classList.contains(classNAME);\n }\n function removeClass(element, classNAME) {\n element.classList.remove(classNAME);\n }\n const addEventListener = 'addEventListener';\n const removeEventListener = 'removeEventListener';\n const fadeClass = 'fade';\n const showClass = 'show';\n const dataBsDismiss = 'data-bs-dismiss';\n function bootstrapCustomEvent(namespacedEventType, eventProperties) {\n const OriginalCustomEvent = new CustomEvent(namespacedEventType, {\n cancelable: true\n });\n if (eventProperties instanceof Object) {\n Object.keys(eventProperties).forEach(key => {\n Object.defineProperty(OriginalCustomEvent, key, {\n value: eventProperties[key]\n });\n });\n }\n return OriginalCustomEvent;\n }\n function normalizeValue(value) {\n if (value === 'true') {\n return true;\n }\n if (value === 'false') {\n return false;\n }\n if (!Number.isNaN(+value)) {\n return +value;\n }\n if (value === '' || value === 'null') {\n return null;\n }\n\n // string / function / Element / Object\n return value;\n }\n function normalizeOptions(element, defaultOps, inputOps, ns) {\n const normalOps = {};\n const dataOps = {};\n const data = _objectSpread({}, element.dataset);\n Object.keys(data).forEach(k => {\n const key = k.includes(ns) ? k.replace(ns, '').replace(/[A-Z]/, match => match.toLowerCase()) : k;\n dataOps[key] = normalizeValue(data[k]);\n });\n Object.keys(inputOps).forEach(k => {\n inputOps[k] = normalizeValue(inputOps[k]);\n });\n Object.keys(defaultOps).forEach(k => {\n if (k in inputOps) {\n normalOps[k] = inputOps[k];\n } else if (k in dataOps) {\n normalOps[k] = dataOps[k];\n } else {\n normalOps[k] = defaultOps[k];\n }\n });\n return normalOps;\n }\n\n /* Native JavaScript for Bootstrap 5 | Base Component\n ----------------------------------------------------- */\n\n class BaseComponent {\n constructor(name, target, defaults, config) {\n const self = this;\n const element = queryElement(target);\n if (element[name]) element[name].dispose();\n self.element = element;\n if (defaults && Object.keys(defaults).length) {\n self.options = normalizeOptions(element, defaults, config || {}, 'bs');\n }\n element[name] = self;\n }\n dispose(name) {\n const self = this;\n self.element[name] = null;\n Object.keys(self).forEach(prop => {\n self[prop] = null;\n });\n }\n }\n\n /* Native JavaScript for Bootstrap 5 | Alert\n -------------------------------------------- */\n\n // ALERT PRIVATE GC\n // ================\n const alertString = 'alert';\n const alertComponent = 'Alert';\n const alertSelector = `.${alertString}`;\n const alertDismissSelector = `[${dataBsDismiss}=\"${alertString}\"]`;\n\n // ALERT CUSTOM EVENTS\n // ===================\n const closeAlertEvent = bootstrapCustomEvent(`close.bs.${alertString}`);\n const closedAlertEvent = bootstrapCustomEvent(`closed.bs.${alertString}`);\n\n // ALERT EVENT HANDLERS\n // ====================\n function alertTransitionEnd(self) {\n const element = self.element,\n relatedTarget = self.relatedTarget;\n toggleAlertHandler(self);\n if (relatedTarget) closedAlertEvent.relatedTarget = relatedTarget;\n element.dispatchEvent(closedAlertEvent);\n self.dispose();\n element.parentNode.removeChild(element);\n }\n\n // ALERT PRIVATE METHOD\n // ====================\n function toggleAlertHandler(self, add) {\n const action = add ? addEventListener : removeEventListener;\n if (self.dismiss) self.dismiss[action]('click', self.close);\n }\n\n // ALERT DEFINITION\n // ================\n class Alert extends BaseComponent {\n constructor(target) {\n super(alertComponent, target);\n // bind\n const self = this;\n\n // initialization element\n const element = self.element;\n\n // the dismiss button\n self.dismiss = queryElement(alertDismissSelector, element);\n self.relatedTarget = null;\n\n // add event listener\n toggleAlertHandler(self, 1);\n }\n\n // ALERT PUBLIC METHODS\n // ====================\n close(e) {\n const target = e ? e.target : null;\n const self = e ? e.target.closest(alertSelector)[alertComponent] : this;\n const element = self.element;\n if (self && element && hasClass(element, showClass)) {\n if (target) {\n closeAlertEvent.relatedTarget = target;\n self.relatedTarget = target;\n }\n element.dispatchEvent(closeAlertEvent);\n if (closeAlertEvent.defaultPrevented) return;\n removeClass(element, showClass);\n if (hasClass(element, fadeClass)) {\n emulateTransitionEnd(element, () => alertTransitionEnd(self));\n } else alertTransitionEnd(self);\n }\n }\n dispose() {\n toggleAlertHandler(this);\n super.dispose(alertComponent);\n }\n }\n Alert.init = {\n component: alertComponent,\n selector: alertSelector,\n constructor: Alert\n };\n function addClass(element, classNAME) {\n element.classList.add(classNAME);\n }\n const activeClass = 'active';\n const dataBsToggle = 'data-bs-toggle';\n\n /* Native JavaScript for Bootstrap 5 | Button\n ---------------------------------------------*/\n\n // BUTTON PRIVATE GC\n // =================\n const buttonString = 'button';\n const buttonComponent = 'Button';\n const buttonSelector = `[${dataBsToggle}=\"${buttonString}\"]`;\n const ariaPressed = 'aria-pressed';\n\n // BUTTON PRIVATE METHOD\n // =====================\n function toggleButtonHandler(self, add) {\n const action = add ? addEventListener : removeEventListener;\n self.element[action]('click', self.toggle);\n }\n\n // BUTTON DEFINITION\n // =================\n class Button extends BaseComponent {\n constructor(target) {\n super(buttonComponent, target);\n const self = this;\n\n // initialization element\n const element = self.element;\n\n // set initial state\n self.isActive = hasClass(element, activeClass);\n element.setAttribute(ariaPressed, !!self.isActive);\n\n // add event listener\n toggleButtonHandler(self, 1);\n }\n\n // BUTTON PUBLIC METHODS\n // =====================\n toggle(e) {\n if (e) e.preventDefault();\n const self = e ? this[buttonComponent] : this;\n const element = self.element;\n if (hasClass(element, 'disabled')) return;\n self.isActive = hasClass(element, activeClass);\n const isActive = self.isActive;\n const action = isActive ? removeClass : addClass;\n const ariaValue = isActive ? 'false' : 'true';\n action(element, activeClass);\n element.setAttribute(ariaPressed, ariaValue);\n }\n dispose() {\n toggleButtonHandler(this);\n super.dispose(buttonComponent);\n }\n }\n Button.init = {\n component: buttonComponent,\n selector: buttonSelector,\n constructor: Button\n };\n const supportPassive = (() => {\n let result = false;\n try {\n const opts = Object.defineProperty({}, 'passive', {\n get() {\n result = true;\n return result;\n }\n });\n document[addEventListener]('DOMContentLoaded', function wrap() {\n document[removeEventListener]('DOMContentLoaded', wrap, opts);\n }, opts);\n } catch (e) {\n throw Error('Passive events are not supported');\n }\n return result;\n })();\n\n // general event options\n\n var passiveHandler = supportPassive ? {\n passive: true\n } : false;\n function reflow(element) {\n return element.offsetHeight;\n }\n function isElementInScrollRange(element) {\n const bcr = element.getBoundingClientRect();\n const viewportHeight = window.innerHeight || document.documentElement.clientHeight;\n return bcr.top <= viewportHeight && bcr.bottom >= 0; // bottom && top\n }\n\n /* Native JavaScript for Bootstrap 5 | Carousel\n ----------------------------------------------- */\n\n // CAROUSEL PRIVATE GC\n // ===================\n const carouselString = 'carousel';\n const carouselComponent = 'Carousel';\n const carouselSelector = `[data-bs-ride=\"${carouselString}\"]`;\n const carouselControl = `${carouselString}-control`;\n const carouselItem = `${carouselString}-item`;\n const dataBsSlideTo = 'data-bs-slide-to';\n const pausedClass = 'paused';\n const defaultCarouselOptions = {\n pause: 'hover',\n // 'boolean|string'\n keyboard: false,\n // 'boolean'\n touch: true,\n // 'boolean'\n interval: 5000 // 'boolean|number'\n };\n\n let startX = 0;\n let currentX = 0;\n let endX = 0;\n\n // CAROUSEL CUSTOM EVENTS\n // ======================\n const carouselSlideEvent = bootstrapCustomEvent(`slide.bs.${carouselString}`);\n const carouselSlidEvent = bootstrapCustomEvent(`slid.bs.${carouselString}`);\n\n // CAROUSEL EVENT HANDLERS\n // =======================\n function carouselTransitionEndHandler(self) {\n const index = self.index,\n direction = self.direction,\n element = self.element,\n slides = self.slides,\n options = self.options,\n isAnimating = self.isAnimating;\n\n // discontinue disposed instances\n if (isAnimating && element[carouselComponent]) {\n const activeItem = getActiveIndex(self);\n const orientation = direction === 'left' ? 'next' : 'prev';\n const directionClass = direction === 'left' ? 'start' : 'end';\n self.isAnimating = false;\n addClass(slides[index], activeClass);\n removeClass(slides[activeItem], activeClass);\n removeClass(slides[index], `${carouselItem}-${orientation}`);\n removeClass(slides[index], `${carouselItem}-${directionClass}`);\n removeClass(slides[activeItem], `${carouselItem}-${directionClass}`);\n element.dispatchEvent(carouselSlidEvent);\n\n // check for element, might have been disposed\n if (!document.hidden && options.interval && !hasClass(element, pausedClass)) {\n self.cycle();\n }\n }\n }\n function carouselPauseHandler(e) {\n const eventTarget = e.target;\n const self = eventTarget.closest(carouselSelector)[carouselComponent];\n const element = self.element,\n isAnimating = self.isAnimating;\n if (!hasClass(element, pausedClass)) {\n addClass(element, pausedClass);\n if (!isAnimating) {\n clearInterval(self.timer);\n self.timer = null;\n }\n }\n }\n function carouselResumeHandler(e) {\n const eventTarget = e.target;\n const self = eventTarget.closest(carouselSelector)[carouselComponent];\n const isPaused = self.isPaused,\n isAnimating = self.isAnimating,\n element = self.element;\n if (!isPaused && hasClass(element, pausedClass)) {\n removeClass(element, pausedClass);\n if (!isAnimating) {\n clearInterval(self.timer);\n self.timer = null;\n self.cycle();\n }\n }\n }\n function carouselIndicatorHandler(e) {\n e.preventDefault();\n const target = e.target;\n const self = target.closest(carouselSelector)[carouselComponent];\n if (self.isAnimating) return;\n const newIndex = target.getAttribute(dataBsSlideTo);\n if (target && !hasClass(target, activeClass) // event target is not active\n && newIndex) {\n // AND has the specific attribute\n self.to(+newIndex); // do the slide\n }\n }\n\n function carouselControlsHandler(e) {\n e.preventDefault();\n const that = this;\n const self = that.closest(carouselSelector)[carouselComponent];\n const controls = self.controls;\n if (controls[1] && that === controls[1]) {\n self.next();\n } else if (controls[1] && that === controls[0]) {\n self.prev();\n }\n }\n function carouselKeyHandler(_ref) {\n let which = _ref.which;\n const _Array$from$filter = Array.from(document.querySelectorAll(carouselSelector)).filter(x => isElementInScrollRange(x)),\n _Array$from$filter2 = _slicedToArray(_Array$from$filter, 1),\n element = _Array$from$filter2[0];\n if (!element) return;\n const self = element[carouselComponent];\n switch (which) {\n case 39:\n self.next();\n break;\n case 37:\n self.prev();\n break;\n }\n }\n\n // CAROUSEL TOUCH HANDLERS\n // =======================\n function carouselTouchDownHandler(e) {\n const element = this;\n const self = element[carouselComponent];\n if (!self || self.isTouch) {\n return;\n }\n startX = e.changedTouches[0].pageX;\n if (element.contains(e.target)) {\n self.isTouch = true;\n toggleCarouselTouchHandlers(self, 1);\n }\n }\n function carouselTouchMoveHandler(e) {\n const changedTouches = e.changedTouches,\n type = e.type;\n const self = this[carouselComponent];\n if (!self || !self.isTouch) {\n return;\n }\n currentX = changedTouches[0].pageX;\n\n // cancel touch if more than one changedTouches detected\n if (type === 'touchmove' && changedTouches.length > 1) {\n e.preventDefault();\n }\n }\n function carouselTouchEndHandler(e) {\n const element = this;\n const self = element[carouselComponent];\n if (!self || !self.isTouch) {\n return;\n }\n endX = currentX || e.changedTouches[0].pageX;\n if (self.isTouch) {\n // the event target is outside the carousel OR carousel doens't include the related target\n if ((!element.contains(e.target) || !element.contains(e.relatedTarget)) && Math.abs(startX - endX) < 75) {\n // AND swipe distance is less than 75px\n // when the above conditions are satisfied, no need to continue\n return;\n } // OR determine next index to slide to\n if (currentX < startX) {\n self.index += 1;\n } else if (currentX > startX) {\n self.index -= 1;\n }\n self.isTouch = false;\n self.to(self.index); // do the slide\n\n toggleCarouselTouchHandlers(self); // remove touch events handlers\n }\n }\n\n // CAROUSEL PRIVATE METHODS\n // ========================\n function activateCarouselIndicator(self, pageIndex) {\n // indicators\n const indicators = self.indicators;\n Array.from(indicators).forEach(x => removeClass(x, activeClass));\n if (self.indicators[pageIndex]) addClass(indicators[pageIndex], activeClass);\n }\n function toggleCarouselTouchHandlers(self, add) {\n const element = self.element;\n const action = add ? addEventListener : removeEventListener;\n element[action]('touchmove', carouselTouchMoveHandler, passiveHandler);\n element[action]('touchend', carouselTouchEndHandler, passiveHandler);\n }\n function toggleCarouselHandlers(self, add) {\n const element = self.element,\n options = self.options,\n slides = self.slides,\n controls = self.controls,\n indicator = self.indicator;\n const touch = options.touch,\n pause = options.pause,\n interval = options.interval,\n keyboard = options.keyboard;\n const action = add ? addEventListener : removeEventListener;\n if (pause && interval) {\n element[action]('mouseenter', carouselPauseHandler);\n element[action]('mouseleave', carouselResumeHandler);\n element[action]('touchstart', carouselPauseHandler, passiveHandler);\n element[action]('touchend', carouselResumeHandler, passiveHandler);\n }\n if (touch && slides.length > 1) {\n element[action]('touchstart', carouselTouchDownHandler, passiveHandler);\n }\n controls.forEach(arrow => {\n if (arrow) arrow[action]('click', carouselControlsHandler);\n });\n if (indicator) indicator[action]('click', carouselIndicatorHandler);\n if (keyboard) window[action]('keydown', carouselKeyHandler);\n }\n function getActiveIndex(self) {\n const slides = self.slides,\n element = self.element;\n return Array.from(slides).indexOf(element.getElementsByClassName(`${carouselItem} ${activeClass}`)[0]) || 0;\n }\n\n // CAROUSEL DEFINITION\n // ===================\n class Carousel extends BaseComponent {\n constructor(target, config) {\n super(carouselComponent, target, defaultCarouselOptions, config);\n // bind\n const self = this;\n\n // additional properties\n self.timer = null;\n self.direction = 'left';\n self.isPaused = false;\n self.isAnimating = false;\n self.index = 0;\n self.timer = null;\n self.isTouch = false;\n\n // initialization element\n const element = self.element;\n // carousel elements\n // a LIVE collection is prefferable\n self.slides = element.getElementsByClassName(carouselItem);\n const slides = self.slides;\n\n // invalidate when not enough items\n // no need to go further\n if (slides.length < 2) {\n return;\n }\n self.controls = [queryElement(`.${carouselControl}-prev`, element), queryElement(`.${carouselControl}-next`, element)];\n\n // a LIVE collection is prefferable\n self.indicator = queryElement('.carousel-indicators', element);\n self.indicators = self.indicator && self.indicator.querySelectorAll(`[${dataBsSlideTo}]`) || [];\n\n // set JavaScript and DATA API options\n const options = self.options;\n\n // don't use TRUE as interval, it's actually 0, use the default 5000ms better\n self.options.interval = options.interval === true ? defaultCarouselOptions.interval : options.interval;\n\n // set first slide active if none\n if (getActiveIndex(self) < 0) {\n if (slides.length) addClass(slides[0], activeClass);\n if (self.indicators.length) activateCarouselIndicator(self, 0);\n }\n\n // attach event handlers\n toggleCarouselHandlers(self, 1);\n\n // start to cycle if interval is set\n if (options.interval) self.cycle();\n }\n\n // CAROUSEL PUBLIC METHODS\n // =======================\n cycle() {\n const self = this;\n const isPaused = self.isPaused,\n element = self.element,\n options = self.options;\n if (self.timer) {\n clearInterval(self.timer);\n self.timer = null;\n }\n if (isPaused) {\n removeClass(element, pausedClass);\n self.isPaused = !isPaused;\n }\n self.timer = setInterval(() => {\n if (isElementInScrollRange(element)) {\n self.index += 1;\n self.to(self.index);\n }\n }, options.interval);\n }\n pause() {\n const self = this;\n const element = self.element,\n options = self.options,\n isPaused = self.isPaused;\n if (options.interval && !isPaused) {\n clearInterval(self.timer);\n self.timer = null;\n addClass(element, pausedClass);\n self.isPaused = !isPaused;\n }\n }\n next() {\n const self = this;\n if (!self.isAnimating) {\n self.index += 1;\n self.to(self.index);\n }\n }\n prev() {\n const self = this;\n if (!self.isAnimating) {\n self.index -= 1;\n self.to(self.index);\n }\n }\n to(idx) {\n const self = this;\n const element = self.element,\n isAnimating = self.isAnimating,\n slides = self.slides,\n options = self.options;\n const activeItem = getActiveIndex(self);\n let next = idx;\n\n // when controled via methods, make sure to check again\n // first return if we're on the same item #227\n if (isAnimating || activeItem === next) return;\n\n // determine transition direction\n if (activeItem < next || activeItem === 0 && next === slides.length - 1) {\n self.direction = 'left'; // next\n } else if (activeItem > next || activeItem === slides.length - 1 && next === 0) {\n self.direction = 'right'; // prev\n }\n\n const direction = self.direction;\n\n // find the right next index\n if (next < 0) {\n next = slides.length - 1;\n } else if (next >= slides.length) {\n next = 0;\n }\n\n // orientation, class name, eventProperties\n const orientation = direction === 'left' ? 'next' : 'prev';\n const directionClass = direction === 'left' ? 'start' : 'end';\n const eventProperties = {\n relatedTarget: slides[next],\n direction,\n from: activeItem,\n to: next\n };\n\n // update event properties\n Object.keys(eventProperties).forEach(k => {\n carouselSlideEvent[k] = eventProperties[k];\n carouselSlidEvent[k] = eventProperties[k];\n });\n\n // discontinue when prevented\n element.dispatchEvent(carouselSlideEvent);\n if (carouselSlideEvent.defaultPrevented) return;\n\n // update index\n self.index = next;\n clearInterval(self.timer);\n self.timer = null;\n self.isAnimating = true;\n activateCarouselIndicator(self, next);\n if (getElementTransitionDuration(slides[next]) && hasClass(element, 'slide')) {\n addClass(slides[next], `${carouselItem}-${orientation}`);\n reflow(slides[next]);\n addClass(slides[next], `${carouselItem}-${directionClass}`);\n addClass(slides[activeItem], `${carouselItem}-${directionClass}`);\n emulateTransitionEnd(slides[next], () => carouselTransitionEndHandler(self));\n } else {\n addClass(slides[next], activeClass);\n removeClass(slides[activeItem], activeClass);\n setTimeout(() => {\n self.isAnimating = false;\n\n // check for element, might have been disposed\n if (element && options.interval && !hasClass(element, pausedClass)) {\n self.cycle();\n }\n element.dispatchEvent(carouselSlidEvent);\n }, 100);\n }\n }\n dispose() {\n const self = this;\n const slides = self.slides;\n const itemClasses = ['start', 'end', 'prev', 'next'];\n Array.from(slides).forEach((slide, idx) => {\n if (hasClass(slide, activeClass)) activateCarouselIndicator(self, idx);\n itemClasses.forEach(c => removeClass(slide, `${carouselItem}-${c}`));\n });\n toggleCarouselHandlers(self);\n clearInterval(self.timer);\n super.dispose(carouselComponent);\n }\n }\n Carousel.init = {\n component: carouselComponent,\n selector: carouselSelector,\n constructor: Carousel\n };\n const ariaExpanded = 'aria-expanded';\n\n // collapse / tab\n const collapsingClass = 'collapsing';\n const dataBsTarget = 'data-bs-target';\n const dataBsParent = 'data-bs-parent';\n const dataBsContainer = 'data-bs-container';\n function getTargetElement(element) {\n return queryElement(element.getAttribute(dataBsTarget) || element.getAttribute('href')) || element.closest(element.getAttribute(dataBsParent)) || queryElement(element.getAttribute(dataBsContainer));\n }\n\n /* Native JavaScript for Bootstrap 5 | Collapse\n ----------------------------------------------- */\n\n // COLLAPSE GC\n // ===========\n const collapseString = 'collapse';\n const collapseComponent = 'Collapse';\n const collapseSelector = `.${collapseString}`;\n const collapseToggleSelector = `[${dataBsToggle}=\"${collapseString}\"]`;\n\n // COLLAPSE CUSTOM EVENTS\n // ======================\n const showCollapseEvent = bootstrapCustomEvent(`show.bs.${collapseString}`);\n const shownCollapseEvent = bootstrapCustomEvent(`shown.bs.${collapseString}`);\n const hideCollapseEvent = bootstrapCustomEvent(`hide.bs.${collapseString}`);\n const hiddenCollapseEvent = bootstrapCustomEvent(`hidden.bs.${collapseString}`);\n\n // COLLAPSE PRIVATE METHODS\n // ========================\n function expandCollapse(self) {\n const element = self.element,\n parent = self.parent,\n triggers = self.triggers;\n element.dispatchEvent(showCollapseEvent);\n if (showCollapseEvent.defaultPrevented) return;\n self.isAnimating = true;\n if (parent) parent.isAnimating = true;\n addClass(element, collapsingClass);\n removeClass(element, collapseString);\n element.style.height = `${element.scrollHeight}px`;\n emulateTransitionEnd(element, () => {\n self.isAnimating = false;\n if (parent) parent.isAnimating = false;\n triggers.forEach(btn => btn.setAttribute(ariaExpanded, 'true'));\n removeClass(element, collapsingClass);\n addClass(element, collapseString);\n addClass(element, showClass);\n element.style.height = '';\n element.dispatchEvent(shownCollapseEvent);\n });\n }\n function collapseContent(self) {\n const element = self.element,\n parent = self.parent,\n triggers = self.triggers;\n element.dispatchEvent(hideCollapseEvent);\n if (hideCollapseEvent.defaultPrevented) return;\n self.isAnimating = true;\n if (parent) parent.isAnimating = true;\n element.style.height = `${element.scrollHeight}px`;\n removeClass(element, collapseString);\n removeClass(element, showClass);\n addClass(element, collapsingClass);\n reflow(element);\n element.style.height = '0px';\n emulateTransitionEnd(element, () => {\n self.isAnimating = false;\n if (parent) parent.isAnimating = false;\n triggers.forEach(btn => btn.setAttribute(ariaExpanded, 'false'));\n removeClass(element, collapsingClass);\n addClass(element, collapseString);\n element.style.height = '';\n element.dispatchEvent(hiddenCollapseEvent);\n });\n }\n function toggleCollapseHandler(self, add) {\n const action = add ? addEventListener : removeEventListener;\n const triggers = self.triggers;\n if (triggers.length) {\n triggers.forEach(btn => btn[action]('click', collapseClickHandler));\n }\n }\n\n // COLLAPSE EVENT HANDLER\n // ======================\n function collapseClickHandler(e) {\n const target = e.target;\n const trigger = target.closest(collapseToggleSelector);\n const element = getTargetElement(trigger);\n const self = element && element[collapseComponent];\n if (self) self.toggle(target);\n\n // event target is anchor link #398\n if (trigger && trigger.tagName === 'A') e.preventDefault();\n }\n\n // COLLAPSE DEFINITION\n // ===================\n class Collapse extends BaseComponent {\n constructor(target, config) {\n super(collapseComponent, target, {\n parent: null\n }, config);\n // bind\n const self = this;\n\n // initialization element\n const element = self.element;\n\n // set triggering elements\n self.triggers = Array.from(document.querySelectorAll(collapseToggleSelector)).filter(btn => getTargetElement(btn) === element);\n\n // set parent accordion\n self.parent = queryElement(self.options.parent);\n const parent = self.parent;\n\n // set initial state\n self.isAnimating = false;\n if (parent) parent.isAnimating = false;\n\n // add event listeners\n toggleCollapseHandler(self, 1);\n }\n\n // COLLAPSE PUBLIC METHODS\n // =======================\n toggle(related) {\n const self = this;\n if (!hasClass(self.element, showClass)) self.show(related);else self.hide(related);\n }\n hide() {\n const self = this;\n const triggers = self.triggers,\n isAnimating = self.isAnimating;\n if (isAnimating) return;\n collapseContent(self);\n if (triggers.length) {\n triggers.forEach(btn => addClass(btn, `${collapseString}d`));\n }\n }\n show() {\n const self = this;\n const element = self.element,\n parent = self.parent,\n triggers = self.triggers,\n isAnimating = self.isAnimating;\n let activeCollapse;\n let activeCollapseInstance;\n if (parent) {\n activeCollapse = Array.from(parent.querySelectorAll(`.${collapseString}.${showClass}`)).find(i => i[collapseComponent]);\n activeCollapseInstance = activeCollapse && activeCollapse[collapseComponent];\n }\n if ((!parent || parent && !parent.isAnimating) && !isAnimating) {\n if (activeCollapseInstance && activeCollapse !== element) {\n collapseContent(activeCollapseInstance);\n activeCollapseInstance.triggers.forEach(btn => {\n addClass(btn, `${collapseString}d`);\n });\n }\n expandCollapse(self);\n if (triggers.length) {\n triggers.forEach(btn => removeClass(btn, `${collapseString}d`));\n }\n }\n }\n dispose() {\n const self = this;\n const parent = self.parent;\n toggleCollapseHandler(self);\n if (parent) delete parent.isAnimating;\n super.dispose(collapseComponent);\n }\n }\n Collapse.init = {\n component: collapseComponent,\n selector: collapseSelector,\n constructor: Collapse\n };\n const dropdownMenuClasses = ['dropdown', 'dropup', 'dropstart', 'dropend'];\n const dropdownMenuClass = 'dropdown-menu';\n function isEmptyAnchor(elem) {\n const parentAnchor = elem.closest('A');\n // anchor href starts with #\n return elem && (elem.href && elem.href.slice(-1) === '#'\n // OR a child of an anchor with href starts with #\n || parentAnchor && parentAnchor.href && parentAnchor.href.slice(-1) === '#');\n }\n function setFocus(element) {\n element.focus();\n }\n\n /* Native JavaScript for Bootstrap 5 | Dropdown\n ----------------------------------------------- */\n\n // DROPDOWN PRIVATE GC\n // ===================\n const dropdownString = dropdownMenuClasses[0];\n const dropdownComponent = 'Dropdown';\n const dropdownSelector = `[${dataBsToggle}=\"${dropdownString}\"]`;\n\n // DROPDOWN PRIVATE GC\n // ===================\n const dropupString = dropdownMenuClasses[1];\n const dropstartString = dropdownMenuClasses[2];\n const dropendString = dropdownMenuClasses[3];\n const dropdownMenuEndClass = `${dropdownMenuClass}-end`;\n const hideMenuClass = ['d-block', 'invisible'];\n const verticalClass = [dropdownString, dropupString];\n const horizontalClass = [dropstartString, dropendString];\n const defaultDropdownOptions = {\n offset: 5,\n // [number] 5(px)\n display: 'dynamic' // [dynamic|static]\n };\n\n // DROPDOWN CUSTOM EVENTS\n // ========================\n const showDropdownEvent = bootstrapCustomEvent(`show.bs.${dropdownString}`);\n const shownDropdownEvent = bootstrapCustomEvent(`shown.bs.${dropdownString}`);\n const hideDropdownEvent = bootstrapCustomEvent(`hide.bs.${dropdownString}`);\n const hiddenDropdownEvent = bootstrapCustomEvent(`hidden.bs.${dropdownString}`);\n\n // DROPDOWN PRIVATE METHODS\n // ========================\n function styleDropdown(self, show) {\n const element = self.element,\n menu = self.menu,\n originalClass = self.originalClass,\n menuEnd = self.menuEnd,\n options = self.options;\n const parent = element.parentElement;\n\n // reset menu offset and position\n const resetProps = ['margin', 'top', 'bottom', 'left', 'right'];\n resetProps.forEach(p => {\n menu.style[p] = '';\n });\n removeClass(parent, 'position-static');\n if (!show) {\n parent.className = originalClass.join(' ');\n const menuAction = menuEnd && !hasClass(menu, dropdownMenuEndClass) ? addClass : removeClass;\n menuAction(menu, dropdownMenuEndClass);\n return;\n }\n const offset = options.offset;\n let positionClass = dropdownMenuClasses.find(c => originalClass.includes(c));\n let dropdownMargin = {\n dropdown: [offset, 0, 0],\n dropup: [0, 0, offset],\n dropstart: [-1, offset, 0],\n dropend: [-1, 0, 0, offset]\n };\n const dropdownPosition = {\n dropdown: {\n top: '100%'\n },\n dropup: {\n top: 'auto',\n bottom: '100%'\n },\n dropstart: {\n left: 'auto',\n right: '100%'\n },\n dropend: {\n left: '100%',\n right: 'auto'\n },\n menuEnd: {\n right: 0,\n left: 'auto'\n }\n };\n\n // force showing the menu to calculate its size\n hideMenuClass.forEach(c => addClass(menu, c));\n const dropdownRegex = new RegExp(`\\\\b(${dropdownString}|${dropupString}|${dropstartString}|${dropendString})+`);\n const elementDimensions = {\n w: element.offsetWidth,\n h: element.offsetHeight\n };\n const menuDimensions = {\n w: menu.offsetWidth,\n h: menu.offsetHeight\n };\n const HTML = document.documentElement;\n const BD = document.body;\n const windowWidth = HTML.clientWidth || BD.clientWidth;\n const windowHeight = HTML.clientHeight || BD.clientHeight;\n const targetBCR = element.getBoundingClientRect();\n // dropdownMenuEnd && [ dropdown | dropup ]\n const leftExceed = targetBCR.left + elementDimensions.w - menuDimensions.w < 0;\n // dropstart\n const leftFullExceed = targetBCR.left - menuDimensions.w < 0;\n // !dropdownMenuEnd && [ dropdown | dropup ]\n const rightExceed = targetBCR.left + menuDimensions.w >= windowWidth;\n // dropend\n const rightFullExceed = targetBCR.left + menuDimensions.w + elementDimensions.w >= windowWidth;\n // dropstart | dropend\n const bottomExceed = targetBCR.top + menuDimensions.h >= windowHeight;\n // dropdown\n const bottomFullExceed = targetBCR.top + menuDimensions.h + elementDimensions.h >= windowHeight;\n // dropup\n const topExceed = targetBCR.top - menuDimensions.h < 0;\n const btnGroup = parent.parentNode.closest('.btn-group,.btn-group-vertical');\n\n // recompute position\n if (horizontalClass.includes(positionClass) && leftFullExceed && rightFullExceed) {\n positionClass = dropdownString;\n }\n if (horizontalClass.includes(positionClass) && bottomExceed) {\n positionClass = dropupString;\n }\n if (positionClass === dropstartString && leftFullExceed && !bottomExceed) {\n positionClass = dropendString;\n }\n if (positionClass === dropendString && rightFullExceed && !bottomExceed) {\n positionClass = dropstartString;\n }\n if (positionClass === dropupString && topExceed && !bottomFullExceed) {\n positionClass = dropdownString;\n }\n if (positionClass === dropdownString && bottomFullExceed && !topExceed) {\n positionClass = dropupString;\n }\n\n // set spacing\n dropdownMargin = dropdownMargin[positionClass];\n menu.style.margin = `${dropdownMargin.map(x => x ? `${x}px` : x).join(' ')}`;\n Object.keys(dropdownPosition[positionClass]).forEach(position => {\n menu.style[position] = dropdownPosition[positionClass][position];\n });\n\n // update dropdown position class\n if (!hasClass(parent, positionClass)) {\n parent.className = parent.className.replace(dropdownRegex, positionClass);\n }\n\n // update dropdown / dropup to handle parent btn-group element\n // as well as the dropdown-menu-end utility class\n if (verticalClass.includes(positionClass)) {\n const menuEndAction = rightExceed ? addClass : removeClass;\n if (!btnGroup) menuEndAction(menu, dropdownMenuEndClass);else if (leftExceed) addClass(parent, 'position-static');\n if (hasClass(menu, dropdownMenuEndClass)) {\n Object.keys(dropdownPosition.menuEnd).forEach(p => {\n menu.style[p] = dropdownPosition.menuEnd[p];\n });\n }\n }\n\n // remove util classes from the menu, we have its size\n hideMenuClass.forEach(c => removeClass(menu, c));\n }\n function toggleDropdownDismiss(self) {\n const action = self.open ? addEventListener : removeEventListener;\n document[action]('click', dropdownDismissHandler);\n document[action]('focus', dropdownDismissHandler);\n document[action]('keydown', dropdownPreventScroll);\n document[action]('keyup', dropdownKeyHandler);\n if (self.options.display === 'dynamic') {\n window[action]('scroll', dropdownLayoutHandler, passiveHandler);\n window[action]('resize', dropdownLayoutHandler, passiveHandler);\n }\n }\n function toggleDropdownHandler(self, add) {\n const action = add ? addEventListener : removeEventListener;\n self.element[action]('click', dropdownClickHandler);\n }\n function getCurrentOpenDropdown() {\n const currentParent = dropdownMenuClasses.map(c => document.getElementsByClassName(`${c} ${showClass}`)).find(x => x.length);\n if (currentParent && currentParent.length) {\n return Array.from(currentParent[0].children).find(x => x.hasAttribute(dataBsToggle));\n }\n return null;\n }\n\n // DROPDOWN EVENT HANDLERS\n // =======================\n function dropdownDismissHandler(e) {\n const target = e.target,\n type = e.type;\n if (!target.closest) return; // some weird FF bug #409\n\n const element = getCurrentOpenDropdown();\n const parent = element && element.parentNode;\n const self = element && element[dropdownComponent];\n const menu = self && self.menu;\n const hasData = target.closest(dropdownSelector) !== null;\n const isForm = parent && parent.contains(target) && (target.tagName === 'form' || target.closest('form') !== null);\n if (type === 'click' && isEmptyAnchor(target)) {\n e.preventDefault();\n }\n if (type === 'focus' && (target === element || target === menu || menu.contains(target))) {\n return;\n }\n if (isForm || hasData) ;else if (self) {\n self.hide(element);\n }\n }\n function dropdownClickHandler(e) {\n const element = this;\n const self = element[dropdownComponent];\n self.toggle(element);\n if (isEmptyAnchor(e.target)) e.preventDefault();\n }\n function dropdownPreventScroll(e) {\n if (e.which === 38 || e.which === 40) e.preventDefault();\n }\n function dropdownKeyHandler(_ref2) {\n let which = _ref2.which;\n const element = getCurrentOpenDropdown();\n const self = element[dropdownComponent];\n const menu = self.menu,\n menuItems = self.menuItems,\n open = self.open;\n const activeItem = document.activeElement;\n const isSameElement = activeItem === element;\n const isInsideMenu = menu.contains(activeItem);\n const isMenuItem = activeItem.parentNode === menu || activeItem.parentNode.parentNode === menu;\n let idx = menuItems.indexOf(activeItem);\n if (isMenuItem) {\n // navigate up | down\n if (isSameElement) {\n idx = 0;\n } else if (which === 38) {\n idx = idx > 1 ? idx - 1 : 0;\n } else if (which === 40) {\n idx = idx < menuItems.length - 1 ? idx + 1 : idx;\n }\n if (menuItems[idx]) setFocus(menuItems[idx]);\n }\n if ((menuItems.length && isMenuItem // menu has items\n || !menuItems.length && (isInsideMenu || isSameElement) // menu might be a form\n || !isInsideMenu // or the focused element is not in the menu at all\n ) && open && which === 27 // menu must be open\n ) {\n self.toggle();\n }\n }\n function dropdownLayoutHandler() {\n const element = getCurrentOpenDropdown();\n const self = element && element[dropdownComponent];\n if (self && self.open) styleDropdown(self, 1);\n }\n\n // DROPDOWN DEFINITION\n // ===================\n class Dropdown extends BaseComponent {\n constructor(target, config) {\n super(dropdownComponent, target, defaultDropdownOptions, config);\n // bind\n const self = this;\n\n // initialization element\n const element = self.element;\n\n // set targets\n const parent = element.parentElement;\n self.menu = queryElement(`.${dropdownMenuClass}`, parent);\n const menu = self.menu;\n self.originalClass = Array.from(parent.classList);\n\n // set original position\n self.menuEnd = hasClass(menu, dropdownMenuEndClass);\n self.menuItems = [];\n Array.from(menu.children).forEach(child => {\n if (child.children.length && child.children[0].tagName === 'A') self.menuItems.push(child.children[0]);\n if (child.tagName === 'A') self.menuItems.push(child);\n });\n\n // set initial state to closed\n self.open = false;\n\n // add event listener\n toggleDropdownHandler(self, 1);\n }\n\n // DROPDOWN PUBLIC METHODS\n // =======================\n toggle(related) {\n const self = this;\n const open = self.open;\n if (open) self.hide(related);else self.show(related);\n }\n show(related) {\n const self = this;\n const currentParent = queryElement(dropdownMenuClasses.map(c => `.${c}.${showClass}`).join(','));\n const currentElement = currentParent && queryElement(dropdownSelector, currentParent);\n if (currentElement) currentElement[dropdownComponent].hide();\n const element = self.element,\n menu = self.menu,\n open = self.open;\n const parent = element.parentNode;\n\n // update relatedTarget and dispatch\n showDropdownEvent.relatedTarget = related || null;\n parent.dispatchEvent(showDropdownEvent);\n if (showDropdownEvent.defaultPrevented) return;\n\n // change menu position\n styleDropdown(self, 1);\n addClass(menu, showClass);\n addClass(parent, showClass);\n element.setAttribute(ariaExpanded, true);\n self.open = !open;\n setTimeout(() => {\n setFocus(menu.getElementsByTagName('INPUT')[0] || element); // focus the first input item | element\n toggleDropdownDismiss(self);\n shownDropdownEvent.relatedTarget = related || null;\n parent.dispatchEvent(shownDropdownEvent);\n }, 1);\n }\n hide(related) {\n const self = this;\n const element = self.element,\n menu = self.menu,\n open = self.open;\n const parent = element.parentNode;\n hideDropdownEvent.relatedTarget = related || null;\n parent.dispatchEvent(hideDropdownEvent);\n if (hideDropdownEvent.defaultPrevented) return;\n removeClass(menu, showClass);\n removeClass(parent, showClass);\n\n // revert to original position\n styleDropdown(self);\n element.setAttribute(ariaExpanded, false);\n self.open = !open;\n setFocus(element);\n\n // only re-attach handler if the instance is not disposed\n setTimeout(() => toggleDropdownDismiss(self), 1);\n\n // update relatedTarget and dispatch\n hiddenDropdownEvent.relatedTarget = related || null;\n parent.dispatchEvent(hiddenDropdownEvent);\n }\n dispose() {\n const self = this;\n const element = self.element;\n if (hasClass(element.parentNode, showClass) && self.open) self.hide();\n toggleDropdownHandler(self);\n super.dispose(dropdownComponent);\n }\n }\n Dropdown.init = {\n component: dropdownComponent,\n selector: dropdownSelector,\n constructor: Dropdown\n };\n const ariaHidden = 'aria-hidden';\n const ariaModal = 'aria-modal';\n const fixedTopClass = 'fixed-top';\n const fixedBottomClass = 'fixed-bottom';\n const stickyTopClass = 'sticky-top';\n const fixedItems = Array.from(document.getElementsByClassName(fixedTopClass)).concat(Array.from(document.getElementsByClassName(fixedBottomClass))).concat(Array.from(document.getElementsByClassName(stickyTopClass))).concat(Array.from(document.getElementsByClassName('is-fixed')));\n function resetScrollbar() {\n const bd = document.body;\n bd.style.paddingRight = '';\n bd.style.overflow = '';\n if (fixedItems.length) {\n fixedItems.forEach(fixed => {\n fixed.style.paddingRight = '';\n fixed.style.marginRight = '';\n });\n }\n }\n function measureScrollbar() {\n const windowWidth = document.documentElement.clientWidth;\n return Math.abs(window.innerWidth - windowWidth);\n }\n function setScrollbar(scrollbarWidth, overflow, isOpen) {\n const bd = document.body;\n const bodyPad = parseInt(getComputedStyle(bd).paddingRight, 10);\n const sbWidth = isOpen && bodyPad ? 0 : scrollbarWidth;\n if (overflow) {\n bd.style.paddingRight = `${bodyPad + sbWidth}px`;\n if (fixedItems.length) {\n fixedItems.forEach(fixed => {\n const isSticky = hasClass(fixed, stickyTopClass);\n const itemPadValue = getComputedStyle(fixed).paddingRight;\n fixed.style.paddingRight = `${parseInt(itemPadValue, 10) + sbWidth}px`;\n if (isSticky) {\n const itemMValue = getComputedStyle(fixed).marginRight;\n fixed.style.marginRight = `${parseInt(itemMValue, 10) - sbWidth}px`;\n }\n });\n }\n }\n }\n const modalOpenClass = 'modal-open';\n const modalBackdropClass = 'modal-backdrop';\n const modalActiveSelector = `.modal.${showClass}`;\n const offcanvasActiveSelector = `.offcanvas.${showClass}`;\n const overlay = document.createElement('div');\n overlay.setAttribute('class', `${modalBackdropClass}`);\n function getCurrentOpen() {\n return queryElement(`${modalActiveSelector},${offcanvasActiveSelector}`);\n }\n function appendOverlay(hasFade) {\n document.body.appendChild(overlay);\n if (hasFade) addClass(overlay, fadeClass);\n }\n function showOverlay() {\n addClass(overlay, showClass);\n reflow(overlay);\n }\n function hideOverlay() {\n removeClass(overlay, showClass);\n }\n function removeOverlay() {\n const bd = document.body;\n const currentOpen = getCurrentOpen();\n if (!currentOpen) {\n removeClass(overlay, fadeClass);\n removeClass(bd, modalOpenClass);\n bd.removeChild(overlay);\n resetScrollbar();\n }\n }\n function isVisible(element) {\n return getComputedStyle(element).visibility !== 'hidden' && element.offsetParent !== null;\n }\n\n /* Native JavaScript for Bootstrap 5 | Modal\n -------------------------------------------- */\n\n // MODAL PRIVATE GC\n // ================\n const modalString = 'modal';\n const modalComponent = 'Modal';\n const modalSelector = `.${modalString}`;\n // const modalActiveSelector = `.${modalString}.${showClass}`;\n const modalToggleSelector = `[${dataBsToggle}=\"${modalString}\"]`;\n const modalDismissSelector = `[${dataBsDismiss}=\"${modalString}\"]`;\n const modalStaticClass = `${modalString}-static`;\n const modalDefaultOptions = {\n backdrop: true,\n // boolean|string\n keyboard: true // boolean\n };\n\n // MODAL CUSTOM EVENTS\n // ===================\n const showModalEvent = bootstrapCustomEvent(`show.bs.${modalString}`);\n const shownModalEvent = bootstrapCustomEvent(`shown.bs.${modalString}`);\n const hideModalEvent = bootstrapCustomEvent(`hide.bs.${modalString}`);\n const hiddenModalEvent = bootstrapCustomEvent(`hidden.bs.${modalString}`);\n\n // MODAL PRIVATE METHODS\n // =====================\n function setModalScrollbar(self) {\n const element = self.element,\n scrollbarWidth = self.scrollbarWidth;\n const bd = document.body;\n const html = document.documentElement;\n const openModal = hasClass(bd, modalOpenClass);\n const bodyOverflow = html.clientHeight !== html.scrollHeight || bd.clientHeight !== bd.scrollHeight;\n const modalOverflow = element.clientHeight !== element.scrollHeight;\n if (!modalOverflow && scrollbarWidth) {\n element.style.paddingRight = `${scrollbarWidth}px`;\n }\n setScrollbar(scrollbarWidth, modalOverflow || bodyOverflow, openModal);\n }\n function toggleModalDismiss(self, add) {\n const action = add ? addEventListener : removeEventListener;\n window[action]('resize', self.update, passiveHandler);\n self.element[action]('click', modalDismissHandler);\n document[action]('keydown', modalKeyHandler);\n }\n function toggleModalHandler(self, add) {\n const action = add ? addEventListener : removeEventListener;\n const triggers = self.triggers;\n if (triggers.length) {\n triggers.forEach(btn => btn[action]('click', modalClickHandler));\n }\n }\n function afterModalHide(self) {\n const triggers = self.triggers;\n removeOverlay();\n self.element.style.paddingRight = '';\n self.isAnimating = false;\n if (triggers.length) {\n const visibleTrigger = triggers.find(x => isVisible(x));\n if (visibleTrigger) setFocus(visibleTrigger);\n }\n }\n function afterModalShow(self) {\n const element = self.element,\n relatedTarget = self.relatedTarget;\n setFocus(element);\n self.isAnimating = false;\n toggleModalDismiss(self, 1);\n shownModalEvent.relatedTarget = relatedTarget;\n element.dispatchEvent(shownModalEvent);\n }\n function beforeModalShow(self) {\n const element = self.element,\n hasFade = self.hasFade;\n element.style.display = 'block';\n setModalScrollbar(self);\n if (!queryElement(modalActiveSelector)) {\n addClass(document.body, modalOpenClass);\n }\n addClass(element, showClass);\n element.removeAttribute(ariaHidden);\n element.setAttribute(ariaModal, true);\n if (hasFade) emulateTransitionEnd(element, () => afterModalShow(self));else afterModalShow(self);\n }\n function beforeModalHide(self, force) {\n const element = self.element,\n relatedTarget = self.relatedTarget,\n hasFade = self.hasFade;\n const currentOpen = getCurrentOpen();\n element.style.display = '';\n\n // force can also be the transitionEvent object, we wanna make sure it's not\n // call is not forced and overlay is visible\n if (!force && hasFade && hasClass(overlay, showClass) && !currentOpen) {\n // AND no modal is visible\n hideOverlay();\n emulateTransitionEnd(overlay, () => afterModalHide(self));\n } else {\n afterModalHide(self);\n }\n toggleModalDismiss(self);\n hiddenModalEvent.relatedTarget = relatedTarget;\n element.dispatchEvent(hiddenModalEvent);\n }\n\n // MODAL EVENT HANDLERS\n // ====================\n function modalClickHandler(e) {\n const target = e.target;\n const trigger = target.closest(modalToggleSelector);\n const element = getTargetElement(trigger);\n const self = element && element[modalComponent];\n if (trigger.tagName === 'A') e.preventDefault();\n if (self.isAnimating) return;\n self.relatedTarget = trigger;\n self.toggle();\n }\n function modalKeyHandler(_ref3) {\n let which = _ref3.which;\n const element = queryElement(modalActiveSelector);\n const self = element[modalComponent];\n const options = self.options,\n isAnimating = self.isAnimating;\n if (!isAnimating // modal has no animations running\n && options.keyboard && which === 27 // the keyboard option is enabled and the key is 27\n && hasClass(element, showClass)) {\n // the modal is not visible\n self.relatedTarget = null;\n self.hide();\n }\n }\n function modalDismissHandler(e) {\n const element = this;\n const self = element[modalComponent];\n if (self.isAnimating) return;\n const isStatic = self.isStatic,\n modalDialog = self.modalDialog;\n const target = e.target;\n const selectedText = document.getSelection().toString().length;\n const targetInsideDialog = modalDialog.contains(target);\n const dismiss = target.closest(modalDismissSelector);\n if (isStatic && !targetInsideDialog) {\n addClass(element, modalStaticClass);\n self.isAnimating = true;\n emulateTransitionEnd(modalDialog, () => staticTransitionEnd(self));\n } else if (dismiss || !selectedText && !isStatic && !targetInsideDialog) {\n self.relatedTarget = dismiss || null;\n self.hide();\n e.preventDefault();\n }\n }\n function staticTransitionEnd(self) {\n const duration = getElementTransitionDuration(self.modalDialog) + 17;\n removeClass(self.element, modalStaticClass);\n // user must wait for zoom out transition\n setTimeout(() => {\n self.isAnimating = false;\n }, duration);\n }\n\n // MODAL DEFINITION\n // ================\n class Modal extends BaseComponent {\n constructor(target, config) {\n super(modalComponent, target, modalDefaultOptions, config);\n\n // bind\n const self = this;\n\n // the modal\n const element = self.element;\n\n // the modal-dialog\n self.modalDialog = queryElement(`.${modalString}-dialog`, element);\n\n // modal can have multiple triggering elements\n self.triggers = Array.from(document.querySelectorAll(modalToggleSelector)).filter(btn => getTargetElement(btn) === element);\n\n // additional internals\n self.isStatic = self.options.backdrop === 'static';\n self.hasFade = hasClass(element, fadeClass);\n self.isAnimating = false;\n self.scrollbarWidth = measureScrollbar();\n self.relatedTarget = null;\n\n // attach event listeners\n toggleModalHandler(self, 1);\n\n // bind\n self.update = self.update.bind(self);\n }\n\n // MODAL PUBLIC METHODS\n // ====================\n toggle() {\n const self = this;\n if (hasClass(self.element, showClass)) self.hide();else self.show();\n }\n show() {\n const self = this;\n const element = self.element,\n isAnimating = self.isAnimating,\n hasFade = self.hasFade,\n relatedTarget = self.relatedTarget;\n let overlayDelay = 0;\n if (hasClass(element, showClass) && !isAnimating) return;\n showModalEvent.relatedTarget = relatedTarget || null;\n element.dispatchEvent(showModalEvent);\n if (showModalEvent.defaultPrevented) return;\n self.isAnimating = true;\n\n // we elegantly hide any opened modal/offcanvas\n const currentOpen = getCurrentOpen();\n if (currentOpen && currentOpen !== element) {\n const that = currentOpen[modalComponent] ? currentOpen[modalComponent] : currentOpen.Offcanvas;\n that.hide();\n }\n if (!queryElement(`.${modalBackdropClass}`)) {\n appendOverlay(hasFade);\n }\n overlayDelay = getElementTransitionDuration(overlay);\n if (!hasClass(overlay, showClass)) {\n showOverlay();\n }\n if (!currentOpen) {\n setTimeout(() => beforeModalShow(self), overlayDelay);\n } else beforeModalShow(self);\n }\n hide(force) {\n const self = this;\n const element = self.element,\n isAnimating = self.isAnimating,\n hasFade = self.hasFade,\n relatedTarget = self.relatedTarget;\n if (!hasClass(element, showClass) && !isAnimating) return;\n hideModalEvent.relatedTarget = relatedTarget || null;\n element.dispatchEvent(hideModalEvent);\n if (hideModalEvent.defaultPrevented) return;\n self.isAnimating = true;\n removeClass(element, showClass);\n element.setAttribute(ariaHidden, true);\n element.removeAttribute(ariaModal);\n if (hasFade && force !== 1) {\n emulateTransitionEnd(element, () => beforeModalHide(self));\n } else {\n beforeModalHide(self, force);\n }\n }\n update() {\n const self = this;\n if (hasClass(self.element, showClass)) setModalScrollbar(self);\n }\n dispose() {\n const self = this;\n self.hide(1); // forced call\n\n toggleModalHandler(self);\n super.dispose(modalComponent);\n }\n }\n Modal.init = {\n component: modalComponent,\n selector: modalSelector,\n constructor: Modal\n };\n\n /* Native JavaScript for Bootstrap 5 | OffCanvas\n ------------------------------------------------ */\n\n // OFFCANVAS PRIVATE GC\n // ====================\n const offcanvasString = 'offcanvas';\n const offcanvasComponent = 'Offcanvas';\n const OffcanvasSelector = `.${offcanvasString}`;\n const offcanvasToggleSelector = `[${dataBsToggle}=\"${offcanvasString}\"]`;\n const offcanvasDismissSelector = `[${dataBsDismiss}=\"${offcanvasString}\"]`;\n const offcanvasTogglingClass = `${offcanvasString}-toggling`;\n const offcanvasDefaultOptions = {\n backdrop: true,\n // boolean\n keyboard: true,\n // boolean\n scroll: false // boolean\n };\n\n // OFFCANVAS CUSTOM EVENTS\n // =======================\n const showOffcanvasEvent = bootstrapCustomEvent(`show.bs.${offcanvasString}`);\n const shownOffcanvasEvent = bootstrapCustomEvent(`shown.bs.${offcanvasString}`);\n const hideOffcanvasEvent = bootstrapCustomEvent(`hide.bs.${offcanvasString}`);\n const hiddenOffcanvasEvent = bootstrapCustomEvent(`hidden.bs.${offcanvasString}`);\n\n // OFFCANVAS PRIVATE METHODS\n // =========================\n function setOffCanvasScrollbar(self) {\n const bd = document.body;\n const html = document.documentElement;\n const openOffCanvas = hasClass(bd, modalOpenClass);\n const bodyOverflow = html.clientHeight !== html.scrollHeight || bd.clientHeight !== bd.scrollHeight;\n setScrollbar(self.scrollbarWidth, bodyOverflow, openOffCanvas);\n }\n function toggleOffcanvasEvents(self, add) {\n const action = add ? addEventListener : removeEventListener;\n self.triggers.forEach(btn => btn[action]('click', offcanvasTriggerHandler));\n }\n function toggleOffCanvasDismiss(add) {\n const action = add ? addEventListener : removeEventListener;\n document[action]('keydown', offcanvasKeyDismissHandler);\n document[action]('click', offcanvasDismissHandler);\n }\n function beforeOffcanvasShow(self) {\n const element = self.element,\n options = self.options;\n if (!options.scroll) {\n addClass(document.body, modalOpenClass);\n setOffCanvasScrollbar(self);\n }\n addClass(element, offcanvasTogglingClass);\n addClass(element, showClass);\n element.style.visibility = 'visible';\n emulateTransitionEnd(element, () => showOffcanvasComplete(self));\n }\n function beforeOffcanvasHide(self) {\n const element = self.element,\n options = self.options;\n const currentOpen = getCurrentOpen();\n element.blur();\n if (!currentOpen && options.backdrop && hasClass(overlay, showClass)) {\n hideOverlay();\n emulateTransitionEnd(overlay, () => hideOffcanvasComplete(self));\n } else hideOffcanvasComplete(self);\n }\n\n // OFFCANVAS EVENT HANDLERS\n // ========================\n function offcanvasTriggerHandler(e) {\n const trigger = this.closest(offcanvasToggleSelector);\n const element = getTargetElement(trigger);\n const self = element && element[offcanvasComponent];\n if (trigger.tagName === 'A') e.preventDefault();\n if (self) {\n self.relatedTarget = trigger;\n self.toggle();\n }\n }\n function offcanvasDismissHandler(e) {\n const element = queryElement(offcanvasActiveSelector);\n if (!element) return;\n const offCanvasDismiss = queryElement(offcanvasDismissSelector, element);\n const self = element[offcanvasComponent];\n if (!self) return;\n const options = self.options,\n open = self.open,\n triggers = self.triggers;\n const target = e.target;\n const trigger = target.closest(offcanvasToggleSelector);\n if (trigger && trigger.tagName === 'A') e.preventDefault();\n if (open && (!element.contains(target) && options.backdrop && (!trigger || trigger && !triggers.includes(trigger)) || offCanvasDismiss.contains(target))) {\n self.relatedTarget = target === offCanvasDismiss ? offCanvasDismiss : null;\n self.hide();\n }\n }\n function offcanvasKeyDismissHandler(_ref4) {\n let which = _ref4.which;\n const element = queryElement(offcanvasActiveSelector);\n if (!element) return;\n const self = element[offcanvasComponent];\n if (self && self.options.keyboard && which === 27) {\n self.relatedTarget = null;\n self.hide();\n }\n }\n function showOffcanvasComplete(self) {\n const element = self.element,\n triggers = self.triggers,\n relatedTarget = self.relatedTarget;\n removeClass(element, offcanvasTogglingClass);\n element.removeAttribute(ariaHidden);\n element.setAttribute(ariaModal, true);\n element.setAttribute('role', 'dialog');\n self.isAnimating = false;\n if (triggers.length) {\n triggers.forEach(btn => btn.setAttribute(ariaExpanded, true));\n }\n shownOffcanvasEvent.relatedTarget = relatedTarget || null;\n element.dispatchEvent(shownOffcanvasEvent);\n toggleOffCanvasDismiss(1);\n setFocus(element);\n }\n function hideOffcanvasComplete(self) {\n const element = self.element,\n options = self.options,\n relatedTarget = self.relatedTarget,\n triggers = self.triggers;\n const currentOpen = getCurrentOpen();\n element.setAttribute(ariaHidden, true);\n element.removeAttribute(ariaModal);\n element.removeAttribute('role');\n element.style.visibility = '';\n self.open = false;\n self.isAnimating = false;\n if (triggers.length) {\n triggers.forEach(btn => btn.setAttribute(ariaExpanded, false));\n const visibleTrigger = triggers.find(x => isVisible(x));\n if (visibleTrigger) setFocus(visibleTrigger);\n }\n\n // handle new offcanvas showing up\n if (!currentOpen) {\n if (options.backdrop) removeOverlay();\n if (!options.scroll) {\n resetScrollbar();\n removeClass(document.body, modalOpenClass);\n }\n }\n hiddenOffcanvasEvent.relatedTarget = relatedTarget || null;\n element.dispatchEvent(hiddenOffcanvasEvent);\n removeClass(element, offcanvasTogglingClass);\n toggleOffCanvasDismiss();\n }\n\n // OFFCANVAS DEFINITION\n // ====================\n class Offcanvas extends BaseComponent {\n constructor(target, config) {\n super(offcanvasComponent, target, offcanvasDefaultOptions, config);\n const self = this;\n\n // instance element\n const element = self.element;\n\n // all the triggering buttons\n self.triggers = Array.from(document.querySelectorAll(offcanvasToggleSelector)).filter(btn => getTargetElement(btn) === element);\n\n // additional instance property\n self.open = false;\n self.isAnimating = false;\n self.scrollbarWidth = measureScrollbar();\n\n // attach event listeners\n toggleOffcanvasEvents(self, 1);\n }\n\n // OFFCANVAS PUBLIC METHODS\n // ========================\n toggle() {\n const self = this;\n return self.open ? self.hide() : self.show();\n }\n show() {\n const self = this[offcanvasComponent] ? this[offcanvasComponent] : this;\n const element = self.element,\n options = self.options,\n isAnimating = self.isAnimating,\n relatedTarget = self.relatedTarget;\n let overlayDelay = 0;\n if (self.open || isAnimating) return;\n showOffcanvasEvent.relatedTarget = relatedTarget || null;\n element.dispatchEvent(showOffcanvasEvent);\n if (showOffcanvasEvent.defaultPrevented) return;\n\n // we elegantly hide any opened modal/offcanvas\n const currentOpen = getCurrentOpen();\n if (currentOpen && currentOpen !== element) {\n const that = currentOpen[offcanvasComponent] ? currentOpen[offcanvasComponent] : currentOpen.Modal;\n that.hide();\n }\n self.open = true;\n self.isAnimating = true;\n if (options.backdrop) {\n if (!queryElement(`.${modalBackdropClass}`)) {\n appendOverlay(1);\n }\n overlayDelay = getElementTransitionDuration(overlay);\n if (!hasClass(overlay, showClass)) showOverlay();\n setTimeout(() => beforeOffcanvasShow(self), overlayDelay);\n } else beforeOffcanvasShow(self);\n }\n hide(force) {\n const self = this;\n const element = self.element,\n isAnimating = self.isAnimating,\n relatedTarget = self.relatedTarget;\n if (!self.open || isAnimating) return;\n hideOffcanvasEvent.relatedTarget = relatedTarget || null;\n element.dispatchEvent(hideOffcanvasEvent);\n if (hideOffcanvasEvent.defaultPrevented) return;\n self.isAnimating = true;\n addClass(element, offcanvasTogglingClass);\n removeClass(element, showClass);\n if (!force) {\n emulateTransitionEnd(element, () => beforeOffcanvasHide(self));\n } else beforeOffcanvasHide(self);\n }\n dispose() {\n const self = this;\n self.hide(1);\n toggleOffcanvasEvents(self);\n super.dispose(offcanvasComponent);\n }\n }\n Offcanvas.init = {\n component: offcanvasComponent,\n selector: OffcanvasSelector,\n constructor: Offcanvas\n };\n const ariaDescribedBy = 'aria-describedby';\n var tipClassPositions = {\n top: 'top',\n bottom: 'bottom',\n left: 'start',\n right: 'end'\n };\n function isVisibleTip(tip, container) {\n return container.contains(tip);\n }\n function isMedia(element) {\n return [SVGElement, HTMLImageElement, HTMLVideoElement].some(mediaType => element instanceof mediaType);\n }\n function closestRelative(element) {\n let retval = null;\n let el = element;\n while (el !== document.body) {\n el = el.parentElement;\n if (getComputedStyle(el).position === 'relative') {\n retval = el;\n break;\n }\n }\n return retval;\n }\n\n // both popovers and tooltips (this, event)\n function styleTip(self, e) {\n const tipClasses = /\\b(top|bottom|start|end)+/;\n const tip = self.tooltip || self.popover;\n // reset tip style\n tip.style.top = '';\n tip.style.left = '';\n tip.style.right = '';\n // continue with metrics\n const isPopover = !!self.popover;\n let tipDimensions = {\n w: tip.offsetWidth,\n h: tip.offsetHeight\n };\n const windowWidth = document.documentElement.clientWidth || document.body.clientWidth;\n const windowHeight = document.documentElement.clientHeight || document.body.clientHeight;\n const element = self.element,\n options = self.options,\n arrow = self.arrow;\n let container = options.container,\n placement = options.placement;\n let parentIsBody = container === document.body;\n const targetPosition = getComputedStyle(element).position;\n const parentPosition = getComputedStyle(container).position;\n const staticParent = !parentIsBody && parentPosition === 'static';\n let relativeParent = !parentIsBody && parentPosition === 'relative';\n const relContainer = staticParent && closestRelative(container);\n // static containers should refer to another relative container or the body\n container = relContainer || container;\n relativeParent = staticParent && relContainer ? 1 : relativeParent;\n parentIsBody = container === document.body;\n const parentRect = container.getBoundingClientRect();\n const leftBoundry = relativeParent ? parentRect.left : 0;\n const rightBoundry = relativeParent ? parentRect.right : windowWidth;\n // this case should not be possible\n // absoluteParent = !parentIsBody && parentPosition === 'absolute',\n // this case requires a container with placement: relative\n const absoluteTarget = targetPosition === 'absolute';\n const targetRect = element.getBoundingClientRect();\n const scroll = parentIsBody ? {\n x: window.pageXOffset,\n y: window.pageYOffset\n } : {\n x: container.scrollLeft,\n y: container.scrollTop\n };\n const elemDimensions = {\n w: element.offsetWidth,\n h: element.offsetHeight\n };\n const top = relativeParent ? element.offsetTop : targetRect.top;\n const left = relativeParent ? element.offsetLeft : targetRect.left;\n // reset arrow style\n arrow.style.top = '';\n arrow.style.left = '';\n arrow.style.right = '';\n let topPosition;\n let leftPosition;\n let rightPosition;\n let arrowTop;\n let arrowLeft;\n let arrowRight;\n\n // check placement\n let topExceed = targetRect.top - tipDimensions.h < 0;\n let bottomExceed = targetRect.top + tipDimensions.h + elemDimensions.h >= windowHeight;\n let leftExceed = targetRect.left - tipDimensions.w < leftBoundry;\n let rightExceed = targetRect.left + tipDimensions.w + elemDimensions.w >= rightBoundry;\n topExceed = ['left', 'right'].includes(placement) ? targetRect.top + elemDimensions.h / 2 - tipDimensions.h / 2 < 0 : topExceed;\n bottomExceed = ['left', 'right'].includes(placement) ? targetRect.top + tipDimensions.h / 2 + elemDimensions.h / 2 >= windowHeight : bottomExceed;\n leftExceed = ['top', 'bottom'].includes(placement) ? targetRect.left + elemDimensions.w / 2 - tipDimensions.w / 2 < leftBoundry : leftExceed;\n rightExceed = ['top', 'bottom'].includes(placement) ? targetRect.left + tipDimensions.w / 2 + elemDimensions.w / 2 >= rightBoundry : rightExceed;\n\n // recompute placement\n // first, when both left and right limits are exceeded, we fall back to top|bottom\n placement = ['left', 'right'].includes(placement) && leftExceed && rightExceed ? 'top' : placement;\n placement = placement === 'top' && topExceed ? 'bottom' : placement;\n placement = placement === 'bottom' && bottomExceed ? 'top' : placement;\n placement = placement === 'left' && leftExceed ? 'right' : placement;\n placement = placement === 'right' && rightExceed ? 'left' : placement;\n\n // update tooltip/popover class\n if (!tip.className.includes(placement)) {\n tip.className = tip.className.replace(tipClasses, tipClassPositions[placement]);\n }\n // if position has changed, update tip dimensions\n tipDimensions = {\n w: tip.offsetWidth,\n h: tip.offsetHeight\n };\n\n // we check the computed width & height and update here\n const arrowWidth = arrow.offsetWidth || 0;\n const arrowHeight = arrow.offsetHeight || 0;\n const arrowAdjust = arrowWidth / 2;\n\n // compute tooltip / popover coordinates\n if (['left', 'right'].includes(placement)) {\n // secondary|side positions\n if (placement === 'left') {\n // LEFT\n leftPosition = left + scroll.x - tipDimensions.w - (isPopover ? arrowWidth : 0);\n } else {\n // RIGHT\n leftPosition = left + scroll.x + elemDimensions.w + (isPopover ? arrowWidth : 0);\n }\n\n // adjust top and arrow\n if (topExceed) {\n topPosition = top + scroll.y;\n arrowTop = elemDimensions.h / 2 - arrowWidth;\n } else if (bottomExceed) {\n topPosition = top + scroll.y - tipDimensions.h + elemDimensions.h;\n arrowTop = tipDimensions.h - elemDimensions.h / 2 - arrowWidth;\n } else {\n topPosition = top + scroll.y - tipDimensions.h / 2 + elemDimensions.h / 2;\n arrowTop = tipDimensions.h / 2 - arrowHeight / 2;\n }\n } else if (['top', 'bottom'].includes(placement)) {\n if (e && isMedia(element)) {\n const eX = !relativeParent ? e.pageX : e.layerX + (absoluteTarget ? element.offsetLeft : 0);\n const eY = !relativeParent ? e.pageY : e.layerY + (absoluteTarget ? element.offsetTop : 0);\n if (placement === 'top') {\n topPosition = eY - tipDimensions.h - (isPopover ? arrowWidth : arrowHeight);\n } else {\n topPosition = eY + arrowHeight;\n }\n\n // adjust left | right and also the arrow\n if (e.clientX - tipDimensions.w / 2 < leftBoundry) {\n // when exceeds left\n leftPosition = 0;\n arrowLeft = eX - arrowAdjust;\n } else if (e.clientX + tipDimensions.w * 0.51 >= rightBoundry) {\n // when exceeds right\n leftPosition = 'auto';\n rightPosition = 0;\n arrowLeft = tipDimensions.w - (rightBoundry - eX) - arrowAdjust;\n } else {\n // normal top/bottom\n leftPosition = eX - tipDimensions.w / 2;\n arrowLeft = tipDimensions.w / 2 - arrowAdjust;\n }\n } else {\n if (placement === 'top') {\n topPosition = top + scroll.y - tipDimensions.h - (isPopover ? arrowHeight : 0);\n } else {\n // BOTTOM\n topPosition = top + scroll.y + elemDimensions.h + (isPopover ? arrowHeight : 0);\n }\n\n // adjust left | right and also the arrow\n if (leftExceed) {\n leftPosition = 0;\n arrowLeft = left + elemDimensions.w / 2 - arrowAdjust;\n } else if (rightExceed) {\n leftPosition = 'auto';\n rightPosition = 0;\n arrowRight = elemDimensions.w / 2 + (parentRect.right - targetRect.right) - arrowAdjust;\n } else {\n leftPosition = left + scroll.x - tipDimensions.w / 2 + elemDimensions.w / 2;\n arrowLeft = tipDimensions.w / 2 - arrowAdjust;\n }\n }\n }\n\n // apply style to tooltip/popover and its arrow\n tip.style.top = `${topPosition}px`;\n tip.style.left = leftPosition === 'auto' ? leftPosition : `${leftPosition}px`;\n tip.style.right = rightPosition !== undefined ? `${rightPosition}px` : '';\n // update arrow placement or clear side\n if (arrowTop !== undefined) {\n arrow.style.top = `${arrowTop}px`;\n }\n if (arrowLeft !== undefined) {\n arrow.style.left = `${arrowLeft}px`;\n } else if (arrowRight !== undefined) {\n arrow.style.right = `${arrowRight}px`;\n }\n }\n let bsnUID = 1;\n\n // popover, tooltip, scrollspy need a unique id\n function getUID(element, key) {\n bsnUID += 1;\n return element[key] || bsnUID;\n }\n function getTipContainer(element) {\n // maybe the element is inside a modal\n const modal = element.closest('.modal');\n\n // OR maybe the element is inside a fixed navbar\n const navbarFixed = element.closest(`.${fixedTopClass},.${fixedBottomClass}`);\n\n // set default container option appropriate for the context\n return modal || navbarFixed || document.body;\n }\n\n /* Native JavaScript for Bootstrap 5 | Popover\n ---------------------------------------------- */\n\n // POPOVER PRIVATE GC\n // ==================\n const popoverString = 'popover';\n const popoverComponent = 'Popover';\n const popoverSelector = `[${dataBsToggle}=\"${popoverString}\"],[data-tip=\"${popoverString}\"]`;\n const popoverDefaultOptions = {\n template: '

',\n // string\n title: null,\n // string\n content: null,\n // string\n sanitizeFn: null,\n // function\n customClass: null,\n // string\n dismissible: false,\n // boolean\n animation: true,\n // boolean\n trigger: 'hover',\n // string\n placement: 'top',\n // string\n delay: 200 // number\n };\n\n // POPOVER PRIVATE GC\n // ==================\n const isIphone = /(iPhone|iPod|iPad)/.test(navigator.userAgent);\n // popoverArrowClass = `${popoverString}-arrow`,\n const popoverHeaderClass = `${popoverString}-header`;\n const popoverBodyClass = `${popoverString}-body`;\n // close btn for dissmissible popover\n let popoverCloseButton = '';\n\n // POPOVER CUSTOM EVENTS\n // =====================\n const showPopoverEvent = bootstrapCustomEvent(`show.bs.${popoverString}`);\n const shownPopoverEvent = bootstrapCustomEvent(`shown.bs.${popoverString}`);\n const hidePopoverEvent = bootstrapCustomEvent(`hide.bs.${popoverString}`);\n const hiddenPopoverEvent = bootstrapCustomEvent(`hidden.bs.${popoverString}`);\n\n // POPOVER EVENT HANDLERS\n // ======================\n function popoverForceFocus() {\n setFocus(this);\n }\n function popoverTouchHandler(_ref5) {\n let target = _ref5.target;\n const self = this;\n const popover = self.popover,\n element = self.element;\n if (popover && popover.contains(target) // popover includes touch target\n || target === element // OR touch target is element\n || element.contains(target)) ;else {\n self.hide();\n }\n }\n\n // POPOVER PRIVATE METHODS\n // =======================\n function createPopover(self) {\n const id = self.id,\n options = self.options;\n const animation = options.animation,\n customClass = options.customClass,\n sanitizeFn = options.sanitizeFn,\n placement = options.placement,\n dismissible = options.dismissible;\n let title = options.title,\n content = options.content,\n template = options.template;\n\n // set initial popover class\n const placementClass = `bs-${popoverString}-${tipClassPositions[placement]}`;\n\n // fixing #233\n title = title ? title.trim() : null;\n content = content ? content.trim() : null;\n\n // sanitize title && content\n if (sanitizeFn) {\n title = title ? sanitizeFn(title) : null;\n content = content ? sanitizeFn(content) : null;\n template = template ? sanitizeFn(template) : null;\n popoverCloseButton = sanitizeFn(popoverCloseButton);\n }\n self.popover = document.createElement('div');\n const popover = self.popover;\n\n // set id and aria-describedby\n popover.setAttribute('id', id);\n popover.setAttribute('role', 'tooltip');\n\n // load template\n const popoverTemplate = document.createElement('div');\n popoverTemplate.innerHTML = template.trim();\n popover.className = popoverTemplate.firstChild.className;\n popover.innerHTML = popoverTemplate.firstChild.innerHTML;\n const popoverHeader = queryElement(`.${popoverHeaderClass}`, popover);\n const popoverBody = queryElement(`.${popoverBodyClass}`, popover);\n\n // set arrow\n self.arrow = queryElement(`.${popoverString}-arrow`, popover);\n\n // set dismissible button\n if (dismissible) {\n title = title ? title + popoverCloseButton : title;\n content = title === null ? +popoverCloseButton : content;\n }\n\n // fill the template with content from data attributes\n if (title && popoverHeader) popoverHeader.innerHTML = title.trim();\n if (content && popoverBody) popoverBody.innerHTML = content.trim();\n\n // set popover animation and placement\n if (!hasClass(popover, popoverString)) addClass(popover, popoverString);\n if (animation && !hasClass(popover, fadeClass)) addClass(popover, fadeClass);\n if (customClass && !hasClass(popover, customClass)) {\n addClass(popover, customClass);\n }\n if (!hasClass(popover, placementClass)) addClass(popover, placementClass);\n }\n function removePopover(self) {\n const element = self.element,\n popover = self.popover,\n options = self.options;\n element.removeAttribute(ariaDescribedBy);\n options.container.removeChild(popover);\n self.timer = null;\n }\n function togglePopoverHandlers(self, add) {\n const action = add ? addEventListener : removeEventListener;\n const element = self.element,\n options = self.options;\n const trigger = options.trigger,\n dismissible = options.dismissible;\n self.enabled = !!add;\n if (trigger === 'hover') {\n element[action]('mousedown', self.show);\n element[action]('mouseenter', self.show);\n if (isMedia(element)) element[action]('mousemove', self.update, passiveHandler);\n if (!dismissible) element[action]('mouseleave', self.hide);\n } else if (trigger === 'click') {\n element[action](trigger, self.toggle);\n } else if (trigger === 'focus') {\n if (isIphone) element[action]('click', popoverForceFocus);\n element[action]('focusin', self.show);\n }\n }\n function dismissHandlerToggle(self, add) {\n const action = add ? addEventListener : removeEventListener;\n const options = self.options,\n element = self.element,\n popover = self.popover;\n const trigger = options.trigger,\n dismissible = options.dismissible;\n if (dismissible) {\n const _popover$getElementsB = popover.getElementsByClassName('btn-close'),\n _popover$getElementsB2 = _slicedToArray(_popover$getElementsB, 1),\n btnClose = _popover$getElementsB2[0];\n if (btnClose) btnClose[action]('click', self.hide);\n } else {\n if (trigger === 'focus') element[action]('focusout', self.hide);\n if (trigger === 'hover') document[action]('touchstart', popoverTouchHandler, passiveHandler);\n }\n if (!isMedia(element)) {\n window[action]('scroll', self.update, passiveHandler);\n window[action]('resize', self.update, passiveHandler);\n }\n }\n function popoverShowTrigger(self) {\n dismissHandlerToggle(self, 1);\n self.element.dispatchEvent(shownPopoverEvent);\n }\n function popoverHideTrigger(self) {\n dismissHandlerToggle(self);\n removePopover(self);\n self.element.dispatchEvent(hiddenPopoverEvent);\n }\n\n // POPOVER DEFINITION\n // ==================\n class Popover extends BaseComponent {\n constructor(target, config) {\n popoverDefaultOptions.container = getTipContainer(queryElement(target));\n super(popoverComponent, target, popoverDefaultOptions, config);\n\n // bind\n const self = this;\n\n // initialization element\n const element = self.element;\n // additional instance properties\n self.timer = null;\n self.popover = null;\n self.arrow = null;\n self.enabled = false;\n // set unique ID for aria-describedby\n self.id = `${popoverString}-${getUID(element)}`;\n\n // set instance options\n const options = self.options;\n\n // media elements only work with body as a container\n self.options.container = isMedia(element) ? popoverDefaultOptions.container : queryElement(options.container);\n\n // reset default container\n popoverDefaultOptions.container = null;\n\n // invalidate when no content is set\n if (!options.content) return;\n\n // crate popover\n createPopover(self);\n\n // bind\n self.update = self.update.bind(self);\n\n // attach event listeners\n togglePopoverHandlers(self, 1);\n }\n update(e) {\n styleTip(this, e);\n }\n\n // POPOVER PUBLIC METHODS\n // ======================\n toggle(e) {\n const self = e ? this[popoverComponent] : this;\n const popover = self.popover,\n options = self.options;\n if (!isVisibleTip(popover, options.container)) self.show();else self.hide();\n }\n show(e) {\n const self = e ? this[popoverComponent] : this;\n const element = self.element,\n popover = self.popover,\n options = self.options,\n id = self.id;\n const container = options.container;\n clearTimeout(self.timer);\n self.timer = setTimeout(() => {\n if (!isVisibleTip(popover, container)) {\n element.dispatchEvent(showPopoverEvent);\n if (showPopoverEvent.defaultPrevented) return;\n\n // append to the container\n container.appendChild(popover);\n element.setAttribute(ariaDescribedBy, id);\n self.update(e);\n if (!hasClass(popover, showClass)) addClass(popover, showClass);\n if (options.animation) emulateTransitionEnd(popover, () => popoverShowTrigger(self));else popoverShowTrigger(self);\n }\n }, 17);\n }\n hide(e) {\n let self;\n if (e && this[popoverComponent]) {\n self = this[popoverComponent];\n } else if (e) {\n // dismissible popover\n const dPopover = this.closest(`.${popoverString}`);\n const dEl = dPopover && queryElement(`[${ariaDescribedBy}=\"${dPopover.id}\"]`);\n self = dEl[popoverComponent];\n } else {\n self = this;\n }\n const _self = self,\n element = _self.element,\n popover = _self.popover,\n options = _self.options;\n clearTimeout(self.timer);\n self.timer = setTimeout(() => {\n if (isVisibleTip(popover, options.container)) {\n element.dispatchEvent(hidePopoverEvent);\n if (hidePopoverEvent.defaultPrevented) return;\n removeClass(popover, showClass);\n if (options.animation) emulateTransitionEnd(popover, () => popoverHideTrigger(self));else popoverHideTrigger(self);\n }\n }, options.delay + 17);\n }\n enable() {\n const self = this;\n const enabled = self.enabled;\n if (!enabled) {\n togglePopoverHandlers(self, 1);\n self.enabled = !enabled;\n }\n }\n disable() {\n const self = this;\n const enabled = self.enabled,\n popover = self.popover,\n options = self.options;\n if (enabled) {\n if (isVisibleTip(popover, options.container) && options.animation) {\n self.hide();\n setTimeout(() => togglePopoverHandlers(self), getElementTransitionDuration(popover) + options.delay + 17);\n } else {\n togglePopoverHandlers(self);\n }\n self.enabled = !enabled;\n }\n }\n toggleEnabled() {\n const self = this;\n if (!self.enabled) self.enable();else self.disable();\n }\n dispose() {\n const self = this;\n const popover = self.popover,\n options = self.options;\n const container = options.container,\n animation = options.animation;\n if (animation && isVisibleTip(popover, container)) {\n options.delay = 0; // reset delay\n self.hide();\n emulateTransitionEnd(popover, () => togglePopoverHandlers(self));\n } else {\n togglePopoverHandlers(self);\n }\n super.dispose(popoverComponent);\n }\n }\n Popover.init = {\n component: popoverComponent,\n selector: popoverSelector,\n constructor: Popover\n };\n\n /* Native JavaScript for Bootstrap 5 | ScrollSpy\n ------------------------------------------------ */\n\n // SCROLLSPY PRIVATE GC\n // ====================\n const scrollspyString = 'scrollspy';\n const scrollspyComponent = 'ScrollSpy';\n const scrollspySelector = '[data-bs-spy=\"scroll\"]';\n const scrollSpyDefaultOptions = {\n offset: 10,\n target: null\n };\n\n // SCROLLSPY CUSTOM EVENT\n // ======================\n const activateScrollSpy = bootstrapCustomEvent(`activate.bs.${scrollspyString}`);\n\n // SCROLLSPY PRIVATE METHODS\n // =========================\n function updateSpyTargets(self) {\n const target = self.target,\n scrollTarget = self.scrollTarget,\n isWindow = self.isWindow,\n options = self.options,\n itemsLength = self.itemsLength,\n scrollHeight = self.scrollHeight;\n const offset = options.offset;\n const links = target.getElementsByTagName('A');\n self.scrollTop = isWindow ? scrollTarget.pageYOffset : scrollTarget.scrollTop;\n\n // only update items/offsets once or with each mutation\n if (itemsLength !== links.length || getScrollHeight(scrollTarget) !== scrollHeight) {\n let href;\n let targetItem;\n let rect;\n\n // reset arrays & update\n self.items = [];\n self.offsets = [];\n self.scrollHeight = getScrollHeight(scrollTarget);\n self.maxScroll = self.scrollHeight - getOffsetHeight(self);\n Array.from(links).forEach(link => {\n href = link.getAttribute('href');\n targetItem = href && href.charAt(0) === '#' && href.slice(-1) !== '#' && queryElement(href);\n if (targetItem) {\n self.items.push(link);\n rect = targetItem.getBoundingClientRect();\n self.offsets.push((isWindow ? rect.top + self.scrollTop : targetItem.offsetTop) - offset);\n }\n });\n self.itemsLength = self.items.length;\n }\n }\n function getScrollHeight(scrollTarget) {\n return scrollTarget.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight);\n }\n function getOffsetHeight(_ref6) {\n let element = _ref6.element,\n isWindow = _ref6.isWindow;\n if (!isWindow) return element.getBoundingClientRect().height;\n return window.innerHeight;\n }\n function clear(target) {\n Array.from(target.getElementsByTagName('A')).forEach(item => {\n if (hasClass(item, activeClass)) removeClass(item, activeClass);\n });\n }\n function activate(self, item) {\n const target = self.target,\n element = self.element;\n clear(target);\n self.activeItem = item;\n addClass(item, activeClass);\n\n // activate all parents\n const parents = [];\n let parentItem = item;\n while (parentItem !== document.body) {\n parentItem = parentItem.parentNode;\n if (hasClass(parentItem, 'nav') || hasClass(parentItem, 'dropdown-menu')) parents.push(parentItem);\n }\n parents.forEach(menuItem => {\n const parentLink = menuItem.previousElementSibling;\n if (parentLink && !hasClass(parentLink, activeClass)) {\n addClass(parentLink, activeClass);\n }\n });\n\n // update relatedTarget and dispatch\n activateScrollSpy.relatedTarget = item;\n element.dispatchEvent(activateScrollSpy);\n }\n function toggleSpyHandlers(self, add) {\n const action = add ? addEventListener : removeEventListener;\n self.scrollTarget[action]('scroll', self.refresh, passiveHandler);\n }\n\n // SCROLLSPY DEFINITION\n // ====================\n class ScrollSpy extends BaseComponent {\n constructor(target, config) {\n super(scrollspyComponent, target, scrollSpyDefaultOptions, config);\n // bind\n const self = this;\n\n // initialization element & options\n const element = self.element,\n options = self.options;\n\n // additional properties\n self.target = queryElement(options.target);\n\n // invalidate\n if (!self.target) return;\n\n // set initial state\n self.scrollTarget = element.clientHeight < element.scrollHeight ? element : window;\n self.isWindow = self.scrollTarget === window;\n self.scrollTop = 0;\n self.maxScroll = 0;\n self.scrollHeight = 0;\n self.activeItem = null;\n self.items = [];\n self.offsets = [];\n\n // bind events\n self.refresh = self.refresh.bind(self);\n\n // add event handlers\n toggleSpyHandlers(self, 1);\n self.refresh();\n }\n\n // SCROLLSPY PUBLIC METHODS\n // ========================\n refresh() {\n const self = this;\n const target = self.target;\n\n // check if target is visible and invalidate\n if (target.offsetHeight === 0) return;\n updateSpyTargets(self);\n const scrollTop = self.scrollTop,\n maxScroll = self.maxScroll,\n itemsLength = self.itemsLength,\n items = self.items,\n activeItem = self.activeItem;\n if (scrollTop >= maxScroll) {\n const newActiveItem = items[itemsLength - 1];\n if (activeItem !== newActiveItem) {\n activate(self, newActiveItem);\n }\n return;\n }\n const offsets = self.offsets;\n if (activeItem && scrollTop < offsets[0] && offsets[0] > 0) {\n self.activeItem = null;\n clear(target);\n return;\n }\n items.forEach((item, i) => {\n if (activeItem !== item && scrollTop >= offsets[i] && (typeof offsets[i + 1] === 'undefined' || scrollTop < offsets[i + 1])) {\n activate(self, item);\n }\n });\n }\n dispose() {\n toggleSpyHandlers(this);\n super.dispose(scrollspyComponent);\n }\n }\n ScrollSpy.init = {\n component: scrollspyComponent,\n selector: scrollspySelector,\n constructor: ScrollSpy\n };\n const ariaSelected = 'aria-selected';\n\n /* Native JavaScript for Bootstrap 5 | Tab\n ------------------------------------------ */\n\n // TAB PRIVATE GC\n // ================\n const tabString = 'tab';\n const tabComponent = 'Tab';\n const tabSelector = `[${dataBsToggle}=\"${tabString}\"]`;\n\n // TAB CUSTOM EVENTS\n // =================\n const showTabEvent = bootstrapCustomEvent(`show.bs.${tabString}`);\n const shownTabEvent = bootstrapCustomEvent(`shown.bs.${tabString}`);\n const hideTabEvent = bootstrapCustomEvent(`hide.bs.${tabString}`);\n const hiddenTabEvent = bootstrapCustomEvent(`hidden.bs.${tabString}`);\n let nextTab;\n let nextTabContent;\n let nextTabHeight;\n let activeTab;\n let activeTabContent;\n let tabContainerHeight;\n let tabEqualContents;\n\n // TAB PRIVATE METHODS\n // ===================\n function triggerTabEnd(self) {\n const tabContent = self.tabContent,\n nav = self.nav;\n tabContent.style.height = '';\n removeClass(tabContent, collapsingClass);\n nav.isAnimating = false;\n }\n function triggerTabShow(self) {\n const tabContent = self.tabContent,\n nav = self.nav;\n if (tabContent) {\n // height animation\n if (tabEqualContents) {\n triggerTabEnd(self);\n } else {\n setTimeout(() => {\n // enables height animation\n tabContent.style.height = `${nextTabHeight}px`; // height animation\n reflow(tabContent);\n emulateTransitionEnd(tabContent, () => triggerTabEnd(self));\n }, 50);\n }\n } else {\n nav.isAnimating = false;\n }\n shownTabEvent.relatedTarget = activeTab;\n nextTab.dispatchEvent(shownTabEvent);\n }\n function triggerTabHide(self) {\n const tabContent = self.tabContent;\n if (tabContent) {\n activeTabContent.style.float = 'left';\n nextTabContent.style.float = 'left';\n tabContainerHeight = activeTabContent.scrollHeight;\n }\n\n // update relatedTarget and dispatch event\n showTabEvent.relatedTarget = activeTab;\n hiddenTabEvent.relatedTarget = nextTab;\n nextTab.dispatchEvent(showTabEvent);\n if (showTabEvent.defaultPrevented) return;\n addClass(nextTabContent, activeClass);\n removeClass(activeTabContent, activeClass);\n if (tabContent) {\n nextTabHeight = nextTabContent.scrollHeight;\n tabEqualContents = nextTabHeight === tabContainerHeight;\n addClass(tabContent, collapsingClass);\n tabContent.style.height = `${tabContainerHeight}px`; // height animation\n reflow(tabContent);\n activeTabContent.style.float = '';\n nextTabContent.style.float = '';\n }\n if (hasClass(nextTabContent, fadeClass)) {\n setTimeout(() => {\n addClass(nextTabContent, showClass);\n emulateTransitionEnd(nextTabContent, () => {\n triggerTabShow(self);\n });\n }, 20);\n } else {\n triggerTabShow(self);\n }\n activeTab.dispatchEvent(hiddenTabEvent);\n }\n function getActiveTab(_ref7) {\n let nav = _ref7.nav;\n const activeTabs = nav.getElementsByClassName(activeClass);\n if (activeTabs.length === 1 && !dropdownMenuClasses.some(c => hasClass(activeTabs[0].parentNode, c))) {\n var _activeTabs = _slicedToArray(activeTabs, 1);\n activeTab = _activeTabs[0];\n } else if (activeTabs.length > 1) {\n activeTab = activeTabs[activeTabs.length - 1];\n }\n return activeTab;\n }\n function getActiveTabContent(self) {\n return queryElement(getActiveTab(self).getAttribute('href'));\n }\n function toggleTabHandler(self, add) {\n const action = add ? addEventListener : removeEventListener;\n self.element[action]('click', tabClickHandler);\n }\n\n // TAB EVENT HANDLER\n // =================\n function tabClickHandler(e) {\n const self = this[tabComponent];\n e.preventDefault();\n if (!self.nav.isAnimating) self.show();\n }\n\n // TAB DEFINITION\n // ==============\n class Tab extends BaseComponent {\n constructor(target) {\n super(tabComponent, target);\n // bind\n const self = this;\n\n // initialization element\n const element = self.element;\n\n // event targets\n self.nav = element.closest('.nav');\n const nav = self.nav;\n self.dropdown = nav && queryElement(`.${dropdownMenuClasses[0]}-toggle`, nav);\n activeTabContent = getActiveTabContent(self);\n self.tabContent = supportTransition && activeTabContent.closest('.tab-content');\n tabContainerHeight = activeTabContent.scrollHeight;\n\n // set default animation state\n nav.isAnimating = false;\n\n // add event listener\n toggleTabHandler(self, 1);\n }\n\n // TAB PUBLIC METHODS\n // ==================\n show() {\n // the tab we clicked is now the nextTab tab\n const self = this;\n const element = self.element,\n nav = self.nav,\n dropdown = self.dropdown;\n nextTab = element;\n if (!hasClass(nextTab, activeClass)) {\n // this is the actual object, the nextTab tab content to activate\n nextTabContent = queryElement(nextTab.getAttribute('href'));\n activeTab = getActiveTab({\n nav\n });\n activeTabContent = getActiveTabContent({\n nav\n });\n\n // update relatedTarget and dispatch\n hideTabEvent.relatedTarget = nextTab;\n activeTab.dispatchEvent(hideTabEvent);\n if (hideTabEvent.defaultPrevented) return;\n nav.isAnimating = true;\n removeClass(activeTab, activeClass);\n activeTab.setAttribute(ariaSelected, 'false');\n addClass(nextTab, activeClass);\n nextTab.setAttribute(ariaSelected, 'true');\n if (dropdown) {\n if (!hasClass(element.parentNode, dropdownMenuClass)) {\n if (hasClass(dropdown, activeClass)) removeClass(dropdown, activeClass);\n } else if (!hasClass(dropdown, activeClass)) addClass(dropdown, activeClass);\n }\n if (hasClass(activeTabContent, fadeClass)) {\n removeClass(activeTabContent, showClass);\n emulateTransitionEnd(activeTabContent, () => triggerTabHide(self));\n } else {\n triggerTabHide(self);\n }\n }\n }\n dispose() {\n toggleTabHandler(this);\n super.dispose(tabComponent);\n }\n }\n Tab.init = {\n component: tabComponent,\n selector: tabSelector,\n constructor: Tab\n };\n\n /* Native JavaScript for Bootstrap 5 | Toast\n -------------------------------------------- */\n\n // TOAST PRIVATE GC\n // ================\n const toastString = 'toast';\n const toastComponent = 'Toast';\n const toastSelector = `.${toastString}`;\n const toastDismissSelector = `[${dataBsDismiss}=\"${toastString}\"]`;\n const showingClass = 'showing';\n const hideClass = 'hide';\n const toastDefaultOptions = {\n animation: true,\n autohide: true,\n delay: 500\n };\n\n // TOAST CUSTOM EVENTS\n // ===================\n const showToastEvent = bootstrapCustomEvent(`show.bs.${toastString}`);\n const hideToastEvent = bootstrapCustomEvent(`hide.bs.${toastString}`);\n const shownToastEvent = bootstrapCustomEvent(`shown.bs.${toastString}`);\n const hiddenToastEvent = bootstrapCustomEvent(`hidden.bs.${toastString}`);\n\n // TOAST PRIVATE METHODS\n // =====================\n function showToastComplete(self) {\n const element = self.element,\n options = self.options;\n if (!options.animation) {\n removeClass(element, showingClass);\n addClass(element, showClass);\n }\n element.dispatchEvent(shownToastEvent);\n if (options.autohide) self.hide();\n }\n function hideToastComplete(self) {\n const element = self.element;\n addClass(element, hideClass);\n element.dispatchEvent(hiddenToastEvent);\n }\n function closeToast(self) {\n const element = self.element,\n options = self.options;\n removeClass(element, showClass);\n if (options.animation) {\n reflow(element);\n emulateTransitionEnd(element, () => hideToastComplete(self));\n } else {\n hideToastComplete(self);\n }\n }\n function openToast(self) {\n const element = self.element,\n options = self.options;\n removeClass(element, hideClass);\n if (options.animation) {\n reflow(element);\n addClass(element, showingClass);\n addClass(element, showClass);\n emulateTransitionEnd(element, () => showToastComplete(self));\n } else {\n showToastComplete(self);\n }\n }\n function toggleToastHandler(self, add) {\n const action = add ? addEventListener : removeEventListener;\n if (self.dismiss) {\n self.dismiss[action]('click', self.hide);\n }\n }\n\n // TOAST EVENT HANDLERS\n // ====================\n function completeDisposeToast(self) {\n clearTimeout(self.timer);\n toggleToastHandler(self);\n }\n\n // TOAST DEFINITION\n // ================\n class Toast extends BaseComponent {\n constructor(target, config) {\n super(toastComponent, target, toastDefaultOptions, config);\n // bind\n const self = this;\n\n // dismiss button\n self.dismiss = queryElement(toastDismissSelector, self.element);\n\n // bind\n self.show = self.show.bind(self);\n self.hide = self.hide.bind(self);\n\n // add event listener\n toggleToastHandler(self, 1);\n }\n\n // TOAST PUBLIC METHODS\n // ====================\n show() {\n const self = this;\n const element = self.element;\n if (element && hasClass(element, hideClass)) {\n element.dispatchEvent(showToastEvent);\n if (showToastEvent.defaultPrevented) return;\n addClass(element, fadeClass);\n clearTimeout(self.timer);\n self.timer = setTimeout(() => openToast(self), 10);\n }\n }\n hide(noTimer) {\n const self = this;\n const element = self.element,\n options = self.options;\n if (element && hasClass(element, showClass)) {\n element.dispatchEvent(hideToastEvent);\n if (hideToastEvent.defaultPrevented) return;\n clearTimeout(self.timer);\n self.timer = setTimeout(closeToast(self), noTimer ? 10 : options.delay);\n }\n }\n dispose() {\n const self = this;\n const element = self.element,\n options = self.options;\n self.hide();\n if (options.animation) emulateTransitionEnd(element, () => completeDisposeToast(self));else completeDisposeToast(self);\n super.dispose(toastComponent);\n }\n }\n Toast.init = {\n component: toastComponent,\n selector: toastSelector,\n constructor: Toast\n };\n const dataOriginalTitle = 'data-original-title';\n\n /* Native JavaScript for Bootstrap 5 | Tooltip\n ---------------------------------------------- */\n\n // TOOLTIP PRIVATE GC\n // ==================\n const tooltipString = 'tooltip';\n const tooltipComponent = 'Tooltip';\n const tooltipSelector = `[${dataBsToggle}=\"${tooltipString}\"],[data-tip=\"${tooltipString}\"]`;\n const titleAttr = 'title';\n const tooltipInnerClass = `${tooltipString}-inner`;\n const tooltipDefaultOptions = {\n title: null,\n template: '
',\n placement: 'top',\n animation: true,\n customClass: null,\n delay: 200,\n sanitizeFn: null\n };\n\n // TOOLTIP CUSTOM EVENTS\n // =====================\n const showTooltipEvent = bootstrapCustomEvent(`show.bs.${tooltipString}`);\n const shownTooltipEvent = bootstrapCustomEvent(`shown.bs.${tooltipString}`);\n const hideTooltipEvent = bootstrapCustomEvent(`hide.bs.${tooltipString}`);\n const hiddenTooltipEvent = bootstrapCustomEvent(`hidden.bs.${tooltipString}`);\n\n // TOOLTIP PRIVATE METHODS\n // =======================\n function createTooltip(self) {\n const options = self.options,\n id = self.id;\n const placementClass = `bs-${tooltipString}-${tipClassPositions[options.placement]}`;\n let titleString = options.title.trim();\n\n // sanitize stuff\n if (options.sanitizeFn) {\n titleString = options.sanitizeFn(titleString);\n options.template = options.sanitizeFn(options.template);\n }\n if (!titleString) return;\n\n // create tooltip\n self.tooltip = document.createElement('div');\n const tooltip = self.tooltip;\n\n // set aria\n tooltip.setAttribute('id', id);\n\n // set markup\n const tooltipMarkup = document.createElement('div');\n tooltipMarkup.innerHTML = options.template.trim();\n tooltip.className = tooltipMarkup.firstChild.className;\n tooltip.innerHTML = tooltipMarkup.firstChild.innerHTML;\n queryElement(`.${tooltipInnerClass}`, tooltip).innerHTML = titleString;\n\n // set arrow\n self.arrow = queryElement(`.${tooltipString}-arrow`, tooltip);\n\n // set class and role attribute\n tooltip.setAttribute('role', tooltipString);\n // set classes\n if (!hasClass(tooltip, tooltipString)) addClass(tooltip, tooltipString);\n if (options.animation && !hasClass(tooltip, fadeClass)) addClass(tooltip, fadeClass);\n if (options.customClass && !hasClass(tooltip, options.customClass)) {\n addClass(tooltip, options.customClass);\n }\n if (!hasClass(tooltip, placementClass)) addClass(tooltip, placementClass);\n }\n function removeTooltip(self) {\n const element = self.element,\n options = self.options,\n tooltip = self.tooltip;\n element.removeAttribute(ariaDescribedBy);\n options.container.removeChild(tooltip);\n self.timer = null;\n }\n function disposeTooltipComplete(self) {\n const element = self.element;\n toggleTooltipHandlers(self);\n if (element.hasAttribute(dataOriginalTitle)) toggleTooltipTitle(self);\n }\n function toggleTooltipAction(self, add) {\n const action = add ? addEventListener : removeEventListener;\n document[action]('touchstart', tooltipTouchHandler, passiveHandler);\n if (!isMedia(self.element)) {\n window[action]('scroll', self.update, passiveHandler);\n window[action]('resize', self.update, passiveHandler);\n }\n }\n function tooltipShownAction(self) {\n toggleTooltipAction(self, 1);\n self.element.dispatchEvent(shownTooltipEvent);\n }\n function tooltipHiddenAction(self) {\n toggleTooltipAction(self);\n removeTooltip(self);\n self.element.dispatchEvent(hiddenTooltipEvent);\n }\n function toggleTooltipHandlers(self, add) {\n const action = add ? addEventListener : removeEventListener;\n const element = self.element;\n if (isMedia(element)) element[action]('mousemove', self.update, passiveHandler);\n element[action]('mousedown', self.show);\n element[action]('mouseenter', self.show);\n element[action]('mouseleave', self.hide);\n }\n function toggleTooltipTitle(self, content) {\n // [0 - add, 1 - remove] | [0 - remove, 1 - add]\n const titleAtt = [dataOriginalTitle, titleAttr];\n const element = self.element;\n element.setAttribute(titleAtt[content ? 0 : 1], content || element.getAttribute(titleAtt[0]));\n element.removeAttribute(titleAtt[content ? 1 : 0]);\n }\n\n // TOOLTIP EVENT HANDLERS\n // ======================\n function tooltipTouchHandler(_ref8) {\n let target = _ref8.target;\n const tooltip = this.tooltip,\n element = this.element;\n if (tooltip.contains(target) || target === element || element.contains(target)) ;else {\n this.hide();\n }\n }\n\n // TOOLTIP DEFINITION\n // ==================\n class Tooltip extends BaseComponent {\n constructor(target, config) {\n // initialization element\n const element = queryElement(target);\n tooltipDefaultOptions.title = element.getAttribute(titleAttr);\n tooltipDefaultOptions.container = getTipContainer(element);\n super(tooltipComponent, element, tooltipDefaultOptions, config);\n\n // bind\n const self = this;\n\n // additional properties\n self.tooltip = null;\n self.arrow = null;\n self.timer = null;\n self.enabled = false;\n\n // instance options\n const options = self.options;\n\n // media elements only work with body as a container\n self.options.container = isMedia(element) ? tooltipDefaultOptions.container : queryElement(options.container);\n\n // reset default options\n tooltipDefaultOptions.container = null;\n tooltipDefaultOptions[titleAttr] = null;\n\n // invalidate\n if (!options.title) return;\n\n // all functions bind\n tooltipTouchHandler.bind(self);\n self.update = self.update.bind(self);\n\n // set title attributes and add event listeners\n if (element.hasAttribute(titleAttr)) toggleTooltipTitle(self, options.title);\n\n // create tooltip here\n self.id = `${tooltipString}-${getUID(element)}`;\n createTooltip(self);\n\n // attach events\n toggleTooltipHandlers(self, 1);\n }\n\n // TOOLTIP PUBLIC METHODS\n // ======================\n show(e) {\n const self = e ? this[tooltipComponent] : this;\n const options = self.options,\n tooltip = self.tooltip,\n element = self.element,\n id = self.id;\n clearTimeout(self.timer);\n self.timer = setTimeout(() => {\n if (!isVisibleTip(tooltip, options.container)) {\n element.dispatchEvent(showTooltipEvent);\n if (showTooltipEvent.defaultPrevented) return;\n\n // append to container\n options.container.appendChild(tooltip);\n element.setAttribute(ariaDescribedBy, id);\n self.update(e);\n if (!hasClass(tooltip, showClass)) addClass(tooltip, showClass);\n if (options.animation) emulateTransitionEnd(tooltip, () => tooltipShownAction(self));else tooltipShownAction(self);\n }\n }, 20);\n }\n hide(e) {\n const self = e ? this[tooltipComponent] : this;\n const options = self.options,\n tooltip = self.tooltip,\n element = self.element;\n clearTimeout(self.timer);\n self.timer = setTimeout(() => {\n if (isVisibleTip(tooltip, options.container)) {\n element.dispatchEvent(hideTooltipEvent);\n if (hideTooltipEvent.defaultPrevented) return;\n removeClass(tooltip, showClass);\n if (options.animation) emulateTransitionEnd(tooltip, () => tooltipHiddenAction(self));else tooltipHiddenAction(self);\n }\n }, options.delay);\n }\n update(e) {\n styleTip(this, e);\n }\n toggle() {\n const self = this;\n const tooltip = self.tooltip,\n options = self.options;\n if (!isVisibleTip(tooltip, options.container)) self.show();else self.hide();\n }\n enable() {\n const self = this;\n const enabled = self.enabled;\n if (!enabled) {\n toggleTooltipHandlers(self, 1);\n self.enabled = !enabled;\n }\n }\n disable() {\n const self = this;\n const tooltip = self.tooltip,\n options = self.options,\n enabled = self.enabled;\n if (enabled) {\n if (!isVisibleTip(tooltip, options.container) && options.animation) {\n self.hide();\n setTimeout(() => toggleTooltipHandlers(self), getElementTransitionDuration(tooltip) + options.delay + 17);\n } else {\n toggleTooltipHandlers(self);\n }\n self.enabled = !enabled;\n }\n }\n toggleEnabled() {\n const self = this;\n if (!self.enabled) self.enable();else self.disable();\n }\n dispose() {\n const self = this;\n const tooltip = self.tooltip,\n options = self.options;\n if (options.animation && isVisibleTip(tooltip, options.container)) {\n options.delay = 0; // reset delay\n self.hide();\n emulateTransitionEnd(tooltip, () => disposeTooltipComplete(self));\n } else {\n disposeTooltipComplete(self);\n }\n super.dispose(tooltipComponent);\n }\n }\n Tooltip.init = {\n component: tooltipComponent,\n selector: tooltipSelector,\n constructor: Tooltip\n };\n var version = \"3.0.15\";\n\n // import { alertInit } from '../components/alert-native.js';\n // import { buttonInit } from '../components/button-native.js';\n // import { carouselInit } from '../components/carousel-native.js';\n // import { collapseInit } from '../components/collapse-native.js';\n // import { dropdownInit } from '../components/dropdown-native.js';\n // import { modalInit } from '../components/modal-native.js';\n // import { offcanvasInit } from '../components/offcanvas-native.js';\n // import { popoverInit } from '../components/popover-native.js';\n // import { scrollSpyInit } from '../components/scrollspy-native.js';\n // import { tabInit } from '../components/tab-native.js';\n // import { toastInit } from '../components/toast-native.js';\n // import { tooltipInit } from '../components/tooltip-native.js';\n\n const componentsInit = {\n Alert: Alert.init,\n Button: Button.init,\n Carousel: Carousel.init,\n Collapse: Collapse.init,\n Dropdown: Dropdown.init,\n Modal: Modal.init,\n Offcanvas: Offcanvas.init,\n Popover: Popover.init,\n ScrollSpy: ScrollSpy.init,\n Tab: Tab.init,\n Toast: Toast.init,\n Tooltip: Tooltip.init\n };\n function initializeDataAPI(Konstructor, collection) {\n Array.from(collection).forEach(x => new Konstructor(x));\n }\n function initCallback(context) {\n const lookUp = context instanceof Element ? context : document;\n Object.keys(componentsInit).forEach(comp => {\n const _componentsInit$comp = componentsInit[comp],\n constructor = _componentsInit$comp.constructor,\n selector = _componentsInit$comp.selector;\n initializeDataAPI(constructor, lookUp.querySelectorAll(selector));\n });\n }\n\n // bulk initialize all components\n if (document.body) initCallback();else {\n document.addEventListener('DOMContentLoaded', () => initCallback(), {\n once: true\n });\n }\n var index = {\n Alert,\n Button,\n Carousel,\n Collapse,\n Dropdown,\n Modal,\n Offcanvas,\n Popover,\n ScrollSpy,\n Tab,\n Toast,\n Tooltip,\n initCallback,\n Version: version\n };\n return index;\n});","var g;\n\n// This works in non-strict mode\ng = function () {\n return this;\n}();\ntry {\n // This works if eval is allowed (see CSP)\n g = g || new Function(\"return this\")();\n} catch (e) {\n // This works if the window reference is available\n if (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;","module.exports = __webpack_public_path__ + \"media/images/baslow1-bb35671f457e973af817327966fa48df.jpg\";","module.exports = __webpack_public_path__ + \"media/images/baslow2-6173549d71a93d0c0bfb0a0099343fce.jpg\";","module.exports = __webpack_public_path__ + \"media/images/baslow3-177bdb12c9663cf6ba49640207796361.jpg\";","module.exports = __webpack_public_path__ + \"media/images/baslow4-9aa63cbf1ace8c6cb779bd91a3d42f77.jpg\";","module.exports = __webpack_public_path__ + \"media/images/logo-ed55ba93532b3f2c3f5c254e3229328c.png\";","module.exports = __webpack_public_path__ + \"media/images/menu-3f3678abf9272ea36e200fcf477f78ea.png\";","module.exports = __webpack_public_path__ + \"media/images/waymarker-bc3a3267ee2ddd082ac4bd3817afaf32.png\";","// This file is automatically compiled by Webpack, along with any other files\n// present in this directory. You're encouraged to place your actual application logic in\n// a relevant structure within app/javascript and only use these pack files to reference\n// that code so it'll be compiled.\n\nrequire(\"@rails/ujs\").start()\nrequire(\"turbolinks\").start()\nrequire(\"@rails/activestorage\").start()\nrequire(\"trix\")\nrequire(\"@rails/actiontext\")\nrequire(\"channels\")\nrequire(\"bootstrap\")\nrequire(\"controllers\")\n\nrequire(\"images\")\nrequire(\"styles\")\n","/*\nUnobtrusive JavaScript\nhttps://github.com/rails/rails/blob/main/actionview/app/assets/javascripts\nReleased under the MIT license\n */;\n(function () {\n var context = this;\n (function () {\n (function () {\n this.Rails = {\n linkClickSelector: 'a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]',\n buttonClickSelector: {\n selector: 'button[data-remote]:not([form]), button[data-confirm]:not([form])',\n exclude: 'form button'\n },\n inputChangeSelector: 'select[data-remote], input[data-remote], textarea[data-remote]',\n formSubmitSelector: 'form:not([data-turbo=true])',\n formInputClickSelector: 'form:not([data-turbo=true]) input[type=submit], form:not([data-turbo=true]) input[type=image], form:not([data-turbo=true]) button[type=submit], form:not([data-turbo=true]) button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])',\n formDisableSelector: 'input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled',\n formEnableSelector: 'input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled',\n fileInputSelector: 'input[name][type=file]:not([disabled])',\n linkDisableSelector: 'a[data-disable-with], a[data-disable]',\n buttonDisableSelector: 'button[data-remote][data-disable-with], button[data-remote][data-disable]'\n };\n }).call(this);\n }).call(context);\n var Rails = context.Rails;\n (function () {\n (function () {\n var nonce;\n nonce = null;\n Rails.loadCSPNonce = function () {\n var ref;\n return nonce = (ref = document.querySelector(\"meta[name=csp-nonce]\")) != null ? ref.content : void 0;\n };\n Rails.cspNonce = function () {\n return nonce != null ? nonce : Rails.loadCSPNonce();\n };\n }).call(this);\n (function () {\n var expando, m;\n m = Element.prototype.matches || Element.prototype.matchesSelector || Element.prototype.mozMatchesSelector || Element.prototype.msMatchesSelector || Element.prototype.oMatchesSelector || Element.prototype.webkitMatchesSelector;\n Rails.matches = function (element, selector) {\n if (selector.exclude != null) {\n return m.call(element, selector.selector) && !m.call(element, selector.exclude);\n } else {\n return m.call(element, selector);\n }\n };\n expando = '_ujsData';\n Rails.getData = function (element, key) {\n var ref;\n return (ref = element[expando]) != null ? ref[key] : void 0;\n };\n Rails.setData = function (element, key, value) {\n if (element[expando] == null) {\n element[expando] = {};\n }\n return element[expando][key] = value;\n };\n Rails.isContentEditable = function (element) {\n var isEditable;\n isEditable = false;\n while (true) {\n if (element.isContentEditable) {\n isEditable = true;\n break;\n }\n element = element.parentElement;\n if (!element) {\n break;\n }\n }\n return isEditable;\n };\n Rails.$ = function (selector) {\n return Array.prototype.slice.call(document.querySelectorAll(selector));\n };\n }).call(this);\n (function () {\n var $, csrfParam, csrfToken;\n $ = Rails.$;\n csrfToken = Rails.csrfToken = function () {\n var meta;\n meta = document.querySelector('meta[name=csrf-token]');\n return meta && meta.content;\n };\n csrfParam = Rails.csrfParam = function () {\n var meta;\n meta = document.querySelector('meta[name=csrf-param]');\n return meta && meta.content;\n };\n Rails.CSRFProtection = function (xhr) {\n var token;\n token = csrfToken();\n if (token != null) {\n return xhr.setRequestHeader('X-CSRF-Token', token);\n }\n };\n Rails.refreshCSRFTokens = function () {\n var param, token;\n token = csrfToken();\n param = csrfParam();\n if (token != null && param != null) {\n return $('form input[name=\"' + param + '\"]').forEach(function (input) {\n return input.value = token;\n });\n }\n };\n }).call(this);\n (function () {\n var CustomEvent, fire, matches, preventDefault;\n matches = Rails.matches;\n CustomEvent = window.CustomEvent;\n if (typeof CustomEvent !== 'function') {\n CustomEvent = function (event, params) {\n var evt;\n evt = document.createEvent('CustomEvent');\n evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);\n return evt;\n };\n CustomEvent.prototype = window.Event.prototype;\n preventDefault = CustomEvent.prototype.preventDefault;\n CustomEvent.prototype.preventDefault = function () {\n var result;\n result = preventDefault.call(this);\n if (this.cancelable && !this.defaultPrevented) {\n Object.defineProperty(this, 'defaultPrevented', {\n get: function () {\n return true;\n }\n });\n }\n return result;\n };\n }\n fire = Rails.fire = function (obj, name, data) {\n var event;\n event = new CustomEvent(name, {\n bubbles: true,\n cancelable: true,\n detail: data\n });\n obj.dispatchEvent(event);\n return !event.defaultPrevented;\n };\n Rails.stopEverything = function (e) {\n fire(e.target, 'ujs:everythingStopped');\n e.preventDefault();\n e.stopPropagation();\n return e.stopImmediatePropagation();\n };\n Rails.delegate = function (element, selector, eventType, handler) {\n return element.addEventListener(eventType, function (e) {\n var target;\n target = e.target;\n while (!(!(target instanceof Element) || matches(target, selector))) {\n target = target.parentNode;\n }\n if (target instanceof Element && handler.call(target, e) === false) {\n e.preventDefault();\n return e.stopPropagation();\n }\n });\n };\n }).call(this);\n (function () {\n var AcceptHeaders, CSRFProtection, createXHR, cspNonce, fire, prepareOptions, processResponse;\n cspNonce = Rails.cspNonce, CSRFProtection = Rails.CSRFProtection, fire = Rails.fire;\n AcceptHeaders = {\n '*': '*/*',\n text: 'text/plain',\n html: 'text/html',\n xml: 'application/xml, text/xml',\n json: 'application/json, text/javascript',\n script: 'text/javascript, application/javascript, application/ecmascript, application/x-ecmascript'\n };\n Rails.ajax = function (options) {\n var xhr;\n options = prepareOptions(options);\n xhr = createXHR(options, function () {\n var ref, response;\n response = processResponse((ref = xhr.response) != null ? ref : xhr.responseText, xhr.getResponseHeader('Content-Type'));\n if (Math.floor(xhr.status / 100) === 2) {\n if (typeof options.success === \"function\") {\n options.success(response, xhr.statusText, xhr);\n }\n } else {\n if (typeof options.error === \"function\") {\n options.error(response, xhr.statusText, xhr);\n }\n }\n return typeof options.complete === \"function\" ? options.complete(xhr, xhr.statusText) : void 0;\n });\n if (options.beforeSend != null && !options.beforeSend(xhr, options)) {\n return false;\n }\n if (xhr.readyState === XMLHttpRequest.OPENED) {\n return xhr.send(options.data);\n }\n };\n prepareOptions = function (options) {\n options.url = options.url || location.href;\n options.type = options.type.toUpperCase();\n if (options.type === 'GET' && options.data) {\n if (options.url.indexOf('?') < 0) {\n options.url += '?' + options.data;\n } else {\n options.url += '&' + options.data;\n }\n }\n if (AcceptHeaders[options.dataType] == null) {\n options.dataType = '*';\n }\n options.accept = AcceptHeaders[options.dataType];\n if (options.dataType !== '*') {\n options.accept += ', */*; q=0.01';\n }\n return options;\n };\n createXHR = function (options, done) {\n var xhr;\n xhr = new XMLHttpRequest();\n xhr.open(options.type, options.url, true);\n xhr.setRequestHeader('Accept', options.accept);\n if (typeof options.data === 'string') {\n xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');\n }\n if (!options.crossDomain) {\n xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');\n CSRFProtection(xhr);\n }\n xhr.withCredentials = !!options.withCredentials;\n xhr.onreadystatechange = function () {\n if (xhr.readyState === XMLHttpRequest.DONE) {\n return done(xhr);\n }\n };\n return xhr;\n };\n processResponse = function (response, type) {\n var parser, script;\n if (typeof response === 'string' && typeof type === 'string') {\n if (type.match(/\\bjson\\b/)) {\n try {\n response = JSON.parse(response);\n } catch (error) {}\n } else if (type.match(/\\b(?:java|ecma)script\\b/)) {\n script = document.createElement('script');\n script.setAttribute('nonce', cspNonce());\n script.text = response;\n document.head.appendChild(script).parentNode.removeChild(script);\n } else if (type.match(/\\b(xml|html|svg)\\b/)) {\n parser = new DOMParser();\n type = type.replace(/;.+/, '');\n try {\n response = parser.parseFromString(response, type);\n } catch (error) {}\n }\n }\n return response;\n };\n Rails.href = function (element) {\n return element.href;\n };\n Rails.isCrossDomain = function (url) {\n var e, originAnchor, urlAnchor;\n originAnchor = document.createElement('a');\n originAnchor.href = location.href;\n urlAnchor = document.createElement('a');\n try {\n urlAnchor.href = url;\n return !((!urlAnchor.protocol || urlAnchor.protocol === ':') && !urlAnchor.host || originAnchor.protocol + '//' + originAnchor.host === urlAnchor.protocol + '//' + urlAnchor.host);\n } catch (error) {\n e = error;\n return true;\n }\n };\n }).call(this);\n (function () {\n var matches, toArray;\n matches = Rails.matches;\n toArray = function (e) {\n return Array.prototype.slice.call(e);\n };\n Rails.serializeElement = function (element, additionalParam) {\n var inputs, params;\n inputs = [element];\n if (matches(element, 'form')) {\n inputs = toArray(element.elements);\n }\n params = [];\n inputs.forEach(function (input) {\n if (!input.name || input.disabled) {\n return;\n }\n if (matches(input, 'fieldset[disabled] *')) {\n return;\n }\n if (matches(input, 'select')) {\n return toArray(input.options).forEach(function (option) {\n if (option.selected) {\n return params.push({\n name: input.name,\n value: option.value\n });\n }\n });\n } else if (input.checked || ['radio', 'checkbox', 'submit'].indexOf(input.type) === -1) {\n return params.push({\n name: input.name,\n value: input.value\n });\n }\n });\n if (additionalParam) {\n params.push(additionalParam);\n }\n return params.map(function (param) {\n if (param.name != null) {\n return encodeURIComponent(param.name) + \"=\" + encodeURIComponent(param.value);\n } else {\n return param;\n }\n }).join('&');\n };\n Rails.formElements = function (form, selector) {\n if (matches(form, 'form')) {\n return toArray(form.elements).filter(function (el) {\n return matches(el, selector);\n });\n } else {\n return toArray(form.querySelectorAll(selector));\n }\n };\n }).call(this);\n (function () {\n var allowAction, fire, stopEverything;\n fire = Rails.fire, stopEverything = Rails.stopEverything;\n Rails.handleConfirm = function (e) {\n if (!allowAction(this)) {\n return stopEverything(e);\n }\n };\n Rails.confirm = function (message, element) {\n return confirm(message);\n };\n allowAction = function (element) {\n var answer, callback, message;\n message = element.getAttribute('data-confirm');\n if (!message) {\n return true;\n }\n answer = false;\n if (fire(element, 'confirm')) {\n try {\n answer = Rails.confirm(message, element);\n } catch (error) {}\n callback = fire(element, 'confirm:complete', [answer]);\n }\n return answer && callback;\n };\n }).call(this);\n (function () {\n var disableFormElement, disableFormElements, disableLinkElement, enableFormElement, enableFormElements, enableLinkElement, formElements, getData, isContentEditable, isXhrRedirect, matches, setData, stopEverything;\n matches = Rails.matches, getData = Rails.getData, setData = Rails.setData, stopEverything = Rails.stopEverything, formElements = Rails.formElements, isContentEditable = Rails.isContentEditable;\n Rails.handleDisabledElement = function (e) {\n var element;\n element = this;\n if (element.disabled) {\n return stopEverything(e);\n }\n };\n Rails.enableElement = function (e) {\n var element;\n if (e instanceof Event) {\n if (isXhrRedirect(e)) {\n return;\n }\n element = e.target;\n } else {\n element = e;\n }\n if (isContentEditable(element)) {\n return;\n }\n if (matches(element, Rails.linkDisableSelector)) {\n return enableLinkElement(element);\n } else if (matches(element, Rails.buttonDisableSelector) || matches(element, Rails.formEnableSelector)) {\n return enableFormElement(element);\n } else if (matches(element, Rails.formSubmitSelector)) {\n return enableFormElements(element);\n }\n };\n Rails.disableElement = function (e) {\n var element;\n element = e instanceof Event ? e.target : e;\n if (isContentEditable(element)) {\n return;\n }\n if (matches(element, Rails.linkDisableSelector)) {\n return disableLinkElement(element);\n } else if (matches(element, Rails.buttonDisableSelector) || matches(element, Rails.formDisableSelector)) {\n return disableFormElement(element);\n } else if (matches(element, Rails.formSubmitSelector)) {\n return disableFormElements(element);\n }\n };\n disableLinkElement = function (element) {\n var replacement;\n if (getData(element, 'ujs:disabled')) {\n return;\n }\n replacement = element.getAttribute('data-disable-with');\n if (replacement != null) {\n setData(element, 'ujs:enable-with', element.innerHTML);\n element.innerHTML = replacement;\n }\n element.addEventListener('click', stopEverything);\n return setData(element, 'ujs:disabled', true);\n };\n enableLinkElement = function (element) {\n var originalText;\n originalText = getData(element, 'ujs:enable-with');\n if (originalText != null) {\n element.innerHTML = originalText;\n setData(element, 'ujs:enable-with', null);\n }\n element.removeEventListener('click', stopEverything);\n return setData(element, 'ujs:disabled', null);\n };\n disableFormElements = function (form) {\n return formElements(form, Rails.formDisableSelector).forEach(disableFormElement);\n };\n disableFormElement = function (element) {\n var replacement;\n if (getData(element, 'ujs:disabled')) {\n return;\n }\n replacement = element.getAttribute('data-disable-with');\n if (replacement != null) {\n if (matches(element, 'button')) {\n setData(element, 'ujs:enable-with', element.innerHTML);\n element.innerHTML = replacement;\n } else {\n setData(element, 'ujs:enable-with', element.value);\n element.value = replacement;\n }\n }\n element.disabled = true;\n return setData(element, 'ujs:disabled', true);\n };\n enableFormElements = function (form) {\n return formElements(form, Rails.formEnableSelector).forEach(enableFormElement);\n };\n enableFormElement = function (element) {\n var originalText;\n originalText = getData(element, 'ujs:enable-with');\n if (originalText != null) {\n if (matches(element, 'button')) {\n element.innerHTML = originalText;\n } else {\n element.value = originalText;\n }\n setData(element, 'ujs:enable-with', null);\n }\n element.disabled = false;\n return setData(element, 'ujs:disabled', null);\n };\n isXhrRedirect = function (event) {\n var ref, xhr;\n xhr = (ref = event.detail) != null ? ref[0] : void 0;\n return (xhr != null ? xhr.getResponseHeader(\"X-Xhr-Redirect\") : void 0) != null;\n };\n }).call(this);\n (function () {\n var isContentEditable, stopEverything;\n stopEverything = Rails.stopEverything;\n isContentEditable = Rails.isContentEditable;\n Rails.handleMethod = function (e) {\n var csrfParam, csrfToken, form, formContent, href, link, method;\n link = this;\n method = link.getAttribute('data-method');\n if (!method) {\n return;\n }\n if (isContentEditable(this)) {\n return;\n }\n href = Rails.href(link);\n csrfToken = Rails.csrfToken();\n csrfParam = Rails.csrfParam();\n form = document.createElement('form');\n formContent = \"\";\n if (csrfParam != null && csrfToken != null && !Rails.isCrossDomain(href)) {\n formContent += \"\";\n }\n formContent += '';\n form.method = 'post';\n form.action = href;\n form.target = link.target;\n form.innerHTML = formContent;\n form.style.display = 'none';\n document.body.appendChild(form);\n form.querySelector('[type=\"submit\"]').click();\n return stopEverything(e);\n };\n }).call(this);\n (function () {\n var ajax,\n fire,\n getData,\n isContentEditable,\n isCrossDomain,\n isRemote,\n matches,\n serializeElement,\n setData,\n stopEverything,\n slice = [].slice;\n matches = Rails.matches, getData = Rails.getData, setData = Rails.setData, fire = Rails.fire, stopEverything = Rails.stopEverything, ajax = Rails.ajax, isCrossDomain = Rails.isCrossDomain, serializeElement = Rails.serializeElement, isContentEditable = Rails.isContentEditable;\n isRemote = function (element) {\n var value;\n value = element.getAttribute('data-remote');\n return value != null && value !== 'false';\n };\n Rails.handleRemote = function (e) {\n var button, data, dataType, element, method, url, withCredentials;\n element = this;\n if (!isRemote(element)) {\n return true;\n }\n if (!fire(element, 'ajax:before')) {\n fire(element, 'ajax:stopped');\n return false;\n }\n if (isContentEditable(element)) {\n fire(element, 'ajax:stopped');\n return false;\n }\n withCredentials = element.getAttribute('data-with-credentials');\n dataType = element.getAttribute('data-type') || 'script';\n if (matches(element, Rails.formSubmitSelector)) {\n button = getData(element, 'ujs:submit-button');\n method = getData(element, 'ujs:submit-button-formmethod') || element.method;\n url = getData(element, 'ujs:submit-button-formaction') || element.getAttribute('action') || location.href;\n if (method.toUpperCase() === 'GET') {\n url = url.replace(/\\?.*$/, '');\n }\n if (element.enctype === 'multipart/form-data') {\n data = new FormData(element);\n if (button != null) {\n data.append(button.name, button.value);\n }\n } else {\n data = serializeElement(element, button);\n }\n setData(element, 'ujs:submit-button', null);\n setData(element, 'ujs:submit-button-formmethod', null);\n setData(element, 'ujs:submit-button-formaction', null);\n } else if (matches(element, Rails.buttonClickSelector) || matches(element, Rails.inputChangeSelector)) {\n method = element.getAttribute('data-method');\n url = element.getAttribute('data-url');\n data = serializeElement(element, element.getAttribute('data-params'));\n } else {\n method = element.getAttribute('data-method');\n url = Rails.href(element);\n data = element.getAttribute('data-params');\n }\n ajax({\n type: method || 'GET',\n url: url,\n data: data,\n dataType: dataType,\n beforeSend: function (xhr, options) {\n if (fire(element, 'ajax:beforeSend', [xhr, options])) {\n return fire(element, 'ajax:send', [xhr]);\n } else {\n fire(element, 'ajax:stopped');\n return false;\n }\n },\n success: function () {\n var args;\n args = 1 <= arguments.length ? slice.call(arguments, 0) : [];\n return fire(element, 'ajax:success', args);\n },\n error: function () {\n var args;\n args = 1 <= arguments.length ? slice.call(arguments, 0) : [];\n return fire(element, 'ajax:error', args);\n },\n complete: function () {\n var args;\n args = 1 <= arguments.length ? slice.call(arguments, 0) : [];\n return fire(element, 'ajax:complete', args);\n },\n crossDomain: isCrossDomain(url),\n withCredentials: withCredentials != null && withCredentials !== 'false'\n });\n return stopEverything(e);\n };\n Rails.formSubmitButtonClick = function (e) {\n var button, form;\n button = this;\n form = button.form;\n if (!form) {\n return;\n }\n if (button.name) {\n setData(form, 'ujs:submit-button', {\n name: button.name,\n value: button.value\n });\n }\n setData(form, 'ujs:formnovalidate-button', button.formNoValidate);\n setData(form, 'ujs:submit-button-formaction', button.getAttribute('formaction'));\n return setData(form, 'ujs:submit-button-formmethod', button.getAttribute('formmethod'));\n };\n Rails.preventInsignificantClick = function (e) {\n var data, insignificantMetaClick, link, metaClick, method, nonPrimaryMouseClick;\n link = this;\n method = (link.getAttribute('data-method') || 'GET').toUpperCase();\n data = link.getAttribute('data-params');\n metaClick = e.metaKey || e.ctrlKey;\n insignificantMetaClick = metaClick && method === 'GET' && !data;\n nonPrimaryMouseClick = e.button != null && e.button !== 0;\n if (nonPrimaryMouseClick || insignificantMetaClick) {\n return e.stopImmediatePropagation();\n }\n };\n }).call(this);\n (function () {\n var $, CSRFProtection, delegate, disableElement, enableElement, fire, formSubmitButtonClick, getData, handleConfirm, handleDisabledElement, handleMethod, handleRemote, loadCSPNonce, preventInsignificantClick, refreshCSRFTokens;\n fire = Rails.fire, delegate = Rails.delegate, getData = Rails.getData, $ = Rails.$, refreshCSRFTokens = Rails.refreshCSRFTokens, CSRFProtection = Rails.CSRFProtection, loadCSPNonce = Rails.loadCSPNonce, enableElement = Rails.enableElement, disableElement = Rails.disableElement, handleDisabledElement = Rails.handleDisabledElement, handleConfirm = Rails.handleConfirm, preventInsignificantClick = Rails.preventInsignificantClick, handleRemote = Rails.handleRemote, formSubmitButtonClick = Rails.formSubmitButtonClick, handleMethod = Rails.handleMethod;\n if (typeof jQuery !== \"undefined\" && jQuery !== null && jQuery.ajax != null) {\n if (jQuery.rails) {\n throw new Error('If you load both jquery_ujs and rails-ujs, use rails-ujs only.');\n }\n jQuery.rails = Rails;\n jQuery.ajaxPrefilter(function (options, originalOptions, xhr) {\n if (!options.crossDomain) {\n return CSRFProtection(xhr);\n }\n });\n }\n Rails.start = function () {\n if (window._rails_loaded) {\n throw new Error('rails-ujs has already been loaded!');\n }\n window.addEventListener('pageshow', function () {\n $(Rails.formEnableSelector).forEach(function (el) {\n if (getData(el, 'ujs:disabled')) {\n return enableElement(el);\n }\n });\n return $(Rails.linkDisableSelector).forEach(function (el) {\n if (getData(el, 'ujs:disabled')) {\n return enableElement(el);\n }\n });\n });\n delegate(document, Rails.linkDisableSelector, 'ajax:complete', enableElement);\n delegate(document, Rails.linkDisableSelector, 'ajax:stopped', enableElement);\n delegate(document, Rails.buttonDisableSelector, 'ajax:complete', enableElement);\n delegate(document, Rails.buttonDisableSelector, 'ajax:stopped', enableElement);\n delegate(document, Rails.linkClickSelector, 'click', preventInsignificantClick);\n delegate(document, Rails.linkClickSelector, 'click', handleDisabledElement);\n delegate(document, Rails.linkClickSelector, 'click', handleConfirm);\n delegate(document, Rails.linkClickSelector, 'click', disableElement);\n delegate(document, Rails.linkClickSelector, 'click', handleRemote);\n delegate(document, Rails.linkClickSelector, 'click', handleMethod);\n delegate(document, Rails.buttonClickSelector, 'click', preventInsignificantClick);\n delegate(document, Rails.buttonClickSelector, 'click', handleDisabledElement);\n delegate(document, Rails.buttonClickSelector, 'click', handleConfirm);\n delegate(document, Rails.buttonClickSelector, 'click', disableElement);\n delegate(document, Rails.buttonClickSelector, 'click', handleRemote);\n delegate(document, Rails.inputChangeSelector, 'change', handleDisabledElement);\n delegate(document, Rails.inputChangeSelector, 'change', handleConfirm);\n delegate(document, Rails.inputChangeSelector, 'change', handleRemote);\n delegate(document, Rails.formSubmitSelector, 'submit', handleDisabledElement);\n delegate(document, Rails.formSubmitSelector, 'submit', handleConfirm);\n delegate(document, Rails.formSubmitSelector, 'submit', handleRemote);\n delegate(document, Rails.formSubmitSelector, 'submit', function (e) {\n return setTimeout(function () {\n return disableElement(e);\n }, 13);\n });\n delegate(document, Rails.formSubmitSelector, 'ajax:send', disableElement);\n delegate(document, Rails.formSubmitSelector, 'ajax:complete', enableElement);\n delegate(document, Rails.formInputClickSelector, 'click', preventInsignificantClick);\n delegate(document, Rails.formInputClickSelector, 'click', handleDisabledElement);\n delegate(document, Rails.formInputClickSelector, 'click', handleConfirm);\n delegate(document, Rails.formInputClickSelector, 'click', formSubmitButtonClick);\n document.addEventListener('DOMContentLoaded', refreshCSRFTokens);\n document.addEventListener('DOMContentLoaded', loadCSPNonce);\n return window._rails_loaded = true;\n };\n if (window.Rails === Rails && fire(document, 'rails:attachBindings')) {\n Rails.start();\n }\n }).call(this);\n }).call(this);\n if (typeof module === \"object\" && module.exports) {\n module.exports = Rails;\n } else if (typeof define === \"function\" && define.amd) {\n define(Rails);\n }\n}).call(this);","/*\nTurbolinks 5.2.0\nCopyright © 2018 Basecamp, LLC\n */\n(function () {\n var t = this;\n (function () {\n (function () {\n this.Turbolinks = {\n supported: function () {\n return null != window.history.pushState && null != window.requestAnimationFrame && null != window.addEventListener;\n }(),\n visit: function (t, r) {\n return e.controller.visit(t, r);\n },\n clearCache: function () {\n return e.controller.clearCache();\n },\n setProgressBarDelay: function (t) {\n return e.controller.setProgressBarDelay(t);\n }\n };\n }).call(this);\n }).call(t);\n var e = t.Turbolinks;\n (function () {\n (function () {\n var t,\n r,\n n,\n o = [].slice;\n e.copyObject = function (t) {\n var e, r, n;\n r = {};\n for (e in t) n = t[e], r[e] = n;\n return r;\n }, e.closest = function (e, r) {\n return t.call(e, r);\n }, t = function () {\n var t, e;\n return t = document.documentElement, null != (e = t.closest) ? e : function (t) {\n var e;\n for (e = this; e;) {\n if (e.nodeType === Node.ELEMENT_NODE && r.call(e, t)) return e;\n e = e.parentNode;\n }\n };\n }(), e.defer = function (t) {\n return setTimeout(t, 1);\n }, e.throttle = function (t) {\n var e;\n return e = null, function () {\n var r;\n return r = 1 <= arguments.length ? o.call(arguments, 0) : [], null != e ? e : e = requestAnimationFrame(function (n) {\n return function () {\n return e = null, t.apply(n, r);\n };\n }(this));\n };\n }, e.dispatch = function (t, e) {\n var r, o, i, s, a, u;\n return a = null != e ? e : {}, u = a.target, r = a.cancelable, o = a.data, i = document.createEvent(\"Events\"), i.initEvent(t, !0, r === !0), i.data = null != o ? o : {}, i.cancelable && !n && (s = i.preventDefault, i.preventDefault = function () {\n return this.defaultPrevented || Object.defineProperty(this, \"defaultPrevented\", {\n get: function () {\n return !0;\n }\n }), s.call(this);\n }), (null != u ? u : document).dispatchEvent(i), i;\n }, n = function () {\n var t;\n return t = document.createEvent(\"Events\"), t.initEvent(\"test\", !0, !0), t.preventDefault(), t.defaultPrevented;\n }(), e.match = function (t, e) {\n return r.call(t, e);\n }, r = function () {\n var t, e, r, n;\n return t = document.documentElement, null != (e = null != (r = null != (n = t.matchesSelector) ? n : t.webkitMatchesSelector) ? r : t.msMatchesSelector) ? e : t.mozMatchesSelector;\n }(), e.uuid = function () {\n var t, e, r;\n for (r = \"\", t = e = 1; 36 >= e; t = ++e) r += 9 === t || 14 === t || 19 === t || 24 === t ? \"-\" : 15 === t ? \"4\" : 20 === t ? (Math.floor(4 * Math.random()) + 8).toString(16) : Math.floor(15 * Math.random()).toString(16);\n return r;\n };\n }).call(this), function () {\n e.Location = function () {\n function t(t) {\n var e, r;\n null == t && (t = \"\"), r = document.createElement(\"a\"), r.href = t.toString(), this.absoluteURL = r.href, e = r.hash.length, 2 > e ? this.requestURL = this.absoluteURL : (this.requestURL = this.absoluteURL.slice(0, -e), this.anchor = r.hash.slice(1));\n }\n var e, r, n, o;\n return t.wrap = function (t) {\n return t instanceof this ? t : new this(t);\n }, t.prototype.getOrigin = function () {\n return this.absoluteURL.split(\"/\", 3).join(\"/\");\n }, t.prototype.getPath = function () {\n var t, e;\n return null != (t = null != (e = this.requestURL.match(/\\/\\/[^\\/]*(\\/[^?;]*)/)) ? e[1] : void 0) ? t : \"/\";\n }, t.prototype.getPathComponents = function () {\n return this.getPath().split(\"/\").slice(1);\n }, t.prototype.getLastPathComponent = function () {\n return this.getPathComponents().slice(-1)[0];\n }, t.prototype.getExtension = function () {\n var t, e;\n return null != (t = null != (e = this.getLastPathComponent().match(/\\.[^.]*$/)) ? e[0] : void 0) ? t : \"\";\n }, t.prototype.isHTML = function () {\n return this.getExtension().match(/^(?:|\\.(?:htm|html|xhtml))$/);\n }, t.prototype.isPrefixedBy = function (t) {\n var e;\n return e = r(t), this.isEqualTo(t) || o(this.absoluteURL, e);\n }, t.prototype.isEqualTo = function (t) {\n return this.absoluteURL === (null != t ? t.absoluteURL : void 0);\n }, t.prototype.toCacheKey = function () {\n return this.requestURL;\n }, t.prototype.toJSON = function () {\n return this.absoluteURL;\n }, t.prototype.toString = function () {\n return this.absoluteURL;\n }, t.prototype.valueOf = function () {\n return this.absoluteURL;\n }, r = function (t) {\n return e(t.getOrigin() + t.getPath());\n }, e = function (t) {\n return n(t, \"/\") ? t : t + \"/\";\n }, o = function (t, e) {\n return t.slice(0, e.length) === e;\n }, n = function (t, e) {\n return t.slice(-e.length) === e;\n }, t;\n }();\n }.call(this), function () {\n var t = function (t, e) {\n return function () {\n return t.apply(e, arguments);\n };\n };\n e.HttpRequest = function () {\n function r(r, n, o) {\n this.delegate = r, this.requestCanceled = t(this.requestCanceled, this), this.requestTimedOut = t(this.requestTimedOut, this), this.requestFailed = t(this.requestFailed, this), this.requestLoaded = t(this.requestLoaded, this), this.requestProgressed = t(this.requestProgressed, this), this.url = e.Location.wrap(n).requestURL, this.referrer = e.Location.wrap(o).absoluteURL, this.createXHR();\n }\n return r.NETWORK_FAILURE = 0, r.TIMEOUT_FAILURE = -1, r.timeout = 60, r.prototype.send = function () {\n var t;\n return this.xhr && !this.sent ? (this.notifyApplicationBeforeRequestStart(), this.setProgress(0), this.xhr.send(), this.sent = !0, \"function\" == typeof (t = this.delegate).requestStarted ? t.requestStarted() : void 0) : void 0;\n }, r.prototype.cancel = function () {\n return this.xhr && this.sent ? this.xhr.abort() : void 0;\n }, r.prototype.requestProgressed = function (t) {\n return t.lengthComputable ? this.setProgress(t.loaded / t.total) : void 0;\n }, r.prototype.requestLoaded = function () {\n return this.endRequest(function (t) {\n return function () {\n var e;\n return 200 <= (e = t.xhr.status) && 300 > e ? t.delegate.requestCompletedWithResponse(t.xhr.responseText, t.xhr.getResponseHeader(\"Turbolinks-Location\")) : (t.failed = !0, t.delegate.requestFailedWithStatusCode(t.xhr.status, t.xhr.responseText));\n };\n }(this));\n }, r.prototype.requestFailed = function () {\n return this.endRequest(function (t) {\n return function () {\n return t.failed = !0, t.delegate.requestFailedWithStatusCode(t.constructor.NETWORK_FAILURE);\n };\n }(this));\n }, r.prototype.requestTimedOut = function () {\n return this.endRequest(function (t) {\n return function () {\n return t.failed = !0, t.delegate.requestFailedWithStatusCode(t.constructor.TIMEOUT_FAILURE);\n };\n }(this));\n }, r.prototype.requestCanceled = function () {\n return this.endRequest();\n }, r.prototype.notifyApplicationBeforeRequestStart = function () {\n return e.dispatch(\"turbolinks:request-start\", {\n data: {\n url: this.url,\n xhr: this.xhr\n }\n });\n }, r.prototype.notifyApplicationAfterRequestEnd = function () {\n return e.dispatch(\"turbolinks:request-end\", {\n data: {\n url: this.url,\n xhr: this.xhr\n }\n });\n }, r.prototype.createXHR = function () {\n return this.xhr = new XMLHttpRequest(), this.xhr.open(\"GET\", this.url, !0), this.xhr.timeout = 1e3 * this.constructor.timeout, this.xhr.setRequestHeader(\"Accept\", \"text/html, application/xhtml+xml\"), this.xhr.setRequestHeader(\"Turbolinks-Referrer\", this.referrer), this.xhr.onprogress = this.requestProgressed, this.xhr.onload = this.requestLoaded, this.xhr.onerror = this.requestFailed, this.xhr.ontimeout = this.requestTimedOut, this.xhr.onabort = this.requestCanceled;\n }, r.prototype.endRequest = function (t) {\n return this.xhr ? (this.notifyApplicationAfterRequestEnd(), null != t && t.call(this), this.destroy()) : void 0;\n }, r.prototype.setProgress = function (t) {\n var e;\n return this.progress = t, \"function\" == typeof (e = this.delegate).requestProgressed ? e.requestProgressed(this.progress) : void 0;\n }, r.prototype.destroy = function () {\n var t;\n return this.setProgress(1), \"function\" == typeof (t = this.delegate).requestFinished && t.requestFinished(), this.delegate = null, this.xhr = null;\n }, r;\n }();\n }.call(this), function () {\n var t = function (t, e) {\n return function () {\n return t.apply(e, arguments);\n };\n };\n e.ProgressBar = function () {\n function e() {\n this.trickle = t(this.trickle, this), this.stylesheetElement = this.createStylesheetElement(), this.progressElement = this.createProgressElement();\n }\n var r;\n return r = 300, e.defaultCSS = \".turbolinks-progress-bar {\\n position: fixed;\\n display: block;\\n top: 0;\\n left: 0;\\n height: 3px;\\n background: #0076ff;\\n z-index: 9999;\\n transition: width \" + r + \"ms ease-out, opacity \" + r / 2 + \"ms \" + r / 2 + \"ms ease-in;\\n transform: translate3d(0, 0, 0);\\n}\", e.prototype.show = function () {\n return this.visible ? void 0 : (this.visible = !0, this.installStylesheetElement(), this.installProgressElement(), this.startTrickling());\n }, e.prototype.hide = function () {\n return this.visible && !this.hiding ? (this.hiding = !0, this.fadeProgressElement(function (t) {\n return function () {\n return t.uninstallProgressElement(), t.stopTrickling(), t.visible = !1, t.hiding = !1;\n };\n }(this))) : void 0;\n }, e.prototype.setValue = function (t) {\n return this.value = t, this.refresh();\n }, e.prototype.installStylesheetElement = function () {\n return document.head.insertBefore(this.stylesheetElement, document.head.firstChild);\n }, e.prototype.installProgressElement = function () {\n return this.progressElement.style.width = 0, this.progressElement.style.opacity = 1, document.documentElement.insertBefore(this.progressElement, document.body), this.refresh();\n }, e.prototype.fadeProgressElement = function (t) {\n return this.progressElement.style.opacity = 0, setTimeout(t, 1.5 * r);\n }, e.prototype.uninstallProgressElement = function () {\n return this.progressElement.parentNode ? document.documentElement.removeChild(this.progressElement) : void 0;\n }, e.prototype.startTrickling = function () {\n return null != this.trickleInterval ? this.trickleInterval : this.trickleInterval = setInterval(this.trickle, r);\n }, e.prototype.stopTrickling = function () {\n return clearInterval(this.trickleInterval), this.trickleInterval = null;\n }, e.prototype.trickle = function () {\n return this.setValue(this.value + Math.random() / 100);\n }, e.prototype.refresh = function () {\n return requestAnimationFrame(function (t) {\n return function () {\n return t.progressElement.style.width = 10 + 90 * t.value + \"%\";\n };\n }(this));\n }, e.prototype.createStylesheetElement = function () {\n var t;\n return t = document.createElement(\"style\"), t.type = \"text/css\", t.textContent = this.constructor.defaultCSS, t;\n }, e.prototype.createProgressElement = function () {\n var t;\n return t = document.createElement(\"div\"), t.className = \"turbolinks-progress-bar\", t;\n }, e;\n }();\n }.call(this), function () {\n var t = function (t, e) {\n return function () {\n return t.apply(e, arguments);\n };\n };\n e.BrowserAdapter = function () {\n function r(r) {\n this.controller = r, this.showProgressBar = t(this.showProgressBar, this), this.progressBar = new e.ProgressBar();\n }\n var n, o, i;\n return i = e.HttpRequest, n = i.NETWORK_FAILURE, o = i.TIMEOUT_FAILURE, r.prototype.visitProposedToLocationWithAction = function (t, e) {\n return this.controller.startVisitToLocationWithAction(t, e);\n }, r.prototype.visitStarted = function (t) {\n return t.issueRequest(), t.changeHistory(), t.loadCachedSnapshot();\n }, r.prototype.visitRequestStarted = function (t) {\n return this.progressBar.setValue(0), t.hasCachedSnapshot() || \"restore\" !== t.action ? this.showProgressBarAfterDelay() : this.showProgressBar();\n }, r.prototype.visitRequestProgressed = function (t) {\n return this.progressBar.setValue(t.progress);\n }, r.prototype.visitRequestCompleted = function (t) {\n return t.loadResponse();\n }, r.prototype.visitRequestFailedWithStatusCode = function (t, e) {\n switch (e) {\n case n:\n case o:\n return this.reload();\n default:\n return t.loadResponse();\n }\n }, r.prototype.visitRequestFinished = function (t) {\n return this.hideProgressBar();\n }, r.prototype.visitCompleted = function (t) {\n return t.followRedirect();\n }, r.prototype.pageInvalidated = function () {\n return this.reload();\n }, r.prototype.showProgressBarAfterDelay = function () {\n return this.progressBarTimeout = setTimeout(this.showProgressBar, this.controller.progressBarDelay);\n }, r.prototype.showProgressBar = function () {\n return this.progressBar.show();\n }, r.prototype.hideProgressBar = function () {\n return this.progressBar.hide(), clearTimeout(this.progressBarTimeout);\n }, r.prototype.reload = function () {\n return window.location.reload();\n }, r;\n }();\n }.call(this), function () {\n var t = function (t, e) {\n return function () {\n return t.apply(e, arguments);\n };\n };\n e.History = function () {\n function r(e) {\n this.delegate = e, this.onPageLoad = t(this.onPageLoad, this), this.onPopState = t(this.onPopState, this);\n }\n return r.prototype.start = function () {\n return this.started ? void 0 : (addEventListener(\"popstate\", this.onPopState, !1), addEventListener(\"load\", this.onPageLoad, !1), this.started = !0);\n }, r.prototype.stop = function () {\n return this.started ? (removeEventListener(\"popstate\", this.onPopState, !1), removeEventListener(\"load\", this.onPageLoad, !1), this.started = !1) : void 0;\n }, r.prototype.push = function (t, r) {\n return t = e.Location.wrap(t), this.update(\"push\", t, r);\n }, r.prototype.replace = function (t, r) {\n return t = e.Location.wrap(t), this.update(\"replace\", t, r);\n }, r.prototype.onPopState = function (t) {\n var r, n, o, i;\n return this.shouldHandlePopState() && (i = null != (n = t.state) ? n.turbolinks : void 0) ? (r = e.Location.wrap(window.location), o = i.restorationIdentifier, this.delegate.historyPoppedToLocationWithRestorationIdentifier(r, o)) : void 0;\n }, r.prototype.onPageLoad = function (t) {\n return e.defer(function (t) {\n return function () {\n return t.pageLoaded = !0;\n };\n }(this));\n }, r.prototype.shouldHandlePopState = function () {\n return this.pageIsLoaded();\n }, r.prototype.pageIsLoaded = function () {\n return this.pageLoaded || \"complete\" === document.readyState;\n }, r.prototype.update = function (t, e, r) {\n var n;\n return n = {\n turbolinks: {\n restorationIdentifier: r\n }\n }, history[t + \"State\"](n, null, e);\n }, r;\n }();\n }.call(this), function () {\n e.HeadDetails = function () {\n function t(t) {\n var e, r, n, s, a, u;\n for (this.elements = {}, n = 0, a = t.length; a > n; n++) u = t[n], u.nodeType === Node.ELEMENT_NODE && (s = u.outerHTML, r = null != (e = this.elements)[s] ? e[s] : e[s] = {\n type: i(u),\n tracked: o(u),\n elements: []\n }, r.elements.push(u));\n }\n var e, r, n, o, i;\n return t.fromHeadElement = function (t) {\n var e;\n return new this(null != (e = null != t ? t.childNodes : void 0) ? e : []);\n }, t.prototype.hasElementWithKey = function (t) {\n return t in this.elements;\n }, t.prototype.getTrackedElementSignature = function () {\n var t, e;\n return function () {\n var r, n;\n r = this.elements, n = [];\n for (t in r) e = r[t].tracked, e && n.push(t);\n return n;\n }.call(this).join(\"\");\n }, t.prototype.getScriptElementsNotInDetails = function (t) {\n return this.getElementsMatchingTypeNotInDetails(\"script\", t);\n }, t.prototype.getStylesheetElementsNotInDetails = function (t) {\n return this.getElementsMatchingTypeNotInDetails(\"stylesheet\", t);\n }, t.prototype.getElementsMatchingTypeNotInDetails = function (t, e) {\n var r, n, o, i, s, a;\n o = this.elements, s = [];\n for (n in o) i = o[n], a = i.type, r = i.elements, a !== t || e.hasElementWithKey(n) || s.push(r[0]);\n return s;\n }, t.prototype.getProvisionalElements = function () {\n var t, e, r, n, o, i, s;\n r = [], n = this.elements;\n for (e in n) o = n[e], s = o.type, i = o.tracked, t = o.elements, null != s || i ? t.length > 1 && r.push.apply(r, t.slice(1)) : r.push.apply(r, t);\n return r;\n }, t.prototype.getMetaValue = function (t) {\n var e;\n return null != (e = this.findMetaElementByName(t)) ? e.getAttribute(\"content\") : void 0;\n }, t.prototype.findMetaElementByName = function (t) {\n var r, n, o, i;\n r = void 0, i = this.elements;\n for (o in i) n = i[o].elements, e(n[0], t) && (r = n[0]);\n return r;\n }, i = function (t) {\n return r(t) ? \"script\" : n(t) ? \"stylesheet\" : void 0;\n }, o = function (t) {\n return \"reload\" === t.getAttribute(\"data-turbolinks-track\");\n }, r = function (t) {\n var e;\n return e = t.tagName.toLowerCase(), \"script\" === e;\n }, n = function (t) {\n var e;\n return e = t.tagName.toLowerCase(), \"style\" === e || \"link\" === e && \"stylesheet\" === t.getAttribute(\"rel\");\n }, e = function (t, e) {\n var r;\n return r = t.tagName.toLowerCase(), \"meta\" === r && t.getAttribute(\"name\") === e;\n }, t;\n }();\n }.call(this), function () {\n e.Snapshot = function () {\n function t(t, e) {\n this.headDetails = t, this.bodyElement = e;\n }\n return t.wrap = function (t) {\n return t instanceof this ? t : \"string\" == typeof t ? this.fromHTMLString(t) : this.fromHTMLElement(t);\n }, t.fromHTMLString = function (t) {\n var e;\n return e = document.createElement(\"html\"), e.innerHTML = t, this.fromHTMLElement(e);\n }, t.fromHTMLElement = function (t) {\n var r, n, o, i;\n return o = t.querySelector(\"head\"), r = null != (i = t.querySelector(\"body\")) ? i : document.createElement(\"body\"), n = e.HeadDetails.fromHeadElement(o), new this(n, r);\n }, t.prototype.clone = function () {\n return new this.constructor(this.headDetails, this.bodyElement.cloneNode(!0));\n }, t.prototype.getRootLocation = function () {\n var t, r;\n return r = null != (t = this.getSetting(\"root\")) ? t : \"/\", new e.Location(r);\n }, t.prototype.getCacheControlValue = function () {\n return this.getSetting(\"cache-control\");\n }, t.prototype.getElementForAnchor = function (t) {\n try {\n return this.bodyElement.querySelector(\"[id='\" + t + \"'], a[name='\" + t + \"']\");\n } catch (e) {}\n }, t.prototype.getPermanentElements = function () {\n return this.bodyElement.querySelectorAll(\"[id][data-turbolinks-permanent]\");\n }, t.prototype.getPermanentElementById = function (t) {\n return this.bodyElement.querySelector(\"#\" + t + \"[data-turbolinks-permanent]\");\n }, t.prototype.getPermanentElementsPresentInSnapshot = function (t) {\n var e, r, n, o, i;\n for (o = this.getPermanentElements(), i = [], r = 0, n = o.length; n > r; r++) e = o[r], t.getPermanentElementById(e.id) && i.push(e);\n return i;\n }, t.prototype.findFirstAutofocusableElement = function () {\n return this.bodyElement.querySelector(\"[autofocus]\");\n }, t.prototype.hasAnchor = function (t) {\n return null != this.getElementForAnchor(t);\n }, t.prototype.isPreviewable = function () {\n return \"no-preview\" !== this.getCacheControlValue();\n }, t.prototype.isCacheable = function () {\n return \"no-cache\" !== this.getCacheControlValue();\n }, t.prototype.isVisitable = function () {\n return \"reload\" !== this.getSetting(\"visit-control\");\n }, t.prototype.getSetting = function (t) {\n return this.headDetails.getMetaValue(\"turbolinks-\" + t);\n }, t;\n }();\n }.call(this), function () {\n var t = [].slice;\n e.Renderer = function () {\n function e() {}\n var r;\n return e.render = function () {\n var e, r, n, o;\n return n = arguments[0], r = arguments[1], e = 3 <= arguments.length ? t.call(arguments, 2) : [], o = function (t, e, r) {\n r.prototype = t.prototype;\n var n = new r(),\n o = t.apply(n, e);\n return Object(o) === o ? o : n;\n }(this, e, function () {}), o.delegate = n, o.render(r), o;\n }, e.prototype.renderView = function (t) {\n return this.delegate.viewWillRender(this.newBody), t(), this.delegate.viewRendered(this.newBody);\n }, e.prototype.invalidateView = function () {\n return this.delegate.viewInvalidated();\n }, e.prototype.createScriptElement = function (t) {\n var e;\n return \"false\" === t.getAttribute(\"data-turbolinks-eval\") ? t : (e = document.createElement(\"script\"), e.textContent = t.textContent, e.async = !1, r(e, t), e);\n }, r = function (t, e) {\n var r, n, o, i, s, a, u;\n for (i = e.attributes, a = [], r = 0, n = i.length; n > r; r++) s = i[r], o = s.name, u = s.value, a.push(t.setAttribute(o, u));\n return a;\n }, e;\n }();\n }.call(this), function () {\n var t,\n r,\n n = function (t, e) {\n function r() {\n this.constructor = t;\n }\n for (var n in e) o.call(e, n) && (t[n] = e[n]);\n return r.prototype = e.prototype, t.prototype = new r(), t.__super__ = e.prototype, t;\n },\n o = {}.hasOwnProperty;\n e.SnapshotRenderer = function (e) {\n function o(t, e, r) {\n this.currentSnapshot = t, this.newSnapshot = e, this.isPreview = r, this.currentHeadDetails = this.currentSnapshot.headDetails, this.newHeadDetails = this.newSnapshot.headDetails, this.currentBody = this.currentSnapshot.bodyElement, this.newBody = this.newSnapshot.bodyElement;\n }\n return n(o, e), o.prototype.render = function (t) {\n return this.shouldRender() ? (this.mergeHead(), this.renderView(function (e) {\n return function () {\n return e.replaceBody(), e.isPreview || e.focusFirstAutofocusableElement(), t();\n };\n }(this))) : this.invalidateView();\n }, o.prototype.mergeHead = function () {\n return this.copyNewHeadStylesheetElements(), this.copyNewHeadScriptElements(), this.removeCurrentHeadProvisionalElements(), this.copyNewHeadProvisionalElements();\n }, o.prototype.replaceBody = function () {\n var t;\n return t = this.relocateCurrentBodyPermanentElements(), this.activateNewBodyScriptElements(), this.assignNewBody(), this.replacePlaceholderElementsWithClonedPermanentElements(t);\n }, o.prototype.shouldRender = function () {\n return this.newSnapshot.isVisitable() && this.trackedElementsAreIdentical();\n }, o.prototype.trackedElementsAreIdentical = function () {\n return this.currentHeadDetails.getTrackedElementSignature() === this.newHeadDetails.getTrackedElementSignature();\n }, o.prototype.copyNewHeadStylesheetElements = function () {\n var t, e, r, n, o;\n for (n = this.getNewHeadStylesheetElements(), o = [], e = 0, r = n.length; r > e; e++) t = n[e], o.push(document.head.appendChild(t));\n return o;\n }, o.prototype.copyNewHeadScriptElements = function () {\n var t, e, r, n, o;\n for (n = this.getNewHeadScriptElements(), o = [], e = 0, r = n.length; r > e; e++) t = n[e], o.push(document.head.appendChild(this.createScriptElement(t)));\n return o;\n }, o.prototype.removeCurrentHeadProvisionalElements = function () {\n var t, e, r, n, o;\n for (n = this.getCurrentHeadProvisionalElements(), o = [], e = 0, r = n.length; r > e; e++) t = n[e], o.push(document.head.removeChild(t));\n return o;\n }, o.prototype.copyNewHeadProvisionalElements = function () {\n var t, e, r, n, o;\n for (n = this.getNewHeadProvisionalElements(), o = [], e = 0, r = n.length; r > e; e++) t = n[e], o.push(document.head.appendChild(t));\n return o;\n }, o.prototype.relocateCurrentBodyPermanentElements = function () {\n var e, n, o, i, s, a, u;\n for (a = this.getCurrentBodyPermanentElements(), u = [], e = 0, n = a.length; n > e; e++) i = a[e], s = t(i), o = this.newSnapshot.getPermanentElementById(i.id), r(i, s.element), r(o, i), u.push(s);\n return u;\n }, o.prototype.replacePlaceholderElementsWithClonedPermanentElements = function (t) {\n var e, n, o, i, s, a, u;\n for (u = [], o = 0, i = t.length; i > o; o++) a = t[o], n = a.element, s = a.permanentElement, e = s.cloneNode(!0), u.push(r(n, e));\n return u;\n }, o.prototype.activateNewBodyScriptElements = function () {\n var t, e, n, o, i, s;\n for (i = this.getNewBodyScriptElements(), s = [], e = 0, o = i.length; o > e; e++) n = i[e], t = this.createScriptElement(n), s.push(r(n, t));\n return s;\n }, o.prototype.assignNewBody = function () {\n return document.body = this.newBody;\n }, o.prototype.focusFirstAutofocusableElement = function () {\n var t;\n return null != (t = this.newSnapshot.findFirstAutofocusableElement()) ? t.focus() : void 0;\n }, o.prototype.getNewHeadStylesheetElements = function () {\n return this.newHeadDetails.getStylesheetElementsNotInDetails(this.currentHeadDetails);\n }, o.prototype.getNewHeadScriptElements = function () {\n return this.newHeadDetails.getScriptElementsNotInDetails(this.currentHeadDetails);\n }, o.prototype.getCurrentHeadProvisionalElements = function () {\n return this.currentHeadDetails.getProvisionalElements();\n }, o.prototype.getNewHeadProvisionalElements = function () {\n return this.newHeadDetails.getProvisionalElements();\n }, o.prototype.getCurrentBodyPermanentElements = function () {\n return this.currentSnapshot.getPermanentElementsPresentInSnapshot(this.newSnapshot);\n }, o.prototype.getNewBodyScriptElements = function () {\n return this.newBody.querySelectorAll(\"script\");\n }, o;\n }(e.Renderer), t = function (t) {\n var e;\n return e = document.createElement(\"meta\"), e.setAttribute(\"name\", \"turbolinks-permanent-placeholder\"), e.setAttribute(\"content\", t.id), {\n element: e,\n permanentElement: t\n };\n }, r = function (t, e) {\n var r;\n return (r = t.parentNode) ? r.replaceChild(e, t) : void 0;\n };\n }.call(this), function () {\n var t = function (t, e) {\n function n() {\n this.constructor = t;\n }\n for (var o in e) r.call(e, o) && (t[o] = e[o]);\n return n.prototype = e.prototype, t.prototype = new n(), t.__super__ = e.prototype, t;\n },\n r = {}.hasOwnProperty;\n e.ErrorRenderer = function (e) {\n function r(t) {\n var e;\n e = document.createElement(\"html\"), e.innerHTML = t, this.newHead = e.querySelector(\"head\"), this.newBody = e.querySelector(\"body\");\n }\n return t(r, e), r.prototype.render = function (t) {\n return this.renderView(function (e) {\n return function () {\n return e.replaceHeadAndBody(), e.activateBodyScriptElements(), t();\n };\n }(this));\n }, r.prototype.replaceHeadAndBody = function () {\n var t, e;\n return e = document.head, t = document.body, e.parentNode.replaceChild(this.newHead, e), t.parentNode.replaceChild(this.newBody, t);\n }, r.prototype.activateBodyScriptElements = function () {\n var t, e, r, n, o, i;\n for (n = this.getScriptElements(), i = [], e = 0, r = n.length; r > e; e++) o = n[e], t = this.createScriptElement(o), i.push(o.parentNode.replaceChild(t, o));\n return i;\n }, r.prototype.getScriptElements = function () {\n return document.documentElement.querySelectorAll(\"script\");\n }, r;\n }(e.Renderer);\n }.call(this), function () {\n e.View = function () {\n function t(t) {\n this.delegate = t, this.htmlElement = document.documentElement;\n }\n return t.prototype.getRootLocation = function () {\n return this.getSnapshot().getRootLocation();\n }, t.prototype.getElementForAnchor = function (t) {\n return this.getSnapshot().getElementForAnchor(t);\n }, t.prototype.getSnapshot = function () {\n return e.Snapshot.fromHTMLElement(this.htmlElement);\n }, t.prototype.render = function (t, e) {\n var r, n, o;\n return o = t.snapshot, r = t.error, n = t.isPreview, this.markAsPreview(n), null != o ? this.renderSnapshot(o, n, e) : this.renderError(r, e);\n }, t.prototype.markAsPreview = function (t) {\n return t ? this.htmlElement.setAttribute(\"data-turbolinks-preview\", \"\") : this.htmlElement.removeAttribute(\"data-turbolinks-preview\");\n }, t.prototype.renderSnapshot = function (t, r, n) {\n return e.SnapshotRenderer.render(this.delegate, n, this.getSnapshot(), e.Snapshot.wrap(t), r);\n }, t.prototype.renderError = function (t, r) {\n return e.ErrorRenderer.render(this.delegate, r, t);\n }, t;\n }();\n }.call(this), function () {\n var t = function (t, e) {\n return function () {\n return t.apply(e, arguments);\n };\n };\n e.ScrollManager = function () {\n function r(r) {\n this.delegate = r, this.onScroll = t(this.onScroll, this), this.onScroll = e.throttle(this.onScroll);\n }\n return r.prototype.start = function () {\n return this.started ? void 0 : (addEventListener(\"scroll\", this.onScroll, !1), this.onScroll(), this.started = !0);\n }, r.prototype.stop = function () {\n return this.started ? (removeEventListener(\"scroll\", this.onScroll, !1), this.started = !1) : void 0;\n }, r.prototype.scrollToElement = function (t) {\n return t.scrollIntoView();\n }, r.prototype.scrollToPosition = function (t) {\n var e, r;\n return e = t.x, r = t.y, window.scrollTo(e, r);\n }, r.prototype.onScroll = function (t) {\n return this.updatePosition({\n x: window.pageXOffset,\n y: window.pageYOffset\n });\n }, r.prototype.updatePosition = function (t) {\n var e;\n return this.position = t, null != (e = this.delegate) ? e.scrollPositionChanged(this.position) : void 0;\n }, r;\n }();\n }.call(this), function () {\n e.SnapshotCache = function () {\n function t(t) {\n this.size = t, this.keys = [], this.snapshots = {};\n }\n var r;\n return t.prototype.has = function (t) {\n var e;\n return e = r(t), e in this.snapshots;\n }, t.prototype.get = function (t) {\n var e;\n if (this.has(t)) return e = this.read(t), this.touch(t), e;\n }, t.prototype.put = function (t, e) {\n return this.write(t, e), this.touch(t), e;\n }, t.prototype.read = function (t) {\n var e;\n return e = r(t), this.snapshots[e];\n }, t.prototype.write = function (t, e) {\n var n;\n return n = r(t), this.snapshots[n] = e;\n }, t.prototype.touch = function (t) {\n var e, n;\n return n = r(t), e = this.keys.indexOf(n), e > -1 && this.keys.splice(e, 1), this.keys.unshift(n), this.trim();\n }, t.prototype.trim = function () {\n var t, e, r, n, o;\n for (n = this.keys.splice(this.size), o = [], t = 0, r = n.length; r > t; t++) e = n[t], o.push(delete this.snapshots[e]);\n return o;\n }, r = function (t) {\n return e.Location.wrap(t).toCacheKey();\n }, t;\n }();\n }.call(this), function () {\n var t = function (t, e) {\n return function () {\n return t.apply(e, arguments);\n };\n };\n e.Visit = function () {\n function r(r, n, o) {\n this.controller = r, this.action = o, this.performScroll = t(this.performScroll, this), this.identifier = e.uuid(), this.location = e.Location.wrap(n), this.adapter = this.controller.adapter, this.state = \"initialized\", this.timingMetrics = {};\n }\n var n;\n return r.prototype.start = function () {\n return \"initialized\" === this.state ? (this.recordTimingMetric(\"visitStart\"), this.state = \"started\", this.adapter.visitStarted(this)) : void 0;\n }, r.prototype.cancel = function () {\n var t;\n return \"started\" === this.state ? (null != (t = this.request) && t.cancel(), this.cancelRender(), this.state = \"canceled\") : void 0;\n }, r.prototype.complete = function () {\n var t;\n return \"started\" === this.state ? (this.recordTimingMetric(\"visitEnd\"), this.state = \"completed\", \"function\" == typeof (t = this.adapter).visitCompleted && t.visitCompleted(this), this.controller.visitCompleted(this)) : void 0;\n }, r.prototype.fail = function () {\n var t;\n return \"started\" === this.state ? (this.state = \"failed\", \"function\" == typeof (t = this.adapter).visitFailed ? t.visitFailed(this) : void 0) : void 0;\n }, r.prototype.changeHistory = function () {\n var t, e;\n return this.historyChanged ? void 0 : (t = this.location.isEqualTo(this.referrer) ? \"replace\" : this.action, e = n(t), this.controller[e](this.location, this.restorationIdentifier), this.historyChanged = !0);\n }, r.prototype.issueRequest = function () {\n return this.shouldIssueRequest() && null == this.request ? (this.progress = 0, this.request = new e.HttpRequest(this, this.location, this.referrer), this.request.send()) : void 0;\n }, r.prototype.getCachedSnapshot = function () {\n var t;\n return !(t = this.controller.getCachedSnapshotForLocation(this.location)) || null != this.location.anchor && !t.hasAnchor(this.location.anchor) || \"restore\" !== this.action && !t.isPreviewable() ? void 0 : t;\n }, r.prototype.hasCachedSnapshot = function () {\n return null != this.getCachedSnapshot();\n }, r.prototype.loadCachedSnapshot = function () {\n var t, e;\n return (e = this.getCachedSnapshot()) ? (t = this.shouldIssueRequest(), this.render(function () {\n var r;\n return this.cacheSnapshot(), this.controller.render({\n snapshot: e,\n isPreview: t\n }, this.performScroll), \"function\" == typeof (r = this.adapter).visitRendered && r.visitRendered(this), t ? void 0 : this.complete();\n })) : void 0;\n }, r.prototype.loadResponse = function () {\n return null != this.response ? this.render(function () {\n var t, e;\n return this.cacheSnapshot(), this.request.failed ? (this.controller.render({\n error: this.response\n }, this.performScroll), \"function\" == typeof (t = this.adapter).visitRendered && t.visitRendered(this), this.fail()) : (this.controller.render({\n snapshot: this.response\n }, this.performScroll), \"function\" == typeof (e = this.adapter).visitRendered && e.visitRendered(this), this.complete());\n }) : void 0;\n }, r.prototype.followRedirect = function () {\n return this.redirectedToLocation && !this.followedRedirect ? (this.location = this.redirectedToLocation, this.controller.replaceHistoryWithLocationAndRestorationIdentifier(this.redirectedToLocation, this.restorationIdentifier), this.followedRedirect = !0) : void 0;\n }, r.prototype.requestStarted = function () {\n var t;\n return this.recordTimingMetric(\"requestStart\"), \"function\" == typeof (t = this.adapter).visitRequestStarted ? t.visitRequestStarted(this) : void 0;\n }, r.prototype.requestProgressed = function (t) {\n var e;\n return this.progress = t, \"function\" == typeof (e = this.adapter).visitRequestProgressed ? e.visitRequestProgressed(this) : void 0;\n }, r.prototype.requestCompletedWithResponse = function (t, r) {\n return this.response = t, null != r && (this.redirectedToLocation = e.Location.wrap(r)), this.adapter.visitRequestCompleted(this);\n }, r.prototype.requestFailedWithStatusCode = function (t, e) {\n return this.response = e, this.adapter.visitRequestFailedWithStatusCode(this, t);\n }, r.prototype.requestFinished = function () {\n var t;\n return this.recordTimingMetric(\"requestEnd\"), \"function\" == typeof (t = this.adapter).visitRequestFinished ? t.visitRequestFinished(this) : void 0;\n }, r.prototype.performScroll = function () {\n return this.scrolled ? void 0 : (\"restore\" === this.action ? this.scrollToRestoredPosition() || this.scrollToTop() : this.scrollToAnchor() || this.scrollToTop(), this.scrolled = !0);\n }, r.prototype.scrollToRestoredPosition = function () {\n var t, e;\n return t = null != (e = this.restorationData) ? e.scrollPosition : void 0, null != t ? (this.controller.scrollToPosition(t), !0) : void 0;\n }, r.prototype.scrollToAnchor = function () {\n return null != this.location.anchor ? (this.controller.scrollToAnchor(this.location.anchor), !0) : void 0;\n }, r.prototype.scrollToTop = function () {\n return this.controller.scrollToPosition({\n x: 0,\n y: 0\n });\n }, r.prototype.recordTimingMetric = function (t) {\n var e;\n return null != (e = this.timingMetrics)[t] ? e[t] : e[t] = new Date().getTime();\n }, r.prototype.getTimingMetrics = function () {\n return e.copyObject(this.timingMetrics);\n }, n = function (t) {\n switch (t) {\n case \"replace\":\n return \"replaceHistoryWithLocationAndRestorationIdentifier\";\n case \"advance\":\n case \"restore\":\n return \"pushHistoryWithLocationAndRestorationIdentifier\";\n }\n }, r.prototype.shouldIssueRequest = function () {\n return \"restore\" === this.action ? !this.hasCachedSnapshot() : !0;\n }, r.prototype.cacheSnapshot = function () {\n return this.snapshotCached ? void 0 : (this.controller.cacheSnapshot(), this.snapshotCached = !0);\n }, r.prototype.render = function (t) {\n return this.cancelRender(), this.frame = requestAnimationFrame(function (e) {\n return function () {\n return e.frame = null, t.call(e);\n };\n }(this));\n }, r.prototype.cancelRender = function () {\n return this.frame ? cancelAnimationFrame(this.frame) : void 0;\n }, r;\n }();\n }.call(this), function () {\n var t = function (t, e) {\n return function () {\n return t.apply(e, arguments);\n };\n };\n e.Controller = function () {\n function r() {\n this.clickBubbled = t(this.clickBubbled, this), this.clickCaptured = t(this.clickCaptured, this), this.pageLoaded = t(this.pageLoaded, this), this.history = new e.History(this), this.view = new e.View(this), this.scrollManager = new e.ScrollManager(this), this.restorationData = {}, this.clearCache(), this.setProgressBarDelay(500);\n }\n return r.prototype.start = function () {\n return e.supported && !this.started ? (addEventListener(\"click\", this.clickCaptured, !0), addEventListener(\"DOMContentLoaded\", this.pageLoaded, !1), this.scrollManager.start(), this.startHistory(), this.started = !0, this.enabled = !0) : void 0;\n }, r.prototype.disable = function () {\n return this.enabled = !1;\n }, r.prototype.stop = function () {\n return this.started ? (removeEventListener(\"click\", this.clickCaptured, !0), removeEventListener(\"DOMContentLoaded\", this.pageLoaded, !1), this.scrollManager.stop(), this.stopHistory(), this.started = !1) : void 0;\n }, r.prototype.clearCache = function () {\n return this.cache = new e.SnapshotCache(10);\n }, r.prototype.visit = function (t, r) {\n var n, o;\n return null == r && (r = {}), t = e.Location.wrap(t), this.applicationAllowsVisitingLocation(t) ? this.locationIsVisitable(t) ? (n = null != (o = r.action) ? o : \"advance\", this.adapter.visitProposedToLocationWithAction(t, n)) : window.location = t : void 0;\n }, r.prototype.startVisitToLocationWithAction = function (t, r, n) {\n var o;\n return e.supported ? (o = this.getRestorationDataForIdentifier(n), this.startVisit(t, r, {\n restorationData: o\n })) : window.location = t;\n }, r.prototype.setProgressBarDelay = function (t) {\n return this.progressBarDelay = t;\n }, r.prototype.startHistory = function () {\n return this.location = e.Location.wrap(window.location), this.restorationIdentifier = e.uuid(), this.history.start(), this.history.replace(this.location, this.restorationIdentifier);\n }, r.prototype.stopHistory = function () {\n return this.history.stop();\n }, r.prototype.pushHistoryWithLocationAndRestorationIdentifier = function (t, r) {\n return this.restorationIdentifier = r, this.location = e.Location.wrap(t), this.history.push(this.location, this.restorationIdentifier);\n }, r.prototype.replaceHistoryWithLocationAndRestorationIdentifier = function (t, r) {\n return this.restorationIdentifier = r, this.location = e.Location.wrap(t), this.history.replace(this.location, this.restorationIdentifier);\n }, r.prototype.historyPoppedToLocationWithRestorationIdentifier = function (t, r) {\n var n;\n return this.restorationIdentifier = r, this.enabled ? (n = this.getRestorationDataForIdentifier(this.restorationIdentifier), this.startVisit(t, \"restore\", {\n restorationIdentifier: this.restorationIdentifier,\n restorationData: n,\n historyChanged: !0\n }), this.location = e.Location.wrap(t)) : this.adapter.pageInvalidated();\n }, r.prototype.getCachedSnapshotForLocation = function (t) {\n var e;\n return null != (e = this.cache.get(t)) ? e.clone() : void 0;\n }, r.prototype.shouldCacheSnapshot = function () {\n return this.view.getSnapshot().isCacheable();\n }, r.prototype.cacheSnapshot = function () {\n var t, r;\n return this.shouldCacheSnapshot() ? (this.notifyApplicationBeforeCachingSnapshot(), r = this.view.getSnapshot(), t = this.lastRenderedLocation, e.defer(function (e) {\n return function () {\n return e.cache.put(t, r.clone());\n };\n }(this))) : void 0;\n }, r.prototype.scrollToAnchor = function (t) {\n var e;\n return (e = this.view.getElementForAnchor(t)) ? this.scrollToElement(e) : this.scrollToPosition({\n x: 0,\n y: 0\n });\n }, r.prototype.scrollToElement = function (t) {\n return this.scrollManager.scrollToElement(t);\n }, r.prototype.scrollToPosition = function (t) {\n return this.scrollManager.scrollToPosition(t);\n }, r.prototype.scrollPositionChanged = function (t) {\n var e;\n return e = this.getCurrentRestorationData(), e.scrollPosition = t;\n }, r.prototype.render = function (t, e) {\n return this.view.render(t, e);\n }, r.prototype.viewInvalidated = function () {\n return this.adapter.pageInvalidated();\n }, r.prototype.viewWillRender = function (t) {\n return this.notifyApplicationBeforeRender(t);\n }, r.prototype.viewRendered = function () {\n return this.lastRenderedLocation = this.currentVisit.location, this.notifyApplicationAfterRender();\n }, r.prototype.pageLoaded = function () {\n return this.lastRenderedLocation = this.location, this.notifyApplicationAfterPageLoad();\n }, r.prototype.clickCaptured = function () {\n return removeEventListener(\"click\", this.clickBubbled, !1), addEventListener(\"click\", this.clickBubbled, !1);\n }, r.prototype.clickBubbled = function (t) {\n var e, r, n;\n return this.enabled && this.clickEventIsSignificant(t) && (r = this.getVisitableLinkForNode(t.target)) && (n = this.getVisitableLocationForLink(r)) && this.applicationAllowsFollowingLinkToLocation(r, n) ? (t.preventDefault(), e = this.getActionForLink(r), this.visit(n, {\n action: e\n })) : void 0;\n }, r.prototype.applicationAllowsFollowingLinkToLocation = function (t, e) {\n var r;\n return r = this.notifyApplicationAfterClickingLinkToLocation(t, e), !r.defaultPrevented;\n }, r.prototype.applicationAllowsVisitingLocation = function (t) {\n var e;\n return e = this.notifyApplicationBeforeVisitingLocation(t), !e.defaultPrevented;\n }, r.prototype.notifyApplicationAfterClickingLinkToLocation = function (t, r) {\n return e.dispatch(\"turbolinks:click\", {\n target: t,\n data: {\n url: r.absoluteURL\n },\n cancelable: !0\n });\n }, r.prototype.notifyApplicationBeforeVisitingLocation = function (t) {\n return e.dispatch(\"turbolinks:before-visit\", {\n data: {\n url: t.absoluteURL\n },\n cancelable: !0\n });\n }, r.prototype.notifyApplicationAfterVisitingLocation = function (t) {\n return e.dispatch(\"turbolinks:visit\", {\n data: {\n url: t.absoluteURL\n }\n });\n }, r.prototype.notifyApplicationBeforeCachingSnapshot = function () {\n return e.dispatch(\"turbolinks:before-cache\");\n }, r.prototype.notifyApplicationBeforeRender = function (t) {\n return e.dispatch(\"turbolinks:before-render\", {\n data: {\n newBody: t\n }\n });\n }, r.prototype.notifyApplicationAfterRender = function () {\n return e.dispatch(\"turbolinks:render\");\n }, r.prototype.notifyApplicationAfterPageLoad = function (t) {\n return null == t && (t = {}), e.dispatch(\"turbolinks:load\", {\n data: {\n url: this.location.absoluteURL,\n timing: t\n }\n });\n }, r.prototype.startVisit = function (t, e, r) {\n var n;\n return null != (n = this.currentVisit) && n.cancel(), this.currentVisit = this.createVisit(t, e, r), this.currentVisit.start(), this.notifyApplicationAfterVisitingLocation(t);\n }, r.prototype.createVisit = function (t, r, n) {\n var o, i, s, a, u;\n return i = null != n ? n : {}, a = i.restorationIdentifier, s = i.restorationData, o = i.historyChanged, u = new e.Visit(this, t, r), u.restorationIdentifier = null != a ? a : e.uuid(), u.restorationData = e.copyObject(s), u.historyChanged = o, u.referrer = this.location, u;\n }, r.prototype.visitCompleted = function (t) {\n return this.notifyApplicationAfterPageLoad(t.getTimingMetrics());\n }, r.prototype.clickEventIsSignificant = function (t) {\n return !(t.defaultPrevented || t.target.isContentEditable || t.which > 1 || t.altKey || t.ctrlKey || t.metaKey || t.shiftKey);\n }, r.prototype.getVisitableLinkForNode = function (t) {\n return this.nodeIsVisitable(t) ? e.closest(t, \"a[href]:not([target]):not([download])\") : void 0;\n }, r.prototype.getVisitableLocationForLink = function (t) {\n var r;\n return r = new e.Location(t.getAttribute(\"href\")), this.locationIsVisitable(r) ? r : void 0;\n }, r.prototype.getActionForLink = function (t) {\n var e;\n return null != (e = t.getAttribute(\"data-turbolinks-action\")) ? e : \"advance\";\n }, r.prototype.nodeIsVisitable = function (t) {\n var r;\n return (r = e.closest(t, \"[data-turbolinks]\")) ? \"false\" !== r.getAttribute(\"data-turbolinks\") : !0;\n }, r.prototype.locationIsVisitable = function (t) {\n return t.isPrefixedBy(this.view.getRootLocation()) && t.isHTML();\n }, r.prototype.getCurrentRestorationData = function () {\n return this.getRestorationDataForIdentifier(this.restorationIdentifier);\n }, r.prototype.getRestorationDataForIdentifier = function (t) {\n var e;\n return null != (e = this.restorationData)[t] ? e[t] : e[t] = {};\n }, r;\n }();\n }.call(this), function () {\n !function () {\n var t, e;\n if ((t = e = document.currentScript) && !e.hasAttribute(\"data-turbolinks-suppress-warning\")) for (; t = t.parentNode;) if (t === document.body) return console.warn(\"You are loading Turbolinks from a \n *
\n * ```\n *\n * When passing values in the `createPayment` method, make sure they match the [corresponding parameters in the query parameters for the PayPal SDK script](https://developer.paypal.com/docs/checkout/reference/customize-sdk/).\n *\n * ```javascript\n * braintree.client.create({\n * authorization: 'authorization'\n * }).then(function (clientInstance) {\n * return braintree.paypalCheckout.create({\n * client: clientInstance\n * });\n * }).then(function (paypalCheckoutInstance) {\n * return paypal.Buttons({\n * createOrder: function () {\n * return paypalCheckoutInstance.createPayment({\n * flow: 'checkout',\n * currency: 'USD',\n * amount: '10.00',\n * intent: 'capture' // this value must either be `capture` or match the intent passed into the PayPal SDK intent query parameter\n * // your other createPayment options here\n * });\n * },\n *\n * onApprove: function (data, actions) {\n * // some logic here before tokenization happens below\n * return paypalCheckoutInstance.tokenizePayment(data).then(function (payload) {\n * // Submit payload.nonce to your server\n * });\n * },\n *\n * onCancel: function () {\n * // handle case where user cancels\n * },\n *\n * onError: function (err) {\n * // handle case where error occurs\n * }\n * }).render('#paypal-button');\n * }).catch(function (err) {\n * console.error('Error!', err);\n * });\n * ```\n *\n * #### Integrate Vault Flow with PayPal SDK\n *\n * You must have [PayPal's script, configured with various query parameters](https://developer.paypal.com/docs/checkout/integrate/#2-add-the-paypal-script-to-your-web-page), loaded on your page:\n *\n * ```html\n * \n *
\n * ```\n *\n * When passing values in the `createPayment` method, make sure they match the [corresponding parameters in the query parameters for the PayPal SDK script](https://developer.paypal.com/docs/checkout/reference/customize-sdk/).\n *\n * ```javascript\n * braintree.client.create({\n * authorization: 'authorization'\n * }).then(function (clientInstance) {\n * return braintree.paypalCheckout.create({\n * client: clientInstance\n * });\n * }).then(function (paypalCheckoutInstance) {\n * return paypal.Buttons({\n * createBillingAgreement: function () {\n * return paypalCheckoutInstance.createPayment({\n * flow: 'vault'\n * // your other createPayment options here\n * });\n * },\n *\n * onApprove: function (data, actions) {\n * // some logic here before tokenization happens below\n * return paypalCheckoutInstance.tokenizePayment(data).then(function (payload) {\n * // Submit payload.nonce to your server\n * });\n * },\n *\n * onCancel: function () {\n * // handle case where user cancels\n * },\n *\n * onError: function (err) {\n * // handle case where error occurs\n * }\n * }).render('#paypal-button');\n * }).catch(function (err) {\n * console.error('Error!', err);\n * });\n * ```\n *\n * #### Integrate with Checkout.js (deprecated PayPal SDK)\n *\n * If you are creating a new PayPal integration, please follow the previous integration guide to use the current version of the PayPal SDK. Use this integration guide only as a reference if you are already integrated with Checkout.js.\n *\n * You must have PayPal's Checkout.js script loaded on your page.\n *\n * ```html\n * \n * ```\n *\n * ```javascript\n * braintree.client.create({\n * authorization: 'authorization'\n * }).then(function (clientInstance) {\n * return braintree.paypalCheckout.create({\n * client: clientInstance\n * });\n * }).then(function (paypalCheckoutInstance) {\n * return paypal.Button.render({\n * env: 'production', // or 'sandbox'\n *\n * payment: function () {\n * return paypalCheckoutInstance.createPayment({\n * // your createPayment options here\n * });\n * },\n *\n * onAuthorize: function (data, actions) {\n * // some logic here before tokenization happens below\n * return paypalCheckoutInstance.tokenizePayment(data).then(function (payload) {\n * // Submit payload.nonce to your server\n * });\n * }\n * }, '#paypal-button');\n * }).catch(function (err) {\n * console.error('Error!', err);\n * });\n * ```\n */\n function PayPalCheckout(options) {\n this._merchantAccountId = options.merchantAccountId;\n // TODO remove this requirement for it to be opt in.\n // This feature is not yet GA, so we're intentionally making\n // it opt in and not publicly documenting it yet. Once it's\n // GA, we can remove the requirement to opt in to it\n this._autoSetDataUserIdToken = Boolean(options.autoSetDataUserIdToken);\n }\n PayPalCheckout.prototype._initialize = function (options) {\n var config;\n if (options.client) {\n config = options.client.getConfiguration();\n this._authorizationInformation = {\n fingerprint: config.authorizationFingerprint,\n environment: config.gatewayConfiguration.environment\n };\n } else {\n config = createAuthorizationData(options.authorization);\n this._authorizationInformation = {\n fingerprint: config.attrs.authorizationFingerprint,\n environment: config.environment\n };\n }\n this._clientPromise = createDeferredClient.create({\n authorization: options.authorization,\n client: options.client,\n debug: options.debug,\n assetsUrl: createAssetsUrl.create(options.authorization),\n name: \"PayPal Checkout\"\n }).then(function (client) {\n this._configuration = client.getConfiguration();\n\n // we skip these checks if a merchant account id is\n // passed in, because the default merchant account\n // may not have paypal enabled\n if (!this._merchantAccountId) {\n if (!this._configuration.gatewayConfiguration.paypalEnabled) {\n this._setupError = new BraintreeError(errors.PAYPAL_NOT_ENABLED);\n } else if (this._configuration.gatewayConfiguration.paypal.environmentNoNetwork === true) {\n this._setupError = new BraintreeError(errors.PAYPAL_SANDBOX_ACCOUNT_NOT_LINKED);\n }\n }\n if (this._setupError) {\n return Promise.reject(this._setupError);\n }\n analytics.sendEvent(client, \"paypal-checkout.initialized\");\n this._frameServicePromise = this._setupFrameService(client);\n return client;\n }.bind(this));\n\n // if client was passed in, let config checks happen before\n // resolving the instance. Otherwise, just resolve the instance\n if (options.client) {\n return this._clientPromise.then(function () {\n return this;\n }.bind(this));\n }\n return Promise.resolve(this);\n };\n PayPalCheckout.prototype._setupFrameService = function (client) {\n var frameServicePromise = new ExtendedPromise();\n var config = client.getConfiguration();\n var timeoutRef = setTimeout(function () {\n analytics.sendEvent(client, \"paypal-checkout.frame-service.timed-out\");\n frameServicePromise.reject(new BraintreeError(errors.PAYPAL_START_VAULT_INITIATED_CHECKOUT_SETUP_FAILED));\n }, INTEGRATION_TIMEOUT_MS);\n this._assetsUrl = config.gatewayConfiguration.paypal.assetsUrl + \"/web/\" + VERSION;\n this._isDebug = config.isDebug;\n // Note: this is using the static landing frame that the deprecated PayPal component builds and uses\n this._loadingFrameUrl = this._assetsUrl + \"/html/paypal-landing-frame\" + useMin(this._isDebug) + \".html\";\n frameService.create({\n name: \"braintreepaypallanding\",\n dispatchFrameUrl: this._assetsUrl + \"/html/dispatch-frame\" + useMin(this._isDebug) + \".html\",\n openFrameUrl: this._loadingFrameUrl\n }, function (service) {\n this._frameService = service;\n clearTimeout(timeoutRef);\n frameServicePromise.resolve();\n }.bind(this));\n return frameServicePromise;\n };\n\n /**\n * @typedef {object} PayPalCheckout~lineItem\n * @property {string} quantity Number of units of the item purchased. This value must be a whole number and can't be negative or zero.\n * @property {string} unitAmount Per-unit price of the item. Can include up to 2 decimal places. This value can't be negative or zero.\n * @property {string} name Item name. Maximum 127 characters.\n * @property {string} kind Indicates whether the line item is a debit (sale) or credit (refund) to the customer. Accepted values: `debit` and `credit`.\n * @property {?string} unitTaxAmount Per-unit tax price of the item. Can include up to 2 decimal places. This value can't be negative or zero.\n * @property {?string} description Item description. Maximum 127 characters.\n * @property {?string} productCode Product or UPC code for the item. Maximum 127 characters.\n * @property {?string} url The URL to product information.\n */\n\n /**\n * @typedef {object} PayPalCheckout~shippingOption\n * @property {string} id A unique ID that identifies a payer-selected shipping option.\n * @property {string} label A description that the payer sees, which helps them choose an appropriate shipping option. For example, `Free Shipping`, `USPS Priority Shipping`, `Expédition prioritaire USPS`, or `USPS yōuxiān fā huò`. Localize this description to the payer's locale.\n * @property {boolean} selected If `selected = true` is specified as part of the API request it represents the shipping option that the payee/merchant expects to be pre-selected for the payer when they first view the shipping options within the PayPal checkout experience. As part of the response if a shipping option has `selected = true` it represents the shipping option that the payer selected during the course of checkout with PayPal. Only 1 `shippingOption` can be set to `selected = true`.\n * @property {string} type The method by which the payer wants to get their items. The possible values are:\n * * `SHIPPING` - The payer intends to receive the items at a specified address.\n * * `PICKUP` - The payer intends to pick up the items at a specified address. For example, a store address.\n * @property {object} amount The shipping cost for the selected option.\n * @property {string} amount.currency The three-character ISO-4217 currency code. PayPal does not support all currencies.\n * @property {string} amount.value The amount the shipping option will cost. Includes the specified number of digits after decimal separator for the ISO-4217 currency code.\n */\n\n /**\n * Creates a PayPal payment ID or billing token using the given options. This is meant to be passed to the PayPal JS SDK.\n * When a {@link callback} is defined, the function returns undefined and invokes the callback with the id to be used with the PayPal JS SDK. Otherwise, it returns a Promise that resolves with the id.\n * @public\n * @param {object} options All options for the PayPalCheckout component.\n * @param {string} options.flow Set to 'checkout' for one-time payment flow, or 'vault' for Vault flow. If 'vault' is used with a client token generated with a customer ID, the PayPal account will be added to that customer as a saved payment method.\n * @param {string} [options.intent=authorize]\n * * `authorize` - Submits the transaction for authorization but not settlement.\n * * `order` - Validates the transaction without an authorization (i.e. without holding funds). Useful for authorizing and capturing funds up to 90 days after the order has been placed. Only available for Checkout flow.\n * * `capture` - Payment will be immediately submitted for settlement upon creating a transaction. `sale` can be used as an alias for this value.\n * @param {boolean} [options.offerCredit=false] Offers PayPal Credit as the default funding instrument for the transaction. If the customer isn't pre-approved for PayPal Credit, they will be prompted to apply for it.\n * @param {(string|number)} [options.amount] The amount of the transaction. Required when using the Checkout flow. Should not include shipping cost.\n * * Supports up to 2 digits after the decimal point\n * @param {string} [options.currency] The currency code of the amount, such as 'USD'. Required when using the Checkout flow.\n * @param {string} [options.displayName] The merchant name displayed inside of the PayPal lightbox; defaults to the company name on your Braintree account\n * @param {boolean} [options.requestBillingAgreement] If `true` and `flow = checkout`, the customer will be prompted to consent to a billing agreement during the checkout flow. This value is ignored when `flow = vault`.\n * @param {object} [options.billingAgreementDetails] When `requestBillingAgreement = true`, allows for details to be set for the billing agreement portion of the flow.\n * @param {string} [options.billingAgreementDetails.description] Description of the billing agreement to display to the customer.\n * @param {string} [options.vaultInitiatedCheckoutPaymentMethodToken] Use the payment method nonce representing a PayPal account with a Billing Agreement ID to create the payment and redirect the customer to select a new financial instrument. This option is only applicable to the `checkout` flow.\n * @param {shippingOption[]} [options.shippingOptions] List of shipping options offered by the payee or merchant to the payer to ship or pick up their items.\n * @param {boolean} [options.enableShippingAddress=false] Returns a shipping address object in {@link PayPal#tokenize}.\n * @param {object} [options.shippingAddressOverride] Allows you to pass a shipping address you have already collected into the PayPal payment flow.\n * @param {string} options.shippingAddressOverride.line1 Street address.\n * @param {string} [options.shippingAddressOverride.line2] Street address (extended).\n * @param {string} options.shippingAddressOverride.city City.\n * @param {string} options.shippingAddressOverride.state State.\n * @param {string} options.shippingAddressOverride.postalCode Postal code.\n * @param {string} options.shippingAddressOverride.countryCode Country.\n * @param {string} [options.shippingAddressOverride.phone] Phone number.\n * @param {string} [options.shippingAddressOverride.recipientName] Recipient's name.\n * @param {boolean} [options.shippingAddressEditable=true] Set to false to disable user editing of the shipping address.\n * @param {string} [options.billingAgreementDescription] Use this option to set the description of the preapproved payment agreement visible to customers in their PayPal profile during Vault flows. Max 255 characters.\n * @param {string} [options.landingPageType] Use this option to specify the PayPal page to display when a user lands on the PayPal site to complete the payment.\n * * `login` - A PayPal account login page is used.\n * * `billing` - A non-PayPal account landing page is used.\n * @param {lineItem[]} [options.lineItems] The {@link PayPalCheckout~lineItem|line items} for this transaction. It can include up to 249 line items.\n * @param {callback} [callback] The second argument is a PayPal `paymentId` or `billingToken` string, depending on whether `options.flow` is `checkout` or `vault`. This is also what is resolved by the promise if no callback is provided.\n * @example\n * // this paypal object is created by the PayPal JS SDK\n * // see https://github.com/paypal/paypal-checkout-components\n * paypal.Buttons({\n * createOrder: function () {\n * // when createPayment resolves, it is automatically passed to the PayPal JS SDK\n * return paypalCheckoutInstance.createPayment({\n * flow: 'checkout',\n * amount: '10.00',\n * currency: 'USD',\n * intent: 'capture' // this value must either be `capture` or match the intent passed into the PayPal SDK intent query parameter\n * });\n * },\n * // Add other options, e.g. onApproved, onCancel, onError\n * }).render('#paypal-button');\n *\n * @example\n * // shippingOptions are passed to createPayment. You can review the result from onAuthorize to determine which shipping option id was selected.\n * ```javascript\n * braintree.client.create({\n * authorization: 'authorization'\n * }).then(function (clientInstance) {\n * return braintree.paypalCheckout.create({\n * client: clientInstance\n * });\n * }).then(function (paypalCheckoutInstance) {\n * return paypal.Button.render({\n * env: 'production'\n *\n * payment: function () {\n * return paypalCheckoutInstance.createPayment({\n * flow: 'checkout',\n * amount: '10.00',\n * currency: 'USD',\n * shippingOptions: [\n * {\n * id: 'UUID-9',\n * type: 'PICKUP',\n * label: 'Store Location Five',\n * selected: true,\n * amount: {\n * value: '1.00',\n * currency: 'USD'\n * }\n * },\n * {\n * id: 'shipping-speed-fast',\n * type: 'SHIPPING',\n * label: 'Fast Shipping',\n * selected: false,\n * amount: {\n * value: '1.00',\n * currency: 'USD'\n * }\n * },\n * {\n * id: 'shipping-speed-slow',\n * type: 'SHIPPING',\n * label: 'Slow Shipping',\n * selected: false,\n * amount: {\n * value: '1.00',\n * currency: 'USD'\n * }\n * }\n * ]\n * });\n * },\n *\n * onAuthorize: function (data, actions) {\n * return paypalCheckoutInstance.tokenizePayment(data).then(function (payload) {\n * // Submit payload.nonce to your server\n * });\n * }\n * }, '#paypal-button');\n * }).catch(function (err) {\n * console.error('Error!', err);\n * });\n * ```\n *\n * @returns {(Promise|void)} Returns a promise if no callback is provided.\n */\n PayPalCheckout.prototype.createPayment = function (options) {\n if (!options || !constants.FLOW_ENDPOINTS.hasOwnProperty(options.flow)) {\n return Promise.reject(new BraintreeError(errors.PAYPAL_FLOW_OPTION_REQUIRED));\n }\n analytics.sendEvent(this._clientPromise, \"paypal-checkout.createPayment\");\n return this._createPaymentResource(options).then(function (response) {\n var flowToken, urlParams;\n if (options.flow === \"checkout\") {\n urlParams = querystring.parse(response.paymentResource.redirectUrl);\n flowToken = urlParams.token;\n } else {\n flowToken = response.agreementSetup.tokenId;\n }\n return flowToken;\n });\n };\n PayPalCheckout.prototype._createPaymentResource = function (options, config) {\n var self = this;\n var endpoint = \"paypal_hermes/\" + constants.FLOW_ENDPOINTS[options.flow];\n delete this.intentFromCreatePayment;\n config = config || {};\n if (options.offerCredit === true) {\n analytics.sendEvent(this._clientPromise, \"paypal-checkout.credit.offered\");\n }\n return this._clientPromise.then(function (client) {\n return client.request({\n endpoint: endpoint,\n method: \"post\",\n data: self._formatPaymentResourceData(options, config)\n }).then(function (data) {\n self.intentFromCreatePayment = options.intent;\n return data;\n });\n }).catch(function (err) {\n var status;\n if (self._setupError) {\n return Promise.reject(self._setupError);\n }\n status = err.details && err.details.httpStatus;\n if (status === 422) {\n return Promise.reject(new BraintreeError({\n type: errors.PAYPAL_INVALID_PAYMENT_OPTION.type,\n code: errors.PAYPAL_INVALID_PAYMENT_OPTION.code,\n message: errors.PAYPAL_INVALID_PAYMENT_OPTION.message,\n details: {\n originalError: err\n }\n }));\n }\n return Promise.reject(convertToBraintreeError(err, {\n type: errors.PAYPAL_FLOW_FAILED.type,\n code: errors.PAYPAL_FLOW_FAILED.code,\n message: errors.PAYPAL_FLOW_FAILED.message\n }));\n });\n };\n\n /**\n * Use this function to update {@link PayPalCheckout~lineItem|line items} and/or {@link PayPalCheckout~shippingOption|shipping options} associated with a PayPalCheckout flow (`paymentId`).\n * When a {@link callback} is defined, this function returns undefined and invokes the callback. The second callback argument, data, is the returned server data. If no callback is provided, `updatePayment` returns a promise that resolves with the server data.\n * @public\n * @param {object} options All options for the PayPalCheckout component.\n * @param {string} options.paymentId This should be PayPal `paymentId`.\n * @param {(string|number)} [options.amount] The amount of the transaction, including the amount of the selected shipping option.\n * * Supports up to 2 decimal digits.\n * @param {string} options.currency The currency code of the amount, such as 'USD'. Required when using the Checkout flow.\n * @param {shippingOption[]} [options.shippingOptions] List of {@link PayPalCheckout~shippingOption|shipping options} offered by the payee or merchant to the payer to ship or pick up their items.\n * @param {lineItem[]} [options.lineItems] The {@link PayPalCheckout~lineItem|line items} for this transaction. It can include up to 249 line items.\n * @param {callback} [callback] The second argument is a PayPal `paymentId` or `billingToken` string, depending on whether `options.flow` is `checkout` or `vault`. This is also what is resolved by the promise if no callback is provided.\n * @example\n * // this paypal object is created by the PayPal JS SDK\n * // see https://github.com/paypal/paypal-checkout-components\n * paypal.Buttons({\n * createOrder: function () {\n * // when createPayment resolves, it is automatically passed to the PayPal JS SDK\n * return paypalCheckoutInstance.createPayment({\n * //\n * });\n * },\n * onShippingChange: function (data) {\n * // Examine data and determine if the payment needs to be updated.\n * // when updatePayment resolves, it is automatically passed to the PayPal JS SDK\n * return paypalCheckoutInstance.updatePayment({\n * paymentId: data.paymentId,\n * amount: '15.00',\n * currency: 'USD',\n * shippingOptions: [\n * {\n * id: 'shipping-speed-fast',\n * type: 'SHIPPING',\n * label: 'Fast Shipping',\n * selected: true,\n * amount: {\n * value: '5.00',\n * currency: 'USD'\n * }\n * },\n * {\n * id: 'shipping-speed-slow',\n * type: 'SHIPPING',\n * label: 'Slow Shipping',\n * selected: false,\n * amount: {\n * value: '1.00',\n * currency: 'USD'\n * }\n * }\n * ]\n * });\n * }\n * // Add other options, e.g. onApproved, onCancel, onError\n * }).render('#paypal-button');\n *\n * ```\n *\n * @returns {(Promise|void)} Returns a promise if no callback is provided.\n */\n PayPalCheckout.prototype.updatePayment = function (options) {\n var self = this;\n var endpoint = \"paypal_hermes/patch_payment_resource\";\n if (!options || this._hasMissingOption(options, constants.REQUIRED_OPTIONS)) {\n analytics.sendEvent(self._clientPromise, \"paypal-checkout.updatePayment.missing-options\");\n return Promise.reject(new BraintreeError(errors.PAYPAL_MISSING_REQUIRED_OPTION));\n }\n if (!this._verifyConsistentCurrency(options)) {\n analytics.sendEvent(self._clientPromise, \"paypal-checkout.updatePayment.inconsistent-currencies\");\n return Promise.reject(new BraintreeError({\n type: errors.PAYPAL_INVALID_PAYMENT_OPTION.type,\n code: errors.PAYPAL_INVALID_PAYMENT_OPTION.code,\n message: errors.PAYPAL_INVALID_PAYMENT_OPTION.message,\n details: {\n originalError: new Error(\"One or more shipping option currencies differ from checkout currency.\")\n }\n }));\n }\n analytics.sendEvent(this._clientPromise, \"paypal-checkout.updatePayment\");\n return this._clientPromise.then(function (client) {\n return client.request({\n endpoint: endpoint,\n method: \"post\",\n data: self._formatUpdatePaymentData(options)\n });\n }).catch(function (err) {\n var status = err.details && err.details.httpStatus;\n if (status === 422) {\n analytics.sendEvent(self._clientPromise, \"paypal-checkout.updatePayment.invalid\");\n return Promise.reject(new BraintreeError({\n type: errors.PAYPAL_INVALID_PAYMENT_OPTION.type,\n code: errors.PAYPAL_INVALID_PAYMENT_OPTION.code,\n message: errors.PAYPAL_INVALID_PAYMENT_OPTION.message,\n details: {\n originalError: err\n }\n }));\n }\n analytics.sendEvent(self._clientPromise, \"paypal-checkout.updatePayment.\" + errors.PAYPAL_FLOW_FAILED.code);\n return Promise.reject(convertToBraintreeError(err, {\n type: errors.PAYPAL_FLOW_FAILED.type,\n code: errors.PAYPAL_FLOW_FAILED.code,\n message: errors.PAYPAL_FLOW_FAILED.message\n }));\n });\n };\n\n /**\n * Initializes the PayPal checkout flow with a payment method nonce that represents a vaulted PayPal account.\n * When a {@link callback} is defined, the function returns undefined and invokes the callback with the id to be used with the PayPal JS SDK. Otherwise, it returns a Promise that resolves with the id.\n * @public\n * @ignore\n * @param {object} options These options are identical to the {@link PayPalCheckout#createPayment|options for creating a payment resource}, except for the following:\n * * `flow` cannot be set (will always be `'checkout'`)\n * * `amount`, `currency`, and `vaultInitiatedCheckoutPaymentMethodToken` are required instead of optional\n * * Additional configuration is available (listed below)\n * @param {boolean} [options.optOutOfModalBackdrop=false] By default, the webpage will darken and become unusable while the PayPal window is open. For full control of the UI, pass `true` for this option.\n * @param {callback} [callback] The second argument, payload, is a {@link PayPalCheckout~tokenizePayload|tokenizePayload}. If no callback is provided, the promise resolves with a {@link PayPalCheckout~tokenizePayload|tokenizePayload}.\n * @example\n * paypalCheckoutInstance.startVaultInitiatedCheckout({\n * vaultInitiatedCheckoutPaymentMethodToken: 'nonce-that-represents-a-vaulted-paypal-account',\n * amount: '10.00',\n * currency: 'USD'\n * }).then(function (payload) {\n * // send payload.nonce to your server\n * }).catch(function (err) {\n * if (err.code === 'PAYPAL_POPUP_CLOSED') {\n * // indicates that customer canceled by\n * // manually closing the PayPal popup\n * }\n *\n * // handle other errors\n * });\n *\n * @returns {(Promise|void)} Returns a promise if no callback is provided.\n */\n PayPalCheckout.prototype.startVaultInitiatedCheckout = function (options) {\n var missingRequiredParam;\n var self = this;\n if (this._vaultInitiatedCheckoutInProgress) {\n analytics.sendEvent(this._clientPromise, \"paypal-checkout.startVaultInitiatedCheckout.error.already-in-progress\");\n return Promise.reject(new BraintreeError(errors.PAYPAL_START_VAULT_INITIATED_CHECKOUT_IN_PROGRESS));\n }\n REQUIRED_PARAMS_FOR_START_VAULT_INITIATED_CHECKOUT.forEach(function (param) {\n if (!options.hasOwnProperty(param)) {\n missingRequiredParam = param;\n }\n });\n if (missingRequiredParam) {\n return Promise.reject(new BraintreeError({\n type: errors.PAYPAL_START_VAULT_INITIATED_CHECKOUT_PARAM_REQUIRED.type,\n code: errors.PAYPAL_START_VAULT_INITIATED_CHECKOUT_PARAM_REQUIRED.code,\n message: \"Required param \" + missingRequiredParam + \" is missing.\"\n }));\n }\n this._vaultInitiatedCheckoutInProgress = true;\n this._addModalBackdrop(options);\n options = assign({}, options, {\n flow: \"checkout\"\n });\n analytics.sendEvent(this._clientPromise, \"paypal-checkout.startVaultInitiatedCheckout.started\");\n return this._waitForVaultInitiatedCheckoutDependencies().then(function () {\n var frameCommunicationPromise = new ExtendedPromise();\n var startVaultInitiatedCheckoutPromise = self._createPaymentResource(options, {\n returnUrl: self._constructVaultCheckutUrl(\"redirect-frame\"),\n cancelUrl: self._constructVaultCheckutUrl(\"cancel-frame\")\n }).then(function (response) {\n var redirectUrl = response.paymentResource.redirectUrl;\n self._frameService.redirect(redirectUrl);\n return frameCommunicationPromise;\n });\n self._frameService.open({}, self._createFrameServiceCallback(frameCommunicationPromise));\n return startVaultInitiatedCheckoutPromise;\n }).catch(function (err) {\n self._vaultInitiatedCheckoutInProgress = false;\n self._removeModalBackdrop();\n if (err.code === \"FRAME_SERVICE_FRAME_CLOSED\") {\n analytics.sendEvent(self._clientPromise, \"paypal-checkout.startVaultInitiatedCheckout.canceled.by-customer\");\n return Promise.reject(new BraintreeError(errors.PAYPAL_START_VAULT_INITIATED_CHECKOUT_CANCELED));\n }\n if (self._frameService) {\n self._frameService.close();\n }\n if (err.code && err.code.indexOf(\"FRAME_SERVICE_FRAME_OPEN_FAILED\") > -1) {\n analytics.sendEvent(self._clientPromise, \"paypal-checkout.startVaultInitiatedCheckout.failed.popup-not-opened\");\n return Promise.reject(new BraintreeError({\n code: errors.PAYPAL_START_VAULT_INITIATED_CHECKOUT_POPUP_OPEN_FAILED.code,\n type: errors.PAYPAL_START_VAULT_INITIATED_CHECKOUT_POPUP_OPEN_FAILED.type,\n message: errors.PAYPAL_START_VAULT_INITIATED_CHECKOUT_POPUP_OPEN_FAILED.message,\n details: {\n originalError: err\n }\n }));\n }\n return Promise.reject(err);\n }).then(function (response) {\n self._frameService.close();\n self._vaultInitiatedCheckoutInProgress = false;\n self._removeModalBackdrop();\n analytics.sendEvent(self._clientPromise, \"paypal-checkout.startVaultInitiatedCheckout.succeeded\");\n return Promise.resolve(response);\n });\n };\n PayPalCheckout.prototype._addModalBackdrop = function (options) {\n if (options.optOutOfModalBackdrop) {\n return;\n }\n if (!this._modalBackdrop) {\n this._modalBackdrop = document.createElement(\"div\");\n this._modalBackdrop.setAttribute(\"data-braintree-paypal-vault-initiated-checkout-modal\", true);\n this._modalBackdrop.style.position = \"fixed\";\n this._modalBackdrop.style.top = 0;\n this._modalBackdrop.style.bottom = 0;\n this._modalBackdrop.style.left = 0;\n this._modalBackdrop.style.right = 0;\n this._modalBackdrop.style.zIndex = 9999;\n this._modalBackdrop.style.background = \"black\";\n this._modalBackdrop.style.opacity = \"0.7\";\n this._modalBackdrop.addEventListener(\"click\", function () {\n this.focusVaultInitiatedCheckoutWindow();\n }.bind(this));\n }\n document.body.appendChild(this._modalBackdrop);\n };\n PayPalCheckout.prototype._removeModalBackdrop = function () {\n if (!(this._modalBackdrop && this._modalBackdrop.parentNode)) {\n return;\n }\n this._modalBackdrop.parentNode.removeChild(this._modalBackdrop);\n };\n\n /**\n * Closes the PayPal window if it is opened via `startVaultInitiatedCheckout`.\n * @public\n * @ignore\n * @param {callback} [callback] Gets called when window is closed.\n * @example\n * paypalCheckoutInstance.closeVaultInitiatedCheckoutWindow();\n * @returns {(Promise|void)} Returns a promise if no callback is provided.\n */\n PayPalCheckout.prototype.closeVaultInitiatedCheckoutWindow = function () {\n if (this._vaultInitiatedCheckoutInProgress) {\n analytics.sendEvent(this._clientPromise, \"paypal-checkout.startVaultInitiatedCheckout.canceled.by-merchant\");\n }\n return this._waitForVaultInitiatedCheckoutDependencies().then(function () {\n this._frameService.close();\n }.bind(this));\n };\n\n /**\n * Focuses the PayPal window if it is opened via `startVaultInitiatedCheckout`.\n * @public\n * @ignore\n * @param {callback} [callback] Gets called when window is focused.\n * @example\n * paypalCheckoutInstance.focusVaultInitiatedCheckoutWindow();\n * @returns {(Promise|void)} Returns a promise if no callback is provided.\n */\n PayPalCheckout.prototype.focusVaultInitiatedCheckoutWindow = function () {\n return this._waitForVaultInitiatedCheckoutDependencies().then(function () {\n this._frameService.focus();\n }.bind(this));\n };\n PayPalCheckout.prototype._createFrameServiceCallback = function (frameCommunicationPromise) {\n var self = this;\n\n // TODO when a merchant integrates an iOS or Android integration\n // with a webview using the web SDK, we will have to add popupbridge\n // support\n return function (err, payload) {\n if (err) {\n frameCommunicationPromise.reject(err);\n } else if (payload) {\n self._frameService.redirect(self._loadingFrameUrl);\n self.tokenizePayment({\n paymentToken: payload.token,\n payerID: payload.PayerID,\n paymentID: payload.paymentId,\n orderID: payload.orderId\n }).then(function (res) {\n frameCommunicationPromise.resolve(res);\n }).catch(function (tokenizationError) {\n frameCommunicationPromise.reject(tokenizationError);\n });\n }\n };\n };\n PayPalCheckout.prototype._waitForVaultInitiatedCheckoutDependencies = function () {\n var self = this;\n return this._clientPromise.then(function () {\n return self._frameServicePromise;\n });\n };\n PayPalCheckout.prototype._constructVaultCheckutUrl = function (frameName) {\n var serviceId = this._frameService._serviceId;\n return this._assetsUrl + \"/html/\" + frameName + useMin(this._isDebug) + \".html?channel=\" + serviceId;\n };\n\n /**\n * Tokenizes the authorize data from the PayPal JS SDK when completing a buyer approval flow.\n * When a {@link callback} is defined, invokes the callback with {@link PayPalCheckout~tokenizePayload|tokenizePayload} and returns undefined. Otherwise, returns a Promise that resolves with a {@link PayPalCheckout~tokenizePayload|tokenizePayload}.\n * @public\n * @param {object} tokenizeOptions Tokens and IDs required to tokenize the payment.\n * @param {string} tokenizeOptions.payerId Payer ID returned by PayPal `onApproved` callback.\n * @param {string} [tokenizeOptions.paymentId] Payment ID returned by PayPal `onApproved` callback.\n * @param {string} [tokenizeOptions.billingToken] Billing Token returned by PayPal `onApproved` callback.\n * @param {boolean} [tokenizeOptions.vault=true] Whether or not to vault the resulting PayPal account (if using a client token generated with a customer id and the vault flow).\n * @param {callback} [callback] The second argument, payload, is a {@link PayPalCheckout~tokenizePayload|tokenizePayload}. If no callback is provided, the promise resolves with a {@link PayPalCheckout~tokenizePayload|tokenizePayload}.\n * @example Opt out of auto-vaulting behavior\n * // create the paypalCheckoutInstance with a client token generated with a customer id\n * paypal.Buttons({\n * createBillingAgreement: function () {\n * return paypalCheckoutInstance.createPayment({\n * flow: 'vault'\n * // your other createPayment options here\n * });\n * },\n * onApproved: function (data) {\n * data.vault = false;\n *\n * return paypalCheckoutInstance.tokenizePayment(data);\n * },\n * // Add other options, e.g. onCancel, onError\n * }).render('#paypal-button');\n *\n * @returns {(Promise|void)} Returns a promise if no callback is provided.\n */\n PayPalCheckout.prototype.tokenizePayment = function (tokenizeOptions) {\n var self = this;\n var shouldVault = true;\n var payload;\n var options = {\n flow: tokenizeOptions.billingToken && !tokenizeOptions.paymentID ? \"vault\" : \"checkout\",\n intent: tokenizeOptions.intent || this.intentFromCreatePayment\n };\n var params = {\n // The paymentToken provided by the PayPal JS SDK is the EC Token\n ecToken: tokenizeOptions.paymentToken,\n billingToken: tokenizeOptions.billingToken,\n payerId: tokenizeOptions.payerID,\n paymentId: tokenizeOptions.paymentID,\n orderId: tokenizeOptions.orderID,\n shippingOptionsId: tokenizeOptions.shippingOptionsId\n };\n if (tokenizeOptions.hasOwnProperty(\"vault\")) {\n shouldVault = tokenizeOptions.vault;\n }\n options.vault = shouldVault;\n analytics.sendEvent(this._clientPromise, \"paypal-checkout.tokenization.started\");\n return this._clientPromise.then(function (client) {\n return client.request({\n endpoint: \"payment_methods/paypal_accounts\",\n method: \"post\",\n data: self._formatTokenizeData(options, params)\n });\n }).then(function (response) {\n payload = self._formatTokenizePayload(response);\n analytics.sendEvent(self._clientPromise, \"paypal-checkout.tokenization.success\");\n if (payload.creditFinancingOffered) {\n analytics.sendEvent(self._clientPromise, \"paypal-checkout.credit.accepted\");\n }\n return payload;\n }).catch(function (err) {\n if (self._setupError) {\n return Promise.reject(self._setupError);\n }\n analytics.sendEvent(self._clientPromise, \"paypal-checkout.tokenization.failed\");\n return Promise.reject(convertToBraintreeError(err, {\n type: errors.PAYPAL_ACCOUNT_TOKENIZATION_FAILED.type,\n code: errors.PAYPAL_ACCOUNT_TOKENIZATION_FAILED.code,\n message: errors.PAYPAL_ACCOUNT_TOKENIZATION_FAILED.message\n }));\n });\n };\n\n /**\n * Resolves with the PayPal client id to be used when loading the PayPal SDK.\n * @public\n * @param {callback} [callback] The second argument, id, is a the PayPal client id. If no callback is provided, the promise resolves with the PayPal client id.\n * @returns {(Promise|void)} Returns a promise if no callback is provided.\n * @example\n * paypalCheckoutInstance.getClientId().then(function (id) {\n * var script = document.createElement('script');\n *\n * script.src = 'https://www.paypal.com/sdk/js?client-id=' + id;\n * script.onload = function () {\n * // setup the PayPal SDK\n * };\n *\n * document.body.appendChild(script);\n * });\n */\n PayPalCheckout.prototype.getClientId = function () {\n return this._clientPromise.then(function (client) {\n return client.getConfiguration().gatewayConfiguration.paypal.clientId;\n });\n };\n\n /**\n * Resolves when the PayPal SDK has been successfully loaded onto the page.\n * @public\n * @param {object} [options] A configuration object to modify the query params and data-attributes on the PayPal SDK. A subset of the parameters are listed below. For a full list of query params, see the [PayPal docs](https://developer.paypal.com/docs/checkout/reference/customize-sdk/?mark=query#query-parameters).\n * @param {string} [options.client-id] By default, this will be the client id associated with the authorization used to create the Braintree component. When used in conjunction with passing `authorization` when creating the PayPal Checkout component, you can speed up the loading of the PayPal SDK.\n * @param {string} [options.intent=\"authorize\"] By default, the PayPal SDK defaults to an intent of `capture`. Since the default intent when calling {@link PayPalCheckout#createPayment|`createPayment`} is `authorize`, the PayPal SDK will be loaded with `intent=authorize`. If you wish to use a different intent when calling {@link PayPalCheckout#createPayment|`createPayment`}, make sure it matches here. If `sale` is used, it will be converted to `capture` for the PayPal SDK. If the `vault: true` param is used, `tokenize` will be passed as the default intent.\n * @param {string} [options.locale=en_US] Use this option to change the language, links, and terminology used in the PayPal flow. This locale will be used unless the buyer has set a preferred locale for their account. If an unsupported locale is supplied, a fallback locale (determined by buyer preference or browser data) will be used and no error will be thrown.\n *\n * Supported locales are:\n * `da_DK`,\n * `de_DE`,\n * `en_AU`,\n * `en_GB`,\n * `en_US`,\n * `es_ES`,\n * `fr_CA`,\n * `fr_FR`,\n * `id_ID`,\n * `it_IT`,\n * `ja_JP`,\n * `ko_KR`,\n * `nl_NL`,\n * `no_NO`,\n * `pl_PL`,\n * `pt_BR`,\n * `pt_PT`,\n * `ru_RU`,\n * `sv_SE`,\n * `th_TH`,\n * `zh_CN`,\n * `zh_HK`,\n * and `zh_TW`.\n *\n * @param {string} [options.currency=\"USD\"] If a currency is passed in {@link PayPalCheckout#createPayment|`createPayment`}, it must match the currency passed here.\n * @param {boolean} [options.vault] Must be `true` when using `flow: vault` in {@link PayPalCheckout#createPayment|`createPayment`}.\n * @param {string} [options.components=buttons] By default, the Braintree SDK will only load the PayPal smart buttons component. If you would like to load just the [messages component](https://developer.paypal.com/docs/business/checkout/add-capabilities/credit-messaging/), pass `messages`. If you would like to load both, pass `buttons,messages`\n * @param {object} [options.dataAttributes] The data attributes to apply to the script. Any data attribute can be passed. A subset of the parameters are listed below. For a full list of data attributes, see the [PayPal docs](https://developer.paypal.com/docs/checkout/reference/customize-sdk/#script-parameters).\n * @param {string} [options.dataAttributes.client-token] The client token to use in the script. (usually not needed)\n * @param {string} [options.dataAttributes.csp-nonce] See the [PayPal docs about content security nonces](https://developer.paypal.com/docs/checkout/reference/customize-sdk/#csp-nonce).\n * @param {callback} [callback] Called when the PayPal SDK has been loaded onto the page. The second argument is the PayPal Checkout instance. If no callback is provided, the promise resolves with the PayPal Checkout instance when the PayPal SDK has been loaded onto the page.\n * @returns {(Promise|void)} Returns a promise if no callback is provided.\n * @example Without options\n * paypalCheckoutInstance.loadPayPalSDK().then(function () {\n * // window.paypal.Buttons is now available to use\n * });\n * @example With options\n * paypalCheckoutInstance.loadPayPalSDK({\n * 'client-id': 'PayPal Client Id', // Can speed up rendering time to hardcode this value\n *\n * intent: 'capture', // Make sure this value matches the value in createPayment\n * currency: 'USD', // Make sure this value matches the value in createPayment\n * }).then(function () {\n * // window.paypal.Buttons is now available to use\n * });\n * @example With Vaulting\n * paypalCheckoutInstance.loadPayPalSDK({\n * vault: true\n * }).then(function () {\n * // window.paypal.Buttons is now available to use\n * });\n */\n PayPalCheckout.prototype.loadPayPalSDK = function (options) {\n var idPromise, src;\n var loadPromise = new ExtendedPromise();\n var dataAttributes = options && options.dataAttributes || {};\n var userIdToken = dataAttributes[\"user-id-token\"] || dataAttributes[\"data-user-id-token\"];\n if (!userIdToken) {\n userIdToken = this._authorizationInformation.fingerprint && this._authorizationInformation.fingerprint.split(\"?\")[0];\n }\n this._paypalScript = document.createElement(\"script\");\n\n // NEXT_MAJOR_VERSION\n // this options object should have 2 properties:\n // * queryParams\n // * dataAttributes\n // should make organizing this better than squashing\n // all the query params at the top level and extracting\n // the data attributes\n options = assign({}, {\n components: \"buttons\"\n }, options);\n delete options.dataAttributes;\n\n // NEXT_MAJOR_VERSION if merchant passes an explicit intent,\n // currency, amount, etc, save those for use in createPayment\n // if no explicit param of that type is passed in when calling\n // createPayment to reduce the number of items that need to be\n // duplicated here and in createPayment\n if (options.vault) {\n options.intent = options.intent || \"tokenize\";\n } else {\n options.intent = options.intent || \"authorize\";\n options.currency = options.currency || \"USD\";\n }\n src = \"https://www.paypal.com/sdk/js?\";\n this._paypalScript.onload = function () {\n loadPromise.resolve();\n };\n Object.keys(dataAttributes).forEach(function (attribute) {\n this._paypalScript.setAttribute(\"data-\" + attribute.replace(/^data\\-/, \"\"), dataAttributes[attribute]);\n }.bind(this));\n if (options[\"client-id\"]) {\n idPromise = Promise.resolve(options[\"client-id\"]);\n } else {\n idPromise = this.getClientId();\n }\n idPromise.then(function (id) {\n options[\"client-id\"] = id;\n if (this._autoSetDataUserIdToken && userIdToken) {\n this._paypalScript.setAttribute(\"data-user-id-token\", userIdToken);\n\n // preloading improves the rendering time of the PayPal button\n this._attachPreloadPixel({\n id: id,\n userIdToken: userIdToken,\n amount: dataAttributes.amount,\n currency: options.currency,\n merchantId: options[\"merchant-id\"]\n });\n }\n this._paypalScript.src = querystring.queryify(src, options);\n document.head.insertBefore(this._paypalScript, document.head.firstElementChild);\n }.bind(this));\n return loadPromise.then(function () {\n return this;\n }.bind(this));\n };\n PayPalCheckout.prototype._attachPreloadPixel = function (options) {\n var request;\n var id = options.id;\n var userIdToken = options.userIdToken;\n var env = this._authorizationInformation.environment;\n var subdomain = env === \"production\" ? \"\" : \"sandbox.\";\n var url = PAYPAL_SDK_PRELOAD_URL.replace(\"{ENV}\", subdomain);\n var preloadOptions = {\n \"client-id\": id,\n \"user-id-token\": userIdToken\n };\n if (options.amount) {\n preloadOptions.amount = options.amount;\n }\n if (options.currency) {\n preloadOptions.currency = options.currency;\n }\n if (options.merchantId) {\n preloadOptions[\"merchant-id\"] = options.merchantId;\n }\n request = new XMLHttpRequest();\n request.open(\"GET\", querystring.queryify(url, preloadOptions));\n request.send();\n };\n PayPalCheckout.prototype._formatPaymentResourceData = function (options, config) {\n var key;\n var gatewayConfiguration = this._configuration.gatewayConfiguration;\n // NEXT_MAJOR_VERSION default value for intent in PayPal SDK is capture\n // but our integrations default value is authorize. Default this to capture\n // in the next major version.\n var intent = options.intent;\n var paymentResource = {\n // returnUrl and cancelUrl are required in hermes create_payment_resource route\n // but are not used by the PayPal sdk, except to redirect to an error page\n returnUrl: config.returnUrl || \"https://www.paypal.com/checkoutnow/error\",\n cancelUrl: config.cancelUrl || \"https://www.paypal.com/checkoutnow/error\",\n offerPaypalCredit: options.offerCredit === true,\n merchantAccountId: this._merchantAccountId,\n experienceProfile: {\n brandName: options.displayName || gatewayConfiguration.paypal.displayName,\n localeCode: options.locale,\n noShipping: (!options.enableShippingAddress).toString(),\n addressOverride: options.shippingAddressEditable === false,\n landingPageType: options.landingPageType\n },\n shippingOptions: options.shippingOptions\n };\n if (options.flow === \"checkout\") {\n paymentResource.amount = options.amount;\n paymentResource.currencyIsoCode = options.currency;\n paymentResource.requestBillingAgreement = options.requestBillingAgreement;\n if (intent) {\n // 'sale' has been changed to 'capture' in PayPal's backend, but\n // we use an old version with 'sale'. We provide capture as an alias\n // to match the PayPal SDK\n if (intent === \"capture\") {\n intent = \"sale\";\n }\n paymentResource.intent = intent;\n }\n if (options.hasOwnProperty(\"lineItems\")) {\n paymentResource.lineItems = options.lineItems;\n }\n if (options.hasOwnProperty(\"vaultInitiatedCheckoutPaymentMethodToken\")) {\n paymentResource.vaultInitiatedCheckoutPaymentMethodToken = options.vaultInitiatedCheckoutPaymentMethodToken;\n }\n if (options.hasOwnProperty(\"shippingOptions\")) {\n paymentResource.shippingOptions = options.shippingOptions;\n }\n for (key in options.shippingAddressOverride) {\n if (options.shippingAddressOverride.hasOwnProperty(key)) {\n paymentResource[key] = options.shippingAddressOverride[key];\n }\n }\n if (options.hasOwnProperty(\"billingAgreementDetails\")) {\n paymentResource.billingAgreementDetails = options.billingAgreementDetails;\n }\n } else {\n paymentResource.shippingAddress = options.shippingAddressOverride;\n if (options.billingAgreementDescription) {\n paymentResource.description = options.billingAgreementDescription;\n }\n }\n\n // this needs to be set outside of the block where add it to the\n // payment request so that a follow up tokenization call can use it,\n // but if a second create payment resource call is made without\n // the correlation id, we want to reset it to undefined so that the\n // tokenization call does not use a stale correlation id\n this._riskCorrelationId = options.riskCorrelationId;\n if (options.riskCorrelationId) {\n paymentResource.correlationId = this._riskCorrelationId;\n }\n return paymentResource;\n };\n\n /**\n * @ignore\n * @static\n * @function _verifyConsistentCurrency\n * Verifies that `options.currency` and the currencies for each `shippingOption` the same.\n * @param {object} options `options` provided for `updatePayment`.\n * @returns {boolean} true is currencies match (or no shipping options); false if currencies do not match.\n */\n\n PayPalCheckout.prototype._verifyConsistentCurrency = function (options) {\n if (options.currency && options.hasOwnProperty(\"shippingOptions\") && Array.isArray(options.shippingOptions)) {\n return options.shippingOptions.every(function (item) {\n return item.amount && item.amount.currency && options.currency.toLowerCase() === item.amount.currency.toLowerCase();\n });\n }\n return true;\n };\n\n /**\n * @ignore\n * @static\n * @function _hasMissingOption\n * @param {object} options All options provided for intiating the PayPal flow.\n * @param {array} required A list of required inputs that must be include as part of the options.\n * @returns {boolean} Returns a boolean.\n */\n\n PayPalCheckout.prototype._hasMissingOption = function (options, required) {\n var i, option;\n required = required || [];\n if (!options.hasOwnProperty(\"amount\") && !options.hasOwnProperty(\"lineItems\")) {\n return true;\n }\n for (i = 0; i < required.length; i++) {\n option = required[i];\n if (!options.hasOwnProperty(option)) {\n return true;\n }\n }\n return false;\n };\n PayPalCheckout.prototype._formatUpdatePaymentData = function (options) {\n var self = this;\n var paymentResource = {\n merchantAccountId: this._merchantAccountId,\n paymentId: options.paymentId || options.orderId,\n currencyIsoCode: options.currency\n };\n if (options.hasOwnProperty(\"amount\")) {\n paymentResource.amount = options.amount;\n }\n if (options.hasOwnProperty(\"lineItems\")) {\n paymentResource.lineItems = options.lineItems;\n }\n if (options.hasOwnProperty(\"shippingOptions\")) {\n paymentResource.shippingOptions = options.shippingOptions;\n }\n\n /* shippingAddress not supported yet */\n if (options.hasOwnProperty(\"shippingAddress\")) {\n analytics.sendEvent(self._clientPromise, \"paypal-checkout.updatePayment.shippingAddress.provided.by-the-merchant\");\n paymentResource.line1 = options.shippingAddress.line1;\n if (options.shippingAddress.hasOwnProperty(\"line2\")) {\n paymentResource.line2 = options.shippingAddress.line2;\n }\n paymentResource.city = options.shippingAddress.city;\n paymentResource.state = options.shippingAddress.state;\n paymentResource.postalCode = options.shippingAddress.postalCode;\n paymentResource.countryCode = options.shippingAddress.countryCode;\n if (options.shippingAddress.hasOwnProperty(\"phone\")) {\n paymentResource.phone = options.shippingAddress.phone;\n }\n if (options.shippingAddress.hasOwnProperty(\"recipientName\")) {\n paymentResource.recipientName = options.shippingAddress.recipientName;\n }\n }\n return paymentResource;\n };\n PayPalCheckout.prototype._formatTokenizeData = function (options, params) {\n var clientConfiguration = this._configuration;\n var gatewayConfiguration = clientConfiguration.gatewayConfiguration;\n var isTokenizationKey = clientConfiguration.authorizationType === \"TOKENIZATION_KEY\";\n var isVaultFlow = options.flow === \"vault\";\n var correlationId = this._riskCorrelationId || params.billingToken || params.ecToken;\n var data = {\n paypalAccount: {\n correlationId: correlationId,\n options: {\n validate: isVaultFlow && !isTokenizationKey && options.vault\n }\n }\n };\n if (isVaultFlow) {\n data.paypalAccount.billingAgreementToken = params.billingToken;\n } else {\n data.paypalAccount.paymentToken = params.paymentId || params.orderId;\n data.paypalAccount.payerId = params.payerId;\n data.paypalAccount.unilateral = gatewayConfiguration.paypal.unvettedMerchant;\n if (options.intent) {\n data.paypalAccount.intent = options.intent;\n }\n }\n if (this._merchantAccountId) {\n data.merchantAccountId = this._merchantAccountId;\n }\n return data;\n };\n PayPalCheckout.prototype._formatTokenizePayload = function (response) {\n var payload;\n var account = {};\n if (response.paypalAccounts) {\n account = response.paypalAccounts[0];\n }\n payload = {\n nonce: account.nonce,\n details: {},\n type: account.type\n };\n if (account.details && account.details.payerInfo) {\n payload.details = account.details.payerInfo;\n }\n if (account.details && account.details.creditFinancingOffered) {\n payload.creditFinancingOffered = account.details.creditFinancingOffered;\n }\n if (account.details && account.details.shippingOptionId) {\n payload.shippingOptionId = account.details.shippingOptionId;\n }\n if (account.details && account.details.cobrandedCardLabel) {\n payload.cobrandedCardLabel = account.details.cobrandedCardLabel;\n }\n return payload;\n };\n\n /**\n * Cleanly tear down anything set up by {@link module:braintree-web/paypal-checkout.create|create}.\n * @public\n * @param {callback} [callback] Called once teardown is complete. No data is returned if teardown completes successfully.\n * @example\n * paypalCheckoutInstance.teardown();\n * @example With callback\n * paypalCheckoutInstance.teardown(function () {\n * // teardown is complete\n * });\n * @returns {(Promise|void)} Returns a promise if no callback is provided.\n */\n PayPalCheckout.prototype.teardown = function () {\n var self = this;\n convertMethodsToError(this, methods(PayPalCheckout.prototype));\n if (this._paypalScript && this._paypalScript.parentNode) {\n this._paypalScript.parentNode.removeChild(this._paypalScript);\n }\n return this._frameServicePromise.catch(function () {\n // no need to error in teardown for an error setting up the frame service\n }).then(function () {\n if (!self._frameService) {\n return Promise.resolve();\n }\n return self._frameService.teardown();\n });\n };\n module.exports = wrapPromise.wrapPrototype(PayPalCheckout);\n }, {\n \"../lib/analytics\": 72,\n \"../lib/assign\": 74,\n \"../lib/braintree-error\": 77,\n \"../lib/constants\": 78,\n \"../lib/convert-methods-to-error\": 79,\n \"../lib/convert-to-braintree-error\": 80,\n \"../lib/create-assets-url\": 81,\n \"../lib/create-authorization-data\": 82,\n \"../lib/create-deferred-client\": 83,\n \"../lib/frame-service/external\": 91,\n \"../lib/methods\": 107,\n \"../lib/querystring\": 109,\n \"../lib/use-min\": 112,\n \"../paypal/shared/constants\": 144,\n \"./errors\": 141,\n \"@braintree/extended-promise\": 24,\n \"@braintree/wrap-promise\": 33\n }],\n 144: [function (require, module, exports) {\n \"use strict\";\n\n module.exports = {\n LANDING_FRAME_NAME: \"braintreepaypallanding\",\n FLOW_ENDPOINTS: {\n checkout: \"create_payment_resource\",\n vault: \"setup_billing_agreement\"\n },\n REQUIRED_OPTIONS: [\"paymentId\", \"currency\"]\n };\n }, {}],\n 145: [function (require, module, exports) {\n \"use strict\";\n\n var assign = require(\"../../../lib/assign\").assign;\n var analytics = require(\"../../../lib/analytics\");\n var BraintreeError = require(\"../../../lib/braintree-error\");\n var isVerifiedDomain = require(\"../../../lib/is-verified-domain\");\n var ExtendedPromise = require(\"@braintree/extended-promise\");\n var EventEmitter = require(\"@braintree/event-emitter\");\n var errors = require(\"../../shared/errors\");\n var iFramer = require(\"@braintree/iframer\");\n var Bus = require(\"framebus\");\n var constants = require(\"../../shared/constants\");\n var uuid = require(\"@braintree/uuid\");\n var events = require(\"../../shared/events\");\n var useMin = require(\"../../../lib/use-min\");\n var BUS_CONFIGURATION_REQUEST_EVENT = require(\"../../../lib/constants\").BUS_CONFIGURATION_REQUEST_EVENT;\n var VERSION = \"3.97.1\";\n var IFRAME_HEIGHT = 400;\n var IFRAME_WIDTH = 400;\n ExtendedPromise.suppressUnhandledPromiseMessage = true;\n function BaseFramework(options) {\n EventEmitter.call(this);\n this._client = options.client;\n this._createPromise = options.createPromise;\n this._createOptions = options;\n if (this._client) {\n this._isDebug = this._client.getConfiguration().isDebug;\n this._assetsUrl = this._client.getConfiguration().gatewayConfiguration.assetsUrl;\n } else {\n this._isDebug = Boolean(options.isDebug);\n this._assetsUrl = options.assetsUrl;\n }\n this._assetsUrl = this._assetsUrl + \"/web/\" + VERSION;\n }\n EventEmitter.createChild(BaseFramework);\n BaseFramework.prototype._waitForClient = function () {\n if (this._client) {\n return Promise.resolve();\n }\n return this._createPromise.then(function (client) {\n this._client = client;\n }.bind(this));\n };\n BaseFramework.prototype.setUpEventListeners = function () {\n throw new BraintreeError(errors.THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED);\n };\n BaseFramework.prototype.verifyCard = function (options, privateOptions) {\n var formattedOptions, error;\n var self = this;\n privateOptions = privateOptions || {};\n error = this._checkForVerifyCardError(options, privateOptions);\n if (error) {\n return Promise.reject(error);\n }\n this._verifyCardInProgress = true;\n formattedOptions = this._formatVerifyCardOptions(options);\n return this._formatLookupData(formattedOptions).then(function (data) {\n analytics.sendEvent(self._createPromise, \"three-d-secure.verification-flow.started\");\n return self._performLookup(formattedOptions.nonce, data);\n }).then(function (response) {\n analytics.sendEvent(self._createPromise, \"three-d-secure.verification-flow.3ds-version.\" + response.lookup.threeDSecureVersion);\n return self._onLookupComplete(response, formattedOptions);\n }).then(function (response) {\n return self.initializeChallengeWithLookupResponse(response, formattedOptions);\n }).then(function (payload) {\n self._resetVerificationState();\n analytics.sendEvent(self._createPromise, \"three-d-secure.verification-flow.completed\");\n return payload;\n }).catch(function (err) {\n self._resetVerificationState();\n analytics.sendEvent(self._createPromise, \"three-d-secure.verification-flow.failed\");\n return Promise.reject(err);\n });\n };\n BaseFramework.prototype._checkForFrameworkSpecificVerifyCardErrors = function () {\n throw new BraintreeError(errors.THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED);\n };\n BaseFramework.prototype._presentChallenge = function () {\n throw new BraintreeError(errors.THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED);\n };\n BaseFramework.prototype.prepareLookup = function () {\n throw new BraintreeError(errors.THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED);\n };\n BaseFramework.prototype._resetVerificationState = function () {\n this._verifyCardInProgress = false;\n this._verifyCardPromisePlus = null;\n if (typeof this._reloadThreeDSecure === \"function\") {\n this._reloadThreeDSecure();\n }\n };\n BaseFramework.prototype._performLookup = function (nonce, data) {\n var self = this;\n var url = \"payment_methods/\" + nonce + \"/three_d_secure/lookup\";\n return this._waitForClient().then(function () {\n return self._client.request({\n endpoint: url,\n method: \"post\",\n data: data\n }).catch(function (err) {\n var status = err && err.details && err.details.httpStatus;\n var analyticsMessage = \"three-d-secure.verification-flow.lookup-failed\";\n var lookupError;\n if (status === 404) {\n lookupError = errors.THREEDS_LOOKUP_TOKENIZED_CARD_NOT_FOUND_ERROR;\n analyticsMessage += \".404\";\n } else if (status === 422) {\n lookupError = errors.THREEDS_LOOKUP_VALIDATION_ERROR;\n analyticsMessage += \".422\";\n } else {\n lookupError = errors.THREEDS_LOOKUP_ERROR;\n }\n analytics.sendEvent(self._createPromise, analyticsMessage);\n return Promise.reject(new BraintreeError({\n type: lookupError.type,\n code: lookupError.code,\n message: lookupError.message,\n details: {\n originalError: err\n }\n }));\n });\n });\n };\n BaseFramework.prototype._checkForVerifyCardError = function (options, privateOptions) {\n var errorOption;\n if (this._verifyCardInProgress === true) {\n return new BraintreeError(errors.THREEDS_AUTHENTICATION_IN_PROGRESS);\n } else if (!options.nonce) {\n errorOption = \"a nonce\";\n } else if (!options.amount) {\n errorOption = \"an amount\";\n }\n if (!errorOption) {\n errorOption = this._checkForFrameworkSpecificVerifyCardErrors(options, privateOptions);\n }\n if (errorOption) {\n return new BraintreeError({\n type: errors.THREEDS_MISSING_VERIFY_CARD_OPTION.type,\n code: errors.THREEDS_MISSING_VERIFY_CARD_OPTION.code,\n message: \"verifyCard options must include \" + errorOption + \".\"\n });\n }\n return null;\n };\n BaseFramework.prototype.initializeChallengeWithLookupResponse = function (lookupResponse, options) {\n var self = this;\n options = options || {};\n this._lookupPaymentMethod = lookupResponse.paymentMethod;\n\n // sets this in the case that initializeChallengeWithLookupResponse is\n // called as a standalone method from a server side lookup. In a normal\n // verifyCard flow, this promise will already exist\n self._verifyCardPromisePlus = self._verifyCardPromisePlus || new ExtendedPromise();\n self._handleLookupResponse(lookupResponse, options);\n return self._verifyCardPromisePlus.then(function (payload) {\n analytics.sendEvent(self._createPromise, \"three-d-secure.verification-flow.liability-shifted.\" + String(payload.liabilityShifted));\n analytics.sendEvent(self._createPromise, \"three-d-secure.verification-flow.liability-shift-possible.\" + String(payload.liabilityShiftPossible));\n return payload;\n });\n };\n BaseFramework.prototype._handleLookupResponse = function (lookupResponse, options) {\n var challengeShouldBePresented = Boolean(lookupResponse.lookup && lookupResponse.lookup.acsUrl);\n var details;\n analytics.sendEvent(this._createPromise, \"three-d-secure.verification-flow.challenge-presented.\" + String(challengeShouldBePresented));\n if (challengeShouldBePresented) {\n this._presentChallenge(lookupResponse, options);\n } else {\n details = this._formatAuthResponse(lookupResponse.paymentMethod, lookupResponse.threeDSecureInfo);\n details.verificationDetails = lookupResponse.threeDSecureInfo;\n this._verifyCardPromisePlus.resolve(details);\n }\n };\n BaseFramework.prototype._onLookupComplete = function (response) {\n this._lookupPaymentMethod = response.paymentMethod;\n this._verifyCardPromisePlus = new ExtendedPromise();\n return Promise.resolve(response);\n };\n BaseFramework.prototype._formatAuthResponse = function (paymentMethod, threeDSecureInfo) {\n return {\n nonce: paymentMethod.nonce,\n type: paymentMethod.type,\n binData: paymentMethod.binData,\n details: paymentMethod.details,\n description: paymentMethod.description && paymentMethod.description.replace(/\\+/g, \" \"),\n liabilityShifted: threeDSecureInfo && threeDSecureInfo.liabilityShifted,\n liabilityShiftPossible: threeDSecureInfo && threeDSecureInfo.liabilityShiftPossible,\n threeDSecureInfo: paymentMethod.threeDSecureInfo\n };\n };\n BaseFramework.prototype._formatVerifyCardOptions = function (options) {\n return assign({}, options);\n };\n BaseFramework.prototype._formatLookupData = function (options) {\n var data = {\n amount: options.amount\n };\n if (options.collectDeviceData === true) {\n data.browserColorDepth = window.screen.colorDepth;\n data.browserJavaEnabled = window.navigator.javaEnabled();\n data.browserJavascriptEnabled = true;\n data.browserLanguage = window.navigator.language;\n data.browserScreenHeight = window.screen.height;\n data.browserScreenWidth = window.screen.width;\n data.browserTimeZone = new Date().getTimezoneOffset();\n data.deviceChannel = \"Browser\";\n }\n return Promise.resolve(data);\n };\n BaseFramework.prototype._handleV1AuthResponse = function (data) {\n var authResponse = JSON.parse(data.auth_response);\n if (authResponse.success) {\n this._verifyCardPromisePlus.resolve(this._formatAuthResponse(authResponse.paymentMethod, authResponse.threeDSecureInfo));\n } else if (authResponse.threeDSecureInfo && authResponse.threeDSecureInfo.liabilityShiftPossible) {\n this._verifyCardPromisePlus.resolve(this._formatAuthResponse(this._lookupPaymentMethod, authResponse.threeDSecureInfo));\n } else {\n this._verifyCardPromisePlus.reject(new BraintreeError({\n type: BraintreeError.types.UNKNOWN,\n code: \"UNKNOWN_AUTH_RESPONSE\",\n message: authResponse.error.message\n }));\n }\n };\n BaseFramework.prototype.cancelVerifyCard = function () {\n var response, threeDSecureInfo;\n this._verifyCardInProgress = false;\n if (!this._lookupPaymentMethod) {\n return Promise.reject(new BraintreeError(errors.THREEDS_NO_VERIFICATION_PAYLOAD));\n }\n threeDSecureInfo = this._lookupPaymentMethod.threeDSecureInfo;\n response = assign({}, this._lookupPaymentMethod, {\n liabilityShiftPossible: threeDSecureInfo && threeDSecureInfo.liabilityShiftPossible,\n liabilityShifted: threeDSecureInfo && threeDSecureInfo.liabilityShifted,\n verificationDetails: threeDSecureInfo && threeDSecureInfo.verificationDetails\n });\n return Promise.resolve(response);\n };\n BaseFramework.prototype._setupV1Bus = function (options) {\n var clientConfiguration = this._client.getConfiguration();\n var parentURL = window.location.href.split(\"#\")[0];\n var lookupResponse = options.lookupResponse;\n var channel = uuid();\n var bus = new Bus({\n channel: channel,\n verifyDomain: isVerifiedDomain\n });\n var authenticationCompleteBaseUrl = this._assetsUrl + \"/html/three-d-secure-authentication-complete-frame.html?channel=\" + encodeURIComponent(channel) + \"&\";\n bus.on(BUS_CONFIGURATION_REQUEST_EVENT, function (reply) {\n reply({\n clientConfiguration: clientConfiguration,\n nonce: options.nonce,\n acsUrl: lookupResponse.acsUrl,\n pareq: lookupResponse.pareq,\n termUrl: lookupResponse.termUrl + \"&three_d_secure_version=\" + VERSION + \"&authentication_complete_base_url=\" + encodeURIComponent(authenticationCompleteBaseUrl),\n md: lookupResponse.md,\n parentUrl: parentURL\n });\n });\n bus.on(events.AUTHENTICATION_COMPLETE, options.handleAuthResponse);\n return bus;\n };\n BaseFramework.prototype._setupV1Iframe = function (options) {\n var url = this._assetsUrl + \"/html/three-d-secure-bank-frame\" + useMin(this._isDebug) + \".html?showLoader=\" + options.showLoader;\n var bankIframe = iFramer({\n src: url,\n height: IFRAME_HEIGHT,\n width: IFRAME_WIDTH,\n name: constants.LANDING_FRAME_NAME + \"_\" + this._v1Bus.channel,\n title: \"3D Secure Authorization Frame\"\n });\n return bankIframe;\n };\n BaseFramework.prototype._setupV1Elements = function (options) {\n this._v1Bus = this._setupV1Bus(options);\n this._v1Iframe = this._setupV1Iframe(options);\n };\n BaseFramework.prototype._teardownV1Elements = function () {\n if (this._v1Bus) {\n this._v1Bus.teardown();\n this._v1Bus = null;\n }\n if (this._v1Iframe && this._v1Iframe.parentNode) {\n this._v1Iframe.parentNode.removeChild(this._v1Iframe);\n this._v1Iframe = null;\n }\n if (this._onV1Keyup) {\n document.removeEventListener(\"keyup\", this._onV1Keyup);\n this._onV1Keyup = null;\n }\n };\n BaseFramework.prototype.teardown = function () {\n analytics.sendEvent(this._createPromise, \"three-d-secure.teardown-completed\");\n this._teardownV1Elements();\n return Promise.resolve();\n };\n module.exports = BaseFramework;\n }, {\n \"../../../lib/analytics\": 72,\n \"../../../lib/assign\": 74,\n \"../../../lib/braintree-error\": 77,\n \"../../../lib/constants\": 78,\n \"../../../lib/is-verified-domain\": 105,\n \"../../../lib/use-min\": 112,\n \"../../shared/constants\": 154,\n \"../../shared/errors\": 155,\n \"../../shared/events\": 156,\n \"@braintree/event-emitter\": 23,\n \"@braintree/extended-promise\": 24,\n \"@braintree/iframer\": 25,\n \"@braintree/uuid\": 29,\n \"framebus\": 180\n }],\n 146: [function (require, module, exports) {\n \"use strict\";\n\n // NEXT_MAJOR_VERSION drop support for Bootstrap framework,\n // recomend using inline frame version and putting it in\n // the merchant's own bootstrap modal\n var SongbirdFramework = require(\"./songbird\");\n function Bootstrap3ModalFramework(options) {\n SongbirdFramework.call(this, options);\n }\n Bootstrap3ModalFramework.prototype = Object.create(SongbirdFramework.prototype, {\n constructor: SongbirdFramework\n });\n Bootstrap3ModalFramework.prototype._createV1IframeModalElement = function (iframe) {\n var modal = document.createElement(\"div\");\n modal.innerHTML = '
' + '
' + '
' + '
' + '' + \"
\" + \"
\" + \"
\" + '
' + \"
\";\n modal.querySelector(\"[data-braintree-v1-fallback-iframe-container]\").appendChild(iframe);\n return modal;\n };\n Bootstrap3ModalFramework.prototype._createCardinalConfigurationOptions = function (setupOptions) {\n var options = SongbirdFramework.prototype._createCardinalConfigurationOptions.call(this, setupOptions);\n options.payment.framework = \"bootstrap3\";\n return options;\n };\n module.exports = Bootstrap3ModalFramework;\n }, {\n \"./songbird\": 151\n }],\n 147: [function (require, module, exports) {\n \"use strict\";\n\n var SongbirdFramework = require(\"./songbird\");\n function CardinalModalFramework(options) {\n SongbirdFramework.call(this, options);\n }\n CardinalModalFramework.prototype = Object.create(SongbirdFramework.prototype, {\n constructor: SongbirdFramework\n });\n CardinalModalFramework.prototype._createV1IframeModalElement = function (iframe) {\n var modal = document.createElement(\"div\");\n var addCloseButton = Boolean(this._createOptions && this._createOptions.cardinalSDKConfig && this._createOptions.cardinalSDKConfig.payment && this._createOptions.cardinalSDKConfig.payment.displayExitButton);\n modal.innerHTML = '
' + \"
\" + \"\" + \"
\" +\n // iframe container\n '
' + \"
\" +\n // modal backdrop\n '
';\n if (!addCloseButton) {\n modal.querySelector(\"[data-braintree-v1-fallback-close-button]\").style.display = \"none\";\n }\n modal.querySelector(\"[data-braintree-v1-fallback-iframe-container]\").appendChild(iframe);\n return modal;\n };\n module.exports = CardinalModalFramework;\n }, {\n \"./songbird\": 151\n }],\n 148: [function (require, module, exports) {\n \"use strict\";\n\n var LegacyFramework = require(\"./legacy\");\n var CardinalModalFramework = require(\"./cardinal-modal\");\n var Bootstrap3ModalFramework = require(\"./bootstrap3-modal\");\n var InlineIframeFramework = require(\"./inline-iframe\");\n module.exports = {\n legacy: LegacyFramework,\n \"cardinal-modal\": CardinalModalFramework,\n \"bootstrap3-modal\": Bootstrap3ModalFramework,\n \"inline-iframe\": InlineIframeFramework\n };\n }, {\n \"./bootstrap3-modal\": 146,\n \"./cardinal-modal\": 147,\n \"./inline-iframe\": 149,\n \"./legacy\": 150\n }],\n 149: [function (require, module, exports) {\n \"use strict\";\n\n var SongbirdFramework = require(\"./songbird\");\n var BraintreeError = require(\"../../../lib/braintree-error\");\n var errors = require(\"../../shared/errors\");\n var enumerate = require(\"../../../lib/enumerate\");\n function InlineIframeFramework(options) {\n SongbirdFramework.call(this, options);\n }\n InlineIframeFramework.prototype = Object.create(SongbirdFramework.prototype, {\n constructor: SongbirdFramework\n });\n InlineIframeFramework.events = enumerate([\"AUTHENTICATION_IFRAME_AVAILABLE\"], \"inline-iframe-framework:\");\n InlineIframeFramework.prototype.setUpEventListeners = function (reply) {\n SongbirdFramework.prototype.setUpEventListeners.call(this, reply);\n this.on(InlineIframeFramework.events.AUTHENTICATION_IFRAME_AVAILABLE, function (payload, next) {\n reply(\"authentication-iframe-available\", payload, next);\n });\n };\n InlineIframeFramework.prototype._createCardinalConfigurationOptions = function (setupOptions) {\n var options = SongbirdFramework.prototype._createCardinalConfigurationOptions.call(this, setupOptions);\n options.payment.framework = \"inline\";\n return options;\n };\n InlineIframeFramework.prototype._addV1IframeToPage = function () {\n this._emit(InlineIframeFramework.events.AUTHENTICATION_IFRAME_AVAILABLE, {\n element: this._v1Modal\n }, function () {\n // NOOP\n });\n };\n InlineIframeFramework.prototype._setupFrameworkSpecificListeners = function () {\n this.setCardinalListener(\"ui.inline.setup\", this._onInlineSetup.bind(this));\n };\n InlineIframeFramework.prototype._onInlineSetup = function (htmlTemplate, details, resolve, reject) {\n var container, hasError;\n if (!htmlTemplate || !details) {\n hasError = true;\n } else if (details.paymentType !== \"CCA\") {\n hasError = true;\n } else if (!(details.data.mode === \"suppress\" || details.data.mode === \"static\")) {\n hasError = true;\n }\n if (hasError) {\n reject(new BraintreeError(errors.THREEDS_INLINE_IFRAME_DETAILS_INCORRECT));\n return;\n }\n container = document.createElement(\"div\");\n container.innerHTML = htmlTemplate;\n if (details.data.mode === \"suppress\") {\n container.style.display = \"none\";\n document.body.appendChild(container);\n resolve();\n } else if (details.data.mode === \"static\") {\n this._emit(InlineIframeFramework.events.AUTHENTICATION_IFRAME_AVAILABLE, {\n element: container\n }, function () {\n resolve();\n });\n }\n };\n module.exports = InlineIframeFramework;\n }, {\n \"../../../lib/braintree-error\": 77,\n \"../../../lib/enumerate\": 86,\n \"../../shared/errors\": 155,\n \"./songbird\": 151\n }],\n 150: [function (require, module, exports) {\n \"use strict\";\n\n var BaseFramework = require(\"./base\");\n var deferred = require(\"../../../lib/deferred\");\n function LegacyFramework(options) {\n BaseFramework.call(this, options);\n }\n LegacyFramework.prototype = Object.create(BaseFramework.prototype, {\n constructor: LegacyFramework\n });\n LegacyFramework.prototype.setUpEventListeners = function () {\n // noop\n };\n LegacyFramework.prototype.transformV1CustomerBillingAddress = function (customer) {\n customer.billingAddress.line1 = customer.billingAddress.streetAddress;\n customer.billingAddress.line2 = customer.billingAddress.extendedAddress;\n customer.billingAddress.city = customer.billingAddress.locality;\n customer.billingAddress.state = customer.billingAddress.region;\n customer.billingAddress.countryCode = customer.billingAddress.countryCodeAlpha2;\n delete customer.billingAddress.streetAddress;\n delete customer.billingAddress.extendedAddress;\n delete customer.billingAddress.locality;\n delete customer.billingAddress.region;\n delete customer.billingAddress.countryCodeAlpha2;\n return customer;\n };\n LegacyFramework.prototype._createIframe = function (options) {\n var self = this;\n this._setupV1Elements({\n nonce: options.nonce,\n lookupResponse: options.lookupResponse,\n showLoader: options.showLoader,\n handleAuthResponse: function (data) {\n self._handleAuthResponse(data, options);\n }\n });\n return this._v1Iframe;\n };\n LegacyFramework.prototype._handleAuthResponse = function (data, options) {\n this._v1Bus.teardown();\n options.removeFrame();\n\n // This also has to be in a setTimeout so it executes after the `removeFrame`.\n deferred(function () {\n this._handleV1AuthResponse(data);\n }.bind(this))();\n };\n LegacyFramework.prototype._checkForFrameworkSpecificVerifyCardErrors = function (options) {\n var errorOption;\n if (typeof options.addFrame !== \"function\") {\n errorOption = \"an addFrame function\";\n } else if (typeof options.removeFrame !== \"function\") {\n errorOption = \"a removeFrame function\";\n }\n return errorOption;\n };\n LegacyFramework.prototype._formatVerifyCardOptions = function (options) {\n var modifiedOptions = BaseFramework.prototype._formatVerifyCardOptions.call(this, options);\n modifiedOptions.addFrame = deferred(options.addFrame);\n modifiedOptions.removeFrame = deferred(options.removeFrame);\n modifiedOptions.showLoader = options.showLoader !== false;\n return modifiedOptions;\n };\n LegacyFramework.prototype._formatLookupData = function (options) {\n var self = this;\n return BaseFramework.prototype._formatLookupData.call(this, options).then(function (data) {\n if (options.customer && options.customer.billingAddress) {\n data.customer = self.transformV1CustomerBillingAddress(options.customer);\n }\n return data;\n });\n };\n LegacyFramework.prototype._presentChallenge = function (lookupResponse, options) {\n options.addFrame(null, this._createIframe({\n showLoader: options.showLoader,\n lookupResponse: lookupResponse.lookup,\n nonce: lookupResponse.paymentMethod.nonce,\n removeFrame: options.removeFrame\n }));\n };\n module.exports = LegacyFramework;\n }, {\n \"../../../lib/deferred\": 84,\n \"./base\": 145\n }],\n 151: [function (require, module, exports) {\n \"use strict\";\n\n var BaseFramework = require(\"./base\");\n var assign = require(\"../../../lib/assign\").assign;\n var deferred = require(\"../../../lib/deferred\");\n var BraintreeError = require(\"../../../lib/braintree-error\");\n var convertToBraintreeError = require(\"../../../lib/convert-to-braintree-error\");\n var analytics = require(\"../../../lib/analytics\");\n var assets = require(\"../../../lib/assets\");\n var errors = require(\"../../shared/errors\");\n var enumerate = require(\"../../../lib/enumerate\");\n var constants = require(\"../../shared/constants\");\n var ExtendedPromise = require(\"@braintree/extended-promise\");\n var INTEGRATION_TIMEOUT_MS = require(\"../../../lib/constants\").INTEGRATION_TIMEOUT_MS;\n var PLATFORM = require(\"../../../lib/constants\").PLATFORM;\n var VERSION = \"3.97.1\";\n var CUSTOMER_CANCELED_SONGBIRD_MODAL = \"01\";\n var SONGBIRD_UI_EVENTS = [\"ui.close\", \"ui.render\",\n // TODO these events are not documented in the\n // client reference because so far we have\n // not been able to trigger them in our testing\n \"ui.renderHidden\", \"ui.loading.close\", \"ui.loading.render\"];\n var SCA_EXEMPTION_TYPES = [\"low_value\", \"transaction_risk_analysis\"];\n ExtendedPromise.suppressUnhandledPromiseMessage = true;\n function SongbirdFramework(options) {\n BaseFramework.call(this, options);\n this._useV1Fallback = false;\n this._clientMetadata = {\n requestedThreeDSecureVersion: \"2\",\n sdkVersion: PLATFORM + \"/\" + VERSION\n };\n this.originalSetupOptions = options;\n this._getDfReferenceIdPromisePlus = new ExtendedPromise();\n this.setupSongbird(options);\n this._cardinalEvents = [];\n }\n SongbirdFramework.prototype = Object.create(BaseFramework.prototype, {\n constructor: SongbirdFramework\n });\n SongbirdFramework.events = enumerate([\"LOOKUP_COMPLETE\", \"CUSTOMER_CANCELED\", \"UI.CLOSE\", \"UI.RENDER\", \"UI.RENDERHIDDEN\", \"UI.LOADING.CLOSE\", \"UI.LOADING.RENDER\"], \"songbird-framework:\");\n SongbirdFramework.prototype.setUpEventListeners = function (reply) {\n this.on(SongbirdFramework.events.LOOKUP_COMPLETE, function (data, next) {\n reply(\"lookup-complete\", data, next);\n });\n this.on(SongbirdFramework.events.CUSTOMER_CANCELED, function () {\n reply(\"customer-canceled\");\n });\n this.on(SongbirdFramework.events[\"UI.CLOSE\"], function () {\n reply(\"authentication-modal-close\");\n });\n this.on(SongbirdFramework.events[\"UI.RENDER\"], function () {\n reply(\"authentication-modal-render\");\n });\n this.on(SongbirdFramework.events[\"UI.RENDERHIDDEN\"], function () {\n reply(\"authentication-modal-render-hidden\");\n });\n this.on(SongbirdFramework.events[\"UI.LOADING.CLOSE\"], function () {\n reply(\"authentication-modal-loader-close\");\n });\n this.on(SongbirdFramework.events[\"UI.LOADING.RENDER\"], function () {\n reply(\"authentication-modal-loader-render\");\n });\n };\n SongbirdFramework.prototype.prepareLookup = function (options) {\n var data = assign({}, options);\n var self = this;\n return this.getDfReferenceId().then(function (id) {\n data.dfReferenceId = id;\n }).then(function () {\n return self._triggerCardinalBinProcess(options.bin);\n }).catch(function () {\n // catch and ignore errors from looking up\n // df reference and Cardinal bin process\n }).then(function () {\n return self._waitForClient();\n }).then(function () {\n data.clientMetadata = self._clientMetadata;\n data.authorizationFingerprint = self._client.getConfiguration().authorizationFingerprint;\n data.braintreeLibraryVersion = \"braintree/web/\" + VERSION;\n return data;\n });\n };\n SongbirdFramework.prototype.initializeChallengeWithLookupResponse = function (lookupResponse, options) {\n return this.setupSongbird().then(function () {\n return BaseFramework.prototype.initializeChallengeWithLookupResponse.call(this, lookupResponse, options);\n }.bind(this));\n };\n SongbirdFramework.prototype.initiateV1Fallback = function (errorType) {\n this._useV1Fallback = true;\n this._removeSongbirdListeners();\n analytics.sendEvent(this._createPromise, \"three-d-secure.v1-fallback.\" + errorType);\n if (this._songbirdPromise) {\n this._songbirdPromise.resolve();\n }\n };\n SongbirdFramework.prototype._triggerCardinalBinProcess = function (bin) {\n var self = this;\n var issuerStartTime = Date.now();\n return window.Cardinal.trigger(\"bin.process\", bin).then(function (binResults) {\n self._clientMetadata.issuerDeviceDataCollectionTimeElapsed = Date.now() - issuerStartTime;\n self._clientMetadata.issuerDeviceDataCollectionResult = binResults && binResults.Status;\n });\n };\n SongbirdFramework.prototype.transformBillingAddress = function (additionalInformation, billingAddress) {\n if (billingAddress) {\n // map from public API to the API that the Gateway expects\n extractAddressData(billingAddress, additionalInformation, \"billing\");\n additionalInformation.billingPhoneNumber = billingAddress.phoneNumber;\n additionalInformation.billingGivenName = billingAddress.givenName;\n additionalInformation.billingSurname = billingAddress.surname;\n }\n return additionalInformation;\n };\n SongbirdFramework.prototype.transformShippingAddress = function (additionalInformation) {\n var shippingAddress = additionalInformation.shippingAddress;\n if (shippingAddress) {\n // map from public API to the API that the Gateway expects\n extractAddressData(shippingAddress, additionalInformation, \"shipping\");\n delete additionalInformation.shippingAddress;\n }\n return additionalInformation;\n };\n SongbirdFramework.prototype._createV1IframeModalElement = function (iframe) {\n var modal = document.createElement(\"div\");\n modal.innerHTML = '
';\n modal.querySelector('[data-braintree-v1-fallback-iframe-container=\"true\"]').appendChild(iframe);\n return modal;\n };\n SongbirdFramework.prototype._createV1IframeModal = function (iframe) {\n var modal = this._createV1IframeModalElement(iframe);\n var btn = modal.querySelector(\"[data-braintree-v1-fallback-close-button]\");\n var backdrop = modal.querySelector(\"[data-braintree-v1-fallback-backdrop]\");\n var self = this;\n function closeHandler() {\n modal.parentNode.removeChild(modal);\n self.cancelVerifyCard(errors.THREEDS_CARDINAL_SDK_CANCELED);\n document.removeEventListener(\"keyup\", self._onV1Keyup);\n self._onV1Keyup = null;\n }\n this._onV1Keyup = function (e) {\n if (e.key !== \"Escape\") {\n return;\n }\n if (!modal.parentNode) {\n // modal not on page\n return;\n }\n closeHandler();\n };\n if (btn) {\n btn.addEventListener(\"click\", closeHandler);\n }\n if (backdrop) {\n backdrop.addEventListener(\"click\", closeHandler);\n }\n document.addEventListener(\"keyup\", this._onV1Keyup);\n return modal;\n };\n SongbirdFramework.prototype._addV1IframeToPage = function () {\n document.body.appendChild(this._v1Modal);\n };\n SongbirdFramework.prototype._handleAuthResponseFromV1Fallback = function (data) {\n this._teardownV1Elements();\n this._v1Modal.parentNode.removeChild(this._v1Modal);\n this._handleV1AuthResponse(data);\n };\n SongbirdFramework.prototype._presentChallengeWithV1Fallback = function (lookupResponse) {\n var self = this;\n this._setupV1Elements({\n lookupResponse: lookupResponse,\n showLoader: true,\n handleAuthResponse: function (data) {\n self._handleAuthResponseFromV1Fallback(data);\n }\n });\n this._v1Modal = this._createV1IframeModal(this._v1Iframe);\n this._addV1IframeToPage();\n };\n SongbirdFramework.prototype.setupSongbird = function (setupOptions) {\n var self = this;\n var startTime = Date.now();\n if (this._songbirdPromise) {\n return this._songbirdPromise;\n }\n setupOptions = setupOptions || {};\n this._songbirdPromise = new ExtendedPromise();\n this._v2SetupFailureReason = \"reason-unknown\";\n self._loadCardinalScript(setupOptions).then(function () {\n if (!window.Cardinal) {\n self._v2SetupFailureReason = \"cardinal-global-unavailable\";\n return Promise.reject(new BraintreeError(errors.THREEDS_CARDINAL_SDK_SETUP_FAILED));\n }\n return self._configureCardinalSdk({\n setupOptions: setupOptions,\n setupStartTime: startTime\n });\n }).catch(function (err) {\n var error = convertToBraintreeError(err, {\n type: errors.THREEDS_CARDINAL_SDK_SETUP_FAILED.type,\n code: errors.THREEDS_CARDINAL_SDK_SETUP_FAILED.code,\n message: errors.THREEDS_CARDINAL_SDK_SETUP_FAILED.message\n });\n self._getDfReferenceIdPromisePlus.reject(error);\n window.clearTimeout(self._songbirdSetupTimeoutReference);\n analytics.sendEvent(self._client, \"three-d-secure.cardinal-sdk.init.setup-failed\");\n self.initiateV1Fallback(\"cardinal-sdk-setup-failed.\" + self._v2SetupFailureReason);\n });\n return this._songbirdPromise;\n };\n SongbirdFramework.prototype._configureCardinalSdk = function (config) {\n var self = this;\n return this._waitForClient().then(function () {\n var threeDSConfig = self._client.getConfiguration().gatewayConfiguration.threeDSecure;\n return threeDSConfig;\n }).then(function (threeDSConfig) {\n var jwt = threeDSConfig.cardinalAuthenticationJWT;\n var setupOptions = config.setupOptions;\n var setupStartTime = config.setupStartTime;\n var cardinalConfiguration = self._createCardinalConfigurationOptions(setupOptions);\n SONGBIRD_UI_EVENTS.forEach(function (eventName) {\n self.setCardinalListener(eventName, function () {\n self._emit(SongbirdFramework.events[eventName.toUpperCase()]);\n });\n });\n self.setCardinalListener(\"payments.setupComplete\", self._createPaymentsSetupCompleteCallback());\n self._setupFrameworkSpecificListeners();\n window.Cardinal.configure(cardinalConfiguration);\n window.Cardinal.setup(\"init\", {\n jwt: jwt\n });\n self._clientMetadata.cardinalDeviceDataCollectionTimeElapsed = Date.now() - setupStartTime;\n self.setCardinalListener(\"payments.validated\", self._createPaymentsValidatedCallback());\n }).catch(function (err) {\n self._v2SetupFailureReason = \"cardinal-configuration-threw-error\";\n return Promise.reject(err);\n });\n };\n SongbirdFramework.prototype.setCardinalListener = function (eventName, cb) {\n this._cardinalEvents.push(eventName);\n window.Cardinal.on(eventName, cb);\n };\n SongbirdFramework.prototype._setupFrameworkSpecificListeners = function () {\n // noop\n };\n SongbirdFramework.prototype._createCardinalConfigurationOptions = function (setupOptions) {\n var cardinalConfiguration = setupOptions.cardinalSDKConfig || {};\n var paymentSettings = cardinalConfiguration.payment || {};\n if (!cardinalConfiguration.logging && setupOptions.loggingEnabled) {\n cardinalConfiguration.logging = {\n level: \"verbose\"\n };\n }\n cardinalConfiguration.payment = {};\n if (paymentSettings.hasOwnProperty(\"displayLoading\")) {\n cardinalConfiguration.payment.displayLoading = paymentSettings.displayLoading;\n }\n if (paymentSettings.hasOwnProperty(\"displayExitButton\")) {\n cardinalConfiguration.payment.displayExitButton = paymentSettings.displayExitButton;\n }\n return cardinalConfiguration;\n };\n SongbirdFramework.prototype._loadCardinalScript = function (setupOptions) {\n var self = this;\n return this._waitForClient().then(function () {\n var scriptSource = self._getCardinalScriptSource();\n self._songbirdSetupTimeoutReference = window.setTimeout(function () {\n analytics.sendEvent(self._client, \"three-d-secure.cardinal-sdk.init.setup-timeout\");\n self.initiateV1Fallback(\"cardinal-sdk-setup-timeout\");\n }, setupOptions.timeout || INTEGRATION_TIMEOUT_MS);\n return assets.loadScript({\n src: scriptSource\n });\n }).catch(function (err) {\n self._v2SetupFailureReason = \"songbird-js-failed-to-load\";\n return Promise.reject(convertToBraintreeError(err, errors.THREEDS_CARDINAL_SDK_SCRIPT_LOAD_FAILED));\n });\n };\n SongbirdFramework.prototype._getCardinalScriptSource = function () {\n var gatewayConfig = this._client.getConfiguration().gatewayConfiguration;\n if (gatewayConfig && gatewayConfig.environment === \"production\") {\n return constants.CARDINAL_SCRIPT_SOURCE.production;\n }\n return constants.CARDINAL_SCRIPT_SOURCE.sandbox;\n };\n SongbirdFramework.prototype._createPaymentsSetupCompleteCallback = function () {\n var self = this;\n return function (data) {\n self._getDfReferenceIdPromisePlus.resolve(data.sessionId);\n window.clearTimeout(self._songbirdSetupTimeoutReference);\n analytics.sendEvent(self._createPromise, \"three-d-secure.cardinal-sdk.init.setup-completed\");\n self._songbirdPromise.resolve();\n };\n };\n SongbirdFramework.prototype.getDfReferenceId = function () {\n return this._getDfReferenceIdPromisePlus;\n };\n SongbirdFramework.prototype._performJWTValidation = function (rawCardinalSDKVerificationData, jwt) {\n var self = this;\n var nonce = this._lookupPaymentMethod.nonce;\n var url = \"payment_methods/\" + nonce + \"/three_d_secure/authenticate_from_jwt\";\n var cancelCode = rawCardinalSDKVerificationData && rawCardinalSDKVerificationData.Payment && rawCardinalSDKVerificationData.Payment.ExtendedData && rawCardinalSDKVerificationData.Payment.ExtendedData.ChallengeCancel;\n if (cancelCode) {\n // see ChallengeCancel docs here for different values:\n // https://cardinaldocs.atlassian.net/wiki/spaces/CC/pages/98315/Response+Objects\n analytics.sendEvent(this._createPromise, \"three-d-secure.verification-flow.cardinal-sdk.cancel-code.\" + cancelCode);\n if (cancelCode === CUSTOMER_CANCELED_SONGBIRD_MODAL) {\n this._emit(SongbirdFramework.events.CUSTOMER_CANCELED);\n }\n }\n analytics.sendEvent(this._createPromise, \"three-d-secure.verification-flow.upgrade-payment-method.started\");\n return this._waitForClient().then(function () {\n return self._client.request({\n method: \"post\",\n endpoint: url,\n data: {\n jwt: jwt,\n paymentMethodNonce: nonce\n }\n });\n }).then(function (response) {\n var paymentMethod = response.paymentMethod || self._lookupPaymentMethod;\n var formattedResponse = self._formatAuthResponse(paymentMethod, response.threeDSecureInfo);\n formattedResponse.rawCardinalSDKVerificationData = rawCardinalSDKVerificationData;\n analytics.sendEvent(self._client, \"three-d-secure.verification-flow.upgrade-payment-method.succeeded\");\n return Promise.resolve(formattedResponse);\n }).catch(function (err) {\n var error = new BraintreeError({\n type: errors.THREEDS_JWT_AUTHENTICATION_FAILED.type,\n code: errors.THREEDS_JWT_AUTHENTICATION_FAILED.code,\n message: errors.THREEDS_JWT_AUTHENTICATION_FAILED.message,\n details: {\n originalError: err\n }\n });\n analytics.sendEvent(self._client, \"three-d-secure.verification-flow.upgrade-payment-method.errored\");\n return Promise.reject(error);\n });\n };\n SongbirdFramework.prototype._createPaymentsValidatedCallback = function () {\n var self = this;\n\n /**\n * @param {object} data Response Data\n * @see {@link https://cardinaldocs.atlassian.net/wiki/spaces/CC/pages/98315/Response+Objects#ResponseObjects-ObjectDefinition}\n * @param {string} data.ActionCode The resulting state of the transaction.\n * @param {boolean} data.Validated Represents whether transaction was successfully or not.\n * @param {object} data.Payment Represents additional information about the verification.\n * @param {number} data.ErrorNumber A non-zero value represents the error encountered while attempting the process the message request.\n * @param {string} data.ErrorDescription Application error description for the associated error number.\n * @param {string} validatedJwt Response JWT\n * @returns {void}\n * */\n return function (data, validatedJwt) {\n var formattedError;\n if (self._useV1Fallback) {\n // TODO since we've removed the listeners for the payments validated callback when initiating the v1 fallback,\n // we should never get to this point. Leave this analtyics event in for now and review if that is indeed the\n // case before removing this block.\n analytics.sendEvent(self._createPromise, \"three-d-secure.verification-flow.cardinal-sdk.payments-validated-callback-called-in-v1-fallback-flow\");\n return;\n }\n analytics.sendEvent(self._createPromise, \"three-d-secure.verification-flow.cardinal-sdk.action-code.\" + data.ActionCode.toLowerCase());\n if (!self._verifyCardPromisePlus) {\n self.initiateV1Fallback(\"cardinal-sdk-setup-error.number-\" + data.ErrorNumber);\n return;\n }\n switch (data.ActionCode) {\n // Handle these scenarios based on liability shift information in the response.\n case \"SUCCESS\":\n case \"NOACTION\":\n case \"FAILURE\":\n self._performJWTValidation(data, validatedJwt).then(function (result) {\n self._verifyCardPromisePlus.resolve(result);\n }).catch(function (err) {\n self._verifyCardPromisePlus.reject(err);\n });\n break;\n case \"ERROR\":\n analytics.sendEvent(self._createPromise, \"three-d-secure.verification-flow.cardinal-sdk-error.\" + data.ErrorNumber);\n switch (data.ErrorNumber) {\n case 10001: // Cardinal Docs: Timeout when sending an /Init message\n case 10002:\n // Cardinal Docs: Timeout when sending an /Start message\n formattedError = new BraintreeError(errors.THREEDS_CARDINAL_SDK_SETUP_TIMEDOUT);\n break;\n case 10003: // Cardinal Docs: Timeout when sending an /Validate message. Although this code exists we do not yet have a flow where a validate message is sent to Midas. This error should not yet be triggered\n case 10007: // Cardinal Docs: Timeout when sending an /Confirm message\n case 10009:\n // Cardinal Docs: Timeout when sending an /Continue message\n formattedError = new BraintreeError(errors.THREEDS_CARDINAL_SDK_RESPONSE_TIMEDOUT);\n break;\n case 10005: // Cardinal Docs: Songbird was started without a request jwt.\n case 10006:\n // Cardinal Docs: This is a general configuration error. The description is populated by the specific configuration error that caused the error.\n formattedError = new BraintreeError(errors.THREEDS_CARDINAL_SDK_BAD_CONFIG);\n break;\n case 10008: // Cardinal Docs: Songbird was initialized without a merchant JWT.\n case 10010:\n // Cardinal Docs: The response JWT was\n formattedError = new BraintreeError(errors.THREEDS_CARDINAL_SDK_BAD_JWT);\n break;\n case 10011:\n // This may never get called, according to the Cardinal docs:\n // The user has canceled the transaction. This is generally found in alternative\n // payments that supply a cancel button on the payment brand side.\n analytics.sendEvent(self._createPromise, \"three-d-secure.verification-flow.canceled\");\n formattedError = new BraintreeError(errors.THREEDS_CARDINAL_SDK_CANCELED);\n break;\n default:\n formattedError = new BraintreeError(errors.THREEDS_CARDINAL_SDK_ERROR);\n }\n formattedError.details = {\n originalError: {\n code: data.ErrorNumber,\n description: data.ErrorDescription\n }\n };\n self._verifyCardPromisePlus.reject(formattedError);\n break;\n default:\n }\n };\n };\n SongbirdFramework.prototype._checkForVerifyCardError = function (options, privateOptions) {\n if (!options.bin) {\n return new BraintreeError({\n type: errors.THREEDS_MISSING_VERIFY_CARD_OPTION.type,\n code: errors.THREEDS_MISSING_VERIFY_CARD_OPTION.code,\n message: \"verifyCard options must include a BIN.\"\n });\n }\n return BaseFramework.prototype._checkForVerifyCardError.call(this, options, privateOptions);\n };\n SongbirdFramework.prototype._checkForFrameworkSpecificVerifyCardErrors = function (options, privateOptions) {\n var errorOption;\n if (typeof options.onLookupComplete !== \"function\" && !privateOptions.ignoreOnLookupCompleteRequirement) {\n errorOption = \"an onLookupComplete function\";\n }\n return errorOption;\n };\n SongbirdFramework.prototype._formatVerifyCardOptions = function (options) {\n var modifiedOptions = BaseFramework.prototype._formatVerifyCardOptions.call(this, options);\n var additionalInformation = modifiedOptions.additionalInformation || {};\n additionalInformation = this.transformBillingAddress(additionalInformation, options.billingAddress);\n additionalInformation = this.transformShippingAddress(additionalInformation);\n if (options.onLookupComplete) {\n modifiedOptions.onLookupComplete = deferred(options.onLookupComplete);\n }\n if (options.email) {\n additionalInformation.email = options.email;\n }\n if (options.mobilePhoneNumber) {\n additionalInformation.mobilePhoneNumber = options.mobilePhoneNumber;\n }\n modifiedOptions.additionalInformation = additionalInformation;\n return modifiedOptions;\n };\n SongbirdFramework.prototype._onLookupComplete = function (lookupResponse, options) {\n var self = this;\n return BaseFramework.prototype._onLookupComplete.call(this, lookupResponse).then(function (response) {\n return new Promise(function (resolve, reject) {\n // NEXT_MAJOR_VERSION format this response object to look like the mobile sdk response\n // which is basically the lookup param at the top level with some additional accessors\n response.requiresUserAuthentication = Boolean(response.lookup && response.lookup.acsUrl);\n function next() {\n resolve(response);\n }\n self._verifyCardPromisePlus.catch(reject);\n\n // If both event and callback are mistakenly used together,\n // prefer the callback when it is passed into the verifyCard options\n if (options.onLookupComplete) {\n options.onLookupComplete(response, next);\n } else {\n self._emit(SongbirdFramework.events.LOOKUP_COMPLETE, response, next);\n }\n });\n });\n };\n SongbirdFramework.prototype._presentChallenge = function (lookupResponse) {\n // transactionId is required for the Songbird flow, so if it\n // does not exist, we fallback to the 3ds v1 flow\n if (this._useV1Fallback || !lookupResponse.lookup.transactionId) {\n this._presentChallengeWithV1Fallback(lookupResponse.lookup);\n return;\n }\n\n // set up listener for ref id to call out to bt before calling verify callback\n window.Cardinal.continue(\"cca\", {\n AcsUrl: lookupResponse.lookup.acsUrl,\n Payload: lookupResponse.lookup.pareq\n }, {\n OrderDetails: {\n TransactionId: lookupResponse.lookup.transactionId\n }\n });\n };\n SongbirdFramework.prototype._formatLookupData = function (options) {\n var self = this;\n return BaseFramework.prototype._formatLookupData.call(this, options).then(function (data) {\n data.additionalInfo = options.additionalInformation;\n if (options.accountType) {\n data.accountType = options.accountType;\n }\n if (options.challengeRequested) {\n data.challengeRequested = options.challengeRequested;\n }\n if (options.requestedExemptionType) {\n if (!SCA_EXEMPTION_TYPES.includes(options.requestedExemptionType)) {\n throw new BraintreeError({\n code: errors.THREEDS_REQUESTED_EXEMPTION_TYPE_INVALID.code,\n type: errors.THREEDS_REQUESTED_EXEMPTION_TYPE_INVALID.type,\n message: \"requestedExemptionType `\" + options.requestedExemptionType + \"` is not a valid exemption. The accepted values are: `\" + SCA_EXEMPTION_TYPES.join(\"`, `\") + \"`\"\n });\n }\n data.requestedExemptionType = options.requestedExemptionType;\n }\n if (options.customFields) {\n data.customFields = options.customFields;\n }\n if (options.dataOnlyRequested) {\n data.dataOnlyRequested = options.dataOnlyRequested;\n }\n if (options.exemptionRequested) {\n data.exemptionRequested = options.exemptionRequested;\n }\n if (options.requestVisaDAF) {\n data.requestVisaDAF = options.requestVisaDAF;\n }\n if (options.bin) {\n data.bin = options.bin;\n }\n // NEXT_MAJOR_VERSION remove cardAdd in favor of cardAddChallengeRequested\n if (options.cardAdd != null) {\n data.cardAdd = options.cardAdd;\n }\n if (options.cardAddChallengeRequested != null) {\n data.cardAdd = options.cardAddChallengeRequested;\n }\n if (options.merchantName) {\n data.merchantName = options.merchantName;\n }\n return self.prepareLookup(data);\n });\n };\n SongbirdFramework.prototype.cancelVerifyCard = function (verifyCardError) {\n var self = this;\n return BaseFramework.prototype.cancelVerifyCard.call(this).then(function (response) {\n if (self._verifyCardPromisePlus) {\n verifyCardError = verifyCardError || new BraintreeError(errors.THREEDS_VERIFY_CARD_CANCELED_BY_MERCHANT);\n self._verifyCardPromisePlus.reject(verifyCardError);\n }\n return response;\n });\n };\n SongbirdFramework.prototype._removeSongbirdListeners = function () {\n this._cardinalEvents.forEach(function (eventName) {\n window.Cardinal.off(eventName);\n });\n this._cardinalEvents = [];\n };\n SongbirdFramework.prototype.teardown = function () {\n if (window.Cardinal) {\n this._removeSongbirdListeners();\n }\n\n // we intentionally do not remove the Cardinal SDK\n // from the page when tearing down. Subsequent\n // component creations will be faster because\n // the asset is already on the page\n\n return BaseFramework.prototype.teardown.call(this);\n };\n SongbirdFramework.prototype._reloadThreeDSecure = function () {\n var self = this;\n var startTime = Date.now();\n return self.teardown().then(function () {\n self._configureCardinalSdk({\n setupOptions: self.originalSetupOptions,\n setupStartTime: startTime\n });\n });\n };\n function extractAddressData(source, target, prefix) {\n target[prefix + \"Line1\"] = source.streetAddress;\n target[prefix + \"Line2\"] = source.extendedAddress;\n target[prefix + \"Line3\"] = source.line3;\n target[prefix + \"City\"] = source.locality;\n target[prefix + \"State\"] = source.region;\n target[prefix + \"PostalCode\"] = source.postalCode;\n target[prefix + \"CountryCode\"] = source.countryCodeAlpha2;\n }\n module.exports = SongbirdFramework;\n }, {\n \"../../../lib/analytics\": 72,\n \"../../../lib/assets\": 73,\n \"../../../lib/assign\": 74,\n \"../../../lib/braintree-error\": 77,\n \"../../../lib/constants\": 78,\n \"../../../lib/convert-to-braintree-error\": 80,\n \"../../../lib/deferred\": 84,\n \"../../../lib/enumerate\": 86,\n \"../../shared/constants\": 154,\n \"../../shared/errors\": 155,\n \"./base\": 145,\n \"@braintree/extended-promise\": 24\n }],\n 152: [function (require, module, exports) {\n \"use strict\";\n\n var wrapPromise = require(\"@braintree/wrap-promise\");\n var methods = require(\"../../lib/methods\");\n var convertMethodsToError = require(\"../../lib/convert-methods-to-error\");\n var EventEmitter = require(\"@braintree/event-emitter\");\n var FRAMEWORKS = require(\"./frameworks\");\n\n /**\n * @deprecated\n * @callback ThreeDSecure~addFrameCallback\n * @param {?BraintreeError} [err] `null` or `undefined` if there was no error.\n * @param {HTMLIFrameElement} iframe An iframe element containing the bank's authentication page that you must put on your page.\n * @description **Deprecated** The callback used for options.addFrame in 3DS 1.0's {@link ThreeDSecure#verifyCard|verifyCard}.\n * @returns {void}\n */\n\n /**\n * @deprecated\n * @callback ThreeDSecure~removeFrameCallback\n * @description **Deprecated** The callback used for options.removeFrame in 3DS 1.0's {@link ThreeDSecure#verifyCard|verifyCard}.\n * @returns {void}\n */\n\n /**\n * @deprecated\n * @typedef {object} ThreeDSecure~verifyCardCustomerObject\n * @property {string} [customer.mobilePhoneNumber] The mobile phone number used for verification. Only numbers; remove dashes, parenthesis and other characters.\n * @property {string} [customer.email] The email used for verification.\n * @property {string} [customer.shippingMethod] The 2-digit string indicating the shipping method chosen for the transaction.\n * @property {string} [customer.billingAddress.firstName] The first name associated with the address.\n * @property {string} [customer.billingAddress.lastName] The last name associated with the address.\n * @property {string} [customer.billingAddress.streetAddress] Line 1 of the Address (eg. number, street, etc).\n * @property {string} [customer.billingAddress.extendedAddress] Line 2 of the Address (eg. suite, apt #, etc.).\n * @property {string} [customer.billingAddress.locality] The locality (city) name associated with the address.\n * @property {string} [customer.billingAddress.region] The 2 letter code for US states or an ISO-3166-2 country subdivision code of up to three letters.\n * @property {string} [customer.billingAddress.postalCode] The zip code or equivalent for countries that have them.\n * @property {string} [customer.billingAddress.countryCodeAlpha2] The 2 character country code.\n * @property {string} [customer.billingAddress.phoneNumber] The phone number associated with the address. Only numbers; remove dashes, parenthesis and other characters.\n * @description **Deprecated** Optional customer information to be passed to 3DS 1.0 for verification.\n */\n\n /**\n * @typedef {object} ThreeDSecure~verifyPayload\n * @property {string} nonce The new payment method nonce produced by the 3D Secure lookup. The original nonce passed into {@link ThreeDSecure#verifyCard|verifyCard} was consumed. This new nonce should be used to transact on your server.\n * @property {string} type The payment method type.\n * @property {object} details Additional account details.\n * @property {string} details.cardType Type of card, ex: Visa, MasterCard.\n * @property {string} details.lastFour Last four digits of card number.\n * @property {string} details.lastTwo Last two digits of card number.\n * @property {string} description A human-readable description.\n * @property {object} binData Information about the card based on the bin.\n * @property {string} binData.commercial Possible values: 'Yes', 'No', 'Unknown'.\n * @property {string} binData.countryOfIssuance The country of issuance.\n * @property {string} binData.debit Possible values: 'Yes', 'No', 'Unknown'.\n * @property {string} binData.durbinRegulated Possible values: 'Yes', 'No', 'Unknown'.\n * @property {string} binData.healthcare Possible values: 'Yes', 'No', 'Unknown'.\n * @property {string} binData.issuingBank The issuing bank.\n * @property {string} binData.payroll Possible values: 'Yes', 'No', 'Unknown'.\n * @property {string} binData.prepaid Possible values: 'Yes', 'No', 'Unknown'.\n * @property {string} binData.productId The product id.\n * @property {boolean} liabilityShiftPossible *Deprecated:* Use `threeDSecureInfo.liabilityShiftPossible` instead.\n * @property {boolean} liabilityShifted *Deprecated:* Use `threeDSecureInfo.liabilityShifted` instead.\n * @property {object} threeDSecureInfo 3DS information about the card. Note: This information should be verified on the server by using the [payment method nonce find method](https://developer.paypal.com/braintree/docs/reference/request/payment-method-nonce/find). The values provided here are merely for convenience. Only values looked up on the server should determine the logic about how to process a transaction.\n * @property {string} threeDSecureInfo.acsTransactionId The transaction identifier from the issuing bank.\n * @property {string} threeDSecureInfo.cavv Cardholder authentication verification value or CAVV. The main encrypted message issuers and card networks use to verify authentication has occurred. Mastercard uses an AVV message and American Express uses an AEVV message, each of which should also be passed in the cavv parameter.\n * @property {string} threeDSecureInfo.dsTransactionId Transaction identifier resulting from 3D Secure 2 authentication.\n * @property {string} threeDSecureInfo.eciFlag The value of the electronic commerce indicator (ECI) flag, which indicates the outcome of the 3DS authentication. This will be a two-digit value.\n * @property {boolean} threeDSecureInfo.enrolled Indicates the status of 3D Secure authentication eligibility with the card issuer.\n * @property {boolean} threeDSecureInfo.liabilityShifted Indicates whether the liability for fraud has been shifted away from the merchant.\n * @property {boolean} threeDSecureInfo.liabilityShiftPossible Indicates whether liability shift is still possible on a retry.\n * @property {string} threeDSecureInfo.paresStatus Transaction status result identifier.\n * @property {string} threeDSecureInfo.status Indicates the outcome of the 3D Secure event.\n * @property {string} threeDSecureInfo.threeDSecureAuthenticationId ID of the 3D Secure authentication performed for this transaction. Do not provide this field as a transaction sale parameter if you are using the returned payment method nonce from the payload.\n * @property {string} threeDSecureInfo.threeDSecureServerTransactionId Transaction identifier provided by the issuing bank who recieved the 3D Secure event.\n * @property {string} threeDSecureInfo.threeDSecureVersion The version of 3D Secure authentication used for the transaction.\n * @property {string} threeDSecureInfo.xid Transaction identifier resulting from 3D Secure authentication. Uniquely identifies the transaction and sometimes required in the authorization message. This is a base64-encoded value. This field will no longer be used in 3D Secure 2 authentications for Visa and Mastercard, however it will be supported by American Express.\n * @property {string} threeDSecureInfo.lookup.transStatus Error code returned from the 3D Secure MPI provider.\n * @property {string} threeDSecureInfo.lookup.transStatusReason Description correlating to the transStatus error code.\n * @property {string} threeDSecureInfo.authentication.transStatus Error code returned from the 3D Secure MPI provider.\n * @property {string} threeDSecureInfo.authentication.transStatusReason Description correlating to the transStatus error code.\n * @property {object} rawCardinalSDKVerificationData The response back from the Cardinal SDK after verification has completed. See [Cardinal's Documentation](https://cardinaldocs.atlassian.net/wiki/spaces/CC/pages/98315/Response+Objects) for more information. If the customer was not required to do a 3D Secure challenge, this object will not be available.\n */\n\n /**\n * @typedef {string} ThreeDSecure~prepareLookupPayload The client data to pass on when doing a server side lookup call.\n */\n\n /**\n * @typedef {object} ThreeDSecure~verificationData\n * @property {boolean} requiresUserAuthentication When `true`, the user will be presented with a 3D Secure challenge when calling `next` in the {@link ThreeDSecure#event:lookup-complete|`lookup-complete` event}.\n * @property {object} threeDSecureInfo Contains liability shift details.\n * @property {boolean} threeDSecureInfo.liabilityShiftPossible Indicates whether the card was eligible for 3D Secure.\n * @property {boolean} threeDSecureInfo.liabilityShifted Indicates whether the liability for fraud has been shifted away from the merchant.\n * @property {object} paymentMethod A {@link ThreeDSecure~verifyPayload|verifyPayload} object.\n * @property {object} lookup Details about the 3D Secure lookup.\n * @property {string} lookup.threeDSecureVersion The version of 3D Secure that will be used for the 3D Secure challenge.\n */\n\n /**\n * @typedef {object} ThreeDSecure~billingAddress\n * @property {string} [givenName] The first name associated with the billing address. (maximum length 50, ASCII characters)\n * @property {string} [surname] The last name associated with the billing address. (maximum length 50, ASCII characters)\n * @property {string} [phoneNumber] The phone number associated with the billing address. Only numbers; remove dashes, parenthesis and other characters.\n * @property {string} [streetAddress] Line 1 of the billing address (eg. number, street, etc). (maximum length 50)\n * @property {string} [extendedAddress] Line 2 of the billing address (eg. suite, apt #, etc.). (maximum length 50)\n * @property {string} [line3] Line 3 of the billing address if needed (eg. suite, apt #, etc). (maximum length 50)\n * @property {string} [locality] The locality (city) name associated with the billing address.\n * @property {string} [region] This field expects an ISO3166-2 subdivision code. The subdivision code is what follows the hyphen separator in the full ISO 3166-2 code. For example, the state of Ohio in the United States we expect \"OH\" as opposed to the full ISO 3166-2 code \"US-OH\".\n * @property {string} [postalCode] The zip code or equivalent for countries that have them.\n * @property {string} [countryCodeAlpha2] The 2 character country code.\n */\n\n /**\n * @typedef {object} ThreeDSecure~additionalInformation\n * @property {string} [workPhoneNumber] The work phone number used for verification. Only numbers; remove dashes, parenthesis and other characters. (maximum length 25)\n * @property {string} [shippingGivenName] The first name associated with the shipping address. (maximum length 50, ASCII characters)\n * @property {string} [shippingSurname] The last name associated with the shipping address. (maximum length 50, ASCII characters)\n * @property {object} [shippingAddress]\n * @property {string} [shippingAddress.streetAddress] Line 1 of the shipping address (eg. number, street, etc). (maximum length 50)\n * @property {string} [shippingAddress.extendedAddress] Line 2 of the shipping address (eg. suite, apt #, etc.). (maximum length 50)\n * @property {string} [shippingAddress.line3] Line 3 of the shipping address if needed (eg. suite, apt #, etc). (maximum length 50)\n * @property {string} [shippingAddress.locality] The locality (city) name associated with the shipping address. (maximum length 50)\n * @property {string} [shippingAddress.region] This field expects an ISO3166-2 subdivision code. The subdivision code is what follows the hyphen separator in the full ISO 3166-2 code. For example, the state of Ohio in the United States we expect \"OH\" as opposed to the full ISO 3166-2 code \"US-OH\".\n * @property {string} [shippingAddress.postalCode] The zip code or equivalent for countries that have them. (maximum length 10)\n * @property {string} [shippingAddress.countryCodeAlpha2] The 2 character country code. (maximum length 2)\n * @property {string} [shippingPhone] The phone number associated with the shipping address. Only numbers; remove dashes, parenthesis and other characters. (maximum length 20)\n * @property {string} [shippingMethod] The 2-digit string indicating the name of the shipping method chosen for the transaction. (maximum length 50) Possible values:\n * - `01` Same Day\n * - `02` Overnight / Expedited\n * - `03` Priority (2-3 Days)\n * - `04` Ground\n * - `05` Electronic Delivery\n * - `06` Ship to Store\n * @property {string} [shippingMethodIndicator] The 2-digit string indicating the shipping method chosen for the transaction Possible values.\n * - `01` Ship to cardholder billing address\n * - `02` Ship to another verified address on file with merchant\n * - `03` Ship to address that is different from billing address\n * - `04` Ship to store (store address should be populated on request)\n * - `05` Digital goods\n * - `06` Travel and event tickets, not shipped\n * - `07` Other\n * @property {string} [productCode] The 3-letter string representing the merchant product code. Possible values:\n * - `AIR` Airline\n * - `GEN` General Retail\n * - `DIG` Digital Goods\n * - `SVC` Services\n * - `RES` Restaurant\n * - `TRA` Travel\n * - `DSP` Cash Dispensing\n * - `REN` Car Rental\n * - `GAS` Fuel\n * - `LUX` Luxury Retail\n * - `ACC` Accommodation Retail\n * - `TBD` Other\n * @property {string} [deliveryTimeframe] The 2-digit number indicating the delivery time frame. Possible values:\n * - `01` Electronic delivery\n * - `02` Same day shipping\n * - `03` Overnight shipping\n * - `04` Two or more day shipping\n * @property {string} [deliveryEmail] For electronic delivery, email address to which the merchandise was delivered. (maximum length 254)\n * @property {string} [reorderindicator] The 2-digit number indicating whether the cardholder is reordering previously purchased merchandise. possible values:\n * - `01` First time ordered\n * - `02` Reordered\n * @property {string} [preorderIndicator] The 2-digit number indicating whether cardholder is placing an order with a future availability or release date. possible values:\n * - `01` Merchandise available\n * - `02` Future availability\n * @property {string} [preorderDate] The 8-digit number (format: YYYYMMDD) indicating expected date that a pre-ordered purchase will be available.\n * @property {string} [giftCardAmount] The purchase amount total for prepaid gift cards in major units. (maximum length 15)\n * @property {string} [giftCardCurrencyCode] ISO 4217 currency code for the gift card purchased. (maximum length 3)\n * @property {string} [giftCardCount] Total count of individual prepaid gift cards purchased. (maximum length 2)\n * @property {string} [accountAgeIndicator] The 2-digit value representing the length of time cardholder has had account. Possible values:\n * - `01` No Account\n * - `02` Created during transaction\n * - `03` Less than 30 days\n * - `04` 30-60 days\n * - `05` More than 60 days\n * @property {string} [accountCreateDate] The 8-digit number (format: YYYYMMDD) indicating the date the cardholder opened the account.\n * @property {string} [accountChangeIndicator] The 2-digit value representing the length of time since the last change to the cardholder account. This includes shipping address, new payment account or new user added. Possible values:\n * - `01` Changed during transaction\n * - `02` Less than 30 days\n * - `03` 30-60 days\n * - `04` More than 60 days\n * @property {string} [accountChangeDate] The 8-digit number (format: YYYYMMDD) indicating the date the cardholder's account was last changed. This includes changes to the billing or shipping address, new payment accounts or new users added.\n * @property {string} [accountPwdChangeIndicator] The 2-digit value representing the length of time since the cardholder changed or reset the password on the account. Possible values:\n * - `01` No change\n * - `02` Changed during transaction\n * - `03` Less than 30 days\n * - `04` 30-60 days\n * - `05` More than 60 days\n * @property {string} [accountPwdChangeDate] The 8-digit number (format: YYYYMMDD) indicating the date the cardholder last changed or reset password on account.\n * @property {string} [shippingAddressUsageIndicator] The 2-digit value indicating when the shipping address used for transaction was first used. Possible values:\n * - `01` This transaction\n * - `02` Less than 30 days\n * - `03` 30-60 days\n * - `04` More than 60 days\n * @property {string} [shippingAddressUsageDate] The 8-digit number (format: YYYYMMDD) indicating the date when the shipping address used for this transaction was first used.\n * @property {string} [transactionCountDay] Number of transactions (successful or abandoned) for this cardholder account within the last 24 hours. (maximum length 3)\n * @property {string} [transactionCountYear] Number of transactions (successful or abandoned) for this cardholder account within the last year. (maximum length 3)\n * @property {string} [addCardAttempts] Number of add card attempts in the last 24 hours. (maximum length 3)\n * @property {string} [accountPurchases] Number of purchases with this cardholder account during the previous six months.\n * @property {string} [fraudActivity] The 2-digit value indicating whether the merchant experienced suspicious activity (including previous fraud) on the account. Possible values:\n * - `01` No suspicious activity\n * - `02` Suspicious activity observed\n * @property {string} [shippingNameIndicator] The 2-digit value indicating if the cardholder name on the account is identical to the shipping name used for the transaction. Possible values:\n * - `01` Account and shipping name identical\n * - `02` Account and shipping name differ\n * @property {string} [paymentAccountIndicator] The 2-digit value indicating the length of time that the payment account was enrolled in the merchant account. Possible values:\n * - `01` No account (guest checkout)\n * - `02` During the transaction\n * - `03` Less than 30 days\n * - `04` 30-60 days\n * - `05` More than 60 days\n * @property {string} [paymentAccountAge] The 8-digit number (format: YYYYMMDD) indicating the date the payment account was added to the cardholder account.\n * @property {string} [acsWindowSize] The 2-digit number to set the challenge window size to display to the end cardholder. The ACS will reply with content that is formatted appropriately to this window size to allow for the best user experience. The sizes are width x height in pixels of the window displayed in the cardholder browser window. Possible values:\n * - `01` 250x400\n * - `02` 390x400\n * - `03` 500x600\n * - `04` 600x400\n * - `05` Full page\n * @property {string} [sdkMaxTimeout] The 2-digit number of minutes (minimum 05) to set the maximum amount of time for all 3DS 2.0 messages to be communicated between all components.\n * @property {string} [addressMatch] The 1-character value (Y/N) indicating whether cardholder billing and shipping addresses match.\n * @property {string} [accountId] Additional cardholder account information. (maximum length 64)\n * @property {string} [ipAddress] The IP address of the consumer. IPv4 and IPv6 are supported.\n * - only one IP address supported\n * - only numbers, letters, period '.' chars, or colons ':' are acceptable\n * @property {string} [orderDescription] Brief description of items purchased. (maximum length 256)\n * @property {string} [taxAmount] Unformatted tax amount without any decimalization (ie. $123.67 = 12367). (maximum length 20)\n * @property {string} [userAgent] The exact content of the HTTP user agent header. (maximum length 500)\n * @property {string} [authenticationIndicator] The 2-digit number indicating the type of authentication request. Possible values:\n * - `01` Payment\n * - `02` Recurring transaction\n * - `03` Installment\n * - `04` Add card\n * - `05` Maintain card\n * - `06` Cardholder verification as part of EMV token ID&V\n * @property {string} [installment] An integer value greater than 1 indicating the maximum number of permitted authorizations for installment payments. (maximum length 3)\n * @property {string} [purchaseDate] The 14-digit number (format: YYYYMMDDHHMMSS) indicating the date in UTC of original purchase.\n * @property {string} [recurringEnd] The 8-digit number (format: YYYYMMDD) indicating the date after which no further recurring authorizations should be performed.\n * @property {string} [recurringFrequency] Integer value indicating the minimum number of days between recurring authorizations. A frequency of monthly is indicated by the value 28. Multiple of 28 days will be used to indicate months (ex. 6 months = 168). (maximum length 3)\n */\n\n /**\n * @name ThreeDSecure#on\n * @function\n * @param {string} event The name of the event to which you are subscribing.\n * @param {function} handler A callback to handle the event.\n * @description Subscribes a handler function to a named event. The following events are available:\n * * {@link ThreeDSecure#event:lookup-complete|lookup-complete}\n * * {@link ThreeDSecure#event:customer-canceled|customer-canceled}\n * * {@link ThreeDSecure#event:authentication-iframe-available|authentication-iframe-available}\n * * {@link ThreeDSecure#event:authentication-modal-render|authentication-modal-render}\n * * {@link ThreeDSecure#event:authentication-modal-close|authentication-modal-close}\n * @example\n * Listening to a 3D Secure event\n * braintree.threeDSecure.create({ ... }, function (createErr, threeDSecureInstance) {\n * threeDSecureInstance.on('lookup-complete', function (data, next) {\n * console.log('data from the lookup', data);\n * next();\n * });\n * threeDSecureInstance.on('customer-canceled', function () {\n * console.log('log that the customer canceled');\n * });\n * });\n * @returns {void}\n */\n\n /**\n * @name ThreeDSecure#off\n * @function\n * @param {string} event The name of the event to which you are unsubscribing.\n * @param {function} handler The callback for the event you are unsubscribing from.\n * @description Unsubscribes the handler function to a named event.\n * @example\n * Subscribing and then unsubscribing from a 3D Secure eld event\n * braintree.threeDSecure.create({ ... }, function (createErr, threeDSecureInstance) {\n * var lookupCallback = function (data, next) {\n * console.log(data);\n * next();\n * };\n * var cancelCallback = function () {\n * // log the cancelation\n * // or update UI\n * };\n *\n * threeDSecureInstance.on('lookup-complete', lookupCallback);\n * threeDSecureInstance.on('customer-canceled', cancelCallback);\n *\n * // later on\n * threeDSecureInstance.off('lookup-complete', lookupCallback);\n * threeDSecureInstance.off('customer-canceled', cancelCallback);\n * });\n * @returns {void}\n */\n\n /**\n * This event is emitted when the `2-inline-iframe` version is specified when creating the 3D Secure instance and the authentication iframe becomes available.\n * @event ThreeDSecure#authentication-iframe-available\n * @example\n * Listening for the authentication iframe to be available\n * threeDSecureInstance.on('authentication-iframe-available', function (event, next) {\n * document.body.appendChild(event.element); // add iframe element to page\n *\n * next(); // let the SDK know the iframe is ready\n * });\n * });\n */\n\n /**\n * This event is emitted when using the 3D Secure 2.0 flow and the initial lookup request completes. If this is not used, a `onLookupComplete` callback must be passed into the `verifyCard` method.\n * @event ThreeDSecure#lookup-complete\n * @example\n * Listening for when the lookup request is complete\n * braintree.threeDSecure.create({\n * client: clientInstance,\n * version: '2'\n * }, function (createErr, threeDSecureInstance) {\n * threeDSecureInstance.on('lookup-complete', function (data, next) {\n * // inspect the data\n *\n * // call next when ready to proceed with the challenge\n * next();\n * });\n * });\n */\n\n /**\n * This event is emitted when using the 3D Secure 2.0 flow and the customer cancels the 3D Secure challenge.\n * @event ThreeDSecure#customer-canceled\n * @example\n * Listening for when the customer cancels the 3D Secure challenge\n * braintree.threeDSecure.create({\n * client: clientInstance,\n * version: '2'\n * }, function (createErr, threeDSecureInstance) {\n * threeDSecureInstance.on('customer-canceled', function () {\n * // the customer canceled the 3D Secure challenge\n * });\n * });\n */\n\n /**\n * This event is emitted when using the 3D Secure 2.0 flow and the authentication modal closes, either because the authentication was completed or because the customer canceled the process.\n * @event ThreeDSecure#authentication-modal-close\n * @example\n * braintree.threeDSecure.create({\n * client: clientInstance,\n * version: '2'\n * }, function (createErr, threeDSecureInstance) {\n * threeDSecureInstance.on('authentication-modal-close', function () {\n * // the modal was closed\n * });\n * });\n */\n\n /**\n * This event is emitted when using the 3D Secure 2.0 flow and the authentication modal is rendered.\n * @event ThreeDSecure#authentication-modal-render\n * @example\n * braintree.threeDSecure.create({\n * client: clientInstance,\n * version: '2'\n * }, function (createErr, threeDSecureInstance) {\n * threeDSecureInstance.on('authentication-modal-render', function () {\n * // the modal was rendered, presenting the authentication form to the customer\n * });\n * });\n */\n\n /**\n * @class\n * @param {object} options 3D Secure {@link module:braintree-web/three-d-secure.create create} options\n * @description Do not use this constructor directly. Use {@link module:braintree-web/three-d-secure.create|braintree.threeDSecure.create} instead.\n * @classdesc This class represents a ThreeDSecure component produced by {@link module:braintree-web/three-d-secure.create|braintree.threeDSecure.create}. Instances of this class have a method for launching a 3D Secure authentication flow.\n *\n * If you use the Braintree SDK from within an iframe, you must not use the `sandbox` attribute on your iframe or the 3D Secure modal will not function correctly.\n *\n * **Note**: 3D Secure 2.0 is documented below and will become the default integration method in a future version of Braintree-web. Until then, version 1.0 will continue to be supported. To view 3D Secure 1.0 documentation, look at Braintree-web documentation from version [3.40.0](https://braintree.github.io/braintree-web/3.40.0/ThreeDSecure.html) and earlier, or upgrade your integration by referring to the [3D Secure 2.0 adoption guide](https://developer.paypal.com/braintree/docs/guides/3d-secure/migration/javascript/v3).\n */\n function ThreeDSecure(options) {\n var self = this;\n var Framework = FRAMEWORKS[options.framework];\n EventEmitter.call(this);\n this._framework = new Framework(options);\n this._framework.setUpEventListeners(function () {\n self._emit.apply(self, arguments);\n });\n }\n EventEmitter.createChild(ThreeDSecure);\n // NEXT_MAJOR_VERSION remove exemptionRequested entirely in favor of `requestedExemptionType`\n /**\n * Launch the 3D Secure login flow, returning a nonce payload.\n *\n * @public\n * @param {object} options Options for card verification.\n * @param {string} options.nonce The nonce representing the card from a tokenization payload. For example, this can be a {@link HostedFields~tokenizePayload|tokenizePayload} returned by Hosted Fields under `payload.nonce`.\n * @param {string} options.bin The numeric Bank Identification Number (bin) of the card from a tokenization payload. For example, this can be a {@link HostedFields~tokenizePayload|tokenizePayload} returned by Hosted Fields under `payload.details.bin`.\n * @param {string} options.amount The amount of the transaction in the current merchant account's currency. This must be expressed in numbers with an optional decimal (using `.`) and precision up to the hundredths place. For example, if you're processing a transaction for 1.234,56 € then `amount` should be `1234.56`.\n * @param {string} [options.accountType] The account type for the card (if known). Accepted values: `credit` or `debit`.\n * @param {boolean} [options.cardAddChallengeRequested] If set to `true`, a card-add challenge will be requested from the issuer. If set to `false`, a card-add challenge will not be requested. If the param is missing, a card-add challenge will only be requested for $0 amount. An authentication created using this flag should only be used for vaulting operations (creation of customers' credit cards or payment methods) and not for creating transactions.\n * @param {boolean} [options.cardAdd] *Deprecated:* Use `cardAddChallengeRequested` instead.\n * @param {boolean} [options.challengeRequested] If set to true, an authentication challenge will be forced if possible.\n * @param {boolean} [options.dataOnlyRequested] Indicates whether to use the data only flow. In this flow, frictionless 3DS is ensured for Mastercard cardholders as the card scheme provides a risk score for the issuer to determine whether to approve. If data only is not supported by the processor, a validation error will be raised. Non-Mastercard cardholders will fallback to a normal 3DS flow.\n * @param {boolean} [options.exemptionRequested] *Deprecated:* Use `requestedExemptionType` instead.\n * @param {boolean} [options.requestVisaDAF] Request to use VISA Digital Authentication Framework. If set to true, a Visa DAF authenticated payment credential will be created and/or used for authentication if the merchant is eligible.\n * @param {string} [options.merchantName] Allows to override the merchant name that is shown in the challenge.\n * @param {string} [options.requestedExemptionType] If an exemption is requested and the exemption's conditions are satisfied, then it will be applied. The following supported exemptions are defined as per PSD2 regulation: `low_value`, `transaction_risk_analysis`\n * @param {object} [options.customFields] Object where each key is the name of a custom field which has been configured in the Control Panel. In the Control Panel you can configure 3D Secure Rules which trigger on certain values.\n * @param {function} [options.onLookupComplete] *Deprecated:* Use {@link ThreeDSecure#event:lookup-complete|`threeDSecureInstance.on('lookup-complete')`} instead. Function to execute when lookup completes. The first argument, `data`, is a {@link ThreeDSecure~verificationData|verificationData} object, and the second argument, `next`, is a callback. `next` must be called to continue.\n * @param {string} [options.email] The email used for verification. (maximum length 255)\n * @param {string} [options.mobilePhoneNumber] The mobile phone number used for verification. Only numbers; remove dashes, parenthesis and other characters. (maximum length 25)\n * @param {object} [options.billingAddress] An {@link ThreeDSecure~billingAddress|billingAddress} object for verification.\n * @param {object} [options.additionalInformation] An {@link ThreeDSecure~additionalInformation|additionalInformation} object for verification.\n * @param {object} [options.collectDeviceData] If set to `true`, device data such as browser screen dimensions, language and time zone is submitted with lookup data.\n * @param {object} [options.customer] **Deprecated** Customer information for use in 3DS 1.0 verifications. Can contain any subset of a {@link ThreeDSecure~verifyCardCustomerObject|verifyCardCustomerObject}. Only to be used for 3DS 1.0 integrations.\n * @param {callback} options.addFrame **Deprecated** This {@link ThreeDSecure~addFrameCallback|addFrameCallback} will be called when the bank frame needs to be added to your page. Only to be used for 3DS 1.0 integrations.\n * @param {callback} options.removeFrame **Deprecated** For use in 3DS 1.0 Flows. This {@link ThreeDSecure~removeFrameCallback|removeFrameCallback} will be called when the bank frame needs to be removed from your page. Only to be used in 3DS 1.0 integrations.\n * @param {callback} [callback] The second argument, data, is a {@link ThreeDSecure~verifyPayload|verifyPayload}. If no callback is provided, it will return a promise that resolves {@link ThreeDSecure~verifyPayload|verifyPayload}.\n \n * @returns {(Promise|void)} Returns a promise if no callback is provided.\n * @example\n * Verifying a payment method nonce with 3DS 2.0\n * var my3DSContainer;\n *\n * // set up listener after initialization\n * threeDSecure.on(('lookup-complete', function (data, next) {\n * // use `data` here, then call `next()`\n * next();\n * });\n *\n * // call verifyCard after tokenizing a card\n * threeDSecure.verifyCard({\n * amount: '123.45',\n * nonce: hostedFieldsTokenizationPayload.nonce,\n * bin: hostedFieldsTokenizationPayload.details.bin,\n * email: 'test@example.com'\n * billingAddress: {\n * givenName: 'Jill',\n * surname: 'Doe',\n * phoneNumber: '8101234567',\n * streetAddress: '555 Smith St.',\n * extendedAddress: '#5',\n * locality: 'Oakland',\n * region: 'CA',\n * postalCode: '12345',\n * countryCodeAlpha2: 'US'\n * },\n * additionalInformation: {\n * workPhoneNumber: '5555555555',\n * shippingGivenName: 'Jill',\n * shippingSurname: 'Doe',\n * shippingAddress: {\n * streetAddress: '555 Smith st',\n * extendedAddress: '#5',\n * locality: 'Oakland',\n * region: 'CA',\n * postalCode: '12345',\n * countryCodeAlpha2: 'US'\n * }\n * shippingPhone: '8101234567'\n * }\n * }, function (err, payload) {\n * if (err) {\n * console.error(err);\n * return;\n * }\n *\n * if (payload.liabilityShifted) {\n * // Liability has shifted\n * submitNonceToServer(payload.nonce);\n * } else if (payload.liabilityShiftPossible) {\n * // Liability may still be shifted\n * // Decide if you want to submit the nonce\n * } else {\n * // Liability has not shifted and will not shift\n * // Decide if you want to submit the nonce\n * }\n * });\n * Verifying a payment method nonce with 3DS 2.0 with onLookupComplete callback\n * var my3DSContainer;\n *\n * threeDSecure.verifyCard({\n * amount: '123.45',\n * nonce: hostedFieldsTokenizationPayload.nonce,\n * bin: hostedFieldsTokenizationPayload.details.bin,\n * email: 'test@example.com'\n * billingAddress: {\n * givenName: 'Jill',\n * surname: 'Doe',\n * phoneNumber: '8101234567',\n * streetAddress: '555 Smith St.',\n * extendedAddress: '#5',\n * locality: 'Oakland',\n * region: 'CA',\n * postalCode: '12345',\n * countryCodeAlpha2: 'US'\n * },\n * additionalInformation: {\n * workPhoneNumber: '5555555555',\n * shippingGivenName: 'Jill',\n * shippingSurname: 'Doe',\n * shippingAddress: {\n * streetAddress: '555 Smith st',\n * extendedAddress: '#5',\n * locality: 'Oakland',\n * region: 'CA',\n * postalCode: '12345',\n * countryCodeAlpha2: 'US'\n * }\n * shippingPhone: '8101234567'\n * },\n * onLookupComplete: function (data, next) {\n * // use `data` here, then call `next()`\n * next();\n * }\n * }, function (err, payload) {\n * if (err) {\n * console.error(err);\n * return;\n * }\n *\n * if (payload.liabilityShifted) {\n * // Liability has shifted\n * submitNonceToServer(payload.nonce);\n * } else if (payload.liabilityShiftPossible) {\n * // Liability may still be shifted\n * // Decide if you want to submit the nonce\n * } else {\n * // Liability has not shifted and will not shift\n * // Decide if you want to submit the nonce\n * }\n * });\n * @example\n * Handling 3DS lookup errors\n * var my3DSContainer;\n *\n * // set up listener after initialization\n * threeDSecure.on(('lookup-complete', function (data, next) {\n * // use `data` here, then call `next()`\n * next();\n * });\n *\n * // call verifyCard after tokenizing a card\n * threeDSecure.verifyCard({\n * amount: '123.45',\n * nonce: hostedFieldsTokenizationPayload.nonce,\n * bin: hostedFieldsTokenizationPayload.details.bin,\n * email: 'test@example.com',\n * billingAddress: billingAddressFromCustomer,\n * additionalInformation: additionalInfoFromCustomer\n * }, function (err, payload) {\n * if (err) {\n * if (err.code.indexOf('THREEDS_LOOKUP') === 0) {\n * // an error occurred during the initial lookup request\n *\n * if (err.code === 'THREEDS_LOOKUP_TOKENIZED_CARD_NOT_FOUND_ERROR') {\n * // either the passed payment method nonce does not exist\n * // or it was already consumed before the lookup call was made\n * } else if (err.code.indexOf('THREEDS_LOOKUP_VALIDATION') === 0) {\n * // a validation error occurred\n * // likely some non-ascii characters were included in the billing\n * // address given name or surname fields, or the cardholdername field\n *\n * // Instruct your user to check their data and try again\n * } else {\n * // an unknown lookup error occurred\n * }\n * } else {\n * // some other kind of error\n * }\n * return;\n * }\n *\n * // handle success\n * });\n * @example\n * Deprecated: Verifying an existing nonce with 3DS 1.0\n * var my3DSContainer;\n *\n * threeDSecure.verifyCard({\n * nonce: existingNonce,\n * amount: 123.45,\n * addFrame: function (err, iframe) {\n * // Set up your UI and add the iframe.\n * my3DSContainer = document.createElement('div');\n * my3DSContainer.appendChild(iframe);\n * document.body.appendChild(my3DSContainer);\n * },\n * removeFrame: function () {\n * // Remove UI that you added in addFrame.\n * document.body.removeChild(my3DSContainer);\n * }\n * }, function (err, payload) {\n * if (err) {\n * console.error(err);\n * return;\n * }\n *\n * if (payload.liabilityShifted) {\n * // Liability has shifted\n * submitNonceToServer(payload.nonce);\n * } else if (payload.liabilityShiftPossible) {\n * // Liability may still be shifted\n * // Decide if you want to submit the nonce\n * } else {\n * // Liability has not shifted and will not shift\n * // Decide if you want to submit the nonce\n * }\n * });\n */\n ThreeDSecure.prototype.verifyCard = function (options) {\n var privateOptions;\n if (this.hasListener(\"lookup-complete\")) {\n privateOptions = {\n ignoreOnLookupCompleteRequirement: true\n };\n }\n return this._framework.verifyCard(options, privateOptions);\n };\n\n /* eslint-disable-next-line valid-jsdoc */\n /**\n * Launch the iframe challenge using a 3D Secure lookup response from a server side lookup.\n *\n * @public\n * @param {(object|string)} lookupResponse The lookup response from the server side call to lookup the 3D Secure information. The raw string or a parsed object can be passed.\n * @returns {Promise} Returns a promise.\n * @example\n * var my3DSContainer;\n *\n * threeDSecure.initializeChallengeWithLookupResponse(lookupResponseFromServer).then(function (payload) {\n * if (payload.liabilityShifted) {\n * // Liability has shifted\n * submitNonceToServer(payload.nonce);\n * } else if (payload.liabilityShiftPossible) {\n * // Liability may still be shifted\n * // Decide if you want to submit the nonce\n * } else {\n * // Liability has not shifted and will not shift\n * // Decide if you want to submit the nonce\n * }\n * });\n */\n ThreeDSecure.prototype.initializeChallengeWithLookupResponse = function (lookupResponse) {\n if (typeof lookupResponse === \"string\") {\n lookupResponse = JSON.parse(lookupResponse);\n }\n return this._framework.initializeChallengeWithLookupResponse(lookupResponse);\n };\n\n /**\n * Gather the data needed for a 3D Secure lookup call.\n *\n * @public\n * @param {object} options Options for 3D Secure lookup.\n * @param {string} options.nonce The nonce representing the card from a tokenization payload. For example, this can be a {@link HostedFields~tokenizePayload|tokenizePayload} returned by Hosted Fields under `payload.nonce`.\n * @param {string} options.bin The numeric Bank Identification Number (bin) of the card from a tokenization payload. For example, this can be a {@link HostedFields~tokenizePayload|tokenizePayload} returned by Hosted Fields under `payload.details.bin`.\n * @param {callback} [callback] The second argument, data, is a {@link ThreeDSecure~prepareLookupPayload|prepareLookupPayload}. If no callback is provided, it will return a promise that resolves {@link ThreeDSecure~prepareLookupPayload|prepareLookupPayload}.\n \n * @returns {(Promise|void)} Returns a promise if no callback is provided.\n * @example\n * Preparing data for a 3D Secure lookup\n * threeDSecure.prepareLookup({\n * nonce: hostedFieldsTokenizationPayload.nonce,\n * bin: hostedFieldsTokenizationPayload.details.bin\n * }, function (err, payload) {\n * if (err) {\n * console.error(err);\n * return;\n * }\n *\n * // send payload to server to do server side lookup\n * });\n */\n ThreeDSecure.prototype.prepareLookup = function (options) {\n return this._framework.prepareLookup(options).then(function (data) {\n return JSON.stringify(data);\n });\n };\n\n /**\n * Cancel the 3DS flow and return the verification payload if available. If using 3D Secure version 2, this will not close the UI of the authentication modal. It is recommended that this method only be used in the {@link ThreeDSecure#event:lookup-complete|`lookup-complete`} event or the `onLookupComplete` callback.\n * @public\n * @param {callback} [callback] The second argument is a {@link ThreeDSecure~verifyPayload|verifyPayload}. If there is no verifyPayload (the initial lookup did not complete), an error will be returned. If no callback is passed, `cancelVerifyCard` will return a promise.\n * @returns {(Promise|void)} Returns a promise if no callback is provided.\n * @example Cancel the verification in `lookup-complete` event\n * // set up listener after instantiation\n * threeDSecure.on('lookup-complete', function (data, next) {\n * // determine if you want to call next to start the challenge,\n * // if not, call cancelVerifyCard\n * threeDSecure.cancelVerifyCard(function (err, verifyPayload) {\n * if (err) {\n * // Handle error\n * console.log(err.message); // No verification payload available\n * return;\n * }\n *\n * verifyPayload.nonce; // The nonce returned from the 3ds lookup call\n * verifyPayload.liabilityShifted; // boolean\n * verifyPayload.liabilityShiftPossible; // boolean\n * });\n * });\n *\n * // after tokenizing a credit card\n * threeDSecure.verifyCard({\n * amount: '100.00',\n * nonce: nonceFromTokenizationPayload,\n * bin: binFromTokenizationPayload\n * // other fields such as billing address\n * }, function (verifyError, payload) {\n * if (verifyError) {\n * if (verifyError.code === 'THREEDS_VERIFY_CARD_CANCELED_BY_MERCHANT ') {\n * // flow was canceled by merchant, 3ds info can be found in the payload\n * // for cancelVerifyCard\n * }\n * }\n * });\n * @example Cancel the verification in onLookupComplete callback\n * threeDSecure.verifyCard({\n * amount: '100.00',\n * nonce: nonceFromTokenizationPayload,\n * bin: binFromTokenizationPayload,\n * // other fields such as billing address\n * onLookupComplete: function (data, next) {\n * // determine if you want to call next to start the challenge,\n * // if not, call cancelVerifyCard\n * threeDSecure.cancelVerifyCard(function (err, verifyPayload) {\n * if (err) {\n * // Handle error\n * console.log(err.message); // No verification payload available\n * return;\n * }\n *\n * verifyPayload.nonce; // The nonce returned from the 3ds lookup call\n * verifyPayload.liabilityShifted; // boolean\n * verifyPayload.liabilityShiftPossible; // boolean\n * });\n * }\n * }, function (verifyError, payload) {\n * if (verifyError) {\n * if (verifyError.code === 'THREEDS_VERIFY_CARD_CANCELED_BY_MERCHANT ') {\n * // flow was canceled by merchant, 3ds info can be found in the payload\n * // for cancelVerifyCard\n * }\n * }\n * });\n * @example Cancel the verification in 3D Secure version 1\n * // unlike with v2, this will not cause `verifyCard` to error, it will simply\n * // never call the callback\n * threeDSecure.cancelVerifyCard(function (err, verifyPayload) {\n * if (err) {\n * // Handle error\n * console.log(err.message); // No verification payload available\n * return;\n * }\n *\n * verifyPayload.nonce; // The nonce returned from the 3ds lookup call\n * verifyPayload.liabilityShifted; // boolean\n * verifyPayload.liabilityShiftPossible; // boolean\n * });\n */\n ThreeDSecure.prototype.cancelVerifyCard = function () {\n return this._framework.cancelVerifyCard();\n };\n\n /**\n * Cleanly remove anything set up by {@link module:braintree-web/three-d-secure.create|create}, with the exception that the Cardinal SDK, on window.Cardinal, will remain.\n * @public\n * @param {callback} [callback] Called on completion. If no callback is passed, `teardown` will return a promise.\n * @example\n * threeDSecure.teardown();\n * @example With callback\n * threeDSecure.teardown(function () {\n * // teardown is complete\n * });\n * @returns {(Promise|void)} Returns a promise if no callback is provided.\n */\n ThreeDSecure.prototype.teardown = function () {\n var methodNames = methods(ThreeDSecure.prototype).concat(methods(EventEmitter.prototype));\n convertMethodsToError(this, methodNames);\n return this._framework.teardown();\n };\n module.exports = wrapPromise.wrapPrototype(ThreeDSecure);\n }, {\n \"../../lib/convert-methods-to-error\": 79,\n \"../../lib/methods\": 107,\n \"./frameworks\": 148,\n \"@braintree/event-emitter\": 23,\n \"@braintree/wrap-promise\": 33\n }],\n 153: [function (require, module, exports) {\n \"use strict\";\n\n /** @module braintree-web/three-d-secure */\n var ThreeDSecure = require(\"./external/three-d-secure\");\n var isHTTPS = require(\"../lib/is-https\").isHTTPS;\n var basicComponentVerification = require(\"../lib/basic-component-verification\");\n var createDeferredClient = require(\"../lib/create-deferred-client\");\n var createAssetsUrl = require(\"../lib/create-assets-url\");\n var BraintreeError = require(\"../lib/braintree-error\");\n var analytics = require(\"../lib/analytics\");\n var errors = require(\"./shared/errors\");\n var VERSION = \"3.97.1\";\n var wrapPromise = require(\"@braintree/wrap-promise\");\n\n /**\n * @static\n * @function create\n * @param {object} options Creation options:\n * @param {object} [options.cardinalSDKConfig] A config for the underlying Cardinal SDK.\n * @param {object} [options.cardinalSDKConfig.logging] The logging configuration for the Cardinal SDK. See [Cardinal's documentation for the logging object](https://cardinaldocs.atlassian.net/wiki/spaces/CC/pages/1409568/Configurations#Configurations-Logging) for more information.\n * @param {number} [options.cardinalSDKConfig.timeout] The time in milliseconds to wait before a request to Cardinal's API times out. See [Cardinal's documentation for root level configuration](https://cardinaldocs.atlassian.net/wiki/spaces/CC/pages/1409568/Configurations#Configurations-RootLevelConfiguration) for more information.\n * @param {number} [options.cardinalSDKConfig.maxRequestRetries] How many times a request should be re-attempted to Cardinal's API before giving up as a failure. See [Cardinal's documentation for root level configuration](https://cardinaldocs.atlassian.net/wiki/spaces/CC/pages/1409568/Configurations#Configurations-RootLevelConfiguration) for more information.\n * @param {object} [options.cardinalSDKConfig.payment] An object to describe how you want the user interactions to behave. Only a subset of the [Cardinal SDK payment configuration object](https://cardinaldocs.atlassian.net/wiki/spaces/CC/pages/1409568/Configurations#Configurations-Payment) are supported: `displayLoading` and `displayExitButton`.\n * @param {Client} [options.client] A {@link Client} instance.\n * @param {string} [options.authorization] A tokenizationKey or clientToken. Can be used in place of `options.client`.\n * @param {(number|string)} [options.version=1] The version of 3D Secure to use. Possible options:\n * * 1 - The legacy 3D Secure v1.0 integration.\n * * 2 - A 3D Secure v2.0 integration that uses a modal to host the 3D Secure iframe.\n * * 2-bootstrap3-modal - A 3D Secure v2.0 integration that uses a modal styled with Bootstrap 3 styles to host the 3D Secure iframe. Requires having the Bootstrap 3 script files and stylesheets on your page.\n * * 2-inline-iframe - A 3D Secure v2.0 integration that provides the authentication iframe directly to the merchant.\n * @param {callback} [callback] The second argument, `data`, is the {@link ThreeDSecure} instance. If no callback is provided, it returns a promise that resolves the {@link ThreeDSecure} instance.\n * @returns {(Promise|void)} Returns a promise if no callback is provided.\n @example\n * Creating a v2 3D Secure component using 2 version (Cardinal modal)\n * braintree.threeDSecure.create({\n * client: clientInstance,\n * version: '2'\n * }, function (createError, threeDSecure) {\n * // set up lookup-complete listener\n * threeDSecure.on('lookup-complete', function (data, next) {\n * // check lookup data\n *\n * next();\n * });\n *\n * // using Hosted Fields, use `tokenize` to get back a credit card nonce\n *\n * threeDSecure.verifyCard({\n * nonce: nonceFromTokenizationPayload,,\n * bin: binFromTokenizationPayload,\n * amount: '100.00'\n * }, function (verifyError, payload) {\n * // inspect payload\n * // send payload.nonce to your server\n * });\n * });\n * @example\n * Creating a v2 3D Secure component using 2-bootstrap3-modal version\n * // must have the boostrap js, css and jquery files on your page\n * braintree.threeDSecure.create({\n * client: clientInstance,\n * version: '2-bootstrap3-modal'\n * }, function (createError, threeDSecure) {\n * // set up lookup-complete listener\n * threeDSecure.on('lookup-complete', function (data, next) {\n * // check lookup data\n *\n * next();\n * });\n *\n * // using Hosted Fields, use `tokenize` to get back a credit card nonce\n *\n * // challenge will be presented in a bootstrap 3 modal\n * threeDSecure.verifyCard({\n * nonce: nonceFromTokenizationPayload,\n * bin: binFromTokenizationPayload,\n * amount: '100.00'\n * }, function (verifyError, payload) {\n * // inspect payload\n * // send payload.nonce to your server\n * });\n * });\n * @example\n * Creating a v2 3D Secure component using 2-inline-iframe version\n * braintree.threeDSecure.create({\n * client: clientInstance,\n * version: '2-inline-iframe'\n * }, function (createError, threeDSecure) {\n * // set up lookup-complete listener\n * threeDSecure.on('lookup-complete', function (data, next) {\n * // check lookup data\n *\n * next();\n * });\n * // set up iframe listener\n * threeDSecure.on('authentication-iframe-available', function (event, next) {\n * var element = event.element; // an html element that contains the iframe\n *\n * document.body.appendChild(element); // put it on your page\n *\n * next(); // let the sdk know the element has been added to the page\n * });\n *\n * // using Hosted Fields, use `tokenize` to get back a credit card nonce\n *\n * threeDSecure.verifyCard({\n * nonce: nonceFromTokenizationPayload,,\n * bin: binFromTokenizationPayload,\n * amount: '100.00'\n * }, function (verifyError, payload) {\n * // inspect payload\n * // send payload.nonce to your server\n * });\n * });\n */\n function create(options) {\n var name = \"3D Secure\";\n var framework = getFramework(options);\n return basicComponentVerification.verify({\n name: name,\n client: options.client,\n authorization: options.authorization\n }).then(function () {\n var assetsUrl = createAssetsUrl.create(options.authorization);\n var createPromise = createDeferredClient.create({\n authorization: options.authorization,\n client: options.client,\n debug: options.debug,\n assetsUrl: assetsUrl,\n name: name\n }).then(function (client) {\n var error, isProduction;\n var config = client.getConfiguration();\n var gwConfig = config.gatewayConfiguration;\n options.client = client;\n if (!gwConfig.threeDSecureEnabled) {\n error = errors.THREEDS_NOT_ENABLED;\n }\n if (config.authorizationType === \"TOKENIZATION_KEY\") {\n error = errors.THREEDS_CAN_NOT_USE_TOKENIZATION_KEY;\n }\n isProduction = gwConfig.environment === \"production\";\n if (isProduction && !isHTTPS()) {\n error = errors.THREEDS_HTTPS_REQUIRED;\n }\n if (framework !== \"legacy\" && !(gwConfig.threeDSecure && gwConfig.threeDSecure.cardinalAuthenticationJWT)) {\n analytics.sendEvent(options.client, \"three-d-secure.initialization.failed.missing-cardinalAuthenticationJWT\");\n error = errors.THREEDS_NOT_ENABLED_FOR_V2;\n }\n if (error) {\n return Promise.reject(new BraintreeError(error));\n }\n analytics.sendEvent(options.client, \"three-d-secure.initialized\");\n return client;\n });\n var instance = new ThreeDSecure({\n client: options.client,\n assetsUrl: assetsUrl,\n createPromise: createPromise,\n loggingEnabled: options.loggingEnabled,\n cardinalSDKConfig: options.cardinalSDKConfig,\n framework: framework\n });\n if (options.client) {\n return createPromise.then(function () {\n return instance;\n });\n }\n return instance;\n });\n }\n function getFramework(options) {\n var version = String(options.version || \"\");\n if (!version || version === \"1\") {\n throw new BraintreeError({\n code: errors.THREEDS_UNSUPPORTED_VERSION.code,\n type: errors.THREEDS_UNSUPPORTED_VERSION.type,\n message: errors.THREEDS_UNSUPPORTED_VERSION.message\n });\n }\n switch (version) {\n case \"2\":\n case \"2-cardinal-modal\":\n return \"cardinal-modal\";\n case \"2-bootstrap3-modal\":\n return \"bootstrap3-modal\";\n case \"2-inline-iframe\":\n return \"inline-iframe\";\n default:\n throw new BraintreeError({\n code: errors.THREEDS_UNRECOGNIZED_VERSION.code,\n type: errors.THREEDS_UNRECOGNIZED_VERSION.type,\n message: \"Version `\" + options.version + \"` is not a recognized version. You may need to update the version of your Braintree SDK to support this version.\"\n });\n }\n }\n module.exports = {\n create: wrapPromise(create),\n /**\n * @description The current version of the SDK, i.e. `1.40.2`.\n * @type {string}\n */\n VERSION: VERSION\n };\n }, {\n \"../lib/analytics\": 72,\n \"../lib/basic-component-verification\": 75,\n \"../lib/braintree-error\": 77,\n \"../lib/create-assets-url\": 81,\n \"../lib/create-deferred-client\": 83,\n \"../lib/is-https\": 104,\n \"./external/three-d-secure\": 152,\n \"./shared/errors\": 155,\n \"@braintree/wrap-promise\": 33\n }],\n 154: [function (require, module, exports) {\n \"use strict\";\n\n module.exports = {\n LANDING_FRAME_NAME: \"braintreethreedsecurelanding\",\n CARDINAL_SCRIPT_SOURCE: {\n production: \"https://songbird.cardinalcommerce.com/edge/v1/songbird.js\",\n sandbox: \"https://songbirdstag.cardinalcommerce.com/edge/v1/songbird.js\"\n }\n };\n }, {}],\n 155: [function (require, module, exports) {\n \"use strict\";\n\n /**\n * @name BraintreeError.3D Secure - Creation Error Codes\n * @description Errors that occur when [creating the 3D Secure component](./module-braintree-web_three-d-secure.html#.create).\n * @property {MERCHANT} THREEDS_NOT_ENABLED Occurs when 3D Secure is not enabled in the Braintree control panel.\n * @property {MERCHANT} THREEDS_CAN_NOT_USE_TOKENIZATION_KEY Occurs when 3D Secure component is created without a Client Token.\n * @property {MERCHANT} THREEDS_HTTPS_REQUIRED Occurs when 3D Secure component is created in production over HTTPS.\n * @property {MERCHANT} THREEDS_NOT_ENABLED_FOR_V2 Occurs when 3D Secure component is created with version 2 parameter, but merchant is not enabled to use version 2.\n * @property {MERCHANT} THREEDS_UNRECOGNIZED_VERSION Occurs when unrecognized version enum is passed into the create call.\n * @property {UNKNOWN} THREEDS_CARDINAL_SDK_SETUP_FAILED Occurs when Cardinal's Songbird.js library fails to setup for an unknown reason.\n * @property {NETWORK} THREEDS_CARDINAL_SDK_SCRIPT_LOAD_FAILED Occurs when using version 2 and Cardinal's Songbird.js script could not be loaded.\n * @property {UNKNOWN} THREEDS_CARDINAL_SDK_SETUP_TIMEDOUT Occurs when Cardinal's Songbird.js library takes longer than 60 seconds to set up.\n * @property {UNKNOWN} THREEDS_CARDINAL_SDK_RESPONSE_TIMEDOUT Occurs when Cardinal sends a response indicating a timeout on /Validate, /Confirm, or /Continue.\n * @property {MERCHANT} THREEDS_CARDINAL_SDK_BAD_CONFIG Occurs when there is no JWT in the request. Also when there's some other malformed aspect of config.\n * @property {MERCHANT} THREEDS_CARDINAL_SDK_BAD_JWT Occurs when a malformed config causes a either a missing response JWT or a malformed Cardinal response.\n * @property {UNKNOWN} THREEDS_CARDINAL_SDK_ERROR Occurs when a \"general error\" or a Cardinal hosted fields error happens. Description contains more details.\n * @property {CUSTOMER} THREEDS_CARDINAL_SDK_CANCELED Occurs when customer cancels the transaction mid-flow, usually with alt-pays that have their own cancel buttons.\n * @property {MERCHANT} THREEDS_UNSUPPORTED_VERSION Occurs when 3D Secure component is created with version 1 (or default version) parameter.\n */\n\n /**\n * @name BraintreeError.3D Secure - verifyCard Error Codes\n * @description Errors that occur when using the [`verifyCard` method](./ThreeDSecure.html#verifyCard).\n * @property {MERCHANT} THREEDS_AUTHENTICATION_IN_PROGRESS Occurs when another verification is already in progress.\n * @property {MERCHANT} THREEDS_MISSING_VERIFY_CARD_OPTION Occurs when a required option is missing.\n * @property {UNKNOWN} THREEDS_JWT_AUTHENTICATION_FAILED Occurs when something went wrong authenticating the JWT from the Cardinal SDK.\n * @property {MERCHANT} THREEDS_LOOKUP_TOKENIZED_CARD_NOT_FOUND_ERROR Occurs when the supplied payment method nonce does not exist or the payment method nonce has already been consumed.\n * @property {CUSTOMER} THREEDS_LOOKUP_VALIDATION_ERROR Occurs when a validation error occurs during the 3D Secure lookup.\n * @property {UNKNOWN} THREEDS_LOOKUP_ERROR An unknown error occurred while attempting the 3D Secure lookup.\n * @property {MERCHANT} THREEDS_VERIFY_CARD_CANCELED_BY_MERCHANT Occurs when the 3D Secure flow is canceled by the merchant using `cancelVerifyCard` (3D Secure v2 flows only).\n * @property {UNKNOWN} THREEDS_INLINE_IFRAME_DETAILS_INCORRECT An unknown error occurred while attempting to use the inline iframe framework.\n * @property {MERCHANT} THREEDS_REQUESTED_EXEMPTION_TYPE_INVALID Occurs when unrecognized exemption enum value is passed into verifyCard.\n */\n\n /**\n * @name BraintreeError.3D Secure - cancelVerifyCard Error Codes\n * @description Errors that occur when using the [`cancelVerifyCard` method](./ThreeDSecure.html#cancelVerifyCard).\n * @property {MERCHANT} THREEDS_NO_VERIFICATION_PAYLOAD Occurs when the 3D Secure flow is canceled, but there is no 3D Secure information available.\n */\n\n /**\n * @name BraintreeError.3D Secure - Internal Error Codes\n * @ignore\n * @description Errors that occur internally\n * @property {INTERNAL} THREEDS_TERM_URL_REQUIRES_BRAINTREE_DOMAIN Occurs when iframe is initialized on a non-verified domain.\n * @property {INTERNAL} THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED Occurs when a 3D Secure framework method is not implemented.\n */\n var BraintreeError = require(\"../../lib/braintree-error\");\n module.exports = {\n THREEDS_NOT_ENABLED: {\n type: BraintreeError.types.MERCHANT,\n code: \"THREEDS_NOT_ENABLED\",\n message: \"3D Secure is not enabled for this merchant.\"\n },\n THREEDS_CAN_NOT_USE_TOKENIZATION_KEY: {\n type: BraintreeError.types.MERCHANT,\n code: \"THREEDS_CAN_NOT_USE_TOKENIZATION_KEY\",\n message: \"3D Secure can not use a tokenization key for authorization.\"\n },\n THREEDS_HTTPS_REQUIRED: {\n type: BraintreeError.types.MERCHANT,\n code: \"THREEDS_HTTPS_REQUIRED\",\n message: \"3D Secure requires HTTPS.\"\n },\n THREEDS_NOT_ENABLED_FOR_V2: {\n type: BraintreeError.types.MERCHANT,\n code: \"THREEDS_NOT_ENABLED_FOR_V2\",\n message: \"3D Secure version 2 is not enabled for this merchant. Contact Braintree Support for assistance at https://help.braintreepayments.com/\"\n },\n THREEDS_UNRECOGNIZED_VERSION: {\n type: BraintreeError.types.MERCHANT,\n code: \"THREEDS_UNRECOGNIZED_VERSION\"\n },\n THREEDS_CARDINAL_SDK_SETUP_FAILED: {\n type: BraintreeError.types.UNKNOWN,\n code: \"THREEDS_CARDINAL_SDK_SETUP_FAILED\",\n message: \"Something went wrong setting up Cardinal's Songbird.js library.\"\n },\n THREEDS_CARDINAL_SDK_SCRIPT_LOAD_FAILED: {\n type: BraintreeError.types.NETWORK,\n code: \"THREEDS_CARDINAL_SDK_SCRIPT_LOAD_FAILED\",\n message: \"Cardinal's Songbird.js library could not be loaded.\"\n },\n THREEDS_CARDINAL_SDK_SETUP_TIMEDOUT: {\n type: BraintreeError.types.UNKNOWN,\n code: \"THREEDS_CARDINAL_SDK_SETUP_TIMEDOUT\",\n message: \"Cardinal's Songbird.js took too long to setup.\"\n },\n THREEDS_CARDINAL_SDK_RESPONSE_TIMEDOUT: {\n type: BraintreeError.types.UNKNOWN,\n code: \"THREEDS_CARDINAL_SDK_RESPONSE_TIMEDOUT\",\n message: \"Cardinal's API took too long to respond.\"\n },\n THREEDS_CARDINAL_SDK_BAD_CONFIG: {\n type: BraintreeError.types.MERCHANT,\n code: \"THREEDS_CARDINAL_SDK_BAD_CONFIG\",\n message: \"JWT or other required field missing. Please check your setup configuration.\"\n },\n THREEDS_CARDINAL_SDK_BAD_JWT: {\n type: BraintreeError.types.MERCHANT,\n code: \"THREEDS_CARDINAL_SDK_BAD_JWT\",\n message: \"Cardinal JWT missing or malformed. Please check your setup configuration.\"\n },\n THREEDS_CARDINAL_SDK_ERROR: {\n type: BraintreeError.types.UNKNOWN,\n code: \"THREEDS_CARDINAL_SDK_ERROR\",\n message: \"A general error has occurred with Cardinal. See description for more information.\"\n },\n THREEDS_CARDINAL_SDK_CANCELED: {\n type: BraintreeError.types.CUSTOMER,\n code: \"THREEDS_CARDINAL_SDK_CANCELED\",\n message: \"Canceled by user.\"\n },\n THREEDS_VERIFY_CARD_CANCELED_BY_MERCHANT: {\n type: BraintreeError.types.MERCHANT,\n code: \"THREEDS_VERIFY_CARD_CANCELED_BY_MERCHANT\",\n message: \"3D Secure verfication canceled by merchant.\"\n },\n THREEDS_AUTHENTICATION_IN_PROGRESS: {\n type: BraintreeError.types.MERCHANT,\n code: \"THREEDS_AUTHENTICATION_IN_PROGRESS\",\n message: \"Cannot call verifyCard while existing authentication is in progress.\"\n },\n THREEDS_MISSING_VERIFY_CARD_OPTION: {\n type: BraintreeError.types.MERCHANT,\n code: \"THREEDS_MISSING_VERIFY_CARD_OPTION\"\n },\n THREEDS_JWT_AUTHENTICATION_FAILED: {\n type: BraintreeError.types.UNKNOWN,\n code: \"THREEDS_JWT_AUTHENTICATION_FAILED\",\n message: \"Something went wrong authenticating the JWT from Cardinal\"\n },\n THREEDS_LOOKUP_TOKENIZED_CARD_NOT_FOUND_ERROR: {\n type: BraintreeError.types.MERCHANT,\n code: \"THREEDS_LOOKUP_TOKENIZED_CARD_NOT_FOUND_ERROR\",\n message: \"Either the payment method nonce passed to `verifyCard` does not exist, or it was already consumed\"\n },\n THREEDS_LOOKUP_VALIDATION_ERROR: {\n type: BraintreeError.types.CUSTOMER,\n code: \"THREEDS_LOOKUP_VALIDATION_ERROR\",\n message: \"The data passed in `verifyCard` did not pass validation checks. See details for more info\"\n },\n THREEDS_LOOKUP_ERROR: {\n type: BraintreeError.types.UNKNOWN,\n code: \"THREEDS_LOOKUP_ERROR\",\n message: \"Something went wrong during the 3D Secure lookup\"\n },\n THREEDS_INLINE_IFRAME_DETAILS_INCORRECT: {\n type: BraintreeError.types.UNKNOWN,\n code: \"THREEDS_INLINE_IFRAME_DETAILS_INCORRECT\",\n message: \"Something went wrong when attempting to add the authentication iframe to the page.\"\n },\n THREEDS_NO_VERIFICATION_PAYLOAD: {\n type: BraintreeError.types.MERCHANT,\n code: \"THREEDS_NO_VERIFICATION_PAYLOAD\",\n message: \"No verification payload available.\"\n },\n THREEDS_TERM_URL_REQUIRES_BRAINTREE_DOMAIN: {\n type: BraintreeError.types.INTERNAL,\n code: \"THREEDS_TERM_URL_REQUIRES_BRAINTREE_DOMAIN\",\n message: \"Term Url must be on a Braintree domain.\"\n },\n THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED: {\n type: BraintreeError.types.INTERNAL,\n code: \"THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED\",\n message: \"Method not implemented for this framework.\"\n },\n THREEDS_REQUESTED_EXEMPTION_TYPE_INVALID: {\n type: BraintreeError.types.MERCHANT,\n code: \"THREEDS_REQUESTED_EXEMPTION_TYPE_INVALID\",\n message: \"Requested Exemption Type is invalid.\"\n },\n THREEDS_UNSUPPORTED_VERSION: {\n type: BraintreeError.types.MERCHANT,\n code: \"THREEDS_UNSUPPORTED_VERSION\",\n message: \"3D Secure `1` is deprecated and no longer supported. See available versions at https://braintree.github.io/braintree-web/current/module-braintree-web_three-d-secure.html#.create\"\n }\n };\n }, {\n \"../../lib/braintree-error\": 77\n }],\n 156: [function (require, module, exports) {\n \"use strict\";\n\n var enumerate = require(\"../../lib/enumerate\");\n module.exports = enumerate([\"AUTHENTICATION_COMPLETE\"], \"threedsecure:\");\n }, {\n \"../../lib/enumerate\": 86\n }],\n 157: [function (require, module, exports) {\n \"use strict\";\n\n /**\n * @name BraintreeError.Vault Manager - deletePaymentMethod Error Codes\n * @description Errors that occur when using the [`deletePaymentMethod` method](./VaultManager.html#deletePaymentMethod).\n * @property {MERCHANT} VAULT_MANAGER_DELETE_PAYMENT_METHOD_NONCE_REQUIRES_CLIENT_TOKEN Occurs when vault manager is initialized with a tokenization key instead of a Client Token.\n * @property {MERCHANT} VAULT_MANAGER_PAYMENT_METHOD_NONCE_NOT_FOUND Occurs when the specified payment method can not be found.\n * @property {UNKNOWN} VAULT_MANAGER_DELETE_PAYMENT_METHOD_UNKNOWN_ERROR Occurs when there is an error attempting to delete the payment method.\n */\n var BraintreeError = require(\"../lib/braintree-error\");\n module.exports = {\n VAULT_MANAGER_DELETE_PAYMENT_METHOD_NONCE_REQUIRES_CLIENT_TOKEN: {\n type: BraintreeError.types.MERCHANT,\n code: \"VAULT_MANAGER_DELETE_PAYMENT_METHOD_NONCE_REQUIRES_CLIENT_TOKEN\",\n message: \"A client token with a customer id must be used to delete a payment method nonce.\"\n },\n VAULT_MANAGER_PAYMENT_METHOD_NONCE_NOT_FOUND: {\n type: BraintreeError.types.MERCHANT,\n code: \"VAULT_MANAGER_PAYMENT_METHOD_NONCE_NOT_FOUND\"\n },\n VAULT_MANAGER_DELETE_PAYMENT_METHOD_UNKNOWN_ERROR: {\n type: BraintreeError.types.UNKNOWN,\n code: \"VAULT_MANAGER_DELETE_PAYMENT_METHOD_UNKNOWN_ERROR\"\n }\n };\n }, {\n \"../lib/braintree-error\": 77\n }],\n 158: [function (require, module, exports) {\n \"use strict\";\n\n /**\n * @module braintree-web/vault-manager\n * @description Manages customer's payment methods.\n */\n var basicComponentVerification = require(\"../lib/basic-component-verification\");\n var createDeferredClient = require(\"../lib/create-deferred-client\");\n var createAssetsUrl = require(\"../lib/create-assets-url\");\n var VaultManager = require(\"./vault-manager\");\n var VERSION = \"3.97.1\";\n var wrapPromise = require(\"@braintree/wrap-promise\");\n\n /**\n * @static\n * @function create\n * @param {object} options Creation options:\n * @param {Client} [options.client] A {@link Client} instance.\n * @param {string} [options.authorization] A tokenizationKey or clientToken. Can be used in place of `options.client`.\n * @param {callback} callback The second argument, `data`, is the {@link VaultManager} instance.\n * @returns {void}\n */\n function create(options) {\n var name = \"Vault Manager\";\n return basicComponentVerification.verify({\n name: name,\n client: options.client,\n authorization: options.authorization\n }).then(function () {\n return new VaultManager({\n createPromise: createDeferredClient.create({\n authorization: options.authorization,\n client: options.client,\n debug: options.debug,\n assetsUrl: createAssetsUrl.create(options.authorization),\n name: name\n })\n });\n });\n }\n module.exports = {\n create: wrapPromise(create),\n /**\n * @description The current version of the SDK, i.e. `1.40.2`.\n * @type {string}\n */\n VERSION: VERSION\n };\n }, {\n \"../lib/basic-component-verification\": 75,\n \"../lib/create-assets-url\": 81,\n \"../lib/create-deferred-client\": 83,\n \"./vault-manager\": 159,\n \"@braintree/wrap-promise\": 33\n }],\n 159: [function (require, module, exports) {\n \"use strict\";\n\n var analytics = require(\"../lib/analytics\");\n var BraintreeError = require(\"../lib/braintree-error\");\n var errors = require(\"./errors\");\n var convertMethodsToError = require(\"../lib/convert-methods-to-error\");\n var methods = require(\"../lib/methods\");\n var wrapPromise = require(\"@braintree/wrap-promise\");\n var DELETE_PAYMENT_METHOD_MUTATION = \"mutation DeletePaymentMethodFromSingleUseToken($input: DeletePaymentMethodFromSingleUseTokenInput!) {\" + \" deletePaymentMethodFromSingleUseToken(input: $input) {\" + \" clientMutationId\" + \" }\" + \"}\";\n\n /**\n * @typedef {array} VaultManager~fetchPaymentMethodsPayload The customer's payment methods.\n * @property {object} paymentMethod The payment method object.\n * @property {string} paymentMethod.nonce A nonce that can be sent to your server to transact on the payment method.\n * @property {boolean} paymentMethod.default Whether or not this is the default payment method for the customer.\n * @property {object} paymentMethod.details Any additional details about the payment method. Varies depending on the type of payment method.\n * @property {string} paymentMethod.type A constant indicating the type of payment method.\n * @property {?string} paymentMethod.description Additional description about the payment method.\n * @property {?object} paymentMethod.binData Bin data about the payment method.\n *\n */\n\n /**\n * @class\n * @param {object} options Options\n * @description You cannot use this constructor directly. Use {@link module:braintree-web/vault-manager.create|braintree.vault-manager.create} instead.\n * @classdesc This class allows you to manage a customer's payment methods on the client.\n */\n function VaultManager(options) {\n this._createPromise = options.createPromise;\n }\n\n /**\n * Fetches payment methods owned by the customer whose id was used to generate the client token used to create the {@link module:braintree-web/client|client}.\n * @public\n * @param {object} [options] Options for fetching payment methods.\n * @param {boolean} [options.defaultFirst = false] If `true`, the payment methods will be returned with the default payment method for the customer first. Otherwise, order is not guaranteed.\n * @param {callback} [callback] The second argument is a {@link VaultManager~fetchPaymentMethodsPayload|fetchPaymentMethodsPayload}. This is also what is resolved by the promise if no callback is provided.\n * @returns {(Promise|void)} Returns a promise if no callback is provided.\n * @example\n * vaultManagerInstance.fetchPaymentMethods(function (err, paymentMethods) {\n * paymentMethods.forEach(function (paymentMethod) {\n * // add payment method to UI\n * // paymentMethod.nonce <- transactable nonce associated with payment method\n * // paymentMethod.details <- object with additional information about payment method\n * // paymentMethod.type <- a constant signifying the type\n * });\n * });\n */\n VaultManager.prototype.fetchPaymentMethods = function (options) {\n var defaultFirst;\n options = options || {};\n defaultFirst = options.defaultFirst === true ? 1 : 0;\n return this._createPromise.then(function (client) {\n return client.request({\n endpoint: \"payment_methods\",\n method: \"get\",\n data: {\n defaultFirst: defaultFirst\n }\n });\n }).then(function (paymentMethodsPayload) {\n analytics.sendEvent(this._createPromise, \"vault-manager.fetch-payment-methods.succeeded\");\n return paymentMethodsPayload.paymentMethods.map(formatPaymentMethodPayload);\n }.bind(this));\n };\n\n /**\n * Deletes a payment method owned by the customer whose id was used to generate the client token used to create the {@link module:braintree-web/client|client}.\n * @public\n * @param {string} paymentMethodNonce The payment method nonce that references a vaulted payment method.\n * @param {callback} [callback] No data is returned if the operation is successful.\n * @returns {(Promise|void)} Returns a promise if no callback is provided.\n * @example\n * vaultManagerInstance.deletePaymentMethod('nonce-to-delete', function (err) {\n * // handle err if it exists\n * });\n */\n VaultManager.prototype.deletePaymentMethod = function (paymentMethodNonce) {\n return this._createPromise.then(function (client) {\n var usesClientToken = client.getConfiguration().authorizationType === \"CLIENT_TOKEN\";\n if (!usesClientToken) {\n return Promise.reject(new BraintreeError(errors.VAULT_MANAGER_DELETE_PAYMENT_METHOD_NONCE_REQUIRES_CLIENT_TOKEN));\n }\n return client.request({\n api: \"graphQLApi\",\n data: {\n query: DELETE_PAYMENT_METHOD_MUTATION,\n variables: {\n input: {\n singleUseTokenId: paymentMethodNonce\n }\n },\n operationName: \"DeletePaymentMethodFromSingleUseToken\"\n }\n }).then(function () {\n analytics.sendEvent(client, \"vault-manager.delete-payment-method.succeeded\");\n\n // noop to prevent sending back the raw graphql data\n }).catch(function (error) {\n var originalError = error.details.originalError;\n var formattedError;\n analytics.sendEvent(client, \"vault-manager.delete-payment-method.failed\");\n if (originalError[0] && originalError[0].extensions.errorClass === \"NOT_FOUND\") {\n formattedError = new BraintreeError({\n type: errors.VAULT_MANAGER_PAYMENT_METHOD_NONCE_NOT_FOUND.type,\n code: errors.VAULT_MANAGER_PAYMENT_METHOD_NONCE_NOT_FOUND.code,\n message: \"A payment method for payment method nonce `\" + paymentMethodNonce + \"` could not be found.\",\n details: {\n originalError: originalError\n }\n });\n }\n if (!formattedError) {\n formattedError = new BraintreeError({\n type: errors.VAULT_MANAGER_DELETE_PAYMENT_METHOD_UNKNOWN_ERROR.type,\n code: errors.VAULT_MANAGER_DELETE_PAYMENT_METHOD_UNKNOWN_ERROR.code,\n message: \"An unknown error occured when attempting to delete the payment method assocaited with the payment method nonce `\" + paymentMethodNonce + \"`.\",\n details: {\n originalError: originalError\n }\n });\n }\n return Promise.reject(formattedError);\n });\n });\n };\n function formatPaymentMethodPayload(paymentMethod) {\n var formattedPaymentMethod = {\n nonce: paymentMethod.nonce,\n default: paymentMethod.default,\n details: paymentMethod.details,\n hasSubscription: paymentMethod.hasSubscription,\n type: paymentMethod.type\n };\n if (paymentMethod.description) {\n formattedPaymentMethod.description = paymentMethod.description;\n }\n if (paymentMethod.binData) {\n formattedPaymentMethod.binData = paymentMethod.binData;\n }\n return formattedPaymentMethod;\n }\n\n /**\n * Cleanly tear down anything set up by {@link module:braintree-web/vault-manager.create|create}.\n * @public\n * @param {callback} [callback] Called once teardown is complete. No data is returned if teardown completes successfully.\n * @example\n * vaultManagerInstance.teardown();\n * @example With callback\n * vaultManagerInstance.teardown(function () {\n * // teardown is complete\n * });\n * @returns {(Promise|void)} Returns a promise if no callback is provided.\n */\n VaultManager.prototype.teardown = function () {\n convertMethodsToError(this, methods(VaultManager.prototype));\n return Promise.resolve();\n };\n module.exports = wrapPromise.wrapPrototype(VaultManager);\n }, {\n \"../lib/analytics\": 72,\n \"../lib/braintree-error\": 77,\n \"../lib/convert-methods-to-error\": 79,\n \"../lib/methods\": 107,\n \"./errors\": 157,\n \"@braintree/wrap-promise\": 33\n }],\n 160: [function (require, module, exports) {\n \"use strict\";\n\n var __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n default: mod\n };\n };\n var venmo_desktop_1 = __importDefault(require(\"./venmo-desktop\"));\n module.exports = function createVenmoDesktop(options) {\n var instance = new venmo_desktop_1.default(options);\n return instance.initialize();\n };\n }, {\n \"./venmo-desktop\": 162\n }],\n 161: [function (require, module, exports) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.VENMO_PAYMENT_CONTEXT_STATUS_QUERY = exports.LEGACY_VENMO_PAYMENT_CONTEXT_STATUS_QUERY = exports.UPDATE_PAYMENT_CONTEXT_QUERY = exports.LEGACY_UPDATE_PAYMENT_CONTEXT_QUERY = exports.CREATE_PAYMENT_CONTEXT_QUERY = exports.LEGACY_CREATE_PAYMENT_CONTEXT_QUERY = void 0;\n exports.LEGACY_CREATE_PAYMENT_CONTEXT_QUERY = \"mutation CreateVenmoQRCodePaymentContext($input: CreateVenmoQRCodePaymentContextInput!) {\\n createVenmoQRCodePaymentContext(input: $input) {\\n clientMutationId\\n venmoQRCodePaymentContext {\\n id\\n merchantId\\n createdAt\\n expiresAt\\n }\\n }\\n}\";\n exports.CREATE_PAYMENT_CONTEXT_QUERY = \"mutation CreateVenmoPaymentContext($input: CreateVenmoPaymentContextInput!) {\\n createVenmoPaymentContext(input: $input) {\\n clientMutationId\\n venmoPaymentContext {\\n id\\n merchantId\\n createdAt\\n expiresAt\\n }\\n }\\n}\";\n exports.LEGACY_UPDATE_PAYMENT_CONTEXT_QUERY = \"mutation UpdateVenmoQRCodePaymentContext($input: UpdateVenmoQRCodePaymentContextInput!) {\\n updateVenmoQRCodePaymentContext(input: $input) {\\n clientMutationId\\n }\\n}\";\n exports.UPDATE_PAYMENT_CONTEXT_QUERY = \"mutation UpdateVenmoPaymentContextStatus($input: UpdateVenmoPaymentContextStatusInput!) {\\n updateVenmoPaymentContextStatus(input: $input) {\\n clientMutationId\\n }\\n}\";\n exports.LEGACY_VENMO_PAYMENT_CONTEXT_STATUS_QUERY = \"query PaymentContext($id: ID!) {\\n node(id: $id) {\\n ... on VenmoQRCodePaymentContext {\\n status\\n paymentMethodId\\n userName\\n }\\n }\\n}\";\n exports.VENMO_PAYMENT_CONTEXT_STATUS_QUERY = \"query PaymentContext($id: ID!) {\\n node(id: $id) {\\n ... on VenmoPaymentContext {\\n status\\n paymentMethodId\\n userName\\n payerInfo {\\n firstName\\n lastName\\n phoneNumber\\n email\\n externalId\\n userName\\n billingAddress {\\n fullName\\n addressLine1\\n addressLine2\\n adminArea1\\n adminArea2\\n postalCode\\n countryCode\\n }\\n shippingAddress {\\n fullName\\n addressLine1\\n addressLine2\\n adminArea1\\n adminArea2\\n postalCode\\n countryCode\\n }\\n }\\n }\\n }\\n}\";\n }, {}],\n 162: [function (require, module, exports) {\n \"use strict\";\n\n var __assign = this && this.__assign || function () {\n __assign = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };\n var __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n default: mod\n };\n };\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n var framebus_1 = __importDefault(require(\"framebus\"));\n var iframer_1 = __importDefault(require(\"@braintree/iframer\"));\n var uuid_1 = __importDefault(require(\"@braintree/uuid\"));\n var events_1 = require(\"../shared/events\");\n var queries_1 = require(\"./queries\");\n var VENMO_DESKTOP_POLLING_INTERVAL = 1000; // 1 second\n var VISUAL_DELAY_BEFORE_SIGNALLING_COMPLETION = 2000; // 2 seconds\n var VenmoDesktop = /** @class */function () {\n function VenmoDesktop(options) {\n this.isHidden = true;\n this.env = options.environment;\n this.id = uuid_1.default();\n this.profileId = options.profileId;\n this.displayName = options.displayName;\n this.paymentMethodUsage = options.paymentMethodUsage;\n this.shouldUseLegacyQRCodeMutation = !this.paymentMethodUsage;\n var frameUrl = options.url + \"#\" + this.env + \"_\" + this.id;\n this.bus = new framebus_1.default({\n channel: this.id,\n verifyDomain: options.verifyDomain,\n targetFrames: []\n });\n this.apiRequest = options.apiRequest;\n this.sendEvent = options.sendEvent;\n this.Promise = options.Promise;\n this.alertBox = document.createElement(\"div\");\n this.alertBox.setAttribute(\"data-venmo-desktop-id\", this.id);\n this.alertBox.setAttribute(\"role\", \"alert\");\n this.alertBox.style.position = \"fixed\";\n this.alertBox.style.display = \"none\";\n this.alertBox.style.height = \"1px\";\n this.alertBox.style.width = \"1px\";\n this.alertBox.style.overflow = \"hidden\";\n this.alertBox.style.zIndex = \"0\";\n this.iframe = iframer_1.default({\n src: frameUrl,\n name: \"venmo-desktop-iframe\",\n style: {\n display: \"none\",\n position: \"fixed\",\n top: \"0\",\n bottom: \"0\",\n right: \"0\",\n left: \"0\",\n height: \"100%\",\n width: \"100%\",\n zIndex: \"9999999\"\n },\n title: \"Venmo Desktop\"\n });\n this.bus.addTargetFrame(this.iframe);\n }\n VenmoDesktop.prototype.initialize = function () {\n var _this = this;\n return new this.Promise(function (resolve) {\n _this.bus.on(events_1.VENMO_DESKTOP_IFRAME_READY, function () {\n resolve(_this);\n });\n _this.bus.on(events_1.VENMO_DESKTOP_REQUEST_NEW_QR_CODE, function () {\n _this.sendEvent(\"venmo.tokenize.desktop.restarted-from-error-view\");\n _this.startPolling();\n });\n document.body.appendChild(_this.iframe);\n document.body.appendChild(_this.alertBox);\n });\n };\n VenmoDesktop.prototype.launchDesktopFlow = function () {\n var _this = this;\n this.isHidden = false;\n var promise = new this.Promise(function (resolve, reject) {\n _this.launchDesktopPromiseRejectFunction = reject;\n var removeListeners = function () {\n /* eslint-disable @typescript-eslint/no-use-before-define */\n _this.bus.off(events_1.VENMO_DESKTOP_CUSTOMER_CANCELED, customerCancelledHandler);\n _this.bus.off(events_1.VENMO_DESKTOP_UNKNOWN_ERROR, unknownErrorHandler);\n /* eslint-enable @typescript-eslint/no-use-before-define */\n };\n\n var unknownErrorHandler = function (err) {\n removeListeners();\n _this.sendEvent(\"venmo.tokenize.desktop.unknown-error\");\n reject({\n allowUIToHandleError: false,\n reason: \"UNKNOWN_ERROR\",\n err: err\n });\n };\n var customerCancelledHandler = function () {\n removeListeners();\n _this.updateVenmoDesktopPaymentContext(\"CANCELED\");\n _this.sendEvent(\"venmo.tokenize.desktop.status-change.canceled-from-modal\");\n reject({\n allowUIToHandleError: false,\n reason: \"CUSTOMER_CANCELED\"\n });\n };\n _this.completedHandler = function (payload) {\n removeListeners();\n resolve(payload);\n };\n _this.bus.on(events_1.VENMO_DESKTOP_CUSTOMER_CANCELED, customerCancelledHandler);\n _this.bus.on(events_1.VENMO_DESKTOP_UNKNOWN_ERROR, unknownErrorHandler);\n });\n this.iframe.style.display = \"block\";\n this.setAlert(\"Generating a QR code, get your Venmo app ready\");\n this.iframe.focus();\n this.startPolling();\n return promise.then(function (result) {\n delete _this.venmoContextId;\n delete _this.launchDesktopPromiseRejectFunction;\n return result;\n }).catch(function (err) {\n delete _this.venmoContextId;\n delete _this.launchDesktopPromiseRejectFunction;\n return _this.Promise.reject(err);\n });\n };\n VenmoDesktop.prototype.triggerCompleted = function (result) {\n var _this = this;\n if (this.isHidden) {\n return;\n }\n setTimeout(function () {\n if (_this.completedHandler) {\n _this.completedHandler(result);\n }\n delete _this.completedHandler;\n }, VISUAL_DELAY_BEFORE_SIGNALLING_COMPLETION);\n };\n VenmoDesktop.prototype.triggerRejected = function (err) {\n if (this.launchDesktopPromiseRejectFunction) {\n this.launchDesktopPromiseRejectFunction(err);\n }\n };\n VenmoDesktop.prototype.hideDesktopFlow = function () {\n this.setAlert(\"\");\n this.iframe.style.display = \"none\";\n this.bus.emit(events_1.VENMO_DESKTOP_CLOSED_FROM_PARENT);\n this.isHidden = true;\n };\n VenmoDesktop.prototype.displayError = function (message) {\n if (this.isHidden) {\n return;\n }\n this.bus.emit(events_1.VENMO_DESKTOP_DISPLAY_ERROR, {\n message: message\n });\n this.setAlert(message);\n };\n VenmoDesktop.prototype.displayQRCode = function (id, merchantId) {\n if (this.isHidden) {\n return;\n }\n this.bus.emit(events_1.VENMO_DESKTOP_DISPLAY_QR_CODE, {\n id: id,\n merchantId: merchantId\n });\n this.setAlert(\"To scan the QR code, open your Venmo app\");\n };\n VenmoDesktop.prototype.authorize = function () {\n if (this.isHidden) {\n return;\n }\n this.bus.emit(events_1.VENMO_DESKTOP_AUTHORIZE);\n this.setAlert(\"Venmo account authorized\");\n };\n VenmoDesktop.prototype.authorizing = function () {\n if (this.isHidden) {\n return;\n }\n this.bus.emit(events_1.VENMO_DESKTOP_AUTHORIZING);\n this.setAlert(\"Authorize on your Venmo app\");\n };\n VenmoDesktop.prototype.startPolling = function () {\n var _this = this;\n return this.createVenmoDesktopPaymentContext().then(function (result) {\n var expiresIn = new Date(result.expiresAt).getTime() - new Date(result.createdAt).getTime();\n var expiredTime = Date.now() + expiresIn;\n _this.displayQRCode(result.id, result.merchantId);\n return _this.pollForStatusChange(result.status, expiredTime);\n }).then(function (result) {\n if (!result) {\n return;\n }\n // since we are manually adding a prepended @ sign\n // we want to make sure that the username does not\n // start giving us the @ sign up front in the future\n var username = result.userName || \"\";\n username = \"@\" + username.replace(\"@\", \"\");\n _this.triggerCompleted({\n paymentMethodNonce: result.paymentMethodId,\n username: username,\n payerInfo: result.payerInfo,\n id: _this.venmoContextId || \"\"\n });\n }).catch(function (err) {\n if (err.allowUIToHandleError) {\n // noop here and let the UI handle the customer error\n return;\n }\n _this.sendEvent(\"venmo.tokenize.desktop.unhandled-error\");\n _this.triggerRejected(err);\n });\n };\n VenmoDesktop.prototype.pollForStatusChange = function (status, expiredTime) {\n var _this = this;\n if (!this.venmoContextId) {\n return this.Promise.resolve();\n }\n if (Date.now() > expiredTime) {\n return this.updateVenmoDesktopPaymentContext(\"EXPIRED\").then(function () {\n _this.displayError(\"Something went wrong\");\n _this.sendEvent(\"venmo.tokenize.desktop.status-change.sdk-timeout\");\n return _this.Promise.reject({\n allowUIToHandleError: true,\n reason: \"TIMEOUT\"\n });\n });\n }\n return this.lookupVenmoDesktopPaymentContext().then(function (response) {\n if (!_this.venmoContextId || !response) {\n return _this.Promise.resolve();\n }\n var newStatus = response.status;\n if (newStatus !== status) {\n status = newStatus;\n _this.sendEvent(\"venmo.tokenize.desktop.status-change.\" + status.toLowerCase());\n switch (status) {\n case \"CREATED\":\n // noop, no need to do anything here\n // should never be able to get to this point\n // but we'll keep it in to enumerate the statuses\n break;\n case \"EXPIRED\":\n case \"FAILED\":\n case \"CANCELED\":\n var message = status === \"CANCELED\" ? \"The authorization was canceled\" : \"Something went wrong\";\n _this.displayError(message);\n // these are all terminal states, so we end it here\n return _this.Promise.reject({\n allowUIToHandleError: true,\n reason: status\n });\n case \"SCANNED\":\n _this.authorizing();\n break;\n case \"APPROVED\":\n _this.authorize();\n return _this.Promise.resolve(response);\n default:\n // any other statuses are irrelevant to the polling\n // and can just be ignored\n }\n }\n\n return new _this.Promise(function (resolve, reject) {\n setTimeout(function () {\n _this.pollForStatusChange(status, expiredTime).then(resolve).catch(reject);\n }, VENMO_DESKTOP_POLLING_INTERVAL);\n });\n });\n };\n VenmoDesktop.prototype.teardown = function () {\n this.bus.teardown();\n if (this.iframe.parentNode) {\n this.iframe.parentNode.removeChild(this.iframe);\n }\n if (this.alertBox.parentNode) {\n this.alertBox.parentNode.removeChild(this.alertBox);\n }\n };\n VenmoDesktop.prototype.setAlert = function (message) {\n this.alertBox.style.display = message ? \"block\" : \"none\";\n this.alertBox.textContent = message;\n };\n VenmoDesktop.prototype.createPaymentContextFromGraphqlLegacyQRCodeMutation = function (intent) {\n return this.apiRequest(queries_1.LEGACY_CREATE_PAYMENT_CONTEXT_QUERY, {\n input: {\n environment: this.env,\n intent: intent\n }\n }).then(function (response) {\n return response.createVenmoQRCodePaymentContext.venmoQRCodePaymentContext;\n });\n };\n VenmoDesktop.prototype.createPaymentContextFromGraphQL = function (intent) {\n var input = {\n intent: intent,\n paymentMethodUsage: this.paymentMethodUsage,\n customerClient: \"DESKTOP\"\n };\n if (this.profileId) {\n input.merchantProfileId = this.profileId;\n }\n if (this.displayName) {\n input.displayName = this.displayName;\n }\n return this.apiRequest(queries_1.CREATE_PAYMENT_CONTEXT_QUERY, {\n input: input\n }).then(function (response) {\n return response.createVenmoPaymentContext.venmoPaymentContext;\n });\n };\n VenmoDesktop.prototype.createVenmoDesktopPaymentContext = function () {\n var _this = this;\n var contextPromise = this.shouldUseLegacyQRCodeMutation ? this.createPaymentContextFromGraphqlLegacyQRCodeMutation(\"PAY_FROM_APP\") : this.createPaymentContextFromGraphQL(\"PAY_FROM_APP\");\n return contextPromise.then(function (context) {\n _this.venmoContextId = context.id;\n var merchantId = _this.profileId || context.merchantId;\n return {\n id: context.id,\n status: context.status,\n merchantId: merchantId,\n createdAt: context.createdAt,\n expiresAt: context.expiresAt\n };\n });\n };\n VenmoDesktop.prototype.updateVenmoDesktopPaymentContext = function (status, additionalOptions) {\n if (additionalOptions === void 0) {\n additionalOptions = {};\n }\n if (!this.venmoContextId) {\n return this.Promise.resolve();\n }\n var data = {\n input: __assign({\n id: this.venmoContextId,\n status: status\n }, additionalOptions)\n };\n var query = this.shouldUseLegacyQRCodeMutation ? queries_1.LEGACY_UPDATE_PAYMENT_CONTEXT_QUERY : queries_1.UPDATE_PAYMENT_CONTEXT_QUERY;\n return this.apiRequest(query, data).then(function () {\n // noop so we can resolve without any data to match the type\n });\n };\n VenmoDesktop.prototype.lookupVenmoDesktopPaymentContext = function () {\n if (!this.venmoContextId) {\n return this.Promise.resolve();\n }\n var query = this.shouldUseLegacyQRCodeMutation ? queries_1.LEGACY_VENMO_PAYMENT_CONTEXT_STATUS_QUERY : queries_1.VENMO_PAYMENT_CONTEXT_STATUS_QUERY;\n return this.apiRequest(query, {\n id: this.venmoContextId\n }).then(function (response) {\n return response.node;\n });\n };\n return VenmoDesktop;\n }();\n exports.default = VenmoDesktop;\n }, {\n \"../shared/events\": 167,\n \"./queries\": 161,\n \"@braintree/iframer\": 25,\n \"@braintree/uuid\": 29,\n \"framebus\": 180\n }],\n 163: [function (require, module, exports) {\n \"use strict\";\n\n /** @module braintree-web/venmo */\n var analytics = require(\"../lib/analytics\");\n var basicComponentVerification = require(\"../lib/basic-component-verification\");\n var createDeferredClient = require(\"../lib/create-deferred-client\");\n var createAssetsUrl = require(\"../lib/create-assets-url\");\n var errors = require(\"./shared/errors\");\n var wrapPromise = require(\"@braintree/wrap-promise\");\n var BraintreeError = require(\"../lib/braintree-error\");\n var Venmo = require(\"./venmo\");\n var supportsVenmo = require(\"./shared/supports-venmo\");\n var VERSION = \"3.97.1\";\n\n /**\n * @typedef {object} Venmo~lineItem\n * @property {number} quantity Number of units of the item purchased. This value must be a whole number and can't be negative or zero.\n * @property {string} unitAmount Per-unit price of the item. Can include up to 2 decimal places. This value can't be negative or zero.\n * @property {string} name Item name. Maximum 127 characters.\n * @property {string} kind Indicates whether the line item is a debit (sale) or credit (refund) to the customer. Accepted values: `debit` and `credit`.\n * @property {?string} unitTaxAmount Per-unit tax price of the item. Can include up to 2 decimal places. This value can't be negative or zero.\n * @property {?string} description Item description. Maximum 127 characters.\n * @property {?string} productCode Product or UPC code for the item. Maximum 127 characters.\n * @property {?string} url The URL to product information.\n */\n\n /**\n * @static\n * @function create\n * @param {object} options Creation options:\n * @param {Client} [options.client] A {@link Client} instance.\n * @param {string} [options.authorization] A tokenizationKey or clientToken. Can be used in place of `options.client`.\n * @param {boolean} [options.allowNewBrowserTab=true] This should be set to false if your payment flow requires returning to the same tab, e.g. single page applications. Doing so causes {@link Venmo#isBrowserSupported|isBrowserSupported} to return true only for mobile web browsers that support returning from the Venmo app to the same tab.\n * @param {boolean} [options.allowWebviews=true] This should be set to false if your payment flow does not occur from within a webview that you control. Doing so causes {@link Venmo#isBrowserSupported|isBrowserSupported} to return true only for mobile web browsers that are not webviews.\n * @param {boolean} [options.ignoreHistoryChanges=false] When the Venmo app returns to the website, it will modify the hash of the url to include data about the tokenization. By default, the SDK will put the state of the hash back to where it was before the change was made. Pass `true` to handle the hash change instead of the SDK.\n * @param {string} [options.profileId] The Venmo profile ID to be used during payment authorization. Customers will see the business name and logo associated with this Venmo profile, and it will show up in the Venmo app as a \"Connected Merchant\". Venmo profile IDs can be found in the Braintree Control Panel. Omitting this value will use the default Venmo profile.\n * @param {string} [options.deepLinkReturnUrl] An override for the URL that the Venmo iOS app opens to return from an app switch.\n * @param {boolean} [options.requireManualReturn=false] When `true`, the customer will have to manually switch back to the browser/webview that is presenting Venmo to complete the payment.\n * @param {boolean} [options.useRedirectForIOS=false] Normally, the Venmo flow is launched using `window.open` and the Venmo app intercepts that call and opens the Venmo app instead. If the customer does not have the Venmo app installed, it opens the Venmo website in a new window and instructs the customer to install the app.\n \n * In iOS webviews and Safari View Controllers (a webview-like environment which is indistinguishable from Safari for JavaScript environments), this call to `window.open` will always fail to app switch to Venmo, resulting instead in a white screen. Because of this, an alternate approach is required to launch the Venmo flow.\n *\n * When `useRedirectForIOS` is `true` and the Venmo flow is started in an iOS environment, the Venmo flow will be started by setting `window.location.href` to the Venmo website (which will still be intercepted by the Venmo app and should be the same behavior as if `window.open` was called). However, if the customer does not have the Venmo app installed, the merchant page will instead be replaced with the Venmo website and the customer will need to use the browser's back button to return to the merchant's website. Ensure that your customer's checkout information will not be lost if they are navigated away from the website and return using the browser back button.\n *\n * Due to a bug in iOS's implementation of `window.open` in iOS webviews and Safari View Controllers, if `useRedirectForIOS` is not set to `true` and the flow is launched from an iOS webview or Safari View Controller, the customer will be presented with a blank screen, halting the flow and leaving the customer unable to return to the merchant's website. Setting `useRedirectForIOS` to `true` will allow the flow to continue, but the Venmo app will be unable to return back to the webview/Safari View Controller. It will instead open the merchant's site in a new window in the customer's browser, which means the merchant site must be able to process the Venmo payment. If the SDK is configured with `allowNewBrowserTab = false`, it is unlikely that the website is set up to process the Venmo payment from a new window.\n *\n * If processing the payment from a new window is not possible, use this flag in conjunction with `requireManualReturn` so that the customer may start the flow from a webview/Safari View Controller or their Safari browser and manually return to the place that originated the flow once the Venmo app has authorized the payment and instructed them to do so.\n * @param {string} [options.paymentMethodUsage] The intended usage for the Venmo payment method nonce. Possible options are:\n * * single_use - intended as a one time transaction\n * * multi_use - intended to be vaulted and used for multiple transactions\n * @param {string} [options.displayName] The business name that will be displayed in the Venmo app payment approval screen. Only applicable when used with `paymentMethodUsage` and used by merchants onboarded as PayFast channel partners.\n * @param {boolean} [options.allowDesktop] Used to support desktop users. When enabled, the default mode is to render a scannable QR-code customers scan with their phone's to approve via the mobile app.\n * @param {boolean} [options.allowDesktopWebLogin=false] When `true`, the customer will authorize payment via a window popup that allows them to sign in to their Venmo account. This is used explicitly for customers operating from desktop browsers wanting to avoid the QR Code flow.\n * @param {boolean} [options.mobileWebFallBack] Use this option when you want to use a web-login experience, such as if on mobile and the Venmo app isn't installed.\n * @param {boolean} [options.allowAndroidRecreation=true] This flag is for when your integration uses the [Android PopupBridge](https://github.com/braintree/popup-bridge-android). Setting this flag to false will avoid a page refresh when returning to your page after payment authorization. If not specified, it defaults to true and the Android activity will be recreated, resulting in a page refresh.\n * @param {boolean} [options.collectCustomerBillingAddress] When `true`, the customer's billing address will be collected and displayed on the Venmo paysheet (provided the Enriched Customer Data checkbox is also enabled for the merchant account).\n * @param {boolean} [options.collectCustomerShippingAddress] When `true`, the customer's shipping address will be collected and displayed on the Venmo paysheet (provided the Enriched Customer Data checkbox is also enabled for the merchant account).\n * @param {lineItem[]} [options.lineItems] The {@link Venmo~lineItem|line items} belonging to the transaction. It can include up to 249 line items.\n * @param {string} [options.subTotalAmount] The subtotal amount of the transaction, excluding taxes, discounts, and shipping.\n * @param {string} [options.discountAmount] The total discount amount applied on the transaction.\n * @param {string} [options.shippingAmount] Shipping amount to be charged for the transaction.\n * @param {string} [options.taxAmount] The total tax amount applied to the transaction. This value can't be negative or zero.\n * @param {string} [options.totalAmount] The grand total amount of the transaction.\n *\n * Note: This flow currently requires a full page redirect, which means to utilize this flow your page will need to be able to handle the checkout session across different pages.\n * @param {callback} [callback] The second argument, `data`, is the {@link Venmo} instance. If no callback is provided, `create` returns a promise that resolves with the {@link Venmo} instance.\n * @example\n * braintree.venmo.create({\n * client: clientInstance\n * }).then(function (venmoInstance) {\n * // venmoInstance is ready to be used.\n * }).catch(function (createErr) {\n * console.error('Error creating Venmo instance', createErr);\n * });\n * @example Allow desktop flow to be used\n * braintree.venmo.create({\n * client: clientInstance,\n * allowDesktop: true\n * }).then(function (venmoInstance) {\n * // venmoInstance is ready to be used.\n * }).catch(function (createErr) {\n * console.error('Error creating Venmo instance', createErr);\n * });\n * @returns {(Promise|void)} Returns the Venmo instance.\n */\n function create(options) {\n var name = \"Venmo\";\n return basicComponentVerification.verify({\n name: name,\n client: options.client,\n authorization: options.authorization\n }).then(function () {\n var createPromise, instance;\n if (options.profileId && typeof options.profileId !== \"string\") {\n return Promise.reject(new BraintreeError(errors.VENMO_INVALID_PROFILE_ID));\n }\n if (options.deepLinkReturnUrl && typeof options.deepLinkReturnUrl !== \"string\") {\n return Promise.reject(new BraintreeError(errors.VENMO_INVALID_DEEP_LINK_RETURN_URL));\n }\n createPromise = createDeferredClient.create({\n authorization: options.authorization,\n client: options.client,\n debug: options.debug,\n assetsUrl: createAssetsUrl.create(options.authorization),\n name: name\n }).then(function (client) {\n var configuration = client.getConfiguration();\n options.client = client;\n if (!configuration.gatewayConfiguration.payWithVenmo) {\n return Promise.reject(new BraintreeError(errors.VENMO_NOT_ENABLED));\n }\n return client;\n });\n options.createPromise = createPromise;\n instance = new Venmo(options);\n analytics.sendEvent(createPromise, \"venmo.initialized\");\n return createPromise.then(function () {\n return instance;\n });\n });\n }\n\n /**\n * @static\n * @function isBrowserSupported\n * @param {object} [options] browser support options:\n * @param {boolean} [options.allowNewBrowserTab=true] This should be set to false if your payment flow requires returning to the same tab, e.g. single page applications.\n * @param {boolean} [options.allowWebviews=true] This should be set to false if your payment flow does not occur from within a webview that you control.\n * @example\n * if (braintree.venmo.isBrowserSupported()) {\n * // set up Venmo\n * }\n * @example Explicitly require browser support returning to the same tab\n * if (braintree.venmo.isBrowserSupported({\n * allowNewBrowserTab: false\n * })) {\n * // set up Venmo\n * }\n * @example Explicitly set webviews as disallowed browsers\n * if (braintree.venmo.isBrowserSupported({\n * allowWebviews: false\n * })) {\n * // set up Venmo\n * }\n * @returns {boolean} Whether or not the browser supports Venmo.\n */\n function isBrowserSupported(options) {\n return supportsVenmo.isBrowserSupported(options);\n }\n module.exports = {\n create: wrapPromise(create),\n isBrowserSupported: isBrowserSupported,\n /**\n * @description The current version of the SDK, i.e. `1.40.2`.\n * @type {string}\n */\n VERSION: VERSION\n };\n }, {\n \"../lib/analytics\": 72,\n \"../lib/basic-component-verification\": 75,\n \"../lib/braintree-error\": 77,\n \"../lib/create-assets-url\": 81,\n \"../lib/create-deferred-client\": 83,\n \"./shared/errors\": 166,\n \"./shared/supports-venmo\": 169,\n \"./venmo\": 171,\n \"@braintree/wrap-promise\": 33\n }],\n 164: [function (require, module, exports) {\n \"use strict\";\n\n var isAndroid = require(\"@braintree/browser-detection/is-android\");\n var isChrome = require(\"@braintree/browser-detection/is-chrome\");\n var isIos = require(\"@braintree/browser-detection/is-ios\");\n var isIosSafari = require(\"@braintree/browser-detection/is-ios-safari\");\n var isIosWebview = require(\"@braintree/browser-detection/is-ios-webview\");\n var isSamsung = require(\"@braintree/browser-detection/is-samsung\");\n function isAndroidWebview() {\n return isAndroid() && window.navigator.userAgent.toLowerCase().indexOf(\"wv\") > -1;\n }\n function doesNotSupportWindowOpenInIos() {\n if (!isIos()) {\n return false;\n }\n return isIosWebview() || !isIosSafari();\n }\n function isFacebookOwnedBrowserOnAndroid() {\n var ua = window.navigator.userAgent.toLowerCase();\n\n // Huawei's Facebook useragent does not include Android\n if (ua.indexOf(\"huawei\") > -1 && ua.indexOf(\"fban\") > -1) {\n return true;\n }\n if (!isAndroid()) {\n return false;\n }\n return ua.indexOf(\"fb_iab\") > -1 || ua.indexOf(\"instagram\") > -1;\n }\n\n // iOS chrome used to work with Venmo, but now it does not\n // we are unsure if something changed in the iOS Chrome app\n // itself, or if something about iOS webviews has changed\n // until we find out more info, we've created a helper to\n // easilly turn off iOS Chrome as a supported browser in\n // the isBrowserSupported helper function\n function isIosChrome() {\n return isIos() && isChrome();\n }\n module.exports = {\n isAndroid: isAndroid,\n isAndroidWebview: isAndroidWebview,\n isChrome: isChrome,\n isIos: isIos,\n isIosChrome: isIosChrome,\n isSamsung: isSamsung,\n isIosSafari: isIosSafari,\n isIosWebview: isIosWebview,\n isFacebookOwnedBrowserOnAndroid: isFacebookOwnedBrowserOnAndroid,\n doesNotSupportWindowOpenInIos: doesNotSupportWindowOpenInIos\n };\n }, {\n \"@braintree/browser-detection/is-android\": 131,\n \"@braintree/browser-detection/is-chrome\": 133,\n \"@braintree/browser-detection/is-ios\": 138,\n \"@braintree/browser-detection/is-ios-safari\": 135,\n \"@braintree/browser-detection/is-ios-webview\": 136,\n \"@braintree/browser-detection/is-samsung\": 139\n }],\n 165: [function (require, module, exports) {\n \"use strict\";\n\n /**\n * Venmo shared constants\n * @typedef {object} Venmo~venmoConstants\n * @ignore\n * @property {string} VENMO_APP_OR_MOBILE_AUTH_URL A deep-linked url that will open the Venmo app if installed, or navigate to a Venmo web-login experience if the Venmo app is not present.\n * @property {string} VENMO_MOBILE_APP_AUTH_ONLY_URL A deep-linked url that leads to a Venmo dead-end page if the Venmo app is not installed (page asks customer to download the app).\n * @property {string} VENMO_WEB_LOGIN_URL A non-deeplinked url that leads to a Venmo login page. For use when explicitly wanting to avoid using the Venmo mobile app via a deep-linked url.\n */\n module.exports = {\n DOCUMENT_VISIBILITY_CHANGE_EVENT_DELAY: 500,\n DEFAULT_PROCESS_RESULTS_DELAY: 1000,\n VENMO_APP_OR_MOBILE_AUTH_URL: \"https://venmo.com/go/checkout\",\n VENMO_MOBILE_APP_AUTH_ONLY_URL: \"https://venmo.com/braintree/checkout\",\n VENMO_WEB_LOGIN_URL: \"https://account.venmo.com/go/web\"\n };\n }, {}],\n 166: [function (require, module, exports) {\n \"use strict\";\n\n /**\n * @name BraintreeError.Venmo - Creation Error Codes\n * @description Errors that occur when [creating the Venmo component](./module-braintree-web_venmo.html#.create).\n * @property {MERCHANT} VENMO_NOT_ENABLED Occurs when Venmo is not enabled on the Braintree control panel.\n * @property {MERCHANT} VENMO_INVALID_PROFILE_ID Occurs when Venmo is initialized with a profile id, but it is invalid.\n * @property {UNKNOWN} VENMO_MOBILE_POLLING_SETUP_FAILED __Deprecated__ No longer returned. Use `VENMO_MOBILE_PAYMENT_CONTEXT_SETUP_FAILED` instead.\n * @property {UNKNOWN} VENMO_MOBILE_PAYMENT_CONTEXT_SETUP_FAILED Occurs when the request to set up a Venmo Payment Context object fails.\n */\n\n /**\n * @name BraintreeError.Venmo - tokenize Error Codes\n * @description Errors that occur when using the [`tokenize` method](./Venmo.html#tokenize).\n * @property {CUSTOMER} VENMO_APP_CANCELED Occurs when customer cancels flow from the Venmo app.\n * @property {UNKNOWN} VENMO_APP_FAILED Occurs when tokenization fails.\n * @property {CUSTOMER} VENMO_CANCELED Occurs when customer cancels the flow or Venmo app is not available.\n * @property {CUSTOMER} VENMO_CUSTOMER_CANCELED Occurs when customer cancels the flow.\n * @property {CUSTOMER} VENMO_DESKTOP_CANCELED Occurs when customer cancels the Venmo Desktop flow by closing the modal.\n * @property {UNKNOWN} VENMO_DESKTOP_UNKNOWN_ERROR Occurs when an unknown error causes the Venmo Desktop flow to fail.\n * @property {UNKNOWN} VENMO_MOBILE_POLLING_TOKENIZATION_NETWORK_ERROR Occurs when an unknown network error causes the mobile polling process to fail.\n * @property {CUSTOMER} VENMO_MOBILE_POLLING_TOKENIZATION_EXPIRED Occurs when the polling has expired and the payment cannot be completed.\n * @property {CUSTOMER} VENMO_MOBILE_POLLING_TOKENIZATION_CANCELED Occurs when the polling operation is canceled by the customer.\n * @property {CUSTOMER} VENMO_MOBILE_POLLING_TOKENIZATION_TIMEOUT Occurs when customer takes too long to complete payment.\n * @property {UNKNOWN} VENMO_MOBILE_POLLING_TOKENIZATION_FAILED Occurs if there is an unknown error during the mobile polling process.\n * @property {NETWORK} VENMO_NETWORK_ERROR Occurs when a network error causes a request to fail.\n * @property {MERCHANT} VENMO_TOKENIZATION_CANCELED_BY_MERCHANT Occurs when `cancelTokenization` is called while tokenization is in progress.\n * @property {UNKNOWN} VENMO_TOKENIZATION_FAILED Occurs when there is an unknown error during the web login experience.\n * @property {MERCHANT} VENMO_TOKENIZATION_REQUEST_ACTIVE Occurs when `tokenize` is called when the flow is already in progress.\n * @property {MERCHANT} VENMO_TOKENIZATION_REQUEST_NOT_ACTIVE Occurs when `cancelTokenization` is called when the flow is not in progress.\n * @property {MERCHANT} VENMO_ECD_DISABLED Occurs when the merchant tries to access customer details without enabling Enriched Customer Data.\n */\n var BraintreeError = require(\"../../lib/braintree-error\");\n module.exports = {\n VENMO_NOT_ENABLED: {\n type: BraintreeError.types.MERCHANT,\n code: \"VENMO_NOT_ENABLED\",\n message: \"Venmo is not enabled for this merchant.\"\n },\n VENMO_TOKENIZATION_REQUEST_ACTIVE: {\n type: BraintreeError.types.MERCHANT,\n code: \"VENMO_TOKENIZATION_REQUEST_ACTIVE\",\n message: \"Another tokenization request is active.\"\n },\n VENMO_TOKENIZATION_REQUEST_NOT_ACTIVE: {\n type: BraintreeError.types.MERCHANT,\n code: \"VENMO_TOKENIZATION_REQUEST_NOT_ACTIVE\",\n message: \"No tokenization in progress.\"\n },\n VENMO_APP_FAILED: {\n type: BraintreeError.types.UNKNOWN,\n code: \"VENMO_APP_FAILED\",\n message: \"Venmo app encountered a problem.\"\n },\n VENMO_APP_CANCELED: {\n type: BraintreeError.types.CUSTOMER,\n code: \"VENMO_APP_CANCELED\",\n message: \"Venmo app authorization was canceled.\"\n },\n VENMO_CANCELED: {\n type: BraintreeError.types.CUSTOMER,\n code: \"VENMO_CANCELED\",\n message: \"User canceled Venmo authorization, or Venmo app is not available.\"\n },\n VENMO_CUSTOMER_CANCELED: {\n type: BraintreeError.types.CUSTOMER,\n code: \"VENMO_CUSTOMER_CANCELED\",\n message: \"User canceled Venmo authorization.\"\n },\n VENMO_NETWORK_ERROR: {\n type: BraintreeError.types.NETWORK,\n code: \"VENMO_NETWORK_ERROR\",\n message: \"Something went wrong making the request\"\n },\n VENMO_DESKTOP_CANCELED: {\n type: BraintreeError.types.CUSTOMER,\n code: \"VENMO_DESKTOP_CANCELED\",\n message: \"User canceled Venmo authorization by closing the Venmo Desktop modal.\"\n },\n VENMO_TOKENIZATION_CANCELED_BY_MERCHANT: {\n type: BraintreeError.types.MERCHANT,\n code: \"VENMO_TOKENIZATION_CANCELED_BY_MERCHANT\",\n message: \"The Venmo tokenization was canceled by the merchant.\"\n },\n VENMO_DESKTOP_UNKNOWN_ERROR: {\n type: BraintreeError.types.UNKNOWN,\n code: \"VENMO_DESKTOP_UNKNOWN_ERROR\",\n message: \"Something went wrong with the Venmo Desktop flow.\"\n },\n VENMO_MOBILE_PAYMENT_CONTEXT_SETUP_FAILED: {\n type: BraintreeError.types.NETWORK,\n code: \"VENMO_MOBILE_PAYMENT_CONTEXT_SETUP_FAILED\",\n message: \"Something went wrong creating the Venmo Payment Context.\"\n },\n VENMO_MOBILE_POLLING_TOKENIZATION_NETWORK_ERROR: {\n type: BraintreeError.types.UNKNOWN,\n code: \"VENMO_MOBILE_POLLING_TOKENIZATION_NETWORK_ERROR\",\n message: \"Something went wrong during mobile polling.\"\n },\n VENMO_MOBILE_POLLING_TOKENIZATION_EXPIRED: {\n type: BraintreeError.types.CUSTOMER,\n code: \"VENMO_MOBILE_POLLING_TOKENIZATION_EXPIRED\",\n message: \"The Venmo authorization request is expired.\"\n },\n VENMO_MOBILE_POLLING_TOKENIZATION_CANCELED: {\n type: BraintreeError.types.CUSTOMER,\n code: \"VENMO_MOBILE_POLLING_TOKENIZATION_CANCELED\",\n message: \"The Venmo authorization was canceled\"\n },\n VENMO_MOBILE_POLLING_TOKENIZATION_TIMEOUT: {\n type: BraintreeError.types.CUSTOMER,\n code: \"VENMO_MOBILE_POLLING_TOKENIZATION_TIMEOUT\",\n message: \"Customer took too long to authorize Venmo payment.\"\n },\n VENMO_MOBILE_POLLING_TOKENIZATION_FAILED: {\n type: BraintreeError.types.UNKNOWN,\n code: \"VENMO_MOBILE_POLLING_TOKENIZATION_FAILED\",\n message: \"The Venmo authorization failed.\"\n },\n VENMO_INVALID_PROFILE_ID: {\n type: BraintreeError.types.MERCHANT,\n code: \"VENMO_INVALID_PROFILE_ID\",\n message: \"Venmo profile ID is invalid.\"\n },\n VENMO_INVALID_DEEP_LINK_RETURN_URL: {\n type: BraintreeError.types.MERCHANT,\n code: \"VENMO_INVALID_DEEP_LINK_RETURN_URL\",\n message: \"Venmo deep link return URL is invalid.\"\n },\n VENMO_TOKENIZATION_FAILED: {\n type: BraintreeError.types.UNKNOWN,\n code: \"VENMO_TOKENIZATION_FAILED\",\n message: \"Venmo encountered a problem\"\n },\n VENMO_ECD_DISABLED: {\n type: BraintreeError.types.MERCHANT,\n code: \"ECD_DISABLED\",\n message: \"Cannot collect customer data when ECD is disabled. Enable this feature in the Control Panel to collect this data.\"\n }\n };\n }, {\n \"../../lib/braintree-error\": 77\n }],\n 167: [function (require, module, exports) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.VENMO_DESKTOP_UNKNOWN_ERROR = exports.VENMO_DESKTOP_REQUEST_NEW_QR_CODE = exports.VENMO_DESKTOP_CLOSED_FROM_PARENT = exports.VENMO_DESKTOP_IFRAME_READY = exports.VENMO_DESKTOP_DISPLAY_QR_CODE = exports.VENMO_DESKTOP_DISPLAY_ERROR = exports.VENMO_DESKTOP_CUSTOMER_CANCELED = exports.VENMO_DESKTOP_AUTHORIZING = exports.VENMO_DESKTOP_AUTHORIZE = exports.VENMO_DESKTOP_AUTHORIZATION_TIMED_OUT = void 0;\n exports.VENMO_DESKTOP_AUTHORIZATION_TIMED_OUT = \"VENMO_DESKTOP_AUTHORIZATION_TIMED_OUT\";\n exports.VENMO_DESKTOP_AUTHORIZE = \"VENMO_DESKTOP_AUTHORIZE\";\n exports.VENMO_DESKTOP_AUTHORIZING = \"VENMO_DESKTOP_AUTHORIZING\";\n exports.VENMO_DESKTOP_CUSTOMER_CANCELED = \"VENMO_DESKTOP_CUSTOMER_CANCELED\";\n exports.VENMO_DESKTOP_DISPLAY_ERROR = \"VENMO_DESKTOP_DISPLAY_ERROR\";\n exports.VENMO_DESKTOP_DISPLAY_QR_CODE = \"VENMO_DESKTOP_DISPLAY_QR_CODE\";\n exports.VENMO_DESKTOP_IFRAME_READY = \"VENMO_DESKTOP_IFRAME_READY\";\n exports.VENMO_DESKTOP_CLOSED_FROM_PARENT = \"VENMO_DESKTOP_CLOSED_FROM_PARENT\";\n exports.VENMO_DESKTOP_REQUEST_NEW_QR_CODE = \"VENMO_DESKTOP_REQUEST_NEW_QR_CODE\";\n exports.VENMO_DESKTOP_UNKNOWN_ERROR = \"VENMO_DESKTOP_UNKNOWN_ERROR\";\n }, {}],\n 168: [function (require, module, exports) {\n \"use strict\";\n\n var venmoConstants = require(\"./constants\");\n function getVenmoUrl(options) {\n if (options.useAllowDesktopWebLogin) return venmoConstants.VENMO_WEB_LOGIN_URL;\n if (options.mobileWebFallBack) return venmoConstants.VENMO_APP_OR_MOBILE_AUTH_URL;\n return venmoConstants.VENMO_MOBILE_APP_AUTH_ONLY_URL;\n }\n module.exports = getVenmoUrl;\n }, {\n \"./constants\": 165\n }],\n 169: [function (require, module, exports) {\n \"use strict\";\n\n var browserDetection = require(\"./browser-detection\");\n function isBrowserSupported(options) {\n var merchantAllowsReturningToNewBrowserTab, merchantAllowsWebviews, merchantAllowsDesktopBrowsers;\n var isAndroid = browserDetection.isAndroid();\n var isMobileDevice = isAndroid || browserDetection.isIos();\n var isAndroidChrome = isAndroid && browserDetection.isChrome();\n var isMobileDeviceThatSupportsReturnToSameTab = browserDetection.isIosSafari() || isAndroidChrome;\n var isKnownUnsupportedMobileBrowser = browserDetection.isIosChrome() || browserDetection.isFacebookOwnedBrowserOnAndroid() || browserDetection.isSamsung();\n options = options || {};\n // NEXT_MAJOR_VERSION allowDesktop will default to true, but can be opted out\n merchantAllowsDesktopBrowsers = (options.allowDesktopWebLogin || options.allowDesktop) === true;\n merchantAllowsReturningToNewBrowserTab = options.hasOwnProperty(\"allowNewBrowserTab\") ? options.allowNewBrowserTab : true;\n // NEXT_MAJOR_VERSION webviews are not supported, except for the case where\n // the merchant themselves is presenting venmo in a webview using the deep\n // link url to get back to their app. For the next major version, we should\n // just not have this option and instead require the merchant to determine\n // if the venmo button should be displayed when presenting it in the\n // merchant's app via a webview.\n merchantAllowsWebviews = options.hasOwnProperty(\"allowWebviews\") ? options.allowWebviews : true;\n if (isKnownUnsupportedMobileBrowser) {\n return false;\n }\n if (!merchantAllowsWebviews && (browserDetection.isAndroidWebview() || browserDetection.isIosWebview())) {\n return false;\n }\n if (!isMobileDevice) {\n return merchantAllowsDesktopBrowsers;\n }\n if (!merchantAllowsReturningToNewBrowserTab) {\n return isMobileDeviceThatSupportsReturnToSameTab;\n }\n return isMobileDevice;\n }\n module.exports = {\n isBrowserSupported: isBrowserSupported\n };\n }, {\n \"./browser-detection\": 164\n }],\n 170: [function (require, module, exports) {\n \"use strict\";\n\n var frameService = require(\"../../lib/frame-service/external\");\n var useMin = require(\"../../lib/use-min\");\n var ExtendedPromise = require(\"@braintree/extended-promise\");\n var VERSION = \"3.97.1\";\n var VENMO_LOGO_SVG = '\\n \\n \\n \\n \\n \\n';\n var CONTINUE_OR_CANCEL_INSTRUCTIONS = \"Tap cancel payment to cancel and return to the business. Continue payment will relaunch the payment window.\";\n var POPUP_WIDTH = 400;\n var POPUP_HEIGHT = 570;\n var ELEMENT_IDS = {\n backdrop: \"venmo-desktop-web-backdrop\",\n backdropHidden: \"venmo-desktop-web-backdrop.hidden\",\n backdropContainer: \"venmo-backdrop-container\",\n cancelButton: \"venmo-popup-cancel-button\",\n continueButton: \"venmo-popup-continue-button\",\n message: \"venmo-message\",\n instructions: \"venmo-instructions\",\n venmoLogo: \"venmo-full-logo\"\n };\n ExtendedPromise.suppressUnhandledPromiseMessage = true;\n function openPopup(options) {\n var frameServiceInstance = options.frameServiceInstance;\n var venmoUrl = options.venmoUrl;\n var checkForStatusChange = options.checkForStatusChange;\n var cancelTokenization = options.cancelTokenization;\n var extendedPromise = new ExtendedPromise();\n document.getElementById(ELEMENT_IDS.continueButton).addEventListener(\"click\", function () {\n frameServiceInstance.focus();\n });\n document.getElementById(ELEMENT_IDS.cancelButton).addEventListener(\"click\", function () {\n frameServiceInstance.close();\n cancelTokenization();\n closeBackdrop();\n });\n frameServiceInstance.open({}, function (frameServiceErr) {\n var retryStartingCount = 1;\n if (frameServiceErr) {\n extendedPromise.reject(frameServiceErr);\n } else {\n checkForStatusChange(retryStartingCount).then(function (data) {\n extendedPromise.resolve(data);\n }).catch(function (statusCheckError) {\n extendedPromise.reject(statusCheckError);\n });\n }\n frameServiceInstance.close();\n closeBackdrop();\n });\n frameServiceInstance.redirect(venmoUrl);\n return extendedPromise;\n }\n function centeredPopupDimensions() {\n var popupTop = Math.round((window.outerHeight - POPUP_HEIGHT) / 2) + window.screenTop;\n var popupLeft = Math.round((window.outerWidth - POPUP_WIDTH) / 2) + window.screenLeft;\n return {\n top: popupTop,\n left: popupLeft\n };\n }\n function closeBackdrop() {\n document.getElementById(\"venmo-desktop-web-backdrop\").classList.add(\"hidden\");\n }\n function getElementStyles() {\n var backdropStyles = [\"#\" + ELEMENT_IDS.backdropHidden + \" {\", \"display: none;\", \"}\", \"#\" + ELEMENT_IDS.backdrop + \" {\", \"cursor: pointer;\", \"position: fixed;\", \"top: 0;\", \"left: 0;\", \"bottom: 0;\", \"width: 100%;\", \"background: rgba(0, 0, 0, 0.4);\", \"}\"];\n var backdropContainerStyles = [\"#\" + ELEMENT_IDS.backdropContainer + \" {\", \"display: flex;\", \"align-content: center;\", \"justify-content: center;\", \"align-items: center;\", \"width: 100%;\", \"height: 100%;\", \"flex-direction: column;\", \"}\"];\n var cancelButtonStyles = [\"#\" + ELEMENT_IDS.cancelButton + \" {\", \"height: 24px;\", \"width: 380px;\", \"font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;\", \"font-style: normal;\", \"font-weight: 700;\", \"font-size: 18px;\", \"line-height: 24px;\", \"text-align: center;\", \"background-color: transparent;\", \"border: none;\", \"color: #FFFFFF;\", \"margin-top: 28px;\", \"}\"];\n var continueButtonStyles = [\"#\" + ELEMENT_IDS.continueButton + \" {\", \"width: 400px;\", \"height: 50px;\", \"background: #0074DE;\", \"border-radius: 24px;\", \"border: none;\", \"font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;\", \"font-style: normal;\", \"font-weight: 700;\", \"font-size: 18px;\", \"color: #FFFFFF;\", \"margin-top: 44px;\", \"}\"];\n var messageStyles = [\"#\" + ELEMENT_IDS.message + \" {\", \"font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;\", \"font-style: normal;\", \"font-weight: 500;\", \"font-size: 24px;\", \"line-height: 32px;\", \"text-align: center;\", \"color: #FFFFFF;\", \"margin-top: 32px;\", \"}\"];\n var instructionStyles = [\"#\" + ELEMENT_IDS.instructions + \" {\", \"font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;\", \"font-style: normal;\", \"font-weight: 400;\", \"font-size: 16px;\", \"line-height: 20px;\", \"text-align: center;\", \"color: #FFFFFF;\", \"margin-top: 16px;\", \"width: 400px;\", \"}\"];\n var allStyles = backdropStyles.concat(backdropContainerStyles, cancelButtonStyles, continueButtonStyles, messageStyles, instructionStyles);\n return allStyles.join(\"\\n\");\n }\n function buildAndStyleElements() {\n var alreadyRenderedBackdrop = document.getElementById(ELEMENT_IDS.backdrop);\n var backdropStylesElement, backdropDiv, backDropContentContainer, venmoLogoDiv, venmoMessageDiv, instructionsDiv, continueButton, cancelButton;\n if (alreadyRenderedBackdrop) {\n alreadyRenderedBackdrop.classList.remove(\"hidden\");\n return;\n }\n backdropStylesElement = document.createElement(\"style\");\n backdropDiv = document.createElement(\"div\");\n backDropContentContainer = document.createElement(\"div\");\n venmoLogoDiv = document.createElement(\"div\");\n venmoMessageDiv = document.createElement(\"div\");\n instructionsDiv = document.createElement(\"div\");\n continueButton = document.createElement(\"button\");\n cancelButton = document.createElement(\"button\");\n backdropStylesElement.id = \"venmo-desktop-web__injected-styles\";\n backdropStylesElement.innerHTML = getElementStyles();\n backdropDiv.id = ELEMENT_IDS.backdrop;\n backDropContentContainer.id = ELEMENT_IDS.backdropContainer;\n venmoLogoDiv.id = ELEMENT_IDS.venmoLogo;\n venmoLogoDiv.innerHTML = VENMO_LOGO_SVG;\n venmoMessageDiv.id = ELEMENT_IDS.message;\n venmoMessageDiv.innerText = \"What would you like to do?\";\n instructionsDiv.id = ELEMENT_IDS.instructions;\n instructionsDiv.innerText = CONTINUE_OR_CANCEL_INSTRUCTIONS;\n continueButton.id = ELEMENT_IDS.continueButton;\n continueButton.innerText = \"Continue payment\";\n cancelButton.id = ELEMENT_IDS.cancelButton;\n cancelButton.innerText = \"Cancel payment\";\n document.head.appendChild(backdropStylesElement);\n backDropContentContainer.appendChild(venmoLogoDiv);\n backDropContentContainer.appendChild(venmoMessageDiv);\n backDropContentContainer.appendChild(instructionsDiv);\n backDropContentContainer.appendChild(continueButton);\n backDropContentContainer.appendChild(cancelButton);\n backdropDiv.appendChild(backDropContentContainer);\n document.body.appendChild(backdropDiv);\n }\n\n /**\n * Applies a backdrop over the page, and opens a popup to the supplied url. Uses supplied status and cancel functions to handle the flow.\n * @function runWebLogin\n * @ignore\n * @param {object} options Options for running the web login flow.\n * @param {string} options.venmoUrl Venmo url that is to be used for logging in.\n * @param {Venmo~checkPaymentContextStatusAndProcessResult} options.checkForStatusChange {@link Venmo~checkPaymentContextStatusAndProcessResult} to be invoked in order to check for a payment context status update.\n * @param {Venmo~cancelTokenization} options.cancelTokenization {@link Venmo~cancelTokenization} to be invoked when the appropriate payment context status is retrieved.\n * @param {boolean} options.debug A flag to control whether to use minified assets or not.\n * @returns {Promise} Returns a promise\n */\n function runWebLogin(options) {\n buildAndStyleElements();\n return openPopup(options);\n }\n\n /**\n * When using frameservice, it needs to be created separately from the action of opening. The setup process includes\n * steps that browsers may consider async or too disconnected from the user action required to open a popup.\n *\n * This function enables us to do that setup at an appropriate time.\n * @function setupDesktopWebLogin\n * @ignore\n * @param {object} options Options use for setting up the Desktop Web Login flow.\n * @param {string} options.assetsUrl Url that points to the hosted Braintree assets.\n * @param {boolean} options.debug A flag to control whether to use minified assets or not.\n \n * @returns {Promise} Returns a promise\n */\n function setupDesktopWebLogin(options) {\n var extendedPromise = new ExtendedPromise();\n var popupName = \"venmoDesktopWebLogin\";\n var assetsUrl = options.assetsUrl;\n var debug = options.debug || false;\n var popupLocation = centeredPopupDimensions();\n var assetsBaseUrl = assetsUrl + \"/web/\" + VERSION + \"/html\";\n frameService.create({\n name: popupName,\n dispatchFrameUrl: assetsBaseUrl + \"/dispatch-frame\" + useMin(debug) + \".html\",\n openFrameUrl: assetsBaseUrl + \"/venmo-landing-frame\" + useMin(debug) + \".html\",\n top: popupLocation.top,\n left: popupLocation.left,\n height: POPUP_HEIGHT,\n width: POPUP_WIDTH\n }, function (frameServiceInstance) {\n extendedPromise.resolve(frameServiceInstance);\n });\n return extendedPromise;\n }\n module.exports = {\n runWebLogin: runWebLogin,\n openPopup: openPopup,\n setupDesktopWebLogin: setupDesktopWebLogin,\n POPUP_WIDTH: POPUP_WIDTH,\n POPUP_HEIGHT: POPUP_HEIGHT\n };\n }, {\n \"../../lib/frame-service/external\": 91,\n \"../../lib/use-min\": 112,\n \"@braintree/extended-promise\": 24\n }],\n 171: [function (require, module, exports) {\n \"use strict\";\n\n var analytics = require(\"../lib/analytics\");\n var isBrowserSupported = require(\"./shared/supports-venmo\");\n var browserDetection = require(\"./shared/browser-detection\");\n var constants = require(\"./shared/constants\");\n var errors = require(\"./shared/errors\");\n var querystring = require(\"../lib/querystring\");\n var isVerifiedDomain = require(\"../lib/is-verified-domain\");\n var methods = require(\"../lib/methods\");\n var convertMethodsToError = require(\"../lib/convert-methods-to-error\");\n var wrapPromise = require(\"@braintree/wrap-promise\");\n var BraintreeError = require(\"../lib/braintree-error\");\n var inIframe = require(\"../lib/in-iframe\");\n var ExtendedPromise = require(\"@braintree/extended-promise\");\n var getVenmoUrl = require(\"./shared/get-venmo-url\");\n var desktopWebLogin = require(\"./shared/web-login-backdrop\");\n var snakeCaseToCamelCase = require(\"../lib/snake-case-to-camel-case\");\n\n // NEXT_MAJOR_VERSION the source code for this is actually in a\n // typescript repo called venmo-desktop, once the SDK is migrated\n // to typescript, we can move the TS files out of that separate\n // repo and into the web SDK properly\n var createVenmoDesktop = require(\"./external/\");\n var graphqlQueries = require(\"./external/queries\");\n var VERSION = \"3.97.1\";\n var DEFAULT_MOBILE_POLLING_INTERVAL = 250; // 1/4 second\n var DEFAULT_MOBILE_EXPIRING_THRESHOLD = 300000; // 5 minutes\n\n ExtendedPromise.suppressUnhandledPromiseMessage = true;\n\n /**\n * Venmo tokenize payload.\n * @typedef {object} Venmo~tokenizePayload\n * @property {string} nonce The payment method nonce.\n * @property {string} type The payment method type, always `VenmoAccount`.\n * @property {object} details Additional Venmo account details.\n * @property {string} details.username The username of the Venmo account.\n * @property {string} details.paymentContextId The context ID of the Venmo payment. Only available when used with {@link https://braintree.github.io/braintree-web/current/module-braintree-web_venmo.html#.create|`paymentMethodUsage`}.\n */\n\n /**\n * @class\n * @param {object} options The Venmo {@link module:braintree-web/venmo.create create} options.\n * @description Do not use this constructor directly. Use {@link module:braintree-web/venmo.create|braintree-web.venmo.create} instead.\n * @classdesc This class represents a Venmo component produced by {@link module:braintree-web/venmo.create|braintree-web/venmo.create}. Instances of this class have methods for tokenizing Venmo payments.\n */\n function Venmo(options) {\n var self = this;\n this._allowDesktopWebLogin = options.allowDesktopWebLogin || false;\n this._mobileWebFallBack = options.mobileWebFallBack || false;\n this._createPromise = options.createPromise;\n this._allowNewBrowserTab = options.allowNewBrowserTab !== false;\n this._allowWebviews = options.allowWebviews !== false;\n this._allowDesktop = options.allowDesktop === true;\n this._useRedirectForIOS = options.useRedirectForIOS === true;\n this._profileId = options.profileId;\n this._displayName = options.displayName;\n this._deepLinkReturnUrl = options.deepLinkReturnUrl;\n this._ignoreHistoryChanges = options.ignoreHistoryChanges;\n this._paymentMethodUsage = (options.paymentMethodUsage || \"\").toUpperCase();\n this._shouldUseLegacyFlow = !this._paymentMethodUsage;\n this._requireManualReturn = options.requireManualReturn === true;\n this._useDesktopQRFlow = this._allowDesktop && this._isDesktop() && !this._allowDesktopWebLogin;\n this._useAllowDesktopWebLogin = this._allowDesktopWebLogin && this._isDesktop();\n this._cannotHaveReturnUrls = inIframe() || this._requireManualReturn;\n this._allowAndroidRecreation = options.allowAndroidRecreation !== false;\n this._maxRetryCount = 3;\n this._collectCustomerBillingAddress = options.collectCustomerBillingAddress || false;\n this._collectCustomerShippingAddress = options.collectCustomerShippingAddress || false;\n this._lineItems = options.lineItems;\n this._subTotalAmount = options.subTotalAmount;\n this._discountAmount = options.discountAmount;\n this._taxAmount = options.taxAmount;\n this._shippingAmount = options.shippingAmount;\n this._totalAmount = options.totalAmount;\n this._shouldCreateVenmoPaymentContext = this._cannotHaveReturnUrls || !this._shouldUseLegacyFlow;\n analytics.sendEvent(this._createPromise, \"venmo.desktop-flow.configured.\" + String(Boolean(this._allowDesktop)));\n\n // if the url has a tokenization result, that indicates\n // that it cannot be the desktop flow or the manual return\n // flow. If it's the hash change with paymentMethodUsage\n // flow, we want to skip creating a new payment context, since\n // there is already a pending payment context waiting to be\n // processed. For the hash change flow without paymentMethodUsage,\n // no further actions are needed.\n if (this.hasTokenizationResult()) {\n analytics.sendEvent(this._createPromise, \"venmo.appswitch.return-in-new-tab\");\n } else if (this._useDesktopQRFlow) {\n this._createPromise = this._createPromise.then(function (client) {\n var config = client.getConfiguration().gatewayConfiguration;\n return createVenmoDesktop({\n url: config.assetsUrl + \"/web/\" + VERSION + \"/html/venmo-desktop-frame.html\",\n environment: config.environment === \"production\" ? \"PRODUCTION\" : \"SANDBOX\",\n profileId: self._profileId || config.payWithVenmo.merchantId,\n paymentMethodUsage: self._paymentMethodUsage,\n displayName: self._displayName,\n Promise: Promise,\n apiRequest: function (query, data) {\n return client.request({\n api: \"graphQLApi\",\n data: {\n query: query,\n variables: data\n }\n }).then(function (response) {\n return response.data;\n });\n },\n sendEvent: function (eventName) {\n analytics.sendEvent(self._createPromise, eventName);\n },\n verifyDomain: isVerifiedDomain\n }).then(function (venmoDesktopInstance) {\n self._venmoDesktopInstance = venmoDesktopInstance;\n analytics.sendEvent(self._createPromise, \"venmo.desktop-flow.presented\");\n return client;\n }).catch(function () {\n analytics.sendEvent(self._createPromise, \"venmo.desktop-flow.setup-failed\");\n self._useDesktopQRFlow = false;\n return client;\n });\n });\n } else if (this._shouldCreateVenmoPaymentContext) {\n // these variables are only relevant for the manual return flow\n // and they are only set to make testing easier (so they can\n // be overwritten with smaller values in the tests)\n this._mobilePollingInterval = DEFAULT_MOBILE_POLLING_INTERVAL;\n this._mobilePollingExpiresThreshold = DEFAULT_MOBILE_EXPIRING_THRESHOLD;\n this._createPromise = this._createPromise.then(function (client) {\n var paymentContextPromise, webLoginPromise;\n var analyticsCategory = self._cannotHaveReturnUrls ? \"manual-return\" : \"mobile-payment-context\";\n var config = client.getConfiguration();\n webLoginPromise = desktopWebLogin.setupDesktopWebLogin({\n assetsUrl: config.gatewayConfiguration.assetsUrl,\n debug: config.isDebug\n }).then(function (frameServiceInstance) {\n self._frameServiceInstance = frameServiceInstance;\n }).catch(function (desktopWebErr) {\n return desktopWebErr;\n });\n self._mobilePollingContextEnvironment = config.gatewayConfiguration.environment.toUpperCase();\n paymentContextPromise = self._createVenmoPaymentContext(client).then(function () {\n analytics.sendEvent(self._createPromise, \"venmo.\" + analyticsCategory + \".presented\");\n return client;\n }).catch(function (err) {\n analytics.sendEvent(self._createPromise, \"venmo.\" + analyticsCategory + \".setup-failed\");\n return Promise.reject(new BraintreeError({\n type: errors.VENMO_MOBILE_PAYMENT_CONTEXT_SETUP_FAILED.type,\n code: errors.VENMO_MOBILE_PAYMENT_CONTEXT_SETUP_FAILED.code,\n message: isValidationError(err) ? err.details.originalError[0].message : errors.VENMO_MOBILE_PAYMENT_CONTEXT_SETUP_FAILED.message,\n details: {\n originalError: err\n }\n }));\n });\n return ExtendedPromise.all([webLoginPromise, paymentContextPromise]).then(function (results) {\n var paymentContextResult = results[1]; // We only care about the returned value of the paymentContextPromise\n\n return Promise.resolve(paymentContextResult);\n }).catch(function (promiseErr) {\n // ExtendedPromise.all returns just one error and it's either which fails first/at all.\n return Promise.reject(promiseErr);\n });\n });\n }\n }\n function isValidationError(err) {\n return err.details && err.details.originalError && err.details.originalError[0] && err.details.originalError[0].extensions && err.details.originalError[0].extensions.errorClass === \"VALIDATION\" && err.details.originalError[0].extensions.errorType === \"user_error\";\n }\n Venmo.prototype._createVenmoPaymentContext = function (client, cancelIfTokenizationInProgress) {\n var self = this;\n var promise, transactionDetails;\n var configuration = client.getConfiguration();\n var venmoConfiguration = configuration.gatewayConfiguration.payWithVenmo;\n var transactionDetailsPresent = false;\n if (!this._shouldCreateVenmoPaymentContext) {\n return Promise.resolve();\n }\n if (this._shouldUseLegacyFlow) {\n promise = client.request({\n api: \"graphQLApi\",\n data: {\n query: graphqlQueries.LEGACY_CREATE_PAYMENT_CONTEXT_QUERY,\n variables: {\n input: {\n environment: this._mobilePollingContextEnvironment,\n intent: \"PAY_FROM_APP\"\n }\n }\n }\n }).then(function (response) {\n return response.data.createVenmoQRCodePaymentContext.venmoQRCodePaymentContext;\n });\n } else {\n // Merchants are not allowed to collect user addresses unless ECD (Enriched Customer Data) is enabled on the BT Control Panel.\n if ((this._collectCustomerBillingAddress || this._collectCustomerShippingAddress) && !venmoConfiguration.enrichedCustomerDataEnabled) {\n return Promise.reject(new BraintreeError(errors.VENMO_ECD_DISABLED));\n }\n if (this._lineItems) {\n this._lineItems.forEach(function (item) {\n item.unitTaxAmount = item.unitTaxAmount || \"0\";\n });\n }\n transactionDetails = {\n subTotalAmount: this._subTotalAmount,\n discountAmount: this._discountAmount,\n taxAmount: this._taxAmount,\n shippingAmount: this._shippingAmount,\n totalAmount: this._totalAmount,\n lineItems: this._lineItems\n };\n transactionDetailsPresent = Object.keys(transactionDetails).some(function (detail) {\n return transactionDetails[detail] !== undefined; // eslint-disable-line no-undefined\n });\n\n promise = client.request({\n api: \"graphQLApi\",\n data: {\n query: graphqlQueries.CREATE_PAYMENT_CONTEXT_QUERY,\n variables: {\n input: {\n paymentMethodUsage: this._paymentMethodUsage,\n intent: \"CONTINUE\",\n customerClient: \"MOBILE_WEB\",\n displayName: this._displayName,\n paysheetDetails: {\n collectCustomerBillingAddress: this._collectCustomerBillingAddress,\n collectCustomerShippingAddress: this._collectCustomerShippingAddress,\n transactionDetails: transactionDetailsPresent ? transactionDetails : undefined // eslint-disable-line no-undefined\n }\n }\n }\n }\n }).then(function (response) {\n return response.data.createVenmoPaymentContext.venmoPaymentContext;\n });\n }\n return promise.then(function (context) {\n var expiredTime = new Date(context.expiresAt) - new Date(context.createdAt);\n var refreshIn = expiredTime * 0.6666;\n\n // prevents multiple setTimeouts from firing from separate calls\n // to create a payment context by canceling the previous one\n // if there is a pending call\n clearTimeout(self._refreshPaymentContextTimeout);\n self._refreshPaymentContextTimeout = setTimeout(function () {\n if (self._tokenizationInProgress) {\n return;\n }\n self._createVenmoPaymentContext(client, true);\n }, refreshIn);\n if (cancelIfTokenizationInProgress && self._tokenizationInProgress) {\n return;\n }\n self._venmoPaymentContextStatus = context.status;\n self._venmoPaymentContextId = context.id;\n });\n };\n Venmo.prototype.appSwitch = function (url) {\n if (this._deepLinkReturnUrl) {\n if (isIosWebviewInDeepLinkReturnUrlFlow()) {\n analytics.sendEvent(this._createPromise, \"venmo.appswitch.start.ios-webview\");\n // Deep link URLs do not launch iOS apps from a webview when using window.open or PopupBridge.open.\n window.location.href = url;\n } else if (window.popupBridge && typeof window.popupBridge.open === \"function\") {\n analytics.sendEvent(this._createPromise, \"venmo.appswitch.start.popup-bridge\");\n window.popupBridge.open(url);\n } else {\n analytics.sendEvent(this._createPromise, \"venmo.appswitch.start.webview\");\n window.open(url);\n }\n } else {\n analytics.sendEvent(this._createPromise, \"venmo.appswitch.start.browser\");\n if (browserDetection.doesNotSupportWindowOpenInIos() || this._shouldUseRedirectStrategy()) {\n window.location.href = url;\n } else {\n window.open(url);\n }\n }\n };\n Venmo.prototype.getUrl = function () {\n return this._createPromise.then(function (client) {\n var configuration = client.getConfiguration();\n var params = {};\n var currentUrl = this._deepLinkReturnUrl || window.location.href.replace(window.location.hash, \"\");\n var venmoConfiguration = configuration.gatewayConfiguration.payWithVenmo;\n var analyticsMetadata = configuration.analyticsMetadata;\n var accessToken = venmoConfiguration.accessToken;\n var braintreeData = {\n _meta: {\n version: analyticsMetadata.sdkVersion,\n integration: analyticsMetadata.integration,\n platform: analyticsMetadata.platform,\n sessionId: analyticsMetadata.sessionId\n }\n };\n this._isDebug = configuration.isDebug;\n this._assetsUrl = configuration.gatewayConfiguration.assetsUrl;\n currentUrl = currentUrl.replace(/#*$/, \"\");\n\n /* eslint-disable camelcase */\n if (this._venmoPaymentContextId) {\n if (this._shouldUseLegacyFlow) {\n // NEXT_MAJOR_VERSION stop adding the context id to the access token.\n // the context id is placed here for backwards compatiblity\n // with versions of the venmo app that did not support\n // pulling the resource id off of the query params\n accessToken += \"|pcid:\" + this._venmoPaymentContextId;\n } else {\n params.resource_id = this._venmoPaymentContextId;\n }\n }\n if (this._shouldIncludeReturnUrls() || this._useAllowDesktopWebLogin) {\n if (this._useAllowDesktopWebLogin) {\n currentUrl = this._assetsUrl + \"/web/\" + VERSION + \"/html/redirect-frame.html\";\n }\n params[\"x-success\"] = currentUrl + \"#venmoSuccess=1\";\n params[\"x-cancel\"] = currentUrl + \"#venmoCancel=1\";\n params[\"x-error\"] = currentUrl + \"#venmoError=1\";\n } else {\n params[\"x-success\"] = \"NOOP\";\n params[\"x-cancel\"] = \"NOOP\";\n params[\"x-error\"] = \"NOOP\";\n }\n if (!this._allowAndroidRecreation) {\n params.allowAndroidRecreation = 0;\n } else {\n params.allowAndroidRecreation = 1;\n }\n params.ua = window.navigator.userAgent;\n params.braintree_merchant_id = this._profileId || venmoConfiguration.merchantId;\n params.braintree_access_token = accessToken;\n params.braintree_environment = venmoConfiguration.environment;\n params.braintree_sdk_data = btoa(JSON.stringify(braintreeData));\n return getVenmoUrl({\n useAllowDesktopWebLogin: this._useAllowDesktopWebLogin,\n mobileWebFallBack: this._mobileWebFallBack\n }) + \"?\" + querystring.stringify(params);\n }.bind(this));\n };\n\n /**\n * Returns a boolean indicating whether the current browser supports Venmo as a payment method.\n *\n * If `options.allowNewBrowserTab` is false when calling {@link module:braintree-web/venmo.create|venmo.create}, this method will return true only for browsers known to support returning from the Venmo app to the same browser tab. Currently, this is limited to iOS Safari and Android Chrome.\n * If `options.allowWebviews` is false when calling {@link module:braintree-web/venmo.create|venmo.create}, this method will return true only for mobile browsers that are not webviews.\n * @public\n * @returns {boolean} True if the current browser is supported, false if not.\n */\n Venmo.prototype.isBrowserSupported = function () {\n return isBrowserSupported.isBrowserSupported({\n allowNewBrowserTab: this._allowNewBrowserTab,\n allowWebviews: this._allowWebviews,\n allowDesktop: this._allowDesktop,\n allowDesktopWebLogin: this._allowDesktopWebLogin\n });\n };\n\n /**\n * Returns a boolean indicating whether a Venmo tokenization result is ready to be processed immediately.\n *\n * This method should be called after initialization to see if the result of Venmo authorization is available. If it returns true, call {@link Venmo#tokenize|tokenize} immediately to process the results.\n *\n * @public\n * @returns {boolean} True if the results of Venmo payment authorization are available and ready to process.\n */\n Venmo.prototype.hasTokenizationResult = function () {\n return this._hasTokenizationResult();\n };\n\n // a private version that lets us pass in a custom hash\n // when listening on a hashchange event\n Venmo.prototype._hasTokenizationResult = function (hash) {\n var params = getFragmentParameters(hash);\n return typeof (params.venmoSuccess || params.venmoError || params.venmoCancel) !== \"undefined\";\n };\n Venmo.prototype._shouldIncludeReturnUrls = function () {\n // when a deep link return url is passed, we should always\n // respect it and include the return urls so the venmo app\n // can app switch back to it\n if (this._deepLinkReturnUrl) {\n return true;\n }\n\n // when the sdk is initialized within an iframe, it's\n // impossible to return back to the correct place automatically\n // without also setting a deepLinkReturnUrl. When the return\n // urls are omitted, the Venmo app prompts the user to return\n // manually.\n return !this._cannotHaveReturnUrls;\n };\n Venmo.prototype._isDesktop = function () {\n return !(browserDetection.isIos() || browserDetection.isAndroid());\n };\n\n /**\n * Launches the Venmo flow and returns a nonce payload.\n *\n * If {@link Venmo#hasTokenizationResult|hasTokenizationResult} returns true, calling tokenize will immediately process and return the results without initiating the Venmo payment authorization flow.\n *\n * Only one Venmo flow can be active at a time. One way to achieve this is to disable your Venmo button while the flow is open.\n * @public\n * @param {object} [options] Options for tokenization.\n * @param {number} [options.processResultsDelay=500] The amount of time in milliseconds to delay processing the results. In most cases, this value should be left as the default.\n * @param {callback} [callback] The second argument, data, is a {@link Venmo~tokenizePayload|tokenizePayload}. If no callback is provided, the method will return a Promise that resolves with a {@link Venmo~tokenizePayload|tokenizePayload}.\n * @returns {(Promise|void)} Returns a promise if no callback is provided.\n * @example\n * button.addEventListener('click', function () {\n * // Disable the button so that we don't attempt to open multiple popups.\n * button.setAttribute('disabled', 'disabled');\n *\n * // Because tokenize opens a new window, this must be called\n * // as a result of a user action, such as a button click.\n * venmoInstance.tokenize().then(function (payload) {\n * // Submit payload.nonce to your server\n * // Use payload.username to get the Venmo username and display any UI\n * }).catch(function (tokenizeError) {\n * // Handle flow errors or premature flow closure\n * switch (tokenizeErr.code) {\n * case 'VENMO_APP_CANCELED':\n * console.log('User canceled Venmo flow.');\n * break;\n * case 'VENMO_CANCELED':\n * console.log('User canceled Venmo, or Venmo app is not available.');\n * break;\n * default:\n * console.error('Error!', tokenizeErr);\n * }\n * }).then(function () {\n * button.removeAttribute('disabled');\n * });\n * });\n */\n Venmo.prototype.tokenize = function (options) {\n var self = this;\n var tokenizationPromise;\n options = options || {};\n if (this._tokenizationInProgress === true) {\n return Promise.reject(new BraintreeError(errors.VENMO_TOKENIZATION_REQUEST_ACTIVE));\n }\n this._tokenizationInProgress = true;\n if (this._useDesktopQRFlow) {\n // for the desktop flow, we create a venmo payment\n // context and then present a qr code modal to the\n // customer and they will open up their venmo app\n // and scan it and approve the purchase on their\n // mobile device. The sdk will start polling\n // in order to determine when the status of the\n // payment context has updated and then pass the\n // resulting nonce back to the merchant.\n tokenizationPromise = this._tokenizeForDesktopQRFlow(options);\n } else if (this._useAllowDesktopWebLogin) {\n /**\n * For Desktop Web Login, we open a browser popup to allow for authorization. Once authorized, the redirect urls are used by Venmo, and we query the API for a payment context status update.\n *\n * - Payment context is created on initialization\n * - Popup is opened to Venmo login url.\n * - The payment is authorized or canceled, and the popup is closed\n * - Once the popup is closed, we query the API for a payment context status update\n *\n * This is an alternate, opt-in flow to be used the Desktop QR Flow is not desired for Pay with Venmo desktop experiences.\n */\n tokenizationPromise = this._tokenizeWebLoginWithRedirect();\n } else if (this._cannotHaveReturnUrls) {\n // in the manual return strategy, we create the payment\n // context on initialization, then continually poll once\n // the app switch begins until we get a response indiciating\n // the payment context was approved by the customer on the\n // Venmo app. The payment context response also includes a\n // nonce. There are 2 cases where we use the manual return\n // strategy:\n // 1. the sdk is instantiated in an iframe, because\n // the venmo app is unable to redirect automatically\n // when that is the case so we rely on the customer\n // to do a manual redirect and continunally poll for\n // updates on the payment context to get the nonce\n // 2. same deal for when `requireManualReturn` is configured\n tokenizationPromise = this._tokenizeForMobileWithManualReturn();\n } else {\n // the default mobile flow is to app switch to the\n // venmo app, and then have the venmo app switch\n // back to the page with the venmo nonce details\n // encoded into the hash portion of the url. If\n // `paymentMethodUsage` is provided when instantiating\n // the sdk, we also create a payment context and pass\n // the resource id to the Venmo app during the app switch.\n // Once we get a succesful return, we ping the payment\n // context query to get any additional data needed\n // to send back to the merchant.\n tokenizationPromise = this._tokenizeForMobileWithHashChangeListeners(options);\n }\n return tokenizationPromise.then(function (payload) {\n return self._createPromise.then(function (client) {\n return self._createVenmoPaymentContext(client);\n }).then(function () {\n self._tokenizationInProgress = false;\n return formatTokenizePayload(payload);\n });\n }).catch(function (err) {\n return self._createPromise.then(function (client) {\n // We create a new Payment Context because if the last one failed, then presumably we don't want to use it again.\n // On the first pass, we create the payment context at initialization, and since we used that first one we now need to create a new one\n // for the next time someone tries to tokenize.\n return self._createVenmoPaymentContext(client);\n }).then(function () {\n self._tokenizationInProgress = false;\n return Promise.reject(err);\n });\n });\n };\n\n /**\n * Cancels the venmo tokenization process\n *\n * @public\n * @function Venmo~cancelTokenization\n * @returns {(Promise|void)} Returns a promise if no callback is provided.\n * @example\n * venmoTokenizeButton.addEventListener('click', function () {\n * venmoInstance.tokenize().then(function (payload) {\n * // handle payload\n * }).catch(function (err) {\n * if (err.code === 'VENMO_TOKENIZATION_CANCELED_BY_MERCHANT') {\n * // tokenization was canceled by calling cancelTokenization\n * }\n * });\n * });\n *\n * venmoCancelButton.addEventListener('click', function () {\n * // Hide the button when the venmo flow is not in progress\n * venmoCancelButton.style.display = \"none\";\n *\n * venmoInstance.cancelTokenization().then(function () {\n * // done canceling the flow\n * }).catch(function (err) {\n * // should only get here if there is no tokenization in progress\n * });\n * });\n */\n Venmo.prototype.cancelTokenization = function () {\n if (!this._tokenizationInProgress) {\n return Promise.reject(new BraintreeError(errors.VENMO_TOKENIZATION_REQUEST_NOT_ACTIVE));\n }\n this._removeVisibilityEventListener();\n\n // important to reject the tokenization promise first\n // so the tokenize method rejects with this error\n // rather than a customer canceled error in the mobile\n // polling and desktop flows\n if (this._tokenizePromise) {\n this._tokenizePromise.reject(new BraintreeError(errors.VENMO_TOKENIZATION_CANCELED_BY_MERCHANT));\n }\n return Promise.all([this._cancelMobilePaymentContext(), this._cancelVenmoDesktopContext()]);\n };\n Venmo.prototype._tokenizeWebLoginWithRedirect = function () {\n var self = this;\n analytics.sendEvent(self._createPromise, \"venmo.tokenize.web-login.start\");\n this._tokenizePromise = new ExtendedPromise();\n return this.getUrl().then(function (url) {\n desktopWebLogin.runWebLogin({\n checkForStatusChange: self._checkPaymentContextStatusAndProcessResult.bind(self),\n cancelTokenization: self.cancelTokenization.bind(self),\n frameServiceInstance: self._frameServiceInstance,\n venmoUrl: url,\n debug: self._isDebug\n }).then(function (payload) {\n analytics.sendEvent(self._createPromise, \"venmo.tokenize.web-login.success\");\n self._tokenizePromise.resolve({\n paymentMethodNonce: payload.paymentMethodId,\n username: payload.userName,\n payerInfo: payload.payerInfo,\n id: self._venmoPaymentContextId\n });\n }).catch(function (err) {\n analytics.sendEvent(self._createPromise, \"venmo.tokenize.web-login.failure\");\n self._tokenizePromise.reject(err);\n });\n return self._tokenizePromise;\n });\n };\n Venmo.prototype._queryPaymentContextStatus = function (id) {\n var self = this;\n return this._createPromise.then(function (client) {\n var query = self._shouldUseLegacyFlow ? graphqlQueries.LEGACY_VENMO_PAYMENT_CONTEXT_STATUS_QUERY : graphqlQueries.VENMO_PAYMENT_CONTEXT_STATUS_QUERY;\n return client.request({\n api: \"graphQLApi\",\n data: {\n query: query,\n variables: {\n id: id\n }\n }\n });\n }).then(function (response) {\n return response.data.node;\n });\n };\n\n /**\n * Queries the GraphQL API to get the payment context and process the status. Retries until there is an update to the payment context status.\n * @name Venmo~checkPaymentContextStatusAndProcessResult\n * @ignore\n * @param {number} retryCount The counter for tracking number of retries made against the API.\n * @returns {Promise} Returns a promise\n */\n Venmo.prototype._checkPaymentContextStatusAndProcessResult = function (retryCount) {\n var self = this;\n return self._queryPaymentContextStatus(self._venmoPaymentContextId).catch(function (networkError) {\n return Promise.reject(new BraintreeError({\n type: errors.VENMO_NETWORK_ERROR.type,\n code: errors.VENMO_NETWORK_ERROR.code,\n message: errors.VENMO_NETWORK_ERROR.message,\n details: networkError\n }));\n }).then(function (node) {\n var resultStatus = node.status;\n if (resultStatus !== self._venmoPaymentContextStatus) {\n self._venmoPaymentContextStatus = resultStatus;\n analytics.sendEvent(self._createPromise, \"venmo.tokenize.web-login.status-change\");\n switch (resultStatus) {\n case \"APPROVED\":\n return Promise.resolve(node);\n case \"CANCELED\":\n return Promise.reject(new BraintreeError(errors.VENMO_CUSTOMER_CANCELED));\n case \"FAILED\":\n return Promise.reject(new BraintreeError(errors.VENMO_TOKENIZATION_FAILED));\n default:\n }\n }\n return new Promise(function (resolve, reject) {\n if (retryCount < self._maxRetryCount) {\n retryCount++;\n return self._checkPaymentContextStatusAndProcessResult(retryCount).then(resolve).catch(reject);\n }\n return reject(new BraintreeError(errors.VENMO_TOKENIZATION_FAILED));\n });\n });\n };\n Venmo.prototype._pollForStatusChange = function () {\n var self = this;\n if (Date.now() > self._mobilePollingContextExpiresIn) {\n return Promise.reject(new BraintreeError(errors.VENMO_MOBILE_POLLING_TOKENIZATION_TIMEOUT));\n }\n return this._queryPaymentContextStatus(this._venmoPaymentContextId).catch(function (networkError) {\n return Promise.reject(new BraintreeError({\n type: errors.VENMO_MOBILE_POLLING_TOKENIZATION_NETWORK_ERROR.type,\n code: errors.VENMO_MOBILE_POLLING_TOKENIZATION_NETWORK_ERROR.code,\n message: errors.VENMO_MOBILE_POLLING_TOKENIZATION_NETWORK_ERROR.message,\n details: {\n originalError: networkError\n }\n }));\n }).then(function (node) {\n var newStatus = node.status;\n if (newStatus !== self._venmoPaymentContextStatus) {\n self._venmoPaymentContextStatus = newStatus;\n analytics.sendEvent(self._createPromise, \"venmo.tokenize.manual-return.status-change.\" + newStatus.toLowerCase());\n switch (newStatus) {\n case \"EXPIRED\":\n case \"FAILED\":\n case \"CANCELED\":\n return Promise.reject(new BraintreeError(errors[\"VENMO_MOBILE_POLLING_TOKENIZATION_\" + newStatus]));\n case \"APPROVED\":\n return Promise.resolve(node);\n case \"CREATED\":\n case \"SCANNED\":\n default:\n // any other statuses are irrelevant to the polling\n // and can just be ignored\n }\n }\n\n return new Promise(function (resolve, reject) {\n setTimeout(function () {\n self._pollForStatusChange().then(resolve).catch(reject);\n }, self._mobilePollingInterval);\n });\n });\n };\n Venmo.prototype._tokenizeForMobileWithManualReturn = function () {\n var self = this;\n analytics.sendEvent(this._createPromise, \"venmo.tokenize.manual-return.start\");\n this._mobilePollingContextExpiresIn = Date.now() + this._mobilePollingExpiresThreshold;\n this._tokenizePromise = new ExtendedPromise();\n this._pollForStatusChange().then(function (payload) {\n analytics.sendEvent(self._createPromise, \"venmo.tokenize.manual-return.success\");\n self._tokenizePromise.resolve({\n paymentMethodNonce: payload.paymentMethodId,\n username: payload.userName,\n payerInfo: payload.payerInfo,\n id: self._venmoPaymentContextId\n });\n }).catch(function (err) {\n analytics.sendEvent(self._createPromise, \"venmo.tokenize.manual-return.failure\");\n self._tokenizePromise.reject(err);\n });\n return this.getUrl().then(function (url) {\n self.appSwitch(url);\n return self._tokenizePromise;\n });\n };\n Venmo.prototype._shouldUseRedirectStrategy = function () {\n if (!browserDetection.isIos()) {\n return false;\n }\n if (this._mobileWebFallBack === true) {\n return true;\n }\n return this._useRedirectForIOS;\n };\n Venmo.prototype._tokenizeForMobileWithHashChangeListeners = function (options) {\n var self = this;\n var resultProcessingInProgress, visibilityChangeListenerTimeout;\n if (this.hasTokenizationResult()) {\n return this.processHashChangeFlowResults();\n }\n analytics.sendEvent(this._createPromise, \"venmo.tokenize.mobile.start\");\n this._tokenizePromise = new ExtendedPromise();\n this._previousHash = window.location.hash;\n function completeFlow(hash) {\n var error;\n self.processHashChangeFlowResults(hash).catch(function (err) {\n error = err;\n }).then(function (res) {\n if (!self._ignoreHistoryChanges && window.location.hash !== self._previousHash) {\n window.location.hash = self._previousHash;\n }\n self._removeVisibilityEventListener();\n if (error) {\n self._tokenizePromise.reject(error);\n } else {\n self._tokenizePromise.resolve(res);\n }\n delete self._tokenizePromise;\n });\n }\n\n // The Venmo SDK app switches back with the results of the\n // tokenization encoded in the hash\n this._onHashChangeListener = function (e) {\n var hash = e.newURL.split(\"#\")[1];\n if (!self._hasTokenizationResult(hash)) {\n return;\n }\n resultProcessingInProgress = true;\n clearTimeout(visibilityChangeListenerTimeout);\n completeFlow(hash);\n };\n window.addEventListener(\"hashchange\", this._onHashChangeListener, false);\n\n // Subscribe to document visibility change events to detect when app switch\n // has returned. Acts as a fallback for the hashchange listener and catches\n // the cancel case via manual app switch back\n this._visibilityChangeListener = function () {\n var delay = options.processResultsDelay || constants.DEFAULT_PROCESS_RESULTS_DELAY;\n if (!window.document.hidden) {\n if (!resultProcessingInProgress) {\n visibilityChangeListenerTimeout = setTimeout(completeFlow, delay);\n }\n }\n };\n return this.getUrl().then(function (url) {\n self.appSwitch(url);\n\n // Add a brief delay to ignore visibility change events that occur right before app switch\n setTimeout(function () {\n window.document.addEventListener(documentVisibilityChangeEventName(), self._visibilityChangeListener);\n }, constants.DOCUMENT_VISIBILITY_CHANGE_EVENT_DELAY);\n return self._tokenizePromise;\n });\n };\n Venmo.prototype._tokenizeForDesktopQRFlow = function () {\n var self = this;\n analytics.sendEvent(this._createPromise, \"venmo.tokenize.desktop.start\");\n this._tokenizePromise = new ExtendedPromise();\n this._createPromise.then(function () {\n return self._venmoDesktopInstance.launchDesktopFlow();\n }).then(function (payload) {\n self._venmoDesktopInstance.hideDesktopFlow();\n analytics.sendEvent(self._createPromise, \"venmo.tokenize.desktop.success\");\n self._tokenizePromise.resolve(payload);\n }).catch(function (err) {\n analytics.sendEvent(self._createPromise, \"venmo.tokenize.desktop.failure\");\n if (self._venmoDesktopInstance) {\n self._venmoDesktopInstance.hideDesktopFlow();\n }\n if (err && err.reason === \"CUSTOMER_CANCELED\") {\n self._tokenizePromise.reject(new BraintreeError(errors.VENMO_DESKTOP_CANCELED));\n return;\n }\n self._tokenizePromise.reject(new BraintreeError({\n type: errors.VENMO_DESKTOP_UNKNOWN_ERROR.type,\n code: errors.VENMO_DESKTOP_UNKNOWN_ERROR.code,\n message: errors.VENMO_DESKTOP_UNKNOWN_ERROR.message,\n details: {\n originalError: err\n }\n }));\n });\n return this._tokenizePromise;\n };\n Venmo.prototype._cancelMobilePaymentContext = function () {\n var self = this;\n return this._createPromise.then(function (client) {\n var query;\n if (self._venmoPaymentContextId) {\n query = self._shouldUseLegacyFlow ? graphqlQueries.LEGACY_UPDATE_PAYMENT_CONTEXT_QUERY : graphqlQueries.UPDATE_PAYMENT_CONTEXT_QUERY;\n return client.request({\n api: \"graphQLApi\",\n data: {\n query: query,\n variables: {\n input: {\n id: self._venmoPaymentContextId,\n status: \"CANCELED\"\n }\n }\n }\n });\n }\n return Promise.resolve();\n });\n };\n Venmo.prototype._cancelVenmoDesktopContext = function () {\n var self = this;\n return this._createPromise.then(function () {\n if (self._venmoDesktopInstance) {\n self._venmoDesktopInstance.updateVenmoDesktopPaymentContext(\"CANCELED\");\n }\n return Promise.resolve();\n });\n };\n\n /**\n * Cleanly tear down anything set up by {@link module:braintree-web/venmo.create|create}.\n * @public\n * @param {callback} [callback] Called once teardown is complete. No data is returned if teardown completes successfully.\n * @example\n * venmoInstance.teardown();\n * @example With callback\n * venmoInstance.teardown(function () {\n * // teardown is complete\n * });\n * @returns {(Promise|void)} Returns a promise if no callback is provided.\n */\n Venmo.prototype.teardown = function () {\n var self = this;\n this._removeVisibilityEventListener();\n return this._createPromise.then(function () {\n if (self._venmoDesktopInstance) {\n self._venmoDesktopInstance.teardown();\n }\n clearTimeout(self._refreshPaymentContextTimeout);\n self._cancelMobilePaymentContext();\n convertMethodsToError(this, methods(Venmo.prototype));\n }.bind(this));\n };\n Venmo.prototype._removeVisibilityEventListener = function () {\n window.removeEventListener(\"hashchange\", this._onHashChangeListener);\n window.document.removeEventListener(documentVisibilityChangeEventName(), this._visibilityChangeListener);\n delete this._visibilityChangeListener;\n delete this._onHashChangeListener;\n };\n\n /**\n * The hash parameter in this function is optional. If no hash parameter is passed, the `getFragmentParameters` function will default to the hash present in the website's URL instead.\n *\n * There are two scenarios where this method is called:\n *\n * 1. When called within a browser that is capable of returning to the same tab that started the Venmo flow, we set up a listener to detect hash changes in the url. Part of the return to the merchant's website from the Venmo app includes encoding the details of the purchase in the hash of the url. The callback is invoked and the hash is pulled off from the event payload. The reason we pull the hash off of the event payload instead of pulling it directly from the URL is because sometimes a single page app will use the hash parameter for it's routing system, and it's possible to hit a race condition where the routing code has already removed the Venmo specific attributes from the hash before we are able to pull it off the url. Grabbing the hash from the event handler instead ensures we get the Venmo details, no matter what the url is converted to.\n * 2. The other scenario is for browsers that cannot return to the same tab, and instead the Venmo app must open a new tab. Since there is no hash listener to pull the hash from, we pull the hash details directly from the url using the `getFragmentParameters` method.\n *\n * @ignore\n * @param {string} [hash] Optionally provided browser url hash.\n * @returns {Promise} Returns a promise\n */\n Venmo.prototype.processHashChangeFlowResults = function (hash) {\n var self = this;\n var params = getFragmentParameters(hash);\n\n // NEXT_MAJOR_VERSION only rely on payment context status call and stop relying on the\n // content of the hash\n\n return new Promise(function (resolve, reject) {\n if (!self._shouldUseLegacyFlow) {\n self._pollForStatusChange().then(function (payload) {\n analytics.sendEvent(self._createPromise, \"venmo.appswitch.handle.payment-context-status-query.success\");\n return resolve({\n paymentMethodNonce: payload.paymentMethodId,\n username: payload.userName,\n payerInfo: payload.payerInfo,\n id: self._venmoPaymentContextId\n });\n }).catch(function (err) {\n if (err.type === errors.VENMO_MOBILE_POLLING_TOKENIZATION_CANCELED.type) {\n // We want to reject in this case because if it the process was canceled, we don't want to take the happy path\n reject(err);\n }\n analytics.sendEvent(self._createPromise, \"venmo.process-results.payment-context-status-query-failed\");\n // If the polling request fails, but not because of cancelization, we will rely on the params provided from the hash\n resolve(params);\n });\n } else if (params.venmoSuccess) {\n analytics.sendEvent(self._createPromise, \"venmo.appswitch.handle.success\");\n resolve(params);\n } else if (params.venmoError) {\n analytics.sendEvent(self._createPromise, \"venmo.appswitch.handle.error\");\n reject(new BraintreeError({\n type: errors.VENMO_APP_FAILED.type,\n code: errors.VENMO_APP_FAILED.code,\n message: errors.VENMO_APP_FAILED.message,\n details: {\n originalError: {\n message: decodeURIComponent(params.errorMessage),\n code: params.errorCode\n }\n }\n }));\n } else if (params.venmoCancel) {\n analytics.sendEvent(self._createPromise, \"venmo.appswitch.handle.cancel\");\n reject(new BraintreeError(errors.VENMO_APP_CANCELED));\n } else {\n // User has either manually switched back to browser, or app is not available for app switch\n analytics.sendEvent(self._createPromise, \"venmo.appswitch.cancel-or-unavailable\");\n reject(new BraintreeError(errors.VENMO_CANCELED));\n }\n self._clearFragmentParameters();\n });\n };\n Venmo.prototype._clearFragmentParameters = function () {\n if (this._ignoreHistoryChanges) {\n return;\n }\n if (typeof window.history.replaceState === \"function\" && window.location.hash) {\n history.pushState({}, \"\", window.location.href.slice(0, window.location.href.indexOf(\"#\")));\n }\n };\n function getFragmentParameters(hash) {\n var keyValuesArray = (hash || window.location.hash.substring(1)).split(\"&\");\n var parsedParams = keyValuesArray.reduce(function (toReturn, keyValue) {\n var parts = keyValue.split(\"=\");\n // some Single Page Apps may pre-pend a / to the first value\n // in the hash, assuming it's a route in their app\n // instead of information from Venmo, this removes all\n // non-alphanumeric characters from the keys in the params\n var decodedKey = decodeURIComponent(parts[0]).replace(/\\W/g, \"\");\n var key = snakeCaseToCamelCase(decodedKey);\n var value = decodeURIComponent(parts[1]);\n toReturn[key] = value;\n return toReturn;\n }, {});\n if (parsedParams.resourceId) {\n parsedParams.id = parsedParams.resourceId;\n }\n return parsedParams;\n }\n function formatUserName(username) {\n username = username || \"\";\n\n // NEXT_MAJOR_VERSION the web sdks have a prepended @ sign\n // but the ios and android ones do not. This should be standardized\n return \"@\" + username.replace(\"@\", \"\");\n }\n function formatTokenizePayload(payload) {\n var formattedPayload = {\n nonce: payload.paymentMethodNonce,\n type: \"VenmoAccount\",\n details: {\n username: formatUserName(payload.username),\n paymentContextId: payload.id\n }\n };\n if (payload.payerInfo) {\n formattedPayload.details.payerInfo = payload.payerInfo;\n formattedPayload.details.payerInfo.userName = formatUserName(payload.payerInfo.userName);\n }\n return formattedPayload;\n }\n\n // From https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API\n function documentVisibilityChangeEventName() {\n var visibilityChange;\n if (typeof window.document.hidden !== \"undefined\") {\n // Opera 12.10 and Firefox 18 and later support\n visibilityChange = \"visibilitychange\";\n } else if (typeof window.document.msHidden !== \"undefined\") {\n visibilityChange = \"msvisibilitychange\";\n } else if (typeof window.document.webkitHidden !== \"undefined\") {\n visibilityChange = \"webkitvisibilitychange\";\n }\n return visibilityChange;\n }\n function isIosWebviewInDeepLinkReturnUrlFlow() {\n // we know it's a webview because this flow only gets\n // used when checking the deep link flow\n // test the platform here to get around custom useragents\n return window.navigator.platform && /iPhone|iPad|iPod/.test(window.navigator.platform);\n }\n module.exports = wrapPromise.wrapPrototype(Venmo);\n }, {\n \"../lib/analytics\": 72,\n \"../lib/braintree-error\": 77,\n \"../lib/convert-methods-to-error\": 79,\n \"../lib/in-iframe\": 102,\n \"../lib/is-verified-domain\": 105,\n \"../lib/methods\": 107,\n \"../lib/querystring\": 109,\n \"../lib/snake-case-to-camel-case\": 111,\n \"./external/\": 160,\n \"./external/queries\": 161,\n \"./shared/browser-detection\": 164,\n \"./shared/constants\": 165,\n \"./shared/errors\": 166,\n \"./shared/get-venmo-url\": 168,\n \"./shared/supports-venmo\": 169,\n \"./shared/web-login-backdrop\": 170,\n \"@braintree/extended-promise\": 24,\n \"@braintree/wrap-promise\": 33\n }],\n 172: [function (require, module, exports) {\n \"use strict\";\n\n var __assign = this && this.__assign || function () {\n __assign = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };\n var cardTypes = require(\"./lib/card-types\");\n var add_matching_cards_to_results_1 = require(\"./lib/add-matching-cards-to-results\");\n var is_valid_input_type_1 = require(\"./lib/is-valid-input-type\");\n var find_best_match_1 = require(\"./lib/find-best-match\");\n var clone_1 = require(\"./lib/clone\");\n var customCards = {};\n var cardNames = {\n VISA: \"visa\",\n MASTERCARD: \"mastercard\",\n AMERICAN_EXPRESS: \"american-express\",\n DINERS_CLUB: \"diners-club\",\n DISCOVER: \"discover\",\n JCB: \"jcb\",\n UNIONPAY: \"unionpay\",\n MAESTRO: \"maestro\",\n ELO: \"elo\",\n MIR: \"mir\",\n HIPER: \"hiper\",\n HIPERCARD: \"hipercard\"\n };\n var ORIGINAL_TEST_ORDER = [cardNames.VISA, cardNames.MASTERCARD, cardNames.AMERICAN_EXPRESS, cardNames.DINERS_CLUB, cardNames.DISCOVER, cardNames.JCB, cardNames.UNIONPAY, cardNames.MAESTRO, cardNames.ELO, cardNames.MIR, cardNames.HIPER, cardNames.HIPERCARD];\n var testOrder = clone_1.clone(ORIGINAL_TEST_ORDER);\n function findType(cardType) {\n return customCards[cardType] || cardTypes[cardType];\n }\n function getAllCardTypes() {\n return testOrder.map(function (cardType) {\n return clone_1.clone(findType(cardType));\n });\n }\n function getCardPosition(name, ignoreErrorForNotExisting) {\n if (ignoreErrorForNotExisting === void 0) {\n ignoreErrorForNotExisting = false;\n }\n var position = testOrder.indexOf(name);\n if (!ignoreErrorForNotExisting && position === -1) {\n throw new Error('\"' + name + '\" is not a supported card type.');\n }\n return position;\n }\n function creditCardType(cardNumber) {\n var results = [];\n if (!is_valid_input_type_1.isValidInputType(cardNumber)) {\n return results;\n }\n if (cardNumber.length === 0) {\n return getAllCardTypes();\n }\n testOrder.forEach(function (cardType) {\n var cardConfiguration = findType(cardType);\n add_matching_cards_to_results_1.addMatchingCardsToResults(cardNumber, cardConfiguration, results);\n });\n var bestMatch = find_best_match_1.findBestMatch(results);\n if (bestMatch) {\n return [bestMatch];\n }\n return results;\n }\n creditCardType.getTypeInfo = function (cardType) {\n return clone_1.clone(findType(cardType));\n };\n creditCardType.removeCard = function (name) {\n var position = getCardPosition(name);\n testOrder.splice(position, 1);\n };\n creditCardType.addCard = function (config) {\n var existingCardPosition = getCardPosition(config.type, true);\n customCards[config.type] = config;\n if (existingCardPosition === -1) {\n testOrder.push(config.type);\n }\n };\n creditCardType.updateCard = function (cardType, updates) {\n var originalObject = customCards[cardType] || cardTypes[cardType];\n if (!originalObject) {\n throw new Error(\"\\\"\" + cardType + \"\\\" is not a recognized type. Use `addCard` instead.'\");\n }\n if (updates.type && originalObject.type !== updates.type) {\n throw new Error(\"Cannot overwrite type parameter.\");\n }\n var clonedCard = clone_1.clone(originalObject);\n clonedCard = __assign(__assign({}, clonedCard), updates);\n customCards[clonedCard.type] = clonedCard;\n };\n creditCardType.changeOrder = function (name, position) {\n var currentPosition = getCardPosition(name);\n testOrder.splice(currentPosition, 1);\n testOrder.splice(position, 0, name);\n };\n creditCardType.resetModifications = function () {\n testOrder = clone_1.clone(ORIGINAL_TEST_ORDER);\n customCards = {};\n };\n creditCardType.types = cardNames;\n module.exports = creditCardType;\n }, {\n \"./lib/add-matching-cards-to-results\": 173,\n \"./lib/card-types\": 174,\n \"./lib/clone\": 175,\n \"./lib/find-best-match\": 176,\n \"./lib/is-valid-input-type\": 177\n }],\n 173: [function (require, module, exports) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.addMatchingCardsToResults = void 0;\n var clone_1 = require(\"./clone\");\n var matches_1 = require(\"./matches\");\n function addMatchingCardsToResults(cardNumber, cardConfiguration, results) {\n var i, patternLength;\n for (i = 0; i < cardConfiguration.patterns.length; i++) {\n var pattern = cardConfiguration.patterns[i];\n if (!matches_1.matches(cardNumber, pattern)) {\n continue;\n }\n var clonedCardConfiguration = clone_1.clone(cardConfiguration);\n if (Array.isArray(pattern)) {\n patternLength = String(pattern[0]).length;\n } else {\n patternLength = String(pattern).length;\n }\n if (cardNumber.length >= patternLength) {\n clonedCardConfiguration.matchStrength = patternLength;\n }\n results.push(clonedCardConfiguration);\n break;\n }\n }\n exports.addMatchingCardsToResults = addMatchingCardsToResults;\n }, {\n \"./clone\": 175,\n \"./matches\": 178\n }],\n 174: [function (require, module, exports) {\n \"use strict\";\n\n var cardTypes = {\n visa: {\n niceType: \"Visa\",\n type: \"visa\",\n patterns: [4],\n gaps: [4, 8, 12],\n lengths: [16, 18, 19],\n code: {\n name: \"CVV\",\n size: 3\n }\n },\n mastercard: {\n niceType: \"Mastercard\",\n type: \"mastercard\",\n patterns: [[51, 55], [2221, 2229], [223, 229], [23, 26], [270, 271], 2720],\n gaps: [4, 8, 12],\n lengths: [16],\n code: {\n name: \"CVC\",\n size: 3\n }\n },\n \"american-express\": {\n niceType: \"American Express\",\n type: \"american-express\",\n patterns: [34, 37],\n gaps: [4, 10],\n lengths: [15],\n code: {\n name: \"CID\",\n size: 4\n }\n },\n \"diners-club\": {\n niceType: \"Diners Club\",\n type: \"diners-club\",\n patterns: [[300, 305], 36, 38, 39],\n gaps: [4, 10],\n lengths: [14, 16, 19],\n code: {\n name: \"CVV\",\n size: 3\n }\n },\n discover: {\n niceType: \"Discover\",\n type: \"discover\",\n patterns: [6011, [644, 649], 65],\n gaps: [4, 8, 12],\n lengths: [16, 19],\n code: {\n name: \"CID\",\n size: 3\n }\n },\n jcb: {\n niceType: \"JCB\",\n type: \"jcb\",\n patterns: [2131, 1800, [3528, 3589]],\n gaps: [4, 8, 12],\n lengths: [16, 17, 18, 19],\n code: {\n name: \"CVV\",\n size: 3\n }\n },\n unionpay: {\n niceType: \"UnionPay\",\n type: \"unionpay\",\n patterns: [620, [624, 626], [62100, 62182], [62184, 62187], [62185, 62197], [62200, 62205], [622010, 622999], 622018, [622019, 622999], [62207, 62209], [622126, 622925], [623, 626], 6270, 6272, 6276, [627700, 627779], [627781, 627799], [6282, 6289], 6291, 6292, 810, [8110, 8131], [8132, 8151], [8152, 8163], [8164, 8171]],\n gaps: [4, 8, 12],\n lengths: [14, 15, 16, 17, 18, 19],\n code: {\n name: \"CVN\",\n size: 3\n }\n },\n maestro: {\n niceType: \"Maestro\",\n type: \"maestro\",\n patterns: [493698, [500000, 504174], [504176, 506698], [506779, 508999], [56, 59], 63, 67, 6],\n gaps: [4, 8, 12],\n lengths: [12, 13, 14, 15, 16, 17, 18, 19],\n code: {\n name: \"CVC\",\n size: 3\n }\n },\n elo: {\n niceType: \"Elo\",\n type: \"elo\",\n patterns: [401178, 401179, 438935, 457631, 457632, 431274, 451416, 457393, 504175, [506699, 506778], [509000, 509999], 627780, 636297, 636368, [650031, 650033], [650035, 650051], [650405, 650439], [650485, 650538], [650541, 650598], [650700, 650718], [650720, 650727], [650901, 650978], [651652, 651679], [655000, 655019], [655021, 655058]],\n gaps: [4, 8, 12],\n lengths: [16],\n code: {\n name: \"CVE\",\n size: 3\n }\n },\n mir: {\n niceType: \"Mir\",\n type: \"mir\",\n patterns: [[2200, 2204]],\n gaps: [4, 8, 12],\n lengths: [16, 17, 18, 19],\n code: {\n name: \"CVP2\",\n size: 3\n }\n },\n hiper: {\n niceType: \"Hiper\",\n type: \"hiper\",\n patterns: [637095, 63737423, 63743358, 637568, 637599, 637609, 637612],\n gaps: [4, 8, 12],\n lengths: [16],\n code: {\n name: \"CVC\",\n size: 3\n }\n },\n hipercard: {\n niceType: \"Hipercard\",\n type: \"hipercard\",\n patterns: [606282],\n gaps: [4, 8, 12],\n lengths: [16],\n code: {\n name: \"CVC\",\n size: 3\n }\n }\n };\n module.exports = cardTypes;\n }, {}],\n 175: [function (require, module, exports) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.clone = void 0;\n function clone(originalObject) {\n if (!originalObject) {\n return null;\n }\n return JSON.parse(JSON.stringify(originalObject));\n }\n exports.clone = clone;\n }, {}],\n 176: [function (require, module, exports) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.findBestMatch = void 0;\n function hasEnoughResultsToDetermineBestMatch(results) {\n var numberOfResultsWithMaxStrengthProperty = results.filter(function (result) {\n return result.matchStrength;\n }).length;\n /*\n * if all possible results have a maxStrength property that means the card\n * number is sufficiently long enough to determine conclusively what the card\n * type is\n * */\n return numberOfResultsWithMaxStrengthProperty > 0 && numberOfResultsWithMaxStrengthProperty === results.length;\n }\n function findBestMatch(results) {\n if (!hasEnoughResultsToDetermineBestMatch(results)) {\n return null;\n }\n return results.reduce(function (bestMatch, result) {\n if (!bestMatch) {\n return result;\n }\n /*\n * If the current best match pattern is less specific than this result, set\n * the result as the new best match\n * */\n if (Number(bestMatch.matchStrength) < Number(result.matchStrength)) {\n return result;\n }\n return bestMatch;\n });\n }\n exports.findBestMatch = findBestMatch;\n }, {}],\n 177: [function (require, module, exports) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.isValidInputType = void 0;\n function isValidInputType(cardNumber) {\n return typeof cardNumber === \"string\" || cardNumber instanceof String;\n }\n exports.isValidInputType = isValidInputType;\n }, {}],\n 178: [function (require, module, exports) {\n \"use strict\";\n\n /*\n * Adapted from https://github.com/polvo-labs/card-type/blob/aaab11f80fa1939bccc8f24905a06ae3cd864356/src/cardType.js#L37-L42\n * */\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.matches = void 0;\n function matchesRange(cardNumber, min, max) {\n var maxLengthToCheck = String(min).length;\n var substr = cardNumber.substr(0, maxLengthToCheck);\n var integerRepresentationOfCardNumber = parseInt(substr, 10);\n min = parseInt(String(min).substr(0, substr.length), 10);\n max = parseInt(String(max).substr(0, substr.length), 10);\n return integerRepresentationOfCardNumber >= min && integerRepresentationOfCardNumber <= max;\n }\n function matchesPattern(cardNumber, pattern) {\n pattern = String(pattern);\n return pattern.substring(0, cardNumber.length) === cardNumber.substring(0, pattern.length);\n }\n function matches(cardNumber, pattern) {\n if (Array.isArray(pattern)) {\n return matchesRange(cardNumber, pattern[0], pattern[1]);\n }\n return matchesPattern(cardNumber, pattern);\n }\n exports.matches = matches;\n }, {}],\n 179: [function (require, module, exports) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.Framebus = void 0;\n var lib_1 = require(\"./lib\");\n var DefaultPromise = typeof window !== \"undefined\" && window.Promise;\n var Framebus = /** @class */function () {\n function Framebus(options) {\n if (options === void 0) {\n options = {};\n }\n this.origin = options.origin || \"*\";\n this.channel = options.channel || \"\";\n this.verifyDomain = options.verifyDomain;\n // if a targetFrames configuration is not passed in,\n // the default behavior is to broadcast the payload\n // to the top level window or to the frame itself.\n // By default, the broadcast function will loop through\n // all the known siblings and children of the window.\n // If a targetFrames array is passed, it will instead\n // only broadcast to those specified targetFrames\n this.targetFrames = options.targetFrames || [];\n this.limitBroadcastToFramesArray = Boolean(options.targetFrames);\n this.isDestroyed = false;\n this.listeners = [];\n this.hasAdditionalChecksForOnListeners = Boolean(this.verifyDomain || this.limitBroadcastToFramesArray);\n }\n Framebus.setPromise = function (PromiseGlobal) {\n Framebus.Promise = PromiseGlobal;\n };\n Framebus.target = function (options) {\n return new Framebus(options);\n };\n Framebus.prototype.addTargetFrame = function (frame) {\n if (!this.limitBroadcastToFramesArray) {\n return;\n }\n this.targetFrames.push(frame);\n };\n Framebus.prototype.include = function (childWindow) {\n if (childWindow == null) {\n return false;\n }\n if (childWindow.Window == null) {\n return false;\n }\n if (childWindow.constructor !== childWindow.Window) {\n return false;\n }\n lib_1.childWindows.push(childWindow);\n return true;\n };\n Framebus.prototype.target = function (options) {\n return Framebus.target(options);\n };\n Framebus.prototype.emit = function (eventName, data, reply) {\n if (this.isDestroyed) {\n return false;\n }\n var origin = this.origin;\n eventName = this.namespaceEvent(eventName);\n if ((0, lib_1.isntString)(eventName)) {\n return false;\n }\n if ((0, lib_1.isntString)(origin)) {\n return false;\n }\n if (typeof data === \"function\") {\n reply = data;\n data = undefined; // eslint-disable-line no-undefined\n }\n\n var payload = (0, lib_1.packagePayload)(eventName, origin, data, reply);\n if (!payload) {\n return false;\n }\n if (this.limitBroadcastToFramesArray) {\n this.targetFramesAsWindows().forEach(function (frame) {\n (0, lib_1.sendMessage)(frame, payload, origin);\n });\n } else {\n (0, lib_1.broadcast)(payload, {\n origin: origin,\n frame: window.top || window.self\n });\n }\n return true;\n };\n Framebus.prototype.emitAsPromise = function (eventName, data) {\n var _this = this;\n return new Framebus.Promise(function (resolve, reject) {\n var didAttachListener = _this.emit(eventName, data, function (payload) {\n resolve(payload);\n });\n if (!didAttachListener) {\n reject(new Error(\"Listener not added for \\\"\".concat(eventName, \"\\\"\")));\n }\n });\n };\n Framebus.prototype.on = function (eventName, originalHandler) {\n if (this.isDestroyed) {\n return false;\n }\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n var self = this;\n var origin = this.origin;\n var handler = originalHandler;\n eventName = this.namespaceEvent(eventName);\n if ((0, lib_1.subscriptionArgsInvalid)(eventName, handler, origin)) {\n return false;\n }\n if (this.hasAdditionalChecksForOnListeners) {\n /* eslint-disable no-invalid-this, @typescript-eslint/ban-ts-comment */\n handler = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n // @ts-ignore\n if (!self.passesVerifyDomainCheck(this && this.origin)) {\n return;\n }\n // @ts-ignore\n if (!self.hasMatchingTargetFrame(this && this.source)) {\n return;\n }\n originalHandler.apply(void 0, args);\n };\n /* eslint-enable no-invalid-this, @typescript-eslint/ban-ts-comment */\n }\n\n this.listeners.push({\n eventName: eventName,\n handler: handler,\n originalHandler: originalHandler\n });\n lib_1.subscribers[origin] = lib_1.subscribers[origin] || {};\n lib_1.subscribers[origin][eventName] = lib_1.subscribers[origin][eventName] || [];\n lib_1.subscribers[origin][eventName].push(handler);\n return true;\n };\n Framebus.prototype.off = function (eventName, originalHandler) {\n var handler = originalHandler;\n if (this.isDestroyed) {\n return false;\n }\n if (this.verifyDomain) {\n for (var i = 0; i < this.listeners.length; i++) {\n var listener = this.listeners[i];\n if (listener.originalHandler === originalHandler) {\n handler = listener.handler;\n }\n }\n }\n eventName = this.namespaceEvent(eventName);\n var origin = this.origin;\n if ((0, lib_1.subscriptionArgsInvalid)(eventName, handler, origin)) {\n return false;\n }\n var subscriberList = lib_1.subscribers[origin] && lib_1.subscribers[origin][eventName];\n if (!subscriberList) {\n return false;\n }\n for (var i = 0; i < subscriberList.length; i++) {\n if (subscriberList[i] === handler) {\n subscriberList.splice(i, 1);\n return true;\n }\n }\n return false;\n };\n Framebus.prototype.teardown = function () {\n if (this.isDestroyed) {\n return;\n }\n this.isDestroyed = true;\n for (var i = 0; i < this.listeners.length; i++) {\n var listener = this.listeners[i];\n this.off(listener.eventName, listener.handler);\n }\n this.listeners.length = 0;\n };\n Framebus.prototype.passesVerifyDomainCheck = function (origin) {\n if (!this.verifyDomain) {\n // always pass this check if no verifyDomain option was set\n return true;\n }\n return this.checkOrigin(origin);\n };\n Framebus.prototype.targetFramesAsWindows = function () {\n if (!this.limitBroadcastToFramesArray) {\n return [];\n }\n return this.targetFrames.map(function (frame) {\n // we can't pull off the contentWindow\n // when the iframe is originally added\n // to the array, because if it is not\n // in the DOM at that time, it will have\n // a contentWindow of `null`\n if (frame instanceof HTMLIFrameElement) {\n return frame.contentWindow;\n }\n return frame;\n }).filter(function (win) {\n // just in case an iframe element\n // was removed from the DOM\n // and the contentWindow property\n // is null\n return win;\n });\n };\n Framebus.prototype.hasMatchingTargetFrame = function (source) {\n if (!this.limitBroadcastToFramesArray) {\n // always pass this check if we aren't limiting to the target frames\n return true;\n }\n var matchingFrame = this.targetFramesAsWindows().find(function (frame) {\n return frame === source;\n });\n return Boolean(matchingFrame);\n };\n Framebus.prototype.checkOrigin = function (postMessageOrigin) {\n var merchantHost;\n var a = document.createElement(\"a\");\n a.href = location.href;\n if (a.protocol === \"https:\") {\n merchantHost = a.host.replace(/:443$/, \"\");\n } else if (a.protocol === \"http:\") {\n merchantHost = a.host.replace(/:80$/, \"\");\n } else {\n merchantHost = a.host;\n }\n var merchantOrigin = a.protocol + \"//\" + merchantHost;\n if (merchantOrigin === postMessageOrigin) {\n return true;\n }\n if (this.verifyDomain) {\n return this.verifyDomain(postMessageOrigin);\n }\n return true;\n };\n Framebus.prototype.namespaceEvent = function (eventName) {\n if (!this.channel) {\n return eventName;\n }\n return \"\".concat(this.channel, \":\").concat(eventName);\n };\n Framebus.Promise = DefaultPromise;\n return Framebus;\n }();\n exports.Framebus = Framebus;\n }, {\n \"./lib\": 187\n }],\n 180: [function (require, module, exports) {\n \"use strict\";\n\n var lib_1 = require(\"./lib\");\n var framebus_1 = require(\"./framebus\");\n (0, lib_1.attach)();\n module.exports = framebus_1.Framebus;\n }, {\n \"./framebus\": 179,\n \"./lib\": 187\n }],\n 181: [function (require, module, exports) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.detach = exports.attach = void 0;\n var _1 = require(\"./\");\n var isAttached = false;\n function attach() {\n if (isAttached || typeof window === \"undefined\") {\n return;\n }\n isAttached = true;\n window.addEventListener(\"message\", _1.onMessage, false);\n }\n exports.attach = attach;\n // removeIf(production)\n function detach() {\n isAttached = false;\n window.removeEventListener(\"message\", _1.onMessage, false);\n }\n exports.detach = detach;\n // endRemoveIf(production)\n }, {\n \"./\": 187\n }],\n 182: [function (require, module, exports) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.broadcastToChildWindows = void 0;\n var _1 = require(\"./\");\n function broadcastToChildWindows(payload, origin, source) {\n for (var i = _1.childWindows.length - 1; i >= 0; i--) {\n var childWindow = _1.childWindows[i];\n if (childWindow.closed) {\n _1.childWindows.splice(i, 1);\n } else if (source !== childWindow) {\n (0, _1.broadcast)(payload, {\n origin: origin,\n frame: childWindow.top\n });\n }\n }\n }\n exports.broadcastToChildWindows = broadcastToChildWindows;\n }, {\n \"./\": 187\n }],\n 183: [function (require, module, exports) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.broadcast = void 0;\n var _1 = require(\"./\");\n function broadcast(payload, options) {\n var i = 0;\n var frameToBroadcastTo;\n var origin = options.origin,\n frame = options.frame;\n try {\n frame.postMessage(payload, origin);\n if ((0, _1.hasOpener)(frame) && frame.opener.top !== window.top) {\n broadcast(payload, {\n origin: origin,\n frame: frame.opener.top\n });\n }\n // previously, our max value was frame.frames.length\n // but frames.length inherits from window.length\n // which can be overwritten if a developer does\n // `var length = value;` outside of a function\n // scope, it'll prevent us from looping through\n // all the frames. With this, we loop through\n // until there are no longer any frames\n // eslint-disable-next-line no-cond-assign\n while (frameToBroadcastTo = frame.frames[i]) {\n broadcast(payload, {\n origin: origin,\n frame: frameToBroadcastTo\n });\n i++;\n }\n } catch (_) {\n /* ignored */\n }\n }\n exports.broadcast = broadcast;\n }, {\n \"./\": 187\n }],\n 184: [function (require, module, exports) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.subscribers = exports.childWindows = exports.prefix = void 0;\n exports.prefix = \"/*framebus*/\";\n exports.childWindows = [];\n exports.subscribers = {};\n }, {}],\n 185: [function (require, module, exports) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.dispatch = void 0;\n var _1 = require(\"./\");\n function dispatch(origin, event, data, reply, e) {\n if (!_1.subscribers[origin]) {\n return;\n }\n if (!_1.subscribers[origin][event]) {\n return;\n }\n var args = [];\n if (data) {\n args.push(data);\n }\n if (reply) {\n args.push(reply);\n }\n for (var i = 0; i < _1.subscribers[origin][event].length; i++) {\n _1.subscribers[origin][event][i].apply(e, args);\n }\n }\n exports.dispatch = dispatch;\n }, {\n \"./\": 187\n }],\n 186: [function (require, module, exports) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.hasOpener = void 0;\n function hasOpener(frame) {\n if (frame.top !== frame) {\n return false;\n }\n if (frame.opener == null) {\n return false;\n }\n if (frame.opener === frame) {\n return false;\n }\n if (frame.opener.closed === true) {\n return false;\n }\n return true;\n }\n exports.hasOpener = hasOpener;\n }, {}],\n 187: [function (require, module, exports) {\n \"use strict\";\n\n var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = {\n enumerable: true,\n get: function () {\n return m[k];\n }\n };\n }\n Object.defineProperty(o, k2, desc);\n } : function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n });\n var __exportStar = this && this.__exportStar || function (m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n __exportStar(require(\"./attach\"), exports);\n __exportStar(require(\"./broadcast-to-child-windows\"), exports);\n __exportStar(require(\"./broadcast\"), exports);\n __exportStar(require(\"./constants\"), exports);\n __exportStar(require(\"./dispatch\"), exports);\n __exportStar(require(\"./has-opener\"), exports);\n __exportStar(require(\"./is-not-string\"), exports);\n __exportStar(require(\"./message\"), exports);\n __exportStar(require(\"./package-payload\"), exports);\n __exportStar(require(\"./send-message\"), exports);\n __exportStar(require(\"./subscribe-replier\"), exports);\n __exportStar(require(\"./subscription-args-invalid\"), exports);\n __exportStar(require(\"./types\"), exports);\n __exportStar(require(\"./unpack-payload\"), exports);\n }, {\n \"./attach\": 181,\n \"./broadcast\": 183,\n \"./broadcast-to-child-windows\": 182,\n \"./constants\": 184,\n \"./dispatch\": 185,\n \"./has-opener\": 186,\n \"./is-not-string\": 188,\n \"./message\": 189,\n \"./package-payload\": 190,\n \"./send-message\": 191,\n \"./subscribe-replier\": 192,\n \"./subscription-args-invalid\": 193,\n \"./types\": 194,\n \"./unpack-payload\": 195\n }],\n 188: [function (require, module, exports) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.isntString = void 0;\n function isntString(str) {\n return typeof str !== \"string\";\n }\n exports.isntString = isntString;\n }, {}],\n 189: [function (require, module, exports) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.onMessage = void 0;\n var _1 = require(\"./\");\n function onMessage(e) {\n if ((0, _1.isntString)(e.data)) {\n return;\n }\n var payload = (0, _1.unpackPayload)(e);\n if (!payload) {\n return;\n }\n var data = payload.eventData;\n var reply = payload.reply;\n (0, _1.dispatch)(\"*\", payload.event, data, reply, e);\n (0, _1.dispatch)(e.origin, payload.event, data, reply, e);\n (0, _1.broadcastToChildWindows)(e.data, payload.origin, e.source);\n }\n exports.onMessage = onMessage;\n }, {\n \"./\": 187\n }],\n 190: [function (require, module, exports) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.packagePayload = void 0;\n var _1 = require(\"./\");\n function packagePayload(event, origin, data, reply) {\n var packaged;\n var payload = {\n event: event,\n origin: origin\n };\n if (typeof reply === \"function\") {\n payload.reply = (0, _1.subscribeReplier)(reply, origin);\n }\n payload.eventData = data;\n try {\n packaged = _1.prefix + JSON.stringify(payload);\n } catch (e) {\n throw new Error(\"Could not stringify event: \".concat(e.message));\n }\n return packaged;\n }\n exports.packagePayload = packagePayload;\n }, {\n \"./\": 187\n }],\n 191: [function (require, module, exports) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.sendMessage = void 0;\n /**\n * A basic function for wrapping the sending of postMessages to frames.\n */\n function sendMessage(frame, payload, origin) {\n try {\n frame.postMessage(payload, origin);\n } catch (error) {\n /* ignored */\n }\n }\n exports.sendMessage = sendMessage;\n }, {}],\n 192: [function (require, module, exports) {\n \"use strict\";\n\n var __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n };\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.subscribeReplier = void 0;\n var framebus_1 = require(\"../framebus\");\n var uuid_1 = __importDefault(require(\"@braintree/uuid\"));\n function subscribeReplier(fn, origin) {\n var uuid = (0, uuid_1.default)();\n function replier(data, replyOriginHandler) {\n fn(data, replyOriginHandler);\n framebus_1.Framebus.target({\n origin: origin\n }).off(uuid, replier);\n }\n framebus_1.Framebus.target({\n origin: origin\n }).on(uuid, replier);\n return uuid;\n }\n exports.subscribeReplier = subscribeReplier;\n }, {\n \"../framebus\": 179,\n \"@braintree/uuid\": 29\n }],\n 193: [function (require, module, exports) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.subscriptionArgsInvalid = void 0;\n var _1 = require(\"./\");\n function subscriptionArgsInvalid(event, fn, origin) {\n if ((0, _1.isntString)(event)) {\n return true;\n }\n if (typeof fn !== \"function\") {\n return true;\n }\n return (0, _1.isntString)(origin);\n }\n exports.subscriptionArgsInvalid = subscriptionArgsInvalid;\n }, {\n \"./\": 187\n }],\n 194: [function (require, module, exports) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n }, {}],\n 195: [function (require, module, exports) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.unpackPayload = void 0;\n var _1 = require(\"./\");\n function unpackPayload(e) {\n var payload;\n if (e.data.slice(0, _1.prefix.length) !== _1.prefix) {\n return false;\n }\n try {\n payload = JSON.parse(e.data.slice(_1.prefix.length));\n } catch (err) {\n return false;\n }\n if (payload.reply) {\n var replyOrigin_1 = e.origin;\n var replySource_1 = e.source;\n var replyEvent_1 = payload.reply;\n payload.reply = function reply(replyData) {\n if (!replySource_1) {\n return;\n }\n var replyPayload = (0, _1.packagePayload)(replyEvent_1, replyOrigin_1, replyData);\n if (!replyPayload) {\n return;\n }\n replySource_1.postMessage(replyPayload, replyOrigin_1);\n };\n }\n return payload;\n }\n exports.unpackPayload = unpackPayload;\n }, {\n \"./\": 187\n }],\n 196: [function (require, module, exports) {\n // shim for using process in browser\n var process = module.exports = {};\n\n // cached from whatever global is present so that test runners that stub it\n // don't break things. But we need to wrap it in a try catch in case it is\n // wrapped in strict mode code which doesn't define any globals. It's inside a\n // function because try/catches deoptimize in certain engines.\n\n var cachedSetTimeout;\n var cachedClearTimeout;\n function defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n }\n function defaultClearTimeout() {\n throw new Error('clearTimeout has not been defined');\n }\n (function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n })();\n function runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch (e) {\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch (e) {\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n }\n function runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e) {\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e) {\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n }\n var queue = [];\n var draining = false;\n var currentQueue;\n var queueIndex = -1;\n function cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n }\n function drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n var len = queue.length;\n while (len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n }\n process.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n };\n\n // v8 likes predictible objects\n function Item(fun, array) {\n this.fun = fun;\n this.array = array;\n }\n Item.prototype.run = function () {\n this.fun.apply(null, this.array);\n };\n process.title = 'browser';\n process.browser = true;\n process.env = {};\n process.argv = [];\n process.version = ''; // empty string to avoid regexp issues\n process.versions = {};\n function noop() {}\n process.on = noop;\n process.addListener = noop;\n process.once = noop;\n process.off = noop;\n process.removeListener = noop;\n process.removeAllListeners = noop;\n process.emit = noop;\n process.prependListener = noop;\n process.prependOnceListener = noop;\n process.listeners = function (name) {\n return [];\n };\n process.binding = function (name) {\n throw new Error('process.binding is not supported');\n };\n process.cwd = function () {\n return '/';\n };\n process.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n };\n process.umask = function () {\n return 0;\n };\n }, {}],\n 197: [function (require, module, exports) {\n (function (setImmediate) {\n (function () {\n 'use strict';\n\n /**\n * @this {Promise}\n */\n function finallyConstructor(callback) {\n var constructor = this.constructor;\n return this.then(function (value) {\n // @ts-ignore\n return constructor.resolve(callback()).then(function () {\n return value;\n });\n }, function (reason) {\n // @ts-ignore\n return constructor.resolve(callback()).then(function () {\n // @ts-ignore\n return constructor.reject(reason);\n });\n });\n }\n function allSettled(arr) {\n var P = this;\n return new P(function (resolve, reject) {\n if (!(arr && typeof arr.length !== 'undefined')) {\n return reject(new TypeError(typeof arr + ' ' + arr + ' is not iterable(cannot read property Symbol(Symbol.iterator))'));\n }\n var args = Array.prototype.slice.call(arr);\n if (args.length === 0) return resolve([]);\n var remaining = args.length;\n function res(i, val) {\n if (val && (typeof val === 'object' || typeof val === 'function')) {\n var then = val.then;\n if (typeof then === 'function') {\n then.call(val, function (val) {\n res(i, val);\n }, function (e) {\n args[i] = {\n status: 'rejected',\n reason: e\n };\n if (--remaining === 0) {\n resolve(args);\n }\n });\n return;\n }\n }\n args[i] = {\n status: 'fulfilled',\n value: val\n };\n if (--remaining === 0) {\n resolve(args);\n }\n }\n for (var i = 0; i < args.length; i++) {\n res(i, args[i]);\n }\n });\n }\n\n // Store setTimeout reference so promise-polyfill will be unaffected by\n // other code modifying setTimeout (like sinon.useFakeTimers())\n var setTimeoutFunc = setTimeout;\n function isArray(x) {\n return Boolean(x && typeof x.length !== 'undefined');\n }\n function noop() {}\n\n // Polyfill for Function.prototype.bind\n function bind(fn, thisArg) {\n return function () {\n fn.apply(thisArg, arguments);\n };\n }\n\n /**\n * @constructor\n * @param {Function} fn\n */\n function Promise(fn) {\n if (!(this instanceof Promise)) throw new TypeError('Promises must be constructed via new');\n if (typeof fn !== 'function') throw new TypeError('not a function');\n /** @type {!number} */\n this._state = 0;\n /** @type {!boolean} */\n this._handled = false;\n /** @type {Promise|undefined} */\n this._value = undefined;\n /** @type {!Array} */\n this._deferreds = [];\n doResolve(fn, this);\n }\n function handle(self, deferred) {\n while (self._state === 3) {\n self = self._value;\n }\n if (self._state === 0) {\n self._deferreds.push(deferred);\n return;\n }\n self._handled = true;\n Promise._immediateFn(function () {\n var cb = self._state === 1 ? deferred.onFulfilled : deferred.onRejected;\n if (cb === null) {\n (self._state === 1 ? resolve : reject)(deferred.promise, self._value);\n return;\n }\n var ret;\n try {\n ret = cb(self._value);\n } catch (e) {\n reject(deferred.promise, e);\n return;\n }\n resolve(deferred.promise, ret);\n });\n }\n function resolve(self, newValue) {\n try {\n // Promise Resolution Procedure: https://github.com/promises-aplus/promises-spec#the-promise-resolution-procedure\n if (newValue === self) throw new TypeError('A promise cannot be resolved with itself.');\n if (newValue && (typeof newValue === 'object' || typeof newValue === 'function')) {\n var then = newValue.then;\n if (newValue instanceof Promise) {\n self._state = 3;\n self._value = newValue;\n finale(self);\n return;\n } else if (typeof then === 'function') {\n doResolve(bind(then, newValue), self);\n return;\n }\n }\n self._state = 1;\n self._value = newValue;\n finale(self);\n } catch (e) {\n reject(self, e);\n }\n }\n function reject(self, newValue) {\n self._state = 2;\n self._value = newValue;\n finale(self);\n }\n function finale(self) {\n if (self._state === 2 && self._deferreds.length === 0) {\n Promise._immediateFn(function () {\n if (!self._handled) {\n Promise._unhandledRejectionFn(self._value);\n }\n });\n }\n for (var i = 0, len = self._deferreds.length; i < len; i++) {\n handle(self, self._deferreds[i]);\n }\n self._deferreds = null;\n }\n\n /**\n * @constructor\n */\n function Handler(onFulfilled, onRejected, promise) {\n this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null;\n this.onRejected = typeof onRejected === 'function' ? onRejected : null;\n this.promise = promise;\n }\n\n /**\n * Take a potentially misbehaving resolver function and make sure\n * onFulfilled and onRejected are only called once.\n *\n * Makes no guarantees about asynchrony.\n */\n function doResolve(fn, self) {\n var done = false;\n try {\n fn(function (value) {\n if (done) return;\n done = true;\n resolve(self, value);\n }, function (reason) {\n if (done) return;\n done = true;\n reject(self, reason);\n });\n } catch (ex) {\n if (done) return;\n done = true;\n reject(self, ex);\n }\n }\n Promise.prototype['catch'] = function (onRejected) {\n return this.then(null, onRejected);\n };\n Promise.prototype.then = function (onFulfilled, onRejected) {\n // @ts-ignore\n var prom = new this.constructor(noop);\n handle(this, new Handler(onFulfilled, onRejected, prom));\n return prom;\n };\n Promise.prototype['finally'] = finallyConstructor;\n Promise.all = function (arr) {\n return new Promise(function (resolve, reject) {\n if (!isArray(arr)) {\n return reject(new TypeError('Promise.all accepts an array'));\n }\n var args = Array.prototype.slice.call(arr);\n if (args.length === 0) return resolve([]);\n var remaining = args.length;\n function res(i, val) {\n try {\n if (val && (typeof val === 'object' || typeof val === 'function')) {\n var then = val.then;\n if (typeof then === 'function') {\n then.call(val, function (val) {\n res(i, val);\n }, reject);\n return;\n }\n }\n args[i] = val;\n if (--remaining === 0) {\n resolve(args);\n }\n } catch (ex) {\n reject(ex);\n }\n }\n for (var i = 0; i < args.length; i++) {\n res(i, args[i]);\n }\n });\n };\n Promise.allSettled = allSettled;\n Promise.resolve = function (value) {\n if (value && typeof value === 'object' && value.constructor === Promise) {\n return value;\n }\n return new Promise(function (resolve) {\n resolve(value);\n });\n };\n Promise.reject = function (value) {\n return new Promise(function (resolve, reject) {\n reject(value);\n });\n };\n Promise.race = function (arr) {\n return new Promise(function (resolve, reject) {\n if (!isArray(arr)) {\n return reject(new TypeError('Promise.race accepts an array'));\n }\n for (var i = 0, len = arr.length; i < len; i++) {\n Promise.resolve(arr[i]).then(resolve, reject);\n }\n });\n };\n\n // Use polyfill for setImmediate for performance gains\n Promise._immediateFn =\n // @ts-ignore\n typeof setImmediate === 'function' && function (fn) {\n // @ts-ignore\n setImmediate(fn);\n } || function (fn) {\n setTimeoutFunc(fn, 0);\n };\n Promise._unhandledRejectionFn = function _unhandledRejectionFn(err) {\n if (typeof console !== 'undefined' && console) {\n console.warn('Possible Unhandled Promise Rejection:', err); // eslint-disable-line no-console\n }\n };\n\n module.exports = Promise;\n }).call(this);\n }).call(this, require(\"timers\").setImmediate);\n }, {\n \"timers\": 201\n }],\n 198: [function (require, module, exports) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.isIos = exports.isIE9 = exports.isSamsungBrowser = exports.isAndroidChrome = exports.isKitKatWebview = void 0;\n // server side rendering check\n var UA = typeof window !== \"undefined\" && window.navigator && window.navigator.userAgent;\n // TODO remove this when browser detection is converted to typescript\n /* eslint-disable @typescript-eslint/ban-ts-comment */\n // @ts-ignore\n var isAndroid = require(\"@braintree/browser-detection/is-android\");\n // @ts-ignore\n var isChromeOs = require(\"@braintree/browser-detection/is-chrome-os\");\n // @ts-ignore\n var isChrome = require(\"@braintree/browser-detection/is-chrome\");\n // @ts-ignore\n var isIos = require(\"@braintree/browser-detection/is-ios\");\n exports.isIos = isIos;\n // @ts-ignore\n var isIE9 = require(\"@braintree/browser-detection/is-ie9\");\n exports.isIE9 = isIE9;\n /* eslint-enable @typescript-eslint/ban-ts-comment */\n // Old Android Webviews used specific versions of Chrome with 0.0.0 as their version suffix\n // https://developer.chrome.com/multidevice/user-agent#webview_user_agent\n var KITKAT_WEBVIEW_REGEX = /Version\\/\\d\\.\\d* Chrome\\/\\d*\\.0\\.0\\.0/;\n function isOldSamsungBrowserOrSamsungWebview(ua) {\n return !isChrome(ua) && ua.indexOf(\"Samsung\") > -1;\n }\n function isKitKatWebview(ua) {\n if (ua === void 0) {\n ua = UA;\n }\n return isAndroid(ua) && KITKAT_WEBVIEW_REGEX.test(ua);\n }\n exports.isKitKatWebview = isKitKatWebview;\n function isAndroidChrome(ua) {\n if (ua === void 0) {\n ua = UA;\n }\n return (isAndroid(ua) || isChromeOs(ua)) && isChrome(ua);\n }\n exports.isAndroidChrome = isAndroidChrome;\n function isSamsungBrowser(ua) {\n if (ua === void 0) {\n ua = UA;\n }\n return /SamsungBrowser/.test(ua) || isOldSamsungBrowserOrSamsungWebview(ua);\n }\n exports.isSamsungBrowser = isSamsungBrowser;\n }, {\n \"@braintree/browser-detection/is-android\": 17,\n \"@braintree/browser-detection/is-chrome\": 19,\n \"@braintree/browser-detection/is-chrome-os\": 18,\n \"@braintree/browser-detection/is-ie9\": 21,\n \"@braintree/browser-detection/is-ios\": 22\n }],\n 199: [function (require, module, exports) {\n \"use strict\";\n\n var device_1 = require(\"./lib/device\");\n module.exports = function supportsInputFormatting() {\n // Digits get dropped in samsung browser\n return !(0, device_1.isSamsungBrowser)();\n };\n }, {\n \"./lib/device\": 198\n }],\n 200: [function (require, module, exports) {\n module.exports = require(\"./dist/supports-input-formatting\");\n }, {\n \"./dist/supports-input-formatting\": 199\n }],\n 201: [function (require, module, exports) {\n (function (setImmediate, clearImmediate) {\n (function () {\n var nextTick = require('process/browser.js').nextTick;\n var apply = Function.prototype.apply;\n var slice = Array.prototype.slice;\n var immediateIds = {};\n var nextImmediateId = 0;\n\n // DOM APIs, for completeness\n\n exports.setTimeout = function () {\n return new Timeout(apply.call(setTimeout, window, arguments), clearTimeout);\n };\n exports.setInterval = function () {\n return new Timeout(apply.call(setInterval, window, arguments), clearInterval);\n };\n exports.clearTimeout = exports.clearInterval = function (timeout) {\n timeout.close();\n };\n function Timeout(id, clearFn) {\n this._id = id;\n this._clearFn = clearFn;\n }\n Timeout.prototype.unref = Timeout.prototype.ref = function () {};\n Timeout.prototype.close = function () {\n this._clearFn.call(window, this._id);\n };\n\n // Does not start the time, just sets up the members needed.\n exports.enroll = function (item, msecs) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = msecs;\n };\n exports.unenroll = function (item) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = -1;\n };\n exports._unrefActive = exports.active = function (item) {\n clearTimeout(item._idleTimeoutId);\n var msecs = item._idleTimeout;\n if (msecs >= 0) {\n item._idleTimeoutId = setTimeout(function onTimeout() {\n if (item._onTimeout) item._onTimeout();\n }, msecs);\n }\n };\n\n // That's not how node.js implements it but the exposed api is the same.\n exports.setImmediate = typeof setImmediate === \"function\" ? setImmediate : function (fn) {\n var id = nextImmediateId++;\n var args = arguments.length < 2 ? false : slice.call(arguments, 1);\n immediateIds[id] = true;\n nextTick(function onNextTick() {\n if (immediateIds[id]) {\n // fn.call() is faster so we optimize for the common use-case\n // @see http://jsperf.com/call-apply-segu\n if (args) {\n fn.apply(null, args);\n } else {\n fn.call(null);\n }\n // Prevent ids from leaking\n exports.clearImmediate(id);\n }\n });\n return id;\n };\n exports.clearImmediate = typeof clearImmediate === \"function\" ? clearImmediate : function (id) {\n delete immediateIds[id];\n };\n }).call(this);\n }).call(this, require(\"timers\").setImmediate, require(\"timers\").clearImmediate);\n }, {\n \"process/browser.js\": 196,\n \"timers\": 201\n }],\n 202: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n paymentOptionIDs: {\n card: 'card',\n paypal: 'paypal',\n paypalCredit: 'paypalCredit',\n applePay: 'applePay',\n venmo: 'venmo',\n googlePay: 'googlePay'\n },\n paymentMethodTypes: {\n card: 'CreditCard',\n paypal: 'PayPalAccount',\n paypalCredit: 'PayPalAccount',\n applePay: 'ApplePayCard',\n venmo: 'VenmoAccount',\n googlePay: 'AndroidPayCard'\n },\n analyticsKinds: {\n CreditCard: 'card',\n PayPalAccount: 'paypal',\n ApplePayCard: 'applepay',\n VenmoAccount: 'venmo',\n AndroidPayCard: 'googlepay'\n },\n paymentMethodCardTypes: {\n Visa: 'visa',\n MasterCard: 'master-card',\n 'American Express': 'american-express',\n 'Diners Club': 'diners-club',\n Discover: 'discover',\n JCB: 'jcb',\n UnionPay: 'unionpay',\n Maestro: 'maestro',\n Elo: 'elo',\n Hiper: 'hiper',\n Hipercard: 'hipercard'\n },\n cardTypeIcons: {\n visa: 'visa',\n mastercard: 'master-card',\n 'american-express': 'american-express',\n 'diners-club': 'diners-club',\n discover: 'discover',\n jcb: 'jcb',\n 'union-pay': 'unionpay',\n maestro: 'maestro',\n elo: 'elo',\n hiper: 'hiper',\n hipercard: 'hipercard'\n },\n configurationCardTypes: {\n visa: 'Visa',\n 'master-card': 'MasterCard',\n 'american-express': 'American Express',\n 'diners-club': 'Discover',\n discover: 'Discover',\n jcb: 'JCB',\n unionpay: 'UnionPay',\n maestro: 'Maestro',\n elo: 'Elo',\n hiper: 'Hiper',\n hipercard: 'Hipercard'\n },\n dependencySetupStates: {\n DONE: 'done',\n FAILED: 'failed',\n INITIALIZING: 'initializing',\n NOT_ENABLED: 'not-enabled'\n },\n errors: {\n NO_PAYMENT_METHOD_ERROR: 'No payment method is available.',\n DEVELOPER_MISCONFIGURATION_MESSAGE: 'Developer Error: Something went wrong. Check the console for details.'\n },\n ANALYTICS_REQUEST_TIMEOUT_MS: 2000,\n ANALYTICS_PREFIX: 'web.dropin.',\n CHANGE_ACTIVE_PAYMENT_METHOD_TIMEOUT: 200,\n CHECKOUT_JS_SOURCE: 'https://www.paypalobjects.com/api/checkout.min.js',\n GOOGLE_PAYMENT_SOURCE: 'https://pay.google.com/gp/p/js/pay.js',\n INTEGRATION: 'dropin2',\n PAYPAL_CHECKOUT_SCRIPT_ID: 'braintree-dropin-paypal-checkout-script',\n GOOGLE_PAYMENT_SCRIPT_ID: 'braintree-dropin-google-payment-script',\n DATA_COLLECTOR_SCRIPT_ID: 'braintree-dropin-data-collector-script',\n STYLESHEET_ID: 'braintree-dropin-stylesheet'\n };\n }, {}],\n 203: [function (require, module, exports) {\n 'use strict';\n\n var analytics = require('./lib/analytics');\n var DropinError = require('./lib/dropin-error');\n var EventEmitter = require('@braintree/event-emitter');\n var constants = require('./constants');\n var paymentMethodTypes = constants.paymentMethodTypes;\n var paymentOptionIDs = constants.paymentOptionIDs;\n var dependencySetupStates = constants.dependencySetupStates;\n var isGuestCheckout = require('./lib/is-guest-checkout');\n var paymentSheetViews = require('./views/payment-sheet-views');\n var vaultManager = require('braintree-web/vault-manager');\n var paymentOptionsViewID = require('./views/payment-options-view').ID;\n\n // these vaulted payment methods can only be used for existing subscription\n // any new transactions or subscriptons should prompt the customer to\n // authorize them again before using them and thus should always be hidden.\n var VAULTED_PAYMENT_METHOD_TYPES_THAT_SHOULD_ALWAYS_BE_HIDDEN = [paymentMethodTypes.applePay, paymentMethodTypes.googlePay, paymentMethodTypes.venmo];\n var DEFAULT_PAYMENT_OPTION_PRIORITY = [paymentOptionIDs.card, paymentOptionIDs.paypal, paymentOptionIDs.paypalCredit, paymentOptionIDs.venmo, paymentOptionIDs.applePay, paymentOptionIDs.googlePay];\n var NON_PAYMENT_OPTION_DEPENDENCIES = ['threeDSecure', 'dataCollector'];\n var ASYNC_DEPENDENCIES = DEFAULT_PAYMENT_OPTION_PRIORITY.concat(NON_PAYMENT_OPTION_DEPENDENCIES);\n var DEPENDENCY_READY_CHECK_INTERVAL = 200;\n function DropinModel(options) {\n this.rootNode = options.container;\n this.componentID = options.componentID;\n this.merchantConfiguration = options.merchantConfiguration;\n this.isGuestCheckout = isGuestCheckout(options.client);\n this.dependencyStates = ASYNC_DEPENDENCIES.reduce(function (total, dependencyKey) {\n if (this._shouldIncludeDependency(dependencyKey)) {\n total[dependencyKey] = dependencySetupStates.INITIALIZING;\n }\n return total;\n }.bind(this), {});\n this.hiddenVaultedPaymentMethodTypes = constructHiddenPaymentMethodTypes(options.merchantConfiguration.hiddenVaultedPaymentMethodTypes);\n this.failedDependencies = {};\n this._options = options;\n this._setupComplete = false;\n while (this.rootNode.parentNode) {\n this.rootNode = this.rootNode.parentNode;\n }\n this.isInShadowDom = this.rootNode.toString() === '[object ShadowRoot]';\n EventEmitter.call(this);\n }\n EventEmitter.createChild(DropinModel);\n DropinModel.prototype.initialize = function () {\n var dep;\n var self = this;\n var dependencyReadyInterval = setInterval(function () {\n for (dep in self.dependencyStates) {\n if (self.dependencyStates[dep] === dependencySetupStates.INITIALIZING) {\n return;\n }\n }\n clearInterval(dependencyReadyInterval);\n self._emit('asyncDependenciesReady');\n }, DEPENDENCY_READY_CHECK_INTERVAL);\n return vaultManager.create({\n client: self._options.client\n }).then(function (vaultManagerInstance) {\n self._vaultManager = vaultManagerInstance;\n return self._getSupportedPaymentOptions(self._options);\n }).then(function (paymentOptions) {\n self.supportedPaymentOptions = paymentOptions;\n return self.getVaultedPaymentMethods();\n }).then(function (paymentMethods) {\n self._paymentMethods = paymentMethods;\n self._paymentMethodIsRequestable = self._paymentMethods.length > 0;\n });\n };\n DropinModel.prototype.confirmDropinReady = function () {\n this._setupComplete = true;\n };\n DropinModel.prototype.isPaymentMethodRequestable = function () {\n return Boolean(this._paymentMethodIsRequestable);\n };\n DropinModel.prototype.addPaymentMethod = function (paymentMethod) {\n this._paymentMethods.push(paymentMethod);\n this._emit('addPaymentMethod', paymentMethod);\n this.changeActivePaymentMethod(paymentMethod);\n };\n DropinModel.prototype.removePaymentMethod = function (paymentMethod) {\n var paymentMethodLocation = this._paymentMethods.indexOf(paymentMethod);\n if (paymentMethodLocation === -1) {\n return;\n }\n this._paymentMethods.splice(paymentMethodLocation, 1);\n this._emit('removePaymentMethod', paymentMethod);\n };\n DropinModel.prototype.refreshPaymentMethods = function () {\n var self = this;\n return self.getVaultedPaymentMethods().then(function (paymentMethods) {\n self._paymentMethods = paymentMethods;\n self._emit('refreshPaymentMethods');\n });\n };\n DropinModel.prototype.changeActivePaymentMethod = function (paymentMethod) {\n this._activePaymentMethod = paymentMethod;\n this._emit('changeActivePaymentMethod', paymentMethod);\n };\n DropinModel.prototype.changeActiveView = function (paymentViewID) {\n var previousViewId = this._activePaymentViewId;\n this._activePaymentViewId = paymentViewID;\n this._emit('changeActiveView', {\n previousViewId: previousViewId,\n newViewId: paymentViewID\n });\n };\n DropinModel.prototype.removeActivePaymentMethod = function () {\n this._activePaymentMethod = null;\n this._emit('removeActivePaymentMethod');\n this.setPaymentMethodRequestable({\n isRequestable: false\n });\n };\n DropinModel.prototype.selectPaymentOption = function (paymentViewID) {\n this._emit('paymentOptionSelected', {\n paymentOption: paymentViewID\n });\n };\n DropinModel.prototype.enableEditMode = function () {\n analytics.sendEvent(this._options.client, 'manager.appeared');\n this._isInEditMode = true;\n this._emit('enableEditMode');\n };\n DropinModel.prototype.disableEditMode = function () {\n this._isInEditMode = false;\n this._emit('disableEditMode');\n };\n DropinModel.prototype.isInEditMode = function () {\n return Boolean(this._isInEditMode);\n };\n DropinModel.prototype.confirmPaymentMethodDeletion = function (paymentMethod) {\n this._paymentMethodWaitingToBeDeleted = paymentMethod;\n this._emit('confirmPaymentMethodDeletion', paymentMethod);\n };\n DropinModel.prototype._shouldIncludeDependency = function (key) {\n if (key === 'card') {\n // card is turned on by default unless the merchant explicitly\n // passes a value of `false` or omits it from a custom\n // `paymentOptionPriority` array\n if (this.merchantConfiguration.card === false) {\n return false;\n }\n } else if (!this.merchantConfiguration[key]) {\n // if the merchant does not have the non-card dependency\n // configured, do not include the dependency\n return false;\n }\n if (NON_PAYMENT_OPTION_DEPENDENCIES.indexOf(key) > -1) {\n // if the dependency is not a payment option (3DS, data collector)\n // include it since the merchant configured Drop-in for it\n\n return true;\n }\n if (this.merchantConfiguration.paymentOptionPriority) {\n // if the merchant passed a custom `paymentOptionPriority` array,\n // only include the dependency if it was configured _and_\n // included in the array\n return this.merchantConfiguration.paymentOptionPriority.indexOf(key) > -1;\n }\n\n // otherwise, include it if it is a valid payment option\n return DEFAULT_PAYMENT_OPTION_PRIORITY.indexOf(key) > -1;\n };\n DropinModel.prototype._shouldEmitRequestableEvent = function (options) {\n var requestableStateHasNotChanged = this.isPaymentMethodRequestable() === options.isRequestable;\n var nonce = options.selectedPaymentMethod && options.selectedPaymentMethod.nonce;\n var nonceHasNotChanged = nonce === this._paymentMethodRequestableNonce;\n if (!this._setupComplete) {\n // don't emit event until after Drop-in is fully set up\n // fixes issues with lazy loading of imports where event\n // should not be emitted\n // https://github.com/braintree/braintree-web-drop-in/issues/511\n return false;\n }\n if (requestableStateHasNotChanged && (!options.isRequestable || nonceHasNotChanged)) {\n return false;\n }\n return true;\n };\n DropinModel.prototype.setPaymentMethodRequestable = function (options) {\n var shouldEmitEvent = this._shouldEmitRequestableEvent(options);\n var paymentMethodRequestableResponse = {\n paymentMethodIsSelected: Boolean(options.selectedPaymentMethod),\n type: options.type\n };\n this._paymentMethodIsRequestable = options.isRequestable;\n if (options.isRequestable) {\n this._paymentMethodRequestableNonce = options.selectedPaymentMethod && options.selectedPaymentMethod.nonce;\n } else {\n delete this._paymentMethodRequestableNonce;\n }\n if (!shouldEmitEvent) {\n return;\n }\n if (options.isRequestable) {\n this._emit('paymentMethodRequestable', paymentMethodRequestableResponse);\n } else {\n this._emit('noPaymentMethodRequestable');\n }\n };\n DropinModel.prototype.getPaymentMethods = function () {\n // we want to return a copy of the Array\n // so we can loop through it in dropin.updateConfiguration\n // while calling model.removePaymentMethod\n // which updates the original array\n return this._paymentMethods.slice();\n };\n DropinModel.prototype.getActivePaymentMethod = function () {\n return this._activePaymentMethod;\n };\n DropinModel.prototype.hasPaymentMethods = function () {\n return this.getPaymentMethods().length > 0;\n };\n DropinModel.prototype.getInitialViewId = function () {\n if (this.supportedPaymentOptions.length > 1) {\n return paymentOptionsViewID;\n }\n return this.supportedPaymentOptions[0];\n };\n DropinModel.prototype.getActivePaymentViewId = function () {\n return this._activePaymentViewId;\n };\n DropinModel.prototype.reportAppSwitchPayload = function (payload) {\n this.appSwitchPayload = payload;\n };\n DropinModel.prototype.reportAppSwitchError = function (sheetId, error) {\n this.appSwitchError = {\n id: sheetId,\n error: error\n };\n };\n DropinModel.prototype.hasAtLeastOneAvailablePaymentOption = function () {\n var self = this;\n var i;\n for (i = 0; i < this.supportedPaymentOptions.length; i++) {\n if (self.dependencyStates[this.supportedPaymentOptions[i]] === dependencySetupStates.DONE) {\n return true;\n }\n }\n return false;\n };\n DropinModel.prototype.asyncDependencyReady = function (key) {\n this.dependencyStates[key] = dependencySetupStates.DONE;\n };\n DropinModel.prototype.asyncDependencyFailed = function (options) {\n if (this.failedDependencies.hasOwnProperty(options.view)) {\n return;\n }\n this.failedDependencies[options.view] = options.error;\n this.dependencyStates[options.view] = dependencySetupStates.FAILED;\n };\n DropinModel.prototype.cancelInitialization = function (error) {\n this._emit('cancelInitialization', error);\n };\n DropinModel.prototype.reportError = function (error) {\n this._emit('errorOccurred', error);\n };\n DropinModel.prototype.clearError = function () {\n this._emit('errorCleared');\n };\n DropinModel.prototype.preventUserAction = function () {\n this._emit('preventUserAction');\n };\n DropinModel.prototype.allowUserAction = function () {\n this._emit('allowUserAction');\n };\n DropinModel.prototype.deleteVaultedPaymentMethod = function () {\n var self = this;\n var promise = Promise.resolve();\n var error;\n this._emit('startVaultedPaymentMethodDeletion');\n if (!self.isGuestCheckout) {\n promise = this._vaultManager.deletePaymentMethod(this._paymentMethodWaitingToBeDeleted.nonce).catch(function (err) {\n error = err;\n });\n }\n return promise.then(function () {\n delete self._paymentMethodWaitingToBeDeleted;\n return self.refreshPaymentMethods();\n }).then(function () {\n self.disableEditMode();\n self._emit('finishVaultedPaymentMethodDeletion', error);\n });\n };\n DropinModel.prototype.cancelDeleteVaultedPaymentMethod = function () {\n this._emit('cancelVaultedPaymentMethodDeletion');\n delete this._paymentMethodWaitingToBeDeleted;\n };\n DropinModel.prototype.getVaultedPaymentMethods = function () {\n var self = this;\n if (self.isGuestCheckout) {\n return Promise.resolve([]);\n }\n return self._vaultManager.fetchPaymentMethods({\n defaultFirst: this.merchantConfiguration.showDefaultPaymentMethodFirst !== false\n }).then(function (paymentMethods) {\n return self._getSupportedPaymentMethods(paymentMethods).map(function (paymentMethod) {\n paymentMethod.vaulted = true;\n return paymentMethod;\n });\n }).catch(function () {\n return Promise.resolve([]);\n });\n };\n DropinModel.prototype._getSupportedPaymentMethods = function (paymentMethods) {\n var self = this;\n var supportedPaymentMethods = this.supportedPaymentOptions.reduce(function (array, key) {\n var paymentMethodType = paymentMethodTypes[key];\n if (canShowVaultedPaymentMethodType(paymentMethodType, self.hiddenVaultedPaymentMethodTypes)) {\n array.push(paymentMethodType);\n }\n return array;\n }, []);\n return paymentMethods.filter(function (paymentMethod) {\n return supportedPaymentMethods.indexOf(paymentMethod.type) > -1;\n });\n };\n DropinModel.prototype._getSupportedPaymentOptions = function (options) {\n var self = this;\n var paymentOptionPriority = options.merchantConfiguration.paymentOptionPriority || DEFAULT_PAYMENT_OPTION_PRIORITY;\n var promises;\n if (!(paymentOptionPriority instanceof Array)) {\n throw new DropinError('paymentOptionPriority must be an array.');\n }\n\n // Remove duplicates\n paymentOptionPriority = paymentOptionPriority.filter(function (item, pos) {\n return paymentOptionPriority.indexOf(item) === pos;\n });\n promises = paymentOptionPriority.map(function (paymentOption) {\n return getPaymentOption(paymentOption, options).then(function (result) {\n if (!result.success) {\n self.dependencyStates[result.id] = dependencySetupStates.NOT_ENABLED;\n }\n return result;\n });\n });\n return Promise.all(promises).then(function (result) {\n result = result.filter(function (item) {\n return item.success;\n });\n if (result.length === 0) {\n return Promise.reject(new DropinError('No valid payment options available.'));\n }\n return result.map(function (item) {\n return item.id;\n });\n });\n };\n function getPaymentOption(paymentOption, options) {\n return isPaymentOptionEnabled(paymentOption, options).then(function (success) {\n return {\n success: success,\n id: paymentOptionIDs[paymentOption]\n };\n });\n }\n function isPaymentOptionEnabled(paymentOption, options) {\n var SheetView = paymentSheetViews[paymentOptionIDs[paymentOption]];\n if (!SheetView) {\n return Promise.reject(new DropinError('paymentOptionPriority: Invalid payment option specified.'));\n }\n return SheetView.isEnabled({\n client: options.client,\n merchantConfiguration: options.merchantConfiguration\n }).catch(function (error) {\n console.error(SheetView.ID + ' view errored when checking if it was supported.'); // eslint-disable-line no-console\n console.error(error); // eslint-disable-line no-console\n\n return Promise.resolve(false);\n });\n }\n function canShowVaultedPaymentMethodType(paymentMethodType, hiddenVaultedPaymentMethodTypes) {\n return paymentMethodType && hiddenVaultedPaymentMethodTypes.indexOf(paymentMethodType) === -1;\n }\n function constructHiddenPaymentMethodTypes(paymentMethods) {\n var hiddenVaultedPaymentMethodTypes = [].concat(VAULTED_PAYMENT_METHOD_TYPES_THAT_SHOULD_ALWAYS_BE_HIDDEN);\n if (Array.isArray(paymentMethods)) {\n paymentMethods.forEach(function (paymentMethod) {\n var paymentMethodId = paymentMethodTypes[paymentMethod];\n if (!paymentMethodId) {\n // don't add it if it is an unknown payment method\n return;\n }\n if (hiddenVaultedPaymentMethodTypes.indexOf(paymentMethodId) > -1) {\n // don't add the same payment method type a second time\n return;\n }\n hiddenVaultedPaymentMethodTypes.push(paymentMethodId);\n });\n }\n return hiddenVaultedPaymentMethodTypes;\n }\n module.exports = DropinModel;\n }, {\n \"./constants\": 202,\n \"./lib/analytics\": 207,\n \"./lib/dropin-error\": 212,\n \"./lib/is-guest-checkout\": 214,\n \"./views/payment-options-view\": 264,\n \"./views/payment-sheet-views\": 269,\n \"@braintree/event-emitter\": 23,\n \"braintree-web/vault-manager\": 158\n }],\n 204: [function (require, module, exports) {\n 'use strict';\n\n var assign = require('./lib/assign').assign;\n var analytics = require('./lib/analytics');\n var constants = require('./constants');\n var DropinError = require('./lib/dropin-error');\n var DropinModel = require('./dropin-model');\n var EventEmitter = require('@braintree/event-emitter');\n var assets = require('@braintree/asset-loader');\n var MainView = require('./views/main-view');\n var paymentOptionIDs = constants.paymentOptionIDs;\n var translations = require('./translations').translations;\n var isUtf8 = require('./lib/is-utf-8');\n var uuid = require('@braintree/uuid');\n var sanitizeHtml = require('./lib/sanitize-html');\n var DataCollector = require('./lib/data-collector');\n var ThreeDSecure = require('./lib/three-d-secure');\n var wrapPrototype = require('@braintree/wrap-promise').wrapPrototype;\n var mainHTML = \"
\\n
 
\\n
{{edit}}
\\n
{{chooseAWayToPay}}
\\n
 
\\n\\n
\\n
\\n
\\n \\n \\n \\n
\\n
\\n\\n
\\n
\\n
\\n
{{deleteCancelButton}}
\\n
{{deleteConfirmationButton}}
\\n
\\n
\\n\\n
\\n
\\n
\\n\\n
\\n
\\n
\\n\\n
\\n
\\n
\\n
\\n
\\n \\n \\n \\n
\\n
{{PayPal}}
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n \\n \\n
\\n
{{PayPal Credit}}
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n \\n \\n
\\n
{{Apple Pay}}
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n \\n \\n
\\n
{{Google Pay}}
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n \\n \\n
\\n
{{Venmo}}
\\n
\\n
\\n
\\n \\n \\n \\n
\\n
\\n
\\n
\\n
\\n
\\n \\n \\n \\n
\\n
{{payWithCard}}
\\n
\\n
\\n
\\n
\\n
\\n \\n
\\n
\\n
\\n \\n
\\n
\\n\\n
\\n
\\n \\n
\\n
\\n\\n\\n
\\n \\n
\\n
\\n\\n
\\n \\n
\\n
\\n\\n \\n
\\n\\n
\\n \\n
\\n
\\n
\\n\\n
\\n
\\n \\n \\n \\n
\\n
\\n
\\n
\\n
\\n\\n
\\n
{{otherWaysToPay}}
\\n
\\n\\n
\\n {{chooseAnotherWayToPay}}\\n
\\n
\\n
\\n\";\n var svgHTML = \"\\n \\n \\n Visa\\n \\n \\n\\n \\n MasterCard\\n \\n \\n \\n \\n \\n \\n\\n \\n Union Pay\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n American Express\\n \\n \\n \\n \\n\\n \\n JCB\\n \\n \\n \\n \\n \\n\\n \\n Discover\\n \\n \\n \\n \\n \\n\\n \\n Diners Club\\n \\n \\n \\n \\n \\n\\n \\n Maestro\\n \\n \\n \\n \\n \\n \\n\\n \\n Elo\\n \\n \\n \\n \\n \\n \\n \\n\\n \\n Hiper\\n \\n \\n \\n \\n \\n \\n \\n\\n \\n Hipercard\\n \\n \\n \\n \\n \\n \\n \\n\\n \\n PayPal Logo\\n \\n \\n \\n \\n \\n \\n\\n \\n PayPal Credit Logo\\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n Generic Card\\n \\n \\n \\n \\n \\n \\n \\n\\n \\n CVV Back\\n \\n \\n \\n \\n \\n \\n \\n\\n \\n CVV Front\\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n Check\\n \\n \\n\\n \\n X\\n \\n \\n\\n \\n Lock Loader\\n \\n \\n\\n \\n \\n \\n \\n\\n \\n Apple Pay Logo\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n Google Pay Mark\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n Venmo\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n \\n \\n \\n\\n\";\n var PASS_THROUGH_EVENTS = ['changeActiveView', 'paymentMethodRequestable', 'noPaymentMethodRequestable', 'paymentOptionSelected',\n // Card View Events\n 'card:binAvailable', 'card:blur', 'card:cardTypeChange', 'card:empty', 'card:focus', 'card:inputSubmitRequest', 'card:notEmpty', 'card:validityChange',\n // 3DS Events\n '3ds:customer-canceled', '3ds:authentication-modal-render', '3ds:authentication-modal-close'];\n var UPDATABLE_CONFIGURATION_OPTIONS = [paymentOptionIDs.paypal, paymentOptionIDs.paypalCredit, paymentOptionIDs.applePay, paymentOptionIDs.googlePay, 'threeDSecure'];\n var UPDATABLE_CONFIGURATION_OPTIONS_THAT_REQUIRE_UNVAULTED_PAYMENT_METHODS_TO_BE_REMOVED = [paymentOptionIDs.paypal, paymentOptionIDs.paypalCredit, paymentOptionIDs.applePay, paymentOptionIDs.googlePay];\n var HAS_RAW_PAYMENT_DATA = {};\n var VERSION = '1.40.2';\n HAS_RAW_PAYMENT_DATA[constants.paymentMethodTypes.googlePay] = true;\n HAS_RAW_PAYMENT_DATA[constants.paymentMethodTypes.applePay] = true;\n\n /**\n * @typedef {object} Dropin~cardPaymentMethodPayload\n * @property {string} nonce The payment method nonce, used by your server to charge the card.\n * @property {object} details Additional account details. See a full list of details in the [Hosted Fields client reference](http://braintree.github.io/braintree-web/3.97.1/HostedFields.html#~tokenizePayload).\n * @property {string} description A human-readable description.\n * @property {string} type The payment method type, always `CreditCard` when the method requested is a card.\n * @property {object} binData Information about the card based on the bin. Documented {@link Dropin~binData|here}.\n * @property {?boolean} vaulted If present and true, indicates that the payment method refers to a vaulted payment method.\n * @property {?string} deviceData If data collector is configured, the device data property to be used when making a transaction.\n * @property {?boolean} liabilityShifted If 3D Secure is configured, whether or not liability did shift.\n * @property {?boolean} liabilityShiftPossible If 3D Secure is configured, whether or not liability shift is possible.\n * @property {?object} threeDSecureInfo If 3D Secure is configured, the `threeDSecureInfo` documented in the [Three D Secure client reference](http://braintree.github.io/braintree-web/3.97.1/ThreeDSecure.html#~verifyPayload)\n */\n\n /**\n * @typedef {object} Dropin~paypalPaymentMethodPayload\n * @property {string} nonce The payment method nonce, used by your server to charge the PayPal account.\n * @property {?boolean} vaulted If present and true, indicates that the payment method refers to a vaulted payment method.\n * @property {object} details Additional PayPal account details. See a full list of details in the [PayPal client reference](http://braintree.github.io/braintree-web/3.97.1/PayPalCheckout.html#~tokenizePayload).\n * @property {string} type The payment method type, always `PayPalAccount` when the method requested is a PayPal account.\n * @property {?string} deviceData If data collector is configured, the device data property to be used when making a transaction.\n */\n\n /**\n * @typedef {object} Dropin~applePayPaymentMethodPayload\n * @property {string} nonce The payment method nonce, used by your server to charge the Apple Pay provided card.\n * @property {?boolean} vaulted If present and true, indicates that the payment method refers to a vaulted payment method.\n * @property {string} details.cardType Type of card, ex: Visa, Mastercard.\n * @property {string} details.cardHolderName The name of the card holder.\n * @property {string} details.dpanLastTwo Last two digits of card number.\n * @property {external:ApplePayPayment} details.rawPaymentData The raw response back from the Apple Pay flow, which includes billing/shipping address, phone and email if passed in as required parameters.\n * @property {string} description A human-readable description.\n * @property {string} type The payment method type, always `ApplePayCard` when the method requested is an Apple Pay provided card.\n * @property {object} binData Information about the card based on the bin. Documented {@link Dropin~binData|here}.\n * @property {?string} deviceData If data collector is configured, the device data property to be used when making a transaction.\n */\n\n /**\n * @typedef {object} ApplePayPayment An [Apple Pay Payment object](https://developer.apple.com/documentation/apple_pay_on_the_web/applepaypayment).\n * @external ApplePayPayment\n * @see {@link https://developer.apple.com/documentation/apple_pay_on_the_web/applepaypayment ApplePayPayment}\n */\n\n /**\n * @typedef {object} Dropin~venmoPaymentMethodPayload\n * @property {string} nonce The payment method nonce, used by your server to charge the Venmo account.\n * @property {?boolean} vaulted If present and true, indicates that the payment method refers to a vaulted payment method.\n * @property {string} details.username The Venmo username.\n * @property {string} type The payment method type, always `VenmoAccount` when the method requested is a Venmo account.\n * @property {?string} deviceData If data collector is configured, the device data property to be used when making a transaction.\n */\n\n /**\n * @typedef {object} Dropin~googlePayPaymentMethodPayload\n * @property {string} nonce The payment method nonce, used by your server to charge the Google Pay card.\n * @property {?boolean} vaulted If present and true, indicates that the payment method refers to a vaulted payment method.\n * @property {string} details.cardType Type of card, ex: Visa, Mastercard.\n * @property {string} details.lastFour The last 4 digits of the card.\n * @property {string} details.lastTwo The last 2 digits of the card.\n * @property {boolean} details.isNetworkTokenized True if the card is network tokenized. A network tokenized card is a generated virtual card with a device-specific account number (DPAN) that is used in place of the underlying source card.\n * @property {string} details.bin First six digits of card number.\n * @property {external:GooglePayPaymentData} details.rawPaymentData The raw response back from the Google Pay flow, which includes shipping address, phone and email if passed in as required parameters.\n * @property {string} type The payment method type, always `AndroidPayCard` when the method requested is a Google Pay Card.\n * @property {object} binData Information about the card based on the bin. Documented {@link Dropin~binData|here}.\n * @property {?string} deviceData If data collector is configured, the device data property to be used when making a transaction.\n */\n\n /**\n * @typedef {object} GooglePayPaymentData A [Google Pay Payment Data object](https://developers.google.com/pay/api/web/object-reference#PaymentData).\n * @external GooglePayPaymentData\n * @see {@link https://developers.google.com/pay/api/web/object-reference#PaymentData PaymentData}\n */\n\n /**\n * @typedef {object} Dropin~binData Information about the card based on the bin.\n * @property {string} commercial Possible values: 'Yes', 'No', 'Unknown'.\n * @property {string} countryOfIssuance The country of issuance.\n * @property {string} debit Possible values: 'Yes', 'No', 'Unknown'.\n * @property {string} durbinRegulated Possible values: 'Yes', 'No', 'Unknown'.\n * @property {string} healthcare Possible values: 'Yes', 'No', 'Unknown'.\n * @property {string} issuingBank The issuing bank.\n * @property {string} payroll Possible values: 'Yes', 'No', 'Unknown'.\n * @property {string} prepaid Possible values: 'Yes', 'No', 'Unknown'.\n * @property {string} productId The product id.\n */\n\n /**\n * @name Dropin#on\n * @function\n * @param {string} event The name of the event to which you are subscribing.\n * @param {function} handler A callback to handle the event.\n * @description Subscribes a handler function to a named event. `event` should be one of the following:\n *\n * * [`changeActiveView`](#event:changeActiveView)\n * * [`paymentMethodRequestable`](#event:paymentMethodRequestable)\n * * [`noPaymentMethodRequestable`](#event:noPaymentMethodRequestable)\n * * [`paymentOptionSelected`](#event:paymentOptionSelected)\n *\n * _Card View Specific Events_\n * * [`card:binAvailable`](#event:card:binAvailable)\n * * [`card:blur`](#event:card:blur)\n * * [`card:cardTypeChange`](#event:card:cardTypeChange)\n * * [`card:empty`](#event:card:empty)\n * * [`card:focus`](#event:card:focus)\n * * [`card:inputSubmitRequest`](#event:card:inputSubmitRequest)\n * * [`card:notEmpty`](#event:card:notEmpty)\n * * [`card:validityChange`](#event:card:validityChange)\n *\n * _3DS Specific Events_\n * * [`3ds:customer-canceled`](#event:3ds:customer-canceled)\n * * [`3ds:authentication-modal-render`](#event:3ds:authentication-modal-render)\n * * [`3ds:authentication-modal-close`](#event:3ds:authentication-modal-close)\n * @returns {void}\n * @example\n * Dynamically enable or disable your submit button based on whether or not the payment method is requestable\n * var submitButton = document.querySelector('#submit-button');\n *\n * braintree.dropin.create({\n * authorization: 'CLIENT_AUTHORIZATION',\n * container: '#dropin-container'\n * }, function (err, dropinInstance) {\n * submitButton.addEventListener('click', function () {\n * dropinInstance.requestPaymentMethod(function (err, payload) {\n * // Send payload.nonce to your server.\n * });\n * });\n *\n * if (dropinInstance.isPaymentMethodRequestable()) {\n * // This will be true if you generated the client token\n * // with a customer ID and there is a saved payment method\n * // available to tokenize with that customer.\n * submitButton.removeAttribute('disabled');\n * }\n *\n * dropinInstance.on('paymentMethodRequestable', function (event) {\n * console.log(event.type); // The type of Payment Method, e.g 'CreditCard', 'PayPalAccount'.\n * console.log(event.paymentMethodIsSelected); // true if a customer has selected a payment method when paymentMethodRequestable fires\n *\n * submitButton.removeAttribute('disabled');\n * });\n *\n * dropinInstance.on('noPaymentMethodRequestable', function () {\n * submitButton.setAttribute('disabled', true);\n * });\n * });\n *\n * @example\n * Automatically submit nonce to server as soon as it becomes available\n * var submitButton = document.querySelector('#submit-button');\n *\n * braintree.dropin.create({\n * authorization: 'CLIENT_AUTHORIZATION',\n * container: '#dropin-container'\n * }, function (err, dropinInstance) {\n * function sendNonceToServer() {\n * dropinInstance.requestPaymentMethod(function (err, payload) {\n * if (err) {\n * // handle errors\n * }\n *\n * // send payload.nonce to your server\n * });\n * }\n *\n * // allows us to still request the payment method manually, such as\n * // when filling out a credit card form\n * submitButton.addEventListener('click', sendNonceToServer);\n *\n * dropinInstance.on('paymentMethodRequestable', function (event) {\n * // if the nonce is already available (via PayPal authentication\n * // or by using a stored payment method), we can request the\n * // nonce right away. Otherwise, we wait for the customer to\n * // request the nonce by pressing the submit button once they\n * // are finished entering their credit card details. This is\n * // particularly important if your credit card form includes a\n * // postal code input. The `paymentMethodRequestable` event\n * // could fire before the customer has finished entering their\n * // postal code. (International postal codes can be as few as 3\n * // characters in length)\n * if (event.paymentMethodIsSelected) {\n * sendNonceToServer();\n * }\n * });\n * });\n * @example\n * Listen for when the customer navigates to different views in Drop-in\n * braintree.dropin.create({\n * authorization: 'CLIENT_AUTHORIZATION',\n * container: '#dropin-container'\n * }, function (err, dropinInstance) {\n * dropinInstance.on('changeActiveView', function (event) {\n * // fires when the view changes, such as going from the\n * // credit card view to the saved payment methods view\n * event.oldActivePaymentViewId; // card\n * event.newActivePaymentViewId; // methods\n * });\n * });\n * @example\n * Listen on various events from the card view\n * braintree.dropin.create({\n * authorization: 'CLIENT_AUTHORIZATION',\n * container: '#dropin-container'\n * }, function (err, dropinInstance) {\n * dropinInstance.on('card:focus', function (event) {\n * // a card field was focussed\n * });\n * dropinInstance.on('card:blur', function (event) {\n * // a card field was blurred\n * });\n * dropinInstance.on('card:validityChange', function (event) {\n * // the card form went from invalid to valid or valid to invalid\n * });\n * });\n */\n\n /**\n * @name Dropin#off\n * @function\n * @param {string} event The name of the event to which you are unsubscribing.\n * @param {function} handler A callback to unsubscribe from the event.\n * @description Unsubscribes a handler function to a named event.\n * @returns {void}\n * @example\n * Subscribe and then unsubscribe from event\n * var callback = function (event) {\n * // do something\n * };\n * dropinInstance.on('paymentMethodRequestable', callback);\n *\n * // later on\n * dropinInstance.off('paymentMethodRequestable', callback);\n */\n\n /**\n * This event is emitted when the payment method available in Drop-in changes. This includes when the state of Drop-in transitions from having no payment method available to having a payment method available and when the kind of payment method available changes. This event is not fired if there is no payment method available on initialization. To check if there is a payment method requestable on initialization, use {@link Dropin#isPaymentMethodRequestable|`isPaymentMethodRequestable`}.\n * @event Dropin#paymentMethodRequestable\n * @type {Dropin~paymentMethodRequestablePayload}\n */\n\n /**\n * @typedef {object} Dropin~paymentMethodRequestablePayload\n * @description The event payload sent from {@link Dropin#on|`on`} with the {@link Dropin#event:paymentMethodRequestable|`paymentMethodRequestable`} event.\n * @property {string} type The type of payment method that is requestable. Either `CreditCard` or `PayPalAccount`.\n * @property {boolean} paymentMethodIsSelected A property to determine if a payment method is currently selected when the payment method becomes requestable.\n *\n * This will be `true` any time a payment method is visibly selected in the Drop-in UI, such as when PayPal authentication completes or a stored payment method is selected.\n *\n * This will be `false` when {@link Dropin#requestPaymentMethod|`requestPaymentMethod`} can be called, but a payment method is not currently selected. For instance, when a card form has been filled in with valid values, but has not been submitted to be converted into a payment method nonce.\n */\n\n /**\n * This event is emitted when there is no payment method available in Drop-in. This event is not fired if there is no payment method available on initialization. To check if there is a payment method requestable on initialization, use {@link Dropin#isPaymentMethodRequestable|`isPaymentMethodRequestable`}. No payload is available in the callback for this event.\n * @event Dropin#noPaymentMethodRequestable\n */\n\n /**\n * This event is emitted when the customer selects a new payment option type (e.g. PayPal, PayPal Credit, credit card). This event is not emitted when the user changes between existing saved payment methods. Only relevant when accepting multiple payment options.\n * @event Dropin#paymentOptionSelected\n * @type {Dropin~paymentOptionSelectedPayload}\n */\n\n /**\n * This event is emitted when the Drop-in view changes what is presented as the active view.\n * @event Dropin#changeActiveView\n * @type {Dropin~changeActiveView}\n */\n\n /**\n * @typedef {object} Dropin~changeActiveView\n * @description The event payload sent from {@link Dropin#on|`on`} with the {@link Dropin#event:changeActiveView|`changeActiveView`} event.\n * @property {string} previousViewId The id for the previously active view. Possible values are:\n * * `card` - The credit card form view\n * * `paypal` - The PayPal view\n * * `payapCredit` - The PayPal Credit view\n * * `venmo` - The Venmo View\n * * `googlePay` - The Google Pay view\n * * `applePay` - The Apple Pay view\n * * `methods` - The view presenting the available payment methods (already vaulted or tokenized payment methods)\n * * `options` - The view presenting the available payment options (where the customer chooses what payment method option to use). Note, if both the methods view and the options view are presented at the same time, `methods` will be shown as the view id.\n * * `delete-confirmation` - The view where the customer confirms they would like to delete their saved payment method.\n * @property {string} newViewId The id for the new active view. The possible values are the same as `previousViewId`.\n */\n\n /**\n * The underlying [hosted fields `binAvailable` event](http://braintree.github.io/braintree-web/3.97.1/HostedFields.html#event:binAvailable).\n * @event Dropin#card:binAvailable\n * @type {Dropin~card:binAvailable}\n */\n\n /**\n * The underlying [hosted fields `blur` event](http://braintree.github.io/braintree-web/3.97.1/HostedFields.html#event:blur).\n * @event Dropin#card:blur\n * @type {Dropin~card:blur}\n */\n\n /**\n * The underlying [hosted fields `cardTypeChange` event](http://braintree.github.io/braintree-web/3.97.1/HostedFields.html#event:cardTypeChange).\n * @event Dropin#card:cardTypeChange\n * @type {Dropin~card:cardTypeChange}\n */\n\n /**\n * The underlying [hosted fields `empty` event](http://braintree.github.io/braintree-web/3.97.1/HostedFields.html#event:empty).\n * @event Dropin#card:empty\n * @type {Dropin~card:empty}\n */\n\n /**\n * The underlying [hosted fields `focus` event](http://braintree.github.io/braintree-web/3.97.1/HostedFields.html#event:focus).\n * @event Dropin#card:focus\n * @type {Dropin~card:focus}\n */\n\n /**\n * The underlying [hosted fields `inputSubmitRequest` event](http://braintree.github.io/braintree-web/3.97.1/HostedFields.html#event:inputSubmitRequest).\n * @event Dropin#card:inputSubmitRequest\n * @type {Dropin~card:inputSubmitRequest}\n */\n\n /**\n * The underlying [hosted fields `notEmpty` event](http://braintree.github.io/braintree-web/3.97.1/HostedFields.html#event:notEmpty).\n * @event Dropin#card:notEmpty\n * @type {Dropin~card:notEmpty}\n */\n\n /**\n * The underlying [hosted fields `validityChange` event](http://braintree.github.io/braintree-web/3.97.1/HostedFields.html#event:validityChange).\n * @event Dropin#card:validityChange\n * @type {Dropin~card:validityChange}\n */\n\n /**\n * The underlying [3D Secure `customer-canceled` event](http://braintree.github.io/braintree-web/3.97.1/ThreeDSecure.html#event:customer-canceled).\n * @event Dropin#3ds:customer-canceled\n * @type {Dropin~3ds:customer-canceled}\n */\n\n /**\n * The underlying [3D Secure `authentication-modal-render` event](http://braintree.github.io/braintree-web/3.97.1/ThreeDSecure.html#event:authentication-modal-render).\n * @event Dropin#3ds:authentication-modal-render\n * @type {Dropin~3ds:authentication-modal-render}\n */\n\n /**\n * The underlying [3D Secure `authentication-modal-close` event](http://braintree.github.io/braintree-web/3.97.1/ThreeDSecure.html#event:authentication-modal-close).\n * @event Dropin#3ds:authentication-modal-close\n * @type {Dropin~3ds:authentication-modal-close}\n */\n\n /**\n * @typedef {object} Dropin~paymentOptionSelectedPayload\n * @description The event payload sent from {@link Dropin#on|`on`} with the {@link Dropin#event:paymentOptionSelected|`paymentOptionSelected`} event.\n * @property {string} paymentOption The payment option view selected. Either `card`, `paypal`, or `paypalCredit`.\n */\n\n /**\n * @class\n * @param {object} options For create options, see {@link module:braintree-web-drop-in|dropin.create}.\n * @description Do not use this constructor directly. Use {@link module:braintree-web-drop-in|dropin.create} instead.\n * @classdesc This class represents a Drop-in component, that will create a pre-made UI for accepting cards and PayPal on your page. Instances of this class have methods for requesting a payment method and subscribing to events. For more information, see the [Drop-in guide](https://developer.paypal.com/braintree/docs/guides/drop-in/overview/javascript/v3) in the Braintree Developer Docs. To be used in conjunction with the [Braintree Server SDKs](https://developer.paypal.com/braintree/docs/start/hello-server).\n */\n function Dropin(options) {\n this._client = options.client;\n this._componentID = uuid();\n this._dropinWrapper = document.createElement('div');\n this._dropinWrapper.id = 'braintree--dropin__' + this._componentID;\n this._dropinWrapper.setAttribute('data-braintree-id', 'wrapper');\n this._dropinWrapper.style.display = 'none';\n this._dropinWrapper.className = 'braintree-loading';\n this._merchantConfiguration = options.merchantConfiguration;\n EventEmitter.call(this);\n }\n EventEmitter.createChild(Dropin);\n Dropin.prototype._initialize = function (callback) {\n var localizedStrings, localizedHTML;\n var self = this;\n var container = self._merchantConfiguration.container || self._merchantConfiguration.selector;\n if (!container) {\n analytics.sendEvent(self._client, 'configuration-error');\n callback(new DropinError('options.container is required.'));\n return;\n } else if (self._merchantConfiguration.container && self._merchantConfiguration.selector) {\n analytics.sendEvent(self._client, 'configuration-error');\n callback(new DropinError('Must only have one options.selector or options.container.'));\n return;\n }\n if (typeof container === 'string') {\n container = document.querySelector(container);\n }\n if (!container || container.nodeType !== 1) {\n analytics.sendEvent(self._client, 'configuration-error');\n callback(new DropinError('options.selector or options.container must reference a valid DOM node.'));\n return;\n }\n if (container.innerHTML.trim()) {\n analytics.sendEvent(self._client, 'configuration-error');\n callback(new DropinError('options.selector or options.container must reference an empty DOM node.'));\n return;\n }\n\n // Backfill with `en`\n self._strings = assign({}, translations.en);\n if (self._merchantConfiguration.locale) {\n localizedStrings = translations[self._merchantConfiguration.locale] || translations[self._merchantConfiguration.locale.split('_')[0]];\n // Fill `strings` with `localizedStrings` that may exist\n self._strings = assign(self._strings, localizedStrings);\n }\n if (!isUtf8()) {\n // non-utf-8 encodings often don't support the bullet character\n self._strings.endingIn = self._strings.endingIn.replace(/•/g, '*');\n }\n if (self._merchantConfiguration.translations) {\n Object.keys(self._merchantConfiguration.translations).forEach(function (key) {\n self._strings[key] = sanitizeHtml(self._merchantConfiguration.translations[key]);\n });\n }\n localizedHTML = Object.keys(self._strings).reduce(function (result, stringKey) {\n var stringValue = self._strings[stringKey];\n return result.replace(RegExp('{{' + stringKey + '}}', 'g'), stringValue);\n }, mainHTML);\n self._dropinWrapper.innerHTML = svgHTML + localizedHTML;\n container.appendChild(self._dropinWrapper);\n self._model = new DropinModel({\n client: self._client,\n container: container,\n componentID: self._componentID,\n merchantConfiguration: self._merchantConfiguration\n });\n self._injectStylesheet();\n self._model.initialize().then(function () {\n self._model.on('cancelInitialization', function (err) {\n self._dropinWrapper.innerHTML = '';\n analytics.sendEvent(self._client, 'load-error');\n callback(err);\n });\n self._model.on('asyncDependenciesReady', function () {\n if (self._model.hasAtLeastOneAvailablePaymentOption()) {\n analytics.sendEvent(self._client, 'appeared');\n self._disableErroredPaymentMethods();\n self._handleAppSwitch();\n self._model.confirmDropinReady();\n callback(null, self);\n } else {\n self._model.cancelInitialization(new DropinError('All payment options failed to load.'));\n }\n });\n PASS_THROUGH_EVENTS.forEach(function (eventName) {\n self._model.on(eventName, function (event) {\n self._emit(eventName, event);\n });\n });\n return self._setUpDependenciesAndViews();\n }).catch(function (err) {\n self.teardown().then(function () {\n callback(err);\n });\n });\n };\n\n /**\n * Modify your configuration initially set in {@link module:braintree-web-drop-in|`dropin.create`}.\n *\n * If `updateConfiguration` is called after a user completes the PayPal authorization flow, any PayPal accounts not stored in the Vault record will be removed.\n * @public\n * @param {string} property The top-level property to update. Either `paypal`, `paypalCredit`, `applePay`, or `googlePay`.\n * @param {string} key The key of the property to update, such as `amount` or `currency`.\n * @param {any} value The value of the property to update. Must be the type of the property specified in {@link module:braintree-web-drop-in|`dropin.create`}.\n * @returns {void}\n * @example\n * dropinInstance.updateConfiguration('paypal', 'amount', '10.00');\n */\n Dropin.prototype.updateConfiguration = function (property, key, value) {\n var view;\n if (UPDATABLE_CONFIGURATION_OPTIONS.indexOf(property) === -1) {\n return;\n }\n if (property === 'threeDSecure') {\n if (this._threeDSecure) {\n this._threeDSecure.updateConfiguration(key, value);\n }\n return;\n }\n view = this._mainView.getView(property);\n if (!view) {\n return;\n }\n view.updateConfiguration(key, value);\n if (UPDATABLE_CONFIGURATION_OPTIONS_THAT_REQUIRE_UNVAULTED_PAYMENT_METHODS_TO_BE_REMOVED.indexOf(property) === -1) {\n return;\n }\n this._removeUnvaultedPaymentMethods(function (paymentMethod) {\n return paymentMethod.type === constants.paymentMethodTypes[property];\n });\n this._navigateToInitialView();\n };\n\n /**\n * Get a list of the available payment methods presented to the user. This is useful for knowing if a paricular payment option was presented to a customer that is browser dependant such as Apple Pay, Google Pay and Venmo. Returns an array of strings. Possible values:\n * * `applePay`\n * * `card`\n * * `googlePay`\n * * `paypalCredit`\n * * `paypal`\n * * `venmo`\n *\n * @public\n * @returns {string[]} An array of possible payment options.\n * @example\n * var paymentOptions = dropinInstance.getAvailablePaymentOptions(); // ['card', 'venmo', 'paypal']\n *\n * if (paymentOptions.includes('venmo')) {\n * // special logic for when venmo is displayed\n * }\n */\n Dropin.prototype.getAvailablePaymentOptions = function () {\n return this._model.supportedPaymentOptions;\n };\n\n /**\n * Removes the currently selected payment method and returns the customer to the payment options view. Does not remove vaulted payment methods.\n * @public\n * @returns {void}\n * @example\n * dropinInstance.requestPaymentMethod(function (requestPaymentMethodError, payload) {\n * if (requestPaymentMethodError) {\n * // handle errors\n * return;\n * }\n *\n * functionToSendNonceToServer(payload.nonce, function (transactionError, response) {\n * if (transactionError) {\n * // transaction sale with selected payment method failed\n * // clear the selected payment method and add a message\n * // to the checkout page about the failure\n * dropinInstance.clearSelectedPaymentMethod();\n * divForErrorMessages.textContent = 'my error message about entering a different payment method.';\n * } else {\n * // redirect to success page\n * }\n * });\n * });\n */\n Dropin.prototype.clearSelectedPaymentMethod = function () {\n this._removeUnvaultedPaymentMethods();\n this._model.removeActivePaymentMethod();\n if (this._model.getPaymentMethods().length === 0) {\n this._navigateToInitialView();\n return;\n }\n this._mainView.showLoadingIndicator();\n this._model.refreshPaymentMethods().then(function () {\n this._navigateToInitialView();\n this._mainView.hideLoadingIndicator();\n }.bind(this));\n };\n Dropin.prototype._setUpDataCollector = function () {\n var self = this;\n var config = assign({}, self._merchantConfiguration.dataCollector, {\n client: self._client\n });\n this._dataCollector = new DataCollector(config);\n this._dataCollector.initialize().then(function () {\n self._model.asyncDependencyReady('dataCollector');\n }).catch(function (err) {\n self._model.cancelInitialization(new DropinError({\n message: 'Data Collector failed to set up.',\n braintreeWebError: err\n }));\n });\n };\n Dropin.prototype._setUpThreeDSecure = function () {\n var self = this;\n this._threeDSecure = new ThreeDSecure(this._client, this._model);\n this._threeDSecure.initialize().then(function () {\n self._model.asyncDependencyReady('threeDSecure');\n }).catch(function (err) {\n self._model.cancelInitialization(new DropinError({\n message: '3D Secure failed to set up.',\n braintreeWebError: err\n }));\n });\n };\n Dropin.prototype._setUpDependenciesAndViews = function () {\n if (this._merchantConfiguration.dataCollector) {\n this._setUpDataCollector();\n }\n if (this._merchantConfiguration.threeDSecure) {\n this._setUpThreeDSecure();\n }\n this._mainView = new MainView({\n client: this._client,\n element: this._dropinWrapper,\n model: this._model,\n strings: this._strings\n });\n };\n Dropin.prototype._removeUnvaultedPaymentMethods = function (filter) {\n filter = filter || function () {\n return true;\n };\n this._model.getPaymentMethods().forEach(function (paymentMethod) {\n if (filter(paymentMethod) && !paymentMethod.vaulted) {\n this._model.removePaymentMethod(paymentMethod);\n }\n }.bind(this));\n };\n Dropin.prototype._navigateToInitialView = function () {\n var initViewId = this._model.getInitialViewId();\n var isOnInitView = this._mainView.primaryView.ID === initViewId;\n if (isOnInitView) {\n return;\n }\n if (this._model.hasPaymentMethods()) {\n return;\n }\n this._mainView.setPrimaryView(initViewId);\n };\n Dropin.prototype._supportsPaymentOption = function (paymentOption) {\n return this._model.supportedPaymentOptions.indexOf(paymentOption) !== -1;\n };\n Dropin.prototype._disableErroredPaymentMethods = function () {\n var paymentMethodOptionsElements;\n var failedDependencies = Object.keys(this._model.failedDependencies);\n if (failedDependencies.length === 0) {\n return;\n }\n paymentMethodOptionsElements = this._mainView.getOptionsElements();\n failedDependencies.forEach(function (paymentMethodId) {\n var element = paymentMethodOptionsElements[paymentMethodId];\n var div = element.div;\n var clickHandler = element.clickHandler;\n var error = this._model.failedDependencies[paymentMethodId];\n var errorMessageDiv = div.querySelector('.braintree-option__disabled-message');\n div.classList.add('braintree-disabled');\n div.removeEventListener('click', clickHandler);\n errorMessageDiv.innerHTML = constants.errors.DEVELOPER_MISCONFIGURATION_MESSAGE;\n console.error(error); // eslint-disable-line no-console\n }.bind(this));\n };\n Dropin.prototype._sendVaultedPaymentMethodAppearAnalyticsEvents = function () {\n var i, type;\n var typesThatSentAnEvent = {};\n var paymentMethods = this._model._paymentMethods;\n for (i = 0; i < paymentMethods.length; i++) {\n type = paymentMethods[i].type;\n if (type in typesThatSentAnEvent) {\n // prevents us from sending the analytic multiple times\n // for the same payment method type\n continue;\n }\n typesThatSentAnEvent[type] = true;\n analytics.sendEvent(this._client, 'vaulted-' + constants.analyticsKinds[type] + '.appear');\n }\n };\n Dropin.prototype._handleAppSwitch = function () {\n if (this._model.appSwitchError) {\n this._mainView.setPrimaryView(this._model.appSwitchError.id);\n this._model.reportError(this._model.appSwitchError.error);\n } else if (this._model.appSwitchPayload) {\n this._model.addPaymentMethod(this._model.appSwitchPayload);\n } else {\n this._sendVaultedPaymentMethodAppearAnalyticsEvents();\n }\n };\n\n /**\n * Requests a payment method object which includes the payment method nonce used by by the [Braintree Server SDKs](https://developer.paypal.com/braintree/docs/start/hello-server).\n *\n * If a payment method is not available, an error will appear in the UI. When a callback is used, an error will be passed to it. If no callback is used, the returned Promise will be rejected with an error.\n * @public\n * @param {object} [options] All options for requesting a payment method.\n * @param {object} [options.threeDSecure] Any of the options in the [Braintree 3D Secure client reference](https://braintree.github.io/braintree-web/3.97.1/ThreeDSecure.html#verifyCard) except for `nonce`, `bin`, and `onLookupComplete`. If `amount` is provided, it will override the value of `amount` in the [3D Secure create options](module-braintree-web-drop-in.html#~threeDSecureOptions). The more options provided, the more likely the customer will not need to answer a 3DS challenge. When 3DS is enabled, both credit cards and non-network tokenized Google Pay cards will perform verfication. The recommended fields for achieving a 3DS v2 verification are:\n * * `email`\n * * `mobilePhoneNumber`\n * * `billingAddress`\n *\n * For an example of verifying 3D Secure within Drop-in, [check out this codepen](https://codepen.io/braintree/pen/KjWqGx).\n * @param {callback} [callback] May be used as the only parameter in requestPaymentMethod if no `options` are provided. The first argument will be an error if no payment method is available and will otherwise be null. The second argument will be an object containing a payment method nonce; either a {@link Dropin~cardPaymentMethodPayload|cardPaymentMethodPayload}, a {@link Dropin~paypalPaymentMethodPayload|paypalPaymentMethodPayload}, a {@link Dropin~venmoPaymentMethodPayload|venmoPaymentMethodPayload}, a {@link Dropin~googlePayPaymentMethodPayload|googlePayPaymentMethodPayload} or an {@link Dropin~applePayPaymentMethodPayload|applePayPaymentMethodPayload}. If no callback is provided, `requestPaymentMethod` will return a promise.\n * @returns {(void|Promise)} Returns a promise if no callback is provided.\n * @example Requesting a payment method\n * var form = document.querySelector('#my-form');\n * var hiddenNonceInput = document.querySelector('#my-nonce-input');\n *\n * form.addEventListener('submit', function (event) {\n * event.preventDefault();\n *\n * dropinInstance.requestPaymentMethod(function (err, payload) {\n * if (err) {\n * // handle error\n * return;\n * }\n * hiddenNonceInput.value = payload.nonce;\n * form.submit();\n * });\n * });\n * @example Requesting a payment method with data collector\n * var form = document.querySelector('#my-form');\n * var hiddenNonceInput = document.querySelector('#my-nonce-input');\n * var hiddenDeviceDataInput = document.querySelector('#my-device-data-input');\n *\n * form.addEventListener('submit', function (event) {\n * event.preventDefault();\n *\n * dropinInstance.requestPaymentMethod(function (err, payload) {\n * if (err) {\n * // handle error\n * return;\n * }\n * hiddenNonceInput.value = payload.nonce;\n * hiddenDeviceDataInput.value = payload.deviceData;\n * form.submit();\n * });\n * });\n *\n * @example Requesting a payment method with 3D Secure\n * var form = document.querySelector('#my-form');\n * var hiddenNonceInput = document.querySelector('#my-nonce-input');\n *\n * form.addEventListener('submit', function (event) {\n * event.preventDefault();\n *\n * dropinInstance.requestPaymentMethod(function (err, payload) {\n * if (err) {\n * // Handle error\n * return;\n * }\n *\n * if (payload.liabilityShifted || (payload.type !== 'CreditCard' && payload.type !== 'AndroidPayCard')) {\n * hiddenNonceInput.value = payload.nonce;\n * form.submit();\n * } else {\n * // Decide if you will force the user to enter a different payment method\n * // if liability was not shifted\n * dropinInstance.clearSelectedPaymentMethod();\n * }\n * });\n * });\n */\n Dropin.prototype.requestPaymentMethod = function (options) {\n // NEXT_MAJOR_VERSION\n // what should happen when this method is called while a payment\n // method is already being requested? Should it error? Should\n // they both resolve with the payload from the original request?\n // this is only important because when doing 3ds, multiple\n // requests in quick succession can get you into a state\n // where it errors because the 3ds verification is called twice\n var self = this;\n options = options || {};\n return this._mainView.requestPaymentMethod().then(function (payload) {\n if (self._shouldPerformThreeDSecureVerification(payload)) {\n self._mainView.showLoadingIndicator();\n return self._threeDSecure.verify(payload, options.threeDSecure).then(function (newPayload) {\n payload.nonce = newPayload.nonce;\n payload.liabilityShifted = newPayload.liabilityShifted;\n payload.liabilityShiftPossible = newPayload.liabilityShiftPossible;\n payload.threeDSecureInfo = newPayload.threeDSecureInfo;\n self._mainView.hideLoadingIndicator();\n return payload;\n }).catch(function (err) {\n self.clearSelectedPaymentMethod();\n return self._model.refreshPaymentMethods().then(function () {\n self._mainView.hideLoadingIndicator();\n return Promise.reject(new DropinError({\n message: 'Something went wrong during 3D Secure authentication. Please try again.',\n braintreeWebError: err\n }));\n });\n });\n }\n return payload;\n }).then(function (payload) {\n if (self._dataCollector) {\n payload.deviceData = self._dataCollector.getDeviceData();\n }\n return payload;\n }).then(function (payload) {\n return formatPaymentMethodPayload(payload);\n });\n };\n Dropin.prototype._shouldPerformThreeDSecureVerification = function (payload) {\n if (!this._threeDSecure) {\n return false;\n }\n if (payload.liabilityShifted != null) {\n return false;\n }\n if (payload.type === constants.paymentMethodTypes.card) {\n return true;\n }\n if (payload.type === constants.paymentMethodTypes.googlePay && payload.details.isNetworkTokenized === false) {\n return true;\n }\n return false;\n };\n Dropin.prototype._removeStylesheet = function () {\n var stylesheet = document.getElementById(constants.STYLESHEET_ID);\n if (stylesheet) {\n stylesheet.parentNode.removeChild(stylesheet);\n }\n };\n Dropin.prototype._injectStylesheet = function () {\n var assetsUrl;\n var loadStylesheetOptions = {\n id: constants.STYLESHEET_ID\n };\n if (document.getElementById(constants.STYLESHEET_ID)) {\n return;\n }\n assetsUrl = this._client.getConfiguration().gatewayConfiguration.assetsUrl;\n loadStylesheetOptions.href = assetsUrl + '/web/dropin/' + VERSION + '/css/dropin.css';\n if (this._model.isInShadowDom) {\n // if Drop-in is in the shadow DOM, put the\n // style sheet in the shadow DOM node instead of\n // in the head of the document\n loadStylesheetOptions.container = this._model.rootNode;\n }\n assets.loadStylesheet(loadStylesheetOptions);\n };\n\n /**\n * Cleanly remove anything set up by {@link module:braintree-web-drop-in|dropin.create}. This may be be useful in a single-page app.\n * @public\n * @param {callback} [callback] Called on completion, containing an error if one occurred. No data is returned if teardown completes successfully. If no callback is provided, `teardown` will return a promise.\n * @returns {(void|Promise)} Returns a promise if no callback is provided.\n */\n Dropin.prototype.teardown = function () {\n var teardownError;\n var promise = Promise.resolve();\n var self = this;\n this._removeStylesheet();\n if (this._mainView) {\n promise.then(function () {\n return self._mainView.teardown().catch(function (err) {\n teardownError = err;\n });\n });\n }\n if (this._dataCollector) {\n promise.then(function () {\n return this._dataCollector.teardown().catch(function (error) {\n teardownError = new DropinError({\n message: 'Drop-in errored tearing down Data Collector.',\n braintreeWebError: error\n });\n });\n }.bind(this));\n }\n if (this._threeDSecure) {\n promise.then(function () {\n return this._threeDSecure.teardown().catch(function (error) {\n teardownError = new DropinError({\n message: 'Drop-in errored tearing down 3D Secure.',\n braintreeWebError: error\n });\n });\n }.bind(this));\n }\n return promise.then(function () {\n return self._removeDropinWrapper();\n }).then(function () {\n if (teardownError) {\n return Promise.reject(teardownError);\n }\n return Promise.resolve();\n });\n };\n\n /**\n * Returns a boolean indicating if a payment method is available through {@link Dropin#requestPaymentMethod|requestPaymentMethod}. Particularly useful for detecting if using a client token with a customer ID to show vaulted payment methods.\n * @public\n * @returns {Boolean} True if a payment method is available, otherwise false.\n */\n Dropin.prototype.isPaymentMethodRequestable = function () {\n return this._model.isPaymentMethodRequestable();\n };\n Dropin.prototype._removeDropinWrapper = function () {\n this._dropinWrapper.parentNode.removeChild(this._dropinWrapper);\n return Promise.resolve();\n };\n function formatPaymentMethodPayload(paymentMethod) {\n var formattedPaymentMethod = {\n nonce: paymentMethod.nonce,\n details: paymentMethod.details,\n type: paymentMethod.type\n };\n if (paymentMethod.vaulted != null) {\n formattedPaymentMethod.vaulted = paymentMethod.vaulted;\n }\n if (paymentMethod.type === constants.paymentMethodTypes.card) {\n formattedPaymentMethod.description = paymentMethod.description;\n }\n if (paymentMethod.type in HAS_RAW_PAYMENT_DATA) {\n formattedPaymentMethod.details.rawPaymentData = paymentMethod.rawPaymentData;\n }\n if (typeof paymentMethod.liabilityShiftPossible === 'boolean') {\n formattedPaymentMethod.liabilityShifted = paymentMethod.liabilityShifted;\n formattedPaymentMethod.liabilityShiftPossible = paymentMethod.liabilityShiftPossible;\n }\n if (paymentMethod.threeDSecureInfo) {\n formattedPaymentMethod.threeDSecureInfo = paymentMethod.threeDSecureInfo;\n }\n if (paymentMethod.deviceData) {\n formattedPaymentMethod.deviceData = paymentMethod.deviceData;\n }\n if (paymentMethod.binData) {\n formattedPaymentMethod.binData = paymentMethod.binData;\n }\n return formattedPaymentMethod;\n }\n module.exports = wrapPrototype(Dropin);\n }, {\n \"./constants\": 202,\n \"./dropin-model\": 203,\n \"./lib/analytics\": 207,\n \"./lib/assign\": 208,\n \"./lib/data-collector\": 211,\n \"./lib/dropin-error\": 212,\n \"./lib/is-utf-8\": 216,\n \"./lib/sanitize-html\": 219,\n \"./lib/three-d-secure\": 221,\n \"./translations\": 242,\n \"./views/main-view\": 261,\n \"@braintree/asset-loader\": 1,\n \"@braintree/event-emitter\": 23,\n \"@braintree/uuid\": 29,\n \"@braintree/wrap-promise\": 33\n }],\n 205: [function (require, module, exports) {\n 'use strict';\n\n /**\n * @module braintree-web-drop-in\n * @description There are two ways to integrate Drop-in into your page: a script tag integration and a JavaScript integration using [`dropin.create`](#.create).\n *\n * The script tag integration is the fastest way to integrate. All you need to do is add the Drop-in script inside your form element where you want Drop-in to appear and include a `data-braintree-dropin-authorization` property with your [tokenization key](https://developer.paypal.com/braintree/docs/guides/authorization/tokenization-key/javascript/v3) or [client token](https://developer.paypal.com/braintree/docs/guides/authorization/client-token).\n *\n * When your form is submitted, Drop-in will intercept the form submission and attempt to tokenize the payment method. If the tokenization is successful, it will insert the payment method nonce into a hidden input with the name `payment_method_nonce` and then submit your form. If the tokenization is unsuccessful, a relevant error will be shown in the UI.\n *\n * If you have data collector enabled, the device data will be injected into a hidden input with the name `device_data` before form submission.\n *\n * Specify creation options as data attributes in your script tag, as shown in the examples below. The following configuration properties may be set:\n *\n * * `data-locale`\n * * `data-card.cardholder-name.required`\n * * `data-payment-option-priority`\n * * `data-data-collector.kount`\n * * `data-data-collector.paypal`\n * * `data-paypal.amount`\n * * `data-paypal.currency`\n * * `data-paypal.flow`\n * * `data-paypal-credit.amount`\n * * `data-paypal-credit.currency`\n * * `data-paypal-credit.flow`\n *\n * For more control and customization, use [`dropin.create` instead](#.create).\n *\n * See our [demo app](../../script-tag-integration.html) for an example of using our script tag integration.\n *\n * @example\n * A full example accepting only cards\n * \n * \n * \n * \n * Checkout\n * \n * \n *
\n * \n * \n *
\n * \n * \n *\n * @example\n * A full example accepting cards, PayPal, and PayPal credit\n * \n * \n * \n * \n * Checkout\n * \n * \n *
\n * \n * \n *
\n * \n * \n *\n * @example\n * Specifying a locale and payment option priority\n *
\n * \n * \n *
\n *\n * @example\n * Including an optional cardholder name field in card form\n *
\n * \n * \n *
\n *\n * @example\n * Including a required cardholder name field in card form\n *
\n * \n * \n *
\n */\n var Dropin = require('./dropin');\n var client = require('braintree-web/client');\n var createFromScriptTag = require('./lib/create-from-script-tag');\n var constants = require('./constants');\n var analytics = require('./lib/analytics');\n var DropinError = require('./lib/dropin-error');\n var wrapPromise = require('@braintree/wrap-promise');\n var VERSION = '1.40.2';\n\n /**\n * @typedef {object} cardCreateOptions The configuration options for cards. Internally, Drop-in uses [Hosted Fields](http://braintree.github.io/braintree-web/3.97.1/module-braintree-web_hosted-fields.html) to render the card form. The `overrides.fields` and `overrides.styles` allow the Hosted Fields to be customized.\n *\n * @param {(boolean|object)} [cardholderName] Will enable a cardholder name field above the card number field. If set to an object, you can specify whether or not the field is required. If set to a `true`, it will default the field to being present, but not required.\n * @param {boolean} [cardholderName.required=false] When true, the cardholder name field will be required to request the payment method nonce.\n * @param {object} [overrides.fields] The Hosted Fields [`fields` options](http://braintree.github.io/braintree-web/3.97.1/module-braintree-web_hosted-fields.html#~fieldOptions). Only `number`, `cvv`, `expirationDate` and `postalCode` can be configured. Each is a [Hosted Fields `field` object](http://braintree.github.io/braintree-web/3.97.1/module-braintree-web_hosted-fields.html#~field). `selector` cannot be modified.\n * @param {object} [overrides.styles] The Hosted Fields [`styles` options](http://braintree.github.io/braintree-web/3.97.1/module-braintree-web_hosted-fields.html#~styleOptions). These can be used to add custom styles to the Hosted Fields iframes. To style the rest of Drop-in, [review the documentation for customizing Drop-in](https://developer.paypal.com/braintree/docs/guides/drop-in/customization/javascript/v3#customize-your-ui).\n * @param {boolean} [clearFieldsAfterTokenization=true] When false, the card form will not clear the card data when the customer returns to the card view after a successful tokenization.\n * @param {object} [vault] Configuration for vaulting credit cards. Only applies when using a [client token with a customer id](https://developer.paypal.com/braintree/docs/reference/request/client-token/generate#customer_id).\n * @param {boolean} [vault.allowVaultCardOverride=false] When true, the card form will include an option to let the customer decide not to vault the credit card they enter.\n * @param {boolean} [vault.vaultCard=true] Whether or not to vault the card upon tokenization. When set to `false` with `allowVaultCardOverride` set to `false`, then cards will not be vaulted.\n */\n\n /**\n * @typedef {object} dataCollectorOptions The configuration options for Data Collector. Requires [advanced fraud protection](https://developer.paypal.com/braintree/docs/guides/premium-fraud-management-tools/client-side/javascript/v3) to be enabled in the Braintree gateway. If using Kount, contact our [support team](https://developer.paypal.com/braintree/help) to configure your Kount ID. The device data will be included on the {@link Dropin#requestPaymentMethod|requestPaymentMethod payload}.\n *\n * @param {boolean} [kount] If true, Kount fraud data collection is enabled.\n */\n\n /**\n * @typedef {object} threeDSecureOptions Configuration options to pass when creating the 3D Secure module used in Drop-in. `amount` for 3D Secure verification can be passed here, but it's recomended that it and all other 3D Secure verification options be passed to the {@link Dropin#requestPaymentMethod|requestPaymentMethod options} instead. Any `cardinalSDKConfig` options must be passed here when creating Drop-in.\n *\n * @param {options} cardinalSDKConfig A configuration object to adjust the configuration for the underlying Cardinal SDK (Braintree's 3D Secure provider). See [`cardinalSDKConfig` options](http://braintree.github.io/braintree-web/3.97.1/module-braintree-web_three-d-secure.html#.create) for all options.\n * @param {string} amount __Deprecated__ The amount to verify with 3D Secure. Set amount in the {@link Dropin#requestPaymentMethod|requestPaymentMethod options} instead.\n */\n\n /** @typedef {object} paypalCreateOptions The configuration options for PayPal and PayPalCredit. For a full list of options see the [PayPal Checkout client reference options](http://braintree.github.io/braintree-web/3.97.1/PayPalCheckout.html#createPayment).\n *\n * @param {string} flow Either `checkout` for a one-time [Checkout with PayPal](https://developer.paypal.com/braintree/docs/guides/paypal/checkout-with-paypal/javascript/v3) flow or `vault` for a [Vault flow](https://developer.paypal.com/braintree/docs/guides/paypal/vault/javascript/v3). Required when using PayPal or PayPal Credit.\n * @param {(string|number)} [amount] The amount of the transaction. Required when using the Checkout flow.\n * @param {string} [currency] The currency code of the amount, such as `USD`. Required when using the Checkout flow.\n * @param {object} [buttonStyle] The style object to apply to the PayPal button. Button customization includes color, shape, size, and label. The options [found here](https://developer.paypal.com/docs/integration/direct/express-checkout/integration-jsv4/customize-button/#button-styles) are available.\n * @param {boolean} [commit] The user action to show on the PayPal review page. If true, a `Pay Now` button will be shown. If false, a `Continue` button will be shown.\n * @param {object} [vault] Configuration for vaulting PayPal accounts. Only applies when using a [client token with a customer id](https://developer.paypal.com/braintree/docs/reference/request/client-token/generate#customer_id).\n * @param {boolean} [vault.vaultPayPal=true] Whether or not to vault the PayPal account upon tokenization.\n */\n\n /** @typedef {object} applePayCreateOptions The configuration options for Apple Pay.\n *\n * @param {string} [buttonStyle=black] Configures the Apple Pay button style. Valid values are `black`, `white`, `white-outline`.\n * @param {string} displayName The canonical name for your store. Use a non-localized name. This parameter should be a utf-8 string that is a maximum of 128 characters. The system may display this name to the user.\n * @param {number} [applePaySessionVersion=2] The [version of the `ApplePaySession`](https://developer.apple.com/documentation/apple_pay_on_the_web/apple_pay_on_the_web_version_history) to use. It's recommended to use the lowest version that contains all the features you need for your checkout to maximize compatibility.\n * @param {external:ApplePayPaymentRequest} paymentRequest The payment request details to apply on top of those from Braintree.\n */\n\n /** @typedef {object} googlePayCreateOptions The configuration options for Google Pay. Additional options from the few listed here are available, many have default values applied based on the settings found in the Braintree Gateway. For more information, see [Google's Documentation](https://developers.google.com/pay/api/web/object-reference#request-objects).\n *\n * @param {string} merchantId The ID provided by Google for processing transactions in production. Not necessary for testing in sandbox.\n * @param {string} [googlePayVersion=1] The version of the Google Pay API to use. Defaults to 1, but 2 can be passed in.\n * @param {external:GooglePayTransactionInfo} transactionInfo The transaction details necessary for processing the payment.\n * @param {external:GooglePayButtonOptions} [button] The button options for configuring the look of the Google Pay button. The `onClick` property cannot be overwritten.\n */\n\n /**\n * @typedef {object} ApplePayPaymentRequest An [Apple Pay Payment Request object](https://developer.apple.com/reference/applepayjs/1916082-applepay_js_data_types/paymentrequest).\n * @external ApplePayPaymentRequest\n * @see {@link https://developer.apple.com/reference/applepayjs/1916082-applepay_js_data_types/paymentrequest PaymentRequest}\n */\n\n /**\n * @typedef {object} GooglePayTransactionInfo A [Google Pay TransactionInfo object](https://developers.google.com/pay/api/web/object-reference#TransactionInfo).\n * @external GooglePayTransactionInfo\n * @see {@link https://developers.google.com/pay/api/web/object-reference#TransactionInfo TransactionInfo}\n */\n\n /**\n * @typedef {object} GooglePayButtonOptions A [Google Pay ButtonOptions object](https://developers.google.com/pay/api/web/reference/object#ButtonOptions).\n * @external GooglePayButtonOptions\n * @see {@link https://developers.google.com/pay/api/web/reference/object#ButtonOptions ButtonOptions}\n */\n\n /** @typedef {(object|boolean)} venmoCreateOptions The configuration options for Venmo. If `true` is passed instead of a configuration object, the default settings listed will be used.\n *\n * @param {boolean} [allowNewBrowserTab=true] If false, it restricts supported browsers to those that can app switch to the Venmo app without opening a new tab.\n */\n\n /**\n * @static\n * @function create\n * @description This function is the entry point for `braintree.dropin`. It is used for creating {@link Dropin} instances.\n * @param {object} options Object containing all {@link Dropin} options:\n * @param {string} options.authorization A [tokenization key](https://developer.paypal.com/braintree/docs/guides/authorization/tokenization-key/javascript/v3) or a [client token](https://developer.paypal.com/braintree/docs/guides/authorization/client-token). If authorization is a client token created with a [customer ID](https://developer.paypal.com/braintree/docs/guides/drop-in/customization/javascript/v3#display-a-saved-payment-method), Drop-in will render saved payment methods and automatically store any newly-added payment methods in their Vault record.\n * @param {(string|HTMLElement)} options.container A reference to an empty element, such as a `
`, where Drop-in will be included on your page or the selector for the empty element. e.g. `#dropin-container`.\n * @param {string} options.selector Deprecated: Now an alias for `options.container`.\n * @param {string} [options.locale=`en_US`] Use this option to change the language, links, and terminology used throughout Drop-in. Supported locales include:\n * `ar_EG`,\n * `cs_CZ`,\n * `da_DK`,\n * `de_DE`,\n * `el_GR`,\n * `en_AU`,\n * `en_GB`,\n * `en_IN`,\n * `en_US`,\n * `es_ES`,\n * `es_XC`,\n * `fi_FI`,\n * `fr_CA`,\n * `fr_FR`,\n * `fr_XC`,\n * `he_IL`,\n * `hu_HU`,\n * `id_ID`,\n * `it_IT`,\n * `ja_JP`,\n * `ko_KR`,\n * `nl_NL`,\n * `no_NO`,\n * `pl_PL`,\n * `pt_BR`,\n * `pt_PT`,\n * `ru_RU`,\n * `sk_SK`,\n * `sv_SE`,\n * `th_TH`,\n * `zh_CN`,\n * `zh_HK`,\n * `zh_TW`,\n * `zh_XC`.\n *\n * @param {object} [options.translations] To use your own translations, pass an object with the strings you wish to replace. This object must use the same structure as the object used internally for supported translations, which can be found [here](https://github.com/braintree/braintree-web-drop-in/blob/main/src/translations/en_US.js). Any strings that are not included will be those from the provided `locale` or `en_US` if no `locale` is provided. See below for an example of creating Drop-in with custom translations.\n * @param {string[]} [options.paymentOptionPriority] Use this option to indicate the order in which enabled payment options should appear when multiple payment options are enabled. By default, payment options will appear in this order: `['card', 'paypal', 'paypalCredit', 'venmo', 'applePay', 'googlePay']`. Payment options omitted from this array will not be offered to the customer.\n * @param {string[]} [options.hiddenVaultedPaymentMethodTypes] Use this option to hide certain types of vaulted payment methods from being displayed to the customer. Apple Pay, Google Pay and Venmo are always hidden (as those payment methods are only availabe as vaulted payment methods for existing subscriptions, new transactions or subscriptions must be newly authorized). Available options:\n * * `'card'`\n * * `'paypal'`\n * * `'paypalCredit'` (same as PayPal)\n *\n * @param {(boolean|object)} [options.card] The configuration options for cards. See [`cardCreateOptions`](#~cardCreateOptions) for all `card` options. If this option is omitted, cards will still appear as a payment option. To remove cards, pass `false` for the value.\n * @param {object} [options.paypal] The configuration options for PayPal. To include a PayPal option in your Drop-in integration, include the `paypal` parameter and [enable PayPal in the Braintree Control Panel](https://developer.paypal.com/braintree/docs/guides/paypal/testing-go-live#go-live). To test in Sandbox, you will need to [link a PayPal sandbox test account to your Braintree sandbox account](https://developer.paypal.com/braintree/docs/guides/paypal/testing-go-live#linked-paypal-testing).\n *\n * Some of the PayPal configuration options are listed [here](#~paypalCreateOptions), but for a full list see the [PayPal Checkout client reference options](http://braintree.github.io/braintree-web/3.97.1/PayPalCheckout.html#createPayment).\n *\n * @param {object} [options.paypalCredit] The configuration options for PayPal Credit. To include a PayPal Credit option in your Drop-in integration, include the `paypalCredit` parameter and [enable PayPal in the Braintree Control Panel](https://developer.paypal.com/braintree/docs/guides/paypal/testing-go-live#go-live).\n *\n * Some of the PayPal Credit configuration options are listed [here](#~paypalCreateOptions), but for a full list see the [PayPal Checkout client reference options](http://braintree.github.io/braintree-web/3.97.1/PayPalCheckout.html#createPayment). For more information on PayPal Credit, see the [Braintree Developer Docs](https://developer.paypal.com/braintree/docs/guides/paypal/paypal-credit/javascript/v3).\n *\n * @param {(object|boolean)} [options.venmo] The configuration options for Pay with Venmo. To include a Venmo option in your Drop-in integration, include the `venmo` parameter and [follow the documentation for setting up Venmo in the Braintree control panel](https://articles.braintreepayments.com/guides/payment-methods/venmo#setup). If a user's browser does not support Venmo, the Venmo option will not be rendered.\n *\n * See [`venmoCreateOptions`](#~venmoCreateOptions) for `venmo` options.\n *\n * @param {object} [options.applePay] The configuration options for Apple Pay. To include an Apple Pay option in your Drop-in integration, include the `applePay` parameter and [enable Apple Pay in the Braintree Control Panel](https://developer.paypal.com/braintree/docs/guides/apple-pay/configuration/javascript/v3). If a user's browser does not support Apple Pay, the Apple Pay option will not be rendered. See [Apple's documentation](https://support.apple.com/en-us/HT201469) for browser and device support.\n *\n * See [`applePayCreateOptions`](#~applePayCreateOptions) for `applePay` options.\n *\n * @param {object} [options.googlePay] The configuration options for Google Pay. To include a Google Pay option in your Drop-in integration, include the `googlePay` parameter and [enable Google Pay in the Braintree Control Panel](https://developer.paypal.com/braintree/docs/guides/google-pay/configuration/javascript/v3). If a user's browser does not support Google Pay, the Google Pay option will not be rendered. See [Google's documentation](https://developers.google.com/pay/api/web/test-and-deploy) for browser and device support.\n *\n * See [`googlePayCreateOptions`](#~googlePayCreateOptions) for `googlePay` options.\n *\n * @param {object|boolean} [options.dataCollector] If `true` is passed, Drop-in will be configured to collect data for use with Advanced Fraud Protection. If collecting data via Kount, pass a [`dataCollectorOptions` object](#~dataCollectorOptions) with `kount: true` instead. If Data Collector is configured and fails to load, Drop-in creation will fail.\n *\n * @param {(boolean|object)} [options.threeDSecure] When `true` is passed, the 3D Secure module will be created with a default configuration. See [`threeDSecureOptions`](#~threeDSecureOptions) for additional create options. If 3D Secure is configured and fails to load, Drop-in creation will fail.\n *\n * @param {boolean} [options.vaultManager=false] Whether or not to allow a customer to delete saved payment methods when used with a [client token with a customer id](https://developer.paypal.com/braintree/docs/reference/request/client-token/generate#customer_id). *Note:* Deleting a payment method from Drop-in will permanently delete the payment method, so this option is not recommended for merchants using Braintree's recurring billing system.\n *\n * @param {boolean} [options.preselectVaultedPaymentMethod=true] Whether or not to initialize Drop-in with a vaulted payment method pre-selected. Only applicable when using a [client token with a customer id](https://developer.paypal.com/braintree/docs/reference/request/client-token/generate#customer_id) and a customer with saved payment methods.\n *\n * @param {boolean} [options.showDefaultPaymentMethodFirst=true] When `true` or left out, the customer's default payment method will be displayed first in the list of vaulted payment methods. When `false`, the order of the displayed payment methods is not guaranteed. Only applicable when using a [client token with a customer id](https://developer.paypal.com/braintree/docs/reference/request/client-token/generate#customer_id) and a customer with saved payment methods.\n *\n * @param {function} [callback] The second argument, `data`, is the {@link Dropin} instance. Returns a promise if no callback is provided.\n * @returns {(void|Promise)} Returns a promise if no callback is provided.\n * @example\n * A full example of accepting credit cards with callback API\n * \n * \n * \n * \n * Checkout\n * \n * \n *
\n * \n *\n * \n *\n * \n * \n * \n * @example\n * A full example of accepting credit cards with promise API\n * \n * \n * \n * \n * Checkout\n * \n * \n *
\n * \n *\n * \n *\n * \n * \n * \n * @example\n * Setting up a Drop-in instance to accept credit cards, PayPal, PayPal Credit, Venmo, and Apple Pay\n * braintree.dropin.create({\n * authorization: 'CLIENT_AUTHORIZATION',\n * container: '#dropin-container',\n * applePay: {\n * displayName: 'Merchant Name',\n * paymentRequest: {\n * total: {\n * label: 'Localized Name',\n * amount: '10.00'\n * }\n * }\n * },\n * paypal: {\n * flow: 'checkout',\n * amount: '10.00',\n * currency: 'USD'\n * },\n * paypalCredit: {\n * flow: 'checkout',\n * amount: '10.00',\n * currency: 'USD'\n * },\n * venmo: true\n * }, function (err, dropinInstance) {\n * // Set up a handler to request a payment method and\n * // submit the payment method nonce to your server\n * });\n * @example\n * Setting up a Drop-in instance to accept Venmo with restricted browser support\n * braintree.dropin.create({\n * authorization: 'CLIENT_AUTHORIZATION',\n * container: '#dropin-container',\n * venmo: {\n * allowNewBrowserTab: false\n * }\n * }, function (err, dropinInstance) {\n * // Set up a handler to request a payment method and\n * // submit the payment method nonce to your server\n * });\n *\n * @example\n * Submitting the payment method nonce to the server using a form\n * \n * \n * \n * \n * Checkout\n * \n * \n *
\n *
\n * \n * \n *
\n *\n * \n *\n * \n * \n * \n *\n * @example\n * Use your own translations\n * braintree.dropin.create({\n * authorization: 'CLIENT_AUTHORIZATION',\n * container: '#dropin-container',\n * translations: {\n * payingWith: 'You are paying with {{paymentSource}}',\n * chooseAnotherWayToPay: 'My custom chooseAnotherWayToPay string',\n * // Any other custom translation strings\n * }\n * }, callback);\n *\n * @example\n * Customizing Drop-in with card form overrides\n * braintree.dropin.create({\n * authorization: 'CLIENT_AUTHORIZATION',\n * container: '#dropin-container',\n * card: {\n * overrides: {\n * fields: {\n * number: {\n * placeholder: '1111 1111 1111 1111' // Update the number field placeholder\n * },\n * postalCode: {\n * minlength: 5 // Set the minimum length of the postal code field\n * },\n * cvv: null // Remove the CVV field from your form\n * },\n * styles: {\n * input: {\n * 'font-size': '18px' // Change the font size for all inputs\n * },\n * ':focus': {\n * color: 'red' // Change the focus color to red for all inputs\n * }\n * }\n * }\n * }\n * }, callback);\n *\n * @example\n * Mask Card Inputs\n * braintree.dropin.create({\n * authorization: 'CLIENT_AUTHORIZATION',\n * container: '#dropin-container',\n * card: {\n * overrides: {\n * fields: {\n * number: {\n * maskInput: {\n * showLastFour: true\n * }\n * },\n * cvv: {\n * maskInput: true\n * }\n * }\n * }\n * }\n * }, callback);\n *\n * @example\n * Including a cardholder name field\n * braintree.dropin.create({\n * authorization: 'CLIENT_AUTHORIZATION',\n * container: '#dropin-container',\n * card: {\n * cardholderName: true\n * }\n * }, callback);\n *\n * @example\n * Including a required cardholder name field\n * braintree.dropin.create({\n * authorization: 'CLIENT_AUTHORIZATION',\n * container: '#dropin-container',\n * card: {\n * cardholderName: {\n * required: true\n * }\n * }\n * }, callback);\n *\n * @example\n * Enabling 3D Secure\n * braintree.dropin.create({\n * authorization: 'CLIENT_AUTHORIZATION',\n * container: '#dropin-container',\n * threeDSecure: true\n * }, function (err, dropinInstance) {\n * // setup payment button\n * btn.addEventListener('click', function (e) {\n * e.preventDefault();\n *\n * dropinInstance.requestPaymentMethod(|\n * threeDSecure: {\n * amount: '100.00',\n * billingAddress: {\n * givenName: 'Jill', // ASCII-printable characters required, else will throw a validation error\n * surname: 'Doe', // ASCII-printable characters required, else will throw a validation error\n * phoneNumber: '8101234567',\n * streetAddress: '555 Smith St.',\n * extendedAddress: '#5',\n * locality: 'Oakland',\n * region: 'CA',\n * postalCode: '12345',\n * countryCodeAlpha2: 'US'\n * },\n * // additional 3ds params\n * }\n * }, function (err, payload) {\n * // inspect payload.liablityShifted\n * // send payload.nonce to server\n * });\n * });\n * });\n *\n * @example\n * Enabled Vault Manager\n * braintree.dropin.create({\n * authorization: 'CLIENT_AUTHORIZATION',\n * container: '#dropin-container',\n * vaultManager: true\n * }, callback);\n */\n\n function create(options) {\n if (!options.authorization) {\n return Promise.reject(new DropinError('options.authorization is required.'));\n }\n return client.create({\n authorization: options.authorization\n }).catch(function (err) {\n return Promise.reject(new DropinError({\n message: 'There was an error creating Drop-in.',\n braintreeWebError: err\n }));\n }).then(function (clientInstance) {\n clientInstance = setAnalyticsIntegration(clientInstance);\n if (clientInstance.getConfiguration().authorizationType === 'TOKENIZATION_KEY') {\n analytics.sendEvent(clientInstance, 'started.tokenization-key');\n } else {\n analytics.sendEvent(clientInstance, 'started.client-token');\n }\n return new Promise(function (resolve, reject) {\n new Dropin({\n merchantConfiguration: options,\n client: clientInstance\n })._initialize(function (err, instance) {\n if (err) {\n reject(err);\n return;\n }\n resolve(instance);\n });\n });\n });\n }\n function setAnalyticsIntegration(clientInstance) {\n var configuration = clientInstance.getConfiguration();\n configuration.analyticsMetadata.integration = constants.INTEGRATION;\n configuration.analyticsMetadata.integrationType = constants.INTEGRATION;\n configuration.analyticsMetadata.dropinVersion = VERSION;\n clientInstance.getConfiguration = function () {\n return configuration;\n };\n return clientInstance;\n }\n\n // we check for document's existence to support server side rendering\n createFromScriptTag(create, typeof document !== 'undefined' && document.querySelector('script[data-braintree-dropin-authorization]'));\n module.exports = {\n create: wrapPromise(create),\n /**\n * @description The current version of Drop-in, i.e. `1.40.2`.\n * @type {string}\n */\n VERSION: VERSION\n };\n }, {\n \"./constants\": 202,\n \"./dropin\": 204,\n \"./lib/analytics\": 207,\n \"./lib/create-from-script-tag\": 210,\n \"./lib/dropin-error\": 212,\n \"@braintree/wrap-promise\": 33,\n \"braintree-web/client\": 41\n }],\n 206: [function (require, module, exports) {\n 'use strict';\n\n function addSelectionEventHandler(element, func) {\n element.addEventListener('click', func);\n element.addEventListener('keyup', function (event) {\n if (event.keyCode === 13) {\n func();\n }\n });\n }\n module.exports = addSelectionEventHandler;\n }, {}],\n 207: [function (require, module, exports) {\n 'use strict';\n\n var atob = require('./polyfill').atob;\n var constants = require('../constants');\n var braintreeClientVersion = require('braintree-web/client').VERSION;\n function _millisToSeconds(millis) {\n return Math.floor(millis / 1000);\n }\n function sendAnalyticsEvent(client, kind, callback) {\n var configuration = client.getConfiguration();\n var analyticsRequest = client._request;\n var timestamp = _millisToSeconds(Date.now());\n var url = configuration.gatewayConfiguration.analytics.url;\n var data = {\n analytics: [{\n kind: constants.ANALYTICS_PREFIX + kind,\n timestamp: timestamp\n }],\n _meta: configuration.analyticsMetadata,\n braintreeLibraryVersion: braintreeClientVersion\n };\n if (configuration.authorizationType === 'TOKENIZATION_KEY') {\n data.tokenizationKey = configuration.authorization;\n } else {\n data.authorizationFingerprint = JSON.parse(atob(configuration.authorization)).authorizationFingerprint;\n }\n analyticsRequest({\n url: url,\n method: 'post',\n data: data,\n timeout: constants.ANALYTICS_REQUEST_TIMEOUT_MS\n }, callback);\n }\n module.exports = {\n sendEvent: sendAnalyticsEvent\n };\n }, {\n \"../constants\": 202,\n \"./polyfill\": 218,\n \"braintree-web/client\": 41\n }],\n 208: [function (require, module, exports) {\n 'use strict';\n\n var assignNormalized = typeof Object.assign === 'function' ? Object.assign : assignPolyfill;\n function assignPolyfill(destination) {\n var i, source, key;\n for (i = 1; i < arguments.length; i++) {\n source = arguments[i];\n for (key in source) {\n if (source.hasOwnProperty(key)) {\n destination[key] = source[key];\n }\n }\n }\n return destination;\n }\n module.exports = {\n assign: assignNormalized,\n _assign: assignPolyfill\n };\n }, {}],\n 209: [function (require, module, exports) {\n 'use strict';\n\n var isIe9 = require('@braintree/browser-detection/is-ie9');\n var isIe10 = require('@braintree/browser-detection/is-ie10');\n module.exports = {\n isIe9: isIe9,\n isIe10: isIe10\n };\n }, {\n \"@braintree/browser-detection/is-ie10\": 20,\n \"@braintree/browser-detection/is-ie9\": 21\n }],\n 210: [function (require, module, exports) {\n 'use strict';\n\n var analytics = require('./analytics');\n var find = require('./find-parent-form');\n var uuid = require('@braintree/uuid');\n var DropinError = require('./dropin-error');\n var kebabCaseToCamelCase = require('./kebab-case-to-camel-case');\n var WHITELISTED_DATA_ATTRIBUTES = ['locale', 'payment-option-priority', 'data-collector.kount', 'data-collector.paypal',\n // camelcase version was accidentally used initially.\n // we add the kebab case version to match the docs, but\n // we retain the camelcase version for backwards compatibility\n 'card.cardholderName', 'card.cardholderName.required', 'card.cardholder-name', 'card.cardholder-name.required', 'paypal.amount', 'paypal.currency', 'paypal.flow', 'paypal.landing-page-type', 'paypal-credit.amount', 'paypal-credit.currency', 'paypal-credit.flow', 'paypal-credit.landing-page-type'];\n function injectHiddenInput(name, value, form) {\n var input = form.querySelector('[name=\"' + name + '\"]');\n if (!input) {\n input = document.createElement('input');\n input.type = 'hidden';\n input.name = name;\n form.appendChild(input);\n }\n input.value = value;\n }\n function addCompositeKeyValuePairToObject(obj, key, value) {\n var decomposedKeys = key.split('.');\n var topLevelKey = kebabCaseToCamelCase(decomposedKeys[0]);\n if (decomposedKeys.length === 1) {\n obj[topLevelKey] = deserialize(value);\n } else {\n obj[topLevelKey] = obj[topLevelKey] || {};\n addCompositeKeyValuePairToObject(obj[topLevelKey], decomposedKeys.slice(1).join('.'), value);\n }\n }\n function deserialize(value) {\n try {\n return JSON.parse(value);\n } catch (e) {\n return value;\n }\n }\n function createFromScriptTag(createFunction, scriptTag) {\n var authorization, container, createOptions, form;\n if (!scriptTag) {\n return;\n }\n authorization = scriptTag.getAttribute('data-braintree-dropin-authorization');\n if (!authorization) {\n throw new DropinError('Authorization not found in data-braintree-dropin-authorization attribute');\n }\n container = document.createElement('div');\n container.id = 'braintree-dropin-' + uuid();\n form = find.findParentForm(scriptTag);\n if (!form) {\n throw new DropinError('No form found for script tag integration.');\n }\n form.addEventListener('submit', function (event) {\n event.preventDefault();\n });\n scriptTag.parentNode.insertBefore(container, scriptTag);\n createOptions = {\n authorization: authorization,\n container: container\n };\n WHITELISTED_DATA_ATTRIBUTES.forEach(function (compositeKey) {\n var value = scriptTag.getAttribute('data-' + compositeKey);\n if (value == null) {\n return;\n }\n addCompositeKeyValuePairToObject(createOptions, compositeKey, value);\n });\n createFunction(createOptions).then(function (instance) {\n analytics.sendEvent(instance._client, 'integration-type.script-tag');\n form.addEventListener('submit', function () {\n instance.requestPaymentMethod(function (requestPaymentError, payload) {\n if (requestPaymentError) {\n return;\n }\n injectHiddenInput('payment_method_nonce', payload.nonce, form);\n if (payload.deviceData) {\n injectHiddenInput('device_data', payload.deviceData, form);\n }\n form.submit();\n });\n });\n });\n }\n module.exports = createFromScriptTag;\n }, {\n \"./analytics\": 207,\n \"./dropin-error\": 212,\n \"./find-parent-form\": 213,\n \"./kebab-case-to-camel-case\": 217,\n \"@braintree/uuid\": 29\n }],\n 211: [function (require, module, exports) {\n (function (global) {\n (function () {\n 'use strict';\n\n var constants = require('../constants');\n var analytics = require('./analytics');\n var assets = require('@braintree/asset-loader');\n function DataCollector(config) {\n this._config = config;\n }\n DataCollector.prototype.initialize = function () {\n var self = this;\n return Promise.resolve().then(function () {\n var braintreeWebVersion;\n if (global.braintree && global.braintree.dataCollector) {\n return Promise.resolve();\n }\n braintreeWebVersion = self._config.client.getVersion();\n return assets.loadScript({\n src: 'https://js.braintreegateway.com/web/' + braintreeWebVersion + '/js/data-collector.min.js',\n id: constants.DATA_COLLECTOR_SCRIPT_ID\n });\n }).then(function () {\n return global.braintree.dataCollector.create(self._config);\n }).then(function (instance) {\n self._instance = instance;\n }).catch(function (err) {\n analytics.sendEvent(self._config.client, 'data-collector.setup-failed');\n // log the Data Collector setup error\n // but do not prevent Drop-in from loading\n self.log(err);\n });\n };\n DataCollector.prototype.log = function (message) {\n console.log(message); // eslint-disable-line no-console\n };\n\n DataCollector.prototype.getDeviceData = function () {\n if (!this._instance) {\n return '';\n }\n return this._instance.deviceData;\n };\n DataCollector.prototype.teardown = function () {\n if (!this._instance) {\n return Promise.resolve();\n }\n return this._instance.teardown();\n };\n module.exports = DataCollector;\n }).call(this);\n }).call(this, typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {});\n }, {\n \"../constants\": 202,\n \"./analytics\": 207,\n \"@braintree/asset-loader\": 1\n }],\n 212: [function (require, module, exports) {\n 'use strict';\n\n function isBraintreeWebError(err) {\n return err.name === 'BraintreeError';\n }\n function DropinError(err) {\n this.name = 'DropinError';\n if (typeof err === 'string') {\n this.message = err;\n } else {\n this.message = err.message;\n }\n if (isBraintreeWebError(err)) {\n this._braintreeWebError = err;\n } else {\n this._braintreeWebError = err.braintreeWebError;\n }\n }\n DropinError.prototype = Object.create(Error.prototype);\n DropinError.prototype.constructor = DropinError;\n module.exports = DropinError;\n }, {}],\n 213: [function (require, module, exports) {\n 'use strict';\n\n function findParentForm(element) {\n var parentNode = element.parentNode;\n if (!parentNode || parentNode.nodeName === 'FORM') {\n return parentNode;\n }\n return findParentForm(parentNode);\n }\n module.exports = {\n findParentForm: findParentForm\n };\n }, {}],\n 214: [function (require, module, exports) {\n 'use strict';\n\n var atob = require('./polyfill').atob;\n module.exports = function (client) {\n var authorizationFingerprint;\n var configuration = client.getConfiguration();\n if (configuration.authorizationType !== 'TOKENIZATION_KEY') {\n authorizationFingerprint = JSON.parse(atob(configuration.authorization)).authorizationFingerprint;\n return !authorizationFingerprint || authorizationFingerprint.indexOf('customer_id=') === -1;\n }\n return true;\n };\n }, {\n \"./polyfill\": 218\n }],\n 215: [function (require, module, exports) {\n (function (global) {\n (function () {\n 'use strict';\n\n function isHTTPS() {\n return global.location.protocol === 'https:';\n }\n module.exports = {\n isHTTPS: isHTTPS\n };\n }).call(this);\n }).call(this, typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {});\n }, {}],\n 216: [function (require, module, exports) {\n (function (global) {\n (function () {\n 'use strict';\n\n module.exports = function (win) {\n win = win || global;\n return Boolean(win.document.characterSet && win.document.characterSet.toLowerCase() === 'utf-8');\n };\n }).call(this);\n }).call(this, typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {});\n }, {}],\n 217: [function (require, module, exports) {\n 'use strict';\n\n function kebabCaseToCamelCase(kebab) {\n var parts = kebab.split('-');\n var first = parts.shift();\n var capitalizedParts = parts.map(function (part) {\n return part.charAt(0).toUpperCase() + part.substring(1);\n });\n return [first].concat(capitalizedParts).join('');\n }\n module.exports = kebabCaseToCamelCase;\n }, {}],\n 218: [function (require, module, exports) {\n (function (global) {\n (function () {\n 'use strict';\n\n /* eslint-disable no-mixed-operators */\n var atobNormalized = typeof global.atob === 'function' ? global.atob : atob;\n function atob(base64String) {\n var a, b, c, b1, b2, b3, b4, i;\n var base64Matcher = new RegExp('^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})([=]{1,2})?$');\n var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n var result = '';\n if (!base64Matcher.test(base64String)) {\n throw new Error('Non base64 encoded input passed to window.atob polyfill');\n }\n i = 0;\n do {\n b1 = characters.indexOf(base64String.charAt(i++));\n b2 = characters.indexOf(base64String.charAt(i++));\n b3 = characters.indexOf(base64String.charAt(i++));\n b4 = characters.indexOf(base64String.charAt(i++));\n a = (b1 & 0x3F) << 2 | b2 >> 4 & 0x3;\n b = (b2 & 0xF) << 4 | b3 >> 2 & 0xF;\n c = (b3 & 0x3) << 6 | b4 & 0x3F;\n result += String.fromCharCode(a) + (b ? String.fromCharCode(b) : '') + (c ? String.fromCharCode(c) : '');\n } while (i < base64String.length);\n return result;\n }\n module.exports = {\n atob: function (base64String) {\n return atobNormalized.call(global, base64String);\n },\n _atob: atob\n };\n }).call(this);\n }).call(this, typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {});\n }, {}],\n 219: [function (require, module, exports) {\n 'use strict';\n\n module.exports = function (string) {\n if (typeof string !== 'string') {\n return '';\n }\n return string.replace(//g, '>');\n };\n }, {}],\n 220: [function (require, module, exports) {\n 'use strict';\n\n module.exports = function () {\n var el = document.createElement('div');\n var prop = 'flex-basis: 1px';\n var prefixes = ['-webkit-', '-moz-', '-ms-', '-o-', ''];\n prefixes.forEach(function (prefix) {\n el.style.cssText += prefix + prop;\n });\n return Boolean(el.style.length);\n };\n }, {}],\n 221: [function (require, module, exports) {\n 'use strict';\n\n var assign = require('./assign').assign;\n var threeDSecure = require('braintree-web/three-d-secure');\n var DEFAULT_ACS_WINDOW_SIZE = '03';\n var PASSTHROUGH_EVENTS = ['customer-canceled', 'authentication-modal-render', 'authentication-modal-close'];\n function ThreeDSecure(client, model) {\n this._client = client;\n this._model = model;\n this._config = assign({}, model.merchantConfiguration.threeDSecure);\n }\n ThreeDSecure.prototype.initialize = function () {\n var self = this;\n var options = {\n client: this._client,\n version: 2\n };\n if (this._config.cardinalSDKConfig) {\n options.cardinalSDKConfig = this._config.cardinalSDKConfig;\n }\n return threeDSecure.create(options).then(function (instance) {\n self._instance = instance;\n PASSTHROUGH_EVENTS.forEach(function (eventName) {\n self._instance.on(eventName, function (event) {\n self._model._emit('3ds:' + eventName, event);\n });\n });\n });\n };\n ThreeDSecure.prototype.verify = function (payload, merchantProvidedData) {\n var verifyOptions = assign({\n amount: this._config.amount\n }, merchantProvidedData, {\n nonce: payload.nonce,\n bin: payload.details.bin,\n // TODO in the future, we will allow\n // merchants to pass in a custom\n // onLookupComplete hook\n onLookupComplete: function (data, next) {\n next();\n }\n });\n verifyOptions.additionalInformation = verifyOptions.additionalInformation || {};\n verifyOptions.additionalInformation.acsWindowSize = verifyOptions.additionalInformation.acsWindowSize || DEFAULT_ACS_WINDOW_SIZE;\n return this._instance.verifyCard(verifyOptions);\n };\n ThreeDSecure.prototype.updateConfiguration = function (key, value) {\n this._config[key] = value;\n };\n ThreeDSecure.prototype.teardown = function () {\n return this._instance.teardown();\n };\n module.exports = ThreeDSecure;\n }, {\n \"./assign\": 208,\n \"braintree-web/three-d-secure\": 153\n }],\n 222: [function (require, module, exports) {\n 'use strict';\n\n var browserDetection = require('./browser-detection');\n function isHidden(element) {\n if (!element) {\n // no parentNode, so nothing containing the element is hidden\n return false;\n }\n if (element.style.display === 'none') {\n return true;\n }\n return isHidden(element.parentNode);\n }\n function onTransitionEnd(element, propertyName, callback) {\n if (browserDetection.isIe9() || isHidden(element)) {\n callback();\n return;\n }\n function transitionEventListener(event) {\n if (event.propertyName === propertyName) {\n element.removeEventListener('transitionend', transitionEventListener);\n callback();\n }\n }\n element.addEventListener('transitionend', transitionEventListener);\n }\n module.exports = {\n onTransitionEnd: onTransitionEnd\n };\n }, {\n \"./browser-detection\": 209\n }],\n 223: [function (require, module, exports) {\n 'use strict';\n\n function delay(time) {\n time = time || 0;\n return new Promise(function (resolve) {\n window.setTimeout(resolve, time);\n });\n }\n module.exports = {\n delay: delay\n };\n }, {}],\n 224: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"الدفع بواسطة {{paymentSource}}\",\n \"chooseAnotherWayToPay\": \"اختر طريقة دفع أخرى\",\n \"chooseAWayToPay\": \"اختر طريقة الدفع\",\n \"otherWaysToPay\": \"طرق أخرى للدفع\",\n \"edit\": \"تحرير\",\n \"doneEditing\": \"تم\",\n \"editPaymentMethods\": \"تحرير طرق الدفع\",\n \"CreditCardDeleteConfirmationMessage\": \"هل تريد حذف بطاقة {{secondaryIdentifier}} التي تنتهي بالأرقام {{identifier}}؟\",\n \"PayPalAccountDeleteConfirmationMessage\": \"هل تريد حذف {{identifier}}الحساب PayPal؟\",\n \"VenmoAccountDeleteConfirmationMessage\": \"هل تريد فعلاً حذف حساب Venmo الذي يحمل اسم المستخدم {{identifier}}؟\",\n \"genericDeleteConfirmationMessage\": \"هل تريد بالفعل حذف طريقة الدفع؟\",\n \"deleteCancelButton\": \"إلغاء\",\n \"deleteConfirmationButton\": \"حذف\",\n \"fieldEmptyForCvv\": \"يرجى إدخال رمز حماية البطاقة.\",\n \"fieldEmptyForExpirationDate\": \"يرجى إدخال تاريخ انتهاء الصلاحية.\",\n \"fieldEmptyForCardholderName\": \"يرجى إدخال اسم صاحب البطاقة.\",\n \"fieldTooLongForCardholderName\": \"يجب أن يقل اسم صاحب البطاقة عن 256 حرفاً.\",\n \"fieldEmptyForNumber\": \"يرجى إدخال رقم.\",\n \"fieldEmptyForPostalCode\": \"يرجى إدخال الرمز البريدي.\",\n \"fieldInvalidForCardholderName\": \"اسم حامل البطاقة غير صحيح.\",\n \"fieldInvalidForCvv\": \"رمز الحماية غير صحيح.\",\n \"fieldInvalidForExpirationDate\": \"تاريخ انتهاء الصلاحية غير صحيح.\",\n \"fieldInvalidForNumber\": \"رقم البطاقة غير صحيح.\",\n \"fieldInvalidForPostalCode\": \"الرمز البريدي غير صحيح.\",\n \"noticeOfCollection\": \"عندما أدفع ببطاقتي، فأنا أوافق على \\\"بيان الخصوصية لدى PayPal\\\".\",\n \"genericError\": \"حدث خطأ ما من جانبنا.\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"هذه البطاقة الائتمانية محفوظة كطريقة دفع حالياً.\",\n \"hostedFieldsFailedTokenizationError\": \"يرجى مراجعة معلوماتك وإعادة المحاولة.\",\n \"hostedFieldsFieldsInvalidError\": \"يرجى مراجعة معلوماتك وإعادة المحاولة.\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"خطأ في الشبكة. يرجى المحاولة مجدداً.\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"فشلت مصادقة بطاقة الائتمان. يرجى مراجعة معلوماتك وإعادة المحاولة.\",\n \"paypalButtonMustBeUsed\": \"استخدم زر PayPal لاستئناف الدفع.\",\n \"venmoButtonMustBeUsed\": \"استخدِم زر Venmo لمتابعة إجراء دفعتك\",\n \"paypalAccountTokenizationFailedError\": \"وقع خطأ أثناء إضافة حساب PayPal. يرجى إعادة المحاولة.\",\n \"paypalFlowFailedError\": \"وقع خطأ أثناء الاتصال بـ PayPal. يرجى إعادة المحاولة.\",\n \"paypalTokenizationRequestActiveError\": \"تفويض الدفع عبر PayPal قيد التنفيذ.\",\n \"venmoCanceledError\": \"وقع خطأ. تأكد أن أحدث إصدار من تطبيق Venmo مثبت في جهازك وأن متصفحك يدعم التبديل إلى Venmo.\",\n \"vaultManagerPaymentMethodDeletionError\": \"فشل حذف طريقة الدفع. أعد المحاولة.\",\n \"venmoAppFailedError\": \"تطبيق Venmo غير موجود في جهازك.\",\n \"unsupportedCardTypeError\": \"نوع البطاقة غير مدعوم. يرجى تجربة بطاقة أخرى.\",\n \"applePayTokenizationError\": \"وقع خطأ في الشبكة أثناء معالجة الدفع عبر Apple Pay. يرجى إعادة المحاولة.\",\n \"applePayActiveCardError\": \"إضافة بطاقة مدعومة إلى محفظة Apple Pay.\",\n \"cardholderNameLabel\": \"اسم صاحب البطاقة\",\n \"cardNumberLabel\": \"رقم البطاقة\",\n \"cvvLabel\": \"رمز CVV‏\",\n \"cvvThreeDigitLabelSubheading\": \"(3 أرقام)\",\n \"cvvFourDigitLabelSubheading\": \"(4 أرقام)\",\n \"cardholderNamePlaceholder\": \"اسم صاحب البطاقة\",\n \"expirationDateLabel\": \"تاريخ انتهاء الصلاحية\",\n \"expirationDateLabelSubheading\": \"(MM/YY)\",\n \"expirationDatePlaceholder\": \"الشهر/ السنة\",\n \"postalCodeLabel\": \"الرمز البريدي\",\n \"saveCardLabel\": \"حفظ البطاقة\",\n \"payWithCard\": \"الدفع ببطاقة سحب أو ائتمان\",\n \"endingIn\": \"تنتهي بتاريخ {{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo‏\",\n \"Card\": \"البطاقة\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express‏\",\n \"Discover\": \"Discover‏\",\n \"Diners Club\": \"Diners Club‏\",\n \"Elo\": \"Elo‏\",\n \"Hiper\": \"Hiper‏\",\n \"Hipercard\": \"Hipercard‏\",\n \"MasterCard\": \"Mastercard‏\",\n \"Visa\": \"Visa‏\",\n \"JCB\": \"JCB‏\",\n \"Maestro\": \"Maestro‏\",\n \"UnionPay\": \"UnionPay‏\"\n };\n }, {}],\n 225: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"Forma úhrady: {{paymentSource}}\",\n \"chooseAnotherWayToPay\": \"Vybrat jiný způsob platby\",\n \"chooseAWayToPay\": \"Vybrat způsob platby\",\n \"otherWaysToPay\": \"Jiné způsoby platby\",\n \"edit\": \"Upravit\",\n \"doneEditing\": \"Hotovo\",\n \"editPaymentMethods\": \"Upravit způsoby platby\",\n \"CreditCardDeleteConfirmationMessage\": \"Chcete kartu {{secondaryIdentifier}} s koncovým číslem {{identifier}}odstranit?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"Chcete {{identifier}}účtu PayPal odstranit?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"Opravdu chcete účet Venmo s uživatelským jménem {{identifier}} odstranit?\",\n \"genericDeleteConfirmationMessage\": \"Opravdu chcete tento způsob platby odstranit?\",\n \"deleteCancelButton\": \"Zrušit\",\n \"deleteConfirmationButton\": \"Odstranit\",\n \"fieldEmptyForCvv\": \"Vyplňte kód CVV.\",\n \"fieldEmptyForExpirationDate\": \"Vyplňte datum vypršení platnosti.\",\n \"fieldEmptyForCardholderName\": \"Vyplňte jméno držitele karty.\",\n \"fieldTooLongForCardholderName\": \"Jméno držitele karty musí obsahovat méně než 256 znaků.\",\n \"fieldEmptyForNumber\": \"Vyplňte číslo.\",\n \"fieldEmptyForPostalCode\": \"Vyplňte poštovní směrovací číslo.\",\n \"fieldInvalidForCardholderName\": \"Toto jméno držitele karty není platné.\",\n \"fieldInvalidForCvv\": \"Tento bezpečnostní kód není platný.\",\n \"fieldInvalidForExpirationDate\": \"Toto datum vypršení platnosti není platné.\",\n \"fieldInvalidForNumber\": \"Toto číslo karty není platné.\",\n \"fieldInvalidForPostalCode\": \"Toto poštovní směrovací číslo není platné.\",\n \"noticeOfCollection\": \"Zaplacením kartou vyjadřuji souhlas s prohlášením o ochraně osobních údajů společnosti PayPal.\",\n \"genericError\": \"Došlo k chybě na naší straně.\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"Tato kreditní karta je již jako způsob platby uložena.\",\n \"hostedFieldsFailedTokenizationError\": \"Zkontrolujte zadané informace a zkuste to znovu.\",\n \"hostedFieldsFieldsInvalidError\": \"Zkontrolujte zadané informace a zkuste to znovu.\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"Došlo k chybě sítě. Zkuste to znovu.\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"Ověření kreditní karty se nezdařilo. Zkontrolujte zadané informace a zkuste to znovu.\",\n \"paypalButtonMustBeUsed\": \"Chcete-li přejít k platbě, použijte tlačítko PayPal.\",\n \"venmoButtonMustBeUsed\": \"Chcete-li pokračovat v placení, použijte tlačítko Venmo.\",\n \"paypalAccountTokenizationFailedError\": \"Při přidávání účtu PayPal došlo k chybě. Zkuste to znovu.\",\n \"paypalFlowFailedError\": \"Při připojování ke službě PayPal došlo k chybě. Zkuste to znovu.\",\n \"paypalTokenizationRequestActiveError\": \"Autorizace platby přes PayPal již probíhá.\",\n \"venmoCanceledError\": \"Došlo k chybě. Zkontrolujte, zda máte v zařízení nainstalovanou nejnovější verzi aplikace Venmo a zda prohlížeč přechod na aplikaci Venmo podporuje.\",\n \"vaultManagerPaymentMethodDeletionError\": \"Způsob platby se nepodařilo odstranit. Zkuste to znovu.\",\n \"venmoAppFailedError\": \"Aplikaci Venmo se ve vašem zařízení nepodařilo najít.\",\n \"unsupportedCardTypeError\": \"Tento typ karty není podporován. Vyzkoušejte jinou kartu.\",\n \"applePayTokenizationError\": \"Při zpracování platby přes Apple Pay došlo k chybě sítě. Zkuste to znovu.\",\n \"applePayActiveCardError\": \"Přidejte si podporovanou kartu do peněženky Apple Pay.\",\n \"cardholderNameLabel\": \"Jméno držitele karty\",\n \"cardNumberLabel\": \"Číslo karty\",\n \"cvvLabel\": \"Kód CVV\",\n \"cvvThreeDigitLabelSubheading\": \"(3 číslice)\",\n \"cvvFourDigitLabelSubheading\": \"(4 číslice)\",\n \"cardholderNamePlaceholder\": \"Jméno držitele karty\",\n \"expirationDateLabel\": \"Datum vypršení platnosti\",\n \"expirationDateLabelSubheading\": \"(MM/RR)\",\n \"expirationDatePlaceholder\": \"MM/RR\",\n \"postalCodeLabel\": \"Poštovní směrovací číslo\",\n \"saveCardLabel\": \"Uložit kartu\",\n \"payWithCard\": \"Zaplatit kartou\",\n \"endingIn\": \"Koncové číslo {{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"Karta\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"Discover\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"UnionPay\"\n };\n }, {}],\n 226: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"Betaling med {{paymentSource}}\",\n \"chooseAnotherWayToPay\": \"Vælg en anden betalingsmetode\",\n \"chooseAWayToPay\": \"Vælg, hvordan du vil betale\",\n \"otherWaysToPay\": \"Andre måder at betale på\",\n \"edit\": \"Rediger\",\n \"doneEditing\": \"Udført\",\n \"editPaymentMethods\": \"Rediger betalingsmetode\",\n \"CreditCardDeleteConfirmationMessage\": \"Vil du slette dit {{secondaryIdentifier}}-kort, der slutter på {{identifier}}?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"Vil du slette PayPal-kontoen for {{identifier}}?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"Er du sikker på, at du vil slette Venmo-konto med brugernavnet {{identifier}}?\",\n \"genericDeleteConfirmationMessage\": \"Er du sikker på, at du vil slette denne betalingsmetode?\",\n \"deleteCancelButton\": \"Annuller\",\n \"deleteConfirmationButton\": \"Slet\",\n \"fieldEmptyForCvv\": \"Du skal indtaste kontrolcifrene.\",\n \"fieldEmptyForExpirationDate\": \"Du skal indtaste en udløbsdato.\",\n \"fieldEmptyForCardholderName\": \"Du skal indtaste kortholderens navn.\",\n \"fieldTooLongForCardholderName\": \"Kortholders navn skal være mindre end 256 tegn.\",\n \"fieldEmptyForNumber\": \"Du skal indtaste et nummer.\",\n \"fieldEmptyForPostalCode\": \"Du skal indtaste et postnummer.\",\n \"fieldInvalidForCardholderName\": \"Kortindehaverens navn er ugyldigt.\",\n \"fieldInvalidForCvv\": \"Denne sikkerhedskode er ugyldig.\",\n \"fieldInvalidForExpirationDate\": \"Denne udløbsdato er ugyldig.\",\n \"fieldInvalidForNumber\": \"Dette kortnummer er ikke gyldigt.\",\n \"fieldInvalidForPostalCode\": \"Dette postnummer er ikke gyldigt.\",\n \"noticeOfCollection\": \"Når jeg betaler med mit kort, accepterer jeg PayPals erklæring om personlige oplysninger.\",\n \"genericError\": \"Der opstod en fejl.\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"Dette betalingskort findes allerede som en gemt betalingsmetode.\",\n \"hostedFieldsFailedTokenizationError\": \"Tjek oplysningerne, og prøv igen.\",\n \"hostedFieldsFieldsInvalidError\": \"Tjek oplysningerne, og prøv igen.\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"Netværksfejl. Prøv igen.\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"Bekræftelse af betalingskort mislykkedes. Tjek oplysningerne, og prøv igen.\",\n \"paypalButtonMustBeUsed\": \"Brug PayPal-knappen til at fortsætte med din betaling.\",\n \"venmoButtonMustBeUsed\": \"Brug Venmo-knappen til at fortsætte med din betaling.\",\n \"paypalAccountTokenizationFailedError\": \"Der opstod en fejl under tilføjelsen af PayPal-kontoen. Prøv igen.\",\n \"paypalFlowFailedError\": \"Det lykkedes ikke at oprette forbindelse til PayPal. Prøv igen.\",\n \"paypalTokenizationRequestActiveError\": \"PayPals betalingsautorisation er allerede i gang.\",\n \"venmoCanceledError\": \"Der opstod et problem. Sørg for, at den nyeste version af Venmo-appen er installeret på din enhed, og at din browser understøtter skift til Venmo.\",\n \"vaultManagerPaymentMethodDeletionError\": \"Betalingsmetoden kunne ikke slettes. Prøv igen.\",\n \"venmoAppFailedError\": \"Venmo-appen blev ikke fundet på din enhed.\",\n \"unsupportedCardTypeError\": \"Korttypen understøttes ikke. Prøv et andet kort.\",\n \"applePayTokenizationError\": \"Der opstod en netværksfejl under behandling af Apple Pay-betalingen. Prøv igen.\",\n \"applePayActiveCardError\": \"Føj et understøttet kort til din Apple Pay-e-pung.\",\n \"cardholderNameLabel\": \"Kortindehaverens navn\",\n \"cardNumberLabel\": \"Kortnummer\",\n \"cvvLabel\": \"Kontrolcifre\",\n \"cvvThreeDigitLabelSubheading\": \"(3 cifre)\",\n \"cvvFourDigitLabelSubheading\": \"(4 cifre)\",\n \"cardholderNamePlaceholder\": \"Kortindehaverens navn\",\n \"expirationDateLabel\": \"Udløbsdato\",\n \"expirationDateLabelSubheading\": \"(MM/ÅÅ)\",\n \"expirationDatePlaceholder\": \"MM/ÅÅ\",\n \"postalCodeLabel\": \"Postnummer\",\n \"saveCardLabel\": \"Gem kort\",\n \"payWithCard\": \"Betal med betalingskort\",\n \"endingIn\": \"Slutter på {{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"Kort\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"Discover\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"UnionPay\"\n };\n }, {}],\n 227: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"Zahlen mit {{paymentSource}}\",\n \"chooseAnotherWayToPay\": \"Wählen Sie eine andere Zahlungsquelle\",\n \"chooseAWayToPay\": \"Wählen Sie eine Zahlungsquelle\",\n \"otherWaysToPay\": \"Sonstige Zahlungsquellen\",\n \"edit\": \"Ändern\",\n \"doneEditing\": \"Fertig\",\n \"editPaymentMethods\": \"Zahlungsquellen bearbeiten\",\n \"CreditCardDeleteConfirmationMessage\": \"{{secondaryIdentifier}}-Karte mit den Endziffern {{identifier}} löschen?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"PayPal-Konto {{identifier}} löschen?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"Wollen Sie das Venmo-Konto mit dem Benutzernamen {{identifier}} wirklich löschen?\",\n \"genericDeleteConfirmationMessage\": \"Möchten Sie diese Zahlungsquelle wirklich löschen?\",\n \"deleteCancelButton\": \"Abbrechen\",\n \"deleteConfirmationButton\": \"Löschen\",\n \"fieldEmptyForCvv\": \"Geben Sie die Kartenprüfnummer (CVV) ein.\",\n \"fieldEmptyForExpirationDate\": \"Geben Sie das Ablaufdatum ein.\",\n \"fieldEmptyForCardholderName\": \"Geben Sie den Namen des Karteninhabers ein.\",\n \"fieldTooLongForCardholderName\": \"Der Name des Karteninhabers darf nicht länger als 256 Zeichen sein.\",\n \"fieldEmptyForNumber\": \"Geben Sie eine Nummer ein.\",\n \"fieldEmptyForPostalCode\": \"Geben Sie eine Postleitzahl ein.\",\n \"fieldInvalidForCardholderName\": \"Der Name des Karteninhabers ist nicht gültig.\",\n \"fieldInvalidForCvv\": \"Diese Kartenprüfnummer ist ungültig.\",\n \"fieldInvalidForExpirationDate\": \"Dieses Ablaufdatum ist ungültig.\",\n \"fieldInvalidForNumber\": \"Diese Kartennummer ist ungültig.\",\n \"fieldInvalidForPostalCode\": \"Diese Postleitzahl ist ungültig.\",\n \"noticeOfCollection\": \"Indem ich mit meiner Karte bezahle, stimme ich der PayPal-Datenschutzerklärung zu.\",\n \"genericError\": \"Bei uns ist ein Fehler aufgetreten.\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"Diese Kreditkarte ist bereits als gespeicherte Zahlungsquelle vorhanden.\",\n \"hostedFieldsFailedTokenizationError\": \"Bitte prüfen Sie die Informationen und versuchen Sie es erneut.\",\n \"hostedFieldsFieldsInvalidError\": \"Bitte prüfen Sie die Informationen und versuchen Sie es erneut.\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"Netzwerkfehler. Versuchen Sie es bitte erneut.\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"Die Kreditkartenverifizierung ist fehlgeschlagen. Bitte prüfen Sie die Informationen und versuchen Sie es erneut.\",\n \"paypalButtonMustBeUsed\": \"Verwenden Sie den PayPal-Button, um mit der Zahlung fortzufahren.\",\n \"venmoButtonMustBeUsed\": \"Verwenden Sie den Venmo-Button, um mit Ihrer Zahlung fortzufahren.\",\n \"paypalAccountTokenizationFailedError\": \"Beim Hinzufügen des PayPal-Kontos ist ein Fehler aufgetreten. Versuchen Sie es bitte erneut.\",\n \"paypalFlowFailedError\": \"Bei der Verbindung mit PayPal ist ein Fehler aufgetreten. Versuchen Sie es bitte erneut.\",\n \"paypalTokenizationRequestActiveError\": \"Die PayPal-Zahlungsautorisierung wird bereits vorgenommen.\",\n \"venmoCanceledError\": \"Etwas ist schief gelaufen. Vergewissern Sie sich, dass Sie die neueste Version der Venmo-App auf Ihrem Gerät installiert haben und Ihr Browser den Wechsel zu Venmo unterstützt.\",\n \"vaultManagerPaymentMethodDeletionError\": \"Die Zahlungsquelle konnte nicht gelöscht werden. Versuchen Sie es erneut.\",\n \"venmoAppFailedError\": \"Die Venmo-App wurde nicht auf Ihrem Gerät gefunden.\",\n \"unsupportedCardTypeError\": \"Dieser Kartentyp wird nicht unterstützt. Versuchen Sie es mit einer anderen Karte.\",\n \"applePayTokenizationError\": \"Bei der Verarbeitung der Apple Pay-Zahlung ist ein Netzwerkfehler aufgetreten. Versuchen Sie es bitte erneut.\",\n \"applePayActiveCardError\": \"Fügen Sie Ihrem Apple Pay-Wallet eine unterstützte Karte hinzu.\",\n \"cardholderNameLabel\": \"Name des Karteninhabers\",\n \"cardNumberLabel\": \"Kartennummer\",\n \"cvvLabel\": \"Kartenprüfnummer\",\n \"cvvThreeDigitLabelSubheading\": \"(3-stellig)\",\n \"cvvFourDigitLabelSubheading\": \"(4-stellig)\",\n \"cardholderNamePlaceholder\": \"Name des Karteninhabers\",\n \"expirationDateLabel\": \"Gültig bis\",\n \"expirationDateLabelSubheading\": \"(MM/JJ)\",\n \"expirationDatePlaceholder\": \"MM/JJ\",\n \"postalCodeLabel\": \"Postleitzahl\",\n \"saveCardLabel\": \"Karte speichern\",\n \"payWithCard\": \"Mit Karte zahlen\",\n \"endingIn\": \"Mit den Endziffern {{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"Karte\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"Discover\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"UnionPay\"\n };\n }, {}],\n 228: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"Πληρωμή με {{paymentSource}}\",\n \"chooseAnotherWayToPay\": \"Επιλογή ενός άλλου τρόπου πληρωμής\",\n \"chooseAWayToPay\": \"Επιλογή τρόπου πληρωμής\",\n \"otherWaysToPay\": \"Άλλοι τρόποι πληρωμής\",\n \"edit\": \"Επεξεργασία\",\n \"doneEditing\": \"Τέλος\",\n \"editPaymentMethods\": \"Επεξεργασία μεθόδων πληρωμής\",\n \"CreditCardDeleteConfirmationMessage\": \"Διαγραφή της κάρτας {{secondaryIdentifier}} που λήγει σε {{identifier}};\",\n \"PayPalAccountDeleteConfirmationMessage\": \"Διαγραφή {{identifier}}λογαριασμού PayPal;\",\n \"VenmoAccountDeleteConfirmationMessage\": \"Θέλετε σίγουρα να διαγράψετε τον λογαριασμό Venmo με το όνομα χρήστη {{identifier}};\",\n \"genericDeleteConfirmationMessage\": \"Θέλετε σίγουρα να διαγράψετε αυτήν τη μέθοδο πληρωμής;\",\n \"deleteCancelButton\": \"Ακύρωση\",\n \"deleteConfirmationButton\": \"Διαγραφή\",\n \"fieldEmptyForCvv\": \"Συμπληρώστε έναν κωδικό ασφαλείας (CVV).\",\n \"fieldEmptyForExpirationDate\": \"Συμπληρώστε ημερομηνία λήξης.\",\n \"fieldEmptyForCardholderName\": \"Συμπληρώστε το όνομα ενός κατόχου κάρτας.\",\n \"fieldTooLongForCardholderName\": \"Το όνομα του κατόχου της κάρτας πρέπει να περιέχει λιγότερους από 256 χαρακτήρες.\",\n \"fieldEmptyForNumber\": \"Συμπληρώστε έναν αριθμό.\",\n \"fieldEmptyForPostalCode\": \"Συμπληρώστε έναν ταχυδρομικό κώδικα.\",\n \"fieldInvalidForCardholderName\": \"Αυτό το όνομα κατόχου κάρτας δεν είναι έγκυρο.\",\n \"fieldInvalidForCvv\": \"Αυτός ο κωδικός ασφαλείας δεν είναι έγκυρος.\",\n \"fieldInvalidForExpirationDate\": \"Αυτή η ημερομηνία λήξης δεν είναι έγκυρη.\",\n \"fieldInvalidForNumber\": \"Αυτός ο αριθμός κάρτας δεν είναι έγκυρος.\",\n \"fieldInvalidForPostalCode\": \"Αυτός ο ταχυδρομικός κώδικας δεν είναι έγκυρος.\",\n \"noticeOfCollection\": \"Πληρώνοντας με την κάρτα μου, αποδέχομαι τη Δήλωση απορρήτου της PayPal.\",\n \"genericError\": \"Προέκυψε πρόβλημα στο σύστημά μας.\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"Αυτή η πιστωτική κάρτα υπάρχει ήδη ως αποθηκευμένη μέθοδος πληρωμής.\",\n \"hostedFieldsFailedTokenizationError\": \"Ελέγξτε τα στοιχεία σας και δοκιμάστε ξανά.\",\n \"hostedFieldsFieldsInvalidError\": \"Ελέγξτε τα στοιχεία σας και δοκιμάστε ξανά.\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"Σφάλμα δικτύου. Δοκιμάστε ξανά.\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"Η επαλήθευση της πιστωτικής κάρτας απέτυχε. Ελέγξτε τα στοιχεία σας και δοκιμάστε ξανά.\",\n \"paypalButtonMustBeUsed\": \"Χρησιμοποιήστε το κουμπί PayPal για να συνεχίσετε με την πληρωμή.\",\n \"venmoButtonMustBeUsed\": \"Χρησιμοποιήστε το κουμπί Venmo για να συνεχίσετε με την πληρωμή σας.\",\n \"paypalAccountTokenizationFailedError\": \"Προέκυψε κάποιο πρόβλημα με την προσθήκη του λογαριασμού PayPal. Δοκιμάστε ξανά.\",\n \"paypalFlowFailedError\": \"Προέκυψε κάποιο πρόβλημα με τη σύνδεση στην PayPal. Δοκιμάστε ξανά.\",\n \"paypalTokenizationRequestActiveError\": \"Η εξουσιοδότηση πληρωμής μέσω PayPal βρίσκεται ήδη σε εξέλιξη.\",\n \"venmoCanceledError\": \"Προέκυψε πρόβλημα. Βεβαιωθείτε ότι έχετε την πιο πρόσφατη έκδοση της εφαρμογής Venmo εγκατεστημένη στη συσκευή σας και ότι το πρόγραμμα περιήγησής σας υποστηρίζει τη μετάβαση στη Venmo.\",\n \"vaultManagerPaymentMethodDeletionError\": \"Η διαγραφή της μεθόδου πληρωμής είναι αδύνατη, δοκιμάστε ξανά.\",\n \"venmoAppFailedError\": \"Η εφαρμογή Venmo δεν βρέθηκε στη συσκευή σας.\",\n \"unsupportedCardTypeError\": \"Αυτός ο τύπος κάρτας δεν υποστηρίζεται. Δοκιμάστε μια άλλη κάρτα.\",\n \"applePayTokenizationError\": \"Προέκυψε σφάλμα δικτύου κατά την επεξεργασία της πληρωμής μέσω Apple Pay. Δοκιμάστε ξανά.\",\n \"applePayActiveCardError\": \"Προσθέστε μια υποστηριζόμενη κάρτα στο ψηφιακό πορτοφόλι Apple Pay.\",\n \"cardholderNameLabel\": \"Όνομα κατόχου κάρτας\",\n \"cardNumberLabel\": \"Αριθμός κάρτας\",\n \"cvvLabel\": \"Κωδικός ασφαλείας (CVV)\",\n \"cvvThreeDigitLabelSubheading\": \"(3 ψηφία)\",\n \"cvvFourDigitLabelSubheading\": \"(4 ψηφία)\",\n \"cardholderNamePlaceholder\": \"Όνομα κατόχου κάρτας\",\n \"expirationDateLabel\": \"Ημερομηνία λήξης\",\n \"expirationDateLabelSubheading\": \"(ΜΜ/ΕΕ)\",\n \"expirationDatePlaceholder\": \"ΜΜ/ΕΕ\",\n \"postalCodeLabel\": \"Ταχυδρομικός κώδικας\",\n \"saveCardLabel\": \"Αποθήκευση κάρτας\",\n \"payWithCard\": \"Πληρωμή με κάρτα\",\n \"endingIn\": \"Που λήγει σε {{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"Κάρτα\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"Discover\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"UnionPay\"\n };\n }, {}],\n 229: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"Paying with {{paymentSource}}\",\n \"chooseAnotherWayToPay\": \"Choose another way to pay\",\n \"chooseAWayToPay\": \"Choose a way to pay\",\n \"otherWaysToPay\": \"Other ways to pay\",\n \"edit\": \"Edit\",\n \"doneEditing\": \"Done\",\n \"editPaymentMethods\": \"Edit payment methods\",\n \"CreditCardDeleteConfirmationMessage\": \"Delete {{secondaryIdentifier}} card ending in {{identifier}}?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"Delete PayPal account {{identifier}}?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"Are you sure you want to delete Venmo account with username {{identifier}}?\",\n \"genericDeleteConfirmationMessage\": \"Are you sure you want to delete this payment method?\",\n \"deleteCancelButton\": \"Cancel\",\n \"deleteConfirmationButton\": \"Delete\",\n \"fieldEmptyForCvv\": \"Please enter a CVV.\",\n \"fieldEmptyForExpirationDate\": \"Please enter an expiry date.\",\n \"fieldEmptyForCardholderName\": \"Please enter a cardholder name.\",\n \"fieldTooLongForCardholderName\": \"Cardholder name must be less than 256 characters.\",\n \"fieldEmptyForNumber\": \"Please enter a number.\",\n \"fieldEmptyForPostalCode\": \"Please enter a postcode.\",\n \"fieldInvalidForCardholderName\": \"This cardholder name isn't valid.\",\n \"fieldInvalidForCvv\": \"This CVV isn't valid.\",\n \"fieldInvalidForExpirationDate\": \"This expiry date isn't valid.\",\n \"fieldInvalidForNumber\": \"This card number isn't valid.\",\n \"fieldInvalidForPostalCode\": \"This postcode isn't valid.\",\n \"noticeOfCollection\": \"By paying with my card, I agree to the PayPal Privacy Statement.\",\n \"genericError\": \"We're sorry, something seems to have gone wrong.\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"This card already exists as a saved payment method.\",\n \"hostedFieldsFailedTokenizationError\": \"Please check your entries and try again.\",\n \"hostedFieldsFieldsInvalidError\": \"Please check your entries and try again.\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"Network error. Please try again.\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"Card verification failed. Please check your entries and try again.\",\n \"paypalButtonMustBeUsed\": \"Use the PayPal button to continue with your payment.\",\n \"venmoButtonMustBeUsed\": \"Use the Venmo button to continue with your payment.\",\n \"paypalAccountTokenizationFailedError\": \"Something went wrong adding the PayPal account. Please try again.\",\n \"paypalFlowFailedError\": \"Something went wrong connecting to PayPal. Please try again.\",\n \"paypalTokenizationRequestActiveError\": \"PayPal payment authorisation is already in progress.\",\n \"venmoCanceledError\": \"We're sorry, something seems to have gone wrong. Please make sure you have the most recent version of the Venmo app installed on your device and that your browser supports switching to Venmo.\",\n \"vaultManagerPaymentMethodDeletionError\": \"Unable to delete payment method. Please try again.\",\n \"venmoAppFailedError\": \"The Venmo app couldn't be found on your device.\",\n \"unsupportedCardTypeError\": \"This card type isn't supported. Please try another card.\",\n \"applePayTokenizationError\": \"A network error occurred while processing the Apple Pay payment. Please try again.\",\n \"applePayActiveCardError\": \"Add a supported card to your Apple Pay wallet.\",\n \"cardholderNameLabel\": \"Cardholder name\",\n \"cardNumberLabel\": \"Card number\",\n \"cvvLabel\": \"CVV\",\n \"cvvThreeDigitLabelSubheading\": \"(3 digits)\",\n \"cvvFourDigitLabelSubheading\": \"(4 digits)\",\n \"cardholderNamePlaceholder\": \"Cardholder name\",\n \"expirationDateLabel\": \"Expiry date\",\n \"expirationDateLabelSubheading\": \"(MM/YY)\",\n \"expirationDatePlaceholder\": \"MM/YY\",\n \"postalCodeLabel\": \"Postcode\",\n \"saveCardLabel\": \"Save card\",\n \"payWithCard\": \"Pay with card\",\n \"endingIn\": \"Ending in {{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"Card\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"Discover\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"UnionPay\"\n };\n }, {}],\n 230: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"Paying with {{paymentSource}}\",\n \"chooseAnotherWayToPay\": \"Choose another way to pay\",\n \"chooseAWayToPay\": \"Choose a way to pay\",\n \"otherWaysToPay\": \"Other ways to pay\",\n \"edit\": \"Edit\",\n \"doneEditing\": \"Done\",\n \"editPaymentMethods\": \"Edit funding sources\",\n \"CreditCardDeleteConfirmationMessage\": \"Delete {{secondaryIdentifier}} card ending in {{identifier}}?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"Delete PayPal account {{identifier}}?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"Are you sure you want to delete Venmo account with username {{identifier}}?\",\n \"genericDeleteConfirmationMessage\": \"Are you sure you want to delete this funding source?\",\n \"deleteCancelButton\": \"Cancel\",\n \"deleteConfirmationButton\": \"Delete\",\n \"fieldEmptyForCvv\": \"Please enter a security code.\",\n \"fieldEmptyForExpirationDate\": \"Please enter an expiry date.\",\n \"fieldEmptyForCardholderName\": \"Please enter a cardholder name.\",\n \"fieldTooLongForCardholderName\": \"Cardholder name must be less than 256 characters.\",\n \"fieldEmptyForNumber\": \"Please enter a number.\",\n \"fieldEmptyForPostalCode\": \"Please enter a postcode.\",\n \"fieldInvalidForCardholderName\": \"This cardholder name isn't valid.\",\n \"fieldInvalidForCvv\": \"This security code isn't valid.\",\n \"fieldInvalidForExpirationDate\": \"This expiry date isn't valid.\",\n \"fieldInvalidForNumber\": \"This card number isn't valid.\",\n \"fieldInvalidForPostalCode\": \"This postcode isn't valid.\",\n \"noticeOfCollection\": \"By paying with my card, I agree to the PayPal Privacy Statement.\",\n \"genericError\": \"Something went wrong on our end.\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"This credit card already exists as a saved funding source.\",\n \"hostedFieldsFailedTokenizationError\": \"Please check your information and try again.\",\n \"hostedFieldsFieldsInvalidError\": \"Please check your information and try again.\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"Network error. Please try again.\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"Credit card verification failed. Please check your information and try again.\",\n \"paypalButtonMustBeUsed\": \"Use the PayPal button to continue with your payment.\",\n \"venmoButtonMustBeUsed\": \"Use the Venmo button to continue with your payment.\",\n \"paypalAccountTokenizationFailedError\": \"Something went wrong adding the PayPal account. Please try again.\",\n \"paypalFlowFailedError\": \"Something went wrong connecting to PayPal. Please try again.\",\n \"paypalTokenizationRequestActiveError\": \"PayPal payment authorisation is already in progress.\",\n \"venmoCanceledError\": \"Something went wrong. Ensure you have the most recent version of the Venmo app installed on your device and your browser supports switching to Venmo.\",\n \"vaultManagerPaymentMethodDeletionError\": \"We were unable to delete the funding source. Please try again.\",\n \"venmoAppFailedError\": \"The Venmo app couldn't be found on your device.\",\n \"unsupportedCardTypeError\": \"This card type isn't supported. Please try another card.\",\n \"applePayTokenizationError\": \"A network error occurred while processing the Apple Pay payment. Please try again.\",\n \"applePayActiveCardError\": \"Add a supported card to your Apple Pay wallet.\",\n \"cardholderNameLabel\": \"Cardholder name\",\n \"cardNumberLabel\": \"Card number\",\n \"cvvLabel\": \"Security code\",\n \"cvvThreeDigitLabelSubheading\": \"(3 digits)\",\n \"cvvFourDigitLabelSubheading\": \"(4 digits)\",\n \"cardholderNamePlaceholder\": \"Cardholder name\",\n \"expirationDateLabel\": \"Expiry date\",\n \"expirationDateLabelSubheading\": \"(MM/YY)\",\n \"expirationDatePlaceholder\": \"MM/YY\",\n \"postalCodeLabel\": \"Postcode\",\n \"saveCardLabel\": \"Save card\",\n \"payWithCard\": \"Pay with card\",\n \"endingIn\": \"Ending in {{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"Card\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"Discover\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"UnionPay\"\n };\n }, {}],\n 231: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"Paying with {{paymentSource}}\",\n \"chooseAnotherWayToPay\": \"Choose another way to pay\",\n \"chooseAWayToPay\": \"Choose a way to pay\",\n \"otherWaysToPay\": \"Other ways to pay\",\n \"edit\": \"Edit\",\n \"doneEditing\": \"Done\",\n \"editPaymentMethods\": \"Edit payment methods\",\n \"CreditCardDeleteConfirmationMessage\": \"Delete {{secondaryIdentifier}} card ending in {{identifier}}?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"Delete PayPal account {{identifier}}?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"Are you sure you want to delete Venmo account with username {{identifier}}?\",\n \"genericDeleteConfirmationMessage\": \"Are you sure you want to delete this payment method?\",\n \"deleteCancelButton\": \"Cancel\",\n \"deleteConfirmationButton\": \"Delete\",\n \"fieldEmptyForCvv\": \"Please enter a CVV.\",\n \"fieldEmptyForExpirationDate\": \"Please enter an expiry date.\",\n \"fieldEmptyForCardholderName\": \"Please enter a cardholder name.\",\n \"fieldTooLongForCardholderName\": \"Cardholder name must be less than 256 characters.\",\n \"fieldEmptyForNumber\": \"Please enter a number.\",\n \"fieldEmptyForPostalCode\": \"Please enter a PIN code.\",\n \"fieldInvalidForCardholderName\": \"This cardholder name isn't valid.\",\n \"fieldInvalidForCvv\": \"This CVV isn't valid.\",\n \"fieldInvalidForExpirationDate\": \"This expiry date isn't valid.\",\n \"fieldInvalidForNumber\": \"This card number isn't valid.\",\n \"fieldInvalidForPostalCode\": \"This PIN code isn't valid.\",\n \"noticeOfCollection\": \"By paying with my card, I agree to the PayPal Privacy Statement.\",\n \"genericError\": \"We're sorry, something seems to have gone wrong.\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"This card already exists as a saved payment method.\",\n \"hostedFieldsFailedTokenizationError\": \"Please check your information and try again.\",\n \"hostedFieldsFieldsInvalidError\": \"Please check your information and try again.\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"Network error. Please try again.\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"Card verification failed. Please check your information and try again.\",\n \"paypalButtonMustBeUsed\": \"Use the PayPal button to continue with your payment.\",\n \"venmoButtonMustBeUsed\": \"Use the Venmo button to continue with your payment.\",\n \"paypalAccountTokenizationFailedError\": \"Something went wrong adding the PayPal account. Please try again.\",\n \"paypalFlowFailedError\": \"Something went wrong connecting to PayPal. Please try again.\",\n \"paypalTokenizationRequestActiveError\": \"PayPal payment authorisation is already in progress.\",\n \"venmoCanceledError\": \"We're sorry, something seems to have gone wrong. Ensure you have the most recent version of the Venmo app installed on your device and your browser supports switching to Venmo.\",\n \"vaultManagerPaymentMethodDeletionError\": \"Unable to delete payment method. Please try again.\",\n \"venmoAppFailedError\": \"The Venmo app couldn't be found on your device.\",\n \"unsupportedCardTypeError\": \"This card type isn't supported. Please try another card.\",\n \"applePayTokenizationError\": \"A network error occurred while processing the Apple Pay payment. Please try again.\",\n \"applePayActiveCardError\": \"Add a supported card to your Apple Pay digital wallet.\",\n \"cardholderNameLabel\": \"Cardholder name\",\n \"cardNumberLabel\": \"Card number\",\n \"cvvLabel\": \"CVV\",\n \"cvvThreeDigitLabelSubheading\": \"(3 digits)\",\n \"cvvFourDigitLabelSubheading\": \"(4 digits)\",\n \"cardholderNamePlaceholder\": \"Cardholder name\",\n \"expirationDateLabel\": \"Expiry date\",\n \"expirationDateLabelSubheading\": \"(MM/YY)\",\n \"expirationDatePlaceholder\": \"MM/YY\",\n \"postalCodeLabel\": \"PIN code\",\n \"saveCardLabel\": \"Save card\",\n \"payWithCard\": \"Pay with card\",\n \"endingIn\": \"Ending in {{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"Card\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"Discover\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"UnionPay\"\n };\n }, {}],\n 232: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n payingWith: 'Paying with {{paymentSource}}',\n chooseAnotherWayToPay: 'Choose another way to pay',\n chooseAWayToPay: 'Choose a way to pay',\n otherWaysToPay: 'Other ways to pay',\n edit: 'Edit',\n doneEditing: 'Done',\n editPaymentMethods: 'Edit payment methods',\n CreditCardDeleteConfirmationMessage: 'Delete {{secondaryIdentifier}} card ending in {{identifier}}?',\n PayPalAccountDeleteConfirmationMessage: 'Delete PayPal account {{identifier}}?',\n VenmoAccountDeleteConfirmationMessage: 'Are you sure you want to delete Venmo account with username {{identifier}}?',\n genericDeleteConfirmationMessage: 'Are you sure you want to delete this payment method?',\n deleteCancelButton: 'Cancel',\n deleteConfirmationButton: 'Delete',\n // Errors\n fieldEmptyForCvv: 'Please fill out a CVV.',\n fieldEmptyForExpirationDate: 'Please fill out an expiration date.',\n fieldEmptyForCardholderName: 'Please fill out a cardholder name.',\n fieldEmptyForNumber: 'Please fill out a card number.',\n fieldEmptyForPostalCode: 'Please fill out a postal code.',\n fieldInvalidForCardholderName: 'This cardholder name is not valid.',\n fieldInvalidForCvv: 'This security code is not valid.',\n fieldInvalidForExpirationDate: 'This expiration date is not valid.',\n fieldInvalidForNumber: 'This card number is not valid.',\n fieldInvalidForPostalCode: 'This postal code is not valid.',\n fieldTooLongForCardholderName: 'Cardholder name must be less than 256 characters.',\n noticeOfCollection: 'By paying with my card, I agree to the PayPal Privacy Statement.',\n genericError: 'Something went wrong on our end.',\n hostedFieldsTokenizationFailOnDuplicateError: 'This credit card already exists as a saved payment method.',\n hostedFieldsFailedTokenizationError: 'Please check your information and try again.',\n hostedFieldsTokenizationCvvVerificationFailedError: 'Credit card verification failed. Please check your information and try again.',\n hostedFieldsTokenizationNetworkErrorError: 'Network error. Please try again.',\n hostedFieldsFieldsInvalidError: 'Please check your information and try again.',\n paypalButtonMustBeUsed: 'Use the PayPal button to continue with your payment.',\n venmoButtonMustBeUsed: 'Use the Venmo button to continue with your payment.',\n paypalAccountTokenizationFailedError: 'Something went wrong adding the PayPal account. Please try again.',\n paypalFlowFailedError: 'Something went wrong connecting to PayPal. Please try again.',\n paypalTokenizationRequestActiveError: 'PayPal payment authorization is already in progress.',\n applePayTokenizationError: 'A network error occurred while processing the Apple Pay payment. Please try again.',\n applePayActiveCardError: 'Add a supported card to your Apple Pay wallet.',\n vaultManagerPaymentMethodDeletionError: 'Unable to delete payment method, try again.',\n venmoCanceledError: 'Something went wrong. Ensure you have the most recent version of the Venmo app installed on your device and your browser supports switching to Venmo.',\n venmoAppFailedError: 'The Venmo app could not be found on your device.',\n unsupportedCardTypeError: 'This card type is not supported. Please try another card.',\n // Card form\n cardholderNameLabel: 'Cardholder Name',\n cardNumberLabel: 'Card Number',\n cvvLabel: 'CVV',\n cvvThreeDigitLabelSubheading: '(3 digits)',\n cvvFourDigitLabelSubheading: '(4 digits)',\n expirationDateLabel: 'Expiration Date',\n expirationDateLabelSubheading: '(MM/YY)',\n cardholderNamePlaceholder: 'Cardholder Name',\n expirationDatePlaceholder: 'MM/YY',\n postalCodeLabel: 'Postal Code',\n saveCardLabel: 'Save card',\n payWithCard: 'Pay with card',\n // Payment Method descriptions\n endingIn: 'Ending in {{lastFourCardDigits}}',\n Card: 'Card',\n PayPal: 'PayPal',\n 'PayPal Credit': 'PayPal Credit',\n 'Apple Pay': 'Apple Pay',\n 'Google Pay': 'Google Pay',\n 'Venmo': 'Venmo',\n 'American Express': 'American Express',\n Discover: 'Discover',\n 'Diners Club': 'Diners Club',\n Elo: 'Elo',\n Hiper: 'Hiper',\n Hipercard: 'Hipercard',\n MasterCard: 'Mastercard',\n Visa: 'Visa',\n JCB: 'JCB',\n Maestro: 'Maestro',\n UnionPay: 'UnionPay'\n };\n }, {}],\n 233: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"Pagar con {{paymentSource}}\",\n \"chooseAnotherWayToPay\": \"Seleccionar otra forma de pago\",\n \"chooseAWayToPay\": \"Seleccionar forma de pago\",\n \"otherWaysToPay\": \"Otras formas de pago\",\n \"edit\": \"Editar\",\n \"doneEditing\": \"Hecho\",\n \"editPaymentMethods\": \"Editar formas de pago\",\n \"CreditCardDeleteConfirmationMessage\": \"¿Eliminar la tarjeta {{secondaryIdentifier}} terminada en {{identifier}}?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"¿Eliminar la cuenta PayPal {{identifier}}?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"¿Seguro que deseas eliminar la cuenta de Venmo con el nombre de usuario {{identifier}}?\",\n \"genericDeleteConfirmationMessage\": \"¿Seguro que deseas eliminar esta forma de pago?\",\n \"deleteCancelButton\": \"Cancelar\",\n \"deleteConfirmationButton\": \"Eliminar\",\n \"fieldEmptyForCvv\": \"Introduce el CVV.\",\n \"fieldEmptyForExpirationDate\": \"Introduce una fecha de vencimiento.\",\n \"fieldEmptyForCardholderName\": \"Introduce el nombre del titular de la tarjeta.\",\n \"fieldTooLongForCardholderName\": \"El nombre del titular de la tarjeta debe tener menos de 256 caracteres.\",\n \"fieldEmptyForNumber\": \"Introduce un número.\",\n \"fieldEmptyForPostalCode\": \"Introduce un código postal.\",\n \"fieldInvalidForCardholderName\": \"El nombre del titular de la tarjeta no es válido.\",\n \"fieldInvalidForCvv\": \"El código de seguridad no es válido.\",\n \"fieldInvalidForExpirationDate\": \"La fecha de vencimiento no es válida.\",\n \"fieldInvalidForNumber\": \"El número de tarjeta no es válido.\",\n \"fieldInvalidForPostalCode\": \"El código postal no es válido.\",\n \"noticeOfCollection\": \"Al pagar con mi tarjeta, acepto la Declaración de privacidad de PayPal.\",\n \"genericError\": \"Ha habido un problema.\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"Esta tarjeta de crédito ya existe como forma de pago guardada.\",\n \"hostedFieldsFailedTokenizationError\": \"Comprueba la información e inténtalo de nuevo.\",\n \"hostedFieldsFieldsInvalidError\": \"Comprueba la información e inténtalo de nuevo.\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"Error de red. Inténtalo de nuevo.\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"Error al verificar la tarjeta de crédito. Comprueba la información e inténtalo de nuevo.\",\n \"paypalButtonMustBeUsed\": \"Utiliza el botón de PayPal para continuar con el pago.\",\n \"venmoButtonMustBeUsed\": \"Pulsa el botón de Venmo para continuar con el pago.\",\n \"paypalAccountTokenizationFailedError\": \"Se ha producido un error al añadir la cuenta PayPal. Inténtalo de nuevo.\",\n \"paypalFlowFailedError\": \"Se ha producido un error al conectar con PayPal. Inténtalo de nuevo.\",\n \"paypalTokenizationRequestActiveError\": \"La autorización del pago de PayPal ya está en curso.\",\n \"venmoCanceledError\": \"Ha habido un error. Asegúrate de tener la versión más reciente de la aplicación de Venmo instalada en el dispositivo y de que el navegador admita el cambio a Venmo.\",\n \"vaultManagerPaymentMethodDeletionError\": \"No se puede eliminar la forma de pago. Inténtalo de nuevo.\",\n \"venmoAppFailedError\": \"No se ha podido encontrar la aplicación de Venmo en tu dispositivo.\",\n \"unsupportedCardTypeError\": \"No se admite este tipo de tarjeta. Prueba con otra tarjeta.\",\n \"applePayTokenizationError\": \"Se ha producido un error de red al procesar el pago de Apple Pay. Inténtalo de nuevo.\",\n \"applePayActiveCardError\": \"Añade una tarjeta compatible a tu cartera de Apple Pay.\",\n \"cardholderNameLabel\": \"Nombre del titular de la tarjeta\",\n \"cardNumberLabel\": \"Número de tarjeta\",\n \"cvvLabel\": \"CVV\",\n \"cvvThreeDigitLabelSubheading\": \"(3 dígitos)\",\n \"cvvFourDigitLabelSubheading\": \"(4 dígitos)\",\n \"cardholderNamePlaceholder\": \"Nombre del titular de la tarjeta\",\n \"expirationDateLabel\": \"Fecha de vencimiento\",\n \"expirationDateLabelSubheading\": \"(MM/AA)\",\n \"expirationDatePlaceholder\": \"MM/AA\",\n \"postalCodeLabel\": \"Código postal\",\n \"saveCardLabel\": \"Guardar tarjeta\",\n \"payWithCard\": \"Pagar con tarjeta\",\n \"endingIn\": \"Terminada en {{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"Tarjeta\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"Discover\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"UnionPay\"\n };\n }, {}],\n 234: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"Pagar con {{paymentSource}}\",\n \"chooseAnotherWayToPay\": \"Elija otra forma de pago\",\n \"chooseAWayToPay\": \"Seleccione una forma de pago\",\n \"otherWaysToPay\": \"Otras formas de pago\",\n \"edit\": \"Editar\",\n \"doneEditing\": \"Listo\",\n \"editPaymentMethods\": \"Editar métodos de pago\",\n \"CreditCardDeleteConfirmationMessage\": \"¿Eliminar tarjeta {{secondaryIdentifier}} con terminación {{identifier}}?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"¿Desea eliminar la cuenta de PayPal {{identifier}}?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"¿Seguro que desea eliminar la cuenta de Venmo con el nombre de usuario {{identifier}}?\",\n \"genericDeleteConfirmationMessage\": \"¿Seguro que desea eliminar esta forma de pago?\",\n \"deleteCancelButton\": \"Cancelar\",\n \"deleteConfirmationButton\": \"Eliminar\",\n \"fieldEmptyForCvv\": \"Ingrese un CVV.\",\n \"fieldEmptyForExpirationDate\": \"Ingrese una fecha de vencimiento.\",\n \"fieldEmptyForCardholderName\": \"Ingrese un nombre de titular de tarjeta.\",\n \"fieldTooLongForCardholderName\": \"El nombre del titular de la tarjeta debe tener menos de 256 caracteres.\",\n \"fieldEmptyForNumber\": \"Ingrese un número.\",\n \"fieldEmptyForPostalCode\": \"Ingrese un código postal.\",\n \"fieldInvalidForCardholderName\": \"El nombre del titular de la tarjeta no es válido.\",\n \"fieldInvalidForCvv\": \"Este código de seguridad no es válido.\",\n \"fieldInvalidForExpirationDate\": \"Esta fecha de vencimiento no es válida.\",\n \"fieldInvalidForNumber\": \"Este número de tarjeta no es válido.\",\n \"fieldInvalidForPostalCode\": \"Este código postal no es válido.\",\n \"noticeOfCollection\": \"Al pagar con mi tarjeta, acepto el Aviso de Privacidad de PayPal.\",\n \"genericError\": \"Se ha producido un error.\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"Esta tarjeta de crédito ya existe como forma de pago guardada.\",\n \"hostedFieldsFailedTokenizationError\": \"Revise la información e inténtelo de nuevo.\",\n \"hostedFieldsFieldsInvalidError\": \"Revise la información e inténtelo de nuevo.\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"Error de red. Inténtelo de nuevo.\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"La verificación de la tarjeta de crédito falló. Revise la información e inténtelo de nuevo.\",\n \"paypalButtonMustBeUsed\": \"Utilice el botón de PayPal para continuar con su pago.\",\n \"venmoButtonMustBeUsed\": \"Use el botón Venmo para continuar con el pago.\",\n \"paypalAccountTokenizationFailedError\": \"Se ha producido un error al agregar la cuenta de PayPal. Inténtelo de nuevo.\",\n \"paypalFlowFailedError\": \"Se ha producido un error al conectar con PayPal. Inténtelo de nuevo.\",\n \"paypalTokenizationRequestActiveError\": \"La autorización de pago de PayPal ya está en curso.\",\n \"venmoCanceledError\": \"Se ha producido un error. Asegúrese de que tiene la versión más reciente de la aplicación de Venmo instalada en su dispositivo y que su navegador admita el sitio web Venmo.\",\n \"vaultManagerPaymentMethodDeletionError\": \"No se pudo eliminar la forma de pago, inténtelo de nuevo.\",\n \"venmoAppFailedError\": \"No se pudo encontrar la aplicación de Venmo en su dispositivo.\",\n \"unsupportedCardTypeError\": \"Este tipo de tarjeta no es compatible. Inténtelo con otra tarjeta.\",\n \"applePayTokenizationError\": \"Se ha producido un error de red al procesar el pago de Apple Pay. Inténtelo de nuevo.\",\n \"applePayActiveCardError\": \"Agregue una tarjeta compatible a su cartera de Apple Pay.\",\n \"cardholderNameLabel\": \"Nombre del titular de la tarjeta\",\n \"cardNumberLabel\": \"Número de tarjeta\",\n \"cvvLabel\": \"CVV\",\n \"cvvThreeDigitLabelSubheading\": \"(3 dígitos)\",\n \"cvvFourDigitLabelSubheading\": \"(4 dígitos)\",\n \"cardholderNamePlaceholder\": \"Nombre del titular de la tarjeta\",\n \"expirationDateLabel\": \"Fecha de vencimiento\",\n \"expirationDateLabelSubheading\": \"(MM/AA)\",\n \"expirationDatePlaceholder\": \"MM/AA\",\n \"postalCodeLabel\": \"Código postal\",\n \"saveCardLabel\": \"Guardar tarjeta\",\n \"payWithCard\": \"Pagar con tarjeta\",\n \"endingIn\": \"Con terminación {{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"Tarjeta\",\n \"PayPal\": \"Paypal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"Discover\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"UnionPay\"\n };\n }, {}],\n 235: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"Maksuväline: {{paymentSource}}\",\n \"chooseAnotherWayToPay\": \"Valitse toinen maksutapa\",\n \"chooseAWayToPay\": \"Valitse maksutapa\",\n \"otherWaysToPay\": \"Muita maksutapoja\",\n \"edit\": \"Muokkaa\",\n \"doneEditing\": \"Valmis\",\n \"editPaymentMethods\": \"Muokkaa maksutapoja\",\n \"CreditCardDeleteConfirmationMessage\": \"Haluatko poistaa {{secondaryIdentifier}}} -kortin, joka päättyy {{identifier}}}?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"Haluatko poistaa PayPal-tilin {{identifier}}}?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"Haluatko varmasti poistaa Venmo-tilin, jonka käyttäjätunnus on {{identifier}}}?\",\n \"genericDeleteConfirmationMessage\": \"Haluatko varmasti poistaa tämän maksutavan?\",\n \"deleteCancelButton\": \"Peruuta\",\n \"deleteConfirmationButton\": \"Poista\",\n \"fieldEmptyForCvv\": \"Anna turvakoodi.\",\n \"fieldEmptyForExpirationDate\": \"Anna voimassaolon päättymispäivämäärä.\",\n \"fieldEmptyForCardholderName\": \"Anna kortinhaltijan nimi.\",\n \"fieldTooLongForCardholderName\": \"Kortinhaltijan nimen on oltava alle 256 merkkiä.\",\n \"fieldEmptyForNumber\": \"Anna numero.\",\n \"fieldEmptyForPostalCode\": \"Anna postinumero.\",\n \"fieldInvalidForCardholderName\": \"Kortinhaltijan nimi ei ole kelvollinen.\",\n \"fieldInvalidForCvv\": \"Turvakoodi ei ole kelvollinen.\",\n \"fieldInvalidForExpirationDate\": \"Päättymispäivämäärä ei ole kelvollinen.\",\n \"fieldInvalidForNumber\": \"Kortin numero ei ole kelvollinen.\",\n \"fieldInvalidForPostalCode\": \"Postinumero ei ole kelvollinen.\",\n \"noticeOfCollection\": \"Maksamalla kortillani hyväksyn PayPal tietosuojaselosteen.\",\n \"genericError\": \"Jokin meni pieleen tässä päässä.\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"Tämä luottokortti on jo tallennettu maksutavaksi.\",\n \"hostedFieldsFailedTokenizationError\": \"Tarkista tiedot ja yritä uudelleen.\",\n \"hostedFieldsFieldsInvalidError\": \"Tarkista tiedot ja yritä uudelleen.\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"Verkkovirhe. Yritä uudelleen.\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"Luottokortin varmennus epäonnistui. Tarkista tiedot ja yritä uudelleen.\",\n \"paypalButtonMustBeUsed\": \"Jatka maksua PayPal-painikkeen avulla.\",\n \"venmoButtonMustBeUsed\": \"Jatka maksua Venmo-painikkeella.\",\n \"paypalAccountTokenizationFailedError\": \"Jotain meni pieleen PayPal-tiliä lisätessä. Yritä uudelleen.\",\n \"paypalFlowFailedError\": \"Jotain meni pieleen muodostettaessa yhteyttä PayPaliin. Yritä uudelleen.\",\n \"paypalTokenizationRequestActiveError\": \"PayPal-maksun valtuutus on jo meneillään.\",\n \"venmoCanceledError\": \"Jokin meni pieleen. Varmista, että laitteeseesi on asennettu Venmo-sovelluksen viimeisin versio, ja että selain tukee vaihtamista Venmoon.\",\n \"vaultManagerPaymentMethodDeletionError\": \"Maksutavan poistaminen ei onnistu, yritä uudelleen.\",\n \"venmoAppFailedError\": \"Venmo-sovellusta ei löytynyt laitteesta.\",\n \"unsupportedCardTypeError\": \"Tätä korttityyppiä ei tueta. Kokeile toista korttia.\",\n \"applePayTokenizationError\": \"Tapahtui verkkovirhe Apple Pay -maksun käsittelyssä. Yritä uudelleen.\",\n \"applePayActiveCardError\": \"Lisää tuettu kortti Apple Pay -lompakkoon.\",\n \"cardholderNameLabel\": \"Kortinhaltijan nimi\",\n \"cardNumberLabel\": \"Kortin numero\",\n \"cvvLabel\": \"Kortin turvakoodi\",\n \"cvvThreeDigitLabelSubheading\": \"(kolme numeroa)\",\n \"cvvFourDigitLabelSubheading\": \"(neljä numeroa)\",\n \"cardholderNamePlaceholder\": \"Kortinhaltijan nimi\",\n \"expirationDateLabel\": \"Päättymispäivämäärä\",\n \"expirationDateLabelSubheading\": \"(KK/VV)\",\n \"expirationDatePlaceholder\": \"KK/VV\",\n \"postalCodeLabel\": \"Postinumero\",\n \"saveCardLabel\": \"Tallenna kortti\",\n \"payWithCard\": \"Maksa kortilla\",\n \"endingIn\": \"Päättyy {{lastFourCardDigits}}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"Kortti\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"Discover\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"UnionPay\"\n };\n }, {}],\n 236: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"Payer avec {{paymentSource}}\",\n \"chooseAnotherWayToPay\": \"Choisir un autre mode de paiement\",\n \"chooseAWayToPay\": \"Choisir un mode de paiement\",\n \"otherWaysToPay\": \"Autres modes de paiement\",\n \"edit\": \"Modifier\",\n \"doneEditing\": \"Terminé\",\n \"editPaymentMethods\": \"Modifier les modes de paiement\",\n \"CreditCardDeleteConfirmationMessage\": \"Supprimer la carte {{secondaryIdentifier}} se terminant par {{identifier}} ?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"Supprimer le compte PayPal {{identifier}} ?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"Souhaitez-vous vraiment supprimer le compte Venmo dont le nom d'utilisateur est {{identifier}} ?\",\n \"genericDeleteConfirmationMessage\": \"Voulez-vous vraiment supprimer ce mode paiement ?\",\n \"deleteCancelButton\": \"Annuler\",\n \"deleteConfirmationButton\": \"Supprimer\",\n \"fieldEmptyForCvv\": \"Saisissez un CVV.\",\n \"fieldEmptyForExpirationDate\": \"Saisissez une date d'expiration.\",\n \"fieldEmptyForCardholderName\": \"Saisissez le nom du titulaire de la carte.\",\n \"fieldTooLongForCardholderName\": \"Le nom du titulaire de la carte doit contenir moins de 256 caractères.\",\n \"fieldEmptyForNumber\": \"Saisissez un numéro.\",\n \"fieldEmptyForPostalCode\": \"Saisissez un code postal.\",\n \"fieldInvalidForCardholderName\": \"Le nom de ce titulaire de la carte n'est pas valide.\",\n \"fieldInvalidForCvv\": \"Ce cryptogramme visuel n'est pas valide.\",\n \"fieldInvalidForExpirationDate\": \"Cette date d'expiration n'est pas valide.\",\n \"fieldInvalidForNumber\": \"Ce numéro de carte n'est pas valide.\",\n \"fieldInvalidForPostalCode\": \"Ce code postal n'est pas valide.\",\n \"noticeOfCollection\": \"En payant avec ma carte, j’accepte la Politique de confidentialité de PayPal.\",\n \"genericError\": \"Une erreur s'est produite de notre côté.\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"Cette carte de crédit est déjà enregistrée en tant que mode de paiement.\",\n \"hostedFieldsFailedTokenizationError\": \"Veuillez vérifier vos informations, puis réessayer.\",\n \"hostedFieldsFieldsInvalidError\": \"Veuillez vérifier vos informations, puis réessayer.\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"Erreur de réseau. Réessayez.\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"Échec de vérification de la carte de crédit. Veuillez vérifier vos informations, puis réessayer.\",\n \"paypalButtonMustBeUsed\": \"Utilisez le bouton PayPal pour poursuivre votre paiement.\",\n \"venmoButtonMustBeUsed\": \"Utilisez le bouton Venmo pour continuer votre paiement.\",\n \"paypalAccountTokenizationFailedError\": \"Une erreur s'est produite lors de l'ajout du compte PayPal. Veuillez réessayer.\",\n \"paypalFlowFailedError\": \"Une erreur s'est produite lors de la connexion à PayPal. Veuillez réessayer.\",\n \"paypalTokenizationRequestActiveError\": \"L'autorisation de paiement PayPal est déjà en cours.\",\n \"venmoCanceledError\": \"Une erreur s'est produite. Assurez-vous que la version la plus récente de l'application Venmo est installée sur votre appareil et que votre navigateur prend en charge la redirection vers Venmo.\",\n \"vaultManagerPaymentMethodDeletionError\": \"Impossible de supprimer le mode de paiement. Réessayez.\",\n \"venmoAppFailedError\": \"L'application Venmo n'est pas présente sur votre appareil.\",\n \"unsupportedCardTypeError\": \"Ce type de carte n'est pas pris en charge. Veuillez essayer une autre carte.\",\n \"applePayTokenizationError\": \"Une erreur de réseau s'est produite lors du traitement du paiement Apple Pay. Veuillez réessayer.\",\n \"applePayActiveCardError\": \"Ajoutez une carte prise en charge à votre portefeuille Apple Pay.\",\n \"cardholderNameLabel\": \"Nom du titulaire de la carte\",\n \"cardNumberLabel\": \"Numéro de carte\",\n \"cvvLabel\": \"Cryptogramme visuel\",\n \"cvvThreeDigitLabelSubheading\": \"(3 chiffres)\",\n \"cvvFourDigitLabelSubheading\": \"(4 chiffres)\",\n \"cardholderNamePlaceholder\": \"Nom du titulaire de la carte\",\n \"expirationDateLabel\": \"Date d'expiration\",\n \"expirationDateLabelSubheading\": \"(MM/AA)\",\n \"expirationDatePlaceholder\": \"MM/AA\",\n \"postalCodeLabel\": \"Code postal\",\n \"saveCardLabel\": \"Enregistrer la carte\",\n \"payWithCard\": \"Payer par carte\",\n \"endingIn\": \"Se terminant par {{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"Carte\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"Discover\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"UnionPay\"\n };\n }, {}],\n 237: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"Payer avec : {{paymentSource}}\",\n \"chooseAnotherWayToPay\": \"Choisir un autre mode de paiement\",\n \"chooseAWayToPay\": \"Choisir un mode de paiement\",\n \"otherWaysToPay\": \"Autres modes de paiement\",\n \"edit\": \"Modifier\",\n \"doneEditing\": \"Terminé\",\n \"editPaymentMethods\": \"Modifier les modes de paiement\",\n \"CreditCardDeleteConfirmationMessage\": \"Supprimer la carte {{secondaryIdentifier}} se terminant par {{identifier}} ?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"Supprimer le compte PayPal {{identifier}} ?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"Souhaitez-vous vraiment supprimer le compte Venmo associé au nom d'utilisateur {{identifier}} ?\",\n \"genericDeleteConfirmationMessage\": \"Souhaitez-vous vraiment supprimer ce mode de paiement ?\",\n \"deleteCancelButton\": \"Annuler\",\n \"deleteConfirmationButton\": \"Supprimer\",\n \"fieldEmptyForCvv\": \"Renseignez un cryptogramme visuel.\",\n \"fieldEmptyForExpirationDate\": \"Renseignez une date d'expiration.\",\n \"fieldEmptyForCardholderName\": \"Renseignez le nom du titulaire de la carte.\",\n \"fieldTooLongForCardholderName\": \"Le nom du titulaire de la carte doit comporter moins de 256 caractères.\",\n \"fieldEmptyForNumber\": \"Renseignez un numéro.\",\n \"fieldEmptyForPostalCode\": \"Renseignez un code postal.\",\n \"fieldInvalidForCardholderName\": \"Le nom de ce titulaire de la carte est incorrect.\",\n \"fieldInvalidForCvv\": \"Ce cryptogramme visuel est incorrect.\",\n \"fieldInvalidForExpirationDate\": \"Cette date d'expiration est incorrecte.\",\n \"fieldInvalidForNumber\": \"Ce numéro de carte est incorrect.\",\n \"fieldInvalidForPostalCode\": \"Ce code postal est incorrect.\",\n \"noticeOfCollection\": \"En payant avec ma carte, j'accepte la Politique de confidentialité de PayPal.\",\n \"genericError\": \"Une erreur est survenue.\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"Cette carte bancaire existe déjà en tant que mode de paiement enregistré.\",\n \"hostedFieldsFailedTokenizationError\": \"Vérifiez vos informations et réessayez.\",\n \"hostedFieldsFieldsInvalidError\": \"Vérifiez vos informations et réessayez.\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"Erreur réseau. Réessayez.\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"Échec de la vérification de carte bancaire. Vérifiez vos informations et réessayez.\",\n \"paypalButtonMustBeUsed\": \"Utilisez le bouton PayPal pour poursuivre le paiement.\",\n \"venmoButtonMustBeUsed\": \"Utilisez le bouton Venmo pour poursuivre le paiement.\",\n \"paypalAccountTokenizationFailedError\": \"Une erreur est survenue lors de l'ajout du compte PayPal. Réessayez.\",\n \"paypalFlowFailedError\": \"Une erreur est survenue lors de la connexion à PayPal. Réessayez.\",\n \"paypalTokenizationRequestActiveError\": \"L'autorisation de paiement PayPal est déjà en cours.\",\n \"venmoCanceledError\": \"Une erreur est survenue. Vérifiez que la dernière version de l'application Venmo est installée sur votre appareil et que votre navigateur prend en charge la redirection vers Venmo.\",\n \"vaultManagerPaymentMethodDeletionError\": \"Impossible de supprimer le mode de paiement, réessayez.\",\n \"venmoAppFailedError\": \"Nous n'avons pas trouvé l'application Venmo sur votre appareil.\",\n \"unsupportedCardTypeError\": \"Ce type de carte n'est pas pris en charge. Essayez une autre carte.\",\n \"applePayTokenizationError\": \"Une erreur réseau est survenue lors du traitement du paiement Apple Pay. Réessayez.\",\n \"applePayActiveCardError\": \"Enregistrez une carte prise en charge sur votre portefeuille Apple Pay.\",\n \"cardholderNameLabel\": \"Nom du titulaire de la carte\",\n \"cardNumberLabel\": \"Numéro de carte\",\n \"cvvLabel\": \"Crypto.\",\n \"cvvThreeDigitLabelSubheading\": \"(3 chiffres)\",\n \"cvvFourDigitLabelSubheading\": \"(4 chiffres)\",\n \"cardholderNamePlaceholder\": \"Nom du titulaire de la carte\",\n \"expirationDateLabel\": \"Date d'expiration\",\n \"expirationDateLabelSubheading\": \"(MM/AA)\",\n \"expirationDatePlaceholder\": \"MM/AA\",\n \"postalCodeLabel\": \"Code postal\",\n \"saveCardLabel\": \"Enregistrer la carte\",\n \"payWithCard\": \"Payer par carte\",\n \"endingIn\": \"Se terminant par {{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"Carte\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"Discover\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"UnionPay\"\n };\n }, {}],\n 238: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"Payer avec {{paymentSource}}\",\n \"chooseAnotherWayToPay\": \"Choisir un autre mode de paiement\",\n \"chooseAWayToPay\": \"Choisir un mode de paiement\",\n \"otherWaysToPay\": \"Autres modes de paiement\",\n \"edit\": \"Modifier\",\n \"doneEditing\": \"Terminé\",\n \"editPaymentMethods\": \"Modifier les modes de paiement\",\n \"CreditCardDeleteConfirmationMessage\": \"Supprimer la carte {{secondaryIdentifier}}} se terminant par {{identifier}}} ?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"Supprimer le compte PayPal {{identifier}}} ?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"Souhaitez-vous vraiment supprimer le compte Venmo associé au nom d'utilisateur {{identifier}}} ?\",\n \"genericDeleteConfirmationMessage\": \"Souhaitez-vous vraiment supprimer ce mode de paiement ?\",\n \"deleteCancelButton\": \"Annuler\",\n \"deleteConfirmationButton\": \"Supprimer\",\n \"fieldEmptyForCvv\": \"Renseignez un cryptogramme visuel.\",\n \"fieldEmptyForExpirationDate\": \"Renseignez une date d'expiration.\",\n \"fieldEmptyForCardholderName\": \"Renseignez le nom du titulaire de la carte.\",\n \"fieldTooLongForCardholderName\": \"Le nom du titulaire de la carte doit comporter moins de 256 caractères.\",\n \"fieldEmptyForNumber\": \"Renseignez un numéro.\",\n \"fieldEmptyForPostalCode\": \"Renseignez un code postal.\",\n \"fieldInvalidForCardholderName\": \"Le nom de ce titulaire de la carte est incorrect.\",\n \"fieldInvalidForCvv\": \"Ce cryptogramme visuel est incorrect.\",\n \"fieldInvalidForExpirationDate\": \"Cette date d'expiration est incorrecte.\",\n \"fieldInvalidForNumber\": \"Ce numéro de carte est incorrect.\",\n \"fieldInvalidForPostalCode\": \"Ce code postal est incorrect.\",\n \"noticeOfCollection\": \"En payant avec ma carte, j'accepte la Politique de confidentialité de PayPal.\",\n \"genericError\": \"Une erreur est survenue.\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"Cette carte bancaire existe déjà en tant que mode de paiement enregistré.\",\n \"hostedFieldsFailedTokenizationError\": \"Vérifiez vos informations et réessayez.\",\n \"hostedFieldsFieldsInvalidError\": \"Vérifiez vos informations et réessayez.\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"Erreur réseau. Réessayez.\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"Échec de la vérification de carte bancaire. Vérifiez vos informations et réessayez.\",\n \"paypalButtonMustBeUsed\": \"Utilisez le bouton PayPal pour poursuivre le paiement.\",\n \"venmoButtonMustBeUsed\": \"Utilisez le bouton Venmo pour poursuivre le paiement.\",\n \"paypalAccountTokenizationFailedError\": \"Une erreur est survenue lors de l'ajout du compte PayPal. Réessayez.\",\n \"paypalFlowFailedError\": \"Une erreur est survenue lors de la connexion à PayPal. Réessayez.\",\n \"paypalTokenizationRequestActiveError\": \"L'autorisation de paiement PayPal est déjà en cours.\",\n \"venmoCanceledError\": \"Une erreur est survenue. Vérifiez que la dernière version de l'application Venmo est installée sur votre appareil et que votre navigateur prend en charge la redirection vers Venmo.\",\n \"vaultManagerPaymentMethodDeletionError\": \"Impossible de supprimer le mode de paiement, réessayez.\",\n \"venmoAppFailedError\": \"Nous n'avons pas trouvé l'application Venmo sur votre appareil.\",\n \"unsupportedCardTypeError\": \"Ce type de carte n'est pas pris en charge. Essayez une autre carte.\",\n \"applePayTokenizationError\": \"Une erreur réseau est survenue lors du traitement du paiement Apple Pay. Réessayez.\",\n \"applePayActiveCardError\": \"Enregistrez une carte prise en charge sur votre portefeuille Apple Pay.\",\n \"cardholderNameLabel\": \"Nom du titulaire de la carte\",\n \"cardNumberLabel\": \"Numéro de carte\",\n \"cvvLabel\": \"Crypto.\",\n \"cvvThreeDigitLabelSubheading\": \"(3 chiffres)\",\n \"cvvFourDigitLabelSubheading\": \"(4 chiffres)\",\n \"cardholderNamePlaceholder\": \"Nom du titulaire de la carte\",\n \"expirationDateLabel\": \"Date d'expiration\",\n \"expirationDateLabelSubheading\": \"(MM/AA)\",\n \"expirationDatePlaceholder\": \"MM/AA\",\n \"postalCodeLabel\": \"Code postal\",\n \"saveCardLabel\": \"Enregistrer la carte\",\n \"payWithCard\": \"Payer par carte\",\n \"endingIn\": \"Se termine le {{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"Carte\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"Discover\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"UnionPay\"\n };\n }, {}],\n 239: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"תשלום באמצעות {{paymentSource}}\",\n \"chooseAnotherWayToPay\": \"עליך לבחור שיטת תשלום אחרת\",\n \"chooseAWayToPay\": \"כיצד ברצונך לשלם?\",\n \"otherWaysToPay\": \"שיטות תשלום אחרות\",\n \"edit\": \"עריכה\",\n \"doneEditing\": \"בוצע\",\n \"editPaymentMethods\": \"עריכת שיטות תשלום\",\n \"CreditCardDeleteConfirmationMessage\": \"למחוק {{secondaryIdentifier}} הכרטיס המסתיים {{identifier}}?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"למחוק PayPal החשבון {{identifier}}?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"האם אתה בטוח שברצונך למחוק את חשבון Venmo הרשום תחת שם המשתמש {{identifier}}?\",\n \"genericDeleteConfirmationMessage\": \"האם אתה בטוח שברצונך למחוק שיטת תשלום זו?\",\n \"deleteCancelButton\": \"ביטול\",\n \"deleteConfirmationButton\": \"מחיקה\",\n \"fieldEmptyForCvv\": \"עליך למלא את מספר האבטחה של כרטיס האשראי.\",\n \"fieldEmptyForExpirationDate\": \"עליך למלא את תאריך פקיעת התוקף.\",\n \"fieldEmptyForCardholderName\": \"עליך למלא את שם בעל הכרטיס.\",\n \"fieldTooLongForCardholderName\": \"שם בעל הכרטיס יכול להכיל 256 תווים לכל היותר.\",\n \"fieldEmptyForNumber\": \"עליך למלא את המספר.\",\n \"fieldEmptyForPostalCode\": \"עליך למלא את המיקוד.\",\n \"fieldInvalidForCardholderName\": \"שם בעל הכרטיס אינו חוקי.\",\n \"fieldInvalidForCvv\": \"קוד אבטחה אינו חוקי.\",\n \"fieldInvalidForExpirationDate\": \"תאריך פקיעת התוקף אינו חוקי.\",\n \"fieldInvalidForNumber\": \"מספר כרטיס האשראי אינו חוקי.\",\n \"fieldInvalidForPostalCode\": \"המיקוד אינו חוקי.\",\n \"noticeOfCollection\": \"בכך שאני משלם/ת באמצעות כרטיס האשראי שלי, אני מסכים/ה להצהרת הפרטיות של PayPal.\",\n \"genericError\": \"נראה שמשהו השתבש בצד שלנו.\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"כרטיס אשראי זה כבר שמור כשיטת תשלום.\",\n \"hostedFieldsFailedTokenizationError\": \"עליך לבדוק את הפרטים שלך ולנסות שוב.\",\n \"hostedFieldsFieldsInvalidError\": \"עליך לבדוק את הפרטים שלך ולנסות שוב.\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"שגיאת רשת. עליך לנסות שוב.\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"אימות כרטיס האשראי נכשל. עליך לבדוק את הפרטים שלך ולנסות שוב.\",\n \"paypalButtonMustBeUsed\": \"להשתמש בלחצן PayPal כדי להמשיך בביצוע התשלום שלך.\",\n \"venmoButtonMustBeUsed\": \"השתמשו בלחצן Venmo כדי להמשיך בתשלום שלכם.\",\n \"paypalAccountTokenizationFailedError\": \"משהו השתבש בעת הוספת חשבון PayPal. עליך לנסות שוב.\",\n \"paypalFlowFailedError\": \"משהו השתבש בהתחברות ל-PayPal. עליך לנסות שוב.\",\n \"paypalTokenizationRequestActiveError\": \"אישור התשלום של PayPal כבר מתבצע.\",\n \"venmoCanceledError\": \"נראה שמשהו השתבש. עליך לוודא שהגרסה העדכנית ביותר של אפליקציית Venmo מותקנת במכשיר שלך, ושהדפדפן שלך תומך במעבר ל-Venmo.\",\n \"vaultManagerPaymentMethodDeletionError\": \"לא הצלחנו למחוק את שיטת התשלום, עליך לנסות שוב.\",\n \"venmoAppFailedError\": \"לא מצאנו למצוא את אפליקציית Venmo במכשיר שלך.\",\n \"unsupportedCardTypeError\": \"סוג כרטיס זה אינו נתמך. עליך לנסות כרטיס אחר.\",\n \"applePayTokenizationError\": \"אירעה שגיאת רשת בעת עיבוד תשלום התשלומים של Apple Pay. עליך לנסות שוב.\",\n \"applePayActiveCardError\": \"הוספת כרטיס נתמך לארנק Apple Pay שלך.\",\n \"cardholderNameLabel\": \"שם בעל הכרטיס\",\n \"cardNumberLabel\": \"מספר כרטיס\",\n \"cvvLabel\": \"קוד אבטחת כרטיס (CVV)\",\n \"cvvThreeDigitLabelSubheading\": \"(3 ספרות)\",\n \"cvvFourDigitLabelSubheading\": \"(4 ספרות)\",\n \"cardholderNamePlaceholder\": \"שם בעל הכרטיס\",\n \"expirationDateLabel\": \"תאריך פקיעת תוקף\",\n \"expirationDateLabelSubheading\": \"(MM/YY)\",\n \"expirationDatePlaceholder\": \"MM/YY‏\",\n \"postalCodeLabel\": \"מיקוד\",\n \"saveCardLabel\": \"שמירת כרטיס אשראי\",\n \"payWithCard\": \"לשלם באמצעות כרטיס אשראי\",\n \"endingIn\": \"מסתיים בתאריך {{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"כרטיס\",\n \"PayPal\": \"PayPal‏\",\n \"PayPal Credit\": \"PayPal Credit‏\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"אמריקן אקספרס\",\n \"Discover\": \"Discover‏\",\n \"Diners Club\": \"דיינרס קלאב\",\n \"Elo\": \"Elo‏\",\n \"Hiper\": \"Hiper‏\",\n \"Hipercard\": \"HiperCard‏\",\n \"MasterCard\": \"מאסטרקארד\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB‏\",\n \"Maestro\": \"Maestro‏\",\n \"UnionPay\": \"UnionPay‏\"\n };\n }, {}],\n 240: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"Fizetés ezzel: {{paymentSource}}\",\n \"chooseAnotherWayToPay\": \"Válasszon másik fizetési módot\",\n \"chooseAWayToPay\": \"Válasszon fizetési módot\",\n \"otherWaysToPay\": \"Egyéb fizetési módok\",\n \"edit\": \"Szerkesztés\",\n \"doneEditing\": \"Kész\",\n \"editPaymentMethods\": \"Fizetési módok szerkesztése\",\n \"CreditCardDeleteConfirmationMessage\": \"Törli a(z) {{identifier}}} végű {{secondaryIdentifier}}} kártyát?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"Törli a(z) {{identifier}} PayPal-számlát?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"Biztosan törli a(z) {{identifier}} felhasználónévhez tartozó Venmo-számlát?\",\n \"genericDeleteConfirmationMessage\": \"Biztosan törli ezt a fizetési módot?\",\n \"deleteCancelButton\": \"Mégse\",\n \"deleteConfirmationButton\": \"Törlés\",\n \"fieldEmptyForCvv\": \"Kérjük, töltse ki a CVV-számot.\",\n \"fieldEmptyForExpirationDate\": \"Töltse ki a lejárati dátumot.\",\n \"fieldEmptyForCardholderName\": \"Töltse ki a kártyabirtokos nevét.\",\n \"fieldTooLongForCardholderName\": \"A kártyatulajdonos neve nem lehet hosszabb mint 256 karakter.\",\n \"fieldEmptyForNumber\": \"Töltse ki a számot.\",\n \"fieldEmptyForPostalCode\": \"Töltse ki az irányítószámot.\",\n \"fieldInvalidForCardholderName\": \"Ez a kártyabirtokos neve nem érvényes.\",\n \"fieldInvalidForCvv\": \"Ez a biztonsági kód nem érvényes.\",\n \"fieldInvalidForExpirationDate\": \"Ez a lejárati dátum érvénytelen.\",\n \"fieldInvalidForNumber\": \"Ez a kártyaszám nem érvényes.\",\n \"fieldInvalidForPostalCode\": \"Ez az irányítószám nem érvényes.\",\n \"noticeOfCollection\": \"A kártyámmal történő fizetés révén elfogadom a PayPal Adatvédelmi nyilatkozatát.\",\n \"genericError\": \"Hiba történt a mi oldalunkon.\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"Ez a hitelkártya már szerepel mentett fizetési módként.\",\n \"hostedFieldsFailedTokenizationError\": \"Ellenőrizze az adatait, majd próbálja újra.\",\n \"hostedFieldsFieldsInvalidError\": \"Ellenőrizze az adatait, majd próbálja újra.\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"Hálózati hiba. Próbálja újra.\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"A hitelkártya hitelesítése sikertelen. Ellenőrizze az adatait, majd próbálja újra.\",\n \"paypalButtonMustBeUsed\": \"A fizetés folytatásához használja a PayPal-gombot.\",\n \"venmoButtonMustBeUsed\": \"Használja a Venmo-gombot a fizetés folytatásához.\",\n \"paypalAccountTokenizationFailedError\": \"Hiba történt a PayPal-számla hozzáadása közben. Próbálja újra.\",\n \"paypalFlowFailedError\": \"Hiba történt a PayPalhoz való kapcsolódás közben. Próbálja újra.\",\n \"paypalTokenizationRequestActiveError\": \"A PayPal-fizetés engedélyezése már folyamatban van.\",\n \"venmoCanceledError\": \"Hiba történt. Ellenőrizze, hogy eszközére a Venmo-alkalmazás legfrissebb verziója van-e telepítve, és hogy a böngészője támogatja-e a Venmo-ra történő átváltást.\",\n \"vaultManagerPaymentMethodDeletionError\": \"Nem sikerült törölni a fizetési módot, próbálja újra.\",\n \"venmoAppFailedError\": \"A Venmo alkalmazást nem találja a rendszer az eszközön.\",\n \"unsupportedCardTypeError\": \"Ez a kártyatípus nem támogatott. Próbáljon meg egy másik kártyát.\",\n \"applePayTokenizationError\": \"Hálózati hiba történt az Apple Pay-kifizetés közben. Próbálja újra.\",\n \"applePayActiveCardError\": \"Adjon egy támogatott kártyát az Apple Pay pénztárcához.\",\n \"cardholderNameLabel\": \"Kártyabirtokos neve\",\n \"cardNumberLabel\": \"Kártyaszám\",\n \"cvvLabel\": \"CVV\",\n \"cvvThreeDigitLabelSubheading\": \"(3 számjegy)\",\n \"cvvFourDigitLabelSubheading\": \"(4 számjegy)\",\n \"cardholderNamePlaceholder\": \"Kártyabirtokos neve\",\n \"expirationDateLabel\": \"Lejárati dátum\",\n \"expirationDateLabelSubheading\": \"(HH/ÉÉ)\",\n \"expirationDatePlaceholder\": \"HH/ÉÉ\",\n \"postalCodeLabel\": \"Irányítószám\",\n \"saveCardLabel\": \"Kártya mentése\",\n \"payWithCard\": \"Fizetés bankkártyával vagy hitelkártyával\",\n \"endingIn\": \"{{lastFourCardDigits}}} végű\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"Kártya\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"Discover\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"UnionPay\"\n };\n }, {}],\n 241: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"Membayar dengan {{paymentSource}}\",\n \"chooseAnotherWayToPay\": \"Pilih metode pembayaran lain\",\n \"chooseAWayToPay\": \"Pilih cara pembayaran\",\n \"otherWaysToPay\": \"Cara lain untuk membayar\",\n \"edit\": \"Edit\",\n \"doneEditing\": \"Selesai\",\n \"editPaymentMethods\": \"Edit metode pembayaran\",\n \"CreditCardDeleteConfirmationMessage\": \"Hapus kartu {{secondaryIdentifier}} yang berakhiran dengan {{identifier}}?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"Hapus rekening PayPal {{identifier}}?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"Yakin ingin menghapus rekening Venmo dengan nama pengguna {{identifier}}?\",\n \"genericDeleteConfirmationMessage\": \"Yakin ingin menghapus metode pembayaran ini?\",\n \"deleteCancelButton\": \"Batalkan\",\n \"deleteConfirmationButton\": \"Hapus\",\n \"fieldEmptyForCvv\": \"Mohon mengisi CVV.\",\n \"fieldEmptyForExpirationDate\": \"Silakan mengisi tanggal kedaluwarsa.\",\n \"fieldEmptyForCardholderName\": \"Silakan mengisi nama pemilik kartu.\",\n \"fieldTooLongForCardholderName\": \"Nama pemilik kartu harus kurang dari 256 karakter.\",\n \"fieldEmptyForNumber\": \"Mohon mengisi angkanya.\",\n \"fieldEmptyForPostalCode\": \"Mohon mengisi kode pos.\",\n \"fieldInvalidForCardholderName\": \"Nama pemilik kartu ini tidak valid.\",\n \"fieldInvalidForCvv\": \"Kode keamanan ini tidak valid.\",\n \"fieldInvalidForExpirationDate\": \"Tanggal kedaluwarsa ini tidak valid.\",\n \"fieldInvalidForNumber\": \"Nomor kartu ini tidak valid.\",\n \"fieldInvalidForPostalCode\": \"Kode pos ini tidak valid.\",\n \"noticeOfCollection\": \"Dengan membayar menggunakan kartu, saya menyetujui Pernyataan Privasi PayPal.\",\n \"genericError\": \"Ada yang salah pada sistem kami.\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"Kartu kredit ini telah ada sebelumnya sebagai metode pembayaran tersimpan.\",\n \"hostedFieldsFailedTokenizationError\": \"Mohon periksa informasi Anda dan coba lagi.\",\n \"hostedFieldsFieldsInvalidError\": \"Mohon periksa informasi Anda dan coba lagi.\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"Kesalahan jaringan. Mohon coba lagi.\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"Verifikasi kartu kredit gagal. Mohon periksa informasi Anda dan coba lagi.\",\n \"paypalButtonMustBeUsed\": \"Gunakan tombol PayPal untuk melanjutkan pembayaran.\",\n \"venmoButtonMustBeUsed\": \"Gunakan tombol Venmo untuk melanjutkan pembayaran Anda.\",\n \"paypalAccountTokenizationFailedError\": \"Terjadi kesalahan saat menambahkan rekening PayPal. Mohon coba lagi.\",\n \"paypalFlowFailedError\": \"Terjadi kesalahan ketika menghubungkan ke PayPal. Mohon coba lagi.\",\n \"paypalTokenizationRequestActiveError\": \"Otorisasi pembayaran PayPal sedang diproses.\",\n \"venmoCanceledError\": \"Terjadi kesalahan. Pastikan Anda memiliki aplikasi Venmo versi terbaru di perangkat dan peramban Anda mendukung peralihan ke Venmo.\",\n \"vaultManagerPaymentMethodDeletionError\": \"Tidak dapat menghapus metode pembayaran, coba lagi.\",\n \"venmoAppFailedError\": \"Aplikasi Venmo tidak dapat ditemukan di perangkat Anda.\",\n \"unsupportedCardTypeError\": \"Jenis kartu ini tidak didukung. Mohon coba kartu lainnya.\",\n \"applePayTokenizationError\": \"Terjadi kesalahan pada jaringan saat memproses pembayaran Apple Pay. Mohon coba lagi.\",\n \"applePayActiveCardError\": \"Tambahkan kartu yang didukung oleh wallet Apple Pay Anda.\",\n \"cardholderNameLabel\": \"Nama Pemilik Kartu\",\n \"cardNumberLabel\": \"Nomor Kartu\",\n \"cvvLabel\": \"CVV\",\n \"cvvThreeDigitLabelSubheading\": \"(3 angka)\",\n \"cvvFourDigitLabelSubheading\": \"(4 angka)\",\n \"cardholderNamePlaceholder\": \"Nama Pemilik Kartu\",\n \"expirationDateLabel\": \"Tanggal Kedaluwarsa\",\n \"expirationDateLabelSubheading\": \"(BB/TT)\",\n \"expirationDatePlaceholder\": \"BB/TT\",\n \"postalCodeLabel\": \"Kode Pos\",\n \"saveCardLabel\": \"Simpan kartu\",\n \"payWithCard\": \"Bayar dengan kartu\",\n \"endingIn\": \"Berakhiran dengan {{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"Kartu\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"Jelajahi\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"UnionPay\"\n };\n }, {}],\n 242: [function (require, module, exports) {\n /* eslint-disable camelcase */\n 'use strict';\n\n var assign = require('../lib/assign').assign;\n var fiveCharacterLocales = {\n ar_EG: require('./ar_EG'),\n cs_CZ: require('./cs_CZ'),\n da_DK: require('./da_DK'),\n de_DE: require('./de_DE'),\n el_GR: require('./el_GR'),\n en_AU: require('./en_AU'),\n en_GB: require('./en_GB'),\n en_IN: require('./en_IN'),\n en_US: require('./en_US'),\n es_ES: require('./es_ES'),\n es_XC: require('./es_XC'),\n fi_FI: require('./fi_FI'),\n fr_CA: require('./fr_CA'),\n fr_FR: require('./fr_FR'),\n fr_XC: require('./fr_XC'),\n he_IL: require('./he_IL'),\n hu_HU: require('./hu_HU'),\n id_ID: require('./id_ID'),\n it_IT: require('./it_IT'),\n ja_JP: require('./ja_JP'),\n ko_KR: require('./ko_KR'),\n nl_NL: require('./nl_NL'),\n no_NO: require('./no_NO'),\n pl_PL: require('./pl_PL'),\n pt_BR: require('./pt_BR'),\n pt_PT: require('./pt_PT'),\n ru_RU: require('./ru_RU'),\n sk_SK: require('./sk_SK'),\n sv_SE: require('./sv_SE'),\n th_TH: require('./th_TH'),\n zh_CN: require('./zh_CN'),\n zh_HK: require('./zh_HK'),\n zh_TW: require('./zh_TW'),\n zh_XC: require('./zh_XC')\n };\n var twoCharacterLocaleAliases = {\n ar: fiveCharacterLocales.ar_EG,\n cs: fiveCharacterLocales.cs_CZ,\n da: fiveCharacterLocales.da_DK,\n de: fiveCharacterLocales.de_DE,\n el: fiveCharacterLocales.el_GR,\n en: fiveCharacterLocales.en_US,\n es: fiveCharacterLocales.es_ES,\n fi: fiveCharacterLocales.fi_FI,\n fr: fiveCharacterLocales.fr_FR,\n id: fiveCharacterLocales.id_ID,\n it: fiveCharacterLocales.it_IT,\n hu: fiveCharacterLocales.hu_HU,\n ja: fiveCharacterLocales.ja_JP,\n ko: fiveCharacterLocales.ko_KR,\n nl: fiveCharacterLocales.nl_NL,\n no: fiveCharacterLocales.no_NO,\n pl: fiveCharacterLocales.pl_PL,\n pt: fiveCharacterLocales.pt_PT,\n ru: fiveCharacterLocales.ru_RU,\n sk: fiveCharacterLocales.sk_SK,\n sv: fiveCharacterLocales.sv_SE,\n th: fiveCharacterLocales.th_TH,\n zh: fiveCharacterLocales.zh_CN\n };\n module.exports = {\n twoCharacterLocaleAliases: twoCharacterLocaleAliases,\n fiveCharacterLocales: fiveCharacterLocales,\n translations: assign({}, twoCharacterLocaleAliases, fiveCharacterLocales)\n };\n /* eslint-enable camelcase */\n }, {\n \"../lib/assign\": 208,\n \"./ar_EG\": 224,\n \"./cs_CZ\": 225,\n \"./da_DK\": 226,\n \"./de_DE\": 227,\n \"./el_GR\": 228,\n \"./en_AU\": 229,\n \"./en_GB\": 230,\n \"./en_IN\": 231,\n \"./en_US\": 232,\n \"./es_ES\": 233,\n \"./es_XC\": 234,\n \"./fi_FI\": 235,\n \"./fr_CA\": 236,\n \"./fr_FR\": 237,\n \"./fr_XC\": 238,\n \"./he_IL\": 239,\n \"./hu_HU\": 240,\n \"./id_ID\": 241,\n \"./it_IT\": 243,\n \"./ja_JP\": 244,\n \"./ko_KR\": 245,\n \"./nl_NL\": 246,\n \"./no_NO\": 247,\n \"./pl_PL\": 248,\n \"./pt_BR\": 249,\n \"./pt_PT\": 250,\n \"./ru_RU\": 251,\n \"./sk_SK\": 252,\n \"./sv_SE\": 253,\n \"./th_TH\": 254,\n \"./zh_CN\": 255,\n \"./zh_HK\": 256,\n \"./zh_TW\": 257,\n \"./zh_XC\": 258\n }],\n 243: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"Metodo di pagamento: {{paymentSource}}\",\n \"chooseAnotherWayToPay\": \"Scegli un altro metodo di pagamento\",\n \"chooseAWayToPay\": \"Scegli un metodo di pagamento\",\n \"otherWaysToPay\": \"Altri metodi di pagamento\",\n \"edit\": \"Modifica\",\n \"doneEditing\": \"Fine\",\n \"editPaymentMethods\": \"Modifica metodi di pagamento\",\n \"CreditCardDeleteConfirmationMessage\": \"Eliminare la carta {{secondaryIdentifier}} le cui ultime cifre sono {{identifier}}?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"Eliminare il conto PayPal {{identifier}}?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"Vuoi davvero eliminare il conto Venmo con il nome utente {{identifier}}?\",\n \"genericDeleteConfirmationMessage\": \"Vuoi davvero eliminare questo metodo di pagamento?\",\n \"deleteCancelButton\": \"Annulla\",\n \"deleteConfirmationButton\": \"Rimuovi\",\n \"fieldEmptyForCvv\": \"Compila un CVV.\",\n \"fieldEmptyForExpirationDate\": \"Compila una data di scadenza.\",\n \"fieldEmptyForCardholderName\": \"Compila un nome del titolare.\",\n \"fieldTooLongForCardholderName\": \"Il nome del titolare della carta non può contenere più di 256 caratteri.\",\n \"fieldEmptyForNumber\": \"Compila un numero.\",\n \"fieldEmptyForPostalCode\": \"Compila un CAP.\",\n \"fieldInvalidForCardholderName\": \"Il nome del titolare non è valido.\",\n \"fieldInvalidForCvv\": \"Il codice di sicurezza non è valido.\",\n \"fieldInvalidForExpirationDate\": \"La data di scadenza non è valida.\",\n \"fieldInvalidForNumber\": \"Il numero di carta non è valido.\",\n \"fieldInvalidForPostalCode\": \"Il CAP non è valido.\",\n \"noticeOfCollection\": \"Pagando con la carta, accetto la Dichiarazione sulla privacy di PayPal.\",\n \"genericError\": \"Si è verificato un errore nei nostri sistemi.\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"Questa carta di credito esiste già come metodo di pagamento salvato.\",\n \"hostedFieldsFailedTokenizationError\": \"Controlla i tuoi dati e riprova.\",\n \"hostedFieldsFieldsInvalidError\": \"Controlla i tuoi dati e riprova.\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"Errore di rete. Riprova.\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"Verifica della carta di credito non riuscita. Controlla i tuoi dati e riprova.\",\n \"paypalButtonMustBeUsed\": \"Usa il pulsante PayPal per continuare con il pagamento.\",\n \"venmoButtonMustBeUsed\": \"Usa il pulsante Venmo per continuare il pagamento.\",\n \"paypalAccountTokenizationFailedError\": \"Si è verificato un errore durante l'aggiunta del conto PayPal. Riprova.\",\n \"paypalFlowFailedError\": \"Si è verificato un errore durante la connessione a PayPal. Riprova.\",\n \"paypalTokenizationRequestActiveError\": \"Autorizzazione di pagamento PayPal già in corso.\",\n \"venmoCanceledError\": \"Si è verificato un errore. Assicurati di avere installato la versione più recente dell'app Venmo sul tuo dispositivo e che il tuo browser supporti il passaggio a Venmo.\",\n \"vaultManagerPaymentMethodDeletionError\": \"Impossibile eliminare il metodo di pagamento, riprova.\",\n \"venmoAppFailedError\": \"Impossibile trovare l'app Venmo sul tuo dispositivo.\",\n \"unsupportedCardTypeError\": \"Questo tipo di carta non è supportato. Prova con un'altra carta.\",\n \"applePayTokenizationError\": \"Si è verificato un errore di rete durante l'elaborazione del pagamento Apple Pay. Riprova.\",\n \"applePayActiveCardError\": \"Aggiungi una carta supportata al tuo wallet Apple Pay.\",\n \"cardholderNameLabel\": \"Nome del titolare\",\n \"cardNumberLabel\": \"Numero di carta\",\n \"cvvLabel\": \"CVV\",\n \"cvvThreeDigitLabelSubheading\": \"(3 cifre)\",\n \"cvvFourDigitLabelSubheading\": \"(4 cifre)\",\n \"cardholderNamePlaceholder\": \"Nome del titolare\",\n \"expirationDateLabel\": \"Data di scadenza\",\n \"expirationDateLabelSubheading\": \"(MM/AA)\",\n \"expirationDatePlaceholder\": \"MM/AA\",\n \"postalCodeLabel\": \"CAP\",\n \"saveCardLabel\": \"Salva carta\",\n \"payWithCard\": \"Paga con una carta\",\n \"endingIn\": \"Le ultime cifre sono {{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"Carta\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"Discover\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"UnionPay\"\n };\n }, {}],\n 244: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"{{paymentSource}}でのお支払い\",\n \"chooseAnotherWayToPay\": \"別の支払方法を選択してください\",\n \"chooseAWayToPay\": \"支払方法を選択してください\",\n \"otherWaysToPay\": \"その他の支払方法\",\n \"edit\": \"編集\",\n \"doneEditing\": \"完了\",\n \"editPaymentMethods\": \"支払方法の編集\",\n \"CreditCardDeleteConfirmationMessage\": \"{{secondaryIdentifier}}カード(末尾番号: {{identifier}})を削除しますか?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"PayPalアカウント{{identifier}}を削除しますか?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"ユーザー名{{identifier}}のVenmoアカウントを削除してよろしいですか?\",\n \"genericDeleteConfirmationMessage\": \"この支払方法を削除しますか?\",\n \"deleteCancelButton\": \"キャンセル\",\n \"deleteConfirmationButton\": \"削除\",\n \"fieldEmptyForCvv\": \"CVVを入力してください。\",\n \"fieldEmptyForExpirationDate\": \"有効期限を入力してください。\",\n \"fieldEmptyForCardholderName\": \"カード保有者の名前を入力してください。\",\n \"fieldTooLongForCardholderName\": \"カード保有者の名前は256文字未満にしてください。\",\n \"fieldEmptyForNumber\": \"番号を入力してください。\",\n \"fieldEmptyForPostalCode\": \"郵便番号を入力してください。\",\n \"fieldInvalidForCardholderName\": \"このカード保有者の名前は無効です。\",\n \"fieldInvalidForCvv\": \"このセキュリティコードは無効です。\",\n \"fieldInvalidForExpirationDate\": \"この有効期限は無効です。\",\n \"fieldInvalidForNumber\": \"このカード番号は無効です。\",\n \"fieldInvalidForPostalCode\": \"この郵便番号は無効です。\",\n \"noticeOfCollection\": \"カードで支払うことにより、PayPalプライバシーステートメントに同意したものとみなされます。\",\n \"genericError\": \"弊社側で問題が発生しました。\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"このクレジットカードは、保存済みの支払方法としてすでに存在します。\",\n \"hostedFieldsFailedTokenizationError\": \"情報を確認してもう一度お試しください。\",\n \"hostedFieldsFieldsInvalidError\": \"情報を確認してもう一度お試しください。\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"ネットワークエラーです。再度お試しください。\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"クレジットカードの認証に失敗しました。情報を確認してもう一度お試しください。\",\n \"paypalButtonMustBeUsed\": \"支払いを続行するには、PayPalボタンを使用します。\",\n \"venmoButtonMustBeUsed\": \"お支払いを続行するには、Venmoボタンを使用してください\",\n \"paypalAccountTokenizationFailedError\": \"PayPalアカウントの追加中に問題が発生しました。再度お試しください。\",\n \"paypalFlowFailedError\": \"PayPalへの接続に問題が発生しました。再度お試しください。\",\n \"paypalTokenizationRequestActiveError\": \"PayPalの支払い承認はすでに処理中です。\",\n \"venmoCanceledError\": \"問題が発生しました。お使いの端末にVenmoアプリの最新バージョンがインストールされており、お使いのブラウザがVenmoへの切り替えをサポートしていることをご確認ください。\",\n \"vaultManagerPaymentMethodDeletionError\": \"支払方法を削除できない場合は、もう一度お試しください。\",\n \"venmoAppFailedError\": \"お客さまの端末でVenmoアプリを見つけることができませんでした。\",\n \"unsupportedCardTypeError\": \"このカードのタイプはサポートされていません。別のカードをご使用ください。\",\n \"applePayTokenizationError\": \"Apple Payの支払いの処理中にネットワークエラーが発生しました。再度お試しください。\",\n \"applePayActiveCardError\": \"Apple Payウォレットに対応しているカードを追加してください。\",\n \"cardholderNameLabel\": \"カード保有者の名前\",\n \"cardNumberLabel\": \"カード番号\",\n \"cvvLabel\": \"CVV\",\n \"cvvThreeDigitLabelSubheading\": \"(3桁)\",\n \"cvvFourDigitLabelSubheading\": \"(4桁)\",\n \"cardholderNamePlaceholder\": \"カード保有者の名前\",\n \"expirationDateLabel\": \"有効期限\",\n \"expirationDateLabelSubheading\": \"(MM/YY)\",\n \"expirationDatePlaceholder\": \"MM/YY\",\n \"postalCodeLabel\": \"郵便番号\",\n \"saveCardLabel\": \"カードを保存\",\n \"payWithCard\": \"カードで支払う\",\n \"endingIn\": \"末尾番号: {{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"カード\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"Discover\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"銀聯(UnionPay)\"\n };\n }, {}],\n 245: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"결제수단: {{paymentSource}}\",\n \"chooseAnotherWayToPay\": \"다른 결제수단을 선택해 주세요.\",\n \"chooseAWayToPay\": \"결제수단 선택\",\n \"otherWaysToPay\": \"다른 결제수단\",\n \"edit\": \"편집\",\n \"doneEditing\": \"완료\",\n \"editPaymentMethods\": \"결제수단 편집\",\n \"CreditCardDeleteConfirmationMessage\": \"{{identifier}}(으)로 끝나는 {{secondaryIdentifier}} 카드를 삭제하시겠습니까?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"PayPal 계정 {{identifier}}을(를) 삭제하시겠습니까?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"사용자 이름 {{identifier}}의 Venmo 계정을 정말 삭제하시겠습니까?\",\n \"genericDeleteConfirmationMessage\": \"이 결제수단을 삭제하시겠습니까?\",\n \"deleteCancelButton\": \"취소\",\n \"deleteConfirmationButton\": \"삭제\",\n \"fieldEmptyForCvv\": \"CVV를 입력하세요.\",\n \"fieldEmptyForExpirationDate\": \"만료일을 입력하세요.\",\n \"fieldEmptyForCardholderName\": \"카드 소유자 이름을 입력하세요.\",\n \"fieldTooLongForCardholderName\": \"카드 소유자 이름은 256자 미만이어야 합니다.\",\n \"fieldEmptyForNumber\": \"번호를 입력하세요.\",\n \"fieldEmptyForPostalCode\": \"우편번호를 입력하세요.\",\n \"fieldInvalidForCardholderName\": \"이 카드 소유자 이름은 유효하지 않습니다.\",\n \"fieldInvalidForCvv\": \"이 보안 코드는 유효하지 않습니다.\",\n \"fieldInvalidForExpirationDate\": \"이 만료일은 유효하지 않습니다.\",\n \"fieldInvalidForNumber\": \"이 카드 번호는 유효하지 않습니다.\",\n \"fieldInvalidForPostalCode\": \"이 우편번호는 유효하지 않습니다.\",\n \"noticeOfCollection\": \"자신의 카드로 결제함으로써 사용자는 PayPal 개인정보 취급방침에 동의합니다.\",\n \"genericError\": \"저희 쪽에 문제가 발생했습니다.\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"이 신용카드는 이미 저장된 결제수단으로 설정되어 있습니다.\",\n \"hostedFieldsFailedTokenizationError\": \"정보를 확인하고 다시 시도해 주세요.\",\n \"hostedFieldsFieldsInvalidError\": \"정보를 확인하고 다시 시도해 주세요.\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"네트워크 오류입니다. 다시 시도해 주세요.\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"신용카드 인증에 실패했습니다. 정보를 확인하고 다시 시도해 주세요.\",\n \"paypalButtonMustBeUsed\": \"PayPal 버튼을 사용하여 결제를 계속 진행하세요.\",\n \"venmoButtonMustBeUsed\": \"결제를 계속하려면 Venmo 버튼을 사용하세요.\",\n \"paypalAccountTokenizationFailedError\": \"PayPal 계정을 추가하는 중에 문제가 발생했습니다. 다시 시도해 주세요.\",\n \"paypalFlowFailedError\": \"PayPal에 연결하는 데 문제가 발생했습니다. 다시 시도해 주세요.\",\n \"paypalTokenizationRequestActiveError\": \"PayPal 결제 승인이 이미 진행 중입니다.\",\n \"venmoCanceledError\": \"오류가 발생했습니다. 기기에 최신 버전의 Venmo 앱이 설치되어 있고 브라우저가 Venmo로의 전환을 지원하는지 확인하세요.\",\n \"vaultManagerPaymentMethodDeletionError\": \"결제수단을 삭제할 수 없습니다. 다시 시도해 주세요.\",\n \"venmoAppFailedError\": \"기기에서 Venmo 앱을 찾을 수 없습니다.\",\n \"unsupportedCardTypeError\": \"이 카드 유형은 지원되지 않습니다. 다른 카드로 시도해 주세요.\",\n \"applePayTokenizationError\": \"Apple Pay 결제를 처리하는 동안 네트워크 오류가 발생했습니다. 다시 시도해 주세요.\",\n \"applePayActiveCardError\": \"Apple Pay 전자지갑에 지원되는 카드를 추가하세요.\",\n \"cardholderNameLabel\": \"카드 소유자 이름\",\n \"cardNumberLabel\": \"카드 번호\",\n \"cvvLabel\": \"CVV\",\n \"cvvThreeDigitLabelSubheading\": \"(3자리)\",\n \"cvvFourDigitLabelSubheading\": \"(4자리)\",\n \"cardholderNamePlaceholder\": \"카드 소유자 이름\",\n \"expirationDateLabel\": \"만료일\",\n \"expirationDateLabelSubheading\": \"(MM/YY)\",\n \"expirationDatePlaceholder\": \"MM/YY\",\n \"postalCodeLabel\": \"우편번호\",\n \"saveCardLabel\": \"카드 저장\",\n \"payWithCard\": \"카드로 결제\",\n \"endingIn\": \"다음으로 끝남: {{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"카드\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"Discover\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"UnionPay\"\n };\n }, {}],\n 246: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"Betalen met {{paymentSource}}\",\n \"chooseAnotherWayToPay\": \"Kies een andere betaalmethode\",\n \"chooseAWayToPay\": \"Kies een betaalmethode\",\n \"otherWaysToPay\": \"Andere betaalmethoden\",\n \"edit\": \"Bewerken\",\n \"doneEditing\": \"Klaar\",\n \"editPaymentMethods\": \"Betaalmethoden bewerken\",\n \"CreditCardDeleteConfirmationMessage\": \"{{secondaryIdentifier}}-kaart eindigend op {{identifier}} verwijderen?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"PayPal-rekening {{identifier}} verwijderen?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"Weet je zeker dat je de Venmo-rekening met gebruikersnaam {{identifier}} wilt verwijderen?\",\n \"genericDeleteConfirmationMessage\": \"Weet je zeker dat je deze betaalmethode wilt verwijderen?\",\n \"deleteCancelButton\": \"Annuleren\",\n \"deleteConfirmationButton\": \"Verwijderen\",\n \"fieldEmptyForCvv\": \"Vul een CVV in.\",\n \"fieldEmptyForExpirationDate\": \"Vul een vervaldatum in.\",\n \"fieldEmptyForCardholderName\": \"Vul de naam van de kaarthouder in.\",\n \"fieldTooLongForCardholderName\": \"Naam kaarthouder moet minder dan 256 tekens bevatten.\",\n \"fieldEmptyForNumber\": \"Vul een nummer in.\",\n \"fieldEmptyForPostalCode\": \"Vul een postcode in.\",\n \"fieldInvalidForCardholderName\": \"Naam kaarthouder is ongeldig.\",\n \"fieldInvalidForCvv\": \"Deze beveiligingscode is ongeldig.\",\n \"fieldInvalidForExpirationDate\": \"Deze vervaldatum is ongeldig.\",\n \"fieldInvalidForNumber\": \"Dit kaartnummer is ongeldig.\",\n \"fieldInvalidForPostalCode\": \"Deze postcode is ongeldig.\",\n \"noticeOfCollection\": \"Door met mijn kaart te betalen, ga ik akkoord met de PayPal Privacyverklaring.\",\n \"genericError\": \"Er is aan onze kant iets fout gegaan.\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"Deze creditcard bestaat al als opgeslagen betaalmethode.\",\n \"hostedFieldsFailedTokenizationError\": \"Controleer je gegevens en probeer het opnieuw.\",\n \"hostedFieldsFieldsInvalidError\": \"Controleer je gegevens en probeer het opnieuw.\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"Netwerkfout. Probeer het opnieuw.\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"Verificatie van creditcard is mislukt. Controleer je gegevens en probeer het opnieuw.\",\n \"paypalButtonMustBeUsed\": \"Gebruik de PayPal-knop om door te gaan met je betaling.\",\n \"venmoButtonMustBeUsed\": \"Gebruik de Venmo-knop om door te gaan met je betaling.\",\n \"paypalAccountTokenizationFailedError\": \"Er is iets fout gegaan bij het toevoegen van de PayPal-rekening. Probeer het opnieuw.\",\n \"paypalFlowFailedError\": \"Er is iets fout gegaan bij het verbinden met PayPal. Probeer het opnieuw.\",\n \"paypalTokenizationRequestActiveError\": \"PayPal-betaalautorisatie is al in voortgang.\",\n \"venmoCanceledError\": \"Er is iets fout gegaan. Zorg ervoor dat je de recentste versie van de Venmo-app op je apparaat geïnstalleerd hebt en dat je browser ondersteuning biedt voor overschakelen naar Venmo.\",\n \"vaultManagerPaymentMethodDeletionError\": \"Kan betaalmethode niet verwijderen. Probeer het opnieuw.\",\n \"venmoAppFailedError\": \"De Venmo-app is niet gevonden op je apparaat.\",\n \"unsupportedCardTypeError\": \"Dit kaarttype wordt niet ondersteund. Gebruik een andere kaart.\",\n \"applePayTokenizationError\": \"Er is een netwerkfout opgetreden bij het verwerken van de Apple Pay-betaling. Probeer het opnieuw.\",\n \"applePayActiveCardError\": \"Voeg een ondersteunde kaart toe aan je Apple Pay-wallet.\",\n \"cardholderNameLabel\": \"Naam kaarthouder\",\n \"cardNumberLabel\": \"Kaartnummer\",\n \"cvvLabel\": \"CVV\",\n \"cvvThreeDigitLabelSubheading\": \"(3 cijfers)\",\n \"cvvFourDigitLabelSubheading\": \"(4 cijfers)\",\n \"cardholderNamePlaceholder\": \"Naam kaarthouder\",\n \"expirationDateLabel\": \"Vervaldatum\",\n \"expirationDateLabelSubheading\": \"(mm/jj)\",\n \"expirationDatePlaceholder\": \"mm/jj\",\n \"postalCodeLabel\": \"Postcode\",\n \"saveCardLabel\": \"Kaart opslaan\",\n \"payWithCard\": \"Betalen met kaart\",\n \"endingIn\": \"Eindigend op {{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"Kaart\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"Discover\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"UnionPay\"\n };\n }, {}],\n 247: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"Betaler med {{paymentSource}}\",\n \"chooseAnotherWayToPay\": \"Velg en annen betalingsmåte\",\n \"chooseAWayToPay\": \"Velg betalingsmåte\",\n \"otherWaysToPay\": \"Andre betalingsmåter\",\n \"edit\": \"Endre\",\n \"doneEditing\": \"Ferdig\",\n \"editPaymentMethods\": \"Rediger betalingsmetode\",\n \"CreditCardDeleteConfirmationMessage\": \"Vil du slette {{secondaryIdentifier}}-kortet som slutter på {{identifier}}?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"Vil du slette PayPal-konto {{identifier}}?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"Er du sikker på at du vil slette Venmo-kontoen med brukernavnet {{identifier}}?\",\n \"genericDeleteConfirmationMessage\": \"Er du sikker på at du vil slette denne betalingsmetoden?\",\n \"deleteCancelButton\": \"Avbryt\",\n \"deleteConfirmationButton\": \"Slett\",\n \"fieldEmptyForCvv\": \"Fyll ut sikkerhetskode (CVV).\",\n \"fieldEmptyForExpirationDate\": \"Fyll ut utløpsdato.\",\n \"fieldEmptyForCardholderName\": \"Fyll ut kortinnehavers navn.\",\n \"fieldTooLongForCardholderName\": \"Kortinnehaverens må ha mindre enn 256 tegn.\",\n \"fieldEmptyForNumber\": \"Fyll ut nummer.\",\n \"fieldEmptyForPostalCode\": \"Fyll ut postnummer.\",\n \"fieldInvalidForCardholderName\": \"Denne kortinnehaverens navn er ikke gyldig.\",\n \"fieldInvalidForCvv\": \"Denne sikkerhetskoden er ikke gyldig.\",\n \"fieldInvalidForExpirationDate\": \"Denne utløpsdatoen er ikke gyldig.\",\n \"fieldInvalidForNumber\": \"Dette kortnummeret er ikke gyldig.\",\n \"fieldInvalidForPostalCode\": \"Dette postnummeret er ikke gyldig.\",\n \"noticeOfCollection\": \"Ved å betale med kortet godtar jeg PayPals personvernerklæring.\",\n \"genericError\": \"Noe gikk galt hos oss.\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"Dette betalingskortet finnes allerede som en lagret betalingsmetode.\",\n \"hostedFieldsFailedTokenizationError\": \"Kontroller informasjonen, og prøv på nytt.\",\n \"hostedFieldsFieldsInvalidError\": \"Kontroller informasjonen, og prøv på nytt.\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"Nettverksfeil. Prøv på nytt.\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"Kontroll av betalingskort mislyktes. Kontroller informasjonen, og prøv på nytt.\",\n \"paypalButtonMustBeUsed\": \"Bruk PayPal-knappen for å fortsette med betalingen.\",\n \"venmoButtonMustBeUsed\": \"Bruk Venmo-knappen for å fortsette med betalingen.\",\n \"paypalAccountTokenizationFailedError\": \"Kan ikke legge til PayPal-kontoen. Prøv på nytt.\",\n \"paypalFlowFailedError\": \"Kan ikke koble til PayPal. Prøv på nytt.\",\n \"paypalTokenizationRequestActiveError\": \"PayPals prosess for betalingsgodkjenning har allerede startet.\",\n \"venmoCanceledError\": \"Noe gikk galt. Kontroller at den nyeste versjonen av Venmo-appen er installert på enheten din, og at nettleseren din støtter bruk av Venmo.\",\n \"vaultManagerPaymentMethodDeletionError\": \"Kan ikke slette betalingsmetoden. Prøv på nytt.\",\n \"venmoAppFailedError\": \"Finner ikke Venmo-appen på enheten.\",\n \"unsupportedCardTypeError\": \"Denne korttypen støttes ikke. Prøv et annet kort.\",\n \"applePayTokenizationError\": \"Nettverksfeil under behandling av Apple Pay-betalingen. Prøv på nytt.\",\n \"applePayActiveCardError\": \"Legg til et støttet kort i e-lommeboken for Apple Pay.\",\n \"cardholderNameLabel\": \"Kortinnehavers navn\",\n \"cardNumberLabel\": \"Kortnummer\",\n \"cvvLabel\": \"CVV\",\n \"cvvThreeDigitLabelSubheading\": \"(3 sifre)\",\n \"cvvFourDigitLabelSubheading\": \"(4 sifre)\",\n \"cardholderNamePlaceholder\": \"Kortinnehavers navn\",\n \"expirationDateLabel\": \"Utløpsdato\",\n \"expirationDateLabelSubheading\": \"(MM/ÅÅ)\",\n \"expirationDatePlaceholder\": \"MM/ÅÅ\",\n \"postalCodeLabel\": \"Postnummer\",\n \"saveCardLabel\": \"Lagre kort\",\n \"payWithCard\": \"Betal med kort\",\n \"endingIn\": \"Slutter på {{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"Kort\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"Discover\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"UnionPay\"\n };\n }, {}],\n 248: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"Źródło finansowania płatności: {{paymentSource}}\",\n \"chooseAnotherWayToPay\": \"Wybierz inny sposób płatności.\",\n \"chooseAWayToPay\": \"Wybierz sposób płatności\",\n \"otherWaysToPay\": \"Inne sposoby płatności\",\n \"edit\": \"Edytuj\",\n \"doneEditing\": \"Gotowe\",\n \"editPaymentMethods\": \"Edytuj formy płatności\",\n \"CreditCardDeleteConfirmationMessage\": \"Usunąć kartę {{secondaryIdentifier}} o numerze zakończonym cyframi {{identifier}}?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"Usunąć {{identifier}}konta PayPal?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"Czy na pewno chcesz usunąć konto Venmo o nazwie użytkownika {{identifier}}?\",\n \"genericDeleteConfirmationMessage\": \"Na pewno chcesz usunąć tę formę płatności?\",\n \"deleteCancelButton\": \"Anuluj\",\n \"deleteConfirmationButton\": \"Usuń\",\n \"fieldEmptyForCvv\": \"Wpisz kod CVV.\",\n \"fieldEmptyForExpirationDate\": \"Wpisz datę ważności.\",\n \"fieldEmptyForCardholderName\": \"Podaj imię i nazwisko posiadacza karty.\",\n \"fieldTooLongForCardholderName\": \"Imię i nazwisko posiadacza karty musi mieć mniej niż 256 znaków.\",\n \"fieldEmptyForNumber\": \"Podaj numer.\",\n \"fieldEmptyForPostalCode\": \"Podaj kod pocztowy.\",\n \"fieldInvalidForCardholderName\": \"To imię i nazwisko posiadacza karty jest nieprawidłowe.\",\n \"fieldInvalidForCvv\": \"Ten kod bezpieczeństwa jest nieprawidłowy.\",\n \"fieldInvalidForExpirationDate\": \"Ta data ważności jest nieprawidłowa.\",\n \"fieldInvalidForNumber\": \"Numer karty jest nieprawidłowy.\",\n \"fieldInvalidForPostalCode\": \"Kod pocztowy jest nieprawidłowy.\",\n \"noticeOfCollection\": \"Dokonując płatności kartą, akceptuję Informacje dotyczące zasad ochrony danych firmy PayPal.\",\n \"genericError\": \"Wystąpił błąd po naszej stronie.\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"Ta karta kredytowa istnieje jako zapisana forma płatności.\",\n \"hostedFieldsFailedTokenizationError\": \"Sprawdź swoje informacje i spróbuj ponownie.\",\n \"hostedFieldsFieldsInvalidError\": \"Sprawdź swoje informacje i spróbuj ponownie.\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"Błąd sieci. Spróbuj ponownie.\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"Weryfikacja karty kredytowej nie powiodła się. Sprawdź swoje informacje i spróbuj ponownie.\",\n \"paypalButtonMustBeUsed\": \"Aby kontynuować płatność, użyj przycisku PayPal.\",\n \"venmoButtonMustBeUsed\": \"Użyj przycisku Venmo, aby kontynuować płatność\",\n \"paypalAccountTokenizationFailedError\": \"Coś poszło nie tak przy dodawaniu konta PayPal. Spróbuj ponownie.\",\n \"paypalFlowFailedError\": \"Wystąpił problem przy nawiązywaniu połączenia z PayPal. Spróbuj ponownie.\",\n \"paypalTokenizationRequestActiveError\": \"Autoryzacja płatności PayPal jest w trakcie realizacji.\",\n \"venmoCanceledError\": \"Coś poszło nie tak. Upewnij się, że na Twoim urządzeniu jest zainstalowana najnowsza wersja aplikacji Venmo, a Twoja przeglądarka obsługuje przełączanie na Venmo.\",\n \"vaultManagerPaymentMethodDeletionError\": \"Nie można usunąć formy płatności, spróbuj ponownie.\",\n \"venmoAppFailedError\": \"Aplikacja Venmo nie została odnaleziona na Twoim urządzeniu.\",\n \"unsupportedCardTypeError\": \"Ten typ karty nie jest obsługiwany. Spróbuj użyć innej karty.\",\n \"applePayTokenizationError\": \"Wystąpił błąd sieciowy podczas przetwarzania płatności Apple Pay. Spróbuj ponownie.\",\n \"applePayActiveCardError\": \"Dodaj obsługiwaną kartę do portfela Apple Pay.\",\n \"cardholderNameLabel\": \"Imię i nazwisko posiadacza karty\",\n \"cardNumberLabel\": \"Numer karty\",\n \"cvvLabel\": \"Kod CVV/CVC2\",\n \"cvvThreeDigitLabelSubheading\": \"(3 cyfry)\",\n \"cvvFourDigitLabelSubheading\": \"(4 cyfry)\",\n \"cardholderNamePlaceholder\": \"Imię i nazwisko posiadacza karty\",\n \"expirationDateLabel\": \"Data ważności\",\n \"expirationDateLabelSubheading\": \"(MM/RR)\",\n \"expirationDatePlaceholder\": \"MM/RR\",\n \"postalCodeLabel\": \"Kod pocztowy\",\n \"saveCardLabel\": \"Zapisz kartę\",\n \"payWithCard\": \"Zapłać kartą\",\n \"endingIn\": \"Numer zakończonym cyframi {{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"Karta\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"Discover\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"UnionPay\"\n };\n }, {}],\n 249: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"Pagando com {{paymentSource}}\",\n \"chooseAnotherWayToPay\": \"Escolha outro meio de pagamento\",\n \"chooseAWayToPay\": \"Escolha um meio de pagamento\",\n \"otherWaysToPay\": \"Outras formas de pagar\",\n \"edit\": \"Editar\",\n \"doneEditing\": \"Concluído\",\n \"editPaymentMethods\": \"Editar meios de pagamento\",\n \"CreditCardDeleteConfirmationMessage\": \"Excluir cartão {{secondaryIdentifier}} de final {{identifier}}?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"Excluir conta do PayPal {{identifier}}?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"Tem certeza de que deseja excluir a conta do Venmo com nome de usuário {{identifier}}?\",\n \"genericDeleteConfirmationMessage\": \"Tem certeza que deseja excluir este meio de pagamento?\",\n \"deleteCancelButton\": \"Cancelar\",\n \"deleteConfirmationButton\": \"Excluir\",\n \"fieldEmptyForCvv\": \"Preencha um CVV.\",\n \"fieldEmptyForExpirationDate\": \"Preencha uma data de vencimento.\",\n \"fieldEmptyForCardholderName\": \"Preencha um nome para o titular do cartão.\",\n \"fieldTooLongForCardholderName\": \"O nome do titular do cartão deve ter menos de 256 caracteres.\",\n \"fieldEmptyForNumber\": \"Preencha um número.\",\n \"fieldEmptyForPostalCode\": \"Preencha um código postal.\",\n \"fieldInvalidForCardholderName\": \"O nome do titular do cartão é inválido.\",\n \"fieldInvalidForCvv\": \"Este código de segurança é inválido.\",\n \"fieldInvalidForExpirationDate\": \"Esta data de vencimento é inválida.\",\n \"fieldInvalidForNumber\": \"O número do cartão é inválido.\",\n \"fieldInvalidForPostalCode\": \"Este código postal é inválido.\",\n \"noticeOfCollection\": \"Ao pagar com o meu cartão, aceito a Declaração de Privacidade da PayPal.\",\n \"genericError\": \"Ocorreu um erro.\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"Este cartão de crédito já existe como um meio de pagamento salvo.\",\n \"hostedFieldsFailedTokenizationError\": \"Verifique as informações e tente novamente.\",\n \"hostedFieldsFieldsInvalidError\": \"Verifique as informações e tente novamente.\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"Erro de rede. Tente novamente.\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"Falha na verificação do cartão de crédito. Verifique as informações e tente novamente.\",\n \"paypalButtonMustBeUsed\": \"Use o botão do PayPal para prosseguir com o pagamento.\",\n \"venmoButtonMustBeUsed\": \"Utilize o botão Venmo para continuar o seu pagamento.\",\n \"paypalAccountTokenizationFailedError\": \"Ocorreu um erro ao adicionar a conta do PayPal. Tente novamente.\",\n \"paypalFlowFailedError\": \"Ocorreu um erro na conexão com o PayPal. Tente novamente.\",\n \"paypalTokenizationRequestActiveError\": \"A autorização de pagamento do PayPal já está em andamento.\",\n \"venmoCanceledError\": \"Ocorreu um erro. Certifique-se de que você tenha a versão mais recente do aplicativo Venmo instalada no seu dispositivo, e que seu navegador aceite a mudança para o Venmo.\",\n \"vaultManagerPaymentMethodDeletionError\": \"Não é possível excluir o meio de pagamento, tente novamente.\",\n \"venmoAppFailedError\": \"O aplicativo Venmo não foi encontrado no seu dispositivo.\",\n \"unsupportedCardTypeError\": \"Este tipo de cartão não é aceito. Tente outro cartão.\",\n \"applePayTokenizationError\": \"Ocorreu um erro de rede ao processar o pagamento do Apple Pay. Tente novamente.\",\n \"applePayActiveCardError\": \"Adicione um cartão compatível à sua carteira Apple Pay.\",\n \"cardholderNameLabel\": \"Nome do titular do cartão\",\n \"cardNumberLabel\": \"Número do cartão\",\n \"cvvLabel\": \"CSC\",\n \"cvvThreeDigitLabelSubheading\": \"(3 dígitos)\",\n \"cvvFourDigitLabelSubheading\": \"(4 dígitos)\",\n \"cardholderNamePlaceholder\": \"Nome do titular do cartão\",\n \"expirationDateLabel\": \"Data de vencimento\",\n \"expirationDateLabelSubheading\": \"(MM/AA)\",\n \"expirationDatePlaceholder\": \"MM/AA\",\n \"postalCodeLabel\": \"CEP\",\n \"saveCardLabel\": \"Salvar cartão\",\n \"payWithCard\": \"Pague com seu cartão de crédito\",\n \"endingIn\": \"De final {{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"Cartão\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"Crédito do PayPal\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"Descobrir\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"UnionPay\"\n };\n }, {}],\n 250: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"Pagamento com {{paymentSource}}\",\n \"chooseAnotherWayToPay\": \"Escolher outra forma de pagamento\",\n \"chooseAWayToPay\": \"Escolher forma de pagamento\",\n \"otherWaysToPay\": \"Outras formas de pagamento\",\n \"edit\": \"Editar\",\n \"doneEditing\": \"Concluído\",\n \"editPaymentMethods\": \"Editar meios de pagamento\",\n \"CreditCardDeleteConfirmationMessage\": \"Eliminar cartão {{secondaryIdentifier}} terminado em {{identifier}}?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"Eliminar conta PayPal {{identifier}}?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"Quer mesmo eliminar a conta Venmo com o nome de utilizador {{identifier}}?\",\n \"genericDeleteConfirmationMessage\": \"Quer mesmo eliminar este meio de pagamento?\",\n \"deleteCancelButton\": \"Cancelar\",\n \"deleteConfirmationButton\": \"Eliminar\",\n \"fieldEmptyForCvv\": \"Introduza um CVV.\",\n \"fieldEmptyForExpirationDate\": \"Introduza uma data de validade.\",\n \"fieldEmptyForCardholderName\": \"Introduza um nome do titular do cartão.\",\n \"fieldTooLongForCardholderName\": \"O Nome do titular do cartão deve ter menos de 256 carateres.\",\n \"fieldEmptyForNumber\": \"Introduza um número.\",\n \"fieldEmptyForPostalCode\": \"Introduza um código postal.\",\n \"fieldInvalidForCardholderName\": \"Este nome do titular do cartão não é válido.\",\n \"fieldInvalidForCvv\": \"Este código de segurança não é válido.\",\n \"fieldInvalidForExpirationDate\": \"Esta data de validade não é válida.\",\n \"fieldInvalidForNumber\": \"Este número de cartão não é válido.\",\n \"fieldInvalidForPostalCode\": \"Este código postal não é válido.\",\n \"noticeOfCollection\": \"Ao pagar com o meu cartão, aceito a Declaração de Privacidade da PayPal.\",\n \"genericError\": \"Tudo indica que houve um problema.\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"Este cartão de crédito já existe como meio de pagamento guardado.\",\n \"hostedFieldsFailedTokenizationError\": \"Verifique as suas informações e tente novamente.\",\n \"hostedFieldsFieldsInvalidError\": \"Verifique as suas informações e tente novamente.\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"Erro de rede. Tente novamente.\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"A verificação do cartão de crédito falhou. Verifique as suas informações e tente novamente.\",\n \"paypalButtonMustBeUsed\": \"Use o botão PayPal para continuar o seu pagamento.\",\n \"venmoButtonMustBeUsed\": \"Utilize o botão Venmo para continuar o seu pagamento.\",\n \"paypalAccountTokenizationFailedError\": \"Ocorreu um erro ao adicionar a conta PayPal. Tente novamente.\",\n \"paypalFlowFailedError\": \"Ocorreu um erro ao ligar ao PayPal. Tente novamente.\",\n \"paypalTokenizationRequestActiveError\": \"A autorização de pagamento com PayPal já está em curso.\",\n \"venmoCanceledError\": \"Ocorreu um erro. Certifique-se de que tem a versão mais recente da aplicação Venmo instalada no seu dispositivo e que o seu navegador suporta a mudança para Venmo.\",\n \"vaultManagerPaymentMethodDeletionError\": \"Não é possível eliminar o meio de pagamento; tente novamente.\",\n \"venmoAppFailedError\": \"A aplicação Venmo não foi encontrada no seu dispositivo.\",\n \"unsupportedCardTypeError\": \"Este tipo de cartão não é suportado. Tente com outro cartão.\",\n \"applePayTokenizationError\": \"Ocorreu um erro de rede ao processar o pagamento com Apple Pay. Tente novamente.\",\n \"applePayActiveCardError\": \"Adicione um cartão suportado à sua carteira Apple Pay.\",\n \"cardholderNameLabel\": \"Nome do titular do cartão\",\n \"cardNumberLabel\": \"Número do cartão\",\n \"cvvLabel\": \"CVV\",\n \"cvvThreeDigitLabelSubheading\": \"(3 dígitos)\",\n \"cvvFourDigitLabelSubheading\": \"(4 dígitos)\",\n \"cardholderNamePlaceholder\": \"Nome do titular do cartão\",\n \"expirationDateLabel\": \"Data de validade\",\n \"expirationDateLabelSubheading\": \"(MM/AA)\",\n \"expirationDatePlaceholder\": \"MM/AA\",\n \"postalCodeLabel\": \"Código postal\",\n \"saveCardLabel\": \"Guardar cartão\",\n \"payWithCard\": \"Pagar com cartão\",\n \"endingIn\": \"Termina em {{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"Cartão\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"Discover\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"UnionPay\"\n };\n }, {}],\n 251: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"Оплата с помощью {{paymentSource}}\",\n \"chooseAnotherWayToPay\": \"Выберите другой способ оплаты\",\n \"chooseAWayToPay\": \"Выберите способ оплаты\",\n \"otherWaysToPay\": \"Другие способы оплаты\",\n \"edit\": \"Изменить\",\n \"doneEditing\": \"Готово\",\n \"editPaymentMethods\": \"Изменить способы оплаты\",\n \"CreditCardDeleteConfirmationMessage\": \"Удалить карту {{secondaryIdentifier}} с номером, заканчивающимся на {{identifier}}?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"Удалить счет PayPal {{identifier}}?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"Вы действительно хотите удалить счет Venmo с именем пользователя {{identifier}}?\",\n \"genericDeleteConfirmationMessage\": \"Вы действительно хотите удалить этот способ оплаты?\",\n \"deleteCancelButton\": \"Отмена\",\n \"deleteConfirmationButton\": \"Удалить\",\n \"fieldEmptyForCvv\": \"Укажите код безопасности.\",\n \"fieldEmptyForExpirationDate\": \"Укажите дату окончания срока действия.\",\n \"fieldEmptyForCardholderName\": \"Укажите имя владельца карты.\",\n \"fieldTooLongForCardholderName\": \"Имя владельца карты должно содержать не более 256 символов.\",\n \"fieldEmptyForNumber\": \"Укажите номер.\",\n \"fieldEmptyForPostalCode\": \"Укажите почтовый индекс.\",\n \"fieldInvalidForCardholderName\": \"Недопустимое имя владельца карты.\",\n \"fieldInvalidForCvv\": \"Недопустимый код безопасности.\",\n \"fieldInvalidForExpirationDate\": \"Недопустимая дата истечения срока действия.\",\n \"fieldInvalidForNumber\": \"Недопустимый номер карты.\",\n \"fieldInvalidForPostalCode\": \"Недопустимый почтовый индекс.\",\n \"noticeOfCollection\": \"Выполняя оплату с помощью карты, я соглашаюсь с условиями Положения о конфиденциальности PayPal.\",\n \"genericError\": \"Возникла проблема с нашей стороны.\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"Данная кредитная карта уже существует как сохраненный способ оплаты.\",\n \"hostedFieldsFailedTokenizationError\": \"Проверьте правильность ввода данных и повторите попытку.\",\n \"hostedFieldsFieldsInvalidError\": \"Проверьте правильность ввода данных и повторите попытку.\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"Сбой сети. Повторите попытку.\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"Сбой при проверке кредитной карты. Проверьте правильность ввода данных и повторите попытку.\",\n \"paypalButtonMustBeUsed\": \"Используйте кнопку PayPal, чтобы продолжить оплату.\",\n \"venmoButtonMustBeUsed\": \"Используйте кнопку Venmo, чтобы продолжить оплату.\",\n \"paypalAccountTokenizationFailedError\": \"Возникла ошибка при добавлении счета PayPal. Повторите попытку.\",\n \"paypalFlowFailedError\": \"Возникла ошибка при подключении к PayPal. Повторите попытку.\",\n \"paypalTokenizationRequestActiveError\": \"Авторизация платежа через PayPal уже выполняется.\",\n \"venmoCanceledError\": \"Возникла ошибка. Убедитесь, что на вашем устройстве установлена самая последняя версия приложения Venmo и браузер поддерживает переход на Venmo.\",\n \"vaultManagerPaymentMethodDeletionError\": \"Не удалось удалить способ оплаты, повторите попытку.\",\n \"venmoAppFailedError\": \"Приложение Venmo не удается обнаружить на вашем устройстве.\",\n \"unsupportedCardTypeError\": \"Данный тип карты не поддерживается. Попробуйте воспользоваться другой картой.\",\n \"applePayTokenizationError\": \"Возникла ошибка сети при обработке платежа Apple Pay. Повторите попытку.\",\n \"applePayActiveCardError\": \"Добавьте поддерживаемую карту в ваш счет Apple Pay.\",\n \"cardholderNameLabel\": \"Имя владельца карты\",\n \"cardNumberLabel\": \"Номер карты\",\n \"cvvLabel\": \"Код безопасности карты CVV\",\n \"cvvThreeDigitLabelSubheading\": \"(3 цифры)\",\n \"cvvFourDigitLabelSubheading\": \"(4 цифры)\",\n \"cardholderNamePlaceholder\": \"Имя владельца карты\",\n \"expirationDateLabel\": \"Дата окончания срока действия\",\n \"expirationDateLabelSubheading\": \"(ММ/ГГ)\",\n \"expirationDatePlaceholder\": \"ММ/ГГ\",\n \"postalCodeLabel\": \"Индекс\",\n \"saveCardLabel\": \"Сохранить карту\",\n \"payWithCard\": \"Оплатить банковской картой\",\n \"endingIn\": \"Заканчивается на {{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"Карта\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"Полезное\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"UnionPay\"\n };\n }, {}],\n 252: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"Spôsob platby: {{paymentSource}}\",\n \"chooseAnotherWayToPay\": \"Vyberte iný spôsob platby\",\n \"chooseAWayToPay\": \"Zvoľte spôsob platby\",\n \"otherWaysToPay\": \"Iné spôsoby platby\",\n \"edit\": \"Upraviť\",\n \"doneEditing\": \"Hotovo\",\n \"editPaymentMethods\": \"Upraviť spôsoby platby\",\n \"CreditCardDeleteConfirmationMessage\": \"Chcete odstrániť kartu {{secondaryIdentifier}} končiacu sa na {{identifier}}?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"Chcete odstrániť {{identifier}}účtu PayPal?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"Naozaj chcete odstrániť účet Venmo s menom používateľa {{identifier}}?\",\n \"genericDeleteConfirmationMessage\": \"Ste si istí, že chcete tento spôsob platby odstrániť?\",\n \"deleteCancelButton\": \"Zrušiť\",\n \"deleteConfirmationButton\": \"Odstrániť\",\n \"fieldEmptyForCvv\": \"Vyplňte kód CVV.\",\n \"fieldEmptyForExpirationDate\": \"Zadajte dátum skončenia platnosti.\",\n \"fieldEmptyForCardholderName\": \"Zadajte meno majiteľa karty.\",\n \"fieldTooLongForCardholderName\": \"Meno majiteľa karty musí obsahovať menej ako 256 znakov.\",\n \"fieldEmptyForNumber\": \"Zadajte číslo.\",\n \"fieldEmptyForPostalCode\": \"Zadajte PSČ.\",\n \"fieldInvalidForCardholderName\": \"Toto meno majiteľa karty je neplatné.\",\n \"fieldInvalidForCvv\": \"Tento bezpečnostný kód je neplatný.\",\n \"fieldInvalidForExpirationDate\": \"Tento dátum skončenia platnosti je neplatný.\",\n \"fieldInvalidForNumber\": \"Toto číslo karty je neplatné.\",\n \"fieldInvalidForPostalCode\": \"Toto PSČ je neplatné.\",\n \"noticeOfCollection\": \"Zaplatením kartou vyjadrujem súhlas s Vyhlásením spoločnosti PayPal o ochrane osobných údajov.\",\n \"genericError\": \"Vyskytla sa chyba na našej strane.\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"Táto kreditná karta už existuje ako uložený spôsob platby.\",\n \"hostedFieldsFailedTokenizationError\": \"Skontrolujte údaje a skúste to znova.\",\n \"hostedFieldsFieldsInvalidError\": \"Skontrolujte údaje a skúste to znova.\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"Chyba v sieti. Skúste to znova.\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"Overenie kreditnej karty nebolo úspešné. Skontrolujte údaje a skúste to znova.\",\n \"paypalButtonMustBeUsed\": \"Ak chcete pokračovať v platbe, použite tlačidlo PayPal.\",\n \"venmoButtonMustBeUsed\": \"Ak chcete pokračovať v platbe, použite tlačidlo Venmo.\",\n \"paypalAccountTokenizationFailedError\": \"Vyskytla sa chyba pri pridávaní účtu PayPal. Skúste to znova.\",\n \"paypalFlowFailedError\": \"Vyskytla sa chyba pri pripájaní do účtu PayPal. Skúste to znova.\",\n \"paypalTokenizationRequestActiveError\": \"Autorizácia platby PayPal už prebieha.\",\n \"venmoCanceledError\": \"Vyskytla sa chyba. Skontrolujte, či máte v zariadení nainštalovanú najnovšiu verziu aplikácie Venmo a či prehliadač podporuje prechod na aplikáciu Venmo.\",\n \"vaultManagerPaymentMethodDeletionError\": \"Nebolo možné odstrániť spôsob platby, skúste to znova.\",\n \"venmoAppFailedError\": \"Aplikáciu Venmo sa vo vašom zariadení nepodarilo nájsť.\",\n \"unsupportedCardTypeError\": \"Tento typ karty nie je podporovaný. Prosím skúste inú kartu.\",\n \"applePayTokenizationError\": \"Počas spracúvania platby cez Apple Pay došlo k chybe siete. Skúste to znova.\",\n \"applePayActiveCardError\": \"Pridajte si podporovanú kartu do peňaženky Apple Pay.\",\n \"cardholderNameLabel\": \"Meno majiteľa karty\",\n \"cardNumberLabel\": \"Číslo karty\",\n \"cvvLabel\": \"CVV\",\n \"cvvThreeDigitLabelSubheading\": \"(3 číslice)\",\n \"cvvFourDigitLabelSubheading\": \"(4 číslice)\",\n \"cardholderNamePlaceholder\": \"Meno majiteľa karty\",\n \"expirationDateLabel\": \"Dátum skončenia platnosti\",\n \"expirationDateLabelSubheading\": \"(MM/RR)\",\n \"expirationDatePlaceholder\": \"MM/RR\",\n \"postalCodeLabel\": \"PSČ\",\n \"saveCardLabel\": \"Uložiť kartu\",\n \"payWithCard\": \"Zaplatiť kartou\",\n \"endingIn\": \"Končí {{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"Karta\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"Discover\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"UnionPay\"\n };\n }, {}],\n 253: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"Betalar med {{paymentSource}}\",\n \"chooseAnotherWayToPay\": \"Välj ett annat sätt att betala\",\n \"chooseAWayToPay\": \"Välj ett sätt att betala\",\n \"otherWaysToPay\": \"Andra sätt att betala\",\n \"edit\": \"Ändra\",\n \"doneEditing\": \"Klart\",\n \"editPaymentMethods\": \"Ändra betalningsmetoder\",\n \"CreditCardDeleteConfirmationMessage\": \"Ta bort {{secondaryIdentifier}}-kortet som slutar på {{identifier}}?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"Ta bort PayPal-konto {{identifier}}?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"Är du säker på att du vill ta bort Venmo-kontot med användarnamnet {{identifier}}?\",\n \"genericDeleteConfirmationMessage\": \"Är du säker på att du vill ta bort den här betalningsmetoden?\",\n \"deleteCancelButton\": \"Avbryt\",\n \"deleteConfirmationButton\": \"Ta bort\",\n \"fieldEmptyForCvv\": \"Fyll i ett CVV.\",\n \"fieldEmptyForExpirationDate\": \"Fyll i ett utgångsdatum.\",\n \"fieldEmptyForCardholderName\": \"Fyll i kortinnehavarens namn.\",\n \"fieldTooLongForCardholderName\": \"Namnet på kortinnehavaren måste vara kortare än 256 tecken.\",\n \"fieldEmptyForNumber\": \"Fyll i ett nummer.\",\n \"fieldEmptyForPostalCode\": \"Fyll i ett postnummer.\",\n \"fieldInvalidForCardholderName\": \"Namnet på kortinnehavaren är ogiltigt.\",\n \"fieldInvalidForCvv\": \"Den här säkerhetskoden är inte giltig.\",\n \"fieldInvalidForExpirationDate\": \"Utgångsdatumet är ogiltigt.\",\n \"fieldInvalidForNumber\": \"Det här kortnumret är ogiltigt.\",\n \"fieldInvalidForPostalCode\": \"Postnumret är ogiltigt.\",\n \"noticeOfCollection\": \"Genom att betala med mitt kort godkänner jag PayPals sekretessmeddelande.\",\n \"genericError\": \"Ett fel uppstod.\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"Det här kreditkortet finns redan som en sparad betalningsmetod.\",\n \"hostedFieldsFailedTokenizationError\": \"Kontrollera uppgifterna och försök igen.\",\n \"hostedFieldsFieldsInvalidError\": \"Kontrollera uppgifterna och försök igen.\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"Nätverksfel. Försök igen.\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"Verifiering av kreditkortet misslyckades. Kontrollera uppgifterna och försök igen.\",\n \"paypalButtonMustBeUsed\": \"Använd PayPal-knappen för att fortsätta med din betalning.\",\n \"venmoButtonMustBeUsed\": \"Använd Venmo-knappen för att fortsätta med din betalning.\",\n \"paypalAccountTokenizationFailedError\": \"Något gick fel när du lade till PayPal-kontot. Försök igen.\",\n \"paypalFlowFailedError\": \"Något gick fel med att ansluta till PayPal. Försök igen.\",\n \"paypalTokenizationRequestActiveError\": \"Godkännande av PayPal-betalning pågår redan.\",\n \"venmoCanceledError\": \"Något gick fel. Se till att du har den senaste versionen av Venmo-appen installerad på din enhet och att din webbläsare stöder byte till Venmo.\",\n \"vaultManagerPaymentMethodDeletionError\": \"Kan inte ta bort betalningsmetoden, försök igen.\",\n \"venmoAppFailedError\": \"Det gick inte att hitta Venmo-appen på din enhet.\",\n \"unsupportedCardTypeError\": \"Den här korttypen stöds inte. Prova med ett annat kort.\",\n \"applePayTokenizationError\": \"Ett nätverksfel uppstod när Apple Pay-betalningen behandlades. Försök igen.\",\n \"applePayActiveCardError\": \"Lägg till ett kort som stöds i din Apple Pay e-plånbok.\",\n \"cardholderNameLabel\": \"Kortinnehavarens namn\",\n \"cardNumberLabel\": \"Kortnummer\",\n \"cvvLabel\": \"CVV\",\n \"cvvThreeDigitLabelSubheading\": \"(3 siffror)\",\n \"cvvFourDigitLabelSubheading\": \"(4 siffror)\",\n \"cardholderNamePlaceholder\": \"Kortinnehavarens namn\",\n \"expirationDateLabel\": \"Utgångsdatum\",\n \"expirationDateLabelSubheading\": \"(MM/ÅÅ)\",\n \"expirationDatePlaceholder\": \"MM/ÅÅ\",\n \"postalCodeLabel\": \"Postnummer\",\n \"saveCardLabel\": \"Spara kort\",\n \"payWithCard\": \"Betala med kort\",\n \"endingIn\": \"Slutar på {{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"Kort\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"Discover\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"UnionPay\"\n };\n }, {}],\n 254: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"ชำระเงินด้วย {{paymentSource}}\",\n \"chooseAnotherWayToPay\": \"เลือกวิธีการชำระเงินอื่น\",\n \"chooseAWayToPay\": \"โปรดเลือกวิธีชำระเงิน\",\n \"otherWaysToPay\": \"วิธีอื่นในการชำระเงิน\",\n \"edit\": \"แก้ไข\",\n \"doneEditing\": \"เสร็จแล้ว\",\n \"editPaymentMethods\": \"แก้ไขวิธีการชำระเงิน\",\n \"CreditCardDeleteConfirmationMessage\": \"ลบบัตร {{secondaryIdentifier}} ที่ลงท้ายด้วย {{identifier}} หรือไม่\",\n \"PayPalAccountDeleteConfirmationMessage\": \"คุณต้องการลบบัญชี PayPal {{identifier}} หรือไม่\",\n \"VenmoAccountDeleteConfirmationMessage\": \"คุณแน่ใจหรือไม่ว่าต้องการลบบัญชี Venmo ที่มีชื่อผู้ใช้ {{identifier}}\",\n \"genericDeleteConfirmationMessage\": \"คุณแน่ใจหรือไม่ว่าต้องการลบการชำระเงินรายการนี้ออก\",\n \"deleteCancelButton\": \"ยกเลิก\",\n \"deleteConfirmationButton\": \"ลบ\",\n \"fieldEmptyForCvv\": \"โปรดกรอกข้อมูลในบัตร CVV\",\n \"fieldEmptyForExpirationDate\": \"โปรดกรอกข้อมูลวันที่หมดอายุ\",\n \"fieldEmptyForCardholderName\": \"โปรดกรอกชื่อผู้ถือบัตร\",\n \"fieldTooLongForCardholderName\": \"ชื่อผู้ถือบัตรต้องไม่เกิน 256 อักขระ\",\n \"fieldEmptyForNumber\": \"โปรดกรอกหมายเลข\",\n \"fieldEmptyForPostalCode\": \"โปรดกรอกข้อมูลในรหัสไปรษณีย์\",\n \"fieldInvalidForCardholderName\": \"ชื่อผู้ถือบัตรนี้ไม่ถูกต้อง\",\n \"fieldInvalidForCvv\": \"รหัสความปลอดภัยนี้ไม่ถูกต้อง\",\n \"fieldInvalidForExpirationDate\": \"วันที่หมดอายุนี้ไม่ถูกต้อง\",\n \"fieldInvalidForNumber\": \"หมายเลขบัตรนี้ไม่ถูกต้อง\",\n \"fieldInvalidForPostalCode\": \"รหัสไปรษณีย์นี้ไม่ถูกต้อง\",\n \"noticeOfCollection\": \"การชําระเงินด้วยบัตรนี้ถือว่าข้าพเจ้ายอมรับนโยบายความเป็นส่วนตัวของ PayPal\",\n \"genericError\": \"เกิดข้อผิดพลาดขึ้นในระบบของเรา\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"บัตรเครดิตนี้เป็นวิธีการชำระเงินที่บันทึกไว้แล้ว\",\n \"hostedFieldsFailedTokenizationError\": \"โปรดตรวจสอบข้อมูลของคุณ แล้วลองใหม่อีกครั้ง\",\n \"hostedFieldsFieldsInvalidError\": \"โปรดตรวจสอบข้อมูลของคุณ แล้วลองใหม่อีกครั้ง\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"ข้อผิดพลาดของเครือข่าย โปรดลองอีกครั้ง\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"การตรวจสอบยืนยันบัตรเครดิตไม่สำเร็จ โปรดตรวจสอบข้อมูลของคุณ แล้วลองใหม่อีกครั้ง\",\n \"paypalButtonMustBeUsed\": \"ใช้ปุ่ม PayPal เพื่อดำเนินการชำระเงินต่อไป\",\n \"venmoButtonMustBeUsed\": \"ใช้ปุ่ม Venmo เพื่อดําเนินการชําระเงินต่อไป\",\n \"paypalAccountTokenizationFailedError\": \"เกิดข้อผิดพลาดบางอย่างในการเพิ่มบัญชี PayPal โปรดลองอีกครั้ง\",\n \"paypalFlowFailedError\": \"เกิดข้อผิดพลาดในการเชื่อมต่อกับ PayPal โปรดลองอีกครั้ง\",\n \"paypalTokenizationRequestActiveError\": \"การอนุมัติการชำระเงิน PayPal อยู่ในระหว่างดำเนินการแล้ว\",\n \"venmoCanceledError\": \"เกิดข้อผิดพลาดบางประการ ตรวจสอบให้แน่ใจว่าคุณมีแอปพลิเคชัน Venmo เวอร์ชันล่าสุดที่ติดตั้งไว้ในอุปกรณ์ของคุณและเบราว์เซอร์ของคุณรองรับการเปลี่ยนเป็น Venmo\",\n \"vaultManagerPaymentMethodDeletionError\": \"ไม่สามารถลบวิธีการชำระเงินได้โปรดลองอีกครั้ง\",\n \"venmoAppFailedError\": \"ไม่พบแอป Venmo ในอุปกรณ์ของคุณ\",\n \"unsupportedCardTypeError\": \"ไม่รองรับบัตรประเภทนี้ โปรดลองใช้บัตรใบอื่น\",\n \"applePayTokenizationError\": \"เกิดข้อผิดพลาดในเครือข่ายขณะประมวลผลการชำระเงินของ Apple Pay โปรดลองอีกครั้ง\",\n \"applePayActiveCardError\": \"เพิ่มบัตรที่รองรับไปยังกระเป๋าสตางค์ Apple Pay ของคุณ\",\n \"cardholderNameLabel\": \"ชื่อของผู้ถือบัตร\",\n \"cardNumberLabel\": \"หมายเลขบัตร\",\n \"cvvLabel\": \"CVV\",\n \"cvvThreeDigitLabelSubheading\": \"(3 หลัก)\",\n \"cvvFourDigitLabelSubheading\": \"(4 หลัก)\",\n \"cardholderNamePlaceholder\": \"ชื่อของผู้ถือบัตร\",\n \"expirationDateLabel\": \"วันหมดอายุ\",\n \"expirationDateLabelSubheading\": \"(MM/YY)\",\n \"expirationDatePlaceholder\": \"MM/YY\",\n \"postalCodeLabel\": \"รหัสไปรษณีย์\",\n \"saveCardLabel\": \"บันทึกบัตร\",\n \"payWithCard\": \"ชำระด้วยบัตรเดบิตหรือบัตรเครดิต\",\n \"endingIn\": \"ลงท้ายด้วย {{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"บัตร\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"Discover\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"UnionPay\"\n };\n }, {}],\n 255: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"使用{{paymentSource}}付款\",\n \"chooseAnotherWayToPay\": \"请选择其它付款方式。\",\n \"chooseAWayToPay\": \"选择付款方式\",\n \"otherWaysToPay\": \"其他付款方式\",\n \"edit\": \"编辑\",\n \"doneEditing\": \"完成\",\n \"editPaymentMethods\": \"编辑付款方式\",\n \"CreditCardDeleteConfirmationMessage\": \"删除尾号为{{identifier}}的{{secondaryIdentifier}}卡?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"删除PayPal账户{{identifier}}?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"您确定要删除用户名为{{identifier}}的Venmo账户吗?\",\n \"genericDeleteConfirmationMessage\": \"确定要删除此付款方式吗?\",\n \"deleteCancelButton\": \"取消\",\n \"deleteConfirmationButton\": \"删除\",\n \"fieldEmptyForCvv\": \"请填写CVV。\",\n \"fieldEmptyForExpirationDate\": \"请填写有效期限。\",\n \"fieldEmptyForCardholderName\": \"请填写持卡人姓名。\",\n \"fieldTooLongForCardholderName\": \"持卡人姓名必须少于256个字符。\",\n \"fieldEmptyForNumber\": \"请填写一个号码。\",\n \"fieldEmptyForPostalCode\": \"请填写邮政编码。\",\n \"fieldInvalidForCardholderName\": \"此持卡人姓名无效。\",\n \"fieldInvalidForCvv\": \"此安全码无效。\",\n \"fieldInvalidForExpirationDate\": \"此有效期限无效。\",\n \"fieldInvalidForNumber\": \"此卡号无效。\",\n \"fieldInvalidForPostalCode\": \"此邮政编码无效。\",\n \"noticeOfCollection\": \"使用我的卡付款即表示我同意PayPal隐私声明。\",\n \"genericError\": \"我们遇到了一些问题。\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"此信用卡已存在于已保存的付款方式。\",\n \"hostedFieldsFailedTokenizationError\": \"请检查您的信息,然后重试。\",\n \"hostedFieldsFieldsInvalidError\": \"请检查您的信息,然后重试。\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"网络错误。请重试。\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"信用卡验证失败。请检查您的信息,然后重试。\",\n \"paypalButtonMustBeUsed\": \"使用PayPal按钮继续付款。\",\n \"venmoButtonMustBeUsed\": \"使用Venmo按钮继续付款。\",\n \"paypalAccountTokenizationFailedError\": \"添加PayPal账户时遇到了一些问题。请重试。\",\n \"paypalFlowFailedError\": \"连接到PayPal遇到了一些问题。请重试。\",\n \"paypalTokenizationRequestActiveError\": \"PayPal付款授权已在处理中。\",\n \"venmoCanceledError\": \"遇到了一些问题。请确保您的设备上安装了最新版本的Venmo应用,并且您的浏览器支持切换到Venmo。\",\n \"vaultManagerPaymentMethodDeletionError\": \"无法删除付款方式,请重试。\",\n \"venmoAppFailedError\": \"在您的设备上找不到Venmo应用程序。\",\n \"unsupportedCardTypeError\": \"不支持该卡类型。请尝试其他卡。\",\n \"applePayTokenizationError\": \"处理Apple Pay付款时发生了网络错误。请重试。\",\n \"applePayActiveCardError\": \"在您的Apple Pay钱包中添加一张受支持的卡。\",\n \"cardholderNameLabel\": \"持卡人姓名\",\n \"cardNumberLabel\": \"卡号\",\n \"cvvLabel\": \"CVV\",\n \"cvvThreeDigitLabelSubheading\": \"(3位数)\",\n \"cvvFourDigitLabelSubheading\": \"(4位数)\",\n \"cardholderNamePlaceholder\": \"持卡人姓名\",\n \"expirationDateLabel\": \"有效期限\",\n \"expirationDateLabelSubheading\": \"(月/年)\",\n \"expirationDatePlaceholder\": \"月/年\",\n \"postalCodeLabel\": \"邮政编码\",\n \"saveCardLabel\": \"保存此卡\",\n \"payWithCard\": \"使用卡支付\",\n \"endingIn\": \"尾号为{{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"卡\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"发现\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"银联\"\n };\n }, {}],\n 256: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"付款方式為 {{paymentSource}}\",\n \"chooseAnotherWayToPay\": \"請選擇其他付款方式\",\n \"chooseAWayToPay\": \"選擇付款方式\",\n \"otherWaysToPay\": \"其他付款方式\",\n \"edit\": \"編輯\",\n \"doneEditing\": \"完成\",\n \"editPaymentMethods\": \"編輯付款方式\",\n \"CreditCardDeleteConfirmationMessage\": \"刪除最後數字為 {{identifier}} 的 {{secondaryIdentifier}} 卡嗎?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"刪除 {{identifier}} PayPal 帳戶嗎?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"確定要刪除用戶名稱為 {{identifier}} 的 Venmo 帳戶嗎?\",\n \"genericDeleteConfirmationMessage\": \"確定要刪除此付款方式嗎?\",\n \"deleteCancelButton\": \"取消\",\n \"deleteConfirmationButton\": \"刪除\",\n \"fieldEmptyForCvv\": \"請填寫信用卡認證碼(CVV)。\",\n \"fieldEmptyForExpirationDate\": \"請填寫到期日。\",\n \"fieldEmptyForCardholderName\": \"請填寫持卡人姓名。\",\n \"fieldTooLongForCardholderName\": \"持卡人姓名必須少於 256 個字元。\",\n \"fieldEmptyForNumber\": \"請填寫數字。\",\n \"fieldEmptyForPostalCode\": \"請填寫郵遞區號。\",\n \"fieldInvalidForCardholderName\": \"持卡人姓名無效。\",\n \"fieldInvalidForCvv\": \"此安全代碼無效。\",\n \"fieldInvalidForExpirationDate\": \"此到期日無效。\",\n \"fieldInvalidForNumber\": \"此卡號無效。\",\n \"fieldInvalidForPostalCode\": \"郵遞區號無效。\",\n \"noticeOfCollection\": \"一經使用信用卡付款,即表示我同意 PayPal 的《私隱權聲明》。\",\n \"genericError\": \"系統發生錯誤。\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"此信用卡為已儲存的付款方式。\",\n \"hostedFieldsFailedTokenizationError\": \"請檢查你的資料,然後重試。\",\n \"hostedFieldsFieldsInvalidError\": \"請檢查你的資料,然後重試。\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"網絡錯誤。請再試一次。\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"信用卡認證失敗。請檢查你的資料,然後重試。\",\n \"paypalButtonMustBeUsed\": \"使用「PayPal 按鈕」繼續付款。\",\n \"venmoButtonMustBeUsed\": \"使用 Venmo 按鈕以繼續付款。\",\n \"paypalAccountTokenizationFailedError\": \"新增 PayPal 帳戶出現問題,請再試一次。\",\n \"paypalFlowFailedError\": \"連接至 PayPal 出現問題,請再試一次。\",\n \"paypalTokenizationRequestActiveError\": \"正在處理 PayPal 授權付款。\",\n \"venmoCanceledError\": \"系統出現錯誤,請確保裝置已安裝最新版本的 Venmo 應用程式,及瀏覽器支援切換至 Venmo。\",\n \"vaultManagerPaymentMethodDeletionError\": \"無法刪除付款方式,請再試一次。\",\n \"venmoAppFailedError\": \"無法在裝置上找到 Venmo 應用程式。\",\n \"unsupportedCardTypeError\": \"不支援此卡類型。請改用其他信用卡。\",\n \"applePayTokenizationError\": \"處理 Apple Pay 付款時網路發生錯誤。請再試一次。\",\n \"applePayActiveCardError\": \"新增可用的信用卡到 Apple Pay 錢包。\",\n \"cardholderNameLabel\": \"持卡人姓名\",\n \"cardNumberLabel\": \"卡號\",\n \"cvvLabel\": \"CVV\",\n \"cvvThreeDigitLabelSubheading\": \"(3 位數)\",\n \"cvvFourDigitLabelSubheading\": \"(4 位數)\",\n \"cardholderNamePlaceholder\": \"持卡人姓名\",\n \"expirationDateLabel\": \"到期日\",\n \"expirationDateLabelSubheading\": \"(MM/YY)\",\n \"expirationDatePlaceholder\": \"MM/YY\",\n \"postalCodeLabel\": \"郵遞區號\",\n \"saveCardLabel\": \"儲存卡\",\n \"payWithCard\": \"使用扣帳卡或信用卡付款\",\n \"endingIn\": \"最後數字為 {{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"信用卡\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"Discover\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"UnionPay\"\n };\n }, {}],\n 257: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"使用 {{paymentSource}} 付款\",\n \"chooseAnotherWayToPay\": \"選擇其他付款方式\",\n \"chooseAWayToPay\": \"選擇付款方式\",\n \"otherWaysToPay\": \"其他付款方式\",\n \"edit\": \"編輯\",\n \"doneEditing\": \"完成\",\n \"editPaymentMethods\": \"編輯付款方式\",\n \"CreditCardDeleteConfirmationMessage\": \"刪除末碼為 {{identifier}} 的 {{secondaryIdentifier}} 卡片?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"刪除 {{identifier}} 的 PayPal 帳戶?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"確定要刪除用戶名稱為 {{identifier}} 的 Venmo 帳戶?\",\n \"genericDeleteConfirmationMessage\": \"確定要刪除此付款方式?\",\n \"deleteCancelButton\": \"取消\",\n \"deleteConfirmationButton\": \"刪除\",\n \"fieldEmptyForCvv\": \"填寫信用卡驗證碼。\",\n \"fieldEmptyForExpirationDate\": \"填寫到期日。\",\n \"fieldEmptyForCardholderName\": \"填寫持卡人姓名。\",\n \"fieldTooLongForCardholderName\": \"持卡人姓名必須少於 256 個字元。\",\n \"fieldEmptyForNumber\": \"填寫數字。\",\n \"fieldEmptyForPostalCode\": \"填寫郵遞區號。\",\n \"fieldInvalidForCardholderName\": \"此持卡人姓名無效。\",\n \"fieldInvalidForCvv\": \"此安全代碼無效。\",\n \"fieldInvalidForExpirationDate\": \"此到期日無效。\",\n \"fieldInvalidForNumber\": \"此卡號無效。\",\n \"fieldInvalidForPostalCode\": \"此郵遞區號無效。\",\n \"noticeOfCollection\": \"使用我的卡片付款,即表示我同意「PayPal 隱私權聲明」。\",\n \"genericError\": \"我們的系統發生問題。\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"此信用卡已經是儲存的付款方式。\",\n \"hostedFieldsFailedTokenizationError\": \"請檢查你的資料並重試。\",\n \"hostedFieldsFieldsInvalidError\": \"請檢查你的資料並重試。\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"網路錯誤。請重試。\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"信用卡認證失敗。請檢查你的資料並重試。\",\n \"paypalButtonMustBeUsed\": \"使用 PayPal 按鈕繼續付款。\",\n \"venmoButtonMustBeUsed\": \"使用 Venmo 按鈕繼續付款。\",\n \"paypalAccountTokenizationFailedError\": \"新增 PayPal 帳戶時發生錯誤。請重試。\",\n \"paypalFlowFailedError\": \"連結至 PayPal 時發生錯誤。請重試。\",\n \"paypalTokenizationRequestActiveError\": \"PayPal 付款授權已在進行中。\",\n \"venmoCanceledError\": \"系統發生錯誤。確保你在裝置上安裝了最新版本的 Venmo 應用程式,且瀏覽器支援轉換至 Venmo。\",\n \"vaultManagerPaymentMethodDeletionError\": \"無法刪除付款方式,請重試。\",\n \"venmoAppFailedError\": \"你的裝置上找不到 Venmo 應用程式。\",\n \"unsupportedCardTypeError\": \"不支援此卡片類型,請改用其他卡片。\",\n \"applePayTokenizationError\": \"處理 Apple Pay 付款時發生網路連線錯誤。請重試。\",\n \"applePayActiveCardError\": \"將支援卡片新增至你的 Apple Pay 錢包。\",\n \"cardholderNameLabel\": \"持卡人姓名\",\n \"cardNumberLabel\": \"卡號\",\n \"cvvLabel\": \"信用卡驗證碼\",\n \"cvvThreeDigitLabelSubheading\": \"(3 位數)\",\n \"cvvFourDigitLabelSubheading\": \"(4 位數)\",\n \"cardholderNamePlaceholder\": \"持卡人姓名\",\n \"expirationDateLabel\": \"到期日\",\n \"expirationDateLabelSubheading\": \"(月 / 年)\",\n \"expirationDatePlaceholder\": \"月 / 年\",\n \"postalCodeLabel\": \"郵遞區號\",\n \"saveCardLabel\": \"儲存卡片\",\n \"payWithCard\": \"使用卡片付款\",\n \"endingIn\": \"末碼為 {{lastFourCardDigits}}\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"卡片\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"美國運通\",\n \"Discover\": \"發現卡\",\n \"Diners Club\": \"大來卡\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"銀聯\"\n };\n }, {}],\n 258: [function (require, module, exports) {\n 'use strict';\n\n module.exports = {\n \"payingWith\": \"使用{{paymentSource}}付款\",\n \"chooseAnotherWayToPay\": \"选择其他付款方式\",\n \"chooseAWayToPay\": \"选择付款方式\",\n \"otherWaysToPay\": \"其他付款方式\",\n \"edit\": \"编辑\",\n \"doneEditing\": \"完成\",\n \"editPaymentMethods\": \"编辑付款方式\",\n \"CreditCardDeleteConfirmationMessage\": \"删除以{{identifier}}}结尾的{{secondaryIdentifier}}}卡?\",\n \"PayPalAccountDeleteConfirmationMessage\": \"删除PayPal账户{{identifier}}}?\",\n \"VenmoAccountDeleteConfirmationMessage\": \"确定要删除用户名为{{identifier}}}的Venmo账户吗?\",\n \"genericDeleteConfirmationMessage\": \"确定要删除此付款方式吗?\",\n \"deleteCancelButton\": \"取消\",\n \"deleteConfirmationButton\": \"删除\",\n \"fieldEmptyForCvv\": \"请填写卡校验值。\",\n \"fieldEmptyForExpirationDate\": \"请填写有效期限。\",\n \"fieldEmptyForCardholderName\": \"请填写持卡人姓名。\",\n \"fieldTooLongForCardholderName\": \"持卡人姓名必须少于256个字符。\",\n \"fieldEmptyForNumber\": \"请填写号码。\",\n \"fieldEmptyForPostalCode\": \"请填写邮政编码。\",\n \"fieldInvalidForCardholderName\": \"此持卡人姓名无效。\",\n \"fieldInvalidForCvv\": \"此验证码无效。\",\n \"fieldInvalidForExpirationDate\": \"此有效期限无效。\",\n \"fieldInvalidForNumber\": \"此卡号无效。\",\n \"fieldInvalidForPostalCode\": \"此邮政编码无效。\",\n \"noticeOfCollection\": \"使用我的卡付款即表示我同意PayPal隐私声明。\",\n \"genericError\": \"我们遇到了一些问题。\",\n \"hostedFieldsTokenizationFailOnDuplicateError\": \"此信用卡已存在于已保存的付款方式中。\",\n \"hostedFieldsFailedTokenizationError\": \"请检查您的信息,然后重试。\",\n \"hostedFieldsFieldsInvalidError\": \"请检查您的信息,然后重试。\",\n \"hostedFieldsTokenizationNetworkErrorError\": \"网络错误。请重试。\",\n \"hostedFieldsTokenizationCvvVerificationFailedError\": \"信用卡认证失败。请检查您的信息,然后重试。\",\n \"paypalButtonMustBeUsed\": \"使用PayPal按钮以便继续进行您的付款。\",\n \"venmoButtonMustBeUsed\": \"使用Venmo按钮继续付款。\",\n \"paypalAccountTokenizationFailedError\": \"添加PayPal账户时遇到了问题。请重试。\",\n \"paypalFlowFailedError\": \"连接到PayPal时遇到了问题。请重试。\",\n \"paypalTokenizationRequestActiveError\": \"PayPal付款授权正在处理中。\",\n \"venmoCanceledError\": \"遇到了一些问题。请确保您的设备上安装了最新版本的Venmo应用,并且您的浏览器支持切换到Venmo。\",\n \"vaultManagerPaymentMethodDeletionError\": \"无法删除付款方式,请重试。\",\n \"venmoAppFailedError\": \"未能在您的设备上找到Venmo应用。\",\n \"unsupportedCardTypeError\": \"不支持该卡类型。请尝试其它卡。\",\n \"applePayTokenizationError\": \"处理Apple Pay付款时出现了网络错误。请重试。\",\n \"applePayActiveCardError\": \"在您的Apple Pay钱包中添加一张受支持的卡。\",\n \"cardholderNameLabel\": \"持卡人姓名\",\n \"cardNumberLabel\": \"卡号\",\n \"cvvLabel\": \"卡校验值\",\n \"cvvThreeDigitLabelSubheading\": \"(3位数)\",\n \"cvvFourDigitLabelSubheading\": \"(4位数)\",\n \"cardholderNamePlaceholder\": \"持卡人姓名\",\n \"expirationDateLabel\": \"有效期限\",\n \"expirationDateLabelSubheading\": \"(月/年)\",\n \"expirationDatePlaceholder\": \"月/年\",\n \"postalCodeLabel\": \"邮政编码\",\n \"saveCardLabel\": \"保存卡\",\n \"payWithCard\": \"使用卡支付\",\n \"endingIn\": \"以{{lastFourCardDigits}}}结尾\",\n \"Apple Pay\": \"Apple Pay\",\n \"Venmo\": \"Venmo\",\n \"Card\": \"卡\",\n \"PayPal\": \"PayPal\",\n \"PayPal Credit\": \"PayPal Credit\",\n \"Google Pay\": \"Google Pay\",\n \"American Express\": \"American Express\",\n \"Discover\": \"发现\",\n \"Diners Club\": \"Diners Club\",\n \"Elo\": \"Elo\",\n \"Hiper\": \"Hiper\",\n \"Hipercard\": \"Hipercard\",\n \"MasterCard\": \"Mastercard\",\n \"Visa\": \"Visa\",\n \"JCB\": \"JCB\",\n \"Maestro\": \"Maestro\",\n \"UnionPay\": \"银联\"\n };\n }, {}],\n 259: [function (require, module, exports) {\n 'use strict';\n\n var assign = require('../lib/assign').assign;\n var DropinError = require('../lib/dropin-error');\n var errors = require('../constants').errors;\n function BaseView(options) {\n options = options || {};\n assign(this, options);\n }\n BaseView.prototype.getElementById = function (id) {\n if (!this.element) {\n return null;\n }\n return this.element.querySelector('[data-braintree-id=\"' + id + '\"]');\n };\n BaseView.prototype.requestPaymentMethod = function () {\n return Promise.reject(new DropinError(errors.NO_PAYMENT_METHOD_ERROR));\n };\n BaseView.prototype.getPaymentMethod = function () {\n return this.activeMethodView && this.activeMethodView.paymentMethod;\n };\n BaseView.prototype.onSelection = function () {};\n BaseView.prototype.teardown = function () {\n return Promise.resolve();\n };\n BaseView.prototype.preventUserAction = function () {\n if (this.element) {\n this.element.classList.add('braintree-sheet--loading');\n }\n this.model.preventUserAction();\n };\n BaseView.prototype.allowUserAction = function () {\n if (this.element) {\n this.element.classList.remove('braintree-sheet--loading');\n }\n this.model.allowUserAction();\n };\n module.exports = BaseView;\n }, {\n \"../constants\": 202,\n \"../lib/assign\": 208,\n \"../lib/dropin-error\": 212\n }],\n 260: [function (require, module, exports) {\n 'use strict';\n\n var BaseView = require('./base-view');\n var addSelectionEventHandler = require('../lib/add-selection-event-handler');\n var paymentMethodTypes = require('../constants').paymentMethodTypes;\n function DeleteConfirmationView() {\n BaseView.apply(this, arguments);\n this._initialize();\n }\n DeleteConfirmationView.prototype = Object.create(BaseView.prototype);\n DeleteConfirmationView.prototype.constructor = DeleteConfirmationView;\n DeleteConfirmationView.ID = DeleteConfirmationView.prototype.ID = 'delete-confirmation';\n DeleteConfirmationView.prototype._initialize = function () {\n this._yesButton = this.getElementById('delete-confirmation__yes');\n this._noButton = this.getElementById('delete-confirmation__no');\n this._messageBox = this.getElementById('delete-confirmation__message');\n addSelectionEventHandler(this._yesButton, function () {\n this.model.deleteVaultedPaymentMethod();\n }.bind(this));\n addSelectionEventHandler(this._noButton, function () {\n this.model.cancelDeleteVaultedPaymentMethod();\n }.bind(this));\n };\n DeleteConfirmationView.prototype.applyPaymentMethod = function (paymentMethod) {\n var identifier, secondaryIdentifier;\n var messageText = this.strings[paymentMethod.type + 'DeleteConfirmationMessage'];\n if (messageText) {\n switch (paymentMethod.type) {\n case paymentMethodTypes.card:\n identifier = paymentMethod.details.lastFour;\n secondaryIdentifier = paymentMethod.details.cardType;\n secondaryIdentifier = this.strings[secondaryIdentifier] || secondaryIdentifier;\n break;\n case paymentMethodTypes.paypal:\n identifier = paymentMethod.details.email;\n break;\n case paymentMethodTypes.venmo:\n identifier = paymentMethod.details.username;\n break;\n default:\n break;\n }\n messageText = messageText.replace('{{identifier}}', identifier);\n if (secondaryIdentifier) {\n messageText = messageText.replace('{{secondaryIdentifier}}', secondaryIdentifier);\n }\n } else {\n messageText = this.strings.genericDeleteConfirmationMessage;\n }\n this._messageBox.innerText = messageText;\n };\n DeleteConfirmationView.prototype.onSelection = function () {\n window.requestAnimationFrame(function () {\n this._yesButton.focus();\n }.bind(this));\n };\n module.exports = DeleteConfirmationView;\n }, {\n \"../constants\": 202,\n \"../lib/add-selection-event-handler\": 206,\n \"./base-view\": 259\n }],\n 261: [function (require, module, exports) {\n 'use strict';\n\n var analytics = require('../lib/analytics');\n var analyticsKinds = require('../constants').analyticsKinds;\n var BaseView = require('./base-view');\n var sheetViews = require('./payment-sheet-views');\n var PaymentMethodsView = require('./payment-methods-view');\n var PaymentOptionsView = require('./payment-options-view');\n var DeleteConfirmationView = require('./delete-confirmation-view');\n var addSelectionEventHandler = require('../lib/add-selection-event-handler');\n var wait = require('../lib/wait');\n var supportsFlexbox = require('../lib/supports-flexbox');\n var CHANGE_ACTIVE_PAYMENT_METHOD_TIMEOUT = require('../constants').CHANGE_ACTIVE_PAYMENT_METHOD_TIMEOUT;\n var DEVELOPER_MISCONFIGURATION_MESSAGE = require('../constants').errors.DEVELOPER_MISCONFIGURATION_MESSAGE;\n function MainView() {\n BaseView.apply(this, arguments);\n this.dependenciesInitializing = 0;\n this._initialize();\n }\n MainView.prototype = Object.create(BaseView.prototype);\n MainView.prototype.constructor = MainView;\n MainView.prototype._initialize = function () {\n var paymentOptionsView;\n this._hasMultiplePaymentOptions = this.model.supportedPaymentOptions.length > 1;\n this._views = {};\n this.sheetContainer = this.getElementById('sheet-container');\n this.sheetErrorText = this.getElementById('sheet-error-text');\n this.toggle = this.getElementById('toggle');\n this.disableWrapper = this.getElementById('disable-wrapper');\n this.lowerContainer = this.getElementById('lower-container');\n this.loadingContainer = this.getElementById('loading-container');\n this.dropinContainer = this.element.querySelector('.braintree-dropin');\n this.supportsFlexbox = supportsFlexbox();\n this.model.on('asyncDependenciesReady', this.hideLoadingIndicator.bind(this));\n this.model.on('errorOccurred', this.showSheetError.bind(this));\n this.model.on('errorCleared', this.hideSheetError.bind(this));\n this.model.on('preventUserAction', this.preventUserAction.bind(this));\n this.model.on('allowUserAction', this.allowUserAction.bind(this));\n this.paymentSheetViewIDs = Object.keys(sheetViews).reduce(function (ids, sheetViewKey) {\n var PaymentSheetView, paymentSheetView;\n if (this.model.supportedPaymentOptions.indexOf(sheetViewKey) !== -1) {\n PaymentSheetView = sheetViews[sheetViewKey];\n paymentSheetView = new PaymentSheetView({\n element: this.getElementById(PaymentSheetView.ID),\n mainView: this,\n model: this.model,\n client: this.client,\n strings: this.strings\n });\n paymentSheetView.initialize();\n this.addView(paymentSheetView);\n ids.push(paymentSheetView.ID);\n }\n return ids;\n }.bind(this), []);\n this.paymentMethodsViews = new PaymentMethodsView({\n element: this.element,\n model: this.model,\n client: this.client,\n strings: this.strings\n });\n this.addView(this.paymentMethodsViews);\n this.deleteConfirmationView = new DeleteConfirmationView({\n element: this.getElementById('delete-confirmation'),\n model: this.model,\n strings: this.strings\n });\n this.addView(this.deleteConfirmationView);\n addSelectionEventHandler(this.toggle, this.toggleAdditionalOptions.bind(this));\n this.model.on('changeActivePaymentMethod', function () {\n wait.delay(CHANGE_ACTIVE_PAYMENT_METHOD_TIMEOUT).then(function () {\n var id = PaymentMethodsView.ID;\n\n // if Drop-in gets into the state where it's told to go to the methods\n // view, but there are no saved payment methods, it should instead\n // redirect to the view it started on\n if (!this.model.hasPaymentMethods()) {\n id = this.model.getInitialViewId();\n }\n this.setPrimaryView(id);\n }.bind(this));\n }.bind(this));\n this.model.on('changeActiveView', this._onChangeActiveView.bind(this));\n this.model.on('removeActivePaymentMethod', function () {\n var activePaymentView = this.getView(this.model.getActivePaymentViewId());\n if (activePaymentView && typeof activePaymentView.removeActivePaymentMethod === 'function') {\n activePaymentView.removeActivePaymentMethod();\n }\n }.bind(this));\n this.model.on('enableEditMode', this.enableEditMode.bind(this));\n this.model.on('disableEditMode', this.disableEditMode.bind(this));\n this.model.on('confirmPaymentMethodDeletion', this.openConfirmPaymentMethodDeletionDialog.bind(this));\n this.model.on('cancelVaultedPaymentMethodDeletion', this.cancelVaultedPaymentMethodDeletion.bind(this));\n this.model.on('startVaultedPaymentMethodDeletion', this.startVaultedPaymentMethodDeletion.bind(this));\n this.model.on('finishVaultedPaymentMethodDeletion', this.finishVaultedPaymentMethodDeletion.bind(this));\n if (this._hasMultiplePaymentOptions) {\n paymentOptionsView = new PaymentOptionsView({\n client: this.client,\n element: this.getElementById(PaymentOptionsView.ID),\n mainView: this,\n model: this.model,\n strings: this.strings\n });\n this.addView(paymentOptionsView);\n }\n this._sendToDefaultView();\n };\n MainView.prototype._onChangeActiveView = function (data) {\n var id = data.newViewId;\n var activePaymentView = this.getView(id);\n if (id === PaymentMethodsView.ID) {\n this.paymentMethodsViews.container.classList.add('braintree-methods--active');\n this.sheetContainer.classList.remove('braintree-sheet--active');\n } else {\n wait.delay(0).then(function () {\n this.sheetContainer.classList.add('braintree-sheet--active');\n }.bind(this));\n this.paymentMethodsViews.container.classList.remove('braintree-methods--active');\n if (!this.getView(id).getPaymentMethod()) {\n this.model.setPaymentMethodRequestable({\n isRequestable: false\n });\n }\n }\n activePaymentView.onSelection();\n };\n MainView.prototype.addView = function (view) {\n this._views[view.ID] = view;\n };\n MainView.prototype.getView = function (id) {\n return this._views[id];\n };\n MainView.prototype.setPrimaryView = function (id, secondaryViewId) {\n var paymentMethod;\n wait.delay(0).then(function () {\n this.element.className = prefixShowClass(id);\n if (secondaryViewId) {\n this.element.classList.add(prefixShowClass(secondaryViewId));\n }\n }.bind(this));\n this.primaryView = this.getView(id);\n this.model.changeActiveView(id);\n if (this.paymentSheetViewIDs.indexOf(id) !== -1) {\n if (this.model.getPaymentMethods().length > 0 || this.getView(PaymentOptionsView.ID)) {\n this.showToggle();\n } else {\n this.hideToggle();\n }\n } else if (id === PaymentMethodsView.ID) {\n this.showToggle();\n // Move options below the upper-container\n this.getElementById('lower-container').appendChild(this.getElementById('options'));\n } else if (id === PaymentOptionsView.ID) {\n this.hideToggle();\n }\n if (!this.supportsFlexbox) {\n this.element.setAttribute('data-braintree-no-flexbox', true);\n }\n paymentMethod = this.primaryView.getPaymentMethod();\n this.model.setPaymentMethodRequestable({\n isRequestable: Boolean(paymentMethod && !this.model.isInEditMode()),\n type: paymentMethod && paymentMethod.type,\n selectedPaymentMethod: paymentMethod\n });\n this.model.clearError();\n };\n MainView.prototype.requestPaymentMethod = function () {\n var activePaymentView = this.getView(this.model.getActivePaymentViewId());\n return activePaymentView.requestPaymentMethod().then(function (payload) {\n analytics.sendEvent(this.client, 'request-payment-method.' + analyticsKinds[payload.type]);\n return payload;\n }.bind(this)).catch(function (err) {\n analytics.sendEvent(this.client, 'request-payment-method.error');\n return Promise.reject(err);\n }.bind(this));\n };\n MainView.prototype.hideLoadingIndicator = function () {\n this.dropinContainer.classList.remove('braintree-loading');\n this.dropinContainer.classList.add('braintree-loaded');\n this.loadingContainer.classList.add('braintree-hidden');\n };\n MainView.prototype.showLoadingIndicator = function () {\n this.dropinContainer.classList.add('braintree-loading');\n this.dropinContainer.classList.remove('braintree-loaded');\n this.loadingContainer.classList.remove('braintree-hidden');\n };\n MainView.prototype.toggleAdditionalOptions = function () {\n var sheetViewID;\n var isPaymentSheetView = this.paymentSheetViewIDs.indexOf(this.primaryView.ID) !== -1;\n this.hideToggle();\n if (!this._hasMultiplePaymentOptions) {\n sheetViewID = this.paymentSheetViewIDs[0];\n this.element.classList.add(prefixShowClass(sheetViewID));\n this.model.changeActiveView(sheetViewID);\n } else if (isPaymentSheetView) {\n if (this.model.getPaymentMethods().length === 0) {\n this.setPrimaryView(PaymentOptionsView.ID);\n } else {\n this.setPrimaryView(PaymentMethodsView.ID, PaymentOptionsView.ID);\n this.hideToggle();\n }\n } else {\n this.element.classList.add(prefixShowClass(PaymentOptionsView.ID));\n }\n };\n MainView.prototype.showToggle = function () {\n if (this.model.isInEditMode()) {\n return;\n }\n this.toggle.classList.remove('braintree-hidden');\n this.lowerContainer.classList.add('braintree-hidden');\n };\n MainView.prototype.hideToggle = function () {\n this.toggle.classList.add('braintree-hidden');\n this.lowerContainer.classList.remove('braintree-hidden');\n };\n MainView.prototype.showSheetError = function (error) {\n var errorMessage;\n var genericErrorMessage = this.strings.genericError;\n if (this.strings.hasOwnProperty(error)) {\n errorMessage = this.strings[error];\n } else if (error && typeof error.code === 'string') {\n errorMessage = this.strings[snakeCaseToCamelCase(error.code) + 'Error'] || genericErrorMessage;\n } else if (error === 'developerError') {\n errorMessage = DEVELOPER_MISCONFIGURATION_MESSAGE;\n } else {\n errorMessage = genericErrorMessage;\n }\n this.dropinContainer.classList.add('braintree-sheet--has-error');\n this.sheetErrorText.innerHTML = errorMessage;\n };\n MainView.prototype.hideSheetError = function () {\n this.dropinContainer.classList.remove('braintree-sheet--has-error');\n };\n MainView.prototype.getOptionsElements = function () {\n return this._views.options.elements;\n };\n MainView.prototype.preventUserAction = function () {\n this.disableWrapper.classList.remove('braintree-hidden');\n };\n MainView.prototype.allowUserAction = function () {\n this.disableWrapper.classList.add('braintree-hidden');\n };\n MainView.prototype.teardown = function () {\n var error;\n var viewNames = Object.keys(this._views);\n var teardownPromises = viewNames.map(function (view) {\n return this._views[view].teardown().catch(function (err) {\n error = err;\n });\n }.bind(this));\n return Promise.all(teardownPromises).then(function () {\n if (error) {\n return Promise.reject(error);\n }\n return Promise.resolve();\n });\n };\n MainView.prototype.enableEditMode = function () {\n this.setPrimaryView(this.paymentMethodsViews.ID);\n this.paymentMethodsViews.enableEditMode();\n this.hideToggle();\n this.model.setPaymentMethodRequestable({\n isRequestable: false\n });\n };\n MainView.prototype.disableEditMode = function () {\n var paymentMethod;\n this.hideSheetError();\n this.paymentMethodsViews.disableEditMode();\n this.showToggle();\n paymentMethod = this.primaryView.getPaymentMethod();\n this.model.setPaymentMethodRequestable({\n isRequestable: Boolean(paymentMethod),\n type: paymentMethod && paymentMethod.type,\n selectedPaymentMethod: paymentMethod\n });\n };\n MainView.prototype.openConfirmPaymentMethodDeletionDialog = function (paymentMethod) {\n this.deleteConfirmationView.applyPaymentMethod(paymentMethod);\n this.setPrimaryView(this.deleteConfirmationView.ID);\n };\n MainView.prototype.cancelVaultedPaymentMethodDeletion = function () {\n this.setPrimaryView(this.paymentMethodsViews.ID);\n };\n MainView.prototype.startVaultedPaymentMethodDeletion = function () {\n this.element.className = '';\n this.showLoadingIndicator();\n };\n MainView.prototype.finishVaultedPaymentMethodDeletion = function (error) {\n var self = this;\n this.paymentMethodsViews.refreshPaymentMethods();\n if (error && this.model.getPaymentMethods().length > 0) {\n this.model.enableEditMode();\n this.showSheetError('vaultManagerPaymentMethodDeletionError');\n } else {\n this._sendToDefaultView();\n }\n return new Promise(function (resolve) {\n wait.delay(500).then(function () {\n // allow all the views to reset before hiding the loading indicator\n self.hideLoadingIndicator();\n resolve();\n });\n });\n };\n MainView.prototype._sendToDefaultView = function () {\n var paymentMethods = this.model.getPaymentMethods();\n var preselectVaultedPaymentMethod = this.model.merchantConfiguration.preselectVaultedPaymentMethod !== false;\n if (paymentMethods.length > 0) {\n if (preselectVaultedPaymentMethod) {\n analytics.sendEvent(this.client, 'vaulted-card.preselect');\n this.model.changeActivePaymentMethod(paymentMethods[0]);\n } else {\n this.setPrimaryView(this.paymentMethodsViews.ID);\n }\n } else if (this._hasMultiplePaymentOptions) {\n this.setPrimaryView(PaymentOptionsView.ID);\n } else {\n this.setPrimaryView(this.paymentSheetViewIDs[0]);\n }\n };\n function snakeCaseToCamelCase(s) {\n return s.toLowerCase().replace(/(\\_\\w)/g, function (m) {\n return m[1].toUpperCase();\n });\n }\n function prefixShowClass(classname) {\n return 'braintree-show-' + classname;\n }\n module.exports = MainView;\n }, {\n \"../constants\": 202,\n \"../lib/add-selection-event-handler\": 206,\n \"../lib/analytics\": 207,\n \"../lib/supports-flexbox\": 220,\n \"../lib/wait\": 223,\n \"./base-view\": 259,\n \"./delete-confirmation-view\": 260,\n \"./payment-methods-view\": 263,\n \"./payment-options-view\": 264,\n \"./payment-sheet-views\": 269\n }],\n 262: [function (require, module, exports) {\n 'use strict';\n\n var analytics = require('../lib/analytics');\n var BaseView = require('./base-view');\n var constants = require('../constants');\n var addSelectionEventHandler = require('../lib/add-selection-event-handler');\n var paymentMethodHTML = \"
\\n
\\n \\n \\n \\n
\\n
\\n\\n
\\n \\n \\n \\n
\\n\\n
@TITLE
@SUBTITLE
\\n\\n
\\n
\\n \\n \\n \\n
\\n
\\n\";\n function PaymentMethodView() {\n BaseView.apply(this, arguments);\n this._initialize();\n }\n PaymentMethodView.prototype = Object.create(BaseView.prototype);\n PaymentMethodView.prototype.constructor = PaymentMethodView;\n PaymentMethodView.prototype._initialize = function () {\n var endingInText;\n var html = paymentMethodHTML;\n var paymentMethodCardTypes = constants.paymentMethodCardTypes;\n var paymentMethodTypes = constants.paymentMethodTypes;\n this.element = document.createElement('div');\n this.element.className = 'braintree-method';\n this.element.setAttribute('tabindex', '0');\n this.element.setAttribute('role', 'button');\n addSelectionEventHandler(this.element, function () {\n if (this.model.isInEditMode()) {\n this._selectDelete();\n } else {\n this._choosePaymentMethod();\n }\n }.bind(this));\n switch (this.paymentMethod.type) {\n case paymentMethodTypes.applePay:\n html = html.replace(/@ICON/g, 'logoApplePay').replace(/@CLASSNAME/g, '').replace(/@TITLE/g, this.strings['Apple Pay']).replace(/@SUBTITLE/g, '');\n break;\n case paymentMethodTypes.card:\n endingInText = this.strings.endingIn.replace('{{lastFourCardDigits}}', this.paymentMethod.details.lastFour);\n html = html.replace(/@ICON/g, 'icon-' + paymentMethodCardTypes[this.paymentMethod.details.cardType]).replace(/@CLASSNAME/g, ' braintree-icon--bordered').replace(/@TITLE/g, endingInText).replace(/@SUBTITLE/g, this.strings[this.paymentMethod.details.cardType]);\n break;\n case paymentMethodTypes.googlePay:\n html = html.replace(/@ICON/g, 'logoGooglePay').replace(/@CLASSNAME/g, '').replace(/@TITLE/g, this.strings['Google Pay']).replace(/@SUBTITLE/g, '');\n break;\n case paymentMethodTypes.paypal:\n html = html.replace(/@ICON/g, 'logoPayPal').replace(/@CLASSNAME/g, '').replace(/@TITLE/g, this.paymentMethod.details.email).replace(/@SUBTITLE/g, this.strings.PayPal);\n break;\n case paymentMethodTypes.venmo:\n html = html.replace(/@ICON/g, 'logoVenmo').replace(/@CLASSNAME/g, '').replace(/@TITLE/g, this.paymentMethod.details.username).replace(/@SUBTITLE/g, this.strings.Venmo);\n break;\n default:\n break;\n }\n this.element.innerHTML = html;\n this.checkMark = this.element.querySelector('.braintree-method__check-container');\n };\n PaymentMethodView.prototype.setActive = function (isActive) {\n // setTimeout required to animate addition of new payment methods\n setTimeout(function () {\n this.element.classList.toggle('braintree-method--active', isActive);\n }.bind(this), 0);\n };\n PaymentMethodView.prototype.enableEditMode = function () {\n this.checkMark.classList.add('braintree-hidden');\n if (this.paymentMethod.hasSubscription) {\n this.element.classList.add('braintree-method--disabled');\n }\n };\n PaymentMethodView.prototype.disableEditMode = function () {\n this.checkMark.classList.remove('braintree-hidden');\n this.element.classList.remove('braintree-method--disabled');\n };\n PaymentMethodView.prototype.teardown = function () {\n if (this.element.parentNode) {\n this.element.parentNode.removeChild(this.element);\n }\n };\n PaymentMethodView.prototype._choosePaymentMethod = function () {\n if (this.paymentMethod.vaulted) {\n analytics.sendEvent(this.client, 'vaulted-' + constants.analyticsKinds[this.paymentMethod.type] + '.select');\n }\n this.model.changeActivePaymentMethod(this.paymentMethod);\n };\n PaymentMethodView.prototype._selectDelete = function () {\n this.model.confirmPaymentMethodDeletion(this.paymentMethod);\n };\n module.exports = PaymentMethodView;\n }, {\n \"../constants\": 202,\n \"../lib/add-selection-event-handler\": 206,\n \"../lib/analytics\": 207,\n \"./base-view\": 259\n }],\n 263: [function (require, module, exports) {\n 'use strict';\n\n var BaseView = require('./base-view');\n var PaymentMethodView = require('./payment-method-view');\n var DropinError = require('../lib/dropin-error');\n var errors = require('../constants').errors;\n var addSelectionEventHandler = require('../lib/add-selection-event-handler');\n var PAYMENT_METHOD_TYPE_TO_TRANSLATION_STRING = {\n CreditCard: 'Card',\n PayPalAccount: 'PayPal',\n ApplePayCard: 'Apple Pay',\n AndroidPayCard: 'Google Pay',\n VenmoAccount: 'Venmo'\n };\n function PaymentMethodsView() {\n BaseView.apply(this, arguments);\n this._initialize();\n }\n PaymentMethodsView.prototype = Object.create(BaseView.prototype);\n PaymentMethodsView.prototype.constructor = PaymentMethodsView;\n PaymentMethodsView.ID = PaymentMethodsView.prototype.ID = 'methods';\n PaymentMethodsView.prototype._initialize = function () {\n this.views = [];\n this.container = this.getElementById('methods-container');\n this._headingLabel = this.getElementById('methods-label');\n this._editButton = this.getElementById('methods-edit');\n this.model.on('addPaymentMethod', this._addPaymentMethod.bind(this));\n this.model.on('changeActivePaymentMethod', this._changeActivePaymentMethodView.bind(this));\n this.model.on('refreshPaymentMethods', this.refreshPaymentMethods.bind(this));\n this.refreshPaymentMethods();\n if (this.model.merchantConfiguration.vaultManager) {\n this.model.on('removePaymentMethod', this._removePaymentMethod.bind(this));\n addSelectionEventHandler(this._editButton, function () {\n if (this.model.isInEditMode()) {\n this.model.disableEditMode();\n } else {\n this.model.enableEditMode();\n }\n }.bind(this));\n this._editButton.classList.remove('braintree-hidden');\n }\n };\n PaymentMethodsView.prototype.removeActivePaymentMethod = function () {\n if (!this.activeMethodView) {\n return;\n }\n this.activeMethodView.setActive(false);\n this.activeMethodView = null;\n this._headingLabel.classList.add('braintree-no-payment-method-selected');\n };\n PaymentMethodsView.prototype._getPaymentMethodString = function () {\n var stringKey, paymentMethodTypeString;\n if (!this.activeMethodView) {\n return '';\n }\n stringKey = PAYMENT_METHOD_TYPE_TO_TRANSLATION_STRING[this.activeMethodView.paymentMethod.type];\n paymentMethodTypeString = this.strings[stringKey];\n return this.strings.payingWith.replace('{{paymentSource}}', paymentMethodTypeString);\n };\n PaymentMethodsView.prototype.enableEditMode = function () {\n this.container.classList.add('braintree-methods--edit');\n this._editButton.innerHTML = this.strings.deleteCancelButton;\n this._headingLabel.innerHTML = this.strings.editPaymentMethods;\n this.views.forEach(function (view) {\n view.enableEditMode();\n });\n };\n PaymentMethodsView.prototype.disableEditMode = function () {\n this.container.classList.remove('braintree-methods--edit');\n this._editButton.innerHTML = this.strings.edit;\n this._headingLabel.innerHTML = this._getPaymentMethodString();\n this.views.forEach(function (view) {\n view.disableEditMode();\n });\n };\n PaymentMethodsView.prototype._addPaymentMethod = function (paymentMethod) {\n var paymentMethodView = new PaymentMethodView({\n model: this.model,\n paymentMethod: paymentMethod,\n client: this.client,\n strings: this.strings\n });\n if (this.model.isGuestCheckout && this.container.firstChild) {\n this.views[0].teardown();\n this.views.pop();\n }\n if (this.container.firstChild) {\n this.container.insertBefore(paymentMethodView.element, this.container.firstChild);\n } else {\n this.container.appendChild(paymentMethodView.element);\n }\n this.views.push(paymentMethodView);\n };\n PaymentMethodsView.prototype._removePaymentMethod = function (paymentMethod) {\n var i;\n for (i = 0; i < this.views.length; i++) {\n if (this.views[i].paymentMethod === paymentMethod) {\n this.views[i].teardown();\n this._headingLabel.innerHTML = ' ';\n this.views.splice(i, 1);\n break;\n }\n }\n };\n PaymentMethodsView.prototype._changeActivePaymentMethodView = function (paymentMethod) {\n var i;\n var previousActiveMethodView = this.activeMethodView;\n for (i = 0; i < this.views.length; i++) {\n if (this.views[i].paymentMethod === paymentMethod) {\n this.activeMethodView = this.views[i];\n this._headingLabel.innerHTML = this._getPaymentMethodString();\n break;\n }\n }\n if (previousActiveMethodView) {\n previousActiveMethodView.setActive(false);\n }\n this.activeMethodView.setActive(true);\n this._headingLabel.classList.remove('braintree-no-payment-method-selected');\n };\n PaymentMethodsView.prototype.requestPaymentMethod = function () {\n if (!this.activeMethodView || this.model.isInEditMode()) {\n return Promise.reject(new DropinError(errors.NO_PAYMENT_METHOD_ERROR));\n }\n return Promise.resolve(this.activeMethodView.paymentMethod);\n };\n PaymentMethodsView.prototype.refreshPaymentMethods = function () {\n var i;\n var paymentMethods = this.model.getPaymentMethods();\n this.views.forEach(function (view) {\n view.teardown();\n });\n this.views = [];\n for (i = paymentMethods.length - 1; i >= 0; i--) {\n this._addPaymentMethod(paymentMethods[i]);\n }\n };\n module.exports = PaymentMethodsView;\n }, {\n \"../constants\": 202,\n \"../lib/add-selection-event-handler\": 206,\n \"../lib/dropin-error\": 212,\n \"./base-view\": 259,\n \"./payment-method-view\": 262\n }],\n 264: [function (require, module, exports) {\n 'use strict';\n\n var analytics = require('../lib/analytics');\n var addSelectionEventHandler = require('../lib/add-selection-event-handler');\n var BaseView = require('./base-view');\n var paymentOptionIDs = require('../constants').paymentOptionIDs;\n var paymentMethodOptionHTML = \"
\\n \\n \\n \\n
\\n\\n
\\n @OPTION_TITLE\\n
\\n
\\n\";\n function PaymentOptionsView() {\n BaseView.apply(this, arguments);\n this._initialize();\n }\n PaymentOptionsView.prototype = Object.create(BaseView.prototype);\n PaymentOptionsView.prototype.constructor = PaymentOptionsView;\n PaymentOptionsView.ID = PaymentOptionsView.prototype.ID = 'options';\n PaymentOptionsView.prototype._initialize = function () {\n this.container = this.getElementById('payment-options-container');\n this.elements = {};\n this.model.supportedPaymentOptions.forEach(function (paymentOptionID) {\n this._addPaymentOption(paymentOptionID);\n }.bind(this));\n };\n PaymentOptionsView.prototype._addPaymentOption = function (paymentOptionID) {\n var paymentSource;\n var div = document.createElement('div');\n var html = paymentMethodOptionHTML;\n var clickHandler = function clickHandler() {\n this.mainView.setPrimaryView(paymentOptionID);\n this.model.selectPaymentOption(paymentOptionID);\n analytics.sendEvent(this.client, 'selected.' + paymentOptionIDs[paymentOptionID]);\n }.bind(this);\n div.className = 'braintree-option braintree-option__' + paymentOptionID;\n div.setAttribute('tabindex', '0');\n div.setAttribute('role', 'button');\n switch (paymentOptionID) {\n case paymentOptionIDs.applePay:\n paymentSource = this.strings['Apple Pay'];\n html = html.replace(/@ICON/g, 'logoApplePay');\n break;\n case paymentOptionIDs.card:\n paymentSource = this.strings.Card;\n html = html.replace(/@ICON/g, 'iconCardFront');\n html = html.replace(/@CLASSNAME/g, 'braintree-icon--bordered');\n break;\n case paymentOptionIDs.googlePay:\n paymentSource = this.strings['Google Pay'];\n html = html.replace(/@ICON/g, 'logoGooglePay');\n break;\n case paymentOptionIDs.paypal:\n paymentSource = this.strings.PayPal;\n html = html.replace(/@ICON/g, 'logoPayPal');\n break;\n case paymentOptionIDs.paypalCredit:\n paymentSource = this.strings['PayPal Credit'];\n html = html.replace(/@ICON/g, 'logoPayPalCredit');\n break;\n case paymentOptionIDs.venmo:\n paymentSource = this.strings.Venmo;\n html = html.replace(/@ICON/g, 'logoVenmo');\n break;\n default:\n break;\n }\n html = html.replace(/@OPTION_LABEL/g, this._generateOptionLabel(paymentSource));\n html = html.replace(/@OPTION_TITLE/g, paymentSource);\n html = html.replace(/@CLASSNAME/g, '');\n div.innerHTML = html;\n addSelectionEventHandler(div, clickHandler);\n this.container.appendChild(div);\n this.elements[paymentOptionID] = {\n div: div,\n clickHandler: clickHandler\n };\n };\n PaymentOptionsView.prototype._generateOptionLabel = function (paymentSourceString) {\n return this.strings.payingWith.replace('{{paymentSource}}', paymentSourceString);\n };\n module.exports = PaymentOptionsView;\n }, {\n \"../constants\": 202,\n \"../lib/add-selection-event-handler\": 206,\n \"../lib/analytics\": 207,\n \"./base-view\": 259\n }],\n 265: [function (require, module, exports) {\n (function (global) {\n (function () {\n 'use strict';\n\n var assign = require('../../lib/assign').assign;\n var BaseView = require('../base-view');\n var btApplePay = require('braintree-web/apple-pay');\n var DropinError = require('../../lib/dropin-error');\n var isHTTPS = require('../../lib/is-https');\n var paymentOptionIDs = require('../../constants').paymentOptionIDs;\n var DEFAULT_APPLE_PAY_SESSION_VERSION = 2;\n function ApplePayView() {\n BaseView.apply(this, arguments);\n }\n ApplePayView.prototype = Object.create(BaseView.prototype);\n ApplePayView.prototype.constructor = ApplePayView;\n ApplePayView.ID = ApplePayView.prototype.ID = paymentOptionIDs.applePay;\n ApplePayView.prototype.initialize = function () {\n var self = this;\n self.applePayConfiguration = assign({}, self.model.merchantConfiguration.applePay);\n self.applePaySessionVersion = self.applePayConfiguration.applePaySessionVersion || DEFAULT_APPLE_PAY_SESSION_VERSION;\n delete self.applePayConfiguration.applePaySessionVersion;\n return btApplePay.create({\n client: this.client\n }).then(function (applePayInstance) {\n self.buttonDiv = self.getElementById('apple-pay-button');\n self.applePayInstance = applePayInstance;\n self.buttonDiv.onclick = self._showPaymentSheet.bind(self);\n self.buttonDiv.style['-apple-pay-button-style'] = self.model.merchantConfiguration.applePay.buttonStyle || 'black';\n self.model.asyncDependencyReady(ApplePayView.ID);\n }).catch(function (err) {\n self.model.asyncDependencyFailed({\n view: self.ID,\n error: new DropinError(err)\n });\n });\n };\n ApplePayView.prototype._showPaymentSheet = function () {\n var self = this;\n var request, session;\n if (this._sessionInProgress) {\n return false;\n }\n this._sessionInProgress = true;\n request = this.applePayInstance.createPaymentRequest(this.applePayConfiguration.paymentRequest);\n session = new global.ApplePaySession(self.applePaySessionVersion, request);\n session.onvalidatemerchant = function (event) {\n self.applePayInstance.performValidation({\n validationURL: event.validationURL,\n displayName: self.applePayConfiguration.displayName\n }).then(function (validationData) {\n session.completeMerchantValidation(validationData);\n }).catch(function (validationErr) {\n self.model.reportError(validationErr);\n self._sessionInProgress = false;\n session.abort();\n });\n };\n session.onpaymentauthorized = function (event) {\n self.applePayInstance.tokenize({\n token: event.payment.token\n }).then(function (payload) {\n self._sessionInProgress = false;\n session.completePayment(global.ApplePaySession.STATUS_SUCCESS);\n payload.rawPaymentData = event.payment;\n self.model.addPaymentMethod(payload);\n }).catch(function (tokenizeErr) {\n self.model.reportError(tokenizeErr);\n self._sessionInProgress = false;\n session.completePayment(global.ApplePaySession.STATUS_FAILURE);\n });\n };\n session.oncancel = function () {\n self._sessionInProgress = false;\n };\n session.begin();\n return false;\n };\n ApplePayView.prototype.updateConfiguration = function (key, value) {\n this.applePayConfiguration[key] = value;\n };\n ApplePayView.isEnabled = function (options) {\n var gatewayConfiguration = options.client.getConfiguration().gatewayConfiguration;\n var applePayEnabled = gatewayConfiguration.applePayWeb && Boolean(options.merchantConfiguration.applePay);\n var applePaySessionVersion = options.merchantConfiguration.applePay && options.merchantConfiguration.applePay.applePaySessionVersion;\n var applePayBrowserSupported;\n applePaySessionVersion = applePaySessionVersion || DEFAULT_APPLE_PAY_SESSION_VERSION;\n if (!applePayEnabled) {\n return Promise.resolve(false);\n }\n applePayBrowserSupported = global.ApplePaySession && isHTTPS.isHTTPS();\n if (!applePayBrowserSupported) {\n return Promise.resolve(false);\n }\n if (!global.ApplePaySession.supportsVersion(applePaySessionVersion)) {\n return Promise.resolve(false);\n }\n return Promise.resolve(Boolean(global.ApplePaySession.canMakePayments()));\n };\n module.exports = ApplePayView;\n }).call(this);\n }).call(this, typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {});\n }, {\n \"../../constants\": 202,\n \"../../lib/assign\": 208,\n \"../../lib/dropin-error\": 212,\n \"../../lib/is-https\": 215,\n \"../base-view\": 259,\n \"braintree-web/apple-pay\": 36\n }],\n 266: [function (require, module, exports) {\n (function (global) {\n (function () {\n 'use strict';\n\n var analytics = require('../../lib/analytics');\n var assign = require('../../lib/assign').assign;\n var browserDetection = require('../../lib/browser-detection');\n var BaseView = require('../base-view');\n var btPaypal = require('braintree-web/paypal-checkout');\n var DropinError = require('../../lib/dropin-error');\n var constants = require('../../constants');\n var assets = require('@braintree/asset-loader');\n var translations = require('../../translations').fiveCharacterLocales;\n var ASYNC_DEPENDENCY_TIMEOUT = 30000;\n var READ_ONLY_CONFIGURATION_OPTIONS = ['offerCredit', 'locale'];\n var DEFAULT_CHECKOUTJS_LOG_LEVEL = 'warn';\n var paypalScriptLoadInProgressPromise;\n function BasePayPalView() {\n BaseView.apply(this, arguments);\n }\n BasePayPalView.prototype = Object.create(BaseView.prototype);\n BasePayPalView.prototype.initialize = function () {\n var asyncDependencyTimeoutHandler;\n var isCredit = Boolean(this._isPayPalCredit);\n var setupComplete = false;\n var self = this;\n var paypalType = isCredit ? 'paypalCredit' : 'paypal';\n var paypalConfiguration = this.model.merchantConfiguration[paypalType];\n var dropinWrapperId = '#braintree--dropin__' + this.model.componentID;\n this.paypalConfiguration = assign({}, paypalConfiguration);\n asyncDependencyTimeoutHandler = setTimeout(function () {\n self.model.asyncDependencyFailed({\n view: self.ID,\n error: new DropinError('There was an error connecting to PayPal.')\n });\n }, ASYNC_DEPENDENCY_TIMEOUT);\n return btPaypal.create({\n client: this.client\n }).then(function (paypalInstance) {\n var checkoutJSConfiguration;\n var buttonSelector = '[data-braintree-id=\"paypal-button\"]';\n var environment = self.client.getConfiguration().gatewayConfiguration.environment === 'production' ? 'production' : 'sandbox';\n var locale = self.model.merchantConfiguration.locale;\n self.paypalInstance = paypalInstance;\n self.paypalConfiguration.offerCredit = Boolean(isCredit);\n checkoutJSConfiguration = {\n env: environment,\n style: self.paypalConfiguration.buttonStyle || {},\n commit: self.paypalConfiguration.commit,\n payment: function () {\n return paypalInstance.createPayment(self.paypalConfiguration).catch(reportError);\n },\n onAuthorize: function (data) {\n // NEXT_MAJOR_VERSION change out this vaultPayPal property\n // to something more generic, such as vaultOnTokenization so\n // all the vault objects can have the same shape (instead\n // of being specific to PayPal accounts here)\n var shouldNotVault = self.paypalConfiguration.vault && self.paypalConfiguration.vault.vaultPayPal === false;\n if (shouldNotVault) {\n data.vault = false;\n }\n return paypalInstance.tokenizePayment(data).then(function (tokenizePayload) {\n if (!shouldNotVault && self.paypalConfiguration.flow === 'vault' && !self.model.isGuestCheckout) {\n tokenizePayload.vaulted = true;\n }\n self.model.addPaymentMethod(tokenizePayload);\n }).catch(reportError);\n },\n onError: reportError\n };\n if (locale && locale in translations) {\n self.paypalConfiguration.locale = locale;\n checkoutJSConfiguration.locale = locale;\n }\n checkoutJSConfiguration.funding = {\n disallowed: []\n };\n Object.keys(global.paypal.FUNDING).forEach(function (key) {\n if (key === 'PAYPAL' || key === 'CREDIT') {\n return;\n }\n checkoutJSConfiguration.funding.disallowed.push(global.paypal.FUNDING[key]);\n });\n if (isCredit) {\n buttonSelector = '[data-braintree-id=\"paypal-credit-button\"]';\n checkoutJSConfiguration.style.label = 'credit';\n } else {\n checkoutJSConfiguration.funding.disallowed.push(global.paypal.FUNDING.CREDIT);\n }\n buttonSelector = dropinWrapperId + ' ' + buttonSelector;\n return global.paypal.Button.render(checkoutJSConfiguration, buttonSelector).then(function () {\n self.model.asyncDependencyReady(paypalType);\n setupComplete = true;\n clearTimeout(asyncDependencyTimeoutHandler);\n });\n }).catch(reportError);\n function reportError(err) {\n if (setupComplete) {\n self.model.reportError(err);\n } else {\n self.model.asyncDependencyFailed({\n view: self.ID,\n error: err\n });\n clearTimeout(asyncDependencyTimeoutHandler);\n }\n }\n };\n BasePayPalView.prototype.requestPaymentMethod = function () {\n this.model.reportError('paypalButtonMustBeUsed');\n return BaseView.prototype.requestPaymentMethod.call(this);\n };\n BasePayPalView.prototype.updateConfiguration = function (key, value) {\n if (READ_ONLY_CONFIGURATION_OPTIONS.indexOf(key) === -1) {\n this.paypalConfiguration[key] = value;\n }\n };\n BasePayPalView.isEnabled = function (options) {\n var gatewayConfiguration = options.client.getConfiguration().gatewayConfiguration;\n var merchantPayPalConfig = options.merchantConfiguration.paypal || options.merchantConfiguration.paypalCredit;\n if (!gatewayConfiguration.paypalEnabled) {\n return Promise.resolve(false);\n }\n if (browserDetection.isIe9() || browserDetection.isIe10()) {\n analytics.sendEvent(options.client, options.viewID + '.checkout.js-browser-not-supported');\n return Promise.resolve(false);\n }\n if (global.paypal && global.paypal.Button) {\n return Promise.resolve(true);\n }\n if (paypalScriptLoadInProgressPromise) {\n return paypalScriptLoadInProgressPromise;\n }\n paypalScriptLoadInProgressPromise = assets.loadScript({\n src: constants.CHECKOUT_JS_SOURCE,\n id: constants.PAYPAL_CHECKOUT_SCRIPT_ID,\n dataAttributes: {\n 'log-level': merchantPayPalConfig.logLevel || DEFAULT_CHECKOUTJS_LOG_LEVEL\n }\n }).then(function () {\n return Promise.resolve(true);\n }).catch(function () {\n return Promise.resolve(false);\n }).then(function (result) {\n paypalScriptLoadInProgressPromise = null;\n return Promise.resolve(result);\n });\n return paypalScriptLoadInProgressPromise;\n };\n module.exports = BasePayPalView;\n }).call(this);\n }).call(this, typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {});\n }, {\n \"../../constants\": 202,\n \"../../lib/analytics\": 207,\n \"../../lib/assign\": 208,\n \"../../lib/browser-detection\": 209,\n \"../../lib/dropin-error\": 212,\n \"../../translations\": 242,\n \"../base-view\": 259,\n \"@braintree/asset-loader\": 1,\n \"braintree-web/paypal-checkout\": 142\n }],\n 267: [function (require, module, exports) {\n 'use strict';\n\n var assign = require('../../lib/assign').assign;\n var BaseView = require('../base-view');\n var constants = require('../../constants');\n var DropinError = require('../../lib/dropin-error');\n var hostedFields = require('braintree-web/hosted-fields');\n var isUtf8 = require('../../lib/is-utf-8');\n var transitionHelper = require('../../lib/transition-helper');\n var cardIconHTML = \"
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n\";\n var PASSTHROUGH_EVENTS = ['empty',\n // TODO should intercept this event and call tokenize\n 'inputSubmitRequest', 'binAvailable'];\n function CardView() {\n BaseView.apply(this, arguments);\n }\n CardView.prototype = Object.create(BaseView.prototype);\n CardView.prototype.constructor = CardView;\n CardView.ID = CardView.prototype.ID = constants.paymentOptionIDs.card;\n CardView.prototype.initialize = function () {\n var cvvFieldGroup, postalCodeFieldGroup, hfOptions;\n var cardholderNameGroup = this.getElementById('cardholder-name-field-group');\n\n // If merchant explicty passes a value of `true` for card configuration,\n // we need to treat it as if no card configuration was passed, and provide\n // the default configuration\n if (this.model.merchantConfiguration.card && this.model.merchantConfiguration.card !== true) {\n this.merchantConfiguration = this.model.merchantConfiguration.card;\n } else {\n this.merchantConfiguration = {};\n }\n this.merchantConfiguration.vault = this.merchantConfiguration.vault || {};\n this.hasCardholderName = Boolean(this.merchantConfiguration.cardholderName);\n this.cardholderNameRequired = this.hasCardholderName && this.merchantConfiguration.cardholderName.required === true;\n hfOptions = this._generateHostedFieldsOptions();\n this._renderCardIcons();\n this._hideUnsupportedCardIcons();\n this.hasCVV = hfOptions.fields.cvv;\n this.saveCardInput = this.getElementById('save-card-input');\n this.cardNumberIcon = this.getElementById('card-number-icon');\n this.cardNumberIconSvg = this.getElementById('card-number-icon-svg');\n this.cvvIcon = this.getElementById('cvv-icon');\n this.cvvIconSvg = this.getElementById('cvv-icon-svg');\n this.cvvLabelDescriptor = this.getElementById('cvv-label-descriptor');\n this.fieldErrors = {};\n if (!this.hasCardholderName) {\n cardholderNameGroup.parentNode.removeChild(cardholderNameGroup);\n }\n if (!this.hasCVV) {\n cvvFieldGroup = this.getElementById('cvv-field-group');\n cvvFieldGroup.parentNode.removeChild(cvvFieldGroup);\n }\n if (!hfOptions.fields.postalCode) {\n postalCodeFieldGroup = this.getElementById('postal-code-field-group');\n postalCodeFieldGroup.parentNode.removeChild(postalCodeFieldGroup);\n }\n if (!this.model.isGuestCheckout && this.merchantConfiguration.vault.allowVaultCardOverride === true) {\n this.getElementById('save-card-field-group').classList.remove('braintree-hidden');\n }\n\n // NEXT_MAJOR_VERSION change out this vaultCard property\n // to something more generic, such as vaultOnTokenization so\n // all the vault objects can have the same shape (instead\n // of being specific to cards here)\n if (this.merchantConfiguration.vault.vaultCard === false) {\n this.saveCardInput.checked = false;\n }\n return hostedFields.create(hfOptions).then(function (hostedFieldsInstance) {\n this.hostedFieldsInstance = hostedFieldsInstance;\n this.hostedFieldsInstance.on('blur', this._onBlurEvent.bind(this));\n this.hostedFieldsInstance.on('cardTypeChange', this._onCardTypeChangeEvent.bind(this));\n this.hostedFieldsInstance.on('focus', this._onFocusEvent.bind(this));\n this.hostedFieldsInstance.on('notEmpty', this._onNotEmptyEvent.bind(this));\n this.hostedFieldsInstance.on('validityChange', this._onValidityChangeEvent.bind(this));\n PASSTHROUGH_EVENTS.forEach(function (eventName) {\n this.hostedFieldsInstance.on(eventName, function (event) {\n this.model._emit('card:' + eventName, event);\n }.bind(this));\n }.bind(this));\n this.model.asyncDependencyReady(CardView.ID);\n }.bind(this)).catch(function (err) {\n this.model.asyncDependencyFailed({\n view: this.ID,\n error: err\n });\n }.bind(this));\n };\n CardView.prototype._sendRequestableEvent = function () {\n if (!this._isTokenizing) {\n this.model.setPaymentMethodRequestable({\n isRequestable: this._validateForm(),\n type: constants.paymentMethodTypes.card\n });\n }\n };\n CardView.prototype._renderCardIcons = function () {\n var overrides = this.merchantConfiguration.overrides;\n var cardIcons = this.getElementById('card-view-icons');\n var supportedCardBrands = overrides && overrides.fields && overrides.fields.number && overrides.fields.number.supportedCardBrands;\n cardIcons.innerHTML = cardIconHTML;\n if (supportedCardBrands) {\n Object.keys(supportedCardBrands).forEach(function (cardBrand) {\n var value = supportedCardBrands[cardBrand];\n var selector, iconDiv;\n if (value === false) {\n selector = 'div[data-braintree-id=\"' + constants.cardTypeIcons[cardBrand] + '-card-icon\"]';\n iconDiv = document.querySelector(selector);\n hideCardIcon(iconDiv);\n }\n });\n }\n };\n CardView.prototype._generateHostedFieldsOptions = function () {\n var challenges = this.client.getConfiguration().gatewayConfiguration.challenges;\n var hasCVVChallenge = challenges.indexOf('cvv') !== -1;\n var hasPostalCodeChallenge = challenges.indexOf('postal_code') !== -1;\n var overrides = this.merchantConfiguration.overrides;\n var options = {\n client: this.client,\n fields: {\n cardholderName: {\n container: this._getFieldContainer('cardholder-name'),\n placeholder: this.strings.cardholderNamePlaceholder\n },\n number: {\n container: this._getFieldContainer('number'),\n placeholder: generateCardNumberPlaceholder()\n },\n expirationDate: {\n container: this._getFieldContainer('expiration'),\n placeholder: this.strings.expirationDatePlaceholder\n },\n cvv: {\n container: this._getFieldContainer('cvv'),\n placeholder: addBullets(3)\n },\n postalCode: {\n container: this._getFieldContainer('postal-code')\n }\n },\n styles: {\n input: {\n 'font-size': '16px',\n 'font-family': '-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif',\n color: '#000'\n },\n ':focus': {\n color: 'black'\n },\n '::-webkit-input-placeholder': {\n color: '#6a6a6a'\n },\n ':-moz-placeholder': {\n color: '#6a6a6a'\n },\n '::-moz-placeholder': {\n color: '#6a6a6a'\n },\n ':-ms-input-placeholder ': {\n color: '#6a6a6a'\n },\n 'input::-ms-clear': {\n color: 'transparent'\n }\n }\n };\n if (!this.hasCardholderName) {\n delete options.fields.cardholderName;\n }\n if (!hasCVVChallenge) {\n delete options.fields.cvv;\n }\n if (!hasPostalCodeChallenge) {\n delete options.fields.postalCode;\n }\n if (!overrides) {\n return options;\n }\n if (overrides.fields) {\n if (overrides.fields.cvv && typeof overrides.fields.cvv.placeholder !== 'undefined') {\n this._hasCustomCVVPlaceholder = true;\n }\n Object.keys(overrides.fields).forEach(function (field) {\n if ((field === 'cvv' || field === 'postalCode') && overrides.fields[field] === null) {\n delete options.fields[field];\n return;\n }\n if (!options.fields[field]) {\n return;\n }\n assign(options.fields[field], overrides.fields[field], {\n selector: options.fields[field].selector\n });\n });\n }\n if (overrides.styles) {\n Object.keys(overrides.styles).forEach(function (style) {\n if (overrides.styles[style] === null) {\n delete options.styles[style];\n return;\n } else if (typeof overrides.styles[style] === 'string') {\n // it's a class name, and should override the configured styles entirely\n options.styles[style] = overrides.styles[style];\n return;\n }\n normalizeStyles(overrides.styles[style]);\n options.styles[style] = options.styles[style] || {};\n assign(options.styles[style], overrides.styles[style]);\n });\n }\n return options;\n };\n CardView.prototype._validateForm = function (showFieldErrors) {\n var card, cardType, cardTypeSupported, state;\n var isValid = true;\n var supportedCardTypes = this.client.getConfiguration().gatewayConfiguration.creditCards.supportedCardTypes;\n if (!this.hostedFieldsInstance) {\n return false;\n }\n state = this.hostedFieldsInstance.getState();\n Object.keys(state.fields).forEach(function (key) {\n var field = state.fields[key];\n if (!showFieldErrors && !isValid) {\n // return early if form is already invalid\n // and we don't need to display all field errors\n return;\n }\n if (field.isEmpty) {\n if (!this.cardholderNameRequired && key === 'cardholderName') {\n isValid = true;\n } else {\n isValid = false;\n if (showFieldErrors) {\n this.showFieldError(key, this.strings['fieldEmptyFor' + capitalize(key)]);\n }\n }\n } else if (!field.isValid) {\n isValid = false;\n if (showFieldErrors) {\n this.showFieldError(key, this.strings['fieldInvalidFor' + capitalize(key)]);\n }\n }\n }.bind(this));\n if (state.fields.number.isValid) {\n card = state.cards[0];\n cardType = card && constants.configurationCardTypes[card.type];\n cardTypeSupported = cardType && supportedCardTypes.indexOf(cardType) !== -1;\n if (!cardTypeSupported) {\n isValid = false;\n if (showFieldErrors) {\n this.showFieldError('number', this.strings.unsupportedCardTypeError);\n }\n }\n }\n return isValid;\n };\n CardView.prototype.getPaymentMethod = function () {\n // eslint-disable-line consistent-return\n var formIsValid = this._validateForm();\n if (formIsValid) {\n return {\n type: constants.paymentMethodTypes.card\n };\n }\n };\n CardView.prototype.tokenize = function () {\n var transitionCallback;\n var self = this;\n var state = self.hostedFieldsInstance.getState();\n var tokenizeOptions = {\n vault: this._shouldVault()\n };\n this.model.clearError();\n if (!this._validateForm(true)) {\n self.model.reportError('hostedFieldsFieldsInvalidError');\n self.allowUserAction();\n return Promise.reject(new DropinError(constants.errors.NO_PAYMENT_METHOD_ERROR));\n }\n if (!this.cardholderNameRequired && state.fields.cardholderName && state.fields.cardholderName.isEmpty) {\n tokenizeOptions.fieldsToTokenize = Object.keys(state.fields).filter(function (field) {\n return field !== 'cardholderName';\n });\n }\n self._isTokenizing = true;\n return self.hostedFieldsInstance.tokenize(tokenizeOptions).then(function (payload) {\n var retainCardFields = self.merchantConfiguration.clearFieldsAfterTokenization === false;\n if (!retainCardFields) {\n Object.keys(state.fields).forEach(function (field) {\n self.hostedFieldsInstance.clear(field);\n });\n }\n if (self._shouldVault()) {\n payload.vaulted = true;\n }\n return new Promise(function (resolve) {\n transitionCallback = function () {\n // Wait for braintree-sheet--tokenized class to be added in IE 9\n // before attempting to remove it\n setTimeout(function () {\n self.model.addPaymentMethod(payload);\n resolve(payload);\n self.element.classList.remove('braintree-sheet--tokenized');\n }, 0);\n };\n transitionHelper.onTransitionEnd(self.element, 'max-height', transitionCallback);\n setTimeout(function () {\n self.allowUserAction();\n self._isTokenizing = false;\n }, constants.CHANGE_ACTIVE_PAYMENT_METHOD_TIMEOUT);\n self.element.classList.add('braintree-sheet--tokenized');\n });\n }).catch(function (err) {\n self._isTokenizing = false;\n // this is a little magical, but if the code property exists\n // in the translations with the word Error appended to the end,\n // then reportError will automatically print that translation.\n // See https://github.com/braintree/braintree-web-drop-in/blob/6ecba73f2f16e8b7ae2119702ac162a1a985908e/src/views/main-view.js#L255-L256\n self.model.reportError(err);\n self.allowUserAction();\n return Promise.reject(new DropinError({\n message: constants.errors.NO_PAYMENT_METHOD_ERROR,\n braintreeWebError: err\n }));\n });\n };\n CardView.prototype.showFieldError = function (field, errorMessage) {\n var fieldError;\n var fieldGroup = this.getElementById(camelCaseToKebabCase(field) + '-field-group');\n var input = fieldGroup.querySelector('input');\n if (!this.fieldErrors.hasOwnProperty(field)) {\n this.fieldErrors[field] = this.getElementById(camelCaseToKebabCase(field) + '-field-error');\n }\n fieldGroup.classList.add('braintree-form__field-group--has-error');\n fieldError = this.fieldErrors[field];\n fieldError.innerHTML = errorMessage;\n if (input) {\n input.setAttribute('aria-invalid', true);\n } else {\n this.hostedFieldsInstance.setAttribute({\n field: field,\n attribute: 'aria-invalid',\n value: true\n });\n this.hostedFieldsInstance.setMessage({\n field: field,\n message: errorMessage\n });\n }\n };\n CardView.prototype.hideFieldError = function (field) {\n var fieldGroup = this.getElementById(camelCaseToKebabCase(field) + '-field-group');\n var input = fieldGroup.querySelector('input');\n if (!this.fieldErrors.hasOwnProperty(field)) {\n this.fieldErrors[field] = this.getElementById(camelCaseToKebabCase(field) + '-field-error');\n }\n fieldGroup.classList.remove('braintree-form__field-group--has-error');\n if (input) {\n input.removeAttribute('aria-invalid');\n } else {\n this.hostedFieldsInstance.removeAttribute({\n field: field,\n attribute: 'aria-invalid'\n });\n this.hostedFieldsInstance.setMessage({\n field: field,\n message: ''\n });\n }\n };\n CardView.prototype.teardown = function () {\n return this.hostedFieldsInstance.teardown();\n };\n CardView.prototype._shouldVault = function () {\n return !this.model.isGuestCheckout && this.saveCardInput.checked;\n };\n CardView.prototype._getFieldContainer = function (field) {\n // we committed to not changing the data-braintree-id fields\n // so we need to convert this field to the id used in the HTML\n if (field === 'expiration') {\n field = 'expiration-date';\n }\n return this.getElementById(field + '-field-group').querySelector('.braintree-form__hosted-field');\n };\n CardView.prototype._onBlurEvent = function (event) {\n var field = event.fields[event.emittedBy];\n var fieldGroup = this.getElementById(camelCaseToKebabCase(event.emittedBy) + '-field-group');\n fieldGroup.classList.remove('braintree-form__field-group--is-focused');\n if (field.isPotentiallyValid) {\n this.hideFieldError(event.emittedBy);\n }\n if (this._shouldApplyFieldEmptyError(event.emittedBy, field)) {\n this.showFieldError(event.emittedBy, this.strings['fieldEmptyFor' + capitalize(event.emittedBy)]);\n } else if (!field.isEmpty && !field.isValid) {\n this.showFieldError(event.emittedBy, this.strings['fieldInvalidFor' + capitalize(event.emittedBy)]);\n } else if (event.emittedBy === 'number' && !this._isCardTypeSupported(event.cards[0])) {\n this.showFieldError('number', this.strings.unsupportedCardTypeError);\n }\n this.model._emit('card:blur', event);\n setTimeout(function () {\n // when focusing on a field by clicking the label,\n // we need to wait a bit for the iframe to be\n // focused properly before applying validations\n if (this._shouldApplyFieldEmptyError(event.emittedBy, field)) {\n this.showFieldError(event.emittedBy, this.strings['fieldEmptyFor' + capitalize(event.emittedBy)]);\n }\n }.bind(this), 150);\n };\n CardView.prototype._onCardTypeChangeEvent = function (event) {\n var cardType;\n var cardNumberHrefLink = '#iconCardFront';\n var cvvHrefLink = '#iconCVVBack';\n var cvvDescriptor = this.strings.cvvThreeDigitLabelSubheading;\n var cvvPlaceholder = addBullets(3);\n var numberFieldGroup = this.getElementById('number-field-group');\n if (event.cards.length === 1) {\n cardType = event.cards[0].type;\n cardNumberHrefLink = '#icon-' + cardType;\n if (cardType === 'american-express') {\n cvvHrefLink = '#iconCVVFront';\n cvvDescriptor = this.strings.cvvFourDigitLabelSubheading;\n cvvPlaceholder = addBullets(4);\n }\n // Keep icon visible when field is not focused\n numberFieldGroup.classList.add('braintree-form__field-group--card-type-known');\n } else {\n numberFieldGroup.classList.remove('braintree-form__field-group--card-type-known');\n }\n\n // if the number field emitted the card change event fires\n // and the card type is supported, we need to clear out the errors\n // field in case that there was a \"card type is unsupported\" error\n if (event.emittedBy === 'number' && this._isCardTypeSupported(event.cards[0])) {\n this.hideFieldError(event.emittedBy);\n }\n this.cardNumberIconSvg.setAttribute('xlink:href', cardNumberHrefLink);\n if (this.hasCVV) {\n this.cvvIconSvg.setAttribute('xlink:href', cvvHrefLink);\n this.cvvLabelDescriptor.innerHTML = cvvDescriptor;\n if (!this._hasCustomCVVPlaceholder) {\n this.hostedFieldsInstance.setAttribute({\n field: 'cvv',\n attribute: 'placeholder',\n value: cvvPlaceholder\n });\n }\n }\n this.model._emit('card:cardTypeChange', event);\n };\n CardView.prototype._onFocusEvent = function (event) {\n var fieldGroup = this.getElementById(camelCaseToKebabCase(event.emittedBy) + '-field-group');\n fieldGroup.classList.add('braintree-form__field-group--is-focused');\n this.model._emit('card:focus', event);\n };\n CardView.prototype._onNotEmptyEvent = function (event) {\n this.hideFieldError(event.emittedBy);\n this.model._emit('card:notEmpty', event);\n };\n CardView.prototype._onValidityChangeEvent = function (event) {\n var isValid;\n var field = event.fields[event.emittedBy];\n if (event.emittedBy === 'number' && event.cards[0]) {\n isValid = field.isValid && this._isCardTypeSupported(event.cards[0]);\n } else {\n isValid = field.isValid;\n }\n field.container.classList.toggle('braintree-form__field--valid', isValid);\n if (field.isPotentiallyValid) {\n this.hideFieldError(event.emittedBy);\n }\n this._sendRequestableEvent();\n this.model._emit('card:validityChange', event);\n };\n CardView.prototype.requestPaymentMethod = function () {\n this.preventUserAction();\n return this.tokenize();\n };\n CardView.prototype.onSelection = function () {\n if (!this.hostedFieldsInstance) {\n return;\n }\n setTimeout(function () {\n if (this.hasCardholderName) {\n this.hostedFieldsInstance.focus('cardholderName');\n } else {\n this.hostedFieldsInstance.focus('number');\n }\n }.bind(this), 50);\n this._sendRequestableEvent();\n };\n CardView.prototype._hideUnsupportedCardIcons = function () {\n var supportedCardTypes = this.client.getConfiguration().gatewayConfiguration.creditCards.supportedCardTypes;\n Object.keys(constants.configurationCardTypes).forEach(function (paymentMethodCardType) {\n var cardIcon;\n var configurationCardType = constants.configurationCardTypes[paymentMethodCardType];\n if (supportedCardTypes.indexOf(configurationCardType) === -1) {\n cardIcon = this.getElementById(paymentMethodCardType + '-card-icon');\n cardIcon.classList.add('braintree-hidden');\n }\n }.bind(this));\n };\n CardView.prototype._isCardTypeSupported = function (card) {\n var cardType = card && card.type;\n var configurationCardType = constants.configurationCardTypes[cardType];\n var supportedCardTypes = this.client.getConfiguration().gatewayConfiguration.creditCards.supportedCardTypes;\n return supportedCardTypes.indexOf(configurationCardType) !== -1;\n };\n CardView.isEnabled = function (options) {\n var gatewayConfiguration = options.client.getConfiguration().gatewayConfiguration;\n var disabledByMerchant = options.merchantConfiguration.card === false;\n return Promise.resolve(!disabledByMerchant && gatewayConfiguration.creditCards.supportedCardTypes.length > 0);\n };\n CardView.prototype._shouldApplyFieldEmptyError = function (fieldId, field) {\n if (!field.isEmpty) {\n return false;\n }\n if (fieldId === 'cardholderName' && !this.cardholderNameRequired) {\n return false;\n }\n return isCardViewElement();\n };\n function hideCardIcon(icon) {\n if (icon) {\n icon.classList.add('braintree-hidden');\n }\n }\n function isCardViewElement() {\n var activeId = document.activeElement && document.activeElement.id;\n var isHostedFieldsElement = document.activeElement instanceof HTMLIFrameElement && activeId.indexOf('braintree-hosted-field') !== -1;\n return isHostedFieldsElement;\n }\n function camelCaseToKebabCase(string) {\n return string.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n }\n function capitalize(string) {\n return string[0].toUpperCase() + string.substr(1);\n }\n function normalizeStyles(styles) {\n Object.keys(styles).forEach(function (style) {\n var transformedKeyName = camelCaseToKebabCase(style);\n styles[transformedKeyName] = styles[style];\n });\n }\n function addBullets(number) {\n var bulletCharacter = isUtf8() ? '•' : '*';\n return Array(number + 1).join(bulletCharacter);\n }\n function generateCardNumberPlaceholder() {\n var four = addBullets(4);\n return [four, four, four, four].join(' ');\n }\n module.exports = CardView;\n }, {\n \"../../constants\": 202,\n \"../../lib/assign\": 208,\n \"../../lib/dropin-error\": 212,\n \"../../lib/is-utf-8\": 216,\n \"../../lib/transition-helper\": 222,\n \"../base-view\": 259,\n \"braintree-web/hosted-fields\": 64\n }],\n 268: [function (require, module, exports) {\n (function (global) {\n (function () {\n 'use strict';\n\n var assign = require('../../lib/assign').assign;\n var BaseView = require('../base-view');\n var btGooglePay = require('braintree-web/google-payment');\n var DropinError = require('../../lib/dropin-error');\n var constants = require('../../constants');\n var assets = require('@braintree/asset-loader');\n var analytics = require('../../lib/analytics');\n function GooglePayView() {\n BaseView.apply(this, arguments);\n }\n GooglePayView.prototype = Object.create(BaseView.prototype);\n GooglePayView.prototype.constructor = GooglePayView;\n GooglePayView.ID = GooglePayView.prototype.ID = constants.paymentOptionIDs.googlePay;\n GooglePayView.prototype.initialize = function () {\n var self = this;\n var buttonOptions, googlePayVersion, merchantId;\n self.googlePayConfiguration = assign({}, self.model.merchantConfiguration.googlePay);\n googlePayVersion = self.googlePayConfiguration.googlePayVersion;\n merchantId = self.googlePayConfiguration.merchantId;\n buttonOptions = assign({\n buttonType: 'short'\n }, self.googlePayConfiguration.button, {\n onClick: function (event) {\n event.preventDefault();\n self.preventUserAction();\n self.tokenize().then(function () {\n self.allowUserAction();\n });\n }\n });\n delete self.googlePayConfiguration.googlePayVersion;\n delete self.googlePayConfiguration.merchantId;\n delete self.googlePayConfiguration.button;\n return btGooglePay.create({\n client: self.client,\n googlePayVersion: googlePayVersion,\n googleMerchantId: merchantId\n }).then(function (googlePayInstance) {\n self.googlePayInstance = googlePayInstance;\n self.paymentsClient = createPaymentsClient(self.client);\n }).then(function () {\n var buttonContainer = self.getElementById('google-pay-button');\n buttonContainer.appendChild(self.paymentsClient.createButton(buttonOptions));\n self.model.asyncDependencyReady(GooglePayView.ID);\n }).catch(function (err) {\n self.model.asyncDependencyFailed({\n view: self.ID,\n error: new DropinError(err)\n });\n });\n };\n GooglePayView.prototype.tokenize = function () {\n var self = this;\n var paymentDataRequest = self.googlePayInstance.createPaymentDataRequest(self.googlePayConfiguration);\n var rawPaymentData;\n return self.paymentsClient.loadPaymentData(paymentDataRequest).then(function (paymentData) {\n rawPaymentData = paymentData;\n return self.googlePayInstance.parseResponse(paymentData);\n }).then(function (tokenizePayload) {\n tokenizePayload.rawPaymentData = rawPaymentData;\n self.model.addPaymentMethod(tokenizePayload);\n }).catch(function (err) {\n var reportedError = err;\n if (err.statusCode === 'DEVELOPER_ERROR') {\n console.error(err); // eslint-disable-line no-console\n reportedError = 'developerError';\n } else if (err.statusCode === 'CANCELED') {\n analytics.sendEvent(self.client, 'googlepay.loadPaymentData.canceled');\n return;\n } else if (err.statusCode) {\n analytics.sendEvent(self.client, 'googlepay.loadPaymentData.failed');\n }\n self.model.reportError(reportedError);\n });\n };\n GooglePayView.prototype.updateConfiguration = function (key, value) {\n this.googlePayConfiguration[key] = value;\n };\n GooglePayView.isEnabled = function (options) {\n var gatewayConfiguration = options.client.getConfiguration().gatewayConfiguration;\n if (!(gatewayConfiguration.androidPay && Boolean(options.merchantConfiguration.googlePay))) {\n return Promise.resolve(false);\n }\n return Promise.resolve().then(function () {\n if (!(global.google && global.google.payments && global.google.payments.api && global.google.payments.api.PaymentsClient)) {\n return assets.loadScript({\n id: constants.GOOGLE_PAYMENT_SCRIPT_ID,\n src: constants.GOOGLE_PAYMENT_SOURCE\n });\n }\n return Promise.resolve();\n }).then(function () {\n var paymentsClient = createPaymentsClient(options.client);\n return paymentsClient.isReadyToPay({\n allowedPaymentMethods: ['CARD', 'TOKENIZED_CARD']\n });\n }).then(function (response) {\n return Boolean(response.result);\n });\n };\n function createPaymentsClient(client) {\n return new global.google.payments.api.PaymentsClient({\n environment: client.getConfiguration().gatewayConfiguration.environment === 'production' ? 'PRODUCTION' : 'TEST'\n });\n }\n module.exports = GooglePayView;\n }).call(this);\n }).call(this, typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {});\n }, {\n \"../../constants\": 202,\n \"../../lib/analytics\": 207,\n \"../../lib/assign\": 208,\n \"../../lib/dropin-error\": 212,\n \"../base-view\": 259,\n \"@braintree/asset-loader\": 1,\n \"braintree-web/google-payment\": 57\n }],\n 269: [function (require, module, exports) {\n 'use strict';\n\n var paymentOptionIDs = require('../../constants').paymentOptionIDs;\n var result = {};\n result[paymentOptionIDs.applePay] = require('./apple-pay-view');\n result[paymentOptionIDs.card] = require('./card-view');\n result[paymentOptionIDs.googlePay] = require('./google-pay-view');\n result[paymentOptionIDs.paypal] = require('./paypal-view');\n result[paymentOptionIDs.paypalCredit] = require('./paypal-credit-view');\n result[paymentOptionIDs.venmo] = require('./venmo-view');\n module.exports = result;\n }, {\n \"../../constants\": 202,\n \"./apple-pay-view\": 265,\n \"./card-view\": 267,\n \"./google-pay-view\": 268,\n \"./paypal-credit-view\": 270,\n \"./paypal-view\": 271,\n \"./venmo-view\": 272\n }],\n 270: [function (require, module, exports) {\n 'use strict';\n\n var assign = require('../../lib/assign').assign;\n var paymentOptionIDs = require('../../constants').paymentOptionIDs;\n var BasePayPalView = require('./base-paypal-view');\n function PayPalCreditView() {\n BasePayPalView.apply(this, arguments);\n this._isPayPalCredit = true;\n }\n PayPalCreditView.prototype = Object.create(BasePayPalView.prototype);\n PayPalCreditView.prototype.constructor = PayPalCreditView;\n PayPalCreditView.ID = PayPalCreditView.prototype.ID = paymentOptionIDs.paypalCredit;\n PayPalCreditView.isEnabled = function (options) {\n if (!options.merchantConfiguration.paypalCredit) {\n return Promise.resolve(false);\n }\n return BasePayPalView.isEnabled(assign({\n viewID: PayPalCreditView.ID\n }, options));\n };\n module.exports = PayPalCreditView;\n }, {\n \"../../constants\": 202,\n \"../../lib/assign\": 208,\n \"./base-paypal-view\": 266\n }],\n 271: [function (require, module, exports) {\n 'use strict';\n\n var assign = require('../../lib/assign').assign;\n var paymentOptionIDs = require('../../constants').paymentOptionIDs;\n var BasePayPalView = require('./base-paypal-view');\n function PayPalView() {\n BasePayPalView.apply(this, arguments);\n }\n PayPalView.prototype = Object.create(BasePayPalView.prototype);\n PayPalView.prototype.constructor = PayPalView;\n PayPalView.ID = PayPalView.prototype.ID = paymentOptionIDs.paypal;\n PayPalView.isEnabled = function (options) {\n if (!options.merchantConfiguration.paypal) {\n return Promise.resolve(false);\n }\n return BasePayPalView.isEnabled(assign({\n viewID: PayPalView.ID\n }, options));\n };\n module.exports = PayPalView;\n }, {\n \"../../constants\": 202,\n \"../../lib/assign\": 208,\n \"./base-paypal-view\": 266\n }],\n 272: [function (require, module, exports) {\n 'use strict';\n\n var assign = require('../../lib/assign').assign;\n var BaseView = require('../base-view');\n var btVenmo = require('braintree-web/venmo');\n var DropinError = require('../../lib/dropin-error');\n var paymentOptionIDs = require('../../constants').paymentOptionIDs;\n function VenmoView() {\n BaseView.apply(this, arguments);\n }\n VenmoView.prototype = Object.create(BaseView.prototype);\n VenmoView.prototype.constructor = VenmoView;\n VenmoView.ID = VenmoView.prototype.ID = paymentOptionIDs.venmo;\n VenmoView.prototype.initialize = function () {\n var self = this;\n var venmoConfiguration = assign({}, self.model.merchantConfiguration.venmo, {\n client: this.client\n });\n return btVenmo.create(venmoConfiguration).then(function (venmoInstance) {\n self.venmoInstance = venmoInstance;\n if (!self.venmoInstance.hasTokenizationResult()) {\n return Promise.resolve();\n }\n return self.venmoInstance.tokenize().then(function (payload) {\n self.model.reportAppSwitchPayload(payload);\n }).catch(function (err) {\n if (self._isIgnorableError(err)) {\n return;\n }\n self.model.reportAppSwitchError(paymentOptionIDs.venmo, err);\n });\n }).then(function () {\n var button = self.getElementById('venmo-button');\n button.addEventListener('click', function (event) {\n event.preventDefault();\n self.preventUserAction();\n return self.venmoInstance.tokenize().then(function (payload) {\n self.model.addPaymentMethod(payload);\n }).catch(function (tokenizeErr) {\n if (self._isIgnorableError(tokenizeErr)) {\n return;\n }\n self.model.reportError(tokenizeErr);\n }).then(function () {\n self.allowUserAction();\n });\n });\n self.model.asyncDependencyReady(VenmoView.ID);\n }).catch(function (err) {\n self.model.asyncDependencyFailed({\n view: self.ID,\n error: new DropinError(err)\n });\n });\n };\n VenmoView.prototype.requestPaymentMethod = function () {\n this.model.reportError('venmoButtonMustBeUsed');\n return BaseView.prototype.requestPaymentMethod.call(this);\n };\n VenmoView.prototype._isIgnorableError = function (error) {\n // customer cancels the flow in the app\n // we don't emit an error because the customer\n // initiated that action\n return error.code === 'VENMO_APP_CANCELED' || error.code === 'VENMO_DESKTOP_CANCELED';\n };\n VenmoView.isEnabled = function (options) {\n var gatewayConfiguration = options.client.getConfiguration().gatewayConfiguration;\n var venmoEnabled = gatewayConfiguration.payWithVenmo && Boolean(options.merchantConfiguration.venmo);\n if (!venmoEnabled) {\n return Promise.resolve(false);\n }\n return Promise.resolve(btVenmo.isBrowserSupported(options.merchantConfiguration.venmo));\n };\n module.exports = VenmoView;\n }, {\n \"../../constants\": 202,\n \"../../lib/assign\": 208,\n \"../../lib/dropin-error\": 212,\n \"../base-view\": 259,\n \"braintree-web/venmo\": 163\n }]\n }, {}, [205])(205);\n});","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = ['days', 'hours', 'minutes', 'seconds'];\n\n connect() {\n this.remaining = parseInt(this.data.get('remaining') * 1000);\n this.countTo = new Date(Date.now() + this.remaining);\n this.update();\n this.timer = setInterval(this.update.bind(this), 1000);\n }\n\n disconnect() {\n clearTimeout(this.timer);\n }\n\n update() {\n const remaining = timeRemaining(this.countTo, this.offset);\n if (remaining.total < 0) {\n clearTimeout(this.timer);\n this.updateUI({ days: 0, hours: 0, minutes: 0, seconds: 0 })\n } else {\n this.updateUI(remaining);\n }\n }\n\n updateUI(remaining) {\n let days = remaining.days;\n let hours = remaining.hours;\n let minutes = remaining.minutes;\n let seconds = remaining.seconds;\n \n if (this.hasDaysTarget) {\n this.daysTarget.textContent = days;\n } else {\n hours = hours + (days * 24);\n }\n\n if (this.hasHoursTarget) {\n this.hoursTarget.textContent = ('0' + hours).slice(-2);\n } else {\n minutes = minutes + (hours * 60);\n }\n\n if (this.hasMinutesTarget) { \n this.minutesTarget.textContent = ('0' + minutes).slice(-2);\n } else {\n seconds = seconds + (minutes * 60);\n }\n\n this.secondsTarget.textContent = ('0' + seconds).slice(-2);\n }\n}\n\nfunction timeRemaining(upTo) {\n const total = upTo - Date.now();\n const seconds = Math.floor( (total/1000) % 60 );\n const minutes = Math.floor( (total/1000/60) % 60 );\n const hours = Math.floor( (total/(1000*60*60)) % 24 );\n const days = Math.floor( total/(1000*60*60*24) );\n\n return { total, days, hours, minutes, seconds }\n}\n","import { Controller } from \"stimulus\"\n\n// fra controller, when fra member is true, show membership number field\nexport default class extends Controller {\n connect() {\n this.isMemberInput = document.getElementById('participant_fra_member_true');\n this.isNotMemberInput = document.getElementById('participant_fra_member_false');\n this.membershipNumber = document.getElementById('participant_fra_membership_number').closest('.form-group');\n\n this.isMemberInput.addEventListener('click', this.update.bind(this));\n this.isNotMemberInput.addEventListener('click', this.update.bind(this));\n this.update();\n }\n\n update() {\n setActive(this.membershipNumber, this.isMemberInput.checked);\n }\n}\n\nfunction setActive(el, on) {\n el.hidden = !on;\n [ ...el.childNodes ].forEach((child) => child.disabled = !on);\n}\n\n","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = ['buttons', 'orderId'];\n\n connect() {\n window.paypal.Buttons({\n createOrder: this._createOrder.bind(this),\n onApprove: this._onApprove.bind(this)\n }).render('[data-target=\"paypal.buttons\"]');\n }\n\n _createOrder(data, actions) {\n return actions.order.create({\n intent: 'CAPTURE',\n payer: {\n name: {\n given_name: this.data.get('first-name'),\n surname: this.data.get('last-name')\n },\n email_address: this.data.get('email')\n },\n purchase_units: [{\n amount: { value: this.data.get('amount'), currency_code: 'GBP' }\n }]\n });\n }\n\n _onApprove(data, _actions) {\n this.orderIdTarget.value = data.orderID;\n this.element.submit();\n }\n}\n","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = ['toggle'];\n\n toggle() {\n this.toggleTargets.forEach((target) => {\n const domClass = target.dataset.togglerClass;\n target.classList.toggle(domClass);\n })\n }\n}\n","var map = {\n\t\"./\": 1,\n\t\"./baslow1\": 4,\n\t\"./baslow1.jpg\": 4,\n\t\"./baslow2\": 5,\n\t\"./baslow2.jpg\": 5,\n\t\"./baslow3\": 6,\n\t\"./baslow3.jpg\": 6,\n\t\"./baslow4\": 7,\n\t\"./baslow4.jpg\": 7,\n\t\"./index\": 1,\n\t\"./index.js\": 1,\n\t\"./logo\": 8,\n\t\"./logo.png\": 8,\n\t\"./menu\": 9,\n\t\"./menu.png\": 9,\n\t\"./waymarker\": 10,\n\t\"./waymarker.png\": 10\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 27;","import \"./application.scss\"\n","// Load all the controllers within this directory and all subdirectories. \n// Controller files must be named *_controller.js.\n\nimport { Application } from \"stimulus\"\nimport { definitionsFromContext } from \"stimulus/webpack-helpers\"\n\nconst application = Application.start()\nconst context = require.context(\"controllers\", true, /_controller\\.js$/)\napplication.load(definitionsFromContext(context))\n","export function definitionsFromContext(context) {\n return context.keys().map(function (key) {\n return definitionForModuleWithContextAndKey(context, key);\n }).filter(function (value) {\n return value;\n });\n}\nfunction definitionForModuleWithContextAndKey(context, key) {\n var identifier = identifierForContextKey(key);\n if (identifier) {\n return definitionForModuleAndIdentifier(context(key), identifier);\n }\n}\nfunction definitionForModuleAndIdentifier(module, identifier) {\n var controllerConstructor = module.default;\n if (typeof controllerConstructor == \"function\") {\n return {\n identifier: identifier,\n controllerConstructor: controllerConstructor\n };\n }\n}\nexport function identifierForContextKey(key) {\n var logicalName = (key.match(/^(?:\\.\\/)?(.+)(?:[_-]controller\\..+?)$/) || [])[1];\n if (logicalName) {\n return logicalName.replace(/_/g, \"-\").replace(/\\//g, \"--\");\n }\n}"],"sourceRoot":""}