(function(e){function t(t){for(var n,i,o=t[0],c=t[1],l=t[2],d=0,p=[];d<o.length;d++)i=o[d],Object.prototype.hasOwnProperty.call(s,i)&&s[i]&&p.push(s[i][0]),s[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);u&&u(t);while(p.length)p.shift()();return r.push.apply(r,l||[]),a()}function a(){for(var e,t=0;t<r.length;t++){for(var a=r[t],n=!0,o=1;o<a.length;o++){var c=a[o];0!==s[c]&&(n=!1)}n&&(r.splice(t--,1),e=i(i.s=a[0]))}return e}var n={},s={app:0},r=[];function i(t){if(n[t])return n[t].exports;var a=n[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.m=e,i.c=n,i.d=function(e,t,a){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(a,n,function(t){return e[t]}.bind(null,n));return a},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/";var o=window["webpackJsonp"]=window["webpackJsonp"]||[],c=o.push.bind(o);o.push=t,o=o.slice();for(var l=0;l<o.length;l++)t(o[l]);var u=c;r.push([0,"chunk-vendors"]),a()})({0:function(e,t,a){e.exports=a("56d7")},"000d":function(e,t,a){e.exports=a.p+"img/woto_gh.1438f02d.png"},"0032":function(e,t,a){e.exports=a.p+"img/nq_8.fd25e6f8.png"},"0046":function(e,t,a){e.exports=a.p+"img/lawc_r.17938f13.png"},"004c":function(e,t,a){e.exports=a.p+"img/mini.7bf86f9e.png"},"0051":function(e,t,a){e.exports=a.p+"img/leag_3.9041917a.png"},"0091":function(e,t,a){"use strict";a("862f")},"00e6":function(e,t,a){e.exports=a.p+"img/bsb_b.573ebb86.png"},"0142":function(e,t,a){e.exports=a.p+"img/sph1_3.0e5ece84.png"},"019b":function(e,t,a){e.exports=a.p+"img/fab_1.6f5a0cdf.png"},"019c":function(e,t,a){e.exports=a.p+"img/lawc_4.cc53f767.png"},"0231":function(e,t,a){e.exports=a.p+"img/carvr_3.a8efb2b1.png"},"0232":function(e,t,a){e.exports=a.p+"img/sph1_5.30743ef4.png"},"0306":function(e,t,a){e.exports=a.p+"img/mh_3.79eb1bb3.png"},"030a":function(e,t,a){e.exports=a.p+"img/llib_1.cb16f7c1.png"},"034f":function(e,t,a){"use strict";a("85ec")},"0375":function(e,t,a){e.exports=a.p+"img/boye_1.fb63e09f.png"},"0376":function(e,t,a){e.exports=a.p+"img/lsjh_5.660e9548.png"},"03c4":function(e,t,a){e.exports=a.p+"img/vvaun_1.d6fb68c7.png"},"03c6":function(e,t,a){e.exports=a.p+"img/lsa_5.5568cbad.png"},"03dd":function(e,t,a){e.exports=a.p+"img/ewre_g.0cb01e14.png"},"0406":function(e,t,a){e.exports=a.p+"img/vbcmn_4.726486c6.png"},"0449":function(e,t,a){e.exports=a.p+"img/ncsv_2m.7d1a6f36.png"},"0461":function(e,t,a){e.exports=a.p+"img/srb_b.93e3d48f.png"},"04aa":function(e,t,a){e.exports=a.p+"img/lec_1.0fcabb69.png"},"04b5":function(e,t,a){e.exports=a.p+"img/fletc_1.aad289a2.png"},"0542":function(e,t,a){e.exports=a.p+"img/glibs_7.87874a38.png"},"054a":function(e,t,a){},"0594":function(e,t,a){e.exports=a.p+"img/mgfg_1.44269800.png"},"05a5":function(e,t,a){e.exports=a.p+"img/ncrc520_1.7af0d8b4.png"},"06bb":function(e,t,a){e.exports=a.p+"img/ohgo_1.9b6b7f7a.png"},"06e0":function(e,t,a){e.exports=a.p+"img/map_markers_small.2a70b71e.png"},"0739":function(e,t,a){e.exports=a.p+"img/eh_5.852da688.png"},"0774":function(e,t,a){},"078a":function(e,t,a){e.exports=a.p+"img/weidn_b.2cc694df.png"},"07b4":function(e,t,a){e.exports=a.p+"img/ehurn_r.cd9113c6.png"},"083e":function(e,t,a){e.exports=a.p+"img/mlb_3.c6d7a071.png"},"0848":function(e,t,a){e.exports=a.p+"img/sq_5.3f4a4da2.png"},"08bd":function(e,t,a){e.exports=a.p+"img/woto_11.4af66760.png"},"092b":function(e,t,a){e.exports=a.p+"img/1000v_1.77914934.png"},"095f":function(e,t,a){e.exports=a.p+"img/vb2_z2.69e8872b.png"},"099a":function(e,t,a){e.exports=a.p+"img/weis_6.d2fcfc4d.png"},"09ab":function(e,t,a){e.exports=a.p+"img/lorch_5m.fae52344.png"},"09b4":function(e,t,a){e.exports=a.p+"img/rack_4.53e867f4.png"},"09d6":function(e,t,a){e.exports=a.p+"img/sinfn_r.c02f6859.png"},"09e0":function(e,t,a){e.exports=a.p+"img/burs_6.3cf10036.png"},"0a17":function(e,t,a){e.exports=a.p+"img/presr_1.44269800.png"},"0a28":function(e,t,a){e.exports=a.p+"img/eh_5m.e57f49b5.png"},"0a8c":function(e,t,a){e.exports=a.p+"img/weill_2.2b73b82b.png"},"0aa3":function(e,t,a){e.exports=a.p+"img/vb2_t3.79b90240.png"},"0add":function(e,t,a){e.exports=a.p+"img/palm_2.afeecc14.png"},"0bbe":function(e,t,a){},"0c4a":function(e,t,a){e.exports=a.p+"img/lorch_6.92998634.png"},"0c4b":function(e,t,a){},"0c6b":function(e,t,a){e.exports=a.p+"img/blau_6.d9e508cb.png"},"0c6e":function(e,t,a){e.exports=a.p+"img/chrys_2.7f5c669d.png"},"0c9b":function(e,t,a){e.exports=a.p+"img/plnt_m.b27ac0c9.png"},"0cd4":function(e,t,a){e.exports=a.p+"img/cook_2.4ec291fb.png"},"0d2d":function(e,t,a){e.exports=a.p+"img/bus_7.19816a44.png"},"0d3c":function(e,t,a){e.exports=a.p+"img/snb_5.5b290866.png"},"0d3f":function(e,t,a){e.exports=a.p+"img/eflb_1.2aeee966.png"},"0d7d":function(e,t,a){e.exports=a.p+"img/ah_4.7386c046.png"},"0d98":function(e,t,a){e.exports=a.p+"img/vvaun_4.56e4be4e.png"},"0db0":function(e,t,a){e.exports=a.p+"img/mh_5.32eb1d95.png"},"0db6":function(e,t,a){e.exports=a.p+"img/bus_5.175458ee.png"},"0e0c":function(e,t,a){e.exports=a.p+"img/fmcrb_1.66773acc.png"},"0ed5":function(e,t,a){e.exports=a.p+"img/stock_r.82ab17df.png"},"0f18":function(e,t,a){e.exports=a.p+"img/ssw_3.568f005b.png"},"0f53":function(e,t,a){e.exports=a.p+"img/woto_10.56208a22.png"},"0f6e":function(e,t,a){e.exports=a.p+"img/mprint_header.9642aba8.png"},"0f72":function(e,t,a){e.exports=a.p+"img/523di_1.94c57d68.png"},"0f85":function(e,t,a){e.exports=a.p+"img/bmt_1.b8af3665.png"},"0fc6":function(e,t,a){e.exports=a.p+"img/ohsl_1.6d31c1b8.png"},"104c":function(e,t,a){e.exports=a.p+"img/sph2_b.3f496f9b.png"},"107d":function(e,t,a){"use strict";a("269e")},1126:function(e,t,a){e.exports=a.p+"img/burs_8.c68985d4.png"},1167:function(e,t,a){e.exports=a.p+"img/lorch_4.2c111940.png"},1197:function(e,t,a){e.exports=a.p+"img/unio_5.ab67e369.png"},"11e9":function(e,t,a){e.exports=a.p+"img/alb2_3.b7f26ebe.png"},1227:function(e,t,a){e.exports=a.p+"img/llib_11.023c5c9c.png"},1246:function(e,t,a){e.exports=a.p+"img/lorch_b.b6f4e569.png"},"12ad":function(e,t,a){e.exports=a.p+"img/dance_2.c4c971b9.png"},"12b4":function(e,t,a){e.exports=a.p+"img/sph2_3.533d0e82.png"},1309:function(e,t,a){"use strict";a("7e6d")},1313:function(e,t,a){e.exports=a.p+"img/vb2_cr4.ce915085.png"},1328:function(e,t,a){e.exports=a.p+"img/bsb_2.53a5f97c.png"},"132a":function(e,t,a){e.exports=a.p+"img/wgolf_2.4e12ec86.png"},"13d2":function(e,t,a){e.exports=a.p+"img/oxva_2.560093c7.png"},"13e2":function(e,t,a){e.exports=a.p+"img/clemt_3.a8f04125.png"},"13f3":function(e,t,a){e.exports=a.p+"img/trnsv_1.166f00cc.png"},"145c":function(e,t,a){e.exports=a.p+"img/vb2_cs2.64426373.png"},"146a":function(e,t,a){e.exports=a.p+"img/dc_r.47fbc9be.png"},1475:function(e,t,a){e.exports=a.p+"img/hh_8.9a941fa6.png"},1505:function(e,t,a){e.exports=a.p+"img/ulib_4.7b6d5dfe.png"},1593:function(e,t,a){e.exports=a.p+"img/mmark_1.362249f1.png"},"15a5":function(e,t,a){e.exports=a.p+"img/vb2_cr3.f28a1e46.png"},"169e":function(e,t,a){e.exports=a.p+"img/snb_2.05e09ebb.png"},"16fd":function(e,t,a){e.exports=a.p+"img/mojo_r.db503b90.png"},1741:function(e,t,a){e.exports=a.p+"img/keyo_1.2308fce0.png"},"177e":function(e,t,a){e.exports=a.p+"img/bmt_11.46b384b0.png"},"17a4":function(e,t,a){"use strict";a("1b13")},"17b4":function(e,t,a){e.exports=a.p+"img/power_1.9e3a018c.png"},"17e8":function(e,t,a){e.exports=a.p+"img/wgolf_1.90ca57cc.png"},"182e":function(e,t,a){e.exports=a.p+"img/alh_ll.c76ffcd7.png"},1851:function(e,t,a){e.exports=a.p+"img/nq_5.db49b003.png"},"18d3":function(e,t,a){"use strict";a("ec05")},"18f8":function(e,t,a){e.exports=a.p+"img/1443w_3.e6641c91.png"},"192e":function(e,t,a){},"196c":function(e,t,a){e.exports=a.p+"img/ncrc018_g.045c6d46.png"},"19ae":function(e,t,a){e.exports=a.p+"img/weis_3.c76b1182.png"},"19e2":function(e,t,a){e.exports=a.p+"img/mcpk_2.9bc7ea22.png"},"19fe":function(e,t,a){e.exports=a.p+"img/mmark_4.1df5b2a8.png"},"1a35":function(e,t,a){e.exports=a.p+"img/phnx_1.811faa77.png"},"1a5a":function(e,t,a){},"1a76":function(e,t,a){},"1ad9":function(e,t,a){e.exports=a.p+"img/wdc_b.1758f147.png"},"1b13":function(e,t,a){},"1b82":function(e,t,a){e.exports=a.p+"img/unio_6.2e1b72e1.png"},"1b98":function(e,t,a){e.exports=a.p+"img/keen_1.125c66b7.png"},"1b99":function(e,t,a){},"1bac":function(e,t,a){e.exports=a.p+"img/wdc_3.d40d6b2a.png"},"1bc6":function(e,t,a){},"1bd7":function(e,t,a){e.exports=a.p+"img/lsi_6.6a346136.png"},"1bde":function(e,t,a){e.exports=a.p+"img/s5th_2.44269800.png"},"1bfe":function(e,t,a){e.exports=a.p+"img/fab_2.cb4e433c.png"},"1c16":function(e,t,a){e.exports=a.p+"img/alb3_1.3e6b3751.png"},"1d6e":function(e,t){e.exports={maintenanceMsg:{message:"On Friday, November 22nd at 11:00 PM, the MPrint service may experience intermittent outages as our print servers are being patched. The server patching is expected to be completed by Saturday, November 23rd at 1:00 AM. Please see this <a href='https://status.its.umich.edu/report.php?id=159699' target='_blank'>status page notification</a> for more information.",expiration:"2024-11-23 1:00:00"},serviceMsg:{message:"",expiration:""}}},"1dd3":function(e,t,a){e.exports=a.p+"img/taubl_3.9b755706.png"},"1df4":function(e,t,a){e.exports=a.p+"img/aepr_1m.2d22eb9e.png"},"1dfe":function(e,t,a){e.exports=a.p+"img/stadm_1.72fefa82.png"},"1e51":function(e,t,a){e.exports=a.p+"img/taubl_2.67fc045c.png"},"1e8b":function(e,t,a){e.exports=a.p+"img/pharm_b.35e9b5b5.png"},"1ec2":function(e,t,a){e.exports=a.p+"img/bmt_10.ff3c960d.png"},"1ed0":function(e,t,a){e.exports=a.p+"img/mlb_1.6d4fca93.png"},"1f17":function(e,t,a){"use strict";a("e968")},"1f7e":function(e,t,a){e.exports=a.p+"img/woto_1.3100db20.png"},"1fcd":function(e,t,a){e.exports=a.p+"img/buhr_3.25b64177.png"},"1fdd":function(e,t,a){"use strict";a("de9d")},"1fe2":function(e,t,a){e.exports=a.p+"img/advlead_1.44269800.png"},"1fe4":function(e,t,a){"use strict";a("d29f")},"1fe9":function(e,t,a){e.exports=a.p+"img/lsjh_1.1b683e8b.png"},"1ff4":function(e,t,a){"use strict";a("b6e6")},"207f":function(e,t,a){e.exports=a.p+"img/glick_1.ce510355.png"},"20f7":function(e,t,a){e.exports=a.p+"img/plnt_2.972ad621.png"},2105:function(e,t,a){e.exports=a.p+"img/1443w_b.d635d071.png"},2137:function(e,t,a){e.exports=a.p+"img/planetblue_logo.1a2435fd.png"},"2137b":function(e,t,a){e.exports=a.p+"img/wh_b.eae4582f.png"},"21ab":function(e,t,a){"use strict";a("cdbe")},"21dc":function(e,t,a){e.exports=a.p+"img/lsjh_3.94e3c247.png"},"225d":function(e,t,a){e.exports=a.p+"img/arg2_1.59f83a0b.png"},2263:function(e,t,a){e.exports=a.p+"img/tap_b.79bd4581.png"},2272:function(e,t,a){e.exports=a.p+"img/lsa_3.f0435df8.png"},2285:function(e,t,a){e.exports=a.p+"img/lsa_b.eba5619b.png"},2299:function(e,t,a){e.exports=a.p+"img/cpp_1.88ad98cb.png"},"22ab":function(e,t,a){e.exports=a.p+"img/istco_1.cf39237b.png"},"22d4":function(e,t,a){e.exports=a.p+"img/usb_4.032801e9.png"},"230a":function(e,t,a){e.exports=a.p+"img/lsi_1.ed9efc2b.png"},"233d":function(e,t,a){e.exports=a.p+"img/wbus_2.ad8129e8.png"},2368:function(e,t,a){e.exports=a.p+"img/bbar_1.82cfeff5.png"},2383:function(e,t,a){e.exports=a.p+"img/lsa_r.5e8f33c0.png"},2467:function(e,t,a){e.exports=a.p+"img/nq_1m.73c0d8fb.png"},"24e8":function(e,t,a){e.exports=a.p+"img/lawc_1.d53ab17b.png"},2505:function(e,t,a){},"255c":function(e,t,a){e.exports=a.p+"img/famil_1.4519b4f2.png"},"255d":function(e,t,a){e.exports=a.p+"img/vb2_cs3.c631cdbd.png"},2566:function(e,t,a){e.exports=a.p+"img/523di_2.e90fe8fe.png"},"256c":function(e,t,a){e.exports=a.p+"img/power_4.427d319b.png"},2589:function(e,t,a){e.exports=a.p+"img/strns_1.9e654493.png"},2651:function(e,t,a){e.exports=a.p+"img/ah_2.d9403ac5.png"},"269e":function(e,t,a){},"26ae":function(e,t,a){"use strict";a("192e")},2792:function(e,t,a){e.exports=a.p+"img/clemt_b.ccbc1e37.png"},"27a0":function(e,t,a){e.exports=a.p+"img/fjsdo_1.44269800.png"},"27db":function(e,t,a){e.exports=a.p+"img/wh_1.f0672887.png"},2801:function(e,t,a){e.exports=a.p+"img/newby_3.acf2e3f8.png"},"282c":function(e,t,a){},2874:function(e,t,a){e.exports=a.p+"img/wh_4.7fc73650.png"},"288e":function(e,t,a){e.exports=a.p+"img/umtri_4.086e1709.png"},"291e":function(e,t,a){e.exports=a.p+"img/chrys_1.6915818f.png"},"294f":function(e,t,a){e.exports=a.p+"img/cool_g.0ac26c27.png"},"296e":function(e,t,a){e.exports=a.p+"img/sph1_4.794f64ab.png"},"297d":function(e,t,a){"use strict";a("b93f")},"298b":function(e,t,a){e.exports=a.p+"img/cpp_2.6d6a2ed7.png"},"299a":function(e,t,a){e.exports=a.p+"img/sab_4.b5916b49.png"},"29f2":function(e,t,a){},"2a30":function(e,t,a){e.exports=a.p+"img/lane_1.a855d314.png"},"2a42":function(e,t,a){e.exports=a.p+"img/vb2_cn4.eacaa545.png"},"2a63":function(e,t,a){"use strict";a("2505")},"2a66":function(e,t,a){e.exports=a.p+"img/fishr_1.57958bc5.png"},"2ae4":function(e,t,a){e.exports=a.p+"img/ncrc025_2.6ded32a3.png"},"2c3e":function(e,t,a){e.exports=a.p+"img/hh_2.c9e1bc43.png"},"2c42":function(e,t,a){e.exports=a.p+"img/hartw_1.b771ab8d.png"},"2c47":function(e,t,a){e.exports=a.p+"img/nh_2.56f5d275.png"},"2c4c":function(e,t,a){e.exports=a.p+"img/lsa_1.fe413da1.png"},"2c5e":function(e,t,a){e.exports=a.p+"img/bsb_6.c75a98a8.png"},"2c90":function(e,t,a){e.exports=a.p+"img/ncrc520_c.f9ea2cf0.png"},"2cba":function(e,t,a){e.exports=a.p+"img/dana_1.6d7ff111.png"},"2cf5":function(e,t,a){e.exports=a.p+"img/bsb_3.5bd14104.png"},"2d03":function(e,t,a){e.exports=a.p+"img/phspr_2.bb284e63.png"},"2d3f":function(e,t,a){e.exports=a.p+"img/schem_2.31f85603.png"},"2d45":function(e,t,a){e.exports=a.p+"img/mmark_3.29cfc1a8.png"},"2de6":function(e,t,a){e.exports=a.p+"img/llib_10.938a122f.png"},"2df5":function(e,t,a){e.exports=a.p+"img/hh_4.6f69f89b.png"},"2dfa":function(e,t,a){e.exports=a.p+"img/gflab_2.fb5ef838.png"},"2dfe":function(e,t,a){e.exports=a.p+"img/lsi_2.553296e1.png"},"2e2a":function(e,t,a){e.exports=a.p+"img/vbeat_3.45dc5aec.png"},"2e36":function(e,t,a){},"2e3d":function(e,t,a){"use strict";a("1bc6")},"2eb8":function(e,t,a){e.exports=a.p+"img/fab_3.ee30308f.png"},"2ec8":function(e,t,a){e.exports=a.p+"img/map_markers.76832f7a.png"},"2edd":function(e,t,a){e.exports=a.p+"img/vb2_cs4.f100fa57.png"},"2ee3":function(e,t,a){e.exports=a.p+"img/nq_10.0b334649.png"},"2eee":function(e,t,a){e.exports=a.p+"img/acbh_b.b10f8c9d.png"},"2eef":function(e,t,a){e.exports=a.p+"img/fsba_1.8fd01dde.png"},"2efa":function(e,t,a){e.exports=a.p+"img/ncrc020_1.be0b9219.png"},"2f73":function(e,t,a){e.exports=a.p+"img/ncrc010_r.8fbcbb8c.png"},"2f8c":function(e,t,a){e.exports=a.p+"img/bus_1.18acfd21.png"},"2f90":function(e,t,a){e.exports=a.p+"img/1443w_g.37dd2e12.png"},"2fe3":function(e,t,a){e.exports=a.p+"img/ncrc020_2.8d6b5434.png"},3048:function(e,t,a){e.exports=a.p+"img/lawc_5.bc000b1b.png"},3090:function(e,t,a){e.exports=a.p+"img/llib_3.9d61e9e0.png"},"3090a":function(e,t,a){e.exports=a.p+"img/ncrc018_2.bc78192e.png"},"30c6":function(e,t,a){e.exports=a.p+"img/gcchs_2.8a3933b8.png"},"313a":function(e,t,a){e.exports=a.p+"img/weill_5.148bb8ad.png"},"315f":function(e,t,a){e.exports=a.p+"img/twsc_2.bb1aaf7a.png"},"31aa":function(e,t,a){e.exports=a.p+"img/lsjh_2.0929c164.png"},"31aab":function(e,t,a){e.exports=a.p+"img/sab_ll.e22dc03a.png"},"321c":function(e,t,a){e.exports=a.p+"img/ssw_2.279e35ed.png"},3241:function(e,t,a){e.exports=a.p+"img/name_b.88f9733f.png"},3247:function(e,t,a){e.exports=a.p+"img/ggbl_3.3ccf11d8.png"},3290:function(e,t,a){e.exports=a.p+"img/umtri_b.45169c31.png"},"32cf":function(e,t,a){e.exports=a.p+"img/tenn_1.1ac3b81b.png"},"32e8":function(e,t,a){e.exports=a.p+"img/ulib_3.2869827e.png"},"32ee":function(e,t,a){e.exports=a.p+"img/agrmu_2.b3d32050.png"},"32fd":function(e,t,a){e.exports=a.p+"img/ah_5.fddfbeae.png"},"32fe":function(e,t,a){e.exports=a.p+"img/aepr_1.55dac0df.png"},"33dd":function(e,t,a){e.exports=a.p+"img/cssb_2.022d8187.png"},"33fe":function(e,t,a){e.exports=a.p+"img/fab_6.5054588c.png"},"342e":function(e,t,a){e.exports=a.p+"img/ncrc025_4.c362668e.png"},"34b7":function(e,t,a){e.exports=a.p+"img/wq_2.e2016b29.png"},"34d2":function(e,t,a){e.exports=a.p+"img/woto_2.713ae869.png"},"34e8":function(e,t,a){e.exports=a.p+"img/s5th_1.44269800.png"},"351c":function(e,t,a){e.exports=a.p+"img/nw498_ll.af7192c2.png"},3583:function(e,t,a){e.exports=a.p+"img/kma_3.5e70da7e.png"},3625:function(e,t,a){e.exports=a.p+"img/ah_ll.478b59b7.png"},3637:function(e,t,a){e.exports=a.p+"img/bbar_4.5f0fc784.png"},"365d":function(e,t,a){e.exports=a.p+"img/clemt_1.e34f9acc.png"},"373b":function(e,t,a){e.exports=a.p+"img/dow_1.190f2d66.png"},"377e":function(e,t,a){e.exports=a.p+"img/alb3_b.818a62e9.png"},"380f":function(e,t,a){e.exports=a.p+"img/macc.4c3581e6.png"},"38ae":function(e,t,a){"use strict";a("a30a")},"38d6":function(e,t,a){"use strict";a("054a")},3927:function(e,t,a){e.exports=a.p+"img/ncrc020_3.15514b80.png"},3970:function(e,t,a){e.exports=a.p+"img/drtf_1.44269800.png"},3982:function(e,t,a){e.exports=a.p+"img/bus_2.a67d901a.png"},"39b6":function(e,t,a){"use strict";a("1a5a")},"39f5":function(e,t,a){e.exports=a.p+"img/nq_2m.1693b355.png"},"39fc":function(e,t,a){e.exports=a.p+"img/dana_3.3aee2b63.png"},"3a0f":function(e,t,a){e.exports=a.p+"img/nq_11.8bdb0378.png"},"3a3f":function(e,t,a){e.exports=a.p+"img/sab_3.f9444868.png"},"3a40":function(e,t,a){e.exports=a.p+"img/wbus_b.628ae039.png"},"3a48":function(e,t,a){e.exports=a.p+"img/sm_3.cf6f43e1.png"},"3a9c":function(e,t,a){e.exports=a.p+"img/300ni_10.126f62dd.png"},"3a9e":function(e,t,a){e.exports=a.p+"img/hh_6.eb1da438.png"},"3ae4":function(e,t,a){e.exports=a.p+"img/pmh_1.84710658.png"},"3af9":function(e,t,a){e.exports=a.p+"img/tenn_3.cd8dfbd7.png"},"3afa":function(e,t,a){e.exports=a.p+"img/compass.691943b6.png"},"3b0e":function(e,t,a){e.exports=a.p+"img/lsi_8.816b5425.png"},"3b2b":function(e,t,a){e.exports=a.p+"img/rand_b.6f53be04.png"},"3b7a":function(e,t,a){"use strict";a("da49")},"3bcd":function(e,t,a){e.exports=a.p+"img/mcpk_7.eaaccb87.png"},"3bdf":function(e,t,a){e.exports=a.p+"img/exres_8.1a5897e2.png"},"3be6":function(e,t,a){e.exports=a.p+"img/tmc_2.fa39415d.png"},"3c08":function(e,t,a){e.exports=a.p+"img/wdc_2.096b2af7.png"},"3c21":function(e,t,a){e.exports=a.p+"img/auxs1_1.6dd775bb.png"},"3cb4":function(e,t,a){e.exports=a.p+"img/hartw_2.69515120.png"},"3cbe":function(e,t,a){e.exports=a.p+"img/lane_g.eca061c7.png"},"3cd1":function(e,t,a){e.exports=a.p+"img/sm_b.846399c9.png"},"3e0f":function(e,t,a){e.exports=a.p+"img/cook_1.d60b278c.png"},"3e1d":function(e,t,a){e.exports=a.p+"img/agrmu_3.5e17b625.png"},"3e29":function(e,t,a){e.exports=a.p+"img/nub_2.cf4c55d1.png"},"3e76":function(e,t,a){e.exports=a.p+"img/boye_2.8a28f7c4.png"},"3ea0":function(e,t,a){e.exports=a.p+"img/mungr_3.c6056378.png"},"3ea1":function(e,t,a){e.exports=a.p+"img/blau_2.22636173.png"},"3f24":function(e,t,a){e.exports=a.p+"img/ssw_b.b29aa16b.png"},"3f42":function(e,t,a){e.exports=a.p+"img/msrb2_2.69f85a0e.png"},"3f6b":function(e,t,a){e.exports=a.p+"img/name_1.6980fad9.png"},"3f7e":function(e,t,a){e.exports=a.p+"img/nib_3.386e099a.png"},4045:function(e,t,a){e.exports=a.p+"img/bbar_ll.818ec9a0.png"},4056:function(e,t,a){e.exports=a.p+"img/sph2_5.02b25f26.png"},"413d":function(e,t,a){e.exports=a.p+"img/wresl_1.762237e4.png"},"41b6":function(e,t,a){e.exports=a.p+"img/ehurn_3.86f2a004.png"},"41bf":function(e,t,a){e.exports=a.p+"img/mungr_7.07c4f94b.png"},"41c4":function(e,t,a){e.exports=a.p+"img/walhs_b.44269800.png"},"41c5":function(e,t,a){e.exports=a.p+"img/lsjh_b.8495cf8d.png"},"41fa":function(e,t,a){e.exports=a.p+"img/ohgo_2.0ffae927.png"},4221:function(e,t,a){},"4221a":function(e,t,a){e.exports=a.p+"img/alb1_2.d39736ff.png"},4294:function(e,t,a){e.exports=a.p+"img/lsa_7.d6d7a227.png"},"42ea":function(e,t,a){e.exports=a.p+"img/dance_1.949f7529.png"},"42f2":function(e,t,a){e.exports=a.p+"img/lsaad_b.d5bc2dbe.png"},4333:function(e,t,a){e.exports=a.p+"img/sph2_7.c7ceb440.png"},4339:function(e,t,a){e.exports=a.p+"img/lorch_3.4afc4978.png"},4384:function(e,t,a){e.exports=a.p+"img/glibn_1a.99bc3991.png"},4406:function(e,t,a){e.exports=a.p+"img/chem_4.a4e66d56.png"},"441f":function(e,t,a){e.exports=a.p+"img/nub_4.d384e75e.png"},4432:function(e,t,a){e.exports=a.p+"img/gcchs_1.bf74f9ed.png"},4442:function(e,t,a){e.exports=a.p+"img/couzn_3.b4ad601f.png"},4475:function(e,t,a){e.exports=a.p+"img/fletc_b.835790bb.png"},4480:function(e,t,a){e.exports=a.p+"img/eecs_3.aaf6f940.png"},4494:function(e,t,a){e.exports=a.p+"img/snb_a.0f051590.png"},4497:function(e,t,a){},"44a1":function(e,t,a){e.exports=a.p+"img/playc_2.c118251d.png"},4524:function(e,t,a){e.exports=a.p+"img/newby_1.276b4fd9.png"},"452c":function(e,t,a){},"453c":function(e,t,a){e.exports=a.p+"img/dana_g.77f89dc1.png"},4553:function(e,t,a){e.exports=a.p+"img/weill_1.e128853e.png"},"456e":function(e,t,a){e.exports=a.p+"img/rack_2.37dbdc4b.png"},"45c5":function(e,t,a){e.exports=a.p+"img/bystr_2.865b97c3.png"},"45d8":function(e,t,a){e.exports=a.p+"img/glibn_b.bba6a66e.png"},"45e2":function(e,t,a){e.exports=a.p+"img/mungr_5.e1987e13.png"},"461b":function(e,t,a){"use strict";a("d57a")},4650:function(e,t,a){e.exports=a.p+"img/nchsb_1m.4a378fbf.png"},4653:function(e,t,a){e.exports=a.p+"img/glibs_4.3207ce5f.png"},"479a":function(e,t,a){e.exports=a.p+"img/chem_3.abd5b44c.png"},"47a3":function(e,t,a){e.exports=a.p+"img/lec_4.48327177.png"},"47b5":function(e,t,a){e.exports=a.p+"img/cook_5.cb3b0655.png"},4820:function(e,t,a){},4859:function(e,t,a){e.exports=a.p+"img/asb_1.9d348cce.png"},"48f0":function(e,t,a){e.exports=a.p+"img/srb_2.830362c9.png"},4909:function(e,t,a){e.exports=a.p+"img/sph2_6.2c2828ae.png"},"4a37":function(e,t,a){e.exports=a.p+"img/unio_2.92588026.png"},"4a76":function(e,t,a){e.exports=a.p+"img/wresl_2.df8a5071.png"},"4a9f":function(e,t,a){e.exports=a.p+"img/1000v_2.1e8eaf2b.png"},"4b6c":function(e,t,a){e.exports=a.p+"img/wbus_6.31e9d2df.png"},"4b70":function(e,t,a){e.exports=a.p+"img/pharm_1.66c68f71.png"},"4b95":function(e,t,a){e.exports=a.p+"img/palm_5.c2d35b09.png"},"4bc1":function(e,t,a){e.exports=a.p+"img/mlb_4.31882e50.png"},"4bd6":function(e,t,a){"use strict";a("6cb8")},"4bea":function(e,t,a){e.exports=a.p+"img/yost_0.76eff2ef.png"},"4bf1":function(e,t,a){e.exports=a.p+"img/wh_3.40392a58.png"},"4c43":function(e,t,a){e.exports=a.p+"img/lsaad_1.0530a3cc.png"},"4ccd":function(e,t,a){e.exports=a.p+"img/eecs_1.bbcc447c.png"},"4d29":function(e,t,a){},"4d72":function(e,t,a){e.exports=a.p+"img/bmt_7.466f4556.png"},"4d85":function(e,t,a){e.exports=a.p+"img/stb_3.ea5fd570.png"},"4d88":function(e,t,a){e.exports=a.p+"img/ccrb_6.71678863.png"},"4d8a":function(e,t,a){e.exports=a.p+"img/ncrc400_1.5d650556.png"},"4d96":function(e,t,a){e.exports=a.p+"img/weis_5.42ab3107.png"},"4da9":function(e,t,a){e.exports=a.p+"img/cook_3.7b704999.png"},"4daa":function(e,t,a){e.exports=a.p+"img/ross_2.e7b1fb7b.png"},"4dfe":function(e,t,a){e.exports=a.p+"img/tmc_1.b14673a1.png"},"4e08":function(e,t,a){e.exports=a.p+"img/vb2_t1.eaa77756.png"},"4ed5":function(e,t,a){e.exports=a.p+"img/chem_2.f4c330a6.png"},"4f32":function(e,t,a){e.exports=a.p+"img/fletc_3.020822e4.png"},"4f55":function(e,t,a){e.exports=a.p+"img/stadm_4m.eba6611d.png"},"4f81":function(e,t,a){e.exports=a.p+"img/weill_4.639a2eb8.png"},"4fc4":function(e,t,a){e.exports=a.p+"img/lsa_2.762e0899.png"},"4ffd":function(e,t,a){e.exports=a.p+"img/usb_3.7dd16a30.png"},"500a":function(e,t,a){e.exports=a.p+"img/glibs_5.1de809e3.png"},5079:function(e,t,a){e.exports=a.p+"img/dc_1.787d860e.png"},5089:function(e,t,a){e.exports=a.p+"img/weidn_1.4d9b4364.png"},5090:function(e,t,a){e.exports=a.p+"img/ross_r.b1994a34.png"},"509e":function(e,t,a){e.exports=a.p+"img/obl_4.7c10d0b6.png"},5134:function(e,t,a){e.exports=a.p+"img/ah_1.9fa79e5f.png"},"51d9":function(e,t,a){e.exports=a.p+"img/rand_1.f333ade7.png"},"51e7":function(e,t,a){e.exports=a.p+"img/ncrc550_1.60eb81c1.png"},"51f4":function(e,t,a){e.exports=a.p+"img/mcpk_3.34e19986.png"},"522a":function(e,t,a){e.exports=a.p+"img/grn_b.67ebd9b5.png"},"532e":function(e,t,a){e.exports=a.p+"img/bystr_1.fb774dad.png"},5341:function(e,t,a){e.exports=a.p+"img/agrmu_b.c7064a1f.png"},"537d":function(e,t,a){e.exports=a.p+"img/chem_1.2e686c94.png"},"53b9":function(e,t,a){e.exports=a.p+"img/agrmu_sb.9541ade1.png"},5454:function(e,t,a){e.exports=a.p+"img/ssw_1.b34740e1.png"},"548a":function(e,t,a){e.exports=a.p+"img/wq_ll.eba6ff8a.png"},"54ef":function(e,t,a){e.exports=a.p+"img/power_5.20bd4c15.png"},5561:function(e,t,a){e.exports=a.p+"img/vvaun_2.2647ee2f.png"},"55c3":function(e,t,a){e.exports=a.p+"img/macc_1.9430a2ad.png"},5609:function(e,t,a){e.exports=a.p+"img/ncrc010_2.4f3c1499.png"},5648:function(e,t,a){e.exports=a.p+"img/mcpk_8.96c45ef4.png"},5687:function(e,t,a){e.exports=a.p+"img/palm_6.7ec11109.png"},"56d7":function(e,t,a){"use strict";a.r(t);a("e260"),a("e6cf"),a("cca6"),a("a79d");var n=a("2b0e"),s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"app"}},[a("div",{attrs:{id:"dashboard_layout"}},[a("div",{attrs:{id:"header"}},[e._m(0),e.authRequired?[e.uniqname.length>0?[a("div",{staticClass:"show_menu",attrs:{id:"user_info"},on:{mouseenter:e.showMenuEvent,mouseout:e.hideMenuEvent}},[a("div",{staticClass:"uniqname_container show_menu",on:{mouseenter:e.showMenuEvent,mouseout:e.hideMenuEvent}},[e._v("Hello, "),a("span",{staticClass:"authenticated show_menu",attrs:{id:"uniqname"},on:{mouseenter:e.showMenuEvent,mouseout:e.hideMenuEvent}},[e._v(e._s(e.uniqname))]),e._v(" "),a("span",{staticClass:"show_menu",class:e.show_menu?"rotate_down":"",attrs:{id:"uniqname_arrow"},on:{mouseenter:e.showMenuEvent,mouseout:e.hideMenuEvent}},[e._v("➤")])])]),a("div",{staticClass:"clearfix"}),a("div",{directives:[{name:"show",rawName:"v-show",value:e.show_menu,expression:"show_menu"}],staticClass:"show_menu",attrs:{id:"user_menu"},on:{mouseenter:e.showMenuEvent,mouseout:e.hideMenuEvent}},[a("a",{staticClass:"menu_link show_menu",attrs:{href:e.publicPath+"/about",target:"_blank"},on:{mouseenter:e.showMenuEvent,mouseout:e.hideMenuEvent}},[e._v("About MPrint")]),a("a",{staticClass:"menu_link show_menu",attrs:{href:e.publicPath+"/user",target:"_blank"},on:{mouseenter:e.showMenuEvent,mouseout:e.hideMenuEvent}},[e._v("My MPrint Account")]),a("a",{staticClass:"menu_link show_menu",attrs:{href:e.publicPath+"/feedback",target:"_blank"},on:{mouseenter:e.showMenuEvent,mouseout:e.hideMenuEvent}},[e._v("MPrint Feedback Page")]),a("a",{staticClass:"menu_link show_menu",attrs:{href:e.publicPath+"/help",target:"_blank"},on:{mouseenter:e.showMenuEvent,mouseout:e.hideMenuEvent}},[e._v("MPrint Help Page")]),a("a",{staticClass:"menu_link show_menu",attrs:{href:e.publicPath+"/api/auth/redirect_uri?logout="+e.publicPath+"/logout"},on:{mouseenter:e.showMenuEvent,mouseout:e.hideMenuEvent}},[e._v("Log Out")])])]:[e._m(1)]]:e._e()],2),a("div",{attrs:{id:"main_container"}},[a("div",{class:e.show_sidebar?"":"minimized",attrs:{id:"sidebar"}},[e.show_sidebar?[a("nav",{attrs:{role:"navigation"}},[a("a",{staticClass:"sidebar_button",attrs:{id:"hide_sidebar"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.hideSidebar.apply(null,arguments)}}},[e._m(2)]),e._l(e.pages,(function(t,n){return[e.role&&t.roles.includes(e.role)?[t.sublinks.length>0?[a("a",{key:n,staticClass:"sidebar_button sublink_parent",class:[{clicked:e.currentPage&&t.router_id!==e.currentPage&&Object.keys(e.shown_sublinks).includes(t.name.toLowerCase())&&e.shown_sublinks[t.name.toLowerCase()]}],attrs:{id:t.id,href:t.url},on:{click:function(a){a.preventDefault(),e.toggleSublinks(t.name.toLowerCase())}}},[a("span",[e._v(e._s(t.name))])]),e._l(t.sublinks,(function(t,n){return[e.role&&t.roles.includes(e.role)?[a("a",{key:t.parent+"_"+n,staticClass:"sidebar_sublink",class:[{current_page:e.currentPage&&t.router_id===e.currentPage},{hidden:!Object.keys(e.shown_sublinks).includes(t.parent)||Object.keys(e.shown_sublinks).includes(t.parent)&&!e.shown_sublinks[t.parent]},t.parent+"_child"],attrs:{id:t.id,href:t.url}},[a("span",[e._v(e._s(t.name))])])]:e._e()]}))]:[a("a",{key:n,staticClass:"sidebar_button",class:[{current_page:e.currentPage&&t.router_id===e.currentPage}],attrs:{id:t.id,href:t.url}},[a("span",[e._v(e._s(t.name))])])]]:e._e()]}))],2)]:[a("a",{staticClass:"sidebar_button minimized",attrs:{id:"show_sidebar",href:"",title:"Show Menu"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.showSidebar.apply(null,arguments)}}},[a("i",{staticClass:"fas fa-angle-double-right"})])]],2),a("div",{attrs:{id:"body"}},[a("div",{staticClass:"wrapper"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.show_critical_alert&&e.criticalServiceFailures.length>0,expression:"show_critical_alert && criticalServiceFailures.length > 0"}],staticClass:"maintenance_alert alert_box"},[a("div",{staticStyle:{display:"flex !important","justify-content":"flex-end !important"}},[a("i",{staticClass:"close_alert fas fa-times",on:{click:function(t){e.show_critical_alert=!1}}})]),a("div",{staticClass:"clearfix"}),a("i",{staticClass:"fas fa-exclamation-triangle alert_icon"}),a("div",{staticClass:"alert_text"},[e._v("One or more University services that MPrint depends upon is currently unavailable! MPrint may not behave as expected until the "+e._s(e.criticalServiceFailures.length>1?"services are":"service is")+" fully functional again. This may be due to an unexpected outage, or regularly scheduled maintenance. Please visit the "),a("a",{attrs:{href:"https://status.its.umich.edu",target:"_blank"}},[e._v("ITS Status page")]),e._v(" for more information.")]),a("div",{staticClass:"clearfix"})]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.show_maintenance&&e.maintenanceMsg.length>0,expression:"(show_maintenance && maintenanceMsg.length > 0)"}],staticClass:"maintenance_alert alert_box"},[a("div",{staticStyle:{display:"flex !important","justify-content":"flex-end !important"}},[a("i",{staticClass:"close_alert fas fa-times",on:{click:function(t){e.show_maintenance=!1}}})]),a("div",{staticClass:"clearfix"}),a("i",{staticClass:"fas fa-exclamation-triangle alert_icon"}),a("div",{staticClass:"alert_text",domProps:{innerHTML:e._s(e.maintenanceMsg)}}),a("div",{staticClass:"clearfix"})]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.show_health_warning&&e.warningServiceFailures.length>0,expression:"show_health_warning && warningServiceFailures.length > 0"}],staticClass:"service_alert alert_box"},[a("div",{staticStyle:{display:"flex !important","justify-content":"flex-end !important"}},[a("i",{staticClass:"close_alert fas fa-times",on:{click:function(t){e.show_health_warning=!1}}})]),a("div",{staticClass:"clearfix"}),a("i",{staticClass:"fas fa-exclamation-triangle alert_icon"}),a("div",{staticClass:"alert_text"},[e._v("One or more University services that MPrint uses is currently unavailable! MPrint may not behave as expected until the "+e._s(e.warningServiceFailures.length>1?"services are":"service is")+" fully functional again. This may be due to an unexpected outage, or regularly scheduled maintenance. Please visit the "),a("a",{attrs:{href:"https://status.its.umich.edu",target:"_blank"}},[e._v("ITS Status page")]),e._v(" for more information.")]),a("div",{staticClass:"clearfix"})]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.show_service&&e.serviceMsg.length>0,expression:"(show_service && serviceMsg.length > 0)"}],staticClass:"service_alert alert_box"},[a("div",{staticStyle:{display:"flex !important","justify-content":"flex-end !important"}},[a("i",{staticClass:"close_alert fas fa-times",on:{click:function(t){e.show_service=!1}}})]),a("div",{staticClass:"clearfix"}),a("i",{staticClass:"fas fa-exclamation-triangle alert_icon"}),a("div",{staticClass:"alert_text",domProps:{innerHTML:e._s(e.serviceMsg)}}),a("div",{staticClass:"clearfix"})]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.landscape_prompt,expression:"landscape_prompt"}],staticClass:"landscape_alert alert_box"},[a("div",{staticStyle:{display:"flex !important","justify-content":"flex-end !important"}},[a("i",{staticClass:"close_alert fas fa-times",on:{click:function(t){return e.removeLandscapePrompt()}}})]),a("div",{staticClass:"clearfix"}),a("i",{staticClass:"fas fa-exclamation-triangle alert_icon yellow"}),a("div",{staticClass:"alert_text"},[e._v("Your device's screen is too narrow to optimally use this page. Please rotate your device to landscape for a better experience!")]),a("div",{staticClass:"clearfix"})])]),e.currentPage?[a("router-view",{attrs:{user:e.user}})]:[e._m(3)]],2)])])])},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"its_banner"}},[n("a",{attrs:{href:""}},[n("img",{attrs:{src:a("0f6e"),title:"MPrint - Information and Technology Services",alt:"MPrint Logo",height:"30"}})])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_nogrow"},[a("div",{staticClass:"uniqname_container"},[e._v("Obtaining login data...")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("span",[a("i",{staticClass:"fas fa-angle-double-left mr-2"}),e._v("Hide")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("div",{staticClass:"full_width medium_text"},[e._v("Loading... "),n("img",{attrs:{src:a("d9b6"),alt:"loading"}})])])}],i=a("b85c"),o=(a("caad"),a("2532"),a("b64b"),a("ac1f"),a("1276"),a("99af"),a("b0c0"),a("d81d"),a("466d"),a("4d63"),a("25f0"),a("4de4"),a("6dfc"),a("1da1")),c=(a("96cf"),a("bc3a")),l=a.n(c),u=a("a49b")["base_url"],d={methods:{get:function(e){return Object(o["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,l.a.get(u+e);case 3:return t.abrupt("return",t.sent);case 6:throw t.prev=6,t.t0=t["catch"](0),console.log("API Service - GET "+e+" -- error! "+t.t0),t.t0;case 10:case"end":return t.stop()}}),t,null,[[0,6]])})))()},post:function(e,t){var a=arguments;return Object(o["a"])(regeneratorRuntime.mark((function n(){var s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return s=a.length>2&&void 0!==a[2]?a[2]:{},n.prev=1,n.next=4,l.a.post(u+e,t,s);case 4:return n.abrupt("return",n.sent);case 7:throw n.prev=7,n.t0=n["catch"](1),console.log("API Service - POST "+e+" -- error! "+n.t0),n.t0;case 11:case"end":return n.stop()}}),n,null,[[1,7]])})))()},put:function(e,t){var a=arguments;return Object(o["a"])(regeneratorRuntime.mark((function n(){var s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return s=a.length>2&&void 0!==a[2]?a[2]:{},n.prev=1,n.next=4,l.a.put(u+e,t,s);case 4:return n.abrupt("return",n.sent);case 7:throw n.prev=7,n.t0=n["catch"](1),console.log("API Service - PUT "+e+" -- error! "+n.t0),n.t0;case 11:case"end":return n.stop()}}),n,null,[[1,7]])})))()},delete:function(e){return Object(o["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,l.a.delete(u+e);case 3:return t.abrupt("return",t.sent);case 6:throw t.prev=6,t.t0=t["catch"](0),console.log("API Service - DELETE "+e+" -- error! "+t.t0),t.t0;case 10:case"end":return t.stop()}}),t,null,[[0,6]])})))()}}},p=d,_={name:"App",computed:{role:function(){return Object.keys(this.user).includes("role")?this.user.role:"user"},uniqname:function(){return Object.keys(this.user).includes("uniqname")?this.user.uniqname:""}},data:function(){return{authRequired:!0,criticalServiceFailures:[],currentPage:this.$store.getters.getCurrentPage,landscape_prompt:!1,maintenanceMsg:this.$store.getters.getMaintenanceMsg,mql:null,msg:null,noauth_pages:this.$store.getters.getNoAuthPages,pages:this.$store.getters.getPages,publicPath:window.location.origin,serviceMsg:this.$store.getters.getServiceMsg,show_critical_alert:!0,show_health_warning:!0,show_maintenance:!0,show_menu:!1,show_menu_timeout:null,show_service:!0,show_sidebar:!0,shown_sublinks:{},user:this.$store.getters.getUser,warningServiceFailures:[]}},methods:{toggleSublinks:function(e){Object.keys(this.shown_sublinks).includes(e)&&this.shown_sublinks[e]?this.$set(this.shown_sublinks,e,!1):this.$set(this.shown_sublinks,e,!0)},hideMenuEvent:function(){null!==this.show_menu_timeout&&(window.clearTimeout(this.show_menu_timeout),this.show_menu_timeout=null),this.show_menu_timeout=window.setTimeout(this.hideMenu,200)},hideMenu:function(){this.show_menu=!1},hideSidebar:function(){this.show_sidebar=!1},mediaChangeListener:function(e){this.landscape_prompt=e.matches},removeLandscapePrompt:function(){this.landscape_prompt=!1,this.mql.removeEventListener("change",this.mediaChangeListener),this.mql=null},setDocumentTitle:function(){if(document.title="MPrint",this.currentPage&&"mprint"!==this.currentPage.toLowerCase()){document.title="MPrint - ";var e,t=this.currentPage.split("_"),a=Object(i["a"])(t);try{for(a.s();!(e=a.n()).done;){var n=e.value;document.title="".concat(document.title," ").concat(n.substring(0,1).toUpperCase()).concat(n.substring(1))}}catch(d){a.e(d)}finally{a.f()}}if(this.currentPage){var s,r=Object(i["a"])(this.pages);try{for(r.s();!(s=r.n()).done;){var o=s.value;if(o.router_id===this.currentPage)document.title="mprint"===this.currentPage?"MPrint":"MPrint - ".concat(o.name);else if(o.sublinks.length){var c,l=Object(i["a"])(o.sublinks);try{for(l.s();!(c=l.n()).done;){var u=c.value;u.router_id===this.currentPage&&(document.title="MPrint"===this.currentPage?"MPrint":"MPrint - ".concat(u.name),this.toggleSublinks(u.parent))}}catch(d){l.e(d)}finally{l.f()}}}}catch(d){r.e(d)}finally{r.f()}}},showMenuEvent:function(){null!==this.show_menu_timeout&&(window.clearTimeout(this.show_menu_timeout),this.show_menu_timeout=null),this.show_menu_timeout=window.setTimeout(this.showMenu,200)},showMenu:function(){this.show_menu=!0},showSidebar:function(){this.show_sidebar=!0},_expirationReload:function(){this.msg="Your Weblogin session has expired! This page will refresh in 5 seconds.",window.setTimeout((function(){window.location.reload()}),5e3)}},created:function(){this.setDocumentTitle(),this.mql=window.matchMedia("(max-width: 749px) and (orientation: portrait)"),this.landscape_prompt=this.mql.matches,this.mql.addEventListener("change",this.mediaChangeListener)},mounted:function(){var e=this,t=this;if(this.currentPage){var a=[];this.noauth_pages.map((function(t){var n=e.currentPage.match(new RegExp(t,"gi"));null!==n&&(a=a.concat(n))})),a.length&&(this.authRequired=!1,this.show_sidebar=!1)}this.authRequired&&window.setInterval((function(){p.methods.get("/api/health").then((function(e){try{if(e.data.result&&Object.keys(e.data.result).length){var a=e.data.result;if(null!==a&&Object.keys(a).length)for(var n=function(){var e=r[s];a[e].healthy?+a[e].critical&&t.criticalServiceFailures.includes(e)?t.criticalServiceFailures=t.criticalServiceFailures.filter((function(t){return t!==e})):!+a[e].critical&&t.warningServiceFailures.includes(e)&&(t.warningServiceFailures=t.warningServiceFailures.filter((function(t){return t!==e}))):+a[e].critical&&!t.criticalServiceFailures.includes(e)?t.criticalServiceFailures.push(e):+a[e].critical||t.warningServiceFailures.includes(e)||t.warningServiceFailures.push(e)},s=0,r=Object.keys(a);s<r.length;s++)n()}}catch(i){console.log(i),t._expirationReload()}})).catch((function(e){console.log(e),t._expirationReload()}))}),6e4)},watch:{"$store.state.user":function(){this.user=this.$store.getters.getUser},"$store.state.currentPage":function(){this.currentPage=this.$store.getters.getCurrentPage},currentPage:function(){this.setDocumentTitle()}}},m=_,f=(a("034f"),a("b0a0"),a("6964"),a("2877")),h=Object(f["a"])(m,s,r,!1,null,null,null),g=h.exports,v=a("8c4f"),b=a("2f62");n["a"].use(b["a"]);var w={currentPage:"",maintenanceMsg:"",noauth_pages:[],pages:[],serviceMsg:"",user:{affiliations:[],email:"",first_name:"",full_name:"",uniqname:"",role:""}},y={setCurrentPage:function(e,t){e.currentPage=t},setMaintenanceMsg:function(e,t){e.maintenanceMsg=t},setNoAuthPages:function(e,t){e.noauth_pages=t},setPages:function(e,t){e.pages=t},setServiceMsg:function(e,t){e.serviceMsg=t},setUser:function(e,t){e.user=t}},x={setUser:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a="api/auth/user",e.next=3,p.methods.get(a);case 3:return n=e.sent,n.data.result&&t.commit("setUser",n.data.result),e.abrupt("return",n.data.result);case 6:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},C={getCurrentPage:function(){return w.currentPage},getMaintenanceMsg:function(){return w.maintenanceMsg},getNoAuthPages:function(){return w.noauth_pages},getPages:function(){return w.pages},getServiceMsg:function(){return w.serviceMsg},getUser:function(){return w.user}},k=new b["a"].Store({state:w,getters:C,actions:x,mutations:y}),P=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.msg,expression:"msg"}],attrs:{id:"message_container"}},[a("div",{staticClass:"message",attrs:{id:"message"}},[e._v(e._s(e.msg))])]),a("div",{attrs:{id:"content",role:"main"}},[e._m(0),a("div",{staticClass:"box full_box"},[a("table",{staticClass:"full_width"},[a("tr",{staticClass:"help_title",class:e.expanded.includes("about")?"expanded":"",on:{click:function(t){return e.toggleRow("about")}}},[a("td",{staticClass:"center pad-8-0 large_text"},[e._v("What is MPrint?"),a("i",{staticClass:"ml-2 fas",class:e.expanded.includes("about")?"fa-caret-down":"fa-caret-right"})])]),a("tr",{staticClass:"help_content",class:e.expanded.includes("about")?"shown":""},[a("td",{staticClass:"pad-8"},[e._m(1),a("ul",[e._m(2),a("li",[a("a",{attrs:{href:e.publicPath+"/app",target:"_blank"}},[e._v("MPrint Mobile app")]),e._v(", submit and release documents to/from Follow Me right from your mobile device")]),a("li",[a("a",{attrs:{href:e.publicPath+"/user",target:"_blank"}},[e._v("MPrint User page")]),e._v(", where you can view and manage information related to your print account")]),a("li",[a("a",{attrs:{href:e.publicPath+"/maps",target:"_blank"}},[e._v("MPrint Maps page")]),e._v(", a way to locate and install the most convenient printers for you to use")]),a("li",[a("a",{attrs:{href:""+e.publicPath,target:"_blank"}},[e._v("MPrint web page")]),e._v(", an install-free way to print from anywhere")])])])]),a("tr",{staticClass:"help_title even_row",class:e.expanded.includes("access")?"expanded":"",on:{click:function(t){return e.toggleRow("access")}}},[a("td",{staticClass:"center pad-8-0 large_text"},[e._v("Who Can Use MPrint?"),a("i",{staticClass:"ml-2 fas",class:e.expanded.includes("access")?"fa-caret-down":"fa-caret-right"})])]),a("tr",{staticClass:"help_content even_row",class:e.expanded.includes("access")?"shown":""},[a("td",{staticClass:"pad-8"},[a("p",[e._v("Anybody can use MPrint, but depending on what your role is with the university, there may be an extra step or two you'll have to take before you can take advantage of MPrint. The information below will help you figure out what, if anything, you will need to do before you can start printing.")]),a("ul",[a("li",[a("b",[e._v("I am a student, faculty member, staff member, or sponsored affiliate with the Ann Arbor campus.")]),e._v(" You should already be in the print system and would have, at the very least, access to use the "),a("a",{attrs:{href:"http://its.umich.edu/computing/printing/mprint/campus-computing-sites",target:"_blank"}},[e._v("Campus Computing Sites")]),e._v(" printers. As faculty or staff, your department may also be a MiWorkspace or MPrint as a Service customer, which would give you access to an even wider array of printers. You can use the "),a("a",{attrs:{href:e.publicPath+"/maps",target:"_blank"}},[e._v("MPrint Maps page")]),e._v(" to find printers near you that you have access to use. If you're unsure whether or not your department subscribes to MPrint, check your "),a("a",{attrs:{href:e.publicPath+"/user",target:"_blank"}},[e._v("MPrint User page")]),e._v(" to see what you have access to.")]),a("li",[a("b",[e._v("I am either a UM alum, or I am a student, faculty member, or staff member from the Dearborn or Flint campus.")]),e._v(" You may not yet be in our print system. Visit the "),a("a",{attrs:{href:e.publicPath+"/user",target:"_blank"}},[e._v("MPrint User page")]),e._v(' to see if you have a print account yet. If not, you can add yourself - just click the "Enroll" button. After provisioning yourself, you will have access to use the public Campus Computing Sites printers, but these cost money to use. You can add funds to your account either in person or online at the '),a("a",{attrs:{href:"https://techshop.umich.edu/catalogsearch/result/index/?cat=135&q=mprint",target:"_blank"}},[e._v("UM Tech Shop")]),e._v(".")]),a("li",[a("b",[e._v("I am a guest or I am otherwise unaffiliated with the University.")]),e._v(" Guests may take advantage of our "),a("a",{attrs:{href:e.publicPath+"/guest",target:"_blank"}},[e._v("guest printing")]),e._v(" solution at the UM Library locations. Please follow the process laid out on the "),a("a",{attrs:{href:e.publicPath+"/guest",target:"_blank"}},[e._v("guest printing")]),e._v(" help page.")])])])]),a("tr",{staticClass:"help_title",class:e.expanded.includes("drive")?"expanded":"",on:{click:function(t){return e.toggleRow("drive")}}},[a("td",{staticClass:"center pad-8-0 large_text"},[e._v("Google Drive Integration"),a("i",{staticClass:"ml-2 fas",class:e.expanded.includes("drive")?"fa-caret-down":"fa-caret-right"})])]),a("tr",{staticClass:"help_content",class:e.expanded.includes("drive")?"shown":""},[a("td",{staticClass:"pad-8"},[e._m(3),a("p",[e._v("To connect Google Drive to your MPrint account, please do the following:")]),a("ol",{staticClass:"pb-1"},[a("li",[e._v("Visit your "),a("a",{attrs:{href:e.publicPath+"/settings",target:"_blank"}},[e._v("MPrint Settings page")]),e._v(" (login to UM's Weblogin service is required)")]),a("li",[e._v("Click on the Google Drive button")]),a("li",[e._v("If MPrint is not yet connected to Google Drive, you should be provided with a link to connect the service. Click it to initiate the integration (login to Google Drive is required)")]),a("li",[e._v("Google will first ask if you want to sign in to MPrint. Doing so will share your name, email address, and profile picture with MPrint. If you are OK with this, hit the Continue button")]),a("li",[e._v('Then, Google will tell you that MPrint wants to access your Google Account - specifically, MPrint is requesting to "See, edit, create, and delete all of your Google Drive files". Only by hitting "Allow" will MPrint have access to print Google Drive documents on your behalf')]),e._m(4)]),a("div",[e._v("If at any point you wish to revoke MPrint's access to your Google Drive, simply visit your "),a("a",{attrs:{href:e.publicPath+"/settings",target:"_blank"}},[e._v("MPrint Settings page")]),e._v(", click the Google Drive button, and hit the Disconnect from Service button to remove MPrint's access")]),a("div",[e._v("Please view the "),a("a",{attrs:{href:e.insecurePublicPath+"/web/privacy",target:"_blank"}},[e._v("MPrint Web App Privacy Policy")]),e._v(" to learn more about how MPrint uses your data.")])])]),a("tr",{staticClass:"help_title even_row",class:e.expanded.includes("dropbox")?"expanded":"",on:{click:function(t){return e.toggleRow("dropbox")}}},[a("td",{staticClass:"center pad-8-0 large_text"},[e._v("Dropbox Integration"),a("i",{staticClass:"ml-2 fas",class:e.expanded.includes("dropbox")?"fa-caret-down":"fa-caret-right"})])]),a("tr",{staticClass:"help_content",class:e.expanded.includes("dropbox")?"shown":""},[a("td",{staticClass:"pad-8"},[e._m(5),a("p",[e._v("To connect Dropbox to your MPrint account, please do the following:")]),a("ol",{staticClass:"pb-1"},[a("li",[e._v("Visit your "),a("a",{attrs:{href:e.publicPath+"/settings",target:"_blank"}},[e._v("MPrint Settings page")]),e._v(" (login to UM's Weblogin service is required)")]),a("li",[e._v("Click on the Dropbox button")]),a("li",[e._v("If MPrint is not yet connected to Dropbox, you should be provided with a link to connect the service. Click it to initiate the integration (login to Dropbox is required)")]),a("li",[e._v("Dropbox will first ask you to log in or sign up to Dropbox to link with MPrint. You can link an existing Dropbox account or sign up for a new account by clicking the corresponding button")]),a("li",[e._v('Then, Dropbox will tell you that MPrint wants to access your files and folders in Dropbox. Only by hitting "Allow" will MPrint have access to print Dropbox documents on your behalf')]),e._m(6)]),a("div",[e._v("If at any point you wish to revoke MPrint's access to your Dropbox, simply visit your "),a("a",{attrs:{href:e.publicPath+"/settings",target:"_blank"}},[e._v("MPrint Settings page")]),e._v(", click the Dropbox button, and hit the Disconnect from Service button to remove MPrint's access")]),a("div",[e._v("Please view the "),a("a",{attrs:{href:e.insecurePublicPath+"/web/privacy",target:"_blank"}},[e._v("MPrint Web App Privacy Policy")]),e._v(" to learn more about how MPrint uses your data.")])])])])])])])},D=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"box full_box"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("h1",[e._v("About MPrint")])])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[e._v("MPrint is the name of a suite of applications and services to facilitate printing on campus. We support printing for "),a("a",{attrs:{href:"http://its.umich.edu/computing/printing/mprint/campus-computing-sites",target:"_blank"}},[e._v("Campus Computing Sites")]),e._v(", "),a("a",{attrs:{href:"http://its.umich.edu/miworkspace",target:"_blank"}},[e._v("MiWorkspace")]),e._v(" customers, and "),a("a",{attrs:{href:"http://services.it.umich.edu/mprint",target:"_blank"}},[e._v("MPrint as a Service")]),e._v(" subscribers. You can learn more about some of these applications and services below:")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("li",[a("a",{attrs:{href:"https://teamdynamix.umich.edu/TDClient/30/Portal/KB/ArticleDet?ID=9611#follow-me",target:"_blank"}},[e._v("Follow Me Printing")]),e._v(", a virtual print queue that holds your documents for up to 24 hours until you are ready to release them")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[e._v("Google Drive is a cloud storage service that "),a("a",{attrs:{href:"https://its.umich.edu/communication/collaboration/google",target:"_blank"}},[e._v("all university Students, Faculty, Staff, and Sponsored Affiliates have access to use")]),e._v(". MPrint allows you to connect your Google Drive directly to the MPrint environment to allow you to print documents directly from Google Drive without having to download them to your smartphone or computer first!")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("li",[a("b",[e._v("Note:")]),e._v(" MPrint does not create, edit, or delete your Google Drive files with this access. MPrint only reads the file name and downloads the file for printing, when you request it")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[e._v("Dropbox is a cloud storage service that "),a("a",{attrs:{href:"https://its.umich.edu/communication/collaboration/dropbox",target:"_blank"}},[e._v("all university Students, Faculty, Staff, and Sponsored Affiliates have access to use")]),e._v(". MPrint allows you to connect your Dropbox directly to the MPrint environment to allow you to print documents directly from Dropbox without having to download them to your smartphone or computer first!")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("li",[a("b",[e._v("Note:")]),e._v(" MPrint does not create, edit, or delete your Dropbox files with this access. MPrint only reads the file name and downloads the file for printing, when you request it")])}],A={name:"about",data:function(){return{expanded:["about"],msg:null,insecurePublicPath:"http://".concat(window.location.origin.split("//")[1]),publicPath:window.location.origin}},methods:{toggleRow:function(e){this.expanded.includes(e)?this.expanded=this.expanded.filter((function(t){return t!==e})):this.expanded.push(e)}},mounted:function(){if(this.$route.params["section"]){var e=this.$route.params["section"];["about","access","drive","dropbox"].includes(e)&&(this.expanded=[e])}}},E=A,j=(a("8110"),Object(f["a"])(E,P,D,!1,null,"09f35591",null)),q=j.exports,M=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.msg,expression:"msg"}],attrs:{id:"message_container"}},[a("div",{staticClass:"message",attrs:{id:"message"}},[e._v(e._s(e.msg))])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.enableMask,expression:"enableMask"}],staticClass:"mask dim",attrs:{id:"mask"},on:{click:function(t){return e.closeOpenModal(!1)}}}),a("div",{attrs:{id:"content",role:"main"}},[a("div",{staticClass:"flex_row"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.popFilter,expression:"popFilter"}],staticClass:"box full_box",attrs:{id:"empty_filter_box"}}),a("div",{staticClass:"box full_box",class:e.popFilter?"popped_out":"",attrs:{id:"filter_container"}},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("h1",[e._v("MPrint Access Administration")]),a("div",[a("button",{staticClass:"ml-2 button button_large button_blue",on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.addRole()}}},[a("i",{staticClass:"fas fa-user mr-2"}),e._v("Add New Role")]),a("button",{staticClass:"ml-2 button button_large button_blue",on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.addKey()}}},[a("i",{staticClass:"fas fa-key mr-2"}),e._v("Add API Key")])])]),a("div",{staticClass:"flex_member end"},[a("div",[a("label",{attrs:{for:"filter_quick_search"}},[e._v("Quick Search:")]),a("v-select",{attrs:{id:"filter_quick_search",taggable:"",multiple:"",options:[],"dropdown-should-open":function(){return!1}},on:{input:function(t){return e.filter()}},model:{value:e.quickSearch,callback:function(t){e.quickSearch=t},expression:"quickSearch"}})],1),a("p",{staticClass:"pl-2"},[e._v("Join filters with: "),a("label",{attrs:{for:"join_and"}},[e._v("And")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.filterJoinWith,expression:"filterJoinWith"}],attrs:{type:"radio",id:"join_and",name:"filter_join_with",value:"and",checked:"checked"},domProps:{checked:e._q(e.filterJoinWith,"and")},on:{change:[function(t){e.filterJoinWith="and"},function(t){return e.filter()}]}}),e._v(" or "),a("label",{attrs:{for:"join_or"}},[e._v("Or")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.filterJoinWith,expression:"filterJoinWith"}],attrs:{type:"radio",id:"join_or",name:"filter_join_with",value:"or"},domProps:{checked:e._q(e.filterJoinWith,"or")},on:{change:[function(t){e.filterJoinWith="or"},function(t){return e.filter()}]}})])])]),e.roleData.isLoaded&&e.keyData.isLoaded?a("div",{staticClass:"flex_row center"},[a("div",{staticClass:"flex_member"},[a("p",[e._v("Showing "+e._s(e.visibleRoles.length+e.visibleKeys.length)+" "+e._s(e.visibleRoles.length+e.visibleKeys.length===1?"item":"items"))])])]):e._e()])]),e.roleData.isLoaded?e.roleData.isLoaded&&e.roleData.isError?[e._m(1)]:[e._m(2),a("div",{staticClass:"full_width full_box box"},[e.visibleRoles.length?[e.roleData.collapsed?[a("div",{staticClass:"medium_text center"},[a("a",{attrs:{href:"",title:"Expand MPrint roles box"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.expandRoles()}}},[e._v("Expand MPrint Roles Table "),a("i",{staticClass:"fas fa-plus"})])])]:[a("div",{staticClass:"full_width"},[a("span",{staticClass:"float_right mr-2"},[a("i",{staticClass:"fas fa-window-minimize bold minimzer",attrs:{title:"Collapse MPrint roles box"},on:{click:function(t){return e.collapseRoles()}}})])]),a("div",{staticClass:"clearfix"}),a("table",{staticClass:"full_width"},[e._m(3),e._l(e.visibleRoles,(function(t,n){return[a("tr",{key:"role_"+n,staticClass:"role_row",class:n%2===0?"even_row":""},[a("td",{staticClass:"pad-8"},[e._v(e._s(t.name))]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.type))]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.role))]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.notes))]),a("td",{staticClass:"pad-8"},[a("a",{attrs:{href:""},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.editRole(n)}}},[e._v("Edit Role")]),e._v(" or "),a("a",{staticClass:"red",attrs:{href:""},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.revokeRole(n)}}},[e._v("Revoke Role")])])])]}))],2)]]:[a("div",{staticClass:"medium_text center"},[e._v("There is no MPrint role information to show!")])]],2)]:[e._m(0)],a("hr",{staticClass:"main_divider"}),e.keyData.isLoaded?e.keyData.isLoaded&&e.keyData.isError?[e._m(5)]:[e._m(6),a("div",{staticClass:"flex_row"},[a("div",{staticClass:"full_width full_box box"},[e.visibleKeys.length?[e.keyData.collapsed?[a("div",{staticClass:"medium_text center"},[a("a",{attrs:{href:"",title:"Expand MPrint API Keys box"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.expandKeys()}}},[e._v("Expand MPrint API Keys Table "),a("i",{staticClass:"fas fa-plus"})])])]:[a("div",{staticClass:"full_width"},[a("span",{staticClass:"float_right mr-2"},[a("i",{staticClass:"fas fa-window-minimize bold minimzer",attrs:{title:"Collapse MPrint API Keys box"},on:{click:function(t){return e.collapseKeys()}}})])]),a("div",{staticClass:"clearfix"}),a("table",{staticClass:"full_width"},[e._m(7),e._l(e.visibleKeys,(function(t,n){return[a("tr",{key:"key_"+n,staticClass:"key_row",class:[n%2===0?"even_row":"",+t.enabled?"enabled_row":"disabled_row"],attrs:{title:+t.enabled?"Key is enabled":"Key is disabled"}},[a("td",{staticClass:"pad-8"},[e._v(e._s(t.api_key))]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.endpoint))]),t.user?a("td",{staticClass:"pad-8"},[e._v(e._s(t.user))]):a("td",{staticClass:"pad-8"},[a("i",[e._v("NULL")])]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.role))]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.description))]),+t.enabled?a("td",{staticClass:"pad-8"},[a("a",{staticClass:"red",attrs:{href:""},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.disableKey(n)}}},[e._v("Disable Key")])]):a("td",{staticClass:"pad-8"},[a("a",{attrs:{href:""},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.enableKey(n)}}},[e._v("Enable Key")]),e._v(" or "),a("a",{staticClass:"red",attrs:{href:""},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.deleteKey(n)}}},[e._v("Delete Key")])])])]}))],2)]]:[a("div",{staticClass:"medium_text center"},[e._v("There are no API Keys to show!")])]],2)])]:[e._m(4)]],2),null!==e.modifyRoleIndex?a("div",{staticClass:"modal",attrs:{id:"modify_role_modal"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeOpenModal(!1)}}},[e._m(8),a("div",{staticClass:"modal_content_no_overflow"},[a("h2",[e._v("Modifying MPrint Role for: "),a("b",[e._v(e._s(e.visibleRoles[e.modifyRoleIndex].name))])]),a("p",{staticClass:"pt-12"},[a("label",{attrs:{for:"modified_role"}},[e._v("Role for this "+e._s("umod"===e.visibleRoles[e.modifyRoleIndex].type?"group":"user")+": ")]),a("v-select",{attrs:{id:"modified_role",options:["staff","manage","admin"]},model:{value:e.modifiedRole,callback:function(t){e.modifiedRole=t},expression:"modifiedRole"}})],1)]),a("div",{staticClass:"modal_footer"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("div",{staticClass:"button",on:{click:function(t){return e.closeOpenModal(!1)}}},[e._v("Cancel")])]),a("div",{staticClass:"flex_member end"},[a("div",{staticClass:"button button_blue",class:e.disableSubmit?"disabled":"",on:{click:function(t){return e.closeOpenModal(!0)}}},[a("i",{staticClass:"fas fa-paper-plane mr-2"}),e._v("Modify Role")])])])])]):e._e(),null!==e.newRole?a("div",{staticClass:"modal",attrs:{id:"new_role_modal"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeOpenModal(!1)}}},[e._m(9),a("div",{staticClass:"modal_content"},[a("h2",[e._v("Add a new role")]),a("p",{staticClass:"pt-12"},[a("label",{attrs:{for:"new_role_name"}},[e._v("Entity who is gaining elevated access: ")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.newRoleName,expression:"newRoleName"}],attrs:{type:"text",id:"new_role_name"},domProps:{value:e.newRoleName},on:{input:function(t){t.target.composing||(e.newRoleName=t.target.value)}}})]),a("p",{staticClass:"pt-12"},[a("label",{attrs:{for:"new_role"}},[e._v("Role: ")]),a("v-select",{attrs:{id:"new_role",options:["staff","manage","admin"]},model:{value:e.newRole,callback:function(t){e.newRole=t},expression:"newRole"}})],1),a("p",{staticClass:"pt-12"},[a("label",{attrs:{for:"new_role_type"}},[e._v("Entity type: ")]),a("v-select",{attrs:{id:"new_role_type",options:["umod","uniqname"]},model:{value:e.newRoleType,callback:function(t){e.newRoleType=t},expression:"newRoleType"}})],1),a("p",{staticClass:"pt-12"},[a("label",{attrs:{for:"new_role_notes"}},[e._v("Notes about this role: ")]),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.newRoleNotes,expression:"newRoleNotes"}],attrs:{id:"new_role_notes"},domProps:{value:e.newRoleNotes},on:{input:function(t){t.target.composing||(e.newRoleNotes=t.target.value)}}})])]),a("div",{staticClass:"modal_footer"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("div",{staticClass:"button",on:{click:function(t){return e.closeOpenModal(!1)}}},[e._v("Cancel")])]),a("div",{staticClass:"flex_member end"},[a("div",{staticClass:"button button_blue",class:e.disableSubmit?"disabled":"",on:{click:function(t){return e.closeOpenModal(!0)}}},[a("i",{staticClass:"fas fa-user mr-2"}),e._v("Submit New Role")])])])])]):e._e(),null!==e.newKeyRole?a("div",{staticClass:"modal",attrs:{id:"new_key_modal"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeOpenModal(!1)}}},[e._m(10),a("div",{staticClass:"modal_content"},[a("h2",[e._v("Add a new API Key")]),a("p",{staticClass:"pt-12"},[a("label",{attrs:{for:"new_key_endpoint"}},[e._v("API Endpoint that is receiving a new key: ")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.newKeyEndpoint,expression:"newKeyEndpoint"}],attrs:{type:"text",id:"new_key_endpoint"},domProps:{value:e.newKeyEndpoint},on:{input:function(t){t.target.composing||(e.newKeyEndpoint=t.target.value)}}})]),a("p",{staticClass:"pt-12"},[a("label",{attrs:{for:"new_key_role"}},[e._v("Role: ")]),a("v-select",{attrs:{id:"new_key_role",options:["staff","manage","admin"]},model:{value:e.newKeyRole,callback:function(t){e.newKeyRole=t},expression:"newKeyRole"}})],1),a("p",{staticClass:"pt-12"},[a("label",{attrs:{for:"new_key_user"}},[e._v("User that this key will operate as: ")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.newKeyUser,expression:"newKeyUser"}],attrs:{type:"text",id:"new_key_user"},domProps:{value:e.newKeyUser},on:{input:function(t){t.target.composing||(e.newKeyUser=t.target.value)}}})]),a("p",{staticClass:"pt-12"},[a("label",{attrs:{for:"new_key_description"}},[e._v("Description of this key (its purpose): ")]),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.newKeyDescription,expression:"newKeyDescription"}],attrs:{id:"new_key_description"},domProps:{value:e.newKeyDescription},on:{input:function(t){t.target.composing||(e.newKeyDescription=t.target.value)}}})])]),a("div",{staticClass:"modal_footer"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("div",{staticClass:"button",on:{click:function(t){return e.closeOpenModal(!1)}}},[e._v("Cancel")])]),a("div",{staticClass:"flex_member end"},[a("div",{staticClass:"button button_blue",class:e.disableSubmit?"disabled":"",on:{click:function(t){return e.closeOpenModal(!0)}}},[a("i",{staticClass:"fas fa-key mr-2"}),e._v("Add New API Key")])])])])]):e._e()])},S=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member full_width medium_text center"},[e._v("Loading MPrint Roles... "),n("img",{attrs:{src:a("d9b6"),alt:"loading MPrint roles"}})])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member full_width medium_text center"},[e._v("Failed to load MPrint Role data! Please refresh and try again.")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member full_width"},[a("h2",[e._v("MPrint Roles")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"bold pad-8"},[e._v("Name")]),a("td",{staticClass:"bold pad-8"},[e._v("Type")]),a("td",{staticClass:"bold pad-8"},[e._v("Role")]),a("td",{staticClass:"bold pad-8"},[e._v("Notes")]),a("td",{staticClass:"pad-8"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member full_width medium_text center"},[e._v("Loading MPrint API Keys... "),n("img",{attrs:{src:a("d9b6"),alt:"loading api keys"}})])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member full_width medium_text center"},[e._v("Failed to load MPrint API Keys! Please refresh and try again.")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member full_width"},[a("h2",[e._v("MPrint API Keys")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"bold pad-8"},[e._v("API Key")]),a("td",{staticClass:"bold pad-8"},[e._v("Endpoint")]),a("td",{staticClass:"bold pad-8"},[e._v("User")]),a("td",{staticClass:"bold pad-8"},[e._v("Role")]),a("td",{staticClass:"bold pad-8"},[e._v("Description")]),a("td",{staticClass:"bold pad-8"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Modify MPrint Role")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("New MPrint Role")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("New MPrint API Key")])])}],L=(a("d3b7"),a("ddb0"),a("07ac"),{name:"access",data:function(){return{disableSubmit:!1,enableMask:!1,filterJoinWith:"and",keyData:{collapsed:!1,isError:!1,isLoaded:!1,keys:[]},modifyRoleIndex:null,modifiedRole:null,msg:null,newKeyEndpoint:null,newKeyRole:null,newKeyUser:null,newKeyDescription:null,newRole:null,newRoleName:null,newRoleNotes:null,newRoleType:null,popFilter:!1,quickSearch:[],roleData:{collapsed:!1,isError:!1,isLoaded:!1,roles:[]},visibleKeys:[],visibleRoles:[]}},props:{user:{type:Object,default:function(){return this.$store.getters.getUser}}},methods:{addKey:function(){this.newKeyRole="staff",this.enableMask=!0},addRole:function(){this.newRole="staff",this.enableMask=!0},closeOpenModal:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!e||!t.disableSubmit){a.next=2;break}return a.abrupt("return",!1);case 2:e?(t.disableSubmit=!0,n=t,null!==t.modifyRoleIndex?(n.msg="Modifying role...",p.methods.put("api/roles/".concat(n.visibleRoles[n.modifyRoleIndex].id),{role:n.modifiedRole}).then((function(e){if(+e.data.result.count){n.msg="Role modified! Please delete the existing cached role in the Auth Cache for ".concat(n.visibleRoles[n.modifyRoleIndex].name,"!"),n.openAuthCache(n.visibleRoles[n.modifyRoleIndex].name);var t=null;for(var a in n.roleData.roles)n.roleData.roles[+a].id===n.visibleRoles[n.modifyRoleIndex].id&&(t=+a);null!==t&&n.$set(n.roleData.roles[+t],"role",n.modifiedRole),n._filterRoles()}else n.msg="Something went wrong... please refresh and try again",console.log(e.data.result)})).catch((function(e){console.log(e),n.msg="An error occurred! Please refresh and try again."})).finally((function(){window.setTimeout((function(){n.msg=null}),4e3),n.resetModals()}))):null!==t.newRole?(n.msg="Adding new role...",p.methods.post("api/roles",{role:n.newRole,name:n.newRoleName,notes:n.newRoleNotes,type:n.newRoleType}).then((function(e){+e.data.result.count?(n.msg="Role added! Please delete the existing cached role in the Auth Cache for ".concat(n.newRoleName,"!"),n.openAuthCache(n.newRoleName),n.roleData.roles.push({id:e.data.result.result,name:n.newRoleName,role:n.newRole,type:n.newRoleType,notes:n.newRoleNotes}),n._filterRoles()):(n.msg="Something went wrong... please refresh and try again",console.log(e.data.result))})).catch((function(e){console.log(e),n.msg="An error occurred! Please refresh and try again."})).finally((function(){window.setTimeout((function(){n.msg=null}),4e3),n.resetModals()}))):null!==t.newKeyRole&&(n.msg="Adding new API Key...",s={role:n.newKeyRole,endpoint:n.newKeyEndpoint,description:n.newKeyDescription},n.newKeyUser&&(s.user=n.newKeyUser),p.methods.post("api/keys",s).then((function(e){+e.data.result.count?(n.msg="API Key added!",n.keyData.keys.push({api_key:e.data.result.result,endpoint:n.newKeyEndpoint,role:n.newKeyRole,description:n.newKeyDescription,user:n.newKeyUser?n.newKeyUser:null,enabled:1}),n._filterKeys()):(n.msg="Something went wrong... please refresh and try again",console.log(e.data.result))})).catch((function(e){console.log(e),n.msg="An error occurred! Please refresh and try again."})).finally((function(){window.setTimeout((function(){n.msg=null}),4e3),n.resetModals()})))):t.resetModals();case 3:case"end":return a.stop()}}),a)})))()},collapseKeys:function(){this.keyData.collapsed=!0},collapseRoles:function(){this.roleData.collapsed=!0},deleteKey:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:n=window.confirm("Are you sure you wish to delete API Key ".concat(t.visibleKeys[e].api_key,"?")),n&&(s=t,s.msg="Deleting API Key...",p.methods.delete("api/keys/".concat(s.visibleKeys[e].api_key)).then((function(t){if(+t.data.result.count){s.msg="Successfully deleted!";var a=null;for(var n in s.keyData.keys)s.keyData.keys[+n].api_key===s.visibleKeys[e].api_key&&(a=+n);null!==a&&s.$delete(s.keyData.keys,+a),s._filterKeys()}else console.log(t.data.result),s.msg="Something went wrong... please refresh and try again."})).catch((function(e){console.log(e),s.msg="An error occurred! Please refresh and try again."})).finally((function(){window.setTimeout((function(){s.msg=null}),4e3)})));case 2:case"end":return a.stop()}}),a)})))()},disableKey:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:n=t,n.msg="Disabling API Key...",p.methods.put("api/keys/".concat(n.visibleKeys[e].api_key),{enabled:0}).then((function(t){if(+t.data.result.count){n.msg="Successfully disabled key -- Please make sure you delete the cache entry for this key in the Auth Cache!",n.openAuthCache(n.visibleKeys[e].api_key);var a=null;for(var s in n.keyData.keys)n.keyData.keys[+s].api_key===n.visibleKeys[e].api_key&&(a=+s);null!==a&&n.$set(n.keyData.keys[+a],"enabled",0),n._filterKeys()}else console.log(t.data.result),n.msg="Something went wrong... please refresh and try again."})).catch((function(e){console.log(e),n.msg="An error occurred! Please refresh and try again."})).finally((function(){window.setTimeout((function(){n.msg=null}),4e3)}));case 3:case"end":return a.stop()}}),a)})))()},editRole:function(e){this.modifyRoleIndex=e,this.modifiedRole=this.visibleRoles[e].role,this.enableMask=!0},enableKey:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:n=t,n.msg="Enabling API Key...",p.methods.put("api/keys/".concat(n.visibleKeys[e].api_key),{enabled:1}).then((function(t){if(+t.data.result.count){n.msg="Successfully enabled key!";var a=null;for(var s in n.keyData.keys)n.keyData.keys[+s].api_key===n.visibleKeys[e].api_key&&(a=+s);null!==a&&n.$set(n.keyData.keys[+a],"enabled",1),n._filterKeys()}else console.log(t.data.result),n.msg="Something went wrong... please refresh and try again."})).catch((function(e){console.log(e),n.msg="An error occurred! Please refresh and try again."})).finally((function(){window.setTimeout((function(){n.msg=null}),4e3)}));case 3:case"end":return a.stop()}}),a)})))()},expandKeys:function(){this.keyData.collapsed=!1},expandRoles:function(){this.roleData.collapsed=!1},filter:function(){this.msg="Filtering Access Items...",this._filterKeys(),this._filterRoles(),this.msg=""},getKeys:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,p.methods.get("api/keys").then((function(e){a.keyData.keys=e.data.result.result})).catch((function(e){console.log(e),a.msg="An error occurred! Please refresh and try again.",a.keyData.isError=!0})).finally((function(){a.keyData.isLoaded=!0,a._filterKeys(),window.setTimeout((function(){a.msg=null}),4e3)}));case 2:case"end":return t.stop()}}),t)})))()},getRoles:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,p.methods.get("api/roles").then((function(e){a.roleData.roles=e.data.result.result})).catch((function(e){console.log(e),a.msg="An error occurred! Please refresh and try again.",a.roleData.isError=!0})).finally((function(){a.roleData.isLoaded=!0,a._filterRoles(),window.setTimeout((function(){a.msg=null}),4e3)}));case 2:case"end":return t.stop()}}),t)})))()},openAuthCache:function(e){var t=document.createElement("a");t.href="/cache/auth#search=".concat(e),t.target="_blank",t.click(),t.remove()},resetModals:function(){this.enableMask=!1,this.modifiedRole=null,this.modifyRoleIndex=null,this.newKeyDescription=null,this.newKeyEndpoint=null,this.newKeyRole=null,this.newKeyUser=null,this.newRole=null,this.newRoleName=null,this.newRoleNotes=null,this.newRoleType=null,this.disableSubmit=!1},revokeRole:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:n=t,n.msg="Revoking role...",p.methods.delete("api/roles/".concat(n.visibleRoles[e].id)).then((function(t){if(+t.data.result.count){n.msg="Role revoked! Please delete the existing cached role in the Auth Cache for ".concat(n.visibleRoles[e].name,"!"),n.openAuthCache(n.visibleRoles[e].name);var a=null;for(var s in n.roleData.roles)n.roleData.roles[+s].id===n.visibleRoles[e].id&&(a=+s);null!==a&&n.$delete(n.roleData.roles,+a),n._filterRoles()}else n.msg="Something went wrong... please refresh and try again",console.log(t.data.result)})).catch((function(e){console.log(e),n.msg="An error occurred! Please refresh and try again."})).finally((function(){window.setTimeout((function(){n.msg=null}),4e3)}));case 3:case"end":return a.stop()}}),a)})))()},scrollListener:function(){this.popFilter=window.scrollY>100},_filterKeys:function(){var e=this;"and"!==this.filterJoinWith&&this.quickSearch&&this.quickSearch.length?this.visibleKeys=[]:this.visibleKeys=this.keyData.keys;var t,a=Object(i["a"])(this.quickSearch);try{var n=function(){var a=t.value;"and"===e.filterJoinWith?e.visibleKeys=e.visibleKeys.filter((function(e){return JSON.stringify(Object.values(e)).toLowerCase().indexOf(a.toLowerCase())>-1})):e.visibleKeys=e.visibleKeys.concat(e.keyData.keys.filter((function(e){return JSON.stringify(Object.values(e)).toLowerCase().indexOf(a.toLowerCase())>-1})))};for(a.s();!(t=a.n()).done;)n()}catch(s){a.e(s)}finally{a.f()}},_filterRoles:function(){var e=this;"and"!==this.filterJoinWith&&this.quickSearch&&this.quickSearch.length?this.visibleRoles=[]:this.visibleRoles=this.roleData.roles;var t,a=Object(i["a"])(this.quickSearch);try{var n=function(){var a=t.value;"and"===e.filterJoinWith?e.visibleRoles=e.visibleRoles.filter((function(e){return JSON.stringify(Object.values(e)).toLowerCase().indexOf(a.toLowerCase())>-1})):e.visibleRoles=e.visibleRoles.concat(e.roleData.roles.filter((function(e){return JSON.stringify(Object.values(e)).toLowerCase().indexOf(a.toLowerCase())>-1})))};for(a.s();!(t=a.n()).done;)n()}catch(s){a.e(s)}finally{a.f()}}},created:function(){this.user.uniqname&&(this.getRoles(),this.getKeys()),window.addEventListener("scroll",this.scrollListener)},watch:{user:function(){this.getRoles(),this.getKeys()}},destroyed:function(){window.removeEventListener("scroll",this.scrollListener)}}),O=L,R=(a("461b"),a("4bd6"),Object(f["a"])(O,M,S,!1,null,"fd1f24d0",null)),T=R.exports,N=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.msg.length,expression:"msg.length"}],attrs:{id:"message_container"}},[e._l(e.msg,(function(t,a){return[n("div",{key:"message_"+a,staticClass:"message",attrs:{id:"message_"+a},domProps:{innerHTML:e._s(t)}})]}))],2),n("div",{directives:[{name:"show",rawName:"v-show",value:e.enableMask,expression:"enableMask"}],staticClass:"mask dim",attrs:{id:"mask"},on:{click:function(t){return e.closeOpenModal(!1)}}}),n("div",{attrs:{id:"content",role:"main"}},[n("div",{staticClass:"flex_row"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.popFilter,expression:"popFilter"}],staticClass:"box full_box",attrs:{id:"empty_filter_box"}}),n("div",{staticClass:"box full_box",class:e.popFilter?"popped_out":"",attrs:{id:"filter_container"}},[n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member"},[n("h1",[e._v("MPrint Accounts")]),n("div",[n("button",{staticClass:"ml-2 button button_large button_blue",on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.showCreateModal()}}},[n("i",{staticClass:"fas fa-plus mr-2"}),e._v("Create New Account")])])]),n("div",{staticClass:"flex_member end flex_row_fit"},[n("div",{staticClass:"flex_member"},[n("div",[n("label",{attrs:{for:"filter_account_status"}},[e._v("Account Status:")]),n("v-select",{attrs:{id:"filter_account_status",taggable:"",options:["Active","Approved","Closed","Denied","Expired"]},on:{input:function(t){return e.filterAccounts()}},model:{value:e.filterStatus,callback:function(t){e.filterStatus=t},expression:"filterStatus"}})],1)]),n("div",{staticClass:"flex_member"},[n("div",[n("label",{attrs:{for:"filter_account_type"}},[e._v("Account Type:")]),n("v-select",{attrs:{id:"filter_account_type",taggable:"",options:[{displayValue:"Quota",value:"personal"},{displayValue:"Unrestricted",value:"shared"}],label:"displayValue"},on:{input:function(t){return e.filterAccounts()}},model:{value:e.filterAcctType,callback:function(t){e.filterAcctType=t},expression:"filterAcctType"}})],1)]),n("div",{staticClass:"flex_member end"},[n("div",[n("label",{attrs:{for:"filter_quick_search"}},[e._v("Quick Search:")]),n("v-select",{attrs:{id:"filter_quick_search",taggable:"",multiple:"",options:[],"dropdown-should-open":function(){return!1}},on:{input:function(t){return e.filterAccounts()}},model:{value:e.quick_search,callback:function(t){e.quick_search=t},expression:"quick_search"}})],1),n("p",{staticClass:"pl-2"},[e._v("Join filters with: "),n("label",{attrs:{for:"join_and"}},[e._v("And")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.filterJoinWith,expression:"filterJoinWith",modifiers:{lazy:!0}}],attrs:{type:"radio",id:"join_and",name:"filter_join_with",value:"and",checked:"checked"},domProps:{checked:e._q(e.filterJoinWith,"and")},on:{change:[function(t){e.filterJoinWith="and"},function(t){return e.filterAccounts()}]}}),e._v(" or "),n("label",{attrs:{for:"join_or"}},[e._v("Or")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.filterJoinWith,expression:"filterJoinWith",modifiers:{lazy:!0}}],attrs:{type:"radio",id:"join_or",name:"filter_join_with",value:"or"},domProps:{checked:e._q(e.filterJoinWith,"or")},on:{change:[function(t){e.filterJoinWith="or"},function(t){return e.filterAccounts()}]}})])])])]),e.accounts.isLoaded&&e.adminAccounts.isLoaded?n("div",{staticClass:"flex_row center"},[n("div",{staticClass:"flex_member"},[n("p",[e._v("Showing "+e._s(e.visibleAccounts.availableAccounts.length+e.visibleAccounts.adminAccounts.length)+" accounts")])])]):e._e()])]),n("div",{staticClass:"full_width"},[e.accounts.isLoaded||e.adminAccounts.isLoaded?e._e():n("div",{staticClass:"full_width"},[e._v("Loading Accounts... "),n("img",{attrs:{src:a("d9b6"),alt:"loading"}})]),e.accounts.isLoaded?n("div",{staticClass:"flex_row"},[n("h2",{staticClass:"larger_h2 flex_member full_width"},[e._v("Accounts Available to Me")]),e.accounts.isError?[n("div",{staticClass:"flex_member full_width medium_text center"},[e._v("An error occurred! Failed to load your accounts.")])]:e.accounts.isError||e.visibleAccounts.availableAccounts.length?e._l(e.visibleAccounts.availableAccounts,(function(t,a){return n("div",{key:"account_"+a,staticClass:"account_box box"},[n("h3",{staticClass:"account_name"},[e._v(e._s(t["account_name"]))]),n("div",[e._v("Account Type: "+e._s("personal"===t["account_type"]?"Quota":"Unrestricted"))]),"personal"===t["account_type"]?n("div",[e._v("Quota: $"+e._s(parseFloat(""+t["account_quota"]).toFixed(2)))]):e._e(),n("div",[e._v("Available To: "+e._s(t["account_"+t["account_entity"]]))]),n("div",[e._v("Available During: "+e._s(t["account_term"])+e._s(t["account_expiration_term"]?" - "+t["account_expiration_term"]:""))]),"personal"===t["account_type"]&&"active"===t["current_status"].toLowerCase()?[n("div",[e._v("Next Quota Refresh: "+e._s(e._nextQuotaRefresh(t)))])]:e._e(),n("div",[e._v("Administered By: "+e._s(t["admin_"+t["admin_entity"]]))]),n("div",[e._v("Current Status: "),n("span",{staticClass:"capitalize",class:"status_"+t["current_status"]},[e._v(e._s(t["current_status"]))])]),"active"===t["current_status"].toLowerCase()?[n("div",[e._v("Active Since: "+e._s(e._format(t["active_on"],!0)))])]:["approved","pending"].includes(t["current_status"].toLowerCase())?[n("div",[e._v("Activates On: "+e._s(e._format(e.terms.terms.filter((function(e){return e.id===t["account_term"]}))[0].start_date,!1)))])]:["closed","expired"].includes(t["current_status"].toLowerCase())?[n("div",[e._v("Closed On: "+e._s(e._format(t["closed_on"],!0)))])]:e._e()],2)})):[n("div",{staticClass:"flex_member full_width medium_text center"},[e._v("There are no accounts to show")])]],2):e._e(),n("hr",{staticClass:"main_divider",staticStyle:{"margin-left":"15%"}}),e.adminAccounts.isLoaded?n("div",{staticClass:"flex_row"},[n("h2",{staticClass:"larger_h2 flex_member full_width"},[e._v("Accounts I Administer")]),e.adminAccounts.isError?[n("div",{staticClass:"flex_member full_width medium_text center"},[e._v("An error occurred! Failed to load the accounts you administer.")])]:e.adminAccounts.isError||e.visibleAccounts.adminAccounts.length?e._l(e.visibleAccounts.adminAccounts,(function(t,a){return n("div",{key:"account_"+a,staticClass:"account_box box",class:e.focused==="account_"+t.id?"focused":"",attrs:{id:"account_"+t.id}},[n("h3",{staticClass:"account_name float_left"},[e._v(e._s(t["account_name"]))]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.disableActionsForAccount!==a,expression:"disableActionsForAccount !== index"}],staticClass:"float_right"},[["active","approved","denied","pending"].includes(t["current_status"])?n("i",{staticClass:"account_action fas fa-edit mr-2",attrs:{title:"Edit Account"},on:{click:function(t){return e.showEditModal(a,!1)}}}):e._e(),["approved","pending"].includes(t["current_status"])?n("i",{staticClass:"account_action fas fa-ban mr-2",attrs:{title:"Deny/Cancel Account"},on:{click:function(t){return e.denyAccount(a)}}}):e._e(),"active"===t["current_status"]?n("i",{staticClass:"account_action fas fa-times mr-2",attrs:{title:"Close Account"},on:{click:function(t){return e.closeAccount(a)}}}):e._e(),"admin"===e.user.role&&["denied","pending"].includes(t["current_status"])?n("i",{staticClass:"account_action fas fa-check mr-2",attrs:{title:"Approve Account"},on:{click:function(t){return e.approveAccount(a)}}}):e._e()]),n("div",{staticClass:"clearfix"}),n("div",[e._v("Account Type: "+e._s("personal"===t["account_type"]?"Quota":"Unrestricted"))]),"personal"===t["account_type"]?n("div",[e._v("Quota: $"+e._s(parseFloat(""+t["account_quota"]).toFixed(2)))]):e._e(),n("div",[e._v("Available To: "+e._s(t["account_"+t["account_entity"]]))]),n("div",[e._v("Assigned Shortcode: "+e._s(t["account_shortcode"]))]),n("div",[e._v("Available During: "+e._s(t["account_term"])+e._s(t["account_expiration_term"]?" - "+t["account_expiration_term"]:""))]),"personal"===t["account_type"]&&"active"===t["current_status"].toLowerCase()?[n("div",[e._v("Next Quota Refresh: "+e._s(e._nextQuotaRefresh(t)))])]:e._e(),"personal"===t["account_type"]&&+t["is_active"]&&"admin"===e.user.role?n("div",[e._v("PaperCut Account Slot: "),n("i",[e._v(e._s(t["pc_type"]?t["pc_type"]:t["account_name"].toLowerCase().startsWith("basic computing package")?"USER-001":"NULL"))])]):e._e(),n("div",[e._v("Current Status: "),n("span",{staticClass:"capitalize",class:"status_"+t["current_status"]},[e._v(e._s(t["current_status"]))])]),"active"===t["current_status"].toLowerCase()?[n("div",[e._v("Active Since: "+e._s(e._format(t["active_on"],!0)))])]:["approved","pending"].includes(t["current_status"].toLowerCase())?[n("div",[e._v("Activates On: "+e._s(e._format(e.terms.terms.filter((function(e){return e.id===t["account_term"]}))[0].start_date,!1)))])]:["closed","expired"].includes(t["current_status"].toLowerCase())?[n("div",[e._v("Closed On: "+e._s(e._format(t["closed_on"],!0)))])]:e._e()],2)})):[n("div",{staticClass:"flex_member full_width medium_text center"},[e._v("There are no accounts to show")])]],2):e._e()])]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showCreateAccount,expression:"showCreateAccount"}],staticClass:"modal",attrs:{id:"account_create_modal"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeOpenModal(!1)}}},[e._m(0),n("div",{staticClass:"modal_content"},[n("div",{staticClass:"pad-8"},[n("table",{staticClass:"full_width"},[n("tbody",{staticClass:"lh-2"},[n("tr",{staticClass:"dashed_bottom"},[n("td",{staticClass:"small_help_text pb-1",attrs:{colspan:"2"}},[n("b",[e._v("Note:")]),e._v(" You no longer need to create an account here to use a Shortcode for poster printing! Instead, when filling out the "),n("a",{attrs:{href:"https://"+e.papercutUrl+"/job-ticketing/customer/rooms/1",target:"_blank"}},[e._v("Poster printing order form")]),e._v(", simply specify the Shortcode you wish to use in the Poster Attributes section.")])]),e._m(1),n("tr",[n("td",{staticClass:"label_text"},[e._v("Account Entity:")]),n("td",[n("label",{attrs:{for:"create_account_entity_group"}},[e._v("MCommunity Group")]),n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.createAccount.account_entity,expression:"createAccount.account_entity",modifiers:{lazy:!0}}],staticClass:"ml-2",attrs:{type:"radio",id:"create_account_entity_group",value:"group"},domProps:{checked:e._q(e.createAccount.account_entity,"group")},on:{change:function(t){return e.$set(e.createAccount,"account_entity","group")}}}),n("br"),n("label",{attrs:{for:"create_account_entity_user"}},[e._v("User")]),n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.createAccount.account_entity,expression:"createAccount.account_entity",modifiers:{lazy:!0}}],staticClass:"ml-2",attrs:{type:"radio",id:"create_account_entity_user",value:"user"},domProps:{checked:e._q(e.createAccount.account_entity,"user")},on:{change:function(t){return e.$set(e.createAccount,"account_entity","user")}}})])]),Object.keys(e.submitError).includes("account_entity")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2",id:"create_account_entity_error"}},[e._v(e._s(e.submitError.account_entity))])]):e._e(),"group"===e.createAccount.account_entity?[e._m(2),n("tr",[e._m(3),n("td",[n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.createAccount.account_group,expression:"createAccount.account_group",modifiers:{lazy:!0}}],attrs:{type:"text",id:"create_account_group"},domProps:{value:e.createAccount.account_group},on:{blur:function(){return e.createAccount.account_group=e.createAccount.account_group.trimStart().trimEnd()},change:function(t){return e.$set(e.createAccount,"account_group",t.target.value)}}})])]),Object.keys(e.submitError).includes("account_group")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2",id:"create_account_group_error"}},[e._v(e._s(e.submitError.account_group))])]):e._e()]:[e._m(4),n("tr",[e._m(5),n("td",[n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.createAccount.account_user,expression:"createAccount.account_user",modifiers:{lazy:!0}}],attrs:{type:"text",id:"create_account_user"},domProps:{value:e.createAccount.account_user},on:{blur:function(){return e.createAccount.account_user=e.createAccount.account_user.trimStart().trimEnd()},change:function(t){return e.$set(e.createAccount,"account_user",t.target.value)}}})])]),Object.keys(e.submitError).includes("account_user")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2",id:"create_account_user_error"}},[e._v(e._s(e.submitError.account_user))])]):e._e()],e._m(6),n("tr",[n("td",{staticClass:"small_help_text",attrs:{colspan:"2"}},[e._v("A "),n("i",[e._v("quota account")]),e._v(" will provision a specified dollar amount of funds to the "+e._s(e.createAccount.account_entity)+" you have chosen")])]),n("tr",[n("td",{staticClass:"small_help_text",attrs:{colspan:"2"}},[e._v("An "),n("i",[e._v("unrestricted account")]),e._v(" has no dollar limit attached to it, but the "+e._s(e.createAccount.account_entity)+" you have chosen will need to select this account when printing")])]),n("tr",[n("td",{staticClass:"label_text"},[e._v("Account Type:")]),n("td",[n("label",{attrs:{for:"create_account_type_quota"}},[e._v("Quota Account")]),n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.createAccount.account_type,expression:"createAccount.account_type",modifiers:{lazy:!0}}],staticClass:"ml-2",attrs:{type:"radio",id:"create_account_type_quota",value:"personal"},domProps:{checked:e._q(e.createAccount.account_type,"personal")},on:{change:function(t){return e.$set(e.createAccount,"account_type","personal")}}}),n("br"),n("label",{attrs:{for:"create_account_type_shared"}},[e._v("Unrestricted Account")]),n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.createAccount.account_type,expression:"createAccount.account_type",modifiers:{lazy:!0}}],staticClass:"ml-2",attrs:{type:"radio",id:"create_account_type_shared",value:"shared"},domProps:{checked:e._q(e.createAccount.account_type,"shared")},on:{change:function(t){return e.$set(e.createAccount,"account_type","shared")}}})])]),Object.keys(e.submitError).includes("account_type")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2",id:"create_account_type_error"}},[e._v(e._s(e.submitError.account_type))])]):e._e(),e._m(7),n("tr",[e._m(8),n("td",[n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.createAccount.account_shortcode,expression:"createAccount.account_shortcode",modifiers:{lazy:!0}}],attrs:{type:"text",id:"create_account_shortcode"},domProps:{value:e.createAccount.account_shortcode},on:{blur:function(){return e.createAccount.account_shortcode=e.createAccount.account_shortcode.trimStart().trimEnd()},change:function(t){return e.$set(e.createAccount,"account_shortcode",t.target.value)}}})])]),Object.keys(e.submitError).includes("account_shortcode")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2",id:"create_account_shortcode_error"}},[e._v(e._s(e.submitError.account_shortcode))])]):e._e(),"shared"===e.createAccount.account_type?[e._m(9),n("tr",[e._m(10),n("td",[n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.createAccount.account_name,expression:"createAccount.account_name",modifiers:{lazy:!0}}],attrs:{type:"text",id:"create_account_name"},domProps:{value:e.createAccount.account_name},on:{blur:function(){return e.createAccount.account_name=e.createAccount.account_name.trimStart().trimEnd()},change:function(t){return e.$set(e.createAccount,"account_name",t.target.value)}}})])]),Object.keys(e.submitError).includes("account_name")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2",id:"create_account_name_error"}},[e._v(e._s(e.submitError.account_name))])]):e._e()]:[e._m(11),n("tr",[e._m(12),n("td",[n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.createAccount.account_quota,expression:"createAccount.account_quota",modifiers:{lazy:!0}}],attrs:{type:"number",id:"create_account_quota",min:"0",step:"0.01"},domProps:{value:e.createAccount.account_quota},on:{change:function(t){return e.$set(e.createAccount,"account_quota",t.target.value)}}})])]),Object.keys(e.submitError).includes("account_quota")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2",id:"create_account_quota_error"}},[e._v(e._s(e.submitError.account_quota))])]):e._e(),e.createAccount.account_term!==e.createAccount.account_expiration_term?[n("tr",[e._m(13),n("td",[n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.createAccount.refresh_quota,expression:"createAccount.refresh_quota",modifiers:{lazy:!0}}],attrs:{type:"checkbox",id:"create_refresh_quota"},domProps:{checked:Array.isArray(e.createAccount.refresh_quota)?e._i(e.createAccount.refresh_quota,null)>-1:e.createAccount.refresh_quota},on:{change:function(t){var a=e.createAccount.refresh_quota,n=t.target,s=!!n.checked;if(Array.isArray(a)){var r=null,i=e._i(a,r);n.checked?i<0&&e.$set(e.createAccount,"refresh_quota",a.concat([r])):i>-1&&e.$set(e.createAccount,"refresh_quota",a.slice(0,i).concat(a.slice(i+1)))}else e.$set(e.createAccount,"refresh_quota",s)}}})])]),e._m(14),Object.keys(e.submitError).includes("refresh_quota")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2",id:"create_refresh_quota_error"}},[e._v(e._s(e.submitError.refresh_quota))])]):e._e()]:e._e()],e._m(15),n("tr",[e._m(16),n("td",[e.terms.isLoaded&&!e.terms.isError?n("select",{directives:[{name:"model",rawName:"v-model.lazy",value:e.createAccount.account_term,expression:"createAccount.account_term",modifiers:{lazy:!0}}],attrs:{id:"create_account_term"},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.createAccount,"account_term",t.target.multiple?a:a[0])}}},[e._l(e.terms.terms,(function(t,a){return[n("option",{key:"term_"+a,domProps:{value:t.id}},[e._v(e._s(t.id)+" ("+e._s(t.start_date.split("T")[0])+" - "+e._s(t.end_date.split("T")[0])+")")])]}))],2):e._e()])]),Object.keys(e.submitError).includes("account_term")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2",id:"create_account_term_error"}},[e._v(e._s(e.submitError.account_term))])]):e._e(),n("tr",[e._m(17),n("td",[e.terms.isLoaded&&!e.terms.isError?n("select",{directives:[{name:"model",rawName:"v-model.lazy",value:e.createAccount.account_expiration_term,expression:"createAccount.account_expiration_term",modifiers:{lazy:!0}}],attrs:{id:"create_account_expiration_term"},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.createAccount,"account_expiration_term",t.target.multiple?a:a[0])}}},[e._l(e.terms.terms,(function(t,a){return[n("option",{key:"term_"+a,domProps:{value:t.id}},[e._v(e._s(t.id)+" ("+e._s(t.start_date.split("T")[0])+" - "+e._s(t.end_date.split("T")[0])+")")])]}))],2):e._e()])]),Object.keys(e.submitError).includes("account_expiration_term")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2",id:"create_account_expiration_term_error"}},[e._v(e._s(e.submitError.account_expiration_term))])]):e._e(),e._m(18),n("tr",[n("td",{staticClass:"label_text"},[e._v("Admin Entity:")]),n("td",[n("label",{attrs:{for:"create_admin_entity_group"}},[e._v("MCommunity Group")]),n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.createAccount.admin_entity,expression:"createAccount.admin_entity",modifiers:{lazy:!0}}],staticClass:"ml-2",attrs:{type:"radio",id:"create_admin_entity_group",value:"group"},domProps:{checked:e._q(e.createAccount.admin_entity,"group")},on:{change:function(t){return e.$set(e.createAccount,"admin_entity","group")}}}),n("br"),n("label",{attrs:{for:"create_admin_entity_user"}},[e._v("User")]),n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.createAccount.admin_entity,expression:"createAccount.admin_entity",modifiers:{lazy:!0}}],staticClass:"ml-2",attrs:{type:"radio",id:"create_admin_entity_user",value:"user"},domProps:{checked:e._q(e.createAccount.admin_entity,"user")},on:{change:function(t){return e.$set(e.createAccount,"admin_entity","user")}}})])]),Object.keys(e.submitError).includes("admin_entity")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2",id:"create_admin_entity_error"}},[e._v(e._s(e.submitError.admin_entity))])]):e._e(),"group"===e.createAccount.admin_entity?[n("tr",[e._m(19),n("td",[n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.createAccount.admin_group,expression:"createAccount.admin_group",modifiers:{lazy:!0}}],attrs:{type:"text",id:"create_admin_group"},domProps:{value:e.createAccount.admin_group},on:{blur:function(){return e.createAccount.admin_group=e.createAccount.admin_group.trimStart().trimEnd()},change:function(t){return e.$set(e.createAccount,"admin_group",t.target.value)}}})])]),Object.keys(e.submitError).includes("admin_group")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2",id:"create_admin_group_error"}},[e._v(e._s(e.submitError.admin_group))])]):e._e()]:[n("tr",[e._m(20),n("td",[n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.createAccount.admin_user,expression:"createAccount.admin_user",modifiers:{lazy:!0}}],attrs:{type:"text",id:"create_admin_user"},domProps:{value:e.createAccount.admin_user},on:{blur:function(){return e.createAccount.admin_user=e.createAccount.admin_user.trimStart().trimEnd()},change:function(t){return e.$set(e.createAccount,"admin_user",t.target.value)}}})])]),Object.keys(e.submitError).includes("admin_user")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2",id:"create_admin_user_error"}},[e._v(e._s(e.submitError.admin_user))])]):e._e()]],2)])])]),n("div",{staticClass:"modal_footer"},[n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member"},[n("div",{staticClass:"button",on:{click:function(t){return e.closeOpenModal(!1)}}},[e._v("Cancel")])]),n("div",{staticClass:"flex_member end"},[e.disableSubmit?[e._m(21)]:[n("div",{staticClass:"button button_blue",on:{click:function(t){return e.closeOpenModal(!0)}}},[n("i",{staticClass:"far fa-save mr-1"}),e._v("Submit Account")])]],2)])])]),null!==e.showModalForAccount&&e.editAccount.isPopulated?n("div",{staticClass:"modal",attrs:{id:"account_edit_modal"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeOpenModal(!1)}}},[e._m(22),n("div",{staticClass:"modal_content"},[n("div",{directives:[{name:"show",rawName:"v-show",value:null!==e.editStatus,expression:"editStatus !== null"}],staticClass:"red center pad-8"},[e._v(e._s(e.editStatus))]),n("h2",[e._v("Selected Account: "+e._s(e.visibleAccounts.adminAccounts[e.showModalForAccount].account_name))]),n("div",{staticClass:"pad-8"},[n("table",{staticClass:"full_width"},[n("tbody",{staticClass:"lh-2"},[e._m(23),n("tr",[n("td",{staticClass:"label_text"},[e._v("Account Entity:")]),n("td",[n("label",{attrs:{for:"edit_account_entity_group"}},[e._v("MCommunity Group")]),n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.editAccount.account_entity,expression:"editAccount.account_entity",modifiers:{lazy:!0}}],staticClass:"ml-2",attrs:{type:"radio",id:"edit_account_entity_group",value:"group"},domProps:{checked:e._q(e.editAccount.account_entity,"group")},on:{change:function(t){return e.$set(e.editAccount,"account_entity","group")}}}),n("br"),n("label",{attrs:{for:"edit_account_entity_user"}},[e._v("User")]),n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.editAccount.account_entity,expression:"editAccount.account_entity",modifiers:{lazy:!0}}],staticClass:"ml-2",attrs:{type:"radio",id:"edit_account_entity_user",value:"user"},domProps:{checked:e._q(e.editAccount.account_entity,"user")},on:{change:function(t){return e.$set(e.editAccount,"account_entity","user")}}})])]),Object.keys(e.submitError).includes("account_entity")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2",id:"edit_account_entity_error"}},[e._v(e._s(e.submitError.account_entity))])]):e._e(),"group"===e.editAccount.account_entity?[e._m(24),n("tr",[e._m(25),n("td",[n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.editAccount.account_group,expression:"editAccount.account_group",modifiers:{lazy:!0}}],attrs:{type:"text",id:"edit_account_group"},domProps:{value:e.editAccount.account_group},on:{blur:function(){return e.editAccount.account_group=e.editAccount.account_group.trimStart().trimEnd()},change:function(t){return e.$set(e.editAccount,"account_group",t.target.value)}}})])]),Object.keys(e.submitError).includes("account_group")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2",id:"edit_account_group_error"}},[e._v(e._s(e.submitError.account_group))])]):e._e()]:[e._m(26),n("tr",[e._m(27),n("td",[n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.editAccount.account_user,expression:"editAccount.account_user",modifiers:{lazy:!0}}],attrs:{type:"text",id:"edit_account_user"},domProps:{value:e.editAccount.account_user},on:{blur:function(){return e.editAccount.account_user=e.editAccount.account_user.trimStart().trimEnd()},change:function(t){return e.$set(e.editAccount,"account_user",t.target.value)}}})])]),Object.keys(e.submitError).includes("account_user")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2",id:"edit_account_user_error"}},[e._v(e._s(e.submitError.account_user))])]):e._e()],["approved","pending"].includes(e.visibleAccounts.adminAccounts[e.showModalForAccount].current_status)?[e._m(28),n("tr",[n("td",{staticClass:"small_help_text",attrs:{colspan:"2"}},[e._v("A "),n("i",[e._v("quota account")]),e._v(" will provision a specified dollar amount of funds to the "+e._s(e.editAccount.account_entity)+" you have chosen")])]),n("tr",[n("td",{staticClass:"small_help_text",attrs:{colspan:"2"}},[e._v("An "),n("i",[e._v("unrestricted account")]),e._v(" has no dollar limit attached to it, but the "+e._s(e.editAccount.account_entity)+" you have chosen will need to select this account when printing")])]),n("tr",[n("td",{staticClass:"label_text"},[e._v("Account Type:")]),n("td",[n("label",{attrs:{for:"edit_account_type_quota"}},[e._v("Quota Account")]),n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.editAccount.account_type,expression:"editAccount.account_type",modifiers:{lazy:!0}}],staticClass:"ml-2",attrs:{type:"radio",id:"edit_account_type_quota",value:"personal"},domProps:{checked:e._q(e.editAccount.account_type,"personal")},on:{change:function(t){return e.$set(e.editAccount,"account_type","personal")}}}),n("br"),n("label",{attrs:{for:"edit_account_type_shared"}},[e._v("Unrestricted Account")]),n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.editAccount.account_type,expression:"editAccount.account_type",modifiers:{lazy:!0}}],staticClass:"ml-2",attrs:{type:"radio",id:"edit_account_type_shared",value:"shared"},domProps:{checked:e._q(e.editAccount.account_type,"shared")},on:{change:function(t){return e.$set(e.editAccount,"account_type","shared")}}})])]),Object.keys(e.submitError).includes("account_type")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2",id:"edit_account_type_error"}},[e._v(e._s(e.submitError.account_type))])]):e._e()]:[n("tr",[n("td",{staticClass:"label_text"},[e._v("Account Type:")]),n("td",{staticClass:"capitalize label_text"},[e._v(e._s("personal"===e.visibleAccounts.adminAccounts[e.showModalForAccount].account_type?"quota account":"unrestricted account"))])])],"shared"===e.editAccount.account_type?[["approved","denied"].includes(e.visibleAccounts.adminAccounts[e.showModalForAccount].current_status)?[e._m(29),n("tr",[e._m(30),n("td",[n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.editAccount.account_name,expression:"editAccount.account_name",modifiers:{lazy:!0}}],attrs:{type:"text",id:"edit_account_name"},domProps:{value:e.editAccount.account_name},on:{blur:function(){return e.editAccount.account_name=e.editAccount.account_name.trimStart().trimEnd()},change:function(t){return e.$set(e.editAccount,"account_name",t.target.value)}}})])]),Object.keys(e.submitError).includes("account_name")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2",id:"edit_account_name_error"}},[e._v(e._s(e.submitError.account_name))])]):e._e()]:[n("tr",[n("td",{staticClass:"label_text"},[e._v("Account Name:")]),n("td",{staticClass:"label_text"},[e._v(e._s(e.editAccount.account_name))])])]]:[e._m(31),n("tr",[e._m(32),n("td",[n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.editAccount.account_quota,expression:"editAccount.account_quota",modifiers:{lazy:!0}}],attrs:{type:"number",id:"edit_account_quota",min:"0",step:"0.01"},domProps:{value:e.editAccount.account_quota},on:{change:function(t){return e.$set(e.editAccount,"account_quota",t.target.value)}}})])]),Object.keys(e.submitError).includes("account_quota")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2",id:"edit_account_quota_error"}},[e._v(e._s(e.submitError.account_quota))])]):e._e(),e.editAccount.account_term!==e.editAccount.account_expiration_term?[n("tr",[e._m(33),n("td",[n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.editAccount.refresh_quota,expression:"editAccount.refresh_quota",modifiers:{lazy:!0}}],attrs:{type:"checkbox",id:"edit_refresh_quota"},domProps:{checked:Array.isArray(e.editAccount.refresh_quota)?e._i(e.editAccount.refresh_quota,null)>-1:e.editAccount.refresh_quota},on:{change:function(t){var a=e.editAccount.refresh_quota,n=t.target,s=!!n.checked;if(Array.isArray(a)){var r=null,i=e._i(a,r);n.checked?i<0&&e.$set(e.editAccount,"refresh_quota",a.concat([r])):i>-1&&e.$set(e.editAccount,"refresh_quota",a.slice(0,i).concat(a.slice(i+1)))}else e.$set(e.editAccount,"refresh_quota",s)}}})])]),e._m(34),Object.keys(e.submitError).includes("refresh_quota")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2",id:"edit_refresh_quota_error"}},[e._v(e._s(e.submitError.refresh_quota))])]):e._e()]:e._e()],e._m(35),n("tr",[e._m(36),n("td",[n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.editAccount.account_shortcode,expression:"editAccount.account_shortcode",modifiers:{lazy:!0}}],attrs:{type:"text",id:"edit_account_shortcode"},domProps:{value:e.editAccount.account_shortcode},on:{blur:function(){return e.editAccount.account_shortcode=e.editAccount.account_shortcode.trimStart().trimEnd()},change:function(t){return e.$set(e.editAccount,"account_shortcode",t.target.value)}}})])]),Object.keys(e.submitError).includes("account_shortcode")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2",id:"edit_account_shortcode_error"}},[e._v(e._s(e.submitError.account_shortcode))])]):e._e(),e._m(37),n("tr",[e._m(38),n("td",[e.terms.isLoaded&&!e.terms.isError?n("select",{directives:[{name:"model",rawName:"v-model.lazy",value:e.editAccount.account_term,expression:"editAccount.account_term",modifiers:{lazy:!0}}],attrs:{id:"edit_account_term"},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.editAccount,"account_term",t.target.multiple?a:a[0])}}},[e._l(e.terms.terms,(function(t,a){return[n("option",{key:"term_"+a,domProps:{value:t.id}},[e._v(e._s(t.id)+" ("+e._s(t.start_date.split("T")[0])+" - "+e._s(t.end_date.split("T")[0])+")")])]}))],2):e._e()])]),Object.keys(e.submitError).includes("account_term")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2",id:"edit_account_term_error"}},[e._v(e._s(e.submitError.account_term))])]):e._e(),n("tr",[e._m(39),n("td",[e.terms.isLoaded&&!e.terms.isError?n("select",{directives:[{name:"model",rawName:"v-model.lazy",value:e.editAccount.account_expiration_term,expression:"editAccount.account_expiration_term",modifiers:{lazy:!0}}],attrs:{id:"edit_account_expiration_term"},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.editAccount,"account_expiration_term",t.target.multiple?a:a[0])}}},[e._l(e.terms.terms,(function(t,a){return[n("option",{key:"term_"+a,domProps:{value:t.id}},[e._v(e._s(t.id)+" ("+e._s(t.start_date.split("T")[0])+" - "+e._s(t.end_date.split("T")[0])+")")])]}))],2):e._e()])]),Object.keys(e.submitError).includes("account_expiration_term")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2",id:"edit_account_expiration_term_error"}},[e._v(e._s(e.submitError.account_expiration_term))])]):e._e(),e._m(40),n("tr",[n("td",{staticClass:"label_text"},[e._v("Admin Entity:")]),n("td",[n("label",{attrs:{for:"edit_admin_entity_group"}},[e._v("MCommunity Group")]),n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.editAccount.admin_entity,expression:"editAccount.admin_entity",modifiers:{lazy:!0}}],staticClass:"ml-2",attrs:{type:"radio",id:"edit_admin_entity_group",value:"group"},domProps:{checked:e._q(e.editAccount.admin_entity,"group")},on:{change:function(t){return e.$set(e.editAccount,"admin_entity","group")}}}),n("br"),n("label",{attrs:{for:"edit_admin_entity_user"}},[e._v("User")]),n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.editAccount.admin_entity,expression:"editAccount.admin_entity",modifiers:{lazy:!0}}],staticClass:"ml-2",attrs:{type:"radio",id:"edit_admin_entity_user",value:"user"},domProps:{checked:e._q(e.editAccount.admin_entity,"user")},on:{change:function(t){return e.$set(e.editAccount,"admin_entity","user")}}})])]),Object.keys(e.submitError).includes("admin_entity")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2",id:"edit_admin_entity_error"}},[e._v(e._s(e.submitError.admin_entity))])]):e._e(),"group"===e.editAccount.admin_entity?[n("tr",[e._m(41),n("td",[n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.editAccount.admin_group,expression:"editAccount.admin_group",modifiers:{lazy:!0}}],attrs:{type:"text",id:"edit_admin_group"},domProps:{value:e.editAccount.admin_group},on:{blur:function(){return e.editAccount.admin_group=e.editAccount.admin_group.trimStart().trimEnd()},change:function(t){return e.$set(e.editAccount,"admin_group",t.target.value)}}})])]),Object.keys(e.submitError).includes("admin_group")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2",id:"edit_admin_group_error"}},[e._v(e._s(e.submitError.admin_group))])]):e._e()]:[n("tr",[e._m(42),n("td",[n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.editAccount.admin_user,expression:"editAccount.admin_user",modifiers:{lazy:!0}}],attrs:{type:"text",id:"edit_admin_user"},domProps:{value:e.editAccount.admin_user},on:{blur:function(){return e.editAccount.admin_user=e.editAccount.admin_user.trimStart().trimEnd()},change:function(t){return e.$set(e.editAccount,"admin_user",t.target.value)}}})])]),Object.keys(e.submitError).includes("admin_user")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2",id:"edit_admin_user_error"}},[e._v(e._s(e.submitError.admin_user))])]):e._e()]],2)])])]),n("div",{staticClass:"modal_footer"},[n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member"},[n("div",{staticClass:"button",on:{click:function(t){return e.closeOpenModal(!1)}}},[e._v("Cancel")])]),n("div",{staticClass:"flex_member end"},[e.disableSubmit?[e._m(43)]:[n("div",{staticClass:"button button_blue",on:{click:function(t){return e.closeOpenModal(!0)}}},[n("i",{staticClass:"far fa-save mr-1"}),e._v("Save Account")])]],2)])])]):e._e()])},F=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Create Account")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text pt-1",attrs:{colspan:"2"}},[e._v("What entity would you like to assign this account to?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("What group would you like to subsidize?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"create_account_group"}},[e._v("Account Group:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("What user would you like to subsidize?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"create_account_user"}},[e._v("Account User (uniqname):")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("What type of account will this be?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("What ShortCode would you like to use to fund this account?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"create_account_shortcode"}},[e._v("Account Shortcode:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("What would you like to name the account?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"create_account_name"}},[e._v("Account Name:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("What is the quota amount for each user?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"create_account_quota"}},[e._v("Account Quota:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"create_refresh_quota"}},[e._v("Refresh Quota:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"small_help_text",attrs:{colspan:"2"}},[a("b",[e._v("Note:")]),e._v(" When a quota's range is greater than 1 term, the quota will "),a("i",[e._v("not")]),e._v(" automatically renew each term. Please check the 'refresh quota' box if you wish for the quota to renew for each term in this range.")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("For which terms should this account be active?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"create_account_term"}},[e._v("Account Term:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"create_account_expiration_term"}},[e._v("Account Expiration Term:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("Who can manage this account?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"create_admin_group"}},[e._v("Admin Group:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"create_admin_user"}},[e._v("Admin User:")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("span",[e._v("Submitting...")]),n("img",{staticClass:"ml-2",attrs:{src:a("d9b6"),alt:"loading"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Edit Account")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("What entity would you like to assign this account to?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("What group would you like to subsidize?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"edit_account_group"}},[e._v("Account Group:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("What user would you like to subsidize?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"edit_account_user"}},[e._v("Account User (uniqname):")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("What type of account will this be?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("What would you like to name the account?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"edit_account_name"}},[e._v("Account Name:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("What is the quota amount for each user?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"edit_account_quota"}},[e._v("Account Quota:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"edit_refresh_quota"}},[e._v("Refresh Quota:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"small_help_text",attrs:{colspan:"2"}},[a("b",[e._v("Note:")]),e._v(" When a quota's range is greater than 1 term, the quota will "),a("i",[e._v("not")]),e._v(" automatically renew each term. Please check the 'refresh quota' box if you wish for the quota to renew for each term in this range.")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("What ShortCode would you like to use to fund this account?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"edit_account_shortcode"}},[e._v("Account Shortcode:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("For which terms should this account be active?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"edit_account_term"}},[e._v("Account Term:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"edit_account_expiration_term"}},[e._v("Account Expiration Term:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("Who can manage this account?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"edit_admin_group"}},[e._v("Admin Group:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"edit_admin_user"}},[e._v("Admin User:")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("span",[e._v("Saving...")]),n("img",{staticClass:"ml-2",attrs:{src:a("d9b6"),alt:"loading"}})])}],I=a("5530"),Q=(a("2ca0"),a("a15b"),a("4e82"),a("3ca3"),a("fb6a"),a("b166")),U=a("e3ee"),$=a("a49b")["papercut_server"],J={name:"accounts",data:function(){return{accounts:{isError:!1,isLoaded:!1,availableAccounts:[]},accountDefaults:{account_name:"",account_entity:"user",account_user:null,account_group:null,account_shortcode:null,account_type:"shared",account_quota:null,account_term:null,account_expiration_term:null,refresh_quota:0,admin_entity:"user",admin_user:null,admin_group:null,notification_to:"all"},adminAccounts:{isError:!1,isLoaded:!1,adminAccounts:[]},createAccount:{account_name:"",account_entity:"user",account_user:null,account_group:null,account_shortcode:null,account_type:"shared",account_quota:null,account_term:null,account_expiration_term:null,refresh_quota:0,admin_entity:"user",admin_user:null,admin_group:null,notification_to:"all"},disableActionsForAccount:null,disableSubmit:!1,editAccount:{isPopulated:!1,account_name:"",account_entity:"",account_user:null,account_group:null,account_shortcode:null,account_type:null,account_quota:null,account_term:null,account_expiration_term:null,refresh_quota:0,admin_entity:null,admin_user:null,admin_group:null,notification_to:null},editStatus:null,enableMask:!1,filterAcctType:null,filterJoinWith:"and",filterStatus:null,focused:null,msg:[],papercutUrl:$,popFilter:!1,quick_search:[],showCreateAccount:!1,showModalForAccount:null,statusOrder:{pending:5,active:4,approved:3,closed:2,denied:1,expired:0},submitError:{},terms:{isError:!1,isLoaded:!1,terms:[]},visibleAccounts:{availableAccounts:[],adminAccounts:[]}}},props:{user:{type:Object,default:function(){return this.$store.getters.getUser}}},methods:{approveAccount:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:n=t,s=n.visibleAccounts.adminAccounts[e],r=Date.now(),n.disableActionsForAccount=e,n._msgManager("Attempting to approve account..."),p.methods.put("/api/accounts/".concat(s["id"]),{account_action:"approve",updated_on:Object(Q["a"])(r,"yyyy-LL-dd HH:mm:ss")}).then((function(t){console.log(t.data.result),n.visibleAccounts.adminAccounts[e].is_approved=1,n.visibleAccounts.adminAccounts[e].is_denied=0,n.visibleAccounts.adminAccounts[e].current_status="approved",n._msgManager("Account ".concat(s["account_name"]," has been approved!"))})).catch((function(e){console.log(e),n._msgManager("Failed to approve account ".concat(s["account_name"],": ").concat(e))})).finally((function(){n.disableActionsForAccount=null}));case 6:case"end":return a.stop()}}),a)})))()},closeAccount:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:n=t,s=n.visibleAccounts.adminAccounts[e],r=Date.now(),n.disableActionsForAccount=e,n._msgManager("Attempting to close account..."),p.methods.put("/api/accounts/".concat(s["id"]),{account_action:"close",updated_on:Object(Q["a"])(r,"yyyy-LL-dd HH:mm:ss")}).then((function(t){console.log(t.data.result),n.visibleAccounts.adminAccounts[e].is_active=0,n.visibleAccounts.adminAccounts[e].is_closed=1,n.visibleAccounts.adminAccounts[e].closed_on=Object(Q["a"])(r,"yyyy-LL-dd HH:mm:ss"),n.visibleAccounts.adminAccounts[e].current_status="closed",n._msgManager("Account ".concat(s["account_name"]," has been closed!"))})).catch((function(e){console.log(e),n._msgManager("Failed to close account ".concat(s["account_name"],": ").concat(e))})).finally((function(){n.disableActionsForAccount=null}));case 6:case"end":return a.stop()}}),a)})))()},closeOpenModal:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!t.disableSubmit){a.next=2;break}return a.abrupt("return",!1);case 2:if(n=!e,!e){a.next=19;break}if(t.disableSubmit=!0,t.nullifyErrantParameters(),t.submitError={},null===t.showModalForAccount){a.next=14;break}return t._msgManager("Editing account..."),a.next=11,t.editAccountFn(t.showModalForAccount);case 11:n=a.sent,a.next=18;break;case 14:return t._msgManager("Creating new account..."),a.next=17,t.createAccountFn();case 17:n=a.sent;case 18:t.disableSubmit=!1;case 19:n&&t.resetModal();case 20:case"end":return a.stop()}}),a)})))()},createAccountFn:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n,s,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=Object(Q["a"])(Date.now(),"yyyy-LL-dd HH:mm:ss"),n=Object(I["a"])(Object(I["a"])({},e.createAccount),{},{created_on:a,submitted_by:e.user.uniqname,updated_on:a}),Object.keys(n).includes("refresh_quota")&&(n.refresh_quota=+n.refresh_quota),"personal"===n.account_type&&Object.keys(n).includes("account_quota")&&null!==n.account_quota&&(n.account_quota.startsWith("$")&&(n.account_quota="".concat(+n.account_quota.split("$")[1])),-1===n.account_quota.indexOf(".")&&(n.account_quota="".concat(n.account_quota,".00"))),s=e,r=!0,t.prev=6,t.next=9,p.methods.post("/api/accounts",n);case 9:if(i=t.sent,!Object.keys(i.data.result).includes("valid")||i.data.result.valid){t.next=16;break}s._msgManager("Account validation encountered a problem..."),s.submitError=s.parseErrors(i.data.result),r=!1,t.next=27;break;case 16:if(!+i.data.result.count){t.next=25;break}return s._msgManager("Account successfully created!"),"group"===n.account_entity&&s._msgManager("Please allow a few minutes for the system to finish applying settings to ".concat(n.account_group,".")),r=!0,t.next=22,s.getAccounts();case 22:s.filterAccounts(),t.next=27;break;case 25:s._msgManager(i.data.result.status_message),r=!1;case 27:t.next=33;break;case 29:t.prev=29,t.t0=t["catch"](6),s._msgManager("Failed to create account: ".concat(t.t0)),r=!1;case 33:return t.prev=33,Object.keys(s.submitError).length&&(console.log(s.submitError),s.$nextTick((function(){document.getElementById("create_".concat(Object.keys(s.submitError)[0],"_error")).scrollIntoView({behavior:"smooth",block:"center"})}))),t.finish(33);case 36:return t.abrupt("return",r);case 37:case"end":return t.stop()}}),t,null,[[6,29,33,36]])})))()},denyAccount:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:n=t,s=n.visibleAccounts.adminAccounts[e],r=Date.now(),n.disableActionsForAccount=e,n._msgManager("Attempting to deny account..."),p.methods.put("/api/accounts/".concat(s["id"]),{account_action:"deny",updated_on:Object(Q["a"])(r,"yyyy-LL-dd HH:mm:ss")}).then((function(){n.visibleAccounts.adminAccounts[e].is_approved=0,n.visibleAccounts.adminAccounts[e].is_denied=1,n.visibleAccounts.adminAccounts[e].current_status="denied",n._msgManager("Account ".concat(s["account_name"]," has been denied!"))})).catch((function(e){console.log(e),n._msgManager("Failed to deny account ".concat(s["account_name"],": ").concat(e))})).finally((function(){n.disableActionsForAccount=null}));case 6:case"end":return a.stop()}}),a)})))()},editAccountFn:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,s,r,i,o,c,l;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:for(n={account_action:"edit",updated_on:Object(Q["a"])(Date.now(),"yyyy-LL-dd HH:mm:ss")},s=t.visibleAccounts.adminAccounts[e],r=t,i=0,o=Object.keys(t.editAccount);i<o.length;i++)c=o[i],"isPopulated"!==c&&t.editAccount[c]!==s[c]&&(n[c]=t.editAccount[c]);return Object.keys(n).includes("refresh_quota")&&(n.refresh_quota=+n.refresh_quota),"personal"===n.account_type&&Object.keys(n).includes("account_quota")&&null!==n.account_quota&&(n.account_quota.startsWith("$")&&(n.account_quota="".concat(+n.account_quota.split("$")[1])),-1===n.account_quota.indexOf(".")&&(n.account_quota="".concat(n.account_quota,".00"))),l=!0,a.next=9,p.methods.put("/api/accounts/".concat(s.id),n).then((function(t){Object.keys(t.data.result).includes("valid")&&!t.data.result.valid?(r._msgManager("Account validation encountered a problem..."),r.submitError=r.parseErrors(t.data.result),l=!1):Object.keys(t.data.result).includes("errors")&&t.data.result.errors.length?(r._msgManager("Failed to edit account! ".concat(t.data.result.errors.join("; "))),l=!1):(r._msgManager("Account successfully edited!"),l=!0,r.updateAccountBox(e))})).catch((function(e){r._msgManager("Failed to edit account: ".concat(e)),l=!1})).finally((function(){Object.keys(r.submitError).length&&r.$nextTick((function(){document.getElementById("edit_".concat(Object.keys(r.submitError)[0],"_error")).scrollIntoView({behavior:"smooth",block:"center"})})),r.editAccount.isPopulated=!l}));case 9:return a.abrupt("return",l);case 10:case"end":return a.stop()}}),a)})))()},filterAccounts:function(){var e=this;this._msgManager("Filtering accounts..."),"and"!==this.filterJoinWith&&this.quick_search&&this.quick_search.length?"or"===this.filterJoinWith&&(this.visibleAccounts.availableAccounts=[],this.visibleAccounts.adminAccounts=[]):(this.visibleAccounts.availableAccounts=this.accounts.availableAccounts,this.visibleAccounts.adminAccounts=this.adminAccounts.adminAccounts);var t=[];null!==this.filterAcctType&&t.push(this.filterAcctType.value),null!==this.filterStatus&&t.push(this.filterStatus);var a,n=Object(i["a"])(this.quick_search.concat(t));try{var s=function(){var t=a.value;"and"===e.filterJoinWith?(e.visibleAccounts.availableAccounts=e.visibleAccounts.availableAccounts.filter((function(e){return JSON.stringify(Object.values(e)).toLowerCase().indexOf(t.toLowerCase())>-1})),e.visibleAccounts.adminAccounts=e.visibleAccounts.adminAccounts.filter((function(e){return JSON.stringify(Object.values(e)).toLowerCase().indexOf(t.toLowerCase())>-1}))):(e.visibleAccounts.availableAccounts=e.visibleAccounts.availableAccounts.concat(e.accounts.availableAccounts.filter((function(e){return JSON.stringify(Object.values(e)).toLowerCase().indexOf(t.toLowerCase())>-1}))),e.visibleAccounts.adminAccounts=e.visibleAccounts.adminAccounts.concat(e.adminAccounts.adminAccounts.filter((function(e){return JSON.stringify(Object.values(e)).toLowerCase().indexOf(t.toLowerCase())>-1}))))};for(n.s();!(a=n.n()).done;)s()}catch(o){n.e(o)}finally{n.f()}var r=this;this.visibleAccounts.availableAccounts.sort((function(e,t){return r.statusOrder[e.current_status]===r.statusOrder[t.current_status]?e.account_name.toLowerCase()>t.account_name.toLowerCase()?1:-1:r.statusOrder[e.current_status]<r.statusOrder[t.current_status]?1:-1})),this.visibleAccounts.adminAccounts.sort((function(e,t){return r.statusOrder[e.current_status]===r.statusOrder[t.current_status]?e.account_name.toLowerCase()>t.account_name.toLowerCase()?1:-1:r.statusOrder[e.current_status]<r.statusOrder[t.current_status]?1:-1}))},getAccounts:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e,t.next=3,Promise.all([p.methods.get("/api/accounts"),p.methods.get("/api/accounts?admin=1&adminOnly=1")]).then((function(e){e[0].data.result.result.map((function(e){return e.current_status=a.setStatus(e)})),e[1].data.result.result.map((function(e){return e.current_status=a.setStatus(e)})),e[0].data.result.result.sort((function(e,t){return a.statusOrder[e.current_status]===a.statusOrder[t.current_status]?e.account_name.toLowerCase()>t.account_name.toLowerCase()?1:-1:a.statusOrder[e.current_status]<a.statusOrder[t.current_status]?1:-1})),e[1].data.result.result.sort((function(e,t){return a.statusOrder[e.current_status]===a.statusOrder[t.current_status]?e.account_name>t.account_name?1:-1:a.statusOrder[e.current_status]<a.statusOrder[t.current_status]?1:-1})),a.$set(a.accounts,"availableAccounts",e[0].data.result.result.filter((function(e){return["active","closed","expired"].includes(e.current_status)}))),a.$set(a.adminAccounts,"adminAccounts",e[1].data.result.result),a.$set(a.visibleAccounts,"availableAccounts",a.accounts.availableAccounts),a.$set(a.visibleAccounts,"adminAccounts",e[1].data.result.result)})).catch((function(e){a.$set(a.accounts,"isError",!0),a.$set(a.adminAccounts,"isError",!0),a._msgManager(e)})).finally((function(){a.$set(a.accounts,"isLoaded",!0),a.$set(a.adminAccounts,"isLoaded",!0),a.$nextTick((function(){if(!a.accounts.isError){var e=window.location.hash;if(e){var t=e.split("_")[1];a.focused="account_".concat(t),document.getElementById("account_".concat(t)).scrollIntoView({behavior:"smooth",block:"center"}),window.setTimeout((function(){a.focused=null}),5e3)}}}))}));case 3:case"end":return t.stop()}}),t)})))()},getTerms:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,n=Object(Q["a"])(Date.now(),"yyyy-LL-dd"),p.methods.get("/api/terms").then((function(e){var t=e.data.result.result.filter((function(e){return Object(Q["a"])(Object(U["a"])(e.end_date),"yyyy-LL-dd")>=n}));a.$set(a.terms,"terms",t)})).catch((function(e){console.log(e),a.$set(a.terms,"isError",!0)})).finally((function(){a.$set(a.terms,"isLoaded",!0)}));case 3:case"end":return t.stop()}}),t)})))()},nullifyErrantParameters:function(){var e="editAccount";this.showCreateAccount&&(e="createAccount"),"user"===this[e].account_entity?this.$delete(this[e],"account_group"):this.$delete(this[e],"account_user"),"user"===this[e].admin_entity?this.$delete(this[e],"admin_group"):this.$delete(this[e],"admin_user"),"personal"===this[e].account_type?this.$delete(this[e],"account_name"):(this[e].account_quota=0,this[e].refresh_quota=0)},parseErrors:function(e){var t={};if(Object.keys(e).includes("errors")&&(t=Object(I["a"])({},e["errors"])),Object.keys(e).includes("invalid")){var a,n=Object(i["a"])(e.invalid);try{for(n.s();!(a=n.n()).done;){var s=a.value;t[s.split(" ")[1]]=s}}catch(l){n.e(l)}finally{n.f()}}if(Object.keys(e).includes("missing")){var r,o=Object(i["a"])(e.missing);try{for(o.s();!(r=o.n()).done;){var c=r.value;t[c.split(" ")[1]]=c}}catch(l){o.e(l)}finally{o.f()}}return t},resetModal:function(){for(var e=0,t=Object.keys(this.accountDefaults);e<t.length;e++){var a=t[e];this.createAccount[a]=this.accountDefaults[a],this.editAccount[a]=this.accountDefaults[a]}this.enableMask=!1,this.showCreateAccount=!1,this.showModalForAccount=null},scrollListener:function(){this.popFilter=window.scrollY>100},setStatus:function(e){return+e.is_denied?"denied":+e.is_closed?"closed":+e.is_expired?"expired":+e.is_active?"active":+e.is_approved?"approved":"pending"},showCreateModal:function(){this.submitError={},this.showCreateAccount=!0,this.enableMask=!0},showEditModal:function(e){for(var t=0,a=Object.keys(this.editAccount);t<a.length;t++){var n=a[t];this.editAccount[n]=this.visibleAccounts.adminAccounts[e][n]}this.editAccount.isPopulated=!0,this.submitError={},this.showModalForAccount=e,this.enableMask=!0},updateAccountBox:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:n=t,s=n.visibleAccounts.adminAccounts[e],p.methods.get("/api/accounts/".concat(s.id)).then((function(t){var a=t.data.result.result[0];a.current_status=n.setStatus(a),n.adminAccounts.adminAccounts.filter((function(e){return e.id===s.id}))[0]=a,n.$set(n.visibleAccounts.adminAccounts,e,a)})).catch((function(e){console.log(e)}));case 3:case"end":return a.stop()}}),a)})))()},_format:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=e.split("T");return 1===a.length&&(a=e.split(" ")),t?"".concat(a[0]," ").concat(a[1].split(".")[0]):a[0]},_msgManager:function(e){this.msg.push(e);var t=this;window.setTimeout((function(){t.msg=t.msg.slice(1,t.msg.length)}),4e3)},_nextQuotaRefresh:function(e){if(this.terms.isLoaded&&!this.terms.isError){if("personal"!==e.account_type||1!==+e.refresh_quota&&!e.account_name.toLowerCase().startsWith("basic computing package"))return"N/A";var t=[];this.terms.terms.map((function(e){return t.push(e.id)}));var a,n=new Date(new Date(Date.now()).toLocaleString("en-US",{timeZone:"America/Detroit"}).split(",")[0]).getTime(),s=0,r=t.indexOf(e.account_expiration_term),o=this.terms.terms.slice(s,r+1),c=Object(i["a"])(o);try{for(c.s();!(a=c.n()).done;){var l=a.value,u=new Date(new Date(l.start_date).toLocaleString("en-US",{timeZone:"America/Detroit"}).split(",")[0]).getTime();if(u===n)return"Today";if(u>n)return this._format(l.start_date,!1)}}catch(d){c.e(d)}finally{c.f()}}return"Unknown"}},mounted:function(){this.user.uniqname&&(this.getAccounts(),this.getTerms()),window.addEventListener("scroll",this.scrollListener)},watch:{user:function(){this.getAccounts(),this.getTerms()}},destroyed:function(){window.removeEventListener("scroll",this.scrollListener)}},B=J,W=(a("8266"),a("7419"),Object(f["a"])(B,N,F,!1,null,"24b97ab2",null)),H=W.exports,z=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("div",{attrs:{id:"content"}},[n("h1",{staticClass:"float_left lh_36"},[e._v("MPrint API Index")]),n("div",{staticClass:"float_right lh_36"},[n("label",{attrs:{for:"quick_search"}},[e._v("Quick Search: "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.quickSearchVal,expression:"quickSearchVal"}],attrs:{type:"text",id:"quick_search",placeholder:"API Endpoint"},domProps:{value:e.quickSearchVal},on:{keyup:e.quickSearchEvent,input:function(t){t.target.composing||(e.quickSearchVal=t.target.value)}}})])]),n("div",{staticClass:"clearfix"}),n("p",{directives:[{name:"show",rawName:"v-show",value:e.isLoading,expression:"isLoading"}]},[e._v("Loading... "),n("img",{attrs:{src:a("d9b6"),alt:"loading",title:"loading"}})]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isLoaded&&!e.isError,expression:"isLoaded && !isError"}]},[e._l(e.endpointData,(function(t,s){return[n("div",{key:t["endpoint"]+"_container",staticClass:"endpoint_container",class:{gray:s%2,hidden:e.visibleEndpoints.indexOf(t["endpoint"])<0}},[n("h2",{key:t["endpoint"]},[e._v(e._s(t["endpoint"]))]),n("p",{directives:[{name:"show",rawName:"v-show",value:t["isLoading"],expression:"endpoint['isLoading']"}],key:t["endpoint"]+"_loading"},[e._v("Loading... "),n("img",{attrs:{src:a("d9b6"),alt:"loading",title:"loading"}})]),n("div",{directives:[{name:"show",rawName:"v-show",value:t["isLoaded"]&&!t["isError"],expression:"endpoint['isLoaded'] && !endpoint['isError']"}],key:t["endpoint"]+"_info"},[n("h3",[e._v(e._s(t["url"])+" -- "),n("span",{directives:[{name:"show",rawName:"v-show",value:t["isWorking"],expression:"endpoint['isWorking']"}],staticClass:"green"},[e._v("Up")]),n("span",{directives:[{name:"show",rawName:"v-show",value:!t["isWorking"],expression:"!endpoint['isWorking']"}],staticClass:"red"},[e._v("Down")])]),n("ul",e._l(t["methods"],(function(a,s){return n("li",{key:t["endpoint"]+"_"+a["name"]+"_"+s},[n("b",[e._v(e._s(a["name"])+": "+e._s(a["url"]))]),n("ul",[n("li",[e._v(e._s(a["description"]))]),n("li",[e._v("Parameters:")]),n("ul",e._l(a["parameters"],(function(s,r){return n("li",{key:t["endpoint"]+"_"+a["name"]+"_param_"+r,domProps:{innerHTML:e._s(s)}},[e._v(e._s(s))])})),0)])])})),0)])])]}))],2),n("p",{directives:[{name:"show",rawName:"v-show",value:e.isLoaded&&e.isError,expression:"isLoaded && isError"}]},[e._v("Something went wrong! Failed to load API Index... Is the API Index container running?")])])])},G=[],Y=(a("159b"),{name:"apiIndex",data:function(){return{endpointData:[],isError:!1,isLoaded:!1,isLoading:!0,quickSearchVal:"",visibleEndpoints:[]}},props:{user:{type:Object,default:function(){return this.$store.getters.getUser}}},methods:{getEndpoints:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a="api/index",t.prev=1,e.resetAjaxVars(),t.next=5,p.methods.get(a);case 5:n=t.sent,e.endpointData=n["data"],t.next=13;break;case 9:t.prev=9,t.t0=t["catch"](1),console.log(t.t0),e.isError=!0;case 13:return t.prev=13,e.isLoading=!1,e.isLoaded=!0,e.isError||(s=e,e.endpointData.forEach((function(e,t){s.quickSearch(),s.getEndpointStatus(e,t)}))),t.finish(13);case 18:case"end":return t.stop()}}),t,null,[[1,9,13,18]])})))()},getEndpointStatus:function(e,t){var a=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var s,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return s=e["url"]+"?info",n.prev=1,n.next=4,p.methods.get(s);case 4:r=n.sent,a.endpointData[t].methods=r["data"]["result"],a.endpointData[t].isWorking=!0,n.next=13;break;case 9:n.prev=9,n.t0=n["catch"](1),a.endpointData[t].isWorking=!1,console.log(n.t0);case 13:return n.prev=13,a.endpointData[t].isLoading=!1,a.endpointData[t].isLoaded=!0,n.finish(13);case 17:case"end":return n.stop()}}),n,null,[[1,9,13,17]])})))()},quickSearch:function(){var e=this;e.visibleEndpoints=[],e.endpointData.forEach((function(t){e.quickSearchVal.length?t["endpoint"].toLowerCase().indexOf(e.quickSearchVal.toLowerCase())>=0&&e.visibleEndpoints.push(t["endpoint"]):e.visibleEndpoints.push(t["endpoint"])}))},quickSearchEvent:function(){null!==this.quickSearchTimeout&&(window.clearTimeout(this.quickSearchTimeout),this.quickSearchTimeout=null),this.quickSearchTimeout=window.setTimeout(this.quickSearch,500)},resetAjaxVars:function(){this.isError=!1,this.isLoading=!0,this.isLoaded=!1}},created:function(){this.user.uniqname&&this.getEndpoints()},watch:{user:function(){this.getEndpoints()}}}),V=Y,K=(a("5cef"),Object(f["a"])(V,z,G,!1,null,"464bef30",null)),Z=K.exports,X=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("div",{attrs:{id:"content"}},[n("div",{staticClass:"flex_row"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.popFilter,expression:"popFilter"}],staticClass:"box full_box",attrs:{id:"empty_filter_box"}}),n("div",{staticClass:"box full_box",class:e.popFilter?"popped_out":"",attrs:{id:"filter_container"}},[n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member"},[n("h1",[e._v("MPrint Auth Cache - "),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.isFullCache,expression:"!isFullCache"}]},[e._v(e._s(e.cacheId))]),n("span",{directives:[{name:"show",rawName:"v-show",value:e.isFullCache,expression:"isFullCache"}]},[e._v("All Entries")])])]),n("div",{staticClass:"flex_member end"},[e.isFullCache?[n("div",{staticClass:"lh_36"},[n("label",{attrs:{for:"quick_search"}},[e._v("Quick Search: "),n("v-select",{attrs:{id:"quick_search",taggable:"",multiple:"",options:[],"dropdown-should-open":function(){return!1}},on:{input:e.quickSearch},model:{value:e.quickSearchVals,callback:function(t){e.quickSearchVals=t},expression:"quickSearchVals"}})],1)]),n("p",{staticClass:"pl-2"},[e._v("Join filters with: "),n("label",{attrs:{for:"join_and"}},[e._v("And")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.filterJoinWith,expression:"filterJoinWith",modifiers:{lazy:!0}}],attrs:{type:"radio",id:"join_and",name:"filter_join_with",value:"and",checked:"checked"},domProps:{checked:e._q(e.filterJoinWith,"and")},on:{change:[function(t){e.filterJoinWith="and"},e.quickSearch]}}),e._v(" or "),n("label",{attrs:{for:"join_or"}},[e._v("Or")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.filterJoinWith,expression:"filterJoinWith",modifiers:{lazy:!0}}],attrs:{type:"radio",id:"join_or",name:"filter_join_with",value:"or"},domProps:{checked:e._q(e.filterJoinWith,"or")},on:{change:[function(t){e.filterJoinWith="or"},e.quickSearch]}})])]:[n("div",{staticClass:"lh_36 medium_text"},[n("a",{staticClass:"mr-4",attrs:{href:e.publicPath+"/cache/auth"}},[e._v("Back to Full Cache")]),n("span",{staticClass:"mr-4"},[e._v("|")]),n("a",{staticClass:"red",attrs:{href:e.publicPath+"/cache/auth"},on:{click:function(t){return e.deleteKey(e.cacheId,null)}}},[e._v("Delete Key and Go Back to Full Cache"),n("i",{staticClass:"fa fa-trash ml-2",attrs:{title:"Delete Key",alt:"Delete Key","aria-label":"Delete Key"}})])])]],2)]),e.isFullCache&&e.isLoaded&&!e.isError?n("div",{staticClass:"flex_row center"},[n("div",{staticClass:"flex_member"},[n("p",[e._v("Showing "+e._s(Object.keys(e.visibleCacheData["result"]).length)+" cache entries")])])]):e._e()])]),n("p",{directives:[{name:"show",rawName:"v-show",value:e.isLoading,expression:"isLoading"}]},[e._v("Loading... "),n("img",{attrs:{src:a("d9b6"),alt:"loading",title:"loading"}})]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isLoaded&&!e.isError,expression:"isLoaded && !isError"}],staticClass:"full_box"},[e.isFullCache?[n("table",{staticClass:"full_width"},[e._m(0),n("tbody",[e._l(Object.keys(e.visibleCacheData["result"]),(function(t){return[n("tr",{key:"key_"+t,class:{gray:+t%2},attrs:{id:"key_"+t}},[n("td",{},[n("a",{attrs:{href:"/cache/auth/"+e.visibleCacheData["result"][+t]}},[e._v(e._s(e.visibleCacheData["result"][+t]))])]),n("td",[n("a",{staticClass:"red",on:{click:function(a){return a.preventDefault(),e.deleteKey(e.visibleCacheData["result"][+t],+t)}}},[e._v("Delete Key"),n("i",{staticClass:"fa fa-trash ml-2",attrs:{title:"Delete Key",alt:"Delete Key","aria-label":"Delete Key"}})])])])]})),Object.keys(e.cacheData).includes("stats")?n("tr",{class:{gray:Object.keys(e.visibleCacheData["result"]).length%2},attrs:{id:"cache_stats"}},[n("td",{attrs:{colspan:"2"}},[n("span",[e._v("Statistics: ")]),n("br"),n("pre",[e._v(e._s(JSON.stringify(e.cacheData["stats"],null,4)))])])]):e._e()],2)])]:[n("div",{staticClass:"box full_box"},[n("div",{staticClass:"medium_text"},[e._v("Cache Value:")]),n("br"),n("div",[n("pre",[e._v(e._s(JSON.stringify(e.cacheData["result"],null,4)))])])])]],2),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isLoaded&&e.isError,expression:"isLoaded && isError"}],staticClass:"flex_row"},[n("div",{staticClass:"flex_member center"},[e._v("An error has occurred: "+e._s(""!==e.error?e.error:"Something went wrong! Please refresh the page."))])])])])},ee=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("thead",[a("tr",{staticClass:"gray medium_text"},[a("th",{attrs:{colspan:"2"}},[e._v("Cache Keys")]),a("th")])])}],te={name:"authCache",data:function(){return{cacheAttributes:{cache_key:"Key",result:"Value",ttl:"Time To Live (seconds)"},cacheData:{result:{}},error:"",filterJoinWith:"and",isError:!1,isLoaded:!1,isLoading:!0,popFilter:!1,publicPath:window.location.origin,quickSearchVals:[],quickSearchTimeout:null,visibleCacheData:{result:{}}}},computed:{isFullCache:function(){return 0===this.cacheId.length}},props:{cacheId:{type:String,default:""},user:{type:Object,default:function(){return this.$store.getters.getUser}}},methods:{deleteKey:function(e){var t=arguments,a=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return s=t.length>1&&void 0!==t[1]?t[1]:null,n.prev=1,a.resetAjaxVars(),n.next=5,p.methods.delete("api/auth/cache/"+e);case 5:n.next=11;break;case 7:n.prev=7,n.t0=n["catch"](1),console.log(n.t0),a.isError=!0;case 11:return n.prev=11,a.isLoading=!1,a.isLoaded=!0,a.isError||(delete a.cacheData["result"][e],null!==s&&a.visibleCacheData["result"].length>s&&delete a.visibleCacheData["result"][s]),n.finish(11);case 16:case"end":return n.stop()}}),n,null,[[1,7,11,16]])})))()},getAuthCacheData:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n,s,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a="api/auth/cache",e.cacheId.length&&(a+="/"+e.cacheId+"?includeTTL"),t.prev=2,e.resetAjaxVars(),t.next=6,p.methods.get(a);case 6:n=t.sent,e.cacheData=n["data"]["result"],e.visibleCacheData=e.cacheData,t.next=16;break;case 11:t.prev=11,t.t0=t["catch"](2),console.log(t.t0),e.isError=!0,e.error=t.t0;case 16:return t.prev=16,e.isLoading=!1,e.isLoaded=!0,s=window.location.hash,s&&(r=s.split("="),"#search"===r[0]?(e.quickSearchVal=r[1],e.quickSearch()):console.log("Provided URL hash is invalid: ".concat(s))),t.finish(16);case 22:case"end":return t.stop()}}),t,null,[[2,11,16,22]])})))()},quickSearch:function(){var e=this;this.visibleCacheData={result:[]},"and"!==this.filterJoinWith&&this.quickSearchVals&&this.quickSearchVals.length||(this.visibleCacheData["result"]=this.cacheData["result"]);var t,a=Object(i["a"])(this.quickSearchVals);try{var n=function(){var a=t.value;"and"===e.filterJoinWith?e.visibleCacheData["result"]=e.visibleCacheData["result"].filter((function(e){return e.toLowerCase().indexOf(a.toLowerCase())>=0})):e.visibleCacheData["result"]=e.visibleCacheData["result"].concat(e.cacheData["result"].filter((function(t){return t.toLowerCase().indexOf(a.toLowerCase())>=0&&e.visibleCacheData["result"].indexOf(t)<0})))};for(a.s();!(t=a.n()).done;)n()}catch(s){a.e(s)}finally{a.f()}},resetAjaxVars:function(){this.isError=!1,this.isLoading=!0,this.isLoaded=!1},scrollListener:function(){this.popFilter=window.scrollY>100}},mounted:function(){this.user.uniqname&&"admin"===this.user.role&&this.getAuthCacheData(),window.addEventListener("scroll",this.scrollListener)},watch:{user:function(e){"admin"===e.role?this.getAuthCacheData():(console.log("ERROR: cache requires role ADMIN, user has role: "+e.role),this.isLoading=!1,this.isError=!0,this.isLoaded=!0,this.error="Access Denied! Viewing the cache requires 'Admin' role, but you have role '".concat(e.role,"'"))}},destroyed:function(){window.removeEventListener("scroll",this.scrollListener)}},ae=te,ne=(a("3b7a"),Object(f["a"])(ae,X,ee,!1,null,"dde11a14",null)),se=ne.exports,re=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.msg,expression:"msg"}],attrs:{id:"message_container"}},[a("div",{staticClass:"message",attrs:{id:"message"}},[e._v(e._s(e.msg))])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.enableMask,expression:"enableMask"}],staticClass:"mask dim",attrs:{id:"mask"},on:{click:function(t){return e.closeOpenModal(!1)}}}),a("div",{attrs:{id:"content",role:"main"}},[a("div",{staticClass:"flex_row"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.popFilter,expression:"popFilter"}],staticClass:"box full_box",attrs:{id:"empty_filter_box"}}),a("div",{staticClass:"box full_box",class:e.popFilter?"popped_out":"",attrs:{id:"filter_container"}},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("h1",[e._v("MPrint Beacon Administration")]),a("a",{staticClass:"pl-2 medium_text",attrs:{href:""},on:{click:function(t){return t.preventDefault(),e.clearFilters.apply(null,arguments)}}},[e._v("Clear Filters")])]),a("div",{staticClass:"flex_member end"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("label",{attrs:{for:"filter_environment"}},[e._v("Environment:")]),a("v-select",{attrs:{id:"filter_environment",options:[{label:"Campus Computing Sites",value:"sites"},{label:"MiWorkspace",value:"miworkspace"}],reduce:function(e){return e.value}},on:{input:e.filterBeacons},model:{value:e.filters.environment,callback:function(t){e.$set(e.filters,"environment",t)},expression:"filters.environment"}})],1),a("div",{staticClass:"flex_member"},[a("div",[a("label",{attrs:{for:"filter_quick_search"}},[e._v("Quick Search:")]),a("v-select",{attrs:{id:"filter_quick_search",taggable:"",multiple:"",options:[],"dropdown-should-open":function(){return!1}},on:{input:e.filterBeacons},model:{value:e.filters.quick_search,callback:function(t){e.$set(e.filters,"quick_search",t)},expression:"filters.quick_search"}})],1),a("p",[e._v("Join filters with: "),a("label",{attrs:{for:"join_and"}},[e._v("And")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.filterJoinWith,expression:"filterJoinWith"}],attrs:{type:"radio",id:"join_and",name:"filter_join_with",value:"and",checked:"checked"},domProps:{checked:e._q(e.filterJoinWith,"and")},on:{change:[function(t){e.filterJoinWith="and"},e.filterBeacons]}}),e._v(" or "),a("label",{attrs:{for:"join_or"}},[e._v("Or")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.filterJoinWith,expression:"filterJoinWith"}],attrs:{type:"radio",id:"join_or",name:"filter_join_with",value:"or"},domProps:{checked:e._q(e.filterJoinWith,"or")},on:{change:[function(t){e.filterJoinWith="or"},e.filterBeacons]}})])])])])]),e.beaconData.isLoaded?a("div",{staticClass:"flex_row center"},[a("div",{staticClass:"flex_member"},[a("p",[e._v("Showing "+e._s(e.visibleBeacons.missing.length+e.visibleBeacons.live.length)+" "+e._s(e.visibleBeacons.missing.length+e.visibleBeacons.live.length===1?"beacon":"beacons"))])])]):e._e()])]),e.beaconData.isLoaded||e.beaconAdminData.isLoaded?e.beaconAdminData.isLoaded&&!e.beaconAdminData.isBeaconAdmin?[e._m(1)]:e.beaconAdminData.isLoaded&&e.beaconAdminData.isError?[e._m(2)]:e.beaconData.isLoaded&&e.beaconData.isError?[e._m(3)]:[a("div",{staticClass:"flex_row"},[e._m(4),e._l(e.visibleBeacons.missing,(function(t,n){return[a("div",{key:"beacon_missing_"+n,staticClass:"box beacon_box error_box",class:[e.expandedBoxes.includes(t.beacon_uid)?"expanded":""],attrs:{id:"beacon_missing_"+n+"_box"},on:{click:function(a){return e.toggle(t.beacon_uid)}}},[a("div",{staticClass:"bold medium_text"},[e._v(e._s(t.beacon_uid))]),a("div",{staticClass:"medium_text"},[e._v("Plugged Into: "),a("a",{attrs:{href:e.publicPath+"/info#queue="+t.printer_name,target:"_blank"}},[e._v(e._s(t.printer_name))])]),a("div",{staticClass:"medium_text"},[e._v("Serial Number: "+e._s(t.serial_number))]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.expandedBoxes.includes(t.beacon_uid),expression:"expandedBoxes.includes(beacon.beacon_uid)"}],staticClass:"beacon_actions flex_row"},[a("div",{staticClass:"flex_member button button_blue",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.showModalForBeacon(n,"missing")}}},[e._v("Modify Beacon")]),a("div",{staticClass:"flex_member pl-3 pr-3"}),a("div",{staticClass:"flex_member button button_red",on:{click:function(a){return a.stopPropagation(),a.preventDefault(),e.deleteBeacon(t.beacon_uid)}}},[e._v("Delete Beacon")])])])]}))],2),a("hr",{staticClass:"main_divider"}),a("div",{staticClass:"flex_row"},[e._m(5),e._l(e.visibleBeacons.live,(function(t,n){return[a("div",{key:"beacon_live_"+n,staticClass:"box beacon_box",class:[e.expandedBoxes.includes(t.beacon_uid)?"expanded":""],attrs:{id:"beacon_live_"+n+"_box"},on:{click:function(a){return e.toggle(t.beacon_uid)}}},[a("div",{staticClass:"bold medium_text"},[e._v(e._s(t.beacon_uid))]),a("div",{staticClass:"medium_text"},[e._v("Plugged Into: "),a("a",{attrs:{href:e.publicPath+"/info#queue="+t.printer_name,target:"_blank"}},[e._v(e._s(t.printer_name))])]),a("div",{staticClass:"medium_text"},[e._v("Serial Number: "+e._s(t.serial_number))]),a("div",{staticClass:"medium_text"},[e._v("Broadcasts "+e._s(1===t.attachments.length?"1 queue":t.attachments.length+" queues"))]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.expandedBoxes.includes(t.beacon_uid),expression:"expandedBoxes.includes(beacon.beacon_uid)"}],staticClass:"medium_text"},[a("ul",[e._l(t.attachments,(function(t,s){return[a("li",{key:"attachment_"+n+"_"+s},[a("a",{attrs:{href:e.publicPath+"/info#queue="+t.queue_name,target:"_blank"}},[e._v(e._s(t.queue_name))]),e._v(" - "),a("span",{staticClass:"capitalize"},[e._v(e._s(t.beacon_class))])])]}))],2)]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.expandedBoxes.includes(t.beacon_uid),expression:"expandedBoxes.includes(beacon.beacon_uid)"}],staticClass:"beacon_actions flex_row"},[a("div",{staticClass:"flex_member button button_blue",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.showModalForBeacon(n,"live")}}},[e._v("Modify Beacon")]),a("div",{staticClass:"flex_member pl-3 pr-3"}),a("div",{staticClass:"flex_member button button_red",on:{click:function(a){return a.stopPropagation(),a.preventDefault(),e.deleteBeacon(t.beacon_uid)}}},[e._v("Delete Beacon")])])])]}))],2)]:[e._m(0)]],2),null!==e.modifyBeacon?a("div",{staticClass:"modal",attrs:{id:"beacon_modal"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeOpenModal(!1)}}},[e._m(6),a("div",{staticClass:"modal_content_no_overflow"},[a("h2",[e._v("Modifying Beacon: "+e._s(e.modifyBeacon.beacon_uid))]),e.queueData.isLoaded&&!e.queueData.isError?a("div",{staticClass:"pt-12"},[a("div",[a("label",{attrs:{for:"edit_plugged_in"}},[e._v("Printer that this beacon is plugged into: ")]),a("v-select",{attrs:{id:"edit_plugged_in",options:e.queueData.queues,label:"name",reduce:function(e){return e.name}},model:{value:e.modifyBeacon.printer_name,callback:function(t){e.$set(e.modifyBeacon,"printer_name",t)},expression:"modifyBeacon.printer_name"}})],1),a("div",[a("p",{staticClass:"label_text"},[e._v("Queues to Broadcast: "),e.modifyAttachments.length?e._e():a("span",[e._v("None")])]),e.modifyAttachments.length?[a("ul",e._l(e.modifyAttachments,(function(t,n){return a("li",{key:"modify_attachments_"+n},[a("v-select",{attrs:{options:e.queueData.queues,label:"name"},model:{value:e.modifyAttachments[n],callback:function(t){e.$set(e.modifyAttachments,n,t)},expression:"modifyAttachments[index]"}}),e._v(" - "),a("a",{staticClass:"red",attrs:{href:""},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.removeAttachment(n)}}},[e._v("Remove Broadcasted Queue")])],1)})),0)]:e._e(),a("a",{staticClass:"label_text",attrs:{href:""},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.addAttachment.apply(null,arguments)}}},[e._v("+ Add a queue")])],2)]):e.queueData.isLoaded&&e.queueData.isError?a("div",[a("div",{staticClass:"medium_text"},[e._v("Failed to load queue data. Cannot edit beacon! Please refresh the page and try again.")])]):e._e()]),a("div",{staticClass:"modal_footer"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("div",{staticClass:"button",on:{click:function(t){return e.closeOpenModal(!1)}}},[e._v("Cancel")])]),a("div",{staticClass:"flex_member end"},[a("div",{staticClass:"button button_blue",class:e.disableSave?"disabled":"",on:{click:function(t){return e.closeOpenModal(!0)}}},[a("i",{staticClass:"far fa-save mr-1"}),e._v("Save Beacon")])])])])]):e._e()])},ie=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member full_width medium_text center"},[e._v("Loading Beacons... "),n("img",{attrs:{src:a("d9b6"),alt:"loading"}})])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member full_width medium_text center"},[e._v("You are not an authorized Beacon Administrator. If you believe you should be, please contact the MPrint team at "),a("a",{attrs:{href:"mailto:mprint@umich.edu"}},[e._v("mprint@umich.edu")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member full_width medium_text center"},[e._v("Failed to determine if you are authorized to view this page! Please refresh and try again.")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member full_width medium_text center"},[e._v("Failed to load beacons! Please refresh and try again.")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_member full_width"},[a("h2",[e._v("Beacons Missing Attachments")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_member full_width"},[a("h2",[e._v("Live Beacons")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Edit Beacon")])])}],oe={name:"beaconsAdmin",data:function(){return{beaconAdminData:{isError:!1,isLoaded:!1,isBeaconAdmin:!1},beaconData:{isError:!1,isLoaded:!1,beacons:[]},disableSave:!1,enableMask:!1,expandedBoxes:[],filters:{environment:null,quick_search:[]},filterJoinWith:"and",modifyAttachments:[],modifyBeacon:null,msg:null,popFilter:!1,publicPath:window.location.origin,queueData:{isError:!1,isLoaded:!1,queues:[]},visibleBeacons:{live:[],missing:[]}}},props:{user:{type:Object,default:function(){return this.$store.getters.getUser}}},methods:{addAttachment:function(){this.modifyAttachments.push("")},clearFilters:function(){this.filters.environment=null,this.filters.quick_search=[],this.filterBeacons()},closeOpenModal:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,s,r,c,l;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!e){a.next=8;break}n=t,t.msg="Attempting to modify beacon...",s=[],r=Object(i["a"])(n.modifyAttachments);try{for(r.s();!(c=r.n()).done;)l=c.value,s.push("".concat(l.service_abbreviation.toLowerCase(),":").concat(l.name))}catch(u){r.e(u)}finally{r.f()}return a.next=8,p.methods.put("api/beacons/".concat(n.modifyBeacon.beacon_uid),{attachments:s.join(";"),printer_name:n.modifyBeacon.printer_name}).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!+t.data.result.count){e.next=8;break}return n.msg="Successfully modified beacon!",n.$set(n.beaconData,"isLoaded",!1),n.$set(n.beaconData,"beacons",[]),e.next=6,n.getBeaconData();case 6:e.next=10;break;case 8:console.log(t.data.result),n.msg="Something went wrong... please refresh and try again";case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.log(e),n.msg="An error occurred! Please refresh and try again."})).finally((function(){window.setTimeout((function(){n.msg=null}),4e3)}));case 8:t.enableMask=!1,t.modifyAttachments=[],t.modifyBeacon=null;case 11:case"end":return a.stop()}}),a)})))()},collapse:function(e){if(this.expandedBoxes.includes(e)){var t=this.expandedBoxes.indexOf(e);this.$delete(this.expandedBoxes,+t)}},deleteBeacon:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:n=window.confirm("Are you sure you want to fully delete beacon ".concat(e,"? A deleted beacon can only be re-registered using the Beacon Admin tool in the MPrint Mobile App!")),n&&(s=t,s.msg="Attempting to delete beacon...",p.methods.delete("api/beacons/".concat(e)).then((function(t){if(+t.data.result.count){s.msg="Successfully deleted beacon!";var a=s.beaconData.beacons.filter((function(t){return t.beacon_uid!==e}));s.$set(s.beaconData,"beacons",a),s.filterBeacons()}else console.log(t.data.result),s.msg="Something went wrong... please refresh and try again"})).catch((function(e){console.log(e),s.msg="An error occurred! Please refresh and try again."})).finally((function(){window.setTimeout((function(){s.msg=null}),4e3)})));case 2:case"end":return a.stop()}}),a)})))()},expand:function(e){this.expandedBoxes.push(e)},filterBeacons:function(){this.msg="Filtering beacons...";var e=this.beaconData.beacons,t=[],a=Object.values(this.filters).filter((function(e){return null!==e&&e.length})).length;if(a){if("and"===this.filterJoinWith)for(var n=!0,s=0,r=Object.keys(this.filters);s<r.length;s++){var i=r[s];null!==this.filters[i]&&this.filters[i].length&&(n?n=!1:e=t,t=this._filterHelper(e,i))}else for(var o=0,c=Object.keys(this.filters);o<c.length;o++){var l=c[o];null!==this.filters[l]&&this.filters[l].length&&(t=t.concat(this._filterHelper(e,l)))}this.visibleBeacons.missing=t.filter((function(e){return!Object.keys(e).includes("attachments")||Object.keys(e).includes("attachments")&&0===e.attachments.length})),this.visibleBeacons.live=t.filter((function(e){return Object.keys(e).includes("attachments")&&e.attachments.length>0}))}else this.visibleBeacons.missing=e.filter((function(e){return!Object.keys(e).includes("attachments")||Object.keys(e).includes("attachments")&&0===e.attachments.length})),this.visibleBeacons.live=e.filter((function(e){return Object.keys(e).includes("attachments")&&e.attachments.length>0}));this.msg=""},getBeaconAdminData:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,"admin"!==e.user.role?p.methods.get("api/beaconadmins/".concat(a.user.uniqname)).then((function(e){+e.data.result.count&&(a.beaconAdminData.isBeaconAdmin=!0)})).catch((function(e){console.log(e),a.beaconAdminData.isError=!0,a.msg="An error occurred! Please refresh the page and try again.",window.setTimeout((function(){a.msg=null}),4e3)})).finally((function(){a.beaconAdminData.isLoaded=!0,a.beaconAdminData.isBeaconAdmin&&(a.getBeaconData(),a.getQueues())})):(e.beaconAdminData.isBeaconAdmin=!0,e.beaconAdminData.isLoaded=!0,e.getBeaconData(),e.getQueues());case 2:case"end":return t.stop()}}),t)})))()},getBeaconData:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,p.methods.get("api/beacons?attachments=1").then((function(e){+e.data.result.count?(a.beaconData.beacons=e.data.result.result.filter((function(e){return!+e.deleted})),a.filterBeacons()):(console.log(e.data.result),a.msg="Something went wrong... please refresh and try again!",a.beaconData.isError=!0)})).catch((function(e){a.beaconData.isError=!0,console.log(e),a.msg="An error occurred! Please refresh and try again."})).finally((function(){a.beaconData.isLoaded=!0,window.setTimeout((function(){a.msg=null}),4e3)}));case 2:case"end":return t.stop()}}),t)})))()},getQueues:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,p.methods.get("api/queues?detailedWithoutJobs=1").then((function(e){+e.data.result.count?a.queueData.queues=e.data.result.result.filter((function(e){return-1===e.name.indexOf("-fax-")&&-1===e.name.indexOf("-poster-")&&-1===e.name.indexOf("-follow-me")})):(console.log(e.data.result),a.msg="Something went wrong... please refresh and try again",a.queueData.isError=!0)})).catch((function(e){a.queueData.isError=!0,a.msg="An error occurred while populating the list of queues! Please refresh to try again.",console.log("An error occurred while populating the list of queues! ".concat(e))})).finally((function(){a.queueData.isLoaded=!0,window.setTimeout((function(){a.msg=""}),4e3)}));case 2:case"end":return t.stop()}}),t)})))()},removeAttachment:function(e){var t=[];for(var a in this.modifyAttachments)+a!==+e&&t.push(this.modifyAttachments[+a]);this.modifyAttachments=t},scrollListener:function(){this.popFilter=window.scrollY>100},showModalForBeacon:function(e,t){var a=this;this.modifyBeacon={},this.modifyAttachments=[];for(var n=0,s=Object.keys(this.visibleBeacons[t][e]);n<s.length;n++){var r=s[n];if("attachments"===r){var o,c=Object(i["a"])(this.visibleBeacons[t][e]["attachments"]);try{var l=function(){var e=o.value,t=a.queueData.queues.filter((function(t){return t.name===e.queue_name}));t.length&&a.modifyAttachments.push(t[0])};for(c.s();!(o=c.n()).done;)l()}catch(u){c.e(u)}finally{c.f()}}else this.modifyBeacon[r]=this.visibleBeacons[t][e][r]}this.enableMask=!0},toggle:function(e){this.expandedBoxes.includes(e)?this.collapse(e):this.expand(e)},_filterHelper:function(e,t){var a=this,n=[],s=null;if("environment"===t)n=n.concat(e.filter((function(e){return Object.keys(e).includes("attachments")&&e.attachments.length&&e.attachments.filter((function(e){return e.beacon_class.toLowerCase()===a.filters["environment"].toLowerCase()})).length})));else{var r,o=Object(i["a"])(this.filters[t]);try{var c=function(){var t=r.value;s=e.filter((function(e){return JSON.stringify(e).toLowerCase().indexOf(t.toLowerCase())>-1})),"and"===a.filterJoinWith?e=s:s.map((function(e){return n.push(e)}))};for(o.s();!(r=o.n()).done;)c()}catch(l){o.e(l)}finally{o.f()}"and"===this.filterJoinWith&&e.map((function(e){return n.push(e)}))}return n}},created:function(){this.user.uniqname&&this.getBeaconAdminData(),window.addEventListener("scroll",this.scrollListener)},watch:{user:function(){this.getBeaconAdminData()}},destroyed:function(){window.removeEventListener("scroll",this.scrollListener)}},ce=oe,le=(a("66d3"),a("852c"),Object(f["a"])(ce,re,ie,!1,null,"0234214c",null)),ue=le.exports,de=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("div",{attrs:{id:"content"}},[n("div",{staticClass:"flex_row"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.popFilter,expression:"popFilter"}],staticClass:"box full_box",attrs:{id:"empty_filter_box"}}),n("div",{staticClass:"box full_box",class:e.popFilter?"popped_out":"",attrs:{id:"filter_container"}},[n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member"},[n("h1",[e._v("MPrint Cache - "),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.isFullCache,expression:"!isFullCache"}]},[e._v(e._s(e.cacheId))]),n("span",{directives:[{name:"show",rawName:"v-show",value:e.isFullCache,expression:"isFullCache"}]},[e._v("All Entries")])]),e.isFullCache?[n("div",[n("button",{staticClass:"ml-2 button button_large button_red",on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.flushCache.apply(null,arguments)}}},[n("i",{staticClass:"fas fa-trash mr-2",attrs:{title:"Flush Cache",alt:"Flush Cache"}}),e._v("Flush Cache")])])]:e._e()],2),n("div",{staticClass:"flex_member end"},[e.isFullCache?[n("div",{staticClass:"lh_36"},[n("label",{attrs:{for:"quick_search"}},[e._v("Quick Search: "),n("v-select",{attrs:{id:"quick_search",taggable:"",multiple:"",options:[],"dropdown-should-open":function(){return!1}},on:{input:e.quickSearch},model:{value:e.quickSearchVals,callback:function(t){e.quickSearchVals=t},expression:"quickSearchVals"}})],1)]),n("p",{staticClass:"pl-2"},[e._v("Join filters with: "),n("label",{attrs:{for:"join_and"}},[e._v("And")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.filterJoinWith,expression:"filterJoinWith",modifiers:{lazy:!0}}],attrs:{type:"radio",id:"join_and",name:"filter_join_with",value:"and",checked:"checked"},domProps:{checked:e._q(e.filterJoinWith,"and")},on:{change:[function(t){e.filterJoinWith="and"},e.quickSearch]}}),e._v(" or "),n("label",{attrs:{for:"join_or"}},[e._v("Or")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.filterJoinWith,expression:"filterJoinWith",modifiers:{lazy:!0}}],attrs:{type:"radio",id:"join_or",name:"filter_join_with",value:"or"},domProps:{checked:e._q(e.filterJoinWith,"or")},on:{change:[function(t){e.filterJoinWith="or"},e.quickSearch]}})])]:[n("div",{staticClass:"lh_36 medium_text"},[n("a",{staticClass:"mr-4",attrs:{href:"/cache"}},[e._v("Back to Full Cache")]),n("span",{staticClass:"mr-4"},[e._v("|")]),n("a",{staticClass:"red",attrs:{href:"/cache"},on:{click:function(t){return e.deleteKey(e.cacheId)}}},[e._v("Delete Key and Go Back to Full Cache"),n("i",{staticClass:"fa fa-trash ml-2",attrs:{title:"Delete Key",alt:"Delete Key","aria-label":"Delete Key"}})])])]],2)]),e.isFullCache&&e.isLoaded&&!e.isError?n("div",{staticClass:"flex_row center"},[n("div",{staticClass:"flex_member"},[n("p",[e._v("Showing "+e._s(Object.keys(e.visibleCacheData["result"]).length)+" cache entries")])])]):e._e()])]),n("p",{directives:[{name:"show",rawName:"v-show",value:e.isLoading,expression:"isLoading"}]},[e._v("Loading... "),n("img",{attrs:{src:a("d9b6"),alt:"loading",title:"loading"}})]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isLoaded&&!e.isError,expression:"isLoaded && !isError"}],staticClass:"full_box"},[e.isFullCache?[n("table",{staticClass:"full_width"},[e._m(0),n("tbody",[e._l(Object.keys(e.visibleCacheData["result"]),(function(t){return[n("tr",{key:"key_"+t,class:{gray:+t%2},attrs:{id:"key_"+t}},[n("td",{},[n("a",{attrs:{href:"/cache/"+e.visibleCacheData["result"][+t]}},[e._v(e._s(e.visibleCacheData["result"][+t]))])]),n("td",[n("a",{staticClass:"red",on:{click:function(a){return a.stopPropagation(),a.preventDefault(),e.deleteKey(e.visibleCacheData["result"][+t])}}},[e._v("Delete Key"),n("i",{staticClass:"fa fa-trash ml-2",attrs:{title:"Delete Key",alt:"Delete Key","aria-label":"Delete Key"}})])])])]})),Object.keys(e.cacheData).includes("stats")?n("tr",{class:{gray:Object.keys(e.visibleCacheData["result"]).length%2},attrs:{id:"cache_stats"}},[n("td",{attrs:{colspan:"2"}},[n("span",[e._v("Statistics: ")]),n("br"),n("pre",[e._v(e._s(JSON.stringify(e.cacheData["stats"],null,4)))])])]):e._e()],2)])]:[n("div",{staticClass:"box full_box"},[n("div",{staticClass:"medium_text"},[e._v("Cache Expiry: "+e._s(e._formatDate(e.cacheData["result"]["ttl"])))]),n("div",{staticClass:"medium_text"},[e._v("Cache Value:")]),n("div",[n("pre",[e._v(e._s(JSON.stringify(e.cacheData["result"]["result"],null,4)))])])])]],2),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isLoaded&&e.isError,expression:"isLoaded && isError"}],staticClass:"flex_row"},[n("div",{staticClass:"flex_member center"},[e._v("An error has occurred: "+e._s(""!==e.error?e.error:"Something went wrong! Please refresh the page."))])])])])},pe=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("thead",[a("tr",{staticClass:"gray medium_text"},[a("th",{attrs:{colspan:"2"}},[e._v("Cache Keys")]),a("th")])])}],_e=(a("4d90"),{name:"cache",data:function(){return{cacheAttributes:{cache_key:"Key",result:"Value",ttl:"Time To Live (seconds)"},cacheData:{result:{}},error:"",filterJoinWith:"and",isError:!1,isLoaded:!1,isLoading:!0,popFilter:!1,quickSearchVals:[],quickSearchTimeout:null,visibleCacheData:{result:{}}}},computed:{isFullCache:function(){return 0===this.cacheId.length}},props:{cacheId:{type:String,default:""},user:{type:Object,default:function(){return this.$store.getters.getUser}}},methods:{deleteKey:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,t.resetAjaxVars(),a.next=4,p.methods.delete("api/cachehelper/"+e);case 4:a.next=10;break;case 6:a.prev=6,a.t0=a["catch"](0),console.log(a.t0),t.isError=!0;case 10:return a.prev=10,t.isLoading=!1,t.isLoaded=!0,t.isError||(n=t.cacheData["result"].indexOf(e),t.$delete(t.cacheData["result"],n),t.quickSearch()),a.finish(10);case 15:case"end":return a.stop()}}),a,null,[[0,6,10,15]])})))()},flushCache:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a=window.confirm("Are you sure you want to flush the cache? This will complete clear out all cached values and is irreversible!"),!a){t.next=17;break}return t.prev=2,e.resetAjaxVars(),t.next=6,p.methods.delete("api/cachehelper/flushCache");case 6:t.next=12;break;case 8:t.prev=8,t.t0=t["catch"](2),console.log(t.t0),e.isError=!0;case 12:return t.prev=12,e.isLoading=!1,e.isLoaded=!0,e.isError||(e.cacheData.result={},e.quickSearch()),t.finish(12);case 17:case"end":return t.stop()}}),t,null,[[2,8,12,17]])})))()},getCacheData:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a="api/cachehelper",e.cacheId.length&&(a+="/"+e.cacheId+"?includeTTL"),t.prev=2,e.resetAjaxVars(),t.next=6,p.methods.get(a);case 6:n=t.sent,e.cacheData=n["data"],e.visibleCacheData=e.cacheData,t.next=16;break;case 11:t.prev=11,t.t0=t["catch"](2),console.log(t.t0),e.isError=!0,e.error=t.t0;case 16:return t.prev=16,e.isLoading=!1,e.isLoaded=!0,t.finish(16);case 20:case"end":return t.stop()}}),t,null,[[2,11,16,20]])})))()},quickSearch:function(){var e=this;this.visibleCacheData={result:[]},"and"!==this.filterJoinWith&&this.quickSearchVals&&this.quickSearchVals.length||(this.visibleCacheData["result"]=this.cacheData["result"]);var t,a=Object(i["a"])(this.quickSearchVals);try{var n=function(){var a=t.value;"and"===e.filterJoinWith?e.visibleCacheData["result"]=e.visibleCacheData["result"].filter((function(e){return e.toLowerCase().indexOf(a.toLowerCase())>=0})):e.visibleCacheData["result"]=e.visibleCacheData["result"].concat(e.cacheData["result"].filter((function(t){return t.toLowerCase().indexOf(a.toLowerCase())>=0&&e.visibleCacheData["result"].indexOf(t)<0})))};for(a.s();!(t=a.n()).done;)n()}catch(s){a.e(s)}finally{a.f()}},resetAjaxVars:function(){this.isError=!1,this.isLoading=!0,this.isLoaded=!1},scrollListener:function(){this.popFilter=window.scrollY>100},_formatDate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),t=new Date(e);return(""+(1+t.getMonth())).padStart(2,"0")+"/"+(""+t.getDate()).padStart(2,"0")+"/"+t.getFullYear()+" "+(""+t.getHours()).padStart(2,"0")+":"+(""+t.getMinutes()).padStart(2,"0")+":"+(""+t.getSeconds()).padStart(2,"0")}},mounted:function(){this.user.uniqname&&"admin"===this.user.role&&this.getCacheData(),window.addEventListener("scroll",this.scrollListener)},watch:{user:function(e){"admin"===e.role?this.getCacheData():(console.log("ERROR: cache requires role ADMIN, user has role: "+e.role),this.isLoading=!1,this.isError=!0,this.isLoaded=!0,this.error="Access Denied! Viewing the cache requires 'Admin' role, but you have role '".concat(e.role,"'"))}},destroyed:function(){window.removeEventListener("scroll",this.scrollListener)}}),me=_e,fe=(a("f4b0"),Object(f["a"])(me,de,pe,!1,null,"009e1090",null)),he=fe.exports,ge=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.msg,expression:"msg"}],attrs:{id:"message_container"}},[n("div",{staticClass:"message",attrs:{id:"message"}},[e._v(e._s(e.msg))])]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.enableMask,expression:"enableMask"}],staticClass:"mask dim",attrs:{id:"mask"},on:{click:function(t){return e.closeOpenModal(null)}}}),n("div",{attrs:{id:"content",role:"main"}},[n("div",{staticClass:"flex_row"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.popFilter,expression:"popFilter"}],staticClass:"box full_box",attrs:{id:"empty_filter_box"}}),n("div",{staticClass:"box full_box",class:e.popFilter?"popped_out":"",attrs:{id:"filter_container"}},[n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member"},[n("h1",[e._v("MPrint Credit Code Administration")]),n("div",[n("button",{staticClass:"ml-2 button button_large button_blue",on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.showCodeGenerationModal.apply(null,arguments)}}},[n("i",{staticClass:"fas fa-plus mr-2"}),e._v("Generate New Codes")])])]),n("div",{staticClass:"flex_member end flex_row_fit"},[n("div",{staticClass:"flex_member"},[n("label",{attrs:{for:"filter_value"}},[e._v("Value:")]),n("v-select",{attrs:{id:"filter_value",options:["","$5.00","$10.00","$20.00"]},on:{input:e.filterCodes},model:{value:e.valueFilter,callback:function(t){e.valueFilter=t},expression:"valueFilter"}})],1),n("div",{staticClass:"flex_member end"},[n("div",[n("label",{attrs:{for:"filter_quick_search"}},[e._v("Quick Search:")]),n("v-select",{attrs:{id:"filter_quick_search",taggable:"",multiple:"",options:[],"dropdown-should-open":function(){return!1}},on:{input:function(t){return e.filterCodes()}},model:{value:e.quickSearch,callback:function(t){e.quickSearch=t},expression:"quickSearch"}})],1),n("p",{staticClass:"pl-2"},[e._v("Join filters with: "),n("label",{attrs:{for:"join_and"}},[e._v("And")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.filterJoinWith,expression:"filterJoinWith"}],attrs:{type:"radio",id:"join_and",name:"filter_join_with",value:"and",checked:"checked"},domProps:{checked:e._q(e.filterJoinWith,"and")},on:{change:[function(t){e.filterJoinWith="and"},function(t){return e.filterCodes()}]}}),e._v(" or "),n("label",{attrs:{for:"join_or"}},[e._v("Or")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.filterJoinWith,expression:"filterJoinWith"}],attrs:{type:"radio",id:"join_or",name:"filter_join_with",value:"or"},domProps:{checked:e._q(e.filterJoinWith,"or")},on:{change:[function(t){e.filterJoinWith="or"},function(t){return e.filterCodes()}]}})])])])]),e.creditCodeData.isLoaded?n("div",{staticClass:"flex_row center"},[n("div",{staticClass:"flex_member"},[n("p",[e._v("Showing "+e._s(e.visibleCreditCodes.length)+" "+e._s(1===e.visibleCreditCodes.length?"code":"codes"))])])]):e._e()])]),e._m(0),n("div",{staticClass:"full_width full_box box"},[e.creditCodeData.isLoaded?e.creditCodeData.isLoaded&&e.creditCodeData.isError?[n("div",{staticClass:"medium_text center"},[e._v("Failed to load Credit Codes! Please refresh and try again.")])]:[e.visibleCreditCodes.length?[n("table",{staticClass:"full_width"},[e._m(2),e._l(e.visibleCreditCodes,(function(t,s){return[n("tr",{key:"code_row_"+s,staticClass:"code_row",class:+t["redeemed"]?"redeemed_row":s%2===0?"even_row":""},[n("td",{staticClass:"pad-8"},[e._v(e._s(t.id))]),n("td",{staticClass:"pad-8"},[e._v(e._s(t.code))]),n("td",{staticClass:"pad-8"},[e._v("$"+e._s(t.value)+".00")]),n("td",{staticClass:"pad-8"},[e._v(e._s(+t["redeemed"]?"Yes":"No"))]),n("td",{staticClass:"pad-8"},[e._v(e._s(+t["redeemed"]?t["redeemed_by"]:"N/A"))]),n("td",{staticClass:"pad-8"},[e._v(e._s(+t["redeemed"]?t.formatted_redeemed_on:"N/A"))]),e.actingOnRow===s?n("td",{staticClass:"pad-8"},[n("img",{attrs:{src:a("d9b6"),alt:"acting on code"}})]):+t["redeemed"]?n("td",{staticClass:"pad-8"},[n("i",{staticClass:"fas fa-undo action_icon",attrs:{title:"Unredeem code"},on:{click:function(a){return e.unredeemCode(t.code,t["redeemed_by"],s)}}})]):n("td",{staticClass:"pad-8"},[n("i",{staticClass:"fas fa-hand-holding-usd mr-4 action_icon",attrs:{title:"Redeem for user"},on:{click:function(t){return e.showRedeemModal(s)}}}),n("i",{staticClass:"fas fa-trash action_icon",attrs:{title:"Delete code"},on:{click:function(a){return e.deleteCode(t.code,s)}}})])])]}))],2)]:[n("div",{staticClass:"medium_text center"},[e._v("There are no Credit Codes to show!")])]]:[e._m(1)]],2)]),null!==e.showModalForCode?n("div",{staticClass:"modal",attrs:{id:"redeem_modal"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeOpenModal(!1)}}},[e._m(3),n("div",{staticClass:"modal_content"},[n("h2",{staticClass:"pb-12"},[e._v("Code: "+e._s(e.showModalForCode.code))]),n("table",{staticClass:"full_width"},[n("tr",[e._m(4),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.redeemForUser,expression:"redeemForUser"}],attrs:{type:"text",id:"redeem_for"},domProps:{value:e.redeemForUser},on:{input:function(t){t.target.composing||(e.redeemForUser=t.target.value)}}})])])])]),n("div",{staticClass:"modal_footer"},[n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member"},[n("div",{staticClass:"button",on:{click:function(t){return e.closeOpenModal(!1)}}},[e._v("Cancel")])]),n("div",{staticClass:"flex_member end"},[n("div",{staticClass:"button button_green",on:{click:function(t){return e.closeOpenModal(!0)}}},[n("i",{staticClass:"fas fa-dollar-sign mr-2"}),e._v("Redeem Code")])])])])]):e._e(),e.showGenerationModal?n("div",{staticClass:"modal",attrs:{id:"generation_modal"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeOpenModal(!1)}}},[e._m(5),n("div",{staticClass:"modal_content"},[n("h2",{staticClass:"pb-12"},[e._v("Batch Size: 500 Codes")]),n("table",{staticClass:"full_width"},[n("tr",[e._m(6),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.generationValue,expression:"generationValue"}],attrs:{type:"number",id:"redeem_value"},domProps:{value:e.generationValue},on:{input:function(t){t.target.composing||(e.generationValue=t.target.value)}}})])])])]),n("div",{staticClass:"modal_footer"},[n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member"},[n("div",{staticClass:"button",on:{click:function(t){return e.closeOpenModal(!1)}}},[e._v("Cancel")])]),n("div",{staticClass:"flex_member end"},[n("div",{staticClass:"button button_blue",on:{click:function(t){return e.closeOpenModal(!0)}}},[n("i",{staticClass:"fas fa-plus mr-2"}),e._v("Generate Codes")])])])])]):e._e()])},ve=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member full_width"},[a("h2",[e._v("Credit Codes")])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"medium_text center"},[e._v("Loading Credit Codes... "),n("img",{attrs:{src:a("d9b6"),alt:"loading credit codes"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"bold pad-8"},[e._v("ID")]),a("td",{staticClass:"bold pad-8"},[e._v("Code")]),a("td",{staticClass:"bold pad-8"},[e._v("Value")]),a("td",{staticClass:"bold pad-8"},[e._v("Redeemed")]),a("td",{staticClass:"bold pad-8"},[e._v("Redeemed By")]),a("td",{staticClass:"bold pad-8"},[e._v("Redeemed On")]),a("td",{staticClass:"bold pad-8"},[e._v("Actions")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Redeem Credit Code")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"redeem_for"}},[e._v("For whom are you redeeming this code?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Generate New Credit Codes")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"redeem_value"}},[e._v("How much should each of the new codes be worth?")])])}],be=(a("2b3d"),a("5319"),{name:"creditCodesAdmin",data:function(){return{actingOnRow:null,creditCodeData:{isError:!1,isLoaded:!1,creditCodes:[]},enableMask:!1,filterJoinWith:"and",generationValue:5,msg:null,quickSearch:[],popFilter:!1,redeemForUser:null,showGenerationModal:!1,showModalForCode:null,valueFilter:null,visibleCreditCodes:[]}},props:{user:{type:Object,default:function(){return this.$store.getters.getUser}}},methods:{closeOpenModal:function(e){e?this.showModalForCode?this.redeemCode(this.showModalForCode.code,this.redeemForUser):this.showGenerationModal&&this.generateNewCodes():this.actingOnRow=null,this.redeemForUser=null,this.showGenerationModal=!1,this.showModalForCode=null,this.enableMask=!1},deleteCode:function(e,t){var a=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:s=a,a.actingOnRow=t,a.msg="Attempting to delete code...",p.methods.delete("api/creditcodes/".concat(e)).then((function(t){if(+t.data.result.count){s.msg="Successfully deleted code!";var a=0,n=!1;while(!n&&a<s.creditCodeData.creditCodes.length)s.creditCodeData.creditCodes[a].code===e&&(s.$delete(s.creditCodeData.creditCodes,a),n=!0),a+=1;s.filterCodes()}else console.log(t.data.result),s.msg="Something went wrong. Please refresh and try again."})).catch((function(e){console.log(e),s.msg="An error occurred! Please refresh and try again."})).finally((function(){window.setTimeout((function(){s.msg=null}),4e3),s.actingOnRow=null}));case 4:case"end":return n.stop()}}),n)})))()},filterCodes:function(){var e=this;if(this.msg="Filtering credit codes...","and"!==this.filterJoinWith&&this.quickSearch&&this.quickSearch.length?this.visibleCreditCodes=[]:this.visibleCreditCodes=this.creditCodeData.creditCodes,this.valueFilter){var t=+this.valueFilter.slice(1);"and"===this.filterJoinWith?this.visibleCreditCodes=this.visibleCreditCodes.filter((function(e){return+e.value===+t})):this.visibleCreditCodes=this.visibleCreditCodes.concat(this.creditCodeData.creditCodes.filter((function(e){return+e.value===+t})))}var a,n=Object(i["a"])(this.quickSearch);try{var s=function(){var t=a.value;"and"===e.filterJoinWith?e.visibleCreditCodes=e.visibleCreditCodes.filter((function(e){return JSON.stringify(Object.values(e)).toLowerCase().indexOf(t.toLowerCase())>-1})):e.visibleCreditCodes=e.visibleCreditCodes.concat(e.creditCodeData.creditCodes.filter((function(e){return JSON.stringify(Object.values(e)).toLowerCase().indexOf(t.toLowerCase())>-1})))};for(n.s();!(a=n.n()).done;)s()}catch(r){n.e(r)}finally{n.f()}this.msg=""},generateNewCodes:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,e.msg="Generating a new batch of codes...",p.methods.post("api/creditcodes",{value:a.generationValue}).then((function(e){if(+e.data.result.count){var t=document.createElement("a");t.id="csv_download_link",t.download="creditcodes_".concat(a.generationValue,".csv");var n=new Blob(e.data.result.result.map((function(e){return"".concat(e,"\r\n")})),{type:"text/csv"});t.href=URL.createObjectURL(n),document.getElementById("content").appendChild(t),document.getElementById("csv_download_link").click(),document.getElementById("content").removeChild(t),a.msg="Retrieving new credit codes...",a.creditCodeData={isError:!1,isLoaded:!1,creditCodes:[]},a.getCreditCodes()}else console.log(e.data.result),a.msg="Something went wrong... please refresh and try again."})).catch((function(e){console.log(e),a.msg="An error occurred! Please refresh and try again."})).finally((function(){window.setTimeout((function(){a.msg=null}),4e3)}));case 3:case"end":return t.stop()}}),t)})))()},getCreditCodes:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,p.methods.get("api/creditcodes").then((function(e){+e.data.result.count?(e.data.result.result.map((function(e){return e.formatted_redeemed_on=+e["redeemed"]?Object(Q["a"])(Object(U["a"])(e["redeemed_on"].split(".")[0].replace("T"," ")),"yyyy-LL-dd HH:mm:ss"):null})),a.creditCodeData.creditCodes=e.data.result.result,a.filterCodes()):a.creditCodeData.isError=!0})).catch((function(e){console.log(e),a.msg="An error occurred! Failed to load credit code data.",a.creditCodeData.isError=!0})).finally((function(){a.creditCodeData.isLoaded=!0,window.setTimeout((function(){a.msg=null}),4e3)}));case 2:case"end":return t.stop()}}),t)})))()},redeemCode:function(e,t){var a=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var s,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:s=a,r=Object(Q["a"])(Date.now(),"yyyy-LL-dd HH:mm:ss"),a.msg="Redeeming code...",p.methods.put("api/creditcodes/".concat(e),{action:"redeem",redeemedBy:t}).then((function(a){if(+a.data.result.count){s.msg="Successfully redeemed code for user ".concat(t,"!");var n=0,i=!1;while(!i&&n<s.creditCodeData.creditCodes.length)s.creditCodeData.creditCodes[n].code===e&&(s.$set(s.creditCodeData.creditCodes[n],"redeemed",1),s.$set(s.creditCodeData.creditCodes[n],"redeemed_by",t),s.$set(s.creditCodeData.creditCodes[n],"redeemed_on",r),s.$set(s.creditCodeData.creditCodes[n],"formatted_redeemed_on",r),i=!0),n+=1;s.filterCodes()}else console.log(a.data.result),s.msg="Something went wrong. Please refresh and try again!"})).catch((function(e){console.log(e),s.msg="An error has occurred. Please refresh and try again."})).finally((function(){window.setTimeout((function(){s.msg=null}),4e3),s.actingOnRow=null}));case 4:case"end":return n.stop()}}),n)})))()},scrollListener:function(){this.popFilter=window.scrollY>100},showCodeGenerationModal:function(){this.showGenerationModal=!0,this.enableMask=!0},showRedeemModal:function(e){this.showModalForCode=this.visibleCreditCodes[e],this.enableMask=!0,this.actingOnRow=e},unredeemCode:function(e,t,a){var n=this;return Object(o["a"])(regeneratorRuntime.mark((function s(){var r;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:r=n,n.actingOnRow=a,n.msg="Attempting to unredeem code...",p.methods.put("api/creditcodes/".concat(e),{action:"unredeem",redeemedBy:t}).then((function(t){if(+t.data.result.count){r.msg="Successfully unredeemed and deleted code!";var a=0,n=!1;while(!n&&a<r.creditCodeData.creditCodes.length)r.creditCodeData.creditCodes[a].code===e&&(r.$delete(r.creditCodeData.creditCodes,a),n=!0),a+=1;r.filterCodes()}else console.log(t.data.result),r.msg="Something went wrong. Please refresh and try again!"})).catch((function(e){console.log(e),r.msg="An error has occurred. Please refresh and try again."})).finally((function(){window.setTimeout((function(){r.msg=null}),4e3),r.actingOnRow=null}));case 4:case"end":return s.stop()}}),s)})))()}},created:function(){this.user.uniqname&&this.getCreditCodes(),window.addEventListener("scroll",this.scrollListener)},watch:{user:function(){this.getCreditCodes()}},destroyed:function(){window.removeEventListener("scroll",this.scrollListener)}}),we=be,ye=(a("18d3"),Object(f["a"])(we,ge,ve,!1,null,"fbff05de",null)),xe=ye.exports,Ce=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper",on:{dragenter:function(t){return t.stopPropagation(),t.preventDefault(),e.captureDrag(t)},dragleave:function(t){return t.stopPropagation(),t.preventDefault(),e.captureDrag(t)},dragover:function(t){return t.stopPropagation(),t.preventDefault(),e.captureDrag(t)},drop:function(t){return t.preventDefault(),t.stopPropagation(),e.dragEnd.apply(null,arguments)}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.msg.length,expression:"msg.length"}],attrs:{id:"message_container"}},[e._l(e.msg,(function(t,a){return[n("div",{key:"message_"+a,staticClass:"message",attrs:{id:"message_"+a},domProps:{innerHTML:e._s(t)}})]}))],2),n("div",{directives:[{name:"show",rawName:"v-show",value:e.enableMask,expression:"enableMask"}],staticClass:"mask dim",attrs:{id:"mask"},on:{click:function(t){return e.closeOpenModal(!1)}}}),n("div",{attrs:{id:"content",role:"main"}},[e._m(0),n("div",{staticClass:"flex_row"},[n("div",{staticClass:"box medium_text"},[e.userData.isLoaded?e.userData.isLoaded&&!e.userData.isError?[n("h2",{staticClass:"large_text pb-12 center"},[e._v("Account Snapshot")]),n("div",{staticStyle:{padding:"0 8px"}},[n("table",{staticClass:"full_width"},[n("tr",[e._m(2),n("td",[n("span",{class:e.userData.accounts.available_balance<0?"negative":e.userData.accounts.available_balance>0?"positive":"bold"},[e._v("$"+e._s(e.userData.accounts.available_balance))])])]),n("tr",[e._m(3),n("td",[n("span",{class:e.userData.accounts.student_account_balance<0?"negative":"bold"},[e._v("$"+e._s(e.userData.accounts.student_account_balance))])])]),n("tr",[e._m(4),n("td",[n("span",[n("a",{attrs:{href:e.publicPath+"/accounts","aria-label":"View available shared accounts"}},[e._v(e._s(e.userData.accounts.shared.length)+" "+e._s(1!==e.userData.accounts.shared.length?"accounts":"account")+" available")])])])])]),n("div",{staticClass:"pt-1 full_width center"},[n("span",{staticClass:"fas fa-hand-holding-usd mr-2"}),n("a",{attrs:{href:"https://"+e.papercutUrl+"/",target:"_blank","aria-label":"Request a refund"}},[e._v("Request a refund")])])])]:[n("div",[e._v("An error occurred! Failed to load Account data. Please refresh and try again.")])]:[e._m(1)]],2),n("div",{staticClass:"box"},[e._m(5),n("div",{staticClass:"flex_column",staticStyle:{"justify-content":"center","align-content":"center",height:"calc(100% - 46px)"}},[n("div",{staticClass:"flex_row center"},[n("div",{staticClass:"flex_member"},[n("span",{attrs:{title:"Approximate number of trees consumed by making the total sheets printed"}},[n("span",{staticClass:"fas fa-tree mr-1"}),e._v(e._s(e.userData.stats.total_trees)+" Trees")])]),n("div",{staticClass:"flex_member"},[n("span",{attrs:{title:"Approximate amount of CO2 released during production of the total sheets printed"}},[n("span",{staticClass:"fas fa-smog mr-1"}),e._v(e._s(e.userData.stats.kg_of_c02)+" KG of CO"),n("sub",[e._v("2")])])]),n("div",{staticClass:"flex_member"},[n("span",{attrs:{title:"Approximate energy used to produce total sheets printed, in terms of energy consumed by a 60W light bulb"}},[n("span",{staticClass:"fas fa-lightbulb mr-1"}),e._v(e._s(e.userData.stats.bulb_hours)+" Bulb Hours")])])]),n("div",{staticClass:"flex_row center"},[n("div",{staticClass:"flex_member"},[n("span",{attrs:{title:"Total number of pieces of paper printed"}},[n("span",{staticClass:"fas fa-file mr-1"}),e._v(e._s(e.userData.stats.total_sheets)+" Sheets")])]),n("div",{staticClass:"flex_member"},[n("span",[n("span",{staticClass:"far fa-calendar-alt mr-1"}),e._v("Stats since "+e._s(e.userData.stats.total_since))])]),n("div",{staticClass:"flex_member"},[n("a",{attrs:{href:e.publicPath+"/reports",target:"_blank","aria-label":"View Full Print History"}},[e._v("View Full Print History")])])])])]),n("div",{staticClass:"box"},[e._m(6),n("div",{staticClass:"flex_column",staticStyle:{"justify-content":"center","align-content":"center"}},[n("div",{staticClass:"pb-12"},[n("span",{staticClass:"fas fa-info-circle mr-2"}),n("a",{attrs:{href:""},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.showModal(0,"intro",t)}}},[e._v("How do I use this page?")])]),e._m(7),n("div",{staticClass:"pb-12"},[n("span",{staticClass:"fas fa-question-circle mr-2"}),n("a",{attrs:{href:e.publicPath+"/help",target:"_blank"}},[e._v("View the MPrint Help Page")])])])])]),e._m(8),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.queuesList.isLoaded||!e.userData.isLoaded,expression:"!queuesList.isLoaded || !userData.isLoaded"}],staticClass:"flex_row center"},[e._m(9)]),n("div",{staticClass:"flex_row",attrs:{id:"file_box_container"}},[n("div",{staticClass:"mprint_form"},[n("h2",{staticClass:"actions_header"},[e._v("Available Actions")]),n("div",{staticClass:"flex_column",staticStyle:{height:"75%","margin-top":"12%"}},[e.queuesList.isLoaded&&e.userData.isLoaded?[null!==e.selectedDefaultPrinter?[n("div",{staticClass:"full_width flex_member center"},[e._v("Default Destination: "),n("a",{attrs:{id:"default_destination_link",href:""},on:{mousedown:function(t){return t.preventDefault(),t.stopPropagation(),e.showModal(null,"default_queue",t)},mouseover:function(t){return t.preventDefault(),t.stopPropagation(),e.showHover(null,"default_queue",t)},mouseout:function(t){return e.hideHover("default_queue")},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),t.preventDefault(),e.showModal(null,"default_queue",t))}}},[e._v(e._s(e.selectedDefaultPrinter.name))])]),e.selectedDefaultPrinter.notes?[n("div",{staticClass:"flex_member full_width center bold box-highlight mb-1",staticStyle:{"font-size":"12px","padding-top":"8px"}},[e._m(10),n("span",{domProps:{innerHTML:e._s(e.selectedDefaultPrinter.notes)}})])]:e._e()]:[n("div",{staticClass:"full_width flex_member"},[n("button",{staticClass:"full_width button_blue button_large button",attrs:{id:"default_destination_button","aria-label":"Set Default Destination"},on:{keydown:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.returnFocusToElt=t.target},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),t.preventDefault(),e.showModal(null,"default_queue",t))},mousedown:function(t){t.preventDefault(),e.returnFocusToElt=t.target},mouseup:function(t){return t.preventDefault(),e.showModal(null,"default_queue",t)}}},[e._v("Set Default Destination")])])]]:e._e(),n("div",{staticClass:"flex_member full_width"},[n("button",{staticClass:"full_width button button_green button_large",class:e.disableSubmitAll?"disabled":"",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.submitAllJobs(!0)}}},[e._v("Generate Preview for All Jobs")])]),n("div",{staticClass:"flex_member full_width"},[n("button",{staticClass:"full_width button button_green button_large mb-1",class:e.disableSubmitAll?"disabled":"",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.submitAllJobs(!1)}}},[e._v("Submit All Jobs")])])],2)]),e._l(e.jobs,(function(t,a){return n("div",{key:"mprint_form_"+a,staticClass:"mprint_form drop_target",attrs:{id:"mprint_form_"+a},on:{drop:function(t){return e.dropFile(a,t)}}},[n("div",{staticClass:"drop_target_mask"}),n("h2",{staticClass:"mprint_form_header"},[n("span",{ref:"job_header",refInFor:!0,attrs:{tabindex:"-1","aria-label":"MPrint File "+(a+1)}},[e._v("File "+e._s(a+1))]),n("button",{directives:[{name:"show",rawName:"v-show",value:null===t.jobStatus,expression:"job.jobStatus === null"}],staticClass:"icon_button",attrs:{tabindex:"0","aria-label":"Remove File "+(a+1),id:"remove_file_"+a},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.removeFile(a)},click:function(t){return t.preventDefault(),e.removeFile(a)}}},[n("i",{staticClass:"fas fa-times white"})])]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.queuesList.isLoaded&&!e.queuesList.isError,expression:"queuesList.isLoaded && !queuesList.isError"}]},[n("div",{staticClass:"form_component",attrs:{id:"destination_"+a}},[n("i",{staticClass:"fas blue fa-print"}),n("button",{directives:[{name:"show",rawName:"v-show",value:null===t.selected_printer,expression:"job.selected_printer === null"}],staticClass:"button_blue_outline button",attrs:{tabindex:"0","aria-label":"Set Destination"},on:{keydown:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.returnFocusToElt=t.target},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.showModal(a,"queue",t)},mousedown:function(t){t.preventDefault(),e.returnFocusToElt=t.target},mouseup:function(t){return t.preventDefault(),e.showModal(a,"queue",t)}}},[e._v("Set Destination")]),null!==t.selected_printer?n("a",{attrs:{href:""},on:{mousedown:function(t){return t.preventDefault(),t.stopPropagation(),e.showModal(a,"queue",t)},mouseover:function(t){return t.preventDefault(),t.stopPropagation(),e.showHover(a,"queue",t)},mouseout:function(t){return e.hideHover("queue")},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),t.stopPropagation(),e.showModal(a,"queue",t))}}},[e._v(e._s(t.selected_printer.name))]):e._e()]),n("div",{staticClass:"form_component",attrs:{id:"document_"+a}},[n("i",{staticClass:"fas blue fa-file-upload"}),n("button",{directives:[{name:"show",rawName:"v-show",value:null===t.file,expression:"job.file === null"}],staticClass:"button_blue_outline button",attrs:{tabindex:"0","aria-label":"Choose Document"},on:{keydown:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.returnFocusToElt=t.target},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.showModal(a,"file",t)},click:function(t){return t.preventDefault(),e.showModal(a,"file",t)}}},[e._v("Choose Document")]),null!==t.file?n("a",{attrs:{href:""},on:{mousedown:function(t){return t.preventDefault(),t.stopPropagation(),e.showModal(a,"file",t)},mouseover:function(t){return t.preventDefault(),t.stopPropagation(),e.showHover(a,"file",t)},mouseout:function(t){return e.hideHover("file")},keydown:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;t.preventDefault(),t.stopPropagation(),e.returnFocusToElt=t.target},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),t.stopPropagation(),e.showModal(a,"file",t))}}},[e._v(e._s(t.file.name))]):e._e()]),n("div",{staticClass:"form_component",attrs:{id:"options_"+a}},[n("i",{staticClass:"fas blue fa-cogs"}),n("button",{staticClass:"button_blue_outline button",attrs:{tabindex:"0","aria-label":"Set Job Options"},on:{keydown:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.returnFocusToElt=t.target},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.showModal(a,"options",t)},click:function(t){return t.preventDefault(),e.showModal(a,"options",t)},mouseover:function(t){return t.preventDefault(),t.stopPropagation(),e.showHover(a,"options",t)},mouseout:function(t){return e.hideHover("options")}}},[e._v("Set Options")])]),n("div",{staticClass:"form_component",attrs:{id:"accounts_"+a}},[n("i",{staticClass:"fas blue fa-user-alt"}),n("button",{directives:[{name:"show",rawName:"v-show",value:e.userData.accounts.shared.length&&null===t.account,expression:"userData.accounts.shared.length && job.account === null"}],staticClass:"button_blue_outline button",attrs:{tabindex:"0","aria-label":"Choose Account"},on:{keydown:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.returnFocusToElt=t.target},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.showModal(a,"account",t)},click:function(t){return t.preventDefault(),e.showModal(a,"account",t)}}},[e._v("Choose Account")]),null!==t.account?n("a",{attrs:{href:""},on:{mousedown:function(t){return t.preventDefault(),t.stopPropagation(),e.showModal(a,"account",t)},mouseover:function(t){return t.preventDefault(),t.stopPropagation(),e.showHover(a,"account",t)},mouseout:function(t){return e.hideHover("account")},keydown:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;t.preventDefault(),t.stopPropagation(),e.returnFocusToElt=t.target},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),t.stopPropagation(),e.showModal(a,"account",t))}}},[e._v(e._s(t.account))]):e._e()]),n("div",{staticClass:"form_component center"},[n("div",{directives:[{name:"show",rawName:"v-show",value:null===t.jobStatus,expression:"job.jobStatus === null"}],staticClass:"button button_blue",class:t.isPrintable?"":"disabled",attrs:{id:"submit_preview_"+a,tabindex:"0","aria-label":"Generate Print Preview"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.submitJob(a,!0)},click:function(t){return e.submitJob(a,!0)}}},[e._v("Generate Print Preview")])]),n("div",{staticClass:"form_component center"},[n("div",{directives:[{name:"show",rawName:"v-show",value:null===t.jobStatus,expression:"job.jobStatus === null"}],staticClass:"button button_blue",class:t.isPrintable?"":"disabled",attrs:{id:"submit_"+a,tabindex:"0","aria-label":"Submit Job"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.submitJob(a,!1)},click:function(t){return e.submitJob(a,!1)}}},[e._v(e._s(null!==t.selected_printer&&"m-follow-me"===t.selected_printer.name?"Submit":"Print"))])])])])})),n("div",{directives:[{name:"show",rawName:"v-show",value:e.queuesList.isLoaded&&!e.queuesList.isError&&e.userData.isLoaded&&e.jobs.length<e.maxJobsNum,expression:"queuesList.isLoaded && !queuesList.isError && userData.isLoaded && jobs.length < maxJobsNum"}],staticClass:"empty_box drop_target",attrs:{id:"new_mprint_form",tabindex:"0","aria-label":"Add Another File"},on:{click:function(t){return e.addNewJob(!1,null)},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.addNewJob(!1,null)},drop:function(t){return e.dropFile(null,t)}}},[n("div",{staticClass:"drop_target_mask"}),n("div",{staticClass:"center large_content",attrs:{"aria-label":"Add new MPrint File"}},[e._v("Add Another File +")])])],2),n("hr",{staticClass:"main_divider"}),e._m(11),n("table",{directives:[{name:"show",rawName:"v-show",value:e.submittedJobs.length>0,expression:"submittedJobs.length > 0"}],staticClass:"fill_width mb-3",attrs:{id:"session_table"}},[e._m(12),n("tbody",e._l(e.submittedJobs,(function(t,s){return n("tr",{key:"session_row_"+s,class:s%2?"gray_row":"white_row",attrs:{id:"session_row_"+s}},[n("td",[e._v(e._s(t.selected_printer.name))]),n("td",[e._v(e._s(t.file.name))]),n("td",[e._v(e._s(t.account))]),n("td",[e._v(e._s(t.submittedAt))]),n("td",{staticClass:"flex_row"},["failed"===t.jobStatus?[n("div",{ref:"job_status",refInFor:!0,staticClass:"flex_member",attrs:{tabindex:"-1"}},[n("span",{staticClass:"capitalize"},[e._v(e._s(t.jobStatus.split(" ")[0]))]),e._v(" - "),n("span",[e._v("Something may be wrong with your file! "),n("a",{attrs:{href:e.publicPath+"/help#prepare",target:"_blank"}},[e._v("Click here")]),e._v(" to learn more.")])])]:[n("div",{ref:"job_status",refInFor:!0,staticClass:"flex_member",attrs:{tabindex:"-1"}},[n("span",{staticClass:"capitalize"},[e._v(e._s(t.jobStatus.split(" ")[0]))]),e._v(" "),n("span",[e._v(e._s(t.jobStatus.split(" ").slice(1).join(" ")))]),n("img",{directives:[{name:"show",rawName:"v-show",value:t.statusUpdateCount>0,expression:"job.statusUpdateCount > 0"}],staticClass:"ml-4",staticStyle:{"vertical-align":"baseline"},attrs:{src:a("d9b6")}})]),n("div",{staticClass:"flex_member"},[+t.preview&&"completed"===t.jobStatus?n("div",{staticClass:"button",attrs:{role:"button",tabindex:"0","aria-label":"Show print preview"},on:{click:function(t){return e.showModal(s,"preview")},keydown:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.returnFocusToElt=t.target},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.showModal(s,"preview",t)}}},[e._v("Show Print Preview")]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:["queued","submitting"].includes(t.jobStatus)&&t.statusUpdateCount>=10,expression:"['queued', 'submitting'].includes(job.jobStatus) && job.statusUpdateCount >= 10"}],staticClass:"button button_red",attrs:{role:"button",tabindex:"0","aria-label":"Cancel incomplete job"},on:{click:function(t){return e.cancelJob(s)},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.cancelJob(s)}}},[e._v("Cancel!")])])]],2)])})),0)]),n("p",{directives:[{name:"show",rawName:"v-show",value:0===e.submittedJobs.length,expression:"submittedJobs.length === 0"}],staticClass:"center large_text"},[e._v("Nothing printed yet this session!")])]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showIntroModal,expression:"showIntroModal"}],staticClass:"modal",attrs:{id:"intro","aria-label":"MPrint Introduction"},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:(t.preventDefault(),t.stopPropagation(),e.trapFocus("intro",t))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeOpenModal(!1)}]}},[e._m(13),n("div",{staticClass:"modal_content"},[n("p",{staticClass:"intro",staticStyle:{padding:"0 12px 12px 12px"}},[e._v("MPrint is an install-free way to print to many printers on campus in "+e._s(e.numSteps)+" easy steps. Simply choose your "),n("b",[e._v("destination")]),e._v(" printer, select (or drag and drop) the "),n("b",[e._v("document")]),e._v(" you wish to print, specify any printing "),n("b",[e._v("options")]),e._v(" (such as number of copies, paper size, or that you want to see a Print Preview), "),n("span",{directives:[{name:"show",rawName:"v-show",value:4===e.numSteps,expression:"numSteps === 4"}]},[e._v("and choose which "),n("b",[e._v("account")]),e._v(" you wish to charge, ")]),e._v("then submit! You can submit up to "),n("b",[e._v("5 documents")]),e._v(" at once, and even set a "),n("b",[e._v("default destination")]),e._v(" for all future print jobs to make your print experience faster and easier than before.")]),n("p",{staticClass:"intro",staticStyle:{padding:"0 12px 12px 12px"}},[n("b",[e._v("New:")]),e._v(" you can now submit documents that are up to 50MB in size! If you have any ideas for features you'd like to see, or something isn't working properly for you, please don't hesitate to "),n("a",{ref:"feedback_link",staticClass:"intro_link",attrs:{href:e.publicPath+"/feedback",target:"_blank"}},[e._v("send us your feedback")]),e._v("!")]),n("hr",{staticClass:"box_divider"}),n("p",{staticClass:"intro",staticStyle:{padding:"12px 12px 0 12px"}},[n("span",[e._v("Try printing to "),n("a",{ref:"followme_link",staticClass:"intro_link",attrs:{href:"https://teamdynamix.umich.edu/TDClient/30/Portal/KB/ArticleDet?ID=9611#follow-me","aria-label":"Learn More about Follow Me"}},[e._v("Follow Me")]),e._v(" to have your documents held until you're ready to release them, whenever and wherever you want them, using your Mcard or the MPrint Mobile app! "),n("a",{ref:"mobileapp_link",staticClass:"intro_link",attrs:{href:"https://teamdynamix.umich.edu/TDClient/30/Portal/KB/ArticleDet?ID=7766",target:"_blank","aria-label":"Learn more about the MPrint Mobile App"}},[e._v("Read more about it")]),e._v(", or download the app now! ("),n("b",[e._v("Note:")]),e._v(" Mobile app is for use on mobile devices only)")])]),n("p",{staticClass:"center",staticStyle:{padding:"0 12px 12px 12px"}},[n("a",{ref:"ios_link",attrs:{href:"https://itunes.apple.com/us/app/mprint-mobile/id1198608429?mt=8#",target:"_blank","aria-label":"iOS App Download Link"}},[n("i",{staticClass:"fab fa-apple fa-3x mr-2",staticStyle:{color:"#707070"}})]),n("a",{ref:"android_link",attrs:{href:"https://play.google.com/store/apps/details?id=edu.umich.mprint.app",target:"_blank","aria-label":"Android App Download Link"}},[n("i",{staticClass:"fab fa-android fa-3x mr-2 android-green"})])])]),n("div",{staticClass:"modal_footer"},[n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member"},[n("label",{attrs:{for:"hide_intro_modal"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.setHideIntroModal,expression:"setHideIntroModal"}],staticClass:"mr-1",attrs:{type:"checkbox",id:"hide_intro_modal"},domProps:{checked:Array.isArray(e.setHideIntroModal)?e._i(e.setHideIntroModal,null)>-1:e.setHideIntroModal},on:{change:function(t){var a=e.setHideIntroModal,n=t.target,s=!!n.checked;if(Array.isArray(a)){var r=null,i=e._i(a,r);n.checked?i<0&&(e.setHideIntroModal=a.concat([r])):i>-1&&(e.setHideIntroModal=a.slice(0,i).concat(a.slice(i+1)))}else e.setHideIntroModal=s}}}),e._v("Hide this window in the future")])]),n("div",{staticClass:"flex_member end"},[n("button",{ref:"intro_close",staticClass:"button button_blue mr-2",attrs:{role:"button","aria-label":"Close intro modal"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.closeOpenModal(!1)},click:function(t){return e.closeOpenModal(!1)}}},[e._v("Close")])])])])]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.queuesList.isLoaded&&!e.queuesList.isError&&null!==e.showQueueChooserForJob,expression:"queuesList.isLoaded && !queuesList.isError && showQueueChooserForJob !== null"}],staticClass:"modal",attrs:{id:"queue_chooser"},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:(t.preventDefault(),t.stopPropagation(),e.trapFocus("queue",t))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeQueueModal(!1,!1)}]}},[e._m(14),n("div",{staticClass:"modal_content_no_overflow"},[n("div",{staticClass:"box-graylight pad-8 center bold"},[n("span",[e._v("Not sure where the nearest printer is?")]),e._v(" "),n("a",{ref:"maps_link",staticClass:"bold blue",attrs:{href:e.publicPath+"/maps",target:"_blank","aria-label":"Find a printer using building maps"}},[e._v("Try using our building maps"),n("i",{staticClass:"fas fa-map-marked-alt ml-1"})])]),n("div",{staticClass:"full_width center pb-1 pt-1"},[n("a",{staticClass:"bold blue cursor_pointer",attrs:{href:""},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),t.preventDefault(),e.useFollowMe(!1))},click:function(t){return t.stopPropagation(),t.preventDefault(),e.useFollowMe(!1)}}},[e._v("Select Follow Me"),n("i",{staticClass:"ml-1 fas fa-question-circle",on:{mouseover:function(t){return e.showHover(null,"followMeInfoBox",t)},mouseout:function(t){return e.hideHover("followMeInfoBox")}}})]),e._v(" or choose a destination below:")]),n("v-select",{staticClass:"first_element",attrs:{name:"queue",id:"queue","aria-label":"Set Destination","aria-placeholder":"Set Destination",placeholder:"Set Destination",filterable:!1,label:"display_name",options:e.visibleQueues,selectable:function(e){return+e.enabled&&+e.is_public}},on:{search:e.queueSearchFunc,open:e.queueSelectOpen,close:e.queueSelectClose},scopedSlots:e._u([{key:"selected-option",fn:function(t){var a=t.display_name,s=t.notes;return[n("div",{attrs:{"aria-label":a}},[e._v(e._s(a)),s?[n("i",{staticClass:"pl-2 fas fa-info-circle"})]:e._e()],2)]}},{key:"option",fn:function(t){var a=t.display_name,s=t.name,r=t.enabled,i=t.is_public,o=t.notes,c=t.state,l=t.cost,u=t.additional_features;return[n("div",{staticClass:"flex_row bold"},[n("div",{staticClass:"flex_member",attrs:{"aria-label":a}},[e._v(e._s(a))]),i&&o?[n("i",{staticClass:"flex_member end fas fa-info-circle"})]:e._e()],2),n("div",{staticClass:"flex_row small"},[i?[n("div",{staticClass:"flex_member"},[e._v(e._s(s))]),n("div",{staticClass:"flex_member capitalize"},[e._v("Queue Status: "),n("span",{class:+r?"ok"===c.toLowerCase()?"green":"warning"===c.toLowerCase()?"yellow":"red":"red"},[e._v(e._s(+r?c:"Disabled"))])]),n("div",{staticClass:"flex_member"},[e._v(e._s(l>0?"$"+l+" per page":"No Cost"))]),n("div",{staticClass:"flex_member end"},[e._v("Additional Features: "+e._s(u.join(", ")))])]:[n("div",{staticClass:"flex_member full_width"},[e._v("Queue cannot be selected for direct printing - "+e._s(o))])]],2)]}},{key:"list-footer",fn:function(){return[n("li",{directives:[{name:"show",rawName:"v-show",value:e.hasMoreQueues,expression:"hasMoreQueues"}],ref:"queueListLoad"},[e._v("Loading more queues...")])]},proxy:!0}]),model:{value:e.selectedPrinter,callback:function(t){e.selectedPrinter=t},expression:"selectedPrinter"}}),e.selectedPrinter&&e.selectedPrinter.notes?[n("p",{staticClass:"center pad-8 bold box-highlight"},[n("span",[e._v("Note: ")]),n("span",{domProps:{innerHTML:e._s(e.selectedPrinter.notes)}})])]:e._e()],2),n("div",{staticClass:"modal_footer"},[n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member"},[n("div",{ref:"queue_cancel",staticClass:"button",attrs:{tabindex:"0",role:"button","aria-label":"Cancel this operation"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.closeQueueModal(!1,!1)},click:function(t){return e.closeQueueModal(!1,!1)}}},[e._v("Cancel")])]),n("div",{staticClass:"flex_member end"},[n("div",{ref:"queue_save",staticClass:"button button_blue mr-2",class:null!==e.selectedPrinter||null!==e.selectedDefaultPrinter?"":"disabled",attrs:{tabindex:"0",role:"button","aria-label":"Save selected printer and close this menu"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.closeQueueModal(!0,!1)},click:function(t){return e.closeQueueModal(!0,!1)}}},[e._v("Save and Close"),n("span",{staticClass:"far fa-save ml-2"})]),n("div",{ref:"queue_save_next",staticClass:"button button_blue last_element",class:null!==e.selectedPrinter||null!==e.selectedDefaultPrinter?"":"disabled",attrs:{tabindex:"0",role:"button","aria-label":"Save selected printer and move to next menu"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.closeQueueModal(!0,!0)},click:function(t){return e.closeQueueModal(!0,!0)}}},[e._v("Continue"),n("span",{staticClass:"fas fa-arrow-right ml-2"})])])])])]),e.showFollowMeInfoBox?n("div",{staticClass:"hover_box",style:{top:e.hover_y+"px",left:e.hover_x+"px"},attrs:{id:"followMeInfoBox","aria-hidden":"true"}},[n("div",{staticClass:"bold",staticStyle:{"padding-bottom":"4px"}},[e._v("About Follow Me")]),n("div",[e._v("Follow Me will hold your document for up to 24 hours, during which time you can release it to a printer near you with the MPrint Mobile app, or by swiping your Mcard.")])]):e._e(),e.jobs.length&&null!==e.showQueueHoverForJob?n("div",{staticClass:"hover_box",style:{top:e.hover_y+"px",left:e.hover_x+"px"},attrs:{id:"queue_hover","aria-hidden":"true"}},[n("h2",{staticClass:"center"},[e._v("Selected Print Queue")]),null!==e.jobs[e.showQueueHoverForJob].selected_printer?n("div",[n("table",{staticClass:"fill_width"},[n("tbody",[n("tr",[n("td",[e._v("Display Name:")]),n("td",{staticClass:"buffer_cell"}),n("td",[e._v(e._s(e.jobs[e.showQueueHoverForJob].selected_printer.display_name))])]),n("tr",[n("td",[e._v("Name:")]),n("td",{staticClass:"buffer_cell"}),n("td",[e._v(e._s(e.jobs[e.showQueueHoverForJob].selected_printer.name))])]),n("tr",[n("td",[e._v("Enrolled Service:")]),n("td",{staticClass:"buffer_cell"}),n("td",[e._v(e._s(e.jobs[e.showQueueHoverForJob].selected_printer.service_name))])]),n("tr",[n("td",[e._v("Current Status:")]),n("td",{staticClass:"buffer_cell"}),n("td",{staticClass:"bold capitalize",class:+e.jobs[e.showQueueHoverForJob].selected_printer.enabled?"ok"===e.jobs[e.showQueueHoverForJob].selected_printer.state.toLowerCase()?"green":"warning"===e.jobs[e.showQueueHoverForJob].selected_printer.state.toLowerCase()?"yellow":"red":"red"},[e._v(e._s(+e.jobs[e.showQueueHoverForJob].selected_printer.enabled?e.jobs[e.showQueueHoverForJob].selected_printer.state+(e.jobs[e.showQueueHoverForJob].selected_printer.state_reasons&&e.jobs[e.showQueueHoverForJob].selected_printer.state_reasons!==e.jobs[e.showQueueHoverForJob].selected_printer.state?" - "+e.jobs[e.showQueueHoverForJob].selected_printer.state_reasons:""):"Disabled"))])]),n("tr",[n("td",[e._v("Cost per Page:")]),n("td",{staticClass:"buffer_cell"}),n("td",[e._v("$"+e._s(e.jobs[e.showQueueHoverForJob].selected_printer.cost))])]),n("tr",[n("td",[e._v("Additional Features:")]),n("td",{staticClass:"buffer_cell"}),n("td",[e._v(e._s(e.jobs[e.showQueueHoverForJob].selected_printer.additional_features.length?e.jobs[e.showQueueHoverForJob].selected_printer.additional_features.join(", "):"None"))])])])])]):e._e()]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:null!==e.showFileChooserForJob,expression:"showFileChooserForJob !== null"}],staticClass:"modal drop_target",attrs:{id:"file_chooser"},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:(t.preventDefault(),t.stopPropagation(),e.trapFocus("file",t))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeFileModal(!1,!1)}],drop:function(t){return e.dropFile(e.showFileChooserForJob,t)}}},[n("div",{staticClass:"drop_target_mask"}),e._m(15),n("div",{staticClass:"modal_content"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.userData.isLoaded&&!e.userData.isError,expression:"userData.isLoaded && !userData.isError"}],attrs:{id:"file_menu"}},[n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member flex_column",attrs:{id:"file_menu_buttons"}},[n("div",{ref:"computer_button",staticClass:"flex_member file_menu_button first_element",class:"computer"===e.fileModalService?"selected":"",attrs:{id:"computer_button",tabindex:"0",role:"button"},on:{click:function(t){return e.changeFileService("computer")},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.changeFileService("computer")}}},[n("i",{staticClass:"fas fa-desktop fa-2x mr-2"}),n("h3",[e._v("Computer")])]),n("div",{ref:"drive_button",staticClass:"flex_member file_menu_button",class:"drive"===e.fileModalService?"selected":"",attrs:{id:"drive_button",tabindex:"0",role:"button"},on:{click:function(t){return e.changeFileService("drive")},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.changeFileService("drive")}}},[n("i",{staticClass:"fab fa-google-drive fa-2x mr-2"}),n("h3",[e._v("Google Drive")])]),n("div",{ref:"dropbox_button",staticClass:"flex_member file_menu_button",class:"dropbox"===e.fileModalService?"selected":"",attrs:{id:"dropbox_button",tabindex:"0",role:"button"},on:{click:function(t){return e.changeFileService("dropbox")},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.changeFileService("dropbox")}}},[n("i",{staticClass:"fab fa-dropbox fa-2x mr-2"}),n("h3",[e._v("Dropbox")])])]),n("div",{staticClass:"flex_member",attrs:{id:"file_menu_content"}},[[n("form",{directives:[{name:"show",rawName:"v-show",value:"computer"===e.fileModalService,expression:"fileModalService === 'computer'"}],ref:"fileForm",attrs:{enctype:"multipart/form-data"}},[n("label",{attrs:{for:"file"}},[e._v("File to print: "),n("input",{ref:"file",attrs:{type:"file",name:"file",id:"file"},on:{change:e.changeFile}})])])],e.userData.cloudServices.includes(e.fileModalService)?[n("div",{directives:[{name:"show",rawName:"v-show",value:"computer"!==e.fileModalService,expression:"fileModalService !== 'computer'"}],attrs:{id:"cloudServiceFileExplorer"},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),t.stopPropagation(),e.trapArrow(t))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),t.stopPropagation(),e.trapArrow(t))}]}},[e.cloudServiceBreadcrumbs.length?n("div",{staticClass:"cloudservice_back_parent"},[n("a",{directives:[{name:"show",rawName:"v-show",value:1===e.cloudServiceBreadcrumbs.length,expression:"cloudServiceBreadcrumbs.length === 1"}],ref:"file_back_to_root",staticClass:"cloudservice_back",attrs:{href:""},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.cloudFileClicked("!!!BACK!!!"))},click:function(t){return t.preventDefault(),e.cloudFileClicked("!!!BACK!!!")}}},[e._v("< Back to Root Folder")]),e.cloudServiceBreadcrumbs.length>1?n("a",{ref:"file_back",staticClass:"cloudservice_back",attrs:{href:""},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.cloudFileClicked("!!!BACK!!!"))},click:function(t){return t.preventDefault(),e.cloudFileClicked("!!!BACK!!!")}}},[e._v("< Back to "+e._s(e.cloudServiceBreadcrumbs[e.cloudServiceBreadcrumbs.length-2].name))]):e._e()]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.cloudServiceIsLoading,expression:"cloudServiceIsLoading"}]},[e._v("Loading... "),n("img",{attrs:{src:a("d9b6"),alt:"loading","aria-label":"loading"}})]),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.cloudServiceIsLoading&&null!==e.cloudServiceError,expression:"!cloudServiceIsLoading && cloudServiceError !== null"}]},[e._v("Error: "+e._s(e.cloudServiceError))]),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.cloudServiceIsLoading&&null===e.cloudServiceError&&!e.cloudServiceFiles.length&&null===e.cloudServiceConnectPrompt&&null===e.fileModalService,expression:"!cloudServiceIsLoading && cloudServiceError === null && !cloudServiceFiles.length && cloudServiceConnectPrompt === null && fileModalService === null"}]},[e._v("Begin by choosing a file location to find a file to print!")]),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.cloudServiceIsLoading&&null===e.cloudServiceError&&!e.cloudServiceFiles.length&&null===e.cloudServiceConnectPrompt&&null!==e.fileModalService,expression:"!cloudServiceIsLoading && cloudServiceError === null && !cloudServiceFiles.length && cloudServiceConnectPrompt === null && fileModalService !== null"}]},[e._v("There are no available files to print!")]),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.cloudServiceIsLoading&&null===e.cloudServiceError&&!e.cloudServiceFiles.length&&null!==e.cloudServiceConnectPrompt,expression:"!cloudServiceIsLoading && cloudServiceError === null && !cloudServiceFiles.length && cloudServiceConnectPrompt !== null"}],domProps:{innerHTML:e._s(e.cloudServiceConnectPrompt)}}),e._l(e.cloudServiceFiles,(function(t,a){return n("div",{directives:[{name:"show",rawName:"v-show",value:!e.cloudServiceIsLoading,expression:"!cloudServiceIsLoading"}],key:"cloudservicefiles_"+a,ref:"cloudservicefiles",refInFor:!0,staticClass:"button cloudservice_item",class:["cloudservice_"+t.type,"file"===t.type&&null!==e.selectedFile&&Object.keys(e.selectedFile).includes("path")&&e.selectedFile.path===t.path?"cloudservice_selected":""],attrs:{role:"button",tabindex:"0","aria-label":t.name,title:"unprintable_file"===t.type?"File cannot be printed due to its file extension!":t.name},on:{click:function(a){return e.cloudFileClicked(t)},keydown:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.cloudFileClicked(t)}}},[n("i",{staticClass:"mr-4",class:"file"===t.type?["fa","fa-file"]:"dir"===t.type?["fa","fa-folder"]:["fas","fa-ban"]}),n("span",[e._v(e._s(t.name))])])}))],2)]:null===e.fileModalService?[n("div",{staticClass:"medium_text"},[e._v("Begin by choosing a file location to find a file to print!")])]:"computer"!==e.fileModalService?[n("div",{staticClass:"medium_text"},[e._v("Service is not currently connected! Manage your cloud service connections "),n("a",{attrs:{href:e.publicPath+"/settings"}},[e._v("here")]),e._v(".")])]:e._e()],2)]),null!==e.selectedFile?n("div",{directives:[{name:"show",rawName:"v-show",value:!e.cloudServiceIsLoading&&null===e.cloudServiceError,expression:"!cloudServiceIsLoading && cloudServiceError === null"}],staticClass:"flex_row"},[n("div",{staticClass:"flex_member cloudservice_selected_info"},[e._m(16),n("p",[e._v("File Name: "+e._s(e.selectedFile.name))]),n("p",[e._v("File Size: "+e._s(Math.round(100*(e.selectedFile.size/1024/1024+Number.EPSILON))/100+" Mb"))]),n("p",{directives:[{name:"show",rawName:"v-show",value:e.selectedFile.size>e.maxFileSize,expression:"selectedFile.size > maxFileSize"}],staticClass:"red bold"},[e._v("This file exceeds the maximum file size of "+e._s(e.maxFileSizeMb)+"MB! Please choose another file to print.")]),n("p",{directives:[{name:"show",rawName:"v-show",value:!e.allowedExtensions.includes(e.extractExtension(e.selectedFile)),expression:"!(allowedExtensions.includes(extractExtension(selectedFile)))"}],staticClass:"red bold"},[e._v("MPrint is unable to print files of this file type ("+e._s(e.extractExtension(e.selectedFile))+")! Please choose another file to print.")])])]):e._e()])]),n("div",{staticClass:"modal_footer"},[n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member"},[n("div",{ref:"file_cancel",staticClass:"button",attrs:{role:"button",tabindex:"0"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.closeFileModal(!1,!1)},click:function(t){return e.closeFileModal(!1,!1)}}},[e._v("Cancel")])]),n("div",{staticClass:"flex_member end"},[n("div",{ref:"file_save",staticClass:"button button_blue mr-2",class:null!==e.selectedFile&&e.selectedFile.size<=e.maxFileSize&&e.allowedExtensions.includes(e.extractExtension(e.selectedFile))?"":"disabled",attrs:{role:"button",tabindex:"0"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.closeFileModal(!0,!1)},click:function(t){return e.closeFileModal(!0,!1)}}},[e._v("Save and Close"),n("span",{staticClass:"far fa-save ml-2"})]),n("div",{ref:"file_save_next",staticClass:"button button_blue last_element",class:null!==e.selectedFile&&e.selectedFile.size<=e.maxFileSize&&e.allowedExtensions.includes(e.extractExtension(e.selectedFile))?"":"disabled",attrs:{tabindex:"0",role:"button","aria-label":"Save selected file and move to next menu"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.closeFileModal(!0,!0)},click:function(t){return e.closeFileModal(!0,!0)}}},[e._v("Continue"),n("span",{staticClass:"fas fa-arrow-right ml-2"})])])])])]),e.jobs.length&&null!==e.showFileHoverForJob&&null!==e.jobs[e.showFileHoverForJob].file?n("div",{staticClass:"hover_box",style:{top:e.hover_y+"px",left:e.hover_x+"px"},attrs:{id:"file_hover","aria-hidden":"true"}},[n("h2",{staticClass:"center"},[e._v("Selected File")]),n("table",{staticClass:"fill_width"},[n("tbody",[n("tr",[n("td",[e._v("File Name:")]),n("td",{staticClass:"buffer_cell"}),n("td",[e._v(e._s(e.jobs[e.showFileHoverForJob].file.name))])]),n("tr",[n("td",[e._v("File Location:")]),n("td",{staticClass:"buffer_cell"}),n("td",{staticClass:"capitalize"},[e._v(e._s(Object.keys(e.jobs[e.showFileHoverForJob].file).includes("service")?e.jobs[e.showFileHoverForJob].file.service:"computer"))])]),n("tr",[n("td",[e._v("File Size:")]),n("td",{staticClass:"buffer_cell"}),n("td",[e._v(e._s(Math.round(100*(e.jobs[e.showFileHoverForJob].file.size/1024/1024+Number.EPSILON))/100+" Mb"))])]),n("tr",[n("td",[e._v("File Type:")]),n("td",{staticClass:"buffer_cell"}),n("td",[e._v(e._s(Object.keys(e.jobs[e.showFileHoverForJob].file).includes("extension")?e.jobs[e.showFileHoverForJob].file.extension.toUpperCase():e.jobs[e.showFileHoverForJob].file.name.split(".").pop().toUpperCase()))])])])])]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:null!==e.showOptsChooserForJob,expression:"showOptsChooserForJob !== null"}],staticClass:"modal",attrs:{id:"options_chooser"},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:(t.preventDefault(),t.stopPropagation(),e.trapFocus("opts",t))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeOptionsModal(!1,!1)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.stopPropagation(),t.preventDefault(),function(){}.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.stopPropagation(),t.preventDefault(),function(){}.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:(t.stopPropagation(),t.preventDefault(),function(){}.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])||"button"in t&&2!==t.button?null:(t.stopPropagation(),t.preventDefault(),function(){}.apply(null,arguments))}]}},[e._m(17),n("div",{staticClass:"modal_content"},[n("table",{staticClass:"fill_width"},[n("tbody",[e._m(18),n("tr",[n("td",{staticStyle:{width:"50%"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.opts_values.copies,expression:"opts_values.copies"}],ref:"options_0",staticClass:"focusable small_input first_element",attrs:{type:"number",name:"copies",id:"copies"},domProps:{value:e.opts_values.copies},on:{input:function(t){t.target.composing||e.$set(e.opts_values,"copies",t.target.value)}}})]),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.opts_values.range,expression:"opts_values.range"}],ref:"options_1",staticClass:"focusable",attrs:{type:"text",name:"range",id:"range",placeholder:"e.g. 1-4,7,9-12"},domProps:{value:e.opts_values.range},on:{input:function(t){t.target.composing||e.$set(e.opts_values,"range",t.target.value)}}})])]),e._m(19),e._m(20),n("tr",[n("td",{staticStyle:{width:"50%"}},[n("label",{attrs:{for:"orientation_portrait"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.opts_values.orientation,expression:"opts_values.orientation"}],ref:"options_2",staticClass:"focusable",attrs:{type:"radio",id:"orientation_portrait",value:"portrait",checked:"checked"},domProps:{checked:e._q(e.opts_values.orientation,"portrait")},on:{change:[function(t){return e.$set(e.opts_values,"orientation","portrait")},function(t){return e.setDefaultNUPLayout()}]}}),e._v(" Portrait")])]),n("td",[n("label",{attrs:{for:"two-sided-long-edge"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.opts_values.duplex,expression:"opts_values.duplex"}],ref:"options_4",staticClass:"focusable",attrs:{type:"radio",id:"two-sided-long-edge",value:"two-sided-long-edge",checked:"checked"},domProps:{checked:e._q(e.opts_values.duplex,"two-sided-long-edge")},on:{change:function(t){return e.$set(e.opts_values,"duplex","two-sided-long-edge")}}}),e._v(" Double-sided, long edge binding")])])]),n("tr",[n("td",{staticStyle:{width:"50%"}},[n("label",{attrs:{for:"orientation_landscape"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.opts_values.orientation,expression:"opts_values.orientation"}],ref:"options_3",staticClass:"focusable",attrs:{type:"radio",id:"orientation_landscape",value:"landscape"},domProps:{checked:e._q(e.opts_values.orientation,"landscape")},on:{change:[function(t){return e.$set(e.opts_values,"orientation","landscape")},function(t){return e.setDefaultNUPLayout()}]}}),e._v(" Landscape")])]),n("td",[n("label",{attrs:{for:"two-sided-short-edge"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.opts_values.duplex,expression:"opts_values.duplex"}],ref:"options_5",staticClass:"focusable",attrs:{type:"radio",id:"two-sided-short-edge",value:"two-sided-short-edge"},domProps:{checked:e._q(e.opts_values.duplex,"two-sided-short-edge")},on:{change:function(t){return e.$set(e.opts_values,"duplex","two-sided-short-edge")}}}),e._v(" Double-sided, short edge binding")])])]),n("tr",[n("td",{staticStyle:{width:"50%"}}),n("td",[n("label",{attrs:{for:"one-sided"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.opts_values.duplex,expression:"opts_values.duplex"}],ref:"options_6",staticClass:"focusable",attrs:{type:"radio",id:"one-sided",value:"one-sided"},domProps:{checked:e._q(e.opts_values.duplex,"one-sided")},on:{change:function(t){return e.$set(e.opts_values,"duplex","one-sided")}}}),e._v(" Single-Sided")])])]),e._m(21),n("tr",[e._m(22),n("td",{directives:[{name:"show",rawName:"v-show",value:+e.opts_values.pages_per_sheet>1,expression:"+opts_values.pages_per_sheet > 1"}]},[n("span",{staticClass:"legend"},[e._v("Pages Per Sheet Layout:")])]),n("td",{directives:[{name:"show",rawName:"v-show",value:1===+e.opts_values.pages_per_sheet,expression:"+opts_values.pages_per_sheet === 1"}]})]),n("tr",[n("td",{staticStyle:{width:"50%"}},[n("select",{directives:[{name:"model",rawName:"v-model",value:e.opts_values.pages_per_sheet,expression:"opts_values.pages_per_sheet"}],ref:"options_14",staticClass:"focusable",attrs:{name:"pages_per_sheet",id:"pages_per_sheet"},on:{change:[function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.opts_values,"pages_per_sheet",t.target.multiple?a:a[0])},function(t){return e.setDefaultNUPLayout()}]}},[n("option",{attrs:{selected:"selected"}},[e._v("1")]),n("option",[e._v("2")]),n("option",[e._v("4")]),n("option",[e._v("6")]),n("option",[e._v("9")]),n("option",[e._v("16")])]),n("div",{directives:[{name:"show",rawName:"v-show",value:+e.opts_values.pages_per_sheet>1,expression:"+opts_values.pages_per_sheet > 1"}]},[null!==e.showOptsChooserForJob&&null!==e.jobs[e.showOptsChooserForJob].file&&["doc","docx","ppt","pptx"].includes(e.extractExtension(e.jobs[e.showOptsChooserForJob].file).toLowerCase())?n("p",{staticClass:"pad-8-0"},[n("b",[e._v("Note:")]),e._v(" Some files, such as PowerPoint and Word documents, may already be in 'Landscape' orientation. Choosing to print multiple pages per sheet with 'Portrait' selected may not behave how you expect! You may wish to generate a preview before printing to confirm the output.")]):e._e()])]),n("td",{directives:[{name:"show",rawName:"v-show",value:+e.opts_values.pages_per_sheet>1,expression:"+opts_values.pages_per_sheet > 1"}]},[e._m(23),n("label",{staticClass:"mr-1",attrs:{for:"btlr"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.opts_values.pages_per_sheet_layout,expression:"opts_values.pages_per_sheet_layout"}],ref:"options_15",class:+e.opts_values.pages_per_sheet>1?"focusable":"",attrs:{type:"radio",id:"btlr",value:"BTLR"},domProps:{checked:e._q(e.opts_values.pages_per_sheet_layout,"BTLR")},on:{change:function(t){return e.$set(e.opts_values,"pages_per_sheet_layout","BTLR")}}}),e._v(" BTLR")]),n("i",{staticClass:"fas fa-camera nup_example mr-2",on:{mouseover:function(t){return t.preventDefault(),t.stopPropagation(),e.showHover("btlr","nup_example",t)},mouseout:function(t){return e.hideHover("nup_example")}}}),n("label",{staticClass:"mr-1",attrs:{for:"btrl"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.opts_values.pages_per_sheet_layout,expression:"opts_values.pages_per_sheet_layout"}],ref:"options_16",class:+e.opts_values.pages_per_sheet>1?"focusable":"",attrs:{type:"radio",id:"btrl",value:"BTRL"},domProps:{checked:e._q(e.opts_values.pages_per_sheet_layout,"BTRL")},on:{change:function(t){return e.$set(e.opts_values,"pages_per_sheet_layout","BTRL")}}}),e._v(" BTRL")]),n("i",{staticClass:"fas fa-camera nup_example",on:{mouseover:function(t){return t.preventDefault(),t.stopPropagation(),e.showHover("btrl","nup_example",t)},mouseout:function(t){return e.hideHover("nup_example")}}}),n("br"),n("label",{staticClass:"mr-1",attrs:{for:"lrbt"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.opts_values.pages_per_sheet_layout,expression:"opts_values.pages_per_sheet_layout"}],ref:"options_17",class:+e.opts_values.pages_per_sheet>1?"focusable":"",attrs:{type:"radio",id:"lrbt",value:"LRBT"},domProps:{checked:e._q(e.opts_values.pages_per_sheet_layout,"LRBT")},on:{change:function(t){return e.$set(e.opts_values,"pages_per_sheet_layout","LRBT")}}}),e._v(" LRBT")]),n("i",{staticClass:"fas fa-camera nup_example mr-2",on:{mouseover:function(t){return t.preventDefault(),t.stopPropagation(),e.showHover("lrbt","nup_example",t)},mouseout:function(t){return e.hideHover("nup_example")}}}),n("label",{staticClass:"mr-1",attrs:{for:"lrtb"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.opts_values.pages_per_sheet_layout,expression:"opts_values.pages_per_sheet_layout"}],ref:"options_18",class:+e.opts_values.pages_per_sheet>1?"focusable":"",attrs:{type:"radio",checked:"checked",id:"lrtb",value:"LRTB"},domProps:{checked:e._q(e.opts_values.pages_per_sheet_layout,"LRTB")},on:{change:function(t){return e.$set(e.opts_values,"pages_per_sheet_layout","LRTB")}}}),e._v(" LRTB")]),n("i",{staticClass:"fas fa-camera nup_example",on:{mouseover:function(t){return t.preventDefault(),t.stopPropagation(),e.showHover("lrtb","nup_example",t)},mouseout:function(t){return e.hideHover("nup_example")}}}),n("br"),n("label",{staticClass:"mr-1",attrs:{for:"rlbt"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.opts_values.pages_per_sheet_layout,expression:"opts_values.pages_per_sheet_layout"}],ref:"options_19",class:+e.opts_values.pages_per_sheet>1?"focusable":"",attrs:{type:"radio",id:"rlbt",value:"RLBT"},domProps:{checked:e._q(e.opts_values.pages_per_sheet_layout,"RLBT")},on:{change:function(t){return e.$set(e.opts_values,"pages_per_sheet_layout","RLBT")}}}),e._v(" RLBT")]),n("i",{staticClass:"fas fa-camera nup_example mr-2",on:{mouseover:function(t){return t.preventDefault(),t.stopPropagation(),e.showHover("rlbt","nup_example",t)},mouseout:function(t){return e.hideHover("nup_example")}}}),n("label",{staticClass:"mr-1",attrs:{for:"rltb"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.opts_values.pages_per_sheet_layout,expression:"opts_values.pages_per_sheet_layout"}],ref:"options_20",class:+e.opts_values.pages_per_sheet>1?"focusable":"",attrs:{type:"radio",id:"rltb",value:"RLTB"},domProps:{checked:e._q(e.opts_values.pages_per_sheet_layout,"RLTB")},on:{change:function(t){return e.$set(e.opts_values,"pages_per_sheet_layout","RLTB")}}}),e._v(" RLTB")]),n("i",{staticClass:"fas fa-camera nup_example",on:{mouseover:function(t){return t.preventDefault(),t.stopPropagation(),e.showHover("rltb","nup_example",t)},mouseout:function(t){return e.hideHover("nup_example")}}}),n("br"),n("label",{staticClass:"mr-1",attrs:{for:"tblr"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.opts_values.pages_per_sheet_layout,expression:"opts_values.pages_per_sheet_layout"}],ref:"options_21",class:+e.opts_values.pages_per_sheet>1?"focusable":"",attrs:{type:"radio",id:"tblr",value:"TBLR"},domProps:{checked:e._q(e.opts_values.pages_per_sheet_layout,"TBLR")},on:{change:function(t){return e.$set(e.opts_values,"pages_per_sheet_layout","TBLR")}}}),e._v(" TBLR")]),n("i",{staticClass:"fas fa-camera nup_example mr-2",on:{mouseover:function(t){return t.preventDefault(),t.stopPropagation(),e.showHover("tblr","nup_example",t)},mouseout:function(t){return e.hideHover("nup_example")}}}),n("label",{staticClass:"mr-1",attrs:{for:"tbrl"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.opts_values.pages_per_sheet_layout,expression:"opts_values.pages_per_sheet_layout"}],ref:"options_22",class:+e.opts_values.pages_per_sheet>1?"focusable":"",attrs:{type:"radio",id:"tbrl",value:"TBRL"},domProps:{checked:e._q(e.opts_values.pages_per_sheet_layout,"TBRL")},on:{change:function(t){return e.$set(e.opts_values,"pages_per_sheet_layout","TBRL")}}}),e._v(" TBRL")]),n("i",{staticClass:"fas fa-camera nup_example",on:{mouseover:function(t){return t.preventDefault(),t.stopPropagation(),e.showHover("tbrl","nup_example",t)},mouseout:function(t){return e.hideHover("nup_example")}}})]),n("td",{directives:[{name:"show",rawName:"v-show",value:1===+e.opts_values.pages_per_sheet,expression:"+opts_values.pages_per_sheet === 1"}]})]),e._m(24),e._m(25),n("tr",[n("td",[n("label",{attrs:{for:"letter"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.opts_values.size,expression:"opts_values.size"}],ref:"options_7",staticClass:"focusable",attrs:{type:"radio",id:"letter",value:"letter",checked:"checked"},domProps:{checked:e._q(e.opts_values.size,"letter")},on:{change:function(t){return e.$set(e.opts_values,"size","letter")}}}),e._v(" Letter")])]),n("td")]),n("tr",[n("td",[n("label",{attrs:{for:"tabloid"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.opts_values.size,expression:"opts_values.size"}],ref:"options_8",staticClass:"focusable",attrs:{type:"radio",id:"tabloid",value:"tabloid"},domProps:{checked:e._q(e.opts_values.size,"tabloid")},on:{change:function(t){return e.$set(e.opts_values,"size","tabloid")}}}),e._v(" Tabloid")])]),n("td")]),null!==e.selectedPrinter&&2!==e.selectedPrinter.service||null===e.selectedPrinter&&null!==e.selectedDefaultPrinter&&2!==e.selectedDefaultPrinter.service?n("tr",[n("td",[n("label",{attrs:{for:"custom"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.opts_values.size,expression:"opts_values.size"}],ref:"options_9",staticClass:"focusable",attrs:{type:"radio",id:"custom",value:"custom"},domProps:{checked:e._q(e.opts_values.size,"custom")},on:{change:function(t){return e.$set(e.opts_values,"size","custom")}}}),e._v(" Custom")])]),n("td")]):e._e(),n("tr",[n("td",{directives:[{name:"show",rawName:"v-show",value:"custom"===e.opts_values.size,expression:"opts_values.size === 'custom'"}]},[n("span",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.opts_values.custom_width,expression:"opts_values.custom_width"}],ref:"options_10",staticClass:"small_input",class:"custom"===e.opts_values.size?"focusable":"",attrs:{type:"text",name:"custom_width",id:"custom_width",placeholder:"W"},domProps:{value:e.opts_values.custom_width},on:{input:function(t){t.target.composing||e.$set(e.opts_values,"custom_width",t.target.value)}}}),e._v("in X "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.opts_values.custom_length,expression:"opts_values.custom_length"}],ref:"options_11",staticClass:"small_input",class:"custom"===e.opts_values.size?"focusable":"",attrs:{type:"text",name:"custom_length",id:"custom_length",placeholder:"L"},domProps:{value:e.opts_values.custom_length},on:{input:function(t){t.target.composing||e.$set(e.opts_values,"custom_length",t.target.value)}}}),e._v("in")])]),n("td")])])])]),n("div",{staticClass:"modal_footer"},[n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member"},[n("div",{ref:"options_23",staticClass:"focusable button",attrs:{role:"button",tabindex:"0"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.closeOptionsModal(!1,null)},click:function(t){return e.closeOptionsModal(!1,null)}}},[e._v("Cancel")])]),n("div",{staticClass:"flex_member end"},[0===e.userData.accounts.shared.length||null!==e.showOptsChooserForJob&&e.userData.accounts.shared.length>0&&null!==e.jobs[e.showOptsChooserForJob].account?[n("div",{ref:"options_24",staticClass:"focusable button button_blue mr-2",attrs:{tabindex:"0","aria-label":"Generate Print Preview"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.closeOptionsModal(!0,"preview")},click:function(t){return e.closeOptionsModal(!0,"preview")}}},[e._v("Generate Preview"),n("span",{staticClass:"fas fa-image ml-2"})]),n("div",{ref:"options_25",staticClass:"focusable button button_blue mr-2",attrs:{tabindex:"0","aria-label":"Submit Job"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.closeOptionsModal(!0,"submit")},click:function(t){return e.closeOptionsModal(!0,"submit")}}},[e._v(e._s(null!==e.showOptsChooserForJob&&e.jobs.length>e.showOptsChooserForJob&&null!==e.jobs[e.showOptsChooserForJob].selected_printer&&"m-follow-me"===e.jobs[e.showOptsChooserForJob].selected_printer.name?"Submit":"Print")),n("span",{staticClass:"fas fa-print ml-2"})])]:e._e(),n("div",{ref:"options_26",staticClass:"focusable button button_blue",class:0===e.userData.accounts.shared.length?"last_element":"",attrs:{role:"button",tabindex:"0"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.closeOptionsModal(!0,null)},click:function(t){return e.closeOptionsModal(!0,null)}}},[e._v("Save and Close"),n("span",{staticClass:"far fa-save ml-2"})]),e.userData.accounts.shared.length?[n("div",{ref:"options_27",staticClass:"focusable button button_blue ml-2 last_element",attrs:{tabindex:"0",role:"button","aria-label":"Save selected options and move to next menu"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.closeOptionsModal(!0,"accounts")},click:function(t){return e.closeOptionsModal(!0,"accounts")}}},[e._v("Continue"),n("span",{staticClass:"fas fa-arrow-right ml-2"})])]:e._e()],2)])])]),e.jobs.length&&null!==e.showOptsHoverForJob?n("div",{staticClass:"hover_box",style:{top:e.hover_y+"px",left:e.hover_x+"px"},attrs:{id:"options_hover","aria-hidden":"true"}},[n("h2",{staticClass:"center"},[e._v("Selected Job Options")]),n("table",{staticClass:"fill_width"},[n("tbody",[n("tr",[n("td",[e._v("Number of Copies:")]),n("td",{staticClass:"buffer_cell"}),n("td",[e._v(e._s(e.jobs[e.showOptsHoverForJob].copies))])]),n("tr",[n("td",[e._v("Page Ranges:")]),n("td",{staticClass:"buffer_cell"}),n("td",[e._v(e._s(null===e.jobs[e.showOptsHoverForJob].range?"Full Document":e.jobs[e.showOptsHoverForJob].range))])]),n("tr",[e._m(26),n("td",{staticClass:"buffer_cell"}),n("td",{staticClass:"capitalize"},[e._v(e._s(e.jobs[e.showOptsHoverForJob].orientation))])]),n("tr",[e._m(27),n("td",{staticClass:"buffer_cell"}),n("td",[e._v(e._s(e.jobs[e.showOptsHoverForJob].duplex))])]),n("tr",[n("td",[e._v("Pages Per Sheet:")]),n("td",{staticClass:"buffer_cell"}),n("td",[e._v(e._s(e.jobs[e.showOptsHoverForJob].pages_per_sheet))])]),n("tr",[e._m(28),n("td",{staticClass:"buffer_cell"}),n("td",[e._v(e._s(+e.jobs[e.showOptsHoverForJob].pages_per_sheet>1?e.jobs[e.showOptsHoverForJob].pages_per_sheet_layout:"N/A"))])]),n("tr",[e._m(29),n("td",{staticClass:"buffer_cell"}),n("td",{class:"custom"!==e.jobs[e.showOptsHoverForJob].size?"capitalize":""},[e._v(e._s("custom"===e.jobs[e.showOptsHoverForJob].size?"Custom: "+e.jobs[e.showOptsHoverForJob].custom_width+"in x "+e.jobs[e.showOptsHoverForJob].custom_length+"in":e.jobs[e.showOptsHoverForJob].size))])])])])]):e._e(),null!==e.showNupHoverForLayout?n("div",{staticClass:"hover_box",style:{top:e.hover_y+"px",left:e.hover_x+"px"},attrs:{id:"nup_example_hover","aria-hidden":"true"}},[n("h2",{staticClass:"center"},[e._v("Example of N-UP Layout "+e._s(e.showNupHoverForLayout.toUpperCase()))]),n("div",[n("div",{class:"landscape"===e.opts_values.orientation?"landscape":"",attrs:{id:"nup_example"},domProps:{innerHTML:e._s(e.renderNupImg())}})])]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.userData.isLoaded&&!e.userData.isError&&null!==e.showAccountChooserForJob,expression:"userData.isLoaded && !userData.isError && showAccountChooserForJob !== null"}],staticClass:"modal",attrs:{id:"account_chooser"},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:(t.preventDefault(),t.stopPropagation(),e.trapFocus("account",t))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeAccountModal(!1)}]}},[e._m(30),n("div",{staticClass:"modal_content_no_overflow"},[n("v-select",{staticClass:"first_element",attrs:{name:"account",id:"account","aria-placeholder":"Choose Account",placeholder:"Choose Account",reduce:function(e){return e.name},label:"name",options:[{name:"Personal Account",additional_info:" - Balance: $"+e.userData.accounts.available_balance}].concat(e.userData.accounts.shared)},scopedSlots:e._u([{key:"selected-option",fn:function(t){var a=t.name;return[e._v(e._s(a))]}},{key:"option",fn:function(t){var a=t.name,s=t.additional_info;return[n("p",{attrs:{"aria-label":a}},[n("span",[e._v(e._s(a))]),n("span",[e._v(e._s(s))])])]}}]),model:{value:e.selectedAccount,callback:function(t){e.selectedAccount=t},expression:"selectedAccount"}}),e.userData.accounts.shared.length>0?[n("div",{staticClass:"pad-8"},[e._v("You currently have "+e._s(e.userData.accounts.shared.length)+" unrestricted ShortCode "+e._s(1!==e.userData.accounts.shared.length?"accounts":"account")+" available that you may charge against. These charges will be reconciled by the ShortCode owner.")]),n("div",{staticClass:"pad-8"},[n("b",[e._v("Note: ")]),e._v("Rather than select an account to charge for every print, you can set a default account on "),n("a",{attrs:{href:e.publicPath+"/settings",target:"_blank"}},[e._v("your settings page")]),e._v("!")])]:e._e()],2),n("div",{staticClass:"modal_footer"},[n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member"},[n("div",{ref:"account_cancel",staticClass:"button",attrs:{role:"button",tabindex:"0"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.closeAccountModal(!1)},click:function(t){return e.closeAccountModal(!1)}}},[e._v("Cancel")])]),n("div",{staticClass:"flex_member end"},[n("div",{staticClass:"button button_blue mr-2",attrs:{tabindex:"0","aria-label":"Generate Print Preview"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.closeAccountModal(!0,"preview")},click:function(t){return e.closeAccountModal(!0,"preview")}}},[e._v("Generate Preview"),n("span",{staticClass:"fas fa-image ml-2"})]),n("div",{staticClass:"button button_blue mr-2",attrs:{tabindex:"0","aria-label":"Submit Job"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.closeAccountModal(!0,"submit")},click:function(t){return e.closeAccountModal(!0,"submit")}}},[e._v(e._s(null!==e.showAccountChooserForJob&&e.jobs.length>e.showAccountChooserForJob&&null!==e.jobs[e.showAccountChooserForJob].selected_printer&&"m-follow-me"===e.jobs[e.showAccountChooserForJob].selected_printer.name?"Submit":"Print")),n("span",{staticClass:"fas fa-print ml-2"})]),n("div",{ref:"account_save",staticClass:"button button_blue last_element",attrs:{role:"button",tabindex:"0"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.closeAccountModal(!0)},click:function(t){return e.closeAccountModal(!0)}}},[e._v("Save and Close"),n("span",{staticClass:"far fa-save ml-2"})])])])])]),e.jobs.length&&null!==e.showAccountHoverForJob?n("div",{staticClass:"hover_box",style:{top:e.hover_y+"px",left:e.hover_x+"px"},attrs:{id:"account_hover","aria-hidden":"true"}},[n("h2",{staticClass:"center"},[e._v("Selected Account")]),n("table",{staticClass:"fill_width"},[n("tbody",[n("tr",[n("td",[e._v("Account Name:")]),n("td",{staticClass:"buffer_cell"}),n("td",[e._v(e._s(e.jobs[e.showAccountHoverForJob].account))])]),"Personal Account"===e.jobs[e.showAccountHoverForJob].account?n("tr",[n("td",[e._v("Account Balance:")]),n("td",{staticClass:"buffer_cell"}),n("td",{class:e.userData.accounts.available_balance>0?"green":e.userData.accounts.available_balance<0?"red":"bold"},[e._v("$"+e._s(e.userData.accounts.available_balance))])]):e._e()])])]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:null!==e.showPreviewModalForJob,expression:"showPreviewModalForJob !== null"}],staticClass:"modal",attrs:{id:"preview_modal"},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:(t.preventDefault(),t.stopPropagation(),e.trapFocus("preview",t))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closePreviewModal()}]}},[e._m(31),n("div",{staticClass:"modal_content"},[null!==e.showPreviewModalForJob?n("iframe",{attrs:{id:"preview_frame","aria-hidden":"true",src:"/print_preview/printpreview-"+e.submittedJobs[e.showPreviewModalForJob].jobId+".pdf"}}):e._e()]),n("div",{staticClass:"modal_footer"},[n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member"},[n("div",{ref:"preview_cancel",staticClass:"button first_element",attrs:{role:"button",tabindex:"0"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.closePreviewModal()},click:function(t){return e.closePreviewModal()}}},[e._v("Close")])]),n("div",{staticClass:"flex_member end"},[e.jobs.length<e.maxJobsNum?[n("div",{ref:"edit_preview",staticClass:"button button_blue mr-2",attrs:{role:"button",tabindex:"0"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.editPreview(e.showPreviewModalForJob)},click:function(t){return e.editPreview(e.showPreviewModalForJob)}}},[n("span",{staticClass:"fas fa-edit mr-1"}),e._v("Modify Job Settings")])]:e._e(),n("div",{ref:"preview_print",staticClass:"button button_blue last_element",attrs:{role:"button",tabindex:"0"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.closePreviewModal(!0)},click:function(t){return e.closePreviewModal(!0)}}},[n("span",{staticClass:"fas fa-print mr-1"}),e._v("Print Document")])],2)])])]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.queuesList.isLoaded&&!e.queuesList.isError&&e.showDefaultQueueChooser,expression:"queuesList.isLoaded && !queuesList.isError && showDefaultQueueChooser"}],staticClass:"modal",attrs:{id:"default_queue_chooser"},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:(t.preventDefault(),t.stopPropagation(),e.trapFocus("default_queue",t))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeDefaultQueueModal(!1)}]}},[e._m(32),n("div",{staticClass:"modal_content_no_overflow"},[e._m(33),n("p",{staticClass:"pb-12"},[e._v("By setting a default destination, any new Job you create will start with the default destination chosen. You can change the destination on any individual job at any time. Modifying the default destination will automatically change the chosen destination for any currently un-submitted jobs.")]),e._m(34),n("div",{staticClass:"full_width center pb-12"},[n("div",{staticClass:"button button_blue",attrs:{tabindex:"0",role:"button","aria-label":"Select Follow Me as my default destination"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.useFollowMe(!0)},click:function(t){return e.useFollowMe(!0)}}},[e._v("Select Follow Me")]),e._v(" or choose a destination below:")]),n("v-select",{staticClass:"first_element",attrs:{name:"default_queue",id:"default_queue","aria-label":"Set Destination","aria-placeholder":"Set Destination",placeholder:"Set Destination",label:"display_name",filterable:!1,options:e.visibleQueues,selectable:function(e){return+e.enabled&&+e.is_public}},on:{search:e.queueSearchFunc,open:e.queueSelectOpen,close:e.queueSelectClose},scopedSlots:e._u([{key:"selected-option",fn:function(t){var a=t.display_name,s=t.notes;return[n("div",{attrs:{"aria-label":a}},[e._v(e._s(a)),s?[n("i",{staticClass:"pl-2 fas fa-info-circle"})]:e._e()],2)]}},{key:"option",fn:function(t){var a=t.display_name,s=t.name,r=t.enabled,i=t.is_public,o=t.notes,c=t.state,l=t.cost,u=t.additional_features;return[n("div",{staticClass:"flex_row bold"},[n("div",{staticClass:"flex_member",attrs:{"aria-label":a}},[e._v(e._s(a))]),i&&o?[n("i",{staticClass:"flex_member end fas fa-info-circle"})]:e._e()],2),n("div",{staticClass:"flex_row small"},[i?[n("div",{staticClass:"flex_member"},[e._v(e._s(s))]),n("div",{staticClass:"flex_member capitalize"},[e._v("Queue Status: "),n("span",{class:+r?"ok"===c.toLowerCase()?"green":"warning"===c.toLowerCase()?"yellow":"red":"red"},[e._v(e._s(+r?c:"Disabled"))])]),n("div",{staticClass:"flex_member"},[e._v(e._s(l>0?"$"+l+" per page":"No Cost"))]),n("div",{staticClass:"flex_member end"},[e._v("Additional Features: "+e._s(u.join(", ")))])]:[n("div",{staticClass:"flex_member full_width"},[e._v("Queue cannot be selected for direct printing - "+e._s(o))])]],2)]}},{key:"list-footer",fn:function(){return[n("li",{directives:[{name:"show",rawName:"v-show",value:e.hasMoreQueues,expression:"hasMoreQueues"}],ref:"queueListLoad"},[e._v("Loading more queues...")])]},proxy:!0}]),model:{value:e.selectedDefaultPrinter,callback:function(t){e.selectedDefaultPrinter=t},expression:"selectedDefaultPrinter"}}),e.selectedDefaultPrinter&&e.selectedDefaultPrinter.notes?[n("p",{staticClass:"center pad-8 bold box-highlight"},[e._m(35),n("span",{domProps:{innerHTML:e._s(e.selectedDefaultPrinter.notes)}})])]:e._e(),n("p",{staticClass:"center"},[e._v("Need to find a printer near you? Try our "),n("a",{ref:"default_maps_link",attrs:{href:e.publicPath+"/maps",target:"_blank","aria-label":"Find a printer using building maps"}},[e._v("building maps")]),e._v("!")])],2),n("div",{staticClass:"modal_footer"},[n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member"},[n("div",{ref:"default_queue_cancel",staticClass:"button",attrs:{tabindex:"0",role:"button","aria-label":"Cancel this operation"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.closeDefaultQueueModal(!1)},click:function(t){return e.closeDefaultQueueModal(!1)}}},[e._v("Cancel")])]),n("div",{staticClass:"flex_member end"},[n("div",{ref:"default_queue_save",staticClass:"button button_blue last_element",attrs:{tabindex:"0",role:"button","aria-label":"Save selected printer and close this menu"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.closeDefaultQueueModal(!0)},click:function(t){return e.closeDefaultQueueModal(!0)}}},[n("span",{staticClass:"far fa-save mr-1"}),e._v("Save and Close")])])])])]),e.jobs.length&&e.showQueueHoverForDefault?n("div",{staticClass:"hover_box",style:{top:e.hover_y+"px",left:e.hover_x+"px"},attrs:{id:"default_queue_hover","aria-hidden":"true"}},[n("h2",{staticClass:"center"},[e._v("Selected Default Destination")]),null!==e.selectedDefaultPrinter?n("div",[n("table",{staticClass:"fill_width"},[n("tbody",[n("tr",[n("td",[e._v("Display Name:")]),n("td",{staticClass:"buffer_cell"}),n("td",[e._v(e._s(e.selectedDefaultPrinter.display_name))])]),n("tr",[n("td",[e._v("Name:")]),n("td",{staticClass:"buffer_cell"}),n("td",[e._v(e._s(e.selectedDefaultPrinter.name))])]),n("tr",[n("td",[e._v("Enrolled Service:")]),n("td",{staticClass:"buffer_cell"}),n("td",[e._v(e._s(e.selectedDefaultPrinter.service_name))])]),n("tr",[n("td",[e._v("Current Status:")]),n("td",{staticClass:"buffer_cell"}),n("td",{staticClass:"bold capitalize",class:+e.selectedDefaultPrinter.enabled?"ok"===e.selectedDefaultPrinter.state.toLowerCase()?"green":"warning"===e.selectedDefaultPrinter.state.toLowerCase()?"yellow":"red":"red"},[e._v(e._s(+e.selectedDefaultPrinter.enabled?e.selectedDefaultPrinter.state+(e.selectedDefaultPrinter.state_reasons&&e.selectedDefaultPrinter.state_reasons!==e.selectedDefaultPrinter.state?" - "+e.selectedDefaultPrinter.state_reasons:""):"Disabled"))])]),n("tr",[n("td",[e._v("Cost per Page:")]),n("td",{staticClass:"buffer_cell"}),n("td",[e._v("$"+e._s(e.selectedDefaultPrinter.cost))])]),n("tr",[n("td",[e._v("Additional Features:")]),n("td",{staticClass:"buffer_cell"}),n("td",[e._v(e._s(e.selectedDefaultPrinter.additional_features.length?e.selectedDefaultPrinter.additional_features.join(", "):"None"))])])])])]):e._e()]):e._e()])},ke=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_row"},[a("div",{staticClass:"box"},[a("h1",{staticClass:"big_header"},[e._v("Welcome To MPrint")])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._v("Loading... "),n("img",{attrs:{src:a("d9b6"),alt:"Loading account info"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",{staticClass:"pad-4-0"},[a("span",[e._v("Available Balance:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",{staticClass:"pad-4-0"},[a("span",[e._v("Student Account Charges Accrued:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",{staticClass:"pad-4-0"},[a("span",[e._v("Available Unrestricted Accounts:")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box_header center"},[n("h2",{staticClass:"large_text"},[n("a",{attrs:{href:"https://sustainability.umich.edu",target:"_blank","aria-label":"Read about Planet Blue at UM"}},[n("img",{attrs:{src:a("2137"),id:"planetblue",title:"Planet Blue at UM",alt:"Planet Blue at UM",height:"24"}})]),e._v(" - "),n("span",{staticClass:"fas fa-leaf mr-1 pr-1 green"}),e._v("Environmental Stats")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"box_header center"},[a("h2",{staticClass:"large_text pb-12"},[e._v("Need Help?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pb-12"},[a("span",{staticClass:"fas fa-at mr-2"}),a("a",{attrs:{href:"https://its.umich.edu/help/",target:"_blank"}},[e._v("Contact the ITS Service Center")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_row center"},[a("div",{staticClass:"flex_member"},[a("h1",[e._v("Print Job Manager"),a("span",{staticClass:"fas fa-tasks ml-4"})])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"flex_member"},[e._v("Loading Queues... "),n("img",{attrs:{src:a("d9b6"),alt:"Loading print queue info"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("span",[a("i",{staticClass:"fas fa-info-circle mr-2"}),e._v("Note: ")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_row center"},[a("div",{staticClass:"flex_member"},[a("h1",[e._v("Session Print History"),a("span",{staticClass:"fas fa-history ml-4"})])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("thead",{staticClass:"bg_blue"},[a("tr",[a("th",{staticClass:"white session_header"},[e._v("Destination")]),a("th",{staticClass:"white session_header"},[e._v("File Name")]),a("th",{staticClass:"white session_header"},[e._v("Associated Account")]),a("th",{staticClass:"white session_header"},[e._v("Submitted At")]),a("th",{staticClass:"white session_header"},[e._v("Job Status")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",[e._v("Welcome to MPrint!")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Select Destination")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Upload File")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[a("b",[e._v("Selected File:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Set Print Options")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticStyle:{width:"50%"}},[a("label",{attrs:{for:"copies"}},[e._v("Number of Copies:")])]),a("td",[a("label",{attrs:{for:"range"}},[e._v("Page Ranges:")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",{staticClass:"buffer_row"},[a("td",{staticClass:"buffer_cell",attrs:{colspan:"2"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticStyle:{width:"50%"}},[a("span",{staticClass:"legend"},[e._v("Orientation:")])]),a("td",[a("span",{staticClass:"legend"},[e._v("Duplex Options:")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",{staticClass:"buffer_row"},[a("td",{staticClass:"buffer_cell",attrs:{colspan:"2"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",{staticStyle:{width:"50%"}},[a("label",{attrs:{for:"pages_per_sheet"}},[e._v("Pages Per Sheet:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",{staticClass:"pad-8-0"},[e._v("This setting configures how each page is laid out on the sheet. Hover over the "),a("i",{staticClass:"fas fa-camera"}),e._v(" icon next to each option to see an example of what it looks like.")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",{staticClass:"buffer_row"},[a("td",{staticClass:"buffer_cell",attrs:{colspan:"2"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticStyle:{width:"50%"}},[a("span",{staticClass:"legend"},[e._v("Paper Size:")])]),a("td")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("span",{staticClass:"legend"},[e._v("Orientation:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("span",{staticClass:"legend"},[e._v("Duplex Options:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("span",{staticClass:"legend"},[e._v("Pages Per Sheet Layout:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("span",{staticClass:"legend"},[e._v("Paper Size:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Select Account")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Print Preview")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Select Default Destination")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",{staticClass:"pb-12"},[e._v("Set the default printer you wish to use, or choose to send your documents to "),a("b",[e._v("Follow Me")]),e._v(". Follow Me will hold your document for up to 24 hours, during which time you can release it to a printer near you with the MPrint Mobile app, or by swiping your Mcard.")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",{staticClass:"pb-12"},[a("b",[e._v("Note:")]),e._v(" If your default destination becomes disabled at any point due to an error, it will not apply to your Jobs until the error is resolved.")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("span",[a("i",{staticClass:"fas fa-info-circle mr-2"}),e._v("Note: ")])}],Pe=a("3835"),De=(a("35b3"),a("a9e3"),a("8a79"),a("a49b")["fileExtensions"]),Ae=a("a49b")["environmentRatios"],Ee=a("a49b")["maxFileSizeMb"],je=a("a49b")["papercut_server"],qe=a("a49b")["mprintTerminalStates"],Me={name:"default",data:function(){return{allowedExtensions:[],arrowElts:[],arrowIndex:0,cloudServiceBreadcrumbs:[],cloudServiceConnectPrompt:null,cloudServiceError:null,cloudServiceFiles:[],cloudServiceIsLoading:!1,disableSubmitAll:!0,dragTimeout:null,submittedJobs:[],enableMask:!1,fileModalService:null,filteredQueues:[],focusableElts:[],focusIndex:0,followMeQueueCount:1,hover_x:0,hover_y:0,job_defaults:{account:null,copies:1,custom_length:0,custom_width:0,duplex:"two-sided-long-edge",file:null,isPrintable:!1,jobId:null,jobStatus:null,orientation:"portrait",pages_per_sheet:1,pages_per_sheet_layout:"LRTB",preview:0,range:null,selected_printer:null,statusUpdateCount:0,size:"letter",updateTimeout:null},jobs:[],maxFileSize:0,maxFileSizeMb:0,maxJobsNum:5,msg:[],numSteps:3,opts_values:{copies:1,custom_length:0,custom_width:0,duplex:"two-sided-long-edge",orientation:"portrait",pages_per_sheet:1,pages_per_sheet_layout:"LRTB",range:null,size:"letter"},papercutUrl:je,printableJobCount:0,publicPath:window.location.origin,queuesList:{isError:!1,isLoaded:!1,queues:[]},returnFocusToElt:null,selectedAccount:null,selectedDefaultPrinter:null,selectedFile:null,selectedPrinter:null,setHideIntroModal:!1,showAccountChooserForJob:null,showAccountHoverForJob:null,showDefaultQueueChooser:!1,showFileChooserForJob:null,showFileHoverForJob:null,showFollowMeInfoBox:!1,showIntroModal:!1,showNupHoverForLayout:null,showOptsChooserForJob:null,showOptsHoverForJob:null,showPreviewModalForJob:null,showQueueChooserForJob:null,showQueueHoverForDefault:!1,showQueueHoverForJob:null,userData:{accounts:{available_balance:0,default_account:null,popup_behavior:null,shared:[],student_account_balance:0},cloudServices:[],defaultPrinter:null,hideIntroModal:!1,userSettingsSaved:!1,stats:{total_sheets:0,total_since:"",total_trees:0,kg_of_c02:0,bulb_hours:0},isError:!1,isLoaded:!1},visibleQueueLimit:50,visibleQueuesObserver:null}},computed:{hasMoreQueues:function(){return this.visibleQueues.length<this.filteredQueues.length},visibleQueues:function(){return this.filteredQueues.slice(0,this.visibleQueueLimit)}},props:{user:{type:Object,default:function(){return this.$store.getters.getUser}}},methods:{addNewJob:function(){for(var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a={},n=0,s=Object.keys(this.job_defaults);n<s.length;n++){var r=s[n],i=!0;"selected_printer"===r&&null!==this.job_defaults[r]&&(i=+this.job_defaults[r].enabled),i?a[r]=this.job_defaults[r]:i||"selected_printer"!==r||(this.job_defaults["selected_printer"]=null,a["selected_printer"]=null)}if(t&&(a.file=t),this.jobs.push(a),e){var o=window.location.hash;if(o){var c=o.split("=");if("#queue"===c[0]){var l=this.queuesList.queues.filter((function(e){return e.name===c[1]}));l&&l[0]?this.jobs[0].selected_printer=l[0]:(this._msgManager("Queue ".concat(c[1]," is invalid")),console.log("".concat(c[1]," is not available for this user or does not exist!")))}else this._msgManager("Provided URL hash ".concat(c[0]," is invalid!")),console.log("Provided URL hash is invalid: ".concat(o))}}this.verifyJobIsPrintable(this.jobs.length-1)},cancelJob:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:n=t,s=n.submittedJobs[e],s.statusUpdateCount=0,window.clearTimeout(s.updateTimeout),s.updateTimeout=null,p.methods.delete("api/jobs/".concat(s.jobId)).then((function(t){+t.data.result.count?s.jobStatus="Cancelled":Object.keys(t.data.result.result).includes("status_message")?s.jobStatus=t.data.result.result.status_message:n.updateStatus(e)})).catch((function(t){n.submittedJobs[e].jobStatus="An error occurred! ".concat(t),n.updateStatus(e)}));case 6:case"end":return a.stop()}}),a)})))()},captureDrag:function(e){switch(e.type){case"dragenter":if(window.clearTimeout(this.dragTimeout),this.dragTimeout=null,!document.getElementsByClassName("dragging").length){var t,a=document.getElementsByClassName("drop_target"),n=Object(i["a"])(a);try{for(n.s();!(t=n.n()).done;){var s=t.value;s.classList.add("dragging")}}catch(h){n.e(h)}finally{n.f()}}break;case"dragover":if(window.clearTimeout(this.dragTimeout),this.dragTimeout=null,e.target.classList.contains("drop_target")||null!==e.target.closest(".drop_target")){var r=null;if(e.target.classList.contains("drop_target")&&!e.target.classList.contains("hovering")?r=e.target:null===e.target.closest(".hovering")&&(r=e.target.closest(".drop_target")),r){var o,c=document.getElementsByClassName("hovering"),l=Object(i["a"])(c);try{for(l.s();!(o=l.n()).done;){var u=o.value;u.classList.remove("hovering")}}catch(h){l.e(h)}finally{l.f()}r.classList.add("hovering")}e.preventDefault()}else{var d,p=document.getElementsByClassName("hovering"),_=Object(i["a"])(p);try{for(_.s();!(d=_.n()).done;){var m=d.value;m.classList.remove("hovering")}}catch(h){_.e(h)}finally{_.f()}}break;case"dragleave":var f=this;this.dragTimeout=window.setTimeout((function(){f.dragEnd()}),100);break}},changeFile:function(){this.selectedFile=this.$refs.file.files.length>0?this.$refs.file.files[0]:null},changeFileService:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(e!==t.fileModalService&&(t.selectedFile=null,t.cloudServiceBreadcrumbs=[],t.cloudServiceConnectPrompt=null,t.cloudServiceError=null,t.cloudServiceFiles=[]),t.fileModalService=e,"computer"===e||!t.userData.cloudServices.includes(e)){a.next=7;break}return a.next=5,t.getCloudFiles();case 5:a.next=8;break;case 7:"computer"===e&&(t.focusableElts=[t.$refs.computer_button,t.$refs.file,t.$refs.drive_button,t.$refs.dropbox_button,t.$refs.file_cancel,t.$refs.file_save],t.focusIndex=1,t.focusableElts[t.focusIndex].focus());case 8:case"end":return a.stop()}}),a)})))()},closeAccountModal:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e&&(this.jobs[this.showAccountChooserForJob].account=this.selectedAccount,this.verifyJobIsPrintable(this.showAccountChooserForJob));var a=!0;"submit"===t||"preview"===t?this.jobs[this.showAccountChooserForJob].isPrintable?this.submitJob(this.showAccountChooserForJob,"preview"===t):(a=!1,this._msgManager("Cannot ".concat(t," job - Destination and Document are required first."))):(this.returnFocusToElt&&this.returnFocusToElt.focus(),this.returnFocusToElt=null),a&&(this.enableMask=!1,this.focusableElts=[],this.showAccountChooserForJob=null)},closeDefaultQueueModal:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,s,r,i,o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!e){a.next=23;break}if(t.selectedDefaultPrinter){if(+t.selectedDefaultPrinter.enabled){for(n in t.jobs)t.jobs[+n].selected_printer=t.selectedDefaultPrinter,t.verifyJobIsPrintable(+n);t.updateQueueStatus(t.selectedDefaultPrinter.name,"default",null)}else t._msgManager("Your chosen default destination is not currently enabled. Cannot apply default to your current jobs...");t.job_defaults.selected_printer=t.selectedDefaultPrinter}if(a.prev=2,s=t.selectedDefaultPrinter?t.selectedDefaultPrinter.name:null,t._msgManager("".concat(null===s?"Removing saved":"Setting new"," default printer...")),!t.userData.userSettingsSaved){a.next=12;break}return a.next=8,p.methods.put("api/usersettings/".concat(t.user.uniqname),{default_printer:s});case 8:r=a.sent,+r.data.result.count?t.userData.defaultPrinter=s:console.log(r.data.result),a.next=16;break;case 12:return a.next=14,p.methods.post("api/usersettings",{uniqname:t.user.uniqname,default_printer:s});case 14:i=a.sent,+i.data.result.count?(t.userData.defaultPrinter=s,t.userData.userSettingsSaved=!0):console.log(i.data.result);case 16:a.next=21;break;case 18:a.prev=18,a.t0=a["catch"](2),console.log(a.t0);case 21:a.next=24;break;case 23:t.userData.defaultPrinter?(o=t.queuesList.queues.filter((function(e){return e.name===t.userData.defaultPrinter})),t.selectedDefaultPrinter=o[0]):t.selectedDefaultPrinter=null;case 24:t.showDefaultQueueChooser=!1,t.enableMask=!1,t.focusableElts=[],t.returnFocusToElt=null,t.selectedDefaultPrinter?document.getElementById("default_destination_link").focus():document.getElementById("default_destination_button").focus();case 29:case"end":return a.stop()}}),a,null,[[2,18]])})))()},closeFileModal:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){if(!this.selectedFile)return!1;if(!this.allowedExtensions.includes(this.extractExtension(this.selectedFile))||this.selectedFile.size>this.maxFileSize)return!1;this.jobs[this.showFileChooserForJob].file=this.selectedFile,this.verifyJobIsPrintable(this.showFileChooserForJob)}var a=this.showFileChooserForJob;this.arrowElts=[],this.focusableElts=[],this.selectedFile=null,this.showFileChooserForJob=null,Object.keys(this.$refs).includes("fileForm")&&this.$refs.fileForm.reset(),t?this.showModal(a,"options",null):(this.enableMask=!1,this.returnFocusToElt&&this.returnFocusToElt.focus(),this.returnFocusToElt=null)},closeOpenModal:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!t.showIntroModal){a.next=6;break}t.showIntroModal=!1,t.enableMask=!1,t.setHideIntroModal!==t.userData.hideIntroModal&&(t.userData.userSettingsSaved?p.methods.put("api/usersettings/".concat(t.user.uniqname),{hide_intro_modal:+t.setHideIntroModal}).catch((function(e){console.log(e)})):(p.methods.post("api/usersettings",{uniqname:t.user.uniqname,hide_intro_modal:+t.setHideIntroModal}).catch((function(e){console.log(e)})),t.userData.userSettingsSaved=!0)),a.next=32;break;case 6:if(null===t.showAccountChooserForJob){a.next=10;break}t.closeAccountModal(e),a.next=32;break;case 10:if(null===t.showFileChooserForJob){a.next=14;break}t.closeFileModal(e),a.next=32;break;case 14:if(null===t.showOptsChooserForJob){a.next=18;break}t.closeOptionsModal(e),a.next=32;break;case 18:if(null===t.showPreviewModalForJob){a.next=22;break}t.closePreviewModal(e),a.next=32;break;case 22:if(null===t.showQueueChooserForJob){a.next=26;break}t.closeQueueModal(e),a.next=32;break;case 26:if(!t.showDefaultQueueChooser){a.next=31;break}return a.next=29,t.closeDefaultQueueModal(e);case 29:a.next=32;break;case 31:console.log("No modals appear to be open right now!");case 32:case"end":return a.stop()}}),a)})))()},closeOptionsModal:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e){for(var a=0,n=Object.keys(this.opts_values);a<n.length;a++){var s=n[a];this.jobs[this.showOptsChooserForJob][s]=this.opts_values[s]}this.verifyJobIsPrintable(this.showOptsChooserForJob)}var r=!0;"accounts"===t&&this.userData.accounts.shared.length?this.showModal(this.showOptsChooserForJob,"account",null):"submit"===t||"preview"===t?this.jobs[this.showOptsChooserForJob].isPrintable?(this.enableMask=!1,this.submitJob(this.showOptsChooserForJob,"preview"===t)):(r=!1,this._msgManager("Cannot ".concat(t," job - Destination and Document are required first."))):(this.enableMask=!1,this.returnFocusToElt&&this.returnFocusToElt.focus(),this.returnFocusToElt=null),r&&(this.focusableElts=[],this.showOptsChooserForJob=null)},closePreviewModal:function(e){var t=this;if(e){var a=new FormData;a.append("print_from_preview","1");var n=t.submittedJobs[t.showPreviewModalForJob];p.methods.put("api/jobs/".concat(n.jobId),a).then((function(){n.preview=0,t.returnFocusToElt=null,t.$refs.job_status[t.showPreviewModalForJob].focus(),t.updateStatus(t.showPreviewModalForJob)})).catch((function(e){t.submittedJobs[t.showPreviewModalForJob].jobStatus="An error occurred! ".concat(e)})).finally((function(){t.enableMask=!1,t.showPreviewModalForJob=null}))}else t.enableMask=!1,t.showPreviewModalForJob=null,this.returnFocusToElt&&this.returnFocusToElt.focus(),this.returnFocusToElt=null;this.focusableElts=[]},closeQueueModal:function(e){var t=arguments,a=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var s,r,i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(s=t.length>1&&void 0!==t[1]&&t[1],!e){n.next=8;break}if(a.selectedPrinter||a.selectedDefaultPrinter){n.next=4;break}return n.abrupt("return",!1);case 4:r=a,r.jobs[r.showQueueChooserForJob].selected_printer=r.selectedPrinter,r.verifyJobIsPrintable(r.showQueueChooserForJob),r.updateQueueStatus(r.selectedPrinter.name,"queueModal",r.showQueueChooserForJob);case 8:i=a.showQueueChooserForJob,a.focusableElts=[],a.showQueueChooserForJob=null,s?a.showModal(i,"file",null):(a.enableMask=!1,a.returnFocusToElt&&a.returnFocusToElt.focus(),a.returnFocusToElt=null);case 12:case"end":return n.stop()}}),n)})))()},cloudFileClicked:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if("string"!==typeof e||"!!!BACK!!!"!==e){a.next=6;break}return t.cloudServiceBreadcrumbs.pop(),a.next=4,t.getCloudFiles();case 4:a.next=13;break;case 6:if("dir"!==e.type){a.next=12;break}return t.cloudServiceBreadcrumbs.push(e),a.next=10,t.getCloudFiles();case 10:a.next=13;break;case 12:"file"===e.type&&(t.selectedFile={name:e.name,path:e.path,service:t.fileModalService,extension:e.extension,size:e.size});case 13:case"end":return a.stop()}}),a)})))()},dragEnd:function(){var e,t=document.getElementsByClassName("drop_target"),a=Object(i["a"])(t);try{for(a.s();!(e=a.n()).done;){var n=e.value;n.classList.remove("hovering"),n.classList.remove("dragging")}}catch(s){a.e(s)}finally{a.f()}return!1},dropFile:function(e,t){t.preventDefault();var a=t.dataTransfer,n=a.files,s=this,r=[];if(null!==e){if(n.length>1)r.push("Cannot drop multiple files here!");else if(1===n.length){var o=s.extractExtension(n[0]);n[0].size>s.maxFileSize?r.push("This file exceeds the maximum file size of ".concat(Ee,"MB! Please choose another file to print.")):s.allowedExtensions.includes(o)?"file_chooser"===t.target.id||null!==t.target.closest("#file_chooser")?s.selectedFile=n[0]:t.target.classList.contains("mprint_form")||null!==t.target.closest(".mprint_form")?(s.jobs[e].file=n[0],s.verifyJobIsPrintable(e)):(console.log("not sure what happened here - drop target is somehow invalid?"),console.log(t)):r.push("MPrint is unable to print files of this file type (".concat(o,")! Please choose another file to print."))}}else if("new_mprint_form"===t.target.id||null!==t.target.closest("#new_mprint_form"))if(s.jobs.length+n.length>s.maxJobsNum)r.push("Cannot add more than 5 files!");else{var c,l=Object(i["a"])(n);try{for(l.s();!(c=l.n()).done;){var u=c.value,d=s.extractExtension(u);u.size>s.maxFileSize?r.push("File ".concat(u.name," exceeds the maximum file size of ").concat(Ee,"MB! Cannot print file.")):s.allowedExtensions.includes(d)?s.addNewJob(!1,u):r.push("MPrint is unable to print ".concat(u.name," because its file type (").concat(d,") is not allowed! Please choose another file to print."))}}catch(f){l.e(f)}finally{l.f()}}else console.log("hmm not sure why this fired?"),console.log(t);if(r.length){var p,_=Object(i["a"])(r);try{for(_.s();!(p=_.n()).done;){var m=p.value;s._msgManager(m)}}catch(f){_.e(f)}finally{_.f()}}},editPreview:function(e){if(this.jobs.length<this.maxJobsNum){var t=this.submittedJobs[e];t.jobStatus=null,t.submittedAt=null,this.jobs.push(t),this.printableJobCount+=1,this.$delete(this.submittedJobs,e)}this.closePreviewModal(!1)},extractExtension:function(e){if(Object.keys(e).includes("extension"))return e.extension.toLowerCase();var t=e.name.split(".").pop();return e.name===t&&(t="no extension"),t.toLowerCase()},formatBalance:function(e){var t=e.toString(),a=t.length+2;if(t.indexOf(".")>-1){a-=1;var n=t.split(".");a-=n[1].length,0===+n[0]&&(a-=1)}return e<0&&(a-=1),e.toPrecision(a)},getCloudFiles:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e.cloudServiceBreadcrumbs.map((function(e){return e.name})).join("/"),"drive"===e.fileModalService||"box"===e.fileModalService?a=e.cloudServiceBreadcrumbs.length?e.cloudServiceBreadcrumbs[e.cloudServiceBreadcrumbs.length-1].path:"":e.cloudServiceBreadcrumbs.length&&(a="/".concat(a)),n=e,e.cloudServiceConnectPrompt=null,e.cloudServiceError=null,e.cloudServiceIsLoading=!0,p.methods.get("api/cloudservices/".concat(n.fileModalService,"/list?path=").concat(encodeURIComponent(a))).then((function(e){n.cloudServiceIsLoading=!1,Object.keys(e.data.result).includes("authUrl")?(n.cloudServiceFiles=[],n.cloudServiceConnectPrompt="It looks like MPrint is not yet connected to ".concat(n.fileModalService,'. <a href="').concat(e.data.result.authUrl,'" target="_blank">Enable it here!</a>')):n.cloudServiceFiles=e.data.result.result})).catch((function(e){console.log(e),n.cloudServiceIsLoading=!1,n.cloudServiceFiles=[],n.cloudServiceError=e})).finally((function(){n.focusableElts=[n.$refs.computer_button,n.$refs.drive_button,n.$refs.dropbox_button],n.cloudServiceFiles.length&&(n.arrowElts=[],n.cloudServiceBreadcrumbs.length&&n.cloudServiceBreadcrumbs.length>1?n.arrowElts.push(n.$refs.file_back):n.cloudServiceBreadcrumbs.length&&1===n.cloudServiceBreadcrumbs.length&&n.arrowElts.push(n.$refs.file_back_to_root),n.arrowIndex=n.arrowElts.length,n.arrowElts=n.arrowElts.concat(n.$refs["cloudservicefiles"]),n.arrowElts[n.arrowIndex].focus()),n.focusableElts.push(n.$refs.file_cancel),n.focusableElts.push(n.$refs.file_save)}));case 7:case"end":return t.stop()}}),t)})))()},getQueues:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,p.methods.get("api/queues?basic=1").then((function(e){if(+e.data.result.count){a.queuesList.queues=e.data.result.result.filter((function(e){return!e.class&&+e.printable&&"m-poster-follow-me"!==e.name&&!e.name.startsWith("m-follow-me-")})),a.followMeQueueCount=e.data.result.result.filter((function(e){return e.name.startsWith("m-follow-me")})).length;var t,n=Object(i["a"])(a.queuesList.queues);try{for(n.s();!(t=n.n()).done;){var s=t.value;s["additional_features"]=[],s.color&&s["additional_features"].push("Color"),s.copy&&s["additional_features"].push("Copy"),s.tabloid&&s["additional_features"].push("Tabloid"),s["additional_features"].length||s["additional_features"].push("None"),s["is_public"]=+s["public"]}}catch(r){n.e(r)}finally{n.f()}a.queueSearchFunc("")}else a.queuesList.isError=!0;a.queuesList.isLoaded=!0})).catch((function(e){a.queuesList.isError=!0,a.queuesList.isLoaded=!0,console.log("An error occurred while populating the list of queues! ".concat(e))})).finally((function(){if(a.userData.isLoaded&&!a.jobs.length){if(a.userData.defaultPrinter){var e=a.queuesList.queues.filter((function(e){return e.name===a.userData.defaultPrinter}));0===e.length?(a._msgManager("You do not seem to have access to your previously selected default printer ".concat(a.userData.defaultPrinter,"!")),a.userData.defaultPrinter=null):(a.selectedDefaultPrinter=e[0],+e[0].enabled?a.job_defaults.selected_printer=e[0]:a._msgManager("<b>Notice:</b> Your default printer, ".concat(e[0].name," is not currently enabled for printing and will not be automatically chosen for your jobs!")))}a.addNewJob(!0,null)}}));case 2:case"end":return t.stop()}}),t)})))()},getUserData:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,n=!0,p.methods.get("api/users/".concat(a.user.uniqname)).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var s,r,o,c,l,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!+t.data.result.count){e.next=23;break}s=Math.round(100*(+t.data.result.result[0]["accounts"]["euc"]["personal"][0]["balance"]+Number.EPSILON))/100,r=Math.round(100*(+t.data.result.result[0]["accounts"]["euc"]["student_account_charges"]+Number.EPSILON))/100,a.userData.accounts.available_balance=a.formatBalance(s),a.userData.accounts.student_account_balance=a.formatBalance(r),a.userData.accounts.default_account=t.data.result.result[0]["accounts"]["euc"]["default_account"],a.userData.accounts.popup_behavior=t.data.result.result[0]["accounts"]["euc"]["popup_behavior"],a.userData.accounts.shared=t.data.result.result[0]["accounts"]["euc"]["shared"],a.userData.accounts.shared.length?(a.numSteps=4,a.userData.accounts.default_account&&(a.job_defaults.account=a.userData.accounts.default_account,a.selectedAccount=a.userData.accounts.default_account)):(a.job_defaults.account="Personal Account",a.selectedAccount="Personal Account"),o=Object(i["a"])(t.data.result.result[0]["cloud_services"]);try{for(o.s();!(c=o.n()).done;)l=c.value,+l.is_connected&&a.userData.cloudServices.push(l.name)}catch(d){o.e(d)}finally{o.f()}return a.userData.stats.total_sheets=t.data.result.result[0]["stats"].total_sheets,a.userData.stats.total_since=Object(Q["a"])(Object(U["a"])(t.data.result.result[0]["stats"].total_since),"LL/dd/yyyy"),a.userData.stats.total_trees=Math.round(100*(a.userData.stats.total_sheets/Ae.sheets_per_tree+Number.EPSILON))/100,a.userData.stats.kg_of_c02=Math.round(100*(a.userData.stats.total_sheets*Ae.c02_grams_per_sheet/1e3+Number.EPSILON))/100,a.userData.stats.bulb_hours=Math.round(100*(a.userData.stats.total_sheets*Ae.watt_hours_per_sheet/60+Number.EPSILON))/100,a.userData.isError=!1,e.next=19,p.methods.get("api/usersettings/".concat(a.user.uniqname));case 19:u=e.sent.data.result,+u.count&&(a.userData.defaultPrinter=u.result[0].default_printer,a.userData.userSettingsSaved=!0,a.userData.hideIntroModal=+u.result[0].hide_intro_modal,a.setHideIntroModal=+u.result[0].hide_intro_modal),e.next=25;break;case 23:a.userData.isError=!0,n=!1;case 25:a.userData.isLoaded=!0;case 26:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.log("Could not retrieve user info! ".concat(e)),a.job_defaults.account="Personal Account",a.selectedAccount="Personal Account",a.userData.isError=!0,a.userData.isLoaded=!0})).finally((function(){if(a.userData.isError||a.userData.hideIntroModal||a.showModal(0,"intro",null),n||(window.location.href="".concat(a.publicPath,"/user")),a.queuesList.isLoaded&&!a.jobs.length){if(a.userData.defaultPrinter){var e=a.queuesList.queues.filter((function(e){return e.name===a.userData.defaultPrinter}));0===e.length?(a._msgManager("You do not seem to have access to your previously selected default printer ".concat(a.userData.defaultPrinter,"!")),a.userData.defaultPrinter=null):(a.selectedDefaultPrinter=e[0],+e[0].enabled?a.job_defaults.selected_printer=e[0]:a._msgManager("<b>Notice:</b> Your default printer, ".concat(e[0].name," is not currently enabled for printing and will not be automatically chosen for your jobs!")))}a.addNewJob(!0,null)}}));case 3:case"end":return t.stop()}}),t)})))()},hideHover:function(e){switch(e){case"account":this.showAccountHoverForJob=null;break;case"default_queue":this.showQueueHoverForDefault=!1;break;case"file":this.showFileHoverForJob=null;break;case"followMeInfoBox":console.log("hide follow me info box"),this.showFollowMeInfoBox=!1;break;case"nup_example":this.showNupHoverForLayout=null;break;case"options":this.showOptsHoverForJob=null;break;case"queue":this.showQueueHoverForJob=null;break;default:console.log("".concat(e," is not a valid option!"))}},isEmpty:function(e){return!(e&&""!==e&&e!=={}&&"{}"!==e)},queueSelectClose:function(){this.visibleQueuesObserver.disconnect()},queueSelectOpen:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.hasMoreQueues){t.next=4;break}return t.next=3,e.$nextTick();case 3:e.visibleQueuesObserver.observe(e.$refs.queueListLoad);case 4:case"end":return t.stop()}}),t)})))()},queueSelectInfiniteScroll:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,s,r,i,o,c;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(n=Object(Pe["a"])(e,1),s=n[0],r=s.isIntersecting,i=s.target,!r){a.next=8;break}return o=i.offsetParent,c=i.offsetParent.scrollTop,t.visibleQueueLimit+=50,a.next=7,t.$nextTick();case 7:o.scrollTop=c;case 8:case"end":return a.stop()}}),a)})))()},queueSearchFunc:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.filteredQueues=this.queuesList.queues.filter((function(t){return!e||t.name.toLowerCase().indexOf(e.toLowerCase())>=0||t.display_name.toLowerCase().indexOf(e.toLowerCase())>=0}))},removeFile:function(e){this.jobs[e].isPrintable&&this.printableJobCount--,this.$delete(this.jobs,e),this.disableSubmitAll=0===this.jobs.length||this.printableJobCount!==this.jobs.length},renderNupImg:function(){if(this.showNupHoverForLayout)try{var e="landscape"===this.opts_values.orientation||this.jobs[this.showOptsChooserForJob].file&&["ppt","pptx"].includes(this.extractExtension(this.jobs[this.showOptsChooserForJob].file).toLowerCase())?"vertical_text":"",t="";if(["btlr","btrl","lrbt","lrtb","rlbt","rltb","tblr","tbrl"].includes(this.showNupHoverForLayout)){var a=+this.opts_values.pages_per_sheet;if(a>2){var n=0,s=[],r=0;6===a?"portrait"===this.opts_values.orientation?(r=2,n=3):(r=3,n=2):(n=Math.sqrt(a),r=n);for(var i=0;i<n;i++)s[i]=new Array(r);if(this.showNupHoverForLayout.startsWith("b")||this.showNupHoverForLayout.startsWith("t")){var o=1,c=this.showNupHoverForLayout.startsWith("b"),l=0,u=c?n-1:0;while(o<=a)c&&u<0?(u=n-1,l++):c||u!==n||(u=0,l++),s[u][l]=o,o++,u=c?u-1:u+1;if(this.showNupHoverForLayout.endsWith("rl"))for(var d=0;d<n;d++)s[d].reverse()}else{var p=1,_=this.showNupHoverForLayout.startsWith("r"),m=_?r-1:0,f=0;while(p<=a)_&&m<0?(m=r-1,f++):_||m!==r||(m=0,f++),s[f][m]=p,p++,m=_?m-1:m+1;this.showNupHoverForLayout.endsWith("bt")&&s.reverse()}for(var h=0;h<n;h++){for(var g=0;g<r;g++)t+='<div class="nup_example_page float_left '.concat(this.opts_values.orientation," nup_").concat(a,'"><span class="').concat(e,'">PAGE ').concat(s[h][g],"</span></div>");t+='<div class="clearfix"></div>'}}else"portrait"===this.opts_values.orientation?this.showNupHoverForLayout.indexOf("lr")>-1?(t+='<div class="nup_example_page float_left portrait nup_2"><span class="'.concat(e,'">PAGE 1</span></div>'),t+='<div class="nup_example_page float_left portrait nup_2"><span class="'.concat(e,'">PAGE 2</span></div>'),t+='<div class="clearfix"></div>'):(t+='<div class="nup_example_page float_left portrait nup_2"><span class="'.concat(e,'">PAGE 2</span></div>'),t+='<div class="nup_example_page float_left portrait nup_2"><span class="'.concat(e,'">PAGE 1</span></div>'),t+='<div class="clearfix"></div>'):this.showNupHoverForLayout.indexOf("tb")>-1?(t+='<div class="nup_example_page float_left landscape nup_2"><span class="'.concat(e,'">PAGE 2</span></div>'),t+='<div class="nup_example_page float_left landscape nup_2"><span class="'.concat(e,'">PAGE 1</span></div>'),t+='<div class="clearfix"></div>'):(t+='<div class="nup_example_page float_left landscape nup_2"><span class="'.concat(e,'">PAGE 1</span></div>'),t+='<div class="nup_example_page float_left landscape nup_2"><span class="'.concat(e,'">PAGE 2</span></div>'),t+='<div class="clearfix"></div>')}else t="<div>Invalid N-UP Layout value: ".concat(this.showNupHoverForLayout,"</div>");return t}catch(Qe){console.log(Qe)}},setDefaultNUPLayout:function(){this.jobs[this.showOptsChooserForJob].file&&["ppt","pptx"].includes(this.extractExtension(this.jobs[this.showOptsChooserForJob].file).toLowerCase())&&"portrait"===this.opts_values.orientation&&+this.opts_values.pages_per_sheet>1?this.opts_values.pages_per_sheet_layout="BTLR":this.opts_values.pages_per_sheet_layout="LRTB"},showHover:function(e,t,a){switch(this.hover_x=a.pageX+24,this.hover_y=a.pageY-a.offsetY,t){case"account":this.showAccountHoverForJob=e;break;case"default_queue":this.showQueueHoverForDefault=!0;break;case"file":this.showFileHoverForJob=e;break;case"followMeInfoBox":this.showFollowMeInfoBox=!0,console.log("show follow me info box");break;case"nup_example":this.showNupHoverForLayout=e;break;case"options":this.showOptsHoverForJob=e;break;case"queue":this.showQueueHoverForJob=e;break;default:console.log("".concat(t," is not a valid hover box to open!"));break}},showModal:function(e,t){var a=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.enableMask=!0;var s=0;null!==n&&(this.returnFocusToElt=n.target);var r=0;switch(t){case"account":this.showAccountChooserForJob=e,this.selectedAccount=this.jobs[e].account;var o,c=Object(i["a"])(document.getElementById("account").children[0].children[0].childNodes);try{for(c.s();!(o=c.n()).done;){var l=o.value;"input"===l.nodeName.toLowerCase()&&(s=r),r++}}catch(C){c.e(C)}finally{c.f()}this.focusableElts=[document.getElementById("account").children[0].children[0].childNodes[s],this.$refs.account_cancel,this.$refs.account_save];break;case"default_queue":this.showDefaultQueueChooser=!0;var u,d=Object(i["a"])(document.getElementById("default_queue").children[0].children[0].childNodes);try{for(d.s();!(u=d.n()).done;){var p=u.value;"input"===p.nodeName.toLowerCase()&&(s=r),r++}}catch(C){d.e(C)}finally{d.f()}this.focusableElts=[document.getElementById("default_queue").children[0].children[0].childNodes[s],this.$refs.default_maps_link,this.$refs.default_queue_cancel,this.$refs.default_queue_save];break;case"file":this.showFileChooserForJob=e,this.selectedFile=this.jobs[e].file,null===this.fileModalService&&(this.fileModalService="computer"),this.focusableElts=[this.$refs.computer_button,this.$refs.drive_button,this.$refs.dropbox_button,this.$refs.file_cancel,this.$refs.file_save];break;case"intro":this.showIntroModal=!0,this.focusableElts=[this.$refs.feedback_link,this.$refs.followme_link,this.$refs.mobileapp_link,this.$refs.ios_link,this.$refs.android_link,this.$refs.intro_close];break;case"options":this.showOptsChooserForJob=e;for(var _=0,m=Object.keys(this.opts_values);_<m.length;_++){var f=m[_];this.opts_values[f]=this.jobs[e][f]}this.focusableElts=[];for(var h=0,g=Object.keys(this.$refs);h<g.length;h++){var v=g[h];if(v.startsWith("options_")){var b=+v.split("_")[1];this.focusableElts[b]=this.$refs[v]}}break;case"preview":this.showPreviewModalForJob=e,this.returnFocusToElt=document.getElementById("new_mprint_form"),this.focusableElts=[this.$refs.preview_cancel,this.$refs.preview_print];break;case"queue":this.showQueueChooserForJob=e,this.selectedPrinter=this.jobs[e].selected_printer;var w,y=Object(i["a"])(document.getElementById("queue").children[0].children[0].childNodes);try{for(y.s();!(w=y.n()).done;){var x=w.value;"input"===x.nodeName.toLowerCase()&&(s=r),r++}}catch(C){y.e(C)}finally{y.f()}this.focusableElts=[document.getElementById("queue").children[0].children[0].childNodes[s],this.$refs.maps_link,this.$refs.queue_cancel,this.$refs.queue_save,this.$refs.queue_save_next];break;default:console.log("".concat(t," is not a valid modal to open!"));break}this.focusableElts.length&&(this.focusIndex=0,this.$nextTick((function(){a.focusableElts[a.focusIndex].focus()})))},submitAllJobs:function(){var e=arguments,t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(n=e.length>0&&void 0!==e[0]&&e[0],!t.disableSubmitAll){a.next=3;break}return a.abrupt("return",!1);case 3:t.jobs.length?(s=t,window.setTimeout((function(){s.submitJob(0,n),s.submitAllJobs(n)}),200)):t.disableSubmitAll=!0;case 4:case"end":return a.stop()}}),a)})))()},submitJob:function(e){var t=arguments,a=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var s,r,i,c,l,u,d;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:s=t.length>1&&void 0!==t[1]&&t[1],r=a,i=r.jobs[e],i.jobStatus=null,i.jobStatusFromQueue=null;try{i.isPrintable&&(i.jobStatus="Preparing...",c=i.selected_printer.name,"m-follow-me"!==c||s||(l=Math.ceil(Math.random()*r.followMeQueueCount),l>1&&(c="".concat(c,"-").concat(l))),i.preview="".concat(+s),i.range&&(i.range="".concat(i.range.replace(/\s/g,""))),u=new FormData,u.append("printer_name",c),u.append("filename",i.file.name),u.append("copies",i.copies),u.append("duplex",i.duplex),u.append("orientation",i.orientation),u.append("pages_per_sheet",i.pages_per_sheet),u.append("preview",i.preview),u.append("range",i.range),u.append("size",i.size),i.account&&"personal"!==i.account&&"Personal Account"!==i.account&&u.append("account",i.account),+i.pages_per_sheet>1&&u.append("pages_per_sheet_layout",i.pages_per_sheet_layout),"custom"===i.size&&(u.append("size_length",i.custom_length),u.append("size_width",i.custom_width)),d=r.submittedJobs.push(i)-1,r.removeFile(e),r.returnFocusToElt=null,p.methods.post("api/jobs",u,{headers:{"Content-Type":"multipart/form-data"}}).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:Object.keys(t.data.result).includes("valid")?i.jobStatus="".concat(t.data.result.status_message," ").concat(t.data.result.invalid.concat(t.data.result.missing).join(" ")):(i.jobId=t.data.result.result,a=new FormData,Object.keys(i.file).includes("service")?(a.append("service",i.file.service),a.append("cloud_file_path",i.file.path),a.append("file_extension",i.file.extension)):a.append("file",i.file),p.methods.put("api/jobs/".concat(i.jobId),a,{headers:{"Content-Type":"multipart/form-data"}}).then((function(){r.updateStatus(d),r.$refs.job_status[d].focus()})).catch((function(e){i.jobStatus="An error occurred! ".concat(e)})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){i.jobStatus="An error occurred! ".concat(e)})))}catch(Qe){i.jobStatus="An error occurred! ".concat(Qe)}case 6:case"end":return n.stop()}}),n)})))()},trapArrow:function(e){"ArrowDown"===e.code?(this.arrowIndex++,this.arrowIndex===this.arrowElts.length&&(this.arrowIndex=0)):(this.arrowIndex--,this.arrowIndex<0&&(this.arrowIndex=this.arrowElts.length-1)),this.arrowElts[this.arrowIndex].focus()},trapFocus:function(e,t){if("opts"===e)if(t.shiftKey){this.focusIndex--,this.focusIndex<0&&(this.focusIndex=this.focusableElts.length-1);while(!this.focusableElts[this.focusIndex].classList.contains("focusable"))this.focusIndex--,this.focusIndex<0&&(this.focusIndex=this.focusableElts.length-1)}else{this.focusIndex++,this.focusIndex===this.focusableElts.length&&(this.focusIndex=0);while(!this.focusableElts[this.focusIndex].classList.contains("focusable"))this.focusIndex++,this.focusIndex===this.focusableElts.length&&(this.focusIndex=0)}else t.shiftKey?(this.focusIndex--,this.focusIndex<0&&(this.focusIndex=this.focusableElts.length-1)):(this.focusIndex++,this.focusIndex===this.focusableElts.length&&(this.focusIndex=0));this.focusableElts[this.focusIndex].focus()},updateQueueStatus:function(e,t,a){var n=this;return Object(o["a"])(regeneratorRuntime.mark((function s(){var r;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(!e.startsWith("m-follow-me")){s.next=2;break}return s.abrupt("return",{count:1,result:"OK",status_message:"Follow Me is OK"});case 2:r=n,p.methods.put("api/queues/".concat(e),{command:"getStatusForJob"}).then((function(n){if(+n.data.result.count){if(!n.data.result.result.endsWith("OK"))if("submitted"===t)r.submittedJobs[a].jobStatusFromQueue=n.data.result.result;else if("queueModal"===t)r.jobs[a].selected_printer=null,r.verifyJobIsPrintable(a),r._msgManager("Your chosen printer ".concat(e," is currently in an error state and cannot be printed to! Please choose a different printer."));else if("submit"===t)for(var s in r._msgManager("Your chosen printer ".concat(e," is currently in an error state and cannot be printed to! Please choose a different printer.")),r.jobs)r.jobs[+s].selected_printer.name===e&&(r.jobs[+s].selected_printer=null,r.verifyJobIsPrintable(+s))}else console.log(n.data.result.status_message)})).catch((function(e){console.log(e)}));case 4:case"end":return s.stop()}}),s)})))()},updateStatus:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:n=t,s=n.submittedJobs[e],p.methods.get("api/jobs/".concat(s.jobId)).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(a){var r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:r="".concat(n.isEmpty(a.data.result.result[0].state_reasons)?"".concat(a.data.result.result[0].state):"".concat(a.data.result.result[0].state_reasons)),s.jobStatus=s.jobStatusFromQueue?s.jobStatusFromQueue:r,Object.keys(s).includes("submittedAt")&&s.submittedAt||(s.submittedAt=Object(Q["a"])(Object(U["a"])(a.data.result.result[0].creation_time.split(".")[0].replace("T"," ")),"LL/dd/yyyy HH:mm:ss")),qe.includes(r)||r.toLowerCase().startsWith("printed")?(s.jobStatus=r,s.statusUpdateCount=0,r.toLowerCase().startsWith("printed")&&(i=n.queuesList.queues.filter((function(e){return e.name===a.data.result.result[0].printer_name}))[0],"CCS"===i.service_abbreviation&&n.updateUserBalance())):(s.statusUpdateCount+=1,s.updateTimeout=window.setTimeout((function(){n.updateStatus(e)}),3e3),10===s.statusUpdateCount&&n.updateQueueStatus(s.selected_printer.name,"submitted",e));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){s.jobStatus="An error occurred! ".concat(e)}));case 3:case"end":return a.stop()}}),a)})))()},updateUserBalance:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,p.methods.get("api/users/".concat(a.user.uniqname)).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var n,s,r,o,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(+t.data.result.count){n=Math.round(100*(+t.data.result.result[0]["accounts"]["euc"]["personal"][0]["balance"]+Number.EPSILON))/100,s=Math.round(100*(+t.data.result.result[0]["accounts"]["euc"]["student_account_charges"]+Number.EPSILON))/100,a.userData.accounts.available_balance=a.formatBalance(n),a.userData.accounts.student_account_balance=a.formatBalance(s),r=Object(i["a"])(t.data.result.result[0]["cloud_services"]);try{for(r.s();!(o=r.n()).done;)c=o.value,+c.is_connected&&a.userData.cloudServices.push(c.name)}catch(l){r.e(l)}finally{r.f()}a.userData.stats.total_sheets=t.data.result.result[0]["stats"].total_sheets,a.userData.stats.total_since=Object(Q["a"])(Object(U["a"])(t.data.result.result[0]["stats"].total_since),"LL/dd/yyyy"),a.userData.stats.total_trees=Math.round(100*(a.userData.stats.total_sheets/Ae.sheets_per_tree+Number.EPSILON))/100,a.userData.stats.kg_of_c02=Math.round(100*(a.userData.stats.total_sheets*Ae.c02_grams_per_sheet/1e3+Number.EPSILON))/100,a.userData.stats.bulb_hours=Math.round(100*(a.userData.stats.total_sheets*Ae.watt_hours_per_sheet/60+Number.EPSILON))/100}case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.log("Failed to update user's balance! ".concat(e))}));case 2:case"end":return t.stop()}}),t)})))()},useFollowMe:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e?this.selectedDefaultPrinter=this.queuesList.queues.filter((function(e){return"m-follow-me"===e.name}))[0]:this.selectedPrinter=this.queuesList.queues.filter((function(e){return"m-follow-me"===e.name}))[0]},verifyJobIsPrintable:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return n=t.jobs[e],n.isPrintable=null!==n.account&&null!==n.file&&null!==n.selected_printer,a.next=4,t._testConnection();case 4:for(r in s=a.sent,s||(console.log("job is not printable - connection test failed"),n.isPrintable=!1),n.isPrintable||console.log("job ".concat(e," is not printable")),t.printableJobCount=0,t.jobs)t.jobs[+r].isPrintable&&t.printableJobCount++;t.disableSubmitAll=t.printableJobCount!==t.jobs.length;case 10:case"end":return a.stop()}}),a)})))()},_msgManager:function(e){this.msg.push(e);var t=this;window.setTimeout((function(){t.msg=t.msg.slice(1,t.msg.length)}),4e3)},_testConnection:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e,t.next=3,p.methods.get("api/auth/user").then((function(e){return!!Object.keys(e.data.result).includes("uniqname")||(console.log(e),console.log(e.data.result),!1)})).catch((function(e){return console.log(e),a._msgManager("Your Weblogin session has expired! This page will refresh in 5 seconds."),window.setTimeout((function(){window.location.reload()}),5e3),!1}));case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})))()}},mounted:function(){this.allowedExtensions=De,this.maxFileSizeMb=Ee,this.maxFileSize=1024*Ee*1024,this.visibleQueuesObserver=new IntersectionObserver(this.queueSelectInfiniteScroll),this.user.uniqname&&(this.getQueues(),this.getUserData())},watch:{user:function(){this.getQueues(),this.getUserData()}}},Se=Me,Le=(a("17a4"),a("6cea"),Object(f["a"])(Se,Ce,ke,!1,null,"65e23627",null)),Oe=Le.exports,Re=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper"},[a("div",{attrs:{id:"content"}},[e._m(0),a("div",{staticClass:"full_box center large_text"},[e._v("Uh oh! Something went wrong... "+e._s(e.errorMsg))])])])},Te=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"box full_box"},[a("h1",[e._v("MPrint - Error!")])])}],Ne={name:"error",props:{errorMsg:String,refresh:Boolean,user:{type:Object,default:function(){return{}}}},mounted:function(){this.refresh&&window.setTimeout((function(){window.location.href="".concat(window.location.origin,"?").concat(Date.now())}),5e3)}},Fe=Ne,Ie=Object(f["a"])(Fe,Re,Te,!1,null,null,null),Qe=Ie.exports,Ue=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.msg,expression:"msg"}],attrs:{id:"message_container"}},[a("div",{staticClass:"message",attrs:{id:"message"}},[e._v(e._s(e.msg))])]),a("div",{attrs:{id:"content"}},[e._m(0),a("div",{staticClass:"box full_box"},[a("div",{staticClass:"medium_text center full_width"},[e._v("Thank you for taking the time to provide us with your feedback!")]),e._m(1),a("div",{staticClass:"help_text"},[a("div",[e._v("If your document is taking a long time to process, or will not print, please look for tips on how to prepare your document for printing on our "),a("a",{attrs:{href:e.publicPath+"/help#prepare",target:"_blank"}},[e._v("Help page.")])])]),a("div",{staticClass:"help_text"},[a("div",[e._v("If you believe you have been charged for printing in error, please visit the "),a("a",{attrs:{href:e.refundUrl,target:"_blank"}},[e._v("MPrint Refund page")]),e._v(".")])]),a("h2",[e._v("Feedback")]),a("div",{staticClass:"pt-12"},[a("label",{attrs:{for:"category"}},[e._v("Select a Topic")]),a("v-select",{attrs:{id:"category",options:e.categories},model:{value:e.chosenCategory,callback:function(t){e.chosenCategory=t},expression:"chosenCategory"}})],1),a("div",{staticClass:"pt-12"},[a("label",{attrs:{for:"page"}},[e._v("Which page is this feedback regarding?")]),a("v-select",{attrs:{id:"page",options:e.pages},model:{value:e.chosenPage,callback:function(t){e.chosenPage=t},expression:"chosenPage"}})],1),"Other"===e.chosenPage?[a("div",[a("label",{staticClass:"mr-2",attrs:{for:"otherPage"}},[e._v("Please specify which page:")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.otherPage,expression:"otherPage"}],attrs:{id:"otherPage",type:"text"},domProps:{value:e.otherPage},on:{input:function(t){t.target.composing||(e.otherPage=t.target.value)}}})])]:e._e(),a("div",{staticClass:"pt-12"},[a("label",{attrs:{for:"feedback"}},[e._v("What would you like us to know?")]),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.feedback,expression:"feedback"}],attrs:{id:"feedback",placeholder:"Please enter your "+e.chosenCategory.toLowerCase()+" here!"},domProps:{value:e.feedback},on:{input:function(t){t.target.composing||(e.feedback=t.target.value)}}})]),a("div",{staticClass:"pt-12"},[a("div",{staticClass:"float_left"},[a("div",{staticClass:"button",on:{click:e.resetForm}},[e._v("Reset Form")])]),a("div",{staticClass:"float_right"},[a("div",{staticClass:"button button_blue",class:e.disableSubmit?"disabled":"",on:{click:e.submitFeedback}},[e._v("Submit Feedback"),a("i",{staticClass:"ml-2 fas fa-paper-plane"})])]),a("div",{staticClass:"clearfix"})])],2)])])},$e=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"box full_box"},[a("h1",[e._v("MPrint Feedback")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"help_text"},[a("div",[e._v("If you are experiencing a physical printing issue including (but not limited to) the below scenarios, please contact the "),a("a",{attrs:{href:"https://its.umich.edu/help/"}},[e._v("ITS Service Center")]),e._v(" for assistance:")]),a("ul",[a("li",[e._v("Printer is jammed")]),a("li",[e._v("Printer is out of paper")]),a("li",[e._v("Printer is out of toner")]),a("li",[e._v("Printer is displaying an error")])])])}],Je=a("a49b")["papercut_server"],Be={name:"feedback",data:function(){return{categories:["Comment","Problem","Suggestion","Other"],chosenCategory:"Comment",chosenPage:null,disableSubmit:!1,feedback:null,msg:null,otherPage:null,pages:["MPrint","MPrint Accounts","MPrint Info","MPrint Install","MPrint Maps","MPrint Reports","MPrint Settings","MPrint User","None","Other"],publicPath:window.location.origin,refundUrl:"https://".concat(Je,"/user")}},props:{user:{type:Object,default:function(){return{}}}},methods:{resetForm:function(){this.chosenCategory="Comment",this.chosenPage=null,this.feedback=null,this.otherPage=null,this.disableSubmit=!1},submitFeedback:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.disableSubmit){t.next=2;break}return t.abrupt("return",!1);case 2:return e.disableSubmit=!0,e.msg="Submitting feedback...",a=e,t.next=7,p.methods.post("api/feedback",{userAgent:navigator.userAgent,category:a.chosenCategory,page:"".concat(a.chosenPage).concat(a.otherPage?" - ".concat(a.otherPage):""),feedback:a.feedback}).then((function(e){"success"===e.data.result.status?(a.msg="Thank you for your feedback!",a.resetForm()):(console.log(e.data.result),a.msg="Something went wrong! Please refresh and try again.")})).catch((function(e){console.log(e),a.msg="Something went wrong! Please refresh and try again."})).finally((function(){a.disableSubmit=!1,window.setTimeout((function(){a.msg=null}),4e3)}));case 7:case"end":return t.stop()}}),t)})))()}},created:function(){this.user.uniqname||(this.disableSubmit=!0)},watch:{user:function(){this.disableSubmit=!1}}},We=Be,He=(a("66f6"),a("a757"),Object(f["a"])(We,Ue,$e,!1,null,"9f1b7208",null)),ze=He.exports,Ge=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.msg,expression:"msg"}],attrs:{id:"message_container"}},[a("div",{staticClass:"message",attrs:{id:"message"}},[e._v(e._s(e.msg))])]),a("div",{attrs:{id:"content",role:"main"}},[a("div",{staticClass:"flex_row"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.popFilter,expression:"popFilter"}],staticClass:"box full_box",attrs:{id:"empty_filter_box"}}),a("div",{staticClass:"box full_box",class:e.popFilter?"popped_out":"",attrs:{id:"filter_container"}},[a("div",{staticClass:"flex_row"},[e._m(0),a("div",{staticClass:"flex_member end"},[a("div",[a("label",{attrs:{for:"filter_quick_search"}},[e._v("Quick Search:")]),a("v-select",{attrs:{id:"filter_quick_search",taggable:"",multiple:"",options:[],"dropdown-should-open":function(){return!1}},on:{input:function(t){return e.filterGroups()}},model:{value:e.quickSearch,callback:function(t){e.quickSearch=t},expression:"quickSearch"}})],1),a("p",{staticClass:"pl-2"},[e._v("Join filters with: "),a("label",{attrs:{for:"join_and"}},[e._v("And")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.filterJoinWith,expression:"filterJoinWith"}],attrs:{type:"radio",id:"join_and",name:"filter_join_with",value:"and",checked:"checked"},domProps:{checked:e._q(e.filterJoinWith,"and")},on:{change:[function(t){e.filterJoinWith="and"},function(t){return e.filterGroups()}]}}),e._v(" or "),a("label",{attrs:{for:"join_or"}},[e._v("Or")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.filterJoinWith,expression:"filterJoinWith"}],attrs:{type:"radio",id:"join_or",name:"filter_join_with",value:"or"},domProps:{checked:e._q(e.filterJoinWith,"or")},on:{change:[function(t){e.filterJoinWith="or"},function(t){return e.filterGroups()}]}})])])]),e.groupData.isLoaded?a("div",{staticClass:"flex_row center"},[a("div",{staticClass:"flex_member"},[a("p",[e._v("Showing "+e._s(e.visibleGroups.length)+" "+e._s(1===e.visibleGroups.length?"group":"groups"))])])]):e._e()])]),e._m(1),a("div",{staticClass:"full_width full_box box news"},[a("p",{staticClass:"pb-12"},[e._v(" We have begun using Grouper to automatically manage membership in our MPrint environment based on HR data. This should drastically cut down on the need to add users to an MCommunity group and sync with PaperCut. Sometimes, however, a user will need to print somewhere before their HR affiliation is set. In those cases, you can add the user in question to our temporary access group, to grant them access to the print system for a day. Membership in this temporary group is reset at midnight every night. ")]),e._m(2),a("div",[a("label",{attrs:{for:"temp_user"}},[e._v("User: "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tempUser,expression:"tempUser"}],attrs:{type:"text",id:"temp_user"},domProps:{value:e.tempUser},on:{input:function(t){t.target.composing||(e.tempUser=t.target.value)}}})]),a("button",{staticClass:"button button_blue ml-4",on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.grantTemporaryAccess.apply(null,arguments)}}},[e._v("Grant User Temporary Access")])])]),a("hr",{staticClass:"main_divider"}),e.groupData.isLoaded?e.groupData.isLoaded&&e.groupData.isError||e.syncData.isLoaded&&e.syncData.isError?[e._m(4)]:[e._m(5),a("div",{staticClass:"full_width full_box box"},[e.syncData.isLoaded?e.syncData.isLoaded&&!e.syncData.isError&&e.syncData.syncs.length?[a("table",{staticClass:"full_width"},[e._m(6),e._l(e.syncData.syncs,(function(t,n){return[a("tr",{key:"sync_row_"+n,staticClass:"sync_row",class:n%2===0?"even_row":""},[a("td",{staticClass:"pad-8"},[e._v(e._s(t.group_name))]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.sync_status))]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.formatted_start_time))])])]}))],2)]:e.syncData.isLoaded&&e.syncData.isError?[a("div",{staticClass:"medium_text center"},[e._v("Failed to load pending group syncs! Please refresh and try again.")])]:[a("div",{staticClass:"medium_text center"},[e._v("There are no group syncs to show!")])]:[a("div",{staticClass:"medium_text center"},[e._v("Loading pending group syncs...")])]],2),a("hr",{staticClass:"main_divider"}),e._m(7),a("div",{staticClass:"full_width full_box box"},[e.visibleGroups.length?[a("table",{staticClass:"full_width"},[e._m(8),e._l(e.visibleGroups,(function(t,n){return[a("tr",{key:"group_row_"+n,staticClass:"group_row",class:n%2===0?"even_row":""},[a("td",{staticClass:"pad-8"},[e._v(e._s(t.group_name))]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.sync_status))]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.formatted_sync_end_time))]),e.syncingGroups.includes(t.group_name)?a("td",{staticClass:"pad-8"},[e._v("Sync Scheduled")]):a("td",{staticClass:"pad-8"},[a("a",{attrs:{href:""},on:{click:function(a){return a.stopPropagation(),a.preventDefault(),e.scheduleSync(t.group_name)}}},[e._v("Sync Group")])])])]}))],2)]:[a("div",{staticClass:"medium_text center"},[e._v("There are no groups to show!")])]],2)]:[e._m(3)]],2)])},Ye=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_member"},[a("h1",[e._v("MPrint Group Administration")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member full_width"},[a("h2",[e._v("Grouper Groups")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",{staticClass:"pb-12"},[a("b",[e._v("Note: ")]),e._v("if the printer(s) this user is trying to access have any Group Restrictions set, you will need to add the user to the appropriate restriction group too! ")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member full_width medium_text center"},[e._v("Loading Groups... "),n("img",{attrs:{src:a("d9b6"),alt:"loading groups"}})])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member full_width medium_text center"},[e._v("Failed to load groups! Please refresh and try again.")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member full_width"},[a("h2",[e._v("Pending/Current Group Syncs")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"bold pad-8"},[e._v("Group Name")]),a("td",{staticClass:"bold pad-8"},[e._v("Sync Status")]),a("td",{staticClass:"bold pad-8"},[e._v("Sync Start Time")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member full_width"},[a("h2",[e._v("Full Group List")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"bold pad-8"},[e._v("Group Name")]),a("td",{staticClass:"bold pad-8"},[e._v("Sync Status")]),a("td",{staticClass:"bold pad-8"},[e._v("Last Sync Finish Time")]),a("td",{staticClass:"bold pad-8"})])}],Ve=a("a49b")["ldap"]["temporaryAccessGroup"],Ke={name:"groupsAdmin",data:function(){return{filterJoinWith:"and",groupData:{isError:!1,isLoaded:!1,groups:[]},msg:null,popFilter:!1,quickSearch:[],refreshCountdown:null,syncData:{isError:!1,isLoaded:!1,syncs:[]},syncingGroups:[],syncProgressInterval:null,tempUser:null,visibleGroups:[]}},props:{user:{type:Object,default:function(){return this.$store.getters.getUser}}},methods:{filterGroups:function(){var e=this;this.msg="Filtering groups...","and"!==this.filterJoinWith&&this.quickSearch&&this.quickSearch.length?this.visibleGroups=[]:this.visibleGroups=this.groupData.groups;var t,a=Object(i["a"])(this.quickSearch);try{var n=function(){var a=t.value;"and"===e.filterJoinWith?e.visibleGroups=e.visibleGroups.filter((function(e){return JSON.stringify(Object.values(e)).toLowerCase().indexOf(a.toLowerCase())>-1})):e.visibleGroups=e.visibleGroups.concat(e.groupData.groups.filter((function(e){return JSON.stringify(Object.values(e)).toLowerCase().indexOf(a.toLowerCase())>-1})))};for(a.s();!(t=a.n()).done;)n()}catch(s){a.e(s)}finally{a.f()}this.msg=""},getGroupData:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,e.$set(e.groupData,"isError",!1),e.$set(e.groupData,"isLoaded",!1),e.$set(e.groupData,"groups",[]),e.visibleGroups=[],p.methods.get("api/groups").then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!+t.data.result.count){e.next=6;break}return n=t.data.result.result.filter((function(e){return!["!!All Users!!","!!Internal Users!!","AlumniAA","FacultyAA","MiPrint.All","RegularStaffAA","Retiree","SponsoredAffiliateAA","TemporaryStaffAA"].includes(e)})),e.next=4,p.methods.get("api/groups?latest=1").then((function(e){if(+e.data.result.count){var t={};e.data.result.result.map((function(e){return t[e.group_name]=e}));var s,r=[],o=Object(i["a"])(n);try{for(o.s();!(s=o.n()).done;){var c=s.value,l={group_name:c,sync_status:"N/A",formatted_sync_end_time:"N/A"};Object.keys(t).includes(c)&&(l.sync_status=t[c].sync_status,t[c].sync_end_time&&(l.formatted_sync_end_time=Object(Q["a"])(Object(U["a"])(t[c].sync_end_time.split(".")[0].replace("T"," ")),"yyyy-LL-dd HH:mm:ss"))),r.push(l)}}catch(u){o.e(u)}finally{o.f()}a.$set(a.groupData,"groups",r)}else a.msg="Something went wrong. Please refresh the page and try again.",console.log(e.data.result),a.groupData.isError=!0,window.clearInterval(a.syncProgressInterval)})).catch((function(e){console.log(e),a.msg="An error occurred! Please refresh the page and try again.",a.groupData.isError=!0,window.clearInterval(a.syncProgressInterval)}));case 4:e.next=10;break;case 6:a.msg="Something went wrong. Please refresh the page and try again.",console.log(t.data.result),a.groupData.isError=!0,window.clearInterval(a.syncProgressInterval);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.log(e),a.msg="An error occurred! Please refresh the page and try again.",a.groupData.isError=!0,window.clearInterval(a.syncProgressInterval)})).finally((function(){window.setTimeout((function(){a.msg=null}),4e3),a.groupData.isLoaded=!0,a.$nextTick((function(){a.filterGroups()}))}));case 6:case"end":return t.stop()}}),t)})))()},getSyncData:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e,e.syncData={isError:!1,isLoaded:!1,syncs:[]},t.next=4,Promise.all([p.methods.get("api/groups?status=pending"),p.methods.get("api/groups?status=syncing")]).then((function(e){+e[0].data.result.count+ +e[1].data.result.count?(a.syncData.syncs=e[0].data.result.result.concat(e[1].data.result.result),a.syncData.syncs.map((function(e){return e.sync_start_time?e.formatted_start_time=Object(Q["a"])(Object(U["a"])(e.sync_start_time.split(".")[0].replace("T"," ")),"yyyy-LL-dd HH:mm:ss"):e.formatted_start_time="N/A"})),a.syncingGroups=a.syncData.syncs.map((function(e){return e.group_name}))):a.syncingGroups.length&&(a.syncingGroups=[],a.syncData.syncs=[],a.getGroupData())})).catch((function(e){console.log(e),window.clearInterval(a.syncProgressInterval),a.syncData.isError=!0,a.reloadPage()})).finally((function(){a.syncData.isLoaded=!0}));case 4:case"end":return t.stop()}}),t)})))()},grantTemporaryAccess:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,e.tempUser?(a.msg="Granting user ".concat(a.tempUser," temporary MPrint access..."),p.methods.post("api/ldap/user",{user:a.tempUser,parentGroup:Ve}).then((function(e){Object.keys(e.data.result).includes("valid")&&!e.data.result.valid?a.msg=e.data.result.invalid.concat(e.data.result.missing).join("; "):+e.data.result.count?(a.msg="Access granted! Syncing group now...",a.scheduleSync(Ve)):(console.log(e.data.result),a.msg="Something went wrong... please refresh and try again.")})).catch((function(e){console.log(e),a.msg="An error has occurred! Please refresh and try again."})).finally((function(){a.tempUser=null,window.setTimeout((function(){a.msg=null}),4e3)}))):(a.msg="Must specify a user!",window.setTimeout((function(){a.msg=null}),4e3));case 2:case"end":return t.stop()}}),t)})))()},reloadPage:function(){var e=this;e.refreshCountdown=5,e.msg="Your session has either expired, or another error occurred. Refreshing page in ".concat(e.refreshCountdown," seconds..."),window.setInterval((function(){0===e.refreshCountdown?window.location.reload():(e.refreshCountdown-=1,e.msg="Your session has either expired, or another error occurred. Refreshing page in ".concat(e.refreshCountdown," seconds..."))}),1e3)},scheduleSync:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:n=t,p.methods.put("api/groups/".concat(e)).then((function(e){+e.data.result.count?n.getSyncData():(console.log(e.data.result),n.msg="Something went wrong! Please refresh and try again")})).catch((function(e){console.log(e),n.msg="An error occurred! Please refresh and try again."})).finally((function(){window.setTimeout((function(){n.msg=null}),4e3)}));case 2:case"end":return a.stop()}}),a)})))()},scrollListener:function(){this.popFilter=window.scrollY>100}},created:function(){if(this.user.uniqname){this.getGroupData(),this.getSyncData();var e=this;this.syncProgressInterval=window.setInterval((function(){e.getSyncData()}),15e3)}window.addEventListener("scroll",this.scrollListener)},watch:{user:function(){this.getGroupData(),this.getSyncData();var e=this;this.syncProgressInterval=window.setInterval((function(){e.getSyncData()}),15e3)}},destroyed:function(){window.clearInterval(this.syncProgressInterval),window.removeEventListener("scroll",this.scrollListener)}},Ze=Ke,Xe=(a("e55d"),Object(f["a"])(Ze,Ge,Ye,!1,null,"a800668a",null)),et=Xe.exports,tt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.msg,expression:"msg"}],attrs:{id:"message_container"}},[a("div",{staticClass:"message",attrs:{id:"message"}},[e._v(e._s(e.msg))])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.enableMask,expression:"enableMask"}],staticClass:"mask dim",attrs:{id:"mask"},on:{click:function(t){return e.closeOpenModal(!1)}}}),a("div",{attrs:{id:"content",role:"main"}},[e._m(0),a("div",{staticClass:"box full_box"},[a("h2",[e._v("Guest Topics")]),a("table",{staticClass:"full_width"},[a("tr",{staticClass:"help_title",class:e.expanded.includes("register")?"expanded":"",on:{click:function(t){return e.toggleRow("register")}}},[a("td",{staticClass:"center pad-8-0"},[e._v("Register a Print Account"),a("i",{staticClass:"ml-2 fas",class:e.expanded.includes("register")?"fa-caret-down":"fa-caret-right"})])]),a("tr",{staticClass:"help_content",class:e.expanded.includes("register")?"shown":""},[a("td",{staticClass:"pad-8"},[a("p",[e._v("Do you already have a uniqname? If so, please add your uniqname to our print system by visiting "),a("a",{attrs:{target:"_blank",href:e.publicPath+"/user"}},[e._v("this page")]),e._v(', and clicking the "Enroll" button. If not, please '),a("a",{attrs:{target:"_blank",href:"https://"+e.papercutUrl+":9192/register"}},[e._v("register a new guest account")]),e._v(". By registering, you gain access to many of the same features as students, faculty, and staff:")]),e._m(1),e._m(2)])]),a("tr",{staticClass:"help_title even_row",class:e.expanded.includes("funds")?"expanded":"",on:{click:function(t){return e.toggleRow("funds")}}},[a("td",{staticClass:"center pad-8-0"},[e._v("Visit the University Tech Shop to Add Funds and Get a Copy Card"),a("i",{staticClass:"ml-2 fas",class:e.expanded.includes("funds")?"fa-caret-down":"fa-caret-right"})])]),a("tr",{staticClass:"help_content even_row",class:e.expanded.includes("funds")?"shown":""},[a("td",{staticClass:"pad-8"},[e._m(3),a("p",[e._v("After you complete your transaction with the Tech Shop, you will be emailed one or more MPrint Credit Codes to redeem, to complete the process of adding funds to your print account. If you have a uniqname, please visit "),a("a",{attrs:{href:e.publicPath+"/user#redeem",target:"_self",title:"Accounts Page"}},[e._v("your accounts page")]),e._v(" to redeem your code(s). If you do not have a uniqname, but instead have a guest account, please fill out "),a("a",{attrs:{href:""},on:{click:function(t){t.preventDefault(),t.stopPropagation(),e.enableMask=!0}}},[e._v("this form")]),e._v(" to redeem your newly purchased code(s).")]),a("p",[a("b",[e._v("Please note:")]),e._v(" all transactions are final! Once you have purchased a MPrint Credit Code, the money cannot be refunded to you. That said, you can "),a("a",{attrs:{href:"https://"+e.papercutUrl+":9192/user",target:"_blank"}},[e._v("request a refund for poorly printed documents or copy jobs")]),e._v(". These refunds are processed as credit added to your print account, but will not be returned as cash, check, or credit.")]),a("br"),e._m(4),a("p",[e._v("At the Tech Shop, you can also obtain a guest printing card. This card will allow you to make copies, scan-to-email, or easily release Follow Me jobs by swiping the card to login on any Sites printer with an attached card reader. After you are given a guest printing card, please fill out the below form to associate the card to your account.")]),a("form",{attrs:{id:"guest_card_form"}},[a("label",{staticClass:"pad",attrs:{for:"guest_username2"}},[e._v("What is your print account username (begins with guest-)? "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.guestUserName2,expression:"guestUserName2"}],attrs:{type:"text",id:"guest_username2",placeholder:"guest-example"},domProps:{value:e.guestUserName2},on:{input:function(t){t.target.composing||(e.guestUserName2=t.target.value)}}})]),a("br"),a("label",{staticClass:"pad",attrs:{for:"card_number"}},[e._v("What is the number on your guest card? "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.guestCardNumber,expression:"guestCardNumber"}],attrs:{type:"text",id:"card_number",placeholder:"12345678"},domProps:{value:e.guestCardNumber},on:{input:function(t){t.target.composing||(e.guestCardNumber=t.target.value)}}})]),a("div",{staticClass:"pb-12",domProps:{innerHTML:e._s(e.setCardResult)}}),a("a",{staticClass:"button button_blue",attrs:{href:"",id:"associate_number"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.setCardNumber()}}},[e._v("Attach Card")]),e._v(" "),a("a",{staticClass:"button",attrs:{href:"",id:"reset_card_form"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.clearCardForm()}}},[e._v("Reset Form")])])])]),a("tr",{staticClass:"help_title",class:e.expanded.includes("sites")?"expanded":"",on:{click:function(t){return e.toggleRow("sites")}}},[a("td",{staticClass:"center pad-8-0"},[e._v("Print from a Sites Computer"),a("i",{staticClass:"ml-2 fas",class:e.expanded.includes("sites")?"fa-caret-down":"fa-caret-right"})])]),a("tr",{staticClass:"help_content",class:e.expanded.includes("sites")?"shown":""},[e._m(5)]),a("tr",{staticClass:"help_title even_row",class:e.expanded.includes("balance")?"expanded":"",on:{click:function(t){return e.toggleRow("balance")}}},[a("td",{staticClass:"center pad-8-0"},[e._v("Check your Balance and More"),a("i",{staticClass:"ml-2 fas",class:e.expanded.includes("balance")?"fa-caret-down":"fa-caret-right"})])]),a("tr",{staticClass:"help_content even_row",class:e.expanded.includes("balance")?"shown":""},[a("td",{staticClass:"pad-8"},[a("p",[a("a",{attrs:{target:"_blank",href:"https://"+e.papercutUrl+":9192/user"}},[e._v("Log into your account page")]),e._v(" to check your printing balance, view job history, and request refunds. Click "),a("b",[e._v("Recent Job History")]),e._v(" to see what you have printed or to request refunds. A filter at the top of the page limits the history to two weeks, but you can change or remove the filter to display older information. ")])])]),a("tr",{staticClass:"help_title",class:e.expanded.includes("faqs")?"expanded":"",on:{click:function(t){return e.toggleRow("faqs")}}},[a("td",{staticClass:"center pad-8-0"},[e._v("Frequently Asked Questions"),a("i",{staticClass:"ml-2 fas",class:e.expanded.includes("faqs")?"fa-caret-down":"fa-caret-right"})])]),a("tr",{staticClass:"help_content",class:e.expanded.includes("faqs")?"shown":""},[e._m(6)])])])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.enableMask,expression:"enableMask"}],staticClass:"modal",attrs:{id:"redeem_modal"}},[e._m(7),a("div",{staticClass:"modal_content"},[a("label",{attrs:{for:"guest_username"}},[e._v("What is your print account username (begins with guest-)?")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.guestUserName,expression:"guestUserName"}],staticClass:"ml-2",attrs:{type:"text",id:"guest_username",placeholder:"guest-example"},domProps:{value:e.guestUserName},on:{input:function(t){t.target.composing||(e.guestUserName=t.target.value)}}}),a("br"),a("div",{staticClass:"medium_text"},[e._v("Enter your code(s) below:")]),e._l(e.codesToRedeem,(function(t,n){return[a("div",{key:"code_"+n},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.codesToRedeem[n],expression:"codesToRedeem[index]"}],staticClass:"long_input",attrs:{type:"text",placeholder:t},domProps:{value:e.codesToRedeem[n]},on:{input:function(t){t.target.composing||e.$set(e.codesToRedeem,n,t.target.value)}}}),a("a",{staticClass:"ml-2",attrs:{href:""},on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.codesToRedeem.push("")}}},[e._v("+ Add Code")]),a("span",{staticClass:"ml-4",attrs:{id:"redeem_status_"+n}})])]}))],2),a("div",{staticClass:"modal_footer"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("div",{staticClass:"button button_blue",attrs:{role:"button",tabindex:"0"},on:{click:function(t){return e.closeOpenModal(!1)}}},[e._v("Close")])]),a("div",{staticClass:"flex_member end"},[a("div",{staticClass:"button button_blue",attrs:{role:"button",tabindex:"0"},on:{click:function(t){return e.closeOpenModal(!0)}}},[a("i",{staticClass:"fas fa-dollar-sign mr-2"}),e._v("Redeem")])])])])])])},at=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"box full_box"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("h1",[e._v("MPrint Guest")])])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"list"},[a("li",[e._v("Add funds to your account")]),a("li",[e._v("View your print/copy history")]),a("li",[e._v("Request refunds")]),a("li",[e._v("Scan-to-email")]),a("li",[e._v("Check your print balance")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[e._v("Users "),a("b",[e._v("with")]),e._v(" a uniqname can use their uniqname to log in to Campus Computing Sites computers to print. Users "),a("b",[e._v("without")]),e._v(" a uniqname must log in to guest computers using the guest login information displayed on the guest computer desktop background. Guest computers are primarily located on the first floor of the Shapiro Library.")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[e._v("Once registered, visit the Tech Shop at one of their "),a("a",{attrs:{href:"https://techshop.umich.edu/locations-hours",target:"_blank"}},[e._v("campus locations")]),e._v(" to add funds to your new account. Funds added to your account will "),a("b",[e._v("never")]),e._v(" expire. If you already have a uniqname, you can add funds to your MPrint account online by visiting the "),a("a",{attrs:{href:"https://techshop.umich.edu/gift-cards.html",target:"_blank",title:"Tech Shop Website"}},[e._v("Tech Shop website")]),e._v("!")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"card_form_header"}},[a("b",[e._v("Attach Guest Card to Account")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("td",{staticClass:"pad-8"},[n("p",[e._v('Next, log in to a Sites computer. University guests will need to use the dedicated "guest" computers at the various Library locations, and can log in using the Library Guest credentials displayed on the computer\'s desktop background. Those with a uniqname can use any Sites computer, with their uniqname and password. Printers are already installed, and they are usually located near the computer you are using. Printer names indicate their capabilities—for example, color printers have “color” in their names, and multifunction devices capable of printing, copying, and scanning have “multi” in their names.'),n("br"),n("br"),e._v(" When you send a print job to these printers, it will print immediately after any jobs in progress."),n("br"),n("br"),e._v(" Once you select a printer and click Print, enter your guest account username and password in the prompt pictured below (ex. Username: guest-example, Password: Gue5Tpr1ntiNg!)."),n("br")]),n("div",{staticClass:"pictureframe"},[n("img",{attrs:{src:a("d6d6"),title:"Guest User Popup",alt:"Guest User Popup"}})]),n("br"),n("p",[n("b",[e._v("What is Follow Me?")]),n("br"),e._v(" Follow Me is a printing queue that holds jobs for up to 24 hours. When you are ready to pick up your document(s), swipe your guest printing card on any multifunction device equipped with a card reader, touch "),n("b",[e._v("Jobs Pending Release")]),e._v(", and then your job(s) will begin printing. Follow Me is a great solution when you are printing sensitive documents, for example, or when you have many separate pages to be kept together by printing them all at once. ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",{staticClass:"pad-8"},[a("p",{staticClass:"wot"},[a("b",[e._v("Q.")]),e._v(" Which printers can I use?"),a("br"),a("b",[e._v("A.")]),e._v(" All Sites printers allow guest printing. Once you register a guest account, you may choose from any of the installed printers on your computer, depending on the features you need (e.g., color, duplex, etc.)."),a("br"),a("br"),a("b",[e._v("Q.")]),e._v(" Do I need a guest printing card?"),a("br"),a("b",[e._v("A.")]),e._v(" No. As long as there are funds available in your account, you can send printing jobs from a computer without a guest printing card. To copy, scan, and use Follow Me printing, you must log in to your account at the device, either by swiping a guest printing card or by keying in your account username and password."),a("br"),a("br"),a("b",[e._v("Q.")]),e._v(" How do I get a guest printing card?"),a("br"),a("b",[e._v("A.")]),e._v(" Visit the Tech Shop at one of their "),a("a",{attrs:{href:"https://techshop.umich.edu/locations-hours",target:"_blank"}},[e._v("campus locations")]),e._v(" to obtain a guest printing card. You must add at least $5 to your account balance to be issued a card."),a("br"),a("br"),a("b",[e._v("Q.")]),e._v(" What if I lose my guest printing card?"),a("br"),a("b",[e._v("A.")]),e._v(" Please email "),a("a",{attrs:{href:"mailto:4help@umich.edu",target:"_blank"}},[e._v("4HELP@umich.edu")]),e._v(' to report the lost card, along with the "guest-" username you use for printing. We will disable the card so that if it is found, no one else can use your funds. Visit the Tech Shop at one of their '),a("a",{attrs:{href:"https://techshop.umich.edu/locations-hours",target:"_blank"}},[e._v("campus locations")]),e._v(" to obtain a new card by adding a minimum of $5 to your account. If you find the card you lost and have not yet replaced it, you can reattach it to your account using the "),a("a",{attrs:{href:"#purchase"}},[e._v("form above")]),e._v(". If you find the card you lost and have already replaced it, please turn it in to the Tech Shop so it can be reused."),a("br"),a("br"),a("b",[e._v("Q.")]),e._v(" What if I forgot my account username or password?"),a("br"),a("b",[e._v("A.")]),e._v(" If you need assistance recovering your username or resetting your password, please contact "),a("a",{attrs:{href:"mailto:4help@umich.edu",target:"_blank"}},[e._v("4HELP@umich.edu")]),e._v(" and provide the email address you used to create the guest account. Someone will follow up with you via that email address to provide your guest account name, and/or reset your password."),a("br"),a("br"),e._v(" Did we forget something? If you have more questions, please contact the "),a("a",{attrs:{href:"http://its.umich.edu/help/"}},[e._v("ITS Service Center")]),e._v(" at 734-764-HELP (764-4357) or "),a("a",{attrs:{href:"mailto:4HELP@umich.edu"}},[e._v("4HELP@umich.edu")]),e._v(". ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Redeem MPrint Credit Codes")])])}],nt=a("a49b")["papercut_server"],st={name:"guest",data:function(){return{codesToRedeem:[""],enableMask:!1,expanded:["other"],guestCardNumber:null,guestUserName:null,guestUserName2:null,msg:null,papercutUrl:nt,publicPath:window.location.origin,setCardResult:""}},methods:{clearCardForm:function(){this.guestUserName2=null,this.guestCardNumber=null,this.setCardResult=""},closeOpenModal:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(n=!0,!e){a.next=11;break}if(t.codesToRedeem=t.codesToRedeem.filter((function(e){return""!==e})),!t.guestUserName){a.next=9;break}return a.next=6,t.redeem();case 6:n=a.sent,a.next=11;break;case 9:t.msg="Guest Username cannot be blank!",window.setTimeout((function(){this.msg=""}),4e3);case 11:if(n){for(s in t.codesToRedeem)r=document.getElementById("redeem_status_".concat(+s)),r.className="",r.innerHTML="";t.codesToRedeem=[""],t.enableMask=!1,t.guestUserName=null}case 12:case"end":return a.stop()}}),a)})))()},redeem:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e,n=!0,e.msg="Redeeming MPrint Credit Codes...",t.next=5,Promise.all(a.codesToRedeem.map((function(e){return p.methods.put("/api/guest/".concat(a.guestUserName),{action:"redeem",creditcode:e})}))).then((function(e){var t=0;for(var s in e){var r=document.getElementById("redeem_status_".concat(+s));if(Object.keys(e[+s].data.result).includes("valid")&&!e[+s].data.result.valid){var i=document.getElementById("redeem_status_".concat(+s));i.classList.add("red"),i.innerHTML="Code is invalid!"}else+e[+s].data.result.count?(r.classList.add("green"),r.innerHTML="Successfully redeemed code!",t++):(r.classList.add("red"),r.innerHTML="".concat(e[+s].data.result.status_message))}t?a.msg="Successfully redeemed ".concat(t," code(s)!"):(a.msg="Failed to redeem ".concat(a.codesToRedeem.length," code(s)!"),n=!1)})).catch((function(e){a.msg="An error occurred while trying to redeem provided credit codes! Please refresh and try again.",n=!1,console.log(e)})).finally((function(){return window.setTimeout((function(){a.msg=""}),3e3),n}));case 5:case"end":return t.stop()}}),t)})))()},setCardNumber:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n,s,r,i,o,c;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:for(a=e,e.setCardResult="",n=e.guestCardNumber.replace(/[-_]/g,""),s=[{min:99398e3,max:99398999},{min:994e5,max:99404274},{min:99404280,max:99404999},{min:99406e3,max:99406330},{min:99461900,max:99470400}],r=!1,i=0,o=s;i<o.length;i++)c=o[i],+n>=c["min"]&&+n<=c["max"]&&(r=!0);r?p.methods.put("api/guest/".concat(a.guestUserName2),{action:"setCardNumber",cardNumber:+n}).then((function(e){+e.data.result.count?a.setCardResult="<span class='green'>".concat(e.data.result.status_message,"</span>"):Object.keys(e.data.result).includes("valid")?a.setCardResult="<span class='red'>".concat(e.data.result.invalid.concat(e.data.result.missing).join("; "),"</span>"):a.setCardResult="<span class='red'>".concat(e.data.result.status_message,"</span>")})).catch((function(e){console.log(e),a.setCardResult="<span class='red'>An error occurred! Please refresh the page and try again.</span>"})):e.setCardResult="<span class='red'>Specified card number is not valid for a guest card!</span>";case 7:case"end":return t.stop()}}),t)})))()},toggleRow:function(e){this.expanded.includes(e)?this.expanded=this.expanded.filter((function(t){return t!==e})):this.expanded.push(e)}},mounted:function(){var e=window.location.hash;if(e){var t=e.split("#");["balance","faqs","funds","register","sites"].includes(t[1])?this.toggleRow(t[1]):"redeem"===t[1]&&(this.toggleRow("funds"),this.enableMask=!0)}}},rt=st,it=(a("26ae"),Object(f["a"])(rt,tt,at,!1,null,"0735c484",null)),ot=it.exports,ct=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.msg,expression:"msg"}],attrs:{id:"message_container"}},[a("div",{staticClass:"message",attrs:{id:"message"}},[e._v(e._s(e.msg))])]),a("div",{attrs:{id:"content",role:"main"}},[e._m(0),a("div",{staticClass:"box full_box"},[a("table",{staticClass:"full_width"},[a("tr",{staticClass:"help_title",class:e.expanded.includes("prepare")?"expanded":"",on:{click:function(t){return e.toggleRow("prepare")}}},[a("td",{staticClass:"center pad-8-0 large_text"},[e._v("Prepare My Document for Printing"),a("i",{staticClass:"ml-2 fas",class:e.expanded.includes("prepare")?"fa-caret-down":"fa-caret-right"})])]),a("tr",{staticClass:"help_content",class:e.expanded.includes("prepare")?"shown":""},[a("td",{staticClass:"pad-8"},[a("p",[e._v("PDFs can get pretty complex, and as the complexity increases, so does the likelihood that the print system may have trouble printing your document. PDF encryption/security, document layers, and embedded fonts are some of the most common causes for a print job to get stuck on our server. Below are some tips to help you ensure your document will process and print properly:")]),a("ol",[e._m(1),a("li",[a("b",[e._v("Make sure your PDF is not password protected.")]),e._v(" PDF encryption is a great tool for data security, but it makes it impossible to print! When using the "),a("a",{attrs:{href:""+e.publicPath,target:"_blank"}},[e._v("MPrint web app")]),e._v(', if your PDF has any sort of password protection enabled, you will need to remove all password protection, or save an unprotected copy to print. If you are printing to a printer installed on your computer, you may need to ensure the "Print" permission is allowed.')]),e._m(2),a("li",[a("b",[e._v("Generate a print preview first.")]),e._v(" When using the "),a("a",{attrs:{href:""+e.publicPath,target:"_blank"}},[e._v("MPrint web app")]),e._v(', we recommend you use the "Generate Print Preview" option before submitting your document. The print preview will help ensure the settings you chose will produce the output you want, and it also will show you whether or not the print system can process your document.')]),e._m(3)])])]),a("tr",{staticClass:"help_title even_row",class:e.expanded.includes("installer")?"expanded":"",on:{click:function(t){return e.toggleRow("installer")}}},[a("td",{staticClass:"center pad-8-0 large_text"},[e._v("Using the MPrint Installer App"),a("i",{staticClass:"ml-2 fas",class:e.expanded.includes("installer")?"fa-caret-down":"fa-caret-right"})])]),a("tr",{staticClass:"help_content even_row",class:e.expanded.includes("installer")?"shown":""},[a("td",{staticClass:"pad-8"},[a("p",[e._v("The MPrint Installer app makes it easy to add MPrint print queues to your PC, Mac, or even Linux machine! MiWorkspace customers and MPrint as a Service subscribers should already have the app installed on your University-provided machine - find it in the Block-M helper application on your computer. If you don't already have it, or you are using a personal machine, you can download and install it from the "),a("a",{attrs:{href:e.publicPath+"/install",target:"_blank"}},[e._v("MPrint Install page")]),e._v(". Once you have the application on your machine, simply:")]),e._m(4),e._m(5)])]),a("tr",{staticClass:"help_title",class:e.expanded.includes("app")?"expanded":"",on:{click:function(t){return e.toggleRow("app")}}},[a("td",{staticClass:"center pad-8-0 large_text"},[e._v("Using the MPrint Mobile App"),a("i",{staticClass:"ml-2 fas",class:e.expanded.includes("app")?"fa-caret-down":"fa-caret-right"})])]),a("tr",{staticClass:"help_content",class:e.expanded.includes("app")?"shown":""},[e._m(6)]),a("tr",{staticClass:"help_title even_row",class:e.expanded.includes("refund")?"expanded":"",on:{click:function(t){return e.toggleRow("refund")}}},[a("td",{staticClass:"center pad-8-0 large_text"},[e._v("Account Balance and Requesting Refunds"),a("i",{staticClass:"ml-2 fas",class:e.expanded.includes("refund")?"fa-caret-down":"fa-caret-right"})])]),a("tr",{staticClass:"help_content even_row",class:e.expanded.includes("refund")?"shown":""},[a("td",{staticClass:"pad-8"},[e._m(7),a("ul",[a("li",[e._v("All university faculty and staff receive a $3 per semester CCS printing allocation, while students receive a $24 per semester allocation.")]),a("li",[e._v("University students are allowed to print past their CCS printing allocation. Any printing that results in a negative balance will be charged to the student's account in Wolverine Access the following month.")]),e._m(8),a("li",[e._v("Faculty, staff, and even university guests can additionally supplement their CCS account balance by "),a("a",{attrs:{href:"https://techshop.umich.edu/mprint.html",target:"_blank"}},[e._v("MPrint Credits via the University Tech Shop")]),e._v(". After purchasing credits from the Tech Shop, you will receive an email with one or more codes to redeem, by copying and pasting them into "),a("a",{attrs:{href:e.publicPath+"/user#redeem",target:"_blank"}},[e._v("this form")]),e._v(".")]),a("li",[e._v("You can view your current available balance at any time by visiting your MPrint User page.")]),e._m(9)]),e._m(10),e._m(11),e._m(12)])]),a("tr",{staticClass:"help_title",class:e.expanded.includes("settings")?"expanded":"",on:{click:function(t){return e.toggleRow("settings")}}},[a("td",{staticClass:"center pad-8-0 large_text"},[e._v("MPrint Settings"),a("i",{staticClass:"ml-2 fas",class:e.expanded.includes("settings")?"fa-caret-down":"fa-caret-right"})])]),a("tr",{staticClass:"help_content",class:e.expanded.includes("settings")?"shown":""},[a("td",{staticClass:"pad-8"},[a("p",[e._v("On the "),a("a",{attrs:{href:e.publicPath+"/settings",target:"_blank"}},[e._v("MPrint Settings page")]),e._v(", you can:")]),e._m(13),e._m(14)])]),a("tr",{staticClass:"help_title even_row",class:e.expanded.includes("other")?"expanded":"",on:{click:function(t){return e.toggleRow("other")}}},[a("td",{staticClass:"center pad-8-0 large_text"},[e._v("My Question isn't Answered Here!"),a("i",{staticClass:"ml-2 fas",class:e.expanded.includes("other")?"fa-caret-down":"fa-caret-right"})])]),a("tr",{staticClass:"help_content even_row",class:e.expanded.includes("other")?"shown":""},[e._m(15)])])])])])},lt=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"box full_box"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("h1",[e._v("MPrint Help")])])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("li",[a("b",[e._v("Always open your document first.")]),e._v(" PDFs downloaded from the internet or created from other sources could become corrupted, and will not be able to print. Make sure you can open the document before trying to print it.")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("li",[a("b",[e._v("Try flattening your PDF.")]),e._v(" Documents with layers or embedded objects can be problematic when trying to print. You may need to flatten the layers of your PDF before it will print properly. "),a("a",{attrs:{href:"https://helpx.adobe.com/acrobat/kb/printing-complex-pdfs-acrobat.html",target:"_blank"}},[e._v("Adobe Acrobat online help")]),e._v(" has instructions for flattening PDFs and other tips for handling complex PDFs, if you have access to Adobe Acrobat. If you do not have access to Adobe Acrobat, there are a number of websites you can use to optimize your PDF.")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("li",[a("b",[e._v("Printing an Adobe Illustrator file?")]),e._v(' Make sure you\'ve saved your original with "PDF Compatibility" enabled!')])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ol",[a("li",[e._v("Launch the application")]),a("li",[e._v("Register your device with MPrint (first launch for non-MiWorkspace machines only) to personalize the list of available queues")]),a("li",[e._v("Choose the print queues you want to install by name, or find and install the most convenient print queues with MPrint Maps")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[e._v("That's it! You can find more detailed instructions for the MPrint Install application "),a("a",{attrs:{href:"https://teamdynamix.umich.edu/TDClient/30/Portal/KB/ArticleDet?ID=9611"}},[e._v("our knowledge base article")]),e._v(".")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",{staticClass:"pad-8"},[a("p",[e._v("The MPrint Mobile app brings printing to your mobile device in 4 easy steps:")]),a("ol",[a("li",[e._v("Send a document to Follow Me")]),a("li",[e._v("Launch the MPrint Mobile App")]),a("li",[e._v("Choose which pending documents you want to release")]),a("li",[e._v("Release your jobs to a nearby printer, either via Bluetooth or by scanning the printer's QR code")])]),a("p",[e._v("It's that easy! Learn more about using the Mobile App, "),a("a",{attrs:{href:"https://teamdynamix.umich.edu/TDClient/30/Portal/KB/ArticleDet?ID=7766"}},[e._v("here")]),e._v(", or download the app now:")]),a("p",[a("a",{attrs:{href:"https://itunes.apple.com/us/app/mprint-mobile/id1198608429?mt=8#",target:"_blank","aria-label":"iOS App Download Link"}},[a("i",{staticClass:"fab fa-apple fa-3x mr-2 space-grey"})]),a("a",{attrs:{href:"https://play.google.com/store/apps/details?id=edu.umich.mprint.app",target:"_blank","aria-label":"Android App Download Link"}},[a("i",{staticClass:"fab fa-android fa-3x mr-2 android-green"})])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[e._v("The MPrint environment supports printing across multiple services - Campus Computing Sites (CCS), MiWorkspace, and MPrint as a Service. Only CCS printers institute a rate that is charged per-page-printed. Currently, that rate is $0.06 per page on black/white printers and $0.23 per page on color printers. The below info applies "),a("i",[e._v("only")]),e._v(" to CCS printers:")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("li",[e._v("Faculty, staff, and students can supplement their CCS printing allocation by creating Shortcode-backed accounts. Learn more about using Shortcodes for MPrint "),a("a",{attrs:{href:"https://teamdynamix.umich.edu/TDClient/30/Portal/KB/ArticleDet?ID=753",target:"_blank"}},[e._v("here")]),e._v(".")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("li",[e._v("You can contest any printing charges by "),a("a",{attrs:{href:"https://accounts.miprint.it.umich.edu",target:"_blank"}},[e._v("Requesting a Refund")]),e._v(". Please review the "),a("a",{attrs:{href:"https://its.umich.edu/computing/computers-software/campus-computing-sites/printing/refund-policy",target:"_blank"}},[e._v("CCS Refund policy")]),e._v(" before doing so.")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[a("b",[e._v("Note:")]),e._v(" that the color content of your document is irrelevant in determining cost! Printing a black/white document to a color printer still costs $0.23 per page.")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[a("b",[e._v("Note:")]),e._v(" a page refers to "),a("i",[e._v("one side")]),e._v(" of a sheet of paper. Documents that are printed in duplex (two-sided) still charge for each side.")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[a("b",[e._v("Note:")]),e._v(" some CCS printers offer Tabloid-sized paper. Jobs printed on Tabloid paper charge double the standard Letter-sized rates.")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",[a("li",[e._v("Link your Google Drive or Dropbox account")]),a("li",[e._v("Set a default printer")]),a("li",[e._v("Adjust the PaperCut Account Selection Popup behavior")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[e._v("More information about the MPrint settings page can be found "),a("a",{attrs:{href:"https://teamdynamix.umich.edu/TDClient/30/Portal/KB/ArticleDet?ID=12210",target:"_blank"}},[e._v("here")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",{staticClass:"pad-8"},[a("p",[e._v("Contact the "),a("a",{attrs:{href:"http://its.umich.edu/help/",target:"_blank"}},[e._v("ITS Service Center")]),e._v(":"),a("br"),e._v("Mon—Thurs, 7 a.m.—7 p.m. | Fri, 7 a.m.—6 p.m. | Sun, 2—7 p.m.")]),a("ul",[a("li",[a("a",{attrs:{href:"http://chatsupport.it.umich.edu/",target:"_blank"}},[e._v("Chat")]),e._v(" (Mon—Fri, 8 a.m.—5 p.m.)")]),a("li",[e._v("734‐764‐HELP (764‐4357)")]),a("li",[a("a",{attrs:{href:"http://its.umich.edu/help/request/",target:"_blank"}},[e._v("Submit a Service Request Online")])]),a("li",[a("a",{attrs:{href:"mailto:4help@umich.edu"}},[e._v("4HELP@umich.edu")])])])])}],ut={name:"help",data:function(){return{expanded:["other"],msg:null,publicPath:window.location.origin}},methods:{toggleRow:function(e){this.expanded.includes(e)?this.expanded=this.expanded.filter((function(t){return t!==e})):this.expanded.push(e)}},mounted:function(){var e=window.location.hash;if(e){var t=e.split("#");["prepare","app","refund","settings","other"].includes(t[1])&&this.toggleRow(t[1])}}},dt=ut,pt=(a("dff6"),Object(f["a"])(dt,ct,lt,!1,null,"79e92ec4",null)),_t=pt.exports,mt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.msg,expression:"msg"}],attrs:{id:"message_container"}},[n("div",{staticClass:"message",attrs:{id:"message"}},[e._v(e._s(e.msg))])]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.enableMask,expression:"enableMask"}],staticClass:"mask dim",attrs:{id:"mask"},on:{click:function(t){return e.closeOpenModal(!1)}}}),n("div",{attrs:{id:"content",role:"main"}},[n("div",{staticClass:"flex_row"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.popFilter,expression:"popFilter"}],staticClass:"box full_box",attrs:{id:"empty_filter_box"}}),n("div",{staticClass:"box full_box",class:e.popFilter?"popped_out":"",attrs:{id:"filter_container"}},[n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member"},[n("h2",[e._v("Filter Queues - "),n("a",{attrs:{href:""},on:{click:function(t){return t.preventDefault(),e.clearFilters()}}},[e._v("Clear Filters")])])]),n("div",{staticClass:"flex_member end"},[n("p",[e._v("Join filters with: "),n("label",{attrs:{for:"join_and"}},[e._v("And")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.filterJoinWith,expression:"filterJoinWith"}],attrs:{type:"radio",id:"join_and",name:"filter_join_with",value:"and",checked:"checked"},domProps:{checked:e._q(e.filterJoinWith,"and")},on:{change:[function(t){e.filterJoinWith="and"},function(t){return e.filterQueues()}]}}),e._v(" or "),n("label",{attrs:{for:"join_or"}},[e._v("Or")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.filterJoinWith,expression:"filterJoinWith"}],attrs:{type:"radio",id:"join_or",name:"filter_join_with",value:"or"},domProps:{checked:e._q(e.filterJoinWith,"or")},on:{change:[function(t){e.filterJoinWith="or"},function(t){return e.filterQueues()}]}})])])]),n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member"},[n("label",{attrs:{for:"filter_environment"}},[e._v("Environment:")]),n("v-select",{attrs:{id:"filter_environment",options:["Campus Computing Sites","MiWorkspace","MPrint as a Service","None"]},on:{input:function(t){return e.filterQueues()}},model:{value:e.filters.environment,callback:function(t){e.$set(e.filters,"environment",t)},expression:"filters.environment"}})],1),n("div",{staticClass:"flex_member"},[n("label",{attrs:{for:"filter_status"}},[e._v("Status:")]),n("v-select",{attrs:{id:"filter_status",multiple:"",options:["Connectivity Failure","Disabled","Enabled","Error","OK","Warning"]},on:{input:function(t){return e.filterQueues()}},model:{value:e.filters.status,callback:function(t){e.$set(e.filters,"status",t)},expression:"filters.status"}})],1),n("div",{staticClass:"flex_member"},[n("label",{attrs:{for:"filter_features"}},[e._v("Features:")]),n("v-select",{attrs:{id:"filter_features",multiple:"",options:[{label:"Card Reader",value:"card_reader"},{label:"Color",value:"color"},{label:"Copy/Scan",value:"copy"},{label:"Hole Punch",value:"hp"},{label:"Monochrome",value:"bw"},{label:"Staple",value:"staple"},{label:"Tabloid",value:"tabloid"}],reduce:function(e){return e.value}},on:{input:function(t){return e.filterQueues()}},model:{value:e.filters.features,callback:function(t){e.$set(e.filters,"features",t)},expression:"filters.features"}})],1),n("div",{staticClass:"flex_member"},[n("label",{attrs:{for:"filter_quick_search"}},[e._v("Quick Search:")]),n("v-select",{attrs:{id:"filter_quick_search",taggable:"",multiple:"",options:[],"dropdown-should-open":function(){return!1}},on:{input:function(t){return e.filterQueues()}},model:{value:e.filters.quick_search,callback:function(t){e.$set(e.filters,"quick_search",t)},expression:"filters.quick_search"}})],1)]),e.queuesList.isLoaded?n("div",{staticClass:"flex_row center"},[n("div",{staticClass:"flex_member"},[n("p",[e._v("Showing "+e._s(e.visibleQueues.length)+" "+e._s(1===e.visibleQueues.length?"queue":"queues"))])])]):e._e()])]),n("div",{staticClass:"flex_nowrap space_around full_width"},[e.queuesList.isLoaded?e._e():n("div",{staticClass:"full_width"},[e._v("Loading Queues... "),n("img",{attrs:{src:a("d9b6"),alt:"loading"}})]),e.desktopView?[e.queuesList.isLoaded&&!e.queuesList.isError?n("div",{staticClass:"queue_column",attrs:{id:"connectivity_failure_container"}},[n("h2",[e._v("Connectivity Failure")]),e._l(e.queuesList.queues.connectivity_failure,(function(t,s){return[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visibleQueues.includes(t.name),expression:"visibleQueues.includes(queue.name)"}],key:"connectivity_failure_"+s,staticClass:"box queue_box error_box",class:[e.expandedQueueNames.includes(t.name)?"expanded":"",+t.enabled?"":"disabled_queue",e.focused===t.name?"focused":""],attrs:{id:t.name+"_box"},on:{click:function(a){return e.expand(t.name,"connectivity_failure")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.expandedQueueNames.includes(t.name),expression:"expandedQueueNames.includes(queue.name)"}],staticClass:"minimize_container float_right"},[n("i",{staticClass:"fas fa-redo minimize mr-2",attrs:{title:"Refresh"},on:{click:function(a){return a.stopPropagation(),e.getQueueData(t.name,"connectivity_failure")}}}),n("i",{staticClass:"fas fa-window-minimize minimize",attrs:{title:"Collapse"},on:{click:function(a){return a.stopPropagation(),e.collapse(t.name)}}})]),n("div",{staticClass:"clearfix"}),n("div",{staticClass:"float_left main_content"},[n("h2",{staticClass:"bold"},[e._v(e._s(t.name))]),n("div",[n("div",{staticClass:"pad-4-0"},[e._v(e._s(t.display_name))]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Enabled:")]),e._v(" "),n("span",[e._v(e._s(+t.enabled?"Yes":"No"))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Environment:")]),e._v(" "),n("span",[e._v(e._s(t.service_name))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Status:")]),e._v(" "),n("span",[e._v(e._s(t.state_reasons?t.state_reasons:t.state))])]),n("div",{staticClass:"pad-8",class:!e.expandedQueueNames.includes(t.name)&&t.notes?"center bold box-highlight":"hidden",domProps:{innerHTML:e._s(t.notes)}})]),e.expandedQueueNames.includes(t.name)?n("div",{staticClass:"additional_info"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.expandedQueues[t.name].isLoaded,expression:"!expandedQueues[queue.name].isLoaded"}]},[e._v("Loading queue data... "),n("img",{attrs:{src:a("d9b6"),alt:"loading queue data..."}})]),e.expandedQueues[t.name].isLoaded&&!e.expandedQueues[t.name].isError&&null!==e.expandedQueues[t.name].data?n("div",[n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Building:")]),e._v(" "),n("a",{attrs:{href:"http://www.google.com/maps/place/"+e.expandedQueues[t.name].data["building_address"].split(" ").join("+")+"/@"+e.expandedQueues[t.name].data["building_lat"]+","+e.expandedQueues[t.name].data["building_lng"],target:"_blank"}},[e._v(e._s(e.expandedQueues[t.name].data["building_name"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Printer Location:")]),e._v(" "),n("a",{attrs:{href:e.publicPath+"/maps/"+t.name.split("-")[1],target:"_blank"}},[e._v("View on Maps Page")])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Features:")]),e._v(" "),n("span",{domProps:{innerHTML:e._s(e.renderFeatures(t.name))}})]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Server:")]),e._v(" "),n("span",[e._v(e._s(e.expandedQueues[t.name].data["server"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Printer Model")]),e._v(" "),n("span",[e._v(e._s(e.expandedQueues[t.name].data["manufacturer"]+" "+e.expandedQueues[t.name].data["model_name"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("IP Address:")]),e._v(" "),n("a",{attrs:{href:"http://"+e.expandedQueues[t.name].data["ip"],target:"_blank"}},[e._v(e._s(e.expandedQueues[t.name].data["ip"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("MAC Address:")]),e._v(" "),n("span",[e._v(e._s(e.expandedQueues[t.name].data["mac_address"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Unit:")]),e._v(" "),n("span",[e._v(e._s(null!==e.expandedQueues[t.name].data["sub_unit"]?e.expandedQueues[t.name].data["unit"]+" - "+e.expandedQueues[t.name].data["sub_unit"]:""+e.expandedQueues[t.name].data["unit"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Serial Number:")]),e._v(" "),n("span",[e._v(e._s(e.expandedQueues[t.name].data["serial_number"]))])]),n("div",{staticClass:"pad-4-0"},[e.expandedQueues[t.name].data["queue_restrictions"]?[n("b",[e._v("Queue Restrictions:")]),e._v(" "),n("span",{domProps:{innerHTML:e._s(""+e.expandedQueues[t.name].data["queue_restrictions"].split(",").join("<span class='ml-2 mr-2'>&#8226;</span>"))}})]:[n("b",[e._v("Queue Restrictions:")]),e._v(" "),n("span",[e._v("This queue has no restrictions")])],["manage","admin"].includes(e.user.role)||e.myUnits.includes(e.expandedQueues[t.name].data["unit_id"])?[n("a",{staticClass:"ml-2",attrs:{href:""},on:{click:function(a){return a.preventDefault(),e.showRestrictionsModal(t.name)}}},[e._v("Edit Restrictions")])]:e._e()],2),["manage","admin"].includes(e.user.role)||e.myUnits.includes(e.expandedQueues[t.name].data["unit_id"])?n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Admin Password:")]),e._v(" "),n("span",{staticClass:"blur_text"},[e._v(e._s(e.expandedQueues[t.name].data["admin_password"]))])]):e._e(),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Support Notes:")]),e._v(" "),["manage","admin"].includes(e.user.role)||e.myUnits.includes(e.expandedQueues[t.name].data["unit_id"])?n("a",{attrs:{href:""},on:{click:function(a){return a.preventDefault(),e.showSupportNotesModal(t.name)}}},[e._v("Edit")]):e._e()]),n("div",{staticClass:"pad-4-0"},[e.expandedQueues[t.name].data["support_info"]?n("p",{domProps:{innerHTML:e._s(e.expandedQueues[t.name].data["support_info"])}}):n("p",[e._v("There are currently no support notes")])]),e._m(0,!0),n("div",{staticClass:"pad-4-0"},[e._l(e.expandedQueues[t.name].data["commands"],(function(s,r){return[r>0?[n("span",{key:t.name+"_command_"+r+"_separator",staticClass:"ml-2 mr-2"},[e._v("•")])]:e._e(),e.runningCommands.includes(t.name+"_"+s["command"])?[n("span",{key:"running_"+r+"_"+t.name},[e._v("Running command... "),n("img",{attrs:{src:a("d9b6"),alt:"running command"}})])]:[n("a",{key:t.name+"_commands_"+r,staticClass:"capitalize",attrs:{href:""},on:{click:function(a){return a.preventDefault(),e.issueCommand(t.name,s["command"])}}},[e._v(e._s(s.name))])]]}))],2)]):e._e()]):e._e()]),e.expandedQueueNames.includes(t.name)&&e.expandedQueues[t.name].isLoaded&&!e.expandedQueues[t.name].isError?n("div",{staticClass:"toner_container float_right"},[n("h2",[e._v("Toner Levels")]),-1===t.name.indexOf("follow-me")&&"class"!==e.expandedQueues[t.name].data.type&&+t.color?[e._l(Object.keys(e.tonerColorMap),(function(a){return[null!==e.expandedQueues[t.name].data[a]?n("div",{key:t.name+"_"+a,staticClass:"toner_level_box"},[n("span",{staticClass:"toner_level_color_label"},[e._v(e._s(e.tonerColorMap[a]))]),n("figure",{staticClass:"toner_level_graph"},[n("span",{class:e.tonerColorMap[a].replace(" ","").toLowerCase(),style:"width: "+Math.round(100*+e.expandedQueues[t.name].data[a])+"%"})]),n("span",{staticClass:"toner_level_text"},[e._v(e._s(Math.round(100*+e.expandedQueues[t.name].data[a])+"%"))])]):e._e()]})),n("div",{staticClass:"pt-12 center"},[e._v("Last updated: "+e._s(e.formatDate(new Date(+t.toner_last_updated),!0)))])]:-1===t.name.indexOf("-label-")&&"class"!==e.expandedQueues[t.name].data.type&&0===+t.color?[n("div",{staticClass:"toner_level_box"},[n("span",{staticClass:"toner_level_color_label"},[e._v("Black")]),n("figure",{staticClass:"toner_level_graph"},[n("span",{staticClass:"black",style:"width: "+Math.round(100*+e.expandedQueues[t.name].data.toner_k)+"%"})]),n("span",{staticClass:"toner_level_text"},[e._v(e._s(Math.round(100*+e.expandedQueues[t.name].data.toner_k)+"%"))])]),n("div",{staticClass:"pt-12 center"},[e._v("Last updated: "+e._s(e.formatDate(new Date(+t.toner_last_updated),!0)))])]:[n("div",[e._v("Toner levels are not available")])]],2):e._e(),e.expandedQueueNames.includes(t.name)&&e.expandedQueues[t.name].isLoaded&&!e.expandedQueues[t.name].isError?n("div",{staticClass:"canvas_container float_right"},[n("h2",[e._v("Past Week Usage Chart")]),e.expandedQueues[t.name].history.isLoaded?e.expandedQueues[t.name].history.isLoaded&&e.expandedQueues[t.name].history.isError?[n("div",[e._v("Failed to retrieve print history!")])]:e.expandedQueues[t.name].history.isLoaded&&!e.expandedQueues[t.name].history.isError&&0===+e.expandedQueues[t.name].history.data.length?[n("div",[e._v("No print history found!")])]:[n("canvas",{staticClass:"usage_canvas",attrs:{id:t.name+"_usage_chart"}})]:[e._m(1,!0)],n("h2",[e._v("Recent Print Jobs")]),n("table",{staticClass:"job_table"},[e._m(2,!0),n("tbody",[e.expandedQueues[t.name].isLoaded?e._e():n("tr",[e._m(3,!0)]),!e.expandedQueues[t.name].isLoaded||e.expandedQueues[t.name].isError||e.expandedQueues[t.name].data.jobs.length?e._l(e.expandedQueues[t.name].data.jobs,(function(a,s){return n("tr",{key:t.name+"_job_"+s},[n("td",{attrs:{title:a.username}},[e._v(e._s(a.username))]),n("td",{attrs:{title:a.usage_date}},[e._v(e._s(a.usage_date))]),n("td",{attrs:{title:a.document_name}},[e._v(e._s(a.document_name))]),n("td",{staticClass:"capitalize",attrs:{title:a.state}},[e._v(e._s(a.state))])])})):n("tr",[e._m(4,!0)])],2)])],2):e._e(),n("div",{staticClass:"clearfix"}),n("div",{staticClass:"pad-8",class:e.expandedQueueNames.includes(t.name)&&t.notes?"center bold box-highlight":"hidden",domProps:{innerHTML:e._s(t.notes)}})])]}))],2):e._e(),e.queuesList.isLoaded&&!e.queuesList.isError?n("div",{staticClass:"queue_column",attrs:{id:"error_container"}},[n("h2",[e._v("Error")]),e._l(e.queuesList.queues.error,(function(t,s){return[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visibleQueues.includes(t.name),expression:"visibleQueues.includes(queue.name)"}],key:"error_"+s,staticClass:"box queue_box error_box",class:[e.expandedQueueNames.includes(t.name)?"expanded":"",+t.enabled?"":"disabled_queue",e.focused===t.name?"focused":""],attrs:{id:t.name+"_box"},on:{click:function(a){return e.expand(t.name,"error")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.expandedQueueNames.includes(t.name),expression:"expandedQueueNames.includes(queue.name)"}],staticClass:"minimize_container float_right"},[n("i",{staticClass:"fas fa-redo minimize mr-2",attrs:{title:"Refresh"},on:{click:function(a){return a.stopPropagation(),e.getQueueData(t.name,"error")}}}),n("i",{staticClass:"fas fa-window-minimize minimize",attrs:{title:"Collapse"},on:{click:function(a){return a.stopPropagation(),e.collapse(t.name)}}})]),n("div",{staticClass:"clearfix"}),n("div",{staticClass:"float_left main_content"},[n("h2",{staticClass:"bold"},[e._v(e._s(t.name))]),n("div",[n("div",{staticClass:"pad-4-0"},[e._v(e._s(t.display_name))]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Enabled:")]),e._v(" "),n("span",[e._v(e._s(+t.enabled?"Yes":"No"))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Environment:")]),e._v(" "),n("span",[e._v(e._s(t.service_name))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Status:")]),e._v(" "),n("span",[e._v(e._s(t.state_reasons?t.state_reasons:t.state))])]),n("div",{staticClass:"pad-8",class:!e.expandedQueueNames.includes(t.name)&&t.notes?"center bold box-highlight":"hidden",domProps:{innerHTML:e._s(t.notes)}})]),e.expandedQueueNames.includes(t.name)?n("div",{staticClass:"additional_info"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.expandedQueues[t.name].isLoaded,expression:"!expandedQueues[queue.name].isLoaded"}]},[e._v("Loading queue data... "),n("img",{attrs:{src:a("d9b6"),alt:"loading queue data..."}})]),e.expandedQueues[t.name].isLoaded&&!e.expandedQueues[t.name].isError&&null!==e.expandedQueues[t.name].data?n("div",[n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Building:")]),e._v(" "),n("a",{attrs:{href:"http://www.google.com/maps/place/"+e.expandedQueues[t.name].data["building_address"].split(" ").join("+")+"/@"+e.expandedQueues[t.name].data["building_lat"]+","+e.expandedQueues[t.name].data["building_lng"],target:"_blank"}},[e._v(e._s(e.expandedQueues[t.name].data["building_name"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Printer Location:")]),e._v(" "),n("a",{attrs:{href:e.publicPath+"/maps/"+t.name.split("-")[1],target:"_blank"}},[e._v("View on Maps Page")])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Features:")]),e._v(" "),n("span",{domProps:{innerHTML:e._s(e.renderFeatures(t.name))}})]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Server:")]),e._v(" "),n("span",[e._v(e._s(e.expandedQueues[t.name].data["server"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Printer Model")]),e._v(" "),n("span",[e._v(e._s(e.expandedQueues[t.name].data["manufacturer"]+" "+e.expandedQueues[t.name].data["model_name"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("IP Address:")]),e._v(" "),n("a",{attrs:{href:"http://"+e.expandedQueues[t.name].data["ip"],target:"_blank"}},[e._v(e._s(e.expandedQueues[t.name].data["ip"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("MAC Address:")]),e._v(" "),n("span",[e._v(e._s(e.expandedQueues[t.name].data["mac_address"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Unit:")]),e._v(" "),n("span",[e._v(e._s(null!==e.expandedQueues[t.name].data["sub_unit"]?e.expandedQueues[t.name].data["unit"]+" - "+e.expandedQueues[t.name].data["sub_unit"]:""+e.expandedQueues[t.name].data["unit"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Serial Number:")]),e._v(" "),n("span",[e._v(e._s(e.expandedQueues[t.name].data["serial_number"]))])]),n("div",{staticClass:"pad-4-0"},[e.expandedQueues[t.name].data["queue_restrictions"]?[n("b",[e._v("Queue Restrictions:")]),e._v(" "),n("span",{domProps:{innerHTML:e._s(""+e.expandedQueues[t.name].data["queue_restrictions"].split(",").join("<span class='ml-2 mr-2'>&#8226;</span>"))}})]:[n("b",[e._v("Queue Restrictions:")]),e._v(" "),n("span",[e._v("This queue has no restrictions")])],["manage","admin"].includes(e.user.role)||e.myUnits.includes(e.expandedQueues[t.name].data["unit_id"])?[n("a",{staticClass:"ml-2",attrs:{href:""},on:{click:function(a){return a.preventDefault(),e.showRestrictionsModal(t.name)}}},[e._v("Edit Restrictions")])]:e._e()],2),["manage","admin"].includes(e.user.role)||e.myUnits.includes(e.expandedQueues[t.name].data["unit_id"])?n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Admin Password:")]),e._v(" "),n("span",{staticClass:"blur_text"},[e._v(e._s(e.expandedQueues[t.name].data["admin_password"]))])]):e._e(),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Support Notes:")]),e._v(" "),["manage","admin"].includes(e.user.role)||e.myUnits.includes(e.expandedQueues[t.name].data["unit_id"])?n("a",{attrs:{href:""},on:{click:function(a){return a.preventDefault(),e.showSupportNotesModal(t.name)}}},[e._v("Edit")]):e._e()]),n("div",{staticClass:"pad-4-0"},[e.expandedQueues[t.name].data["support_info"]?n("p",{domProps:{innerHTML:e._s(e.expandedQueues[t.name].data["support_info"])}}):n("p",[e._v("There are currently no support notes")])]),e._m(5,!0),n("div",{staticClass:"pad-4-0"},[e._l(e.expandedQueues[t.name].data["commands"],(function(s,r){return[r>0?[n("span",{key:t.name+"_command_"+r+"_separator",staticClass:"ml-2 mr-2"},[e._v("•")])]:e._e(),e.runningCommands.includes(t.name+"_"+s["command"])?[n("span",{key:"running_"+r+"_"+t.name},[e._v("Running command... "),n("img",{attrs:{src:a("d9b6"),alt:"running command"}})])]:[n("a",{key:t.name+"_commands_"+r,staticClass:"capitalize",attrs:{href:""},on:{click:function(a){return a.preventDefault(),e.issueCommand(t.name,s["command"])}}},[e._v(e._s(s.name))])]]}))],2)]):e._e()]):e._e()]),e.expandedQueueNames.includes(t.name)&&e.expandedQueues[t.name].isLoaded&&!e.expandedQueues[t.name].isError?n("div",{staticClass:"toner_container float_right"},[n("h2",[e._v("Toner Levels")]),-1===t.name.indexOf("follow-me")&&"class"!==e.expandedQueues[t.name].data.type&&+t.color?[e._l(Object.keys(e.tonerColorMap),(function(a){return[null!==e.expandedQueues[t.name].data[a]?n("div",{key:t.name+"_"+a,staticClass:"toner_level_box"},[n("span",{staticClass:"toner_level_color_label"},[e._v(e._s(e.tonerColorMap[a]))]),n("figure",{staticClass:"toner_level_graph"},[n("span",{class:e.tonerColorMap[a].replace(" ","").toLowerCase(),style:"width: "+Math.round(100*+e.expandedQueues[t.name].data[a])+"%"})]),n("span",{staticClass:"toner_level_text"},[e._v(e._s(Math.round(100*+e.expandedQueues[t.name].data[a])+"%"))])]):e._e()]})),n("div",{staticClass:"pt-12 center"},[e._v("Last updated: "+e._s(e.formatDate(new Date(+t.toner_last_updated),!0)))])]:-1===t.name.indexOf("-label-")&&"class"!==e.expandedQueues[t.name].data.type&&0===+t.color?[n("div",{staticClass:"toner_level_box"},[n("span",{staticClass:"toner_level_color_label"},[e._v("Black")]),n("figure",{staticClass:"toner_level_graph"},[n("span",{staticClass:"black",style:"width: "+Math.round(100*+e.expandedQueues[t.name].data.toner_k)+"%"})]),n("span",{staticClass:"toner_level_text"},[e._v(e._s(Math.round(100*+e.expandedQueues[t.name].data.toner_k)+"%"))])]),n("div",{staticClass:"pt-12 center"},[e._v("Last updated: "+e._s(e.formatDate(new Date(+t.toner_last_updated),!0)))])]:[n("div",[e._v("Toner levels are not available")])]],2):e._e(),e.expandedQueueNames.includes(t.name)&&e.expandedQueues[t.name].isLoaded&&!e.expandedQueues[t.name].isError?n("div",{staticClass:"canvas_container float_right"},[n("h2",[e._v("Past Week Usage Chart")]),e.expandedQueues[t.name].history.isLoaded?e.expandedQueues[t.name].history.isLoaded&&e.expandedQueues[t.name].history.isError?[n("div",[e._v("Failed to retrieve print history!")])]:e.expandedQueues[t.name].history.isLoaded&&!e.expandedQueues[t.name].history.isError&&0===+e.expandedQueues[t.name].history.data.length?[n("div",[e._v("No print history found!")])]:[n("canvas",{staticClass:"usage_canvas",attrs:{id:t.name+"_usage_chart"}})]:[e._m(6,!0)],n("h2",[e._v("Recent Print Jobs")]),n("table",{staticClass:"job_table"},[e._m(7,!0),n("tbody",[e.expandedQueues[t.name].isLoaded?e._e():n("tr",[e._m(8,!0)]),!e.expandedQueues[t.name].isLoaded||e.expandedQueues[t.name].isError||e.expandedQueues[t.name].data.jobs.length?e._l(e.expandedQueues[t.name].data.jobs,(function(a,s){return n("tr",{key:t.name+"_job_"+s},[n("td",{attrs:{title:a.username}},[e._v(e._s(a.username))]),n("td",{attrs:{title:a.usage_date}},[e._v(e._s(a.usage_date))]),n("td",{attrs:{title:a.document_name}},[e._v(e._s(a.document_name))]),n("td",{staticClass:"capitalize",attrs:{title:a.state}},[e._v(e._s(a.state))])])})):n("tr",[e._m(9,!0)])],2)])],2):e._e(),n("div",{staticClass:"clearfix"}),n("div",{staticClass:"pad-8",class:e.expandedQueueNames.includes(t.name)&&t.notes?"center bold box-highlight":"hidden",domProps:{innerHTML:e._s(t.notes)}})])]}))],2):e._e(),e.queuesList.isLoaded&&!e.queuesList.isError?n("div",{staticClass:"queue_column",attrs:{id:"warning_container"}},[n("h2",[e._v("Warning")]),e._l(e.queuesList.queues.warning,(function(t,s){return[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visibleQueues.includes(t.name),expression:"visibleQueues.includes(queue.name)"}],key:"warning_"+s,staticClass:"box queue_box warning_box",class:[e.expandedQueueNames.includes(t.name)?"expanded":"",+t.enabled?"":"disabled_queue",e.focused===t.name?"focused":""],attrs:{id:t.name+"_box"},on:{click:function(a){return e.expand(t.name,"warning")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.expandedQueueNames.includes(t.name),expression:"expandedQueueNames.includes(queue.name)"}],staticClass:"minimize_container float_right"},[n("i",{staticClass:"fas fa-redo minimize mr-2",attrs:{title:"Refresh"},on:{click:function(a){return a.stopPropagation(),e.getQueueData(t.name,"warning")}}}),n("i",{staticClass:"fas fa-window-minimize minimize",attrs:{title:"Collapse"},on:{click:function(a){return a.stopPropagation(),e.collapse(t.name)}}})]),n("div",{staticClass:"clearfix"}),n("div",{staticClass:"float_left main_content"},[n("h2",{staticClass:"bold"},[e._v(e._s(t.name))]),n("div",[n("div",{staticClass:"pad-4-0"},[e._v(e._s(t.display_name))]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Enabled:")]),e._v(" "),n("span",[e._v(e._s(+t.enabled?"Yes":"No"))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Environment:")]),e._v(" "),n("span",[e._v(e._s(t.service_name))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Status:")]),e._v(" "),n("span",[e._v(e._s(t.state_reasons?t.state_reasons:t.state))])]),n("div",{staticClass:"pad-8",class:!e.expandedQueueNames.includes(t.name)&&t.notes?"center bold box-highlight":"hidden",domProps:{innerHTML:e._s(t.notes)}})]),e.expandedQueueNames.includes(t.name)?n("div",{staticClass:"additional_info"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.expandedQueues[t.name].isLoaded,expression:"!expandedQueues[queue.name].isLoaded"}]},[e._v("Loading queue data... "),n("img",{attrs:{src:a("d9b6"),alt:"loading queue data..."}})]),e.expandedQueues[t.name].isLoaded&&!e.expandedQueues[t.name].isError&&null!==e.expandedQueues[t.name].data?n("div",[n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Building:")]),e._v(" "),n("a",{attrs:{href:"http://www.google.com/maps/place/"+e.expandedQueues[t.name].data["building_address"].split(" ").join("+")+"/@"+e.expandedQueues[t.name].data["building_lat"]+","+e.expandedQueues[t.name].data["building_lng"],target:"_blank"}},[e._v(e._s(e.expandedQueues[t.name].data["building_name"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Printer Location:")]),e._v(" "),n("a",{attrs:{href:e.publicPath+"/maps/"+t.name.split("-")[1],target:"_blank"}},[e._v("View on Maps Page")])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Features:")]),e._v(" "),n("span",{domProps:{innerHTML:e._s(e.renderFeatures(t.name))}})]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Server:")]),e._v(" "),n("span",[e._v(e._s(e.expandedQueues[t.name].data["server"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Printer Model")]),e._v(" "),n("span",[e._v(e._s(e.expandedQueues[t.name].data["manufacturer"]+" "+e.expandedQueues[t.name].data["model_name"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("IP Address:")]),e._v(" "),n("a",{attrs:{href:"http://"+e.expandedQueues[t.name].data["ip"],target:"_blank"}},[e._v(e._s(e.expandedQueues[t.name].data["ip"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("MAC Address:")]),e._v(" "),n("span",[e._v(e._s(e.expandedQueues[t.name].data["mac_address"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Unit:")]),e._v(" "),n("span",[e._v(e._s(null!==e.expandedQueues[t.name].data["sub_unit"]?e.expandedQueues[t.name].data["unit"]+" - "+e.expandedQueues[t.name].data["sub_unit"]:""+e.expandedQueues[t.name].data["unit"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Serial Number:")]),e._v(" "),n("span",[e._v(e._s(e.expandedQueues[t.name].data["serial_number"]))])]),n("div",{staticClass:"pad-4-0"},[e.expandedQueues[t.name].data["queue_restrictions"]?[n("b",[e._v("Queue Restrictions:")]),e._v(" "),n("span",{domProps:{innerHTML:e._s(""+e.expandedQueues[t.name].data["queue_restrictions"].split(",").join("<span class='ml-2 mr-2'>&#8226;</span>"))}})]:[n("b",[e._v("Queue Restrictions:")]),e._v(" "),n("span",[e._v("This queue has no restrictions")])],["manage","admin"].includes(e.user.role)||e.myUnits.includes(e.expandedQueues[t.name].data["unit_id"])?[n("a",{staticClass:"ml-2",attrs:{href:""},on:{click:function(a){return a.preventDefault(),e.showRestrictionsModal(t.name)}}},[e._v("Edit Restrictions")])]:e._e()],2),["manage","admin"].includes(e.user.role)||e.myUnits.includes(e.expandedQueues[t.name].data["unit_id"])?n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Admin Password:")]),e._v(" "),n("span",{staticClass:"blur_text"},[e._v(e._s(e.expandedQueues[t.name].data["admin_password"]))])]):e._e(),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Support Notes:")]),e._v(" "),["manage","admin"].includes(e.user.role)||e.myUnits.includes(e.expandedQueues[t.name].data["unit_id"])?n("a",{attrs:{href:""},on:{click:function(a){return a.preventDefault(),e.showSupportNotesModal(t.name)}}},[e._v("Edit")]):e._e()]),n("div",{staticClass:"pad-4-0"},[e.expandedQueues[t.name].data["support_info"]?n("p",{domProps:{innerHTML:e._s(e.expandedQueues[t.name].data["support_info"])}}):n("p",[e._v("There are currently no support notes")])]),e._m(10,!0),n("div",{staticClass:"pad-4-0"},[e._l(e.expandedQueues[t.name].data["commands"],(function(s,r){return[r>0?[n("span",{key:t.name+"_command_"+r+"_separator",staticClass:"ml-2 mr-2"},[e._v("•")])]:e._e(),e.runningCommands.includes(t.name+"_"+s["command"])?[n("span",{key:"running_"+r+"_"+t.name},[e._v("Running command... "),n("img",{attrs:{src:a("d9b6"),alt:"running command"}})])]:[n("a",{key:t.name+"_commands_"+r,staticClass:"capitalize",attrs:{href:""},on:{click:function(a){return a.preventDefault(),e.issueCommand(t.name,s["command"])}}},[e._v(e._s(s.name))])]]}))],2)]):e._e()]):e._e()]),e.expandedQueueNames.includes(t.name)&&e.expandedQueues[t.name].isLoaded&&!e.expandedQueues[t.name].isError?n("div",{staticClass:"toner_container float_right"},[n("h2",[e._v("Toner Levels")]),-1===t.name.indexOf("follow-me")&&"class"!==e.expandedQueues[t.name].data.type&&+t.color?[e._l(Object.keys(e.tonerColorMap),(function(a){return[null!==e.expandedQueues[t.name].data[a]?n("div",{key:t.name+"_"+a,staticClass:"toner_level_box"},[n("span",{staticClass:"toner_level_color_label"},[e._v(e._s(e.tonerColorMap[a]))]),n("figure",{staticClass:"toner_level_graph"},[n("span",{class:e.tonerColorMap[a].replace(" ","").toLowerCase(),style:"width: "+Math.round(100*+e.expandedQueues[t.name].data[a])+"%"})]),n("span",{staticClass:"toner_level_text"},[e._v(e._s(Math.round(100*+e.expandedQueues[t.name].data[a])+"%"))])]):e._e()]})),n("div",{staticClass:"pt-12 center"},[e._v("Last updated: "+e._s(e.formatDate(new Date(+t.toner_last_updated),!0)))])]:-1===t.name.indexOf("-label-")&&"class"!==e.expandedQueues[t.name].data.type&&0===+t.color?[n("div",{staticClass:"toner_level_box"},[n("span",{staticClass:"toner_level_color_label"},[e._v("Black")]),n("figure",{staticClass:"toner_level_graph"},[n("span",{staticClass:"black",style:"width: "+Math.round(100*+e.expandedQueues[t.name].data.toner_k)+"%"})]),n("span",{staticClass:"toner_level_text"},[e._v(e._s(Math.round(100*+e.expandedQueues[t.name].data.toner_k)+"%"))])]),n("div",{staticClass:"pt-12 center"},[e._v("Last updated: "+e._s(e.formatDate(new Date(+t.toner_last_updated),!0)))])]:[n("div",[e._v("Toner levels are not available")])]],2):e._e(),e.expandedQueueNames.includes(t.name)&&e.expandedQueues[t.name].isLoaded&&!e.expandedQueues[t.name].isError?n("div",{staticClass:"canvas_container float_right"},[n("h2",[e._v("Past Week Usage Chart")]),e.expandedQueues[t.name].history.isLoaded?e.expandedQueues[t.name].history.isLoaded&&e.expandedQueues[t.name].history.isError?[n("div",[e._v("Failed to retrieve print history!")])]:e.expandedQueues[t.name].history.isLoaded&&!e.expandedQueues[t.name].history.isError&&0===+e.expandedQueues[t.name].history.data.length?[n("div",[e._v("No print history found!")])]:[n("canvas",{staticClass:"usage_canvas",attrs:{id:t.name+"_usage_chart"}})]:[e._m(11,!0)],n("h2",[e._v("Recent Print Jobs")]),n("table",{staticClass:"job_table"},[e._m(12,!0),n("tbody",[e.expandedQueues[t.name].isLoaded?e._e():n("tr",[e._m(13,!0)]),!e.expandedQueues[t.name].isLoaded||e.expandedQueues[t.name].isError||e.expandedQueues[t.name].data.jobs.length?e._l(e.expandedQueues[t.name].data.jobs,(function(a,s){return n("tr",{key:t.name+"_job_"+s},[n("td",{attrs:{title:a.username}},[e._v(e._s(a.username))]),n("td",{attrs:{title:a.usage_date}},[e._v(e._s(a.usage_date))]),n("td",{attrs:{title:a.document_name}},[e._v(e._s(a.document_name))]),n("td",{staticClass:"capitalize",attrs:{title:a.state}},[e._v(e._s(a.state))])])})):n("tr",[e._m(14,!0)])],2)])],2):e._e(),n("div",{staticClass:"clearfix"}),n("div",{staticClass:"pad-8",class:e.expandedQueueNames.includes(t.name)&&t.notes?"center bold box-highlight":"hidden",domProps:{innerHTML:e._s(t.notes)}})])]}))],2):e._e(),e.queuesList.isLoaded&&!e.queuesList.isError?n("div",{staticClass:"queue_column",attrs:{id:"ok_container"}},[n("h2",[e._v("OK")]),e._l(e.queuesList.queues.ok,(function(t,s){return[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visibleQueues.includes(t.name),expression:"visibleQueues.includes(queue.name)"}],key:"ok_"+s,staticClass:"box queue_box ok_box",class:[e.expandedQueueNames.includes(t.name)?"expanded":"",+t.enabled?"":"disabled_queue",e.focused===t.name?"focused":""],attrs:{id:t.name+"_box"},on:{click:function(a){return e.expand(t.name,"ok")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.expandedQueueNames.includes(t.name),expression:"expandedQueueNames.includes(queue.name)"}],staticClass:"minimize_container float_right"},[n("i",{staticClass:"fas fa-redo minimize mr-2",attrs:{title:"Refresh"},on:{click:function(a){return a.stopPropagation(),e.getQueueData(t.name,"ok")}}}),n("i",{staticClass:"fas fa-window-minimize minimize",attrs:{title:"Collapse"},on:{click:function(a){return a.stopPropagation(),e.collapse(t.name)}}})]),n("div",{staticClass:"clearfix"}),n("div",{staticClass:"float_left main_content"},[n("h2",{staticClass:"bold"},[e._v(e._s(t.name))]),n("div",[n("div",{staticClass:"pad-4-0"},[e._v(e._s(t.display_name))]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Enabled:")]),e._v(" "),n("span",[e._v(e._s(+t.enabled?"Yes":"No"))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Environment:")]),e._v(" "),n("span",[e._v(e._s(t.service_name))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Status:")]),e._v(" "),n("span",[e._v(e._s(t.state_reasons?t.state_reasons:t.state))])]),n("div",{staticClass:"pad-8",class:!e.expandedQueueNames.includes(t.name)&&t.notes?"center bold box-highlight":"hidden",domProps:{innerHTML:e._s(t.notes)}})]),e.expandedQueueNames.includes(t.name)?n("div",{staticClass:"additional_info"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.expandedQueues[t.name].isLoaded,expression:"!expandedQueues[queue.name].isLoaded"}]},[e._v("Loading queue data... "),n("img",{attrs:{src:a("d9b6"),alt:"loading queue data..."}})]),e.expandedQueues[t.name].isLoaded&&!e.expandedQueues[t.name].isError&&null!==e.expandedQueues[t.name].data?n("div",[n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Building:")]),e._v(" "),n("a",{attrs:{href:"http://www.google.com/maps/place/"+e.expandedQueues[t.name].data["building_address"].split(" ").join("+")+"/@"+e.expandedQueues[t.name].data["building_lat"]+","+e.expandedQueues[t.name].data["building_lng"],target:"_blank"}},[e._v(e._s(e.expandedQueues[t.name].data["building_name"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Printer Location:")]),e._v(" "),n("a",{attrs:{href:e.publicPath+"/maps/"+t.name.split("-")[1],target:"_blank"}},[e._v("View on Maps Page")])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Features:")]),e._v(" "),n("span",{domProps:{innerHTML:e._s(e.renderFeatures(t.name))}})]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Server:")]),e._v(" "),n("span",[e._v(e._s(e.expandedQueues[t.name].data["server"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Printer Model")]),e._v(" "),n("span",[e._v(e._s(e.expandedQueues[t.name].data["manufacturer"]+" "+e.expandedQueues[t.name].data["model_name"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("IP Address:")]),e._v(" "),n("a",{attrs:{href:"http://"+e.expandedQueues[t.name].data["ip"],target:"_blank"}},[e._v(e._s(e.expandedQueues[t.name].data["ip"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("MAC Address:")]),e._v(" "),n("span",[e._v(e._s(e.expandedQueues[t.name].data["mac_address"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Unit:")]),e._v(" "),n("span",[e._v(e._s(null!==e.expandedQueues[t.name].data["sub_unit"]?e.expandedQueues[t.name].data["unit"]+" - "+e.expandedQueues[t.name].data["sub_unit"]:""+e.expandedQueues[t.name].data["unit"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Serial Number:")]),e._v(" "),n("span",[e._v(e._s(e.expandedQueues[t.name].data["serial_number"]))])]),n("div",{staticClass:"pad-4-0"},[e.expandedQueues[t.name].data["queue_restrictions"]?[n("b",[e._v("Queue Restrictions:")]),e._v(" "),n("span",{domProps:{innerHTML:e._s(""+e.expandedQueues[t.name].data["queue_restrictions"].split(",").join("<span class='ml-2 mr-2'>&#8226;</span>"))}})]:[n("b",[e._v("Queue Restrictions:")]),e._v(" "),n("span",[e._v("This queue has no restrictions")])],["manage","admin"].includes(e.user.role)||e.myUnits.includes(e.expandedQueues[t.name].data["unit_id"])?[n("a",{staticClass:"ml-2",attrs:{href:""},on:{click:function(a){return a.preventDefault(),e.showRestrictionsModal(t.name)}}},[e._v("Edit Restrictions")])]:e._e()],2),["manage","admin"].includes(e.user.role)||e.myUnits.includes(e.expandedQueues[t.name].data["unit_id"])?n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Admin Password:")]),e._v(" "),n("span",{staticClass:"blur_text"},[e._v(e._s(e.expandedQueues[t.name].data["admin_password"]))])]):e._e(),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Support Notes:")]),e._v(" "),["manage","admin"].includes(e.user.role)||e.myUnits.includes(e.expandedQueues[t.name].data["unit_id"])?n("a",{attrs:{href:""},on:{click:function(a){return a.preventDefault(),e.showSupportNotesModal(t.name)}}},[e._v("Edit")]):e._e()]),n("div",{staticClass:"pad-4-0"},[e.expandedQueues[t.name].data["support_info"]?n("p",{domProps:{innerHTML:e._s(e.expandedQueues[t.name].data["support_info"])}}):n("p",[e._v("There are currently no support notes")])]),e._m(15,!0),n("div",{staticClass:"pad-4-0"},[e._l(e.expandedQueues[t.name].data["commands"],(function(s,r){return[r>0?[n("span",{key:t.name+"_command_"+r+"_separator",staticClass:"ml-2 mr-2"},[e._v("•")])]:e._e(),e.runningCommands.includes(t.name+"_"+s["command"])?[n("span",{key:"running_"+r+"_"+t.name},[e._v("Running command... "),n("img",{attrs:{src:a("d9b6"),alt:"running command"}})])]:[n("a",{key:t.name+"_commands_"+r,staticClass:"capitalize",attrs:{href:""},on:{click:function(a){return a.preventDefault(),e.issueCommand(t.name,s["command"])}}},[e._v(e._s(s.name))])]]}))],2)]):e._e()]):e._e()]),e.expandedQueueNames.includes(t.name)&&e.expandedQueues[t.name].isLoaded&&!e.expandedQueues[t.name].isError?n("div",{staticClass:"toner_container float_right"},[n("h2",[e._v("Toner Levels")]),-1===t.name.indexOf("follow-me")&&"class"!==e.expandedQueues[t.name].data.type&&+t.color?[e._l(Object.keys(e.tonerColorMap),(function(a){return[null!==e.expandedQueues[t.name].data[a]?n("div",{key:t.name+"_"+a,staticClass:"toner_level_box"},[n("span",{staticClass:"toner_level_color_label"},[e._v(e._s(e.tonerColorMap[a]))]),n("figure",{staticClass:"toner_level_graph"},[n("span",{class:e.tonerColorMap[a].replace(" ","").toLowerCase(),style:"width: "+Math.round(100*+e.expandedQueues[t.name].data[a])+"%"})]),n("span",{staticClass:"toner_level_text"},[e._v(e._s(Math.round(100*+e.expandedQueues[t.name].data[a])+"%"))])]):e._e()]})),n("div",{staticClass:"pt-12 center"},[e._v("Last updated: "+e._s(e.formatDate(new Date(+t.toner_last_updated),!0)))])]:-1===t.name.indexOf("-label-")&&"class"!==e.expandedQueues[t.name].data.type&&0===+t.color?[n("div",{staticClass:"toner_level_box"},[n("span",{staticClass:"toner_level_color_label"},[e._v("Black")]),n("figure",{staticClass:"toner_level_graph"},[n("span",{staticClass:"black",style:"width: "+Math.round(100*+e.expandedQueues[t.name].data.toner_k)+"%"})]),n("span",{staticClass:"toner_level_text"},[e._v(e._s(Math.round(100*+e.expandedQueues[t.name].data.toner_k)+"%"))])]),n("div",{staticClass:"pt-12 center"},[e._v("Last updated: "+e._s(e.formatDate(new Date(+t.toner_last_updated),!0)))])]:[n("div",[e._v("Toner levels are not available")])]],2):e._e(),e.expandedQueueNames.includes(t.name)&&e.expandedQueues[t.name].isLoaded&&!e.expandedQueues[t.name].isError?n("div",{staticClass:"canvas_container float_right"},[n("h2",[e._v("Past Week Usage Chart")]),e.expandedQueues[t.name].history.isLoaded?e.expandedQueues[t.name].history.isLoaded&&e.expandedQueues[t.name].history.isError?[n("div",[e._v("Failed to retrieve print history!")])]:e.expandedQueues[t.name].history.isLoaded&&!e.expandedQueues[t.name].history.isError&&0===+e.expandedQueues[t.name].history.data.length?[n("div",[e._v("No print history found!")])]:[n("canvas",{staticClass:"usage_canvas",attrs:{id:t.name+"_usage_chart"}})]:[e._m(16,!0)],n("h2",[e._v("Recent Print Jobs")]),n("table",{staticClass:"job_table"},[e._m(17,!0),n("tbody",[e.expandedQueues[t.name].isLoaded?e._e():n("tr",[e._m(18,!0)]),!e.expandedQueues[t.name].isLoaded||e.expandedQueues[t.name].isError||e.expandedQueues[t.name].data.jobs.length?e._l(e.expandedQueues[t.name].data.jobs,(function(a,s){return n("tr",{key:t.name+"_job_"+s},[n("td",{attrs:{title:a.username}},[e._v(e._s(a.username))]),n("td",{attrs:{title:a.usage_date}},[e._v(e._s(a.usage_date))]),n("td",{attrs:{title:a.document_name}},[e._v(e._s(a.document_name))]),n("td",{staticClass:"capitalize",attrs:{title:a.state}},[e._v(e._s(a.state))])])})):n("tr",[e._m(19,!0)])],2)])],2):e._e(),n("div",{staticClass:"clearfix"}),n("div",{staticClass:"pad-8",class:e.expandedQueueNames.includes(t.name)&&t.notes?"center bold box-highlight":"hidden",domProps:{innerHTML:e._s(t.notes)}})])]}))],2):e._e()]:[e.queuesList.isLoaded&&!e.queuesList.isError?n("div",{staticClass:"queue_column",attrs:{id:"full_column_container"}},[e._l(e.queuesList.queues.allQueues,(function(t,s){return[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visibleQueues.includes(t.name),expression:"visibleQueues.includes(queue.name)"}],key:"queue_"+s,staticClass:"box queue_box",class:[e.expandedQueueNames.includes(t.name)?"expanded":"",+t.enabled?"":"disabled_queue",e.focused===t.name?"focused":"","error"===t.state.toLowerCase()||"offline"===t.state.toLowerCase()?"error_box":"warning"===t.state.toLowerCase()?"warning_box":"ok_box"],attrs:{id:t.name+"_box"},on:{click:function(a){return e.expand(t.name)}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.expandedQueueNames.includes(t.name),expression:"expandedQueueNames.includes(queue.name)"}],staticClass:"minimize_container float_right"},[n("i",{staticClass:"fas fa-redo minimize mr-2",attrs:{title:"Refresh"},on:{click:function(a){return a.stopPropagation(),e.getQueueData(t.name)}}}),n("i",{staticClass:"fas fa-window-minimize minimize",attrs:{title:"Collapse"},on:{click:function(a){return a.stopPropagation(),e.collapse(t.name)}}})]),n("div",{staticClass:"clearfix"}),n("div",{staticClass:"float_left main_content"},[n("h2",{staticClass:"bold"},[e._v(e._s(t.name))]),n("div",[n("div",{staticClass:"pad-4-0"},[e._v(e._s(t.display_name))]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Enabled:")]),e._v(" "),n("span",[e._v(e._s(+t.enabled?"Yes":"No"))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Environment:")]),e._v(" "),n("span",[e._v(e._s(t.service_name))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Status:")]),e._v(" "),n("span",[e._v(e._s(t.state_reasons?t.state_reasons:t.state))])]),n("div",{staticClass:"pad-8",class:!e.expandedQueueNames.includes(t.name)&&t.notes?"center bold box-highlight":"hidden",domProps:{innerHTML:e._s(t.notes)}})]),e.expandedQueueNames.includes(t.name)?n("div",{staticClass:"additional_info"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.expandedQueues[t.name].isLoaded,expression:"!expandedQueues[queue.name].isLoaded"}]},[e._v("Loading queue data... "),n("img",{attrs:{src:a("d9b6"),alt:"loading queue data..."}})]),e.expandedQueues[t.name].isLoaded&&!e.expandedQueues[t.name].isError&&null!==e.expandedQueues[t.name].data?n("div",[n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Building:")]),e._v(" "),n("a",{attrs:{href:"http://www.google.com/maps/place/"+e.expandedQueues[t.name].data["building_address"].split(" ").join("+")+"/@"+e.expandedQueues[t.name].data["building_lat"]+","+e.expandedQueues[t.name].data["building_lng"],target:"_blank"}},[e._v(e._s(e.expandedQueues[t.name].data["building_name"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Printer Location:")]),e._v(" "),n("a",{attrs:{href:e.publicPath+"/maps/"+t.name.split("-")[1],target:"_blank"}},[e._v("View on Maps Page")])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Features:")]),e._v(" "),n("span",{domProps:{innerHTML:e._s(e.renderFeatures(t.name))}})]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Server:")]),e._v(" "),n("span",[e._v(e._s(e.expandedQueues[t.name].data["server"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Printer Model")]),e._v(" "),n("span",[e._v(e._s(e.expandedQueues[t.name].data["manufacturer"]+" "+e.expandedQueues[t.name].data["model_name"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("IP Address:")]),e._v(" "),n("a",{attrs:{href:"http://"+e.expandedQueues[t.name].data["ip"],target:"_blank"}},[e._v(e._s(e.expandedQueues[t.name].data["ip"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("MAC Address:")]),e._v(" "),n("span",[e._v(e._s(e.expandedQueues[t.name].data["mac_address"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Unit:")]),e._v(" "),n("span",[e._v(e._s(null!==e.expandedQueues[t.name].data["sub_unit"]?e.expandedQueues[t.name].data["unit"]+" - "+e.expandedQueues[t.name].data["sub_unit"]:""+e.expandedQueues[t.name].data["unit"]))])]),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Serial Number:")]),e._v(" "),n("span",[e._v(e._s(e.expandedQueues[t.name].data["serial_number"]))])]),n("div",{staticClass:"pad-4-0"},[e.expandedQueues[t.name].data["queue_restrictions"]?[n("b",[e._v("Queue Restrictions:")]),e._v(" "),n("span",{domProps:{innerHTML:e._s(""+e.expandedQueues[t.name].data["queue_restrictions"].split(",").join("<span class='ml-2 mr-2'>&#8226;</span>"))}})]:[n("b",[e._v("Queue Restrictions:")]),e._v(" "),n("span",[e._v("This queue has no restrictions")])],["manage","admin"].includes(e.user.role)||e.myUnits.includes(e.expandedQueues[t.name].data["unit_id"])?[n("a",{staticClass:"ml-2",attrs:{href:""},on:{click:function(a){return a.preventDefault(),e.showRestrictionsModal(t.name)}}},[e._v("Edit Restrictions")])]:e._e()],2),["manage","admin"].includes(e.user.role)||e.myUnits.includes(e.expandedQueues[t.name].data["unit_id"])?n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Admin Password:")]),e._v(" "),n("span",{staticClass:"blur_text"},[e._v(e._s(e.expandedQueues[t.name].data["admin_password"]))])]):e._e(),n("div",{staticClass:"pad-4-0"},[n("b",[e._v("Support Notes:")]),e._v(" "),["manage","admin"].includes(e.user.role)||e.myUnits.includes(e.expandedQueues[t.name].data["unit_id"])?n("a",{attrs:{href:""},on:{click:function(a){return a.preventDefault(),e.showSupportNotesModal(t.name)}}},[e._v("Edit")]):e._e()]),n("div",{staticClass:"pad-4-0"},[e.expandedQueues[t.name].data["support_info"]?n("p",{domProps:{innerHTML:e._s(e.expandedQueues[t.name].data["support_info"])}}):n("p",[e._v("There are currently no support notes")])]),e._m(20,!0),n("div",{staticClass:"pad-4-0"},[e._l(e.expandedQueues[t.name].data["commands"],(function(s,r){return[r>0?[n("span",{key:t.name+"_command_"+r+"_separator",staticClass:"ml-2 mr-2"},[e._v("•")])]:e._e(),e.runningCommands.includes(t.name+"_"+s["command"])?[n("span",{key:"running_"+r+"_"+t.name},[e._v("Running command... "),n("img",{attrs:{src:a("d9b6"),alt:"running command"}})])]:[n("a",{key:t.name+"_commands_"+r,staticClass:"capitalize",attrs:{href:""},on:{click:function(a){return a.preventDefault(),e.issueCommand(t.name,s["command"])}}},[e._v(e._s(s.name))])]]}))],2)]):e._e()]):e._e()]),e.expandedQueueNames.includes(t.name)&&e.expandedQueues[t.name].isLoaded&&!e.expandedQueues[t.name].isError?n("div",{staticClass:"toner_container float_right"},[n("h2",[e._v("Toner Levels")]),-1===t.name.indexOf("follow-me")&&"class"!==e.expandedQueues[t.name].data.type&&+t.color?[e._l(Object.keys(e.tonerColorMap),(function(a){return[null!==e.expandedQueues[t.name].data[a]?n("div",{key:t.name+"_"+a,staticClass:"toner_level_box"},[n("span",{staticClass:"toner_level_color_label"},[e._v(e._s(e.tonerColorMap[a]))]),n("figure",{staticClass:"toner_level_graph"},[n("span",{class:e.tonerColorMap[a].replace(" ","").toLowerCase(),style:"width: "+Math.round(100*+e.expandedQueues[t.name].data[a])+"%"})]),n("span",{staticClass:"toner_level_text"},[e._v(e._s(Math.round(100*+e.expandedQueues[t.name].data[a])+"%"))])]):e._e()]})),n("div",{staticClass:"pt-12 center"},[e._v("Last updated: "+e._s(e.formatDate(new Date(+t.toner_last_updated),!0)))])]:-1===t.name.indexOf("-label-")&&"class"!==e.expandedQueues[t.name].data.type&&0===+t.color?[n("div",{staticClass:"toner_level_box"},[n("span",{staticClass:"toner_level_color_label"},[e._v("Black")]),n("figure",{staticClass:"toner_level_graph"},[n("span",{staticClass:"black",style:"width: "+Math.round(100*+e.expandedQueues[t.name].data.toner_k)+"%"})]),n("span",{staticClass:"toner_level_text"},[e._v(e._s(Math.round(100*+e.expandedQueues[t.name].data.toner_k)+"%"))])]),n("div",{staticClass:"pt-12 center"},[e._v("Last updated: "+e._s(e.formatDate(new Date(+t.toner_last_updated),!0)))])]:[n("div",[e._v("Toner levels are not available")])]],2):e._e(),e.expandedQueueNames.includes(t.name)&&e.expandedQueues[t.name].isLoaded&&!e.expandedQueues[t.name].isError?n("div",{staticClass:"canvas_container float_right"},[n("h2",[e._v("Past Week Usage Chart")]),e.expandedQueues[t.name].history.isLoaded?e.expandedQueues[t.name].history.isLoaded&&e.expandedQueues[t.name].history.isError?[n("div",[e._v("Failed to retrieve print history!")])]:e.expandedQueues[t.name].history.isLoaded&&!e.expandedQueues[t.name].history.isError&&0===+e.expandedQueues[t.name].history.data.length?[n("div",[e._v("No print history found!")])]:[n("canvas",{staticClass:"usage_canvas",attrs:{id:t.name+"_usage_chart"}})]:[e._m(21,!0)],n("h2",[e._v("Recent Print Jobs")]),n("table",{staticClass:"job_table"},[e._m(22,!0),n("tbody",[e.expandedQueues[t.name].isLoaded?e._e():n("tr",[e._m(23,!0)]),!e.expandedQueues[t.name].isLoaded||e.expandedQueues[t.name].isError||e.expandedQueues[t.name].data.jobs.length?e._l(e.expandedQueues[t.name].data.jobs,(function(a,s){return n("tr",{key:t.name+"_job_"+s},[n("td",{attrs:{title:a.username}},[e._v(e._s(a.username))]),n("td",{attrs:{title:a.usage_date}},[e._v(e._s(a.usage_date))]),n("td",{attrs:{title:a.document_name}},[e._v(e._s(a.document_name))]),n("td",{staticClass:"capitalize",attrs:{title:a.state}},[e._v(e._s(a.state))])])})):n("tr",[e._m(24,!0)])],2)])],2):e._e(),n("div",{staticClass:"clearfix"}),n("div",{staticClass:"pad-8",class:e.expandedQueueNames.includes(t.name)&&t.notes?"center bold box-highlight":"hidden",domProps:{innerHTML:e._s(t.notes)}})])]}))],2):e._e()]],2)]),n("div",{directives:[{name:"show",rawName:"v-show",value:null!==e.showRestrictionModalForQueue,expression:"showRestrictionModalForQueue !== null"}],staticClass:"modal",attrs:{id:"restrictions_modal"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeOpenModal(!1)}}},[e._m(25),n("div",{staticClass:"modal_content "},[n("h2",[e._v("Modifying Queue Restrictions For Queue: "+e._s(e.showRestrictionModalForQueue))]),null!==e.showRestrictionModalForQueue&&e.groupData.isLoaded&&!e.groupData.isError?n("div",{staticClass:"pt-12"},[n("label",{attrs:{for:"edit_restrictions"}},[e._v("Restrictions:")]),n("v-select",{attrs:{id:"edit_restrictions",options:e.groupData.groups,multiple:"",taggable:""},model:{value:e.editedQueueRestrictions,callback:function(t){e.editedQueueRestrictions=t},expression:"editedQueueRestrictions"}}),n("div",{staticClass:"pt-12"},[n("b",[e._v("Note:")]),e._v(" if you choose to set any queue restrictions, groups "),n("i",[e._v(e._s(e.permanentQueueRestrictions.join(", ")))]),e._v(" will be automatically added to ensure the printer will continue to function in MPrint.")])],1):null!==e.showRestrictionModalForQueue&&e.groupData.isLoaded&&e.groupData.isError?n("div",[n("div",{staticClass:"medium_text"},[e._v("Failed to load group data. Cannot edit queue restrictions! Please refresh the page and try again.")])]):e._e()]),n("div",{staticClass:"modal_footer"},[n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member"},[n("div",{staticClass:"button",on:{click:function(t){return e.closeOpenModal(!1)}}},[e._v("Cancel")])]),n("div",{staticClass:"flex_member end"},[n("div",{staticClass:"button button_blue",class:e.disableSave?"disabled":"",on:{click:function(t){return e.closeOpenModal(!0)}}},[n("i",{staticClass:"far fa-save mr-1"}),e._v("Save Queue Restrictions")])])])])]),n("div",{directives:[{name:"show",rawName:"v-show",value:null!==e.showModalForQueue,expression:"showModalForQueue !== null"}],staticClass:"modal",attrs:{id:"support_notes_modal"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeOpenModal(!1)}}},[e._m(26),n("div",{staticClass:"modal_content"},[n("h2",[e._v("Notes for Queue: "+e._s(e.showModalForQueue))]),n("h2",[n("a",{staticClass:"add_note",attrs:{href:"",title:"Add a note"},on:{click:function(t){return t.preventDefault(),e.newNotes.push("")}}},[e._v("Add a note +")])]),null!==e.showModalForQueue?n("div",[e.expandedQueues[e.showModalForQueue].data["support_info"]?[e._l(e.expandedQueues[e.showModalForQueue].data["support_info"].split("<br/>"),(function(t,a){return[n("p",{key:"notes_"+e.showModalForQueue+"_"+a},[n("span",{domProps:{innerHTML:e._s(t)}}),n("a",{staticClass:"red bold ml-4",attrs:{href:""},on:{click:function(t){return t.preventDefault(),e.deleteNote(a)}}},[n("i",{staticClass:"fas fa-times"})])])]}))]:[e.newNotes.length?e._e():n("p",[e._v("There are no support notes")])],e._l(e.newNotes,(function(t,a){return n("p",{key:"new_note_"+a},[n("label",{attrs:{for:"new_note_"+a}},[e._v("("+e._s(e.user.uniqname)+" at "+e._s(e.formatDate(new Date(Date.now()),!0))+"):")]),n("br"),n("input",{directives:[{name:"model",rawName:"v-model",value:e.newNotes[a],expression:"newNotes[index]"}],staticClass:"new_note",attrs:{type:"text",id:"new_note_"+a},domProps:{value:e.newNotes[a]},on:{input:function(t){t.target.composing||e.$set(e.newNotes,a,t.target.value)}}}),n("a",{staticClass:"red bold ml-4",attrs:{href:""},on:{click:function(t){return t.preventDefault(),e.deleteNewNote(a)}}},[n("i",{staticClass:"fas fa-times"})])])}))],2):e._e()]),n("div",{staticClass:"modal_footer"},[n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member"},[n("div",{staticClass:"button button_blue",on:{click:function(t){return e.closeOpenModal(!1)}}},[e._v("Close")])]),n("div",{staticClass:"flex_member end"},[n("div",{staticClass:"button button_blue",class:e.disableSave?"disabled":"",on:{click:function(t){return e.closeOpenModal(!0)}}},[n("i",{staticClass:"far fa-save mr-1"}),e._v("Save New Notes and Close")])])])])])])},ft=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pad-4-0"},[a("b",[e._v("Queue Commands:")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._v("Getting past week's print history..."),n("img",{attrs:{src:a("d9b6"),alt:"loading queue history"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("thead",[a("tr",[a("th",[e._v("Uniqname")]),a("th",[e._v("Date/Time")]),a("th",{staticClass:"job_name_column"},[e._v("Job Name")]),a("th",[e._v("Job Status")])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("td",{attrs:{colspan:"4"}},[e._v("Loading recent jobs "),n("img",{attrs:{src:a("d9b6"),alt:"loading recent jobs"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",{attrs:{colspan:"4"}},[a("h2",[e._v("No Jobs Found")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pad-4-0"},[a("b",[e._v("Queue Commands:")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._v("Getting past week's print history..."),n("img",{attrs:{src:a("d9b6"),alt:"loading queue history"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("thead",[a("tr",[a("th",[e._v("Uniqname")]),a("th",[e._v("Date/Time")]),a("th",{staticClass:"job_name_column"},[e._v("Job Name")]),a("th",[e._v("Job Status")])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("td",{attrs:{colspan:"4"}},[e._v("Loading recent jobs "),n("img",{attrs:{src:a("d9b6"),alt:"loading recent jobs"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",{attrs:{colspan:"4"}},[a("h2",[e._v("No Jobs Found")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pad-4-0"},[a("b",[e._v("Queue Commands:")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._v("Getting past week's print history..."),n("img",{attrs:{src:a("d9b6"),alt:"loading queue history"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("thead",[a("tr",[a("th",[e._v("Uniqname")]),a("th",[e._v("Date/Time")]),a("th",{staticClass:"job_name_column"},[e._v("Job Name")]),a("th",[e._v("Job Status")])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("td",{attrs:{colspan:"4"}},[e._v("Loading recent jobs "),n("img",{attrs:{src:a("d9b6"),alt:"loading recent jobs"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",{attrs:{colspan:"4"}},[a("h2",[e._v("No Jobs Found")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pad-4-0"},[a("b",[e._v("Queue Commands:")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._v("Getting past week's print history..."),n("img",{attrs:{src:a("d9b6"),alt:"loading queue history"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("thead",[a("tr",[a("th",[e._v("Uniqname")]),a("th",[e._v("Date/Time")]),a("th",{staticClass:"job_name_column"},[e._v("Job Name")]),a("th",[e._v("Job Status")])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("td",{attrs:{colspan:"4"}},[e._v("Loading recent jobs "),n("img",{attrs:{src:a("d9b6"),alt:"loading recent jobs"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",{attrs:{colspan:"4"}},[a("h2",[e._v("No Jobs Found")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pad-4-0"},[a("b",[e._v("Queue Commands:")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._v("Getting past week's print history..."),n("img",{attrs:{src:a("d9b6"),alt:"loading queue history"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("thead",[a("tr",[a("th",[e._v("Uniqname")]),a("th",[e._v("Date/Time")]),a("th",{staticClass:"job_name_column"},[e._v("Job Name")]),a("th",[e._v("Job Status")])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("td",{attrs:{colspan:"4"}},[e._v("Loading recent jobs "),n("img",{attrs:{src:a("d9b6"),alt:"loading recent jobs"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",{attrs:{colspan:"4"}},[a("h2",[e._v("No Jobs Found")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Edit Queue Restrictions")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Edit Support Info")])])}],ht=(a("c740"),a("5dea")),gt=a("2230"),vt=(a("8e16"),a("d549")),bt=a("a49b")["permanentQueueRestrictions"],wt={name:"info",data:function(){return{charts:{},connectionTestInterval:null,desktopView:!0,disableSave:!1,editedQueueRestrictions:[],enableMask:!1,expandedQueueNames:[],expandedQueues:{},featureIcons:{card_reader:"<i class='fas fa-id-card fa-fw' title='Card reader authentication'></i>",color:"<i class='fas fa-palette fa-fw' title='Color'></i>",copy:"<i class='fas fa-copy fa-fw' title='Copy'></i>",poster:"<i class='fas fa-scroll fa-fw' title='Poster'></i>",staple:"<i class='fas fa-paperclip fa-fw' title='Staple'></i>",tabloid:"<i class='fas fa-ruler-combined fa-fw' data-count='11x17' title='Tabloid 11x17'></i>"},filterJoinWith:"and",filters:{environment:[],features:[],status:[],quick_search:[]},focused:null,groupData:{isError:!1,isLoaded:!1,groups:[]},msg:"",myUnits:[],newNotes:[],permanentQueueRestrictions:bt,popFilter:!1,publicPath:window.location.origin,queuesList:{isError:!1,isLoaded:!1,queues:{allQueues:[],connectivity_failure:[],error:[],warning:[],ok:[]}},runningCommands:[],showModalForQueue:null,showRestrictionModalForQueue:null,tonerColorMap:{toner_b:"Blue",toner_c:"Cyan",toner_g:"Green",toner_k:"Black",toner_lc:"Light Cyan",toner_lg:"Light Gray",toner_lm:"Light Magenta",toner_m:"Magenta",toner_mb:"Matte Black",toner_pb:"Photo Black",toner_r:"Red",toner_y:"Yellow"},visibleQueues:[]}},props:{user:{type:Object,default:function(){return this.$store.getters.getUser}}},methods:{changeQueueRestrictions:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n,s,r,c,l,u,d,_,m,f,h,g,v,b;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a=e,n=e.showRestrictionModalForQueue,s=e.editedQueueRestrictions.length?e.editedQueueRestrictions.concat(bt):[],r=e.expandedQueues[n].data["queue_restrictions"]?e.expandedQueues[n].data["queue_restrictions"].split(","):[],c="",l=[],u=[],e.msg="Setting queue restrictions...",e.disableSave=!0,e.expandedQueues[n].data["queue_restrictions"])if(!s||s&&!s.length)u=r.concat(bt);else{d=Object(i["a"])(r);try{for(d.s();!(_=d.n()).done;)m=_.value,s.includes(m)||u.push(m)}catch(w){d.e(w)}finally{d.f()}f=Object(i["a"])(s);try{for(f.s();!(h=f.n()).done;)g=h.value,r.includes(g)||l.push(g)}catch(w){f.e(w)}finally{f.f()}}else s&&s.length&&(l=s);if(!u.length){t.next=14;break}return v=[],t.next=14,p.methods.get("api/queuerestrictions/".concat(n)).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!+t.data.result.count){e.next=4;break}return e.next=3,Promise.all(t.data.result.result.filter((function(e){return!+e.deleted&&u.includes(e.group_name)})).map((function(e){return p.methods.delete("api/queuerestrictions/".concat(e.id))}))).then((function(e){for(var t in e)if(+e[+t].data.result.count){var a,n=[],s=Object(i["a"])(r);try{for(s.s();!(a=s.n()).done;){var o=a.value;o!==u[+t]&&n.push(o)}}catch(w){s.e(w)}finally{s.f()}r=n}else console.log(e[+t].data.result),v.push(u[+t])})).catch((function(e){console.log(e),v=u}));case 3:v.length&&(c="The following queue restrictions failed to delete: ".concat(v.join(", "),". "));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.log(e),c="An error occurred! Failed to retrieve queue restriction data for queue ".concat(n,". ")}));case 14:if(!l.length){t.next=18;break}return b=[],t.next=18,Promise.all(l.map((function(e){return p.methods.post("api/queuerestrictions",{printer_name:n,group_name:e})}))).then((function(e){for(var t in e)Object.keys(e[+t].data.result).includes("valid")&&!e[+t].data.result.valid||!+e[+t].data.result.count?(console.log(e[+t].data.result),b.push(l[+t])):r.push(l[+t]);b.length&&(c="".concat(c,"The following queue restrictions could not be added: ").concat(b.join(", "),". "))})).catch((function(e){console.log(e),c="".concat(c,"An error occurred! Failed to add new queue restrictions for queue ").concat(n,". ")}));case 18:(l.length||u.length)&&(a.$set(a.expandedQueues[n].data,"queue_restrictions",r.join(",")),p.methods.put("api/queues/".concat(n),{command:"clearAndRecreateQueueListCache"}).then((function(e){Object.keys(e.data.result).includes("valid")&&!e.data.result.valid&&console.log(e.data.result)}))),a.disableSave=!1,a.enableMask=!1,a.editedQueueRestrictions=[],a.showRestrictionModalForQueue=null,c?(a.msg=c,window.setTimeout((function(){a.msg=null}),5e3)):a.msg=null;case 24:case"end":return t.stop()}}),t)})))()},clearFilters:function(){for(var e=0,t=Object.keys(this.filters);e<t.length;e++){var a=t[e];this.filters[a]=[]}this.filterQueues()},closeOpenModal:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(n=t,t.disableSave){a.next=17;break}if(!e){a.next=13;break}if(!n.showModalForQueue){a.next=9;break}return s=n.expandedQueues[n.showModalForQueue].data["support_info"]?n.expandedQueues[n.showModalForQueue].data["support_info"]:"",a.next=7,Promise.all(n.newNotes.filter((function(e){return null!==e&&""!==e})).map((function(e){return p.methods.post("/api/supportinfo",{note:e,printer_name:n.showModalForQueue})}))).then((function(){n.$set(n.expandedQueues[n.showModalForQueue].data,"support_info",s+"<br/>"+n.newNotes.join("<br/>"))})).catch((function(e){console.log(e)})).finally((function(){n.enableMask=!1,n.newNotes=[],n.showModalForQueue=null}));case 7:a.next=11;break;case 9:return a.next=11,n.changeQueueRestrictions();case 11:a.next=17;break;case 13:n.enableMask=!1,n.newNotes=[],n.showModalForQueue=null,n.showRestrictionModalForQueue=null;case 17:case"end":return a.stop()}}),a)})))()},collapse:function(e){var t=null;for(var a in this.expandedQueueNames)this.expandedQueueNames[+a]===e&&(t=+a);null!==t&&this.$delete(this.expandedQueueNames,t),this.$delete(this.expandedQueues,e),this.$nextTick((function(){document.getElementById("".concat(e,"_box")).scrollIntoView({behavior:"smooth",block:"center"})}))},deleteNewNote:function(e){this.$delete(this.newNotes,e)},deleteNote:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:n=t.expandedQueues[t.showModalForQueue].data["support_info"].split("<br/>"),s=parseInt(n[e].split(">")[0].split("_")[1]),r=t,s&&!isNaN(s)?p.methods.delete("/api/supportinfo/".concat(s)).then((function(){r.$delete(n,e),r.$set(r.expandedQueues[r.showModalForQueue].data,"support_info",n.join("<br/>"))})).catch((function(e){console.log(e)})):(r.msg="An error occurred - could not delete support note!",window.setTimeout((function(){r.msg=""}),3e3));case 4:case"end":return a.stop()}}),a)})))()},expand:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.expandedQueueNames.includes(e)||(this.expandedQueueNames.push(e),this.getQueueData(e,t))},filterHelper:function(e,t){var a=this,n=[],s=null;switch(t){case"environment":e.filter((function(e){return a.filters[t].includes(e.service_name)})).map((function(e){return n.push(e)}));break;case"features":var r,o=Object(i["a"])(this.filters[t]);try{var c=function(){var t=r.value;s="bw"===t?e.filter((function(e){return!+e.color})):"hp"===t?e.filter((function(e){return e.model_type.indexOf("-hp-")>-1})):e.filter((function(e){return+e[t]})),"and"===a.filterJoinWith?e=s:s.map((function(e){return n.push(e)}))};for(o.s();!(r=o.n()).done;)c()}catch(f){o.e(f)}finally{o.f()}"and"===this.filterJoinWith&&e.map((function(e){return n.push(e)}));break;case"status":var l,u=Object(i["a"])(this.filters[t]);try{var d=function(){var t=l.value;s="Enabled"===t?e.filter((function(e){return+e.enabled})):"Disabled"===t?e.filter((function(e){return!+e.enabled})):e.filter((function(e){return e.state.toLowerCase()===t.toLowerCase()})),"and"===a.filterJoinWith?e=s:s.map((function(e){return n.push(e)}))};for(u.s();!(l=u.n()).done;)d()}catch(f){u.e(f)}finally{u.f()}"and"===this.filterJoinWith&&e.map((function(e){return n.push(e)}));break;default:var p,_=Object(i["a"])(this.filters[t]);try{var m=function(){var t=p.value;s=e.filter((function(e){return JSON.stringify(e).toLowerCase().indexOf(t.toLowerCase())>-1})),"and"===a.filterJoinWith?e=s:s.map((function(e){return n.push(e)}))};for(_.s();!(p=_.n()).done;)m()}catch(f){_.e(f)}finally{_.f()}"and"===this.filterJoinWith&&e.map((function(e){return n.push(e)}));break}return n},filterQueues:function(){this.msg="Filtering queues...";var e=this.queuesList.queues.allQueues,t=[],a=Object.values(this.filters).filter((function(e){return null!==e&&e.length})).length;if(a){if("and"===this.filterJoinWith)for(var n=!0,s=0,r=Object.keys(this.filters);s<r.length;s++){var i=r[s];null!==this.filters[i]&&this.filters[i].length&&(n?n=!1:e=t,t=this.filterHelper(e,i))}else for(var o=0,c=Object.keys(this.filters);o<c.length;o++){var l=c[o];null!==this.filters[l]&&this.filters[l].length&&(t=t.concat(this.filterHelper(e,l)))}this.visibleQueues=t.map((function(e){return e.name}))}else this.visibleQueues=e.map((function(e){return e.name}));this.msg=""},formatDate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date(Date.now()),t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=e.toLocaleString("en-US",{timeZone:"America/Detroit"});a.indexOf("Z")>-1&&(a=a.split(".")[0]),e=new Date(a);var n=(""+(1+e.getMonth())).padStart(2,"0")+"/"+(""+e.getDate()).padStart(2,"0")+"/"+e.getFullYear();return t&&(n+=" "+(""+e.getHours()).padStart(2,"0")+":"+(""+e.getMinutes()).padStart(2,"0")+":"+(""+e.getSeconds()).padStart(2,"0")),n},getGroupData:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,p.methods.get("api/groups").then((function(e){+e.data.result.count?a.groupData.groups=e.data.result.result.filter((function(e){return!bt.concat(["!!All Users!!","AlumniAA","FacultyAA","MiPrint.All","RegularStaffAA","Retiree","SponsoredAffiliateAA","TemporaryStaffAA"]).includes(e)})):(a.msg="Something went wrong. Please refresh the page and try again.",console.log(e.data.result),a.groupData.isError=!0)})).catch((function(e){console.log(e),a.msg="An error occurred! Please refresh the page and try again.",a.groupData.isError=!0})).finally((function(){window.setTimeout((function(){a.msg=null}),4e3),a.groupData.isLoaded=!0}));case 2:case"end":return t.stop()}}),t)})))()},getQueues:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,p.methods.get("api/queues?detailedWithoutJobs=1").then((function(e){+e.data.result.count?(a.queuesList.queues.allQueues=e.data.result.result.filter((function(e){return-1===e.name.indexOf("-fax-")&&-1===e.name.indexOf("-poster-follow-")})),a.queuesList.queues.connectivity_failure=e.data.result.result.filter((function(e){return"offline"===e.state.toLowerCase()})),a.queuesList.queues.error=e.data.result.result.filter((function(e){return"error"===e.state.toLowerCase()})),a.queuesList.queues.warning=e.data.result.result.filter((function(e){return"warning"===e.state.toLowerCase()})),a.queuesList.queues.ok=e.data.result.result.filter((function(e){return"ok"===e.state.toLowerCase()})),a.visibleQueues=a.queuesList.queues.allQueues.map((function(e){return e.name}))):a.queuesList.isError=!0})).catch((function(e){a.queuesList.isError=!0,a.msg="An error occurred while populating the list of queues! Please refresh to try again.",console.log("An error occurred while populating the list of queues! ".concat(e))})).finally((function(){a.queuesList.isLoaded=!0,a.msg&&window.setTimeout((function(){a.msg=""}),4e3),a.$nextTick((function(){if(!a.queuesList.isError){var e=window.location.hash;if(e){var t=e.split("=");"#queue"===t[0]?a.focused="".concat(t[1]):"#search"===t[0]?(a.$set(a.filters,"quick_search",[t[1]]),a.filterQueues()):console.log("Provided URL hash is invalid: ".concat(e))}a.focused&&(document.getElementById("".concat(a.focused,"_box")).scrollIntoView({behavior:"smooth",block:"center"}),window.setTimeout((function(){a.focused=null}),5e3))}}))}));case 2:case"end":return t.stop()}}),t)})))()},getQueueData:function(e){var t=arguments,a=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var s,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:s=t.length>1&&void 0!==t[1]?t[1]:null,r=a,r.$set(r.expandedQueues,e,{isError:!1,isLoaded:!1,data:null,history:{isError:!1,isLoaded:!1,data:null}}),p.methods.get("api/queues/".concat(e,"?detailedWithHistory=1")).then((function(t){if(+t.data.result.count){t.data.result.result[0].jobs.map((function(e){return e.usage_date=Object(Q["a"])(new Date(e.usage_date),"yyyy-LL-dd HH:mm:ss")})),r.expandedQueues[e].data=t.data.result.result[0];var a=r.queuesList.queues.allQueues.findIndex((function(t){return t.name===e})),n=null!==s?r.queuesList.queues[s].findIndex((function(t){return t.name===e})):null,i=r.queuesList.queues.allQueues[a];i.enabled=+t.data.result.result[0].enabled,i.state=t.data.result.result[0].state,i.state_reasons=t.data.result.result[0].state_reasons,r.$set(r.queuesList.queues.allQueues,a,i),null!==s&&r.$set(r.queuesList.queues[s],n,i);var o=new Date,c=Object(Q["a"])(Object(ht["a"])(o,7),"yyyy-LL-dd"),l=Object(Q["a"])(o,"yyyy-LL-dd");p.methods.get("api/jobs?reportType=printer&target=".concat(e,"&start=").concat(c)).then((function(t){if(r.$set(r.expandedQueues[e]["history"],"data",t.data.result.result),+t.data.result.count){var a=r.parseData(t.data.result.result,c,l);Object.keys(r.charts).includes(e)&&(r.charts[e].destroy(),r.$delete(r.charts,e));var n={type:"bar",data:{datasets:a.dataset},options:{legend:{},maintainAspectRatio:!1,tooltips:{callbacks:{afterTitle:function(e,t){for(var a=0,n=0,s=Object.keys(t.datasets);n<s.length;n++){var r=s[n];"ppm threshold"!==t.datasets[r].label&&(a+=+t.datasets[r].data[e[0].index]["y"])}return"Total Pages: "+a}}},scales:{x:{stacked:!0,ticks:{source:"auto"},time:{unit:"day"},title:{display:!0,font:{size:14,style:"oblique"},text:"Day"},type:"time"},y:{stacked:!0,ticks:{beginAtZero:!0,precision:0},title:{display:!0,font:{size:14,style:"oblique"},text:"# Pages"}}}}};r.$set(r.expandedQueues[e]["history"],"isLoaded",!0),r.$nextTick((function(){r.charts[e]=new vt["a"]("".concat(e,"_usage_chart"),n),document.getElementById("".concat(e,"_box")).scrollIntoView({behavior:"smooth",block:"center"})}))}})).catch((function(t){console.log(t),r.$set(r.expandedQueues[e]["history"],"isError",!0),r.$set(r.expandedQueues[e]["history"],"isLoaded",!0)}))}else r.$set(r.expandedQueues[e],"isError",!0)})).catch((function(t){r.$set(r.expandedQueues[e],"isError",!0),console.log("An error occurred while grabbing info for queue ".concat(e,"! ").concat(t))})).finally((function(){r.$set(r.expandedQueues[e],"isLoaded",!0)}));case 4:case"end":return n.stop()}}),n)})))()},getUnitAdminData:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,"admin"!==e.user.role&&p.methods.get("api/unitadmins?uniqname=".concat(e.user.uniqname)).then((function(e){e.data.result.result.filter((function(e){return 1===+e.is_approved})).map((function(e){return a.myUnits.push(e.unit_id)}))})).catch((function(e){console.log(e)}));case 2:case"end":return t.stop()}}),t)})))()},issueCommand:function(e,t){var a=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:a.runningCommands.push("".concat(e,"_").concat(t)),s=a,p.methods.put("api/queues/".concat(e),{command:t}).then((function(a){s.msg="countJobs"===t?"".concat(t," result: Queued Windows jobs: ").concat(a.data.result.result.windows," - Queued Linux jobs: ").concat(a.data.result.result.linux):"".concat(t," result: ").concat(a.data.result.result),s.runningCommands=s.runningCommands.filter((function(a){return a!=="".concat(e,"_").concat(t)}))})).catch((function(a){console.log(a),s.msg="".concat(t," error: ").concat(a),s.runningCommands=s.runningCommands.filter((function(a){return a!=="".concat(e,"_").concat(t)}))})).finally((function(){window.setTimeout((function(){s.msg=""}),3e3)}));case 3:case"end":return n.stop()}}),n)})))()},mediaChangeListener:function(e){console.log("mql event! should we change views?"),this.desktopView=!e.matches},parseData:function(e,t,a){var n,s,r={duplex_grayscale_prints:"rgba(0,39,76,1)",duplex_grayscale_copies:"rgba(0,39,76,.70)",simplex_grayscale_prints:"rgba(0,39,76,.45)",simplex_grayscale_copies:"rgba(0,39,76,.25)",duplex_color_prints:"rgba(255,203,5,1)",duplex_color_copies:"rgba(255,203,5,.70)",simplex_color_prints:"rgba(255,203,5,.45)",simplex_color_copies:"rgba(255,203,5,.25)",ppm_threshold:"rgba(0,39,76,.33)",printer_demand:"rgba(255,203,5,1)",student_account_charges:"rgba(192,0,0,.33)",quota_account_charges:"rgba(0,192,0,.33)",shared_account_charges:"rgba(0,39,76,.33)",pages_printed:"rgba(255,203,5,.75)"},i=[],o=[],c={duplex_grayscale_prints:[],duplex_grayscale_copies:[],simplex_grayscale_prints:[],simplex_grayscale_copies:[],duplex_color_prints:[],duplex_color_copies:[],simplex_color_prints:[],simplex_color_copies:[]};for(var l in c){var u=Object(Q["a"])(Object(U["a"])(t),"yyyy-LL-dd"),d=Object(Q["a"])(Object(U["a"])(a),"yyyy-LL-dd"),p=!1;o.length||(p=!0);while(u<=d)p&&o.push(u),c[l].push({x:u,y:0}),u=Object(Q["a"])(Object(gt["a"])(Object(U["a"])(u),{days:1}),"yyyy-LL-dd")}for(var _=0;_<e.length;_++)if(n=Object(Q["a"])(Object(U["a"])(e[_]["usage_date"]),"yyyy-LL-dd"),s=o.indexOf(n),-1!==s&&"Printed"===e[_]["status"])switch(e[_]["duplex"]){case"Y":switch(e[_]["gray_scale"]){case"Y":switch(e[_]["job_type"]){case"COPY":c["duplex_grayscale_copies"][s]["y"]+=+e[_]["total_pages"];break;case"PRINT":c["duplex_grayscale_prints"][s]["y"]+=+e[_]["total_pages"];break}break;case"N":switch(e[_]["job_type"]){case"COPY":c["duplex_color_copies"][s]["y"]+=+e[_]["total_pages"];break;case"PRINT":c["duplex_color_prints"][s]["y"]+=+e[_]["total_pages"];break}break}break;case"N":switch(e[_]["gray_scale"]){case"Y":switch(e[_]["job_type"]){case"COPY":c["simplex_grayscale_copies"][s]["y"]+=+e[_]["total_pages"];break;case"PRINT":c["simplex_grayscale_prints"][s]["y"]+=+e[_]["total_pages"];break}break;case"N":switch(e[_]["job_type"]){case"COPY":c["simplex_color_copies"][s]["y"]+=+e[_]["total_pages"];break;case"PRINT":c["simplex_color_prints"][s]["y"]+=+e[_]["total_pages"];break}break}break}for(var m in c)i.push({label:m.replace(/_/g," "),barThickness:"flex",backgroundColor:r[m],data:c[m]});return{dataset:i,scaleBy:"day"}},renderFeatures:function(e){for(var t="",a=0,n=Object.keys(this.featureIcons);a<n.length;a++){var s=n[a];Object.keys(this.expandedQueues[e].data).includes(s)&&+this.expandedQueues[e].data[s]&&(t+=this.featureIcons[s])}return t},scrollListener:function(){this.popFilter=window.scrollY>100},showRestrictionsModal:function(e){this.editedQueueRestrictions=[],this.showRestrictionModalForQueue=null,this.enableMask=!0,this.editedQueueRestrictions=this.expandedQueues[e].data["queue_restrictions"]?this.expandedQueues[e].data["queue_restrictions"].split(",").filter((function(e){return!bt.includes(e)})):[],this.showRestrictionModalForQueue=e},showSupportNotesModal:function(e){this.enableMask=!0,this.showModalForQueue=e},_testConnection:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e,t.next=3,p.methods.get("api/auth/user").then((function(e){return!!Object.keys(e.data.result).includes("uniqname")||(console.log(e),console.log(e.data.result),!1)})).catch((function(e){return console.log(e),a.msg="Your Weblogin session has expired! This page will refresh in 5 seconds.",window.setTimeout((function(){window.location.reload()}),5e3),!1}));case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})))()}},created:function(){if(this.user.uniqname){this.getQueues(),this.getGroupData(),this.getUnitAdminData();var e=this;this.connectionTestInterval=window.setInterval(Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e._testConnection();case 2:a=t.sent,a||(e.msg="Your Weblogin session has expired! This page will refresh in 5 seconds.",window.setTimeout((function(){window.location.reload()}),5e3));case 4:case"end":return t.stop()}}),t)}))),3e4)}this.$route.params["queueName"]&&(this.focused=this.$route.params["queueName"]),this.mql=window.matchMedia("(max-width: 1000px)"),console.log("mql match? ".concat(this.mql.matches)),this.desktopView=!this.mql.matches,this.mql.addEventListener("change",this.mediaChangeListener),window.addEventListener("scroll",this.scrollListener)},watch:{user:function(){this.getQueues(),this.getGroupData(),this.getUnitAdminData();var e=this;this.connectionTestInterval=window.setInterval(Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e._testConnection();case 2:a=t.sent,a||(e.msg="Your Weblogin session has expired! This page will refresh in 5 seconds.",window.setTimeout((function(){window.location.reload()}),5e3));case 4:case"end":return t.stop()}}),t)}))),3e4)}},destroyed:function(){window.clearInterval(this.connectionTestInterval),window.removeEventListener("scroll",this.scrollListener)}},yt=wt,xt=(a("1ff4"),a("1fe4"),Object(f["a"])(yt,mt,ft,!1,null,"25f956df",null)),Ct=xt.exports,kt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.msg,expression:"msg"}],attrs:{id:"message_container"}},[n("div",{staticClass:"message",attrs:{id:"message"}},[e._v(e._s(e.msg))])]),n("div",{attrs:{id:"content",role:"main"}},[e._m(0),["apple","linux","windows"].includes(e.userAgent.platform)?e.userData.isLoaded?e.userData.isError&&e.userData.isLoaded?[n("div",{staticClass:"full_width medium_text center"},[e._v("An error occurred! Please refresh the page and try again.")])]:[n("div",{staticClass:"flex_row"},[e._m(2),n("div",{staticClass:"box help_box"},[n("p",[e._v("Uncertain what printer might be best for you? Visit our "),n("a",{attrs:{href:e.publicPath+"/maps"}},[e._v("MPrint Maps page")]),e._v(" to find a printer near you!")])]),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.showProtocolWarning&&("apple"===e.userAgent.platform||"windows"===e.userAgent.platform),expression:"!showProtocolWarning && (userAgent.platform === 'apple' || userAgent.platform === 'windows')"}],staticClass:"box help_box"},["apple"===e.userAgent.platform?[n("p",[n("b",[e._v("Mac Users:")]),e._v(" Do you have the MPrint Install application? If not, please "),n("a",{attrs:{href:e.publicPath+"/packages/mac/mprint_installer.dmg",download:""}},[e._v("click here")]),e._v(" to download and install the application!")])]:"windows"===e.userAgent.platform?[n("p",[n("b",[e._v("Windows Users:")]),e._v(" Do you have the MPrint Install application? If not, please "),n("a",{attrs:{href:e.publicPath+"/packages/win/MPrint-Installer-Setup.exe",download:""}},[e._v("click here")]),e._v(" to download and install the application!")]),e.userData.user.is_mws?[e._m(3)]:e.userData.user.is_mps?[n("p",[n("b",[e._v(e._s(e.userData.user.mps_unit)+" Users:")]),e._v(" If you're using your "+e._s(e.userData.user.mps_unit)+"-managed device you may already have the MPrint Installer application, though you may need to reboot your machine before you will see it.")])]:[e._m(4)]]:"linux"===e.userAgent.platform?[n("p",[n("b",[e._v("Linux Users:")]),e._v(" Do you have the MPrint Install application? If not, please download it here: "),n("a",{attrs:{href:e.publicPath+"/packages/linux/mprint-installer.deb",download:""}},[e._v("Debian-based Systems")]),e._v(" or "),n("a",{attrs:{href:e.publicPath+"/packages/linux/mprint-installer.rpm",download:""}},[e._v("RPM-based Systems")]),e._v(".")])]:e._e()],2),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showProtocolWarning,expression:"showProtocolWarning"}],staticClass:"box help_box"},[n("div",{staticClass:"pb-1"},[e._v('Your browser may warn you that it\'s trying to launch an application. Please hit "Open" to proceed.')]),n("img",{staticStyle:{width:"500px"},attrs:{src:a("db11"),alt:"Open Installer Popup",title:"Open MPrint Installer Warning"}})])]),n("hr",{staticClass:"main_divider"}),n("div",{staticClass:"flex_row"},[n("div",{staticClass:"box"},[n("div",[e._v('This page is no longer used for print queue installation. Please click the "Launch Installer" button to use the MPrint Installer application on your machine.')]),n("ul",["apple"===e.userAgent.platform?[n("li",[n("b",[e._v("Mac Users:")]),e._v(" Do you have the MPrint Install application? If not, please "),n("a",{attrs:{href:e.publicPath+"/packages/mac/mprint_installer.dmg",download:""}},[e._v("click here")]),e._v(" to download and install the application!")])]:"windows"===e.userAgent.platform?[n("li",[e._v("If you do not have the MPrint Installer application on your machine, please "),n("a",{attrs:{href:e.publicPath+"/packages/win/MPrint-Installer-Setup.exe",download:""}},[e._v("click here")]),e._v(" to download and install it.")])]:"linux"===e.userAgent.platform?[n("li",[e._v("If you do not have the MPrint Installer application on your machine, please download it here: "),n("a",{attrs:{href:e.publicPath+"/packages/linux/mprint-installer.deb",download:""}},[e._v("Debian-based Systems")]),e._v(" or "),n("a",{attrs:{href:e.publicPath+"/packages/linux/mprint-installer.rpm",download:""}},[e._v("RPM-based Systems")])])]:[n("li",[e._v("Your operating system does not support MPrint print queue installation. Please use the "),n("a",{attrs:{href:e.publicPath+"/app"}},[e._v("MPrint Mobile app")]),e._v(" or "),n("a",{attrs:{href:""+e.publicPath}},[e._v("MPrint web page")]),e._v(" to print!")])],e._m(5)],2)]),"apple"===e.userAgent.platform?[n("div",{staticClass:"box button button_blue",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.launchInstaller.apply(null,arguments)}}},[n("div",{staticClass:"centering_div"},[n("svg",{staticClass:"brand_logo",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"}},[n("path",{attrs:{fill:"#FFFFFF",d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"}})]),n("div",{staticClass:"medium_text inline"},[e._v("Launch Installer")])])])]:"windows"===e.userAgent.platform?[n("div",{staticClass:"box button button_blue",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.launchInstaller.apply(null,arguments)}}},[n("div",{staticClass:"centering_div"},[n("svg",{staticClass:"brand_logo",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},[n("path",{attrs:{fill:"#FFFFFF",d:"M0 93.7l183.6-25.3v177.4H0V93.7zm0 324.6l183.6 25.3V268.4H0v149.9zm203.8 28L448 480V268.4H203.8v177.9zm0-380.6v180.1H448V32L203.8 65.7z"}})]),n("div",{staticClass:"medium_text inline"},[e._v("Launch Installer")])])])]:"linux"===e.userAgent.platform?[n("div",{staticClass:"box button button_blue",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.launchInstaller.apply(null,arguments)}}},[n("div",{staticClass:"centering_div"},[n("svg",{staticClass:"brand_logo",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},[n("path",{attrs:{fill:"#FFFFFF",d:"M220.8 123.3c1 .5 1.8 1.7 3 1.7 1.1 0 2.8-.4 2.9-1.5.2-1.4-1.9-2.3-3.2-2.9-1.7-.7-3.9-1-5.5-.1-.4.2-.8.7-.6 1.1.3 1.3 2.3 1.1 3.4 1.7zm-21.9 1.7c1.2 0 2-1.2 3-1.7 1.1-.6 3.1-.4 3.5-1.6.2-.4-.2-.9-.6-1.1-1.6-.9-3.8-.6-5.5.1-1.3.6-3.4 1.5-3.2 2.9.1 1 1.8 1.5 2.8 1.4zM420 403.8c-3.6-4-5.3-11.6-7.2-19.7-1.8-8.1-3.9-16.8-10.5-22.4-1.3-1.1-2.6-2.1-4-2.9-1.3-.8-2.7-1.5-4.1-2 9.2-27.3 5.6-54.5-3.7-79.1-11.4-30.1-31.3-56.4-46.5-74.4-17.1-21.5-33.7-41.9-33.4-72C311.1 85.4 315.7.1 234.8 0 132.4-.2 158 103.4 156.9 135.2c-1.7 23.4-6.4 41.8-22.5 64.7-18.9 22.5-45.5 58.8-58.1 96.7-6 17.9-8.8 36.1-6.2 53.3-6.5 5.8-11.4 14.7-16.6 20.2-4.2 4.3-10.3 5.9-17 8.3s-14 6-18.5 14.5c-2.1 3.9-2.8 8.1-2.8 12.4 0 3.9.6 7.9 1.2 11.8 1.2 8.1 2.5 15.7.8 20.8-5.2 14.4-5.9 24.4-2.2 31.7 3.8 7.3 11.4 10.5 20.1 12.3 17.3 3.6 40.8 2.7 59.3 12.5 19.8 10.4 39.9 14.1 55.9 10.4 11.6-2.6 21.1-9.6 25.9-20.2 12.5-.1 26.3-5.4 48.3-6.6 14.9-1.2 33.6 5.3 55.1 4.1.6 2.3 1.4 4.6 2.5 6.7v.1c8.3 16.7 23.8 24.3 40.3 23 16.6-1.3 34.1-11 48.3-27.9 13.6-16.4 36-23.2 50.9-32.2 7.4-4.5 13.4-10.1 13.9-18.3.4-8.2-4.4-17.3-15.5-29.7zM223.7 87.3c9.8-22.2 34.2-21.8 44-.4 6.5 14.2 3.6 30.9-4.3 40.4-1.6-.8-5.9-2.6-12.6-4.9 1.1-1.2 3.1-2.7 3.9-4.6 4.8-11.8-.2-27-9.1-27.3-7.3-.5-13.9 10.8-11.8 23-4.1-2-9.4-3.5-13-4.4-1-6.9-.3-14.6 2.9-21.8zM183 75.8c10.1 0 20.8 14.2 19.1 33.5-3.5 1-7.1 2.5-10.2 4.6 1.2-8.9-3.3-20.1-9.6-19.6-8.4.7-9.8 21.2-1.8 28.1 1 .8 1.9-.2-5.9 5.5-15.6-14.6-10.5-52.1 8.4-52.1zm-13.6 60.7c6.2-4.6 13.6-10 14.1-10.5 4.7-4.4 13.5-14.2 27.9-14.2 7.1 0 15.6 2.3 25.9 8.9 6.3 4.1 11.3 4.4 22.6 9.3 8.4 3.5 13.7 9.7 10.5 18.2-2.6 7.1-11 14.4-22.7 18.1-11.1 3.6-19.8 16-38.2 14.9-3.9-.2-7-1-9.6-2.1-8-3.5-12.2-10.4-20-15-8.6-4.8-13.2-10.4-14.7-15.3-1.4-4.9 0-9 4.2-12.3zm3.3 334c-2.7 35.1-43.9 34.4-75.3 18-29.9-15.8-68.6-6.5-76.5-21.9-2.4-4.7-2.4-12.7 2.6-26.4v-.2c2.4-7.6.6-16-.6-23.9-1.2-7.8-1.8-15 .9-20 3.5-6.7 8.5-9.1 14.8-11.3 10.3-3.7 11.8-3.4 19.6-9.9 5.5-5.7 9.5-12.9 14.3-18 5.1-5.5 10-8.1 17.7-6.9 8.1 1.2 15.1 6.8 21.9 16l19.6 35.6c9.5 19.9 43.1 48.4 41 68.9zm-1.4-25.9c-4.1-6.6-9.6-13.6-14.4-19.6 7.1 0 14.2-2.2 16.7-8.9 2.3-6.2 0-14.9-7.4-24.9-13.5-18.2-38.3-32.5-38.3-32.5-13.5-8.4-21.1-18.7-24.6-29.9s-3-23.3-.3-35.2c5.2-22.9 18.6-45.2 27.2-59.2 2.3-1.7.8 3.2-8.7 20.8-8.5 16.1-24.4 53.3-2.6 82.4.6-20.7 5.5-41.8 13.8-61.5 12-27.4 37.3-74.9 39.3-112.7 1.1.8 4.6 3.2 6.2 4.1 4.6 2.7 8.1 6.7 12.6 10.3 12.4 10 28.5 9.2 42.4 1.2 6.2-3.5 11.2-7.5 15.9-9 9.9-3.1 17.8-8.6 22.3-15 7.7 30.4 25.7 74.3 37.2 95.7 6.1 11.4 18.3 35.5 23.6 64.6 3.3-.1 7 .4 10.9 1.4 13.8-35.7-11.7-74.2-23.3-84.9-4.7-4.6-4.9-6.6-2.6-6.5 12.6 11.2 29.2 33.7 35.2 59 2.8 11.6 3.3 23.7.4 35.7 16.4 6.8 35.9 17.9 30.7 34.8-2.2-.1-3.2 0-4.2 0 3.2-10.1-3.9-17.6-22.8-26.1-19.6-8.6-36-8.6-38.3 12.5-12.1 4.2-18.3 14.7-21.4 27.3-2.8 11.2-3.6 24.7-4.4 39.9-.5 7.7-3.6 18-6.8 29-32.1 22.9-76.7 32.9-114.3 7.2zm257.4-11.5c-.9 16.8-41.2 19.9-63.2 46.5-13.2 15.7-29.4 24.4-43.6 25.5s-26.5-4.8-33.7-19.3c-4.7-11.1-2.4-23.1 1.1-36.3 3.7-14.2 9.2-28.8 9.9-40.6.8-15.2 1.7-28.5 4.2-38.7 2.6-10.3 6.6-17.2 13.7-21.1.3-.2.7-.3 1-.5.8 13.2 7.3 26.6 18.8 29.5 12.6 3.3 30.7-7.5 38.4-16.3 9-.3 15.7-.9 22.6 5.1 9.9 8.5 7.1 30.3 17.1 41.6 10.6 11.6 14 19.5 13.7 24.6zM173.3 148.7c2 1.9 4.7 4.5 8 7.1 6.6 5.2 15.8 10.6 27.3 10.6 11.6 0 22.5-5.9 31.8-10.8 4.9-2.6 10.9-7 14.8-10.4s5.9-6.3 3.1-6.6-2.6 2.6-6 5.1c-4.4 3.2-9.7 7.4-13.9 9.8-7.4 4.2-19.5 10.2-29.9 10.2s-18.7-4.8-24.9-9.7c-3.1-2.5-5.7-5-7.7-6.9-1.5-1.4-1.9-4.6-4.3-4.9-1.4-.1-1.8 3.7 1.7 6.5z"}})]),n("div",{staticClass:"medium_text inline"},[e._v("Launch Installer")])])])]:[n("div",{staticClass:"box button button_blue",attrs:{title:"About MPrint Mobile app"},on:{click:function(){e.window.location.href=e.publicPath+"/app"}}},[e._m(6)])]],2)]:[e._m(1)]:[n("div",{staticClass:"full_width medium_text center"},[e._v("Print queue installation is not supported on your operating system! Please use "+e._s(e.publicPath)+" or the MPrint Mobile app instead.")])]],2)])},Pt=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"box full_box"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("h1",[e._v("MPrint Install")])]),a("div",{staticClass:"flex_member end"},[a("p",{staticClass:"pt-12"},[e._v("Help! "),a("a",{attrs:{href:"https://teamdynamix.umich.edu/TDClient/30/Portal/KB/ArticleDet?ID=9611",target:"_blank"}},[e._v("How do I use this page?")])])])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"full_width medium_text center"},[e._v("Loading... "),n("img",{attrs:{src:a("d9b6"),alt:"loading user info"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"box help_box"},[a("p",[e._v("Try Follow Me for secure printing on the go. "),a("a",{attrs:{href:"https://teamdynamix.umich.edu/TDClient/30/Portal/KB/ArticleDet?ID=9611#follow-me",target:"_blank"}},[e._v("Click here to learn more about Follow Me!")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[e._v("Are you using your "),a("b",[e._v("MiWorkspace device")]),e._v("? If so, you should already have the MPrint Installer application, accessible via the MiWorkspace Helper app.")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[a("b",[e._v("Note:")]),e._v(" the application will not run on 32-bit operating systems.")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("li",[e._v("Need more help? "),a("a",{attrs:{href:"https://teamdynamix.umich.edu/TDClient/30/Portal/KB/ArticleDet?ID=9611",target:"_blank"}},[e._v("Visit our help page.")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"centering_div"},[a("div",{staticClass:"medium_text inline"},[e._v("Learn about MPrint Mobile")])])}],Dt=a("a49b")["installer"]["hook"],At={name:"install",data:function(){return{msg:null,publicPath:window.location.origin,showProtocolWarning:!1,userAgent:{platform:null,architecture:null},userData:{isError:!1,isLoaded:!1,user:{}}}},props:{user:{type:Object,default:function(){return this.$store.getters.getUser}}},methods:{getUserData:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,p.methods.get("api/users/".concat(a.user.uniqname)).then((function(e){+e.data.result.count?(a.userData.user=e.data.result.result[0],a.userData.isError=!1):a.userData.isError=!0,a.userData.isLoaded=!0})).catch((function(e){console.log("Could not retrieve user info! ".concat(e)),a.userData.isError=!0,a.userData.isLoaded=!0}));case 2:case"end":return t.stop()}}),t)})))()},launchInstaller:function(){var e=Dt+this.publicPath;this.showProtocolWarning=!0,window.location.href=e}},created:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,navigator.userAgentData.getHighEntropyValues(["architecture","bitness"]);case 3:a=t.sent,e.userAgent.platform=a.platform.toLowerCase(),e.userAgent.architecture=a.architecture,t.next=12;break;case 8:t.prev=8,t.t0=t["catch"](0),console.log("Could not get userAgent headers. Using an unsupported browser? Error: ".concat(t.t0)),e.userAgent.platform=navigator.userAgent.toLowerCase();case 12:(e.userAgent.platform.indexOf("os x")>-1||e.userAgent.platform.indexOf("macos")>-1)&&-1===e.userAgent.platform.indexOf("ipad")&&-1===e.userAgent.platform.indexOf("iphone")?e.userAgent.platform="apple":e.userAgent.platform.indexOf("windows")>-1?e.userAgent.platform="windows":e.userAgent.platform.indexOf("linux")>-1&&-1===e.userAgent.platform.indexOf("android")?e.userAgent.platform="linux":e.userAgent.platform="mobile",e.user.uniqname&&e.getUserData();case 14:case"end":return t.stop()}}),t,null,[[0,8]])})))()},watch:{user:function(){this.getUserData()}}},Et=At,jt=(a("e5c8"),a("7505"),Object(f["a"])(Et,kt,Pt,!1,null,"28b9aece",null)),qt=jt.exports,Mt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper printme"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.msg.length,expression:"msg.length"}],attrs:{id:"message_container"}},[e._l(e.msg,(function(t,n){return[a("div",{key:"message_"+n,staticClass:"message",attrs:{id:"message_"+n},domProps:{innerHTML:e._s(t)}})]}))],2),a("div",{directives:[{name:"show",rawName:"v-show",value:e.enableMask,expression:"enableMask"}],staticClass:"mask dim",attrs:{id:"mask"},on:{click:function(t){return e.closeOpenModal(!1)}}}),a("div",{attrs:{id:"content",role:"main"}},[a("div",{staticClass:"flex_row"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.popFilter,expression:"popFilter"}],staticClass:"box full_box",attrs:{id:"empty_filter_box"}}),a("div",{staticClass:"box full_box",class:e.popFilter?"popped_out":"",attrs:{id:"filter_container"}},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("h1",[e._v("MPrint Queue Label Generator")]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.selectedQueues.length,expression:"selectedQueues.length"}]},[a("button",{staticClass:"ml-2 button button_large button_blue",on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.downloadQueueData()}}},[a("i",{staticClass:"fas fa-download mr-2"}),e._v("Download Label Data")])])]),a("div",{staticClass:"flex_member end"},[a("div",[a("label",{attrs:{for:"filter_quick_search"}},[e._v("Quick Search:")]),a("v-select",{attrs:{id:"filter_quick_search",taggable:"",multiple:"",options:[],"dropdown-should-open":function(){return!1}},on:{input:function(t){return e.filterQueues()}},model:{value:e.quickSearch,callback:function(t){e.quickSearch=t},expression:"quickSearch"}})],1),a("p",{staticClass:"pl-2"},[e._v("Join filters with: "),a("label",{attrs:{for:"join_and"}},[e._v("And")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.filterJoinWith,expression:"filterJoinWith"}],attrs:{type:"radio",id:"join_and",name:"filter_join_with",value:"and",checked:"checked"},domProps:{checked:e._q(e.filterJoinWith,"and")},on:{change:[function(t){e.filterJoinWith="and"},function(t){return e.filterQueues()}]}}),e._v(" or "),a("label",{attrs:{for:"join_or"}},[e._v("Or")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.filterJoinWith,expression:"filterJoinWith"}],attrs:{type:"radio",id:"join_or",name:"filter_join_with",value:"or"},domProps:{checked:e._q(e.filterJoinWith,"or")},on:{change:[function(t){e.filterJoinWith="or"},function(t){return e.filterQueues()}]}})])])]),e.queueData.isLoaded?a("div",{staticClass:"flex_row center"},[a("div",{staticClass:"flex_member"},[a("p",[e._v("Showing "+e._s(e.visibleQueues.length)+" queue(s)")])])]):e._e()])]),"apple"===e.userAgent?[a("div",{staticClass:"box full_box"},[a("h2",{staticStyle:{"font-weight":"normal"}},[e._v("Instructions")]),a("table",{staticClass:"full_width"},[a("tr",{staticClass:"help_title",class:e.expanded.includes("browser")?"expanded":"",on:{click:function(t){return e.toggleRow("browser")}}},[a("td",{staticClass:"center pad-8-0"},[e._v("I have a Brother label printer installed and want to print via my web browser"),a("i",{staticClass:"ml-2 fas",class:e.expanded.includes("browser")?"fa-caret-down":"fa-caret-right"})])]),a("tr",{staticClass:"help_content",class:e.expanded.includes("browser")?"shown":""},[e._m(0)]),a("tr",{staticClass:"help_title even_row",class:e.expanded.includes("pt-edit")?"expanded":"",on:{click:function(t){return e.toggleRow("pt-edit")}}},[a("td",{staticClass:"center pad-8-0"},[e._v("I have a Brother P-Touch label printer, but do not to (or can't) print via my web browser"),a("i",{staticClass:"ml-2 fas",class:e.expanded.includes("pt-edit")?"fa-caret-down":"fa-caret-right"})])]),a("tr",{staticClass:"help_content even_row",class:e.expanded.includes("pt-edit")?"shown":""},[a("td",{staticClass:"pad-8"},[a("p",[e._v("If when trying to connect your Brother P-Touch label printer to your Mac, Apple warns you that printer software is not available from Apple, you will need to download the Brother P-Touch Editor app in order to print labels.")]),a("ol",{staticClass:"list"},[e._m(1),a("li",[a("a",{attrs:{href:e.publicPath+"/packages/mprint_label_template.lbx",download:""}},[e._v("Download the MPrint Label template file, mprint_label_template.lbx")]),e._v(" and open it")]),a("li",[e._v('Search for the printer or printers for which you need a label, and select them. After you\'re done choosing printers, hit the big blue "Download Label Data" button')]),a("li",[e._v('In the Brother P-Touch Editor program, hit the "Database" button in the upper right, and browse to the mprint_labels.csv file that you just downloaded')]),a("li",[e._v('Leave "Header Row Contains Field Names" checked, then hit "Open"')]),e._m(2),e._m(3)])])])])])]:"windows"===e.userAgent?[a("div",{staticClass:"box full_box"},[a("h2",{staticStyle:{"font-weight":"normal"}},[e._v("Instructions")]),a("table",{staticClass:"full_width"},[a("tr",{staticClass:"help_title",class:e.expanded.includes("browser")?"expanded":"",on:{click:function(t){return e.toggleRow("browser")}}},[a("td",{staticClass:"center pad-8-0"},[e._v("I have a Brother label printer and admin rights on my machine, and want to print via my web browser"),a("i",{staticClass:"ml-2 fas",class:e.expanded.includes("browser")?"fa-caret-down":"fa-caret-right"})])]),a("tr",{staticClass:"help_content",class:e.expanded.includes("browser")?"shown":""},[e._m(4)]),a("tr",{staticClass:"help_title even_row",class:e.expanded.includes("pt-edit")?"expanded":"",on:{click:function(t){return e.toggleRow("pt-edit")}}},[a("td",{staticClass:"center pad-8-0"},[e._v("I have a Brother P-Touch label printer but do not have admin rights, or would rather print using an application"),a("i",{staticClass:"ml-2 fas",class:e.expanded.includes("pt-edit")?"fa-caret-down":"fa-caret-right"})])]),a("tr",{staticClass:"help_content even_row",class:e.expanded.includes("pt-edit")?"shown":""},[a("td",{staticClass:"pad-8"},[a("p",[e._v("If you do not have admin rights on your PC, every attempt to print a Queue Label from your web browser will default to a 3.5 inch long label which is too small to be very useful. Instead, you will need to download the Brother P-Touch Editor app in order to print labels.")]),a("ol",{staticClass:"list"},[e._m(5),a("li",[a("a",{attrs:{href:e.publicPath+"/packages/mprint_label_template.lbx",download:""}},[e._v("Download the MPrint Label template file, mprint_label_template.lbx")]),e._v(" and open it")]),a("li",[e._v('Search for the printer or printers for which you need a label, and select them. After you\'re done choosing printers, hit the big blue "Download Label Data" button')]),a("li",[e._v('In the Brother P-Touch Editor program, hit the "Database" button in the upper right, and browse to the mprint_labels.csv file that you just downloaded')]),a("li",[e._v('Leave "Header Row Contains Field Names" checked, then hit "Open"')]),e._m(6),e._m(7)])])])])])]:[a("div",{staticClass:"medium_text full_width center"},[e._v("Your OS may not support printing labels! Proceed with caution.")])],a("hr",{staticClass:"main_divider"}),e.queueData.isLoaded?e.queueData.isLoaded&&e.queueData.isError?[a("div",{staticClass:"medium_text full_width center"},[e._v("Failed to load queues list!")])]:[a("div",{staticClass:"box full_box"},[a("table",{staticClass:"full_width"},[e._m(9),e._l(e.visibleQueues,(function(t,n){return[a("tr",{key:"queue_row_"+n,staticClass:"queue_row",class:e.selectedQueues.filter((function(e){return e.name===t["name"]})).length?"selected_row":n%2?"":"even_row",on:{click:function(a){return e.toggleQueue(t)}}},[a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedQueues.filter((function(e){return e.name===t["name"]})).length,expression:"(selectedQueues.filter(x => x.name === queue['name'])).length"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.selectedQueues.filter((function(e){return e.name===t["name"]})).length)?e._i(e.selectedQueues.filter((function(e){return e.name===t["name"]})).length,null)>-1:e.selectedQueues.filter((function(e){return e.name===t["name"]})).length},on:{click:function(a){return e.toggleQueue(t)},change:function(a){var n=e.selectedQueues.filter((function(e){return e.name===t["name"]})).length,s=a.target,r=!!s.checked;if(Array.isArray(n)){var i=null,o=e._i(n,i);s.checked?o<0&&e.$set(e.selectedQueues.filter((function(e){return e.name===t["name"]})),"length",n.concat([i])):o>-1&&e.$set(e.selectedQueues.filter((function(e){return e.name===t["name"]})),"length",n.slice(0,o).concat(n.slice(o+1)))}else e.$set(e.selectedQueues.filter((function(e){return e.name===t["name"]})),"length",r)}}})]),a("td",[e._v(e._s(t["display_name"]))]),a("td",[e._v(e._s(t["name"]))]),a("td",[e._v(e._s(t["service_name"]))]),a("td",[a("button",{staticClass:"button button_blue",on:{click:function(a){return a.stopPropagation(),a.preventDefault(),e.previewLabel(t)}}},[e._v("Preview Label")])])])]}))],2)])]:[e._m(8)]],2),null!==e.selectedQueue?a("div",{staticClass:"modal printme",attrs:{id:"label_modal"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeOpenModal(!1)}}},[a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Label for "+e._s(e.selectedQueue["name"]))])]),a("div",{staticClass:"modal_content_no_overflow printme center"},[e.queueData.isLoaded?e.queueData.isLoaded&&e.queueData.isError?[a("h2",[e._v("An error occurred!")]),a("div",{staticClass:"medium_text"},[e._v("Failed to load queue list! Please refresh and try again.")])]:[a("div",{staticClass:"label_example flex_row printme",attrs:{id:"label_to_print"}},[e._m(11),a("div",{staticClass:"flex_member flex_column printme"},[a("div",{staticClass:"flex_member printme"},[e._v(e._s(e.selectedQueue["display_name"]))]),a("div",{staticClass:"flex_member flex_row printme"},[a("div",{staticClass:"flex_member printme"},[e._v(e._s(e.selectedQueue["name"]))]),+e.selectedQueue["cost"]>0?[a("div",{staticClass:"flex_member subtext printme"},[e._v("Cost: $"+e._s(e.selectedQueue["cost"])+" per page")])]:e._e()],2)])])]:[e._m(10)]],2),a("div",{staticClass:"modal_footer"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("div",{staticClass:"button",on:{click:function(t){return e.closeOpenModal(!1)}}},[e._v("Close")])]),a("div",{staticClass:"flex_member end"},[a("div",{staticClass:"button button_blue",on:{click:function(t){return e.closeOpenModal(!0)}}},[a("i",{staticClass:"fas fa-print mr-2"}),e._v("Print Label")])])])])]):e._e()])},St=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",{staticClass:"pad-8"},[a("p",[e._v("If you have a Brother label printer installed on your Mac with an appropriate print driver, you should be able to print labels directly from your browser! All you need to do first is create a new paper size to use for MPrint printer labels. Please follow the steps below!")]),a("ol",{staticClass:"list"},[a("li",[e._v("Open the System Print Dialog, by hitting Option + Command + p at the same time")]),a("li",[e._v('Expand the "Paper Size" dropdown menu and select "Manage Custom Sizes..."')]),a("li",[e._v('Hit the "+" button in the bottom left to add a new custom size')]),a("li",[e._v('Set the Width to "6.5 in", Height to ".94 in", and all margins to 0')]),a("li",[e._v('Double-click the name "Untitled" and change it to something more logical, such as "Queue Labels", then hit "OK"')]),a("li",[e._v("Cancel out of the System Print Dialog")]),a("li",[e._v('Search for the printer for which you need a label, click on its "Preview Label" button, verify the preview looks good and click "Print Label"')]),a("li",[e._v('Expand the "More Settings" section')]),a("li",[e._v('Set "Layout" to "Landscape"')]),a("li",[e._v('Set "Paper Size" to "Queue Labels" (the custom size you created)')]),a("li",[e._v('Set "Margins" to "Minimum"')]),a("li",[e._v('Set "Scale" to "Custom", then choose a value that maximizes the label size without cutting anything off (pay close attention to the QR Code) - Should be around 75-80')]),a("li",[e._v("Hit Print!")])]),a("p",[e._v("Future attempts to print labels should not require creating a custom paper size, so you can start at step 7 from now on.")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("li",[e._v("Install the Brother P-Touch Editor app from the "),a("a",{attrs:{href:"https://apps.apple.com/us/app/brother-p-touch-editor/id1453365242"}},[e._v("Apple App store")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("li",[a("span",[e._v("You should now see the data for the printers you've chosen in the bottom of the app. Drag and drop the column headers to their corresponding Template sections:")]),a("ul",[a("li",[e._v("display_name → MPrint Template: display_name")]),a("li",[e._v("queue_name → MPrint Template: queue_name")]),a("li",[e._v("url → QR Code")]),a("li",[e._v("cost → Sites page cost template")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("li",[e._v("After you've updated all applicable fields ("),a("b",[e._v("make sure you've updated the QR Code!")]),e._v("), hit Print!")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",{staticClass:"pad-8"},[a("p",[e._v("If you have a Brother label printer installed on your PC with an appropriate print driver, you should be able to print labels directly from your browser! All you need to do first is create a new paper size to use for MPrint printer labels and set it as the printer's default. Please follow the steps below!")]),a("ol",{staticClass:"list"},[a("li",[e._v("Open Printers & Scanners")]),a("li",[e._v('Click on the label printer. If you are using Windows 10, hit "Manage", followed by "Printer properties". If you are using Windows 11, simply select "Printer properties"')]),a("li",[e._v('In the "General" pane, hit the "Preferences" button to open the Brother printer management screen')]),a("li",[e._v('Select the "Advanced" tab, then hit the "Settings" button next to "Label Format"')]),a("li",[e._v("Provide admin credentials, if prompted")]),a("li",[e._v('Create a new format with a length of 6.5 inches and save it with a descriptive name like "Queue Labels"')]),a("li",[e._v('Hit "Exit", then on the "Basic" tab, select the format you just created (e.g. "Queue Labels") in the "Paper Size" dropdown')]),a("li",[e._v('Change the "Quality" to "High Resolution", then hit "Apply" and "OK", and return to the MPrint Labels web page (this page).')]),a("li",[e._v('Search for the printer for which you need a label, click on its "Preview Label" button, verify the preview looks good and click "Print Label"')]),a("li",[e._v('Expand the "More Settings" section')]),a("li",[e._v('Set "Layout" to "Landscape"')]),a("li",[e._v('Set "Margins" to "Minimum"')]),a("li",[e._v('Set "Scale" to "Custom", then choose a value that maximizes the label size without cutting anything off (pay close attention to the QR Code) - Should be around 75-80')]),a("li",[e._v("Hit Print!")])]),a("p",[e._v("Future attempts to print labels should not require creating a custom paper size, so you can start at step 9 from now on.")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("li",[e._v("Use the "),a("a",{attrs:{href:"https://support.brother.com/g/b/productsearch.aspx?c=us&lang=en&content=dl",target:"_blank"}},[e._v("Brother Support & Downloads site")]),e._v(" to download the Brother P-Touch Editor application, and install it")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("li",[a("span",[e._v("You should now see the data for the printers you've chosen in the bottom of the app. Drag and drop the column headers to their corresponding Template sections:")]),a("ul",[a("li",[e._v("display_name → MPrint Template: display_name")]),a("li",[e._v("queue_name → MPrint Template: queue_name")]),a("li",[e._v("url → QR Code")]),a("li",[e._v("cost → Sites page cost template")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("li",[e._v("After you've updated all applicable fields ("),a("b",[e._v("make sure you've updated the QR Code!")]),e._v("), hit Print!")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"medium_text full_width center"},[e._v("Loading queues... "),n("img",{attrs:{src:a("d9b6"),alt:"loading queues"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"pad-8-0 bold"},[e._v("Selected")]),a("td",{staticClass:"pad-8-0 bold"},[e._v("Display Name")]),a("td",{staticClass:"pad-8-0 bold"},[e._v("Queue Name")]),a("td",{staticClass:"pad-8-0 bold"},[e._v("Enrolled Service")]),a("td",{staticClass:"pad-8-0 bold"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"medium_text"},[e._v("Loading queues... "),n("img",{attrs:{src:a("d9b6"),alt:"loading queues"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"qr_code flex_member printme"},[a("div",{staticClass:"float_left printme",attrs:{id:"preview_qrcode"}}),a("div",{staticClass:"rotate_90 float_left printme"},[e._v("MPrint")]),a("div",{staticClass:"clearfix printme"})])}],Lt=a("b755"),Ot=a.n(Lt),Rt={name:"labels",data:function(){return{enableMask:!1,expanded:[],filterJoinWith:"and",internalPublicPath:"/",msg:[],popFilter:!1,publicPath:window.location.origin,queueData:{isError:!1,isLoaded:!1,queues:[]},quickSearch:[],selectedQRCode:null,selectedQueue:null,selectedQueues:[],userAgent:null,visibleQueues:[]}},props:{user:{type:Object,default:function(){return this.$store.getters.getUser}}},methods:{closeOpenModal:function(e){e&&(this.setCSS(),window.print(),this.resetCSS()),this.enableMask=!1,this.selectedQueue=null},downloadQueueData:function(){var e=document.createElement("a");e.id="csv_download_link",e.download="mprint_labels.csv";var t=new Blob(["display_name,queue_name,url,cost\r\n"].concat(this.selectedQueues.map((function(e){return"".concat(e["display_name"],",").concat(e["name"],",https://mprint.umich.edu/qr/queue/").concat(e["name"],",").concat(+e["cost"]>0?"Cost per page: $".concat(e["cost"]):"","\r\n,,,\r\n")}))),{type:"text/csv"});e.href=URL.createObjectURL(t),document.getElementById("content").appendChild(e),document.getElementById("csv_download_link").click(),document.getElementById("content").removeChild(e)},filterQueues:function(){var e=this;this._msgManager("Filtering queues...",1500),"and"!==this.filterJoinWith&&this.quickSearch&&this.quickSearch.length?"or"===this.filterJoinWith&&(this.visibleQueues=[]):this.visibleQueues=this.queueData.queues;var t,a=Object(i["a"])(this.quickSearch);try{var n=function(){var a=t.value;"and"===e.filterJoinWith?e.visibleQueues=e.visibleQueues.filter((function(e){return JSON.stringify(Object.values(e)).toLowerCase().indexOf(a.toLowerCase())>-1})):e.visibleQueues=e.visibleQueues.concat(e.queueData.queues.filter((function(e){return JSON.stringify(Object.values(e)).toLowerCase().indexOf(a.toLowerCase())>-1})))};for(a.s();!(t=a.n()).done;)n()}catch(s){a.e(s)}finally{a.f()}},getQueues:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,p.methods.get("api/queues?basic=1");case 3:a=t.sent.data.result,+a.count?(e.queueData.queues=a.result,e.visibleQueues=a.result,e.$route.params["queueName"]&&(e.quickSearch.push(e.$route.params["queueName"]),e.filterQueues())):(e.queueData.isError=!0,console.log(a),e._msgManager("Failed to return queue list! Please refresh and try again.")),t.next=11;break;case 7:t.prev=7,t.t0=t["catch"](0),e._msgManager("An error occurred! ".concat(t.t0)),e.queueData.isError=!0;case 11:return t.prev=11,e.queueData.isLoaded=!0,t.finish(11);case 14:case"end":return t.stop()}}),t,null,[[0,7,11,14]])})))()},previewLabel:function(e){var t=this;this.enableMask=!0,this.selectedQueue=e;var a=Ot.a.qrCode.getErrorLevels();this.$nextTick((function(){t.selectedQRCode=Ot.a.qrCode.generateCode(document.getElementById("preview_qrcode"),{text:"https://mprint.umich.edu/qr/queue/".concat(e["name"]),width:80,height:80,colorDark:"#000000",colorLight:"#FFFF00",correctLevel:a.Q})}))},resetCSS:function(){document.getElementById("header").classList.remove("hidden"),document.getElementById("sidebar").classList.remove("hidden"),document.getElementsByTagName("body")[0].classList.remove("print_ready")},scrollListener:function(){this.popFilter=window.scrollY>100},setCSS:function(){document.getElementById("header").classList.add("hidden"),document.getElementById("sidebar").classList.add("hidden"),document.getElementsByTagName("body")[0].classList.add("print_ready")},toggleQueue:function(e){var t=this.selectedQueues.filter((function(t){return t.name===e.name}));t.length?this.selectedQueues=this.selectedQueues.filter((function(t){return t.name!==e.name})):this.selectedQueues.push(e)},toggleRow:function(e){this.expanded.includes(e)?this.expanded=this.expanded.filter((function(t){return t!==e})):this.expanded.push(e)},_msgManager:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4e3;this.msg.push(e);var a=this;window.setTimeout((function(){a.msg=a.msg.slice(1,a.msg.length)}),t)}},created:function(){var e=navigator.userAgent.toLowerCase();e=e.indexOf("os x")>-1&&-1===e.indexOf("ipad")&&-1===e.indexOf("iphone")?"apple":e.indexOf("windows")>-1?"windows":e.indexOf("linux")>-1&&-1===e.indexOf("android")?"linux":"mobile",this.userAgent=e},mounted:function(){this.user.uniqname&&this.getQueues(),window.addEventListener("scroll",this.scrollListener),window.addEventListener("onafterprint",this.resetCSS)},watch:{user:function(){this.getQueues()}},destroyed:function(){window.removeEventListener("scroll",this.scrollListener)}},Tt=Rt,Nt=(a("38ae"),Object(f["a"])(Tt,Mt,St,!1,null,"7e18e250",null)),Ft=Nt.exports,It=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper"},[a("div",{attrs:{id:"content"}},[e._m(0),a("div",{staticClass:"full_box center large_text"},[e._v("You are logging out of MPrint. To complete the log out process, please fully close out of your browser. "),a("a",{attrs:{href:""+e.publicPath}},[e._v("Click here")]),e._v(" to start a new MPrint session.")])])])},Qt=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"box full_box"},[a("h1",[e._v("Logout Confirmation")])])}],Ut={name:"loggedOut",data:function(){return{publicPath:window.location.origin}}},$t=Ut,Jt=Object(f["a"])($t,It,Qt,!1,null,null,null),Bt=Jt.exports,Wt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.msg.length,expression:"msg.length"}],attrs:{id:"message_container"}},[e._l(e.msg,(function(t,n){return[a("div",{key:"message_"+n,staticClass:"message",attrs:{id:"message_"+n},domProps:{innerHTML:e._s(t)}})]}))],2),a("div",{attrs:{id:"content",role:"main"}},[a("div",{staticClass:"flex_row"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.popFilter,expression:"popFilter"}],staticClass:"box full_box",attrs:{id:"empty_filter_box"}}),a("div",{staticClass:"box full_box",class:e.popFilter?"popped_out":"",attrs:{id:"filter_container"}},[a("div",{staticClass:"flex_row"},[e._m(0),a("div",{staticClass:"flex_member end"},[a("div",[a("label",{attrs:{for:"filter_quick_search"}},[e._v("Quick Search:")]),a("v-select",{attrs:{id:"filter_quick_search",taggable:"",multiple:"",options:[],"dropdown-should-open":function(){return!1}},on:{input:function(t){return e.filterLogs(!1)}},model:{value:e.quick_search,callback:function(t){e.quick_search=t},expression:"quick_search"}})],1),a("div",{staticClass:"pad-8-0"},[a("label",{attrs:{for:"filter_date"}},[e._v("Filter by Date:")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.filterDate,expression:"filterDate"}],staticClass:"ml-2",attrs:{type:"date",id:"filter_date"},domProps:{value:e.filterDate},on:{change:function(t){return e.filterLogs(!1)},input:function(t){t.target.composing||(e.filterDate=t.target.value)}}}),a("a",{staticClass:"pad-8",attrs:{href:""},on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.filterLogs(!0)}}},[e._v("Clear")])]),a("div",{staticClass:"pl-2"},[e._v("Join filters with: "),a("label",{attrs:{for:"join_and"}},[e._v("And")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.filterJoinWith,expression:"filterJoinWith",modifiers:{lazy:!0}}],attrs:{type:"radio",id:"join_and",name:"filter_join_with",value:"and",checked:"checked"},domProps:{checked:e._q(e.filterJoinWith,"and")},on:{change:[function(t){e.filterJoinWith="and"},function(t){return e.filterLogs(!1)}]}}),e._v(" or "),a("label",{attrs:{for:"join_or"}},[e._v("Or")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.filterJoinWith,expression:"filterJoinWith",modifiers:{lazy:!0}}],attrs:{type:"radio",id:"join_or",name:"filter_join_with",value:"or"},domProps:{checked:e._q(e.filterJoinWith,"or")},on:{change:[function(t){e.filterJoinWith="or"},function(t){return e.filterLogs(!1)}]}})])])])])]),a("div",{staticClass:"box full_box"},[a("h2",[e._v("Logs By Source")]),a("table",{staticClass:"full_width"},[e.logs.isLoaded&&!e.logs.isError?[e._l(Object.keys(e.visibleLogs),(function(t,n){return[a("tr",{key:"source_"+n,staticClass:"log_title",class:e.expanded.includes(t)?"expanded":"",attrs:{id:"source_"+n},on:{click:function(a){return e.toggleRow(t)}}},[a("td",{staticClass:"center pad-8-0"},[e._v(e._s(t)),a("i",{staticClass:"ml-2 fas",class:e.expanded.includes(t)?"fa-caret-down":"fa-caret-right"})])]),a("tr",{key:"source_content_"+n,staticClass:"log_content",class:e.expanded.includes(t)?"shown":"",attrs:{id:"source_content_"+n}},[a("td",{staticClass:"pad-8"},[a("table",{staticClass:"full_width"},[e._m(1,!0),e._l(e.visibleLogs[t],(function(n,s){return[a("tr",{key:"log_"+t+"_"+s,staticClass:"log_row",class:["warning","error"].includes(n.level)?n.level:s%2===0?"even_row":"",attrs:{id:"log_"+t+"_"+s}},[a("td",{staticClass:"pad-8"},[e._v(e._s(e._formatDate(n.timestamp,!0)))]),a("td",{staticClass:"pad-8"},[e._v(e._s(n.level))]),a("td",{staticClass:"pad-8"},[e._v(e._s(n.message))])])]}))],2)])])]}))]:e.logs.isLoaded?[a("tr",[a("td",[a("div",[e._v("An error occurred! "+e._s(e.logs.error))])])])]:[e._m(2)]],2)])])])},Ht=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_member"},[a("h1",[e._v("MPrint - Log Explorer")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"bold pad-8"},[e._v("Date/Time")]),a("td",{staticClass:"bold pad-8"},[e._v("Log Level")]),a("td",{staticClass:"bold pad-8"},[e._v("Log Message")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",[a("div",[e._v("Loading logs...")])])])}],zt={name:"logs",data:function(){return{filterDate:null,filterJoinWith:"and",logs:{error:null,isError:!1,isLoaded:!1,logs:{}},expanded:[],msg:[],popFilter:!1,quick_search:[],visibleLogs:{}}},methods:{filterLogs:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._msgManager("Filtering logs..."),t&&null!==this.filterDate&&(this.quick_search=this.quick_search.filter((function(t){return t!==e.filterDate})),this.filterDate=null),"and"!==this.filterJoinWith&&(this.quick_search&&this.quick_search.length||this.filterDate)||Object.keys(this.logs.logs).map((function(t){return e.visibleLogs[t]=e.logs.logs[t]})),null===this.filterDate||this.quick_search.includes(this.filterDate)||this.quick_search.push(this.filterDate),"and"===this.filterJoinWith){var a,n=Object(i["a"])(this.quick_search);try{var s=function(){var t=a.value;Object.keys(e.visibleLogs).map((function(a){return e.visibleLogs[a]=e.visibleLogs[a].filter((function(e){return JSON.stringify(Object.values(e)).toLowerCase().indexOf(t.toLowerCase())>-1}))}))};for(n.s();!(a=n.n()).done;)s()}catch(p){n.e(p)}finally{n.f()}}else if(this.quick_search.length)for(var r=0,o=Object.keys(this.logs.logs);r<o.length;r++){var c=o[r];this.visibleLogs[c]=[];var l,u=Object(i["a"])(this.quick_search);try{var d=function(){var t=l.value;e.visibleLogs[c]=e.visibleLogs[c].concat(e.logs.logs[c].filter((function(e){return JSON.stringify(Object.values(e)).toLowerCase().indexOf(t.toLowerCase())>-1})))};for(u.s();!(l=u.n()).done;)d()}catch(p){u.e(p)}finally{u.f()}this.visibleLogs[c].sort((function(e,t){return e.timestamp<t.timestamp?-1:1}))}},getLogs:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,p.methods.get("api/logs");case 3:a=t.sent,+a.data.result.count?(n=e,a.data.result.result.map((function(e){return Object.keys(n.logs.logs).includes(e.source)?n.logs.logs[e.source].push(e):n.logs.logs[e.source]=[e]}))):(e.logs.isError=!0,e.logs.error=a.data.result.status_message),t.next=11;break;case 7:t.prev=7,t.t0=t["catch"](0),e.logs.isError=!0,e.logs.error=t.t0;case 11:return t.prev=11,e.logs.isLoaded=!0,e.filterLogs(!0),t.finish(11);case 15:case"end":return t.stop()}}),t,null,[[0,7,11,15]])})))()},scrollListener:function(){this.popFilter=window.scrollY>100},toggleRow:function(e){this.expanded.includes(e)?this.expanded=this.expanded.filter((function(t){return t!==e})):this.expanded.push(e)},_formatDate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date(Date.now()),t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=e.toLocaleString("en-US",{timeZone:"America/Detroit"});a.indexOf("Z")>-1&&(a=a.split(".")[0]),e=new Date(a);var n=(""+(1+e.getMonth())).padStart(2,"0")+"/"+(""+e.getDate()).padStart(2,"0")+"/"+e.getFullYear();return t&&(n+=" "+(""+e.getHours()).padStart(2,"0")+":"+(""+e.getMinutes()).padStart(2,"0")+":"+(""+e.getSeconds()).padStart(2,"0")),n},_msgManager:function(e){this.msg.push(e);var t=this;window.setTimeout((function(){t.msg=t.msg.slice(1,t.msg.length)}),4e3)}},mounted:function(){this.getLogs(),window.addEventListener("scroll",this.scrollListener)},destroyed:function(){window.removeEventListener("scroll",this.scrollListener)}},Gt=zt,Yt=(a("5f1a"),Object(f["a"])(Gt,Wt,Ht,!1,null,"f2f77a62",null)),Vt=Yt.exports,Kt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.msg,expression:"msg"}],attrs:{id:"message_container"}},[a("div",{staticClass:"message",attrs:{id:"message"}},[e._v(e._s(e.msg))])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.enableMask,expression:"enableMask"}],staticClass:"mask dim",attrs:{id:"mask"},on:{click:function(t){return e.closeOpenModal(null)}}}),a("div",{attrs:{id:"content",role:"main"}},[a("div",{staticClass:"flex_row"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.popFilter,expression:"popFilter"}],staticClass:"box full_box",attrs:{id:"empty_filter_box"}}),a("div",{staticClass:"box full_box",class:e.popFilter?"popped_out":"",attrs:{id:"filter_container"}},[a("div",{staticClass:"flex_row"},[e._m(0),a("div",{staticClass:"flex_member end"},[a("label",{attrs:{for:"filter_quick_search"}},[e._v("Quick Search:")]),a("v-select",{attrs:{id:"filter_quick_search",taggable:"",multiple:"",options:[],"dropdown-should-open":function(){return!1}},on:{input:function(t){return e.filterBuildings()}},model:{value:e.quickSearch,callback:function(t){e.quickSearch=t},expression:"quickSearch"}})],1)]),e.buildingData.isLoaded?a("div",{staticClass:"flex_row center"},[a("div",{staticClass:"flex_member"},[a("p",[e._v("Showing "+e._s(e.visibleBuildings.length)+" "+e._s(1===e.visibleBuildings?"building":"buildings"))])])]):e._e()])]),e._m(1),a("div",{staticClass:"flex_row space_around"},[e.buildingData.isLoaded?e.buildingData.isLoaded&&e.buildingData.isError?[a("div",{staticClass:"medium_text center full_width"},[e._v("An error has occurred! Please refresh the page to try again.")])]:e.buildingData.isLoaded&&!e.buildingData.isError&&e.visibleBuildings.length?[e._l(e.visibleBuildings,(function(t,n){return[a("div",{key:"building_"+n,staticClass:"box building_box",class:e.selectedBuilding&&e.selectedBuilding.abbreviation===t.abbreviation?"expanded":"",attrs:{id:t.abbreviation+"_box"},on:{click:function(t){return e.expandBox(n)}}},[t.common_name?a("div",{staticClass:"float_left bold medium_text"},[e._v(e._s(t.common_name))]):a("div",{staticClass:"bold medium_text float_left"},[e._v(e._s(t.name))]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.selectedBuilding&&e.selectedBuilding.abbreviation===t.abbreviation,expression:"selectedBuilding && selectedBuilding.abbreviation === building.abbreviation"}],staticClass:"minimize_container float_right"},[a("i",{staticClass:"fas fa-window-minimize minimize",attrs:{title:"Collapse"},on:{click:function(t){return t.stopPropagation(),e.collapse()}}})]),a("div",{staticClass:"clearfix"}),a("div",[a("b",[e._v("Abbreviation: ")]),e._v(e._s(t.abbreviation))]),a("div",[a("b",[e._v("Address: ")]),e._v(e._s(t.address))]),e.selectedBuilding&&e.selectedBuilding.abbreviation===t.abbreviation?a("div",{staticClass:"map_container"},[a("div",{staticClass:"flex_row map_legend"},[a("div",{staticClass:"flex_member"},[a("label",{attrs:{for:"floor_selector_"+n}},[e._v("View Floor:")]),a("v-select",{attrs:{id:"floor_selector_"+n,options:Object.values(e.selectedBuilding.floors),label:"floor_name"},model:{value:e.selectedFloor,callback:function(t){e.selectedFloor=t},expression:"selectedFloor"}})],1),e._m(3,!0),e._m(4,!0),e._m(5,!0),e._m(6,!0),e._m(7,!0)]),a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member queue_list"},[a("div",{staticClass:"flex_column"},[a("div",{staticClass:"flex_member"},[a("h2",[e._v(e._s(e.selectedFloor.floor_name)+" Queues:")])]),e.selectedFloor.queues.length?[e._l(e.selectedFloor.queues,(function(t,n){return[a("div",{key:"queue_"+n,staticClass:"flex_member queue",class:n===e.selectedFloor.queues.length-1?"last_queue":"",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.centerQueue(n)}}},[e._v(e._s(t.display_name))])]}))]:[a("div",[e._v("There are no queues available to you on this floor!")])]],2)]),a("div",{staticClass:"flex_member map_wrapper",attrs:{id:"wrapper_"+e.selectedBuilding.abbreviation+"_"+e.selectedFloor.floor_id+"_map"}},[a("img",{attrs:{src:e.renderImg(),alt:"floorplan",id:e.selectedBuilding.abbreviation+"_"+e.selectedFloor.floor_id+"_map"}}),e.selectedFloor.queues.length?[e._l(e.selectedFloor.queues,(function(t,n){return[a("div",{key:"marker_"+n,staticClass:"marker",class:[e.selectedQueue&&t.name===e.selectedQueue.name?"selected":t.color?"color":"",t.copy?"copy":""],style:"position: absolute; top: "+(t.floor_map_y+38)+"px; left: "+(t.floor_map_x+27)+"px;",attrs:{title:t.display_name},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.centerQueue(n)}}},[a("i",{staticClass:"fas fa-print"}),t.copy?[a("i",{staticClass:"fas fa-copy ml-2"})]:e._e()],2)]}))]:e._e()],2)])]):e._e()])]}))]:[a("div",{staticClass:"medium_text center full_width"},[e._v("No buildings were found!")])]:[e._m(2)]],2)]),e.selectedQueue?a("div",{staticClass:"modal",attrs:{id:"queue_modal"}},[e._m(8),a("div",{staticClass:"modal_content_no_overflow"},[a("div",{staticClass:"medium_text"},[e._v("Selected Queue: "+e._s(e.selectedQueue.display_name))]),a("table",{staticClass:"full_width margin-12"},[a("tbody",[a("tr",[a("td",{staticClass:"bold"},[e._v("Location:")]),a("td",[e._v(e._s(e.selectedQueue.location))])]),a("tr",[a("td",{staticClass:"bold"},[e._v("Model:")]),a("td",[e._v(e._s(e.selectedQueue.manufacturer)+" "+e._s(e.selectedQueue.model_name))])]),a("tr",[a("td",{staticClass:"bold"},[e._v("Enrolled Service:")]),a("td",[e._v(e._s(e.selectedQueue.service_name))])]),+e.selectedQueue.cost>0?a("tr",[a("td",{staticClass:"bold"},[e._v("Cost:")]),a("td",[e._v("$"+e._s(e.selectedQueue.cost)+" per "),e.selectedQueue.name.indexOf("-poster-")>-1?a("span",[e._v("linear inch")]):a("span",[e._v("page")])])]):e._e(),a("tr",[a("td",{staticClass:"bold"},[e._v("Current Status:")]),a("td",{domProps:{innerHTML:e._s(e.selectedQueue.computed_state)}})])])]),a("table",{staticClass:"center full_width"},[a("tbody",[e._m(9),a("tr",[a("td",[e._v(e._s(e.selectedQueue.color?"Yes":"No"))]),a("td",[e._v(e._s(e.selectedQueue.copy?"Yes":"No"))]),a("td",[e._v(e._s(e.selectedQueue.tabloid?"Yes":"No"))]),a("td",[e._v(e._s(e.selectedQueue.name.indexOf("-poster-")>-1?"Yes":"No"))]),a("td",[e._v(e._s(-1===e.selectedQueue.name.indexOf("-poster-")?"Yes":"No"))])])])])]),a("div",{staticClass:"modal_footer"},[a("div",{staticClass:"flex_row"},[e.selectedQueue.installable?a("div",{staticClass:"flex_member"},[a("div",{staticClass:"button button_blue",attrs:{role:"button",tabindex:"0"},on:{click:function(t){return e.closeOpenModal("install")}}},[a("i",{staticClass:"fas fa-cloud-download-alt mr-2"}),e._v("Install Printer")])]):e._e(),a("div",{staticClass:"flex_member end"},[a("div",{staticClass:"button button_blue",attrs:{role:"button",tabindex:"0"},on:{click:function(t){return e.closeOpenModal("print")}}},[a("i",{staticClass:"fas fa-print mr-2"}),e._v("Print To This Device")])])])])]):e._e()])},Zt=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_member"},[a("h1",[e._v("MPrint Maps")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member full_width"},[a("h2",[e._v("Browse Buildings")])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"full_width medium_text center"},[e._v("Loading available buildings... "),n("img",{attrs:{src:a("d9b6"),alt:"loading buildings"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_member flex_column center"},[a("div",{staticClass:"flex_member"},[a("span",[e._v("B & W")])]),a("div",{staticClass:"flex_member"},[a("div",{staticClass:"marker",attrs:{title:"monochrome printer"}},[a("i",{staticClass:"fas fa-print fa-2x"})])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_member flex_column center"},[a("div",{staticClass:"flex_member"},[a("span",[e._v("Color")])]),a("div",{staticClass:"flex_member"},[a("div",{staticClass:"marker color",attrs:{title:"color printer"}},[a("i",{staticClass:"fas fa-print fa-2x"})])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_member flex_column center"},[a("div",{staticClass:"flex_member"},[a("span",[e._v("B & W Multi")])]),a("div",{staticClass:"flex_member"},[a("div",{staticClass:"marker",attrs:{title:"monochrome multifunction"}},[a("i",{staticClass:"fas fa-print fa-2x mr-1"}),a("i",{staticClass:"fas fa-copy fa-2x"})])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_member flex_column center"},[a("div",{staticClass:"flex_member"},[a("span",[e._v("Color Multi")])]),a("div",{staticClass:"flex_member"},[a("div",{staticClass:"marker color",attrs:{title:"color multifunction"}},[a("i",{staticClass:"fas fa-print fa-2x mr-1"}),a("i",{staticClass:"fas fa-copy fa-2x"})])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_member flex_column center"},[a("div",{staticClass:"flex_member"},[a("span",[e._v("Selected Queue")])]),a("div",{staticClass:"flex_member"},[a("div",{staticClass:"marker selected",attrs:{title:"selected printer"}},[a("i",{staticClass:"fas fa-print fa-2x"})])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Printer Info")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"bold"},[e._v("Color")]),a("td",{staticClass:"bold"},[e._v("Copy")]),a("td",{staticClass:"bold"},[e._v("Tabloid")]),a("td",{staticClass:"bold"},[e._v("Poster")]),a("td",{staticClass:"bold"},[e._v("Follow Me")])])}],Xt={name:"maps",data:function(){return{buildingData:{isError:!1,isLoaded:!1,buildings:{}},enableMask:!1,popFilter:!1,publicPath:window.location.origin,quickSearch:[],selectedBuilding:null,selectedFloor:null,selectedQueue:null,visibleBuildings:[]}},props:{user:{type:Object,default:function(){return this.$store.getters.getUser}}},methods:{centerQueue:function(e){this.selectedQueue=this.selectedFloor.queues[e];var t=document.getElementById("wrapper_".concat(this.selectedBuilding.abbreviation,"_").concat(this.selectedFloor.floor_id,"_map"));t.scrollTo(this.selectedQueue.floor_map_x-300,this.selectedQueue.floor_map_y-300),t.scrollIntoView({block:"center"}),this.enableMask=!0},closeOpenModal:function(e){switch(e){case"install":window.location.href="".concat(this.publicPath,"/install#queue=").concat(this.selectedQueue.name);break;case"print":window.location.href="".concat(this.publicPath,"#queue=").concat(this.selectedQueue.name);break;default:break}this.enableMask=!1,this.selectedQueue=null},collapse:function(){this.selectedBuilding=null,this.selectedFloor={floor_id:null,floor_name:null,map_img:null,queues:[]},this.selectedQueue=null},expandBox:function(e){this.selectedBuilding=this.visibleBuildings[e],Object.keys(this.selectedBuilding.floors).length?this.selectedFloor=Object.values(this.selectedBuilding.floors)[0]:this.selectedFloor={floor_id:null,floor_name:null,map_img:null,queues:[]}},filterBuildings:function(){var e=this;if(this.msg="Filtering...",this.visibleBuildings=Object.values(this.buildingData.buildings),this.quickSearch.length){var t,a=Object(i["a"])(this.quickSearch);try{var n=function(){var a=t.value;e.visibleBuildings=e.visibleBuildings.filter((function(e){return JSON.stringify(e).toLowerCase().indexOf(a.toLowerCase())>-1}))};for(a.s();!(t=a.n()).done;)n()}catch(s){a.e(s)}finally{a.f()}}this.msg=""},getBuildings:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,a.msg="Loading buildings...",p.methods.get("api/queues").then((function(e){if(+e.data.result.count){var t,n=e.data.result.result.filter((function(e){return-1===e.name.indexOf("-follow-me")&&-1===e.name.indexOf("-fax-")&&!e.display_name.startsWith("Printer")})),s={},r=Object(i["a"])(n);try{for(r.s();!(t=r.n()).done;){var o=t.value,c=o.name.split("-")[1];Object.keys(s).includes(c)||(s[c]={abbreviation:c,name:o.building_name,address:o.building_address,lat:o.building_lat,lng:o.building_lng,floors:{}}),Object.keys(s[c].floors).includes(o.floor_name)||(s[c].floors[o.floor_name]={floor_id:o.floor_id,floor_name:o.floor_name,map_img:o.floor_map.split("/").pop(),queues:[]});var l="<div>Queue is <span class='status_ok'>OK</span></div>";if(o.sub_queues)if(+o.enabled){var u=0;o.sub_queues.forEach((function(e){!+e.enabled||"ok"!==e.state.toLowerCase()&&"warning"!==e.state.toLowerCase()||(u+=1)})),l="<div>Queue is <span class='status_ok'>enabled</span> with ".concat(u," currently available printer(s)</div>")}else l="<div>Queue is <span class='status_disabled'>disabled</span></div>";else if("ok"!==o.state.toLowerCase()){var d=o.state.toLowerCase();l="<div>Queue is in ".concat("error"===d?"an":"a",' <span class="status_').concat(d,'">').concat(d,"</span> state").concat(o.state_reasons&&o.state_reasons.length?": "+o.state_reasons:"","</div>")}s[c].floors[o.floor_name].queues.push({color:+o.color,computed_state:l,copy:+o.copy,cost:+o.cost,display_name:o.display_name,floor_map_x:o.floor_map_x,floor_map_y:o.floor_map_y,installable:"CCS"!==o.service_abbreviation,location:o.location,manufacturer:o.manufacturer,model_name:o.model_name,name:o.name,service_name:o.service_name,tabloid:+o.tabloid})}}catch(p){r.e(p)}finally{r.f()}Object.keys(s).length?(a.$set(a.buildingData,"buildings",s),a.msg="",a.visibleBuildings=Object.values(s),a.$route.params["abbreviation"]&&(a.selectedBuilding=s[a.$route.params["abbreviation"]],Object.keys(a.selectedBuilding.floors).length?a.selectedFloor=Object.values(a.selectedBuilding.floors)[0]:a.selectedFloor={floor_id:null,floor_name:null,map_img:null,queues:[]})):a.buildingData.isError=!0}else a.buildingData.isError=!0})).catch((function(e){a.buildingData.isError=!0,a.msg="An error occurred while aggregating building info. Please refresh and try again.",window.setTimeout((function(){a.msg=""}),4e3),console.log("An error occurred while populating building data! ".concat(e))})).finally((function(){a.buildingData.isLoaded=!0}));case 3:case"end":return t.stop()}}),t)})))()},renderImg:function(){if(this.selectedFloor.map_img)try{return a("d752")("./".concat(this.selectedBuilding.abbreviation,"/").concat(this.selectedFloor.map_img))}catch(Qe){console.log("no map available!")}return a("e70c")},scrollListener:function(){this.popFilter=window.scrollY>100}},created:function(){this.user.uniqname&&this.getBuildings(),window.addEventListener("scroll",this.scrollListener)},watch:{user:function(){this.getBuildings()}},destroyed:function(){window.removeEventListener("scroll",this.scrollListener)}},ea=Xt,ta=(a("bdef"),a("39b6"),Object(f["a"])(ea,Kt,Zt,!1,null,"4fdb8613",null)),aa=ta.exports,na=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper"},[a("div",{attrs:{id:"content",role:"main"}},[e._m(0),a("div",{staticClass:"box full_box"},[a("table",{staticClass:"full_width"},[a("tr",{staticClass:"help_title",class:e.expanded.includes("legal")?"expanded":"",on:{click:function(t){return e.toggleRow("legal")}}},[a("td",{staticClass:"center pad-8-0"},[e._v("Legal Disclaimer"),a("i",{staticClass:"ml-2 fas",class:e.expanded.includes("legal")?"fa-caret-down":"fa-caret-right"})])]),a("tr",{staticClass:"help_content",class:e.expanded.includes("legal")?"shown":""},[e._m(1)]),a("tr",{staticClass:"help_title even_row",class:e.expanded.includes("app_privacy")?"expanded":"",on:{click:function(t){return e.toggleRow("app_privacy")}}},[a("td",{staticClass:"center pad-8-0"},[e._v("Mobile App Privacy Policy"),a("i",{staticClass:"ml-2 fas",class:e.expanded.includes("app_privacy")?"fa-caret-down":"fa-caret-right"})])]),a("tr",{staticClass:"help_content even_row",class:e.expanded.includes("app_privacy")?"shown":""},[e._m(2)]),a("tr",{staticClass:"help_title",class:e.expanded.includes("web_privacy")?"expanded":"",on:{click:function(t){return e.toggleRow("web_privacy")}}},[a("td",{staticClass:"center pad-8-0"},[e._v("Web App Privacy Policy"),a("i",{staticClass:"ml-2 fas",class:e.expanded.includes("web_privacy")?"fa-caret-down":"fa-caret-right"})])]),a("tr",{staticClass:"help_content",class:e.expanded.includes("web_privacy")?"shown":""},[e._m(3)])])])])])},sa=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"box full_box"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("h1",[e._v("MPrint Policies and Disclaimers")])])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",{staticClass:"pad-8"},[a("h2",[e._v("MPrint Mobile App Legal Disclaimer")]),a("p",[e._v('THE SOFTWARE DESIGNER AND PROVIDER, INCLUDING ANY COLLABORATING INSTITUTION(S), INCLUDING THE UNIVERSITY OF MICHIGAN, SHALL HAVE NO LIABILITY TO ANY PATIENT OR ANY OTHER PERSON. NO SUCH PERSON OR ENTITY ASSUMES ANY LEGAL LIABILITY OR RESPONSIBILITY FOR THE ACCURACY, COMPLETENESS, SUITABILITY OR USEFULNESS OF MPRINT OR RELATED INFORMATION. ANY AND ALL LIABILITY ARISING DIRECTLY OR INDIRECTLY FROM THE USE OF THIS APPLICATION IS HEREBY DISCLAIMED. THE INFORMATION HEREIN IS PROVIDED "AS IS" AND WITHOUT ANY WARRANTY EXPRESSED OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.')])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",{staticClass:"pad-8"},[a("h2",[e._v("MPrint Mobile App Privacy Policy")]),a("p",[e._v("This privacy policy governs your use of the MPrint software application (“Application”) on a mobile device that was created by The University of Michigan. The Application includes the ability to release print jobs to nearby printers."),a("br"),a("br"),a("b",[e._v("What information does the Application obtain and how is it used?")]),a("br"),e._v("The Application obtains some usage data, generated by the Application, that we use to understand how the Application is being used. This data does not contain any personally identifying data, but simply reports things such as a successful authentication, the number of pending jobs retrieved, or mode of printer discovery (Bluetooth vs. QR Code). The Application does obtain (where it can) a unique device ID and a unique API Key, that are both used for authentication. The MPrint system will affiliate your uniqname with the device ID, to show you your list of pending print jobs."),a("br"),a("br"),a("i",[e._v("User Provided Information")]),e._v(" – The Application obtains some information you provide when you download and register the Application. Registration is mandatory in order to be able to use the basic features of the Application. When you register with us and use the Application, you will provide your uniqname and UM password to log in to a secure, MPrint web page. Please note, neither the Application, nor the webpage, will retain your password in any form. Your uniqname will be saved along with a generated Device ID to enable the Application to show you information relevant to you."),a("br"),a("br"),a("i",[e._v("Automatically Collected Information")]),e._v(" - In addition, the Application may collect certain information automatically, such as the type of mobile device you use, your mobile device’s unique device ID, your mobile operating system, and information about the way you use the Application. This information will be sent back to us to analyze and better understand how the Application is used."),a("br"),a("br"),a("b",[e._v("Does the Application collect precise real time location information of the device?")]),a("br"),e._v("This Application does not collect precise information about the location of your mobile device."),a("br"),a("br"),a("b",[e._v("Do third parties see and/or have access to information obtained by the Application?")]),a("br"),e._v("Information obtained by the Application is not shared with any third parties."),a("br"),a("br"),a("b",[e._v("Opt-out of all information collection by uninstalling the Application")]),a("br"),e._v("You can stop all collection of information by the Application easily by uninstalling the Application. You may use the standard uninstall processes as may be available as part of your mobile device or via the mobile application marketplace or network."),a("br"),a("br"),a("b",[e._v("Data Retention Policy, Managing Your Information")]),a("br"),e._v("We will retain User Provided data for as long as you use the Application and for a reasonable time thereafter. If you’d like us to delete User Provided Data that you have provided via the Application, please contact us at mprint@umich.edu and we will respond in a reasonable time. Please note that some or all of the User Provided Data may be required in order for the Application to function properly, and we may be required to retain certain information by law."),a("br"),a("br"),a("b",[e._v("Children")]),a("br"),e._v("We do not use the Application to knowingly solicit data from or market to children under the age of 13. If a parent or guardian becomes aware that his or her child has provided us with information without their consent, he or she should contact us at mprint@umich.edu. We will delete such information from our files within a reasonable time."),a("br"),a("br"),a("b",[e._v("Security")]),a("br"),e._v("We are concerned about safeguarding the confidentiality of your information. We provide physical, electronic, and procedural safeguards to protect information we process and maintain. For example, we limit access to this information to authorized employees and contractors who need to know that information in order to operate, develop or improve our Application. Please be aware that, although we endeavor to provide reasonable security for information we process and maintain, no security system can prevent all potential security breaches."),a("br"),a("br"),a("b",[e._v("Changes")]),a("br"),e._v("This Privacy Policy may be updated from time to time for any reason. We will notify you of any changes to our Privacy Policy by posting the new Privacy Policy "),a("a",{attrs:{href:"http://mprint.umich.edu/app/privacy"}},[e._v("here")]),e._v(". You are advised to consult this Privacy Policy regularly for any changes."),a("br"),a("br"),a("b",[e._v("Your Consent")]),a("br"),e._v('By using the Services, you are consenting to our processing of User Provided and Automatically Collected information as set forth in this Privacy Policy now and as amended by us. "Processing,” means using cookies on a computer/hand held device or using or touching information in any way, including, but not limited to, collecting, storing, deleting, using, combining and disclosing information, all of which activities will take place in the United States. If you reside outside the U.S. your information will be transferred to the U.S., and processed and stored there under U.S. privacy standards. By using the Application and providing information to us, you consent to such transfer to, and processing in, the US.'),a("br"),a("br"),a("b",[e._v("Contact us")]),a("br"),e._v("If you have any questions regarding privacy while using the Application, or have questions about our practices, please contact us via email at "),a("a",{attrs:{href:"mailto:mprint@umich.edu"}},[e._v("mprint@umich.edu")]),e._v(".")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",{staticClass:"pad-8"},[a("h2",[e._v("MPrint Web App Privacy Policy")]),a("p",[e._v("This privacy policy governs your use of the MPrint web application (“Application”) that was created by The University of Michigan. The Application includes the ability to print documents from your computer or from an approved cloud storage service to printers on the University of Michigan campus."),a("br"),a("br"),a("b",[e._v("What information does the Application obtain and how is it used?")]),a("br"),e._v("The Application only obtains data that is necessary for the function of the Application, such as your uniqname, the name of the document(s) you are printing, and the name of the printer you are using. The actual contents of the documents you print are not retained any longer than is functionally necessary for your print job to process. The contents of your documents are not scanned, scraped, or otherwise reviewed."),a("br"),a("br"),a("b",[e._v("Do third parties see and/or have access to information obtained by the Application?")]),a("br"),e._v("Information obtained by the Application is not shared with any third parties."),a("br"),a("br"),a("b",[e._v("Data Retention Policy, Managing Your Information")]),a("br"),e._v("We will retain collected data for as long as you use the Application and for a reasonable time thereafter. If you’d like us to delete User Provided Data that you have provided via the Application, please contact us at mprint@umich.edu and we will respond in a reasonable time. Please note that some or all of the collected data may be required in order for the Application to function properly, and we may be required to retain certain information by law."),a("br"),a("br"),a("b",[e._v("Security")]),a("br"),e._v("We are concerned about safeguarding the confidentiality of your information. We provide physical, electronic, and procedural safeguards to protect information we process and maintain. For example, we limit access to this information to authorized employees and contractors who need to know that information in order to operate, develop or improve our Application. Please be aware that, although we endeavor to provide reasonable security for information we process and maintain, no security system can prevent all potential security breaches."),a("br"),a("br"),a("b",[e._v("Changes")]),a("br"),e._v("This Privacy Policy may be updated from time to time for any reason. We will notify you of any changes to our Privacy Policy by posting the new Privacy Policy "),a("a",{attrs:{href:"https://mprint.umich.edu/privacy"}},[e._v("here")]),e._v(". You are advised to consult this Privacy Policy regularly for any changes."),a("br"),a("br"),a("b",[e._v("Your Consent")]),a("br"),e._v('By using this Application, you are consenting to our processing of User Provided and Automatically Collected information as set forth in this Privacy Policy now and as amended by us. "Processing,” means using cookies on a computer/hand held device or using or touching information in any way, including, but not limited to, collecting, storing, deleting, using, combining and disclosing information, all of which activities will take place in the United States. If you reside outside the U.S. your information will be transferred to the U.S., and processed and stored there under U.S. privacy standards. By using the Application and providing information to us, you consent to such transfer to, and processing in, the US.'),a("br"),a("br"),a("b",[e._v("Contact us")]),a("br"),e._v("If you have any questions regarding privacy while using the Application, or have questions about our practices, please contact us via email at "),a("a",{attrs:{href:"mailto:mprint@umich.edu"}},[e._v("mprint@umich.edu")]),e._v(".")])])}],ra={name:"appDocuments",data:function(){return{expanded:[]}},methods:{toggleRow:function(e){this.expanded.includes(e)?this.expanded=this.expanded.filter((function(t){return t!==e})):this.expanded.push(e)}},mounted:function(){var e="app";if(window.location.href.indexOf("/web/")>-1&&(e="web"),this.$route.params["section"]){var t=this.$route.params["section"];"legal"===t?this.expanded=[t]:"privacy"===t&&(this.expanded=["".concat(e,"_").concat(t)])}this.toggleRow(e)}},ia=ra,oa=(a("1309"),Object(f["a"])(ia,na,sa,!1,null,"6f8581e8",null)),ca=oa.exports,la=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper",on:{dragover:function(t){return t.stopPropagation(),t.preventDefault(),e.captureDrag(t)},drop:function(t){return t.preventDefault(),t.stopPropagation(),e.dragEnd.apply(null,arguments)}}},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.msg.length,expression:"msg.length"}],attrs:{id:"message_container"}},[e._l(e.msg,(function(t,n){return[a("div",{key:"message_"+n,staticClass:"message",attrs:{id:"message_"+n},domProps:{innerHTML:e._s(t)}})]}))],2),a("div",{directives:[{name:"show",rawName:"v-show",value:e.enableMask,expression:"enableMask"}],staticClass:"mask dim",attrs:{id:"mask"},on:{click:function(t){return e.closeOpenModal(!1)}}}),a("div",{attrs:{id:"content",role:"main"}},[a("div",{staticClass:"flex_row"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.popFilter,expression:"popFilter"}],staticClass:"box full_box",attrs:{id:"empty_filter_box"}}),a("div",{staticClass:"box full_box",class:e.popFilter?"popped_out":"",attrs:{id:"filter_container"}},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("h1",[e._v("MPrint - Project Manager")]),a("div",[a("button",{staticClass:"ml-2 button button_large button_blue",on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.createNewProject.apply(null,arguments)}}},[a("i",{staticClass:"fas fa-plus mr-2"}),e._v("New Project")])])]),a("div",{staticClass:"flex_member end flex_row_fit"},[a("div",{staticClass:"flex_member end"},[a("div",[a("label",{attrs:{for:"filter_quick_search"}},[e._v("Quick Search:")]),a("v-select",{attrs:{id:"filter_quick_search",taggable:"",multiple:"",options:[],"dropdown-should-open":function(){return!1}},on:{input:function(t){return e.filterProjects()}},model:{value:e.quickSearch,callback:function(t){e.quickSearch=t},expression:"quickSearch"}})],1),a("p",{staticClass:"pl-2"},[e._v("Join filters with: "),a("label",{attrs:{for:"join_and"}},[e._v("And")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.filterJoinWith,expression:"filterJoinWith"}],attrs:{type:"radio",id:"join_and",name:"filter_join_with",value:"and",checked:"checked"},domProps:{checked:e._q(e.filterJoinWith,"and")},on:{change:[function(t){e.filterJoinWith="and"},function(t){return e.filterProjects()}]}}),e._v(" or "),a("label",{attrs:{for:"join_or"}},[e._v("Or")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.filterJoinWith,expression:"filterJoinWith"}],attrs:{type:"radio",id:"join_or",name:"filter_join_with",value:"or"},domProps:{checked:e._q(e.filterJoinWith,"or")},on:{change:[function(t){e.filterJoinWith="or"},function(t){return e.filterProjects()}]}})])])])])])]),"admin"!==e.user.role?[a("div",{staticClass:"full_width medium_text center"},[e._v("You do not have permissions to view this page.")])]:e.projects.loaded?e.projects.loaded&&e.projects.error?[a("div",{staticClass:"full_width medium_text center"},[e._v("Failed to load MPrint Projects! Please refresh to try again.")])]:[e._m(1),a("div",{staticClass:"full_width full_width_box box",attrs:{id:"my_projects_ctr"}},[e.projects.my_projects.length&&e.projects.my_projects.filter((function(e){return e.hiddenBySearch})).length<e.projects.my_projects.length?[a("table",{staticClass:"full_width"},[a("thead",[a("tr",[a("td",{staticClass:"bold pad-8 sortable",on:{click:function(t){return e.sortBy("name")}}},[e._v("Project Name"),a("i",{staticClass:"ml-2 fas",class:"name-asc"===e.sortedBy?"fa-caret-up":"name-desc"===e.sortedBy?"fa-caret-down":"hidden"})]),a("td",{staticClass:"bold pad-8 sortable",on:{click:function(t){return e.sortBy("current_status")}}},[e._v("Current Status"),a("i",{staticClass:"ml-2 fas",class:"current_status-asc"===e.sortedBy?"fa-caret-up":"current_status-desc"===e.sortedBy?"fa-caret-down":"hidden"})]),a("td",{staticClass:"bold pad-8 sortable",on:{click:function(t){return e.sortBy("priority")}}},[e._v("Project Priority"),a("i",{staticClass:"ml-2 fas",class:"priority-asc"===e.sortedBy?"fa-caret-up":"priority-desc"===e.sortedBy?"fa-caret-down":"hidden"})]),a("td",{staticClass:"bold pad-8 sortable",on:{click:function(t){return e.sortBy("deadline")}}},[e._v("Deadline"),a("i",{staticClass:"ml-2 fas",class:"deadline-asc"===e.sortedBy?"fa-caret-up":"deadline-desc"===e.sortedBy?"fa-caret-down":"hidden"})]),a("td",{staticClass:"bold pad-8"},[e._v("Documentation")]),a("td",{staticClass:"bold pad-8"},[e._v("Actions")])])]),a("tbody",[e._l(e.projects.my_projects,(function(t,n){return[a("tr",{key:"myproject_"+n,staticClass:"myproject_row",class:n%2?"odd_row":"even_row",attrs:{id:"myproject_"+n},on:{click:function(t){return e.toggleDescription(n)}}},[a("td",{staticClass:"pad-8"},[e._v(e._s(t["name"]))]),a("td",{staticClass:"capitalize pad-8"},[e._v(e._s(t["current_status"].split("_").join(" ")))]),a("td",{staticClass:"capitalize pad-8",class:t["priority"]+"_priority"},[e._v(e._s(t["priority"]))]),a("td",{staticClass:"pad-8"},[e._v(e._s(null!==t["deadline_formatted"]?t["deadline_formatted"]:"None"))]),a("td",{staticClass:"pad-8"},[t["notes_link"]?[a("a",{attrs:{href:""+t["notes_link"],target:"_blank"}},[e._v("Project Notes")]),t["testplan_link"]?[a("span",{staticClass:"ml-2 mr-2"},[e._v("•")])]:e._e()]:e._e(),t["testplan_link"]?[a("a",{attrs:{href:""+t["testplan_link"],target:"_blank"}},[e._v("Test Plan")])]:e._e(),t["notes_link"]||t["testplan_link"]?e._e():[a("span",[e._v("No Documentation Available")])]],2),a("td",{staticClass:"pad-8"},[a("a",{attrs:{href:""},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.editProjectFn(n,"my_projects")}}},[a("i",{staticClass:"fas fa-edit mr-4",attrs:{title:"Edit"}})]),a("a",{attrs:{href:""},on:{click:function(a){return a.stopPropagation(),a.preventDefault(),e.updateProjectStatus(t.id,t.current_status,"cancelled")}}},[a("i",{staticClass:"fas fa-times red",attrs:{title:"Cancel"}})])])]),a("tr",{key:"myproject_moreinfo_"+n,staticClass:"myproject_row hidden",class:n%2?"odd_row":"even_row",attrs:{id:"myproject_moreinfo_"+n}},[a("td",{staticClass:"pad-8 center",attrs:{colspan:"6"}},[a("span",{staticClass:"bold"},[e._v("Project Description: ")]),a("span",[e._v(e._s(t["description"]))])])])]}))],2)])]:[a("div",{staticClass:"flex_member full_width medium_text center"},[e._v("You have no active projects!")])]],2),a("hr",{staticClass:"main_divider"}),e._m(2),a("div",{staticClass:"full_width flex_row_nowrap",attrs:{id:"project_manager_ctr"}},[e._l(e.projectStatuses,(function(t,n){return[a("div",{key:t,staticClass:"status_column drop_target",class:0===n?"first_column":"",attrs:{id:t},on:{drop:function(t){return e.dropProject(t)}}},[a("h2",{staticClass:"mprint_form_header"},[a("span",{staticClass:"capitalize"},[e._v(e._s(t.split("_").join(" ")))])]),a("div",{staticClass:"flex_member project_box dropzone"}),Object.keys(e.projects[t]).length>0&&Object.values(e.projects[t]).filter((function(e){return e.hiddenBySearch})).length<Object.keys(e.projects[t]).length?[e._l(Object.values(e.projects[t]),(function(n,s){return[a("div",{key:t+"_"+s,staticClass:"flex_member project_box",class:n["hiddenBySearch"]?"hidden":"",attrs:{id:"project_"+n["id"],draggable:"true"},on:{dragstart:function(t){return e.captureDrag(t)},mouseover:function(a){return a.preventDefault(),a.stopPropagation(),e.showHover(n["id"],t,a)},mouseout:function(t){return t.preventDefault(),t.stopPropagation(),e.hideHover()},click:function(a){return e.editProjectFn(n["id"],t)}}},[a("div",{staticClass:"bold"},[e._v(e._s(n["name"]))]),a("div",[e._v("Assigned To: "),a("span",[e._v(e._s(n["assigned_to"]))])]),a("div",[e._v("Priority: "),a("span",{staticClass:"capitalize",class:n["priority"]+"_priority"},[e._v(e._s(n["priority"]))])]),a("div",[e._v("Project Deadline: "),a("span",[e._v(" "+e._s(null!==n["deadline_formatted"]?n["deadline_formatted"]:"None"))])])])]}))]:[e._m(3,!0)]],2)]}))],2),a("hr",{staticClass:"main_divider"}),a("div",{staticClass:"flex_row center"},[a("div",{staticClass:"flex_member drop_target_adjacent",on:{drop:function(t){return e.dropProject(t)}}},[e._m(4)])]),a("div",{staticClass:"full_width flex_row drop_target",attrs:{id:"cancelled_projects_ctr"},on:{drop:function(t){return e.dropProject(t)}}},[a("div",{staticClass:"flex_member project_box dropzone cancelled_project"}),Object.keys(e.projects["cancelled"]).length>0&&Object.values(e.projects["cancelled"]).filter((function(e){return e.hiddenBySearch})).length<Object.keys(e.projects["cancelled"]).length?[e._l(Object.values(e.projects["cancelled"]),(function(t,n){return[a("div",{key:"cancelled_"+n,staticClass:"flex_member project_box",class:t["hiddenBySearch"]?"hidden":"cancelled_project",attrs:{id:"project_"+t["id"],draggable:"true"},on:{dragstart:function(t){return e.captureDrag(t)}}},[a("div",{staticClass:"bold"},[e._v(e._s(t["name"]))]),a("div",[e._v("Assigned To: "),a("span",[e._v(e._s(t["assignee"]))])]),a("div",[e._v("Project Deadline: "),a("span",[e._v(" "+e._s(null!==t["deadline_formatted"]?t["deadline_formatted"]:"None"))])])])]}))]:[e._m(5)]],2)]:[e._m(0)]],2),null!==e.showHoverForProjectStatus&&Object.values(e.projects[e.showHoverForProjectStatus]).length&&null!==e.showHoverForProjectID?a("div",{staticClass:"hover_box",style:{top:e.hover_y+"px",left:e.hover_x+"px"},attrs:{id:"project_hover","aria-hidden":"true"}},[a("h2",{staticClass:"center"},[e._v(e._s(e.projects[e.showHoverForProjectStatus][e.showHoverForProjectID].name))]),a("div",[a("table",{staticClass:"fill_width"},[a("tbody",[a("tr",[a("td",[e._v("Description:")]),a("td",{staticClass:"buffer_cell"}),a("td",[e._v(e._s(e.projects[e.showHoverForProjectStatus][e.showHoverForProjectID].description))])]),a("tr",[a("td",[e._v("Assigned To:")]),a("td",{staticClass:"buffer_cell"}),a("td",[e._v(e._s(e.projects[e.showHoverForProjectStatus][e.showHoverForProjectID].assigned_to))])]),a("tr",[a("td",[e._v("Current Status:")]),a("td",{staticClass:"buffer_cell"}),a("td",{staticClass:"capitalize"},[e._v(e._s(e.projects[e.showHoverForProjectStatus][e.showHoverForProjectID].current_status.split("_").join(" ")))])]),a("tr",[a("td",[e._v("Priority:")]),a("td",{staticClass:"buffer_cell"}),a("td",{staticClass:"capitalize",class:e.projects[e.showHoverForProjectStatus][e.showHoverForProjectID].priority+"_priority"},[e._v(e._s(e.projects[e.showHoverForProjectStatus][e.showHoverForProjectID].priority))])]),a("tr",[a("td",[e._v("Project Deadline:")]),a("td",{staticClass:"buffer_cell"}),a("td",[e._v(e._s(e.projects[e.showHoverForProjectStatus][e.showHoverForProjectID].deadline_formatted))])])])])])]):e._e(),a("div",{directives:[{name:"show",rawName:"v-show",value:e.showNewProjectModal&&e.enableMask,expression:"showNewProjectModal && enableMask"}],staticClass:"modal",attrs:{id:"new_project_modal"}},[e._m(6),a("div",{staticClass:"modal_content"},[a("div",{staticClass:"pad-8"},[a("table",{staticClass:"full_width"},[a("tbody",{staticClass:"lh-2"},[e._m(7),e._m(8),a("tr",[e._m(9),a("td",[a("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.newProject.name,expression:"newProject.name",modifiers:{lazy:!0}}],attrs:{type:"text",id:"new_project_name"},domProps:{value:e.newProject.name},on:{blur:function(){return e.newProject.name?e.newProject.name=e.newProject.name.trimStart().trimEnd():""},change:function(t){return e.$set(e.newProject,"name",t.target.value)}}})])]),e._m(10),a("tr",[e._m(11),a("td",[a("textarea",{directives:[{name:"model",rawName:"v-model.lazy",value:e.newProject.description,expression:"newProject.description",modifiers:{lazy:!0}}],attrs:{id:"new_project_description"},domProps:{value:e.newProject.description},on:{blur:function(){return e.newProject.description?e.newProject.description=e.newProject.description.trimStart().trimEnd():""},change:function(t){return e.$set(e.newProject,"description",t.target.value)}}})])]),e._m(12),a("tr",[e._m(13),a("td",[a("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.newProject.notes_link,expression:"newProject.notes_link",modifiers:{lazy:!0}}],attrs:{type:"text",id:"new_project_notes_link"},domProps:{value:e.newProject.notes_link},on:{blur:function(){return e.newProject.notes_link?e.newProject.notes_link=e.newProject.notes_link.trimStart().trimEnd():""},change:function(t){return e.$set(e.newProject,"notes_link",t.target.value)}}})])]),e._m(14),a("tr",[e._m(15),a("td",[a("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.newProject.testplan_link,expression:"newProject.testplan_link",modifiers:{lazy:!0}}],attrs:{type:"text",id:"new_project_testplan_link"},domProps:{value:e.newProject.testplan_link},on:{blur:function(){return e.newProject.testplan_link?e.newProject.testplan_link=e.newProject.testplan_link.trimStart().trimEnd():""},change:function(t){return e.$set(e.newProject,"testplan_link",t.target.value)}}})])]),e._m(16),a("tr",[e._m(17),a("td",[a("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.newProject.assigned_to,expression:"newProject.assigned_to",modifiers:{lazy:!0}}],attrs:{type:"text",id:"new_project_assignee"},domProps:{value:e.newProject.assigned_to},on:{blur:function(){return e.newProject.assigned_to?e.newProject.assigned_to=e.newProject.assigned_to.trimStart().trimEnd():""},change:function(t){return e.$set(e.newProject,"assigned_to",t.target.value)}}})])]),e._m(18),a("tr",[e._m(19),a("td",[a("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.newProject.deadline_date,expression:"newProject.deadline_date",modifiers:{lazy:!0}}],staticClass:"mr-2",attrs:{type:"date",id:"new_project_deadline"},domProps:{value:e.newProject.deadline_date},on:{change:function(t){return e.$set(e.newProject,"deadline_date",t.target.value)}}}),a("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.newProject.deadline_time,expression:"newProject.deadline_time",modifiers:{lazy:!0}}],attrs:{type:"time",id:"new_project_deadline_time",step:"1"},domProps:{value:e.newProject.deadline_time},on:{change:function(t){return e.$set(e.newProject,"deadline_time",t.target.value)}}})])]),e._m(20),a("tr",[e._m(21),a("td",[a("v-select",{attrs:{id:"new_project_priority",options:e.priorities},model:{value:e.newProject.priority,callback:function(t){e.$set(e.newProject,"priority",t)},expression:"newProject.priority"}})],1)])])])])]),a("div",{staticClass:"modal_footer"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("div",{staticClass:"button",attrs:{role:"button",tabindex:"0"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.closeOpenModal(!1)},click:function(t){return e.closeOpenModal(!1)}}},[e._v("Cancel")])]),a("div",{staticClass:"flex_member end"},[a("div",{staticClass:"button button_blue",class:e.disableCreate?"disabled":"",attrs:{role:"button",tabindex:"0"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.closeOpenModal(!0)},click:function(t){return e.closeOpenModal(!0)}}},[e._v("Create Project"),a("span",{staticClass:"far fa-save ml-2"})])])])])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.showEditProjectModal&&e.enableMask,expression:"showEditProjectModal && enableMask"}],staticClass:"modal",attrs:{id:"edit_project_modal"}},[e._m(22),a("div",{staticClass:"modal_content"},[a("div",{staticClass:"pad-8"},[a("table",{staticClass:"full_width"},[a("tbody",{staticClass:"lh-2"},[e._m(23),e._m(24),a("tr",[e._m(25),a("td",[a("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.editProject.name,expression:"editProject.name",modifiers:{lazy:!0}}],attrs:{type:"text",id:"edit_project_name"},domProps:{value:e.editProject.name},on:{blur:function(){return e.editProject.name?e.editProject.name=e.editProject.name.trimStart().trimEnd():""},change:function(t){return e.$set(e.editProject,"name",t.target.value)}}})])]),e._m(26),a("tr",[e._m(27),a("td",[a("textarea",{directives:[{name:"model",rawName:"v-model.lazy",value:e.editProject.description,expression:"editProject.description",modifiers:{lazy:!0}}],attrs:{id:"edit_project_description"},domProps:{value:e.editProject.description},on:{blur:function(){return e.editProject.description?e.editProject.description=e.editProject.description.trimStart().trimEnd():""},change:function(t){return e.$set(e.editProject,"description",t.target.value)}}})])]),e._m(28),a("tr",[e._m(29),a("td",[a("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.editProject.notes_link,expression:"editProject.notes_link",modifiers:{lazy:!0}}],attrs:{type:"text",id:"edit_project_notes_link"},domProps:{value:e.editProject.notes_link},on:{blur:function(){return e.editProject.notes_link?e.editProject.notes_link=e.editProject.notes_link.trimStart().trimEnd():""},change:function(t){return e.$set(e.editProject,"notes_link",t.target.value)}}}),e.editProject.notes_link?a("span",[a("a",{staticClass:"ml-2",attrs:{href:""+e.editProject.notes_link,target:"_blank"}},[e._v("Preview "),a("i",{staticClass:"fas fa-share-square ml-1"})])]):e._e()])]),e._m(30),a("tr",[e._m(31),a("td",[a("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.editProject.testplan_link,expression:"editProject.testplan_link",modifiers:{lazy:!0}}],attrs:{type:"text",id:"edit_project_testplan_link"},domProps:{value:e.editProject.testplan_link},on:{blur:function(){return e.editProject.testplan_link?e.editProject.testplan_link=e.editProject.testplan_link.trimStart().trimEnd():""},change:function(t){return e.$set(e.editProject,"testplan_link",t.target.value)}}}),e.editProject.testplan_link?a("span",[a("a",{staticClass:"ml-2",attrs:{href:""+e.editProject.testplan_link,target:"_blank"}},[e._v("Preview "),a("i",{staticClass:"fas fa-share-square ml-1"})])]):e._e()])]),e._m(32),a("tr",[e._m(33),a("td",[a("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.editProject.assigned_to,expression:"editProject.assigned_to",modifiers:{lazy:!0}}],attrs:{type:"text",id:"edit_project_assignee"},domProps:{value:e.editProject.assigned_to},on:{blur:function(){return e.editProject.assigned_to?e.editProject.assigned_to=e.editProject.assigned_to.trimStart().trimEnd():""},change:function(t){return e.$set(e.editProject,"assigned_to",t.target.value)}}})])]),e._m(34),a("tr",[e._m(35),a("td",[a("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.editProject.deadline_date,expression:"editProject.deadline_date",modifiers:{lazy:!0}}],staticClass:"mr-2",attrs:{type:"date",id:"edit_project_deadline"},domProps:{value:e.editProject.deadline_date},on:{change:function(t){return e.$set(e.editProject,"deadline_date",t.target.value)}}}),a("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.editProject.deadline_time,expression:"editProject.deadline_time",modifiers:{lazy:!0}}],attrs:{type:"time",id:"edit_project_deadline_time",step:"1"},domProps:{value:e.editProject.deadline_time},on:{change:function(t){return e.$set(e.editProject,"deadline_time",t.target.value)}}})])]),e._m(36),a("tr",[e._m(37),a("td",[a("v-select",{attrs:{id:"edit_project_priority",options:e.priorities},model:{value:e.editProject.priority,callback:function(t){e.$set(e.editProject,"priority",t)},expression:"editProject.priority"}})],1)])])])])]),a("div",{staticClass:"modal_footer"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("div",{staticClass:"button",attrs:{role:"button",tabindex:"0"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.closeOpenModal(!1)},click:function(t){return e.closeOpenModal(!1)}}},[e._v("Cancel")])]),a("div",{staticClass:"flex_member end"},[a("div",{staticClass:"button button_blue",class:e.disableCreate?"disabled":"",attrs:{role:"button",tabindex:"0"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.closeOpenModal(!0)},click:function(t){return e.closeOpenModal(!0)}}},[e._v("Save Project"),a("span",{staticClass:"far fa-save ml-2"})])])])])])])},ua=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"full_width medium_text center"},[e._v("Loading MPrint Projects... "),n("img",{attrs:{src:a("d9b6"),alt:"loading"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_row center"},[a("div",{staticClass:"flex_member"},[a("h1",[e._v("My Open Projects"),a("span",{staticClass:"fas fa-clipboard-list ml-4"})])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_row center"},[a("div",{staticClass:"flex_member"},[a("h1",[e._v("Project Manager"),a("span",{staticClass:"fas fa-tasks ml-4"})])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"no_projects"},[a("div",{staticClass:"center medium_text"},[e._v("There are no projects to show")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h1",[e._v("Cancelled Projects"),a("span",{staticClass:"fas fa-trash-alt ml-4 changecolor"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"no_projects"},[a("div",{staticClass:"center medium_text"},[e._v("There are no projects to show")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Create New MPrint Project")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",{staticClass:"dashed_bottom hidden"},[a("td",{staticClass:"small_help_text pb-1",attrs:{colspan:"2"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("What is this project called?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"new_project_name"}},[e._v("Project Name:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("What is the objective of this project?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"new_project_description"}},[e._v("Project Description:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("Is there a Google Doc with related information?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"new_project_notes_link"}},[e._v("Google Doc URL:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("Is there a Google Sheet test plan for this project?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"new_project_testplan_link"}},[e._v("Test Plan URL:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("Who is spearheading this project?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"new_project_assignee"}},[e._v("Project Lead:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("By when is this project due? ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"new_project_deadline"}},[e._v("Project Deadline:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("What priority does this project have?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"new_project_priority"}},[e._v("Project Priority:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Modify MPrint Project")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",{staticClass:"dashed_bottom hidden"},[a("td",{staticClass:"small_help_text pb-1",attrs:{colspan:"2"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("What is this project called?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"edit_project_name"}},[e._v("Project Name:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("What is the objective of this project?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"edit_project_description"}},[e._v("Project Description:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("Is there a Google Doc with related information?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"edit_project_notes_link"}},[e._v("Google Doc URL:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("Is there a Google Sheet test plan for this project?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"edit_project_testplan_link"}},[e._v("Test Plan URL:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("Who is spearheading this project?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"edit_project_assignee"}},[e._v("Project Lead:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("By when is this project due? ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"edit_project_deadline"}},[e._v("Project Deadline:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("What priority does this project have?")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"edit_project_priority"}},[e._v("Project Priority:")])])}],da={name:"default",data:function(){return{arrowElts:[],arrowIndex:0,disableCreate:!1,draggedElt:null,dragTimeout:null,editProject:{},enableMask:!1,filterJoinWith:"and",hover_x:0,hover_y:0,msg:[],newProject:{current_status:"new",name:null,description:null,notes_link:null,testplan_link:null,priority:null,assigned_to:null,deadline_date:null,deadline_time:null},originalCoords:{left:null,top:null},popFilter:!1,priorities:["low","medium","high","critical"],projects:{all_projects:[],error:!1,loaded:!1,my_projects:[]},projectStatuses:["new","blocked","in_development","ready_for_testing","ready_for_production","deployed"],publicPath:window.location.origin,quickSearch:[],showEditProjectModal:!1,showNewProjectModal:!1,showHoverForProjectID:null,showHoverForProjectStatus:null,sortedBy:null}},props:{user:{type:Object,default:function(){return this.$store.getters.getUser}}},methods:{captureDrag:function(e){switch(e.type){case"dragover":if(window.clearTimeout(this.dragTimeout),this.dragTimeout=null,e.target.classList.contains("drop_target")||null!==e.target.closest(".drop_target")||e.target.classList.contains("drop_target_adjacent")){var t=null;if(e.target.classList.contains("drop_target")&&!e.target.classList.contains("hovering")?t=e.target:null===e.target.closest(".hovering")&&(t=e.target.closest(".drop_target")),t){var a,n=document.getElementsByClassName("hovering"),s=Object(i["a"])(n);try{for(s.s();!(a=s.n()).done;){var r=a.value;r.classList.remove("hovering")}}catch(p){s.e(p)}finally{s.f()}t.classList.add("hovering")}e.preventDefault()}else{var o,c=document.getElementsByClassName("hovering"),l=Object(i["a"])(c);try{for(l.s();!(o=l.n()).done;){var u=o.value;u.classList.remove("hovering")}}catch(p){l.e(p)}finally{l.f()}}break;case"dragleave":var d=this;this.dragTimeout=window.setTimeout((function(){d.dragEnd()}),100);break;case"dragstart":this.draggedElt=e.target.id,e.target.classList.add("dragging"),this.showHoverForProjectID=null,this.showHoverForProjectStatus=null;break;default:console.log("event type ".concat(e.type," captured -- do nothing")),console.log(e)}},closeOpenModal:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,s,r,i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!e){a.next=40;break}if(!t.disableCreate){a.next=3;break}return a.abrupt("return",!1);case 3:if(a.prev=3,t.disableCreate=!0,!t.showNewProjectModal){a.next=13;break}return a.next=8,p.methods.post("api/projects",t.newProject);case 8:n=a.sent.data.result,console.log(n),Object.keys(n).includes("valid")&&!n.valid?(t._msgManager(n.invalid.join("; ")),t._msgManager(n.missing.join("; "))):(t.projects.all_projects.push(Object(I["a"])(Object(I["a"])({id:n.result},t.newProject),{},{deadline:"".concat(t.newProject.deadline_date," ").concat(t.newProject.deadline_time),deadline_formatted:"".concat(t.newProject.deadline_date," ").concat(t.newProject.deadline_time),hiddenBySearch:!1})),t.projects.new[n.result]=t.projects.all_projects[t.projects.all_projects.length-1],Object.keys(t.newProject).forEach((function(e){t.newProject[e]=null})),t.newProject.current_status="new",t.enableMask=!1,t.showNewProjectModal=!1),a.next=29;break;case 13:if(!t.showEditProjectModal){a.next=28;break}if(s={},r=t.projects.all_projects.findIndex((function(e){return e.id===t.editProject.id})),Object.keys(t.editProject).forEach((function(e){Object.keys(t.projects.all_projects[r]).includes(e)&&t.projects.all_projects[r][e]===t.editProject[e]||(s[e]=t.editProject[e],"deadline_time"===e&&(s["deadline_date"]=t.editProject["deadline_date"]))})),!Object.keys(s).length){a.next=25;break}return a.next=20,p.methods.put("api/projects/".concat(t.editProject.id),s);case 20:i=a.sent.data.result,console.log(i),Object.keys(i).includes("valid")&&!i.valid?(t._msgManager(i.invalid.join("; ")),t._msgManager(i.missing.join("; "))):(Object.keys(s).forEach((function(e){t.projects.all_projects[r][e]=s[e],"deadline_date"!==e&&"deadline_time"!==e||(t.projects.all_projects[r].deadline="".concat(s["deadline_date"]," ").concat(s["deadline_time"]),t.projects.all_projects[r].deadline_formatted="".concat(s["deadline_date"]," ").concat(s["deadline_time"]))})),t.projects["".concat(t.editProject.current_status)][t.editProject.id]=t.projects.all_projects[r],t.enableMask=!1,t.showEditProjectModal=!1,t.editProject={}),a.next=26;break;case 25:t._msgManager("Nothing was edited! No changes made.");case 26:a.next=29;break;case 28:return a.abrupt("return",!1);case 29:a.next=35;break;case 31:a.prev=31,a.t0=a["catch"](3),console.log(a.t0),t._msgManager(a.t0);case 35:return a.prev=35,t.disableCreate=!1,a.finish(35);case 38:a.next=44;break;case 40:t.enableMask=!1,t.showEditProjectModal=!1,t.showNewProjectModal=!1,t.editProject={};case 44:case"end":return a.stop()}}),a,null,[[3,31,35,38]])})))()},createNewProject:function(){this.enableMask=!0,this.showNewProjectModal=!0},dragEnd:function(){var e,t=document.getElementsByClassName("drop_target"),a=Object(i["a"])(t);try{for(a.s();!(e=a.n()).done;){var n=e.value;n.classList.remove("hovering")}}catch(s){a.e(s)}finally{a.f()}return this.draggedElt=null,!1},dropProject:function(e){var t=this;e.preventDefault();var a=null;if(e.target.classList.contains("drop_target")?a=e.target:null!==e.target.closest(".drop_target")&&(a=e.target.closest(".drop_target")),null!==this.draggedElt){if(null!==a){var n=this.projects.all_projects.filter((function(e){return e.id==t.draggedElt.split("_")[1]}))[0];console.log(a.id),n&&a.id!==n.current_status&&"cancelled_projects_ctr"===a.id?this.updateProjectStatus(n.id,n.current_status,"cancelled").then((function(){console.log("project cancelled!")})):n&&a.id!==n.current_status&&this.updateProjectStatus(n.id,n.current_status,a.id).then((function(){console.log("project updated!")}))}else console.log("newColumn is null");document.getElementById(this.draggedElt).classList.remove("dragging"),this.draggedElt=null}else console.log("draggedElt is null! Nothing to drop")},editProjectFn:function(e,t){var a=this;Object.keys(this.projects[t][e]).forEach((function(n){a.editProject[n]=a.projects[t][e][n]}));var n=this.editProject.deadline.split(" ");this.editProject.deadline.indexOf("T")>-1&&(n=this.editProject.deadline.split("T")),this.editProject.deadline_date=n[0],this.editProject.deadline_time=n[1].split(".")[0],this.showEditProjectModal=!0,this.enableMask=!0},filterProjects:function(){var e=this;if(this.quickSearch.length){var t,a=Object(i["a"])(this.projectStatuses);try{var n=function(){var a=t.value;"and"===e.filterJoinWith?e.quickSearch.map((function(t){Object.keys(e.projects[a]).forEach((function(n){null===JSON.stringify(Object.values(e.projects[a][n])).match(new RegExp(t,"gi"))&&e.$set(e.projects[a][n],"hiddenBySearch",!0)}))})):e.quickSearch.map((function(t){Object.keys(e.projects[a]).forEach((function(n){null!==JSON.stringify(Object.values(e.projects[a][n])).match(new RegExp(t,"gi"))&&e.$set(e.projects[a][n],"hiddenBySearch",!1)}))}))};for(a.s();!(t=a.n()).done;)n()}catch(c){a.e(c)}finally{a.f()}"and"===this.filterJoinWith?this.quickSearch.map((function(t){e.projects.my_projects.forEach((function(a,n){null===JSON.stringify(a).match(new RegExp(t,"gi"))&&e.$set(e.projects.my_projects[n],"hiddenBySearch",!0)}))})):this.quickSearch.map((function(t){e.projects.my_projects.forEach((function(a,n){null!==JSON.stringify(a).match(new RegExp(t,"gi"))&&e.$set(e.projects.my_projects[n],"hiddenBySearch",!1)}))}))}else{var s,r=Object(i["a"])(this.projectStatuses);try{var o=function(){var t=s.value;Object.keys(e.projects[t]).forEach((function(a){e.$set(e.projects[t][a],"hiddenBySearch",!1)}))};for(r.s();!(s=r.n()).done;)o()}catch(c){r.e(c)}finally{r.f()}this.projects.my_projects.forEach((function(t,a){e.$set(e.projects.my_projects[a],"hiddenBySearch",!1)}))}},getProjects:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.projectStatuses.forEach((function(t){e.$set(e.projects,"".concat(t),{})})),e.$set(e.projects,"cancelled",{}),t.prev=2,t.next=5,p.methods.get("api/projects");case 5:a=t.sent.data.result,console.log(a),Object.keys(a).includes("valid")&&!a.valid?e._msgManager(a.status_message):(a.result.map((function(t){return t.deadline_formatted=e._formatDate(t.deadline,!0)})),e.projects.all_projects=a.result,e.projects.my_projects=a.result.filter((function(t){return t.assigned_to===e.user.uniqname&&"cancelled"!==t.current_status})),a.result.forEach((function(t){e.projects[t.current_status][t.id]=t}))),t.next=14;break;case 10:t.prev=10,t.t0=t["catch"](2),e._msgManager(t.t0),e.projects.error=!0;case 14:return t.prev=14,e.projects.loaded=!0,t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[2,10,14,17]])})))()},hideHover:function(){this.showHoverForProjectID=null,this.showHoverForProjectStatus=null},isEmpty:function(e){return!(e&&""!==e&&e!=={}&&"{}"!==e)},scrollListener:function(){this.popFilter=window.scrollY>100},showHover:function(e,t,a){if(null!==this.draggedElt)return!1;this.hover_x=a.pageX+24,this.hover_y=a.pageY-a.offsetY,this.showHoverForProjectID=e,this.showHoverForProjectStatus=t},sortBy:function(e){var t=this,a="asc";if(null!==this.sortedBy&&this.sortedBy.startsWith(e)){var n=this.sortedBy.split("-");n[1]===a&&(a="desc")}if(!this.projects.my_projects.length)return this.sortedBy=null,!1;this.projects.my_projects.sort((function(n,s){var r="asc"===a?1:-1,i=n[e],o=s[e];return"current_status"===e&&(i=t.projectStatuses.indexOf(n[e]),o=t.projectStatuses.indexOf(s[e])),i>o?1*r:i<o?-1*r:0})),this.sortedBy="".concat(e,"-").concat(a)},toggleDescription:function(e){var t=document.getElementById("myproject_moreinfo_".concat(e));t.classList.contains("hidden")?t.classList.remove("hidden"):t.classList.add("hidden")},updateProjectStatus:function(e,t,a){var n=this;return Object(o["a"])(regeneratorRuntime.mark((function s(){var r,i,o;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,p.methods.put("api/projects/".concat(e),{current_status:a});case 3:r=s.sent.data.result,console.log(r),Object.keys(n.projects[t]).includes("".concat(e))&&(n.$set(n.projects[a],"".concat(e),n.projects[t]["".concat(e)]),n.$delete(n.projects[t],"".concat(e)),n.projects.all_projects.filter((function(t){return t.id==e}))[0].current_status=a,"cancelled"===a?(i=n.projects.my_projects.findIndex((function(t){return t.id==e})),n.$delete(n.projects.my_projects,i)):(o=n.projects.my_projects.filter((function(t){return t.id==e})),o.length&&(o[0].current_status=a))),s.next=11;break;case 8:s.prev=8,s.t0=s["catch"](0),n._msgManager(s.t0);case 11:case"end":return s.stop()}}),s,null,[[0,8]])})))()},_formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.indexOf("Z")>-1&&(e=e.split(".")[0]),e=e.replace("T"," ");var a=new Date(e),n=a.getFullYear()+"-"+(""+(1+a.getMonth())).padStart(2,"0")+"-"+(""+a.getDate()).padStart(2,"0");return t&&(n+=" "+(""+a.getHours()).padStart(2,"0")+":"+(""+a.getMinutes()).padStart(2,"0")+":"+(""+a.getSeconds()).padStart(2,"0")),n},_msgManager:function(e){this.msg.push(e);var t=this;window.setTimeout((function(){t.msg=t.msg.slice(1,t.msg.length)}),4e3)},_testConnection:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e,t.next=3,p.methods.get("api/auth/user").then((function(e){return!!Object.keys(e.data.result).includes("uniqname")||(console.log(e),console.log(e.data.result),!1)})).catch((function(e){return console.log(e),a._msgManager("Your Weblogin session has expired! This page will refresh in 5 seconds."),window.setTimeout((function(){window.location.reload()}),5e3),!1}));case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})))()}},mounted:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.user.uniqname){t.next=3;break}return t.next=3,e.getProjects();case 3:window.addEventListener("scroll",e.scrollListener);case 4:case"end":return t.stop()}}),t)})))()},watch:{user:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.getProjects();case 2:case"end":return t.stop()}}),t)})))()}},destroyed:function(){window.removeEventListener("scroll",this.scrollListener)}},pa=da,_a=(a("107d"),a("21ab"),Object(f["a"])(pa,la,ua,!1,null,"17a12e2c",null)),ma=_a.exports,fa=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.msg,expression:"msg"}],attrs:{id:"message_container"}},[n("div",{staticClass:"message",attrs:{id:"message"}},[e._v(e._s(e.msg))])]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.enableMask,expression:"enableMask"}],staticClass:"mask dim",attrs:{id:"mask"},on:{click:function(t){return e.closeOpenModal(!1)}}}),n("div",{attrs:{id:"content",role:"main"}},[n("div",{staticClass:"box full_box"},[n("h1",[e._v("Poster Printing")]),n("div",[n("a",{staticClass:"ml-2 button button_large button_blue",attrs:{href:"https://"+e.papercutUrl+"/job-ticketing/customer/rooms/1",target:"_blank"}},[n("i",{staticClass:"fas fa-plus mr-2"}),e._v("Submit a Poster Order")])])]),e.posterQueues.isLoaded?e.posterQueues.isLoaded&&e.posterQueues.isError?[n("div",{staticClass:"large_text center"},[e._v("Failed to load poster queues! Please refresh the page and try again.")])]:!e.posterQueues.isLoaded||e.posterQueues.isError||e.posterQueues.queues.length?[e.posterJobs.isLoaded?e.posterJobs.isLoaded&&e.posterJobs.isError?[n("div",{staticClass:"full_width flex_row"},[n("div",{staticClass:"flex_member medium_text center"},[e._v("Failed to load jobs on "+e._s(e.virtualQueue.display_name)+"! Please refresh the page and try again.")])])]:e.posterJobs.isLoaded&&0===e.posterJobs.jobs.length?[e._m(1)]:[n("div",{staticClass:"full_width flex_row"},[n("h2",{staticClass:"full_width"},[e._v("Pending Jobs on "+e._s(e.virtualQueue.display_name))]),e.posterJobs.jobs.filter((function(e){return+e.pending&&e.preview_file_path})).length?[e._l(e.posterJobs.jobs.filter((function(e){return+e.pending&&e.preview_file_path})),(function(t,a){return[!e.adminView&&t.uniqname!==e.user.uniqname||!+t.pending&&!+t.failed?e._e():n("div",{key:"job_"+e.virtualQueue.printer_name+"_"+a,staticClass:"box poster_box",on:{click:function(t){return e.previewJob(a)}}},[n("h3",{staticClass:"bold float_left"},[e._v(e._s(t.document))]),n("div",{staticClass:"float_right"},[n("i",{staticClass:"poster_action hover_red fas fa-times mr-2",attrs:{title:"Cancel Job","aria-label":"Cancel Job"},on:{click:function(a){return a.stopPropagation(),e.cancelJob(t.id)}}})]),n("div",{staticClass:"clearfix"}),e.adminView?n("div",[e._v("Submitted By: "+e._s(t.uniqname!==e.user.uniqname?t.uniqname:"Me"))]):e._e(),n("div",[e._v("Status: "+e._s(+t.pending?"Pending":t.status_message))]),n("div",[e._v("Submitted On: "+e._s(t.submitted_on))])])]}))]:[n("div",{staticClass:"flex_member medium_text center"},[e._v("There are no available poster jobs to release!")])]],2),n("hr",{staticClass:"main_divider"}),n("div",{staticClass:"full_width flex_row"},[n("h2",{staticClass:"full_width"},[e._v("Jobs That Are Processing Preview Image")]),e.posterJobs.jobs.filter((function(e){return 1===+e.pending&&!e.preview_file_path})).length?[e._l(e.posterJobs.jobs.filter((function(e){return 1===+e.pending&&!e.preview_file_path})),(function(t,a){return[!e.adminView&&t.uniqname!==e.user.uniqname||!+t.pending&&!+t.failed?e._e():n("div",{key:"job_"+e.virtualQueue.printer_name+"_"+a,staticClass:"box poster_box processing"},[n("h3",{staticClass:"bold float_left"},[e._v(e._s(t.document))]),n("div",{staticClass:"float_right"},[n("i",{staticClass:"poster_action hover_red fas fa-times mr-2",attrs:{title:"Cancel Job","aria-label":"Cancel Job"},on:{click:function(a){return a.stopPropagation(),e.cancelJob(t.id)}}})]),n("div",{staticClass:"clearfix"}),e.adminView?n("div",[e._v("Submitted By: "+e._s(t.uniqname!==e.user.uniqname?t.uniqname:"Me"))]):e._e(),n("div",[e._v("Status: Processing Preview Image")]),n("div",[e._v("Submitted On: "+e._s(t.submitted_on))])])]}))]:[n("div",{staticClass:"flex_member medium_text center"},[e._v("There are no poster jobs currently processing a preview image!")])]],2),n("hr",{staticClass:"main_divider"}),n("div",{staticClass:"full_width flex_row"},[n("h2",{staticClass:"full_width"},[e._v("Failed Jobs on "+e._s(e.virtualQueue.display_name))]),e.posterJobs.jobs.filter((function(e){return 0===+e.pending})).length?[e._l(e.posterJobs.jobs.filter((function(e){return 0===+e.pending})),(function(t,a){return[!e.adminView&&t.uniqname!==e.user.uniqname||!+t.pending&&!+t.failed?e._e():n("div",{key:"job_"+e.virtualQueue.printer_name+"_"+a,staticClass:"box poster_box"},[n("h3",{staticClass:"bold float_left"},[e._v(e._s(t.document))]),n("div",{staticClass:"clearfix"}),e.adminView?n("div",[e._v("Submitted By: "+e._s(t.uniqname!==e.user.uniqname?t.uniqname:"Me"))]):e._e(),n("div",[e._v("Status: "+e._s(t.status_message))]),n("div",[e._v("Submitted On: "+e._s(t.submitted_on))])])]}))]:[n("div",{staticClass:"flex_member medium_text center"},[e._v("There are no failed poster jobs to show!")])]],2)]:[n("div",{staticClass:"full_width flex_row"},[n("div",{staticClass:"flex_member medium_text center"},[e._v("Loading jobs on "+e._s(e.virtualQueue.display_name)+"... "),n("img",{attrs:{src:a("d9b6"),alt:"loading","aria-label":"loading poster jobs"}})])])],n("hr",{staticClass:"main_divider"})]:[n("div",{staticClass:"large_text center"},[e._v("There are no available poster queues!")])]:[e._m(0)]],2),n("div",{directives:[{name:"show",rawName:"v-show",value:null!==e.showModalForJob,expression:"showModalForJob !== null"}],staticClass:"modal",attrs:{id:"preview_modal"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeOpenModal(!1)}}},[e._m(2),n("div",{staticClass:"modal_content"},[n("h2",[e._v("Previewing Document: "+e._s(e.previewData.document))]),null!==e.showModalForJob?n("table",{staticClass:"full_width"},[n("tbody",{staticClass:"lh-2"},[e.adminView&&e.previewData.uniqname===e.consultantUser?[n("tr",[e._m(3),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.releaseData.chargeToUser,expression:"releaseData.chargeToUser"}],attrs:{type:"text",autocomplete:"off",id:"chargeToUser"},domProps:{value:e.releaseData.chargeToUser},on:{keyup:function(t){return e.userChange(t)},blur:e.lookupUser,input:function(t){t.target.composing||e.$set(e.releaseData,"chargeToUser",t.target.value)}}})])]),n("tr",[null!==e.userLookupError?n("td",{staticClass:"red",attrs:{colspan:"2"}},[e._v(e._s(e.userLookupError))]):e._e()]),n("tr",[e._m(4),e.userIsLoading?[e._m(5)]:[n("td",[n("select",{directives:[{name:"model",rawName:"v-model",value:e.releaseData.chargeToAccount,expression:"releaseData.chargeToAccount"}],attrs:{id:"chargeToAccount"},on:{change:[function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.releaseData,"chargeToAccount",t.target.multiple?a:a[0])},e.checkBalance]}},[e._l(e.userAccounts,(function(t,a){return[n("option",{key:"acct_"+a,domProps:{value:t["name"]}},[e._v(e._s(t["name"]))])]})),n("option",{attrs:{value:"oneoff_shortcode"}},[e._v("User-Specified Shortcode")])],2),n("i",{staticClass:"ml-2 fas fa-redo poster_action hover_black",attrs:{title:"Refresh user's accounts"},on:{click:e.lookupUser}})])]],2),"oneoff_shortcode"===e.releaseData.chargeToAccount?n("tr",[e._m(6),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.oneoff,expression:"oneoff"}],attrs:{id:"oneoff",type:"text",autocomplete:"off",placeholder:"Shortcode"},domProps:{value:e.oneoff},on:{keyup:function(t){return e.shortcodeChange(t)},blur:e.lookupShortcode,input:function(t){t.target.composing||(e.oneoff=t.target.value)}}}),e.oneoffValid?[n("i",{staticClass:"ml-2 fas fa-check green",attrs:{title:"Specified Shortcode is valid"}})]:e._e()],2)]):e._e(),n("tr",[null!==e.accountError?n("td",{staticClass:"red",attrs:{colspan:"2"}},[e._v(e._s(e.accountError))]):e._e()]),n("tr",[e._m(7),n("td",[n("select",{directives:[{name:"model",rawName:"v-model",value:e.pickupLocation,expression:"pickupLocation"}],attrs:{id:"pickupLocation"},on:{change:[function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.pickupLocation=t.target.multiple?a:a[0]},e.setLocation]}},[n("option",{attrs:{value:"Fishbowl"}},[e._v("Fishbowl Computing Site")]),n("option",{attrs:{value:"Groundworks"}},[e._v("Groundworks Computer Lab")])])])]),n("tr",[null!==e.pickupLocationError?n("td",{staticClass:"red",attrs:{colspan:"2"}},[e._v(e._s(e.pickupLocationError))]):e._e()]),n("tr",[n("td",{staticClass:"bold legend"},[e._v("UROP Status:")]),n("td",[e._v("This user "),n("b",[e._v(e._s(e.userIsUROP?"IS":"IS NOT"))]),e._v(" in the UROP program.")])])]:e._e(),n("tr",[n("td",{staticClass:"bold legend"},[e._v("File name:")]),n("td",[e._v(e._s(e.previewData.document))])]),n("tr",[n("td",{staticClass:"bold legend"},[e._v("Status:")]),n("td",[e._v(e._s(+e.previewData.pending?"Pending":+e.previewData.failed?"Failed: "+e.previewData.status_message:+e.previewData.cancelled?"Cancelled: "+e.previewData.status_message:"Printed"))])]),n("tr",[n("td",{staticClass:"bold legend"},[e._v("Job Dimensions:")]),n("td",[e._v(e._s(e.previewData.width)+"‘‘ x "+e._s(e.previewData.height)+"‘‘")])]),n("tr",[n("td",{staticClass:"bold legend"},[e._v("Number of Pages:")]),n("td",[e._v(e._s(e.previewData.totalPages))])]),e.adminView&&e.previewData.uniqname===e.consultantUser?[n("tr",[e._m(8),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.releaseData.jobCost,expression:"releaseData.jobCost"}],attrs:{type:"number",min:"0",step:"0.01",id:"jobCost"},domProps:{value:e.releaseData.jobCost},on:{input:function(t){t.target.composing||e.$set(e.releaseData,"jobCost",t.target.value)}}})])])]:[n("tr",[n("td",{staticClass:"bold legend"},[e._v("Total estimated cost:")]),n("td",[e._v("$"+e._s(e.previewData.jobCost))])])],n("tr",[n("td",{staticClass:"bold legend"},[e._v("User:")]),n("td",[e._v(e._s(e.previewData.uniqname))])]),n("tr",[e._m(9),n("td",[n("select",{directives:[{name:"model",rawName:"v-model",value:e.releaseData.queue,expression:"releaseData.queue"}],attrs:{id:"releaseToPrinter"},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.releaseData,"queue",t.target.multiple?a:a[0])}}},[e._l(e.posterQueues.queues,(function(t){return[t.name!==e.virtualQueue.name&&+t.enabled?[n("option",{key:t.name,domProps:{value:t.name}},[e._v(e._s(t.display_name))])]:e._e()]}))],2)])]),n("tr",[null!==e.releaseToError?n("td",{staticClass:"red",attrs:{colspan:"2"}},[e._v(e._s(e.releaseToError))]):e._e()])],2)]):e._e(),e._m(10),n("div",{staticClass:"preview_image"},[n("h3",[e._v("Preview Image")]),e.previewData.img_path?n("a",{attrs:{href:e.previewData.img_path,target:"_blank",title:"Click to see a larger image"}},[n("img",{attrs:{src:e.previewData.img_path,alt:"Click to see a larger image",width:"205"}})]):e._e()]),n("div",{staticClass:"clearfix"})]),n("div",{staticClass:"modal_footer"},[n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member"},[n("div",{staticClass:"button button_blue",on:{click:function(t){return e.closeOpenModal(!1)}}},[e._v("Close")])]),n("div",{staticClass:"flex_member end"},[n("div",{staticClass:"button button_blue",on:{click:function(t){return e.closeOpenModal(!0)}}},[n("i",{staticClass:"fas fa-print mr-2"}),e._v("Release Poster")])])])])])])},ha=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"large_text center"},[e._v("Loading available queues... "),n("img",{attrs:{src:a("d9b6"),alt:"loading","aria-label":"loading poster queues"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"full_width flex_row"},[a("div",{staticClass:"flex_member medium_text center"},[e._v("There are no available poster jobs to release!")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Preview Poster Job")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",{staticClass:"bold"},[a("label",{attrs:{for:"chargeToUser"}},[e._v("User to Charge:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",{staticClass:"bold"},[a("label",{attrs:{for:"chargeToAccount"}},[e._v("Account to Charge:")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("td",[e._v("Looking up user... "),n("img",{staticStyle:{position:"relative",top:"5px"},attrs:{src:a("d9b6"),alt:"loading","aria-label":"looking up user"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"oneoff"}},[e._v("Shortcode to Charge:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",{staticClass:"bold"},[a("label",{attrs:{for:"pickupLocation"}},[e._v("Requested Pick-Up Location:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",{staticClass:"bold"},[a("label",{attrs:{for:"jobCost"}},[e._v("Total estimated cost:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",{staticClass:"bold"},[a("label",{attrs:{for:"releaseToPrinter"}},[e._v("Release To:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"preview_image"},[a("h3",[e._v("Page Layout")]),a("div",{attrs:{id:"canvas_container"}})])}],ga=a("a49b")["papercut_server"],va=a("a49b")["poster"],ba={name:"posters",data:function(){return{accountError:null,adminView:!1,consultantUser:null,enableMask:!1,msg:null,oneoff:null,oneoffValid:!1,papercutUrl:ga,pickupLocation:null,pickupLocationError:null,posterJobs:{isLoaded:!1,isError:!1,jobs:[]},posterQueues:{isLoaded:!1,isError:!1,queues:[]},previewCanvasHeight:360,previewData:{},releaseData:{chargeToAccount:null,chargeToUser:null,jobCost:null,pickupLocation:null,queue:null},releaseToError:null,showModalForJob:null,userAccounts:[],userIsUROP:!1,userIsRestricted:!0,userIsLoading:!1,userLookupError:null,lookupTimeout:null,virtualQueue:null}},props:{user:{type:Object,default:function(){return this.$store.getters.getUser}}},methods:{cancelJob:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:n=t,p.methods.put("/api/poster/".concat(e),{action:"cancel"}).then((function(t){if(+t.data.result.count){for(var a in n.posterJobs.jobs)n.posterJobs.jobs[a].id===e&&(n.$set(n.posterJobs.jobs[a],"pending",0),n.$set(n.posterJobs.jobs[a],"cancelled",1),n.$set(n.posterJobs.jobs[a],"status_message","Job was cancelled"));n.msg="Job was successfully cancelled"}else n.msg="Failed to cancel job!",console.log(t)})).catch((function(e){console.log(e),n.msg="An error occurred! ".concat(e)})).finally((function(){window.setTimeout((function(){n.msg=null}),3e3)}));case 2:case"end":return a.stop()}}),a)})))()},checkBalance:function(){if(this.accountError=null,this.releaseData.chargeToAccount.toLowerCase().startsWith("personal account")){var e=+this.releaseData.chargeToAccount.split("$")[1];e<this.previewData.jobCost&&this.userIsRestricted&&(this.accountError="Insufficient funds to print this poster!")}},closeOpenModal:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!e){a.next=8;break}if(t.adminView&&t.previewData.uniqname===t.consultantUser&&(t.releaseData.pickupLocation||(t.pickupLocationError="Pick-Up Location cannot be empty!")),t.releaseData.queue||(t.releaseToError="You must choose a printer to which your poster will be released!"),!(t.accountError||t.pickupLocationError||t.releaseToError||t.userLookupError)){a.next=5;break}return a.abrupt("return",!1);case 5:return t.msg="Releasing job to ".concat(t.releaseData.queue,"..."),a.next=8,t.releaseJob();case 8:for(t.enableMask=!1,t.showModalForJob=null,t.previewData={},t.accountError=null,t.oneoff=null,t.pickupLocation=null,t.pickupLocationError=null,t.releaseToError=null,t.userLookupError=null,n=0,s=Object.keys(t.releaseData);n<s.length;n++)r=s[n],t.releaseData[r]=null;case 18:case"end":return a.stop()}}),a)})))()},getPosterJobs:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e,n=e.posterJobs.isLoaded?e.posterJobs.jobs:[],t.next=4,Promise.all([p.methods.get("/api/poster?status=pending"),p.methods.get("/api/poster?status=failed&onlyRecent")]).then((function(e){var t=e[0].data.result.result.concat(e[1].data.result.result);if(n.length){var s,r=Object(i["a"])(t);try{for(r.s();!(s=r.n()).done;){var o=s.value,c=!1;for(var l in n)c||o.id!==n[+l].id||(c=!0,n[+l]=o);c||n.push(o)}}catch(u){r.e(u)}finally{r.f()}}else n=t;n.sort((function(e,t){return new Date(e.updated_on).getTime()>new Date(t.updated_on).getTime()?1:-1})),n.map((function(e){return e.submitted_on=Object(Q["a"])(new Date(e.submitted_on.split(".")[0]),"yyyy-LL-dd HH:mm:ss")})),a.$set(a.posterJobs,"jobs",n)})).catch((function(e){console.log(e),a.$set(a.posterJobs,"isError",!0)})).finally((function(){a.$set(a.posterJobs,"isLoaded",!0)}));case 4:case"end":return t.stop()}}),t)})))()},getPosterQueues:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,p.methods.get("/api/queues").then((function(e){var t,n=e.data.result.result.filter((function(e){return 1===+e.poster&&"CCS"===e.service_abbreviation})),s=Object(i["a"])(n);try{for(s.s();!(t=s.n()).done;){var r=t.value;r.name===va.queueName&&(a.virtualQueue=r)}}catch(o){s.e(o)}finally{s.f()}n.sort((function(e,t){return e.name<t.name?-1:1})),a.$set(a.posterQueues,"queues",n)})).catch((function(e){console.log(e),a.posterQueues.isError=!0})).finally((function(){a.posterQueues.isLoaded=!0}));case 2:case"end":return t.stop()}}),t)})))()},lookupShortcode:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n,s,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,n=/^[0-9]+$/g,e.accountError=null,s=!1,e.oneoff?(r="".concat(e.oneoff).match(n),null!==r&&1===r.length?6!==e.oneoff.length?(e.accountError="Shortcode is not a valid length - must be 6 digits long!",s=!0):p.methods.get("/api/shortcodes/".concat(a.oneoff)).then((function(e){+e.data.result.count?"o"!==e.data.result.result["shortCodeStatus"].toLowerCase()&&(a.accountError="Shortcode ".concat(a.oneoff," has status ").concat(e.data.result.result["ShortCodeStatusDescription"]," and cannot be used!"),s=!0):(a.accountError="Shortcode ".concat(a.oneoff," does not exist!"),s=!0)})).catch((function(e){console.log(e),a.accountError="Failed to validate specified shortcode!",s=!0})).finally((function(){a.oneoffValid=!s})):(e.accountError="Specified shortcode ".concat(e.oneoff," is invalid!"),a.oneoffValid=!1)):(a.accountError="Please enter the shortcode the customer would like to charge.",a.oneoffValid=!1);case 5:case"end":return t.stop()}}),t)})))()},lookupUser:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,n=/^[0-9A-Za-z]+$/g,a.accountError=null,a.oneoff=null,a.userLookupError=null,a.userIsUROP=!1,e.releaseData.chargeToUser?(s="".concat(e.releaseData.chargeToUser).match(n),null!==s&&1===s.length?e.releaseData.chargeToUser.length>8||e.releaseData.chargeToUser.length<3?e.userLookupError="Uniqname is not a valid length - must be between 3 and 8 characters":(a.userIsLoading=!0,p.methods.get("/api/users/".concat(a.releaseData.chargeToUser)).then((function(e){if(+e.data.result.count){var t=0;a.userIsRestricted=+e.data.result.result[0].is_restricted,e.data.result.result[0].accounts.euc.personal.map((function(e){return t+=+e.balance})),a.userAccounts=[{balance:t,name:"Personal Account - $".concat(t)}].concat(e.data.result.result[0].accounts.euc.shared),p.methods.get("/api/groups?viewAs=".concat(a.releaseData.chargeToUser)).then((function(e){e.data.result.result.includes(va.uropGroup)&&(a.userIsUROP=!0)})).catch((function(e){console.log(e),a.userLookupError="Failed to get groups for user ".concat(a.releaseData.chargeToUser)}))}else a.userLookupError="User ".concat(a.releaseData.chargeToUser," does not exist!")})).catch((function(e){console.log(e),a.userAccounts=[],a.accountError="Failed to retrieve user's accounts!"})).finally((function(){a.userIsLoading=!1}))):e.userLookupError="Specified uniqname is invalid!"):(a.userLookupError="Charge to user value cannot be empty!",a.userAccounts=[]);case 7:case"end":return t.stop()}}),t)})))()},previewJob:function(e){var t=document.getElementById("canvas_container"),a=document.getElementById("layout_canvas");a&&t.removeChild(a),this.previewData=this.posterJobs.jobs.filter((function(e){return+e.pending&&e.preview_file_path}))[e],this.previewData.img_path=this.previewData.preview_file_path?"/".concat(this.previewData.preview_file_path.split("/").slice(3).join("/")):null,this.previewData.jobCost=Math.round(100*(this.previewData.height*this.previewData.totalPages*va.cost+Number.EPSILON))/100,this.releaseData.jobCost=this.previewData.jobCost,this.enableMask=!0,this.showModalForJob="".concat(this.virtualQueue.printer_name,"-").concat(e),this.adminView&&this.previewData.uniqname===this.consultantUser||(this.releaseData.chargeToUser=this.previewData.uniqname);var n=document.createElement("canvas");n.id="layout_canvas";var s=n.getContext("2d"),r=s.canvas.width,i=r/va.rollWidth,o=this.previewData.height*i,c=this.previewData.width*i;this.previewCanvasHeight=o,s.fillStyle="#E0E0E0",s.fillRect(0,0,r,o),s.fillStyle="orange",s.fillRect(r-c,0,c,o),t.appendChild(n)},releaseJob:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n,s,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,n=e.previewData.id,s={action:"release",queue:e.releaseData.queue,cost:e.adminView&&e.previewData.uniqname===e.consultantUser?e.releaseData.jobCost:e.previewData.jobCost,chargeToUser:e.adminView&&e.previewData.uniqname===e.consultantUser?e.releaseData.chargeToUser:e.previewData.uniqname},r=e.releaseData.pickupLocation,e.releaseData.chargeToAccount&&!e.releaseData.chargeToAccount.toLowerCase().startsWith("personal account - $")&&("oneoff_shortcode"===e.releaseData.chargeToAccount?s.oneoffShortcode=e.oneoff:s.chargeToAccount=e.releaseData.chargeToAccount),p.methods.put("/api/poster/".concat(n),s).then((function(e){if(+e.data.result.count){for(var t in a.msg="Successfully released job!",a.posterJobs.jobs)a.posterJobs.jobs[t].id===n&&(a.$set(a.posterJobs.jobs[t],"pending",0),a.$set(a.posterJobs.jobs[t],"printed",1),a.$set(a.posterJobs.jobs[t],"status_message","Job was successfully printed"));if(r){var i=document.createElement("a");i.href="/posters/label?location=".concat(r,"&user=").concat(s.chargeToUser),i.target="_blank",i.click(),i.remove()}}else a.msg="Something went wrong - job failed to release!",console.log(e.data.result)})).catch((function(e){a.msg="An error occurred while releasing your job! Please refresh the page and try again.",console.log(e)})).finally((function(){window.setTimeout((function(){a.msg=null}),3e3)}));case 6:case"end":return t.stop()}}),t)})))()},setLocation:function(){this.releaseData.pickupLocation=this.pickupLocation},shortcodeChange:function(e){if(e.key.match(/[\w\d\s]/)||"Backspace"===e.code||"Delete"===e.code||"Minus"===e.code){var t=this;window.clearTimeout(this.lookupTimeout),this.lookupTimeout=window.setTimeout((function(){t.lookupShortcode()}),1e3)}},userChange:function(e){if(e.key.match(/[\w\d\s]/)||"Backspace"===e.code||"Delete"===e.code||"Minus"===e.code){var t=this;window.clearTimeout(this.lookupTimeout),this.lookupTimeout=window.setTimeout((function(){t.lookupUser()}),1e3)}}},created:function(){this.user.uniqname&&(this.getPosterQueues(),this.getPosterJobs(),["manage","admin"].includes(this.user.role)&&(this.adminView=!0,this.consultantUser=va.consultantUser))},mounted:function(){var e=this;window.setInterval((function(){e.getPosterJobs()}),3e4)},watch:{user:function(){this.getPosterQueues(),this.getPosterJobs(),["manage","admin"].includes(this.user.role)&&(this.adminView=!0,this.consultantUser=va.consultantUser)}}},wa=ba,ya=(a("c265"),Object(f["a"])(wa,fa,ha,!1,null,"d895be76",null)),xa=ya.exports,Ca=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper"},[a("div",{attrs:{id:"content",role:"main"}},[a("table",{staticClass:"full_width"},[a("tbody",[a("tr",[a("th",[e._v("User: ")]),a("td",[e._v(e._s(e.user))])]),a("tr",[a("th",[e._v("Pick-Up Location: ")]),a("td",[e._v(e._s(e.location))])]),a("tr",[a("th",[e._v("Printed At: ")]),a("td",[e._v(e._s(e.now))])])])])])])},ka=[],Pa={name:"posterLabel",data:function(){return{location:null,now:null,user:null}},created:function(){this.location=this.$route.query.location,this.now=Object(Q["a"])(Date.now(),"yyyy-LL-dd HH:mm:ss"),this.user=this.$route.query.user},mounted:function(){document.getElementById("header").classList.add("hidden"),document.getElementById("sidebar").classList.add("hidden"),document.getElementsByTagName("body")[0].classList.add("print_ready"),window.print()}},Da=Pa,Aa=(a("fc7e"),Object(f["a"])(Da,Ca,ka,!1,null,"606e19f8",null)),Ea=Aa.exports,ja=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.msg,expression:"msg"}],attrs:{id:"message_container"}},[n("div",{staticClass:"message",attrs:{id:"message"}},[e._v(e._s(e.msg))])]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.enableMask,expression:"enableMask"}],staticClass:"mask dim",attrs:{id:"mask"},on:{click:function(t){return e.closeOpenModal(!1)}}}),n("div",{attrs:{id:"content",role:"main"}},[n("div",{staticClass:"flex_row"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.popFilter,expression:"popFilter"}],staticClass:"box full_box",attrs:{id:"empty_filter_box"}}),n("div",{staticClass:"box full_box",class:e.popFilter?"popped_out":"",attrs:{id:"filter_container"}},[n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member"},[n("h1",[e._v("MPrint Queue Administration")]),n("div",[n("button",{staticClass:"ml-2 button button_large button_blue",on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.showCreateModal()}}},[n("i",{staticClass:"fas fa-plus mr-2"}),e._v("Request New Change")])])]),n("div",{staticClass:"flex_member end"},[n("div",[n("label",{staticClass:"mr-2",attrs:{for:"filter_quick_search"}},[e._v("Quick Search:")]),n("v-select",{staticStyle:{display:"inline-block"},attrs:{id:"filter_quick_search",taggable:"",multiple:"",options:[],"dropdown-should-open":function(){return!1}},on:{input:function(t){return e.filterChanges()}},model:{value:e.quick_search,callback:function(t){e.quick_search=t},expression:"quick_search"}})],1),n("p",{staticClass:"pl-2"},[e._v("Join filters with: "),n("label",{attrs:{for:"join_and"}},[e._v("And")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.filterJoinWith,expression:"filterJoinWith"}],attrs:{type:"radio",id:"join_and",name:"filter_join_with",value:"and",checked:"checked"},domProps:{checked:e._q(e.filterJoinWith,"and")},on:{change:[function(t){e.filterJoinWith="and"},function(t){return e.filterChanges()}]}}),e._v(" or "),n("label",{attrs:{for:"join_or"}},[e._v("Or")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.filterJoinWith,expression:"filterJoinWith"}],attrs:{type:"radio",id:"join_or",name:"filter_join_with",value:"or"},domProps:{checked:e._q(e.filterJoinWith,"or")},on:{change:[function(t){e.filterJoinWith="or"},function(t){return e.filterChanges()}]}})])])]),e.printerChangeData.isLoaded?n("div",{staticClass:"flex_row center"},[n("div",{staticClass:"flex_member"},[n("p",[e._v("Showing "+e._s(e.visibleChangesLength)+" Printer Changes")])])]):e._e()])]),e.printerChangeData.isLoaded?e.printerChangeData.isLoaded&&e.printerChangeData.isError?[n("div",{staticClass:"full_width center medium_text"},[e._v("An error occurred! Please refresh the page to try again.")])]:e.printerChangeData.isLoaded&&!e.printerChangeData.isError&&+e.printerChangeData.printerChanges.length?[e._l(Object.keys(e.visiblePrinterChanges),(function(t,s){return["initializing"!==t||"admin"===e.user.role?["admin"===e.user.role&&s>0||s>1?[n("hr",{key:"divider_"+s,staticClass:"main_divider"})]:e._e(),n("div",{key:t+"_container",staticClass:"flex_row",attrs:{id:t+"_container"}},[n("h2",{staticClass:"capitalize flex_member full_width"},[e._v(e._s(t.replace(/_/g," ")))]),e.visiblePrinterChanges[t].length?[e._l(e.visiblePrinterChanges[t],(function(s,r){return[n("div",{key:"change_"+r,staticClass:"box change_box",class:[e.expandedChanges.includes(s.id)?"expanded":""],attrs:{id:"change_request_"+s.id},on:{click:function(t){return e.expand(s.id)}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.expandedChanges.includes(s.id),expression:"expandedChanges.includes(change.id)"}],staticClass:"minimize_container float_right"},[n("i",{staticClass:"fas fa-window-minimize minimize",attrs:{title:"Collapse"},on:{click:function(t){return t.stopPropagation(),e.collapse(s.id)}}})]),n("h3",{staticClass:"bold"},[e._v(e._s(s.queue_name))]),n("div",[e._v("Requested Change: "),n("span",{staticClass:"capitalize bold",class:s.requested_change+"_request"},[e._v(e._s(s.requested_change))])]),n("div",[e._v("Requested On: "),n("span",[e._v(e._s(s.requested_on))])]),n("div",[e._v("Requested By: "),n("span",[e._v(e._s(s.requested_by))])]),n("div",[e._v("Updated On: "),n("span",[e._v(e._s(s.updated_on))])]),Object.keys(s).includes("tasks")&&s.tasks.length?[n("div",[n("span",[e._v("Status: ")]),"in_progress"===t?n("span",[e._v("In Progress... "),n("img",{staticClass:"ml-2",attrs:{src:a("d9b6"),alt:"Executing change"}})]):"in_progress"!==t&&Object.keys(s).includes("status_message")&&s.status_message?n("span",{domProps:{innerHTML:e._s(s.status_message)}}):e._e()]),n("ol",[e._l(s["tasks"],(function(t){return[n("li",{key:"change_task_"+t.id},[n("span",[e._v(e._s(t.task_description)+": ")]),n("span",{staticClass:"capitalize"},[e._v(e._s(t.task_status))]),n("span",{staticClass:"task_icon",class:t.task_status.replace(" ","_")}),Object.keys(t).includes("status_message")&&t.status_message?[n("ul",[n("li",[e._v(e._s(t.status_message))])])]:e._e()],2)]}))],2)]:[n("div",[e._v("Status Message: "),n("span",{domProps:{innerHTML:e._s(s.status_message)}}),"in_progress"===t?n("img",{staticClass:"ml-2",attrs:{src:a("d9b6"),alt:"Executing change"}}):e._e()])],e.expandedChanges.includes(s.id)?[n("hr",{staticClass:"box_divider"}),n("div",[e._v("Request Details:")]),n("div",{staticClass:"expanded_section"},[e._l(Object.keys(s),(function(t){return[["id","queue_name","display_name","requested_change","status","status_message","requested_by","requested_on","updated_by","updated_on"].includes(t)||null===s[t]?e._e():[n("div",{key:t+"_"+s.id},[n("b",[e._v(e._s(t))]),e._v(": "+e._s(s[t]))])]]}))],2)]:e._e(),"admin"===e.user.role||e.user.uniqname===s.requested_by?[n("div",{staticClass:"available_actions"},["pending"===t?[n("div",{staticClass:"float_left"},[n("div",{staticClass:"button button_red mr-4",class:e.disableButton?"disabled":"",on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.deleteChange(s.id)}}},[e._v("Cancel Printer Change"),n("i",{staticClass:"fas fa-times ml-2"})])]),n("div",{staticClass:"float_right"},[n("div",{staticClass:"button button_blue",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.showEditModal(r)}}},[e._v("Resume"),n("i",{staticClass:"ml-2 fas fa-angle-double-right"})])]),n("div",{staticClass:"clearfix"})]:"failed"===t||"manual_action_required"===t?[n("div",{staticClass:"float_right"},[n("div",{staticClass:"button button_blue",class:e.disableButton?"disabled":"",on:{click:function(a){return a.stopPropagation(),a.preventDefault(),e.markAsComplete(r,t)}}},[e._v("Mark Completed"),n("i",{staticClass:"ml-2 fas fa-check"})])]),n("div",{staticClass:"clearfix"})]:"initializing"===t&&"admin"===e.user.role?[n("div",{staticClass:"float_right"},[n("div",{staticClass:"button button_blue",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.kickstartChange(r)}}},[e._v("Force Change to Start"),n("i",{staticClass:"ml-2 fas fa-fast-forward"})])]),n("div",{staticClass:"clearfix"})]:"completed"===t&&"create"===s.requested_change?[n("div",{staticClass:"float_right"},[n("a",{staticClass:"button button_blue",attrs:{href:e.publicPath+"/labels/"+s.queue_name,target:"_blank"},on:{click:function(e){e.stopPropagation()}}},[e._v("Print Queue Name Label"),n("i",{staticClass:"ml-2 fas fa-print"})])]),n("div",{staticClass:"clearfix"})]:e._e()],2)]:e._e()],2)]}))]:[n("div",{staticClass:"full_width medium_text center"},[e._v("There are no printer change requests with status '"+e._s(t.replace(/_/g," "))+"'!")])]],2)]:e._e()]}))]:[n("div",{staticClass:"medium_text center full_width"},[e._v("No printer changes were found!")])]:[e._m(0)]],2),e.enableMask&&!Object.keys(e.editChange).length?n("div",{staticClass:"modal wide_modal",attrs:{id:"create_change_modal"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeOpenModal(!1)}}},[e._m(1),n("div",{staticClass:"modal_content"},[Object.keys(e.createChange).length?[n("div",{directives:[{name:"show",rawName:"v-show",value:null!==e.validationMsg,expression:"validationMsg !== null"}],staticClass:"red center pad-8"},[e._v(e._s(e.validationMsg))]),n("h2",[e._v("Requested Change: "),n("span",{staticClass:"capitalize bold"},[e._v(e._s(e.createChange.requested_change))])]),n("div",{staticClass:"pad-8"},[e.viewSummary?[n("h2",[e._v("Printer Change Summary")]),n("table",{staticClass:"full_width label_text"},[n("tbody",{staticClass:"lh-2"},[n("tr",[n("td",[e._v("Queue Name:")]),n("td",{class:Object.keys(e.createChange).includes("new_queue_name")&&e.createChange.new_queue_name?"italic":""},[e._v(e._s(Object.keys(e.createChange).includes("new_queue_name")&&e.createChange.new_queue_name?e.createChange.new_queue_name:e.createChange.queue_name))])]),n("tr",[n("td",[e._v("Display Name:")]),n("td",{class:Object.keys(e.createChange).includes("new_display_name")&&e.createChange.new_display_name?"italic":""},[e._v(e._s(Object.keys(e.createChange).includes("new_display_name")&&e.createChange.new_display_name?e.createChange.new_display_name:e.createChange.display_name))])]),("edit"===e.createChange.requested_change||"move"===e.createChange.requested_change)&&Object.keys(e.createChange).includes("new_queue_name")&&e.createChange.new_queue_name?[e._m(8)]:e._e(),"create"===e.createChange.requested_change||"move"===e.createChange.requested_change?[n("tr",[n("td",[e._v("Building")]),n("td",{class:e.chosenQueue&&e.chosenQueue.name.split("-")[1]!==e.createChange.building?"italic":""},[e._v(e._s(e.buildingData.buildings.filter((function(t){return t.abbreviation===e.createChange.building}))[0].common_name))])]),n("tr",[n("td",[e._v("Room")]),n("td",{class:e.chosenQueue&&e.chosenQueue.room!==e.createChange.room?"italic":""},[e._v(e._s(e.createChange.room))])]),n("tr",[n("td",[e._v("Map Location")]),n("td",{class:!e.chosenQueue||e.chosenQueue.floor_map_x===e.createChange.map_x&&e.chosenQueue.floor_map_y===e.createChange.map_y?"":"italic"},[e._v("X: "+e._s(e.createChange.map_x)+", Y: "+e._s(e.createChange.map_y))])])]:e._e(),"create"===e.createChange.requested_change||"edit"===e.createChange.requested_change?[n("tr",[n("td",[e._v("Unit:")]),n("td",{class:e.chosenQueue&&e.chosenQueue.unit_id!==e.createChange.unit?"italic":""},[e._v(e._s(e.unitData.units.filter((function(t){return t.id===e.createChange.unit}))[0].display_name))])]),n("tr",[n("td",[e._v("Queue Restrictions:")]),n("td",{class:e.chosenQueue&&e.chosenQueue.queue_restrictions!==e.createChange.queue_restrictions.join(",")?"italic":""},[e._v(e._s(e.createChange.queue_restrictions?e.createChange.queue_restrictions.join(", "):"None"))])]),n("tr",[n("td",[e._v("Printer Model:")]),n("td",{class:e.chosenQueue&&e.chosenQueue.model_type!==e.createChange.type?"italic":""},[e._v(e._s(e.modelData.models.filter((function(t){return t.type===e.createChange.type}))[0].display_name))])]),n("tr",[n("td"),n("td",{class:e.chosenQueue&&e.chosenQueue.model_type!==e.createChange.type?"italic":"",domProps:{innerHTML:e._s(e.modelData.models.filter((function(t){return t.type===e.createChange.type}))[0].driver_info)}})]),n("tr",[n("td"),n("td",{class:e.chosenQueue&&e.chosenQueue.model_type!==e.createChange.type?"italic":"",domProps:{innerHTML:e._s(e.modelData.models.filter((function(t){return t.type===e.createChange.type}))[0].additional_features)}})]),"physical"===e.createChange.queue_type?[n("tr",[n("td",[e._v("MAC Address:")]),n("td",{class:e.chosenQueue&&e.chosenQueue.mac_address!==e.createChange["mac"]?"italic":""},[e._v(e._s(e.createChange["mac"]))])]),n("tr",[n("td",[e._v("Ignore MAC Address Vendor Validation:")]),n("td",[e._v(e._s(e.createChange.override_mac_vendor?"Yes":"No"))])]),n("tr",[n("td",[e._v("IP Address:")]),n("td",{class:e.chosenQueue&&e.chosenQueue.ip!==e.createChange.assigned_ip?"italic":""},[e._v(e._s("have"===e.createChange.ip?e.createChange.assigned_ip:"Assign an IP for me"))])])]:[e._m(9),e._l(e.createChange.subqueue_macs,(function(t,a){return[n("tr",{key:"subqueue_row_"+a},[n("td",[e._v("MAC: "+e._s(t))]),n("td",[e._v("IP: "+e._s("assign"===e.createChange.subqueue_ips[a]?"Assign an IP automatically":e.createChange.subqueue_assigned_ips[a]))])])]}))]]:e._e(),"delete"!==e.createChange.requested_change?[(Object.keys(e.createChange).includes("new_queue_name")&&e.createChange.new_queue_name?e.createChange.new_queue_name.indexOf("color")>-1:e.createChange.queue_name.indexOf("color")>-1)?[n("tr",[n("td",[e._v("Default to print in color:")]),n("td",[e._v(e._s(+e.createChange.default_color?"Yes":"No"))])])]:e._e(),n("tr",[n("td",[e._v("Default to print duplex:")]),n("td",[e._v(e._s(+e.createChange.default_duplex?"Yes":"No"))])]),n("tr",[n("td",[e._v("Enable Hardware Check:")]),n("td",[e._v(e._s(+e.createChange.hardware_check?"Yes":"No"))])])]:"delete"===e.createChange.requested_change&&e.chosenQueue&&e.chosenQueue.ip.startsWith("10.225.")?[n("tr",[n("td",[e._v("Delete DHCP Reservation:")]),n("td",[e._v(e._s(+e.createChange.delete_dhcp_reservation?"Yes":"No"))])])]:e._e()],2)])]:[n("table",{staticClass:"full_width"},[n("tbody",{staticClass:"lh-2"},[e._m(10),"create"!==e.createChange.requested_change?[n("tr",[n("td",{staticClass:"help_text",attrs:{colspan:"2"}},[n("span",{staticClass:"capitalize"},[e._v(e._s(e.createChange.requested_change))]),e._v(" a Queue")])]),n("tr",[n("td",[n("label",{attrs:{for:"create_change_queue"}},[e._v("Impacted Queue"),e.requiredFields[e.createChange.requested_change].includes("queue_name")?[n("b",{staticClass:"red"},[e._v("*")])]:e._e(),e._v(":")],2)]),n("td",[n("v-select",{attrs:{id:"create_change_queue",options:e.queueData.queues,label:"display_name",filterBy:e._vselectFilterQueues,reduce:function(e){return e.name},value:e.chosenQueue},on:{input:e.changeQueue},scopedSlots:e._u([{key:"selected-option",fn:function(t){var a=t.display_name;return[n("div",{attrs:{"aria-label":a}},[e._v(e._s(a))])]}},{key:"option",fn:function(t){var a=t.display_name,s=t.name;return[n("div",{staticClass:"medium_text",attrs:{"aria-label":a}},[e._v(e._s(a))]),n("div",[e._v(e._s(s))])]}}],null,!1,2434795739)})],1)]),Object.keys(e.submitError).includes("queue_name")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2"}},[e._v(e._s(e.submitError.queue_name))])]):e._e()]:e._e(),"delete"===e.createChange.requested_change&&e.chosenQueue&&e.chosenQueue.ip.startsWith("10.225.")?[n("tr",[e._m(11),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.createChange.delete_dhcp_reservation,expression:"createChange.delete_dhcp_reservation"}],attrs:{type:"checkbox",id:"create_change_delete_dhcp"},domProps:{checked:Array.isArray(e.createChange.delete_dhcp_reservation)?e._i(e.createChange.delete_dhcp_reservation,null)>-1:e.createChange.delete_dhcp_reservation},on:{change:function(t){var a=e.createChange.delete_dhcp_reservation,n=t.target,s=!!n.checked;if(Array.isArray(a)){var r=null,i=e._i(a,r);n.checked?i<0&&e.$set(e.createChange,"delete_dhcp_reservation",a.concat([r])):i>-1&&e.$set(e.createChange,"delete_dhcp_reservation",a.slice(0,i).concat(a.slice(i+1)))}else e.$set(e.createChange,"delete_dhcp_reservation",s)}}})])])]:e._e(),"create"===e.createChange.requested_change||"move"===e.createChange.requested_change?[e._m(12),n("tr",[n("td",[n("label",{attrs:{for:"create_change_building"}},[e._v("Building"),e.requiredFields[e.createChange.requested_change].includes("building")?[n("b",{staticClass:"red"},[e._v("*")])]:e._e(),e._v(":")],2)]),n("td",[n("v-select",{attrs:{id:"create_change_building",options:e.buildingData.buildings,label:"common_name",filterBy:e._vselectFilterBuildings,reduce:function(e){return e.abbreviation},value:e.chosenBuilding},on:{input:e.changeBuilding},scopedSlots:e._u([{key:"selected-option",fn:function(t){var a=t.common_name;return[n("div",{attrs:{"aria-label":a}},[e._v(e._s(a))])]}},{key:"option",fn:function(t){var a=t.common_name,s=t.abbreviation;return[n("div",{staticClass:"medium_text",attrs:{"aria-label":a}},[e._v(e._s(a))]),n("div",[e._v(e._s(s))])]}}],null,!1,958093403)})],1)]),Object.keys(e.submitError).includes("building")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2"}},[e._v(e._s(e.submitError.building))])]):e._e(),n("tr",[n("td",[n("label",{attrs:{for:"create_change_room"}},[e._v("Room"),e.requiredFields[e.createChange.requested_change].includes("room")?[n("b",{staticClass:"red"},[e._v("*")])]:e._e(),e._v(":")],2)]),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.createChange.room,expression:"createChange.room"}],attrs:{type:"text",id:"create_change_room"},domProps:{value:e.createChange.room},on:{input:function(t){t.target.composing||e.$set(e.createChange,"room",t.target.value)}}})])]),Object.keys(e.submitError).includes("room")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2"}},[e._v(e._s(e.submitError.room))])]):e._e(),n("tr",[n("td",[n("label",{attrs:{for:"create_change_floor"}},[e._v("Floor"),e.requiredFields[e.createChange.requested_change].includes("floor")?[n("b",{staticClass:"red"},[e._v("*")])]:e._e(),e._v(":")],2)]),n("td",[n("v-select",{attrs:{id:"create_change_floor",options:e.floorData.floors[e.createChange.building],label:"name",reduce:function(e){return e.id},value:e.chosenFloor},on:{input:e.changeFloor},scopedSlots:e._u([{key:"selected-option",fn:function(t){var a=t.name;return[n("div",{attrs:{"aria-label":a}},[e._v(e._s(a))])]}},{key:"option",fn:function(t){var a=t.name;return[n("div",{staticClass:"medium_text",attrs:{"aria-label":a}},[e._v(e._s(a))])]}}],null,!1,1926499506)})],1)]),Object.keys(e.submitError).includes("floor")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2"}},[e._v(e._s(e.submitError["floor"]))])]):e._e(),e.showMap?[n("tr",[n("td",{attrs:{colspan:"2"}},[n("div",{staticClass:"map_wrapper"},[n("img",{class:e.noMapAvailable?"no_map":"",attrs:{src:e.renderImg(),alt:"floorplan"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.setCoords(t)}}}),n("div",{staticClass:"marker",style:"position: absolute; top: "+e.createChange.map_y+"px; left: "+e.createChange.map_x+"px;",attrs:{title:e.createChange.display_name}},[n("i",{staticClass:"fas fa-print"})])])])])]:[n("tr",[n("td",{staticClass:"label_text"},[e._v("Map Location:")]),n("td",[n("div",[n("a",{attrs:{href:""},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e._showMap.apply(null,arguments)}}},[e._v("Plot Printer Location")])]),n("div",{staticClass:"label_text"},[e._v("X: "+e._s(e.createChange.map_x)+", Y: "+e._s(e.createChange.map_y))])])])]]:e._e(),"create"===e.createChange.requested_change||"edit"===e.createChange.requested_change?[e._m(13),n("tr",[n("td",[n("label",{attrs:{for:"create_change_unit"}},[e._v("Affiliated Unit"),e.requiredFields[e.createChange.requested_change].includes("unit")?[n("b",{staticClass:"red"},[e._v("*")])]:e._e(),e._v(":")],2)]),n("td",[n("v-select",{attrs:{id:"create_change_unit",options:e.unitData.units,label:"display_name",reduce:function(e){return e.id},value:e.chosenUnit},on:{input:e.changeUnit},scopedSlots:e._u([{key:"selected-option",fn:function(t){var a=t.display_name;return[n("div",{attrs:{"aria-label":a}},[e._v(e._s(a))])]}},{key:"option",fn:function(t){var a=t.display_name;return[n("div",{staticClass:"medium_text",attrs:{"aria-label":a}},[e._v(e._s(a))])]}}],null,!1,987545010)})],1)]),Object.keys(e.submitError).includes("unit")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2"}},[e._v(e._s(e.submitError.unit))])]):e._e(),n("tr",[n("td",[n("label",{attrs:{for:"create_change_queue_restrictions"}},[e._v("Queue Restrictions"),e.requiredFields[e.createChange.requested_change].includes("queue_restrictions")?[n("b",{staticClass:"red"},[e._v("*")])]:e._e(),e._v(":")],2)]),n("td",[n("v-select",{attrs:{id:"create_change_queue_restrictions",options:e.groupData.groups,multiple:"",taggable:"",value:e.chosenQueueRestrictions},on:{input:e.changeQueueRestrictions}})],1)]),e._m(14),n("tr",[n("td",[n("label",{attrs:{for:"create_change_model"}},[e._v("Printer Model"),e.requiredFields[e.createChange.requested_change].includes("type")?[n("b",{staticClass:"red"},[e._v("*")])]:e._e(),e._v(":")],2)]),n("td",[n("v-select",{attrs:{id:"create_change_model",options:e.modelData.models,label:"display_name",reduce:function(e){return e.type},filterBy:e._vselectFilterModelTypes,value:e.chosenModelType},on:{input:e.changeModelType},scopedSlots:e._u([{key:"selected-option",fn:function(t){var a=t.display_name;return[n("div",{attrs:{"aria-label":a}},[e._v(e._s(a))])]}},{key:"option",fn:function(t){var a=t.display_name,s=t.additional_features,r=t.driver_info;return[n("div",{staticClass:"medium_text",attrs:{"aria-label":a}},[e._v(e._s(a))]),n("div",{domProps:{innerHTML:e._s(r)}}),n("div",{domProps:{innerHTML:e._s(s)}})]}}],null,!1,4189482354)})],1)]),Object.keys(e.submitError).includes("type")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2"}},[e._v(e._s(e.submitError.type))])]):e._e(),n("tr",[n("td",[n("label",{attrs:{for:"create_change_class_queue"}},[e._v("I want to load balance print jobs between multiple identical printers"),e.requiredFields[e.createChange.requested_change].includes("class_queue")?[n("b",{staticClass:"red"},[e._v("*")])]:e._e(),e._v(":")],2)]),n("td",[n("input",{attrs:{id:"create_change_class_queue",type:"checkbox"},domProps:{checked:"virtual"===e.createChange.queue_type},on:{input:e.changeQueueType}})])]),Object.keys(e.submitError).includes("queue_type")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2"}},[e._v(e._s(e.submitError.queue_type))])]):e._e(),"virtual"===e.createChange.queue_type?[e._l(e.createChange.subqueue_macs,(function(t,a){return[n("tr",{key:"subqueue_"+a},[n("td",{attrs:{colspan:"2"}},[a>0?[n("hr",{staticClass:"modal_divider"})]:e._e(),n("table",{staticClass:"subqueue_table"},[n("tr",[n("td",[e._v("Printer "+e._s(a+1))]),n("td",[n("label",{attrs:{for:"subqueue_mac_"+a}},[e._v("MAC: ")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.createChange.subqueue_macs[a],expression:"createChange.subqueue_macs[index]"}],attrs:{type:"text",id:"subqueue_mac_"+a},domProps:{value:e.createChange.subqueue_macs[a]},on:{input:function(t){t.target.composing||e.$set(e.createChange.subqueue_macs,a,t.target.value)}}})]),n("td",[n("label",{attrs:{for:"subqueue_ip_type_"+a}},[e._v("IP: ")]),n("select",{directives:[{name:"model",rawName:"v-model",value:e.createChange.subqueue_ips[a],expression:"createChange.subqueue_ips[index]"}],attrs:{id:"subqueue_ip_type_"+a},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.createChange.subqueue_ips,a,t.target.multiple?n:n[0])}}},[n("option",{attrs:{value:"assign"}},[e._v("I need an IP")]),n("option",{attrs:{value:"have"}},[e._v("I already have an IP")])])]),"have"===e.createChange.subqueue_ips[a]?[n("td",[n("label",{attrs:{for:"subqueue_assigned_ips_"+a}},[e._v("Assigned IP: ")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.createChange.subqueue_assigned_ips[a],expression:"createChange.subqueue_assigned_ips[index]"}],attrs:{type:"text",id:"subqueue_assigned_ips_"+a},domProps:{value:e.createChange.subqueue_assigned_ips[a]},on:{input:function(t){t.target.composing||e.$set(e.createChange.subqueue_assigned_ips,a,t.target.value)}}})])]:[n("td")],n("td",[n("i",{staticClass:"red fas fa-trash delete_subqueue",attrs:{title:"Remove printer from cluster"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.removeSubQueue(a)}}})])],2),n("tr",[n("td",{attrs:{colspan:"4"}},[n("a",{attrs:{href:""},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.addSubQueue.apply(null,arguments)}}},[e._v("Add another printer to this cluster"),n("i",{staticClass:"fas fa-plus ml-2"})])])])])],2)])]}))]:[n("tr",[n("td",[n("label",{attrs:{for:"create_change_mac_address"}},[e._v("MAC Address"),e.requiredFields[e.createChange.requested_change].includes("mac")?[n("b",{staticClass:"red"},[e._v("*")])]:e._e(),e._v(":")],2)]),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.createChange["mac"],expression:"createChange['mac']"}],attrs:{id:"create_change_mac_address",type:"text"},domProps:{value:e.createChange["mac"]},on:{input:function(t){t.target.composing||e.$set(e.createChange,"mac",t.target.value)}}})])]),Object.keys(e.submitError).includes("mac")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2"}},[e._v(e._s(e.submitError["mac"]))])]):e._e(),n("tr",[n("td",[n("label",{attrs:{for:"create_change_ignore_vendor"}},[e._v("Do not validate the vendor associated with this MAC address"),e.requiredFields[e.createChange.requested_change].includes("override_mac_vendor")?[n("b",{staticClass:"red"},[e._v("*")])]:e._e(),e._v(":")],2)]),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.createChange.override_mac_vendor,expression:"createChange.override_mac_vendor"}],attrs:{id:"create_change_ignore_vendor",type:"checkbox"},domProps:{checked:Array.isArray(e.createChange.override_mac_vendor)?e._i(e.createChange.override_mac_vendor,null)>-1:e.createChange.override_mac_vendor},on:{change:function(t){var a=e.createChange.override_mac_vendor,n=t.target,s=!!n.checked;if(Array.isArray(a)){var r=null,i=e._i(a,r);n.checked?i<0&&e.$set(e.createChange,"override_mac_vendor",a.concat([r])):i>-1&&e.$set(e.createChange,"override_mac_vendor",a.slice(0,i).concat(a.slice(i+1)))}else e.$set(e.createChange,"override_mac_vendor",s)}}})])]),n("tr",[n("td",[n("label",{attrs:{for:"create_change_ip"}},[e._v("IP Address"),e.requiredFields[e.createChange.requested_change].includes("ip")?[n("b",{staticClass:"red"},[e._v("*")])]:e._e(),e._v(":")],2)]),n("td",[n("select",{directives:[{name:"model",rawName:"v-model",value:e.createChange["ip"],expression:"createChange['ip']"}],attrs:{id:"create_change_ip",type:"text"},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.createChange,"ip",t.target.multiple?a:a[0])}}},[n("option",{attrs:{value:"assign"}},[e._v("I need an IP")]),n("option",{attrs:{value:"have"}},[e._v("I already have an IP")])])])]),n("tr",["assign"===e.createChange["ip"]?[e._m(15)]:[n("td"),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.createChange["assigned_ip"],expression:"createChange['assigned_ip']"}],attrs:{type:"text"},domProps:{value:e.createChange["assigned_ip"]},on:{input:function(t){t.target.composing||e.$set(e.createChange,"assigned_ip",t.target.value)}}})])]],2),Object.keys(e.submitError).includes("assigned_ip")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2"}},[e._v(e._s(e.submitError["assigned_ip"]))])]):e._e()]]:e._e(),"delete"!==e.createChange.requested_change?[e._m(16),e.chosenModelType&&+e.chosenModelType.color?[n("tr",[e._m(17),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.createChange.default_color,expression:"createChange.default_color"}],attrs:{type:"checkbox",id:"create_change_default_color"},domProps:{checked:Array.isArray(e.createChange.default_color)?e._i(e.createChange.default_color,null)>-1:e.createChange.default_color},on:{change:function(t){var a=e.createChange.default_color,n=t.target,s=!!n.checked;if(Array.isArray(a)){var r=null,i=e._i(a,r);n.checked?i<0&&e.$set(e.createChange,"default_color",a.concat([r])):i>-1&&e.$set(e.createChange,"default_color",a.slice(0,i).concat(a.slice(i+1)))}else e.$set(e.createChange,"default_color",s)}}})])])]:e._e(),n("tr",[e._m(18),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.createChange.default_duplex,expression:"createChange.default_duplex"}],attrs:{type:"checkbox",id:"create_change_default_duplex"},domProps:{checked:Array.isArray(e.createChange.default_duplex)?e._i(e.createChange.default_duplex,null)>-1:e.createChange.default_duplex},on:{change:function(t){var a=e.createChange.default_duplex,n=t.target,s=!!n.checked;if(Array.isArray(a)){var r=null,i=e._i(a,r);n.checked?i<0&&e.$set(e.createChange,"default_duplex",a.concat([r])):i>-1&&e.$set(e.createChange,"default_duplex",a.slice(0,i).concat(a.slice(i+1)))}else e.$set(e.createChange,"default_duplex",s)}}})])]),n("tr",[e._m(19),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.createChange.hardware_check,expression:"createChange.hardware_check"}],attrs:{type:"checkbox",id:"create_change_hw_check"},domProps:{checked:Array.isArray(e.createChange.hardware_check)?e._i(e.createChange.hardware_check,null)>-1:e.createChange.hardware_check},on:{change:function(t){var a=e.createChange.hardware_check,n=t.target,s=!!n.checked;if(Array.isArray(a)){var r=null,i=e._i(a,r);n.checked?i<0&&e.$set(e.createChange,"hardware_check",a.concat([r])):i>-1&&e.$set(e.createChange,"hardware_check",a.slice(0,i).concat(a.slice(i+1)))}else e.$set(e.createChange,"hardware_check",s)}}})])])]:e._e()],2)])]],2)]:[n("div",{staticClass:"medium_text pb-12"},[e._v("What do you want to do?")]),e._m(2),n("hr",{staticClass:"modal_divider"}),e._m(3),n("hr",{staticClass:"modal_divider"}),e._m(4),e._m(5),n("hr",{staticClass:"modal_divider"}),e._m(6),e._m(7),n("hr",{staticClass:"modal_divider"}),n("div",{staticClass:"flex_row center"},[n("div",{staticClass:"flex_member"},[n("div",{staticClass:"button button_blue",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.initializeChange("create")}}},[e._v("Create a queue")])]),n("div",{staticClass:"flex_member"},[n("div",{staticClass:"button button_blue",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.initializeChange("delete")}}},[e._v("Delete a queue")])]),n("div",{staticClass:"flex_member"},[n("div",{staticClass:"button button_blue",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.initializeChange("edit")}}},[e._v("Edit a queue")])]),n("div",{staticClass:"flex_member"},[n("div",{staticClass:"button button_blue",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.initializeChange("move")}}},[e._v("Move a queue")])])])]],2),n("div",{staticClass:"modal_footer"},[n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member"},[n("div",{staticClass:"button",on:{click:function(t){return e.closeOpenModal(!1)}}},[e._v("Cancel")])]),e.viewSummary?[n("div",{staticClass:"flex_member end"},[n("div",{staticClass:"button mr-4",on:{click:e.hideSummary}},[e._v("Go Back")]),"create"===e.createChange.requested_change?[n("div",{staticClass:"button button_blue",on:{click:function(t){return e.closeOpenModal(!0)}}},[n("i",{staticClass:"fas fa-plus mr-2"}),e._v("Submit Printer Change")])]:"delete"===e.createChange.requested_change?[n("div",{staticClass:"button button_blue",on:{click:function(t){return e.closeOpenModal(!0)}}},[n("i",{staticClass:"fas fa-trash-alt mr-2"}),e._v("Submit Printer Change")])]:"edit"===e.createChange.requested_change?[n("div",{staticClass:"button button_blue",on:{click:function(t){return e.closeOpenModal(!0)}}},[n("i",{staticClass:"fas fa-edit mr-2"}),e._v("Submit Printer Change")])]:"move"===e.createChange.requested_change?[n("div",{staticClass:"button button_blue",on:{click:function(t){return e.closeOpenModal(!0)}}},[n("i",{staticClass:"fas fa-map-marked mr-2"}),e._v("Submit Printer Change")])]:e._e()],2)]:Object.keys(e.createChange).length?[n("div",{staticClass:"flex_member end"},[n("div",{staticClass:"button button_blue",on:{click:e.validateChange}},[e._v("Review Printer Change")])])]:e._e()],2)])]):e._e(),e.enableMask&&Object.keys(e.editChange).length?n("div",{staticClass:"modal wide_modal",attrs:{id:"edit_change_modal"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeOpenModal(!1)}}},[e._m(20),n("div",{staticClass:"modal_content"},[n("div",{directives:[{name:"show",rawName:"v-show",value:null!==e.validationMsg,expression:"validationMsg !== null"}],staticClass:"red center pad-8"},[e._v(e._s(e.validationMsg))]),n("h2",[e._v("Requested Change: "),n("span",{staticClass:"capitalize bold"},[e._v(e._s(e.editChange.requested_change))])]),n("div",{staticClass:"pad-8"},[e.viewSummary?[n("h2",[e._v("Printer Change Summary")]),n("table",{staticClass:"full_width label_text"},[n("tbody",{staticClass:"lh-2"},[n("tr",[n("td",[e._v("Queue Name:")]),n("td",{class:Object.keys(e.editChange).includes("new_queue_name")&&e.editChange.new_queue_name?"italic":""},[e._v(e._s(Object.keys(e.editChange).includes("new_queue_name")&&e.editChange.new_queue_name?e.editChange.new_queue_name:e.editChange.queue_name))])]),n("tr",[n("td",[e._v("Display Name:")]),n("td",{class:Object.keys(e.editChange).includes("new_display_name")&&e.editChange.new_display_name?"italic":""},[e._v(e._s(Object.keys(e.editChange).includes("new_display_name")&&e.editChange.new_display_name?e.editChange.new_display_name:e.editChange.display_name))])]),("edit"===e.editChange.requested_change||"move"===e.editChange.requested_change)&&Object.keys(e.editChange).includes("new_queue_name")&&e.editChange.new_queue_name?[e._m(21)]:e._e(),n("tr",[n("td",[e._v("Unit:")]),n("td",{class:e.editChange.unit!==e.visiblePrinterChanges.pending[e.changeIndex].unit?"italic":""},[e._v(e._s(e.unitData.units.filter((function(t){return t.id===e.editChange.unit}))[0].display_name))])]),n("tr",[n("td",[e._v("Queue Restrictions:")]),n("td",{class:e.editChange.queue_restrictions!==e.visiblePrinterChanges.pending[e.changeIndex].queue_restrictions?"italic":""},[e._v(e._s(e.editChange.queue_restrictions?e.editChange.queue_restrictions.join(", "):"None"))])]),n("tr",[n("td",[e._v("Printer Model:")]),n("td",{class:e.editChange.type!==e.visiblePrinterChanges.pending[e.changeIndex].type?"italic":""},[e._v(e._s(e.modelData.models.filter((function(t){return t.type===e.editChange.type}))[0].display_name))])]),n("tr",[n("td"),n("td",{class:e.editChange.type!==e.visiblePrinterChanges.pending[e.changeIndex].type?"italic":"",domProps:{innerHTML:e._s(e.modelData.models.filter((function(t){return t.type===e.editChange.type}))[0].driver_info)}})]),n("tr",[n("td"),n("td",{class:e.editChange.type!==e.visiblePrinterChanges.pending[e.changeIndex].type?"italic":"",domProps:{innerHTML:e._s(e.modelData.models.filter((function(t){return t.type===e.editChange.type}))[0].additional_features)}})]),"physical"===e.editChange.queue_type?[n("tr",[n("td",[e._v("MAC Address:")]),n("td",{class:e.editChange["mac"]!==e.visiblePrinterChanges.pending[e.changeIndex]["mac"]?"italic":""},[e._v(e._s(e.editChange["mac"]))])]),n("tr",[n("td",[e._v("Ignore MAC Address Vendor Validation:")]),n("td",[e._v(e._s(e.editChange.override_mac_vendor?"Yes":"No"))])]),n("tr",[n("td",[e._v("IP Address:")]),n("td",{class:e.editChange.ip!==e.visiblePrinterChanges.pending[e.changeIndex].ip?"italic":""},[e._v(e._s("have"===e.editChange.ip?e.editChange.assigned_ip:"Assign an IP for me"))])])]:[e._m(22),e._l(e.editChange.subqueue_macs,(function(t,a){return[n("tr",{key:"subqueue_row_"+a},[n("td",[e._v("MAC: "+e._s(t))]),n("td",[e._v("IP: "+e._s("assign"===e.editChange.subqueue_ips[a]?"Assign an IP automatically":e.editChange.subqueue_assigned_ips[a]))])])]}))],(Object.keys(e.editChange).includes("new_queue_name")&&e.editChange.new_queue_name?e.editChange.new_queue_name.indexOf("color")>-1:e.editChange.queue_name.indexOf("color")>-1)?[n("tr",[n("td",[e._v("Default to print in color:")]),n("td",[e._v(e._s(+e.editChange.default_color?"Yes":"No"))])])]:e._e(),n("tr",[n("td",[e._v("Default to print duplex:")]),n("td",[e._v(e._s(+e.editChange.default_duplex?"Yes":"No"))])]),n("tr",[n("td",[e._v("Enable Hardware Check:")]),n("td",[e._v(e._s(+e.editChange.hardware_check?"Yes":"No"))])])],2)])]:[n("table",{staticClass:"full_width"},[n("tbody",{staticClass:"lh-2"},[e._m(23),"create"!==e.editChange.requested_change?[n("tr",[n("td",{staticClass:"help_text",attrs:{colspan:"2"}},[n("span",{staticClass:"capitalize"},[e._v(e._s(e.editChange.requested_change))]),e._v(" a Queue")])]),n("tr",[n("td",[n("label",{attrs:{for:"edit_change_queue"}},[e._v("Impacted Queue"),e.requiredFields[e.editChange.requested_change].includes("queue_name")?[n("b",{staticClass:"red"},[e._v("*")])]:e._e(),e._v(":")],2)]),n("td",[n("v-select",{attrs:{id:"edit_change_queue",options:e.queueData.queues,label:"display_name",filterBy:e._vselectFilterQueues,reduce:function(e){return e.name},value:e.chosenQueue},on:{input:e.changeQueue},scopedSlots:e._u([{key:"selected-option",fn:function(t){var a=t.display_name;return[n("div",{attrs:{"aria-label":a}},[e._v(e._s(a))])]}},{key:"option",fn:function(t){var a=t.display_name,s=t.name;return[n("div",{staticClass:"medium_text",attrs:{"aria-label":a}},[e._v(e._s(a))]),n("div",[e._v(e._s(s))])]}}],null,!1,2434795739)})],1)]),Object.keys(e.submitError).includes("queue_name")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2"}},[e._v(e._s(e.submitError.queue_name))])]):e._e()]:e._e(),"create"===e.editChange.requested_change||"move"===e.editChange.requested_change?[e._m(24),n("tr",[n("td",[n("label",{attrs:{for:"edit_change_building"}},[e._v("Building"),e.requiredFields[e.editChange.requested_change].includes("building")?[n("b",{staticClass:"red"},[e._v("*")])]:e._e(),e._v(":")],2)]),n("td",[n("v-select",{attrs:{id:"edit_change_building",options:e.buildingData.buildings,label:"common_name",filterBy:e._vselectFilterBuildings,reduce:function(e){return e.abbreviation},value:e.chosenBuilding},on:{input:e.changeBuilding},scopedSlots:e._u([{key:"selected-option",fn:function(t){var a=t.common_name;return[n("div",{attrs:{"aria-label":a}},[e._v(e._s(a))])]}},{key:"option",fn:function(t){var a=t.common_name,s=t.abbreviation;return[n("div",{staticClass:"medium_text",attrs:{"aria-label":a}},[e._v(e._s(a))]),n("div",[e._v(e._s(s))])]}}],null,!1,958093403)})],1)]),Object.keys(e.submitError).includes("building")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2"}},[e._v(e._s(e.submitError.building))])]):e._e(),n("tr",[n("td",[n("label",{attrs:{for:"edit_change_room"}},[e._v("Room"),e.requiredFields[e.editChange.requested_change].includes("room")?[n("b",{staticClass:"red"},[e._v("*")])]:e._e(),e._v(":")],2)]),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.editChange.room,expression:"editChange.room"}],attrs:{type:"text",id:"edit_change_room"},domProps:{value:e.editChange.room},on:{input:function(t){t.target.composing||e.$set(e.editChange,"room",t.target.value)}}})])]),Object.keys(e.submitError).includes("room")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2"}},[e._v(e._s(e.submitError.room))])]):e._e(),n("tr",[n("td",[n("label",{attrs:{for:"edit_change_floor"}},[e._v("Floor"),e.requiredFields[e.editChange.requested_change].includes("floor")?[n("b",{staticClass:"red"},[e._v("*")])]:e._e(),e._v(":")],2)]),n("td",[n("v-select",{attrs:{id:"edit_change_floor",options:e.floorData.floors[e.editChange.building],label:"name",reduce:function(e){return e.id},value:e.chosenFloor},on:{input:e.changeFloor},scopedSlots:e._u([{key:"selected-option",fn:function(t){var a=t.name;return[n("div",{attrs:{"aria-label":a}},[e._v(e._s(a))])]}},{key:"option",fn:function(t){var a=t.name;return[n("div",{staticClass:"medium_text",attrs:{"aria-label":a}},[e._v(e._s(a))])]}}],null,!1,1926499506)})],1)]),Object.keys(e.submitError).includes("floor")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2"}},[e._v(e._s(e.submitError["floor"]))])]):e._e(),e.showMap?[n("tr",[n("td",{attrs:{colspan:"2"}},[n("div",{staticClass:"map_wrapper"},[n("img",{class:e.noMapAvailable?"no_map":"",attrs:{src:e.renderImg(),alt:"floorplan"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.setCoords(t)}}}),n("div",{staticClass:"marker",style:"position: absolute; top: "+e.editChange.map_y+"px; left: "+e.editChange.map_x+"px;",attrs:{title:e.editChange.display_name}},[n("i",{staticClass:"fas fa-print"})])])])])]:[n("tr",[n("td",{staticClass:"label_text"},[e._v("Map Location:")]),n("td",[n("div",[n("a",{attrs:{href:""},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e._showMap.apply(null,arguments)}}},[e._v("Plot Printer Location")])]),n("div",{staticClass:"label_text"},[e._v("X: "+e._s(e.editChange.map_x)+", Y: "+e._s(e.editChange.map_y))])])])]]:e._e(),"create"===e.editChange.requested_change||"edit"===e.editChange.requested_change?[e._m(25),n("tr",[n("td",[n("label",{attrs:{for:"edit_change_unit"}},[e._v("Affiliated Unit"),e.requiredFields[e.editChange.requested_change].includes("unit")?[n("b",{staticClass:"red"},[e._v("*")])]:e._e(),e._v(":")],2)]),n("td",[n("v-select",{attrs:{id:"edit_change_unit",options:e.unitData.units,label:"display_name",reduce:function(e){return e.id},value:e.chosenUnit},on:{input:e.changeUnit},scopedSlots:e._u([{key:"selected-option",fn:function(t){var a=t.display_name;return[n("div",{attrs:{"aria-label":a}},[e._v(e._s(a))])]}},{key:"option",fn:function(t){var a=t.display_name;return[n("div",{staticClass:"medium_text",attrs:{"aria-label":a}},[e._v(e._s(a))])]}}],null,!1,987545010)})],1)]),Object.keys(e.submitError).includes("unit")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2"}},[e._v(e._s(e.submitError.unit))])]):e._e(),n("tr",[n("td",[n("label",{attrs:{for:"edit_change_queue_restrictions"}},[e._v("Queue Restrictions"),e.requiredFields[e.editChange.requested_change].includes("queue_restrictions")?[n("b",{staticClass:"red"},[e._v("*")])]:e._e(),e._v(":")],2)]),n("td",[n("v-select",{attrs:{id:"edit_change_queue_restrictions",options:e.groupData.groups,multiple:"",taggable:"",value:e.chosenQueueRestrictions},on:{input:e.changeQueueRestrictions}})],1)]),e._m(26),n("tr",[n("td",[n("label",{attrs:{for:"edit_change_model"}},[e._v("Printer Model"),e.requiredFields[e.editChange.requested_change].includes("type")?[n("b",{staticClass:"red"},[e._v("*")])]:e._e(),e._v(":")],2)]),n("td",[n("v-select",{attrs:{id:"edit_change_model",options:e.modelData.models,label:"display_name",reduce:function(e){return e.type},filterBy:e._vselectFilterModelTypes,value:e.chosenModelType},on:{input:e.changeModelType},scopedSlots:e._u([{key:"selected-option",fn:function(t){var a=t.display_name;return[n("div",{attrs:{"aria-label":a}},[e._v(e._s(a))])]}},{key:"option",fn:function(t){var a=t.display_name,s=t.additional_features,r=t.driver_info;return[n("div",{staticClass:"medium_text",attrs:{"aria-label":a}},[e._v(e._s(a))]),n("div",{domProps:{innerHTML:e._s(r)}}),n("div",{domProps:{innerHTML:e._s(s)}})]}}],null,!1,4189482354)})],1)]),Object.keys(e.submitError).includes("type")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2"}},[e._v(e._s(e.submitError.type))])]):e._e(),n("tr",[n("td",[n("label",{attrs:{for:"edit_change_class_queue"}},[e._v("I want to load balance print jobs between multiple identical printers"),e.requiredFields[e.editChange.requested_change].includes("class_queue")?[n("b",{staticClass:"red"},[e._v("*")])]:e._e(),e._v(":")],2)]),n("td",[n("input",{attrs:{id:"edit_change_class_queue",type:"checkbox"},domProps:{checked:"virtual"===e.editChange.queue_type},on:{input:e.changeQueueType}})])]),Object.keys(e.submitError).includes("queue_type")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2"}},[e._v(e._s(e.submitError.queue_type))])]):e._e(),"virtual"===e.editChange.queue_type?[e._l(e.editChange.subqueue_macs,(function(t,a){return[n("tr",{key:"subqueue_"+a},[n("td",{attrs:{colspan:"2"}},[a>0?[n("hr",{staticClass:"modal_divider"})]:e._e(),n("table",{staticClass:"subqueue_table"},[n("tr",[n("td",[e._v("Printer "+e._s(a+1))]),n("td",[n("label",{attrs:{for:"subqueue_mac_"+a}},[e._v("MAC: ")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.editChange.subqueue_macs[a],expression:"editChange.subqueue_macs[index]"}],attrs:{type:"text",id:"subqueue_mac_"+a},domProps:{value:e.editChange.subqueue_macs[a]},on:{input:function(t){t.target.composing||e.$set(e.editChange.subqueue_macs,a,t.target.value)}}})]),n("td",[n("label",{attrs:{for:"subqueue_ip_type_"+a}},[e._v("IP: ")]),n("select",{directives:[{name:"model",rawName:"v-model",value:e.editChange.subqueue_ips[a],expression:"editChange.subqueue_ips[index]"}],attrs:{id:"subqueue_ip_type_"+a},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.editChange.subqueue_ips,a,t.target.multiple?n:n[0])}}},[n("option",{attrs:{value:"assign"}},[e._v("I need an IP")]),n("option",{attrs:{value:"have"}},[e._v("I already have an IP")])])]),"have"===e.editChange.subqueue_ips[a]?[n("td",[n("label",{attrs:{for:"subqueue_assigned_ips_"+a}},[e._v("Assigned IP: ")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.editChange.subqueue_assigned_ips[a],expression:"editChange.subqueue_assigned_ips[index]"}],attrs:{type:"text",id:"subqueue_assigned_ips_"+a},domProps:{value:e.editChange.subqueue_assigned_ips[a]},on:{input:function(t){t.target.composing||e.$set(e.editChange.subqueue_assigned_ips,a,t.target.value)}}})])]:[n("td")],n("td",[n("i",{staticClass:"red fas fa-trash delete_subqueue",attrs:{title:"Remove printer from cluster"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.removeSubQueue(a)}}})])],2),n("tr",[n("td",{attrs:{colspan:"4"}},[n("a",{attrs:{href:""},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.addSubQueue.apply(null,arguments)}}},[e._v("Add another printer to this cluster"),n("i",{staticClass:"fas fa-plus ml-2"})])])])])],2)])]}))]:[n("tr",[n("td",[n("label",{attrs:{for:"edit_change_mac_address"}},[e._v("MAC Address"),e.requiredFields[e.editChange.requested_change].includes("mac")?[n("b",{staticClass:"red"},[e._v("*")])]:e._e(),e._v(":")],2)]),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.editChange["mac"],expression:"editChange['mac']"}],attrs:{id:"edit_change_mac_address",type:"text"},domProps:{value:e.editChange["mac"]},on:{input:function(t){t.target.composing||e.$set(e.editChange,"mac",t.target.value)}}})])]),Object.keys(e.submitError).includes("mac")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2"}},[e._v(e._s(e.submitError["mac"]))])]):e._e(),n("tr",[n("td",[n("label",{attrs:{for:"edit_change_ignore_vendor"}},[e._v("Do not validate the vendor associated with this MAC address"),e.requiredFields[e.editChange.requested_change].includes("override_mac_vendor")?[n("b",{staticClass:"red"},[e._v("*")])]:e._e(),e._v(":")],2)]),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.editChange.override_mac_vendor,expression:"editChange.override_mac_vendor"}],attrs:{id:"edit_change_ignore_vendor",type:"checkbox"},domProps:{checked:Array.isArray(e.editChange.override_mac_vendor)?e._i(e.editChange.override_mac_vendor,null)>-1:e.editChange.override_mac_vendor},on:{change:function(t){var a=e.editChange.override_mac_vendor,n=t.target,s=!!n.checked;if(Array.isArray(a)){var r=null,i=e._i(a,r);n.checked?i<0&&e.$set(e.editChange,"override_mac_vendor",a.concat([r])):i>-1&&e.$set(e.editChange,"override_mac_vendor",a.slice(0,i).concat(a.slice(i+1)))}else e.$set(e.editChange,"override_mac_vendor",s)}}})])]),n("tr",[n("td",[n("label",{attrs:{for:"edit_change_ip"}},[e._v("IP Address"),e.requiredFields[e.editChange.requested_change].includes("ip")?[n("b",{staticClass:"red"},[e._v("*")])]:e._e(),e._v(":")],2)]),n("td",[n("select",{directives:[{name:"model",rawName:"v-model",value:e.editChange["ip"],expression:"editChange['ip']"}],attrs:{id:"edit_change_ip",type:"text"},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.editChange,"ip",t.target.multiple?a:a[0])}}},[n("option",{attrs:{value:"assign"}},[e._v("I need an IP")]),n("option",{attrs:{value:"have"}},[e._v("I already have an IP")])])])]),n("tr",["assign"===e.editChange["ip"]?[e._m(27)]:[n("td"),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.editChange["assigned_ip"],expression:"editChange['assigned_ip']"}],attrs:{type:"text"},domProps:{value:e.editChange["assigned_ip"]},on:{input:function(t){t.target.composing||e.$set(e.editChange,"assigned_ip",t.target.value)}}})])]],2),Object.keys(e.submitError).includes("assigned_ip")?n("tr",[n("td",{staticClass:"red center pad-8",attrs:{colspan:"2"}},[e._v(e._s(e.submitError["assigned_ip"]))])]):e._e()]]:e._e(),"delete"!==e.editChange.requested_change?[e._m(28),e.chosenModelType&&+e.chosenModelType.color?[n("tr",[e._m(29),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.editChange.default_color,expression:"editChange.default_color"}],attrs:{type:"checkbox",id:"edit_change_default_color"},domProps:{checked:Array.isArray(e.editChange.default_color)?e._i(e.editChange.default_color,null)>-1:e.editChange.default_color},on:{change:function(t){var a=e.editChange.default_color,n=t.target,s=!!n.checked;if(Array.isArray(a)){var r=null,i=e._i(a,r);n.checked?i<0&&e.$set(e.editChange,"default_color",a.concat([r])):i>-1&&e.$set(e.editChange,"default_color",a.slice(0,i).concat(a.slice(i+1)))}else e.$set(e.editChange,"default_color",s)}}})])])]:e._e(),n("tr",[e._m(30),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.editChange.default_duplex,expression:"editChange.default_duplex"}],attrs:{type:"checkbox",id:"edit_change_default_duplex"},domProps:{checked:Array.isArray(e.editChange.default_duplex)?e._i(e.editChange.default_duplex,null)>-1:e.editChange.default_duplex},on:{change:function(t){var a=e.editChange.default_duplex,n=t.target,s=!!n.checked;if(Array.isArray(a)){var r=null,i=e._i(a,r);n.checked?i<0&&e.$set(e.editChange,"default_duplex",a.concat([r])):i>-1&&e.$set(e.editChange,"default_duplex",a.slice(0,i).concat(a.slice(i+1)))}else e.$set(e.editChange,"default_duplex",s)}}})])]),n("tr",[e._m(31),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.editChange.hardware_check,expression:"editChange.hardware_check"}],attrs:{type:"checkbox",id:"edit_change_hw_check"},domProps:{checked:Array.isArray(e.editChange.hardware_check)?e._i(e.editChange.hardware_check,null)>-1:e.editChange.hardware_check},on:{change:function(t){var a=e.editChange.hardware_check,n=t.target,s=!!n.checked;if(Array.isArray(a)){var r=null,i=e._i(a,r);n.checked?i<0&&e.$set(e.editChange,"hardware_check",a.concat([r])):i>-1&&e.$set(e.editChange,"hardware_check",a.slice(0,i).concat(a.slice(i+1)))}else e.$set(e.editChange,"hardware_check",s)}}})])])]:e._e()],2)])]],2)]),n("div",{staticClass:"modal_footer"},[n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member"},[n("div",{staticClass:"button",on:{click:function(t){return e.closeOpenModal(!1)}}},[e._v("Cancel")])]),e.viewSummary?[n("div",{staticClass:"flex_member end"},[n("div",{staticClass:"button mr-4",on:{click:e.hideSummary}},[e._v("Go Back")]),"create"===e.editChange.requested_change?[n("div",{staticClass:"button button_blue",on:{click:function(t){return e.closeOpenModal(!0)}}},[n("i",{staticClass:"fas fa-plus mr-2"}),e._v("Submit Printer Change")])]:"delete"===e.editChange.requested_change?[n("div",{staticClass:"button button_blue",on:{click:function(t){return e.closeOpenModal(!0)}}},[n("i",{staticClass:"fas fa-trash-alt mr-2"}),e._v("Submit Printer Change")])]:"edit"===e.editChange.requested_change?[n("div",{staticClass:"button button_blue",on:{click:function(t){return e.closeOpenModal(!0)}}},[n("i",{staticClass:"fas fa-edit mr-2"}),e._v("Submit Printer Change")])]:"move"===e.editChange.requested_change?[n("div",{staticClass:"button button_blue",on:{click:function(t){return e.closeOpenModal(!0)}}},[n("i",{staticClass:"fas fa-map-marked mr-2"}),e._v("Submit Printer Change")])]:e._e()],2)]:[n("div",{staticClass:"flex_member end"},[n("div",{staticClass:"button button_blue",on:{click:e.validateChange}},[e._v("Review Printer Change")])])]],2)])]):e._e()])},qa=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"full_width center medium_text"},[e._v("Loading Printer Changes... "),n("img",{attrs:{src:a("d9b6"),alt:"loading"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Request Printer Change")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("b",[e._v("Create")]),e._v(" a queue to add a new printer to the MPrint environment.")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("b",[e._v("Delete")]),e._v(" a queue to remove it from all MPrint servers.")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("b",[e._v("Edit")]),e._v(" a queue to modify any properties unrelated to the printer's location: Unit Affiliation, Queue Restrictions, MAC Address, IP Address, or the Printer Model.")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("b",[e._v("Note:")]),e._v(" any queue modifications that change the queue name will result in the old queue being deleted and a new queue being created!")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("b",[e._v("Move")]),e._v(" a queue to modify anything related to the printer's location: Building, Floor, Room, or Map Coordinates.")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("b",[e._v("Note:")]),e._v(" any queue modifications that change the queue name will result in the old queue being deleted and a new queue being created!")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{attrs:{colspan:"2"}},[a("b",[e._v("Note: ")]),e._v(" Because the queue name is changing, submitting this request will create a brand new queue and delete the old queue!")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{attrs:{colspan:"2"}},[e._v("Clustered Printers:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"medium_text",attrs:{colspan:"2"}},[e._v("Fields marked with "),a("b",{staticClass:"red"},[e._v("*")]),e._v(" are required!")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"create_change_delete_dhcp"}},[e._v("Delete DHCP Reservation:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("Location Information")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("Permission Information")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("Hardware Information")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",{attrs:{colspan:"2"}},[a("b",[e._v("Note:")]),e._v(" Please make sure you change the switch port to VLAN 27 in "),a("a",{attrs:{href:"https://nettools.umnet.umich.edu/umnet-cgi/dct",target:"_blank"}},[e._v("DCT")]),e._v("!")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("Print Queue Options")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"create_change_default_color"}},[e._v("Queue should default to print in color:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"create_change_default_duplex"}},[e._v("Queue should default to print duplex:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"create_change_hw_check"}},[e._v("Enable Hardware Verification of Page Counts"),a("br"),e._v("(Note - this slows print speed):")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Edit Printer Change")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{attrs:{colspan:"2"}},[a("b",[e._v("Note: ")]),e._v(" Because the queue name is changing, submitting this request will create a brand new queue and delete the old queue!")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{attrs:{colspan:"2"}},[e._v("Clustered Printers:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"medium_text",attrs:{colspan:"2"}},[e._v("Fields marked with "),a("b",{staticClass:"red"},[e._v("*")]),e._v(" are required!")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("Location Information")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("Permission Information")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("Hardware Information")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",{attrs:{colspan:"2"}},[a("b",[e._v("Note:")]),e._v(" Please make sure you change the switch port to VLAN 27 in "),a("a",{attrs:{href:"https://nettools.umnet.umich.edu/umnet-cgi/dct",target:"_blank"}},[e._v("DCT")]),e._v("!")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"help_text",attrs:{colspan:"2"}},[e._v("Print Queue Options")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"edit_change_default_color"}},[e._v("Queue should default to print in color:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"edit_change_default_duplex"}},[e._v("Queue should default to print duplex:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"edit_change_hw_check"}},[e._v("Enable Hardware Verification of Page Counts"),a("br"),e._v("(Note - this slows print speed):")])])}],Ma={name:"queueAdmin",data:function(){return{buildingData:{isError:!1,isLoaded:!1,buildings:[]},changeIndex:null,chosenBuilding:null,chosenFloor:null,chosenModelType:null,chosenQueue:null,chosenQueueRestrictions:[],chosenUnit:null,createChange:{},disableButton:!1,editChange:{},enableMask:!1,expandedChanges:[],filterJoinWith:"and",floorData:{isError:!1,isLoaded:!1,floors:{}},groupData:{isError:!1,isLoaded:!1,groups:[]},modelData:{isError:!1,isLoaded:!1,models:[]},msg:null,noMapAvailable:!1,popFilter:!1,publicPath:window.location.origin,printerChangeData:{isError:!1,isLoaded:!1,printerChanges:[]},queueData:{isError:!1,isLoaded:!1,queues:[],sub_queues:{}},quick_search:[],requiredFields:{create:["building","room","floor","unit","type","mac","ip"],delete:["queue_name"],edit:["queue_name","unit","type","mac","ip"],move:["queue_name","building","room","floor"]},showMap:!1,submitError:{},unitData:{isError:!1,isLoaded:!1,units:[]},updateInterval:{},validationMsg:null,viewSummary:!1,visibleChangesLength:0,visiblePrinterChanges:{initializing:[],in_progress:[],pending:[],manual_action_required:[],failed:[],completed:[]},waitForCompletionInterval:null}},props:{user:{type:Object,default:function(){return this.$store.getters.getUser}}},methods:{addSubQueue:function(){Object.keys(this.editChange).length?"virtual"===this.editChange.queue_type&&(this.$set(this.editChange,"subqueue_macs",this.editChange.subqueue_macs.concat([""])),this.$set(this.editChange,"subqueue_ips",this.editChange.subqueue_ips.concat(["assign"])),this.$set(this.editChange,"subqueue_assigned_ips",this.editChange.subqueue_assigned_ips.concat([null]))):"virtual"===this.createChange.queue_type&&(this.$set(this.createChange,"subqueue_macs",this.createChange.subqueue_macs.concat([""])),this.$set(this.createChange,"subqueue_ips",this.createChange.subqueue_ips.concat(["assign"])),this.$set(this.createChange,"subqueue_assigned_ips",this.createChange.subqueue_assigned_ips.concat([null])))},changeBuilding:function(e){this.chosenBuilding=this.buildingData.buildings.filter((function(t){return t.abbreviation===e}))[0],Object.keys(this.editChange).length?this.$set(this.editChange,"building",e):this.$set(this.createChange,"building",e)},changeFloor:function(e){var t,a=Object.keys(this.editChange).length?this.editChange.building:this.createChange.building,n=Object(i["a"])(this.floorData.floors[a]);try{for(n.s();!(t=n.n()).done;){var s=t.value;+s.id===+e&&(this.chosenFloor=s,Object.keys(this.editChange).length?this.editChange["floor"]=e:this.createChange["floor"]=e)}}catch(r){n.e(r)}finally{n.f()}},changeModelType:function(e){this.chosenModelType=this.modelData.models.filter((function(t){return t.type===e}))[0],Object.keys(this.editChange).length?this.$set(this.editChange,"type",e):this.$set(this.createChange,"type",e)},changeQueue:function(e){this.chosenQueue=this.queueData.queues.filter((function(t){return t.name===e}))[0];var t=this.chosenQueue.queue_restrictions?this.chosenQueue.queue_restrictions.split(","):[];if(Object.keys(this.editChange).length)if(this.$set(this.editChange,"queue_name",e),this.$set(this.editChange,"display_name",this.chosenQueue.display_name),"edit"===this.editChange.requested_change)if(this.changeUnit(this.chosenQueue.unit_id),this.changeQueueRestrictions(t),this.changeModelType(this.chosenQueue.model_type),"printer"===this.chosenQueue.type)this.editChange["queue_type"]="physical",this.editChange["mac"]=this.chosenQueue["mac_address"],this.editChange["ip"]="have",this.editChange["assigned_ip"]=this.chosenQueue["ip"];else{this.editChange["queue_type"]="virtual",this.editChange["subqueue_macs"]=[],this.editChange["subqueue_ips"]=[],this.editChange["subqueue_assigned_ips"]=[];var a,n=Object(i["a"])(this.chosenQueue.sub_queues);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.editChange["subqueue_macs"].push(s["mac_address"]),this.editChange["subqueue_ips"].push("have"),this.editChange["subqueue_assigned_ips"].push(s["ip"])}}catch(l){n.e(l)}finally{n.f()}}else"move"===this.editChange.requested_change&&(this.changeBuilding(this.chosenQueue.name.split("-")[1]),this.changeFloor(this.chosenQueue.floor_id),this.editChange["room"]=this.chosenQueue.room,this.editChange.map_x=this.chosenQueue.floor_map_x,this.editChange.map_y=this.chosenQueue.floor_map_y);else if(this.$set(this.createChange,"queue_name",e),this.$set(this.createChange,"display_name",this.chosenQueue.display_name),"edit"===this.createChange.requested_change)if(this.changeUnit(this.chosenQueue.unit_id),this.changeQueueRestrictions(t),this.changeModelType(this.chosenQueue.model_type),"printer"===this.chosenQueue.type)this.createChange["queue_type"]="physical",this.createChange["mac"]=this.chosenQueue["mac_address"],this.createChange["ip"]="have",this.createChange["assigned_ip"]=this.chosenQueue["ip"];else{this.createChange["queue_type"]="virtual",this.createChange["subqueue_macs"]=[],this.createChange["subqueue_ips"]=[],this.createChange["subqueue_assigned_ips"]=[];var r,o=Object(i["a"])(this.chosenQueue.sub_queues);try{for(o.s();!(r=o.n()).done;){var c=r.value;this.createChange["subqueue_macs"].push(c["mac_address"]),this.createChange["subqueue_ips"].push("have"),this.createChange["subqueue_assigned_ips"].push(c["ip"])}}catch(l){o.e(l)}finally{o.f()}}else"move"===this.createChange.requested_change&&(this.changeBuilding(this.chosenQueue.name.split("-")[1]),this.changeFloor(this.chosenQueue.floor_id),this.createChange["room"]=this.chosenQueue.room,this.createChange.map_x=this.chosenQueue.floor_map_x,this.createChange.map_y=this.chosenQueue.floor_map_y)},changeQueueRestrictions:function(e){this.chosenQueueRestrictions=e,Object.keys(this.editChange).length?this.editChange["queue_restrictions"]=e:this.createChange["queue_restrictions"]=e},changeQueueType:function(){Object.keys(this.editChange).length?"physical"===this.editChange.queue_type?(this.editChange.queue_type="virtual",this.$set(this.editChange,"subqueue_macs",[""]),this.$set(this.editChange,"subqueue_ips",["assign"]),this.$set(this.editChange,"subqueue_assigned_ips",[null])):(this.editChange.queue_type="physical",this.$delete(this.editChange,"subqueue_macs"),this.$delete(this.editChange,"subqueue_ips"),this.$delete(this.editChange,"subqueue_assigned_ips")):"physical"===this.createChange.queue_type?(this.createChange.queue_type="virtual",this.$set(this.createChange,"subqueue_macs",[""]),this.$set(this.createChange,"subqueue_ips",["assign"]),this.$set(this.createChange,"subqueue_assigned_ips",[null])):(this.createChange.queue_type="physical",this.$delete(this.createChange,"subqueue_macs"),this.$delete(this.createChange,"subqueue_ips"),this.$delete(this.createChange,"subqueue_assigned_ips"))},changeUnit:function(e){this.chosenUnit=this.unitData.units.filter((function(t){return t.id===e}))[0],Object.keys(this.editChange).length?this.$set(this.editChange,"unit",e):this.$set(this.createChange,"unit",e)},closeOpenModal:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(t.enableMask=!1,t.viewSummary=!1,!e){a.next=8;break}return t.msg="Submitting printer change request...",a.next=6,t.submitChange();case 6:a.next=9;break;case 8:t.resetVariables();case 9:case"end":return a.stop()}}),a)})))()},collapse:function(e){this.expandedChanges.includes(e)&&(this.expandedChanges=this.expandedChanges.filter((function(t){return t!==e})))},deleteChange:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!t.disableButton){a.next=2;break}return a.abrupt("return",!1);case 2:n=t,n.disableButton=!0,n.msg="Cancelling requested change...",p.methods.delete("api/printerchanges/".concat(e)).then((function(t){if(+t.data.result.count){n.msg="Successfully deleted pending change";var a=0,s=!1;while(!s&&a<n.printerChangeData.printerChanges.length)n.printerChangeData.printerChanges[a].id===e&&(n.$delete(n.printerChangeData.printerChanges,a),s=!0,n.filterChanges()),a+=1;n.msg=null}else console.log(t.data.result),n.msg="Something went wrong! Please refresh and try again."})).catch((function(e){console.log(e),n.msg="An error occurred! Please refresh and try again."})).finally((function(){n.disableButton=!1,window.setTimeout((function(){n.msg=null}),4e3)}));case 6:case"end":return a.stop()}}),a)})))()},expand:function(e){this.expandedChanges.push(e)},filterChanges:function(){var e=this;this.msg="Filtering printer changes...";for(var t=[],a=0,n=Object.keys(this.visiblePrinterChanges);a<n.length;a++){var s=n[a];this.$set(this.visiblePrinterChanges,s,[])}if("and"===this.filterJoinWith||!this.quick_search||!this.quick_search.length){var r,o=Object(i["a"])(this.printerChangeData.printerChanges);try{for(o.s();!(r=o.n()).done;){var c=r.value,l=c.status.replace(/\s/g,"_");this.visiblePrinterChanges[l].push(c)}}catch(g){o.e(g)}finally{o.f()}}var u,d=Object(i["a"])(this.quick_search);try{var p=function(){var a=u.value;if("and"===e.filterJoinWith)for(var n=0,s=Object.keys(e.visiblePrinterChanges);n<s.length;n++){var r=s[n];e.visiblePrinterChanges[r]=e.visiblePrinterChanges[r].filter((function(e){return JSON.stringify(Object.values(e)).toLowerCase().indexOf(a.toLowerCase())>-1}))}else t=t.concat(e.printerChangeData.printerChanges.filter((function(e){return JSON.stringify(Object.values(e)).toLowerCase().indexOf(a.toLowerCase())>-1})))};for(d.s();!(u=d.n()).done;)p()}catch(g){d.e(g)}finally{d.f()}if("or"===this.filterJoinWith){var _,m=Object(i["a"])(t);try{for(m.s();!(_=m.n()).done;){var f=_.value,h=f.status.replace(/\s/g,"_");this.visiblePrinterChanges[h].push(f)}}catch(g){m.e(g)}finally{m.f()}}this.visibleChangesLength=0,Object.values(this.visiblePrinterChanges).map((function(t){return e.visibleChangesLength+=t.length})),this.msg=""},getBuildings:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,p.methods.get("api/buildings").then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var n,s,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(+t.data.result.count){a.buildingData.buildings=t.data.result.result,n=0,s=Object(i["a"])(t.data.result.result);try{for(o=function(){var e=r.value;p.methods.get("api/floors?buildingId=".concat(e.abbreviation)).then((function(t){if(+t.data.result.count){t.data.result.result.map((function(e){return e.map_img=e.map_url.split("/").pop()}));var s=t.data.result.result.sort((function(e,t){return+e.level>+t.level?1:+e.level<+t.level?-1:0}));a.$set(a.floorData.floors,e.abbreviation,s)}n+=+t.data.result.count})).catch((function(e){console.log(e)}))},s.s();!(r=s.n()).done;)o()}catch(c){s.e(c)}finally{s.f()}n||(a.floorData.isError=!0)}else a.buildingData.isError=!0;case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){a.buildingData.isError=!0,console.log("An error occurred while populating building data! ".concat(e))})).finally((function(){a.buildingData.isLoaded=!0,window.setTimeout((function(){a.msg=null}),4e3)}));case 2:case"end":return t.stop()}}),t)})))()},getGroups:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,p.methods.get("api/groups").then((function(e){+e.data.result.count?a.groupData.groups=e.data.result.result.filter((function(e){return!["!!All Users!!","AlumniAA","FacultyAA","MiPrint.All","RegularStaffAA","Retiree","SponsoredAffiliateAA","TemporaryStaffAA"].includes(e)})):a.groupData.isError=!0})).catch((function(e){console.log("Failed to retrieve papercut groups! ".concat(e)),a.groupData.isError=!0})).finally((function(){a.groupData.isLoaded=!0}));case 2:case"end":return t.stop()}}),t)})))()},getModels:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,p.methods.get("api/types").then((function(e){if(+e.data.result.count)for(var t in a.modelData.models=e.data.result.result,a.modelData.models.map((function(e){return e.display_name="".concat(e.manufacturer," ").concat(e.model_name)})),a.modelData.models){var n={driver_info:[],features:[]},s=a.modelData.models[+t],r=s.type.split("-");+s.color&&!r.includes("bw")&&n.features.push("Color"),+s.copy&&n.features.push("Copy"),+s.extra_trays&&n.features.push("Extra Trays"),+s.hole_punch&&n.features.push("Hole Punch"),+s.label&&n.features.push("Label"),+s.poster&&n.features.push("Poster"),+s.staple&&n.features.push("Staple"),+s.tabloid&&n.features.push("Tabloid"),r.includes("booklet")&&n.features.push("Booklet Finisher"),r.includes("fiery")&&n.driver_info.push("Fiery Controller"),r.includes("PS")?n.driver_info.push("Postscript Driver"):n.driver_info.push("PCL Driver"),r.includes("upd")?n.driver_info.push("Universal Driver"):n.driver_info.push("Model-Specific Driver"),r.includes("fax")&&(n.driver_info.push("Fax Driver"),-1===s.display_name.toLowerCase().indexOf("fax")&&a.$set(a.modelData.models[+t],"display_name","".concat(s.display_name," - FAX"))),n.features.length||n.features.push("No additional features"),a.$set(a.modelData.models[+t],"additional_features",n.features.join("&nbsp;&#8226;&nbsp;")),a.$set(a.modelData.models[+t],"driver_info",n.driver_info.join("&nbsp;&#8226;&nbsp;"))}else a.modelData.isError=!0})).catch((function(e){console.log("Failed to retrieve model types: ".concat(e)),a.modelData.isError=!0})).finally((function(){a.modelData.isLoaded=!0}));case 2:case"end":return t.stop()}}),t)})))()},getPrinterChanges:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,p.methods.get("api/printerchanges").then((function(e){if(+e.data.result.count){a.printerChangeData.printerChanges=e.data.result.result,a.printerChangeData.printerChanges.map((function(e){e.requested_on=Object(Q["a"])(Object(U["a"])(e.requested_on.split(".")[0].replace("T"," ")),"yyyy-LL-dd HH:mm:ss"),e.updated_on=Object(Q["a"])(Object(U["a"])(e.updated_on.split(".")[0].replace("T"," ")),"yyyy-LL-dd HH:mm:ss")})),a.printerChangeData.printerChanges.sort((function(e,t){return e.updated_on<t.updated_on?1:-1}));var t,n=Object(i["a"])(a.printerChangeData.printerChanges);try{var s=function(){var e=t.value,n=e.status.replace(/\s/g,"_");a.visiblePrinterChanges[n].push(e),"in_progress"===n&&(a.updateInterval["change_".concat(e.id)]=window.setInterval((function(){a.updateChangeStatus(e.id)}),5e3))};for(n.s();!(t=n.n()).done;)s()}catch(r){n.e(r)}finally{n.f()}a.visibleChangesLength=+e.data.result.count}})).catch((function(e){a.printerChangeData.isError=!0,console.log(e),a.msg="Failed to load printer changes!",window.setTimeout((function(){a.msg=null}),4e3)})).finally((function(){a.printerChangeData.isLoaded=!0}));case 2:case"end":return t.stop()}}),t)})))()},getQueues:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,e.msg="Updating list of queues...",e.queueData={isError:!1,isLoaded:!1,queues:[],sub_queues:{}},p.methods.get("api/queues?detailedWithoutJobs=1").then((function(e){+e.data.result.count?(a.queueData.queues=e.data.result.result.filter((function(e){return-1===e.name.indexOf("-follow-")&&null===e.class})),e.data.result.result.filter((function(e){return null!==e.class})).map((function(e){Object.keys(a.queueData.sub_queues).includes(e.class)?a.queueData.sub_queues[e.class].push(e):a.queueData.sub_queues[e.class]=[e]}))):a.queueData.isError=!0})).catch((function(e){console.log("Failed to retrieve queues: ".concat(e)),a.queueData.isError=!0})).finally((function(){a.queueData.isLoaded=!0,a.msg=null}));case 4:case"end":return t.stop()}}),t)})))()},getUnits:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,p.methods.get("api/units").then((function(e){+e.data.result.count?(a.unitData.units=e.data.result.result,a.unitData.units.map((function(e){return e.display_name=e.sub_unit?"".concat(e.unit," - ").concat(e.sub_unit):e.unit}))):a.unitData.isError=!0})).catch((function(e){console.log("Failed to retrieve units: ".concat(e)),a.unitData.isError=!0})).finally((function(){a.unitData.isLoaded=!0}));case 2:case"end":return t.stop()}}),t)})))()},hideSummary:function(){this.viewSummary=!1},initializeChange:function(e){this.$set(this.createChange,"requested_change",e),"create"===e&&this.$set(this.createChange,"queue_restrictions",[])},kickstartChange:function(e){if("admin"!==this.user.role)return!1;var t=this,a=this.visiblePrinterChanges["initializing"][e],n=!1,s=0;while(!n&&s<t.printerChangeData.printerChanges.length)t.printerChangeData.printerChanges[s].id===a.id&&(t.$set(t.printerChangeData.printerChanges[s],"status","in progress"),t.$set(t.printerChangeData.printerChanges[s],"status_message","Initializing requested queue change..."),t.$set(t.printerChangeData.printerChanges[s],"updated_by",t.user.uniqname),t.filterChanges(),n=!0),s+=1;this.updateInterval["change_".concat(a.id)]=window.setInterval((function(){t.updateChangeStatus(a.id)}),5e3)},markAsComplete:function(e,t){var a=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var s,r,i,o,c;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!a.disableButton){n.next=2;break}return n.abrupt("return",!1);case 2:s={create:"created",delete:"deleted",edit:"edited",move:"moved"},r=a,i=a.visiblePrinterChanges[t][e],o="Queue <b>".concat(i.new_queue_name?i.new_queue_name:i.queue_name,"</b> has been ").concat(s[i.requested_change]," successfully!"),c=Object(Q["a"])(Date.now(),"yyyy-LL-dd HH:mm:ss"),r.msg="Updating status...",r.disableButton=!0,p.methods.put("api/printerchanges/".concat(i.id),{status:"completed",status_message:o,updated_by:r.user.uniqname,updated_on:c}).then((function(a){if(+a.data.result.count){r.msg="Successfully completed printer change!",r.$delete(r.visiblePrinterChanges[t],e);var n=!1,s=0;while(!n&&s<r.printerChangeData.printerChanges.length)r.printerChangeData.printerChanges[s].id===i.id&&(r.$set(r.printerChangeData.printerChanges[s],"status","completed"),r.$set(r.printerChangeData.printerChanges[s],"status_message",o),r.$set(r.printerChangeData.printerChanges[s],"updated_by",r.user.uniqname),r.$set(r.printerChangeData.printerChanges[s],"updated_on",c),r.$set(r.visiblePrinterChanges,"completed",[r.printerChangeData.printerChanges[s]].concat(r.visiblePrinterChanges["completed"])),n=!0),s+=1;r.msg=null}else r.msg="An error occurred - please refresh the page and try again!"})).catch((function(e){console.log(e),r.msg="An error occurred - please refresh the page and try again!"})).finally((function(){r.disableButton=!1,window.setTimeout((function(){r.msg=null}),4e3)}));case 10:case"end":return n.stop()}}),n)})))()},parseErrors:function(e){if(Object.keys(e).includes("valid")&&!e.valid){if(e.invalid.length){var t,a=Object(i["a"])(e.invalid);try{for(a.s();!(t=a.n()).done;){var n=t.value,s=n.split(" ")[1];this.$set(this.submitError,s,n)}}catch(u){a.e(u)}finally{a.f()}}if(e.missing.length){var r,o=Object(i["a"])(e.missing);try{for(o.s();!(r=o.n()).done;){var c=r.value,l=c.split(" ")[1];this.$set(this.submitError,l,c)}}catch(u){o.e(u)}finally{o.f()}}}else console.log(e)},removeSubQueue:function(e){Object.keys(this.editChange).length?Object.keys(this.editChange).includes("subqueue_macs")&&e<this.editChange.subqueue_macs.length&&(this.$delete(this.editChange.subqueue_ips,e),this.$delete(this.editChange.subqueue_assigned_ips,e),this.$delete(this.editChange.subqueue_macs,e)):Object.keys(this.createChange).includes("subqueue_macs")&&e<this.createChange.subqueue_macs.length&&(this.$delete(this.createChange.subqueue_ips,e),this.$delete(this.createChange.subqueue_assigned_ips,e),this.$delete(this.createChange.subqueue_macs,e))},renderImg:function(){if(Object.keys(this.editChange).length){if(this.noMapAvailable=!1,this.chosenFloor)try{return a("d752")("./".concat(this.editChange.building,"/").concat(this.chosenFloor.map_img))}catch(Qe){return console.log("no map available"),this.noMapAvailable=!0,a("e70c")}}else if(this.noMapAvailable=!1,this.chosenFloor)try{return a("d752")("./".concat(this.createChange.building,"/").concat(this.chosenFloor.map_img))}catch(Qe){return console.log("no map available"),this.noMapAvailable=!0,a("e70c")}return this.noMapAvailable=!0,a("e70c")},resetVariables:function(){this.changeIndex=null,this.chosenBuilding=null,this.chosenFloor=null,this.chosenModelType=null,this.chosenQueue=null,this.chosenQueueRestrictions=[],this.chosenUnit=null,this.createChange={},this.editChange={},this.showMap=!1,this.submitError={}},scrollListener:function(){this.popFilter=window.scrollY>100},setCoords:function(e){Object.keys(this.editChange).length?(this.editChange.map_x=e.offsetX,this.editChange.map_y=e.offsetY):(this.createChange.map_x=e.offsetX,this.createChange.map_y=e.offsetY),this.showMap=!1},showCreateModal:function(){this.enableMask=!0},showEditModal:function(e){this.changeIndex=e;for(var t=0,a=Object.keys(this.visiblePrinterChanges["pending"][e]);t<a.length;t++){var n=a[t];this.$set(this.editChange,n,this.visiblePrinterChanges["pending"][e][n])}"create"!==this.visiblePrinterChanges["pending"][e]["requested_change"]&&"edit"!==this.visiblePrinterChanges["pending"][e]["requested_change"]||(this.changeModelType(this.visiblePrinterChanges["pending"][e]["type"]),this.changeQueueRestrictions(this.visiblePrinterChanges["pending"][e]["queue_restrictions"]?this.visiblePrinterChanges["pending"][e]["queue_restrictions"].split(","):[]),this.changeUnit(this.visiblePrinterChanges["pending"][e]["unit"])),"create"!==this.visiblePrinterChanges["pending"][e]["requested_change"]&&"move"!==this.visiblePrinterChanges["pending"][e]["requested_change"]||(this.changeBuilding(this.visiblePrinterChanges["pending"][e]["building"]),this.changeFloor(this.visiblePrinterChanges["pending"][e]["floor"])),this.enableMask=!0},showSummary:function(){var e=this;if(Object.keys(this.editChange).length){if(["edit","move"].includes(this.editChange.requested_change)){var t=this.queueData.queues.filter((function(t){return t.name===e.editChange.queue_name}))[0],a=!1,n=this.buildingData.buildings.filter((function(e){return+e.id===+t.building_id}))[0],s=t.room,r=this.modelData.models.filter((function(e){return e.type===t.model_type}))[0];if(this.editChange.building&&this.editChange.building!==t.name.split("-")[1]&&(a=!0,n=this.buildingData.buildings.filter((function(t){return t.abbreviation===e.editChange.building}))[0]),this.editChange.room&&this.editChange.room!==t.room&&(a=!0,s=this.editChange.room),this.editChange.type&&this.editChange.type!==t.model_type&&(a=!0,r=this.modelData.models.filter((function(t){return t.type===e.editChange.type}))[0]),a){var i=+r.poster?"poster":+r.fax?"fax":+r.label?"label":+r.color?+r.copy?"colormulti":"color":+r.copy?"bwmulti":"bw",o="m-".concat(n.abbreviation,"-").concat(s,"-").concat(i,"-");if(!this.editChange.queue_name.startsWith(o)){var c=this.queueData.queues.filter((function(e){return e.name.startsWith(o)})).length+1;this.editChange.new_queue_name="".concat(o).concat(c);var l=(i.indexOf("multi")>-1?+r.color?" Color Multi":" Multi":"bw"===i?"":" ".concat(i[0].toUpperCase()).concat(i.slice(1)))+(c>1?" ".concat(c):"");this.editChange.new_display_name="".concat(n.common_name," Rm ").concat(s).concat(l)}}}else if("create"===this.editChange.requested_change){var u=this.buildingData.buildings.filter((function(t){return t.abbreviation===e.editChange.building}))[0],d=this.editChange.room,p=this.modelData.models.filter((function(t){return t.type===e.editChange.type}))[0],_=+p.poster?"poster":+p.fax?"fax":+p.label?"label":+p.color?+p.copy?"colormulti":"color":+p.copy?"bwmulti":"bw",m="m-".concat(u.abbreviation,"-").concat(d,"-").concat(_,"-"),f=this.queueData.queues.filter((function(e){return e.name.startsWith(m)})).length+1;this.editChange.queue_name="".concat(m).concat(f);var h=(_.indexOf("multi")>-1?+p.color?" Color Multi":" Multi":"bw"===_?"":" ".concat(_[0].toUpperCase()).concat(_.slice(1)))+(f>1?" ".concat(f):"");this.editChange.display_name="".concat(u.common_name," Rm ").concat(d).concat(h)}this.viewSummary=!0}else{if(["edit","move"].includes(this.createChange.requested_change)){var g=this.queueData.queues.filter((function(t){return t.name===e.createChange.queue_name}))[0],v=!1,b=this.buildingData.buildings.filter((function(e){return+e.id===+g.building_id}))[0],w=g.room,y=this.modelData.models.filter((function(e){return e.type===g.model_type}))[0];if(this.createChange.building&&this.createChange.building!==g.name.split("-")[1]&&(v=!0,b=this.buildingData.buildings.filter((function(t){return t.abbreviation===e.createChange.building}))[0]),this.createChange.room&&this.createChange.room!==g.room&&(v=!0,w=this.createChange.room),this.createChange.type&&this.createChange.type!==g.model_type&&(v=!0,y=this.modelData.models.filter((function(t){return t.type===e.createChange.type}))[0]),v){var x=+y.poster?"poster":+y.fax?"fax":+y.label?"label":+y.color?+y.copy?"colormulti":"color":+y.copy?"bwmulti":"bw",C="m-".concat(b.abbreviation,"-").concat(w,"-").concat(x,"-");if(!this.createChange.queue_name.startsWith(C)){var k=this.queueData.queues.filter((function(e){return e.name.startsWith(C)})).length+1;this.createChange.new_queue_name="".concat(C).concat(k);var P=(x.indexOf("multi")>-1?+y.color?" Color Multi":" Multi":"bw"===x?"":" ".concat(x[0].toUpperCase()).concat(x.slice(1)))+(k>1?" ".concat(k):"");this.createChange.new_display_name="".concat(b.common_name," Rm ").concat(w).concat(P)}}}else if("create"===this.createChange.requested_change){var D=this.buildingData.buildings.filter((function(t){return t.abbreviation===e.createChange.building}))[0],A=this.createChange.room,E=this.modelData.models.filter((function(t){return t.type===e.createChange.type}))[0],j=+E.poster?"poster":+E.fax?"fax":+E.label?"label":+E.color?+E.copy?"colormulti":"color":+E.copy?"bwmulti":"bw",q="m-".concat(D.abbreviation,"-").concat(A,"-").concat(j,"-"),M=this.queueData.queues.filter((function(e){return e.name.startsWith(q)})).length+1;this.createChange.queue_name="".concat(q).concat(M);var S=(j.indexOf("multi")>-1?+E.color?" Color Multi":" Multi":"bw"===j?"":" ".concat(j[0].toUpperCase()).concat(j.slice(1)))+(M>1?" ".concat(M):"");this.createChange.display_name="".concat(D.common_name," Rm ").concat(A).concat(S)}this.viewSummary=!0}},submitChange:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n,s,r,i,o,c,l,u,d,_,m,f;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a=e,n=Object(Q["a"])(Date.now(),"yyyy-LL-dd HH:mm:ss"),s=!0,Object.keys(e.editChange).length){for(r=e.editChange.id,i={},o=0,c=Object.keys(e.editChange);o<c.length;o++)l=c[o],["id","requested_by","requested_change","requested_on","service","status","status_message","tasks"].includes(l)||("queue_restrictions"===l?i[l]=e.editChange[l].join(","):["default_color","default_duplex","delete_dhcp_reservation","hardware_check","map_x","map_y","override_mac_vendor"].includes(l)?i[l]=+e.editChange[l]:i[l]=e.editChange[l]);i["updated_by"]=a.user.uniqname,i["updated_on"]=n,p.methods.put("api/printerchanges/".concat(r),i).then((function(e){if(+e.data.result.count){a.msg="Successfully edited pending printer change! Executing change now...";var t=!1,i=0;while(!t&&i<a.printerChangeData.printerChanges.length)a.printerChangeData.printerChanges[i].id===r&&(a.$set(a.printerChangeData.printerChanges[i],"status","in progress"),a.$set(a.printerChangeData.printerChanges[i],"status_message","Initializing requested queue change..."),a.$set(a.printerChangeData.printerChanges[i],"updated_by",a.user.uniqname),a.$set(a.printerChangeData.printerChanges[i],"updated_on",n),a.filterChanges(),t=!0),i+=1;a.updateInterval["change_".concat(r)]=window.setInterval((function(){a.updateChangeStatus(r)}),5e3)}else console.log(e.data.result),a.msg="Something went wrong! Failed to edit printer change. Please refresh and try again.",s=!1,a.parseErrors(e.data.result)})).catch((function(e){a.msg="An error occurred! Failed to edit pending printer change!",console.log(e)})).finally((function(){window.setTimeout((function(){a.msg=null}),3e3),s?a.resetVariables():a.enableMask=!0}))}else if(Object.keys(e.createChange).includes("new_queue_name")&&e.createChange.new_queue_name&&["edit","move"].includes(e.createChange.requested_change))u={requested_change:"delete",queue_name:e.chosenQueue.name,display_name:e.chosenQueue.display_name,requested_by:e.user.uniqname,requested_on:n,updated_on:n,updated_by:e.user.uniqname,delete_dhcp_reservation:Object.keys(e.createChange).includes("delete_dhcp_reservation")?+e.createChange["delete_dhcp_reservation"]:0},p.methods.post("api/printerchanges",u).then((function(e){if(+e.data.result.count){a.msg="Successfully submitted printer delete request!";var t=+e.data.result.result;u["id"]=t,u["status"]="in progress",u["status_message"]="Initializing queue deletion...",a.$set(a.printerChangeData,"printerChanges",a.printerChangeData.printerChanges.concat([u])),a.filterChanges(),a.updateInterval["change_".concat(t)]=window.setInterval((function(){a.updateChangeStatus(t)}),5e3);var r={requested_change:"create",requested_by:a.user.uniqname,requested_on:n,updated_on:n,updated_by:a.user.uniqname,queue_name:a.createChange.new_queue_name,display_name:a.createChange.new_display_name};if("edit"===a.createChange.requested_change){r.building=a.chosenQueue.name.split("-")[1],r.room=a.chosenQueue.room,r.floor=a.chosenQueue.floor_id,r.map_x=a.chosenQueue.floor_map_x,r.map_y=a.chosenQueue.floor_map_y,r["mac"]=a.createChange["mac"],r["ip"]=a.createChange["ip"],r["assigned_ip"]=a.createChange["assigned_ip"],r["queue_type"]=a.createChange["queue_type"],r["type"]=a.createChange["type"],r["unit"]=a.createChange["unit"],r["queue_restrictions"]=a.createChange["queue_restrictions"].join(",");for(var i=0,o=["default_color","default_duplex","hardware_check","override_mac_vendor"];i<o.length;i++){var c=o[i];r[c]=Object.keys(a.createChange).includes(c)?+a.createChange[c]:0}}else{r.unit=a.chosenQueue.unit_id,r.queue_restrictions=a.chosenQueue.queue_restrictions,r.type=a.chosenQueue.model_type,r.queue_type="printer"===a.chosenQueue.type?"physical":"virtual",r.ip="have",r.assigned_ip=a.chosenQueue.ip,r.mac=a.chosenQueue.mac_address,r.building=a.createChange.building,r.room=a.createChange.room,r.floor=a.createChange["floor"],r.map_x=a.createChange.map_x,r.map_y=a.createChange.map_y;for(var l=0,d=["default_color","default_duplex","hardware_check"];l<d.length;l++){var _=d[l];r[_]=Object.keys(a.createChange).includes(_)?+a.createChange[_]:0}}Object.keys(r).includes("mac")&&(r["mac"]=r["mac"].replace(/[:\-.]/g,"")),p.methods.post("api/printerchanges",r).then((function(e){if(+e.data.result.count){a.msg="Successfully submitted printer delete request!";var n=+e.data.result.result;r["id"]=n,r["status"]="in progress",r["status_message"]="Waiting for queue deletion to finish...",a.$set(a.printerChangeData,"printerChanges",a.printerChangeData.printerChanges.concat([r])),a.filterChanges(),a.waitForCompletionInterval=window.setInterval((function(){Object.keys(a.updateInterval).includes("change_".concat(t))&&null!==a.updateInterval["change_".concat(t)]||(a.updateInterval["change_".concat(n)]=window.setInterval((function(){a.updateChangeStatus(n)}),5e3),window.clearInterval(a.waitForCompletionInterval),a.waitForCompletionInterval=null)}),5e3)}else a.msg="Something went wrong! Failed to submit printer creation request. Please refresh and try again.",s=!1,a.parseErrors(e.data.result)})).catch((function(e){a.msg="An error occurred! Failed to submit printer creation request!",console.log(e)}))}else a.msg="Something went wrong! Failed to submit printer delete request. Please refresh and try again.",s=!1,a.parseErrors(e.data.result)})).catch((function(e){a.msg="An error occurred! Failed to submit printer delete request!",console.log(e)})).finally((function(){s?a.resetVariables():a.enableMask=!0})),window.setTimeout((function(){a.msg=null}),4e3);else{if(d={requested_change:e.createChange.requested_change},"create"===e.createChange.requested_change||"delete"===e.createChange.requested_change)for(_=0,m=Object.keys(e.createChange);_<m.length;_++)f=m[_],"queue_restrictions"===f?d[f]=e.createChange[f].join(","):["default_color","default_duplex","delete_dhcp_reservation","hardware_check","override_mac_vendor"].includes(f)?d[f]=+e.createChange[f]:d[f]=e.createChange[f];else"edit"===e.createChange.requested_change?(d["queue_name"]=e.chosenQueue.name,d["display_name"]=e.chosenQueue.display_name,e.createChange["mac"]!==e.chosenQueue.mac_address&&(d["mac"]=e.createChange["mac"],d["override_mac_vendor"]=+e.createChange["override_mac_vendor"]),"assign"===e.createChange["ip"]?d["ip"]="assign":"have"===e.createChange["ip"]&&e.createChange["assigned_ip"]!==e.chosenQueue.ip&&(d["ip"]=e.createChange["ip"],d["assigned_ip"]=e.createChange["assigned_ip"]),("physical"===e.createChange["queue_type"]&&"class"===e.chosenQueue.type||"virtual"===e.createChange["queue_type"]&&"printer"===e.chosenQueue.type)&&(d["queue_type"]=e.createChange["queue_type"]),e.createChange["type"]!==e.chosenQueue.model_type&&(d["type"]=e.createChange["type"]),e.createChange["unit"]!==e.chosenQueue.unit_id&&(d["unit"]=e.createChange["unit"]),e.createChange["queue_restrictions"].join(",")!==e.chosenQueue.queue_restrictions&&(d["queue_restrictions"]=e.createChange["queue_restrictions"].join(","))):(d["queue_name"]=e.chosenQueue.name,d["display_name"]=e.chosenQueue.display_name,e.createChange["building"]!==e.chosenQueue.name.split("-")[1]&&(d["building"]=e.createChange["building"]),e.createChange["floor"]!==e.chosenQueue.floor_id&&(d["floor"]=e.createChange["floor"]),e.createChange["room"]!==e.chosenQueue.room&&(d["room"]=e.createChange["room"]),e.createChange["map_x"]!==e.chosenQueue.floor_map_x&&(d["map_x"]=e.createChange["map_x"]),e.createChange["map_y"]!==e.chosenQueue.floor_map_y&&(d["map_y"]=e.createChange["map_y"]));d["requested_by"]=a.user.uniqname,d["requested_on"]=n,d["updated_by"]=a.user.uniqname,d["updated_on"]=n,Object.keys(d).includes("mac")&&(d["mac"]=d["mac"].replace(/[:\-.]/g,"")),p.methods.post("api/printerchanges",d).then((function(e){if(console.log(e.data.result),+e.data.result.count){a.msg="Successfully submitted new printer change! Executing change now...";var t=+e.data.result.result;d["id"]=t,d["status"]="in progress",d["status_message"]="Initializing requested queue change...",a.$set(a.printerChangeData,"printerChanges",a.printerChangeData.printerChanges.concat([d])),a.filterChanges(),a.updateInterval["change_".concat(t)]=window.setInterval((function(){a.updateChangeStatus(t)}),5e3)}else a.msg="Something went wrong! Failed to create printer change. Please refresh and try again.",s=!1,a.parseErrors(e.data.result)})).catch((function(e){a.msg="An error occurred! Failed to create requested printer change!",console.log(e)})).finally((function(){window.setTimeout((function(){a.msg=null}),3e3),s?a.resetVariables():a.enableMask=!0}))}case 4:case"end":return t.stop()}}),t)})))()},updateChangeStatus:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:for(r in n=t,s=null,t.visiblePrinterChanges.in_progress)t.visiblePrinterChanges.in_progress[+r].id===e&&(s=+r);p.methods.get("api/printerchanges/".concat(e)).then((function(t){if(+t.data.result.count){if(null!==s&&(n.$set(n.visiblePrinterChanges.in_progress[s],"status",t.data.result.result[0].status),n.$set(n.visiblePrinterChanges.in_progress[s],"status_message",t.data.result.result[0].status_message),n.$set(n.visiblePrinterChanges.in_progress[s],"tasks",t.data.result.result[0].tasks),"in progress"!==t.data.result.result[0].status.toLowerCase())){if(n.filterChanges(),"pending"===t.data.result.result[0].status.toLowerCase()&&Object.keys(t.data.result.result[0]).includes("assigned_ip")&&null!==t.data.result.result[0].assigned_ip)for(var a in n.visiblePrinterChanges.pending)n.visiblePrinterChanges.pending[+a].id===e&&(n.visiblePrinterChanges.pending[+a].ip="have",n.visiblePrinterChanges.pending[+a].assigned_ip=t.data.result.result[0].assigned_ip);"completed"===t.data.result.result[0].status.toLowerCase()?n.msg="Successfully completed printer change request!":n.msg="Your printer change request may need some attention!",window.clearInterval(n.updateInterval["change_".concat(e)]),n.updateInterval["change_".concat(e)]=null,window.setTimeout((function(){n.msg=null}),4e3),n.$nextTick((function(){document.getElementById("change_request_".concat(e)).scrollIntoView({block:"center",behavior:"smooth"})})),n.getQueues()}}else console.log(t.data.result),n.msg="Something went wrong! Please refresh and try again.",window.clearInterval(n.updateInterval["change_".concat(e)]),n.updateInterval["change_".concat(e)]=null,window.setTimeout((function(){n.msg=null}),4e3)})).catch((function(e){console.log(e),n.msg="An error occurred! Please refresh and try again.",window.setTimeout((function(){n.msg=null}),4e3)}));case 4:case"end":return a.stop()}}),a)})))()},validateChange:function(){var e=null,t=!0;if(this.submitError={},Object.keys(this.editChange).length){e=this.requiredFields[this.editChange.requested_change];var a,n=Object(i["a"])(e);try{for(n.s();!(a=n.n()).done;){var s=a.value;Object.keys(this.editChange).includes(s)&&null!==this.editChange[s]&&""!==this.editChange[s]||(this.$set(this.submitError,s,"".concat(s," is a required field!")),t=!1)}}catch(l){n.e(l)}finally{n.f()}}else{e=this.requiredFields[this.createChange.requested_change];var r,o=Object(i["a"])(e);try{for(o.s();!(r=o.n()).done;){var c=r.value;Object.keys(this.createChange).includes(c)&&null!==this.createChange[c]&&""!==this.createChange[c]||(this.$set(this.submitError,c,"".concat(c," is a required field!")),t=!1)}}catch(l){o.e(l)}finally{o.f()}}t&&this.showSummary()},_showMap:function(){this.showMap=!0},_vselectFilterBuildings:function(e,t,a){return t.toLowerCase().indexOf(a.toLowerCase())>=0||e.abbreviation.toLowerCase().indexOf(a.toLowerCase())>=0},_vselectFilterModelTypes:function(e,t,a){return t.toLowerCase().indexOf(a.toLowerCase())>=0||e.type.toLowerCase().indexOf(a.toLowerCase())>=0},_vselectFilterQueues:function(e,t,a){return t.toLowerCase().indexOf(a.toLowerCase())>=0||e.name.toLowerCase().indexOf(a.toLowerCase())>=0}},created:function(){this.user.uniqname&&(this.getPrinterChanges(),this.getBuildings(),this.getGroups(),this.getModels(),this.getQueues(),this.getUnits()),window.addEventListener("scroll",this.scrollListener)},watch:{user:function(){this.getPrinterChanges(),this.getBuildings(),this.getGroups(),this.getModels(),this.getQueues(),this.getUnits()}},destroyed:function(){window.removeEventListener("scroll",this.scrollListener)}},Sa=Ma,La=(a("f2f7"),a("c98e"),Object(f["a"])(Sa,ja,qa,!1,null,"aef1d7d6",null)),Oa=La.exports,Ra=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.msg,expression:"msg"}],attrs:{id:"message_container"}},[a("div",{staticClass:"message",attrs:{id:"message"}},[e._v(e._s(e.msg))])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.enableMask,expression:"enableMask"}],staticClass:"mask dim",attrs:{id:"mask"},on:{click:function(t){return e.closeOpenModal(null)}}}),a("div",{attrs:{id:"content",role:"main"}},[a("div",{staticClass:"flex_row"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.popFilter,expression:"popFilter"}],staticClass:"box full_box",attrs:{id:"empty_filter_box"}}),a("div",{staticClass:"box full_box",class:e.popFilter?"popped_out":"",attrs:{id:"filter_container"}},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("h1",[e._v("MPrint Scheduled Reports Administration")]),a("div",[a("button",{staticClass:"ml-2 button button_large button_blue",on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.showNewReportModal.apply(null,arguments)}}},[a("i",{staticClass:"fas fa-plus mr-2"}),e._v("Setup New Report")])])]),a("div",{staticClass:"flex_member end flex_row_fit"},[a("div",{staticClass:"flex_member end"},[a("div",[a("label",{attrs:{for:"filter_quick_search"}},[e._v("Quick Search:")]),a("v-select",{attrs:{id:"filter_quick_search",taggable:"",multiple:"",options:[],"dropdown-should-open":function(){return!1}},on:{input:function(t){return e.filterCodes()}},model:{value:e.quickSearch,callback:function(t){e.quickSearch=t},expression:"quickSearch"}})],1),a("p",{staticClass:"pl-2"},[e._v("Join filters with: "),a("label",{attrs:{for:"join_and"}},[e._v("And")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.filterJoinWith,expression:"filterJoinWith"}],attrs:{type:"radio",id:"join_and",name:"filter_join_with",value:"and",checked:"checked"},domProps:{checked:e._q(e.filterJoinWith,"and")},on:{change:[function(t){e.filterJoinWith="and"},function(t){return e.filterCodes()}]}}),e._v(" or "),a("label",{attrs:{for:"join_or"}},[e._v("Or")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.filterJoinWith,expression:"filterJoinWith"}],attrs:{type:"radio",id:"join_or",name:"filter_join_with",value:"or"},domProps:{checked:e._q(e.filterJoinWith,"or")},on:{change:[function(t){e.filterJoinWith="or"},function(t){return e.filterCodes()}]}})])])])]),e.scheduledReportData.isLoaded?a("div",{staticClass:"flex_row center"},[a("div",{staticClass:"flex_member"},[a("p",[e._v("Showing "+e._s(e.visibleReports.length)+" "+e._s(1===e.visibleReports.length?"report":"reports"))])])]):e._e()])]),e._m(0),a("div",{staticClass:"full_width full_box box"},[e.scheduledReportData.isLoaded?e.scheduledReportData.isLoaded&&e.scheduledReportData.isError?[a("div",{staticClass:"medium_text center"},[e._v("Failed to load Scheduled Reports! Please refresh and try again.")])]:[e.visibleReports.length?[a("table",{staticClass:"full_width"},[e._m(2),e._l(e.visibleReports,(function(t,n){return[a("tr",{key:"report_row_"+n,staticClass:"report_row",class:n%2===0?"even_row":""},[a("td",{staticClass:"pad-8 capitalize"},[e._v(e._s(t.report_type.split("_").join(" ")))]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.id))]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.name))]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.frequency))]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.formatted_last_run))]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.formatted_next_run))]),a("td",{staticClass:"pad-8"},[a("a",{staticClass:"pr-2",class:e.runningReport.id===t.id&&e.runningReport.type===t.report_type?"disabled":+t.enabled?"":"hidden",attrs:{href:""},on:{click:function(a){return a.stopPropagation(),a.preventDefault(),e.runReport(t.id,t.report_type,+t.enabled)}}},[e._v("Run Manually")]),a("a",{staticClass:"pr-2 disabled",class:e.runningReport.id===t.id&&e.runningReport.type===t.report_type?"disabled":"",attrs:{href:""}},[e._v("Edit")]),a("a",{staticClass:"pr-2 disabled",class:e.runningReport.id===t.id&&e.runningReport.type===t.report_type?"disabled":+t.enabled?"":"hidden",attrs:{href:""}},[e._v("Disable")]),a("a",{staticClass:"pr-2 disabled",class:t.enabled?"hidden":"",attrs:{href:""}},[e._v("Enable")]),a("a",{staticClass:"disabled",class:+t.enabled?"hidden":"",attrs:{href:""}},[e._v("Delete")])])])]}))],2)]:[a("div",{staticClass:"medium_text center"},[e._v("There are no Reports to show!")])]]:[e._m(1)]],2)])])},Ta=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member full_width"},[a("h2",[e._v("Scheduled Reports")])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"medium_text center"},[e._v("Loading Reports... "),n("img",{attrs:{src:a("d9b6"),alt:"loading reports"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"bold pad-8"},[e._v("Report Type")]),a("td",{staticClass:"bold pad-8"},[e._v("ID")]),a("td",{staticClass:"bold pad-8"},[e._v("Name")]),a("td",{staticClass:"bold pad-8"},[e._v("Frequency")]),a("td",{staticClass:"bold pad-8"},[e._v("Last Run")]),a("td",{staticClass:"bold pad-8"},[e._v("Next Run")]),a("td",{staticClass:"bold pad-8"},[e._v("Actions")])])}],Na={name:"scheduledReportsAdmin",data:function(){return{scheduledReportData:{isError:!1,isLoaded:!1,scheduledReports:[]},enableMask:!1,filterJoinWith:"and",msg:null,popFilter:!1,quickSearch:[],runningReport:{id:null,type:null},showModalForReport:null,visibleReports:[]}},props:{user:{type:Object,default:function(){return this.$store.getters.getUser}}},methods:{closeOpenModal:function(e){e?this.showModalForCode?this.redeemCode(this.showModalForCode.code,this.redeemForUser):this.showGenerationModal&&this.generateNewCodes():this.actingOnRow=null,this.redeemForUser=null,this.showGenerationModal=!1,this.showModalForCode=null,this.enableMask=!1},filterReports:function(){var e=this;this.msg="Filtering scheduled reports...","and"!==this.filterJoinWith&&this.quickSearch&&this.quickSearch.length?this.visibleReports=[]:this.visibleReports=this.scheduledReportData.scheduledReports;var t,a=Object(i["a"])(this.quickSearch);try{var n=function(){var a=t.value;"and"===e.filterJoinWith?e.visibleReports=e.visibleReports.filter((function(e){return JSON.stringify(Object.values(e)).toLowerCase().indexOf(a.toLowerCase())>-1})):e.visibleReports=e.visibleReports.concat(e.scheduledReportData.scheduledReports.filter((function(e){return JSON.stringify(Object.values(e)).toLowerCase().indexOf(a.toLowerCase())>-1})))};for(a.s();!(t=a.n()).done;)n()}catch(s){a.e(s)}finally{a.f()}this.msg=""},getScheduledReports:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,p.methods.get("api/scheduledreports?reportType=reports");case 3:return a=t.sent.data.result,t.next=6,p.methods.get("api/scheduledreports?reportType=sql_reports");case 6:n=t.sent.data.result,+a.count&&(a.result.map((function(e){return e.formatted_last_run=null!==e["last_run"]?e["last_run"].split(".")[0].replace("T"," "):"N/A"})),a.result.map((function(e){return e.formatted_next_run=null!==e["next_run"]?e["next_run"].split(".")[0].replace("T"," "):"N/A"})),a.result.map((function(e){return e.report_type="reports"})),e.scheduledReportData.scheduledReports=e.scheduledReportData.scheduledReports.concat(a.result)),+n.count&&(n.result.map((function(e){return e.formatted_last_run=null!==e["last_run"]?e["last_run"].split(".")[0].replace("T"," "):"N/A"})),n.result.map((function(e){return e.formatted_next_run=null!==e["next_run"]?e["next_run"].split(".")[0].replace("T"," "):"N/A"})),n.result.map((function(e){return e.report_type="sql_reports"})),e.scheduledReportData.scheduledReports=e.scheduledReportData.scheduledReports.concat(n.result)),e.scheduledReportData.scheduledReports.length?e.filterReports():(e.scheduledReportData.isError=!0,e.msg="No scheduled reports were found!"),t.next=17;break;case 12:t.prev=12,t.t0=t["catch"](0),e.scheduledReportData.isError=!0,console.log(t.t0),e.msg="An error occurred! Failed to load scheduled report data.";case 17:return t.prev=17,e.scheduledReportData.isLoaded=!0,s=e,window.setTimeout((function(){s.msg=null}),4e3),t.finish(17);case 22:case"end":return t.stop()}}),t,null,[[0,12,17,22]])})))()},runReport:function(e,t,a){var n=this;return Object(o["a"])(regeneratorRuntime.mark((function s(){var r,i;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(s.prev=0,(n.runningReport.id!==e||n.runningReport.type!==t)&&a){s.next=3;break}return s.abrupt("return",!1);case 3:return n.msg="Running report ".concat(t," - ").concat(e,"..."),n.runningReport.id=e,n.runningReport.type=t,s.next=8,p.methods.put("api/scheduledreports/".concat(e),{reportType:t,runReport:1});case 8:r=s.sent.data.result,console.log(r),n.msg=null,s.next=19;break;case 13:s.prev=13,s.t0=s["catch"](0),n.msg="An error occurred trying to run report ".concat(t,"-").concat(e,"!"),console.log(s.t0),i=n,window.setTimeout((function(){i.msg=null}),4e3);case 19:return s.prev=19,n.runningReport.id=null,n.runningReport.type=null,s.finish(19);case 23:case"end":return s.stop()}}),s,null,[[0,13,19,23]])})))()},scrollListener:function(){this.popFilter=window.scrollY>100}},created:function(){this.user.uniqname&&this.getScheduledReports(),window.addEventListener("scroll",this.scrollListener)},watch:{user:function(){this.getScheduledReports()}},destroyed:function(){window.removeEventListener("scroll",this.scrollListener)}},Fa=Na,Ia=(a("59d3"),Object(f["a"])(Fa,Ra,Ta,!1,null,"2cd47143",null)),Qa=Ia.exports,Ua=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.msg,expression:"msg"}],attrs:{id:"message_container"}},[a("div",{staticClass:"message",attrs:{id:"message"}},[e._v(e._s(e.msg))])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.enableMask,expression:"enableMask"}],staticClass:"mask dim",attrs:{id:"mask"},on:{click:function(t){return e.closeOpenModal(!1)}}}),a("div",{attrs:{id:"content",role:"main"}},[a("div",{staticClass:"flex_row"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.popFilter,expression:"popFilter"}],staticClass:"box full_box",attrs:{id:"empty_filter_box"}}),a("div",{staticClass:"box full_box",class:e.popFilter?"popped_out":"",attrs:{id:"filter_container"}},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("h1",[e._v("MPrint Server Administration")]),a("a",{staticClass:"pl-2 medium_text",attrs:{href:""},on:{click:function(t){return t.preventDefault(),e.clearFilters.apply(null,arguments)}}},[e._v("Clear Filters")])]),a("div",{staticClass:"flex_member end"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("label",{attrs:{for:"filter_production"}},[e._v("Production:")]),a("v-select",{attrs:{id:"filter_production",options:["","Yes","No"]},on:{input:e.filterServers},model:{value:e.filters.production,callback:function(t){e.$set(e.filters,"production",t)},expression:"filters.production"}})],1),a("div",{staticClass:"flex_member"},[a("label",{attrs:{for:"filter_purpose"}},[e._v("Server Type:")]),a("v-select",{attrs:{id:"filter_purpose",options:[{label:"Application Server",value:"application"},{label:"Conversion Server",value:"conversion"},{label:"MPrint Server",value:"mprint"},{label:"Print Server",value:"print"}],reduce:function(e){return e.value}},on:{input:e.filterServers},model:{value:e.filters.purpose,callback:function(t){e.$set(e.filters,"purpose",t)},expression:"filters.purpose"}})],1),a("div",{staticClass:"flex_member"},[a("div",[a("label",{attrs:{for:"filter_quick_search"}},[e._v("Quick Search:")]),a("v-select",{attrs:{id:"filter_quick_search",taggable:"",multiple:"",options:[],"dropdown-should-open":function(){return!1}},on:{input:e.filterServers},model:{value:e.filters.quick_search,callback:function(t){e.$set(e.filters,"quick_search",t)},expression:"filters.quick_search"}})],1),a("p",[e._v("Join filters with: "),a("label",{attrs:{for:"join_and"}},[e._v("And")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.filterJoinWith,expression:"filterJoinWith"}],attrs:{type:"radio",id:"join_and",name:"filter_join_with",value:"and",checked:"checked"},domProps:{checked:e._q(e.filterJoinWith,"and")},on:{change:[function(t){e.filterJoinWith="and"},e.filterServers]}}),e._v(" or "),a("label",{attrs:{for:"join_or"}},[e._v("Or")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.filterJoinWith,expression:"filterJoinWith"}],attrs:{type:"radio",id:"join_or",name:"filter_join_with",value:"or"},domProps:{checked:e._q(e.filterJoinWith,"or")},on:{change:[function(t){e.filterJoinWith="or"},e.filterServers]}})])])])])]),e.serverData.isLoaded?a("div",{staticClass:"flex_row center"},[a("div",{staticClass:"flex_member"},[a("p",[e._v("Showing "+e._s(e.visibleServers.length)+" "+e._s(1===e.visibleServers.length?"server":"servers"))])])]):e._e()])]),e.serverData.isLoaded?e.serverData.isLoaded&&e.serverData.isError?[e._m(1)]:[a("div",{staticClass:"flex_row"},[e._m(2),e._l(e.visibleServers,(function(t,n){return[a("div",{key:"server_"+n,staticClass:"box server_box",class:[e.expandedBoxes.includes(t.name)?"expanded":""],attrs:{id:"server_"+n+"_box"},on:{click:function(a){return e.toggle(t.name)}}},[a("div",{staticClass:"bold medium_text float_left"},[e._v(e._s(t.name))]),a("div",{staticClass:"float_right "},[t.active_directory_name.indexOf("adsroot")>-1?[a("svg",{staticClass:"brand_logo",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},[a("path",{attrs:{fill:"#02ADEF",d:"M0 93.7l183.6-25.3v177.4H0V93.7zm0 324.6l183.6 25.3V268.4H0v149.9zm203.8 28L448 480V268.4H203.8v177.9zm0-380.6v180.1H448V32L203.8 65.7z"}})])]:[a("svg",{staticClass:"brand_logo",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},[a("path",{attrs:{fill:"#333333",d:"M220.8 123.3c1 .5 1.8 1.7 3 1.7 1.1 0 2.8-.4 2.9-1.5.2-1.4-1.9-2.3-3.2-2.9-1.7-.7-3.9-1-5.5-.1-.4.2-.8.7-.6 1.1.3 1.3 2.3 1.1 3.4 1.7zm-21.9 1.7c1.2 0 2-1.2 3-1.7 1.1-.6 3.1-.4 3.5-1.6.2-.4-.2-.9-.6-1.1-1.6-.9-3.8-.6-5.5.1-1.3.6-3.4 1.5-3.2 2.9.1 1 1.8 1.5 2.8 1.4zM420 403.8c-3.6-4-5.3-11.6-7.2-19.7-1.8-8.1-3.9-16.8-10.5-22.4-1.3-1.1-2.6-2.1-4-2.9-1.3-.8-2.7-1.5-4.1-2 9.2-27.3 5.6-54.5-3.7-79.1-11.4-30.1-31.3-56.4-46.5-74.4-17.1-21.5-33.7-41.9-33.4-72C311.1 85.4 315.7.1 234.8 0 132.4-.2 158 103.4 156.9 135.2c-1.7 23.4-6.4 41.8-22.5 64.7-18.9 22.5-45.5 58.8-58.1 96.7-6 17.9-8.8 36.1-6.2 53.3-6.5 5.8-11.4 14.7-16.6 20.2-4.2 4.3-10.3 5.9-17 8.3s-14 6-18.5 14.5c-2.1 3.9-2.8 8.1-2.8 12.4 0 3.9.6 7.9 1.2 11.8 1.2 8.1 2.5 15.7.8 20.8-5.2 14.4-5.9 24.4-2.2 31.7 3.8 7.3 11.4 10.5 20.1 12.3 17.3 3.6 40.8 2.7 59.3 12.5 19.8 10.4 39.9 14.1 55.9 10.4 11.6-2.6 21.1-9.6 25.9-20.2 12.5-.1 26.3-5.4 48.3-6.6 14.9-1.2 33.6 5.3 55.1 4.1.6 2.3 1.4 4.6 2.5 6.7v.1c8.3 16.7 23.8 24.3 40.3 23 16.6-1.3 34.1-11 48.3-27.9 13.6-16.4 36-23.2 50.9-32.2 7.4-4.5 13.4-10.1 13.9-18.3.4-8.2-4.4-17.3-15.5-29.7zM223.7 87.3c9.8-22.2 34.2-21.8 44-.4 6.5 14.2 3.6 30.9-4.3 40.4-1.6-.8-5.9-2.6-12.6-4.9 1.1-1.2 3.1-2.7 3.9-4.6 4.8-11.8-.2-27-9.1-27.3-7.3-.5-13.9 10.8-11.8 23-4.1-2-9.4-3.5-13-4.4-1-6.9-.3-14.6 2.9-21.8zM183 75.8c10.1 0 20.8 14.2 19.1 33.5-3.5 1-7.1 2.5-10.2 4.6 1.2-8.9-3.3-20.1-9.6-19.6-8.4.7-9.8 21.2-1.8 28.1 1 .8 1.9-.2-5.9 5.5-15.6-14.6-10.5-52.1 8.4-52.1zm-13.6 60.7c6.2-4.6 13.6-10 14.1-10.5 4.7-4.4 13.5-14.2 27.9-14.2 7.1 0 15.6 2.3 25.9 8.9 6.3 4.1 11.3 4.4 22.6 9.3 8.4 3.5 13.7 9.7 10.5 18.2-2.6 7.1-11 14.4-22.7 18.1-11.1 3.6-19.8 16-38.2 14.9-3.9-.2-7-1-9.6-2.1-8-3.5-12.2-10.4-20-15-8.6-4.8-13.2-10.4-14.7-15.3-1.4-4.9 0-9 4.2-12.3zm3.3 334c-2.7 35.1-43.9 34.4-75.3 18-29.9-15.8-68.6-6.5-76.5-21.9-2.4-4.7-2.4-12.7 2.6-26.4v-.2c2.4-7.6.6-16-.6-23.9-1.2-7.8-1.8-15 .9-20 3.5-6.7 8.5-9.1 14.8-11.3 10.3-3.7 11.8-3.4 19.6-9.9 5.5-5.7 9.5-12.9 14.3-18 5.1-5.5 10-8.1 17.7-6.9 8.1 1.2 15.1 6.8 21.9 16l19.6 35.6c9.5 19.9 43.1 48.4 41 68.9zm-1.4-25.9c-4.1-6.6-9.6-13.6-14.4-19.6 7.1 0 14.2-2.2 16.7-8.9 2.3-6.2 0-14.9-7.4-24.9-13.5-18.2-38.3-32.5-38.3-32.5-13.5-8.4-21.1-18.7-24.6-29.9s-3-23.3-.3-35.2c5.2-22.9 18.6-45.2 27.2-59.2 2.3-1.7.8 3.2-8.7 20.8-8.5 16.1-24.4 53.3-2.6 82.4.6-20.7 5.5-41.8 13.8-61.5 12-27.4 37.3-74.9 39.3-112.7 1.1.8 4.6 3.2 6.2 4.1 4.6 2.7 8.1 6.7 12.6 10.3 12.4 10 28.5 9.2 42.4 1.2 6.2-3.5 11.2-7.5 15.9-9 9.9-3.1 17.8-8.6 22.3-15 7.7 30.4 25.7 74.3 37.2 95.7 6.1 11.4 18.3 35.5 23.6 64.6 3.3-.1 7 .4 10.9 1.4 13.8-35.7-11.7-74.2-23.3-84.9-4.7-4.6-4.9-6.6-2.6-6.5 12.6 11.2 29.2 33.7 35.2 59 2.8 11.6 3.3 23.7.4 35.7 16.4 6.8 35.9 17.9 30.7 34.8-2.2-.1-3.2 0-4.2 0 3.2-10.1-3.9-17.6-22.8-26.1-19.6-8.6-36-8.6-38.3 12.5-12.1 4.2-18.3 14.7-21.4 27.3-2.8 11.2-3.6 24.7-4.4 39.9-.5 7.7-3.6 18-6.8 29-32.1 22.9-76.7 32.9-114.3 7.2zm257.4-11.5c-.9 16.8-41.2 19.9-63.2 46.5-13.2 15.7-29.4 24.4-43.6 25.5s-26.5-4.8-33.7-19.3c-4.7-11.1-2.4-23.1 1.1-36.3 3.7-14.2 9.2-28.8 9.9-40.6.8-15.2 1.7-28.5 4.2-38.7 2.6-10.3 6.6-17.2 13.7-21.1.3-.2.7-.3 1-.5.8 13.2 7.3 26.6 18.8 29.5 12.6 3.3 30.7-7.5 38.4-16.3 9-.3 15.7-.9 22.6 5.1 9.9 8.5 7.1 30.3 17.1 41.6 10.6 11.6 14 19.5 13.7 24.6zM173.3 148.7c2 1.9 4.7 4.5 8 7.1 6.6 5.2 15.8 10.6 27.3 10.6 11.6 0 22.5-5.9 31.8-10.8 4.9-2.6 10.9-7 14.8-10.4s5.9-6.3 3.1-6.6-2.6 2.6-6 5.1c-4.4 3.2-9.7 7.4-13.9 9.8-7.4 4.2-19.5 10.2-29.9 10.2s-18.7-4.8-24.9-9.7c-3.1-2.5-5.7-5-7.7-6.9-1.5-1.4-1.9-4.6-4.3-4.9-1.4-.1-1.8 3.7 1.7 6.5z"}})])]],2),a("div",{staticClass:"clearfix"}),a("div",[e._v("Server IP: "),a("span",{staticClass:"bold"},[e._v(e._s(t.ip))])]),t.active_directory_name!==t.name?[a("div",[e._v("Server AD Name: "),a("span",{staticClass:"bold"},[e._v(e._s(t.active_directory_name))])])]:e._e(),a("div",[e._v("Server Purpose: "),a("span",{staticClass:"bold capitalize"},[e._v(e._s(t.type)+" server")])]),a("div",[e._v("Backup Server: "),a("span",{staticClass:"bold"},[e._v(e._s(t.backup?t.backup:"None"))])]),a("div",[e._v("Hosts "),a("b",[e._v(e._s(t.zones.length))]),e._v(" zones")]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.expandedBoxes.includes(t.name),expression:"expandedBoxes.includes(server.name)"}]},[a("ul",[e._l(t.zones,(function(t,s){return[a("li",{key:"zone_"+n+"_"+s},[a("a",{attrs:{href:e.publicPath+"/admin/zones#zone="+t.name,target:"_blank"}},[e._v(e._s(t.name))])])]}))],2)]),a("div",[e._v("This server "),a("span",{staticClass:"bold"},[e._v(e._s(+t.is_production?"is":"is not"))]),e._v(" in production")]),e.expandedBoxes.includes(t.name)&&"print"===t.type&&+t.is_production&&+t.is_primary?a("div",{staticClass:"server_actions flex_row"},[a("div",{staticClass:"flex_member button button_red",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.showFailoverModal(n)}}},[e._v("Failover Server")]),a("div",{staticClass:"flex_member pl-3 pr-3"}),e.failingOver&&e.failingOver.name===t.name?a("div",{staticClass:"flex_member button button_blue",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.showProgressModal()}}},[e._v("View Progress")]):e._e()]):e._e()],2)]}))],2)]:[e._m(0)]],2),null!==e.failoverServer?a("div",{staticClass:"modal",attrs:{id:"failover_modal"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeOpenModal(!1)}}},[e._m(3),a("div",{staticClass:"modal_content_no_overflow"},[e.serverData.isLoaded&&!e.serverData.isError?a("div",[a("p",[e._v("You have requested a failover from "),a("b",[e._v(e._s(e.failoverServer.name))]),e._v(" to "),a("b",[e._v(e._s(e.failoverServer.backup))]),e._v(".")]),e._m(4),a("div",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.confirmFailover,expression:"confirmFailover"}],attrs:{type:"text",id:"confirm_failover"},domProps:{value:e.confirmFailover},on:{input:function(t){t.target.composing||(e.confirmFailover=t.target.value)}}})]),e.confirmationError?a("div",{staticClass:"red"},[e._v(e._s(e.confirmationError))]):e._e()]):e.serverData.isLoaded&&e.serverData.isError?a("div",[a("div",{staticClass:"medium_text"},[e._v("Failed to load server data. Cannot begin failover! Please refresh the page and try again.")])]):e._e()]),a("div",{staticClass:"modal_footer"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("div",{staticClass:"button",on:{click:function(t){return e.closeOpenModal(!1)}}},[e._v("Cancel")])]),a("div",{staticClass:"flex_member end"},[a("div",{staticClass:"button button_red",class:e.disableFailover?"disabled":"",on:{click:function(t){return e.closeOpenModal(!0)}}},[e._v("Begin Failover")])])])])]):e._e(),e.showProgress?a("div",{staticClass:"modal",attrs:{id:"failover_progress_modal"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeOpenModal(!1)}}},[e._m(5),a("div",{staticClass:"modal_content_no_overflow"},[a("div",{staticClass:"medium_text"},[e._v("Moving from "),a("b",[e._v(e._s(e.failingOver.name))]),e._v(" to "),a("b",[e._v(e._s(e.failingOver.backup))])]),a("div",{staticClass:"progress_container",domProps:{innerHTML:e._s(e.failoverProgress.join("<br/>"))}})]),a("div",{staticClass:"modal_footer"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member end"},[a("div",{staticClass:"button",on:{click:function(t){return e.closeOpenModal(!1)}}},[e._v("Close")])])])])]):e._e()])},$a=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member full_width medium_text center"},[e._v("Loading Servers... "),n("img",{attrs:{src:a("d9b6"),alt:"loading"}})])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member full_width medium_text center"},[e._v("Failed to load servers! Please refresh and try again.")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_member full_width"},[a("h2",[e._v("MPrint Servers")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Server Failover")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[e._v("Failover cannot be stopped once it begins! If you are positive you wish to proceed with this server failover, please type "),a("b",[e._v("FAILOVER")]),e._v(" in the box below:")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Failover Progress")])])}],Ja={name:"serverAdmin",data:function(){return{confirmationError:null,confirmFailover:null,disableFailover:!1,enableMask:!1,expandedBoxes:[],failingOver:null,failoverProgress:[],failoverProgressInterval:null,failoverServer:null,filters:{production:null,purpose:null,quick_search:[]},filterJoinWith:"and",msg:null,popFilter:!1,publicPath:window.location.origin,serverData:{isError:!1,isLoaded:!1,servers:[]},showProgress:!1,visibleServers:[]}},props:{user:{type:Object,default:function(){return this.$store.getters.getUser}}},methods:{clearFilters:function(){this.filters.production=null,this.filters.purpose=null,this.filters.quick_search=[],this.filterServers()},closeOpenModal:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!t.showProgress){a.next=4;break}t.showProgress=!1,a.next=19;break;case 4:if(!e){a.next=19;break}if(!t.disableFailover){a.next=7;break}return a.abrupt("return",!1);case 7:if(n=t,"FAILOVER"===t.confirmFailover){a.next=13;break}return t.confirmationError="Text does not match FAILOVER",a.abrupt("return",!1);case 13:t.confirmationError=null;case 14:return t.msg="Commencing Failover...",s=n.serverData.servers.filter((function(e){return e.name===n.failoverServer.backup}))[0],t.disableFailover=!0,a.next=19,p.methods.post("api/scriptinstance",{server:s.active_directory_name,script:"print_provider_failover.ps1 -zone ".concat(n.failoverServer.zones[0].name)}).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!+t.data.result.count){e.next=8;break}return n.msg="Successfully scheduled a failover!",a=t.data.result.result,n.failingOver=n.failoverServer,e.next=6,p.methods.put("api/zones/".concat(n.failoverServer.zones[0].name),{command:"failover",progressId:a,windows_server:s.name}).then((function(){n.failoverProgressInterval=window.setInterval((function(){n.updateProgress(a)}),2e3)})).catch((function(e){console.log(e),n.msg="Failed to start failover!"}));case 6:e.next=10;break;case 8:console.log(t.data.result),n.msg="Something went wrong... please refresh and try again";case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.log(e),n.msg="An error occurred! Please refresh and try again."})).finally((function(){window.setTimeout((function(){n.msg=null}),4e3)}));case 19:t.enableMask=!1,t.failoverServer=null;case 21:case"end":return a.stop()}}),a)})))()},collapse:function(e){if(this.expandedBoxes.includes(e)){var t=this.expandedBoxes.indexOf(e);this.$delete(this.expandedBoxes,+t)}},expand:function(e){this.expandedBoxes.push(e)},filterServers:function(){this.msg="Filtering servers...";var e=this.serverData.servers,t=[],a=Object.values(this.filters).filter((function(e){return null!==e&&e.length})).length;if(a){if("and"===this.filterJoinWith)for(var n=!0,s=0,r=Object.keys(this.filters);s<r.length;s++){var i=r[s];null!==this.filters[i]&&this.filters[i].length&&(n?n=!1:e=t,t=this._filterHelper(e,i))}else for(var o=0,c=Object.keys(this.filters);o<c.length;o++){var l=c[o];null!==this.filters[l]&&this.filters[l].length&&(t=t.concat(this._filterHelper(e,l)))}this.visibleServers=t}else this.visibleServers=this.serverData.servers;this.msg=""},getServerData:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,p.methods.get("api/servers").then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!+t.data.result.count){e.next=7;break}return t.data.result.result.map((function(e){return e.zones=[]})),a.serverData.servers=t.data.result.result,e.next=5,a.getZoneData();case 5:e.next=9;break;case 7:console.log(t.data.result),a.msg="Something went wrong... please refresh and try again.";case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.log(e),a.serverData.isError=!0,a.msg="An error occurred! Please refresh the page and try again.",window.setTimeout((function(){a.msg=null}),4e3)})).finally((function(){a.serverData.isLoaded=!0,a.visibleServers=a.serverData.servers}));case 2:case"end":return t.stop()}}),t)})))()},getZoneData:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,p.methods.get("api/zones").then((function(e){if(+e.data.result.count){var t=a.serverData.servers.map((function(e){return e.name}));for(var n in e.data.result.result)e.data.result.result[+n].windows_server&&a.serverData.servers[t.indexOf(e.data.result.result[+n].windows_server)].zones.push(e.data.result.result[+n]),e.data.result.result[+n].linux_server&&a.serverData.servers[t.indexOf(e.data.result.result[+n].linux_server)].zones.push(e.data.result.result[+n])}else console.log(e.data.result),a.msg="Something went wrong... please refresh and try again!"})).catch((function(e){console.log(e),a.msg="An error occurred! Please refresh and try again."})).finally((function(){window.setTimeout((function(){a.msg=null}),4e3)}));case 2:case"end":return t.stop()}}),t)})))()},scrollListener:function(){this.popFilter=window.scrollY>100},showFailoverModal:function(e){this.failoverServer=this.visibleServers[e],this.disableFailover=!1,this.confirmFailover=null,this.confirmationError=null,this.enableMask=!0},showProgressModal:function(){this.enableMask=!0,this.showProgress=!0},toggle:function(e){this.expandedBoxes.includes(e)?this.collapse(e):this.expand(e)},updateProgress:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:n=t,p.methods.get("api/scriptprogress/".concat(e)).then((function(e){n.failoverProgress=e.data.result.result.map((function(e){return e.message="<p>".concat(e.message,"</p>")})),Object.keys(e.data.result).includes("script_status")&&["completed","failed"].includes(e.data.result["script_status"])&&(window.clearInterval(n.failoverProgressInterval),n.failoverProgressInterval=null,n.failoverProgress.push("<p>Failover "+e.data.result["script_status"]+"!</p>"),n.failingOver=null)})).catch((function(e){console.log(e)}));case 2:case"end":return a.stop()}}),a)})))()},_filterHelper:function(e,t){var a=this,n=[],s=null;if("production"===t)n=n.concat(e.filter((function(e){return"Yes"===a.filters["production"]?+e.is_production:0===+e.is_production})));else if("purpose"===t)n=n.concat(e.filter((function(e){return e.type.toLowerCase()===a.filters["purpose"].toLowerCase()})));else{var r,o=Object(i["a"])(this.filters[t]);try{var c=function(){var t=r.value;s=e.filter((function(e){return JSON.stringify(e).toLowerCase().indexOf(t.toLowerCase())>-1})),"and"===a.filterJoinWith?e=s:s.map((function(e){return n.push(e)}))};for(o.s();!(r=o.n()).done;)c()}catch(l){o.e(l)}finally{o.f()}"and"===this.filterJoinWith&&e.map((function(e){return n.push(e)}))}return n}},created:function(){this.user.uniqname&&this.getServerData(),window.addEventListener("scroll",this.scrollListener)},watch:{user:function(){this.getServerData()}},destroyed:function(){window.removeEventListener("scroll",this.scrollListener)}},Ba=Ja,Wa=(a("72ee"),a("7a8a"),Object(f["a"])(Ba,Ua,$a,!1,null,"67ef9c28",null)),Ha=Wa.exports,za=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.msg,expression:"msg"}],attrs:{id:"message_container"}},[n("div",{staticClass:"message",attrs:{id:"message"}},[e._v(e._s(e.msg))])]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.enableMask,expression:"enableMask"}],staticClass:"mask dim",attrs:{id:"mask"},on:{click:function(t){return e.closeOpenModal(null)}}}),n("div",{attrs:{id:"content",role:"main"}},[n("div",{staticClass:"flex_row"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.popFilter,expression:"popFilter"}],staticClass:"box full_box",attrs:{id:"empty_filter_box"}}),n("div",{staticClass:"box full_box",class:e.popFilter?"popped_out":"",attrs:{id:"filter_container"}},[e._m(0)])]),n("div",{staticClass:"full_width full_box box"},[e._m(1),n("div",{staticClass:"flex_row full_width medium_text"},[n("div",{staticClass:"flex_member"},[n("label",{attrs:{for:"filter_lookup_user"}},[e._v("Find Refunds for User:")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.lookupUser,expression:"lookupUser"}],attrs:{type:"text",id:"filter_lookup_user"},domProps:{value:e.lookupUser},on:{input:function(t){t.target.composing||(e.lookupUser=t.target.value)}}})]),n("div",{staticClass:"flex_member"},[n("label",{staticClass:"pad-8",attrs:{for:"request_start"}},[e._v("Search Range Start:")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.requestStart.date,expression:"requestStart.date"}],attrs:{id:"request_start",type:"date"},domProps:{value:e.requestStart.date},on:{input:function(t){t.target.composing||e.$set(e.requestStart,"date",t.target.value)}}}),n("input",{directives:[{name:"model",rawName:"v-model",value:e.requestStart.time,expression:"requestStart.time"}],staticClass:"pl-2",attrs:{id:"request_start_time",type:"time",step:"1"},domProps:{value:e.requestStart.time},on:{input:function(t){t.target.composing||e.$set(e.requestStart,"time",t.target.value)}}})]),n("div",{staticClass:"flex_member"},[n("label",{staticClass:"pad-8",attrs:{for:"request_end"}},[e._v("Search Range End:")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.requestEnd.date,expression:"requestEnd.date"}],attrs:{id:"request_end",type:"date"},domProps:{value:e.requestEnd.date},on:{input:function(t){t.target.composing||e.$set(e.requestEnd,"date",t.target.value)}}}),n("input",{directives:[{name:"model",rawName:"v-model",value:e.requestEnd.time,expression:"requestEnd.time"}],staticClass:"pl-2",attrs:{id:"request_end_time",type:"time",step:"1"},domProps:{value:e.requestEnd.time},on:{input:function(t){t.target.composing||e.$set(e.requestEnd,"time",t.target.value)}}})])]),n("div",{staticClass:"button button_blue",on:{click:function(t){return e.getRecentRefundsForUser()}}},[e._v("Search for Refunds")])]),n("div",{staticClass:"full_width full_box box"},[e._m(2),e.refundData.isLoading&&!e.refundData.isLoaded?[e._m(3)]:e.refundData.isLoaded&&e.refundData.isError?[n("div",{staticClass:"medium_text center"},[e._v("Failed to load refunds! Please refresh and try again.")])]:e.refundData.isLoading||e.refundData.isLoaded?[e.refundData.refunds.length?[n("table",{staticClass:"full_width"},[e._m(4),e._l(e.refundData.refunds,(function(t,s){return[n("tr",{key:"refund_row_"+s,staticClass:"refund_row",class:"RRR"===t["status"]?"rejected_row":s%2===0?"even_row":""},[n("td",{staticClass:"pad-8"},[e._v(e._s(t.refund_request_id))]),n("td",{staticClass:"pad-8"},[e._v(e._s(e._format(t.request_date,!0)))]),n("td",{staticClass:"pad-8"},[e._v(e._s(e.refundCodes[t.status.toLowerCase()]))]),n("td",{staticClass:"pad-8"},[e._v(e._s(t.request_reason))]),n("td",{staticClass:"pad-8"},[e._v("$"+e._s(t.request_amount))]),n("td",{staticClass:"pad-8"},[e._v(e._s(t.response_username))]),n("td",{staticClass:"pad-8"},[e._v(e._s(t.response_reason))]),n("td",{staticClass:"pad-8"},[e._v("$"+e._s(t.refunded_amount))]),n("td",{staticClass:"pad-8"},[e._v(e._s(e._format(t.response_date,!0)))]),e.actingOnRow===s?n("td",{staticClass:"pad-8"},[n("img",{attrs:{src:a("d9b6"),alt:"acting on refund"}})]):"RRP"!==t["status"]?n("td",{staticClass:"pad-8"},[n("i",{staticClass:"fas fa-undo action_icon",attrs:{title:"Revert Refund"},on:{click:function(a){return e.revertRefund(t,s)}}})]):n("td",{staticClass:"pad-8"},[e._v("N/A")])])]}))],2)]:[n("div",{staticClass:"medium_text center"},[e._v("There are no revertable refunds to show!")])]]:[n("div",{staticClass:"medium_text center"},[e._v("Fill out the search criteria to find some revertable refunds!")])],e.refundData.isLoaded?n("div",{staticClass:"flex_row center"},[n("div",{staticClass:"flex_member"},[n("p",[e._v("Showing "+e._s(e.refundData.refunds.length)+" "+e._s(1===e.refundData.refunds.length?"refund":"refunds"))])])]):e._e()],2)]),e._e()])},Ga=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("h1",[e._v("MPrint Refund Reversal")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("h2",[e._v("Search Criteria")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_member full_width"},[a("h2",[e._v("Actioned Refunds")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"medium_text center"},[e._v("Searching for refunds... "),n("img",{attrs:{src:a("d9b6"),alt:"loading refunds"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"bold pad-8"},[e._v("Refund Request ID")]),a("td",{staticClass:"bold pad-8"},[e._v("Requested At")]),a("td",{staticClass:"bold pad-8"},[e._v("Refund Status")]),a("td",{staticClass:"bold pad-8"},[e._v("Request Reason")]),a("td",{staticClass:"bold pad-8"},[e._v("Amount Requested")]),a("td",{staticClass:"bold pad-8"},[e._v("Actioned By")]),a("td",{staticClass:"bold pad-8"},[e._v("Action Reason")]),a("td",{staticClass:"bold pad-8"},[e._v("Amount Refunded")]),a("td",{staticClass:"bold pad-8"},[e._v("Actioned At")]),a("td",{staticClass:"bold pad-8"},[e._v("Available Actions")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Redeem Credit Code")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"redeem_for"}},[e._v("For whom are you redeeming this code?")])])}],Ya={name:"refunds",data:function(){return{actingOnRow:null,enableMask:!1,lookupUser:null,msg:null,refundData:{isLoading:!1,isLoaded:!1,isError:!1,refunds:[]},popFilter:!1,refundCodes:{rrr:"Refund Rejected",rmf:"Refunded in Full",rmp:"Partially Refunded",rrp:"Refund Pending"},requestEnd:{date:null,time:null},requestStart:{date:null,time:null},weekInterval:6048e5}},props:{user:{type:Object,default:function(){return this.$store.getters.getUser}}},methods:{closeOpenModal:function(e){e?console.log("yes"):this.actingOnRow=null,this.enableMask=!1},getRecentRefundsForUser:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.resetRefundsObj(),e.refundData.isLoading=!0,t.next=5,p.methods.get("api/refunds?requestedBy=".concat(e.lookupUser,"&startTime=").concat(encodeURIComponent("".concat(e.requestStart.date," ").concat(e.requestStart.time)),"&endTime=").concat(encodeURIComponent("".concat(e.requestEnd.date," ").concat(e.requestEnd.time))));case 5:a=t.sent.data.result,console.log(a),a.count&&(e.refundData.refunds=a.result),t.next=15;break;case 10:t.prev=10,t.t0=t["catch"](0),e.refundData.isError=!0,console.log(t.t0),e.msg="An error has occurred! ".concat(t.t0);case 15:return t.prev=15,e.refundData.isLoading=!1,e.refundData.isLoaded=!0,n=e,window.setTimeout((function(){n.msg=null}),4e3),t.finish(15);case 21:case"end":return t.stop()}}),t,null,[[0,10,15,21]])})))()},revertRefund:function(e,t){var a=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var s,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,a.actingOnRow=t,n.next=4,p.methods.put("api/refunds/".concat(e.refund_request_id));case 4:s=n.sent.data.result,console.log(s),s.count?(a.refundData.refunds[t].status="RRP",a.refundData.refunds[t].refunded_amount=0):a.msg="An error occurred while trying to revert refund ".concat(e.refund_request_id,"! ").concat(s.status_message),n.next=13;break;case 9:n.prev=9,n.t0=n["catch"](0),console.log(n.t0),a.msg="An error has occurred! ".concat(n.t0);case 13:return n.prev=13,a.actingOnRow=null,r=a,window.setTimeout((function(){r.msg=null}),4e3),n.finish(13);case 18:case"end":return n.stop()}}),n,null,[[0,9,13,18]])})))()},resetRefundsObj:function(){this.refundData.isLoading=!1,this.refundData.isLoaded=!1,this.refundData.isError=!1,this.refundData.refunds=[]},scrollListener:function(){this.popFilter=window.scrollY>100},_format:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e){var a=e.split("T");return t?"".concat(a[0]," ").concat(a[1].split(".")[0]):a[0]}return"N/A"}},created:function(){this.$route.params["username"]&&(this.lookupUser=this.$route.params["username"]),window.addEventListener("scroll",this.scrollListener)},mounted:function(){this.$route.params["username"]&&(this.lookupUser=this.$route.params["username"]);var e=Date.now();this.requestEnd.date=Object(Q["a"])(e,"yyyy-LL-dd"),this.requestEnd.time="23:59:59",this.requestStart.date=Object(Q["a"])(e-this.weekInterval,"yyyy-LL-dd"),this.requestStart.time="00:00:00",window.addEventListener("scroll",this.scrollListener)},watch:{user:function(){}},destroyed:function(){window.removeEventListener("scroll",this.scrollListener)}},Va=Ya,Ka=(a("1fdd"),Object(f["a"])(Va,za,Ga,!1,null,"0d7b6910",null)),Za=Ka.exports,Xa=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper"},[a("div",{attrs:{id:"content",role:"main"}},[e._m(0),e.deviceId?e.deviceIsLoaded?e.deviceIsLoaded&&e.deviceIsError?[a("div",{staticClass:"full_box large_text center"},[e._v("An error occurred! Please refresh the page to try again.")])]:e.deviceIsLoaded&&!e.deviceIsRegistered?[e.registrationStatus.isLoaded?e.registrationStatus.isLoaded&&e.registrationStatus.isError?[a("div",{staticClass:"full_box large_text pad-8"},[e._v("An error occurred while trying to register your device!")]),a("div",{staticClass:"full_box pad-8"},["installer"===e.originatingApp?[a("input",{attrs:{type:"hidden",id:"registrationResult",name:"registrationResult"},domProps:{value:"status="+e.registrationStatus.status+"&status_message="+e.registrationStatus.status_message}}),a("input",{staticClass:"button button_blue",attrs:{type:"button",value:"Return to application","aria-label":"Return to application"},on:{click:function(){e.completeRegistration()}}})]:[a("a",{attrs:{href:e.hooks[e.originatingApp]+"mprint.umich.edu?status="+e.registrationStatus.status+"&status_message="+e.registrationStatus.status_message}},[a("input",{staticClass:"button button_blue",attrs:{type:"button",value:"Return to application","aria-label":"Return to application"}})])]],2)]:e.registrationStatus.isLoaded&&!e.registrationStatus.status.isError?[a("div",{staticClass:"full_box large_text pad-8"},[e._v("Almost Registered! In order to complete registration, please click the button below to return to the "+e._s(e.appNames[e.originatingApp])+" application.")]),a("div",{staticClass:"full_box pad-8"},["installer"===e.originatingApp?[a("input",{attrs:{type:"hidden",id:"registrationResult",name:"registrationResult"},domProps:{value:"status="+e.registrationStatus.status+"&status_message="+e.registrationStatus.status_message+"&api_key="+e.registrationStatus.api_key+"&is_miworkspace="+ +e.registrationStatus.registeredUser.is_mws}}),a("input",{staticClass:"button button_blue",attrs:{type:"button",value:"Return to application","aria-label":"Return to application"},on:{click:function(){e.completeRegistration()}}})]:[a("a",{attrs:{href:e.hooks[e.originatingApp]+"mprint.umich.edu?status="+e.registrationStatus.status+"&status_message="+e.registrationStatus.status_message+"&api_key="+e.registrationStatus.api_key+"&is_miworkspace="+ +e.registrationStatus.registeredUser.is_mws}},[a("input",{staticClass:"button button_blue",attrs:{type:"button",value:"Return to application","aria-label":"Return to application"}})])]],2)]:e._e():[a("div",{staticClass:"full_box large_text pad-8"},[e._v("Please click the 'Register Device' button below to register this device for user '"+e._s(e.user.uniqname)+"'")]),a("div",{staticClass:"full_box"},[a("button",{staticClass:"button button_blue pad-8",attrs:{"aria-label":"Register Device"},on:{click:function(t){return t.preventDefault(),e.registerDevice.apply(null,arguments)}}},[e._v("Register Device")])])]]:e.deviceIsLoaded&&e.deviceIsRegistered&&e.user.uniqname===e.deviceUser?[e.registrationStatus.isLoaded?[a("div",{staticClass:"full_box large_text pad-8"},[e._v("Device is registered to you! Click the button below to return to the "+e._s(e.appNames[e.originatingApp])+" application.")]),a("div",{staticClass:"full_box pad-8"},["installer"===e.originatingApp?[a("input",{attrs:{type:"hidden",id:"registrationResult",name:"registrationResult"},domProps:{value:"status=success&status_message=Device%20is%20registered&api_key="+e.registrationStatus.api_key+"&is_miworkspace="+ +e.registrationStatus.registeredUser.is_mws}}),a("input",{staticClass:"button button_blue",attrs:{type:"button",value:"Return to application","aria-label":"Return to application"},on:{click:function(){e.completeRegistration()}}})]:[a("a",{attrs:{href:e.hooks[e.originatingApp]+"mprint.umich.edu?status=success&status_message=Device%20is%20registered&api_key="+e.registrationStatus.api_key+"&is_miworkspace="+ +e.registrationStatus.registeredUser.is_mws}},[a("input",{staticClass:"button button_blue",attrs:{type:"button",value:"Return to application","aria-label":"Return to application"}})])]],2)]:[e._m(2)]]:e.deviceIsLoaded&&e.deviceIsRegistered&&"admin"===e.user.role?[a("div",{staticClass:"full_box large_text center"},[e._v("Device is currently registered to user '"+e._s(e.deviceUser)+"'")])]:[a("div",{staticClass:"full_box large_text center"},[e._v("You are not authorized to look up registration information for arbitrary devices!")])]:[e._m(1)]:[a("div",{staticClass:"full_box large_text center"},[e._v("No device ID provided!")])]],2)])},en=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"box full_box"},[a("h1",[e._v("Device Registration")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"full_box large_text center"},[e._v("Checking if device is registered... "),n("img",{attrs:{src:a("d9b6"),alt:"loading"}})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"full_box large_text center"},[e._v("Checking if device is registered... "),n("img",{attrs:{src:a("d9b6"),alt:"loading"}})])}],tn=a("a49b")["installer"]["hook"],an="mprint-mobilerelease://",nn={name:"register",data:function(){return{appNames:{installer:"MPrint Install",mobile:"MPrint Mobile"},deviceId:null,deviceIsError:!1,deviceIsLoaded:!1,deviceIsRegistered:!1,deviceUser:null,hooks:{installer:tn,mobile:an},originatingApp:"mobile",registrationStatus:{isLoaded:!1,isError:!1}}},props:{user:{type:Object,default:function(){return{}}}},methods:{checkDeviceId:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:try{a=e,p.methods.get("/api/registration?deviceId=".concat(a.deviceId)).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.data.result.count?(a.deviceIsRegistered=!0,a.deviceUser=t.data.result.result[0]["uniqname"],a.registrationStatus.api_key=t.data.result.result[0]["api_key"],p.methods.get("/api/users/".concat(a.deviceUser)).then((function(e){a.registrationStatus.registeredUser=e.data.result.result[0],a.registrationStatus.isLoaded=!0})).catch((function(e){console.log(e)}))):a.deviceIsRegistered=!1;case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.log(e),a.deviceIsError=!0})).finally((function(){a.deviceIsLoaded=!0}))}catch(Qe){console.log("an error occurred! ".concat(Qe))}case 1:case"end":return t.stop()}}),t)})))()},completeRegistration:function(){if(Object.keys(window).includes("mprint")){var e=document.getElementById("registrationResult").value;window.mprint.finishRegistration(e),window.close()}else console.log("MPRINT is not available to this window")},registerDevice:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:try{a=e,p.methods.post("/api/registration",{releaseStationId:a.deviceId,uniqname:a.user.uniqname}).then((function(e){a.registrationStatus.status=e.data.result.status,a.registrationStatus.status_message=e.data.result.status_message,"success"!==e.data.result.status?a.registrationStatus.isError=!0:(a.registrationStatus.api_key=e.data.result.result.api_key,a.registrationStatus.registeredUser=e.data.result.result.user)})).catch((function(e){a.registrationStatus.isError=!0,a.registrationStatus.status="failure",a.registrationStatus.status_message=e})).finally((function(){a.registrationStatus.isLoaded=!0}))}catch(Qe){e.registrationStatus.isError=!0,e.registrationStatus.status="failure",e.registrationStatus.status_message=Qe,e.registrationStatus.isLoaded=!0}case 1:case"end":return t.stop()}}),t)})))()}},mounted:function(){this.user.uniqname&&(this.deviceId=this.$route.query.deviceId,console.log(this.deviceId.toLowerCase()),this.deviceId.toLowerCase().endsWith("-installer")&&(this.originatingApp="installer"),console.log(this.originatingApp),this.checkDeviceId())},watch:{user:function(){this.deviceId=this.$route.query.deviceId,console.log("watch: ".concat(this.deviceId.toLowerCase())),this.deviceId.toLowerCase().endsWith("-installer")&&(this.originatingApp="installer"),console.log(this.originatingApp),this.checkDeviceId()}}},sn=nn,rn=Object(f["a"])(sn,Xa,en,!1,null,"286671e2",null),on=rn.exports,cn=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.msg,expression:"msg"}],attrs:{id:"message_container"}},[a("div",{staticClass:"message",attrs:{id:"message"}},[e._v(e._s(e.msg))])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.enableMask,expression:"enableMask"}],staticClass:"mask dim",attrs:{id:"mask"},on:{click:function(t){return e.closeOpenModal(!1)}}}),a("div",{attrs:{id:"content",role:"main"}},[a("div",{staticClass:"flex_row"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.popFilter,expression:"popFilter"}],staticClass:"box full_box",attrs:{id:"empty_filter_box"}}),a("div",{staticClass:"box full_box",class:e.popFilter?"popped_out":"",attrs:{id:"filter_container"}},[a("div",{staticClass:"flex_row"},[e._m(0),a("div",{staticClass:"flex_member end"},[a("div",[a("label",{attrs:{for:"filter_quick_search"}},[e._v("Quick Search:")]),a("v-select",{attrs:{id:"filter_quick_search",taggable:"",multiple:"",options:[],"dropdown-should-open":function(){return!1}},on:{input:function(t){return e.filterJobs()}},model:{value:e.quick_search,callback:function(t){e.quick_search=t},expression:"quick_search"}})],1),a("p",{staticClass:"pl-2"},[e._v("Join filters with: "),a("label",{attrs:{for:"join_and"}},[e._v("And")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.filterJoinWith,expression:"filterJoinWith"}],attrs:{type:"radio",id:"join_and",name:"filter_join_with",value:"and",checked:"checked"},domProps:{checked:e._q(e.filterJoinWith,"and")},on:{change:[function(t){e.filterJoinWith="and"},function(t){return e.filterJobs()}]}}),e._v(" or "),a("label",{attrs:{for:"join_or"}},[e._v("Or")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.filterJoinWith,expression:"filterJoinWith"}],attrs:{type:"radio",id:"join_or",name:"filter_join_with",value:"or"},domProps:{checked:e._q(e.filterJoinWith,"or")},on:{change:[function(t){e.filterJoinWith="or"},function(t){return e.filterJobs()}]}})])])]),e.heldJobs.isLoaded?a("div",{staticClass:"flex_row center"},[a("div",{staticClass:"flex_member"},[a("p",[e._v("Showing "+e._s(e.visibleJobs.length)+" held job(s)")])])]):e._e()])]),a("div",{staticClass:"flex_row"},[a("h2",[e._v("Available Actions")]),a("div",{staticClass:"flex_row box"},[a("div",{staticClass:"flex_member flex_column",staticStyle:{"justify-content":"center","align-content":"center"}},[a("div",{staticClass:"medium_text"},[e._v("Selected Jobs: "+e._s(e.selectedJobs.length))])]),e.selectedJobs.length?[a("div",{staticClass:"flex_member flex_column"},[a("div",{staticClass:"button button_large",on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.selectedJobs=[]}}},[a("span",[e._v("Deselect All")])])])]:!e.adminView||e.quick_search.length?[a("div",{staticClass:"flex_member flex_column"},[a("div",{staticClass:"button button_large button_green",class:e.heldJobs.isLoaded&&0!==Object.keys(e.heldJobs.jobs).length?"":"disabled",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.selectAllVisibleJobs.apply(null,arguments)}}},[a("span",[e._v("Select All")])])])]:e._e(),a("div",{staticClass:"flex_member flex_column"},[a("div",{staticClass:"button button_large button_blue",class:0===e.selectedJobs.length?"disabled":"",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.showModal("Release")}}},[a("span",[e._v("Release Selected")])])]),a("div",{staticClass:"flex_member flex_column"},[a("div",{staticClass:"button button_large button_red",class:0===e.selectedJobs.length?"disabled":"",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.showModal("Delete")}}},[a("span",[e._v("Delete Selected")])])])],2),a("div",{staticClass:"flex_row"},[e.releaseErrors.length?[a("div",{staticClass:"full_width medium_text pb-1"},[e._v("Release Errors")])]:e._e(),e._l(e.releaseErrors,(function(t,n){return[a("div",{key:"msg_"+n,staticClass:"full_width red pl-3"},[e._v(e._s(t))])]}))],2)]),a("hr",{staticClass:"main_divider"}),e.heldJobs.isLoaded?e.heldJobs.isLoaded&&e.heldJobs.isError?[a("div",{staticClass:"full_width large_text center"},[e._v("Failed to load held jobs! Please refresh the page and try again.")])]:!e.heldJobs.isLoaded||e.heldJobs.isError||Object.keys(e.heldJobs.jobs).length?[a("div",{staticClass:"full_width flex_row"},[a("h2",{staticClass:"full_width"},[e._v("Pending Follow Me Jobs")]),e._l(e.visibleJobs,(function(t,n){return["HOLD"!==t.action||!e.adminView&&t.userName!==e.user.uniqname?e._e():[a("div",{key:"job_"+n,staticClass:"box job_box",class:e.selectedJobs.includes(t.eventId)?"selected":"",on:{click:function(t){return e.toggleJob(n)}}},[t.documentName.indexOf("ACCT({[")>-1?[a("h3",{staticClass:"bold"},[e._v(e._s(t.documentName.split("ACCT")[0]))]),e.adminView?a("div",[e._v("Submitted By: "+e._s(t.userName!==e.user.uniqname?t.userName:"Me"))]):e._e(),a("div",[e._v("Submitted At: "+e._s(t.printTime))]),a("div",[e._v("Pages: "+e._s(t.totalPages/t.copies))]),a("div",[e._v("Copies: "+e._s(t.copies))]),a("div",[e._v("Total Pages: "+e._s(t.totalPages))]),a("div",[e._v("Selected Account: "+e._s(t.documentName.split("({[")[1].split("]})")[0]))])]:[a("h3",{staticClass:"bold"},[e._v(e._s(t.documentName))]),e.adminView?a("div",[e._v("Submitted By: "+e._s(t.userName!==e.user.uniqname?t.userName:"Me"))]):e._e(),a("div",[e._v("Submitted At: "+e._s(t.printTime))]),a("div",[e._v("Pages: "+e._s(t.totalPages/t.copies))]),a("div",[e._v("Copies: "+e._s(t.copies))]),a("div",[e._v("Total Pages: "+e._s(t.totalPages))])]],2)]]}))],2)]:[a("div",{staticClass:"full_width large_text center"},[e._v("There are no available jobs to release!")])]:[e._m(1)],a("hr",{staticClass:"main_divider"}),e.releasedJobs&&e.releasedJobs.length||e.heldJobs.jobs&&e.heldJobs.jobs.length?[a("div",{staticClass:"full_width flex_row"},[a("h2",{staticClass:"full_width"},[e._v("Released Follow Me Jobs")]),e.releasedJobs&&e.releasedJobs.length?[e._l(e.releasedJobs,(function(t,n){return[a("div",{key:"job_"+n,staticClass:"box released_box"},[t.documentName.indexOf("ACCT({[")>-1?[a("h3",{staticClass:"bold"},[e._v(e._s(t.documentName.split("ACCT")[0]))]),e.adminView?a("div",[e._v("Submitted By: "+e._s(t.userName!==e.user.uniqname?t.userName:"Me"))]):e._e(),a("div",[e._v("Released At: "+e._s(t.releaseTime))]),a("div",[e._v("Released To: "+e._s(t.releasedTo))]),a("div",[e._v("Pages: "+e._s(t.totalPages/t.copies))]),a("div",[e._v("Copies: "+e._s(t.copies))]),a("div",[e._v("Total Pages: "+e._s(t.totalPages))]),a("div",[e._v("Selected Account: "+e._s(t.documentName.split("({[")[1].split("]})")[0]))])]:[a("h3",{staticClass:"bold"},[e._v(e._s(t.documentName))]),e.adminView?a("div",[e._v("Submitted By: "+e._s(t.userName!==e.user.uniqname?t.userName:"Me"))]):e._e(),a("div",[e._v("Released At: "+e._s(t.releaseTime))]),a("div",[e._v("Released To: "+e._s(t.releasedTo))]),a("div",[e._v("Pages: "+e._s(t.totalPages/t.copies))]),a("div",[e._v("Copies: "+e._s(t.copies))]),a("div",[e._v("Total Pages: "+e._s(t.totalPages))])]],2)]}))]:[a("div",{staticClass:"medium_text center full_width"},[e._v("No jobs have been released yet!")])]],2)]:e._e()],2),e.enableMask?a("div",{staticClass:"modal",attrs:{id:"job_modal"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeOpenModal(!1)}}},[a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v(e._s(e.showModalForAction+" Job"+(e.selectedJobs.length>1?"s":"")))])]),a("div",{staticClass:"modal_content_no_overflow"},["release"===e.showModalForAction.toLowerCase()?[a("h2",[e._v("Choose Destination")]),e.queueData.isLoaded?e.queueData.isLoaded&&!e.queueData.isError?[null!==e.releaseToError?a("div",{staticClass:"red"},[e._v(e._s(e.releaseToError))]):e._e(),a("v-select",{attrs:{name:"queue",id:"queue","aria-label":"Select Destination","aria-placeholder":"Select Destination",placeholder:"Select Destination",filterBy:e.queueFilter,label:"display_name",options:e.queueData.queues,selectable:function(e){return+e.enabled}},on:{input:e.checkReadyForRelease},scopedSlots:e._u([{key:"selected-option",fn:function(t){var n=t.name;return[a("div",{attrs:{"aria-label":n}},[e._v(e._s(n))])]}},{key:"option",fn:function(t){var n=t.display_name,s=t.name,r=t.enabled,i=t.state,o=t.cost,c=t.additional_features;return[a("div",{staticClass:"bold",attrs:{"aria-label":n}},[e._v(e._s(n))]),a("div",{staticClass:"flex_row small"},[a("div",{staticClass:"flex_member"},[e._v(e._s(s))]),a("div",{staticClass:"flex_member capitalize"},[e._v("Queue Status: "),a("span",{class:+r?"ok"===i.toLowerCase()?"green":"warning"===i.toLowerCase()?"yellow":"red":"red"},[e._v(e._s(+r?i:"Disabled"))])]),a("div",{staticClass:"flex_member"},[e._v(e._s(o>0?"$"+o+" per page":"No Cost"))]),a("div",{staticClass:"flex_member end"},[e._v("Additional Features: "+e._s(c.join(", ")))])])]}}],null,!1,3547579393),model:{value:e.releaseTo,callback:function(t){e.releaseTo=t},expression:"releaseTo"}})]:[a("div",[e._v("An error occurred! Failed to load service connection information.")])]:[e._m(2)]]:[a("div",{staticClass:"medium_text"},[e._v("Are you sure you wish to delete the following "+e._s(e.selectedJobs.length>1?"jobs":"job")+"?")]),a("ul",[e._l(e.selectedJobs,(function(t,n){return[a("li",{key:"selected_job_"+n},[e._v(e._s(e.heldJobs.jobs[t].documentName)+" - Submitted at "+e._s(e.heldJobs.jobs[t].printTime))])]}))],2)]],2),a("div",{staticClass:"modal_footer"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("div",{staticClass:"button",on:{click:function(t){return e.closeOpenModal(!1)}}},[e._v("Close")])]),a("div",{staticClass:"flex_member end"},["release"===e.showModalForAction.toLowerCase()?[a("div",{staticClass:"button button_blue",class:e.disableRelease?"disabled":"",on:{click:function(t){return e.closeOpenModal(!0)}}},[a("i",{staticClass:"fas fa-print mr-2"}),e._v("Release "+e._s(e.selectedJobs.length>1?e.selectedJobs.length+" Jobs":"1 Job"))])]:[a("div",{staticClass:"button button_red",on:{click:function(t){return e.closeOpenModal(!0)}}},[a("i",{staticClass:"fas fa-times mr-2"}),e._v("Delete "+e._s(e.selectedJobs.length>1?e.selectedJobs.length+" Jobs":"1 Job"))])]],2)])])]):e._e()])},ln=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_member"},[a("h1",[e._v("Release Held Jobs")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"full_width large_text center"},[e._v("Loading available jobs... "),n("img",{attrs:{src:a("d9b6"),alt:"loading","aria-label":"loading held jobs"}})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"medium_text"},[e._v("Loading available queues... "),n("img",{attrs:{src:a("d9b6"),alt:"loading queues"}})])}],un={name:"release",data:function(){return{adminView:!1,disableRelease:!1,enableMask:!1,filterJoinWith:"and",heldJobs:{isLoaded:!1,isError:!1,jobs:{}},msg:null,popFilter:!1,quick_search:[],queueData:{isLoaded:!1,isError:!1,queues:[]},releasedJobs:[],releaseErrors:[],releaseTo:null,releaseToError:null,selectedDefaultPrinter:null,selectedJobs:[],showModalForAction:null,userData:{isError:!1,isLoaded:!1,defaultPrinter:null,defaultPrinterSaved:!1},virtualQueue:null,visibleJobs:[]}},props:{user:{type:Object,default:function(){return this.$store.getters.getUser}}},methods:{cancelJob:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return n=t,s=!1,a.prev=2,a.next=5,p.methods.delete("/api/release/".concat(e));case 5:r=a.sent,+r.data.result.count?(s=!0,t.$delete(n.heldJobs.jobs,e),t.filterJobs()):(s=!1,console.log(r)),a.next=13;break;case 9:a.prev=9,a.t0=a["catch"](2),console.log(a.t0),s=!1;case 13:return a.abrupt("return",s);case 14:case"end":return a.stop()}}),a,null,[[2,9]])})))()},checkReadyForRelease:function(){this.disableRelease=!(null!==this.releaseTo&&this.releaseTo)},closeOpenModal:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,s,r,o,c,l,u,d,p,_,m;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!e){a.next=63;break}if("release"!==t.showModalForAction.toLowerCase()){a.next=34;break}if(!t.disableRelease){a.next=4;break}return a.abrupt("return",!1);case 4:if(t.releaseTo){a.next=7;break}return t.releaseToError="You must choose a printer to which your document(s) will be released!",a.abrupt("return",!1);case 7:t.msg="Releasing to ".concat(t.releaseTo.display_name,"..."),n=0,t.disableRelease=!0,s=Object(i["a"])(t.selectedJobs),a.prev=11,s.s();case 13:if((r=s.n()).done){a.next=21;break}return o=r.value,a.next=17,t.releaseJob(t.heldJobs.jobs[o]);case 17:c=a.sent,c.success?n++:c.status_message&&c.status_message!==t.releaseToError&&(t.releaseErrors.includes(c.status_message)||t.releaseErrors.push(c.status_message));case 19:a.next=13;break;case 21:a.next=26;break;case 23:a.prev=23,a.t0=a["catch"](11),s.e(a.t0);case 26:return a.prev=26,s.f(),a.finish(26);case 29:n!==t.selectedJobs.length?t.msg="Failed to release ".concat(t.selectedJobs.length-n," job(s)!"):t.msg="Successfully released ".concat(n," job(s)!"),l=t,window.setTimeout((function(){l.msg=null,l.releaseErrors=[]}),4e3),a.next=63;break;case 34:t.msg="Cancelling ".concat(t.selectedJobs.length," job(s)..."),u=0,d=Object(i["a"])(t.selectedJobs),a.prev=37,d.s();case 39:if((p=d.n()).done){a.next=52;break}return _=p.value,a.t1=u,a.next=44,t.cancelJob(_);case 44:if(!a.sent){a.next=48;break}a.t2=1,a.next=49;break;case 48:a.t2=0;case 49:u=a.t1+=a.t2;case 50:a.next=39;break;case 52:a.next=57;break;case 54:a.prev=54,a.t3=a["catch"](37),d.e(a.t3);case 57:return a.prev=57,d.f(),a.finish(57);case 60:u!==t.selectedJobs.length?t.msg="Failed to cancel ".concat(t.selectedJobs.length-u," job(s)!"):t.msg="Successfully cancelled ".concat(u," job(s)!"),m=t,window.setTimeout((function(){m.msg=null}),4e3);case 63:t.disableRelease=!1,t.enableMask=!1,t.releaseTo=null,t.releaseToError=null,t.showModalForAction=null,e&&(t.selectedJobs=[]);case 69:case"end":return a.stop()}}),a,null,[[11,23,26,29],[37,54,57,60]])})))()},filterJobs:function(){var e=this;this.msg="Filtering held jobs...","and"!==this.filterJoinWith&&this.quick_search&&this.quick_search.length?"or"===this.filterJoinWith&&(this.visibleJobs=[]):this.visibleJobs=Object.values(this.heldJobs.jobs);var t,a=Object(i["a"])(this.quick_search);try{var n=function(){var a=t.value;"and"===e.filterJoinWith?e.visibleJobs=e.visibleJobs.filter((function(e){return JSON.stringify(Object.values(e)).toLowerCase().indexOf(a.toLowerCase())>-1})):e.visibleJobs=e.visibleJobs.concat(Object.values(e.heldJobs.jobs).filter((function(e){return JSON.stringify(Object.values(e)).toLowerCase().indexOf(a.toLowerCase())>-1})))};for(a.s();!(t=a.n()).done;)n()}catch(s){a.e(s)}finally{a.f()}this.msg=""},getHeldJobs:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,p.methods.get("/api/release".concat("admin"===e.user.role?"?viewAll":"")).then((function(e){if(+e.data.result.count){var t=e.data.result.result.filter((function(e){return e&&Object.keys(e).length}));t.map((function(e){return e.printTime=Object(Q["a"])(Object(U["a"])(e.printTime.replace("T"," ")),"yyyy-LL-dd HH:mm:ss")})),t.sort((function(e,t){return new Date(e.printTime).getTime()>new Date(t.printTime).getTime()?1:-1})),t.map((function(e){return a.$set(a.heldJobs.jobs,e.eventId,e)})),a.visibleJobs=t}})).catch((function(e){console.log(e),a.$set(a.heldJobs,"isError",!0)})).finally((function(){a.$set(a.heldJobs,"isLoaded",!0)}));case 2:case"end":return t.stop()}}),t)})))()},getQueues:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,p.methods.get("api/queues?basic=1").then((function(e){if(+e.data.result.count){a.queueData.queues=e.data.result.result.filter((function(e){return-1===e.name.indexOf("-follow-me")&&"printer"===e.type}));var t,n=Object(i["a"])(a.queueData.queues);try{for(n.s();!(t=n.n()).done;){var s=t.value;s["additional_features"]=[],s.color&&s["additional_features"].push("Color"),s.copy&&s["additional_features"].push("Copy"),s.tabloid&&s["additional_features"].push("Tabloid"),s["additional_features"].length||s["additional_features"].push("None")}}catch(r){n.e(r)}finally{n.f()}}else a.queueData.isError=!0})).catch((function(e){console.log(e),a.queueData.isError=!0})).finally((function(){if(a.queueData.isLoaded=!0,a.userData.isLoaded&&a.userData.defaultPrinter)if(a.userData.defaultPrinter.startsWith("m-follow-me"))a.selectedDefaultPrinter=null;else{var e=a.queueData.queues.filter((function(e){return e.name===a.userData.defaultPrinter}));0===e.length?(a.msg="You do not seem to have access to your previously selected default printer ".concat(a.userData.defaultPrinter,"! It will not be used as the default right now."),a.userData.defaultPrinter=null,window.setTimeout((function(){a.msg=null}),4e3)):a.selectedDefaultPrinter=e[0]}}));case 2:case"end":return t.stop()}}),t)})))()},getUserData:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e,e.userData.isLoaded=!1,e.userData.isError=!1,t.prev=3,t.next=6,p.methods.get("api/usersettings/".concat(a.user.uniqname));case 6:n=t.sent.data.result,+n.count&&(a.userData.defaultPrinter=n.result[0].default_printer,a.userData.defaultPrinterSaved=!0),t.next=14;break;case 10:t.prev=10,t.t0=t["catch"](3),console.log(t.t0),a.userData.isError=!0;case 14:return t.prev=14,a.userData.isLoaded=!0,!a.queueData.isLoaded||a.queueData.isError||a.userData.isError||a.userData.defaultPrinter&&(a.userData.defaultPrinter.startsWith("m-follow-me")?a.selectedDefaultPrinter=null:(s=a.queueData.queues.filter((function(e){return e.name===a.userData.defaultPrinter})),0===s.length?(a.msg="You do not seem to have access to your previously selected default printer ".concat(a.userData.defaultPrinter,"! It will not be used as the default right now."),a.userData.defaultPrinter=null,window.setTimeout((function(){a.msg=null}),4e3)):a.selectedDefaultPrinter=s[0])),t.finish(14);case 18:case"end":return t.stop()}}),t,null,[[3,10,14,18]])})))()},queueFilter:function(e,t,a){return t.toLowerCase().indexOf(a.toLowerCase())>=0||e.name.toLowerCase().indexOf(a.toLowerCase())>=0},releaseJob:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,s,r,i,o,c,l;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return n=t.releaseTo,s=!1,r={chargeToUser:e.chargeToUser,releaseTo:n.name,fromServer:e.printServer,totalPages:e.totalPages,userToCharge:e.userName},i="",a.prev=4,a.next=7,p.methods.put("/api/release/".concat(e.eventId),r);case 7:o=a.sent,+o.data.result.count?(s=!0,c=!1,l=t.visibleJobs.indexOf(e),Object.keys(t.heldJobs.jobs).includes(e.eventId)&&(t.releasedJobs.push(Object(I["a"])(Object(I["a"])({},e),{},{releasedTo:n.display_name,releaseTime:Object(Q["a"])(Date.now(),"yyyy-LL-dd HH:mm:ss")})),c=!0),c&&t.$delete(t.heldJobs.jobs,e.eventId),null!==l&&t.$delete(t.visibleJobs,l)):(console.log(o.data.result),i=o.data.result.status_message),a.next=15;break;case 11:a.prev=11,a.t0=a["catch"](4),console.log(a.t0),i=a.t0;case 15:return a.abrupt("return",{success:s,status_message:i});case 16:case"end":return a.stop()}}),a,null,[[4,11]])})))()},scrollListener:function(){this.popFilter=window.scrollY>100},selectAllVisibleJobs:function(){this.selectedJobs=this.visibleJobs.map((function(e){return e.eventId}))},showModal:function(e){this.selectedJobs.length&&("release"===e.toLowerCase()&&this.selectedDefaultPrinter&&(this.releaseTo=this.selectedDefaultPrinter),this.enableMask=!0,this.disableRelease=!0,this.showModalForAction=e)},toggleJob:function(e){var t=this.visibleJobs[e].eventId;this.selectedJobs.includes(t)?this.selectedJobs=this.selectedJobs.filter((function(e){return e!==t})):this.selectedJobs.push(t)}},created:function(){this.user.uniqname&&(this.getQueues(),this.getHeldJobs(),this.getUserData(),this.adminView="admin"===this.user.role),window.addEventListener("scroll",this.scrollListener)},watch:{user:function(){this.getQueues(),this.getHeldJobs(),this.getUserData(),this.adminView="admin"===this.user.role}},destroyed:function(){window.removeEventListener("scroll",this.scrollListener)}},dn=un,pn=(a("835e"),a("f7e6"),Object(f["a"])(dn,cn,ln,!1,null,"71eca1b0",null)),_n=pn.exports,mn=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.msg,expression:"msg"}],attrs:{id:"message_container"}},[a("div",{staticClass:"message",attrs:{id:"message"}},[e._v(e._s(e.msg))])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.enableMask,expression:"enableMask"}],staticClass:"mask dim",attrs:{id:"mask"},on:{click:function(t){return e.closeOpenModal(null)}}}),a("div",{attrs:{id:"content",role:"main"}},[e._m(0),a("div",{staticClass:"box full_box"},[e._m(1),a("div",{staticClass:"pad-8"},[a("label",{attrs:{for:"reportSubject"}},[e._v("What sort of report would you like to run? ")]),a("v-select",{attrs:{id:"reportSubject",options:e.availableReports,label:"label",reduce:function(e){return e.value}},model:{value:e.reportSubject,callback:function(t){e.reportSubject=t},expression:"reportSubject"}}),a("hr",{staticClass:"main_divider",staticStyle:{margin:"12px auto"}}),e.reportSubject&&"user"===e.reportSubject?[e.adminView?[a("div",{staticClass:"medium_text"},[e._v("Report on User's Usage")])]:[a("div",{staticClass:"medium_text"},[e._v("Report on My Usage")])],a("div",{staticClass:"lh-3"},[a("label",{attrs:{for:"user_report_user"}},[e._v("User: ")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.reportUser,expression:"reportUser"}],attrs:{type:"text",id:"user_report_user",disabled:!e.adminView&&"disabled"},domProps:{value:e.reportUser},on:{input:function(t){t.target.composing||(e.reportUser=t.target.value)}}})])]:e.reportSubject&&"group"===e.reportSubject?[e.groupData.isLoaded&&!e.groupData.isError&&0===e.groupData.owned_groups.length?[a("div",{staticClass:"medium_text center lh-3"},[e._v("You are not an owner of any MCommunity groups!")])]:e.groupData.isLoaded&&!e.groupData.isError?[a("div",{staticClass:"medium_text"},[e._v("Report on a User Group")]),a("div",{staticClass:"lh-3"},[a("label",{attrs:{for:"group_report_group"}},[e._v("User Group: ")]),a("v-select",{attrs:{id:"group_report_group",options:e.groupData.owned_groups,label:"name",reduce:function(e){return e.email}},model:{value:e.reportGroup,callback:function(t){e.reportGroup=t},expression:"reportGroup"}})],1)]:e.groupData.isLoaded&&e.groupData.isError?[a("div",{staticClass:"medium_text"},[e._v("Report on a User Group")]),e._m(2)]:[a("div",{staticClass:"medium_text"},[e._v("Report on a User Group")]),e._m(3)]]:e.reportSubject&&"printer"===e.reportSubject?[a("div",{staticClass:"medium_text"},[e._v("Report on a Printer")]),a("div",{staticClass:"lh-3"},[a("label",{attrs:{for:"printer_report_printer"}},[e._v("Printer: ")]),a("v-select",{attrs:{id:"printer_report_printer",options:e.queueData.queues,label:"name",reduce:function(e){return e.name}},model:{value:e.reportPrinter,callback:function(t){e.reportPrinter=t},expression:"reportPrinter"}})],1)]:e.reportSubject&&"unit"===e.reportSubject?[!e.adminView&&e.unitAdminData.isLoaded&&0===e.myUnits.length?[a("div",{staticClass:"medium_text center lh-3"},[e._v("You are not authorized to run any reports for an entire unit! If you believe you should have this access, please submit a "),a("a",{attrs:{href:e.publicPath+"/admin/units",target:"_blank"}},[e._v("Unit Admin request")]),e._v(".")])]:e.adminView||e.unitAdminData.isLoaded&&e.myUnits.length?[a("div",{staticClass:"medium_text"},[e._v("Report on Printers in a Unit")]),a("div",{staticClass:"lh-3"},[a("label",{attrs:{for:"unit_report_unit"}},[e._v("Unit: ")]),a("v-select",{attrs:{id:"unit_report_unit",options:e.myUnits,label:"unit_name",reduce:function(e){return e.unit_name}},model:{value:e.reportUnit,callback:function(t){e.reportUnit=t},expression:"reportUnit"}})],1)]:e._e()]:e._e(),a("div",{staticClass:"lh-3"},[a("label",{attrs:{for:"report_date_start"}},[e._v("Date Range Begin: ")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.reportDateBegin,expression:"reportDateBegin"}],attrs:{type:"date",id:"report_date_start",min:"2012-05-01",max:e.todayFormatted},domProps:{value:e.reportDateBegin},on:{change:function(t){return e.validateDates()},input:function(t){t.target.composing||(e.reportDateBegin=t.target.value)}}})]),a("div",{staticClass:"lh-3"},[a("label",{attrs:{for:"report_date_end"}},[e._v("Date Range End: ")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.reportDateEnd,expression:"reportDateEnd"}],attrs:{type:"date",id:"report_date_end",min:"2012-05-01",max:e.todayFormatted},domProps:{value:e.reportDateEnd},on:{change:function(t){return e.validateDates()},input:function(t){t.target.composing||(e.reportDateEnd=t.target.value)}}})]),e.reportSubject&&"user"===e.reportSubject?[a("div",{staticClass:"lh-3"},[a("label",{attrs:{for:"printerLimit"}},[e._v("Limit To Printers: ")]),a("v-select",{attrs:{id:"printerLimit",options:e.queueData.queues,label:"name",reduce:function(e){return e.name},multiple:""},model:{value:e.reportFilterPrinters,callback:function(t){e.reportFilterPrinters=t},expression:"reportFilterPrinters"}})],1)]:e._e(),a("div",{staticClass:"lh-3"},[a("label",{attrs:{for:"reportJobType"}},[e._v("Limit To Job Types: ")]),a("v-select",{attrs:{id:"reportJobType",options:[{label:"All job types",value:"all"},{label:"Only print jobs",value:"print"},{label:"Only copy jobs",value:"copy"}],label:"label",reduce:function(e){return e.value}},model:{value:e.reportJobType,callback:function(t){e.reportJobType=t},expression:"reportJobType"}})],1),a("div",{staticClass:"lh-3"},[a("label",{attrs:{for:"reportType"}},[e._v("Type of Report: ")]),a("v-select",{attrs:{id:"reportType",options:["Graph","CSV"]},model:{value:e.reportType,callback:function(t){e.reportType=t},expression:"reportType"}})],1),a("div",{staticClass:"lh-3"},[a("div",{staticClass:"float_left"},[a("div",{staticClass:"button",on:{click:e.resetForm}},[e._v("Reset Form")])]),a("div",{staticClass:"float_right"},[a("div",{staticClass:"button button_blue",class:e.disableGenerate?"disabled":"",on:{click:e.generateReport}},[e._v("Generate Report")])]),a("div",{staticClass:"clearfix"})])],2)]),e.generating||e.chartData||e.chartNoData||e.csvData?[a("hr",{staticClass:"main_divider"}),a("div",{staticClass:"box full_box chartbox",attrs:{id:"chart_container"}},[e._m(4),e.generating?[e._m(5),a("div",{staticClass:"full_width center"},[e._v("Downloaded "+e._s(e.rawData.length+e.rawAverageData.length)+" rows of data...")])]:e.chartNoData?[a("div",{staticClass:"medium_text full_width center"},[e._v("Your search criteria returned no data!")])]:e._e(),e.chartData?["group"===e.reportSubject?[a("p",{staticClass:"full_width"},[e._v("Group Data Grouping Mode")]),a("p",{staticClass:"full_width"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.reportGroupBy,expression:"reportGroupBy"}],staticClass:"mr-2",attrs:{type:"radio",name:"report-group-group-by",id:"report-group-group-by-printer",value:"printer"},domProps:{checked:e._q(e.reportGroupBy,"printer")},on:{change:[function(t){e.reportGroupBy="printer"},e.generateReport]}}),a("label",{attrs:{for:"report-group-group-by-printer"}},[e._v("Group print volume by printer used")])]),a("p",{staticClass:"full_width"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.reportGroupBy,expression:"reportGroupBy"}],staticClass:"mr-2",attrs:{type:"radio",name:"report-group-group-by",id:"report-group-group-by-group",value:"group"},domProps:{checked:e._q(e.reportGroupBy,"group")},on:{change:[function(t){e.reportGroupBy="group"},e.generateReport]}}),a("label",{attrs:{for:"report-group-group-by-group"}},[e._v("Aggregate group's print volume by type of account charged")])])]:"unit"===e.reportSubject?[a("p",{staticClass:"full_width"},[e._v("Unit Data Grouping Mode")]),a("p",{staticClass:"full_width"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.reportGroupBy,expression:"reportGroupBy"}],staticClass:"mr-2",attrs:{type:"radio",name:"report-unit-group-by",id:"report-unit-group-by-printer",value:"printer"},domProps:{checked:e._q(e.reportGroupBy,"printer")},on:{change:[function(t){e.reportGroupBy="printer"},e.generateReport]}}),a("label",{attrs:{for:"report-unit-group-by-printer"}},[e._v("Group unit's print volume by printer")])]),a("p",{staticClass:"full_width"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.reportGroupBy,expression:"reportGroupBy"}],staticClass:"mr-2",attrs:{type:"radio",name:"report-unit-group-by",id:"report-unit-group-by-unit",value:"unit"},domProps:{checked:e._q(e.reportGroupBy,"unit")},on:{change:[function(t){e.reportGroupBy="unit"},e.generateReport]}}),a("label",{attrs:{for:"report-unit-group-by-unit"}},[e._v("Sum unit's print volume and compare against University unit average volume")])])]:e._e(),a("div",{staticClass:"help_text"},[a("b",[e._v("Did you know?")]),e._v(" You can drill into a more specific time frame by clicking on a data point. Click off of a data point to zoom back out to a more broad time frame! "),"unit"!==e.reportSubject?a("span",[e._v("Additionally, you can toggle the visibility of different datatypes by clicking on them in the chart's legend.")]):e._e()]),a("div",{staticClass:"full_width medium_text center"},[e._v("Currently viewing timeframe "+e._s(e.chartDateParams[e.chartDateParams.length-1].from_date)+" - "+e._s(e.chartDateParams[e.chartDateParams.length-1].through_date)+e._s("unit"===e.reportSubject?"printer"===e.reportGroupBy?", with data grouped by printer":", with data aggregated for the unit":""))])]:e.csvData?[a("div",{staticClass:"medium_text center full_width"},[e._v("CSV Report downloaded!")])]:e._e(),a("canvas",{staticClass:"usage_canvas",class:e.chartData?"visible":"hidden",attrs:{id:"usage_chart"}}),e.chartData&&"user"===e.reportSubject?a("div",{staticClass:"job_history",attrs:{id:"user_job_history"}},[a("h2",[e._v("User Job History")]),a("table",{staticClass:"full_width"},[e._m(6),e._l(e.userJobHistory,(function(t,n){return[a("tr",{key:"usage_row_"+n},[a("td",[e._v(e._s(t.usage_date))]),a("td",[e._v(e._s(t.document))]),a("td",[e._v(e._s(t.printer))]),a("td",[e._v(e._s(t.total_pages))]),a("td",[e._v(e._s(t.usage_cost))]),a("td",[e._v(e._s(t.account))]),a("td",[e._v(e._s(t.job_status))])])]}))],2)]):e._e()],2)]:e._e()],2)])},fn=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"box full_box"},[a("h1",[e._v("MPrint Reports")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"full_width"},[a("h2",[e._v("Report Request")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"lh-3"},[a("div",{staticClass:"label"},[e._v("An error occurred while getting the list of MCommunity groups you own! Please refresh and try again.")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"lh-3"},[n("div",{staticClass:"label"},[e._v("Loading MCommunity groups you own... "),n("img",{attrs:{src:a("d9b6"),alt:"loading groups"}})])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"full_width"},[a("h2",[e._v("Requested Report")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"medium_text full_width center"},[e._v("Generating chart... "),n("img",{attrs:{src:a("d9b6"),alt:"loading"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"bold"},[e._v("Date")]),a("td",{staticClass:"bold"},[e._v("Document")]),a("td",{staticClass:"bold"},[e._v("Printer")]),a("td",{staticClass:"bold"},[e._v("Total Pages")]),a("td",{staticClass:"bold"},[e._v("Total Cost")]),a("td",{staticClass:"bold"},[e._v("Account")]),a("td",{staticClass:"bold"},[e._v("Job Status")])])}],hn=a("a49b")["dbBatchLimit"],gn={name:"reports",data:function(){return{adminView:!1,availableReports:[{label:"User Report",value:"user"}],chart:null,chartData:!1,chartDateParams:[],chartNoData:!1,chartScale:[],csvData:!1,disableGenerate:!1,enableMask:!1,generating:!1,groupData:{isLoaded:!1,isError:!1,owned_groups:[]},msg:null,myUnits:[],parsedData:null,publicPath:window.location.origin,queueData:{isLoaded:!1,isError:!1,queues:[]},rawAverageData:[],rawData:[],reportDateBegin:null,reportDateEnd:null,reportFilterPrinters:[],reportGroup:null,reportGroupBy:"printer",reportInteractionMode:"date-zoom",reportJobType:"all",reportPrinter:null,reportSubject:"user",reportType:"Graph",reportUnit:null,reportUnitQueues:[],reportUser:null,todayFormatted:null,unitAdminData:{isLoaded:!1,isError:!1,units:[]},unitData:{isLoaded:!1,isError:!1,units:[]},unitEnrollmentData:{isLoaded:!1,isError:!1,unitEnrollments:[]},userJobHistory:[]}},props:{user:{type:Object,default:function(){return this.$store.getters.getUser}}},methods:{closeOpenModal:function(e){console.log(e),this.enableMask=!1},createChart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this;e||(e=t.parsedData);var a="bar";("user"===t.reportSubject||"printer"===t.reportSubject&&["hour","minute"].includes(e.scaleBy)||"group"===t.reportSubject&&"group"===t.reportGroupBy)&&(a="line");var n={type:a,data:{datasets:e.dataset},options:{plugins:{legend:{}},maintainAspectRatio:!1,onClick:function(a,n,s){var r=null;if("date-zoom"===t.reportInteractionMode){if(n.length){if("minute"===e.scaleBy)return!1;r=n[0].index}else{var i=s.scales.y.getValueForPixel(a.offsetY);i<=0&&(r=s.scales.x.getValueForPixel(a.offsetX))}t.msg="Reorganizing data...",window.setTimeout((function(){t.zoomChart(e.scaleBy,r)}),500)}},scales:{x:{stacked:"bar"===a,ticks:{source:"auto"},time:{unit:e.scaleBy},title:{display:!0,font:{size:14,style:"oblique"},text:e.scaleBy},type:"time"},y:{stacked:"bar"===a,ticks:{beginAtZero:!0,precision:0},title:{display:!0,font:{size:14,style:"oblique"},text:"# Pages"}}}}};("unit"===t.reportSubject||"group"===t.reportSubject&&"printer"===t.reportGroupBy)&&(n.options.plugins.legend={onClick:null}),t.$nextTick((function(){if(t.chart=new vt["a"]("usage_chart",n),"unit"===t.reportSubject||"group"===t.reportSubject&&"printer"===t.reportGroupBy){var e=t.chart.legend.legendItems,a=[];t.chart.legend.legendItems=[];var s,r=Object(i["a"])(e);try{for(r.s();!(s=r.n()).done;){var o=s.value,c=o.text.split(" - ").pop();a.includes(c)||(a.push(c),o.text=c,t.chart.legend.legendItems.push(o))}}catch(l){r.e(l)}finally{r.f()}}document.getElementById("chart_container").scrollIntoView({behavior:"smooth",block:"center"}),t.generating=!1}))},createCsv:function(e){var t=this,a=document.createElement("a");a.id="csv_download_link",a.download="".concat(this.reportSubject,"_").concat(e,"_report.csv");var n=new Blob(["Uniqname,Printer,Date/Time,Total Pages,Usage Cost,Job Status\r\n"].concat(this.rawData.map((function(e){return"".concat(e["user_name"],",").concat(e["printer_name"],",").concat(t._formatDate(e["usage_date"],"minute",!1),",").concat(e["total_pages"],",").concat(e["usage_cost"],",").concat(e["status"],"\r\n")}))),{type:"text/csv"});a.href=URL.createObjectURL(n),document.getElementById("content").appendChild(a),document.getElementById("csv_download_link").click(),document.getElementById("content").removeChild(a),this.generating=!1},generateReport:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n,s,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.disableGenerate){t.next=2;break}return t.abrupt("return",!1);case 2:e.chart&&(e.chart.destroy(),e.chart=null),e.disableGenerate=!0,e.generating=!0,e.chartData=!1,e.chartDateParams=[],e.chartNoData=!1,e.chartScale=[],e.csvData=!1,e.rawData=[],a=null,n=e._formatDate(Date.now(),"day",!0),s=!0,r=e,e.reportDateBegin||(s=!1,e.msg="You have to choose a start date for this report's date range!"),e.reportDateEnd?e.reportDateEnd>n&&(s=!1,e.msg="End date for this report's date range cannot be later than today. We cannot tell the future!"):e.reportDateEnd=n,t.t0=e.reportSubject,t.next="user"===t.t0?20:"group"===t.t0?22:"printer"===t.t0?24:"unit"===t.t0?26:41;break;case 20:return e.adminView||e.reportUser===e.user.uniqname?a=e.reportUser:(e.msg="You are not authorized to run a report against another user!",s=!1),t.abrupt("break",44);case 22:return e.adminView||e.groupData.owned_groups.includes(e.reportGroup)?a=e.reportGroup:(e.msg="You are not authorized to run a report against a group you do not own!",s=!1),t.abrupt("break",44);case 24:return e.reportPrinter&&e.reportPrinter.length?a=e.reportPrinter:(e.msg="You have to choose a printer before running this report!",s=!1),t.abrupt("break",44);case 26:if(!e.reportUnit){t.next=38;break}if(!e.adminView&&!e.myUnits.map((function(e){return e.unit_name})).includes(e.reportUnit)){t.next=34;break}return a=e.reportUnit,t.next=31,p.methods.get("/api/units?name=".concat(a,"&includeQueues=1"));case 31:e.reportUnitQueues=t.sent.data.result.result[0].queues.map((function(e){return e.printer_name})),t.next=36;break;case 34:e.msg="You are not authorized to run a report against this unit!",s=!1;case 36:t.next=40;break;case 38:e.msg="You have to choose a unit before running this report!",s=!1;case 40:return t.abrupt("break",44);case 41:return e.msg="Report subject ".concat(e.reportSubject," is not valid!"),s=!1,t.abrupt("break",44);case 44:if(!s){t.next=54;break}if(r.rawData.length){t.next=48;break}return t.next=48,e.getBatchedResults(r.reportSubject,0,a);case 48:if("unit"!==r.reportSubject||r.rawAverageData.length){t.next=51;break}return t.next=51,e.getBatchedResults("average",0,null);case 51:r.rawData.length?(r.chartDateParams.push({from_date:r._formatDate(r.reportDateBegin,"day",!1),through_date:r._formatDate(r.reportDateEnd,"day",!1)}),r.parsedData=r.parseData(r.reportDateBegin,r.reportDateEnd),"graph"===r.reportType.toLowerCase()?(r.chartData=!0,r.createChart()):(r.csvData=!0,r.createCsv(a))):(r.chart=null,r.chartData=!1,r.chartNoData=!0,r.csvData=!1,r.generating=!1),t.next=58;break;case 54:r.chartData=!1,r.chartNoData=!1,r.csvData=!1,r.generating=!1;case 58:r.disableGenerate=!1,window.setTimeout((function(){r.msg=null}),4e3);case 60:case"end":return t.stop()}}),t)})))()},getBatchedResults:function(e,t){var a=arguments,n=this;return Object(o["a"])(regeneratorRuntime.mark((function s(){var r,i,c;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return r=a.length>2&&void 0!==a[2]?a[2]:null,i=n,c=!1,s.next=5,p.methods.get("/api/jobs?reportType=".concat(e,"&start=").concat(i.reportDateBegin,"&end=").concat(i.reportDateEnd,"&offset=").concat(t,"&jobTypes=").concat(i.reportJobType).concat(r?"&target=".concat(r):"")).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:+a.data.result.count?("average"===e?(a.data.result.result.map((function(e){return e.usage_minute=i._parseDate(e.usage_minute)})),i.rawAverageData=i.rawAverageData.concat(a.data.result.result)):(a.data.result.result.map((function(e){return e.usage_date=i._parseDate(e.usage_date)})),i.rawData=i.rawData.concat(a.data.result.result)),+a.data.result.count===hn&&(c=!0)):Object.keys(a.data.result).includes("error")&&a.data.result.error&&(i.msg=a.data.result.status_message,c=!1);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){console.log(t),i.msg="An error occurred! Failed to retrieve data for ".concat(e," report."),window.setTimeout((function(){i.msg=null}),4e3)})).finally(Object(o["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!c){a.next=4;break}return a.next=3,i.getBatchedResults(e,t+hn,r);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),a)}))));case 5:case"end":return s.stop()}}),s)})))()},getOwnedGroups:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,"admin"===a.user.role?p.methods.get("api/groups").then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.data.result.result.map((function(e){return a.groupData.owned_groups.push({name:e,email:e})}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.log(e),a.groupData.isError=!0})).finally((function(){a.groupData.isError||a.groupData.owned_groups.length&&a.availableReports.push({label:"Group Reports",value:"group"}),a.groupData.isLoaded=!0})):p.methods.get("api/ldap/user/".concat(a.user.uniqname,"?owned=1")).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var n,s,r,o,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=t.data.result.result.groups_owned,Array.isArray(n)||(n=[n]),s=Object(i["a"])(n),e.prev=3,s.s();case 5:if((r=s.n()).done){e.next=13;break}return o=r.value,e.next=9,p.methods.get("api/groups/".concat(o["umichGroupEmail"]));case 9:c=e.sent.data.result,+c.count&&a.groupData.owned_groups.push({name:o["dn"].split(",")[0].split("=")[1],email:o["umichGroupEmail"]});case 11:e.next=5;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](3),s.e(e.t0);case 18:return e.prev=18,s.f(),e.finish(18);case 21:case"end":return e.stop()}}),e,null,[[3,15,18,21]])})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){a.groupData.isError=!0,console.log(e)})).finally((function(){a.groupData.isLoaded=!0,a.groupData.owned_groups.length&&a.availableReports.push({label:"Group Reports",value:"group"})}));case 2:case"end":return t.stop()}}),t)})))()},getQueueData:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,p.methods.get("api/queues?basic=1").then((function(e){a.queueData.queues=e.data.result.result.filter((function(e){return"printer"===e.type&&-1===e.name.indexOf("-follow-me")}))})).catch((function(e){console.log(e),a.queueData.isError=!0,a.msg="An error occurred! Please refresh and try again.",window.setTimeout((function(){a.msg=null}),4e3)})).finally((function(){a.queueData.isLoaded=!0}));case 2:case"end":return t.stop()}}),t)})))()},getUnitAdminData:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,p.methods.get("api/unitadmins?uniqname=".concat(e.user.uniqname)).then((function(e){e.data.result.result.map((function(e){return e.unit_name=a.unitData.units.filter((function(t){return t.id===e.unit_id}))[0].display_name}));var t=e.data.result.result.filter((function(e){return 1===+e.is_approved})).map((function(e){return e.unit_id}));a.$set(a.unitAdminData,"units",t),a.unitData.units.filter((function(e){return t.includes(e.id)})).map((function(e){return a.myUnits.push({id:e.id,unit_name:e.sub_unit?"".concat(e.unit," - ").concat(e.sub_unit):"".concat(e.unit)})}))})).catch((function(e){console.log(e),a.msg="An error occurred! Please refresh the page and try again.",window.setTimeout((function(){a.msg=null}),4e3),a.unitAdminData.isError=!0})).finally((function(){a.unitAdminData.isLoaded=!0}));case 2:case"end":return t.stop()}}),t)})))()},getUnitEnrollmentData:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,p.methods.get("api/unitenrollments").then((function(e){a.unitEnrollmentData.unitEnrollments=e.data.result.result.sort((function(e,t){return a._formatDate(e.joined_service,"day",!1)>a._formatDate(t.joined_service,"day",!1)?1:-1}))})).catch((function(e){console.log(e),a.msg="An error occurred! Please refresh the page and try again.",window.setTimeout((function(){a.msg=null}),4e3),a.unitEnrollmentData.isError=!0})).finally((function(){a.unitEnrollmentData.isLoaded=!0}));case 2:case"end":return t.stop()}}),t)})))()},getUnits:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,p.methods.get("api/units").then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!+t.data.result.count){e.next=12;break}if(n=t.data.result.result.filter((function(e){return null!==e.unit&&"null"!==e.unit})),a.unitData.units=n,a.adminView){e.next=8;break}return e.next=6,a.getUnitAdminData();case 6:e.next=10;break;case 8:n.map((function(e){return a.myUnits.push({id:e.id,unit_name:e.sub_unit?"".concat(e.unit," - ").concat(e.sub_unit):"".concat(e.unit)})})),a.unitAdminData.isLoaded=!0;case 10:e.next=15;break;case 12:console.log(t.data.result),a.msg="Something went wrong... please refresh and try again.",a.unitData.isError=!0;case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.log(e),a.msg="An error occurred! Please refresh and try again.",a.unitData.isError=!0})).finally((function(){a.unitData.isLoaded=!0,a.getUnitEnrollmentData()}));case 2:case"end":return t.stop()}}),t)})))()},parseData:function(e,t){var a=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=this.rawData,r={duplex_grayscale_prints:"rgba(0,39,76,1)",duplex_grayscale_copies:"rgba(0,39,76,.70)",simplex_grayscale_prints:"rgba(0,39,76,.45)",simplex_grayscale_copies:"rgba(0,39,76,.25)",duplex_color_prints:"rgba(255,203,5,1)",duplex_color_copies:"rgba(255,203,5,.70)",simplex_color_prints:"rgba(255,203,5,.45)",simplex_color_copies:"rgba(255,203,5,.25)",ppm_threshold:"rgba(0,39,76,.33)",printer_demand:"rgba(255,203,5,1)",student_account_charges:"rgba(192,0,0,.33)",quota_account_charges:"rgba(0,192,0,.33)",shared_account_charges:"rgba(0,39,76,.33)",pages_printed:"rgba(255,203,5,.75)"},o=[];if(this.chart&&(this.chart.destroy(),this.chart=null),null===n){n="year";var c=(new Date(t).getTime()-new Date(e).getTime())/1e3,l=86400,u=730*l,d=31*l;c<u&&(n=c<d?0===c?"hour":"day":"month"),this.chartScale.push(n)}var p,_,m={},f=[],h=e,g=t,v=null,b=0;switch(this.reportSubject){case"user":m={student_account_charges:[],quota_account_charges:[],shared_account_charges:[],pages_printed:[]};for(var w=0,y=Object.keys(m);w<y.length;w++){var x=y[w];h=e,g=t,"hour"===n&&(h+=" 00:00",g+=" 23:00"),h=this._formatDate(h,n),g=this._formatDate(g,n);var C=!1;f.length||(C=!0);while(h<=g)switch(C&&f.push(h),m[x].push({x:h,y:0}),n){case"year":h=this._formatDate(Object(gt["a"])(Object(U["a"])(h),{years:1}),n,!0);break;case"month":h=this._formatDate(Object(gt["a"])(Object(U["a"])(h),{months:1}),n,!0);break;case"day":h=this._formatDate(Object(gt["a"])(Object(U["a"])(h),{days:1}),n,!0);break;case"hour":h=this._formatDate(Object(gt["a"])(Object(U["a"])(h),{hours:1}),n,!0);break;case"minute":h=this._formatDate(Object(gt["a"])(Object(U["a"])(h),{minutes:1}),n,!0);break}}for(this.userJobHistory=[],b=0;b<s.length;b++){p=this._formatDate(s[b]["usage_date"],n,!1),_=f.indexOf(p);var k="N/A";-1===_||0!==this.reportFilterPrinters.length&&!this.reportFilterPrinters.includes(s[b]["printer_name"])||("Printed"===s[b]["status"]&&("USER"===s[b]["account_type"]?(m["student_account_charges"][_]["y"]+=Math.abs(+s[b]["amount"]),k="Student Account"):0===s[b]["account_type"].indexOf("USER-")?(m["quota_account_charges"][_]["y"]+=+Math.abs(+s[b]["amount"]),k="Quota Account"):"SHARED"===s[b]["account_type"]&&(m["shared_account_charges"][_]["y"]+=Math.abs(+s[b]["amount"]),k=s[b]["account_name"]),m["pages_printed"][_]["y"]+=+s[b]["total_pages"]),this.userJobHistory.push({usage_date:Object(Q["a"])(Object(U["a"])(s[b]["usage_date"]),"yyyy-LL-dd HH:mm:ss"),document:s[b]["document_name"],printer:s[b]["printer_name"],total_pages:s[b]["total_pages"],usage_cost:s[b]["usage_cost"],account:k,job_status:s[b]["status"]}))}for(var P=0,D=Object.keys(m);P<D.length;P++){var A=D[P];o.push({label:A.replace(/_/g," "),backgroundColor:r[A],fill:{target:"origin",below:r[A]},data:m[A]})}v=f;break;case"group":if(null===this.reportGroupBy||"printer"===this.reportGroupBy){var E=[];this.rawData.map((function(e){return E.includes(e.printer_name)?null:E.push(e.printer_name)}));for(var j=0,q=E;j<q.length;j++){var M=q[j];m[M]={duplex_grayscale_prints:[],duplex_grayscale_copies:[],simplex_grayscale_prints:[],simplex_grayscale_copies:[],duplex_color_prints:[],duplex_color_copies:[],simplex_color_prints:[],simplex_color_copies:[]}}for(var S=0,L=Object.keys(m);S<L.length;S++)for(var O=L[S],R=0,T=Object.keys(m[O]);R<T.length;R++){var N=T[R];h=e,g=t,"hour"===n&&(h+=" 00:00",g+=" 23:00"),h=this._formatDate(h,n,!1),g=this._formatDate(g,n,!1);var F=!1;f.length||(F=!0);while(h<=g)switch(F&&f.push(h),m[O][N].push({x:h,y:0}),n){case"year":h=this._formatDate(Object(gt["a"])(Object(U["a"])(h),{years:1}),n,!0);break;case"month":h=this._formatDate(Object(gt["a"])(Object(U["a"])(h),{months:1}),n,!0);break;case"day":h=this._formatDate(Object(gt["a"])(Object(U["a"])(h),{days:1}),n,!0);break;case"hour":h=this._formatDate(Object(gt["a"])(Object(U["a"])(h),{hours:1}),n,!0);break;case"minute":h=this._formatDate(Object(gt["a"])(Object(U["a"])(h),{minutes:1}),n,!0);break}}for(b=0;b<s.length;b++){p=this._formatDate(s[b]["usage_date"],n,!1),_=f.indexOf(p);var I=s[b]["printer_name"];if(-1!==_&&"Printed"===s[b]["status"])switch(s[b]["duplex"]){case"Y":switch(s[b]["gray_scale"]){case"Y":switch(s[b]["job_type"]){case"COPY":m[I]["duplex_grayscale_copies"][_]["y"]+=+s[b]["total_pages"];break;case"PRINT":m[I]["duplex_grayscale_prints"][_]["y"]+=+s[b]["total_pages"];break}break;case"N":switch(s[b]["job_type"]){case"COPY":m[I]["duplex_color_copies"][_]["y"]+=+s[b]["total_pages"];break;case"PRINT":m[I]["duplex_color_prints"][_]["y"]+=+s[b]["total_pages"];break}break}break;case"N":switch(s[b]["gray_scale"]){case"Y":switch(s[b]["job_type"]){case"COPY":m[I]["simplex_grayscale_copies"][_]["y"]+=+s[b]["total_pages"];break;case"PRINT":m[I]["simplex_grayscale_prints"][_]["y"]+=+s[b]["total_pages"];break}break;case"N":switch(s[b]["job_type"]){case"COPY":m[I]["simplex_color_copies"][_]["y"]+=+s[b]["total_pages"];break;case"PRINT":m[I]["simplex_color_prints"][_]["y"]+=+s[b]["total_pages"];break}break}break}}for(var $=0,J=Object.keys(m);$<J.length;$++)for(var B=J[$],W=0,H=Object.keys(m[B]);W<H.length;W++){for(var z=H[W],G=0,Y=0;Y<m[B][z].length;Y++)G+=m[B][z][Y]["y"];if(G>0){var V=r[z];o.push({label:"".concat(B," - ").concat(z.replace(/_/g," ")),barThickness:"flex",backgroundColor:V,data:m[B][z],stack:B})}}}else{m={student_account_charges:[],quota_account_charges:[],shared_account_charges:[],pages_printed:[]};for(var K=0,Z=Object.keys(m);K<Z.length;K++){var X=Z[K];h=e,g=t,"hour"===n&&(h+=" 00:00",g+=" 23:00"),h=this._formatDate(h,n),g=this._formatDate(g,n);var ee=!1;f.length||(ee=!0);while(h<=g)switch(ee&&f.push(h),m[X].push({x:h,y:0}),n){case"year":h=this._formatDate(Object(gt["a"])(Object(U["a"])(h),{years:1}),n,!0);break;case"month":h=this._formatDate(Object(gt["a"])(Object(U["a"])(h),{months:1}),n,!0);break;case"day":h=this._formatDate(Object(gt["a"])(Object(U["a"])(h),{days:1}),n,!0);break;case"hour":h=this._formatDate(Object(gt["a"])(Object(U["a"])(h),{hours:1}),n,!0);break;case"minute":h=this._formatDate(Object(gt["a"])(Object(U["a"])(h),{minutes:1}),n,!0);break}}for(b=0;b<s.length;b++)p=this._formatDate(s[b]["usage_date"],n,!1),_=f.indexOf(p),-1===_||0!==this.reportFilterPrinters.length&&!this.reportFilterPrinters.includes(s[b]["printer_name"])||"Printed"===s[b]["status"]&&("USER"===s[b]["account_type"]?m["student_account_charges"][_]["y"]+=Math.abs(+s[b]["amount"]):0===s[b]["account_type"].indexOf("USER-")?m["quota_account_charges"][_]["y"]+=+Math.abs(+s[b]["amount"]):"SHARED"===s[b]["account_type"]&&(m["shared_account_charges"][_]["y"]+=Math.abs(+s[b]["amount"])),m["pages_printed"][_]["y"]+=+s[b]["total_pages"]);for(var te=0,ae=Object.keys(m);te<ae.length;te++){var ne=ae[te];o.push({label:ne.replace(/_/g," "),backgroundColor:r[ne],fill:{target:"origin",below:r[ne]},data:m[ne]})}}v=f;break;case"printer":var se=this.queueData.queues.filter((function(e){return e.name===a.reportPrinter}))[0],re=Object.keys(se).includes("ppm")?se["ppm"]:null,ie=!1;if("minute"===n||"hour"===n){"hour"===n&&(h+=" 00:00",g+=" 23:59"),h=this._formatDate(h,"minute",!1),g=this._formatDate(g,"minute",!1),m={printer_demand:[],ppm_threshold:[]};while(h<=g)f.push(h),m["ppm_threshold"].push({x:h,y:re}),m["printer_demand"].push({x:h,y:0}),h=this._formatDate(Object(gt["a"])(Object(U["a"])(h),{minutes:1}),"minute",!0);for(b=0;b<s.length;b++)p=this._formatDate(s[b]["usage_date"],"minute",!1),_=f.indexOf(p),ie=s[b]["printer_name"]===this.reportPrinter,-1!==_&&ie&&"Printed"===s[b]["status"]&&(m["printer_demand"][_]["y"]+=+s[b]["total_pages"]);_=0;var oe=!1;while(_<f.length)oe=m["printer_demand"][_]["y"]>re,_++,oe&&_<f.length&&(m["printer_demand"][_]["y"]+=+(m["printer_demand"][_-1]["y"]-re))}else{m={duplex_grayscale_prints:[],duplex_grayscale_copies:[],simplex_grayscale_prints:[],simplex_grayscale_copies:[],duplex_color_prints:[],duplex_color_copies:[],simplex_color_prints:[],simplex_color_copies:[]};for(var ce=0,le=Object.keys(m);ce<le.length;ce++){var ue=le[ce];h=e,g=t,"hour"===n&&(h+=" 00:00",g+=" 23:00"),h=this._formatDate(h,n,!1),g=this._formatDate(g,n,!1);var de=!1;f.length||(de=!0);while(h<=g)switch(de&&f.push(h),m[ue].push({x:h,y:0}),n){case"year":h=this._formatDate(Object(gt["a"])(Object(U["a"])(h),{years:1}),n,!0);break;case"month":h=this._formatDate(Object(gt["a"])(Object(U["a"])(h),{months:1}),n,!0);break;case"day":h=this._formatDate(Object(gt["a"])(Object(U["a"])(h),{days:1}),n,!0);break;case"hour":h=this._formatDate(Object(gt["a"])(Object(U["a"])(h),{hours:1}),n,!0);break;case"minute":h=this._formatDate(Object(gt["a"])(Object(U["a"])(h),{minutes:1}),n,!0);break}}for(b=0;b<s.length;b++)if(p=this._formatDate(s[b]["usage_date"],n,!1),_=f.indexOf(p),ie=s[b]["printer_name"]===this.reportPrinter,-1!==_&&ie&&"Printed"===s[b]["status"])switch(s[b]["duplex"]){case"Y":switch(s[b]["gray_scale"]){case"Y":switch(s[b]["job_type"]){case"COPY":m["duplex_grayscale_copies"][_]["y"]+=+s[b]["total_pages"];break;case"PRINT":m["duplex_grayscale_prints"][_]["y"]+=+s[b]["total_pages"];break}break;case"N":switch(s[b]["job_type"]){case"COPY":m["duplex_color_copies"][_]["y"]+=+s[b]["total_pages"];break;case"PRINT":m["duplex_color_prints"][_]["y"]+=+s[b]["total_pages"];break}break}break;case"N":switch(s[b]["gray_scale"]){case"Y":switch(s[b]["job_type"]){case"COPY":m["simplex_grayscale_copies"][_]["y"]+=+s[b]["total_pages"];break;case"PRINT":m["simplex_grayscale_prints"][_]["y"]+=+s[b]["total_pages"];break}break;case"N":switch(s[b]["job_type"]){case"COPY":m["simplex_color_copies"][_]["y"]+=+s[b]["total_pages"];break;case"PRINT":m["simplex_color_prints"][_]["y"]+=+s[b]["total_pages"];break}break}break}}if(["hour","minute"].includes(n))for(var pe=0,_e=Object.keys(m);pe<_e.length;pe++){var me=_e[pe];o.push({label:me.replace(/_/g," "),backgroundColor:r[me],fill:{target:"origin",below:r[me]},data:m[me]})}else for(var fe=0,he=Object.keys(m);fe<he.length;fe++){var ge=he[fe];o.push({label:ge.replace(/_/g," "),barThickness:"flex",backgroundColor:r[ge],data:m[ge]})}v=f;break;case"unit":var ve=null,be=this.reportUnit,we=this.rawAverageData;ve=null===this.reportGroupBy||"printer"===this.reportGroupBy?this.reportUnitQueues:[be,"University Average"];var ye,xe=Object(i["a"])(ve);try{for(xe.s();!(ye=xe.n()).done;){var Ce=ye.value;m[Ce]={duplex_grayscale_prints:[],duplex_grayscale_copies:[],simplex_grayscale_prints:[],simplex_grayscale_copies:[],duplex_color_prints:[],duplex_color_copies:[],simplex_color_prints:[],simplex_color_copies:[]}}}catch(Ue){xe.e(Ue)}finally{xe.f()}for(var ke=0,Pe=Object.keys(m);ke<Pe.length;ke++)for(var De=Pe[ke],Ae=0,Ee=Object.keys(m[De]);Ae<Ee.length;Ae++){var je=Ee[Ae];h=e,g=t,"hour"===n&&(h+=" 00:00",g+=" 23:00"),h=this._formatDate(h,n,!1),g=this._formatDate(g,n,!1);var qe=!1;f.length||(qe=!0);while(h<=g)switch(qe&&f.push(h),m[De][je].push({x:h,y:0}),n){case"year":h=this._formatDate(Object(gt["a"])(Object(U["a"])(h),{years:1}),n,!0);break;case"month":h=this._formatDate(Object(gt["a"])(Object(U["a"])(h),{months:1}),n,!0);break;case"day":h=this._formatDate(Object(gt["a"])(Object(U["a"])(h),{days:1}),n,!0);break;case"hour":h=this._formatDate(Object(gt["a"])(Object(U["a"])(h),{hours:1}),n,!0);break;case"minute":h=this._formatDate(Object(gt["a"])(Object(U["a"])(h),{minutes:1}),n,!0);break}}for("unit"===this.reportGroupBy&&(m["University Average"]=this._generateAverages(we,{from_date:e,through_date:t},m["University Average"],n)),b=0;b<s.length;b++){p=this._formatDate(s[b]["usage_date"],n,!1),_=f.indexOf(p);var Me=s[b]["printer_name"];if("unit"===this.reportGroupBy&&(Me=be),-1!==_&&"Printed"===s[b]["status"])switch(s[b]["duplex"]){case"Y":switch(s[b]["gray_scale"]){case"Y":switch(s[b]["job_type"]){case"COPY":m[Me]["duplex_grayscale_copies"][_]["y"]+=+s[b]["total_pages"];break;case"PRINT":m[Me]["duplex_grayscale_prints"][_]["y"]+=+s[b]["total_pages"];break}break;case"N":switch(s[b]["job_type"]){case"COPY":m[Me]["duplex_color_copies"][_]["y"]+=+s[b]["total_pages"];break;case"PRINT":m[Me]["duplex_color_prints"][_]["y"]+=+s[b]["total_pages"];break}break}break;case"N":switch(s[b]["gray_scale"]){case"Y":switch(s[b]["job_type"]){case"COPY":m[Me]["simplex_grayscale_copies"][_]["y"]+=+s[b]["total_pages"];break;case"PRINT":m[Me]["simplex_grayscale_prints"][_]["y"]+=+s[b]["total_pages"];break}break;case"N":switch(s[b]["job_type"]){case"COPY":m[Me]["simplex_color_copies"][_]["y"]+=+s[b]["total_pages"];break;case"PRINT":m[Me]["simplex_color_prints"][_]["y"]+=+s[b]["total_pages"];break}break}break}}for(var Se=0,Le=Object.keys(m);Se<Le.length;Se++)for(var Oe=Le[Se],Re=0,Te=Object.keys(m[Oe]);Re<Te.length;Re++){for(var Ne=Te[Re],Fe=0,Ie=0;Ie<m[Oe][Ne].length;Ie++)Fe+=m[Oe][Ne][Ie]["y"];if(Fe>0){var Qe=r[Ne];o.push({label:"".concat(Oe," - ").concat(Ne.replace(/_/g," ")),barThickness:"flex",backgroundColor:Qe,data:m[Oe][Ne],stack:Oe})}}v=f;break}return{dataset:o,scaleBy:n,labels:v}},resetForm:function(){this.disableGenerate=!1,this.generating=!1,this.chart=null,this.chartData=!1,this.chartDateParams=[],this.chartNoData=!1,this.chartScale=[],this.csvData=!1,this.rawData=[],this.reportDateBegin=null,this.reportDateEnd=null,this.reportJobType="all",this.reportFilterPrinters=[],this.reportSubject="user",this.reportType="Graph",this.reportUnit=null,this.adminView&&(this.reportUser=null)},validateDates:function(){var e="2012-05-01",t=this.todayFormatted;this.disableGenerate=this.reportDateBegin<e||this.reportDateBegin>t||this.reportDateEnd&&(this.reportDateEnd<e||this.reportDateEnd>t)},zoomChart:function(e,t){var a=null;if(null===t){if(e!==this.chartScale[0])switch(e){case"year":a="year";break;case"month":a="year",this.chartDateParams.pop();break;case"day":a="month",this.chartDateParams.pop();break;case"hour":a="day",this.chartDateParams.pop();break;case"minute":a="hour",this.chartDateParams.pop();break}}else if(this.chartDateParams&&this.chartDateParams.length){var n=this.chartDateParams[this.chartDateParams.length-1]["from_date"],s=this.chartDateParams[this.chartDateParams.length-1]["through_date"];"hour"===e&&(n+=" 00:00",s+=" 23:59"),n=this._formatDate(n,e),s=this._formatDate(s,e);var r=[],i=n;while(i<=s){switch(r.push(i),e){case"year":n=this._formatDate(Object(gt["a"])(Object(U["a"])(n),{years:1}),e,!0);break;case"month":n=this._formatDate(Object(gt["a"])(Object(U["a"])(n),{months:1}),e,!0);break;case"day":n=this._formatDate(Object(gt["a"])(Object(U["a"])(n),{days:1}),e,!0);break;case"hour":n=this._formatDate(Object(gt["a"])(Object(U["a"])(n),{hours:1}),e,!0);break;case"minute":n=this._formatDate(Object(gt["a"])(Object(U["a"])(n),{minutes:1}),e,!0);break}i=n}switch(e){case"year":this.chartDateParams.push({from_date:this._formatDate(r[t]+"-01-01","day",!1),through_date:this._formatDate(r[t]+"-12-31","day",!1)}),a="month";break;case"month":var o=this._formatDate(r[t]+"-01","day",!1),c=+o.split("-")[1]-1,l=+o.split("-")[0],u=[31,28,31,30,31,30,31,31,30,31,30,31];l%4===0&&(u[1]=29),this.chartDateParams.push({from_date:o,through_date:this._formatDate("".concat(l,"-").concat(c<9?"0".concat(c+1):"".concat(c+1),"-").concat(u[c]),"day",!1)}),a="day";break;case"day":this.chartDateParams.push({from_date:this._formatDate(r[t],"day",!1),through_date:this._formatDate(r[t],"day",!1)}),a="hour";break;case"hour":"printer"===this.reportSubject&&(t=Math.floor(t/60)),this.chartDateParams.push({from_date:this._formatDate(r[t],"hour",!1),through_date:this._formatDate(Object(gt["a"])(Object(U["a"])(r[t]),{hours:1}),"hour",!0)}),a="minute";break;case"minute":a="minute";break}}if(null===t?this.chartScale.length>1?this.chartScale.pop():this.msg=null:this.chartScale.push(a),null!==a&&a!==e){var d=this.parseData(this.chartDateParams[this.chartDateParams.length-1].from_date,this.chartDateParams[this.chartDateParams.length-1].through_date,a);this.msg=null,this.createChart(d)}},_generateAverages:function(e,t,a,n){for(var s=[],r={},i=[],o=0,c=Object.keys(a);o<c.length;o++){var l=c[o];i.push(l)}for(var u=0;u<i.length;u++){var d=t["from_date"],p=t["through_date"];"hour"===n&&(d+=" 00:00",p+=" 23:00"),d=this._formatDate(d,n,!1),p=this._formatDate(p,n,!1);var _=!1;s.length||(_=!0),Object.keys(r).includes(i[u])||(r[i[u]]=[]),a[i[u]]=[];while(d<=p)switch(_&&s.push(d),a[i[u]].push({x:d,y:0}),r[i[u]].push({x:d,y:0}),n){case"year":d=this._formatDate(Object(gt["a"])(Object(U["a"])(d),{years:1}),n,!0);break;case"month":d=this._formatDate(Object(gt["a"])(Object(U["a"])(d),{months:1}),n,!0);break;case"day":d=this._formatDate(Object(gt["a"])(Object(U["a"])(d),{days:1}),n,!0);break;case"hour":d=this._formatDate(Object(gt["a"])(Object(U["a"])(d),{hours:1}),n,!0);break;case"minute":d=this._formatDate(Object(gt["a"])(Object(U["a"])(d),{minutes:1}),n,!0);break}}for(var m=0;m<e.length;m++){var f=this._formatDate(e[m]["usage_minute"],n,!1),h=s.indexOf(f);if(-1!==h)for(var g=0,v=Object.keys(a);g<v.length;g++){var b=v[g];("copy"===this.reportJobType&&b.indexOf("copy")>=0||"print"===this.reportJobType&&b.indexOf("print")>=0||"all"===this.reportJobType)&&(a[b][h]["y"]+=+e[m][b])}}if(this.unitEnrollmentData.unitEnrollments.length){for(var w=0;w<i.length;w++){var y=t["from_date"],x=t["through_date"];"hour"===n&&(y+=" 00:00",x+=" 23:00"),y=this._formatDate(y,n,!1),x=this._formatDate(x,n,!1);var C=0,k=0;while(y<=x){for(var P=y,D=s.indexOf(P),A=C;A<this.unitEnrollmentData.unitEnrollments.length;A++){var E=this._formatDate(this.unitEnrollmentData.unitEnrollments[A].joined_service,"day",!1);if(!(y>=E||null!==E.match(y)))break;C=A}switch(k=C+1,a[i[w]][D]["y"]>0&&k>0&&(r[i[w]][D]["y"]=+Math.round(a[i[w]][D]["y"]/k)),n){case"year":y=this._formatDate(Object(gt["a"])(Object(U["a"])(y),{years:1}),n,!0);break;case"month":y=this._formatDate(Object(gt["a"])(Object(U["a"])(y),{months:1}),n,!0);break;case"day":y=this._formatDate(Object(gt["a"])(Object(U["a"])(y),{days:1}),n,!0);break;case"hour":y=this._formatDate(Object(gt["a"])(Object(U["a"])(y),{hours:1}),n,!0);break;case"minute":y=this._formatDate(Object(gt["a"])(Object(U["a"])(y),{minutes:1}),n,!0);break}}}return console.log(r),r}return this.msg="Could not generate University average data!",window.setTimeout((function(){this.msg=null}),4e3),null},_formatDate:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n="",s=a?e:Object(U["a"])(e);switch(t){case"year":n=Object(Q["a"])(s,"yyyy");break;case"month":n=Object(Q["a"])(s,"yyyy-LL");break;case"day":n=Object(Q["a"])(s,"yyyy-LL-dd");break;case"hour":n=Object(Q["a"])(s,"yyyy-LL-dd HH:00");break;case"minute":n=Object(Q["a"])(s,"yyyy-LL-dd HH:mm");break}return n},_parseDate:function(e){return e=null===e?new Date(Date.now()).toLocaleString("en-US",{timeZone:"America/Detroit"}):"".concat(e),e.match(/[\d]+:[\d]+:[\d]+\.000/g)&&(e=e.split(".")[0]),e.match(/[\d]+-[\d]+-[\d]+T/g)&&(e=e.split("T").join(" ")),e}},created:function(){this.user.uniqname&&(this.reportUser=this.user.uniqname,["manage","admin"].includes(this.user.role)&&(this.adminView="admin"===this.user.role,this.availableReports=this.availableReports.concat([{label:"Printer Reports",value:"printer"},{label:"Unit Reports",value:"unit"}])),"user"!==this.user.role&&this.getUnits(),this.getQueueData(),this.getOwnedGroups())},mounted:function(){this.todayFormatted=Object(Q["a"])(new Date,"yyyy-LL-dd")},watch:{user:function(){this.reportUser=this.user.uniqname,["manage","admin"].includes(this.user.role)&&(this.adminView="admin"===this.user.role,this.availableReports=this.availableReports.concat([{label:"Printer Reports",value:"printer"},{label:"Unit Reports",value:"unit"}])),"user"!==this.user.role&&this.getUnits(),this.getQueueData(),this.getOwnedGroups()}}},vn=gn,bn=(a("96ed"),a("7169"),Object(f["a"])(vn,mn,fn,!1,null,"e71bac9c",null)),wn=bn.exports,yn=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.msg,expression:"msg"}],attrs:{id:"message_container"}},[a("div",{staticClass:"message",attrs:{id:"message"}},[e._v(e._s(e.msg))])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.enableMask,expression:"enableMask"}],staticClass:"mask dim",attrs:{id:"mask"},on:{click:function(t){return e.closeOpenModal(!1)}}}),a("div",{attrs:{id:"content",role:"main"}},[a("div",{staticClass:"box full_box"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("h1",[e._v("MPrint Settings"+e._s(e.lookupUser!==e.user.uniqname?" - "+e.lookupUser:""))])]),"admin"===this.user.role?[a("div",{staticClass:"flex_member end flex_row_fit"},[a("div",{staticClass:"flex_member"},[a("label",{staticClass:"mr-1",attrs:{for:"lookup_uniqname"}},[e._v("Look Up Another User:")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.userToLookup,expression:"userToLookup"}],attrs:{id:"lookup_uniqname"},domProps:{value:e.userToLookup},on:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.lookupAnotherUser.apply(null,arguments)},input:function(t){t.target.composing||(e.userToLookup=t.target.value)}}}),a("button",{staticClass:"ml-2 button button_blue",class:e.userToLookup?"":"disabled",on:{click:e.lookupAnotherUser}},[e._v("Get Info For User")])])])]:e._e()],2)]),e.userData.isLoaded?e.userData.isLoaded&&e.userData.isError?[e._m(1)]:[a("div",{staticClass:"box"},[a("h2",[e._v("MPrint Cloud Services")]),a("div",{staticClass:"flex_row"},[e._l(e.userData.user[0].cloud_services,(function(t,n){return[a("div",{key:"cloudservice_"+n,staticClass:"flex_member"},[a("div",{staticClass:"flex_member",class:e.user.uniqname===e.lookupUser?"service_box":"service_box_no_hover",on:{click:function(a){return e.getServiceInfo(t)}}},[a("div",{staticClass:"medium_text"},[e._v(e._s(t.description))]),a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member",domProps:{innerHTML:e._s(e.renderIcon(t))}}),+t.is_connected?[a("div",{staticClass:"flex_member"},[e._v(e._s(t.description)+" is "),a("b",[e._v("connected")]),e._v(".")])]:[a("div",{staticClass:"flex_member"},[a("span",[e._v(e._s(t.description)+" is "),a("b",[e._v("not connected")]),e._v(".")])])]],2)]),a("div",{staticClass:"center pt-1"},[e._v("—  Learn more about "+e._s(t.description)+" integration "),a("a",{attrs:{href:e.publicPath+"/about/"+t.name,target:"_blank"}},[e._v("here")]),e._v("  —")])])]}))],2)]),e.userData.isLoaded&&e.queueData.isLoaded&&!e.userData.isError&&!e.queueData.isError?a("div",{staticClass:"box"},[a("h2",[e._v("Select Default Destination")]),e._m(2),a("p",{staticClass:"pb-12"},[e._v("By setting a default destination, any new Job you create will start with the default destination chosen. You can change the destination on any individual job at any time. Modifying the default destination will automatically change the chosen destination for any currently un-submitted jobs.")]),e._m(3),a("div",{staticClass:"full_width center pb-12"},[a("div",{staticClass:"button button_blue",attrs:{tabindex:"0",role:"button","aria-label":"Select Follow Me as my default destination"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.useFollowMe.apply(null,arguments)},click:e.useFollowMe}},[e._v("Select Follow Me")]),e._v(" or choose a destination below:")]),a("v-select",{staticClass:"first_element",attrs:{name:"default_queue",id:"default_queue","aria-label":"Set Destination","aria-placeholder":"Set Destination",placeholder:"Set Destination",filterBy:e.queueFilter,label:"display_name",options:e.queueData.queues},scopedSlots:e._u([{key:"selected-option",fn:function(t){var n=t.display_name;return[a("div",{attrs:{"aria-label":n}},[e._v(e._s(n))])]}},{key:"option",fn:function(t){var n=t.display_name,s=t.name,r=t.cost,i=t.additional_features;return[a("div",{staticClass:"bold",attrs:{"aria-label":n}},[e._v(e._s(n))]),a("div",{staticClass:"flex_row small"},[a("div",{staticClass:"flex_member"},[e._v(e._s(s))]),a("div",{staticClass:"flex_member"},[e._v("$"+e._s(r)+" per page")]),a("div",{staticClass:"flex_member end"},[e._v("Additional Features: "+e._s(i.join(", ")))])])]}}],null,!1,701195193),model:{value:e.selectedDefaultPrinter,callback:function(t){e.selectedDefaultPrinter=t},expression:"selectedDefaultPrinter"}}),a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member pt-12"},[a("div",{staticClass:"button",attrs:{tabindex:"0",role:"button","aria-label":"Cancel this operation"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.resetDefaultDestination.apply(null,arguments)},click:e.resetDefaultDestination}},[e._v("Cancel")])]),a("div",{staticClass:"flex_member end pt-12"},[a("div",{staticClass:"button button_blue",attrs:{tabindex:"0",role:"button","aria-label":"Save selected printer and close this menu"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.saveDefaultDestination.apply(null,arguments)},click:e.saveDefaultDestination}},[a("span",{staticClass:"far fa-save mr-1"}),e._v("Save Default Destination")])])])],1):e._e(),e.userData.user[0].accounts.euc.shared.length?a("div",{staticClass:"box"},[a("h2",[e._v("MPrint Account Selection Settings")]),a("p",[e._v("To avoid having to select a print account every time you send a print job, you may modify your account selection settings here. Please be aware that if you choose a default account, it will remain your default until one of the following occurs:")]),e._m(4),e._m(5),a("table",{staticClass:"no_highlight"},[a("tbody",[a("tr",[e._m(6),a("td",[a("select",{directives:[{name:"model",rawName:"v-model",value:e.newPopupBehavior,expression:"newPopupBehavior"}],staticClass:"ml-4",attrs:{id:"popup_behavior"},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.newPopupBehavior=t.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"AUTO_CHARGE_TO_PERSONAL_ACCOUNT"}},[e._v("Always charge to personal (quota) accounts")]),a("option",{attrs:{value:"AUTO_CHARGE_TO_SHARED"}},[e._v("Always charge to a single unrestricted account")]),a("option",{attrs:{value:"SHOW_ACCOUNT_SELECTION_POPUP"}},[e._v("Show me the account selection popup")])])])]),"AUTO_CHARGE_TO_SHARED"===e.newPopupBehavior?a("tr",[e._m(7),a("td",[a("select",{directives:[{name:"model",rawName:"v-model",value:e.newDefaultAccount,expression:"newDefaultAccount"}],staticClass:"ml-4",attrs:{id:"default_account"},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.newDefaultAccount=t.target.multiple?a:a[0]}}},[e._l(e.userData.user[0].accounts.euc.shared,(function(t,n){return[a("option",{key:"default_acct_"+n,domProps:{value:t.name}},[e._v(e._s(t.name))])]}))],2)])]):e._e(),a("tr",[a("td",{attrs:{colspan:"2"}},[a("button",{staticClass:"button button_blue",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.updateUserSettings.apply(null,arguments)}}},[e._v("Submit Changes")])])])])])]):e._e()]:[e._m(0)]],2),null!==e.showModalForService&&e.user.uniqname===e.lookupUser?a("div",{staticClass:"modal",attrs:{id:"service_modal"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeOpenModal(!1)}}},[a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Manage Service - "+e._s(e.showModalForService.description))])]),a("div",{staticClass:"modal_content"},[e.serviceData.isLoaded?e.serviceData.isLoaded&&!e.serviceData.isError&&Object.keys(e.serviceData).includes("authUrl")?[a("h2",[e._v("Connection Info")]),a("div",{staticClass:"medium_text"},[e._v("This service is not yet connected to MPrint! "),a("a",{attrs:{href:e.serviceData.authUrl}},[e._v("Click here")]),e._v(" to connect it now!")])]:e.serviceData.isLoaded&&!e.serviceData.isError?[a("div",{staticClass:"float_left"},[a("h2",[e._v("Connection Info")]),a("div",[e._v("Connected as: "),a("b",[e._v(e._s(e.serviceData.service.email))])])]),a("div",{staticClass:"float_right"},[a("div",[a("img",{attrs:{src:e.serviceData.service.profile_pic_url,alt:"service avatar"}})])]),a("div",{staticClass:"clearfix"}),a("div",[e._v("Your MPrint account is currently connected to "+e._s(e.showModalForService.description)+". If you would like to disconnect this service or change the associated email address, please click the "),a("b",[e._v("Disconnect from Service")]),e._v(" button below.")])]:[a("h2",[e._v("Connection Info")]),a("div",[e._v("An error occurred! Failed to load service connection information.")])]:[a("h2",[e._v("Connection Info")]),e._m(8)]],2),a("div",{staticClass:"modal_footer"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("div",{staticClass:"button button_blue",on:{click:function(t){return e.closeOpenModal(!1)}}},[e._v("Close")])]),a("div",{staticClass:"flex_member end"},[+e.showModalForService.is_connected?[a("div",{staticClass:"button button_red",on:{click:function(t){return e.closeOpenModal(!0)}}},[a("i",{staticClass:"fas fa-unlink mr-2"}),e._v("Disconnect from Service")])]:e._e()],2)])])]):e._e()])},xn=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"full_width center"},[n("h2",[e._v("Loading User Information... "),n("img",{attrs:{src:a("d9b6"),alt:"loading user info"}})])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"full_width center"},[a("h2",[e._v("An error occurred! Please refresh the page to try again.")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",{staticClass:"pb-12"},[e._v("Set the default printer you wish to use, or choose to send your documents to "),a("b",[e._v("Follow Me")]),e._v(". Follow Me will hold your document for up to 24 hours, during which time you can release it to a printer near you with the MPrint Mobile app, or by swiping your Mcard.")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",{staticClass:"pb-12"},[a("b",[e._v("Note:")]),e._v(" If your default destination becomes disabled at any point due to an error, it will not apply to your Jobs until the error is resolved.")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ol",[a("li",[e._v("You modify your settings again on this page")]),a("li",[e._v("The account you choose as your default account is closed or expires")]),a("li",[e._v("You have a new unrestricted account assigned to you")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[a("b",[e._v("Note")]),e._v(': Setting your default to charge to your "Personal Account" may result in charges to your student account if your print charges deplete your current allocation. Be sure to keep your balance in mind if you choose that option.')])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"popup_behavior"}},[e._v("Popup behavior setting:")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("label",{attrs:{for:"default_account"}},[e._v("Unrestricted Account to Automatically Charge:")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"medium_text"},[e._v("Loading service data... "),n("img",{attrs:{src:a("d9b6"),alt:"loading service info"}})])}],Cn=(a("a4d3"),a("e01a"),{name:"settings",data:function(){return{enableMask:!1,lookupUser:null,msg:null,newDefaultAccount:null,newPopupBehavior:null,publicPath:window.location.origin,queueData:{isError:!1,isLoaded:!1,queues:[]},selectedDefaultPrinter:null,serviceData:{isError:!1,isLoaded:!1,service:[]},showModalForService:null,userData:{defaultPrinter:null,defaultPrinterSaved:!1,isError:!1,isLoaded:!1,user:[]},userToLookup:null}},methods:{closeOpenModal:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!e){a.next=4;break}return t.msg="Disconnecting service ".concat(t.showModalForService.description),a.next=4,t.disconnect(t.showModalForService);case 4:t.enableMask=!1,t.showModalForService=null,t.serviceData.isError=!1,t.serviceData.isLoaded=!1,t.serviceData.service=[];case 9:case"end":return a.stop()}}),a)})))()},disconnect:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:n=t,s=!1,r=t.lookupUser!==t.user.uniqname?"?viewAs=".concat(t.lookupUser):"",p.methods.delete("/api/cloudservices/".concat(e.name).concat(r)).then((function(e){console.log(e.data.result),+e.data.result.count?(n.$set(n.userData,"isLoaded",!1),n.$set(n.userData,"isError",!1),n.$set(n.userData,"user",[]),s=!0):n.msg="Failed to disconnect from service!"})).catch((function(e){console.log(e),n.msg="An error occurred - failed to disconnect service!"})).finally((function(){window.setTimeout((function(){n.msg=""}),4e3),s&&n.getUserData()}));case 4:case"end":return a.stop()}}),a)})))()},getQueues:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,n=e.lookupUser!==e.user.uniqname?"&viewAs=".concat(e.lookupUser):"",p.methods.get("api/queues?basic=1".concat(n)).then((function(e){if(+e.data.result.count){a.queueData.queues=e.data.result.result.filter((function(e){return!e.class&&"m-poster-follow-me"!==e.name&&!e.name.startsWith("m-follow-me-")}));var t,n=Object(i["a"])(a.queueData.queues);try{for(n.s();!(t=n.n()).done;){var s=t.value;s["additional_features"]=[],s.color&&s["additional_features"].push("Color"),s.copy&&s["additional_features"].push("Copy"),s.tabloid&&s["additional_features"].push("Tabloid")}}catch(r){n.e(r)}finally{n.f()}}else a.queueData.isError=!0;a.queueData.isLoaded=!0})).catch((function(e){a.queueData.isError=!0,a.queueData.isLoaded=!0,console.log("An error occurred while populating the list of queues! ".concat(e))})).finally((function(){if(a.userData.isLoaded&&a.userData.defaultPrinter){var e=a.queueData.queues.filter((function(e){return e.name===a.userData.defaultPrinter}));0===e.length?(a.msg="You do not seem to have access to your previously selected default printer ".concat(a.userData.defaultPrinter,"!"),a.userData.defaultPrinter=null,window.setTimeout((function(){a.msg=null}),4e3)):a.selectedDefaultPrinter=e[0]}}));case 3:case"end":return t.stop()}}),t)})))()},getServiceInfo:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(t.lookupUser===t.user.uniqname){a.next=2;break}return a.abrupt("return");case 2:n=t,t.showModalForService=e,t.enableMask=!0,p.methods.get("/api/cloudservices/".concat(e.name,"/user")).then((function(e){+e.data.result.count?(n.$set(n.serviceData,"service",e.data.result.result),n.msg=""):Object.keys(e.data.result).includes("authUrl")?(n.$set(n.serviceData,"authUrl",e.data.result.authUrl),n.msg=""):(n.$set(n.serviceData,"isError",!0),console.log(e.data.result))})).catch((function(t){console.log(t),n.$set(n.serviceData,"isError",!0),n.serviceData.isError=!0,n.msg="Failed to load connection info for service ".concat(e.name,"!")})).finally((function(){n.$set(n.serviceData,"isLoaded",!0),n.msg&&window.setTimeout((function(){n.msg=""}),4e3)}));case 6:case"end":return a.stop()}}),a)})))()},getUserData:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,e.userData.isLoaded=!1,e.userData.isError=!1,e.userData.user=[],p.methods.get("/api/users/".concat(a.lookupUser)).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!+t.data.result.count){e.next=10;break}return a.$set(a.userData,"user",t.data.result.result),a.newDefaultAccount=t.data.result.result[0].accounts.euc.default_account,a.newPopupBehavior=t.data.result.result[0].accounts.euc.popup_behavior,e.next=6,p.methods.get("api/usersettings/".concat(a.lookupUser));case 6:n=e.sent.data.result,+n.count&&(a.userData.defaultPrinter=n.result[0].default_printer,a.userData.defaultPrinterSaved=!0),e.next=11;break;case 10:window.location.href="".concat(a.publicPath,"/user");case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.log(e),a.msg="An error occurred! Could not load user data!",a.userData.isError=!0})).finally((function(){if(a.msg&&window.setTimeout((function(){a.msg=""}),4e3),a.userData.isLoaded=!0,a.queueData.isLoaded&&!a.queueData.isError&&a.userData.defaultPrinter){var e=a.queueData.queues.filter((function(e){return e.name===a.userData.defaultPrinter}));0===e.length?(a.msg="You do not seem to have access to your previously selected default printer ".concat(a.userData.defaultPrinter,"!"),a.userData.defaultPrinter=null,window.setTimeout((function(){a.msg=null}),4e3)):a.selectedDefaultPrinter=e[0]}}));case 5:case"end":return t.stop()}}),t)})))()},lookupAnotherUser:function(){return this.userToLookup&&(window.location.href="".concat(this.publicPath,"/settings/admin/").concat(this.userToLookup)),!1},queueFilter:function(e,t,a){return t.toLowerCase().indexOf(a.toLowerCase())>=0||e.name.toLowerCase().indexOf(a.toLowerCase())>=0},registerService:function(e,t){var a=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(s=a,a.lookupUser===a.user.uniqname){n.next=3;break}return n.abrupt("return");case 3:p.methods.post("/api/cloudservices",{service:e,uniqname:a.user.uniqname,code:t}).then((function(t){+t.data.result.count?s.msg="Successfully connected to ".concat(e,"!"):console.log(t.data.result)})).catch((function(e){s.msg="An error occurred! Please refresh the page to try again.",console.log(e)})).finally(Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return window.setTimeout((function(){s.msg=""}),4e3),e.next=3,s.getUserData();case 3:case"end":return e.stop()}}),e)}))));case 4:case"end":return n.stop()}}),n)})))()},renderIcon:function(e){var t=+e.is_connected,a='<i class="fab fa-google-drive fa-2x '.concat(t?"blue":"red",'"></i>');switch(e.name){case"dropbox":a='<i class="fab fa-dropbox fa-2x '.concat(t?"blue":"red",'"></i>');break;default:a='<i class="fas fa-cloud fa-2x '.concat(t?"blue":"red",'"></i>');break}return a},resetDefaultDestination:function(){var e=this;if(this.userData.defaultPrinter){var t=this.queueData.queues.filter((function(t){return t.name===e.userData.defaultPrinter}));0===t.length?this.selectedDefaultPrinter=null:this.selectedDefaultPrinter=t[0]}else this.selectedDefaultPrinter=null},saveDefaultDestination:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n,s,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(t.prev=0,a=e.selectedDefaultPrinter?e.selectedDefaultPrinter.name:null,e.msg="".concat(null===a?"Removing saved":"Setting new"," default printer..."),!e.userData.defaultPrinterSaved){t.next=10;break}return t.next=6,p.methods.put("api/usersettings/".concat(e.lookupUser),{default_printer:a});case 6:n=t.sent,+n.data.result.count?e.userData.defaultPrinter=a:console.log(n.data.result),t.next=14;break;case 10:return t.next=12,p.methods.post("api/usersettings",{uniqname:e.lookupUser,default_printer:a});case 12:s=t.sent,+s.data.result.count?(e.userData.defaultPrinter=a,e.userData.defaultPrinterSaved=!0):console.log(s.data.result);case 14:t.next=19;break;case 16:t.prev=16,t.t0=t["catch"](0),console.log(t.t0);case 19:return t.prev=19,r=e,window.setTimeout((function(){r.msg=""}),4e3),t.finish(19);case 23:case"end":return t.stop()}}),t,null,[[0,16,19,23]])})))()},updateUserSettings:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,n={account_selection_mode:a.newPopupBehavior},"AUTO_CHARGE_TO_SHARED"===n.account_selection_mode&&(n.auto_charge_shared_account=a.newDefaultAccount),e.msg="Updating user account settings...",p.methods.put("/api/users/".concat(e.lookupUser),n).then((function(e){+e.data.result.count?a.msg="Successfully updated user account settings!":(a.msg="Failed to update user account settings!",console.log(e.data.result.result))})).catch((function(e){console.log(e),a.msg="An error occurred while updating user account settings! Please refresh the page and try again."})).finally((function(){window.setTimeout((function(){a.msg=""}),4e3)}));case 5:case"end":return t.stop()}}),t)})))()},useFollowMe:function(){this.selectedDefaultPrinter=this.queueData.queues.filter((function(e){return"m-follow-me"===e.name}))[0]}},props:{user:{type:Object,default:function(){return this.$store.getters.getUser}}},created:function(){this.user.uniqname&&(this.lookupUser=this.user.uniqname,this.$route.params["serviceName"]&&Object.keys(this.$route.query).includes("code")?this.registerService(this.$route.params["serviceName"],this.$route.query["code"]):(this.$route.params["username"]&&("admin"===this.user.role?this.lookupUser=this.$route.params["username"]:window.location.href="/unauthorized"),this.getUserData(),this.getQueues()))},watch:{user:function(){this.lookupUser=this.user.uniqname,this.$route.params["serviceName"]&&Object.keys(this.$route.query).includes("code")?this.registerService(this.$route.params["serviceName"],this.$route.query["code"]):(this.$route.params["username"]&&("admin"===this.user.role?this.lookupUser=this.$route.params["username"]:window.location.href="/unauthorized"),this.getUserData(),this.getQueues())}}}),kn=Cn,Pn=(a("2a63"),a("d41a"),Object(f["a"])(kn,yn,xn,!1,null,"55c2b489",null)),Dn=Pn.exports,An=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.msg,expression:"msg"}],attrs:{id:"message_container"}},[a("div",{staticClass:"message",attrs:{id:"message"}},[e._v(e._s(e.msg))])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.enableMask,expression:"enableMask"}],staticClass:"mask dim",attrs:{id:"mask"},on:{click:function(t){return e.closeOpenModal(!1)}}}),a("div",{attrs:{id:"content",role:"main"}},[e._m(0),a("div",{staticClass:"box full_box"},[a("h2",[e._v("Known Issues")]),e.knownIssues.isLoaded?e.knownIssues.isLoaded&&e.knownIssues.isError?[a("div",{staticClass:"medium_text center"},[e._v("Failed to load known issues! Please refresh and try again.")])]:[e.knownIssues.issues.length?[a("table",{staticClass:"full_width"},[e._m(2),e._l(e.knownIssues.issues,(function(t,n){return[a("tr",{key:"issue_row_"+n,staticClass:"issue_row",class:n%2===0?"even_row":""},[a("td",{staticClass:"pad-8"},[e._v(e._s(t.id))]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.name))]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.description))]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.status))])])]}))],2)]:[a("div",{staticClass:"medium_text center"},[e._v("There are currently no known issues!")])]]:[e._m(1)]],2),a("div",{staticClass:"box full_box"},[a("h2",[e._v("Required Services")]),e.healthData.isLoaded?[e.healthData.isError?[e._m(4)]:e._e(),a("table",{staticClass:"full_width"},[e._m(5),e._l(Object.keys(e.healthData.health),(function(t,n){return[a("tr",{key:"health_row_"+n,staticClass:"health_row",class:e.healthData.health[t].healthy?e.healthData.health[t].failedTests>0?"warning_row":n%2===0?"even_row":"":"unhealthy_row"},[a("td",{staticClass:"pad-8 capitalize"},[e._v(e._s(t))]),a("td",{staticClass:"pad-8 capitalize"},[e._v(e._s(e.healthData.health[t].status))]),a("td",{staticClass:"pad-8"},[e._v(e._s(e.healthData.health[t].failedTests)+" out of 4 attempts failed")]),a("td",{staticClass:"pad-8"},[e._v(e._s(e.healthData.health[t].message))])])]}))],2)]:[e._m(3)]],2),a("div",{staticClass:"box full_box"},[a("h2",[e._v("Server Status")]),e.serverData.isLoaded?e.serverData.isLoaded&&e.serverData.isError?[a("div",{staticClass:"medium_text center"},[e._v("Failed to load Server Data! Please refresh and try again.")])]:[e.serverData.servers.length?[a("table",{staticClass:"full_width"},[e._m(7),e._l(e.serverData.servers,(function(t,n){return[a("tr",{key:"server_row_"+n,staticClass:"server_row",class:[{even_row:n%2===0},{clickable:Object.keys(t).includes("buildings")}],on:{click:function(t){return e.toggle(n)}}},[a("td",{staticClass:"pad-8"},[e._v(e._s(t.active_directory_name))]),a("td",{staticClass:"pad-8"},[e._v("Operational")]),a("td",{staticClass:"pad-8"},[e._v("N/A")]),a("td",{staticClass:"pad-8"},[e._v(e._s(Object.keys(t).includes("buildings")?t.buildings.length+" buildings":"N/A"))])]),Object.keys(t).includes("buildings")?[a("tr",{key:"buildings_row_"+n,staticClass:"buildings_row",class:e.expanded.includes(t.active_directory_name)?"shown":""},[a("td",{attrs:{colspan:"4"}},[e._l(t.buildings,(function(t,s){return[s>0?[a("span",{key:"buildings_"+s+"_"+n+"_divider",staticClass:"ml-2 mr-2"},[e._v("•")])]:e._e(),a("span",{key:"buildings_"+s+"_"+n},[e._v(e._s(t.common_name))])]}))],2)])]:e._e()]}))],2)]:[a("div",{staticClass:"medium_text center"},[e._v("No server data was found!")])]]:[e._m(6)]],2)])])},En=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"box full_box"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("h1",[e._v("MPrint Status")])])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"medium_text center"},[e._v("Loading known issues... "),n("img",{attrs:{src:a("d9b6"),alt:"loading known issues"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"bold pad-8"},[e._v("ID")]),a("td",{staticClass:"bold pad-8"},[e._v("Issue Name")]),a("td",{staticClass:"bold pad-8"},[e._v("Issue Description")]),a("td",{staticClass:"bold pad-8"},[e._v("Issue Status")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"medium_text center"},[e._v("Checking health of external services... "),n("img",{attrs:{src:a("d9b6"),alt:"loading health probe"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"medium_text center"},[a("b",[e._v("Warning:")]),e._v(" One or more required services is not in a healthy state. MPrint may not work as expected!")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"bold pad-8"},[e._v("Service")]),a("td",{staticClass:"bold pad-8"},[e._v("Health Status")]),a("td",{staticClass:"bold pad-8"},[e._v("Failed Tests")]),a("td",{staticClass:"bold pad-8"},[e._v("Status Message")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"medium_text center"},[e._v("Loading Server Data... "),n("img",{attrs:{src:a("d9b6"),alt:"loading server data"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"bold pad-8"},[e._v("Server Name")]),a("td",{staticClass:"bold pad-8"},[e._v("Server Status")]),a("td",{staticClass:"bold pad-8"},[e._v("Status Message")]),a("td",{staticClass:"bold pad-8"},[e._v("Buildings Serviced")])])}],jn={name:"status",data:function(){return{enableMask:!1,expanded:[],healthData:{isLoaded:!1,isError:!1,health:{}},knownIssues:{isLoaded:!1,isError:!1,issues:[]},msg:null,serverData:{isLoaded:!1,isError:!1,servers:[]}}},props:{user:{type:Object,default:function(){return this.$store.getters.getUser}}},methods:{closeOpenModal:function(e){this.enableMask=!1,console.log(e)},getServerData:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e,t.next=3,Promise.all([p.methods.get("api/servers"),p.methods.get("api/zones?buildings")]).then((function(e){if(+e[0].data.result.count&&+e[1].data.result.count){var t,n=e[0].data.result.result.filter((function(e){return+e.is_primary&&+e.is_production&&e.name!==e.active_directory_name})),s=Object(i["a"])(n);try{var r=function(){var a=t.value,n=e[1].data.result.result.filter((function(e){return e.windows_server===a.name}));n.length&&(a.buildings=n[0].buildings)};for(s.s();!(t=s.n()).done;)r()}catch(o){s.e(o)}finally{s.f()}a.serverData.servers=n}else a.msg="Failed to retrieve server information... Please refresh and try again!",a.serverData.isError=!0,console.log(e[0].data.result),console.log(e[1].data.result)})).catch((function(e){a.msg="An error occurred! Please refresh and try again.",a.serverData.isError=!0,console.log(e)})).finally((function(){a.serverData.isLoaded=!0,window.setTimeout((function(){a.msg=null}),4e3)}));case 3:case"end":return t.stop()}}),t)})))()},healthProbe:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,p.methods.get("api/health?force");case 3:e.healthData.health=t.sent.data.result.result,t.next=12;break;case 6:t.prev=6,t.t0=t["catch"](0),e.healthData.isError=!0,e.msg="An error occurred while obtaining service health data! ".concat(t.t0),a=e,window.setTimeout((function(){a.msg=null}),4e3);case 12:return t.prev=12,e.healthData.isLoaded=!0,t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[0,6,12,15]])})))()},toggle:function(e){var t=this.serverData.servers[e];if(this.expanded.includes(t.active_directory_name)){var a,n=[],s=Object(i["a"])(this.expanded);try{for(s.s();!(a=s.n()).done;){var r=a.value;r!==t.active_directory_name&&n.push(r)}}catch(o){s.e(o)}finally{s.f()}this.expanded=n}else{if(!Object.keys(t).includes("buildings"))return!1;this.expanded.push(t.active_directory_name)}}},created:function(){this.user.uniqname&&(this.getServerData(),this.healthProbe()),this.knownIssues.isLoaded=!0},watch:{user:function(){this.getServerData(),this.healthProbe()}}},qn=jn,Mn=(a("75ec"),Object(f["a"])(qn,An,En,!1,null,"b5d63df4",null)),Sn=Mn.exports,Ln=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("div",{attrs:{id:"content"}},[n("h1",{staticClass:"float_left lh_36"},[e._v("MPrint API - TESTING")]),n("div",{staticClass:"clearfix"}),n("p",{directives:[{name:"show",rawName:"v-show",value:e.isLoading,expression:"isLoading"}]},[e._v("Loading... "),n("img",{attrs:{src:a("d9b6"),alt:"loading",title:"loading"}})]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isLoaded&&!e.isError,expression:"isLoaded && !isError"}]},[n("div",[n("label",{staticClass:"big_label",attrs:{for:"endpoint_select"}},[e._v("Endpoint to Test: ")]),n("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedEndpoint,expression:"selectedEndpoint"}],attrs:{name:"endpoint",id:"endpoint_select"},on:{change:[function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.selectedEndpoint=t.target.multiple?a:a[0]},e.selectEndpoint]}},[e._l(e.endpointData,(function(t,a){return[n("option",{directives:[{name:"show",rawName:"v-show",value:t["isLoaded"]&&t["isWorking"],expression:"endpoint['isLoaded'] && endpoint['isWorking']"}],key:t["endpoint"]+"_option",domProps:{value:"endpoint_"+a}},[e._v(e._s(t["endpoint"]))])]}))],2)]),null!==e.selectedIndex?n("div",{attrs:{id:"endpoint_info"}},[n("label",{staticClass:"big_label",attrs:{for:"method_select"}},[e._v("Method to Test: ")]),n("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedMethod,expression:"selectedMethod"}],attrs:{name:"method",id:"method_select"},on:{change:[function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.selectedMethod=t.target.multiple?a:a[0]},e.selectMethod]}},[e._l(e.endpointData[e.selectedIndex]["methods"],(function(t,a){return[n("option",{key:t["name"]+"_"+a,domProps:{value:"method_"+a}},[e._v(e._s(t["name"]))])]}))],2)]):e._e(),null!==e.selectedIndex&&null!==e.selectedMethodIndex?n("div",[n("div",{attrs:{id:e.endpointData[e.selectedIndex]["methods"][e.selectedMethodIndex]["name"]+"_div"}},[n("b",[e._v(e._s(e.endpointData[e.selectedIndex]["methods"][e.selectedMethodIndex]["name"])+": "+e._s(e.endpointData[e.selectedIndex]["methods"][e.selectedMethodIndex]["url"]))]),n("ul",[n("li",[e._v(e._s(e.endpointData[e.selectedIndex]["methods"][e.selectedMethodIndex]["description"]))]),n("li",[e._v("Parameters:")]),n("ul",[e._l(e.endpointData[e.selectedIndex]["methods"][e.selectedMethodIndex]["parameters"],(function(t,a){return[n("li",{key:e.endpointData[e.selectedIndex]["endpoint"]+"_"+e.endpointData[e.selectedIndex]["methods"][e.selectedMethodIndex]["name"]+"_param_"+a},[n("span",{domProps:{innerHTML:e._s(t)}},[e._v(e._s(t))]),n("span",[e._v(" -- "),n("label",{attrs:{for:e.endpointData[e.selectedIndex]["methods"][e.selectedMethodIndex]["name"]+"_"+a+"_value"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.params[t.split("-")[0].trim()],expression:"params[param.split('-')[0].trim()]"}],attrs:{type:"text",name:"params[]",id:e.endpointData[e.selectedIndex]["methods"][e.selectedMethodIndex]["name"]+"_"+a+"_value",value:""},domProps:{value:e.params[t.split("-")[0].trim()]},on:{input:function(a){a.target.composing||e.$set(e.params,t.split("-")[0].trim(),a.target.value)}}})])])])]}))],2)])]),n("input",{attrs:{type:"button",value:"Test API!"},on:{click:e.testEndpoint}}),n("br"),n("p",{directives:[{name:"show",rawName:"v-show",value:e.testIsLoading,expression:"testIsLoading"}]},[e._v("Loading... "),n("img",{attrs:{src:a("d9b6"),alt:"loading",title:"loading"}})]),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.testIsLoading&&null!==e.testResult,expression:"!testIsLoading && testResult !== null"}],attrs:{id:"testResults"}},[n("pre",[e._v(e._s(JSON.stringify(e.testResult,null,4)))])])]):e._e()]),n("p",{directives:[{name:"show",rawName:"v-show",value:e.isLoaded&&e.isError,expression:"isLoaded && isError"}]},[e._v("Something went wrong! Failed to load API Endpoints... Is the API Index container running?")])])])},On=[],Rn=(a("498a"),{name:"testApi",data:function(){return{endpointData:[],isError:!1,isLoaded:!1,isLoading:!0,params:{},selectedEndpoint:"",selectedIndex:null,selectedMethod:"",selectedMethodIndex:null,testIsLoading:!1,testResult:null,visibleEndpoints:[]}},props:{user:{type:Object,default:function(){return this.$store.getters.getUser}}},methods:{getEndpoints:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a="api/index",t.prev=1,e.resetAjaxVars(),t.next=5,p.methods.get(a);case 5:n=t.sent,e.endpointData=n["data"],t.next=13;break;case 9:t.prev=9,t.t0=t["catch"](1),console.log(t.t0),e.isError=!0;case 13:return t.prev=13,e.isLoading=!1,e.isLoaded=!0,e.isError||(s=e,e.endpointData.forEach((function(e,t){s.getEndpointStatus(e,t)}))),t.finish(13);case 18:case"end":return t.stop()}}),t,null,[[1,9,13,18]])})))()},getEndpointStatus:function(e,t){var a=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var s,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return s=e["url"]+"?info",n.prev=1,n.next=4,p.methods.get(s);case 4:r=n.sent,a.endpointData[t].methods=r["data"]["result"],a.endpointData[t].isWorking=!0,n.next=13;break;case 9:n.prev=9,n.t0=n["catch"](1),a.endpointData[t].isWorking=!1,console.log(n.t0);case 13:return n.prev=13,a.endpointData[t].isLoading=!1,a.endpointData[t].isLoaded=!0,n.finish(13);case 17:case"end":return n.stop()}}),n,null,[[1,9,13,17]])})))()},testEndpoint:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n,s,r,i,o,c,l,u,d,_,m,f,h;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,a.testIsLoading=!0,n=a.endpointData[a.selectedIndex]["url"],s=a.endpointData[a.selectedIndex]["methods"][a.selectedMethodIndex]["name"],r="".concat(n),i=[],Object.keys(a.params).forEach((function(e){i.push("".concat(e,": ").concat(a.params[e]))})),console.log("included params: ".concat(i.join(", "))),s.toLowerCase().startsWith("get")?(console.log("get!"),o=!0,c=!1,-1!==a.endpointData[a.selectedIndex]["methods"][a.selectedMethodIndex]["url"].indexOf("/:")&&(Object.values(a.params).length&&Object.values(a.params)[0]?(r="".concat(r,"/").concat(Object.values(a.params)[0]),c=!0):(a.testResult="ERROR! Selected method requires the first parameter to not be empty!",a.testIsLoading=!1,o=!1)),o&&(l=[],a.endpointData[a.selectedIndex]["methods"][a.selectedMethodIndex]["parameters"].forEach((function(e,t){var n=e.split("-")[0].trim();(!c||c&&0!==t)&&Object.keys(a.params).includes(n)&&l.push("".concat(n,"=").concat(a.params[n]))})),r="".concat(r,"?").concat(l.join("&")),console.log(r),p.methods.get(r).then((function(e){a.testResult=e.data,a.testIsLoading=!1})).catch((function(e){console.log("ERROR! "+e),a.testResult=e,a.testIsLoading=!1})))):s.toLowerCase().startsWith("post")?(console.log("post!"),u={},a.endpointData[a.selectedIndex]["methods"][a.selectedMethodIndex]["parameters"].forEach((function(e){var t=e.split("-")[0].trim();Object.keys(a.params).includes(t)&&(u[t]=a.params[t])})),console.log(r),p.methods.post(r,u).then((function(e){a.testResult=e.data,a.testIsLoading=!1})).catch((function(e){console.log("ERROR! "+e),a.testResult=e,a.testIsLoading=!1}))):s.toLowerCase().startsWith("put")?(console.log("put!"),d=!0,_={},-1!==a.endpointData[a.selectedIndex]["methods"][a.selectedMethodIndex]["url"].indexOf("/:")?Object.values(a.params).length&&Object.values(a.params)[0]?(r="".concat(r,"/").concat(Object.values(a.params)[0]),a.endpointData[a.selectedIndex]["methods"][a.selectedMethodIndex]["parameters"].forEach((function(e,t){var n=e.split("-")[0].trim();t>0&&Object.keys(a.params).includes(n)&&(_[n]=a.params[n])}))):(a.testResult="ERROR! Selected method requires the first parameter to not be empty!",a.testIsLoading=!1,d=!1):a.endpointData[a.selectedIndex]["methods"][a.selectedMethodIndex]["parameters"].forEach((function(e){var t=e.split("-")[0].trim();Object.keys(a.params).includes(t)&&(_[t]=a.params[t])})),d&&(console.log(r),p.methods.put(r,_).then((function(e){a.testResult=e.data,a.testIsLoading=!1})).catch((function(e){console.log("ERROR! "+e),a.testResult=e,a.testIsLoading=!1})))):s.toLowerCase().startsWith("delete")?(console.log("delete!"),m=!0,f=!1,-1!==a.endpointData[a.selectedIndex]["methods"][a.selectedMethodIndex]["url"].indexOf("/:")&&(Object.values(a.params).length&&Object.values(a.params)[0]?(r="".concat(r,"/").concat(Object.values(a.params)[0]),f=!0):(a.testResult="ERROR! Selected method requires the first parameter to not be empty!",a.testIsLoading=!1,m=!1)),m&&(h=[],a.endpointData[a.selectedIndex]["methods"][a.selectedMethodIndex]["parameters"].forEach((function(e,t){var n=e.split("-")[0].trim();(!f||f&&0!==t)&&Object.keys(a.params).includes(n)&&h.push("".concat(n,"=").concat(a.params[n]))})),r="".concat(r,"?").concat(h.join("&")),console.log(r),p.methods.delete(r).then((function(e){a.testResult=e.data,a.testIsLoading=!1})).catch((function(e){console.log("ERROR! "+e),a.testResult=e,a.testIsLoading=!1})))):(a.testResult={status:"ERROR",status_message:"Method could not be determined from ".concat(s,"!")},a.testIsLoading=!1),a.params=[];case 10:case"end":return t.stop()}}),t)})))()},selectEndpoint:function(){var e=this;e.selectedIndex=e.selectedEndpoint.split("_")[1]},selectMethod:function(){var e=this;e.selectedMethodIndex=e.selectedMethod.split("_")[1]},resetAjaxVars:function(){this.isError=!1,this.isLoading=!0,this.isLoaded=!1}},mounted:function(){this.user.uniqname&&"admin"===this.user.role&&this.getEndpoints()},watch:{user:function(e){"admin"===e.role?this.getEndpoints():(console.log("ERROR: API Testing requires role ADMIN, user has role: "+e.role),this.isLoading=!1,this.isError=!0,this.isLoaded=!0,this.error="Access Denied! API Testing requires 'Admin' role, but you have role '".concat(e.role,"'"))}}}),Tn=Rn,Nn=(a("1f17"),Object(f["a"])(Tn,Ln,On,!1,null,"47a130dc",null)),Fn=Nn.exports,In=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.msg,expression:"msg"}],attrs:{id:"message_container"}},[a("div",{staticClass:"message",attrs:{id:"message"}},[e._v(e._s(e.msg))])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.enableMask,expression:"enableMask"}],staticClass:"mask dim",attrs:{id:"mask"},on:{click:function(t){return e.closeOpenModal(!1)}}}),a("div",{attrs:{id:"content",role:"main"}},[a("div",{staticClass:"flex_row"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.popFilter,expression:"popFilter"}],staticClass:"box full_box",attrs:{id:"empty_filter_box"}}),a("div",{staticClass:"box full_box",class:e.popFilter?"popped_out":"",attrs:{id:"filter_container"}},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("h1",[e._v("MPrint Term Administration")]),"admin"===e.user.role?a("div",[a("button",{staticClass:"ml-2 button button_large button_blue",on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.showCreateModal()}}},[a("i",{staticClass:"fas fa-plus mr-2"}),e._v("Add New Term")])]):e._e()]),a("div",{staticClass:"flex_member end"},[a("div",[a("label",{attrs:{for:"filter_quick_search"}},[e._v("Quick Search:")]),a("v-select",{attrs:{id:"filter_quick_search",taggable:"",multiple:"",options:[],"dropdown-should-open":function(){return!1}},on:{input:function(t){return e.filterTerms()}},model:{value:e.quickSearch,callback:function(t){e.quickSearch=t},expression:"quickSearch"}})],1),a("p",{staticClass:"pl-2"},[e._v("Join filters with: "),a("label",{attrs:{for:"join_and"}},[e._v("And")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.filterJoinWith,expression:"filterJoinWith"}],attrs:{type:"radio",id:"join_and",name:"filter_join_with",value:"and",checked:"checked"},domProps:{checked:e._q(e.filterJoinWith,"and")},on:{change:[function(t){e.filterJoinWith="and"},function(t){return e.filterTerms()}]}}),e._v(" or "),a("label",{attrs:{for:"join_or"}},[e._v("Or")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.filterJoinWith,expression:"filterJoinWith"}],attrs:{type:"radio",id:"join_or",name:"filter_join_with",value:"or"},domProps:{checked:e._q(e.filterJoinWith,"or")},on:{change:[function(t){e.filterJoinWith="or"},function(t){return e.filterTerms()}]}})])])]),e.termData.isLoaded?a("div",{staticClass:"flex_row center"},[a("div",{staticClass:"flex_member"},[a("p",[e._v("Showing "+e._s(e.visibleTerms.length)+" "+e._s(1===e.visibleTerms.length?"term":"terms"))])])]):e._e()])]),e.termData.isLoaded?e.termData.isLoaded&&e.termData.isError?[e._m(1)]:[e._m(2),a("div",{staticClass:"flex_row"},[a("div",{staticClass:"full_width full_box box"},[e.visibleTerms.length?[a("table",{staticClass:"full_width break_word"},[e._m(3),e._l(e.visibleTerms,(function(t,n){return[a("tr",{key:"term_row_"+n,staticClass:"term_row",class:n%2===0?"even_row":""},[a("td",{staticClass:"pad-8 no_break"},[e._v(e._s(t.id))]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.description))]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.start_date))]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.end_date))]),"admin"===e.user.role?a("td",{staticClass:"pad-8"},[a("a",{attrs:{href:""},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.showModalForTerm(n)}}},[e._v("Modify")]),e._v(" or "),a("a",{attrs:{href:""},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.deleteTerm(n)}}},[e._v("Delete")])]):e._e()])]}))],2)]:[a("div",{staticClass:"medium_text center"},[e._v("There are no terms to show!")])]],2)])]:[e._m(0)]],2),e.addNewTerm&&"admin"===e.user.role?a("div",{staticClass:"modal",attrs:{id:"add_term_modal"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeOpenModal(!1)}}},[e._m(4),a("div",{staticClass:"modal_content_no_overflow"},[a("h2",{staticClass:"pb-12"},[e._v("Add a new term to the MPrint database")]),a("div",{staticClass:"pb-12 flex_row"},[a("label",{staticClass:"flex_member",attrs:{for:"new_term_prefix"}},[e._v("Time of Year:")]),a("select",{directives:[{name:"model",rawName:"v-model",value:e.newTermPrefix,expression:"newTermPrefix"}],staticClass:"flex_member",attrs:{id:"new_term_prefix"},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.newTermPrefix=t.target.multiple?a:a[0]}}},[e._l(Object.keys(e.termOpts),(function(t,n){return[a("option",{key:"termOpt_"+n,domProps:{value:t}},[e._v(e._s(e.termOpts[""+t]))])]}))],2)]),a("fieldset",[a("legend",{staticClass:"bold"},[e._v("Start Date/Time")]),a("div",{staticClass:"pb-12 flex_row"},[a("label",{staticClass:"flex_member",attrs:{for:"new_term_start_date"}},[e._v("Start Date:")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.newTermStart,expression:"newTermStart"}],staticClass:"flex_member",attrs:{type:"date",id:"new_term_start_date"},domProps:{value:e.newTermStart},on:{input:function(t){t.target.composing||(e.newTermStart=t.target.value)}}})]),a("div",{staticClass:"pb-12 flex_row"},[a("label",{staticClass:"flex_member",attrs:{for:"new_term_start_time"}},[e._v("Start Time:")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.newTermStartTime,expression:"newTermStartTime"}],staticClass:"flex_member",attrs:{type:"time",id:"new_term_start_time",step:"1"},domProps:{value:e.newTermStartTime},on:{input:function(t){t.target.composing||(e.newTermStartTime=t.target.value)}}})])]),a("fieldset",[a("legend",{staticClass:"bold"},[e._v("End Date/Time")]),a("div",{staticClass:"pb-12 flex_row"},[a("label",{staticClass:"flex_member",attrs:{for:"new_term_end_date"}},[e._v("End Date:")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.newTermEnd,expression:"newTermEnd"}],staticClass:"flex_member",attrs:{type:"date",id:"new_term_end_date"},domProps:{value:e.newTermEnd},on:{input:function(t){t.target.composing||(e.newTermEnd=t.target.value)}}})]),a("div",{staticClass:"pb-12 flex_row"},[a("label",{staticClass:"flex_member",attrs:{for:"new_term_end_time"}},[e._v("End Time:")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.newTermEndTime,expression:"newTermEndTime"}],staticClass:"flex_member",attrs:{type:"time",id:"new_term_end_time",step:"1"},domProps:{value:e.newTermEndTime},on:{input:function(t){t.target.composing||(e.newTermEndTime=t.target.value)}}})])])]),a("div",{staticClass:"modal_footer"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("div",{staticClass:"button",on:{click:function(t){return e.closeOpenModal(!1)}}},[e._v("Cancel")])]),a("div",{staticClass:"flex_member end"},[a("div",{staticClass:"button button_blue",class:e.disableSubmit?"disabled":"",on:{click:function(t){return e.closeOpenModal(!0)}}},[a("i",{staticClass:"fas fa-calendar mr-2"}),e._v("Create New Term")])])])])]):e._e(),null!==e.modifyTermIndex&&"admin"===e.user.role?a("div",{staticClass:"modal",attrs:{id:"modify_term_modal"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeOpenModal(!1)}}},[e._m(5),a("div",{staticClass:"modal_content_no_overflow"},[a("h2",{staticClass:"pb-12"},[e._v("Modifying Term: "+e._s(e.visibleTerms[e.modifyTermIndex].id))]),a("fieldset",[a("legend",{staticClass:"bold"},[e._v("Start Date/Time")]),a("div",{staticClass:"pb-12 flex_row"},[a("label",{staticClass:"flex_member",attrs:{for:"edit_term_start_date"}},[e._v("Start Date:")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.editTermStart,expression:"editTermStart"}],staticClass:"flex_member",attrs:{type:"date",id:"edit_term_start_date"},domProps:{value:e.editTermStart},on:{input:function(t){t.target.composing||(e.editTermStart=t.target.value)}}})]),a("div",{staticClass:"pb-12 flex_row"},[a("label",{staticClass:"flex_member",attrs:{for:"edit_term_start_time"}},[e._v("Start Time:")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.editTermStartTime,expression:"editTermStartTime"}],staticClass:"flex_member",attrs:{type:"time",id:"edit_term_start_time",step:"1"},domProps:{value:e.editTermStartTime},on:{input:function(t){t.target.composing||(e.editTermStartTime=t.target.value)}}})])]),a("fieldset",[a("legend",{staticClass:"bold"},[e._v("End Date/Time")]),a("div",{staticClass:"pb-12 flex_row"},[a("label",{staticClass:"flex_member",attrs:{for:"edit_term_end_date"}},[e._v("End Date:")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.editTermEnd,expression:"editTermEnd"}],staticClass:"flex_member",attrs:{type:"date",id:"edit_term_end_date"},domProps:{value:e.editTermEnd},on:{input:function(t){t.target.composing||(e.editTermEnd=t.target.value)}}})]),a("div",{staticClass:"pb-12 flex_row"},[a("label",{staticClass:"flex_member",attrs:{for:"edit_term_end_time"}},[e._v("End Time:")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.editTermEndTime,expression:"editTermEndTime"}],staticClass:"flex_member",attrs:{type:"time",id:"edit_term_end_time",step:"1"},domProps:{value:e.editTermEndTime},on:{input:function(t){t.target.composing||(e.editTermEndTime=t.target.value)}}})])])]),a("div",{staticClass:"modal_footer"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("div",{staticClass:"button",on:{click:function(t){return e.closeOpenModal(!1)}}},[e._v("Cancel")])]),a("div",{staticClass:"flex_member end"},[a("div",{staticClass:"button button_blue",class:e.disableSubmit?"disabled":"",on:{click:function(t){return e.closeOpenModal(!0)}}},[a("i",{staticClass:"fas fa-calendar mr-2"}),e._v("Save Changes")])])])])]):e._e()])},Qn=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member full_width medium_text center"},[e._v("Loading Terms... "),n("img",{attrs:{src:a("d9b6"),alt:"loading terms"}})])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member full_width medium_text center"},[e._v("Failed to load terms! Please refresh and try again.")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member full_width"},[a("h2",[e._v("MPrint Terms")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"bold pad-8"},[e._v("ID")]),a("td",{staticClass:"bold pad-8"},[e._v("Display Name")]),a("td",{staticClass:"bold pad-8"},[e._v("Term Start Date")]),a("td",{staticClass:"bold pad-8"},[e._v("Term End Date")]),a("td",{staticClass:"bold pad-8"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Add New Term")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Modify Term")])])}],Un={name:"unitAdmin",data:function(){return{addNewTerm:!1,disableSubmit:!1,enableMask:!1,filterJoinWith:"and",editTermEnd:null,editTermEndTime:null,editTermStart:null,editTermStartTime:null,modifyTermIndex:null,msg:null,newTermPrefix:null,newTermEnd:null,newTermEndTime:"23:59:59",newTermStart:null,newTermStartTime:"00:00:00",popFilter:!1,quickSearch:[],termData:{isError:!1,isLoaded:!1,terms:[]},termOpts:{f:"Fall",s:"Spring/Summer",w:"Winter"},visibleTerms:[]}},props:{user:{type:Object,default:function(){return this.$store.getters.getUser}}},methods:{closeOpenModal:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,s,r,i,c,l,u;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!e||!t.disableSubmit){a.next=2;break}return a.abrupt("return",!1);case 2:if(!e){a.next=39;break}if(t.disableSubmit=!0,n=t,!t.addNewTerm){a.next=15;break}return n.msg="Adding new term...",s=t.newTermStart.split("-")[0],r="".concat(t.newTermPrefix.toUpperCase()).concat(s),i="".concat(t.termOpts[t.newTermPrefix]," ").concat(s),c={id:r,description:i,start_date:"".concat(n.newTermStart," ").concat(n.newTermStartTime),end_date:"".concat(n.newTermEnd," ").concat(n.newTermEndTime)},a.next=13,p.methods.post("api/terms",c).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:+t.data.result.count?n.termData.terms.push(c):(n.msg="Something went wrong... please refresh and try again.",console.log(t.data.result));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){n.msg="An error occurred! Please refresh and try again.",console.log(e)})).finally((function(){n.msg.startsWith("Adding")?(n.msg=null,n.filterTerms()):window.setTimeout((function(){n.msg=null}),4e3),n.addNewTerm=!1,n.newTermPrefix=null,n.newTermStart=null,n.newTermEnd=null,n.newTermStartTime="00:00:00",n.newTermEndTime="23:59:59",n.enableMask=null,n.disableSubmit=!1}));case 13:a.next=37;break;case 15:if(null===t.modifyTermIndex){a.next=37;break}return t.msg="Modifying term...",l=t.visibleTerms[t.modifyTermIndex],a.prev=18,a.next=21,p.methods.put("api/terms/".concat(l.id),{start_date:"".concat(t.editTermStart," ").concat(t.editTermStartTime),end_date:"".concat(t.editTermEnd," ").concat(t.editTermEndTime)});case 21:u=a.sent.data.result,+u.count?(t.$set(t.visibleTerms[t.modifyTermIndex],"start_date","".concat(t.editTermStart," ").concat(t.editTermStartTime)),t.$set(t.visibleTerms[t.modifyTermIndex],"end_date","".concat(t.editTermEnd," ").concat(t.editTermEndTime))):(t.msg="Something went wrong... Please refresh and try again!",console.log(u)),a.next=29;break;case 25:a.prev=25,a.t0=a["catch"](18),console.log(a.t0),t.msg="An error occurred! Please refresh and try again.";case 29:"Modifying term..."===t.msg?t.msg=null:window.setTimeout((function(){n.msg=null}),4e3),t.modifyTermIndex=null,t.editTermStart=null,t.editTermEnd=null,t.editTermStartTime=null,t.editTermEndTime=null,t.enableMask=null,t.disableSubmit=!1;case 37:a.next=46;break;case 39:t.addNewTerm=!1,t.editTermEnd=null,t.editTermStart=null,t.editTermStartTime=null,t.editTermEndTime=null,t.modifyTermIndex=null,t.enableMask=!1;case 46:case"end":return a.stop()}}),a,null,[[18,25]])})))()},deleteTerm:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,s,r,i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(n=t.visibleTerms[e],s=window.confirm("Are you sure you want to delete term ".concat(n.id," from MPrint?")),!s){a.next=16;break}return t.msg="Deleting term ".concat(n.id," from MPrint..."),a.prev=4,a.next=7,p.methods.delete("api/terms/".concat(n.id));case 7:r=a.sent.data.result,+r.count||(t.msg="Something went wrong... please refresh and try again!",console.log(r)),a.next=15;break;case 11:a.prev=11,a.t0=a["catch"](4),console.log(a.t0),t.msg="An error occurred! Please refresh and try again.";case 15:t.msg.startsWith("Deleting")?t.msg=null:(i=t,window.setTimeout((function(){i.msg=null}),4e3));case 16:case"end":return a.stop()}}),a,null,[[4,11]])})))()},filterTerms:function(){var e=this;this.msg="Filtering terms...","and"!==this.filterJoinWith&&this.quickSearch&&this.quickSearch.length?this.visibleTerms=[]:this.visibleTerms=this.termData.terms;var t,a=Object(i["a"])(this.quickSearch);try{var n=function(){var a=t.value;"and"===e.filterJoinWith?e.visibleTerms=e.visibleTerms.filter((function(e){return JSON.stringify(Object.values(e)).toLowerCase().indexOf(a.toLowerCase())>-1})):e.visibleTerms=e.visibleTerms.concat(e.termData.terms.filter((function(e){return JSON.stringify(Object.values(e)).toLowerCase().indexOf(a.toLowerCase())>-1})))};for(a.s();!(t=a.n()).done;)n()}catch(s){a.e(s)}finally{a.f()}this.msg=""},getTerms:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,p.methods.get("api/terms");case 3:if(a=t.sent.data.result,+a.count){for(n in a.result)a.result[+n].start_date=e._format(a.result[+n].start_date),a.result[+n].end_date=e._format(a.result[+n].end_date);e.termData.terms=a.result}else e.msg="No terms were found... That doesn't seem right. Please refresh and try again!",console.log(a),e.termData.isError=!0;t.next=12;break;case 7:t.prev=7,t.t0=t["catch"](0),console.log(t.t0),e.msg="An error occurred! Please refresh and try again.",e.termData.isError=!0;case 12:return t.prev=12,e.termData.isLoaded=!0,e.filterTerms(),t.finish(12);case 16:case"end":return t.stop()}}),t,null,[[0,7,12,16]])})))()},scrollListener:function(){this.popFilter=window.scrollY>100},showCreateModal:function(){this.addNewTerm=!0,this.enableMask=!0},showModalForTerm:function(e){var t=this.visibleTerms[e].end_date.split(" "),a=this.visibleTerms[e].start_date.split(" ");this.editTermStart=a[0],this.editTermStartTime=a[1],this.editTermEnd=t[0],this.editTermEndTime=t[1],this.modifyTermIndex=e,this.enableMask=!0},_format:function(e){var t=e.split("T");return"".concat(t[0]," ").concat(t[1].split(".")[0])}},created:function(){this.user.uniqname&&this.getTerms(),window.addEventListener("scroll",this.scrollListener)},watch:{user:function(){this.getTerms()}},destroyed:function(){window.removeEventListener("scroll",this.scrollListener)}},$n=Un,Jn=(a("bce9"),a("0091"),Object(f["a"])($n,In,Qn,!1,null,"9387bd42",null)),Bn=Jn.exports,Wn=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.msg,expression:"msg"}],attrs:{id:"message_container"}},[a("div",{staticClass:"message",attrs:{id:"message"}},[e._v(e._s(e.msg))])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.enableMask,expression:"enableMask"}],staticClass:"mask dim",attrs:{id:"mask"},on:{click:function(t){return e.closeOpenModal(!1)}}}),a("div",{attrs:{id:"content",role:"main"}},[a("div",{staticClass:"flex_row"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.popFilter,expression:"popFilter"}],staticClass:"box full_box",attrs:{id:"empty_filter_box"}}),a("div",{staticClass:"box full_box",class:e.popFilter?"popped_out":"",attrs:{id:"filter_container"}},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("h1",[e._v("MPrint Unit Administration")]),"admin"===e.user.role?a("div",[a("button",{staticClass:"ml-2 button button_large button_blue",on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.showCreateModal()}}},[a("i",{staticClass:"fas fa-plus mr-2"}),e._v("Add New Unit")])]):e._e()]),a("div",{staticClass:"flex_member end"},[a("div",[a("label",{attrs:{for:"filter_quick_search"}},[e._v("Quick Search:")]),a("v-select",{attrs:{id:"filter_quick_search",taggable:"",multiple:"",options:[],"dropdown-should-open":function(){return!1}},on:{input:function(t){return e.filterUnits()}},model:{value:e.quickSearch,callback:function(t){e.quickSearch=t},expression:"quickSearch"}})],1),a("p",{staticClass:"pl-2"},[e._v("Join filters with: "),a("label",{attrs:{for:"join_and"}},[e._v("And")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.filterJoinWith,expression:"filterJoinWith"}],attrs:{type:"radio",id:"join_and",name:"filter_join_with",value:"and",checked:"checked"},domProps:{checked:e._q(e.filterJoinWith,"and")},on:{change:[function(t){e.filterJoinWith="and"},function(t){return e.filterUnits()}]}}),e._v(" or "),a("label",{attrs:{for:"join_or"}},[e._v("Or")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.filterJoinWith,expression:"filterJoinWith"}],attrs:{type:"radio",id:"join_or",name:"filter_join_with",value:"or"},domProps:{checked:e._q(e.filterJoinWith,"or")},on:{change:[function(t){e.filterJoinWith="or"},function(t){return e.filterUnits()}]}})])])]),e.unitData.isLoaded?a("div",{staticClass:"flex_row center"},[a("div",{staticClass:"flex_member"},[a("p",[e._v("Showing "+e._s(e.visibleUnits.length)+" "+e._s(1===e.visibleUnits.length?"unit":"units"))])])]):e._e()])]),e.unitAdminData.isLoaded?e.unitAdminData.isLoaded&&e.unitAdminData.isError?[e._m(1)]:["admin"===e.user.role?[e._m(2),a("div",{staticClass:"full_width full_box box"},[e.unitAdminData.approved.length+e.unitAdminData.denied.length+e.unitAdminData.pending.length?[e.unitAdminData.collapsed?[a("div",{staticClass:"medium_text center"},[a("a",{attrs:{href:"",title:"Expand unit admin requests box"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.expandRequests()}}},[e._v("Expand Unit Admin Requests Table "),a("i",{staticClass:"fas fa-plus"})])])]:[a("div",{staticClass:"full_width"},[a("span",{staticClass:"float_right mr-2"},[a("i",{staticClass:"fas fa-window-minimize bold minimzer",attrs:{title:"Collapse unit admin requests box"},on:{click:function(t){return e.collapseRequests()}}})])]),a("div",{staticClass:"clearfix"}),a("table",{staticClass:"full_width"},[e._m(3),e._l(e.unitAdminData.pending,(function(t,n){return[a("tr",{key:"pending_row_"+n,staticClass:"unit_row",class:n%2===0?"even_row":""},[a("td",{staticClass:"pad-8"},[e._v(e._s(t.uniqname))]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.unit_name))]),a("td",{staticClass:"pad-8 bold"},[e._v("Pending")]),t.comment?a("td",{staticClass:"pad-8"},[e._v(e._s(t.comment))]):a("td",{staticClass:"pad-8"},[a("i",[e._v("NULL")])]),t.updated_by?a("td",{staticClass:"pad-8"},[e._v(e._s(t.updated_by))]):a("td",{staticClass:"pad-8"},[a("i",[e._v("NULL")])]),a("td",{staticClass:"pad-8"},[a("a",{attrs:{href:""},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.approveRequest(n,"pending")}}},[e._v("Approve")]),e._v(" or "),a("a",{staticClass:"red",attrs:{href:""},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.showDenyModal(n,"pending")}}},[e._v("Deny")])])])]})),e.unitAdminData.approved.length?a("tr",[e._m(4)]):e._e(),e._l(e.unitAdminData.approved,(function(t,n){return[a("tr",{key:"approved_row_"+n,staticClass:"unit_row",class:n%2===0?"even_row":""},[a("td",{staticClass:"pad-8"},[e._v(e._s(t.uniqname))]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.unit_name))]),a("td",{staticClass:"pad-8 bold green"},[e._v("Approved")]),t.comment?a("td",{staticClass:"pad-8"},[e._v(e._s(t.comment))]):a("td",{staticClass:"pad-8"},[a("i",[e._v("NULL")])]),t.updated_by?a("td",{staticClass:"pad-8"},[e._v(e._s(t.updated_by))]):a("td",{staticClass:"pad-8"},[a("i",[e._v("NULL")])]),a("td",{staticClass:"pad-8"},[a("a",{staticClass:"red",attrs:{href:""},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.showDenyModal(n,"approved")}}},[e._v("Revoke")])])])]})),e.unitAdminData.denied.length?a("tr",[e._m(5)]):e._e(),e._l(e.unitAdminData.denied,(function(t,n){return[a("tr",{key:"denied_row_"+n,staticClass:"unit_row",class:n%2===0?"even_row":""},[a("td",{staticClass:"pad-8"},[e._v(e._s(t.uniqname))]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.unit_name))]),a("td",{staticClass:"pad-8 bold red"},[e._v("Denied")]),t.comment?a("td",{staticClass:"pad-8"},[e._v(e._s(t.comment))]):a("td",{staticClass:"pad-8"},[a("i",[e._v("NULL")])]),t.updated_by?a("td",{staticClass:"pad-8"},[e._v(e._s(t.updated_by))]):a("td",{staticClass:"pad-8"},[a("i",[e._v("NULL")])]),a("td",{staticClass:"pad-8"},[a("a",{attrs:{href:""},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.approveRequest(n,"denied")}}},[e._v("Approve")])])])]}))],2)]]:[a("div",{staticClass:"medium_text center"},[e._v("There is no unit admin information to show!")])]],2)]:[e._m(6),a("div",{staticClass:"full_width full_box box"},[e.unitAdminData.approved.length+e.unitAdminData.denied.length+e.unitAdminData.pending.length?[a("table",{staticClass:"full_width"},[e._m(7),e._l(e.unitAdminData.pending,(function(t,n){return[a("tr",{key:"pending_row_"+n,staticClass:"unit_row",class:n%2===0?"even_row":""},[a("td",{staticClass:"pad-8"},[e._v(e._s(t.unit_name))]),a("td",{staticClass:"pad-8 bold"},[e._v("Pending")]),t.comment?a("td",{staticClass:"pad-8"},[e._v(e._s(t.comment))]):a("td",{staticClass:"pad-8"},[a("i",[e._v("NULL")])]),t.updated_by?a("td",{staticClass:"pad-8"},[e._v(e._s(t.updated_by))]):a("td",{staticClass:"pad-8"},[a("i",[e._v("NULL")])]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.formatted_created_on))])])]})),e.unitAdminData.approved.length?a("tr",[e._m(8)]):e._e(),e._l(e.unitAdminData.approved,(function(t,n){return[a("tr",{key:"approved_row_"+n,staticClass:"unit_row",class:n%2===0?"even_row":""},[a("td",{staticClass:"pad-8"},[e._v(e._s(t.unit_name))]),a("td",{staticClass:"pad-8 bold green"},[e._v("Approved")]),t.comment?a("td",{staticClass:"pad-8"},[e._v(e._s(t.comment))]):a("td",{staticClass:"pad-8"},[a("i",[e._v("NULL")])]),t.updated_by?a("td",{staticClass:"pad-8"},[e._v(e._s(t.updated_by))]):a("td",{staticClass:"pad-8"},[a("i",[e._v("NULL")])]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.formatted_created_on))])])]})),e.unitAdminData.denied.length?a("tr",[e._m(9)]):e._e(),e._l(e.unitAdminData.denied,(function(t,n){return[a("tr",{key:"denied_row_"+n,staticClass:"unit_row",class:n%2===0?"even_row":""},[a("td",{staticClass:"pad-8"},[e._v(e._s(t.unit_name))]),a("td",{staticClass:"pad-8 bold red"},[e._v("Denied")]),t.comment?a("td",{staticClass:"pad-8"},[e._v(e._s(t.comment))]):a("td",{staticClass:"pad-8"},[a("i",[e._v("NULL")])]),t.updated_by?a("td",{staticClass:"pad-8"},[e._v(e._s(t.updated_by))]):a("td",{staticClass:"pad-8"},[a("i",[e._v("NULL")])]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.formatted_created_on))])])]}))],2)]:[a("div",{staticClass:"medium_text center"},[e._v("There is no unit admin information to show!")])]],2)]]:[e._m(0)],a("hr",{staticClass:"main_divider"}),e.unitData.isLoaded?e.unitData.isLoaded&&e.unitData.isError?[e._m(11)]:[e._m(12),a("div",{staticClass:"flex_row"},[a("div",{staticClass:"full_width full_box box"},[e.visibleUnits.length?[a("table",{staticClass:"full_width break_word"},[e._m(13),e._l(e.visibleUnits,(function(t,n){return[a("tr",{key:"unit_row_"+n,staticClass:"unit_row",class:n%2===0?"even_row":""},[a("td",{staticClass:"pad-8 no_break"},[e._v(e._s(t.id))]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.unit))]),t.sub_unit?a("td",{staticClass:"pad-8"},[e._v(e._s(t.sub_unit))]):a("td",{staticClass:"pad-8"},[a("i",[e._v("NULL")])]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.enrolled_service_name))]),a("td",{staticClass:"pad-8"},[e._v(e._s(t.unit_admin))]),"admin"===e.user.role?a("td",{staticClass:"pad-8"},[a("a",{attrs:{href:""},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.showModalForUnit(n)}}},[e._v("Modify")]),e._v(" or "),a("a",{attrs:{href:""},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.deleteUnit(n)}}},[e._v("Delete")])]):e.myUnits.includes(t.id)?a("td",{staticClass:"pad-8"},[a("a",{attrs:{href:""},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.showModalForUnit(n)}}},[e._v("Modify")])]):a("td",{staticClass:"pad-8"},[a("a",{attrs:{href:""},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.showRequestModal(n)}}},[e._v("Request Unit Admin")])])]),a("tr",{key:"unit_group_row_"+n,staticClass:"unit_group_row",class:n%2===0?"even_row":""},[a("td"),t.unit_groups.length?a("td",{staticClass:"pad-8",attrs:{colspan:"5"},domProps:{innerHTML:e._s("Unit membership groups: "+t.unit_groups.join(" <span class='ml-2 mr-2'>&#8226;</span> "))}}):a("td",{staticClass:"pad-8",attrs:{colspan:"5"}},[e._v("There are no groups associated with this Unit!")])])]}))],2)]:[a("div",{staticClass:"medium_text center"},[e._v("There are no units to show!")])]],2)])]:[e._m(10)]],2),null!==e.requestToDeny?a("div",{staticClass:"modal",attrs:{id:"deny_request_modal"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeOpenModal(!1)}}},[e._m(14),a("div",{staticClass:"modal_content"},[a("div",{staticClass:"medium_text"},[e._v("User "),a("span",{staticClass:"bold"},[e._v(e._s(e.requestToDeny.uniqname))]),e._v(" is requesting to be a unit admin for unit "),a("span",{staticClass:"bold"},[e._v(e._s(e.requestToDeny.unit_name))])]),a("p",{staticClass:"pt-12"},[a("label",{attrs:{for:"deny_reason"}},[e._v("If desired, please specify a reason for denying this request:")]),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.requestComment,expression:"requestComment"}],attrs:{id:"deny_reason"},domProps:{value:e.requestComment},on:{input:function(t){t.target.composing||(e.requestComment=t.target.value)}}})])]),a("div",{staticClass:"modal_footer"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("div",{staticClass:"button",on:{click:function(t){return e.closeOpenModal(!1)}}},[e._v("Cancel")])]),a("div",{staticClass:"flex_member end"},[a("div",{staticClass:"button button_red",class:e.disableSubmit?"disabled":"",on:{click:function(t){return e.closeOpenModal(!0)}}},[a("i",{staticClass:"fas fa-times-circle mr-2"}),e._v("Deny Request")])])])])]):e._e(),null!==e.requestAdminForUnit?a("div",{staticClass:"modal",attrs:{id:"request_admin_modal"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeOpenModal(!1)}}},[e._m(15),a("div",{staticClass:"modal_content"},[a("h2",[e._v("Requesting Admin for Unit: "+e._s(e.requestAdminForUnit.display_name))]),a("p",{staticClass:"pt-12"},[e._v('Unit Administrators are people in a particular university department that have elevated access to view and manage their department\'s enrollment and print queues in the MPrint environment. If you believe you should have this level of elevated access, please hit the "Submit Request" button below. Someone from the MPrint team will review your request and either approve or deny it as soon as they can.')]),a("p",{staticClass:"pb-12"},[a("label",{attrs:{for:"request_comment"}},[e._v("Comments to attach to your request:")]),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.requestComment,expression:"requestComment"}],attrs:{id:"request_comment"},domProps:{value:e.requestComment},on:{input:function(t){t.target.composing||(e.requestComment=t.target.value)}}})])]),a("div",{staticClass:"modal_footer"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("div",{staticClass:"button",on:{click:function(t){return e.closeOpenModal(!1)}}},[e._v("Cancel")])]),a("div",{staticClass:"flex_member end"},[a("div",{staticClass:"button button_blue",class:e.disableSubmit?"disabled":"",on:{click:function(t){return e.closeOpenModal(!0)}}},[a("i",{staticClass:"fas fa-paper-plane mr-2"}),e._v("Submit Request")])])])])]):e._e(),e.addNewUnit&&"admin"===e.user.role?a("div",{staticClass:"modal",attrs:{id:"add_unit_modal"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeOpenModal(!1)}}},[e._m(16),a("div",{staticClass:"modal_content_no_overflow"},[a("h2",{staticClass:"pb-12"},[e._v("Add a new unit to the MPrint Environment")]),a("div",{staticClass:"pb-12"},[a("label",{staticClass:"pr-2",attrs:{for:"new_unit_name"}},[e._v("Unit Name:")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.newUnitName,expression:"newUnitName"}],attrs:{type:"text",id:"new_unit_name"},domProps:{value:e.newUnitName},on:{input:function(t){t.target.composing||(e.newUnitName=t.target.value)}}})]),a("div",{staticClass:"pb-12"},[a("label",{staticClass:"pr-2",attrs:{for:"new_unit_subunit"}},[e._v("Sub Unit:")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.newUnitSubUnit,expression:"newUnitSubUnit"}],attrs:{type:"text",id:"new_unit_subunit"},domProps:{value:e.newUnitSubUnit},on:{input:function(t){t.target.composing||(e.newUnitSubUnit=t.target.value)}}})]),a("div",{staticClass:"pb-12"},[a("label",{staticClass:"pr-2",attrs:{for:"new_unit_deptid"}},[e._v("UM Department ID:")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.newUnitDeptId,expression:"newUnitDeptId"}],attrs:{type:"text",id:"new_unit_deptid"},domProps:{value:e.newUnitDeptId},on:{input:function(t){t.target.composing||(e.newUnitDeptId=t.target.value)}}})]),a("div",{staticClass:"pb-12"},[a("label",{attrs:{for:"new_unit_enrollment"}},[e._v("Unit Service Enrollment:")]),a("v-select",{attrs:{id:"new_unit_enrollment",options:Object.values(e.services),label:"name",reduce:function(e){return e.id}},model:{value:e.newUnitEnrolledService,callback:function(t){e.newUnitEnrolledService=t},expression:"newUnitEnrolledService"}})],1),a("div",{staticClass:"pb-12"},[a("p",[a("label",[e._v("Unit Admin Entity:")]),a("label",{staticClass:"pl-2 pr-3",attrs:{for:"new_unit_admin_entity_umod"}},[e._v("MCommunity Group"),a("input",{directives:[{name:"model",rawName:"v-model",value:e.newUnitAdminEntity,expression:"newUnitAdminEntity"}],staticClass:"ml-1",staticStyle:{"vertical-align":"middle"},attrs:{type:"radio",id:"new_unit_admin_entity_umod",value:"umod"},domProps:{checked:e._q(e.newUnitAdminEntity,"umod")},on:{change:function(t){e.newUnitAdminEntity="umod"}}})]),a("label",{staticClass:"pl-3",attrs:{for:"new_unit_admin_entity_uniq"}},[e._v("Uniqname"),a("input",{directives:[{name:"model",rawName:"v-model",value:e.newUnitAdminEntity,expression:"newUnitAdminEntity"}],staticClass:"ml-1",staticStyle:{"vertical-align":"middle"},attrs:{type:"radio",id:"new_unit_admin_entity_uniq",value:"uniqname"},domProps:{checked:e._q(e.newUnitAdminEntity,"uniqname")},on:{change:function(t){e.newUnitAdminEntity="uniqname"}}})])])]),a("div",{staticClass:"pb-12"},[a("label",{staticClass:"pr-2",attrs:{for:"new_unit_admin"}},[e._v("Unit Admin:")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.newUnitAdmin,expression:"newUnitAdmin"}],attrs:{type:"text",id:"new_unit_admin"},domProps:{value:e.newUnitAdmin},on:{input:function(t){t.target.composing||(e.newUnitAdmin=t.target.value)}}})]),a("div",{staticClass:"pb-12"},[a("label",{attrs:{for:"new_unit_groups"}},[e._v("Unit Membership Groups:")]),a("v-select",{attrs:{id:"new_unit_groups",multiple:"",taggable:"",options:e.groupData.groups},model:{value:e.newUnitGroups,callback:function(t){e.newUnitGroups=t},expression:"newUnitGroups"}})],1)]),a("div",{staticClass:"modal_footer"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("div",{staticClass:"button",on:{click:function(t){return e.closeOpenModal(!1)}}},[e._v("Cancel")])]),a("div",{staticClass:"flex_member end"},[a("div",{staticClass:"button button_blue",class:e.disableSubmit?"disabled":"",on:{click:function(t){return e.closeOpenModal(!0)}}},[a("i",{staticClass:"fas fa-paper-plane mr-2"}),e._v("Submit New Unit")])])])])]):e._e(),null!==e.modifyUnitIndex?a("div",{staticClass:"modal",attrs:{id:"modify_unit_modal"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeOpenModal(!1)}}},[e._m(17),a("div",{staticClass:"modal_content_no_overflow"},[a("h2",{staticClass:"pb-12"},[e._v("Modifying Unit: "+e._s(e.visibleUnits[e.modifyUnitIndex].display_name))]),"admin"===e.user.role?a("div",{staticClass:"pb-12"},[a("label",{attrs:{for:"modify_unit_enrollment"}},[e._v("Unit Service Enrollment:")]),a("v-select",{attrs:{id:"modify_unit_enrollment",options:Object.values(e.services),label:"name",reduce:function(e){return e.id}},model:{value:e.modifyUnitEnrollment,callback:function(t){e.modifyUnitEnrollment=t},expression:"modifyUnitEnrollment"}})],1):e._e(),a("div",{staticClass:"pb-12"},[a("p",[a("label",[e._v("Unit Admin Entity:")]),"umod"===e.visibleUnits[e.modifyUnitIndex].admin_entity?[a("label",{staticClass:"pl-2 pr-3",attrs:{for:"modify_unit_admin_entity_umod"}},[e._v("MCommunity Group"),a("input",{directives:[{name:"model",rawName:"v-model",value:e.modifyUnitAdminEntity,expression:"modifyUnitAdminEntity"}],staticClass:"ml-1",staticStyle:{"vertical-align":"middle"},attrs:{type:"radio",id:"modify_unit_admin_entity_umod",value:"umod",checked:"checked"},domProps:{checked:e._q(e.modifyUnitAdminEntity,"umod")},on:{change:function(t){e.modifyUnitAdminEntity="umod"}}})]),a("label",{staticClass:"pl-3",attrs:{for:"modify_unit_admin_entity_uniq"}},[e._v("Uniqname"),a("input",{directives:[{name:"model",rawName:"v-model",value:e.modifyUnitAdminEntity,expression:"modifyUnitAdminEntity"}],staticClass:"ml-1",staticStyle:{"vertical-align":"middle"},attrs:{type:"radio",id:"modify_unit_admin_entity_uniq",value:"uniqname"},domProps:{checked:e._q(e.modifyUnitAdminEntity,"uniqname")},on:{change:function(t){e.modifyUnitAdminEntity="uniqname"}}})])]:[a("label",{staticClass:"pl-2 pr-3",attrs:{for:"modify_unit_admin_entity_umod"}},[e._v("MCommunity Group"),a("input",{directives:[{name:"model",rawName:"v-model",value:e.modifyUnitAdminEntity,expression:"modifyUnitAdminEntity"}],staticClass:"ml-1",staticStyle:{"vertical-align":"middle"},attrs:{type:"radio",id:"modify_unit_admin_entity_umod",value:"umod"},domProps:{checked:e._q(e.modifyUnitAdminEntity,"umod")},on:{change:function(t){e.modifyUnitAdminEntity="umod"}}})]),a("label",{staticClass:"pl-3",attrs:{for:"modify_unit_admin_entity_uniq"}},[e._v("Uniqname"),a("input",{directives:[{name:"model",rawName:"v-model",value:e.modifyUnitAdminEntity,expression:"modifyUnitAdminEntity"}],staticClass:"ml-1",staticStyle:{"vertical-align":"middle"},attrs:{type:"radio",id:"modify_unit_admin_entity_uniq",value:"uniqname",checked:"checked"},domProps:{checked:e._q(e.modifyUnitAdminEntity,"uniqname")},on:{change:function(t){e.modifyUnitAdminEntity="uniqname"}}})])]],2)]),a("div",{staticClass:"pb-12"},[a("label",{staticClass:"pr-2",attrs:{for:"modify_unit_admin"}},[e._v("Unit Admin:")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.modifyUnitAdmin,expression:"modifyUnitAdmin"}],attrs:{type:"text",id:"modify_unit_admin"},domProps:{value:e.modifyUnitAdmin},on:{input:function(t){t.target.composing||(e.modifyUnitAdmin=t.target.value)}}})]),a("div",{staticClass:"pb-12"},[a("label",{attrs:{for:"modify_unit_groups"}},[e._v("Unit Membership Groups:")]),a("v-select",{attrs:{id:"modify_unit_groups",multiple:"",taggable:"",options:e.groupData.groups},model:{value:e.modifyUnitGroups,callback:function(t){e.modifyUnitGroups=t},expression:"modifyUnitGroups"}})],1)]),a("div",{staticClass:"modal_footer"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("div",{staticClass:"button",on:{click:function(t){return e.closeOpenModal(!1)}}},[e._v("Cancel")])]),a("div",{staticClass:"flex_member end"},[a("div",{staticClass:"button button_blue",class:e.disableSubmit?"disabled":"",on:{click:function(t){return e.closeOpenModal(!0)}}},[a("i",{staticClass:"fas fa-paper-plane mr-2"}),e._v("Save Changes")])])])])]):e._e()])},Hn=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member full_width medium_text center"},[e._v("Loading Unit Admin Requests... "),n("img",{attrs:{src:a("d9b6"),alt:"loading unit admin requests"}})])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member full_width medium_text center"},[e._v("Failed to load unit admin requests! Please refresh and try again.")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member full_width"},[a("h2",[e._v("Unit Admin Requests")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"bold pad-8"},[e._v("Requested By")]),a("td",{staticClass:"bold pad-8"},[e._v("Unit")]),a("td",{staticClass:"bold pad-8"},[e._v("Request Status")]),a("td",{staticClass:"bold pad-8"},[e._v("Reason")]),a("td",{staticClass:"bold pad-8"},[e._v("Updated By")]),a("td",{staticClass:"pad-8"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",{attrs:{colspan:"6"}},[a("hr",{staticClass:"box_divider"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",{attrs:{colspan:"6"}},[a("hr",{staticClass:"box_divider"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member full_width"},[a("h2",[e._v("My Unit Admin Requests")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"bold pad-8"},[e._v("Unit")]),a("td",{staticClass:"bold pad-8"},[e._v("Request Status")]),a("td",{staticClass:"bold pad-8"},[e._v("Reason")]),a("td",{staticClass:"bold pad-8"},[e._v("Updated By")]),a("td",{staticClass:"bold pad-8"},[e._v("Requested On")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",{attrs:{colspan:"6"}},[a("hr",{staticClass:"box_divider"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",{attrs:{colspan:"6"}},[a("hr",{staticClass:"box_divider"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"flex_row"},[n("div",{staticClass:"flex_member full_width medium_text center"},[e._v("Loading Units... "),n("img",{attrs:{src:a("d9b6"),alt:"loading units"}})])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member full_width medium_text center"},[e._v("Failed to load units! Please refresh and try again.")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member full_width"},[a("h2",[e._v("MPrint Units")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"bold pad-8"},[e._v("ID")]),a("td",{staticClass:"bold pad-8"},[e._v("Unit")]),a("td",{staticClass:"bold pad-8"},[e._v("Sub Unit")]),a("td",{staticClass:"bold pad-8"},[e._v("Enrolled Service")]),a("td",{staticClass:"bold pad-8"},[e._v("Unit Admin")]),a("td",{staticClass:"bold pad-8"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Deny Unit Admin Request")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Request Unit Admin")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Add New Unit")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Modify Unit")])])}],zn={name:"unitAdmin",data:function(){return{addNewUnit:!1,disableSubmit:!1,enableMask:!1,filterJoinWith:"and",groupData:{isError:!1,isLoaded:!1,groups:[]},modifyUnitAdmin:null,modifyUnitAdminEntity:null,modifyUnitEnrollment:null,modifyUnitGroups:[],modifyUnitIndex:null,msg:null,myUnits:[],newUnitAdmin:null,newUnitAdminEntity:null,newUnitDeptId:null,newUnitEnrolledService:null,newUnitGroups:[],newUnitName:null,newUnitSubUnit:null,popFilter:!1,quickSearch:[],requestAdminForUnit:null,requestComment:null,requestToDeny:null,services:[],unitAdminData:{isError:!1,isLoaded:!1,approved:[],collapsed:!1,denied:[],pending:[]},unitData:{isError:!1,isLoaded:!1,units:[]},visibleUnits:[]}},props:{user:{type:Object,default:function(){return this.$store.getters.getUser}}},methods:{approveRequest:function(e,t){var a=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var s,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:s=a.unitAdminData[t][e],r=a,r.msg="Approving request...",p.methods.put("api/unitadmins/".concat(s.id),{is_approved:1,is_denied:0,comment:null,updated_by:r.user.uniqname}).then((function(a){+a.data.result.count?(r.msg="Request approved!",r.unitAdminData.approved.push(s),r.$delete(r.unitAdminData[t],e)):(console.log(a.data.result),r.msg="Something went wrong... please refresh and try again.")})).catch((function(e){console.log(e),r.msg="An error occurred! Please refresh and try again."})).finally((function(){window.setTimeout((function(){r.msg=null}),4e3)}));case 4:case"end":return n.stop()}}),n)})))()},closeOpenModal:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,s,r,c,l,u,d,_,m,f,h,g,v;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!e||!t.disableSubmit){a.next=2;break}return a.abrupt("return",!1);case 2:if(!e){a.next=51;break}if(t.disableSubmit=!0,n=t,!t.requestAdminForUnit){a.next=11;break}s=t.requestAdminForUnit,n.msg="Submitting Unit Admin request...",p.methods.post("api/unitadmins",{uniqname:n.user.uniqname,unit_id:s.id,comment:n.requestComment?n.requestComment:null}).then((function(e){+e.data.result.count?(n.unitAdminData.pending.push({unit_name:s.display_name,comment:n.requestComment?n.requestComment:null,updated_by:null,is_approved:0,is_denied:0,formatted_created_on:Object(Q["a"])(Date.now(),"yyyy-LL-dd HH:mm:ss")}),n.msg="Successfully submitted request!"):(console.log(e.data.result),n.msg="Something went wrong... please refresh and try again.")})).catch((function(e){console.log(e),n.msg="An error occurred! Please refresh and try again."})).finally((function(){n.disableSubmit=!1,n.requestComment=null,n.requestAdminForUnit=null,n.enableMask=!1,window.setTimeout((function(){n.msg=null}),4e3)})),a.next=49;break;case 11:if(!t.requestToDeny){a.next=17;break}r=t.requestToDeny,n.msg="Denying request...",p.methods.put("api/unitadmins/".concat(r.id),{is_approved:0,is_denied:1,comment:n.requestComment?n.requestComment:null,updated_by:n.user.uniqname}).then((function(e){if(+e.data.result.count){n.msg="Request denied!";var t=0,a="pending";for(var s in r.is_approved&&(a="approved"),n.unitAdminData[a])n.unitAdminData[a][+s].id===r.id&&(t=+s);n.$delete(n.unitAdminData[a],t),n.unitAdminData.denied.push(r)}else console.log(e.data.result),n.msg="Something went wrong... please refresh and try again."})).catch((function(e){console.log(e),n.msg="An error occurred! Please refresh and try again."})).finally((function(){n.disableSubmit=!1,n.requestComment=null,n.requestToDeny=null,n.enableMask=!1,window.setTimeout((function(){n.msg=null}),4e3)})),a.next=49;break;case 17:if(!t.addNewUnit){a.next=23;break}return n.msg="Adding new unit...",a.next=21,p.methods.post("api/units",{unit:n.newUnitName,sub_unit:n.newUnitSubUnit,um_dept_id:n.newUnitDeptId,admin_entity:n.newUnitAdminEntity,unit_admin:n.newUnitAdmin}).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var a,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!+t.data.result.count){e.next=10;break}if(a=t.data.result.result,s={},!n.newUnitGroups.length){e.next=6;break}return e.next=6,Promise.all(n.newUnitGroups.map((function(e){return p.methods.post("api/unitgroups",{unit_id:a,group:e})}))).then((function(e){for(var t in n.newUnitGroups)+e[+t].data.result.count?(console.log("added ".concat(n.newUnitGroups[+t])),s[n.newUnitGroups[+t]]=e[+t].data.result.result):console.log(e[+t].data.result)})).catch((function(e){console.log(e),n.msg="An error occurred! Please refresh and try again."}));case 6:return e.next=8,p.methods.post("api/unitenrollments",{unit_id:a,service_id:n.newUnitEnrolledService}).then((function(e){+e.data.result.count?(n.unitData.units.push({id:a,unit:n.newUnitName,sub_unit:n.newUnitSubUnit,display_name:n.newUnitSubUnit?"".concat(n.newUnitName," - ").concat(n.newUnitSubUnit):n.newUnitName,enrolled_service:n.newUnitEnrolledService,enrolled_service_name:n.services[n.newUnitEnrolledService].name,service_enrollment_id:e.data.result.result,unit_groups:n.newUnitGroups,unit_group_ids:s}),n.$nextTick((function(){n.filterUnits()}))):(console.log(e.data.result),n.msg="Something went wrong... please refresh and try again.")})).catch((function(e){console.log(e),n.msg="An error occurred! Please refresh and try again."}));case 8:e.next=12;break;case 10:n.msg="Something went wrong... please refresh and try again.",console.log(t.data.result);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){n.msg="An error occurred! Please refresh and try again.",console.log(e)})).finally((function(){n.msg.startsWith("Adding")?n.msg=null:window.setTimeout((function(){n.msg=null}),4e3),n.addNewUnit=!1,n.newUnitAdmin=null,n.newUnitAdminEntity=null,n.newUnitDeptId=null,n.newUnitName=null,n.newUnitSubUnit=null,n.newUnitGroups=[],n.newUnitEnrolledService=null,n.enableMask=null,n.disableSubmit=!1}));case 21:a.next=49;break;case 23:if(null===t.modifyUnitIndex){a.next=49;break}if(n.msg="Modifying unit...",c=t.visibleUnits[t.modifyUnitIndex],null===n.modifyUnitAdmin){a.next=29;break}return a.next=29,p.methods.put("api/units/".concat(c.id),{admin_entity:n.modifyUnitAdminEntity,unit_admin:n.modifyUnitAdmin}).then((function(e){+e.data.result.count?(n.$set(c,"admin_entity",n.modifyUnitAdminEntity),n.$set(c,"unit_admin",n.modifyUnitAdmin)):(n.msg="".concat(e.data.result.status_message),window.setTimeout((function(){n.msg=null}),4e3))})).catch((function(e){n.msg=e,window.setTimeout((function(){n.msg=null}),4e3)})).finally((function(){n.modifyUnitAdmin=null,n.modifyUnitAdminEntity=null}));case 29:l=[],u=[],d=Object(i["a"])(c.unit_groups);try{for(d.s();!(_=d.n()).done;)m=_.value,t.modifyUnitGroups.includes(m)||u.push(m)}catch(b){d.e(b)}finally{d.f()}f=Object(i["a"])(t.modifyUnitGroups);try{for(f.s();!(h=f.n()).done;)g=h.value,c.unit_groups.includes(g)||l.push(g)}catch(b){f.e(b)}finally{f.f()}return console.log(l),console.log(u),a.next=39,Promise.all(l.map((function(e){return p.methods.post("api/unitgroups",{unit_id:c.id,group:e})}))).then((function(e){for(var t in l)+e[+t].data.result.count?console.log("added ".concat(l[+t])):console.log(e[+t].data.result)})).catch((function(e){console.log(e),n.msg="An error occurred! Please refresh and try again.",window.setTimeout((function(){n.msg=null}),4e3)}));case 39:return a.next=41,Promise.all(u.map((function(e){return p.methods.delete("api/unitgroups/".concat(c.unit_group_ids[e]))}))).then((function(e){for(var t in u)+e[+t].data.result.count?console.log("removed ".concat(u[+t])):console.log(e[+t].data.result)})).catch((function(e){console.log(e),n.msg="An error occurred! Please refresh and try again.",window.setTimeout((function(){n.msg=null}),4e3)}));case 41:n.$set(n.visibleUnits[n.modifyUnitIndex],"unit_groups",n.modifyUnitGroups),n.modifyUnitEnrollment!==c.enrolled_service&&(v=n.modifyUnitEnrollment,console.log("".concat(v," !== ").concat(c.enrolled_service)),null!==c.service_enrollment_id?p.methods.put("api/unitenrollments/".concat(c.service_enrollment_id),{service_id:v}).then((function(e){+e.data.result.count?(console.log("changed enrollment to ".concat(v)),n.$set(c,"enrolled_service",v),n.$set(c,"enrolled_service_name",n.services[v].name)):(console.log(e.data.result),n.msg="Something went wrong... please refresh and try again.")})).catch((function(e){console.log(e),n.msg="An error occurred! Please refresh and try again."})).finally((function(){window.setTimeout((function(){n.msg=null}),4e3)})):p.methods.post("api/unitenrollments",{unit_id:c.id,service_id:v}).then((function(e){+e.data.result.count?(console.log("add new enrollment: ".concat(v)),n.$set(c,"enrolled_service",v),n.$set(c,"enrolled_service_name",n.services[v].name)):(console.log(e.data.result),n.msg="Something went wrong... please refresh and try again.")})).catch((function(e){console.log(e),n.msg="An error occurred! Please refresh and try again."})).finally((function(){window.setTimeout((function(){n.msg=null}),4e3)}))),"Modifying unit..."===n.msg&&(n.msg=null),t.modifyUnitEnrollment=null,t.modifyUnitGroups=[],t.modifyUnitIndex=null,t.enableMask=null,t.disableSubmit=!1;case 49:a.next=59;break;case 51:t.addNewUnit=!1,t.requestComment=null,t.requestAdminForUnit=null,t.requestToDeny=null,t.modifyUnitEnrollment=null,t.modifyUnitGroups=[],t.modifyUnitIndex=null,t.enableMask=!1;case 59:case"end":return a.stop()}}),a)})))()},collapseRequests:function(){this.unitAdminData.collapsed=!0},deleteUnit:function(e){var t=this.visibleUnits[e],a=window.confirm("Are you sure you want to delete unit ".concat(t.display_name," from MPrint?"));if(a){this.msg="Deleting unit from MPrint...";var n=this;t.service_enrollment_id?p.methods.delete("api/unitenrollments/".concat(t.service_enrollment_id)).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(a){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!+a.data.result.count){e.next=6;break}return s=Object.values(t.unit_group_ids),e.next=4,Promise.all(s.map((function(e){return p.methods.delete("api/unitgroups/".concat(e))}))).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(a){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(r in s)+a[+r].data.result.count?console.log("removed ".concat(Object.keys(t.unit_group_ids)[+r])):console.log(a[+r].data.result);return e.next=3,p.methods.delete("api/units/".concat(t.id)).then((function(e){if(+e.data.result.count){var a=0;for(var s in n.unitData.units)n.unitData.units[+s].id===t.id&&(a=+s);n.$delete(n.unitData.units,+a),n.$nextTick((function(){n.filterUnits()}))}else console.log(e.data.result),n.msg="Something went wrong... please refresh and try again."})).catch((function(e){console.log(e),n.msg="An error occurred! Please refresh and try again."}));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.log(e),n.msg="An error occurred! Please refresh and try again."}));case 4:e.next=8;break;case 6:console.log(a.data.result),n.msg="Something went wrong... please refresh and try again.";case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.log(e),n.msg="An error occurred! Please refresh and try again."})).finally((function(){n.msg.startsWith("Deleting")?n.msg=null:window.setTimeout((function(){n.msg=null}),4e3)})):p.methods.delete("api/units/".concat(t.id)).then((function(e){if(+e.data.result.count){var a=0;for(var s in n.unitData.units)n.unitData.units[+s].id===t.id&&(a=+s);n.$delete(n.unitData.units,+a),n.$nextTick((function(){n.filterUnits()}))}else console.log(e.data.result),n.msg="Something went wrong... please refresh and try again."})).catch((function(e){console.log(e),n.msg="An error occurred! Please refresh and try again."})).finally((function(){n.msg.startsWith("Deleting")?n.msg=null:window.setTimeout((function(){n.msg=null}),4e3)}))}},expandRequests:function(){this.unitAdminData.collapsed=!1},filterUnits:function(){var e=this;this.msg="Filtering units...","and"!==this.filterJoinWith&&this.quickSearch&&this.quickSearch.length?this.visibleUnits=[]:this.visibleUnits=this.unitData.units;var t,a=Object(i["a"])(this.quickSearch);try{var n=function(){var a=t.value;"and"===e.filterJoinWith?e.visibleUnits=e.visibleUnits.filter((function(e){return JSON.stringify(Object.values(e)).toLowerCase().indexOf(a.toLowerCase())>-1})):e.visibleUnits=e.visibleUnits.concat(e.unitData.units.filter((function(e){return JSON.stringify(Object.values(e)).toLowerCase().indexOf(a.toLowerCase())>-1})))};for(a.s();!(t=a.n()).done;)n()}catch(s){a.e(s)}finally{a.f()}this.msg=""},getGroupData:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,p.methods.get("api/groups").then((function(e){+e.data.result.count?a.groupData.groups=e.data.result.result.filter((function(e){return!["!!All Users!!","AlumniAA","FacultyAA","MiPrint.All","miworkspace.print.users","RegularStaffAA","Retiree","SponsoredAffiliateAA","TemporaryStaffAA"].includes(e)})):(a.msg="Something went wrong. Please refresh the page and try again.",console.log(e.data.result),a.groupData.isError=!0)})).catch((function(e){console.log(e),a.msg="An error occurred! Please refresh the page and try again.",a.groupData.isError=!0})).finally((function(){window.setTimeout((function(){a.msg=null}),4e3),a.groupData.isLoaded=!0}));case 2:case"end":return t.stop()}}),t)})))()},getUnitAdminData:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,n="admin"!==e.user.role?"?uniqname=".concat(e.user.uniqname):"",p.methods.get("api/unitadmins".concat(n)).then((function(e){e.data.result.result.map((function(e){return e.unit_name=a.unitData.units.filter((function(t){return t.id===e.unit_id}))[0].display_name})),e.data.result.result.map((function(e){return e.formatted_created_on=Object(Q["a"])(Object(U["a"])(e.created_on.split(".")[0].replace("T"," ")),"yyyy-LL-dd HH:mm:ss")}));var t=e.data.result.result.filter((function(e){return 1===+e.is_approved}));a.$set(a.unitAdminData,"approved",t),a.$set(a.unitAdminData,"denied",e.data.result.result.filter((function(e){return 1===+e.is_denied}))),a.$set(a.unitAdminData,"pending",e.data.result.result.filter((function(e){return 0===+e.is_approved&&0===+e.is_denied}))),"admin"!==a.user.role&&t.map((function(e){return a.myUnits.push(e.unit_id)}))})).catch((function(e){console.log(e),a.msg="An error occurred! Please refresh the page and try again.",window.setTimeout((function(){a.msg=null}),4e3),a.unitAdminData.isError=!0})).finally((function(){a.unitAdminData.isLoaded=!0}));case 3:case"end":return t.stop()}}),t)})))()},getUnits:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e,t.next=3,p.methods.get("api/services").then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!+t.data.result.count){e.next=6;break}return t.data.result.result.map((function(e){return a.services[e.id]=e})),e.next=4,Promise.all([p.methods.get("api/units"),p.methods.get("api/unitenrollments"),p.methods.get("api/unitgroups")]).then((function(e){var t=[];if(+e[0].data.result.count&&+e[1].data.result.count&&+e[2].data.result.count){var n,s=Object(i["a"])(e[0].data.result.result);try{var r=function(){var s=n.value;if(s.unit){var r=e[1].data.result.result.filter((function(e){return e.unit_id===s.id&&!e["left_service"]})),i=e[2].data.result.result.filter((function(e){return e.unit_id===s.id})).map((function(e){return e.group_name})),o={};e[2].data.result.result.filter((function(e){return e.unit_id===s.id})).map((function(e){return o[e.group_name]=e.id})),t.push({id:s.id,unit:s.unit,sub_unit:s.sub_unit,display_name:s.sub_unit?"".concat(s.unit," - ").concat(s.sub_unit):s.unit,enrolled_service:r.length?r[0].service_id:null,enrolled_service_name:r.length?a.services[r[0].service_id].name:"Not Enrolled",service_enrollment_id:r.length?r[0].id:null,admin_entity:s.admin_entity,unit_admin:s.unit_admin,unit_groups:i,unit_group_ids:o})}};for(s.s();!(n=s.n()).done;)r()}catch(o){s.e(o)}finally{s.f()}a.unitData.units=t,a.getUnitAdminData()}else console.log(e[0].data.result),console.log(e[1].data.result),console.log(e[2].data.result),a.msg="Something went wrong... please refresh and try again.",a.unitData.isError=!0})).catch((function(e){console.log(e),a.msg="An error occurred! Please refresh and try again.",a.unitData.isError=!0}));case 4:e.next=9;break;case 6:console.log(t.data.result),a.msg="Something went wrong... please refresh and try again.",a.unitData.isError=!0;case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.log(e),a.msg="An error occurred! Please refresh and try again.",a.unitData.isError=!0})).finally((function(){a.unitData.isLoaded=!0,a.filterUnits()}));case 3:case"end":return t.stop()}}),t)})))()},scrollListener:function(){this.popFilter=window.scrollY>100},showCreateModal:function(){this.addNewUnit=!0,this.enableMask=!0},showDenyModal:function(e,t){this.requestToDeny=this.unitAdminData[t][e],this.enableMask=!0},showModalForUnit:function(e){this.modifyUnitEnrollment=this.visibleUnits[e].enrolled_service,this.modifyUnitGroups=this.visibleUnits[e].unit_groups,this.modifyUnitAdmin=this.visibleUnits[e].unit_admin,this.modifyUnitAdminEntity=this.visibleUnits[e].admin_entity,this.modifyUnitIndex=e,this.enableMask=!0},showRequestModal:function(e){this.requestAdminForUnit=this.visibleUnits[e],this.enableMask=!0}},created:function(){this.user.uniqname&&(this.getUnits(),this.getGroupData()),window.addEventListener("scroll",this.scrollListener)},watch:{user:function(){this.getUnits(),this.getGroupData()}},destroyed:function(){window.removeEventListener("scroll",this.scrollListener)}},Gn=zn,Yn=(a("297d"),a("fe49"),Object(f["a"])(Gn,Wn,Hn,!1,null,"2b07bc16",null)),Vn=Yn.exports,Kn=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.msg.length,expression:"msg.length"}],attrs:{id:"message_container"}},[e._l(e.msg,(function(t,n){return[a("div",{key:"message_"+n,staticClass:"message",attrs:{id:"message_"+n},domProps:{innerHTML:e._s(t)}})]}))],2),a("div",{attrs:{id:"content",role:"main"}},[e._m(0),a("div",{staticClass:"box full_box"},[a("h2",[e._v("UM API Directory")]),a("table",{staticClass:"full_width"},[a("tr",{staticClass:"api_title",class:e.expanded.includes("buildings")?"expanded":"",on:{click:function(t){return e.toggleRow("buildings")}}},[a("td",{staticClass:"center pad-8-0"},[e._v("Buildings API"),a("i",{staticClass:"ml-2 fas",class:e.expanded.includes("buildings")?"fa-caret-down":"fa-caret-right"})])]),a("tr",{staticClass:"api_content",class:e.expanded.includes("buildings")?"shown":""},[a("td",{staticClass:"pad-8"},[e.buildings.isLoaded?e.buildings.isLoaded&&e.buildings.isError?[a("div",[e._v("An error occurred while trying to grab the list of buildings from the UM API!")]),a("div",[e._v(e._s(e.buildings.buildings))])]:[a("div",[a("span",[e._v("List of all Buildings:")]),a("div",{attrs:{id:"building_select_container"}},[a("v-select",{attrs:{name:"building",id:"building",placeholder:"Building",label:"BuildingLongDescription",options:e.buildings.buildings},model:{value:e.chosenBuilding,callback:function(t){e.chosenBuilding=t},expression:"chosenBuilding"}})],1)]),e.chosenBuilding?a("div",{staticClass:"results_section"},[a("pre",[e._v(e._s(JSON.stringify(e.chosenBuilding,null,4)))])]):e._e()]:[a("div",[e._v("Loading list of buildings...")])]],2)]),a("tr",{staticClass:"api_title even_row",class:e.expanded.includes("shortcodes")?"expanded":"",on:{click:function(t){return e.toggleRow("shortcodes")}}},[a("td",{staticClass:"center pad-8-0"},[e._v("Shortcodes API"),a("i",{staticClass:"ml-2 fas",class:e.expanded.includes("shortcodes")?"fa-caret-down":"fa-caret-right"})])]),a("tr",{staticClass:"api_content even_row",class:e.expanded.includes("shortcodes")?"shown":""},[a("td",{staticClass:"pad-8"},[a("div",[a("label",{attrs:{for:"shortcode"}},[e._v("What shortcode should we look up? ")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.shortcode,expression:"shortcode"}],attrs:{type:"text",id:"shortcode"},domProps:{value:e.shortcode},on:{input:function(t){t.target.composing||(e.shortcode=t.target.value)}}}),a("button",{staticClass:"button button_blue ml-4",class:e.shortcodeResult.isLoading?"disabled":"",on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.lookupShortcode.apply(null,arguments)}}},[e._v("Look Up Shortcode")])]),e.shortcodeResult.isLoaded?a("div",{staticClass:"results_section"},[e.shortcodeResult.isError?a("div",[e._v("An error occurred while looking up shortcode "+e._s(e.shortcode)+"!")]):a("div",[a("pre",[e._v(e._s(JSON.stringify(e.shortcodeResult.shortcode,null,4)))])])]):e._e()])])])]),a("div",{staticClass:"box full_box"},[a("h2",[e._v("MPrint APIs")]),a("table",{staticClass:"full_width"},[a("tr",{staticClass:"api_title",class:e.expanded.includes("papercut")?"expanded":"",on:{click:function(t){return e.toggleRow("papercut")}}},[a("td",{staticClass:"center pad-8-0"},[e._v("PaperCut API"),a("i",{staticClass:"ml-2 fas",class:e.expanded.includes("papercut")?"fa-caret-down":"fa-caret-right"})])]),a("tr",{staticClass:"api_content",class:e.expanded.includes("papercut")?"shown":""},[a("td",{staticClass:"pad-8"},[e.printers.isLoaded?e.printers.isLoaded&&e.printers.isError?[a("div",[e._v("An error occurred while trying to grab the list of printer objects from PaperCut!")]),a("div",[e._v(e._s(e.printers.printers))])]:[a("div",[a("span",[e._v("Choose a PaperCut API method to execute:")]),a("div",[a("v-select",{attrs:{name:"papercut_method",id:"papercut_method",placeholder:"Method",label:"MethodName",reduce:function(e){return e.MethodName},options:e.papercutMethods},on:{change:function(t){return e.changeMethod(t)}},scopedSlots:e._u([{key:"selected-option",fn:function(t){var n=t.MethodName;return[a("div",{attrs:{"aria-label":n}},[e._v(e._s(n))])]}},{key:"option",fn:function(t){var n=t.MethodName,s=t.MethodDescription;return[a("div",{staticClass:"bold",attrs:{"aria-label":n}},[e._v(e._s(n))]),a("div",{staticClass:"flex_row small"},[e._v(e._s(s))])]}}]),model:{value:e.papercutMethod,callback:function(t){e.papercutMethod=t},expression:"papercutMethod"}})],1)]),e.papercutMethod?[a("div",{staticClass:"flex_row space_around"},["processJob"===e.papercutMethod?[a("div",{staticClass:"flex_member method_box"},[a("label",{staticClass:"method_label",attrs:{for:"processJob_uniqname"}},[e._v("Uniqname:")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.papercutValues.user,expression:"papercutValues.user"}],class:e.selectedUser.errorMsg?"input_error":"",attrs:{type:"text",id:"processJob_uniqname"},domProps:{value:e.papercutValues.user},on:{blur:e.lookupUser,keyup:function(t){return e.userChange(t)},input:function(t){t.target.composing||e.$set(e.papercutValues,"user",t.target.value)}}}),e.selectedUser.errorMsg?[a("br"),a("p",{staticClass:"red bold"},[e._v(e._s(e.selectedUser.errorMsg))])]:e._e()],2),a("div",{staticClass:"flex_member method_box"},[a("label",{staticClass:"method_label",attrs:{for:"processJob_server"}},[e._v("Server:")]),a("v-select",{attrs:{name:"server",id:"processJob_server",options:e.printers.servers},model:{value:e.papercutValues.server,callback:function(t){e.$set(e.papercutValues,"server",t)},expression:"papercutValues.server"}})],1),a("div",{staticClass:"flex_member method_box"},[a("label",{staticClass:"method_label",attrs:{for:"processJob_printer"}},[e._v("Printer:")]),a("v-select",{attrs:{name:"printer",id:"processJob_printer",options:e.printers.printers},model:{value:e.papercutValues.printer,callback:function(t){e.$set(e.papercutValues,"printer",t)},expression:"papercutValues.printer"}})],1),a("div",{staticClass:"flex_member method_box"},[a("label",{staticClass:"method_label",attrs:{for:"processJob_document"}},[e._v("Document:")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.papercutValues["document-name"],expression:"papercutValues['document-name']"}],attrs:{type:"text",id:"processJob_document"},domProps:{value:e.papercutValues["document-name"]},on:{blur:function(t){return e.removeCommas("document-name")},input:function(t){t.target.composing||e.$set(e.papercutValues,"document-name",t.target.value)}}})]),a("div",{staticClass:"flex_member method_box"},[a("label",{staticClass:"method_label",attrs:{for:"processJob_cost"}},[e._v("Cost:")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.papercutValues.cost,expression:"papercutValues.cost"}],attrs:{type:"number",id:"processJob_cost",min:"0",step:"0.01"},domProps:{value:e.papercutValues.cost},on:{input:function(t){t.target.composing||e.$set(e.papercutValues,"cost",t.target.value)}}})]),e.selectedUser.uniqname&&e.selectedUser.accounts.length>1?[a("div",{staticClass:"flex_member method_box"},[a("label",{staticClass:"method_label",attrs:{for:"processJob_account"}},[e._v("Account:")]),a("v-select",{attrs:{name:"account",id:"processJob_account",options:e.selectedUser.accounts},model:{value:e.papercutValues["shared-account"],callback:function(t){e.$set(e.papercutValues,"shared-account",t)},expression:"papercutValues['shared-account']"}})],1)]:e.selectedUser.uniqname?[a("div",{staticClass:"flex_member method_box"},[a("label",{staticClass:"method_label"},[e._v("Account:")]),a("span",[e._v(e._s(e.selectedUser.accounts[0]))])])]:e._e(),a("div",{staticClass:"flex_member method_box"},[a("label",{staticClass:"method_label",attrs:{for:"processJob_comment"}},[e._v("Comment:")]),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.papercutValues.comment,expression:"papercutValues.comment"}],attrs:{id:"processJob_comment"},domProps:{value:e.papercutValues.comment},on:{blur:function(t){return e.removeCommas("comment")},input:function(t){t.target.composing||e.$set(e.papercutValues,"comment",t.target.value)}}})])]:[a("div",{staticClass:"flex_member full_width"},[a("b",[e._v(e._s(e.papercutMethod))]),e._v(" is not a defined PaperCut method!")])]],2),a("div",[e.selectedUser.errorMsg||e.selectedUser.isLoading?[a("button",{staticClass:"button button_blue disabled"},[e._v("Submit")])]:[a("button",{staticClass:"button button_blue",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.executePapercutMethod.apply(null,arguments)}}},[e._v("Submit")])]],2)]:e._e(),e.papercutResult?a("div",{staticClass:"results_section"},[a("pre",[e._v(e._s(JSON.stringify(e.papercutResult,null,4)))])]):e._e()]:[a("div",[e._v("Loading list of PaperCut printer objects...")])]],2)])])])])])},Zn=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"box full_box"},[a("h1",[e._v("MPrint - UM API Interface")])])}],Xn={name:"umapis",data:function(){return{buildings:{isError:!1,isLoaded:!1,buildings:[]},chosenBuilding:null,expanded:[],msg:[],papercutMethod:null,papercutMethods:[{HttpMethod:"POST",MethodURL:"api/papercut/api/processJob",MethodName:"processJob",MethodDescription:"Create job data and log it as a print job against the specified user and account",ParamMode:"csv"}],papercutResult:null,papercutValues:{},printers:{isError:!1,isLoaded:!1,printers:[],servers:[]},selectedUser:{accounts:[],errorMsg:null,isLoading:!1,restricted:!0,uniqname:null},shortcode:null,shortcodeResult:{isError:!1,isLoading:!1,isLoaded:!1,shortcode:null},userLookupTimeout:null}},methods:{executePapercutMethod:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n,s,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:t.prev=0,e.papercutResult=null,a=e.papercutMethods.filter((function(t){return t.MethodName===e.papercutMethod}))[0],t.t0=a.HttpMethod,t.next="GET"===t.t0?6:"POST"===t.t0?12:"PUT"===t.t0?25:"DELETE"===t.t0?27:29;break;case 6:return n=[],Object.keys(e.papercutValues).map((function(t){return n.push("".concat(t,"=").concat(e.papercutValues[t]))})),t.next=10,p.methods.get("".concat(a.MethodURL,"?").concat(n.join("&")));case 10:return e.papercutResult=t.sent.data,t.abrupt("break",31);case 12:if(Object.keys(e.papercutValues).includes("shared-account")&&e.papercutValues["shared-account"].toLowerCase().startsWith("personal account")&&e.$delete(e.papercutValues,"shared-account"),"csv"!==a.ParamMode){t.next=21;break}return s=[],Object.keys(e.papercutValues).map((function(t){return s.push("".concat(t,"=").concat(e.papercutValues[t]))})),t.next=18,p.methods.post(a.MethodURL,{data:s.join(",")});case 18:e.papercutResult=t.sent.data,t.next=24;break;case 21:return t.next=23,p.methods.post(a.MethodURL,e.papercutValues);case 23:e.papercutResult=t.sent.data;case 24:return t.abrupt("break",31);case 25:return e.papercutResult="This space for rent",t.abrupt("break",31);case 27:return e.papercutResult="This space for rent",t.abrupt("break",31);case 29:return e.papercutResult="Specified HTTP Method ".concat(a.HttpMethod," is invalid!"),t.abrupt("break",31);case 31:t.next=36;break;case 33:t.prev=33,t.t1=t["catch"](0),e.papercutResult="An error occurred!<br/>".concat(t.t1);case 36:return t.prev=36,r=e,window.setTimeout((function(){r.resetSelectedUser(!1),r.papercutValues={}}),5e3),t.finish(36);case 40:case"end":return t.stop()}}),t,null,[[0,33,36,40]])})))()},getBuildings:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,p.methods.get("api/buildings?useUMAPI=1");case 3:a=t.sent,+a.data.result.count?e.buildings.buildings=a.data.result.result.sort((function(e,t){return e["BuildingLongDescription"]>t["BuildingLongDescription"]?1:-1})):(e.buildings.isError=!0,e.buildings.buildings=a.data.result.status_message),t.next=11;break;case 7:t.prev=7,t.t0=t["catch"](0),e.buildings.isError=!0,e.buildings.buildings=t.t0;case 11:return t.prev=11,e.buildings.isLoaded=!0,t.finish(11);case 14:case"end":return t.stop()}}),t,null,[[0,7,11,14]])})))()},getPaperCutPrinters:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n,s,r,i,o,c;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:t.prev=0,a=1e3,n=1,s=!0,r=null,i=[];case 6:if(!s){t.next=14;break}return t.next=9,p.methods.get("api/papercut/api/listPrinters?offset=".concat(n,"&limit=").concat(a));case 9:r=t.sent.data.result,+r.count?(i=i.concat(r.result.filter((function(e){return!e.startsWith("device")}))),s=+r.count===a):0===i.length?(e.printers.isError=!0,i=r.status_message,s=!1):s=!1,n+=a,t.next=6;break;case 14:o=[],c=[],i.map((function(e){var t=e.split("\\");c.includes(t[0])||c.push(t[0]),o.includes(t[1])||o.push(t[1])})),o=o.sort(),c=c.sort(),e.$set(e.printers,"printers",o),e.$set(e.printers,"servers",c),t.next=27;break;case 23:t.prev=23,t.t0=t["catch"](0),e.printers.isError=!0,e.printers.printers=t.t0;case 27:return t.prev=27,e.printers.isLoaded=!0,t.finish(27);case 30:case"end":return t.stop()}}),t,null,[[0,23,27,30]])})))()},lookupShortcode:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.shortcodeResult.isLoading){t.next=2;break}return t.abrupt("return",!1);case 2:return e._msgManager("Looking up shortcode ".concat(e.shortcode,"...")),e.resetResult("shortcode"),e.shortcodeResult.isLoading=!0,t.prev=5,t.next=8,p.methods.get("api/shortcodes/".concat(e.shortcode));case 8:a=t.sent,+a.data.result.count?e.shortcodeResult.shortcode=a.data.result.result:e.shortcodeResult.shortcode=a.data.result.status_message,t.next=16;break;case 12:t.prev=12,t.t0=t["catch"](5),e.shortcodeResult.isError=!0,e.shortcodeResult.shortcode=t.t0;case 16:return t.prev=16,e.shortcodeResult.isLoaded=!0,e.shortcodeResult.isLoading=!1,t.finish(16);case 20:case"end":return t.stop()}}),t,null,[[5,12,16,20]])})))()},lookupUser:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n,s,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a=e.papercutValues.user,e.resetSelectedUser(!0),!a){t.next=17;break}return t.prev=3,t.next=6,p.methods.get("/api/users/".concat(a));case 6:n=t.sent.data.result,+n.count?(e.$set(e.selectedUser,"uniqname",a),s=0,e.$set(e.selectedUser,"restricted",+n.result[0].is_restricted),n.result[0].accounts.euc.personal.map((function(e){return s+=+e.balance})),r=["Personal Account - $".concat(s)].concat(n.result[0].accounts.euc.shared.map((function(e){return e.name}))),e.$set(e.selectedUser,"accounts",r)):e.selectedUser.errorMsg="User ".concat(a," does not exist!"),t.next=15;break;case 10:t.prev=10,t.t0=t["catch"](3),console.log(t.t0),e.selectedUser.accounts=[],e.selectedUser.errorMsg="Failed to retrieve user's accounts!";case 15:t.next=19;break;case 17:e.selectedUser.errorMsg="Uniqname cannot be empty!",e.selectedUser.accounts=[];case 19:e.selectedUser.isLoading=!1;case 20:case"end":return t.stop()}}),t,null,[[3,10]])})))()},removeCommas:function(e){this.papercutValues[e]=this.papercutValues[e].replaceAll(",","_")},resetResult:function(e){this["".concat(e,"Result")].isError=!1,this["".concat(e,"Result")].isLoading=!1,this["".concat(e,"Result")].isLoaded=!1,this["".concat(e,"Result")][e]=null},resetSelectedUser:function(e){this.selectedUser={accounts:[],errorMsg:null,isLoading:e,restricted:!0,uniqname:null}},toggleRow:function(e){this.expanded.includes(e)?this.expanded=this.expanded.filter((function(t){return t!==e})):this.expanded.push(e)},userChange:function(e){if(e.key.match(/[\w\d\s]/)||"Backspace"===e.code||"Delete"===e.code||"Minus"===e.code){var t=this;window.clearTimeout(this.userLookupTimeout),this.userLookupTimeout=window.setTimeout((function(){t.lookupUser()}),1e3)}},_msgManager:function(e){this.msg.push(e);var t=this;window.setTimeout((function(){t.msg=t.msg.slice(1,t.msg.length)}),4e3)}},mounted:function(){this.getBuildings(),this.getPaperCutPrinters()}},es=Xn,ts=(a("38d6"),a("9ff4"),Object(f["a"])(es,Kn,Zn,!1,null,"cc322626",null)),as=ts.exports,ns=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.msg,expression:"msg"}],attrs:{id:"message_container"}},[a("div",{staticClass:"message",attrs:{id:"message"}},[e._v(e._s(e.msg))])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.enableMask,expression:"enableMask"}],staticClass:"mask dim",attrs:{id:"mask"},on:{click:function(t){return e.closeOpenModal(!1,!1)}}}),a("div",{attrs:{id:"content",role:"main"}},[a("div",{staticClass:"box full_box"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("h1",[e._v("MPrint User Info"),e.lookupUser?a("span",[e._v(" - "+e._s(e.lookupUser))]):e._e()])]),["staff","manage","admin"].includes(this.user.role)?[a("div",{staticClass:"flex_member end flex_row_fit"},[a("div",{staticClass:"flex_member"},[a("label",{staticClass:"mr-1",attrs:{for:"lookup_uniqname"}},[e._v("Look Up Another User:")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.userToLookup,expression:"userToLookup"}],attrs:{id:"lookup_uniqname"},domProps:{value:e.userToLookup},on:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.lookupAnotherUser.apply(null,arguments)},input:function(t){t.target.composing||(e.userToLookup=t.target.value)}}}),a("button",{staticClass:"ml-2 button button_blue",class:e.userToLookup?"":"disabled",on:{click:e.lookupAnotherUser}},[e._v("Get Info For User")])])])]:e._e()],2)]),e.userData.isLoaded?e.userData.isLoaded&&e.userData.isError?[e._m(1)]:e.userData.isLoaded&&!e.userData.exists?[a("div",{staticClass:"box full_box"},[a("h2",[e._v("User not found!")]),a("div",{staticClass:"medium_text"},[e._v("Could not find user "),a("b",[e._v(e._s(e.lookupUser))]),e._v(" in PaperCut. If this is a valid uniqname, please click the button below to enroll this user and grant them access to print!")]),a("div",{staticClass:"mt-2"},[a("button",{staticClass:"button button_blue",on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.enrollUser.apply(null,arguments)}}},[e._v("Enroll "+e._s(e.lookupUser))])])])]:[a("div",{staticClass:"box"},[a("h2",[e._v("Printer Access Information")]),a("div",[a("b",[e._v(e._s(e.lookupUser))]),e._v(" has a MPrint role of "),a("b",[e._v(e._s(e.userData.user[0].role))])]),+e.userData.user[0].is_mws?a("div",[e._v(e._s(e.lookupUser===e.user.uniqname?"You have":e.lookupUser+" has")+" access to printers in the "),a("a",{attrs:{href:"http://its.umich.edu/miworkspace/about",target:"_blank"}},[e._v("MiWorkspace printing")]),e._v(" environment")]):a("div",[e._v(e._s(e.lookupUser===e.user.uniqname?"You are":e.lookupUser+" is")+" "),a("b",[e._v("not")]),e._v(" a MiWorkspace customer")]),+e.userData.user[0].is_mps?a("div",[e._v(e._s(e.lookupUser===e.user.uniqname?"You have":e.lookupUser+" has")+" access to printers in the "),a("a",{attrs:{href:"https://services.it.umich.edu/mprint-platform-service",target:"_blank"}},[e._v("MPrint as a Service")]),e._v(" environment")]):a("div",[e._v(e._s(e.lookupUser===e.user.uniqname?"You are":e.lookupUser+" is")+" "),a("b",[e._v("not")]),e._v(" a MPrint as a Service customer")]),+e.userData.user[0].is_ccs?a("div",[e._v(e._s(e.lookupUser===e.user.uniqname?"You have":e.lookupUser+" has")+" access to "),a("a",{attrs:{href:"http://its.umich.edu/computing/printing/mprint/campus-computing-sites",target:"_blank"}},[e._v("Campus Computing Sites")]),e._v(" printers")]):a("div",[e._v(e._s(e.lookupUser===e.user.uniqname?"You are":e.lookupUser+" is")+" "),a("b",[e._v("not")]),e._v(" a Campus Computing Sites customer")]),a("hr",{staticClass:"box_divider"}),a("div",[a("div",[e._v(e._s(e.lookupUser===e.user.uniqname?"You are":e.lookupUser+" is")+" in the following print access groups:")]),a("div",[e._l(e.userData.groups,(function(t,n){return[n>0?[a("span",{key:"group_"+n+"_separator",staticClass:"pl-2 pr-2"},[e._v("•")])]:e._e(),a("span",{key:"group_"+n},[e._v(e._s(t))])]}))],2)])]),a("div",{staticClass:"box"},[a("h2",[e._v("MPrint Account Information")]),a("table",{staticClass:"full_width"},[a("thead",[a("tr",[a("th",{staticClass:"major_header",attrs:{colspan:"6"}},[e._v("Accounts Allocated to "+e._s(e.lookupUser===e.user.uniqname?"You":"user: "+e.lookupUser))])]),e._m(2)]),a("tbody",[e.userData.accounts.length?[e._l(e.userData.accounts,(function(t,n){return[a("tr",{key:"account_row_"+n},[a("td",[a("a",{attrs:{href:e.publicPath+"/accounts#account_"+t.id,target:"_blank"}},[e._v(e._s(t.account_name))])]),a("td",[e._v(e._s("personal"===t.account_type?"$"+t.account_quota:"N/A"))]),a("td",[e._v(e._s(e._format(t.active_on,!0)))]),a("td",[e._v(e._s(t.account_expiration_term?e._format(e.termData.terms[t.account_expiration_term].end_date,!0):e._format(e.termData.terms[t.account_term].end_date,!0)))]),a("td",[e._v(e._s(e._nextQuotaRefresh(t)))]),a("td",[e._v(e._s(t["admin_"+t["admin_entity"]]))])])]}))]:[a("tr",[a("td",{staticClass:"center pad-8",attrs:{colspan:"6"}},[e._v(e._s(e.lookupUser===e.user.uniqname?"You have":e.lookupUser+" has")+" no active accounts right now!")])])]],2)]),a("div",[a("b",[e._v("Redeemed MPrint Credit Codes:")]),e._v(" "+e._s(1!==e.userData.creditCodes.length?e.userData.creditCodes.length+" codes have":"1 code has")+" been redeemed for a total value of $"+e._s(e.userData.creditCodes.reduce((function(e,t){return e+t.value}),0))+".00")]),a("div",[a("b",[e._v("Current Available Account Balance:")]),e._v(" "),a("span",{class:+e.userData.user[0].accounts.available_balance<0?"negative":+e.userData.user[0].accounts.available_balance>0?"positive":"bold"},[e._v("$"+e._s(e.userData.user[0].accounts.available_balance))])]),+e.userData.user[0].is_restricted?[a("div",{staticClass:"pb-12"},[e._v(e._s(e.lookupUser===e.user.uniqname?"Your Student Account balance":e.lookupUser+"'s Student Account balance")+" "),a("b",[e._v("cannot")]),e._v(" accrue negative charges.")])]:[a("div",[a("b",[e._v("Current Student Account Charges:")]),e._v(" "),a("span",{class:+e.userData.user[0].accounts.student_account_charges<0?"negative":"bold"},[e._v("$"+e._s(e.userData.user[0].accounts.student_account_charges))])])],0===e.lookupUser.indexOf("guest-")?[a("div",{staticClass:"full_width flex_row"},[a("div",[a("span",{staticClass:"bold"},[e._v("Does "+e._s(e.lookupUser)+" have a MPrint Credit Code to redeem?")]),e._v(" "),a("span",[e._v("Users must redeem codes on their own behalf. Please send them "),a("a",{attrs:{href:e.publicPath+"/guest#redeem"}},[e._v("this link")]),e._v(" so they can redeem their codes! Learn more about the Guest printing process, "),a("a",{attrs:{href:e.publicPath+"/guest#funds"}},[e._v("here")]),e._v(".")])]),a("div",[e._v("To purchase MPrint Credits, "),a("b",[e._v(e._s(e.lookupUser))]),e._v(" will need to visit the "),a("a",{attrs:{href:"https://techshop.umich.edu",target:"_blank"}},[e._v("Tech Shop")]),e._v(" in person, then visit "),a("a",{attrs:{href:e.publicPath+"/guest#redeem"}},[e._v("this link")]),e._v(" to redeem those code(s) and start using the newly purchased print funds immediately.")])])]:[e.lookupUser===e.user.uniqname?[e._m(3),a("div",{staticClass:"full_width flex_row"},[a("a",{staticClass:"flex_member action_button button button_blue",attrs:{target:"_blank",href:e.publicPath+"/accounts"}},[a("i",{staticClass:"fas fa-plus mr-2"}),e._v("Create New Account")]),a("div",{staticClass:"flex_member action_button button button_blue",attrs:{id:"purchase_credits_button"},on:{click:function(t){return e.showCreditsPrompt(!1)}}},[a("i",{staticClass:"fas fa-cart-plus mr-2"}),e._v("Purchase MPrint Credits")]),a("div",{staticClass:"flex_member action_button button button_blue",on:{click:function(t){return t.preventDefault(),t.stopPropagation(),function(){e.enableMask=!0,e.showRedeem=!0}.apply(null,arguments)}}},[a("i",{staticClass:"fas fa-hand-holding-usd mr-2"}),e._v("Redeem MPrint Credit Codes")]),a("a",{staticClass:"flex_member action_button button button_blue",attrs:{target:"_blank",href:"https://"+e.papercutUrl}},[a("i",{staticClass:"fas fa-comments-dollar mr-2"}),e._v("Request a Refund")])]),a("div",{staticClass:"full_width"},[a("a",{attrs:{href:""},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.expandAccountHelp=!e.expandAccountHelp}}},[e._v("Account Action Help"),a("i",{staticClass:"ml-2 fas",class:e.expandAccountHelp?"fa-caret-down":"fa-caret-right"})])]),e.expandAccountHelp?[e._m(4)]:e._e()]:[a("div",{staticClass:"full_width flex_row"},[a("div",[a("span",{staticClass:"bold"},[e._v("Does "+e._s(e.lookupUser)+" have a MPrint Credit Code to redeem?")]),e._v(" "),a("span",[e._v("Users must redeem codes on their own behalf. Please send them "),a("a",{attrs:{href:e.publicPath+"/user#redeem"}},[e._v("this link")]),e._v(" so they can redeem their codes!")])]),a("div",[e._v("To purchase MPrint Credits, "),a("b",[e._v(e._s(e.lookupUser))]),e._v(" can visit the "),a("a",{attrs:{href:"https://techshop.umich.edu/mprint.html",target:"_blank"}},[e._v("Tech Shop web store")]),e._v(", then return "),a("a",{attrs:{href:e.publicPath+"/user#redeem"}},[e._v("to the user page")]),e._v(" to redeem those code(s) and start using the newly purchased print funds immediately.")])])]]],2),a("div",{staticClass:"box"},[a("h2",[e._v("Recent Jobs")]),a("table",{staticClass:"full_width"},[e._m(5),a("tbody",[["manage","admin"].includes(e.user.role)||e.lookupUser===e.user.uniqname?[e.userData.recentJobs.length?[e._l(e.userData.recentJobs,(function(t,n){return[a("tr",{key:"recentjob_"+n},[a("td",[e._v(e._s(t.printer_name))]),a("td",[e._v(e._s(t.usage_date))]),e.lookupUser===e.user.uniqname?a("td",[e._v(e._s(t.document_name))]):a("td",[e._v("---")]),a("td",{staticClass:"capitalize"},[e._v(e._s(t.job_status))])])]}))]:[a("tr",[a("td",{staticClass:"center pad-8",attrs:{colspan:"4"}},[e._v(e._s(e.lookupUser===e.user.uniqname?"You have":e.lookupUser+" has")+" no recently printed jobs!")])])]]:[e._m(6)]],2)]),a("div",{staticClass:"full_width"},[e._v("To view more historical print data, check out the "),a("a",{attrs:{href:e.publicPath+"/reports",target:"_blank"}},[e._v("MPrint reports")]),e._v(" page!")])]),a("div",{staticClass:"box"},[a("h2",[e._v("Available Cloud Services - "),a("a",{attrs:{href:e.publicPath+"/settings"}},[e._v("Manage")])]),a("div",{staticClass:"flex_row"},[e._l(e.userData.user[0].cloud_services,(function(t,n){return[a("div",{key:"cloudservice_"+n,staticClass:"flex_member"},[a("div",{staticClass:"medium_text"},[e._v(e._s(t.description))]),a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member",domProps:{innerHTML:e._s(e.renderIcon(t))}}),a("div",{staticClass:"flex_member"},[e._v(e._s(t.description)+" is "+e._s(+t.is_connected?"connected":"not connected"))])])])]}))],2)])]:[e._m(0)]],2),a("div",{directives:[{name:"show",rawName:"v-show",value:e.showRedeem,expression:"showRedeem"}],staticClass:"modal",attrs:{id:"redeem_modal"}},[e._m(7),a("div",{staticClass:"modal_content_no_overflow"},[a("div",{staticClass:"medium_text"},[e._v("Enter your code(s) below:")]),e._l(e.codesToRedeem,(function(t,n){return[a("div",{key:"code_"+n},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.codesToRedeem[n],expression:"codesToRedeem[index]"}],staticClass:"long_input",attrs:{type:"text",placeholder:t},domProps:{value:e.codesToRedeem[n]},on:{input:function(t){t.target.composing||e.$set(e.codesToRedeem,n,t.target.value)}}}),a("a",{staticClass:"ml-2",attrs:{href:""},on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.codesToRedeem.push("")}}},[e._v("+ Add Code")]),a("span",{staticClass:"ml-4",attrs:{id:"redeem_status_"+n}})])]}))],2),a("div",{staticClass:"modal_footer"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("div",{staticClass:"button",attrs:{role:"button",tabindex:"0"},on:{click:function(t){return e.closeOpenModal(!1,!1)}}},[e._v("Close")])]),a("div",{staticClass:"flex_member end"},[a("div",{staticClass:"button button_blue",attrs:{role:"button",tabindex:"0"},on:{click:function(t){return e.closeOpenModal(!0,!1)}}},[a("i",{staticClass:"fas fa-dollar-sign mr-2"}),e._v("Redeem")])])])])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.creditsPrompt,expression:"creditsPrompt"}],staticClass:"modal",attrs:{id:"credits_prompt_modal"}},[e._m(8),e._m(9),a("div",{staticClass:"modal_footer"},[a("div",{staticClass:"flex_row"},[a("div",{staticClass:"flex_member"},[a("div",{staticClass:"button",attrs:{role:"button",tabindex:"0"},on:{click:function(t){return e.closeOpenModal(!1,!1)}}},[e._v("Cancel")])]),a("div",{staticClass:"flex_member end"},[a("div",{staticClass:"button button_blue",attrs:{role:"button",tabindex:"0"},on:{click:function(t){return e.closeOpenModal(!1,!0)}}},[a("i",{staticClass:"fas fa-link mr-2"}),e._v("I Understand")])])])])])])},ss=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"full_width center"},[n("h2",[e._v("Loading User Information... "),n("img",{attrs:{src:a("d9b6"),alt:"loading user info"}})])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"full_width center"},[a("h2",[e._v("An error occurred! Please refresh the page to try again.")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("th",[e._v("Account Name")]),a("th",[e._v("Quota")]),a("th",[e._v("Active On")]),a("th",[e._v("Expires On")]),a("th",[e._v("Next Quota Refresh")]),a("th",[e._v("Account Admin")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("b",[e._v("Account Actions")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"full_width"},[a("ul",[a("li",[a("span",{staticClass:"italic"},[e._v("Create New Account")]),e._v(" - If you would like to pay for future printing with a University ShortCode, click the Create New Account button to get started with setting up a new MPrint account. "),a("b",[e._v("Note:")]),e._v(" newly created accounts cannot be used to pay for previously accrued printing expenses.")]),a("li",[a("span",{staticClass:"italic"},[e._v("Purchase MPrint Credits")]),e._v(" - Add funds to your MPrint Account with a credit card by purchasing MPrint Credits from the University Tech Shop. After you have purchased credits, you will receive MPrint Credit Codes in your email. Return to this page to redeem your codes and the funds will be applied to your account immediately! "),a("b",[e._v("Note:")]),e._v(" MPrint Credits cannot be used to pay for previously accrued printing expenses.")]),a("li",[a("span",{staticClass:"italic"},[e._v("Redeem MPrint Credit Codes")]),e._v(" - Click this button to redeem MPrint Credit Codes you purchased from the University Tech Shop. "),a("b",[e._v("Note:")]),e._v(" MPrint Credits cannot be used to pay for previously accrued printing expenses.")]),a("li",[a("span",{staticClass:"italic"},[e._v("Request a Refund")]),e._v(" - View your job history and request a refund for print jobs you do not believe you should be charged for. "),a("b",[e._v("Please")]),e._v(" be sure to review the "),a("a",{attrs:{href:"https://its.umich.edu/computing/computers-software/campus-computing-sites/printing/refund-policy",target:"_blank"}},[e._v("Sites Refund Policy")]),e._v(" before requesting your refund.")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("thead",[a("tr",[a("th",[e._v("Printer")]),a("th",[e._v("Time")]),a("th",[e._v("Job Name")]),a("th",[e._v("Status")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticClass:"center pad-8",attrs:{colspan:"4"}},[e._v("You do not have access to view this user's job history!")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Redeem MPrint Credit Codes")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_header"},[a("h1",{staticClass:"center"},[e._v("Notice: MPrint Credit Codes")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"modal_content_no_overflow"},[a("div",{staticClass:"medium_text"},[e._v("MPrint Credit Codes are used to supplement existing funds in your MPrint account. Credits will not apply to the cost of printing that has already been done.")]),a("div",{staticClass:"bold medium_text pt-1 pb-1"},[e._v("Do not purchase MPrint Credits to pay off any negative balance you may have already accrued!")]),a("div",{staticClass:"medium_text"},[e._v("If your account is currently negative, your student account will be billed, and you will be responsible for paying off the balance.")])])}],rs=a("a49b")["ldap"],is=a("a49b")["papercut_server"],os={name:"user",data:function(){return{codesToRedeem:[""],creditsPrompt:!1,enableMask:!1,expandAccountHelp:!1,lookupUser:null,msg:"",newDefaultAccount:null,newPopupBehavior:null,papercutUrl:is,publicPath:window.location.origin,showRedeem:!1,termData:{isLoaded:!1,isError:!1,terms:{}},userData:{exists:!0,isLoaded:!1,isError:!1,accounts:[],creditCodes:[],groups:[],recentJobs:[],user:[]},userToLookup:null}},props:{user:{type:Object,default:function(){return this.$store.getters.getUser}}},methods:{closeOpenModal:function(e){var t=arguments,a=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var s,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(s=t.length>1&&void 0!==t[1]&&t[1],r=!0,!e){n.next=7;break}return a.codesToRedeem=a.codesToRedeem.filter((function(e){return""!==e})),n.next=6,a.redeem();case 6:r=n.sent;case 7:s&&(a.showCreditsPrompt(!0),r=!0),r&&(a.codesToRedeem=[""],a.enableMask=!1,a.creditsPrompt=!1,a.showRedeem=!1);case 9:case"end":return n.stop()}}),n)})))()},enrollUser:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,e.msg="Attempting to enroll user ".concat(e.lookupUser,"..."),p.methods.post("/api/users",{uniqname:a.lookupUser}).then((function(e){console.log(e.data.result),+e.data.result.count?(a.msg="Successfully enrolled user ".concat(a.lookupUser,"! Please wait while their user information is loaded..."),a.userData.isLoaded=!1,a.userData.exists=!1,a.userData.isError=!1,a.getUserData()):a.msg=e.data.result.status_message})).catch((function(e){a.msg="An error occurred! Please refresh the page and try again.",console.log(e)})).finally((function(){window.setTimeout((function(){a.msg=""}),5e3)}));case 3:case"end":return t.stop()}}),t)})))()},formatBalance:function(e){var t=e.toString(),a=t.length+2;if(t.indexOf(".")>-1){a-=1;var n=t.split(".");a-=n[1].length,0===+n[0]&&(a-=1)}return e<0&&(a-=1),e.toPrecision(a)},getTermData:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,p.methods.get("/api/terms");case 3:a=t.sent.data.result,+a.count?(n={},a.result.map((function(e){return n[e.id]=e})),e.termData.terms=n):(console.log(a),e.termData.isError=!0),t.next=11;break;case 7:t.prev=7,t.t0=t["catch"](0),console.log(t.t0),e.termData.isError=!0;case 11:return t.prev=11,e.termData.isLoaded=!0,t.finish(11);case 14:case"end":return t.stop()}}),t,null,[[0,7,11,14]])})))()},getUserData:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,p.methods.get("/api/users/".concat(a.lookupUser)).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var n,s,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!+t.data.result.count){e.next=17;break}return n=Math.round(100*(+t.data.result.result[0]["accounts"]["euc"]["personal"][0]["balance"]+Number.EPSILON))/100,s=Math.round(100*(+t.data.result.result[0]["accounts"]["euc"]["student_account_charges"]+Number.EPSILON))/100,t.data.result.result[0].accounts.available_balance=a.formatBalance(n),t.data.result.result[0].accounts.student_account_charges=a.formatBalance(s),a.$set(a.userData,"user",t.data.result.result),a.$set(a.userData.user[0].accounts,"available_balance",a.formatBalance(n)),a.$set(a.userData.user[0].accounts,"student_account_charges",a.formatBalance(s)),a.newDefaultAccount=t.data.result.result[0].accounts.euc.default_account,a.newPopupBehavior=t.data.result.result[0].accounts.euc.popup_behavior,a.$set(a.userData,"exists",!0),r=[p.methods.get("/api/groups?viewAs=".concat(a.lookupUser)),p.methods.get("/api/accounts?viewAs=".concat(a.lookupUser,"&active=1")),p.methods.get("/api/creditcodes?redeemedByUser=".concat(a.lookupUser))],(["manage","admin"].includes(a.user.role)||a.lookupUser===a.user.uniqname)&&r.push(p.methods.get("/api/jobs?viewAs=".concat(a.lookupUser))),e.next=15,Promise.all(r).then((function(e){var t=e[0].data.result.result.map((function(e){return e.replace(rs["grouperPrefix"],rs["grouperReplacementPrefix"])}));if(t.sort((function(e,t){return e>t?-1:1})),a.$set(a.userData,"groups",t),a.$set(a.userData,"accounts",e[1].data.result.result),a.$set(a.userData,"creditCodes",e[2].data.result.result),4===e.length){var n,s=[],r=Object(i["a"])(e[3].data.result.result);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.job_status=a.renderJobStatus(o),o.usage_date=Object(Q["a"])(new Date(o.usage_date),"yyyy-LL-dd HH:mm:ss"),s.push(o)}}catch(c){r.e(c)}finally{r.f()}a.$set(a.userData,"recentJobs",s)}})).catch((function(e){console.log(e),a.msg="An error occurred! Could not load user data!",a.userData.isError=!0}));case 15:e.next=18;break;case 17:a.$set(a.userData,"exists",!1);case 18:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.log(e),a.msg="An error occurred! Could not load user data!",a.userData.isError=!0})).finally((function(){a.msg&&window.setTimeout((function(){a.msg=""}),5e3),a.userData.isLoaded=!0,a.$nextTick((function(){var e=window.location.hash;!a.userData.isError&&a.lookupUser===a.user.uniqname&&e&&"#redeem"===e&&(a.enableMask=!0,a.showRedeem=!0)}))}));case 2:case"end":return t.stop()}}),t)})))()},lookupAnotherUser:function(){return this.userToLookup&&(window.location.href="".concat(this.publicPath,"/user/").concat(this.userToLookup)),!1},redeem:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,n,s,r,i,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=!0,e.msg="Redeeming MPrint Credit Codes...",n=0,t.t0=regeneratorRuntime.keys(e.codesToRedeem);case 4:if((t.t1=t.t0()).done){t.next=22;break}return s=t.t1.value,r=document.getElementById("redeem_status_".concat(+s)),t.prev=7,t.next=10,p.methods.put("/api/creditcodes/".concat(e.codesToRedeem[+s]),{action:"redeem"});case 10:i=t.sent.data.result,Object.keys(i).includes("valid")&&!i.valid?(r.classList.add("red"),r.innerHTML="Code is invalid!"):+i.count?(r.classList.add("green"),r.innerHTML="Successfully redeemed code!",n++):(r.classList.add("red"),r.innerHTML="".concat(i.status_message)),t.next=20;break;case 14:t.prev=14,t.t2=t["catch"](7),r.classList.add("red"),r.innerHTML="An error occurred while trying to redeem code ".concat(e.codesToRedeem[+s],"!"),a=!1,console.log(t.t2);case 20:t.next=4;break;case 22:return n?(e.msg="Successfully redeemed ".concat(n," code(s)!"),e.getUserData()):(e.msg="Failed to redeem ".concat(e.codesToRedeem.length," code(s)!"),a=!1),o=e,window.setTimeout((function(){o.msg=""}),3e3),t.abrupt("return",a);case 26:case"end":return t.stop()}}),t,null,[[7,14]])})))()},renderIcon:function(e){var t=+e.is_connected,a='<i class="fab fa-google-drive fa-2x '.concat(t?"blue":"red",'"></i>');switch(e.name){case"box":a='<i class="fas fa-cloud fa-2x '.concat(t?"blue":"red",'"></i>');break;case"dropbox":a='<i class="fab fa-dropbox fa-2x '.concat(t?"blue":"red",'"></i>');break}return a},renderJobStatus:function(e){return"Y"===e.cancelled?"cancelled":"Y"===e.refunded?"refunded":"N"===e.usage_allowed?"denied":"Y"===e.printed?"C"===e.hardware_check_status||"CNA"===e.hardware_check_status?"printed":"CA"===e.hardware_check_status&&+e.usage_cost>0?"partially printed":"CA"===e.hardware_check_status&&0===+e.usage_cost?"failed":"submitted":"pending"},showCreditsPrompt:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!e&&this.userData.groups.includes("StudentAA")?(this.enableMask=!0,this.creditsPrompt=!0):window.open("https://techshop.umich.edu/mprint.html","_blank")},_format:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=e.split("T");return t?"".concat(a[0]," ").concat(a[1].split(".")[0]):a[0]},_nextQuotaRefresh:function(e){if(this.termData.isLoaded&&!this.termData.isError){if("personal"!==e.account_type||1!==+e.refresh_quota&&!e.account_name.toLowerCase().startsWith("basic computing package"))return"N/A";var t,a=Object.keys(this.termData.terms),n=new Date(new Date(Date.now()).toLocaleString("en-US",{timeZone:"America/Detroit"}).split(",")[0]).getTime(),s=a.indexOf(e.account_term),r=a.indexOf(e.account_expiration_term),o=Object(i["a"])(a.slice(s,r+1));try{for(o.s();!(t=o.n()).done;){var c=t.value,l=new Date(new Date(this.termData.terms[c].start_date).toLocaleString("en-US",{timeZone:"America/Detroit"}).split(",")[0]).getTime();if(l===n)return"Today";if(l>n)return this._format(this.termData.terms[c].start_date,!1)}}catch(u){o.e(u)}finally{o.f()}}return"Unknown"}},created:function(){this.user.uniqname&&(this.$route.params["username"]?"provisioning"===this.$route.params["username"]?window.location.href="/user":["staff","manage","admin"].includes(this.user.role)||this.$route.params["username"]===this.user.uniqname?this.lookupUser=this.$route.params["username"]:window.location.href="/unauthorized":this.lookupUser=this.user.uniqname,this.getUserData(),this.getTermData())},watch:{user:function(){this.$route.params["username"]?"provisioning"===this.$route.params["username"]?window.location.href="/user":["staff","manage","admin"].includes(this.user.role)||this.$route.params["username"]===this.user.uniqname?this.lookupUser=this.$route.params["username"]:window.location.href="/unauthorized":this.lookupUser=this.user.uniqname,this.getUserData(),this.getTermData()}}},cs=os,ls=(a("2e3d"),Object(f["a"])(cs,ns,ss,!1,null,"2518f371",null)),us=ls.exports,ds=a("a49b")["pages"],ps=a("a49b")["mobileAppHelpLink"];n["a"].use(v["a"]);var _s=new v["a"]({mode:"history",routes:[{name:"about",path:"/about/:section?",component:q,props:!0},{name:"shortcode_accounts",path:"/accounts",component:H,props:!0},{name:"account_redirect",path:"/account/:username?",redirect:{name:"tools_user"}},{name:"accounts_redirect",path:"/accounts/:username",redirect:{name:"tools_user"}},{name:"app_info_redirect",path:"/app",beforeEnter:function(){window.location.href=ps}},{name:"app_help_redirect",path:"/app/help",beforeEnter:function(){window.location.href=ps}},{name:"app_help_app_redirect",path:"/app/help/app",beforeEnter:function(){window.location.href=ps}},{name:"admin_access",path:"/admin/access",component:T,props:!0},{name:"admin_beacons",path:"/admin/beacons",component:ue,props:!0},{name:"admin_creditcodes",path:"/admin/creditcodes",component:xe,props:!0},{name:"admin_groups",path:"/admin/groups",component:et,props:!0},{name:"admin_logs",path:"/admin/logs",component:Vt,props:!0},{name:"admin_projects",path:"/admin/projects",component:ma,props:!0},{name:"admin_queues",path:"/admin/queues",component:Oa,props:!0},{name:"admin_refunds",path:"/admin/refunds/:username?",component:Za,props:!0},{name:"admin_scheduledreports",path:"/admin/reports",component:Qa,props:!0},{name:"admin_servers",path:"/admin/servers",component:Ha,props:!0},{name:"admin_terms",path:"/admin/terms",component:Bn,props:!0},{name:"admin_units",path:"/admin/units",component:Vn,props:!0},{name:"admin_umapis",path:"/admin/umapis",component:as,props:!0},{name:"api_status",path:"/api",component:Z,props:!0},{name:"auth_cache",path:"/cache/auth/:cacheId?",component:se,props:!0},{name:"main_cache",path:"/cache/:cacheId?",component:he,props:!0},{name:"mprint",path:"/",component:Oe,props:!0},{name:"documents_and_policies",path:"/(app|web)/:section?",component:ca,props:!0},{name:"feedback",path:"/feedback",component:ze,props:!0},{name:"guest",path:"/guest",component:ot,props:!0},{name:"help",path:"/help",component:_t,props:!0},{name:"tools_info",path:"/info/:queueName?",component:Ct,props:!0},{name:"tools_install",path:"/install",component:qt,props:!0},{name:"tools_labels",path:"/labels/:queueName?",component:Ft,props:!0},{name:"tools_maps",path:"/maps/:abbreviation?",component:aa,props:!0},{name:"posters",path:"/posters",component:xa,props:!0},{name:"poster_label",path:"/posters/label",component:Ea,props:!0},{name:"qr_code_redirect",path:"/qr/queue/:queueName?",beforeEnter:function(){window.location.href=ps}},{name:"register",path:"/register",component:on,props:!0},{name:"release",path:"/release",component:_n,props:!0},{name:"tools_reports",path:"/reports",component:wn,props:!0},{name:"settings",path:"/settings/:serviceName?",component:Dn,props:!0},{name:"settings_viewas",path:"/settings/admin/:username?",component:Dn,props:!0},{name:"status",path:"/status",component:Sn,props:!0},{name:"test_api",path:"/test",component:Fn,props:!0},{name:"tools_user",path:"/user(s)?/:username?",component:us,props:!0},{name:"Error",path:"/error",component:Qe,props:{errorMsg:"An unknown error occurred! Please refresh the page to try again.",refresh:!1}},{name:"Logout",path:"/logout",component:Bt},{name:"NotAllowed",path:"/unauthorized",component:Qe,props:{errorMsg:"You do not have permissions to view this page!",refresh:!1}},{name:"SessionExpired",path:"/noauth",component:Qe,props:{errorMsg:"Your weblogin session has expired. Page will refresh momentarily so you can log in again.",refresh:!0}},{name:"PageNotFound",path:"/:catchAll(.*)",router_id:"notfound",component:Qe,props:{errorMsg:"Page not found!",refresh:!1}}]});_s.beforeEach(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t,a,n){var s,r,o,c,l,u,d,p,_,m,f;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s={uniqname:"",role:""},r=!0,o=!1,c=k.getters.getNoAuthPages,e.prev=4,l=[],c.map((function(e){var a=t.name.match(new RegExp(e,"gi"));null!==a&&(l=l.concat(a))})),0!==l.length){e.next=12;break}return e.next=10,k.dispatch("setUser");case 10:if(s=e.sent,Object.keys(s).includes("role")&&s.role){u=Object(i["a"])(ds);try{for(u.s();!(d=u.n()).done;)if(p=d.value,p.router_id===t.name)p.roles.includes(s.role)||(r=!1);else if(Object.keys(p).includes("sublinks")&&p.sublinks.length){_=Object(i["a"])(p.sublinks);try{for(_.s();!(m=_.n()).done;)f=m.value,f.router_id===t.name&&(f.roles.includes(s.role)||(r=!1))}catch(a){_.e(a)}finally{_.f()}}}catch(a){u.e(a)}finally{u.f()}}else console.log("user is empty: ".concat(s)),r=!1;case 12:e.next=20;break;case 14:e.prev=14,e.t0=e["catch"](4),console.log("GET USER ERRORED"),console.log(e.t0),r=!1,o=!0;case 20:return e.prev=20,r?(k.commit("setCurrentPage",t.name),n()):n(o?{name:"SessionExpired"}:{name:"NotAllowed"}),e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[4,14,20,23]])})));return function(t,a,n){return e.apply(this,arguments)}}());var ms=_s,fs=a("4a7a"),hs=a.n(fs),gs=a("1d6e")["maintenanceMsg"],vs=a("a49b")["noauth_pages"],bs=a("a49b")["pages"],ws=a("1d6e")["serviceMsg"];n["a"].config.productionTip=!1,n["a"].component("v-select",hs.a),k.commit("setNoAuthPages",vs),k.commit("setPages",bs);var ys=Date.now();if(gs.message){var xs=gs.expiration?new Date(gs.expiration).getTime():null;null===xs||xs&&xs>ys?k.commit("setMaintenanceMsg",gs.message):k.commit("setMaintenanceMsg","")}else k.commit("setMaintenanceMsg","");if(ws.message){var Cs=ws.expiration?new Date(ws.expiration).getTime():null;null===Cs||Cs&&Cs>ys?k.commit("setServiceMsg",ws.message):k.commit("setServiceMsg","")}else k.commit("setServiceMsg","");new n["a"]({router:ms,store:k,render:function(e){return e(g)}}).$mount("#app")},"56f6":function(e,t,a){e.exports=a.p+"img/couzn_4.aa1325e9.png"},"570e":function(e,t,a){},5746:function(e,t,a){e.exports=a.p+"img/ruthv_3.25dc625e.png"},5779:function(e,t,a){e.exports=a.p+"img/dow_4.67ab07a7.png"},"57a6":function(e,t,a){e.exports=a.p+"img/bystr_3.83039bab.png"},"583e":function(e,t,a){e.exports=a.p+"img/vbstn_1.624e1371.png"},"592e":function(e,t,a){e.exports=a.p+"img/mungr_2.1b4af835.png"},"596e":function(e,t,a){e.exports=a.p+"img/unio_b.a9a5b16c.png"},"59d3":function(e,t,a){"use strict";a("4497")},"5a0b":function(e,t,a){e.exports=a.p+"img/pmh_3.5e422316.png"},"5a13":function(e,t,a){e.exports=a.p+"img/1443w_2.f9572cc5.png"},"5a13d":function(e,t,a){e.exports=a.p+"img/fmcrb_3.6a0cf0f1.png"},"5a15":function(e,t,a){e.exports=a.p+"img/blau_1.84fd7f2e.png"},"5a18":function(e,t,a){e.exports=a.p+"img/taubl_5.28e5c841.png"},"5a60":function(e,t,a){e.exports=a.p+"img/clemt_g.94747a73.png"},"5aaf":function(e,t,a){e.exports=a.p+"img/nh_3.31f61b90.png"},"5b5e":function(e,t,a){e.exports=a.p+"img/wh_5.ecc61f86.png"},"5cb2":function(e,t,a){e.exports=a.p+"img/lnwbr_1.44269800.png"},"5cdc":function(e,t,a){e.exports=a.p+"img/kines_3.1bc19001.png"},"5cef":function(e,t,a){"use strict";a("2e36")},"5cef8":function(e,t,a){e.exports=a.p+"img/cook_4.1faf5873.png"},"5d04":function(e,t,a){e.exports=a.p+"img/bmt_3.35b82c8e.png"},"5d11":function(e,t,a){e.exports=a.p+"img/exres_7.cde534a0.png"},"5d37":function(e,t,a){e.exports=a.p+"img/tap_2.8e0edf8f.png"},"5d68":function(e,t,a){e.exports=a.p+"img/uhs_3.b0cf89d1.png"},"5d88":function(e,t,a){e.exports=a.p+"img/oxva_3.6c831378.png"},"5def":function(e,t,a){e.exports=a.p+"img/bystr_5.08d62cb3.png"},"5dff":function(e,t,a){e.exports=a.p+"img/weis_11.ad86e837.png"},"5e1c":function(e,t,a){e.exports=a.p+"img/dana_4.3775422f.png"},"5eb6":function(e,t,a){e.exports=a.p+"img/sq_4.7fed6ede.png"},"5f1a":function(e,t,a){"use strict";a("b767")},"5f1f":function(e,t,a){e.exports=a.p+"img/taubc_2.bec2a19d.png"},"5f3f":function(e,t,a){e.exports=a.p+"img/ioe_1.160dab78.png"},"5f81":function(e,t,a){e.exports=a.p+"img/ross_b.7438f1e2.png"},"603c":function(e,t,a){e.exports=a.p+"img/exres_6.4d461699.png"},6041:function(e,t,a){e.exports=a.p+"img/uhs_4.653be577.png"},"60ab":function(e,t,a){e.exports=a.p+"img/hill_1.f3f20a55.png"},"60c3":function(e,t,a){e.exports=a.p+"img/ccrb_4.42db23a7.png"},"610d":function(e,t,a){e.exports=a.p+"img/lbme_3.abf1bb27.png"},6159:function(e,t,a){e.exports=a.p+"img/palm_7.11ce9536.png"},"61a0":function(e,t,a){e.exports=a.p+"img/nub_3.a6f0c1ae.png"},6204:function(e,t,a){e.exports=a.p+"img/burs_2.14f49ddd.png"},6222:function(e,t,a){e.exports=a.p+"img/ulib_b.df0044b1.png"},"633e":function(e,t,a){e.exports=a.p+"img/lipse_2.95ec4221.png"},6356:function(e,t,a){e.exports=a.p+"img/cssb_1.c79261b7.png"},6378:function(e,t,a){e.exports=a.p+"img/ncsv_2.9d4970f9.png"},"640f":function(e,t,a){e.exports=a.p+"img/equip_1.7c100b48.png"},6413:function(e,t,a){e.exports=a.p+"img/oxva_1.4e3b33c3.png"},6484:function(e,t,a){e.exports=a.p+"img/auxs1_2.52537993.png"},"64b6":function(e,t,a){e.exports=a.p+"img/couzn_r.79d71f19.png"},"64ba":function(e,t,a){e.exports=a.p+"img/lec_5.cd23f5a6.png"},6536:function(e,t,a){e.exports=a.p+"img/yost_2.b612c920.png"},"653d":function(e,t,a){e.exports=a.p+"img/exres_9.3bfdbaa7.png"},"654d":function(e,t,a){e.exports=a.p+"img/glibs_6.32a8f41f.png"},"659d":function(e,t,a){e.exports=a.p+"img/sq_1.334691f7.png"},"65e5":function(e,t,a){e.exports=a.p+"img/sq_2.d334fb6a.png"},6649:function(e,t,a){e.exports=a.p+"img/socc_1.44269800.png"},"666e":function(e,t,a){e.exports=a.p+"img/llib_s2.02719a55.png"},"66b3":function(e,t,a){e.exports=a.p+"img/sinfn_2.1c4f3652.png"},"66c9":function(e,t,a){e.exports=a.p+"img/tap_3.23afc6e0.png"},"66d3":function(e,t,a){"use strict";a("0c4b")},"66f6":function(e,t,a){"use strict";a("c4d2")},6724:function(e,t,a){e.exports=a.p+"img/nq_9.545d3281.png"},"67b6":function(e,t,a){e.exports=a.p+"img/aab_3.8e77a23f.png"},"67da":function(e,t,a){e.exports=a.p+"img/ncgsf_1.5142bfa6.png"},6866:function(e,t,a){e.exports=a.p+"img/vbeat_1.10c737a1.png"},"686b":function(e,t,a){e.exports=a.p+"img/fjsdo_2.44269800.png"},"688c":function(e,t,a){e.exports=a.p+"img/glibn_3.b154ce28.png"},"68c1":function(e,t,a){e.exports=a.p+"img/usb_2.dfb1c472.png"},6935:function(e,t,a){e.exports=a.p+"img/bsb_5.e8b4749f.png"},"6935d":function(e,t,a){e.exports=a.p+"img/sq_8.79ce922f.png"},"693b":function(e,t,a){e.exports=a.p+"img/imsb_gm.56e9992e.png"},"694d":function(e,t,a){e.exports=a.p+"img/exres_3.b0095140.png"},6955:function(e,t,a){e.exports=a.p+"img/alb2_2.9757159d.png"},6964:function(e,t,a){"use strict";a("7dff")},"696f":function(e,t,a){e.exports=a.p+"img/pharm_3.f3d6e318.png"},"69ff":function(e,t,a){e.exports=a.p+"img/agrmu_4.d32e66bc.png"},"6a27":function(e,t,a){e.exports=a.p+"img/arbg_1.44269800.png"},"6a82":function(e,t,a){e.exports=a.p+"img/ncrc520_4.f59e2784.png"},"6ac9":function(e,t,a){e.exports=a.p+"img/ruthv_1.a8e01e3d.png"},"6b1a":function(e,t,a){e.exports=a.p+"img/vbeat_4.6662b113.png"},"6b50":function(e,t,a){e.exports=a.p+"img/srb.e1c9b5cd.png"},"6b5d":function(e,t,a){e.exports=a.p+"img/cool_2.a27cb8a2.png"},"6b63":function(e,t,a){e.exports=a.p+"img/ncrc025_3.5d8d34f2.png"},"6baa":function(e,t,a){e.exports=a.p+"img/phspr_1.6fe19e8e.png"},"6bb7":function(e,t,a){e.exports=a.p+"img/schem_1.2bd4bf72.png"},"6c13":function(e,t,a){e.exports=a.p+"img/ncrc075_g.1f4b80a5.png"},"6c98":function(e,t,a){e.exports=a.p+"img/eh_4m.14cb58af.png"},"6cb8":function(e,t,a){},"6cea":function(e,t,a){"use strict";a("ba09")},"6cf9":function(e,t,a){e.exports=a.p+"img/hh_b.0ce57fa9.png"},"6d12":function(e,t,a){e.exports=a.p+"img/eq_ll.90395ec9.png"},"6d1a":function(e,t,a){e.exports=a.p+"img/vbstn_2.fa25a069.png"},"6d6b":function(e,t,a){e.exports=a.p+"img/leag_2.0fed4923.png"},"6dec":function(e,t,a){e.exports=a.p+"img/rack_r.c468987f.png"},"6e1f":function(e,t,a){e.exports=a.p+"img/seb_b.3ba5871a.png"},"6e37":function(e,t,a){e.exports=a.p+"img/fab_4.d13a77cc.png"},"6e51":function(e,t,a){e.exports=a.p+"img/ncrc025_1.60686ab1.png"},"6e6a":function(e,t,a){e.exports=a.p+"img/woto_3.fba9a8b2.png"},"6e77":function(e,t,a){e.exports=a.p+"img/ncrc018_1.d33130cc.png"},"6ec0":function(e,t,a){e.exports=a.p+"img/usb_5.47d6af33.png"},"6efc":function(e,t,a){e.exports=a.p+"img/mungr_6.3fb4065f.png"},"6f77":function(e,t,a){e.exports=a.p+"img/eh_2.f55c87eb.png"},"6f80":function(e,t,a){e.exports=a.p+"img/uhcc_1.0ced6d66.png"},"6f95":function(e,t,a){e.exports=a.p+"img/rand_3.f4d45d3b.png"},"6fa2":function(e,t,a){e.exports=a.p+"img/glick_2.ce9584ce.png"},"6fe1":function(e,t,a){e.exports=a.p+"img/dent_3.c7f18701.png"},"6fe3":function(e,t,a){e.exports=a.p+"img/burnh_b.dad1fa55.png"},7001:function(e,t,a){e.exports=a.p+"img/lsi_b.d1de082f.png"},7006:function(e,t,a){e.exports=a.p+"img/stb_6.b422ec6f.png"},"700b":function(e,t,a){e.exports=a.p+"img/eh_4.b2f19fca.png"},"701d":function(e,t,a){e.exports=a.p+"img/ggbl_4.614da2c4.png"},"707b":function(e,t,a){e.exports=a.p+"img/sm_2.a36d9c18.png"},7085:function(e,t,a){e.exports=a.p+"img/vbcmn_2.0c0cc499.png"},"708f":function(e,t,a){e.exports=a.p+"img/dent_g.cbec1dce.png"},7169:function(e,t,a){"use strict";a("c7d5")},7191:function(e,t,a){},7195:function(e,t,a){e.exports=a.p+"img/aab_2.f57215c4.png"},"71a3":function(e,t,a){},"71bb":function(e,t,a){e.exports=a.p+"img/stock_2.a7b4d574.png"},"71f6":function(e,t,a){e.exports=a.p+"img/seb_1.1d10068a.png"},"71fb":function(e,t,a){e.exports=a.p+"img/unio_7.c9e80db1.png"},7215:function(e,t,a){e.exports=a.p+"img/kma_2.dbda57f9.png"},"721c":function(e,t,a){e.exports=a.p+"img/mojo_6.7ca1e866.png"},"72a2":function(e,t,a){e.exports=a.p+"img/nq_2.91d54ba2.png"},"72ee":function(e,t,a){"use strict";a("29f2")},"733f":function(e,t,a){e.exports=a.p+"img/rack_ll.388e4a03.png"},"738d":function(e,t,a){e.exports=a.p+"img/trnsv_m.89bd52e0.png"},"73a1":function(e,t,a){e.exports=a.p+"img/vb2_cn3.e3df9a2c.png"},"73ad":function(e,t,a){e.exports=a.p+"img/palm_3.4fada829.png"},"73bf":function(e,t,a){e.exports=a.p+"img/rack_5.d27033db.png"},7419:function(e,t,a){"use strict";a("7191")},"741d":function(e,t,a){e.exports=a.p+"img/rack_1.eb83f049.png"},7499:function(e,t,a){e.exports=a.p+"img/hartw_3.16933ab5.png"},"74a5":function(e,t,a){e.exports=a.p+"img/cook_r.258838f0.png"},"74a6":function(e,t,a){e.exports=a.p+"img/alh_1.581f78bc.png"},7505:function(e,t,a){"use strict";a("9c36")},"756e":function(e,t,a){},"75ec":function(e,t,a){"use strict";a("7e43")},"766e":function(e,t,a){e.exports=a.p+"img/pier_1.c7a56a5b.png"},"76ea":function(e,t,a){e.exports=a.p+"img/burs_5.48ec97ae.png"},"77e0":function(e,t,a){e.exports=a.p+"img/llib_8.8f49e85d.png"},7824:function(e,t,a){e.exports=a.p+"img/hh_g.122ba45b.png"},"782b":function(e,t,a){e.exports=a.p+"img/glibs_2.932f2801.png"},7832:function(e,t,a){e.exports=a.p+"img/couzn_ll.d3d1a424.png"},7859:function(e,t,a){e.exports=a.p+"img/leag_ll.206c8064.png"},7899:function(e,t,a){e.exports=a.p+"img/glibn_3a.5dea35e1.png"},"78de":function(e,t,a){e.exports=a.p+"img/eecs_5.4fdb0764.png"},7938:function(e,t,a){e.exports=a.p+"img/woto_8.393d7a38.png"},"797e":function(e,t,a){e.exports=a.p+"img/ncrb_b.aa51c035.png"},7986:function(e,t,a){e.exports=a.p+"img/llib_7.58f8cfff.png"},"79a2":function(e,t,a){},"79af":function(e,t,a){e.exports=a.p+"img/mh_1.4994d29c.png"},"7a8a":function(e,t,a){"use strict";a("4221")},"7aaf":function(e,t,a){e.exports=a.p+"img/madsn_2.6b98f80b.png"},"7ae8":function(e,t,a){e.exports=a.p+"img/hh_7.6d9d4e69.png"},"7af0":function(e,t,a){e.exports=a.p+"img/madsn_1.6c70736e.png"},"7b5e":function(e,t,a){e.exports=a.p+"img/llib_6.bc7447b8.png"},"7b74":function(e,t,a){e.exports=a.p+"img/keyo_5.032343b3.png"},"7be4":function(e,t,a){e.exports=a.p+"img/tmc_3.e588b848.png"},"7c50":function(e,t,a){e.exports=a.p+"img/sph1_7.bb467385.png"},"7ce4":function(e,t,a){e.exports=a.p+"img/nib_1.e03b268e.png"},"7ce9":function(e,t,a){e.exports=a.p+"img/bhlib_1.0c4cbbc8.png"},"7d06":function(e,t,a){e.exports=a.p+"img/couzn_6.12b78bd0.png"},"7d6c":function(e,t,a){e.exports=a.p+"img/stadm_b.7b25d965.png"},"7d98":function(e,t,a){e.exports=a.p+"img/vb2_cn1.babb1dbb.png"},"7dac":function(e,t,a){e.exports=a.p+"img/vb2_t4.7d09a636.png"},"7dbf":function(e,t,a){e.exports=a.p+"img/317may_ll.44269800.png"},"7dd7":function(e,t,a){e.exports=a.p+"img/uhs_ll.7cba5fa4.png"},"7dff":function(e,t,a){},"7e43":function(e,t,a){},"7e4d":function(e,t,a){e.exports=a.p+"img/uhs_2.9fe4de55.png"},"7e69":function(e,t,a){e.exports=a.p+"img/bmt_2.35549484.png"},"7e6d":function(e,t,a){},"7e6e":function(e,t,a){e.exports=a.p+"img/woto_5.5b39fc1c.png"},"7ec0":function(e,t,a){e.exports=a.p+"img/gflab_1.7d3a464a.png"},"7edd":function(e,t,a){e.exports=a.p+"img/stock_7.27514e17.png"},"7ee6":function(e,t,a){e.exports=a.p+"img/weidn_2.813962dc.png"},"7fcb":function(e,t,a){e.exports=a.p+"img/dana_2.fb7603f4.png"},"7fcb4":function(e,t,a){e.exports=a.p+"img/ggbl_b.9cca0945.png"},8023:function(e,t,a){e.exports=a.p+"img/canhm_2.5a061216.png"},"80af":function(e,t,a){e.exports=a.p+"img/buhr_1.a77be750.png"},"80ff":function(e,t,a){e.exports=a.p+"img/umtri_2.78f91342.png"},8104:function(e,t,a){e.exports=a.p+"img/sab_2.7df3bb47.png"},8110:function(e,t,a){"use strict";a("0774")},8115:function(e,t,a){e.exports=a.p+"img/obl_2.127bccda.png"},8163:function(e,t,a){e.exports=a.p+"img/bus_6.adf707b8.png"},"81a9":function(e,t,a){e.exports=a.p+"img/lsjh_4.09909cc5.png"},"81c5":function(e,t,a){e.exports=a.p+"img/name_2.1864ef3f.png"},"81f2":function(e,t,a){e.exports=a.p+"img/mctc2_1.49adfb45.png"},8245:function(e,t,a){e.exports=a.p+"img/burnh_2.14478814.png"},8266:function(e,t,a){"use strict";a("79a2")},"831f":function(e,t,a){e.exports=a.p+"img/power_6.809ff8be.png"},8350:function(e,t,a){e.exports=a.p+"img/newby_b.0b828586.png"},"835e":function(e,t,a){"use strict";a("944a")},8395:function(e,t,a){e.exports=a.p+"img/fsba_1m.dd745b39.png"},8435:function(e,t,a){e.exports=a.p+"img/hvran_1.188c62b2.png"},"843a":function(e,t,a){e.exports=a.p+"img/tap_1.850a4d91.png"},8458:function(e,t,a){e.exports=a.p+"img/eh_3.559fafec.png"},8487:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVkAAAE7CAMAAABAEAK4AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowNEM5RkJBOEY4OEQxMUUzQTZCNDgxNzk4RTFFN0ZGQyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowNEM5RkJBOUY4OEQxMUUzQTZCNDgxNzk4RTFFN0ZGQyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjA0QzlGQkE2Rjg4RDExRTNBNkI0ODE3OThFMUU3RkZDIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjA0QzlGQkE3Rjg4RDExRTNBNkI0ODE3OThFMUU3RkZDIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+pJXbHwAAAoJQTFRFoaGh1tbWampq6+vrVFRUPj4+dnZ2rKyslpaWy8vLX19ftra2i4uLgICA4ODgwMDAYGBg4eHh5ubm/f39oKCgf39//Pz8JiYm/v7+U1NT2NjY7+/vmZmZZWVl9fX1PT095eXlVlZW+Pj4zMzMs7OzXFxcdXV1UFBQhoaGe3t7yMjIaGhoQUFB7u7uXV1d+vr6vLy8RUVF8vLy3t7e5+fn9/f3j4+Pk5OT6enpVVVVioqKxMTESUlJTU1N+fn50tLScHBwNDQ0UlJS9PT07e3t9vb28fHx4+Pjurq62dnZ2traxcXFxsbGMjIyzc3NgoKCo6Oj+/v7T09P5OTkiIiIvr6+4uLiSkpKjY2NY2NjWlpaQ0NDjIyMbGxsTExMkJCQAAAA1NTU0NDQXl5e19fXra2tr6+va2tr8PDwOTk5n5+f3d3dlJSUcnJy7OzshYWFqKioRkZGZ2dnLCwscXFxnJycQkJCqqqqc3NzNzc3NTU1V1dXtbW1hISEfX19ZmZmTk5O8/PzR0dHQEBAiYmJysrKu7u7qampt7e30dHRsbGxwcHBx8fHZGRkvb29REREKysrnZ2d6OjosbGxuLi4wsLCeHh4paWlPDw8enp67+/vp6enPz8/paWls7Oz29vbeXl5MTExzs7OW1tb39/fmpqaS0tLq6urYmJiIiIiLS0t3Nzcubm5Hx8fUVFRkZGRHh4eExMTEhISkpKSGhoaYWFhJCQkWVlZsLCwNjY2m5ubJycnODg4MDAwfn5+1dXVmJiYycnJ6urqGxsbbW1tDQ0NMzMzICAgHBwcbm5ujo6OGRkZAwMDgYGBAAAAdHR0fHx8z8/PtLS009PTaWlp////In71cwAAB0pJREFUeNrs24dPG2cYgHE84jPnBTZmCRKG2HvvAAlk772j7KTZe+9OdTdt1TgJ6d57771HOt//p2e7pQ2tVLd8R0vveQT4ToeQ/dPx+juwk4TMKQkCZJElZJFFlpBFFllCFllkafiymTarN9Yk2YNddmuX0mOC7FyHw9GuWfz3O3WZodCkWHb2Yqez5C6LyzZVOJ3ONsWydhtPSfHGIYuspWV9Wxb3YRqvepyuUNbpQPS3xiCLLLKE7KiUPX2r03o9mjcCsralDuvVkjQSsnYLDoAkZJFFFllkkUUWWWSRRRZZZJFFFllkkUUWWWSRRRZZZJFFFllkkUUWWWSRRRZZZJFFFllkkUUWWWSRRRZZZJFFFllkkUUWWWSRRRZZZJFF9n8tu/54t5R7Gjd7PLUNfulGVlWR5dq8Rc60yilLtQHvOtGRVdWcjdLxpS7edreIN7cKWWXdP18KluoT28716s3e23KQVVZ4vez4aXHRpeToOWubjayybmyRG5IMz7jsuV5kVZXuDLf1nxSZtUX/eHX23PuQVUc7bS7rWa4UkEU2np61bkHqxSMPIqs8l0OKGhwTkDVBNtNg1euRVS/bdKvI+cnImnDOZolUj0XWhDmbcvku5qz63o/IpD3rJiPLehZZy8pm+v01Ib8/GAmJVE3ZLH0SSc+sQnb4TZy5crnj884K4xls8xuuOxpzxVm4tR3Z4TfWLpXzXbG1wZ0b5Yf2L6TtTU8tsgrO2SfWbXe8pe83ZA+1isN1otW7srkPWQXnbFbygcKi5IcN2X2TJM/12Eu1j+/kGUzNNCj2xKfBI/dIYMHlmZNzVyCrQnZm+NHGwz63y+XLXnXp0/mZL2YuKUVWQemap75A057u1rRJra8b92KG5KUiy5UCssgiiyyyyCKLLLLIIossssiak8t4LHc/IIG39x6X3lXjIr4J+sKMoizjyJMT9i7SSv70PSbIJigbzuoLpEnFZF1mlPr8YmCW5EW/PpWr1TmQHYbs+f2aIatF305y1tfjC+oFp2qispKvXVqNbIJdm/JLwUHZmtyck1HZKOJhX4d/fEbvYxKTrdZau5BNsM4HU+PVDMp+UGnfa8iWduuSWhybBnlZMdlIm+YI34FsYoWH/KvX1ZJ2/1qZd2FpxUNS19Kb7VuRlq1L6QaRym1HpmsO/xVkE2tD89X7DYHA9JA0NATKQ1IeaBR/IBDMloIfRWYEguKokXJkE2taCutZcwp11iNrTsW3XLX7iNu9If2bbycZm+v3dLjd7nMLRRZGjyS73WuMjRvc5cgm1Jycq3Zn5Q7YTsy5Pt/YXNXRl1w0Zaou8esu30Dyh8ZGVvnt9cgm0tohd9hYZp0Seei0LHouL7YIG5SNXY0ZH8URZBNpfN34obLVIqXZMnDglUtR2ft0/dnYgc8y1hiy8y7kMw0Sy752qKxxXbA9KBsHQsv+5JztWjEb2cTKmTNU9miwf7fI1BOn7b/KBqf+bhrkPzwlgmwC3VJ81a47KOtffeb66MM6dbMsiUiZSFnhudgBWa4vKJOtxdu3IptA9Z2hPyxy02M36axnh1fKNK4UzKl5A7LmVBtG1pwc85A1qfz5yJrTzhuRNaeBa5E1J/8yZE1qVRWy5lR2M7LmdLAFWXOy5SJrTum7+5E1p33XIWtO19yJrDkV9iBrTv275yJrTifXIGtO23Yha061K48ha0pfX3keWdXFXiJz3ZVPojc1mciqK3bvM6/EXstttyGrWFaWHEBWdV27PIOVIKuwzrB3sEpklU+DeP/paVBkG2XVdfy2fXTgH/2I0hGRPWK3XmeZBibFnEUWWWSRRRZZZJFFFllkkUUWWWSRRRZZZJFFFllkkUUWWWSRRRZZZJFFFllkkUX2v9u7a6Rp5ffSv2JTlcj44yLT792FrIqeOCT7P9LktduqCkR6vpKJlY359yCroIxw8EyZNm2Mp1BkdiBDbtojA83IqpD1X1zt05Jv10qOeaoDL68tbBdPGbIqZGXfREP2Ozl2b3Za2gt3d1fIxgXIKpEV8Wk7Zs46lBPbK1j+Xsl0ZBV0jfE5Y6pkb8oJxfdmPX6QtQHrWWSRRRZZZJFFFllkkUUWWWSRRRZZZJFFFllkkR39sl2a9bKPiGyd23pVMw1G9TQ4mmy9wiMiu8Vlvc4wDVh1IYssssgiiyyyyCKLLLLIIossssgiiyyyyCKLLLLIIossssgiiyyyyCKLLLLIIossssgiiyyyyCKLLLLIIossssgiiyyyyCKLLLLIIossssgiiyyyyP6V7I4zY6zXAzeNgCwhiyyyhOzoka1Y1jMW0Xg7U95RKNuUmmLDNN7h1DyFsiJ2ZH9pXMJXF8j+u7KbXF6vt8DiqKE0A2GMYtnNHo9nk2Zx2dTFhsIixbLRttmTrN2S/L/1V5zEvzU9yeq1miRLgiyyyBKyyCJLyCKLLCGLLLKELLLIErLIIkvIIossIYssIYsssoQsssjS0H4WYADReBxIkjVWeQAAAABJRU5ErkJggg=="},"84b7":function(e,t,a){e.exports=a.p+"img/wbus_5.e98a12fe.png"},8526:function(e,t,a){e.exports=a.p+"img/sq_b.49789b95.png"},"852c":function(e,t,a){"use strict";a("756e")},8562:function(e,t,a){e.exports=a.p+"img/alb2_b.20ffa9b3.png"},"857b":function(e,t,a){e.exports=a.p+"img/burnh_1.24eb2a2c.png"},8581:function(e,t,a){e.exports=a.p+"img/grn_1.8eb799a5.png"},"858d":function(e,t,a){e.exports=a.p+"img/mlb_b.8f8fd0de.png"},"85a2":function(e,t,a){e.exports=a.p+"img/wh_2.f92b3328.png"},"85a6":function(e,t,a){e.exports=a.p+"img/exres_5.1bcc5a3f.png"},"85ec":function(e,t,a){},"85fd":function(e,t,a){e.exports=a.p+"img/lorch_1.52dec449.png"},"862f":function(e,t,a){},8635:function(e,t,a){e.exports=a.p+"img/stb_1.b937c0c8.png"},8666:function(e,t,a){e.exports=a.p+"img/unio_1.6a1e2693.png"},8698:function(e,t,a){e.exports=a.p+"img/stock_3.44bc7fea.png"},8699:function(e,t,a){e.exports=a.p+"img/1nm_6.976245e0.png"},"86dc":function(e,t,a){e.exports=a.p+"img/ncgsf_1m.92eb30e4.png"},"874e":function(e,t,a){e.exports=a.p+"img/printers.e4ac7f0c.png"},8790:function(e,t,a){e.exports=a.p+"img/glibn_5.1462314e.png"},"87be":function(e,t,a){e.exports=a.p+"img/couzn_2.b5569ef7.png"},"87c7":function(e,t,a){e.exports=a.p+"img/sinfn_1.58741d50.png"},"87f7":function(e,t,a){e.exports=a.p+"img/news_2.bb209773.png"},"87fb":function(e,t,a){e.exports=a.p+"img/plnt_1.fa49155f.png"},"88c1":function(e,t,a){e.exports=a.p+"img/mmark_5.ef72ea17.png"},"88f0":function(e,t,a){e.exports=a.p+"img/mojo_4.c96fa369.png"},8900:function(e,t,a){e.exports=a.p+"img/bystr_4.199f7894.png"},8912:function(e,t,a){},8924:function(e,t,a){e.exports=a.p+"img/cpp_m2.e39ab3ad.png"},8954:function(e,t,a){e.exports=a.p+"img/snb_1.3eaab4d2.png"},8957:function(e,t,a){e.exports=a.p+"img/news_b.125d51dc.png"},"896b":function(e,t,a){e.exports=a.p+"img/mmark_6.82b487d0.png"},"8a3a":function(e,t,a){e.exports=a.p+"img/hh_5.94b67389.png"},"8a73":function(e,t,a){e.exports=a.p+"img/alb1_1.40bbf727.png"},"8ab6":function(e,t,a){e.exports=a.p+"img/glibn_2a.e284aab3.png"},"8abf":function(e,t,a){e.exports=a.p+"img/ncrb_1.4883f63c.png"},"8b64":function(e,t,a){e.exports=a.p+"img/dc_3.2001d608.png"},"8b69":function(e,t,a){},"8bd9":function(e,t,a){e.exports=a.p+"img/couzn_7m.2d8c1aa7.png"},"8c26":function(e,t,a){e.exports=a.p+"img/phnx_3.86ce58da.png"},"8c37":function(e,t,a){e.exports=a.p+"img/sq_3.6ef31ce6.png"},"8d05":function(e,t,a){e.exports=a.p+"img/fletc_2.dee7a503.png"},"8dd0":function(e,t,a){e.exports=a.p+"img/boye_b.01afe252.png"},"8eac":function(e,t,a){e.exports=a.p+"img/imsb_2.582dbb94.png"},"8eb0":function(e,t,a){e.exports=a.p+"img/nub_5.dc179e6b.png"},"8eb4":function(e,t,a){e.exports=a.p+"img/canhm_b.0e408fed.png"},"8f5c":function(e,t,a){e.exports=a.p+"img/ioe_2.5a21b4e9.png"},"8f64":function(e,t,a){e.exports=a.p+"img/shpwg_1.c4c13584.png"},"8f73":function(e,t,a){e.exports=a.p+"img/dc_2.303035a2.png"},"8fa2":function(e,t,a){e.exports=a.p+"img/eq_3.d028532b.png"},"8fe0":function(e,t,a){e.exports=a.p+"img/aep_1.76ae5092.png"},9e3:function(e,t,a){e.exports=a.p+"img/blau_4.92c741cd.png"},"900e":function(e,t,a){e.exports=a.p+"img/kines_4.7f8c8efa.png"},"901d":function(e,t,a){e.exports=a.p+"img/nib_2.01d93e2c.png"},9055:function(e,t,a){e.exports=a.p+"img/arg1_3.1e9aab58.png"},"90b6":function(e,t,a){e.exports=a.p+"img/keyo_4.9167098c.png"},"90db":function(e,t,a){e.exports=a.p+"img/glibn_4.d0b024c6.png"},9257:function(e,t,a){e.exports=a.p+"img/ah_6.1d6a686e.png"},"925a":function(e,t,a){e.exports=a.p+"img/wq_3.6de1bd3d.png"},"928f":function(e,t,a){e.exports=a.p+"img/carvr_1.4bee7f9c.png"},"928f7":function(e,t,a){e.exports=a.p+"img/wq_1.22c4ea14.png"},9334:function(e,t,a){e.exports=a.p+"img/ncrc025_g.348ff026.png"},"935e":function(e,t,a){e.exports=a.p+"img/nq_1.16634b8a.png"},"93b1":function(e,t,a){e.exports=a.p+"img/ncsb_1.a397fa62.png"},9433:function(e,t,a){e.exports=a.p+"img/buhr_2.c501a1bf.png"},"944a":function(e,t,a){},9454:function(e,t,a){e.exports=a.p+"img/agrmu_sbm.66725f1f.png"},9468:function(e,t,a){e.exports=a.p+"img/woto_gl.ef411a6e.png"},9478:function(e,t,a){e.exports=a.p+"img/phnx_r.52bc11c4.png"},"949b":function(e,t,a){e.exports=a.p+"img/vb2_z3.07e83c8b.png"},"94b2":function(e,t,a){e.exports=a.p+"img/bsb_1.e826c534.png"},"94b9":function(e,t,a){e.exports=a.p+"img/wq_r.3bba0f83.png"},"95cb":function(e,t,a){e.exports=a.p+"img/weis_12.0718fb80.png"},"95cc":function(e,t,a){e.exports=a.p+"img/bsb_sb.2b1aa312.png"},"963f":function(e,t,a){e.exports=a.p+"img/ah_3.c4e94c3b.png"},9695:function(e,t,a){e.exports=a.p+"img/agrmu_1.ceed17a4.png"},"96c8":function(e,t,a){e.exports=a.p+"img/mh_b.e1532dd0.png"},"96ed":function(e,t,a){"use strict";a("4d29")},9723:function(e,t,a){e.exports=a.p+"img/glick_1m.2fc96bcb.png"},9741:function(e,t,a){e.exports=a.p+"img/vvaun_b.bda8b3e4.png"},9784:function(e,t,a){e.exports=a.p+"img/leag_1.cc316f0d.png"},9786:function(e,t,a){e.exports=a.p+"img/glibn_ba.af832733.png"},9791:function(e,t,a){e.exports=a.p+"img/tmc_g.9f236bdb.png"},9799:function(e,t,a){e.exports=a.p+"img/imsb_1.07bb1a88.png"},9852:function(e,t,a){e.exports=a.p+"img/bsrb_1.9ef9a51d.png"},9862:function(e,t,a){e.exports=a.p+"img/ccrb_3.11949c1a.png"},9926:function(e,t,a){e.exports=a.p+"img/wq_5.d0188d9e.png"},9965:function(e,t,a){e.exports=a.p+"img/dow_2.55c74d90.png"},9983:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARMAAAEUCAMAAAA/ciIyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpBNTlEMjc4MzIyM0IxMUUzQTkwNUIzOUVFN0FCRkVBMiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpBNTlEMjc4NDIyM0IxMUUzQTkwNUIzOUVFN0FCRkVBMiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkE1OUQyNzgxMjIzQjExRTNBOTA1QjM5RUU3QUJGRUEyIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkE1OUQyNzgyMjIzQjExRTNBOTA1QjM5RUU3QUJGRUEyIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+0KJEvwAAAkBQTFRF7+/vj4+P2NjY8vLyxsbG5OTkra2tjY2N3NzcmpqanZ2dlZWVAAAA/f39/Pz8/v7+yMjI9fX1+vr6MjIywcHB19fX8PDw+/v7+fn5+Pj49/f34eHh6enp5ubmsbGx7u7uERER3t7ey8vL0NDQ4ODg2tra8/Pz9vb25eXl4uLi7+/v7Ozs9PT0bW1tjIyM3d3d2dnZ6urq6Ojozc3NzMzM8fHxT09PhoaGkZGRQUFBeHh41NTUVlZWKysr1tbWBQUF7e3tCQkJz8/P5+fn29vbzs7OrKysvr6+wsLC0tLScnJyJCQkJiYmXFxcpaWlAwMDY2NjFBQUjo6OBwcHAQEBc3NzDQ0NFxcXHx8ftbW11dXVLCws09PT0dHRi4uLfX19vb29h4eHTk5OtLS0xcXFJycnREREAQEB6+vrFhYWRUVFQEBAV1dXCwsLPT09KCgoHBwcnJycNjY2Wlpa39/fMDAwBgYG4+Pjp6enoaGhLi4uhISEPDw8oKCgKSkpv7+/BQUFurq6ycnJcHBwXV1dUVFRlJSUKioqcXFxNzc3x8fHHh4eaGhoGhoaVVVVCgoKYGBgIiIiBgYGMzMzysrKd3d3Q0NDAgICOTk5AwMDTU1NSUlJoqKiEhISkpKSbGxsw8PDmJiYZGRkEBAQs7OzeXl5vLy8Dg4OOzs7WVlZS0tLLS0tnp6eAgICGRkZr6+vExMTkJCQDAwMMTExuLi4bm5ul5eXfHx8dHR0W1tbYWFhQkJCXl5eBAQEISEh////prwIiAAABVpJREFUeNrs3fdzE0cUwHGQcWLgSUIGWXKRLctd7gUTg/HgSrUHzBgM2BCq6Z2hg0NPT0iZOL130nvbfy37TorxMOMZfiFkst/9Ye+e5L17+/Ht3ul+2RmGcm+ZAQEmmGCCCSaYYIIJJphgggkmmFAwwQQTTB68yc7tM90sddXTmpyvykm6WKIXd01r8miGo+PlkVmYYIIJJv+aSXdZliMl735NKm/Nme1EObZo9v2adBxzZcxkvn2/Jr45zpjMxQQTTDDBBBNMMMEEE0wwwQQTTDDBBBNMMMEEE0wwwQQTTDDBBBNMMMEEE0wwwQQTTDDBBBNMMMEEE0wwwQQTTDDBBBNMMMEEE0wwwQQTTDDBBBNMMMEEE0wwwQQTTDDBBBNMMMEEE0wwwQQTTDDBBBNMMMEEE0wwwQQTTDDBBBNMMMEEE0wwwQQTTDBxxySY678b+HODd4NA1CWTi19sTu+Ftt+MP702KxXEav+K7/65KBWUtH8Vnz832xWT8lOSTsK/Qz7Ys1r21WtQsFqG92+UC94CulfGZcvvnfKMGyZ9rW+JzEvtD8hLSWNqpV+DVfKCMRUHZKYGB2TQmNKNctkJk23rlv75j8l++drWlePjMWMWrhtrsMHj8r2OHHlRL5et8r4r88n8tEny0ESlbl+TTca8LFt0f++hO6XGzJbfNJgla/yOmYxIvFy3v8pjxpyRNu9us1tWGDMkr2iQf+d2gWMmK2SNd2N5RxYb8620ex8elz5jTshW70LqHAs7ZvKELA2kZtdaYxbJNe/DC3LWmFa9cozJ2SAljpoMTTU5LG+6bLIgPXZqdewMykHvwyd17ByUOm/srHdu7KxMz7H9elUMpOZY/xGdY6+qkp1jJ5ybY4uen6jSbZvei+fJJb3vJuNj9l78nvyhX7TI6oBjJuZVOaOpjY/bx5Scb2Sl98x2zta98qwmUydrnXhmy60JnZLlgZDun5Wldmzcks80+FHaIybalppJDst5Y05vlI+dMBma+G5Mbo9/qm8FAtflk9e3SLzM+w14RIZ3HJXjntaV9XLu8w0P9jL575j8tKf1ufbrb1z13pTk1V3q3NfvS31TsOro+uFfqlPBkhPrOm8ORt0wufedUkVkyjul0JSfN5EKV9+zPcyCCSaYYIIJJphgggkmmGCCCSaYYIIJJphgggkmmGCCCSaYYIIJJphgggkmmGCCCSaYYIIJJphgggkmmGCCCSaYYIIJJphgggkmmGCCCSaYYIIJJphgggkmmGCCCSaYYIIJJphgggkmmGCCCSaYYIIJJphgggkmmGCCCSaYYIIJJphgggkmmGCCCSaYYPKQTLamTb50xuRGatu3a1qTRQMfFhYWbrrxUdIG+R22yklkGxPpLVKpYlt1jwaNCSUqjAmONtm4XldPXdYbMCY7sdDubtYlmjNHbJXRkmuMv1cXVC3LslVjl21Z0VJjd0djtirVNb2TLRHbsllP11Fqq5guYFyTyLMtSxrtbpauV1vdZQ8fTej/a0mmraqWaGLNUWMCzZOJNemy6aEWXdK2RBMr1sSKmrVlc44mlq+JacvyhCbWtVf/6KnFO22HC3/Y1jWtSWz5Ai3vjizTs5zU/MI26UCDdjdfe7Isy/YsN2yPGuzRfCr1VDkN9tSRsHb3pK7U3Viv+fmsZrBB86nSniTLtKVPl1XNUqhuNcjwacsG7W5pt3ZfW+aFo3p4hcqs8lr6LVxYu1usUAVqUK6H9/smEyvq0ZY+q2l6NPuYJrbQZ1tGfLq8eHHTZGJhbVmmhz9d2eH1+HIiMK0JBRNMMMEEE0wwwQQTTDDB5H9c/hZgACXD59hdESi7AAAAAElFTkSuQmCC"},9992:function(e,t,a){e.exports=a.p+"img/exres_2.283fc14a.png"},"99c2":function(e,t,a){e.exports=a.p+"img/bus_b.c0b5be97.png"},"9a44":function(e,t,a){e.exports=a.p+"img/nq_6.dd3580b0.png"},"9ab1":function(e,t,a){e.exports=a.p+"img/lsa_6.a04508e2.png"},"9b2c":function(e,t,a){e.exports=a.p+"img/buhr_4.59325d76.png"},"9c36":function(e,t,a){},"9c76":function(e,t,a){e.exports=a.p+"img/eq_2.c4ae80fd.png"},"9ca5":function(e,t,a){e.exports=a.p+"img/dc_b.117f54b8.png"},"9d5d":function(e,t,a){e.exports=a.p+"img/blau_b.b1895096.png"},"9d82":function(e,t,a){e.exports=a.p+"img/palmrec_1.44269800.png"},"9dad":function(e,t,a){e.exports=a.p+"img/nib_g.ba5c77d4.png"},"9df0":function(e,t,a){e.exports=a.p+"img/ncrc010_1.74bdc6bd.png"},"9e71":function(e,t,a){e.exports=a.p+"img/cssb_b.2343f0e4.png"},"9ea9":function(e,t,a){e.exports=a.p+"img/sq_7.c5b126ee.png"},"9ec3":function(e,t,a){e.exports=a.p+"img/1443w_1.bcc83a6b.png"},"9ee9":function(e,t,a){e.exports=a.p+"img/imsb_g.e7d6dae6.png"},"9f76":function(e,t,a){e.exports=a.p+"img/cool_b.883897a9.png"},"9ff4":function(e,t,a){"use strict";a("ccf0")},a02e:function(e,t,a){e.exports=a.p+"img/vbstn_3.0e6233fb.png"},a033:function(e,t,a){e.exports=a.p+"img/vbcmn_3.9705f015.png"},a0d8:function(e,t,a){e.exports=a.p+"img/mojo_3.7cfe34f9.png"},a16a:function(e,t,a){e.exports=a.p+"img/sag_1.44269800.png"},a237:function(e,t,a){e.exports=a.p+"img/alb3_2.5b2e5c0f.png"},a23b:function(e,t,a){e.exports=a.p+"img/ncrb_2.9e0beb1b.png"},a30a:function(e,t,a){},a32d:function(e,t,a){e.exports=a.p+"img/vbeat_2.4277e014.png"},a33d:function(e,t,a){},a35a:function(e,t,a){e.exports=a.p+"img/strns_2.a245cb8f.png"},a37a:function(e,t,a){e.exports=a.p+"img/vb2_t2.3a2fafac.png"},a383:function(e,t,a){e.exports=a.p+"img/523di_3.46e497c6.png"},a3a3:function(e,t,a){e.exports=a.p+"img/twsc_1.32b7fce6.png"},a401:function(e,t,a){e.exports=a.p+"img/ulib_2.aabe86fc.png"},a443:function(e,t,a){e.exports=a.p+"img/sm_4m.26608ce9.png"},a44b:function(e,t,a){e.exports=a.p+"img/mh_g.099bbf10.png"},a465:function(e,t,a){e.exports=a.p+"img/lec_3.d433a625.png"},a49b:function(e,t){e.exports={environment:"production",base_url:"https://mprint.umich.edu/",dbBatchLimit:2e4,fileExtensions:["ai","bmp","c","cpp","csv","doc","docx","eps","gif","h","ico","idml","java","jp2","jpeg","jpg","odf","pdf","php","png","pps","ppsx","ppt","pptx","ps","psd","py","rtf","tif","tiff","txt","xls","xlsx","xml","xps"],maxFileSizeMb:50,mprintTerminalStates:["cancelled","completed","denied","failed","partially printed","printed","submitted"],papercut_server:"accounts.miprint.it.umich.edu",permanentQueueRestrictions:["!!Internal Users!!","EUC.Print","itssc-all"],poster:{consultantUser:"ccs-tech-help",cost:"0.35",fileSizeLimit:50,mixedEnvironment:1,previewDirectory:"/tmp/public/print_preview/posters/",queueName:"m-poster-follow-me",rollWidth:40,uropGroup:"2024UROP.SpringSymposiumPosterPrint"},environmentRatios:{sheets_per_tree:8333,c02_grams_per_sheet:12.7,watt_hours_per_sheet:48},installer:{hook:"x-mprint://"},ldap:{grouperPrefix:"org:aa:app:MPrint:service:policy:",grouperReplacementPrefix:"(Grouper) - ",temporaryAccessGroup:"mprint.temporary.access"},mobileAppHelpLink:"https://teamdynamix.umich.edu/TDClient/30/Portal/KB/ArticleDet?ID=7766",noauth_pages:["^about","^documents","^guest","^help","^logout","^notallowed","^sessionexpired","^app_"],pages:[{name:"MPrint",id:"mprint_button",router_id:"mprint",roles:["user","staff","manage","admin"],url:"/",sublinks:[]},{name:"Accounts",id:"accounts_button",router_id:null,roles:["user","staff","manage","admin"],url:"",sublinks:[{name:"My Account",id:"user_button",router_id:"accounts_user",roles:["user","staff","manage","admin"],url:"/user",parent:"accounts"},{name:"Shortcode Accounts",id:"shortcodes_button",router_id:"shortcode_accounts",roles:["user","staff","manage","admin"],url:"/accounts",parent:"accounts"}]},{name:"Admin",id:"admin_button",router_id:null,roles:["staff","manage","admin"],url:"",sublinks:[{name:"Access",id:"access_button",router_id:"admin_access",roles:["admin"],url:"/admin/access",parent:"admin"},{name:"Beacons",id:"beacons_button",router_id:"admin_beacons",roles:["manage","admin"],url:"/admin/beacons",parent:"admin"},{name:"Credit Codes",id:"credit_codes_button",router_id:"admin_creditcodes",roles:["admin"],url:"/admin/creditcodes",parent:"admin"},{name:"Groups",id:"groups_button",router_id:"admin_groups",roles:["staff","manage","admin"],url:"/admin/groups",parent:"admin"},{name:"Logs",id:"logs_button",router_id:"admin_logs",roles:["admin"],url:"/admin/logs",parent:"admin"},{name:"Projects",id:"projects_button",router_id:"admin_projects",roles:["admin"],url:"/admin/projects",parent:"admin"},{name:"Queues",id:"queues_button",router_id:"admin_queues",roles:["manage","admin"],url:"/admin/queues",parent:"admin"},{name:"Refunds",id:"refunds_button",router_id:"admin_refunds",roles:["admin"],url:"/admin/refunds",parent:"admin"},{name:"Scheduled Reports",id:"reports_button",router_id:"admin_scheduledreports",roles:["admin"],url:"/admin/reports",parent:"admin"},{name:"Servers",id:"servers_button",router_id:"admin_servers",roles:["admin"],url:"/admin/servers",parent:"admin"},{name:"Terms",id:"terms_button",router_id:"admin_terms",roles:["admin"],url:"/admin/terms",parent:"admin"},{name:"Units",id:"units_button",router_id:"admin_units",roles:["staff","manage","admin"],url:"/admin/units",parent:"admin"},{name:"UM APIs",id:"umapis_button",router_id:"admin_umapis",roles:["admin"],url:"/admin/umapis",parent:"admin"}]},{name:"API Status",id:"api_button",router_id:"api_status",roles:["manage","admin"],url:"/api",sublinks:[]},{name:"Cache",id:"cache_button",router_id:null,roles:["admin"],url:"",sublinks:[{name:"Auth Cache",id:"auth_cache_button",router_id:"auth_cache",roles:["admin"],url:"/cache/auth",parent:"cache"},{name:"Main Cache",id:"main_cache_button",router_id:"main_cache",roles:["admin"],url:"/cache",parent:"cache"}]},{name:"Follow Me Release",id:"release_button",router_id:"release",roles:["user","staff","manage","admin"],url:"/release",sublinks:[]},{name:"Poster Release",id:"posters_button",router_id:"posters",roles:["user","staff","manage","admin"],url:"/posters",sublinks:[]},{name:"Settings",id:"settings_button",router_id:"settings",roles:["user","staff","manage","admin"],url:"/settings",sublinks:[]},{name:"Status",id:"status_button",router_id:"status",roles:["admin"],url:"/status",sublinks:[]},{name:"Test API",id:"test_api_button",router_id:"test_api",roles:["admin"],url:"/test",sublinks:[]},{name:"Tools",id:"tools_button",router_id:null,roles:["user","staff","manage","admin"],url:"",sublinks:[{name:"Info",id:"info_button",router_id:"tools_info",roles:["staff","manage","admin"],url:"/info",parent:"tools"},{name:"Install",id:"install_button",router_id:"tools_install",roles:["user","staff","manage","admin"],url:"/install",parent:"tools"},{name:"Job History",id:"reports_button",router_id:"tools_reports",roles:["user","staff","manage","admin"],url:"/reports",parent:"tools"},{name:"Labels",id:"labels_button",router_id:"tools_labels",roles:["manage","admin"],url:"/labels",parent:"tools"},{name:"Maps",id:"maps_button",router_id:"tools_maps",roles:["user","staff","manage","admin"],url:"/maps",parent:"tools"},{name:"User Info",id:"user_button",router_id:"tools_user",roles:["user","staff","manage","admin"],url:"/user",parent:"tools"}]}]}},a4d0:function(e,t,a){e.exports=a.p+"img/couzn_8.37ccb2a7.png"},a5df:function(e,t,a){e.exports=a.p+"img/weis_b.d69dccdf.png"},a60b:function(e,t,a){e.exports=a.p+"img/eq_sll.d8b53a2d.png"},a65f:function(e,t,a){e.exports=a.p+"img/llib_4.61c940b8.png"},a669:function(e,t,a){e.exports=a.p+"img/umma_b.ace4d2ae.png"},a694:function(e,t,a){e.exports=a.p+"img/lorch_2.a0cc5f28.png"},a6d9:function(e,t,a){e.exports=a.p+"img/vvaun_3.70824103.png"},a757:function(e,t,a){"use strict";a("f2c8")},a765:function(e,t,a){e.exports=a.p+"img/ruthv_2.02f0f0c0.png"},a7b2:function(e,t,a){e.exports=a.p+"img/unio_4.4750ebcb.png"},a7dd:function(e,t,a){e.exports=a.p+"img/nh_r.ef202128.png"},a893:function(e,t,a){e.exports=a.p+"img/yost_4.d7104579.png"},a903:function(e,t,a){e.exports=a.p+"img/mcpk_1.b367f98d.png"},a908:function(e,t,a){e.exports=a.p+"img/ohsl_3.57fb010d.png"},a918:function(e,t,a){e.exports=a.p+"img/seb_5.f5180d96.png"},a935:function(e,t,a){e.exports=a.p+"img/fxb_3.416625e4.png"},a956:function(e,t,a){e.exports=a.p+"img/eq_1.e39b4187.png"},a9f6:function(e,t,a){e.exports=a.p+"img/cook_ll.70ee2d3e.png"},aa68:function(e,t,a){e.exports=a.p+"img/lsi_3.8749410c.png"},aab6:function(e,t,a){e.exports=a.p+"img/phnx_2.d4cf6c5c.png"},ab48:function(e,t,a){e.exports=a.p+"img/glibn_2.3d3a3235.png"},ab4f:function(e,t,a){e.exports=a.p+"img/lec_r.8db5ab09.png"},ab6e:function(e,t,a){e.exports=a.p+"img/mungr_4.6463d279.png"},abbb:function(e,t,a){e.exports=a.p+"img/sq_9.65f558af.png"},abbd:function(e,t,a){e.exports=a.p+"img/eecs_2.bb19ece2.png"},abe3:function(e,t,a){e.exports=a.p+"img/istlw_1.e393e9a0.png"},abe5:function(e,t,a){e.exports=a.p+"img/dent_2.4610337b.png"},abf0:function(e,t,a){e.exports=a.p+"img/ncrc520_g.5690f269.png"},ac42:function(e,t,a){e.exports=a.p+"img/cpp_m3.690276a7.png"},acbc:function(e,t,a){e.exports=a.p+"img/forst_b.5abfda22.png"},acf2:function(e,t,a){e.exports=a.p+"img/eecs_4.9bb616d0.png"},ad03:function(e,t,a){e.exports=a.p+"img/dent_1.e744cbf6.png"},ad37:function(e,t,a){e.exports=a.p+"img/fmcrb_2.4e30b4d4.png"},ad7c:function(e,t,a){e.exports=a.p+"img/madsn_3.c522d3fa.png"},adc3:function(e,t,a){e.exports=a.p+"img/ccrb_2.314cf4ac.png"},ade4:function(e,t,a){e.exports=a.p+"img/sm_4.afdf51e9.png"},adfd:function(e,t,a){e.exports=a.p+"img/bbar_3.57b64d31.png"},ae21:function(e,t,a){e.exports=a.p+"img/bmt_8.78fd3590.png"},ae75:function(e,t,a){e.exports=a.p+"img/taubl_4.81f9d8d4.png"},ae98:function(e,t,a){e.exports=a.p+"img/ncrc520_r.950c477f.png"},aead:function(e,t,a){e.exports=a.p+"img/exres_b.a1081455.png"},aede:function(e,t,a){e.exports=a.p+"img/wdc_1.193fb8bb.png"},af0a:function(e,t,a){e.exports=a.p+"img/glibs_9.312f6ce1.png"},af41:function(e,t,a){e.exports=a.p+"img/mcpk_4.f5f7db9c.png"},af70:function(e,t,a){e.exports=a.p+"img/rsbab_1.b16a6029.png"},af77:function(e,t,a){e.exports=a.p+"img/nq_3.0c719246.png"},af85:function(e,t,a){e.exports=a.p+"img/sab_1.f1d17321.png"},b011:function(e,t,a){e.exports=a.p+"img/dent_b.607c23fd.png"},b09a:function(e,t,a){e.exports=a.p+"img/asb_3.dc8b3cd1.png"},b0a0:function(e,t,a){"use strict";a("452c")},b0f7:function(e,t,a){e.exports=a.p+"img/umtri_3.9ec369ab.png"},b0f8:function(e,t,a){e.exports=a.p+"img/nub_1.6e83eb18.png"},b0fd:function(e,t,a){e.exports=a.p+"img/gcchs_b.8c090d5a.png"},b102:function(e,t,a){e.exports=a.p+"img/lane_2.d447117b.png"},b12f:function(e,t,a){e.exports=a.p+"img/cpp_b.7fbf1940.png"},b140:function(e,t,a){e.exports=a.p+"img/ncfsb_1.aa7feff3.png"},b153:function(e,t,a){e.exports=a.p+"img/nq_4.c274b83a.png"},b158:function(e,t,a){e.exports=a.p+"img/ncsv_1.4946ad0f.png"},b2be:function(e,t,a){e.exports=a.p+"img/lawc_3.d058e5df.png"},b2fc:function(e,t,a){e.exports=a.p+"img/tenn_2.dff987d1.png"},b30a:function(e,t,a){e.exports=a.p+"img/ohgo_b.56aea9a0.png"},b323:function(e,t,a){e.exports=a.p+"img/nq_ll.d567a18f.png"},b324:function(e,t,a){e.exports=a.p+"img/pier_ll.d573e29f.png"},b3b3:function(e,t,a){e.exports=a.p+"img/vbeat_r.a807daa4.png"},b3b8:function(e,t,a){e.exports=a.p+"img/eq_4.cfcbf81a.png"},b454:function(e,t,a){e.exports=a.p+"img/bhlib_2.cb8a961c.png"},b460:function(e,t,a){e.exports=a.p+"img/bus_3.9743b4db.png"},b486:function(e,t,a){e.exports=a.p+"img/fmcrb_4.7c338884.png"},b534:function(e,t,a){e.exports=a.p+"img/uhs_r.c299aed7.png"},b5b8:function(e,t,a){e.exports=a.p+"img/aepr_r.d03150f2.png"},b5c3:function(e,t,a){e.exports=a.p+"img/1443w_r.9f00a45a.png"},b61d:function(e,t,a){e.exports=a.p+"img/seb_1m.b9c426a6.png"},b631:function(e,t,a){e.exports=a.p+"img/seb_2.d233f6e5.png"},b635:function(e,t,a){e.exports=a.p+"img/ehurn_b.93504c57.png"},b638:function(e,t,a){e.exports=a.p+"img/llib_s1.420dedc4.png"},b647:function(e,t,a){e.exports=a.p+"img/seb_4.48df56e0.png"},b66a:function(e,t,a){e.exports=a.p+"img/fsbc_1.22feabe7.png"},b6e6:function(e,t,a){},b6e6c:function(e,t,a){e.exports=a.p+"img/fxb_1.ee0e514d.png"},b755:function(e,t,a){var n=a("970b").default,s=a("5bc3").default,r=a("9523").default;a("99af"),a("b64b"),a("a15b"),a("ac1f"),a("5319"),a("d3b7"),a("25f0");var i={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},o={L:1,M:0,Q:3,H:2},c=function(){"use strict";function e(t){n(this,e),r(this,"mode",void 0),r(this,"data",void 0),r(this,"parsedData",void 0),this.mode=i.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var a=0,s=this.data.length;a<s;a++){var o=[],c=this.data.charCodeAt(a);c>65536?(o[0]=240|(1835008&c)>>>18,o[1]=128|(258048&c)>>>12,o[2]=128|(4032&c)>>>6,o[3]=128|63&c):c>2048?(o[0]=224|(61440&c)>>>12,o[1]=128|(4032&c)>>>6,o[2]=128|63&c):c>128?(o[0]=192|(1984&c)>>>6,o[1]=128|63&c):o[0]=c,this.parsedData.push(o)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!==this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}return s(e,[{key:"getLength",value:function(){return this.parsedData.length}},{key:"write",value:function(e){for(var t=0,a=this.parsedData.length;t<a;t++)e.put(this.parsedData[t],8)}}]),e}(),l=function(){"use strict";function e(t,a){n(this,e),r(this,"dataCache",void 0),r(this,"dataList",void 0),r(this,"errorCorrectLevel",void 0),r(this,"moduleCount",void 0),r(this,"modules",void 0),r(this,"PAD0",void 0),r(this,"PAD1",void 0),r(this,"typeNumber",void 0),r(this,"util",void 0),this.typeNumber=t,this.errorCorrectLevel=a,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[],this.PAD0=236,this.PAD1=17,this.util=new u}return s(e,[{key:"addData",value:function(e){var t=new c(e);this.dataList.push(t),this.dataCache=null}},{key:"createData",value:function(e,t,a){for(var n=new _(0,0),s=n.getRSBlocks(e,t),r=new m,i=0;i<a.length;i++){var o=a[i];r.put(o.mode,4),r.put(o.getLength(),this.util.getLengthInBits(o.mode,e)),o.write(r)}for(var c=0,l=0;l<s.length;l++)c+=s[l].dataCount;if(r.getLengthInBits()>8*c)throw new Error("code length overflow. ("+r.getLengthInBits()+">"+8*c+")");r.getLengthInBits()+4<=8*c&&r.put(0,4);while(r.getLengthInBits()%8!==0)r.putBit(!1);while(r.getLengthInBits()<8*c){if(r.put(this.PAD0,8),r.getLengthInBits()>=8*c)break;r.put(this.PAD1,8)}return this.createBytes(r,s)}},{key:"createBytes",value:function(e,t){for(var a=0,n=0,s=0,r=new Array(t.length),i=new Array(t.length),o=0;o<t.length;o++){var c=t[o].dataCount,l=t[o].totalCount-c;n=Math.max(n,c),s=Math.max(s,l),r[o]=new Array(c);for(var u=0;u<r[o].length;u++)r[o][u]=255&e.buffer[u+a];a+=c;var d=this.util.getErrorCorrectPolynomial(l),_=new p(r[o],d.getLength()-1),m=_.mod(d);i[o]=new Array(d.getLength()-1);for(var f=0;f<i[o].length;f++){var h=f+m.getLength()-i[o].length;i[o][f]=h>=0?m.get(h):0}}for(var g=0,v=0;v<t.length;v++)g+=t[v].totalCount;for(var b=new Array(g),w=0,y=0;y<n;y++)for(var x=0;x<t.length;x++)y<r[x].length&&(b[w++]=r[x][y]);for(var C=0;C<s;C++)for(var k=0;k<t.length;k++)C<i[k].length&&(b[w++]=i[k][C]);return b}},{key:"isDark",value:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]}},{key:"getModuleCount",value:function(){return this.moduleCount}},{key:"make",value:function(){this.makeImpl(!1,this.getBestMaskPattern())}},{key:"makeImpl",value:function(e,t){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var a=0;a<this.moduleCount;a++){this.modules[a]=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++)this.modules[a][n]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=this.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)}},{key:"setupPositionProbePattern",value:function(e,t){for(var a=-1;a<=7;a++)if(!(e+a<=-1||this.moduleCount<=e+a))for(var n=-1;n<=7;n++)t+n<=-1||this.moduleCount<=t+n||(this.modules[e+a][t+n]=0<=a&&a<=6&&(0===n||6===n)||0<=n&&n<=6&&(0===a||6===a)||2<=a&&a<=4&&2<=n&&n<=4)}},{key:"getBestMaskPattern",value:function(){for(var e=0,t=0,a=0;a<8;a++){this.makeImpl(!0,a);var n=this.util.getLostPoint(this);(0===a||e>n)&&(e=n,t=a)}return t}},{key:"setupTimingPattern",value:function(){for(var e=8;e<this.moduleCount-8;e++)null===this.modules[e][6]&&(this.modules[e][6]=e%2===0);for(var t=8;t<this.moduleCount-8;t++)null===this.modules[6][t]&&(this.modules[6][t]=t%2===0)}},{key:"setupPositionAdjustPattern",value:function(){for(var e=this.util.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var a=0;a<e.length;a++){var n=e[t],s=e[a];if(null===this.modules[n][s])for(var r=-2;r<=2;r++)for(var i=-2;i<=2;i++)this.modules[n+r][s+i]=-2===r||2===r||-2===i||2===i||0===r&&0===i}}},{key:"setupTypeNumber",value:function(e){for(var t=this.util.getBCHTypeNumber(this.typeNumber),a=0;a<18;a++){var n=!e&&1===(t>>a&1);this.modules[Math.floor(a/3)][a%3+this.moduleCount-8-3]=n}for(var s=0;s<18;s++){var r=!e&&1===(t>>s&1);this.modules[s%3+this.moduleCount-8-3][Math.floor(s/3)]=r}}},{key:"setupTypeInfo",value:function(e,t){for(var a=this.errorCorrectLevel<<3|t,n=this.util.getBCHTypeInfo(a),s=0;s<15;s++){var r=!e&&1===(n>>s&1);s<6?this.modules[s][8]=r:s<8?this.modules[s+1][8]=r:this.modules[this.moduleCount-15+s][8]=r}for(var i=0;i<15;i++){var o=!e&&1===(n>>i&1);i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!e}},{key:"mapData",value:function(e,t){for(var a=-1,n=this.moduleCount-1,s=7,r=0,i=this.moduleCount-1;i>0;i-=2){6===i&&i--;var o=!1;while(!o){for(var c=0;c<2;c++)if(null===this.modules[n][i-c]){var l=!1;r<e.length&&(l=1===(e[r]>>>s&1));var u=this.util.getMask(t,n,i-c);u&&(l=!l),this.modules[n][i-c]=l,s--,-1===s&&(r++,s=7)}n+=a,(n<0||this.moduleCount<=n)&&(n-=a,a=-a,o=!0)}}}}]),e}(),u=function(){"use strict";function e(){n(this,e),r(this,"PATTERN_POSITION_TABLE",[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]]),r(this,"G15",1335),r(this,"G18",7973),r(this,"G15_MASK",21522),r(this,"QRMaskPattern",{PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7}),r(this,"math",void 0),this.math=new d}return s(e,[{key:"getBCHTypeInfo",value:function(e){var t=e<<10;while(this.getBCHDigit(t)-this.getBCHDigit(this.G15)>=0)t^=this.G15<<this.getBCHDigit(t)-this.getBCHDigit(this.G15);return(e<<10|t)^this.G15_MASK}},{key:"getBCHTypeNumber",value:function(e){var t=e<<12;while(this.getBCHDigit(t)-this.getBCHDigit(this.G18)>=0)t^=this.G18<<this.getBCHDigit(t)-this.getBCHDigit(this.G18);return e<<12|t}},{key:"getBCHDigit",value:function(e){var t=0;while(0!==e)t++,e>>>=1;return t}},{key:"getPatternPosition",value:function(e){return this.PATTERN_POSITION_TABLE[e-1]}},{key:"getMask",value:function(e,t,a){switch(e){case this.QRMaskPattern.PATTERN000:return(t+a)%2===0;case this.QRMaskPattern.PATTERN001:return t%2===0;case this.QRMaskPattern.PATTERN010:return a%3===0;case this.QRMaskPattern.PATTERN011:return(t+a)%3===0;case this.QRMaskPattern.PATTERN100:return(Math.floor(t/2)+Math.floor(a/3))%2===0;case this.QRMaskPattern.PATTERN101:return t*a%2+t*a%3===0;case this.QRMaskPattern.PATTERN110:return(t*a%2+t*a%3)%2===0;case this.QRMaskPattern.PATTERN111:return(t*a%3+(t+a)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}},{key:"getErrorCorrectPolynomial",value:function(e){for(var t=new p([1],0),a=0;a<e;a++)t=t.multiply(new p([1,this.math.gexp(a)],0));return t}},{key:"getLengthInBits",value:function(e,t){if(1<=t&&t<10)switch(e){case i.MODE_NUMBER:return 10;case i.MODE_ALPHA_NUM:return 9;case i.MODE_8BIT_BYTE:return 8;case i.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case i.MODE_NUMBER:return 12;case i.MODE_ALPHA_NUM:return 11;case i.MODE_8BIT_BYTE:return 16;case i.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else{if(!(t<41))throw new Error("type:"+t);switch(e){case i.MODE_NUMBER:return 14;case i.MODE_ALPHA_NUM:return 13;case i.MODE_8BIT_BYTE:return 16;case i.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}}}},{key:"getLostPoint",value:function(e){for(var t=e.getModuleCount(),a=0,n=0;n<t;n++)for(var s=0;s<t;s++){for(var r=0,i=e.isDark(n,s),o=-1;o<=1;o++)if(!(n+o<0||t<=n+o))for(var c=-1;c<=1;c++)s+c<0||t<=s+c||0===o&&0===c||i===e.isDark(n+o,s+c)&&r++;r>5&&(a+=3+r-5)}for(var l=0;l<t-1;l++)for(var u=0;u<t-1;u++){var d=0;e.isDark(l,u)&&d++,e.isDark(l+1,u)&&d++,e.isDark(l,u+1)&&d++,e.isDark(l+1,u+1)&&d++,0!==d&&4!==d||(a+=3)}for(var p=0;p<t;p++)for(var _=0;_<t-6;_++)e.isDark(p,_)&&!e.isDark(p,_+1)&&e.isDark(p,_+2)&&e.isDark(p,_+3)&&e.isDark(p,_+4)&&!e.isDark(p,_+5)&&e.isDark(p,_+6)&&(a+=40);for(var m=0;m<t;m++)for(var f=0;f<t-6;f++)e.isDark(f,m)&&!e.isDark(f+1,m)&&e.isDark(f+2,m)&&e.isDark(f+3,m)&&e.isDark(f+4,m)&&!e.isDark(f+5,m)&&e.isDark(f+6,m)&&(a+=40);for(var h=0,g=0;g<t;g++)for(var v=0;v<t;v++)e.isDark(v,g)&&h++;var b=Math.abs(100*h/t/t-50)/5;return a+=10*b,a}}]),e}(),d=function(){"use strict";function e(){n(this,e),r(this,"EXP_TABLE",new Array(256)),r(this,"LOG_TABLE",new Array(256));for(var t=0;t<8;t++)this.EXP_TABLE[t]=1<<t;for(var a=8;a<256;a++)this.EXP_TABLE[a]=this.EXP_TABLE[a-4]^this.EXP_TABLE[a-5]^this.EXP_TABLE[a-6]^this.EXP_TABLE[a-8];for(var s=0;s<255;s++)this.LOG_TABLE[this.EXP_TABLE[s]]=s}return s(e,[{key:"glog",value:function(e){if(e<1)throw new Error("glog("+e+")");return this.LOG_TABLE[e]}},{key:"gexp",value:function(e){while(e<0)e+=255;while(e>=256)e-=255;return this.EXP_TABLE[e]}}]),e}(),p=function(){"use strict";function e(t,a){if(n(this,e),r(this,"math",void 0),r(this,"num",void 0),this.math=new d,void 0===t.length)throw new Error(t.length+"/"+a);var s=0;while(s<t.length&&0===t[s])s++;this.num=new Array(t.length-s+a);for(var i=0;i<t.length-s;i++)this.num[i]=t[i+s]}return s(e,[{key:"get",value:function(e){return this.num[e]}},{key:"getLength",value:function(){return this.num.length}},{key:"multiply",value:function(t){for(var a=new Array(this.getLength()+t.getLength()-1),n=0;n<this.getLength();n++)for(var s=0;s<t.getLength();s++)a[n+s]^=this.math.gexp(this.math.glog(this.get(n))+this.math.glog(t.get(s)));return new e(a,0)}},{key:"mod",value:function(t){if(this.getLength()-t.getLength()<0)return this;for(var a=this.math.glog(this.get(0))-this.math.glog(t.get(0)),n=new Array(this.getLength()),s=0;s<this.getLength();s++)n[s]=this.get(s);for(var r=0;r<t.getLength();r++)n[r]^=this.math.gexp(this.math.glog(t.get(r))+a);return new e(n,0).mod(t)}}]),e}(),_=function(){"use strict";function e(t,a){n(this,e),r(this,"RS_BLOCK_TABLE",[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]]),r(this,"dataCount",void 0),r(this,"totalCount",void 0),this.totalCount=t,this.dataCount=a}return s(e,[{key:"getRSBlocks",value:function(t,a){var n=this.getRsBlockTable(t,a);if(void 0===n)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+a);for(var s=n.length/3,r=[],i=0;i<s;i++)for(var o=n[3*i],c=n[3*i+1],l=n[3*i+2],u=0;u<o;u++)r.push(new e(c,l));return r}},{key:"getRsBlockTable",value:function(e,t){switch(t){case o.L:return this.RS_BLOCK_TABLE[4*(e-1)];case o.M:return this.RS_BLOCK_TABLE[4*(e-1)+1];case o.Q:return this.RS_BLOCK_TABLE[4*(e-1)+2];case o.H:return this.RS_BLOCK_TABLE[4*(e-1)+3];default:return}}}]),e}(),m=function(){"use strict";function e(){n(this,e),r(this,"buffer",void 0),r(this,"length",void 0),this.buffer=[],this.length=0}return s(e,[{key:"get",value:function(e){var t=Math.floor(e/8);return 1===(this.buffer[t]>>>7-e%8&1)}},{key:"put",value:function(e,t){for(var a=0;a<t;a++)this.putBit(1===(e>>>t-a-1&1))}},{key:"getLengthInBits",value:function(){return this.length}},{key:"putBit",value:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}}]),e}(),f=function(){"use strict";function e(t,a){n(this,e),r(this,"_bIsPainted",void 0),r(this,"_el",void 0),r(this,"_elCanvas",void 0),r(this,"_elImage",void 0),r(this,"_fFail",void 0),r(this,"_fSuccess",void 0),r(this,"_htOption",void 0),r(this,"_oContext",void 0),this._bIsPainted=!1,this._htOption=a,this._elCanvas=document.createElement("canvas"),this._elCanvas.width=a.width,this._elCanvas.height=a.height,t.appendChild(this._elCanvas),this._el=t,this._oContext=this._elCanvas.getContext("2d"),this._bIsPainted=!1,this._elImage=document.createElement("img"),this._elImage.alt="Scan me!",this._elImage.style.display="none",this._el.appendChild(this._elImage),this._bSupportDataURI=null}return s(e,[{key:"_onMakeImage",value:function(){this._elImage.src=this._elCanvas.toDataURL("image/png"),this._elImage.style.display="block",this._elCanvas.style.display="none"}},{key:"_safeSetDataURI",value:function(e,t){var a=this;if(a._fFail=t,a._fSuccess=e,null===a._bSupportDataURI){var n=document.createElement("img"),s=function(){a._bSupportDataURI=!1,a._fFail&&a._fFail.call(a)},r=function(){a._bSupportDataURI=!0,a._fSuccess&&a._fSuccess.call(a)};n.onabort=s,n.onerror=s,n.onload=r,n.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="}else!0===a._bSupportDataURI&&a._fSuccess?a._fSuccess.call(a):!1===a._bSupportDataURI&&a._fFail&&a._fFail.call(a)}},{key:"draw",value:function(e){var t=this._elImage,a=this._oContext,n=this._htOption,s=e.getModuleCount(),r=n.width/s,i=n.height/s,o=Math.round(r),c=Math.round(i);t.style.display="none",this.clear();for(var l=0;l<s;l++)for(var u=0;u<s;u++){var d=e.isDark(l,u),p=u*r,_=l*i;a.strokeStyle=d?n.colorDark:n.colorLight,a.lineWidth=1,a.fillStyle=d?n.colorDark:n.colorLight,a.fillRect(p,_,r,i),a.strokeRect(Math.floor(p)+.5,Math.floor(_)+.5,o,c),a.strokeRect(Math.ceil(p)-.5,Math.ceil(_)-.5,o,c)}this._bIsPainted=!0}},{key:"makeImage",value:function(){this._bIsPainted&&this._safeSetDataURI.call(this,this._onMakeImage)}},{key:"clear",value:function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1}},{key:"round",value:function(e){return e?Math.floor(1e3*e)/1e3:e}}]),e}(),h=function(){"use strict";function e(t,a){n(this,e),r(this,"_el",void 0),r(this,"_htOption",void 0),this._el=t,this._htOption=a}return s(e,[{key:"clear",value:function(){while(this._el.hasChildNodes())this._el.removeChild(this._el.lastChild)}},{key:"draw",value:function(e){var t=this._htOption,a=this._el,n=e.getModuleCount();this.clear();var s=this.makeSVG("svg",{viewBox:"0 0 "+String(n)+" "+String(n),width:"100%",height:"100%",fill:t.colorLight});s.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),a.appendChild(s),s.appendChild(this.makeSVG("rect",{fill:t.colorLight,width:"100%",height:"100%"})),s.appendChild(this.makeSVG("rect",{fill:t.colorDark,width:"1",height:"1",id:"template"}));for(var r=0;r<n;r++)for(var i=0;i<n;i++)if(e.isDark(r,i)){var o=this.makeSVG("use",{x:String(i),y:String(r)});o.setAttributeNS("http://www.w3.org/1999/xlink","href","#template"),s.appendChild(o)}}},{key:"makeSVG",value:function(e,t){var a=document.createElementNS("http://www.w3.org/2000/svg",e);for(var n in Object.keys(t))a.setAttribute(n,t[n]);return a}}]),e}(),g=function(){"use strict";function e(t,a){n(this,e),r(this,"_el",void 0),r(this,"_htOption",void 0),this._el=t,this._htOption=a}return s(e,[{key:"clear",value:function(){this._el.innerHTML=""}},{key:"draw",value:function(e){for(var t=this._htOption,a=this._el,n=e.getModuleCount(),s=Math.floor(t.width/n),r=Math.floor(t.height/n),i=['<table style="border:0;border-collapse:collapse;">'],o=0;o<n;o++){i.push("<tr>");for(var c=0;c<n;c++)i.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+s+"px;height:"+r+"px;background-color:"+(e.isDark(o,c)?t.colorDark:t.colorLight)+';"></td>');i.push("</tr>")}i.push("</table>"),a.innerHTML=i.join("");var l=a.childNodes[0],u=(t.width-l.offsetWidth)/2,d=(t.height-l.offsetHeight)/2;u>0&&d>0&&(l.style.margin=d+"px "+u+"px")}}]),e}(),v=function(){"use strict";function e(t,a){if(n(this,e),r(this,"_el",void 0),r(this,"_htOption",void 0),r(this,"_oDrawing",void 0),r(this,"_oQRCode",void 0),r(this,"CorrectLevel",void 0),r(this,"model",void 0),r(this,"useSvg",void 0),r(this,"QRCodeLimitLength",[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]]),this.model=new l,this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:o.H},"string"===typeof a&&(a={text:a}),a)for(var s in a)this._htOption[s]=a[s];"string"==typeof t&&(t=document.getElementById(t)),this.useSvg="svg"===document.documentElement.tagName.toLowerCase(),this._el=t,this._oQRCode=null,this._oDrawing=this.initializeDrawing(this._el,this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)}return s(e,[{key:"_isSupportCanvas",value:function(){return"undefined"!=typeof CanvasRenderingContext2D}},{key:"initializeDrawing",value:function(e,t){var a=null;return a=this.useSvg?new h(e,t):this._isSupportCanvas()?new f(e,t):new g(e,t),a}},{key:"makeCode",value:function(e){this._oQRCode=new l(this._getTypeNumber(e,this._htOption.correctLevel),this._htOption.correctLevel),this._oQRCode.addData(e),this._oQRCode.make(),this._el.title=e,this._oDrawing.draw(this._oQRCode),this.makeImage()}},{key:"makeImage",value:function(){"function"===typeof this._oDrawing.makeImage&&this._oDrawing.makeImage()}},{key:"_getTypeNumber",value:function(e,t){for(var a=1,n=this._getUTF8Length(e),s=0,r=this.QRCodeLimitLength.length;s<=r;s++){var i=0;switch(t){case o.L:i=this.QRCodeLimitLength[s][0];break;case o.M:i=this.QRCodeLimitLength[s][1];break;case o.Q:i=this.QRCodeLimitLength[s][2];break;case o.H:i=this.QRCodeLimitLength[s][3];break}if(n<=i)break;a++}if(a>this.QRCodeLimitLength.length)throw new Error("Too long data");return a}},{key:"_getUTF8Length",value:function(e){var t=encodeURI(e).toString().replace(/%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!==e?3:0)}}]),e}(),b=function(){"use strict";function e(){n(this,e),r(this,"init",!1),this.init=!0}return s(e,[{key:"generateCode",value:function(e,t){return new v(e,t)}},{key:"getErrorLevels",value:function(){return o}}]),e}();t.qrCode=new b},b760:function(e,t,a){e.exports=a.p+"img/lipse_b.711bea85.png"},b767:function(e,t,a){},b77e:function(e,t,a){e.exports=a.p+"img/ncrc550_g.60775f11.png"},b846:function(e,t,a){e.exports=a.p+"img/vvaun_r.dfac37f7.png"},b866:function(e,t,a){e.exports=a.p+"img/stock_4.abcf5c6f.png"},b882:function(e,t,a){e.exports=a.p+"img/unio_3.f901e990.png"},b8cd:function(e,t,a){e.exports=a.p+"img/t&tb_1.292cfba6.png"},b93f:function(e,t,a){},b961:function(e,t,a){e.exports=a.p+"img/glibn_1.e0b91461.png"},b9d1:function(e,t,a){e.exports=a.p+"img/woto_6.0b03b4ae.png"},b9ed:function(e,t,a){e.exports=a.p+"img/mojo_2.c140d317.png"},ba09:function(e,t,a){},ba15:function(e,t,a){e.exports=a.p+"img/eh_1.070ce4c2.png"},baa6:function(e,t,a){e.exports=a.p+"img/bhlib_3.83a9039c.png"},bb42:function(e,t,a){e.exports=a.p+"img/pmh_2.d7a9fd12.png"},bb54:function(e,t,a){e.exports=a.p+"img/weill_3.5f297c21.png"},bb6a:function(e,t,a){e.exports=a.p+"img/vb2_z1.302113ab.png"},bba4:function(e,t,a){e.exports=a.p+"img/burs_1.7c1b179d.png"},bbb0:function(e,t,a){e.exports=a.p+"img/ewre_1.1e499679.png"},bbde:function(e,t,a){e.exports=a.p+"img/vbeat_b.f1dc5ff6.png"},bc5d:function(e,t,a){e.exports=a.p+"img/snb_4.039ceec5.png"},bce9:function(e,t,a){"use strict";a("0bbe")},bdaa:function(e,t,a){e.exports=a.p+"img/1327g_2.98ace6bb.png"},bdbf:function(e,t,a){e.exports=a.p+"img/sinfn_3.483c3c02.png"},bdef:function(e,t,a){"use strict";a("570e")},be10:function(e,t,a){e.exports=a.p+"img/arg2_2.a0efc223.png"},be42:function(e,t,a){e.exports=a.p+"img/vb2_cs1.a0fab697.png"},be50:function(e,t,a){e.exports=a.p+"img/nh_b.1d51ff59.png"},beaa:function(e,t,a){e.exports=a.p+"img/ncrc018_r.47f7274b.png"},beaa8:function(e,t,a){e.exports=a.p+"img/ncrc550_3.a69944d9.png"},beae:function(e,t,a){e.exports=a.p+"img/wbus_1.601e123f.png"},becb:function(e,t,a){e.exports=a.p+"img/bmt_4.c0ea619e.png"},bece:function(e,t,a){e.exports=a.p+"img/ewre_2.c93e91df.png"},bf01:function(e,t,a){e.exports=a.p+"img/sph2_1.c26130a1.png"},bf29:function(e,t,a){e.exports=a.p+"img/1000v_3.fa8ec9f5.png"},bf2e:function(e,t,a){e.exports=a.p+"img/mh_2.afc2d05d.png"},bf4b:function(e,t,a){e.exports=a.p+"img/mcpk_5.75c1572e.png"},bf61:function(e,t,a){e.exports=a.p+"img/wq_4.963c7f61.png"},bfbb:function(e,t,a){e.exports=a.p+"img/aab_1.ee2d31b7.png"},bfdd:function(e,t,a){e.exports=a.p+"img/fxb_2.005f5c0e.png"},bfe4:function(e,t,a){e.exports=a.p+"img/aab_4.a74623c2.png"},c00d:function(e,t,a){e.exports=a.p+"img/nh_sb.53ac774a.png"},c030:function(e,t,a){e.exports=a.p+"img/woto_9.44a0aab6.png"},c0a2:function(e,t,a){e.exports=a.p+"img/fab_1m.5dde425f.png"},c0a7:function(e,t,a){e.exports=a.p+"img/lsi_4.10e16845.png"},c0d9:function(e,t,a){e.exports=a.p+"img/sph1_6.04b99f31.png"},c120:function(e,t,a){e.exports=a.p+"img/woto_b.cea241ac.png"},c12f:function(e,t,a){e.exports=a.p+"img/vb2_cr2.f1013bf4.png"},c188:function(e,t,a){e.exports=a.p+"img/buhr_r.95078f91.png"},c1ea:function(e,t,a){e.exports=a.p+"img/mojo_1.0cc1af34.png"},c1f4:function(e,t,a){e.exports=a.p+"img/stock_6.8e6e871f.png"},c22f:function(e,t,a){e.exports=a.p+"img/imsb_b.d889d8bc.png"},c264:function(e,t,a){e.exports=a.p+"img/bt_12.44269800.png"},c265:function(e,t,a){"use strict";a("a33d")},c29c:function(e,t,a){e.exports=a.p+"img/exres_4.a29ca921.png"},c2e1:function(e,t,a){e.exports=a.p+"img/ulib_1.d18204d9.png"},c2e4:function(e,t,a){e.exports=a.p+"img/vb2_z4.a3ceb4bb.png"},c32a:function(e,t,a){e.exports=a.p+"img/fab_b.374f30e8.png"},c3d1:function(e,t,a){e.exports=a.p+"img/ncrc550_2.7d6fb0ba.png"},c41e:function(e,t,a){e.exports=a.p+"img/lorch_1m.40e0e27c.png"},c423:function(e,t,a){e.exports=a.p+"img/vbstn_4.d952522a.png"},c432:function(e,t,a){e.exports=a.p+"img/dow_1m.aecd9e37.png"},c4be:function(e,t,a){e.exports=a.p+"img/nh_1.c9ec5d15.png"},c4d2:function(e,t,a){},c510:function(e,t,a){e.exports=a.p+"img/cook_1m.00b70fab.png"},c541:function(e,t,a){e.exports=a.p+"img/1327g_b.618d0371.png"},c5d0:function(e,t,a){e.exports=a.p+"img/stb_5.692f903d.png"},c5d8:function(e,t,a){e.exports=a.p+"img/weis_9.f30779d7.png"},c5da:function(e,t,a){e.exports=a.p+"img/hartw_4.1a892a6f.png"},c5e4:function(e,t,a){e.exports=a.p+"img/1000v_4.527d7a29.png"},c670:function(e,t,a){e.exports=a.p+"img/glibs_3.1746c11c.png"},c706:function(e,t,a){e.exports=a.p+"img/woto_4.a6cb99a3.png"},c7c0:function(e,t,a){e.exports=a.p+"img/ncrc200_1.001dd9ec.png"},c7d5:function(e,t,a){},c823:function(e,t,a){e.exports=a.p+"img/pharm_5.8c7f8d23.png"},c88a:function(e,t,a){e.exports=a.p+"img/acbh_1.f30a5b5c.png"},c88d:function(e,t,a){e.exports=a.p+"img/ncss_1.44269800.png"},c89d:function(e,t,a){e.exports=a.p+"img/obl_5.b2c5fa69.png"},c8df:function(e,t,a){e.exports=a.p+"img/lsaad_2.6b1248a7.png"},c928:function(e,t,a){e.exports=a.p+"img/stock_ll.36c16b51.png"},c92b:function(e,t,a){e.exports=a.p+"img/vb2_cn2.39c3a16c.png"},c939:function(e,t,a){e.exports=a.p+"img/lec_g.44ca0f87.png"},c953:function(e,t,a){e.exports=a.p+"img/weidn_3.3e540508.png"},c96f:function(e,t,a){e.exports=a.p+"img/317may_2.44269800.png"},c98e:function(e,t,a){"use strict";a("1a76")},c9ee:function(e,t,a){e.exports=a.p+"img/bus_4.3a670975.png"},ca0f:function(e,t,a){e.exports=a.p+"img/sph2_2.f5cbb1c5.png"},ca5d:function(e,t,a){e.exports=a.p+"img/eecs_b.4df8a99c.png"},caee:function(e,t,a){e.exports=a.p+"img/sq_6.ffac49b1.png"},cb6b:function(e,t,a){e.exports=a.p+"img/lec_2.e66d7187.png"},cb79:function(e,t,a){e.exports=a.p+"img/famil_2.30c6742e.png"},cb82:function(e,t,a){e.exports=a.p+"img/weill_6.698b85b6.png"},cba9:function(e,t,a){e.exports=a.p+"img/clemt_2.e9ab2abc.png"},cc8d:function(e,t,a){e.exports=a.p+"img/umma_2.937bd8c5.png"},ccc7:function(e,t,a){e.exports=a.p+"img/sq_g.614fc795.png"},ccf0:function(e,t,a){},cd16:function(e,t,a){e.exports=a.p+"img/mdc_1.87aba630.png"},cd22:function(e,t,a){e.exports=a.p+"img/mh_4.dd9b5e60.png"},cdbe:function(e,t,a){},cdc3:function(e,t,a){e.exports=a.p+"img/stadm_2.6f58fc3c.png"},cddd:function(e,t,a){e.exports=a.p+"img/umtri_1m.bdb3ce96.png"},ce2c:function(e,t,a){e.exports=a.p+"img/llib_9.581ecc60.png"},ce40:function(e,t,a){e.exports=a.p+"img/uhs_sll.85c3fc85.png"},ce50:function(e,t,a){e.exports=a.p+"img/cpp_m1.59a7795d.png"},ceb3:function(e,t,a){e.exports=a.p+"img/stadm_3.ab56259e.png"},cef7:function(e,t,a){e.exports=a.p+"img/sph2_g.a49cdff6.png"},cfd8:function(e,t,a){e.exports=a.p+"img/usb_1.5c1ca87a.png"},d022:function(e,t,a){e.exports=a.p+"img/wbus_3.ee6034d9.png"},d0c2:function(e,t,a){e.exports=a.p+"img/plymthpk_1.44269800.png"},d0d4:function(e,t,a){e.exports=a.p+"img/bsb_4.095c49dc.png"},d0e3:function(e,t,a){e.exports=a.p+"img/ncrc018_c.d19e353d.png"},d0ed:function(e,t,a){e.exports=a.p+"img/lbme_2.441b3cf1.png"},d10d:function(e,t,a){e.exports=a.p+"img/vvaun_g.7b9c6d8e.png"},d1c1:function(e,t,a){e.exports=a.p+"img/blau_3.08abff3c.png"},d296:function(e,t,a){e.exports=a.p+"img/carvr_2.199c318b.png"},d29f:function(e,t,a){},d308:function(e,t,a){e.exports=a.p+"img/power_2.7f7a3986.png"},d33a:function(e,t,a){e.exports=a.p+"img/sph1_2.033d3df2.png"},d358:function(e,t,a){e.exports=a.p+"img/mmark_r.688e0a09.png"},d370:function(e,t,a){e.exports=a.p+"img/pier_2.9f1dd29d.png"},d39b:function(e,t,a){e.exports=a.p+"img/ehurn_1.6fad461d.png"},d3a6:function(e,t,a){e.exports=a.p+"img/ncrc020_g.5e8aafb9.png"},d3ad:function(e,t,a){},d411:function(e,t,a){e.exports=a.p+"img/sltst_1.e9323b6a.png"},d41a:function(e,t,a){"use strict";a("d3ad")},d442:function(e,t,a){e.exports=a.p+"img/ross_1.8f4dc66e.png"},d44b:function(e,t,a){e.exports=a.p+"img/1nm_5.853df27a.png"},d52b:function(e,t,a){e.exports=a.p+"img/weis_1.70209f90.png"},d557:function(e,t,a){e.exports=a.p+"img/alb3_4.2c86f365.png"},d57a:function(e,t,a){},d58e:function(e,t,a){e.exports=a.p+"img/palm_1.adc74368.png"},d598:function(e,t,a){e.exports=a.p+"img/fishr_m.c3cd4bbb.png"},d5b7:function(e,t,a){e.exports=a.p+"img/ssw_4.78f20e7b.png"},d6c3:function(e,t,a){e.exports=a.p+"img/playc_1.6a1c6367.png"},d6d6:function(e,t,a){e.exports=a.p+"img/unauth_user_popup.70d03fa3.png"},d6d68:function(e,t,a){e.exports=a.p+"img/stock_1.8056e8bd.png"},d6dc:function(e,t,a){e.exports=a.p+"img/mungr_1.71892344.png"},d752:function(e,t,a){var n={"./1000v/1000v_1.png":"092b","./1000v/1000v_2.png":"4a9f","./1000v/1000v_3.png":"bf29","./1000v/1000v_4.png":"c5e4","./1327g/1327g_1.png":"e733","./1327g/1327g_2.png":"bdaa","./1327g/1327g_3.png":"ebf3","./1327g/1327g_b.png":"c541","./1443w/1443w_1.png":"9ec3","./1443w/1443w_2.png":"5a13","./1443w/1443w_3.png":"18f8","./1443w/1443w_b.png":"2105","./1443w/1443w_g.png":"2f90","./1443w/1443w_r.png":"b5c3","./1nm/1nm_5.png":"d44b","./1nm/1nm_6.png":"8699","./1nm/1nm_8.png":"faae","./300ni/300ni_10.png":"3a9c","./317may/317may_2.png":"c96f","./317may/317may_ll.png":"7dbf","./523di/523di_1.png":"0f72","./523di/523di_2.png":"2566","./523di/523di_3.png":"a383","./aab/aab_1.png":"bfbb","./aab/aab_2.png":"7195","./aab/aab_3.png":"67b6","./aab/aab_4.png":"bfe4","./acbh/acbh_1.png":"c88a","./acbh/acbh_b.png":"2eee","./advlead/advlead_1.png":"1fe2","./aep/aep_1.png":"8fe0","./aepr/aepr_1.png":"32fe","./aepr/aepr_1m.png":"1df4","./aepr/aepr_r.png":"b5b8","./agrmu/agrmu_1.png":"9695","./agrmu/agrmu_2.png":"32ee","./agrmu/agrmu_3.png":"3e1d","./agrmu/agrmu_4.png":"69ff","./agrmu/agrmu_b.png":"5341","./agrmu/agrmu_sb.png":"53b9","./agrmu/agrmu_sbm.png":"9454","./ah/ah_1.png":"5134","./ah/ah_2.png":"2651","./ah/ah_3.png":"963f","./ah/ah_4.png":"0d7d","./ah/ah_5.png":"32fd","./ah/ah_6.png":"9257","./ah/ah_g.png":"dc2b","./ah/ah_ll.png":"3625","./alb1/alb1_1.png":"8a73","./alb1/alb1_2.png":"4221a","./alb2/alb2_1.png":"f2da","./alb2/alb2_2.png":"6955","./alb2/alb2_3.png":"11e9","./alb2/alb2_4.png":"dbe7","./alb2/alb2_b.png":"8562","./alb3/alb3_1.png":"1c16","./alb3/alb3_2.png":"a237","./alb3/alb3_3.png":"e39b","./alb3/alb3_4.png":"d557","./alb3/alb3_b.png":"377e","./alh/alh_1.png":"74a6","./alh/alh_ll.png":"182e","./arbg/arbg_1.png":"6a27","./arg1/arg1_3.png":"9055","./arg2/arg2_1.png":"225d","./arg2/arg2_2.png":"be10","./asb/asb_1.png":"4859","./asb/asb_2.png":"f812","./asb/asb_3.png":"b09a","./auxs1/auxs1_1.png":"3c21","./auxs1/auxs1_2.png":"6484","./bbar/bbar_1.png":"2368","./bbar/bbar_2.png":"f666","./bbar/bbar_3.png":"adfd","./bbar/bbar_4.png":"3637","./bbar/bbar_ll.png":"4045","./bbar/bbar_r.png":"e6d6","./bgres/bgres_1.png":"da23","./bhlib/bhlib_1.png":"7ce9","./bhlib/bhlib_2.png":"b454","./bhlib/bhlib_3.png":"baa6","./blau/blau_1.png":"5a15","./blau/blau_2.png":"3ea1","./blau/blau_3.png":"d1c1","./blau/blau_4.png":"9000","./blau/blau_5.png":"ddbf","./blau/blau_6.png":"0c6b","./blau/blau_b.png":"9d5d","./bmt/bmt_1.png":"0f85","./bmt/bmt_10.png":"1ec2","./bmt/bmt_11.png":"177e","./bmt/bmt_2.png":"7e69","./bmt/bmt_3.png":"5d04","./bmt/bmt_4.png":"becb","./bmt/bmt_5.png":"ea53","./bmt/bmt_6.png":"dfc1","./bmt/bmt_7.png":"4d72","./bmt/bmt_8.png":"ae21","./bmt/bmt_9.png":"e2e5","./bmt/bmt_b.png":"e8a6","./boye/boye_1.png":"0375","./boye/boye_2.png":"3e76","./boye/boye_b.png":"8dd0","./bsb/bsb_1.png":"94b2","./bsb/bsb_2.png":"1328","./bsb/bsb_3.png":"2cf5","./bsb/bsb_4.png":"d0d4","./bsb/bsb_5.png":"6935","./bsb/bsb_6.png":"2c5e","./bsb/bsb_b.png":"00e6","./bsb/bsb_sb.png":"95cc","./bsrb/bsrb_1.png":"9852","./bt/bt_12.png":"c264","./buhr/buhr_1.png":"80af","./buhr/buhr_2.png":"9433","./buhr/buhr_3.png":"1fcd","./buhr/buhr_4.png":"9b2c","./buhr/buhr_r.png":"c188","./burnh/burnh_1.png":"857b","./burnh/burnh_2.png":"8245","./burnh/burnh_b.png":"6fe3","./burs/burs_1.png":"bba4","./burs/burs_2.png":"6204","./burs/burs_3.png":"e17c","./burs/burs_4.png":"d846","./burs/burs_5.png":"76ea","./burs/burs_6.png":"09e0","./burs/burs_7.png":"faf2","./burs/burs_8.png":"1126","./burs/burs_ll.png":"f0d0","./bus/bus_1.png":"2f8c","./bus/bus_2.png":"3982","./bus/bus_3.png":"b460","./bus/bus_4.png":"c9ee","./bus/bus_5.png":"0db6","./bus/bus_6.png":"8163","./bus/bus_7.png":"0d2d","./bus/bus_b.png":"99c2","./bus/bus_sb.png":"ef6b","./bystr/bystr_1.png":"532e","./bystr/bystr_2.png":"45c5","./bystr/bystr_3.png":"57a6","./bystr/bystr_4.png":"8900","./bystr/bystr_5.png":"5def","./canhm/canhm_1.png":"edc2","./canhm/canhm_2.png":"8023","./canhm/canhm_b.png":"8eb4","./cart.png":"e5a0","./carvr/carvr_1.png":"928f","./carvr/carvr_2.png":"d296","./carvr/carvr_3.png":"0231","./ccrb/ccrb_1.png":"e068","./ccrb/ccrb_2.png":"adc3","./ccrb/ccrb_3.png":"9862","./ccrb/ccrb_4.png":"60c3","./ccrb/ccrb_5.png":"f91f","./ccrb/ccrb_6.png":"4d88","./ccrb/ccrb_r.png":"dca3","./chem/chem_1.png":"537d","./chem/chem_2.png":"4ed5","./chem/chem_3.png":"479a","./chem/chem_4.png":"4406","./chem/chem_5.png":"f8a2","./chem/chem_b.png":"ebe9","./chrys/chrys_1.png":"291e","./chrys/chrys_2.png":"0c6e","./clemt/clemt_1.png":"365d","./clemt/clemt_2.png":"cba9","./clemt/clemt_3.png":"13e2","./clemt/clemt_b.png":"2792","./clemt/clemt_g.png":"5a60","./clemt/clemt_sb.png":"e814","./compass.png":"3afa","./cook/cook_1.png":"3e0f","./cook/cook_1m.png":"c510","./cook/cook_2.png":"0cd4","./cook/cook_3.png":"4da9","./cook/cook_4.png":"5cef8","./cook/cook_5.png":"47b5","./cook/cook_ll.png":"a9f6","./cook/cook_r.png":"74a5","./cool/cool_1.png":"f129","./cool/cool_2.png":"6b5d","./cool/cool_b.png":"9f76","./cool/cool_g.png":"294f","./couzn/couzn_1.png":"e5a6","./couzn/couzn_2.png":"87be","./couzn/couzn_3.png":"4442","./couzn/couzn_4.png":"56f6","./couzn/couzn_5.png":"f0fa","./couzn/couzn_6.png":"7d06","./couzn/couzn_7.png":"fd8c","./couzn/couzn_7m.png":"8bd9","./couzn/couzn_8.png":"a4d0","./couzn/couzn_ll.png":"7832","./couzn/couzn_r.png":"64b6","./cpp/cpp_1.png":"2299","./cpp/cpp_2.png":"298b","./cpp/cpp_b.png":"b12f","./cpp/cpp_m1.png":"ce50","./cpp/cpp_m2.png":"8924","./cpp/cpp_m3.png":"ac42","./cssb/cssb_1.png":"6356","./cssb/cssb_2.png":"33dd","./cssb/cssb_b.png":"9e71","./dana/dana_1.png":"2cba","./dana/dana_2.png":"7fcb","./dana/dana_3.png":"39fc","./dana/dana_4.png":"5e1c","./dana/dana_g.png":"453c","./dance/dance_1.png":"42ea","./dance/dance_2.png":"12ad","./dc/dc_1.png":"5079","./dc/dc_2.png":"8f73","./dc/dc_3.png":"8b64","./dc/dc_b.png":"9ca5","./dc/dc_r.png":"146a","./dent/dent_1.png":"ad03","./dent/dent_2.png":"abe5","./dent/dent_3.png":"6fe1","./dent/dent_b.png":"b011","./dent/dent_g.png":"708f","./dow/dow_1.png":"373b","./dow/dow_1m.png":"c432","./dow/dow_2.png":"9965","./dow/dow_3.png":"e1fb","./dow/dow_4.png":"5779","./drtf/drtf_1.png":"3970","./eecs/eecs_1.png":"4ccd","./eecs/eecs_2.png":"abbd","./eecs/eecs_3.png":"4480","./eecs/eecs_4.png":"acf2","./eecs/eecs_5.png":"78de","./eecs/eecs_b.png":"ca5d","./eflb/eflb_1.png":"0d3f","./eflb/eflb_ll.png":"deac","./eh/eh_1.png":"ba15","./eh/eh_2.png":"6f77","./eh/eh_3.png":"8458","./eh/eh_4.png":"700b","./eh/eh_4m.png":"6c98","./eh/eh_5.png":"0739","./eh/eh_5m.png":"0a28","./eh/eh_b.png":"f5ed","./ehurn/ehurn_1.png":"d39b","./ehurn/ehurn_2.png":"dec9","./ehurn/ehurn_3.png":"41b6","./ehurn/ehurn_b.png":"b635","./ehurn/ehurn_r.png":"07b4","./eq/eq_1.png":"a956","./eq/eq_2.png":"9c76","./eq/eq_3.png":"8fa2","./eq/eq_4.png":"b3b8","./eq/eq_ll.png":"6d12","./eq/eq_sll.png":"a60b","./equip/equip_1.png":"640f","./ewre/ewre_1.png":"bbb0","./ewre/ewre_2.png":"bece","./ewre/ewre_g.png":"03dd","./exres/exres_1.png":"ded8","./exres/exres_2.png":"9992","./exres/exres_3.png":"694d","./exres/exres_4.png":"c29c","./exres/exres_5.png":"85a6","./exres/exres_6.png":"603c","./exres/exres_7.png":"5d11","./exres/exres_8.png":"3bdf","./exres/exres_9.png":"653d","./exres/exres_b.png":"aead","./fab/fab_1.png":"019b","./fab/fab_1m.png":"c0a2","./fab/fab_2.png":"1bfe","./fab/fab_3.png":"2eb8","./fab/fab_4.png":"6e37","./fab/fab_5.png":"da41","./fab/fab_6.png":"33fe","./fab/fab_7.png":"e64b","./fab/fab_b.png":"c32a","./famil/famil_1.png":"255c","./famil/famil_2.png":"cb79","./fishr/fishr_1.png":"2a66","./fishr/fishr_2.png":"efd8","./fishr/fishr_m.png":"d598","./fjsdo/fjsdo_1.png":"27a0","./fjsdo/fjsdo_2.png":"686b","./fletc/fletc_1.png":"04b5","./fletc/fletc_2.png":"8d05","./fletc/fletc_3.png":"4f32","./fletc/fletc_b.png":"4475","./fmcrb/fmcrb_1.png":"0e0c","./fmcrb/fmcrb_2.png":"ad37","./fmcrb/fmcrb_3.png":"5a13d","./fmcrb/fmcrb_4.png":"b486","./forst/forst_1.png":"e188","./forst/forst_b.png":"acbc","./fsba/fsba_1.png":"2eef","./fsba/fsba_1m.png":"8395","./fsbb/fsbb_g.png":"dd8e","./fsbc/fsbc_1.png":"b66a","./fsbc/fsbc_1m.png":"eda5","./fxb/fxb_1.png":"b6e6c","./fxb/fxb_2.png":"bfdd","./fxb/fxb_3.png":"a935","./fxb/fxb_b.png":"f57a","./gcchs/gcchs_1.png":"4432","./gcchs/gcchs_2.png":"30c6","./gcchs/gcchs_b.png":"b0fd","./gcchs/gcchs_r.png":"f837","./gflab/gflab_1.png":"7ec0","./gflab/gflab_2.png":"2dfa","./gflab/gflab_3.png":"ea92","./ggbl/ggbl_1.png":"fcb7","./ggbl/ggbl_2.png":"ffc9","./ggbl/ggbl_3.png":"3247","./ggbl/ggbl_4.png":"701d","./ggbl/ggbl_b.png":"7fcb4","./glibn/glibn_1.png":"b961","./glibn/glibn_1a.png":"4384","./glibn/glibn_2.png":"ab48","./glibn/glibn_2a.png":"8ab6","./glibn/glibn_3.png":"688c","./glibn/glibn_3a.png":"7899","./glibn/glibn_4.png":"90db","./glibn/glibn_5.png":"8790","./glibn/glibn_b.png":"45d8","./glibn/glibn_ba.png":"9786","./glibs/glibs_1.png":"f87f","./glibs/glibs_2.png":"782b","./glibs/glibs_3.png":"c670","./glibs/glibs_4.png":"4653","./glibs/glibs_5.png":"500a","./glibs/glibs_6.png":"654d","./glibs/glibs_7.png":"0542","./glibs/glibs_8.png":"fd4c","./glibs/glibs_9.png":"af0a","./glibs/glibs_b.png":"e1b5","./glick/glick_1.png":"207f","./glick/glick_1m.png":"9723","./glick/glick_2.png":"6fa2","./grn/grn_1.png":"8581","./grn/grn_b.png":"522a","./hartw/hartw_0.png":"f8bc","./hartw/hartw_1.png":"2c42","./hartw/hartw_2.png":"3cb4","./hartw/hartw_3.png":"7499","./hartw/hartw_4.png":"c5da","./hh/hh_1.png":"e671","./hh/hh_2.png":"2c3e","./hh/hh_3.png":"e30a","./hh/hh_4.png":"2df5","./hh/hh_5.png":"8a3a","./hh/hh_6.png":"3a9e","./hh/hh_7.png":"7ae8","./hh/hh_8.png":"1475","./hh/hh_9.png":"f0dd","./hh/hh_b.png":"6cf9","./hh/hh_g.png":"7824","./hill/hill_1.png":"60ab","./hvran/hvran_1.png":"8435","./imsb/imsb_1.png":"9799","./imsb/imsb_2.png":"8eac","./imsb/imsb_3.png":"e80c","./imsb/imsb_b.png":"c22f","./imsb/imsb_g.png":"9ee9","./imsb/imsb_gm.png":"693b","./ioe/ioe_1.png":"5f3f","./ioe/ioe_2.png":"8f5c","./ioe/ioe_g.png":"df8d","./istco/istco_1.png":"22ab","./istlw/istlw_1.png":"abe3","./keen/keen_1.png":"1b98","./keen/keen_2.png":"ebfc","./keen/keen_b.png":"f4cb","./keen/keen_m.png":"f9af","./keyo/keyo_1.png":"1741","./keyo/keyo_2.png":"fab8","./keyo/keyo_3.png":"e06f","./keyo/keyo_4.png":"90b6","./keyo/keyo_5.png":"7b74","./kines/kines_1.png":"ff97","./kines/kines_2.png":"f051","./kines/kines_3.png":"5cdc","./kines/kines_4.png":"900e","./kma/kma_2.png":"7215","./kma/kma_3.png":"3583","./lane/lane_1.png":"2a30","./lane/lane_2.png":"b102","./lane/lane_g.png":"3cbe","./lawc/lawc_1.png":"24e8","./lawc/lawc_2.png":"e739","./lawc/lawc_3.png":"b2be","./lawc/lawc_4.png":"019c","./lawc/lawc_5.png":"3048","./lawc/lawc_ll.png":"faf6","./lawc/lawc_r.png":"0046","./lbme/lbme_1.png":"f512","./lbme/lbme_2.png":"d0ed","./lbme/lbme_3.png":"610d","./leag/leag_1.png":"9784","./leag/leag_2.png":"6d6b","./leag/leag_3.png":"0051","./leag/leag_4.png":"f047","./leag/leag_5.png":"de21","./leag/leag_6.png":"e5b8","./leag/leag_ll.png":"7859","./lec/lec_1.png":"04aa","./lec/lec_2.png":"cb6b","./lec/lec_3.png":"a465","./lec/lec_4.png":"47a3","./lec/lec_5.png":"64ba","./lec/lec_g.png":"c939","./lec/lec_r.png":"ab4f","./lipse/lipse_1.png":"de43","./lipse/lipse_2.png":"633e","./lipse/lipse_b.png":"b760","./llib/llib_1.png":"030a","./llib/llib_10.png":"2de6","./llib/llib_11.png":"1227","./llib/llib_2.png":"e0b3","./llib/llib_3.png":"3090","./llib/llib_4.png":"a65f","./llib/llib_5.png":"dae4","./llib/llib_6.png":"7b5e","./llib/llib_7.png":"7986","./llib/llib_8.png":"77e0","./llib/llib_9.png":"ce2c","./llib/llib_s1.png":"b638","./llib/llib_s2.png":"666e","./llib/llib_s3.png":"fa09","./lnwbr/lnwbr_1.png":"5cb2","./lorch/lorch_1.png":"85fd","./lorch/lorch_1m.png":"c41e","./lorch/lorch_2.png":"a694","./lorch/lorch_3.png":"4339","./lorch/lorch_4.png":"1167","./lorch/lorch_5.png":"fc6b","./lorch/lorch_5m.png":"09ab","./lorch/lorch_6.png":"0c4a","./lorch/lorch_6m.png":"8487","./lorch/lorch_b.png":"1246","./lsa/lsa_1.png":"2c4c","./lsa/lsa_2.png":"4fc4","./lsa/lsa_3.png":"2272","./lsa/lsa_4.png":"fdfa","./lsa/lsa_5.png":"03c6","./lsa/lsa_6.png":"9ab1","./lsa/lsa_7.png":"4294","./lsa/lsa_b.png":"2285","./lsa/lsa_r.png":"2383","./lsaad/lsaad_1.png":"4c43","./lsaad/lsaad_2.png":"c8df","./lsaad/lsaad_3.png":"d8ab","./lsaad/lsaad_b.png":"42f2","./lsi/lsi_1.png":"230a","./lsi/lsi_2.png":"2dfe","./lsi/lsi_3.png":"aa68","./lsi/lsi_4.png":"c0a7","./lsi/lsi_5.png":"ee6b","./lsi/lsi_6.png":"1bd7","./lsi/lsi_7.png":"fd6e","./lsi/lsi_8.png":"3b0e","./lsi/lsi_b.png":"7001","./lsjh/lsjh_1.png":"1fe9","./lsjh/lsjh_2.png":"31aa","./lsjh/lsjh_3.png":"21dc","./lsjh/lsjh_4.png":"81a9","./lsjh/lsjh_5.png":"0376","./lsjh/lsjh_b.png":"41c5","./macc/macc.png":"380f","./macc/macc_1.png":"55c3","./madsn/madsn_1.png":"7af0","./madsn/madsn_2.png":"7aaf","./madsn/madsn_3.png":"ad7c","./map_markers.png":"2ec8","./map_markers_small.png":"06e0","./mcpk/mcpk_1.png":"a903","./mcpk/mcpk_2.png":"19e2","./mcpk/mcpk_3.png":"51f4","./mcpk/mcpk_4.png":"af41","./mcpk/mcpk_5.png":"bf4b","./mcpk/mcpk_6.png":"fb60","./mcpk/mcpk_7.png":"3bcd","./mcpk/mcpk_8.png":"5648","./mctc2/mctc2_1.png":"81f2","./mdc/mdc_1.png":"cd16","./mgfg/mgfg_1.png":"0594","./mh/mh_1.png":"79af","./mh/mh_2.png":"bf2e","./mh/mh_3.png":"0306","./mh/mh_4.png":"cd22","./mh/mh_5.png":"0db0","./mh/mh_b.png":"96c8","./mh/mh_g.png":"a44b","./mini.png":"004c","./mlb/mlb_1.png":"1ed0","./mlb/mlb_1m.png":"eefb","./mlb/mlb_2.png":"d92c","./mlb/mlb_3.png":"083e","./mlb/mlb_4.png":"4bc1","./mlb/mlb_5.png":"d957","./mlb/mlb_b.png":"858d","./mmark/mmark_1.png":"1593","./mmark/mmark_2.png":"f374","./mmark/mmark_3.png":"2d45","./mmark/mmark_4.png":"19fe","./mmark/mmark_5.png":"88c1","./mmark/mmark_6.png":"896b","./mmark/mmark_r.png":"d358","./mojo/mojo_1.png":"c1ea","./mojo/mojo_2.png":"b9ed","./mojo/mojo_3.png":"a0d8","./mojo/mojo_4.png":"88f0","./mojo/mojo_5.png":"ebfd","./mojo/mojo_6.png":"721c","./mojo/mojo_ll.png":"fb5a","./mojo/mojo_r.png":"16fd","./msrb2/msrb2_2.png":"3f42","./mungr/mungr_1.png":"d6dc","./mungr/mungr_2.png":"592e","./mungr/mungr_3.png":"3ea0","./mungr/mungr_4.png":"ab6e","./mungr/mungr_5.png":"45e2","./mungr/mungr_6.png":"6efc","./mungr/mungr_7.png":"41bf","./mungr/mungr_8.png":"eb95","./mungr/mungr_9.png":"d7a3","./mungr/mungr_g.png":"e891","./name/name_1.png":"3f6b","./name/name_2.png":"81c5","./name/name_b.png":"3241","./ncfsb/ncfsb_1.png":"b140","./ncgsf/ncgsf_1.png":"67da","./ncgsf/ncgsf_1m.png":"86dc","./ncgss/ncgss_1.png":"9983","./nchsb/nchsb_1.png":"dd0d","./nchsb/nchsb_1m.png":"4650","./nchsb/nchsb_r.png":"e16e","./ncrb/ncrb_1.png":"8abf","./ncrb/ncrb_2.png":"a23b","./ncrb/ncrb_b.png":"797e","./ncrc010/ncrc010_1.png":"9df0","./ncrc010/ncrc010_2.png":"5609","./ncrc010/ncrc010_g.png":"fde5","./ncrc010/ncrc010_r.png":"2f73","./ncrc018/ncrc018_1.png":"6e77","./ncrc018/ncrc018_2.png":"3090a","./ncrc018/ncrc018_c.png":"d0e3","./ncrc018/ncrc018_g.png":"196c","./ncrc018/ncrc018_r.png":"beaa","./ncrc020/ncrc020_1.png":"2efa","./ncrc020/ncrc020_2.png":"2fe3","./ncrc020/ncrc020_3.png":"3927","./ncrc020/ncrc020_g.png":"d3a6","./ncrc025/ncrc025_1.png":"6e51","./ncrc025/ncrc025_2.png":"2ae4","./ncrc025/ncrc025_3.png":"6b63","./ncrc025/ncrc025_4.png":"342e","./ncrc025/ncrc025_g.png":"9334","./ncrc075/ncrc075_g.png":"6c13","./ncrc200/ncrc200_1.png":"c7c0","./ncrc400/ncrc400_1.png":"4d8a","./ncrc400/ncrc400_2.png":"e548","./ncrc400/ncrc400_r.png":"db9e","./ncrc520/ncrc520_1.png":"05a5","./ncrc520/ncrc520_2.png":"ea88","./ncrc520/ncrc520_3.png":"e93f","./ncrc520/ncrc520_4.png":"6a82","./ncrc520/ncrc520_c.png":"2c90","./ncrc520/ncrc520_g.png":"abf0","./ncrc520/ncrc520_r.png":"ae98","./ncrc550/ncrc550_1.png":"51e7","./ncrc550/ncrc550_1m.png":"fd51","./ncrc550/ncrc550_2.png":"c3d1","./ncrc550/ncrc550_3.png":"beaa8","./ncrc550/ncrc550_g.png":"b77e","./ncsb/ncsb_1.png":"93b1","./ncss/ncss_1.png":"c88d","./ncsv/ncsv_1.png":"b158","./ncsv/ncsv_2.png":"6378","./ncsv/ncsv_2m.png":"0449","./newby/newby_1.png":"4524","./newby/newby_2.png":"f964","./newby/newby_3.png":"2801","./newby/newby_b.png":"8350","./news/news_1.png":"fee9","./news/news_2.png":"87f7","./news/news_b.png":"8957","./nh/nh_1.png":"c4be","./nh/nh_2.png":"2c47","./nh/nh_3.png":"5aaf","./nh/nh_b.png":"be50","./nh/nh_r.png":"a7dd","./nh/nh_sb.png":"c00d","./nib/nib_1.png":"7ce4","./nib/nib_2.png":"901d","./nib/nib_3.png":"3f7e","./nib/nib_4.png":"dd05","./nib/nib_g.png":"9dad","./no_map.png":"e70c","./nq/nq_1.png":"935e","./nq/nq_10.png":"2ee3","./nq/nq_11.png":"3a0f","./nq/nq_1m.png":"2467","./nq/nq_2.png":"72a2","./nq/nq_2m.png":"39f5","./nq/nq_3.png":"af77","./nq/nq_4.png":"b153","./nq/nq_5.png":"1851","./nq/nq_6.png":"9a44","./nq/nq_7.png":"efa7","./nq/nq_8.png":"0032","./nq/nq_9.png":"6724","./nq/nq_ll.png":"b323","./nq/nq_r.png":"eeb3","./nub/nub_1.png":"b0f8","./nub/nub_2.png":"3e29","./nub/nub_3.png":"61a0","./nub/nub_4.png":"441f","./nub/nub_5.png":"8eb0","./nw498/nw498_1.png":"f194","./nw498/nw498_ll.png":"351c","./obl/obl_1.png":"d891","./obl/obl_2.png":"8115","./obl/obl_3.png":"ef5a","./obl/obl_4.png":"509e","./obl/obl_5.png":"c89d","./obl/obl_g.png":"ec75","./ohgo/ohgo_1.png":"06bb","./ohgo/ohgo_2.png":"41fa","./ohgo/ohgo_3.png":"dc89","./ohgo/ohgo_b.png":"b30a","./ohsl/ohsl_1.png":"0fc6","./ohsl/ohsl_2.png":"ddaa","./ohsl/ohsl_3.png":"a908","./oxva/oxva_1.png":"6413","./oxva/oxva_2.png":"13d2","./oxva/oxva_3.png":"5d88","./oxva/oxva_g.png":"d799","./palm/palm_1.png":"d58e","./palm/palm_2.png":"0add","./palm/palm_3.png":"73ad","./palm/palm_4.png":"fcc0","./palm/palm_5.png":"4b95","./palm/palm_6.png":"5687","./palm/palm_7.png":"6159","./palm/palm_b.png":"f6d0","./palmrec/palmrec_1.png":"9d82","./pharm/pharm_1.png":"4b70","./pharm/pharm_2.png":"dda1","./pharm/pharm_3.png":"696f","./pharm/pharm_4.png":"fcae","./pharm/pharm_5.png":"c823","./pharm/pharm_b.png":"1e8b","./phnx/phnx_1.png":"1a35","./phnx/phnx_2.png":"aab6","./phnx/phnx_3.png":"8c26","./phnx/phnx_r.png":"9478","./phspr/phspr_1.png":"6baa","./phspr/phspr_2.png":"2d03","./pier/pier_1.png":"766e","./pier/pier_2.png":"d370","./pier/pier_ll.png":"b324","./playc/playc_1.png":"d6c3","./playc/playc_2.png":"44a1","./playc/playc_3.png":"eb69","./plnt/plnt_1.png":"87fb","./plnt/plnt_2.png":"20f7","./plnt/plnt_m.png":"0c9b","./plymthpk/plymthpk_1.png":"d0c2","./pmh/pmh_1.png":"3ae4","./pmh/pmh_2.png":"bb42","./pmh/pmh_3.png":"5a0b","./pmh/pmh_b.png":"dfad","./power/power_1.png":"17b4","./power/power_2.png":"d308","./power/power_3.png":"eff7","./power/power_4.png":"256c","./power/power_5.png":"54ef","./power/power_6.png":"831f","./presr/presr_1.png":"0a17","./presr/presr_b.png":"f8ff","./printers.png":"874e","./rack/rack_1.png":"741d","./rack/rack_2.png":"456e","./rack/rack_3.png":"fea1","./rack/rack_4.png":"09b4","./rack/rack_5.png":"73bf","./rack/rack_ll.png":"733f","./rack/rack_r.png":"6dec","./rand/rand_1.png":"51d9","./rand/rand_2.png":"f98d","./rand/rand_3.png":"6f95","./rand/rand_4.png":"ed37","./rand/rand_5.png":"f65d","./rand/rand_b.png":"3b2b","./rand/rand_sb.png":"ef88","./ross/ross_1.png":"d442","./ross/ross_2.png":"4daa","./ross/ross_3.png":"e7df","./ross/ross_b.png":"5f81","./ross/ross_r.png":"5090","./rsbab/rsbab_1.png":"af70","./ruthv/ruthv_1.png":"6ac9","./ruthv/ruthv_2.png":"a765","./ruthv/ruthv_3.png":"5746","./ruthv/ruthv_4.png":"e2e6","./ruthv/ruthv_b.png":"df4d","./s5th/s5th_1.png":"34e8","./s5th/s5th_2.png":"1bde","./sab/sab_1.png":"af85","./sab/sab_2.png":"8104","./sab/sab_3.png":"3a3f","./sab/sab_4.png":"299a","./sab/sab_ll.png":"31aab","./sag/sag_1.png":"a16a","./schem/schem_1.png":"6bb7","./schem/schem_2.png":"2d3f","./seb/seb_1.png":"71f6","./seb/seb_1m.png":"b61d","./seb/seb_2.png":"b631","./seb/seb_2m.png":"ebc7","./seb/seb_3.png":"fe5d","./seb/seb_4.png":"b647","./seb/seb_5.png":"a918","./seb/seb_b.png":"6e1f","./shpwg/shpwg_1.png":"8f64","./sinfn/sinfn_1.png":"87c7","./sinfn/sinfn_2.png":"66b3","./sinfn/sinfn_3.png":"bdbf","./sinfn/sinfn_r.png":"09d6","./sltst/sltst_1.png":"d411","./sm/sm_1.png":"df70","./sm/sm_2.png":"707b","./sm/sm_3.png":"3a48","./sm/sm_4.png":"ade4","./sm/sm_4m.png":"a443","./sm/sm_b.png":"3cd1","./sm/sm_sb.png":"d7b8","./sm/sm_sb2.png":"e7dd","./snb/snb_1.png":"8954","./snb/snb_2.png":"169e","./snb/snb_3.png":"fb54","./snb/snb_4.png":"bc5d","./snb/snb_5.png":"0d3c","./snb/snb_a.png":"4494","./socc/socc_1.png":"6649","./sph1/sph1_1.png":"da8e","./sph1/sph1_2.png":"d33a","./sph1/sph1_3.png":"0142","./sph1/sph1_4.png":"296e","./sph1/sph1_5.png":"0232","./sph1/sph1_6.png":"c0d9","./sph1/sph1_7.png":"7c50","./sph1/sph1_B.png":"de4b","./sph1/sph1_G.png":"de67","./sph2/sph2_1.png":"bf01","./sph2/sph2_2.png":"ca0f","./sph2/sph2_3.png":"12b4","./sph2/sph2_4.png":"f6b6","./sph2/sph2_5.png":"4056","./sph2/sph2_6.png":"4909","./sph2/sph2_7.png":"4333","./sph2/sph2_b.png":"104c","./sph2/sph2_g.png":"cef7","./sq/sq_1.png":"659d","./sq/sq_2.png":"65e5","./sq/sq_3.png":"8c37","./sq/sq_4.png":"5eb6","./sq/sq_5.png":"0848","./sq/sq_6.png":"caee","./sq/sq_7.png":"9ea9","./sq/sq_8.png":"6935d","./sq/sq_9.png":"abbb","./sq/sq_b.png":"8526","./sq/sq_g.png":"ccc7","./srb/srb.png":"6b50","./srb/srb_2.png":"48f0","./srb/srb_b.png":"0461","./ssw/ssw_1.png":"5454","./ssw/ssw_2.png":"321c","./ssw/ssw_3.png":"0f18","./ssw/ssw_4.png":"d5b7","./ssw/ssw_b.png":"3f24","./stadm/stadm_1.png":"1dfe","./stadm/stadm_2.png":"cdc3","./stadm/stadm_3.png":"ceb3","./stadm/stadm_4.png":"e51c","./stadm/stadm_4m.png":"4f55","./stadm/stadm_5.png":"fb4a","./stadm/stadm_b.png":"7d6c","./stb/stb_1.png":"8635","./stb/stb_2.png":"f89a","./stb/stb_3.png":"4d85","./stb/stb_4.png":"f04b","./stb/stb_5.png":"c5d0","./stb/stb_6.png":"7006","./stock/stock_1.png":"d6d68","./stock/stock_2.png":"71bb","./stock/stock_3.png":"8698","./stock/stock_4.png":"b866","./stock/stock_5.png":"e9ef","./stock/stock_6.png":"c1f4","./stock/stock_7.png":"7edd","./stock/stock_ll.png":"c928","./stock/stock_r.png":"0ed5","./strns/strns_1.png":"2589","./strns/strns_2.png":"a35a","./t&tb/t&tb_1.png":"b8cd","./tap/tap_1.png":"843a","./tap/tap_2.png":"5d37","./tap/tap_3.png":"66c9","./tap/tap_b.png":"2263","./taubc/taubc_2.png":"5f1f","./taubl/taubl_2.png":"1e51","./taubl/taubl_3.png":"1dd3","./taubl/taubl_4.png":"ae75","./taubl/taubl_5.png":"5a18","./taubl/taubl_6.png":"e314","./tenn/tenn_1.png":"32cf","./tenn/tenn_2.png":"b2fc","./tenn/tenn_3.png":"3af9","./tmc/tmc_1.png":"4dfe","./tmc/tmc_2.png":"3be6","./tmc/tmc_3.png":"7be4","./tmc/tmc_g.png":"9791","./trnsv/trnsv_1.png":"13f3","./trnsv/trnsv_m.png":"738d","./twsc/twsc_1.png":"a3a3","./twsc/twsc_2.png":"315f","./uhcc/uhcc_1.png":"6f80","./uhs/uhs_1.png":"ea5e","./uhs/uhs_2.png":"7e4d","./uhs/uhs_3.png":"5d68","./uhs/uhs_4.png":"6041","./uhs/uhs_ll.png":"7dd7","./uhs/uhs_r.png":"b534","./uhs/uhs_sll.png":"ce40","./ulib/ulib_1.png":"c2e1","./ulib/ulib_2.png":"a401","./ulib/ulib_3.png":"32e8","./ulib/ulib_4.png":"1505","./ulib/ulib_5.png":"f563","./ulib/ulib_b.png":"6222","./umma/umma_1.png":"dd07","./umma/umma_2.png":"cc8d","./umma/umma_b.png":"a669","./umma/umma_m.png":"e571","./umtri/umtri_1.png":"e4f2","./umtri/umtri_1m.png":"cddd","./umtri/umtri_2.png":"80ff","./umtri/umtri_3.png":"b0f7","./umtri/umtri_4.png":"288e","./umtri/umtri_b.png":"3290","./unio/unio_1.png":"8666","./unio/unio_2.png":"4a37","./unio/unio_3.png":"b882","./unio/unio_4.png":"a7b2","./unio/unio_5.png":"1197","./unio/unio_6.png":"1b82","./unio/unio_7.png":"71fb","./unio/unio_b.png":"596e","./unio/unio_g.png":"f9f9","./usb/usb_1.png":"cfd8","./usb/usb_2.png":"68c1","./usb/usb_3.png":"4ffd","./usb/usb_4.png":"22d4","./usb/usb_5.png":"6ec0","./vb2/vb2_cn1.png":"7d98","./vb2/vb2_cn2.png":"c92b","./vb2/vb2_cn3.png":"73a1","./vb2/vb2_cn4.png":"2a42","./vb2/vb2_cr1.png":"eae0","./vb2/vb2_cr2.png":"c12f","./vb2/vb2_cr3.png":"15a5","./vb2/vb2_cr4.png":"1313","./vb2/vb2_cs1.png":"be42","./vb2/vb2_cs2.png":"145c","./vb2/vb2_cs3.png":"255d","./vb2/vb2_cs4.png":"2edd","./vb2/vb2_t1.png":"4e08","./vb2/vb2_t2.png":"a37a","./vb2/vb2_t3.png":"0aa3","./vb2/vb2_t4.png":"7dac","./vb2/vb2_z1.png":"bb6a","./vb2/vb2_z2.png":"095f","./vb2/vb2_z3.png":"949b","./vb2/vb2_z4.png":"c2e4","./vbcmn/vbcmn_1.png":"f520","./vbcmn/vbcmn_2.png":"7085","./vbcmn/vbcmn_3.png":"a033","./vbcmn/vbcmn_4.png":"0406","./vbeat/vbeat_1.png":"6866","./vbeat/vbeat_2.png":"a32d","./vbeat/vbeat_3.png":"2e2a","./vbeat/vbeat_4.png":"6b1a","./vbeat/vbeat_b.png":"bbde","./vbeat/vbeat_r.png":"b3b3","./vbstn/vbstn_1.png":"583e","./vbstn/vbstn_2.png":"6d1a","./vbstn/vbstn_3.png":"a02e","./vbstn/vbstn_4.png":"c423","./vvaun/vvaun_1.png":"03c4","./vvaun/vvaun_2.png":"5561","./vvaun/vvaun_3.png":"a6d9","./vvaun/vvaun_4.png":"0d98","./vvaun/vvaun_b.png":"9741","./vvaun/vvaun_g.png":"d10d","./vvaun/vvaun_r.png":"b846","./walhs/walhs_2.png":"ea4d","./walhs/walhs_b.png":"41c4","./wbus/wbus_1.png":"beae","./wbus/wbus_2.png":"233d","./wbus/wbus_3.png":"d022","./wbus/wbus_5.png":"84b7","./wbus/wbus_6.png":"4b6c","./wbus/wbus_7.png":"df2d","./wbus/wbus_b.png":"3a40","./wdc/wdc_1.png":"aede","./wdc/wdc_2.png":"3c08","./wdc/wdc_3.png":"1bac","./wdc/wdc_b.png":"1ad9","./weidn/weidn_1.png":"5089","./weidn/weidn_2.png":"7ee6","./weidn/weidn_3.png":"c953","./weidn/weidn_b.png":"078a","./weill/weill_1.png":"4553","./weill/weill_2.png":"0a8c","./weill/weill_3.png":"bb54","./weill/weill_4.png":"4f81","./weill/weill_5.png":"313a","./weill/weill_6.png":"cb82","./weis/weis_1.png":"d52b","./weis/weis_10.png":"e9a0","./weis/weis_11.png":"5dff","./weis/weis_12.png":"95cb","./weis/weis_2.png":"e1c5","./weis/weis_3.png":"19ae","./weis/weis_4.png":"e4bb","./weis/weis_5.png":"4d96","./weis/weis_6.png":"099a","./weis/weis_7.png":"fc07","./weis/weis_8.png":"e55b","./weis/weis_9.png":"c5d8","./weis/weis_b.png":"a5df","./wgolf/wgolf_1.png":"17e8","./wgolf/wgolf_2.png":"132a","./wh/wh_1.png":"27db","./wh/wh_2.png":"85a2","./wh/wh_3.png":"4bf1","./wh/wh_4.png":"2874","./wh/wh_5.png":"5b5e","./wh/wh_b.png":"2137b","./woto/woto_1.png":"1f7e","./woto/woto_10.png":"0f53","./woto/woto_11.png":"08bd","./woto/woto_2.png":"34d2","./woto/woto_3.png":"6e6a","./woto/woto_4.png":"c706","./woto/woto_5.png":"7e6e","./woto/woto_6.png":"b9d1","./woto/woto_7.png":"f22c","./woto/woto_8.png":"7938","./woto/woto_9.png":"c030","./woto/woto_b.png":"c120","./woto/woto_g.png":"f0a5","./woto/woto_gh.png":"000d","./woto/woto_gl.png":"9468","./woto/woto_r.png":"d8d9","./wq/wq_1.png":"928f7","./wq/wq_2.png":"34b7","./wq/wq_3.png":"925a","./wq/wq_4.png":"bf61","./wq/wq_5.png":"9926","./wq/wq_ll.png":"548a","./wq/wq_r.png":"94b9","./wresl/wresl_1.png":"413d","./wresl/wresl_2.png":"4a76","./yost/yost_0.png":"4bea","./yost/yost_1.png":"d801","./yost/yost_2.png":"6536","./yost/yost_3.png":"f0a7","./yost/yost_4.png":"a893","./yost/yost_5.png":"d884"};function s(e){var t=r(e);return a(t)}function r(e){if(!a.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}s.keys=function(){return Object.keys(n)},s.resolve=r,e.exports=s,s.id="d752"},d799:function(e,t,a){e.exports=a.p+"img/oxva_g.4409223d.png"},d7a3:function(e,t,a){e.exports=a.p+"img/mungr_9.c3ea96e3.png"},d7b8:function(e,t,a){e.exports=a.p+"img/sm_sb.41f9401e.png"},d801:function(e,t,a){e.exports=a.p+"img/yost_1.0901acb9.png"},d846:function(e,t,a){e.exports=a.p+"img/burs_4.eaa036ec.png"},d884:function(e,t,a){e.exports=a.p+"img/yost_5.c77f368d.png"},d891:function(e,t,a){e.exports=a.p+"img/obl_1.38713ded.png"},d8ab:function(e,t,a){e.exports=a.p+"img/lsaad_3.3350226e.png"},d8d9:function(e,t,a){e.exports=a.p+"img/woto_r.6e2a4715.png"},d8e3:function(e,t,a){},d92c:function(e,t,a){e.exports=a.p+"img/mlb_2.45c7c48a.png"},d957:function(e,t,a){e.exports=a.p+"img/mlb_5.3cf3dc36.png"},d9b6:function(e,t){e.exports="data:image/gif;base64,R0lGODlhEAALAPQAAP///zNmmeHo79ni6+7y9jdpmzNmmVeBq5qzzH+fv8fV4k56pm6StqG4z4KhwMrX5FF8qDZomnGUuOrv9N/n7vb4+l+Hr+Lp8PT2+cTS4bLF2NTe6fH09wAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCwAAACwAAAAAEAALAAAFLSAgjmRpnqSgCuLKAq5AEIM4zDVw03ve27ifDgfkEYe04kDIDC5zrtYKRa2WQgAh+QQJCwAAACwAAAAAEAALAAAFJGBhGAVgnqhpHIeRvsDawqns0qeN5+y967tYLyicBYE7EYkYAgAh+QQJCwAAACwAAAAAEAALAAAFNiAgjothLOOIJAkiGgxjpGKiKMkbz7SN6zIawJcDwIK9W/HISxGBzdHTuBNOmcJVCyoUlk7CEAAh+QQJCwAAACwAAAAAEAALAAAFNSAgjqQIRRFUAo3jNGIkSdHqPI8Tz3V55zuaDacDyIQ+YrBH+hWPzJFzOQQaeavWi7oqnVIhACH5BAkLAAAALAAAAAAQAAsAAAUyICCOZGme1rJY5kRRk7hI0mJSVUXJtF3iOl7tltsBZsNfUegjAY3I5sgFY55KqdX1GgIAIfkECQsAAAAsAAAAABAACwAABTcgII5kaZ4kcV2EqLJipmnZhWGXaOOitm2aXQ4g7P2Ct2ER4AMul00kj5g0Al8tADY2y6C+4FIIACH5BAkLAAAALAAAAAAQAAsAAAUvICCOZGme5ERRk6iy7qpyHCVStA3gNa/7txxwlwv2isSacYUc+l4tADQGQ1mvpBAAIfkECQsAAAAsAAAAABAACwAABS8gII5kaZ7kRFGTqLLuqnIcJVK0DeA1r/u3HHCXC/aKxJpxhRz6Xi0ANAZDWa+kEAA7AAAAAAAAAAAA"},da23:function(e,t,a){e.exports=a.p+"img/bgres_1.c9c2ccc6.png"},da41:function(e,t,a){e.exports=a.p+"img/fab_5.a9ae8d9b.png"},da49:function(e,t,a){},da8e:function(e,t,a){e.exports=a.p+"img/sph1_1.51d1e8fc.png"},dae4:function(e,t,a){e.exports=a.p+"img/llib_5.4410a538.png"},db11:function(e,t,a){e.exports=a.p+"img/open_installer_warning.ad605c57.png"},db9e:function(e,t,a){e.exports=a.p+"img/ncrc400_r.5a423926.png"},dbe7:function(e,t,a){e.exports=a.p+"img/alb2_4.9399f264.png"},dc2b:function(e,t,a){e.exports=a.p+"img/ah_g.ea5e218f.png"},dc89:function(e,t,a){e.exports=a.p+"img/ohgo_3.459ab679.png"},dca3:function(e,t,a){e.exports=a.p+"img/ccrb_r.01aa3beb.png"},dd05:function(e,t,a){e.exports=a.p+"img/nib_4.dc4b9fb3.png"},dd07:function(e,t,a){e.exports=a.p+"img/umma_1.b1d15f64.png"},dd0d:function(e,t,a){e.exports=a.p+"img/nchsb_1.b11eeaa8.png"},dd8e:function(e,t,a){e.exports=a.p+"img/fsbb_g.3d2137dd.png"},dda1:function(e,t,a){e.exports=a.p+"img/pharm_2.87c64855.png"},ddaa:function(e,t,a){e.exports=a.p+"img/ohsl_2.0d517ef4.png"},ddbf:function(e,t,a){e.exports=a.p+"img/blau_5.473fa1af.png"},de21:function(e,t,a){e.exports=a.p+"img/leag_5.04770bfc.png"},de43:function(e,t,a){e.exports=a.p+"img/lipse_1.5db25b6d.png"},de4b:function(e,t,a){e.exports=a.p+"img/sph1_B.1a805815.png"},de67:function(e,t,a){e.exports=a.p+"img/sph1_G.73021d35.png"},de9d:function(e,t,a){},deac:function(e,t,a){e.exports=a.p+"img/eflb_ll.221e38c2.png"},dec9:function(e,t,a){e.exports=a.p+"img/ehurn_2.9a50dd62.png"},ded8:function(e,t,a){e.exports=a.p+"img/exres_1.a0b587e4.png"},df2d:function(e,t,a){e.exports=a.p+"img/wbus_7.89b95b6a.png"},df4d:function(e,t,a){e.exports=a.p+"img/ruthv_b.9f32e848.png"},df70:function(e,t,a){e.exports=a.p+"img/sm_1.faa70027.png"},df8d:function(e,t,a){e.exports=a.p+"img/ioe_g.d32b92be.png"},dfad:function(e,t,a){e.exports=a.p+"img/pmh_b.2bb5993d.png"},dfc1:function(e,t,a){e.exports=a.p+"img/bmt_6.9281b1ec.png"},dff6:function(e,t,a){"use strict";a("8b69")},e068:function(e,t,a){e.exports=a.p+"img/ccrb_1.a709cee4.png"},e06f:function(e,t,a){e.exports=a.p+"img/keyo_3.30775c80.png"},e0b3:function(e,t,a){e.exports=a.p+"img/llib_2.95f66313.png"},e16e:function(e,t,a){e.exports=a.p+"img/nchsb_r.e736c6b2.png"},e17c:function(e,t,a){e.exports=a.p+"img/burs_3.3b8b38a6.png"},e188:function(e,t,a){e.exports=a.p+"img/forst_1.ef1a74c2.png"},e1b5:function(e,t,a){e.exports=a.p+"img/glibs_b.aa1fbfaa.png"},e1c5:function(e,t,a){e.exports=a.p+"img/weis_2.6ff976e8.png"},e1fb:function(e,t,a){e.exports=a.p+"img/dow_3.a7187375.png"},e2e5:function(e,t,a){e.exports=a.p+"img/bmt_9.a40e19aa.png"},e2e6:function(e,t,a){e.exports=a.p+"img/ruthv_4.91f65897.png"},e30a:function(e,t,a){e.exports=a.p+"img/hh_3.96de497e.png"},e314:function(e,t,a){e.exports=a.p+"img/taubl_6.ea8a9f12.png"},e39b:function(e,t,a){e.exports=a.p+"img/alb3_3.bf2fb4c7.png"},e4bb:function(e,t,a){e.exports=a.p+"img/weis_4.fed2efb3.png"},e4f2:function(e,t,a){e.exports=a.p+"img/umtri_1.c546d484.png"},e51c:function(e,t,a){e.exports=a.p+"img/stadm_4.b5bad8c1.png"},e548:function(e,t,a){e.exports=a.p+"img/ncrc400_2.6055e83f.png"},e55b:function(e,t,a){e.exports=a.p+"img/weis_8.cb86b880.png"},e55d:function(e,t,a){"use strict";a("4820")},e571:function(e,t,a){e.exports=a.p+"img/umma_m.a352a2ff.png"},e5a0:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAjCAYAAAGP90iLAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RkIzRjgwOTFFQjBBMTFFMkJBQ0Y5MzE0OUZFNTEzN0EiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RkIzRjgwOTJFQjBBMTFFMkJBQ0Y5MzE0OUZFNTEzN0EiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpGQjNGODA4RkVCMEExMUUyQkFDRjkzMTQ5RkU1MTM3QSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpGQjNGODA5MEVCMEExMUUyQkFDRjkzMTQ5RkU1MTM3QSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PnFbx40AAAgbSURBVHjaYiwvL2dABp2dnQyMubm5DN++ffNua2vbApNgef36NYje+vnzZ4Z///4z7N69K5fRyckJLPv792/vs2fPvgbqesPy8eNHsCBQ4DKQegGSBwggRmwWgYDS6dOn+16+fPkfhIF8KZaIiIh7goKChZ8+fWL4/x+s6BnLq1evGFRUVESBHGU1NTV+kCizkJAQg5SU1Lfnz59/e/v27V+g2BuAAGIoKSlhePfu3X8Q9vDwsP8PNAMZwwBjcnIymHH9+nWeVatWfUZ2HUyhrKwsD9huEBAWFv4C8v1/iAq4YqDX/IDUV6Y3b94wwHBSUhLj92/fGeLi4vy/f//+8cePHwybN2/eD9IAEEAYgYEOwIED9IgvzCNAMVZsHmEESQCxHjD0zgAVbgcGiSeySS9evFjDAPIpCD969Oh/UFCQz5MnT/7D8OPHj/8rKioGsnz9+hWs4/SZM01KSkrcIAdDrIKYdP/+/fOMvr6+YA5Qsc6UqVMvMyAHBSMjg5amJg8DKFFAEwYjNze3ETC+3IBsY1tbW28gbQ52s6WlJRyfO3fuAzCxgIzhOXv23H8TExM/cJr79esX3CdGRkZioPQCst3Y2EgeSIOjDCCAwIH59+9fPWZmZnm0QNwFpH79R451LICRkRHOhtkoDzR0E7IkME37MzExfS4qKuLBZ1hhYSHIMd8nTZp0kDEjIwNFEpiidXp6ei4DDb115MiRWTY2Nj0MBEB7e3sA0LDTTKD4QcbLli27CsyTx4GJS62/v/8OKL6QMVAcBQMT5TWgQS+BZr5kBKYCDJv+/fvnAQyz7cAkvgyY81fgcxUwx305fvz4KVBkwFMOMgAmtSO/fv9mYGdnj2psbIxCzlQogQ6kS4qLQdHNAuIyAUsQBnQsIiLyJSszkxEYsGtAigQEBBiApYStnp4eK9DVa0CGCQgKMoSHhdnu3LlzOyi+wIb9/PmTARcuLi5e9uXL1/enT5/ZcO/ePQ6QC0Binz9/eX/m9Gm4GNzFxsbGDJQAYAqHswEC0FrFLgmEUfw85OIGQYOjg5CGAocGHcMtqEnqDzinBtcmE/EvcG1waXIJOmk4HAIv0rE2CZwqgkN0UOKMzCBO6/fOTr7Lq7OhD56c7969733vvd/vfb4M4Lcc+uSYEPdYg+Fw2CmVSrfYaFwsFhd3hiRzhUKhyhqAWc7g7BDv+n+J0nZGwpYdFJVKJpPH0G8BTpwfnEzTvC+Xy3dBy7I4SZKWiZchAqjrQhAESRTFSD6fry4SkaIoO0RmQUwsDvg08YeEA5QuZVlWQqGQgJ7ydQSbl0ajQUeb8OSMFV3XaxRtOp3eADoMJw2s0HtHMIJO4JAmpcUTBbGCvnkgo3g8ngLurtiNHBtWB+xew9ETIW4uMvBYm44HXG5rmqa7IxnPSbPZfHWY1kXHtHDMDqBkwkkE42GUy+X2f8sZKtkiRrY7wRkl7EI7nK6gCJx7FntxNo2adTw92kD/njMSTNuanWwczRE26fY7pGIy7c8Zrc8uNeyq1+tL1HexWGwNPSiiKM9vRKuID7owoyPqaTttFcDQ88wFdt9UK5XWwDTp+TyRSGSAilVVVVt0gSIdKp6B6WAGJwrba4FZo33cUqap+tjFj4wqR3u9KVwDfMDWsc54r6Yk6Xa7N4ZhaMihiYoewHbE6o6yWVvnqsdP5IicENGHIStfH9n3QQ/d+78w7acAtVjRS1phFG/mGkhoe9GHkB4G7a3lsLkRA2FEI5xvwQKDvfS0h/wHFGa99rCXqE0YAwPBhx4WVISQD6kNB+vGIGiOwXYXOdmuo4GWevude797d7uaWrYDh+R6vs9zz/ed3+93ahtp2zUtuJ4x1FbxJ2ITSyaTL0ZGRm5jmYnOjtbp9eBFvSFoKwZZXSOStAal6LFYLCQESnSOWFv8X5VUrz8glZ+ZmanBmr6+vpuTk5NvpWCj8a7X6+01mUyV+fn5dQjR/nYTUKoGzDvw+/3PFhYW0nSBJTIhC4fDH/GHZHEXI2YDPZ+YmBjweDwpkMsDqiQa3bO4uPia47h1VLD/qioESfZyZWWFsqQJqaQmNjU1RZRWZa2nGljvy/7+/gaUlJRYd3f36NDQ0Jvl5eXE9PT0czwztFsxQRASc3NzWUwbv+jwKIcaXtI7uImPRqMpRi9U8i6fzzeaTqePQSOJ88CrGdNqfqMKqH2F6fMPEsqxxKpNEwOlV6Hjvx/mcqvKpgB/j9lsNoDG443W6hlKfib7yYm8F1A2EovF8L6lH0zHHtcl33oGRfR1bXV1HUOnxKFY04ujH5idnf2AIc/bzlFms1lxb2/vG0NrQm2x5cQw4f21Wq2f0ZHv0QT36BmaIJRMpeoTvG5caDS3jY+Pe7E/JXVExKrChXL5G9nY2JhImghNsHZncFBK7CfGd/KOJgmck5X6kf0+cVyReeuJkW1tbfF4y3cQuJmrBFKe58usWmf0xDW3293yJpubmwQNRrvdbnY4HA9DodBTYNkj+g6zUzwYDEYTicSngvzvoBObzXbD5XLd18ZBNMYDgYAS91tTqQqDKzmx4eHhy2DP48jSUrQgCBbtSfb0WAoAZN/29jZHrY976I5EIlFBKFi0J4gps4ApU43THqEqoso6UdmKY6Q94HZ2NkiH//NKx+7ubhxHc52RvFGK47gN+o5iKhU5Vh9X9xo6nc4LVyyTyRjRpVYQ+i3wJaomGiAAOvP5/FGxWKTWP1SGgRbjavTqpcUdU5Kd7I2Vty4zr2BfsZU4Bbf0dgr3R0c/obDmvwAAAABJRU5ErkJggg=="},e5a6:function(e,t,a){e.exports=a.p+"img/couzn_1.2457719e.png"},e5b8:function(e,t,a){e.exports=a.p+"img/leag_6.f91be09f.png"},e5c8:function(e,t,a){"use strict";a("8912")},e64b:function(e,t,a){e.exports=a.p+"img/fab_7.3a049eab.png"},e671:function(e,t,a){e.exports=a.p+"img/hh_1.85dcc770.png"},e6d6:function(e,t,a){e.exports=a.p+"img/bbar_r.5ade15ff.png"},e70c:function(e,t,a){e.exports=a.p+"img/no_map.44269800.png"},e733:function(e,t,a){e.exports=a.p+"img/1327g_1.512923b6.png"},e739:function(e,t,a){e.exports=a.p+"img/lawc_2.d89ee03e.png"},e7dd:function(e,t,a){e.exports=a.p+"img/sm_sb2.a802eabb.png"},e7df:function(e,t,a){e.exports=a.p+"img/ross_3.c7d44d97.png"},e80c:function(e,t,a){e.exports=a.p+"img/imsb_3.4ff39555.png"},e814:function(e,t,a){e.exports=a.p+"img/clemt_sb.a6a6a953.png"},e891:function(e,t,a){e.exports=a.p+"img/mungr_g.944dd79a.png"},e8a6:function(e,t,a){e.exports=a.p+"img/bmt_b.088d1ada.png"},e93f:function(e,t,a){e.exports=a.p+"img/ncrc520_3.cd6f760d.png"},e968:function(e,t,a){},e9a0:function(e,t,a){e.exports=a.p+"img/weis_10.e538eabf.png"},e9ef:function(e,t,a){e.exports=a.p+"img/stock_5.b17ca82f.png"},ea4d:function(e,t,a){e.exports=a.p+"img/walhs_2.8448a30f.png"},ea53:function(e,t,a){e.exports=a.p+"img/bmt_5.68c95465.png"},ea5e:function(e,t,a){e.exports=a.p+"img/uhs_1.d9179849.png"},ea88:function(e,t,a){e.exports=a.p+"img/ncrc520_2.d79cbe18.png"},ea92:function(e,t,a){e.exports=a.p+"img/gflab_3.d0649f54.png"},eae0:function(e,t,a){e.exports=a.p+"img/vb2_cr1.8d78df4b.png"},eb69:function(e,t,a){e.exports=a.p+"img/playc_3.5339d568.png"},eb95:function(e,t,a){e.exports=a.p+"img/mungr_8.87f29b0a.png"},ebc7:function(e,t,a){e.exports=a.p+"img/seb_2m.04669856.png"},ebe9:function(e,t,a){e.exports=a.p+"img/chem_b.bca1e4c5.png"},ebf3:function(e,t,a){e.exports=a.p+"img/1327g_3.44aa3184.png"},ebfc:function(e,t,a){e.exports=a.p+"img/keen_2.90cc59af.png"},ebfd:function(e,t,a){e.exports=a.p+"img/mojo_5.9916c305.png"},ec05:function(e,t,a){},ec75:function(e,t,a){e.exports=a.p+"img/obl_g.d8677bd8.png"},ed37:function(e,t,a){e.exports=a.p+"img/rand_4.3a0195b8.png"},eda5:function(e,t,a){e.exports=a.p+"img/fsbc_1m.3761801a.png"},edc2:function(e,t,a){e.exports=a.p+"img/canhm_1.ae3afb3f.png"},ee6b:function(e,t,a){e.exports=a.p+"img/lsi_5.811fd746.png"},eeb3:function(e,t,a){e.exports=a.p+"img/nq_r.a2a23dc8.png"},eefb:function(e,t,a){e.exports=a.p+"img/mlb_1m.133f4dfb.png"},ef5a:function(e,t,a){e.exports=a.p+"img/obl_3.8507a296.png"},ef6b:function(e,t,a){e.exports=a.p+"img/bus_sb.4c69edc6.png"},ef88:function(e,t,a){e.exports=a.p+"img/rand_sb.61a352a8.png"},efa7:function(e,t,a){e.exports=a.p+"img/nq_7.282cf3dd.png"},efd8:function(e,t,a){e.exports=a.p+"img/fishr_2.165123d5.png"},eff7:function(e,t,a){e.exports=a.p+"img/power_3.0af02588.png"},f047:function(e,t,a){e.exports=a.p+"img/leag_4.2f498044.png"},f04b:function(e,t,a){e.exports=a.p+"img/stb_4.0584bca9.png"},f051:function(e,t,a){e.exports=a.p+"img/kines_2.8bd12352.png"},f0a5:function(e,t,a){e.exports=a.p+"img/woto_g.fd9782af.png"},f0a7:function(e,t,a){e.exports=a.p+"img/yost_3.9f301188.png"},f0d0:function(e,t,a){e.exports=a.p+"img/burs_ll.f8344f42.png"},f0dd:function(e,t,a){e.exports=a.p+"img/hh_9.0f5962fc.png"},f0fa:function(e,t,a){e.exports=a.p+"img/couzn_5.8947a4e3.png"},f129:function(e,t,a){e.exports=a.p+"img/cool_1.cb67be33.png"},f194:function(e,t,a){e.exports=a.p+"img/nw498_1.9424c932.png"},f22c:function(e,t,a){e.exports=a.p+"img/woto_7.695edc78.png"},f2c8:function(e,t,a){},f2da:function(e,t,a){e.exports=a.p+"img/alb2_1.391d71e3.png"},f2f7:function(e,t,a){"use strict";a("282c")},f374:function(e,t,a){e.exports=a.p+"img/mmark_2.1f3bd1bf.png"},f4b0:function(e,t,a){"use strict";a("d8e3")},f4cb:function(e,t,a){e.exports=a.p+"img/keen_b.af5da323.png"},f512:function(e,t,a){e.exports=a.p+"img/lbme_1.759e7e19.png"},f520:function(e,t,a){e.exports=a.p+"img/vbcmn_1.3082f6a8.png"},f563:function(e,t,a){e.exports=a.p+"img/ulib_5.ddd2619f.png"},f57a:function(e,t,a){e.exports=a.p+"img/fxb_b.bcc9b093.png"},f5ed:function(e,t,a){e.exports=a.p+"img/eh_b.279f3c5d.png"},f65d:function(e,t,a){e.exports=a.p+"img/rand_5.78ee606b.png"},f666:function(e,t,a){e.exports=a.p+"img/bbar_2.cb61bb92.png"},f6b6:function(e,t,a){e.exports=a.p+"img/sph2_4.2d51bdb5.png"},f6d0:function(e,t,a){e.exports=a.p+"img/palm_b.6e036a6c.png"},f7e6:function(e,t,a){"use strict";a("fb81")},f812:function(e,t,a){e.exports=a.p+"img/asb_2.6d17a040.png"},f837:function(e,t,a){e.exports=a.p+"img/gcchs_r.9a6d72c4.png"},f87f:function(e,t,a){e.exports=a.p+"img/glibs_1.50864ef4.png"},f89a:function(e,t,a){e.exports=a.p+"img/stb_2.664ae7c7.png"},f8a2:function(e,t,a){e.exports=a.p+"img/chem_5.581718c8.png"},f8bc:function(e,t,a){e.exports=a.p+"img/hartw_0.bbf62309.png"},f8ff:function(e,t,a){e.exports=a.p+"img/presr_b.44269800.png"},f91f:function(e,t,a){e.exports=a.p+"img/ccrb_5.03ccdd6f.png"},f964:function(e,t,a){e.exports=a.p+"img/newby_2.df183bc0.png"},f98d:function(e,t,a){e.exports=a.p+"img/rand_2.fad3c4a0.png"},f9af:function(e,t,a){e.exports=a.p+"img/keen_m.abe9beb5.png"},f9f9:function(e,t,a){e.exports=a.p+"img/unio_g.45e62558.png"},fa09:function(e,t,a){e.exports=a.p+"img/llib_s3.11d6ea3b.png"},faae:function(e,t,a){e.exports=a.p+"img/1nm_8.9fb48665.png"},fab8:function(e,t,a){e.exports=a.p+"img/keyo_2.d1b342ab.png"},faf2:function(e,t,a){e.exports=a.p+"img/burs_7.1d63a0d2.png"},faf6:function(e,t,a){e.exports=a.p+"img/lawc_ll.3da9987b.png"},fb4a:function(e,t,a){e.exports=a.p+"img/stadm_5.ea007a8e.png"},fb54:function(e,t,a){e.exports=a.p+"img/snb_3.4f645af4.png"},fb5a:function(e,t,a){e.exports=a.p+"img/mojo_ll.2a37bc6d.png"},fb60:function(e,t,a){e.exports=a.p+"img/mcpk_6.c06c1b50.png"},fb81:function(e,t,a){},fc07:function(e,t,a){e.exports=a.p+"img/weis_7.762acc85.png"},fc6b:function(e,t,a){e.exports=a.p+"img/lorch_5.b2e5db7a.png"},fc7e:function(e,t,a){"use strict";a("71a3")},fcae:function(e,t,a){e.exports=a.p+"img/pharm_4.0c771440.png"},fcb7:function(e,t,a){e.exports=a.p+"img/ggbl_1.c2042e56.png"},fcc0:function(e,t,a){e.exports=a.p+"img/palm_4.0724e5ad.png"},fd4c:function(e,t,a){e.exports=a.p+"img/glibs_8.83baf3d3.png"},fd51:function(e,t,a){e.exports=a.p+"img/ncrc550_1m.00ca2ce9.png"},fd6e:function(e,t,a){e.exports=a.p+"img/lsi_7.9ab0eeb8.png"},fd8c:function(e,t,a){e.exports=a.p+"img/couzn_7.a69ff0d4.png"},fde5:function(e,t,a){e.exports=a.p+"img/ncrc010_g.14740455.png"},fdfa:function(e,t,a){e.exports=a.p+"img/lsa_4.7ae9a8c4.png"},fe49:function(e,t,a){"use strict";a("1b99")},fe5d:function(e,t,a){e.exports=a.p+"img/seb_3.98ffb49b.png"},fea1:function(e,t,a){e.exports=a.p+"img/rack_3.7087df9f.png"},fee9:function(e,t,a){e.exports=a.p+"img/news_1.b795bda2.png"},ff97:function(e,t,a){e.exports=a.p+"img/kines_1.0d75c0d6.png"},ffc9:function(e,t,a){e.exports=a.p+"img/ggbl_2.f65b1a97.png"}});
//# sourceMappingURL=app.a93e4eb3.js.map