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C,aAAeD,OAAOC,cAAgB,GAC7CD,OAAOC,aAAaC,eAAcvH,EAAAA,EAAA,GACPqH,OAAOC,aAAaC,gBAAkB,IACtCA,UCnF3BE,EAAOC,QAAU7H,cCAjB4H,EAAOC,QAAUC","sources":["webpack://Msdyn365.Commerce.Online/./src/modules/moe-addtocollection/moe-addtocollection.tsx?2fde","webpack://Msdyn365.Commerce.Online/./src/utilities/constants.ts?f70a","webpack://Msdyn365.Commerce.Online/./lib/moe-addtocollection/module-registration.js?6b68","webpack://Msdyn365.Commerce.Online/external var \"React\"?0d3b","webpack://Msdyn365.Commerce.Online/external var \"ReactDOM\"?853b"],"sourcesContent":["/*!\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 React from 'react';\r\n\r\nimport { IMoeAddtocollectionData } from './moe-addtocollection.data';\r\nimport { IMoeAddtocollectionProps } from './moe-addtocollection.props.autogenerated';\r\n\r\nexport interface IMoeAddtocollectionViewProps extends IMoeAddtocollectionProps {\r\n telemetry: any;\r\n context: any;\r\n}\r\n\r\n/**\r\n *\r\n * MoeAddtocollection component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass MoeAddtocollection extends React.PureComponent> {\r\n public render(): JSX.Element | null {\r\n const viewProps: IMoeAddtocollectionViewProps = {\r\n ...this.props\r\n };\r\n\r\n return this.props.renderView(viewProps);\r\n }\r\n}\r\n\r\nexport default MoeAddtocollection;\r\n","import { IMoeAddtocollectionResources } from '../modules/moe-addtocollection/moe-addtocollection.props.autogenerated';\r\n\r\n// Language values\r\nexport const ENGLISH_LANG = 'english';\r\nexport const MAORI_LANG = 'maori';\r\nexport const ENGLISH_LANG_CODE = 'en-au';\r\nexport const MAORI_LANG_CODE = 'en-nz';\r\nexport const ENGLISH_OTHER_LANG_CODE = 'en-nz';\r\nexport const CUST_MAORI_LANG_CODE = 'mi-nz';\r\nexport const AXE_MAORI_LANG_CODE = 'mi-nz'; // Language code used for Maori for assistive technologies like screen reader\r\n\r\n// Modules or page values\r\nexport const ERROR_OR_NOTIFICATION = 'ERROR_OR_NOTIFICATION';\r\nexport const HEADER_FOOTER = 'HEADER_FOOTER';\r\nexport const NAVIGATION = 'NAVIGATION';\r\nexport const HOME_PAGE = 'HOME_PAGE';\r\nexport const LANDING_PAGE = 'LANDING_PAGE';\r\nexport const METADATA = 'METADATA';\r\nexport const SOCIAL_SHARE = 'SOCIAL_SHARE';\r\nexport const MY_PROFILE = 'MY_PROFILE';\r\nexport const DOWNLOAD_KETE = 'DOWNLOAD_KETE';\r\nexport const COLLECTIONS = 'COLLECTIONS';\r\nexport const ADD_TO_KETE = 'ADD_TO_KETE';\r\nexport const SEARCH = 'SEARCH';\r\nexport const ACTION_BUTTONS = 'ACTION_BUTTONS';\r\nexport const COLLECTIONS_SITE_LANGUAGE = 'COLLECTIONS_SITE_LANGUAGE';\r\nexport const ADD_TO_KETE_SITE_LANGUAGE = 'ADD_TO_KETE_SITE_LANGUAGE';\r\nexport const DOWNLOAD_KETE_SITE_LANGUAGE = 'DOWNLOAD_KETE_SITE_LANGUAGE';\r\nexport const SEARCH_SITE_LANGUAGE = 'SEARCH_SITE_LANGUAGE';\r\nexport const VIDEO_PLAYER = 'VIDEO_PLAYER';\r\n\r\n// Site Names\r\nexport const OCH = 'och';\r\nexport const TWK = 'twk';\r\nexport const KWR = 'kwr';\r\nexport const KOH = 'koh';\r\nexport const NZC = 'nzc';\r\n\r\n// site toggles\r\nexport const MAORI_TOGGLE_PREFIX = 'mi';\r\nexport const ENGLISH_TOGGLE_PREFIX = '/mi/';\r\n\r\n// Add to collection - resources values\r\nexport const ADD_TO_COLLECTION_RESOURCES: IMoeAddtocollectionResources = {\r\n resourceKey: 'resource value',\r\n flipperNext: 'Next',\r\n flipperPrevious: 'Previous',\r\n unknownError: 'Unexpected error occured. Please try again later.',\r\n unknownErrorInMaori: 'I puta he raru. Me whakamātau anō',\r\n emptyCollection: 'Collection is not available. Please check and try again.',\r\n emptyCollectionInMaori: 'Kāre te kohinga i te wātea. Me taki, ka mahi anō',\r\n emptyCollections: 'no collections are available at this moment',\r\n emptyCollectionsInMaori: 'kāre he kohinga e wātea ana i tēnei wā ',\r\n duplicateName: 'Same collection name already exists. Please try with different name.',\r\n duplicateNameInMaori: 'Kua tau kē tēnei tapanga. Whakamahia he ingoa kē.',\r\n duplicateResource: 'Same resource already exists in the collection.',\r\n duplicateResourceInMaori: 'Kua uru kē tēnā rauemi ki te kohinga',\r\n unAuthenticated: 'User is not authenticated. Please login create collection',\r\n unAuthenticatedInMaori: 'Kāre anō te kaiwhakamahi kia motuhēhēhia. Takiuru mai ki te waihanga kohinga',\r\n noAccountNumber: 'Customer account number missing. Please logout and login again.',\r\n noAccountNumberInMaori: 'Kāre he nama pūkete kiritaki. Me takiputa, ka takiuru mai anō',\r\n networkOffline: 'Internet is offline or it is very slow. Please check your internet connection.',\r\n networkOfflineInMaori: 'Kua weto te ipurangi, he pōturi rānei. Tirohia tō hononga ipurangi.',\r\n exceededCollectionNameLimit: 'Collection name should be less than 25 characters',\r\n exceededCollectionNameLimitInMaori: 'Kia iti iho i te 25 ngā pūāhua o te ingoa o tō kohinga',\r\n noEmptyCollectionSharing: 'Empty collection cannot be shared',\r\n noEmptyCollectionSharingInMaori: 'Kāre e taea te tuari kohinga piako ',\r\n createCOllection: 'Collection has been created successfully.',\r\n createCOllectionInMaori: 'Kua waihangatia he kohinga',\r\n addResource: 'Resource has been added to the collection successfully.',\r\n addResourceInMaori: 'Kua tāpirihia te rauemi ki te kohinga',\r\n updateCollection: 'Collection was updated successfully.',\r\n updateCollectionInMaori: 'Previous',\r\n updateCollectionName: 'Collection name has been updated successfully.',\r\n updateCollectionNameInMaori: 'Kua whakahoutia te ingoa o te kohinga',\r\n deleteCollection: 'Collection was deleted successfully.',\r\n deleteCollectionInMaori: 'Kua mukua te kohinga',\r\n deleteProduct: 'Product was deleted successfully from the collection.',\r\n deleteProductInMaori: 'Kua mukua te hua mai i te kohinga',\r\n notLoggedIn: 'Not logged in yet? Please login to use the collections',\r\n notLoggedInInMaori: 'Kāre anō kia takiuru mai? Me takiuru mai ki te whakamahi i ngā kohinga',\r\n addToCollectionText: 'Add to Collection',\r\n addToCollectionTextInMaori: 'Tāpirihia ki te kohinga',\r\n heyText: 'Hey',\r\n heyTextInMaori: 'Kia ora',\r\n addNewCollection: 'please click on + icon to create new collection',\r\n addNewCollectionInMaori: 'tēnā pāwhiria te atahanga + ki te hanga kohinga hou',\r\n newCollectionText: 'New Collection',\r\n newCollectionTextInMaori: 'He kohinga hou',\r\n createCollectionText: 'Click to create a collection',\r\n createCollectionTextInMaori: 'Pāwhiri ki te waihanga kohinga',\r\n closeText: 'Close',\r\n closeTextInMaori: 'Kati',\r\n selectResourcesHoverText: 'Please select a resource to enable the button',\r\n selectResourcesHoverTextInMaori: 'Tīpakohia koa he rauemi hei whakahohe i te paatene',\r\n createNewCollectionText: 'createNewCollectionText',\r\n createNewCollectionTextInMaori: 'hanga kete hou'\r\n};\r\n\r\n/*\r\n Item: Development environment setup for Language preference\r\n Usage: Can be used to set the language toggle and language preference values while developing and maintaining in future\r\n Caution: Don't change and push this file. Push this file to git only if necessary\r\n Values (DEVELOPMENT_LANGUAGE_TOGGLE, DEVELOPMENT_LANGUAGE_PREFERENCE): should be only 'english' or 'maori'\r\n Values (DEVELOPMENT_SITE_NAME): OCH or TWK or KWR or KOH or NZC\r\n*/\r\nexport const DEVELOPMENT_LANGUAGE_TOGGLE = 'english';\r\nexport const DEVELOPMENT_LANGUAGE_PREFERENCE = 'maori';\r\nexport const DEVELOPMENT_SITE_NAME = NZC;\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 (binding.modules['moe-addtocollection'] = {\n c: () => require('partner/modules/moe-addtocollection/moe-addtocollection.tsx'),\n $type: 'contentModule',\n da: [{name:'product', path:'@msdyn365-commerce-modules/retail-actions/dist/lib/get-selected-variant', runOn: 0}],\n \n iNM: false,\n ns: '__local__',\n n: 'moe-addtocollection',\n p: '__local__',\n \n pdp: '',\n \n \n md: 'src/modules/moe-addtocollection'\n });\n \n\n {\n const sanitizedActionPath = '@msdyn365-commerce-modules/retail-actions/dist/lib/get-selected-variant';\n let dataAction = require('@msdyn365-commerce-modules/retail-actions/dist/lib/get-selected-variant');\n registerSanitizedActionPath(sanitizedActionPath, dataAction);\n }\n \n\n \n window.__bindings__ = window.__bindings__ || {};\n window.__bindings__.modules = {\n ...window.__bindings__.modules || {},\n ...binding.modules\n };\n \n window.__bindings__.dataActions = {\n ...window.__bindings__.dataActions || {},\n ...binding.dataActions\n };\n export const viewDictionary = {};\n viewDictionary['__local__|__local__|modules|moe-addtocollection|moe-addtocollection'] = {\n c: () => require('partner/modules/moe-addtocollection/moe-addtocollection.view.tsx'),\n cn: '__local__-__local__-moe-addtocollection'\n };\nwindow.__bindings__ = window.__bindings__ || {};\nwindow.__bindings__.viewDictionary = {\n ...window.__bindings__.viewDictionary || {},\n ...viewDictionary\n };","module.exports = React;","module.exports = ReactDOM;"],"names":["MoeAddtocollection","React","render","viewProps","_objectSpread","this","props","renderView","ENGLISH_LANG","MAORI_LANG","ENGLISH_LANG_CODE","MAORI_LANG_CODE","ENGLISH_OTHER_LANG_CODE","CUST_MAORI_LANG_CODE","AXE_MAORI_LANG_CODE","ERROR_OR_NOTIFICATION","HEADER_FOOTER","NAVIGATION","HOME_PAGE","LANDING_PAGE","METADATA","SOCIAL_SHARE","MY_PROFILE","DOWNLOAD_KETE","COLLECTIONS","ADD_TO_KETE","SEARCH","ACTION_BUTTONS","COLLECTIONS_SITE_LANGUAGE","ADD_TO_KETE_SITE_LANGUAGE","DOWNLOAD_KETE_SITE_LANGUAGE","SEARCH_SITE_LANGUAGE","VIDEO_PLAYER","OCH","TWK","KWR","KOH","NZC","MAORI_TOGGLE_PREFIX","ENGLISH_TOGGLE_PREFIX","ADD_TO_COLLECTION_RESOURCES","resourceKey","flipperNext","flipperPrevious","unknownError","unknownErrorInMaori","emptyCollection","emptyCollectionInMaori","emptyCollections","emptyCollectionsInMaori","duplicateName","duplicateNameInMaori","duplicateResource","duplicateResourceInMaori","unAuthenticated","unAuthenticatedInMaori","noAccountNumber","noAccountNumberInMaori","networkOffline","networkOfflineInMaori","exceededCollectionNameLimit","exceededCollectionNameLimitInMaori","noEmptyCollectionSharing","noEmptyCollectionSharingInMaori","createCOllection","createCOllectionInMaori","addResource","addResourceInMaori","updateCollection","updateCollectionInMaori","updateCollectionName","updateCollectionNameInMaori","deleteCollection","deleteCollectionInMaori","deleteProduct","deleteProductInMaori","notLoggedIn","notLoggedInInMaori","addToCollectionText","addToCollectionTextInMaori","heyText","heyTextInMaori","addNewCollection","addNewCollectionInMaori","newCollectionText","newCollectionTextInMaori","createCollectionText","createCollectionTextInMaori","closeText","closeTextInMaori","selectResourcesHoverText","selectResourcesHoverTextInMaori","createNewCollectionText","createNewCollectionTextInMaori","DEVELOPMENT_LANGUAGE_TOGGLE","DEVELOPMENT_LANGUAGE_PREFERENCE","DEVELOPMENT_SITE_NAME","binding","modules","dataActions","c","require","$type","da","name","path","runOn","iNM","ns","n","p","pdp","md","registerSanitizedActionPath","sanitizedActionPath","dataAction","default","Error","prototype","RegistrationId","id","window","__bindings__","viewDictionary","cn","module","exports","ReactDOM"],"sourceRoot":""}