{"version":3,"sources":["webpack:///external \"React\"?c481","webpack:///external \"ReactDOM\"?4b2d","webpack:///./src/modules/build-your-bundle/actions/DataServiceEntities.g.ts?a516","webpack:///./src/modules/build-your-bundle/actions/DataActionExtension.g.ts?65bc","webpack:///./src/modules/build-your-bundle/actions/get-configurator-details.action.ts?0cbe","webpack:///./lib/__local__/module-registration.js?8a42","webpack:///./src/actions/get-configurator-details.action.ts?f5e7"],"names":["module","exports","React","ReactDOM","BYOBModelExtensionClass","constructor","odataObject","this","Options","Order","Title","Description","HideWhen","Name","ImageName","Price","parseFloat","Inactive","Product","parseInt","LineDescription","SizeName","SizePrice","SizeImageName","Variant","Container","EntityId","ExtensionProperties","undefined","i","length","className","substr","lastIndexOf","concat","EntityClasses","StartDate","EndDate","ItemOrder","SizeInactive","createGetAllEntitiesInput","queryResultSettings","entityId","key","DataServiceQuery","DataServiceEntities","byobControllerQuery","resultSettings","createDataServiceRequestForOperation","bypassCache","returnEntity","createObservableDataAction","action","retailAction","input","context","Paging","Top","binding","modules","dataActions","registerActionId","actionPath","default","prototype","id","Object","keys","forEach","exportName","Action","require","window","__bindings__","packageDataActions","GetConfiguratorDetailsInput","getCacheKey","getCacheObjectType","dataCacheType","Msdyn365","async","ctx","flowers","name","sizes","price","treats","sleeves","addons","args"],"mappings":";wHAAAA,EAAOC,QAAUC,O,mBCAjBF,EAAOC,QAAUE,U,uGCoCX,MAAOC,EAsEXC,YAAYC,GAuDV,GAtDAA,EAAcA,GAAe,GAE7BC,KAAKC,QAAUF,EAAYE,QAG3BD,KAAKE,MAAQH,EAAYG,MAGzBF,KAAKG,MAAQJ,EAAYI,MAGzBH,KAAKI,YAAcL,EAAYK,YAG/BJ,KAAKK,SAAWN,EAAYM,SAG5BL,KAAKM,KAAOP,EAAYO,KAGxBN,KAAKO,UAAYR,EAAYQ,UAG7BP,KAAKQ,MAAST,EAAYS,MAASC,WAAWV,EAAYS,OAAS,EAGnER,KAAKU,SAAWX,EAAYW,SAG5BV,KAAKW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4B,eAAsB1B,EAAoC2B,GAMtD,MAAO,CACHC,QAAS,CACL,CACIC,KAAM,4BACNC,MAAO,CACH,CAAED,KAAM,UAAWE,MAAO,OAC1B,CAAEF,KAAM,SAAUE,MAAO,SAGjC,CACIF,KAAM,+BACNC,MAAO,CACH,CAAED,KAAM,UAAWE,MAAO,OAC1B,CAAEF,KAAM,SAAUE,MAAO,SAGjC,CACIF,KAAM,8BACNC,MAAO,CACH,CAAED,KAAM,UAAWE,MAAO,OAC1B,CAAEF,KAAM,SAAUE,MAAO,UAIrCC,OAAQ,CACJ,CAAEH,KAAM,0CAA2CE,MAAO,OAC1D,CAAEF,KAAM,qCAAsCE,MAAO,OACrD,CAAEF,KAAM,6CAA8CE,MAAO,OAC7D,CAAEF,KAAM,qBAAsBE,MAAO,OACrC,CAAEF,KAAM,0CAA2CE,MAAO,OAC1D,CAAEF,KAAM,2CAA4CE,MAAO,QAE/DE,QAAS,CACL,CAAEJ,KAAM,yBAA0BE,MAAO,IACzC,CAAEF,KAAM,qBAAsBE,MAAO,IACrC,CAAEF,KAAM,0BAA2BE,MAAO,IAC1C,CAAEF,KAAM,2BAA4BE,MAAO,IAC3C,CAAEF,KAAM,sBAAuBE,MAAO,KAE1CG,OAAQ,CACJ,CAAEL,KAAM,2BAA4BE,MAAO,OAC3C,CAAEF,KAAM,wBAAyBE,MAAO,UAQhDpB,GAAI,yBACJX,MA/DiBmC,GACV,IAAId,M","file":"static/js/18.3a01e0f3891412a18696.chunk.js","sourcesContent":["module.exports = React;","module.exports = ReactDOM;","\r\n// tslint:disable\r\nimport * as EntityClasses from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\nimport * as Entities from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\r\n\r\n/**\r\n* BYOBModel entity interface.\r\n*/\r\nexport interface IBYOBModel {\r\n Options?: string;\r\n Order?: number;\r\n Title?: string;\r\n Description?: string;\r\n HideWhen?: string;\r\n Name?: string;\r\n ImageName?: string;\r\n Price: number;\r\n Inactive: number;\r\n Product?: number;\r\n LineDescription?: string;\r\n SizeName?: string;\r\n SizePrice?: number;\r\n SizeImageName?: string;\r\n Variant?: string;\r\n Container?: string;\r\n EntityId: number;\r\n ExtensionProperties?: Entities.CommerceProperty[];\r\n StartDate?: string;\r\n EndDate?: string;\r\n ItemOrder?: number;\r\n SizeInactive?: number;\r\n}\r\n\r\n/**\r\n * BYOBModel entity class.\r\n */\r\nexport class BYOBModelExtensionClass implements IBYOBModel {\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Options: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Order: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Title: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Description: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public HideWhen: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Name: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ImageName: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Price: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Inactive: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Product: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public LineDescription: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public SizeName: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public SizePrice: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public SizeImageName: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Variant: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Container: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public EntityId: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ExtensionProperties: Entities.CommerceProperty[];\r\n\r\n public StartDate: string;\r\n\r\n public EndDate: string;\r\n\r\n public ItemOrder: number;\r\n\r\n public SizeInactive: number;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Options = odataObject.Options;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Order = odataObject.Order;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Title = odataObject.Title;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Description = odataObject.Description;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.HideWhen = odataObject.HideWhen;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Name = odataObject.Name;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ImageName = odataObject.ImageName;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Price = (odataObject.Price) ? parseFloat(odataObject.Price) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Inactive = odataObject.Inactive;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Product = (odataObject.Product) ? parseInt(odataObject.Product, 10) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.LineDescription = odataObject.LineDescription;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.SizeName = odataObject.SizeName;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.SizePrice = (odataObject.SizePrice) ? parseFloat(odataObject.SizePrice) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.SizeImageName = odataObject.SizeImageName;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Variant = odataObject.Variant;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Container = odataObject.Container;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.EntityId = (odataObject.EntityId) ? parseInt(odataObject.EntityId, 10) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties = undefined;\r\n if (odataObject.ExtensionProperties) {\r\n this.ExtensionProperties = [];\r\n for (var i = 0; i < odataObject.ExtensionProperties.length; i++) {\r\n if (odataObject.ExtensionProperties[i]) {\r\n if (odataObject.ExtensionProperties[i]['@odata.type']) {\r\n var className: string = odataObject.ExtensionProperties[i]['@odata.type'];\r\n className = className.substr(className.lastIndexOf('.') + 1).concat(\"Class\");\r\n if (EntityClasses[className]) {\r\n this.ExtensionProperties[i] = new EntityClasses[className](odataObject.ExtensionProperties[i])\r\n }\r\n } else {\r\n this.ExtensionProperties[i] = new EntityClasses.CommercePropertyClass(odataObject.ExtensionProperties[i]);\r\n }\r\n\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties[i] = undefined;\r\n }\r\n }\r\n }\r\n\r\n this.StartDate = odataObject.StartDate;\r\n\r\n this.EndDate = odataObject.EndDate;\r\n\r\n this.ItemOrder = odataObject.ItemOrder;\r\n\r\n this.SizeInactive = odataObject.SizeInactive;\r\n\r\n }\r\n}\r\n","\r\n /*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n * THIS FILE IS AN AUTOGENERATED TYPESCRIPT PROXY EXTENSION.\r\n * TO USE THIS FILE, IT MUST BE ADDED TO A D365COMMERCE APPLICATION\r\n */\r\n // tslint:disable\r\n import { AsyncResult, callActionOrExecute, DataServiceQuery, IContext, IDataServiceRequest, IQueryResultSettings } from '@msdyn365-commerce/retail-proxy';\r\n // @ts-ignore\r\n import * as EntityClasses from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\n import * as DataServiceEntities from './DataServiceEntities.g';\r\n\r\n \r\n \r\n // @ts-ignore\r\n function byobControllerQuery(entityId?: number): DataServiceQuery {\r\n const key = (entityId) ? { EntityId: entityId } :null;\r\n return new DataServiceQuery(\"ByobController\", \"BYOBModel\", DataServiceEntities.BYOBModelExtensionClass, key);\r\n }\r\n\r\n \r\n export function createGetAllEntitiesInput(queryResultSettings: IQueryResultSettings): IDataServiceRequest {\r\n const query = byobControllerQuery().resultSettings(queryResultSettings);\r\n return query.createDataServiceRequestForOperation('GetAllEntities', false, DataServiceEntities.BYOBModelExtensionClass, 'true', {bypassCache: 'none', returnEntity: 'DataServiceEntities.IBYOBModel'}, { });\r\n }\r\n\r\n \r\n export function getAllEntitiesAsync(context: IContext): AsyncResult {\r\n const request = createGetAllEntitiesInput(\r\n context.queryResultSettings || {Paging:{Top:50}}, );\r\n return callActionOrExecute(request, context.callerContext);\r\n }\r\n ","import { createObservableDataAction, IAction, ICreateActionContext } from '@msdyn365-commerce/core';\r\nimport { retailAction } from '@msdyn365-commerce/retail-proxy';\r\nimport { createGetAllEntitiesInput } from './DataActionExtension.g';\r\nimport { IBYOBModel } from './DataServiceEntities.g';\r\n/**\r\n * Get Warranty Info Data Action\r\n */\r\nexport default createObservableDataAction({\r\n action: >retailAction,\r\n input: (context: ICreateActionContext) => {\r\n return createGetAllEntitiesInput({Paging:{Top:50}});\r\n }\r\n});","const binding = { modules: {}, dataActions: {} };\n\n const registerActionId = (actionPath) => {\n if (binding.dataActions[actionPath] &&\n binding.dataActions[actionPath].default &&\n binding.dataActions[actionPath].default.prototype &&\n binding.dataActions[actionPath].default.prototype.id) {\n binding.dataActions[binding.dataActions[actionPath].default.prototype.id] = binding.dataActions[actionPath];\n } else {\n Object.keys(binding.dataActions[actionPath] || {}).forEach(exportName => {\n if (binding.dataActions[actionPath][exportName] &&\n binding.dataActions[actionPath][exportName].prototype &&\n binding.dataActions[actionPath][exportName].prototype.Action) {\n binding.dataActions[binding.dataActions[actionPath][exportName].prototype.id] = binding.dataActions[actionPath][exportName];\n }\n })\n }\n };\n\n const registerSanitizedActionPath = (sanitizedActionPath, dataAction) => {\n if (process.env.NODE_ENV === 'development') {\n if (!dataAction.default) {\n throw new Error('Data action path does not have a default export');\n }\n if (!(dataAction.default.prototype.id && binding.dataActions[dataAction.default.prototype.id]) || !binding.dataActions[sanitizedActionPath]) {\n binding.dataActions[sanitizedActionPath] = dataAction;\n }\n } else {\n binding.dataActions[sanitizedActionPath] = dataAction;\n if (!binding.dataActions[sanitizedActionPath].default) {\n throw new Error('Data action path ' + sanitizedActionPath + ' does not have a default export');\n }\n binding.dataActions[sanitizedActionPath].default.prototype.RegistrationId = sanitizedActionPath;\n if (binding.dataActions[sanitizedActionPath].default.prototype.id) {\n binding.dataActions[binding.dataActions[sanitizedActionPath].default.prototype.id] = sanitizedActionPath;\n }\n }\n };\n \n\n { \n const actionPath = 'actions/get-configurator-details.action';\n binding.dataActions[actionPath] = require('partner/actions/get-configurator-details.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'modules/build-your-bundle/actions/get-configurator-details.action';\n binding.dataActions[actionPath] = require('partner/modules/build-your-bundle/actions/get-configurator-details.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'modules/ff-shipping-address/actions/get-current-time.action';\n binding.dataActions[actionPath] = require('partner/modules/ff-shipping-address/actions/get-current-time.action');\n registerActionId(actionPath);\n }\n\n \n window.__bindings__ = window.__bindings__ || {};\n window.__bindings__.modules = {\n ...window.__bindings__.modules || {},\n ...binding.modules\n };\n \n window.__bindings__.packageDataActions = {};\n window.__bindings__.packageDataActions['__local__'] = {\n ...binding.dataActions\n };","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\nimport * as Msdyn365 from '@msdyn365-commerce/core';\r\n\r\nexport interface Properties {\r\n name: string;\r\n price: number;\r\n}\r\n\r\nexport interface SizeProperties {\r\n name: string;\r\n sizes: Properties[];\r\n}\r\n\r\n/**\r\n * GetConfiguratorDetails Input Action\r\n */\r\nexport class GetConfiguratorDetailsInput implements Msdyn365.IActionInput {\r\n // TODO: Construct the input needed to run the action\r\n\r\n constructor() {}\r\n\r\n // TODO: Determine if the results of this get action should cache the results and if so provide\r\n // a cache object type and an appropriate cache key\r\n public getCacheKey = () => `CONFIGURATOR`;\r\n public getCacheObjectType = () => 'CONFIGURATOR';\r\n public dataCacheType = (): Msdyn365.CacheType => 'application';\r\n}\r\n\r\n// TODO: Create a data model here or import one to capture the response of the action\r\nexport interface IGetConfiguratorDetailsData {\r\n sleeves: Properties[];\r\n flowers: SizeProperties[];\r\n addons: Properties[];\r\n treats: Properties[];\r\n}\r\n\r\n/**\r\n * TODO: Use this function to create the input required to make the action call\r\n */\r\nconst createInput = (args: Msdyn365.ICreateActionContext): Msdyn365.IActionInput => {\r\n return new GetConfiguratorDetailsInput();\r\n};\r\n\r\n/**\r\n * TODO: Use this function to call your action and process the results as needed\r\n */\r\nasync function action(input: GetConfiguratorDetailsInput, ctx: Msdyn365.IActionContext): Promise {\r\n // const apiSettings = Msdyn365.msdyn365Commerce.apiSettings;\r\n\r\n // TODO: Uncomment the below line to get the value from a service\r\n //const response = await Msdyn365.sendRequest('/get/example/id/1', 'get');\r\n\r\n return {\r\n flowers: [\r\n {\r\n name: 'FruitFlower® of the Month',\r\n sizes: [\r\n { name: 'Classic', price: 49.99 },\r\n { name: 'Deluxe', price: 79.99 }\r\n ]\r\n },\r\n {\r\n name: 'Natural FruitFlower® Bouquet',\r\n sizes: [\r\n { name: 'Classic', price: 49.99 },\r\n { name: 'Deluxe', price: 79.99 }\r\n ]\r\n },\r\n {\r\n name: 'Rose & Alstroemeria Bouquet',\r\n sizes: [\r\n { name: 'Classic', price: 49.99 },\r\n { name: 'Deluxe', price: 79.99 }\r\n ]\r\n }\r\n ],\r\n treats: [\r\n { name: 'Blue Chocolate-Covered Strawberries Box', price: 59.99 },\r\n { name: 'Chocolate-Covered Berries Gift Box', price: 59.99 },\r\n { name: 'Classic Chocolate-Covered Strawberries Box', price: 54.99 },\r\n { name: 'Happy Birthday Box', price: 64.99 },\r\n { name: 'Pink Chocolate-Covered Strawberries Box', price: 59.99 },\r\n { name: 'Ultimate Chocolate-Dipped Fruit Gift Box', price: 44.99 }\r\n ],\r\n sleeves: [\r\n { name: 'All The Love Box Cover', price: 10.0 },\r\n { name: 'Congrats Box Cover', price: 10.0 },\r\n { name: 'Get Well Soon Box Cover', price: 10.0 },\r\n { name: 'Happy Birthday Box Cover', price: 10.0 },\r\n { name: 'Thank You Box Cover', price: 10.0 }\r\n ],\r\n addons: [\r\n { name: 'FruitFlowers® Plush Bear', price: 16.99 },\r\n { name: 'Godiva® Chocolate Box', price: 32.99 }\r\n ]\r\n };\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >action,\r\n // TODO: Give your data action a unique id\r\n id: 'GetConfiguratorDetails',\r\n input: createInput\r\n // TODO: Uncomment the below line if this is a meant to be a batched data action\r\n // isBatched: true\r\n});\r\n"],"sourceRoot":""}