{"remainingRequest":"/Users/dev/Sites/belavistasaude/wp-content/themes/belavistasaude/node_modules/buble-loader/index.js??ref--2-1!/Users/dev/Sites/belavistasaude/wp-content/themes/belavistasaude/node_modules/foundation-sites/js/foundation.util.imageLoader.js","dependencies":[{"path":"/Users/dev/Sites/belavistasaude/wp-content/themes/belavistasaude/node_modules/foundation-sites/js/foundation.util.imageLoader.js","mtime":1560429080762},{"path":"/Users/dev/Sites/belavistasaude/wp-content/themes/belavistasaude/node_modules/cache-loader/dist/cjs.js","mtime":1560429090832},{"path":"/Users/dev/Sites/belavistasaude/wp-content/themes/belavistasaude/node_modules/buble-loader/index.js","mtime":1560429088235}],"contextDependencies":[],"result":["'use strict';\n\nimport $ from 'jquery';\n\n/**\n * Runs a callback function when images are fully loaded.\n * @param {Object} images - Image(s) to check if loaded.\n * @param {Func} callback - Function to execute when image is fully loaded.\n */\nfunction onImagesLoaded(images, callback){\n  var self = this,\n      unloaded = images.length;\n\n  if (unloaded === 0) {\n    callback();\n  }\n\n  images.each(function(){\n    // Check if image is loaded\n    if (this.complete && this.naturalWidth !== undefined) {\n      singleImageLoaded();\n    }\n    else {\n      // If the above check failed, simulate loading on detached element.\n      var image = new Image();\n      // Still count image as loaded if it finalizes with an error.\n      var events = \"load.zf.images error.zf.images\";\n      $(image).one(events, function me(event){\n        // Unbind the event listeners. We're using 'one' but only one of the two events will have fired.\n        $(this).off(events, me);\n        singleImageLoaded();\n      });\n      image.src = $(this).attr('src');\n    }\n  });\n\n  function singleImageLoaded() {\n    unloaded--;\n    if (unloaded === 0) {\n      callback();\n    }\n  }\n}\n\nexport { onImagesLoaded };\n",{"version":3,"file":"/Users/dev/Sites/belavistasaude/wp-content/themes/belavistasaude/node_modules/foundation-sites/js/foundation.util.imageLoader.js","sources":["node_modules/foundation-sites/js/foundation.util.imageLoader.js"],"sourcesContent":["'use strict';\n\nimport $ from 'jquery';\n\n/**\n * Runs a callback function when images are fully loaded.\n * @param {Object} images - Image(s) to check if loaded.\n * @param {Func} callback - Function to execute when image is fully loaded.\n */\nfunction onImagesLoaded(images, callback){\n  var self = this,\n      unloaded = images.length;\n\n  if (unloaded === 0) {\n    callback();\n  }\n\n  images.each(function(){\n    // Check if image is loaded\n    if (this.complete && this.naturalWidth !== undefined) {\n      singleImageLoaded();\n    }\n    else {\n      // If the above check failed, simulate loading on detached element.\n      var image = new Image();\n      // Still count image as loaded if it finalizes with an error.\n      var events = \"load.zf.images error.zf.images\";\n      $(image).one(events, function me(event){\n        // Unbind the event listeners. We're using 'one' but only one of the two events will have fired.\n        $(this).off(events, me);\n        singleImageLoaded();\n      });\n      image.src = $(this).attr('src');\n    }\n  });\n\n  function singleImageLoaded() {\n    unloaded--;\n    if (unloaded === 0) {\n      callback();\n    }\n  }\n}\n\nexport { onImagesLoaded };\n"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,CAAC,MAAM,QAAQ,CAAC;;;;;;;AAOvB,SAAS,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC;EACvC,IAAI,IAAI,GAAG,IAAI;MACX,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC;;EAE7B,IAAI,QAAQ,KAAK,CAAC,EAAE;IAClB,QAAQ,EAAE,CAAC;GACZ;;EAED,MAAM,CAAC,IAAI,CAAC,UAAU;;IAEpB,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,YAAY,KAAK,SAAS,EAAE;MACpD,iBAAiB,EAAE,CAAC;KACrB;SACI;;MAEH,IAAI,KAAK,GAAG,IAAI,KAAK,EAAE,CAAC;;MAExB,IAAI,MAAM,GAAG,gCAAgC,CAAC;MAC9C,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,KAAK,CAAC;;QAErC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QACxB,iBAAiB,EAAE,CAAC;OACrB,CAAC,CAAC;MACH,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACjC;GACF,CAAC,CAAC;;EAEH,SAAS,iBAAiB,GAAG;IAC3B,QAAQ,EAAE,CAAC;IACX,IAAI,QAAQ,KAAK,CAAC,EAAE;MAClB,QAAQ,EAAE,CAAC;KACZ;GACF;CACF;;AAED,SAAS,cAAc,GAAG;","sourceRoot":"/Users/dev/Sites/belavistasaude/wp-content/themes/belavistasaude"}]}