{"version":3,"sources":["webpack://crc/webpack/bootstrap","webpack://crc/./src/components/modal/content/DE/styles/index.scss","webpack://crc/./src/components/modal/content/DE/parts/Carousel.jsx","webpack://crc/./src/components/modal/content/DE/parts/TermsTable.jsx","webpack://crc/./src/components/modal/content/DE/parts/Disclaimer.jsx","webpack://crc/./src/components/modal/content/DE/parts/Calculator.jsx","webpack://crc/./src/components/modal/content/DE/parts/INST.jsx","webpack://crc/./src/components/modal/content/DE/parts/ContentWrapper.jsx","webpack://crc/./src/components/modal/content/DE/index.js","webpack://crc/./src/components/modal/content/DE/styles/index.scss?34f1"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","splice","__webpack_require__","s","installedModules","2","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","self","this","oldJsonpFunction","slice","___CSS_LOADER_API_IMPORT___","Carousel","items","useState","index","setIndex","wrapperRef","useRef","sliderRef","useEffect","startX","delta","itemWidth","current","firstChild","offsetWidth","handleTouchStart","event","touches","clientX","style","setProperty","handleTouchMove","maxOvershoot","Math","min","max","pos","overshoot","abs","oneOverE","E","log","getRubberbandOffset","handleTouchEnd","currentDelta","addEventListener","removeEventListener","ref","className","type","aria-label","onClick","transform","map","item","src","imageSrc","alt","imageAlt","description","_","TableContent","terms","error","amount","formattedAmount","maxAmount","minAmount","offers","useContent","genericError","minError","maxError","tableHeader","genericErrorEl","replace","offer","qualified","apr","nominalRate","totalInterest","total","TermsTable","isLoading","opacity","Disclaimer","formattedMinAmount","formattedMaxAmount","disclosure","disclosureZeroAPR","disclaimer","shownDisclosure","Number","target","rel","href","Calculator","useCalculator","submit","changeInput","calculator","title","instructions","onSubmit","onInput","Button","size","INST","carousel","country","ContentWrapper","contentWrapper","Container","contentMaxWidth","Header","setupModal","props","render","Modal","serverData","styles","_getCss","document","body","css","insertCss","content","locals","_getContent","_insertCss","options"],"mappings":"uBACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,KAEtBG,IAAiBC,eAAeC,KAAKC,EADxCV,EAAUC,EAASG,KACkDM,EAAgBV,IACpFK,EAASM,KAAKD,EAAgBV,GAAS,IAExCU,EAAgBV,GAAW,EAE5B,IAAID,KAAYG,GACZK,IAAiBC,eAAeC,KAAKP,EAAaH,KACpDa,EAAQb,GAAYG,EAAYH,IAKlC,IAFGc,GAAqBA,EAAoBf,GAEtCO,EAASC,QACdD,EAASS,OAATT,GAOD,OAHAU,EAAgBJ,KAAKK,MAAMD,EAAiBZ,GAAkB,IAGvDc,IAER,SAASA,IAER,IADA,IAAIC,EACId,EAAI,EAAGA,EAAIW,EAAgBT,OAAQF,IAAK,CAG/C,IAFA,IAAIe,EAAiBJ,EAAgBX,GACjCgB,GAAY,EACRC,EAAI,EAAGA,EAAIF,EAAeb,OAAQe,IAEX,IAA3BX,EADSS,EAAeE,MACMD,GAAY,GAE3CA,IACFL,EAAgBO,OAAOlB,IAAK,GAC5Bc,EAASK,EAAoBA,EAAoBC,EAAIL,EAAe,KAItE,OAAOD,EAIR,IAAIO,EAAmB,GAKnBf,EAAkB,CACrBgB,EAAG,GAGAX,EAAkB,GAGtB,SAASQ,EAAoBxB,GAG5B,GAAG0B,EAAiB1B,GACnB,OAAO0B,EAAiB1B,GAAU4B,QAGnC,IAAIC,EAASH,EAAiB1B,GAAY,CACzCK,EAAGL,EACH8B,GAAG,EACHF,QAAS,IAUV,OANAf,EAAQb,GAAUU,KAAKmB,EAAOD,QAASC,EAAQA,EAAOD,QAASJ,GAG/DK,EAAOC,GAAI,EAGJD,EAAOD,QAKf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Aa3B,QAAQ,OAAQ,IAAM,MAE7F,YAAC8B,EAAA,EAAD,CAAQC,KAAK,KAAKzD,KAAK,UAAvB,eAKR,YAAC,EAAD,CAAYa,MAAOA,EAAOqB,UAAWA,KACnCpB,GAASK,GAAUA,EAAOhH,OAAS,GAAKgH,EAAO,GAAGS,WAAa,iBAAG7B,UAAU,cAAcwC,GAC5F,YAAC,EAAD,CAAY1B,MAAOA,MCXhB6C,EAdF,WAAM,IACPC,EAAavC,YAAW,QAAxBuC,SAER,OACI,uBAAS5D,UAAU,gBACf,YAAC,EAAD,CAAUrC,MAAOiG,IAEjB,mBAAK5D,UAAU,wBACX,YAAC,EAAD,CAAY6D,QAAQ,U,gBCarBC,EArBQ,WACnB,IAAMC,EAAiB/F,cAEvB,OACI,YAACgG,EAAA,EAAD,CAAWD,eAAgBA,EAAgBE,gBAAiB,KAGxD,YAACC,EAAA,EAAD,CAAQlE,UAAU,KAClB,mBAAKA,UAAU,kBAAkBD,IAAKgE,GAClC,mBAAK/D,UAAU,sBACX,mBAAKA,UAAU,WACX,oBAAMA,UAAU,QACZ,YAAC,EAAD,YCZrB,SAASmE,EAAWC,GACvBC,YACI,YAACC,EAAA,EAAD,CAAOC,WAAYH,EAAOI,OAAQA,IAAOC,WACrC,YAAC,EAAD,CAAgBR,gBAAiB,OAErCS,SAASC,Q,mBCXb,IACIC,EAAM,EAAQ,KACdC,EAAY,EAAQ,IACpBC,EAAyB,iBAARF,EAAmB,CAAC,CAAClJ,EAAOxB,EAAI0K,EAAK,KAAOA,GAEjEnJ,EAAUC,EAAOD,QAAUmJ,EAAIG,QAAU,IACjCC,YAAc,WAAa,OAAOF,GAC1CrJ,EAAQgJ,QAAU,WAAa,MAAO,GAAKG,GAC3CnJ,EAAQwJ,WAAa,SAASC,GAAW,OAAOL,EAAUC,EAASI","file":"smart-credit-modal-DE.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t2: 0\n \t};\n\n \tvar deferredModules = [];\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 = \"\";\n\n \tvar jsonpArray = (typeof self !== 'undefined' ? self : this)[\"webpackJsonpcrc\"] = (typeof self !== 'undefined' ? self : this)[\"webpackJsonpcrc\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([152,0]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".header-container .header{background:#f6f7fb}.header-container .header::after{background:linear-gradient(#f6f7fb, rgba(246,247,251,0));height:20px}.header-container .logo{width:200px;padding:28px 0}.content{padding-top:72px;position:relative;z-index:50;overflow:hidden}.content .calculator-container{margin:auto;max-width:400px;padding-bottom:3rem}.content .disclosure{color:#687173;font-size:0.75rem}.content-body{overflow:hidden}.content-wrapper{position:absolute;top:0;left:0;width:100vw;height:100%;overflow-y:scroll}.content-background{width:100%;max-width:612px;margin:auto;background:white;min-height:100%}@media only screen and (max-width: 612px){.calculator-container{padding:0 18px}}.header-wrapper{position:absolute;top:0;left:0;width:100%;z-index:1000}.header-wrapper .header-container{width:100%}.header-wrapper .header{background:#f6f7fb;text-align:center;width:100%;max-width:612px;margin:0 auto;position:relative;height:100%}.header-wrapper .logo{box-sizing:border-box;display:block;margin:0 auto;height:72px;transition:all 0.3s}.header-wrapper .close svg{height:48px;width:48px}.header-wrapper .close path{stroke-width:1px;transition:all 0.3s}.header-wrapper .logo-wrapper{transition:all 0.3s;transform:translateX(0) scale(1)}.calculator{text-align:center;max-width:300px;margin:auto}.calculator .title{text-align:center}.calculator .instructions{color:#687173;position:relative;left:50%;transform:translateX(-50%);width:300px}.calculator .instructions::before{content:'';display:block;position:absolute;top:-0.7rem;width:220px;left:50%;transform:translateX(-50%);border-bottom:1px dotted #cbd2d6}.calculator .form{width:150px;margin:auto;padding:0 2rem;font-size:20px;position:relative}.calculator .form:after{content:'€';position:absolute;top:1px;right:1.3rem}.calculator .form.form--loading:after{opacity:0.5}.calculator .input{font-size:20px;text-align:center;width:100%;border:none}.calculator .form.form--loading .input{opacity:0.5}@media only screen and (min-width: 436px){.calculator .title{font-size:1.1875rem}.calculator .form{font-size:1.5rem}.calculator .form:after{top:-1px}.calculator .input{font-size:1.5rem}}.carousel{border-radius:0 0 100% 100%;width:150%;background:#f6f7fb;overflow:auto;margin-left:-25%}.carousel .outer{max-width:400px;margin:auto;overflow:hidden;position:relative;width:66.666666%}.carousel .title{font-size:20px;font-weight:300;margin-top:0;margin-bottom:0;text-align:center}.carousel .inner{white-space:nowrap;transition:transform 0.2s ease-out;font-size:0;transform:translateX(0)}.carousel .item{display:inline-block;width:100%;padding:15px 30px 0;box-sizing:border-box;white-space:normal}.carousel .item img{display:block;height:auto;max-width:100%}.carousel .image{margin:auto}.carousel .text{text-align:center;max-width:250px;font-weight:600;margin-left:auto;margin-right:auto}.carousel .indicators{padding:0;text-align:center;position:relative;z-index:2;margin-top:0}.carousel .indicators li{display:inline-block;margin:0}.carousel .bullet{cursor:pointer;display:block;border:none;background:none;height:30px;width:30px;position:relative;overflow:hidden}.carousel .bullet:after{background-color:#aaaaaa;content:'';width:10px;height:10px;border-radius:50%;position:absolute;top:10px;left:10px}.carousel .bullet.active:after{background-color:#0070ba}.carousel .shadow{position:absolute;height:100%;width:100%;box-shadow:0px -20px 20px 20px #f6f7fb inset;z-index:1}.carousel .arrows{width:100%;position:absolute;z-index:2;top:10px}.carousel .arrow{border-radius:100%;width:3rem;height:3rem;background:none;border:none;position:absolute;cursor:pointer}.carousel .arrow:hover{background:#eee}.carousel .arrow:focus{background:#eee;outline:none;border:1px solid rgba(0,112,186,0.5)}.carousel .arrow:after{content:'';position:absolute;width:30%;height:30%;border-top:2px solid #cbd2d6;border-right:2px solid #cbd2d6;top:37%;left:28%}.carousel .arrow--prev{left:10px;transform:rotate(-135deg)}.carousel .arrow--next{right:10px;transform:rotate(45deg)}.finance-terms{position:relative}.finance-terms .table{width:100%;font-size:0.875rem}.finance-terms .table td{padding:2px 0}.finance-terms .table td:last-child{text-align:right}.finance-terms .divider{opacity:0.3}.finance-terms .header{text-align:center}.finance-terms .error{text-align:center}@media only screen and (min-width: 436px){.finance-terms .table td{padding:5px 0}}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n","/** @jsx h */\nimport { h } from 'preact';\nimport { useState, useEffect, useRef } from 'preact/hooks';\n\nconst Carousel = ({ items }) => {\n const [index, setIndex] = useState(0);\n const wrapperRef = useRef();\n const sliderRef = useRef();\n\n useEffect(() => {\n const itemWidth = sliderRef.current.firstChild.offsetWidth;\n let startX;\n let delta;\n\n const getRubberbandOffset = (pos, maxOvershoot) => {\n const overshoot = pos < 0 ? Math.abs(pos) : pos - (items.length - 1) * itemWidth;\n const oneOverE = 1 / Math.E;\n const x = (overshoot / maxOvershoot) * (1 - oneOverE) + oneOverE;\n const scale = Math.log(x * Math.E);\n return (overshoot / 2) * scale;\n };\n\n const handleTouchStart = event => {\n startX = event.touches[0].clientX;\n delta = -itemWidth * index;\n sliderRef.current.style.setProperty('transition-duration', '0s');\n };\n\n const handleTouchMove = event => {\n const maxOvershoot = 0.6 * itemWidth;\n delta = event.touches[0].clientX - startX;\n delta = Math.min(maxOvershoot, Math.max(index * -itemWidth + delta, 2 * -itemWidth - maxOvershoot));\n\n // Edge boundaries\n if (delta > 0 || delta < 2 * -itemWidth) {\n delta += (delta < 0 ? 1 : -1) * getRubberbandOffset(-delta, maxOvershoot);\n }\n\n sliderRef.current.style.setProperty('transform', `translateX(${delta}px)`);\n };\n\n const handleTouchEnd = () => {\n sliderRef.current.style.setProperty('transition-duration', '0.3s');\n const currentDelta = delta + itemWidth * index;\n\n if (Math.abs(currentDelta) > itemWidth / 4) {\n if (currentDelta < 0 && index + 1 < items.length) {\n return setIndex(index + 1);\n }\n if (currentDelta > 0 && index - 1 >= 0) {\n return setIndex(index - 1);\n }\n }\n\n return sliderRef.current.style.setProperty('transform', `translateX(-${100 * index}%)`);\n };\n\n wrapperRef.current.addEventListener('touchstart', handleTouchStart);\n wrapperRef.current.addEventListener('touchmove', handleTouchMove);\n wrapperRef.current.addEventListener('touchend', handleTouchEnd);\n\n return () => {\n wrapperRef.current.removeEventListener('touchstart', handleTouchStart);\n wrapperRef.current.removeEventListener('touchmove', handleTouchMove);\n wrapperRef.current.removeEventListener('touchend', handleTouchEnd);\n };\n }, [index]);\n\n return (\n
\n

So funktioniert's

\n\n {/* */}\n
\n
\n {index !== 0 && (\n setIndex(index - 1)}\n />\n )}\n {index !== items.length - 1 && (\n setIndex(index + 1)}\n />\n )}\n
\n
\n
\n {items.map(item => (\n
\n
\n {item.imageAlt}\n
\n

{item.description}

\n
\n ))}\n
\n\n
    \n {items.map((_, i) => (\n
  1. \n setIndex(i)}\n aria-label={index + 1}\n />\n
  2. \n ))}\n
\n
\n
\n );\n};\n\nexport default Carousel;\n","/** @jsx h */\nimport { h, Fragment } from 'preact';\nimport { useContent } from '../../../lib';\n\nconst TableContent = ({ terms: { error, amount, formattedAmount, maxAmount, minAmount, type, offers } }) => {\n const {\n terms: { genericError, minError, maxError, tableHeader }\n } = useContent('INST');\n\n const genericErrorEl =

{genericError}

;\n\n if (error || !maxAmount) {\n return genericErrorEl;\n }\n\n if (+amount < minAmount && type === 'pala') {\n return

{minError.replace(/,00/g, '')}

;\n }\n\n if (+amount > maxAmount && type === 'pala') {\n return

{maxError.replace(/,00/g, '')}

;\n }\n\n const [offer] = offers.length ? offers : [];\n if (!offer || !offer.qualified) {\n return genericErrorEl;\n }\n\n return (\n \n

{tableHeader}

\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
E-Geld Transaktionsbetrag{formattedAmount}€
Effektiver Jahreszinssatz{offer.apr}%
Fester Sollzinssatz{offer.nominalRate}%
Zinsbetrag{offer.totalInterest}€
\n Gesamtbetrag\n \n {offer.total}€\n
\n
\n );\n};\n\nconst TermsTable = ({ terms, isLoading }) => (\n
\n
\n
\n {(terms.type === 'pala' || terms.error) && }\n
\n
\n);\n\nexport default TermsTable;\n","/** @jsx h */\nimport { h } from 'preact';\nimport { useContent } from '../../../lib';\n\nconst isZeroAPR = val => Number(val.replace(/[,.]/g, '')) === 0;\n\nconst Disclaimer = ({ terms: { error, formattedMinAmount, formattedMaxAmount, offers } }) => {\n const { disclosure, disclosureZeroAPR, disclaimer } = useContent('INST');\n\n if (!error && formattedMinAmount && formattedMaxAmount && offers && offers.length > 0) {\n const [offer] = offers;\n const shownDisclosure = isZeroAPR(offer.apr) ? disclosureZeroAPR : disclosure;\n\n return (\n

\n {shownDisclosure.replace(/,00/g, '')}{' '}\n \n Mehr erfahren\n \n

\n );\n }\n\n return

{disclaimer}

;\n};\n\nexport default Disclaimer;\n","/** @jsx h */\nimport { h, Fragment } from 'preact';\n\nimport { useCalculator, useContent } from '../../../lib';\nimport Button from '../../../parts/Button';\nimport TermsTable from './TermsTable';\nimport Disclaimer from './Disclaimer';\n\nconst Calculator = () => {\n const { terms, value, isLoading, submit, changeInput } = useCalculator();\n const {\n calculator: { title, instructions, disclosure }\n } = useContent('INST');\n\n const { error, formattedMinAmount, formattedMaxAmount, offers } = terms;\n\n return (\n \n
\n

{title}

\n
\n \n

\n {!error && formattedMinAmount && formattedMaxAmount ? instructions.replace(/,00/g, '') : null}\n

\n \n
\n
\n \n {!error && offers && offers.length > 0 && offers[0].qualified &&

{disclosure}

}\n \n
\n );\n};\n\nexport default Calculator;\n","/** @jsx h */\nimport { h } from 'preact';\n\nimport Carousel from './Carousel';\nimport Calculator from './Calculator';\nimport { useContent } from '../../../lib';\n\nconst INST = () => {\n const { carousel } = useContent('INST');\n\n return (\n
\n \n\n
\n \n
\n
\n );\n};\n\nexport default INST;\n","/** @jsx h */\nimport { h } from 'preact';\nimport { useRef } from 'preact/hooks';\nimport INST from './INST';\nimport Header from '../../../parts/Header';\nimport Container from '../../../parts/Container';\n\nconst ContentWrapper = () => {\n const contentWrapper = useRef();\n\n return (\n \n {/* The empty className is needed to prevent a Preact issue that was introduced */}\n {/* https://github.com/preactjs/preact/issues/2781 */}\n
\n
\n
\n
\n
\n \n
\n
\n
\n
\n \n );\n};\n\nexport default ContentWrapper;\n","/** @jsx h */\nimport { h, render } from 'preact';\n\nimport Modal from '../../parts/Modal';\nimport styles from './styles/index.scss';\nimport ContentWrapper from './parts/ContentWrapper';\n\nexport function setupModal(props) {\n render(\n \n \n ,\n document.body\n );\n}\n","\n var refs = 0;\n var css = require(\"!!../../../../../../node_modules/css-loader/dist/cjs.js??ref--4-1!../../../../../../node_modules/scoped-css-loader/index.js!../../../../../../node_modules/sass-loader/dist/cjs.js!./index.scss\");\n var insertCss = require(\"!../../../../../../node_modules/isomorphic-style-loader/insertCss.js\");\n var content = typeof css === 'string' ? [[module.id, css, '']] : css;\n\n exports = module.exports = css.locals || {};\n exports._getContent = function() { return content; };\n exports._getCss = function() { return '' + css; };\n exports._insertCss = function(options) { return insertCss(content, options) };\n\n // Hot Module Replacement\n // https://webpack.github.io/docs/hot-module-replacement\n // Only activated in browser context\n if (module.hot && typeof window !== 'undefined' && window.document) {\n var removeCss = function() {};\n module.hot.accept(\"!!../../../../../../node_modules/css-loader/dist/cjs.js??ref--4-1!../../../../../../node_modules/scoped-css-loader/index.js!../../../../../../node_modules/sass-loader/dist/cjs.js!./index.scss\", function() {\n css = require(\"!!../../../../../../node_modules/css-loader/dist/cjs.js??ref--4-1!../../../../../../node_modules/scoped-css-loader/index.js!../../../../../../node_modules/sass-loader/dist/cjs.js!./index.scss\");\n content = typeof css === 'string' ? [[module.id, css, '']] : css;\n removeCss = insertCss(content, { replace: true });\n });\n module.hot.dispose(function() { removeCss(); });\n }\n "],"sourceRoot":""}