define("viewModels/shopperContext",["knockout","ccDate","ccRestClient","ccConstants","jquery","pubsub","storageApi","navigation"],function(ko,ccDate,ccRestClient,ccConstants,$,pubsub,storageApi,navigation){"use strict";function ShopperContextViewModel(){if(ShopperContextViewModel.singleInstance){throw new Error("Cannot instantiate more than one ShopperContextViewModel, use ShopperContextViewModel.getInstance()")}var self=this;self.defaultPriceListGroup=ko.observable();self.defaultCatalog=ko.observable();self.additionalPriceListGroups=ko.observableArray([]);self.isExternalContext=ko.observable(false);self.dynamicProperties=ko.observableArray([]);self.shopperContext={};self.loadedContext=storageApi.getInstance().getItem(ccConstants.LOCAL_STORAGE_CURRENT_CONTEXT);self.errorMessage=ko.observable();return self}ShopperContextViewModel.prototype.getOrderDynamicPropertiesWithDefaultValues=function(pCallback){var self=this;var url=ccConstants.ENDPOINT_GET_ITEM_TYPE;var input={};input[ccConstants.PARENT]=ccConstants.ENDPOINT_ORDER_TYPE_PARAM;ccRestClient.request(url,input,function(data){self.dynamicProperties.removeAll();var allDynamicProperties=[];allDynamicProperties=data.specifications;if(allDynamicProperties.length>0){for(var i=0;i