{"code":"import * as tslib_1 from \"tslib\";\r\nimport { Price } from \"./money\";\r\nvar INITIAL_PROFILE_CONFIG = {\r\n    id: \"\",\r\n    name: \"\",\r\n    img: \"http://www.placehold.it/300x300\",\r\n    pricing: []\r\n};\r\nvar Product = /** @class */ (function () {\r\n    function Product(config) {\r\n        if (config === void 0) { config = INITIAL_PROFILE_CONFIG; }\r\n        this.price = new Price();\r\n        config = tslib_1.__assign({}, INITIAL_PROFILE_CONFIG, config);\r\n        this.id = config.id;\r\n        this.name = config.name;\r\n        this.img = config.img;\r\n        (_a = this.price).update.apply(_a, config.pricing);\r\n        var _a;\r\n    }\r\n    return Product;\r\n}());\r\nexport { Product };\r\n//# sourceMappingURL=products.js.map","map":{"version":3,"file":"products.js","sourceRoot":"/Users/austinlaverty/Projects/personal/web/libraries/V0ID/src/core/src/","sources":["classes/products.ts"],"names":[],"mappings":";AACA,OAAO,EAGN,KAAK,EACL,MAAM,SAAS,CAAC;AASjB,IAAM,sBAAsB,GAAkB;IAC7C,EAAE,EAAE,EAAE;IACN,IAAI,EAAE,EAAE;IACR,GAAG,EAAE,iCAAiC;IACtC,OAAO,EAAE,EAAE;CACX,CAAA;AAED;IAOC,iBACC,MAA8C;QAA9C,uBAAA,EAAA,+BAA8C;QAHxC,UAAK,GAAU,IAAI,KAAK,EAAE,CAAC;QAKjC,MAAM,wBAAQ,sBAAsB,EAAK,MAAM,CAAE,CAAC;QAElD,IAAI,CAAC,EAAE,GAAG,MAAM,CAAC,EAAE,CAAC;QACpB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACxB,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC;QAEtB,CAAA,KAAA,IAAI,CAAC,KAAK,CAAA,CAAC,MAAM,WAAI,MAAM,CAAC,OAAO,EAAE;;IACtC,CAAC;IACF,cAAC;AAAD,CAAC,AAlBD,IAkBC"},"dts":{"name":"/Users/austinlaverty/Projects/personal/web/libraries/V0ID/src/core/classes/products.d.ts","text":"import { ID } from \"@void-zero/types\";\r\nimport { Cost, Price } from \"./money\";\r\nexport interface ProductConfig {\r\n    id: ID;\r\n    name?: string;\r\n    img?: string;\r\n    pricing: Cost[];\r\n}\r\nexport declare class Product {\r\n    id: ID;\r\n    name: string;\r\n    img: string;\r\n    price: Price;\r\n    constructor(config?: ProductConfig);\r\n}\r\n"}}
