!function(i){"use strict";i(document).ready(function(s){function e(i,e){var n=s("#vision-preview-canvas"),e=s(".vision-map").vision("instance");switch(i){case"image":n.css({"min-width":e.imageWidth+"px"});break;case"desktop":n.css({"min-width":"100%"});break;case"tablet":n.css({"min-width":"768px"});break;case"mobile":n.css({"min-width":"320px"})}e.resize(),s(".vision-preview-header").find(".vision-preview-btn").removeClass("vision-active"),s(".vision-preview-header").find('.vision-preview-btn[data-device="'+i+'"]').addClass("vision-active")}s("head").find("style").each(function(){s(this).remove()}),s(".vision-preview-header").on("click",".vision-preview-btn",function(i){e(s(this).data("device"))}),s(".vision-map").on("vision:ready",function(){e("image")})})}(jQuery,window);