{"version":3,"sources":["webpack:///./node_modules/tiny-slider/src/helpers/calc.js"],"names":["calc","doc","document","body","docOverflow","div","createElement","result","appendChild","val","str","vals","i","style","width","offsetWidth","replace","e","fake","remove"],"mappings":"0FAAA,8DAOO,SAASA,IACd,IAAIC,EAAMC,SACNC,EAAO,cACPC,EAAc,YAAYD,GAC1BE,EAAMJ,EAAIK,cAAc,OACxBC,GAAS,EAEbJ,EAAKK,YAAYH,GACjB,IAIE,IAHA,IAEII,EAFAC,EAAM,cACNC,EAAO,CAAC,OAASD,EAAK,YAAcA,EAAK,eAAiBA,GAErDE,EAAI,EAAGA,EAAI,EAAGA,IAGrB,GAFAH,EAAME,EAAKC,GACXP,EAAIQ,MAAMC,MAAQL,EACM,MAApBJ,EAAIU,YAAqB,CAC3BR,EAASE,EAAIO,QAAQN,EAAK,IAC1B,OAGJ,MAAOO,IAIT,OAFAd,EAAKe,KAAO,YAAcf,EAAMC,GAAeC,EAAIc,SAE5CZ","file":"calc.f0580008.js","sourcesContent":["// get css-calc \n// @return - false | calc | -webkit-calc | -moz-calc\n// @usage - var calc = getCalc(); \nimport { getBody } from './getBody.js';\nimport { setFakeBody } from './setFakeBody.js';\nimport { resetFakeBody } from './resetFakeBody.js';\n\nexport function calc() {\n var doc = document, \n body = getBody(),\n docOverflow = setFakeBody(body),\n div = doc.createElement('div'), \n result = false;\n\n body.appendChild(div);\n try {\n var str = '(10px * 10)',\n vals = ['calc' + str, '-moz-calc' + str, '-webkit-calc' + str],\n val;\n for (var i = 0; i < 3; i++) {\n val = vals[i];\n div.style.width = val;\n if (div.offsetWidth === 100) { \n result = val.replace(str, ''); \n break;\n }\n }\n } catch (e) {}\n \n body.fake ? resetFakeBody(body, docOverflow) : div.remove();\n\n return result;\n}"],"sourceRoot":""}