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gC,UAAU,iEACXN,EAAO,KAAG1B,EAAAA,cAAAA,OAAAA,KAAOe,EAAQ8B,MAAMnB,UAEpC,KACJC,SAAU3B,EAAAA,cAAAA,KAAAA,KAAK2B,GACfC,eAAgB5B,EAAAA,cAAAA,OAAAA,KAAO4B,GACvBkB,YAAa,CAAEd,UAAW,mCAE9B,OAAO1B,KAAKJ,MAAM6C,WAAWV,IAMrC,+EC1FA,QAAgBnC,IACZ,MAAM,YAAE6B,EAAW,QAAEvB,EAAO,QAAEkB,EAAO,SAAEC,EAAQ,eAAEC,EAAc,mBAAEc,GAAuBxC,EACxF,OACIF,EAAAA,cAACgD,EAAAA,OAAM,iBAAKjB,GACHvB,EACDR,EAAAA,cAAAA,MAAAA,CAAKgC,UAAU,2CACVN,EACAC,EACAC,GAERc,ymBCnBb,MAAMO,EAAU,CAAEC,QAAS,GAAIC,YAAa,IAEvCF,EAAQC,QAAQ,uCAAyC,CACtDE,EAAG,IAAMC,EAAQ,MACjBC,MAAO,gBACPC,GAAI,GAEJC,KAAK,EACLC,GAAI,YACJC,EAAG,sCACHC,EAAG,YAEHC,IAAK,GAGLC,GAAI,mDAKRC,OAAOC,aAAeD,OAAOC,cAAgB,GAC7CD,OAAOC,aAAab,QAAO,OACpBY,OAAOC,aAAab,SAAW,IAC/BD,EAAQC,SAGXY,OAAOC,aAAaZ,YAAW,OAC5BW,OAAOC,aAAaZ,aAAe,IACnCF,EAAQE,aAEY,MAAMa,EAAiB,GAC9BA,EAAe,uGAAyG,CAChIZ,EAAG,IAAMC,EAAQ,MACjBY,GAAI,2DAEpBH,OAAOC,aAAeD,OAAOC,cAAgB,GAC7CD,OAAOC,aAAaC,eAAc,OACPF,OAAOC,aAAaC,gBAAkB,IACtCA,UCtC3BE,EAAOC,QAAUnE,cCAjBkE,EAAOC,QAAUC","sources":["webpack://msdyn365.commerce.online/./src/modules/guest-checkout-on-account-thank-you/guest-checkout-on-account-thank-you.tsx?1c95","webpack://msdyn365.commerce.online/./src/modules/guest-checkout-on-account-thank-you/guest-checkout-on-account-thank-you.view.tsx?5d22","webpack://msdyn365.commerce.online/./lib/guest-checkout-on-account-thank-you/module-registration.js?8e9b","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\nimport classname from 'classnames';\r\nimport * as Msdyn365 from '@msdyn365-commerce/core';\r\nimport {\r\n Button,\r\n IModuleProps,\r\n INodeProps,\r\n ITelemetryContent,\r\n TelemetryConstant,\r\n getTelemetryObject,\r\n getPayloadObject,\r\n getTelemetryAttributes\r\n} from '@msdyn365-commerce-modules/utilities';\r\n\r\nimport { IGuestCheckoutOnAccountThankYouData } from './guest-checkout-on-account-thank-you.data';\r\nimport { IGuestCheckoutOnAccountThankYouProps } from './guest-checkout-on-account-thank-you.props.autogenerated';\r\n\r\nexport interface IGuestCheckoutOnAccountThankYouViewProps\r\n extends IGuestCheckoutOnAccountThankYouProps {\r\n moduleProps: IModuleProps;\r\n heading: React.ReactNode;\r\n orderId: React.ReactNode;\r\n thankYou: React.ReactNode;\r\n successMessage: React.ReactNode;\r\n backToShoppingLink?: React.ReactNode;\r\n footerProps?: INodeProps;\r\n}\r\n\r\n/**\r\n *\r\n * GuestCheckoutOnAccountThankYou component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass GuestCheckoutOnAccountThankYou extends React.PureComponent<\r\n IGuestCheckoutOnAccountThankYouProps\r\n> {\r\n private readonly telemetryContent?: ITelemetryContent;\r\n private readonly backToShoppingAttributes?: Msdyn365.IDictionary;\r\n\r\n constructor(props: IGuestCheckoutOnAccountThankYouProps) {\r\n super(props);\r\n this.telemetryContent = getTelemetryObject(\r\n this.props.context.request.telemetryPageName!,\r\n this.props.friendlyName,\r\n this.props.telemetry\r\n );\r\n const payLoad = getPayloadObject('click', this.telemetryContent, TelemetryConstant.BackToShopping);\r\n this.backToShoppingAttributes = getTelemetryAttributes(this.telemetryContent, payLoad);\r\n }\r\n public render(): JSX.Element | null {\r\n const {\r\n config: { heading, orderId, thankYou, successMessage },\r\n resources: { backToShopping },\r\n context: { request }\r\n } = this.props;\r\n\r\n const moduleProps = { moduleProps: this.props, className: classname('ms-order-confirmation', this.props.config.className) };\r\n const backToShoppingUrl = Msdyn365.getUrlSync('home', this.props.context.actionContext) || '';\r\n const viewProps: IGuestCheckoutOnAccountThankYouViewProps = {\r\n ...this.props,\r\n moduleProps,\r\n heading: heading && heading.text && (\r\n \r\n ),\r\n backToShoppingLink: backToShoppingUrl && (\r\n \r\n {backToShopping}\r\n \r\n ),\r\n orderId: request.query?.orderId ? (\r\n \r\n {orderId}: {request.query.orderId}\r\n \r\n ) : null,\r\n thankYou:

{thankYou}

,\r\n successMessage: {successMessage},\r\n footerProps: { className: 'ms-order-confirmation__footer' }\r\n };\r\n return this.props.renderView(viewProps) as React.ReactElement;\r\n }\r\n public handleOrderConfirmationHeadingChange = (event: Msdyn365.ContentEditableEvent) =>\r\n (this.props.config.heading!.text = event.target.value);\r\n}\r\n\r\nexport default GuestCheckoutOnAccountThankYou;\r\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 React from 'react';\r\nimport { Module } from '@msdyn365-commerce-modules/utilities';\r\nimport { IGuestCheckoutOnAccountThankYouViewProps } from './guest-checkout-on-account-thank-you';\r\n\r\nexport default (props: IGuestCheckoutOnAccountThankYouViewProps) => {\r\n const { moduleProps, heading, orderId, thankYou, successMessage, backToShoppingLink } = props;\r\n return (\r\n \r\n {heading}\r\n
\r\n {orderId}\r\n {thankYou}\r\n {successMessage}\r\n
\r\n {backToShoppingLink}\r\n
\r\n );\r\n};\r\n","const binding = { modules: {}, dataActions: {} };\n\n (binding.modules['guest-checkout-on-account-thank-you'] = {\n c: () => require('partner/modules/guest-checkout-on-account-thank-you/guest-checkout-on-account-thank-you.tsx'),\n $type: 'contentModule',\n da: [],\n \n iNM: false,\n ns: '__local__',\n n: 'guest-checkout-on-account-thank-you',\n p: '__local__',\n \n pdp: '',\n \n \n md: 'src/modules/guest-checkout-on-account-thank-you'\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|guest-checkout-on-account-thank-you|guest-checkout-on-account-thank-you'] = {\n c: () => require('partner/modules/guest-checkout-on-account-thank-you/guest-checkout-on-account-thank-you.view.tsx'),\n cn: '__local__-__local__-guest-checkout-on-account-thank-you'\n };\nwindow.__bindings__ = window.__bindings__ || {};\nwindow.__bindings__.viewDictionary = {\n ...window.__bindings__.viewDictionary || {},\n ...viewDictionary\n };","module.exports = React;","module.exports = ReactDOM;"],"names":["GuestCheckoutOnAccountThankYou","React","constructor","props","super","handleOrderConfirmationHeadingChange","event","this","config","heading","text","target","value","telemetryContent","getTelemetryObject","context","request","telemetryPageName","friendlyName","telemetry","payLoad","getPayloadObject","TelemetryConstant","BackToShopping","backToShoppingAttributes","getTelemetryAttributes","render","orderId","thankYou","successMessage","resources","backToShopping","moduleProps","className","classname","backToShoppingUrl","Msdyn365","actionContext","viewProps","tag","editProps","onEdit","requestContext","backToShoppingLink","Button","href","query","footerProps","renderView","Module","binding","modules","dataActions","c","require","$type","da","iNM","ns","n","p","pdp","md","window","__bindings__","viewDictionary","cn","module","exports","ReactDOM"],"sourceRoot":""}