function HashTable(n){"use strict";this.length=0;this.items={};for(var t in n)n.hasOwnProperty(t)&&(this.items[t]=n[t],this.length++);this.hasItem=function(n){return this.items.hasOwnProperty(n)};this.setItem=function(n,t){var i=undefined;return this.hasItem(n)?i=this.items[n]:this.length++,this.items[n]=t,i};this.getItem=function(n){return this.hasItem(n)?this.items[n]:undefined};this.removeItem=function(n){if(this.hasItem(n)){var t=this.items[n];return this.length--,delete this.items[n],t}return undefined};this.keys=function(){var n=[];for(var t in this.items)this.hasItem(t)&&n.push(t);return n};this.values=function(){var n=[];for(var t in this.items)this.hasItem(t)&&n.push(this.items[t]);return n};this.each=function(n){for(var t in this.items)this.hasItem(t)&&n(t,this.items[t])};this.clear=function(){var n=this.length;return this.items={},this.length=0,n}}function Tracker(){function n(n,t,i,r){try{return typeof dg_et_fireCcEvent=="function"&&(dg_et_fireCcEvent(n,t,i,r),console.log("trackIt ################### app:"+n+", app_plain:"+t+", "+i+" = "+r)),!0}catch(u){return!1}}this.trackReady=function(t,i,r,u){return n(t,i,r,u)};this.track4App=function(t,i,r,u){return n(t,i,r,u)}}(function(n){jQuery.extend({getUrlVars:function(){for(var t=[],n,r=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),i=0,u=r.length;i<u;i++)n=r[i].split("="),t.push(n[0]),t[n[0]]=n[1];return t},getUrlVar:function(n){return jQuery.getUrlVars()[n]}});ko.utils.stringStartsWith=function(n,t){return(n=n||"",t.length>n.length)?!1:n.substring(0,t.length)===t};var t=n.fn.addClass,i=n.fn.removeClass;n.fn.addClass=function(){var n=t.apply(this,arguments);return jQuery(this).trigger("cssClassAdded"),n};n.fn.removeClass=function(){var n=i.apply(this,arguments);return jQuery(this).trigger("cssClassRemoved"),n};jQuery.ajaxSetup({error:function(n,t,i){jQuery("#errorMessage").text("An error occurred: "+i);jQuery("#systemMessages").show();setTimeout(function(){jQuery("#systemMessages").hide()},5e3)}});jQuery.each(["show","hide"],function(t,i){var r=n.fn[i];jQuery.fn[i]=function(){return this.trigger(i),r.apply(this,arguments)}})})(jQuery);var DuD=function(n){ko.mapping.defaultOptions().copy=["UseCaseId","ShowDebugOutput","ShowDevelopmentOutput","HistoryItemQuantity","Searchtypes","CADSystems","CADSystemViews","CADSystems2D","ColumnBrowserContent","DocumentTypes","Languages","FulltextBaseUrl","AllDocumentTypes","AllLanguages"];ko.observableArray.fn.distinct=function(n){var t=this;return t.index={},t.index[n]=ko.observable({}),ko.computed(function(){var i={};ko.utils.arrayForEach(t(),function(t){var r=ko.utils.unwrapObservable(t[n]);r&&(i[r]=i[r]||[],i[r].push(t))});t.index[n](i)}),t};ko.bindingHandlers.debugOutput={update:function(n,t){var i=ko.utils.unwrapObservable(t());ko.bindingHandlers.visible.update(n,function(){return!i})}};ko.bindingHandlers.logger={update:function(n,t,i){var r=ko.utils.domData.get(n,"_ko_logger")||0,u=ko.toJS(t()||i());ko.utils.domData.set(n,"_ko_logger",++r);window.console&&console.log}};ko.extenders.trackChange=function(n,t){return t&&(n.isDirty=ko.observable(!1),n.originalValue=n(),n.subscribe(function(t){n.isDirty(t!==n.originalValue)})),n};ko.subscribable.fn.subscribeChanged=function(n){var t;this.subscribe(function(n){t=n},this,"beforeChange");this.subscribe(function(i){n(i,t)})};ko.extenders.withPrevious=function(n){return n.previous=ko.observable(),n.changed=ko.computed(function(){return n()!==n.previous()}),n.subscribe(function(t){n.previous(t)},null,"beforeChange"),n};var t={Get:function(n){for(var t,r=n+"=",u=document.cookie.split(";"),i=0,f=u.length;i<f;i++){for(t=u[i];t.charAt(0)===" ";)t=t.substring(1,t.length);if(t.indexOf(r)===0)return t.substring(r.length,t.length)}return null},Set:function(n,t,i,r){var f="",u;i&&(u=new Date,u.setTime(u.getTime()+i*864e5),f="; expires="+u.toGMTString());r=r?" domain="+r+";":"";document.cookie=n+"="+t+f+"; path=/;"+r},Kill:function(n){this.set(n,"",-1)}};return{App:{Const:{KO:{Events:{ARRAY_CHANGE:"arrayChange"},ViewModel:{SEARCH_INDEX_JSON:"#searchIndexJson",DRIVECAD_SEARCHFORM_MODEL:"#DriveCADSearchFormModel",DRIVECAD_SEARCH_RESULT_MODEL:"#DriveCADSearchResultModel",DRIVECAD_SPECIFICATION_MODEL:"#DriveCADSpecificationModel",DOCUMENTS_MODEL:"#DocumentsModel",DOCUMENTS_SEARCH_RESULT_MODEL:"#DocumentsSearchResultModel",DOCUMENTS_INDEX_MODEL:"#DocumentsIndexModel",DOCUMENTS_SELECTION_VIEW_MODEL:"#DocumentsSelectionViewModel",DOWNLOADS_MODEL:"#DownloadsModel",DOWNLOADS_SEARCH_RESULT_MODEL:"#DownloadsSearchResultModel",PRODUCTDATA_MODEL:"#ProductdataModel",PRODUCTDATA_SEARCH_RESULT_MODEL:"#ProductdataSearchResultModel",SALES_TRANSACTION_SEARCH_RESULT_MODEL:"#SalesTransactionSearchResultModel",DOCUMENTS_PACKAGE_SEARCH_MODEL:"#DocumentsPackageSearchModel",FORWARD_DOCUMENT_MAIL_MODEL:"#ForwardDocumentMailModel",DOCUMENT_SETTINGS_MODEL:"#DocumentsSettingsModel",DRIVECAD_SETTINGS_MODEL:"#DriveCADSettingsModel"},LANGUAGES:"languages",DOCUMENT_TYPES:"documentTypes",SEARCH_TERM:"searchTerm",SEARCH_TERM_TRANSACTIONREQUESTS:"Transactions",HIDDEN_SEARCH_VALUE:"SearchValue",SEARCH_PERFORMED:"searchPerformed",SEARCH_STATUS_DRIVECAD:"searchStatusDriveCad",SEARCH_STATUS_DOCUMENTS:"searchStatusDocuments",SEARCH_STATUS_PRODUCTDATA:"searchStatusProductdata",SEARCH_STATUS_DOWNLOADS:"searchStatusDownloads",PRODUCT:"product",SOFTWARE_CATEGORY:"softwareCategory",FORWARD_DOCUMENT:"forwardDocument",PDF_PROTECTION_SETTING:"pdfProtectionSetting",MAPPING_ERROR:"ShowMappingErrorHintSync"},Mvc:{APLOUT_PAGE:window.applicationBaseUrl+"home/aplout",DRIVECAD_SEARCH_FORM:window.applicationBaseUrl+"DriveCAD/SearchForm/",DRIVECAD_SEARCH_RESULT:window.applicationBaseUrl+"DriveCAD/SearchResult/",DRIVECAD_SPECIFICATION:window.applicationBaseUrl+"DriveCAD/Specification/",DRIVECAD_CLICK2CADAPPLET:window.applicationBaseUrl+"DriveCAD/Click2CADApplet/",DRIVECAD_CADPREVIEWAPPLET:window.applicationBaseUrl+"DriveCAD/CadPreviewApplet/",DRIVECAD_CADPREVIEWJAVAAPPLET:window.applicationBaseUrl+"DriveCAD/CadPreviewJavaApplet/",DOCUMENTS_SEARCH_SELECTION:window.applicationBaseUrl+"Documents/SearchSelection/",DOCUMENTS_SEARCH_FORM:window.applicationBaseUrl+"Documents/SearchForm/",PT_PILOT_DOCUMENTS_SEARCH_FORM:window.applicationBaseUrl+"PtPilot/DocumentsSearchForm/",DOCUMENTS_SEARCH_RESULT:window.applicationBaseUrl+"Documents/SearchResult/",PT_PILOT_DOCUMENTS_SEARCH_RESULT:window.applicationBaseUrl+"PtPilot/DocumentsSearchResult/",DOWNLOADS_SEARCH_FORM:window.applicationBaseUrl+"Downloads/SearchForm/",DOWNLOADS_SEARCH_RESULT:window.applicationBaseUrl+"Downloads/SearchResult/",PRODUCTDATA_SEARCH_FORM:window.applicationBaseUrl+"Productdata/SearchForm/",PT_PILOT_PRODUCTDATA_SEARCH_FORM:window.applicationBaseUrl+"PtPilot/ProductdataSearchForm/",PRODUCTDATA_SEARCH_RESULT:window.applicationBaseUrl+"Productdata/SearchResult/",PT_PILOT_PRODUCTDATA_SEARCH_RESULT:window.applicationBaseUrl+"PtPilot/ProductdataSearchResult/",PRODUCTDATA_CADPREVIEWAPPLET:window.applicationBaseUrl+"Productdata/CadPreviewApplet/",PRODUCTDATA_CADPREVIEWJAVAAPPLET:window.applicationBaseUrl+"Productdata/CadPreviewJavaApplet/",SALES_TRANSACTION_SEARCH_RESULT:window.applicationBaseUrl+"SalesTransaction/SearchResult/",DOCUMENTS_PACKAGE_INDEX:window.applicationBaseUrl+"DocumentsPackage/",DOCUMENTS_PACKAGE_LOADING:window.applicationBaseUrl+"Home/DocumentpackageLoading/",MAIL_FORWARD_DOCUMENT:window.applicationBaseUrl+"Mail/ForwardDocument/",MAIL_FORWARD_DOCUMENTS:window.applicationBaseUrl+"Mail/ForwardDocuments/",DOCUMENT_SETTINGS:window.applicationBaseUrl+"OptionSettings/DocumentSettings/",PT_PILOT_DOCUMENT_SETTINGS:window.applicationBaseUrl+"OptionSettings/PtPilotDocumentSettings/",DRIVECAD_SETTINGS:window.applicationBaseUrl+"OptionSettings/DriveCADSettings/",API_MAIL_SERVICE:window.applicationBaseUrl+"api/MailService",API_DOCUMENT_SERVICE:window.applicationBaseUrl+"api/DocumentService/Search",API_TRACK_DOWNLOAD:window.applicationBaseUrl+"api/DocumentService/TrackDownload",API_TRACK_SOFTWARE_DOWNLOAD:window.applicationBaseUrl+"api/DownloadService/TrackDownload",API_PT_PILOT_DOCUMENT_SERVICE:window.applicationBaseUrl+"api/DocumentService/PtSearch",API_DOCUMENT_SERVICE_SEARCH_BY_PRODUCTGROUPS:window.applicationBaseUrl+"api/DocumentService/SearchByProductGroup",API_DOCUMENT_SERVICE_SEARCH_BY_APLOUT:window.applicationBaseUrl+"api/DocumentService/SearchByAplOut",API_DOCUMENT_SERVICE_SEARCH_ETL_ASYNC:window.applicationBaseUrl+"api/DocumentService/SearchAsync",API_DOCUMENT_SERVICE_SEND_MAIL:window.applicationBaseUrl+"api/DocumentService/SendMail",API_DOCUMENT_SERVICE_DOCUMENTTYPES_FOR_FULLTEXT:window.applicationBaseUrl+"api/DocumentService/DocumentTypesForFulltextSearch",API_INPUTPARSER_SERVICE:window.applicationBaseUrl+"api/InputParserService/GetSearchTermType",API_INPUTPARSER_SERVICE_FOR_DOCUMENTS:window.applicationBaseUrl+"api/InputParserService/GetSearchTermTypeForDocuments",API_DOCUMENT_SERVICE_ZIP:window.applicationBaseUrl+"api/DocumentServiceZip/",API_DRIVECAD_SERVICE:window.applicationBaseUrl+"api/DriveCADService/",API_DRIVECAD_SERVICE_RELOADNODES:window.applicationBaseUrl+"api/DriveCADService/ReloadNodes",API_DRIVECAD_SERVICE_SEARCHBYSERIALNUMBER:window.applicationBaseUrl+"api/DriveCADService/SearchBySerialNumber",API_DRIVECAD_SERVICE_CADPREVIEWBYSERIALNUMBER:window.applicationBaseUrl+"api/DriveCADService/CadPreviewBySerialNumber",API_DRIVECAD_SERVICE_SEARCH_BY_APLOUT_FROM_TRANSFERID:window.applicationBaseUrl+"api/DriveCADService/SearchByAplOutFromTransferId",API_DRIVECAD_SERVICE_CADPREVIEW_BY_APLOUT_FROM_TRANSFERID:window.applicationBaseUrl+"api/DriveCADService/CadPreviewByAplOutFromTransferId",API_DRIVECAD_SERVICE_SEARCHBYNODES:window.applicationBaseUrl+"api/DriveCADService/SearchByNodes",API_DRIVECAD_SERVICE_CADPREVIEWBYNODES:window.applicationBaseUrl+"api/DriveCADService/CadPreviewByNodes",API_DRIVECAD_SERVICE_SEARCHBYARTIFICIALNODE:window.applicationBaseUrl+"api/DriveCADService/SearchByArtificialNode",API_DRIVECAD_SERVICE_CADPREVIEWBYARTIFICIALNODE:window.applicationBaseUrl+"api/DriveCADService/CadPreviewByArtificialNode",API_DRIVECAD_SERVICE_SEARCHCLICK2CADURL:window.applicationBaseUrl+"api/DriveCADService/SearchClick2CADUrl",API_DRIVECAD_SERVICE_SEARCHCLICK2CADURLBYNODES:window.applicationBaseUrl+"api/DriveCADService/SearchClick2CADUrlByNodes",API_DRIVECAD_SERVICE_SEARCHCLICK2CADURLBYARTIFICIALNODENODE:window.applicationBaseUrl+"api/DriveCADService/SearchClick2CADUrlByArtificialNode",API_DRIVECAD_SERVICE_LOAD_BILD_AUF_ANGEBOT_BY_NODES:window.applicationBaseUrl+"api/DriveCADService/LoadBildAufAngebotByNodes",API_DRIVECAD_SERVICE_LOAD_BILD_AUF_ANGEBOT_BY_ARTIFICIAL_NODES:window.applicationBaseUrl+"api/DriveCADService/LoadBildAufAngebotByArtificialNodes",API_PRODUCT_DATA_SERVICE:window.applicationBaseUrl+"api/ProductdataService/",API_PRODUCT_DATA_SERVICE_DOWNLOAD:window.applicationBaseUrl+"api/ProductdataDownloadService/GetDownload",API_PRODUCTDATA_IMAGE_SERVICE:window.applicationBaseUrl+"api/ProductdataImageService/",API_SEARCH_HISTORY_SERVICE_POST:window.applicationBaseUrl+"api/SearchHistoryService/",API_SALES_TRANSACTION_SERVICE:window.applicationBaseUrl+"api/SalesTransactionService/GetSalesTransactions",API_SALES_TRANSACTION_SERVICE_WITH_PARTNERNUMBER:window.applicationBaseUrl+"api/SalesTransactionService/GetSalesTransactionWithPartnerNumber",API_DOCUMENTS_PACKAGE_SERVICE_SERIALNUMBER:window.applicationBaseUrl+"api/DocumentsPackageService/GetCatalogDesignationForSerialNumber",API_DOCUMENTS_PACKAGE_SERVICE:window.applicationBaseUrl+"api/DocumentsPackageService/",API_DOWNLOAD_SERVICE:window.applicationBaseUrl+"api/DownloadService/Search",API_DOWNLOAD_SERVICE_BY_TRANSFERSERVICE:window.applicationBaseUrl+"api/DownloadService/SearchByTransferService",API_DOWNLOAD_SERVICE_CHECK_DISCLAIMER_KEY:window.applicationBaseUrl+"api/DownloadService/CheckDisclaimerKey",API_DOWNLOAD_ZIP_SERVICE:window.applicationBaseUrl+"api/DownloadZipService",API_SHOPPING_CART_TRANSFER_SERVICE:window.applicationBaseUrl+"api/ShoppingCartTransferService/",API_OPTION_SETTINGS_SERVICE:window.applicationBaseUrl+"api/OptionSettingsService/",API_SESSION_SETTINGS_SERVICE:window.applicationBaseUrl+"api/SessionSettingsService/"},IDs:{SEARCH_TABS:"#search-tabs",DRIVECAD:"#drivecad",DOCUMENTS:"#documents",DOWNLOADS:"#software",PRODUCTDATA:"#productdata",DOCUMENTSPACKAGE:"#documentspackage",UI_TABS_1:"#ui-tabs-1",UI_TABS_2:"#ui-tabs-2",UI_TABS_3:"#ui-tabs-3",UI_TABS_4:"#ui-tabs-4",OVERLAY:"#overlay"},Css:{COMPACT_CONTENT_TOP:"compact-content-top",ACTIVE:"active",ICONS_ARROW_UP_DARKGREY:"icons-accordionarrow-up-darkgrey-reg",ICONS_ARROW_DOWN_DARKGREY:"icons-accordionarrow-down-darkgrey-reg",ICONS_ARROW_UP_LIGHTGREY:"icons-accordionarrow-up-lightgrey-reg",ICONS_ARROW_DOWN_LIGHTGREY:"icons-accordionarrow-down-lightgrey-reg",ACCORDION_CLASSES:"js-accordionprocess ui-accordion accordionprocess",ACCORDION_OPEN:" open",ACCORDION_CLOSED:" closed",ACCORDION_ACTIVE:" active",ACCORDION_INACTIVE:" inactive",ERROR:"error"},General:{MOD_DRIVEGUIDE:".mod-driveguide",SEARCH:"search",SEARCH_HISTORY_:"search_history_",DIV_CONTAINER:"<div><\/div>",CONTENT_TYPE_JSON:"application/json; charset=UTF-8",OBJECT_FUNCTION:"[object Function]",A_ICONS_JUMP_LABEL_RED:"a.icons-jump-label-red-reg",A_POPOVER_TRIGGER:"a.js-popover-trigger",POPOVER_TRIGGER:".js-popover-trigger",DIALOG_CONTENT:".dialog-content",UI_DIALOG:".ui-dialog",MINHEIGHT:"minHeight",WIDTH:"width",BASKET_URL:"/os/c/main.do?country=DE&language=de_DE&addon=BASKET&action=READ_TRANSFER_SERVICE&page=BLANK&g=",ID_DOCUMENT_SETTINGS_CONFIGURATION:"#document-settings-configuration",DOCUMENT_SETTINGS_CONFIGURATION:"document-settings-configuration",ID_DRIVECAD_SETTINGS_CONFIGURATION:"#drivecad-settings-configuration",DRIVECAD_SETTINGS_CONFIGURATION:"drivecad-settings-configuration",ELEMENT_TEMPLATE:"element-template",GROUP_TEMPLATE:"group-template",LOADER:".loader",ADD_TO_CART:".add-to-cart",MASTER_TABLE:"-master-table",DOCUMENTS_SUB:"#documents-sub",OVERLAY:"overlay",DIALOG_RETURN_URL_BASE:"%2Fos%2Fdud%2F%3Ftab%3D",UNDEFINED:"undefined",NO_RESULT_FOR_TYPE:"_NO_RESULT_FOR_TYPE"},TabNames:{DRIVECAD:"drivecad",ID_CAD_DATA:"#drivecad",DOCUMENTS:"documents",ID_DOCUMENTS:"#documents",PRODUCTDATA:"productdata",ID_PRODUCTDATA:"#productdata",DOWNLOADS:"software",ID_DOWNLOADS:"#software",DOCUMENTS_PACKAGE:"documentspackage",ID_DOCUMENTS_PACKAGE:"#documentspackage",DRIVECAD_TAB_LINK:"drivecad-tab-link",DOCUMENTS_TAB_LINK:"documents-tab-link",PRODUCTDATA_TAB_LINK:"productdata-tab-link",SOFTWARE_TAB_LINK:"software-tab-link",FORWARD_DOCUMENT:"forward-document"},FormElements:{SEARCH:"#search-",SEARCH_INPUT:"#search-input-",SEARCH_BUTTON:"#search-button-",RESULT:"#result-",RESULT_SEARCH_INPUT:"#result-search-input-",RESULT_SEARCH_BUTTON:"#search-button-",RESULT_BACKLINK:"#result-backlink-",SEARCH_HISTORY:"#search-history-",SEARCHBOX:"-searchbox",SEARCHFORM:"-searchform",SEARCHRESULT:"-searchresult",SPECIFICATION:"-specification",SALESTRANSACTION:"-salestransaction",SELECTION:"-selection",DOCUMENTS_SUB_NAV_SEARCH:"#nav-search",DOCUMENTS_SUB_NAV_SELECTION:"#nav-selection",SAVE_AS_BUTTON:"-save-as-button",FORWARD_BUTTON:"-forward-button",SHOW_ALL_DOCUMENTS_BUTTON:"-show-all-documents-button",ACTIONBAR:"-actionbar",CONFIGURATION:"-configuration",CREATE_CAD_BUTTON:"#create-cad-model-button",DASH_BUTTON_NEXT:"-button-next",DASH_BUTTON_CANCEL:"-button-cancel",DASH_BUTTON_DOWNLOAD:"-button-download",DASH_BUTTON_SEND_AS_MAIL:"-button-send-as-mail",DASH_BUTTON_SEND:"-button-send",HEADER:"-header",STEP:"-step-",DIALOG:"-dialog",DIALOG_CONTENT:"-dialog-content",TAB_LISTITEM:"-tab-listitem",MAIL_DIALOG_FORM:"#MailDialogForm",BUTTON_SAVE:"#button-save",BUTTON_CANCEL:"#button-cancel",PARTNER_NUMBER_INPUT_DIALOG:"#partner-number-input-dialog",PARTNER_NUMBER_INPUT_FIELD:"#partner-number-input-field",NEXT_BUTTON:"#next-button",BUTTON_CAD_PREVIEW:"-button-cad-preview",PREVIEWIMAGE_CONTAINER:"-PreviewImage-Container",ZIP_DOWNLOAD_DIALOG:"-zip-download-dialog"},Events:{CLICK:"click",TABS_BEFORE_LOADED:"tabsbeforeload",POST:"POST",GET:"GET",LOADED:"loaded",TABS_ACTIVATE:"tabsactivate",ACCORDION_ACTIVATE:"accordionactivate",DIALOG_CLOSE:"dialogclose",DIALOG_BEFORE_CLOSE:"dialogbeforeclose",DESTROY:"destroy",CLOSE:"close"},Options:{VIEW_FRONT:"VIEW_FRONT",VIEW_TOP:"VIEW_TOP",VIEW_LEFT:"VIEW_LEFT",VIEW_RIGHT:"VIEW_RIGHT",VIEW_BOTTOM:"VIEW_BOTTOM",VIEW_BACK:"VIEW_BACK",VIEW_CUBE_VIEW:"VIEW_CUBE_VIEW",RB_VIEW_FRONT:"rbAhead",RB_VIEW_TOP:"rbTop",RB_VIEW_LEFT:"rbLeft",RB_VIEW_RIGHT:"rbRight",RB_VIEW_BOTTOM:"rbBelow",RB_VIEW_BACK:"rbBack",RB_VIEW_CUBE_VIEW:"rbCube",ICON_VIEW_FRONT:"icons-3d-1-front-reg",ICON_VIEW_TOP:"icons-3d-2-top-reg",ICON_VIEW_LEFT:"icons-3d-3-left-reg",ICON_VIEW_RIGHT:"icons-3d-4-right-reg",ICON_VIEW_BOTTOM:"icons-3d-5-bottom-reg",ICON_VIEW_BACK:"icons-3d-6-back-reg",ICON_VIEW_CUBE_VIEW:"icons-3d-7-diagonal-reg",Export3D:{Sat:{KEY:"SAT",SERVICE_KEY:"3D_DATA_EXP_SAT",Versions:{SERVICE_KEY:"3D_DATA_EXP_SAT_D",V15:"1,5",V16:"1,6",V17:"1,7",V20:"2,0",V30:"3,0",V40:"4,0",V50:"5,0",V60:"6,0",V70:"7,0"}},Step:{KEY:"STEP",SERVICE_KEY:"3D_DATA_EXP_STEP",Versions:{SERVICE_KEY:"3D_DATA_EXP_STEP_D",AP203:"AP203",AP214:"AP214"}},Dxf3D:{KEY:"DXF3D",SERVICE_KEY:"3D_DATA_EXP_3D_DXF",Versions:{SERVICE_KEY:"3D_DATA_EXP_3D_DXF_D",AUTOCAD_R12_DXF:"AutoCAD R12 DXF",AUTOCAD_R13_DXF:"AutoCAD R13 DXF",AUTOCAD_R14_DXF:"AutoCAD R14 DXF",AUTOCAD_R2000_DXF:"AutoCAD R2000 DXF",AUTOCAD_R2004_DXF:"AutoCAD R2004 DXF",AUTOCAD_R12_DWG:"AutoCAD R12 DWG",AUTOCAD_R13_DWG:"AutoCAD R13 DWG",AUTOCAD_R14_DWG:"AutoCAD R14 DWG",AUTOCAD_R2000_DWG:"AutoCAD R2000 DWG",AUTOCAD_R2004_DWG:"AutoCAD R2004 DWG"}},Vrml:{KEY:"VRML",SERVICE_KEY:"3D_DATA_EXP_VRML"},Hoops:{KEY:"HOOPS",SERVICE_KEY:"3D_DATA_EXP_HOOPS"},Stl:{KEY:"STL",SERVICE_KEY:"3D_DATA_EXP_3D_STL"},PDF3D:{KEY:"PDF3D",SERVICE_KEY:"3D_DATA_EXP_PDF3D"},OBJ:{KEY:"OBJ",SERVICE_KEY:"3D_DATA_EXP_OBJ"},Iges:{KEY:"IGES",SERVICE_KEY:"3D_DATA_EXP_3D_IGES"},EXPORT_2D:"2D_DATA_EXP"},AssemblyType:{SERVICE_KEY:"COMP_ASSEMBLY",SINGLE_PARTS:"SINGLE_PARTS",MONOLITH:"MONOLITH",KEY_SINGLE_PARTS:"ExportAsParts",KEY_MONOLITH:"ExportAsMonolith"}},SearchTermInputType:{CatalogString:0,SerialNumber:1,SachNummer:2,Vorgangsnummer:3,CdmNumber:4,Transaction:5,AplOut:6,NonAmbiguous:7,SerialNumberUsa:8},SearchResultSatus:{Undefined:-1,Found:0,Error:1,Warning:2,NotFound:3,Maintenance:4,Async:5,CableProduct:6,MappingError:7,Blacklisted:8},ParameterKeys:{M_C_APPL:"M_C_APPL",M_C_NCUST:"M_C_NCUST",M_C_OBJECT:"M_C_OBJECT",M_C_PLANT:"M_C_PLANT",M_C_PROD:"M_C_PROD",M_C_PROJ:"M_C_PROJ",M_C_TECLOC:"M_C_TECLOC",M_O_PROJ:"M_O_PROJ",M_S_PROJN:"M_S_PROJN",ORDER_REF:"ORDER_REF",PO_NUMBER_SOLD:"PO_NUMBER_SOLD"},ProductDataExportFormats:{ALL:"All",CSV:"CSV",EXCEL:"Excel2007",CSV_EXCEL:"CSV_Excel2007",PDF:"PDF"}},History:{initHistoryForViewModel:function(t){t.PerformHistorySearch=function(n,i){i.preventDefault();jQuery(DuD.App.Const.FormElements.SEARCH_INPUT+t.TabName()).focus();t.SearchTerm.SearchText(n);jQuery(DuD.App.Const.FormElements.SEARCH_BUTTON+t.TabName()).click()};t.HistorySearch=function(n,i){i.preventDefault();jQuery(DuD.App.Const.FormElements.SEARCH_INPUT+t.TabName()).focus();t.SearchTerm.SearchText(n)};t.ShowSearchType=function(i){return n.inArray(i,t.Searchtypes)>=0}},initHistoryBeforeBinding:function(t){var i,r;if((!t.UserIsAuthenticated()||t.History().length===0)&&(i=DuD.App.Common.getCookie(DuD.App.Const.General.SEARCH_HISTORY_),i!==null&&i!==undefined)){r="";switch(t.TabName()){case DuD.App.Const.TabNames.DRIVECAD:r=i.drivecad;break;case DuD.App.Const.TabNames.DOCUMENTS:r=i.documents;break;case DuD.App.Const.TabNames.PRODUCTDATA:r=i.productdata;break;case DuD.App.Const.TabNames.DOWNLOADS:r=i.downloads}n.each(r,function(n,i){t.History.push(i.search)})}},manageHistorySearch:function(n){if(!n.IsDialog()){if(DuD.App.History.searchFoundInHistory(n))n.History.remove(n.SearchTextTrimmed()),n.History.unshift(n.SearchTextTrimmed());else{while(n.History().length>=n.HistoryItemQuantity)n.History.pop();n.History.unshift(n.SearchTextTrimmed())}n.UserIsAuthenticated()?DuD.App.History.saveHistoryToDatabase(n):DuD.App.History.saveHistorySearchCookie(n)}},searchFoundInHistory:function(n){return n.History.indexOf(n.SearchTextTrimmed())>=0},saveHistorySearchCookie:function(n){var t=DuD.App.Common.getCookie(DuD.App.Const.General.SEARCH_HISTORY_),i=[];(t===null||t===undefined)&&(t={drivecad:[],documents:[],productdata:[],downloads:[]});ko.utils.arrayForEach(n.History(),function(n){i.push({search:n})});switch(n.TabName()){case DuD.App.Const.TabNames.DRIVECAD:t.drivecad=i;break;case DuD.App.Const.TabNames.DOCUMENTS:t.documents=i;break;case DuD.App.Const.TabNames.PRODUCTDATA:t.productdata=i;break;case DuD.App.Const.TabNames.DOWNLOADS:t.downloads=i}DuD.App.Common.addCookie(DuD.App.Const.General.SEARCH_HISTORY_,t)},saveHistoryToDatabase:function(n){var t=[];ko.utils.arrayForEach(n.History(),function(i){t.push({Search:i,UseCaseId:n.UseCaseId})});Utils.ajax({type:DuD.App.Const.Events.POST,url:DuD.App.Const.Mvc.API_SEARCH_HISTORY_SERVICE_POST,contentType:DuD.App.Const.General.CONTENT_TYPE_JSON,data:JSON.stringify(t),dataType:"json",success:function(){}},!1)}},Common:{supportsWebGl:function(){var i=!0,n,t,r;try{n=jQuery("<canvas />");jQuery("body").append(n);t=n[0];t.addEventListener&&t.addEventListener("webglcontextcreationerror",function(){console.log("webglcontextcreationerror");i=!1},!1);r=DuD.App.Common.create3DContext(t);r||(console.log("No webgl context"),window.WebGLRenderingContext||console.log("No WebGLRenderingContext"),i=!1)}catch(u){console.log(u)}finally{n.remove()}return i},create3DContext:function(n){for(var r=["webgl","experimental-webgl","webkit-3d","moz-webgl"],t=null,i=0;i<r.length;++i){try{t=n.getContext(r[i])}catch(u){}if(t)break}return t},getCleanedSerialNumber:function(n){return n.replace(/[^\d.\-xX]/g,"")},initChooseAnotherPositionLink:function(n,t){var i=jQuery("#"+n+"-ChooseAnotherPosNumber");i.unbind(DuD.App.Const.Events.CLICK);i.on(DuD.App.Const.Events.CLICK,function(i){i.preventDefault();hashTableTransactionPosition.removeItem(t);var r=DuD.App.Common.getSearchButton(DuD.App.Const.FormElements.RESULT_SEARCH_BUTTON+n);r.click()})},setReturnKeyToButtonClick:function(n,t,i){jQuery(n+i).keypress(function(n){n.which===13&&(n.preventDefault(),jQuery(t+i).click())})},addSearchButtonClickEvent:function(n,t){var i=this.getSearchButton(DuD.App.Const.FormElements.SEARCH_BUTTON+n);i.unbind(DuD.App.Const.Events.CLICK);i.on(DuD.App.Const.Events.CLICK,function(n){n.preventDefault();t()})},addResultSearchButtonClickEvent:function(n,t){var i=this.getSearchButton(DuD.App.Const.FormElements.RESULT_SEARCH_BUTTON+n);i.unbind(DuD.App.Const.Events.CLICK);i.on(DuD.App.Const.Events.CLICK,function(n){n.preventDefault();t()})},getSearchButton:function(n){var t=jQuery(n);if(t.length===0||t.length>1)throw new Error("For the buttonId "+n+" no or more then one dom element was found.");return t},getElementIdWithTabName:function(n,t){return"#"+n+t},loadDivContentWithAjax:function(n,t,i){var r=jQuery(t).wrap(DuD.App.Const.General.DIV_CONTAINER).parent();jQuery("#"+n).html(r);i&&typeof i=="function"&&i(r)},getCookie:function(n){var i=t.Get(n);return n!=="search_history_"||!i?JSON.parse(i):i[0]!=="{"?JSON.parse(atob(i)):JSON.parse(i)},addCookie:function(n,i){n==="search_history_"?t.Set(n,btoa(JSON.stringify(i)),365,""):t.Set(n,JSON.stringify(i),365,"")},createGenericViewModel:function(t,i,r){var u=null;return arguments.length===2&&Object.prototype.toString.call(i)===DuD.App.Const.General.OBJECT_FUNCTION?(r=i,u=ko.mapping.fromJSON(t)):u=ko.mapping.fromJSON(t,i),u.ConfigurationContent="",u.SearchTextTrimmed=ko.computed(function(){return n.trim(u.SearchTerm.SearchText())}),u.ShowMaintenanceHint=ko.observable(!1),u.ShowBlacklistedHint=ko.observable(!1),u.ShowCableHint=ko.observable(!1),u.ShowMappingErrorHint=ko.observable(!1),u.CatalogDesignationFromWebApi=ko.observable(""),u.LegendLoginDialogLink=function(){var r=jQuery.getUrlVars(),n=DuD.App.Const.General.DIALOG_RETURN_URL_BASE+u.TabName(),t,i;return n=n+"%26country%3D"+u.UiCountry(),n=n+"%26language%3D"+u.UiLanguageForUrlParameter(),u.SearchTerm.Transactions().length>0?(t=u.SearchTerm.Transactions()[0],n=n+"%26sales_org%3D"+ko.toJS(t.VkOrg),n=n+"%26transaction%3D"+ko.toJS(t.Vbeln),u.CustomerNo()!==null?n=n+"%26customerNo%3D"+u.CustomerNo():jQuery.inArray("customerNo",r)>=0&&(i=jQuery.getUrlVar("customerNo"),n=n+"%26customerNo%3D"+i)):u.SearchTextTrimmed()!==""&&(n=n+"%26search%3D"+u.SearchTextTrimmed()),u.TabName()===DuD.App.Const.TabNames.DOCUMENTS&&(n=n+"%26showDocSearchForm%3D1"),n},u.LegendLoginDialogLinkForDocumentationPackage=function(){var n="%2Fos%2Fdud%2F%3Fdocuments_package%3D1";return n=n+"%26country%3D"+u.UiCountry(),n+"%26language%3D"+u.UiLanguageForUrlParameter()},u.SearchedFor=ko.observable(""),u.ShowProductGroupsSelectionInfo=ko.computed(function(){return u.hasOwnProperty("TabName")&&u.TabName()===DuD.App.Const.TabNames.DOCUMENTS?u.SearchWasExecutedByProductGroup():!1}),u.HasProductGroupSelectionInfo=ko.computed(function(){return u.hasOwnProperty("SelectedProductGroupNames")&&u.SelectedProductGroupNames()!=null?u.SelectedProductGroupNames().length>0:!1}),DuD.App.History.initHistoryForViewModel(u),r&&Object.prototype.toString.call(r)===DuD.App.Const.General.OBJECT_FUNCTION&&r(u),u},setGenericSynchronization:function(n,t){n.SearchTerm.SearchText.syncWith(DuD.App.Const.KO.SEARCH_TERM,!0);n.SearchTerm.InternalSearchText.syncWith(DuD.App.Const.KO.HIDDEN_SEARCH_VALUE,!0);n.SearchTerm.Type.syncWith("searchTermType",!0);n.SearchTerm.Transactions.syncWith(DuD.App.Const.KO.SEARCH_TERM_TRANSACTIONREQUESTS,!0);n.SearchTerm.TransferId.syncWith("transferId",!0);n.IsDialog.syncWith("isDialog",!0);n.HasSearchPerformed.syncWith(DuD.App.Const.KO.SEARCH_PERFORMED,!0);n.Caller&&n.Caller.syncWith("caller",!0);n.SearchStatus.HasDriveCadSearchPerformed.syncWith(DuD.App.Const.KO.SEARCH_STATUS_DRIVECAD,!0);n.SearchStatus.HasDocumentsSearchPerformed.syncWith(DuD.App.Const.KO.SEARCH_STATUS_DOCUMENTS,!0);n.SearchStatus.HasProductdataSearchPerformed.syncWith(DuD.App.Const.KO.SEARCH_STATUS_PRODUCTDATA,!0);n.SearchStatus.HasDownloadsSearchPerformed.syncWith(DuD.App.Const.KO.SEARCH_STATUS_DOWNLOADS,!0);n.IsConfigurationOriginator.syncWith("IsConfigurationOriginator",!0);n.CustomerNo.syncWith("customerNo",!0);n.CustomerNoIsUrlParameter.syncWith("customerNoIsUrlParameter",!0);t&&typeof t=="function"&&t(n)},removeLoader:function(){var n=jQuery(DuD.App.Const.General.LOADER).attr("id");n!==undefined&&Utils.hideLoader(n)},initPopOverClose:function(){var n=jQuery(DuD.App.Const.General.POPOVER_TRIGGER);n.each(function(){jQuery(this).popover(DuD.App.Const.Events.CLOSE)})},addOverlayToResultArea:function(t){var e=this,u=t.replace("#","")+"-"+DuD.App.Const.General.OVERLAY,i=n(t),r=n.extend({width:i.outerWidth(),height:i.outerHeight()},i.position()),f=jQuery("#"+u);f.length===0&&n("<div>",{id:u,css:{position:"absolute",top:r.top,left:r.left,width:r.width,height:r.height,backgroundColor:"#fff",opacity:.5}}).appendTo(i)},addSachNrToShoppingCart:function(n,t){var i,r=!1,f={SachNr:n.SachNr,DocumentName:n.Description,Quantity:1,DocumentType:n.DocumentType,DocumentTypeAsString:n.DocumentTypeAsString,Language:n.LanguageAsString,MimeType:n.MimeType,FileType:n.FileType},u;Utils.ajax({type:DuD.App.Const.Events.POST,async:!1,url:DuD.App.Const.Mvc.API_SHOPPING_CART_TRANSFER_SERVICE,contentType:DuD.App.Const.General.CONTENT_TYPE_JSON,data:JSON.stringify(f),dataType:"json",success:function(n){i=n},complete:function(){r=!0}},!0);r&&(u=DuD.App.Const.General.BASKET_URL.replace("DE",t.UiCountry()).replace("de_DE",t.UiLanguageForUrlParameter()),Utils.ajax({type:DuD.App.Const.Events.GET,async:!1,url:u+i,success:function(){Utils.fire("UpdateCart")}},!0))},setOptionSettingSynchronisation:function(n){n.OptionSettings.LanguageSettings.syncWith("OptionSettings.LanguageSettings",!0);n.OptionSettings.DocumentTypeSettings.syncWith("OptionSettings.DocumentTypeSettings",!0);n.OptionSettings.PdfEncryptedSettings.syncWith("OptionSettings.PdfEncryptedSettings",!0);n.OptionSettings.DriveCadSettings.CadExportView.syncWith("OptionSettings.CadExportView",!0);n.OptionSettings.DriveCadSettings.ComponentAssembly.syncWith("OptionSettings.ComponentAssembly",!0);n.OptionSettings.DriveCadSettings.ThreeDimensionalExportFormat.syncWith("OptionSettings.ThreeDimensionalExportFormat",!0);n.OptionSettings.DriveCadSettings.ThreeDimensionalExportFormatVersion.syncWith("OptionSettings.ThreeDimensionalExportFormatVersion",!0);n.OptionSettings.DriveCadSettings.CadExportSystem.syncWith("OptionSettings.CadExportSystem",!0);n.OptionSettings.DriveCadSettings.TwoDimensionalExportFormat.syncWith("OptionSettings.TwoDimensionalExportFormat",!0);n.OptionSettings.DriveCadSettings.TwoDimensionalView.syncWith("OptionSettings.TwoDimensionalView",!0);n.OptionSettings.ProductDataPreviewSettings.syncWith("OptionSettings.ProductDataPreviewSettings",!0);n.OptionSettings.ProductDataPreviewSettings.syncWith("OptionSettings.ProductDataPreviewSettings",!0);n.OptionSettings.ProductDataReferenceSettings.syncWith("OptionSettings.ProductDataReferenceSettings",!0)},setDefaultOptionSettingSynchronisation:function(n){n.DefaultOptionSettings&&(n.DefaultOptionSettings.LanguageSettings.syncWith("DefaultOptionSettings.LanguageSettings",!0),n.DefaultOptionSettings.DocumentTypeSettings.syncWith("DefaultOptionSettings.DocumentTypeSettings",!0),n.DefaultOptionSettings.PdfEncryptedSettings.syncWith("DefaultOptionSettings.PdfEncryptedSettings",!0),n.DefaultOptionSettings.DriveCadSettings.CadExportView.syncWith("DefaultOptionSettings.CadExportView",!0),n.DefaultOptionSettings.DriveCadSettings.ComponentAssembly.syncWith("DefaultOptionSettings.ComponentAssembly",!0),n.DefaultOptionSettings.DriveCadSettings.ThreeDimensionalExportFormat.syncWith("DefaultOptionSettings.ThreeDimensionalExportFormat",!0),n.DefaultOptionSettings.DriveCadSettings.ThreeDimensionalExportFormatVersion.syncWith("DefaultOptionSettings.ThreeDimensionalExportFormatVersion",!0),n.DefaultOptionSettings.DriveCadSettings.CadExportSystem.syncWith("DefaultOptionSettings.CadExportSystem",!0),n.DefaultOptionSettings.DriveCadSettings.TwoDimensionalExportFormat.syncWith("DefaultOptionSettings.TwoDimensionalExportFormat",!0),n.DefaultOptionSettings.DriveCadSettings.TwoDimensionalView.syncWith("DefaultOptionSettings.TwoDimensionalView",!0),n.DefaultOptionSettings.ProductDataReferenceSettings.syncWith("DefaultOptionSettings.ProductDataReferenceSettings",!0))},isTransactionsSearchResult:function(n){var t=n.SearchTerm.Transactions().length>0,i=t?n.SearchTerm.Transactions()[0].Vbeln===n.SearchTextTrimmed():!1;return t&&i},getValueOrEmpty:function(n,t){var i=ko.utils.arrayFirst(n,function(n){return ko.utils.stringStartsWith(DuD.App.Common.getObservableOrDefault(n.Key),t)});return i!==null?DuD.App.Common.getObservableOrDefault(i.Value):""},getObservableOrDefault:function(n){return ko.isObservable(n)?n():n},resetSelectedTransactionPositionOnLinkBack:function(n){hashTableTransactionPosition.hasItem(n.SearchTextTrimmed())&&(hashTableTransactionPosition.removeItem(n.SearchTextTrimmed()),n.CustomerNo(null))},setCustomerNo:function(n){if(n.CustomerNo(null),hashTableTransactionCustomerNumber.hasItem(n.SearchTextTrimmed())){var t=hashTableTransactionCustomerNumber.getItem(n.SearchTextTrimmed());n.CustomerNo(t)}},initNavClick:function(n,t){n.unbind(DuD.App.Const.Events.CLICK);n.on(DuD.App.Const.Events.CLICK,function(i){i.preventDefault();jQuery("ul.nav-content > li.active").removeClass(DuD.App.Const.Css.ACTIVE);t();n.parent().addClass(DuD.App.Const.Css.ACTIVE)})}},InputParser:{getSerialNumberType:function(n,t,i){var r={};r.searchTerm=jQuery.trim(n.SearchText());Utils.ajax({url:DuD.App.Const.Mvc.API_INPUTPARSER_SERVICE,async:!1,data:r,dataType:"json",success:function(r){n.Type(r.SearchTermInputType);t(r,i)}},!0)},getSearchTermType:function(n,t,i){var f={},r,u;f.searchTerm=jQuery.trim(n.SearchText());r=hashTableSearchTerm.hasItem(n.SearchText());u=r?hashTableSearchTerm.getItem(n.SearchText()):ko.toJS(n.Type);(!r||u!==DuD.App.Const.SearchTermInputType.Transaction)&&(i.TabName===DuD.App.Const.TabNames.DOCUMENTS_PACKAGE||i.ViewModel.IsDialog()||r)&&i.TabName!==DuD.App.Const.TabNames.DOCUMENTS_PACKAGE?t({SearchTermInputType:u},i):Utils.ajax({url:DuD.App.Const.Mvc.API_INPUTPARSER_SERVICE,async:!1,data:f,dataType:"json",success:function(r){n.Type(r.SearchTermInputType);i!==DuD.App.Const.TabNames.DOCUMENTS_PACKAGE&&hashTableSearchTerm.setItem(n.SearchText(),n.Type());r.SearchTermInputType!==DuD.App.Const.SearchTermInputType.Vorgangsnummer&&(hashTableTransactionOldPosition.clear(),hashTableTransactionPosition.clear());t(r,i)}},!0)},getSearchTermTypeForDocuments:function(n,t,i){var u,r,f;i.ViewModel.hasOwnProperty("ProcessNonAmbiguousSearch")&&i.ViewModel.ProcessNonAmbiguousSearch()===!0?t({SearchTermInputType:DuD.App.Const.SearchTermInputType.Vorgangsnummer},i):(u={},u.searchTerm=jQuery.trim(n.SearchText()),r=hashTableSearchTerm.hasItem(n.SearchText()),f=r?hashTableSearchTerm.getItem(n.SearchText()):ko.toJS(n.Type),(!r||f!==DuD.App.Const.SearchTermInputType.Transaction)&&(i.TabName===DuD.App.Const.TabNames.DOCUMENTS_PACKAGE||i.ViewModel.IsDialog()||r)&&i.TabName!==DuD.App.Const.TabNames.DOCUMENTS_PACKAGE?t({SearchTermInputType:f},i):Utils.ajax({url:DuD.App.Const.Mvc.API_INPUTPARSER_SERVICE_FOR_DOCUMENTS,async:!1,data:u,dataType:"json",success:function(r){n.Type(r.SearchTermInputType);i!==DuD.App.Const.TabNames.DOCUMENTS_PACKAGE&&hashTableSearchTerm.setItem(n.SearchText(),n.Type());r.SearchTermInputType!==DuD.App.Const.SearchTermInputType.Vorgangsnummer&&(hashTableTransactionOldPosition.clear(),hashTableTransactionPosition.clear());t(r,i)}},!0))}},Helpers:{getSearchText:function(t,i){if(!t.hasOwnProperty("SearchTerm"))throw new TypeError("The viewModel has no property with the name Searchterm defined.");var r=null;return n.trim(t.SearchTerm.InternalSearchText())!==""?(r=t.SearchTerm.InternalSearchText(),i&&t.SearchTerm.InternalSearchText(null)):r=t.SearchTextTrimmed(),r},capitaliseFirstLetter:function(n){return n.charAt(0).toUpperCase()+n.slice(1)},translateRadioButtonToView:function(n){var t="";switch(n){case DuD.App.Const.Options.RB_VIEW_FRONT:t=DuD.App.Const.Options.VIEW_FRONT;break;case DuD.App.Const.Options.RB_VIEW_TOP:t=DuD.App.Const.Options.VIEW_TOP;break;case DuD.App.Const.Options.RB_VIEW_LEFT:t=DuD.App.Const.Options.VIEW_LEFT;break;case DuD.App.Const.Options.RB_VIEW_RIGHT:t=DuD.App.Const.Options.VIEW_RIGHT;break;case DuD.App.Const.Options.RB_VIEW_BOTTOM:t=DuD.App.Const.Options.VIEW_BOTTOM;break;case DuD.App.Const.Options.RB_VIEW_BACK:t=DuD.App.Const.Options.VIEW_BACK;break;case DuD.App.Const.Options.RB_VIEW_CUBE_VIEW:t=DuD.App.Const.Options.VIEW_CUBE_VIEW}return t},translateViewToRadioButton:function(n){var t="";switch(n){case DuD.App.Const.Options.VIEW_FRONT:t=DuD.App.Const.Options.RB_VIEW_FRONT;break;case DuD.App.Const.Options.VIEW_TOP:t=DuD.App.Const.Options.RB_VIEW_TOP;break;case DuD.App.Const.Options.VIEW_LEFT:t=DuD.App.Const.Options.RB_VIEW_LEFT;break;case DuD.App.Const.Options.VIEW_RIGHT:t=DuD.App.Const.Options.RB_VIEW_RIGHT;break;case DuD.App.Const.Options.VIEW_BOTTOM:t=DuD.App.Const.Options.RB_VIEW_BOTTOM;break;case DuD.App.Const.Options.VIEW_BACK:t=DuD.App.Const.Options.RB_VIEW_BACK;break;case DuD.App.Const.Options.VIEW_CUBE_VIEW:t=DuD.App.Const.Options.RB_VIEW_CUBE_VIEW}return t},translateExportFormatToService:function(n){var t="";switch(n){case DuD.App.Const.Options.Export3D.Sat.KEY:t=DuD.App.Const.Options.Export3D.Sat.SERVICE_KEY;break;case DuD.App.Const.Options.Export3D.Step.KEY:t=DuD.App.Const.Options.Export3D.Step.SERVICE_KEY;break;case DuD.App.Const.Options.Export3D.Dxf3D.KEY:t=DuD.App.Const.Options.Export3D.Dxf3D.SERVICE_KEY;break;case DuD.App.Const.Options.Export3D.Hoops.KEY:t=DuD.App.Const.Options.Export3D.Hoops.SERVICE_KEY;break;case DuD.App.Const.Options.Export3D.Stl.KEY:t=DuD.App.Const.Options.Export3D.Stl.SERVICE_KEY;break;case DuD.App.Const.Options.Export3D.PDF3D.KEY:t=DuD.App.Const.Options.Export3D.PDF3D.SERVICE_KEY;break;case DuD.App.Const.Options.Export3D.OBJ.KEY:t=DuD.App.Const.Options.Export3D.OBJ.SERVICE_KEY;break;case DuD.App.Const.Options.Export3D.Vrml.KEY:t=DuD.App.Const.Options.Export3D.Vrml.SERVICE_KEY;break;case DuD.App.Const.Options.Export3D.Iges.KEY:t=DuD.App.Const.Options.Export3D.Iges.SERVICE_KEY}return t},getIcon:function(n){var t="";switch(n){case DuD.App.Const.Options.RB_VIEW_FRONT:t=DuD.App.Const.Options.ICON_VIEW_FRONT;break;case DuD.App.Const.Options.RB_VIEW_TOP:t=DuD.App.Const.Options.ICON_VIEW_TOP;break;case DuD.App.Const.Options.RB_VIEW_LEFT:t=DuD.App.Const.Options.ICON_VIEW_LEFT;break;case DuD.App.Const.Options.RB_VIEW_RIGHT:t=DuD.App.Const.Options.ICON_VIEW_RIGHT;break;case DuD.App.Const.Options.RB_VIEW_BOTTOM:t=DuD.App.Const.Options.ICON_VIEW_BOTTOM;break;case DuD.App.Const.Options.RB_VIEW_BACK:t=DuD.App.Const.Options.ICON_VIEW_BACK;break;case DuD.App.Const.Options.RB_VIEW_CUBE_VIEW:t=DuD.App.Const.Options.ICON_VIEW_CUBE_VIEW}return t}},DocumentsPackage:{openDialog:function(n){var t;Utils.ajax({type:DuD.App.Const.Events.GET,url:DuD.App.Const.Mvc.DOCUMENTS_PACKAGE_INDEX+"?width=fullsize&"+n,contentType:"html",success:function(n){var i=jQuery(n);t=i},complete:function(){Utils.Dialog.open(t,{close:function(){jQuery(".ui-dialog-content").dialog("close")}});DuD.App.Common.initPopOverClose()}},!0)}},OptionSettings:{initLanguageOptions:function(n){n.LanguageSelected=ko.computed(function(){return n.AdditionalSelectedLanguages().length>0});n.SaveButtonEnabled=ko.computed(function(){return n.LanguageSelected()});n.AllLanguagesChecked=ko.computed({read:function(){var t=ko.utils.arrayFirst(n.Languages,function(t){return n.AdditionalSelectedLanguages.indexOf(t.ShortName)===-1});return t===null},write:function(t){ko.utils.arrayForEach(n.Languages,function(i){var r=n.AdditionalSelectedLanguages.indexOf(i.ShortName);t===!0?r===-1&&n.AdditionalSelectedLanguages.push(i.ShortName):n.AdditionalSelectedLanguages.splice(r,1)})}});var t=jQuery("#stdLanguages");t.unbind(DuD.App.Const.Events.CLICK);t.on(DuD.App.Const.Events.CLICK,function(t){t.preventDefault();ko.utils.arrayForEach(n.DefaultOptionSettings.LanguageSettings(),function(t){n.AdditionalSelectedLanguages.push(t)})})}},Home:{createViewModel:function(n){n.SearchTerm.SearchText.subscribe(function(){n.HasSearchPerformed(!1);n.SearchStatus.HasDocumentsSearchPerformed(!1);n.SearchStatus.HasDriveCadSearchPerformed(!1);n.SearchStatus.HasProductdataSearchPerformed(!1);n.SearchStatus.HasDownloadsSearchPerformed(!1)});n.SelectedLanguages.subscribe(function(){DuD.App.Home.updateSessionSettingsCookie(n)});n.SelectedDocumentTypes.subscribe(function(){DuD.App.Home.updateSessionSettingsCookie(n)});n.PdfEncryption.subscribe(function(){DuD.App.Home.updateSessionSettingsCookie(n)});n.SelectedCADSystemAsString.subscribe(function(){DuD.App.Home.updateSessionSettingsCookie(n)});n.SelectedCADSystemViewAsString.subscribe(function(){DuD.App.Home.updateSessionSettingsCookie(n)});n.SelectedTwoDimensionalExportFormatAsString.subscribe(function(){DuD.App.Home.updateSessionSettingsCookie(n)});n.SelectedTwoDimensionalExportViewsAsStrings.subscribe(function(){DuD.App.Home.updateSessionSettingsCookie(n)});n.SelectedThreeDimensionalExportFormatsAsStrings.subscribe(function(){DuD.App.Home.updateSessionSettingsCookie(n)});n.SelectedThreeDimensionalExportFormatVersionSatAsString.subscribe(function(){DuD.App.Home.updateSessionSettingsCookie(n)});n.SelectedThreeDimensionalExportFormatVersionStepAsString.subscribe(function(){DuD.App.Home.updateSessionSettingsCookie(n)});n.SelectedThreeDimensionalExportFormatVersionDxfAsString.subscribe(function(){DuD.App.Home.updateSessionSettingsCookie(n)});n.SelectedAssemblyType.subscribe(function(){DuD.App.Home.updateSessionSettingsCookie(n)});n.SelectedProductDataDocumentFormats.subscribe(function(){DuD.App.Home.updateSessionSettingsCookie(n)});n.SuppressPrices.subscribe(function(){DuD.App.Home.updateSessionSettingsCookie(n)})},setSynchronisation:function(n){n.ShowMappingErrorHint.syncWith(DuD.App.Const.KO.MAPPING_ERROR,!0);n.SelectedLanguages.syncWith(DuD.App.Const.KO.LANGUAGES,!0);n.SelectedDocumentTypes.syncWith(DuD.App.Const.KO.DOCUMENT_TYPES,!0);n.SelectedProduct.syncWith(DuD.App.Const.KO.PRODUCT,!0);n.SelectedItems.syncWith("SelectedItems",!0);n.SelectedSoftwareCategory.syncWith(DuD.App.Const.KO.SOFTWARE_CATEGORY,!0);n.PdfEncryption.syncWith(DuD.App.Const.KO.PDF_PROTECTION_SETTING,!0);n.SelectedCADSystemAsString.syncWith("SelectedCADSystem",!0);n.SelectedCADSystemViewAsString.syncWith("SelectedCADSystemView",!0);n.SelectedTwoDimensionalExportFormatAsString.syncWith("SelectedTwoDimensionalExportFormat",!0);n.SelectedTwoDimensionalExportViewsAsStrings.syncWith("SelectedTwoDimensionalExportViews",!0);n.SelectedThreeDimensionalExportFormatsAsStrings.syncWith("SelectedThreeDimensionalExportFormats",!0);n.SelectedThreeDimensionalExportFormatVersionSatAsString.syncWith("SelectedThreeDimensionalExportFormatVersionSat",!0);n.SelectedThreeDimensionalExportFormatVersionStepAsString.syncWith("SelectedThreeDimensionalExportFormatVersionStep",!0);n.SelectedThreeDimensionalExportFormatVersionDxfAsString.syncWith("SelectedThreeDimensionalExportFormatVersionDxf",!0);n.SelectedAssemblyType.syncWith("SelectedAssemblyType",!0);n.SelectedProductDataDocumentFormats.syncWith("SelectedProductDataDocumentFormats",!0);n.SuppressPrices.syncWith("SuppressPricesVal",!0);n.ShowPrices.syncWith("ShowPricesVal",!0);DuD.App.Common.setOptionSettingSynchronisation(n);DuD.App.Common.setDefaultOptionSettingSynchronisation(n);n.ProductMetaData.syncWith("productMetaData",!0);n.IsConfigurationOriginator.syncWith("IsConfigurationOriginator",!0)},updateSessionSettingsCookie:function(n){var t={SelectedLanguages:ko.toJS(n.SelectedLanguages()),SelectedDocumentTypes:ko.toJS(n.SelectedDocumentTypes()),PdfEncryption:ko.toJS(n.PdfEncryption()),SelectedCADSystemAsString:ko.toJS(n.SelectedCADSystemAsString()),SelectedCADSystemViewAsString:ko.toJS(n.SelectedCADSystemViewAsString()),SelectedTwoDimensionalExportFormatAsString:ko.toJS(n.SelectedTwoDimensionalExportFormatAsString()),SelectedTwoDimensionalExportViewsAsStrings:ko.toJS(n.SelectedTwoDimensionalExportViewsAsStrings()),SelectedThreeDimensionalExportFormatsAsStrings:ko.toJS(n.SelectedThreeDimensionalExportFormatsAsStrings()),SelectedThreeDimensionalExportFormatVersionSatAsString:ko.toJS(n.SelectedThreeDimensionalExportFormatVersionSatAsString()),SelectedThreeDimensionalExportFormatVersionStepAsString:ko.toJS(n.SelectedThreeDimensionalExportFormatVersionStepAsString()),SelectedThreeDimensionalExportFormatVersionDxfAsString:ko.toJS(n.SelectedThreeDimensionalExportFormatVersionDxfAsString()),SelectedAssemblyType:ko.toJS(n.SelectedAssemblyType()),SelectedProductDataDocumentFormats:ko.toJS(n.SelectedProductDataDocumentFormats()),SuppressPrices:ko.toJS(n.SuppressPrices())};Utils.ajax({async:!0,type:DuD.App.Const.Events.POST,url:DuD.App.Const.Mvc.API_SESSION_SETTINGS_SERVICE,contentType:DuD.App.Const.General.CONTENT_TYPE_JSON,data:JSON.stringify(t),dataType:"json",success:function(){}},!1)},clickButton:function(n){var t=jQuery(DuD.App.Const.FormElements.SEARCH_BUTTON+n);t.length>0&&t.click()},checkForNewTransactionPositionAndSetNewSearch:function(n){var t=n.SearchTextTrimmed(),i;return hashTableTransactionPosition.hasItem(t)&&(i=hashTableTransactionPosition.getItem(t),n.SearchTerm.Transactions()!=null&&n.SearchTerm.Transactions()[0].PosNumber!==i)?(hashTableTransactionPosition.setItem(t,n.SearchTerm.Transactions()[0].PosNumber),!0):!1},initDialogFunctions:function(n){jQuery(DuD.App.Const.General.DIALOG_CONTENT).on(DuD.App.Const.Events.DIALOG_BEFORE_CLOSE,function(){DuD.App.Common.removeLoader()});jQuery(DuD.App.Const.General.DIALOG_CONTENT).on(DuD.App.Const.Events.DIALOG_CLOSE,function(){jQuery(DuD.App.Const.IDs.SEARCH_TABS).tabs(DuD.App.Const.Events.DESTROY)});if(n.IsDialog()&&n.OpenDocumentsPackageDialog()){var t=jQuery(DuD.App.Const.IDs.SEARCH_TABS);t.load(DuD.App.Const.Mvc.DOCUMENTS_PACKAGE_LOADING,null,null)}}}}}}(jQuery),hashTableTransactionCustomerNumber=new HashTable,hashTableTransactionPosition=new HashTable,hashTableTransactionOldPosition=new HashTable,hashTableSearchTerm=new HashTable,tracker=new Tracker,languageSubscription=null