var Util,Barco,Dlw;(function(n){var t;(function(n){var v=function(){function n(n){this.activeStep=ko.observable(n);this.slideOpen=function(n){n.nodeType===1&&$(n).hide().slideDown()}}return n}(),s,h,e,o,c,u,t,f,r,i;(function(n){n[n.Room=0]="Room";n[n.Display=1]="Display";n[n.Interface=2]="Interface"})(s||(s={}));h=function(){function n(n,t){var i=this;this.configuratorVm=new e(t.displayTechnology,t.products,t.figurePosition,t.displayDefaultBackgrounds,t.limitations,t.defaults);ko.applyBindings(this.configuratorVm);this.configuratorVm.loaded(!0);$("#countrySelect").on("change",function(n){$("#selectedCountry").val($(n.currentTarget).val())});$("#generatePdf").on("click",function(){i.configuratorVm.generatePdf()})}return n}();n.Configurator=h;e=function(){function n(n,t,i,r,u,f){this.loaded=ko.observable();this.displayTechnology=n;this.products=t;this.roomVm=new o(this.products,this.displayTechnology,i,r,u,f);this.formTitle=ko.observable()}return n.prototype.setFormTitle=function(n){this.formTitle(n)},n.prototype.generatePdf=function(){var n={pdfViewModel:this.roomVm.formViewModelToJson(),roomImageModel:this.roomVm.roomImageModelToJson()};$.ajax({type:"POST",url:"/configurator/generatepdf",data:n})},n}();n.ConfiguratorVm=e;o=function(){function n(n,e,o,s,h,c){var l=this,a;this.incrementColumns=function(){this.columns(+this.columns()+1)};this.decrementColumns=function(){this.columns(+this.columns()-1)};this.incrementRows=function(){this.rows(+this.rows()+1)};this.decrementRows=function(){this.rows(+this.rows()-1)};this.incrementHeight=function(){l.height(+l.height()+1)};this.decrementHeight=function(){this.height(+this.height()-1)};this.incrementWidth=function(){l.width(+l.width()+1)};this.decrementWidth=function(){this.width(+this.width()-1)};this.incrementHeightFromFloor=function(){l.metric()===i.Meter?l.heightFromFloor(+l.heightFromFloor()+100):l.heightFromFloor(+l.heightFromFloor()+1)};this.decrementHeightFromFloor=function(){this.metric()===i.Meter?this.heightFromFloor(+this.heightFromFloor()-100):this.heightFromFloor(+this.heightFromFloor()-1)};this.incrementDegrees=function(){l.degrees(+l.degrees()+1)};this.decrementDegrees=function(){this.degrees(+this.degrees()-1)};this.resetWidthAndHeight=function(){l.metric()===i.Meter?(console.log("meter"),l.height(l.defaults.filter(function(n){return n.key==="DefaultHeight"})[0].value),l.width(l.defaults.filter(function(n){return n.key==="DefaultWidth"})[0].value)):(l.height(l.convertToFeet(l.defaults.filter(function(n){return n.key==="DefaultHeight"})[0].value)),l.width(l.convertToFeet(l.defaults.filter(function(n){return n.key==="DefaultWidth"})[0].value)))};this.emptyForm=function(){$("#pdfForm").trigger("reset");$("#countrySelect").val("default");$("#countrySelect").selectpicker("refresh");$("#market").val("default");$("#market").selectpicker("refresh")};a=1e3;this.defaults=c;this.roomType=ko.observable(this.getParamValuesByName(t.RoomType)?u[this.getParamValuesByName(t.RoomType)]:u.ControlRoom);this.orientation=ko.observable(e===f.RPC?r.Landscape:this.getParamValuesByName(t.Orientation)?r[this.getParamValuesByName(t.Orientation)]===r[0]?r.Landscape:r.Portrait:r.Landscape);this.degrees=ko.observable(this.getParamValuesByName(t.Degrees)?+this.getParamValuesByName(t.Degrees):0);this.maxDegrees=ko.observable(e===f.LED?5:10);this.displayId=ko.observable(n.filter(function(n){return n.id===l.getParamValuesByName(t.DisplayId)}).length>0?this.getParamValuesByName(t.DisplayId):n[0].id);this.columns=ko.observable(this.getParamValuesByName(t.Columns)?+this.getParamValuesByName(t.Columns):e===f.LED?4:2);this.rows=ko.observable(this.getParamValuesByName(t.Rows)?+this.getParamValuesByName(t.Rows):e===f.LED?4:2);this.height=ko.observable(this.getParamValuesByName(t.Height)?+this.getParamValuesByName(t.Height):this.defaults.filter(function(n){return n.key==="DefaultHeight"})[0].value);this.width=ko.observable(this.getParamValuesByName(t.Width)?+this.getParamValuesByName(t.Width):this.defaults.filter(function(n){return n.key==="DefaultWidth"})[0].value);this.metric=ko.observable(this.getParamValuesByName(t.Metric)?+this.getParamValuesByName(t.Metric)==1?i.Feet:i.Meter:i.Meter);this.figurePosition=ko.observable(o);this.roomInputInvalidMessages=ko.observableArray([]);this.displayInputInvalidMessages=ko.observableArray([]);this.contentInputInvalidMessages=ko.observableArray([]);this.allInputInvalidMessages=ko.pureComputed(function(){return ko.utils.arrayGetDistinctValues(l.displayInputInvalidMessages().concat(l.roomInputInvalidMessages().concat(l.contentInputInvalidMessages())))});this.localStorageLink=ko.observable("");this.usingCustomBackground=ko.observable(!1);this.isFormSubmitSuccessful=ko.observable(null);this.selectedProductIndex=ko.pureComputed(function(){for(var t=0;t<n.length;t++)if(n[t].id===l.displayId())return t;return 0});this.currentProduct=ko.pureComputed(function(){return n[l.selectedProductIndex()]});this.grid=ko.pureComputed(function(){for(var t=[],n=0;n<l.rows();n++)t.push({modifierGrid:"c-grid--6",items:new Array(+l.columns())});return t});this.metricFactor=ko.computed(function(){return l.metric()===i.Meter?1:3.2808399});this.figure=ko.observable(1.5);this.figureHeight=ko.computed(function(){return l.figure()*l.metricFactor()});this.displayDefaultBackgrounds=s;this.invalidRowsMessage=ko.pureComputed(function(){return"Your room is too small for this display configuration."});this.invalidColumnsMessage=ko.pureComputed(function(){return"Your room is too small for this display configuration."});this.invalidOrientationMessage=ko.pureComputed(function(){return"Your room is too small for this display configuration."});this.invalidHeightMessage=ko.pureComputed(function(){return"Your room is too small for this display configuration."});this.invalidWidthMessage=ko.pureComputed(function(){return"Your room is too small for this display configuration."});this.invalidHeightFromFloorMessage=ko.pureComputed(function(){return"Your height is invalid for this display configuration."});this.invalidDegreesMessage=ko.pureComputed(function(){return"Your curving degrees are invalid for this display configuration."});this.invalidUploadMessage=ko.pureComputed(function(){return"Invalid upload."});this.minHeight=ko.observable(h.filter(function(n){return n.key==="MinHeight"})[0].value);this.maxHeight=ko.observable(h.filter(function(n){return n.key==="MaxHeight"})[0].value);this.minWidth=ko.observable(h.filter(function(n){return n.key==="MinWidth"})[0].value);this.maxWidth=ko.observable(h.filter(function(n){return n.key==="MaxWidth"})[0].value);this.areRowsValid=ko.pureComputed(function(){return l.rows()>0&&l.isGridHeightValid()?(l.displayInputInvalidMessages.remove(l.invalidRowsMessage()),!0):(l.displayInputInvalidMessages.indexOf(l.invalidHeightFromFloorMessage())<0&&l.roomInputInvalidMessages.indexOf(l.invalidHeightMessage())<0&&l.addMessageToArray(l.displayInputInvalidMessages,l.invalidRowsMessage),!1)});this.areColumnsValid=ko.pureComputed(function(){return l.columns()>0&&l.isGridWidthValid()?(l.displayInputInvalidMessages.remove(l.invalidColumnsMessage()),!0):(l.addMessageToArray(l.displayInputInvalidMessages,l.invalidColumnsMessage),!1)});this.isOrientationValid=ko.pureComputed(function(){return l.orientation()===r.Landscape||l.orientation()===r.Portrait?(l.displayInputInvalidMessages.remove(l.invalidOrientationMessage()),!0):(l.addMessageToArray(l.displayInputInvalidMessages,l.invalidOrientationMessage),!1)});this.currentDisplayDefaultBackground=ko.computed(function(){switch(l.roomType()){case u.Standard:return l.displayDefaultBackgrounds.filter(function(n){return n.key==="Standard"})[0].value;case u.Lobby:return l.displayDefaultBackgrounds.filter(function(n){return n.key==="Lobby"})[0].value;case u.ControlRoom:return l.displayDefaultBackgrounds.filter(function(n){return n.key==="ControlRoom"})[0].value;case u.BroadcastRoom:return l.displayDefaultBackgrounds.filter(function(n){return n.key==="BroadcastRoom"})[0].value;case u.MeetingRoom:return l.displayDefaultBackgrounds.filter(function(n){return n.key==="MeetingRoom"})[0].value;default:return l.displayDefaultBackgrounds.filter(function(n){return n.key==="Standard"})[0].value}});this.isDisplayInputValid=ko.pureComputed(function(){return l.areColumnsValid()&&l.areRowsValid()&&l.isOrientationValid()?!0:!1});this.isRoomInputValid=ko.pureComputed(function(){return l.isHeightValid()&&l.isWidthValid()?!0:!1});this.isContentInputValid=ko.observable(!0);this.isContentInputValid.subscribe(function(n){n?$(".bootstrap-filestyle > input").removeClass("invalidInput"):$(".bootstrap-filestyle > input").addClass("invalidInput")});this.isHeightValid=ko.pureComputed(function(){return l.height()>=l.minHeight()&&l.height()<=l.maxHeight()&&l.isGridHeightValid()?(l.roomInputInvalidMessages.remove(l.invalidHeightMessage()),!0):(l.displayInputInvalidMessages.indexOf(l.invalidHeightFromFloorMessage())<0&&l.displayInputInvalidMessages.indexOf(l.invalidRowsMessage())<0&&l.addMessageToArray(l.roomInputInvalidMessages,l.invalidHeightMessage),!1)});this.isWidthValid=ko.pureComputed(function(){return l.width()>=l.minWidth()&&l.width()<=l.maxWidth()&&l.isGridWidthValid()?(l.roomInputInvalidMessages.remove(l.invalidWidthMessage()),!0):(l.addMessageToArray(l.roomInputInvalidMessages,l.invalidWidthMessage),!1)});this.isHeightFromFloorValid=ko.pureComputed(function(){return l.heightFromFloor()>=+l.productMinHeightFromFloor()&&l.isGridHeightValid()?(l.displayInputInvalidMessages.remove(l.invalidHeightFromFloorMessage()),!0):(l.displayInputInvalidMessages.indexOf(l.invalidRowsMessage())<0&&l.roomInputInvalidMessages.indexOf(l.invalidHeightMessage())<0&&l.addMessageToArray(l.displayInputInvalidMessages,l.invalidHeightFromFloorMessage),!1)});this.heightFromFloor=ko.observable(this.getParamValuesByName(t.HeightFromFloor)?+this.getParamValuesByName(t.HeightFromFloor):this.metric()===i.Feet?this.convertMmToInch(a):a);this.productMinHeightFromFloor=ko.computed(function(){var n=l.currentProduct().minHeightFromFloor,t=l.metric();return t===i.Meter?n:l.convertMmToInch(n)});this.areDegreesValid=ko.pureComputed(function(){return l.degrees()<=l.maxDegrees()&&l.degrees()>=0?(l.displayInputInvalidMessages.remove(l.invalidDegreesMessage()),!0):(l.addMessageToArray(l.displayInputInvalidMessages,l.invalidDegreesMessage),!1)});this.queryString=ko.computed(function(){return t[t.DisplayTechnology]+"="+e+"&"+t[t.RoomType]+"="+u[l.roomType()]+"&"+(e===f.LCD?t[t.Orientation]+"="+l.orientation()+"&":"")+t[t.Degrees]+"="+l.degrees()+"&"+t[t.DisplayId]+"="+l.displayId()+"&"+t[t.Columns]+"="+l.columns()+"&"+t[t.Rows]+"="+l.rows()+"&"+t[t.HeightFromFloor]+"="+l.heightFromFloor()+"&"+t[t.Height]+"="+l.height()+"&"+t[t.Width]+"="+l.width()+"&"+t[t.DisplayBackground]+"="+l.currentDisplayDefaultBackground()+"&"+t[t.Metric]+"="+l.metric()});this.updateUrl();this.queryString.subscribe(function(){l.updateUrl()});this.roomImage=ko.computed(function(){switch(l.roomType()){case u.Standard:return"";case u.Lobby:return l.figure(4),l.figurePosition("3%"),"lobby.svg";case u.ControlRoom:return l.figure(5),l.figurePosition("10%"),"controlRoom.png";case u.BroadcastRoom:return l.figure(3),l.figurePosition("3%"),"broadcastRoomFlipped.png";case u.MeetingRoom:return l.figure(5),l.figurePosition("10%"),"meetingRoom.svg";default:return""}});this.scaleWidth=ko.computed(function(){var n=$(".c-main-bg__content").width();return n/l.width()});this.borderWidth=ko.pureComputed(function(){var n=l.currentProduct();return n&&n.productName.toLowerCase().indexOf("unisee")>0?.5:e===f.LCD?1.5:e===f.LED?0:1});this.displayWidth=ko.computed(function(){return l.orientation()===r.Portrait?n.filter(function(n){return n.id===l.displayId()})[0].productHeightInMillimetre/1e3*l.metricFactor():n.filter(function(n){return n.id===l.displayId()})[0].productWidthInMillimetre/1e3*l.metricFactor()}).extend({deferred:!0});this.displayHeight=ko.computed(function(){return l.orientation()===r.Portrait?n.filter(function(n){return n.id===l.displayId()})[0].productWidthInMillimetre/1e3*l.metricFactor():n.filter(function(n){return n.id===l.displayId()})[0].productHeightInMillimetre/1e3*l.metricFactor()}).extend({deferred:!0});this.isGridHeightValid=ko.computed(function(){var n=l.metric()===i.Feet?12:1e3;return l.height()-+l.productMinHeightFromFloor()/n-+l.heightFromFloor()/n>=l.displayHeight()*l.rows()}).extend({deferred:!0});this.isGridWidthValid=ko.computed(function(){return l.width()>=l.displayWidth()*l.columns()}).extend({deferred:!0});this.vwWidth=ko.pureComputed(function(){return l.columns()*l.displayWidth()*l.scaleWidth()});this.vwHeight=ko.pureComputed(function(){return l.rows()*l.displayHeight()*l.scaleWidth()});this.isGridHeightValid.subscribe(function(n){n||jQuery("#alertGrid").modal("show")});this.isGridWidthValid.subscribe(function(n){n||jQuery("#alertGrid").modal("show")});this.heightInPixels=ko.computed(function(){return l.height()*l.scaleWidth()});this.remainingHeight=ko.computed(function(){return l.height()-+l.productMinHeightFromFloor()/1e3-l.heightFromFloor()/1e3});this.productMarginBottomInPixels=ko.computed(function(){var n=+l.heightInPixels()/(+l.height()*1e3),t=+l.heightInPixels()/(+l.height()*12),r=l.metric()===i.Meter?n:t;return+l.heightFromFloor()*r});this.metric.subscribe(function(n){n===i.Meter?(l.minWidth(l.convertToMeter(l.minWidth())),l.maxWidth(l.convertToMeter(l.maxWidth())),l.minHeight(l.convertToMeter(l.minHeight())),l.maxHeight(l.convertToMeter(l.maxHeight())),l.height(l.convertToMeter(l.height())),l.width(l.convertToMeter(l.width())),l.heightFromFloor(l.convertInchToMm(l.heightFromFloor()))):(l.minWidth(l.convertToFeet(l.minWidth())),l.maxWidth(l.convertToFeet(l.maxWidth())),l.minHeight(l.convertToFeet(l.minHeight())),l.maxHeight(l.convertToFeet(l.maxHeight())),l.height(l.convertToFeet(l.height())),l.width(l.convertToFeet(l.width())),l.heightFromFloor(l.convertMmToInch(l.heightFromFloor())));l.flushErrorMessage()});this.totalWeight=ko.computed(function(){var t=n[l.selectedProductIndex()].productWeightInKilogram,r=l.metric();return t=r===i.Meter?t:l.convertKgToLb(t),Util.MathHelper.round(t*l.rows()*l.columns(),2)});this.totalPower=ko.computed(function(){return Util.MathHelper.round(n[l.selectedProductIndex()].typicalPowerRatingInWatt*l.rows()*l.columns(),2)});this.totalHeat=ko.computed(function(){return Util.MathHelper.round(n[l.selectedProductIndex()].typicalHeatDissipationInBtuPerHour*l.rows()*l.columns(),2)});this.totalProductWidth=ko.computed(function(){var u=l.orientation(),t=u===r.Landscape?n[l.selectedProductIndex()].productWidthInMillimetre:n[l.selectedProductIndex()].productHeightInMillimetre,f=l.metric();return t=f===i.Meter?t:l.convertMmToInch(t),Util.MathHelper.round(t*l.columns(),2)});this.totalProductHeight=ko.computed(function(){var u=l.orientation(),t=u===r.Landscape?n[l.selectedProductIndex()].productHeightInMillimetre:n[l.selectedProductIndex()].productWidthInMillimetre,f=l.metric();return t=f===i.Meter?t:l.convertMmToInch(t),Util.MathHelper.round(t*l.rows(),2)});this.localStorageSpace=ko.computed(function(){var t,i,n;for(localStorage.clear(),t=0,i=0,n="m";i<40;i++)try{localStorage.setItem("DATA",n);n=n+n}catch(r){t=Math.round(JSON.stringify(localStorage).length/1024e3);break}return localStorage.clear(),t});this.productWidth=ko.computed(function(){var u=l.orientation(),t=u===r.Landscape?n[l.selectedProductIndex()].productWidthInMillimetre:n[l.selectedProductIndex()].productHeightInMillimetre,f=l.metric();return f===i.Meter?t:Util.MathHelper.round(l.convertMmToInch(t),2)});this.productHeight=ko.computed(function(){var u=l.orientation(),t=u===r.Landscape?n[l.selectedProductIndex()].productHeightInMillimetre:n[l.selectedProductIndex()].productWidthInMillimetre,f=l.metric();return f===i.Meter?t:Util.MathHelper.round(l.convertMmToInch(t),2)});this.productDepth=ko.computed(function(){var t=n[l.selectedProductIndex()].productDepthInMillimetre,r=l.metric();return r===i.Meter?t:Util.MathHelper.round(l.convertMmToInch(t),2)});this.productWeight=ko.computed(function(){var t=n[l.selectedProductIndex()].productWeightInKilogram,r=l.metric();return r===i.Meter?t:Util.MathHelper.round(l.convertKgToLb(t),2)});this.displayProductSizeUnit=ko.computed(function(){var n=l.metric();return n===i.Meter?"mm":"inch"});this.displayProductWeightUnit=ko.computed(function(){var n=l.metric();return n===i.Meter?"kg":"lbs"});this.displayResolutionWidth=ko.computed(function(){var i=l.orientation(),t=l.selectedProductIndex();return i===r.Landscape?n[t].displayResolutionWidth:n[t].displayResolutionHeight});this.displayResolutionHeight=ko.computed(function(){var i=l.orientation(),t=l.selectedProductIndex();return i===r.Landscape?n[t].displayResolutionHeight:n[t].displayResolutionWidth});this.totalResolutionWidth=ko.computed(function(){var n=l.displayResolutionWidth();return n*l.columns()});this.totalResolutionHeight=ko.computed(function(){var n=l.displayResolutionHeight();return n*l.rows()});this.degreesStyling=ko.computed(function(){return Math.round(l.degrees())*10<100?Math.round(l.degrees())*10:100})}return n.prototype.clearCustomUpload=function(){localStorage.clear();this.localStorageLink(localStorage.getItem("theNewBackground"));this.isContentInputValid(!0);this.contentInputInvalidMessages.removeAll()},n.prototype.validateCustomBackground=function(){var n=$("#uploadBackgroundImage").prop("files"),r=this,t,i;n&&n[0]&&(t=new FileReader,i=["jpg","jpeg","png","gif"],t.onload=function(r){var s,h,e,f,u,o;try{if(s=n[0].name.split(".").pop().toLowerCase(),h=i.indexOf(s)>-1,!h)throw"Invalid file extension.";localStorage.clear();localStorage.setItem("theNewBackground",t.result);this.roomVm.usingCustomBackground(!0);this.roomVm.localStorageLink(localStorage.getItem("theNewBackground"));this.roomVm.isContentInputValid(!0);this.roomVm.contentInputInvalidMessages.removeAll()}catch(r){for(console.log(r),localStorage.clear(),e="Please select a .png .jpg or .gif file",f=0,u="m";f<40;f++)try{localStorage.setItem("DATA",u);u=u+u}catch(r){o=Math.round(JSON.stringify(localStorage).length/1024);console.log("LOCAL STORAGE LIMIT: ("+f+") "+o+"K");console.log(r);e+=" (max "+o+"K).";break}localStorage.clear();this.roomVm.isContentInputValid(!1);this.roomVm.addMessageToArray(this.roomVm.contentInputInvalidMessages,ko.observable(e))}}.bind(this),t.readAsDataURL(n[0]))},n.prototype.flushErrorMessage=function(){this.roomInputInvalidMessages.removeAll();this.displayInputInvalidMessages.removeAll();this.contentInputInvalidMessages.removeAll()},n.prototype.success=function(){var n=this;this.isFormSubmitSuccessful(!0);$("#modelForm").modal("hide");setTimeout(function(){n.isFormSubmitSuccessful(null)},1e4);this.emptyForm()},n.prototype.fail=function(){var n=this,t=this;this.isFormSubmitSuccessful(!1);$("#modelForm").modal("hide");setTimeout(function(){n.isFormSubmitSuccessful(null)},1e4);this.emptyForm()},n.prototype.formViewModelToJson=function(){var n=this.currentProduct(),t,i;return n.displayCalibrationType=this.stripHtml(n.displayCalibrationType),t=new l(n,this.totalPower(),this.totalWeight(),this.totalHeat(),this.totalResolutionWidth(),this.totalResolutionHeight(),this.totalProductWidth(),this.totalProductHeight(),this.rows(),this.columns(),this.queryString(),this.metric(),this.productWidth(),this.productHeight(),this.productDepth(),this.productWeight()),i=ko.mapping.toJS(t),ko.mapping.toJSON(i)},n.prototype.stripHtml=function(n){return n.replace(/(<([^>]+)>)/ig,"")},n.prototype.roomImageModelToJson=function(){var n=new a(this.width(),this.height(),this.degrees(),this.metric(),this.roomType(),this.displayWidth(),this.displayHeight(),this.columns(),this.rows(),this.localStorageLink()?this.localStorageLink().split(",")[1]:null,this.borderWidth()),t=ko.mapping.toJS(n);return ko.mapping.toJSON(t)},n.prototype.addMessageToArray=function(n,t){n.indexOf(t())<0&&n.push(t())},n.prototype.updateUrl=function(){history.replaceState(null,"",window.location.protocol+"//"+window.location.host+window.location.pathname+"?"+this.queryString())},n.prototype.convertToFeet=function(n){var t=+(n*3.2808399);return Util.MathHelper.round(t,0)},n.prototype.convertToMeter=function(n){var t=+(n/3.2808399);return Util.MathHelper.round(t,0)},n.prototype.convertMmToInch=function(n){var t=+(n*.0393700787);return Util.MathHelper.round(t,0)},n.prototype.convertInchToMm=function(n){var t=+(n/.0393700787);return Util.MathHelper.round(t,0)},n.prototype.convertKgToLb=function(n){return+(n*2.20462262)},n.prototype.getParamValuesByName=function(n){for(var u=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),r,i=0;i<u.length;i++)if(r=u[i].split("="),t[r[0]]===n)return r[1]},n.prototype.widthHeightKeypress=function(n,t){return n.roomVm.metric()===i.Feet&&(t.keyCode===44||t.keyCode===46)?!1:!0},n}();n.RoomVm=o;c=function(){function n(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt,tt){b===void 0&&(b="");d===void 0&&(d=0);g===void 0&&(g="");nt===void 0&&(nt=0);tt===void 0&&(tt=0);this.id=i;this.productName=r;this.displayTechnology=u;this.displayResolutionWidth=f;this.displayResolutionHeight=e;this.displaySizeInInch=o;this.displayCalibrationType=s;this.hasExternalRedundantPowerSupplyOption=h;this.productWidthInMillimetre=c;this.productHeightInMillimetre=l;this.productDepthInMillimetre=a;this.typicalPowerRatingInWatt=v;this.productWeightInKilogram=y;this.typicalHeatDissipationInBtuPerHour=p;this.minHeightFromFloor=w;this.lcdTechnology=b;this.displayBezelWidthInMillimetre=k;this.luminanceInCandelaPerSquareMetre=d;this.lightSource=g;this.typicalLightSourceLifetimeInHours=nt;this.brightnessInCandelaPerSquareMeter=tt}return n}(),function(n){n[n.Standard=0]="Standard";n[n.ControlRoom=1]="ControlRoom";n[n.Lobby=2]="Lobby";n[n.BroadcastRoom=3]="BroadcastRoom";n[n.MeetingRoom=4]="MeetingRoom"}(u=n.RoomType||(n.RoomType={})),function(n){n[n.DisplayTechnology=0]="DisplayTechnology";n[n.RoomType=1]="RoomType";n[n.Orientation=2]="Orientation";n[n.Degrees=3]="Degrees";n[n.DisplayId=4]="DisplayId";n[n.Columns=5]="Columns";n[n.Rows=6]="Rows";n[n.HeightFromFloor=7]="HeightFromFloor";n[n.Height=8]="Height";n[n.Width=9]="Width";n[n.DisplayBackground=10]="DisplayBackground";n[n.Metric=11]="Metric"}(t=n.QueryParam||(n.QueryParam={})),function(n){n[n.LCD=0]="LCD";n[n.RPC=1]="RPC";n[n.LED=2]="LED"}(f=n.DisplayTechnology||(n.DisplayTechnology={})),function(n){n[n.Landscape=0]="Landscape";n[n.Portrait=1]="Portrait"}(r||(r={})),function(n){n[n.Meter=0]="Meter";n[n.Feet=1]="Feet"}(i||(i={}));var y=function(){function n(n,t){this.roomType=n;this.defaultBackground=t}return n}(),p=function(){function n(n,t){this.key=n;this.value=t}return n}(),l=function(){function n(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p){this.currentProduct=n;this.totalPower=t;this.totalWeight=i;this.totalHeat=r;this.totalResolutionWidth=u;this.totalResolutionHeight=f;this.totalProductWidth=e;this.totalProductHeight=o;this.rows=s;this.columns=h;this.queryString=c;this.metric=l;this.productWidth=a;this.productHeight=v;this.productDepth=y;this.productWeight=p}return n}(),a=function(){function n(n,t,i,r,u,f,e,o,s,h,c){this.width=n;this.height=t;this.degrees=i;this.metric=r;this.roomType=u;this.videoWallWidth=f;this.videoWallHeight=e;this.columns=o;this.rows=s;this.uploadedImage=h;this.borderWidth=c}return n}();$(document).ready(function(){$(":file").filestyle();$(".bootstrap-filestyle.input-group > input").prop("disabled",!1).prop("readonly",!0).click(function(){$("#uploadBackgroundImage").click()})})})(t=n.VideoWall||(n.VideoWall={}))})(Barco||(Barco={})),function(n){var t=function(){function n(){}return n.average=function(){for(var t=[],i,r,n=0;n<arguments.length;n++)t[n]=arguments[n];return i=t.reduce(function(n,t){return n+t}),r=t.length,i/r},n.round=function(n,t,i){var r=i?i:t,u=Math.pow(10,r),f=(Math.round(n*u)/u).toFixed(r);return Number(f)},n}();n.MathHelper=t}(Util||(Util={})),function(n){var t;(function(n){var t;(function(n){var t,i;(function(n){n[n.xs=480]="xs";n[n.sm=768]="sm";n[n.md=1100]="md";n[n.lg=1400]="lg";n[n.xl=1800]="xl"})(t=n.BreakPoints||(n.BreakPoints={}));i=function(){function n(n){var i=this,t=this.getOptions();this.carousel=jQuery(n);jQuery(n).closest(".js-modal").parent().on("shown.bs.modal",function(){i.carousel.not(".slick-initialized").slick(t).resize()});this.opts=t;t.adjustArrows===!0&&(this.bindEventsArrowAdjustments(),this.addjustSliderNavigation())}return n.prototype.getOptions=function(){return{infinite:!0,lazyLoad:"progressive",autoplay:!1,dots:!0,arrows:!0,speed:800,centerMode:!1,slidesToShow:3,adjustArrows:!0,adjustArrowsSelector:"img",responsive:[{breakpoint:t.sm,settings:{arrows:!1,slidesToShow:1}}]}},n.prototype.getCurrentSlide=function(){return this.carousel.find(".slick-current")},n.prototype.getSlide=function(n){return this.carousel.find('.slick-slide[data-slick-index="'+n+'"]')},n.prototype.bindEventsArrowAdjustments=function(){var n=this;this.getCurrentSlide().find(this.opts.adjustArrowsSelector).first().on("load",function(){return n.addjustSliderNavigation()});this.carousel.on("afterChange",function(){return n.addjustSliderNavigation()});jQuery(window).on("debouncedresize",function(){return n.addjustSliderNavigation()})},n.prototype.addjustSliderNavigation=function(){var t=this.getCurrentSlide(),n=t.find(this.opts.adjustArrowsSelector+":visible").first();if(!(n.length<1)){var r=n.offset().top-t.offset().top,i=n.outerHeight(!0),u=r+i/2+"px";typeof i=="number"&&this.carousel.find(".slick-arrow").css({top:u})}},n}();n.Carousel=i})(t=n.Barco||(n.Barco={}))})(t=n.Static||(n.Static={}))}(Dlw||(Dlw={}));jQuery(document).ready(function(){jQuery(".js-slick").length>0&&new Dlw.Static.Barco.Carousel(".js-slick")}),function(n){var t;(function(n){var t;(function(n){var u=function(){function n(n){this.CLASS_NAVITEM_COLLAPSE=".js-configurator-collapse-next";this.CLASS_NAVITEM=".js-configurator-control-item";this.CLASS_NAVITEM_CONTENT=".js-collapse-content";this.CLASS_MESSAGE_CLOSE=".js-close";this.CLASS_MESSAGE_ACTIVE="c-configurator__message--hasmessage";this.CLASS_NAVITEM_ACTIVE="c-configurator__item--active";this.selectedConfigurator=null;this.myInterval=null;this.container=jQuery(n);this.navItem=jQuery(this.container).find(this.CLASS_NAVITEM);this.bindEvents()}return n.prototype.bindEvents=function(){var n=this;jQuery("#modelAlert").modal("show");jQuery("body").on("click",function(t){jQuery(t.target).hasClass("js-btn")?n.toggleContent(t):jQuery(t.target).closest(".js-configurator-control, .js-modal").length===0&&(t.stopPropagation,n.closeContent())});jQuery(this.CLASS_MESSAGE_CLOSE).on("click",function(t){return n.closeMessage(t)})},n.prototype.closeContent=function(){var n=jQuery(this.navItem).closest(this.CLASS_NAVITEM);jQuery(n).hasClass(this.CLASS_NAVITEM_ACTIVE)&&(jQuery(n).removeClass(this.CLASS_NAVITEM_ACTIVE),this.selectedConfigurator=null)},n.prototype.closeMessage=function(n){jQuery(n.currentTarget).closest("."+this.CLASS_MESSAGE_ACTIVE).removeClass(this.CLASS_MESSAGE_ACTIVE)},n.prototype.toggleContent=function(n){var i=this,t;n.preventDefault;n.stopPropagation;t=jQuery(n.target).closest(this.CLASS_NAVITEM);jQuery(t).data("toggle")==="collapse-horizontal"?(this.myInterval&&clearTimeout(this.myInterval),jQuery(t).hasClass(this.CLASS_NAVITEM_ACTIVE)?(jQuery(t).removeClass(this.CLASS_NAVITEM_ACTIVE),this.selectedConfigurator=null):(this.closeContent(),this.selectedConfigurator&&this.selectedConfigurator.closest(this.CLASS_NAVITEM).removeClass(this.CLASS_NAVITEM_ACTIVE),this.selectedConfigurator=jQuery(n.currentTarget),jQuery(t).addClass(this.CLASS_NAVITEM_ACTIVE),this.myInterval=window.setTimeout(function(){i.closeContent()},5e4))):this.container.find("."+this.CLASS_NAVITEM_ACTIVE).removeClass(this.CLASS_NAVITEM_ACTIVE)},n}(),t,i,r;n.Configurator=u;t=function(){function n(n){this.CLASS_TOGGLE_ACTIVE="c-img-selector__img--active";this.CLASS_IMGSELECTOR=".js-img-selector";this.CLASS_BG=".js-bg-img";this.ID_ACTIVE_BG="#configRoom";this.CLASS_BTN=".js-btn-room";this.selectedImg=null;this.container=jQuery(n);this.bindEvents()}return n.prototype.bindEvents=function(){var n=this;jQuery(this.CLASS_IMGSELECTOR).on("click",function(t){return n.changeBgImage(t)})},n.prototype.setActiveImage=function(){var n=this;jQuery(this.CLASS_IMGSELECTOR).removeClass(this.CLASS_TOGGLE_ACTIVE);jQuery.each(jQuery(this.CLASS_IMGSELECTOR),function(t,i){if(jQuery(i).find("img").attr("id")===jQuery(n.ID_ACTIVE_BG).val())return jQuery(i).addClass(n.CLASS_TOGGLE_ACTIVE),n.selectedImg=jQuery(i),!1})},n.prototype.changeBgImage=function(n){n.preventDefault;n.stopPropagation;jQuery(n.currentTarget).closest(".js-modal").parent().modal("hide");jQuery(this.CLASS_BTN).find("span:first").text(jQuery(n.currentTarget).prev().text())},n.prototype.updateImagePath=function(n){return n.match(/\((.*?)\)/)[1].replace(/('|")/g,"")},n.prototype.replaceImagePath=function(n,t){var i=t.match(/.*\/(.*)(.jpg|png)$/),r=n.match(/.*\/(.*)(.jpg|png)$/);return n.replace(r[1]+r[2],i[1]+i[2])},n}();n.ConfiguratorBg=t;i=function(){function n(n){this.CLASS_ACTIVE_DISPLAY="c-table-row--active";this.ID_ACTIVE_DISPLAY="#configDisplay";this.CLASS_ACTIVE_DISPLAY_NAME=".js-display-name";this.CLASS_BTN=".js-btn-display";this.container=jQuery(n);this.setActiveDisplay();this.bindEvents()}return n.prototype.bindEvents=function(){var n=this;this.container.find("tbody tr").on("click",function(t){return n.changeDisplay(t)})},n.prototype.setActiveDisplay=function(){var n=this;this.container.find("tbody tr").removeClass(this.CLASS_ACTIVE_DISPLAY);jQuery.each(this.container.find("tbody tr"),function(t,i){if(jQuery(i).attr("id")===jQuery(n.ID_ACTIVE_DISPLAY).val())return jQuery(i).addClass(n.CLASS_ACTIVE_DISPLAY),!1})},n.prototype.changeDisplay=function(n){n.preventDefault;n.stopPropagation;var t=jQuery(n.currentTarget).attr("id");jQuery(this.ID_ACTIVE_DISPLAY).val(t);jQuery(this.CLASS_ACTIVE_DISPLAY_NAME).text(t);this.container.find("tbody tr").removeClass(this.CLASS_ACTIVE_DISPLAY);jQuery(n.currentTarget).addClass(this.CLASS_ACTIVE_DISPLAY);jQuery(n.currentTarget).closest(".js-modal").parent().modal("hide");jQuery(this.CLASS_BTN).find("span:first").text(t)},n}();n.ConfiguratorDisplay=i;r=function(){function n(n){this.lastScrollTop=0;this.CLASS_FIX_BTNS="js-bg-btn-fixed";this.container=jQuery(n);this.scrollUntil();this.bindEvents()}return n.prototype.bindEvents=function(){var n=this;jQuery(window).on("scroll",function(t){return n.scrollUntil(t)})},n.prototype.scrollUntil=function(){var n="fixed",t=this.isOnScreen(jQuery(".js-background").next());t.insideViewport&&(n="absolute");this.container.css({position:n})},n.prototype.isOnScreen=function(n){var i=jQuery(window),t={top:i.scrollTop(),left:i.scrollLeft(),right:0,bottom:0};t.right=t.left+i.width();t.bottom=t.top+i.height();var r=n.offset(),u={x1:t.left,y1:t.top,x2:t.left+i.width(),y2:t.top+i.height()},f={x1:r.left,y1:r.top-parseInt(n.css("margin-top")),x2:r.left+n.width(),y2:r.top+n.outerHeight(!0)},e=u.x1<f.x2&&u.x2>f.x1&&u.y1<f.y2&&u.y2>f.y1;return{left:r.left-n.width(),top:r.top-n.outerHeight(!0),bottom:i.height()-r.top,insideViewport:e}},n}();n.RoomBgImg=r})(t=n.Barco||(n.Barco={}))})(t=n.Static||(n.Static={}))}(Dlw||(Dlw={}));jQuery(function(){jQuery(".js-configurator-control").length>0&&new Dlw.Static.Barco.Configurator(jQuery(".js-configurator-control"));jQuery(".js-configurator-control").length>0&&new Dlw.Static.Barco.ConfiguratorBg(jQuery(".js-configurator-control"));jQuery(".js-display-table").length>0&&new Dlw.Static.Barco.ConfiguratorDisplay(jQuery(".js-display-table"));jQuery(".js-bg-btn-fixed").length>0&&new Dlw.Static.Barco.RoomBgImg(jQuery(".js-bg-btn-fixed"))}),function(n){var t;(function(n){var t,i,r;(function(n){n[n.LCD=0]="LCD";n[n.RPC=1]="RPC"})(t||(t={}));i=function(){function n(n,t){this.viewModel=new r(t.industries,t.urlLCD,t.urlRPC);ko.applyBindings(this.viewModel,n[0])}return n}();n.Home=i;r=function(){function n(n,i,r){var u=this;this.availableIndustries=ko.observableArray(n);this.selectedIndustry=ko.observable();this.urlLCD=i;this.urlRPC=r;this.redirect=function(){switch(ko.utils.unwrapObservable(u.selectedIndustry).technology){case t.LCD:window.location.href=u.urlLCD;break;case t.RPC:window.location.href=u.urlRPC;break;default:window.location.href="/"}}}return n}()})(t=n.VideoWall||(n.VideoWall={}))}(Barco||(Barco={}));ko.bindingHandlers.selectPicker={after:["options","value","selectedOptions","enable","disable"],init:function(n){jQuery(n).addClass("selectpicker").selectpicker()},update:function(n,t,i){ko.unwrap(i.get("options"));ko.unwrap(i.get("value"));ko.unwrap(i.get("selectedOptions"));ko.unwrap(i.get("enable"));ko.unwrap(i.get("disable"));jQuery(n).selectpicker("refresh")}},function(n){var t;(function(n){var t;(function(n){var t=function(){function n(n){this.container=jQuery(n);this.bindEvents()}return n.prototype.bindEvents=function(){this.container.on("click.collapse-next.data-api","[data-toggle=collapse-next]",function(){var n=jQuery(this),t=n.next(),i=n.data("parent"),r=t.hasClass("in");!r&&i&&n.parent().closest(i).find(".collapse.in").collapse("hide").prev("[data-toggle]").addClass("collapsed");n.toggleClass("collapsed",r);t.hasClass("collapse")?t.collapse("toggle"):t.collapse()})},n}();n.BootstrapCollapseNext=t;jQuery(function(){return new t(document.body)})})(t=n.Couture2||(n.Couture2={}))})(t=n.Static||(n.Static={}))}(Dlw||(Dlw={})),function(n){var t;(function(n){var t;(function(n){var t=function(){function n(t){var i=jQuery(t);i.each(function(t,i){var r=jQuery(i),u={mobile:n.isMobile&&r.data("mobile-native"),dropupAuto:!1};r.selectpicker(u)})}return n.isMobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4)),n}();n.BootstrapSelect=t})(t=n.Barco||(n.Barco={}))})(t=n.Static||(n.Static={}))}(Dlw||(Dlw={}));$(document).ready(function(){jQuery.fn.selectpicker&&new Dlw.Static.Barco.BootstrapSelect(".js-form-select")}),function(n){var t;(function(n){var t;(function(n){var t=function(){function n(){}return n.initialize=function(){n.initializeContainer(document.body)},n.initializeContainer=function(){var n=this;this.setHeight();jQuery(window).on("resize",function(t){return n.setHeight(t)});jQuery(".js-scroll-down").on("click",function(t){return n.scrolldown(t)})},n.setHeight=function(){var f=jQuery("body header:first").height(),i=jQuery("body main:first"),e=jQuery(i).height(),r=jQuery("body footer:first").height(),t=jQuery(".js-background").find("header").height()-15,u=jQuery(".js-background").find("footer").height(),n=jQuery(window).innerHeight();t&&(n=n-t-u);jQuery(".js-background").next("section").length===0&&(n=n-r-18)},n.scrolldown=function(n){n.preventDefault;n.stopPropagation;var t=jQuery(n.currentTarget).attr("href");if(t)return jQuery("html, body").delay(100).animate({scrollTop:jQuery(t).offset().top-72},500),!1},n}();n.Main=t})(t=n.Barco||(n.Barco={}))})(t=n.Static||(n.Static={}))}(Dlw||(Dlw={}));jQuery(function(){Dlw.Static.Barco.Main.initialize()}),function(n){var t;(function(n){var t;(function(n){var t=function(){function n(n){this.container=jQuery(n);this.bindEvents()}return n.prototype.bindEvents=function(){var n=this;jQuery(".js-modal-overlay").on("click",function(t){(t.currentTarget===t.target||jQuery(t.target).hasClass("js-close")||jQuery(t.target).hasClass("js-img-selector"))&&n.closeModel(t)});jQuery(".js-modal-link").on("click",function(t){n.openModel(t)})},n.prototype.openModel=function(n){n.preventDefault;n.stopPropagation;var r=n.currentTarget.getBoundingClientRect(),i=jQuery(n.currentTarget).data("modal"),u=this.calcPosition(r,i),t=jQuery("#"+i.id);t.length>0&&(jQuery(t).addClass("o-model--active").find(".js-modal").css(u),jQuery("html").css("overflow","hidden"),jQuery(t).trigger("addClass"))},n.prototype.calcPosition=function(n,t){var i={top:n.top+n.height},r;switch(t.position.V){case"top":r=jQuery(".js-top").height();i.top=jQuery(".js-header").height()+(r?r:0)+2}switch(t.position.H){case"left":i.left=n.left;break;case"right":i.right=document.body.clientWidth-n.right;break;case"center":i.left=0;i.right=0;i["margin-right"]="auto";i["margin-left"]="auto"}return i},n.prototype.closeModel=function(n){n.preventDefault;n.stopPropagation;jQuery(n.delegateTarget).removeClass("o-model--active");jQuery("html").css("overflow","inherit")},n}();n.Modal=t;jQuery(function(){return new t(document.body)})})(t=n.Barco||(n.Barco={}))})(t=n.Static||(n.Static={}))}(Dlw||(Dlw={}))