{"version":3,"file":"jquery.stateChangeManager.min.js","sources":["Scripts/commun/lib/plugins/jquery.stateChangeManager.js"],"sourcesContent":["var StateDetector = new function () {\n this.indicator = \".mediaquery-indicator\";\n this.init = function () {\n StateDetector.indicator = \".mediaquery-indicator\";\n StateDetector.currentState = StateDetector.getDeviceState();\n StateDetector.stateDetectorId = 0;\n StateDetector.timeOut = 100;\n $(window).on(\"resize\", function () {\n $(\"body\").trigger(\"resizing\");\n clearTimeout(StateDetector.stateDetectorId);\n StateDetector.stateDetectorId = setTimeout(StateDetector.triggerResizing, StateDetector.timeOut);\n });\n };\n this.getDeviceState = function () {\n var index = parseInt($(StateDetector.indicator).css('z-index'));\n var states = this.getStates();\n if (states[index] != undefined) {\n return states[index];\n } else {\n if (console) {\n console.error('The z-index in class \"' + StateDetector.indicator + '\" has been altered. The index provided is \"' + index + '\". Please, do not override this CSS class. ');\n }\n }\n };\n this.triggerResizing = function () {\n $(\"body\").trigger(\"resizing_done\", [StateDetector.getDeviceState()]);\n var newState = StateDetector.getDeviceState();\n if (newState != StateDetector.currentState) {\n StateDetector.currentState = newState;\n $(\"body\").trigger(\"device_state_changed\", [StateDetector.getDeviceState()]);\n }\n };\n this.getStates = function () {\n var states = {\n 3: 'small-desktop',\n 2: 'tablet',\n 1: 'phone'\n };\n return states;\n };\n this.PHONE = function () {\n return this.getStates()[1];\n };\n this.TABLET = function () {\n return this.getStates()[2];\n };\n this.SMALL_DESKTOP = function () {\n return this.getStates()[3];\n };\n}();"],"names":["StateDetector","this","indicator","init","currentState","getDeviceState","stateDetectorId","timeOut","$","window","on","trigger","clearTimeout","setTimeout","triggerResizing","index","parseInt","css","states","getStates","undefined","console","error","newState","3","2","1","PHONE","TABLET","SMALL_DESKTOP"],"mappings":"AAAA,IAAIA,cAAgB,IAAI,WACtBC,KAAKC,UAAY,wBACjBD,KAAKE,KAAO,WACVH,cAAcE,UAAY,wBAC1BF,cAAcI,aAAeJ,cAAcK,eAAe,EAC1DL,cAAcM,gBAAkB,EAChCN,cAAcO,QAAU,IACxBC,EAAEC,MAAM,EAAEC,GAAG,SAAU,WACrBF,EAAE,MAAM,EAAEG,QAAQ,UAAU,EAC5BC,aAAaZ,cAAcM,eAAe,EAC1CN,cAAcM,gBAAkBO,WAAWb,cAAcc,gBAAiBd,cAAcO,OAAO,CACjG,CAAC,CACH,EACAN,KAAKI,eAAiB,WACpB,IAAIU,EAAQC,SAASR,EAAER,cAAcE,SAAS,EAAEe,IAAI,SAAS,CAAC,EAC1DC,EAASjB,KAAKkB,UAAU,EAC5B,GAAqBC,MAAjBF,EAAOH,GACT,OAAOG,EAAOH,GAEVM,SACFA,QAAQC,MAAM,yBAA2BtB,cAAcE,UAAY,8CAAgDa,EAAQ,6CAA6C,CAG9K,EACAd,KAAKa,gBAAkB,WACrBN,EAAE,MAAM,EAAEG,QAAQ,gBAAiB,CAACX,cAAcK,eAAe,EAAE,EACnE,IAAIkB,EAAWvB,cAAcK,eAAe,EACxCkB,GAAYvB,cAAcI,eAC5BJ,cAAcI,aAAemB,EAC7Bf,EAAE,MAAM,EAAEG,QAAQ,uBAAwB,CAACX,cAAcK,eAAe,EAAE,EAE9E,EACAJ,KAAKkB,UAAY,WAMf,MALa,CACXK,EAAG,gBACHC,EAAG,SACHC,EAAG,OACL,CAEF,EACAzB,KAAK0B,MAAQ,WACX,OAAO1B,KAAKkB,UAAU,EAAE,EAC1B,EACAlB,KAAK2B,OAAS,WACZ,OAAO3B,KAAKkB,UAAU,EAAE,EAC1B,EACAlB,KAAK4B,cAAgB,WACnB,OAAO5B,KAAKkB,UAAU,EAAE,EAC1B,CACF"}