{"version":3,"file":"static/js/application.async.landing~22ee73b1.b2dd056d.chunk.js","mappings":"odASMA,EAASC,IAAAA,qBAEf,SAASC,IACP,MAAO,CACLC,UAAW,CACTC,MAAO,QACP,oBAAqB,CACnBC,MAAO,UACPC,WAAY,EACZC,SAAU,KAIlB,CAEA,SAASC,EAAmBC,GAC1B,IACEC,EACED,EADFC,QAASC,EACPF,EADOE,KAAMC,EACbH,EADaG,KAAMC,EACnBJ,EADmBI,oBAQvB,OACEC,EAAAA,EAAAA,KAAA,OAAKC,UAAS,wBAAAC,OAA0BN,EAAQP,WAAYc,UAC1DC,EAAAA,EAAAA,MAACC,EAAAA,gBAAe,CACdC,gBAAiB,CACfpB,OAAAA,EACAW,KAAAA,EACAU,WAXR,SAAkBC,GAChBb,EAAMY,WAAWC,EAAOC,SACxBd,EAAMe,aAAaF,EAAOG,KAAKC,KACjC,EASQD,KAAM,CAAEC,KAAMd,IACdK,SAAA,EAEFH,EAAAA,EAAAA,KAACa,EAAAA,MAAK,CAACC,GAAG,uBAAsBX,SAC5BN,EAAKkB,UAAUC,WAEnBhB,EAAAA,EAAAA,KAACiB,EAAAA,MAAK,CACJX,gBAAiB,CACfY,MAAO,OACPC,gBAAiBpB,GAEnBqB,YAAavB,EAAKkB,UAAUC,sCAC5B,kBAAgB,6BAK1B,CAWAtB,EAAmB2B,aAAe,CAChCtB,qBAAqB,GAGvB,IAAMuB,EAAUC,IAAAA,QACdC,EAAAA,kBACA,SAAAC,GAAI,OAAIC,EAAAA,EAAAA,mBAAkBD,EAAMrC,EAAU,GAF5BmC,CAGd7B,GCpEMiC,EAAyEC,EAAAA,GAAAA,kCAAtCC,EAAsCD,EAAAA,GAAAA,kCAEjF,SAASE,EAAgBC,GACvB,OAAIR,IAAAA,QAAUQ,GACLf,wDAGFA,EACT,CAeA,SAASgB,EAAiCrC,GACxC,IACEC,EACED,EADFC,QAASqC,EACPtC,EADOsC,aAAcF,EACrBpC,EADqBoC,cAAehC,EACpCJ,EADoCI,oB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QADP,SAAkBC,GAAS,IAAoCC,EAAhCC,EAAW,GAAqCC,EAAmBH,GAAU,CAAC,EAA82F,OAA12F,SAAUI,EAAQd,EAAe3kC,EAAMijC,GAAWsC,EAAWA,EAAW,0FAAiIL,EAAIW,OAAO,OAASP,EAAatlC,EAAKkB,UAAU,qCAAuC,GAAKokC,GAAxOC,iPAAykBL,EAAIY,KAAK,OAAQL,EAAOxC,IAAW,GAAM,GAAMiC,EAAIY,KAAK,QAASnB,GAAe,GAAM,GAAS,iCAAqDO,EAAIW,OAAO,OAASP,EAAa,KAAO,GAAKA,GAAe,2CAAwFJ,EAAIW,OAAO,OAASP,EAAatlC,EAAKkB,UAAU,+BAAiC,GAAKokC,GAAe,qKAAkQJ,EAAIW,OAAO,OAASP,EAAatlC,EAAKkB,UAAU,uCAAyC,GAAKokC,GAAe,iNAA2VJ,EAAIW,OAAO,OAASP,EAAatlC,EAAKkB,UAAU,qCAAuC,GAAKokC,GAAe,iPAA2XJ,EAAIW,OAAO,OAASP,EAAatlC,EAAKkB,UAAU,sCAAsC6kC,QAAQ,MAAOpB,EAAc,MAAQ,GAAKW,GAAe,iCAA6G,EAAEU,KAAKjrB,KAAK,WAAYyqB,EAAgBA,EAAgBC,OAAuB,qBAATA,OAAqBA,YAAOp2B,EAAU,kBAAmBm2B,EAAgBA,EAAgBb,cAAqC,qBAAhBA,cAA4BA,mBAAct1B,EAAU,SAAUm2B,EAAgBA,EAAgBxlC,KAAmB,qBAAPA,KAAmBA,UAAKqP,EAAU,aAAcm2B,EAAgBA,EAAgBvC,SAA2B,qBAAXA,SAAuBA,cAAS5zB,GAAoBk2B,CAAS,C","sources":["../../../../autobidding/packages/portfolio-bid-strategy-creation-panel/src/portfolio-name-input.js","../../../../autobidding/packages/portfolio-bid-strategy-creation-panel/src/portfolio-type-dropdown.js","../../../../autobidding/packages/portfolio-bid-strategy-creation-panel/src/portfolio-campaign-type-dropdown.js","../../../../autobidding/packages/portfolio-bid-strategy-creation-panel/src/portfolio-campaign-selector.js","../../../../autobidding/packages/portfolio-bid-strategy-creation-panel/src/portfolio-additional-settings.js","../../../../autobidding/packages/portfolio-bid-strategy-creation-panel/src/additional-settings-helper.js","../../../../autobidding/packages/portfolio-bid-strategy-creation-panel/src/portfolio-panel-display-mode.js","../../../../autobidding/packages/portfolio-bid-strategy-creation-panel/src/index.js","../../../../autobidding/packages/portfolio-bid-strategy-creation-dialog/src/index.js","../../../../autobidding/packages/portfolio-bid-strategy-selector/src/index.js","../../../../autobidding/packages/portfolio-bid-strategy-selector/src/styles.js","../../../../autobidding/packages/portfolio-bid-strategy-selector/src/portfolio-selector-shell.js","../../../../autobidding/packages/portfolio-bid-strategy-selector/src/portfolio-selector-view.js","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/i18n-map/aggregated-rows.js","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/i18n-map/bid-strategy-type.js","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/i18n-map/bid-strategy-status.js","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/i18n-map/budget-type.js","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/i18n-map/column-chooser.js","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/i18n-map/column-title-pop.js","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/i18n-map/entity-selector.js","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/i18n-map/error-map.js","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/i18n-map/inline-download.js","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/i18n-map/inline-edit.js","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/i18n-map/performance-metrics.js","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/i18n-map/performance-metrics-pop.js","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/i18n-map/phone-performance-metrics.js","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/i18n-map/phone-performance-metrics-pop.js","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/i18n-map/portfolio-campaign-type.js","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/i18n-map/portfolio-schema.js","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/i18n-map/segment.js","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/helpers/build-merged-i18n.js","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/helpers/localize-api-error.js","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/helpers/pairs-to-map.js","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/components/error.js","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/components/ui-blocker.js","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/inline-edit-view/target-cpa-inline-edit-view.js","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/inline-edit-view/target-impression-share-inline-edit-view.js","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/inline-edit-view/target-roas-inline-editor-view.js","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/inline-edit-view/manual-cpi-inline-edit-view.js","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/inline-edit-view/manual-cpc-inline-edit-view.js","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/inline-edit-view/manualCpcInlineEditor.pug","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/inline-edit-view/manualCpiInlineEditor.pug","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/inline-edit-view/targetCpaInlineEditor.pug","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/inline-edit-view/targetImpressionShareInlineEditor.pug","../../../../autobidding/packages/portfolio-bid-strategy-shared/src/inline-edit-view/targetRoasInlineEditor.pug"],"sourcesContent":["import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport _ from 'underscore';\r\nimport { withI18nConsumer } from '@bingads-webui-react/i18n-context';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport odataSchemas from '@bingads-webui-campaign/campaign-ui-schemas';\r\nimport { Label } from '@bingads-webui-react/primitive';\r\nimport { ValidationGroup, Input } from '@bingads-webui-react/primitive-validation';\r\n\r\nconst schema = odataSchemas.PortfolioBidStrategy;\r\n\r\nfunction getStyles() {\r\n return {\r\n nameInput: {\r\n width: '320px',\r\n '& div[role=alert]': {\r\n color: '#a4262c',\r\n paddingTop: 5,\r\n fontSize: 12, // If not set, the default font size is 14px\r\n },\r\n },\r\n };\r\n}\r\n\r\nfunction PortfolioNameInput(props) {\r\n const {\r\n classes, i18n, name, showValidationError,\r\n } = props;\r\n\r\n function onChange(result) {\r\n props.onValidate(result.isValid);\r\n props.onChangeName(result.data.Name);\r\n }\r\n\r\n return (\r\n
\r\n \r\n \r\n \r\n \r\n
\r\n );\r\n}\r\n\r\nPortfolioNameInput.propTypes = {\r\n i18n: PropTypes.shape({}).isRequired,\r\n classes: PropTypes.shape({}).isRequired,\r\n name: PropTypes.string.isRequired,\r\n onChangeName: PropTypes.func.isRequired,\r\n onValidate: PropTypes.func.isRequired,\r\n showValidationError: PropTypes.bool,\r\n};\r\n\r\nPortfolioNameInput.defaultProps = {\r\n showValidationError: false,\r\n};\r\n\r\nconst Wrapped = _.compose(\r\n withI18nConsumer,\r\n Comp => withDefaultStyles(Comp, getStyles)\r\n)(PortfolioNameInput);\r\n\r\nexport { Wrapped as PortfolioNameInput };\r\n","import React, { useContext } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport _ from 'underscore';\r\nimport { Dropdown } from '@bingads-webui-react/fabric-control';\r\nimport { I18nContext } from '@bingads-webui-react/i18n-context';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { i18nMap } from '@bingads-webui-campaign-react/portfolio-bid-strategy-shared';\r\n\r\nconst { supportedBidStrategyTypeWithPilot, portfolioBidStrategyTypeWithPilot } = i18nMap;\r\n\r\nfunction getErrorMessage(portfolioType) {\r\n if (_.isEmpty(portfolioType)) {\r\n return _TL_(\"You haven't selected any portfolio bid strategy type.\");\r\n }\r\n\r\n return _TL_('');\r\n}\r\n\r\nexport function validator(portfolioType) {\r\n return _.isEmpty(getErrorMessage(portfolioType));\r\n}\r\n\r\nfunction getStyles() {\r\n return {\r\n portfolioBidStrategyTypeDropdown: {\r\n width: '320px',\r\n marginBottom: '16px',\r\n },\r\n };\r\n}\r\n\r\nfunction PortfolioBidStrategyTypeDropdown(props) {\r\n const {\r\n classes, campaignType, portfolioType, showValidationError, permissions,\r\n } = props;\r\n const i18n = useContext(I18nContext);\r\n\r\n const bidStrategyType = portfolioBidStrategyTypeWithPilot(permissions);\r\n const supportedBidStrategyType = supportedBidStrategyTypeWithPilot(permissions);\r\n\r\n const options = _.map(bidStrategyType, (text, key) => ({\r\n key,\r\n text: i18n.getString(text),\r\n title: i18n.getString(text),\r\n disabled: (campaignType in supportedBidStrategyType) && !supportedBidStrategyType[campaignType][key],\r\n }));\r\n const errorMessage = showValidationError ? i18n.getString(getErrorMessage(portfolioType)) : '';\r\n\r\n function onChange(event, item) {\r\n props.onSelectPortfolioType(item.key);\r\n }\r\n\r\n return (\r\n
\r\n \r\n
\r\n );\r\n}\r\n\r\nPortfolioBidStrategyTypeDropdown.propTypes = {\r\n classes: PropTypes.shape({}).isRequired,\r\n portfolioType: PropTypes.string,\r\n campaignType: PropTypes.string.isRequired,\r\n onSelectPortfolioType: PropTypes.func.isRequired,\r\n showValidationError: PropTypes.bool,\r\n permissions: PropTypes.shape({}),\r\n};\r\n\r\nPortfolioBidStrategyTypeDropdown.defaultProps = {\r\n portfolioType: '',\r\n showValidationError: false,\r\n permissions: {},\r\n};\r\n\r\nconst Wrapped = withDefaultStyles(PortfolioBidStrategyTypeDropdown, getStyles);\r\nexport { Wrapped as PortfolioTypeDropdown };\r\n","import React, { useContext } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport _ from 'underscore';\r\nimport { Dropdown, Stack, Label } from '@bingads-webui-react/fabric-control';\r\nimport { I18nContext } from '@bingads-webui-react/i18n-context';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { i18nMap } from '@bingads-webui-campaign-react/portfolio-bid-strategy-shared';\r\nimport { HelpIcon } from '@bingads-webui-campaign-react/help';\r\n\r\nconst { supportedBidStrategyTypeWithPilot, portfolioCampaignType } = i18nMap;\r\n\r\nfunction getErrorMessage(campaignType) {\r\n if (_.isEmpty(campaignType)) {\r\n return _TL_(\"You haven't selected any campaign type.\");\r\n }\r\n\r\n return _TL_('');\r\n}\r\n\r\nexport function validator(campaignType) {\r\n return _.isEmpty(getErrorMessage(campaignType));\r\n}\r\n\r\nfunction getStyles() {\r\n return {\r\n campaignTypeDropdown: {\r\n width: '320px',\r\n marginTop: '16px',\r\n },\r\n };\r\n}\r\n\r\nfunction onRenderLabel({ label }) {\r\n return (\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nonRenderLabel.propTypes = {\r\n label: PropTypes.string.isRequired,\r\n};\r\n\r\nfunction PortfolioCampaignTypeDropdown(props) {\r\n const {\r\n classes, campaignType, portfolioType, showValidationError, readonly, permissions,\r\n } = props;\r\n const i18n = useContext(I18nContext);\r\n const supportedBidStrategyType = supportedBidStrategyTypeWithPilot(permissions);\r\n\r\n const options = _.map(portfolioCampaignType, (text, key) => ({\r\n key,\r\n text: i18n.getString(text),\r\n title: i18n.getString(text),\r\n disabled: (portfolioType in supportedBidStrategyType[key]) && !supportedBidStrategyType[key][portfolioType],\r\n }));\r\n const errorMessage = showValidationError ? i18n.getString(getErrorMessage(campaignType)) : '';\r\n\r\n function onChange(event, item) {\r\n props.onSelectCampaignType(item.key);\r\n }\r\n\r\n return (\r\n
\r\n \r\n
\r\n );\r\n}\r\n\r\nPortfolioCampaignTypeDropdown.propTypes = {\r\n classes: PropTypes.shape({}).isRequired,\r\n campaignType: PropTypes.string,\r\n portfolioType: PropTypes.string.isRequired,\r\n onSelectCampaignType: PropTypes.func.isRequired,\r\n showValidationError: PropTypes.bool,\r\n readonly: PropTypes.bool,\r\n permissions: PropTypes.shape({}),\r\n};\r\n\r\nPortfolioCampaignTypeDropdown.defaultProps = {\r\n campaignType: '',\r\n showValidationError: false,\r\n readonly: false,\r\n permissions: {},\r\n};\r\n\r\nconst Wrapped = withDefaultStyles(PortfolioCampaignTypeDropdown, getStyles);\r\nexport { Wrapped as PortfolioCampaignTypeDropdown };\r\n","/* eslint-disable jsx-a11y/label-has-for */\r\nimport React, { useState, useRef } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport _ from 'underscore';\r\nimport { edmCampaign } from '@bingads-webui/edm-campaign';\r\nimport { withLegacyDeps } from '@bingads-webui-campaign-react/legacy-deps-context';\r\nimport { withI18nConsumer } from '@bingads-webui-react/i18n-context';\r\nimport { CampaignSelector } from '@bingads-webui-campaign-react/campaign-selector';\r\nimport { i18nMap, Error } from '@bingads-webui-campaign-react/portfolio-bid-strategy-shared';\r\nimport { campaignMultiSelectorWithoutDropdownStyle } from '@bingads-webui-campaign-react/common-styles';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { Dialog, DialogType, DialogFooter, PrimaryButton, DefaultButton } from '@bingads-webui-react/fabric-control';\r\n// import { notificationApi } from '@bingads-webui-react/notification-center';\r\n\r\nconst { portfolioCampaignTypeToODataFilter, individualBidStrategyType, budgetType } = i18nMap;\r\n\r\nconst PAGE_SIZE = 20;\r\n\r\nfunction getStyles(dummy, { palette = {} }) {\r\n const textOverflowStyle = {\r\n textOverflow: 'ellipsis',\r\n overflow: 'hidden',\r\n whiteSpace: 'nowrap',\r\n };\r\n\r\n return {\r\n campaignSelector: {\r\n ...campaignMultiSelectorWithoutDropdownStyle({ palette }),\r\n '& .ba-campaign-selector .multi-selector-content > .ba-entity-selector': {\r\n minWidth: 600,\r\n },\r\n marginTop: 16,\r\n position: 'relative',\r\n },\r\n rowItem: {\r\n display: 'flex',\r\n alignItems: 'center',\r\n padding: 8,\r\n maxWidth: 'unset !important',\r\n },\r\n campaignNameColumn: {\r\n width: 300,\r\n marginRight: 10,\r\n ...textOverflowStyle,\r\n },\r\n bidStrategyColumn: {\r\n width: 180,\r\n marginRight: 10,\r\n ...textOverflowStyle,\r\n },\r\n budgetColumn: {\r\n width: 100,\r\n marginRight: 25, // Avoid overlap with the + icon\r\n ...textOverflowStyle,\r\n },\r\n budgetNameCell: {\r\n ...textOverflowStyle,\r\n },\r\n arrowIcon: {\r\n marginLeft: '0 !important',\r\n marginRight: '0 !important',\r\n },\r\n selectionCount: {\r\n position: 'absolute',\r\n top: 36,\r\n left: 9,\r\n background: '#fff',\r\n pointerEvents: 'none',\r\n },\r\n };\r\n}\r\n\r\nfunction getErrorMessage(/* selectedCampaigns */) {\r\n // We allow creating an empty portfolio without any campaigns\r\n // if (_.isEmpty(selectedCampaigns)) {\r\n // return _TL_(\"You haven't selected any campaigns.\");\r\n // }\r\n\r\n return _TL_('');\r\n}\r\n\r\nexport function validator(selectedCampaigns) {\r\n return _.isEmpty(getErrorMessage(selectedCampaigns));\r\n}\r\n\r\nfunction renderHeaderFactory({ classes, i18n, isSelected }) {\r\n return function renderHeader(itemCount) {\r\n return (\r\n
\r\n
\r\n \r\n {`${i18n.getString(isSelected ? _TL_('Selected campaigns:') : _TL_('Campaigns:'))} ${itemCount}`}\r\n \r\n
\r\n
\r\n \r\n {i18n.getString(_TL_('Bid strategy'))}\r\n \r\n
\r\n
\r\n \r\n {i18n.getString(_TL_('Budget'))}\r\n \r\n
\r\n
\r\n );\r\n };\r\n}\r\n\r\nfunction renderItemFactory({ classes, i18n, isSelected }) {\r\n return function renderItem(item, index, forwardedRef) {\r\n const { isAddedToResultList } = item;\r\n const rowItemClass = isAddedToResultList ? 'added-to-result-list' : '';\r\n const addIconClass = isAddedToResultList ? 'disabled' : 'enabled';\r\n\r\n return (\r\n
\r\n
\r\n {item.name}\r\n
\r\n
\r\n {individualBidStrategyType[item.BiddingScheme.Type] ?\r\n i18n.getString(individualBidStrategyType[item.BiddingScheme.Type]) :\r\n item.BiddingScheme.Type\r\n }\r\n
\r\n
\r\n
\r\n {item.Budget.Name}\r\n
\r\n
\r\n {i18n.formatDecimalToFixed(item.Budget.Amount)}\r\n /\r\n {budgetType[item.Budget.Type] ?\r\n i18n.getString(budgetType[item.Budget.Type]) :\r\n item.Budget.Type\r\n }\r\n
\r\n
\r\n {isSelected ?\r\n :\r\n \r\n }\r\n
\r\n );\r\n };\r\n}\r\n\r\n\r\nfunction PortfolioCampaignSelector(props) {\r\n const {\r\n classes, i18n,\r\n legacyDeps: { jsdata },\r\n campaignType,\r\n selectedCampaigns,\r\n showValidationError,\r\n permissions,\r\n scope,\r\n } = props;\r\n\r\n const {\r\n dynamic = {},\r\n } = permissions;\r\n const {\r\n CrossAccountPortfolio,\r\n } = dynamic;\r\n\r\n const [showSharedBudgetAlert, setSharedBudgetAlert] = useState(false);\r\n\r\n const selectorRef = useRef(null);\r\n\r\n const errorMessage = showValidationError ? i18n.getString(getErrorMessage(selectedCampaigns)) : '';\r\n\r\n function fetchCampaigns({\r\n pageNumber,\r\n pageSize,\r\n query,\r\n }) {\r\n const odataParams = {\r\n select: ['Id', 'Name', 'BiddingScheme'],\r\n limit: pageSize,\r\n offset: pageNumber * pageSize,\r\n where: {\r\n ...portfolioCampaignTypeToODataFilter[campaignType],\r\n },\r\n };\r\n\r\n if (query) {\r\n odataParams.where = {\r\n $and: [\r\n odataParams.where,\r\n {\r\n Name: { $contains: query },\r\n },\r\n ],\r\n };\r\n }\r\n\r\n return jsdata.Campaign.findAll(odataParams)\r\n .then((cmps) => {\r\n const { totalCount } = cmps;\r\n const items = _.map(cmps, cmp => ({\r\n Id: cmp.Id,\r\n name: cmp.Name,\r\n BiddingScheme: cmp.BiddingScheme,\r\n Budget: cmp.Budget,\r\n }));\r\n\r\n return {\r\n items,\r\n totalCount,\r\n };\r\n })\r\n .catch(() =>\r\n // notificationApi.showWarning(localizeApiError(error, i18n));\r\n\r\n ({\r\n items: [],\r\n totalCount: 0,\r\n }));\r\n }\r\n\r\n function fetchAccounts({\r\n pageNumber,\r\n pageSize,\r\n query,\r\n }) {\r\n const odataParams = {\r\n query: {\r\n $select: 'Id',\r\n $top: pageSize,\r\n $skip: pageNumber * pageSize,\r\n },\r\n };\r\n\r\n if (query) {\r\n odataParams.where = { Name: { $contains: query } };\r\n }\r\n\r\n return jsdata.Account.findAll(odataParams, {\r\n entitySet: edmCampaign.Customers.$withKey(scope.values.cid).Accounts,\r\n })\r\n .then(accounts => ({\r\n items: _.map(accounts, account => ({\r\n Id: account.Id,\r\n Name: account.Name,\r\n Number: account.AccountNumber,\r\n })),\r\n totalCount: accounts.totalCount,\r\n }))\r\n .catch(() =>\r\n ({\r\n items: [],\r\n totalCount: 0,\r\n }));\r\n }\r\n\r\n function saveSelection(items) {\r\n props.onSelectCampaigns(items);\r\n }\r\n\r\n function onSelectDone(items) {\r\n const hasSharedBudget = _.any(items, ({ Budget }) => Budget.Id > 0);\r\n\r\n if (hasSharedBudget) {\r\n setSharedBudgetAlert(true);\r\n selectorRef.current.setState({ isToggled: true });\r\n }\r\n\r\n saveSelection(items);\r\n }\r\n\r\n function onSelectCancel() {\r\n // Nothing to do\r\n }\r\n\r\n function onDismissDialog() {\r\n setSharedBudgetAlert(false);\r\n selectorRef.current.setState({ isToggled: true });\r\n }\r\n\r\n function onConfirmDialog() {\r\n setSharedBudgetAlert(false);\r\n selectorRef.current.setState({ isToggled: false });\r\n }\r\n\r\n return (\r\n
\r\n \r\n \r\n {\r\n selectedCampaigns.length > 0 &&\r\n
\r\n {i18n.getString(_TL_('{{count}} campaign(s) selected'), { count: selectedCampaigns.length })}\r\n
\r\n }\r\n \r\n
\r\n );\r\n}\r\n\r\n\r\nPortfolioCampaignSelector.propTypes = {\r\n classes: PropTypes.shape({}).isRequired,\r\n i18n: PropTypes.shape({}).isRequired,\r\n legacyDeps: PropTypes.shape({}).isRequired,\r\n campaignType: PropTypes.string.isRequired,\r\n selectedCampaigns: PropTypes.arrayOf(PropTypes.object).isRequired,\r\n onSelectCampaigns: PropTypes.func.isRequired,\r\n showValidationError: PropTypes.bool,\r\n};\r\n\r\nPortfolioCampaignSelector.defaultProps = {\r\n showValidationError: PropTypes.false,\r\n};\r\n\r\nconst Wrapped = _.compose(\r\n React.memo,\r\n withLegacyDeps,\r\n withI18nConsumer,\r\n Comp => withDefaultStyles(Comp, getStyles)\r\n)(PortfolioCampaignSelector);\r\n\r\nexport { Wrapped as PortfolioCampaignSelector };\r\n","import React, { useEffect } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport _ from 'underscore';\r\nimport { BackboneInstanceWrapper } from '@bingads-webui-react/backbone-instance-wrapper';\r\nimport { withLegacyDeps } from '@bingads-webui-campaign-react/legacy-deps-context';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { i18nMap } from '@bingads-webui-campaign-react/portfolio-bid-strategy-shared';\r\n\r\nconst { portfolioCampaignTypeDefaultValue, portfolioCampaignTypeToUIValue } = i18nMap;\r\n\r\nfunction getStyles() {\r\n return {\r\n additionalSettings: {\r\n marginTop: 16,\r\n '& .bid-strategy-details-container': {\r\n '& > .control-label': {\r\n float: 'none',\r\n padding: 0,\r\n width: '100%',\r\n '& > span': {\r\n display: 'flex', // align help icon with text\r\n },\r\n },\r\n '& > .col-sm-6': {\r\n float: 'none',\r\n padding: 0,\r\n width: '100%',\r\n '#setTargetRoasBidError': {\r\n maxWidth: 600,\r\n },\r\n '& .builkEdit-bid.custom-param__key-field, & .target-impression-share-percent-field': {\r\n display: 'inline-block',\r\n width: 85,\r\n marginLeft: 5,\r\n marginRight: 5,\r\n },\r\n '& .max-cpc-container': {\r\n '& > label': {\r\n display: 'inline-block',\r\n verticalAlign: '-2px', // align help icon with text\r\n },\r\n '& .max-cpc-input-row': {\r\n marginLeft: 0,\r\n marginRight: 0,\r\n '& > .col-sm-3.input-group': {\r\n width: 125,\r\n },\r\n },\r\n },\r\n },\r\n },\r\n '& div[role=alert]': {\r\n color: '#a4262c',\r\n paddingTop: 5,\r\n fontSize: 12, // If not set, the default font size is 14px\r\n },\r\n },\r\n };\r\n}\r\n\r\nfunction PortfolioAdditionalSettings(props) {\r\n const {\r\n classes,\r\n legacyDeps: { BiddingStrategyView },\r\n portfolioType,\r\n campaignType,\r\n additionalSettings: {\r\n maxCpc,\r\n targetCpa,\r\n targetRoas,\r\n targetAdPosition,\r\n targetImpressionShare,\r\n },\r\n biddingStrategyView,\r\n injectBiddingStrategyView,\r\n } = props;\r\n\r\n const translatedCampaignType = portfolioCampaignTypeToUIValue[campaignType];\r\n\r\n useEffect(() => {\r\n const view = new BiddingStrategyView({\r\n isPortfolio: true,\r\n biddingStrategyType: portfolioType,\r\n campaignType: translatedCampaignType,\r\n maxCpc,\r\n targetCpa,\r\n targetRoas,\r\n targetAdPosition,\r\n targetImpressionShare,\r\n });\r\n view.render();\r\n injectBiddingStrategyView(view);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [campaignType]);\r\n\r\n return (\r\n
\r\n { biddingStrategyView &&\r\n }\r\n
\r\n );\r\n}\r\n\r\nPortfolioAdditionalSettings.propTypes = {\r\n classes: PropTypes.shape({}).isRequired,\r\n legacyDeps: PropTypes.shape({}).isRequired,\r\n portfolioType: PropTypes.string.isRequired,\r\n campaignType: PropTypes.string,\r\n additionalSettings: PropTypes.shape({}),\r\n biddingStrategyView: PropTypes.shape({}),\r\n injectBiddingStrategyView: PropTypes.func.isRequired,\r\n};\r\n\r\nPortfolioAdditionalSettings.defaultProps = {\r\n campaignType: portfolioCampaignTypeDefaultValue,\r\n additionalSettings: {},\r\n biddingStrategyView: undefined,\r\n};\r\n\r\nconst Wrapped = _.compose(\r\n React.memo,\r\n Comp => withDefaultStyles(Comp, getStyles),\r\n withLegacyDeps\r\n)(PortfolioAdditionalSettings);\r\n\r\nexport { Wrapped as PortfolioAdditionalSettings };\r\n","import _ from 'underscore';\r\n\r\nconst keyMapping = {\r\n MaxCpc: 'maxCpc',\r\n TargetAdPosition: 'targetAdPosition',\r\n TargetCpa: 'targetCpa',\r\n TargetImpressionShare: 'targetImpressionShare',\r\n TargetRoas: 'targetRoas',\r\n};\r\n\r\nconst valueMapping = {\r\n MaxCpc: apiValue => _.result(apiValue, 'Amount'),\r\n TargetAdPosition: _.identity,\r\n TargetCpa: _.identity,\r\n TargetImpressionShare: _.identity,\r\n TargetRoas: _.identity,\r\n};\r\n\r\nconst allowList = _.keys(keyMapping);\r\n\r\nexport function additionalSettingsToUI(apiObject) {\r\n const result = _.chain(apiObject)\r\n .pick(...allowList)\r\n .pairs()\r\n .map(([key, value]) => {\r\n const newKey = keyMapping[key];\r\n const newValue = valueMapping[key](value);\r\n return [newKey, newValue];\r\n })\r\n .object()\r\n .value();\r\n\r\n return result;\r\n}\r\n","import _ from 'underscore';\r\n\r\nconst PanelComponentArray = ['Header', 'PortfolioTypeDropdown', 'PortfolioNameInput', 'CampaignTypeDropdown', 'CampaignSelector'];\r\n\r\nconst PanelComponent = _.object(PanelComponentArray, PanelComponentArray);\r\n\r\nconst DisplayModeArray = ['CreationPanel', 'UpdatePanel', 'CreationDialog', 'BulkEdit'];\r\n\r\nconst DisplayMode = _.object(DisplayModeArray, DisplayModeArray);\r\n\r\nconst DisplayModeToComponentsMapping = {\r\n [DisplayMode.CreationPanel]: [\r\n PanelComponent.Header,\r\n PanelComponent.PortfolioNameInput,\r\n PanelComponent.CampaignTypeDropdown,\r\n PanelComponent.CampaignSelector,\r\n ],\r\n [DisplayMode.UpdatePanel]: [\r\n PanelComponent.Header,\r\n PanelComponent.PortfolioNameInput,\r\n PanelComponent.CampaignTypeDropdown,\r\n ],\r\n [DisplayMode.CreationDialog]: [\r\n PanelComponent.PortfolioTypeDropdown,\r\n PanelComponent.PortfolioNameInput,\r\n ],\r\n [DisplayMode.BulkEdit]: [\r\n PanelComponent.PortfolioTypeDropdown,\r\n PanelComponent.PortfolioNameInput,\r\n PanelComponent.CampaignTypeDropdown,\r\n ],\r\n};\r\n\r\nexport { PanelComponent, DisplayMode, DisplayModeToComponentsMapping };\r\n","import React, { useState, useContext, useEffect } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport _ from 'underscore';\r\nimport { DefaultButton, PrimaryButton } from '@bingads-webui-react/fabric-control';\r\nimport { I18nContext } from '@bingads-webui-react/i18n-context';\r\nimport { LegacyDepsContext } from '@bingads-webui-campaign-react/legacy-deps-context';\r\nimport { ScopeContext } from '@bingads-webui-react/scope-service';\r\nimport { getEntityFromScope } from '@bingads-webui/edm-campaign';\r\nimport { localizeApiError, Error as ErrorComponent, UiBlocker, i18nMap } from '@bingads-webui-campaign-react/portfolio-bid-strategy-shared';\r\nimport { LearnMoreLink } from '@bingads-webui-campaign-react/help';\r\nimport { PortfolioNameInput } from './portfolio-name-input';\r\nimport { PortfolioTypeDropdown, validator as validatePortfolioType } from './portfolio-type-dropdown';\r\nimport { PortfolioCampaignTypeDropdown, validator as validateCampaignType } from './portfolio-campaign-type-dropdown';\r\nimport { PortfolioCampaignSelector, validator as validateCampaigns } from './portfolio-campaign-selector';\r\nimport { PortfolioAdditionalSettings } from './portfolio-additional-settings';\r\nimport { additionalSettingsToUI } from './additional-settings-helper';\r\nimport { DisplayMode, DisplayModeToComponentsMapping, PanelComponent } from './portfolio-panel-display-mode';\r\n\r\nconst {\r\n portfolioCampaignTypeToBulkUpsertValue,\r\n portfolioCampaignTypeFromODataValue,\r\n portfolioCampaignTypeDefaultValue,\r\n} = i18nMap;\r\n\r\n// only export for test\r\nexport function validateProps(props) {\r\n switch (props.displayMode) {\r\n case DisplayMode.CreationPanel:\r\n if (!props.portfolioType) {\r\n throw new Error('When create portoflio, portfolioType is required');\r\n }\r\n break;\r\n case DisplayMode.UpdatePanel:\r\n if (!(_.isNumber(props.portfolioId) && props.portfolioId > 0)) {\r\n throw new Error('When update portfolio, portfolioId must be a positive number');\r\n }\r\n break;\r\n case DisplayMode.CreationDialog:\r\n if (!props.campaignType) {\r\n throw new Error('When create a portfolio through dialog, campaign type is required');\r\n }\r\n break;\r\n case DisplayMode.BulkEdit:\r\n break;\r\n default:\r\n throw new Error('Unsupported portfolio panel display mode');\r\n }\r\n}\r\n\r\nfunction CreationPanel(props) {\r\n const {\r\n displayMode,\r\n onCancel, onSuccess, reloadTrigger,\r\n permissions,\r\n } = props;\r\n\r\n validateProps(props);\r\n\r\n const i18n = useContext(I18nContext);\r\n const { jsdata } = useContext(LegacyDepsContext);\r\n const { scope } = useContext(ScopeContext);\r\n\r\n const isUpdate = displayMode === DisplayMode.UpdatePanel;\r\n const displayComponents = DisplayModeToComponentsMapping[displayMode];\r\n\r\n const [portfolioId] = useState(isUpdate ? props.portfolioId : -1);\r\n\r\n const [portfolioType, setPortfolioType] = useState(props.portfolioType);\r\n\r\n const [portfolioName, setPortfolioName] = useState('');\r\n const [isValidName, setIsValidName] = useState(false);\r\n\r\n const [campaignType, setCampaignType] = useState(props.campaignType);\r\n\r\n const [selectedCampaigns, setSelectedCampaigns] = useState([]);\r\n\r\n const [additionalSettings, setAdditionalSettings] = useState({});\r\n const [biddingStrategyView, setBiddingStrategyView] = useState();\r\n\r\n const [showValidationError, setShowValidationError] = useState(false);\r\n\r\n const [isLoading, setIsLoading] = useState(false);\r\n const [apiError, setApiError] = useState('');\r\n const [isDataLoaded, setIsDataLoaded] = useState(!isUpdate);\r\n\r\n useEffect(() => {\r\n if (isUpdate && portfolioId) {\r\n const { currentAccount } = getEntityFromScope(scope);\r\n\r\n setIsLoading(true);\r\n\r\n currentAccount.PortfolioBidStrategies.$withKey(portfolioId).get()\r\n .toPromise()\r\n .then((response) => {\r\n setPortfolioType(response.Type);\r\n setPortfolioName(response.Name);\r\n setCampaignType(portfolioCampaignTypeFromODataValue[response.CampaignType] || portfolioCampaignTypeDefaultValue);\r\n setAdditionalSettings(additionalSettingsToUI(response));\r\n setIsDataLoaded(true);\r\n })\r\n .catch((error) => {\r\n setApiError(localizeApiError(error, i18n));\r\n })\r\n .finally(() => {\r\n setIsLoading(false);\r\n });\r\n }\r\n }, [isUpdate, portfolioId, scope, i18n, reloadTrigger]);\r\n\r\n function onSelectCampaignType(value) {\r\n if (value !== campaignType) {\r\n setCampaignType(value);\r\n setSelectedCampaigns([]);\r\n }\r\n }\r\n\r\n function validate() {\r\n const validators = [\r\n () => (displayComponents.includes(PanelComponent.PortfolioTypeDropdown) ? validatePortfolioType(portfolioType) : true),\r\n () => (displayComponents.includes(PanelComponent.PortfolioNameInput) ? isValidName : true),\r\n () => (displayComponents.includes(PanelComponent.CampaignTypeDropdown) ? validateCampaignType(campaignType) : true),\r\n () => (displayComponents.includes(PanelComponent.CampaignSelector) ? validateCampaigns(selectedCampaigns) : true),\r\n () => biddingStrategyView && biddingStrategyView.validate(),\r\n ];\r\n const validationResults = validators.map(fn => fn());\r\n const allValid = _.all(validationResults);\r\n if (!allValid) {\r\n setShowValidationError(true);\r\n }\r\n return allValid;\r\n }\r\n\r\n function onSubmit() {\r\n if (!validate()) {\r\n return;\r\n }\r\n\r\n const data = {\r\n ...biddingStrategyView.getValues(),\r\n Id: portfolioId,\r\n Name: portfolioName,\r\n Type: portfolioType,\r\n CampaignType: portfolioCampaignTypeToBulkUpsertValue[campaignType],\r\n };\r\n\r\n if (!isUpdate) {\r\n _.extend(data, {\r\n AssociatedCampaigns: selectedCampaigns.map(cmp => ({\r\n Id: cmp.Id,\r\n BidStrategyId: portfolioId,\r\n })),\r\n });\r\n }\r\n\r\n setIsLoading(true);\r\n setApiError('');\r\n\r\n const jsdataCall = isUpdate ?\r\n jsdata.PortfolioBidStrategy.update(portfolioId, data, { adapter: 'bulk' }) :\r\n jsdata.PortfolioBidStrategy.create(data, { adapter: 'bulk' });\r\n\r\n jsdataCall\r\n .then(() => {\r\n onSuccess();\r\n })\r\n .catch((response) => {\r\n if (!isUpdate && (Number(response.entity.Id) > 0)) {\r\n // Handle partial success: succeed to create portfolio, but failed to associate campaigns to the portfolio.\r\n // Ignore campaign errors.\r\n onSuccess();\r\n }\r\n setApiError(localizeApiError(response, i18n));\r\n })\r\n .finally(() => {\r\n setIsLoading(false);\r\n });\r\n }\r\n\r\n return (\r\n
\r\n \r\n {displayComponents.includes(PanelComponent.Header) &&\r\n
\r\n
\r\n {i18n.getString(\r\n isUpdate ?\r\n _TL_('Update {{type}} portfolio bid strategy') :\r\n _TL_('Create a {{type}} portfolio bid strategy'),\r\n {\r\n type: i18n.getString(i18nMap.portfolioBidStrategyType[portfolioType] || ''),\r\n }\r\n )}\r\n
\r\n
}\r\n
\r\n
\r\n \r\n
\r\n {displayComponents.includes(PanelComponent.PortfolioTypeDropdown) &&\r\n \r\n }\r\n {displayComponents.includes(PanelComponent.PortfolioNameInput) && portfolioType &&\r\n \r\n }\r\n {displayComponents.includes(PanelComponent.CampaignTypeDropdown) && portfolioType &&\r\n \r\n }\r\n {displayComponents.includes(PanelComponent.CampaignSelector) && campaignType &&\r\n \r\n }\r\n {isDataLoaded && portfolioType &&\r\n \r\n }\r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nCreationPanel.propTypes = {\r\n displayMode: PropTypes.string.isRequired,\r\n portfolioId: PropTypes.number,\r\n portfolioType: PropTypes.string,\r\n campaignType: PropTypes.string,\r\n onSuccess: PropTypes.func,\r\n onCancel: PropTypes.func,\r\n reloadTrigger: PropTypes.number,\r\n permissions: PropTypes.shape({}),\r\n};\r\n\r\nCreationPanel.defaultProps = {\r\n portfolioId: null,\r\n portfolioType: null,\r\n campaignType: '',\r\n onSuccess: _.noop,\r\n onCancel: _.noop,\r\n reloadTrigger: 0,\r\n permissions: {},\r\n};\r\n\r\nexport const PortfolioBidStrategyCreationPanel = CreationPanel;\r\n","import React, { useContext } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { PortfolioBidStrategyCreationPanel, PortfolioBidStrategyPanelDisplayMode } from '@bingads-webui-campaign-react/portfolio-bid-strategy-creation-panel';\r\nimport { Dialog, DialogType } from '@bingads-webui-react/fabric-control';\r\nimport { I18nContext } from '@bingads-webui-react/i18n-context';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\n\r\nfunction getStyles() {\r\n return {\r\n portfolioCreationDialogContainer: {\r\n width: 500,\r\n 'max-width': 500,\r\n '& .panel.portfolio-creation-panel': {\r\n boxShadow: 'none',\r\n '& .panel-footer': {\r\n 'padding-left': 0,\r\n 'padding-right': 0,\r\n 'background-color': 'transparent',\r\n border: 0,\r\n },\r\n '& .panel-body': {\r\n 'padding-left': 0,\r\n 'padding-right': 0,\r\n },\r\n },\r\n '& .btn': {\r\n margin: '0px 3px 0px 3px',\r\n },\r\n },\r\n };\r\n}\r\n\r\nfunction PortfolioBidStrategyDialog(props) {\r\n const { classes, isBulkEdit, permissions } = props;\r\n\r\n const i18n = useContext(I18nContext);\r\n\r\n const dialogContentProps = {\r\n type: DialogType.normal,\r\n title: i18n.getString(_TL_('Create new portfolio bid strategy')),\r\n showCloseButton: true,\r\n closeButtonAriaLabel: i18n.getString(_TL_('Close')),\r\n };\r\n\r\n const modelProps = {\r\n isBlocking: true,\r\n topOffsetFixed: true,\r\n };\r\n\r\n const displayMode = isBulkEdit ?\r\n PortfolioBidStrategyPanelDisplayMode.BulkEdit :\r\n PortfolioBidStrategyPanelDisplayMode.CreationDialog;\r\n\r\n return (\r\n