{:uriI"Âfile:///Users/izik/www/sparse/izi_lightup/spec/javascripts/helpers/extend/fixture.js?type=application/javascript&pipeline=self&id=e76ca2572d1c48813b06b4be5933f332b7926e0bce2213733761980aaaa022c9:ET:load_pathI"8/Users/izik/www/sparse/izi_lightup/spec/javascripts;T: filenameI"R/Users/izik/www/sparse/izi_lightup/spec/javascripts/helpers/extend/fixture.js;T: nameI"helpers/extend/fixture;T:logical_pathI"#helpers/extend/fixture.self.js;T:content_typeI"application/javascript;T: sourceI"~(function (self) { var $root, $meta, $cache; if (typeof document === 'object') { $meta = document.querySelector('[name=fixture_root]'); $root = $meta && $meta.content; } $root || ($root = '/assets/fixtures/'); $cache = {}; function download(path) { return new Promise(function (resolve, reject) { var xhr = new XMLHttpRequest(); xhr.open('GET', $root + path, true); xhr.onload = function (_e) { var result; if (xhr.readyState === 4) { result = xhr.responseText; if (xhr.status === 200) { if (/\.json$/.test(path)) { try { result = JSON.parse(result); } catch (error) { console.warn('JSON parse error:', error) } } resolve(result); } else { reject(xhr.statusText); } } }; xhr.onerror = function (_error) { reject(xhr.statusText); }; xhr.send(null); }); } function fixture(path) { return $cache[path] || ($cache[path] = download(path)); } self.fixture = fixture; })(this); ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"`file-digest:///Users/izik/www/sparse/izi_lightup/spec/javascripts/helpers/extend/fixture.js;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%U䉾ÐÁý¥¢¿Âf§‡ÕS¾¯m·ªÚH›ãÕ/Ì/Ë: lengthi~:dependencies_digest"%ÿê¿ôD-7Íb Æþ±˜Å%,îpPQˆ/pÇ¥ýZY:idI"Ee76ca2572d1c48813b06b4be5933f332b7926e0bce2213733761980aaaa022c9;F: mtimel+â$]b