{"version":3,"file":"Viewport.js","sources":["requirejs/UI/Viewport.js"],"sourcesContent":["define([\"require\", \"exports\", \"knockout\", \"jquery\", \"utility/throttle\"], function (require, exports, ko, $, throttle_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.Viewport = void 0;\n class Viewport {\n constructor() {\n this.WindowSize = ko.observable(window.innerWidth);\n this.ViewportLarge = ko.computed(() => {\n return this.WindowSize() >= 1200;\n });\n this.ViewportMedium = ko.computed(() => {\n return this.WindowSize() <= 1199 && this.WindowSize() >= 992;\n });\n this.ViewportSmall = ko.computed(() => {\n return this.WindowSize() <= 991 && this.WindowSize() >= 768;\n });\n this.ViewportXSmall = ko.computed(() => {\n return this.WindowSize() <= 767;\n });\n $(window).resize((0, throttle_1.default)(() => this.WindowSize(window.innerWidth), 40));\n }\n }\n exports.Viewport = Viewport;\n var viewport;\n exports.default = viewport;\n});\n//# sourceMappingURL=Viewport.js.map"],"names":["define","require","exports","ko","$","throttle_1","Object","defineProperty","value","Viewport","constructor","this","WindowSize","observable","window","innerWidth","ViewportLarge","computed","ViewportMedium","ViewportSmall","ViewportXSmall","resize","default","viewport"],"mappings":"AAAAA,OAAO,CAAC,UAAW,UAAW,WAAY,SAAU,oBAAqB,SAAUC,EAASC,EAASC,EAAIC,EAAGC,gBAExGC,OAAOC,eAAeL,EAAS,aAAc,CAAEM,OAAO,IACtDN,EAAQO,cAAW,EAmBnBP,EAAQO,eAjBJC,cACIC,KAAKC,WAAaT,EAAGU,WAAWC,OAAOC,YACvCJ,KAAKK,cAAgBb,EAAGc,SAAS,IACD,MAArBN,KAAKC,cAEhBD,KAAKO,eAAiBf,EAAGc,SAAS,IACvBN,KAAKC,cAAgB,MAA6B,KAArBD,KAAKC,cAE7CD,KAAKQ,cAAgBhB,EAAGc,SAAS,IACtBN,KAAKC,cAAgB,KAA4B,KAArBD,KAAKC,cAE5CD,KAAKS,eAAiBjB,EAAGc,SAAS,IACvBN,KAAKC,cAAgB,KAEhCR,EAAEU,QAAQO,QAAO,EAAIhB,EAAWiB,SAAS,IAAMX,KAAKC,WAAWE,OAAOC,YAAa,OAK3Fb,EAAQoB,aADJC"}