{"version":3,"file":"SavedConfigInfo.js","sources":["requirejs/Customization/SavedConfigInfo.js"],"sourcesContent":["define([\"require\", \"exports\", \"custom-imprinting/LocationSummary\", \"UI/Context\"], function (require, exports, LocationSummary_1, Context_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.SavedConfigInfo = void 0;\n class SavedConfigInfo {\n constructor(data) {\n ko.mapping.fromJS(data, {\n CustomImprintings: {\n create: options => {\n if (options.data === null || options.data.Colors === null) {\n return ko.observable(null);\n }\n options.data.Colors = options.data.Colors.map(color => new LocationSummary_1.LocationColorSummaryViewModel(color));\n return ko.observable(new LocationSummary_1.LocationSummaryViewModel(options.data));\n }\n }\n }, this);\n this.Currency = Context_1.default.Currency;\n this.ExactFitSizeTemplate = ko.pureComputed(() => {\n const exactFitLength = this.ExactFitLength();\n const exactFitWidth = this.ExactFitWidth();\n const exactFitDepth = this.ExactFitDepth();\n if (exactFitLength || exactFitWidth || exactFitDepth) {\n return `