{"version":3,"sources":["webpack:///./node_modules/tiny-slider/src/helpers/percentageLayout.js"],"names":["percentageLayout","supported","doc","document","body","docOverflow","wrapper","createElement","outer","str","className","i","innerHTML","appendChild","Math","abs","getBoundingClientRect","left","children","count","fake","remove"],"mappings":"0FAAA,8DAMO,SAASA,IAEd,IAQIC,EARAC,EAAMC,SACNC,EAAO,cACPC,EAAc,YAAYD,GAC1BE,EAAUJ,EAAIK,cAAc,OAC5BC,EAAQN,EAAIK,cAAc,OAC1BE,EAAM,GAKVH,EAAQI,UAAY,cACpBF,EAAME,UAAY,WAElB,IAAK,IAAIC,EAAI,EAAGA,EAPJ,GAOeA,IACzBF,GAAO,cAWT,OARAD,EAAMI,UAAYH,EAClBH,EAAQO,YAAYL,GACpBJ,EAAKS,YAAYP,GAEjBL,EAAYa,KAAKC,IAAIT,EAAQU,wBAAwBC,KAAOT,EAAMU,SAASC,IAAiBH,wBAAwBC,MAAQ,EAE5Hb,EAAKgB,KAAO,YAAchB,EAAMC,GAAeC,EAAQe,SAEhDpB","file":"percentageLayout.0d0e93a0.js","sourcesContent":["// get subpixel support value\n// @return - boolean\nimport { getBody } from './getBody.js';\nimport { setFakeBody } from './setFakeBody.js';\nimport { resetFakeBody } from './resetFakeBody.js';\n\nexport function percentageLayout() {\n // check subpixel layout supporting\n var doc = document,\n body = getBody(),\n docOverflow = setFakeBody(body),\n wrapper = doc.createElement('div'),\n outer = doc.createElement('div'),\n str = '',\n count = 70,\n perPage = 3,\n supported = false;\n\n wrapper.className = \"tns-t-subp2\";\n outer.className = \"tns-t-ct\";\n\n for (var i = 0; i < count; i++) {\n str += '
';\n }\n\n outer.innerHTML = str;\n wrapper.appendChild(outer);\n body.appendChild(wrapper);\n\n supported = Math.abs(wrapper.getBoundingClientRect().left - outer.children[count - perPage].getBoundingClientRect().left) < 2;\n\n body.fake ? resetFakeBody(body, docOverflow) : wrapper.remove();\n\n return supported;\n}"],"sourceRoot":""}