{"version":3,"sources":["webpack:///./lib/wurfl.js","webpack:///./transfer/utils/recipient-utils.js"],"names":["isWireless","document","body","getAttribute","isTablet","isSmartphone","isIOS","test","window","navigator","userAgent","MSStream","mobileScrollToInput","inputEl","duration","arguments","length","undefined","docTopToElementTop","$","offset","top","desiredTopOfViewport","animate","scrollTop"],"mappings":"2FAAA,oEAUO,IAAMA,EACuC,SAAlDC,SAASC,KAAKC,aAAa,mBAChBC,EAA2D,SAAhDH,SAASC,KAAKC,aAAa,iBACtCE,EAAeL,IAAeI,EAC9BE,EAAQA,IACnB,mBAAmBC,KAAKC,OAAOC,UAAUC,aAAeF,OAAOG,U,iCCfjE,uDAMO,SAASC,EAAoBC,GAA0B,IAAjBC,EAAQC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,IAChDG,EAAqBC,IAAEN,GAASO,SAASC,IACzCC,EAAuBJ,EAAqB,EAClDC,IAAE,cAAcI,QACd,CACEC,UAAWF,GAEbR","file":"default~contact-list~multi-recipient-redux~recipient-redux~request-page~send-page.esm.js","sourcesContent":["/**\n * WURFL module - Relies on data existing on the document body\n * to determine if you're in a mobile/tablet environment.\n *\n * This data is populated here:\n * https://github.paypal.com/ConsumerWeb-Modules/consumerweb-server/blob/master/controllers/commonData.js#L72\n\n * @author Jamund Ferguson\n */\n\nexport const isWireless =\n document.body.getAttribute('data-iswireless') === 'true'\nexport const isTablet = document.body.getAttribute('data-istablet') === 'true'\nexport const isSmartphone = isWireless && !isTablet\nexport const isIOS = () =>\n /iPad|iPhone|iPod/.test(window.navigator.userAgent) && !window.MSStream\n","import $ from 'jquery'\n\n/**\n * Handy function to scroll the viewport so that the recipient input and contacts don't get covered by\n * mobile virtual keyboards. This puts the top of the recipient input near the top of the viewport.\n */\nexport function mobileScrollToInput(inputEl, duration = 1000) {\n const docTopToElementTop = $(inputEl).offset().top\n const desiredTopOfViewport = docTopToElementTop - 5\n $('html, body').animate(\n {\n scrollTop: desiredTopOfViewport,\n },\n duration\n )\n}\n"],"sourceRoot":""}