{"version":3,"sources":["webpack:///./node_modules/file-saver/dist/FileSaver.min.js","webpack:///./src/utils/Instructions.ts","webpack:///./src/pages/integration-builder/sections/Build.tsx","webpack:///./src/components/integration-builder/accordion/index.tsx"],"names":["c","a","b","d","XMLHttpRequest","open","responseType","onload","g","response","onerror","console","error","send","status","e","dispatchEvent","MouseEvent","document","createEvent","initMouseEvent","window","f","self","global","navigator","test","userAgent","saveAs","HTMLAnchorElement","prototype","h","i","URL","webkitURL","j","createElement","name","download","rel","href","origin","location","target","createObjectURL","setTimeout","revokeObjectURL","msSaveOrOpenBlob","autoBom","warn","type","Blob","title","body","innerText","HTMLElement","safari","FileReader","k","onloadend","result","replace","readAsDataURL","l","m","module","exports","scratchInstructions","mode","language","paymentModel","threeDs","instructions","cloneInstructions","withAnalytics","Build","_options$find","_options$find2","integrationType","options","parameters","useContext","CheckoutSimulatorContext","selectedIndex","setSelectedIndex","useState","fptiData","fpti","selectedBackendLanguage","find","option","value","getSetupInstructions","setupInstructions","Array","isArray","instruction","_options$2","_options$3","optionValue","languageValue","includes","_parameters","_parameters$buttons","buttons","React","className","styles","checkout_simulator__accordion_container","Accordion","number","color","heading","defaultCollapsed","content","Fragment","checkout_simulator__subtitle_wrapper","checkout_simulator__fragment_subtitle","Tooltip","description","windowId","imagePosition","SegmentedController","tabs","label","id","panelId","selectedTabIdx","onClick","event","clickHandler","tab","getAttribute","SegmentedControllerPanel","tabId","dangerouslySetInnerHTML","__html","Button","checkout_simulator__download_button","secondary","handleDownload","_window$PAYPAL","_window$PAYPAL$analyt","languageBack","file","repositoryMap","node","html","react","zippedSamplesUrl","FileSaver","split","at","PAYPAL","analytics","instance","record","data","_objectSpread","component","space_key","link","event_action","page_name","page","event_name","pu","removeGAParam","_ref","collapsed","setCollapsed","handleChevronClick","ChevronDown","ChevronUp","style","height","transition","opacity"],"mappings":"gFAAA,sBACiD,EAAO,QAAK,0BAAD,EAKnD,WACP,aAWA,SAASA,EAAEC,EAAGC,EAAGF,GACf,IA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SAASF,YAyJfoG,CAAe7D,EAAQ,GAAIC,IAC3C,mB,kCCtQb,iFAYO,MAAM6B,EAAsC2D,IAM7C,IAN8C,OAClD1D,EAAS,KAAI,QACbE,EAAO,QACPE,EAAO,MACPH,EAAQ,UAAS,iBACjBE,GAAmB,GACpBuD,EACC,MAAM,EAACC,EAAS,EAAEC,GAAgBrF,mBAAS4B,GAM3C,OACER,IAAArE,cAAAqE,IAAAU,SAAA,KACEV,IAAArE,cAAA,OAAKsE,UAAU,wBACbD,IAAArE,cAAA,OAAKsE,UAAU,8BACbD,IAAArE,cAAA,OAAKsE,UAAU,mCACZI,GAAUL,IAAArE,cAAA,KAAGsE,UAAU,6BAA6BI,GACrDL,IAAArE,cAAA,OAAKsE,UAAU,sBAAsBM,IAEvCP,IAAArE,cAAA,OACEsE,UAAW,4BACC,YAAVK,EACI,kCACA,qCAENiB,QAlBiB2C,KACzBD,GAAcD,KAmBLA,EAAYhE,IAAArE,cAACwI,IAAW,MAAMnE,IAAArE,cAACyI,IAAS,QAG7CpE,IAAArE,cAAA,OACEsE,UAAU,2BAEVoE,MACGL,EAMG,CACEM,OAAQ,MACRC,WAAY,iBAPd,CACED,OAAQ,OACRE,QAAS,EACTD,WAAY,iBAQnB9D,O","file":"b9b041f39dc3568dd313b944196020ea562c7d57-6d2814078eb2e47a7e62.js","sourcesContent":["(function (a, b) {\n if (\"function\" == typeof define && define.amd) define([], b);else if (\"undefined\" != typeof exports) b();else {\n b(), a.FileSaver = {\n exports: {}\n }.exports;\n }\n})(this, function () {\n \"use strict\";\n\n function b(a, b) {\n return \"undefined\" == typeof b ? b = {\n autoBom: !1\n } : \"object\" != typeof b && (console.warn(\"Deprecated: Expected third argument to be a object\"), b = {\n autoBom: !b\n }), b.autoBom && /^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(a.type) ? new Blob([\"\\uFEFF\", a], {\n type: a.type\n }) : a;\n }\n function c(a, b, c) {\n var d = new XMLHttpRequest();\n d.open(\"GET\", a), d.responseType = \"blob\", d.onload = function () {\n g(d.response, b, c);\n }, d.onerror = function () {\n console.error(\"could not download file\");\n }, d.send();\n }\n function d(a) {\n var b = new XMLHttpRequest();\n b.open(\"HEAD\", a, !1);\n try {\n b.send();\n } catch (a) {}\n return 200 <= b.status && 299 >= b.status;\n }\n function e(a) {\n try {\n a.dispatchEvent(new MouseEvent(\"click\"));\n } catch (c) {\n var b = document.createEvent(\"MouseEvents\");\n b.initMouseEvent(\"click\", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), a.dispatchEvent(b);\n }\n }\n var f = \"object\" == typeof window && window.window === window ? window : \"object\" == typeof self && self.self === self ? self : \"object\" == typeof global && global.global === global ? global : void 0,\n a = f.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent),\n g = f.saveAs || (\"object\" != typeof window || window !== f ? function () {} : \"download\" in HTMLAnchorElement.prototype && !a ? function (b, g, h) {\n var i = f.URL || f.webkitURL,\n j = document.createElement(\"a\");\n g = g || b.name || \"download\", j.download = g, j.rel = \"noopener\", \"string\" == typeof b ? (j.href = b, j.origin === location.origin ? e(j) : d(j.href) ? c(b, g, h) : e(j, j.target = \"_blank\")) : (j.href = i.createObjectURL(b), setTimeout(function () {\n i.revokeObjectURL(j.href);\n }, 4E4), setTimeout(function () {\n e(j);\n }, 0));\n } : \"msSaveOrOpenBlob\" in navigator ? function (f, g, h) {\n if (g = g || f.name || \"download\", \"string\" != typeof f) navigator.msSaveOrOpenBlob(b(f, h), g);else if (d(f)) c(f, g, h);else {\n var i = document.createElement(\"a\");\n i.href = f, i.target = \"_blank\", setTimeout(function () {\n e(i);\n });\n }\n } : function (b, d, e, g) {\n if (g = g || open(\"\", \"_blank\"), g && (g.document.title = g.document.body.innerText = \"downloading...\"), \"string\" == typeof b) return c(b, d, e);\n var h = \"application/octet-stream\" === b.type,\n i = /constructor/i.test(f.HTMLElement) || f.safari,\n j = /CriOS\\/[\\d]+/.test(navigator.userAgent);\n if ((j || h && i || a) && \"undefined\" != typeof FileReader) {\n var k = new FileReader();\n k.onloadend = function () {\n var a = k.result;\n a = j ? a : a.replace(/^data:[^;]*;/, \"data:attachment/file;\"), g ? g.location.href = a : location = a, g = null;\n }, k.readAsDataURL(b);\n } else {\n var l = f.URL || f.webkitURL,\n m = l.createObjectURL(b);\n g ? g.location = m : location.href = m, g = null, setTimeout(function () {\n l.revokeObjectURL(m);\n }, 4E4);\n }\n });\n f.saveAs = g.saveAs = g, \"undefined\" != typeof module && (module.exports = g);\n});","export const scratchInstructions = [\n {\n type: 'standard',\n mode: 'scratch',\n language: 'html',\n paymentModel: 'onetime-payment',\n threeDs: 'no_3ds',\n instructions: `
\n Build your application and test in the sandbox\n
\n{number}
}\n