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A,aACA,QACA,SACA,QACA,UACA,WACA,UACA,UACA,WACA,SACA,WACA,UACA,WACA,UACA,UACA,SACA,QACA,OACA,QACA,SACA,UACA,WACA,aACA,UACA,SACA,SACA,MACA,eACA,OACA,WACA,WACA,WACA,OACA,aACA,iBACA,OACA,QACA,OACA,OACA,OACA,WACA,QACA,OACA,OACA,cACA,WACA,WACA,YACA,cACA,QACA,WACA,aACA,aACA,cACA,YACA,WACA,YACA,MACA,aACA,WACA,OACA,MACA,OACA,MACA,SACA,UACA,OACA,UACA,aACA,cACA,cACA,OACA,WACA,aACA,cACA,QACA,SACA,WACA,YACA,cACA,cACA,eACA,eACA,OACA,OACA,OACA,WACA,QACA,SACA,OACA,QACA,QACA,OACA,aACA,SACA,UACA,eACA,QACA,QACA,OACA,YACA,aACA,aACA,cACA,eACA,cACA,YACA,UACA,cACA,QACA,MACA,UACA,UACA,SACA,QACA,QACA,SACA,OACA,QACA,aACA,cACA,QACA,SACA,OACA,SACA,UACA,OACA,SACA,WACA,UACA,WACA,aACA,eACA,eACA,gBACA,gBACA,cACA,WACA,aACA,aACA,cACA,cACA,eACA,YACA,SACA,OACA,SACA,OACA,QACA,SACA,SACA,UACA,WACA,YACA,SACA,UACA,WACA,0BACA,SACA,QACA,WACA,UACA,eACA,cACA,MACA,QACA,SACA,SACA,OACA,UACA,SACA,MACA,QACA,UACA,WACA,aACA,YACA,UACA,SACA,SACA,MACA,UACA,aACA,UACA,YACA,cACA,OACA,QACA,OACA,QACA,OACA,OACA,OACA,WACA,QACA,SACA,WACA,UACA,MACA,WACA,OACA,MACA,OACA,OACA,OACA,OACA,UACA,SACA,UACA,WACA,YACA,YACA,OACA,SACA,UACA,MACA,SACA,UACA,OACA,aACA,SACA,SACA,QACA,OACA,UACA,OACA,OACA,aACA,WACA,aACA,YACA,cACA,WACA,aACA,aACA,aACA,eACA,gBACA,aACA,QACA,OACA,OACA,YACA,aACA,cACA,cACA,cACA,cACA,eACA,cACA,eACA,gBACA,aACA,gBACA,aACA,eACA,eACA,gBACA,eACA,gBACA,iBACA,eACA,cACA,OACA,QACA,cACA,eACA,SACA,eACA,QACA,SACA,OACA,SACA,SACA,QACA,SACA,SACA,SACA,SACA,UACA,MACA,YACA,UACA,WACA,WACA,WACA,UACA,UACA,WACA,SACA,UACA,OACA,OACA,SACA,QACA,cACA,WACA,QACA,OACA,SACA,UACA,UACA,WACA,QACA,OACA,YACA,SACA,OACA,SACA,SACA,UACA,SACA,YACA,SACA,UACA,UACA,OACA,OACA,QACA,cACA,SACA,QACA,SACA,OACA,OACA,QACA,QACA,UACA,QACA,SACA,SACA,SACA,SACA,UACA,QACA,SACA,SACA,UACA,WACA,SACA,SACA,UACA,QACA,MACA,OACA,OACA,OACA,OACA,UACA,UACA,WACA,UACA,OACA,OACA,WACA,QACA,SACA,SACA,WACA,WACA,WACA,UACA,WACA,QACA,UACA,UACA,WACA,WACA,YACA,SACA,QACA,OACA,QACA,SACA,OACA,SACA,iBACA,OACA,QACA,UACA,UACA,UACA,QACA,OACA,WACA,WACA,MACA,UACA,OACA,OACA,UACA,eACA,UACA,YACA,YACA,UACA,SACA,OACA,OACA,OACA,WACA,SACA,QACA,UACA,SACA,QACA,SACA,SACA,QACA,QACA,OACA,OACA,SACA,QACA,QACA,QACA,UACA,QACA,SACA,qCClcW,SAAS6mB,EAAMx8B,GAC1B,IAAKA,EACD,OAAOA,EAIX,IAAIw0B,EASJ,GAVc,CAACwkC,OAAQ0T,OAAQv7B,SAIzB39B,SAAQxyB,IACNgf,aAAgBhf,IAChBwzC,EAASxzC,EAAKgf,GAClB,SAGiB,IAAVw0B,EACP,GAA6C,mBAAzCv1B,OAAOq1D,UAAUrnD,SAASunD,KAAKx0D,GAC/Bw0B,EAAS,GACTx0B,EAAKwT,SAAQ,CAACmuC,EAAO/zC,KACjB4mB,EAAO5mB,GAAS4uB,EAAMmlB,EAAM,SAE7B,GAAmB,iBAAR3hD,EAEd,GAAIA,EAAK2sE,UAAqC,mBAAlB3sE,EAAK4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zC2B,EAAiC,IAAI3B,IAAI,cACzC4B,EAAiC,IAAI5B,IAAI,cACzC6B,EAAiC,IAAI7B,IAAI,cACzC8B,EAAiC,IAAI9B,IAAI,cACzC+B,EAAiC,IAAI/B,IAAI,cACzCgC,EAA0B,IAA4B,KAC1DA,EAAwBplG,EAAE,KAC1BolG,EAAwBplG,EAAE,KAC1B,IAAIqlG,EAAqC,IAAgClC,GACrEmC,EAAqC,IAAgCjC,GACrEkC,EAAqC,IAAgCjC,GACrEkC,EAAqC,IAAgCjC,GACrEkC,EAAqC,IAAgCjC,GACrEkC,EAAqC,IAAgCjC,GACrEkC,EAAqC,IAAgCjC,GACrEkC,EAAqC,IAAgCjC,GACrEkC,EAAqC,IAAgCjC,GACrEkC,EAAqC,IAAgCjC,GACrEkC,GAAsC,IAAgCjC,GACtEkC,GAAsC,IAAgCjC,GACtEkC,GAAsC,IAAgCjC,GACtEkC,GAAsC,IAAgCjC,GACtEkC,GAAsC,IAAgCjC,GACtEkC,GAAsC,IAAgCjC,GACtEkC,GAAsC,IAAgCjC,GACtEkC,GAAsC,IAAgCjC,GACtEkC,GAAsC,IAAgCjC,GACtEkC,GAAsC,IAAgCjC,GACtEkC,GAAsC,IAAgCjC,GACtEkC,GAAsC,IAAgCjC,GACtEkC,GAAsC,IAAgCjC,GACtEkC,GAAsC,IAAgCjC,GACtEkC,GAAsC,IAAgCjC,GACtEkC,GAAsC,IAAgCjC,GACtEkC,GAAsC,IAAgCjC,GACtEkC,GAAsC,IAAgCjC,GACtEkC,GAAsC,IAAgCjC,GACtEkC,GAAsC,IAAgCjC,GACtEkC,GAAsC,IAAgCjC,GACtEkC,GAAsC,IAAgCjC,GAE1EC,EAAwBh1H,KAAK,CAACi3H,EAAOx6H,GAAI,oq76CCzEZ,MAAM,GAA6B,CAGzD,EAED,MACE,g28sWCPF","sources":["webpack:///./actions/flowDescriptionActions.ts","webpack:///./actions/flowDesignerActions.ts","webpack:///./actions/flowExportXandrDriverFieldActions.ts","webpack:///./actions/nasActions.ts","webpack:///./actions/reassignedItemsToActions.ts","webpack:///./actions/treeBehaviorActions.js","webpack:///./actions/userNotificationActions.ts","webpack:///./actions/xandrRateCategoryActions.ts","webpack:///./styles/style.styl?4fba","webpack:///./components/notify/Snackbar.tsx","webpack:///./components/notify/Notification.tsx","webpack:///./components/notify/NotifyTimer.tsx","webpack:///./components/notify/NotifyList.tsx","webpack:///./apps/app_layout.js","webpack:///./components/FeatureGate.js","webpack:///./components/GlobalAjaxLoadingIndicator.js","webpack:///./components/InfoTooltip.tsx","webpack:///./components/Loading.tsx","webpack:///./components/TabGate.js","webpack:///./components/admin/field-rates/DistributionCountsDisplay.tsx","webpack:///./components/admin/field-rates/FieldRateDisplay.tsx","webpack:///./components/crosstab/CrosstabDimensionField.js","webpack:///./components/export-layout/ClientFieldItem.js","webpack:///./components/export-layout/LayoutListEntry.js","webpack:///./components/export-layout/LayoutListFolder.js","webpack:///./components/export-layout/FolderLayoutList.js","webpack:///./components/export-layout/LayoutContextMenu.js","webpack:///./components/export-layout/LayoutFolderContextMenu.js","webpack:///./components/export-layout/LayoutTreeFolder.js","webpack:///./components/export-layout/SVFieldListEntry.js","webpack:///./components/export-layout/SVFieldList.js","webpack:///./components/export-layout/SVFieldTree.js","webpack:///./components/export-layout/VariableLayoutListEntry.js","webpack:///./components/export-layout/VariableLayoutList.js","webpack:///./components/export-layout/VariableLayoutTree.js","webpack:///./components/flows/FlowIcon.tsx","webpack:///./components/flows/item/FlowExportItems/ActivationDestinationSchedules.tsx","webpack:///./components/flows/item/FlowExportItems/ExportDestinationSquare.tsx","webpack:///./components/flows/item/FlowExportItems/FlowExportDistributionPlatforms.tsx","webpack:///./components/flows/item/Shared/FlowItemMaxQtyToggle.tsx","webpack:///./components/flows/item/FlowExportItems/FlowExportTemplateFields.js","webpack:///./components/flows/item/FlowExportItems/FlowExportPinterestTemplateFields.js","webpack:///./components/flows/item/FlowExportItems/FlowExportTikTokTemplateFields.js","webpack:///./components/flows/item/FlowExportItems/FlowExportTradeDeskTemplateFields.js","webpack:///./components/flows/item/FlowExportItems/FlowExportPubmaticTemplateFields.js","webpack:///./components/flows/item/FlowExportItems/FlowExportSplitToggle.tsx","webpack:///./components/flows/item/FlowExportItems/FlowExportSplit.tsx","webpack:///./components/flows/item/FlowExportItems/FlowExportSeperateFilesToggle.tsx","webpack:///./actions/freewheelActions.ts","webpack:///./components/flows/item/FlowExportItems/FlowExportFreewheelDriverFileForm.tsx","webpack:///./components/flows/item/FlowExportItems/XandrDriverFields.tsx","webpack:///./components/flows/item/FlowOfferItems/CustomDedupeToggle.tsx","webpack:///./components/flows/item/FlowExportItems/FlowExportOfferEdit.js","webpack:///./components/flows/item/FlowExportItems/FlowExportReportsTable.tsx","webpack:///./components/flows/item/FlowExportItems/FlowExportVariableEdit.js","webpack:///./components/flows/item/FlowExportItems/FlowItemDeployToggle.tsx","webpack:///./components/flows/item/FlowExportItems/FlowTaxonomyFieldEdit.tsx","webpack:///./components/flows/item/FlowExportItems/PubmaticDeliveryTypes.tsx","webpack:///./components/flows/item/FlowExportItems/RestrictedFieldsTable.tsx","webpack:///./components/flows/item/FlowExportItems/TradedeskDeliveryTypes.tsx","webpack:///./components/misc/FileBrowser.js","webpack:///./components/flows/item/FlowOfferItems/OfferCodeImport.js","webpack:///./components/flows/item/FlowOfferItems/OfferDedupeToggle.js","webpack:///./components/flows/item/FlowOfferItems/OfferTemplateButton.js","webpack:///./components/flows/item/FlowSVDedupeEdit.tsx","webpack:///./components/flows/item/Shared/FlowItemQAToggle.tsx","webpack:///./components/flows/item/Shared/FlowItemSnowflakeTables.tsx","webpack:///./components/flows/item/Shared/FlowItemToggle.tsx","webpack:///./components/flows/item/Shared/SingleViewFieldPicker.tsx","webpack:///./components/loading/BouncingDots.tsx","webpack:///./components/material-components/Misc/Button.js","webpack:///./components/material-components/Misc/HtmlTooltip.tsx","webpack:///./components/material-components/Misc/IconSwitch.js","webpack:///./components/material-components/Misc/NumericalTextField.tsx","webpack:///./components/material-components/Misc/RadioButton.tsx","webpack:///./components/material-components/Table/TableBody.js","webpack:///./styles/dashComponentStyles/Table/TableFooterStyle.js","webpack:///./components/material-components/Table/TableFooter.js","webpack:///./styles/dashComponentStyles/Table/TableHeaderStyle.js","webpack:///./components/material-components/Table/TableHeader.js","webpack:///./components/misc/DirectionPicker.tsx","webpack:///./components/misc/SortByFieldsPicker.tsx","webpack:///./components/misc/withUpdateStripes.tsx","webpack:///./components/modals/GenericConfirmModal.tsx","webpack:///./components/modals/MaterialModal.tsx","webpack:///./components/modals/withModal.tsx","webpack:///./components/userNotifications/NotificationBell.tsx","webpack:///./components/nav/FileUploadIcon.tsx","webpack:///./components/nav/AeLocalNavRight.js","webpack:///./components/loading/LinearLoadingBar.tsx","webpack:///./components/nav/AeLocalNav.js","webpack:///./components/nav/CompanySelect.js","webpack:///./components/nav/CompanySelectSide.tsx","webpack:///./components/nav/LeftNavigation.js","webpack:///./components/nav/LocalNavHardLink.tsx","webpack:///./components/nav/LocalNavMenu.js","webpack:///./components/nav/LocalNavSoftLink.tsx","webpack:///./components/nav/LoginLogout.js","webpack:///./components/nav/SaasHeader.tsx","webpack:///./components/schedule/misc/ScheduleBreadCrumbs.tsx","webpack:///./components/schedule/misc/Header.tsx","webpack:///./actions/automation.ts","webpack:///./components/schedule/schedules/timing/TimingSelector.tsx","webpack:///./components/schedule/cron/LoadJQueryCron.tsx","webpack:///./components/schedule/cron/CronStringEditor.tsx","webpack:///./components/schedule/cron/ScheduleCronStringEditor.tsx","webpack:///./components/schedule/schedules/timing/shared/TimeSelector.tsx","webpack:///./components/schedule/schedules/timing/OneTime.tsx","webpack:///./components/schedule/schedules/timing/EndAfterNOccurances.tsx","webpack:///./components/schedule/schedules/timing/EndDate.tsx","webpack:///./components/schedule/schedules/timing/TableRefresh.tsx","webpack:///./components/schedule/schedules/timing/TimeFrequency.tsx","webpack:///./components/schedule/schedules/ScheduleAddEdit.tsx","webpack:///./components/shared/MaterialTableTextField.tsx","webpack:///./components/tree-exportobject/ObjectListEntry.js","webpack:///./components/tree-exportobject/ObjectList.js","webpack:///./components/tree-exportobject/FlowLayoutObjectTree.js","webpack:///./components/tree-field/FieldContextMenu.tsx","webpack:///./components/tree-field/FieldEditContextMenu.tsx","webpack:///./components/tree-field/FieldIcon.tsx","webpack:///./components/tree-field/FieldListEntry.tsx","webpack:///./components/tree-field/FieldFolderRename.js","webpack:///./components/tree-field/FieldFolderDragDrop.tsx","webpack:///./components/tree-field/FieldListFolder.tsx","webpack:///./components/tree-field/FieldList.tsx","webpack:///./components/tree-field/FieldListEntryText.tsx","webpack:///./components/tree-field/FieldPicker.tsx","webpack:///./components/tree-field/FieldTree.tsx","webpack:///./components/tree-field/FieldTooltipContents.tsx","webpack:///./components/tree-field/makeTooltipForField.tsx","webpack:///./components/tree-flow/FlowListEntry.js","webpack:///./components/tree-flow/FlowListFolder.js","webpack:///./components/tree-flow/FlowList.js","webpack:///./components/tree-flow/FlowListEntryText.js","webpack:///./components/tree-flow/FlowFolderContextMenu.js","webpack:///./components/tree-flow/FlowTreeContextMenu.js","webpack:///./components/tree-flow/FlowTree.tsx","webpack:///./components/tree-general/FolderContextMenu.js","webpack:///./components/tree-general/FolderDragDrop.js","webpack:///./components/tree-general/FolderRename.tsx","webpack:///./components/tree-general/FolderLabel.js","webpack:///./components/tree-general/ThingListFolder.tsx","webpack:///./components/tree/TextWithHighlightedSearchTerms.js","webpack:///./components/tree/TreeItem.js","webpack:///./components/tree/TreeSearch.js","webpack:///./components/tree/TreeView.tsx","webpack:///./components/tree/TreesWithSearch.tsx","webpack:///./enums/FieldClassifications.ts","webpack:///./enums/company.ts","webpack:///./helpers/badWords.js","webpack:///./helpers/clone.js","webpack:///./helpers/connectMenu.js","webpack:///./helpers/crosstabHelper.js","webpack:///./helpers/dragDropWithScrollContext.js","webpack:///./helpers/emailValidation.js","webpack:///./helpers/field.js","webpack:///./helpers/fieldIsThirdParty.js","webpack:///./helpers/fileNameTemplates.ts","webpack:///./helpers/flowItems.ts","webpack:///./helpers/flowMultiSelect.js","webpack:///./helpers/flowSaveObject.ts","webpack:///./helpers/folder.js","webpack:///./helpers/getFieldIdsFromRules.js","webpack:///./helpers/highlightForSearch.js","webpack:///./helpers/httpInterceptor.js","webpack:///./helpers/memoize.js","webpack:///./helpers/mergeDeep.js","webpack:///./helpers/needsApproval.ts","webpack:///./helpers/ofilter.js","webpack:///./helpers/pluralize.js","webpack:///./helpers/selectHelper.js","webpack:///./helpers/siteCustomization.ts","webpack:///./helpers/tryParseJSON.js","webpack:///./helpers/typedFetch.ts","webpack:///./helpers/wrapButtonWithConfirmModal.js","webpack:///./hocs/withFieldDropTarget.js","webpack:///./hocs/withGenericFieldDropTarget.js","webpack:///./reducers/_folderGeneral.js","webpack:///./reducers/_genericDbReducer.js","webpack:///./reducers/_genericFlowSubItemReducer.js","webpack:///./reducers/adminCompanies.ts","webpack:///./reducers/appSettings.ts","webpack:///./reducers/automation.ts","webpack:///./reducers/aws.ts","webpack:///./reducers/clientVariables.ts","webpack:///./reducers/companies.ts","webpack:///./reducers/dashboardWidgets.ts","webpack:///./reducers/destinationGroupingParents.ts","webpack:///./reducers/exportlayoutobjects.js","webpack:///./reducers/exportlayouts.js","webpack:///./reducers/fields.js","webpack:///./reducers/fieldsByCompany.ts","webpack:///./reducers/fileImportQueue.ts","webpack:///./reducers/flowClientVariables.js","webpack:///./reducers/flowDesigner.ts","webpack:///./reducers/flowEmpties.js","webpack:///./reducers/flowExportDistributionPlatforms.js","webpack:///./reducers/flowExportObjects.js","webpack:///./reducers/flowExportPinterestTemplateFields.js","webpack:///./reducers/flowExportPubmaticTemplateFields.js","webpack:///./reducers/flowExportReports.js","webpack:///./reducers/flowExportTemplateFields.js","webpack:///./reducers/flowExportTikTokTemplateFields.js","webpack:///./reducers/flowExportTradeDeskTemplateFields.js","webpack:///./reducers/flowExportXandrDriverFields.ts","webpack:///./reducers/flowExternalServiceInputs.ts","webpack:///./reducers/flowExternalServiceParameters.ts","webpack:///./reducers/flowFilters.js","webpack:///./reducers/flowFromClouds.js","webpack:///./reducers/flowGuideSettings.js","webpack:///./reducers/flowItemClientVariables.js","webpack:///./reducers/flowItemOfferCodes.js","webpack:///./reducers/flowMerges.js","webpack:///./reducers/flowMultiExports.ts","webpack:///./reducers/flowOfferMerges.js","webpack:///./reducers/flowRelationParentLabels.js","webpack:///./reducers/flowSVDedupes.js","webpack:///./reducers/flowScripts.js","webpack:///./reducers/flowScriptsDBUI.js","webpack:///./reducers/flowSegmentSplitOffers.js","webpack:///./reducers/flowSegmentSplits.js","webpack:///./reducers/flowToClouds.js","webpack:///./reducers/flows.js","webpack:///./reducers/freewheel.ts","webpack:///./reducers/loadingStates.ts","webpack:///./reducers/logMessage.ts","webpack:///./reducers/nas.ts","webpack:///./reducers/notifications.ts","webpack:///./reducers/reassignedItemsTo.ts","webpack:///./reducers/session.ts","webpack:///./reducers/taxonomyLayout.ts","webpack:///./reducers/userCompanies.js","webpack:///./reducers/users.js","webpack:///./reducers/vars.ts","webpack:///./reducers/selected.js","webpack:///./reducers/filters.js","webpack:///./reducers/layoutfields.js","webpack:///./reducers/reportFields.js","webpack:///./reducers/folders.js","webpack:///./reducers/modals.js","webpack:///./reducers/varsPersist.ts","webpack:///./reducers/schedules.js","webpack:///./reducers/crosstab.js","webpack:///./reducers/sources.js","webpack:///./reducers/accessList.js","webpack:///./reducers/flowCloud.js","webpack:///./reducers/flowDeploymentQueue.js","webpack:///./reducers/flowCountLog.js","webpack:///./reducers/flowVars.js","webpack:///./reducers/sites.js","webpack:///./reducers/companySeats.ts","webpack:///./reducers/dataLoadItems.js","webpack:///./reducers/userNotifications.js","webpack:///./reducers/flowItemEdit.js","webpack:///./reducers/imageControl.ts","webpack:///./reducers/flowMultiSelection.js","webpack:///./reducers/fileImport.js","webpack:///./reducers/layoutsDesigner.js","webpack:///./reducers/joinEdit.js","webpack:///./reducers/treeBehaviors.js","webpack:///./reducers/companyEdit.ts","webpack:///./reducers/flowScriptKeywords.js","webpack:///./reducers/dataConnect.js","webpack:///./reducers/snowflakeInstanceData.ts","webpack:///./reducers/xandrRateCategories.ts","webpack:///./helpers/gaTrackers.js","webpack:///./actions/epics/searchEpics.ts","webpack:///./actions/epics/index.ts","webpack:///./batching/state.js","webpack:///./batching/debounceUpdateBatcher.js","webpack:///./batching/middleware.js","webpack:///./batching/enhancer.js","webpack:///./store.js","webpack:///./reducers/index.ts","webpack:///./styles/dashComponentStyles/Table/TableBodyStyle.js","webpack:///./types/actions/fileImportQueue.ts","webpack:///./types/actions/snowflakeInstance.ts","webpack:///./types/stores/companyTable.ts","webpack:///./types/stores/fieldsByCompany.ts","webpack:///./types/stores/fileImportQueue.ts","webpack:///./types/stores/xandrRateCategory.ts","webpack:///./types/types.js","webpack:///./styles/style.styl","webpack:///../node_modules/moment/locale/ sync ^\\.\\/(en)$","webpack:///ignored|C:\\jenkins\\workspace\\GitHub_ae-oap_release_2025-03-26\\OmniActivation\\node_modules\\readable-stream\\lib|util"],"sourcesContent":["import { Dispatch } from \"redux\";\r\nimport { FlowDescription } from \"../types/stores/flowTypes\";\r\nimport { addThing } from \"./flowActions\";\r\n\r\nexport const newFlowDescription =\r\n (flowItemId: number) =>\r\n (dispatch: Dispatch): void => {\r\n const thing: FlowDescription = {\r\n FlowDescriptionId: 0,\r\n FlowItemId: flowItemId,\r\n Description: \"\",\r\n };\r\n\r\n dispatch(addThing(\"flowDescriptions\", thing));\r\n };\r\n","import { Dispatch } from \"redux\";\r\nimport { FlowProcessingTypes } from \"../helpers/constants\";\r\nimport {\r\n ISetToggleFlowListing,\r\n ISetFlowClosed,\r\n ISetPreviousFlowFolder,\r\n ISetToggleListingPinnable,\r\n ISetFlowProcessType,\r\n} from \"../types/stores/flowDesigner\";\r\nimport {\r\n TOGGLE_FLOW_LISTING,\r\n TOGGLE_FLOW_LISTING_PINNABLE,\r\n SET_FLOW_PROCESS_TYPE,\r\n SET_FLOW_CLOSED,\r\n SET_PREVIOUS_FLOW_FOLDER,\r\n} from \"../reducers/flowDesigner\";\r\n\r\nexport const ToggleFlowListing = (currentValue: boolean): ISetToggleFlowListing => ({\r\n type: TOGGLE_FLOW_LISTING,\r\n isOpen: !currentValue,\r\n});\r\n\r\nexport const ToggleFlowListingPinnable = (currentValue: boolean): ISetToggleListingPinnable => ({\r\n type: TOGGLE_FLOW_LISTING_PINNABLE,\r\n isPinned: !currentValue,\r\n});\r\n\r\nexport const SetFlowProcessingType =\r\n (processTypeString: string) =>\r\n (dispatch: Dispatch): void => {\r\n const processType = FlowProcessingTypes[processTypeString] ? FlowProcessingTypes[processTypeString] : 1;\r\n\r\n dispatch({\r\n type: SET_FLOW_PROCESS_TYPE,\r\n processType,\r\n });\r\n };\r\n\r\nexport const SetPreviouslyClosedFlow = (hasClosed: boolean): ISetFlowClosed => ({\r\n type: SET_FLOW_CLOSED,\r\n hasClosed,\r\n});\r\n\r\nexport const SetPreviouslySelectedFolder = (folderId: number): ISetPreviousFlowFolder => ({\r\n type: SET_PREVIOUS_FLOW_FOLDER,\r\n folderId,\r\n});\r\n","import { addThing, _deleteThing, getDefaultDate } from \"./flowActions\";\r\n\r\nimport { Dispatch, GetState } from \"../types/types\";\r\nimport { FlowExportXandrDriverFields } from \"../types/stores/flowExportXandrDriverFields\";\r\nimport { FlowItem, FlowPrefixAndEntityType } from \"../types/stores/flowTypes\";\r\nimport { getFlowExportXandrDriverFieldsByFlowItemId } from \"../reducers/flowExportXandrDriverFields\";\r\n\r\nexport const newFlowExportXandrDriverFields =\r\n (flowItemId: number, parentId: number, billingCategoryId?: number) =>\r\n (dispatch: Dispatch, getState: GetState): void => {\r\n const state = getState();\r\n const parent: FlowItem = state.flowItems.byId[parentId];\r\n\r\n // searching for any previously selected billing category id\r\n if (!billingCategoryId) {\r\n const existingFields = getFlowExportXandrDriverFieldsByFlowItemId(state)[flowItemId];\r\n billingCategoryId = existingFields && existingFields.length > 0 ? existingFields[0].BillingCategoryId : 0;\r\n }\r\n\r\n const thing: FlowExportXandrDriverFields = {\r\n XandrDriverFieldId: 0,\r\n FlowItemId: flowItemId,\r\n ParentFlowItemId: parentId,\r\n AudienceName: parent?.FlowItemName || \"\",\r\n Description: \"\",\r\n ExpansionType: \"HOUSEHOLD\",\r\n TTL: 90,\r\n ExpirationDate: getDefaultDate(),\r\n BillingCategoryId: billingCategoryId,\r\n DataSegementTypeId: \"Audience\",\r\n };\r\n dispatch(addThing(\"flowExportXandrDriverFields\", thing));\r\n };\r\n\r\nexport const deleteFlowExportXandrDriverFields =\r\n (id: number) =>\r\n (dispatch: Dispatch): void => {\r\n dispatch(_deleteThing(\"flowExportXandrDriverFields\", id));\r\n };\r\n\r\nexport const xandrDriverFieldsPrefixAndEntity: FlowPrefixAndEntityType = {\r\n actionPrefix: \"FLOW_EXPORT_XANDR_DRIVER_FIELDS\",\r\n stateKey: \"flowExportXandrDriverFields\",\r\n id: \"XandrDriverFieldId\",\r\n flowItemType: \"FlowExportXandrDriverFields\",\r\n deleteAc: deleteFlowExportXandrDriverFields,\r\n};\r\n","import { request } from \"../helpers/httpInterceptor\";\r\nimport h from \"../helpers\";\r\nimport { toJson } from \"../helpers/typedHelpers\";\r\nimport {\r\n SET_NAS_FILES_LIST_LOADING,\r\n SET_NAS_FILES_LIST,\r\n ADD_NAS_FILES_DOWNLOAD_QUEUE,\r\n REMOVE_NAS_FILES_DOWNLOAD_QUEUE,\r\n SET_NAS_FILES_LIST_ERROR,\r\n RESET_NAS,\r\n SET_NAS_FILES_INFO,\r\n} from \"../reducers/nas\";\r\nimport { Dispatch, GetState } from \"../types/types\";\r\nimport { IFileInfo } from \"../types/actions/fileInfo\";\r\nimport {\r\n IAddNasFilesDownloadQueue,\r\n IRemoveNasFilesDownloadQueue,\r\n ISetNasFilesInfo,\r\n ISetNasFilesList,\r\n} from \"../types/actions/nas\";\r\n\r\nexport const searchNasFiles =\r\n (nasServerId: number, nasFilePath: string) =>\r\n (dispatch: Dispatch): void => {\r\n dispatch({ type: SET_NAS_FILES_LIST_LOADING, isLoading: true });\r\n dispatch({ type: SET_NAS_FILES_LIST_ERROR, error: null });\r\n dispatch({ type: SET_NAS_FILES_LIST, files: [] });\r\n\r\n fetch(`/api/nasServer/GetFilesFromDeploymentDestinationServer?id=${nasServerId}&path=${nasFilePath}`, {\r\n method: \"GET\",\r\n credentials: \"same-origin\",\r\n headers: {\r\n \"Content-Type\": \"application/json; charset=utf-8\",\r\n },\r\n })\r\n .then(h.checkStatus)\r\n .then(h.toJson)\r\n .then(data => {\r\n const response = data as unknown as { files: Array; errorMessage: string };\r\n dispatch({ type: SET_NAS_FILES_LIST, files: response.files || [] });\r\n\r\n if (response.errorMessage) {\r\n dispatch({ type: SET_NAS_FILES_LIST_ERROR, error: response.errorMessage });\r\n }\r\n })\r\n .catch(error => {\r\n dispatch({ type: SET_NAS_FILES_LIST_ERROR, error: `Error getting file names. Details: ${error}` });\r\n })\r\n .finally(() => {\r\n dispatch({ type: SET_NAS_FILES_LIST_LOADING, isLoading: false });\r\n });\r\n };\r\n\r\nexport const GetNasFileInfo =\r\n (nasServerId: number, nasFilePath: string) =>\r\n (dispatch: Dispatch, getState: GetState): void => {\r\n dispatch(AddNasFilesDownloadQueue(nasFilePath));\r\n\r\n return request(\r\n `/api/nasServer/getFileInfo?nasServerId=${nasServerId}&path=${nasFilePath}`,\r\n {\r\n method: \"GET\",\r\n credentials: \"same-origin\",\r\n headers: {\r\n \"Content-Type\": \"application/json; charset=utf-8\",\r\n },\r\n },\r\n dispatch\r\n )\r\n .then(h.checkStatus)\r\n .then(toJson)\r\n .then(data => {\r\n if (!data.errorMessage) {\r\n const state = getState();\r\n const downloadQueue: Array = state.nas.downloadQueue;\r\n\r\n if (downloadQueue.some(x => x == nasFilePath)) {\r\n // If not the file was removed by the user (like request abort)\r\n dispatch(\r\n addFileInfo({\r\n fileName: nasFilePath,\r\n filePreview: data.preview,\r\n fileQuantity: data.quantity,\r\n } as IFileInfo)\r\n );\r\n }\r\n } else {\r\n dispatch({ type: SET_NAS_FILES_LIST_ERROR, error: data.errorMessage });\r\n }\r\n })\r\n .finally(() => {\r\n dispatch(RemoveNasFilesDownloadQueue(nasFilePath));\r\n });\r\n };\r\n\r\nexport const ResetNasData =\r\n () =>\r\n (dispatch: Dispatch): void => {\r\n dispatch({ type: RESET_NAS });\r\n };\r\n\r\nexport const AddNasFilesDownloadQueue = (file: string): IAddNasFilesDownloadQueue => ({\r\n type: ADD_NAS_FILES_DOWNLOAD_QUEUE,\r\n file,\r\n});\r\n\r\nexport const RemoveNasFilesDownloadQueue = (file: string): IRemoveNasFilesDownloadQueue => ({\r\n type: REMOVE_NAS_FILES_DOWNLOAD_QUEUE,\r\n file,\r\n});\r\n\r\nexport const SetNasFilesList = (files: Array): ISetNasFilesList => ({\r\n type: SET_NAS_FILES_LIST,\r\n files,\r\n});\r\n\r\nexport const SetNasFilesInfo = (filesInfo: Array): ISetNasFilesInfo => ({\r\n type: SET_NAS_FILES_INFO,\r\n filesInfo,\r\n});\r\n\r\nexport const addFileInfo =\r\n (newFileInfo: IFileInfo) =>\r\n (dispatch: Dispatch, getState: GetState): void => {\r\n const state = getState();\r\n const filesInfo: Array = state.nas.filesInfo;\r\n\r\n let newFilesInfo = [...filesInfo];\r\n let currentFileInfo = newFilesInfo.find(x => x.fileName == newFileInfo.fileName);\r\n\r\n if (currentFileInfo) {\r\n currentFileInfo.filePreview = newFileInfo.filePreview;\r\n currentFileInfo.fileQuantity = newFileInfo.fileQuantity;\r\n } else {\r\n newFilesInfo.push(newFileInfo);\r\n }\r\n\r\n dispatch(SetNasFilesInfo(newFilesInfo));\r\n };\r\n","import { SET_REASSIGNED_ITEMS_TO } from \"../reducers/reassignedItemsTo\";\r\nimport { Dispatch } from \"../types/types\";\r\n\r\nexport const SetReassignItemsToUser =\r\n (selectedUserId: number) =>\r\n (dispatch: Dispatch): void => {\r\n dispatch({ type: SET_REASSIGNED_ITEMS_TO, selectedUser: selectedUserId });\r\n };\r\n","const TOGGLE_FLOW_TREE_LOADING = \"TOGGLE_FLOW_TREE_LOADING\";\r\nconst TOGGLE_LAYOUT_TREE_LOADING = \"TOGGLE_LAYOUT_TREE_LOADING\";\r\nconst SET_FLOW_LOADING_EXCLUDE = \"SET_FLOW_LOADING_EXCLUDE\";\r\n\r\nexport const ToggleIsFlowTreeLoading = newValue => ({\r\n type: TOGGLE_FLOW_TREE_LOADING,\r\n isLoading: newValue,\r\n});\r\n\r\nexport const SetIsFlowLoadingExcludes = newValue => ({\r\n type: SET_FLOW_LOADING_EXCLUDE,\r\n isFlowTreeLoadingExclude: newValue,\r\n});\r\n\r\nexport const ToggleIsLayoutTreeLoading = newValue => ({\r\n type: TOGGLE_LAYOUT_TREE_LOADING,\r\n isLoading: newValue,\r\n});\r\n","import { request } from \"../helpers/httpInterceptor\";\r\nimport h from \"../helpers\";\r\nimport { toJson } from \"../helpers/typedHelpers\";\r\nimport Moment from \"moment\";\r\nimport { Dispatch } from \"redux\";\r\n\r\nexport const UPDATE_USER_NOTIFICATIONS_COUNT = \"UPDATE_USER_NOTIFICATIONS_COUNT\";\r\nexport const CLEAR_USER_NOTIFICATIONS_COUNT = \"CLEAR_USER_NOTIFICATIONS_COUNT\";\r\nexport const GET_NOTIFICATIONS = \"GET_NOTIFICATIONS\";\r\n\r\nconst defaultDate = Moment().subtract(1, \"days\").startOf(\"day\").utc().format();\r\n\r\nexport const getNotifications =\r\n (date = defaultDate) =>\r\n (dispatch: Dispatch): Promise => {\r\n dispatch({ type: GET_NOTIFICATIONS, loading: true, userNotifications: [] });\r\n return fetch(`/api/notifications`, {\r\n method: \"POST\",\r\n credentials: \"same-origin\",\r\n headers: {\r\n \"Content-Type\": \"application/json; charset=utf-8\",\r\n },\r\n body: JSON.stringify({\r\n Date: date,\r\n }),\r\n })\r\n .then(h.checkStatus)\r\n .then(h.toJson)\r\n .then(data => {\r\n const response = data as unknown as { success: boolean; notifications: Array };\r\n if (response.success) {\r\n dispatch({\r\n type: GET_NOTIFICATIONS,\r\n userNotifications: response.notifications,\r\n loading: false,\r\n });\r\n }\r\n })\r\n .catch(error => {\r\n h.error(\"Error fetching your notifications.\", error);\r\n });\r\n };\r\n\r\nexport const GetNotificationsCount =\r\n () =>\r\n (dispatch: Dispatch): void =>\r\n request(\r\n `/api/notifications/count`,\r\n {\r\n method: \"GET\",\r\n credentials: \"same-origin\",\r\n },\r\n dispatch\r\n )\r\n .then(h.checkStatus)\r\n .then(toJson)\r\n .then(data => {\r\n if (data.success) {\r\n dispatch({ type: UPDATE_USER_NOTIFICATIONS_COUNT, count: data.count });\r\n }\r\n })\r\n .catch(error => {\r\n throw new Error(error);\r\n });\r\n\r\nexport const ClearUnreadNotifications =\r\n () =>\r\n (dispatch: Dispatch): void =>\r\n request(\r\n `/api/notifications/read`,\r\n {\r\n method: \"POST\",\r\n credentials: \"same-origin\",\r\n },\r\n dispatch\r\n )\r\n .then(h.checkStatus)\r\n .then(toJson)\r\n .then(data => {\r\n if (data.success) {\r\n dispatch({ type: CLEAR_USER_NOTIFICATIONS_COUNT });\r\n }\r\n })\r\n .catch(error => {\r\n throw new Error(error);\r\n });\r\n","import { fetchT } from \"../helpers/typedFetch\";\r\nimport {\r\n SetXandrRateCategoriesAction,\r\n SetXandrRateCategoriesLoadingAction,\r\n SET_XANDR_RATE_CATEGORIES,\r\n SET_XANDR_RATE_CATEGORIES_LOADING,\r\n XandrRateCategory,\r\n} from \"../types/stores/xandrRateCategory\";\r\nimport { Dispatch } from \"../types/types\";\r\nimport h from \"../helpers\";\r\n\r\nexport const setXandrRateCategoriesLoading = (isLoading: boolean): SetXandrRateCategoriesLoadingAction => ({\r\n type: SET_XANDR_RATE_CATEGORIES_LOADING,\r\n isLoading,\r\n});\r\n\r\nexport const setXandrRateCategories = (categories: Array): SetXandrRateCategoriesAction => ({\r\n type: SET_XANDR_RATE_CATEGORIES,\r\n categories,\r\n});\r\n\r\nexport const requestXandrRateCategories =\r\n () =>\r\n (dispatch: Dispatch): void => {\r\n dispatch(setXandrRateCategoriesLoading(true));\r\n fetchT>(\"/api/XandrIntegration/GetXandrRateCategories\", \"GET\")\r\n .then(categories => {\r\n dispatch(setXandrRateCategories(categories));\r\n dispatch(setXandrRateCategoriesLoading(false));\r\n })\r\n .catch(error => {\r\n dispatch(setXandrRateCategoriesLoading(false));\r\n h.error(\"Error loading Xandr Rate Categories.\", error);\r\n });\r\n };\r\n","\n import API from \"!../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../node_modules/css-loader/dist/cjs.js!../../node_modules/stylus-loader/dist/cjs.js!./style.styl\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../node_modules/css-loader/dist/cjs.js!../../node_modules/stylus-loader/dist/cjs.js!./style.styl\";\n export default content && content.locals ? content.locals : undefined;\n","import React from \"react\";\r\nimport clsx from \"clsx\";\r\nimport Snackbar from \"@material-ui/core/Snackbar\";\r\nimport SnackbarContent from \"@material-ui/core/SnackbarContent\";\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { ClassNameMap } from \"@material-ui/core/styles/withStyles\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport { DismissNotification } from \"../../types/stores/notifications\";\r\n\r\nconst variantIcon = {\r\n success: \"check_circle\",\r\n warning: \"warning\",\r\n error: \"error\",\r\n info: \"info\",\r\n};\r\n\r\nconst userStyles = makeStyles(theme => ({\r\n success: {\r\n backgroundColor: \"#43a047\",\r\n },\r\n error: {\r\n backgroundColor: \"#d32f2f\",\r\n },\r\n info: {\r\n backgroundColor: \"#1976d2\",\r\n },\r\n warning: {\r\n backgroundColor: \"#ffa000\",\r\n },\r\n icon: {\r\n fontSize: 20,\r\n },\r\n iconVariant: {\r\n opacity: 0.9,\r\n marginRight: theme.spacing(1),\r\n },\r\n message: {\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n },\r\n}));\r\n\r\ntype Props = {\r\n className?: string;\r\n onClose: () => DismissNotification;\r\n message: JSX.Element;\r\n variant: \"error\" | \"info\" | \"success\" | \"warning\";\r\n};\r\n\r\ntype Classes = ClassNameMap<\"success\" | \"icon\" | \"error\" | \"info\" | \"warning\" | \"iconVariant\" | \"message\">;\r\n\r\nfunction MySnackbarContentWrapper(props: Props) {\r\n const classes: Classes = userStyles();\r\n const { className, message, variant, onClose, ...other } = props;\r\n const icon = variantIcon[variant];\r\n\r\n return (\r\n \r\n {icon}\r\n {message}\r\n \r\n }\r\n action={[\r\n \r\n close\r\n ,\r\n ]}\r\n {...other}\r\n />\r\n );\r\n}\r\n\r\nconst VariantSnackbar: React.FC = ({ className, onClose, message, variant }: Props) => (\r\n \r\n \r\n \r\n);\r\n\r\nexport default VariantSnackbar;\r\n","import React from \"react\";\r\nimport { Notification as NotificationType, DismissNotification } from \"../../types/stores/notifications\";\r\nimport Snackbar from \"./Snackbar\";\r\n\r\ntype Props = {\r\n notification: NotificationType;\r\n onDismiss: () => DismissNotification;\r\n};\r\n\r\nconst Notification: React.FC = ({ notification, onDismiss }: Props) => {\r\n let message: JSX.Element;\r\n if (typeof notification.text == \"string\") {\r\n message =
;\r\n } else {\r\n message = notification.text as JSX.Element;\r\n }\r\n\r\n return ;\r\n};\r\nexport default Notification;\r\n","import React from \"react\";\r\nimport Notification from \"./Notification\";\r\nimport { Notification as NotificationType, DismissNotification } from \"../../types/stores/notifications\";\r\n\r\ntype Props = {\r\n notification: NotificationType;\r\n onDismiss: () => DismissNotification;\r\n timeout: number;\r\n};\r\n\r\nconst NotifyTimer: React.FC = ({ notification, onDismiss }: Props) => (\r\n onDismiss()} />\r\n);\r\n\r\nexport default NotifyTimer;\r\n","import React from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport NotifyTimer from \"./NotifyTimer\";\r\nimport { dismissNotifyMessage } from \"../../actions/notifyActions\";\r\nimport { IAppState } from \"../../types/stores\";\r\n\r\nconst style: React.CSSProperties = {\r\n position: \"fixed\",\r\n zIndex: 10000,\r\n padding: \"6px 12px 6px 12px\",\r\n top: 0,\r\n right: 0,\r\n};\r\n\r\nconst NotifyList: React.FC = () => {\r\n const dispatch = useDispatch();\r\n\r\n const notificationsFromState = useSelector((state: IAppState) => state.notifications || []);\r\n const notifications = notificationsFromState.filter(x => !x.dismissed);\r\n\r\n return (\r\n
\r\n
\r\n {notifications == null\r\n ? null\r\n : notifications.map(x => (\r\n dispatch(dismissNotifyMessage(x.id))}\r\n />\r\n ))}\r\n
\r\n );\r\n};\r\n\r\nexport default NotifyList;\r\n","import React from \"react\";\r\nimport { render } from \"react-dom\";\r\n\r\nimport { Provider } from \"react-redux\";\r\nimport store from \"../store\";\r\n\r\n// Expose store to the outside world\r\n// Our jQuery code can just call window.store.dispatch({ type: 'ACTION_TYPE', whatever: data, goes: here })\r\nwindow.store = store;\r\n\r\n// Remove the old store, we don't need to keep this around\r\nif (localStorage && localStorage.removeItem) {\r\n localStorage.removeItem(\"redux-1\");\r\n}\r\n\r\n/* eslint-disable no-unused-vars */\r\n// Need to run the actionCreators to set up our top.RDX, which exposes the action creators to the outside word\r\nimport * as actionCreators from \"../actions/actionCreators\";\r\nimport * as audienceFolderActions from \"../actions/audienceFolderActions\";\r\nimport * as sessionActions from \"../actions/sessionActions\";\r\nimport * as flowActions from \"../actions/flowActions\";\r\nimport * as notifyActions from \"../actions/notifyActions\";\r\n\r\n// Styles / CSS / Stylus\r\nimport css from \"../styles/style.styl\";\r\n\r\nimport \"scrolling-element\"; // polyfill for document.scrollingElement, needed in IE by react-dnd-scrollzone w/ customizations\r\n/* eslint-enable no-unused-vars */\r\n\r\nimport _ from \"lodash\";\r\ntop._ = _;\r\n/* We should eventually remove setting lodash on top.\r\nIt's used here: Layouts\\Access.cshtml\r\nAE\\AE.js\r\n - universeValueToHtml, used in the audience insights page\r\nAE\\AE.Push.js\r\nPossibly more. AI needs to be written in react, then we can kill jstree and some of these.\r\n*/\r\n\r\n////// ALL PAGES /////////////\r\n\r\n//import AllModals from '../components/modals/AllModals';\r\nimport Loadable from \"react-loadable\";\r\n// import ReactGA from \"react-ga\";\r\n// ReactGA.initialize('UA-239306450-2');\r\n// ReactGA.pageview(window.location.pathname + window.location.search);\r\nconst BlankLoader = () => ;\r\nconst AllModals = Loadable({\r\n loader: () => import(\"../components/modals/AllModals\"),\r\n loading: BlankLoader,\r\n});\r\nimport GlobalAjaxLoadingIndicator from \"../components/GlobalAjaxLoadingIndicator\";\r\n\r\nimport dragDropWithScrollContext from \"../helpers/dragDropWithScrollContext\";\r\nconst AllModalsC = dragDropWithScrollContext(AllModals);\r\n\r\nif (document.getElementById(\"react_layout_modals\")) {\r\n const modals = (\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n );\r\n render(modals, document.getElementById(\"react_layout_modals\"));\r\n}\r\n\r\nimport NotifyList from \"../components/notify/NotifyList\";\r\nif (document.getElementById(\"react_notify\")) {\r\n const nl = (\r\n \r\n \r\n \r\n );\r\n render(nl, document.getElementById(\"react_notify\"));\r\n}\r\n\r\nimport AeLocalNav from \"../components/nav/AeLocalNav\";\r\nif (document.getElementById(\"ae_local_nav\")) {\r\n const localNav = (\r\n \r\n \r\n \r\n );\r\n render(localNav, document.getElementById(\"ae_local_nav\"));\r\n}\r\n\r\nimport SaasHeader from \"../components/nav/SaasHeader\";\r\nif (document.getElementById(\"ae_saasheader_nav\")) {\r\n const localNav = (\r\n \r\n \r\n \r\n );\r\n render(localNav, document.getElementById(\"ae_saasheader_nav\"));\r\n}\r\n\r\nimport LeftNavigation from \"../components/nav/LeftNavigation\";\r\nif (document.getElementById(\"ae_left_nav\")) {\r\n const noLeftNavPages = [\"/account/login\", \"/account/resetpassword\", \"/account/forgotpassword\"];\r\n const pathname = window.location.pathname;\r\n\r\n if (!noLeftNavPages.some(path => pathname && pathname.toLowerCase().includes(path))) {\r\n const leftNav = (\r\n \r\n \r\n \r\n );\r\n render(leftNav, document.getElementById(\"ae_left_nav\"));\r\n }\r\n}\r\n\r\nwindow.requestIdleCallback =\r\n window.requestIdleCallback ||\r\n function (cb) {\r\n const start = Date.now();\r\n return setTimeout(() => {\r\n cb({\r\n didTimeout: false,\r\n timeRemaining() {\r\n return Math.max(0, 50 - (Date.now() - start));\r\n },\r\n });\r\n }, 1);\r\n };\r\n\r\nwindow.cancelIdleCallback =\r\n window.cancelIdleCallback ||\r\n function (id) {\r\n clearTimeout(id);\r\n };\r\n\r\n/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas, David Knight. MIT license */\r\nwindow.matchMedia ||\r\n (window.matchMedia = (function () {\r\n \"use strict\";\r\n\r\n // For browsers that support matchMedium api such as IE 9 and webkit\r\n let styleMedia = window.styleMedia || window.media;\r\n\r\n // For those that don't support matchMedium\r\n if (!styleMedia) {\r\n let style = document.createElement(\"style\"),\r\n script = document.getElementsByTagName(\"script\")[0],\r\n info = null;\r\n\r\n style.type = \"text/css\";\r\n style.id = \"matchmediajs-test\";\r\n\r\n if (!script) {\r\n document.head.appendChild(style);\r\n } else {\r\n script.parentNode.insertBefore(style, script);\r\n }\r\n\r\n // 'style.currentStyle' is used by IE <= 8 and 'window.getComputedStyle' for all other browsers\r\n info = (\"getComputedStyle\" in window && window.getComputedStyle(style, null)) || style.currentStyle;\r\n\r\n styleMedia = {\r\n matchMedium(media) {\r\n const text = \"@media \" + media + \"{ #matchmediajs-test { width: 1px; } }\";\r\n\r\n // 'style.styleSheet' is used by IE <= 8 and 'style.textContent' for all other browsers\r\n if (style.styleSheet) {\r\n style.styleSheet.cssText = text;\r\n } else {\r\n style.textContent = text;\r\n }\r\n\r\n // Test if media query is true or false\r\n return info.width === \"1px\";\r\n },\r\n };\r\n }\r\n\r\n return function (media) {\r\n return {\r\n matches: styleMedia.matchMedium(media || \"all\"),\r\n media: media || \"all\",\r\n };\r\n };\r\n })());\r\n","import * as React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport type { MapStateToProps } from \"react-redux\";\r\n\r\ntype Props = {\r\n children: React.Node,\r\n renderIfFail: React.Node,\r\n feature: string | Array,\r\n featureArrayMode: string, // \"AND\" or \"OR\" - describes how an array of features should work\r\n enabledFeatures: Array,\r\n featureMode: string, // \"INCLUDES\" or \"NOT\" - describes if a feature string is or is not allowed on\r\n};\r\nclass FeatureGate extends React.Component {\r\n static defaultProps = {\r\n featureArrayMode: \"OR\",\r\n featureMode: \"INCLUDES\",\r\n };\r\n\r\n isPassFeatureCheck = () => {\r\n const { feature, enabledFeatures, featureArrayMode, featureMode } = this.props;\r\n if (!feature) {\r\n return true;\r\n }\r\n if (typeof feature == \"string\") {\r\n if (featureMode.toLowerCase() == \"not\") {\r\n return !enabledFeatures.includes(feature.toLowerCase());\r\n }\r\n return enabledFeatures.includes(feature.toLowerCase());\r\n }\r\n if (Array.isArray(feature)) {\r\n const passedFeatures = feature.filter(x => enabledFeatures.includes(x.toLowerCase()));\r\n if (featureArrayMode.toLowerCase() == \"and\") {\r\n return passedFeatures.length == feature.length; // \"AND\"\r\n }\r\n return passedFeatures.length > 0; // \"OR\"\r\n }\r\n /* eslint-disable no-console */\r\n console.warn(\"isPassFeatureCheck: Unknown style of feature passed, should be string or array\", feature);\r\n /* eslint-enable no-console */\r\n };\r\n\r\n render() {\r\n const { children, renderIfFail } = this.props;\r\n const failCase = renderIfFail != null ? renderIfFail : null;\r\n return this.isPassFeatureCheck() ? children : failCase;\r\n }\r\n}\r\n\r\nconst mapStateToProps: MapStateToProps<*, *, *> = state => ({\r\n enabledFeatures: state.session.enabledFeatures || [],\r\n});\r\nconst mapDispatchToProps = null;\r\nconst FeatureGateC = connect(mapStateToProps, mapDispatchToProps)(FeatureGate);\r\n\r\nexport default FeatureGateC;\r\n","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\n\r\nimport { connect } from \"react-redux\";\r\n\r\nclass GlobalAjaxLoadingIndicator extends React.Component {\r\n static propTypes = {\r\n // Redux\r\n ajaxOutstandingRequestCount: PropTypes.number,\r\n };\r\n\r\n state = {\r\n showing: false,\r\n };\r\n\r\n componentDidUpdate(prevProps /*, prevState */) {\r\n const thisProps = this.props;\r\n\r\n // Outstanding requests went to 0, aka, turned off.\r\n if (prevProps[\"ajaxOutstandingRequestCount\"] && !thisProps[\"ajaxOutstandingRequestCount\"]) {\r\n if (typeof this.showTimer !== \"undefined\") {\r\n clearTimeout(this.showTimer);\r\n }\r\n this.setState({ showing: false });\r\n }\r\n\r\n // Outstanding requests went to 1 or above, aka, turned on.\r\n if (!prevProps[\"ajaxOutstandingRequestCount\"] && thisProps[\"ajaxOutstandingRequestCount\"]) {\r\n if (typeof this.showTimer !== \"undefined\") {\r\n clearTimeout(this.showTimer);\r\n }\r\n\r\n this.showTimer = setTimeout(() => {\r\n this.setState({ showing: true });\r\n }, 650);\r\n }\r\n\r\n // All of the above makes it so requests faster than 650ms don't show an animation.\r\n }\r\n\r\n render() {\r\n if (!this.state.showing) {\r\n return null;\r\n }\r\n return (\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nconst mapStateToProps = state => ({\r\n ajaxOutstandingRequestCount: state.vars.ajaxOutstandingRequestCount,\r\n});\r\nconst mapDispatchToProps = null;\r\nconst GlobalAjaxLoadingIndicatorC = connect(mapStateToProps, mapDispatchToProps)(GlobalAjaxLoadingIndicator);\r\n\r\nexport default GlobalAjaxLoadingIndicatorC;\r\n","import React from \"react\";\r\nimport { Icon, Tooltip } from \"@material-ui/core\";\r\n\r\ntype Props = {\r\n placement?:\r\n | \"bottom-end\"\r\n | \"bottom-start\"\r\n | \"bottom\"\r\n | \"left-end\"\r\n | \"left-start\"\r\n | \"left\"\r\n | \"right-end\"\r\n | \"right-start\"\r\n | \"right\"\r\n | \"top-end\"\r\n | \"top-start\"\r\n | \"top\";\r\n id: string;\r\n children: boolean | React.ReactChild | React.ReactFragment | React.ReactPortal;\r\n style?: { [attribute: string]: string };\r\n};\r\n\r\n// Adds circle with i and specified tooltip\r\nconst InfoTooltip: React.FC = ({\r\n placement = \"right\",\r\n id = \"tooltip\",\r\n style = { marginLeft: \"5px\" },\r\n children,\r\n}: Props) => (\r\n \r\n info\r\n \r\n);\r\n\r\nexport default InfoTooltip;\r\n","import React from \"react\";\r\nimport BouncingDots from \"./loading/BouncingDots\";\r\n// This is a static Loading component - it will always\r\n// show the loading pulse animation.\r\n\r\ninterface Props {\r\n message?: string;\r\n height?: string;\r\n marginTop?: string;\r\n spaceAround?: boolean;\r\n}\r\n\r\nexport const Loading: React.FC = ({ height, message, marginTop, spaceAround }: Props) => {\r\n const style = {\r\n justifyContent: spaceAround ? \"space-around\" : \"undefined\",\r\n maxHeight: height ? height : \"150px\",\r\n marginTop: marginTop ? marginTop : \"auto\",\r\n };\r\n\r\n return (\r\n
\r\n \r\n {message &&
{message}
}\r\n
\r\n );\r\n};\r\nexport default Loading;\r\n","import * as React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport PropTypes from \"prop-types\";\r\n\r\nclass TabGate extends React.Component {\r\n static propTypes = {\r\n // Passed In\r\n children: PropTypes.node,\r\n renderIfFail: PropTypes.Node,\r\n enabledFeatures: PropTypes.array,\r\n tabType: PropTypes.number,\r\n showTabs: PropTypes.bool,\r\n };\r\n\r\n // static defaultProps = {\r\n // tabType: 0,\r\n // showTabs: false,\r\n // };\r\n\r\n isPassFeatureCheck = () => {\r\n const { enabledFeatures, tabType = 0, showTabs = false } = this.props;\r\n const passedFeatures = enabledFeatures.includes(\"display-field-rates\");\r\n const treeTabsMode = enabledFeatures.includes(\"field-tree-tabs\");\r\n\r\n return passedFeatures || (treeTabsMode && showTabs && (tabType == 1 || tabType == 2));\r\n };\r\n\r\n render() {\r\n const { children, renderIfFail } = this.props;\r\n const failCase = renderIfFail != null ? renderIfFail : null;\r\n return this.isPassFeatureCheck() ? children : failCase;\r\n }\r\n}\r\n\r\nconst mapStateToProps = state => ({\r\n enabledFeatures: state.session.enabledFeatures || [],\r\n});\r\nconst mapDispatchToProps = null;\r\nconst TabGateC = connect(mapStateToProps, mapDispatchToProps)(TabGate);\r\n\r\nexport default TabGateC;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { IAppState } from \"../../../types/stores\";\r\nimport { IField } from \"../../../types/stores/fieldTypes\";\r\n\r\ntype Props = { field: IField };\r\n\r\nconst DistributionCountsDisplay: React.FC = ({ field }: Props) => {\r\n const [currentDistributionCount, setCurrentDistributionCount] = useState(0);\r\n const fieldDistributionCountsById = useSelector(\r\n (state: IAppState) => state.fieldsByCompany.fieldDistributionCounts\r\n );\r\n const DCtext = \"Experian Household Count\";\r\n const DCFprmat = new Intl.NumberFormat(\"en-US\", {\r\n notation: \"compact\",\r\n minimumFractionDigits: 2,\r\n maximumFractionDigits: 2,\r\n });\r\n useEffect(() => {\r\n let dc = fieldDistributionCountsById[field.fieldkey];\r\n if (dc && dc.Fieldcount != 0) {\r\n setCurrentDistributionCount(dc.Fieldcount);\r\n }\r\n }, [field, fieldDistributionCountsById]);\r\n\r\n return <> {currentDistributionCount != 0 ? DCFprmat.format(currentDistributionCount) + \" \" + DCtext : null};\r\n};\r\n\r\nexport default DistributionCountsDisplay;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { IAppState } from \"../../../types/stores\";\r\nimport { IField } from \"../../../types/stores/fieldTypes\";\r\n\r\ntype Props = { field: IField };\r\n\r\nconst FieldRateDisplay: React.FC = ({ field }: Props) => {\r\n const [currentFieldRateCPM, setCurrentFieldRateCPM] = useState(0);\r\n const fieldRatesById = useSelector((state: IAppState) => state.fieldsByCompany.fieldRates);\r\n const taxmanFieldRatesById = useSelector((state: IAppState) => state.fieldsByCompany.taxmanFieldRates);\r\n const USDollar = new Intl.NumberFormat(\"en-US\", {\r\n style: \"currency\",\r\n currency: \"USD\",\r\n });\r\n useEffect(() => {\r\n let fieldRate = fieldRatesById[field.UmbrellaFieldId || 0];\r\n let taxmanFieldRate = taxmanFieldRatesById[field.id || 0];\r\n //let fieldRate = fieldRatesById[field.fieldkey];\r\n if (fieldRate && fieldRate.CPM != 0) {\r\n setCurrentFieldRateCPM(fieldRate.CPM);\r\n } else if (taxmanFieldRate && taxmanFieldRate.CPM != 0) {\r\n setCurrentFieldRateCPM(taxmanFieldRate.CPM);\r\n }\r\n }, [field, fieldRatesById, taxmanFieldRatesById]);\r\n\r\n return <> {currentFieldRateCPM != 0 ? \"@\" + USDollar.format(currentFieldRateCPM) : null};\r\n};\r\n\r\nexport default FieldRateDisplay;\r\n","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\n\r\nimport { connect } from \"react-redux\";\r\nimport { bindActionCreators } from \"redux\";\r\nimport * as fieldTreeActions from \"../../actions/fieldTreeActions\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\n\r\nimport FieldListEntryText from \"../tree-field/FieldListEntryText\";\r\nimport makeTooltipForField from \"../tree-field/makeTooltipForField\";\r\n\r\nclass CrosstabDimensionField extends React.Component {\r\n static propTypes = {\r\n // Passed In\r\n fieldKey: PropTypes.number,\r\n isMeasure: PropTypes.bool,\r\n operator: PropTypes.string /* Not sure */,\r\n hideRemoveLink: PropTypes.bool,\r\n isValueField: PropTypes.bool,\r\n fieldIdChanged: PropTypes.func,\r\n onRemoveField: PropTypes.func,\r\n // Redux\r\n fields: PropTypes.any,\r\n enabledFeatures: PropTypes.array,\r\n // Injected by Redux (action creator)\r\n crosstabRemoveMeasureField: PropTypes.func.isRequired,\r\n removeFieldInCrosstab: PropTypes.func.isRequired,\r\n disabled: PropTypes.bool,\r\n };\r\n\r\n render() {\r\n const { fieldKey, isMeasure, operator, isValueField, onRemoveField, fields, hideRemoveLink, disabled } =\r\n this.props;\r\n if (!fieldKey || !fields) {\r\n return null;\r\n }\r\n\r\n const tt = makeTooltipForField(fields[fieldKey], \"\") || \"\";\r\n\r\n let spanClass = \"field-label field-label-default\";\r\n if (isMeasure) {\r\n spanClass = \"field-label field-label-measure\";\r\n }\r\n\r\n let removeFunction;\r\n if (typeof onRemoveField == \"function\") {\r\n removeFunction = () => onRemoveField(fieldKey);\r\n } else if (isValueField) {\r\n removeFunction = () => this.props.fieldIdChanged(0);\r\n } else if (isMeasure) {\r\n removeFunction = () => this.props.crosstabRemoveMeasureField(fieldKey, operator);\r\n } else {\r\n removeFunction = () => this.props.removeFieldInCrosstab(fieldKey);\r\n }\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n {!hideRemoveLink && (\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\nconst mapStateToProps = state => ({\r\n fields: state.fields.byId,\r\n enabledFeatures: state.session.enabledFeatures || [],\r\n});\r\nconst mapDispatchToProps = dispatch => bindActionCreators(fieldTreeActions, dispatch);\r\nconst CrosstabDimensionFieldC = connect(mapStateToProps, mapDispatchToProps)(CrosstabDimensionField);\r\n\r\nexport default CrosstabDimensionFieldC;\r\n","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\nimport { connect } from \"react-redux\";\r\nimport { bindActionCreators } from \"redux\";\r\nimport * as actionCreators from \"../../actions/exportLayoutActions2\";\r\nimport TreeItem from \"../tree/TreeItem\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\n\r\nimport { DragSource } from \"react-dnd\";\r\nimport { DragDropTypes } from \"../../helpers/constants\";\r\n\r\nimport { ContextMenuTrigger } from \"react-contextmenu\";\r\n\r\nclass ClientFieldItem extends React.Component {\r\n constructor() {\r\n super();\r\n this.handleClick = this.handleClick.bind(this);\r\n this.handleDoubleClick = this.handleDoubleClick.bind(this);\r\n }\r\n\r\n handleClick() {}\r\n\r\n handleDoubleClick() {\r\n this.props.AddClientFieldToLayoutObjects(this.props.selectedLayout);\r\n }\r\n\r\n componentDidMount() {\r\n $(this.divNode).bstooltip();\r\n }\r\n\r\n componentWillUnmount() {\r\n $(this.divNode).bstooltip(\"destroy\");\r\n }\r\n\r\n render() {\r\n const { connectDragSource, clientField } = this.props;\r\n\r\n if (clientField != null) {\r\n return connectDragSource(\r\n (this.divNode = node)}\r\n >\r\n \r\n
\r\n props}\r\n fieldKey={clientField.FieldUniqueKey}\r\n holdToDisplay={-1}\r\n >\r\n \r\n {/* {clientField[0].FieldName} */}\r\n {\"Primary Id\"}\r\n \r\n \r\n
\r\n
\r\n
\r\n );\r\n } else {\r\n return
;\r\n }\r\n }\r\n}\r\n\r\n// Prop Types /\r\nconst propTypes = {\r\n // Provided from outside\r\n AddClientFieldToLayoutObjects: PropTypes.func,\r\n clientField: PropTypes.object,\r\n selectedLayout: PropTypes.number,\r\n connectDragSource: PropTypes.func.isRequired,\r\n};\r\nClientFieldItem.propTypes = propTypes;\r\n\r\n// Drag and Drop here\r\nfunction collect(connect, monitor) {\r\n // React-dnd will inject these props into our component\r\n return {\r\n connectDragSource: connect.dragSource(),\r\n isDragging: monitor.isDragging(),\r\n };\r\n}\r\n\r\nconst fieldSource = {\r\n canDrag() {\r\n return true;\r\n },\r\n beginDrag(props) {\r\n return { variableId: props.variableId };\r\n },\r\n};\r\nconst ClientFieldItemDND = DragSource(DragDropTypes.CLIENTFIELD, fieldSource, collect)(ClientFieldItem);\r\n\r\n// Redux //\r\n//import { getTreeSearch } from '../../reducers/search';\r\nconst mapStateToProps = state => ({\r\n //treeSearch: getTreeSearch(state),\r\n clientField: state.layoutObjects.clientFieldObject,\r\n userId: state.session.userId,\r\n selectedLayout: state.selected.layout,\r\n});\r\nconst mapDispatchToProps = dispatch => bindActionCreators(actionCreators, dispatch);\r\n\r\n// export { GlobalVariableListEntry };\r\nconst ClientFieldItemDNDC = connect(mapStateToProps, mapDispatchToProps)(ClientFieldItemDND);\r\n\r\nexport default ClientFieldItemDNDC;\r\n","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\nimport { connect, MapStateToProps } from \"react-redux\";\r\nimport { bindActionCreators } from \"redux\";\r\nimport { createSelector } from \"reselect\";\r\nimport { ContextMenuTrigger } from \"react-contextmenu\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport { DragSource } from \"react-dnd\";\r\n\r\nimport * as actionCreators from \"../../actions/exportLayoutActions2\";\r\nimport TreeItem from \"../tree/TreeItem\";\r\nimport TextWithHighlightedSearchTerms from \"../tree/TextWithHighlightedSearchTerms\";\r\nimport { DragDropTypes } from \"../../helpers/constants\";\r\nimport { parseDateFromJson } from \"../../helpers/parseDate\";\r\n\r\nclass LayoutListEntry extends React.Component {\r\n constructor() {\r\n super();\r\n this.handleClick = this.handleClick.bind(this);\r\n this.handleDoubleClick = this.handleDoubleClick.bind(this);\r\n }\r\n\r\n handleClick() {\r\n const { layoutId, setSelectedLayout2 } = this.props;\r\n setSelectedLayout2(parseInt(layoutId));\r\n }\r\n\r\n handleDoubleClick() {}\r\n\r\n componentDidMount() {\r\n $(this.divNode).bstooltip();\r\n }\r\n\r\n componentWillUnmount() {\r\n $(this.divNode).bstooltip(\"destroy\");\r\n }\r\n\r\n render() {\r\n const { layout, layoutId, selectedLayout, connectDragSource, isDragging, tooltipText } = this.props;\r\n if (!layout || layout.LayoutID == null) {\r\n return null;\r\n }\r\n const active = selectedLayout == layoutId;\r\n const displayText = layout.LayoutName;\r\n let entry = null;\r\n let toolTipText = tooltipText;\r\n let isActiveDestinationLayout = null;\r\n if (layout.IsActiveDestinationLayout) {\r\n isActiveDestinationLayout = (\r\n \r\n star\r\n \r\n );\r\n toolTipText = \"The current active destination layout.\";\r\n }\r\n const errorIcon = layout.IsValid ? null : ;\r\n const color = layout.IsValid ? null : \"red\";\r\n entry = (\r\n (this.divNode = node)}\r\n >\r\n \r\n
\r\n props}\r\n layoutId={layoutId}\r\n holdToDisplay={-1}\r\n >\r\n \r\n {errorIcon}\r\n {isActiveDestinationLayout} {\" \"}\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n );\r\n\r\n if (connectDragSource) {\r\n return connectDragSource(entry);\r\n }\r\n return entry;\r\n }\r\n}\r\n\r\nLayoutListEntry.propTypes = {\r\n // Provided from outside\r\n layoutId: PropTypes.any,\r\n layout: PropTypes.object,\r\n selectedLayout: PropTypes.any,\r\n setSelectedLayout: PropTypes.func,\r\n setSelectedLayout2: PropTypes.func,\r\n requestSelectedLayoutObjects: PropTypes.func,\r\n isDragging: PropTypes.bool,\r\n connectDragSource: PropTypes.func,\r\n tooltipText: PropTypes.string,\r\n};\r\n\r\nfunction collect(connect, monitor) {\r\n // React-dnd will inject these props into our component\r\n return {\r\n connectDragSource: connect.dragSource(),\r\n isDragging: monitor.isDragging(),\r\n };\r\n}\r\nconst layoutSource = {\r\n canDrag(props) {\r\n if (props.layout == null) {\r\n return false;\r\n }\r\n return true;\r\n },\r\n beginDrag(props) {\r\n // Return data describing the dragged item\r\n if (props.layout == null) {\r\n return {};\r\n }\r\n return props.layout;\r\n },\r\n};\r\nconst LayoutListEntryWithDND = DragSource(DragDropTypes.LAYOUT, layoutSource, collect)(LayoutListEntry);\r\n\r\nconst makeGetTooltip = () =>\r\n createSelector(\r\n (state, ownProps) => state.layouts[ownProps.layoutId],\r\n state => state.varsPersist.userNameForId,\r\n state => state.session.userSettings[\"time-zone-iana\"],\r\n (layout, userNameForId, timeZoneIana) => getTooltip(layout, userNameForId, timeZoneIana)\r\n );\r\n\r\nfunction getTooltip(layout, userNameForId, timeZoneIana) {\r\n if (!layout) {\r\n return \"\";\r\n }\r\n\r\n const { LayoutDateCreated, LayoutUpdated } = layout;\r\n let toolTipText = \"\";\r\n try {\r\n if (LayoutUpdated != null) {\r\n toolTipText = `Last Saved on ${parseDateFromJson(LayoutUpdated, timeZoneIana)}`;\r\n } else if (LayoutDateCreated != null) {\r\n toolTipText = `Created on ${parseDateFromJson(LayoutDateCreated, timeZoneIana)}`;\r\n }\r\n\r\n const userName =\r\n userNameForId[layout.LayoutUpdatedBy != null ? layout.LayoutUpdatedBy : layout.LayoutCreatedBy];\r\n if (userName) {\r\n toolTipText += ` by ${userName}.`;\r\n }\r\n if (!layout.IsValid) {\r\n toolTipText += ` Has invalid objects.`;\r\n }\r\n } catch (err) {\r\n console.log(\"Error adding layout tooltip: \" + err.message); // eslint-disable-line no-console\r\n }\r\n\r\n return toolTipText;\r\n}\r\n\r\n// Redux //\r\nconst mapStateToProps: MapStateToProps<*, *, *> = () => {\r\n const getTooltip = makeGetTooltip();\r\n\r\n return (state, ownProps) => ({\r\n layout: state.layouts[ownProps.layoutId],\r\n layoutId: ownProps.layoutId,\r\n userId: state.session.userId,\r\n tooltipText: getTooltip(state, ownProps),\r\n selectedLayout: state.selected.layout,\r\n });\r\n};\r\n\r\nconst mapDispatchToProps = dispatch => bindActionCreators(actionCreators, dispatch);\r\n\r\nconst LayoutListEntryConnected = connect(mapStateToProps, mapDispatchToProps)(LayoutListEntryWithDND);\r\n\r\nexport default LayoutListEntryConnected;\r\n","import React from \"react\";\r\nimport ThingListFolder from \"../tree-general/ThingListFolder\";\r\n\r\nimport { connect } from \"react-redux\";\r\nimport { createSelector } from \"reselect\";\r\n\r\nimport { getTreeSearch } from \"../../reducers/search\";\r\nimport { layoutFolderIdContainsSearch } from \"../../reducers/exportlayouts\";\r\nimport { folderReducerKeyForType } from \"../../helpers/folder\";\r\nimport { allowedToDeleteFolder } from \"../../reducers/_folderGeneral\";\r\n\r\nimport type { Folder } from \"../../types/types\";\r\n\r\ntype Props = {\r\n // Flow\r\n folderType: string,\r\n folder: Folder, // The current folder to draw\r\n treeViewOnUpdate: () => void, // Used for odd/even row coloring\r\n showAllDuringSearch?: boolean, // Used for folder search, searched folders are told to show all contents, even if they don't match\r\n // Redux\r\n folderContainsSearch: boolean, // Do any children of this folder match the current treeSearch?\r\n};\r\n\r\nconst LayoutListFolder = (props: Props) => (\r\n \r\n);\r\n\r\nconst makeGetFolderContainsSearch = () =>\r\n createSelector(\r\n state => state.layouts,\r\n (state, props) => {\r\n const folderReducerKey = folderReducerKeyForType(props.folderType);\r\n return state.folders[folderReducerKey];\r\n },\r\n (state, props) => props.folder.id,\r\n state => getTreeSearch(state),\r\n (layoutState, folders, folderId, treeSearch) => {\r\n if (treeSearch == null || treeSearch == \"\") {\r\n return false;\r\n }\r\n return layoutFolderIdContainsSearch(layoutState, folders, folderId, treeSearch);\r\n }\r\n );\r\n\r\nconst makeGetRenamingAndHasNoChildren = () =>\r\n createSelector(\r\n state => state.layouts,\r\n (state, props) => state.folders[folderReducerKeyForType(props.folderType)],\r\n (state, props) => props.folder.id,\r\n state => state.vars.renamingAudienceFolderId,\r\n state => state.session.userId,\r\n (\r\n layouts: Object,\r\n allFolders: Array,\r\n folderId: number,\r\n renamingAudienceFolderId: number,\r\n userId: number\r\n ): boolean => {\r\n // Don't bother computing if not renaming - optimization to avoid recursive search on lots of updates\r\n if (renamingAudienceFolderId != folderId) {\r\n return false;\r\n }\r\n return allowedToDeleteFolder({ layouts, audienceFolders: allFolders }, folderId, userId);\r\n }\r\n );\r\n\r\nimport type { MapStateToProps } from \"react-redux\";\r\nconst mapStateToProps: MapStateToProps<*, *, *> = () => {\r\n const getFolderContainsSearch = makeGetFolderContainsSearch();\r\n const getRenamingAndHasNoChildren = makeGetRenamingAndHasNoChildren();\r\n return (state, ownProps) => ({\r\n folderContainsSearch: getFolderContainsSearch(state, ownProps),\r\n renamingAndHasNoChildren: getRenamingAndHasNoChildren(state, ownProps),\r\n });\r\n};\r\nconst mapDispatchToProps = null;\r\nconst LayoutListFolderC = connect(mapStateToProps, mapDispatchToProps)(LayoutListFolder);\r\n\r\nexport default LayoutListFolderC;\r\n","import React from \"react\";\r\nimport LayoutListEntry from \"./LayoutListEntry\";\r\nimport TreeItem from \"../tree/TreeItem\";\r\nimport LayoutListFolder from \"./LayoutListFolder\";\r\n\r\nimport naturalCompare from \"natural-compare\";\r\nimport { connect } from \"react-redux\";\r\nimport { createDeepEqualSelector } from \"../../helpers/typedHelpers\";\r\nimport { layoutMatchesSearchString } from \"../../reducers/exportlayouts\";\r\nimport { getTreeSearch } from \"../../reducers/search\";\r\n\r\nimport type { Folder } from \"../../types/types\";\r\n\r\ntype Props = {\r\n // Passed In\r\n folderType: string,\r\n folder: Folder, // The current folder to draw\r\n treeViewOnUpdate: () => void, // Used for odd/even row coloring\r\n showAllDuringSearch?: boolean, // Used for folder search, searched folders are told to show all contents, even if they don't match\r\n // Redux\r\n myLayoutIDs: Array,\r\n enabledFeatures: Array,\r\n};\r\n\r\nclass FolderLayoutList extends React.Component {\r\n renderLayout = (layoutId: number) => ;\r\n\r\n renderFolderElements() {\r\n const { folder, folderType, treeViewOnUpdate } = this.props;\r\n const showAllDuringSearch = this.props.showAllDuringSearch || false;\r\n const filteredFolders = folder.children;\r\n\r\n return filteredFolders.map((node: Folder) => (\r\n \r\n ));\r\n }\r\n render() {\r\n const { myLayoutIDs } = this.props;\r\n const layoutElements = myLayoutIDs.map(this.renderLayout);\r\n const folderElements = this.renderFolderElements();\r\n\r\n let emptyElement = null;\r\n if (!folderElements.length && !layoutElements.length) {\r\n emptyElement = empty;\r\n }\r\n\r\n return (\r\n
\r\n {folderElements}\r\n {layoutElements}\r\n {emptyElement}\r\n
\r\n );\r\n }\r\n}\r\n\r\nconst makeGetMyLayoutIDs = () =>\r\n createDeepEqualSelector(\r\n state => state.layouts,\r\n state => getTreeSearch(state),\r\n (state, props) => props.showAllDuringSearch,\r\n (state, props) => props.folder.id,\r\n (layouts, treeSearch, showAllDuringSearch, folderId) => {\r\n const layoutIds = Object.keys(layouts);\r\n let myLayoutIDs = layoutIds.filter(layoutId => layouts[layoutId].LayoutFolderId == folderId);\r\n if (treeSearch && !showAllDuringSearch) {\r\n myLayoutIDs = myLayoutIDs.filter(layoutId => layoutMatchesSearchString(layouts[layoutId], treeSearch));\r\n }\r\n\r\n myLayoutIDs.sort((a, b) => {\r\n const nameA = layouts[a].LayoutName.toUpperCase();\r\n const nameB = layouts[b].LayoutName.toUpperCase();\r\n return naturalCompare(nameA, nameB);\r\n });\r\n\r\n return myLayoutIDs;\r\n }\r\n );\r\n\r\nimport type { MapStateToProps } from \"react-redux\";\r\nconst mapStateToProps: MapStateToProps<*, *, *> = () => {\r\n const getMyLayoutIDs = makeGetMyLayoutIDs();\r\n return (state, ownProps) => ({\r\n myLayoutIDs: getMyLayoutIDs(state, ownProps),\r\n enabledFeatures: state.session.enabledFeatures || [],\r\n });\r\n};\r\nconst mapDispatchToProps = null;\r\nconst FolderLayoutListC = connect(mapStateToProps, mapDispatchToProps)(FolderLayoutList);\r\n\r\nexport default FolderLayoutListC;\r\n","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\nimport { ContextMenu, MenuItem } from \"react-contextmenu\";\r\n\r\nimport { bindActionCreators } from \"redux\";\r\nimport { connect as reduxConnect } from \"react-redux\";\r\nimport * as actionCreators from \"../../actions/actionCreators\";\r\nimport * as layoutActions from \"../../actions/exportLayoutActions2\";\r\n\r\nimport h from \"../../helpers\";\r\nimport connectMenu from \"../../helpers/connectMenu\";\r\n\r\nclass LayoutContextMenu extends React.Component {\r\n constructor() {\r\n super();\r\n this.clickArchive = this.clickArchive.bind(this);\r\n this.clickDelete = this.clickDelete.bind(this);\r\n }\r\n\r\n render() {\r\n const identifier = \"layout-tree\";\r\n\r\n const data = this.props.item ? this.props.item.layoutId : {};\r\n\r\n const layout = this.props.layouts[data];\r\n //const seperatorStyle = { borderBottom: \"1px solid #ddd\", marginBottom: \"1px\", marginTop: \"1px\", marginRight: \"20px\", marginLeft: \"20px\" };\r\n return (\r\n \r\n \r\n {layout ? (layout.LayoutActive == \"N\" ? \"Restore\" : \"Archive\") : null}\r\n \r\n Delete\r\n \r\n );\r\n }\r\n\r\n clickDelete(e, data) {\r\n const layout = this.props.layouts[data.layoutId];\r\n if (!layout) {\r\n h.error(\"Unable to delete layout\");\r\n return;\r\n }\r\n\r\n this.props.showModal(\"LAYOUT_DELETE\", {\r\n layout,\r\n });\r\n }\r\n\r\n clickArchive(e, data) {\r\n const layout = this.props.layouts[data.layoutId];\r\n if (!layout) {\r\n h.error(\"Unable to archive layout\");\r\n return;\r\n }\r\n const layoutName = layout && layout.LayoutName ? layout.LayoutName : \"(unknown)\";\r\n\r\n this.props.showModal(\"ARCHIVE\", {\r\n archiveActionCreator: this.props.requestArchiveLayout,\r\n restoreActionCreator: this.props.recoverArchiveLayout,\r\n archiveId: data.layoutId,\r\n archiveName: layoutName,\r\n archiveType: \"layout\",\r\n isActive: layout.LayoutActive,\r\n isDestination: layout.DestinationLayout,\r\n folders: this.props.folders,\r\n });\r\n }\r\n}\r\n\r\nLayoutContextMenu.propTypes = {\r\n // Injected from react-contextmenu\r\n item: PropTypes.object,\r\n // Injected from Redux\r\n layouts: PropTypes.object,\r\n userId: PropTypes.number,\r\n folders: PropTypes.object,\r\n // Injected from Redux (ActionCreators)\r\n showModal: PropTypes.func.isRequired,\r\n requestArchiveLayout: PropTypes.func,\r\n recoverArchiveLayout: PropTypes.func,\r\n roles: PropTypes.array,\r\n};\r\n\r\nexport const ConnectedLayoutContextMenu1 = connectMenu(\"layout-tree\")(LayoutContextMenu);\r\n\r\n// redux\r\nconst mapStateToProps = state => ({\r\n layouts: state.layouts,\r\n userId: state.session.userId,\r\n roles: state.session.roles,\r\n folders: state.folders.layoutFolders,\r\n});\r\nconst mapDispatchToProps = dispatch => bindActionCreators(Object.assign({}, actionCreators, layoutActions), dispatch);\r\nconst ConnectedLayoutContextMenu2 = reduxConnect(mapStateToProps, mapDispatchToProps)(ConnectedLayoutContextMenu1);\r\n\r\nexport default ConnectedLayoutContextMenu2;\r\n","// See CampaignFolderContextMenu.js for note\r\nimport connectMenu from \"../../helpers/connectMenu\";\r\nimport FolderContextMenu from \"../tree-general/FolderContextMenu\";\r\n\r\nconst LayoutFolderContextMenu = connectMenu(\"layout-tree-folder\")(FolderContextMenu);\r\nexport default LayoutFolderContextMenu;\r\n","import React from \"react\";\r\n\r\nimport { connect } from \"react-redux\";\r\nimport { bindActionCreators } from \"redux\";\r\nimport * as exportLayoutActions2 from \"../../actions/exportLayoutActions2\";\r\nimport * as audienceFolderActions from \"../../actions/audienceFolderActions\";\r\n\r\nimport FolderLayoutList from \"./FolderLayoutList\";\r\nimport LayoutContextMenu from \"./LayoutContextMenu\";\r\nimport LayoutFolderContextMenu from \"./LayoutFolderContextMenu\";\r\nimport type { Folder } from \"../../types/types\";\r\nimport withUpdateStripes from \"../misc/withUpdateStripes\";\r\nimport { sortTopLevelFolders } from \"../../helpers/folder\";\r\n\r\ntype Props = {\r\n // Passed In\r\n folderType: string,\r\n // Redux\r\n layoutFolders: Array,\r\n userId: number,\r\n companyId: number,\r\n userNameForId: Object,\r\n // Injected by Redux (action creator)\r\n requestLoadFolders: string => void,\r\n // From withUpdateStripes HOC\r\n updateStripes: () => void,\r\n};\r\n\r\nclass LayoutTreeFolder extends React.Component {\r\n static defaultProps = {\r\n folderType: \"L\",\r\n };\r\n\r\n componentDidUpdate() {\r\n this.props.updateStripes();\r\n }\r\n\r\n componentDidMount() {\r\n const { folderType } = this.props;\r\n this.props.updateStripes();\r\n this.props.requestLoadFolders(folderType);\r\n }\r\n\r\n render() {\r\n const { folderType, layoutFolders, updateStripes, userNameForId, userId, companyId } = this.props;\r\n const folders = sortTopLevelFolders(layoutFolders, userNameForId);\r\n const topLevelFolder: Folder = {\r\n folderType,\r\n children: folders,\r\n name: \"\",\r\n id: 0,\r\n order: 1,\r\n userId,\r\n companyId,\r\n isCompanyShare: false,\r\n level: -1,\r\n isInternalShare: false,\r\n isHistorical: false,\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\nconst LayoutTreeFolderWithUpdateStripes = withUpdateStripes(LayoutTreeFolder);\r\n\r\nimport { makeFilterUsersWithNoLayoutFolders } from \"../../reducers/_folderGeneral\";\r\n\r\nconst mapStateToProps = () => {\r\n const filterUsersWithNoFolder = makeFilterUsersWithNoLayoutFolders();\r\n return (state, ownProps) => ({\r\n userId: state.session.userId,\r\n companyId: state.session.companyId,\r\n userNameForId: state.varsPersist.userNameForId,\r\n layoutFolders: filterUsersWithNoFolder(state, ownProps),\r\n });\r\n};\r\n\r\nconst mapDispatchToProps = dispatch =>\r\n bindActionCreators(Object.assign({}, exportLayoutActions2, audienceFolderActions), dispatch);\r\nconst LayoutTreeFolderC = connect(mapStateToProps, mapDispatchToProps)(LayoutTreeFolderWithUpdateStripes);\r\n\r\nLayoutTreeFolderC.defaultProps = {\r\n folderType: \"L\",\r\n};\r\n\r\nexport default LayoutTreeFolderC;\r\n","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\nimport { connect } from \"react-redux\";\r\nimport { bindActionCreators } from \"redux\";\r\nimport * as actionCreators from \"../../actions/exportLayoutActions2\";\r\n\r\nimport TreeItem from \"../tree/TreeItem\";\r\nimport TextWithHighlightedSearchTerms from \"../tree/TextWithHighlightedSearchTerms\";\r\n\r\nimport { DragSource } from \"react-dnd\";\r\nimport { DragDropTypes } from \"../../helpers/constants\";\r\n\r\nimport { ContextMenuTrigger } from \"react-contextmenu\";\r\n\r\ntype Props = {\r\n scope: boolean,\r\n};\r\n\r\nclass SVFieldListEntry extends React.Component {\r\n handleDoubleClick = () => {\r\n const { field, selectedLayout, scope } = this.props;\r\n this.props.AddSVFieldToLayoutObjects(field, selectedLayout, scope);\r\n };\r\n\r\n componentDidMount() {\r\n $(this.divNode).bstooltip();\r\n }\r\n\r\n componentWillUnmount() {\r\n $(this.divNode).bstooltip(\"destroy\");\r\n }\r\n\r\n render() {\r\n const { field, connectDragSource } = this.props;\r\n if (!field) {\r\n return null;\r\n }\r\n\r\n const displayText = field;\r\n return connectDragSource(\r\n (this.divNode = node)}\r\n >\r\n props} variableId={field} holdToDisplay={-1}>\r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\n// Prop Types /\r\nconst propTypes = {\r\n // Provided from outside\r\n field: PropTypes.any,\r\n setSelectedLayout: PropTypes.func,\r\n setSelectedLayout2: PropTypes.func,\r\n requestSelectedLayoutObjects: PropTypes.func,\r\n AddSVFieldToLayoutObjects: PropTypes.func,\r\n updateLayoutAndPositions: PropTypes.func,\r\n selectedLayout: PropTypes.any,\r\n connectDragSource: PropTypes.func.isRequired,\r\n enabledFeatures: PropTypes.array,\r\n};\r\nSVFieldListEntry.propTypes = propTypes;\r\n\r\n// Drag and Drop here\r\nfunction collect(connect, monitor) {\r\n // React-dnd will inject these props into our component\r\n return {\r\n connectDragSource: connect.dragSource(),\r\n isDragging: monitor.isDragging(),\r\n };\r\n}\r\n\r\nconst fieldSource = {\r\n canDrag(/* props */) {\r\n return true;\r\n },\r\n beginDrag(props) {\r\n return { field: props.field };\r\n },\r\n};\r\n\r\nconst SVFieldListEntryDND = DragSource(DragDropTypes.SVFIELD, fieldSource, collect)(SVFieldListEntry);\r\n\r\n// Redux //\r\nconst mapStateToProps = (state, ownProps) => ({\r\n field: ownProps.field,\r\n userId: state.session.userId,\r\n selectedLayout: state.selected.layout,\r\n enabledFeatures: state.session.enabledFeatures || [],\r\n});\r\nconst mapDispatchToProps = dispatch => bindActionCreators(actionCreators, dispatch);\r\n\r\nconst VariableLayoutListEntryDNDC = connect(mapStateToProps, mapDispatchToProps)(SVFieldListEntryDND);\r\n\r\nexport default VariableLayoutListEntryDNDC;\r\n","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\nimport { connect } from \"react-redux\";\r\nimport { bindActionCreators } from \"redux\";\r\nimport * as actionCreators from \"../../actions/actionCreators\";\r\nimport SVFieldListEntry from \"./SVFieldListEntry\";\r\nimport withUpdateStripes from \"../misc/withUpdateStripes\";\r\nimport { haystackMatchesSearchObject } from \"../../reducers/search\";\r\n\r\ntype Props = {\r\n scope: boolean,\r\n};\r\n\r\nclass SVFieldList extends React.Component {\r\n componentDidMount() {\r\n this.props.updateStripes();\r\n }\r\n\r\n componentDidUpdate() {\r\n this.props.updateStripes();\r\n }\r\n\r\n renderSVField = field => ;\r\n\r\n render() {\r\n const { svFields, treeSearch } = this.props;\r\n let theseFields = svFields;\r\n if (svFields != null) {\r\n if (treeSearch) {\r\n theseFields = svFields.filter(x => haystackMatchesSearchObject(x, treeSearch));\r\n }\r\n const elements = theseFields.map(this.renderSVField);\r\n\r\n return
{elements}
;\r\n } else {\r\n return
;\r\n }\r\n }\r\n}\r\n\r\nSVFieldList.propTypes = {\r\n //Inject by redux\r\n svFields: PropTypes.any,\r\n treeSearch: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),\r\n thisLayout: PropTypes.any,\r\n thisField: PropTypes.any,\r\n // FROM HOC\r\n updateStripes: PropTypes.func.isRequired,\r\n};\r\n\r\nconst SVFieldListS = withUpdateStripes(SVFieldList);\r\n\r\nimport { getTreeSearch } from \"../../reducers/search\";\r\nconst mapStateToProps = state => ({\r\n treeSearch: getTreeSearch(state),\r\n});\r\n\r\nconst mapDispatchToProps = dispatch => bindActionCreators(actionCreators, dispatch);\r\nconst SVFieldListC = connect(mapStateToProps, mapDispatchToProps)(SVFieldListS);\r\n\r\nexport default SVFieldListC;\r\n","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\nimport { connect } from \"react-redux\";\r\nimport { bindActionCreators } from \"redux\";\r\nimport * as actionCreators from \"../../actions/actionCreators\";\r\nimport * as layoutActions from \"../../actions/exportLayoutActions2\";\r\n\r\nimport SVFieldList from \"./SVFieldList\";\r\n\r\nimport withUpdateStripes from \"../misc/withUpdateStripes\";\r\n\r\ntype Props = {\r\n // Passed in\r\n scope: boolean,\r\n};\r\n\r\nclass SVFieldTree extends React.Component {\r\n componentDidMount() {\r\n this.props.updateStripes();\r\n }\r\n\r\n componentDidUpdate() {\r\n this.props.updateStripes();\r\n }\r\n\r\n render() {\r\n const { svFields, selectedLayout, updateStripes } = this.props;\r\n\r\n return (\r\n
\r\n \r\n
\r\n );\r\n }\r\n}\r\nSVFieldTree.propTypes = {\r\n selectedLayout: PropTypes.number,\r\n selectedDataSource: PropTypes.string,\r\n svFields: PropTypes.array,\r\n updateStripes: PropTypes.func.isRequired, // From HOC\r\n};\r\n\r\nconst VariableLayoutTreeS = withUpdateStripes(SVFieldTree);\r\n\r\nconst mapStateToProps = state => ({\r\n svFields: state.vars.svFields,\r\n selectedLayout: state.selected.layout,\r\n userNameForId: state.varsPersist.userNameForId,\r\n});\r\nconst mapDispatchToProps = dispatch => bindActionCreators(Object.assign({}, actionCreators, layoutActions), dispatch);\r\n\r\nconst SVFieldTreeC = connect(mapStateToProps, mapDispatchToProps)(VariableLayoutTreeS);\r\nexport default SVFieldTreeC;\r\n","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\nimport { connect } from \"react-redux\";\r\nimport { bindActionCreators } from \"redux\";\r\nimport * as actionCreators from \"../../actions/exportLayoutActions2\";\r\n\r\nimport TreeItem from \"../tree/TreeItem\";\r\nimport TextWithHighlightedSearchTerms from \"../tree/TextWithHighlightedSearchTerms\";\r\n\r\nimport { DragSource } from \"react-dnd\";\r\nimport { DragDropTypes } from \"../../helpers/constants\";\r\n\r\nimport { ContextMenuTrigger } from \"react-contextmenu\";\r\n\r\ntype Props = {\r\n scope: boolean,\r\n};\r\n\r\nclass VariableLayoutListEntry extends React.Component {\r\n constructor() {\r\n super();\r\n this.handleClick = this.handleClick.bind(this);\r\n this.handleDoubleClick = this.handleDoubleClick.bind(this);\r\n }\r\n\r\n handleClick() {\r\n const { /*variable, */ variableId, setSelectedGlobalVariable } = this.props;\r\n setSelectedGlobalVariable(parseInt(variableId));\r\n }\r\n\r\n handleDoubleClick() {\r\n const { /*variable, */ variableId, selectedLayout, scope } = this.props;\r\n this.props.AddGlobalVariableToLayoutObjects(parseInt(variableId), selectedLayout, scope);\r\n }\r\n\r\n componentDidMount() {\r\n $(this.divNode).bstooltip();\r\n }\r\n\r\n componentWillUnmount() {\r\n $(this.divNode).bstooltip(\"destroy\");\r\n }\r\n\r\n render() {\r\n const { variable, variableId, selectedVariable, connectDragSource } = this.props;\r\n if (!variable) {\r\n return null;\r\n }\r\n const active = selectedVariable == variableId;\r\n\r\n const displayText = variable.VariableName;\r\n return connectDragSource(\r\n (this.divNode = node)}\r\n >\r\n props}\r\n variableId={variableId}\r\n holdToDisplay={-1}\r\n >\r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\n// Prop Types /\r\nconst propTypes = {\r\n // Provided from outside\r\n variableId: PropTypes.any,\r\n variable: PropTypes.object,\r\n selectedVariable: PropTypes.any,\r\n setSelectedLayout: PropTypes.func,\r\n setSelectedLayout2: PropTypes.func,\r\n requestSelectedLayoutObjects: PropTypes.func,\r\n setSelectedGlobalVariable: PropTypes.func,\r\n AddGlobalVariableToLayoutObjects: PropTypes.func,\r\n updateLayoutAndPositions: PropTypes.func,\r\n selectedLayout: PropTypes.any,\r\n connectDragSource: PropTypes.func.isRequired,\r\n enabledFeatures: PropTypes.array,\r\n};\r\nVariableLayoutListEntry.propTypes = propTypes;\r\n\r\n// Drag and Drop here\r\nfunction collect(connect, monitor) {\r\n // React-dnd will inject these props into our component\r\n return {\r\n connectDragSource: connect.dragSource(),\r\n isDragging: monitor.isDragging(),\r\n };\r\n}\r\n\r\nconst fieldSource = {\r\n canDrag(/* props */) {\r\n return true;\r\n },\r\n beginDrag(props) {\r\n // Return data describing the dragged item\r\n return { variableId: props.variableId, scope: props.scope };\r\n },\r\n};\r\n\r\nconst VariableLayoutListEntryDND = DragSource(DragDropTypes.GVARIABLE, fieldSource, collect)(VariableLayoutListEntry);\r\n\r\n// Redux //\r\nconst mapStateToProps = (state, ownProps) => ({\r\n variableId: ownProps.variableId,\r\n userId: state.session.userId,\r\n selectedLayout: state.selected.layout,\r\n enabledFeatures: state.session.enabledFeatures || [],\r\n});\r\nconst mapDispatchToProps = dispatch => bindActionCreators(actionCreators, dispatch);\r\n\r\nconst VariableLayoutListEntryDNDC = connect(mapStateToProps, mapDispatchToProps)(VariableLayoutListEntryDND);\r\n\r\nexport default VariableLayoutListEntryDNDC;\r\n","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\nimport { connect } from \"react-redux\";\r\nimport { bindActionCreators } from \"redux\";\r\nimport * as actionCreators from \"../../actions/actionCreators\";\r\nimport VariableLayoutListEntry from \"./VariableLayoutListEntry\";\r\nimport { variableMatchesSearchString } from \"../../reducers/exportlayouts\";\r\nimport withUpdateStripes from \"../misc/withUpdateStripes\";\r\n\r\ntype Props = {\r\n scope: boolean,\r\n};\r\n\r\nclass VariableLayoutList extends React.Component {\r\n componentDidMount() {\r\n this.props.updateStripes();\r\n }\r\n\r\n componentDidUpdate() {\r\n this.props.updateStripes();\r\n }\r\n\r\n renderVariable = variableId => {\r\n const { variables, thisVariable, scope } = this.props;\r\n const variable = variables[variableId];\r\n\r\n return (\r\n \r\n );\r\n };\r\n\r\n render() {\r\n const { variables, treeSearch, scope } = this.props;\r\n if (variables != null) {\r\n let variableIds = Object.values(variables)\r\n .filter(x => x.VariableScope == scope)\r\n .map(x => x.Id);\r\n\r\n if (treeSearch) {\r\n variableIds = variableIds.filter(x => variableMatchesSearchString(variables[x], treeSearch));\r\n }\r\n\r\n const elements = variableIds.map(this.renderVariable);\r\n\r\n return
{elements}
;\r\n } else {\r\n return
;\r\n }\r\n }\r\n}\r\n\r\nVariableLayoutList.propTypes = {\r\n //Inject by redux\r\n variables: PropTypes.any,\r\n treeSearch: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),\r\n thisLayout: PropTypes.any,\r\n thisVariable: PropTypes.any,\r\n // FROM HOC\r\n updateStripes: PropTypes.func.isRequired,\r\n};\r\n\r\nconst VariableLayoutListS = withUpdateStripes(VariableLayoutList);\r\n\r\nimport { getTreeSearch } from \"../../reducers/search\";\r\nconst mapStateToProps = state => ({\r\n treeSearch: getTreeSearch(state),\r\n thisVariable: state.selected.globalVariable,\r\n});\r\n\r\nconst mapDispatchToProps = dispatch => bindActionCreators(actionCreators, dispatch);\r\nconst VariableLayoutListSConnected = connect(mapStateToProps, mapDispatchToProps)(VariableLayoutListS);\r\n\r\nexport default VariableLayoutListSConnected;\r\n","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\nimport { connect } from \"react-redux\";\r\nimport { bindActionCreators } from \"redux\";\r\nimport * as actionCreators from \"../../actions/actionCreators\";\r\nimport * as layoutActions from \"../../actions/exportLayoutActions2\";\r\n\r\nimport VariableLayoutList from \"./VariableLayoutList\";\r\n\r\nimport withUpdateStripes from \"../misc/withUpdateStripes\";\r\n\r\ntype Props = {\r\n // Passed in\r\n scope: boolean,\r\n};\r\n\r\nclass VariableLayoutTree extends React.Component {\r\n componentDidMount() {\r\n this.props.updateStripes();\r\n }\r\n\r\n componentDidUpdate() {\r\n this.props.updateStripes();\r\n }\r\n\r\n render() {\r\n const { variables, selectedLayout, layouts, updateStripes, scope } = this.props;\r\n const layout = layouts[selectedLayout];\r\n let isDestination = false;\r\n if (layout != null) {\r\n isDestination = layout.DestinationLayout;\r\n }\r\n if (!isDestination && scope == \"DestinationOffer\") {\r\n return
;\r\n }\r\n return (\r\n
\r\n \r\n
\r\n );\r\n }\r\n}\r\nVariableLayoutTree.propTypes = {\r\n selectedLayout: PropTypes.number,\r\n selectedDataSource: PropTypes.string,\r\n variables: PropTypes.object,\r\n layouts: PropTypes.object,\r\n updateStripes: PropTypes.func.isRequired, // From HOC\r\n};\r\n\r\nconst VariableLayoutTreeS = withUpdateStripes(VariableLayoutTree);\r\n\r\nconst mapStateToProps = state => ({\r\n variables: state.clientVariables.byId,\r\n selectedLayout: state.selected.layout,\r\n userNameForId: state.varsPersist.userNameForId,\r\n layouts: state.layouts || [],\r\n});\r\nconst mapDispatchToProps = dispatch => bindActionCreators(Object.assign({}, actionCreators, layoutActions), dispatch);\r\n\r\nconst VariableLayoutTreeSConnected = connect(mapStateToProps, mapDispatchToProps)(VariableLayoutTreeS);\r\nexport default VariableLayoutTreeSConnected;\r\n","import React from \"react\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { withStyles } from \"@material-ui/styles\";\r\nimport MaterialTooltip from \"@material-ui/core/Tooltip\";\r\nimport CircularLoading from \"../loading/CircularLoading\";\r\nimport { FlowBaseTypes } from \"../../helpers/constants\";\r\nimport { IAppState } from \"../../types/stores\";\r\n\r\nconst HtmlTooltip = withStyles(() => ({\r\n tooltip: {\r\n color: \"#FFF\",\r\n fontSize: 14,\r\n },\r\n}))(MaterialTooltip);\r\n\r\ntype Props = {\r\n id: number;\r\n className: string;\r\n showMultiSelectIcon?: boolean;\r\n};\r\n\r\nconst FlowIcon: React.FC = ({ id, className, showMultiSelectIcon }: Props) => {\r\n const flow = useSelector((state: IAppState) => state.flows.byId[id]);\r\n const selectedFlowIds = useSelector((state: IAppState) => state.flowMultiSelection.selectedFlowIds);\r\n\r\n const isUnlocked = !flow || !flow.IsLocked;\r\n\r\n const renderLock = () => {\r\n if (isUnlocked) {\r\n return null;\r\n }\r\n\r\n return (\r\n \r\n Flow is locked and may not be modified.\r\n
\r\n Use Save As to make a new copy of this flow.\r\n \r\n }\r\n >\r\n lock\r\n \r\n );\r\n };\r\n\r\n const renderFlowType = () => {\r\n let flowTypeText = \"\";\r\n\r\n if (!flow) {\r\n return null;\r\n }\r\n\r\n switch (flow.FlowBaseType) {\r\n case FlowBaseTypes.Undecided:\r\n flowTypeText = \"Simple Flow\";\r\n break;\r\n case FlowBaseTypes.Model:\r\n flowTypeText = \"Simple Flow - Model\";\r\n break;\r\n case FlowBaseTypes.Campaign:\r\n flowTypeText = \"Simple Flow - Campaign\";\r\n break;\r\n }\r\n\r\n if ([FlowBaseTypes.Undecided, FlowBaseTypes.Model, FlowBaseTypes.Campaign].includes(flow.FlowBaseType)) {\r\n return (\r\n \r\n
\r\n \r\n );\r\n }\r\n };\r\n\r\n const renderCalculating = () => (\r\n \r\n \r\n \r\n );\r\n\r\n const renderMultiSelection = () => {\r\n if (!showMultiSelectIcon || !flow || selectedFlowIds.length <= 0) {\r\n return null;\r\n }\r\n const iconClass = selectedFlowIds.includes(flow.FlowId)\r\n ? \"glyphicon glyphicon-check\"\r\n : \"glyphicon glyphicon-unchecked\";\r\n\r\n return ;\r\n };\r\n\r\n return flow ? (\r\n <>\r\n {renderLock()}\r\n {flow.flowItemsRunning > 0 && renderCalculating()}\r\n {renderMultiSelection()}\r\n {renderFlowType()}\r\n \r\n ) : null;\r\n};\r\n\r\nexport default FlowIcon;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useSelector, useDispatch } from \"react-redux\";\r\nimport { updateAttribute } from \"../../../../actions/flowActions\";\r\nimport { GetActivationDestinationSchedules } from \"../../../../actions/companiesActions\";\r\nimport { FormControl, InputLabel, ListSubheader, Select, MenuItem, Divider, Button } from \"@material-ui/core\";\r\nimport { IAppState } from \"../../../../types/stores\";\r\nimport { FlowExport } from \"../../../../types/stores/flowTypes\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport { Dialog } from \"@material-ui/core\";\r\nimport ScheduleAddEdit from \"../../../schedule/schedules/ScheduleAddEdit\";\r\n\r\ntype Props = {\r\n flowExport: FlowExport;\r\n canEdit: boolean;\r\n};\r\n\r\nconst ActivationDestinationSchedules: React.FC = ({ flowExport, canEdit }: Props) => {\r\n const dispatch = useDispatch();\r\n\r\n const flow = useSelector((state: IAppState) => state.flows.byId[state.selected.flow]);\r\n const activationDestinationSchedules = useSelector((state: IAppState) => state.vars.activationDestinationSchedules);\r\n const enabledFeatures = useSelector((state: IAppState) => state.session.enabledFeatures);\r\n const selectedSchedule = activationDestinationSchedules\r\n ? activationDestinationSchedules.find(x => x.Id == flow?.ScheduleId)\r\n : null;\r\n\r\n const [showEditScheduleModal, setEditScheduleModal] = useState(false);\r\n\r\n useEffect(() => {\r\n if (flowExport.DestinationId && flow?.FlowId) {\r\n dispatch(GetActivationDestinationSchedules(flowExport.DestinationId, flow.FlowId));\r\n }\r\n }, [flow?.isSaving, flow?.FlowId, flowExport.DestinationId, dispatch]);\r\n\r\n const activationDestinationScheduleChanged = newValue => {\r\n dispatch(updateAttribute(\"flows\", flow.FlowId, \"ScheduleId\", newValue));\r\n };\r\n\r\n const hide = () => {\r\n setEditScheduleModal(false);\r\n };\r\n\r\n const openEditScheduleModal = () => {\r\n setEditScheduleModal(true);\r\n };\r\n\r\n const handleScheduleSaved = (id: string) => {\r\n hide();\r\n activationDestinationScheduleChanged(id);\r\n if (flowExport.DestinationId && flow?.FlowId) {\r\n dispatch(GetActivationDestinationSchedules(flowExport.DestinationId, flow.FlowId));\r\n }\r\n };\r\n\r\n const renderEditScheduleModal = () => (\r\n \r\n \r\n \r\n );\r\n\r\n const renderSchedules = () => {\r\n const schedules = activationDestinationSchedules.filter(x => !x.IsScheduleTemplate);\r\n const templates = activationDestinationSchedules.filter(x => x.IsScheduleTemplate);\r\n return (\r\n <>\r\n Refresh Schedule\r\n activationDestinationScheduleChanged(e.target.value)}\r\n >\r\n {schedules.length > 0 && (\r\n e.stopPropagation()}>Schedules assigned to flow\r\n )}\r\n {schedules.length > 0 && }\r\n {schedules.map(s => (\r\n \r\n {s.Name}\r\n \r\n ))}\r\n e.stopPropagation()}>Schedule templates available\r\n \r\n {templates.map(s => (\r\n \r\n {s.Name}\r\n \r\n ))}\r\n \r\n \r\n );\r\n };\r\n\r\n const renderEditBtnTooltip = () => {\r\n if (!flow || flow.FlowId <= 0) {\r\n return \"Please save your flow before creating a schedule\";\r\n }\r\n if (!selectedSchedule) {\r\n return \"Please select a schedule from the dropdown to edit\";\r\n }\r\n if (selectedSchedule.IsScheduleTemplate) {\r\n return \"Copy and edit schedule\";\r\n }\r\n return \"Edit schedule\";\r\n };\r\n\r\n return (\r\n \r\n
\r\n {renderSchedules()}\r\n {enabledFeatures.includes(\"edit-activation-schedules-modal\") && (\r\n \r\n
\r\n \r\n \r\n edit\r\n \r\n \r\n
\r\n \r\n )}\r\n
\r\n {enabledFeatures.includes(\"edit-activation-schedules-modal\") && renderEditScheduleModal()}\r\n \r\n );\r\n};\r\n\r\nexport default ActivationDestinationSchedules;\r\n","import React from \"react\";\r\nimport { useSelector } from \"react-redux\";\r\n\r\n// material ui\r\nimport MaterialTooltip from \"@material-ui/core/Tooltip\";\r\n\r\n// types\r\nimport { IAdvertisersByCompany } from \"../../../../types/stores/vars\";\r\nimport { IAppState } from \"../../../../types/stores\";\r\nimport { Icon } from \"@material-ui/core\";\r\n\r\ntype Props = {\r\n flowItemId: number;\r\n selectedDestinationId: number | undefined;\r\n destination: IAdvertisersByCompany;\r\n onClick: (destinationId: number) => void;\r\n};\r\n\r\nconst ExportDestinationSquare: React.FC = ({ flowItemId, selectedDestinationId, destination, onClick }) => {\r\n const isInternal = useSelector((state: IAppState) => state.session.isInternal);\r\n const title =\r\n destination.VerticalName +\r\n \" - \" +\r\n destination.CompanyName +\r\n (isInternal && destination.FTPFolder != null ? \" (\" + destination.FTPFolder + \")\" : \"\");\r\n const selected = destination.PartnerAccessId == selectedDestinationId;\r\n const tooltip = selected ? \"Click to select another destination.\" : \"Click to select this destination.\";\r\n\r\n return (\r\n
\r\n \r\n
onClick(destination.PartnerAccessId)}>\r\n
\r\n {\" \"}\r\n
\r\n
\r\n
\r\n {selected && (\r\n \r\n check_circle\r\n \r\n )}\r\n \r\n {title}\r\n
\r\n
\r\n );\r\n};\r\nexport default ExportDestinationSquare;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { createSelector } from \"reselect\";\r\nimport {\r\n addExportDistributionPlatform,\r\n requestFlowExportDestinationPartners,\r\n updateAttribute,\r\n deleteFlowExportDistributionPlatform,\r\n} from \"../../../../actions/flowActions\";\r\nimport { getSelectedFlowAndItemPermissions } from \"../../../../reducers/flowItems\";\r\nimport { getFlowExportDistributionPlatformsArray } from \"../../../../reducers/flowExportDistributionPlatforms\";\r\nimport { Paper, Table, IconButton, Button, Divider, TextField, Tooltip, MenuItem, Select } from \"@material-ui/core\";\r\nimport TableHeader from \"../../../material-components/Table/TableHeader\";\r\nimport TableBody from \"../../../material-components/Table/TableBody\";\r\nimport TableFooter from \"../../../material-components/Table/TableFooter\";\r\nimport type { FlowExportDistributionPlatform } from \"../../../../types/flowTypes\";\r\nimport isValidEmailAddress from \"../../../../helpers/emailValidation\";\r\nimport { MoneyRegex } from \"../../../../helpers/constants\";\r\nimport { labelCompare } from \"../../../../helpers/selectHelper\";\r\nimport { IAppState } from \"../../../../types/stores\";\r\n\r\ntype Props = {\r\n destinationId: number;\r\n flowItemId: number;\r\n};\r\n\r\nconst FlowExportDistributionPlatforms: React.FC = (props: Props) => {\r\n const dispatch = useDispatch();\r\n const { destinationId, flowItemId } = props;\r\n\r\n const destinationPartners = useSelector(\r\n (state: IAppState) => state.flowExportObjects.destinationPartners[destinationId] || null\r\n );\r\n const distributionPlatforms = useSelector((state: IAppState) => getDistributionPlatforms(state, props));\r\n const canEdit = useSelector((state: IAppState) => getSelectedFlowAndItemPermissions(state).item.canEdit);\r\n const flow = useSelector((state: IAppState) => state.flows.byId[state.selected.flow]);\r\n\r\n const [localPlatforms, setLocalPlatforms] = useState>(distributionPlatforms);\r\n const [rowsPerPage, setRowsPerPage] = useState(5);\r\n const [page, setPage] = useState(0);\r\n\r\n useEffect(() => {\r\n if (!destinationPartners && destinationId) {\r\n dispatch(requestFlowExportDestinationPartners(destinationId));\r\n }\r\n }, [dispatch, destinationId, destinationPartners]);\r\n\r\n useEffect(() => {\r\n if (distributionPlatforms.length != localPlatforms.length) {\r\n setLocalPlatforms(distributionPlatforms);\r\n }\r\n }, [distributionPlatforms, localPlatforms]);\r\n\r\n const getValidationError = (attribute: string, value: any) => {\r\n let error;\r\n\r\n if (\r\n (attribute == \"ContactName\" ||\r\n attribute == \"ContactEmail\" ||\r\n attribute == \"DestinationID\" ||\r\n attribute == \"CPM\") &&\r\n value == \"\"\r\n ) {\r\n error = \"Required\";\r\n } else if (\r\n (attribute == \"ContactEmail\" && !isValidEmailAddress(value)) ||\r\n (attribute == \"CPM\" && !MoneyRegex.test(value))\r\n ) {\r\n error = \"Invalid\";\r\n } else if (attribute == \"PartnerId\" && value == 0) {\r\n error = \"Required\";\r\n }\r\n return error;\r\n };\r\n\r\n const addDistributionPlatform = () => dispatch(addExportDistributionPlatform(flowItemId));\r\n\r\n const updateDistributionPlatformAttribute = (id: number, attribute: string, value: any) =>\r\n dispatch(updateAttribute(\"flowExportDistributionPlatforms\", id, attribute, value, true));\r\n\r\n const deletePlatform = (row: FlowExportDistributionPlatform) => {\r\n setLocalPlatforms(localPlatforms.filter(x => x.FlowDistribututionId !== row.FlowDistribututionId));\r\n dispatch(deleteFlowExportDistributionPlatform(row.FlowExportDistributionPlatformId));\r\n };\r\n\r\n const renderPartnerSelector = (row: FlowExportDistributionPlatform) => {\r\n const usedIds = distributionPlatforms.filter(x => x.PartnerId != 0).map(x => x.PartnerId);\r\n const selectOptions = destinationPartners\r\n .map(item => ({\r\n label: item.CompanyName,\r\n value: item.CompanyID,\r\n disabled: usedIds.includes(item.CompanyID),\r\n item,\r\n }))\r\n .sort(labelCompare);\r\n\r\n return (\r\n {\r\n const newPartners = [...localPlatforms];\r\n const partnerIndex = localPlatforms.findIndex(\r\n x => x.FlowExportDistributionPlatformId == row.FlowExportDistributionPlatformId\r\n );\r\n newPartners[partnerIndex].PartnerId = e.target.value;\r\n setLocalPlatforms(newPartners);\r\n updateDistributionPlatformAttribute(\r\n row.FlowExportDistributionPlatformId,\r\n \"PartnerId\",\r\n e.target.value\r\n );\r\n }}\r\n style={{\r\n fontSize: 16,\r\n minWidth: 140,\r\n }}\r\n inputProps={{ style: { maxWidth: 110 } }}\r\n disabled={!canEdit || (flow && flow.IsLocked)}\r\n required\r\n >\r\n \r\n Select...\r\n \r\n {selectOptions.map(x => (\r\n \r\n {x.label}\r\n \r\n ))}\r\n \r\n );\r\n };\r\n\r\n const handleChange = (e: React.FocusEvent) => {\r\n const { id, name, value } = e.target;\r\n const newPlatforms = [...localPlatforms];\r\n const index = localPlatforms.findIndex(x => x.FlowExportDistributionPlatformId == parseInt(id));\r\n newPlatforms[index] = {\r\n ...newPlatforms[index],\r\n [name]: value,\r\n };\r\n setLocalPlatforms(newPlatforms);\r\n };\r\n\r\n const renderEditableColumn = (row: FlowExportDistributionPlatform, columnName: string) => {\r\n if (destinationPartners == null) {\r\n return null;\r\n }\r\n\r\n let helperText;\r\n const value = row[columnName];\r\n const displayvalue = value != null ? value.toString() : \"\";\r\n const error = getValidationError(columnName, value != null ? value.toString() : \"\");\r\n\r\n if (columnName == \"DestinationID\") {\r\n if (row.PartnerId != 0) {\r\n const destinationPartner = destinationPartners.filter(x => x.CompanyID == row.PartnerId)[0];\r\n helperText = destinationPartner ? destinationPartner.DestinationIDHelperText : \"\";\r\n }\r\n }\r\n\r\n return (\r\n {\r\n handleChange(e);\r\n updateDistributionPlatformAttribute(\r\n row.FlowExportDistributionPlatformId,\r\n columnName,\r\n e.target.value\r\n );\r\n }}\r\n required\r\n helperText={error ? error : null}\r\n />\r\n );\r\n };\r\n\r\n const renderDelete = (row: FlowExportDistributionPlatform) => (\r\n \r\n
\r\n deletePlatform(row)}\r\n aria-label=\"delete platform\"\r\n disabled={!canEdit || !flow || (flow && flow.IsLocked)}\r\n >\r\n close\r\n \r\n
\r\n
\r\n );\r\n\r\n let tableHeader = [\r\n [\"PartnerId\", \"Partner Id\", \"smDown\"],\r\n [\"ContactName\", \"Contact Name\", \"smDown\"],\r\n [\"ContactEmail\", \"Contact Email\", \"smDown\"],\r\n [\"DestinationID\", \"Destination Id\", \"smDown\"],\r\n [\"CPM\", \"CPM\", \"smDown\"],\r\n [\"FlowExportDistributionPlatformId\", \"\", \"smDown\"],\r\n ];\r\n\r\n const emptyMessage = [\"EmptyMessage\", \"No Data to Display.\", \"smDown\"];\r\n\r\n if (!destinationPartners || destinationPartners.length == 0) {\r\n return null;\r\n }\r\n\r\n const renderTable = () => {\r\n let data: Array = [];\r\n localPlatforms.map(dataRow => {\r\n data.push([\r\n [\"PartnerId\", renderPartnerSelector(dataRow), \"smDown\"],\r\n [\"ContactName\", renderEditableColumn(dataRow, \"ContactName\"), \"smDown\"],\r\n [\"ContactEmail\", renderEditableColumn(dataRow, \"ContactEmail\"), \"smDown\"],\r\n [\"DestinationID\", renderEditableColumn(dataRow, \"DestinationID\"), \"smDown\"],\r\n [\"CPM\", renderEditableColumn(dataRow, \"CPM\"), \"smDown\"],\r\n [\"FlowExportDistributionPlatformId\", renderDelete(dataRow), \"smDown\"],\r\n ]);\r\n });\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n
\r\n {\r\n setPage(newPage);\r\n }}\r\n onRowsPerPageChange={e => {\r\n setRowsPerPage(parseInt(e.target.value, 10));\r\n setPage(0);\r\n }}\r\n />\r\n
\r\n );\r\n };\r\n\r\n return (\r\n <>\r\n
\r\n
\r\n

Distribution Platform Settings

\r\n \r\n Input your platform specific information such as contact info and account numbers\r\n \r\n
\r\n
\r\n add}\r\n onClick={addDistributionPlatform}\r\n disabled={!canEdit || (flow && flow.IsLocked)}\r\n >\r\n Add Row\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
{renderTable()}
\r\n
\r\n
\r\n \r\n );\r\n};\r\n\r\n//@ts-ignore\r\nconst getDistributionPlatforms = createSelector(\r\n state => getFlowExportDistributionPlatformsArray(state),\r\n (_, props) => props.flowItemId,\r\n (\r\n allDistributionPlatforms: Array,\r\n flowItemId: number\r\n ): Array => allDistributionPlatforms.filter(x => x.FlowItemId == flowItemId)\r\n);\r\n\r\nexport default FlowExportDistributionPlatforms;\r\n","import React from \"react\";\r\nimport FlowItemToggle from \"./FlowItemToggle\";\r\n\r\ntype Props = {\r\n // Passed In\r\n flowItemId: number;\r\n disabled?: boolean;\r\n};\r\n\r\nconst FlowItemMaxQtyToggle: React.FC = ({ flowItemId, disabled = false }: Props) => {\r\n if (flowItemId == null) {\r\n return null;\r\n }\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default FlowItemMaxQtyToggle;\r\n","import React, { useState, useEffect, useCallback } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport PropTypes from \"prop-types\";\r\n\r\nimport { updateAttribute } from \"../../../../actions/flowActions\";\r\n\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableHeader from \"../../../material-components/Table/TableHeader\";\r\nimport TableBody from \"../../../material-components/Table/TableBody\";\r\nimport Paper from \"@material-ui/core/Paper\";\r\nimport Divider from \"@material-ui/core/Divider\";\r\nimport TextField from \"@material-ui/core/TextField\";\r\nimport Select from \"@material-ui/core/Select\";\r\nimport MenuItem from \"@material-ui/core/MenuItem\";\r\n\r\nconst ExportTemplateFields = ({ destinationId, flowExportTemplateFields, canEdit }) => {\r\n const dispatch = useDispatch();\r\n\r\n // state\r\n const [templateRows, setTemplateRows] = useState([]);\r\n const [emailErrors, setEmailErrors] = useState({});\r\n\r\n // props\r\n const flow = useSelector(state => state.flows.byId[state.selected.flow]);\r\n const flowItems = useSelector(state => state.flowItems.byId);\r\n const enabledFeatures = useSelector(state => state.session.enabledFeatures || []);\r\n const newMetaTemplate = enabledFeatures.includes(\"new-metadata-driver-field\");\r\n\r\n const renderTemplateRows = useCallback(() => {\r\n let rows = [];\r\n if (flowExportTemplateFields != null) {\r\n for (const template of flowExportTemplateFields) {\r\n const parentItem = flowItems[template.ParentFlowItemId];\r\n rows.push({\r\n TemplateId: template.FlowExportTemplateId,\r\n ParentFlowItemId: template.ParentFlowItemId,\r\n ItemName: parentItem.FlowItemName,\r\n Description: template.Description || \"\",\r\n AdAccountIds: template.AdAccountIds || \"\",\r\n CustomerFileSource: newMetaTemplate ? \"PARTNER_PROVIDED_ONLY\" : template.CustomerFileSource || \"\",\r\n EmailAddress: template.EmailAddress || \"\",\r\n });\r\n }\r\n }\r\n setTemplateRows(rows);\r\n }, [flowExportTemplateFields, flowItems, newMetaTemplate]);\r\n\r\n // effects\r\n useEffect(() => {\r\n renderTemplateRows();\r\n }, [destinationId, flowExportTemplateFields, renderTemplateRows]);\r\n\r\n const renderTemplateTable = () => {\r\n const tableHeaders = [\r\n [\"ItemName\", \"Item\", \"smDown\", \"left\"],\r\n [\"Description\", \"Description\", \"smDown\", \"left\"],\r\n [\"AdAccountIds\", \"Ad Account Ids\", \"smDown\", \"left\"],\r\n [\"CustomerFileSource\", \"Customer File Source\", \"smDown\", \"left\"],\r\n ];\r\n\r\n if (newMetaTemplate) {\r\n tableHeaders.push([\"EmailAddress\", \"Notification Emails\", \"smDown\", \"left\"]);\r\n }\r\n\r\n const emptyMessage = [\"EmptyMessage\", \"No Driver Fields\"];\r\n\r\n const data = templateRows.map((item, index) => {\r\n const baseRow = [\r\n [\"ItemName\", item.ItemName, \"smDown\", \"left\"],\r\n [\"Description\", renderDescriptionColumn(item, index), \"smDown\", \"left\"],\r\n [\"AdAccountIds\", renderAdIdColumn(item, index), \"smDown\", \"left\"],\r\n [\r\n \"CustomerFileSource\",\r\n newMetaTemplate ? \"PARTNER_PROVIDED_ONLY\" : renderFileSourceColumn(item),\r\n \"smDown\",\r\n \"left\",\r\n ],\r\n ];\r\n\r\n if (newMetaTemplate) {\r\n baseRow.push([\"EmailAddress\", renderEmailAddressColumn(item, index), \"smDown\", \"left\"]);\r\n }\r\n\r\n return baseRow;\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\n const renderDescriptionColumn = (item, index) => {\r\n const rows = [...templateRows];\r\n const descriptionColumn = (\r\n {\r\n rows[index].Description = e.target.value;\r\n return setTemplateRows(rows);\r\n }}\r\n onBlur={e => handleChange(item.TemplateId, \"Description\", e)}\r\n />\r\n );\r\n\r\n return descriptionColumn;\r\n };\r\n\r\n const renderAdIdColumn = (item, index) => {\r\n const rows = [...templateRows];\r\n const adIdColumn = (\r\n {\r\n rows[index].AdAccountIds = checkAdIds(e.target.value);\r\n return setTemplateRows(rows);\r\n }}\r\n onBlur={e => handleChange(item.TemplateId, \"AdAccountIds\", e)}\r\n />\r\n );\r\n\r\n return adIdColumn;\r\n };\r\n\r\n const checkAdIds = value => value.replace(/[^0-9|]/g, \"\");\r\n\r\n const renderFileSourceColumn = item => {\r\n const sourceColumn = (\r\n handleChange(item.TemplateId, \"CustomerFileSource\", e)}\r\n disabled={!canEdit || (flow && flow.IsLocked)}\r\n displayEmpty\r\n >\r\n \r\n PARTNER_PROVIDED_ONLY\r\n \r\n \r\n BOTH_USER_AND_PARTNER_PROVIDED\r\n \r\n \r\n USER_PROVIDED_ONLY\r\n \r\n \r\n );\r\n\r\n return sourceColumn;\r\n };\r\n\r\n const renderEmailAddressColumn = (item, index) => {\r\n const rows = [...templateRows];\r\n const emailColumn = (\r\n {\r\n const email = removeBlockCharacters(e.target.value);\r\n rows[index].EmailAddress = email;\r\n setTemplateRows(rows);\r\n validateEmail(item.TemplateId, email);\r\n }}\r\n onBlur={e => handleChange(item.TemplateId, \"EmailAddress\", e)}\r\n />\r\n );\r\n\r\n return emailColumn;\r\n };\r\n\r\n const handleChange = (TemplateId, attributeName, e) => {\r\n const value = e.target.value;\r\n let updatedValue;\r\n\r\n switch (attributeName) {\r\n case \"EmailAddress\":\r\n updatedValue = removeBlockCharacters(value);\r\n if (!validateEmail(TemplateId, updatedValue)) return;\r\n break;\r\n case \"AdAccountIds\":\r\n updatedValue = checkAdIds(value);\r\n break;\r\n default:\r\n updatedValue = removeBlockCharacters(value);\r\n break;\r\n }\r\n dispatch(updateAttribute(\"flowExportTemplateFields\", TemplateId, attributeName, updatedValue));\r\n };\r\n\r\n const validateEmail = (TemplateId, email) => {\r\n const emailRegex = /^[^@\\s]+@[^@\\s]+\\.(com|net|org|gov)$/i;\r\n const emails = email.split(\";\").map(e => e.trim());\r\n const invalidEmails = emails.filter(e => e && !emailRegex.test(e));\r\n const isValid = invalidEmails.length === 0;\r\n\r\n setEmailErrors(prevErrors => ({\r\n ...prevErrors,\r\n [TemplateId]: !isValid,\r\n }));\r\n\r\n return isValid;\r\n };\r\n\r\n const removeBlockCharacters = value => value.replace(/,/g, \"\");\r\n\r\n return (\r\n <>\r\n
\r\n
\r\n

Driver File Fields

\r\n
\r\n
\r\n \r\n \r\n
{renderTemplateTable()}
\r\n
\r\n {newMetaTemplate && (\r\n
\r\n * Notification Emails: This will allow Experian to notify the user when the file is ready. You can\r\n add multiple emails separated by a semicolon.\r\n
\r\n )}\r\n \r\n \r\n );\r\n};\r\n\r\nExportTemplateFields.propTypes = {\r\n destinationId: PropTypes.number,\r\n flowExportTemplateFields: PropTypes.array,\r\n canEdit: PropTypes.bool,\r\n};\r\n\r\nexport default ExportTemplateFields;\r\n","import React, { useState, useEffect, useCallback } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport PropTypes from \"prop-types\";\r\nimport { updateAttribute } from \"../../../../actions/flowActions\";\r\nimport { requestCompanies, setLoadingCompany } from \"../../../../actions/userActions\";\r\nimport { withStyles } from \"@material-ui/core/styles\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableHeader from \"../../../material-components/Table/TableHeader\";\r\nimport TableBody from \"../../../material-components/Table/TableBody\";\r\nimport Paper from \"@material-ui/core/Paper\";\r\nimport Divider from \"@material-ui/core/Divider\";\r\nimport TextField from \"@material-ui/core/TextField\";\r\nimport NumericalTextField from \"../../../material-components/Misc/NumericalTextField\";\r\n\r\n// used to remove arrow icons from number text fields\r\n// cant have those because we fail to update on click from 1 -> 0\r\n// due to using both selects and text fields\r\nconst styles = {\r\n input: {\r\n \"&[type=number]\": {\r\n \"-moz-appearance\": \"textfield\",\r\n },\r\n \"&::-webkit-outer-spin-button\": {\r\n \"-webkit-appearance\": \"none\",\r\n margin: 0,\r\n },\r\n \"&::-webkit-inner-spin-button\": {\r\n \"-webkit-appearance\": \"none\",\r\n margin: 0,\r\n },\r\n },\r\n};\r\n\r\nconst ExportPinterestTemplateFields = ({ destinationId, flowExportPinterestTemplateFields, canEdit }) => {\r\n const dispatch = useDispatch();\r\n\r\n // state\r\n const [templateRows, setTemplateRows] = useState([]);\r\n\r\n // props\r\n const companies = useSelector(state => state.companies.byId);\r\n const loadingCompanies = useSelector(state => state.vars.loadingCompanies);\r\n const flow = useSelector(state => state.flows.byId[state.selected.flow]);\r\n\r\n const renderTemplateRows = useCallback(() => {\r\n let rows = [];\r\n\r\n if (flowExportPinterestTemplateFields != null) {\r\n for (const template of flowExportPinterestTemplateFields) {\r\n rows.push({\r\n TemplateId: template.FlowExportTemplateId,\r\n ParentFlowItemId: template.ParentFlowItemId,\r\n TargetingAudienceName: template.TargetingAudienceName || \"\",\r\n PinterestAccountID: template.PinterestAccountID || \"\",\r\n OldAudienceID: template.OldAudienceID || \"\",\r\n NotificationEmails: template.NotificationEmails || \"\",\r\n });\r\n }\r\n }\r\n\r\n setTemplateRows(rows);\r\n }, [flowExportPinterestTemplateFields]);\r\n\r\n // effects\r\n useEffect(() => {\r\n renderTemplateRows();\r\n }, [destinationId, flowExportPinterestTemplateFields, renderTemplateRows]);\r\n\r\n useEffect(() => {\r\n if (!companies || (Object.keys(companies).length <= 0 && !loadingCompanies)) {\r\n dispatch(setLoadingCompany(true));\r\n dispatch(requestCompanies());\r\n }\r\n }, [dispatch, companies, loadingCompanies]);\r\n\r\n const renderTemplateTable = () => {\r\n if (!companies) {\r\n return false;\r\n }\r\n\r\n const tableHeaders = [\r\n [\"TargetingAudienceName\", \"Targeting Audience Name\", \"smDown\", \"left\"],\r\n [\"PinterestAccountID\", \"Pinterest Account ID\", \"smDown\", \"left\"],\r\n [\"OldAudienceID\", \"Old Audience ID\", \"smDown\", \"left\"],\r\n [\"NotificationEmails\", \"Notification Emails\", \"smDown\", \"left\"],\r\n ];\r\n\r\n const emptyMessage = [\"EmptyMessage\", \"No Driver Fields\"];\r\n let data = [];\r\n templateRows.forEach((item, index) => {\r\n const row = [\r\n [\"TargetingAudienceName\", renderTargetingAudienceNameColumn(item, index), \"smDown\", \"left\"],\r\n [\"PinterestAccountID\", renderPinterestAccountIDColumn(item, index), \"smDown\", \"left\"],\r\n [\"OldAudienceID\", renderOldAudienceIDColumn(item, index), \"smDown\", \"left\"],\r\n [\"NotificationEmails\", renderNotificationEmailsColumn(item, index), \"smDown\", \"left\"],\r\n ];\r\n\r\n data.push(row);\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\n const renderTargetingAudienceNameColumn = (item, index) => {\r\n const rows = [...templateRows];\r\n const column = (\r\n {\r\n rows[index].TargetingAudienceName = removeBlockCharacters(e.target.value);\r\n return setTemplateRows(rows);\r\n }}\r\n onBlur={e => handleChange(item.TemplateId, \"TargetingAudienceName\", e)}\r\n />\r\n );\r\n\r\n return column;\r\n };\r\n\r\n const renderPinterestAccountIDColumn = (item, index) => {\r\n const rows = [...templateRows];\r\n const column = (\r\n {\r\n rows[index].PinterestAccountID = e.target.value;\r\n return setTemplateRows(rows);\r\n }}\r\n onBlur={e => handleChange(item.TemplateId, \"PinterestAccountID\", e)}\r\n />\r\n );\r\n\r\n return column;\r\n };\r\n\r\n const renderOldAudienceIDColumn = (item, index) => {\r\n const rows = [...templateRows];\r\n const column = (\r\n {\r\n rows[index].OldAudienceID = e.target.value;\r\n return setTemplateRows(rows);\r\n }}\r\n onBlur={e => handleChange(item.TemplateId, \"OldAudienceID\", e)}\r\n />\r\n );\r\n\r\n return column;\r\n };\r\n\r\n const renderNotificationEmailsColumn = (item, index) => {\r\n const rows = [...templateRows];\r\n const column = (\r\n {\r\n rows[index].NotificationEmails = removeBlockCharacters(e.target.value);\r\n return setTemplateRows(rows);\r\n }}\r\n onBlur={e => handleChange(item.TemplateId, \"NotificationEmails\", e)}\r\n />\r\n );\r\n\r\n return column;\r\n };\r\n\r\n const handleChange = (TemplateId, attributeName, e) =>\r\n dispatch(\r\n updateAttribute(\r\n \"flowExportPinterestTemplateFields\",\r\n TemplateId,\r\n attributeName,\r\n removeBlockCharacters(e.target.value)\r\n )\r\n );\r\n\r\n const removeBlockCharacters = value => value.replace(/,/g, \"\");\r\n\r\n return (\r\n <>\r\n
\r\n
\r\n

Pinterest Driver File Fields

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n {renderTemplateTable()}\r\n
\r\n * Notification Emails: You can add multiple emails seperated by a semicolon.\r\n
\r\n \r\n \r\n );\r\n};\r\n\r\nExportPinterestTemplateFields.propTypes = {\r\n destinationId: PropTypes.number,\r\n flowExportPinterestTemplateFields: PropTypes.array,\r\n canEdit: PropTypes.bool,\r\n};\r\n\r\nexport default withStyles(styles)(ExportPinterestTemplateFields);\r\n","import React, { useState, useEffect, useCallback } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport PropTypes from \"prop-types\";\r\nimport { updateAttribute } from \"../../../../actions/flowActions\";\r\nimport { requestCompanies, setLoadingCompany } from \"../../../../actions/userActions\";\r\nimport { withStyles } from \"@material-ui/core/styles\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableHeader from \"../../../material-components/Table/TableHeader\";\r\nimport TableBody from \"../../../material-components/Table/TableBody\";\r\nimport Paper from \"@material-ui/core/Paper\";\r\nimport Divider from \"@material-ui/core/Divider\";\r\nimport TextField from \"@material-ui/core/TextField\";\r\n// used to remove arrow icons from number text fields\r\n// cant have those because we fail to update on click from 1 -> 0\r\n// due to using both selects and text fields\r\nconst styles = {\r\n input: {\r\n \"&[type=number]\": {\r\n \"-moz-appearance\": \"textfield\",\r\n },\r\n \"&::-webkit-outer-spin-button\": {\r\n \"-webkit-appearance\": \"none\",\r\n margin: 0,\r\n },\r\n \"&::-webkit-inner-spin-button\": {\r\n \"-webkit-appearance\": \"none\",\r\n margin: 0,\r\n },\r\n },\r\n};\r\n\r\nconst ExportTikTokTemplateFields = ({ destinationId, flowExportTikTokTemplateFields, canEdit }) => {\r\n const dispatch = useDispatch();\r\n\r\n // state\r\n const [templateRows, setTemplateRows] = useState([]);\r\n\r\n // props\r\n const companies = useSelector(state => state.companies.byId);\r\n const loadingCompanies = useSelector(state => state.vars.loadingCompanies);\r\n const flow = useSelector(state => state.flows.byId[state.selected.flow]);\r\n\r\n const renderTemplateRows = useCallback(() => {\r\n let rows = [];\r\n\r\n if (flowExportTikTokTemplateFields != null) {\r\n for (const template of flowExportTikTokTemplateFields) {\r\n rows.push({\r\n TemplateId: template.FlowExportTemplateId,\r\n ParentFlowItemId: template.ParentFlowItemId,\r\n TargetingAudienceName: template.TargetingAudienceName || \"\",\r\n AdvertiserID: template.AdvertiserID || \"\",\r\n });\r\n }\r\n }\r\n\r\n setTemplateRows(rows);\r\n }, [flowExportTikTokTemplateFields]);\r\n\r\n // effects\r\n useEffect(() => {\r\n renderTemplateRows();\r\n }, [destinationId, flowExportTikTokTemplateFields, renderTemplateRows]);\r\n\r\n useEffect(() => {\r\n if (!companies || (Object.keys(companies).length <= 0 && !loadingCompanies)) {\r\n dispatch(setLoadingCompany(true));\r\n dispatch(requestCompanies());\r\n }\r\n }, [dispatch, companies, loadingCompanies]);\r\n\r\n const renderTemplateTable = () => {\r\n if (!companies) {\r\n return false;\r\n }\r\n\r\n const tableHeaders = [\r\n [\"TargetingAudienceName\", \"Audience Name\", \"smDown\", \"left\"],\r\n [\"AdvertiserID\", \"Advertiser ID\", \"smDown\", \"left\"],\r\n ];\r\n\r\n const emptyMessage = [\"EmptyMessage\", \"No Driver Fields AMCH\"];\r\n let data = [];\r\n templateRows.forEach((item, index) => {\r\n const row = [\r\n [\"TargetingAudienceName\", renderTargetingAudienceNameColumn(item, index), \"smDown\", \"left\"],\r\n [\"AdvertiserID\", renderAdvertiserIDColumn(item, index), \"smDown\", \"left\"],\r\n ];\r\n\r\n data.push(row);\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\n const renderTargetingAudienceNameColumn = (item, index) => {\r\n const rows = [...templateRows];\r\n const column = (\r\n {\r\n rows[index].TargetingAudienceName = removeBlockCharacters(e.target.value);\r\n return setTemplateRows(rows);\r\n }}\r\n onBlur={e => handleChange(item.TemplateId, \"TargetingAudienceName\", e)}\r\n />\r\n );\r\n\r\n return column;\r\n };\r\n\r\n const renderAdvertiserIDColumn = (item, index) => {\r\n const rows = [...templateRows];\r\n const regex = RegExp(/^[0-9]*$/);\r\n const column = (\r\n {\r\n if (e.target.value == \"\" || regex.test(e.target.value)) {\r\n rows[index].AdvertiserID = e.target.value;\r\n return setTemplateRows(rows);\r\n }\r\n }}\r\n onBlur={e => handleChange(item.TemplateId, \"AdvertiserID\", e)}\r\n />\r\n );\r\n\r\n return column;\r\n };\r\n\r\n const handleChange = (TemplateId, attributeName, e) => {\r\n dispatch(\r\n updateAttribute(\r\n \"flowExportTikTokTemplateFields\",\r\n TemplateId,\r\n attributeName,\r\n removeBlockCharacters(e.target.value)\r\n )\r\n );\r\n };\r\n\r\n const removeBlockCharacters = value => value.replace(/,/g, \"\");\r\n\r\n return (\r\n <>\r\n
\r\n
\r\n

TikTok Driver File Fields

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n {renderTemplateTable()}\r\n \r\n \r\n );\r\n};\r\n\r\nExportTikTokTemplateFields.propTypes = {\r\n destinationId: PropTypes.number,\r\n flowExportTikTokTemplateFields: PropTypes.array,\r\n canEdit: PropTypes.bool,\r\n};\r\n\r\nexport default withStyles(styles)(ExportTikTokTemplateFields);\r\n","import React, { useState, useEffect, useMemo, useRef } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport PropTypes from \"prop-types\";\r\nimport { ThemeProvider, createTheme, withStyles } from \"@material-ui/core/styles\";\r\nimport Divider from \"@material-ui/core/Divider\";\r\nimport TextField from \"@material-ui/core/TextField\";\r\nimport Select from \"@material-ui/core/Select\";\r\nimport MenuItem from \"@material-ui/core/MenuItem\";\r\nimport Collapse from \"@material-ui/core/Collapse\";\r\nimport ListItem from \"@material-ui/core/ListItem\";\r\nimport Button from \"@material-ui/core/Button\";\r\nimport FormControl from \"@material-ui/core/FormControl\";\r\nimport InputLabel from \"@material-ui/core/InputLabel\";\r\nimport MaterialTable from \"@material-table/core\";\r\nimport MomentUtils from \"@date-io/moment\";\r\nimport { DateTimePicker, MuiPickersUtilsProvider } from \"@material-ui/pickers\";\r\nimport NumericalTextField from \"../../../material-components/Misc/NumericalTextField\";\r\nimport { DeliveryType } from \"../../../../enums/company\";\r\nimport { updateAttribute, getUpdatedCPMandPOM } from \"../../../../actions/flowActions\";\r\nimport { requestCompanies, setLoadingCompany } from \"../../../../actions/userActions\";\r\nimport { parseDateToTimeZoneWithTime } from \"../../../../helpers/parseDate\";\r\n\r\n// used to remove arrow icons from number text fields\r\n// cant have those because we fail to update on click from 1 -> 0\r\n// due to using both selects and text fields\r\nconst styles = {\r\n input: {\r\n \"&[type=number]\": {\r\n \"-moz-appearance\": \"textfield\",\r\n },\r\n \"&::-webkit-outer-spin-button\": {\r\n \"-webkit-appearance\": \"none\",\r\n margin: 0,\r\n },\r\n \"&::-webkit-inner-spin-button\": {\r\n \"-webkit-appearance\": \"none\",\r\n margin: 0,\r\n },\r\n },\r\n};\r\n\r\nconst ExpandLess = expand_less;\r\nconst ExpandMore = expand_more;\r\nconst USDollar = new Intl.NumberFormat(\"en-US\", {\r\n style: \"currency\",\r\n currency: \"USD\",\r\n});\r\n\r\nconst ExportTradeDeskTemplateFields = ({\r\n tapadDeliveryTypeId,\r\n destinationId,\r\n flowExportTradeDeskTemplateFields,\r\n canEdit,\r\n classes,\r\n}) => {\r\n const dispatch = useDispatch();\r\n const tableRef = useRef();\r\n\r\n const defaultExpansionType = \"HOUSEHOLD\";\r\n\r\n // state\r\n const [templateRows, setTemplateRows] = useState([]);\r\n const [deliveryType, setDeliveryType] = useState();\r\n const [isOpenGlobalAssignment, setIsOpenGlobalAssignment] = useState(false);\r\n const [globalExpansionType, setGlobalExpansionType] = useState(defaultExpansionType);\r\n const [globalPercentOfMediaCost, setGlobalPercentOfMediaCost] = useState(0);\r\n const [globalCostPerMillion, setGlobalCostPerMillion] = useState(0);\r\n const [globalExpirationDate, setGlobalExpirationDate] = useState();\r\n const [refreshTable, setRefreshTable] = useState(0);\r\n\r\n // props\r\n const companies = useSelector(state => state.companies.byId);\r\n const loadingCompanies = useSelector(state => state.vars.loadingCompanies);\r\n const flow = useSelector(state => state.flows.byId[state.selected.flow]);\r\n const timeZoneIana = useSelector(state => state.session.userSettings[\"time-zone-iana\"]);\r\n const tapadDeliveryTypes = useSelector(state => state.vars.tapadDeliveryTypes);\r\n const enabledFeatures = useSelector(state => state.session.enabledFeatures);\r\n\r\n // Variables use to calcuate CPM and POM\r\n const flowItems = useSelector(state => state.flowItems.byId);\r\n const hasFeatureDisplayFieldRates = enabledFeatures.includes(\"display-field-rates\");\r\n\r\n const renderTemplateRows = () => {\r\n let rows = [];\r\n\r\n // Set default parentElementId and ParentElementName\r\n let defaultParentElementId = \"\";\r\n let defaultParentElementName = \"\";\r\n\r\n if (deliveryType) {\r\n if (DeliveryType.ThirdPartyCustom == deliveryType.DeliveryType) {\r\n defaultParentElementId = deliveryType.ParentElementId;\r\n defaultParentElementName = deliveryType.ParentElementName;\r\n }\r\n }\r\n\r\n if (flowExportTradeDeskTemplateFields != null) {\r\n for (const template of flowExportTradeDeskTemplateFields) {\r\n // if the date is null, not showing a default date because it makes the user think it's good\r\n // only happens when saving an old flow with null ExpirationDate\r\n const formattedRunDate = template.ExpirationDate\r\n ? new Date(parseDateToTimeZoneWithTime(template.ExpirationDate, timeZoneIana))\r\n : null;\r\n\r\n if (deliveryType && DeliveryType.ThirdPartyCustom == deliveryType.DeliveryType) {\r\n if (template.ParentElementId == null) {\r\n dispatch(\r\n updateAttribute(\r\n \"flowExportTradeDeskTemplateFields\",\r\n template.FlowExportTemplateId,\r\n \"ParentElementId\",\r\n defaultParentElementId\r\n )\r\n );\r\n }\r\n\r\n if (template.ParentElementName == null) {\r\n dispatch(\r\n updateAttribute(\r\n \"flowExportTradeDeskTemplateFields\",\r\n template.FlowExportTemplateId,\r\n \"ParentElementName\",\r\n defaultParentElementName\r\n )\r\n );\r\n }\r\n }\r\n\r\n // Default Expansion Type\r\n if (!template.ExpansionType || template.ExpansionType == \"\") {\r\n dispatch(\r\n updateAttribute(\r\n \"flowExportTradeDeskTemplateFields\",\r\n template.FlowExportTemplateId,\r\n \"ExpansionType\",\r\n defaultExpansionType\r\n )\r\n );\r\n }\r\n\r\n if (deliveryType && DeliveryType.ThirdPartyCustom == deliveryType.DeliveryType) {\r\n if (template.RateType != \"Hybrid\") {\r\n handleRateTypeChange(template.FlowExportTemplateId, \"Hybrid\");\r\n }\r\n }\r\n\r\n rows.push({\r\n FlowExportTemplateId: template.FlowExportTemplateId,\r\n ParentFlowItemId: template.ParentFlowItemId,\r\n AudienceName: template.AudienceName || \"\",\r\n Description: template.Description || \"\",\r\n ExpansionType: template.ExpansionType || defaultExpansionType,\r\n RateType: template.RateType || \"CPM\",\r\n CostPerMillion: template.CostPerMillion || 0,\r\n PercentOfMediaCost: template.PercentOfMediaCost || 0,\r\n TTL: template.TTL || 0,\r\n ExpirationDate: formattedRunDate,\r\n ProviderElementId: template.ProviderElementId || \"\",\r\n ParentElementId:\r\n template.ParentElementId != null ? template.ParentElementId : defaultParentElementId,\r\n ParentElementName:\r\n template.ParentElementName != null ? template.ParentElementName : defaultParentElementName,\r\n IsAutoGeneratedCPM: template.IsAutoGeneratedCPM,\r\n IsAutoGeneratedPOM: template.IsAutoGeneratedPOM,\r\n });\r\n }\r\n }\r\n\r\n setTemplateRows(rows);\r\n setRefreshTable(refreshTable + 1);\r\n };\r\n\r\n // effects\r\n useEffect(() => {\r\n renderTemplateRows();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [destinationId, timeZoneIana, deliveryType, dispatch]);\r\n\r\n // effects\r\n\r\n useEffect(() => {\r\n if (!companies || (Object.keys(companies).length <= 0 && !loadingCompanies)) {\r\n dispatch(setLoadingCompany(true));\r\n dispatch(requestCompanies());\r\n }\r\n }, [dispatch, companies, loadingCompanies]);\r\n\r\n useEffect(() => {\r\n const thisDeliveryType = tapadDeliveryTypes.find(x => x.TapadDeliveryTypeId == tapadDeliveryTypeId);\r\n\r\n if (deliveryType && thisDeliveryType.TapadDeliveryTypeId != deliveryType.TapadDeliveryTypeId) {\r\n // addMissingFlowOfferMerges\r\n for (let i = 0; i < flowExportTradeDeskTemplateFields.length; i++) {\r\n const flowItemsArray = Object.values(flowItems);\r\n const FlowItem = flowItemsArray.find(\r\n x => x.FlowItemId == flowExportTradeDeskTemplateFields[i].ParentFlowItemId\r\n );\r\n\r\n const newCPMValue = dispatch(\r\n getUpdatedCPMandPOM(\r\n FlowItem,\r\n flowExportTradeDeskTemplateFields[i].FlowItemId,\r\n flowExportTradeDeskTemplateFields[i].ParentFlowItemId,\r\n hasFeatureDisplayFieldRates,\r\n 1\r\n )\r\n );\r\n flowExportTradeDeskTemplateFields[i].CostPerMillion = newCPMValue;\r\n const newPOMValue = dispatch(\r\n getUpdatedCPMandPOM(\r\n FlowItem,\r\n flowExportTradeDeskTemplateFields[i].FlowItemId,\r\n flowExportTradeDeskTemplateFields[i].ParentFlowItemId,\r\n hasFeatureDisplayFieldRates,\r\n 2\r\n )\r\n );\r\n flowExportTradeDeskTemplateFields[i].PercentOfMediaCost = newPOMValue;\r\n flowExportTradeDeskTemplateFields[i].IsAutoGeneratedCPM = true;\r\n flowExportTradeDeskTemplateFields[i].IsAutoGeneratedPOM = true;\r\n }\r\n setTemplateRows(flowExportTradeDeskTemplateFields);\r\n renderTemplateRows();\r\n setRefreshTable(refreshTable + 1);\r\n }\r\n if (thisDeliveryType && flowExportTradeDeskTemplateFields.length > 0) {\r\n setDeliveryType(thisDeliveryType);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [tapadDeliveryTypeId, flowExportTradeDeskTemplateFields]);\r\n\r\n const selectAudienceName = cellInfo => {\r\n const rows = [...templateRows];\r\n const column = (\r\n {\r\n rows[cellInfo.tableData.id].AudienceName = e.target.value;\r\n setTemplateRows(rows);\r\n }}\r\n onBlur={e => handleChange(cellInfo.FlowExportTemplateId, \"AudienceName\", e)}\r\n fullWidth\r\n />\r\n );\r\n return column;\r\n };\r\n\r\n const selectDescription = cellInfo => {\r\n const rows = [...templateRows];\r\n const column = (\r\n {\r\n rows[cellInfo.tableData.id].Description = e.target.value;\r\n setTemplateRows(rows);\r\n }}\r\n onBlur={e => handleChange(cellInfo.FlowExportTemplateId, \"Description\", e)}\r\n fullWidth\r\n />\r\n );\r\n return column;\r\n };\r\n\r\n const selectExpansionType = cellInfo => {\r\n const rows = [...templateRows];\r\n const column = (\r\n {\r\n rows[cellInfo.tableData.id].ExpansionType = e.target.value;\r\n setTemplateRows(rows);\r\n handleExpansionTypeChange(cellInfo.FlowExportTemplateId, e);\r\n }}\r\n disabled={!canEdit || (flow && flow.IsLocked)}\r\n displayEmpty\r\n >\r\n \r\n Household\r\n \r\n \r\n );\r\n return column;\r\n };\r\n\r\n const selectExpirationDate = cellInfo => {\r\n const rows = [...templateRows];\r\n const column = (\r\n \r\n {\r\n const newDateTime = e.utc().format();\r\n rows[cellInfo.tableData.id].ExpirationDate = newDateTime;\r\n setTemplateRows(rows);\r\n handleDateTimeChange(cellInfo.FlowExportTemplateId, \"ExpirationDate\", newDateTime);\r\n setRefreshTable(refreshTable + 1);\r\n }}\r\n />\r\n \r\n );\r\n return column;\r\n };\r\n\r\n const selectRateType = cellInfo => {\r\n if (DeliveryType.ThirdPartyCustom == deliveryType?.DeliveryType) {\r\n return \"Hybrid\";\r\n }\r\n\r\n const rows = [...templateRows];\r\n const column = (\r\n {\r\n rows[cellInfo.tableData.id].RateType = e.target.value;\r\n setTemplateRows(rows);\r\n handleRateTypeChange(cellInfo.FlowExportTemplateId, e.target.value);\r\n }}\r\n disabled={!canEdit || (flow && flow.IsLocked)}\r\n displayEmpty\r\n >\r\n \r\n CPM\r\n \r\n \r\n % of Media Cost\r\n \r\n \r\n Hybrid\r\n \r\n \r\n );\r\n return column;\r\n };\r\n\r\n const getCellStyleCPM = (cellInfo, rowData) => {\r\n // const rows = [...templateRows];\r\n // var myRow = rows[cellInfo.FlowExportTemplateId];\r\n let isAutoGenerated = rowData.IsAutoGeneratedCPM;\r\n let cellstyleJSON;\r\n if (isAutoGenerated && hasFeatureDisplayFieldRates) {\r\n cellstyleJSON = {\r\n backgroundColor: \"#87CEEB\",\r\n color: \"#OOOO\",\r\n };\r\n } else {\r\n cellstyleJSON = {\r\n backgroundColor: \"#FFFF\",\r\n color: \"#OOOO\",\r\n };\r\n }\r\n\r\n return cellstyleJSON;\r\n };\r\n const getCellStylePOM = (cellInfo, rowData) => {\r\n // const rows = [...templateRows];\r\n // var myRow = rows[cellInfo.FlowExportTemplateId];\r\n let isAutoGenerated = rowData.IsAutoGeneratedPOM;\r\n let cellstyleJSON;\r\n if (isAutoGenerated && hasFeatureDisplayFieldRates) {\r\n cellstyleJSON = {\r\n backgroundColor: \"#87CEEB\",\r\n color: \"#OOOO\",\r\n };\r\n } else {\r\n cellstyleJSON = {\r\n backgroundColor: \"#FFFF\",\r\n color: \"#OOOO\",\r\n };\r\n }\r\n\r\n return cellstyleJSON;\r\n };\r\n\r\n const selectCostPerMillion = cellInfo => {\r\n const rows = [...templateRows];\r\n const column = (\r\n {\r\n rows[cellInfo.tableData.id].CostPerMillion = e.target.value.replace(/[^0-9.]/g, \"\");\r\n rows[cellInfo.tableData.id].IsAutoGeneratedCPM = false;\r\n setTemplateRows(rows);\r\n }}\r\n onBlur={e => {\r\n handlePositiveValueChange(\r\n cellInfo.tableData.id,\r\n cellInfo.FlowExportTemplateId,\r\n \"CostPerMillion\",\r\n e\r\n );\r\n }}\r\n />\r\n );\r\n return column;\r\n };\r\n\r\n const selectPercentOfMediaCost = cellInfo => {\r\n const rows = [...templateRows];\r\n const column = (\r\n {\r\n rows[cellInfo.tableData.id].PercentOfMediaCost = e.target.value.replace(/[^0-9.]/g, \"\");\r\n rows[cellInfo.tableData.id].IsAutoGeneratedPOM = false;\r\n setTemplateRows(rows);\r\n }}\r\n onBlur={e =>\r\n handlePositiveValueChange(\r\n cellInfo.tableData.id,\r\n cellInfo.FlowExportTemplateId,\r\n \"PercentOfMediaCost\",\r\n e\r\n )\r\n }\r\n />\r\n );\r\n return column;\r\n };\r\n\r\n const selectParentElementId = cellInfo => {\r\n const rows = [...templateRows];\r\n const column = (\r\n {\r\n rows[cellInfo.tableData.id].ParentElementId = e.target.value;\r\n setTemplateRows(rows);\r\n }}\r\n onBlur={e => handleChange(cellInfo.FlowExportTemplateId, \"ParentElementId\", e)}\r\n />\r\n );\r\n return column;\r\n };\r\n\r\n const selectParentElementName = cellInfo => {\r\n const rows = [...templateRows];\r\n const column = (\r\n {\r\n rows[cellInfo.tableData.id].ParentElementName = e.target.value;\r\n setTemplateRows(rows);\r\n }}\r\n onBlur={e => handleChange(cellInfo.FlowExportTemplateId, \"ParentElementName\", e)}\r\n />\r\n );\r\n return column;\r\n };\r\n\r\n const handleChange = (TemplateId, attributeName, e) =>\r\n dispatch(updateAttribute(\"flowExportTradeDeskTemplateFields\", TemplateId, attributeName, e.target.value));\r\n\r\n const handleDateTimeChange = (TemplateId, attributeName, newDateTime) => {\r\n dispatch(updateAttribute(\"flowExportTradeDeskTemplateFields\", TemplateId, attributeName, newDateTime));\r\n };\r\n\r\n const handleGlobalDateTimeChange = newDateTime => {\r\n const utcDateTime = newDateTime.utc().format();\r\n setGlobalExpirationDate(utcDateTime);\r\n };\r\n\r\n const handlePositiveValueChange = (rowID, TemplateId, attributeName, e) => {\r\n const rows = [...templateRows];\r\n const templateIneed = flowExportTradeDeskTemplateFields.find(x => x.FlowExportTemplateId == TemplateId);\r\n let positiveValue = 0;\r\n if (e.target.value != null) {\r\n let thisVal = e.target.value.replace(/[^0-9.]/g, \"\");\r\n\r\n if (thisVal > 0) {\r\n positiveValue = thisVal;\r\n }\r\n }\r\n if (attributeName == \"CostPerMillion\" && templateIneed.CostPerMillion == positiveValue) {\r\n return;\r\n }\r\n if (attributeName == \"PercentOfMediaCost\" && templateIneed.PercentOfMediaCost == positiveValue) {\r\n return;\r\n }\r\n //tapadDeliveryTypes.find(x => x.TapadDeliveryTypeId == tapadDeliveryTypeId);\r\n if (attributeName == \"CostPerMillion\") {\r\n dispatch(\r\n updateAttribute(\"flowExportTradeDeskTemplateFields\", TemplateId, \"IsAutoGeneratedCPM\", false, true)\r\n );\r\n rows[rowID].IsAutoGeneratedCPM = false;\r\n } else {\r\n dispatch(\r\n updateAttribute(\"flowExportTradeDeskTemplateFields\", TemplateId, \"IsAutoGeneratedPOM\", false, true)\r\n );\r\n rows[rowID].IsAutoGeneratedPOM = false;\r\n }\r\n dispatch(updateAttribute(\"flowExportTradeDeskTemplateFields\", TemplateId, attributeName, positiveValue, true));\r\n setTemplateRows(rows);\r\n // setRefreshTable(refreshTable + 1);\r\n };\r\n\r\n const handleGlobalPositiveValueChange = (attributeName, e) => {\r\n let positiveValue = 0;\r\n if (e.target.value != null) {\r\n let thisVal = e.target.value.replace(/[^0-9.]/g, \"\");\r\n\r\n if (thisVal > 0) {\r\n positiveValue = thisVal;\r\n }\r\n }\r\n\r\n if (attributeName == \"PercentOfMediaCost\") {\r\n setGlobalPercentOfMediaCost(positiveValue);\r\n } else {\r\n setGlobalCostPerMillion(positiveValue);\r\n }\r\n };\r\n\r\n const handleRateTypeChange = (TemplateId, value) =>\r\n dispatch(updateAttribute(\"flowExportTradeDeskTemplateFields\", TemplateId, \"RateType\", value));\r\n\r\n const handleExpansionTypeChange = (TemplateId, e) =>\r\n dispatch(updateAttribute(\"flowExportTradeDeskTemplateFields\", TemplateId, \"ExpansionType\", e.target.value));\r\n\r\n const assignGlobalValues = () => {\r\n if (flowExportTradeDeskTemplateFields != null) {\r\n for (const template of flowExportTradeDeskTemplateFields) {\r\n // Set Expansion Type\r\n dispatch(\r\n updateAttribute(\r\n \"flowExportTradeDeskTemplateFields\",\r\n template.FlowExportTemplateId,\r\n \"ExpansionType\",\r\n globalExpansionType\r\n )\r\n );\r\n\r\n // Set Expiration Date\r\n dispatch(\r\n updateAttribute(\r\n \"flowExportTradeDeskTemplateFields\",\r\n template.FlowExportTemplateId,\r\n \"ExpirationDate\",\r\n globalExpirationDate\r\n )\r\n );\r\n\r\n if (DeliveryType.ThirdPartyCustom == deliveryType?.DeliveryType) {\r\n // Set Percent Of Media Cost\r\n dispatch(\r\n updateAttribute(\r\n \"flowExportTradeDeskTemplateFields\",\r\n template.FlowExportTemplateId,\r\n \"PercentOfMediaCost\",\r\n globalPercentOfMediaCost\r\n )\r\n );\r\n\r\n // Set Cost Per Million\r\n dispatch(\r\n updateAttribute(\r\n \"flowExportTradeDeskTemplateFields\",\r\n template.FlowExportTemplateId,\r\n \"CostPerMillion\",\r\n globalCostPerMillion\r\n )\r\n );\r\n // Set IsAutoGenerated\r\n dispatch(\r\n updateAttribute(\r\n \"flowExportTradeDeskTemplateFields\",\r\n template.FlowExportTemplateId,\r\n \"IsAutoGeneratedCPM\",\r\n false\r\n )\r\n );\r\n dispatch(\r\n updateAttribute(\r\n \"flowExportTradeDeskTemplateFields\",\r\n template.FlowExportTemplateId,\r\n \"IsAutoGeneratedPOM\",\r\n false\r\n )\r\n );\r\n }\r\n }\r\n\r\n const rows = [...templateRows];\r\n for (let row of rows) {\r\n row.ExpansionType = globalExpansionType;\r\n row.ExpirationDate = globalExpirationDate;\r\n\r\n if (DeliveryType.ThirdPartyCustom == deliveryType?.DeliveryType) {\r\n row.PercentOfMediaCost = globalPercentOfMediaCost;\r\n row.CostPerMillion = globalCostPerMillion;\r\n row.IsAutoGeneratedCPM = false;\r\n row.IsAutoGeneratedPOM = false;\r\n }\r\n }\r\n\r\n setTemplateRows(rows);\r\n setRefreshTable(refreshTable + 1);\r\n }\r\n };\r\n\r\n const getColumns = useMemo(() => {\r\n const thisDeliveryType = tapadDeliveryTypes.find(x => x.TapadDeliveryTypeId == tapadDeliveryTypeId);\r\n let columnData = [\r\n {\r\n title: \"Audience Name\",\r\n field: \"AudienceName\",\r\n render: rowData => selectAudienceName(rowData),\r\n headerStyle: {\r\n backgroundColor: \"#0075bc\",\r\n color: \"#fff\",\r\n fontWeight: 400,\r\n fontSize: \"14px\",\r\n },\r\n\r\n width: 150,\r\n minWidth: 150,\r\n },\r\n {\r\n title: \"Description\",\r\n field: \"Description\",\r\n render: rowData => selectDescription(rowData),\r\n headerStyle: {\r\n backgroundColor: \"#0075bc\",\r\n color: \"#fff\",\r\n fontWeight: 400,\r\n fontSize: \"14px\",\r\n },\r\n\r\n width: 150,\r\n minWidth: 150,\r\n },\r\n {\r\n title: \"Expansion Type\",\r\n field: \"ExpansionType\",\r\n render: rowData => selectExpansionType(rowData),\r\n headerStyle: {\r\n backgroundColor: \"#0075bc\",\r\n color: \"#fff\",\r\n fontWeight: 400,\r\n fontSize: \"14px\",\r\n },\r\n width: 150,\r\n minWidth: 150,\r\n },\r\n {\r\n title: \"Expiration Date\",\r\n field: \"ExpirationDate\",\r\n render: rowData => selectExpirationDate(rowData),\r\n headerStyle: {\r\n backgroundColor: \"#0075bc\",\r\n color: \"#fff\",\r\n fontWeight: 400,\r\n fontSize: \"14px\",\r\n },\r\n width: 150,\r\n minWidth: 150,\r\n },\r\n ];\r\n\r\n if (DeliveryType.ThirdPartyCustom == thisDeliveryType?.DeliveryType) {\r\n columnData.push({\r\n title: \"Rate Type\",\r\n field: \"RateType\",\r\n render: rowData => selectRateType(rowData),\r\n headerStyle: {\r\n backgroundColor: \"#0075bc\",\r\n color: \"#fff\",\r\n fontWeight: 400,\r\n fontSize: \"14px\",\r\n },\r\n width: 150,\r\n minWidth: 150,\r\n });\r\n\r\n columnData.push({\r\n title: \"CPM ($)\",\r\n field: \"CostPerMillion\",\r\n cellStyle: (cellValue, rowData) => getCellStyleCPM(cellValue, rowData),\r\n render: rowData => selectCostPerMillion(rowData),\r\n headerStyle: {\r\n backgroundColor: \"#0075bc\",\r\n color: \"#fff\",\r\n fontWeight: 400,\r\n fontSize: \"14px\",\r\n },\r\n width: 150,\r\n minWidth: 150,\r\n });\r\n\r\n columnData.push({\r\n title: \"% of Media Cost\",\r\n field: \"PercentOfMediaCost\",\r\n cellStyle: (cellValue, rowData) => getCellStylePOM(cellValue, rowData),\r\n render: rowData => selectPercentOfMediaCost(rowData),\r\n headerStyle: {\r\n backgroundColor: \"#0075bc\",\r\n color: \"#fff\",\r\n fontWeight: 400,\r\n fontSize: \"14px\",\r\n },\r\n width: 150,\r\n minWidth: 150,\r\n });\r\n\r\n columnData.push({\r\n title: \"Parent Element Id\",\r\n field: \"ParentElementId\",\r\n render: rowData => selectParentElementId(rowData),\r\n headerStyle: {\r\n backgroundColor: \"#0075bc\",\r\n color: \"#fff\",\r\n fontWeight: 400,\r\n fontSize: \"14px\",\r\n },\r\n width: 150,\r\n minWidth: 150,\r\n });\r\n\r\n columnData.push({\r\n title: \"Parent Element Name\",\r\n field: \"ParentElementName\",\r\n render: rowData => selectParentElementName(rowData),\r\n headerStyle: {\r\n backgroundColor: \"#0075bc\",\r\n color: \"#fff\",\r\n fontWeight: 400,\r\n fontSize: \"14px\",\r\n },\r\n width: 150,\r\n minWidth: 150,\r\n });\r\n }\r\n\r\n return columnData;\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [refreshTable, deliveryType, canEdit, flow, tapadDeliveryTypeId, tapadDeliveryTypes]);\r\n\r\n const theme = createTheme({\r\n overrides: {\r\n MuiTable: {\r\n root: {\r\n marginTop: \"0px !important\",\r\n },\r\n },\r\n MuiTableCell: {\r\n root: {\r\n fontSize: \"14px\",\r\n },\r\n },\r\n },\r\n });\r\n\r\n return (\r\n <>\r\n
\r\n
\r\n

Driver File Fields

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n setIsOpenGlobalAssignment(!isOpenGlobalAssignment)}\r\n >\r\n Global Fields Assignment\r\n \r\n {isOpenGlobalAssignment ? ExpandLess : ExpandMore}\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n Expansion Type\r\n \r\n setGlobalExpansionType(e.target.value)}\r\n disabled={!canEdit || (flow && flow.IsLocked)}\r\n displayEmpty\r\n >\r\n \r\n Household\r\n \r\n \r\n \r\n {DeliveryType.ThirdPartyCustom == deliveryType?.DeliveryType ? (\r\n handleGlobalPositiveValueChange(\"PercentOfMediaCost\", e)}\r\n />\r\n ) : null}\r\n
\r\n
\r\n {DeliveryType.ThirdPartyCustom == deliveryType?.DeliveryType ? (\r\n handleGlobalPositiveValueChange(\"CostPerMillion\", e)}\r\n />\r\n ) : null}\r\n \r\n handleGlobalDateTimeChange(e)}\r\n />\r\n \r\n
\r\n
\r\n \r\n Assign\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\nExportTradeDeskTemplateFields.propTypes = {\r\n tapadDeliveryTypeId: PropTypes.number,\r\n destinationId: PropTypes.number,\r\n flowExportTradeDeskTemplateFields: PropTypes.array,\r\n canEdit: PropTypes.bool,\r\n classes: PropTypes.any,\r\n};\r\n\r\nexport default withStyles(styles)(ExportTradeDeskTemplateFields);\r\n","import React, { useState, useEffect, useMemo, useRef } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport PropTypes from \"prop-types\";\r\nimport { ThemeProvider, createTheme, withStyles } from \"@material-ui/core/styles\";\r\nimport Divider from \"@material-ui/core/Divider\";\r\nimport TextField from \"@material-ui/core/TextField\";\r\nimport Select from \"@material-ui/core/Select\";\r\nimport MenuItem from \"@material-ui/core/MenuItem\";\r\nimport Collapse from \"@material-ui/core/Collapse\";\r\nimport ListItem from \"@material-ui/core/ListItem\";\r\nimport Button from \"@material-ui/core/Button\";\r\nimport FormControl from \"@material-ui/core/FormControl\";\r\nimport InputLabel from \"@material-ui/core/InputLabel\";\r\nimport MaterialTable from \"@material-table/core\";\r\nimport MomentUtils from \"@date-io/moment\";\r\nimport { DateTimePicker, MuiPickersUtilsProvider } from \"@material-ui/pickers\";\r\nimport NumericalTextField from \"../../../material-components/Misc/NumericalTextField\";\r\nimport { DeliveryType } from \"../../../../enums/company\";\r\nimport { updateAttribute, getUpdatedCPMandPOM } from \"../../../../actions/flowActions\";\r\nimport { requestCompanies, setLoadingCompany } from \"../../../../actions/userActions\";\r\nimport { parseDateToTimeZoneWithTime } from \"../../../../helpers/parseDate\";\r\n\r\n// used to remove arrow icons from number text fields\r\n// cant have those because we fail to update on click from 1 -> 0\r\n// due to using both selects and text fields\r\nconst styles = {\r\n input: {\r\n \"&[type=number]\": {\r\n \"-moz-appearance\": \"textfield\",\r\n },\r\n \"&::-webkit-outer-spin-button\": {\r\n \"-webkit-appearance\": \"none\",\r\n margin: 0,\r\n },\r\n \"&::-webkit-inner-spin-button\": {\r\n \"-webkit-appearance\": \"none\",\r\n margin: 0,\r\n },\r\n },\r\n};\r\n\r\nconst ExpandLess = expand_less ;\r\nconst ExpandMore = expand_more ;\r\nconst USDollar = new Intl.NumberFormat(\"en-US\", {\r\n style: \"currency\",\r\n currency: \"USD\",\r\n});\r\n\r\nconst ExportPubmaticTemplateFields = ({\r\n tapadDeliveryTypeId,\r\n destinationId,\r\n flowExportPubmaticTemplateFields,\r\n canEdit,\r\n classes,\r\n}) => {\r\n const dispatch = useDispatch();\r\n const tableRef = useRef();\r\n\r\n const defaultExpansionType = \"HOUSEHOLD\";\r\n\r\n // state\r\n const [templateRows, setTemplateRows] = useState([]);\r\n const [deliveryType, setDeliveryType] = useState();\r\n const [isOpenGlobalAssignment, setIsOpenGlobalAssignment] = useState(false);\r\n const [globalExpansionType, setGlobalExpansionType] = useState(defaultExpansionType);\r\n const [globalPercentOfMediaCost, setGlobalPercentOfMediaCost] = useState(0);\r\n const [globalCostPerMillion, setGlobalCostPerMillion] = useState(0);\r\n const [globalExpirationDate, setGlobalExpirationDate] = useState();\r\n const [refreshTable, setRefreshTable] = useState(0);\r\n\r\n // props\r\n const companies = useSelector(state => state.companies.byId);\r\n const loadingCompanies = useSelector(state => state.vars.loadingCompanies);\r\n const flow = useSelector(state => state.flows.byId[state.selected.flow]);\r\n const timeZoneIana = useSelector(state => state.session.userSettings[\"time-zone-iana\"]);\r\n const tapadDeliveryTypes = useSelector(state => state.vars.tapadDeliveryTypes);\r\n const enabledFeatures = useSelector(state => state.session.enabledFeatures);\r\n\r\n // Variables use to calcuate CPM and POM\r\n const flowItems = useSelector(state => state.flowItems.byId);\r\n const hasFeatureDisplayFieldRates = enabledFeatures.includes(\"display-field-rates\");\r\n\r\n const renderTemplateRows = () => {\r\n let rows = [];\r\n\r\n // Set default parentElementId and ParentElementName\r\n let defaultParentElementId = \"\";\r\n let defaultParentElementName = \"\";\r\n\r\n if (deliveryType) {\r\n if (DeliveryType.ThirdPartyCustom == deliveryType.DeliveryType) {\r\n defaultParentElementId = \"\";\r\n defaultParentElementName = \"\";\r\n }\r\n }\r\n\r\n if (flowExportPubmaticTemplateFields != null) {\r\n for (const template of flowExportPubmaticTemplateFields) {\r\n // if the date is null, not showing a default date because it makes the user think it's good\r\n // only happens when saving an old flow with null ExpirationDate\r\n const formattedRunDate = template.ExpirationDate\r\n ? new Date(parseDateToTimeZoneWithTime(template.ExpirationDate, timeZoneIana))\r\n : null;\r\n\r\n if (deliveryType && DeliveryType.ThirdPartyCustom == deliveryType.DeliveryType) {\r\n if (template.ParentElementId == null) {\r\n dispatch(\r\n updateAttribute(\r\n \"flowExportPubmaticTemplateFields\",\r\n template.FlowExportTemplateId,\r\n \"ParentElementId\",\r\n defaultParentElementId\r\n )\r\n );\r\n }\r\n\r\n if (template.ParentElementName == null) {\r\n dispatch(\r\n updateAttribute(\r\n \"flowExportPubmaticTemplateFields\",\r\n template.FlowExportTemplateId,\r\n \"ParentElementName\",\r\n defaultParentElementName\r\n )\r\n );\r\n }\r\n }\r\n\r\n // Default Expansion Type\r\n if (!template.ExpansionType || template.ExpansionType == \"\") {\r\n dispatch(\r\n updateAttribute(\r\n \"flowExportPubmaticTemplateFields\",\r\n template.FlowExportTemplateId,\r\n \"ExpansionType\",\r\n defaultExpansionType\r\n )\r\n );\r\n }\r\n\r\n if (deliveryType && DeliveryType.ThirdPartyCustom == deliveryType.DeliveryType) {\r\n if (template.RateType != \"Hybrid\") {\r\n handleRateTypeChange(template.FlowExportTemplateId, \"\");\r\n }\r\n }\r\n\r\n rows.push({\r\n FlowExportTemplateId: template.FlowExportTemplateId,\r\n ParentFlowItemId: template.ParentFlowItemId,\r\n AudienceName: template.AudienceName || \"\",\r\n Description: template.Description || \"\",\r\n ExpansionType: template.ExpansionType || defaultExpansionType,\r\n RateType: \"\",\r\n CostPerMillion: template.CostPerMillion || 0,\r\n PercentOfMediaCost: template.PercentOfMediaCost || 0,\r\n TTL: template.TTL || 0,\r\n ExpirationDate: formattedRunDate,\r\n ProviderElementId: template.ProviderElementId || \"\",\r\n ParentElementId:\r\n template.ParentElementId != null ? \"\" : defaultParentElementId,\r\n ParentElementName:\r\n template.ParentElementName != null ? \"\" : defaultParentElementName,\r\n IsAutoGeneratedCPM: template.IsAutoGeneratedCPM,\r\n IsAutoGeneratedPOM: template.IsAutoGeneratedPOM,\r\n });\r\n }\r\n }\r\n\r\n setTemplateRows(rows);\r\n setRefreshTable(refreshTable + 1);\r\n };\r\n\r\n // effects\r\n useEffect(() => {\r\n renderTemplateRows();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [destinationId, timeZoneIana, deliveryType, dispatch]);\r\n\r\n // effects\r\n\r\n useEffect(() => {\r\n if (!companies || (Object.keys(companies).length <= 0 && !loadingCompanies)) {\r\n dispatch(setLoadingCompany(true));\r\n dispatch(requestCompanies());\r\n }\r\n }, [dispatch, companies, loadingCompanies]);\r\n\r\n useEffect(() => {\r\n const thisDeliveryType = tapadDeliveryTypes.find(x => x.TapadDeliveryTypeId == tapadDeliveryTypeId);\r\n\r\n if (deliveryType && thisDeliveryType.TapadDeliveryTypeId != deliveryType.TapadDeliveryTypeId) {\r\n // addMissingFlowOfferMerges\r\n for (let i = 0; i < flowExportPubmaticTemplateFields.length; i++) {\r\n const flowItemsArray = Object.values(flowItems);\r\n const FlowItem = flowItemsArray.find(\r\n x => x.FlowItemId == flowExportPubmaticTemplateFields[i].ParentFlowItemId\r\n );\r\n\r\n const newCPMValue = dispatch(\r\n getUpdatedCPMandPOM(\r\n FlowItem,\r\n flowExportPubmaticTemplateFields[i].FlowItemId,\r\n flowExportPubmaticTemplateFields[i].ParentFlowItemId,\r\n hasFeatureDisplayFieldRates,\r\n 1\r\n )\r\n );\r\n flowExportPubmaticTemplateFields[i].CostPerMillion = newCPMValue;\r\n flowExportPubmaticTemplateFields[i].PercentOfMediaCost = 0;\r\n flowExportPubmaticTemplateFields[i].IsAutoGeneratedCPM = true;\r\n flowExportPubmaticTemplateFields[i].IsAutoGeneratedPOM = true;\r\n }\r\n setTemplateRows(flowExportPubmaticTemplateFields);\r\n renderTemplateRows();\r\n setRefreshTable(refreshTable + 1);\r\n }\r\n if (thisDeliveryType && flowExportPubmaticTemplateFields.length > 0) {\r\n setDeliveryType(thisDeliveryType);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [tapadDeliveryTypeId, flowExportPubmaticTemplateFields]);\r\n\r\n const selectAudienceName = cellInfo => {\r\n const rows = [...templateRows];\r\n const column = (\r\n {\r\n rows[cellInfo.tableData.id].AudienceName = e.target.value;\r\n setTemplateRows(rows);\r\n }}\r\n onBlur={e => handleChange(cellInfo.FlowExportTemplateId, \"AudienceName\", e)}\r\n fullWidth\r\n />\r\n );\r\n return column;\r\n };\r\n\r\n const selectDescription = cellInfo => {\r\n const rows = [...templateRows];\r\n const column = (\r\n {\r\n rows[cellInfo.tableData.id].Description = e.target.value;\r\n setTemplateRows(rows);\r\n }}\r\n onBlur={e => handleChange(cellInfo.FlowExportTemplateId, \"Description\", e)}\r\n fullWidth\r\n />\r\n );\r\n return column;\r\n };\r\n\r\n const selectExpansionType = cellInfo => {\r\n const rows = [...templateRows];\r\n const column = (\r\n {\r\n rows[cellInfo.tableData.id].ExpansionType = e.target.value;\r\n setTemplateRows(rows);\r\n handleExpansionTypeChange(cellInfo.FlowExportTemplateId, e);\r\n }}\r\n disabled={!canEdit || (flow && flow.IsLocked)}\r\n displayEmpty\r\n >\r\n \r\n Household\r\n \r\n \r\n );\r\n return column;\r\n };\r\n\r\n const selectExpirationDate = cellInfo => {\r\n const rows = [...templateRows];\r\n const column = (\r\n \r\n {\r\n const newDateTime = e.utc().format();\r\n rows[cellInfo.tableData.id].ExpirationDate = newDateTime;\r\n setTemplateRows(rows);\r\n handleDateTimeChange(cellInfo.FlowExportTemplateId, \"ExpirationDate\", newDateTime);\r\n setRefreshTable(refreshTable + 1);\r\n }}\r\n />\r\n \r\n );\r\n return column;\r\n };\r\n\r\n const getCellStyleCPM = (cellInfo, rowData) => {\r\n // const rows = [...templateRows];\r\n // var myRow = rows[cellInfo.FlowExportTemplateId];\r\n let isAutoGenerated = rowData.IsAutoGeneratedCPM;\r\n let cellstyleJSON;\r\n if (isAutoGenerated && hasFeatureDisplayFieldRates) {\r\n cellstyleJSON = {\r\n backgroundColor: \"#87CEEB\",\r\n color: \"#OOOO\",\r\n };\r\n } else {\r\n cellstyleJSON = {\r\n backgroundColor: \"#FFFF\",\r\n color: \"#OOOO\",\r\n };\r\n }\r\n\r\n return cellstyleJSON;\r\n };\r\n const selectCostPerMillion = cellInfo => {\r\n const rows = [...templateRows];\r\n const column = (\r\n {\r\n rows[cellInfo.tableData.id].CostPerMillion = e.target.value.replace(/[^0-9.]/g, \"\");\r\n rows[cellInfo.tableData.id].IsAutoGeneratedCPM = false;\r\n setTemplateRows(rows);\r\n }}\r\n onBlur={e => {\r\n handlePositiveValueChange(\r\n cellInfo.tableData.id,\r\n cellInfo.FlowExportTemplateId,\r\n \"CostPerMillion\",\r\n e\r\n );\r\n }}\r\n />\r\n );\r\n return column;\r\n };\r\n\r\n const handleChange = (TemplateId, attributeName, e) =>\r\n dispatch(updateAttribute(\"flowExportPubmaticTemplateFields\", TemplateId, attributeName, e.target.value));\r\n\r\n const handleDateTimeChange = (TemplateId, attributeName, newDateTime) => {\r\n dispatch(updateAttribute(\"flowExportPubmaticTemplateFields\", TemplateId, attributeName, newDateTime));\r\n };\r\n\r\n const handleGlobalDateTimeChange = newDateTime => {\r\n const utcDateTime = newDateTime.utc().format();\r\n setGlobalExpirationDate(utcDateTime);\r\n };\r\n\r\n const handlePositiveValueChange = (rowID, TemplateId, attributeName, e) => {\r\n const rows = [...templateRows];\r\n const templateIneed = flowExportPubmaticTemplateFields.find(x => x.FlowExportTemplateId == TemplateId);\r\n let positiveValue = 0;\r\n if (e.target.value != null) {\r\n let thisVal = e.target.value.replace(/[^0-9.]/g, \"\");\r\n\r\n if (thisVal > 0) {\r\n positiveValue = thisVal;\r\n }\r\n }\r\n if (attributeName == \"CostPerMillion\" && templateIneed.CostPerMillion == positiveValue) {\r\n return;\r\n }\r\n if (attributeName == \"PercentOfMediaCost\" && templateIneed.PercentOfMediaCost == positiveValue) {\r\n return;\r\n }\r\n //tapadDeliveryTypes.find(x => x.TapadDeliveryTypeId == tapadDeliveryTypeId);\r\n if (attributeName == \"CostPerMillion\") {\r\n dispatch(\r\n updateAttribute(\"flowExportPubmaticTemplateFields\", TemplateId, \"IsAutoGeneratedCPM\", false, true)\r\n );\r\n rows[rowID].IsAutoGeneratedCPM = false;\r\n } else {\r\n dispatch(\r\n updateAttribute(\"flowExportPubmaticTemplateFields\", TemplateId, \"IsAutoGeneratedPOM\", false, true)\r\n );\r\n rows[rowID].IsAutoGeneratedPOM = false;\r\n }\r\n dispatch(updateAttribute(\"flowExportPubmaticTemplateFields\", TemplateId, attributeName, positiveValue, true));\r\n setTemplateRows(rows);\r\n // setRefreshTable(refreshTable + 1);\r\n };\r\n\r\n const handleGlobalPositiveValueChange = (attributeName, e) => {\r\n let positiveValue = 0;\r\n if (e.target.value != null) {\r\n let thisVal = e.target.value.replace(/[^0-9.]/g, \"\");\r\n\r\n if (thisVal > 0) {\r\n positiveValue = thisVal;\r\n }\r\n }\r\n\r\n if (attributeName == \"PercentOfMediaCost\") {\r\n setGlobalPercentOfMediaCost(0);\r\n } else {\r\n setGlobalCostPerMillion(positiveValue);\r\n }\r\n };\r\n\r\n const handleRateTypeChange = (TemplateId, value) =>\r\n dispatch(updateAttribute(\"flowExportPubmaticTemplateFields\", TemplateId, \"RateType\", value));\r\n\r\n const handleExpansionTypeChange = (TemplateId, e) =>\r\n dispatch(updateAttribute(\"flowExportPubmaticTemplateFields\", TemplateId, \"ExpansionType\", e.target.value));\r\n\r\n const assignGlobalValues = () => {\r\n if (flowExportPubmaticTemplateFields != null) {\r\n for (const template of flowExportPubmaticTemplateFields) {\r\n // Set Expansion Type\r\n dispatch(\r\n updateAttribute(\r\n \"flowExportPubmaticTemplateFields\",\r\n template.FlowExportTemplateId,\r\n \"ExpansionType\",\r\n globalExpansionType\r\n )\r\n );\r\n\r\n // Set Expiration Date\r\n dispatch(\r\n updateAttribute(\r\n \"flowExportPubmaticTemplateFields\",\r\n template.FlowExportTemplateId,\r\n \"ExpirationDate\",\r\n globalExpirationDate\r\n )\r\n );\r\n\r\n if (DeliveryType.ThirdPartyCustom == deliveryType?.DeliveryType) {\r\n // Set Percent Of Media Cost\r\n dispatch(\r\n updateAttribute(\r\n \"flowExportPubmaticTemplateFields\",\r\n template.FlowExportTemplateId,\r\n \"PercentOfMediaCost\",\r\n globalPercentOfMediaCost\r\n )\r\n );\r\n\r\n // Set Cost Per Million\r\n dispatch(\r\n updateAttribute(\r\n \"flowExportPubmaticTemplateFields\",\r\n template.FlowExportTemplateId,\r\n \"CostPerMillion\",\r\n globalCostPerMillion\r\n )\r\n );\r\n // Set IsAutoGenerated\r\n dispatch(\r\n updateAttribute(\r\n \"flowExportPubmaticTemplateFields\",\r\n template.FlowExportTemplateId,\r\n \"IsAutoGeneratedCPM\",\r\n false\r\n )\r\n );\r\n dispatch(\r\n updateAttribute(\r\n \"flowExportPubmaticTemplateFields\",\r\n template.FlowExportTemplateId,\r\n \"IsAutoGeneratedPOM\",\r\n false\r\n )\r\n );\r\n }\r\n }\r\n\r\n const rows = [...templateRows];\r\n for (let row of rows) {\r\n row.ExpansionType = globalExpansionType;\r\n row.ExpirationDate = globalExpirationDate;\r\n\r\n if (DeliveryType.ThirdPartyCustom == deliveryType?.DeliveryType) {\r\n row.PercentOfMediaCost = 0;\r\n row.CostPerMillion = globalCostPerMillion;\r\n row.IsAutoGeneratedCPM = false;\r\n row.IsAutoGeneratedPOM = false;\r\n }\r\n }\r\n\r\n setTemplateRows(rows);\r\n setRefreshTable(refreshTable + 1);\r\n }\r\n };\r\n\r\n const getColumns = useMemo(() => {\r\n const thisDeliveryType = tapadDeliveryTypes.find(x => x.TapadDeliveryTypeId == tapadDeliveryTypeId);\r\n let columnData = [\r\n {\r\n title: \"Audience Name\",\r\n field: \"AudienceName\",\r\n render: rowData => selectAudienceName(rowData),\r\n headerStyle: {\r\n backgroundColor: \"#0075bc\",\r\n color: \"#fff\",\r\n fontWeight: 400,\r\n fontSize: \"14px\",\r\n },\r\n\r\n width: 150,\r\n minWidth: 150,\r\n },\r\n {\r\n title: \"Description\",\r\n field: \"Description\",\r\n render: rowData => selectDescription(rowData),\r\n headerStyle: {\r\n backgroundColor: \"#0075bc\",\r\n color: \"#fff\",\r\n fontWeight: 400,\r\n fontSize: \"14px\",\r\n },\r\n\r\n width: 150,\r\n minWidth: 150,\r\n },\r\n {\r\n title: \"Expansion Type\",\r\n field: \"ExpansionType\",\r\n render: rowData => selectExpansionType(rowData),\r\n headerStyle: {\r\n backgroundColor: \"#0075bc\",\r\n color: \"#fff\",\r\n fontWeight: 400,\r\n fontSize: \"14px\",\r\n },\r\n width: 150,\r\n minWidth: 150,\r\n },\r\n {\r\n title: \"Expiration Date\",\r\n field: \"ExpirationDate\",\r\n render: rowData => selectExpirationDate(rowData),\r\n headerStyle: {\r\n backgroundColor: \"#0075bc\",\r\n color: \"#fff\",\r\n fontWeight: 400,\r\n fontSize: \"14px\",\r\n },\r\n width: 150,\r\n minWidth: 150,\r\n },\r\n ];\r\n\r\n if (DeliveryType.ThirdPartyCustom == thisDeliveryType?.DeliveryType) {\r\n columnData.push({\r\n title: \"CPM ($)\",\r\n field: \"CostPerMillion\",\r\n cellStyle: (cellValue, rowData) => getCellStyleCPM(cellValue, rowData),\r\n render: rowData => selectCostPerMillion(rowData),\r\n headerStyle: {\r\n backgroundColor: \"#0075bc\",\r\n color: \"#fff\",\r\n fontWeight: 400,\r\n fontSize: \"14px\",\r\n },\r\n width: 150,\r\n minWidth: 150,\r\n });\r\n }\r\n\r\n return columnData;\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [refreshTable, deliveryType, canEdit, flow, tapadDeliveryTypeId, tapadDeliveryTypes]);\r\n\r\n const theme = createTheme({\r\n overrides: {\r\n MuiTable: {\r\n root: {\r\n marginTop: \"0px !important\",\r\n },\r\n },\r\n MuiTableCell: {\r\n root: {\r\n fontSize: \"14px\",\r\n },\r\n },\r\n },\r\n });\r\n\r\n return (\r\n <>\r\n
\r\n
\r\n

Driver File Fields

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n setIsOpenGlobalAssignment(!isOpenGlobalAssignment)}\r\n >\r\n Global Fields Assignment \r\n \r\n {isOpenGlobalAssignment ? ExpandLess : ExpandMore}\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n Expansion Type\r\n \r\n setGlobalExpansionType(e.target.value)}\r\n disabled={!canEdit || (flow && flow.IsLocked)}\r\n displayEmpty\r\n >\r\n \r\n Household\r\n \r\n \r\n \r\n {DeliveryType.ThirdPartyCustom == deliveryType?.DeliveryType ? (\r\n handleGlobalPositiveValueChange(\"PercentOfMediaCost\", e)}\r\n />\r\n ) : null}\r\n
\r\n
\r\n {DeliveryType.ThirdPartyCustom == deliveryType?.DeliveryType ? (\r\n handleGlobalPositiveValueChange(\"CostPerMillion\", e)}\r\n />\r\n ) : null}\r\n \r\n handleGlobalDateTimeChange(e)}\r\n />\r\n \r\n
\r\n
\r\n \r\n Assign\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\n\r\nExportPubmaticTemplateFields.propTypes = {\r\n tapadDeliveryTypeId: PropTypes.number,\r\n destinationId: PropTypes.number,\r\n flowExportPubmaticTemplateFields: PropTypes.array,\r\n canEdit: PropTypes.bool,\r\n classes: PropTypes.any,\r\n};\r\n\r\nexport default withStyles(styles)(ExportPubmaticTemplateFields);\r\n","import React from \"react\";\r\nimport { useSelector, useDispatch } from \"react-redux\";\r\nimport { IAppState } from \"../../../../types/stores\";\r\nimport { Tooltip, Icon } from \"@material-ui/core\";\r\nimport IconSwitch from \"../../../material-components/Misc/IconSwitch\";\r\n\r\nimport { FlowExport, FlowSegmentSplit, FlowSegmentSplitOffer } from \"../../../../types/stores/flowTypes\";\r\nimport {\r\n updateAttribute,\r\n deleteFlowSegmentSplit,\r\n deleteFlowSegmentSplitOffer,\r\n newFlowSegmentSplitAndOffersOverWrite,\r\n invalidateItemAndChildren,\r\n} from \"../../../../actions/flowActions\";\r\nimport { getFlowSegmentSplitsForSelectedFlowItem } from \"../../../../reducers/flowSegmentSplits\";\r\nimport { getFlowSegmentSplitOffersForSelectedFlowItem } from \"../../../../reducers/flowSegmentSplitOffers\";\r\nimport { IClientVariable } from \"../../../../types/stores/vars\";\r\n\r\ninterface IProps {\r\n flowExport: FlowExport;\r\n disabled: boolean;\r\n splitOverwrite: boolean;\r\n destinationOffers: IClientVariable;\r\n}\r\n\r\nexport const FlowExportSplitToggle: React.FC = ({\r\n flowExport,\r\n disabled,\r\n splitOverwrite,\r\n destinationOffers,\r\n}: IProps) => {\r\n const dispatch = useDispatch();\r\n const segmentSplits = useSelector>(state =>\r\n getFlowSegmentSplitsForSelectedFlowItem(state)\r\n );\r\n const segmentSplitOffers = useSelector>(state =>\r\n getFlowSegmentSplitOffersForSelectedFlowItem(state)\r\n );\r\n const enabledFeatures = useSelector((state: IAppState) => state.session.enabledFeatures);\r\n\r\n const hasSplitChanged = (e: any) => {\r\n const isChecked = e.target.checked;\r\n dispatch(updateAttribute(\"flowExports\", flowExport.FlowExportId, \"IsSplitOn\", isChecked));\r\n if (!isChecked) {\r\n for (const split of segmentSplits) {\r\n dispatch(deleteFlowSegmentSplit(split.SegmentSplitId));\r\n }\r\n for (const split of segmentSplitOffers) {\r\n dispatch(deleteFlowSegmentSplitOffer(split.SegmentSplitOfferId));\r\n }\r\n } else if (splitOverwrite) {\r\n if (enabledFeatures.includes(\"flow-destination-level-splits-all-offers\")) {\r\n dispatch(\r\n newFlowSegmentSplitAndOffersOverWrite(\r\n flowExport.FlowItemId,\r\n segmentSplits,\r\n destinationOffers,\r\n segmentSplitOffers\r\n )\r\n );\r\n }\r\n dispatch(invalidateItemAndChildren(flowExport.FlowItemId));\r\n }\r\n };\r\n\r\n const renderSwitch = () => {\r\n let content = (\r\n \r\n );\r\n\r\n return content;\r\n };\r\n\r\n return (\r\n
\r\n
\r\n \r\n Split \r\n \r\n info\r\n \r\n
\r\n
{renderSwitch()}
\r\n
\r\n
\r\n );\r\n};\r\nexport default FlowExportSplitToggle;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useSelector, useDispatch } from \"react-redux\";\r\n\r\nimport {\r\n updateAttribute,\r\n newFlowSegmentSplitAndOffers,\r\n newFlowSegmentSplit,\r\n invalidateItemAndChildren,\r\n deleteFlowSegmentSplit,\r\n} from \"../../../../actions/flowActions\";\r\nimport { getFlowSegmentSplitsByFlowItemId } from \"../../../../reducers/flowSegmentSplits\";\r\nimport { getFlowSegmentSplitOffersByFlowItemId } from \"../../../../reducers/flowSegmentSplitOffers\";\r\nimport { addCommas } from \"../../../../helpers/typedHelpers\";\r\n\r\nimport { IAppState } from \"../../../../types/stores\";\r\nimport { FlowSegmentSplit, FlowItem, FlowSegmentSplitOffer } from \"../../../../types/stores/flowTypes\";\r\n\r\nimport { getFlowExportsByFlowItemId } from \"../../../../reducers/flowExports\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport RadioButton from \"../../../material-components/Misc/RadioButton\";\r\nimport { Button, Divider, TextField, InputAdornment, Checkbox, Paper } from \"@material-ui/core\";\r\nimport GenericConfirmModal from \"../../../modals/GenericConfirmModal\";\r\nimport { IClientVariable } from \"../../../../types/stores/vars\";\r\nimport NumericalTextField from \"../../../material-components/Misc/NumericalTextField\";\r\nimport { addThing } from \"../../../../actions/flowActions\";\r\n\r\ninterface IProps {\r\n flowItemId: number;\r\n parentFlowItemId: number;\r\n disabled: boolean;\r\n destinationOffers: Array;\r\n}\r\n\r\nconst FlowExportSplit: React.FC = ({ flowItemId, parentFlowItemId, disabled, destinationOffers }: IProps) => {\r\n const dispatch = useDispatch();\r\n\r\n const [splitMethod, setSplitMethod] = useState(\"relative\");\r\n\r\n const flowSegmentSplits = useSelector>(state => {\r\n let segments = getFlowSegmentSplitsByFlowItemId(state);\r\n return segments[flowItemId] || [];\r\n });\r\n\r\n const flowSegmentSplitOffers = useSelector>(state => {\r\n let segments = getFlowSegmentSplitOffersByFlowItemId(state);\r\n return segments[flowItemId] || [];\r\n });\r\n const flowExportsByFlowItemId = useSelector(state => getFlowExportsByFlowItemId(state));\r\n const existingExport = flowExportsByFlowItemId[flowItemId];\r\n const parentSegmentSplits = flowSegmentSplits.filter(\r\n x => x.ParentFlowItemId == parentFlowItemId && x.FlowItemId == flowItemId\r\n );\r\n const parentFlowItem = useSelector(state => state.flowItems.byId[parentFlowItemId]);\r\n const enabledFeatures = useSelector((state: IAppState) => state.session.enabledFeatures);\r\n\r\n useEffect(() => {\r\n if (parentSegmentSplits.length > 0) {\r\n const segmentSplit = parentSegmentSplits[0];\r\n if (segmentSplit.AbsoluteOrRelative && segmentSplit.AbsoluteOrRelative != splitMethod) {\r\n setSplitMethod(segmentSplit.AbsoluteOrRelative);\r\n }\r\n }\r\n }, [\r\n parentSegmentSplits,\r\n splitMethod,\r\n enabledFeatures,\r\n destinationOffers,\r\n flowSegmentSplitOffers.length,\r\n flowSegmentSplits,\r\n dispatch,\r\n ]);\r\n\r\n const handleRelOrAbsRadio = e => {\r\n for (const split of parentSegmentSplits) {\r\n dispatch(updateAttribute(\"flowSegmentSplits\", split.SegmentSplitId, \"AbsoluteOrRelative\", e.target.value));\r\n }\r\n\r\n dispatch(invalidateItemAndChildren(flowItemId));\r\n };\r\n\r\n const addRowClick = () => {\r\n if (enabledFeatures.includes(\"flow-destination-level-splits-all-offers\")) {\r\n dispatch(newFlowSegmentSplitAndOffers(flowItemId, parentFlowItemId, splitMethod, destinationOffers));\r\n } else {\r\n dispatch(newFlowSegmentSplit(flowItemId, parentFlowItemId, splitMethod));\r\n }\r\n dispatch(invalidateItemAndChildren(flowItemId));\r\n };\r\n\r\n const renderAbsoluteOrRelativeCell = (split: FlowSegmentSplit) => {\r\n if (split.AbsoluteOrRelative == \"absolute\") {\r\n return renderAbsoluteNumRows(split);\r\n } else {\r\n return renderRelativePercentRows(split);\r\n }\r\n };\r\n\r\n const updateSplitSegmentAllOffers = () => {\r\n // do a for each with each segment split\r\n // if it is missing the segemnt, then add it.\r\n flowSegmentSplits.forEach(x => {\r\n destinationOffers.forEach(z => {\r\n let thisSegmentSplitOffer = flowSegmentSplitOffers.filter(\r\n y => y.SegmentSplitId == x.SegmentSplitId && y.DestinationOfferId == z.Id\r\n )[0];\r\n if (thisSegmentSplitOffer == null) {\r\n const offer: FlowSegmentSplitOffer = {\r\n SegmentSplitOfferId: 0,\r\n SegmentSplitId: x.SegmentSplitId,\r\n DestinationOfferId: z.Id,\r\n Value: \"\",\r\n FlowItemId: flowItemId,\r\n };\r\n dispatch(addThing(\"flowSegmentSplitOffers\", offer));\r\n }\r\n });\r\n });\r\n };\r\n const renderAbsoluteNumRows = (split: FlowSegmentSplit) => (\r\n {\r\n let value = parseInt(e.target.value);\r\n if (value < 0) {\r\n value = 0;\r\n }\r\n dispatch(updateAttribute(\"flowSegmentSplits\", split.SegmentSplitId, \"AbsoluteNumRows\", value, true));\r\n dispatch(invalidateItemAndChildren(flowItemId));\r\n }}\r\n InputProps={{\r\n endAdornment: rows,\r\n }}\r\n />\r\n );\r\n\r\n const renderRelativePercentRows = (split: FlowSegmentSplit) => {\r\n const sumOtherRows: number = parentSegmentSplits.reduce((acc: number, row: FlowSegmentSplit): number => {\r\n const rowCount = row.RelativePercentRows != null ? row.RelativePercentRows : 0;\r\n return split.SegmentSplitId == row.SegmentSplitId ? acc : acc + rowCount;\r\n }, 0);\r\n\r\n return (\r\n {\r\n let value = parseFloat(e.target.value);\r\n\r\n if (value < 0) {\r\n value = 0;\r\n } else if (value > 100) {\r\n value = 100;\r\n }\r\n\r\n const newVal = sumOtherRows + value > 100 ? 100 - sumOtherRows : value;\r\n dispatch(updateAttribute(\"flowSegmentSplits\", split.SegmentSplitId, \"RelativePercentRows\", newVal));\r\n dispatch(invalidateItemAndChildren(flowItemId));\r\n }}\r\n InputProps={{\r\n endAdornment: %,\r\n }}\r\n />\r\n );\r\n };\r\n\r\n const renderDeleteSplitCell = (split: FlowSegmentSplit) => {\r\n const confirmDeleteBody =
{`Are you sure you want to delete this row?`}
;\r\n const confirmDeleteText = \"Delete Row\";\r\n\r\n return (\r\n
\r\n {\r\n dispatch(deleteFlowSegmentSplit(split.SegmentSplitId));\r\n dispatch(invalidateItemAndChildren(flowItemId));\r\n }}\r\n body={confirmDeleteBody}\r\n confirmText={confirmDeleteText}\r\n title=\"Confirm Delete Split\"\r\n buttonText={\r\n \r\n close\r\n \r\n }\r\n buttonDisabled={disabled}\r\n cnBtnStyle=\"normal-transparent-button\"\r\n />\r\n
\r\n );\r\n };\r\n\r\n return (\r\n \r\n \r\n
\r\n {`${parentFlowItem.FlowItemName} - Split Settings`}

\r\n
\r\n
\r\n {parentSegmentSplits.length > 0 && (\r\n \r\n \r\n Method\r\n \r\n \r\n \r\n )}\r\n add}\r\n disabled={disabled}\r\n onClick={addRowClick}\r\n >\r\n Add Row\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n {((enabledFeatures.includes(\"flow-destination-level-splits-all-offers\") &&\r\n existingExport.IsSeperateFiles) ||\r\n (enabledFeatures.includes(\"flow-destination-level-splits\") &&\r\n !enabledFeatures.includes(\"flow-destination-level-splits-all-offers\"))) && (\r\n \r\n Audience Name\r\n \r\n )}\r\n {enabledFeatures.includes(\"flow-destination-level-splits-all-offers\") &&\r\n destinationOffers.map(x => (\r\n \r\n {x.VariableName}\r\n \r\n ))}\r\n \r\n Amount\r\n \r\n \r\n Count\r\n \r\n \r\n Deploy\r\n \r\n \r\n \r\n \r\n \r\n {parentSegmentSplits.map(x => (\r\n \r\n {((enabledFeatures.includes(\"flow-destination-level-splits-all-offers\") &&\r\n existingExport.IsSeperateFiles) ||\r\n (enabledFeatures.includes(\"flow-destination-level-splits\") &&\r\n !enabledFeatures.includes(\r\n \"flow-destination-level-splits-all-offers\"\r\n ))) && (\r\n \r\n {\r\n let regex = /[^a-zA-Z0-9%_ ]/g;\r\n if (\r\n enabledFeatures.includes(\r\n \"export-destination-offer-variables\"\r\n )\r\n ) {\r\n regex = /[^a-zA-Z0-9%_-{}: ]/g;\r\n }\r\n const newValue = e.target.value.replace(regex, \"\");\r\n dispatch(\r\n updateAttribute(\r\n \"flowSegmentSplits\",\r\n x.SegmentSplitId,\r\n \"SegmentName\",\r\n newValue,\r\n true\r\n )\r\n );\r\n dispatch(invalidateItemAndChildren(flowItemId));\r\n }}\r\n />\r\n \r\n )}\r\n {enabledFeatures.includes(\"flow-destination-level-splits-all-offers\") &&\r\n destinationOffers.map(z => (\r\n \r\n {\r\n updateSplitSegmentAllOffers();\r\n }}\r\n value={\r\n flowSegmentSplitOffers.filter(\r\n y =>\r\n y.SegmentSplitId == x.SegmentSplitId &&\r\n y.DestinationOfferId == z.Id\r\n )[0] != null\r\n ? flowSegmentSplitOffers.filter(\r\n y =>\r\n y.SegmentSplitId == x.SegmentSplitId &&\r\n y.DestinationOfferId == z.Id\r\n )[0].Value\r\n : \"\"\r\n }\r\n disabled={disabled}\r\n inputProps={{\r\n style: { fontSize: \"16px\" },\r\n }}\r\n onChange={e => {\r\n let regex = /[^a-zA-Z0-9%_ ]/g;\r\n if (\r\n enabledFeatures.includes(\r\n \"export-destination-offer-variables\"\r\n )\r\n ) {\r\n regex = /[^a-zA-Z0-9%_-{}: ]/g;\r\n }\r\n const newValue = e.target.value.replace(regex, \"\");\r\n\r\n dispatch(\r\n updateAttribute(\r\n \"flowSegmentSplitOffers\",\r\n flowSegmentSplitOffers.filter(\r\n y =>\r\n y.SegmentSplitId == x.SegmentSplitId &&\r\n y.DestinationOfferId == z.Id\r\n )[0] != null\r\n ? flowSegmentSplitOffers.filter(\r\n y =>\r\n y.SegmentSplitId ==\r\n x.SegmentSplitId &&\r\n y.DestinationOfferId == z.Id\r\n )[0].SegmentSplitOfferId\r\n : null,\r\n \"Value\",\r\n newValue,\r\n true\r\n )\r\n );\r\n dispatch(invalidateItemAndChildren(flowItemId));\r\n }}\r\n />\r\n \r\n ))}\r\n {renderAbsoluteOrRelativeCell(x)}\r\n \r\n {addCommas(x.SplitQuantity)}\r\n \r\n \r\n {\r\n dispatch(\r\n updateAttribute(\r\n \"flowSegmentSplits\",\r\n x.SegmentSplitId,\r\n \"IsIncludeInDeploy\",\r\n !x.IsIncludeInDeploy,\r\n true\r\n )\r\n );\r\n dispatch(invalidateItemAndChildren(flowItemId));\r\n }}\r\n />\r\n \r\n {renderDeleteSplitCell(x)}\r\n \r\n ))}\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n};\r\nexport default FlowExportSplit;\r\n","import React from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { Tooltip, Icon } from \"@material-ui/core\";\r\nimport IconSwitch from \"../../../material-components/Misc/IconSwitch\";\r\n\r\nimport { FlowExport } from \"../../../../types/stores/flowTypes\";\r\nimport { updateAttribute } from \"../../../../actions/flowActions\";\r\n\r\ninterface IProps {\r\n flowExport: FlowExport;\r\n splitOverwrite: boolean;\r\n disabled: boolean;\r\n}\r\n\r\nexport const FlowExportSeperateFilesToggle: React.FC = ({ flowExport, splitOverwrite, disabled }: IProps) => {\r\n const dispatch = useDispatch();\r\n\r\n const hasSeperateFilesChanged = (e: any) => {\r\n const isChecked = e.target.checked;\r\n dispatch(updateAttribute(\"flowExports\", flowExport.FlowExportId, \"IsSeperateFiles\", isChecked));\r\n dispatch(updateAttribute(\"flowItems\", flowExport.FlowItemId, \"HasResultTable\", false));\r\n };\r\n\r\n const renderSeperateFilesSwitch = () => {\r\n let content = (\r\n \r\n );\r\n\r\n return content;\r\n };\r\n\r\n return (\r\n
\r\n
\r\n \r\n Separate Files \r\n \r\n info\r\n \r\n
\r\n
{renderSeperateFilesSwitch()}
\r\n
\r\n
\r\n );\r\n};\r\nexport default FlowExportSeperateFilesToggle;\r\n","import { Dispatch } from \"redux\";\r\nimport { request } from \"../helpers/httpInterceptor\";\r\nimport h from \"../helpers\";\r\nimport { SET_FREEWHEEL_LOADING, SET_FREEWHEEL_ID_TYPES } from \"../reducers/flowExportObjects\";\r\nimport { ISetFreewheelLoading, ISetFreewheelIdTypes, IIdType } from \"../types/stores/freewheel\";\r\n\r\nexport const setFreewheelLoading = (isLoading: boolean): ISetFreewheelLoading => ({\r\n type: SET_FREEWHEEL_LOADING,\r\n isLoading,\r\n});\r\n\r\nexport const setFreewheelIdTypes = (idTypes: Array): ISetFreewheelIdTypes => ({\r\n type: SET_FREEWHEEL_ID_TYPES,\r\n idTypes,\r\n});\r\n\r\nexport const getIdTypes =\r\n () =>\r\n (dispatch: Dispatch): void => {\r\n setFreewheelLoading(true);\r\n\r\n request(\"/FlowExportFreewheel/GetIdTypes\", { credentials: \"same-origin\" }, dispatch)\r\n .then(h.checkStatus)\r\n .then(h.toJson)\r\n .then(data => {\r\n const result = data as unknown as { idTypes: Array };\r\n dispatch(setFreewheelIdTypes(result.idTypes));\r\n dispatch(setFreewheelLoading(false));\r\n })\r\n .catch(error => {\r\n dispatch(setFreewheelIdTypes([]));\r\n dispatch(setFreewheelLoading(false));\r\n h.error(\"Error getting Freewheel Id Types.\", error);\r\n });\r\n };\r\n","import React, { useEffect, useMemo, useState } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { updateAttribute } from \"../../../../actions/flowActions\";\r\nimport IconSwitch from \"../../../material-components/Misc/IconSwitch\";\r\nimport {\r\n Checkbox,\r\n Divider,\r\n FormControl,\r\n InputLabel,\r\n ListItemText,\r\n MenuItem,\r\n Paper,\r\n Select,\r\n TextField,\r\n Tooltip,\r\n} from \"@material-ui/core\";\r\nimport { IAppState } from \"../../../../types/stores\";\r\nimport { getIdTypes } from \"../../../../actions/freewheelActions\";\r\nimport { FlowExportFreewheelDriverFileFields, IIdType } from \"../../../../types/stores/freewheel\";\r\nimport MaterialTable, { Column } from \"@material-table/core\";\r\nimport NumericalTextField from \"../../../material-components/Misc/NumericalTextField\";\r\nimport { formatName, formatNameMagnite } from \"../../../../helpers\";\r\nimport { DeploySettings } from \"../../../../types/stores/companyTable\";\r\nimport { notifyBlue } from \"../../../../actions/notifyActions\";\r\n\r\ntype Props = {\r\n flowItemId: number;\r\n flowExportFreewheelDriverFileFields: Array;\r\n deploySetting: number;\r\n companyName: string;\r\n};\r\n\r\nconst FlowExportFreewheelDriverFileForm: React.FC = ({\r\n flowItemId,\r\n flowExportFreewheelDriverFileFields,\r\n deploySetting,\r\n}: Props) => {\r\n const dispatch = useDispatch();\r\n\r\n // state\r\n const [selectedIdTypes, setSelectedIdTypes] = useState(flowExportFreewheelDriverFileFields[0]?.IdTypes || null);\r\n const [networkId, setNetworkId] = useState(flowExportFreewheelDriverFileFields[0]?.NetworkId || \"\");\r\n const [templateRows, setTemplateRows] = useState(flowExportFreewheelDriverFileFields);\r\n const [currentCompanyName, setCompanyName] = useState(flowExportFreewheelDriverFileFields[0]?.CompanyName || null);\r\n\r\n // props\r\n const idTypes = useSelector>(state => state.flowExportObjects.idTypes || []);\r\n const isLoading = useSelector((state: IAppState) => state.flowExportObjects.isLoading);\r\n const currentCompanyId = useSelector((state: IAppState) => state.session.companyId);\r\n const companies = useSelector((state: IAppState) => state.session.companies);\r\n const isInternal = useSelector((state: IAppState) => state.session.isInternal);\r\n const company = companies.find(c => c.CompanyID == currentCompanyId);\r\n const companyName = company ? company.CompanyName : \"\";\r\n const alphaNumericOnly = /[^a-z0-9]/gi;\r\n\r\n useEffect(() => {\r\n dispatch(getIdTypes());\r\n }, [dispatch]);\r\n\r\n useEffect(() => {\r\n if (idTypes && idTypes.length > 0 && selectedIdTypes == null) {\r\n const selectedIdTypes = idTypes.map(x => x.DriveName).join(\",\");\r\n setSelectedIdTypes(selectedIdTypes);\r\n }\r\n }, [idTypes, selectedIdTypes]);\r\n\r\n useEffect(() => {\r\n if (selectedIdTypes && flowExportFreewheelDriverFileFields) {\r\n for (const field of flowExportFreewheelDriverFileFields) {\r\n if (field.IdTypes == null || field.IdTypes != selectedIdTypes) {\r\n dispatch(\r\n updateAttribute(\r\n \"flowExportFreewheelDriverFileFields\",\r\n field.FlowExportFreewheelDriverFileFieldId,\r\n \"IdTypes\",\r\n selectedIdTypes\r\n )\r\n );\r\n }\r\n }\r\n }\r\n }, [dispatch, selectedIdTypes, flowExportFreewheelDriverFileFields]);\r\n\r\n // Load templateRows to populate Driver Field table\r\n useEffect(() => {\r\n if (templateRows.length != flowExportFreewheelDriverFileFields.length) {\r\n setTemplateRows(flowExportFreewheelDriverFileFields);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [flowExportFreewheelDriverFileFields.length]);\r\n\r\n let driverTitleName = \"\";\r\n let isFreewheel = false;\r\n let isMagnite = false;\r\n\r\n if (deploySetting == DeploySettings.DeployFreewheelDriverFile) {\r\n driverTitleName = \"Freewheel\";\r\n isFreewheel = true;\r\n } else if (deploySetting == DeploySettings.DeployMagniteDriverFile) {\r\n driverTitleName = \"Magnite\";\r\n isMagnite = true;\r\n }\r\n\r\n let idTypesTooltipMessage = `Type of Ids being loaded to ${driverTitleName}.`;\r\n\r\n if (isFreewheel) {\r\n idTypesTooltipMessage += ` If you want all MAIDs, select both Apple and Android. You can select more than one item.`;\r\n }\r\n\r\n const title = `${driverTitleName} Driver File Fields`;\r\n\r\n // This changes the field specific settings for freewheel driver file fields\r\n const handleFieldChange = (\r\n driverFileFieldId: number,\r\n attributeName: string,\r\n value: string | number | boolean | null\r\n ) => {\r\n dispatch(updateAttribute(\"flowExportFreewheelDriverFileFields\", driverFileFieldId, attributeName, value));\r\n };\r\n\r\n // This changes global field settings for freewheel driver file fields\r\n const handleSettingChange = (attributeName: string, value: Array | string) => {\r\n if (attributeName == \"IdTypes\") {\r\n let newIdTypes =\r\n typeof value === \"string\"\r\n ? value\r\n : value.map(x => idTypes.find(y => x == y.DriveName)?.DriveName).join(\",\");\r\n\r\n // Ensure no leading or trailing commas\r\n newIdTypes = newIdTypes.replace(/(^,)|(,$)/g, \"\");\r\n\r\n setSelectedIdTypes(newIdTypes);\r\n } else {\r\n flowExportFreewheelDriverFileFields.forEach(field =>\r\n dispatch(\r\n updateAttribute(\r\n \"flowExportFreewheelDriverFileFields\",\r\n field.FlowExportFreewheelDriverFileFieldId,\r\n attributeName,\r\n value\r\n )\r\n )\r\n );\r\n }\r\n };\r\n\r\n // This changes the field specific settings for freewheel driver file fields\r\n const handleFieldCompanyNameChange = (attributeName: string, value: string) => {\r\n setCompanyName(value);\r\n\r\n if (value.length >= 500)\r\n dispatch(notifyBlue(\"Company Name is maximum of 500 chars, If exceeds 500 it will be truncated.\"));\r\n\r\n flowExportFreewheelDriverFileFields.forEach(field =>\r\n dispatch(\r\n updateAttribute(\r\n \"flowExportFreewheelDriverFileFields\",\r\n field.FlowExportFreewheelDriverFileFieldId,\r\n attributeName,\r\n value\r\n )\r\n )\r\n );\r\n };\r\n\r\n if (currentCompanyName == null) {\r\n handleFieldCompanyNameChange(\"CompanyName\", companyName);\r\n }\r\n // Form Contents(All are Required)\r\n // ----------------\r\n // FlowId - id of the flow - No UI - Same for all fields\r\n // FlowItemId - id of the export node - No UI - Same for all fields\r\n // FlowItemName - name of the export node - No UI - Same for all fields\r\n\r\n // IdTypes - table driven by FreewheelIdTypes (comma separated ip,idfa,aaid,ctv) - Same for all fields\r\n const renderIdTypes = () => (\r\n <>\r\n {isMagnite && (\r\n \r\n \r\n handleFieldCompanyNameChange(\"CompanyName\", e.target.value)}\r\n value={currentCompanyName}\r\n label=\"Company Name\"\r\n inputProps={{ maxLength: 500 }}\r\n >\r\n \r\n \r\n )}\r\n \r\n \r\n \r\n
Id Types
\r\n
\r\n
\r\n handleSettingChange(\"IdTypes\", e.target.value as Array)}\r\n MenuProps={{\r\n getContentAnchorEl: null,\r\n }}\r\n disabled={isMagnite}\r\n renderValue={value => {\r\n let selected = value as unknown as Array;\r\n return (\r\n \r\n
\r\n {idTypes\r\n .filter(x => selected.includes(x.DriveName))\r\n .map(x => x.IdType)\r\n .join(\", \")}\r\n
\r\n
\r\n );\r\n }}\r\n >\r\n {idTypes.length == 0 ? (\r\n isLoading ? (\r\n \r\n Loading...\r\n \r\n ) : (\r\n \r\n No Id Types Available\r\n \r\n )\r\n ) : (\r\n idTypes.map(type => (\r\n \r\n -1}\r\n color=\"primary\"\r\n />\r\n \r\n \r\n ))\r\n )}\r\n \r\n
\r\n \r\n );\r\n\r\n // SegmentId - concatenated FlowId + ParentFlowItemId (hardcoded) - No UI - Can be different between fields\r\n\r\n // SegmentKey - segment code in export (hardcoded) - Can be different between fields\r\n // can have multiple SegmentKeys\r\n // one per line on driver file\r\n // 25 bytes max, alpha only, no spaces or pipes (same size limitation as segment code in exports)\r\n\r\n // SegmentName - Friendly Name - alpha only, no spaces or pipes, 25 characters max - Can be different between fields\r\n const renderSegmentName = (rowData: FlowExportFreewheelDriverFileFields) => {\r\n const rows = [...templateRows];\r\n\r\n const column = (\r\n \r\n {\r\n let newValue = \"\";\r\n\r\n if (isMagnite) {\r\n newValue = formatNameMagnite(e.target.value);\r\n } else {\r\n newValue = formatName(e.target.value);\r\n }\r\n\r\n rows[rowData.tableData.id].SegmentName = newValue;\r\n setTemplateRows(rows);\r\n }}\r\n onBlur={e => {\r\n let newValue = \"\";\r\n\r\n if (isMagnite) {\r\n newValue = formatNameMagnite(e.target.value);\r\n } else {\r\n newValue = formatName(e.target.value);\r\n }\r\n\r\n handleFieldChange(rowData.FlowExportFreewheelDriverFileFieldId, \"SegmentName\", newValue);\r\n }}\r\n />\r\n \r\n );\r\n\r\n return column;\r\n };\r\n\r\n // SubGroupDescription - Friendly Name - alpha only, no spaces or pipes, 250 characters max - Can be different between fields\r\n const renderSubGroupDescription = (rowData: FlowExportFreewheelDriverFileFields) => {\r\n const rows = [...templateRows];\r\n const column = (\r\n \r\n {\r\n let newValue = formatNameMagnite(e.target.value);\r\n\r\n rows[rowData.tableData.id].SubGroupDescription = newValue;\r\n setTemplateRows(rows);\r\n }}\r\n onBlur={e => {\r\n let newValue = formatNameMagnite(e.target.value);\r\n handleFieldChange(\r\n rowData.FlowExportFreewheelDriverFileFieldId,\r\n \"SubGroupDescription\",\r\n newValue\r\n );\r\n }}\r\n />\r\n \r\n );\r\n\r\n return column;\r\n };\r\n\r\n // SegmentDescription - Friendly Name - alpha only, no spaces or pipes, 255 characters max - Can be different between fields\r\n const renderSegmentDescription = (rowData: FlowExportFreewheelDriverFileFields) => {\r\n const rows = [...templateRows];\r\n const column = (\r\n \r\n {\r\n let newValue = formatNameMagnite(e.target.value);\r\n\r\n rows[rowData.tableData.id].SegmentDescription = newValue;\r\n setTemplateRows(rows);\r\n\r\n if (currentCompanyName != null) {\r\n handleFieldCompanyNameChange(\"CompanyName\", currentCompanyName);\r\n }\r\n }}\r\n onBlur={e => {\r\n let newValue = formatNameMagnite(e.target.value);\r\n handleFieldChange(rowData.FlowExportFreewheelDriverFileFieldId, \"SegmentDescription\", newValue);\r\n }}\r\n />\r\n \r\n );\r\n\r\n return column;\r\n };\r\n\r\n // NetworkId: Source Company's NetworkId on Driver - 25 byte max - alphanumeric no space or pipe - Same for all fields\r\n const renderNetworkId = () => (\r\n \r\n \r\n setNetworkId(e.target.value.replace(alphaNumericOnly, \"\"))}\r\n onBlur={e => handleSettingChange(\"NetworkId\", e.target.value.replace(alphaNumericOnly, \"\"))}\r\n />\r\n \r\n \r\n );\r\n\r\n // Custom - Default On - Disabled - Can be different between fields\r\n const renderCustomToggle = (rowData: FlowExportFreewheelDriverFileFields) => {\r\n const rows = [...templateRows];\r\n const column = (\r\n \r\n {\r\n rows[rowData.tableData.id].Custom = e.target.checked;\r\n setTemplateRows(rows);\r\n handleFieldChange(rowData.FlowExportFreewheelDriverFileFieldId, \"Custom\", e.target.checked);\r\n }}\r\n checked={rowData.Custom}\r\n disabled\r\n />\r\n \r\n );\r\n\r\n return column;\r\n };\r\n\r\n /*\r\n Format price.\r\n If value is empty and less than 0, set to 1.\r\n If value is greater than 99.99, set to 99.99\r\n If not a number, return current price.\r\n Else return number in 2 decimals\r\n */\r\n const formatPrice = (newValue: string, currentValue: number) => {\r\n let newPrice = parseFloat(newValue);\r\n\r\n if (newValue == \"\" || parseFloat(newValue) < 0) {\r\n newPrice = 1;\r\n } else if (isNaN(parseFloat(newValue))) {\r\n newPrice = currentValue;\r\n } else if (parseFloat(newValue) > 99.99) {\r\n newPrice = 99.99;\r\n } else {\r\n newPrice = parseFloat(newValue);\r\n }\r\n\r\n // Fix to 2 decimals\r\n newPrice = parseFloat((Math.round(newPrice * 100) / 100).toFixed(2));\r\n\r\n return newPrice;\r\n };\r\n\r\n /*\r\n Format price.\r\n If value is empty, less than 0, or greater than 4, set to empty.\r\n If not a number, return current price.\r\n Else return number in 2 decimals\r\n */\r\n const formatPriceMagnite = (newValue: string, currentValue: number) => {\r\n if (newValue == \"\") {\r\n return null;\r\n }\r\n\r\n if (parseFloat(newValue) < 0 || parseFloat(newValue) > 4) {\r\n return null;\r\n }\r\n\r\n let newPrice = parseFloat(newValue);\r\n\r\n if (isNaN(parseFloat(newValue))) {\r\n newPrice = currentValue;\r\n } else {\r\n newPrice = parseFloat(newValue);\r\n }\r\n\r\n // Fix to 2 decimals\r\n newPrice = parseFloat((Math.round(newPrice * 100) / 100).toFixed(2));\r\n\r\n return newPrice;\r\n };\r\n\r\n // Price - ##.## - Not 0 - Can be different between fields\r\n const renderPrice = (rowData: FlowExportFreewheelDriverFileFields) => {\r\n const rows = [...templateRows];\r\n const column = (\r\n \r\n {\r\n let newPrice: string | number | boolean | null;\r\n\r\n if (isMagnite) {\r\n newPrice =\r\n formatPriceMagnite(e.target.value, rowData.Price) != null\r\n ? formatPriceMagnite(e.target.value, rowData.Price)\r\n : null;\r\n } else {\r\n newPrice = formatPrice(e.target.value, rowData.Price) || \"\";\r\n }\r\n\r\n rows[rowData.tableData.id].Price = newPrice as number;\r\n setTemplateRows(rows);\r\n }}\r\n onBlur={e => {\r\n let newPrice: string | number | boolean | null;\r\n\r\n if (isMagnite) {\r\n newPrice =\r\n formatPriceMagnite(e.target.value, rowData.Price) != null\r\n ? formatPriceMagnite(e.target.value, rowData.Price)\r\n : null;\r\n } else {\r\n newPrice = formatPrice(e.target.value, rowData.Price) || \"\";\r\n }\r\n\r\n handleFieldChange(rowData.FlowExportFreewheelDriverFileFieldId, \"Price\", newPrice);\r\n }}\r\n />\r\n \r\n );\r\n\r\n return column;\r\n };\r\n\r\n const getColumns = useMemo(() => {\r\n let columns: Array> = [\r\n {\r\n title: \"Segment Name\",\r\n tooltip: \"Segment friendly name.\",\r\n render: rowData => renderSegmentName(rowData),\r\n },\r\n ];\r\n\r\n if (isMagnite) {\r\n columns.push({\r\n title: \"Sub-Group Description\",\r\n tooltip: \"Sub-Group description.\",\r\n render: rowData => renderSubGroupDescription(rowData),\r\n });\r\n\r\n columns.push({\r\n title: \"Segment Description\",\r\n tooltip: \"Segment description.\",\r\n render: rowData => renderSegmentDescription(rowData),\r\n });\r\n }\r\n\r\n columns.push({\r\n title: \"Price\",\r\n tooltip: \"Cost per Thousand(CPM) Rate. Percent of media spend is not supported.\",\r\n render: rowData => renderPrice(rowData),\r\n });\r\n\r\n if (isFreewheel) {\r\n columns.push({\r\n title: \"Custom\",\r\n tooltip: \"Indicates a Custom or syndicated segment.Currently only custom allowed.\",\r\n render: rowData => renderCustomToggle(rowData),\r\n align: \"right\",\r\n width: \"50px\",\r\n });\r\n }\r\n\r\n return columns;\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [isFreewheel, isMagnite, templateRows.length]);\r\n\r\n const renderFreewheelDriverFileForm = () => (\r\n
\r\n

File Settings

\r\n \r\n {renderIdTypes()}\r\n {isFreewheel && renderNetworkId()}\r\n
\r\n

Fields Settings

\r\n \r\n \r\n
\r\n );\r\n\r\n return (\r\n <>\r\n
\r\n
\r\n

{title}

\r\n
\r\n
\r\n \r\n \r\n
{renderFreewheelDriverFileForm()}
\r\n
\r\n \r\n \r\n );\r\n};\r\n\r\nexport default FlowExportFreewheelDriverFileForm;\r\n","// React\r\nimport React, { useEffect, useState } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { DeliveryType } from \"../../../../enums/company\";\r\n\r\n// Components\r\nimport {\r\n Button,\r\n Collapse,\r\n Divider,\r\n FormControl,\r\n InputLabel,\r\n ListItem,\r\n MenuItem,\r\n Paper,\r\n Select,\r\n TextField,\r\n} from \"@material-ui/core\";\r\nimport MaterialTable, { Column } from \"@material-table/core\";\r\n\r\n// Types\r\nimport { IAppState } from \"../../../../types/stores\";\r\nimport { FlowExportXandrDriverFields } from \"../../../../types/stores/flowExportXandrDriverFields\";\r\nimport { Flow, FlowRelation } from \"../../../../types/stores/flowTypes\";\r\n\r\n// Selectors\r\nimport { getFlowExportXandrDriverFieldsByFlowItemId } from \"../../../../reducers/flowExportXandrDriverFields\";\r\nimport { getFlowRelationsForSelectedFlow } from \"../../../../reducers/flowRelations\";\r\n\r\n// Actions\r\nimport { updateAttribute, getDefaultDate } from \"../../../../actions/flowActions\";\r\nimport { DateTimePicker, MuiPickersUtilsProvider } from \"@material-ui/pickers\";\r\n\r\n// Utils\r\nimport MomentUtils from \"@date-io/moment\";\r\nimport { newFlowExportXandrDriverFields } from \"../../../../actions/flowExportXandrDriverFieldActions\";\r\nimport MaterialTableTextField from \"../../../shared/MaterialTableTextField\";\r\nimport { Autocomplete } from \"@material-ui/lab\";\r\nimport { XandrRateCategory } from \"../../../../types/stores/xandrRateCategory\";\r\nimport { MaterialUiPickersDate } from \"@material-ui/pickers/typings/date\";\r\n\r\ntype Props = {\r\n flowItemId: number;\r\n canEdit: boolean;\r\n tapadDeliveryTypeId: DeliveryType;\r\n};\r\n\r\nconst ExpandLess = expand_less;\r\nconst ExpandMore = expand_more;\r\n\r\nconst XandrDriverFields: React.FC = ({ flowItemId, canEdit, tapadDeliveryTypeId }) => {\r\n const dispatch = useDispatch();\r\n // local state\r\n const [selectedCategory, setSelectedCategory] = useState(null);\r\n const [isOpenGlobalAssignment, setIsOpenGlobalAssignment] = useState(true);\r\n const [globalExpirationDate, setGlobalExpirationDate] = useState(getDefaultDate());\r\n const [globalExpansionType, setGlobalExpansionType] = useState(\"HOUSEHOLD\");\r\n const [deliveryType, setDeliveryType] = useState(0);\r\n\r\n const tapadDeliveryTypes = useSelector((state: IAppState) => state.vars.tapadDeliveryTypes);\r\n\r\n // redux selectors\r\n const flowRelations: Array = useSelector((state: IAppState) =>\r\n getFlowRelationsForSelectedFlow(state)\r\n );\r\n const xandrDriverFields = useSelector(\r\n (state: IAppState) => getFlowExportXandrDriverFieldsByFlowItemId(state)[flowItemId]\r\n );\r\n const xandrRateCategories = useSelector((state: IAppState) => state.xandrRateCategories.categories);\r\n const flow: Flow = useSelector((state: IAppState) => state.flows.byId[state.selected.flow]);\r\n const rateCategoriesLoading = useSelector((state: IAppState) => state.xandrRateCategories.isLoading);\r\n\r\n const parentRelations = flowRelations.filter(x => x.ChildFlowItemId == flowItemId && x.ParentFlowItemId != 0);\r\n\r\n useEffect(() => {\r\n const thisDeliveryType = tapadDeliveryTypes.find(x => x.TapadDeliveryTypeId == tapadDeliveryTypeId);\r\n\r\n if (\r\n xandrDriverFields &&\r\n deliveryType != undefined &&\r\n tapadDeliveryTypeId != undefined &&\r\n deliveryType != 0 &&\r\n thisDeliveryType?.DeliveryType != DeliveryType.ThirdPartyCustom\r\n ) {\r\n for (let i = 0; i < xandrDriverFields.length; i++) {\r\n xandrDriverFields[i].BillingCategoryId = 0;\r\n }\r\n }\r\n if (thisDeliveryType) {\r\n setDeliveryType(thisDeliveryType.DeliveryType);\r\n }\r\n\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [tapadDeliveryTypeId, tapadDeliveryTypes]);\r\n useEffect(() => {\r\n for (const relation of parentRelations) {\r\n if (!xandrDriverFields || !xandrDriverFields.find(x => x.ParentFlowItemId == relation.ParentFlowItemId)) {\r\n dispatch(\r\n newFlowExportXandrDriverFields(\r\n flowItemId,\r\n relation.ParentFlowItemId,\r\n selectedCategory ? selectedCategory.data_category_id : 0\r\n )\r\n );\r\n }\r\n }\r\n }, [dispatch, parentRelations, xandrDriverFields, flowItemId, selectedCategory]);\r\n\r\n useEffect(() => {\r\n if (selectedCategory == null && xandrDriverFields && xandrDriverFields.length > 0) {\r\n const dataCategoryId = xandrDriverFields[0].BillingCategoryId;\r\n const category = xandrRateCategories.find(x => x.data_category_id == dataCategoryId);\r\n if (category) {\r\n setSelectedCategory(category);\r\n }\r\n }\r\n }, [xandrDriverFields, selectedCategory, xandrRateCategories]);\r\n\r\n const columns: Array> =\r\n deliveryType && DeliveryType.ThirdPartyCustom == deliveryType\r\n ? [\r\n {\r\n title: \"Audience Name\",\r\n field: \"AudienceName\",\r\n render: row => renderTextField(row, \"AudienceName\"),\r\n },\r\n {\r\n title: \"Description\",\r\n field: \"Description\",\r\n render: row => renderTextField(row, \"Description\"),\r\n },\r\n {\r\n title: \"Expansion Type\",\r\n field: \"ExpansionType\",\r\n render: row => renderExpansionType(row),\r\n },\r\n {\r\n title: \"Expiration Date\",\r\n field: \"ExpirationDate\",\r\n render: row => renderExpirationDate(row),\r\n },\r\n {\r\n title: \"Rate Type\",\r\n render: () =>
CPM
,\r\n },\r\n {\r\n title: \"Xandr Rate Category\",\r\n field: \"BillingCategoryId\",\r\n render: row => renderXandrRateCategories(row),\r\n },\r\n ]\r\n : [\r\n {\r\n title: \"Audience Name\",\r\n field: \"AudienceName\",\r\n render: row => renderTextField(row, \"AudienceName\"),\r\n },\r\n {\r\n title: \"Description\",\r\n field: \"Description\",\r\n render: row => renderTextField(row, \"Description\"),\r\n },\r\n {\r\n title: \"Expansion Type\",\r\n field: \"ExpansionType\",\r\n render: row => renderExpansionType(row),\r\n },\r\n {\r\n title: \"Expiration Date\",\r\n field: \"ExpirationDate\",\r\n render: row => renderExpirationDate(row),\r\n },\r\n {\r\n title: \"Rate Type\",\r\n render: () =>
CPM
,\r\n },\r\n ];\r\n\r\n const renderTextField = (row: FlowExportXandrDriverFields, property: string) => (\r\n \r\n dispatch(\r\n updateAttribute(\"flowExportXandrDriverFields\", row.XandrDriverFieldId, property, newValue, true)\r\n )\r\n }\r\n disabled={!canEdit || (flow && flow.IsLocked)}\r\n />\r\n );\r\n\r\n const renderExpansionType = (row: FlowExportXandrDriverFields) => (\r\n \r\n dispatch(\r\n updateAttribute(\r\n \"flowExportXandrDriverFields\",\r\n row.XandrDriverFieldId,\r\n \"ExpansionType\",\r\n e.target.value,\r\n true\r\n )\r\n )\r\n }\r\n >\r\n \r\n Household\r\n \r\n \r\n );\r\n\r\n const renderXandrRateCategories = (row: FlowExportXandrDriverFields) => (\r\n \r\n dispatch(\r\n updateAttribute(\r\n \"flowExportXandrDriverFields\",\r\n row.XandrDriverFieldId,\r\n \"BillingCategoryId\",\r\n e.target.value,\r\n true\r\n )\r\n )\r\n }\r\n >\r\n {xandrRateCategories.map(x => (\r\n \r\n {`${x.category_name} (${x.category_price})`}\r\n \r\n ))}\r\n \r\n );\r\n\r\n const renderExpirationDate = (row: FlowExportXandrDriverFields) => (\r\n \r\n {\r\n const newDateTime = e ? e.utc().format() : null;\r\n dispatch(\r\n updateAttribute(\r\n \"flowExportXandrDriverFields\",\r\n row.XandrDriverFieldId,\r\n \"ExpirationDate\",\r\n newDateTime,\r\n true\r\n )\r\n );\r\n }}\r\n />\r\n \r\n );\r\n\r\n const handleGlobalDateTimeChange = (globalDate: MaterialUiPickersDate) => {\r\n const newDateTime = globalDate ? globalDate.utc().format() : null;\r\n setGlobalExpirationDate(newDateTime);\r\n };\r\n\r\n const assignGlobalValues = () => {\r\n for (const field of xandrDriverFields) {\r\n dispatch(\r\n updateAttribute(\r\n \"flowExportXandrDriverFields\",\r\n field.XandrDriverFieldId,\r\n \"ExpansionType\",\r\n globalExpansionType\r\n )\r\n );\r\n\r\n dispatch(\r\n updateAttribute(\r\n \"flowExportXandrDriverFields\",\r\n field.XandrDriverFieldId,\r\n \"ExpirationDate\",\r\n globalExpirationDate\r\n )\r\n );\r\n\r\n dispatch(\r\n updateAttribute(\r\n \"flowExportXandrDriverFields\",\r\n field.XandrDriverFieldId,\r\n \"BillingCategoryId\",\r\n selectedCategory?.data_category_id || 0\r\n )\r\n );\r\n }\r\n };\r\n\r\n return (\r\n <>\r\n
\r\n
\r\n

Xandr Driver File Fields

\r\n
\r\n
\r\n \r\n setIsOpenGlobalAssignment(!isOpenGlobalAssignment)}\r\n >\r\n Global Fields Assignment\r\n \r\n {isOpenGlobalAssignment ? ExpandLess : ExpandMore}\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n Expansion Type\r\n \r\n setGlobalExpansionType(e.target.value as string)}\r\n >\r\n \r\n Household\r\n \r\n \r\n \r\n
\r\n
\r\n {deliveryType && DeliveryType.ThirdPartyCustom == deliveryType ? (\r\n \r\n option.category_name}\r\n renderInput={params => (\r\n \r\n )}\r\n onChange={(_e, value) => setSelectedCategory(value)}\r\n loading={rateCategoriesLoading}\r\n loadingText={\"Loading Categories...\"}\r\n fullWidth\r\n />\r\n \r\n ) : null}\r\n
\r\n
\r\n
\r\n
\r\n \r\n handleGlobalDateTimeChange(e)}\r\n />\r\n \r\n
\r\n
\r\n \r\n Assign\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\n\r\nexport default XandrDriverFields;\r\n","import React from \"react\";\r\nimport IconSwitch from \"../../../material-components/Misc/IconSwitch\";\r\nimport { FormControlLabel, Icon, Tooltip } from \"@material-ui/core\";\r\n\r\ntype Props = {\r\n customDedupe: boolean;\r\n disabled: boolean;\r\n updateCustomDedupe: (e) => void;\r\n};\r\n\r\nconst CustomDedupeToggle: React.FC = ({ customDedupe, disabled, updateCustomDedupe }: Props) => {\r\n const label = (\r\n \r\n Turn ON to customize your dedupe options\r\n
\r\n Turn OFF to use defaults\r\n \r\n }\r\n id=\"dedupe_tip\"\r\n >\r\n
\r\n Custom Dedupe \r\n info\r\n
\r\n \r\n );\r\n\r\n return (\r\n \r\n }\r\n label={label}\r\n />\r\n );\r\n};\r\n\r\nexport default CustomDedupeToggle;\r\n","import React from \"react\";\r\n// Redux + AC\r\nimport { connect } from \"react-redux\";\r\nimport { bindActionCreators } from \"redux\";\r\nimport type { MapStateToProps } from \"react-redux\";\r\nimport { arrayMoveImmutable } from \"array-move\";\r\n\r\nimport FlowItemMaxQtyToggle from \"../Shared/FlowItemMaxQtyToggle\";\r\nimport * as flowActions from \"../../../../actions/flowActions\";\r\nimport * as flowExportXandrDriverFieldActions from \"../../../../actions/flowExportXandrDriverFieldActions\";\r\nimport { getFlowRelationsForSelectedFlow } from \"../../../../reducers/flowRelations\";\r\nimport { getFlowItemClientVariablesForSelectedFlow } from \"../../../../reducers/flowItemClientVariables\";\r\nimport { getFlowExportsByFlowItemId } from \"../../../../reducers/flowExports\";\r\nimport { getFlowOutputsByFlowItemId } from \"../../../../reducers/flowOutputs\";\r\nimport { getFlowMultiExportsByFlowItemId } from \"../../../../reducers/flowMultiExports\";\r\nimport { getFlowRelationParentLabelsForSelectedFlow } from \"../../../../reducers/flowRelationParentLabels\";\r\nimport { makeGetPermissionsItemFromProps } from \"../../../../reducers/flowItems\";\r\nimport type { FlowExportTemplateFieldsByItemId } from \"../../../../reducers/flowExportTemplateFields\";\r\nimport type { FlowExportPinterestTemplateFieldsByItemId } from \"../../../../reducers/flowExportPinterestTemplateFields\";\r\nimport type { FlowExportTikTokTemplateFieldsByItemId } from \"../../../../reducers/flowExportTikTokTemplateFields\";\r\nimport type { FlowExportTradeDeskTemplateFieldsByItemId } from \"../../../../reducers/flowExportTradeDeskTemplateFields\";\r\nimport type { FlowExportPubmaticTemplateFieldsByItemId } from \"../../../../reducers/flowExportPubmaticTemplateFields\";\r\nimport type { FlowOfferMergesByItemId } from \"../../../../reducers/flowOfferMerges\";\r\nimport { getFlowExportTemplateFieldsByFlowItemId } from \"../../../../reducers/flowExportTemplateFields\";\r\nimport { getFlowExportPinterestTemplateFieldsByFlowItemId } from \"../../../../reducers/flowExportPinterestTemplateFields\";\r\nimport { getFlowExportTikTokTemplateFieldsByFlowItemId } from \"../../../../reducers/flowExportTikTokTemplateFields\";\r\nimport { getFlowExportTradeDeskTemplateFieldsByFlowItemId } from \"../../../../reducers/flowExportTradeDeskTemplateFields\";\r\nimport { getFlowExportPubmaticTemplateFieldsByFlowItemId } from \"../../../../reducers/flowExportPubmaticTemplateFields\";\r\nimport { getFlowExportTaxonomyFileFieldsByFlowItemId } from \"../../../../reducers/taxonomyLayout\";\r\nimport type { FlowExportTaxonomyFileFieldsByItemId } from \"../../../../reducers/taxonomyLayout\";\r\nimport { getFlowSegmentSplitsForSelectedFlowItem } from \"../../../../reducers/flowSegmentSplits\";\r\nimport { getFlowOfferMergesByFlowItemId } from \"../../../../reducers/flowOfferMerges\";\r\nimport { getFlowMultiExportArray } from \"../../../../reducers/flowMultiExports\";\r\nimport { createSelector } from \"reselect\";\r\nimport FieldPicker from \"../../../tree-field/FieldPicker\";\r\nimport type {\r\n FlowRelation,\r\n FlowItem,\r\n FlowItemClientVariableD,\r\n FlowAndItemPermissions,\r\n UpdateAttribute,\r\n FlowOfferMerge,\r\n FlowSVDedupeD,\r\n FlowExport,\r\n FlowOutput,\r\n FlowRelationParentLabel,\r\n FlowMultiExport,\r\n FlowExportTemplateFields,\r\n FlowExportPinterestTemplateFields,\r\n FlowExportTikTokTemplateFields,\r\n FlowExportTradeDeskTemplateFields,\r\n FlowExportPubmaticTemplateFields,\r\n FlowSegmentSplit,\r\n FlowSegmentSplitOffer,\r\n} from \"../../../../types/flowTypes\";\r\nimport { IClientVariable, VariableValueType } from \"../../../../types/stores/vars\";\r\nimport { addCommas, renderFlowItemType } from \"../../../../helpers/typedHelpers\";\r\nimport type { Destination } from \"../../../../types/types\";\r\nimport { FlowExportFreewheelDriverFileFields } from \"../../../../types/stores/freewheel\";\r\n\r\nimport { makeGetFlowSVDedupe } from \"../FlowSVDedupeEdit\";\r\nimport FlowSVDedupeEdit from \"../FlowSVDedupeEdit\";\r\nimport OfferDedupeToggle from \"../FlowOfferItems/OfferDedupeToggle\";\r\nimport ExportTemplateFields from \"./FlowExportTemplateFields\";\r\nimport ExportPinterestTemplateFields from \"./FlowExportPinterestTemplateFields\";\r\nimport ExportTikTokTemplateFields from \"./FlowExportTikTokTemplateFields\";\r\nimport ExportTradeDeskTemplateFields from \"./FlowExportTradeDeskTemplateFields\";\r\nimport ExportPubmaticTemplateFields from \"./FlowExportPubmaticTemplateFields\";\r\nimport { makeGetFlowOfferMerge } from \"../FlowOfferMergeEdit\";\r\nimport FlowExportSplitToggle from \"./FlowExportSplitToggle\";\r\nimport FlowExportSplit from \"./FlowExportSplit\";\r\nimport FlowExportSeperateFilesToggle from \"./FlowExportSeperateFilesToggle\";\r\nimport FlowExportFreewheelDriverFileForm from \"./FlowExportFreewheelDriverFileForm\";\r\nimport FlowItemSnowflakeTables from \"../Shared/FlowItemSnowflakeTables\";\r\nimport XandrDriverFields from \"./XandrDriverFields\";\r\n\r\nimport Divider from \"@material-ui/core/Divider\";\r\nimport TextField from \"@material-ui/core/TextField\";\r\nimport NumericalTextField from \"../../../material-components/Misc/NumericalTextField\";\r\nimport Select from \"@material-ui/core/Select\";\r\nimport MenuItem from \"@material-ui/core/MenuItem\";\r\nimport Checkbox from \"@material-ui/core/Checkbox\";\r\n// material ui table\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\n\r\nimport Collapse from \"@material-ui/core/Collapse\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport { Tooltip, Icon } from \"@material-ui/core\";\r\nimport { getFlowSegmentSplitOffersForSelectedFlowItem } from \"../../../../reducers/flowSegmentSplitOffers\";\r\nimport CustomDedupeToggle from \"../FlowOfferItems/CustomDedupeToggle\";\r\nimport { getFlowExportFreewheelDriverFileFieldsByFlowItemId } from \"../../../../reducers/freewheel\";\r\nimport { DeploySettings } from \"../../../../types/stores/companyTable\";\r\nimport { IAdvertisersByCompany } from \"../../../../types/stores/vars\";\r\n\r\ntype Props = {\r\n //passed in\r\n destinationId: number,\r\n deliveryTypeId: number,\r\n splitOverwrite: boolean,\r\n flowItemId: number,\r\n flowExportId: number,\r\n isAdditionalTemplate: boolean,\r\n isPinterestTemplate: boolean,\r\n isTikTokTemplate: Boolean,\r\n isTradeDeskTemplate: boolean,\r\n isPubmaticTemplate: boolean,\r\n isSnowflakeTable: Boolean,\r\n deploySetting: number,\r\n isMultiExport: Boolean,\r\n isLayoutChanged: Boolean,\r\n resetIsLayoutChanged: () => void,\r\n //redux\r\n preventOverrideDedupeExport: boolean,\r\n flowMultiExportsByFlowItemId: Array,\r\n destinationOffers: Array,\r\n flowItems: { [number]: FlowItem },\r\n flowRelations: Array,\r\n flowItemClientVariables: Array,\r\n layout: any,\r\n permissions: FlowAndItemPermissions,\r\n selectedFlow: number,\r\n selectedCompany: number,\r\n flowOfferMerges: Array,\r\n flowExportOfferMerges: Array,\r\n flowSVDedupe: ?FlowSVDedupeD,\r\n updateAttribute: UpdateAttribute,\r\n flowExport: ?FlowExport,\r\n flowOutput: ?FlowOutput,\r\n enabledFeatures: Array,\r\n parentLabels: Array,\r\n companies: Array,\r\n variableGroups: Array,\r\n flowExportTemplateFields: Array,\r\n flowExportPinterestTemplateFields: Array,\r\n flowExportTikTokTemplateFields: Array,\r\n flowExportTradeDeskTemplateFields: Array,\r\n flowExportPubmaticTemplateFields: Array,\r\n flowExportFreewheelDriverFileFields: Array,\r\n flowExportTaxonomyFileFields: Array,\r\n flowSegmentSplits: Array,\r\n flowSegmentSplitOffers: Array,\r\n destination: Destination,\r\n defaultDedupeKey: string,\r\n clientFieldObject: any,\r\n requestFlowExportDestinationOffers: (destinationId: number) => void,\r\n deleteFlowSVDedupe: (flowSVDedupeId: number) => void,\r\n newFlowItemClientVariable: (\r\n variableId: number,\r\n flowId: number,\r\n flowItemId: number,\r\n childFlowItemId: number,\r\n variableValue: VariableValueType\r\n ) => void,\r\n deleteFlowItemClientVariable: (id: number) => void,\r\n invalidateItemAndChildren: (flowItemId: number) => void,\r\n updateFlowOfferMerge: (flowOfferMergeId: number, priority: number) => void,\r\n newFlowOfferMerge: (flowItemId: number, parentFlowItemId: number) => void,\r\n newFlowSegmentSplitOverWrite: (flowItemId: number, parentFlowItemId: number, absoluteOrRelative: string) => void,\r\n newFlowExportTemplateFields: (flowItemId: number, parentFlowItemId: number) => void,\r\n deleteFlowExportTemplateFields: (id: number) => void,\r\n newFlowExportPinterestTemplateFields: (flowItemId: number, parentFlowItemId: number) => void,\r\n newFlowExportTikTokTemplateFields: (flowItemId: number, parentFlowItemId: number) => void,\r\n newFlowExportTradeDeskTemplateFields: (flowItemId: number, parentFlowItemId: number) => void,\r\n newFlowExportPubmaticTemplateFields: (flowItemId: number, parentFlowItemId: number) => void,\r\n newFlowExportFreewheelDriverFileFields: (flowItemId: number, parentFlowItemId: number) => void,\r\n newFlowExportTaxonomyFileFields: (flowItemId: number, parentFlowItemId: number) => void,\r\n deleteFlowExportPinterestTemplateFields: (id: number) => void,\r\n deleteFlowExportTikTokTemplateFields: (id: number) => void,\r\n deleteFlowExportTradeDeskTemplateFields: (id: number) => void,\r\n deleteFlowExportPubmaticTemplateFields: (id: number) => void,\r\n deleteFlowExportFreewheelDriverFileFields: (id: number) => void,\r\n addFlowRelationParentLabel: (flowRelationId: number, parentLabel: string) => void,\r\n deleteFlowSegmentSplitOffer: (id: number) => void,\r\n deleteFlowSegmentSplit: (id: number) => void,\r\n flow: any,\r\n destinations: Array,\r\n};\r\n\r\ntype State = {\r\n tabKey: number,\r\n sortBy: string,\r\n sortDirection: string,\r\n isSetDedupeDefault: boolean,\r\n dedupeKey: string,\r\n sortByFields: string,\r\n splitExpandedId: number,\r\n previousTemplateID: number,\r\n setDefaults: Boolean,\r\n};\r\n\r\nclass FlowExportOfferEdit extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n tabKey: 1,\r\n sortBy: \"ItemName\",\r\n sortDirection: \"ASC\",\r\n isSetDedupeDefault: false,\r\n dedupeKey: \"\",\r\n sortByFields: \"\",\r\n splitExpandedId: 0,\r\n hasMounted: false,\r\n previousTemplateID: 0,\r\n setDefaults: false,\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n const {\r\n destinationId,\r\n splitOverwrite,\r\n destinationOffers,\r\n flowSVDedupe,\r\n enabledFeatures,\r\n flowExport,\r\n updateAttribute,\r\n flowRelations,\r\n flowSegmentSplits,\r\n flowSegmentSplitOffers,\r\n newFlowSegmentSplitOverWrite,\r\n invalidateItemAndChildren,\r\n deleteFlowSegmentSplit,\r\n deleteFlowSegmentSplitOffer,\r\n } = this.props;\r\n\r\n if (!destinationOffers && destinationId) {\r\n this.props.requestFlowExportDestinationOffers(destinationId);\r\n }\r\n this.addMissingFlowOfferMerges();\r\n if (flowSVDedupe != null) {\r\n this.resetPriorities();\r\n }\r\n\r\n this.addMissingParentLabels();\r\n\r\n if (enabledFeatures.includes(\"flow-export-template-fields\")) {\r\n this.updateTemplateFields();\r\n }\r\n\r\n this.updateTradeDeskTemplateFields();\r\n this.updatePubmaticTemplateFields();\r\n this.updatePinterestTemplateFields();\r\n this.updateTikTokTemplateFields();\r\n this.updateFreewheelDriverFileFields();\r\n this.updateTaxonomyFileFields();\r\n\r\n const hasDestinationSplitFeature = enabledFeatures.includes(\"flow-destination-level-splits\");\r\n if (splitOverwrite) {\r\n if (flowExport != null) {\r\n const parentRelations = flowRelations.filter(x => x.ChildFlowItemId == flowExport.FlowItemId);\r\n\r\n if (!hasDestinationSplitFeature) {\r\n if (flowExport.IsSeperateFiles) {\r\n updateAttribute(\"flowExports\", flowExport.FlowExportId, \"IsSeperateFiles\", false);\r\n }\r\n if (flowExport.IsSplitOn) {\r\n updateAttribute(\"flowExports\", flowExport.FlowExportId, \"IsSplitOn\", false);\r\n }\r\n\r\n for (const parent of parentRelations) {\r\n const parentSegmentSplits = flowSegmentSplits.filter(\r\n x => x.ParentFlowItemId == parent.ParentFlowItemId\r\n );\r\n if (parentSegmentSplits.length > 1) {\r\n for (const split of parentSegmentSplits) {\r\n deleteFlowSegmentSplit(split.SegmentSplitId);\r\n }\r\n }\r\n }\r\n for (const split of flowSegmentSplitOffers) {\r\n deleteFlowSegmentSplitOffer(split.SegmentSplitOfferId);\r\n }\r\n } else if (!flowExport.IsSeperateFiles) {\r\n updateAttribute(\"flowExports\", flowExport.FlowExportId, \"IsSeperateFiles\", true);\r\n }\r\n\r\n for (const parent of parentRelations) {\r\n const parentSegmentSplits = flowSegmentSplits.filter(\r\n x => x.ParentFlowItemId == parent.ParentFlowItemId\r\n );\r\n if (parentSegmentSplits.length == 0) {\r\n newFlowSegmentSplitOverWrite(flowExport.FlowItemId, parent.ParentFlowItemId, \"relative\");\r\n invalidateItemAndChildren(flowExport.FlowItemId);\r\n }\r\n }\r\n }\r\n } else if (!hasDestinationSplitFeature) {\r\n if (flowExport.IsSeperateFiles) {\r\n updateAttribute(\"flowExports\", flowExport.FlowExportId, \"IsSeperateFiles\", false);\r\n }\r\n if (flowExport.IsSplitOn) {\r\n updateAttribute(\"flowExports\", flowExport.FlowExportId, \"IsSplitOn\", false);\r\n }\r\n for (const split of flowSegmentSplits) {\r\n deleteFlowSegmentSplit(split.SegmentSplitId);\r\n }\r\n for (const split of flowSegmentSplitOffers) {\r\n deleteFlowSegmentSplitOffer(split.SegmentSplitOfferId);\r\n }\r\n }\r\n }\r\n\r\n componentDidUpdate(prevProps) {\r\n const {\r\n destinationId,\r\n splitOverwrite,\r\n destinationOffers,\r\n flowSVDedupe,\r\n flowRelations,\r\n layout,\r\n enabledFeatures,\r\n flowExport,\r\n updateAttribute,\r\n flowSegmentSplits,\r\n newFlowSegmentSplitOverWrite,\r\n invalidateItemAndChildren,\r\n flowOfferMerges,\r\n isLayoutChanged,\r\n resetIsLayoutChanged,\r\n } = this.props;\r\n\r\n if (destinationId && prevProps.destinationId != destinationId && !destinationOffers) {\r\n this.props.requestFlowExportDestinationOffers(destinationId);\r\n }\r\n\r\n if (\r\n prevProps.flowRelations != flowRelations ||\r\n prevProps.destinationOffers != destinationOffers ||\r\n prevProps.layout != layout\r\n ) {\r\n this.addMissingFlowOfferMerges();\r\n this.addMissingParentLabels();\r\n }\r\n\r\n if (prevProps.layout != layout && this.state.hasMounted) {\r\n // this.addMissingFlowOfferMerges();\r\n }\r\n\r\n if (isLayoutChanged && destinationOffers) {\r\n this.resetDestinationOfferCodeStringFields();\r\n resetIsLayoutChanged();\r\n }\r\n\r\n if (flowSVDedupe != null) {\r\n this.resetPriorities();\r\n }\r\n\r\n if (destinationId != prevProps.destinationId && enabledFeatures.includes(\"flow-export-template-fields\")) {\r\n this.updateTemplateFields();\r\n }\r\n\r\n if (flowExport.DeliveryTypeId != null && flowExport.DeliveryTypeId != this.state.previousTemplateID) {\r\n this.updateTradeDeskTemplateFields();\r\n this.updatePubmaticTemplateFields();\r\n this.setState({ previousTemplateID: flowExport.DeliveryTypeId });\r\n }\r\n\r\n if (destinationId != prevProps.destinationId) {\r\n this.updatePinterestTemplateFields();\r\n this.updateTikTokTemplateFields();\r\n this.updateTradeDeskTemplateFields();\r\n this.updatePubmaticTemplateFields();\r\n this.updateFreewheelDriverFileFields();\r\n this.updateTaxonomyFileFields();\r\n }\r\n\r\n if (flowOfferMerges != prevProps.flowOfferMerges) {\r\n this.updateFreewheelDriverFileFields();\r\n }\r\n\r\n const hasDestinationSplitFeature = enabledFeatures.includes(\"flow-destination-level-splits\");\r\n if (splitOverwrite != prevProps.splitOverwrite) {\r\n if (flowExport != null) {\r\n if (splitOverwrite) {\r\n if (hasDestinationSplitFeature && !flowExport.IsSeperateFiles) {\r\n updateAttribute(\"flowExports\", flowExport.FlowExportId, \"IsSeperateFiles\", true);\r\n }\r\n const parentRelations = flowRelations.filter(x => x.ChildFlowItemId == flowExport.FlowItemId);\r\n\r\n for (const parent of parentRelations) {\r\n const parentSegmentSplits = flowSegmentSplits.filter(\r\n x => x.ParentFlowItemId == parent.ParentFlowItemId\r\n );\r\n if (parentSegmentSplits.length == 0) {\r\n newFlowSegmentSplitOverWrite(flowExport.FlowItemId, parent.ParentFlowItemId, \"relative\");\r\n invalidateItemAndChildren(flowExport.FlowItemId);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (flowExport.IsSplitOn != prevProps.flowExport.IsSplitOn && !flowExport.IsSplitOn) {\r\n if (splitOverwrite) {\r\n if (hasDestinationSplitFeature && !flowExport.IsSeperateFiles) {\r\n updateAttribute(\"flowExports\", flowExport.FlowExportId, \"IsSeperateFiles\", true);\r\n }\r\n const parentRelations = flowRelations.filter(x => x.ChildFlowItemId == flowExport.FlowItemId);\r\n\r\n for (const parent of parentRelations) {\r\n const parentSegmentSplits = flowSegmentSplits.filter(\r\n x => x.ParentFlowItemId == parent.ParentFlowItemId\r\n );\r\n if (parentSegmentSplits.length == 0) {\r\n newFlowSegmentSplitOverWrite(flowExport.FlowItemId, parent.ParentFlowItemId, \"relative\");\r\n invalidateItemAndChildren(flowExport.FlowItemId);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n updateTemplateFields = () => {\r\n const {\r\n flowExportTemplateFields,\r\n isAdditionalTemplate,\r\n flowOfferMerges,\r\n permissions: {\r\n item: { canEdit },\r\n },\r\n deleteFlowExportTemplateFields,\r\n newFlowExportTemplateFields,\r\n } = this.props;\r\n\r\n if (!canEdit) {\r\n return;\r\n }\r\n\r\n if (!isAdditionalTemplate) {\r\n for (const template of flowExportTemplateFields) {\r\n deleteFlowExportTemplateFields(template.FlowExportTemplateId);\r\n }\r\n } else {\r\n for (const offer of flowOfferMerges) {\r\n const exportTemplate = flowExportTemplateFields.find(\r\n x => x.FlowItemId == offer.FlowItemId && x.ParentFlowItemId == offer.ParentFlowItemId\r\n );\r\n if (!exportTemplate) {\r\n newFlowExportTemplateFields(offer.FlowItemId, offer.ParentFlowItemId);\r\n }\r\n }\r\n }\r\n };\r\n\r\n updatePinterestTemplateFields = () => {\r\n const {\r\n flowExportPinterestTemplateFields,\r\n isPinterestTemplate,\r\n flowOfferMerges,\r\n permissions: {\r\n item: { canEdit },\r\n },\r\n deleteFlowExportPinterestTemplateFields,\r\n newFlowExportPinterestTemplateFields,\r\n destination,\r\n } = this.props;\r\n\r\n if (!canEdit) {\r\n return;\r\n }\r\n\r\n if (isPinterestTemplate) {\r\n for (const offer of flowOfferMerges) {\r\n const exportTemplate = flowExportPinterestTemplateFields.find(\r\n x => x.FlowItemId == offer.FlowItemId && x.ParentFlowItemId == offer.ParentFlowItemId\r\n );\r\n if (!exportTemplate) {\r\n newFlowExportPinterestTemplateFields(offer.FlowItemId, offer.ParentFlowItemId);\r\n }\r\n }\r\n } else if (destination) {\r\n for (const template of flowExportPinterestTemplateFields) {\r\n deleteFlowExportPinterestTemplateFields(template.FlowExportTemplateId);\r\n }\r\n }\r\n };\r\n\r\n updateTikTokTemplateFields = () => {\r\n const {\r\n flowExportTikTokTemplateFields,\r\n isTikTokTemplate,\r\n flowOfferMerges,\r\n permissions: {\r\n item: { canEdit },\r\n },\r\n deleteFlowExportTikTokTemplateFields,\r\n newFlowExportTikTokTemplateFields,\r\n destination,\r\n } = this.props;\r\n\r\n if (!canEdit) {\r\n return;\r\n }\r\n\r\n if (isTikTokTemplate) {\r\n for (const offer of flowOfferMerges) {\r\n const exportTemplate = flowExportTikTokTemplateFields.find(\r\n x => x.FlowItemId == offer.FlowItemId && x.ParentFlowItemId == offer.ParentFlowItemId\r\n );\r\n if (!exportTemplate) {\r\n newFlowExportTikTokTemplateFields(offer.FlowItemId, offer.ParentFlowItemId);\r\n }\r\n }\r\n } else if (destination) {\r\n for (const template of flowExportTikTokTemplateFields) {\r\n deleteFlowExportTikTokTemplateFields(template.FlowExportTemplateId);\r\n }\r\n }\r\n };\r\n\r\n updateTaxonomyFileFields = () => {\r\n const {\r\n flowOfferMerges,\r\n flowExportTaxonomyFileFields,\r\n permissions: {\r\n item: { canEdit },\r\n },\r\n layout,\r\n newFlowExportTaxonomyFileFields,\r\n } = this.props;\r\n\r\n if (!canEdit) {\r\n return;\r\n }\r\n\r\n if (layout != null && layout.Layout != null && layout.Layout.TaxonomyLayout && layout.LayoutTaxonomyObjects) {\r\n for (const offer of flowOfferMerges) {\r\n const taxonomyField = flowExportTaxonomyFileFields.find(\r\n x => x.FlowItemId == offer.FlowItemId && x.ParentFlowItemId == offer.ParentFlowItemId\r\n );\r\n\r\n let taxonomyValues = {};\r\n\r\n layout.LayoutTaxonomyObjects.forEach(x => {\r\n taxonomyValues[x.ExportName] = \"\";\r\n });\r\n\r\n if (!taxonomyField) {\r\n newFlowExportTaxonomyFileFields(offer.FlowItemId, offer.ParentFlowItemId, taxonomyValues);\r\n }\r\n }\r\n }\r\n };\r\n\r\n updateFreewheelDriverFileFields = () => {\r\n const {\r\n flowExportFreewheelDriverFileFields,\r\n deploySetting,\r\n flowOfferMerges,\r\n permissions: {\r\n item: { canEdit },\r\n },\r\n deleteFlowExportFreewheelDriverFileFields,\r\n newFlowExportFreewheelDriverFileFields,\r\n destination,\r\n } = this.props;\r\n\r\n if (!canEdit) {\r\n return;\r\n }\r\n\r\n if (\r\n deploySetting == DeploySettings.DeployFreewheelDriverFile ||\r\n deploySetting == DeploySettings.DeployMagniteDriverFile\r\n ) {\r\n for (const offer of flowOfferMerges) {\r\n const exportTemplate = flowExportFreewheelDriverFileFields.find(\r\n x => x.FlowItemId == offer.FlowItemId && x.ParentFlowItemId == offer.ParentFlowItemId\r\n );\r\n if (!exportTemplate) {\r\n newFlowExportFreewheelDriverFileFields(offer.FlowItemId, offer.ParentFlowItemId);\r\n }\r\n }\r\n } else if (destination) {\r\n for (const template of flowExportFreewheelDriverFileFields) {\r\n deleteFlowExportFreewheelDriverFileFields(template.FlowExportFreewheelDriverFileFieldId);\r\n }\r\n }\r\n };\r\n\r\n updateTradeDeskTemplateFields = () => {\r\n const {\r\n flowExportTradeDeskTemplateFields,\r\n flowExport,\r\n enabledFeatures,\r\n isTradeDeskTemplate,\r\n flowOfferMerges,\r\n permissions: {\r\n item: { canEdit },\r\n },\r\n deleteFlowExportTradeDeskTemplateFields,\r\n newFlowExportTradeDeskTemplateFields,\r\n destination,\r\n } = this.props;\r\n\r\n if (!canEdit) {\r\n return;\r\n }\r\n\r\n if (isTradeDeskTemplate) {\r\n const hasRateFeature = enabledFeatures.includes(\"display-field-rates\");\r\n for (const offer of flowOfferMerges) {\r\n const exportTemplate = flowExportTradeDeskTemplateFields.find(\r\n x => x.FlowItemId == offer.FlowItemId && x.ParentFlowItemId == offer.ParentFlowItemId\r\n );\r\n if (\r\n (flowExport.DeliveryTypeId != null && hasRateFeature && !exportTemplate) ||\r\n (!hasRateFeature && !exportTemplate)\r\n ) {\r\n // need to add the logic here to not update the template?\r\n newFlowExportTradeDeskTemplateFields(offer.FlowItemId, offer.ParentFlowItemId);\r\n }\r\n }\r\n } else if (destination) {\r\n for (const template of flowExportTradeDeskTemplateFields) {\r\n deleteFlowExportTradeDeskTemplateFields(template.FlowExportTemplateId);\r\n }\r\n }\r\n };\r\n\r\n updatePubmaticTemplateFields = () => {\r\n const {\r\n flowExportPubmaticTemplateFields,\r\n flowExport,\r\n enabledFeatures,\r\n isPubmaticTemplate,\r\n flowOfferMerges,\r\n permissions: {\r\n item: { canEdit },\r\n },\r\n deleteFlowExportPubmaticTemplateFields,\r\n newFlowExportPubmaticTemplateFields,\r\n destination,\r\n } = this.props;\r\n\r\n if (!canEdit) {\r\n return;\r\n }\r\n\r\n if (isPubmaticTemplate) {\r\n const hasRateFeature = enabledFeatures.includes(\"display-field-rates\");\r\n for (const offer of flowOfferMerges) {\r\n const exportTemplate = flowExportPubmaticTemplateFields.find(\r\n x => x.FlowItemId == offer.FlowItemId && x.ParentFlowItemId == offer.ParentFlowItemId\r\n );\r\n if (\r\n (flowExport.DeliveryTypeId != null && hasRateFeature && !exportTemplate) ||\r\n (!hasRateFeature && !exportTemplate)\r\n ) {\r\n // need to add the logic here to not update the template?\r\n newFlowExportPubmaticTemplateFields(offer.FlowItemId, offer.ParentFlowItemId);\r\n }\r\n }\r\n } else if (destination) {\r\n for (const template of flowExportPubmaticTemplateFields) {\r\n deleteFlowExportPubmaticTemplateFields(template.FlowExportTemplateId);\r\n }\r\n }\r\n };\r\n\r\n resetPriorities = () => {\r\n let sortedOfferMerges = this.getSortedOfferMerges();\r\n\r\n const idsToUpdate = [];\r\n\r\n let maxPri = Math.max(...sortedOfferMerges.map(x => x.FlowOfferPriority));\r\n // Set New items to bottom priority\r\n for (const flowOfferMerge of sortedOfferMerges) {\r\n if (flowOfferMerge.FlowOfferPriority <= 0) {\r\n flowOfferMerge.FlowOfferPriority = ++maxPri;\r\n idsToUpdate.push(flowOfferMerge.FlowOfferMergeId);\r\n }\r\n }\r\n //sort againg because priorities may have been updated.\r\n sortedOfferMerges = sortedOfferMerges.sort((a, b) => a.FlowOfferPriority - b.FlowOfferPriority);\r\n let newPri = 1;\r\n for (const flowOfferMerge of sortedOfferMerges) {\r\n if (idsToUpdate.includes(flowOfferMerge.FlowOfferMergeId) || flowOfferMerge.FlowOfferPriority != newPri) {\r\n this.props.updateFlowOfferMerge(flowOfferMerge.FlowOfferMergeId, newPri);\r\n }\r\n newPri++;\r\n }\r\n };\r\n\r\n getSortedOfferMerges = () =>\r\n this.props.flowOutput\r\n ? this.props.flowOfferMerges.sort((a, b) => a.FlowOfferPriority - b.FlowOfferPriority)\r\n : this.props.flowOfferMerges.sort((a, b) => a.FlowOfferPriority - b.FlowOfferPriority);\r\n\r\n addMissingFlowOfferMerges = () => {\r\n const {\r\n flowItemId,\r\n flowRelations,\r\n flowOfferMerges,\r\n flowExport,\r\n isAdditionalTemplate,\r\n isPinterestTemplate,\r\n isTikTokTemplate,\r\n isTradeDeskTemplate,\r\n isPubmaticTemplate,\r\n enabledFeatures,\r\n layout,\r\n flowMultiExportsByFlowItemId,\r\n flowExportTaxonomyFileFields,\r\n flowExportTradeDeskTemplateFields,\r\n flowExportTemplateFields,\r\n flowExportPinterestTemplateFields,\r\n flowExportTikTokTemplateFields,\r\n flowExportPubmaticTemplateFields,\r\n } = this.props;\r\n if (flowExport != null) {\r\n let parentRelations = flowRelations.filter(x => x.ChildFlowItemId == flowItemId);\r\n\r\n if (parentRelations.length == 1 && flowMultiExportsByFlowItemId != null) {\r\n const parentFlowItemId = parentRelations[0].ParentFlowItemId;\r\n if (flowMultiExportsByFlowItemId[parentFlowItemId] != null) {\r\n parentRelations = flowRelations.filter(x => x.ChildFlowItemId == parentFlowItemId);\r\n }\r\n }\r\n\r\n for (const parent of parentRelations) {\r\n const offerMerge = flowOfferMerges.find(x => x.ParentFlowItemId == parent.ParentFlowItemId);\r\n if (!offerMerge && parent.ParentFlowItemId != 0) {\r\n //0 means this was ran without a parent assigned\r\n //offer merges are usually created when a relation is added to a flow offer item\r\n //now we need this for export items but only when they pick a destination layout\r\n //and it has destination offers\r\n\r\n // if (flowMultiExports != null && flowMultiExports.FlowItemId == parent.ParentFlowItemId) {\r\n // } else {\r\n this.props.newFlowOfferMerge(flowItemId, parent.ParentFlowItemId);\r\n // }\r\n\r\n if (isAdditionalTemplate && enabledFeatures.includes(\"flow-export-template-fields\")) {\r\n const exportTemplate = flowExportTemplateFields.some(\r\n field => field.FlowItemId === flowItemId && field.ParentFlowItemId === parent.ParentFlowItemId\r\n );\r\n if (!exportTemplate) {\r\n this.props.newFlowExportTemplateFields(flowItemId, parent.ParentFlowItemId);\r\n }\r\n }\r\n\r\n if (isPinterestTemplate) {\r\n const exportTemplate = flowExportPinterestTemplateFields.some(\r\n field => field.FlowItemId === flowItemId && field.ParentFlowItemId === parent.ParentFlowItemId\r\n );\r\n if (!exportTemplate) {\r\n this.props.newFlowExportPinterestTemplateFields(flowItemId, parent.ParentFlowItemId);\r\n }\r\n }\r\n\r\n if (isTikTokTemplate) {\r\n const exportTemplate = flowExportTikTokTemplateFields.some(\r\n field => field.FlowItemId == flowItemId && field.ParentFlowItemId == parent.ParentFlowItemId\r\n );\r\n if (!exportTemplate) {\r\n this.props.newFlowExportTikTokTemplateFields(flowItemId, parent.ParentFlowItemId);\r\n } \r\n }\r\n\r\n if (layout.LayoutTaxonomyObjects && layout.LayoutTaxonomyObjects.length > 0) {\r\n const taxonomyField = flowExportTaxonomyFileFields.find(\r\n x => x.FlowItemId == flowItemId && x.ParentFlowItemId == parent.ParentFlowItemId\r\n );\r\n\r\n let taxonomyValues = {};\r\n\r\n layout.LayoutTaxonomyObjects.forEach(x => {\r\n taxonomyValues[x.ExportName] = \"\";\r\n });\r\n\r\n if (!taxonomyField) {\r\n this.props.newFlowExportTaxonomyFileFields(\r\n flowItemId,\r\n parent.ParentFlowItemId,\r\n taxonomyValues\r\n );\r\n }\r\n }\r\n\r\n if (isTradeDeskTemplate) {\r\n const hasRateFeature = enabledFeatures.includes(\"display-field-rates\");\r\n if ((flowExport.DeliveryTypeId != null && hasRateFeature) || !hasRateFeature) {\r\n // does a record exist? If so, then don't add another one.\r\n const exportTemplate = flowExportTradeDeskTemplateFields.find(\r\n x => x.FlowItemId == flowItemId && x.ParentFlowItemId == parent.ParentFlowItemId\r\n );\r\n if (exportTemplate && exportTemplate.length == 0) {\r\n this.props.newFlowExportTradeDeskTemplateFields(flowItemId, parent.ParentFlowItemId);\r\n }\r\n }\r\n }\r\n if (isPubmaticTemplate) {\r\n const hasRateFeature = enabledFeatures.includes(\"display-field-rates\");\r\n if ((flowExport.DeliveryTypeId != null && hasRateFeature) || !hasRateFeature) {\r\n // does a record exist? If so, then don't add another one.\r\n const exportTemplate = flowExportPubmaticTemplateFields.find(\r\n x => x.FlowItemId == flowItemId && x.ParentFlowItemId == parent.ParentFlowItemId\r\n );\r\n if (exportTemplate && exportTemplate.length == 0) {\r\n this.props.newFlowExportPubmaticTemplateFields(flowItemId, parent.ParentFlowItemId);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n this.setState({ hasMounted: true });\r\n };\r\n\r\n getRequiredOfferCodes = () => {\r\n const { destinationOffers, layout } = this.props;\r\n\r\n if (\r\n !destinationOffers ||\r\n destinationOffers.length <= 0 ||\r\n !layout ||\r\n !layout.Layout ||\r\n !layout.Layout.DestinationLayout ||\r\n !layout.LayoutObjects\r\n ) {\r\n return [];\r\n }\r\n const offersInLayout = layout.LayoutObjects.filter(x => x.ObjectType == 4).map(x => x.ObjectId);\r\n return destinationOffers.filter(x => offersInLayout.includes(x.Id));\r\n };\r\n\r\n renderOutputQuantity = (value, isDedupe = false) => {\r\n const { flowItemId, flowItems, flowExport } = this.props;\r\n const flowItem = flowItems[flowItemId];\r\n\r\n if (!flowItem || (!flowItem.HasResultTable && value == 0) || !flowExport) {\r\n return \"N/A\";\r\n }\r\n if (!isDedupe && !flowExport.MeetsMinimumThreshold) {\r\n return \"Below Threshold\";\r\n }\r\n if (!isDedupe && flowExport.IsApprovalRequired && !flowExport.IsCountApproved) {\r\n return \"Approval Required\";\r\n }\r\n\r\n return addCommas(value);\r\n };\r\n\r\n onMaxQuantityChange = (val, Id) => {\r\n const { flowOfferMerges, updateAttribute } = this.props;\r\n if (!flowOfferMerges.find(x => x.FlowOfferMergeId == Id)) {\r\n return;\r\n }\r\n\r\n let newValue = parseInt(val) || val;\r\n updateAttribute(\"flowOfferMerges\", Id, \"MaxQty\", newValue, true);\r\n };\r\n\r\n onMaxQuantityChangeForDrop = (val, Id) => {\r\n const { flowOfferMerges, updateAttribute } = this.props;\r\n\r\n if (!flowOfferMerges.find(x => x.FlowOfferMergeId == Id)) {\r\n return;\r\n }\r\n\r\n if (val == 1) {\r\n updateAttribute(\"flowOfferMerges\", Id, \"MaxQty\", 1, true);\r\n } else {\r\n updateAttribute(\"flowOfferMerges\", Id, \"MaxQty\", 0, true);\r\n }\r\n };\r\n\r\n renderMaxQuantity = (ParentFlowItemId, value) => {\r\n const {\r\n permissions: {\r\n item: { canEdit },\r\n },\r\n flow,\r\n flowExport,\r\n updateAttribute,\r\n } = this.props;\r\n const item = this.props.flowOfferMerges.find(x => x.ParentFlowItemId == ParentFlowItemId);\r\n if (!item) {\r\n return null;\r\n }\r\n\r\n if (\r\n !flowExport.IsMaxQtyOn &&\r\n item.MaxQty != 0 &&\r\n this.props.flowOfferMerges.find(x => x.FlowOfferMergeId == item.FlowOfferMergeId)\r\n ) {\r\n updateAttribute(\"flowOfferMerges\", item.FlowOfferMergeId, \"MaxQty\", 0, true);\r\n }\r\n const isShowNumbers = value > 0 || value == \"\";\r\n\r\n const maxQtySection = isShowNumbers ? (\r\n this.onMaxQuantityChange(e.target.value, item.FlowOfferMergeId)}\r\n />\r\n ) : (\r\n this.onMaxQuantityChangeForDrop(e.target.value, item.FlowOfferMergeId)}\r\n displayEmpty\r\n >\r\n \r\n Select All\r\n \r\n \r\n Set Max Value\r\n \r\n \r\n );\r\n return maxQtySection;\r\n };\r\n\r\n\r\n handleDeployCheckBox = (item: FlowOfferMerge) => {\r\n this.props.updateAttribute(\r\n \"flowOfferMerges\",\r\n item.FlowOfferMergeId,\r\n \"Deploy\",\r\n !item.Deploy,\r\n 1,\r\n false\r\n );\r\n };\r\n\r\n handleDeployCheckBoxAll = (isDeploy: boolean) => {\r\n const {\r\n flowOfferMerges,\r\n } = this.props;\r\n\r\n flowOfferMerges.forEach(item => {\r\n this.props.updateAttribute(\r\n \"flowOfferMerges\",\r\n item.FlowOfferMergeId,\r\n \"Deploy\",\r\n !isDeploy,\r\n 1,\r\n false\r\n );\r\n });\r\n\r\n };\r\n\r\n renderActivationCheckbox = parentFlowItemId => {\r\n const {\r\n flowOfferMerges,\r\n } = this.props;\r\n const item = flowOfferMerges.find(x => x.ParentFlowItemId == parentFlowItemId);\r\n if (!item) {\r\n return null;\r\n }\r\n return (\r\n this.handleDeployCheckBox(item)}\r\n icon={\r\n \r\n check_box_outline_blank\r\n \r\n }\r\n checkedIcon={\r\n \r\n check_box\r\n \r\n }\r\n style={{ color: \"#406eb3\", height: 16, width: 16, margin: \"0px 10px\" }}\r\n color=\"primary\"\r\n />\r\n );\r\n };\r\n\r\n renderActivationCheckboxAll = () => {\r\n const {\r\n flowOfferMerges,\r\n } = this.props;\r\n\r\n let isChecked = true;\r\n flowOfferMerges.forEach(x => {\r\n if (x.Deploy == false) {\r\n isChecked = false;\r\n }\r\n });\r\n\r\n return (\r\n this.handleDeployCheckBoxAll(isChecked)}\r\n icon={\r\n \r\n check_box_outline_blank\r\n \r\n }\r\n checkedIcon={\r\n \r\n check_box\r\n \r\n }\r\n style={{ color: \"#406eb3\", height: 16, width: 16 }}\r\n color=\"primary\"\r\n className=\"pull-right\"\r\n />\r\n );\r\n };\r\n\r\n\r\n removeInvalidOfferCharacters = (valueString) => {\r\n const { enabledFeatures } = this.props;\r\n\r\n // Set regex strings based on feature\r\n let regexFind = /^[a-zA-Z0-9%_./\\- ]+$/g;\r\n let regexReplace = /[^a-zA-Z0-9%_./\\- ]/g;\r\n if (enabledFeatures.includes(\"export-destination-offer-variables\")) {\r\n regexFind = /^[a-zA-Z0-9%_./\\-{}: ]+$/g;\r\n regexReplace = /[^a-zA-Z0-9%_./\\-{}: ]/g;\r\n }\r\n\r\n // Check for invalids\r\n if (!valueString.match(regexFind)) {\r\n // remove invalids and extra spaces\r\n const cleanValue = valueString.replace(regexReplace, \"\").replace(/ {2,}/g, \" \");\r\n return cleanValue;\r\n } else return valueString;\r\n };\r\n\r\n renderEditableString = (variableId, flowItemId, editableIdentifier, groupId, variableScope) => {\r\n const {\r\n permissions: {\r\n item: { canEdit },\r\n },\r\n flowItemClientVariables,\r\n flow,\r\n destination,\r\n destinationOffers,\r\n enabledFeatures,\r\n variableGroups,\r\n } = this.props;\r\n\r\n const flowItemCV = flowItemClientVariables.filter(\r\n x => x.FlowItemId == flowItemId && x.VariableId == variableId && x.ChildFlowItemId == this.props.flowItemId\r\n )[0];\r\n\r\n let valueString = flowItemCV ? flowItemCV.VariableValue.ValueString : \"\";\r\n if (variableScope == \"DestinationOffer\") {\r\n let valueUpdated = false;\r\n\r\n // #EMS-7956 remove invalid characters\r\n const cleanValue = this.removeInvalidOfferCharacters(valueString);\r\n if (cleanValue != valueString) {\r\n valueString = cleanValue;\r\n valueUpdated = true;\r\n }\r\n\r\n // Update state if value changed\r\n if (valueUpdated) {\r\n const newValueObject = this.createVariableStringValueObject(valueString);\r\n this.onVariableChangeString(flowItemCV, variableId, flowItemId, this.props.flowItemId, newValueObject);\r\n }\r\n }\r\n const offer = destinationOffers.find(x => x.Id == variableId);\r\n const varGroup = variableGroups.find(x => x.Id == groupId);\r\n let isReadOnly = false;\r\n let helperText = null;\r\n if (\r\n destination &&\r\n (destination.DeploySetting == DeploySettings.DeployFreewheelDriverFile ||\r\n destination.DeploySetting == DeploySettings.DeployMagniteDriverFile) &&\r\n offer.VariableName.replace(\" \", \"\").toUpperCase() == \"SEGMENTID\"\r\n ) {\r\n isReadOnly = true;\r\n\r\n const expectedValue = `${flow.FlowId}${flowItemId}`;\r\n if (flow.FlowId <= 0 || flowItemId <= 0) {\r\n helperText = \"* Please save your flow to obtain the Segment ID\";\r\n } else if (valueString != expectedValue) {\r\n const newValueObject = this.createVariableStringValueObject(expectedValue);\r\n this.onVariableChangeString(flowItemCV, variableId, flowItemId, this.props.flowItemId, newValueObject);\r\n }\r\n }\r\n if (enabledFeatures.includes(\"variable-grouping-automation\") && offer && varGroup && varGroup.DefaultValue != null && flowItemCV == null && !this.state.setDefaults) {\r\n let varValue = this.determineVariableGroupValue(varGroup.DefaultValue, flowItemId);\r\n if (valueString == \"\") {\r\n const newValueObject: VariableValueType = {\r\n Kind: \"string\",\r\n ValueString: varValue,\r\n ValueDate: null,\r\n FieldId: null,\r\n };\r\n\r\n this.onVariableChangeString(flowItemCV, variableId, flowItemId, this.props.flowItemId, newValueObject);\r\n this.setState({ setDefaults: true });\r\n }\r\n }\r\n\r\n const editableString = (\r\n {\r\n this.handleEnterPress(e);\r\n }}\r\n inputProps={{\r\n style: { fontSize: \"16px\" },\r\n maxLength: 400,\r\n }}\r\n helperText={helperText}\r\n id={editableIdentifier}\r\n onChange={e => {\r\n const newValue = e.target.value;\r\n\r\n let regex = /^$|^[a-z0-9%_./\\- ]+$/i;\r\n if (enabledFeatures.includes(\"export-destination-offer-variables\")) {\r\n regex = /^$|^[a-z0-9%_./\\-{}: ]+$/i;\r\n }\r\n const pass = newValue.match(regex);\r\n if (!pass) {\r\n return;\r\n }\r\n\r\n const newValueObject = this.createVariableStringValueObject(newValue);\r\n this.onVariableChangeString(\r\n flowItemCV,\r\n variableId,\r\n flowItemId,\r\n this.props.flowItemId,\r\n newValueObject\r\n );\r\n }}\r\n />\r\n );\r\n\r\n return editableString;\r\n };\r\n\r\n createVariableStringValueObject = (value) => ({ Kind: \"string\", ValueString: value, ValueDate: null, FieldId: null });\r\n\r\n renderParentLabelColumn = (FlowRelationParentLabelId, value) => {\r\n const {\r\n permissions: {\r\n item: { canEdit },\r\n },\r\n flow,\r\n } = this.props;\r\n\r\n const regex = new RegExp(/[^a-zA-Z0-9_ ]/g);\r\n const hasError = regex.test(value);\r\n\r\n const parentLabelColumn = (\r\n {\r\n const regex = /[^a-zA-Z0-9_ ]/g;\r\n const newValue = e.target.value.replace(regex, \"\");\r\n\r\n this.props.updateAttribute(\r\n \"flowRelationParentLabels\",\r\n FlowRelationParentLabelId,\r\n \"ParentLabel\",\r\n newValue,\r\n e.target.value,\r\n true\r\n );\r\n this.props.invalidateItemAndChildren(this.props.flowItemId);\r\n }}\r\n />\r\n );\r\n\r\n return parentLabelColumn;\r\n };\r\n\r\n getEditableFieldsColumns = (arrayToPopulate, table, col) => {\r\n if (table) {\r\n const numRows = table.children.length || 0;\r\n let row = 0;\r\n\r\n if (col < 0) {\r\n return;\r\n }\r\n\r\n for (row = 0; row < numRows; ++row) {\r\n if (table.children[row].children[0].children[col].children.length > 0) {\r\n if (\r\n table.children[row].children[0].children[col].children[0].className ==\r\n \"form-control editable-string-td\"\r\n ) {\r\n arrayToPopulate.push(table.children[row].children[0].children[col].children[0]);\r\n }\r\n }\r\n }\r\n }\r\n };\r\n\r\n handleEnterPress = e => {\r\n let editableStringArray = [];\r\n const table = document.querySelector(\"#export-offer-code-tables\");\r\n const tableBody = table && table instanceof HTMLElement ? table.children[0].children[1] : null;\r\n if (tableBody && tableBody.className == \"rt-tbody\") {\r\n for (let i = 0; i < tableBody.children[0].children[0].children.length; ++i) {\r\n this.getEditableFieldsColumns(editableStringArray, tableBody, i);\r\n }\r\n\r\n // Set needed variables\r\n const enterKey = \"Enter\";\r\n const useShiftKey = e.shiftKey;\r\n const useEnterKey = e.key == enterKey;\r\n const identifier = e.target.id;\r\n let nextChild = null;\r\n\r\n if (useEnterKey && !useShiftKey) {\r\n nextChild =\r\n editableStringArray[\r\n editableStringArray.findIndex(el => {\r\n if (el) {\r\n return el.id == identifier;\r\n }\r\n }) + 1\r\n ];\r\n\r\n if (nextChild && nextChild instanceof HTMLInputElement) {\r\n nextChild.focus();\r\n nextChild.select();\r\n }\r\n } else if (useEnterKey && useShiftKey) {\r\n nextChild =\r\n editableStringArray[\r\n editableStringArray.findIndex(el => {\r\n if (el) {\r\n return el.id == identifier;\r\n }\r\n }) - 1\r\n ];\r\n\r\n if (nextChild && nextChild instanceof HTMLInputElement) {\r\n nextChild.focus();\r\n nextChild.select();\r\n }\r\n }\r\n }\r\n };\r\n\r\n renderPrioritySelect = parentFlowItemId => {\r\n const {\r\n flowOfferMerges,\r\n permissions: {\r\n item: { canEdit },\r\n },\r\n flow,\r\n } = this.props;\r\n const item = flowOfferMerges.find(x => x.ParentFlowItemId == parentFlowItemId);\r\n if (!item) {\r\n return null;\r\n }\r\n return (\r\n this.onPriorityChange(e.target.value, item.FlowOfferMergeId)}\r\n />\r\n );\r\n };\r\n\r\n onChangeCallback = () => {\r\n const { flowExport, updateAttribute } = this.props;\r\n if (flowExport != null) {\r\n this.setState({ tabKey: 1 });\r\n if (this.state.isSetDedupeDefault) {\r\n updateAttribute(\"flowExports\", flowExport.FlowExportId, \"IsDedupeSaved\", true);\r\n this.setState({ isSetDedupeDefault: false });\r\n }\r\n }\r\n };\r\n\r\n onPriorityChange = (val, Id) => {\r\n const { flowItemId } = this.props;\r\n const sortedOfferMerges = this.getSortedOfferMerges();\r\n\r\n const changedOffer = sortedOfferMerges.find(x => x.FlowOfferMergeId == Id);\r\n if (!changedOffer) {\r\n return;\r\n }\r\n let intNewPri = parseInt(val);\r\n\r\n if (intNewPri < 1) {\r\n intNewPri = 1;\r\n }\r\n\r\n const oldIndex = sortedOfferMerges.indexOf(changedOffer);\r\n const newIndex = intNewPri - 1;\r\n let updatedMerges = arrayMoveImmutable(sortedOfferMerges, oldIndex, newIndex);\r\n updatedMerges.forEach((value, index) => {\r\n const newPri = index + 1;\r\n const idToUpdate = updatedMerges[index][\"FlowOfferMergeId\"];\r\n this.props.updateFlowOfferMerge(idToUpdate, newPri);\r\n });\r\n\r\n this.props.invalidateItemAndChildren(flowItemId);\r\n };\r\n\r\n determineVariableGroupValue = (defaultValue: string, flowItemId: number) => {\r\n const { flowExport, companies, flow, flowItems, selectedCompany, flowRelations, flowMultiExportsByFlowItemId } =\r\n this.props;\r\n const company = companies.filter(x => x.CompanyID == selectedCompany)[0];\r\n let returnString = \"\";\r\n switch (defaultValue) {\r\n case \"{CompanyName}\":\r\n returnString = company.CompanyName;\r\n break;\r\n case \"{AudienceName}\": {\r\n let parentRelations = flowRelations.filter(x => x.ChildFlowItemId == flowExport.FlowItemId);\r\n\r\n //Export parent is a MultiDestinationNode\r\n if (\r\n parentRelations.length == 1 &&\r\n flowMultiExportsByFlowItemId[parentRelations[0].ParentFlowItemId] != null\r\n ) {\r\n parentRelations = flowRelations.filter(\r\n x => x.ChildFlowItemId == parentRelations[0].ParentFlowItemId\r\n );\r\n\r\n //MultiExport has one parent, could be simple flow\r\n if (parentRelations.length == 1) {\r\n const parentFlowItemId = parentRelations[0].ParentFlowItemId;\r\n if (flowMultiExportsByFlowItemId[parentFlowItemId] != null) {\r\n parentRelations = flowRelations.filter(x => x.ChildFlowItemId == parentFlowItemId);\r\n }\r\n\r\n if (parentRelations.length > 0) {\r\n const parentId = parentRelations[0].ParentFlowItemId;\r\n returnString = flowItems[parentId].FlowItemName;\r\n }\r\n } else if (parentRelations.length > 1) {\r\n //MultiExport has multiple parents\r\n returnString = flowItems[flowItemId].FlowItemName;\r\n }\r\n } else if (parentRelations.length > 1 || parentRelations.length == 1) {\r\n returnString = flowItems[flowItemId].FlowItemName;\r\n } else {\r\n returnString = flow.FlowName;\r\n }\r\n\r\n break;\r\n }\r\n case \"{FlowName}\":\r\n returnString = flow.FlowName;\r\n break;\r\n default:\r\n break;\r\n }\r\n\r\n return returnString;\r\n };\r\n\r\n onVariableChangeString = (\r\n flowItemClientVariable: ?FlowItemClientVariableD,\r\n variableId: number,\r\n flowItemId: number,\r\n childFlowItemId: number,\r\n variableValue: VariableValueType\r\n ) => {\r\n const {\r\n selectedFlow,\r\n updateAttribute,\r\n newFlowItemClientVariable,\r\n deleteFlowItemClientVariable,\r\n flowItemClientVariables,\r\n } = this.props;\r\n if (flowItemClientVariable) {\r\n if (variableValue) {\r\n if (variableValue.ValueString != \"\") {\r\n updateAttribute(\r\n \"flowItemClientVariables\",\r\n flowItemClientVariable.FlowItemClientVariableId,\r\n \"VariableValue\",\r\n variableValue,\r\n true\r\n );\r\n } else {\r\n deleteFlowItemClientVariable(flowItemClientVariable.FlowItemClientVariableId);\r\n }\r\n } else {\r\n deleteFlowItemClientVariable(flowItemClientVariable.FlowItemClientVariableId);\r\n }\r\n } else if (\r\n flowItemClientVariables.filter(\r\n x => x.VariableId == variableId && x.FlowItemId == flowItemId && x.ChildFlowItemId == childFlowItemId\r\n ).length == 0\r\n ) {\r\n newFlowItemClientVariable(variableId, selectedFlow, flowItemId, childFlowItemId, variableValue);\r\n } else {\r\n newFlowItemClientVariable(variableId, selectedFlow, flowItemId, childFlowItemId, variableValue);\r\n }\r\n\r\n this.props.invalidateItemAndChildren(this.props.flowItemId);\r\n };\r\n\r\n renderOfferTable = () => {\r\n const { flowItems, flowRelations, parentLabels, flowExport, flowOutput, flowMultiExportsByFlowItemId } =\r\n this.props;\r\n let table = [];\r\n\r\n if (flowExport) {\r\n let parentRelations = flowRelations.filter(x => x.ChildFlowItemId == flowExport.FlowItemId);\r\n\r\n if (parentRelations.length == 1 && flowMultiExportsByFlowItemId) {\r\n const parentFlowItemId = parentRelations[0].ParentFlowItemId;\r\n if (flowMultiExportsByFlowItemId[parentFlowItemId]) {\r\n parentRelations = flowRelations.filter(x => x.ChildFlowItemId == parentFlowItemId);\r\n }\r\n }\r\n\r\n if (flowOutput) {\r\n parentRelations = flowRelations.filter(x => x.ChildFlowItemId == flowOutput.FlowItemId);\r\n }\r\n\r\n const parentLabelsMap = new Map(parentLabels.map(label => [label.FlowRelationId, label]));\r\n const sortedOfferMerges = this.getSortedOfferMerges();\r\n\r\n for (const offerMerge of sortedOfferMerges) {\r\n const parentRelation = parentRelations.find(x => x.ParentFlowItemId == offerMerge.ParentFlowItemId);\r\n if (parentRelation) {\r\n let parentLabel = parentLabelsMap.get(parentRelation.FlowRelationId);\r\n\r\n if (!parentLabel) {\r\n // Handle multi-export node\r\n const parentLabelRelation = flowRelations.find(\r\n x =>\r\n x.ParentFlowItemId === parentRelation.ChildFlowItemId &&\r\n x.ChildFlowItemId === offerMerge.FlowItemId &&\r\n parentLabelsMap.has(x.FlowRelationId)\r\n );\r\n parentLabel = parentLabelsMap.get(parentLabelRelation?.FlowRelationId);\r\n }\r\n\r\n const parentFlowItem: ?FlowItem = flowItems[parentRelation.ParentFlowItemId];\r\n if (parentFlowItem) {\r\n let line = {\r\n ParentFlowItemId: parentFlowItem.FlowItemId,\r\n Quantity: parentFlowItem.FlowItemQty ?? parseInt(parentFlowItem.FlowItemQty),\r\n ItemName: \"\",\r\n DupesQty: offerMerge.DupesQty,\r\n FinalQty: offerMerge.FinalQty,\r\n MaxQty: offerMerge.MaxQty,\r\n OutputQty: offerMerge.OutputQty,\r\n ParentLabel: parentLabel ? parentLabel.ParentLabel : \"\",\r\n FlowRelationParentLabelId: parentLabel ? parentLabel.FlowRelationParentLabelId : null,\r\n };\r\n\r\n if (parentFlowItem.FlowItemType != \"empty\") {\r\n const parentFlowItemType = renderFlowItemType(parentFlowItem.FlowItemType);\r\n line.ItemName = parentFlowItem.FlowItemName + \" - \" + parentFlowItemType;\r\n } else {\r\n line.ItemName = parentFlowItem.FlowItemName;\r\n\r\n const emptyParentRelations = flowRelations\r\n .filter(x => x.ChildFlowItemId == parentFlowItem.FlowItemId && x.ParentFlowItemId != 0)\r\n .map(x => x.ParentFlowItemId);\r\n\r\n if (emptyParentRelations.length > 0) {\r\n const emptyParentFlowItemId = emptyParentRelations[0];\r\n const emptyParentFlowItem: FlowItem = flowItems[emptyParentFlowItemId];\r\n const emptyParentFlowItemType = renderFlowItemType(emptyParentFlowItem.FlowItemType);\r\n line.ItemName +=\r\n \" - \" + emptyParentFlowItem.FlowItemName + \" - \" + emptyParentFlowItemType;\r\n }\r\n }\r\n\r\n table.push(line);\r\n }\r\n }\r\n }\r\n }\r\n\r\n return table;\r\n };\r\n\r\n addMissingParentLabels = () => {\r\n const { flowRelations, parentLabels, flowItemId, flowItems, layout, flowMultiExportsByFlowItemId } = this.props;\r\n if (!layout || !layout.Layout || !layout.Layout.IsPivot) {\r\n return;\r\n }\r\n\r\n let parentRelations = flowRelations.filter(x => x.ChildFlowItemId === flowItemId);\r\n\r\n //handles multi-export node\r\n if (parentRelations.length === 1 && flowMultiExportsByFlowItemId) {\r\n const parentFlowItemId = parentRelations[0].ParentFlowItemId;\r\n if (flowMultiExportsByFlowItemId[parentFlowItemId]) {\r\n parentRelations = flowRelations.filter(x => x.ChildFlowItemId === parentFlowItemId);\r\n }\r\n }\r\n\r\n const regex = /[^a-zA-Z0-9_ ]/g;\r\n\r\n for (const parent of parentRelations) {\r\n const parentLabel = parentLabels.find(x => x.FlowRelationId == parent.FlowRelationId);\r\n if (!parentLabel && parent.ParentFlowItemId != 0) {\r\n const flowItem = flowItems[parent.ParentFlowItemId];\r\n if (flowItem) {\r\n const labelName = flowItem.FlowItemName.replace(regex, \"\");\r\n this.props.addFlowRelationParentLabel(parent.FlowRelationId, labelName);\r\n }\r\n }\r\n }\r\n };\r\n\r\n renderOfferColumnHeaders = requiredOfferCodes => {\r\n const { destination } = this.props;\r\n const headers = [];\r\n for (const offerCode of requiredOfferCodes) {\r\n // Tooltip for destination with enabled destination tracking id:\r\n if (destination && destination.DestinationTrackingId) {\r\n headers.push(\r\n \r\n \r\n \r\n {offerCode.VariableName}\r\n info\r\n \r\n \r\n \r\n );\r\n } else {\r\n headers.push(\r\n \r\n {offerCode.VariableName}\r\n \r\n );\r\n }\r\n }\r\n return headers;\r\n };\r\n\r\n renderSingleFileAudienceName = () => {\r\n const { flowItemId, flowItems, flowExport, enabledFeatures } = this.props;\r\n const regex = /[^a-zA-Z0-9_ ]/g;\r\n const flowItem = flowItems[flowItemId];\r\n const labelName = flowItem.FlowItemName.replace(regex, \"\");\r\n const headers = [];\r\n const hasDestinationSeparateFilesFeature = enabledFeatures.includes(\"flow-destination-level-splits-all-offers\");\r\n let audienceFileName = flowExport.AudienceFileName;\r\n if (audienceFileName == null) {\r\n audienceFileName = labelName;\r\n }\r\n if (flowExport.IsSeperateFiles || !flowExport.IsSplitOn || !hasDestinationSeparateFilesFeature) {\r\n return;\r\n }\r\n headers.push(\r\n \r\n \r\n \r\n \r\n \r\n Audience Name:\r\n \r\n \r\n {\r\n const regex = /[^a-zA-Z0-9_ ]/g;\r\n const newValue = e.target.value.replace(regex, \"\");\r\n this.props.updateAttribute(\r\n \"flowExports\",\r\n flowExport.FlowExportId,\r\n \"AudienceFileName\",\r\n newValue,\r\n true\r\n );\r\n // this.props.dispatch(invalidateItemAndChildren(flowItemId));\r\n }}\r\n />\r\n \r\n \r\n \r\n
\r\n \r\n );\r\n return headers;\r\n };\r\n\r\n resetDestinationOfferCodeStringFields = () => {\r\n const offerData = this.renderOfferTable();\r\n const requiredOfferCodes = this.getRequiredOfferCodes();\r\n\r\n for (const offerDataItem of offerData) {\r\n for (const offerCode of requiredOfferCodes) {\r\n if (offerCode.VariableScope == \"DestinationOffer\" && offerCode.VariableKind == \"string\") {\r\n this.setOfferCodeStringFieldToDefaultValue(offerCode, offerDataItem);\r\n }\r\n }\r\n }\r\n };\r\n\r\n setOfferCodeStringFieldToDefaultValue = (offerCode, offerDataItem) => {\r\n const parentFlowItemId = offerDataItem.ParentFlowItemId;\r\n const flowItemClientVariable = this.getFlowItemClientVariable(parentFlowItemId, offerCode.Id);\r\n const defaultValue = this.getOfferCodeDefaultValue(offerCode, flowItemClientVariable, parentFlowItemId);\r\n\r\n if (defaultValue) {\r\n const newValueObject = this.createVariableStringValueObject(defaultValue);\r\n this.onVariableChangeString(flowItemClientVariable, offerCode.Id, parentFlowItemId, this.props.flowItemId, newValueObject);\r\n }\r\n };\r\n\r\n getFlowItemClientVariable = (flowItemId, variableId) => {\r\n const { flowItemClientVariables, flowItemId: childFlowItemId } = this.props;\r\n const flowItemClientVariable = flowItemClientVariables.filter(\r\n x => x.FlowItemId == flowItemId &&\r\n x.VariableId == variableId &&\r\n x.ChildFlowItemId == childFlowItemId\r\n )[0];\r\n\r\n return flowItemClientVariable;\r\n };\r\n\r\n getOfferCodeDefaultValue = (offerCode, flowItemClientVariable, parentFlowItemId) => {\r\n const offer = this.props.destinationOffers.find(x => x.Id == offerCode.Id);\r\n const variableGroup = this.props.variableGroups.find(x => x.Id == offerCode.VariableGroupId);\r\n const variableGroupingAutomationIsEnabled = this.props.enabledFeatures.includes(\"variable-grouping-automation\");\r\n\r\n // Use the variable group default value (company name, audience name, flow name), if possible.\r\n // If not, then try to use the flow item name associated with the client variable.\r\n if (offer && variableGroup?.DefaultValue && variableGroupingAutomationIsEnabled) {\r\n return this.determineVariableGroupValue(variableGroup.DefaultValue, parentFlowItemId);\r\n } else if (flowItemClientVariable) {\r\n return this.getFlowItemName(flowItemClientVariable);\r\n } else {\r\n return \"\";\r\n }\r\n };\r\n\r\n getFlowItemName = (flowItemClientVariable) => {\r\n const flowItem = this.props.flowItems[flowItemClientVariable.FlowItemId]\r\n return flowItem?.FlowItemName;\r\n };\r\n\r\n renderOfferColumns = (offerData, requiredOfferCodes) => {\r\n const columns = [];\r\n\r\n for (const offerCode of requiredOfferCodes) {\r\n const identifier = `${offerData.ParentFlowItemId}-${offerCode.Id}`;\r\n\r\n if (offerCode.VariableScope === \"DestinationOffer\" && offerCode.VariableKind === \"field\") {\r\n const flowItemCV = this.getFlowItemClientVariable(offerData.ParentFlowItemId, offerCode.Id);\r\n const fieldId = flowItemCV ? flowItemCV.VariableValue.FieldId : null;\r\n\r\n const field = this.renderEditableField(flowItemCV, offerCode.Id, offerData.ParentFlowItemId, fieldId);\r\n\r\n columns.push(\r\n \r\n {field}\r\n \r\n // {field}\r\n );\r\n } else {\r\n columns.push(\r\n \r\n {this.renderEditableString(\r\n offerCode.Id,\r\n offerData.ParentFlowItemId,\r\n identifier,\r\n offerCode.VariableGroupId,\r\n offerCode.VariableScope\r\n )}\r\n \r\n );\r\n }\r\n }\r\n return columns;\r\n };\r\n\r\n renderEditableField = (flowItemClientVariable, variableId, flowItemId, fieldId) => {\r\n const {\r\n permissions: {\r\n item: { canEdit },\r\n },\r\n flow,\r\n } = this.props;\r\n return (\r\n {\r\n const newValueObject: VariableValueType = {\r\n Kind: \"field\",\r\n ValueString: null,\r\n ValueDate: null,\r\n FieldId: newFieldId,\r\n };\r\n this.onVariableChange(flowItemClientVariable, variableId, flowItemId, newValueObject);\r\n }}\r\n />\r\n );\r\n };\r\n\r\n onVariableChange = (\r\n flowItemClientVariable: ?FlowItemClientVariableD,\r\n variableId: number,\r\n parentFlowItemId: number,\r\n variableValue: VariableValueType\r\n ) => {\r\n const {\r\n selectedFlow,\r\n updateAttribute,\r\n newFlowItemClientVariable,\r\n deleteFlowItemClientVariable,\r\n flowItemClientVariables,\r\n flowItemId,\r\n } = this.props;\r\n if (flowItemClientVariable) {\r\n if (variableValue) {\r\n if (variableValue.ValueString != \"\" || variableValue.FieldId) {\r\n updateAttribute(\r\n \"flowItemClientVariables\",\r\n flowItemClientVariable.FlowItemClientVariableId,\r\n \"VariableValue\",\r\n variableValue,\r\n true\r\n );\r\n } else {\r\n deleteFlowItemClientVariable(flowItemClientVariable.FlowItemClientVariableId);\r\n }\r\n } else {\r\n deleteFlowItemClientVariable(flowItemClientVariable.FlowItemClientVariableId);\r\n }\r\n } else if (\r\n flowItemClientVariables.filter(\r\n x => x.VariableId == variableId && x.FlowItemId == parentFlowItemId && x.ChildFlowItemId == flowItemId\r\n ).length == 0\r\n ) {\r\n newFlowItemClientVariable(variableId, selectedFlow, parentFlowItemId, flowItemId, variableValue);\r\n }\r\n\r\n this.invalidate();\r\n };\r\n\r\n updateExportCustomDedupe = (customDedupe: boolean) => {\r\n const { defaultDedupeKey, flowExport, clientFieldObject, flowSVDedupe } = this.props;\r\n\r\n if (flowExport) {\r\n this.props.updateAttribute(\"flowExports\", flowExport.FlowExportId, \"CustomDedupe\", customDedupe);\r\n }\r\n\r\n if (customDedupe && flowSVDedupe && defaultDedupeKey) {\r\n this.props.updateAttribute(\"flowSVDedupes\", flowSVDedupe.FlowSVDedupeId, \"SVField\", defaultDedupeKey, true);\r\n } else if (!customDedupe && flowSVDedupe && clientFieldObject) {\r\n this.props.updateAttribute(\r\n \"flowSVDedupes\",\r\n flowSVDedupe.FlowSVDedupeId,\r\n \"SVField\",\r\n clientFieldObject.FieldName,\r\n true\r\n );\r\n }\r\n };\r\n\r\n invalidate = () => {\r\n const { flowItemId, invalidateItemAndChildren } = this.props;\r\n invalidateItemAndChildren(flowItemId);\r\n };\r\n\r\n splitCollapseChanged = parentFlowItemId => {\r\n // if the current splitExpandedId is the same parentFlowItemId, it will just collapse\r\n const { splitExpandedId } = this.state;\r\n let newValue = 0;\r\n if (splitExpandedId != parentFlowItemId) {\r\n newValue = parentFlowItemId;\r\n }\r\n this.setState({ splitExpandedId: newValue });\r\n };\r\n\r\n renderFlowSegmentSplitPreviewCell = parentFlowItemId => {\r\n const { flowSegmentSplits } = this.props;\r\n const parentSegmentSplits = flowSegmentSplits.filter(x => x.ParentFlowItemId == parentFlowItemId);\r\n let result = \"\";\r\n for (const split of parentSegmentSplits) {\r\n if (result.length > 0) {\r\n result += \"/\";\r\n }\r\n if (split.AbsoluteOrRelative == \"relative\") {\r\n result += split.RelativePercentRows.toString() + \"%\";\r\n } else {\r\n result += split.AbsoluteNumRows.toString();\r\n }\r\n }\r\n if (!result) {\r\n return null;\r\n }\r\n return (\r\n
\r\n
{result}
\r\n  \r\n \r\n info\r\n \r\n
\r\n );\r\n };\r\n\r\n canShowCounts = () => {\r\n const { destinations, destinationId } = this.props;\r\n if (destinations) {\r\n if (destinations.length > 0) {\r\n const partners = destinations.filter(d => d.PartnerAccessId == destinationId);\r\n return partners.length > 0 ? partners[0].CanShowCount : false;\r\n }\r\n }\r\n return true;\r\n };\r\n\r\n render() {\r\n const {\r\n flowItemId,\r\n permissions,\r\n permissions: {\r\n item: { canEdit },\r\n },\r\n flow,\r\n flowExport,\r\n flowOutput,\r\n flowSVDedupe,\r\n isAdditionalTemplate,\r\n flowExportTemplateFields,\r\n isPinterestTemplate,\r\n isTikTokTemplate,\r\n flowExportPinterestTemplateFields,\r\n flowExportTikTokTemplateFields,\r\n isTradeDeskTemplate,\r\n flowExportTradeDeskTemplateFields,\r\n isPubmaticTemplate,\r\n flowExportPubmaticTemplateFields,\r\n flowExportFreewheelDriverFileFields,\r\n isSnowflakeTable,\r\n splitOverwrite,\r\n layout,\r\n enabledFeatures,\r\n defaultDedupeKey,\r\n variableGroups,\r\n deploySetting,\r\n } = this.props;\r\n\r\n const hasDestinationSplitFeature = enabledFeatures.includes(\"flow-destination-level-splits\");\r\n const hasDestinationSeparateFilesFeature = enabledFeatures.includes(\"flow-destination-level-splits-all-offers\");\r\n const showMinPenetration = enabledFeatures.includes(\"export-min-penetration\");\r\n let counter = 0;\r\n const { splitExpandedId } = this.state;\r\n const requiredOfferCodes = this.getRequiredOfferCodes();\r\n\r\n let colSpan = 2 + requiredOfferCodes.length;\r\n let offerOptions = requiredOfferCodes.map(x => (\r\n \r\n {x.VariableName}\r\n \r\n ));\r\n // new flows things\r\n let offerData = this.renderOfferTable();\r\n const handleMinPenetrationChange = newVal => {\r\n if (newVal > 100) {\r\n newVal = 100;\r\n } else if (newVal < 1) {\r\n newVal = 1;\r\n }\r\n this.props.updateAttribute(\"flowExports\", flowExport.FlowExportId, \"MinPenetration\", newVal);\r\n this.props.invalidateItemAndChildren(this.props.flowItemId);\r\n };\r\n\r\n const exportOfferEdit = (\r\n <>\r\n {flowExport && isAdditionalTemplate && (\r\n \r\n )}\r\n {flowExport && isPinterestTemplate && (\r\n \r\n )}\r\n {flowExport && isTikTokTemplate && (\r\n \r\n )}\r\n {flowExport && isTradeDeskTemplate && (\r\n \r\n )}\r\n {flowExport && isPubmaticTemplate && (\r\n \r\n )}\r\n {flowExport && deploySetting == DeploySettings.DeployFreewheelDriverFile && (\r\n \r\n )}\r\n {flowExport && deploySetting == DeploySettings.DeployMagniteDriverFile && (\r\n \r\n )}\r\n {flowExport && isSnowflakeTable && (\r\n \r\n )}\r\n {flowExport && deploySetting == DeploySettings.DeployXandrTemplate && (\r\n \r\n )}\r\n {flowOutput == null && (\r\n
\r\n
\r\n

Additional Configurations

\r\n
\r\n {showMinPenetration && (\r\n
\r\n
\r\n {\r\n handleMinPenetrationChange(e.target.value);\r\n }}\r\n style={{ width: 150 }}\r\n />\r\n
\r\n
\r\n )}\r\n
\r\n \r\n this.updateExportCustomDedupe(newValue)}\r\n dedupeKey={flowSVDedupe ? flowSVDedupe.SVField : defaultDedupeKey}\r\n isDisabled={!canEdit || (flow && flow.IsLocked)}\r\n />\r\n {flowSVDedupe && (\r\n this.updateExportCustomDedupe(e.target.checked)}\r\n enabledFeatures={enabledFeatures}\r\n disabled={!canEdit || (flow && flow.IsLocked)}\r\n />\r\n )}\r\n {hasDestinationSplitFeature && (\r\n \r\n )}\r\n {((splitOverwrite && hasDestinationSplitFeature) ||\r\n (hasDestinationSplitFeature &&\r\n flowExport.IsSplitOn &&\r\n hasDestinationSeparateFilesFeature)) && (\r\n \r\n )}\r\n {flowExport.IsSplitOn &&\r\n !enabledFeatures.includes(\"flow-destination-level-splits-all-offers\") &&\r\n requiredOfferCodes.length > 0 && (\r\n
\r\n
\r\n \r\n Split Offer \r\n \r\n info\r\n \r\n\r\n \r\n this.props.updateAttribute(\r\n \"flowExports\",\r\n flowExport.FlowExportId,\r\n \"SelectedOfferId\",\r\n e.target.value\r\n )\r\n }\r\n displayEmpty={true}\r\n disabled={flowExport && !flowExport.IsSplitOn}\r\n >\r\n \r\n {offerOptions}\r\n \r\n
\r\n
\r\n
\r\n )}\r\n
\r\n
\r\n )}\r\n\r\n \r\n
\r\n {this.renderSingleFileAudienceName()}\r\n\r\n \r\n \r\n \r\n \r\n {flowExport && flowExport.IsSplitOn && colSpan++ && (\r\n \r\n )}\r\n \r\n Item\r\n \r\n {flowSVDedupe && colSpan++ && (\r\n \r\n Priority\r\n \r\n )}\r\n \r\n Input Quantity\r\n \r\n {!flowOutput && colSpan++ && this.canShowCounts() && (\r\n \r\n Matched Quantity\r\n \r\n )}\r\n {layout && layout.Layout && layout.Layout.IsPivot && colSpan++ && (\r\n \r\n Output Column Name\r\n \r\n )}\r\n {!flowOutput && flowExport && flowExport.IsMaxQtyOn && colSpan++ && (\r\n \r\n Max Quantity\r\n \r\n )}\r\n {!flowOutput && flowExport && colSpan++ && this.canShowCounts() && (\r\n \r\n Final Quantity\r\n \r\n )}\r\n {!flowOutput && flowExport && flowExport.IsSplitOn && colSpan++ && (\r\n \r\n Split\r\n \r\n )}\r\n {!(\r\n enabledFeatures.includes(\"flow-destination-level-splits-all-offers\") &&\r\n flowExport.IsSplitOn\r\n ) && this.renderOfferColumnHeaders(requiredOfferCodes)}\r\n {flowExport && enabledFeatures.includes(\"activation-receipt-deployment\") && colSpan++ && (\r\n \r\n
Deploy
{this.renderActivationCheckboxAll()}\r\n\r\n \r\n )}\r\n
\r\n
\r\n \r\n {offerData.map(x => (\r\n \r\n \r\n {flowExport && flowExport.IsSplitOn && (\r\n \r\n this.splitCollapseChanged(x.ParentFlowItemId)}\r\n >\r\n {x.ParentFlowItemId != splitExpandedId ? (\r\n keyboard_arrow_down\r\n ) : (\r\n keyboard_arrow_up\r\n )}\r\n \r\n \r\n )}\r\n \r\n
{x.ItemName}
\r\n \r\n {flowSVDedupe && (\r\n \r\n {this.renderPrioritySelect(x.ParentFlowItemId)}\r\n \r\n )}\r\n \r\n
\r\n {x.Quantity ? addCommas(x.Quantity) : \"\"}\r\n
\r\n \r\n {!flowOutput && this.canShowCounts() && (\r\n \r\n
\r\n {this.renderOutputQuantity(x.OutputQty)}\r\n
\r\n \r\n )}\r\n {layout && layout.Layout && layout.Layout.IsPivot && (\r\n \r\n {this.renderParentLabelColumn(\r\n x.FlowRelationParentLabelId,\r\n x.ParentLabel\r\n )}\r\n \r\n )}\r\n {!flowOutput && flowExport && flowExport.IsMaxQtyOn && (\r\n \r\n {this.renderMaxQuantity(x.ParentFlowItemId, x.MaxQty)}\r\n \r\n )}\r\n {!flowOutput && flowExport && this.canShowCounts() && (\r\n \r\n
\r\n {this.renderOutputQuantity(x.FinalQty)}\r\n
\r\n \r\n )}\r\n {!flowOutput && flowExport && flowExport.IsSplitOn && (\r\n \r\n {this.renderFlowSegmentSplitPreviewCell(x.ParentFlowItemId)}\r\n \r\n )}\r\n {!(\r\n enabledFeatures.includes(\"flow-destination-level-splits-all-offers\") &&\r\n flowExport.IsSplitOn\r\n ) && this.renderOfferColumns(x, requiredOfferCodes, variableGroups)}\r\n {flowExport && enabledFeatures.includes(\"activation-receipt-deployment\") && (\r\n \r\n {this.renderActivationCheckbox(x.ParentFlowItemId)}\r\n \r\n )}\r\n \r\n {flowExport &&\r\n (flowExport.IsSplitOn ||\r\n (splitOverwrite &&\r\n flowExport.IsSplitOn &&\r\n flowExport.IsSeperateFiles)) && (\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\n\r\n {flowExport && flowSVDedupe && flowExport.CustomDedupe ? (\r\n <>\r\n
\r\n
\r\n
\r\n \r\n \r\n ) : null}\r\n
\r\n \r\n );\r\n return exportOfferEdit;\r\n }\r\n}\r\n\r\nexport const makeGetFlowExportTemplateFields = () =>\r\n createSelector(\r\n state => getFlowExportTemplateFieldsByFlowItemId(state),\r\n (_, props) => props.flowItemId,\r\n (\r\n flowExportTemplateFieldsByItemId: FlowExportTemplateFieldsByItemId,\r\n flowItemId: number\r\n ): Array => flowExportTemplateFieldsByItemId[flowItemId]\r\n );\r\n\r\nexport const makeGetFlowExportPinterestTemplateFields = () =>\r\n createSelector(\r\n state => getFlowExportPinterestTemplateFieldsByFlowItemId(state),\r\n (_, props) => props.flowItemId,\r\n (\r\n flowExportPinterestTemplateFieldsByItemId: FlowExportPinterestTemplateFieldsByItemId,\r\n flowItemId: number\r\n ): Array => flowExportPinterestTemplateFieldsByItemId[flowItemId]\r\n );\r\n\r\nexport const makeGetFlowExportTikTokTemplateFields = () =>\r\n createSelector(\r\n state => getFlowExportTikTokTemplateFieldsByFlowItemId(state),\r\n (_, props) => props.flowItemId,\r\n (\r\n flowExportTikTokTemplateFieldsByItemId: FlowExportTikTokTemplateFieldsByItemId,\r\n flowItemId: number\r\n ): Array => flowExportTikTokTemplateFieldsByItemId[flowItemId]\r\n );\r\n\r\nexport const makeGetFlowExportTradeDeskTemplateFields = () =>\r\n createSelector(\r\n state => getFlowExportTradeDeskTemplateFieldsByFlowItemId(state),\r\n (_, props) => props.flowItemId,\r\n (\r\n flowExportTradeDeskTemplateFieldsByItemId: FlowExportTradeDeskTemplateFieldsByItemId,\r\n flowItemId: number\r\n ): Array => flowExportTradeDeskTemplateFieldsByItemId[flowItemId]\r\n );\r\n\r\nexport const makeGetFlowExportPubmaticTemplateFields = () =>\r\n createSelector(\r\n state => getFlowExportPubmaticTemplateFieldsByFlowItemId(state),\r\n (_, props) => props.flowItemId,\r\n (\r\n flowExportPubmaticTemplateFieldsByItemId: FlowExportPubmaticTemplateFieldsByItemId,\r\n flowItemId: number\r\n ): Array => flowExportPubmaticTemplateFieldsByItemId[flowItemId]\r\n );\r\n\r\n\r\nexport const makeGetFlowExportTaxonomyFields = () =>\r\n createSelector(\r\n state => getFlowExportTaxonomyFileFieldsByFlowItemId(state),\r\n (_, props) => props.flowItemId,\r\n (\r\n flowExportTaxonomyFieldsByItemId: FlowExportTaxonomyFileFieldsByItemId,\r\n flowItemId: number\r\n ): Array => flowExportTaxonomyFieldsByItemId[flowItemId]\r\n );\r\n\r\nexport const makeGetFlowOfferMergeForExport = () =>\r\n createSelector(\r\n state => getFlowOfferMergesByFlowItemId(state),\r\n (_, props) => props.flowExportId,\r\n (flowOfferMergesByFlowItemId: FlowOfferMergesByItemId, flowItemId: number): Array =>\r\n flowOfferMergesByFlowItemId[flowItemId]\r\n );\r\n\r\nexport const makeGetParentFlowMultiExport = () =>\r\n createSelector(\r\n state => getFlowMultiExportArray(state),\r\n (_, props) => props.flowItemId,\r\n (multiExports: Array): ?FlowMultiExport => {\r\n const candidates = multiExports; //.filter(x => x.ChildFlowItemId == flowItemId);\r\n return candidates.length == 0 ? null : candidates[0];\r\n }\r\n );\r\nconst mapStateToProps: MapStateToProps<*, *, *> = () => (state, ownProps) => {\r\n const flowExportsByFlowItemId = getFlowExportsByFlowItemId(state);\r\n const flowOutputsByFlowItemId = getFlowOutputsByFlowItemId(state);\r\n const flowMultiExportsByFlowItemId = getFlowMultiExportsByFlowItemId(state);\r\n const getFlowOfferMerge = makeGetFlowOfferMerge();\r\n const getFlowOfferMergeExport = makeGetFlowOfferMergeForExport();\r\n const getFlowMultiExportParent = makeGetParentFlowMultiExport();\r\n const getPermissionsItemFromProps = makeGetPermissionsItemFromProps();\r\n const getFlowSVDedupe = makeGetFlowSVDedupe();\r\n const getFlowExportTemplateFields = makeGetFlowExportTemplateFields();\r\n const getFlowExportPinterestTemplateFields = makeGetFlowExportPinterestTemplateFields();\r\n const getFlowExportTikTokTemplateFields = makeGetFlowExportTikTokTemplateFields();\r\n const getFlowExportTradeDeskTemplateFields = makeGetFlowExportTradeDeskTemplateFields();\r\n const getFlowExportPubmaticTemplateFields = makeGetFlowExportPubmaticTemplateFields();\r\n const getFlowExportTaxonomyFields = makeGetFlowExportTaxonomyFields();\r\n const freeWheelDriverFieldsByFlowItemId = getFlowExportFreewheelDriverFileFieldsByFlowItemId(state);\r\n\r\n return {\r\n selectedFlow: state.selected.flow,\r\n selectedCompany: state.session.companyId,\r\n destinationOffers: state.flowExportObjects.destinationOffers[ownProps.destinationId] || null,\r\n flowItems: state.flowItems.byId,\r\n flowRelations: getFlowRelationsForSelectedFlow(state),\r\n parentLabels: getFlowRelationParentLabelsForSelectedFlow(state),\r\n flowItemClientVariables: getFlowItemClientVariablesForSelectedFlow(state),\r\n layout: state.layoutObjects.objects.filter(x => x.Layout.LayoutID == ownProps.layoutId)[0] || {},\r\n permissions: getPermissionsItemFromProps(state, ownProps),\r\n flowSVDedupe: getFlowSVDedupe(state, ownProps),\r\n flowOfferMerges: getFlowOfferMerge(state, ownProps) || [],\r\n flowExportOfferMerges: getFlowOfferMergeExport(state, ownProps) || [],\r\n flowMultiExports: getFlowMultiExportParent(state, ownProps) || [],\r\n flowMultiExportsByFlowItemId: flowMultiExportsByFlowItemId || [],\r\n variableGroups: state.vars.variableGroupings || [],\r\n flowExport: flowExportsByFlowItemId[ownProps.flowExportId] || null,\r\n flowOutput: flowOutputsByFlowItemId[ownProps.flowItemId] || null,\r\n splitOverwrite: ownProps.splitOverwrite,\r\n enabledFeatures: state.session.enabledFeatures || [],\r\n flow: state.flows.byId[state.selected.flow],\r\n flowExportTemplateFields: getFlowExportTemplateFields(state, ownProps) || [],\r\n flowExportPinterestTemplateFields: getFlowExportPinterestTemplateFields(state, ownProps) || [],\r\n flowExportTikTokTemplateFields: getFlowExportTikTokTemplateFields(state, ownProps) || [],\r\n flowExportTradeDeskTemplateFields: getFlowExportTradeDeskTemplateFields(state, ownProps) || [],\r\n flowExportPubmaticTemplateFields: getFlowExportPubmaticTemplateFields(state, ownProps) || [],\r\n flowExportTaxonomyFileFields: getFlowExportTaxonomyFields(state, ownProps) || [],\r\n flowExportFreewheelDriverFileFields: freeWheelDriverFieldsByFlowItemId[ownProps.flowItemId] || [],\r\n flowSegmentSplits: getFlowSegmentSplitsForSelectedFlowItem(state),\r\n flowSegmentSplitOffers: getFlowSegmentSplitOffersForSelectedFlowItem(state),\r\n destination: (state.vars.destinations || []).find(x => x.PartnerAccessId == ownProps.destinationId),\r\n deliveryTypeId: (state.vars.tapadDeliveryTypes || []).find(x => x.deliveryTypeId == ownProps.deliveryTypeId),\r\n defaultDedupeKey: state.session.defaultDedupeKey,\r\n clientFieldObject: state.layoutObjects.clientFieldObject,\r\n companies: state.session.companies,\r\n preventOverrideDedupeExport: state.session.companyIsPreventOverrideDedupeExport,\r\n destinations: state.vars.destinations,\r\n };\r\n};\r\nconst mapDispatchToProps = dispatch =>\r\n bindActionCreators(Object.assign({}, flowActions, flowExportXandrDriverFieldActions), dispatch);\r\nconst FlowExportOfferEditC = connect(mapStateToProps, mapDispatchToProps)(FlowExportOfferEdit);\r\n\r\nexport default FlowExportOfferEditC;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useSelector, useDispatch } from \"react-redux\";\r\nimport {\r\n updateAttribute,\r\n goEditFlowItem,\r\n deleteFlowExportReport,\r\n deleteFlowItem,\r\n stillSimpleFlow,\r\n newFlowExportReport,\r\n} from \"../../../../actions/flowActions\";\r\nimport { Button, Divider, TextField, FormControl, ThemeProvider, createTheme } from \"@material-ui/core\";\r\nimport GenericConfirmModal from \"../../../modals/GenericConfirmModal\";\r\nimport { FlowExportReport } from \"../../../../types/stores/flowTypes\";\r\nimport { IAppState } from \"../../../../types/stores\";\r\n\r\nimport MaterialTable from \"@material-table/core\";\r\n\r\ntype Props = {\r\n flowExport: any;\r\n canEdit: boolean;\r\n reports: Array;\r\n};\r\n\r\nconst FlowExportReportsTable: React.FC = ({ flowExport, canEdit, reports }: Props) => {\r\n const dispatch = useDispatch();\r\n\r\n const [isStillSimpleFlow, setIsStillSimpleFlow] = useState(false);\r\n\r\n const flow = useSelector((state: IAppState) => state.flows.byId[state.selected.flow]);\r\n const allFlowItems = useSelector((state: IAppState) => state.flowItems.byId);\r\n\r\n useEffect(() => {\r\n if (flow && flow.FlowBaseType > 0) {\r\n setIsStillSimpleFlow(dispatch(stillSimpleFlow()));\r\n }\r\n }, [flow, dispatch]);\r\n\r\n const toggleIsRenaming = flowItemId => {\r\n dispatch(updateAttribute(\"flowItems\", flowItemId, \"isRenaming\", !allFlowItems[flowItemId].isRenaming));\r\n };\r\n\r\n const editReportName = (e, flowItemId) =>\r\n dispatch(updateAttribute(\"flowItems\", flowItemId, \"FlowItemName\", e.target.value, true));\r\n\r\n const editNameKeyUp = (e, flowItemId) => {\r\n if (e.key == \"Enter\" || e.key == \"Escape\") {\r\n editReportName(e, flowItemId);\r\n dispatch(updateAttribute(\"flowItems\", flowItemId, \"isRenaming\", false));\r\n toggleIsRenaming(flowItemId);\r\n }\r\n };\r\n\r\n const renderReportName = cellInfo => {\r\n if (!reports || reports.length <= 0 || reports[cellInfo.tableData.id] == null) return null;\r\n const item = allFlowItems[reports[cellInfo.tableData.id].FlowItemId];\r\n if (item == null) {\r\n return
Unknown
;\r\n }\r\n\r\n return (\r\n
\r\n {item.isRenaming ? (\r\n \r\n editReportName(e, item.FlowItemId)}\r\n onKeyUp={e => editNameKeyUp(e, item.FlowItemId)}\r\n onMouseDown={e => e.stopPropagation()}\r\n inputProps={{ maxLength: 150 }}\r\n />\r\n \r\n ) : (\r\n \r\n {item.FlowItemName}\r\n \r\n )}\r\n
\r\n );\r\n };\r\n\r\n const editReport = id => dispatch(goEditFlowItem(id));\r\n\r\n const deleteReport = (flowExportReportId, flowItemId) => {\r\n dispatch(deleteFlowExportReport(flowExportReportId));\r\n dispatch(deleteFlowItem(flowItemId));\r\n };\r\n\r\n const renderActions = cellInfo => {\r\n if (!reports || reports.length <= 0 || reports[cellInfo.tableData.id] == null) return null;\r\n\r\n const flowExportReportId = reports[cellInfo.tableData.id].FlowExportReportId;\r\n const item = allFlowItems[reports[cellInfo.tableData.id].FlowItemId];\r\n\r\n const confirmDeleteBody =
{`Are you sure you want to delete this row?`}
;\r\n const confirmDeleteText = \"Delete Row\";\r\n\r\n return (\r\n
\r\n toggleIsRenaming(item.FlowItemId)}\r\n disabled={!canEdit || (flow && flow.IsLocked)}\r\n >\r\n Rename\r\n \r\n editReport(reports[cellInfo.tableData.id].FlowItemId)}\r\n disabled={!canEdit || (flow && flow.IsLocked)}\r\n >\r\n Edit\r\n \r\n \r\n deleteReport(flowExportReportId, reports[cellInfo.tableData.id].FlowItemId)}\r\n body={confirmDeleteBody}\r\n confirmText={confirmDeleteText}\r\n title=\"Confirm Delete\"\r\n buttonText={\r\n \r\n close\r\n \r\n }\r\n buttonDisabled={!canEdit || (flow && flow.IsLocked)}\r\n cnBtnStyle=\"normal-transparent-button\"\r\n />\r\n \r\n
\r\n );\r\n };\r\n\r\n const addExportReport = () => {\r\n if (flowExport.ExportId != null) {\r\n dispatch(newFlowExportReport(flowExport.FlowItemId, flowExport.ExportId));\r\n }\r\n };\r\n\r\n const columns = [\r\n {\r\n title: \"Report Name\",\r\n render: renderReportName,\r\n headerStyle: {\r\n backgroundColor: \"#0075bc\",\r\n color: \"#fff\",\r\n fontWeight: 400,\r\n fontSize: \"14px\",\r\n },\r\n },\r\n {\r\n title: \"\",\r\n render: renderActions,\r\n headerStyle: {\r\n backgroundColor: \"#0075bc\",\r\n color: \"#fff\",\r\n fontWeight: 400,\r\n fontSize: \"14px\",\r\n },\r\n width: 200,\r\n },\r\n ];\r\n\r\n const theme = createTheme({\r\n overrides: {\r\n MuiTable: {\r\n root: {\r\n marginTop: \"0px !important\",\r\n },\r\n },\r\n MuiTableCell: {\r\n root: {\r\n fontSize: \"14px\",\r\n },\r\n },\r\n },\r\n });\r\n\r\n return flowExport.ExportId != null && !isStillSimpleFlow ? (\r\n <>\r\n
\r\n
\r\n
\r\n
\r\n

Reports

\r\n Create, edit, and remove reports for this export node\r\n
\r\n
\r\n add}\r\n disabled={!canEdit || (flow && flow.IsLocked)}\r\n >\r\n Create Report\r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n \r\n
\r\n \r\n ) : null;\r\n};\r\n\r\nexport default FlowExportReportsTable;\r\n","import React from \"react\";\r\n\r\n// Redux + AC\r\nimport { connect } from \"react-redux\";\r\nimport { bindActionCreators } from \"redux\";\r\nimport { createSelector } from \"reselect\";\r\nimport * as flowActions from \"../../../../actions/flowActions\";\r\nimport { makeGetPermissionsItemFromProps } from \"../../../../reducers/flowItems\";\r\nimport { getFlowItemClientVariablesForSelectedFlow } from \"../../../../reducers/flowItemClientVariables\";\r\nimport { getFlowRelationsForSelectedFlow } from \"../../../../reducers/flowRelations\";\r\nimport { getFlowMultiExportsByFlowItemId } from \"../../../../reducers/flowMultiExports\";\r\nimport type { DestinationVariable, DestinationVariableWithValue } from \"../../../../types/types\";\r\nimport { VariableValueType } from \"../../../../types/stores/vars\";\r\nimport type {\r\n FlowAndItemPermissions,\r\n FlowItemClientVariableD,\r\n UpdateAttribute,\r\n FlowRelation,\r\n FlowItem,\r\n} from \"../../../../types/flowTypes\";\r\nimport type { MapStateToProps } from \"react-redux\";\r\nimport clone from \"../../../../helpers/clone\";\r\n\r\nimport TextField from \"@material-ui/core/TextField\";\r\nimport { ThemeProvider, createTheme } from \"@material-ui/core\";\r\nimport MaterialTable from \"@material-table/core\";\r\n\r\ntype Props = {\r\n // Passed In\r\n flowItemId: number,\r\n destinationId: number,\r\n isFreewheelOrMagniteDriverFile: boolean,\r\n variableGroups: Array,\r\n // Redux\r\n destinationVariables: Array,\r\n flowItemClientVariables: Array,\r\n flowMultiExportsByFlowItemId: Array,\r\n permissions: FlowAndItemPermissions,\r\n selectedFlow: number,\r\n selectedCompany: number,\r\n enabledFeatures: Array,\r\n companies: Array,\r\n flowRelations: Array,\r\n flowItems: { [number]: FlowItem },\r\n // AC\r\n updateAttribute: UpdateAttribute,\r\n newFlowItemClientVariable: (\r\n variableId: number,\r\n flowId: number,\r\n flowItemId: number,\r\n childFlowItemId: number,\r\n variableValue: VariableValueType\r\n ) => void,\r\n deleteFlowItemClientVariable: (id: number) => void,\r\n invalidateItemAndChildren: (flowItemId: number) => void,\r\n flow: any,\r\n};\r\n\r\ntype State = {\r\n variableColumns: ?Array,\r\n setDefaults: Boolean,\r\n};\r\n\r\nclass FlowExportVariableEdit extends React.Component {\r\n constructor(props: Props) {\r\n super(props);\r\n this.state = {\r\n variableColumns: null,\r\n setDefaults: false,\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n this.createVariableColumns();\r\n }\r\n\r\n createVariableColumns = () => {\r\n const variableColumns = [];\r\n variableColumns.push({\r\n title: \"Value\",\r\n field: \"VariableValue.ValueString\",\r\n render: cellInfo => this.renderVariableText(cellInfo),\r\n headerStyle: {\r\n backgroundColor: \"#0075bc\",\r\n color: \"#fff\",\r\n fontWeight: 400,\r\n fontSize: \"14px\",\r\n },\r\n });\r\n this.setState({ variableColumns });\r\n };\r\n\r\n getDestColumns = () => {\r\n let variableColumns = clone(this.state.variableColumns);\r\n let columns = [\r\n {\r\n title: \"Name\",\r\n field: \"VariableName\",\r\n headerStyle: {\r\n backgroundColor: \"#0075bc\",\r\n color: \"#fff\",\r\n fontWeight: 400,\r\n fontSize: \"14px\",\r\n },\r\n },\r\n ];\r\n if (variableColumns && variableColumns.length > 0) {\r\n columns.push(variableColumns[0]);\r\n }\r\n return columns;\r\n };\r\n\r\n onDestVariableChange = (variableId: number, variableValue: VariableValueType) => {\r\n const {\r\n flowItemId,\r\n selectedFlow,\r\n flowItemClientVariables,\r\n updateAttribute,\r\n newFlowItemClientVariable,\r\n deleteFlowItemClientVariable,\r\n invalidateItemAndChildren,\r\n } = this.props;\r\n\r\n const flowItemClientVariable = flowItemClientVariables.filter(\r\n x => x.FlowItemId == flowItemId && x.VariableId == variableId\r\n );\r\n\r\n if (flowItemClientVariable && flowItemClientVariable.length == 1) {\r\n if (variableValue) {\r\n if (variableValue.ValueString != \"\") {\r\n updateAttribute(\r\n \"flowItemClientVariables\",\r\n flowItemClientVariable[0].FlowItemClientVariableId,\r\n \"VariableValue\",\r\n variableValue,\r\n true\r\n );\r\n } else {\r\n deleteFlowItemClientVariable(flowItemClientVariable[0].FlowItemClientVariableId);\r\n }\r\n } else {\r\n deleteFlowItemClientVariable(flowItemClientVariable[0].FlowItemClientVariableId);\r\n }\r\n } else if (\r\n flowItemClientVariables.filter(x => x.VariableId == variableId && x.FlowItemId == flowItemId).length == 0\r\n ) {\r\n // export destination variables are tied to the export only so flowItemId and childFlowItemId will be the same\r\n newFlowItemClientVariable(variableId, selectedFlow, flowItemId, flowItemId, variableValue);\r\n }\r\n invalidateItemAndChildren(flowItemId);\r\n };\r\n\r\n determineVariableGroupValue = (defaultValue: string) => {\r\n const { companies, flow, selectedCompany, flowItems, flowRelations, flowMultiExportsByFlowItemId, flowItemId } =\r\n this.props;\r\n const company = companies.filter(x => x.CompanyID == selectedCompany)[0];\r\n\r\n let returnString = \"\";\r\n switch (defaultValue) {\r\n case \"{CompanyName}\":\r\n returnString = company.CompanyName;\r\n break;\r\n case \"{AudienceName}\": {\r\n let parentRelations = flowRelations.filter(x => x.ChildFlowItemId == flowItemId);\r\n\r\n if (parentRelations.length == 1 && flowMultiExportsByFlowItemId != null) {\r\n const parentFlowItemId = parentRelations[0].ParentFlowItemId;\r\n if (flowMultiExportsByFlowItemId[parentFlowItemId] != null) {\r\n parentRelations = flowRelations.filter(x => x.ChildFlowItemId == parentFlowItemId);\r\n }\r\n\r\n if (parentRelations.length > 0) {\r\n const parentId = parentRelations[0].ParentFlowItemId;\r\n\r\n returnString = flowItems[parentId].FlowItemName;\r\n }\r\n } else {\r\n returnString = flow.FlowName;\r\n }\r\n\r\n break;\r\n }\r\n case \"{FlowName}\":\r\n returnString = flow.FlowName;\r\n break;\r\n default:\r\n break;\r\n }\r\n\r\n return returnString;\r\n };\r\n\r\n renderVariableText = (cellInfo: any) => {\r\n const {\r\n permissions: {\r\n item: { canEdit },\r\n },\r\n flow,\r\n isFreewheelOrMagniteDriverFile,\r\n variableGroups,\r\n flowItemId,\r\n flowItemClientVariables,\r\n enabledFeatures,\r\n } = this.props;\r\n\r\n const variableId = cellInfo.VariableId;\r\n const valueString = cellInfo.VariableValue ? cellInfo.VariableValue.ValueString : \"\";\r\n\r\n const flowItemCV = flowItemClientVariables.filter(\r\n x => x.FlowItemId == flowItemId && x.VariableId == variableId && x.ChildFlowItemId == this.props.flowItemId\r\n )[0];\r\n\r\n const varGroup = variableGroups.find(x => x.Id == cellInfo.VariableGroupId);\r\n if (variableId && varGroup && varGroup.DefaultValue != null && flowItemCV == null && !this.state.setDefaults) {\r\n let varValue = enabledFeatures.includes(\"variable-grouping-automation\")\r\n ? this.determineVariableGroupValue(varGroup.DefaultValue)\r\n : \"\";\r\n\r\n if (valueString == \"\") {\r\n this.onDestVariableChange(\r\n variableId,\r\n {\r\n Kind: \"string\",\r\n ValueString: varValue,\r\n ValueDate: null,\r\n FieldId: null,\r\n },\r\n variableGroups\r\n );\r\n this.setState({ setDefaults: true });\r\n }\r\n }\r\n\r\n return (\r\n {\r\n const newValue = e.target.value;\r\n\r\n const regex = /^$|^[a-z0-9_./\\-\\@ ]+$/i;\r\n const pass = newValue.match(regex);\r\n if (!pass) {\r\n return;\r\n }\r\n\r\n this.onDestVariableChange(\r\n variableId,\r\n {\r\n Kind: \"string\",\r\n ValueString: newValue,\r\n ValueDate: null,\r\n FieldId: null,\r\n },\r\n variableGroups\r\n );\r\n }}\r\n />\r\n );\r\n };\r\n\r\n render() {\r\n const { destinationVariables, destinationId } = this.props;\r\n const selectedDestinationVariables = destinationVariables.filter(x => x.PartnerAccessId == destinationId);\r\n if (!selectedDestinationVariables || selectedDestinationVariables.length == 0) {\r\n return null;\r\n }\r\n\r\n const theme = createTheme({\r\n overrides: {\r\n MuiTable: {\r\n root: {\r\n marginTop: \"0px !important\",\r\n },\r\n },\r\n MuiTableCell: {\r\n root: {\r\n fontSize: \"14px\",\r\n },\r\n },\r\n },\r\n });\r\n\r\n const variableTable = (\r\n \r\n \r\n \r\n );\r\n\r\n return (\r\n
\r\n
\r\n

Destination Variables

\r\n
\r\n {variableTable}\r\n
\r\n );\r\n }\r\n}\r\nconst makeGetDestinationVariables = () =>\r\n createSelector(\r\n (_, props) => props.flowItemId,\r\n (state, props) => state.flowExportObjects.destinationVariables[props.destinationId] || [],\r\n state => getFlowItemClientVariablesForSelectedFlow(state),\r\n (\r\n flowItemId: number,\r\n variables: Array,\r\n flowItemClientVariables: Array\r\n ): Array => {\r\n const rows = [];\r\n for (const variable of variables) {\r\n const variableValue: { VariableValue: ?VariableValueType } = { VariableValue: null };\r\n\r\n const thisClientVariable = flowItemClientVariables.filter(\r\n x => x.FlowItemId == flowItemId && x.VariableId == variable.VariableId\r\n );\r\n if (thisClientVariable.length == 1) {\r\n variableValue.VariableValue = thisClientVariable[0].VariableValue;\r\n }\r\n\r\n const row: DestinationVariableWithValue = Object.assign({}, variable, variableValue);\r\n rows.push(row);\r\n }\r\n return rows;\r\n }\r\n );\r\n\r\nconst mapStateToProps: MapStateToProps<*, *, *> = () => {\r\n const getPermissionsItemFromProps = makeGetPermissionsItemFromProps();\r\n const getDestinationVariables = makeGetDestinationVariables();\r\n // const flowMultiExportsByFlowItemId = getFlowMultiExportsByFlowItemId(state);\r\n return (state, ownProps) => ({\r\n destinationVariables: getDestinationVariables(state, ownProps),\r\n flowItemClientVariables: getFlowItemClientVariablesForSelectedFlow(state),\r\n flowItems: state.flowItems.byId,\r\n flowMultiExportsByFlowItemId: getFlowMultiExportsByFlowItemId(state) || [],\r\n flowRelations: getFlowRelationsForSelectedFlow(state),\r\n permissions: getPermissionsItemFromProps(state, ownProps),\r\n selectedFlow: state.selected.flow,\r\n selectedCompany: state.session.companyId,\r\n enabledFeatures: state.session.enabledFeatures || [],\r\n flow: state.flows.byId[state.selected.flow],\r\n variableGroups: state.vars.variableGroupings || [],\r\n companies: state.session.companies,\r\n });\r\n};\r\n\r\nconst mapDispatchToProps = dispatch => bindActionCreators(Object.assign({}, flowActions), dispatch);\r\nconst FlowExportVariableEditC = connect(mapStateToProps, mapDispatchToProps)(FlowExportVariableEdit);\r\n\r\nexport default FlowExportVariableEditC;\r\nexport { FlowExportVariableEdit };\r\n","import React from \"react\";\r\nimport FlowItemToggle from \"../Shared/FlowItemToggle\";\r\n\r\ntype Props = {\r\n // Passed In\r\n flowItemId: number;\r\n disabled?: boolean;\r\n};\r\n\r\nconst FlowItemDeployToggle: React.FC = ({ flowItemId, disabled = false }: Props) => {\r\n if (flowItemId == null) {\r\n return null;\r\n }\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default FlowItemDeployToggle;\r\n","import React, { useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { updateAttribute } from \"../../../../actions/flowActions\";\r\nimport { Divider, FormControl, Paper, TextField } from \"@material-ui/core\";\r\nimport { IAppState } from \"../../../../types/stores\";\r\nimport MaterialTable, { Column } from \"@material-table/core\";\r\nimport { getFlowExportsByFlowItemId } from \"../../../../reducers/flowExports\";\r\nimport type { FlowExportsByItemId } from \"../../../../reducers/flowExports\";\r\nimport { createSelector } from \"reselect\";\r\nimport { FlowExport } from \"../../../../types/stores/flowTypes\";\r\nimport moment from \"moment\";\r\nimport NumericalTextField from \"../../../material-components/Misc/NumericalTextField\";\r\nimport { IAdvertisersByCompany } from \"../../../../types/stores/vars\";\r\nimport { getFlowItemsForSelectedFlow } from \"../../../../reducers/flowItems\";\r\n\r\ntype Props = {\r\n flowItemId: number;\r\n};\r\n\r\nconst FlowTaxonomyFieldEditForm: React.FC = (props: Props) => {\r\n const dispatch = useDispatch();\r\n const getFlowExport = makeGetFlowExport();\r\n const getExportDestinations = makeGetExportDestinations();\r\n const layouts = useSelector((state: IAppState) => state.layoutObjects.objects);\r\n const flowExport = useSelector((state: IAppState) => getFlowExport(state, props));\r\n const environment = useSelector((state: IAppState) => state.session.environment);\r\n const flowExportTaxonomyFileFields = useSelector((state: IAppState) => state.flowExportTaxonomyFileFields);\r\n const layout = layouts && layouts.filter(x => x.Layout.LayoutID == flowExport?.ExportId)[0];\r\n const currentCompanyId = useSelector((state: IAppState) => state.session.companyId);\r\n const companies = useSelector((state: IAppState) => state.session.companies);\r\n const PartnerList = useSelector((state: IAppState) => getExportDestinations(state));\r\n const enabledFeatures = useSelector((state: IAppState) => state.session.enabledFeatures);\r\n const flowItems = useSelector(state => getFlowItemsForSelectedFlow(state));\r\n let filteredDestinations = PartnerList || [];\r\n //Only auprod and ukprod can see the grouped partners, others only the parent partners\r\n if (environment != \"auprod\" && environment != \"ukprod\" && PartnerList && PartnerList.length > 0) {\r\n filteredDestinations = PartnerList.filter(x => !x.isGrouped || x.PartnerAccessId == x.GroupCompanyID);\r\n }\r\n\r\n const destinations = filteredDestinations.map(item => ({\r\n label: item.VerticalName + \" - \" + item.CompanyName,\r\n value: item.PartnerAccessId,\r\n item,\r\n }));\r\n\r\n const thisDestination = destinations.find(x => x.value == flowExport?.DestinationId);\r\n\r\n // NANI-85558 remove this method when feature is removed\r\n useEffect(() => {\r\n // Should execute new method\r\n if (enabledFeatures.includes(\"export-taxonomy-values-update-fix\")) return;\r\n\r\n let taxObjects = Object.keys(flowExportTaxonomyFileFields.byId).map(x => flowExportTaxonomyFileFields.byId[x]);\r\n\r\n let taxonomyObjects = taxObjects.filter(x => x.FlowItemId == props.flowItemId);\r\n\r\n //updates taxonomy json with default values...\r\n taxonomyObjects.forEach(row => {\r\n let taxonomyObj = JSON.parse(row.ValueJSON);\r\n layout.LayoutTaxonomyObjects.forEach(x => {\r\n if (x.DefaultValue.includes(\"{date:\")) {\r\n const dateFormat = x.DefaultValue.substring(\r\n x.DefaultValue.indexOf(\":\") + 1,\r\n x.DefaultValue.indexOf(\"}\")\r\n );\r\n let newDate = moment();\r\n let thisDate = moment(newDate, dateFormat).format(dateFormat).toString();\r\n taxonomyObj[x.ExportName] = thisDate;\r\n } else {\r\n const company = companies.filter(x => x.CompanyID == currentCompanyId)[0];\r\n switch (x.DefaultValue) {\r\n case \"{ProviderName}\": //?\r\n taxonomyObj[x.ExportName] = thisDestination?.item.CompanyName;\r\n break;\r\n case \"{CompanyName}\":\r\n taxonomyObj[x.ExportName] = company.CompanyName;\r\n break;\r\n case \"\":\r\n break;\r\n default:\r\n if (!x.DefaultValue.includes(\"{\") && taxonomyObj[x.ExportName] == \"\") {\r\n taxonomyObj[x.ExportName] = x.DefaultValue;\r\n }\r\n break;\r\n }\r\n }\r\n });\r\n\r\n handleFieldChange(row.FlowExportTaxonomyFileFieldId, \"ValueJSON\", JSON.stringify(taxonomyObj));\r\n });\r\n });\r\n\r\n useEffect(() => {\r\n // Should execute original method\r\n if (!enabledFeatures.includes(\"export-taxonomy-values-update-fix\")) return;\r\n\r\n let taxObjects = Object.keys(flowExportTaxonomyFileFields.byId).map(x => flowExportTaxonomyFileFields.byId[x]);\r\n\r\n let taxonomyObjects = taxObjects.filter(x => x.FlowItemId == props.flowItemId);\r\n\r\n //updates taxonomy json with default values...\r\n taxonomyObjects.forEach(row => {\r\n let shouldUpdate = false;\r\n let taxonomyObj = JSON.parse(row.ValueJSON);\r\n layout.LayoutTaxonomyObjects.forEach(x => {\r\n if (x.DefaultValue.includes(\"{date:\")) {\r\n const dateFormat = x.DefaultValue.substring(\r\n x.DefaultValue.indexOf(\":\") + 1,\r\n x.DefaultValue.indexOf(\"}\")\r\n );\r\n let newDate = moment();\r\n let thisDate = moment(newDate, dateFormat).format(dateFormat).toString();\r\n if (taxonomyObj[x.ExportName] != thisDate) {\r\n taxonomyObj[x.ExportName] = thisDate;\r\n }\r\n } else {\r\n const company = companies.filter(x => x.CompanyID == currentCompanyId)[0];\r\n switch (x.DefaultValue) {\r\n case \"{ProviderName}\": //?\r\n if (\r\n thisDestination &&\r\n thisDestination.item &&\r\n thisDestination.item.CompanyName != \"\" &&\r\n taxonomyObj[x.ExportName] != thisDestination.item.CompanyName\r\n ) {\r\n taxonomyObj[x.ExportName] = thisDestination.item.CompanyName;\r\n shouldUpdate = true;\r\n }\r\n break;\r\n case \"{CompanyName}\":\r\n if (\r\n company &&\r\n company.CompanyName != \"\" &&\r\n taxonomyObj[x.ExportName] != company.CompanyName\r\n ) {\r\n taxonomyObj[x.ExportName] = company.CompanyName;\r\n shouldUpdate = true;\r\n }\r\n break;\r\n case \"\":\r\n break;\r\n default:\r\n if (!x.DefaultValue.includes(\"{\") && taxonomyObj[x.ExportName] == \"\") {\r\n taxonomyObj[x.ExportName] = x.DefaultValue;\r\n shouldUpdate = true;\r\n }\r\n break;\r\n }\r\n }\r\n });\r\n\r\n if (shouldUpdate) {\r\n handleFieldChange(row.FlowExportTaxonomyFileFieldId, \"ValueJSON\", JSON.stringify(taxonomyObj));\r\n }\r\n });\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [flowExportTaxonomyFileFields]);\r\n\r\n const title = `Taxonomy Driver File Fields`;\r\n\r\n const renderTaxonomyObject = (rowData: any, data: any) => {\r\n let jsonData = JSON.parse(rowData.ValueJSON);\r\n let newValue = jsonData;\r\n let isSegmentCode = false;\r\n const currentFlowItem = flowItems.find(x => x.FlowItemId == rowData.ParentFlowItemId);\r\n\r\n // EMS-1301 For Samsumng taxonomy layouts, autocomplete with filter names\r\n if (\r\n enabledFeatures.includes(\"export-taxonomy-values-update-fix\") &&\r\n data.ExportName.toLowerCase() === \"segmentcode\"\r\n ) {\r\n if (jsonData[\"SEGMENT_NAME\"] === \"\" || jsonData[\"SEGMENT_DESCRIPTION\"] === \"\") {\r\n let newValue = jsonData;\r\n newValue[data.ExportName] = currentFlowItem.FlowItemName;\r\n newValue[\"SEGMENT_NAME\"] = currentFlowItem.FlowItemName;\r\n newValue[\"SEGMENT_DESCRIPTION\"] = currentFlowItem.FlowItemName;\r\n handleFieldChange(rowData.FlowExportTaxonomyFileFieldId, \"ValueJSON\", JSON.stringify(newValue));\r\n }\r\n\r\n isSegmentCode = true;\r\n }\r\n\r\n let textField = (\r\n \r\n {\r\n let newValue = jsonData;\r\n newValue[data.ExportName] = e.target.value;\r\n handleFieldChange(rowData.FlowExportTaxonomyFileFieldId, \"ValueJSON\", JSON.stringify(newValue));\r\n }}\r\n onWheel={event => {\r\n const eventTarget = event.target as HTMLInputElement;\r\n return eventTarget.blur();\r\n }}\r\n />\r\n \r\n );\r\n\r\n if (data.DefaultValue.includes(\"{numberRange:\")) {\r\n //\r\n const range = data.DefaultValue.substring(\r\n data.DefaultValue.indexOf(\":\") + 1,\r\n data.DefaultValue.indexOf(\"}\")\r\n ).split(\",\");\r\n const max = parseFloat(range[1]);\r\n const min = parseFloat(range[0]);\r\n textField = (\r\n \r\n {\r\n let newValue = jsonData;\r\n let numberValue = parseFloat(e.target.value);\r\n numberValue = numberValue >= max ? max : numberValue <= min ? min : numberValue;\r\n newValue[data.ExportName] = numberValue.toString();\r\n\r\n handleFieldChange(\r\n rowData.FlowExportTaxonomyFileFieldId,\r\n \"ValueJSON\",\r\n JSON.stringify(newValue)\r\n );\r\n }}\r\n onWheel={event => {\r\n const eventTarget = event.target as HTMLInputElement;\r\n return eventTarget.blur();\r\n }}\r\n />\r\n \r\n );\r\n } else if (data.DefaultValue.includes(\"{date:\")) {\r\n const dateFormat = data.DefaultValue.substring(\r\n data.DefaultValue.indexOf(\":\") + 1,\r\n data.DefaultValue.indexOf(\"}\")\r\n );\r\n let newDate = moment();\r\n let thisDate = moment(newDate, dateFormat).format(dateFormat).toString();\r\n\r\n newValue[data.ExportName] = thisDate;\r\n\r\n textField = (\r\n \r\n {\r\n let newValue = jsonData;\r\n newValue[data.ExportName] = e.target.value;\r\n handleFieldChange(\r\n rowData.FlowExportTaxonomyFileFieldId,\r\n \"ValueJSON\",\r\n JSON.stringify(newValue)\r\n );\r\n }}\r\n onWheel={event => {\r\n const eventTarget = event.target as HTMLInputElement;\r\n return eventTarget.blur();\r\n }}\r\n />\r\n \r\n );\r\n } else {\r\n switch (data.DefaultValue) {\r\n case \"{SegmentCode}\": //?\r\n break;\r\n case \"{ProviderName}\":\r\n newValue[data.ExportName] = thisDestination?.item.CompanyName;\r\n textField = (\r\n \r\n {\r\n let newValue = jsonData;\r\n newValue[data.ExportName] = e.target.value;\r\n handleFieldChange(\r\n rowData.FlowExportTaxonomyFileFieldId,\r\n \"ValueJSON\",\r\n JSON.stringify(newValue)\r\n );\r\n }}\r\n onWheel={event => {\r\n const eventTarget = event.target as HTMLInputElement;\r\n return eventTarget.blur();\r\n }}\r\n />\r\n \r\n );\r\n break;\r\n case \"{CompanyName}\":\r\n {\r\n const company = companies.filter(x => x.CompanyID == currentCompanyId)[0];\r\n\r\n newValue[data.ExportName] = company.CompanyName;\r\n\r\n textField = (\r\n \r\n {\r\n let newValue = jsonData;\r\n newValue[data.ExportName] = e.target.value;\r\n handleFieldChange(\r\n rowData.FlowExportTaxonomyFileFieldId,\r\n \"ValueJSON\",\r\n JSON.stringify(newValue)\r\n );\r\n }}\r\n onWheel={event => {\r\n const eventTarget = event.target as HTMLInputElement;\r\n return eventTarget.blur();\r\n }}\r\n />\r\n \r\n );\r\n }\r\n break;\r\n case \"\":\r\n break;\r\n default:\r\n if (!data.DefaultValue.includes(\"{\")) {\r\n // newValue[data.ExportName] = jsonData[data.ExportName] != \"\" ? jsonData[data.ExportName] : data.DefaultValue;\r\n textField = (\r\n \r\n {\r\n let newValue = jsonData;\r\n newValue[data.ExportName] =\r\n e.target.value != \"\" ? e.target.value : data.DefaultValue;\r\n handleFieldChange(\r\n rowData.FlowExportTaxonomyFileFieldId,\r\n \"ValueJSON\",\r\n JSON.stringify(newValue)\r\n );\r\n }}\r\n onWheel={event => {\r\n const eventTarget = event.target as HTMLInputElement;\r\n return eventTarget.blur();\r\n }}\r\n />\r\n \r\n );\r\n }\r\n break;\r\n }\r\n }\r\n\r\n return {textField};\r\n };\r\n\r\n const columns: Array> = [];\r\n\r\n if (layout != null && layout.LayoutTaxonomyObjects != null) {\r\n layout.LayoutTaxonomyObjects.forEach(x => {\r\n columns.push({\r\n title: x.ExportName,\r\n tooltip: x.ExportName,\r\n render: rowData => renderTaxonomyObject(rowData, x),\r\n });\r\n if (enabledFeatures.includes(\"export-taxonomy-values-update-fix\")) {\r\n if (x.ExportName == \"SEGMENT_NAME\" || x.ExportName == \"SEGMENT_DESCRIPTION\") {\r\n columns.pop();\r\n }\r\n }\r\n });\r\n }\r\n\r\n const handleFieldChange = (Id: number, attributeName: string, value: string | number | boolean) =>\r\n dispatch(updateAttribute(\"flowExportTaxonomyFileFields\", Id, attributeName, value));\r\n\r\n const renderTaxonomyForm = () => {\r\n let taxObjects = Object.keys(flowExportTaxonomyFileFields.byId).map(x => flowExportTaxonomyFileFields.byId[x]);\r\n\r\n let taxonomyObjects = taxObjects.filter(x => x.FlowItemId == props.flowItemId);\r\n\r\n return (\r\n
\r\n \r\n \r\n
\r\n );\r\n };\r\n\r\n return (\r\n <>\r\n
\r\n
\r\n

{title}

\r\n
\r\n
\r\n \r\n \r\n
{renderTaxonomyForm()}
\r\n
\r\n \r\n \r\n );\r\n};\r\ntype FlowExportSelector = (state: IAppState, props: Props) => S;\r\ntype FlowExportDestinationSelector = (state: IAppState) => S;\r\nexport const makeGetExportDestinations = (): FlowExportDestinationSelector> =>\r\n // @ts-ignore\r\n createSelector(\r\n (state: IAppState) => state.vars.destinations,\r\n (destinations: Array): Array =>\r\n destinations ? destinations.filter(x => x.AcceptFlag == \"Y\") : []\r\n );\r\n\r\nexport const makeGetFlowExport = (): FlowExportSelector =>\r\n // @ts-ignore\r\n createSelector(\r\n (state: IAppState) => getFlowExportsByFlowItemId(state),\r\n (_, props: Props) => props.flowItemId,\r\n (flowExportsByFlowItemId: FlowExportsByItemId, flowItemId: number): FlowExport | undefined =>\r\n flowExportsByFlowItemId[flowItemId]\r\n );\r\nexport default FlowTaxonomyFieldEditForm;\r\n","import React, { useEffect, useMemo } from \"react\";\r\nimport { useSelector, useDispatch } from \"react-redux\";\r\nimport { updateAttribute } from \"../../../../actions/flowActions\";\r\nimport { GetTapadDeliveryTemplates } from \"../../../../actions/companiesActions\";\r\nimport { labelCompare } from \"../../../../helpers/selectHelper\";\r\nimport { FormControl, TextField } from \"@material-ui/core\";\r\nimport { Autocomplete } from \"@material-ui/lab\";\r\nimport { IAppState } from \"../../../../types/stores\";\r\n\r\ntype Props = {\r\n flowExport: any;\r\n canEdit: boolean;\r\n deploySetting: number;\r\n};\r\n\r\nconst PubmaticDeliveryTypes: React.FC = ({ flowExport, canEdit, deploySetting }: Props) => {\r\n const dispatch = useDispatch();\r\n\r\n const flow = useSelector((state: IAppState) => state.flows.byId[state.selected.flow]);\r\n const tapadDeliveryTypes = useSelector((state: IAppState) => state.vars.tapadDeliveryTypes);\r\n const companyId = useSelector((state: IAppState) => state.session.companyId);\r\n const isCompanyVerticalsLoading = useSelector((state: IAppState) => state.companyEdit.isLoadingVerticals);\r\n\r\n const destinationDeliveryTypes = useMemo(\r\n () => tapadDeliveryTypes.filter(x => x.DeploySettingId == deploySetting),\r\n [tapadDeliveryTypes, deploySetting]\r\n );\r\n\r\n useEffect(() => {\r\n if (\r\n companyId != null &&\r\n !isCompanyVerticalsLoading &&\r\n (!destinationDeliveryTypes || destinationDeliveryTypes.length == 0)\r\n ) {\r\n dispatch(GetTapadDeliveryTemplates(companyId));\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n const tapadDeliveryTypesDDL = destinationDeliveryTypes\r\n .map(item => ({\r\n label: item.Name,\r\n value: item.TapadDeliveryTypeId,\r\n item,\r\n }))\r\n .sort(labelCompare);\r\n\r\n const thisTapadDeliveryType = tapadDeliveryTypesDDL.filter(x => x.value == flowExport.DeliveryTypeId);\r\n\r\n const tapadDeliveryTypeChanged = (_, e) => {\r\n const newValue = e && e.value ? e.value : 0;\r\n dispatch(updateAttribute(\"flowExports\", flowExport.FlowExportId, \"DeliveryTypeId\", newValue));\r\n };\r\n\r\n return (\r\n \r\n (option && option.label) || \"\"}\r\n getOptionSelected={(option, value) => value.value === option.value}\r\n onChange={tapadDeliveryTypeChanged}\r\n autoComplete\r\n value={thisTapadDeliveryType.length > 0 ? thisTapadDeliveryType[0] : null}\r\n disabled={!canEdit || (flow && flow.IsLocked)}\r\n renderInput={params => }\r\n />\r\n \r\n );\r\n};\r\n\r\nexport default PubmaticDeliveryTypes;\r\n","import React from \"react\";\r\nimport { Table } from \"@material-ui/core\";\r\nimport TableHeader from \"../../../material-components/Table/TableHeader\";\r\nimport TableBody from \"../../../material-components/Table/TableBody\";\r\nimport { FlowItemFieldsUsed } from \"../../../../types/stores/flowTypes\";\r\n\r\ntype Props = {\r\n fieldRestrictions: Array;\r\n};\r\n\r\nconst RestrictedFieldsTable: React.FC = ({ fieldRestrictions }: Props) => {\r\n const getDuplicatedRestrictedFields = (restrictionsArray: Array) => {\r\n let data: Array = [];\r\n restrictionsArray.forEach(field => {\r\n if (\r\n !data.find(\r\n f =>\r\n f.FieldName === field.FieldName &&\r\n f.FlowItemName === field.FlowItemName &&\r\n f.FlowItemType === field.FlowItemType\r\n )\r\n ) {\r\n data.push(field);\r\n }\r\n });\r\n return data;\r\n };\r\n\r\n const tableHeaders = [\r\n [\"FlowItem\", \"Flow Item\"],\r\n [\"FieldName\", \"Field Name\"],\r\n ];\r\n\r\n const emptyMessage = [\"EmptyMessage\", \"\"];\r\n\r\n let data: Array>> = [];\r\n let fieldRestrictionsDuplicated = getDuplicatedRestrictedFields(fieldRestrictions);\r\n fieldRestrictionsDuplicated.forEach(field => {\r\n data.push([\r\n [\"FlowItem\", `${field.FlowItemName} - ${field.FlowItemType}`, \"smDown\"],\r\n [\"FieldName\", field.FieldName, \"smDown\"],\r\n ]);\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\nexport default RestrictedFieldsTable;\r\n","import React, { useEffect, useMemo } from \"react\";\r\nimport { useSelector, useDispatch } from \"react-redux\";\r\nimport { updateAttribute } from \"../../../../actions/flowActions\";\r\nimport { GetTapadDeliveryTemplates } from \"../../../../actions/companiesActions\";\r\nimport { labelCompare } from \"../../../../helpers/selectHelper\";\r\nimport { FormControl, TextField } from \"@material-ui/core\";\r\nimport { Autocomplete } from \"@material-ui/lab\";\r\nimport { IAppState } from \"../../../../types/stores\";\r\n\r\ntype Props = {\r\n flowExport: any;\r\n canEdit: boolean;\r\n deploySetting: number;\r\n};\r\n\r\nconst TradedeskDeliveryTypes: React.FC = ({ flowExport, canEdit, deploySetting }: Props) => {\r\n const dispatch = useDispatch();\r\n\r\n const flow = useSelector((state: IAppState) => state.flows.byId[state.selected.flow]);\r\n const tapadDeliveryTypes = useSelector((state: IAppState) => state.vars.tapadDeliveryTypes);\r\n const companyId = useSelector((state: IAppState) => state.session.companyId);\r\n const isCompanyVerticalsLoading = useSelector((state: IAppState) => state.companyEdit.isLoadingVerticals);\r\n\r\n const destinationDeliveryTypes = useMemo(\r\n () => tapadDeliveryTypes.filter(x => x.DeploySettingId == deploySetting),\r\n [tapadDeliveryTypes, deploySetting]\r\n );\r\n\r\n useEffect(() => {\r\n if (\r\n companyId != null &&\r\n !isCompanyVerticalsLoading &&\r\n (!destinationDeliveryTypes || destinationDeliveryTypes.length == 0)\r\n ) {\r\n dispatch(GetTapadDeliveryTemplates(companyId));\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n const tapadDeliveryTypesDDL = destinationDeliveryTypes\r\n .map(item => ({\r\n label: item.Name,\r\n value: item.TapadDeliveryTypeId,\r\n item,\r\n }))\r\n .sort(labelCompare);\r\n\r\n const thisTapadDeliveryType = tapadDeliveryTypesDDL.filter(x => x.value == flowExport.DeliveryTypeId);\r\n\r\n const tapadDeliveryTypeChanged = (_, e) => {\r\n const newValue = e && e.value ? e.value : 0;\r\n dispatch(updateAttribute(\"flowExports\", flowExport.FlowExportId, \"DeliveryTypeId\", newValue));\r\n };\r\n\r\n return (\r\n \r\n (option && option.label) || \"\"}\r\n getOptionSelected={(option, value) => value.value === option.value}\r\n onChange={tapadDeliveryTypeChanged}\r\n autoComplete\r\n value={thisTapadDeliveryType.length > 0 ? thisTapadDeliveryType[0] : null}\r\n disabled={!canEdit || (flow && flow.IsLocked)}\r\n renderInput={params => }\r\n />\r\n \r\n );\r\n};\r\n\r\nexport default TradedeskDeliveryTypes;\r\n","import React, { Component } from \"react\";\r\nimport PropTypes from \"prop-types\";\r\n\r\nclass FileBrowser extends Component {\r\n static propTypes = {\r\n fileName: PropTypes.string,\r\n uploading: PropTypes.bool,\r\n fileTypes: PropTypes.string,\r\n selectedFileChanged: PropTypes.func.isRequired,\r\n disabled: PropTypes.bool,\r\n };\r\n\r\n onFileChanged = () => {\r\n const { selectedFileChanged } = this.props;\r\n const file = this.uploadBtn.files[0];\r\n selectedFileChanged(file, true);\r\n this.uploadBtn.value = null;\r\n };\r\n\r\n render() {\r\n const { fileName, uploading, fileTypes, disabled } = this.props;\r\n return (\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n );\r\n }\r\n}\r\nexport default FileBrowser;\r\n","import * as React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { bindActionCreators } from \"redux\";\r\nimport FileBrowser from \"../../../misc/FileBrowser\";\r\n\r\nimport { renderFlowItemType } from \"../../../../helpers/typedHelpers\";\r\nimport { getFlowRelationsForSelectedFlow } from \"../../../../reducers/flowRelations\";\r\nimport { getFlowItemClientVariablesForSelectedFlow } from \"../../../../reducers/flowItemClientVariables\";\r\n\r\nimport * as flowActions from \"../../../../actions/flowActions\";\r\n\r\nimport type {\r\n FlowOfferMerge,\r\n FlowItem,\r\n FlowRelation,\r\n FlowItemClientVariable,\r\n FlowAndItemPermissions,\r\n UpdateAttribute,\r\n} from \"../../../../types/flowTypes\";\r\nimport { VariableValueType } from \"../../../../types/stores/vars\";\r\n\r\nimport Button from \"@material-ui/core/Button\";\r\nimport Checkbox from \"@material-ui/core/Checkbox\";\r\nimport FormControlLabel from \"@material-ui/core/FormControlLabel\";\r\n\r\ntype Props = {\r\n // Passed in\r\n flowItemId: number,\r\n offerCodes: Array,\r\n flowOfferMerges: Array,\r\n handleTabSelect: (tabKey: number) => void,\r\n // Redux\r\n flowItems: { [number]: FlowItem },\r\n flowRelations: Array,\r\n flowItemClientVariables: { [number]: FlowItemClientVariable },\r\n selectedFlow: number,\r\n // AC\r\n updateAttribute: UpdateAttribute,\r\n newFlowItemClientVariable: (\r\n variableId: number,\r\n flowId: number,\r\n flowItemId: number,\r\n childFlowItemId: number,\r\n variableValue: VariableValueType\r\n ) => void,\r\n permissions: FlowAndItemPermissions,\r\n invalidateItemAndChildren: (flowItemId: number) => void,\r\n};\r\n\r\ntype State = {\r\n fileName: string,\r\n uploading: boolean,\r\n hasHeaderRow: boolean,\r\n hasItemColumn: boolean,\r\n importFile: Array,\r\n offerMap: Array,\r\n itemMap: Array,\r\n availableOffers: Array,\r\n availableItems: Array,\r\n errorCells: Array,\r\n};\r\n\r\nclass OfferCodeImport extends React.Component {\r\n state = {\r\n fileName: \"\",\r\n uploading: false,\r\n hasHeaderRow: true,\r\n hasItemColumn: true,\r\n importFile: [],\r\n offerMap: [],\r\n itemMap: [],\r\n availableOffers: [],\r\n availableItems: [],\r\n errorCells: [],\r\n };\r\n\r\n componentDidMount() {\r\n this.getAvailableItems();\r\n this.getAvailableOffers();\r\n }\r\n\r\n componentDidUpdate(prevProps, prevState) {\r\n const { hasItemColumn, hasHeaderRow, availableOffers, importFile } = this.state;\r\n if (prevState.hasItemColumn != hasItemColumn) {\r\n this.getAvailableOffers();\r\n }\r\n if (prevState.availableOffers != availableOffers || prevState.hasHeaderRow != hasHeaderRow) {\r\n if (importFile.length > 0) {\r\n this.processFile();\r\n }\r\n }\r\n }\r\n\r\n resetPage = () => {\r\n this.setState({\r\n fileName: \"\",\r\n uploading: false,\r\n hasHeaderRow: true,\r\n hasItemColumn: true,\r\n importFile: [],\r\n offerMap: [],\r\n itemMap: [],\r\n errorCells: [],\r\n });\r\n };\r\n\r\n selectedFileChanged = (file, uploading) => {\r\n if (!file) {\r\n return;\r\n }\r\n this.setState({ fileName: file.name, uploading, errorCells: [] });\r\n this.readFile(file);\r\n };\r\n\r\n hasHeaderRowChanged = e => {\r\n this.setState({ hasHeaderRow: e.target.checked, offerMap: [], itemMap: [] });\r\n };\r\n\r\n hasItemColumnChanged = e => {\r\n this.setState({ hasItemColumn: e.target.checked, offerMap: [], itemMap: [] });\r\n };\r\n\r\n offerMappingChanged = (colId, e) => {\r\n const { offerMap } = this.state;\r\n const select = e.target;\r\n let newMap = [];\r\n\r\n if (offerMap.length > 0) {\r\n // Update Existing map\r\n newMap = offerMap;\r\n const mapExist = newMap.find(x => x.colId == colId);\r\n if (mapExist) {\r\n mapExist.selectedValue = select ? parseInt(select.value) : -1;\r\n } else {\r\n // Add new Map\r\n newMap.push({ colId, selectedValue: parseInt(select.value) });\r\n }\r\n\r\n // Reset duplicate mapped value\r\n if (select) {\r\n const valueExist = newMap.filter(x => x.selectedValue == parseInt(select.value) && x.colId != colId);\r\n valueExist.forEach(x => {\r\n x.selectedValue = -1;\r\n });\r\n }\r\n } else {\r\n newMap = [{ colId, selectedValue: parseInt(select.value) }];\r\n this.setState({ offerMap: newMap });\r\n }\r\n this.forceUpdate();\r\n };\r\n\r\n itemMappingChanged = (rowId, e) => {\r\n const { itemMap } = this.state;\r\n const select = e.target;\r\n let newMap = [];\r\n\r\n if (itemMap.length > 0) {\r\n newMap = itemMap;\r\n\r\n // Update Existing map\r\n const mapExist = newMap.find(x => x.rowId == rowId);\r\n if (mapExist) {\r\n mapExist.selectedValue = select ? select.value : \"\";\r\n } else {\r\n // Add new Map\r\n newMap.push({ rowId, selectedValue: select.value });\r\n }\r\n\r\n // Reset duplicate mapped value\r\n if (select) {\r\n const valueExist = newMap.filter(x => x.selectedValue == select.value && x.rowId != rowId);\r\n valueExist.forEach(x => {\r\n x.selectedValue = -1;\r\n });\r\n }\r\n } else {\r\n newMap = [{ rowId, selectedValue: select.value }];\r\n this.setState({ itemMap: newMap });\r\n }\r\n this.forceUpdate();\r\n };\r\n\r\n readFile = file => {\r\n let lineno = 1;\r\n let fileArray = [];\r\n\r\n const onComplete = () => {\r\n this.setState({ uploading: false });\r\n this.processFile();\r\n };\r\n\r\n this.readLines(\r\n file,\r\n line => {\r\n if (line.length > 0) {\r\n let insideQuote = false;\r\n const columns = [];\r\n let entry = [];\r\n line.split(\"\").forEach(character => {\r\n if (character === '\"') {\r\n insideQuote = !insideQuote;\r\n } else if (character == \",\" && !insideQuote) {\r\n columns.push(entry.join(\"\"));\r\n entry = [];\r\n } else {\r\n entry.push(character);\r\n }\r\n });\r\n\r\n columns.push(entry.join(\"\").trim());\r\n\r\n fileArray.push({\r\n lineId: lineno,\r\n cols: columns,\r\n });\r\n }\r\n lineno++;\r\n },\r\n onComplete\r\n );\r\n this.setState({ importFile: fileArray });\r\n };\r\n\r\n readLines = (file, forEachLine, onComplete) => {\r\n const CHUNK_SIZE = 100000; // 100kb, arbitrarily chosen.\r\n const decoder = new TextDecoder();\r\n let offset = 0;\r\n let results = \"\";\r\n const fr = new FileReader();\r\n fr.onload = () => {\r\n // Use stream:true in case we cut the file\r\n // in the middle of a multi-byte character\r\n\r\n results += decoder.decode(fr.result, { stream: true });\r\n\r\n const lines = results.split(\"\\n\");\r\n results = lines.pop(); // In case the line did not end yet.\r\n\r\n for (let i = 0; i < lines.length; ++i) {\r\n forEachLine(lines[i] + \"\\n\");\r\n }\r\n offset += CHUNK_SIZE;\r\n seek();\r\n };\r\n fr.onerror = () => {\r\n onComplete(fr.error);\r\n };\r\n\r\n const seek = () => {\r\n if (offset !== 0 && offset >= file.size) {\r\n // We did not find all lines, but there are no more lines.\r\n forEachLine(results); // This is from lines.pop(), before.\r\n onComplete(); // Done\r\n return;\r\n }\r\n const slice = file.slice(offset, offset + CHUNK_SIZE);\r\n fr.readAsArrayBuffer(slice);\r\n };\r\n seek();\r\n };\r\n\r\n processFile = () => {\r\n const { importFile, hasHeaderRow, hasItemColumn, availableOffers, availableItems } = this.state;\r\n let newOfferMap = [];\r\n let newItemMap = [];\r\n if (importFile.length == 0) {\r\n return;\r\n }\r\n\r\n if (hasHeaderRow) {\r\n const firstRow = importFile[0];\r\n firstRow[\"cols\"].forEach((col, index) => {\r\n const headerFound = availableOffers.find(x => x.label == col.trim());\r\n if (headerFound) {\r\n newOfferMap.push({ colId: index, selectedValue: headerFound.value });\r\n }\r\n });\r\n\r\n this.setState({ offerMap: newOfferMap });\r\n\r\n if (hasItemColumn) {\r\n const itemColFound = newOfferMap.find(x => x.selectedValue == -99);\r\n if (itemColFound) {\r\n const itemCol = itemColFound.colId;\r\n const fileItems = importFile.map(x => x.cols[itemCol].trim());\r\n availableItems.forEach(item => {\r\n const rowId = fileItems.indexOf(item.label);\r\n if (rowId >= 0) {\r\n newItemMap.push({ rowId, selectedValue: item.value });\r\n }\r\n });\r\n this.setState({ itemMap: newItemMap });\r\n }\r\n }\r\n }\r\n };\r\n\r\n createErrorsTable = () => {\r\n const { importFile, errorCells } = this.state;\r\n let tableLines = [];\r\n\r\n errorCells.forEach(error => {\r\n const badValue = importFile[error.rowId][\"cols\"][error.colId].trim();\r\n tableLines.push(\r\n \r\n {error.rowId + 1}\r\n {error.colId + 1}\r\n {error.offerCode}\r\n {badValue}\r\n \r\n );\r\n });\r\n\r\n const errorsTable = (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {tableLines}\r\n
RowColumnOffer CodeValue
\r\n );\r\n return errorsTable;\r\n };\r\n\r\n createTable = () => {\r\n const { importFile, hasHeaderRow, errorCells } = this.state;\r\n if (!importFile || importFile.length == 0) {\r\n return null;\r\n }\r\n\r\n // If Errors create the error display table\r\n if (errorCells.length > 0) {\r\n return this.createErrorsTable();\r\n }\r\n\r\n // Create Table\r\n let tableLines = [];\r\n let cols = [];\r\n let headerCols = [];\r\n\r\n importFile.forEach((line, lineIndex) => {\r\n if (hasHeaderRow && lineIndex == 0) {\r\n return;\r\n }\r\n cols = [];\r\n cols.push(\r\n \r\n {this.renderItemSelector(lineIndex)}\r\n \r\n );\r\n line[\"cols\"].forEach((col, index) => {\r\n cols.push({col});\r\n });\r\n tableLines.push({cols});\r\n\r\n // Header\r\n if (lineIndex == 0 || (hasHeaderRow && lineIndex == 1)) {\r\n headerCols.push(\r\n \r\n Item\r\n \r\n );\r\n line[\"cols\"].forEach((col, index) => {\r\n headerCols.push(\r\n \r\n {this.renderOfferSelector(index)}\r\n \r\n );\r\n });\r\n }\r\n });\r\n\r\n const importTable = (\r\n \r\n \r\n {headerCols}\r\n \r\n {tableLines}\r\n
\r\n );\r\n\r\n return importTable;\r\n };\r\n\r\n renderOfferSelector = colId => {\r\n const { offerMap, availableOffers } = this.state;\r\n let selValue = -1;\r\n\r\n if (offerMap.length > 0) {\r\n const found = offerMap.find(x => x.colId == colId);\r\n selValue = found ? found.selectedValue : null;\r\n }\r\n\r\n const options = availableOffers.map((item, index) => (\r\n \r\n ));\r\n\r\n return (\r\n <>\r\n \r\n {\r\n ));\r\n\r\n return (\r\n <>\r\n \r\n {