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AIW,OAAO,OAASP,EAAah7B,EAAK2G,UAAU,sBAAwB,GAAKq0B,GAAe,sEAA+I,EAAE9M,KAAK/mB,KAAK,oBAAqB+zB,EAAgBA,EAAgB/kB,gBAAyC,qBAAlBA,gBAA8BA,qBAAgBhW,EAAU,SAAU+6B,EAAgBA,EAAgBl7B,KAAmB,qBAAPA,KAAmBA,UAAKG,EAAU,2BAA4B+6B,EAAgBA,EAAgB9kB,uBAAuD,qBAAzBA,uBAAqCA,4BAAuBjW,EAAU,eAAgB+6B,EAAgBA,EAAgBzkB,WAA+B,qBAAbA,WAAyBA,gBAAWtW,EAAU,aAAc+6B,EAAgBA,EAAgBhlB,SAA2B,qBAAXA,SAAuBA,cAAS/V,EAAU,mBAAoB+6B,EAAgBA,EAAgBnpB,eAAuC,qBAAjBA,eAA6BA,oBAAe5R,EAAU,SAAU+6B,EAAgBA,EAAgBxkB,KAAmB,qBAAPA,KAAmBA,UAAKvW,GAAoB86B,CAAS,C","sources":["../../../../shared-library/packages/brand-lists-data/src/brand-list.js","../../../../shared-library/packages/brand-lists-data/src/grid-edm.js","../../../../shared-library/packages/brand-lists-data/src/load-campaign-associated-brand-lists-factory.js","../../../../shared-library/packages/brand-lists-data/src/bulk-upsert-errors.js","../../../../shared-library/packages/brand-lists-data/src/error-handling.js","../../../../shared-library/packages/brand-lists-data/src/manage-brand-list-error-handling.js","../../../../shared-library/packages/sharing-scope-editor/src/tree-operations.js","../../../../shared-library/packages/sharing-scope-editor/src/shapes.js","../../../../shared-library/packages/sharing-scope-editor/src/scope-editor-source-panel.js","../../../../shared-library/packages/sharing-scope-editor/src/scope-editor-target-panel.js","../../../../shared-library/packages/sharing-scope-editor/src/index.js","../../../../shared-library/packages/shared-library-scopes/src/util.js","../../../../shared-library/packages/shared-library-scopes/src/account-list-popover.js","../../../../shared-library/packages/shared-library-scopes/src/audience-scope-editor.js","../../../../shared-library/packages/shared-library-scopes/src/audience-sharing-view.js","../../../../shared-library/packages/shared-library-scopes/src/uet-tag-scope-editor.js","../../../../shared-library/packages/shared-library-scopes/src/uet-tag-manage-scope-view.js","../../../../shopping-campaign/packages/cashback-percent-control-view/src/cashback-percent-control-view.js","../../../../shopping-campaign/packages/ms-store-ads-common/src/utils.js","../../../../shopping-campaign/packages/personalized-offer-shared/src/utils.js","../../../../smart-campaigns/packages/smart-i18n/src/build-legacy-i18n.js","../../../../smart-campaigns/packages/smart-i18n/src/i18n/legacy-keys.js","../../router/src/index.js","../../scope-bar/src/styles.js","../../scope-bar/src/campaign-status-menu-button/status-icon.js","../../scope-bar/src/campaign-status-menu-button/campaign-status-menu-button.js","../../scope-bar/src/teaching-bubble.js","../../scope-bar/src/campaign-scope-bar.js","../../scope-bar/src/scope-bar-loader.js","../../scope-panel/src/campaign-scope-panel.js","../../scope-panel/src/styles.js","../../scope-panel/src/scope-panel.js","../../scope-selector/src/config.js","../../scope-selector/src/with-campaign-data.js","../../scope-selector/src/helper/scope-helper.js","../../scope-selector/src/with-campaign-filter.js","../../scope-selector/src/media/linkedin-icon.js","../../scope-selector/src/filters/filter-options.js","../../scope-selector/src/filters/adgroup-status-filter.js","../../scope-selector/src/filters/campaign-status-filter.js","../../scope-selector/src/filters/campaign-type-filter.js","../../scope-selector/src/filters/campaign-filters.js","../../scope-selector/src/filters/helper.js","../../shell-ui-common/src/enums/constants.js","../../shell-ui-common/src/mainmenu-placeholder-with-responsive-size.js","../../shell-ui-common/src/global-menu-wrapper-placeholder.js","../../shell-ui-common/src/new-global-menu-wrapper-placeholder.js","../../shell-ui-common/src/primary-navigation-placeholder.js","../../shell-ui-common/src/secondary-navigation-placeholder.js","../../shell-ui-common/src/scope-panel-placeholder.js","../../shell-ui-common/src/entity-converter/campaign-converter.js","../../shell-ui-common/src/entity-converter/adgroup-converter.js","../../shell-ui-common/src/spinner/spinner-with-label.js","../../shell-ui-common/src/spinner/spinner-with-label-styles.js","../../shell-ui-common/src/scope-selector-container/level-selector-items.js","../../shell-ui-common/src/enums/shell-tips.js","../../smart-campaigns-popup/src/smart-campaigns-popup.js","../../smart-campaigns-popup/src/styles.js","../../../../shopping-campaign/packages/cashback-percent-control-view/src/cashback-percent-control-view.pug"],"sourcesContent":["/* eslint-disable no-console */\r\nimport { edmCampaign } from '@bingads-webui/edm-campaign';\r\n\r\nconst MT_ALLOWED_MIN_SEARCH_FILTER_LENGTH = 2;\r\nconst MAX_BRAND_LISTS = 20;\r\n\r\nexport const getBrandListById = async ({ cid, aid, brandListId }) => {\r\n const payload = {\r\n $filter: `Id eq ${brandListId}`,\r\n $top: 1,\r\n };\r\n const edm = edmCampaign\r\n .Customers\r\n .$withKey(cid)\r\n .Accounts\r\n .$withKey(aid)\r\n .BrandLists;\r\n const res = await edm.get(payload).toPromise();\r\n return res && res.value && res.value.length > 0 ? res.value[0] : null;\r\n};\r\n\r\nexport const loadBrandListsFactory = (cid, aid) => async () => {\r\n const payload = {\r\n top: MAX_BRAND_LISTS,\r\n skip: 0,\r\n endDate: Date.now(),\r\n };\r\n\r\n const edm = edmCampaign\r\n .Customers.$withKey(cid)\r\n .Accounts.$withKey(aid)\r\n .BrandLists;\r\n\r\n const res = await edm.get(payload).toPromise();\r\n return res.value.map(brandList => ({\r\n key: brandList.Id,\r\n ...brandList,\r\n }));\r\n};\r\n\r\nexport const loadBrandsFactoryFromProp = ({ cid, aid }) => async ({ searchFilter, top }) => {\r\n // If there's no search filter, we don't need to load brands since MT will not allow it\r\n if (!searchFilter || searchFilter.length < MT_ALLOWED_MIN_SEARCH_FILTER_LENGTH) {\r\n return [];\r\n }\r\n\r\n const payload = {\r\n search: searchFilter,\r\n top,\r\n count: true,\r\n endDate: Date.now(),\r\n };\r\n\r\n const edm = edmCampaign\r\n .Customers\r\n .$withKey(cid)\r\n .Accounts\r\n .$withKey(aid)\r\n .Brands;\r\n\r\n const result = await edm.get(payload).toPromise();\r\n if (result && result.value && result.value.length > 0) {\r\n const options = result.value.map(brand => ({\r\n key: brand.Id,\r\n name: brand.Name,\r\n link: brand.Uri,\r\n isUnderReview: brand.Status === 'Pending',\r\n }));\r\n return options;\r\n }\r\n return [];\r\n};\r\n\r\nexport const loadBrandsUnderBrandListFactoryFromProp = ({\r\n cid, aid, brandListId, isEdit, top,\r\n}) => async () => {\r\n // If it's not in edit mode, we don't need to load brands\r\n if (!isEdit) {\r\n return [];\r\n }\r\n\r\n const payload = {\r\n endDate: Date.now(),\r\n top,\r\n };\r\n\r\n const edm = edmCampaign\r\n .Customers\r\n .$withKey(cid)\r\n .Accounts\r\n .$withKey(aid)\r\n .BrandLists\r\n .$withKey(brandListId)\r\n .BrandItems;\r\n\r\n const result = await edm.get(payload).toPromise();\r\n if (result && result.value && result.value.length > 0) {\r\n const options = result.value.map(brand => ({\r\n key: brand.BrandId,\r\n name: brand.BrandName,\r\n link: brand.Uri,\r\n isUnderReview: false,\r\n }));\r\n return options;\r\n }\r\n return [];\r\n};\r\n\r\nexport const createBrandListFromProp = ({ cid, aid }) => (brandListPayload) => {\r\n const edmEntityAccount = edmCampaign\r\n .Customers\r\n .$withKey(cid)\r\n .Accounts\r\n .$withKey(aid);\r\n\r\n return edmEntityAccount.bulkCreate(brandListPayload, {\r\n entityName: 'Model.BrandList',\r\n });\r\n};\r\n\r\nexport const updateBrandListFromProp = ({ cid, aid }) => async (brandListPayload) => {\r\n const edmEntityAccount = edmCampaign\r\n .Customers\r\n .$withKey(cid)\r\n .Accounts\r\n .$withKey(aid);\r\n\r\n return edmEntityAccount.bulkUpdate(brandListPayload, {\r\n entityName: 'Model.BrandItem',\r\n });\r\n};\r\n\r\nexport const deleteBrandListFromProp = ({ cid, aid }) => (brandLists) => {\r\n const payload = brandLists.map(Id => ({\r\n BrandLists: {\r\n Id,\r\n Status: 'Deleted',\r\n },\r\n }));\r\n const edmEntityAccount = edmCampaign\r\n .Customers\r\n .$withKey(cid)\r\n .Accounts\r\n .$withKey(aid);\r\n return edmEntityAccount.bulkUpdate(payload, {\r\n entityName: 'Model.BrandList',\r\n });\r\n};\r\n\r\nexport const getCampaignsFromProp = ({ cid, aid }) => (getCampaignsPayload) => {\r\n const edmEntityCampaign = edmCampaign\r\n .Customers\r\n .$withKey(cid)\r\n .Accounts\r\n .$withKey(aid)\r\n .Campaigns;\r\n const { search, pageNumber, campaignType } = getCampaignsPayload;\r\n const broadOnlyFilter = campaignType === 'PerformanceMax' ? '' : 'isBroadMatchOnlyCampaign eq true and ';\r\n const query = {\r\n count: true,\r\n top: 10,\r\n skip: (pageNumber - 1) * 10 || 0,\r\n filter: { where: `(${broadOnlyFilter}CampaignType eq Enum.CampaignType'${campaignType}')${search ? `and contains(Name, '${search}')` : ''}` },\r\n select: ['Id', 'Name'],\r\n };\r\n const payload = {\r\n gridDataParameters: {\r\n CurrentCustomerId: cid,\r\n },\r\n };\r\n return edmEntityCampaign['Default.GridData'].$makeCall({ query, payload }).toPromise();\r\n};\r\n\r\nexport const getCampaignBrandListAssociationFromProp = ({ cid, aid }) => (brandListId, isExclusion) => {\r\n const edmEntityBrandLists = edmCampaign\r\n .Customers\r\n .$withKey(cid)\r\n .Accounts\r\n .$withKey(aid)\r\n .BrandLists\r\n .$withKey(brandListId);\r\n return edmEntityBrandLists['Default.GetCampaignAssociations'].$makeCall({\r\n query: {\r\n top: 100,\r\n endDate: Date.now(),\r\n filter: { where: `IsExclusion eq ${!!isExclusion}` },\r\n },\r\n }).toPromise();\r\n};\r\n\r\n\r\nexport const campaignBrandListAssociationFromProp = ({ cid, aid }) => (brandListCampaignAssociationPayload) => {\r\n const edmEntityAccount = edmCampaign\r\n .Customers\r\n .$withKey(cid)\r\n .Accounts\r\n .$withKey(aid);\r\n const {\r\n brandList, campaigns, originalAssociation, isExclusion,\r\n } = brandListCampaignAssociationPayload;\r\n const campaignsMap = {};\r\n campaigns.forEach((id) => {\r\n campaignsMap[id] = 1;\r\n });\r\n const originalAssociationMap = {};\r\n originalAssociation.forEach((EntityId) => {\r\n originalAssociationMap[EntityId] = 1;\r\n });\r\n const payload = [];\r\n for (let i = 0; i < campaigns.length; i += 1) {\r\n if (!originalAssociationMap[campaigns[i]]) {\r\n payload.push({\r\n BrandListsAssociations: {\r\n SharedEntityId: brandList,\r\n EntityId: campaigns[i],\r\n IsExclusion: isExclusion,\r\n },\r\n });\r\n }\r\n }\r\n for (let i = 0; i < originalAssociation.length; i += 1) {\r\n if (!campaignsMap[originalAssociation[i]]) {\r\n payload.push({\r\n BrandListsAssociations: {\r\n SharedEntityId: brandList,\r\n EntityId: originalAssociation[i],\r\n Status: 'Deleted',\r\n IsExclusion: isExclusion,\r\n },\r\n });\r\n }\r\n }\r\n return edmEntityAccount.bulkCreateMany(payload);\r\n};\r\n\r\nexport const createBrandFromProp = ({ cid, aid }) => ({ brandName, brandLink, brandReason }) => {\r\n const payload = [{\r\n Name: brandName,\r\n Uri: brandLink,\r\n RequestReason: brandReason,\r\n }];\r\n\r\n const edmEntityAccount = edmCampaign\r\n .Customers\r\n .$withKey(cid)\r\n .Accounts\r\n .$withKey(aid);\r\n\r\n return edmEntityAccount.Brands['Default.PostBrands']\r\n .$makeCall({ payload })\r\n .toPromise();\r\n};\r\n","import { edmCampaign } from '@bingads-webui/edm-campaign';\r\n\r\nexport const getBrandListsEdm = ({\r\n customerId,\r\n accountId,\r\n}) => {\r\n const edm = edmCampaign\r\n .Customers.$withKey(customerId)\r\n .Accounts.$withKey(accountId)\r\n .BrandLists;\r\n edm.$makeCall = params => edm.get({\r\n ...params.query,\r\n cache: Date.now(),\r\n });\r\n return edm;\r\n};\r\n\r\nexport const getBrandsUnderBrandListEdm = ({\r\n cid, aid, brandListId,\r\n}) => {\r\n const edm = edmCampaign\r\n .Customers\r\n .$withKey(cid)\r\n .Accounts\r\n .$withKey(aid)\r\n .BrandLists\r\n .$withKey(brandListId)\r\n .BrandItems;\r\n edm.$makeCall = params => edm.get(params.query);\r\n return edm;\r\n};\r\n","import { edmCampaign } from '@bingads-webui/edm-campaign';\r\n\r\nexport const loadCampaignAssociatedBrandListsFactory = (cid, aid, campaignId) => () =>\r\n edmCampaign\r\n .Customers.$withKey(cid)\r\n .Accounts.$withKey(aid)\r\n .Campaigns.$withKey(campaignId)\r\n .BrandLists['Default.GetCampaignAssociations']\r\n .$makeCall({\r\n functionParams: {\r\n },\r\n query: {\r\n count: true,\r\n skip: 0,\r\n top: 2147483647, // max Int32,\r\n endDate: Date.now(),\r\n },\r\n })\r\n .toPromise()\r\n .then(({ value }) => value.map(({ SharedEntityId, SharedEntityName, ListItemCount }) => ({\r\n key: SharedEntityId,\r\n Id: SharedEntityId,\r\n Name: SharedEntityName,\r\n Count: ListItemCount,\r\n })));\r\n","import { identity, result } from 'underscore';\r\nimport { Campaign, BrandList, BrandListAssociation, BrandItem } from '@bingads-webui/campaign-odata-schemas';\r\nimport { getBulkApiErrors } from '@bingads-webui-campaign/api-errors';\r\n\r\nexport const ERROR_ENTITY = {\r\n Campaign: 'campaign',\r\n BrandList: 'brandList',\r\n BrandListAssociation: 'brandListAssociation',\r\n BrandItem: 'brandItem',\r\n};\r\n\r\nconst getBulkUploadEntityType = entitySchema =>\r\n (entitySchema.properties['bulk-upload-type'] || {}).value ||\r\n entitySchema.name;\r\n\r\nconst getBulkUploadErrorType = entitySchema =>\r\n `${getBulkUploadEntityType(entitySchema)} Error`;\r\n\r\nexport const bulkUpsertBrandListsEntityErrorMap = {\r\n [getBulkUploadErrorType(Campaign)]: ERROR_ENTITY.Campaign,\r\n [getBulkUploadErrorType(BrandList)]: ERROR_ENTITY.BrandList,\r\n [getBulkUploadErrorType(BrandListAssociation)]: ERROR_ENTITY.BrandListAssociation,\r\n [getBulkUploadErrorType(BrandItem)]: ERROR_ENTITY.BrandItem,\r\n};\r\n\r\nexport const mapBulkUpsertErrors = (\r\n errors,\r\n bulkUpsertEntityErrorMap,\r\n errorProcessor = identity,\r\n scenario,\r\n i18n,\r\n activityLogger\r\n) =>\r\n getBulkApiErrors(errors, scenario, i18n, activityLogger).map((error) => {\r\n const errorType = error.type;\r\n const mappedErrorType = result(bulkUpsertEntityErrorMap, errorType, errorType);\r\n // eslint-disable-next-line no-param-reassign\r\n error.type = mappedErrorType;\r\n return errorProcessor(error);\r\n });\r\n\r\nexport const modelToViewModelForBulkErrors = (errors, bulkUpsertEntityErrorMap, scenario, i18n, activityLogger) =>\r\n mapBulkUpsertErrors(errors, bulkUpsertEntityErrorMap, /* errorProcessor */ identity, scenario, i18n, activityLogger);\r\n","import { has } from 'underscore';\r\nimport { CampaignApiError, getODataErrors } from '@bingads-webui-campaign/api-errors';\r\nimport { bulkUpsertBrandListsEntityErrorMap, modelToViewModelForBulkErrors } from './bulk-upsert-errors';\r\n\r\nexport const GENERIC_ERROR_MESSAGE = _TL_(\"We've encountered an error and can't continue. Please contact support for further assistance.\");\r\n\r\nexport const getViewModelBulkUpsertErrors = (i18n, result) => {\r\n if (has(result, 'entity')) {\r\n const serverErrors = modelToViewModelForBulkErrors(\r\n result.errors,\r\n bulkUpsertBrandListsEntityErrorMap,\r\n 'brandList',\r\n i18n\r\n );\r\n\r\n if (serverErrors && serverErrors.length > 0) {\r\n return serverErrors;\r\n }\r\n }\r\n\r\n return [new CampaignApiError(GENERIC_ERROR_MESSAGE)];\r\n};\r\n\r\nexport const getOdataResponseErrors = (i18n, result) => {\r\n if (result && result.errors) {\r\n const serverErrors = getODataErrors(result.errors, i18n);\r\n\r\n if (serverErrors && serverErrors.length > 0) {\r\n return serverErrors;\r\n }\r\n }\r\n\r\n return [new CampaignApiError(GENERIC_ERROR_MESSAGE)];\r\n};\r\n","import { isEmpty, reduce, filter, find } from 'underscore';\r\n\r\nconst and = (predicate1, predicate2) => item => predicate1(item) && predicate2(item);\r\nconst or = (predicate1, predicate2) => item => predicate1(item) || predicate2(item);\r\nconst not = predicate => item => !predicate(item);\r\nconst errorIs = errorCode => error => error.Error === errorCode;\r\nconst clientIdIs = clientId => error => error['Client Id'] === clientId;\r\n\r\nexport const extractAndRestoreFailedBrandItemAssociations = (errors, BrandList, BrandItemsAssociations) => {\r\n // If the brand list itself has errors, we don't need to process the brand item associations\r\n if (BrandList) {\r\n const brandListClientId = clientIdIs(BrandList['Client Id']);\r\n const brandListErrors = filter(errors, brandListClientId);\r\n if (!isEmpty(brandListErrors)) {\r\n return { savedAddedBrandItemIds: [], savedDeletedBrandItemIds: [], filteredErrors: brandListErrors };\r\n }\r\n }\r\n\r\n const { savedAddedBrandItemIds, savedDeletedBrandItemIds, filteredErrors } =\r\n reduce(BrandItemsAssociations, (acc, brandItemAssociation) => {\r\n const brandItemAssociationClientId = clientIdIs(brandItemAssociation['Client Id']);\r\n\r\n const brandItemAssociationErrors = filter(acc.filteredErrors, brandItemAssociationClientId);\r\n if (isEmpty(brandItemAssociationErrors)) {\r\n if (brandItemAssociation.Status === 'Active') {\r\n acc.savedAddedBrandItemIds.push(brandItemAssociation.SharedEntityId);\r\n } else if (brandItemAssociation.Status === 'Deleted') {\r\n acc.savedDeletedBrandItemIds.push(brandItemAssociation.SharedEntityId);\r\n }\r\n } else {\r\n const campaignServiceSharedEntityAssociationDoesNotExistError = errorIs('CampaignServiceSharedEntityAssociationDoesNotExist');\r\n\r\n // Some errors are non-blocking and should be filtered out\r\n // Case #1.1: Deleting an association that doesn't exist\r\n // Case #1.2: Deleting an association where both the association and the brand list are already deleted\r\n const associationDoesNotExistError = find(brandItemAssociationErrors, campaignServiceSharedEntityAssociationDoesNotExistError);\r\n if (associationDoesNotExistError) {\r\n acc.filteredErrors = acc.filteredErrors.filter(not(or(\r\n and(campaignServiceSharedEntityAssociationDoesNotExistError, brandItemAssociationClientId),\r\n and(errorIs('CampaignServiceSharedListIdInvalid'), brandItemAssociationClientId)\r\n )));\r\n }\r\n\r\n // Case #2: Adding an association that already exists\r\n // FIXME: MT returns incorrect error code for this case\r\n acc.filteredErrors = acc.filteredErrors\r\n .filter(not(and(errorIs('CampaignServiceFutureFeatureCode'), brandItemAssociationClientId)));\r\n }\r\n return acc;\r\n }, { savedAddedBrandItemIds: [], savedDeletedBrandItemIds: [], filteredErrors: errors });\r\n\r\n return {\r\n savedAddedBrandItemIds, savedDeletedBrandItemIds, filteredErrors,\r\n };\r\n};\r\n","import _ from 'underscore';\r\n\r\n/**\r\n * sort children of each nodes in the following order:\r\n * owned accounts\r\n * linked accounts\r\n * customers\r\n * @param {array} nodes - tree structure\r\n * @returns {array} tree nodes sorted\r\n */\r\nexport const sortedByNodeType = nodes =>\r\n _.map(nodes, node => ({\r\n ...node,\r\n children: _.sortBy(\r\n sortedByNodeType(node.children),\r\n child => (child.isCustomer * 100) + (child.isLinkedAccount * 10)\r\n ),\r\n }));\r\n\r\n/**\r\n * Add helper properties to each node in the tree\r\n * @param {array} nodes - tree structure\r\n * @param {array} parents - all parent node ids along the path from root\r\n * @returns {array} tree with helper properties\r\n */\r\nexport const nodesWithHelpers = (nodes, parents = []) =>\r\n _.map(nodes, node => ({\r\n ...node,\r\n state: {\r\n ...(node.state || {}),\r\n expanded: true, // expand all by default\r\n },\r\n deepness: parents.length,\r\n parents,\r\n children: nodesWithHelpers(node.children, [...parents, node.id]),\r\n }));\r\n\r\n/**\r\n * Filter a tree, return nodes pass the truth test.\r\n * Parent node on the path from root will be kept.\r\n * @param {array} nodes - tree structure\r\n * @param {function} predicate - truth test\r\n * @returns {array} filtered tree\r\n */\r\nexport const filteredNodes = (nodes, predicate) =>\r\n _.reduce(nodes, (memo, node) => {\r\n const filteredChildren = filteredNodes(node.children, predicate);\r\n return predicate(node) || !_.isEmpty(filteredChildren) ?\r\n [\r\n ...memo,\r\n {\r\n ...node,\r\n children: filteredChildren,\r\n },\r\n ] : memo;\r\n }, []);\r\n\r\n/**\r\n * Filter a tree, return nodes pass the truth test, and return a flattened list.\r\n * For accounts, also keep their customers\r\n * @param {array} nodes - tree structure\r\n * @param {function} predicate - truth test\r\n * @returns {array} the result tree\r\n */\r\nexport const compactCustomers = (nodes, predicate) =>\r\n _.reduce(nodes, (memo, node) => {\r\n const children = compactCustomers(node.children, predicate);\r\n const childCustomers = _.filter(children, child => child.isCustomer);\r\n const childAccounts = _.filter(children, child => !child.isCustomer);\r\n memo.push(...childCustomers);\r\n if (predicate(node) || !_.isEmpty(childAccounts)) {\r\n memo.push({\r\n ...node,\r\n children: childAccounts,\r\n });\r\n }\r\n\r\n return memo;\r\n }, []);\r\n\r\n/**\r\n * Patch state of all nodes\r\n * @param {array} nodes - tree structure\r\n * @param {Object} statePatch - the state to patch\r\n * @returns {array} updated nodes\r\n */\r\nexport const patchedNodes = (nodes, statePatch) =>\r\n // update only leaf node(ad account)\r\n _.map(nodes, node => (node.isLinkedAccount || node.isCustomer ? node : ({\r\n ...node,\r\n state: { ...(node.state || {}), ...statePatch },\r\n })));\r\n\r\n/**\r\n * return a deep copy of the tree with the updatedNode and its child accounts state updated\r\n * @param {array} nodes - tree structure\r\n * @param {Object} updatedNode - the tree node whose state is changed\r\n * @returns {array} the updated tree\r\n */\r\nexport const updatedTree = (nodes, updatedNode) => {\r\n const { id, state: statePatch = {} } = updatedNode;\r\n const updatedTreeNodes = _.map(nodes, (node) => {\r\n if (node.id === id) {\r\n const state = { ...(node.state || {}), ...statePatch, indeterminate: false };\r\n return {\r\n ...node,\r\n state,\r\n children: patchedNodes(node.children, {\r\n ...statePatch,\r\n // disable child accounts if customer is checked\r\n disabled: state.checked,\r\n }),\r\n };\r\n }\r\n\r\n return {\r\n ...node,\r\n children: updatedTree(node.children, updatedNode),\r\n };\r\n });\r\n\r\n return updatedTreeNodes;\r\n};\r\n\r\n/**\r\n * Disable all nodes that pass the truth test\r\n * @param {array} nodes - tree structure\r\n * @param {function} predicate - truth test\r\n * @returns {array} - the updated tree\r\n */\r\nexport const disableNodes = (nodes, predicate) =>\r\n _.reduce(nodes, (memo, node) => {\r\n const updatedChildren = disableNodes(node.children, predicate);\r\n const updatedNode =\r\n {\r\n ...node,\r\n state: {\r\n ...(node.state || {}),\r\n ...(predicate(node) ? { disabled: true } : {}),\r\n },\r\n children: updatedChildren,\r\n };\r\n\r\n memo.push(updatedNode);\r\n return memo;\r\n }, []);\r\n\r\n/**\r\n * Create a piping function that apply all functions in order\r\n * @param {...function} fnsToApply - array of functions to apply\r\n * @returns {function} piping function\r\n */\r\nexport const pipe = (...fnsToApply) =>\r\n nodes => _.reduce(\r\n _.compact(fnsToApply),\r\n (memo, fn) => fn(memo),\r\n nodes\r\n );\r\n\r\n/**\r\n * @param {array} nodes - tree structure\r\n * @param {bool} checked - select or deselect\r\n * @returns {array} a deep copy of the updated tree\r\n */\r\nexport const selectAll = (nodes, checked = true) =>\r\n _.map(nodes, node => (\r\n node.isLinkedAccount || (node.isCustomer && node.state.disabled) ? ({\r\n ...node,\r\n children: _.filter(node.children, child => !child.isCustomer)\r\n .concat(selectAll(_.filter(node.children, child => child.isCustomer), checked)),\r\n }) : ({\r\n ...node,\r\n state: {\r\n ...(node.state || {}),\r\n checked,\r\n ...(!node.isCustomer ? { disabled: checked } : {}),\r\n },\r\n children: selectAll(node.children, checked),\r\n })));\r\n\r\n/**\r\n * @param {array} nodes - tree structure\r\n * @param {Object} updatedNode - the tree node whose state is changed\r\n * @returns {array} a deep copy of the updated tree\r\n */\r\nexport const expandTree = (nodes, updatedNode) =>\r\n _.map(nodes, (node) => {\r\n if (node.id === updatedNode.id) {\r\n return {\r\n ...node,\r\n state: {\r\n ...(node.state || {}),\r\n expanded: updatedNode.state.expanded,\r\n },\r\n };\r\n }\r\n\r\n return {\r\n ...node,\r\n children: expandTree(node.children, updatedNode),\r\n };\r\n });\r\n","import PropTypes from 'prop-types';\r\nimport { NodeOperations } from '@bingads-webui-react/tree-view';\r\n\r\nexport const HierarchyNodesProp = PropTypes.shape({\r\n id: PropTypes.number.isRequired,\r\n number: PropTypes.string.isRequired,\r\n name: PropTypes.string.isRequired,\r\n isCustomer: PropTypes.bool.isRequired,\r\n});\r\n\r\nexport const AccountProp = PropTypes.shape({\r\n Id: PropTypes.number.isRequired,\r\n Number: PropTypes.string.isRequired,\r\n Name: PropTypes.string.isRequired,\r\n});\r\n\r\nexport const SharingScopeProp = PropTypes.shape({\r\n Customers: PropTypes.arrayOf(AccountProp),\r\n Accounts: PropTypes.arrayOf(AccountProp),\r\n});\r\n\r\nexport const NodeUpdateHandlersProp = PropTypes.shape({\r\n [NodeOperations.SELECTED]: PropTypes.func.isRequired,\r\n [NodeOperations.EXPANDED]: PropTypes.func.isRequired,\r\n [NodeOperations.COLLAPSED]: PropTypes.func.isRequired,\r\n});\r\n","import _ from 'underscore';\r\nimport React, { PureComponent } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { SearchBox, SearchResultLiveRegion } from '@bingads-webui-react/search-box';\r\nimport { CheckBoxNode, TreeView } from '@bingads-webui-react/tree-view';\r\nimport { compactCustomers } from './tree-operations';\r\nimport { HierarchyNodesProp, NodeUpdateHandlersProp } from './shapes';\r\n\r\nexport class ScopeEditorSrcPanel extends PureComponent {\r\n static propTypes = {\r\n data: PropTypes.arrayOf(HierarchyNodesProp).isRequired,\r\n deps: PropTypes.shape({\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func.isRequired,\r\n }).isRequired,\r\n }).isRequired,\r\n nodeUpdateHandlers: NodeUpdateHandlersProp.isRequired,\r\n onTreeUpdated: PropTypes.func.isRequired,\r\n onSelectAll: PropTypes.func.isRequired,\r\n }\r\n\r\n constructor(props) {\r\n super(props);\r\n this.onSearch = _.debounce(this.onSearch, 500);\r\n }\r\n\r\n state = {\r\n query: '',\r\n searchText: '',\r\n }\r\n\r\n onSearch = () => {\r\n this.setState(prevState => ({ query: prevState.searchText }));\r\n }\r\n\r\n onQueryChange = (searchText) => {\r\n this.setState({ searchText });\r\n this.onSearch();\r\n }\r\n\r\n onKeyDown = (event) => {\r\n if (event.key === 'Enter') {\r\n this.props.onSelectAll();\r\n }\r\n }\r\n\r\n matchNode(query) {\r\n return ({ name, number }) => {\r\n const lowerCaseQuery = query.toLowerCase();\r\n return name.toString().toLowerCase().indexOf(lowerCaseQuery) >= 0 ||\r\n number.toString().toLowerCase().indexOf(lowerCaseQuery) >= 0;\r\n };\r\n }\r\n\r\n renderTree(nodes) {\r\n const { nodeUpdateHandlers, onTreeUpdated } = this.props;\r\n\r\n return (\r\n
\r\n {description}\r\n
\r\n }\r\n