define(["layout/module"],function(a){"use strict";a.registerDirective("smartDeviceDetect",function(){return{restrict:"A",compile:function(a){a.removeAttr("smart-device-detect data-smart-device-detect");var b=/iphone|ipad|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase());a.toggleClass("desktop-detected",!b),a.toggleClass("mobile-detected",b)}}})});